6183 lines
3.1 MiB
Plaintext
6183 lines
3.1 MiB
Plaintext
var nr=Object.defineProperty;var Ft=Object.getOwnPropertySymbols;var ar=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable;var Ct=Math.pow,Nt=(t,r,n)=>r in t?nr(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,Et=(t,r)=>{for(var n in r||(r={}))ar.call(r,n)&&Nt(t,n,r[n]);if(Ft)for(var n of Ft(r))or.call(r,n)&&Nt(t,n,r[n]);return t};var Bt=(t,r,n)=>new Promise((o,s)=>{var l=y=>{try{g(n.next(y))}catch(b){s(b)}},d=y=>{try{g(n.throw(y))}catch(b){s(b)}},g=y=>y.done?o(y.value):Promise.resolve(y.value).then(l,d);g((n=n.apply(t,r)).next())});const p$1=function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const l of s)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&o(d)}).observe(document,{childList:!0,subtree:!0});function n(s){const l={};return s.integrity&&(l.integrity=s.integrity),s.referrerpolicy&&(l.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?l.credentials="include":s.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(s){if(s.ep)return;s.ep=!0;const l=n(s);fetch(s.href,l)}};p$1();var main="";function makeMap(t,r){const n=Object.create(null),o=t.split(",");for(let s=0;s<o.length;s++)n[o[s]]=!0;return r?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED);function normalizeStyle$1(t){if(isArray$h(t)){const r={};for(let n=0;n<t.length;n++){const o=t[n],s=isString$4(o)?parseStringStyle(o):normalizeStyle$1(o);if(s)for(const l in s)r[l]=s[l]}return r}else{if(isString$4(t))return t;if(isObject$i(t))return t}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=new RegExp("\\/\\*.*?\\*\\/","gs");function parseStringStyle(t){const r={};return t.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const o=n.split(propertyDelimiterRE);o.length>1&&(r[o[0].trim()]=o[1].trim())}}),r}function normalizeClass(t){let r="";if(isString$4(t))r=t;else if(isArray$h(t))for(let n=0;n<t.length;n++){const o=normalizeClass(t[n]);o&&(r+=o+" ")}else if(isObject$i(t))for(const n in t)t[n]&&(r+=n+" ");return r.trim()}function normalizeProps(t){if(!t)return null;let{class:r,style:n}=t;return r&&!isString$4(r)&&(t.class=normalizeClass(r)),n&&(t.style=normalizeStyle$1(n)),t}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr(t){return!!t||t===""}function looseCompareArrays(t,r){if(t.length!==r.length)return!1;let n=!0;for(let o=0;n&&o<t.length;o++)n=looseEqual(t[o],r[o]);return n}function looseEqual(t,r){if(t===r)return!0;let n=isDate$4(t),o=isDate$4(r);if(n||o)return n&&o?t.getTime()===r.getTime():!1;if(n=isSymbol$6(t),o=isSymbol$6(r),n||o)return t===r;if(n=isArray$h(t),o=isArray$h(r),n||o)return n&&o?looseCompareArrays(t,r):!1;if(n=isObject$i(t),o=isObject$i(r),n||o){if(!n||!o)return!1;const s=Object.keys(t).length,l=Object.keys(r).length;if(s!==l)return!1;for(const d in t){const g=t.hasOwnProperty(d),y=r.hasOwnProperty(d);if(g&&!y||!g&&y||!looseEqual(t[d],r[d]))return!1}}return String(t)===String(r)}function looseIndexOf(t,r){return t.findIndex(n=>looseEqual(n,r))}const toDisplayString$1=t=>isString$4(t)?t:t==null?"":isArray$h(t)||isObject$i(t)&&(t.toString===objectToString$4||!isFunction$8(t.toString))?JSON.stringify(t,replacer,2):String(t),replacer=(t,r)=>r&&r.__v_isRef?replacer(t,r.value):isMap$2(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((n,[o,s])=>(n[`${o} =>`]=s,n),{})}:isSet$2(r)?{[`Set(${r.size})`]:[...r.values()]}:isObject$i(r)&&!isArray$h(r)&&!isPlainObject$6(r)?String(r):r,EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=t=>onRE.test(t),isModelListener=t=>t.startsWith("onUpdate:"),extend$2=Object.assign,remove=(t,r)=>{const n=t.indexOf(r);n>-1&&t.splice(n,1)},hasOwnProperty$q=Object.prototype.hasOwnProperty,hasOwn$2=(t,r)=>hasOwnProperty$q.call(t,r),isArray$h=Array.isArray,isMap$2=t=>toTypeString$1(t)==="[object Map]",isSet$2=t=>toTypeString$1(t)==="[object Set]",isDate$4=t=>toTypeString$1(t)==="[object Date]",isRegExp$2=t=>toTypeString$1(t)==="[object RegExp]",isFunction$8=t=>typeof t=="function",isString$4=t=>typeof t=="string",isSymbol$6=t=>typeof t=="symbol",isObject$i=t=>t!==null&&typeof t=="object",isPromise$1=t=>isObject$i(t)&&isFunction$8(t.then)&&isFunction$8(t.catch),objectToString$4=Object.prototype.toString,toTypeString$1=t=>objectToString$4.call(t),toRawType=t=>toTypeString$1(t).slice(8,-1),isPlainObject$6=t=>toTypeString$1(t)==="[object Object]",isIntegerKey=t=>isString$4(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const r=Object.create(null);return n=>r[n]||(r[n]=t(n))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,(r,n)=>n?n.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$3=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize$3(t)}`:""),hasChanged=(t,r)=>!Object.is(t,r),invokeArrayFns=(t,r)=>{for(let n=0;n<t.length;n++)t[n](r)},def=(t,r,n)=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value:n})},looseToNumber=t=>{const r=parseFloat(t);return isNaN(r)?t:r},toNumber$2=t=>{const r=isString$4(t)?Number(t):NaN;return isNaN(r)?t:r};let _globalThis$1;const getGlobalThis$1=()=>_globalThis$1||(_globalThis$1=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let activeEffectScope;class EffectScope{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!r&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(r){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,r()}finally{activeEffectScope=n}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(r){if(this._active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!r){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope(t){return new EffectScope(t)}function recordEffectScope(t,r=activeEffectScope){r&&r.active&&r.effects.push(t)}function getCurrentScope(){return activeEffectScope}function onScopeDispose(t){activeEffectScope&&activeEffectScope.cleanups.push(t)}const createDep=t=>{const r=new Set(t);return r.w=0,r.n=0,r},wasTracked=t=>(t.w&trackOpBit)>0,newTracked=t=>(t.n&trackOpBit)>0,initDepMarkers=({deps:t})=>{if(t.length)for(let r=0;r<t.length;r++)t[r].w|=trackOpBit},finalizeDepMarkers=t=>{const{deps:r}=t;if(r.length){let n=0;for(let o=0;o<r.length;o++){const s=r[o];wasTracked(s)&&!newTracked(s)?s.delete(t):r[n++]=s,s.w&=~trackOpBit,s.n&=~trackOpBit}r.length=n}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(r,n=null,o){this.fn=r,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,o)}run(){if(!this.active)return this.fn();let r=activeEffect,n=shouldTrack;for(;r;){if(r===this)return;r=r.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect(t){const{deps:r}=t;if(r.length){for(let n=0;n<r.length;n++)r[n].delete(t);r.length=0}}function effect(t,r){t.effect&&(t=t.effect.fn);const n=new ReactiveEffect(t);r&&(extend$2(n,r),r.scope&&recordEffectScope(n,r.scope)),(!r||!r.lazy)&&n.run();const o=n.run.bind(n);return o.effect=n,o}function stop$1(t){t.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const t=trackStack.pop();shouldTrack=t===void 0?!0:t}function track(t,r,n){if(shouldTrack&&activeEffect){let o=targetMap.get(t);o||targetMap.set(t,o=new Map);let s=o.get(n);s||o.set(n,s=createDep()),trackEffects(s)}}function trackEffects(t,r){let n=!1;effectTrackDepth<=maxMarkerBits?newTracked(t)||(t.n|=trackOpBit,n=!wasTracked(t)):n=!t.has(activeEffect),n&&(t.add(activeEffect),activeEffect.deps.push(t))}function trigger$3(t,r,n,o,s,l){const d=targetMap.get(t);if(!d)return;let g=[];if(r==="clear")g=[...d.values()];else if(n==="length"&&isArray$h(t)){const y=Number(o);d.forEach((b,C)=>{(C==="length"||C>=y)&&g.push(b)})}else switch(n!==void 0&&g.push(d.get(n)),r){case"add":isArray$h(t)?isIntegerKey(n)&&g.push(d.get("length")):(g.push(d.get(ITERATE_KEY)),isMap$2(t)&&g.push(d.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$h(t)||(g.push(d.get(ITERATE_KEY)),isMap$2(t)&&g.push(d.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$2(t)&&g.push(d.get(ITERATE_KEY));break}if(g.length===1)g[0]&&triggerEffects(g[0]);else{const y=[];for(const b of g)b&&y.push(...b);triggerEffects(createDep(y))}}function triggerEffects(t,r){const n=isArray$h(t)?t:[...t];for(const o of n)o.computed&&triggerEffect(o);for(const o of n)o.computed||triggerEffect(o)}function triggerEffect(t,r){(t!==activeEffect||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function getDepFromReactive(t,r){var n;return(n=targetMap.get(t))===null||n===void 0?void 0:n.get(r)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol$6)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const t={};return["includes","indexOf","lastIndexOf"].forEach(r=>{t[r]=function(...n){const o=toRaw(this);for(let l=0,d=this.length;l<d;l++)track(o,"get",l+"");const s=o[r](...n);return s===-1||s===!1?o[r](...n.map(toRaw)):s}}),["push","pop","shift","unshift","splice"].forEach(r=>{t[r]=function(...n){pauseTracking();const o=toRaw(this)[r].apply(this,n);return resetTracking(),o}}),t}function hasOwnProperty$p(t){const r=toRaw(this);return track(r,"has",t),r.hasOwnProperty(t)}function createGetter(t=!1,r=!1){return function(o,s,l){if(s==="__v_isReactive")return!t;if(s==="__v_isReadonly")return t;if(s==="__v_isShallow")return r;if(s==="__v_raw"&&l===(t?r?shallowReadonlyMap:readonlyMap:r?shallowReactiveMap:reactiveMap).get(o))return o;const d=isArray$h(o);if(!t){if(d&&hasOwn$2(arrayInstrumentations,s))return Reflect.get(arrayInstrumentations,s,l);if(s==="hasOwnProperty")return hasOwnProperty$p}const g=Reflect.get(o,s,l);return(isSymbol$6(s)?builtInSymbols.has(s):isNonTrackableKeys(s))||(t||track(o,"get",s),r)?g:isRef(g)?d&&isIntegerKey(s)?g:g.value:isObject$i(g)?t?readonly(g):reactive(g):g}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter(t=!1){return function(n,o,s,l){let d=n[o];if(isReadonly(d)&&isRef(d)&&!isRef(s))return!1;if(!t&&(!isShallow(s)&&!isReadonly(s)&&(d=toRaw(d),s=toRaw(s)),!isArray$h(n)&&isRef(d)&&!isRef(s)))return d.value=s,!0;const g=isArray$h(n)&&isIntegerKey(o)?Number(o)<n.length:hasOwn$2(n,o),y=Reflect.set(n,o,s,l);return n===toRaw(l)&&(g?hasChanged(s,d)&&trigger$3(n,"set",o,s):trigger$3(n,"add",o,s)),y}}function deleteProperty(t,r){const n=hasOwn$2(t,r);t[r];const o=Reflect.deleteProperty(t,r);return o&&n&&trigger$3(t,"delete",r,void 0),o}function has$1$1(t,r){const n=Reflect.has(t,r);return(!isSymbol$6(r)||!builtInSymbols.has(r))&&track(t,"has",r),n}function ownKeys(t){return track(t,"iterate",isArray$h(t)?"length":ITERATE_KEY),Reflect.ownKeys(t)}const mutableHandlers={get:get$1$1,set:set$1$1,deleteProperty,has:has$1$1,ownKeys},readonlyHandlers={get:readonlyGet,set(t,r){return!0},deleteProperty(t,r){return!0}},shallowReactiveHandlers=extend$2({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend$2({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=t=>t,getProto=t=>Reflect.getPrototypeOf(t);function get$2(t,r,n=!1,o=!1){t=t.__v_raw;const s=toRaw(t),l=toRaw(r);n||(r!==l&&track(s,"get",r),track(s,"get",l));const{has:d}=getProto(s),g=o?toShallow:n?toReadonly:toReactive;if(d.call(s,r))return g(t.get(r));if(d.call(s,l))return g(t.get(l));t!==s&&t.get(r)}function has$3(t,r=!1){const n=this.__v_raw,o=toRaw(n),s=toRaw(t);return r||(t!==s&&track(o,"has",t),track(o,"has",s)),t===s?n.has(t):n.has(t)||n.has(s)}function size$1(t,r=!1){return t=t.__v_raw,!r&&track(toRaw(t),"iterate",ITERATE_KEY),Reflect.get(t,"size",t)}function add$1(t){t=toRaw(t);const r=toRaw(this);return getProto(r).has.call(r,t)||(r.add(t),trigger$3(r,"add",t,t)),this}function set$3(t,r){r=toRaw(r);const n=toRaw(this),{has:o,get:s}=getProto(n);let l=o.call(n,t);l||(t=toRaw(t),l=o.call(n,t));const d=s.call(n,t);return n.set(t,r),l?hasChanged(r,d)&&trigger$3(n,"set",t,r):trigger$3(n,"add",t,r),this}function deleteEntry(t){const r=toRaw(this),{has:n,get:o}=getProto(r);let s=n.call(r,t);s||(t=toRaw(t),s=n.call(r,t)),o&&o.call(r,t);const l=r.delete(t);return s&&trigger$3(r,"delete",t,void 0),l}function clear$2(){const t=toRaw(this),r=t.size!==0,n=t.clear();return r&&trigger$3(t,"clear",void 0,void 0),n}function createForEach(t,r){return function(o,s){const l=this,d=l.__v_raw,g=toRaw(d),y=r?toShallow:t?toReadonly:toReactive;return!t&&track(g,"iterate",ITERATE_KEY),d.forEach((b,C)=>o.call(s,y(b),y(C),l))}}function createIterableMethod(t,r,n){return function(...o){const s=this.__v_raw,l=toRaw(s),d=isMap$2(l),g=t==="entries"||t===Symbol.iterator&&d,y=t==="keys"&&d,b=s[t](...o),C=n?toShallow:r?toReadonly:toReactive;return!r&&track(l,"iterate",y?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:x,done:S}=b.next();return S?{value:x,done:S}:{value:g?[C(x[0]),C(x[1])]:C(x),done:S}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...r){return t==="delete"?!1:this}}function createInstrumentations(){const t={get(l){return get$2(this,l)},get size(){return size$1(this)},has:has$3,add:add$1,set:set$3,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!1)},r={get(l){return get$2(this,l,!1,!0)},get size(){return size$1(this)},has:has$3,add:add$1,set:set$3,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!0)},n={get(l){return get$2(this,l,!0)},get size(){return size$1(this,!0)},has(l){return has$3.call(this,l,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},o={get(l){return get$2(this,l,!0,!0)},get size(){return size$1(this,!0)},has(l){return has$3.call(this,l,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{t[l]=createIterableMethod(l,!1,!1),n[l]=createIterableMethod(l,!0,!1),r[l]=createIterableMethod(l,!1,!0),o[l]=createIterableMethod(l,!0,!0)}),[t,n,r,o]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(t,r){const n=r?t?shallowReadonlyInstrumentations:shallowInstrumentations:t?readonlyInstrumentations:mutableInstrumentations;return(o,s,l)=>s==="__v_isReactive"?!t:s==="__v_isReadonly"?t:s==="__v_raw"?o:Reflect.get(hasOwn$2(n,s)&&s in o?n:o,s,l)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,r,n,o,s){if(!isObject$i(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const l=s.get(t);if(l)return l;const d=getTargetType(t);if(d===0)return t;const g=new Proxy(t,d===2?o:n);return s.set(t,g),g}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return isReactive(t)||isReadonly(t)}function toRaw(t){const r=t&&t.__v_raw;return r?toRaw(r):t}function markRaw(t){return def(t,"__v_skip",!0),t}const toReactive=t=>isObject$i(t)?reactive(t):t,toReadonly=t=>isObject$i(t)?readonly(t):t;function trackRefValue(t){shouldTrack&&activeEffect&&(t=toRaw(t),trackEffects(t.dep||(t.dep=createDep())))}function triggerRefValue(t,r){t=toRaw(t);const n=t.dep;n&&triggerEffects(n)}function isRef(t){return!!(t&&t.__v_isRef===!0)}function ref(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,r){return isRef(t)?t:new RefImpl(t,r)}class RefImpl{constructor(r,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?r:toRaw(r),this._value=n?r:toReactive(r)}get value(){return trackRefValue(this),this._value}set value(r){const n=this.__v_isShallow||isShallow(r)||isReadonly(r);r=n?r:toRaw(r),hasChanged(r,this._rawValue)&&(this._rawValue=r,this._value=n?r:toReactive(r),triggerRefValue(this))}}function triggerRef(t){triggerRefValue(t)}function unref(t){return isRef(t)?t.value:t}const shallowUnwrapHandlers={get:(t,r,n)=>unref(Reflect.get(t,r,n)),set:(t,r,n,o)=>{const s=t[r];return isRef(s)&&!isRef(n)?(s.value=n,!0):Reflect.set(t,r,n,o)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}class CustomRefImpl{constructor(r){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=r(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=n,this._set=o}get value(){return this._get()}set value(r){this._set(r)}}function customRef(t){return new CustomRefImpl(t)}function toRefs(t){const r=isArray$h(t)?new Array(t.length):{};for(const n in t)r[n]=toRef(t,n);return r}class ObjectRefImpl{constructor(r,n,o){this._object=r,this._key=n,this._defaultValue=o,this.__v_isRef=!0}get value(){const r=this._object[this._key];return r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function toRef(t,r,n){const o=t[r];return isRef(o)?o:new ObjectRefImpl(t,r,n)}var _a$1;class ComputedRefImpl{constructor(r,n,o,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[_a$1]=!1,this._dirty=!0,this.effect=new ReactiveEffect(r,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=o}get value(){const r=toRaw(this);return trackRefValue(r),(r._dirty||!r._cacheable)&&(r._dirty=!1,r._value=r.effect.run()),r._value}set value(r){this._setter(r)}}_a$1="__v_isReadonly";function computed$1(t,r,n=!1){let o,s;const l=isFunction$8(t);return l?(o=t,s=NOOP):(o=t.get,s=t.set),new ComputedRefImpl(o,s,l||!s,n)}function warn$6(t,...r){}function assertNumber(t,r){}function callWithErrorHandling(t,r,n,o){let s;try{s=o?t(...o):t()}catch(l){handleError(l,r,n)}return s}function callWithAsyncErrorHandling(t,r,n,o){if(isFunction$8(t)){const l=callWithErrorHandling(t,r,n,o);return l&&isPromise$1(l)&&l.catch(d=>{handleError(d,r,n)}),l}const s=[];for(let l=0;l<t.length;l++)s.push(callWithAsyncErrorHandling(t[l],r,n,o));return s}function handleError(t,r,n,o=!0){const s=r?r.vnode:null;if(r){let l=r.parent;const d=r.proxy,g=n;for(;l;){const b=l.ec;if(b){for(let C=0;C<b.length;C++)if(b[C](t,d,g)===!1)return}l=l.parent}const y=r.appContext.config.errorHandler;if(y){callWithErrorHandling(y,null,10,[t,d,g]);return}}logError$1(t,n,s,o)}function logError$1(t,r,n,o=!0){console.error(t)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick(t){const r=currentFlushPromise||resolvedPromise;return t?r.then(this?t.bind(this):t):r}function findInsertionIndex(t){let r=flushIndex+1,n=queue.length;for(;r<n;){const o=r+n>>>1;getId$1(queue[o])<t?r=o+1:n=o}return r}function queueJob(t){(!queue.length||!queue.includes(t,isFlushing&&t.allowRecurse?flushIndex+1:flushIndex))&&(t.id==null?queue.push(t):queue.splice(findInsertionIndex(t.id),0,t),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob(t){const r=queue.indexOf(t);r>flushIndex&&queue.splice(r,1)}function queuePostFlushCb(t){isArray$h(t)?pendingPostFlushCbs.push(...t):(!activePostFlushCbs||!activePostFlushCbs.includes(t,t.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(t),queueFlush()}function flushPreFlushCbs(t,r=isFlushing?flushIndex+1:0){for(;r<queue.length;r++){const n=queue[r];n&&n.pre&&(queue.splice(r,1),r--,n())}}function flushPostFlushCbs(t){if(pendingPostFlushCbs.length){const r=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...r);return}for(activePostFlushCbs=r,activePostFlushCbs.sort((n,o)=>getId$1(n)-getId$1(o)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId$1=t=>t.id==null?1/0:t.id,comparator=(t,r)=>{const n=getId$1(t)-getId$1(r);if(n===0){if(t.pre&&!r.pre)return-1;if(r.pre&&!t.pre)return 1}return n};function flushJobs(t){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const r=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];n&&n.active!==!1&&callWithErrorHandling(n,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools$1,buffer=[];function setDevtoolsHook(t,r){var n,o;devtools$1=t,devtools$1?(devtools$1.enabled=!0,buffer.forEach(({event:s,args:l})=>devtools$1.emit(s,...l)),buffer=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((r.__VUE_DEVTOOLS_HOOK_REPLAY__=r.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(l=>{setDevtoolsHook(l,r)}),setTimeout(()=>{devtools$1||(r.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit(t,r,...n){if(t.isUnmounted)return;const o=t.vnode.props||EMPTY_OBJ$1;let s=n;const l=r.startsWith("update:"),d=l&&r.slice(7);if(d&&d in o){const C=`${d==="modelValue"?"model":d}Modifiers`,{number:x,trim:S}=o[C]||EMPTY_OBJ$1;S&&(s=n.map(_=>isString$4(_)?_.trim():_)),x&&(s=n.map(looseToNumber))}let g,y=o[g=toHandlerKey(r)]||o[g=toHandlerKey(camelize(r))];!y&&l&&(y=o[g=toHandlerKey(hyphenate(r))]),y&&callWithAsyncErrorHandling(y,t,6,s);const b=o[g+"Once"];if(b){if(!t.emitted)t.emitted={};else if(t.emitted[g])return;t.emitted[g]=!0,callWithAsyncErrorHandling(b,t,6,s)}}function normalizeEmitsOptions(t,r,n=!1){const o=r.emitsCache,s=o.get(t);if(s!==void 0)return s;const l=t.emits;let d={},g=!1;if(!isFunction$8(t)){const y=b=>{const C=normalizeEmitsOptions(b,r,!0);C&&(g=!0,extend$2(d,C))};!n&&r.mixins.length&&r.mixins.forEach(y),t.extends&&y(t.extends),t.mixins&&t.mixins.forEach(y)}return!l&&!g?(isObject$i(t)&&o.set(t,null),null):(isArray$h(l)?l.forEach(y=>d[y]=null):extend$2(d,l),isObject$i(t)&&o.set(t,d),d)}function isEmitListener(t,r){return!t||!isOn(r)?!1:(r=r.slice(2).replace(/Once$/,""),hasOwn$2(t,r[0].toLowerCase()+r.slice(1))||hasOwn$2(t,hyphenate(r))||hasOwn$2(t,r))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const r=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,r}function pushScopeId(t){currentScopeId=t}function popScopeId(){currentScopeId=null}const withScopeId=t=>withCtx;function withCtx(t,r=currentRenderingInstance,n){if(!r||t._n)return t;const o=(...s)=>{o._d&&setBlockTracking(-1);const l=setCurrentRenderingInstance(r);let d;try{d=t(...s)}finally{setCurrentRenderingInstance(l),o._d&&setBlockTracking(1)}return d};return o._n=!0,o._c=!0,o._d=!0,o}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:r,vnode:n,proxy:o,withProxy:s,props:l,propsOptions:[d],slots:g,attrs:y,emit:b,render:C,renderCache:x,data:S,setupState:_,ctx:w,inheritAttrs:$}=t;let I,B;const R=setCurrentRenderingInstance(t);try{if(n.shapeFlag&4){const M=s||o;I=normalizeVNode(C.call(M,M,x,l,_,S,w)),B=y}else{const M=r;I=normalizeVNode(M.length>1?M(l,{attrs:y,slots:g,emit:b}):M(l,null)),B=r.props?y:getFunctionalFallthrough(y)}}catch(M){blockStack.length=0,handleError(M,t,1),I=createVNode$1(Comment)}let P=I;if(B&&$!==!1){const M=Object.keys(B),{shapeFlag:O}=P;M.length&&O&7&&(d&&M.some(isModelListener)&&(B=filterModelListeners(B,d)),P=cloneVNode(P,B))}return n.dirs&&(P=cloneVNode(P),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&(P.transition=n.transition),I=P,setCurrentRenderingInstance(R),I}function filterSingleRoot(t){let r;for(let n=0;n<t.length;n++){const o=t[n];if(isVNode$1(o)){if(o.type!==Comment||o.children==="v-if"){if(r)return;r=o}}else return}return r}const getFunctionalFallthrough=t=>{let r;for(const n in t)(n==="class"||n==="style"||isOn(n))&&((r||(r={}))[n]=t[n]);return r},filterModelListeners=(t,r)=>{const n={};for(const o in t)(!isModelListener(o)||!(o.slice(9)in r))&&(n[o]=t[o]);return n};function shouldUpdateComponent(t,r,n){const{props:o,children:s,component:l}=t,{props:d,children:g,patchFlag:y}=r,b=l.emitsOptions;if(r.dirs||r.transition)return!0;if(n&&y>=0){if(y&1024)return!0;if(y&16)return o?hasPropsChanged(o,d,b):!!d;if(y&8){const C=r.dynamicProps;for(let x=0;x<C.length;x++){const S=C[x];if(d[S]!==o[S]&&!isEmitListener(b,S))return!0}}}else return(s||g)&&(!g||!g.$stable)?!0:o===d?!1:o?d?hasPropsChanged(o,d,b):!0:!!d;return!1}function hasPropsChanged(t,r,n){const o=Object.keys(r);if(o.length!==Object.keys(t).length)return!0;for(let s=0;s<o.length;s++){const l=o[s];if(r[l]!==t[l]&&!isEmitListener(n,l))return!0}return!1}function updateHOCHostEl({vnode:t,parent:r},n){for(;r&&r.subTree===t;)(t=r.vnode).el=n,r=r.parent}const isSuspense=t=>t.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(t,r,n,o,s,l,d,g,y,b){t==null?mountSuspense(r,n,o,s,l,d,g,y,b):patchSuspense(t,r,n,o,s,d,g,y,b)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent(t,r){const n=t.props&&t.props[r];isFunction$8(n)&&n()}function mountSuspense(t,r,n,o,s,l,d,g,y){const{p:b,o:{createElement:C}}=y,x=C("div"),S=t.suspense=createSuspenseBoundary(t,s,o,r,x,n,l,d,g,y);b(null,S.pendingBranch=t.ssContent,x,null,o,S,l,d),S.deps>0?(triggerEvent(t,"onPending"),triggerEvent(t,"onFallback"),b(null,t.ssFallback,r,n,o,null,l,d),setActiveBranch(S,t.ssFallback)):S.resolve()}function patchSuspense(t,r,n,o,s,l,d,g,{p:y,um:b,o:{createElement:C}}){const x=r.suspense=t.suspense;x.vnode=r,r.el=t.el;const S=r.ssContent,_=r.ssFallback,{activeBranch:w,pendingBranch:$,isInFallback:I,isHydrating:B}=x;if($)x.pendingBranch=S,isSameVNodeType(S,$)?(y($,S,x.hiddenContainer,null,s,x,l,d,g),x.deps<=0?x.resolve():I&&(y(w,_,n,o,s,null,l,d,g),setActiveBranch(x,_))):(x.pendingId++,B?(x.isHydrating=!1,x.activeBranch=$):b($,s,x),x.deps=0,x.effects.length=0,x.hiddenContainer=C("div"),I?(y(null,S,x.hiddenContainer,null,s,x,l,d,g),x.deps<=0?x.resolve():(y(w,_,n,o,s,null,l,d,g),setActiveBranch(x,_))):w&&isSameVNodeType(S,w)?(y(w,S,n,o,s,x,l,d,g),x.resolve(!0)):(y(null,S,x.hiddenContainer,null,s,x,l,d,g),x.deps<=0&&x.resolve()));else if(w&&isSameVNodeType(S,w))y(w,S,n,o,s,x,l,d,g),setActiveBranch(x,S);else if(triggerEvent(r,"onPending"),x.pendingBranch=S,x.pendingId++,y(null,S,x.hiddenContainer,null,s,x,l,d,g),x.deps<=0)x.resolve();else{const{timeout:R,pendingId:P}=x;R>0?setTimeout(()=>{x.pendingId===P&&x.fallback(_)},R):R===0&&x.fallback(_)}}function createSuspenseBoundary(t,r,n,o,s,l,d,g,y,b,C=!1){const{p:x,m:S,um:_,n:w,o:{parentNode:$,remove:I}}=b,B=t.props?toNumber$2(t.props.timeout):void 0,R={vnode:t,parent:r,parentComponent:n,isSVG:d,container:o,hiddenContainer:s,anchor:l,deps:0,pendingId:0,timeout:typeof B=="number"?B:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:C,isUnmounted:!1,effects:[],resolve(P=!1){const{vnode:M,activeBranch:O,pendingBranch:D,pendingId:N,effects:H,parentComponent:Q,container:G}=R;if(R.isHydrating)R.isHydrating=!1;else if(!P){const j=O&&D.transition&&D.transition.mode==="out-in";j&&(O.transition.afterLeave=()=>{N===R.pendingId&&S(D,G,Y,0)});let{anchor:Y}=R;O&&(Y=w(O),_(O,Q,R,!0)),j||S(D,G,Y,0)}setActiveBranch(R,D),R.pendingBranch=null,R.isInFallback=!1;let K=R.parent,W=!1;for(;K;){if(K.pendingBranch){K.effects.push(...H),W=!0;break}K=K.parent}W||queuePostFlushCb(H),R.effects=[],triggerEvent(M,"onResolve")},fallback(P){if(!R.pendingBranch)return;const{vnode:M,activeBranch:O,parentComponent:D,container:N,isSVG:H}=R;triggerEvent(M,"onFallback");const Q=w(O),G=()=>{!R.isInFallback||(x(null,P,N,Q,D,null,H,g,y),setActiveBranch(R,P))},K=P.transition&&P.transition.mode==="out-in";K&&(O.transition.afterLeave=G),R.isInFallback=!0,_(O,D,null,!0),K||G()},move(P,M,O){R.activeBranch&&S(R.activeBranch,P,M,O),R.container=P},next(){return R.activeBranch&&w(R.activeBranch)},registerDep(P,M){const O=!!R.pendingBranch;O&&R.deps++;const D=P.vnode.el;P.asyncDep.catch(N=>{handleError(N,P,0)}).then(N=>{if(P.isUnmounted||R.isUnmounted||R.pendingId!==P.suspenseId)return;P.asyncResolved=!0;const{vnode:H}=P;handleSetupResult(P,N,!1),D&&(H.el=D);const Q=!D&&P.subTree.el;M(P,H,$(D||P.subTree.el),D?null:w(P.subTree),R,d,y),Q&&I(Q),updateHOCHostEl(P,H.el),O&&--R.deps===0&&R.resolve()})},unmount(P,M){R.isUnmounted=!0,R.activeBranch&&_(R.activeBranch,n,P,M),R.pendingBranch&&_(R.pendingBranch,n,P,M)}};return R}function hydrateSuspense(t,r,n,o,s,l,d,g,y){const b=r.suspense=createSuspenseBoundary(r,o,n,t.parentNode,document.createElement("div"),null,s,l,d,g,!0),C=y(t,b.pendingBranch=r.ssContent,n,b,l,d);return b.deps===0&&b.resolve(),C}function normalizeSuspenseChildren(t){const{shapeFlag:r,children:n}=t,o=r&32;t.ssContent=normalizeSuspenseSlot(o?n.default:n),t.ssFallback=o?normalizeSuspenseSlot(n.fallback):createVNode$1(Comment)}function normalizeSuspenseSlot(t){let r;if(isFunction$8(t)){const n=isBlockTreeEnabled&&t._c;n&&(t._d=!1,openBlock()),t=t(),n&&(t._d=!0,r=currentBlock,closeBlock())}return isArray$h(t)&&(t=filterSingleRoot(t)),t=normalizeVNode(t),r&&!t.dynamicChildren&&(t.dynamicChildren=r.filter(n=>n!==t)),t}function queueEffectWithSuspense(t,r){r&&r.pendingBranch?isArray$h(t)?r.effects.push(...t):r.effects.push(t):queuePostFlushCb(t)}function setActiveBranch(t,r){t.activeBranch=r;const{vnode:n,parentComponent:o}=t,s=n.el=r.el;o&&o.subTree===n&&(o.vnode.el=s,updateHOCHostEl(o,s))}function provide(t,r){if(currentInstance){let n=currentInstance.provides;const o=currentInstance.parent&¤tInstance.parent.provides;o===n&&(n=currentInstance.provides=Object.create(o)),n[t]=r}}function inject(t,r,n=!1){const o=currentInstance||currentRenderingInstance;if(o){const s=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(s&&t in s)return s[t];if(arguments.length>1)return n&&isFunction$8(r)?r.call(o.proxy):r}}function watchEffect(t,r){return doWatch(t,null,r)}function watchPostEffect(t,r){return doWatch(t,null,{flush:"post"})}function watchSyncEffect(t,r){return doWatch(t,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(t,r,n){return doWatch(t,r,n)}function doWatch(t,r,{immediate:n,deep:o,flush:s,onTrack:l,onTrigger:d}=EMPTY_OBJ$1){const g=getCurrentScope()===(currentInstance==null?void 0:currentInstance.scope)?currentInstance:null;let y,b=!1,C=!1;if(isRef(t)?(y=()=>t.value,b=isShallow(t)):isReactive(t)?(y=()=>t,o=!0):isArray$h(t)?(C=!0,b=t.some(P=>isReactive(P)||isShallow(P)),y=()=>t.map(P=>{if(isRef(P))return P.value;if(isReactive(P))return traverse$1(P);if(isFunction$8(P))return callWithErrorHandling(P,g,2)})):isFunction$8(t)?r?y=()=>callWithErrorHandling(t,g,2):y=()=>{if(!(g&&g.isUnmounted))return x&&x(),callWithAsyncErrorHandling(t,g,3,[S])}:y=NOOP,r&&o){const P=y;y=()=>traverse$1(P())}let x,S=P=>{x=B.onStop=()=>{callWithErrorHandling(P,g,4)}},_;if(isInSSRComponentSetup)if(S=NOOP,r?n&&callWithAsyncErrorHandling(r,g,3,[y(),C?[]:void 0,S]):y(),s==="sync"){const P=useSSRContext();_=P.__watcherHandles||(P.__watcherHandles=[])}else return NOOP;let w=C?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const $=()=>{if(!!B.active)if(r){const P=B.run();(o||b||(C?P.some((M,O)=>hasChanged(M,w[O])):hasChanged(P,w)))&&(x&&x(),callWithAsyncErrorHandling(r,g,3,[P,w===INITIAL_WATCHER_VALUE?void 0:C&&w[0]===INITIAL_WATCHER_VALUE?[]:w,S]),w=P)}else B.run()};$.allowRecurse=!!r;let I;s==="sync"?I=$:s==="post"?I=()=>queuePostRenderEffect($,g&&g.suspense):($.pre=!0,g&&($.id=g.uid),I=()=>queueJob($));const B=new ReactiveEffect(y,I);r?n?$():w=B.run():s==="post"?queuePostRenderEffect(B.run.bind(B),g&&g.suspense):B.run();const R=()=>{B.stop(),g&&g.scope&&remove(g.scope.effects,B)};return _&&_.push(R),R}function instanceWatch(t,r,n){const o=this.proxy,s=isString$4(t)?t.includes(".")?createPathGetter(o,t):()=>o[t]:t.bind(o,o);let l;isFunction$8(r)?l=r:(l=r.handler,n=r);const d=currentInstance;setCurrentInstance(this);const g=doWatch(s,l.bind(o),n);return d?setCurrentInstance(d):unsetCurrentInstance(),g}function createPathGetter(t,r){const n=r.split(".");return()=>{let o=t;for(let s=0;s<n.length&&o;s++)o=o[n[s]];return o}}function traverse$1(t,r){if(!isObject$i(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),isRef(t))traverse$1(t.value,r);else if(isArray$h(t))for(let n=0;n<t.length;n++)traverse$1(t[n],r);else if(isSet$2(t)||isMap$2(t))t.forEach(n=>{traverse$1(n,r)});else if(isPlainObject$6(t))for(const n in t)traverse$1(t[n],r);return t}function useTransitionState(){const t={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionImpl={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},setup(t,{slots:r}){const n=getCurrentInstance(),o=useTransitionState();let s;return()=>{const l=r.default&&getTransitionRawChildren(r.default(),!0);if(!l||!l.length)return;let d=l[0];if(l.length>1){for(const $ of l)if($.type!==Comment){d=$;break}}const g=toRaw(t),{mode:y}=g;if(o.isLeaving)return emptyPlaceholder(d);const b=getKeepAliveChild(d);if(!b)return emptyPlaceholder(d);const C=resolveTransitionHooks(b,g,o,n);setTransitionHooks(b,C);const x=n.subTree,S=x&&getKeepAliveChild(x);let _=!1;const{getTransitionKey:w}=b.type;if(w){const $=w();s===void 0?s=$:$!==s&&(s=$,_=!0)}if(S&&S.type!==Comment&&(!isSameVNodeType(b,S)||_)){const $=resolveTransitionHooks(S,g,o,n);if(setTransitionHooks(S,$),y==="out-in")return o.isLeaving=!0,$.afterLeave=()=>{o.isLeaving=!1,n.update.active!==!1&&n.update()},emptyPlaceholder(d);y==="in-out"&&b.type!==Comment&&($.delayLeave=(I,B,R)=>{const P=getLeavingNodesForType(o,S);P[String(S.key)]=S,I._leaveCb=()=>{B(),I._leaveCb=void 0,delete C.delayedLeave},C.delayedLeave=R})}return d}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,r){const{leavingVNodes:n}=t;let o=n.get(r.type);return o||(o=Object.create(null),n.set(r.type,o)),o}function resolveTransitionHooks(t,r,n,o){const{appear:s,mode:l,persisted:d=!1,onBeforeEnter:g,onEnter:y,onAfterEnter:b,onEnterCancelled:C,onBeforeLeave:x,onLeave:S,onAfterLeave:_,onLeaveCancelled:w,onBeforeAppear:$,onAppear:I,onAfterAppear:B,onAppearCancelled:R}=r,P=String(t.key),M=getLeavingNodesForType(n,t),O=(H,Q)=>{H&&callWithAsyncErrorHandling(H,o,9,Q)},D=(H,Q)=>{const G=Q[1];O(H,Q),isArray$h(H)?H.every(K=>K.length<=1)&&G():H.length<=1&&G()},N={mode:l,persisted:d,beforeEnter(H){let Q=g;if(!n.isMounted)if(s)Q=$||g;else return;H._leaveCb&&H._leaveCb(!0);const G=M[P];G&&isSameVNodeType(t,G)&&G.el._leaveCb&&G.el._leaveCb(),O(Q,[H])},enter(H){let Q=y,G=b,K=C;if(!n.isMounted)if(s)Q=I||y,G=B||b,K=R||C;else return;let W=!1;const j=H._enterCb=Y=>{W||(W=!0,Y?O(K,[H]):O(G,[H]),N.delayedLeave&&N.delayedLeave(),H._enterCb=void 0)};Q?D(Q,[H,j]):j()},leave(H,Q){const G=String(t.key);if(H._enterCb&&H._enterCb(!0),n.isUnmounting)return Q();O(x,[H]);let K=!1;const W=H._leaveCb=j=>{K||(K=!0,Q(),j?O(w,[H]):O(_,[H]),H._leaveCb=void 0,M[G]===t&&delete M[G])};M[G]=t,S?D(S,[H,W]):W()},clone(H){return resolveTransitionHooks(H,r,n,o)}};return N}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getKeepAliveChild(t){return isKeepAlive(t)?t.children?t.children[0]:void 0:t}function setTransitionHooks(t,r){t.shapeFlag&6&&t.component?setTransitionHooks(t.component.subTree,r):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function getTransitionRawChildren(t,r=!1,n){let o=[],s=0;for(let l=0;l<t.length;l++){let d=t[l];const g=n==null?d.key:String(n)+String(d.key!=null?d.key:l);d.type===Fragment?(d.patchFlag&128&&s++,o=o.concat(getTransitionRawChildren(d.children,r,g))):(r||d.type!==Comment)&&o.push(g!=null?cloneVNode(d,{key:g}):d)}if(s>1)for(let l=0;l<o.length;l++)o[l].patchFlag=-2;return o}function defineComponent(t){return isFunction$8(t)?{setup:t,name:t.name}:t}const isAsyncWrapper=t=>!!t.type.__asyncLoader;function defineAsyncComponent(t){isFunction$8(t)&&(t={loader:t});const{loader:r,loadingComponent:n,errorComponent:o,delay:s=200,timeout:l,suspensible:d=!0,onError:g}=t;let y=null,b,C=0;const x=()=>(C++,y=null,S()),S=()=>{let _;return y||(_=y=r().catch(w=>{if(w=w instanceof Error?w:new Error(String(w)),g)return new Promise(($,I)=>{g(w,()=>$(x()),()=>I(w),C+1)});throw w}).then(w=>_!==y&&y?y:(w&&(w.__esModule||w[Symbol.toStringTag]==="Module")&&(w=w.default),b=w,w)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:S,get __asyncResolved(){return b},setup(){const _=currentInstance;if(b)return()=>createInnerComp(b,_);const w=R=>{y=null,handleError(R,_,13,!o)};if(d&&_.suspense||isInSSRComponentSetup)return S().then(R=>()=>createInnerComp(R,_)).catch(R=>(w(R),()=>o?createVNode$1(o,{error:R}):null));const $=ref(!1),I=ref(),B=ref(!!s);return s&&setTimeout(()=>{B.value=!1},s),l!=null&&setTimeout(()=>{if(!$.value&&!I.value){const R=new Error(`Async component timed out after ${l}ms.`);w(R),I.value=R}},l),S().then(()=>{$.value=!0,_.parent&&isKeepAlive(_.parent.vnode)&&queueJob(_.parent.update)}).catch(R=>{w(R),I.value=R}),()=>{if($.value&&b)return createInnerComp(b,_);if(I.value&&o)return createVNode$1(o,{error:I.value});if(n&&!B.value)return createVNode$1(n)}}})}function createInnerComp(t,r){const{ref:n,props:o,children:s,ce:l}=r.vnode,d=createVNode$1(t,o,s);return d.ref=n,d.ce=l,delete r.vnode.ce,d}const isKeepAlive=t=>t.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:r}){const n=getCurrentInstance(),o=n.ctx;if(!o.renderer)return()=>{const R=r.default&&r.default();return R&&R.length===1?R[0]:R};const s=new Map,l=new Set;let d=null;const g=n.suspense,{renderer:{p:y,m:b,um:C,o:{createElement:x}}}=o,S=x("div");o.activate=(R,P,M,O,D)=>{const N=R.component;b(R,P,M,0,g),y(N.vnode,R,P,M,N,g,O,R.slotScopeIds,D),queuePostRenderEffect(()=>{N.isDeactivated=!1,N.a&&invokeArrayFns(N.a);const H=R.props&&R.props.onVnodeMounted;H&&invokeVNodeHook(H,N.parent,R)},g)},o.deactivate=R=>{const P=R.component;b(R,S,null,1,g),queuePostRenderEffect(()=>{P.da&&invokeArrayFns(P.da);const M=R.props&&R.props.onVnodeUnmounted;M&&invokeVNodeHook(M,P.parent,R),P.isDeactivated=!0},g)};function _(R){resetShapeFlag(R),C(R,n,g,!0)}function w(R){s.forEach((P,M)=>{const O=getComponentName(P.type);O&&(!R||!R(O))&&$(M)})}function $(R){const P=s.get(R);!d||!isSameVNodeType(P,d)?_(P):d&&resetShapeFlag(d),s.delete(R),l.delete(R)}watch(()=>[t.include,t.exclude],([R,P])=>{R&&w(M=>matches(R,M)),P&&w(M=>!matches(P,M))},{flush:"post",deep:!0});let I=null;const B=()=>{I!=null&&s.set(I,getInnerChild(n.subTree))};return onMounted(B),onUpdated(B),onBeforeUnmount(()=>{s.forEach(R=>{const{subTree:P,suspense:M}=n,O=getInnerChild(P);if(R.type===O.type&&R.key===O.key){resetShapeFlag(O);const D=O.component.da;D&&queuePostRenderEffect(D,M);return}_(R)})}),()=>{if(I=null,!r.default)return null;const R=r.default(),P=R[0];if(R.length>1)return d=null,R;if(!isVNode$1(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return d=null,P;let M=getInnerChild(P);const O=M.type,D=getComponentName(isAsyncWrapper(M)?M.type.__asyncResolved||{}:O),{include:N,exclude:H,max:Q}=t;if(N&&(!D||!matches(N,D))||H&&D&&matches(H,D))return d=M,P;const G=M.key==null?O:M.key,K=s.get(G);return M.el&&(M=cloneVNode(M),P.shapeFlag&128&&(P.ssContent=M)),I=G,K?(M.el=K.el,M.component=K.component,M.transition&&setTransitionHooks(M,M.transition),M.shapeFlag|=512,l.delete(G),l.add(G)):(l.add(G),Q&&l.size>parseInt(Q,10)&&$(l.values().next().value)),M.shapeFlag|=256,d=M,isSuspense(P.type)?P:M}}},KeepAlive=KeepAliveImpl;function matches(t,r){return isArray$h(t)?t.some(n=>matches(n,r)):isString$4(t)?t.split(",").includes(r):isRegExp$2(t)?t.test(r):!1}function onActivated(t,r){registerKeepAliveHook(t,"a",r)}function onDeactivated(t,r){registerKeepAliveHook(t,"da",r)}function registerKeepAliveHook(t,r,n=currentInstance){const o=t.__wdc||(t.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return t()});if(injectHook(r,o,n),n){let s=n.parent;for(;s&&s.parent;)isKeepAlive(s.parent.vnode)&&injectToKeepAliveRoot(o,r,n,s),s=s.parent}}function injectToKeepAliveRoot(t,r,n,o){const s=injectHook(r,t,o,!0);onUnmounted(()=>{remove(o[r],s)},n)}function resetShapeFlag(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function getInnerChild(t){return t.shapeFlag&128?t.ssContent:t}function injectHook(t,r,n=currentInstance,o=!1){if(n){const s=n[t]||(n[t]=[]),l=r.__weh||(r.__weh=(...d)=>{if(n.isUnmounted)return;pauseTracking(),setCurrentInstance(n);const g=callWithAsyncErrorHandling(r,n,t,d);return unsetCurrentInstance(),resetTracking(),g});return o?s.unshift(l):s.push(l),l}}const createHook=t=>(r,n=currentInstance)=>(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...o)=>r(...o),n),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,r=currentInstance){injectHook("ec",t,r)}function withDirectives(t,r){const n=currentRenderingInstance;if(n===null)return t;const o=getExposeProxy(n)||n.proxy,s=t.dirs||(t.dirs=[]);for(let l=0;l<r.length;l++){let[d,g,y,b=EMPTY_OBJ$1]=r[l];d&&(isFunction$8(d)&&(d={mounted:d,updated:d}),d.deep&&traverse$1(g),s.push({dir:d,instance:o,value:g,oldValue:void 0,arg:y,modifiers:b}))}return t}function invokeDirectiveHook(t,r,n,o){const s=t.dirs,l=r&&r.dirs;for(let d=0;d<s.length;d++){const g=s[d];l&&(g.oldValue=l[d].value);let y=g.dir[o];y&&(pauseTracking(),callWithAsyncErrorHandling(y,n,8,[t.el,g,t,r]),resetTracking())}}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(t,r){return resolveAsset(COMPONENTS,t,!0,r)||t}const NULL_DYNAMIC_COMPONENT=Symbol();function resolveDynamicComponent(t){return isString$4(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveDirective(t){return resolveAsset(DIRECTIVES,t)}function resolveAsset(t,r,n=!0,o=!1){const s=currentRenderingInstance||currentInstance;if(s){const l=s.type;if(t===COMPONENTS){const g=getComponentName(l,!1);if(g&&(g===r||g===camelize(r)||g===capitalize$3(camelize(r))))return l}const d=resolve(s[t]||l[t],r)||resolve(s.appContext[t],r);return!d&&o?l:d}}function resolve(t,r){return t&&(t[r]||t[camelize(r)]||t[capitalize$3(camelize(r))])}function renderList(t,r,n,o){let s;const l=n&&n[o];if(isArray$h(t)||isString$4(t)){s=new Array(t.length);for(let d=0,g=t.length;d<g;d++)s[d]=r(t[d],d,void 0,l&&l[d])}else if(typeof t=="number"){s=new Array(t);for(let d=0;d<t;d++)s[d]=r(d+1,d,void 0,l&&l[d])}else if(isObject$i(t))if(t[Symbol.iterator])s=Array.from(t,(d,g)=>r(d,g,void 0,l&&l[g]));else{const d=Object.keys(t);s=new Array(d.length);for(let g=0,y=d.length;g<y;g++){const b=d[g];s[g]=r(t[b],b,g,l&&l[g])}}else s=[];return n&&(n[o]=s),s}function createSlots(t,r){for(let n=0;n<r.length;n++){const o=r[n];if(isArray$h(o))for(let s=0;s<o.length;s++)t[o[s].name]=o[s].fn;else o&&(t[o.name]=o.key?(...s)=>{const l=o.fn(...s);return l&&(l.key=o.key),l}:o.fn)}return t}function renderSlot(t,r,n={},o,s){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return r!=="default"&&(n.name=r),createVNode$1("slot",n,o&&o());let l=t[r];l&&l._c&&(l._d=!1),openBlock();const d=l&&ensureValidVNode$1(l(n)),g=createBlock(Fragment,{key:n.key||d&&d.key||`_${r}`},d||(o?o():[]),d&&t._===1?64:-2);return!s&&g.scopeId&&(g.slotScopeIds=[g.scopeId+"-s"]),l&&l._c&&(l._d=!0),g}function ensureValidVNode$1(t){return t.some(r=>isVNode$1(r)?!(r.type===Comment||r.type===Fragment&&!ensureValidVNode$1(r.children)):!0)?t:null}function toHandlers(t,r){const n={};for(const o in t)n[r&&/[A-Z]/.test(o)?`on:${o}`:toHandlerKey(o)]=t[o];return n}const getPublicInstance=t=>t?isStatefulComponent(t)?getExposeProxy(t)||t.proxy:getPublicInstance(t.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>queueJob(t.update)),$nextTick:t=>t.n||(t.n=nextTick.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,r)=>t!==EMPTY_OBJ$1&&!t.__isScriptSetup&&hasOwn$2(t,r),PublicInstanceProxyHandlers={get({_:t},r){const{ctx:n,setupState:o,data:s,props:l,accessCache:d,type:g,appContext:y}=t;let b;if(r[0]!=="$"){const _=d[r];if(_!==void 0)switch(_){case 1:return o[r];case 2:return s[r];case 4:return n[r];case 3:return l[r]}else{if(hasSetupBinding(o,r))return d[r]=1,o[r];if(s!==EMPTY_OBJ$1&&hasOwn$2(s,r))return d[r]=2,s[r];if((b=t.propsOptions[0])&&hasOwn$2(b,r))return d[r]=3,l[r];if(n!==EMPTY_OBJ$1&&hasOwn$2(n,r))return d[r]=4,n[r];shouldCacheAccess&&(d[r]=0)}}const C=publicPropertiesMap[r];let x,S;if(C)return r==="$attrs"&&track(t,"get",r),C(t);if((x=g.__cssModules)&&(x=x[r]))return x;if(n!==EMPTY_OBJ$1&&hasOwn$2(n,r))return d[r]=4,n[r];if(S=y.config.globalProperties,hasOwn$2(S,r))return S[r]},set({_:t},r,n){const{data:o,setupState:s,ctx:l}=t;return hasSetupBinding(s,r)?(s[r]=n,!0):o!==EMPTY_OBJ$1&&hasOwn$2(o,r)?(o[r]=n,!0):hasOwn$2(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(l[r]=n,!0)},has({_:{data:t,setupState:r,accessCache:n,ctx:o,appContext:s,propsOptions:l}},d){let g;return!!n[d]||t!==EMPTY_OBJ$1&&hasOwn$2(t,d)||hasSetupBinding(r,d)||(g=l[0])&&hasOwn$2(g,d)||hasOwn$2(o,d)||hasOwn$2(publicPropertiesMap,d)||hasOwn$2(s.config.globalProperties,d)},defineProperty(t,r,n){return n.get!=null?t._.accessCache[r]=0:hasOwn$2(n,"value")&&this.set(t,r,n.value,null),Reflect.defineProperty(t,r,n)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get(t,r){if(r!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(t,r,t)},has(t,r){return r[0]!=="_"&&!isGloballyWhitelisted(r)}});let shouldCacheAccess=!0;function applyOptions(t){const r=resolveMergedOptions(t),n=t.proxy,o=t.ctx;shouldCacheAccess=!1,r.beforeCreate&&callHook$1(r.beforeCreate,t,"bc");const{data:s,computed:l,methods:d,watch:g,provide:y,inject:b,created:C,beforeMount:x,mounted:S,beforeUpdate:_,updated:w,activated:$,deactivated:I,beforeDestroy:B,beforeUnmount:R,destroyed:P,unmounted:M,render:O,renderTracked:D,renderTriggered:N,errorCaptured:H,serverPrefetch:Q,expose:G,inheritAttrs:K,components:W,directives:j,filters:Y}=r;if(b&&resolveInjections(b,o,null,t.appContext.config.unwrapInjectedRef),d)for(const re in d){const te=d[re];isFunction$8(te)&&(o[re]=te.bind(n))}if(s){const re=s.call(n,n);isObject$i(re)&&(t.data=reactive(re))}if(shouldCacheAccess=!0,l)for(const re in l){const te=l[re],oe=isFunction$8(te)?te.bind(n,n):isFunction$8(te.get)?te.get.bind(n,n):NOOP,ae=!isFunction$8(te)&&isFunction$8(te.set)?te.set.bind(n):NOOP,se=computed({get:oe,set:ae});Object.defineProperty(o,re,{enumerable:!0,configurable:!0,get:()=>se.value,set:ue=>se.value=ue})}if(g)for(const re in g)createWatcher(g[re],o,n,re);if(y){const re=isFunction$8(y)?y.call(n):y;Reflect.ownKeys(re).forEach(te=>{provide(te,re[te])})}C&&callHook$1(C,t,"c");function X(re,te){isArray$h(te)?te.forEach(oe=>re(oe.bind(n))):te&&re(te.bind(n))}if(X(onBeforeMount,x),X(onMounted,S),X(onBeforeUpdate,_),X(onUpdated,w),X(onActivated,$),X(onDeactivated,I),X(onErrorCaptured,H),X(onRenderTracked,D),X(onRenderTriggered,N),X(onBeforeUnmount,R),X(onUnmounted,M),X(onServerPrefetch,Q),isArray$h(G))if(G.length){const re=t.exposed||(t.exposed={});G.forEach(te=>{Object.defineProperty(re,te,{get:()=>n[te],set:oe=>n[te]=oe})})}else t.exposed||(t.exposed={});O&&t.render===NOOP&&(t.render=O),K!=null&&(t.inheritAttrs=K),W&&(t.components=W),j&&(t.directives=j)}function resolveInjections(t,r,n=NOOP,o=!1){isArray$h(t)&&(t=normalizeInject(t));for(const s in t){const l=t[s];let d;isObject$i(l)?"default"in l?d=inject(l.from||s,l.default,!0):d=inject(l.from||s):d=inject(l),isRef(d)&&o?Object.defineProperty(r,s,{enumerable:!0,configurable:!0,get:()=>d.value,set:g=>d.value=g}):r[s]=d}}function callHook$1(t,r,n){callWithAsyncErrorHandling(isArray$h(t)?t.map(o=>o.bind(r.proxy)):t.bind(r.proxy),r,n)}function createWatcher(t,r,n,o){const s=o.includes(".")?createPathGetter(n,o):()=>n[o];if(isString$4(t)){const l=r[t];isFunction$8(l)&&watch(s,l)}else if(isFunction$8(t))watch(s,t.bind(n));else if(isObject$i(t))if(isArray$h(t))t.forEach(l=>createWatcher(l,r,n,o));else{const l=isFunction$8(t.handler)?t.handler.bind(n):r[t.handler];isFunction$8(l)&&watch(s,l,t)}}function resolveMergedOptions(t){const r=t.type,{mixins:n,extends:o}=r,{mixins:s,optionsCache:l,config:{optionMergeStrategies:d}}=t.appContext,g=l.get(r);let y;return g?y=g:!s.length&&!n&&!o?y=r:(y={},s.length&&s.forEach(b=>mergeOptions$1(y,b,d,!0)),mergeOptions$1(y,r,d)),isObject$i(r)&&l.set(r,y),y}function mergeOptions$1(t,r,n,o=!1){const{mixins:s,extends:l}=r;l&&mergeOptions$1(t,l,n,!0),s&&s.forEach(d=>mergeOptions$1(t,d,n,!0));for(const d in r)if(!(o&&d==="expose")){const g=internalOptionMergeStrats[d]||n&&n[d];t[d]=g?g(t[d],r[d]):r[d]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeObjectOptions,emits:mergeObjectOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,r){return r?t?function(){return extend$2(isFunction$8(t)?t.call(this,this):t,isFunction$8(r)?r.call(this,this):r)}:r:t}function mergeInject(t,r){return mergeObjectOptions(normalizeInject(t),normalizeInject(r))}function normalizeInject(t){if(isArray$h(t)){const r={};for(let n=0;n<t.length;n++)r[t[n]]=t[n];return r}return t}function mergeAsArray(t,r){return t?[...new Set([].concat(t,r))]:r}function mergeObjectOptions(t,r){return t?extend$2(extend$2(Object.create(null),t),r):r}function mergeWatchOptions(t,r){if(!t)return r;if(!r)return t;const n=extend$2(Object.create(null),t);for(const o in r)n[o]=mergeAsArray(t[o],r[o]);return n}function initProps$1(t,r,n,o=!1){const s={},l={};def(l,InternalObjectKey,1),t.propsDefaults=Object.create(null),setFullProps(t,r,s,l);for(const d in t.propsOptions[0])d in s||(s[d]=void 0);n?t.props=o?s:shallowReactive(s):t.type.props?t.props=s:t.props=l,t.attrs=l}function updateProps$2(t,r,n,o){const{props:s,attrs:l,vnode:{patchFlag:d}}=t,g=toRaw(s),[y]=t.propsOptions;let b=!1;if((o||d>0)&&!(d&16)){if(d&8){const C=t.vnode.dynamicProps;for(let x=0;x<C.length;x++){let S=C[x];if(isEmitListener(t.emitsOptions,S))continue;const _=r[S];if(y)if(hasOwn$2(l,S))_!==l[S]&&(l[S]=_,b=!0);else{const w=camelize(S);s[w]=resolvePropValue(y,g,w,_,t,!1)}else _!==l[S]&&(l[S]=_,b=!0)}}}else{setFullProps(t,r,s,l)&&(b=!0);let C;for(const x in g)(!r||!hasOwn$2(r,x)&&((C=hyphenate(x))===x||!hasOwn$2(r,C)))&&(y?n&&(n[x]!==void 0||n[C]!==void 0)&&(s[x]=resolvePropValue(y,g,x,void 0,t,!0)):delete s[x]);if(l!==g)for(const x in l)(!r||!hasOwn$2(r,x)&&!0)&&(delete l[x],b=!0)}b&&trigger$3(t,"set","$attrs")}function setFullProps(t,r,n,o){const[s,l]=t.propsOptions;let d=!1,g;if(r)for(let y in r){if(isReservedProp(y))continue;const b=r[y];let C;s&&hasOwn$2(s,C=camelize(y))?!l||!l.includes(C)?n[C]=b:(g||(g={}))[C]=b:isEmitListener(t.emitsOptions,y)||(!(y in o)||b!==o[y])&&(o[y]=b,d=!0)}if(l){const y=toRaw(n),b=g||EMPTY_OBJ$1;for(let C=0;C<l.length;C++){const x=l[C];n[x]=resolvePropValue(s,y,x,b[x],t,!hasOwn$2(b,x))}}return d}function resolvePropValue(t,r,n,o,s,l){const d=t[n];if(d!=null){const g=hasOwn$2(d,"default");if(g&&o===void 0){const y=d.default;if(d.type!==Function&&isFunction$8(y)){const{propsDefaults:b}=s;n in b?o=b[n]:(setCurrentInstance(s),o=b[n]=y.call(null,r),unsetCurrentInstance())}else o=y}d[0]&&(l&&!g?o=!1:d[1]&&(o===""||o===hyphenate(n))&&(o=!0))}return o}function normalizePropsOptions(t,r,n=!1){const o=r.propsCache,s=o.get(t);if(s)return s;const l=t.props,d={},g=[];let y=!1;if(!isFunction$8(t)){const C=x=>{y=!0;const[S,_]=normalizePropsOptions(x,r,!0);extend$2(d,S),_&&g.push(..._)};!n&&r.mixins.length&&r.mixins.forEach(C),t.extends&&C(t.extends),t.mixins&&t.mixins.forEach(C)}if(!l&&!y)return isObject$i(t)&&o.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$h(l))for(let C=0;C<l.length;C++){const x=camelize(l[C]);validatePropName(x)&&(d[x]=EMPTY_OBJ$1)}else if(l)for(const C in l){const x=camelize(C);if(validatePropName(x)){const S=l[C],_=d[x]=isArray$h(S)||isFunction$8(S)?{type:S}:Object.assign({},S);if(_){const w=getTypeIndex(Boolean,_.type),$=getTypeIndex(String,_.type);_[0]=w>-1,_[1]=$<0||w<$,(w>-1||hasOwn$2(_,"default"))&&g.push(x)}}}const b=[d,g];return isObject$i(t)&&o.set(t,b),b}function validatePropName(t){return t[0]!=="$"}function getType(t){const r=t&&t.toString().match(/^\s*(function|class) (\w+)/);return r?r[2]:t===null?"null":""}function isSameType(t,r){return getType(t)===getType(r)}function getTypeIndex(t,r){return isArray$h(r)?r.findIndex(n=>isSameType(n,t)):isFunction$8(r)&&isSameType(r,t)?0:-1}const isInternalKey=t=>t[0]==="_"||t==="$stable",normalizeSlotValue=t=>isArray$h(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot$1=(t,r,n)=>{if(r._n)return r;const o=withCtx((...s)=>normalizeSlotValue(r(...s)),n);return o._c=!1,o},normalizeObjectSlots=(t,r,n)=>{const o=t._ctx;for(const s in t){if(isInternalKey(s))continue;const l=t[s];if(isFunction$8(l))r[s]=normalizeSlot$1(s,l,o);else if(l!=null){const d=normalizeSlotValue(l);r[s]=()=>d}}},normalizeVNodeSlots=(t,r)=>{const n=normalizeSlotValue(r);t.slots.default=()=>n},initSlots=(t,r)=>{if(t.vnode.shapeFlag&32){const n=r._;n?(t.slots=toRaw(r),def(r,"_",n)):normalizeObjectSlots(r,t.slots={})}else t.slots={},r&&normalizeVNodeSlots(t,r);def(t.slots,InternalObjectKey,1)},updateSlots=(t,r,n)=>{const{vnode:o,slots:s}=t;let l=!0,d=EMPTY_OBJ$1;if(o.shapeFlag&32){const g=r._;g?n&&g===1?l=!1:(extend$2(s,r),!n&&g===1&&delete s._):(l=!r.$stable,normalizeObjectSlots(r,s)),d=r}else r&&(normalizeVNodeSlots(t,r),d={default:1});if(l)for(const g in s)!isInternalKey(g)&&!(g in d)&&delete s[g]};function createAppContext(){return{app:null,config:{isNativeTag:NO,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 uid$1=0;function createAppAPI(t,r){return function(o,s=null){isFunction$8(o)||(o=Object.assign({},o)),s!=null&&!isObject$i(s)&&(s=null);const l=createAppContext(),d=new Set;let g=!1;const y=l.app={_uid:uid$1++,_component:o,_props:s,_container:null,_context:l,_instance:null,version:version$4,get config(){return l.config},set config(b){},use(b,...C){return d.has(b)||(b&&isFunction$8(b.install)?(d.add(b),b.install(y,...C)):isFunction$8(b)&&(d.add(b),b(y,...C))),y},mixin(b){return l.mixins.includes(b)||l.mixins.push(b),y},component(b,C){return C?(l.components[b]=C,y):l.components[b]},directive(b,C){return C?(l.directives[b]=C,y):l.directives[b]},mount(b,C,x){if(!g){const S=createVNode$1(o,s);return S.appContext=l,C&&r?r(S,b):t(S,b,x),g=!0,y._container=b,b.__vue_app__=y,getExposeProxy(S.component)||S.component.proxy}},unmount(){g&&(t(null,y._container),delete y._container.__vue_app__)},provide(b,C){return l.provides[b]=C,y}};return y}}function setRef(t,r,n,o,s=!1){if(isArray$h(t)){t.forEach((S,_)=>setRef(S,r&&(isArray$h(r)?r[_]:r),n,o,s));return}if(isAsyncWrapper(o)&&!s)return;const l=o.shapeFlag&4?getExposeProxy(o.component)||o.component.proxy:o.el,d=s?null:l,{i:g,r:y}=t,b=r&&r.r,C=g.refs===EMPTY_OBJ$1?g.refs={}:g.refs,x=g.setupState;if(b!=null&&b!==y&&(isString$4(b)?(C[b]=null,hasOwn$2(x,b)&&(x[b]=null)):isRef(b)&&(b.value=null)),isFunction$8(y))callWithErrorHandling(y,g,12,[d,C]);else{const S=isString$4(y),_=isRef(y);if(S||_){const w=()=>{if(t.f){const $=S?hasOwn$2(x,y)?x[y]:C[y]:y.value;s?isArray$h($)&&remove($,l):isArray$h($)?$.includes(l)||$.push(l):S?(C[y]=[l],hasOwn$2(x,y)&&(x[y]=C[y])):(y.value=[l],t.k&&(C[t.k]=y.value))}else S?(C[y]=d,hasOwn$2(x,y)&&(x[y]=d)):_&&(y.value=d,t.k&&(C[t.k]=d))};d?(w.id=-1,queuePostRenderEffect(w,n)):w()}}}let hasMismatch=!1;const isSVGContainer=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",isComment=t=>t.nodeType===8;function createHydrationFunctions(t){const{mt:r,p:n,o:{patchProp:o,createText:s,nextSibling:l,parentNode:d,remove:g,insert:y,createComment:b}}=t,C=(B,R)=>{if(!R.hasChildNodes()){n(null,B,R),flushPostFlushCbs(),R._vnode=B;return}hasMismatch=!1,x(R.firstChild,B,null,null,null),flushPostFlushCbs(),R._vnode=B,hasMismatch&&console.error("Hydration completed but contains mismatches.")},x=(B,R,P,M,O,D=!1)=>{const N=isComment(B)&&B.data==="[",H=()=>$(B,R,P,M,O,N),{type:Q,ref:G,shapeFlag:K,patchFlag:W}=R;let j=B.nodeType;R.el=B,W===-2&&(D=!1,R.dynamicChildren=null);let Y=null;switch(Q){case Text:j!==3?R.children===""?(y(R.el=s(""),d(B),B),Y=B):Y=H():(B.data!==R.children&&(hasMismatch=!0,B.data=R.children),Y=l(B));break;case Comment:j!==8||N?Y=H():Y=l(B);break;case Static:if(N&&(B=l(B),j=B.nodeType),j===1||j===3){Y=B;const q=!R.children.length;for(let X=0;X<R.staticCount;X++)q&&(R.children+=Y.nodeType===1?Y.outerHTML:Y.data),X===R.staticCount-1&&(R.anchor=Y),Y=l(Y);return N?l(Y):Y}else H();break;case Fragment:N?Y=w(B,R,P,M,O,D):Y=H();break;default:if(K&1)j!==1||R.type.toLowerCase()!==B.tagName.toLowerCase()?Y=H():Y=S(B,R,P,M,O,D);else if(K&6){R.slotScopeIds=O;const q=d(B);if(r(R,q,null,P,M,isSVGContainer(q),D),Y=N?I(B):l(B),Y&&isComment(Y)&&Y.data==="teleport end"&&(Y=l(Y)),isAsyncWrapper(R)){let X;N?(X=createVNode$1(Fragment),X.anchor=Y?Y.previousSibling:q.lastChild):X=B.nodeType===3?createTextVNode(""):createVNode$1("div"),X.el=B,R.component.subTree=X}}else K&64?j!==8?Y=H():Y=R.type.hydrate(B,R,P,M,O,D,t,_):K&128&&(Y=R.type.hydrate(B,R,P,M,isSVGContainer(d(B)),O,D,t,x))}return G!=null&&setRef(G,null,M,R),Y},S=(B,R,P,M,O,D)=>{D=D||!!R.dynamicChildren;const{type:N,props:H,patchFlag:Q,shapeFlag:G,dirs:K}=R,W=N==="input"&&K||N==="option";if(W||Q!==-1){if(K&&invokeDirectiveHook(R,null,P,"created"),H)if(W||!D||Q&48)for(const Y in H)(W&&Y.endsWith("value")||isOn(Y)&&!isReservedProp(Y))&&o(B,Y,null,H[Y],!1,void 0,P);else H.onClick&&o(B,"onClick",null,H.onClick,!1,void 0,P);let j;if((j=H&&H.onVnodeBeforeMount)&&invokeVNodeHook(j,P,R),K&&invokeDirectiveHook(R,null,P,"beforeMount"),((j=H&&H.onVnodeMounted)||K)&&queueEffectWithSuspense(()=>{j&&invokeVNodeHook(j,P,R),K&&invokeDirectiveHook(R,null,P,"mounted")},M),G&16&&!(H&&(H.innerHTML||H.textContent))){let Y=_(B.firstChild,R,B,P,M,O,D);for(;Y;){hasMismatch=!0;const q=Y;Y=Y.nextSibling,g(q)}}else G&8&&B.textContent!==R.children&&(hasMismatch=!0,B.textContent=R.children)}return B.nextSibling},_=(B,R,P,M,O,D,N)=>{N=N||!!R.dynamicChildren;const H=R.children,Q=H.length;for(let G=0;G<Q;G++){const K=N?H[G]:H[G]=normalizeVNode(H[G]);if(B)B=x(B,K,M,O,D,N);else{if(K.type===Text&&!K.children)continue;hasMismatch=!0,n(null,K,P,null,M,O,isSVGContainer(P),D)}}return B},w=(B,R,P,M,O,D)=>{const{slotScopeIds:N}=R;N&&(O=O?O.concat(N):N);const H=d(B),Q=_(l(B),R,H,P,M,O,D);return Q&&isComment(Q)&&Q.data==="]"?l(R.anchor=Q):(hasMismatch=!0,y(R.anchor=b("]"),H,Q),Q)},$=(B,R,P,M,O,D)=>{if(hasMismatch=!0,R.el=null,D){const Q=I(B);for(;;){const G=l(B);if(G&&G!==Q)g(G);else break}}const N=l(B),H=d(B);return g(B),n(null,R,H,N,P,M,isSVGContainer(H),O),N},I=B=>{let R=0;for(;B;)if(B=l(B),B&&isComment(B)&&(B.data==="["&&R++,B.data==="]")){if(R===0)return l(B);R--}return B};return[C,x]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function createHydrationRenderer(t){return baseCreateRenderer(t,createHydrationFunctions)}function baseCreateRenderer(t,r){const n=getGlobalThis$1();n.__VUE__=!0;const{insert:o,remove:s,patchProp:l,createElement:d,createText:g,createComment:y,setText:b,setElementText:C,parentNode:x,nextSibling:S,setScopeId:_=NOOP,insertStaticContent:w}=t,$=(ie,ee,J,ce=null,fe=null,ne=null,le=!1,me=null,Te=!!ee.dynamicChildren)=>{if(ie===ee)return;ie&&!isSameVNodeType(ie,ee)&&(ce=ve(ie),ue(ie,fe,ne,!0),ie=null),ee.patchFlag===-2&&(Te=!1,ee.dynamicChildren=null);const{type:ge,ref:$e,shapeFlag:de}=ee;switch(ge){case Text:I(ie,ee,J,ce);break;case Comment:B(ie,ee,J,ce);break;case Static:ie==null&&R(ee,J,ce,le);break;case Fragment:W(ie,ee,J,ce,fe,ne,le,me,Te);break;default:de&1?O(ie,ee,J,ce,fe,ne,le,me,Te):de&6?j(ie,ee,J,ce,fe,ne,le,me,Te):(de&64||de&128)&&ge.process(ie,ee,J,ce,fe,ne,le,me,Te,Be)}$e!=null&&fe&&setRef($e,ie&&ie.ref,ne,ee||ie,!ee)},I=(ie,ee,J,ce)=>{if(ie==null)o(ee.el=g(ee.children),J,ce);else{const fe=ee.el=ie.el;ee.children!==ie.children&&b(fe,ee.children)}},B=(ie,ee,J,ce)=>{ie==null?o(ee.el=y(ee.children||""),J,ce):ee.el=ie.el},R=(ie,ee,J,ce)=>{[ie.el,ie.anchor]=w(ie.children,ee,J,ce,ie.el,ie.anchor)},P=({el:ie,anchor:ee},J,ce)=>{let fe;for(;ie&&ie!==ee;)fe=S(ie),o(ie,J,ce),ie=fe;o(ee,J,ce)},M=({el:ie,anchor:ee})=>{let J;for(;ie&&ie!==ee;)J=S(ie),s(ie),ie=J;s(ee)},O=(ie,ee,J,ce,fe,ne,le,me,Te)=>{le=le||ee.type==="svg",ie==null?D(ee,J,ce,fe,ne,le,me,Te):Q(ie,ee,fe,ne,le,me,Te)},D=(ie,ee,J,ce,fe,ne,le,me)=>{let Te,ge;const{type:$e,props:de,shapeFlag:be,transition:we,dirs:Me}=ie;if(Te=ie.el=d(ie.type,ne,de&&de.is,de),be&8?C(Te,ie.children):be&16&&H(ie.children,Te,null,ce,fe,ne&&$e!=="foreignObject",le,me),Me&&invokeDirectiveHook(ie,null,ce,"created"),N(Te,ie,ie.scopeId,le,ce),de){for(const Ge in de)Ge!=="value"&&!isReservedProp(Ge)&&l(Te,Ge,null,de[Ge],ne,ie.children,ce,fe,Ce);"value"in de&&l(Te,"value",null,de.value),(ge=de.onVnodeBeforeMount)&&invokeVNodeHook(ge,ce,ie)}Me&&invokeDirectiveHook(ie,null,ce,"beforeMount");const Ue=(!fe||fe&&!fe.pendingBranch)&&we&&!we.persisted;Ue&&we.beforeEnter(Te),o(Te,ee,J),((ge=de&&de.onVnodeMounted)||Ue||Me)&&queuePostRenderEffect(()=>{ge&&invokeVNodeHook(ge,ce,ie),Ue&&we.enter(Te),Me&&invokeDirectiveHook(ie,null,ce,"mounted")},fe)},N=(ie,ee,J,ce,fe)=>{if(J&&_(ie,J),ce)for(let ne=0;ne<ce.length;ne++)_(ie,ce[ne]);if(fe){let ne=fe.subTree;if(ee===ne){const le=fe.vnode;N(ie,le,le.scopeId,le.slotScopeIds,fe.parent)}}},H=(ie,ee,J,ce,fe,ne,le,me,Te=0)=>{for(let ge=Te;ge<ie.length;ge++){const $e=ie[ge]=me?cloneIfMounted(ie[ge]):normalizeVNode(ie[ge]);$(null,$e,ee,J,ce,fe,ne,le,me)}},Q=(ie,ee,J,ce,fe,ne,le)=>{const me=ee.el=ie.el;let{patchFlag:Te,dynamicChildren:ge,dirs:$e}=ee;Te|=ie.patchFlag&16;const de=ie.props||EMPTY_OBJ$1,be=ee.props||EMPTY_OBJ$1;let we;J&&toggleRecurse(J,!1),(we=be.onVnodeBeforeUpdate)&&invokeVNodeHook(we,J,ee,ie),$e&&invokeDirectiveHook(ee,ie,J,"beforeUpdate"),J&&toggleRecurse(J,!0);const Me=fe&&ee.type!=="foreignObject";if(ge?G(ie.dynamicChildren,ge,me,J,ce,Me,ne):le||te(ie,ee,me,null,J,ce,Me,ne,!1),Te>0){if(Te&16)K(me,ee,de,be,J,ce,fe);else if(Te&2&&de.class!==be.class&&l(me,"class",null,be.class,fe),Te&4&&l(me,"style",de.style,be.style,fe),Te&8){const Ue=ee.dynamicProps;for(let Ge=0;Ge<Ue.length;Ge++){const Ze=Ue[Ge],tt=de[Ze],st=be[Ze];(st!==tt||Ze==="value")&&l(me,Ze,tt,st,fe,ie.children,J,ce,Ce)}}Te&1&&ie.children!==ee.children&&C(me,ee.children)}else!le&&ge==null&&K(me,ee,de,be,J,ce,fe);((we=be.onVnodeUpdated)||$e)&&queuePostRenderEffect(()=>{we&&invokeVNodeHook(we,J,ee,ie),$e&&invokeDirectiveHook(ee,ie,J,"updated")},ce)},G=(ie,ee,J,ce,fe,ne,le)=>{for(let me=0;me<ee.length;me++){const Te=ie[me],ge=ee[me],$e=Te.el&&(Te.type===Fragment||!isSameVNodeType(Te,ge)||Te.shapeFlag&70)?x(Te.el):J;$(Te,ge,$e,null,ce,fe,ne,le,!0)}},K=(ie,ee,J,ce,fe,ne,le)=>{if(J!==ce){if(J!==EMPTY_OBJ$1)for(const me in J)!isReservedProp(me)&&!(me in ce)&&l(ie,me,J[me],null,le,ee.children,fe,ne,Ce);for(const me in ce){if(isReservedProp(me))continue;const Te=ce[me],ge=J[me];Te!==ge&&me!=="value"&&l(ie,me,ge,Te,le,ee.children,fe,ne,Ce)}"value"in ce&&l(ie,"value",J.value,ce.value)}},W=(ie,ee,J,ce,fe,ne,le,me,Te)=>{const ge=ee.el=ie?ie.el:g(""),$e=ee.anchor=ie?ie.anchor:g("");let{patchFlag:de,dynamicChildren:be,slotScopeIds:we}=ee;we&&(me=me?me.concat(we):we),ie==null?(o(ge,J,ce),o($e,J,ce),H(ee.children,J,$e,fe,ne,le,me,Te)):de>0&&de&64&&be&&ie.dynamicChildren?(G(ie.dynamicChildren,be,J,fe,ne,le,me),(ee.key!=null||fe&&ee===fe.subTree)&&traverseStaticChildren(ie,ee,!0)):te(ie,ee,J,$e,fe,ne,le,me,Te)},j=(ie,ee,J,ce,fe,ne,le,me,Te)=>{ee.slotScopeIds=me,ie==null?ee.shapeFlag&512?fe.ctx.activate(ee,J,ce,le,Te):Y(ee,J,ce,fe,ne,le,Te):q(ie,ee,Te)},Y=(ie,ee,J,ce,fe,ne,le)=>{const me=ie.component=createComponentInstance(ie,ce,fe);if(isKeepAlive(ie)&&(me.ctx.renderer=Be),setupComponent(me),me.asyncDep){if(fe&&fe.registerDep(me,X),!ie.el){const Te=me.subTree=createVNode$1(Comment);B(null,Te,ee,J)}return}X(me,ie,ee,J,fe,ne,le)},q=(ie,ee,J)=>{const ce=ee.component=ie.component;if(shouldUpdateComponent(ie,ee,J))if(ce.asyncDep&&!ce.asyncResolved){re(ce,ee,J);return}else ce.next=ee,invalidateJob(ce.update),ce.update();else ee.el=ie.el,ce.vnode=ee},X=(ie,ee,J,ce,fe,ne,le)=>{const me=()=>{if(ie.isMounted){let{next:$e,bu:de,u:be,parent:we,vnode:Me}=ie,Ue=$e,Ge;toggleRecurse(ie,!1),$e?($e.el=Me.el,re(ie,$e,le)):$e=Me,de&&invokeArrayFns(de),(Ge=$e.props&&$e.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Ge,we,$e,Me),toggleRecurse(ie,!0);const Ze=renderComponentRoot(ie),tt=ie.subTree;ie.subTree=Ze,$(tt,Ze,x(tt.el),ve(tt),ie,fe,ne),$e.el=Ze.el,Ue===null&&updateHOCHostEl(ie,Ze.el),be&&queuePostRenderEffect(be,fe),(Ge=$e.props&&$e.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Ge,we,$e,Me),fe)}else{let $e;const{el:de,props:be}=ee,{bm:we,m:Me,parent:Ue}=ie,Ge=isAsyncWrapper(ee);if(toggleRecurse(ie,!1),we&&invokeArrayFns(we),!Ge&&($e=be&&be.onVnodeBeforeMount)&&invokeVNodeHook($e,Ue,ee),toggleRecurse(ie,!0),de&&Ee){const Ze=()=>{ie.subTree=renderComponentRoot(ie),Ee(de,ie.subTree,ie,fe,null)};Ge?ee.type.__asyncLoader().then(()=>!ie.isUnmounted&&Ze()):Ze()}else{const Ze=ie.subTree=renderComponentRoot(ie);$(null,Ze,J,ce,ie,fe,ne),ee.el=Ze.el}if(Me&&queuePostRenderEffect(Me,fe),!Ge&&($e=be&&be.onVnodeMounted)){const Ze=ee;queuePostRenderEffect(()=>invokeVNodeHook($e,Ue,Ze),fe)}(ee.shapeFlag&256||Ue&&isAsyncWrapper(Ue.vnode)&&Ue.vnode.shapeFlag&256)&&ie.a&&queuePostRenderEffect(ie.a,fe),ie.isMounted=!0,ee=J=ce=null}},Te=ie.effect=new ReactiveEffect(me,()=>queueJob(ge),ie.scope),ge=ie.update=()=>Te.run();ge.id=ie.uid,toggleRecurse(ie,!0),ge()},re=(ie,ee,J)=>{ee.component=ie;const ce=ie.vnode.props;ie.vnode=ee,ie.next=null,updateProps$2(ie,ee.props,ce,J),updateSlots(ie,ee.children,J),pauseTracking(),flushPreFlushCbs(),resetTracking()},te=(ie,ee,J,ce,fe,ne,le,me,Te=!1)=>{const ge=ie&&ie.children,$e=ie?ie.shapeFlag:0,de=ee.children,{patchFlag:be,shapeFlag:we}=ee;if(be>0){if(be&128){ae(ge,de,J,ce,fe,ne,le,me,Te);return}else if(be&256){oe(ge,de,J,ce,fe,ne,le,me,Te);return}}we&8?($e&16&&Ce(ge,fe,ne),de!==ge&&C(J,de)):$e&16?we&16?ae(ge,de,J,ce,fe,ne,le,me,Te):Ce(ge,fe,ne,!0):($e&8&&C(J,""),we&16&&H(de,J,ce,fe,ne,le,me,Te))},oe=(ie,ee,J,ce,fe,ne,le,me,Te)=>{ie=ie||EMPTY_ARR,ee=ee||EMPTY_ARR;const ge=ie.length,$e=ee.length,de=Math.min(ge,$e);let be;for(be=0;be<de;be++){const we=ee[be]=Te?cloneIfMounted(ee[be]):normalizeVNode(ee[be]);$(ie[be],we,J,null,fe,ne,le,me,Te)}ge>$e?Ce(ie,fe,ne,!0,!1,de):H(ee,J,ce,fe,ne,le,me,Te,de)},ae=(ie,ee,J,ce,fe,ne,le,me,Te)=>{let ge=0;const $e=ee.length;let de=ie.length-1,be=$e-1;for(;ge<=de&&ge<=be;){const we=ie[ge],Me=ee[ge]=Te?cloneIfMounted(ee[ge]):normalizeVNode(ee[ge]);if(isSameVNodeType(we,Me))$(we,Me,J,null,fe,ne,le,me,Te);else break;ge++}for(;ge<=de&&ge<=be;){const we=ie[de],Me=ee[be]=Te?cloneIfMounted(ee[be]):normalizeVNode(ee[be]);if(isSameVNodeType(we,Me))$(we,Me,J,null,fe,ne,le,me,Te);else break;de--,be--}if(ge>de){if(ge<=be){const we=be+1,Me=we<$e?ee[we].el:ce;for(;ge<=be;)$(null,ee[ge]=Te?cloneIfMounted(ee[ge]):normalizeVNode(ee[ge]),J,Me,fe,ne,le,me,Te),ge++}}else if(ge>be)for(;ge<=de;)ue(ie[ge],fe,ne,!0),ge++;else{const we=ge,Me=ge,Ue=new Map;for(ge=Me;ge<=be;ge++){const Xe=ee[ge]=Te?cloneIfMounted(ee[ge]):normalizeVNode(ee[ge]);Xe.key!=null&&Ue.set(Xe.key,ge)}let Ge,Ze=0;const tt=be-Me+1;let st=!1,We=0;const Je=new Array(tt);for(ge=0;ge<tt;ge++)Je[ge]=0;for(ge=we;ge<=de;ge++){const Xe=ie[ge];if(Ze>=tt){ue(Xe,fe,ne,!0);continue}let _e;if(Xe.key!=null)_e=Ue.get(Xe.key);else for(Ge=Me;Ge<=be;Ge++)if(Je[Ge-Me]===0&&isSameVNodeType(Xe,ee[Ge])){_e=Ge;break}_e===void 0?ue(Xe,fe,ne,!0):(Je[_e-Me]=ge+1,_e>=We?We=_e:st=!0,$(Xe,ee[_e],J,null,fe,ne,le,me,Te),Ze++)}const Ye=st?getSequence(Je):EMPTY_ARR;for(Ge=Ye.length-1,ge=tt-1;ge>=0;ge--){const Xe=Me+ge,_e=ee[Xe],xe=Xe+1<$e?ee[Xe+1].el:ce;Je[ge]===0?$(null,_e,J,xe,fe,ne,le,me,Te):st&&(Ge<0||ge!==Ye[Ge]?se(_e,J,xe,2):Ge--)}}},se=(ie,ee,J,ce,fe=null)=>{const{el:ne,type:le,transition:me,children:Te,shapeFlag:ge}=ie;if(ge&6){se(ie.component.subTree,ee,J,ce);return}if(ge&128){ie.suspense.move(ee,J,ce);return}if(ge&64){le.move(ie,ee,J,Be);return}if(le===Fragment){o(ne,ee,J);for(let de=0;de<Te.length;de++)se(Te[de],ee,J,ce);o(ie.anchor,ee,J);return}if(le===Static){P(ie,ee,J);return}if(ce!==2&&ge&1&&me)if(ce===0)me.beforeEnter(ne),o(ne,ee,J),queuePostRenderEffect(()=>me.enter(ne),fe);else{const{leave:de,delayLeave:be,afterLeave:we}=me,Me=()=>o(ne,ee,J),Ue=()=>{de(ne,()=>{Me(),we&&we()})};be?be(ne,Me,Ue):Ue()}else o(ne,ee,J)},ue=(ie,ee,J,ce=!1,fe=!1)=>{const{type:ne,props:le,ref:me,children:Te,dynamicChildren:ge,shapeFlag:$e,patchFlag:de,dirs:be}=ie;if(me!=null&&setRef(me,null,J,ie,!0),$e&256){ee.ctx.deactivate(ie);return}const we=$e&1&&be,Me=!isAsyncWrapper(ie);let Ue;if(Me&&(Ue=le&&le.onVnodeBeforeUnmount)&&invokeVNodeHook(Ue,ee,ie),$e&6)he(ie.component,J,ce);else{if($e&128){ie.suspense.unmount(J,ce);return}we&&invokeDirectiveHook(ie,null,ee,"beforeUnmount"),$e&64?ie.type.remove(ie,ee,J,fe,Be,ce):ge&&(ne!==Fragment||de>0&&de&64)?Ce(ge,ee,J,!1,!0):(ne===Fragment&&de&384||!fe&&$e&16)&&Ce(Te,ee,J),ce&&Ae(ie)}(Me&&(Ue=le&&le.onVnodeUnmounted)||we)&&queuePostRenderEffect(()=>{Ue&&invokeVNodeHook(Ue,ee,ie),we&&invokeDirectiveHook(ie,null,ee,"unmounted")},J)},Ae=ie=>{const{type:ee,el:J,anchor:ce,transition:fe}=ie;if(ee===Fragment){pe(J,ce);return}if(ee===Static){M(ie);return}const ne=()=>{s(J),fe&&!fe.persisted&&fe.afterLeave&&fe.afterLeave()};if(ie.shapeFlag&1&&fe&&!fe.persisted){const{leave:le,delayLeave:me}=fe,Te=()=>le(J,ne);me?me(ie.el,ne,Te):Te()}else ne()},pe=(ie,ee)=>{let J;for(;ie!==ee;)J=S(ie),s(ie),ie=J;s(ee)},he=(ie,ee,J)=>{const{bum:ce,scope:fe,update:ne,subTree:le,um:me}=ie;ce&&invokeArrayFns(ce),fe.stop(),ne&&(ne.active=!1,ue(le,ie,ee,J)),me&&queuePostRenderEffect(me,ee),queuePostRenderEffect(()=>{ie.isUnmounted=!0},ee),ee&&ee.pendingBranch&&!ee.isUnmounted&&ie.asyncDep&&!ie.asyncResolved&&ie.suspenseId===ee.pendingId&&(ee.deps--,ee.deps===0&&ee.resolve())},Ce=(ie,ee,J,ce=!1,fe=!1,ne=0)=>{for(let le=ne;le<ie.length;le++)ue(ie[le],ee,J,ce,fe)},ve=ie=>ie.shapeFlag&6?ve(ie.component.subTree):ie.shapeFlag&128?ie.suspense.next():S(ie.anchor||ie.el),ye=(ie,ee,J)=>{ie==null?ee._vnode&&ue(ee._vnode,null,null,!0):$(ee._vnode||null,ie,ee,null,null,null,J),flushPreFlushCbs(),flushPostFlushCbs(),ee._vnode=ie},Be={p:$,um:ue,m:se,r:Ae,mt:Y,mc:H,pc:te,pbc:G,n:ve,o:t};let Se,Ee;return r&&([Se,Ee]=r(Be)),{render:ye,hydrate:Se,createApp:createAppAPI(ye,Se)}}function toggleRecurse({effect:t,update:r},n){t.allowRecurse=r.allowRecurse=n}function traverseStaticChildren(t,r,n=!1){const o=t.children,s=r.children;if(isArray$h(o)&&isArray$h(s))for(let l=0;l<o.length;l++){const d=o[l];let g=s[l];g.shapeFlag&1&&!g.dynamicChildren&&((g.patchFlag<=0||g.patchFlag===32)&&(g=s[l]=cloneIfMounted(s[l]),g.el=d.el),n||traverseStaticChildren(d,g)),g.type===Text&&(g.el=d.el)}}function getSequence(t){const r=t.slice(),n=[0];let o,s,l,d,g;const y=t.length;for(o=0;o<y;o++){const b=t[o];if(b!==0){if(s=n[n.length-1],t[s]<b){r[o]=s,n.push(o);continue}for(l=0,d=n.length-1;l<d;)g=l+d>>1,t[n[g]]<b?l=g+1:d=g;b<t[n[l]]&&(l>0&&(r[o]=n[l-1]),n[l]=o)}}for(l=n.length,d=n[l-1];l-- >0;)n[l]=d,d=r[d];return n}const isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTargetSVG=t=>typeof SVGElement!="undefined"&&t instanceof SVGElement,resolveTarget=(t,r)=>{const n=t&&t.to;return isString$4(n)?r?r(n):null:n},TeleportImpl={__isTeleport:!0,process(t,r,n,o,s,l,d,g,y,b){const{mc:C,pc:x,pbc:S,o:{insert:_,querySelector:w,createText:$,createComment:I}}=b,B=isTeleportDisabled(r.props);let{shapeFlag:R,children:P,dynamicChildren:M}=r;if(t==null){const O=r.el=$(""),D=r.anchor=$("");_(O,n,o),_(D,n,o);const N=r.target=resolveTarget(r.props,w),H=r.targetAnchor=$("");N&&(_(H,N),d=d||isTargetSVG(N));const Q=(G,K)=>{R&16&&C(P,G,K,s,l,d,g,y)};B?Q(n,D):N&&Q(N,H)}else{r.el=t.el;const O=r.anchor=t.anchor,D=r.target=t.target,N=r.targetAnchor=t.targetAnchor,H=isTeleportDisabled(t.props),Q=H?n:D,G=H?O:N;if(d=d||isTargetSVG(D),M?(S(t.dynamicChildren,M,Q,s,l,d,g),traverseStaticChildren(t,r,!0)):y||x(t,r,Q,G,s,l,d,g,!1),B)H||moveTeleport(r,n,O,b,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const K=r.target=resolveTarget(r.props,w);K&&moveTeleport(r,K,null,b,0)}else H&&moveTeleport(r,D,N,b,1)}updateCssVars(r)},remove(t,r,n,o,{um:s,o:{remove:l}},d){const{shapeFlag:g,children:y,anchor:b,targetAnchor:C,target:x,props:S}=t;if(x&&l(C),(d||!isTeleportDisabled(S))&&(l(b),g&16))for(let _=0;_<y.length;_++){const w=y[_];s(w,r,n,!0,!!w.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(t,r,n,{o:{insert:o},m:s},l=2){l===0&&o(t.targetAnchor,r,n);const{el:d,anchor:g,shapeFlag:y,children:b,props:C}=t,x=l===2;if(x&&o(d,r,n),(!x||isTeleportDisabled(C))&&y&16)for(let S=0;S<b.length;S++)s(b[S],r,n,2);x&&o(g,r,n)}function hydrateTeleport(t,r,n,o,s,l,{o:{nextSibling:d,parentNode:g,querySelector:y}},b){const C=r.target=resolveTarget(r.props,y);if(C){const x=C._lpa||C.firstChild;if(r.shapeFlag&16)if(isTeleportDisabled(r.props))r.anchor=b(d(t),r,g(t),n,o,s,l),r.targetAnchor=x;else{r.anchor=d(t);let S=x;for(;S;)if(S=d(S),S&&S.nodeType===8&&S.data==="teleport anchor"){r.targetAnchor=S,C._lpa=r.targetAnchor&&d(r.targetAnchor);break}b(x,r,C,n,o,s,l)}updateCssVars(r)}return r.anchor&&d(r.anchor)}const Teleport=TeleportImpl;function updateCssVars(t){const r=t.ctx;if(r&&r.ut){let n=t.children[0].el;for(;n!==t.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",r.uid),n=n.nextSibling;r.ut()}}const Fragment=Symbol(void 0),Text=Symbol(void 0),Comment=Symbol(void 0),Static=Symbol(void 0),blockStack=[];let currentBlock=null;function openBlock(t=!1){blockStack.push(currentBlock=t?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking(t){isBlockTreeEnabled+=t}function setupBlock(t){return t.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(t),t}function createElementBlock(t,r,n,o,s,l){return setupBlock(createBaseVNode(t,r,n,o,s,l,!0))}function createBlock(t,r,n,o,s){return setupBlock(createVNode$1(t,r,n,o,s,!0))}function isVNode$1(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,r){return t.type===r.type&&t.key===r.key}function transformVNodeArgs(t){}const InternalObjectKey="__vInternal",normalizeKey=({key:t})=>t!=null?t:null,normalizeRef=({ref:t,ref_key:r,ref_for:n})=>t!=null?isString$4(t)||isRef(t)||isFunction$8(t)?{i:currentRenderingInstance,r:t,k:r,f:!!n}:t:null;function createBaseVNode(t,r=null,n=null,o=0,s=null,l=t===Fragment?0:1,d=!1,g=!1){const y={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&normalizeKey(r),ref:r&&normalizeRef(r),scopeId:currentScopeId,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:o,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return g?(normalizeChildren(y,n),l&128&&t.normalize(y)):n&&(y.shapeFlag|=isString$4(n)?8:16),isBlockTreeEnabled>0&&!d&¤tBlock&&(y.patchFlag>0||l&6)&&y.patchFlag!==32&¤tBlock.push(y),y}const createVNode$1=_createVNode;function _createVNode(t,r=null,n=null,o=0,s=null,l=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode$1(t)){const g=cloneVNode(t,r,!0);return n&&normalizeChildren(g,n),isBlockTreeEnabled>0&&!l&¤tBlock&&(g.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=g:currentBlock.push(g)),g.patchFlag|=-2,g}if(isClassComponent(t)&&(t=t.__vccOpts),r){r=guardReactiveProps(r);let{class:g,style:y}=r;g&&!isString$4(g)&&(r.class=normalizeClass(g)),isObject$i(y)&&(isProxy(y)&&!isArray$h(y)&&(y=extend$2({},y)),r.style=normalizeStyle$1(y))}const d=isString$4(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$i(t)?4:isFunction$8(t)?2:0;return createBaseVNode(t,r,n,o,s,d,l,!0)}function guardReactiveProps(t){return t?isProxy(t)||InternalObjectKey in t?extend$2({},t):t:null}function cloneVNode(t,r,n=!1){const{props:o,ref:s,patchFlag:l,children:d}=t,g=r?mergeProps(o||{},r):o;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:g,key:g&&normalizeKey(g),ref:r&&r.ref?n&&s?isArray$h(s)?s.concat(normalizeRef(r)):[s,normalizeRef(r)]:normalizeRef(r):s,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:d,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Fragment?l===-1?16:l|16:l,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function createTextVNode(t=" ",r=0){return createVNode$1(Text,null,t,r)}function createStaticVNode(t,r){const n=createVNode$1(Static,null,t);return n.staticCount=r,n}function createCommentVNode(t="",r=!1){return r?(openBlock(),createBlock(Comment,null,t)):createVNode$1(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode$1(Comment):isArray$h(t)?createVNode$1(Fragment,null,t.slice()):typeof t=="object"?cloneIfMounted(t):createVNode$1(Text,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,r){let n=0;const{shapeFlag:o}=t;if(r==null)r=null;else if(isArray$h(r))n=16;else if(typeof r=="object")if(o&65){const s=r.default;s&&(s._c&&(s._d=!1),normalizeChildren(t,s()),s._c&&(s._d=!0));return}else{n=32;const s=r._;!s&&!(InternalObjectKey in r)?r._ctx=currentRenderingInstance:s===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else isFunction$8(r)?(r={default:r,_ctx:currentRenderingInstance},n=32):(r=String(r),o&64?(n=16,r=[createTextVNode(r)]):n=8);t.children=r,t.shapeFlag|=n}function mergeProps(...t){const r={};for(let n=0;n<t.length;n++){const o=t[n];for(const s in o)if(s==="class")r.class!==o.class&&(r.class=normalizeClass([r.class,o.class]));else if(s==="style")r.style=normalizeStyle$1([r.style,o.style]);else if(isOn(s)){const l=r[s],d=o[s];d&&l!==d&&!(isArray$h(l)&&l.includes(d))&&(r[s]=l?[].concat(l,d):d)}else s!==""&&(r[s]=o[s])}return r}function invokeVNodeHook(t,r,n,o=null){callWithAsyncErrorHandling(t,r,7,[n,o])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(t,r,n){const o=t.type,s=(r?r.appContext:t.appContext)||emptyAppContext,l={uid:uid++,vnode:t,type:o,parent:r,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:r?r.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(o,s),emitsOptions:normalizeEmitsOptions(o,s),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:o.inheritAttrs,ctx:EMPTY_OBJ$1,data:EMPTY_OBJ$1,props:EMPTY_OBJ$1,attrs:EMPTY_OBJ$1,slots:EMPTY_OBJ$1,refs:EMPTY_OBJ$1,setupState:EMPTY_OBJ$1,setupContext:null,suspense:n,suspenseId:n?n.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 l.ctx={_:l},l.root=r?r.root:l,l.emit=emit.bind(null,l),t.ce&&t.ce(l),l}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance,setCurrentInstance=t=>{currentInstance=t,t.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),currentInstance=null};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,r=!1){isInSSRComponentSetup=r;const{props:n,children:o}=t.vnode,s=isStatefulComponent(t);initProps$1(t,n,s,r),initSlots(t,o);const l=s?setupStatefulComponent(t,r):void 0;return isInSSRComponentSetup=!1,l}function setupStatefulComponent(t,r){const n=t.type;t.accessCache=Object.create(null),t.proxy=markRaw(new Proxy(t.ctx,PublicInstanceProxyHandlers));const{setup:o}=n;if(o){const s=t.setupContext=o.length>1?createSetupContext(t):null;setCurrentInstance(t),pauseTracking();const l=callWithErrorHandling(o,t,0,[t.props,s]);if(resetTracking(),unsetCurrentInstance(),isPromise$1(l)){if(l.then(unsetCurrentInstance,unsetCurrentInstance),r)return l.then(d=>{handleSetupResult(t,d,r)}).catch(d=>{handleError(d,t,0)});t.asyncDep=l}else handleSetupResult(t,l,r)}else finishComponentSetup(t,r)}function handleSetupResult(t,r,n){isFunction$8(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:isObject$i(r)&&(t.setupState=proxyRefs(r)),finishComponentSetup(t,n)}let compile$1,installWithProxy;function registerRuntimeCompiler(t){compile$1=t,installWithProxy=r=>{r.render._rc&&(r.withProxy=new Proxy(r.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup(t,r,n){const o=t.type;if(!t.render){if(!r&&compile$1&&!o.render){const s=o.template||resolveMergedOptions(t).template;if(s){const{isCustomElement:l,compilerOptions:d}=t.appContext.config,{delimiters:g,compilerOptions:y}=o,b=extend$2(extend$2({isCustomElement:l,delimiters:g},d),y);o.render=compile$1(s,b)}}t.render=o.render||NOOP,installWithProxy&&installWithProxy(t)}setCurrentInstance(t),pauseTracking(),applyOptions(t),resetTracking(),unsetCurrentInstance()}function createAttrsProxy(t){return new Proxy(t.attrs,{get(r,n){return track(t,"get","$attrs"),r[n]}})}function createSetupContext(t){const r=o=>{t.exposed=o||{}};let n;return{get attrs(){return n||(n=createAttrsProxy(t))},slots:t.slots,emit:t.emit,expose:r}}function getExposeProxy(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(r,n){if(n in r)return r[n];if(n in publicPropertiesMap)return publicPropertiesMap[n](t)},has(r,n){return n in r||n in publicPropertiesMap}}))}function getComponentName(t,r=!0){return isFunction$8(t)?t.displayName||t.name:t.name||r&&t.__name}function isClassComponent(t){return isFunction$8(t)&&"__vccOpts"in t}const computed=(t,r)=>computed$1(t,r,isInSSRComponentSetup);function defineProps(){return null}function defineEmits(){return null}function defineExpose(t){}function withDefaults(t,r){return null}function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function mergeDefaults(t,r){const n=isArray$h(t)?t.reduce((o,s)=>(o[s]={},o),{}):t;for(const o in r){const s=n[o];s?isArray$h(s)||isFunction$8(s)?n[o]={type:s,default:r[o]}:s.default=r[o]:s===null&&(n[o]={default:r[o]})}return n}function createPropsRestProxy(t,r){const n={};for(const o in t)r.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>t[o]});return n}function withAsyncContext(t){const r=getCurrentInstance();let n=t();return unsetCurrentInstance(),isPromise$1(n)&&(n=n.catch(o=>{throw setCurrentInstance(r),o})),[n,()=>setCurrentInstance(r)]}function h(t,r,n){const o=arguments.length;return o===2?isObject$i(r)&&!isArray$h(r)?isVNode$1(r)?createVNode$1(t,null,[r]):createVNode$1(t,r):createVNode$1(t,null,r):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&isVNode$1(n)&&(n=[n]),createVNode$1(t,r,n))}const ssrContextKey$1=Symbol(""),useSSRContext=()=>inject(ssrContextKey$1);function initCustomFormatter(){}function withMemo(t,r,n,o){const s=n[o];if(s&&isMemoSame(s,t))return s;const l=r();return l.memo=t.slice(),n[o]=l}function isMemoSame(t,r){const n=t.memo;if(n.length!=r.length)return!1;for(let o=0;o<n.length;o++)if(hasChanged(n[o],r[o]))return!1;return isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(t),!0}const version$4="3.2.47",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc=typeof document!="undefined"?document:null,templateContainer=doc&&doc.createElement("template"),nodeOps={insert:(t,r,n)=>{r.insertBefore(t,n||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,n,o)=>{const s=r?doc.createElementNS(svgNS,t):doc.createElement(t,n?{is:n}:void 0);return t==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:t=>doc.createTextNode(t),createComment:t=>doc.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,n,o,s,l){const d=n?n.previousSibling:r.lastChild;if(s&&(s===l||s.nextSibling))for(;r.insertBefore(s.cloneNode(!0),n),!(s===l||!(s=s.nextSibling)););else{templateContainer.innerHTML=o?`<svg>${t}</svg>`:t;const g=templateContainer.content;if(o){const y=g.firstChild;for(;y.firstChild;)g.appendChild(y.firstChild);g.removeChild(y)}r.insertBefore(g,n)}return[d?d.nextSibling:r.firstChild,n?n.previousSibling:r.lastChild]}};function patchClass(t,r,n){const o=t._vtc;o&&(r=(r?[r,...o]:[...o]).join(" ")),r==null?t.removeAttribute("class"):n?t.setAttribute("class",r):t.className=r}function patchStyle(t,r,n){const o=t.style,s=isString$4(n);if(n&&!s){if(r&&!isString$4(r))for(const l in r)n[l]==null&&setStyle(o,l,"");for(const l in n)setStyle(o,l,n[l])}else{const l=o.display;s?r!==n&&(o.cssText=n):r&&t.removeAttribute("style"),"_vod"in t&&(o.display=l)}}const importantRE=/\s*!important$/;function setStyle(t,r,n){if(isArray$h(n))n.forEach(o=>setStyle(t,r,o));else if(n==null&&(n=""),r.startsWith("--"))t.setProperty(r,n);else{const o=autoPrefix(t,r);importantRE.test(n)?t.setProperty(hyphenate(o),n.replace(importantRE,""),"important"):t[o]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,r){const n=prefixCache[r];if(n)return n;let o=camelize(r);if(o!=="filter"&&o in t)return prefixCache[r]=o;o=capitalize$3(o);for(let s=0;s<prefixes.length;s++){const l=prefixes[s]+o;if(l in t)return prefixCache[r]=l}return r}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(t,r,n,o,s){if(o&&r.startsWith("xlink:"))n==null?t.removeAttributeNS(xlinkNS,r.slice(6,r.length)):t.setAttributeNS(xlinkNS,r,n);else{const l=isSpecialBooleanAttr(r);n==null||l&&!includeBooleanAttr(n)?t.removeAttribute(r):t.setAttribute(r,l?"":n)}}function patchDOMProp(t,r,n,o,s,l,d){if(r==="innerHTML"||r==="textContent"){o&&d(o,s,l),t[r]=n==null?"":n;return}if(r==="value"&&t.tagName!=="PROGRESS"&&!t.tagName.includes("-")){t._value=n;const y=n==null?"":n;(t.value!==y||t.tagName==="OPTION")&&(t.value=y),n==null&&t.removeAttribute(r);return}let g=!1;if(n===""||n==null){const y=typeof t[r];y==="boolean"?n=includeBooleanAttr(n):n==null&&y==="string"?(n="",g=!0):y==="number"&&(n=0,g=!0)}try{t[r]=n}catch(y){}g&&t.removeAttribute(r)}function addEventListener$1(t,r,n,o){t.addEventListener(r,n,o)}function removeEventListener$1(t,r,n,o){t.removeEventListener(r,n,o)}function patchEvent(t,r,n,o,s=null){const l=t._vei||(t._vei={}),d=l[r];if(o&&d)d.value=o;else{const[g,y]=parseName(r);if(o){const b=l[r]=createInvoker(o,s);addEventListener$1(t,g,b,y)}else d&&(removeEventListener$1(t,g,d,y),l[r]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(t){let r;if(optionsModifierRE.test(t)){r={};let o;for(;o=t.match(optionsModifierRE);)t=t.slice(0,t.length-o[0].length),r[o[0].toLowerCase()]=!0}return[t[2]===":"?t.slice(3):hyphenate(t.slice(2)),r]}let cachedNow=0;const p=Promise.resolve(),getNow=()=>cachedNow||(p.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,r){const n=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(o,n.value),r,5,[o])};return n.value=t,n.attached=getNow(),n}function patchStopImmediatePropagation(t,r){if(isArray$h(r)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},r.map(o=>s=>!s._stopped&&o&&o(s))}else return r}const nativeOnRE=/^on[a-z]/,patchProp=(t,r,n,o,s=!1,l,d,g,y)=>{r==="class"?patchClass(t,o,s):r==="style"?patchStyle(t,n,o):isOn(r)?isModelListener(r)||patchEvent(t,r,n,o,d):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):shouldSetAsProp(t,r,o,s))?patchDOMProp(t,r,o,l,d,g,y):(r==="true-value"?t._trueValue=o:r==="false-value"&&(t._falseValue=o),patchAttr(t,r,o,s))};function shouldSetAsProp(t,r,n,o){return o?!!(r==="innerHTML"||r==="textContent"||r in t&&nativeOnRE.test(r)&&isFunction$8(n)):r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA"||nativeOnRE.test(r)&&isString$4(n)?!1:r in t}function defineCustomElement(t,r){const n=defineComponent(t);class o extends VueElement{constructor(l){super(n,l,r)}}return o.def=n,o}const defineSSRCustomElement=t=>defineCustomElement(t,hydrate),BaseClass=typeof HTMLElement!="undefined"?HTMLElement:class{};class VueElement extends BaseClass{constructor(r,n={},o){super(),this._def=r,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render$3(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const s of o)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const r=(o,s=!1)=>{const{props:l,styles:d}=o;let g;if(l&&!isArray$h(l))for(const y in l){const b=l[y];(b===Number||b&&b.type===Number)&&(y in this._props&&(this._props[y]=toNumber$2(this._props[y])),(g||(g=Object.create(null)))[camelize(y)]=!0)}this._numberProps=g,s&&this._resolveProps(o),this._applyStyles(d),this._update()},n=this._def.__asyncLoader;n?n().then(o=>r(o,!0)):r(this._def)}_resolveProps(r){const{props:n}=r,o=isArray$h(n)?n:Object.keys(n||{});for(const s of Object.keys(this))s[0]!=="_"&&o.includes(s)&&this._setProp(s,this[s],!0,!1);for(const s of o.map(camelize))Object.defineProperty(this,s,{get(){return this._getProp(s)},set(l){this._setProp(s,l)}})}_setAttr(r){let n=this.getAttribute(r);const o=camelize(r);this._numberProps&&this._numberProps[o]&&(n=toNumber$2(n)),this._setProp(o,n,!1)}_getProp(r){return this._props[r]}_setProp(r,n,o=!0,s=!0){n!==this._props[r]&&(this._props[r]=n,s&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(hyphenate(r),""):typeof n=="string"||typeof n=="number"?this.setAttribute(hyphenate(r),n+""):n||this.removeAttribute(hyphenate(r))))}_update(){render$3(this._createVNode(),this.shadowRoot)}_createVNode(){const r=createVNode$1(this._def,extend$2({},this._props));return this._instance||(r.ce=n=>{this._instance=n,n.isCE=!0;const o=(l,d)=>{this.dispatchEvent(new CustomEvent(l,{detail:d}))};n.emit=(l,...d)=>{o(l,d),hyphenate(l)!==l&&o(hyphenate(l),d)};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof VueElement){n.parent=s._instance,n.provides=s._instance.provides;break}}),r}_applyStyles(r){r&&r.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}function useCssModule(t="$style"){{const r=getCurrentInstance();if(!r)return EMPTY_OBJ$1;const n=r.type.__cssModules;if(!n)return EMPTY_OBJ$1;const o=n[t];return o||EMPTY_OBJ$1}}function useCssVars(t){const r=getCurrentInstance();if(!r)return;const n=r.ut=(s=t(r.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${r.uid}"]`)).forEach(l=>setVarsOnNode(l,s))},o=()=>{const s=t(r.proxy);setVarsOnVNode(r.subTree,s),n(s)};watchPostEffect(o),onMounted(()=>{const s=new MutationObserver(o);s.observe(r.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>s.disconnect())})}function setVarsOnVNode(t,r){if(t.shapeFlag&128){const n=t.suspense;t=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{setVarsOnVNode(n.activeBranch,r)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)setVarsOnNode(t.el,r);else if(t.type===Fragment)t.children.forEach(n=>setVarsOnVNode(n,r));else if(t.type===Static){let{el:n,anchor:o}=t;for(;n&&(setVarsOnNode(n,r),n!==o);)n=n.nextSibling}}function setVarsOnNode(t,r){if(t.nodeType===1){const n=t.style;for(const o in r)n.setProperty(`--${o}`,r[o])}}const TRANSITION="transition",ANIMATION="animation",Transition=(t,{slots:r})=>h(BaseTransition,resolveTransitionProps(t),r);Transition.displayName="Transition";const DOMTransitionPropsValidators={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},TransitionPropsValidators=Transition.props=extend$2({},BaseTransition.props,DOMTransitionPropsValidators),callHook=(t,r=[])=>{isArray$h(t)?t.forEach(n=>n(...r)):t&&t(...r)},hasExplicitCallback=t=>t?isArray$h(t)?t.some(r=>r.length>1):t.length>1:!1;function resolveTransitionProps(t){const r={};for(const W in t)W in DOMTransitionPropsValidators||(r[W]=t[W]);if(t.css===!1)return r;const{name:n="v",type:o,duration:s,enterFromClass:l=`${n}-enter-from`,enterActiveClass:d=`${n}-enter-active`,enterToClass:g=`${n}-enter-to`,appearFromClass:y=l,appearActiveClass:b=d,appearToClass:C=g,leaveFromClass:x=`${n}-leave-from`,leaveActiveClass:S=`${n}-leave-active`,leaveToClass:_=`${n}-leave-to`}=t,w=normalizeDuration(s),$=w&&w[0],I=w&&w[1],{onBeforeEnter:B,onEnter:R,onEnterCancelled:P,onLeave:M,onLeaveCancelled:O,onBeforeAppear:D=B,onAppear:N=R,onAppearCancelled:H=P}=r,Q=(W,j,Y)=>{removeTransitionClass(W,j?C:g),removeTransitionClass(W,j?b:d),Y&&Y()},G=(W,j)=>{W._isLeaving=!1,removeTransitionClass(W,x),removeTransitionClass(W,_),removeTransitionClass(W,S),j&&j()},K=W=>(j,Y)=>{const q=W?N:R,X=()=>Q(j,W,Y);callHook(q,[j,X]),nextFrame(()=>{removeTransitionClass(j,W?y:l),addTransitionClass(j,W?C:g),hasExplicitCallback(q)||whenTransitionEnds(j,o,$,X)})};return extend$2(r,{onBeforeEnter(W){callHook(B,[W]),addTransitionClass(W,l),addTransitionClass(W,d)},onBeforeAppear(W){callHook(D,[W]),addTransitionClass(W,y),addTransitionClass(W,b)},onEnter:K(!1),onAppear:K(!0),onLeave(W,j){W._isLeaving=!0;const Y=()=>G(W,j);addTransitionClass(W,x),forceReflow(),addTransitionClass(W,S),nextFrame(()=>{!W._isLeaving||(removeTransitionClass(W,x),addTransitionClass(W,_),hasExplicitCallback(M)||whenTransitionEnds(W,o,I,Y))}),callHook(M,[W,Y])},onEnterCancelled(W){Q(W,!1),callHook(P,[W])},onAppearCancelled(W){Q(W,!0),callHook(H,[W])},onLeaveCancelled(W){G(W),callHook(O,[W])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$i(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const r=NumberOf(t);return[r,r]}}function NumberOf(t){return toNumber$2(t)}function addTransitionClass(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t._vtc||(t._vtc=new Set)).add(r)}function removeTransitionClass(t,r){r.split(/\s+/).forEach(o=>o&&t.classList.remove(o));const{_vtc:n}=t;n&&(n.delete(r),n.size||(t._vtc=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,r,n,o){const s=t._endId=++endId,l=()=>{s===t._endId&&o()};if(n)return setTimeout(l,n);const{type:d,timeout:g,propCount:y}=getTransitionInfo(t,r);if(!d)return o();const b=d+"end";let C=0;const x=()=>{t.removeEventListener(b,S),l()},S=_=>{_.target===t&&++C>=y&&x()};setTimeout(()=>{C<y&&x()},g+1),t.addEventListener(b,S)}function getTransitionInfo(t,r){const n=window.getComputedStyle(t),o=w=>(n[w]||"").split(", "),s=o(`${TRANSITION}Delay`),l=o(`${TRANSITION}Duration`),d=getTimeout(s,l),g=o(`${ANIMATION}Delay`),y=o(`${ANIMATION}Duration`),b=getTimeout(g,y);let C=null,x=0,S=0;r===TRANSITION?d>0&&(C=TRANSITION,x=d,S=l.length):r===ANIMATION?b>0&&(C=ANIMATION,x=b,S=y.length):(x=Math.max(d,b),C=x>0?d>b?TRANSITION:ANIMATION:null,S=C?C===TRANSITION?l.length:y.length:0);const _=C===TRANSITION&&/\b(transform|all)(,|$)/.test(o(`${TRANSITION}Property`).toString());return{type:C,timeout:x,propCount:S,hasTransform:_}}function getTimeout(t,r){for(;t.length<r.length;)t=t.concat(t);return Math.max(...r.map((n,o)=>toMs(n)+toMs(t[o])))}function toMs(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(t,{slots:r}){const n=getCurrentInstance(),o=useTransitionState();let s,l;return onUpdated(()=>{if(!s.length)return;const d=t.moveClass||`${t.name||"v"}-move`;if(!hasCSSTransform(s[0].el,n.vnode.el,d))return;s.forEach(callPendingCbs),s.forEach(recordPosition);const g=s.filter(applyTranslation);forceReflow(),g.forEach(y=>{const b=y.el,C=b.style;addTransitionClass(b,d),C.transform=C.webkitTransform=C.transitionDuration="";const x=b._moveCb=S=>{S&&S.target!==b||(!S||/transform$/.test(S.propertyName))&&(b.removeEventListener("transitionend",x),b._moveCb=null,removeTransitionClass(b,d))};b.addEventListener("transitionend",x)})}),()=>{const d=toRaw(t),g=resolveTransitionProps(d);let y=d.tag||Fragment;s=l,l=r.default?getTransitionRawChildren(r.default()):[];for(let b=0;b<l.length;b++){const C=l[b];C.key!=null&&setTransitionHooks(C,resolveTransitionHooks(C,g,o,n))}if(s)for(let b=0;b<s.length;b++){const C=s[b];setTransitionHooks(C,resolveTransitionHooks(C,g,o,n)),positionMap.set(C,C.el.getBoundingClientRect())}return createVNode$1(y,null,l)}}},removeMode=t=>delete t.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(t){const r=t.el;r._moveCb&&r._moveCb(),r._enterCb&&r._enterCb()}function recordPosition(t){newPositionMap.set(t,t.el.getBoundingClientRect())}function applyTranslation(t){const r=positionMap.get(t),n=newPositionMap.get(t),o=r.left-n.left,s=r.top-n.top;if(o||s){const l=t.el.style;return l.transform=l.webkitTransform=`translate(${o}px,${s}px)`,l.transitionDuration="0s",t}}function hasCSSTransform(t,r,n){const o=t.cloneNode();t._vtc&&t._vtc.forEach(d=>{d.split(/\s+/).forEach(g=>g&&o.classList.remove(g))}),n.split(/\s+/).forEach(d=>d&&o.classList.add(d)),o.style.display="none";const s=r.nodeType===1?r:r.parentNode;s.appendChild(o);const{hasTransform:l}=getTransitionInfo(o);return s.removeChild(o),l}const getModelAssigner=t=>{const r=t.props["onUpdate:modelValue"]||!1;return isArray$h(r)?n=>invokeArrayFns(r,n):r};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const vModelText={created(t,{modifiers:{lazy:r,trim:n,number:o}},s){t._assign=getModelAssigner(s);const l=o||s.props&&s.props.type==="number";addEventListener$1(t,r?"change":"input",d=>{if(d.target.composing)return;let g=t.value;n&&(g=g.trim()),l&&(g=looseToNumber(g)),t._assign(g)}),n&&addEventListener$1(t,"change",()=>{t.value=t.value.trim()}),r||(addEventListener$1(t,"compositionstart",onCompositionStart),addEventListener$1(t,"compositionend",onCompositionEnd),addEventListener$1(t,"change",onCompositionEnd))},mounted(t,{value:r}){t.value=r==null?"":r},beforeUpdate(t,{value:r,modifiers:{lazy:n,trim:o,number:s}},l){if(t._assign=getModelAssigner(l),t.composing||document.activeElement===t&&t.type!=="range"&&(n||o&&t.value.trim()===r||(s||t.type==="number")&&looseToNumber(t.value)===r))return;const d=r==null?"":r;t.value!==d&&(t.value=d)}},vModelCheckbox={deep:!0,created(t,r,n){t._assign=getModelAssigner(n),addEventListener$1(t,"change",()=>{const o=t._modelValue,s=getValue$4(t),l=t.checked,d=t._assign;if(isArray$h(o)){const g=looseIndexOf(o,s),y=g!==-1;if(l&&!y)d(o.concat(s));else if(!l&&y){const b=[...o];b.splice(g,1),d(b)}}else if(isSet$2(o)){const g=new Set(o);l?g.add(s):g.delete(s),d(g)}else d(getCheckboxValue(t,l))})},mounted:setChecked,beforeUpdate(t,r,n){t._assign=getModelAssigner(n),setChecked(t,r,n)}};function setChecked(t,{value:r,oldValue:n},o){t._modelValue=r,isArray$h(r)?t.checked=looseIndexOf(r,o.props.value)>-1:isSet$2(r)?t.checked=r.has(o.props.value):r!==n&&(t.checked=looseEqual(r,getCheckboxValue(t,!0)))}const vModelRadio={created(t,{value:r},n){t.checked=looseEqual(r,n.props.value),t._assign=getModelAssigner(n),addEventListener$1(t,"change",()=>{t._assign(getValue$4(t))})},beforeUpdate(t,{value:r,oldValue:n},o){t._assign=getModelAssigner(o),r!==n&&(t.checked=looseEqual(r,o.props.value))}},vModelSelect={deep:!0,created(t,{value:r,modifiers:{number:n}},o){const s=isSet$2(r);addEventListener$1(t,"change",()=>{const l=Array.prototype.filter.call(t.options,d=>d.selected).map(d=>n?looseToNumber(getValue$4(d)):getValue$4(d));t._assign(t.multiple?s?new Set(l):l:l[0])}),t._assign=getModelAssigner(o)},mounted(t,{value:r}){setSelected(t,r)},beforeUpdate(t,r,n){t._assign=getModelAssigner(n)},updated(t,{value:r}){setSelected(t,r)}};function setSelected(t,r){const n=t.multiple;if(!(n&&!isArray$h(r)&&!isSet$2(r))){for(let o=0,s=t.options.length;o<s;o++){const l=t.options[o],d=getValue$4(l);if(n)isArray$h(r)?l.selected=looseIndexOf(r,d)>-1:l.selected=r.has(d);else if(looseEqual(getValue$4(l),r)){t.selectedIndex!==o&&(t.selectedIndex=o);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue$4(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,r){const n=r?"_trueValue":"_falseValue";return n in t?t[n]:r}const vModelDynamic={created(t,r,n){callModelHook(t,r,n,null,"created")},mounted(t,r,n){callModelHook(t,r,n,null,"mounted")},beforeUpdate(t,r,n,o){callModelHook(t,r,n,o,"beforeUpdate")},updated(t,r,n,o){callModelHook(t,r,n,o,"updated")}};function resolveDynamicModel(t,r){switch(t){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(r){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(t,r,n,o,s){const d=resolveDynamicModel(t.tagName,n.props&&n.props.type)[s];d&&d(t,r,n,o)}function initVModelForSSR(){vModelText.getSSRProps=({value:t})=>({value:t}),vModelRadio.getSSRProps=({value:t},r)=>{if(r.props&&looseEqual(r.props.value,t))return{checked:!0}},vModelCheckbox.getSSRProps=({value:t},r)=>{if(isArray$h(t)){if(r.props&&looseIndexOf(t,r.props.value)>-1)return{checked:!0}}else if(isSet$2(t)){if(r.props&&t.has(r.props.value))return{checked:!0}}else if(t)return{checked:!0}},vModelDynamic.getSSRProps=(t,r)=>{if(typeof r.type!="string")return;const n=resolveDynamicModel(r.type.toUpperCase(),r.props&&r.props.type);if(n.getSSRProps)return n.getSSRProps(t,r)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>systemModifiers.some(n=>t[`${n}Key`]&&!r.includes(n))},withModifiers=(t,r)=>(n,...o)=>{for(let s=0;s<r.length;s++){const l=modifierGuards[r[s]];if(l&&l(n,r))return}return t(n,...o)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=(t,r)=>n=>{if(!("key"in n))return;const o=hyphenate(n.key);if(r.some(s=>s===o||keyNames[s]===o))return t(n)},vShow={beforeMount(t,{value:r},{transition:n}){t._vod=t.style.display==="none"?"":t.style.display,n&&r?n.beforeEnter(t):setDisplay(t,r)},mounted(t,{value:r},{transition:n}){n&&r&&n.enter(t)},updated(t,{value:r,oldValue:n},{transition:o}){!r!=!n&&(o?r?(o.beforeEnter(t),setDisplay(t,!0),o.enter(t)):o.leave(t,()=>{setDisplay(t,!1)}):setDisplay(t,r))},beforeUnmount(t,{value:r}){setDisplay(t,r)}};function setDisplay(t,r){t.style.display=r?t._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$3=(...t)=>{ensureRenderer().render(...t)},hydrate=(...t)=>{ensureHydrationRenderer().hydrate(...t)},createApp=(...t)=>{const r=ensureRenderer().createApp(...t),{mount:n}=r;return r.mount=o=>{const s=normalizeContainer(o);if(!s)return;const l=r._component;!isFunction$8(l)&&!l.render&&!l.template&&(l.template=s.innerHTML),s.innerHTML="";const d=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),d},r},createSSRApp=(...t)=>{const r=ensureHydrationRenderer().createApp(...t),{mount:n}=r;return r.mount=o=>{const s=normalizeContainer(o);if(s)return n(s,!0,s instanceof SVGElement)},r};function normalizeContainer(t){return isString$4(t)?document.querySelector(t):t}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile=()=>{};var vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,compile,EffectScope,ReactiveEffect,customRef,effect,effectScope,getCurrentScope,isProxy,isReactive,isReadonly,isRef,isShallow,markRaw,onScopeDispose,proxyRefs,reactive,readonly,ref,shallowReactive,shallowReadonly,shallowRef,stop:stop$1,toRaw,toRef,toRefs,triggerRef,unref,camelize,capitalize:capitalize$3,normalizeClass,normalizeProps,normalizeStyle:normalizeStyle$1,toDisplayString:toDisplayString$1,toHandlerKey,BaseTransition,Comment,Fragment,KeepAlive,Static,Suspense,Teleport,Text,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,cloneVNode,compatUtils,computed,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSlots,createStaticVNode,createTextVNode,createVNode:createVNode$1,defineAsyncComponent,defineComponent,defineEmits,defineExpose,defineProps,get devtools(){return devtools$1},getCurrentInstance,getTransitionRawChildren,guardReactiveProps,h,handleError,initCustomFormatter,inject,isMemoSame,isRuntimeOnly,isVNode:isVNode$1,mergeDefaults,mergeProps,nextTick,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,pushScopeId,queuePostFlushCb,registerRuntimeCompiler,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,ssrContextKey:ssrContextKey$1,ssrUtils,toHandlers,transformVNodeArgs,useAttrs,useSSRContext,useSlots,useTransitionState,version:version$4,warn:warn$6,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withMemo,withScopeId,Transition,TransitionGroup,VueElement,createApp,createSSRApp,defineCustomElement,defineSSRCustomElement,hydrate,initDirectivesForSSR,render:render$3,useCssModule,useCssVars,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,withKeys,withModifiers},Symbol.toStringTag,{value:"Module"}));let onceCbs=[];const paramsMap=new WeakMap;function flushOnceCallbacks(){onceCbs.forEach(t=>t(...paramsMap.get(t))),onceCbs=[]}function beforeNextFrameOnce(t,...r){paramsMap.set(t,r),!onceCbs.includes(t)&&onceCbs.push(t)===1&&requestAnimationFrame(flushOnceCallbacks)}function getParentNode$1(t){return t.nodeType===9?null:t.parentNode}function getScrollParent$1(t){if(t===null)return null;const r=getParentNode$1(t);if(r===null)return null;if(r.nodeType===9)return document.documentElement;if(r.nodeType===1){const{overflow:n,overflowX:o,overflowY:s}=getComputedStyle(r);if(/(auto|scroll|overlay)/.test(n+s+o))return r}return getScrollParent$1(r)}function unwrapElement(t){return typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t}function happensIn(t,r){let{target:n}=t;for(;n;){if(n.dataset&&n.dataset[r]!==void 0)return!0;n=n.parentElement}return!1}function getPreciseEventTarget(t){return t.composedPath()[0]||null}function parseResponsiveProp(t){if(typeof t=="number")return{"":t.toString()};const r={};return t.split(/ +/).forEach(n=>{if(n==="")return;const[o,s]=n.split(":");s===void 0?r[""]=o:r[o]=s}),r}function parseResponsivePropValue(t,r){var n;if(t==null)return;const o=parseResponsiveProp(t);if(r===void 0)return o[""];if(typeof r=="string")return(n=o[r])!==null&&n!==void 0?n:o[""];if(Array.isArray(r)){for(let s=r.length-1;s>=0;--s){const l=r[s];if(l in o)return o[l]}return o[""]}else{let s,l=-1;return Object.keys(o).forEach(d=>{const g=Number(d);!Number.isNaN(g)&&r>=g&&g>=l&&(l=g,s=o[d])}),s}}function depx(t){return typeof t=="string"?t.endsWith("px")?Number(t.slice(0,t.length-2)):Number(t):t}function pxfy(t){if(t!=null)return typeof t=="number"?`${t}px`:t.endsWith("px")?t:`${t}px`}function getMargin(t,r){const n=t.trim().split(/\s+/g),o={top:n[0]};switch(n.length){case 1:o.right=n[0],o.bottom=n[0],o.left=n[0];break;case 2:o.right=n[1],o.left=n[1],o.bottom=n[0];break;case 3:o.right=n[1],o.bottom=n[2],o.left=n[1];break;case 4:o.right=n[1],o.bottom=n[2],o.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+t+" is not a valid value.")}return r===void 0?o:o[r]}function getGap$1(t,r){const[n,o]=t.split(" ");return r?r==="row"?n:o:{row:n,col:o||n}}var colors={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 hsl2hsv(t,r,n){r/=100,n/=100;const o=r*Math.min(n,1-n)+n;return[t,o?(2-2*n/o)*100:0,o*100]}function hsv2hsl(t,r,n){r/=100,n/=100;const o=n-n*r/2,s=Math.min(o,1-o);return[t,s?(n-o)/s*100:0,o*100]}function hsv2rgb(t,r,n){r/=100,n/=100;let o=(s,l=(s+t/60)%6)=>n-n*r*Math.max(Math.min(l,4-l,1),0);return[o(5)*255,o(3)*255,o(1)*255]}function rgb2hsv(t,r,n){t/=255,r/=255,n/=255;let o=Math.max(t,r,n),s=o-Math.min(t,r,n),l=s&&(o==t?(r-n)/s:o==r?2+(n-t)/s:4+(t-r)/s);return[60*(l<0?l+6:l),o&&s/o*100,o*100]}function rgb2hsl(t,r,n){t/=255,r/=255,n/=255;let o=Math.max(t,r,n),s=o-Math.min(t,r,n),l=1-Math.abs(o+o-s-1),d=s&&(o==t?(r-n)/s:o==r?2+(n-t)/s:4+(t-r)/s);return[60*(d<0?d+6:d),l?s/l*100:0,(o+o-s)*50]}function hsl2rgb(t,r,n){r/=100,n/=100;let o=r*Math.min(n,1-n),s=(l,d=(l+t/30)%12)=>n-o*Math.max(Math.min(d-3,9-d,1),-1);return[s(0)*255,s(8)*255,s(4)*255]}const prefix$1="^\\s*",suffix="\\s*$",percent="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",float$1="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",hex="([0-9A-Fa-f])",dhex="([0-9A-Fa-f]{2})",hslRegex=new RegExp(`${prefix$1}hsl\\s*\\(${float$1},${percent},${percent}\\)${suffix}`),hsvRegex=new RegExp(`${prefix$1}hsv\\s*\\(${float$1},${percent},${percent}\\)${suffix}`),hslaRegex=new RegExp(`${prefix$1}hsla\\s*\\(${float$1},${percent},${percent},${float$1}\\)${suffix}`),hsvaRegex=new RegExp(`${prefix$1}hsva\\s*\\(${float$1},${percent},${percent},${float$1}\\)${suffix}`),rgbRegex=new RegExp(`${prefix$1}rgb\\s*\\(${float$1},${float$1},${float$1}\\)${suffix}`),rgbaRegex=new RegExp(`${prefix$1}rgba\\s*\\(${float$1},${float$1},${float$1},${float$1}\\)${suffix}`),sHexRegex=new RegExp(`${prefix$1}#${hex}${hex}${hex}${suffix}`),hexRegex=new RegExp(`${prefix$1}#${dhex}${dhex}${dhex}${suffix}`),sHexaRegex=new RegExp(`${prefix$1}#${hex}${hex}${hex}${hex}${suffix}`),hexaRegex=new RegExp(`${prefix$1}#${dhex}${dhex}${dhex}${dhex}${suffix}`);function parseHex(t){return parseInt(t,16)}function hsla(t){try{let r;if(r=hslaRegex.exec(t))return[roundDeg(r[1]),roundPercent(r[5]),roundPercent(r[9]),roundAlpha(r[13])];if(r=hslRegex.exec(t))return[roundDeg(r[1]),roundPercent(r[5]),roundPercent(r[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${t}.`)}catch(r){throw r}}function hsva(t){try{let r;if(r=hsvaRegex.exec(t))return[roundDeg(r[1]),roundPercent(r[5]),roundPercent(r[9]),roundAlpha(r[13])];if(r=hsvRegex.exec(t))return[roundDeg(r[1]),roundPercent(r[5]),roundPercent(r[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${t}.`)}catch(r){throw r}}function rgba(t){try{let r;if(r=hexRegex.exec(t))return[parseHex(r[1]),parseHex(r[2]),parseHex(r[3]),1];if(r=rgbRegex.exec(t))return[roundChannel(r[1]),roundChannel(r[5]),roundChannel(r[9]),1];if(r=rgbaRegex.exec(t))return[roundChannel(r[1]),roundChannel(r[5]),roundChannel(r[9]),roundAlpha(r[13])];if(r=sHexRegex.exec(t))return[parseHex(r[1]+r[1]),parseHex(r[2]+r[2]),parseHex(r[3]+r[3]),1];if(r=hexaRegex.exec(t))return[parseHex(r[1]),parseHex(r[2]),parseHex(r[3]),roundAlpha(parseHex(r[4])/255)];if(r=sHexaRegex.exec(t))return[parseHex(r[1]+r[1]),parseHex(r[2]+r[2]),parseHex(r[3]+r[3]),roundAlpha(parseHex(r[4]+r[4])/255)];if(t in colors)return rgba(colors[t]);throw new Error(`[seemly/rgba]: Invalid color value ${t}.`)}catch(r){throw r}}function normalizeAlpha$1(t){return t>1?1:t<0?0:t}function stringifyRgb(t,r,n){return`rgb(${roundChannel(t)}, ${roundChannel(r)}, ${roundChannel(n)})`}function stringifyRgba(t,r,n,o){return`rgba(${roundChannel(t)}, ${roundChannel(r)}, ${roundChannel(n)}, ${normalizeAlpha$1(o)})`}function compositeChannel(t,r,n,o,s){return roundChannel((t*r*(1-o)+n*o)/s)}function composite(t,r){Array.isArray(t)||(t=rgba(t)),Array.isArray(r)||(r=rgba(r));const n=t[3],o=r[3],s=roundAlpha(n+o-n*o);return stringifyRgba(compositeChannel(t[0],n,r[0],o,s),compositeChannel(t[1],n,r[1],o,s),compositeChannel(t[2],n,r[2],o,s),s)}function changeColor(t,r){const[n,o,s,l=1]=Array.isArray(t)?t:rgba(t);return r.alpha?stringifyRgba(n,o,s,r.alpha):stringifyRgba(n,o,s,l)}function scaleColor(t,r){const[n,o,s,l=1]=Array.isArray(t)?t:rgba(t),{lightness:d=1,alpha:g=1}=r;return toRgbaString([n*d,o*d,s*d,l*g])}function roundAlpha(t){const r=Math.round(Number(t)*100)/100;return r>1?1:r<0?0:r}function roundDeg(t){const r=Math.round(Number(t));return r>=360||r<0?0:r}function roundChannel(t){const r=Math.round(Number(t));return r>255?255:r<0?0:r}function roundPercent(t){const r=Math.round(Number(t));return r>100?100:r<0?0:r}function toRgbString(t){const[r,n,o]=Array.isArray(t)?t:rgba(t);return stringifyRgb(r,n,o)}function toRgbaString(t){const[r,n,o]=t;return 3 in t?`rgba(${roundChannel(r)}, ${roundChannel(n)}, ${roundChannel(o)}, ${roundAlpha(t[3])})`:`rgba(${roundChannel(r)}, ${roundChannel(n)}, ${roundChannel(o)}, 1)`}function toHsvString(t){return`hsv(${roundDeg(t[0])}, ${roundPercent(t[1])}%, ${roundPercent(t[2])}%)`}function toHsvaString(t){const[r,n,o]=t;return 3 in t?`hsva(${roundDeg(r)}, ${roundPercent(n)}%, ${roundPercent(o)}%, ${roundAlpha(t[3])})`:`hsva(${roundDeg(r)}, ${roundPercent(n)}%, ${roundPercent(o)}%, 1)`}function toHslString(t){return`hsl(${roundDeg(t[0])}, ${roundPercent(t[1])}%, ${roundPercent(t[2])}%)`}function toHslaString(t){const[r,n,o]=t;return 3 in t?`hsla(${roundDeg(r)}, ${roundPercent(n)}%, ${roundPercent(o)}%, ${roundAlpha(t[3])})`:`hsla(${roundDeg(r)}, ${roundPercent(n)}%, ${roundPercent(o)}%, 1)`}function toHexaString(t){if(typeof t=="string"){let o;if(o=hexRegex.exec(t))return`${o[0]}FF`;if(o=hexaRegex.exec(t))return o[0];if(o=sHexRegex.exec(t))return`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}FF`;if(o=sHexaRegex.exec(t))return`#${o[1]}${o[1]}${o[2]}${o[2]}${o[3]}${o[3]}${o[4]}${o[4]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}const r=`#${t.slice(0,3).map(o=>roundChannel(o).toString(16).toUpperCase().padStart(2,"0")).join("")}`,n=t.length===3?"FF":roundChannel(t[3]*255).toString(16).padStart(2,"0").toUpperCase();return r+n}function toHexString(t){if(typeof t=="string"){let r;if(r=hexRegex.exec(t))return r[0];if(r=hexaRegex.exec(t))return r[0].slice(0,7);if(r=sHexRegex.exec(t)||sHexaRegex.exec(t))return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}`;throw new Error(`[seemly/toHexString]: Invalid hex value ${t}.`)}return`#${t.slice(0,3).map(r=>roundChannel(r).toString(16).toUpperCase().padStart(2,"0")).join("")}`}function createId(t=8){return Math.random().toString(16).slice(2,2+t)}function repeat(t,r){const n=[];for(let o=0;o<t;++o)n.push(r);return n}function indexMap(t,r){const n=[];if(!r){for(let o=0;o<t;++o)n.push(o);return n}for(let o=0;o<t;++o)n.push(r(o));return n}function getSlot$1(t,r="default",n=[]){const s=t.$slots[r];return s===void 0?n:s()}function getVNodeChildren(t,r="default",n=[]){const{children:o}=t;if(o!==null&&typeof o=="object"&&!Array.isArray(o)){const s=o[r];if(typeof s=="function")return s()}return n}function keep(t,r=[],n){const o={};return r.forEach(s=>{o[s]=t[s]}),Object.assign(o,n)}function omit(t,r=[],n){const o={};return Object.getOwnPropertyNames(t).forEach(l=>{r.includes(l)||(o[l]=t[l])}),Object.assign(o,n)}function flatten$5(t,r=!0,n=[]){return t.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(createTextVNode(String(o)));return}if(Array.isArray(o)){flatten$5(o,r,n);return}if(o.type===Fragment){if(o.children===null)return;Array.isArray(o.children)&&flatten$5(o.children,r,n)}else o.type!==Comment&&n.push(o)}}),n}function call(t,...r){if(Array.isArray(t))t.forEach(n=>call(n,...r));else return t(...r)}function keysOf(t){return Object.keys(t)}const render$2=(t,...r)=>typeof t=="function"?t(...r):typeof t=="string"?createTextVNode(t):typeof t=="number"?createTextVNode(String(t)):null,warnedMessages=new Set;function warnOnce(t,r){const n=`[naive/${t}]: ${r}`;warnedMessages.has(n)||(warnedMessages.add(n),console.error(n))}function warn$5(t,r){console.error(`[naive/${t}]: ${r}`)}function throwError$1(t,r){throw new Error(`[naive/${t}]: ${r}`)}function smallerSize(t){switch(t){case"tiny":return"mini";case"small":return"tiny";case"medium":return"small";case"large":return"medium";case"huge":return"large"}throw Error(`${t} has no smaller size.`)}function getTitleAttribute(t){switch(typeof t){case"string":return t||void 0;case"number":return String(t);default:return}}function getFirstSlotVNode(t,r="default",n=void 0){const o=t[r];if(!o)return warn$5("getFirstSlotVNode",`slot[${r}] is empty`),null;const s=flatten$5(o(n));return s.length===1?s[0]:(warn$5("getFirstSlotVNode",`slot[${r}] should have exactly one child`),null)}function createDataKey(t){return typeof t=="string"?`s-${t}`:`n-${t}`}function createRefSetter(t){return r=>{r?t.value=r.$el:t.value=null}}function createInjectionKey(t){return t}function ensureValidVNode(t){return t.some(r=>isVNode$1(r)?!(r.type===Comment||r.type===Fragment&&!ensureValidVNode(r.children)):!0)?t:null}function resolveSlot(t,r){return t&&ensureValidVNode(t())||r()}function resolveSlotWithProps(t,r,n){return t&&ensureValidVNode(t(r))||n(r)}function resolveWrappedSlot(t,r){const n=t&&ensureValidVNode(t());return r(n||null)}function resolveWrappedSlotWithProps(t,r,n){const o=t&&ensureValidVNode(t(r));return n(o||null)}function isSlotEmpty(t){return!(t&&ensureValidVNode(t()))}function mergeEventHandlers(t){const r=t.filter(n=>n!==void 0);if(r.length!==0)return r.length===1?r[0]:n=>{t.forEach(o=>{o&&o(n)})}}function isNodeVShowFalse(t){var r;const n=(r=t.dirs)===null||r===void 0?void 0:r.find(({dir:o})=>o===vShow);return!!(n&&n.value===!1)}const Wrapper=defineComponent({render(){var t,r;return(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t)}}),pureNumberRegex=/^(\d|\.)+$/,numberRegex=/(\d|\.)+/;function formatLength(t,{c:r=1,offset:n=0,attachPx:o=!0}={}){if(typeof t=="number"){const s=(t+n)*r;return s===0?"0":`${s}px`}else if(typeof t=="string")if(pureNumberRegex.test(t)){const s=(Number(t)+n)*r;return o?s===0?"0":`${s}px`:`${s}`}else{const s=numberRegex.exec(t);return s?t.replace(numberRegex,String((Number(s[0])+n)*r)):t}return t}function color2Class(t){return t.replace(/#|\(|\)|,|\s/g,"_")}function ampCount(t){let r=0;for(let n=0;n<t.length;++n)t[n]==="&"&&++r;return r}const separatorRegex=/\s*,(?![^(]*\))\s*/g,extraSpaceRegex=/\s+/g;function resolveSelectorWithAmp(t,r){const n=[];return r.split(separatorRegex).forEach(o=>{let s=ampCount(o);if(s){if(s===1){t.forEach(d=>{n.push(o.replace("&",d))});return}}else{t.forEach(d=>{n.push((d&&d+" ")+o)});return}let l=[o];for(;s--;){const d=[];l.forEach(g=>{t.forEach(y=>{d.push(g.replace("&",y))})}),l=d}l.forEach(d=>n.push(d))}),n}function resolveSelector(t,r){const n=[];return r.split(separatorRegex).forEach(o=>{t.forEach(s=>{n.push((s&&s+" ")+o)})}),n}function parseSelectorPath(t){let r=[""];return t.forEach(n=>{n=n&&n.trim(),n&&(n.includes("&")?r=resolveSelectorWithAmp(r,n):r=resolveSelector(r,n))}),r.join(", ").replace(extraSpaceRegex," ")}function removeElement$1(t){if(!t)return;const r=t.parentElement;r&&r.removeChild(t)}function queryElement(t){return document.querySelector(`style[cssr-id="${t}"]`)}function createElement$1(t){const r=document.createElement("style");return r.setAttribute("cssr-id",t),r}function isMediaOrSupports(t){return t?/^\s*@(s|m)/.test(t):!1}const kebabRegex=/[A-Z]/g;function kebabCase$2(t){return t.replace(kebabRegex,r=>"-"+r.toLowerCase())}function unwrapProperty(t,r=" "){return typeof t=="object"&&t!==null?` {
|
|
`+Object.entries(t).map(n=>r+` ${kebabCase$2(n[0])}: ${n[1]};`).join(`
|
|
`)+`
|
|
`+r+"}":`: ${t};`}function unwrapProperties(t,r,n){return typeof t=="function"?t({context:r.context,props:n}):t}function createStyle(t,r,n,o){if(!r)return"";const s=unwrapProperties(r,n,o);if(!s)return"";if(typeof s=="string")return`${t} {
|
|
${s}
|
|
}`;const l=Object.keys(s);if(l.length===0)return n.config.keepEmptyBlock?t+` {
|
|
}`:"";const d=t?[t+" {"]:[];return l.forEach(g=>{const y=s[g];if(g==="raw"){d.push(`
|
|
`+y+`
|
|
`);return}g=kebabCase$2(g),y!=null&&d.push(` ${g}${unwrapProperty(y)}`)}),t&&d.push("}"),d.join(`
|
|
`)}function loopCNodeListWithCallback(t,r,n){!t||t.forEach(o=>{if(Array.isArray(o))loopCNodeListWithCallback(o,r,n);else if(typeof o=="function"){const s=o(r);Array.isArray(s)?loopCNodeListWithCallback(s,r,n):s&&n(s)}else o&&n(o)})}function traverseCNode(t,r,n,o,s,l){const d=t.$;let g="";if(!d||typeof d=="string")isMediaOrSupports(d)?g=d:r.push(d);else if(typeof d=="function"){const C=d({context:o.context,props:s});isMediaOrSupports(C)?g=C:r.push(C)}else if(d.before&&d.before(o.context),!d.$||typeof d.$=="string")isMediaOrSupports(d.$)?g=d.$:r.push(d.$);else if(d.$){const C=d.$({context:o.context,props:s});isMediaOrSupports(C)?g=C:r.push(C)}const y=parseSelectorPath(r),b=createStyle(y,t.props,o,s);g?(n.push(`${g} {`),l&&b&&l.insertRule(`${g} {
|
|
${b}
|
|
}
|
|
`)):(l&&b&&l.insertRule(b),!l&&b.length&&n.push(b)),t.children&&loopCNodeListWithCallback(t.children,{context:o.context,props:s},C=>{if(typeof C=="string"){const x=createStyle(y,{raw:C},o,s);l?l.insertRule(x):n.push(x)}else traverseCNode(C,r,n,o,s,l)}),r.pop(),g&&n.push("}"),d&&d.after&&d.after(o.context)}function render$1(t,r,n,o=!1){const s=[];return traverseCNode(t,[],s,r,n,o?t.instance.__styleSheet:void 0),o?"":s.join(`
|
|
|
|
`)}function murmur2(t){for(var r=0,n,o=0,s=t.length;s>=4;++o,s-=4)n=t.charCodeAt(o)&255|(t.charCodeAt(++o)&255)<<8|(t.charCodeAt(++o)&255)<<16|(t.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,r=(n&65535)*1540483477+((n>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(s){case 3:r^=(t.charCodeAt(o+2)&255)<<16;case 2:r^=(t.charCodeAt(o+1)&255)<<8;case 1:r^=t.charCodeAt(o)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}typeof window!="undefined"&&(window.__cssrContext={});function unmount(t,r,n){const{els:o}=r;if(n===void 0)o.forEach(removeElement$1),r.els=[];else{const s=queryElement(n);s&&o.includes(s)&&(removeElement$1(s),r.els=o.filter(l=>l!==s))}}function addElementToList(t,r){t.push(r)}function mount(t,r,n,o,s,l,d,g,y){if(l&&!y){if(n===void 0){console.error("[css-render/mount]: `id` is required in `silent` mode.");return}const S=window.__cssrContext;S[n]||(S[n]=!0,render$1(r,t,o,l));return}let b;if(n===void 0&&(b=r.render(o),n=murmur2(b)),y){y.adapter(n,b!=null?b:r.render(o));return}const C=queryElement(n);if(C!==null&&!d)return C;const x=C!=null?C:createElement$1(n);if(b===void 0&&(b=r.render(o)),x.textContent=b,C!==null)return C;if(g){const S=document.head.querySelector(`meta[name="${g}"]`);if(S)return document.head.insertBefore(x,S),addElementToList(r.els,x),x}return s?document.head.insertBefore(x,document.head.querySelector("style, link")):document.head.appendChild(x),addElementToList(r.els,x),x}function wrappedRender(t){return render$1(this,this.instance,t)}function wrappedMount(t={}){const{id:r,ssr:n,props:o,head:s=!1,silent:l=!1,force:d=!1,anchorMetaName:g}=t;return mount(this.instance,this,r,o,s,l,d,g,n)}function wrappedUnmount(t={}){const{id:r}=t;unmount(this.instance,this,r)}const createCNode=function(t,r,n,o){return{instance:t,$:r,props:n,children:o,els:[],render:wrappedRender,mount:wrappedMount,unmount:wrappedUnmount}},c$2=function(t,r,n,o){return Array.isArray(r)?createCNode(t,{$:null},null,r):Array.isArray(n)?createCNode(t,r,null,n):Array.isArray(o)?createCNode(t,r,n,o):createCNode(t,r,n,null)};function CssRender(t={}){let r=null;const n={c:(...o)=>c$2(n,...o),use:(o,...s)=>o.install(n,...s),find:queryElement,context:{},config:t,get __styleSheet(){if(!r){const o=document.createElement("style");return document.head.appendChild(o),r=document.styleSheets[document.styleSheets.length-1],r}return r}};return n}function exists(t,r){if(t===void 0)return!1;if(r){const{context:{ids:n}}=r;return n.has(t)}return queryElement(t)!==null}function plugin$1(t){let r=".",n="__",o="--",s;if(t){let w=t.blockPrefix;w&&(r=w),w=t.elementPrefix,w&&(n=w),w=t.modifierPrefix,w&&(o=w)}const l={install(w){s=w.c;const $=w.context;$.bem={},$.bem.b=null,$.bem.els=null}};function d(w){let $,I;return{before(B){$=B.bem.b,I=B.bem.els,B.bem.els=null},after(B){B.bem.b=$,B.bem.els=I},$({context:B,props:R}){return w=typeof w=="string"?w:w({context:B,props:R}),B.bem.b=w,`${(R==null?void 0:R.bPrefix)||r}${B.bem.b}`}}}function g(w){let $;return{before(I){$=I.bem.els},after(I){I.bem.els=$},$({context:I,props:B}){return w=typeof w=="string"?w:w({context:I,props:B}),I.bem.els=w.split(",").map(R=>R.trim()),I.bem.els.map(R=>`${(B==null?void 0:B.bPrefix)||r}${I.bem.b}${n}${R}`).join(", ")}}}function y(w){return{$({context:$,props:I}){w=typeof w=="string"?w:w({context:$,props:I});const B=w.split(",").map(M=>M.trim());function R(M){return B.map(O=>`&${(I==null?void 0:I.bPrefix)||r}${$.bem.b}${M!==void 0?`${n}${M}`:""}${o}${O}`).join(", ")}const P=$.bem.els;return P!==null?R(P[0]):R()}}}function b(w){return{$({context:$,props:I}){w=typeof w=="string"?w:w({context:$,props:I});const B=$.bem.els;return`&:not(${(I==null?void 0:I.bPrefix)||r}${$.bem.b}${B!==null&&B.length>0?`${n}${B[0]}`:""}${o}${w})`}}}return Object.assign(l,{cB:(...w)=>s(d(w[0]),w[1],w[2]),cE:(...w)=>s(g(w[0]),w[1],w[2]),cM:(...w)=>s(y(w[0]),w[1],w[2]),cNotM:(...w)=>s(b(w[0]),w[1],w[2])}),l}function createKey(t,r){return t+(r==="default"?"":r.replace(/^[a-z]/,n=>n.toUpperCase()))}createKey("abc","def");const namespace="n",prefix=`.${namespace}-`,elementPrefix="__",modifierPrefix="--",cssr=CssRender(),plugin=plugin$1({blockPrefix:prefix,elementPrefix,modifierPrefix});cssr.use(plugin);const{c:c$1,find:find$1}=cssr,{cB,cE,cM,cNotM}=plugin;function insideModal(t){return c$1(({props:{bPrefix:r}})=>`${r||prefix}modal, ${r||prefix}drawer`,[t])}function insidePopover(t){return c$1(({props:{bPrefix:r}})=>`${r||prefix}popover`,[t])}function asModal(t){return c$1(({props:{bPrefix:r}})=>`&${r||prefix}modal`,t)}const cCB=(...t)=>c$1(">",[cB(...t)]);let _isJsdom;function isJsdom(){return _isJsdom===void 0&&(_isJsdom=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),_isJsdom}const isBrowser$3=typeof document!="undefined"&&typeof window!="undefined",eventSet=new WeakSet;function markEventEffectPerformed(t){eventSet.add(t)}function eventEffectNotPerformed(t){return!eventSet.has(t)}function useInjectionInstanceCollection(t,r,n){var o;const s=inject(t,null);if(s===null)return;const l=(o=getCurrentInstance())===null||o===void 0?void 0:o.proxy;watch(n,d),d(n.value),onBeforeUnmount(()=>{d(void 0,n.value)});function d(b,C){const x=s[r];C!==void 0&&g(x,C),b!==void 0&&y(x,b)}function g(b,C){b[C]||(b[C]=[]),b[C].splice(b[C].findIndex(x=>x===l),1)}function y(b,C){b[C]||(b[C]=[]),~b[C].findIndex(x=>x===l)||b[C].push(l)}}function useDeferredTrue(t,r,n){if(!r)return t;const o=ref(t.value);let s=null;return watch(t,l=>{s!==null&&window.clearTimeout(s),l===!0?n&&!n.value?o.value=!0:s=window.setTimeout(()=>{o.value=!0},r):o.value=!1}),o}function useFalseUntilTruthy(t){const r=ref(!!t.value);if(r.value)return readonly(r);const n=watch(t,o=>{o&&(r.value=!0,n())});return readonly(r)}function useMemo(t){const r=computed(t),n=ref(r.value);return watch(r,o=>{n.value=o}),typeof t=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(o){t.set(o)}}}function hasInstance(){return getCurrentInstance()!==null}const isBrowser$2=typeof window!="undefined";let fontsReady,isFontReady;const init$3=()=>{var t,r;fontsReady=isBrowser$2?(r=(t=document)===null||t===void 0?void 0:t.fonts)===null||r===void 0?void 0:r.ready:void 0,isFontReady=!1,fontsReady!==void 0?fontsReady.then(()=>{isFontReady=!0}):isFontReady=!0};init$3();function onFontsReady(t){if(isFontReady)return;let r=!1;onMounted(()=>{isFontReady||fontsReady==null||fontsReady.then(()=>{r||t()})}),onBeforeUnmount(()=>{r=!0})}function getEventTarget(t){return t.composedPath()[0]}const traps={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function createTrapHandler(t,r,n){if(t==="mousemoveoutside"){const o=s=>{r.contains(getEventTarget(s))||n(s)};return{mousemove:o,touchstart:o}}else if(t==="clickoutside"){let o=!1;const s=d=>{o=!r.contains(getEventTarget(d))},l=d=>{!o||r.contains(getEventTarget(d))||n(d)};return{mousedown:s,mouseup:l,touchstart:s,touchend:l}}return console.error(`[evtd/create-trap-handler]: name \`${t}\` is invalid. This could be a bug of evtd.`),{}}function ensureTrapHandlers(t,r,n){const o=traps[t];let s=o.get(r);s===void 0&&o.set(r,s=new WeakMap);let l=s.get(n);return l===void 0&&s.set(n,l=createTrapHandler(t,r,n)),l}function trapOn(t,r,n,o){if(t==="mousemoveoutside"||t==="clickoutside"){const s=ensureTrapHandlers(t,r,n);return Object.keys(s).forEach(l=>{on(l,document,s[l],o)}),!0}return!1}function trapOff(t,r,n,o){if(t==="mousemoveoutside"||t==="clickoutside"){const s=ensureTrapHandlers(t,r,n);return Object.keys(s).forEach(l=>{off(l,document,s[l],o)}),!0}return!1}function createDelegate(){if(typeof window=="undefined")return{on:()=>{},off:()=>{}};const t=new WeakMap,r=new WeakMap;function n(){t.set(this,!0)}function o(){t.set(this,!0),r.set(this,!0)}function s(N,H,Q){const G=N[H];return N[H]=function(){return Q.apply(N,arguments),G.apply(N,arguments)},N}function l(N,H){N[H]=Event.prototype[H]}const d=new WeakMap,g=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function y(){var N;return(N=d.get(this))!==null&&N!==void 0?N:null}function b(N,H){g!==void 0&&Object.defineProperty(N,"currentTarget",{configurable:!0,enumerable:!0,get:H!=null?H:g.get})}const C={bubble:{},capture:{}},x={};function S(){const N=function(H){const{type:Q,eventPhase:G,bubbles:K}=H,W=getEventTarget(H);if(G===2)return;const j=G===1?"capture":"bubble";let Y=W;const q=[];for(;Y===null&&(Y=window),q.push(Y),Y!==window;)Y=Y.parentNode||null;const X=C.capture[Q],re=C.bubble[Q];if(s(H,"stopPropagation",n),s(H,"stopImmediatePropagation",o),b(H,y),j==="capture"){if(X===void 0)return;for(let te=q.length-1;te>=0&&!t.has(H);--te){const oe=q[te],ae=X.get(oe);if(ae!==void 0){d.set(H,oe);for(const se of ae){if(r.has(H))break;se(H)}}if(te===0&&!K&&re!==void 0){const se=re.get(oe);if(se!==void 0)for(const ue of se){if(r.has(H))break;ue(H)}}}}else if(j==="bubble"){if(re===void 0)return;for(let te=0;te<q.length&&!t.has(H);++te){const oe=q[te],ae=re.get(oe);if(ae!==void 0){d.set(H,oe);for(const se of ae){if(r.has(H))break;se(H)}}}}l(H,"stopPropagation"),l(H,"stopImmediatePropagation"),b(H)};return N.displayName="evtdUnifiedHandler",N}function _(){const N=function(H){const{type:Q,eventPhase:G}=H;if(G!==2)return;const K=x[Q];K!==void 0&&K.forEach(W=>W(H))};return N.displayName="evtdUnifiedWindowEventHandler",N}const w=S(),$=_();function I(N,H){const Q=C[N];return Q[H]===void 0&&(Q[H]=new Map,window.addEventListener(H,w,N==="capture")),Q[H]}function B(N){return x[N]===void 0&&(x[N]=new Set,window.addEventListener(N,$)),x[N]}function R(N,H){let Q=N.get(H);return Q===void 0&&N.set(H,Q=new Set),Q}function P(N,H,Q,G){const K=C[H][Q];if(K!==void 0){const W=K.get(N);if(W!==void 0&&W.has(G))return!0}return!1}function M(N,H){const Q=x[N];return!!(Q!==void 0&&Q.has(H))}function O(N,H,Q,G){let K;if(typeof G=="object"&&G.once===!0?K=X=>{D(N,H,K,G),Q(X)}:K=Q,trapOn(N,H,K,G))return;const j=G===!0||typeof G=="object"&&G.capture===!0?"capture":"bubble",Y=I(j,N),q=R(Y,H);if(q.has(K)||q.add(K),H===window){const X=B(N);X.has(K)||X.add(K)}}function D(N,H,Q,G){if(trapOff(N,H,Q,G))return;const W=G===!0||typeof G=="object"&&G.capture===!0,j=W?"capture":"bubble",Y=I(j,N),q=R(Y,H);if(H===window&&!P(H,W?"bubble":"capture",N,Q)&&M(N,Q)){const re=x[N];re.delete(Q),re.size===0&&(window.removeEventListener(N,$),x[N]=void 0)}q.has(Q)&&q.delete(Q),q.size===0&&Y.delete(H),Y.size===0&&(window.removeEventListener(N,w,j==="capture"),C[j][N]=void 0)}return{on:O,off:D}}const{on,off}=createDelegate(),mousePositionRef=ref(null);function clickHandler(t){if(t.clientX>0||t.clientY>0)mousePositionRef.value={x:t.clientX,y:t.clientY};else{const{target:r}=t;if(r instanceof Element){const{left:n,top:o,width:s,height:l}=r.getBoundingClientRect();n>0||o>0?mousePositionRef.value={x:n+s/2,y:o+l/2}:mousePositionRef.value={x:0,y:0}}else mousePositionRef.value=null}}let usedCount$1=0,managable$1=!0;function useClickPosition(){if(!isBrowser$2)return readonly(ref(null));usedCount$1===0&&on("click",document,clickHandler,!0);const t=()=>{usedCount$1+=1};return managable$1&&(managable$1=hasInstance())?(onBeforeMount(t),onBeforeUnmount(()=>{usedCount$1-=1,usedCount$1===0&&off("click",document,clickHandler,!0)})):t(),readonly(mousePositionRef)}const clickedTimeRef=ref(void 0);let usedCount=0;function handleClick(){clickedTimeRef.value=Date.now()}let managable=!0;function useClicked(t){if(!isBrowser$2)return readonly(ref(!1));const r=ref(!1);let n=null;function o(){n!==null&&window.clearTimeout(n)}function s(){o(),r.value=!0,n=window.setTimeout(()=>{r.value=!1},t)}usedCount===0&&on("click",window,handleClick,!0);const l=()=>{usedCount+=1,on("click",window,s,!0)};return managable&&(managable=hasInstance())?(onBeforeMount(l),onBeforeUnmount(()=>{usedCount-=1,usedCount===0&&off("click",window,handleClick,!0),off("click",window,s,!0),o()})):l(),readonly(r)}function useMergedState(t,r){return watch(t,n=>{n!==void 0&&(r.value=n)}),computed(()=>t.value===void 0?r.value:t.value)}function isMounted(){const t=ref(!1);return onMounted(()=>{t.value=!0}),readonly(t)}function useCompitable(t,r){return computed(()=>{for(const n of r)if(t[n]!==void 0)return t[n];return t[r[r.length-1]]})}const isIos=(typeof window=="undefined"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function useIsIos(){return isIos}const defaultBreakpointOptions={xs:0,s:640,m:1024,l:1280,xl:1536,"2xl":1920};function createMediaQuery(t){return`(min-width: ${t}px)`}const mqlMap={};function useBreakpoints(t=defaultBreakpointOptions){if(!isBrowser$2)return computed(()=>[]);if(typeof window.matchMedia!="function")return computed(()=>[]);const r=ref({}),n=Object.keys(t),o=(s,l)=>{s.matches?r.value[l]=!0:r.value[l]=!1};return n.forEach(s=>{const l=t[s];let d,g;mqlMap[l]===void 0?(d=window.matchMedia(createMediaQuery(l)),d.addEventListener?d.addEventListener("change",y=>{g.forEach(b=>{b(y,s)})}):d.addListener&&d.addListener(y=>{g.forEach(b=>{b(y,s)})}),g=new Set,mqlMap[l]={mql:d,cbs:g}):(d=mqlMap[l].mql,g=mqlMap[l].cbs),g.add(o),d.matches&&g.forEach(y=>{y(d,s)})}),onBeforeUnmount(()=>{n.forEach(s=>{const{cbs:l}=mqlMap[t[s]];l.has(o)&&l.delete(o)})}),computed(()=>{const{value:s}=r;return n.filter(l=>s[l])})}function useKeyboard$1(t={},r){const n=reactive({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:o,keyup:s}=t,l=y=>{switch(y.key){case"Control":n.ctrl=!0;break;case"Meta":n.command=!0,n.win=!0;break;case"Shift":n.shift=!0;break;case"Tab":n.tab=!0;break}o!==void 0&&Object.keys(o).forEach(b=>{if(b!==y.key)return;const C=o[b];if(typeof C=="function")C(y);else{const{stop:x=!1,prevent:S=!1}=C;x&&y.stopPropagation(),S&&y.preventDefault(),C.handler(y)}})},d=y=>{switch(y.key){case"Control":n.ctrl=!1;break;case"Meta":n.command=!1,n.win=!1;break;case"Shift":n.shift=!1;break;case"Tab":n.tab=!1;break}s!==void 0&&Object.keys(s).forEach(b=>{if(b!==y.key)return;const C=s[b];if(typeof C=="function")C(y);else{const{stop:x=!1,prevent:S=!1}=C;x&&y.stopPropagation(),S&&y.preventDefault(),C.handler(y)}})},g=()=>{(r===void 0||r.value)&&(on("keydown",document,l),on("keyup",document,d)),r!==void 0&&watch(r,y=>{y?(on("keydown",document,l),on("keyup",document,d)):(off("keydown",document,l),off("keyup",document,d))})};return hasInstance()?(onBeforeMount(g),onBeforeUnmount(()=>{(r===void 0||r.value)&&(off("keydown",document,l),off("keyup",document,d))})):g(),readonly(n)}const internalSelectionMenuInjectionKey="n-internal-select-menu",internalSelectionMenuBodyInjectionKey="n-internal-select-menu-body",modalBodyInjectionKey="n-modal-body",modalInjectionKey="n-modal",drawerBodyInjectionKey="n-drawer-body",drawerInjectionKey="n-drawer",popoverBodyInjectionKey="n-popover-body",teleportDisabled="__disabled__";function useAdjustedTo(t){const r=inject(modalBodyInjectionKey,null),n=inject(drawerBodyInjectionKey,null),o=inject(popoverBodyInjectionKey,null),s=inject(internalSelectionMenuBodyInjectionKey,null),l=ref();if(typeof document!="undefined"){l.value=document.fullscreenElement;const d=()=>{l.value=document.fullscreenElement};onMounted(()=>{on("fullscreenchange",document,d)}),onBeforeUnmount(()=>{off("fullscreenchange",document,d)})}return useMemo(()=>{var d;const{to:g}=t;return g!==void 0?g===!1?teleportDisabled:g===!0?l.value||"body":g:r!=null&&r.value?(d=r.value.$el)!==null&&d!==void 0?d:r.value:n!=null&&n.value?n.value:o!=null&&o.value?o.value:s!=null&&s.value?s.value:g!=null?g:l.value||"body"})}useAdjustedTo.tdkey=teleportDisabled;useAdjustedTo.propTo={type:[String,Object,Boolean],default:void 0};let houdiniRegistered=!1;function useHoudini(){if(!!isBrowser$3&&!!window.CSS&&!houdiniRegistered&&(houdiniRegistered=!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(t){}}function getSlot(t,r,n="default"){const o=r[n];if(o===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);return o()}function flatten$4(t,r=!0,n=[]){return t.forEach(o=>{if(o!==null){if(typeof o!="object"){(typeof o=="string"||typeof o=="number")&&n.push(createTextVNode(String(o)));return}if(Array.isArray(o)){flatten$4(o,r,n);return}if(o.type===Fragment){if(o.children===null)return;Array.isArray(o.children)&&flatten$4(o.children,r,n)}else o.type!==Comment&&n.push(o)}}),n}function getFirstVNode(t,r,n="default"){const o=r[n];if(o===void 0)throw new Error(`[vueuc/${t}]: slot[${n}] is empty.`);const s=flatten$4(o());if(s.length===1)return s[0];throw new Error(`[vueuc/${t}]: slot[${n}] should have exactly one child.`)}let viewMeasurer=null;function ensureViewBoundingRect(){if(viewMeasurer===null&&(viewMeasurer=document.getElementById("v-binder-view-measurer"),viewMeasurer===null)){viewMeasurer=document.createElement("div"),viewMeasurer.id="v-binder-view-measurer";const{style:t}=viewMeasurer;t.position="fixed",t.left="0",t.right="0",t.top="0",t.bottom="0",t.pointerEvents="none",t.visibility="hidden",document.body.appendChild(viewMeasurer)}return viewMeasurer.getBoundingClientRect()}function getPointRect(t,r){const n=ensureViewBoundingRect();return{top:r,left:t,height:0,width:0,right:n.width-t,bottom:n.height-r}}function getRect(t){const r=t.getBoundingClientRect(),n=ensureViewBoundingRect();return{left:r.left-n.left,top:r.top-n.top,bottom:n.height+n.top-r.bottom,right:n.width+n.left-r.right,width:r.width,height:r.height}}function getParentNode(t){return t.nodeType===9?null:t.parentNode}function getScrollParent(t){if(t===null)return null;const r=getParentNode(t);if(r===null)return null;if(r.nodeType===9)return document;if(r.nodeType===1){const{overflow:n,overflowX:o,overflowY:s}=getComputedStyle(r);if(/(auto|scroll|overlay)/.test(n+s+o))return r}return getScrollParent(r)}const Binder=defineComponent({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){var r;provide("VBinder",(r=getCurrentInstance())===null||r===void 0?void 0:r.proxy);const n=inject("VBinder",null),o=ref(null),s=B=>{o.value=B,n&&t.syncTargetWithParent&&n.setTargetRef(B)};let l=[];const d=()=>{let B=o.value;for(;B=getScrollParent(B),B!==null;)l.push(B);for(const R of l)on("scroll",R,x,!0)},g=()=>{for(const B of l)off("scroll",B,x,!0);l=[]},y=new Set,b=B=>{y.size===0&&d(),y.has(B)||y.add(B)},C=B=>{y.has(B)&&y.delete(B),y.size===0&&g()},x=()=>{beforeNextFrameOnce(S)},S=()=>{y.forEach(B=>B())},_=new Set,w=B=>{_.size===0&&on("resize",window,I),_.has(B)||_.add(B)},$=B=>{_.has(B)&&_.delete(B),_.size===0&&off("resize",window,I)},I=()=>{_.forEach(B=>B())};return onBeforeUnmount(()=>{off("resize",window,I),g()}),{targetRef:o,setTargetRef:s,addScrollListener:b,removeScrollListener:C,addResizeListener:w,removeResizeListener:$}},render(){return getSlot("binder",this.$slots)}});var VBinder=Binder,VTarget=defineComponent({name:"Target",setup(){const{setTargetRef:t,syncTarget:r}=inject("VBinder");return{syncTarget:r,setTargetDirective:{mounted:t,updated:t}}},render(){const{syncTarget:t,setTargetDirective:r}=this;return t?withDirectives(getFirstVNode("follower",this.$slots),[[r]]):getFirstVNode("follower",this.$slots)}});const ctxKey$1="@@mmoContext",mousemoveoutside={mounted(t,{value:r}){t[ctxKey$1]={handler:void 0},typeof r=="function"&&(t[ctxKey$1].handler=r,on("mousemoveoutside",t,r))},updated(t,{value:r}){const n=t[ctxKey$1];typeof r=="function"?n.handler?n.handler!==r&&(off("mousemoveoutside",t,n.handler),n.handler=r,on("mousemoveoutside",t,r)):(t[ctxKey$1].handler=r,on("mousemoveoutside",t,r)):n.handler&&(off("mousemoveoutside",t,n.handler),n.handler=void 0)},unmounted(t){const{handler:r}=t[ctxKey$1];r&&off("mousemoveoutside",t,r),t[ctxKey$1].handler=void 0}};var mousemoveoutside$1=mousemoveoutside;const ctxKey="@@coContext",clickoutside={mounted(t,{value:r,modifiers:n}){t[ctxKey]={handler:void 0},typeof r=="function"&&(t[ctxKey].handler=r,on("clickoutside",t,r,{capture:n.capture}))},updated(t,{value:r,modifiers:n}){const o=t[ctxKey];typeof r=="function"?o.handler?o.handler!==r&&(off("clickoutside",t,o.handler,{capture:n.capture}),o.handler=r,on("clickoutside",t,r,{capture:n.capture})):(t[ctxKey].handler=r,on("clickoutside",t,r,{capture:n.capture})):o.handler&&(off("clickoutside",t,o.handler,{capture:n.capture}),o.handler=void 0)},unmounted(t,{modifiers:r}){const{handler:n}=t[ctxKey];n&&off("clickoutside",t,n,{capture:r.capture}),t[ctxKey].handler=void 0}};var clickoutside$1=clickoutside;function warn$4(t,r){console.error(`[vdirs/${t}]: ${r}`)}class ZIndexManager{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(r,n){const{elementZIndex:o}=this;if(n!==void 0){r.style.zIndex=`${n}`,o.delete(r);return}const{nextZIndex:s}=this;o.has(r)&&o.get(r)+1===this.nextZIndex||(r.style.zIndex=`${s}`,o.set(r,s),this.nextZIndex=s+1,this.squashState())}unregister(r,n){const{elementZIndex:o}=this;o.has(r)?o.delete(r):n===void 0&&warn$4("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:r}=this;r||(this.nextZIndex=2e3),this.nextZIndex-r>2500&&this.rearrange()}rearrange(){const r=Array.from(this.elementZIndex.entries());r.sort((n,o)=>n[1]-o[1]),this.nextZIndex=2e3,r.forEach(n=>{const o=n[0],s=this.nextZIndex++;`${s}`!==o.style.zIndex&&(o.style.zIndex=`${s}`)})}}var zIndexManager=new ZIndexManager;const ctx="@@ziContext",zindexable={mounted(t,r){const{value:n={}}=r,{zIndex:o,enabled:s}=n;t[ctx]={enabled:!!s,initialized:!1},s&&(zIndexManager.ensureZIndex(t,o),t[ctx].initialized=!0)},updated(t,r){const{value:n={}}=r,{zIndex:o,enabled:s}=n,l=t[ctx].enabled;s&&!l&&(zIndexManager.ensureZIndex(t,o),t[ctx].initialized=!0),t[ctx].enabled=!!s},unmounted(t,r){if(!t[ctx].initialized)return;const{value:n={}}=r,{zIndex:o}=n;zIndexManager.unregister(t,o)}};var zindexable$1=zindexable;const ssrContextKey=Symbol("@css-render/vue3-ssr");function createStyleString(t,r){return`<style cssr-id="${t}">
|
|
${r}
|
|
</style>`}function ssrAdapter(t,r){const n=inject(ssrContextKey,null);if(n===null){console.error("[css-render/vue3-ssr]: no ssr context found.");return}const{styles:o,ids:s}=n;s.has(t)||o!==null&&(s.add(t),o.push(createStyleString(t,r)))}const isBrowser$1=typeof document!="undefined";function useSsrAdapter(){if(isBrowser$1)return;const t=inject(ssrContextKey,null);if(t!==null)return{adapter:ssrAdapter,context:t}}function warn$3(t,r){console.error(`[vueuc/${t}]: ${r}`)}const{c}=CssRender(),cssrAnchorMetaName$1="vueuc-style";function lowBit(t){return t&-t}class FinweckTree{constructor(r,n){this.l=r,this.min=n;const o=new Array(r+1);for(let s=0;s<r+1;++s)o[s]=0;this.ft=o}add(r,n){if(n===0)return;const{l:o,ft:s}=this;for(r+=1;r<=o;)s[r]+=n,r+=lowBit(r)}get(r){return this.sum(r+1)-this.sum(r)}sum(r){if(r===void 0&&(r=this.l),r<=0)return 0;const{ft:n,min:o,l:s}=this;if(r>s)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let l=r*o;for(;r>0;)l+=n[r],r-=lowBit(r);return l}getBound(r){let n=0,o=this.l;for(;o>n;){const s=Math.floor((n+o)/2),l=this.sum(s);if(l>r){o=s;continue}else if(l<r){if(n===s)return this.sum(n+1)<=r?n+1:s;n=s}else return s}return n}}function resolveTo(t){return typeof t=="string"?document.querySelector(t):t()}var LazyTeleport=defineComponent({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(t){return{showTeleport:useFalseUntilTruthy(toRef(t,"show")),mergedTo:computed(()=>{const{to:r}=t;return r!=null?r:"body"})}},render(){return this.showTeleport?this.disabled?getSlot("lazy-teleport",this.$slots):h(Teleport,{disabled:this.disabled,to:this.mergedTo},getSlot("lazy-teleport",this.$slots)):null}});const oppositionPositions={top:"bottom",bottom:"top",left:"right",right:"left"},oppositeAligns={start:"end",center:"center",end:"start"},propToCompare={top:"height",bottom:"height",left:"width",right:"width"},transformOrigins={"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"},overlapTransformOrigin={"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"},oppositeAlignCssPositionProps={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},keepOffsetDirection={top:!0,bottom:!1,left:!0,right:!1},cssPositionToOppositeAlign={top:"end",bottom:"start",left:"end",right:"start"};function getPlacementAndOffsetOfFollower(t,r,n,o,s,l){if(!s||l)return{placement:t,top:0,left:0};const[d,g]=t.split("-");let y=g!=null?g:"center",b={top:0,left:0};const C=(_,w,$)=>{let I=0,B=0;const R=n[_]-r[w]-r[_];return R>0&&o&&($?B=keepOffsetDirection[w]?R:-R:I=keepOffsetDirection[w]?R:-R),{left:I,top:B}},x=d==="left"||d==="right";if(y!=="center"){const _=oppositeAlignCssPositionProps[t],w=oppositionPositions[_],$=propToCompare[_];if(n[$]>r[$]){if(r[_]+r[$]<n[$]){const I=(n[$]-r[$])/2;r[_]<I||r[w]<I?r[_]<r[w]?(y=oppositeAligns[g],b=C($,w,x)):b=C($,_,x):y="center"}}else n[$]<r[$]&&r[w]<0&&r[_]>r[w]&&(y=oppositeAligns[g])}else{const _=d==="bottom"||d==="top"?"left":"top",w=oppositionPositions[_],$=propToCompare[_],I=(n[$]-r[$])/2;(r[_]<I||r[w]<I)&&(r[_]>r[w]?(y=cssPositionToOppositeAlign[_],b=C($,_,x)):(y=cssPositionToOppositeAlign[w],b=C($,w,x)))}let S=d;return r[d]<n[propToCompare[d]]&&r[d]<r[oppositionPositions[d]]&&(S=oppositionPositions[d]),{placement:y!=="center"?`${S}-${y}`:S,left:b.left,top:b.top}}function getProperTransformOrigin(t,r){return r?overlapTransformOrigin[t]:transformOrigins[t]}function getOffset(t,r,n,o,s,l){if(l)switch(t){case"bottom-start":return{top:`${Math.round(n.top-r.top+n.height)}px`,left:`${Math.round(n.left-r.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(n.top-r.top+n.height)}px`,left:`${Math.round(n.left-r.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(n.top-r.top)}px`,left:`${Math.round(n.left-r.left)}px`,transform:""};case"top-end":return{top:`${Math.round(n.top-r.top)}px`,left:`${Math.round(n.left-r.left+n.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(n.top-r.top)}px`,left:`${Math.round(n.left-r.left+n.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(n.top-r.top+n.height)}px`,left:`${Math.round(n.left-r.left+n.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-r.top)}px`,left:`${Math.round(n.left-r.left)}px`,transform:""};case"left-end":return{top:`${Math.round(n.top-r.top+n.height)}px`,left:`${Math.round(n.left-r.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(n.top-r.top)}px`,left:`${Math.round(n.left-r.left+n.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(n.top-r.top+n.height/2)}px`,left:`${Math.round(n.left-r.left+n.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(n.top-r.top+n.height/2)}px`,left:`${Math.round(n.left-r.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(n.top-r.top+n.height)}px`,left:`${Math.round(n.left-r.left+n.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(t){case"bottom-start":return{top:`${Math.round(n.top-r.top+n.height+o)}px`,left:`${Math.round(n.left-r.left+s)}px`,transform:""};case"bottom-end":return{top:`${Math.round(n.top-r.top+n.height+o)}px`,left:`${Math.round(n.left-r.left+n.width+s)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(n.top-r.top+o)}px`,left:`${Math.round(n.left-r.left+s)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(n.top-r.top+o)}px`,left:`${Math.round(n.left-r.left+n.width+s)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(n.top-r.top+o)}px`,left:`${Math.round(n.left-r.left+n.width+s)}px`,transform:""};case"right-end":return{top:`${Math.round(n.top-r.top+n.height+o)}px`,left:`${Math.round(n.left-r.left+n.width+s)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(n.top-r.top+o)}px`,left:`${Math.round(n.left-r.left+s)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(n.top-r.top+n.height+o)}px`,left:`${Math.round(n.left-r.left+s)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(n.top-r.top+o)}px`,left:`${Math.round(n.left-r.left+n.width/2+s)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(n.top-r.top+n.height/2+o)}px`,left:`${Math.round(n.left-r.left+n.width+s)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(n.top-r.top+n.height/2+o)}px`,left:`${Math.round(n.left-r.left+s)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(n.top-r.top+n.height+o)}px`,left:`${Math.round(n.left-r.left+n.width/2+s)}px`,transform:"translateX(-50%)"}}}const style$1i=c([c(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),c(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[c("> *",{pointerEvents:"all"})])]);var VFollower=defineComponent({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(t){const r=inject("VBinder"),n=useMemo(()=>t.enabled!==void 0?t.enabled:t.show),o=ref(null),s=ref(null),l=()=>{const{syncTrigger:S}=t;S.includes("scroll")&&r.addScrollListener(y),S.includes("resize")&&r.addResizeListener(y)},d=()=>{r.removeScrollListener(y),r.removeResizeListener(y)};onMounted(()=>{n.value&&(y(),l())});const g=useSsrAdapter();style$1i.mount({id:"vueuc/binder",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:g}),onBeforeUnmount(()=>{d()}),onFontsReady(()=>{n.value&&y()});const y=()=>{if(!n.value)return;const S=o.value;if(S===null)return;const _=r.targetRef,{x:w,y:$,overlap:I}=t,B=w!==void 0&&$!==void 0?getPointRect(w,$):getRect(_);S.style.setProperty("--v-target-width",`${Math.round(B.width)}px`),S.style.setProperty("--v-target-height",`${Math.round(B.height)}px`);const{width:R,minWidth:P,placement:M,internalShift:O,flip:D}=t;S.setAttribute("v-placement",M),I?S.setAttribute("v-overlap",""):S.removeAttribute("v-overlap");const{style:N}=S;R==="target"?N.width=`${B.width}px`:R!==void 0?N.width=R:N.width="",P==="target"?N.minWidth=`${B.width}px`:P!==void 0?N.minWidth=P:N.minWidth="";const H=getRect(S),Q=getRect(s.value),{left:G,top:K,placement:W}=getPlacementAndOffsetOfFollower(M,B,H,O,D,I),j=getProperTransformOrigin(W,I),{left:Y,top:q,transform:X}=getOffset(W,Q,B,K,G,I);S.setAttribute("v-placement",W),S.style.setProperty("--v-offset-left",`${Math.round(G)}px`),S.style.setProperty("--v-offset-top",`${Math.round(K)}px`),S.style.transform=`translateX(${Y}) translateY(${q}) ${X}`,S.style.setProperty("--v-transform-origin",j),S.style.transformOrigin=j};watch(n,S=>{S?(l(),b()):d()});const b=()=>{nextTick().then(y).catch(S=>console.error(S))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(S=>{watch(toRef(t,S),y)}),["teleportDisabled"].forEach(S=>{watch(toRef(t,S),b)}),watch(toRef(t,"syncTrigger"),S=>{S.includes("resize")?r.addResizeListener(y):r.removeResizeListener(y),S.includes("scroll")?r.addScrollListener(y):r.removeScrollListener(y)});const C=isMounted(),x=useMemo(()=>{const{to:S}=t;if(S!==void 0)return S;C.value});return{VBinder:r,mergedEnabled:n,offsetContainerRef:s,followerRef:o,mergedTo:x,syncPosition:y}},render(){return h(LazyTeleport,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var t,r;const n=h("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[h("div",{class:"v-binder-follower-content",ref:"followerRef"},(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t))]);return this.zindexable?withDirectives(n,[[zindexable$1,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):n}})}}),resizeObservers=[],hasActiveObservations=function(){return resizeObservers.some(function(t){return t.activeTargets.length>0})},hasSkippedObservations=function(){return resizeObservers.some(function(t){return t.skippedTargets.length>0})},msg="ResizeObserver loop completed with undelivered notifications.",deliverResizeLoopError=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:msg}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=msg),window.dispatchEvent(t)},ResizeObserverBoxOptions;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ResizeObserverBoxOptions||(ResizeObserverBoxOptions={}));var freeze=function(t){return Object.freeze(t)},ResizeObserverSize=function(){function t(r,n){this.inlineSize=r,this.blockSize=n,freeze(this)}return t}(),DOMRectReadOnly=function(){function t(r,n,o,s){return this.x=r,this.y=n,this.width=o,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,freeze(this)}return t.prototype.toJSON=function(){var r=this,n=r.x,o=r.y,s=r.top,l=r.right,d=r.bottom,g=r.left,y=r.width,b=r.height;return{x:n,y:o,top:s,right:l,bottom:d,left:g,width:y,height:b}},t.fromRect=function(r){return new t(r.x,r.y,r.width,r.height)},t}(),isSVG$1=function(t){return t instanceof SVGElement&&"getBBox"in t},isHidden=function(t){if(isSVG$1(t)){var r=t.getBBox(),n=r.width,o=r.height;return!n&&!o}var s=t,l=s.offsetWidth,d=s.offsetHeight;return!(l||d||t.getClientRects().length)},isElement=function(t){var r;if(t instanceof Element)return!0;var n=(r=t==null?void 0:t.ownerDocument)===null||r===void 0?void 0:r.defaultView;return!!(n&&t instanceof n.Element)},isReplacedElement=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},global$3=typeof window!="undefined"?window:{},cache$1=new WeakMap,scrollRegexp=/auto|scroll/,verticalRegexp=/^tb|vertical/,IE=/msie|trident/i.test(global$3.navigator&&global$3.navigator.userAgent),parseDimension=function(t){return parseFloat(t||"0")},size=function(t,r,n){return t===void 0&&(t=0),r===void 0&&(r=0),n===void 0&&(n=!1),new ResizeObserverSize((n?r:t)||0,(n?t:r)||0)},zeroBoxes=freeze({devicePixelContentBoxSize:size(),borderBoxSize:size(),contentBoxSize:size(),contentRect:new DOMRectReadOnly(0,0,0,0)}),calculateBoxSizes=function(t,r){if(r===void 0&&(r=!1),cache$1.has(t)&&!r)return cache$1.get(t);if(isHidden(t))return cache$1.set(t,zeroBoxes),zeroBoxes;var n=getComputedStyle(t),o=isSVG$1(t)&&t.ownerSVGElement&&t.getBBox(),s=!IE&&n.boxSizing==="border-box",l=verticalRegexp.test(n.writingMode||""),d=!o&&scrollRegexp.test(n.overflowY||""),g=!o&&scrollRegexp.test(n.overflowX||""),y=o?0:parseDimension(n.paddingTop),b=o?0:parseDimension(n.paddingRight),C=o?0:parseDimension(n.paddingBottom),x=o?0:parseDimension(n.paddingLeft),S=o?0:parseDimension(n.borderTopWidth),_=o?0:parseDimension(n.borderRightWidth),w=o?0:parseDimension(n.borderBottomWidth),$=o?0:parseDimension(n.borderLeftWidth),I=x+b,B=y+C,R=$+_,P=S+w,M=g?t.offsetHeight-P-t.clientHeight:0,O=d?t.offsetWidth-R-t.clientWidth:0,D=s?I+R:0,N=s?B+P:0,H=o?o.width:parseDimension(n.width)-D-O,Q=o?o.height:parseDimension(n.height)-N-M,G=H+I+O+R,K=Q+B+M+P,W=freeze({devicePixelContentBoxSize:size(Math.round(H*devicePixelRatio),Math.round(Q*devicePixelRatio),l),borderBoxSize:size(G,K,l),contentBoxSize:size(H,Q,l),contentRect:new DOMRectReadOnly(x,y,H,Q)});return cache$1.set(t,W),W},calculateBoxSize=function(t,r,n){var o=calculateBoxSizes(t,n),s=o.borderBoxSize,l=o.contentBoxSize,d=o.devicePixelContentBoxSize;switch(r){case ResizeObserverBoxOptions.DEVICE_PIXEL_CONTENT_BOX:return d;case ResizeObserverBoxOptions.BORDER_BOX:return s;default:return l}},ResizeObserverEntry=function(){function t(r){var n=calculateBoxSizes(r);this.target=r,this.contentRect=n.contentRect,this.borderBoxSize=freeze([n.borderBoxSize]),this.contentBoxSize=freeze([n.contentBoxSize]),this.devicePixelContentBoxSize=freeze([n.devicePixelContentBoxSize])}return t}(),calculateDepthForNode=function(t){if(isHidden(t))return 1/0;for(var r=0,n=t.parentNode;n;)r+=1,n=n.parentNode;return r},broadcastActiveObservations=function(){var t=1/0,r=[];resizeObservers.forEach(function(d){if(d.activeTargets.length!==0){var g=[];d.activeTargets.forEach(function(b){var C=new ResizeObserverEntry(b.target),x=calculateDepthForNode(b.target);g.push(C),b.lastReportedSize=calculateBoxSize(b.target,b.observedBox),x<t&&(t=x)}),r.push(function(){d.callback.call(d.observer,g,d.observer)}),d.activeTargets.splice(0,d.activeTargets.length)}});for(var n=0,o=r;n<o.length;n++){var s=o[n];s()}return t},gatherActiveObservationsAtDepth=function(t){resizeObservers.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(calculateDepthForNode(s.target)>t?n.activeTargets.push(s):n.skippedTargets.push(s))})})},process$1=function(){var t=0;for(gatherActiveObservationsAtDepth(t);hasActiveObservations();)t=broadcastActiveObservations(),gatherActiveObservationsAtDepth(t);return hasSkippedObservations()&&deliverResizeLoopError(),t>0},trigger$2,callbacks=[],notify=function(){return callbacks.splice(0).forEach(function(t){return t()})},queueMicroTask=function(t){if(!trigger$2){var r=0,n=document.createTextNode(""),o={characterData:!0};new MutationObserver(function(){return notify()}).observe(n,o),trigger$2=function(){n.textContent="".concat(r?r--:r++)}}callbacks.push(t),trigger$2()},queueResizeObserver=function(t){queueMicroTask(function(){requestAnimationFrame(t)})},watching=0,isWatching=function(){return!!watching},CATCH_PERIOD=250,observerConfig={attributes:!0,characterData:!0,childList:!0,subtree:!0},events=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],time$3=function(t){return t===void 0&&(t=0),Date.now()+t},scheduled=!1,Scheduler$2=function(){function t(){var r=this;this.stopped=!0,this.listener=function(){return r.schedule()}}return t.prototype.run=function(r){var n=this;if(r===void 0&&(r=CATCH_PERIOD),!scheduled){scheduled=!0;var o=time$3(r);queueResizeObserver(function(){var s=!1;try{s=process$1()}finally{if(scheduled=!1,r=o-time$3(),!isWatching())return;s?n.run(1e3):r>0?n.run(r):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var r=this,n=function(){return r.observer&&r.observer.observe(document.body,observerConfig)};document.body?n():global$3.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var r=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),events.forEach(function(n){return global$3.addEventListener(n,r.listener,!0)}))},t.prototype.stop=function(){var r=this;this.stopped||(this.observer&&this.observer.disconnect(),events.forEach(function(n){return global$3.removeEventListener(n,r.listener,!0)}),this.stopped=!0)},t}(),scheduler=new Scheduler$2,updateCount=function(t){!watching&&t>0&&scheduler.start(),watching+=t,!watching&&scheduler.stop()},skipNotifyOnElement=function(t){return!isSVG$1(t)&&!isReplacedElement(t)&&getComputedStyle(t).display==="inline"},ResizeObservation=function(){function t(r,n){this.target=r,this.observedBox=n||ResizeObserverBoxOptions.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var r=calculateBoxSize(this.target,this.observedBox,!0);return skipNotifyOnElement(this.target)&&(this.lastReportedSize=r),this.lastReportedSize.inlineSize!==r.inlineSize||this.lastReportedSize.blockSize!==r.blockSize},t}(),ResizeObserverDetail=function(){function t(r,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=r,this.callback=n}return t}(),observerMap=new WeakMap,getObservationIndex=function(t,r){for(var n=0;n<t.length;n+=1)if(t[n].target===r)return n;return-1},ResizeObserverController=function(){function t(){}return t.connect=function(r,n){var o=new ResizeObserverDetail(r,n);observerMap.set(r,o)},t.observe=function(r,n,o){var s=observerMap.get(r),l=s.observationTargets.length===0;getObservationIndex(s.observationTargets,n)<0&&(l&&resizeObservers.push(s),s.observationTargets.push(new ResizeObservation(n,o&&o.box)),updateCount(1),scheduler.schedule())},t.unobserve=function(r,n){var o=observerMap.get(r),s=getObservationIndex(o.observationTargets,n),l=o.observationTargets.length===1;s>=0&&(l&&resizeObservers.splice(resizeObservers.indexOf(o),1),o.observationTargets.splice(s,1),updateCount(-1))},t.disconnect=function(r){var n=this,o=observerMap.get(r);o.observationTargets.slice().forEach(function(s){return n.unobserve(r,s.target)}),o.activeTargets.splice(0,o.activeTargets.length)},t}(),ResizeObserver=function(){function t(r){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof r!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ResizeObserverController.connect(this,r)}return t.prototype.observe=function(r,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(r))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.observe(this,r,n)},t.prototype.unobserve=function(r){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!isElement(r))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ResizeObserverController.unobserve(this,r)},t.prototype.disconnect=function(){ResizeObserverController.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();class ResizeObserverDelegate{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window!="undefined"&&window.ResizeObserver||ResizeObserver)(this.handleResize),this.elHandlersMap=new Map}handleResize(r){for(const n of r){const o=this.elHandlersMap.get(n.target);o!==void 0&&o(n)}}registerHandler(r,n){this.elHandlersMap.set(r,n),this.observer.observe(r)}unregisterHandler(r){!this.elHandlersMap.has(r)||(this.elHandlersMap.delete(r),this.observer.unobserve(r))}}var resizeObserverManager=new ResizeObserverDelegate,VResizeObserver=defineComponent({name:"ResizeObserver",props:{onResize:Function},setup(t){let r=!1;const n=getCurrentInstance().proxy;function o(s){const{onResize:l}=t;l!==void 0&&l(s)}onMounted(()=>{const s=n.$el;if(s===void 0){warn$3("resize-observer","$el does not exist.");return}if(s.nextElementSibling!==s.nextSibling&&s.nodeType===3&&s.nodeValue!==""){warn$3("resize-observer","$el can not be observed (it may be a text node).");return}s.nextElementSibling!==null&&(resizeObserverManager.registerHandler(s.nextElementSibling,o),r=!0)}),onBeforeUnmount(()=>{r&&resizeObserverManager.unregisterHandler(n.$el.nextElementSibling)})},render(){return renderSlot(this.$slots,"default")}});let maybeTouch;function ensureMaybeTouch(){return maybeTouch===void 0&&("matchMedia"in window?maybeTouch=window.matchMedia("(pointer:coarse)").matches:maybeTouch=!1),maybeTouch}let wheelScale;function ensureWheelScale(){return wheelScale===void 0&&(wheelScale="chrome"in window?window.devicePixelRatio:1),wheelScale}const styles$1=c(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[c("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[c("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]);var VVirtualList=defineComponent({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(t){const r=useSsrAdapter();styles$1.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:r}),onMounted(()=>{const{defaultScrollIndex:K,defaultScrollKey:W}=t;K!=null?w({index:K}):W!=null&&w({key:W})});let n=!1,o=!1;onActivated(()=>{if(n=!1,!o){o=!0;return}w({top:x.value,left:C})}),onDeactivated(()=>{n=!0,o||(o=!0)});const s=computed(()=>{const K=new Map,{keyField:W}=t;return t.items.forEach((j,Y)=>{K.set(j[W],Y)}),K}),l=ref(null),d=ref(void 0),g=new Map,y=computed(()=>{const{items:K,itemSize:W,keyField:j}=t,Y=new FinweckTree(K.length,W);return K.forEach((q,X)=>{const re=q[j],te=g.get(re);te!==void 0&&Y.add(X,te)}),Y}),b=ref(0);let C=0;const x=ref(0),S=useMemo(()=>Math.max(y.value.getBound(x.value-depx(t.paddingTop))-1,0)),_=computed(()=>{const{value:K}=d;if(K===void 0)return[];const{items:W,itemSize:j}=t,Y=S.value,q=Math.min(Y+Math.ceil(K/j+1),W.length-1),X=[];for(let re=Y;re<=q;++re)X.push(W[re]);return X}),w=(K,W)=>{if(typeof K=="number"){R(K,W,"auto");return}const{left:j,top:Y,index:q,key:X,position:re,behavior:te,debounce:oe=!0}=K;if(j!==void 0||Y!==void 0)R(j,Y,te);else if(q!==void 0)B(q,te,oe);else if(X!==void 0){const ae=s.value.get(X);ae!==void 0&&B(ae,te,oe)}else re==="bottom"?R(0,Number.MAX_SAFE_INTEGER,te):re==="top"&&R(0,0,te)};let $,I=null;function B(K,W,j){const{value:Y}=y,q=Y.sum(K)+depx(t.paddingTop);if(!j)l.value.scrollTo({left:0,top:q,behavior:W});else{$=K,I!==null&&window.clearTimeout(I),I=window.setTimeout(()=>{$=void 0,I=null},16);const{scrollTop:X,offsetHeight:re}=l.value;if(q>X){const te=Y.get(K);q+te<=X+re||l.value.scrollTo({left:0,top:q+te-re,behavior:W})}else l.value.scrollTo({left:0,top:q,behavior:W})}}function R(K,W,j){l.value.scrollTo({left:K,top:W,behavior:j})}function P(K,W){var j,Y,q;if(n||t.ignoreItemResize||G(W.target))return;const{value:X}=y,re=s.value.get(K),te=X.get(re),oe=(q=(Y=(j=W.borderBoxSize)===null||j===void 0?void 0:j[0])===null||Y===void 0?void 0:Y.blockSize)!==null&&q!==void 0?q:W.contentRect.height;if(oe===te)return;oe-t.itemSize===0?g.delete(K):g.set(K,oe-t.itemSize);const se=oe-te;if(se===0)return;X.add(re,se);const ue=l.value;if(ue!=null){if($===void 0){const Ae=X.sum(re);ue.scrollTop>Ae&&ue.scrollBy(0,se)}else if(re<$)ue.scrollBy(0,se);else if(re===$){const Ae=X.sum(re);oe+Ae>ue.scrollTop+ue.offsetHeight&&ue.scrollBy(0,se)}Q()}b.value++}const M=!ensureMaybeTouch();let O=!1;function D(K){var W;(W=t.onScroll)===null||W===void 0||W.call(t,K),(!M||!O)&&Q()}function N(K){var W;if((W=t.onWheel)===null||W===void 0||W.call(t,K),M){const j=l.value;if(j!=null){if(K.deltaX===0&&(j.scrollTop===0&&K.deltaY<=0||j.scrollTop+j.offsetHeight>=j.scrollHeight&&K.deltaY>=0))return;K.preventDefault(),j.scrollTop+=K.deltaY/ensureWheelScale(),j.scrollLeft+=K.deltaX/ensureWheelScale(),Q(),O=!0,beforeNextFrameOnce(()=>{O=!1})}}}function H(K){if(n||G(K.target)||K.contentRect.height===d.value)return;d.value=K.contentRect.height;const{onResize:W}=t;W!==void 0&&W(K)}function Q(){const{value:K}=l;K!=null&&(x.value=K.scrollTop,C=K.scrollLeft)}function G(K){let W=K;for(;W!==null;){if(W.style.display==="none")return!0;W=W.parentElement}return!1}return{listHeight:d,listStyle:{overflow:"auto"},keyToIndex:s,itemsStyle:computed(()=>{const{itemResizable:K}=t,W=pxfy(y.value.sum());return b.value,[t.itemsStyle,{boxSizing:"content-box",height:K?"":W,minHeight:K?W:"",paddingTop:pxfy(t.paddingTop),paddingBottom:pxfy(t.paddingBottom)}]}),visibleItemsStyle:computed(()=>(b.value,{transform:`translateY(${pxfy(y.value.sum(S.value))})`})),viewportItems:_,listElRef:l,itemsElRef:ref(null),scrollTo:w,handleListResize:H,handleListScroll:D,handleListWheel:N,handleItemResize:P}},render(){const{itemResizable:t,keyField:r,keyToIndex:n,visibleItemsTag:o}=this;return h(VResizeObserver,{onResize:this.handleListResize},{default:()=>{var s,l;return h("div",mergeProps(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?h("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[h(o,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>this.viewportItems.map(d=>{const g=d[r],y=n.get(g),b=this.$slots.default({item:d,index:y})[0];return t?h(VResizeObserver,{key:g,onResize:C=>this.handleItemResize(g,C)},{default:()=>b}):(b.key=g,b)})})]):(l=(s=this.$slots).empty)===null||l===void 0?void 0:l.call(s)])}})}});const styles=c(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[c("&::-webkit-scrollbar",{width:0,height:0})]);var VXScroll=defineComponent({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const t=ref(null);function r(s){!(s.currentTarget.offsetWidth<s.currentTarget.scrollWidth)||s.deltaY===0||(s.currentTarget.scrollLeft+=s.deltaY+s.deltaX,s.preventDefault())}const n=useSsrAdapter();return styles.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:n}),Object.assign({selfRef:t,handleWheel:r},{scrollTo(...s){var l;(l=t.value)===null||l===void 0||l.scrollTo(...s)}})},render(){return h("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});const hiddenAttr="v-hidden",style$1h=c("[v-hidden]",{display:"none!important"});var VOverflow=defineComponent({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateOverflow:Function},setup(t,{slots:r}){const n=ref(null),o=ref(null);function s(){const{value:d}=n,{getCounter:g,getTail:y}=t;let b;if(g!==void 0?b=g():b=o.value,!d||!b)return;b.hasAttribute(hiddenAttr)&&b.removeAttribute(hiddenAttr);const{children:C}=d,x=d.offsetWidth,S=[],_=r.tail?y==null?void 0:y():null;let w=_?_.offsetWidth:0,$=!1;const I=d.children.length-(r.tail?1:0);for(let R=0;R<I-1;++R){if(R<0)continue;const P=C[R];if($){P.hasAttribute(hiddenAttr)||P.setAttribute(hiddenAttr,"");continue}else P.hasAttribute(hiddenAttr)&&P.removeAttribute(hiddenAttr);const M=P.offsetWidth;if(w+=M,S[R]=M,w>x){const{updateCounter:O}=t;for(let D=R;D>=0;--D){const N=I-1-D;O!==void 0?O(N):b.textContent=`${N}`;const H=b.offsetWidth;if(w-=S[D],w+H<=x||D===0){$=!0,R=D-1,_&&(R===-1?(_.style.maxWidth=`${x-H}px`,_.style.boxSizing="border-box"):_.style.maxWidth="");break}}}}const{onUpdateOverflow:B}=t;$?B!==void 0&&B(!0):(B!==void 0&&B(!1),b.setAttribute(hiddenAttr,""))}const l=useSsrAdapter();return style$1h.mount({id:"vueuc/overflow",head:!0,anchorMetaName:cssrAnchorMetaName$1,ssr:l}),onMounted(s),{selfRef:n,counterRef:o,sync:s}},render(){const{$slots:t}=this;return nextTick(this.sync),h("div",{class:"v-overflow",ref:"selfRef"},[renderSlot(t,"default"),t.counter?t.counter():h("span",{style:{display:"inline-block"},ref:"counterRef"}),t.tail?t.tail():null])}});function isHTMLElement$1(t){return t instanceof HTMLElement}function focusFirstDescendant(t){for(let r=0;r<t.childNodes.length;r++){const n=t.childNodes[r];if(isHTMLElement$1(n)&&(attemptFocus(n)||focusFirstDescendant(n)))return!0}return!1}function focusLastDescendant(t){for(let r=t.childNodes.length-1;r>=0;r--){const n=t.childNodes[r];if(isHTMLElement$1(n)&&(attemptFocus(n)||focusLastDescendant(n)))return!0}return!1}function attemptFocus(t){if(!isFocusable(t))return!1;try{t.focus({preventScroll:!0})}catch(r){}return document.activeElement===t}function isFocusable(t){if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.getAttribute("disabled"))return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return t.type!=="hidden"&&t.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let stack=[];const FocusTrap=defineComponent({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(t){const r=createId(),n=ref(null),o=ref(null);let s=!1,l=!1;const d=typeof document=="undefined"?null:document.activeElement;function g(){return stack[stack.length-1]===r}function y(I){var B;I.code==="Escape"&&g()&&((B=t.onEsc)===null||B===void 0||B.call(t,I))}onMounted(()=>{watch(()=>t.active,I=>{I?(x(),on("keydown",document,y)):(off("keydown",document,y),s&&S())},{immediate:!0})}),onBeforeUnmount(()=>{off("keydown",document,y),s&&S()});function b(I){if(!l&&g()){const B=C();if(B===null||B.contains(getPreciseEventTarget(I)))return;_("first")}}function C(){const I=n.value;if(I===null)return null;let B=I;for(;B=B.nextSibling,!(B===null||B instanceof Element&&B.tagName==="DIV"););return B}function x(){var I;if(!t.disabled){if(stack.push(r),t.autoFocus){const{initialFocusTo:B}=t;B===void 0?_("first"):(I=resolveTo(B))===null||I===void 0||I.focus({preventScroll:!0})}s=!0,document.addEventListener("focus",b,!0)}}function S(){var I;if(t.disabled||(document.removeEventListener("focus",b,!0),stack=stack.filter(R=>R!==r),g()))return;const{finalFocusTo:B}=t;B!==void 0?(I=resolveTo(B))===null||I===void 0||I.focus({preventScroll:!0}):t.returnFocusOnDeactivated&&d instanceof HTMLElement&&(l=!0,d.focus({preventScroll:!0}),l=!1)}function _(I){if(!!g()&&t.active){const B=n.value,R=o.value;if(B!==null&&R!==null){const P=C();if(P==null||P===R){l=!0,B.focus({preventScroll:!0}),l=!1;return}l=!0;const M=I==="first"?focusFirstDescendant(P):focusLastDescendant(P);l=!1,M||(l=!0,B.focus({preventScroll:!0}),l=!1)}}}function w(I){if(l)return;const B=C();B!==null&&(I.relatedTarget!==null&&B.contains(I.relatedTarget)?_("last"):_("first"))}function $(I){l||(I.relatedTarget!==null&&I.relatedTarget===n.value?_("last"):_("first"))}return{focusableStartRef:n,focusableEndRef:o,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:w,handleEndFocus:$}},render(){const{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();const{active:r,focusableStyle:n}=this;return h(Fragment,null,[h("div",{"aria-hidden":"true",tabindex:r?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),t(),h("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:r?"0":"-1",onFocus:this.handleEndFocus})])}});function useOnResize(t,r){r&&(onMounted(()=>{const{value:n}=t;n&&resizeObserverManager.registerHandler(n,r)}),onBeforeUnmount(()=>{const{value:n}=t;n&&resizeObserverManager.unregisterHandler(n)}))}let lockCount=0,originalMarginRight="",originalOverflow="",originalOverflowX="",originalOverflowY="";const lockHtmlScrollRightCompensationRef=ref("0px");function useLockHtmlScroll(t){if(typeof document=="undefined")return;const r=document.documentElement;let n,o=!1;const s=()=>{r.style.marginRight=originalMarginRight,r.style.overflow=originalOverflow,r.style.overflowX=originalOverflowX,r.style.overflowY=originalOverflowY,lockHtmlScrollRightCompensationRef.value="0px"};onMounted(()=>{n=watch(t,l=>{if(l){if(!lockCount){const d=window.innerWidth-r.offsetWidth;d>0&&(originalMarginRight=r.style.marginRight,r.style.marginRight=`${d}px`,lockHtmlScrollRightCompensationRef.value=`${d}px`),originalOverflow=r.style.overflow,originalOverflowX=r.style.overflowX,originalOverflowY=r.style.overflowY,r.style.overflow="hidden",r.style.overflowX="hidden",r.style.overflowY="hidden"}o=!0,lockCount++}else lockCount--,lockCount||s(),o=!1},{immediate:!0})}),onBeforeUnmount(()=>{n==null||n(),o&&(lockCount--,lockCount||s(),o=!1)})}const isComposingRef=ref(!1),compositionStartHandler=()=>{isComposingRef.value=!0},compositionEndHandler=()=>{isComposingRef.value=!1};let mountedCount=0;const useIsComposing=()=>(isBrowser$3&&(onBeforeMount(()=>{mountedCount||(window.addEventListener("compositionstart",compositionStartHandler),window.addEventListener("compositionend",compositionEndHandler)),mountedCount++}),onBeforeUnmount(()=>{mountedCount<=1?(window.removeEventListener("compositionstart",compositionStartHandler),window.removeEventListener("compositionend",compositionEndHandler),mountedCount=0):mountedCount--})),isComposingRef);function useReactivated(t){const r={isDeactivated:!1};let n=!1;return onActivated(()=>{if(r.isDeactivated=!1,!n){n=!0;return}t()}),onDeactivated(()=>{r.isDeactivated=!0,n||(n=!0)}),r}function isDocument(t){return t.nodeName==="#document"}const formItemInjectionKey="n-form-item";function useFormItem(t,{defaultSize:r="medium",mergedSize:n,mergedDisabled:o}={}){const s=inject(formItemInjectionKey,null);provide(formItemInjectionKey,null);const l=computed(n?()=>n(s):()=>{const{size:y}=t;if(y)return y;if(s){const{mergedSize:b}=s;if(b.value!==void 0)return b.value}return r}),d=computed(o?()=>o(s):()=>{const{disabled:y}=t;return y!==void 0?y:s?s.disabled.value:!1}),g=computed(()=>{const{status:y}=t;return y||(s==null?void 0:s.mergedValidationStatus.value)});return onBeforeUnmount(()=>{s&&s.restoreValidation()}),{mergedSizeRef:l,mergedDisabledRef:d,mergedStatusRef:g,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}var freeGlobal$2=typeof global=="object"&&global&&global.Object===Object&&global,freeGlobal$3=freeGlobal$2,freeSelf$1=typeof self=="object"&&self&&self.Object===Object&&self,root$9=freeGlobal$3||freeSelf$1||Function("return this")(),root$a=root$9,Symbol$8=root$a.Symbol,Symbol$9=Symbol$8,objectProto$s=Object.prototype,hasOwnProperty$o=objectProto$s.hasOwnProperty,nativeObjectToString$3=objectProto$s.toString,symToStringTag$3=Symbol$9?Symbol$9.toStringTag:void 0;function getRawTag$2(t){var r=hasOwnProperty$o.call(t,symToStringTag$3),n=t[symToStringTag$3];try{t[symToStringTag$3]=void 0;var o=!0}catch(l){}var s=nativeObjectToString$3.call(t);return o&&(r?t[symToStringTag$3]=n:delete t[symToStringTag$3]),s}var objectProto$r=Object.prototype,nativeObjectToString$2=objectProto$r.toString;function objectToString$3(t){return nativeObjectToString$2.call(t)}var nullTag$1="[object Null]",undefinedTag$1="[object Undefined]",symToStringTag$2=Symbol$9?Symbol$9.toStringTag:void 0;function baseGetTag$7(t){return t==null?t===void 0?undefinedTag$1:nullTag$1:symToStringTag$2&&symToStringTag$2 in Object(t)?getRawTag$2(t):objectToString$3(t)}function isObjectLike$9(t){return t!=null&&typeof t=="object"}var symbolTag$4="[object Symbol]";function isSymbol$5(t){return typeof t=="symbol"||isObjectLike$9(t)&&baseGetTag$7(t)==symbolTag$4}function arrayMap$2(t,r){for(var n=-1,o=t==null?0:t.length,s=Array(o);++n<o;)s[n]=r(t[n],n,t);return s}var isArray$f=Array.isArray,isArray$g=isArray$f,INFINITY$4=1/0,symbolProto$3=Symbol$9?Symbol$9.prototype:void 0,symbolToString$1=symbolProto$3?symbolProto$3.toString:void 0;function baseToString$2(t){if(typeof t=="string")return t;if(isArray$g(t))return arrayMap$2(t,baseToString$2)+"";if(isSymbol$5(t))return symbolToString$1?symbolToString$1.call(t):"";var r=t+"";return r=="0"&&1/t==-INFINITY$4?"-0":r}var reWhitespace=/\s/;function trimmedEndIndex(t){for(var r=t.length;r--&&reWhitespace.test(t.charAt(r)););return r}var reTrimStart=/^\s+/;function baseTrim(t){return t&&t.slice(0,trimmedEndIndex(t)+1).replace(reTrimStart,"")}function isObject$h(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}var NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber$1(t){if(typeof t=="number")return t;if(isSymbol$5(t))return NAN;if(isObject$h(t)){var r=typeof t.valueOf=="function"?t.valueOf():t;t=isObject$h(r)?r+"":r}if(typeof t!="string")return t===0?t:+t;t=baseTrim(t);var n=reIsBinary.test(t);return n||reIsOctal.test(t)?freeParseInt(t.slice(2),n?2:8):reIsBadHex.test(t)?NAN:+t}var INFINITY$3=1/0,MAX_INTEGER=17976931348623157e292;function toFinite(t){if(!t)return t===0?t:0;if(t=toNumber$1(t),t===INFINITY$3||t===-INFINITY$3){var r=t<0?-1:1;return r*MAX_INTEGER}return t===t?t:0}function toInteger$3(t){var r=toFinite(t),n=r%1;return r===r?n?r-n:r:0}function identity$4(t){return t}var asyncTag$1="[object AsyncFunction]",funcTag$4="[object Function]",genTag$2="[object GeneratorFunction]",proxyTag$1="[object Proxy]";function isFunction$7(t){if(!isObject$h(t))return!1;var r=baseGetTag$7(t);return r==funcTag$4||r==genTag$2||r==asyncTag$1||r==proxyTag$1}var coreJsData$2=root$a["__core-js_shared__"],coreJsData$3=coreJsData$2,maskSrcKey$1=function(){var t=/[^.]+$/.exec(coreJsData$3&&coreJsData$3.keys&&coreJsData$3.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function isMasked$2(t){return!!maskSrcKey$1&&maskSrcKey$1 in t}var funcProto$5=Function.prototype,funcToString$5=funcProto$5.toString;function toSource$3(t){if(t!=null){try{return funcToString$5.call(t)}catch(r){}try{return t+""}catch(r){}}return""}var reRegExpChar$1=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor$1=/^\[object .+?Constructor\]$/,funcProto$4=Function.prototype,objectProto$q=Object.prototype,funcToString$4=funcProto$4.toString,hasOwnProperty$n=objectProto$q.hasOwnProperty,reIsNative$1=RegExp("^"+funcToString$4.call(hasOwnProperty$n).replace(reRegExpChar$1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$2(t){if(!isObject$h(t)||isMasked$2(t))return!1;var r=isFunction$7(t)?reIsNative$1:reIsHostCtor$1;return r.test(toSource$3(t))}function getValue$3(t,r){return t==null?void 0:t[r]}function getNative$8(t,r){var n=getValue$3(t,r);return baseIsNative$2(n)?n:void 0}var WeakMap$5=getNative$8(root$a,"WeakMap"),WeakMap$6=WeakMap$5,objectCreate$1=Object.create,baseCreate$2=function(){function t(){}return function(r){if(!isObject$h(r))return{};if(objectCreate$1)return objectCreate$1(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}(),baseCreate$3=baseCreate$2;function apply$3(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}function copyArray$3(t,r){var n=-1,o=t.length;for(r||(r=Array(o));++n<o;)r[n]=t[n];return r}var HOT_COUNT$1=800,HOT_SPAN$1=16,nativeNow$1=Date.now;function shortOut$2(t){var r=0,n=0;return function(){var o=nativeNow$1(),s=HOT_SPAN$1-(o-n);if(n=o,s>0){if(++r>=HOT_COUNT$1)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function constant$2(t){return function(){return t}}var defineProperty$3=function(){try{var t=getNative$8(Object,"defineProperty");return t({},"",{}),t}catch(r){}}(),defineProperty$4=defineProperty$3,baseSetToString$2=defineProperty$4?function(t,r){return defineProperty$4(t,"toString",{configurable:!0,enumerable:!1,value:constant$2(r),writable:!0})}:identity$4,baseSetToString$3=baseSetToString$2,setToString$3=shortOut$2(baseSetToString$3),setToString$4=setToString$3,MAX_SAFE_INTEGER$4=9007199254740991,reIsUint$1=/^(?:0|[1-9]\d*)$/;function isIndex$5(t,r){var n=typeof t;return r=r==null?MAX_SAFE_INTEGER$4:r,!!r&&(n=="number"||n!="symbol"&&reIsUint$1.test(t))&&t>-1&&t%1==0&&t<r}function baseAssignValue$4(t,r,n){r=="__proto__"&&defineProperty$4?defineProperty$4(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}function eq$5(t,r){return t===r||t!==t&&r!==r}var objectProto$p=Object.prototype,hasOwnProperty$m=objectProto$p.hasOwnProperty;function assignValue$4(t,r,n){var o=t[r];(!(hasOwnProperty$m.call(t,r)&&eq$5(o,n))||n===void 0&&!(r in t))&&baseAssignValue$4(t,r,n)}function copyObject$6(t,r,n,o){var s=!n;n||(n={});for(var l=-1,d=r.length;++l<d;){var g=r[l],y=o?o(n[g],t[g],g,n,t):void 0;y===void 0&&(y=t[g]),s?baseAssignValue$4(n,g,y):assignValue$4(n,g,y)}return n}var nativeMax$2=Math.max;function overRest$3(t,r,n){return r=nativeMax$2(r===void 0?t.length-1:r,0),function(){for(var o=arguments,s=-1,l=nativeMax$2(o.length-r,0),d=Array(l);++s<l;)d[s]=o[r+s];s=-1;for(var g=Array(r+1);++s<r;)g[s]=o[s];return g[r]=n(d),apply$3(t,this,g)}}function baseRest$2(t,r){return setToString$4(overRest$3(t,r,identity$4),t+"")}var MAX_SAFE_INTEGER$3=9007199254740991;function isLength$5(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=MAX_SAFE_INTEGER$3}function isArrayLike$6(t){return t!=null&&isLength$5(t.length)&&!isFunction$7(t)}function isIterateeCall$2(t,r,n){if(!isObject$h(n))return!1;var o=typeof r;return(o=="number"?isArrayLike$6(n)&&isIndex$5(r,n.length):o=="string"&&r in n)?eq$5(n[r],t):!1}function createAssigner$2(t){return baseRest$2(function(r,n){var o=-1,s=n.length,l=s>1?n[s-1]:void 0,d=s>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(s--,l):void 0,d&&isIterateeCall$2(n[0],n[1],d)&&(l=s<3?void 0:l,s=1),r=Object(r);++o<s;){var g=n[o];g&&t(r,g,o,l)}return r})}var objectProto$o=Object.prototype;function isPrototype$4(t){var r=t&&t.constructor,n=typeof r=="function"&&r.prototype||objectProto$o;return t===n}function baseTimes$2(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}var argsTag$5="[object Arguments]";function baseIsArguments$2(t){return isObjectLike$9(t)&&baseGetTag$7(t)==argsTag$5}var objectProto$n=Object.prototype,hasOwnProperty$l=objectProto$n.hasOwnProperty,propertyIsEnumerable$3=objectProto$n.propertyIsEnumerable,isArguments$5=baseIsArguments$2(function(){return arguments}())?baseIsArguments$2:function(t){return isObjectLike$9(t)&&hasOwnProperty$l.call(t,"callee")&&!propertyIsEnumerable$3.call(t,"callee")},isArguments$6=isArguments$5;function stubFalse$1(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$a.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$5=nativeIsBuffer||stubFalse$1,isBuffer$6=isBuffer$5,argsTag$4="[object Arguments]",arrayTag$3="[object Array]",boolTag$4="[object Boolean]",dateTag$4="[object Date]",errorTag$3="[object Error]",funcTag$3="[object Function]",mapTag$7="[object Map]",numberTag$4="[object Number]",objectTag$7="[object Object]",regexpTag$4="[object RegExp]",setTag$7="[object Set]",stringTag$4="[object String]",weakMapTag$4="[object WeakMap]",arrayBufferTag$4="[object ArrayBuffer]",dataViewTag$6="[object DataView]",float32Tag$3="[object Float32Array]",float64Tag$3="[object Float64Array]",int8Tag$3="[object Int8Array]",int16Tag$3="[object Int16Array]",int32Tag$3="[object Int32Array]",uint8Tag$3="[object Uint8Array]",uint8ClampedTag$3="[object Uint8ClampedArray]",uint16Tag$3="[object Uint16Array]",uint32Tag$3="[object Uint32Array]",typedArrayTags$1={};typedArrayTags$1[float32Tag$3]=typedArrayTags$1[float64Tag$3]=typedArrayTags$1[int8Tag$3]=typedArrayTags$1[int16Tag$3]=typedArrayTags$1[int32Tag$3]=typedArrayTags$1[uint8Tag$3]=typedArrayTags$1[uint8ClampedTag$3]=typedArrayTags$1[uint16Tag$3]=typedArrayTags$1[uint32Tag$3]=!0;typedArrayTags$1[argsTag$4]=typedArrayTags$1[arrayTag$3]=typedArrayTags$1[arrayBufferTag$4]=typedArrayTags$1[boolTag$4]=typedArrayTags$1[dataViewTag$6]=typedArrayTags$1[dateTag$4]=typedArrayTags$1[errorTag$3]=typedArrayTags$1[funcTag$3]=typedArrayTags$1[mapTag$7]=typedArrayTags$1[numberTag$4]=typedArrayTags$1[objectTag$7]=typedArrayTags$1[regexpTag$4]=typedArrayTags$1[setTag$7]=typedArrayTags$1[stringTag$4]=typedArrayTags$1[weakMapTag$4]=!1;function baseIsTypedArray$2(t){return isObjectLike$9(t)&&isLength$5(t.length)&&!!typedArrayTags$1[baseGetTag$7(t)]}function baseUnary$4(t){return function(r){return t(r)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$3.process,nodeUtil$3=function(){try{var t=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return t||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(r){}}(),nodeUtil$4=nodeUtil$3,nodeIsTypedArray$1=nodeUtil$4&&nodeUtil$4.isTypedArray,isTypedArray$5=nodeIsTypedArray$1?baseUnary$4(nodeIsTypedArray$1):baseIsTypedArray$2,isTypedArray$6=isTypedArray$5,objectProto$m=Object.prototype,hasOwnProperty$k=objectProto$m.hasOwnProperty;function arrayLikeKeys$3(t,r){var n=isArray$g(t),o=!n&&isArguments$6(t),s=!n&&!o&&isBuffer$6(t),l=!n&&!o&&!s&&isTypedArray$6(t),d=n||o||s||l,g=d?baseTimes$2(t.length,String):[],y=g.length;for(var b in t)(r||hasOwnProperty$k.call(t,b))&&!(d&&(b=="length"||s&&(b=="offset"||b=="parent")||l&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||isIndex$5(b,y)))&&g.push(b);return g}function overArg$3(t,r){return function(n){return t(r(n))}}var nativeKeys$2=overArg$3(Object.keys,Object),nativeKeys$3=nativeKeys$2,objectProto$l=Object.prototype,hasOwnProperty$j=objectProto$l.hasOwnProperty;function baseKeys$2(t){if(!isPrototype$4(t))return nativeKeys$3(t);var r=[];for(var n in Object(t))hasOwnProperty$j.call(t,n)&&n!="constructor"&&r.push(n);return r}function keys$5(t){return isArrayLike$6(t)?arrayLikeKeys$3(t):baseKeys$2(t)}function nativeKeysIn$2(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}var objectProto$k=Object.prototype,hasOwnProperty$i=objectProto$k.hasOwnProperty;function baseKeysIn$2(t){if(!isObject$h(t))return nativeKeysIn$2(t);var r=isPrototype$4(t),n=[];for(var o in t)o=="constructor"&&(r||!hasOwnProperty$i.call(t,o))||n.push(o);return n}function keysIn$6(t){return isArrayLike$6(t)?arrayLikeKeys$3(t,!0):baseKeysIn$2(t)}var reIsDeepProp$1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp$1=/^\w*$/;function isKey$2(t,r){if(isArray$g(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||isSymbol$5(t)?!0:reIsPlainProp$1.test(t)||!reIsDeepProp$1.test(t)||r!=null&&t in Object(r)}var nativeCreate$5=getNative$8(Object,"create"),nativeCreate$6=nativeCreate$5;function hashClear$2(){this.__data__=nativeCreate$6?nativeCreate$6(null):{},this.size=0}function hashDelete$2(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}var HASH_UNDEFINED$4="__lodash_hash_undefined__",objectProto$j=Object.prototype,hasOwnProperty$h=objectProto$j.hasOwnProperty;function hashGet$2(t){var r=this.__data__;if(nativeCreate$6){var n=r[t];return n===HASH_UNDEFINED$4?void 0:n}return hasOwnProperty$h.call(r,t)?r[t]:void 0}var objectProto$i=Object.prototype,hasOwnProperty$g=objectProto$i.hasOwnProperty;function hashHas$2(t){var r=this.__data__;return nativeCreate$6?r[t]!==void 0:hasOwnProperty$g.call(r,t)}var HASH_UNDEFINED$3="__lodash_hash_undefined__";function hashSet$2(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nativeCreate$6&&r===void 0?HASH_UNDEFINED$3:r,this}function Hash$2(t){var r=-1,n=t==null?0:t.length;for(this.clear();++r<n;){var o=t[r];this.set(o[0],o[1])}}Hash$2.prototype.clear=hashClear$2;Hash$2.prototype.delete=hashDelete$2;Hash$2.prototype.get=hashGet$2;Hash$2.prototype.has=hashHas$2;Hash$2.prototype.set=hashSet$2;function listCacheClear$2(){this.__data__=[],this.size=0}function assocIndexOf$5(t,r){for(var n=t.length;n--;)if(eq$5(t[n][0],r))return n;return-1}var arrayProto$2=Array.prototype,splice$1=arrayProto$2.splice;function listCacheDelete$2(t){var r=this.__data__,n=assocIndexOf$5(r,t);if(n<0)return!1;var o=r.length-1;return n==o?r.pop():splice$1.call(r,n,1),--this.size,!0}function listCacheGet$3(t){var r=this.__data__,n=assocIndexOf$5(r,t);return n<0?void 0:r[n][1]}function listCacheHas$2(t){return assocIndexOf$5(this.__data__,t)>-1}function listCacheSet$3(t,r){var n=this.__data__,o=assocIndexOf$5(n,t);return o<0?(++this.size,n.push([t,r])):n[o][1]=r,this}function ListCache$5(t){var r=-1,n=t==null?0:t.length;for(this.clear();++r<n;){var o=t[r];this.set(o[0],o[1])}}ListCache$5.prototype.clear=listCacheClear$2;ListCache$5.prototype.delete=listCacheDelete$2;ListCache$5.prototype.get=listCacheGet$3;ListCache$5.prototype.has=listCacheHas$2;ListCache$5.prototype.set=listCacheSet$3;var Map$5=getNative$8(root$a,"Map"),Map$6=Map$5;function mapCacheClear$2(){this.size=0,this.__data__={hash:new Hash$2,map:new(Map$6||ListCache$5),string:new Hash$2}}function isKeyable$2(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function getMapData$5(t,r){var n=t.__data__;return isKeyable$2(r)?n[typeof r=="string"?"string":"hash"]:n.map}function mapCacheDelete$2(t){var r=getMapData$5(this,t).delete(t);return this.size-=r?1:0,r}function mapCacheGet$2(t){return getMapData$5(this,t).get(t)}function mapCacheHas$2(t){return getMapData$5(this,t).has(t)}function mapCacheSet$2(t,r){var n=getMapData$5(this,t),o=n.size;return n.set(t,r),this.size+=n.size==o?0:1,this}function MapCache$3(t){var r=-1,n=t==null?0:t.length;for(this.clear();++r<n;){var o=t[r];this.set(o[0],o[1])}}MapCache$3.prototype.clear=mapCacheClear$2;MapCache$3.prototype.delete=mapCacheDelete$2;MapCache$3.prototype.get=mapCacheGet$2;MapCache$3.prototype.has=mapCacheHas$2;MapCache$3.prototype.set=mapCacheSet$2;var FUNC_ERROR_TEXT$3="Expected a function";function memoize$2(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$3);var n=function(){var o=arguments,s=r?r.apply(this,o):o[0],l=n.cache;if(l.has(s))return l.get(s);var d=t.apply(this,o);return n.cache=l.set(s,d)||l,d};return n.cache=new(memoize$2.Cache||MapCache$3),n}memoize$2.Cache=MapCache$3;var MAX_MEMOIZE_SIZE$1=500;function memoizeCapped$2(t){var r=memoize$2(t,function(o){return n.size===MAX_MEMOIZE_SIZE$1&&n.clear(),o}),n=r.cache;return r}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$2=memoizeCapped$2(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(rePropName$1,function(n,o,s,l){r.push(s?l.replace(reEscapeChar$1,"$1"):o||n)}),r}),stringToPath$3=stringToPath$2;function toString$5(t){return t==null?"":baseToString$2(t)}function castPath$5(t,r){return isArray$g(t)?t:isKey$2(t,r)?[t]:stringToPath$3(toString$5(t))}var INFINITY$2=1/0;function toKey$4(t){if(typeof t=="string"||isSymbol$5(t))return t;var r=t+"";return r=="0"&&1/t==-INFINITY$2?"-0":r}function baseGet$2(t,r){r=castPath$5(r,t);for(var n=0,o=r.length;t!=null&&n<o;)t=t[toKey$4(r[n++])];return n&&n==o?t:void 0}function get$1(t,r,n){var o=t==null?void 0:baseGet$2(t,r);return o===void 0?n:o}function arrayPush$4(t,r){for(var n=-1,o=r.length,s=t.length;++n<o;)t[s+n]=r[n];return t}var getPrototype$4=overArg$3(Object.getPrototypeOf,Object),getPrototype$5=getPrototype$4,objectTag$6="[object Object]",funcProto$3=Function.prototype,objectProto$h=Object.prototype,funcToString$3=funcProto$3.toString,hasOwnProperty$f=objectProto$h.hasOwnProperty,objectCtorString$1=funcToString$3.call(Object);function isPlainObject$5(t){if(!isObjectLike$9(t)||baseGetTag$7(t)!=objectTag$6)return!1;var r=getPrototype$5(t);if(r===null)return!0;var n=hasOwnProperty$f.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&funcToString$3.call(n)==objectCtorString$1}function baseSlice(t,r,n){var o=-1,s=t.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var l=Array(s);++o<s;)l[o]=t[o+r];return l}function castSlice(t,r,n){var o=t.length;return n=n===void 0?o:n,!r&&n>=o?t:baseSlice(t,r,n)}var rsAstralRange$2="\\ud800-\\udfff",rsComboMarksRange$3="\\u0300-\\u036f",reComboHalfMarksRange$3="\\ufe20-\\ufe2f",rsComboSymbolsRange$3="\\u20d0-\\u20ff",rsComboRange$3=rsComboMarksRange$3+reComboHalfMarksRange$3+rsComboSymbolsRange$3,rsVarRange$2="\\ufe0e\\ufe0f",rsZWJ$2="\\u200d",reHasUnicode=RegExp("["+rsZWJ$2+rsAstralRange$2+rsComboRange$3+rsVarRange$2+"]");function hasUnicode(t){return reHasUnicode.test(t)}function asciiToArray(t){return t.split("")}var rsAstralRange$1="\\ud800-\\udfff",rsComboMarksRange$2="\\u0300-\\u036f",reComboHalfMarksRange$2="\\ufe20-\\ufe2f",rsComboSymbolsRange$2="\\u20d0-\\u20ff",rsComboRange$2=rsComboMarksRange$2+reComboHalfMarksRange$2+rsComboSymbolsRange$2,rsVarRange$1="\\ufe0e\\ufe0f",rsAstral="["+rsAstralRange$1+"]",rsCombo$2="["+rsComboRange$2+"]",rsFitz$1="\\ud83c[\\udffb-\\udfff]",rsModifier$1="(?:"+rsCombo$2+"|"+rsFitz$1+")",rsNonAstral$1="[^"+rsAstralRange$1+"]",rsRegional$1="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair$1="[\\ud800-\\udbff][\\udc00-\\udfff]",rsZWJ$1="\\u200d",reOptMod$1=rsModifier$1+"?",rsOptVar$1="["+rsVarRange$1+"]?",rsOptJoin$1="(?:"+rsZWJ$1+"(?:"+[rsNonAstral$1,rsRegional$1,rsSurrPair$1].join("|")+")"+rsOptVar$1+reOptMod$1+")*",rsSeq$1=rsOptVar$1+reOptMod$1+rsOptJoin$1,rsSymbol="(?:"+[rsNonAstral$1+rsCombo$2+"?",rsCombo$2,rsRegional$1,rsSurrPair$1,rsAstral].join("|")+")",reUnicode=RegExp(rsFitz$1+"(?="+rsFitz$1+")|"+rsSymbol+rsSeq$1,"g");function unicodeToArray(t){return t.match(reUnicode)||[]}function stringToArray(t){return hasUnicode(t)?unicodeToArray(t):asciiToArray(t)}function createCaseFirst(t){return function(r){r=toString$5(r);var n=hasUnicode(r)?stringToArray(r):void 0,o=n?n[0]:r.charAt(0),s=n?castSlice(n,1).join(""):r.slice(1);return o[t]()+s}}var upperFirst=createCaseFirst("toUpperCase"),upperFirst$1=upperFirst;function capitalize$2(t){return upperFirst$1(toString$5(t).toLowerCase())}function arrayReduce(t,r,n,o){var s=-1,l=t==null?0:t.length;for(o&&l&&(n=t[++s]);++s<l;)n=r(n,t[s],s,t);return n}function basePropertyOf(t){return function(r){return t==null?void 0:t[r]}}var deburredLetters={\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"},deburrLetter=basePropertyOf(deburredLetters),deburrLetter$1=deburrLetter,reLatin=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,rsComboMarksRange$1="\\u0300-\\u036f",reComboHalfMarksRange$1="\\ufe20-\\ufe2f",rsComboSymbolsRange$1="\\u20d0-\\u20ff",rsComboRange$1=rsComboMarksRange$1+reComboHalfMarksRange$1+rsComboSymbolsRange$1,rsCombo$1="["+rsComboRange$1+"]",reComboMark=RegExp(rsCombo$1,"g");function deburr(t){return t=toString$5(t),t&&t.replace(reLatin,deburrLetter$1).replace(reComboMark,"")}var reAsciiWord=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function asciiWords(t){return t.match(reAsciiWord)||[]}var reHasUnicodeWord=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function hasUnicodeWord(t){return reHasUnicodeWord.test(t)}var rsAstralRange="\\ud800-\\udfff",rsComboMarksRange="\\u0300-\\u036f",reComboHalfMarksRange="\\ufe20-\\ufe2f",rsComboSymbolsRange="\\u20d0-\\u20ff",rsComboRange=rsComboMarksRange+reComboHalfMarksRange+rsComboSymbolsRange,rsDingbatRange="\\u2700-\\u27bf",rsLowerRange="a-z\\xdf-\\xf6\\xf8-\\xff",rsMathOpRange="\\xac\\xb1\\xd7\\xf7",rsNonCharRange="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rsPunctuationRange="\\u2000-\\u206f",rsSpaceRange=" \\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",rsUpperRange="A-Z\\xc0-\\xd6\\xd8-\\xde",rsVarRange="\\ufe0e\\ufe0f",rsBreakRange=rsMathOpRange+rsNonCharRange+rsPunctuationRange+rsSpaceRange,rsApos$1="['\u2019]",rsBreak="["+rsBreakRange+"]",rsCombo="["+rsComboRange+"]",rsDigits="\\d+",rsDingbat="["+rsDingbatRange+"]",rsLower="["+rsLowerRange+"]",rsMisc="[^"+rsAstralRange+rsBreakRange+rsDigits+rsDingbatRange+rsLowerRange+rsUpperRange+"]",rsFitz="\\ud83c[\\udffb-\\udfff]",rsModifier="(?:"+rsCombo+"|"+rsFitz+")",rsNonAstral="[^"+rsAstralRange+"]",rsRegional="(?:\\ud83c[\\udde6-\\uddff]){2}",rsSurrPair="[\\ud800-\\udbff][\\udc00-\\udfff]",rsUpper="["+rsUpperRange+"]",rsZWJ="\\u200d",rsMiscLower="(?:"+rsLower+"|"+rsMisc+")",rsMiscUpper="(?:"+rsUpper+"|"+rsMisc+")",rsOptContrLower="(?:"+rsApos$1+"(?:d|ll|m|re|s|t|ve))?",rsOptContrUpper="(?:"+rsApos$1+"(?:D|LL|M|RE|S|T|VE))?",reOptMod=rsModifier+"?",rsOptVar="["+rsVarRange+"]?",rsOptJoin="(?:"+rsZWJ+"(?:"+[rsNonAstral,rsRegional,rsSurrPair].join("|")+")"+rsOptVar+reOptMod+")*",rsOrdLower="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rsOrdUpper="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",rsSeq=rsOptVar+reOptMod+rsOptJoin,rsEmoji="(?:"+[rsDingbat,rsRegional,rsSurrPair].join("|")+")"+rsSeq,reUnicodeWord=RegExp([rsUpper+"?"+rsLower+"+"+rsOptContrLower+"(?="+[rsBreak,rsUpper,"$"].join("|")+")",rsMiscUpper+"+"+rsOptContrUpper+"(?="+[rsBreak,rsUpper+rsMiscLower,"$"].join("|")+")",rsUpper+"?"+rsMiscLower+"+"+rsOptContrLower,rsUpper+"+"+rsOptContrUpper,rsOrdUpper,rsOrdLower,rsDigits,rsEmoji].join("|"),"g");function unicodeWords(t){return t.match(reUnicodeWord)||[]}function words(t,r,n){return t=toString$5(t),r=n?void 0:r,r===void 0?hasUnicodeWord(t)?unicodeWords(t):asciiWords(t):t.match(r)||[]}var rsApos="['\u2019]",reApos=RegExp(rsApos,"g");function createCompounder(t){return function(r){return arrayReduce(words(deburr(r).replace(reApos,"")),t,"")}}var camelCase=createCompounder(function(t,r,n){return r=r.toLowerCase(),t+(n?capitalize$2(r):r)}),camelCase$1=camelCase,nativeIsFinite=root$a.isFinite,nativeMin$1=Math.min;function createRound(t){var r=Math[t];return function(n,o){if(n=toNumber$1(n),o=o==null?0:nativeMin$1(toInteger$3(o),292),o&&nativeIsFinite(n)){var s=(toString$5(n)+"e").split("e"),l=r(s[0]+"e"+(+s[1]+o));return s=(toString$5(l)+"e").split("e"),+(s[0]+"e"+(+s[1]-o))}return r(n)}}function stackClear$2(){this.__data__=new ListCache$5,this.size=0}function stackDelete$2(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}function stackGet$2(t){return this.__data__.get(t)}function stackHas$2(t){return this.__data__.has(t)}var LARGE_ARRAY_SIZE$1=200;function stackSet$2(t,r){var n=this.__data__;if(n instanceof ListCache$5){var o=n.__data__;if(!Map$6||o.length<LARGE_ARRAY_SIZE$1-1)return o.push([t,r]),this.size=++n.size,this;n=this.__data__=new MapCache$3(o)}return n.set(t,r),this.size=n.size,this}function Stack$3(t){var r=this.__data__=new ListCache$5(t);this.size=r.size}Stack$3.prototype.clear=stackClear$2;Stack$3.prototype.delete=stackDelete$2;Stack$3.prototype.get=stackGet$2;Stack$3.prototype.has=stackHas$2;Stack$3.prototype.set=stackSet$2;var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$a.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer$2(t,r){if(r)return t.slice();var n=t.length,o=allocUnsafe?allocUnsafe(n):new t.constructor(n);return t.copy(o),o}function arrayFilter$2(t,r){for(var n=-1,o=t==null?0:t.length,s=0,l=[];++n<o;){var d=t[n];r(d,n,t)&&(l[s++]=d)}return l}function stubArray$3(){return[]}var objectProto$g=Object.prototype,propertyIsEnumerable$2=objectProto$g.propertyIsEnumerable,nativeGetSymbols$2=Object.getOwnPropertySymbols,getSymbols$5=nativeGetSymbols$2?function(t){return t==null?[]:(t=Object(t),arrayFilter$2(nativeGetSymbols$2(t),function(r){return propertyIsEnumerable$2.call(t,r)}))}:stubArray$3,getSymbols$6=getSymbols$5;function baseGetAllKeys$3(t,r,n){var o=r(t);return isArray$g(t)?o:arrayPush$4(o,n(t))}function getAllKeys$2(t){return baseGetAllKeys$3(t,keys$5,getSymbols$6)}var DataView$4=getNative$8(root$a,"DataView"),DataView$5=DataView$4,Promise$3=getNative$8(root$a,"Promise"),Promise$4=Promise$3,Set$3=getNative$8(root$a,"Set"),Set$4=Set$3,mapTag$6="[object Map]",objectTag$5="[object Object]",promiseTag$1="[object Promise]",setTag$6="[object Set]",weakMapTag$3="[object WeakMap]",dataViewTag$5="[object DataView]",dataViewCtorString$1=toSource$3(DataView$5),mapCtorString$1=toSource$3(Map$6),promiseCtorString$1=toSource$3(Promise$4),setCtorString$1=toSource$3(Set$4),weakMapCtorString$1=toSource$3(WeakMap$6),getTag$4=baseGetTag$7;(DataView$5&&getTag$4(new DataView$5(new ArrayBuffer(1)))!=dataViewTag$5||Map$6&&getTag$4(new Map$6)!=mapTag$6||Promise$4&&getTag$4(Promise$4.resolve())!=promiseTag$1||Set$4&&getTag$4(new Set$4)!=setTag$6||WeakMap$6&&getTag$4(new WeakMap$6)!=weakMapTag$3)&&(getTag$4=function(t){var r=baseGetTag$7(t),n=r==objectTag$5?t.constructor:void 0,o=n?toSource$3(n):"";if(o)switch(o){case dataViewCtorString$1:return dataViewTag$5;case mapCtorString$1:return mapTag$6;case promiseCtorString$1:return promiseTag$1;case setCtorString$1:return setTag$6;case weakMapCtorString$1:return weakMapTag$3}return r});var getTag$5=getTag$4,Uint8Array$3=root$a.Uint8Array,Uint8Array$4=Uint8Array$3;function cloneArrayBuffer$4(t){var r=new t.constructor(t.byteLength);return new Uint8Array$4(r).set(new Uint8Array$4(t)),r}function cloneTypedArray$3(t,r){var n=r?cloneArrayBuffer$4(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function initCloneObject$3(t){return typeof t.constructor=="function"&&!isPrototype$4(t)?baseCreate$3(getPrototype$5(t)):{}}var HASH_UNDEFINED$2="__lodash_hash_undefined__";function setCacheAdd(t){return this.__data__.set(t,HASH_UNDEFINED$2),this}function setCacheHas(t){return this.__data__.has(t)}function SetCache(t){var r=-1,n=t==null?0:t.length;for(this.__data__=new MapCache$3;++r<n;)this.add(t[r])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome(t,r){for(var n=-1,o=t==null?0:t.length;++n<o;)if(r(t[n],n,t))return!0;return!1}function cacheHas(t,r){return t.has(r)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays(t,r,n,o,s,l){var d=n&COMPARE_PARTIAL_FLAG$5,g=t.length,y=r.length;if(g!=y&&!(d&&y>g))return!1;var b=l.get(t),C=l.get(r);if(b&&C)return b==r&&C==t;var x=-1,S=!0,_=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(l.set(t,r),l.set(r,t);++x<g;){var w=t[x],$=r[x];if(o)var I=d?o($,w,x,r,t,l):o(w,$,x,t,r,l);if(I!==void 0){if(I)continue;S=!1;break}if(_){if(!arraySome(r,function(B,R){if(!cacheHas(_,R)&&(w===B||s(w,B,n,o,l)))return _.push(R)})){S=!1;break}}else if(!(w===$||s(w,$,n,o,l))){S=!1;break}}return l.delete(t),l.delete(r),S}function mapToArray(t){var r=-1,n=Array(t.size);return t.forEach(function(o,s){n[++r]=[s,o]}),n}function setToArray(t){var r=-1,n=Array(t.size);return t.forEach(function(o){n[++r]=o}),n}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",mapTag$5="[object Map]",numberTag$3="[object Number]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",symbolTag$3="[object Symbol]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",symbolProto$2=Symbol$9?Symbol$9.prototype:void 0,symbolValueOf$1=symbolProto$2?symbolProto$2.valueOf:void 0;function equalByTag(t,r,n,o,s,l,d){switch(n){case dataViewTag$4:if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case arrayBufferTag$3:return!(t.byteLength!=r.byteLength||!l(new Uint8Array$4(t),new Uint8Array$4(r)));case boolTag$3:case dateTag$3:case numberTag$3:return eq$5(+t,+r);case errorTag$2:return t.name==r.name&&t.message==r.message;case regexpTag$3:case stringTag$3:return t==r+"";case mapTag$5:var g=mapToArray;case setTag$5:var y=o&COMPARE_PARTIAL_FLAG$4;if(g||(g=setToArray),t.size!=r.size&&!y)return!1;var b=d.get(t);if(b)return b==r;o|=COMPARE_UNORDERED_FLAG$2,d.set(t,r);var C=equalArrays(g(t),g(r),o,s,l,d);return d.delete(t),C;case symbolTag$3:if(symbolValueOf$1)return symbolValueOf$1.call(t)==symbolValueOf$1.call(r)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$f=Object.prototype,hasOwnProperty$e=objectProto$f.hasOwnProperty;function equalObjects(t,r,n,o,s,l){var d=n&COMPARE_PARTIAL_FLAG$3,g=getAllKeys$2(t),y=g.length,b=getAllKeys$2(r),C=b.length;if(y!=C&&!d)return!1;for(var x=y;x--;){var S=g[x];if(!(d?S in r:hasOwnProperty$e.call(r,S)))return!1}var _=l.get(t),w=l.get(r);if(_&&w)return _==r&&w==t;var $=!0;l.set(t,r),l.set(r,t);for(var I=d;++x<y;){S=g[x];var B=t[S],R=r[S];if(o)var P=d?o(R,B,S,r,t,l):o(B,R,S,t,r,l);if(!(P===void 0?B===R||s(B,R,n,o,l):P)){$=!1;break}I||(I=S=="constructor")}if($&&!I){var M=t.constructor,O=r.constructor;M!=O&&"constructor"in t&&"constructor"in r&&!(typeof M=="function"&&M instanceof M&&typeof O=="function"&&O instanceof O)&&($=!1)}return l.delete(t),l.delete(r),$}var COMPARE_PARTIAL_FLAG$2=1,argsTag$3="[object Arguments]",arrayTag$2="[object Array]",objectTag$4="[object Object]",objectProto$e=Object.prototype,hasOwnProperty$d=objectProto$e.hasOwnProperty;function baseIsEqualDeep(t,r,n,o,s,l){var d=isArray$g(t),g=isArray$g(r),y=d?arrayTag$2:getTag$5(t),b=g?arrayTag$2:getTag$5(r);y=y==argsTag$3?objectTag$4:y,b=b==argsTag$3?objectTag$4:b;var C=y==objectTag$4,x=b==objectTag$4,S=y==b;if(S&&isBuffer$6(t)){if(!isBuffer$6(r))return!1;d=!0,C=!1}if(S&&!C)return l||(l=new Stack$3),d||isTypedArray$6(t)?equalArrays(t,r,n,o,s,l):equalByTag(t,r,y,n,o,s,l);if(!(n&COMPARE_PARTIAL_FLAG$2)){var _=C&&hasOwnProperty$d.call(t,"__wrapped__"),w=x&&hasOwnProperty$d.call(r,"__wrapped__");if(_||w){var $=_?t.value():t,I=w?r.value():r;return l||(l=new Stack$3),s($,I,n,o,l)}}return S?(l||(l=new Stack$3),equalObjects(t,r,n,o,s,l)):!1}function baseIsEqual(t,r,n,o,s){return t===r?!0:t==null||r==null||!isObjectLike$9(t)&&!isObjectLike$9(r)?t!==t&&r!==r:baseIsEqualDeep(t,r,n,o,baseIsEqual,s)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch(t,r,n,o){var s=n.length,l=s,d=!o;if(t==null)return!l;for(t=Object(t);s--;){var g=n[s];if(d&&g[2]?g[1]!==t[g[0]]:!(g[0]in t))return!1}for(;++s<l;){g=n[s];var y=g[0],b=t[y],C=g[1];if(d&&g[2]){if(b===void 0&&!(y in t))return!1}else{var x=new Stack$3;if(o)var S=o(b,C,y,t,r,x);if(!(S===void 0?baseIsEqual(C,b,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,o,x):S))return!1}}return!0}function isStrictComparable(t){return t===t&&!isObject$h(t)}function getMatchData(t){for(var r=keys$5(t),n=r.length;n--;){var o=r[n],s=t[o];r[n]=[o,s,isStrictComparable(s)]}return r}function matchesStrictComparable(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}function baseMatches(t){var r=getMatchData(t);return r.length==1&&r[0][2]?matchesStrictComparable(r[0][0],r[0][1]):function(n){return n===t||baseIsMatch(n,t,r)}}function baseHasIn$2(t,r){return t!=null&&r in Object(t)}function hasPath$2(t,r,n){r=castPath$5(r,t);for(var o=-1,s=r.length,l=!1;++o<s;){var d=toKey$4(r[o]);if(!(l=t!=null&&n(t,d)))break;t=t[d]}return l||++o!=s?l:(s=t==null?0:t.length,!!s&&isLength$5(s)&&isIndex$5(d,s)&&(isArray$g(t)||isArguments$6(t)))}function hasIn$2(t,r){return t!=null&&hasPath$2(t,r,baseHasIn$2)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(t,r){return isKey$2(t)&&isStrictComparable(r)?matchesStrictComparable(toKey$4(t),r):function(n){var o=get$1(n,t);return o===void 0&&o===r?hasIn$2(n,t):baseIsEqual(r,o,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty(t){return function(r){return r==null?void 0:r[t]}}function basePropertyDeep(t){return function(r){return baseGet$2(r,t)}}function property(t){return isKey$2(t)?baseProperty(toKey$4(t)):basePropertyDeep(t)}function baseIteratee(t){return typeof t=="function"?t:t==null?identity$4:typeof t=="object"?isArray$g(t)?baseMatchesProperty(t[0],t[1]):baseMatches(t):property(t)}function createBaseFor$2(t){return function(r,n,o){for(var s=-1,l=Object(r),d=o(r),g=d.length;g--;){var y=d[t?g:++s];if(n(l[y],y,l)===!1)break}return r}}var baseFor$2=createBaseFor$2(),baseFor$3=baseFor$2;function baseForOwn(t,r){return t&&baseFor$3(t,r,keys$5)}function createBaseEach(t,r){return function(n,o){if(n==null)return n;if(!isArrayLike$6(n))return t(n,o);for(var s=n.length,l=r?s:-1,d=Object(n);(r?l--:++l<s)&&o(d[l],l,d)!==!1;);return n}}var baseEach=createBaseEach(baseForOwn),baseEach$1=baseEach,now=function(){return root$a.Date.now()},now$1=now,FUNC_ERROR_TEXT$2="Expected a function",nativeMax$1=Math.max,nativeMin=Math.min;function debounce(t,r,n){var o,s,l,d,g,y,b=0,C=!1,x=!1,S=!0;if(typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT$2);r=toNumber$1(r)||0,isObject$h(n)&&(C=!!n.leading,x="maxWait"in n,l=x?nativeMax$1(toNumber$1(n.maxWait)||0,r):l,S="trailing"in n?!!n.trailing:S);function _(D){var N=o,H=s;return o=s=void 0,b=D,d=t.apply(H,N),d}function w(D){return b=D,g=setTimeout(B,r),C?_(D):d}function $(D){var N=D-y,H=D-b,Q=r-N;return x?nativeMin(Q,l-H):Q}function I(D){var N=D-y,H=D-b;return y===void 0||N>=r||N<0||x&&H>=l}function B(){var D=now$1();if(I(D))return R(D);g=setTimeout(B,$(D))}function R(D){return g=void 0,S&&o?_(D):(o=s=void 0,d)}function P(){g!==void 0&&clearTimeout(g),b=0,o=y=s=g=void 0}function M(){return g===void 0?d:R(now$1())}function O(){var D=now$1(),N=I(D);if(o=arguments,s=this,y=D,N){if(g===void 0)return w(y);if(x)return clearTimeout(g),g=setTimeout(B,r),_(y)}return g===void 0&&(g=setTimeout(B,r)),d}return O.cancel=P,O.flush=M,O}function assignMergeValue$3(t,r,n){(n!==void 0&&!eq$5(t[r],n)||n===void 0&&!(r in t))&&baseAssignValue$4(t,r,n)}function isArrayLikeObject$2(t){return isObjectLike$9(t)&&isArrayLike$6(t)}function safeGet$3(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}function toPlainObject$2(t){return copyObject$6(t,keysIn$6(t))}function baseMergeDeep$2(t,r,n,o,s,l,d){var g=safeGet$3(t,n),y=safeGet$3(r,n),b=d.get(y);if(b){assignMergeValue$3(t,n,b);return}var C=l?l(g,y,n+"",t,r,d):void 0,x=C===void 0;if(x){var S=isArray$g(y),_=!S&&isBuffer$6(y),w=!S&&!_&&isTypedArray$6(y);C=y,S||_||w?isArray$g(g)?C=g:isArrayLikeObject$2(g)?C=copyArray$3(g):_?(x=!1,C=cloneBuffer$2(y,!0)):w?(x=!1,C=cloneTypedArray$3(y,!0)):C=[]:isPlainObject$5(y)||isArguments$6(y)?(C=g,isArguments$6(g)?C=toPlainObject$2(g):(!isObject$h(g)||isFunction$7(g))&&(C=initCloneObject$3(y))):x=!1}x&&(d.set(y,C),s(C,y,o,l,d),d.delete(y)),assignMergeValue$3(t,n,C)}function baseMerge$2(t,r,n,o,s){t!==r&&baseFor$3(r,function(l,d){if(s||(s=new Stack$3),isObject$h(l))baseMergeDeep$2(t,r,d,n,baseMerge$2,o,s);else{var g=o?o(safeGet$3(t,d),l,d+"",t,r,s):void 0;g===void 0&&(g=l),assignMergeValue$3(t,d,g)}},keysIn$6)}function baseMap(t,r){var n=-1,o=isArrayLike$6(t)?Array(t.length):[];return baseEach$1(t,function(s,l,d){o[++n]=r(s,l,d)}),o}function map$2(t,r){var n=isArray$g(t)?arrayMap$2:baseMap;return n(t,baseIteratee(r))}var kebabCase=createCompounder(function(t,r,n){return t+(n?"-":"")+r.toLowerCase()}),kebabCase$1=kebabCase,merge$4=createAssigner$2(function(t,r,n){baseMerge$2(t,r,n)}),merge$5=merge$4,round$4=createRound("round"),round$5=round$4,FUNC_ERROR_TEXT$1="Expected a function";function throttle$1(t,r,n){var o=!0,s=!0;if(typeof t!="function")throw new TypeError(FUNC_ERROR_TEXT$1);return isObject$h(n)&&(o="leading"in n?!!n.leading:o,s="trailing"in n?!!n.trailing:s),debounce(t,r,{leading:o,maxWait:r,trailing:s})}var commonVariables$m={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:fontSize$1,fontFamily:fontFamily$1,lineHeight:lineHeight$2}=commonVariables$m;var globalStyle=c$1("body",`
|
|
margin: 0;
|
|
font-size: ${fontSize$1};
|
|
font-family: ${fontFamily$1};
|
|
line-height: ${lineHeight$2};
|
|
-webkit-text-size-adjust: 100%;
|
|
-webkit-tap-highlight-color: transparent;
|
|
`,[c$1("input",`
|
|
font-family: inherit;
|
|
font-size: inherit;
|
|
`)]);const configProviderInjectionKey="n-config-provider",cssrAnchorMetaName="naive-ui-style";function createTheme(t){return t}function useTheme(t,r,n,o,s,l){const d=useSsrAdapter(),g=inject(configProviderInjectionKey,null);if(n){const b=()=>{const C=l==null?void 0:l.value;n.mount({id:C===void 0?r:C+r,head:!0,props:{bPrefix:C?`.${C}-`:void 0},anchorMetaName:cssrAnchorMetaName,ssr:d}),g!=null&&g.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:d})};d?b():onBeforeMount(b)}return computed(()=>{var b;const{theme:{common:C,self:x,peers:S={}}={},themeOverrides:_={},builtinThemeOverrides:w={}}=s,{common:$,peers:I}=_,{common:B=void 0,[t]:{common:R=void 0,self:P=void 0,peers:M={}}={}}=(g==null?void 0:g.mergedThemeRef.value)||{},{common:O=void 0,[t]:D={}}=(g==null?void 0:g.mergedThemeOverridesRef.value)||{},{common:N,peers:H={}}=D,Q=merge$5({},C||R||B||o.common,O,N,$),G=merge$5((b=x||P||o.self)===null||b===void 0?void 0:b(Q),w,D,_);return{common:Q,self:G,peers:merge$5({},o.peers,M,S),peerOverrides:merge$5({},w.peers,H,I)}})}useTheme.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const defaultClsPrefix="n";function useConfig(t={},r={defaultBordered:!0}){const n=inject(configProviderInjectionKey,null);return{inlineThemeDisabled:n==null?void 0:n.inlineThemeDisabled,mergedRtlRef:n==null?void 0:n.mergedRtlRef,mergedComponentPropsRef:n==null?void 0:n.mergedComponentPropsRef,mergedBreakpointsRef:n==null?void 0:n.mergedBreakpointsRef,mergedBorderedRef:computed(()=>{var o,s;const{bordered:l}=t;return l!==void 0?l:(s=(o=n==null?void 0:n.mergedBorderedRef.value)!==null&&o!==void 0?o:r.defaultBordered)!==null&&s!==void 0?s:!0}),mergedClsPrefixRef:computed(()=>(n==null?void 0:n.mergedClsPrefixRef.value)||defaultClsPrefix),namespaceRef:computed(()=>n==null?void 0:n.mergedNamespaceRef.value)}}const zhCN$1={name:"zh-CN",global:{undo:"\u64A4\u9500",redo:"\u91CD\u505A",confirm:"\u786E\u8BA4",clear:"\u6E05\u9664"},Popconfirm:{positiveText:"\u786E\u8BA4",negativeText:"\u53D6\u6D88"},Cascader:{placeholder:"\u8BF7\u9009\u62E9",loading:"\u52A0\u8F7D\u4E2D",loadingRequiredMessage:t=>`\u52A0\u8F7D\u5168\u90E8 ${t} \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:t=>`\u5171 ${t} \u9879`,selected:t=>`\u5DF2\u9009 ${t} \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 zhCN$2=zhCN$1;const enUS$1={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:t=>`Please load all ${t}'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:t=>`Total ${t} items`,selected:t=>`${t} 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 enUS$2=enUS$1,formatDistanceLocale$1={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"}},formatDistance$3=function(r,n,o){var s,l=formatDistanceLocale$1[r];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",String(n)),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?s+"\u5185":s+"\u524D":s},formatDistance$4=formatDistance$3;function buildFormatLongFn$1(t){return function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.width?String(r.width):t.defaultWidth,o=t.formats[n]||t.formats[t.defaultWidth];return o}}var dateFormats$1={full:"y'\u5E74'M'\u6708'd'\u65E5' EEEE",long:"y'\u5E74'M'\u6708'd'\u65E5'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},timeFormats$1={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},dateTimeFormats$1={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},formatLong$3={date:buildFormatLongFn$1({formats:dateFormats$1,defaultWidth:"full"}),time:buildFormatLongFn$1({formats:timeFormats$1,defaultWidth:"full"}),dateTime:buildFormatLongFn$1({formats:dateTimeFormats$1,defaultWidth:"full"})},formatLong$4=formatLong$3;function requiredArgs$1(t,r){if(r.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+r.length+" present")}function _typeof$z(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$z=function(n){return typeof n}:_typeof$z=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$z(t)}function toDate$2(t){requiredArgs$1(1,arguments);var r=Object.prototype.toString.call(t);return t instanceof Date||_typeof$z(t)==="object"&&r==="[object Date]"?new Date(t.getTime()):typeof t=="number"||r==="[object Number]"?new Date(t):((typeof t=="string"||r==="[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://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function toInteger$2(t){if(t===null||t===!0||t===!1)return NaN;var r=Number(t);return isNaN(r)?r:r<0?Math.ceil(r):Math.floor(r)}var defaultOptions$2={};function getDefaultOptions$1(){return defaultOptions$2}function startOfUTCWeek$1(t,r){var n,o,s,l,d,g,y,b;requiredArgs$1(1,arguments);var C=getDefaultOptions$1(),x=toInteger$2((n=(o=(s=(l=r==null?void 0:r.weekStartsOn)!==null&&l!==void 0?l:r==null||(d=r.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.weekStartsOn)!==null&&s!==void 0?s:C.weekStartsOn)!==null&&o!==void 0?o:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&n!==void 0?n:0);if(!(x>=0&&x<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var S=toDate$2(t),_=S.getUTCDay(),w=(_<x?7:0)+_-x;return S.setUTCDate(S.getUTCDate()-w),S.setUTCHours(0,0,0,0),S}function isSameUTCWeek(t,r,n){requiredArgs$1(2,arguments);var o=startOfUTCWeek$1(t,n),s=startOfUTCWeek$1(r,n);return o.getTime()===s.getTime()}function checkWeek(t,r,n){var o="eeee p";return isSameUTCWeek(t,r,n)?o:t.getTime()>r.getTime()?"'\u4E0B\u4E2A'"+o:"'\u4E0A\u4E2A'"+o}var formatRelativeLocale$1={lastWeek:checkWeek,yesterday:"'\u6628\u5929' p",today:"'\u4ECA\u5929' p",tomorrow:"'\u660E\u5929' p",nextWeek:checkWeek,other:"PP p"},formatRelative$3=function(r,n,o,s){var l=formatRelativeLocale$1[r];return typeof l=="function"?l(n,o,s):l},formatRelative$4=formatRelative$3;function buildLocalizeFn$1(t){return function(r,n){var o=n!=null&&n.context?String(n.context):"standalone",s;if(o==="formatting"&&t.formattingValues){var l=t.defaultFormattingWidth||t.defaultWidth,d=n!=null&&n.width?String(n.width):l;s=t.formattingValues[d]||t.formattingValues[l]}else{var g=t.defaultWidth,y=n!=null&&n.width?String(n.width):t.defaultWidth;s=t.values[y]||t.values[g]}var b=t.argumentCallback?t.argumentCallback(r):r;return s[b]}}var eraValues$1={narrow:["\u524D","\u516C\u5143"],abbreviated:["\u524D","\u516C\u5143"],wide:["\u516C\u5143\u524D","\u516C\u5143"]},quarterValues$1={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"]},monthValues$1={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"]},dayValues$1={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"]},dayPeriodValues$1={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"}},formattingDayPeriodValues$1={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"}},ordinalNumber$1=function(r,n){var o=Number(r);switch(n==null?void 0:n.unit){case"date":return o.toString()+"\u65E5";case"hour":return o.toString()+"\u65F6";case"minute":return o.toString()+"\u5206";case"second":return o.toString()+"\u79D2";default:return"\u7B2C "+o.toString()}},localize$3={ordinalNumber:ordinalNumber$1,era:buildLocalizeFn$1({values:eraValues$1,defaultWidth:"wide"}),quarter:buildLocalizeFn$1({values:quarterValues$1,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:buildLocalizeFn$1({values:monthValues$1,defaultWidth:"wide"}),day:buildLocalizeFn$1({values:dayValues$1,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn$1({values:dayPeriodValues$1,defaultWidth:"wide",formattingValues:formattingDayPeriodValues$1,defaultFormattingWidth:"wide"})},localize$4=localize$3;function buildMatchFn$1(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.width,s=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],l=r.match(s);if(!l)return null;var d=l[0],g=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth],y=Array.isArray(g)?findIndex(g,function(x){return x.test(d)}):findKey(g,function(x){return x.test(d)}),b;b=t.valueCallback?t.valueCallback(y):y,b=n.valueCallback?n.valueCallback(b):b;var C=r.slice(d.length);return{value:b,rest:C}}}function findKey(t,r){for(var n in t)if(t.hasOwnProperty(n)&&r(t[n]))return n}function findIndex(t,r){for(var n=0;n<t.length;n++)if(r(t[n]))return n}function buildMatchPatternFn$1(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=r.match(t.matchPattern);if(!o)return null;var s=o[0],l=r.match(t.parsePattern);if(!l)return null;var d=t.valueCallback?t.valueCallback(l[0]):l[0];d=n.valueCallback?n.valueCallback(d):d;var g=r.slice(s.length);return{value:d,rest:g}}}var matchOrdinalNumberPattern$1=/^(第\s*)?\d+(日|时|分|秒)?/i,parseOrdinalNumberPattern$1=/\d+/i,matchEraPatterns$1={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},parseEraPatterns$1={any:[/^(前)/i,/^(公元)/i]},matchQuarterPatterns$1={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},parseQuarterPatterns$1={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},matchMonthPatterns$1={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},parseMonthPatterns$1={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]},matchDayPatterns$1={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},parseDayPatterns$1={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},matchDayPeriodPatterns$1={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},parseDayPeriodPatterns$1={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},match$3={ordinalNumber:buildMatchPatternFn$1({matchPattern:matchOrdinalNumberPattern$1,parsePattern:parseOrdinalNumberPattern$1,valueCallback:function(r){return parseInt(r,10)}}),era:buildMatchFn$1({matchPatterns:matchEraPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns$1,defaultParseWidth:"any"}),quarter:buildMatchFn$1({matchPatterns:matchQuarterPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns$1,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:buildMatchFn$1({matchPatterns:matchMonthPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns$1,defaultParseWidth:"any"}),day:buildMatchFn$1({matchPatterns:matchDayPatterns$1,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns$1,defaultParseWidth:"any"}),dayPeriod:buildMatchFn$1({matchPatterns:matchDayPeriodPatterns$1,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns$1,defaultParseWidth:"any"})},match$4=match$3,locale$1={code:"zh-CN",formatDistance:formatDistance$4,formatLong:formatLong$4,formatRelative:formatRelative$4,localize:localize$4,match:match$4,options:{weekStartsOn:1,firstWeekContainsDate:4}},zhCN=locale$1;const dateZhCN={name:"zh-CN",locale:zhCN};var dateZhCN$1=dateZhCN,formatDistanceLocale={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"}},formatDistance$1=function(r,n,o){var s,l=formatDistanceLocale[r];return typeof l=="string"?s=l:n===1?s=l.one:s=l.other.replace("{{count}}",n.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+s:s+" ago":s},formatDistance$2=formatDistance$1,dateFormats={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},timeFormats={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dateTimeFormats={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},formatLong$1={date:buildFormatLongFn$1({formats:dateFormats,defaultWidth:"full"}),time:buildFormatLongFn$1({formats:timeFormats,defaultWidth:"full"}),dateTime:buildFormatLongFn$1({formats:dateTimeFormats,defaultWidth:"full"})},formatLong$2=formatLong$1,formatRelativeLocale={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},formatRelative$1=function(r,n,o,s){return formatRelativeLocale[r]},formatRelative$2=formatRelative$1,eraValues={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},quarterValues={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},monthValues={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"]},dayValues={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"]},dayPeriodValues={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"}},formattingDayPeriodValues={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"}},ordinalNumber=function(r,n){var o=Number(r),s=o%100;if(s>20||s<10)switch(s%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},localize$1={ordinalNumber,era:buildLocalizeFn$1({values:eraValues,defaultWidth:"wide"}),quarter:buildLocalizeFn$1({values:quarterValues,defaultWidth:"wide",argumentCallback:function(r){return r-1}}),month:buildLocalizeFn$1({values:monthValues,defaultWidth:"wide"}),day:buildLocalizeFn$1({values:dayValues,defaultWidth:"wide"}),dayPeriod:buildLocalizeFn$1({values:dayPeriodValues,defaultWidth:"wide",formattingValues:formattingDayPeriodValues,defaultFormattingWidth:"wide"})},localize$2=localize$1,matchOrdinalNumberPattern=/^(\d+)(th|st|nd|rd)?/i,parseOrdinalNumberPattern=/\d+/i,matchEraPatterns={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},parseEraPatterns={any:[/^b/i,/^(a|c)/i]},matchQuarterPatterns={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},parseQuarterPatterns={any:[/1/i,/2/i,/3/i,/4/i]},matchMonthPatterns={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},parseMonthPatterns={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]},matchDayPatterns={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},parseDayPatterns={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]},matchDayPeriodPatterns={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},parseDayPeriodPatterns={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}},match$1={ordinalNumber:buildMatchPatternFn$1({matchPattern:matchOrdinalNumberPattern,parsePattern:parseOrdinalNumberPattern,valueCallback:function(r){return parseInt(r,10)}}),era:buildMatchFn$1({matchPatterns:matchEraPatterns,defaultMatchWidth:"wide",parsePatterns:parseEraPatterns,defaultParseWidth:"any"}),quarter:buildMatchFn$1({matchPatterns:matchQuarterPatterns,defaultMatchWidth:"wide",parsePatterns:parseQuarterPatterns,defaultParseWidth:"any",valueCallback:function(r){return r+1}}),month:buildMatchFn$1({matchPatterns:matchMonthPatterns,defaultMatchWidth:"wide",parsePatterns:parseMonthPatterns,defaultParseWidth:"any"}),day:buildMatchFn$1({matchPatterns:matchDayPatterns,defaultMatchWidth:"wide",parsePatterns:parseDayPatterns,defaultParseWidth:"any"}),dayPeriod:buildMatchFn$1({matchPatterns:matchDayPeriodPatterns,defaultMatchWidth:"any",parsePatterns:parseDayPeriodPatterns,defaultParseWidth:"any"})},match$2=match$1,locale={code:"en-US",formatDistance:formatDistance$2,formatLong:formatLong$2,formatRelative:formatRelative$2,localize:localize$2,match:match$2,options:{weekStartsOn:0,firstWeekContainsDate:1}},defaultLocale$1=locale;const dateEnUs={name:"en-US",locale:defaultLocale$1};var dateEnUS=dateEnUs;function addDays(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r);return isNaN(o)?new Date(NaN):(o&&n.setDate(n.getDate()+o),n)}function addMonths(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r);if(isNaN(o))return new Date(NaN);if(!o)return n;var s=n.getDate(),l=new Date(n.getTime());l.setMonth(n.getMonth()+o+1,0);var d=l.getDate();return s>=d?l:(n.setFullYear(l.getFullYear(),l.getMonth(),s),n)}function addMilliseconds$1(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t).getTime(),o=toInteger$2(r);return new Date(n+o)}function getTimezoneOffsetInMilliseconds$2(t){var r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),t.getTime()-r.getTime()}function startOfDay(t){requiredArgs$1(1,arguments);var r=toDate$2(t);return r.setHours(0,0,0,0),r}function addQuarters(t,r){requiredArgs$1(2,arguments);var n=toInteger$2(r),o=n*3;return addMonths(t,o)}function addYears(t,r){requiredArgs$1(2,arguments);var n=toInteger$2(r);return addMonths(t,n*12)}function compareAsc(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toDate$2(r),s=n.getTime()-o.getTime();return s<0?-1:s>0?1:s}var millisecondsInMinute=6e4,millisecondsInHour=36e5,millisecondsInSecond=1e3;function isSameDay(t,r){requiredArgs$1(2,arguments);var n=startOfDay(t),o=startOfDay(r);return n.getTime()===o.getTime()}function _typeof$y(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$y=function(n){return typeof n}:_typeof$y=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$y(t)}function isDate$3(t){return requiredArgs$1(1,arguments),t instanceof Date||_typeof$y(t)==="object"&&Object.prototype.toString.call(t)==="[object Date]"}function isValid$1(t){if(requiredArgs$1(1,arguments),!isDate$3(t)&&typeof t!="number")return!1;var r=toDate$2(t);return!isNaN(Number(r))}function getQuarter(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=Math.floor(r.getMonth()/3)+1;return n}function startOfMinute(t){requiredArgs$1(1,arguments);var r=toDate$2(t);return r.setSeconds(0,0),r}function startOfQuarter(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getMonth(),o=n-n%3;return r.setMonth(o,1),r.setHours(0,0,0,0),r}function startOfMonth(t){requiredArgs$1(1,arguments);var r=toDate$2(t);return r.setDate(1),r.setHours(0,0,0,0),r}function startOfYear(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=new Date(0);return n.setFullYear(r.getFullYear(),0,1),n.setHours(0,0,0,0),n}function subMilliseconds$1(t,r){requiredArgs$1(2,arguments);var n=toInteger$2(r);return addMilliseconds$1(t,-n)}var MILLISECONDS_IN_DAY=864e5;function getUTCDayOfYear$1(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getTime();r.setUTCMonth(0,1),r.setUTCHours(0,0,0,0);var o=r.getTime(),s=n-o;return Math.floor(s/MILLISECONDS_IN_DAY)+1}function startOfUTCISOWeek$1(t){requiredArgs$1(1,arguments);var r=1,n=toDate$2(t),o=n.getUTCDay(),s=(o<r?7:0)+o-r;return n.setUTCDate(n.getUTCDate()-s),n.setUTCHours(0,0,0,0),n}function getUTCISOWeekYear$1(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getUTCFullYear(),o=new Date(0);o.setUTCFullYear(n+1,0,4),o.setUTCHours(0,0,0,0);var s=startOfUTCISOWeek$1(o),l=new Date(0);l.setUTCFullYear(n,0,4),l.setUTCHours(0,0,0,0);var d=startOfUTCISOWeek$1(l);return r.getTime()>=s.getTime()?n+1:r.getTime()>=d.getTime()?n:n-1}function startOfUTCISOWeekYear$1(t){requiredArgs$1(1,arguments);var r=getUTCISOWeekYear$1(t),n=new Date(0);n.setUTCFullYear(r,0,4),n.setUTCHours(0,0,0,0);var o=startOfUTCISOWeek$1(n);return o}var MILLISECONDS_IN_WEEK$1=6048e5;function getUTCISOWeek$1(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=startOfUTCISOWeek$1(r).getTime()-startOfUTCISOWeekYear$1(r).getTime();return Math.round(n/MILLISECONDS_IN_WEEK$1)+1}function getUTCWeekYear$1(t,r){var n,o,s,l,d,g,y,b;requiredArgs$1(1,arguments);var C=toDate$2(t),x=C.getUTCFullYear(),S=getDefaultOptions$1(),_=toInteger$2((n=(o=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(d=r.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&s!==void 0?s:S.firstWeekContainsDate)!==null&&o!==void 0?o:(y=S.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var w=new Date(0);w.setUTCFullYear(x+1,0,_),w.setUTCHours(0,0,0,0);var $=startOfUTCWeek$1(w,r),I=new Date(0);I.setUTCFullYear(x,0,_),I.setUTCHours(0,0,0,0);var B=startOfUTCWeek$1(I,r);return C.getTime()>=$.getTime()?x+1:C.getTime()>=B.getTime()?x:x-1}function startOfUTCWeekYear$1(t,r){var n,o,s,l,d,g,y,b;requiredArgs$1(1,arguments);var C=getDefaultOptions$1(),x=toInteger$2((n=(o=(s=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(d=r.locale)===null||d===void 0||(g=d.options)===null||g===void 0?void 0:g.firstWeekContainsDate)!==null&&s!==void 0?s:C.firstWeekContainsDate)!==null&&o!==void 0?o:(y=C.locale)===null||y===void 0||(b=y.options)===null||b===void 0?void 0:b.firstWeekContainsDate)!==null&&n!==void 0?n:1),S=getUTCWeekYear$1(t,r),_=new Date(0);_.setUTCFullYear(S,0,x),_.setUTCHours(0,0,0,0);var w=startOfUTCWeek$1(_,r);return w}var MILLISECONDS_IN_WEEK=6048e5;function getUTCWeek$1(t,r){requiredArgs$1(1,arguments);var n=toDate$2(t),o=startOfUTCWeek$1(n,r).getTime()-startOfUTCWeekYear$1(n,r).getTime();return Math.round(o/MILLISECONDS_IN_WEEK)+1}function addLeadingZeros$2(t,r){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<r;)o="0"+o;return n+o}var formatters$5={y:function(r,n){var o=r.getUTCFullYear(),s=o>0?o:1-o;return addLeadingZeros$2(n==="yy"?s%100:s,n.length)},M:function(r,n){var o=r.getUTCMonth();return n==="M"?String(o+1):addLeadingZeros$2(o+1,2)},d:function(r,n){return addLeadingZeros$2(r.getUTCDate(),n.length)},a:function(r,n){var o=r.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.toUpperCase();case"aaa":return o;case"aaaaa":return o[0];case"aaaa":default:return o==="am"?"a.m.":"p.m."}},h:function(r,n){return addLeadingZeros$2(r.getUTCHours()%12||12,n.length)},H:function(r,n){return addLeadingZeros$2(r.getUTCHours(),n.length)},m:function(r,n){return addLeadingZeros$2(r.getUTCMinutes(),n.length)},s:function(r,n){return addLeadingZeros$2(r.getUTCSeconds(),n.length)},S:function(r,n){var o=n.length,s=r.getUTCMilliseconds(),l=Math.floor(s*Math.pow(10,o-3));return addLeadingZeros$2(l,n.length)}},formatters$6=formatters$5,dayPeriodEnum={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},formatters$3={G:function(r,n,o){var s=r.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return o.era(s,{width:"abbreviated"});case"GGGGG":return o.era(s,{width:"narrow"});case"GGGG":default:return o.era(s,{width:"wide"})}},y:function(r,n,o){if(n==="yo"){var s=r.getUTCFullYear(),l=s>0?s:1-s;return o.ordinalNumber(l,{unit:"year"})}return formatters$6.y(r,n)},Y:function(r,n,o,s){var l=getUTCWeekYear$1(r,s),d=l>0?l:1-l;if(n==="YY"){var g=d%100;return addLeadingZeros$2(g,2)}return n==="Yo"?o.ordinalNumber(d,{unit:"year"}):addLeadingZeros$2(d,n.length)},R:function(r,n){var o=getUTCISOWeekYear$1(r);return addLeadingZeros$2(o,n.length)},u:function(r,n){var o=r.getUTCFullYear();return addLeadingZeros$2(o,n.length)},Q:function(r,n,o){var s=Math.ceil((r.getUTCMonth()+1)/3);switch(n){case"Q":return String(s);case"QQ":return addLeadingZeros$2(s,2);case"Qo":return o.ordinalNumber(s,{unit:"quarter"});case"QQQ":return o.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return o.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(s,{width:"wide",context:"formatting"})}},q:function(r,n,o){var s=Math.ceil((r.getUTCMonth()+1)/3);switch(n){case"q":return String(s);case"qq":return addLeadingZeros$2(s,2);case"qo":return o.ordinalNumber(s,{unit:"quarter"});case"qqq":return o.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return o.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(s,{width:"wide",context:"standalone"})}},M:function(r,n,o){var s=r.getUTCMonth();switch(n){case"M":case"MM":return formatters$6.M(r,n);case"Mo":return o.ordinalNumber(s+1,{unit:"month"});case"MMM":return o.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return o.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(s,{width:"wide",context:"formatting"})}},L:function(r,n,o){var s=r.getUTCMonth();switch(n){case"L":return String(s+1);case"LL":return addLeadingZeros$2(s+1,2);case"Lo":return o.ordinalNumber(s+1,{unit:"month"});case"LLL":return o.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return o.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(s,{width:"wide",context:"standalone"})}},w:function(r,n,o,s){var l=getUTCWeek$1(r,s);return n==="wo"?o.ordinalNumber(l,{unit:"week"}):addLeadingZeros$2(l,n.length)},I:function(r,n,o){var s=getUTCISOWeek$1(r);return n==="Io"?o.ordinalNumber(s,{unit:"week"}):addLeadingZeros$2(s,n.length)},d:function(r,n,o){return n==="do"?o.ordinalNumber(r.getUTCDate(),{unit:"date"}):formatters$6.d(r,n)},D:function(r,n,o){var s=getUTCDayOfYear$1(r);return n==="Do"?o.ordinalNumber(s,{unit:"dayOfYear"}):addLeadingZeros$2(s,n.length)},E:function(r,n,o){var s=r.getUTCDay();switch(n){case"E":case"EE":case"EEE":return o.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return o.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(s,{width:"short",context:"formatting"});case"EEEE":default:return o.day(s,{width:"wide",context:"formatting"})}},e:function(r,n,o,s){var l=r.getUTCDay(),d=(l-s.weekStartsOn+8)%7||7;switch(n){case"e":return String(d);case"ee":return addLeadingZeros$2(d,2);case"eo":return o.ordinalNumber(d,{unit:"day"});case"eee":return o.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return o.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(l,{width:"short",context:"formatting"});case"eeee":default:return o.day(l,{width:"wide",context:"formatting"})}},c:function(r,n,o,s){var l=r.getUTCDay(),d=(l-s.weekStartsOn+8)%7||7;switch(n){case"c":return String(d);case"cc":return addLeadingZeros$2(d,n.length);case"co":return o.ordinalNumber(d,{unit:"day"});case"ccc":return o.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return o.day(l,{width:"narrow",context:"standalone"});case"cccccc":return o.day(l,{width:"short",context:"standalone"});case"cccc":default:return o.day(l,{width:"wide",context:"standalone"})}},i:function(r,n,o){var s=r.getUTCDay(),l=s===0?7:s;switch(n){case"i":return String(l);case"ii":return addLeadingZeros$2(l,n.length);case"io":return o.ordinalNumber(l,{unit:"day"});case"iii":return o.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return o.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return o.day(s,{width:"short",context:"formatting"});case"iiii":default:return o.day(s,{width:"wide",context:"formatting"})}},a:function(r,n,o){var s=r.getUTCHours(),l=s/12>=1?"pm":"am";switch(n){case"a":case"aa":return o.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return o.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return o.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(r,n,o){var s=r.getUTCHours(),l;switch(s===12?l=dayPeriodEnum.noon:s===0?l=dayPeriodEnum.midnight:l=s/12>=1?"pm":"am",n){case"b":case"bb":return o.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return o.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return o.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(r,n,o){var s=r.getUTCHours(),l;switch(s>=17?l=dayPeriodEnum.evening:s>=12?l=dayPeriodEnum.afternoon:s>=4?l=dayPeriodEnum.morning:l=dayPeriodEnum.night,n){case"B":case"BB":case"BBB":return o.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return o.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(r,n,o){if(n==="ho"){var s=r.getUTCHours()%12;return s===0&&(s=12),o.ordinalNumber(s,{unit:"hour"})}return formatters$6.h(r,n)},H:function(r,n,o){return n==="Ho"?o.ordinalNumber(r.getUTCHours(),{unit:"hour"}):formatters$6.H(r,n)},K:function(r,n,o){var s=r.getUTCHours()%12;return n==="Ko"?o.ordinalNumber(s,{unit:"hour"}):addLeadingZeros$2(s,n.length)},k:function(r,n,o){var s=r.getUTCHours();return s===0&&(s=24),n==="ko"?o.ordinalNumber(s,{unit:"hour"}):addLeadingZeros$2(s,n.length)},m:function(r,n,o){return n==="mo"?o.ordinalNumber(r.getUTCMinutes(),{unit:"minute"}):formatters$6.m(r,n)},s:function(r,n,o){return n==="so"?o.ordinalNumber(r.getUTCSeconds(),{unit:"second"}):formatters$6.s(r,n)},S:function(r,n){return formatters$6.S(r,n)},X:function(r,n,o,s){var l=s._originalDate||r,d=l.getTimezoneOffset();if(d===0)return"Z";switch(n){case"X":return formatTimezoneWithOptionalMinutes$1(d);case"XXXX":case"XX":return formatTimezone$1(d);case"XXXXX":case"XXX":default:return formatTimezone$1(d,":")}},x:function(r,n,o,s){var l=s._originalDate||r,d=l.getTimezoneOffset();switch(n){case"x":return formatTimezoneWithOptionalMinutes$1(d);case"xxxx":case"xx":return formatTimezone$1(d);case"xxxxx":case"xxx":default:return formatTimezone$1(d,":")}},O:function(r,n,o,s){var l=s._originalDate||r,d=l.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort$1(d,":");case"OOOO":default:return"GMT"+formatTimezone$1(d,":")}},z:function(r,n,o,s){var l=s._originalDate||r,d=l.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+formatTimezoneShort$1(d,":");case"zzzz":default:return"GMT"+formatTimezone$1(d,":")}},t:function(r,n,o,s){var l=s._originalDate||r,d=Math.floor(l.getTime()/1e3);return addLeadingZeros$2(d,n.length)},T:function(r,n,o,s){var l=s._originalDate||r,d=l.getTime();return addLeadingZeros$2(d,n.length)}};function formatTimezoneShort$1(t,r){var n=t>0?"-":"+",o=Math.abs(t),s=Math.floor(o/60),l=o%60;if(l===0)return n+String(s);var d=r||"";return n+String(s)+d+addLeadingZeros$2(l,2)}function formatTimezoneWithOptionalMinutes$1(t,r){if(t%60===0){var n=t>0?"-":"+";return n+addLeadingZeros$2(Math.abs(t)/60,2)}return formatTimezone$1(t,r)}function formatTimezone$1(t,r){var n=r||"",o=t>0?"-":"+",s=Math.abs(t),l=addLeadingZeros$2(Math.floor(s/60),2),d=addLeadingZeros$2(s%60,2);return o+l+n+d}var formatters$4=formatters$3,dateLongFormatter=function(r,n){switch(r){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},timeLongFormatter=function(r,n){switch(r){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},dateTimeLongFormatter=function(r,n){var o=r.match(/(P+)(p+)?/)||[],s=o[1],l=o[2];if(!l)return dateLongFormatter(r,n);var d;switch(s){case"P":d=n.dateTime({width:"short"});break;case"PP":d=n.dateTime({width:"medium"});break;case"PPP":d=n.dateTime({width:"long"});break;case"PPPP":default:d=n.dateTime({width:"full"});break}return d.replace("{{date}}",dateLongFormatter(s,n)).replace("{{time}}",timeLongFormatter(l,n))},longFormatters$1={p:timeLongFormatter,P:dateTimeLongFormatter},longFormatters$2=longFormatters$1,protectedDayOfYearTokens$1=["D","DD"],protectedWeekYearTokens$1=["YY","YYYY"];function isProtectedDayOfYearToken$1(t){return protectedDayOfYearTokens$1.indexOf(t)!==-1}function isProtectedWeekYearToken$1(t){return protectedWeekYearTokens$1.indexOf(t)!==-1}function throwProtectedError$1(t,r,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(r,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(r,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(r,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(r,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var formattingTokensRegExp$1=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp$1=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp$1=/^'([^]*?)'?$/,doubleQuoteRegExp$1=/''/g,unescapedLatinCharacterRegExp$1=/[a-zA-Z]/;function format$7(t,r,n){var o,s,l,d,g,y,b,C,x,S,_,w,$,I,B,R,P,M;requiredArgs$1(2,arguments);var O=String(r),D=getDefaultOptions$1(),N=(o=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:D.locale)!==null&&o!==void 0?o:defaultLocale$1,H=toInteger$2((l=(d=(g=(y=n==null?void 0:n.firstWeekContainsDate)!==null&&y!==void 0?y:n==null||(b=n.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.firstWeekContainsDate)!==null&&g!==void 0?g:D.firstWeekContainsDate)!==null&&d!==void 0?d:(x=D.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.firstWeekContainsDate)!==null&&l!==void 0?l:1);if(!(H>=1&&H<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Q=toInteger$2((_=(w=($=(I=n==null?void 0:n.weekStartsOn)!==null&&I!==void 0?I:n==null||(B=n.locale)===null||B===void 0||(R=B.options)===null||R===void 0?void 0:R.weekStartsOn)!==null&&$!==void 0?$:D.weekStartsOn)!==null&&w!==void 0?w:(P=D.locale)===null||P===void 0||(M=P.options)===null||M===void 0?void 0:M.weekStartsOn)!==null&&_!==void 0?_:0);if(!(Q>=0&&Q<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var G=toDate$2(t);if(!isValid$1(G))throw new RangeError("Invalid time value");var K=getTimezoneOffsetInMilliseconds$2(G),W=subMilliseconds$1(G,K),j={firstWeekContainsDate:H,weekStartsOn:Q,locale:N,_originalDate:G},Y=O.match(longFormattingTokensRegExp$1).map(function(q){var X=q[0];if(X==="p"||X==="P"){var re=longFormatters$2[X];return re(q,N.formatLong)}return q}).join("").match(formattingTokensRegExp$1).map(function(q){if(q==="''")return"'";var X=q[0];if(X==="'")return cleanEscapedString$1(q);var re=formatters$4[X];if(re)return!(n!=null&&n.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken$1(q)&&throwProtectedError$1(q,r,String(t)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken$1(q)&&throwProtectedError$1(q,r,String(t)),re(W,q,N.localize,j);if(X.match(unescapedLatinCharacterRegExp$1))throw new RangeError("Format string contains an unescaped latin alphabet character `"+X+"`");return q}).join("");return Y}function cleanEscapedString$1(t){var r=t.match(escapedStringRegExp$1);return r?r[1].replace(doubleQuoteRegExp$1,"'"):t}function assign$5(t,r){if(t==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t}function cloneObject$2(t){return assign$5({},t)}var MILLISECONDS_IN_MINUTE$3=1e3*60,MINUTES_IN_DAY=60*24,MINUTES_IN_MONTH=MINUTES_IN_DAY*30,MINUTES_IN_YEAR=MINUTES_IN_DAY*365;function formatDistanceStrict(t,r,n){var o,s,l;requiredArgs$1(2,arguments);var d=getDefaultOptions$1(),g=(o=(s=n==null?void 0:n.locale)!==null&&s!==void 0?s:d.locale)!==null&&o!==void 0?o:defaultLocale$1;if(!g.formatDistance)throw new RangeError("locale must contain localize.formatDistance property");var y=compareAsc(t,r);if(isNaN(y))throw new RangeError("Invalid time value");var b=assign$5(cloneObject$2(n),{addSuffix:Boolean(n==null?void 0:n.addSuffix),comparison:y}),C,x;y>0?(C=toDate$2(r),x=toDate$2(t)):(C=toDate$2(t),x=toDate$2(r));var S=String((l=n==null?void 0:n.roundingMethod)!==null&&l!==void 0?l:"round"),_;if(S==="floor")_=Math.floor;else if(S==="ceil")_=Math.ceil;else if(S==="round")_=Math.round;else throw new RangeError("roundingMethod must be 'floor', 'ceil' or 'round'");var w=x.getTime()-C.getTime(),$=w/MILLISECONDS_IN_MINUTE$3,I=getTimezoneOffsetInMilliseconds$2(x)-getTimezoneOffsetInMilliseconds$2(C),B=(w-I)/MILLISECONDS_IN_MINUTE$3,R=n==null?void 0:n.unit,P;if(R?P=String(R):$<1?P="second":$<60?P="minute":$<MINUTES_IN_DAY?P="hour":B<MINUTES_IN_MONTH?P="day":B<MINUTES_IN_YEAR?P="month":P="year",P==="second"){var M=_(w/1e3);return g.formatDistance("xSeconds",M,b)}else if(P==="minute"){var O=_($);return g.formatDistance("xMinutes",O,b)}else if(P==="hour"){var D=_($/60);return g.formatDistance("xHours",D,b)}else if(P==="day"){var N=_(B/MINUTES_IN_DAY);return g.formatDistance("xDays",N,b)}else if(P==="month"){var H=_(B/MINUTES_IN_MONTH);return H===12&&R!=="month"?g.formatDistance("xYears",1,b):g.formatDistance("xMonths",H,b)}else if(P==="year"){var Q=_(B/MINUTES_IN_YEAR);return g.formatDistance("xYears",Q,b)}throw new RangeError("unit must be 'second', 'minute', 'hour', 'day', 'month' or 'year'")}function fromUnixTime(t){requiredArgs$1(1,arguments);var r=toInteger$2(t);return toDate$2(r*1e3)}function getDate(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getDate();return n}function getDay(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getDay();return n}function getDaysInMonth(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getFullYear(),o=r.getMonth(),s=new Date(0);return s.setFullYear(n,o+1,0),s.setHours(0,0,0,0),s.getDate()}function getHours(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getHours();return n}function getMinutes(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getMinutes();return n}function getMonth(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getMonth();return n}function getSeconds(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getSeconds();return n}function getTime$1(t){requiredArgs$1(1,arguments);var r=toDate$2(t),n=r.getTime();return n}function getYear(t){return requiredArgs$1(1,arguments),toDate$2(t).getFullYear()}function _typeof$x(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$x=function(n){return typeof n}:_typeof$x=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$x(t)}function _inherits$v(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$w(t,r)}function _setPrototypeOf$w(t,r){return _setPrototypeOf$w=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$w(t,r)}function _createSuper$v(t){var r=_isNativeReflectConstruct$w();return function(){var o=_getPrototypeOf$w(t),s;if(r){var l=_getPrototypeOf$w(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$v(this,s)}}function _possibleConstructorReturn$v(t,r){return r&&(_typeof$x(r)==="object"||typeof r=="function")?r:_assertThisInitialized$v(t)}function _assertThisInitialized$v(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$w(){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(t){return!1}}function _getPrototypeOf$w(t){return _getPrototypeOf$w=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$w(t)}function _classCallCheck$w(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$w(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$w(t,r,n){return r&&_defineProperties$w(t.prototype,r),n&&_defineProperties$w(t,n),t}function _defineProperty$w(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var TIMEZONE_UNIT_PRIORITY=10,Setter=function(){function t(){_classCallCheck$w(this,t),_defineProperty$w(this,"subPriority",0)}return _createClass$w(t,[{key:"validate",value:function(n,o){return!0}}]),t}(),ValueSetter=function(t){_inherits$v(n,t);var r=_createSuper$v(n);function n(o,s,l,d,g){var y;return _classCallCheck$w(this,n),y=r.call(this),y.value=o,y.validateValue=s,y.setValue=l,y.priority=d,g&&(y.subPriority=g),y}return _createClass$w(n,[{key:"validate",value:function(s,l){return this.validateValue(s,this.value,l)}},{key:"set",value:function(s,l,d){return this.setValue(s,l,this.value,d)}}]),n}(Setter),DateToSystemTimezoneSetter=function(t){_inherits$v(n,t);var r=_createSuper$v(n);function n(){var o;_classCallCheck$w(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$w(_assertThisInitialized$v(o),"priority",TIMEZONE_UNIT_PRIORITY),_defineProperty$w(_assertThisInitialized$v(o),"subPriority",-1),o}return _createClass$w(n,[{key:"set",value:function(s,l){if(l.timestampIsSet)return s;var d=new Date(0);return d.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),d.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),d}}]),n}(Setter);function _classCallCheck$v(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$v(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$v(t,r,n){return r&&_defineProperties$v(t.prototype,r),n&&_defineProperties$v(t,n),t}var Parser$1=function(){function t(){_classCallCheck$v(this,t)}return _createClass$v(t,[{key:"run",value:function(n,o,s,l){var d=this.parse(n,o,s,l);return d?{setter:new ValueSetter(d.value,this.validate,this.set,this.priority,this.subPriority),rest:d.rest}:null}},{key:"validate",value:function(n,o,s){return!0}}]),t}();function _typeof$w(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$w=function(n){return typeof n}:_typeof$w=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$w(t)}function _classCallCheck$u(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$u(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$u(t,r,n){return r&&_defineProperties$u(t.prototype,r),n&&_defineProperties$u(t,n),t}function _inherits$u(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$v(t,r)}function _setPrototypeOf$v(t,r){return _setPrototypeOf$v=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$v(t,r)}function _createSuper$u(t){var r=_isNativeReflectConstruct$v();return function(){var o=_getPrototypeOf$v(t),s;if(r){var l=_getPrototypeOf$v(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$u(this,s)}}function _possibleConstructorReturn$u(t,r){return r&&(_typeof$w(r)==="object"||typeof r=="function")?r:_assertThisInitialized$u(t)}function _assertThisInitialized$u(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$v(){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(t){return!1}}function _getPrototypeOf$v(t){return _getPrototypeOf$v=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$v(t)}function _defineProperty$v(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var EraParser=function(t){_inherits$u(n,t);var r=_createSuper$u(n);function n(){var o;_classCallCheck$u(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$v(_assertThisInitialized$u(o),"priority",140),_defineProperty$v(_assertThisInitialized$u(o),"incompatibleTokens",["R","u","t","T"]),o}return _createClass$u(n,[{key:"parse",value:function(s,l,d){switch(l){case"G":case"GG":case"GGG":return d.era(s,{width:"abbreviated"})||d.era(s,{width:"narrow"});case"GGGGG":return d.era(s,{width:"narrow"});case"GGGG":default:return d.era(s,{width:"wide"})||d.era(s,{width:"abbreviated"})||d.era(s,{width:"narrow"})}}},{key:"set",value:function(s,l,d){return l.era=d,s.setUTCFullYear(d,0,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1),numericPatterns={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}/},timezonePatterns={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 mapValue(t,r){return t&&{value:r(t.value),rest:t.rest}}function parseNumericPattern(t,r){var n=r.match(t);return n?{value:parseInt(n[0],10),rest:r.slice(n[0].length)}:null}function parseTimezonePattern(t,r){var n=r.match(t);if(!n)return null;if(n[0]==="Z")return{value:0,rest:r.slice(1)};var o=n[1]==="+"?1:-1,s=n[2]?parseInt(n[2],10):0,l=n[3]?parseInt(n[3],10):0,d=n[5]?parseInt(n[5],10):0;return{value:o*(s*millisecondsInHour+l*millisecondsInMinute+d*millisecondsInSecond),rest:r.slice(n[0].length)}}function parseAnyDigitsSigned(t){return parseNumericPattern(numericPatterns.anyDigitsSigned,t)}function parseNDigits(t,r){switch(t){case 1:return parseNumericPattern(numericPatterns.singleDigit,r);case 2:return parseNumericPattern(numericPatterns.twoDigits,r);case 3:return parseNumericPattern(numericPatterns.threeDigits,r);case 4:return parseNumericPattern(numericPatterns.fourDigits,r);default:return parseNumericPattern(new RegExp("^\\d{1,"+t+"}"),r)}}function parseNDigitsSigned(t,r){switch(t){case 1:return parseNumericPattern(numericPatterns.singleDigitSigned,r);case 2:return parseNumericPattern(numericPatterns.twoDigitsSigned,r);case 3:return parseNumericPattern(numericPatterns.threeDigitsSigned,r);case 4:return parseNumericPattern(numericPatterns.fourDigitsSigned,r);default:return parseNumericPattern(new RegExp("^-?\\d{1,"+t+"}"),r)}}function dayPeriodEnumToHours(t){switch(t){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 normalizeTwoDigitYear(t,r){var n=r>0,o=n?r:1-r,s;if(o<=50)s=t||100;else{var l=o+50,d=Math.floor(l/100)*100,g=t>=l%100;s=t+d-(g?100:0)}return n?s:1-s}function isLeapYearIndex$1(t){return t%400===0||t%4===0&&t%100!==0}function _typeof$v(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$v=function(n){return typeof n}:_typeof$v=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$v(t)}function _classCallCheck$t(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$t(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$t(t,r,n){return r&&_defineProperties$t(t.prototype,r),n&&_defineProperties$t(t,n),t}function _inherits$t(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$u(t,r)}function _setPrototypeOf$u(t,r){return _setPrototypeOf$u=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$u(t,r)}function _createSuper$t(t){var r=_isNativeReflectConstruct$u();return function(){var o=_getPrototypeOf$u(t),s;if(r){var l=_getPrototypeOf$u(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$t(this,s)}}function _possibleConstructorReturn$t(t,r){return r&&(_typeof$v(r)==="object"||typeof r=="function")?r:_assertThisInitialized$t(t)}function _assertThisInitialized$t(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$u(){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(t){return!1}}function _getPrototypeOf$u(t){return _getPrototypeOf$u=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$u(t)}function _defineProperty$u(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var YearParser=function(t){_inherits$t(n,t);var r=_createSuper$t(n);function n(){var o;_classCallCheck$t(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$u(_assertThisInitialized$t(o),"priority",130),_defineProperty$u(_assertThisInitialized$t(o),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),o}return _createClass$t(n,[{key:"parse",value:function(s,l,d){var g=function(b){return{year:b,isTwoDigitYear:l==="yy"}};switch(l){case"y":return mapValue(parseNDigits(4,s),g);case"yo":return mapValue(d.ordinalNumber(s,{unit:"year"}),g);default:return mapValue(parseNDigits(l.length,s),g)}}},{key:"validate",value:function(s,l){return l.isTwoDigitYear||l.year>0}},{key:"set",value:function(s,l,d){var g=s.getUTCFullYear();if(d.isTwoDigitYear){var y=normalizeTwoDigitYear(d.year,g);return s.setUTCFullYear(y,0,1),s.setUTCHours(0,0,0,0),s}var b=!("era"in l)||l.era===1?d.year:1-d.year;return s.setUTCFullYear(b,0,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$u(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$u=function(n){return typeof n}:_typeof$u=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$u(t)}function _classCallCheck$s(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$s(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$s(t,r,n){return r&&_defineProperties$s(t.prototype,r),n&&_defineProperties$s(t,n),t}function _inherits$s(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$t(t,r)}function _setPrototypeOf$t(t,r){return _setPrototypeOf$t=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$t(t,r)}function _createSuper$s(t){var r=_isNativeReflectConstruct$t();return function(){var o=_getPrototypeOf$t(t),s;if(r){var l=_getPrototypeOf$t(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$s(this,s)}}function _possibleConstructorReturn$s(t,r){return r&&(_typeof$u(r)==="object"||typeof r=="function")?r:_assertThisInitialized$s(t)}function _assertThisInitialized$s(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$t(){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(t){return!1}}function _getPrototypeOf$t(t){return _getPrototypeOf$t=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$t(t)}function _defineProperty$t(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var LocalWeekYearParser=function(t){_inherits$s(n,t);var r=_createSuper$s(n);function n(){var o;_classCallCheck$s(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$t(_assertThisInitialized$s(o),"priority",130),_defineProperty$t(_assertThisInitialized$s(o),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),o}return _createClass$s(n,[{key:"parse",value:function(s,l,d){var g=function(b){return{year:b,isTwoDigitYear:l==="YY"}};switch(l){case"Y":return mapValue(parseNDigits(4,s),g);case"Yo":return mapValue(d.ordinalNumber(s,{unit:"year"}),g);default:return mapValue(parseNDigits(l.length,s),g)}}},{key:"validate",value:function(s,l){return l.isTwoDigitYear||l.year>0}},{key:"set",value:function(s,l,d,g){var y=getUTCWeekYear$1(s,g);if(d.isTwoDigitYear){var b=normalizeTwoDigitYear(d.year,y);return s.setUTCFullYear(b,0,g.firstWeekContainsDate),s.setUTCHours(0,0,0,0),startOfUTCWeek$1(s,g)}var C=!("era"in l)||l.era===1?d.year:1-d.year;return s.setUTCFullYear(C,0,g.firstWeekContainsDate),s.setUTCHours(0,0,0,0),startOfUTCWeek$1(s,g)}}]),n}(Parser$1);function _typeof$t(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$t=function(n){return typeof n}:_typeof$t=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$t(t)}function _classCallCheck$r(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$r(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$r(t,r,n){return r&&_defineProperties$r(t.prototype,r),n&&_defineProperties$r(t,n),t}function _inherits$r(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$s(t,r)}function _setPrototypeOf$s(t,r){return _setPrototypeOf$s=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$s(t,r)}function _createSuper$r(t){var r=_isNativeReflectConstruct$s();return function(){var o=_getPrototypeOf$s(t),s;if(r){var l=_getPrototypeOf$s(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$r(this,s)}}function _possibleConstructorReturn$r(t,r){return r&&(_typeof$t(r)==="object"||typeof r=="function")?r:_assertThisInitialized$r(t)}function _assertThisInitialized$r(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$s(){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(t){return!1}}function _getPrototypeOf$s(t){return _getPrototypeOf$s=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$s(t)}function _defineProperty$s(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ISOWeekYearParser=function(t){_inherits$r(n,t);var r=_createSuper$r(n);function n(){var o;_classCallCheck$r(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$s(_assertThisInitialized$r(o),"priority",130),_defineProperty$s(_assertThisInitialized$r(o),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),o}return _createClass$r(n,[{key:"parse",value:function(s,l){return parseNDigitsSigned(l==="R"?4:l.length,s)}},{key:"set",value:function(s,l,d){var g=new Date(0);return g.setUTCFullYear(d,0,4),g.setUTCHours(0,0,0,0),startOfUTCISOWeek$1(g)}}]),n}(Parser$1);function _typeof$s(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$s=function(n){return typeof n}:_typeof$s=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$s(t)}function _classCallCheck$q(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$q(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$q(t,r,n){return r&&_defineProperties$q(t.prototype,r),n&&_defineProperties$q(t,n),t}function _inherits$q(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$r(t,r)}function _setPrototypeOf$r(t,r){return _setPrototypeOf$r=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$r(t,r)}function _createSuper$q(t){var r=_isNativeReflectConstruct$r();return function(){var o=_getPrototypeOf$r(t),s;if(r){var l=_getPrototypeOf$r(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$q(this,s)}}function _possibleConstructorReturn$q(t,r){return r&&(_typeof$s(r)==="object"||typeof r=="function")?r:_assertThisInitialized$q(t)}function _assertThisInitialized$q(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$r(){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(t){return!1}}function _getPrototypeOf$r(t){return _getPrototypeOf$r=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$r(t)}function _defineProperty$r(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ExtendedYearParser=function(t){_inherits$q(n,t);var r=_createSuper$q(n);function n(){var o;_classCallCheck$q(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$r(_assertThisInitialized$q(o),"priority",130),_defineProperty$r(_assertThisInitialized$q(o),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),o}return _createClass$q(n,[{key:"parse",value:function(s,l){return parseNDigitsSigned(l==="u"?4:l.length,s)}},{key:"set",value:function(s,l,d){return s.setUTCFullYear(d,0,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$r(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$r=function(n){return typeof n}:_typeof$r=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$r(t)}function _classCallCheck$p(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$p(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$p(t,r,n){return r&&_defineProperties$p(t.prototype,r),n&&_defineProperties$p(t,n),t}function _inherits$p(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$q(t,r)}function _setPrototypeOf$q(t,r){return _setPrototypeOf$q=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$q(t,r)}function _createSuper$p(t){var r=_isNativeReflectConstruct$q();return function(){var o=_getPrototypeOf$q(t),s;if(r){var l=_getPrototypeOf$q(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$p(this,s)}}function _possibleConstructorReturn$p(t,r){return r&&(_typeof$r(r)==="object"||typeof r=="function")?r:_assertThisInitialized$p(t)}function _assertThisInitialized$p(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$q(){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(t){return!1}}function _getPrototypeOf$q(t){return _getPrototypeOf$q=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$q(t)}function _defineProperty$q(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var QuarterParser=function(t){_inherits$p(n,t);var r=_createSuper$p(n);function n(){var o;_classCallCheck$p(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$q(_assertThisInitialized$p(o),"priority",120),_defineProperty$q(_assertThisInitialized$p(o),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),o}return _createClass$p(n,[{key:"parse",value:function(s,l,d){switch(l){case"Q":case"QQ":return parseNDigits(l.length,s);case"Qo":return d.ordinalNumber(s,{unit:"quarter"});case"QQQ":return d.quarter(s,{width:"abbreviated",context:"formatting"})||d.quarter(s,{width:"narrow",context:"formatting"});case"QQQQQ":return d.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return d.quarter(s,{width:"wide",context:"formatting"})||d.quarter(s,{width:"abbreviated",context:"formatting"})||d.quarter(s,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(s,l){return l>=1&&l<=4}},{key:"set",value:function(s,l,d){return s.setUTCMonth((d-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$q(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$q=function(n){return typeof n}:_typeof$q=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$q(t)}function _classCallCheck$o(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$o(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$o(t,r,n){return r&&_defineProperties$o(t.prototype,r),n&&_defineProperties$o(t,n),t}function _inherits$o(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$p(t,r)}function _setPrototypeOf$p(t,r){return _setPrototypeOf$p=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$p(t,r)}function _createSuper$o(t){var r=_isNativeReflectConstruct$p();return function(){var o=_getPrototypeOf$p(t),s;if(r){var l=_getPrototypeOf$p(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$o(this,s)}}function _possibleConstructorReturn$o(t,r){return r&&(_typeof$q(r)==="object"||typeof r=="function")?r:_assertThisInitialized$o(t)}function _assertThisInitialized$o(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$p(){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(t){return!1}}function _getPrototypeOf$p(t){return _getPrototypeOf$p=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$p(t)}function _defineProperty$p(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var StandAloneQuarterParser=function(t){_inherits$o(n,t);var r=_createSuper$o(n);function n(){var o;_classCallCheck$o(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$p(_assertThisInitialized$o(o),"priority",120),_defineProperty$p(_assertThisInitialized$o(o),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),o}return _createClass$o(n,[{key:"parse",value:function(s,l,d){switch(l){case"q":case"qq":return parseNDigits(l.length,s);case"qo":return d.ordinalNumber(s,{unit:"quarter"});case"qqq":return d.quarter(s,{width:"abbreviated",context:"standalone"})||d.quarter(s,{width:"narrow",context:"standalone"});case"qqqqq":return d.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return d.quarter(s,{width:"wide",context:"standalone"})||d.quarter(s,{width:"abbreviated",context:"standalone"})||d.quarter(s,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(s,l){return l>=1&&l<=4}},{key:"set",value:function(s,l,d){return s.setUTCMonth((d-1)*3,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$p(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$p=function(n){return typeof n}:_typeof$p=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$p(t)}function _classCallCheck$n(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$n(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$n(t,r,n){return r&&_defineProperties$n(t.prototype,r),n&&_defineProperties$n(t,n),t}function _inherits$n(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$o(t,r)}function _setPrototypeOf$o(t,r){return _setPrototypeOf$o=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$o(t,r)}function _createSuper$n(t){var r=_isNativeReflectConstruct$o();return function(){var o=_getPrototypeOf$o(t),s;if(r){var l=_getPrototypeOf$o(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$n(this,s)}}function _possibleConstructorReturn$n(t,r){return r&&(_typeof$p(r)==="object"||typeof r=="function")?r:_assertThisInitialized$n(t)}function _assertThisInitialized$n(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$o(){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(t){return!1}}function _getPrototypeOf$o(t){return _getPrototypeOf$o=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$o(t)}function _defineProperty$o(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var MonthParser=function(t){_inherits$n(n,t);var r=_createSuper$n(n);function n(){var o;_classCallCheck$n(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$o(_assertThisInitialized$n(o),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),_defineProperty$o(_assertThisInitialized$n(o),"priority",110),o}return _createClass$n(n,[{key:"parse",value:function(s,l,d){var g=function(b){return b-1};switch(l){case"M":return mapValue(parseNumericPattern(numericPatterns.month,s),g);case"MM":return mapValue(parseNDigits(2,s),g);case"Mo":return mapValue(d.ordinalNumber(s,{unit:"month"}),g);case"MMM":return d.month(s,{width:"abbreviated",context:"formatting"})||d.month(s,{width:"narrow",context:"formatting"});case"MMMMM":return d.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return d.month(s,{width:"wide",context:"formatting"})||d.month(s,{width:"abbreviated",context:"formatting"})||d.month(s,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(s,l){return l>=0&&l<=11}},{key:"set",value:function(s,l,d){return s.setUTCMonth(d,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$o(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$o=function(n){return typeof n}:_typeof$o=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$o(t)}function _classCallCheck$m(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$m(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$m(t,r,n){return r&&_defineProperties$m(t.prototype,r),n&&_defineProperties$m(t,n),t}function _inherits$m(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$n(t,r)}function _setPrototypeOf$n(t,r){return _setPrototypeOf$n=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$n(t,r)}function _createSuper$m(t){var r=_isNativeReflectConstruct$n();return function(){var o=_getPrototypeOf$n(t),s;if(r){var l=_getPrototypeOf$n(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$m(this,s)}}function _possibleConstructorReturn$m(t,r){return r&&(_typeof$o(r)==="object"||typeof r=="function")?r:_assertThisInitialized$m(t)}function _assertThisInitialized$m(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$n(){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(t){return!1}}function _getPrototypeOf$n(t){return _getPrototypeOf$n=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$n(t)}function _defineProperty$n(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var StandAloneMonthParser=function(t){_inherits$m(n,t);var r=_createSuper$m(n);function n(){var o;_classCallCheck$m(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$n(_assertThisInitialized$m(o),"priority",110),_defineProperty$n(_assertThisInitialized$m(o),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),o}return _createClass$m(n,[{key:"parse",value:function(s,l,d){var g=function(b){return b-1};switch(l){case"L":return mapValue(parseNumericPattern(numericPatterns.month,s),g);case"LL":return mapValue(parseNDigits(2,s),g);case"Lo":return mapValue(d.ordinalNumber(s,{unit:"month"}),g);case"LLL":return d.month(s,{width:"abbreviated",context:"standalone"})||d.month(s,{width:"narrow",context:"standalone"});case"LLLLL":return d.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return d.month(s,{width:"wide",context:"standalone"})||d.month(s,{width:"abbreviated",context:"standalone"})||d.month(s,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(s,l){return l>=0&&l<=11}},{key:"set",value:function(s,l,d){return s.setUTCMonth(d,1),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function setUTCWeek(t,r,n){requiredArgs$1(2,arguments);var o=toDate$2(t),s=toInteger$2(r),l=getUTCWeek$1(o,n)-s;return o.setUTCDate(o.getUTCDate()-l*7),o}function _typeof$n(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$n=function(n){return typeof n}:_typeof$n=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$n(t)}function _classCallCheck$l(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$l(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$l(t,r,n){return r&&_defineProperties$l(t.prototype,r),n&&_defineProperties$l(t,n),t}function _inherits$l(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$m(t,r)}function _setPrototypeOf$m(t,r){return _setPrototypeOf$m=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$m(t,r)}function _createSuper$l(t){var r=_isNativeReflectConstruct$m();return function(){var o=_getPrototypeOf$m(t),s;if(r){var l=_getPrototypeOf$m(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$l(this,s)}}function _possibleConstructorReturn$l(t,r){return r&&(_typeof$n(r)==="object"||typeof r=="function")?r:_assertThisInitialized$l(t)}function _assertThisInitialized$l(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$m(){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(t){return!1}}function _getPrototypeOf$m(t){return _getPrototypeOf$m=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$m(t)}function _defineProperty$m(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var LocalWeekParser=function(t){_inherits$l(n,t);var r=_createSuper$l(n);function n(){var o;_classCallCheck$l(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$m(_assertThisInitialized$l(o),"priority",100),_defineProperty$m(_assertThisInitialized$l(o),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),o}return _createClass$l(n,[{key:"parse",value:function(s,l,d){switch(l){case"w":return parseNumericPattern(numericPatterns.week,s);case"wo":return d.ordinalNumber(s,{unit:"week"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=1&&l<=53}},{key:"set",value:function(s,l,d,g){return startOfUTCWeek$1(setUTCWeek(s,d,g),g)}}]),n}(Parser$1);function setUTCISOWeek(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r),s=getUTCISOWeek$1(n)-o;return n.setUTCDate(n.getUTCDate()-s*7),n}function _typeof$m(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$m=function(n){return typeof n}:_typeof$m=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$m(t)}function _classCallCheck$k(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$k(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$k(t,r,n){return r&&_defineProperties$k(t.prototype,r),n&&_defineProperties$k(t,n),t}function _inherits$k(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$l(t,r)}function _setPrototypeOf$l(t,r){return _setPrototypeOf$l=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$l(t,r)}function _createSuper$k(t){var r=_isNativeReflectConstruct$l();return function(){var o=_getPrototypeOf$l(t),s;if(r){var l=_getPrototypeOf$l(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$k(this,s)}}function _possibleConstructorReturn$k(t,r){return r&&(_typeof$m(r)==="object"||typeof r=="function")?r:_assertThisInitialized$k(t)}function _assertThisInitialized$k(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$l(){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(t){return!1}}function _getPrototypeOf$l(t){return _getPrototypeOf$l=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$l(t)}function _defineProperty$l(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ISOWeekParser=function(t){_inherits$k(n,t);var r=_createSuper$k(n);function n(){var o;_classCallCheck$k(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$l(_assertThisInitialized$k(o),"priority",100),_defineProperty$l(_assertThisInitialized$k(o),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),o}return _createClass$k(n,[{key:"parse",value:function(s,l,d){switch(l){case"I":return parseNumericPattern(numericPatterns.week,s);case"Io":return d.ordinalNumber(s,{unit:"week"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=1&&l<=53}},{key:"set",value:function(s,l,d){return startOfUTCISOWeek$1(setUTCISOWeek(s,d))}}]),n}(Parser$1);function _typeof$l(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$l=function(n){return typeof n}:_typeof$l=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$l(t)}function _classCallCheck$j(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$j(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$j(t,r,n){return r&&_defineProperties$j(t.prototype,r),n&&_defineProperties$j(t,n),t}function _inherits$j(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$k(t,r)}function _setPrototypeOf$k(t,r){return _setPrototypeOf$k=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$k(t,r)}function _createSuper$j(t){var r=_isNativeReflectConstruct$k();return function(){var o=_getPrototypeOf$k(t),s;if(r){var l=_getPrototypeOf$k(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$j(this,s)}}function _possibleConstructorReturn$j(t,r){return r&&(_typeof$l(r)==="object"||typeof r=="function")?r:_assertThisInitialized$j(t)}function _assertThisInitialized$j(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$k(){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(t){return!1}}function _getPrototypeOf$k(t){return _getPrototypeOf$k=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$k(t)}function _defineProperty$k(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var DAYS_IN_MONTH$1=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR$1=[31,29,31,30,31,30,31,31,30,31,30,31],DateParser=function(t){_inherits$j(n,t);var r=_createSuper$j(n);function n(){var o;_classCallCheck$j(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$k(_assertThisInitialized$j(o),"priority",90),_defineProperty$k(_assertThisInitialized$j(o),"subPriority",1),_defineProperty$k(_assertThisInitialized$j(o),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),o}return _createClass$j(n,[{key:"parse",value:function(s,l,d){switch(l){case"d":return parseNumericPattern(numericPatterns.date,s);case"do":return d.ordinalNumber(s,{unit:"date"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){var d=s.getUTCFullYear(),g=isLeapYearIndex$1(d),y=s.getUTCMonth();return g?l>=1&&l<=DAYS_IN_MONTH_LEAP_YEAR$1[y]:l>=1&&l<=DAYS_IN_MONTH$1[y]}},{key:"set",value:function(s,l,d){return s.setUTCDate(d),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$k(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$k=function(n){return typeof n}:_typeof$k=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$k(t)}function _classCallCheck$i(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$i(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$i(t,r,n){return r&&_defineProperties$i(t.prototype,r),n&&_defineProperties$i(t,n),t}function _inherits$i(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$j(t,r)}function _setPrototypeOf$j(t,r){return _setPrototypeOf$j=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$j(t,r)}function _createSuper$i(t){var r=_isNativeReflectConstruct$j();return function(){var o=_getPrototypeOf$j(t),s;if(r){var l=_getPrototypeOf$j(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$i(this,s)}}function _possibleConstructorReturn$i(t,r){return r&&(_typeof$k(r)==="object"||typeof r=="function")?r:_assertThisInitialized$i(t)}function _assertThisInitialized$i(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$j(){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(t){return!1}}function _getPrototypeOf$j(t){return _getPrototypeOf$j=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$j(t)}function _defineProperty$j(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var DayOfYearParser=function(t){_inherits$i(n,t);var r=_createSuper$i(n);function n(){var o;_classCallCheck$i(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$j(_assertThisInitialized$i(o),"priority",90),_defineProperty$j(_assertThisInitialized$i(o),"subpriority",1),_defineProperty$j(_assertThisInitialized$i(o),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),o}return _createClass$i(n,[{key:"parse",value:function(s,l,d){switch(l){case"D":case"DD":return parseNumericPattern(numericPatterns.dayOfYear,s);case"Do":return d.ordinalNumber(s,{unit:"date"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){var d=s.getUTCFullYear(),g=isLeapYearIndex$1(d);return g?l>=1&&l<=366:l>=1&&l<=365}},{key:"set",value:function(s,l,d){return s.setUTCMonth(0,d),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function setUTCDay(t,r,n){var o,s,l,d,g,y,b,C;requiredArgs$1(2,arguments);var x=getDefaultOptions$1(),S=toInteger$2((o=(s=(l=(d=n==null?void 0:n.weekStartsOn)!==null&&d!==void 0?d:n==null||(g=n.locale)===null||g===void 0||(y=g.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&l!==void 0?l:x.weekStartsOn)!==null&&s!==void 0?s:(b=x.locale)===null||b===void 0||(C=b.options)===null||C===void 0?void 0:C.weekStartsOn)!==null&&o!==void 0?o:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=toDate$2(t),w=toInteger$2(r),$=_.getUTCDay(),I=w%7,B=(I+7)%7,R=(B<S?7:0)+w-$;return _.setUTCDate(_.getUTCDate()+R),_}function _typeof$j(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$j=function(n){return typeof n}:_typeof$j=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$j(t)}function _classCallCheck$h(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$h(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$h(t,r,n){return r&&_defineProperties$h(t.prototype,r),n&&_defineProperties$h(t,n),t}function _inherits$h(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$i(t,r)}function _setPrototypeOf$i(t,r){return _setPrototypeOf$i=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$i(t,r)}function _createSuper$h(t){var r=_isNativeReflectConstruct$i();return function(){var o=_getPrototypeOf$i(t),s;if(r){var l=_getPrototypeOf$i(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$h(this,s)}}function _possibleConstructorReturn$h(t,r){return r&&(_typeof$j(r)==="object"||typeof r=="function")?r:_assertThisInitialized$h(t)}function _assertThisInitialized$h(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$i(){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(t){return!1}}function _getPrototypeOf$i(t){return _getPrototypeOf$i=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$i(t)}function _defineProperty$i(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var DayParser=function(t){_inherits$h(n,t);var r=_createSuper$h(n);function n(){var o;_classCallCheck$h(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$i(_assertThisInitialized$h(o),"priority",90),_defineProperty$i(_assertThisInitialized$h(o),"incompatibleTokens",["D","i","e","c","t","T"]),o}return _createClass$h(n,[{key:"parse",value:function(s,l,d){switch(l){case"E":case"EE":case"EEE":return d.day(s,{width:"abbreviated",context:"formatting"})||d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"});case"EEEEE":return d.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"});case"EEEE":default:return d.day(s,{width:"wide",context:"formatting"})||d.day(s,{width:"abbreviated",context:"formatting"})||d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(s,l){return l>=0&&l<=6}},{key:"set",value:function(s,l,d,g){return s=setUTCDay(s,d,g),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$i(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$i=function(n){return typeof n}:_typeof$i=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$i(t)}function _classCallCheck$g(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$g(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$g(t,r,n){return r&&_defineProperties$g(t.prototype,r),n&&_defineProperties$g(t,n),t}function _inherits$g(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$h(t,r)}function _setPrototypeOf$h(t,r){return _setPrototypeOf$h=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$h(t,r)}function _createSuper$g(t){var r=_isNativeReflectConstruct$h();return function(){var o=_getPrototypeOf$h(t),s;if(r){var l=_getPrototypeOf$h(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$g(this,s)}}function _possibleConstructorReturn$g(t,r){return r&&(_typeof$i(r)==="object"||typeof r=="function")?r:_assertThisInitialized$g(t)}function _assertThisInitialized$g(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$h(){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(t){return!1}}function _getPrototypeOf$h(t){return _getPrototypeOf$h=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$h(t)}function _defineProperty$h(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var LocalDayParser=function(t){_inherits$g(n,t);var r=_createSuper$g(n);function n(){var o;_classCallCheck$g(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$h(_assertThisInitialized$g(o),"priority",90),_defineProperty$h(_assertThisInitialized$g(o),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),o}return _createClass$g(n,[{key:"parse",value:function(s,l,d,g){var y=function(C){var x=Math.floor((C-1)/7)*7;return(C+g.weekStartsOn+6)%7+x};switch(l){case"e":case"ee":return mapValue(parseNDigits(l.length,s),y);case"eo":return mapValue(d.ordinalNumber(s,{unit:"day"}),y);case"eee":return d.day(s,{width:"abbreviated",context:"formatting"})||d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"});case"eeeee":return d.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"});case"eeee":default:return d.day(s,{width:"wide",context:"formatting"})||d.day(s,{width:"abbreviated",context:"formatting"})||d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(s,l){return l>=0&&l<=6}},{key:"set",value:function(s,l,d,g){return s=setUTCDay(s,d,g),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$h(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$h=function(n){return typeof n}:_typeof$h=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$h(t)}function _classCallCheck$f(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$f(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$f(t,r,n){return r&&_defineProperties$f(t.prototype,r),n&&_defineProperties$f(t,n),t}function _inherits$f(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$g(t,r)}function _setPrototypeOf$g(t,r){return _setPrototypeOf$g=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$g(t,r)}function _createSuper$f(t){var r=_isNativeReflectConstruct$g();return function(){var o=_getPrototypeOf$g(t),s;if(r){var l=_getPrototypeOf$g(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$f(this,s)}}function _possibleConstructorReturn$f(t,r){return r&&(_typeof$h(r)==="object"||typeof r=="function")?r:_assertThisInitialized$f(t)}function _assertThisInitialized$f(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$g(){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(t){return!1}}function _getPrototypeOf$g(t){return _getPrototypeOf$g=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$g(t)}function _defineProperty$g(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var StandAloneLocalDayParser=function(t){_inherits$f(n,t);var r=_createSuper$f(n);function n(){var o;_classCallCheck$f(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$g(_assertThisInitialized$f(o),"priority",90),_defineProperty$g(_assertThisInitialized$f(o),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),o}return _createClass$f(n,[{key:"parse",value:function(s,l,d,g){var y=function(C){var x=Math.floor((C-1)/7)*7;return(C+g.weekStartsOn+6)%7+x};switch(l){case"c":case"cc":return mapValue(parseNDigits(l.length,s),y);case"co":return mapValue(d.ordinalNumber(s,{unit:"day"}),y);case"ccc":return d.day(s,{width:"abbreviated",context:"standalone"})||d.day(s,{width:"short",context:"standalone"})||d.day(s,{width:"narrow",context:"standalone"});case"ccccc":return d.day(s,{width:"narrow",context:"standalone"});case"cccccc":return d.day(s,{width:"short",context:"standalone"})||d.day(s,{width:"narrow",context:"standalone"});case"cccc":default:return d.day(s,{width:"wide",context:"standalone"})||d.day(s,{width:"abbreviated",context:"standalone"})||d.day(s,{width:"short",context:"standalone"})||d.day(s,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(s,l){return l>=0&&l<=6}},{key:"set",value:function(s,l,d,g){return s=setUTCDay(s,d,g),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function setUTCISODay(t,r){requiredArgs$1(2,arguments);var n=toInteger$2(r);n%7===0&&(n=n-7);var o=1,s=toDate$2(t),l=s.getUTCDay(),d=n%7,g=(d+7)%7,y=(g<o?7:0)+n-l;return s.setUTCDate(s.getUTCDate()+y),s}function _typeof$g(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$g=function(n){return typeof n}:_typeof$g=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$g(t)}function _classCallCheck$e(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$e(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$e(t,r,n){return r&&_defineProperties$e(t.prototype,r),n&&_defineProperties$e(t,n),t}function _inherits$e(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$f(t,r)}function _setPrototypeOf$f(t,r){return _setPrototypeOf$f=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$f(t,r)}function _createSuper$e(t){var r=_isNativeReflectConstruct$f();return function(){var o=_getPrototypeOf$f(t),s;if(r){var l=_getPrototypeOf$f(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$e(this,s)}}function _possibleConstructorReturn$e(t,r){return r&&(_typeof$g(r)==="object"||typeof r=="function")?r:_assertThisInitialized$e(t)}function _assertThisInitialized$e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$f(){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(t){return!1}}function _getPrototypeOf$f(t){return _getPrototypeOf$f=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$f(t)}function _defineProperty$f(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ISODayParser=function(t){_inherits$e(n,t);var r=_createSuper$e(n);function n(){var o;_classCallCheck$e(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$f(_assertThisInitialized$e(o),"priority",90),_defineProperty$f(_assertThisInitialized$e(o),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),o}return _createClass$e(n,[{key:"parse",value:function(s,l,d){var g=function(b){return b===0?7:b};switch(l){case"i":case"ii":return parseNDigits(l.length,s);case"io":return d.ordinalNumber(s,{unit:"day"});case"iii":return mapValue(d.day(s,{width:"abbreviated",context:"formatting"})||d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"}),g);case"iiiii":return mapValue(d.day(s,{width:"narrow",context:"formatting"}),g);case"iiiiii":return mapValue(d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"}),g);case"iiii":default:return mapValue(d.day(s,{width:"wide",context:"formatting"})||d.day(s,{width:"abbreviated",context:"formatting"})||d.day(s,{width:"short",context:"formatting"})||d.day(s,{width:"narrow",context:"formatting"}),g)}}},{key:"validate",value:function(s,l){return l>=1&&l<=7}},{key:"set",value:function(s,l,d){return s=setUTCISODay(s,d),s.setUTCHours(0,0,0,0),s}}]),n}(Parser$1);function _typeof$f(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$f=function(n){return typeof n}:_typeof$f=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$f(t)}function _classCallCheck$d(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$d(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$d(t,r,n){return r&&_defineProperties$d(t.prototype,r),n&&_defineProperties$d(t,n),t}function _inherits$d(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$e(t,r)}function _setPrototypeOf$e(t,r){return _setPrototypeOf$e=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$e(t,r)}function _createSuper$d(t){var r=_isNativeReflectConstruct$e();return function(){var o=_getPrototypeOf$e(t),s;if(r){var l=_getPrototypeOf$e(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$d(this,s)}}function _possibleConstructorReturn$d(t,r){return r&&(_typeof$f(r)==="object"||typeof r=="function")?r:_assertThisInitialized$d(t)}function _assertThisInitialized$d(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$e(){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(t){return!1}}function _getPrototypeOf$e(t){return _getPrototypeOf$e=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$e(t)}function _defineProperty$e(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var AMPMParser=function(t){_inherits$d(n,t);var r=_createSuper$d(n);function n(){var o;_classCallCheck$d(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$e(_assertThisInitialized$d(o),"priority",80),_defineProperty$e(_assertThisInitialized$d(o),"incompatibleTokens",["b","B","H","k","t","T"]),o}return _createClass$d(n,[{key:"parse",value:function(s,l,d){switch(l){case"a":case"aa":case"aaa":return d.dayPeriod(s,{width:"abbreviated",context:"formatting"})||d.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaaa":return d.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return d.dayPeriod(s,{width:"wide",context:"formatting"})||d.dayPeriod(s,{width:"abbreviated",context:"formatting"})||d.dayPeriod(s,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(s,l,d){return s.setUTCHours(dayPeriodEnumToHours(d),0,0,0),s}}]),n}(Parser$1);function _typeof$e(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$e=function(n){return typeof n}:_typeof$e=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$e(t)}function _classCallCheck$c(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$c(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$c(t,r,n){return r&&_defineProperties$c(t.prototype,r),n&&_defineProperties$c(t,n),t}function _inherits$c(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$d(t,r)}function _setPrototypeOf$d(t,r){return _setPrototypeOf$d=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$d(t,r)}function _createSuper$c(t){var r=_isNativeReflectConstruct$d();return function(){var o=_getPrototypeOf$d(t),s;if(r){var l=_getPrototypeOf$d(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$c(this,s)}}function _possibleConstructorReturn$c(t,r){return r&&(_typeof$e(r)==="object"||typeof r=="function")?r:_assertThisInitialized$c(t)}function _assertThisInitialized$c(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$d(){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(t){return!1}}function _getPrototypeOf$d(t){return _getPrototypeOf$d=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$d(t)}function _defineProperty$d(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var AMPMMidnightParser=function(t){_inherits$c(n,t);var r=_createSuper$c(n);function n(){var o;_classCallCheck$c(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$d(_assertThisInitialized$c(o),"priority",80),_defineProperty$d(_assertThisInitialized$c(o),"incompatibleTokens",["a","B","H","k","t","T"]),o}return _createClass$c(n,[{key:"parse",value:function(s,l,d){switch(l){case"b":case"bb":case"bbb":return d.dayPeriod(s,{width:"abbreviated",context:"formatting"})||d.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbbb":return d.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return d.dayPeriod(s,{width:"wide",context:"formatting"})||d.dayPeriod(s,{width:"abbreviated",context:"formatting"})||d.dayPeriod(s,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(s,l,d){return s.setUTCHours(dayPeriodEnumToHours(d),0,0,0),s}}]),n}(Parser$1);function _typeof$d(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$d=function(n){return typeof n}:_typeof$d=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$d(t)}function _classCallCheck$b(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$b(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$b(t,r,n){return r&&_defineProperties$b(t.prototype,r),n&&_defineProperties$b(t,n),t}function _inherits$b(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$c(t,r)}function _setPrototypeOf$c(t,r){return _setPrototypeOf$c=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$c(t,r)}function _createSuper$b(t){var r=_isNativeReflectConstruct$c();return function(){var o=_getPrototypeOf$c(t),s;if(r){var l=_getPrototypeOf$c(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$b(this,s)}}function _possibleConstructorReturn$b(t,r){return r&&(_typeof$d(r)==="object"||typeof r=="function")?r:_assertThisInitialized$b(t)}function _assertThisInitialized$b(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$c(){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(t){return!1}}function _getPrototypeOf$c(t){return _getPrototypeOf$c=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$c(t)}function _defineProperty$c(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var DayPeriodParser=function(t){_inherits$b(n,t);var r=_createSuper$b(n);function n(){var o;_classCallCheck$b(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$c(_assertThisInitialized$b(o),"priority",80),_defineProperty$c(_assertThisInitialized$b(o),"incompatibleTokens",["a","b","t","T"]),o}return _createClass$b(n,[{key:"parse",value:function(s,l,d){switch(l){case"B":case"BB":case"BBB":return d.dayPeriod(s,{width:"abbreviated",context:"formatting"})||d.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBBB":return d.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return d.dayPeriod(s,{width:"wide",context:"formatting"})||d.dayPeriod(s,{width:"abbreviated",context:"formatting"})||d.dayPeriod(s,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(s,l,d){return s.setUTCHours(dayPeriodEnumToHours(d),0,0,0),s}}]),n}(Parser$1);function _typeof$c(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$c=function(n){return typeof n}:_typeof$c=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$c(t)}function _classCallCheck$a(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$a(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$a(t,r,n){return r&&_defineProperties$a(t.prototype,r),n&&_defineProperties$a(t,n),t}function _inherits$a(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$b(t,r)}function _setPrototypeOf$b(t,r){return _setPrototypeOf$b=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$b(t,r)}function _createSuper$a(t){var r=_isNativeReflectConstruct$b();return function(){var o=_getPrototypeOf$b(t),s;if(r){var l=_getPrototypeOf$b(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$a(this,s)}}function _possibleConstructorReturn$a(t,r){return r&&(_typeof$c(r)==="object"||typeof r=="function")?r:_assertThisInitialized$a(t)}function _assertThisInitialized$a(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$b(){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(t){return!1}}function _getPrototypeOf$b(t){return _getPrototypeOf$b=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$b(t)}function _defineProperty$b(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Hour1to12Parser=function(t){_inherits$a(n,t);var r=_createSuper$a(n);function n(){var o;_classCallCheck$a(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$b(_assertThisInitialized$a(o),"priority",70),_defineProperty$b(_assertThisInitialized$a(o),"incompatibleTokens",["H","K","k","t","T"]),o}return _createClass$a(n,[{key:"parse",value:function(s,l,d){switch(l){case"h":return parseNumericPattern(numericPatterns.hour12h,s);case"ho":return d.ordinalNumber(s,{unit:"hour"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=1&&l<=12}},{key:"set",value:function(s,l,d){var g=s.getUTCHours()>=12;return g&&d<12?s.setUTCHours(d+12,0,0,0):!g&&d===12?s.setUTCHours(0,0,0,0):s.setUTCHours(d,0,0,0),s}}]),n}(Parser$1);function _typeof$b(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$b=function(n){return typeof n}:_typeof$b=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$b(t)}function _classCallCheck$9(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$9(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$9(t,r,n){return r&&_defineProperties$9(t.prototype,r),n&&_defineProperties$9(t,n),t}function _inherits$9(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$a(t,r)}function _setPrototypeOf$a(t,r){return _setPrototypeOf$a=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$a(t,r)}function _createSuper$9(t){var r=_isNativeReflectConstruct$a();return function(){var o=_getPrototypeOf$a(t),s;if(r){var l=_getPrototypeOf$a(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$9(this,s)}}function _possibleConstructorReturn$9(t,r){return r&&(_typeof$b(r)==="object"||typeof r=="function")?r:_assertThisInitialized$9(t)}function _assertThisInitialized$9(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$a(){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(t){return!1}}function _getPrototypeOf$a(t){return _getPrototypeOf$a=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$a(t)}function _defineProperty$a(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Hour0to23Parser=function(t){_inherits$9(n,t);var r=_createSuper$9(n);function n(){var o;_classCallCheck$9(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$a(_assertThisInitialized$9(o),"priority",70),_defineProperty$a(_assertThisInitialized$9(o),"incompatibleTokens",["a","b","h","K","k","t","T"]),o}return _createClass$9(n,[{key:"parse",value:function(s,l,d){switch(l){case"H":return parseNumericPattern(numericPatterns.hour23h,s);case"Ho":return d.ordinalNumber(s,{unit:"hour"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=0&&l<=23}},{key:"set",value:function(s,l,d){return s.setUTCHours(d,0,0,0),s}}]),n}(Parser$1);function _typeof$a(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$a=function(n){return typeof n}:_typeof$a=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$a(t)}function _classCallCheck$8(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$8(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$8(t,r,n){return r&&_defineProperties$8(t.prototype,r),n&&_defineProperties$8(t,n),t}function _inherits$8(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$9(t,r)}function _setPrototypeOf$9(t,r){return _setPrototypeOf$9=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$9(t,r)}function _createSuper$8(t){var r=_isNativeReflectConstruct$9();return function(){var o=_getPrototypeOf$9(t),s;if(r){var l=_getPrototypeOf$9(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$8(this,s)}}function _possibleConstructorReturn$8(t,r){return r&&(_typeof$a(r)==="object"||typeof r=="function")?r:_assertThisInitialized$8(t)}function _assertThisInitialized$8(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$9(){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(t){return!1}}function _getPrototypeOf$9(t){return _getPrototypeOf$9=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$9(t)}function _defineProperty$9(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Hour0To11Parser=function(t){_inherits$8(n,t);var r=_createSuper$8(n);function n(){var o;_classCallCheck$8(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$9(_assertThisInitialized$8(o),"priority",70),_defineProperty$9(_assertThisInitialized$8(o),"incompatibleTokens",["h","H","k","t","T"]),o}return _createClass$8(n,[{key:"parse",value:function(s,l,d){switch(l){case"K":return parseNumericPattern(numericPatterns.hour11h,s);case"Ko":return d.ordinalNumber(s,{unit:"hour"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=0&&l<=11}},{key:"set",value:function(s,l,d){var g=s.getUTCHours()>=12;return g&&d<12?s.setUTCHours(d+12,0,0,0):s.setUTCHours(d,0,0,0),s}}]),n}(Parser$1);function _typeof$9(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$9=function(n){return typeof n}:_typeof$9=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$9(t)}function _classCallCheck$7(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$7(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$7(t,r,n){return r&&_defineProperties$7(t.prototype,r),n&&_defineProperties$7(t,n),t}function _inherits$7(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$8(t,r)}function _setPrototypeOf$8(t,r){return _setPrototypeOf$8=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$8(t,r)}function _createSuper$7(t){var r=_isNativeReflectConstruct$8();return function(){var o=_getPrototypeOf$8(t),s;if(r){var l=_getPrototypeOf$8(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$7(this,s)}}function _possibleConstructorReturn$7(t,r){return r&&(_typeof$9(r)==="object"||typeof r=="function")?r:_assertThisInitialized$7(t)}function _assertThisInitialized$7(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$8(){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(t){return!1}}function _getPrototypeOf$8(t){return _getPrototypeOf$8=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$8(t)}function _defineProperty$8(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var Hour1To24Parser=function(t){_inherits$7(n,t);var r=_createSuper$7(n);function n(){var o;_classCallCheck$7(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$8(_assertThisInitialized$7(o),"priority",70),_defineProperty$8(_assertThisInitialized$7(o),"incompatibleTokens",["a","b","h","H","K","t","T"]),o}return _createClass$7(n,[{key:"parse",value:function(s,l,d){switch(l){case"k":return parseNumericPattern(numericPatterns.hour24h,s);case"ko":return d.ordinalNumber(s,{unit:"hour"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=1&&l<=24}},{key:"set",value:function(s,l,d){var g=d<=24?d%24:d;return s.setUTCHours(g,0,0,0),s}}]),n}(Parser$1);function _typeof$8(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$8=function(n){return typeof n}:_typeof$8=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$8(t)}function _classCallCheck$6(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$6(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$6(t,r,n){return r&&_defineProperties$6(t.prototype,r),n&&_defineProperties$6(t,n),t}function _inherits$6(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$7(t,r)}function _setPrototypeOf$7(t,r){return _setPrototypeOf$7=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$7(t,r)}function _createSuper$6(t){var r=_isNativeReflectConstruct$7();return function(){var o=_getPrototypeOf$7(t),s;if(r){var l=_getPrototypeOf$7(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$6(this,s)}}function _possibleConstructorReturn$6(t,r){return r&&(_typeof$8(r)==="object"||typeof r=="function")?r:_assertThisInitialized$6(t)}function _assertThisInitialized$6(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$7(){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(t){return!1}}function _getPrototypeOf$7(t){return _getPrototypeOf$7=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$7(t)}function _defineProperty$7(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var MinuteParser=function(t){_inherits$6(n,t);var r=_createSuper$6(n);function n(){var o;_classCallCheck$6(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$7(_assertThisInitialized$6(o),"priority",60),_defineProperty$7(_assertThisInitialized$6(o),"incompatibleTokens",["t","T"]),o}return _createClass$6(n,[{key:"parse",value:function(s,l,d){switch(l){case"m":return parseNumericPattern(numericPatterns.minute,s);case"mo":return d.ordinalNumber(s,{unit:"minute"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=0&&l<=59}},{key:"set",value:function(s,l,d){return s.setUTCMinutes(d,0,0),s}}]),n}(Parser$1);function _typeof$7(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$7=function(n){return typeof n}:_typeof$7=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$7(t)}function _classCallCheck$5(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$5(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$5(t,r,n){return r&&_defineProperties$5(t.prototype,r),n&&_defineProperties$5(t,n),t}function _inherits$5(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$6(t,r)}function _setPrototypeOf$6(t,r){return _setPrototypeOf$6=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$6(t,r)}function _createSuper$5(t){var r=_isNativeReflectConstruct$6();return function(){var o=_getPrototypeOf$6(t),s;if(r){var l=_getPrototypeOf$6(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$5(this,s)}}function _possibleConstructorReturn$5(t,r){return r&&(_typeof$7(r)==="object"||typeof r=="function")?r:_assertThisInitialized$5(t)}function _assertThisInitialized$5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$6(){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(t){return!1}}function _getPrototypeOf$6(t){return _getPrototypeOf$6=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$6(t)}function _defineProperty$6(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var SecondParser=function(t){_inherits$5(n,t);var r=_createSuper$5(n);function n(){var o;_classCallCheck$5(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$6(_assertThisInitialized$5(o),"priority",50),_defineProperty$6(_assertThisInitialized$5(o),"incompatibleTokens",["t","T"]),o}return _createClass$5(n,[{key:"parse",value:function(s,l,d){switch(l){case"s":return parseNumericPattern(numericPatterns.second,s);case"so":return d.ordinalNumber(s,{unit:"second"});default:return parseNDigits(l.length,s)}}},{key:"validate",value:function(s,l){return l>=0&&l<=59}},{key:"set",value:function(s,l,d){return s.setUTCSeconds(d,0),s}}]),n}(Parser$1);function _typeof$6(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$6=function(n){return typeof n}:_typeof$6=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$6(t)}function _classCallCheck$4(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$4(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$4(t,r,n){return r&&_defineProperties$4(t.prototype,r),n&&_defineProperties$4(t,n),t}function _inherits$4(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$5(t,r)}function _setPrototypeOf$5(t,r){return _setPrototypeOf$5=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$5(t,r)}function _createSuper$4(t){var r=_isNativeReflectConstruct$5();return function(){var o=_getPrototypeOf$5(t),s;if(r){var l=_getPrototypeOf$5(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$4(this,s)}}function _possibleConstructorReturn$4(t,r){return r&&(_typeof$6(r)==="object"||typeof r=="function")?r:_assertThisInitialized$4(t)}function _assertThisInitialized$4(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$5(){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(t){return!1}}function _getPrototypeOf$5(t){return _getPrototypeOf$5=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$5(t)}function _defineProperty$5(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var FractionOfSecondParser=function(t){_inherits$4(n,t);var r=_createSuper$4(n);function n(){var o;_classCallCheck$4(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$5(_assertThisInitialized$4(o),"priority",30),_defineProperty$5(_assertThisInitialized$4(o),"incompatibleTokens",["t","T"]),o}return _createClass$4(n,[{key:"parse",value:function(s,l){var d=function(y){return Math.floor(y*Math.pow(10,-l.length+3))};return mapValue(parseNDigits(l.length,s),d)}},{key:"set",value:function(s,l,d){return s.setUTCMilliseconds(d),s}}]),n}(Parser$1);function _typeof$5(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$5=function(n){return typeof n}:_typeof$5=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$5(t)}function _classCallCheck$3(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$3(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$3(t,r,n){return r&&_defineProperties$3(t.prototype,r),n&&_defineProperties$3(t,n),t}function _inherits$3(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$4(t,r)}function _setPrototypeOf$4(t,r){return _setPrototypeOf$4=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$4(t,r)}function _createSuper$3(t){var r=_isNativeReflectConstruct$4();return function(){var o=_getPrototypeOf$4(t),s;if(r){var l=_getPrototypeOf$4(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$3(this,s)}}function _possibleConstructorReturn$3(t,r){return r&&(_typeof$5(r)==="object"||typeof r=="function")?r:_assertThisInitialized$3(t)}function _assertThisInitialized$3(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$4(){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(t){return!1}}function _getPrototypeOf$4(t){return _getPrototypeOf$4=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$4(t)}function _defineProperty$4(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ISOTimezoneWithZParser=function(t){_inherits$3(n,t);var r=_createSuper$3(n);function n(){var o;_classCallCheck$3(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$4(_assertThisInitialized$3(o),"priority",10),_defineProperty$4(_assertThisInitialized$3(o),"incompatibleTokens",["t","T","x"]),o}return _createClass$3(n,[{key:"parse",value:function(s,l){switch(l){case"X":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,s);case"XX":return parseTimezonePattern(timezonePatterns.basic,s);case"XXXX":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,s);case"XXXXX":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,s);case"XXX":default:return parseTimezonePattern(timezonePatterns.extended,s)}}},{key:"set",value:function(s,l,d){return l.timestampIsSet?s:new Date(s.getTime()-d)}}]),n}(Parser$1);function _typeof$4(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$4=function(n){return typeof n}:_typeof$4=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$4(t)}function _classCallCheck$2(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$2(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$2(t,r,n){return r&&_defineProperties$2(t.prototype,r),n&&_defineProperties$2(t,n),t}function _inherits$2(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$3(t,r)}function _setPrototypeOf$3(t,r){return _setPrototypeOf$3=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$3(t,r)}function _createSuper$2(t){var r=_isNativeReflectConstruct$3();return function(){var o=_getPrototypeOf$3(t),s;if(r){var l=_getPrototypeOf$3(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$2(this,s)}}function _possibleConstructorReturn$2(t,r){return r&&(_typeof$4(r)==="object"||typeof r=="function")?r:_assertThisInitialized$2(t)}function _assertThisInitialized$2(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$3(){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(t){return!1}}function _getPrototypeOf$3(t){return _getPrototypeOf$3=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$3(t)}function _defineProperty$3(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var ISOTimezoneParser=function(t){_inherits$2(n,t);var r=_createSuper$2(n);function n(){var o;_classCallCheck$2(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$3(_assertThisInitialized$2(o),"priority",10),_defineProperty$3(_assertThisInitialized$2(o),"incompatibleTokens",["t","T","X"]),o}return _createClass$2(n,[{key:"parse",value:function(s,l){switch(l){case"x":return parseTimezonePattern(timezonePatterns.basicOptionalMinutes,s);case"xx":return parseTimezonePattern(timezonePatterns.basic,s);case"xxxx":return parseTimezonePattern(timezonePatterns.basicOptionalSeconds,s);case"xxxxx":return parseTimezonePattern(timezonePatterns.extendedOptionalSeconds,s);case"xxx":default:return parseTimezonePattern(timezonePatterns.extended,s)}}},{key:"set",value:function(s,l,d){return l.timestampIsSet?s:new Date(s.getTime()-d)}}]),n}(Parser$1);function _typeof$3(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$3=function(n){return typeof n}:_typeof$3=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$3(t)}function _classCallCheck$1(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties$1(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass$1(t,r,n){return r&&_defineProperties$1(t.prototype,r),n&&_defineProperties$1(t,n),t}function _inherits$1(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$2(t,r)}function _setPrototypeOf$2(t,r){return _setPrototypeOf$2=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$2(t,r)}function _createSuper$1(t){var r=_isNativeReflectConstruct$2();return function(){var o=_getPrototypeOf$2(t),s;if(r){var l=_getPrototypeOf$2(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn$1(this,s)}}function _possibleConstructorReturn$1(t,r){return r&&(_typeof$3(r)==="object"||typeof r=="function")?r:_assertThisInitialized$1(t)}function _assertThisInitialized$1(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$2(){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(t){return!1}}function _getPrototypeOf$2(t){return _getPrototypeOf$2=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$2(t)}function _defineProperty$2(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var TimestampSecondsParser=function(t){_inherits$1(n,t);var r=_createSuper$1(n);function n(){var o;_classCallCheck$1(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$2(_assertThisInitialized$1(o),"priority",40),_defineProperty$2(_assertThisInitialized$1(o),"incompatibleTokens","*"),o}return _createClass$1(n,[{key:"parse",value:function(s){return parseAnyDigitsSigned(s)}},{key:"set",value:function(s,l,d){return[new Date(d*1e3),{timestampIsSet:!0}]}}]),n}(Parser$1);function _typeof$2(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$2=function(n){return typeof n}:_typeof$2=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$2(t)}function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _createClass(t,r,n){return r&&_defineProperties(t.prototype,r),n&&_defineProperties(t,n),t}function _inherits(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),r&&_setPrototypeOf$1(t,r)}function _setPrototypeOf$1(t,r){return _setPrototypeOf$1=Object.setPrototypeOf||function(o,s){return o.__proto__=s,o},_setPrototypeOf$1(t,r)}function _createSuper(t){var r=_isNativeReflectConstruct$1();return function(){var o=_getPrototypeOf$1(t),s;if(r){var l=_getPrototypeOf$1(this).constructor;s=Reflect.construct(o,arguments,l)}else s=o.apply(this,arguments);return _possibleConstructorReturn(this,s)}}function _possibleConstructorReturn(t,r){return r&&(_typeof$2(r)==="object"||typeof r=="function")?r:_assertThisInitialized(t)}function _assertThisInitialized(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _isNativeReflectConstruct$1(){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(t){return!1}}function _getPrototypeOf$1(t){return _getPrototypeOf$1=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf$1(t)}function _defineProperty$1(t,r,n){return r in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}var TimestampMillisecondsParser=function(t){_inherits(n,t);var r=_createSuper(n);function n(){var o;_classCallCheck(this,n);for(var s=arguments.length,l=new Array(s),d=0;d<s;d++)l[d]=arguments[d];return o=r.call.apply(r,[this].concat(l)),_defineProperty$1(_assertThisInitialized(o),"priority",20),_defineProperty$1(_assertThisInitialized(o),"incompatibleTokens","*"),o}return _createClass(n,[{key:"parse",value:function(s){return parseAnyDigitsSigned(s)}},{key:"set",value:function(s,l,d){return[new Date(d),{timestampIsSet:!0}]}}]),n}(Parser$1),parsers={G:new EraParser,y:new YearParser,Y:new LocalWeekYearParser,R:new ISOWeekYearParser,u:new ExtendedYearParser,Q:new QuarterParser,q:new StandAloneQuarterParser,M:new MonthParser,L:new StandAloneMonthParser,w:new LocalWeekParser,I:new ISOWeekParser,d:new DateParser,D:new DayOfYearParser,E:new DayParser,e:new LocalDayParser,c:new StandAloneLocalDayParser,i:new ISODayParser,a:new AMPMParser,b:new AMPMMidnightParser,B:new DayPeriodParser,h:new Hour1to12Parser,H:new Hour0to23Parser,K:new Hour0To11Parser,k:new Hour1To24Parser,m:new MinuteParser,s:new SecondParser,S:new FractionOfSecondParser,X:new ISOTimezoneWithZParser,x:new ISOTimezoneParser,t:new TimestampSecondsParser,T:new TimestampMillisecondsParser};function _typeof$1(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof$1=function(n){return typeof n}:_typeof$1=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof$1(t)}function _createForOfIteratorHelper(t,r){var n;if(typeof Symbol=="undefined"||t[Symbol.iterator]==null){if(Array.isArray(t)||(n=_unsupportedIterableToArray(t))||r&&t&&typeof t.length=="number"){n&&(t=n);var o=0,s=function(){};return{s,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(b){throw b},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l=!0,d=!1,g;return{s:function(){n=t[Symbol.iterator]()},n:function(){var b=n.next();return l=b.done,b},e:function(b){d=!0,g=b},f:function(){try{!l&&n.return!=null&&n.return()}finally{if(d)throw g}}}}function _unsupportedIterableToArray(t,r){if(!!t){if(typeof t=="string")return _arrayLikeToArray(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(t,r)}}function _arrayLikeToArray(t,r){(r==null||r>t.length)&&(r=t.length);for(var n=0,o=new Array(r);n<r;n++)o[n]=t[n];return o}var formattingTokensRegExp=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,longFormattingTokensRegExp=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,escapedStringRegExp=/^'([^]*?)'?$/,doubleQuoteRegExp=/''/g,notWhitespaceRegExp=/\S/,unescapedLatinCharacterRegExp=/[a-zA-Z]/;function parse$4(t,r,n,o){var s,l,d,g,y,b,C,x,S,_,w,$,I,B,R,P,M,O;requiredArgs$1(3,arguments);var D=String(t),N=String(r),H=getDefaultOptions$1(),Q=(s=(l=o==null?void 0:o.locale)!==null&&l!==void 0?l:H.locale)!==null&&s!==void 0?s:defaultLocale$1;if(!Q.match)throw new RangeError("locale must contain match property");var G=toInteger$2((d=(g=(y=(b=o==null?void 0:o.firstWeekContainsDate)!==null&&b!==void 0?b:o==null||(C=o.locale)===null||C===void 0||(x=C.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&y!==void 0?y:H.firstWeekContainsDate)!==null&&g!==void 0?g:(S=H.locale)===null||S===void 0||(_=S.options)===null||_===void 0?void 0:_.firstWeekContainsDate)!==null&&d!==void 0?d:1);if(!(G>=1&&G<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var K=toInteger$2((w=($=(I=(B=o==null?void 0:o.weekStartsOn)!==null&&B!==void 0?B:o==null||(R=o.locale)===null||R===void 0||(P=R.options)===null||P===void 0?void 0:P.weekStartsOn)!==null&&I!==void 0?I:H.weekStartsOn)!==null&&$!==void 0?$:(M=H.locale)===null||M===void 0||(O=M.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&w!==void 0?w:0);if(!(K>=0&&K<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(N==="")return D===""?toDate$2(n):new Date(NaN);var W={firstWeekContainsDate:G,weekStartsOn:K,locale:Q},j=[new DateToSystemTimezoneSetter],Y=N.match(longFormattingTokensRegExp).map(function(ye){var Be=ye[0];if(Be in longFormatters$2){var Se=longFormatters$2[Be];return Se(ye,Q.formatLong)}return ye}).join("").match(formattingTokensRegExp),q=[],X=_createForOfIteratorHelper(Y),re;try{var te=function(){var Be=re.value;!(o!=null&&o.useAdditionalWeekYearTokens)&&isProtectedWeekYearToken$1(Be)&&throwProtectedError$1(Be,N,t),!(o!=null&&o.useAdditionalDayOfYearTokens)&&isProtectedDayOfYearToken$1(Be)&&throwProtectedError$1(Be,N,t);var Se=Be[0],Ee=parsers[Se];if(Ee){var ie=Ee.incompatibleTokens;if(Array.isArray(ie)){var ee=q.find(function(ce){return ie.includes(ce.token)||ce.token===Se});if(ee)throw new RangeError("The format string mustn't contain `".concat(ee.fullToken,"` and `").concat(Be,"` at the same time"))}else if(Ee.incompatibleTokens==="*"&&q.length>0)throw new RangeError("The format string mustn't contain `".concat(Be,"` and any other token at the same time"));q.push({token:Se,fullToken:Be});var J=Ee.run(D,Be,Q.match,W);if(!J)return{v:new Date(NaN)};j.push(J.setter),D=J.rest}else{if(Se.match(unescapedLatinCharacterRegExp))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Se+"`");if(Be==="''"?Be="'":Se==="'"&&(Be=cleanEscapedString(Be)),D.indexOf(Be)===0)D=D.slice(Be.length);else return{v:new Date(NaN)}}};for(X.s();!(re=X.n()).done;){var oe=te();if(_typeof$1(oe)==="object")return oe.v}}catch(ye){X.e(ye)}finally{X.f()}if(D.length>0&¬WhitespaceRegExp.test(D))return new Date(NaN);var ae=j.map(function(ye){return ye.priority}).sort(function(ye,Be){return Be-ye}).filter(function(ye,Be,Se){return Se.indexOf(ye)===Be}).map(function(ye){return j.filter(function(Be){return Be.priority===ye}).sort(function(Be,Se){return Se.subPriority-Be.subPriority})}).map(function(ye){return ye[0]}),se=toDate$2(n);if(isNaN(se.getTime()))return new Date(NaN);var ue=subMilliseconds$1(se,getTimezoneOffsetInMilliseconds$2(se)),Ae={},pe=_createForOfIteratorHelper(ae),he;try{for(pe.s();!(he=pe.n()).done;){var Ce=he.value;if(!Ce.validate(ue,W))return new Date(NaN);var ve=Ce.set(ue,Ae,W);Array.isArray(ve)?(ue=ve[0],assign$5(Ae,ve[1])):ue=ve}}catch(ye){pe.e(ye)}finally{pe.f()}return ue}function cleanEscapedString(t){return t.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp,"'")}function startOfHour(t){requiredArgs$1(1,arguments);var r=toDate$2(t);return r.setMinutes(0,0,0),r}function isSameMonth(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toDate$2(r);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}function isSameQuarter(t,r){requiredArgs$1(2,arguments);var n=startOfQuarter(t),o=startOfQuarter(r);return n.getTime()===o.getTime()}function startOfSecond(t){requiredArgs$1(1,arguments);var r=toDate$2(t);return r.setMilliseconds(0),r}function isSameYear(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toDate$2(r);return n.getFullYear()===o.getFullYear()}function setMonth(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r),s=n.getFullYear(),l=n.getDate(),d=new Date(0);d.setFullYear(s,o,15),d.setHours(0,0,0,0);var g=getDaysInMonth(d);return n.setMonth(o,Math.min(l,g)),n}function _typeof(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_typeof=function(n){return typeof n}:_typeof=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_typeof(t)}function set$2(t,r){if(requiredArgs$1(2,arguments),_typeof(r)!=="object"||r===null)throw new RangeError("values parameter must be an object");var n=toDate$2(t);return isNaN(n.getTime())?new Date(NaN):(r.year!=null&&n.setFullYear(r.year),r.month!=null&&(n=setMonth(n,r.month)),r.date!=null&&n.setDate(toInteger$2(r.date)),r.hours!=null&&n.setHours(toInteger$2(r.hours)),r.minutes!=null&&n.setMinutes(toInteger$2(r.minutes)),r.seconds!=null&&n.setSeconds(toInteger$2(r.seconds)),r.milliseconds!=null&&n.setMilliseconds(toInteger$2(r.milliseconds)),n)}function setHours(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r);return n.setHours(o),n}function setMinutes(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r);return n.setMinutes(o),n}function setQuarter(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r),s=Math.floor(n.getMonth()/3)+1,l=o-s;return setMonth(n,n.getMonth()+l*3)}function setSeconds(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r);return n.setSeconds(o),n}function setYear(t,r){requiredArgs$1(2,arguments);var n=toDate$2(t),o=toInteger$2(r);return isNaN(n.getTime())?new Date(NaN):(n.setFullYear(o),n)}function useLocale(t){const{mergedLocaleRef:r,mergedDateLocaleRef:n}=inject(configProviderInjectionKey,null)||{},o=computed(()=>{var l,d;return(d=(l=r==null?void 0:r.value)===null||l===void 0?void 0:l[t])!==null&&d!==void 0?d:enUS$2[t]});return{dateLocaleRef:computed(()=>{var l;return(l=n==null?void 0:n.value)!==null&&l!==void 0?l:dateEnUS}),localeRef:o}}function useStyle(t,r,n){if(!r)return;const o=useSsrAdapter(),s=inject(configProviderInjectionKey,null),l=()=>{const d=n==null?void 0:n.value;r.mount({id:d===void 0?t:d+t,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:d?`.${d}-`:void 0},ssr:o}),s!=null&&s.preflightStyleDisabled||globalStyle.mount({id:"n-global",head:!0,anchorMetaName:cssrAnchorMetaName,ssr:o})};o?l():onBeforeMount(l)}function useHljs(t,r){const n=inject(configProviderInjectionKey,null);return computed(()=>t.hljs||(n==null?void 0:n.mergedHljsRef.value))}function useThemeClass(t,r,n,o){var s;n||throwError$1("useThemeClass","cssVarsRef is not passed");const l=(s=inject(configProviderInjectionKey,null))===null||s===void 0?void 0:s.mergedThemeHashRef,d=ref(""),g=useSsrAdapter();let y;const b=`__${t}`,C=()=>{let x=b;const S=r?r.value:void 0,_=l==null?void 0:l.value;_&&(x+="-"+_),S&&(x+="-"+S);const{themeOverrides:w,builtinThemeOverrides:$}=o;w&&(x+="-"+murmur2(JSON.stringify(w))),$&&(x+="-"+murmur2(JSON.stringify($))),d.value=x,y=()=>{const I=n.value;let B="";for(const R in I)B+=`${R}: ${I[R]};`;c$1(`.${x}`,B).mount({id:x,ssr:g}),y=void 0}};return watchEffect(()=>{C()}),{themeClass:d,onRender:()=>{y==null||y()}}}function useRtl(t,r,n){if(!r)return;const o=useSsrAdapter(),s=computed(()=>{const{value:d}=r;if(!d)return;const g=d[t];if(!!g)return g}),l=()=>{watchEffect(()=>{const{value:d}=n,g=`${d}${t}Rtl`;if(exists(g,o))return;const{value:y}=s;!y||y.style.mount({id:g,head:!0,anchorMetaName:cssrAnchorMetaName,props:{bPrefix:d?`.${d}-`:void 0},ssr:o})})};return o?l():onBeforeMount(l),s}var AddIcon=defineComponent({name:"Add",render(){return h("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),ArrowDownIcon=defineComponent({name:"ArrowDown",render(){return h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("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 replaceable(t,r){return defineComponent({name:upperFirst$1(t),setup(){var n;const o=(n=inject(configProviderInjectionKey,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var s;const l=(s=o==null?void 0:o.value)===null||s===void 0?void 0:s[t];return l?l():r}}})}var AttachIcon=replaceable("attach",h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),BackwardIcon=defineComponent({name:"Backward",render(){return h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),DateIcon=replaceable("date",h("svg",{width:"28px",height:"28px",viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("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"}))))),FinishedIcon=defineComponent({name:"Checkmark",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},h("g",{fill:"none"},h("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"})))}}),ChevronLeftIcon=defineComponent({name:"ChevronLeft",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),ChevronRightIcon=defineComponent({name:"ChevronRight",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),ErrorIcon$1=replaceable("close",h("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),EyeIcon=defineComponent({name:"Eye",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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"}),h("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),EyeOffIcon=defineComponent({name:"EyeOff",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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"}),h("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"}),h("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"}),h("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"}),h("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"}))}}),TrashIcon=replaceable("trash",h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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;"}),h("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;"}),h("line",{x1:"312",y1:"240",x2:"200",y2:"352",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}),h("line",{x1:"312",y1:"352",x2:"200",y2:"240",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),DownloadIcon=replaceable("download",h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),EmptyIcon=defineComponent({name:"Empty",render(){return h("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}),h("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"}))}}),ErrorIcon=replaceable("error",h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("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"}))))),FastBackwardIcon=defineComponent({name:"FastBackward",render(){return h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))}}),FastForwardIcon=defineComponent({name:"FastForward",render(){return h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))}}),FilterIcon=defineComponent({name:"Filter",render(){return h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("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"}))))}}),ForwardIcon=defineComponent({name:"Forward",render(){return h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),InfoIcon=replaceable("info",h("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("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"}))))),MoreIcon=defineComponent({name:"More",render(){return h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))}}),RemoveIcon=defineComponent({name:"Remove",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("line",{x1:"400",y1:"256",x2:"112",y2:"256",style:`
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 32px;
|
|
`}))}}),SuccessIcon=replaceable("success",h("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("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"}))))),SwitcherIcon=defineComponent({name:"Switcher",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32"},h("path",{d:"M12 8l10 8l-10 8z"}))}}),TimeIcon=replaceable("time",h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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;
|
|
`}),h("polyline",{points:"256 128 256 272 352 272",style:`
|
|
fill: none;
|
|
stroke: currentColor;
|
|
stroke-linecap: round;
|
|
stroke-linejoin: round;
|
|
stroke-width: 32px;
|
|
`}))),WarningIcon=replaceable("warning",h("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{"fill-rule":"nonzero"},h("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"}))))),CancelIcon=replaceable("cancel",h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),ChevronDownIcon=defineComponent({name:"ChevronDown",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),ClearIcon=replaceable("clear",h("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),ChevronDownFilledIcon=defineComponent({name:"ChevronDownFilled",render(){return h("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}))}}),ToIcon=replaceable("to",h("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},h("g",{fill:"currentColor","fill-rule":"nonzero"},h("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"}))))),RetryIcon=replaceable("retry",h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},h("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;"}),h("polyline",{points:"256 58 336 138 256 218",style:"fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;"}))),RotateClockwiseIcon=replaceable("rotateClockwise",h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}),h("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"}))),RotateCounterclockwiseIcon=replaceable("rotateClockwise",h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}),h("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"}))),ZoomInIcon=replaceable("zoomIn",h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}),h("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"}))),ZoomOutIcon=replaceable("zoomOut",h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"}),h("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"}))),ResizeSmallIcon=defineComponent({name:"ResizeSmall",render(){return h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},h("g",{fill:"none"},h("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"})))}}),NIconSwitchTransition=defineComponent({name:"BaseIconSwitchTransition",setup(t,{slots:r}){const n=isMounted();return()=>h(Transition,{name:"icon-switch-transition",appear:n.value},r)}}),NFadeInExpandTransition=defineComponent({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(t,{slots:r}){function n(g){t.width?g.style.maxWidth=`${g.offsetWidth}px`:g.style.maxHeight=`${g.offsetHeight}px`,g.offsetWidth}function o(g){t.width?g.style.maxWidth="0":g.style.maxHeight="0",g.offsetWidth;const{onLeave:y}=t;y&&y()}function s(g){t.width?g.style.maxWidth="":g.style.maxHeight="";const{onAfterLeave:y}=t;y&&y()}function l(g){if(g.style.transition="none",t.width){const y=g.offsetWidth;g.style.maxWidth="0",g.offsetWidth,g.style.transition="",g.style.maxWidth=`${y}px`}else if(t.reverse)g.style.maxHeight=`${g.offsetHeight}px`,g.offsetHeight,g.style.transition="",g.style.maxHeight="0";else{const y=g.offsetHeight;g.style.maxHeight="0",g.offsetWidth,g.style.transition="",g.style.maxHeight=`${y}px`}g.offsetWidth}function d(g){var y;t.width?g.style.maxWidth="":t.reverse||(g.style.maxHeight=""),(y=t.onAfterEnter)===null||y===void 0||y.call(t)}return()=>{const g=t.group?TransitionGroup:Transition;return h(g,{name:t.width?"fade-in-width-expand-transition":"fade-in-height-expand-transition",mode:t.mode,appear:t.appear,onEnter:l,onAfterEnter:d,onBeforeLeave:n,onLeave:o,onAfterLeave:s},r)}}}),style$1g=cB("base-icon",`
|
|
height: 1em;
|
|
width: 1em;
|
|
line-height: 1em;
|
|
text-align: center;
|
|
display: inline-block;
|
|
position: relative;
|
|
fill: currentColor;
|
|
transform: translateZ(0);
|
|
`,[c$1("svg",`
|
|
height: 1em;
|
|
width: 1em;
|
|
`)]),NBaseIcon=defineComponent({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(t){useStyle("-base-icon",style$1g,toRef(t,"clsPrefix"))},render(){return h("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)}}),style$1f=cB("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;
|
|
`,[cM("absolute",`
|
|
height: var(--n-close-icon-size);
|
|
width: var(--n-close-icon-size);
|
|
`),c$1("&::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;
|
|
`),cNotM("disabled",[c$1("&:hover",`
|
|
color: var(--n-close-icon-color-hover);
|
|
`),c$1("&:hover::before",`
|
|
background-color: var(--n-close-color-hover);
|
|
`),c$1("&:focus::before",`
|
|
background-color: var(--n-close-color-hover);
|
|
`),c$1("&:active",`
|
|
color: var(--n-close-icon-color-pressed);
|
|
`),c$1("&:active::before",`
|
|
background-color: var(--n-close-color-pressed);
|
|
`)]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
color: var(--n-close-icon-color-disabled);
|
|
background-color: transparent;
|
|
`),cM("round",[c$1("&::before",`
|
|
border-radius: 50%;
|
|
`)])]),NBaseClose=defineComponent({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(t){return useStyle("-base-close",style$1f,toRef(t,"clsPrefix")),()=>{const{clsPrefix:r,disabled:n,absolute:o,round:s,isButtonTag:l}=t;return h(l?"button":"div",{type:l?"button":void 0,tabindex:n||!t.focusable?-1:0,"aria-disabled":n,"aria-label":"close",role:l?void 0:"button",disabled:n,class:[`${r}-base-close`,o&&`${r}-base-close--absolute`,n&&`${r}-base-close--disabled`,s&&`${r}-base-close--round`],onMousedown:g=>{t.focusable||g.preventDefault()},onClick:t.onClick},h(NBaseIcon,{clsPrefix:r},{default:()=>h(ErrorIcon$1,null)}))}}}),FocusDetector=defineComponent({props:{onFocus:Function,onBlur:Function},setup(t){return()=>h("div",{style:"width: 0; height: 0",tabindex:0,onFocus:t.onFocus,onBlur:t.onBlur})}});const{cubicBezierEaseInOut:cubicBezierEaseInOut$4}=commonVariables$m;function iconSwitchTransition({originalTransform:t="",left:r=0,top:n=0,transition:o=`all .3s ${cubicBezierEaseInOut$4} !important`}={}){return[c$1("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:t+" scale(0.75)",left:r,top:n,opacity:0}),c$1("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${t}`,left:r,top:n,opacity:1}),c$1("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:r,top:n,transition:o})]}var style$1e=c$1([c$1("@keyframes loading-container-rotate",`
|
|
to {
|
|
-webkit-transform: rotate(360deg);
|
|
transform: rotate(360deg);
|
|
}
|
|
`),c$1("@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);
|
|
}
|
|
`),c$1("@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);
|
|
}
|
|
`),c$1("@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);
|
|
}
|
|
`),cB("base-loading",`
|
|
position: relative;
|
|
line-height: 0;
|
|
width: 1em;
|
|
height: 1em;
|
|
`,[cE("transition-wrapper",`
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
`,[iconSwitchTransition()]),cE("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%;
|
|
`,[cE("svg",`
|
|
stroke: var(--n-text-color);
|
|
fill: transparent;
|
|
position: absolute;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`),cE("container-layer",`
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
animation: loading-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
`,[cE("container-layer-left",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
width: 50%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[cE("svg",`
|
|
animation: loading-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
width: 200%;
|
|
`)]),cE("container-layer-patch",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 47.5%;
|
|
box-sizing: border-box;
|
|
width: 5%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[cE("svg",`
|
|
left: -900%;
|
|
width: 2000%;
|
|
transform: rotate(180deg);
|
|
`)]),cE("container-layer-right",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
width: 50%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
`,[cE("svg",`
|
|
animation: loading-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both;
|
|
left: -100%;
|
|
width: 200%;
|
|
`)])])]),cE("placeholder",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[iconSwitchTransition({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})])])]);const exposedLoadingProps={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}};var NBaseLoading=defineComponent({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},exposedLoadingProps),setup(t){useStyle("-base-loading",style$1e,toRef(t,"clsPrefix"))},render(){const{clsPrefix:t,radius:r,strokeWidth:n,stroke:o,scale:s}=this,l=r/s;return h("div",{class:`${t}-base-loading`,role:"img","aria-label":"loading"},h(NIconSwitchTransition,null,{default:()=>this.show?h("div",{key:"icon",class:`${t}-base-loading__transition-wrapper`},h("div",{class:`${t}-base-loading__container`},h("div",{class:`${t}-base-loading__container-layer`},h("div",{class:`${t}-base-loading__container-layer-left`},h("svg",{class:`${t}-base-loading__svg`,viewBox:`0 0 ${2*l} ${2*l}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:l,cy:l,r:r-n/2,"stroke-dasharray":4.91*r,"stroke-dashoffset":2.46*r}))),h("div",{class:`${t}-base-loading__container-layer-patch`},h("svg",{class:`${t}-base-loading__svg`,viewBox:`0 0 ${2*l} ${2*l}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:l,cy:l,r:r-n/2,"stroke-dasharray":4.91*r,"stroke-dashoffset":2.46*r}))),h("div",{class:`${t}-base-loading__container-layer-right`},h("svg",{class:`${t}-base-loading__svg`,viewBox:`0 0 ${2*l} ${2*l}`,xmlns:"http://www.w3.org/2000/svg",style:{color:o}},h("circle",{fill:"none",stroke:"currentColor","stroke-width":n,"stroke-linecap":"round",cx:l,cy:l,r:r-n/2,"stroke-dasharray":4.91*r,"stroke-dashoffset":2.46*r})))))):h("div",{key:"placeholder",class:`${t}-base-loading__placeholder`},this.$slots)}))}});function toArray$1(t){return Array.isArray(t)?t:[t]}const TRAVERSE_COMMAND={STOP:"STOP"};function traverseWithCb(t,r){const n=r(t);t.children!==void 0&&n!==TRAVERSE_COMMAND.STOP&&t.children.forEach(o=>traverseWithCb(o,r))}function getNonLeafKeys(t,r={}){const{preserveGroup:n=!1}=r,o=[],s=n?d=>{d.isLeaf||(o.push(d.key),l(d.children))}:d=>{d.isLeaf||(d.isGroup||o.push(d.key),l(d.children))};function l(d){d.forEach(s)}return l(t),o}function isLeaf(t,r){const{isLeaf:n}=t;return n!==void 0?n:!r(t)}function defaultGetChildren(t){return t.children}function defaultGetKey(t){return t.key}function isIgnored(){return!1}function isShallowLoaded(t,r){const{isLeaf:n}=t;return!(n===!1&&!Array.isArray(r(t)))}function isDisabled(t){return t.disabled===!0}function isExpilicitlyNotLoaded(t,r){return t.isLeaf===!1&&!Array.isArray(r(t))}function unwrapCheckedKeys(t){var r;return t==null?[]:Array.isArray(t)?t:(r=t.checkedKeys)!==null&&r!==void 0?r:[]}function unwrapIndeterminateKeys(t){var r;return t==null||Array.isArray(t)?[]:(r=t.indeterminateKeys)!==null&&r!==void 0?r:[]}function merge$3(t,r){const n=new Set(t);return r.forEach(o=>{n.has(o)||n.add(o)}),Array.from(n)}function minus(t,r){const n=new Set(t);return r.forEach(o=>{n.has(o)&&n.delete(o)}),Array.from(n)}function isGroup(t){return(t==null?void 0:t.type)==="group"}function createIndexGetter(t){const r=new Map;return t.forEach((n,o)=>{r.set(n.key,o)}),n=>{var o;return(o=r.get(n))!==null&&o!==void 0?o:null}}class SubtreeNotLoadedError extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function getExtendedCheckedKeySetAfterCheck(t,r,n,o){return getExtendedCheckedKeySet(r.concat(t),n,o,!1)}function getAvailableAscendantNodeSet(t,r){const n=new Set;return t.forEach(o=>{const s=r.treeNodeMap.get(o);if(s!==void 0){let l=s.parent;for(;l!==null&&!(l.disabled||n.has(l.key));)n.add(l.key),l=l.parent}}),n}function getExtendedCheckedKeySetAfterUncheck(t,r,n,o){const s=getExtendedCheckedKeySet(r,n,o,!1),l=getExtendedCheckedKeySet(t,n,o,!0),d=getAvailableAscendantNodeSet(t,n),g=[];return s.forEach(y=>{(l.has(y)||d.has(y))&&g.push(y)}),g.forEach(y=>s.delete(y)),s}function getCheckedKeys(t,r){const{checkedKeys:n,keysToCheck:o,keysToUncheck:s,indeterminateKeys:l,cascade:d,leafOnly:g,checkStrategy:y,allowNotLoaded:b}=t;if(!d)return o!==void 0?{checkedKeys:merge$3(n,o),indeterminateKeys:Array.from(l)}:s!==void 0?{checkedKeys:minus(n,s),indeterminateKeys:Array.from(l)}:{checkedKeys:Array.from(n),indeterminateKeys:Array.from(l)};const{levelTreeNodeMap:C}=r;let x;s!==void 0?x=getExtendedCheckedKeySetAfterUncheck(s,n,r,b):o!==void 0?x=getExtendedCheckedKeySetAfterCheck(o,n,r,b):x=getExtendedCheckedKeySet(n,r,b,!1);const S=y==="parent",_=y==="child"||g,w=x,$=new Set,I=Math.max.apply(null,Array.from(C.keys()));for(let B=I;B>=0;B-=1){const R=B===0,P=C.get(B);for(const M of P){if(M.isLeaf)continue;const{key:O,shallowLoaded:D}=M;if(_&&D&&M.children.forEach(G=>{!G.disabled&&!G.isLeaf&&G.shallowLoaded&&w.has(G.key)&&w.delete(G.key)}),M.disabled||!D)continue;let N=!0,H=!1,Q=!0;for(const G of M.children){const K=G.key;if(!G.disabled){if(Q&&(Q=!1),w.has(K))H=!0;else if($.has(K)){H=!0,N=!1;break}else if(N=!1,H)break}}N&&!Q?(S&&M.children.forEach(G=>{!G.disabled&&w.has(G.key)&&w.delete(G.key)}),w.add(O)):H&&$.add(O),R&&_&&w.has(O)&&w.delete(O)}}return{checkedKeys:Array.from(w),indeterminateKeys:Array.from($)}}function getExtendedCheckedKeySet(t,r,n,o){const{treeNodeMap:s,getChildren:l}=r,d=new Set,g=new Set(t);return t.forEach(y=>{const b=s.get(y);b!==void 0&&traverseWithCb(b,C=>{if(C.disabled)return TRAVERSE_COMMAND.STOP;const{key:x}=C;if(!d.has(x)&&(d.add(x),g.add(x),isExpilicitlyNotLoaded(C.rawNode,l))){if(o)return TRAVERSE_COMMAND.STOP;if(!n)throw new SubtreeNotLoadedError}})}),g}function getPath(t,{includeGroup:r=!1,includeSelf:n=!0},o){var s;const l=o.treeNodeMap;let d=t==null?null:(s=l.get(t))!==null&&s!==void 0?s:null;const g={keyPath:[],treeNodePath:[],treeNode:d};if(d!=null&&d.ignored)return g.treeNode=null,g;for(;d;)!d.ignored&&(r||!d.isGroup)&&g.treeNodePath.push(d),d=d.parent;return g.treeNodePath.reverse(),n||g.treeNodePath.pop(),g.keyPath=g.treeNodePath.map(y=>y.key),g}function getFirstAvailableNode(t){if(t.length===0)return null;const r=t[0];return r.isGroup||r.ignored||r.disabled?r.getNext():r}function rawGetNext(t,r){const n=t.siblings,o=n.length,{index:s}=t;return r?n[(s+1)%o]:s===n.length-1?null:n[s+1]}function move(t,r,{loop:n=!1,includeDisabled:o=!1}={}){const s=r==="prev"?rawGetPrev:rawGetNext,l={reverse:r==="prev"};let d=!1,g=null;function y(b){if(b!==null){if(b===t){if(!d)d=!0;else if(!t.disabled&&!t.isGroup){g=t;return}}else if((!b.disabled||o)&&!b.ignored&&!b.isGroup){g=b;return}if(b.isGroup){const C=getChild(b,l);C!==null?g=C:y(s(b,n))}else{const C=s(b,!1);if(C!==null)y(C);else{const x=rawGetParent(b);x!=null&&x.isGroup?y(s(x,n)):n&&y(s(b,!0))}}}}return y(t),g}function rawGetPrev(t,r){const n=t.siblings,o=n.length,{index:s}=t;return r?n[(s-1+o)%o]:s===0?null:n[s-1]}function rawGetParent(t){return t.parent}function getChild(t,r={}){const{reverse:n=!1}=r,{children:o}=t;if(o){const{length:s}=o,l=n?s-1:0,d=n?-1:s,g=n?-1:1;for(let y=l;y!==d;y+=g){const b=o[y];if(!b.disabled&&!b.ignored)if(b.isGroup){const C=getChild(b,r);if(C!==null)return C}else return b}}return null}const moveMethods={getChild(){return this.ignored?null:getChild(this)},getParent(){const{parent:t}=this;return t!=null&&t.isGroup?t.getParent():t},getNext(t={}){return move(this,"next",t)},getPrev(t={}){return move(this,"prev",t)}};function flatten$3(t,r){const n=r?new Set(r):void 0,o=[];function s(l){l.forEach(d=>{o.push(d),!(d.isLeaf||!d.children||d.ignored)&&(d.isGroup||n===void 0||n.has(d.key))&&s(d.children)})}return s(t),o}function contains$1(t,r){const n=t.key;for(;r;){if(r.key===n)return!0;r=r.parent}return!1}function createTreeNodes(t,r,n,o,s,l=null,d=0){const g=[];return t.forEach((y,b)=>{var C;const x=Object.create(o);if(x.rawNode=y,x.siblings=g,x.level=d,x.index=b,x.isFirstChild=b===0,x.isLastChild=b+1===t.length,x.parent=l,!x.ignored){const S=s(y);Array.isArray(S)&&(x.children=createTreeNodes(S,r,n,o,s,x,d+1))}g.push(x),r.set(x.key,x),n.has(d)||n.set(d,[]),(C=n.get(d))===null||C===void 0||C.push(x)}),g}function createTreeMate(t,r={}){var n;const o=new Map,s=new Map,{getDisabled:l=isDisabled,getIgnored:d=isIgnored,getIsGroup:g=isGroup,getKey:y=defaultGetKey}=r,b=(n=r.getChildren)!==null&&n!==void 0?n:defaultGetChildren,C=r.ignoreEmptyChildren?M=>{const O=b(M);return Array.isArray(O)?O.length?O:null:O}:b,x=Object.assign({get key(){return y(this.rawNode)},get disabled(){return l(this.rawNode)},get isGroup(){return g(this.rawNode)},get isLeaf(){return isLeaf(this.rawNode,C)},get shallowLoaded(){return isShallowLoaded(this.rawNode,C)},get ignored(){return d(this.rawNode)},contains(M){return contains$1(this,M)}},moveMethods),S=createTreeNodes(t,o,s,x,C);function _(M){if(M==null)return null;const O=o.get(M);return O&&!O.isGroup&&!O.ignored?O:null}function w(M){if(M==null)return null;const O=o.get(M);return O&&!O.ignored?O:null}function $(M,O){const D=w(M);return D?D.getPrev(O):null}function I(M,O){const D=w(M);return D?D.getNext(O):null}function B(M){const O=w(M);return O?O.getParent():null}function R(M){const O=w(M);return O?O.getChild():null}const P={treeNodes:S,treeNodeMap:o,levelTreeNodeMap:s,maxLevel:Math.max(...s.keys()),getChildren:C,getFlattenedNodes(M){return flatten$3(S,M)},getNode:_,getPrev:$,getNext:I,getParent:B,getChild:R,getFirstAvailableNode(){return getFirstAvailableNode(S)},getPath(M,O={}){return getPath(M,O,P)},getCheckedKeys(M,O={}){const{cascade:D=!0,leafOnly:N=!1,checkStrategy:H="all",allowNotLoaded:Q=!1}=O;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(M),indeterminateKeys:unwrapIndeterminateKeys(M),cascade:D,leafOnly:N,checkStrategy:H,allowNotLoaded:Q},P)},check(M,O,D={}){const{cascade:N=!0,leafOnly:H=!1,checkStrategy:Q="all",allowNotLoaded:G=!1}=D;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(O),indeterminateKeys:unwrapIndeterminateKeys(O),keysToCheck:M==null?[]:toArray$1(M),cascade:N,leafOnly:H,checkStrategy:Q,allowNotLoaded:G},P)},uncheck(M,O,D={}){const{cascade:N=!0,leafOnly:H=!1,checkStrategy:Q="all",allowNotLoaded:G=!1}=D;return getCheckedKeys({checkedKeys:unwrapCheckedKeys(O),indeterminateKeys:unwrapIndeterminateKeys(O),keysToUncheck:M==null?[]:toArray$1(M),cascade:N,leafOnly:H,checkStrategy:Q,allowNotLoaded:G},P)},getNonLeafKeys(M={}){return getNonLeafKeys(S,M)}};return P}const base$3={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)"},baseBackgroundRgb$1=rgba(base$3.neutralBase),baseInvertBackgroundRgb$1=rgba(base$3.neutralInvertBase),overlayPrefix$1="rgba("+baseInvertBackgroundRgb$1.slice(0,3).join(", ")+", ";function overlay$1(t){return overlayPrefix$1+String(t)+")"}function neutral$1(t){const r=Array.from(baseInvertBackgroundRgb$1);return r[3]=Number(t),composite(baseBackgroundRgb$1,r)}const derived$1=Object.assign(Object.assign({name:"common"},commonVariables$m),{baseColor:base$3.neutralBase,primaryColor:base$3.primaryDefault,primaryColorHover:base$3.primaryHover,primaryColorPressed:base$3.primaryActive,primaryColorSuppl:base$3.primarySuppl,infoColor:base$3.infoDefault,infoColorHover:base$3.infoHover,infoColorPressed:base$3.infoActive,infoColorSuppl:base$3.infoSuppl,successColor:base$3.successDefault,successColorHover:base$3.successHover,successColorPressed:base$3.successActive,successColorSuppl:base$3.successSuppl,warningColor:base$3.warningDefault,warningColorHover:base$3.warningHover,warningColorPressed:base$3.warningActive,warningColorSuppl:base$3.warningSuppl,errorColor:base$3.errorDefault,errorColorHover:base$3.errorHover,errorColorPressed:base$3.errorActive,errorColorSuppl:base$3.errorSuppl,textColorBase:base$3.neutralTextBase,textColor1:overlay$1(base$3.alpha1),textColor2:overlay$1(base$3.alpha2),textColor3:overlay$1(base$3.alpha3),textColorDisabled:overlay$1(base$3.alpha4),placeholderColor:overlay$1(base$3.alpha4),placeholderColorDisabled:overlay$1(base$3.alpha5),iconColor:overlay$1(base$3.alpha4),iconColorDisabled:overlay$1(base$3.alpha5),iconColorHover:overlay$1(Number(base$3.alpha4)*1.25),iconColorPressed:overlay$1(Number(base$3.alpha4)*.8),opacity1:base$3.alpha1,opacity2:base$3.alpha2,opacity3:base$3.alpha3,opacity4:base$3.alpha4,opacity5:base$3.alpha5,dividerColor:overlay$1(base$3.alphaDivider),borderColor:overlay$1(base$3.alphaBorder),closeIconColorHover:overlay$1(Number(base$3.alphaClose)),closeIconColor:overlay$1(Number(base$3.alphaClose)),closeIconColorPressed:overlay$1(Number(base$3.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:overlay$1(base$3.alpha4),clearColorHover:scaleColor(overlay$1(base$3.alpha4),{alpha:1.25}),clearColorPressed:scaleColor(overlay$1(base$3.alpha4),{alpha:.8}),scrollbarColor:overlay$1(base$3.alphaScrollbar),scrollbarColorHover:overlay$1(base$3.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:overlay$1(base$3.alphaProgressRail),railColor:overlay$1(base$3.alphaRail),popoverColor:base$3.neutralPopover,tableColor:base$3.neutralCard,cardColor:base$3.neutralCard,modalColor:base$3.neutralModal,bodyColor:base$3.neutralBody,tagColor:neutral$1(base$3.alphaTag),avatarColor:overlay$1(base$3.alphaAvatar),invertedColor:base$3.neutralBase,inputColor:overlay$1(base$3.alphaInput),codeColor:overlay$1(base$3.alphaCode),tabColor:overlay$1(base$3.alphaTab),actionColor:overlay$1(base$3.alphaAction),tableHeaderColor:overlay$1(base$3.alphaAction),hoverColor:overlay$1(base$3.alphaPending),tableColorHover:overlay$1(base$3.alphaTablePending),tableColorStriped:overlay$1(base$3.alphaTableStriped),pressedColor:overlay$1(base$3.alphaPressed),opacityDisabled:base$3.alphaDisabled,inputColorDisabled:overlay$1(base$3.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 commonDark=derived$1;const base$2={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"},baseBackgroundRgb=rgba(base$2.neutralBase),baseInvertBackgroundRgb=rgba(base$2.neutralInvertBase),overlayPrefix="rgba("+baseInvertBackgroundRgb.slice(0,3).join(", ")+", ";function overlay(t){return overlayPrefix+String(t)+")"}function neutral(t){const r=Array.from(baseInvertBackgroundRgb);return r[3]=Number(t),composite(baseBackgroundRgb,r)}const derived=Object.assign(Object.assign({name:"common"},commonVariables$m),{baseColor:base$2.neutralBase,primaryColor:base$2.primaryDefault,primaryColorHover:base$2.primaryHover,primaryColorPressed:base$2.primaryActive,primaryColorSuppl:base$2.primarySuppl,infoColor:base$2.infoDefault,infoColorHover:base$2.infoHover,infoColorPressed:base$2.infoActive,infoColorSuppl:base$2.infoSuppl,successColor:base$2.successDefault,successColorHover:base$2.successHover,successColorPressed:base$2.successActive,successColorSuppl:base$2.successSuppl,warningColor:base$2.warningDefault,warningColorHover:base$2.warningHover,warningColorPressed:base$2.warningActive,warningColorSuppl:base$2.warningSuppl,errorColor:base$2.errorDefault,errorColorHover:base$2.errorHover,errorColorPressed:base$2.errorActive,errorColorSuppl:base$2.errorSuppl,textColorBase:base$2.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:neutral(base$2.alpha4),placeholderColor:neutral(base$2.alpha4),placeholderColorDisabled:neutral(base$2.alpha5),iconColor:neutral(base$2.alpha4),iconColorHover:scaleColor(neutral(base$2.alpha4),{lightness:.75}),iconColorPressed:scaleColor(neutral(base$2.alpha4),{lightness:.9}),iconColorDisabled:neutral(base$2.alpha5),opacity1:base$2.alpha1,opacity2:base$2.alpha2,opacity3:base$2.alpha3,opacity4:base$2.alpha4,opacity5:base$2.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:neutral(Number(base$2.alphaClose)),closeIconColorHover:neutral(Number(base$2.alphaClose)),closeIconColorPressed:neutral(Number(base$2.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:neutral(base$2.alpha4),clearColorHover:scaleColor(neutral(base$2.alpha4),{lightness:.75}),clearColorPressed:scaleColor(neutral(base$2.alpha4),{lightness:.9}),scrollbarColor:overlay(base$2.alphaScrollbar),scrollbarColorHover:overlay(base$2.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:neutral(base$2.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:base$2.neutralPopover,tableColor:base$2.neutralCard,cardColor:base$2.neutralCard,modalColor:base$2.neutralModal,bodyColor:base$2.neutralBody,tagColor:"#eee",avatarColor:neutral(base$2.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:neutral(base$2.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:base$2.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 commonLight=derived,commonVars$c={iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};const self$17=t=>{const{textColorDisabled:r,iconColor:n,textColor2:o,fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:d,fontSizeHuge:g}=t;return Object.assign(Object.assign({},commonVars$c),{fontSizeSmall:s,fontSizeMedium:l,fontSizeLarge:d,fontSizeHuge:g,textColor:r,iconColor:n,extraTextColor:o})},emptyLight={name:"Empty",common:commonLight,self:self$17};var emptyLight$1=emptyLight;const emptyDark={name:"Empty",common:commonDark,self:self$17};var emptyDark$1=emptyDark,style$1d=cB("empty",`
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
font-size: var(--n-font-size);
|
|
`,[cE("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);
|
|
`,[c$1("+",[cE("description",`
|
|
margin-top: 8px;
|
|
`)])]),cE("description",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`),cE("extra",`
|
|
text-align: center;
|
|
transition: color .3s var(--n-bezier);
|
|
margin-top: 12px;
|
|
color: var(--n-extra-text-color);
|
|
`)]);const emptyProps=Object.assign(Object.assign({},useTheme.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function});var NEmpty=defineComponent({name:"Empty",props:emptyProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Empty","-empty",style$1d,emptyLight$1,t,r),{localeRef:s}=useLocale("Empty"),l=inject(configProviderInjectionKey,null),d=computed(()=>{var C,x,S;return(C=t.description)!==null&&C!==void 0?C:(S=(x=l==null?void 0:l.mergedComponentPropsRef.value)===null||x===void 0?void 0:x.Empty)===null||S===void 0?void 0:S.description}),g=computed(()=>{var C,x;return((x=(C=l==null?void 0:l.mergedComponentPropsRef.value)===null||C===void 0?void 0:C.Empty)===null||x===void 0?void 0:x.renderIcon)||(()=>h(EmptyIcon,null))}),y=computed(()=>{const{size:C}=t,{common:{cubicBezierEaseInOut:x},self:{[createKey("iconSize",C)]:S,[createKey("fontSize",C)]:_,textColor:w,iconColor:$,extraTextColor:I}}=o.value;return{"--n-icon-size":S,"--n-font-size":_,"--n-bezier":x,"--n-text-color":w,"--n-icon-color":$,"--n-extra-text-color":I}}),b=n?useThemeClass("empty",computed(()=>{let C="";const{size:x}=t;return C+=x[0],C}),y,t):void 0;return{mergedClsPrefix:r,mergedRenderIcon:g,localizedDescription:computed(()=>d.value||s.value.description),cssVars:n?void 0:y,themeClass:b==null?void 0:b.themeClass,onRender:b==null?void 0:b.onRender}},render(){const{$slots:t,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),h("div",{class:[`${r}-empty`,this.themeClass],style:this.cssVars},this.showIcon?h("div",{class:`${r}-empty__icon`},t.icon?t.icon():h(NBaseIcon,{clsPrefix:r},{default:this.mergedRenderIcon})):null,this.showDescription?h("div",{class:`${r}-empty__description`},t.default?t.default():this.localizedDescription):null,t.extra?h("div",{class:`${r}-empty__extra`},t.extra()):null)}});const self$16=t=>{const{scrollbarColor:r,scrollbarColorHover:n}=t;return{color:r,colorHover:n}},scrollbarLight={name:"Scrollbar",common:commonLight,self:self$16};var scrollbarLight$1=scrollbarLight;const scrollbarDark={name:"Scrollbar",common:commonDark,self:self$16};var scrollbarDark$1=scrollbarDark;const{cubicBezierEaseInOut:cubicBezierEaseInOut$3}=commonVariables$m;function fadeInTransition({name:t="fade-in",enterDuration:r="0.2s",leaveDuration:n="0.2s",enterCubicBezier:o=cubicBezierEaseInOut$3,leaveCubicBezier:s=cubicBezierEaseInOut$3}={}){return[c$1(`&.${t}-transition-enter-active`,{transition:`all ${r} ${o}!important`}),c$1(`&.${t}-transition-leave-active`,{transition:`all ${n} ${s}!important`}),c$1(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),c$1(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}var style$1c=cB("scrollbar",`
|
|
overflow: hidden;
|
|
position: relative;
|
|
z-index: auto;
|
|
height: 100%;
|
|
width: 100%;
|
|
`,[c$1(">",[cB("scrollbar-container",`
|
|
width: 100%;
|
|
overflow: scroll;
|
|
height: 100%;
|
|
max-height: inherit;
|
|
scrollbar-width: none;
|
|
`,[c$1("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
width: 0;
|
|
height: 0;
|
|
display: none;
|
|
`),c$1(">",[cB("scrollbar-content",`
|
|
box-sizing: border-box;
|
|
min-width: 100%;
|
|
`)])])]),c$1(">, +",[cB("scrollbar-rail",`
|
|
position: absolute;
|
|
pointer-events: none;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`,[cM("horizontal",`
|
|
left: 2px;
|
|
right: 2px;
|
|
bottom: 4px;
|
|
height: var(--n-scrollbar-height);
|
|
`,[c$1(">",[cE("scrollbar",`
|
|
height: var(--n-scrollbar-height);
|
|
border-radius: var(--n-scrollbar-border-radius);
|
|
right: 0;
|
|
`)])]),cM("vertical",`
|
|
right: 4px;
|
|
top: 2px;
|
|
bottom: 2px;
|
|
width: var(--n-scrollbar-width);
|
|
`,[c$1(">",[cE("scrollbar",`
|
|
width: var(--n-scrollbar-width);
|
|
border-radius: var(--n-scrollbar-border-radius);
|
|
bottom: 0;
|
|
`)])]),cM("disabled",[c$1(">",[cE("scrollbar",{pointerEvents:"none"})])]),c$1(">",[cE("scrollbar",`
|
|
position: absolute;
|
|
cursor: pointer;
|
|
pointer-events: all;
|
|
background-color: var(--n-scrollbar-color);
|
|
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
`,[fadeInTransition(),c$1("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]);const scrollbarProps$1=Object.assign(Object.assign({},useTheme.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}),Scrollbar$1=defineComponent({name:"Scrollbar",props:scrollbarProps$1,inheritAttrs:!1,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=useConfig(t),s=useRtl("Scrollbar",o,r),l=ref(null),d=ref(null),g=ref(null),y=ref(null),b=ref(null),C=ref(null),x=ref(null),S=ref(null),_=ref(null),w=ref(null),$=ref(null),I=ref(0),B=ref(0),R=ref(!1),P=ref(!1);let M=!1,O=!1,D,N,H=0,Q=0,G=0,K=0;const W=useIsIos(),j=computed(()=>{const{value:_e}=S,{value:xe}=C,{value:Le}=w;return _e===null||xe===null||Le===null?0:Math.min(_e,Le*_e/xe+t.size*1.5)}),Y=computed(()=>`${j.value}px`),q=computed(()=>{const{value:_e}=_,{value:xe}=x,{value:Le}=$;return _e===null||xe===null||Le===null?0:Le*_e/xe+t.size*1.5}),X=computed(()=>`${q.value}px`),re=computed(()=>{const{value:_e}=S,{value:xe}=I,{value:Le}=C,{value:Ve}=w;if(_e===null||Le===null||Ve===null)return 0;{const ze=Le-_e;return ze?xe/ze*(Ve-j.value):0}}),te=computed(()=>`${re.value}px`),oe=computed(()=>{const{value:_e}=_,{value:xe}=B,{value:Le}=x,{value:Ve}=$;if(_e===null||Le===null||Ve===null)return 0;{const ze=Le-_e;return ze?xe/ze*(Ve-q.value):0}}),ae=computed(()=>`${oe.value}px`),se=computed(()=>{const{value:_e}=S,{value:xe}=C;return _e!==null&&xe!==null&&xe>_e}),ue=computed(()=>{const{value:_e}=_,{value:xe}=x;return _e!==null&&xe!==null&&xe>_e}),Ae=computed(()=>{const{trigger:_e}=t;return _e==="none"||R.value}),pe=computed(()=>{const{trigger:_e}=t;return _e==="none"||P.value}),he=computed(()=>{const{container:_e}=t;return _e?_e():d.value}),Ce=computed(()=>{const{content:_e}=t;return _e?_e():g.value}),ve=useReactivated(()=>{t.container||Se({top:I.value,left:B.value})}),ye=()=>{ve.isDeactivated||be()},Be=_e=>{if(ve.isDeactivated)return;const{onResize:xe}=t;xe&&xe(_e),be()},Se=(_e,xe)=>{if(!t.scrollable)return;if(typeof _e=="number"){ie(xe!=null?xe:0,_e,0,!1,"auto");return}const{left:Le,top:Ve,index:ze,elSize:Re,position:Ne,behavior:je,el:nt,debounce:De=!0}=_e;(Le!==void 0||Ve!==void 0)&&ie(Le!=null?Le:0,Ve!=null?Ve:0,0,!1,je),nt!==void 0?ie(0,nt.offsetTop,nt.offsetHeight,De,je):ze!==void 0&&Re!==void 0?ie(0,ze*Re,Re,De,je):Ne==="bottom"?ie(0,Number.MAX_SAFE_INTEGER,0,!1,je):Ne==="top"&&ie(0,0,0,!1,je)},Ee=(_e,xe)=>{if(!t.scrollable)return;const{value:Le}=he;!Le||(typeof _e=="object"?Le.scrollBy(_e):Le.scrollBy(_e,xe||0))};function ie(_e,xe,Le,Ve,ze){const{value:Re}=he;if(!!Re){if(Ve){const{scrollTop:Ne,offsetHeight:je}=Re;if(xe>Ne){xe+Le<=Ne+je||Re.scrollTo({left:_e,top:xe+Le-je,behavior:ze});return}}Re.scrollTo({left:_e,top:xe,behavior:ze})}}function ee(){le(),me(),be()}function J(){ce()}function ce(){fe(),ne()}function fe(){N!==void 0&&window.clearTimeout(N),N=window.setTimeout(()=>{P.value=!1},t.duration)}function ne(){D!==void 0&&window.clearTimeout(D),D=window.setTimeout(()=>{R.value=!1},t.duration)}function le(){D!==void 0&&window.clearTimeout(D),R.value=!0}function me(){N!==void 0&&window.clearTimeout(N),P.value=!0}function Te(_e){const{onScroll:xe}=t;xe&&xe(_e),ge()}function ge(){const{value:_e}=he;_e&&(I.value=_e.scrollTop,B.value=_e.scrollLeft*(s!=null&&s.value?-1:1))}function $e(){const{value:_e}=Ce;_e&&(C.value=_e.offsetHeight,x.value=_e.offsetWidth);const{value:xe}=he;xe&&(S.value=xe.offsetHeight,_.value=xe.offsetWidth);const{value:Le}=b,{value:Ve}=y;Le&&($.value=Le.offsetWidth),Ve&&(w.value=Ve.offsetHeight)}function de(){const{value:_e}=he;_e&&(I.value=_e.scrollTop,B.value=_e.scrollLeft*(s!=null&&s.value?-1:1),S.value=_e.offsetHeight,_.value=_e.offsetWidth,C.value=_e.scrollHeight,x.value=_e.scrollWidth);const{value:xe}=b,{value:Le}=y;xe&&($.value=xe.offsetWidth),Le&&(w.value=Le.offsetHeight)}function be(){!t.scrollable||(t.useUnifiedContainer?de():($e(),ge()))}function we(_e){var xe;return!(!((xe=l.value)===null||xe===void 0)&&xe.contains(getPreciseEventTarget(_e)))}function Me(_e){_e.preventDefault(),_e.stopPropagation(),O=!0,on("mousemove",window,Ue,!0),on("mouseup",window,Ge,!0),Q=B.value,G=s!=null&&s.value?window.innerWidth-_e.clientX:_e.clientX}function Ue(_e){if(!O)return;D!==void 0&&window.clearTimeout(D),N!==void 0&&window.clearTimeout(N);const{value:xe}=_,{value:Le}=x,{value:Ve}=q;if(xe===null||Le===null)return;const Re=(s!=null&&s.value?window.innerWidth-_e.clientX-G:_e.clientX-G)*(Le-xe)/(xe-Ve),Ne=Le-xe;let je=Q+Re;je=Math.min(Ne,je),je=Math.max(je,0);const{value:nt}=he;if(nt){nt.scrollLeft=je*(s!=null&&s.value?-1:1);const{internalOnUpdateScrollLeft:De}=t;De&&De(je)}}function Ge(_e){_e.preventDefault(),_e.stopPropagation(),off("mousemove",window,Ue,!0),off("mouseup",window,Ge,!0),O=!1,be(),we(_e)&&ce()}function Ze(_e){_e.preventDefault(),_e.stopPropagation(),M=!0,on("mousemove",window,tt,!0),on("mouseup",window,st,!0),H=I.value,K=_e.clientY}function tt(_e){if(!M)return;D!==void 0&&window.clearTimeout(D),N!==void 0&&window.clearTimeout(N);const{value:xe}=S,{value:Le}=C,{value:Ve}=j;if(xe===null||Le===null)return;const Re=(_e.clientY-K)*(Le-xe)/(xe-Ve),Ne=Le-xe;let je=H+Re;je=Math.min(Ne,je),je=Math.max(je,0);const{value:nt}=he;nt&&(nt.scrollTop=je)}function st(_e){_e.preventDefault(),_e.stopPropagation(),off("mousemove",window,tt,!0),off("mouseup",window,st,!0),M=!1,be(),we(_e)&&ce()}watchEffect(()=>{const{value:_e}=ue,{value:xe}=se,{value:Le}=r,{value:Ve}=b,{value:ze}=y;Ve&&(_e?Ve.classList.remove(`${Le}-scrollbar-rail--disabled`):Ve.classList.add(`${Le}-scrollbar-rail--disabled`)),ze&&(xe?ze.classList.remove(`${Le}-scrollbar-rail--disabled`):ze.classList.add(`${Le}-scrollbar-rail--disabled`))}),onMounted(()=>{t.container||be()}),onBeforeUnmount(()=>{D!==void 0&&window.clearTimeout(D),N!==void 0&&window.clearTimeout(N),off("mousemove",window,tt,!0),off("mouseup",window,st,!0)});const We=useTheme("Scrollbar","-scrollbar",style$1c,scrollbarLight$1,t,r),Je=computed(()=>{const{common:{cubicBezierEaseInOut:_e,scrollbarBorderRadius:xe,scrollbarHeight:Le,scrollbarWidth:Ve},self:{color:ze,colorHover:Re}}=We.value;return{"--n-scrollbar-bezier":_e,"--n-scrollbar-color":ze,"--n-scrollbar-color-hover":Re,"--n-scrollbar-border-radius":xe,"--n-scrollbar-width":Ve,"--n-scrollbar-height":Le}}),Ye=n?useThemeClass("scrollbar",void 0,Je,t):void 0;return Object.assign(Object.assign({},{scrollTo:Se,scrollBy:Ee,sync:be,syncUnifiedContainer:de,handleMouseEnterWrapper:ee,handleMouseLeaveWrapper:J}),{mergedClsPrefix:r,rtlEnabled:s,containerScrollTop:I,wrapperRef:l,containerRef:d,contentRef:g,yRailRef:y,xRailRef:b,needYBar:se,needXBar:ue,yBarSizePx:Y,xBarSizePx:X,yBarTopPx:te,xBarLeftPx:ae,isShowXBar:Ae,isShowYBar:pe,isIos:W,handleScroll:Te,handleContentResize:ye,handleContainerResize:Be,handleYScrollMouseDown:Ze,handleXScrollMouseDown:Me,cssVars:n?void 0:Je,themeClass:Ye==null?void 0:Ye.themeClass,onRender:Ye==null?void 0:Ye.onRender})},render(){var t;const{$slots:r,mergedClsPrefix:n,triggerDisplayManually:o,rtlEnabled:s,internalHoistYRail:l}=this;if(!this.scrollable)return(t=r.default)===null||t===void 0?void 0:t.call(r);const d=this.trigger==="none",g=()=>h("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},h(d?Wrapper:Transition,d?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),y=()=>{var C,x;return(C=this.onRender)===null||C===void 0||C.call(this),h("div",mergeProps(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,s&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:o?void 0:this.handleMouseEnterWrapper,onMouseleave:o?void 0:this.handleMouseLeaveWrapper}),[this.container?(x=r.default)===null||x===void 0?void 0:x.call(r):h("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},h(VResizeObserver,{onResize:this.handleContentResize},{default:()=>h("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},r)})),l?null:g(),this.xScrollable&&h("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},h(d?Wrapper:Transition,d?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?h("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:s?this.xBarLeftPx:void 0,left:s?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},b=this.container?y():h(VResizeObserver,{onResize:this.handleContainerResize},{default:y});return l?h(Fragment,null,b,g()):b}});var NScrollbar$1=Scrollbar$1;const XScrollbar=Scrollbar$1;var commonVariables$l={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 self$15=t=>{const{borderRadius:r,popoverColor:n,textColor3:o,dividerColor:s,textColor2:l,primaryColorPressed:d,textColorDisabled:g,primaryColor:y,opacityDisabled:b,hoverColor:C,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:_,fontSizeHuge:w,heightSmall:$,heightMedium:I,heightLarge:B,heightHuge:R}=t;return Object.assign(Object.assign({},commonVariables$l),{optionFontSizeSmall:x,optionFontSizeMedium:S,optionFontSizeLarge:_,optionFontSizeHuge:w,optionHeightSmall:$,optionHeightMedium:I,optionHeightLarge:B,optionHeightHuge:R,borderRadius:r,color:n,groupHeaderTextColor:o,actionDividerColor:s,optionTextColor:l,optionTextColorPressed:d,optionTextColorDisabled:g,optionTextColorActive:y,optionOpacityDisabled:b,optionCheckColor:y,optionColorPending:C,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:C,actionTextColor:l,loadingColor:y})},internalSelectMenuLight={name:"InternalSelectMenu",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Empty:emptyLight$1},self:self$15};var internalSelectMenuLight$1=internalSelectMenuLight;const internalSelectMenuDark={name:"InternalSelectMenu",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Empty:emptyDark$1},self:self$15};var internalSelectMenuDark$1=internalSelectMenuDark;function renderCheckMark(t,r){return h(Transition,{name:"fade-in-scale-up-transition"},{default:()=>t?h(NBaseIcon,{clsPrefix:r,class:`${r}-base-select-option__check`},{default:()=>h(FinishedIcon)}):null})}var NSelectOption=defineComponent({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const{valueRef:r,pendingTmNodeRef:n,multipleRef:o,valueSetRef:s,renderLabelRef:l,renderOptionRef:d,labelFieldRef:g,valueFieldRef:y,showCheckmarkRef:b,nodePropsRef:C,handleOptionClick:x,handleOptionMouseEnter:S}=inject(internalSelectionMenuInjectionKey),_=useMemo(()=>{const{value:B}=n;return B?t.tmNode.key===B.key:!1});function w(B){const{tmNode:R}=t;R.disabled||x(B,R)}function $(B){const{tmNode:R}=t;R.disabled||S(B,R)}function I(B){const{tmNode:R}=t,{value:P}=_;R.disabled||P||S(B,R)}return{multiple:o,isGrouped:useMemo(()=>{const{tmNode:B}=t,{parent:R}=B;return R&&R.rawNode.type==="group"}),showCheckmark:b,nodeProps:C,isPending:_,isSelected:useMemo(()=>{const{value:B}=r,{value:R}=o;if(B===null)return!1;const P=t.tmNode.rawNode[y.value];if(R){const{value:M}=s;return M.has(P)}else return B===P}),labelField:g,renderLabel:l,renderOption:d,handleMouseMove:I,handleMouseEnter:$,handleClick:w}},render(){const{clsPrefix:t,tmNode:{rawNode:r},isSelected:n,isPending:o,isGrouped:s,showCheckmark:l,nodeProps:d,renderOption:g,renderLabel:y,handleClick:b,handleMouseEnter:C,handleMouseMove:x}=this,S=renderCheckMark(n,t),_=y?[y(r,n),l&&S]:[render$2(r[this.labelField],r,n),l&&S],w=d==null?void 0:d(r),$=h("div",Object.assign({},w,{class:[`${t}-base-select-option`,r.class,w==null?void 0:w.class,{[`${t}-base-select-option--disabled`]:r.disabled,[`${t}-base-select-option--selected`]:n,[`${t}-base-select-option--grouped`]:s,[`${t}-base-select-option--pending`]:o,[`${t}-base-select-option--show-checkmark`]:l}],style:[(w==null?void 0:w.style)||"",r.style||""],onClick:mergeEventHandlers([b,w==null?void 0:w.onClick]),onMouseenter:mergeEventHandlers([C,w==null?void 0:w.onMouseenter]),onMousemove:mergeEventHandlers([x,w==null?void 0:w.onMousemove])}),h("div",{class:`${t}-base-select-option__content`},_));return r.render?r.render({node:$,option:r,selected:n}):g?g({node:$,option:r,selected:n}):$}}),NSelectGroupHeader=defineComponent({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:t,renderOptionRef:r,labelFieldRef:n,nodePropsRef:o}=inject(internalSelectionMenuInjectionKey);return{labelField:n,nodeProps:o,renderLabel:t,renderOption:r}},render(){const{clsPrefix:t,renderLabel:r,renderOption:n,nodeProps:o,tmNode:{rawNode:s}}=this,l=o==null?void 0:o(s),d=r?r(s,!1):render$2(s[this.labelField],s,!1),g=h("div",Object.assign({},l,{class:[`${t}-base-select-group-header`,l==null?void 0:l.class]}),d);return s.render?s.render({node:g,option:s}):n?n({node:g,option:s,selected:!1}):g}});const{cubicBezierEaseIn:cubicBezierEaseIn$5,cubicBezierEaseOut:cubicBezierEaseOut$6}=commonVariables$m;function fadeInScaleUpTransition({transformOrigin:t="inherit",duration:r=".2s",enterScale:n=".9",originalTransform:o="",originalTransition:s=""}={}){return[c$1("&.fade-in-scale-up-transition-leave-active",{transformOrigin:t,transition:`opacity ${r} ${cubicBezierEaseIn$5}, transform ${r} ${cubicBezierEaseIn$5} ${s&&","+s}`}),c$1("&.fade-in-scale-up-transition-enter-active",{transformOrigin:t,transition:`opacity ${r} ${cubicBezierEaseOut$6}, transform ${r} ${cubicBezierEaseOut$6} ${s&&","+s}`}),c$1("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${o} scale(${n})`}),c$1("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${o} scale(1)`})]}var style$1b=cB("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);
|
|
`,[cB("scrollbar",`
|
|
max-height: var(--n-height);
|
|
`),cB("virtual-list",`
|
|
max-height: var(--n-height);
|
|
`),cB("base-select-option",`
|
|
min-height: var(--n-option-height);
|
|
font-size: var(--n-option-font-size);
|
|
display: flex;
|
|
align-items: center;
|
|
`,[cE("content",`
|
|
z-index: 1;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
`)]),cB("base-select-group-header",`
|
|
min-height: var(--n-option-height);
|
|
font-size: .93em;
|
|
display: flex;
|
|
align-items: center;
|
|
`),cB("base-select-menu-option-wrapper",`
|
|
position: relative;
|
|
width: 100%;
|
|
`),cE("loading, empty",`
|
|
display: flex;
|
|
padding: 12px 32px;
|
|
flex: 1;
|
|
justify-content: center;
|
|
`),cE("loading",`
|
|
color: var(--n-loading-color);
|
|
font-size: var(--n-loading-size);
|
|
`),cE("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);
|
|
`),cB("base-select-group-header",`
|
|
position: relative;
|
|
cursor: default;
|
|
padding: var(--n-option-padding);
|
|
color: var(--n-group-header-text-color);
|
|
`),cB("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;
|
|
`,[cM("show-checkmark",`
|
|
padding-right: calc(var(--n-option-padding-right) + 20px);
|
|
`),c$1("&::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);
|
|
`),c$1("&:active",`
|
|
color: var(--n-option-text-color-pressed);
|
|
`),cM("grouped",`
|
|
padding-left: calc(var(--n-option-padding-left) * 1.5);
|
|
`),cM("pending",[c$1("&::before",`
|
|
background-color: var(--n-option-color-pending);
|
|
`)]),cM("selected",`
|
|
color: var(--n-option-text-color-active);
|
|
`,[c$1("&::before",`
|
|
background-color: var(--n-option-color-active);
|
|
`),cM("pending",[c$1("&::before",`
|
|
background-color: var(--n-option-color-active-pending);
|
|
`)])]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
`,[cNotM("selected",`
|
|
color: var(--n-option-text-color-disabled);
|
|
`),cM("selected",`
|
|
opacity: var(--n-option-opacity-disabled);
|
|
`)]),cE("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);
|
|
`,[fadeInScaleUpTransition({enterScale:"0.5"})])])]),NInternalSelectMenu=defineComponent({name:"InternalSelectMenu",props:Object.assign(Object.assign({},useTheme.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(t){const r=useTheme("InternalSelectMenu","-internal-select-menu",style$1b,internalSelectMenuLight$1,t,toRef(t,"clsPrefix")),n=ref(null),o=ref(null),s=ref(null),l=computed(()=>t.treeMate.getFlattenedNodes()),d=computed(()=>createIndexGetter(l.value)),g=ref(null);function y(){const{treeMate:oe}=t;let ae=null;const{value:se}=t;se===null?ae=oe.getFirstAvailableNode():(t.multiple?ae=oe.getNode((se||[])[(se||[]).length-1]):ae=oe.getNode(se),(!ae||ae.disabled)&&(ae=oe.getFirstAvailableNode())),K(ae||null)}function b(){const{value:oe}=g;oe&&!t.treeMate.getNode(oe.key)&&(g.value=null)}let C;watch(()=>t.show,oe=>{oe?C=watch(()=>t.treeMate,()=>{t.resetMenuOnOptionsChange?(t.autoPending?y():b(),nextTick(W)):b()},{immediate:!0}):C==null||C()},{immediate:!0}),onBeforeUnmount(()=>{C==null||C()});const x=computed(()=>depx(r.value.self[createKey("optionHeight",t.size)])),S=computed(()=>getMargin(r.value.self[createKey("padding",t.size)])),_=computed(()=>t.multiple&&Array.isArray(t.value)?new Set(t.value):new Set),w=computed(()=>{const oe=l.value;return oe&&oe.length===0});function $(oe){const{onToggle:ae}=t;ae&&ae(oe)}function I(oe){const{onScroll:ae}=t;ae&&ae(oe)}function B(oe){var ae;(ae=s.value)===null||ae===void 0||ae.sync(),I(oe)}function R(){var oe;(oe=s.value)===null||oe===void 0||oe.sync()}function P(){const{value:oe}=g;return oe||null}function M(oe,ae){ae.disabled||K(ae,!1)}function O(oe,ae){ae.disabled||$(ae)}function D(oe){var ae;happensIn(oe,"action")||(ae=t.onKeyup)===null||ae===void 0||ae.call(t,oe)}function N(oe){var ae;happensIn(oe,"action")||(ae=t.onKeydown)===null||ae===void 0||ae.call(t,oe)}function H(oe){var ae;(ae=t.onMousedown)===null||ae===void 0||ae.call(t,oe),!t.focusable&&oe.preventDefault()}function Q(){const{value:oe}=g;oe&&K(oe.getNext({loop:!0}),!0)}function G(){const{value:oe}=g;oe&&K(oe.getPrev({loop:!0}),!0)}function K(oe,ae=!1){g.value=oe,ae&&W()}function W(){var oe,ae;const se=g.value;if(!se)return;const ue=d.value(se.key);ue!==null&&(t.virtualScroll?(oe=o.value)===null||oe===void 0||oe.scrollTo({index:ue}):(ae=s.value)===null||ae===void 0||ae.scrollTo({index:ue,elSize:x.value}))}function j(oe){var ae,se;!((ae=n.value)===null||ae===void 0)&&ae.contains(oe.target)&&((se=t.onFocus)===null||se===void 0||se.call(t,oe))}function Y(oe){var ae,se;!((ae=n.value)===null||ae===void 0)&&ae.contains(oe.relatedTarget)||(se=t.onBlur)===null||se===void 0||se.call(t,oe)}provide(internalSelectionMenuInjectionKey,{handleOptionMouseEnter:M,handleOptionClick:O,valueSetRef:_,pendingTmNodeRef:g,nodePropsRef:toRef(t,"nodeProps"),showCheckmarkRef:toRef(t,"showCheckmark"),multipleRef:toRef(t,"multiple"),valueRef:toRef(t,"value"),renderLabelRef:toRef(t,"renderLabel"),renderOptionRef:toRef(t,"renderOption"),labelFieldRef:toRef(t,"labelField"),valueFieldRef:toRef(t,"valueField")}),provide(internalSelectionMenuBodyInjectionKey,n),onMounted(()=>{const{value:oe}=s;oe&&oe.sync()});const q=computed(()=>{const{size:oe}=t,{common:{cubicBezierEaseInOut:ae},self:{height:se,borderRadius:ue,color:Ae,groupHeaderTextColor:pe,actionDividerColor:he,optionTextColorPressed:Ce,optionTextColor:ve,optionTextColorDisabled:ye,optionTextColorActive:Be,optionOpacityDisabled:Se,optionCheckColor:Ee,actionTextColor:ie,optionColorPending:ee,optionColorActive:J,loadingColor:ce,loadingSize:fe,optionColorActivePending:ne,[createKey("optionFontSize",oe)]:le,[createKey("optionHeight",oe)]:me,[createKey("optionPadding",oe)]:Te}}=r.value;return{"--n-height":se,"--n-action-divider-color":he,"--n-action-text-color":ie,"--n-bezier":ae,"--n-border-radius":ue,"--n-color":Ae,"--n-option-font-size":le,"--n-group-header-text-color":pe,"--n-option-check-color":Ee,"--n-option-color-pending":ee,"--n-option-color-active":J,"--n-option-color-active-pending":ne,"--n-option-height":me,"--n-option-opacity-disabled":Se,"--n-option-text-color":ve,"--n-option-text-color-active":Be,"--n-option-text-color-disabled":ye,"--n-option-text-color-pressed":Ce,"--n-option-padding":Te,"--n-option-padding-left":getMargin(Te,"left"),"--n-option-padding-right":getMargin(Te,"right"),"--n-loading-color":ce,"--n-loading-size":fe}}),{inlineThemeDisabled:X}=t,re=X?useThemeClass("internal-select-menu",computed(()=>t.size[0]),q,t):void 0,te={selfRef:n,next:Q,prev:G,getPendingTmNode:P};return useOnResize(n,t.onResize),Object.assign({mergedTheme:r,virtualListRef:o,scrollbarRef:s,itemSize:x,padding:S,flattenedNodes:l,empty:w,virtualListContainer(){const{value:oe}=o;return oe==null?void 0:oe.listElRef},virtualListContent(){const{value:oe}=o;return oe==null?void 0:oe.itemsElRef},doScroll:I,handleFocusin:j,handleFocusout:Y,handleKeyUp:D,handleKeyDown:N,handleMouseDown:H,handleVirtualListResize:R,handleVirtualListScroll:B,cssVars:X?void 0:q,themeClass:re==null?void 0:re.themeClass,onRender:re==null?void 0:re.onRender},te)},render(){const{$slots:t,virtualScroll:r,clsPrefix:n,mergedTheme:o,themeClass:s,onRender:l}=this;return l==null||l(),h("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${n}-base-select-menu`,s,this.multiple&&`${n}-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?h("div",{class:`${n}-base-select-menu__loading`},h(NBaseLoading,{clsPrefix:n,strokeWidth:20})):this.empty?h("div",{class:`${n}-base-select-menu__empty`,"data-empty":!0},resolveSlot(t.empty,()=>[h(NEmpty,{theme:o.peers.Empty,themeOverrides:o.peerOverrides.Empty})])):h(NScrollbar$1,{ref:"scrollbarRef",theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,scrollable:this.scrollable,container:r?this.virtualListContainer:void 0,content:r?this.virtualListContent:void 0,onScroll:r?void 0:this.doScroll},{default:()=>r?h(VVirtualList,{ref:"virtualListRef",class:`${n}-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:d})=>d.isGroup?h(NSelectGroupHeader,{key:d.key,clsPrefix:n,tmNode:d}):d.ignored?null:h(NSelectOption,{clsPrefix:n,key:d.key,tmNode:d})}):h("div",{class:`${n}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(d=>d.isGroup?h(NSelectGroupHeader,{key:d.key,clsPrefix:n,tmNode:d}):h(NSelectOption,{clsPrefix:n,key:d.key,tmNode:d})))}),resolveWrappedSlot(t.action,d=>d&&[h("div",{class:`${n}-base-select-menu__action`,"data-action":!0,key:"action"},d),h(FocusDetector,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),style$1a=cB("base-wave",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
border-radius: inherit;
|
|
`),NBaseWave=defineComponent({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(t){useStyle("-base-wave",style$1a,toRef(t,"clsPrefix"));const r=ref(null),n=ref(!1);let o=null;return onBeforeUnmount(()=>{o!==null&&window.clearTimeout(o)}),{active:n,selfRef:r,play(){o!==null&&(window.clearTimeout(o),n.value=!1,o=null),nextTick(()=>{var s;(s=r.value)===null||s===void 0||s.offsetHeight,n.value=!0,o=window.setTimeout(()=>{n.value=!1,o=null},1e3)})}}},render(){const{clsPrefix:t}=this;return h("div",{ref:"selfRef","aria-hidden":!0,class:[`${t}-base-wave`,this.active&&`${t}-base-wave--active`]})}}),commonVariables$k={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};const self$14=t=>{const{boxShadow2:r,popoverColor:n,textColor2:o,borderRadius:s,fontSize:l,dividerColor:d}=t;return Object.assign(Object.assign({},commonVariables$k),{fontSize:l,borderRadius:s,color:n,dividerColor:d,textColor:o,boxShadow:r})},popoverLight={name:"Popover",common:commonLight,self:self$14};var popoverLight$1=popoverLight;const popoverDark={name:"Popover",common:commonDark,self:self$14};var popoverDark$1=popoverDark;const oppositePlacement={top:"bottom",bottom:"top",left:"right",right:"left"},arrowSize="var(--n-arrow-height) * 1.414";var style$19=c$1([cB("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);
|
|
word-break: break-word;
|
|
`,[c$1(">",[cB("scrollbar",`
|
|
height: inherit;
|
|
max-height: inherit;
|
|
`)]),cNotM("raw",`
|
|
background-color: var(--n-color);
|
|
border-radius: var(--n-border-radius);
|
|
`,[cNotM("scrollable",[cNotM("show-header-or-footer","padding: var(--n-padding);")])]),cE("header",`
|
|
padding: var(--n-padding);
|
|
border-bottom: 1px solid var(--n-divider-color);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),cE("footer",`
|
|
padding: var(--n-padding);
|
|
border-top: 1px solid var(--n-divider-color);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`),cM("scrollable, show-header-or-footer",[cE("content",`
|
|
padding: var(--n-padding);
|
|
`)])]),cB("popover-shared",`
|
|
transform-origin: inherit;
|
|
`,[cB("popover-arrow-wrapper",`
|
|
position: absolute;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
`,[cB("popover-arrow",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
position: absolute;
|
|
display: block;
|
|
width: calc(${arrowSize});
|
|
height: calc(${arrowSize});
|
|
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
transform: rotate(45deg);
|
|
background-color: var(--n-color);
|
|
pointer-events: all;
|
|
`)]),c$1("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
|
opacity: 0;
|
|
transform: scale(.85);
|
|
`),c$1("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
|
transform: scale(1);
|
|
opacity: 1;
|
|
`),c$1("&.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);
|
|
`),c$1("&.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);
|
|
`)]),placementStyle("top-start",`
|
|
top: calc(${arrowSize} / -2);
|
|
left: calc(${getArrowOffset("top-start")} - var(--v-offset-left));
|
|
`),placementStyle("top",`
|
|
top: calc(${arrowSize} / -2);
|
|
transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
|
|
left: 50%;
|
|
`),placementStyle("top-end",`
|
|
top: calc(${arrowSize} / -2);
|
|
right: calc(${getArrowOffset("top-end")} + var(--v-offset-left));
|
|
`),placementStyle("bottom-start",`
|
|
bottom: calc(${arrowSize} / -2);
|
|
left: calc(${getArrowOffset("bottom-start")} - var(--v-offset-left));
|
|
`),placementStyle("bottom",`
|
|
bottom: calc(${arrowSize} / -2);
|
|
transform: translateX(calc(${arrowSize} / -2)) rotate(45deg);
|
|
left: 50%;
|
|
`),placementStyle("bottom-end",`
|
|
bottom: calc(${arrowSize} / -2);
|
|
right: calc(${getArrowOffset("bottom-end")} + var(--v-offset-left));
|
|
`),placementStyle("left-start",`
|
|
left: calc(${arrowSize} / -2);
|
|
top: calc(${getArrowOffset("left-start")} - var(--v-offset-top));
|
|
`),placementStyle("left",`
|
|
left: calc(${arrowSize} / -2);
|
|
transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
|
|
top: 50%;
|
|
`),placementStyle("left-end",`
|
|
left: calc(${arrowSize} / -2);
|
|
bottom: calc(${getArrowOffset("left-end")} + var(--v-offset-top));
|
|
`),placementStyle("right-start",`
|
|
right: calc(${arrowSize} / -2);
|
|
top: calc(${getArrowOffset("right-start")} - var(--v-offset-top));
|
|
`),placementStyle("right",`
|
|
right: calc(${arrowSize} / -2);
|
|
transform: translateY(calc(${arrowSize} / -2)) rotate(45deg);
|
|
top: 50%;
|
|
`),placementStyle("right-end",`
|
|
right: calc(${arrowSize} / -2);
|
|
bottom: calc(${getArrowOffset("right-end")} + var(--v-offset-top));
|
|
`),...map$2({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(t,r)=>{const n=["right","left"].includes(r),o=n?"width":"height";return t.map(s=>{const l=s.split("-")[1]==="end",g=`calc((${`var(--v-target-${o}, 0px)`} - ${arrowSize}) / 2)`,y=getArrowOffset(s);return c$1(`[v-placement="${s}"] >`,[cB("popover-shared",[cM("center-arrow",[cB("popover-arrow",`${r}: calc(max(${g}, ${y}) ${l?"+":"-"} var(--v-offset-${n?"left":"top"}));`)])])])})})]);function getArrowOffset(t){return["top","bottom"].includes(t.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function placementStyle(t,r){const n=t.split("-")[0],o=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return c$1(`[v-placement="${t}"] >`,[cB("popover-shared",`
|
|
margin-${oppositePlacement[n]}: var(--n-space);
|
|
`,[cM("show-arrow",`
|
|
margin-${oppositePlacement[n]}: var(--n-space-arrow);
|
|
`),cM("overlap",`
|
|
margin: 0;
|
|
`),cCB("popover-arrow-wrapper",`
|
|
right: 0;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
${n}: 100%;
|
|
${oppositePlacement[n]}: auto;
|
|
${o}
|
|
`,[cB("popover-arrow",r)])])])}const popoverBodyProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.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}),renderArrow=({arrowStyle:t,clsPrefix:r})=>h("div",{key:"__popover-arrow__",class:`${r}-popover-arrow-wrapper`},h("div",{class:`${r}-popover-arrow`,style:t}));var NPopoverBody=defineComponent({name:"PopoverBody",inheritAttrs:!1,props:popoverBodyProps,setup(t,{slots:r,attrs:n}){const{namespaceRef:o,mergedClsPrefixRef:s,inlineThemeDisabled:l}=useConfig(t),d=useTheme("Popover","-popover",style$19,popoverLight$1,t,s),g=ref(null),y=inject("NPopover"),b=ref(null),C=ref(t.show),x=ref(!1);watchEffect(()=>{const{show:N}=t;N&&!isJsdom()&&!t.internalDeactivateImmediately&&(x.value=!0)});const S=computed(()=>{const{trigger:N,onClickoutside:H}=t,Q=[],{positionManuallyRef:{value:G}}=y;return G||(N==="click"&&!H&&Q.push([clickoutside$1,M,void 0,{capture:!0}]),N==="hover"&&Q.push([mousemoveoutside$1,P])),H&&Q.push([clickoutside$1,M,void 0,{capture:!0}]),(t.displayDirective==="show"||t.animated&&x.value)&&Q.push([vShow,t.show]),Q}),_=computed(()=>{const N=t.width==="trigger"?void 0:formatLength(t.width),H=[];N&&H.push({width:N});const{maxWidth:Q,minWidth:G}=t;return Q&&H.push({maxWidth:formatLength(Q)}),G&&H.push({maxWidth:formatLength(G)}),l||H.push(w.value),H}),w=computed(()=>{const{common:{cubicBezierEaseInOut:N,cubicBezierEaseIn:H,cubicBezierEaseOut:Q},self:{space:G,spaceArrow:K,padding:W,fontSize:j,textColor:Y,dividerColor:q,color:X,boxShadow:re,borderRadius:te,arrowHeight:oe,arrowOffset:ae,arrowOffsetVertical:se}}=d.value;return{"--n-box-shadow":re,"--n-bezier":N,"--n-bezier-ease-in":H,"--n-bezier-ease-out":Q,"--n-font-size":j,"--n-text-color":Y,"--n-color":X,"--n-divider-color":q,"--n-border-radius":te,"--n-arrow-height":oe,"--n-arrow-offset":ae,"--n-arrow-offset-vertical":se,"--n-padding":W,"--n-space":G,"--n-space-arrow":K}}),$=l?useThemeClass("popover",void 0,w,t):void 0;y.setBodyInstance({syncPosition:I}),onBeforeUnmount(()=>{y.setBodyInstance(null)}),watch(toRef(t,"show"),N=>{t.animated||(N?C.value=!0:C.value=!1)});function I(){var N;(N=g.value)===null||N===void 0||N.syncPosition()}function B(N){t.trigger==="hover"&&t.keepAliveOnHover&&t.show&&y.handleMouseEnter(N)}function R(N){t.trigger==="hover"&&t.keepAliveOnHover&&y.handleMouseLeave(N)}function P(N){t.trigger==="hover"&&!O().contains(getPreciseEventTarget(N))&&y.handleMouseMoveOutside(N)}function M(N){(t.trigger==="click"&&!O().contains(getPreciseEventTarget(N))||t.onClickoutside)&&y.handleClickOutside(N)}function O(){return y.getTriggerElement()}provide(popoverBodyInjectionKey,b),provide(drawerBodyInjectionKey,null),provide(modalBodyInjectionKey,null);function D(){if($==null||$.onRender(),!(t.displayDirective==="show"||t.show||t.animated&&x.value))return null;let H;const Q=y.internalRenderBodyRef.value,{value:G}=s;if(Q)H=Q([`${G}-popover-shared`,$==null?void 0:$.themeClass.value,t.overlap&&`${G}-popover-shared--overlap`,t.showArrow&&`${G}-popover-shared--show-arrow`,t.arrowPointToCenter&&`${G}-popover-shared--center-arrow`],b,_.value,B,R);else{const{value:K}=y.extraClassRef,{internalTrapFocus:W}=t,j=!isSlotEmpty(r.header)||!isSlotEmpty(r.footer),Y=()=>{var q;const X=j?h(Fragment,null,resolveWrappedSlot(r.header,oe=>oe?h("div",{class:`${G}-popover__header`,style:t.headerStyle},oe):null),resolveWrappedSlot(r.default,oe=>oe?h("div",{class:`${G}-popover__content`,style:t.contentStyle},r):null),resolveWrappedSlot(r.footer,oe=>oe?h("div",{class:`${G}-popover__footer`,style:t.footerStyle},oe):null)):t.scrollable?(q=r.default)===null||q===void 0?void 0:q.call(r):h("div",{class:`${G}-popover__content`,style:t.contentStyle},r),re=t.scrollable?h(XScrollbar,{contentClass:j?void 0:`${G}-popover__content`,contentStyle:j?void 0:t.contentStyle},{default:()=>X}):X,te=t.showArrow?renderArrow({arrowStyle:t.arrowStyle,clsPrefix:G}):null;return[re,te]};H=h("div",mergeProps({class:[`${G}-popover`,`${G}-popover-shared`,$==null?void 0:$.themeClass.value,K.map(q=>`${G}-${q}`),{[`${G}-popover--scrollable`]:t.scrollable,[`${G}-popover--show-header-or-footer`]:j,[`${G}-popover--raw`]:t.raw,[`${G}-popover-shared--overlap`]:t.overlap,[`${G}-popover-shared--show-arrow`]:t.showArrow,[`${G}-popover-shared--center-arrow`]:t.arrowPointToCenter}],ref:b,style:_.value,onKeydown:y.handleKeydown,onMouseenter:B,onMouseleave:R},n),W?h(FocusTrap,{active:t.show,autoFocus:!0},{default:Y}):Y())}return withDirectives(H,S.value)}return{displayed:x,namespace:o,isMounted:y.isMountedRef,zIndex:y.zIndexRef,followerRef:g,adjustedTo:useAdjustedTo(t),followerEnabled:C,renderContentNode:D}},render(){return h(VFollower,{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===useAdjustedTo.tdkey},{default:()=>this.animated?h(Transition,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var t;(t=this.internalOnAfterLeave)===null||t===void 0||t.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}});const bodyPropKeys=Object.keys(popoverBodyProps),triggerEventMap={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function appendEvents(t,r,n){triggerEventMap[r].forEach(o=>{t.props?t.props=Object.assign({},t.props):t.props={};const s=t.props[o],l=n[o];s?t.props[o]=(...d)=>{s(...d),l(...d)}:t.props[o]=l})}const textVNodeType=createTextVNode("").type,popoverBaseProps={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:useAdjustedTo.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},popoverProps=Object.assign(Object.assign(Object.assign({},useTheme.props),popoverBaseProps),{internalOnAfterLeave:Function,internalRenderBody:Function});var NPopover=defineComponent({name:"Popover",inheritAttrs:!1,props:popoverProps,__popover__:!0,setup(t){const r=isMounted(),n=ref(null),o=computed(()=>t.show),s=ref(t.defaultShow),l=useMergedState(o,s),d=useMemo(()=>t.disabled?!1:l.value),g=()=>{if(t.disabled)return!0;const{getDisabled:Y}=t;return!!(Y!=null&&Y())},y=()=>g()?!1:l.value,b=useCompitable(t,["arrow","showArrow"]),C=computed(()=>t.overlap?!1:b.value);let x=null;const S=ref(null),_=ref(null),w=useMemo(()=>t.x!==void 0&&t.y!==void 0);function $(Y){const{"onUpdate:show":q,onUpdateShow:X,onShow:re,onHide:te}=t;s.value=Y,q&&call(q,Y),X&&call(X,Y),Y&&re&&call(re,!0),Y&&te&&call(te,!1)}function I(){x&&x.syncPosition()}function B(){const{value:Y}=S;Y&&(window.clearTimeout(Y),S.value=null)}function R(){const{value:Y}=_;Y&&(window.clearTimeout(Y),_.value=null)}function P(){const Y=g();if(t.trigger==="focus"&&!Y){if(y())return;$(!0)}}function M(){const Y=g();if(t.trigger==="focus"&&!Y){if(!y())return;$(!1)}}function O(){const Y=g();if(t.trigger==="hover"&&!Y){if(R(),S.value!==null||y())return;const q=()=>{$(!0),S.value=null},{delay:X}=t;X===0?q():S.value=window.setTimeout(q,X)}}function D(){const Y=g();if(t.trigger==="hover"&&!Y){if(B(),_.value!==null||!y())return;const q=()=>{$(!1),_.value=null},{duration:X}=t;X===0?q():_.value=window.setTimeout(q,X)}}function N(){D()}function H(Y){var q;!y()||(t.trigger==="click"&&(B(),R(),$(!1)),(q=t.onClickoutside)===null||q===void 0||q.call(t,Y))}function Q(){if(t.trigger==="click"&&!g()){B(),R();const Y=!y();$(Y)}}function G(Y){!t.internalTrapFocus||Y.key==="Escape"&&(B(),R(),$(!1))}function K(Y){s.value=Y}function W(){var Y;return(Y=n.value)===null||Y===void 0?void 0:Y.targetRef}function j(Y){x=Y}return provide("NPopover",{getTriggerElement:W,handleKeydown:G,handleMouseEnter:O,handleMouseLeave:D,handleClickOutside:H,handleMouseMoveOutside:N,setBodyInstance:j,positionManuallyRef:w,isMountedRef:r,zIndexRef:toRef(t,"zIndex"),extraClassRef:toRef(t,"internalExtraClass"),internalRenderBodyRef:toRef(t,"internalRenderBody")}),watchEffect(()=>{l.value&&g()&&$(!1)}),{binderInstRef:n,positionManually:w,mergedShowConsideringDisabledProp:d,uncontrolledShow:s,mergedShowArrow:C,getMergedShow:y,setShow:K,handleClick:Q,handleMouseEnter:O,handleMouseLeave:D,handleFocus:P,handleBlur:M,syncPosition:I}},render(){var t;const{positionManually:r,$slots:n}=this;let o,s=!1;if(!r&&(n.activator?o=getFirstSlotVNode(n,"activator"):o=getFirstSlotVNode(n,"trigger"),o)){o=cloneVNode(o),o=o.type===textVNodeType?h("span",[o]):o;const l={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((t=o.type)===null||t===void 0)&&t.__popover__)s=!0,o.props||(o.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),o.props.internalSyncTargetWithParent=!0,o.props.internalInheritedEventHandlers?o.props.internalInheritedEventHandlers=[l,...o.props.internalInheritedEventHandlers]:o.props.internalInheritedEventHandlers=[l];else{const{internalInheritedEventHandlers:d}=this,g=[l,...d],y={onBlur:b=>{g.forEach(C=>{C.onBlur(b)})},onFocus:b=>{g.forEach(C=>{C.onFocus(b)})},onClick:b=>{g.forEach(C=>{C.onClick(b)})},onMouseenter:b=>{g.forEach(C=>{C.onMouseenter(b)})},onMouseleave:b=>{g.forEach(C=>{C.onMouseleave(b)})}};appendEvents(o,d?"nested":r?"manual":this.trigger,y)}}return h(VBinder,{ref:"binderInstRef",syncTarget:!s,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const l=this.getMergedShow();return[this.internalTrapFocus&&l?withDirectives(h("div",{style:{position:"fixed",inset:0}}),[[zindexable$1,{enabled:l,zIndex:this.zIndex}]]):null,r?null:h(VTarget,null,{default:()=>o}),h(NPopoverBody,keep(this.$props,bodyPropKeys,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:l})),{default:()=>{var d,g;return(g=(d=this.$slots).default)===null||g===void 0?void 0:g.call(d)},header:()=>{var d,g;return(g=(d=this.$slots).header)===null||g===void 0?void 0:g.call(d)},footer:()=>{var d,g;return(g=(d=this.$slots).footer)===null||g===void 0?void 0:g.call(d)}})]}})}}),commonVariables$j={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 tagDark={name:"Tag",common:commonDark,self(t){const{textColor2:r,primaryColorHover:n,primaryColorPressed:o,primaryColor:s,infoColor:l,successColor:d,warningColor:g,errorColor:y,baseColor:b,borderColor:C,tagColor:x,opacityDisabled:S,closeIconColor:_,closeIconColorHover:w,closeIconColorPressed:$,closeColorHover:I,closeColorPressed:B,borderRadiusSmall:R,fontSizeMini:P,fontSizeTiny:M,fontSizeSmall:O,fontSizeMedium:D,heightMini:N,heightTiny:H,heightSmall:Q,heightMedium:G,buttonColor2Hover:K,buttonColor2Pressed:W,fontWeightStrong:j}=t;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:R,heightTiny:N,heightSmall:H,heightMedium:Q,heightLarge:G,borderRadius:R,opacityDisabled:S,fontSizeTiny:P,fontSizeSmall:M,fontSizeMedium:O,fontSizeLarge:D,fontWeightStrong:j,textColorCheckable:r,textColorHoverCheckable:r,textColorPressedCheckable:r,textColorChecked:b,colorCheckable:"#0000",colorHoverCheckable:K,colorPressedCheckable:W,colorChecked:s,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${C}`,textColor:r,color:x,colorBordered:"#0000",closeIconColor:_,closeIconColorHover:w,closeIconColorPressed:$,closeColorHover:I,closeColorPressed:B,borderPrimary:`1px solid ${changeColor(s,{alpha:.3})}`,textColorPrimary:s,colorPrimary:changeColor(s,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:scaleColor(s,{lightness:.7}),closeIconColorHoverPrimary:scaleColor(s,{lightness:.7}),closeIconColorPressedPrimary:scaleColor(s,{lightness:.7}),closeColorHoverPrimary:changeColor(s,{alpha:.16}),closeColorPressedPrimary:changeColor(s,{alpha:.12}),borderInfo:`1px solid ${changeColor(l,{alpha:.3})}`,textColorInfo:l,colorInfo:changeColor(l,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:scaleColor(l,{alpha:.7}),closeIconColorHoverInfo:scaleColor(l,{alpha:.7}),closeIconColorPressedInfo:scaleColor(l,{alpha:.7}),closeColorHoverInfo:changeColor(l,{alpha:.16}),closeColorPressedInfo:changeColor(l,{alpha:.12}),borderSuccess:`1px solid ${changeColor(d,{alpha:.3})}`,textColorSuccess:d,colorSuccess:changeColor(d,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:scaleColor(d,{alpha:.7}),closeIconColorHoverSuccess:scaleColor(d,{alpha:.7}),closeIconColorPressedSuccess:scaleColor(d,{alpha:.7}),closeColorHoverSuccess:changeColor(d,{alpha:.16}),closeColorPressedSuccess:changeColor(d,{alpha:.12}),borderWarning:`1px solid ${changeColor(g,{alpha:.3})}`,textColorWarning:g,colorWarning:changeColor(g,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:scaleColor(g,{alpha:.7}),closeIconColorHoverWarning:scaleColor(g,{alpha:.7}),closeIconColorPressedWarning:scaleColor(g,{alpha:.7}),closeColorHoverWarning:changeColor(g,{alpha:.16}),closeColorPressedWarning:changeColor(g,{alpha:.11}),borderError:`1px solid ${changeColor(y,{alpha:.3})}`,textColorError:y,colorError:changeColor(y,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:scaleColor(y,{alpha:.7}),closeIconColorHoverError:scaleColor(y,{alpha:.7}),closeIconColorPressedError:scaleColor(y,{alpha:.7}),closeColorHoverError:changeColor(y,{alpha:.16}),closeColorPressedError:changeColor(y,{alpha:.12})})}};var tagDark$1=tagDark;const self$13=t=>{const{textColor2:r,primaryColorHover:n,primaryColorPressed:o,primaryColor:s,infoColor:l,successColor:d,warningColor:g,errorColor:y,baseColor:b,borderColor:C,opacityDisabled:x,tagColor:S,closeIconColor:_,closeIconColorHover:w,closeIconColorPressed:$,borderRadiusSmall:I,fontSizeMini:B,fontSizeTiny:R,fontSizeSmall:P,fontSizeMedium:M,heightMini:O,heightTiny:D,heightSmall:N,heightMedium:H,closeColorHover:Q,closeColorPressed:G,buttonColor2Hover:K,buttonColor2Pressed:W,fontWeightStrong:j}=t;return Object.assign(Object.assign({},commonVariables$j),{closeBorderRadius:I,heightTiny:O,heightSmall:D,heightMedium:N,heightLarge:H,borderRadius:I,opacityDisabled:x,fontSizeTiny:B,fontSizeSmall:R,fontSizeMedium:P,fontSizeLarge:M,fontWeightStrong:j,textColorCheckable:r,textColorHoverCheckable:r,textColorPressedCheckable:r,textColorChecked:b,colorCheckable:"#0000",colorHoverCheckable:K,colorPressedCheckable:W,colorChecked:s,colorCheckedHover:n,colorCheckedPressed:o,border:`1px solid ${C}`,textColor:r,color:S,colorBordered:"rgb(250, 250, 252)",closeIconColor:_,closeIconColorHover:w,closeIconColorPressed:$,closeColorHover:Q,closeColorPressed:G,borderPrimary:`1px solid ${changeColor(s,{alpha:.3})}`,textColorPrimary:s,colorPrimary:changeColor(s,{alpha:.12}),colorBorderedPrimary:changeColor(s,{alpha:.1}),closeIconColorPrimary:s,closeIconColorHoverPrimary:s,closeIconColorPressedPrimary:s,closeColorHoverPrimary:changeColor(s,{alpha:.12}),closeColorPressedPrimary:changeColor(s,{alpha:.18}),borderInfo:`1px solid ${changeColor(l,{alpha:.3})}`,textColorInfo:l,colorInfo:changeColor(l,{alpha:.12}),colorBorderedInfo:changeColor(l,{alpha:.1}),closeIconColorInfo:l,closeIconColorHoverInfo:l,closeIconColorPressedInfo:l,closeColorHoverInfo:changeColor(l,{alpha:.12}),closeColorPressedInfo:changeColor(l,{alpha:.18}),borderSuccess:`1px solid ${changeColor(d,{alpha:.3})}`,textColorSuccess:d,colorSuccess:changeColor(d,{alpha:.12}),colorBorderedSuccess:changeColor(d,{alpha:.1}),closeIconColorSuccess:d,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:d,closeColorHoverSuccess:changeColor(d,{alpha:.12}),closeColorPressedSuccess:changeColor(d,{alpha:.18}),borderWarning:`1px solid ${changeColor(g,{alpha:.35})}`,textColorWarning:g,colorWarning:changeColor(g,{alpha:.15}),colorBorderedWarning:changeColor(g,{alpha:.12}),closeIconColorWarning:g,closeIconColorHoverWarning:g,closeIconColorPressedWarning:g,closeColorHoverWarning:changeColor(g,{alpha:.12}),closeColorPressedWarning:changeColor(g,{alpha:.18}),borderError:`1px solid ${changeColor(y,{alpha:.23})}`,textColorError:y,colorError:changeColor(y,{alpha:.1}),colorBorderedError:changeColor(y,{alpha:.08}),closeIconColorError:y,closeIconColorHoverError:y,closeIconColorPressedError:y,closeColorHoverError:changeColor(y,{alpha:.12}),closeColorPressedError:changeColor(y,{alpha:.18})})},tagLight={name:"Tag",common:commonLight,self:self$13};var tagLight$1=tagLight,commonProps={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},style$18=cB("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);
|
|
`,[cM("strong",`
|
|
font-weight: var(--n-font-weight-strong);
|
|
`),cE("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);
|
|
`),cE("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);
|
|
`),cE("avatar",`
|
|
display: flex;
|
|
margin: 0 6px 0 0;
|
|
`),cE("close",`
|
|
margin: var(--n-close-margin);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`),cM("round",`
|
|
padding: 0 calc(var(--n-height) / 3);
|
|
border-radius: calc(var(--n-height) / 2);
|
|
`,[cE("icon",`
|
|
margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
|
|
`),cE("avatar",`
|
|
margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
|
|
`),cM("closable",`
|
|
padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
|
|
`)]),cM("icon, avatar",[cM("round",`
|
|
padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
|
|
`)]),cM("disabled",`
|
|
cursor: not-allowed !important;
|
|
opacity: var(--n-opacity-disabled);
|
|
`),cM("checkable",`
|
|
cursor: pointer;
|
|
box-shadow: none;
|
|
color: var(--n-text-color-checkable);
|
|
background-color: var(--n-color-checkable);
|
|
`,[cNotM("disabled",[c$1("&:hover","background-color: var(--n-color-hover-checkable);",[cNotM("checked","color: var(--n-text-color-hover-checkable);")]),c$1("&:active","background-color: var(--n-color-pressed-checkable);",[cNotM("checked","color: var(--n-text-color-pressed-checkable);")])]),cM("checked",`
|
|
color: var(--n-text-color-checked);
|
|
background-color: var(--n-color-checked);
|
|
`,[cNotM("disabled",[c$1("&:hover","background-color: var(--n-color-checked-hover);"),c$1("&:active","background-color: var(--n-color-checked-pressed);")])])])]);const tagProps=Object.assign(Object.assign(Object.assign({},useTheme.props),commonProps),{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}),tagInjectionKey="n-tag";var NTag=defineComponent({name:"Tag",props:tagProps,setup(t){const r=ref(null),{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:s,mergedRtlRef:l}=useConfig(t),d=useTheme("Tag","-tag",style$18,tagLight$1,t,o);provide(tagInjectionKey,{roundRef:toRef(t,"round")});function g(_){if(!t.disabled&&t.checkable){const{checked:w,onCheckedChange:$,onUpdateChecked:I,"onUpdate:checked":B}=t;I&&I(!w),B&&B(!w),$&&$(!w)}}function y(_){if(t.triggerClickOnClose||_.stopPropagation(),!t.disabled){const{onClose:w}=t;w&&call(w,_)}}const b={setTextContent(_){const{value:w}=r;w&&(w.textContent=_)}},C=useRtl("Tag",l,o),x=computed(()=>{const{type:_,size:w,color:{color:$,textColor:I}={}}=t,{common:{cubicBezierEaseInOut:B},self:{padding:R,closeMargin:P,closeMarginRtl:M,borderRadius:O,opacityDisabled:D,textColorCheckable:N,textColorHoverCheckable:H,textColorPressedCheckable:Q,textColorChecked:G,colorCheckable:K,colorHoverCheckable:W,colorPressedCheckable:j,colorChecked:Y,colorCheckedHover:q,colorCheckedPressed:X,closeBorderRadius:re,fontWeightStrong:te,[createKey("colorBordered",_)]:oe,[createKey("closeSize",w)]:ae,[createKey("closeIconSize",w)]:se,[createKey("fontSize",w)]:ue,[createKey("height",w)]:Ae,[createKey("color",_)]:pe,[createKey("textColor",_)]:he,[createKey("border",_)]:Ce,[createKey("closeIconColor",_)]:ve,[createKey("closeIconColorHover",_)]:ye,[createKey("closeIconColorPressed",_)]:Be,[createKey("closeColorHover",_)]:Se,[createKey("closeColorPressed",_)]:Ee}}=d.value;return{"--n-font-weight-strong":te,"--n-avatar-size-override":`calc(${Ae} - 8px)`,"--n-bezier":B,"--n-border-radius":O,"--n-border":Ce,"--n-close-icon-size":se,"--n-close-color-pressed":Ee,"--n-close-color-hover":Se,"--n-close-border-radius":re,"--n-close-icon-color":ve,"--n-close-icon-color-hover":ye,"--n-close-icon-color-pressed":Be,"--n-close-icon-color-disabled":ve,"--n-close-margin":P,"--n-close-margin-rtl":M,"--n-close-size":ae,"--n-color":$||(n.value?oe:pe),"--n-color-checkable":K,"--n-color-checked":Y,"--n-color-checked-hover":q,"--n-color-checked-pressed":X,"--n-color-hover-checkable":W,"--n-color-pressed-checkable":j,"--n-font-size":ue,"--n-height":Ae,"--n-opacity-disabled":D,"--n-padding":R,"--n-text-color":I||he,"--n-text-color-checkable":N,"--n-text-color-checked":G,"--n-text-color-hover-checkable":H,"--n-text-color-pressed-checkable":Q}}),S=s?useThemeClass("tag",computed(()=>{let _="";const{type:w,size:$,color:{color:I,textColor:B}={}}=t;return _+=w[0],_+=$[0],I&&(_+=`a${color2Class(I)}`),B&&(_+=`b${color2Class(B)}`),n.value&&(_+="c"),_}),x,t):void 0;return Object.assign(Object.assign({},b),{rtlEnabled:C,mergedClsPrefix:o,contentRef:r,mergedBordered:n,handleClick:g,handleCloseClick:y,cssVars:s?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender})},render(){var t,r;const{mergedClsPrefix:n,rtlEnabled:o,closable:s,color:{borderColor:l}={},round:d,onRender:g,$slots:y}=this;g==null||g();const b=resolveWrappedSlot(y.avatar,x=>x&&h("div",{class:`${n}-tag__avatar`},x)),C=resolveWrappedSlot(y.icon,x=>x&&h("div",{class:`${n}-tag__icon`},x));return h("div",{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:o,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:d,[`${n}-tag--avatar`]:b,[`${n}-tag--icon`]:C,[`${n}-tag--closable`]:s}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},C||b,h("span",{class:`${n}-tag__content`,ref:"contentRef"},(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t)),!this.checkable&&s?h(NBaseClose,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:d,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?h("div",{class:`${n}-tag__border`,style:{borderColor:l}}):null)}}),style$17=cB("base-clear",`
|
|
flex-shrink: 0;
|
|
height: 1em;
|
|
width: 1em;
|
|
position: relative;
|
|
`,[c$1(">",[cE("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;
|
|
`,[c$1("&:hover",`
|
|
color: var(--n-clear-color-hover)!important;
|
|
`),c$1("&:active",`
|
|
color: var(--n-clear-color-pressed)!important;
|
|
`)]),cE("placeholder",`
|
|
display: flex;
|
|
`),cE("clear, placeholder",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[iconSwitchTransition({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),NBaseClear=defineComponent({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(t){return useStyle("-base-clear",style$17,toRef(t,"clsPrefix")),{handleMouseDown(r){r.preventDefault()}}},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-base-clear`},h(NIconSwitchTransition,null,{default:()=>{var r,n;return this.show?h("div",{key:"dismiss",class:`${t}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},resolveSlot(this.$slots.icon,()=>[h(NBaseIcon,{clsPrefix:t},{default:()=>h(ClearIcon,null)})])):h("div",{key:"icon",class:`${t}-base-clear__placeholder`},(n=(r=this.$slots).placeholder)===null||n===void 0?void 0:n.call(r))}}))}}),NBaseSuffix=defineComponent({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(t,{slots:r}){return()=>{const{clsPrefix:n}=t;return h(NBaseLoading,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:t.loading},{default:()=>t.showArrow?h(NBaseClear,{clsPrefix:n,show:t.showClear,onClear:t.onClear},{placeholder:()=>h(NBaseIcon,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>resolveSlot(r.default,()=>[h(ChevronDownIcon,null)])})}):null})}}}),commonVars$b={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};const self$12=t=>{const{borderRadius:r,textColor2:n,textColorDisabled:o,inputColor:s,inputColorDisabled:l,primaryColor:d,primaryColorHover:g,warningColor:y,warningColorHover:b,errorColor:C,errorColorHover:x,borderColor:S,iconColor:_,iconColorDisabled:w,clearColor:$,clearColorHover:I,clearColorPressed:B,placeholderColor:R,placeholderColorDisabled:P,fontSizeTiny:M,fontSizeSmall:O,fontSizeMedium:D,fontSizeLarge:N,heightTiny:H,heightSmall:Q,heightMedium:G,heightLarge:K}=t;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:M,fontSizeSmall:O,fontSizeMedium:D,fontSizeLarge:N,heightTiny:H,heightSmall:Q,heightMedium:G,heightLarge:K,borderRadius:r,textColor:n,textColorDisabled:o,placeholderColor:R,placeholderColorDisabled:P,color:s,colorDisabled:l,colorActive:s,border:`1px solid ${S}`,borderHover:`1px solid ${g}`,borderActive:`1px solid ${d}`,borderFocus:`1px solid ${g}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${changeColor(d,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${changeColor(d,{alpha:.2})}`,caretColor:d,arrowColor:_,arrowColorDisabled:w,loadingColor:d,borderWarning:`1px solid ${y}`,borderHoverWarning:`1px solid ${b}`,borderActiveWarning:`1px solid ${y}`,borderFocusWarning:`1px solid ${b}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${changeColor(y,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(y,{alpha:.2})}`,colorActiveWarning:s,caretColorWarning:y,borderError:`1px solid ${C}`,borderHoverError:`1px solid ${x}`,borderActiveError:`1px solid ${C}`,borderFocusError:`1px solid ${x}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${changeColor(C,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${changeColor(C,{alpha:.2})}`,colorActiveError:s,caretColorError:C,clearColor:$,clearColorHover:I,clearColorPressed:B})},internalSelectionLight={name:"InternalSelection",common:commonLight,peers:{Popover:popoverLight$1},self:self$12};var internalSelectionLight$1=internalSelectionLight;const internalSelectionDark={name:"InternalSelection",common:commonDark,peers:{Popover:popoverDark$1},self(t){const{borderRadius:r,textColor2:n,textColorDisabled:o,inputColor:s,inputColorDisabled:l,primaryColor:d,primaryColorHover:g,warningColor:y,warningColorHover:b,errorColor:C,errorColorHover:x,iconColor:S,iconColorDisabled:_,clearColor:w,clearColorHover:$,clearColorPressed:I,placeholderColor:B,placeholderColorDisabled:R,fontSizeTiny:P,fontSizeSmall:M,fontSizeMedium:O,fontSizeLarge:D,heightTiny:N,heightSmall:H,heightMedium:Q,heightLarge:G}=t;return Object.assign(Object.assign({},commonVars$b),{fontSizeTiny:P,fontSizeSmall:M,fontSizeMedium:O,fontSizeLarge:D,heightTiny:N,heightSmall:H,heightMedium:Q,heightLarge:G,borderRadius:r,textColor:n,textColorDisabled:o,placeholderColor:B,placeholderColorDisabled:R,color:s,colorDisabled:l,colorActive:changeColor(d,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${g}`,borderActive:`1px solid ${d}`,borderFocus:`1px solid ${g}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${changeColor(d,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${changeColor(d,{alpha:.4})}`,caretColor:d,arrowColor:S,arrowColorDisabled:_,loadingColor:d,borderWarning:`1px solid ${y}`,borderHoverWarning:`1px solid ${b}`,borderActiveWarning:`1px solid ${y}`,borderFocusWarning:`1px solid ${b}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${changeColor(y,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${changeColor(y,{alpha:.4})}`,colorActiveWarning:changeColor(y,{alpha:.1}),caretColorWarning:y,borderError:`1px solid ${C}`,borderHoverError:`1px solid ${x}`,borderActiveError:`1px solid ${C}`,borderFocusError:`1px solid ${x}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${changeColor(C,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${changeColor(C,{alpha:.4})}`,colorActiveError:changeColor(C,{alpha:.1}),caretColorError:C,clearColor:w,clearColorHover:$,clearColorPressed:I})}};var internalSelectionDark$1=internalSelectionDark,style$16=c$1([cB("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);
|
|
`,[cB("base-loading",`
|
|
color: var(--n-loading-color);
|
|
`),cB("base-selection-tags","min-height: var(--n-height);"),cE("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);
|
|
`),cE("state-border",`
|
|
z-index: 1;
|
|
border-color: #0000;
|
|
`),cB("base-suffix",`
|
|
cursor: pointer;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
right: 10px;
|
|
`,[cE("arrow",`
|
|
font-size: var(--n-arrow-size);
|
|
color: var(--n-arrow-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`)]),cB("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);
|
|
`,[cE("wrapper",`
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
`)]),cB("base-selection-placeholder",`
|
|
color: var(--n-placeholder-color);
|
|
`,[cE("inner",`
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
`)]),cB("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);
|
|
`),cB("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;
|
|
`,[cB("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);
|
|
`,[cE("content",`
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
`)]),cE("render-label",`
|
|
color: var(--n-text-color);
|
|
`)]),cNotM("disabled",[c$1("&:hover",[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-hover);
|
|
border: var(--n-border-hover);
|
|
`)]),cM("focus",[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
border: var(--n-border-focus);
|
|
`)]),cM("active",[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-active);
|
|
border: var(--n-border-active);
|
|
`),cB("base-selection-label","background-color: var(--n-color-active);"),cB("base-selection-tags","background-color: var(--n-color-active);")])]),cM("disabled","cursor: not-allowed;",[cE("arrow",`
|
|
color: var(--n-arrow-color-disabled);
|
|
`),cB("base-selection-label",`
|
|
cursor: not-allowed;
|
|
background-color: var(--n-color-disabled);
|
|
`,[cB("base-selection-input",`
|
|
cursor: not-allowed;
|
|
color: var(--n-text-color-disabled);
|
|
`),cE("render-label",`
|
|
color: var(--n-text-color-disabled);
|
|
`)]),cB("base-selection-tags",`
|
|
cursor: not-allowed;
|
|
background-color: var(--n-color-disabled);
|
|
`),cB("base-selection-placeholder",`
|
|
cursor: not-allowed;
|
|
color: var(--n-placeholder-color-disabled);
|
|
`)]),cB("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;
|
|
`,[cE("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);
|
|
`),cE("mirror",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
white-space: pre;
|
|
visibility: hidden;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
opacity: 0;
|
|
`)]),["warning","error"].map(t=>cM(`${t}-status`,[cE("state-border",`border: var(--n-border-${t});`),cNotM("disabled",[c$1("&:hover",[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-hover-${t});
|
|
border: var(--n-border-hover-${t});
|
|
`)]),cM("active",[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-active-${t});
|
|
border: var(--n-border-active-${t});
|
|
`),cB("base-selection-label",`background-color: var(--n-color-active-${t});`),cB("base-selection-tags",`background-color: var(--n-color-active-${t});`)]),cM("focus",[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus-${t});
|
|
border: var(--n-border-focus-${t});
|
|
`)])])]))]),cB("base-selection-popover",`
|
|
margin-bottom: -3px;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
margin-right: -8px;
|
|
`),cB("base-selection-tag-wrapper",`
|
|
max-width: 100%;
|
|
display: inline-flex;
|
|
padding: 0 7px 3px 0;
|
|
`,[c$1("&:last-child","padding-right: 0;"),cB("tag",`
|
|
font-size: 14px;
|
|
max-width: 100%;
|
|
`,[cE("content",`
|
|
line-height: 1.25;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
`)])])]),NInternalSelection=defineComponent({name:"InternalSelection",props:Object.assign(Object.assign({},useTheme.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(t){const r=ref(null),n=ref(null),o=ref(null),s=ref(null),l=ref(null),d=ref(null),g=ref(null),y=ref(null),b=ref(null),C=ref(null),x=ref(!1),S=ref(!1),_=ref(!1),w=useTheme("InternalSelection","-internal-selection",style$16,internalSelectionLight$1,t,toRef(t,"clsPrefix")),$=computed(()=>t.clearable&&!t.disabled&&(_.value||t.active)),I=computed(()=>t.selectedOption?t.renderTag?t.renderTag({option:t.selectedOption,handleClose:()=>{}}):t.renderLabel?t.renderLabel(t.selectedOption,!0):render$2(t.selectedOption[t.labelField],t.selectedOption,!0):t.placeholder),B=computed(()=>{const ge=t.selectedOption;if(!!ge)return ge[t.labelField]}),R=computed(()=>t.multiple?!!(Array.isArray(t.selectedOptions)&&t.selectedOptions.length):t.selectedOption!==null);function P(){var ge;const{value:$e}=r;if($e){const{value:de}=n;de&&(de.style.width=`${$e.offsetWidth}px`,t.maxTagCount!=="responsive"&&((ge=b.value)===null||ge===void 0||ge.sync()))}}function M(){const{value:ge}=C;ge&&(ge.style.display="none")}function O(){const{value:ge}=C;ge&&(ge.style.display="inline-block")}watch(toRef(t,"active"),ge=>{ge||M()}),watch(toRef(t,"pattern"),()=>{t.multiple&&nextTick(P)});function D(ge){const{onFocus:$e}=t;$e&&$e(ge)}function N(ge){const{onBlur:$e}=t;$e&&$e(ge)}function H(ge){const{onDeleteOption:$e}=t;$e&&$e(ge)}function Q(ge){const{onClear:$e}=t;$e&&$e(ge)}function G(ge){const{onPatternInput:$e}=t;$e&&$e(ge)}function K(ge){var $e;(!ge.relatedTarget||!(!(($e=o.value)===null||$e===void 0)&&$e.contains(ge.relatedTarget)))&&D(ge)}function W(ge){var $e;!(($e=o.value)===null||$e===void 0)&&$e.contains(ge.relatedTarget)||N(ge)}function j(ge){Q(ge)}function Y(){_.value=!0}function q(){_.value=!1}function X(ge){!t.active||!t.filterable||ge.target!==n.value&&ge.preventDefault()}function re(ge){H(ge)}function te(ge){if(ge.key==="Backspace"&&!oe.value&&!t.pattern.length){const{selectedOptions:$e}=t;$e!=null&&$e.length&&re($e[$e.length-1])}}const oe=ref(!1);let ae=null;function se(ge){const{value:$e}=r;if($e){const de=ge.target.value;$e.textContent=de,P()}t.ignoreComposition&&oe.value?ae=ge:G(ge)}function ue(){oe.value=!0}function Ae(){oe.value=!1,t.ignoreComposition&&G(ae),ae=null}function pe(ge){var $e;S.value=!0,($e=t.onPatternFocus)===null||$e===void 0||$e.call(t,ge)}function he(ge){var $e;S.value=!1,($e=t.onPatternBlur)===null||$e===void 0||$e.call(t,ge)}function Ce(){var ge,$e;if(t.filterable)S.value=!1,(ge=d.value)===null||ge===void 0||ge.blur(),($e=n.value)===null||$e===void 0||$e.blur();else if(t.multiple){const{value:de}=s;de==null||de.blur()}else{const{value:de}=l;de==null||de.blur()}}function ve(){var ge,$e,de;t.filterable?(S.value=!1,(ge=d.value)===null||ge===void 0||ge.focus()):t.multiple?($e=s.value)===null||$e===void 0||$e.focus():(de=l.value)===null||de===void 0||de.focus()}function ye(){const{value:ge}=n;ge&&(O(),ge.focus())}function Be(){const{value:ge}=n;ge&&ge.blur()}function Se(ge){const{value:$e}=g;$e&&$e.setTextContent(`+${ge}`)}function Ee(){const{value:ge}=y;return ge}function ie(){return n.value}let ee=null;function J(){ee!==null&&window.clearTimeout(ee)}function ce(){t.disabled||t.active||(J(),ee=window.setTimeout(()=>{R.value&&(x.value=!0)},100))}function fe(){J()}function ne(ge){ge||(J(),x.value=!1)}watch(R,ge=>{ge||(x.value=!1)}),onMounted(()=>{watchEffect(()=>{const ge=d.value;!ge||(ge.tabIndex=t.disabled||S.value?-1:0)})}),useOnResize(o,t.onResize);const{inlineThemeDisabled:le}=t,me=computed(()=>{const{size:ge}=t,{common:{cubicBezierEaseInOut:$e},self:{borderRadius:de,color:be,placeholderColor:we,textColor:Me,paddingSingle:Ue,paddingMultiple:Ge,caretColor:Ze,colorDisabled:tt,textColorDisabled:st,placeholderColorDisabled:We,colorActive:Je,boxShadowFocus:Ye,boxShadowActive:Xe,boxShadowHover:_e,border:xe,borderFocus:Le,borderHover:Ve,borderActive:ze,arrowColor:Re,arrowColorDisabled:Ne,loadingColor:je,colorActiveWarning:nt,boxShadowFocusWarning:De,boxShadowActiveWarning:Qe,boxShadowHoverWarning:Pe,borderWarning:Ke,borderFocusWarning:ot,borderHoverWarning:ft,borderActiveWarning:it,colorActiveError:Ie,boxShadowFocusError:Fe,boxShadowActiveError:et,boxShadowHoverError:At,borderError:Oe,borderFocusError:He,borderHoverError:at,borderActiveError:ct,clearColor:dt,clearColorHover:yt,clearColorPressed:gt,clearSize:ke,arrowSize:qe,[createKey("height",ge)]:ut,[createKey("fontSize",ge)]:ht}}=w.value;return{"--n-bezier":$e,"--n-border":xe,"--n-border-active":ze,"--n-border-focus":Le,"--n-border-hover":Ve,"--n-border-radius":de,"--n-box-shadow-active":Xe,"--n-box-shadow-focus":Ye,"--n-box-shadow-hover":_e,"--n-caret-color":Ze,"--n-color":be,"--n-color-active":Je,"--n-color-disabled":tt,"--n-font-size":ht,"--n-height":ut,"--n-padding-single":Ue,"--n-padding-multiple":Ge,"--n-placeholder-color":we,"--n-placeholder-color-disabled":We,"--n-text-color":Me,"--n-text-color-disabled":st,"--n-arrow-color":Re,"--n-arrow-color-disabled":Ne,"--n-loading-color":je,"--n-color-active-warning":nt,"--n-box-shadow-focus-warning":De,"--n-box-shadow-active-warning":Qe,"--n-box-shadow-hover-warning":Pe,"--n-border-warning":Ke,"--n-border-focus-warning":ot,"--n-border-hover-warning":ft,"--n-border-active-warning":it,"--n-color-active-error":Ie,"--n-box-shadow-focus-error":Fe,"--n-box-shadow-active-error":et,"--n-box-shadow-hover-error":At,"--n-border-error":Oe,"--n-border-focus-error":He,"--n-border-hover-error":at,"--n-border-active-error":ct,"--n-clear-size":ke,"--n-clear-color":dt,"--n-clear-color-hover":yt,"--n-clear-color-pressed":gt,"--n-arrow-size":qe}}),Te=le?useThemeClass("internal-selection",computed(()=>t.size[0]),me,t):void 0;return{mergedTheme:w,mergedClearable:$,patternInputFocused:S,filterablePlaceholder:I,label:B,selected:R,showTagsPanel:x,isComposing:oe,counterRef:g,counterWrapperRef:y,patternInputMirrorRef:r,patternInputRef:n,selfRef:o,multipleElRef:s,singleElRef:l,patternInputWrapperRef:d,overflowRef:b,inputTagElRef:C,handleMouseDown:X,handleFocusin:K,handleClear:j,handleMouseEnter:Y,handleMouseLeave:q,handleDeleteOption:re,handlePatternKeyDown:te,handlePatternInputInput:se,handlePatternInputBlur:he,handlePatternInputFocus:pe,handleMouseEnterCounter:ce,handleMouseLeaveCounter:fe,handleFocusout:W,handleCompositionEnd:Ae,handleCompositionStart:ue,onPopoverUpdateShow:ne,focus:ve,focusInput:ye,blur:Ce,blurInput:Be,updateCounter:Se,getCounter:Ee,getTail:ie,renderLabel:t.renderLabel,cssVars:le?void 0:me,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){const{status:t,multiple:r,size:n,disabled:o,filterable:s,maxTagCount:l,bordered:d,clsPrefix:g,onRender:y,renderTag:b,renderLabel:C}=this;y==null||y();const x=l==="responsive",S=typeof l=="number",_=x||S,w=h(Wrapper,null,{default:()=>h(NBaseSuffix,{clsPrefix:g,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var I,B;return(B=(I=this.$slots).arrow)===null||B===void 0?void 0:B.call(I)}})});let $;if(r){const{labelField:I}=this,B=W=>h("div",{class:`${g}-base-selection-tag-wrapper`,key:W.value},b?b({option:W,handleClose:()=>this.handleDeleteOption(W)}):h(NTag,{size:n,closable:!W.disabled,disabled:o,onClose:()=>this.handleDeleteOption(W),internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>C?C(W,!0):render$2(W[I],W,!0)})),R=()=>(S?this.selectedOptions.slice(0,l):this.selectedOptions).map(B),P=s?h("div",{class:`${g}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},h("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:o,value:this.pattern,autofocus:this.autofocus,class:`${g}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),h("span",{ref:"patternInputMirrorRef",class:`${g}-base-selection-input-tag__mirror`},this.pattern)):null,M=x?()=>h("div",{class:`${g}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},h(NTag,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:o})):void 0;let O;if(S){const W=this.selectedOptions.length-l;W>0&&(O=h("div",{class:`${g}-base-selection-tag-wrapper`,key:"__counter__"},h(NTag,{size:n,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:o},{default:()=>`+${W}`})))}const D=x?s?h(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:R,counter:M,tail:()=>P}):h(VOverflow,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:R,counter:M}):S?R().concat(O):R(),N=_?()=>h("div",{class:`${g}-base-selection-popover`},x?R():this.selectedOptions.map(B)):void 0,H=_?{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,G=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?h("div",{class:`${g}-base-selection-placeholder ${g}-base-selection-overlay`},h("div",{class:`${g}-base-selection-placeholder__inner`},this.placeholder)):null,K=s?h("div",{ref:"patternInputWrapperRef",class:`${g}-base-selection-tags`},D,x?null:P,w):h("div",{ref:"multipleElRef",class:`${g}-base-selection-tags`,tabindex:o?void 0:0},D,w);$=h(Fragment,null,_?h(NPopover,Object.assign({},H,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>K,default:N}):K,G)}else if(s){const I=this.pattern||this.isComposing,B=this.active?!I:!this.selected,R=this.active?!1:this.selected;$=h("div",{ref:"patternInputWrapperRef",class:`${g}-base-selection-label`},h("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${g}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:o,disabled:o,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),R?h("div",{class:`${g}-base-selection-label__render-label ${g}-base-selection-overlay`,key:"input"},h("div",{class:`${g}-base-selection-overlay__wrapper`},b?b({option:this.selectedOption,handleClose:()=>{}}):C?C(this.selectedOption,!0):render$2(this.label,this.selectedOption,!0))):null,B?h("div",{class:`${g}-base-selection-placeholder ${g}-base-selection-overlay`,key:"placeholder"},h("div",{class:`${g}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,w)}else $=h("div",{ref:"singleElRef",class:`${g}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?h("div",{class:`${g}-base-selection-input`,title:getTitleAttribute(this.label),key:"input"},h("div",{class:`${g}-base-selection-input__content`},b?b({option:this.selectedOption,handleClose:()=>{}}):C?C(this.selectedOption,!0):render$2(this.label,this.selectedOption,!0))):h("div",{class:`${g}-base-selection-placeholder ${g}-base-selection-overlay`,key:"placeholder"},h("div",{class:`${g}-base-selection-placeholder__inner`},this.placeholder)),w);return h("div",{ref:"selfRef",class:[`${g}-base-selection`,this.themeClass,t&&`${g}-base-selection--${t}-status`,{[`${g}-base-selection--active`]:this.active,[`${g}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${g}-base-selection--disabled`]:this.disabled,[`${g}-base-selection--multiple`]:this.multiple,[`${g}-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},$,d?h("div",{class:`${g}-base-selection__border`}):null,d?h("div",{class:`${g}-base-selection__state-border`}):null)}}),SlotMachineNumber=defineComponent({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(t){const r=ref(null),n=ref(t.value),o=ref(t.value),s=ref("up"),l=ref(!1),d=computed(()=>l.value?`${t.clsPrefix}-base-slot-machine-current-number--${s.value}-scroll`:null),g=computed(()=>l.value?`${t.clsPrefix}-base-slot-machine-old-number--${s.value}-scroll`:null);watch(toRef(t,"value"),(C,x)=>{n.value=x,o.value=C,nextTick(y)});function y(){const C=t.newOriginalNumber,x=t.oldOriginalNumber;x===void 0||C===void 0||(C>x?b("up"):x>C&&b("down"))}function b(C){s.value=C,l.value=!1,nextTick(()=>{var x;(x=r.value)===null||x===void 0||x.offsetWidth,l.value=!0})}return()=>{const{clsPrefix:C}=t;return h("span",{ref:r,class:`${C}-base-slot-machine-number`},n.value!==null?h("span",{class:[`${C}-base-slot-machine-old-number ${C}-base-slot-machine-old-number--top`,g.value]},n.value):null,h("span",{class:[`${C}-base-slot-machine-current-number`,d.value]},h("span",{ref:"numberWrapper",class:[`${C}-base-slot-machine-current-number__inner`,typeof t.value!="number"&&`${C}-base-slot-machine-current-number__inner--not-number`]},o.value)),n.value!==null?h("span",{class:[`${C}-base-slot-machine-old-number ${C}-base-slot-machine-old-number--bottom`,g.value]},n.value):null)}}});const{cubicBezierEaseInOut:cubicBezierEaseInOut$2}=commonVariables$m;function fadeInWidthExpandTransition({duration:t=".2s",delay:r=".1s"}={}){return[c$1("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),c$1("&.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;
|
|
`),c$1("&.fade-in-width-expand-transition-leave-active",`
|
|
overflow: hidden;
|
|
transition:
|
|
opacity ${t} ${cubicBezierEaseInOut$2},
|
|
max-width ${t} ${cubicBezierEaseInOut$2} ${r},
|
|
margin-left ${t} ${cubicBezierEaseInOut$2} ${r},
|
|
margin-right ${t} ${cubicBezierEaseInOut$2} ${r};
|
|
`),c$1("&.fade-in-width-expand-transition-enter-active",`
|
|
overflow: hidden;
|
|
transition:
|
|
opacity ${t} ${cubicBezierEaseInOut$2} ${r},
|
|
max-width ${t} ${cubicBezierEaseInOut$2},
|
|
margin-left ${t} ${cubicBezierEaseInOut$2},
|
|
margin-right ${t} ${cubicBezierEaseInOut$2};
|
|
`)]}const{cubicBezierEaseOut:cubicBezierEaseOut$5}=commonVariables$m;function fadeUpWidthExpandTransition({duration:t=".2s"}={}){return[c$1("&.fade-up-width-expand-transition-leave-active",{transition:`
|
|
opacity ${t} ${cubicBezierEaseOut$5},
|
|
max-width ${t} ${cubicBezierEaseOut$5},
|
|
transform ${t} ${cubicBezierEaseOut$5}
|
|
`}),c$1("&.fade-up-width-expand-transition-enter-active",{transition:`
|
|
opacity ${t} ${cubicBezierEaseOut$5},
|
|
max-width ${t} ${cubicBezierEaseOut$5},
|
|
transform ${t} ${cubicBezierEaseOut$5}
|
|
`}),c$1("&.fade-up-width-expand-transition-enter-to",{opacity:1,transform:"translateX(0) translateY(0)"}),c$1("&.fade-up-width-expand-transition-enter-from",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"}),c$1("&.fade-up-width-expand-transition-leave-from",{opacity:1,transform:"translateY(0)"}),c$1("&.fade-up-width-expand-transition-leave-to",{maxWidth:"0 !important",opacity:0,transform:"translateY(60%)"})]}var style$15=c$1([c$1("@keyframes n-base-slot-machine-fade-up-in",`
|
|
from {
|
|
transform: translateY(60%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
`),c$1("@keyframes n-base-slot-machine-fade-down-in",`
|
|
from {
|
|
transform: translateY(-60%);
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
`),c$1("@keyframes n-base-slot-machine-fade-up-out",`
|
|
from {
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
transform: translateY(-60%);
|
|
opacity: 0;
|
|
}
|
|
`),c$1("@keyframes n-base-slot-machine-fade-down-out",`
|
|
from {
|
|
transform: translateY(0%);
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
transform: translateY(60%);
|
|
opacity: 0;
|
|
}
|
|
`),cB("base-slot-machine",`
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
`,[cB("base-slot-machine-number",`
|
|
display: inline-block;
|
|
position: relative;
|
|
height: 18px;
|
|
width: .6em;
|
|
max-width: .6em;
|
|
`,[fadeUpWidthExpandTransition({duration:".2s"}),fadeInWidthExpandTransition({duration:".2s",delay:"0s"}),cB("base-slot-machine-old-number",`
|
|
display: inline-block;
|
|
opacity: 0;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
`,[cM("top",{transform:"translateY(-100%)"}),cM("bottom",{transform:"translateY(100%)"}),cM("down-scroll",{animation:"n-base-slot-machine-fade-down-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),cM("up-scroll",{animation:"n-base-slot-machine-fade-up-out .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1})]),cB("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;
|
|
`,[cM("down-scroll",{animation:"n-base-slot-machine-fade-down-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),cM("up-scroll",{animation:"n-base-slot-machine-fade-up-in .2s cubic-bezier(0, 0, .2, 1)",animationIterationCount:1}),cE("inner",`
|
|
display: inline-block;
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
width: .6em;
|
|
`,[cM("not-number",`
|
|
right: unset;
|
|
left: 0;
|
|
`)])])])])]),NBaseSlotMachine=defineComponent({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(t){useStyle("-base-slot-machine",style$15,toRef(t,"clsPrefix"));const r=ref(),n=ref(),o=computed(()=>{if(typeof t.value=="string")return[];if(t.value<1)return[0];const s=[];let l=t.value;for(t.max!==void 0&&(l=Math.min(t.max,l));l>=1;)s.push(l%10),l/=10,l=Math.floor(l);return s.reverse(),s});return watch(toRef(t,"value"),(s,l)=>{typeof s=="string"?(n.value=void 0,r.value=void 0):typeof l=="string"?(n.value=s,r.value=void 0):(n.value=s,r.value=l)}),()=>{const{value:s,clsPrefix:l}=t;return typeof s=="number"?h("span",{class:`${l}-base-slot-machine`},h(TransitionGroup,{name:"fade-up-width-expand-transition",tag:"span"},{default:()=>o.value.map((d,g)=>h(SlotMachineNumber,{clsPrefix:l,key:o.value.length-g-1,oldOriginalNumber:r.value,newOriginalNumber:n.value,value:d}))}),h(NFadeInExpandTransition,{key:"+",width:!0},{default:()=>t.max!==void 0&&t.max<s?h(SlotMachineNumber,{clsPrefix:l,value:"+"}):null})):h("span",{class:`${l}-base-slot-machine`},s)}}}),commonVars$a={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 alertDark={name:"Alert",common:commonDark,self(t){const{lineHeight:r,borderRadius:n,fontWeightStrong:o,dividerColor:s,inputColor:l,textColor1:d,textColor2:g,closeColorHover:y,closeColorPressed:b,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,infoColorSuppl:_,successColorSuppl:w,warningColorSuppl:$,errorColorSuppl:I,fontSize:B}=t;return Object.assign(Object.assign({},commonVars$a),{fontSize:B,lineHeight:r,titleFontWeight:o,borderRadius:n,border:`1px solid ${s}`,color:l,titleTextColor:d,iconColor:g,contentTextColor:g,closeBorderRadius:n,closeColorHover:y,closeColorPressed:b,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,borderInfo:`1px solid ${changeColor(_,{alpha:.35})}`,colorInfo:changeColor(_,{alpha:.25}),titleTextColorInfo:d,iconColorInfo:_,contentTextColorInfo:g,closeColorHoverInfo:y,closeColorPressedInfo:b,closeIconColorInfo:C,closeIconColorHoverInfo:x,closeIconColorPressedInfo:S,borderSuccess:`1px solid ${changeColor(w,{alpha:.35})}`,colorSuccess:changeColor(w,{alpha:.25}),titleTextColorSuccess:d,iconColorSuccess:w,contentTextColorSuccess:g,closeColorHoverSuccess:y,closeColorPressedSuccess:b,closeIconColorSuccess:C,closeIconColorHoverSuccess:x,closeIconColorPressedSuccess:S,borderWarning:`1px solid ${changeColor($,{alpha:.35})}`,colorWarning:changeColor($,{alpha:.25}),titleTextColorWarning:d,iconColorWarning:$,contentTextColorWarning:g,closeColorHoverWarning:y,closeColorPressedWarning:b,closeIconColorWarning:C,closeIconColorHoverWarning:x,closeIconColorPressedWarning:S,borderError:`1px solid ${changeColor(I,{alpha:.35})}`,colorError:changeColor(I,{alpha:.25}),titleTextColorError:d,iconColorError:I,contentTextColorError:g,closeColorHoverError:y,closeColorPressedError:b,closeIconColorError:C,closeIconColorHoverError:x,closeIconColorPressedError:S})}};var alertDark$1=alertDark;const self$11=t=>{const{lineHeight:r,borderRadius:n,fontWeightStrong:o,baseColor:s,dividerColor:l,actionColor:d,textColor1:g,textColor2:y,closeColorHover:b,closeColorPressed:C,closeIconColor:x,closeIconColorHover:S,closeIconColorPressed:_,infoColor:w,successColor:$,warningColor:I,errorColor:B,fontSize:R}=t;return Object.assign(Object.assign({},commonVars$a),{fontSize:R,lineHeight:r,titleFontWeight:o,borderRadius:n,border:`1px solid ${l}`,color:d,titleTextColor:g,iconColor:y,contentTextColor:y,closeBorderRadius:n,closeColorHover:b,closeColorPressed:C,closeIconColor:x,closeIconColorHover:S,closeIconColorPressed:_,borderInfo:`1px solid ${composite(s,changeColor(w,{alpha:.25}))}`,colorInfo:composite(s,changeColor(w,{alpha:.08})),titleTextColorInfo:g,iconColorInfo:w,contentTextColorInfo:y,closeColorHoverInfo:b,closeColorPressedInfo:C,closeIconColorInfo:x,closeIconColorHoverInfo:S,closeIconColorPressedInfo:_,borderSuccess:`1px solid ${composite(s,changeColor($,{alpha:.25}))}`,colorSuccess:composite(s,changeColor($,{alpha:.08})),titleTextColorSuccess:g,iconColorSuccess:$,contentTextColorSuccess:y,closeColorHoverSuccess:b,closeColorPressedSuccess:C,closeIconColorSuccess:x,closeIconColorHoverSuccess:S,closeIconColorPressedSuccess:_,borderWarning:`1px solid ${composite(s,changeColor(I,{alpha:.33}))}`,colorWarning:composite(s,changeColor(I,{alpha:.08})),titleTextColorWarning:g,iconColorWarning:I,contentTextColorWarning:y,closeColorHoverWarning:b,closeColorPressedWarning:C,closeIconColorWarning:x,closeIconColorHoverWarning:S,closeIconColorPressedWarning:_,borderError:`1px solid ${composite(s,changeColor(B,{alpha:.25}))}`,colorError:composite(s,changeColor(B,{alpha:.08})),titleTextColorError:g,iconColorError:B,contentTextColorError:y,closeColorHoverError:b,closeColorPressedError:C,closeIconColorError:x,closeIconColorHoverError:S,closeIconColorPressedError:_})},alertLight={name:"Alert",common:commonLight,self:self$11};var alertLight$1=alertLight;const{cubicBezierEaseInOut:cubicBezierEaseInOut$1,cubicBezierEaseOut:cubicBezierEaseOut$4,cubicBezierEaseIn:cubicBezierEaseIn$4}=commonVariables$m;function fadeInHeightExpandTransition({overflow:t="hidden",duration:r=".3s",originalTransition:n="",leavingDelay:o="0s",foldPadding:s=!1,enterToProps:l=void 0,leaveToProps:d=void 0,reverse:g=!1}={}){const y=g?"leave":"enter",b=g?"enter":"leave";return[c$1(`&.fade-in-height-expand-transition-${b}-from,
|
|
&.fade-in-height-expand-transition-${y}-to`,Object.assign(Object.assign({},l),{opacity:1})),c$1(`&.fade-in-height-expand-transition-${b}-to,
|
|
&.fade-in-height-expand-transition-${y}-from`,Object.assign(Object.assign({},d),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:s?"0 !important":void 0,paddingBottom:s?"0 !important":void 0})),c$1(`&.fade-in-height-expand-transition-${b}-active`,`
|
|
overflow: ${t};
|
|
transition:
|
|
max-height ${r} ${cubicBezierEaseInOut$1} ${o},
|
|
opacity ${r} ${cubicBezierEaseOut$4} ${o},
|
|
margin-top ${r} ${cubicBezierEaseInOut$1} ${o},
|
|
margin-bottom ${r} ${cubicBezierEaseInOut$1} ${o},
|
|
padding-top ${r} ${cubicBezierEaseInOut$1} ${o},
|
|
padding-bottom ${r} ${cubicBezierEaseInOut$1} ${o}
|
|
${n?","+n:""}
|
|
`),c$1(`&.fade-in-height-expand-transition-${y}-active`,`
|
|
overflow: ${t};
|
|
transition:
|
|
max-height ${r} ${cubicBezierEaseInOut$1},
|
|
opacity ${r} ${cubicBezierEaseIn$4},
|
|
margin-top ${r} ${cubicBezierEaseInOut$1},
|
|
margin-bottom ${r} ${cubicBezierEaseInOut$1},
|
|
padding-top ${r} ${cubicBezierEaseInOut$1},
|
|
padding-bottom ${r} ${cubicBezierEaseInOut$1}
|
|
${n?","+n:""}
|
|
`)]}var style$14=cB("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;
|
|
`,[cE("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;
|
|
`),cM("closable",[cB("alert-body",[cE("title",`
|
|
padding-right: 24px;
|
|
`)])]),cE("icon",{color:"var(--n-icon-color)"}),cB("alert-body",{padding:"var(--n-padding)"},[cE("title",{color:"var(--n-title-text-color)"}),cE("content",{color:"var(--n-content-text-color)"})]),fadeInHeightExpandTransition({originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.9)"}}),cE("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);
|
|
`),cE("close",`
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
position: absolute;
|
|
right: 0;
|
|
top: 0;
|
|
margin: var(--n-close-margin);
|
|
`),cM("show-icon",[cB("alert-body",{paddingLeft:"calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))"})]),cB("alert-body",`
|
|
border-radius: var(--n-border-radius);
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[cE("title",`
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: 16px;
|
|
line-height: 19px;
|
|
font-weight: var(--n-title-font-weight);
|
|
`,[c$1("& +",[cE("content",{marginTop:"9px"})])]),cE("content",{transition:"color .3s var(--n-bezier)",fontSize:"var(--n-font-size)"})]),cE("icon",{transition:"color .3s var(--n-bezier)"})]);const alertProps=Object.assign(Object.assign({},useTheme.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 NAlert=defineComponent({name:"Alert",inheritAttrs:!1,props:alertProps,setup(t){const{mergedClsPrefixRef:r,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:s}=useConfig(t),l=useTheme("Alert","-alert",style$14,alertLight$1,t,r),d=useRtl("Alert",s,r),g=computed(()=>{const{common:{cubicBezierEaseInOut:_},self:w}=l.value,{fontSize:$,borderRadius:I,titleFontWeight:B,lineHeight:R,iconSize:P,iconMargin:M,iconMarginRtl:O,closeIconSize:D,closeBorderRadius:N,closeSize:H,closeMargin:Q,closeMarginRtl:G,padding:K}=w,{type:W}=t,{left:j,right:Y}=getMargin(M);return{"--n-bezier":_,"--n-color":w[createKey("color",W)],"--n-close-icon-size":D,"--n-close-border-radius":N,"--n-close-color-hover":w[createKey("closeColorHover",W)],"--n-close-color-pressed":w[createKey("closeColorPressed",W)],"--n-close-icon-color":w[createKey("closeIconColor",W)],"--n-close-icon-color-hover":w[createKey("closeIconColorHover",W)],"--n-close-icon-color-pressed":w[createKey("closeIconColorPressed",W)],"--n-icon-color":w[createKey("iconColor",W)],"--n-border":w[createKey("border",W)],"--n-title-text-color":w[createKey("titleTextColor",W)],"--n-content-text-color":w[createKey("contentTextColor",W)],"--n-line-height":R,"--n-border-radius":I,"--n-font-size":$,"--n-title-font-weight":B,"--n-icon-size":P,"--n-icon-margin":M,"--n-icon-margin-rtl":O,"--n-close-size":H,"--n-close-margin":Q,"--n-close-margin-rtl":G,"--n-padding":K,"--n-icon-margin-left":j,"--n-icon-margin-right":Y}}),y=o?useThemeClass("alert",computed(()=>t.type[0]),g,t):void 0,b=ref(!0),C=()=>{const{onAfterLeave:_,onAfterHide:w}=t;_&&_(),w&&w()};return{rtlEnabled:d,mergedClsPrefix:r,mergedBordered:n,visible:b,handleCloseClick:()=>{var _;Promise.resolve((_=t.onClose)===null||_===void 0?void 0:_.call(t)).then(w=>{w!==!1&&(b.value=!1)})},handleAfterLeave:()=>{C()},mergedTheme:l,cssVars:o?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),h(NFadeInExpandTransition,{onAfterLeave:this.handleAfterLeave},{default:()=>{const{mergedClsPrefix:r,$slots:n}=this,o={class:[`${r}-alert`,this.themeClass,this.closable&&`${r}-alert--closable`,this.showIcon&&`${r}-alert--show-icon`,this.rtlEnabled&&`${r}-alert--rtl`],style:this.cssVars,role:"alert"};return this.visible?h("div",Object.assign({},mergeProps(this.$attrs,o)),this.closable&&h(NBaseClose,{clsPrefix:r,class:`${r}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&h("div",{class:`${r}-alert__border`}),this.showIcon&&h("div",{class:`${r}-alert__icon`,"aria-hidden":"true"},resolveSlot(n.icon,()=>[h(NBaseIcon,{clsPrefix:r},{default:()=>{switch(this.type){case"success":return h(SuccessIcon,null);case"info":return h(InfoIcon,null);case"warning":return h(WarningIcon,null);case"error":return h(ErrorIcon,null);default:return null}}})])),h("div",{class:[`${r}-alert-body`,this.mergedBordered&&`${r}-alert-body--bordered`]},resolveWrappedSlot(n.header,s=>{const l=s||this.title;return l?h("div",{class:`${r}-alert-body__title`},l):null}),n.default&&h("div",{class:`${r}-alert-body__content`},n))):null}})}}),commonVars$9={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};const self$10=t=>{const{borderRadius:r,railColor:n,primaryColor:o,primaryColorHover:s,primaryColorPressed:l,textColor2:d}=t;return Object.assign(Object.assign({},commonVars$9),{borderRadius:r,railColor:n,railColorActive:o,linkColor:changeColor(o,{alpha:.15}),linkTextColor:d,linkTextColorHover:s,linkTextColorPressed:l,linkTextColorActive:o})},anchorDark={name:"Anchor",common:commonDark,self:self$10};var anchorDark$1=anchorDark;function getIsGroup(t){return t.type==="group"}function getIgnored(t){return t.type==="ignored"}function patternMatched(t,r){try{return!!(1+r.toString().toLowerCase().indexOf(t.trim().toLowerCase()))}catch(n){return!1}}function createTmOptions(t,r){return{getIsGroup,getIgnored,getKey(o){return getIsGroup(o)?o.name||o.key||"key-required":o[t]},getChildren(o){return o[r]}}}function filterOptions(t,r,n,o){if(!r)return t;function s(l){if(!Array.isArray(l))return[];const d=[];for(const g of l)if(getIsGroup(g)){const y=s(g[o]);y.length&&d.push(Object.assign({},g,{[o]:y}))}else{if(getIgnored(g))continue;r(n,g)&&d.push(g)}return d}return s(t)}function createValOptMap(t,r,n){const o=new Map;return t.forEach(s=>{getIsGroup(s)?s[n].forEach(l=>{o.set(l[r],l)}):o.set(s[r],s)}),o}const isChrome=isBrowser$3&&"chrome"in window;isBrowser$3&&navigator.userAgent.includes("Firefox");const isSafari=isBrowser$3&&navigator.userAgent.includes("Safari")&&!isChrome;var commonVariables$i={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};const inputDark={name:"Input",common:commonDark,self(t){const{textColor2:r,textColor3:n,textColorDisabled:o,primaryColor:s,primaryColorHover:l,inputColor:d,inputColorDisabled:g,warningColor:y,warningColorHover:b,errorColor:C,errorColorHover:x,borderRadius:S,lineHeight:_,fontSizeTiny:w,fontSizeSmall:$,fontSizeMedium:I,fontSizeLarge:B,heightTiny:R,heightSmall:P,heightMedium:M,heightLarge:O,clearColor:D,clearColorHover:N,clearColorPressed:H,placeholderColor:Q,placeholderColorDisabled:G,iconColor:K,iconColorDisabled:W,iconColorHover:j,iconColorPressed:Y}=t;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:o,countTextColor:n,heightTiny:R,heightSmall:P,heightMedium:M,heightLarge:O,fontSizeTiny:w,fontSizeSmall:$,fontSizeMedium:I,fontSizeLarge:B,lineHeight:_,lineHeightTextarea:_,borderRadius:S,iconSize:"16px",groupLabelColor:d,textColor:r,textColorDisabled:o,textDecorationColor:r,groupLabelTextColor:r,caretColor:s,placeholderColor:Q,placeholderColorDisabled:G,color:d,colorDisabled:g,colorFocus:changeColor(s,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${l}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 8px 0 ${changeColor(s,{alpha:.3})}`,loadingColor:s,loadingColorWarning:y,borderWarning:`1px solid ${y}`,borderHoverWarning:`1px solid ${b}`,colorFocusWarning:changeColor(y,{alpha:.1}),borderFocusWarning:`1px solid ${b}`,boxShadowFocusWarning:`0 0 8px 0 ${changeColor(y,{alpha:.3})}`,caretColorWarning:y,loadingColorError:C,borderError:`1px solid ${C}`,borderHoverError:`1px solid ${x}`,colorFocusError:changeColor(C,{alpha:.1}),borderFocusError:`1px solid ${x}`,boxShadowFocusError:`0 0 8px 0 ${changeColor(C,{alpha:.3})}`,caretColorError:C,clearColor:D,clearColorHover:N,clearColorPressed:H,iconColor:K,iconColorDisabled:W,iconColorHover:j,iconColorPressed:Y,suffixTextColor:r})}};var inputDark$1=inputDark;const self$$=t=>{const{textColor2:r,textColor3:n,textColorDisabled:o,primaryColor:s,primaryColorHover:l,inputColor:d,inputColorDisabled:g,borderColor:y,warningColor:b,warningColorHover:C,errorColor:x,errorColorHover:S,borderRadius:_,lineHeight:w,fontSizeTiny:$,fontSizeSmall:I,fontSizeMedium:B,fontSizeLarge:R,heightTiny:P,heightSmall:M,heightMedium:O,heightLarge:D,actionColor:N,clearColor:H,clearColorHover:Q,clearColorPressed:G,placeholderColor:K,placeholderColorDisabled:W,iconColor:j,iconColorDisabled:Y,iconColorHover:q,iconColorPressed:X}=t;return Object.assign(Object.assign({},commonVariables$i),{countTextColorDisabled:o,countTextColor:n,heightTiny:P,heightSmall:M,heightMedium:O,heightLarge:D,fontSizeTiny:$,fontSizeSmall:I,fontSizeMedium:B,fontSizeLarge:R,lineHeight:w,lineHeightTextarea:w,borderRadius:_,iconSize:"16px",groupLabelColor:N,groupLabelTextColor:r,textColor:r,textColorDisabled:o,textDecorationColor:r,caretColor:s,placeholderColor:K,placeholderColorDisabled:W,color:d,colorDisabled:g,colorFocus:d,groupLabelBorder:`1px solid ${y}`,border:`1px solid ${y}`,borderHover:`1px solid ${l}`,borderDisabled:`1px solid ${y}`,borderFocus:`1px solid ${l}`,boxShadowFocus:`0 0 0 2px ${changeColor(s,{alpha:.2})}`,loadingColor:s,loadingColorWarning:b,borderWarning:`1px solid ${b}`,borderHoverWarning:`1px solid ${C}`,colorFocusWarning:d,borderFocusWarning:`1px solid ${C}`,boxShadowFocusWarning:`0 0 0 2px ${changeColor(b,{alpha:.2})}`,caretColorWarning:b,loadingColorError:x,borderError:`1px solid ${x}`,borderHoverError:`1px solid ${S}`,colorFocusError:d,borderFocusError:`1px solid ${S}`,boxShadowFocusError:`0 0 0 2px ${changeColor(x,{alpha:.2})}`,caretColorError:x,clearColor:H,clearColorHover:Q,clearColorPressed:G,iconColor:j,iconColorDisabled:Y,iconColorHover:q,iconColorPressed:X,suffixTextColor:r})},inputLight={name:"Input",common:commonLight,self:self$$};var inputLight$1=inputLight;const inputInjectionKey="n-input";function len$1(t){let r=0;for(const n of t)r++;return r}function isEmptyInputValue(t){return t===""||t==null}function useCursor(t){const r=ref(null);function n(){const{value:l}=t;if(!(l!=null&&l.focus)){s();return}const{selectionStart:d,selectionEnd:g,value:y}=l;if(d==null||g==null){s();return}r.value={start:d,end:g,beforeText:y.slice(0,d),afterText:y.slice(g)}}function o(){var l;const{value:d}=r,{value:g}=t;if(!d||!g)return;const{value:y}=g,{start:b,beforeText:C,afterText:x}=d;let S=y.length;if(y.endsWith(x))S=y.length-x.length;else if(y.startsWith(C))S=C.length;else{const _=C[b-1],w=y.indexOf(_,b-1);w!==-1&&(S=w+1)}(l=g.setSelectionRange)===null||l===void 0||l.call(g,S,S)}function s(){r.value=null}return watch(t,s),{recordCursor:n,restoreCursor:o}}var WordCount=defineComponent({name:"InputWordCount",setup(t,{slots:r}){const{mergedValueRef:n,maxlengthRef:o,mergedClsPrefixRef:s,countGraphemesRef:l}=inject(inputInjectionKey),d=computed(()=>{const{value:g}=n;return g===null||Array.isArray(g)?0:(l.value||len$1)(g)});return()=>{const{value:g}=o,{value:y}=n;return h("span",{class:`${s.value}-input-word-count`},resolveSlotWithProps(r.default,{value:y===null||Array.isArray(y)?"":y},()=>[g===void 0?d.value:`${d.value} / ${g}`]))}}}),style$13=cB("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);
|
|
`,[cE("input, textarea",`
|
|
overflow: hidden;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
`),cE("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);
|
|
`),cE("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;
|
|
`,[c$1("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
width: 0;
|
|
height: 0;
|
|
display: none;
|
|
`),c$1("&::placeholder",`
|
|
color: #0000;
|
|
-webkit-text-fill-color: transparent !important;
|
|
`),c$1("&:-webkit-autofill ~",[cE("placeholder","display: none;")])]),cM("round",[cNotM("textarea","border-radius: calc(var(--n-height) / 2);")]),cE("placeholder",`
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
color: var(--n-placeholder-color);
|
|
`,[c$1("span",`
|
|
width: 100%;
|
|
display: inline-block;
|
|
`)]),cM("textarea",[cE("placeholder","overflow: visible;")]),cNotM("autosize","width: 100%;"),cM("autosize",[cE("textarea-el, input-el",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
`)]),cB("input-wrapper",`
|
|
overflow: hidden;
|
|
display: inline-flex;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
padding-left: var(--n-padding-left);
|
|
padding-right: var(--n-padding-right);
|
|
`),cE("input-mirror",`
|
|
padding: 0;
|
|
height: var(--n-height);
|
|
line-height: var(--n-height);
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
position: static;
|
|
white-space: pre;
|
|
pointer-events: none;
|
|
`),cE("input-el",`
|
|
padding: 0;
|
|
height: var(--n-height);
|
|
line-height: var(--n-height);
|
|
`,[c$1("+",[cE("placeholder",`
|
|
display: flex;
|
|
align-items: center;
|
|
`)])]),cNotM("textarea",[cE("placeholder","white-space: nowrap;")]),cE("eye",`
|
|
transition: color .3s var(--n-bezier);
|
|
`),cM("textarea","width: 100%;",[cB("input-word-count",`
|
|
position: absolute;
|
|
right: var(--n-padding-right);
|
|
bottom: var(--n-padding-vertical);
|
|
`),cM("resizable",[cB("input-wrapper",`
|
|
resize: vertical;
|
|
min-height: var(--n-height);
|
|
`)]),cE("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;
|
|
`),cE("textarea-mirror",`
|
|
width: 100%;
|
|
pointer-events: none;
|
|
overflow: hidden;
|
|
visibility: hidden;
|
|
position: static;
|
|
white-space: pre-wrap;
|
|
overflow-wrap: break-word;
|
|
`)]),cM("pair",[cE("input-el, placeholder","text-align: center;"),cE("separator",`
|
|
display: flex;
|
|
align-items: center;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
white-space: nowrap;
|
|
`,[cB("icon",`
|
|
color: var(--n-icon-color);
|
|
`),cB("base-icon",`
|
|
color: var(--n-icon-color);
|
|
`)])]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
background-color: var(--n-color-disabled);
|
|
`,[cE("border","border: var(--n-border-disabled);"),cE("input-el, textarea-el",`
|
|
cursor: not-allowed;
|
|
color: var(--n-text-color-disabled);
|
|
text-decoration-color: var(--n-text-color-disabled);
|
|
`),cE("placeholder","color: var(--n-placeholder-color-disabled);"),cE("separator","color: var(--n-text-color-disabled);",[cB("icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`),cB("base-icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`)]),cB("input-word-count",`
|
|
color: var(--n-count-text-color-disabled);
|
|
`),cE("suffix, prefix","color: var(--n-text-color-disabled);",[cB("icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`),cB("internal-icon",`
|
|
color: var(--n-icon-color-disabled);
|
|
`)])]),cNotM("disabled",[cE("eye",`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: var(--n-icon-color);
|
|
cursor: pointer;
|
|
`,[c$1("&:hover",`
|
|
color: var(--n-icon-color-hover);
|
|
`),c$1("&:active",`
|
|
color: var(--n-icon-color-pressed);
|
|
`)]),c$1("&:hover",[cE("state-border","border: var(--n-border-hover);")]),cM("focus","background-color: var(--n-color-focus);",[cE("state-border",`
|
|
border: var(--n-border-focus);
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)])]),cE("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);
|
|
`),cE("state-border",`
|
|
border-color: #0000;
|
|
z-index: 1;
|
|
`),cE("prefix","margin-right: 4px;"),cE("suffix",`
|
|
margin-left: 4px;
|
|
`),cE("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);
|
|
`,[cB("base-loading",`
|
|
font-size: var(--n-icon-size);
|
|
margin: 0 2px;
|
|
color: var(--n-loading-color);
|
|
`),cB("base-clear",`
|
|
font-size: var(--n-icon-size);
|
|
`,[cE("placeholder",[cB("base-icon",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
`)])]),c$1(">",[cB("icon",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
`)]),cB("base-icon",`
|
|
font-size: var(--n-icon-size);
|
|
`)]),cB("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(t=>cM(`${t}-status`,[cNotM("disabled",[cB("base-loading",`
|
|
color: var(--n-loading-color-${t})
|
|
`),cE("input-el, textarea-el",`
|
|
caret-color: var(--n-caret-color-${t});
|
|
`),cE("state-border",`
|
|
border: var(--n-border-${t});
|
|
`),c$1("&:hover",[cE("state-border",`
|
|
border: var(--n-border-hover-${t});
|
|
`)]),c$1("&:focus",`
|
|
background-color: var(--n-color-focus-${t});
|
|
`,[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus-${t});
|
|
border: var(--n-border-focus-${t});
|
|
`)]),cM("focus",`
|
|
background-color: var(--n-color-focus-${t});
|
|
`,[cE("state-border",`
|
|
box-shadow: var(--n-box-shadow-focus-${t});
|
|
border: var(--n-border-focus-${t});
|
|
`)])])]))]);const safariStyle=cB("input",[cM("disabled",[cE("input-el, textarea-el",`
|
|
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
`)])]),inputProps=Object.assign(Object.assign({},useTheme.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],countGraphemes:Function,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 NInput=defineComponent({name:"Input",props:inputProps,setup(t){const{mergedClsPrefixRef:r,mergedBorderedRef:n,inlineThemeDisabled:o,mergedRtlRef:s}=useConfig(t),l=useTheme("Input","-input",style$13,inputLight$1,t,r);isSafari&&useStyle("-input-safari",safariStyle,r);const d=ref(null),g=ref(null),y=ref(null),b=ref(null),C=ref(null),x=ref(null),S=ref(null),_=useCursor(S),w=ref(null),{localeRef:$}=useLocale("Input"),I=ref(t.defaultValue),B=toRef(t,"value"),R=useMergedState(B,I),P=useFormItem(t),{mergedSizeRef:M,mergedDisabledRef:O,mergedStatusRef:D}=P,N=ref(!1),H=ref(!1),Q=ref(!1),G=ref(!1);let K=null;const W=computed(()=>{const{placeholder:Ie,pair:Fe}=t;return Fe?Array.isArray(Ie)?Ie:Ie===void 0?["",""]:[Ie,Ie]:Ie===void 0?[$.value.placeholder]:[Ie]}),j=computed(()=>{const{value:Ie}=Q,{value:Fe}=R,{value:et}=W;return!Ie&&(isEmptyInputValue(Fe)||Array.isArray(Fe)&&isEmptyInputValue(Fe[0]))&&et[0]}),Y=computed(()=>{const{value:Ie}=Q,{value:Fe}=R,{value:et}=W;return!Ie&&et[1]&&(isEmptyInputValue(Fe)||Array.isArray(Fe)&&isEmptyInputValue(Fe[1]))}),q=useMemo(()=>t.internalForceFocus||N.value),X=useMemo(()=>{if(O.value||t.readonly||!t.clearable||!q.value&&!H.value)return!1;const{value:Ie}=R,{value:Fe}=q;return t.pair?!!(Array.isArray(Ie)&&(Ie[0]||Ie[1]))&&(H.value||Fe):!!Ie&&(H.value||Fe)}),re=computed(()=>{const{showPasswordOn:Ie}=t;if(Ie)return Ie;if(t.showPasswordToggle)return"click"}),te=ref(!1),oe=computed(()=>{const{textDecoration:Ie}=t;return Ie?Array.isArray(Ie)?Ie.map(Fe=>({textDecoration:Fe})):[{textDecoration:Ie}]:["",""]}),ae=ref(void 0),se=()=>{var Ie,Fe;if(t.type==="textarea"){const{autosize:et}=t;if(et&&(ae.value=(Fe=(Ie=w.value)===null||Ie===void 0?void 0:Ie.$el)===null||Fe===void 0?void 0:Fe.offsetWidth),!g.value||typeof et=="boolean")return;const{paddingTop:At,paddingBottom:Oe,lineHeight:He}=window.getComputedStyle(g.value),at=Number(At.slice(0,-2)),ct=Number(Oe.slice(0,-2)),dt=Number(He.slice(0,-2)),{value:yt}=y;if(!yt)return;if(et.minRows){const gt=Math.max(et.minRows,1),ke=`${at+ct+dt*gt}px`;yt.style.minHeight=ke}if(et.maxRows){const gt=`${at+ct+dt*et.maxRows}px`;yt.style.maxHeight=gt}}},ue=computed(()=>{const{maxlength:Ie}=t;return Ie===void 0?void 0:Number(Ie)});onMounted(()=>{const{value:Ie}=R;Array.isArray(Ie)||Ne(Ie)});const Ae=getCurrentInstance().proxy;function pe(Ie){const{onUpdateValue:Fe,"onUpdate:value":et,onInput:At}=t,{nTriggerFormInput:Oe}=P;Fe&&call(Fe,Ie),et&&call(et,Ie),At&&call(At,Ie),I.value=Ie,Oe()}function he(Ie){const{onChange:Fe}=t,{nTriggerFormChange:et}=P;Fe&&call(Fe,Ie),I.value=Ie,et()}function Ce(Ie){const{onBlur:Fe}=t,{nTriggerFormBlur:et}=P;Fe&&call(Fe,Ie),et()}function ve(Ie){const{onFocus:Fe}=t,{nTriggerFormFocus:et}=P;Fe&&call(Fe,Ie),et()}function ye(Ie){const{onClear:Fe}=t;Fe&&call(Fe,Ie)}function Be(Ie){const{onInputBlur:Fe}=t;Fe&&call(Fe,Ie)}function Se(Ie){const{onInputFocus:Fe}=t;Fe&&call(Fe,Ie)}function Ee(){const{onDeactivate:Ie}=t;Ie&&call(Ie)}function ie(){const{onActivate:Ie}=t;Ie&&call(Ie)}function ee(Ie){const{onClick:Fe}=t;Fe&&call(Fe,Ie)}function J(Ie){const{onWrapperFocus:Fe}=t;Fe&&call(Fe,Ie)}function ce(Ie){const{onWrapperBlur:Fe}=t;Fe&&call(Fe,Ie)}function fe(){Q.value=!0}function ne(Ie){Q.value=!1,Ie.target===x.value?le(Ie,1):le(Ie,0)}function le(Ie,Fe=0,et="input"){const At=Ie.target.value;if(Ne(At),Ie instanceof InputEvent&&!Ie.isComposing&&(Q.value=!1),t.type==="textarea"){const{value:He}=w;He&&He.syncUnifiedContainer()}if(K=At,Q.value)return;_.recordCursor();const Oe=me(At);if(Oe)if(!t.pair)et==="input"?pe(At):he(At);else{let{value:He}=R;Array.isArray(He)?He=[He[0],He[1]]:He=["",""],He[Fe]=At,et==="input"?pe(He):he(He)}Ae.$forceUpdate(),Oe||nextTick(_.restoreCursor)}function me(Ie){const{countGraphemes:Fe,maxlength:et,minlength:At}=t;if(Fe){let He;if(et!==void 0&&(He===void 0&&(He=Fe(Ie)),He>Number(et))||At!==void 0&&(He===void 0&&(He=Fe(Ie)),He<Number(et)))return!1}const{allowInput:Oe}=t;return typeof Oe=="function"?Oe(Ie):!0}function Te(Ie){Be(Ie),Ie.relatedTarget===d.value&&Ee(),Ie.relatedTarget!==null&&(Ie.relatedTarget===C.value||Ie.relatedTarget===x.value||Ie.relatedTarget===g.value)||(G.value=!1),be(Ie,"blur"),S.value=null}function ge(Ie,Fe){Se(Ie),N.value=!0,G.value=!0,ie(),be(Ie,"focus"),Fe===0?S.value=C.value:Fe===1?S.value=x.value:Fe===2&&(S.value=g.value)}function $e(Ie){t.passivelyActivated&&(ce(Ie),be(Ie,"blur"))}function de(Ie){t.passivelyActivated&&(N.value=!0,J(Ie),be(Ie,"focus"))}function be(Ie,Fe){Ie.relatedTarget!==null&&(Ie.relatedTarget===C.value||Ie.relatedTarget===x.value||Ie.relatedTarget===g.value||Ie.relatedTarget===d.value)||(Fe==="focus"?(ve(Ie),N.value=!0):Fe==="blur"&&(Ce(Ie),N.value=!1))}function we(Ie,Fe){le(Ie,Fe,"change")}function Me(Ie){ee(Ie)}function Ue(Ie){ye(Ie),t.pair?(pe(["",""]),he(["",""])):(pe(""),he(""))}function Ge(Ie){const{onMousedown:Fe}=t;Fe&&Fe(Ie);const{tagName:et}=Ie.target;if(et!=="INPUT"&&et!=="TEXTAREA"){if(t.resizable){const{value:At}=d;if(At){const{left:Oe,top:He,width:at,height:ct}=At.getBoundingClientRect(),dt=14;if(Oe+at-dt<Ie.clientX&&Ie.clientX<Oe+at&&He+ct-dt<Ie.clientY&&Ie.clientY<He+ct)return}}Ie.preventDefault(),N.value||_e()}}function Ze(){var Ie;H.value=!0,t.type==="textarea"&&((Ie=w.value)===null||Ie===void 0||Ie.handleMouseEnterWrapper())}function tt(){var Ie;H.value=!1,t.type==="textarea"&&((Ie=w.value)===null||Ie===void 0||Ie.handleMouseLeaveWrapper())}function st(){O.value||re.value==="click"&&(te.value=!te.value)}function We(Ie){if(O.value)return;Ie.preventDefault();const Fe=At=>{At.preventDefault(),off("mouseup",document,Fe)};if(on("mouseup",document,Fe),re.value!=="mousedown")return;te.value=!0;const et=()=>{te.value=!1,off("mouseup",document,et)};on("mouseup",document,et)}function Je(Ie){var Fe;switch((Fe=t.onKeydown)===null||Fe===void 0||Fe.call(t,Ie),Ie.key){case"Escape":Xe();break;case"Enter":Ye(Ie);break}}function Ye(Ie){var Fe,et;if(t.passivelyActivated){const{value:At}=G;if(At){t.internalDeactivateOnEnter&&Xe();return}Ie.preventDefault(),t.type==="textarea"?(Fe=g.value)===null||Fe===void 0||Fe.focus():(et=C.value)===null||et===void 0||et.focus()}}function Xe(){t.passivelyActivated&&(G.value=!1,nextTick(()=>{var Ie;(Ie=d.value)===null||Ie===void 0||Ie.focus()}))}function _e(){var Ie,Fe,et;O.value||(t.passivelyActivated?(Ie=d.value)===null||Ie===void 0||Ie.focus():((Fe=g.value)===null||Fe===void 0||Fe.focus(),(et=C.value)===null||et===void 0||et.focus()))}function xe(){var Ie;!((Ie=d.value)===null||Ie===void 0)&&Ie.contains(document.activeElement)&&document.activeElement.blur()}function Le(){var Ie,Fe;(Ie=g.value)===null||Ie===void 0||Ie.select(),(Fe=C.value)===null||Fe===void 0||Fe.select()}function Ve(){O.value||(g.value?g.value.focus():C.value&&C.value.focus())}function ze(){const{value:Ie}=d;(Ie==null?void 0:Ie.contains(document.activeElement))&&Ie!==document.activeElement&&Xe()}function Re(Ie){if(t.type==="textarea"){const{value:Fe}=g;Fe==null||Fe.scrollTo(Ie)}else{const{value:Fe}=C;Fe==null||Fe.scrollTo(Ie)}}function Ne(Ie){const{type:Fe,pair:et,autosize:At}=t;if(!et&&At)if(Fe==="textarea"){const{value:Oe}=y;Oe&&(Oe.textContent=(Ie!=null?Ie:"")+`\r
|
|
`)}else{const{value:Oe}=b;Oe&&(Ie?Oe.textContent=Ie:Oe.innerHTML=" ")}}function je(){se()}const nt=ref({top:"0"});function De(Ie){var Fe;const{scrollTop:et}=Ie.target;nt.value.top=`${-et}px`,(Fe=w.value)===null||Fe===void 0||Fe.syncUnifiedContainer()}let Qe=null;watchEffect(()=>{const{autosize:Ie,type:Fe}=t;Ie&&Fe==="textarea"?Qe=watch(R,et=>{!Array.isArray(et)&&et!==K&&Ne(et)}):Qe==null||Qe()});let Pe=null;watchEffect(()=>{t.type==="textarea"?Pe=watch(R,Ie=>{var Fe;!Array.isArray(Ie)&&Ie!==K&&((Fe=w.value)===null||Fe===void 0||Fe.syncUnifiedContainer())}):Pe==null||Pe()}),provide(inputInjectionKey,{mergedValueRef:R,maxlengthRef:ue,mergedClsPrefixRef:r,countGraphemesRef:toRef(t,"countGraphemes")});const Ke={wrapperElRef:d,inputElRef:C,textareaElRef:g,isCompositing:Q,focus:_e,blur:xe,select:Le,deactivate:ze,activate:Ve,scrollTo:Re},ot=useRtl("Input",s,r),ft=computed(()=>{const{value:Ie}=M,{common:{cubicBezierEaseInOut:Fe},self:{color:et,borderRadius:At,textColor:Oe,caretColor:He,caretColorError:at,caretColorWarning:ct,textDecorationColor:dt,border:yt,borderDisabled:gt,borderHover:ke,borderFocus:qe,placeholderColor:ut,placeholderColorDisabled:ht,lineHeightTextarea:mt,colorDisabled:pt,colorFocus:xt,textColorDisabled:vt,boxShadowFocus:bt,iconSize:St,colorFocusWarning:_t,boxShadowFocusWarning:wt,borderWarning:$t,borderFocusWarning:Tt,borderHoverWarning:It,colorFocusError:Rt,boxShadowFocusError:Pt,borderError:Mt,borderFocusError:Ot,borderHoverError:Dt,clearSize:Lt,clearColor:kt,clearColorHover:Ut,clearColorPressed:Ht,iconColor:zt,iconColorDisabled:Vt,suffixTextColor:Qt,countTextColor:Gt,countTextColorDisabled:Kt,iconColorHover:Wt,iconColorPressed:jt,loadingColor:Yt,loadingColorError:Xt,loadingColorWarning:qt,[createKey("padding",Ie)]:Zt,[createKey("fontSize",Ie)]:Jt,[createKey("height",Ie)]:er}}=l.value,{left:tr,right:rr}=getMargin(Zt);return{"--n-bezier":Fe,"--n-count-text-color":Gt,"--n-count-text-color-disabled":Kt,"--n-color":et,"--n-font-size":Jt,"--n-border-radius":At,"--n-height":er,"--n-padding-left":tr,"--n-padding-right":rr,"--n-text-color":Oe,"--n-caret-color":He,"--n-text-decoration-color":dt,"--n-border":yt,"--n-border-disabled":gt,"--n-border-hover":ke,"--n-border-focus":qe,"--n-placeholder-color":ut,"--n-placeholder-color-disabled":ht,"--n-icon-size":St,"--n-line-height-textarea":mt,"--n-color-disabled":pt,"--n-color-focus":xt,"--n-text-color-disabled":vt,"--n-box-shadow-focus":bt,"--n-loading-color":Yt,"--n-caret-color-warning":ct,"--n-color-focus-warning":_t,"--n-box-shadow-focus-warning":wt,"--n-border-warning":$t,"--n-border-focus-warning":Tt,"--n-border-hover-warning":It,"--n-loading-color-warning":qt,"--n-caret-color-error":at,"--n-color-focus-error":Rt,"--n-box-shadow-focus-error":Pt,"--n-border-error":Mt,"--n-border-focus-error":Ot,"--n-border-hover-error":Dt,"--n-loading-color-error":Xt,"--n-clear-color":kt,"--n-clear-size":Lt,"--n-clear-color-hover":Ut,"--n-clear-color-pressed":Ht,"--n-icon-color":zt,"--n-icon-color-hover":Wt,"--n-icon-color-pressed":jt,"--n-icon-color-disabled":Vt,"--n-suffix-text-color":Qt}}),it=o?useThemeClass("input",computed(()=>{const{value:Ie}=M;return Ie[0]}),ft,t):void 0;return Object.assign(Object.assign({},Ke),{wrapperElRef:d,inputElRef:C,inputMirrorElRef:b,inputEl2Ref:x,textareaElRef:g,textareaMirrorElRef:y,textareaScrollbarInstRef:w,rtlEnabled:ot,uncontrolledValue:I,mergedValue:R,passwordVisible:te,mergedPlaceholder:W,showPlaceholder1:j,showPlaceholder2:Y,mergedFocus:q,isComposing:Q,activated:G,showClearButton:X,mergedSize:M,mergedDisabled:O,textDecorationStyle:oe,mergedClsPrefix:r,mergedBordered:n,mergedShowPasswordOn:re,placeholderStyle:nt,mergedStatus:D,textAreaScrollContainerWidth:ae,handleTextAreaScroll:De,handleCompositionStart:fe,handleCompositionEnd:ne,handleInput:le,handleInputBlur:Te,handleInputFocus:ge,handleWrapperBlur:$e,handleWrapperFocus:de,handleMouseEnter:Ze,handleMouseLeave:tt,handleMouseDown:Ge,handleChange:we,handleClick:Me,handleClear:Ue,handlePasswordToggleClick:st,handlePasswordToggleMousedown:We,handleWrapperKeydown:Je,handleTextAreaMirrorResize:je,getTextareaScrollContainer:()=>g.value,mergedTheme:l,cssVars:o?void 0:ft,themeClass:it==null?void 0:it.themeClass,onRender:it==null?void 0:it.onRender})},render(){var t,r;const{mergedClsPrefix:n,mergedStatus:o,themeClass:s,type:l,countGraphemes:d,onRender:g}=this,y=this.$slots;return g==null||g(),h("div",{ref:"wrapperElRef",class:[`${n}-input`,s,o&&`${n}-input--${o}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:l==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&l!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-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},h("div",{class:`${n}-input-wrapper`},resolveWrappedSlot(y.prefix,b=>b&&h("div",{class:`${n}-input__prefix`},b)),l==="textarea"?h(NScrollbar$1,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var b,C;const{textAreaScrollContainerWidth:x}=this,S={width:this.autosize&&x&&`${x}px`};return h(Fragment,null,h("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(b=this.inputProps)===null||b===void 0?void 0:b.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(C=this.inputProps)===null||C===void 0?void 0:C.style,S],onBlur:this.handleInputBlur,onFocus:_=>this.handleInputFocus(_,2),onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?h("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,S],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?h(VResizeObserver,{onResize:this.handleTextAreaMirrorResize},{default:()=>h("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):h("div",{class:`${n}-input__input`},h("input",Object.assign({type:l==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":l},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(t=this.inputProps)===null||t===void 0?void 0:t.class],style:[this.textDecorationStyle[0],(r=this.inputProps)===null||r===void 0?void 0:r.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?void 0: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:b=>this.handleInputFocus(b,0),onInput:b=>this.handleInput(b,0),onChange:b=>this.handleChange(b,0)})),this.showPlaceholder1?h("div",{class:`${n}-input__placeholder`},h("span",null,this.mergedPlaceholder[0])):null,this.autosize?h("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"},"\xA0"):null),!this.pair&&resolveWrappedSlot(y.suffix,b=>b||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?h("div",{class:`${n}-input__suffix`},[resolveWrappedSlot(y["clear-icon-placeholder"],C=>(this.clearable||C)&&h(NBaseClear,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>C,icon:()=>{var x,S;return(S=(x=this.$slots)["clear-icon"])===null||S===void 0?void 0:S.call(x)}})),this.internalLoadingBeforeSuffix?null:b,this.loading!==void 0?h(NBaseSuffix,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?b:null,this.showCount&&this.type!=="textarea"?h(WordCount,null,{default:C=>{var x;return(x=y.count)===null||x===void 0?void 0:x.call(y,C)}}):null,this.mergedShowPasswordOn&&this.type==="password"?h("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?resolveSlot(y["password-visible-icon"],()=>[h(NBaseIcon,{clsPrefix:n},{default:()=>h(EyeIcon,null)})]):resolveSlot(y["password-invisible-icon"],()=>[h(NBaseIcon,{clsPrefix:n},{default:()=>h(EyeOffIcon,null)})])):null]):null)),this.pair?h("span",{class:`${n}-input__separator`},resolveSlot(y.separator,()=>[this.separator])):null,this.pair?h("div",{class:`${n}-input-wrapper`},h("div",{class:`${n}-input__input`},h("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:d?void 0:this.maxlength,minlength:d?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:b=>this.handleInputFocus(b,1),onInput:b=>this.handleInput(b,1),onChange:b=>this.handleChange(b,1)}),this.showPlaceholder2?h("div",{class:`${n}-input__placeholder`},h("span",null,this.mergedPlaceholder[1])):null),resolveWrappedSlot(y.suffix,b=>(this.clearable||b)&&h("div",{class:`${n}-input__suffix`},[this.clearable&&h(NBaseClear,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var C;return(C=y["clear-icon"])===null||C===void 0?void 0:C.call(y)},placeholder:()=>{var C;return(C=y["clear-icon-placeholder"])===null||C===void 0?void 0:C.call(y)}}),b]))):null,this.mergedBordered?h("div",{class:`${n}-input__border`}):null,this.mergedBordered?h("div",{class:`${n}-input__state-border`}):null,this.showCount&&l==="textarea"?h(WordCount,null,{default:b=>{var C;const{renderCount:x}=this;return x?x(b):(C=y.count)===null||C===void 0?void 0:C.call(y,b)}}):null)}}),style$12=cB("input-group",`
|
|
display: inline-flex;
|
|
width: 100%;
|
|
flex-wrap: nowrap;
|
|
vertical-align: bottom;
|
|
`,[c$1(">",[cB("input",[c$1("&:not(:last-child)",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),c$1("&:not(:first-child)",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
margin-left: -1px!important;
|
|
`)]),cB("button",[c$1("&:not(:last-child)",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`,[cE("state-border, border",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`)]),c$1("&:not(:first-child)",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`,[cE("state-border, border",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`)])]),c$1("*",[c$1("&:not(:last-child)",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`,[c$1(">",[cB("input",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),cB("base-selection",[cB("base-selection-label",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),cB("base-selection-tags",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`),cE("box-shadow, border, state-border",`
|
|
border-top-right-radius: 0!important;
|
|
border-bottom-right-radius: 0!important;
|
|
`)])])]),c$1("&:not(:first-child)",`
|
|
margin-left: -1px!important;
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`,[c$1(">",[cB("input",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`),cB("base-selection",[cB("base-selection-label",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`),cB("base-selection-tags",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`),cE("box-shadow, border, state-border",`
|
|
border-top-left-radius: 0!important;
|
|
border-bottom-left-radius: 0!important;
|
|
`)])])])])])]);const inputGroupProps={};var NInputGroup=defineComponent({name:"InputGroup",props:inputGroupProps,setup(t){const{mergedClsPrefixRef:r}=useConfig(t);return useStyle("-input-group",style$12,r),{mergedClsPrefix:r}},render(){const{mergedClsPrefix:t}=this;return h("div",{class:`${t}-input-group`},this.$slots)}}),style$11=cB("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);
|
|
`,[cE("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 inputGroupLabelProps=Object.assign(Object.assign({},useTheme.props),{size:{type:String,default:"medium"},bordered:{type:Boolean,default:void 0}});var NInputGroupLabel=defineComponent({name:"InputGroupLabel",props:inputGroupLabelProps,setup(t){const{mergedBorderedRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o}=useConfig(t),s=useTheme("Input","-input-group-label",style$11,inputLight$1,t,n),l=computed(()=>{const{size:g}=t,{common:{cubicBezierEaseInOut:y},self:{groupLabelColor:b,borderRadius:C,groupLabelTextColor:x,lineHeight:S,groupLabelBorder:_,[createKey("fontSize",g)]:w,[createKey("height",g)]:$}}=s.value;return{"--n-bezier":y,"--n-group-label-color":b,"--n-group-label-border":_,"--n-border-radius":C,"--n-group-label-text-color":x,"--n-font-size":w,"--n-line-height":S,"--n-height":$}}),d=o?useThemeClass("input-group-label",computed(()=>t.size[0]),l,t):void 0;return{mergedClsPrefix:n,mergedBordered:r,cssVars:o?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var t,r,n;const{mergedClsPrefix:o}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${o}-input-group-label`,this.themeClass],style:this.cssVars},(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r),this.mergedBordered?h("div",{class:`${o}-input-group-label__border`}):null)}});function self$_(t){const{boxShadow2:r}=t;return{menuBoxShadow:r}}const autoCompleteDark={name:"AutoComplete",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self:self$_};var autoCompleteDark$1=autoCompleteDark;const isImageSupportNativeLazy=isBrowser$3&&"loading"in document.createElement("img"),resolveOptionsAndHash=(t={})=>{var r;const{root:n=null}=t;return{hash:`${t.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(t.threshold)?t.threshold.join(","):(r=t.threshold)!==null&&r!==void 0?r:"0"}`,options:Object.assign(Object.assign({},t),{root:(typeof n=="string"?document.querySelector(n):n)||document.documentElement})}},observers=new WeakMap,unobserveHandleMap=new WeakMap,shouldStartLoadingRefMap=new WeakMap,observeIntersection=(t,r,n)=>{if(!t)return()=>{};const o=resolveOptionsAndHash(r),{root:s}=o.options;let l;const d=observers.get(s);d?l=d:(l=new Map,observers.set(s,l));let g,y;l.has(o.hash)?(y=l.get(o.hash),y[1].has(t)||(g=y[0],y[1].add(t),g.observe(t))):(g=new IntersectionObserver(x=>{x.forEach(S=>{if(S.isIntersecting){const _=unobserveHandleMap.get(S.target),w=shouldStartLoadingRefMap.get(S.target);_&&_(),w&&(w.value=!0)}})},o.options),g.observe(t),y=[g,new Set([t])],l.set(o.hash,y));let b=!1;const C=()=>{b||(unobserveHandleMap.delete(t),shouldStartLoadingRefMap.delete(t),b=!0,y[1].has(t)&&(y[0].unobserve(t),y[1].delete(t)),y[1].size<=0&&l.delete(o.hash),l.size||observers.delete(s))};return unobserveHandleMap.set(t,C),shouldStartLoadingRefMap.set(t,n),C},self$Z=t=>{const{borderRadius:r,avatarColor:n,cardColor:o,fontSize:s,heightTiny:l,heightSmall:d,heightMedium:g,heightLarge:y,heightHuge:b,modalColor:C,popoverColor:x}=t;return{borderRadius:r,fontSize:s,border:`2px solid ${o}`,heightTiny:l,heightSmall:d,heightMedium:g,heightLarge:y,heightHuge:b,color:composite(o,n),colorModal:composite(C,n),colorPopover:composite(x,n)}},avatarLight={name:"Avatar",common:commonLight,self:self$Z};var avatarLight$1=avatarLight;const avatarDark={name:"Avatar",common:commonDark,self:self$Z};var avatarDark$1=avatarDark;const avatarGroupInjectionKey="n-avatar-group";var style$10=cB("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);
|
|
`,[insideModal(c$1("&","--n-merged-color: var(--n-color-modal);")),insidePopover(c$1("&","--n-merged-color: var(--n-color-popover);")),c$1("img",`
|
|
width: 100%;
|
|
height: 100%;
|
|
`),cE("text",`
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
`),cB("icon",`
|
|
vertical-align: bottom;
|
|
font-size: calc(var(--n-merged-size) - 6px);
|
|
`),cE("text","line-height: 1.25")]);const avatarProps=Object.assign(Object.assign({},useTheme.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,imgProps:Object,color:String});var NAvatar=defineComponent({name:"Avatar",props:avatarProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=ref(!1);let s=null;const l=ref(null),d=ref(null),g=()=>{const{value:P}=l;if(P&&(s===null||s!==P.innerHTML)){s=P.innerHTML;const{value:M}=d;if(M){const{offsetWidth:O,offsetHeight:D}=M,{offsetWidth:N,offsetHeight:H}=P,Q=.9,G=Math.min(O/N*Q,D/H*Q,1);P.style.transform=`translateX(-50%) translateY(-50%) scale(${G})`}}},y=inject(avatarGroupInjectionKey,null),b=computed(()=>{const{size:P}=t;if(P)return P;const{size:M}=y||{};return M||"medium"}),C=useTheme("Avatar","-avatar",style$10,avatarLight$1,t,r),x=inject(tagInjectionKey,null),S=computed(()=>{if(y)return!0;const{round:P,circle:M}=t;return P!==void 0||M!==void 0?P||M:x?x.roundRef.value:!1}),_=computed(()=>y?!0:t.bordered||!1),w=P=>{var M;if(!B.value)return;o.value=!0;const{onError:O,imgProps:D}=t;(M=D==null?void 0:D.onError)===null||M===void 0||M.call(D,P),O&&O(P)};watch(()=>t.src,()=>o.value=!1);const $=computed(()=>{const P=b.value,M=S.value,O=_.value,{color:D}=t,{self:{borderRadius:N,fontSize:H,color:Q,border:G,colorModal:K,colorPopover:W},common:{cubicBezierEaseInOut:j}}=C.value;let Y;return typeof P=="number"?Y=`${P}px`:Y=C.value.self[createKey("height",P)],{"--n-font-size":H,"--n-border":O?G:"none","--n-border-radius":M?"50%":N,"--n-color":D||Q,"--n-color-modal":D||K,"--n-color-popover":D||W,"--n-bezier":j,"--n-merged-size":`var(--n-avatar-size-override, ${Y})`}}),I=n?useThemeClass("avatar",computed(()=>{const P=b.value,M=S.value,O=_.value,{color:D}=t;let N="";return P&&(typeof P=="number"?N+=`a${P}`:N+=P[0]),M&&(N+="b"),O&&(N+="c"),D&&(N+=color2Class(D)),N}),$,t):void 0,B=ref(!t.lazy);onMounted(()=>{if(isImageSupportNativeLazy)return;let P;const M=watchEffect(()=>{P==null||P(),P=void 0,t.lazy&&(P=observeIntersection(d.value,t.intersectionObserverOptions,B))});onBeforeUnmount(()=>{M(),P==null||P()})});const R=ref(!t.lazy);return{textRef:l,selfRef:d,mergedRoundRef:S,mergedClsPrefix:r,fitTextTransform:g,cssVars:n?void 0:$,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender,hasLoadError:o,handleError:w,shouldStartLoading:B,loaded:R,mergedOnLoad:P=>{var M;const{onLoad:O,imgProps:D}=t;O==null||O(P),(M=D==null?void 0:D.onLoad)===null||M===void 0||M.call(D,P),R.value=!0}}},render(){var t,r;const{$slots:n,src:o,mergedClsPrefix:s,lazy:l,onRender:d,mergedOnLoad:g,shouldStartLoading:y,loaded:b,hasLoadError:C}=this;d==null||d();let x;const S=!b&&!C&&(this.renderPlaceholder?this.renderPlaceholder():(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t));return this.hasLoadError?x=this.renderFallback?this.renderFallback():resolveSlot(n.fallback,()=>[h("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):x=resolveWrappedSlot(n.default,_=>{if(_)return h(VResizeObserver,{onResize:this.fitTextTransform},{default:()=>h("span",{ref:"textRef",class:`${s}-avatar__text`},_)});if(o){const{imgProps:w}=this;return h("img",Object.assign(Object.assign({},w),{loading:isImageSupportNativeLazy&&!this.intersectionObserverOptions&&l?"lazy":"eager",src:isImageSupportNativeLazy||y||b?o:void 0,onLoad:g,"data-image-src":o,onError:this.handleError,style:[w==null?void 0:w.style,{objectFit:this.objectFit},S?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),h("span",{ref:"selfRef",class:[`${s}-avatar`,this.themeClass],style:this.cssVars},x,l&&S)}});const self$Y=()=>({gap:"-12px"}),avatarGroupDark={name:"AvatarGroup",common:commonDark,peers:{Avatar:avatarDark$1},self:self$Y};var avatarGroupDark$1=avatarGroupDark,commonVariables$h={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"};const backTopDark={name:"BackTop",common:commonDark,self(t){const{popoverColor:r,textColor2:n,primaryColorHover:o,primaryColorPressed:s}=t;return Object.assign(Object.assign({},commonVariables$h),{color:r,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:s,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 backTopDark$1=backTopDark;const self$X=t=>{const{popoverColor:r,textColor2:n,primaryColorHover:o,primaryColorPressed:s}=t;return Object.assign(Object.assign({},commonVariables$h),{color:r,textColor:n,iconColor:n,iconColorHover:o,iconColorPressed:s,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)"})},backTopLight={name:"BackTop",common:commonLight,self:self$X};var backTopLight$1=backTopLight,BackTopIcon=h("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},h("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},h("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},h("g",{transform:"translate(120.000000, 4285.000000)"},h("g",{transform:"translate(7.000000, 126.000000)"},h("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},h("g",{transform:"translate(4.000000, 2.000000)"},h("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"}),h("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"})))))))),style$$=cB("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);
|
|
`,[fadeInScaleUpTransition(),cM("transition-disabled",{transition:"none !important"}),cB("base-icon",`
|
|
font-size: var(--n-icon-size);
|
|
color: var(--n-icon-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`),c$1("svg",{pointerEvents:"none"}),c$1("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[cB("base-icon",{color:"var(--n-icon-color-hover)"})]),c$1("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[cB("base-icon",{color:"var(--n-icon-color-pressed)"})])]);const backTopProps=Object.assign(Object.assign({},useTheme.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 NBackTop=defineComponent({name:"BackTop",inheritAttrs:!1,props:backTopProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=ref(null),s=ref(!1);watchEffect(()=>{const{value:M}=o;if(M===null){s.value=!1;return}s.value=M>=t.visibilityHeight});const l=ref(!1);watch(s,M=>{var O;l.value&&((O=t["onUpdate:show"])===null||O===void 0||O.call(t,M))});const d=toRef(t,"show"),g=useMergedState(d,s),y=ref(!0),b=ref(null),C=computed(()=>({right:`calc(${formatLength(t.right)} + ${lockHtmlScrollRightCompensationRef.value})`,bottom:formatLength(t.bottom)}));let x,S;watch(g,M=>{var O,D;l.value&&(M&&((O=t.onShow)===null||O===void 0||O.call(t)),(D=t.onHide)===null||D===void 0||D.call(t))});const _=useTheme("BackTop","-back-top",style$$,backTopLight$1,t,r);function w(){var M;if(S)return;S=!0;const O=((M=t.target)===null||M===void 0?void 0:M.call(t))||unwrapElement(t.listenTo)||getScrollParent$1(b.value);if(!O)return;x=O===document.documentElement?document:O;const{to:D}=t;typeof D=="string"&&document.querySelector(D),x.addEventListener("scroll",I),I()}function $(){(isDocument(x)?document.documentElement:x).scrollTo({top:0,behavior:"smooth"})}function I(){o.value=(isDocument(x)?document.documentElement:x).scrollTop,l.value||nextTick(()=>{l.value=!0})}function B(){y.value=!1}onMounted(()=>{w(),y.value=g.value}),onBeforeUnmount(()=>{x&&x.removeEventListener("scroll",I)});const R=computed(()=>{const{self:{color:M,boxShadow:O,boxShadowHover:D,boxShadowPressed:N,iconColor:H,iconColorHover:Q,iconColorPressed:G,width:K,height:W,iconSize:j,borderRadius:Y,textColor:q},common:{cubicBezierEaseInOut:X}}=_.value;return{"--n-bezier":X,"--n-border-radius":Y,"--n-height":W,"--n-width":K,"--n-box-shadow":O,"--n-box-shadow-hover":D,"--n-box-shadow-pressed":N,"--n-color":M,"--n-icon-size":j,"--n-icon-color":H,"--n-icon-color-hover":Q,"--n-icon-color-pressed":G,"--n-text-color":q}}),P=n?useThemeClass("back-top",void 0,R,t):void 0;return{placeholderRef:b,style:C,mergedShow:g,isMounted:isMounted(),scrollElement:ref(null),scrollTop:o,DomInfoReady:l,transitionDisabled:y,mergedClsPrefix:r,handleAfterEnter:B,handleScroll:I,handleClick:$,cssVars:n?void 0:R,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender}},render(){const{mergedClsPrefix:t}=this;return h("div",{ref:"placeholderRef",class:`${t}-back-top-placeholder`,style:"display: none","aria-hidden":!0},h(LazyTeleport,{to:this.to,show:this.mergedShow},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var r;return(r=this.onRender)===null||r===void 0||r.call(this),this.mergedShow?h("div",mergeProps(this.$attrs,{class:[`${t}-back-top`,this.themeClass,this.transitionDisabled&&`${t}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),resolveSlot(this.$slots.default,()=>[h(NBaseIcon,{clsPrefix:t},{default:()=>BackTopIcon})])):null}})}))}});const badgeDark={name:"Badge",common:commonDark,self(t){const{errorColorSuppl:r,infoColorSuppl:n,successColorSuppl:o,warningColorSuppl:s,fontFamily:l}=t;return{color:r,colorInfo:n,colorSuccess:o,colorError:r,colorWarning:s,fontSize:"12px",fontFamily:l}}};var badgeDark$1=badgeDark;const self$W=t=>{const{errorColor:r,infoColor:n,successColor:o,warningColor:s,fontFamily:l}=t;return{color:r,colorInfo:n,colorSuccess:o,colorError:r,colorWarning:s,fontSize:"12px",fontFamily:l}},badgeLight={name:"Badge",common:commonLight,self:self$W};var badgeLight$1=badgeLight,style$_=c$1([c$1("@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}}),cB("badge",`
|
|
display: inline-flex;
|
|
position: relative;
|
|
vertical-align: middle;
|
|
color: var(--n-color);
|
|
font-family: var(--n-font-family);
|
|
`,[cM("as-is",[cB("badge-sup",{position:"static",transform:"translateX(0)"},[fadeInScaleUpTransition({transformOrigin:"left bottom",originalTransform:"translateX(0)"})])]),cM("dot",[cB("badge-sup",`
|
|
height: 8px;
|
|
width: 8px;
|
|
padding: 0;
|
|
min-width: 8px;
|
|
left: 100%;
|
|
bottom: calc(100% - 4px);
|
|
`,[c$1("::before","border-radius: 4px;")])]),cB("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;
|
|
`,[fadeInScaleUpTransition({transformOrigin:"left bottom",originalTransform:"translateX(-50%)"}),cB("base-wave",{zIndex:1,animationDuration:"2s",animationIterationCount:"infinite",animationDelay:"1s",animationTimingFunction:"var(--n-ripple-bezier)",animationName:"badge-wave-spread"}),c$1("&::before",`
|
|
opacity: 0;
|
|
transform: scale(1);
|
|
border-radius: 9px;
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)])])]);const badgeProps=Object.assign(Object.assign({},useTheme.props),{value:[String,Number],max:Number,dot:Boolean,type:{type:String,default:"default"},show:{type:Boolean,default:!0},showZero:Boolean,processing:Boolean,color:String,offset:Array});var NBadge=defineComponent({name:"Badge",props:badgeProps,setup(t,{slots:r}){const{mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:s}=useConfig(t),l=useTheme("Badge","-badge",style$_,badgeLight$1,t,n),d=ref(!1),g=()=>{d.value=!0},y=()=>{d.value=!1},b=computed(()=>t.show&&(t.dot||t.value!==void 0&&!(!t.showZero&&t.value<=0)||!isSlotEmpty(r.value)));onMounted(()=>{b.value&&(d.value=!0)});const C=useRtl("Badge",s,n),x=computed(()=>{const{type:w,color:$}=t,{common:{cubicBezierEaseInOut:I,cubicBezierEaseOut:B},self:{[createKey("color",w)]:R,fontFamily:P,fontSize:M}}=l.value;return{"--n-font-size":M,"--n-font-family":P,"--n-color":$||R,"--n-ripple-color":$||R,"--n-bezier":I,"--n-ripple-bezier":B}}),S=o?useThemeClass("badge",computed(()=>{let w="";const{type:$,color:I}=t;return $&&(w+=$[0]),I&&(w+=color2Class(I)),w}),x,t):void 0,_=computed(()=>{const{offset:w}=t;if(!w)return;const[$,I]=w,B=typeof $=="number"?`${$}px`:$,R=typeof I=="number"?`${I}px`:I;return{transform:`translate(calc(${C!=null&&C.value?"50%":"-50%"} + ${B}), ${R})`}});return{rtlEnabled:C,mergedClsPrefix:n,appeared:d,showBadge:b,handleAfterEnter:g,handleAfterLeave:y,cssVars:o?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender,offsetStyle:_}},render(){var t;const{mergedClsPrefix:r,onRender:n,themeClass:o,$slots:s}=this;n==null||n();const l=(t=s.default)===null||t===void 0?void 0:t.call(s);return h("div",{class:[`${r}-badge`,this.rtlEnabled&&`${r}-badge--rtl`,o,{[`${r}-badge--dot`]:this.dot,[`${r}-badge--as-is`]:!l}],style:this.cssVars},l,h(Transition,{name:"fade-in-scale-up-transition",onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>this.showBadge?h("sup",{class:`${r}-badge-sup`,title:getTitleAttribute(this.value),style:this.offsetStyle},resolveSlot(s.value,()=>[this.dot?null:h(NBaseSlotMachine,{clsPrefix:r,appeared:this.appeared,max:this.max,value:this.value})]),this.processing?h(NBaseWave,{clsPrefix:r}):null):null}))}}),commonVariables$g={fontWeightActive:"400"};const self$V=t=>{const{fontSize:r,textColor3:n,textColor2:o,borderRadius:s,buttonColor2Hover:l,buttonColor2Pressed:d}=t;return Object.assign(Object.assign({},commonVariables$g),{fontSize:r,itemLineHeight:"1.25",itemTextColor:n,itemTextColorHover:o,itemTextColorPressed:o,itemTextColorActive:o,itemBorderRadius:s,itemColorHover:l,itemColorPressed:d,separatorColor:n})},breadcrumbLight={name:"Breadcrumb",common:commonLight,self:self$V};var breadcrumbLight$1=breadcrumbLight;const breadcrumbDark={name:"Breadcrumb",common:commonDark,self:self$V};var breadcrumbDark$1=breadcrumbDark,style$Z=cB("breadcrumb",`
|
|
white-space: nowrap;
|
|
cursor: default;
|
|
line-height: var(--n-item-line-height);
|
|
`,[c$1("ul",`
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
`),c$1("a",`
|
|
color: inherit;
|
|
text-decoration: inherit;
|
|
`),cB("breadcrumb-item",`
|
|
font-size: var(--n-font-size);
|
|
transition: color .3s var(--n-bezier);
|
|
display: inline-flex;
|
|
align-items: center;
|
|
`,[cB("icon",`
|
|
font-size: 18px;
|
|
vertical-align: -.2em;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-item-text-color);
|
|
`),c$1("&:not(:last-child)",[cM("clickable",[cE("link",`
|
|
cursor: pointer;
|
|
`,[c$1("&:hover",`
|
|
background-color: var(--n-item-color-hover);
|
|
`),c$1("&:active",`
|
|
background-color: var(--n-item-color-pressed);
|
|
`)])])]),cE("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;
|
|
`,[c$1("&:hover",`
|
|
color: var(--n-item-text-color-hover);
|
|
`,[cB("icon",`
|
|
color: var(--n-item-text-color-hover);
|
|
`)]),c$1("&:active",`
|
|
color: var(--n-item-text-color-pressed);
|
|
`,[cB("icon",`
|
|
color: var(--n-item-text-color-pressed);
|
|
`)])]),cE("separator",`
|
|
margin: 0 8px;
|
|
color: var(--n-separator-color);
|
|
transition: color .3s var(--n-bezier);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),c$1("&:last-child",[cE("link",`
|
|
font-weight: var(--n-font-weight-active);
|
|
cursor: unset;
|
|
color: var(--n-item-text-color-active);
|
|
`,[cB("icon",`
|
|
color: var(--n-item-text-color-active);
|
|
`)]),cE("separator",`
|
|
display: none;
|
|
`)])])]);const breadcrumbInjectionKey="n-breadcrumb",breadcrumbProps=Object.assign(Object.assign({},useTheme.props),{separator:{type:String,default:"/"}});var NBreadcrumb=defineComponent({name:"Breadcrumb",props:breadcrumbProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Breadcrumb","-breadcrumb",style$Z,breadcrumbLight$1,t,r);provide(breadcrumbInjectionKey,{separatorRef:toRef(t,"separator"),mergedClsPrefixRef:r});const s=computed(()=>{const{common:{cubicBezierEaseInOut:d},self:{separatorColor:g,itemTextColor:y,itemTextColorHover:b,itemTextColorPressed:C,itemTextColorActive:x,fontSize:S,fontWeightActive:_,itemBorderRadius:w,itemColorHover:$,itemColorPressed:I,itemLineHeight:B}}=o.value;return{"--n-font-size":S,"--n-bezier":d,"--n-item-text-color":y,"--n-item-text-color-hover":b,"--n-item-text-color-pressed":C,"--n-item-text-color-active":x,"--n-separator-color":g,"--n-item-color-hover":$,"--n-item-color-pressed":I,"--n-item-border-radius":w,"--n-font-weight-active":_,"--n-item-line-height":B}}),l=n?useThemeClass("breadcrumb",void 0,s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),h("nav",{class:[`${this.mergedClsPrefix}-breadcrumb`,this.themeClass],style:this.cssVars,"aria-label":"Breadcrumb"},h("ul",null,this.$slots))}});const defaultWindow=isBrowser$3?window:null,useBrowserLocation=(t=defaultWindow)=>{const r=()=>{const{hash:s,host:l,hostname:d,href:g,origin:y,pathname:b,port:C,protocol:x,search:S}=(t==null?void 0:t.location)||{};return{hash:s,host:l,hostname:d,href:g,origin:y,pathname:b,port:C,protocol:x,search:S}},n=()=>{o.value=r()},o=ref(r());return onMounted(()=>{t&&(t.addEventListener("popstate",n),t.addEventListener("hashchange",n))}),onUnmounted(()=>{t&&(t.removeEventListener("popstate",n),t.removeEventListener("hashchange",n))}),o},breadcrumbItemProps={separator:String,href:String,clickable:{type:Boolean,default:!0},onClick:Function};var NBreadcrumbItem=defineComponent({name:"BreadcrumbItem",props:breadcrumbItemProps,setup(t,{slots:r}){const n=inject(breadcrumbInjectionKey,null);if(!n)return()=>null;const{separatorRef:o,mergedClsPrefixRef:s}=n,l=useBrowserLocation(),d=computed(()=>t.href?"a":"span"),g=computed(()=>l.value.href===t.href?"location":null);return()=>{const{value:y}=s;return h("li",{class:[`${y}-breadcrumb-item`,t.clickable&&`${y}-breadcrumb-item--clickable`]},h(d.value,{class:`${y}-breadcrumb-item__link`,"aria-current":g.value,href:t.href,onClick:t.onClick},r),h("span",{class:`${y}-breadcrumb-item__separator`,"aria-hidden":"true"},resolveSlot(r.separator,()=>{var b;return[(b=t.separator)!==null&&b!==void 0?b:o.value]})))}}});function createHoverColor(t){return composite(t,[255,255,255,.16])}function createPressedColor(t){return composite(t,[0,0,0,.12])}const buttonGroupInjectionKey="n-button-group";var commonVariables$f={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 self$U=t=>{const{heightTiny:r,heightSmall:n,heightMedium:o,heightLarge:s,borderRadius:l,fontSizeTiny:d,fontSizeSmall:g,fontSizeMedium:y,fontSizeLarge:b,opacityDisabled:C,textColor2:x,textColor3:S,primaryColorHover:_,primaryColorPressed:w,borderColor:$,primaryColor:I,baseColor:B,infoColor:R,infoColorHover:P,infoColorPressed:M,successColor:O,successColorHover:D,successColorPressed:N,warningColor:H,warningColorHover:Q,warningColorPressed:G,errorColor:K,errorColorHover:W,errorColorPressed:j,fontWeight:Y,buttonColor2:q,buttonColor2Hover:X,buttonColor2Pressed:re,fontWeightStrong:te}=t;return Object.assign(Object.assign({},commonVariables$f),{heightTiny:r,heightSmall:n,heightMedium:o,heightLarge:s,borderRadiusTiny:l,borderRadiusSmall:l,borderRadiusMedium:l,borderRadiusLarge:l,fontSizeTiny:d,fontSizeSmall:g,fontSizeMedium:y,fontSizeLarge:b,opacityDisabled:C,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:q,colorSecondaryHover:X,colorSecondaryPressed:re,colorTertiary:q,colorTertiaryHover:X,colorTertiaryPressed:re,colorQuaternary:"#0000",colorQuaternaryHover:X,colorQuaternaryPressed:re,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:x,textColorTertiary:S,textColorHover:_,textColorPressed:w,textColorFocus:_,textColorDisabled:x,textColorText:x,textColorTextHover:_,textColorTextPressed:w,textColorTextFocus:_,textColorTextDisabled:x,textColorGhost:x,textColorGhostHover:_,textColorGhostPressed:w,textColorGhostFocus:_,textColorGhostDisabled:x,border:`1px solid ${$}`,borderHover:`1px solid ${_}`,borderPressed:`1px solid ${w}`,borderFocus:`1px solid ${_}`,borderDisabled:`1px solid ${$}`,rippleColor:I,colorPrimary:I,colorHoverPrimary:_,colorPressedPrimary:w,colorFocusPrimary:_,colorDisabledPrimary:I,textColorPrimary:B,textColorHoverPrimary:B,textColorPressedPrimary:B,textColorFocusPrimary:B,textColorDisabledPrimary:B,textColorTextPrimary:I,textColorTextHoverPrimary:_,textColorTextPressedPrimary:w,textColorTextFocusPrimary:_,textColorTextDisabledPrimary:x,textColorGhostPrimary:I,textColorGhostHoverPrimary:_,textColorGhostPressedPrimary:w,textColorGhostFocusPrimary:_,textColorGhostDisabledPrimary:I,borderPrimary:`1px solid ${I}`,borderHoverPrimary:`1px solid ${_}`,borderPressedPrimary:`1px solid ${w}`,borderFocusPrimary:`1px solid ${_}`,borderDisabledPrimary:`1px solid ${I}`,rippleColorPrimary:I,colorInfo:R,colorHoverInfo:P,colorPressedInfo:M,colorFocusInfo:P,colorDisabledInfo:R,textColorInfo:B,textColorHoverInfo:B,textColorPressedInfo:B,textColorFocusInfo:B,textColorDisabledInfo:B,textColorTextInfo:R,textColorTextHoverInfo:P,textColorTextPressedInfo:M,textColorTextFocusInfo:P,textColorTextDisabledInfo:x,textColorGhostInfo:R,textColorGhostHoverInfo:P,textColorGhostPressedInfo:M,textColorGhostFocusInfo:P,textColorGhostDisabledInfo:R,borderInfo:`1px solid ${R}`,borderHoverInfo:`1px solid ${P}`,borderPressedInfo:`1px solid ${M}`,borderFocusInfo:`1px solid ${P}`,borderDisabledInfo:`1px solid ${R}`,rippleColorInfo:R,colorSuccess:O,colorHoverSuccess:D,colorPressedSuccess:N,colorFocusSuccess:D,colorDisabledSuccess:O,textColorSuccess:B,textColorHoverSuccess:B,textColorPressedSuccess:B,textColorFocusSuccess:B,textColorDisabledSuccess:B,textColorTextSuccess:O,textColorTextHoverSuccess:D,textColorTextPressedSuccess:N,textColorTextFocusSuccess:D,textColorTextDisabledSuccess:x,textColorGhostSuccess:O,textColorGhostHoverSuccess:D,textColorGhostPressedSuccess:N,textColorGhostFocusSuccess:D,textColorGhostDisabledSuccess:O,borderSuccess:`1px solid ${O}`,borderHoverSuccess:`1px solid ${D}`,borderPressedSuccess:`1px solid ${N}`,borderFocusSuccess:`1px solid ${D}`,borderDisabledSuccess:`1px solid ${O}`,rippleColorSuccess:O,colorWarning:H,colorHoverWarning:Q,colorPressedWarning:G,colorFocusWarning:Q,colorDisabledWarning:H,textColorWarning:B,textColorHoverWarning:B,textColorPressedWarning:B,textColorFocusWarning:B,textColorDisabledWarning:B,textColorTextWarning:H,textColorTextHoverWarning:Q,textColorTextPressedWarning:G,textColorTextFocusWarning:Q,textColorTextDisabledWarning:x,textColorGhostWarning:H,textColorGhostHoverWarning:Q,textColorGhostPressedWarning:G,textColorGhostFocusWarning:Q,textColorGhostDisabledWarning:H,borderWarning:`1px solid ${H}`,borderHoverWarning:`1px solid ${Q}`,borderPressedWarning:`1px solid ${G}`,borderFocusWarning:`1px solid ${Q}`,borderDisabledWarning:`1px solid ${H}`,rippleColorWarning:H,colorError:K,colorHoverError:W,colorPressedError:j,colorFocusError:W,colorDisabledError:K,textColorError:B,textColorHoverError:B,textColorPressedError:B,textColorFocusError:B,textColorDisabledError:B,textColorTextError:K,textColorTextHoverError:W,textColorTextPressedError:j,textColorTextFocusError:W,textColorTextDisabledError:x,textColorGhostError:K,textColorGhostHoverError:W,textColorGhostPressedError:j,textColorGhostFocusError:W,textColorGhostDisabledError:K,borderError:`1px solid ${K}`,borderHoverError:`1px solid ${W}`,borderPressedError:`1px solid ${j}`,borderFocusError:`1px solid ${W}`,borderDisabledError:`1px solid ${K}`,rippleColorError:K,waveOpacity:"0.6",fontWeight:Y,fontWeightStrong:te})},buttonLight={name:"Button",common:commonLight,self:self$U};var buttonLight$1=buttonLight;const buttonDark={name:"Button",common:commonDark,self(t){const r=self$U(t);return r.waveOpacity="0.8",r.colorOpacitySecondary="0.16",r.colorOpacitySecondaryHover="0.2",r.colorOpacitySecondaryPressed="0.12",r}};var buttonDark$1=buttonDark,style$Y=c$1([cB("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);
|
|
`,[cM("color",[cE("border",{borderColor:"var(--n-border-color)"}),cM("disabled",[cE("border",{borderColor:"var(--n-border-color-disabled)"})]),cNotM("disabled",[c$1("&:focus",[cE("state-border",{borderColor:"var(--n-border-color-focus)"})]),c$1("&:hover",[cE("state-border",{borderColor:"var(--n-border-color-hover)"})]),c$1("&:active",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})]),cM("pressed",[cE("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),cM("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[cE("border",{border:"var(--n-border-disabled)"})]),cNotM("disabled",[c$1("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[cE("state-border",{border:"var(--n-border-focus)"})]),c$1("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[cE("state-border",{border:"var(--n-border-hover)"})]),c$1("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})]),cM("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[cE("state-border",{border:"var(--n-border-pressed)"})])]),cM("loading","cursor: wait;"),cB("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);
|
|
`,[cM("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),isBrowser$3&&"MozBoxSizing"in document.createElement("div").style?c$1("&::moz-focus-inner",{border:0}):null,cE("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;
|
|
`),cE("border",{border:"var(--n-border)"}),cE("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),cE("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;
|
|
`,[cB("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;
|
|
`,[iconSwitchTransition({top:"50%",originalTransform:"translateY(-50%)"})]),fadeInWidthExpandTransition()]),cE("content",`
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
min-width: 0;
|
|
`,[c$1("~",[cE("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),cM("block",`
|
|
display: flex;
|
|
width: 100%;
|
|
`),cM("dashed",[cE("border, state-border",{borderStyle:"dashed !important"})]),cM("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),c$1("@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)"}}),c$1("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]);const buttonProps=Object.assign(Object.assign({},useTheme.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,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!isSafari}}),Button=defineComponent({name:"Button",props:buttonProps,setup(t){const r=ref(null),n=ref(null),o=ref(!1),s=useMemo(()=>!t.quaternary&&!t.tertiary&&!t.secondary&&!t.text&&(!t.color||t.ghost||t.dashed)&&t.bordered),l=inject(buttonGroupInjectionKey,{}),{mergedSizeRef:d}=useFormItem({},{defaultSize:"medium",mergedSize:M=>{const{size:O}=t;if(O)return O;const{size:D}=l;if(D)return D;const{mergedSize:N}=M||{};return N?N.value:"medium"}}),g=computed(()=>t.focusable&&!t.disabled),y=M=>{var O;g.value||M.preventDefault(),!t.nativeFocusBehavior&&(M.preventDefault(),!t.disabled&&g.value&&((O=r.value)===null||O===void 0||O.focus({preventScroll:!0})))},b=M=>{var O;if(!t.disabled&&!t.loading){const{onClick:D}=t;D&&call(D,M),t.text||(O=n.value)===null||O===void 0||O.play()}},C=M=>{switch(M.key){case"Enter":if(!t.keyboard)return;o.value=!1}},x=M=>{switch(M.key){case"Enter":if(!t.keyboard||t.loading){M.preventDefault();return}o.value=!0}},S=()=>{o.value=!1},{inlineThemeDisabled:_,mergedClsPrefixRef:w,mergedRtlRef:$}=useConfig(t),I=useTheme("Button","-button",style$Y,buttonLight$1,t,w),B=useRtl("Button",$,w),R=computed(()=>{const M=I.value,{common:{cubicBezierEaseInOut:O,cubicBezierEaseOut:D},self:N}=M,{rippleDuration:H,opacityDisabled:Q,fontWeight:G,fontWeightStrong:K}=N,W=d.value,{dashed:j,type:Y,ghost:q,text:X,color:re,round:te,circle:oe,textColor:ae,secondary:se,tertiary:ue,quaternary:Ae,strong:pe}=t,he={"font-weight":pe?K:G};let Ce={"--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 ve=Y==="tertiary",ye=Y==="default",Be=ve?"default":Y;if(X){const Te=ae||re,ge=Te||N[createKey("textColorText",Be)];Ce={"--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":ge,"--n-text-color-hover":Te?createHoverColor(Te):N[createKey("textColorTextHover",Be)],"--n-text-color-pressed":Te?createPressedColor(Te):N[createKey("textColorTextPressed",Be)],"--n-text-color-focus":Te?createHoverColor(Te):N[createKey("textColorTextHover",Be)],"--n-text-color-disabled":Te||N[createKey("textColorTextDisabled",Be)]}}else if(q||j){const Te=ae||re;Ce={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":re||N[createKey("rippleColor",Be)],"--n-text-color":Te||N[createKey("textColorGhost",Be)],"--n-text-color-hover":Te?createHoverColor(Te):N[createKey("textColorGhostHover",Be)],"--n-text-color-pressed":Te?createPressedColor(Te):N[createKey("textColorGhostPressed",Be)],"--n-text-color-focus":Te?createHoverColor(Te):N[createKey("textColorGhostHover",Be)],"--n-text-color-disabled":Te||N[createKey("textColorGhostDisabled",Be)]}}else if(se){const Te=ye?N.textColor:ve?N.textColorTertiary:N[createKey("color",Be)],ge=re||Te,$e=Y!=="default"&&Y!=="tertiary";Ce={"--n-color":$e?changeColor(ge,{alpha:Number(N.colorOpacitySecondary)}):N.colorSecondary,"--n-color-hover":$e?changeColor(ge,{alpha:Number(N.colorOpacitySecondaryHover)}):N.colorSecondaryHover,"--n-color-pressed":$e?changeColor(ge,{alpha:Number(N.colorOpacitySecondaryPressed)}):N.colorSecondaryPressed,"--n-color-focus":$e?changeColor(ge,{alpha:Number(N.colorOpacitySecondaryHover)}):N.colorSecondaryHover,"--n-color-disabled":N.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":ge,"--n-text-color-hover":ge,"--n-text-color-pressed":ge,"--n-text-color-focus":ge,"--n-text-color-disabled":ge}}else if(ue||Ae){const Te=ye?N.textColor:ve?N.textColorTertiary:N[createKey("color",Be)],ge=re||Te;ue?(Ce["--n-color"]=N.colorTertiary,Ce["--n-color-hover"]=N.colorTertiaryHover,Ce["--n-color-pressed"]=N.colorTertiaryPressed,Ce["--n-color-focus"]=N.colorSecondaryHover,Ce["--n-color-disabled"]=N.colorTertiary):(Ce["--n-color"]=N.colorQuaternary,Ce["--n-color-hover"]=N.colorQuaternaryHover,Ce["--n-color-pressed"]=N.colorQuaternaryPressed,Ce["--n-color-focus"]=N.colorQuaternaryHover,Ce["--n-color-disabled"]=N.colorQuaternary),Ce["--n-ripple-color"]="#0000",Ce["--n-text-color"]=ge,Ce["--n-text-color-hover"]=ge,Ce["--n-text-color-pressed"]=ge,Ce["--n-text-color-focus"]=ge,Ce["--n-text-color-disabled"]=ge}else Ce={"--n-color":re||N[createKey("color",Be)],"--n-color-hover":re?createHoverColor(re):N[createKey("colorHover",Be)],"--n-color-pressed":re?createPressedColor(re):N[createKey("colorPressed",Be)],"--n-color-focus":re?createHoverColor(re):N[createKey("colorFocus",Be)],"--n-color-disabled":re||N[createKey("colorDisabled",Be)],"--n-ripple-color":re||N[createKey("rippleColor",Be)],"--n-text-color":ae||(re?N.textColorPrimary:ve?N.textColorTertiary:N[createKey("textColor",Be)]),"--n-text-color-hover":ae||(re?N.textColorHoverPrimary:N[createKey("textColorHover",Be)]),"--n-text-color-pressed":ae||(re?N.textColorPressedPrimary:N[createKey("textColorPressed",Be)]),"--n-text-color-focus":ae||(re?N.textColorFocusPrimary:N[createKey("textColorFocus",Be)]),"--n-text-color-disabled":ae||(re?N.textColorDisabledPrimary:N[createKey("textColorDisabled",Be)])};let Se={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};X?Se={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Se={"--n-border":N[createKey("border",Be)],"--n-border-hover":N[createKey("borderHover",Be)],"--n-border-pressed":N[createKey("borderPressed",Be)],"--n-border-focus":N[createKey("borderFocus",Be)],"--n-border-disabled":N[createKey("borderDisabled",Be)]};const{[createKey("height",W)]:Ee,[createKey("fontSize",W)]:ie,[createKey("padding",W)]:ee,[createKey("paddingRound",W)]:J,[createKey("iconSize",W)]:ce,[createKey("borderRadius",W)]:fe,[createKey("iconMargin",W)]:ne,waveOpacity:le}=N,me={"--n-width":oe&&!X?Ee:"initial","--n-height":X?"initial":Ee,"--n-font-size":ie,"--n-padding":oe||X?"initial":te?J:ee,"--n-icon-size":ce,"--n-icon-margin":ne,"--n-border-radius":X?"initial":oe||te?Ee:fe};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":O,"--n-bezier-ease-out":D,"--n-ripple-duration":H,"--n-opacity-disabled":Q,"--n-wave-opacity":le},he),Ce),Se),me)}),P=_?useThemeClass("button",computed(()=>{let M="";const{dashed:O,type:D,ghost:N,text:H,color:Q,round:G,circle:K,textColor:W,secondary:j,tertiary:Y,quaternary:q,strong:X}=t;O&&(M+="a"),N&&(M+="b"),H&&(M+="c"),G&&(M+="d"),K&&(M+="e"),j&&(M+="f"),Y&&(M+="g"),q&&(M+="h"),X&&(M+="i"),Q&&(M+="j"+color2Class(Q)),W&&(M+="k"+color2Class(W));const{value:re}=d;return M+="l"+re[0],M+="m"+D[0],M}),R,t):void 0;return{selfElRef:r,waveElRef:n,mergedClsPrefix:w,mergedFocusable:g,mergedSize:d,showBorder:s,enterPressed:o,rtlEnabled:B,handleMousedown:y,handleKeydown:x,handleBlur:S,handleKeyup:C,handleClick:b,customColorCssVars:computed(()=>{const{color:M}=t;if(!M)return null;const O=createHoverColor(M);return{"--n-border-color":M,"--n-border-color-hover":O,"--n-border-color-pressed":createPressedColor(M),"--n-border-color-focus":O,"--n-border-color-disabled":M}}),cssVars:_?void 0:R,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender}},render(){const{mergedClsPrefix:t,tag:r,onRender:n}=this;n==null||n();const o=resolveWrappedSlot(this.$slots.default,s=>s&&h("span",{class:`${t}-button__content`},s));return h(r,{ref:"selfElRef",class:[this.themeClass,`${t}-button`,`${t}-button--${this.type}-type`,`${t}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${t}-button--rtl`,this.disabled&&`${t}-button--disabled`,this.block&&`${t}-button--block`,this.enterPressed&&`${t}-button--pressed`,!this.text&&this.dashed&&`${t}-button--dashed`,this.color&&`${t}-button--color`,this.secondary&&`${t}-button--secondary`,this.loading&&`${t}-button--loading`,this.ghost&&`${t}-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"&&o,h(NFadeInExpandTransition,{width:!0},{default:()=>resolveWrappedSlot(this.$slots.icon,s=>(this.loading||this.renderIcon||s)&&h("span",{class:`${t}-button__icon`,style:{margin:isSlotEmpty(this.$slots.default)?"0":""}},h(NIconSwitchTransition,null,{default:()=>this.loading?h(NBaseLoading,{clsPrefix:t,key:"loading",class:`${t}-icon-slot`,strokeWidth:20}):h("div",{key:"icon",class:`${t}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():s)})))}),this.iconPlacement==="left"&&o,this.text?null:h(NBaseWave,{ref:"waveElRef",clsPrefix:t}),this.showBorder?h("div",{"aria-hidden":!0,class:`${t}-button__border`,style:this.customColorCssVars}):null,this.showBorder?h("div",{"aria-hidden":!0,class:`${t}-button__state-border`,style:this.customColorCssVars}):null)}});var NButton=Button;const XButton=Button,zero="0!important",n1="-1px!important";function createLeftBorderStyle(t){return cM(t+"-type",[c$1("& +",[cB("button",{},[cM(t+"-type",[cE("border",{borderLeftWidth:zero}),cE("state-border",{left:n1})])])])])}function createTopBorderStyle(t){return cM(t+"-type",[c$1("& +",[cB("button",[cM(t+"-type",[cE("border",{borderTopWidth:zero}),cE("state-border",{top:n1})])])])])}var style$X=cB("button-group",`
|
|
flex-wrap: nowrap;
|
|
display: inline-flex;
|
|
position: relative;
|
|
`,[cNotM("vertical",{flexDirection:"row"},[cNotM("rtl",[cB("button",[c$1("&:first-child:not(:last-child)",`
|
|
margin-right: ${zero};
|
|
border-top-right-radius: ${zero};
|
|
border-bottom-right-radius: ${zero};
|
|
`),c$1("&:last-child:not(:first-child)",`
|
|
margin-left: ${zero};
|
|
border-top-left-radius: ${zero};
|
|
border-bottom-left-radius: ${zero};
|
|
`),c$1("&:not(:first-child):not(:last-child)",`
|
|
margin-left: ${zero};
|
|
margin-right: ${zero};
|
|
border-radius: ${zero};
|
|
`),createLeftBorderStyle("default"),cM("ghost",[createLeftBorderStyle("primary"),createLeftBorderStyle("info"),createLeftBorderStyle("success"),createLeftBorderStyle("warning"),createLeftBorderStyle("error")])])])]),cM("vertical",{flexDirection:"column"},[cB("button",[c$1("&:first-child:not(:last-child)",`
|
|
margin-bottom: ${zero};
|
|
margin-left: ${zero};
|
|
margin-right: ${zero};
|
|
border-bottom-left-radius: ${zero};
|
|
border-bottom-right-radius: ${zero};
|
|
`),c$1("&:last-child:not(:first-child)",`
|
|
margin-top: ${zero};
|
|
margin-left: ${zero};
|
|
margin-right: ${zero};
|
|
border-top-left-radius: ${zero};
|
|
border-top-right-radius: ${zero};
|
|
`),c$1("&:not(:first-child):not(:last-child)",`
|
|
margin: ${zero};
|
|
border-radius: ${zero};
|
|
`),createTopBorderStyle("default"),cM("ghost",[createTopBorderStyle("primary"),createTopBorderStyle("info"),createTopBorderStyle("success"),createTopBorderStyle("warning"),createTopBorderStyle("error")])])])]);const buttonGroupProps={size:{type:String,default:void 0},vertical:Boolean};var NButtonGroup=defineComponent({name:"ButtonGroup",props:buttonGroupProps,setup(t){const{mergedClsPrefixRef:r,mergedRtlRef:n}=useConfig(t);return useStyle("-button-group",style$X,r),provide(buttonGroupInjectionKey,t),{rtlEnabled:useRtl("ButtonGroup",n,r),mergedClsPrefix:r}},render(){const{mergedClsPrefix:t}=this;return h("div",{class:[`${t}-button-group`,this.rtlEnabled&&`${t}-button-group--rtl`,this.vertical&&`${t}-button-group--vertical`],role:"group"},this.$slots)}});const START_YEAR=1901,MONTH_ITEM_HEIGHT=40,matcherMap={date:isSameDay,month:isSameMonth,year:isSameYear,quarter:isSameQuarter};function matchDate(t,r,n){const o=matcherMap[n];return Array.isArray(t)?t.some(s=>o(s,r)):o(t,r)}function dateItem(t,r,n,o){let s=!1,l=!1,d=!1;Array.isArray(n)&&(n[0]<t&&t<n[1]&&(s=!0),matchDate(n[0],t,"date")&&(l=!0),matchDate(n[1],t,"date")&&(d=!0));const g=n!==null&&(Array.isArray(n)?matchDate(n[0],t,"date")||matchDate(n[1],t,"date"):matchDate(n,t,"date"));return{type:"date",dateObject:{date:getDate(t),month:getMonth(t),year:getYear(t)},inCurrentMonth:isSameMonth(t,r),isCurrentDate:matchDate(o,t,"date"),inSpan:s,startOfSpan:l,endOfSpan:d,selected:g,ts:getTime$1(t)}}function monthItem(t,r,n){return{type:"month",dateObject:{month:getMonth(t),year:getYear(t)},isCurrent:isSameMonth(n,t),selected:r!==null&&matchDate(r,t,"month"),ts:getTime$1(t)}}function yearItem(t,r,n){return{type:"year",dateObject:{year:getYear(t)},isCurrent:isSameYear(n,t),selected:r!==null&&matchDate(r,t,"year"),ts:getTime$1(t)}}function quarterItem(t,r,n){return{type:"quarter",dateObject:{quarter:getQuarter(t),year:getYear(t)},isCurrent:isSameQuarter(n,t),selected:r!==null&&matchDate(r,t,"quarter"),ts:getTime$1(t)}}function dateArray(t,r,n,o,s=!1){const l=getMonth(t);let d=getTime$1(startOfMonth(t)),g=getTime$1(addDays(d,-1));const y=[];let b=!s;for(;getDay(g)!==o||b;)y.unshift(dateItem(g,t,r,n)),g=getTime$1(addDays(g,-1)),b=!1;for(;getMonth(d)===l;)y.push(dateItem(d,t,r,n)),d=getTime$1(addDays(d,1));const C=s?y.length<=28?28:y.length<=35?35:42:42;for(;y.length<C;)y.push(dateItem(d,t,r,n)),d=getTime$1(addDays(d,1));return y}function monthArray(t,r,n){const o=[],s=startOfYear(t);for(let l=0;l<12;l++)o.push(monthItem(getTime$1(addMonths(s,l)),r,n));return o}function quarterArray(t,r,n){const o=[],s=startOfYear(t);for(let l=0;l<4;l++)o.push(quarterItem(getTime$1(addQuarters(s,l)),r,n));return o}function yearArray(t,r){const n=[],o=new Date(START_YEAR,0,1);for(let s=0;s<200;s++)n.push(yearItem(getTime$1(addYears(o,s)),t,r));return n}function strictParse(t,r,n,o){const s=parse$4(t,r,n,o);return isValid$1(s)?format$7(s,r,o)===t?s:new Date(NaN):s}function getDefaultTime(t){if(t===void 0)return;if(typeof t=="number")return t;const[r,n,o]=t.split(":");return{hours:Number(r),minutes:Number(n),seconds:Number(o)}}function pluckValueFromRange(t,r){return Array.isArray(t)?t[r==="start"?0:1]:null}var commonVariables$e={titleFontSize:"22px"};const self$T=t=>{const{borderRadius:r,fontSize:n,lineHeight:o,textColor2:s,textColor1:l,textColorDisabled:d,dividerColor:g,fontWeightStrong:y,primaryColor:b,baseColor:C,hoverColor:x,cardColor:S,modalColor:_,popoverColor:w}=t;return Object.assign(Object.assign({},commonVariables$e),{borderRadius:r,borderColor:composite(S,g),borderColorModal:composite(_,g),borderColorPopover:composite(w,g),textColor:s,titleFontWeight:y,titleTextColor:l,dayTextColor:d,fontSize:n,lineHeight:o,dateColorCurrent:b,dateTextColorCurrent:C,cellColorHover:composite(S,x),cellColorHoverModal:composite(_,x),cellColorHoverPopover:composite(w,x),cellColor:S,cellColorModal:_,cellColorPopover:w,barColor:b})},calendarDark={name:"Calendar",common:commonDark,peers:{Button:buttonDark$1},self:self$T};var calendarDark$1=calendarDark;const self$S=t=>{const{fontSize:r,boxShadow2:n,popoverColor:o,textColor2:s,borderRadius:l,borderColor:d,heightSmall:g,heightMedium:y,heightLarge:b,fontSizeSmall:C,fontSizeMedium:x,fontSizeLarge:S,dividerColor:_}=t;return{panelFontSize:r,boxShadow:n,color:o,textColor:s,borderRadius:l,border:`1px solid ${d}`,heightSmall:g,heightMedium:y,heightLarge:b,fontSizeSmall:C,fontSizeMedium:x,fontSizeLarge:S,dividerColor:_}},colorPickerLight={name:"ColorPicker",common:commonLight,peers:{Input:inputLight$1,Button:buttonLight$1},self:self$S};var colorPickerLight$1=colorPickerLight;const colorPickerDark={name:"ColorPicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1},self:self$S};var colorPickerDark$1=colorPickerDark;function deriveDefaultValue(t,r){switch(t[0]){case"hex":return r?"#000000FF":"#000000";case"rgb":return r?"rgba(0, 0, 0, 1)":"rgb(0, 0, 0)";case"hsl":return r?"hsla(0, 0%, 0%, 1)":"hsl(0, 0%, 0%)";case"hsv":return r?"hsva(0, 0%, 0%, 1)":"hsv(0, 0%, 0%)"}return"#000000"}function getModeFromValue(t){return t===null?null:/^ *#/.test(t)?"hex":t.includes("rgb")?"rgb":t.includes("hsl")?"hsl":t.includes("hsv")?"hsv":null}function normalizeHue(t){return t=Math.round(t),t>=360?359:t<0?0:t}function normalizeAlpha(t){return t=Math.round(t*100)/100,t>1?1:t<0?0:t}const convert$3={rgb:{hex(t){return toHexaString(rgba(t))},hsl(t){const[r,n,o,s]=rgba(t);return toHslaString([...rgb2hsl(r,n,o),s])},hsv(t){const[r,n,o,s]=rgba(t);return toHsvaString([...rgb2hsv(r,n,o),s])}},hex:{rgb(t){return toRgbaString(rgba(t))},hsl(t){const[r,n,o,s]=rgba(t);return toHslaString([...rgb2hsl(r,n,o),s])},hsv(t){const[r,n,o,s]=rgba(t);return toHsvaString([...rgb2hsv(r,n,o),s])}},hsl:{hex(t){const[r,n,o,s]=hsla(t);return toHexaString([...hsl2rgb(r,n,o),s])},rgb(t){const[r,n,o,s]=hsla(t);return toRgbaString([...hsl2rgb(r,n,o),s])},hsv(t){const[r,n,o,s]=hsla(t);return toHsvaString([...hsl2hsv(r,n,o),s])}},hsv:{hex(t){const[r,n,o,s]=hsva(t);return toHexaString([...hsv2rgb(r,n,o),s])},rgb(t){const[r,n,o,s]=hsva(t);return toRgbaString([...hsv2rgb(r,n,o),s])},hsl(t){const[r,n,o,s]=hsva(t);return toHslaString([...hsv2hsl(r,n,o),s])}}};function convertColor(t,r,n){return n=n||getModeFromValue(t),n?n===r?t:convert$3[n][r](t):null}const HANDLE_SIZE$2="12px",HANDLE_SIZE_NUM$1=12,RADIUS$2="6px",RADIUS_NUM=6,GRADIENT="linear-gradient(90deg,red,#ff0 16.66%,#0f0 33.33%,#0ff 50%,#00f 66.66%,#f0f 83.33%,red)";var HueSlider=defineComponent({name:"HueSlider",props:{clsPrefix:{type:String,required:!0},hue:{type:Number,required:!0},onUpdateHue:{type:Function,required:!0},onComplete:Function},setup(t){const r=ref(null);function n(l){!r.value||(on("mousemove",document,o),on("mouseup",document,s),o(l))}function o(l){const{value:d}=r;if(!d)return;const{width:g,left:y}=d.getBoundingClientRect(),b=normalizeHue((l.clientX-y-RADIUS_NUM)/(g-HANDLE_SIZE_NUM$1)*360);t.onUpdateHue(b)}function s(){var l;off("mousemove",document,o),off("mouseup",document,s),(l=t.onComplete)===null||l===void 0||l.call(t)}return{railRef:r,handleMouseDown:n}},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-color-picker-slider`,style:{height:HANDLE_SIZE$2,borderRadius:RADIUS$2}},h("div",{ref:"railRef",style:{boxShadow:"inset 0 0 2px 0 rgba(0, 0, 0, .24)",boxSizing:"border-box",backgroundImage:GRADIENT,height:HANDLE_SIZE$2,borderRadius:RADIUS$2,position:"relative"},onMousedown:this.handleMouseDown},h("div",{style:{position:"absolute",left:RADIUS$2,right:RADIUS$2,top:0,bottom:0}},h("div",{class:`${t}-color-picker-handle`,style:{left:`calc((${this.hue}%) / 359 * 100 - ${RADIUS$2})`,borderRadius:RADIUS$2,width:HANDLE_SIZE$2,height:HANDLE_SIZE$2}},h("div",{class:`${t}-color-picker-handle__fill`,style:{backgroundColor:`hsl(${this.hue}, 100%, 50%)`,borderRadius:RADIUS$2,width:HANDLE_SIZE$2,height:HANDLE_SIZE$2}})))))}});const HANDLE_SIZE$1="12px",HANDLE_SIZE_NUM=12,RADIUS$1="6px";var AlphaSlider=defineComponent({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(t){const r=ref(null);function n(l){!r.value||!t.rgba||(on("mousemove",document,o),on("mouseup",document,s),o(l))}function o(l){const{value:d}=r;if(!d)return;const{width:g,left:y}=d.getBoundingClientRect(),b=(l.clientX-y)/(g-HANDLE_SIZE_NUM);t.onUpdateAlpha(normalizeAlpha(b))}function s(){var l;off("mousemove",document,o),off("mouseup",document,s),(l=t.onComplete)===null||l===void 0||l.call(t)}return{railRef:r,railBackgroundImage:computed(()=>{const{rgba:l}=t;return l?`linear-gradient(to right, rgba(${l[0]}, ${l[1]}, ${l[2]}, 0) 0%, rgba(${l[0]}, ${l[1]}, ${l[2]}, 1) 100%)`:""}),handleMouseDown:n}},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-color-picker-slider`,ref:"railRef",style:{height:HANDLE_SIZE$1,borderRadius:RADIUS$1},onMousedown:this.handleMouseDown},h("div",{style:{borderRadius:RADIUS$1,position:"absolute",left:0,right:0,top:0,bottom:0,overflow:"hidden"}},h("div",{class:`${t}-color-picker-checkboard`}),h("div",{class:`${t}-color-picker-slider__image`,style:{backgroundImage:this.railBackgroundImage}})),this.rgba&&h("div",{style:{position:"absolute",left:RADIUS$1,right:RADIUS$1,top:0,bottom:0}},h("div",{class:`${t}-color-picker-handle`,style:{left:`calc(${this.alpha*100}% - ${RADIUS$1})`,borderRadius:RADIUS$1,width:HANDLE_SIZE$1,height:HANDLE_SIZE$1}},h("div",{class:`${t}-color-picker-handle__fill`,style:{backgroundColor:toRgbaString(this.rgba),borderRadius:RADIUS$1,width:HANDLE_SIZE$1,height:HANDLE_SIZE$1}}))))}});const HANDLE_SIZE="12px",RADIUS="6px";var Pallete=defineComponent({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(t){const r=ref(null);function n(l){!r.value||(on("mousemove",document,o),on("mouseup",document,s),o(l))}function o(l){const{value:d}=r;if(!d)return;const{width:g,height:y,left:b,bottom:C}=d.getBoundingClientRect(),x=(C-l.clientY)/y,S=(l.clientX-b)/g,_=100*(S>1?1:S<0?0:S),w=100*(x>1?1:x<0?0:x);t.onUpdateSV(_,w)}function s(){var l;off("mousemove",document,o),off("mouseup",document,s),(l=t.onComplete)===null||l===void 0||l.call(t)}return{palleteRef:r,handleColor:computed(()=>{const{rgba:l}=t;return l?`rgb(${l[0]}, ${l[1]}, ${l[2]})`:""}),handleMouseDown:n}},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-color-picker-pallete`,onMousedown:this.handleMouseDown,ref:"palleteRef"},h("div",{class:`${t}-color-picker-pallete__layer`,style:{backgroundImage:`linear-gradient(90deg, white, hsl(${this.displayedHue}, 100%, 50%))`}}),h("div",{class:`${t}-color-picker-pallete__layer ${t}-color-picker-pallete__layer--shadowed`,style:{backgroundImage:"linear-gradient(180deg, rgba(0, 0, 0, 0%), rgba(0, 0, 0, 100%))"}}),this.rgba&&h("div",{class:`${t}-color-picker-handle`,style:{width:HANDLE_SIZE,height:HANDLE_SIZE,borderRadius:RADIUS,left:`calc(${this.displayedSv[0]}% - ${RADIUS})`,bottom:`calc(${this.displayedSv[1]}% - ${RADIUS})`}},h("div",{class:`${t}-color-picker-handle__fill`,style:{backgroundColor:this.handleColor,borderRadius:RADIUS,width:HANDLE_SIZE,height:HANDLE_SIZE}})))}});const colorPickerInjectionKey="n-color-picker";function normalizeRgbUnit(t){return/^\d{1,3}\.?\d*$/.test(t.trim())?Math.max(0,Math.min(parseInt(t),255)):!1}function normalizeHueUnit(t){return/^\d{1,3}\.?\d*$/.test(t.trim())?Math.max(0,Math.min(parseInt(t),360)):!1}function normalizeSlvUnit(t){return/^\d{1,3}\.?\d*$/.test(t.trim())?Math.max(0,Math.min(parseInt(t),100)):!1}function normalizeHexaUnit(t){const r=t.trim();return/^#[0-9a-fA-F]+$/.test(r)?[4,5,7,9].includes(r.length):!1}function normalizeAlphaUnit(t){return/^\d{1,3}\.?\d*%$/.test(t.trim())?Math.max(0,Math.min(parseInt(t)/100,100)):!1}const inputThemeOverrides={paddingSmall:"0 4px"};var ColorInputUnit=defineComponent({name:"ColorInputUnit",props:{label:{type:String,required:!0},value:{type:[Number,String],default:null},showAlpha:Boolean,onUpdateValue:{type:Function,required:!0}},setup(t){const r=ref(""),{themeRef:n}=inject(colorPickerInjectionKey,null);watchEffect(()=>{r.value=o()});function o(){const{value:d}=t;if(d===null)return"";const{label:g}=t;return g==="HEX"?d:g==="A"?`${Math.floor(d*100)}%`:String(Math.floor(d))}function s(d){r.value=d}function l(d){let g,y;switch(t.label){case"HEX":y=normalizeHexaUnit(d),y&&t.onUpdateValue(d),r.value=o();break;case"H":g=normalizeHueUnit(d),g===!1?r.value=o():t.onUpdateValue(g);break;case"S":case"L":case"V":g=normalizeSlvUnit(d),g===!1?r.value=o():t.onUpdateValue(g);break;case"A":g=normalizeAlphaUnit(d),g===!1?r.value=o():t.onUpdateValue(g);break;case"R":case"G":case"B":g=normalizeRgbUnit(d),g===!1?r.value=o():t.onUpdateValue(g);break}}return{mergedTheme:n,inputValue:r,handleInputChange:l,handleInputUpdateValue:s}},render(){const{mergedTheme:t}=this;return h(NInput,{size:"small",placeholder:this.label,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,builtinThemeOverrides:inputThemeOverrides,value:this.inputValue,onUpdateValue:this.handleInputUpdateValue,onChange:this.handleInputChange,style:this.label==="A"?"flex-grow: 1.25;":""})}}),ColorInput=defineComponent({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(t){return{handleUnitUpdateValue(r,n){const{showAlpha:o}=t;if(t.mode==="hex"){t.onUpdateValue((o?toHexaString:toHexString)(n));return}let s;switch(t.valueArr===null?s=[0,0,0,0]:s=Array.from(t.valueArr),t.mode){case"hsv":s[r]=n,t.onUpdateValue((o?toHsvaString:toHsvString)(s));break;case"rgb":s[r]=n,t.onUpdateValue((o?toRgbaString:toRgbString)(s));break;case"hsl":s[r]=n,t.onUpdateValue((o?toHslaString:toHslString)(s));break}}}},render(){const{clsPrefix:t,modes:r}=this;return h("div",{class:`${t}-color-picker-input`},h("div",{class:`${t}-color-picker-input__mode`,onClick:this.onUpdateMode,style:{cursor:r.length===1?"":"pointer"}},this.mode.toUpperCase()+(this.showAlpha?"A":"")),h(NInputGroup,null,{default:()=>{const{mode:n,valueArr:o,showAlpha:s}=this;if(n==="hex"){let l=null;try{l=o===null?null:(s?toHexaString:toHexString)(o)}catch(d){}return h(ColorInputUnit,{label:"HEX",showAlpha:s,value:l,onUpdateValue:d=>{this.handleUnitUpdateValue(0,d)}})}return(n+(s?"a":"")).split("").map((l,d)=>h(ColorInputUnit,{label:l.toUpperCase(),value:o===null?null:o[d],onUpdateValue:g=>{this.handleUnitUpdateValue(d,g)}}))}}))}}),ColorPickerTrigger=defineComponent({name:"ColorPickerTrigger",props:{clsPrefix:{type:String,required:!0},value:{type:String,default:null},hsla:{type:Array,default:null},disabled:Boolean,onClick:Function},setup(t){const{colorPickerSlots:r,renderLabelRef:n}=inject(colorPickerInjectionKey,null);return()=>{const{hsla:o,value:s,clsPrefix:l,onClick:d,disabled:g}=t,y=r.label||n.value;return h("div",{class:[`${l}-color-picker-trigger`,g&&`${l}-color-picker-trigger--disabled`],onClick:g?void 0:d},h("div",{class:`${l}-color-picker-trigger__fill`},h("div",{class:`${l}-color-picker-checkboard`}),h("div",{style:{position:"absolute",left:0,right:0,top:0,bottom:0,backgroundColor:o?toHslaString(o):""}}),s&&o?h("div",{class:`${l}-color-picker-trigger__value`,style:{color:o[2]>50||o[3]<.5?"black":"white"}},y?y(s):s):null))}}});function normalizeColor$1(t,r){if(r==="hsv"){const[n,o,s,l]=hsva(t);return toRgbaString([...hsv2rgb(n,o,s),l])}return t}function getHexFromName(t){const r=document.createElement("canvas").getContext("2d");return r.fillStyle=t,r.fillStyle}var ColorPickerSwatches=defineComponent({name:"ColorPickerSwatches",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},swatches:{type:Array,required:!0},onUpdateColor:{type:Function,required:!0}},setup(t){const r=computed(()=>t.swatches.map(l=>{const d=getModeFromValue(l);return{value:l,mode:d,legalValue:normalizeColor$1(l,d)}}));function n(l){const{mode:d}=t;let{value:g,mode:y}=l;return y||(y="hex",/^[a-zA-Z]+$/.test(g)?g=getHexFromName(g):(warn$5("color-picker",`color ${g} in swatches is invalid.`),g="#000000")),y===d?g:convertColor(g,d,y)}function o(l){t.onUpdateColor(n(l))}function s(l,d){l.key==="Enter"&&o(d)}return{parsedSwatchesRef:r,handleSwatchSelect:o,handleSwatchKeyDown:s}},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-color-picker-swatches`},this.parsedSwatchesRef.map(r=>h("div",{class:`${t}-color-picker-swatch`,tabindex:0,onClick:()=>this.handleSwatchSelect(r),onKeydown:n=>this.handleSwatchKeyDown(n,r)},h("div",{class:`${t}-color-picker-swatch__fill`,style:{background:r.legalValue}}))))}}),ColorPreview=defineComponent({name:"ColorPreview",props:{clsPrefix:{type:String,required:!0},mode:{type:String,required:!0},color:{type:String,default:null,validator:t=>{const r=getModeFromValue(t);return Boolean(!t||r&&r!=="hsv")}},onUpdateColor:{type:Function,required:!0}},setup(t){function r(n){var o;const s=n.target.value;(o=t.onUpdateColor)===null||o===void 0||o.call(t,convertColor(s.toUpperCase(),t.mode,"hex")),n.stopPropagation()}return{handleChange:r}},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-color-picker-preview__preview`},h("span",{class:`${t}-color-picker-preview__fill`,style:{background:this.color||"#000000"}}),h("input",{class:`${t}-color-picker-preview__input`,type:"color",value:this.color,onChange:this.handleChange}))}}),style$W=c$1([cB("color-picker",`
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
height: var(--n-height);
|
|
font-size: var(--n-font-size);
|
|
width: 100%;
|
|
position: relative;
|
|
`),cB("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);
|
|
`,[fadeInScaleUpTransition(),cB("input",`
|
|
text-align: center;
|
|
`)]),cB("color-picker-checkboard",`
|
|
background: white;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[c$1("&::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;
|
|
`)]),cB("color-picker-slider",`
|
|
margin-bottom: 8px;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
`,[cE("image",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`),c$1("&::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;
|
|
`)]),cB("color-picker-handle",`
|
|
z-index: 1;
|
|
box-shadow: 0 0 2px 0 rgba(0, 0, 0, .45);
|
|
position: absolute;
|
|
background-color: white;
|
|
overflow: hidden;
|
|
`,[cE("fill",`
|
|
box-sizing: border-box;
|
|
border: 2px solid white;
|
|
`)]),cB("color-picker-pallete",`
|
|
height: 180px;
|
|
position: relative;
|
|
margin-bottom: 8px;
|
|
cursor: crosshair;
|
|
`,[cE("layer",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[cM("shadowed",`
|
|
box-shadow: inset 0 0 2px 0 rgba(0, 0, 0, .24);
|
|
`)])]),cB("color-picker-preview",`
|
|
display: flex;
|
|
`,[cE("sliders",`
|
|
flex: 1 0 auto;
|
|
`),cE("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;
|
|
`),cE("fill",`
|
|
display: block;
|
|
width: 30px;
|
|
height: 30px;
|
|
`),cE("input",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
opacity: 0;
|
|
z-index: 1;
|
|
`)]),cB("color-picker-input",`
|
|
display: flex;
|
|
align-items: center;
|
|
`,[cB("input",`
|
|
flex-grow: 1;
|
|
flex-basis: 0;
|
|
`),cE("mode",`
|
|
width: 72px;
|
|
text-align: center;
|
|
`)]),cB("color-picker-control",`
|
|
padding: 12px;
|
|
`),cB("color-picker-action",`
|
|
display: flex;
|
|
margin-top: -4px;
|
|
border-top: 1px solid var(--n-divider-color);
|
|
padding: 8px 12px;
|
|
justify-content: flex-end;
|
|
`,[cB("button","margin-left: 8px;")]),cB("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;
|
|
`,[cE("value",`
|
|
white-space: nowrap;
|
|
position: relative;
|
|
`),cE("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;
|
|
`),cM("disabled","cursor: not-allowed"),cB("color-picker-checkboard",`
|
|
border-radius: var(--n-border-radius);
|
|
`,[c$1("&::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;
|
|
`)])]),cB("color-picker-swatches",`
|
|
display: grid;
|
|
grid-gap: 8px;
|
|
flex-wrap: wrap;
|
|
position: relative;
|
|
grid-template-columns: repeat(auto-fill, 18px);
|
|
margin-top: 10px;
|
|
`,[cB("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;
|
|
`,[cE("fill",`
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 3px;
|
|
box-shadow: rgba(0, 0, 0, .15) 0px 0px 0px 1px inset;
|
|
cursor: pointer;
|
|
`),c$1("&:focus",`
|
|
outline: none;
|
|
`,[cE("fill",[c$1("&::after",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background: inherit;
|
|
filter: blur(2px);
|
|
content: "";
|
|
`)])])])])]);const colorPickerProps=Object.assign(Object.assign({},useTheme.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:useAdjustedTo.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 NColorPicker=defineComponent({name:"ColorPicker",props:colorPickerProps,setup(t,{slots:r}){const n=ref(null);let o=null;const s=useFormItem(t),{mergedSizeRef:l,mergedDisabledRef:d}=s,{localeRef:g}=useLocale("global"),{mergedClsPrefixRef:y,namespaceRef:b,inlineThemeDisabled:C}=useConfig(t),x=useTheme("ColorPicker","-color-picker",style$W,colorPickerLight$1,t,y);provide(colorPickerInjectionKey,{themeRef:x,renderLabelRef:toRef(t,"renderLabel"),colorPickerSlots:r});const S=ref(t.defaultShow),_=useMergedState(toRef(t,"show"),S);function w(le){const{onUpdateShow:me,"onUpdate:show":Te}=t;me&&call(me,le),Te&&call(Te,le),S.value=le}const{defaultValue:$}=t,I=ref($===void 0?deriveDefaultValue(t.modes,t.showAlpha):$),B=useMergedState(toRef(t,"value"),I),R=ref([B.value]),P=ref(0),M=computed(()=>getModeFromValue(B.value)),{modes:O}=t,D=ref(getModeFromValue(B.value)||O[0]||"rgb");function N(){const{modes:le}=t,{value:me}=D,Te=le.findIndex(ge=>ge===me);~Te?D.value=le[(Te+1)%le.length]:D.value="rgb"}let H,Q,G,K,W,j,Y,q;const X=computed(()=>{const{value:le}=B;if(!le)return null;switch(M.value){case"hsv":return hsva(le);case"hsl":return[H,Q,G,q]=hsla(le),[...hsl2hsv(H,Q,G),q];case"rgb":case"hex":return[W,j,Y,q]=rgba(le),[...rgb2hsv(W,j,Y),q]}}),re=computed(()=>{const{value:le}=B;if(!le)return null;switch(M.value){case"rgb":case"hex":return rgba(le);case"hsv":return[H,Q,K,q]=hsva(le),[...hsv2rgb(H,Q,K),q];case"hsl":return[H,Q,G,q]=hsla(le),[...hsl2rgb(H,Q,G),q]}}),te=computed(()=>{const{value:le}=B;if(!le)return null;switch(M.value){case"hsl":return hsla(le);case"hsv":return[H,Q,K,q]=hsva(le),[...hsv2hsl(H,Q,K),q];case"rgb":case"hex":return[W,j,Y,q]=rgba(le),[...rgb2hsl(W,j,Y),q]}}),oe=computed(()=>{switch(D.value){case"rgb":case"hex":return re.value;case"hsv":return X.value;case"hsl":return te.value}}),ae=ref(0),se=ref(1),ue=ref([0,0]);function Ae(le,me){const{value:Te}=X,ge=ae.value,$e=Te?Te[3]:1;ue.value=[le,me];const{showAlpha:de}=t;switch(D.value){case"hsv":Ce((de?toHsvaString:toHsvString)([ge,le,me,$e]),"cursor");break;case"hsl":Ce((de?toHslaString:toHslString)([...hsv2hsl(ge,le,me),$e]),"cursor");break;case"rgb":Ce((de?toRgbaString:toRgbString)([...hsv2rgb(ge,le,me),$e]),"cursor");break;case"hex":Ce((de?toHexaString:toHexString)([...hsv2rgb(ge,le,me),$e]),"cursor");break}}function pe(le){ae.value=le;const{value:me}=X;if(!me)return;const[,Te,ge,$e]=me,{showAlpha:de}=t;switch(D.value){case"hsv":Ce((de?toHsvaString:toHsvString)([le,Te,ge,$e]),"cursor");break;case"rgb":Ce((de?toRgbaString:toRgbString)([...hsv2rgb(le,Te,ge),$e]),"cursor");break;case"hex":Ce((de?toHexaString:toHexString)([...hsv2rgb(le,Te,ge),$e]),"cursor");break;case"hsl":Ce((de?toHslaString:toHslString)([...hsv2hsl(le,Te,ge),$e]),"cursor");break}}function he(le){switch(D.value){case"hsv":[H,Q,K]=X.value,Ce(toHsvaString([H,Q,K,le]),"cursor");break;case"rgb":[W,j,Y]=re.value,Ce(toRgbaString([W,j,Y,le]),"cursor");break;case"hex":[W,j,Y]=re.value,Ce(toHexaString([W,j,Y,le]),"cursor");break;case"hsl":[H,Q,G]=te.value,Ce(toHslaString([H,Q,G,le]),"cursor");break}se.value=le}function Ce(le,me){me==="cursor"?o=le:o=null;const{nTriggerFormChange:Te,nTriggerFormInput:ge}=s,{onUpdateValue:$e,"onUpdate:value":de}=t;$e&&call($e,le),de&&call(de,le),Te(),ge(),I.value=le}function ve(le){Ce(le,"input"),nextTick(ye)}function ye(le=!0){const{value:me}=B;if(me){const{nTriggerFormChange:Te,nTriggerFormInput:ge}=s,{onComplete:$e}=t;$e&&$e(me);const{value:de}=R,{value:be}=P;le&&(de.splice(be+1,de.length,me),P.value=be+1),Te(),ge()}}function Be(){const{value:le}=P;le-1<0||(Ce(R.value[le-1],"input"),ye(!1),P.value=le-1)}function Se(){const{value:le}=P;le<0||le+1>=R.value.length||(Ce(R.value[le+1],"input"),ye(!1),P.value=le+1)}function Ee(){Ce(null,"input"),w(!1)}function ie(){const{value:le}=B,{onConfirm:me}=t;me&&me(le),w(!1)}const ee=computed(()=>P.value>=1),J=computed(()=>{const{value:le}=R;return le.length>1&&P.value<le.length-1});watch(_,le=>{le||(R.value=[B.value],P.value=0)}),watchEffect(()=>{if(!(o&&o===B.value)){const{value:le}=X;le&&(ae.value=le[0],se.value=le[3],ue.value=[le[1],le[2]])}o=null});const ce=computed(()=>{const{value:le}=l,{common:{cubicBezierEaseInOut:me},self:{textColor:Te,color:ge,panelFontSize:$e,boxShadow:de,border:be,borderRadius:we,dividerColor:Me,[createKey("height",le)]:Ue,[createKey("fontSize",le)]:Ge}}=x.value;return{"--n-bezier":me,"--n-text-color":Te,"--n-color":ge,"--n-panel-font-size":$e,"--n-font-size":Ge,"--n-box-shadow":de,"--n-border":be,"--n-border-radius":we,"--n-height":Ue,"--n-divider-color":Me}}),fe=C?useThemeClass("color-picker",computed(()=>l.value[0]),ce,t):void 0;function ne(){var le;const{value:me}=re,{value:Te}=ae,{internalActions:ge,modes:$e,actions:de}=t,{value:be}=x,{value:we}=y;return h("div",{class:[`${we}-color-picker-panel`,fe==null?void 0:fe.themeClass.value],onDragstart:Me=>{Me.preventDefault()},style:C?void 0:ce.value},h("div",{class:`${we}-color-picker-control`},h(Pallete,{clsPrefix:we,rgba:me,displayedHue:Te,displayedSv:ue.value,onUpdateSV:Ae,onComplete:ye}),h("div",{class:`${we}-color-picker-preview`},h("div",{class:`${we}-color-picker-preview__sliders`},h(HueSlider,{clsPrefix:we,hue:Te,onUpdateHue:pe,onComplete:ye}),t.showAlpha?h(AlphaSlider,{clsPrefix:we,rgba:me,alpha:se.value,onUpdateAlpha:he,onComplete:ye}):null),t.showPreview?h(ColorPreview,{clsPrefix:we,mode:D.value,color:re.value&&toHexString(re.value),onUpdateColor:Me=>Ce(Me,"input")}):null),h(ColorInput,{clsPrefix:we,showAlpha:t.showAlpha,mode:D.value,modes:$e,onUpdateMode:N,value:B.value,valueArr:oe.value,onUpdateValue:ve}),((le=t.swatches)===null||le===void 0?void 0:le.length)&&h(ColorPickerSwatches,{clsPrefix:we,mode:D.value,swatches:t.swatches,onUpdateColor:Me=>Ce(Me,"input")})),de!=null&&de.length?h("div",{class:`${we}-color-picker-action`},de.includes("confirm")&&h(NButton,{size:"small",onClick:ie,theme:be.peers.Button,themeOverrides:be.peerOverrides.Button},{default:()=>g.value.confirm}),de.includes("clear")&&h(NButton,{size:"small",onClick:Ee,disabled:!B.value,theme:be.peers.Button,themeOverrides:be.peerOverrides.Button},{default:()=>g.value.clear})):null,r.action?h("div",{class:`${we}-color-picker-action`},{default:r.action}):ge?h("div",{class:`${we}-color-picker-action`},ge.includes("undo")&&h(NButton,{size:"small",onClick:Be,disabled:!ee.value,theme:be.peers.Button,themeOverrides:be.peerOverrides.Button},{default:()=>g.value.undo}),ge.includes("redo")&&h(NButton,{size:"small",onClick:Se,disabled:!J.value,theme:be.peers.Button,themeOverrides:be.peerOverrides.Button},{default:()=>g.value.redo})):null)}return{mergedClsPrefix:y,namespace:b,selfRef:n,hsla:te,rgba:re,mergedShow:_,mergedDisabled:d,isMounted:isMounted(),adjustedTo:useAdjustedTo(t),mergedValue:B,handleTriggerClick(){w(!0)},handleClickOutside(le){var me;!((me=n.value)===null||me===void 0)&&me.contains(getPreciseEventTarget(le))||w(!1)},renderPanel:ne,cssVars:C?void 0:ce,themeClass:fe==null?void 0:fe.themeClass,onRender:fe==null?void 0:fe.onRender}},render(){const{$slots:t,mergedClsPrefix:r,onRender:n}=this;return n==null||n(),h("div",{class:[this.themeClass,`${r}-color-picker`],ref:"selfRef",style:this.cssVars},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h(ColorPickerTrigger,{clsPrefix:r,value:this.mergedValue,hsla:this.hsla,disabled:this.mergedDisabled,onClick:this.handleTriggerClick},{label:t.label})}),h(VFollower,{placement:this.placement,show:this.mergedShow,containerClass:this.namespace,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,to:this.adjustedTo},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?withDirectives(this.renderPanel(),[[clickoutside$1,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),commonVariables$d={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 self$R=t=>{const{primaryColor:r,borderRadius:n,lineHeight:o,fontSize:s,cardColor:l,textColor2:d,textColor1:g,dividerColor:y,fontWeightStrong:b,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,closeColorHover:_,closeColorPressed:w,modalColor:$,boxShadow1:I,popoverColor:B,actionColor:R}=t;return Object.assign(Object.assign({},commonVariables$d),{lineHeight:o,color:l,colorModal:$,colorPopover:B,colorTarget:r,colorEmbedded:R,colorEmbeddedModal:R,colorEmbeddedPopover:R,textColor:d,titleTextColor:g,borderColor:y,actionColor:R,titleFontWeight:b,closeColorHover:_,closeColorPressed:w,closeBorderRadius:n,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,fontSizeSmall:s,fontSizeMedium:s,fontSizeLarge:s,fontSizeHuge:s,boxShadow:I,borderRadius:n})},cardLight={name:"Card",common:commonLight,self:self$R};var cardLight$1=cardLight;const cardDark={name:"Card",common:commonDark,self(t){const r=self$R(t),{cardColor:n,modalColor:o,popoverColor:s}=t;return r.colorEmbedded=n,r.colorEmbeddedModal=o,r.colorEmbeddedPopover=s,r}};var cardDark$1=cardDark,style$V=c$1([cB("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);
|
|
`,[asModal({background:"var(--n-color-modal)"}),cM("hoverable",[c$1("&:hover","box-shadow: var(--n-box-shadow);")]),cM("content-segmented",[c$1(">",[cE("content",{paddingTop:"var(--n-padding-bottom)"})])]),cM("content-soft-segmented",[c$1(">",[cE("content",`
|
|
margin: 0 var(--n-padding-left);
|
|
padding: var(--n-padding-bottom) 0;
|
|
`)])]),cM("footer-segmented",[c$1(">",[cE("footer",{paddingTop:"var(--n-padding-bottom)"})])]),cM("footer-soft-segmented",[c$1(">",[cE("footer",`
|
|
padding: var(--n-padding-bottom) 0;
|
|
margin: 0 var(--n-padding-left);
|
|
`)])]),c$1(">",[cB("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);
|
|
`,[cE("main",`
|
|
font-weight: var(--n-title-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
flex: 1;
|
|
min-width: 0;
|
|
color: var(--n-title-text-color);
|
|
`),cE("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);
|
|
`),cE("close",`
|
|
margin: 0 0 0 8px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`)]),cE("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);
|
|
`),cE("content","flex: 1; min-width: 0;"),cE("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);
|
|
`,[c$1("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),cE("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);
|
|
`)]),cB("card-cover",`
|
|
overflow: hidden;
|
|
width: 100%;
|
|
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
`,[c$1("img",`
|
|
display: block;
|
|
width: 100%;
|
|
`)]),cM("bordered",`
|
|
border: 1px solid var(--n-border-color);
|
|
`,[c$1("&:target","border-color: var(--n-color-target);")]),cM("action-segmented",[c$1(">",[cE("action",[c$1("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("content-segmented, content-soft-segmented",[c$1(">",[cE("content",{transition:"border-color 0.3s var(--n-bezier)"},[c$1("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("footer-segmented, footer-soft-segmented",[c$1(">",[cE("footer",{transition:"border-color 0.3s var(--n-bezier)"},[c$1("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),cM("embedded",`
|
|
background-color: var(--n-color-embedded);
|
|
`)]),insideModal(cB("card",`
|
|
background: var(--n-color-modal);
|
|
`,[cM("embedded",`
|
|
background-color: var(--n-color-embedded-modal);
|
|
`)])),insidePopover(cB("card",`
|
|
background: var(--n-color-popover);
|
|
`,[cM("embedded",`
|
|
background-color: var(--n-color-embedded-popover);
|
|
`)]))]);const cardBaseProps={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:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"}},cardBasePropKeys=keysOf(cardBaseProps),cardProps=Object.assign(Object.assign({},useTheme.props),cardBaseProps);var NCard=defineComponent({name:"Card",props:cardProps,setup(t){const r=()=>{const{onClose:b}=t;b&&call(b)},{inlineThemeDisabled:n,mergedClsPrefixRef:o,mergedRtlRef:s}=useConfig(t),l=useTheme("Card","-card",style$V,cardLight$1,t,o),d=useRtl("Card",s,o),g=computed(()=>{const{size:b}=t,{self:{color:C,colorModal:x,colorTarget:S,textColor:_,titleTextColor:w,titleFontWeight:$,borderColor:I,actionColor:B,borderRadius:R,lineHeight:P,closeIconColor:M,closeIconColorHover:O,closeIconColorPressed:D,closeColorHover:N,closeColorPressed:H,closeBorderRadius:Q,closeIconSize:G,closeSize:K,boxShadow:W,colorPopover:j,colorEmbedded:Y,colorEmbeddedModal:q,colorEmbeddedPopover:X,[createKey("padding",b)]:re,[createKey("fontSize",b)]:te,[createKey("titleFontSize",b)]:oe},common:{cubicBezierEaseInOut:ae}}=l.value,{top:se,left:ue,bottom:Ae}=getMargin(re);return{"--n-bezier":ae,"--n-border-radius":R,"--n-color":C,"--n-color-modal":x,"--n-color-popover":j,"--n-color-embedded":Y,"--n-color-embedded-modal":q,"--n-color-embedded-popover":X,"--n-color-target":S,"--n-text-color":_,"--n-line-height":P,"--n-action-color":B,"--n-title-text-color":w,"--n-title-font-weight":$,"--n-close-icon-color":M,"--n-close-icon-color-hover":O,"--n-close-icon-color-pressed":D,"--n-close-color-hover":N,"--n-close-color-pressed":H,"--n-border-color":I,"--n-box-shadow":W,"--n-padding-top":se,"--n-padding-bottom":Ae,"--n-padding-left":ue,"--n-font-size":te,"--n-title-font-size":oe,"--n-close-size":K,"--n-close-icon-size":G,"--n-close-border-radius":Q}}),y=n?useThemeClass("card",computed(()=>t.size[0]),g,t):void 0;return{rtlEnabled:d,mergedClsPrefix:o,mergedTheme:l,handleCloseClick:r,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{segmented:t,bordered:r,hoverable:n,mergedClsPrefix:o,rtlEnabled:s,onRender:l,embedded:d,tag:g,$slots:y}=this;return l==null||l(),h(g,{class:[`${o}-card`,this.themeClass,d&&`${o}-card--embedded`,{[`${o}-card--rtl`]:s,[`${o}-card--content${typeof t!="boolean"&&t.content==="soft"?"-soft":""}-segmented`]:t===!0||t!==!1&&t.content,[`${o}-card--footer${typeof t!="boolean"&&t.footer==="soft"?"-soft":""}-segmented`]:t===!0||t!==!1&&t.footer,[`${o}-card--action-segmented`]:t===!0||t!==!1&&t.action,[`${o}-card--bordered`]:r,[`${o}-card--hoverable`]:n}],style:this.cssVars,role:this.role},resolveWrappedSlot(y.cover,b=>b&&h("div",{class:`${o}-card-cover`,role:"none"},b)),resolveWrappedSlot(y.header,b=>b||this.title||this.closable?h("div",{class:`${o}-card-header`,style:this.headerStyle},h("div",{class:`${o}-card-header__main`,role:"heading"},b||this.title),resolveWrappedSlot(y["header-extra"],C=>C&&h("div",{class:`${o}-card-header__extra`,style:this.headerExtraStyle},C)),this.closable?h(NBaseClose,{clsPrefix:o,class:`${o}-card-header__close`,onClick:this.handleCloseClick,absolute:!0}):null):null),resolveWrappedSlot(y.default,b=>b&&h("div",{class:`${o}-card__content`,style:this.contentStyle,role:"none"},b)),resolveWrappedSlot(y.footer,b=>b&&[h("div",{class:`${o}-card__footer`,style:this.footerStyle,role:"none"},b)]),resolveWrappedSlot(y.action,b=>b&&h("div",{class:`${o}-card__action`,role:"none"},b)))}});const self$Q=t=>({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"}),carouselLight={name:"Carousel",common:commonLight,self:self$Q};var carouselLight$1=carouselLight;const carouselDark={name:"Carousel",common:commonDark,self:self$Q};var carouselDark$1=carouselDark;function addDuplicateSlides(t){const{length:r}=t;return r>1&&(t.push(duplicateSlide(t[0],0,"append")),t.unshift(duplicateSlide(t[r-1],r-1,"prepend"))),t}function duplicateSlide(t,r,n){return cloneVNode(t,{key:`carousel-item-duplicate-${r}-${n}`})}function getDisplayIndex(t,r,n){return n?t===0?r-3:t===r-1?0:t-1:t}function getRealIndex(t,r){return r?t+1:t}function getPrevIndex(t,r,n){return t<0?null:t===0?n?r-1:null:t-1}function getNextIndex(t,r,n){return t>r-1?null:t===r-1?n?0:null:t+1}function getDisplayTotalView(t,r){return r&&t>3?t-2:t}function isTouchEvent$1(t){return window.TouchEvent&&t instanceof window.TouchEvent}function calculateSize(t,r){let{offsetWidth:n,offsetHeight:o}=t;if(r){const s=getComputedStyle(t);n=n-parseFloat(s.getPropertyValue("padding-left"))-parseFloat(s.getPropertyValue("padding-right")),o=o-parseFloat(s.getPropertyValue("padding-top"))-parseFloat(s.getPropertyValue("padding-bottom"))}return{width:n,height:o}}function clampValue(t,r,n){return t<r?r:t>n?n:t}function resolveSpeed(t){if(t===void 0)return 0;if(typeof t=="number")return t;const r=/^((\d+)?\.?\d+?)(ms|s)?$/,n=t.match(r);if(n){const[,o,,s="ms"]=n;return Number(o)*(s==="ms"?1:1e3)}return 0}const carouselMethodsInjectionKey="n-carousel-methods",provideCarouselContext=t=>provide(carouselMethodsInjectionKey,t),useCarouselContext=(t="unknown",r="component")=>{const n=inject(carouselMethodsInjectionKey);return n||throwError$1(t,`\`${r}\` must be placed inside \`n-carousel\`.`),n},carouselDotsProps={total:{type:Number,default:0},currentIndex:{type:Number,default:0},dotType:{type:String,default:"dot"},trigger:{type:String,default:"click"},keyboard:Boolean};var NCarouselDots=defineComponent({name:"CarouselDots",props:carouselDotsProps,setup(t){const{mergedClsPrefixRef:r}=useConfig(t),n=ref([]),o=useCarouselContext();function s(b,C){switch(b.key){case"Enter":case" ":b.preventDefault(),o.to(C);return}t.keyboard&&g(b)}function l(b){t.trigger==="hover"&&o.to(b)}function d(b){t.trigger==="click"&&o.to(b)}function g(b){var C;if(b.shiftKey||b.altKey||b.ctrlKey||b.metaKey)return;const x=(C=document.activeElement)===null||C===void 0?void 0:C.nodeName.toLowerCase();if(x==="input"||x==="textarea")return;const{code:S}=b,_=S==="PageUp"||S==="ArrowUp",w=S==="PageDown"||S==="ArrowDown",$=S==="PageUp"||S==="ArrowRight",I=S==="PageDown"||S==="ArrowLeft",B=o.isVertical(),R=B?_:$,P=B?w:I;!R&&!P||(b.preventDefault(),R&&!o.isNextDisabled()?(o.next(),y(o.currentIndexRef.value)):P&&!o.isPrevDisabled()&&(o.prev(),y(o.currentIndexRef.value)))}function y(b){var C;(C=n.value[b])===null||C===void 0||C.focus()}return onBeforeUpdate(()=>n.value.length=0),{mergedClsPrefix:r,dotEls:n,handleKeydown:s,handleMouseenter:l,handleClick:d}},render(){const{mergedClsPrefix:t,dotEls:r}=this;return h("div",{class:[`${t}-carousel__dots`,`${t}-carousel__dots--${this.dotType}`],role:"tablist"},indexMap(this.total,n=>{const o=n===this.currentIndex;return h("div",{"aria-selected":o,ref:s=>r.push(s),role:"button",tabindex:"0",class:[`${t}-carousel__dot`,o&&`${t}-carousel__dot--active`],key:n,onClick:()=>this.handleClick(n),onMouseenter:()=>this.handleMouseenter(n),onKeydown:s=>this.handleKeydown(s,n)})}))}});const backwardIcon=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},h("g",{fill:"none"},h("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"}))),forwardIcon=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},h("g",{fill:"none"},h("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 NCarouselArrow=defineComponent({name:"CarouselArrow",setup(t){const{mergedClsPrefixRef:r}=useConfig(t),{isVertical:n,isPrevDisabled:o,isNextDisabled:s,prev:l,next:d}=useCarouselContext();return{mergedClsPrefix:r,isVertical:n,isPrevDisabled:o,isNextDisabled:s,prev:l,next:d}},render(){const{mergedClsPrefix:t}=this;return h("div",{class:`${t}-carousel__arrow-group`},h("div",{class:[`${t}-carousel__arrow`,this.isPrevDisabled()&&`${t}-carousel__arrow--disabled`],role:"button",onClick:this.prev},backwardIcon),h("div",{class:[`${t}-carousel__arrow`,this.isNextDisabled()&&`${t}-carousel__arrow--disabled`],role:"button",onClick:this.next},forwardIcon))}});const CarouselItemName="CarouselItem",isCarouselItem=t=>{var r;return((r=t.type)===null||r===void 0?void 0:r.name)===CarouselItemName};var NCarouselItem=defineComponent({name:CarouselItemName,setup(t){const{mergedClsPrefixRef:r}=useConfig(t),n=useCarouselContext(camelCase$1(CarouselItemName),`n-${camelCase$1(CarouselItemName)}`),o=ref(),s=computed(()=>{const{value:C}=o;return C?n.getSlideIndex(C):-1}),l=computed(()=>n.isPrev(s.value)),d=computed(()=>n.isNext(s.value)),g=computed(()=>n.isActive(s.value)),y=computed(()=>n.getSlideStyle(s.value));onMounted(()=>n.addSlide(o.value)),onBeforeUnmount(()=>{n.removeSlide(o.value)});function b(C){const{value:x}=s;x!==void 0&&(n==null||n.onCarouselItemClick(x,C))}return{mergedClsPrefix:r,selfElRef:o,isPrev:l,isNext:d,isActive:g,index:s,style:y,handleClick:b}},render(){var t;const{$slots:r,mergedClsPrefix:n,isPrev:o,isNext:s,isActive:l,index:d,style:g}=this,y=[`${n}-carousel__slide`,{[`${n}-carousel__slide--current`]:l,[`${n}-carousel__slide--prev`]:o,[`${n}-carousel__slide--next`]:s}];return h("div",{ref:"selfElRef",class:y,role:"option",tabindex:"-1","data-index":d,"aria-hidden":!l,style:g,onClickCapture:this.handleClick},(t=r.default)===null||t===void 0?void 0:t.call(r,{isPrev:o,isNext:s,isActive:l,index:d}))}}),style$U=cB("carousel",`
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
touch-action: pan-y;
|
|
overflow: hidden;
|
|
`,[cE("slides",`
|
|
display: flex;
|
|
width: 100%;
|
|
height: 100%;
|
|
transition-timing-function: var(--n-bezier);
|
|
transition-property: transform;
|
|
`,[cE("slide",`
|
|
flex-shrink: 0;
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
outline: none;
|
|
overflow: hidden;
|
|
`,[c$1("> img",`
|
|
display: block;
|
|
`)])]),cE("dots",`
|
|
position: absolute;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`,[cM("dot",[cE("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;
|
|
`,[c$1("&:focus",`
|
|
background-color: var(--n-dot-color-focus);
|
|
`),cM("active",`
|
|
background-color: var(--n-dot-color-active);
|
|
`)])]),cM("line",[cE("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;
|
|
`,[c$1("&:focus",`
|
|
background-color: var(--n-dot-color-focus);
|
|
`),cM("active",`
|
|
width: var(--n-dot-line-width-active);
|
|
background-color: var(--n-dot-color-active);
|
|
`)])])]),cE("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;
|
|
`,[c$1("svg",`
|
|
height: 1em;
|
|
width: 1em;
|
|
`),c$1("&:hover",`
|
|
background-color: rgba(255, 255, 255, .3);
|
|
`)]),cM("vertical",`
|
|
touch-action: pan-x;
|
|
`,[cE("slides",`
|
|
flex-direction: column;
|
|
`),cM("fade",[cE("slide",`
|
|
top: 50%;
|
|
left: unset;
|
|
transform: translateY(-50%);
|
|
`)]),cM("card",[cE("slide",`
|
|
top: 50%;
|
|
left: unset;
|
|
transform: translateY(-50%) translateZ(-400px);
|
|
`,[cM("current",`
|
|
transform: translateY(-50%) translateZ(0);
|
|
`),cM("prev",`
|
|
transform: translateY(-100%) translateZ(-200px);
|
|
`),cM("next",`
|
|
transform: translateY(0%) translateZ(-200px);
|
|
`)])])]),cM("usercontrol",[cE("slides",[c$1(">",[c$1("div",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
width: 100%;
|
|
height: 100%;
|
|
transform: translate(-50%, -50%);
|
|
`)])])]),cM("left",[cE("dots",`
|
|
transform: translateY(-50%);
|
|
top: 50%;
|
|
left: 12px;
|
|
flex-direction: column;
|
|
`,[cM("line",[cE("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;
|
|
`,[cM("active",`
|
|
height: var(--n-dot-line-width-active);
|
|
`)])])]),cE("dot",`
|
|
margin: 4px 0;
|
|
`)]),cE("arrow-group",`
|
|
position: absolute;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`),cM("vertical",[cE("arrow",`
|
|
transform: rotate(90deg);
|
|
`)]),cM("show-arrow",[cM("bottom",[cE("dots",`
|
|
transform: translateX(0);
|
|
bottom: 18px;
|
|
left: 18px;
|
|
`)]),cM("top",[cE("dots",`
|
|
transform: translateX(0);
|
|
top: 18px;
|
|
left: 18px;
|
|
`)]),cM("left",[cE("dots",`
|
|
transform: translateX(0);
|
|
top: 18px;
|
|
left: 18px;
|
|
`)]),cM("right",[cE("dots",`
|
|
transform: translateX(0);
|
|
top: 18px;
|
|
right: 18px;
|
|
`)])]),cM("left",[cE("arrow-group",`
|
|
bottom: 12px;
|
|
left: 12px;
|
|
flex-direction: column;
|
|
`,[c$1("> *:first-child",`
|
|
margin-bottom: 12px;
|
|
`)])]),cM("right",[cE("dots",`
|
|
transform: translateY(-50%);
|
|
top: 50%;
|
|
right: 12px;
|
|
flex-direction: column;
|
|
`,[cM("line",[cE("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;
|
|
`,[cM("active",`
|
|
height: var(--n-dot-line-width-active);
|
|
`)])])]),cE("dot",`
|
|
margin: 4px 0;
|
|
`),cE("arrow-group",`
|
|
bottom: 12px;
|
|
right: 12px;
|
|
flex-direction: column;
|
|
`,[c$1("> *:first-child",`
|
|
margin-bottom: 12px;
|
|
`)])]),cM("top",[cE("dots",`
|
|
transform: translateX(-50%);
|
|
top: 12px;
|
|
left: 50%;
|
|
`,[cM("line",[cE("dot",`
|
|
margin: 0 4px;
|
|
`)])]),cE("dot",`
|
|
margin: 0 4px;
|
|
`),cE("arrow-group",`
|
|
top: 12px;
|
|
right: 12px;
|
|
`,[c$1("> *:first-child",`
|
|
margin-right: 12px;
|
|
`)])]),cM("bottom",[cE("dots",`
|
|
transform: translateX(-50%);
|
|
bottom: 12px;
|
|
left: 50%;
|
|
`,[cM("line",[cE("dot",`
|
|
margin: 0 4px;
|
|
`)])]),cE("dot",`
|
|
margin: 0 4px;
|
|
`),cE("arrow-group",`
|
|
bottom: 12px;
|
|
right: 12px;
|
|
`,[c$1("> *:first-child",`
|
|
margin-right: 12px;
|
|
`)])]),cM("fade",[cE("slide",`
|
|
position: absolute;
|
|
opacity: 0;
|
|
transition-property: opacity;
|
|
pointer-events: none;
|
|
`,[cM("current",`
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
`)])]),cM("card",[cE("slides",`
|
|
perspective: 1000px;
|
|
`),cE("slide",`
|
|
position: absolute;
|
|
left: 50%;
|
|
opacity: 0;
|
|
transform: translateX(-50%) translateZ(-400px);
|
|
transition-property: opacity, transform;
|
|
`,[cM("current",`
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateZ(0);
|
|
z-index: 1;
|
|
`),cM("prev",`
|
|
opacity: 0.4;
|
|
transform: translateX(-100%) translateZ(-200px);
|
|
`),cM("next",`
|
|
opacity: 0.4;
|
|
transform: translateX(0%) translateZ(-200px);
|
|
`)])])]);const transitionProperties=["transitionDuration","transitionTimingFunction"],carouselProps=Object.assign(Object.assign({},useTheme.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 globalDragging=!1;var NCarousel=defineComponent({name:"Carousel",props:carouselProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=ref(null),s=ref(null),l=ref([]),d={value:[]},g=computed(()=>t.direction==="vertical"),y=computed(()=>g.value?"height":"width"),b=computed(()=>g.value?"bottom":"right"),C=computed(()=>t.effect==="slide"),x=computed(()=>t.loop&&t.slidesPerView===1&&C.value),S=computed(()=>t.effect==="custom"),_=computed(()=>!C.value||t.centeredSlides?1:t.slidesPerView),w=computed(()=>S.value?1:t.slidesPerView),$=computed(()=>_.value==="auto"||t.slidesPerView==="auto"&&t.centeredSlides),I=ref({width:0,height:0}),B=computed(()=>{const{value:Pe}=l;if(!Pe.length)return[];const{value:Ke}=$;if(Ke)return Pe.map(et=>calculateSize(et));const{value:ot}=w,{value:ft}=I,{value:it}=y;let Ie=ft[it];if(ot!=="auto"){const{spaceBetween:et}=t,At=Ie-(ot-1)*et,Oe=1/Math.max(1,ot);Ie=At*Oe}const Fe=Object.assign(Object.assign({},ft),{[it]:Ie});return Pe.map(()=>Fe)}),R=computed(()=>{const{value:Pe}=B;if(!Pe.length)return[];const{centeredSlides:Ke,spaceBetween:ot}=t,{value:ft}=y,{[ft]:it}=I.value;let Ie=0;return Pe.map(({[ft]:Fe})=>{let et=Ie;return Ke&&(et+=(Fe-it)/2),Ie+=Fe+ot,et})}),P=ref(!1),M=computed(()=>{const{transitionStyle:Pe}=t;return Pe?keep(Pe,transitionProperties):{}}),O=computed(()=>S.value?0:resolveSpeed(M.value.transitionDuration)),D=computed(()=>{const{value:Pe}=l;if(!Pe.length)return[];const Ke=!($.value||w.value===1),ot=Fe=>{if(Ke){const{value:et}=y;return{[et]:`${B.value[Fe][et]}px`}}};if(S.value)return Pe.map((Fe,et)=>ot(et));const{effect:ft,spaceBetween:it}=t,{value:Ie}=b;return Pe.reduce((Fe,et,At)=>{const Oe=Object.assign(Object.assign({},ot(At)),{[`margin-${Ie}`]:`${it}px`});return Fe.push(Oe),P.value&&(ft==="fade"||ft==="card")&&Object.assign(Oe,M.value),Fe},[])}),N=computed(()=>{const{value:Pe}=_,{length:Ke}=l.value;if(Pe!=="auto")return Math.max(Ke-Pe,0)+1;{const{value:ot}=B,{length:ft}=ot;if(!ft)return Ke;const{value:it}=R,{value:Ie}=y,Fe=I.value[Ie];let et=ot[ot.length-1][Ie],At=ft;for(;At>1&&et<Fe;)At--,et+=it[At]-it[At-1];return clampValue(At+1,1,ft)}}),H=computed(()=>getDisplayTotalView(N.value,x.value)),Q=getRealIndex(t.defaultIndex,x.value),G=ref(getDisplayIndex(Q,N.value,x.value)),K=useMergedState(toRef(t,"currentIndex"),G),W=computed(()=>getRealIndex(K.value,x.value));function j(Pe){var Ke,ot;Pe=clampValue(Pe,0,N.value-1);const ft=getDisplayIndex(Pe,N.value,x.value),{value:it}=K;ft!==K.value&&(G.value=ft,(Ke=t["onUpdate:currentIndex"])===null||Ke===void 0||Ke.call(t,ft,it),(ot=t.onUpdateCurrentIndex)===null||ot===void 0||ot.call(t,ft,it))}function Y(Pe=W.value){return getPrevIndex(Pe,N.value,t.loop)}function q(Pe=W.value){return getNextIndex(Pe,N.value,t.loop)}function X(Pe){const Ke=le(Pe);return Ke!==null&&Y()===Ke}function re(Pe){const Ke=le(Pe);return Ke!==null&&q()===Ke}function te(Pe){return W.value===le(Pe)}function oe(Pe){return K.value===Pe}function ae(){return Y()===null}function se(){return q()===null}function ue(Pe){const Ke=clampValue(getRealIndex(Pe,x.value),0,N.value);(Pe!==K.value||Ke!==W.value)&&j(Ke)}function Ae(){const Pe=Y();Pe!==null&&j(Pe)}function pe(){const Pe=q();Pe!==null&&j(Pe)}function he(){(!ve||!x.value)&&Ae()}function Ce(){(!ve||!x.value)&&pe()}let ve=!1,ye=0;const Be=ref({});function Se(Pe,Ke=0){Be.value=Object.assign({},M.value,{transform:g.value?`translateY(${-Pe}px)`:`translateX(${-Pe}px)`,transitionDuration:`${Ke}ms`})}function Ee(Pe=0){C.value?ie(W.value,Pe):ye!==0&&(!ve&&Pe>0&&(ve=!0),Se(ye=0,Pe))}function ie(Pe,Ke){const ot=ee(Pe);ot!==ye&&Ke>0&&(ve=!0),ye=ee(W.value),Se(ot,Ke)}function ee(Pe){let Ke;return Pe>=N.value-1?Ke=J():Ke=R.value[Pe]||0,Ke}function J(){if(_.value==="auto"){const{value:Pe}=y,{[Pe]:Ke}=I.value,{value:ot}=R,ft=ot[ot.length-1];let it;if(ft===void 0)it=Ke;else{const{value:Ie}=B;it=ft+Ie[Ie.length-1][Pe]}return it-Ke}else{const{value:Pe}=R;return Pe[N.value-1]||0}}const ce={currentIndexRef:K,to:ue,prev:he,next:Ce,isVertical:()=>g.value,isHorizontal:()=>!g.value,isPrev:X,isNext:re,isActive:te,isPrevDisabled:ae,isNextDisabled:se,getSlideIndex:le,getSlideStyle:me,addSlide:fe,removeSlide:ne,onCarouselItemClick:Te};provideCarouselContext(ce);function fe(Pe){!Pe||l.value.push(Pe)}function ne(Pe){if(!Pe)return;const Ke=le(Pe);Ke!==-1&&l.value.splice(Ke,1)}function le(Pe){return typeof Pe=="number"?Pe:Pe?l.value.indexOf(Pe):-1}function me(Pe){const Ke=le(Pe);if(Ke!==-1){const ot=[D.value[Ke]],ft=ce.isPrev(Ke),it=ce.isNext(Ke);return ft&&ot.push(t.prevSlideStyle||""),it&&ot.push(t.nextSlideStyle||""),normalizeStyle$1(ot)}}function Te(Pe,Ke){let ot=!ve&&!Ge&&!Ze;t.effect==="card"&&ot&&!te(Pe)&&(ue(Pe),ot=!1),ot||(Ke.preventDefault(),Ke.stopPropagation())}let ge=null;function $e(){ge&&(clearInterval(ge),ge=null)}function de(){$e(),!t.autoplay||H.value<2||(ge=window.setInterval(pe,t.interval))}let be=0,we=0,Me=0,Ue=0,Ge=!1,Ze=!1;function tt(Pe){var Ke;if(globalDragging||!(!((Ke=s.value)===null||Ke===void 0)&&Ke.contains(getPreciseEventTarget(Pe))))return;globalDragging=!0,Ge=!0,Ze=!1,Ue=Date.now(),$e(),Pe.type!=="touchstart"&&!Pe.target.isContentEditable&&Pe.preventDefault();const ot=isTouchEvent$1(Pe)?Pe.touches[0]:Pe;g.value?we=ot.clientY:be=ot.clientX,t.touchable&&(on("touchmove",document,st,{passive:!0}),on("touchend",document,We),on("touchcancel",document,We)),t.draggable&&(on("mousemove",document,st),on("mouseup",document,We))}function st(Pe){const{value:Ke}=g,{value:ot}=y,ft=isTouchEvent$1(Pe)?Pe.touches[0]:Pe,it=Ke?ft.clientY-we:ft.clientX-be,Ie=I.value[ot];Me=clampValue(it,-Ie,Ie),Pe.cancelable&&Pe.preventDefault(),C.value&&Se(ye-Me,0)}function We(){const{value:Pe}=W;let Ke=Pe;if(!ve&&Me!==0&&C.value){const ot=ye-Me,ft=[...R.value.slice(0,N.value-1),J()];let it=null;for(let Ie=0;Ie<ft.length;Ie++){const Fe=Math.abs(ft[Ie]-ot);if(it!==null&&it<Fe)break;it=Fe,Ke=Ie}}if(Ke===Pe){const ot=Date.now()-Ue,{value:ft}=y,it=I.value[ft];Me>it/2||Me/ot>.4?Ke=Y(Pe):(Me<-it/2||Me/ot<-.4)&&(Ke=q(Pe))}Ke!==null&&Ke!==Pe?(Ze=!0,j(Ke),nextTick(()=>{(!x.value||G.value!==K.value)&&Ee(O.value)})):Ee(O.value),Je(),de()}function Je(){Ge&&(globalDragging=!1),Ge=!1,be=0,we=0,Me=0,Ue=0,off("touchmove",document,st),off("touchend",document,We),off("touchcancel",document,We),off("mousemove",document,st),off("mouseup",document,We)}function Ye(){if(C.value&&ve){const{value:Pe}=W;ie(Pe,0)}else de();C.value&&(Be.value.transitionDuration="0ms"),ve=!1}function Xe(Pe){if(Pe.preventDefault(),ve)return;let{deltaX:Ke,deltaY:ot}=Pe;Pe.shiftKey&&!Ke&&(Ke=ot);const ft=-1,it=1,Ie=(Ke||ot)>0?it:ft;let Fe=0,et=0;g.value?et=Ie:Fe=Ie;const At=10;(et*ot>=At||Fe*Ke>=At)&&(Ie===it&&!se()?pe():Ie===ft&&!ae()&&Ae())}function _e(){I.value=calculateSize(o.value,!0),de()}function xe(){var Pe,Ke;$.value&&((Ke=(Pe=B.effect).scheduler)===null||Ke===void 0||Ke.call(Pe),B.effect.run())}function Le(){t.autoplay&&$e()}function Ve(){t.autoplay&&de()}onMounted(()=>{watchEffect(de),requestAnimationFrame(()=>P.value=!0)}),onBeforeUnmount(()=>{Je(),$e()}),onUpdated(()=>{const{value:Pe}=l,{value:Ke}=d,ot=new Map,ft=Ie=>ot.has(Ie)?ot.get(Ie):-1;let it=!1;for(let Ie=0;Ie<Pe.length;Ie++){const Fe=Ke.findIndex(et=>et.el===Pe[Ie]);Fe!==Ie&&(it=!0),ot.set(Pe[Ie],Fe)}it&&Pe.sort((Ie,Fe)=>ft(Ie)-ft(Fe))}),watch(W,(Pe,Ke)=>{if(Pe!==Ke)if(de(),C.value){if(x.value&&H.value>2){const{value:ot}=N;Pe===ot-2&&Ke===1?Pe=0:Pe===1&&Ke===ot-2&&(Pe=ot-1)}ie(Pe,O.value)}else Ee()},{immediate:!0}),watch([x,_],()=>void nextTick(()=>j(W.value))),watch(R,()=>C.value&&Ee(),{deep:!0}),watch(C,Pe=>{Pe?Ee():(ve=!1,Se(ye=0))});const ze=computed(()=>({onTouchstartPassive:t.touchable?tt:void 0,onMousedown:t.draggable?tt:void 0,onWheel:t.mousewheel?Xe:void 0})),Re=computed(()=>Object.assign(Object.assign({},keep(ce,["to","prev","next","isPrevDisabled","isNextDisabled"])),{total:H.value,currentIndex:K.value})),Ne=computed(()=>({total:H.value,currentIndex:K.value,to:ce.to})),je={getCurrentIndex:()=>K.value,to:ue,prev:Ae,next:pe},nt=useTheme("Carousel","-carousel",style$U,carouselLight$1,t,r),De=computed(()=>{const{common:{cubicBezierEaseInOut:Pe},self:{dotSize:Ke,dotColor:ot,dotColorActive:ft,dotColorFocus:it,dotLineWidth:Ie,dotLineWidthActive:Fe,arrowColor:et}}=nt.value;return{"--n-bezier":Pe,"--n-dot-color":ot,"--n-dot-color-focus":it,"--n-dot-color-active":ft,"--n-dot-size":Ke,"--n-dot-line-width":Ie,"--n-dot-line-width-active":Fe,"--n-arrow-color":et}}),Qe=n?useThemeClass("carousel",void 0,De,t):void 0;return Object.assign(Object.assign({mergedClsPrefix:r,selfElRef:o,slidesElRef:s,slideVNodes:d,duplicatedable:x,userWantsControl:S,autoSlideSize:$,displayIndex:K,realIndex:W,slideStyles:D,translateStyle:Be,slidesControlListeners:ze,handleTransitionEnd:Ye,handleResize:_e,handleSlideResize:xe,handleMouseenter:Le,handleMouseleave:Ve,isActive:oe,arrowSlotProps:Re,dotSlotProps:Ne},je),{cssVars:n?void 0:De,themeClass:Qe==null?void 0:Qe.themeClass,onRender:Qe==null?void 0:Qe.onRender})},render(){var t;const{mergedClsPrefix:r,showArrow:n,userWantsControl:o,slideStyles:s,dotType:l,dotPlacement:d,slidesControlListeners:g,transitionProps:y={},arrowSlotProps:b,dotSlotProps:C,$slots:{default:x,dots:S,arrow:_}}=this,w=x&&flatten$5(x())||[];let $=filterCarouselItem(w);return $.length||($=w.map(I=>h(NCarouselItem,null,{default:()=>cloneVNode(I)}))),this.duplicatedable&&($=addDuplicateSlides($)),this.slideVNodes.value=$,this.autoSlideSize&&($=$.map(I=>h(VResizeObserver,{onResize:this.handleSlideResize},{default:()=>I}))),(t=this.onRender)===null||t===void 0||t.call(this),h("div",Object.assign({ref:"selfElRef",class:[this.themeClass,`${r}-carousel`,this.direction==="vertical"&&`${r}-carousel--vertical`,this.showArrow&&`${r}-carousel--show-arrow`,`${r}-carousel--${d}`,`${r}-carousel--${this.direction}`,`${r}-carousel--${this.effect}`,o&&`${r}-carousel--usercontrol`],style:this.cssVars},g,{onMouseenter:this.handleMouseenter,onMouseleave:this.handleMouseleave}),h(VResizeObserver,{onResize:this.handleResize},{default:()=>h("div",{ref:"slidesElRef",class:`${r}-carousel__slides`,role:"listbox",style:this.translateStyle,onTransitionend:this.handleTransitionEnd},o?$.map((I,B)=>h("div",{style:s[B],key:B},withDirectives(h(Transition,Object.assign({},y),{default:()=>I}),[[vShow,this.isActive(B)]]))):$)}),this.showDots&&C.total>1&&resolveSlotWithProps(S,C,()=>[h(NCarouselDots,{key:l+d,total:C.total,currentIndex:C.currentIndex,dotType:l,trigger:this.trigger,keyboard:this.keyboard})]),n&&resolveSlotWithProps(_,b,()=>[h(NCarouselArrow,null)]))}});function filterCarouselItem(t){return t.reduce((r,n)=>(isCarouselItem(n)&&r.push(n),r),[])}var commonVariables$c={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};const self$P=t=>{const{baseColor:r,inputColorDisabled:n,cardColor:o,modalColor:s,popoverColor:l,textColorDisabled:d,borderColor:g,primaryColor:y,textColor2:b,fontSizeSmall:C,fontSizeMedium:x,fontSizeLarge:S,borderRadiusSmall:_,lineHeight:w}=t;return Object.assign(Object.assign({},commonVariables$c),{labelLineHeight:w,fontSizeSmall:C,fontSizeMedium:x,fontSizeLarge:S,borderRadius:_,color:r,colorChecked:y,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:l,checkMarkColor:r,checkMarkColorDisabled:d,checkMarkColorDisabledChecked:d,border:`1px solid ${g}`,borderDisabled:`1px solid ${g}`,borderDisabledChecked:`1px solid ${g}`,borderChecked:`1px solid ${y}`,borderFocus:`1px solid ${y}`,boxShadowFocus:`0 0 0 2px ${changeColor(y,{alpha:.3})}`,textColor:b,textColorDisabled:d})},checkboxLight={name:"Checkbox",common:commonLight,self:self$P};var checkboxLight$1=checkboxLight;const checkboxDark={name:"Checkbox",common:commonDark,self(t){const{cardColor:r}=t,n=self$P(t);return n.color="#0000",n.checkMarkColor=r,n}};var checkboxDark$1=checkboxDark;const self$O=t=>{const{borderRadius:r,boxShadow2:n,popoverColor:o,textColor2:s,textColor3:l,primaryColor:d,textColorDisabled:g,dividerColor:y,hoverColor:b,fontSizeMedium:C,heightMedium:x}=t;return{menuBorderRadius:r,menuColor:o,menuBoxShadow:n,menuDividerColor:y,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:l,optionHeight:x,optionFontSize:C,optionColorHover:b,optionTextColor:s,optionTextColorActive:d,optionTextColorDisabled:g,optionCheckMarkColor:d,loadingColor:d,columnWidth:"180px"}},cascaderDark={name:"Cascader",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,InternalSelection:internalSelectionDark$1,Scrollbar:scrollbarDark$1,Checkbox:checkboxDark$1,Empty:emptyLight$1},self:self$O};var cascaderDark$1=cascaderDark,CheckMark=h("svg",{viewBox:"0 0 64 64",class:"check-icon"},h("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"})),LineMark=h("svg",{viewBox:"0 0 100 100",class:"line-icon"},h("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 checkboxGroupInjectionKey="n-checkbox-group",checkboxGroupProps={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 NCheckboxGroup=defineComponent({name:"CheckboxGroup",props:checkboxGroupProps,setup(t){const{mergedClsPrefixRef:r}=useConfig(t),n=useFormItem(t),{mergedSizeRef:o,mergedDisabledRef:s}=n,l=ref(t.defaultValue),d=computed(()=>t.value),g=useMergedState(d,l),y=computed(()=>{var x;return((x=g.value)===null||x===void 0?void 0:x.length)||0}),b=computed(()=>Array.isArray(g.value)?new Set(g.value):new Set);function C(x,S){const{nTriggerFormInput:_,nTriggerFormChange:w}=n,{onChange:$,"onUpdate:value":I,onUpdateValue:B}=t;if(Array.isArray(g.value)){const R=Array.from(g.value),P=R.findIndex(M=>M===S);x?~P||(R.push(S),B&&call(B,R,{actionType:"check",value:S}),I&&call(I,R,{actionType:"check",value:S}),_(),w(),l.value=R,$&&call($,R)):~P&&(R.splice(P,1),B&&call(B,R,{actionType:"uncheck",value:S}),I&&call(I,R,{actionType:"uncheck",value:S}),$&&call($,R),l.value=R,_(),w())}else x?(B&&call(B,[S],{actionType:"check",value:S}),I&&call(I,[S],{actionType:"check",value:S}),$&&call($,[S]),l.value=[S],_(),w()):(B&&call(B,[],{actionType:"uncheck",value:S}),I&&call(I,[],{actionType:"uncheck",value:S}),$&&call($,[]),l.value=[],_(),w())}return provide(checkboxGroupInjectionKey,{checkedCountRef:y,maxRef:toRef(t,"max"),minRef:toRef(t,"min"),valueSetRef:b,disabledRef:s,mergedSizeRef:o,toggleCheckbox:C}),{mergedClsPrefix:r}},render(){return h("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),style$T=c$1([cB("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);
|
|
`,[c$1("&:hover",[cB("checkbox-box",[cE("border",{border:"var(--n-border-checked)"})])]),c$1("&:focus:not(:active)",[cB("checkbox-box",[cE("border",`
|
|
border: var(--n-border-focus);
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)])]),cM("inside-table",[cB("checkbox-box",`
|
|
background-color: var(--n-merged-color-table);
|
|
`)]),cM("checked",[cB("checkbox-box",`
|
|
background-color: var(--n-color-checked);
|
|
`,[cB("checkbox-icon",[c$1(".check-icon",`
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
`)])])]),cM("indeterminate",[cB("checkbox-box",[cB("checkbox-icon",[c$1(".check-icon",`
|
|
opacity: 0;
|
|
transform: scale(.5);
|
|
`),c$1(".line-icon",`
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
`)])])]),cM("checked, indeterminate",[c$1("&:focus:not(:active)",[cB("checkbox-box",[cE("border",`
|
|
border: var(--n-border-checked);
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)])]),cB("checkbox-box",`
|
|
background-color: var(--n-color-checked);
|
|
border-left: 0;
|
|
border-top: 0;
|
|
`,[cE("border",{border:"var(--n-border-checked)"})])]),cM("disabled",{cursor:"not-allowed"},[cM("checked",[cB("checkbox-box",`
|
|
background-color: var(--n-color-disabled-checked);
|
|
`,[cE("border",{border:"var(--n-border-disabled-checked)"}),cB("checkbox-icon",[c$1(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),cB("checkbox-box",`
|
|
background-color: var(--n-color-disabled);
|
|
`,[cE("border",{border:"var(--n-border-disabled)"}),cB("checkbox-icon",[c$1(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled)"})])]),cE("label",{color:"var(--n-text-color-disabled)"})]),cB("checkbox-box-wrapper",`
|
|
position: relative;
|
|
width: var(--n-size);
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),cB("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);
|
|
`,[cE("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);
|
|
`),cB("checkbox-icon",`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
position: absolute;
|
|
left: 1px;
|
|
right: 1px;
|
|
top: 1px;
|
|
bottom: 1px;
|
|
`,[c$1(".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);
|
|
`),iconSwitchTransition({left:"1px",top:"1px"})])]),cE("label",`
|
|
color: var(--n-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
padding: var(--n-label-padding);
|
|
font-weight: var(--n-label-font-weight);
|
|
`,[c$1("&:empty",{display:"none"})])]),insideModal(cB("checkbox",`
|
|
--n-merged-color-table: var(--n-color-table-modal);
|
|
`)),insidePopover(cB("checkbox",`
|
|
--n-merged-color-table: var(--n-color-table-popover);
|
|
`))]);const checkboxProps=Object.assign(Object.assign({},useTheme.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 NCheckbox=defineComponent({name:"Checkbox",props:checkboxProps,setup(t){const r=ref(null),{mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:s}=useConfig(t),l=useFormItem(t,{mergedSize(D){const{size:N}=t;if(N!==void 0)return N;if(y){const{value:H}=y.mergedSizeRef;if(H!==void 0)return H}if(D){const{mergedSize:H}=D;if(H!==void 0)return H.value}return"medium"},mergedDisabled(D){const{disabled:N}=t;if(N!==void 0)return N;if(y){if(y.disabledRef.value)return!0;const{maxRef:{value:H},checkedCountRef:Q}=y;if(H!==void 0&&Q.value>=H&&!S.value)return!0;const{minRef:{value:G}}=y;if(G!==void 0&&Q.value<=G&&S.value)return!0}return D?D.disabled.value:!1}}),{mergedDisabledRef:d,mergedSizeRef:g}=l,y=inject(checkboxGroupInjectionKey,null),b=ref(t.defaultChecked),C=toRef(t,"checked"),x=useMergedState(C,b),S=useMemo(()=>{if(y){const D=y.valueSetRef.value;return D&&t.value!==void 0?D.has(t.value):!1}else return x.value===t.checkedValue}),_=useTheme("Checkbox","-checkbox",style$T,checkboxLight$1,t,n);function w(D){if(y&&t.value!==void 0)y.toggleCheckbox(!S.value,t.value);else{const{onChange:N,"onUpdate:checked":H,onUpdateChecked:Q}=t,{nTriggerFormInput:G,nTriggerFormChange:K}=l,W=S.value?t.uncheckedValue:t.checkedValue;H&&call(H,W,D),Q&&call(Q,W,D),N&&call(N,W,D),G(),K(),b.value=W}}function $(D){d.value||w(D)}function I(D){if(!d.value)switch(D.key){case" ":case"Enter":w(D)}}function B(D){switch(D.key){case" ":D.preventDefault()}}const R={focus:()=>{var D;(D=r.value)===null||D===void 0||D.focus()},blur:()=>{var D;(D=r.value)===null||D===void 0||D.blur()}},P=useRtl("Checkbox",s,n),M=computed(()=>{const{value:D}=g,{common:{cubicBezierEaseInOut:N},self:{borderRadius:H,color:Q,colorChecked:G,colorDisabled:K,colorTableHeader:W,colorTableHeaderModal:j,colorTableHeaderPopover:Y,checkMarkColor:q,checkMarkColorDisabled:X,border:re,borderFocus:te,borderDisabled:oe,borderChecked:ae,boxShadowFocus:se,textColor:ue,textColorDisabled:Ae,checkMarkColorDisabledChecked:pe,colorDisabledChecked:he,borderDisabledChecked:Ce,labelPadding:ve,labelLineHeight:ye,labelFontWeight:Be,[createKey("fontSize",D)]:Se,[createKey("size",D)]:Ee}}=_.value;return{"--n-label-line-height":ye,"--n-label-font-weight":Be,"--n-size":Ee,"--n-bezier":N,"--n-border-radius":H,"--n-border":re,"--n-border-checked":ae,"--n-border-focus":te,"--n-border-disabled":oe,"--n-border-disabled-checked":Ce,"--n-box-shadow-focus":se,"--n-color":Q,"--n-color-checked":G,"--n-color-table":W,"--n-color-table-modal":j,"--n-color-table-popover":Y,"--n-color-disabled":K,"--n-color-disabled-checked":he,"--n-text-color":ue,"--n-text-color-disabled":Ae,"--n-check-mark-color":q,"--n-check-mark-color-disabled":X,"--n-check-mark-color-disabled-checked":pe,"--n-font-size":Se,"--n-label-padding":ve}}),O=o?useThemeClass("checkbox",computed(()=>g.value[0]),M,t):void 0;return Object.assign(l,R,{rtlEnabled:P,selfRef:r,mergedClsPrefix:n,mergedDisabled:d,renderedChecked:S,mergedTheme:_,labelId:createId(),handleClick:$,handleKeyUp:I,handleKeyDown:B,cssVars:o?void 0:M,themeClass:O==null?void 0:O.themeClass,onRender:O==null?void 0:O.onRender})},render(){var t;const{$slots:r,renderedChecked:n,mergedDisabled:o,indeterminate:s,privateInsideTable:l,cssVars:d,labelId:g,label:y,mergedClsPrefix:b,focusable:C,handleKeyUp:x,handleKeyDown:S,handleClick:_}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{ref:"selfRef",class:[`${b}-checkbox`,this.themeClass,this.rtlEnabled&&`${b}-checkbox--rtl`,n&&`${b}-checkbox--checked`,o&&`${b}-checkbox--disabled`,s&&`${b}-checkbox--indeterminate`,l&&`${b}-checkbox--inside-table`],tabindex:o||!C?void 0:0,role:"checkbox","aria-checked":s?"mixed":n,"aria-labelledby":g,style:d,onKeyup:x,onKeydown:S,onClick:_,onMousedown:()=>{on("selectstart",window,w=>{w.preventDefault()},{once:!0})}},h("div",{class:`${b}-checkbox-box-wrapper`},"\xA0",h("div",{class:`${b}-checkbox-box`},h(NIconSwitchTransition,null,{default:()=>this.indeterminate?h("div",{key:"indeterminate",class:`${b}-checkbox-icon`},LineMark):h("div",{key:"check",class:`${b}-checkbox-icon`},CheckMark)}),h("div",{class:`${b}-checkbox-box__border`}))),y!==null||r.default?h("span",{class:`${b}-checkbox__label`,id:g},r.default?r.default():y):null)}});const codeDark={name:"Code",common:commonDark,self(t){const{textColor2:r,fontSize:n,fontWeightStrong:o,textColor3:s}=t;return{textColor:r,fontSize:n,fontWeightStrong:o,"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:s}}};var codeDark$1=codeDark;const self$N=t=>{const{textColor2:r,fontSize:n,fontWeightStrong:o,textColor3:s}=t;return{textColor:r,fontSize:n,fontWeightStrong:o,"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:s}},codeLight={name:"Code",common:commonLight,self:self$N};var codeLight$1=codeLight,style$S=c$1([cB("code",`
|
|
font-size: var(--n-font-size);
|
|
font-family: var(--n-font-family);
|
|
`,[cM("show-line-numbers",`
|
|
display: flex;
|
|
`),cE("line-numbers",`
|
|
user-select: none;
|
|
padding-right: 12px;
|
|
text-align: right;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-line-number-text-color);
|
|
`),cM("word-wrap",[c$1("pre",`
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
`)]),c$1("pre",`
|
|
margin: 0;
|
|
line-height: inherit;
|
|
font-size: inherit;
|
|
font-family: inherit;
|
|
`),c$1("[class^=hljs]",`
|
|
color: var(--n-text-color);
|
|
transition:
|
|
color .3s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`)]),({props:t})=>{const r=`${t.bPrefix}code`;return[`${r} .hljs-comment,
|
|
${r} .hljs-quote {
|
|
color: var(--n-mono-3);
|
|
font-style: italic;
|
|
}`,`${r} .hljs-doctag,
|
|
${r} .hljs-keyword,
|
|
${r} .hljs-formula {
|
|
color: var(--n-hue-3);
|
|
}`,`${r} .hljs-section,
|
|
${r} .hljs-name,
|
|
${r} .hljs-selector-tag,
|
|
${r} .hljs-deletion,
|
|
${r} .hljs-subst {
|
|
color: var(--n-hue-5);
|
|
}`,`${r} .hljs-literal {
|
|
color: var(--n-hue-1);
|
|
}`,`${r} .hljs-string,
|
|
${r} .hljs-regexp,
|
|
${r} .hljs-addition,
|
|
${r} .hljs-attribute,
|
|
${r} .hljs-meta-string {
|
|
color: var(--n-hue-4);
|
|
}`,`${r} .hljs-built_in,
|
|
${r} .hljs-class .hljs-title {
|
|
color: var(--n-hue-6-2);
|
|
}`,`${r} .hljs-attr,
|
|
${r} .hljs-variable,
|
|
${r} .hljs-template-variable,
|
|
${r} .hljs-type,
|
|
${r} .hljs-selector-class,
|
|
${r} .hljs-selector-attr,
|
|
${r} .hljs-selector-pseudo,
|
|
${r} .hljs-number {
|
|
color: var(--n-hue-6);
|
|
}`,`${r} .hljs-symbol,
|
|
${r} .hljs-bullet,
|
|
${r} .hljs-link,
|
|
${r} .hljs-meta,
|
|
${r} .hljs-selector-id,
|
|
${r} .hljs-title {
|
|
color: var(--n-hue-2);
|
|
}`,`${r} .hljs-emphasis {
|
|
font-style: italic;
|
|
}`,`${r} .hljs-strong {
|
|
font-weight: var(--n-font-weight-strong);
|
|
}`,`${r} .hljs-link {
|
|
text-decoration: underline;
|
|
}`]}]);const codeProps=Object.assign(Object.assign({},useTheme.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 NCode=defineComponent({name:"Code",props:codeProps,setup(t,{slots:r}){const{internalNoHighlight:n}=t,{mergedClsPrefixRef:o,inlineThemeDisabled:s}=useConfig(),l=ref(null),d=n?{value:void 0}:useHljs(t),g=(_,w,$)=>{const{value:I}=d;return!I||!(_&&I.getLanguage(_))?null:I.highlight($?w.trim():w,{language:_}).value},y=computed(()=>t.inline||t.wordWrap?!1:t.showLineNumbers),b=()=>{if(r.default)return;const{value:_}=l;if(!_)return;const{language:w}=t,$=t.uri?window.decodeURIComponent(t.code):t.code;if(w){const B=g(w,$,t.trim);if(B!==null){if(t.inline)_.innerHTML=B;else{const R=_.querySelector(".__code__");R&&_.removeChild(R);const P=document.createElement("pre");P.className="__code__",P.innerHTML=B,_.appendChild(P)}return}}if(t.inline){_.textContent=$;return}const I=_.querySelector(".__code__");if(I)I.textContent=$;else{const B=document.createElement("pre");B.className="__code__",B.textContent=$,_.innerHTML="",_.appendChild(B)}};onMounted(b),watch(toRef(t,"language"),b),watch(toRef(t,"code"),b),n||watch(d,b);const C=useTheme("Code","-code",style$S,codeLight$1,t,o),x=computed(()=>{const{common:{cubicBezierEaseInOut:_,fontFamilyMono:w},self:{textColor:$,fontSize:I,fontWeightStrong:B,lineNumberTextColor:R,"mono-3":P,"hue-1":M,"hue-2":O,"hue-3":D,"hue-4":N,"hue-5":H,"hue-5-2":Q,"hue-6":G,"hue-6-2":K}}=C.value,{internalFontSize:W}=t;return{"--n-font-size":W?`${W}px`:I,"--n-font-family":w,"--n-font-weight-strong":B,"--n-bezier":_,"--n-text-color":$,"--n-mono-3":P,"--n-hue-1":M,"--n-hue-2":O,"--n-hue-3":D,"--n-hue-4":N,"--n-hue-5":H,"--n-hue-5-2":Q,"--n-hue-6":G,"--n-hue-6-2":K,"--n-line-number-text-color":R}}),S=s?useThemeClass("code",computed(()=>`${t.internalFontSize||"a"}`),x,t):void 0;return{mergedClsPrefix:o,codeRef:l,mergedShowLineNumbers:y,lineNumbers:computed(()=>{let _=1;const w=[];let $=!1;for(const I of t.code)I===`
|
|
`?($=!0,w.push(_++)):$=!1;return $||w.push(_++),w.join(`
|
|
`)}),cssVars:s?void 0:x,themeClass:S==null?void 0:S.themeClass,onRender:S==null?void 0:S.onRender}},render(){var t,r;const{mergedClsPrefix:n,wordWrap:o,mergedShowLineNumbers:s,onRender:l}=this;return l==null||l(),h("code",{class:[`${n}-code`,this.themeClass,o&&`${n}-code--word-wrap`,s&&`${n}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},s?h("pre",{class:`${n}-code__line-numbers`},this.lineNumbers):null,(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t))}});const self$M=t=>{const{fontWeight:r,textColor1:n,textColor2:o,textColorDisabled:s,dividerColor:l,fontSize:d}=t;return{titleFontSize:d,titleFontWeight:r,dividerColor:l,titleTextColor:n,titleTextColorDisabled:s,fontSize:d,textColor:o,arrowColor:o,arrowColorDisabled:s,itemMargin:"16px 0 0 0"}},collapseLight={name:"Collapse",common:commonLight,self:self$M};var collapseLight$1=collapseLight;const collapseDark={name:"Collapse",common:commonDark,self:self$M};var collapseDark$1=collapseDark,style$R=cB("collapse","width: 100%;",[cB("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);
|
|
`,[cM("disabled",[cE("header","cursor: not-allowed;",[cE("header-main",`
|
|
color: var(--n-title-text-color-disabled);
|
|
`),cB("collapse-item-arrow",`
|
|
color: var(--n-arrow-color-disabled);
|
|
`)])]),cB("collapse-item","margin-left: 32px;"),c$1("&:first-child","margin-top: 0;"),c$1("&:first-child >",[cE("header","padding-top: 0;")]),cM("left-arrow-placement",[cE("header",[cB("collapse-item-arrow","margin-right: 4px;")])]),cM("right-arrow-placement",[cE("header",[cB("collapse-item-arrow","margin-left: 4px;")])]),cE("content-wrapper",[cE("content-inner","padding-top: 16px;"),fadeInHeightExpandTransition({duration:"0.15s"})]),cM("active",[cE("header",[cM("active",[cB("collapse-item-arrow","transform: rotate(90deg);")])])]),c$1("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),cE("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;
|
|
`,[cE("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);
|
|
`),cE("header-extra",`
|
|
display: flex;
|
|
align-items: center;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`),cB("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 collapseProps=Object.assign(Object.assign({},useTheme.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}}),collapseInjectionKey="n-collapse";var NCollapse=defineComponent({name:"Collapse",props:collapseProps,setup(t,{slots:r}){const{mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:s}=useConfig(t),l=ref(t.defaultExpandedNames),d=computed(()=>t.expandedNames),g=useMergedState(d,l),y=useTheme("Collapse","-collapse",style$R,collapseLight$1,t,n);function b($){const{"onUpdate:expandedNames":I,onUpdateExpandedNames:B,onExpandedNamesChange:R}=t;B&&call(B,$),I&&call(I,$),R&&call(R,$),l.value=$}function C($){const{onItemHeaderClick:I}=t;I&&call(I,$)}function x($,I,B){const{accordion:R}=t,{value:P}=g;if(R)$?(b([I]),C({name:I,expanded:!0,event:B})):(b([]),C({name:I,expanded:!1,event:B}));else if(!Array.isArray(P))b([I]),C({name:I,expanded:!0,event:B});else{const M=P.slice(),O=M.findIndex(D=>I===D);~O?(M.splice(O,1),b(M),C({name:I,expanded:!1,event:B})):(M.push(I),b(M),C({name:I,expanded:!0,event:B}))}}provide(collapseInjectionKey,{props:t,mergedClsPrefixRef:n,expandedNamesRef:g,slots:r,toggleItem:x});const S=useRtl("Collapse",s,n),_=computed(()=>{const{common:{cubicBezierEaseInOut:$},self:{titleFontWeight:I,dividerColor:B,titleTextColor:R,titleTextColorDisabled:P,textColor:M,arrowColor:O,fontSize:D,titleFontSize:N,arrowColorDisabled:H,itemMargin:Q}}=y.value;return{"--n-font-size":D,"--n-bezier":$,"--n-text-color":M,"--n-divider-color":B,"--n-title-font-size":N,"--n-title-text-color":R,"--n-title-text-color-disabled":P,"--n-title-font-weight":I,"--n-arrow-color":O,"--n-arrow-color-disabled":H,"--n-item-margin":Q}}),w=o?useThemeClass("collapse",void 0,_,t):void 0;return{rtlEnabled:S,mergedTheme:y,mergedClsPrefix:n,cssVars:o?void 0:_,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),NCollapseItemContent=defineComponent({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(t){return{onceTrue:useFalseUntilTruthy(toRef(t,"show"))}},render(){return h(NFadeInExpandTransition,null,{default:()=>{const{show:t,displayDirective:r,onceTrue:n,clsPrefix:o}=this,s=r==="show"&&n,l=h("div",{class:`${o}-collapse-item__content-wrapper`},h("div",{class:`${o}-collapse-item__content-inner`},this.$slots));return s?withDirectives(l,[[vShow,t]]):t?l:null}})}});const collapseItemProps={title:String,name:[String,Number],disabled:Boolean,displayDirective:String};var NCollapseItem=defineComponent({name:"CollapseItem",props:collapseItemProps,setup(t){const{mergedRtlRef:r}=useConfig(t),n=createId(),o=useMemo(()=>{var x;return(x=t.name)!==null&&x!==void 0?x:n}),s=inject(collapseInjectionKey);s||throwError$1("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:l,props:d,mergedClsPrefixRef:g,slots:y}=s,b=computed(()=>{const{value:x}=l;if(Array.isArray(x)){const{value:S}=o;return!~x.findIndex(_=>_===S)}else if(x){const{value:S}=o;return S!==x}return!0});return{rtlEnabled:useRtl("Collapse",r,g),collapseSlots:y,randomName:n,mergedClsPrefix:g,collapsed:b,mergedDisplayDirective:computed(()=>{const{displayDirective:x}=t;return x||d.displayDirective}),arrowPlacement:computed(()=>d.arrowPlacement),handleClick(x){s&&!t.disabled&&s.toggleItem(b.value,o.value,x)}}},render(){const{collapseSlots:t,$slots:r,arrowPlacement:n,collapsed:o,mergedDisplayDirective:s,mergedClsPrefix:l,disabled:d}=this,g=resolveSlotWithProps(r.header,{collapsed:o},()=>[this.title]),y=r["header-extra"]||t["header-extra"],b=r.arrow||t.arrow;return h("div",{class:[`${l}-collapse-item`,`${l}-collapse-item--${n}-arrow-placement`,d&&`${l}-collapse-item--disabled`,!o&&`${l}-collapse-item--active`]},h("div",{class:[`${l}-collapse-item__header`,!o&&`${l}-collapse-item__header--active`]},h("div",{class:`${l}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&g,h("div",{class:`${l}-collapse-item-arrow`,key:this.rtlEnabled?0:1},resolveSlotWithProps(b,{collapsed:o},()=>{var C;return[h(NBaseIcon,{clsPrefix:l},{default:(C=t.expandIcon)!==null&&C!==void 0?C:()=>this.rtlEnabled?h(ChevronLeftIcon,null):h(ChevronRightIcon,null)})]})),n==="left"&&g),resolveWrappedSlotWithProps(y,{collapsed:o},C=>h("div",{class:`${l}-collapse-item__header-extra`,onClick:this.handleClick},C))),h(NCollapseItemContent,{clsPrefix:l,displayDirective:s,show:!o},r))}}),style$Q=cB("collapse-transition",{width:"100%"},[fadeInHeightExpandTransition()]);const self$L=t=>{const{cubicBezierEaseInOut:r}=t;return{bezier:r}},collapseTransitionLight={name:"CollapseTransition",common:commonLight,self:self$L};var collapseTransitionLight$1=collapseTransitionLight;const collapseTransitionDark={name:"CollapseTransition",common:commonDark,self:self$L};var collapseTransitionDark$1=collapseTransitionDark;const collapseTransitionProps=Object.assign(Object.assign({},useTheme.props),{show:{type:Boolean,default:!0},appear:Boolean,collapsed:{type:Boolean,default:void 0}});var NCollapseTransition=defineComponent({name:"CollapseTransition",props:collapseTransitionProps,inheritAttrs:!1,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=useConfig(t),s=useTheme("CollapseTransition","-collapse-transition",style$Q,collapseTransitionLight$1,t,r),l=useRtl("CollapseTransition",o,r),d=computed(()=>t.collapsed!==void 0?t.collapsed:t.show),g=computed(()=>{const{self:{bezier:b}}=s.value;return{"--n-bezier":b}}),y=n?useThemeClass("collapse-transition",void 0,g,t):void 0;return{rtlEnabled:l,mergedShow:d,mergedClsPrefix:r,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){return h(NFadeInExpandTransition,{appear:this.appear},{default:()=>{var t;if(!!this.mergedShow)return(t=this.onRender)===null||t===void 0||t.call(this),h("div",mergeProps({class:[`${this.mergedClsPrefix}-collapse-transition`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse-transition--rtl`,this.themeClass],style:this.cssVars},this.$attrs),this.$slots)}})}});const configProviderProps={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,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(warn$5("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}};var NConfigProvider=defineComponent({name:"ConfigProvider",alias:["App"],props:configProviderProps,setup(t){const r=inject(configProviderInjectionKey,null),n=computed(()=>{const{theme:w}=t;if(w===null)return;const $=r==null?void 0:r.mergedThemeRef.value;return w===void 0?$:$===void 0?w:Object.assign({},$,w)}),o=computed(()=>{const{themeOverrides:w}=t;if(w!==null){if(w===void 0)return r==null?void 0:r.mergedThemeOverridesRef.value;{const $=r==null?void 0:r.mergedThemeOverridesRef.value;return $===void 0?w:merge$5({},$,w)}}}),s=useMemo(()=>{const{namespace:w}=t;return w===void 0?r==null?void 0:r.mergedNamespaceRef.value:w}),l=useMemo(()=>{const{bordered:w}=t;return w===void 0?r==null?void 0:r.mergedBorderedRef.value:w}),d=computed(()=>{const{icons:w}=t;return w===void 0?r==null?void 0:r.mergedIconsRef.value:w}),g=computed(()=>{const{componentOptions:w}=t;return w!==void 0?w:r==null?void 0:r.mergedComponentPropsRef.value}),y=computed(()=>{const{clsPrefix:w}=t;return w!==void 0?w:r==null?void 0:r.mergedClsPrefixRef.value}),b=computed(()=>{var w;const{rtl:$}=t;if($===void 0)return r==null?void 0:r.mergedRtlRef.value;const I={};for(const B of $)I[B.name]=markRaw(B),(w=B.peers)===null||w===void 0||w.forEach(R=>{R.name in I||(I[R.name]=markRaw(R))});return I}),C=computed(()=>t.breakpoints||(r==null?void 0:r.mergedBreakpointsRef.value)),x=t.inlineThemeDisabled||(r==null?void 0:r.inlineThemeDisabled),S=t.preflightStyleDisabled||(r==null?void 0:r.preflightStyleDisabled),_=computed(()=>{const{value:w}=n,{value:$}=o,I=$&&Object.keys($).length!==0,B=w==null?void 0:w.name;return B?I?`${B}-${murmur2(JSON.stringify(o.value))}`:B:I?murmur2(JSON.stringify(o.value)):""});return provide(configProviderInjectionKey,{mergedThemeHashRef:_,mergedBreakpointsRef:C,mergedRtlRef:b,mergedIconsRef:d,mergedComponentPropsRef:g,mergedBorderedRef:l,mergedNamespaceRef:s,mergedClsPrefixRef:y,mergedLocaleRef:computed(()=>{const{locale:w}=t;if(w!==null)return w===void 0?r==null?void 0:r.mergedLocaleRef.value:w}),mergedDateLocaleRef:computed(()=>{const{dateLocale:w}=t;if(w!==null)return w===void 0?r==null?void 0:r.mergedDateLocaleRef.value:w}),mergedHljsRef:computed(()=>{const{hljs:w}=t;return w===void 0?r==null?void 0:r.mergedHljsRef.value:w}),mergedKatexRef:computed(()=>{const{katex:w}=t;return w===void 0?r==null?void 0:r.mergedKatexRef.value:w}),mergedThemeRef:n,mergedThemeOverridesRef:o,inlineThemeDisabled:x||!1,preflightStyleDisabled:S||!1}),{mergedClsPrefix:y,mergedBordered:l,mergedNamespace:s,mergedTheme:n,mergedThemeOverrides:o}},render(){var t,r,n,o;return this.abstract?(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n):h(this.as||this.tag,{class:`${this.mergedClsPrefix||defaultClsPrefix}-config-provider`},(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t))}});const countdownProps={duration:{type:Number,default:0},active:{type:Boolean,default:!0},precision:{type:Number,default:0},render:Function,onFinish:Function};var NCountdown=defineComponent({name:"Countdown",props:countdownProps,setup(t){let r=null,n=0,o=!1;const s=ref(0);watchEffect(()=>{s.value=t.duration});let l=-1;function d(_){return t.duration-n+l-_}function g(_){const w=Math.floor(_/36e5),$=Math.floor(_%36e5/6e4),I=Math.floor(_%6e4/1e3),B=Math.floor(_%1e3);return{hours:w,minutes:$,seconds:I,milliseconds:B}}function y(_){const{hours:w,minutes:$,seconds:I,milliseconds:B}=_,{precision:R}=t;switch(R){case 0:return`${String(w).padStart(2,"0")}:${String($).padStart(2,"0")}:${String(I).padStart(2,"0")}`;default:return`${String(w).padStart(2,"0")}:${String($).padStart(2,"0")}:${String(I).padStart(2,"0")}.${String(Math.floor(B/(R===1?100:R===2?10:1))).padStart(R,"0")}`}}const b=()=>{var _;const{precision:w}=t,$=d(performance.now());if($<=0){s.value=0,C(),o||(o=!0,(_=t.onFinish)===null||_===void 0||_.call(t));return}let I;switch(w){case 3:case 2:I=$%34;break;case 1:I=$%100;break;default:I=$%1e3}s.value=$,r=window.setTimeout(()=>{b()},I)},C=()=>{r!==null&&(window.clearTimeout(r),r=null)};onMounted(()=>{watchEffect(()=>{if(t.active)l=performance.now(),b();else{const _=performance.now();l!==-1&&(n+=_-l),C()}})}),onBeforeUnmount(()=>{C()});function x(){s.value=t.duration,n=0,l=performance.now(),t.active&&o&&b(),o=!1}return Object.assign({reset:x},{distance:s,getTimeInfo:g,getDisplayValue:y})},render(){const{render:t,precision:r,distance:n,getTimeInfo:o,getDisplayValue:s}=this;let l;switch(r){case 0:l=o(n+999),l.milliseconds=0;break;case 1:l=o(n+99),l.milliseconds=Math.floor(l.milliseconds/100)*100;break;case 2:l=o(n+9),l.milliseconds=Math.floor(l.milliseconds/10)*10;break;case 3:l=o(n)}return t?t(l):s(l)}});const easeOut=t=>1-Math.pow(1-t,5);function tween(t){const{from:r,to:n,duration:o,onUpdate:s,onFinish:l}=t,d=()=>{const y=performance.now(),b=Math.min(y-g,o),C=r+(n-r)*easeOut(b/o);if(b===o){l();return}s(C),requestAnimationFrame(d)},g=performance.now();d()}const numberAnimationProps={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 NNumberAnimation=defineComponent({name:"NumberAnimation",props:numberAnimationProps,setup(t){const{localeRef:r}=useLocale("name"),{duration:n}=t,o=ref(t.from),s=computed(()=>{const{locale:S}=t;return S!==void 0?S:r.value});let l=!1;const d=S=>{o.value=S},g=()=>{var S;o.value=t.to,l=!1,(S=t.onFinish)===null||S===void 0||S.call(t)},y=(S=t.from,_=t.to)=>{l=!0,o.value=t.from,S!==_&&tween({from:S,to:_,duration:n,onUpdate:d,onFinish:g})},b=computed(()=>{var S;const w=round$5(o.value,t.precision).toFixed(t.precision).split("."),$=new Intl.NumberFormat(s.value),I=(S=$.formatToParts(.5).find(P=>P.type==="decimal"))===null||S===void 0?void 0:S.value,B=t.showSeparator?$.format(Number(w[0])):w[0],R=w[1];return{integer:B,decimal:R,decimalSeparator:I}});function C(){l||y()}return onMounted(()=>{watchEffect(()=>{t.active&&y()})}),Object.assign({formattedValue:b},{play:C})},render(){const{formattedValue:{integer:t,decimal:r,decimalSeparator:n}}=this;return[t,r?n:null,r]}});const popselect={name:"Popselect",common:commonDark,peers:{Popover:popoverDark$1,InternalSelectMenu:internalSelectMenuDark$1}};var popselectDark=popselect;function self$K(t){const{boxShadow2:r}=t;return{menuBoxShadow:r}}const popselectLight={name:"Popselect",common:commonLight,peers:{Popover:popoverLight$1,InternalSelectMenu:internalSelectMenuLight$1},self:self$K};var popselectLight$1=popselectLight;const popselectInjectionKey="n-popselect";var style$P=cB("popselect-menu",`
|
|
box-shadow: var(--n-menu-box-shadow);
|
|
`);const panelProps={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]},panelPropKeys=keysOf(panelProps);var NPopselectPanel=defineComponent({name:"PopselectPanel",props:panelProps,setup(t){const r=inject(popselectInjectionKey),{mergedClsPrefixRef:n,inlineThemeDisabled:o}=useConfig(t),s=useTheme("Popselect","-pop-select",style$P,popselectLight$1,r.props,n),l=computed(()=>createTreeMate(t.options,createTmOptions("value","children")));function d(S,_){const{onUpdateValue:w,"onUpdate:value":$,onChange:I}=t;w&&call(w,S,_),$&&call($,S,_),I&&call(I,S,_)}function g(S){b(S.key)}function y(S){happensIn(S,"action")||S.preventDefault()}function b(S){const{value:{getNode:_}}=l;if(t.multiple)if(Array.isArray(t.value)){const w=[],$=[];let I=!0;t.value.forEach(B=>{if(B===S){I=!1;return}const R=_(B);R&&(w.push(R.key),$.push(R.rawNode))}),I&&(w.push(S),$.push(_(S).rawNode)),d(w,$)}else{const w=_(S);w&&d([S],[w.rawNode])}else if(t.value===S&&t.cancelable)d(null,null);else{const w=_(S);w&&d(S,w.rawNode);const{"onUpdate:show":$,onUpdateShow:I}=r.props;$&&call($,!1),I&&call(I,!1),r.setShow(!1)}nextTick(()=>{r.syncPosition()})}watch(toRef(t,"options"),()=>{nextTick(()=>{r.syncPosition()})});const C=computed(()=>{const{self:{menuBoxShadow:S}}=s.value;return{"--n-menu-box-shadow":S}}),x=o?useThemeClass("select",void 0,C,r.props):void 0;return{mergedTheme:r.mergedThemeRef,mergedClsPrefix:n,treeMate:l,handleToggle:g,handleMenuMousedown:y,cssVars:o?void 0:C,themeClass:x==null?void 0:x.themeClass,onRender:x==null?void 0:x.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),h(NInternalSelectMenu,{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 r,n;return((n=(r=this.$slots).action)===null||n===void 0?void 0:n.call(r))||[]},empty:()=>{var r,n;return((n=(r=this.$slots).empty)===null||n===void 0?void 0:n.call(r))||[]}})}});const popselectProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.props),omit(popoverBaseProps,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},popoverBaseProps.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),panelProps);var NPopselect=defineComponent({name:"Popselect",props:popselectProps,inheritAttrs:!1,__popover__:!0,setup(t){const r=useTheme("Popselect","-popselect",void 0,popselectLight$1,t),n=ref(null);function o(){var d;(d=n.value)===null||d===void 0||d.syncPosition()}function s(d){var g;(g=n.value)===null||g===void 0||g.setShow(d)}return provide(popselectInjectionKey,{props:t,mergedThemeRef:r,syncPosition:o,setShow:s}),Object.assign(Object.assign({},{syncPosition:o,setShow:s}),{popoverInstRef:n,mergedTheme:r})},render(){const{mergedTheme:t}=this,r={theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(n,o,s,l,d)=>{const{$attrs:g}=this;return h(NPopselectPanel,Object.assign({},g,{class:[g.class,n],style:[g.style,s]},keep(this.$props,panelPropKeys),{ref:createRefSetter(o),onMouseenter:mergeEventHandlers([l,g.onMouseenter]),onMouseleave:mergeEventHandlers([d,g.onMouseleave])}),{action:()=>{var y,b;return(b=(y=this.$slots).action)===null||b===void 0?void 0:b.call(y)},empty:()=>{var y,b;return(b=(y=this.$slots).empty)===null||b===void 0?void 0:b.call(y)}})}};return h(NPopover,Object.assign({},omit(this.$props,panelPropKeys),r,{internalDeactivateImmediately:!0}),{trigger:()=>{var n,o;return(o=(n=this.$slots).default)===null||o===void 0?void 0:o.call(n)}})}});function self$J(t){const{boxShadow2:r}=t;return{menuBoxShadow:r}}const selectLight={name:"Select",common:commonLight,peers:{InternalSelection:internalSelectionLight$1,InternalSelectMenu:internalSelectMenuLight$1},self:self$J};var selectLight$1=selectLight;const selectDark={name:"Select",common:commonDark,peers:{InternalSelection:internalSelectionDark$1,InternalSelectMenu:internalSelectMenuDark$1},self:self$J};var selectDark$1=selectDark,style$O=c$1([cB("select",`
|
|
z-index: auto;
|
|
outline: none;
|
|
width: 100%;
|
|
position: relative;
|
|
`),cB("select-menu",`
|
|
margin: 4px 0;
|
|
box-shadow: var(--n-menu-box-shadow);
|
|
`,[fadeInScaleUpTransition({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]);const selectProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.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},showOnFocus:Boolean,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 NSelect=defineComponent({name:"Select",props:selectProps,setup(t){const{mergedClsPrefixRef:r,mergedBorderedRef:n,namespaceRef:o,inlineThemeDisabled:s}=useConfig(t),l=useTheme("Select","-select",style$O,selectLight$1,t,r),d=ref(t.defaultValue),g=toRef(t,"value"),y=useMergedState(g,d),b=ref(!1),C=ref(""),x=computed(()=>{const{valueField:_e,childrenField:xe}=t,Le=createTmOptions(_e,xe);return createTreeMate(W.value,Le)}),S=computed(()=>createValOptMap(G.value,t.valueField,t.childrenField)),_=ref(!1),w=useMergedState(toRef(t,"show"),_),$=ref(null),I=ref(null),B=ref(null),{localeRef:R}=useLocale("Select"),P=computed(()=>{var _e;return(_e=t.placeholder)!==null&&_e!==void 0?_e:R.value.placeholder}),M=useCompitable(t,["items","options"]),O=[],D=ref([]),N=ref([]),H=ref(new Map),Q=computed(()=>{const{fallbackOption:_e}=t;if(_e===void 0){const{labelField:xe,valueField:Le}=t;return Ve=>({[xe]:String(Ve),[Le]:Ve})}return _e===!1?!1:xe=>Object.assign(_e(xe),{value:xe})}),G=computed(()=>N.value.concat(D.value).concat(M.value)),K=computed(()=>{const{filter:_e}=t;if(_e)return _e;const{labelField:xe,valueField:Le}=t;return(Ve,ze)=>{if(!ze)return!1;const Re=ze[xe];if(typeof Re=="string")return patternMatched(Ve,Re);const Ne=ze[Le];return typeof Ne=="string"?patternMatched(Ve,Ne):typeof Ne=="number"?patternMatched(Ve,String(Ne)):!1}}),W=computed(()=>{if(t.remote)return M.value;{const{value:_e}=G,{value:xe}=C;return!xe.length||!t.filterable?_e:filterOptions(_e,K.value,xe,t.childrenField)}});function j(_e){const xe=t.remote,{value:Le}=H,{value:Ve}=S,{value:ze}=Q,Re=[];return _e.forEach(Ne=>{if(Ve.has(Ne))Re.push(Ve.get(Ne));else if(xe&&Le.has(Ne))Re.push(Le.get(Ne));else if(ze){const je=ze(Ne);je&&Re.push(je)}}),Re}const Y=computed(()=>{if(t.multiple){const{value:_e}=y;return Array.isArray(_e)?j(_e):[]}return null}),q=computed(()=>{const{value:_e}=y;return!t.multiple&&!Array.isArray(_e)?_e===null?null:j([_e])[0]||null:null}),X=useFormItem(t),{mergedSizeRef:re,mergedDisabledRef:te,mergedStatusRef:oe}=X;function ae(_e,xe){const{onChange:Le,"onUpdate:value":Ve,onUpdateValue:ze}=t,{nTriggerFormChange:Re,nTriggerFormInput:Ne}=X;Le&&call(Le,_e,xe),ze&&call(ze,_e,xe),Ve&&call(Ve,_e,xe),d.value=_e,Re(),Ne()}function se(_e){const{onBlur:xe}=t,{nTriggerFormBlur:Le}=X;xe&&call(xe,_e),Le()}function ue(){const{onClear:_e}=t;_e&&call(_e)}function Ae(_e){const{onFocus:xe,showOnFocus:Le}=t,{nTriggerFormFocus:Ve}=X;xe&&call(xe,_e),Ve(),Le&&ye()}function pe(_e){const{onSearch:xe}=t;xe&&call(xe,_e)}function he(_e){const{onScroll:xe}=t;xe&&call(xe,_e)}function Ce(){var _e;const{remote:xe,multiple:Le}=t;if(xe){const{value:Ve}=H;if(Le){const{valueField:ze}=t;(_e=Y.value)===null||_e===void 0||_e.forEach(Re=>{Ve.set(Re[ze],Re)})}else{const ze=q.value;ze&&Ve.set(ze[t.valueField],ze)}}}function ve(_e){const{onUpdateShow:xe,"onUpdate:show":Le}=t;xe&&call(xe,_e),Le&&call(Le,_e),_.value=_e}function ye(){te.value||(ve(!0),_.value=!0,t.filterable&&st())}function Be(){ve(!1)}function Se(){C.value="",N.value=O}const Ee=ref(!1);function ie(){t.filterable&&(Ee.value=!0)}function ee(){t.filterable&&(Ee.value=!1,w.value||Se())}function J(){te.value||(w.value?t.filterable?st():Be():ye())}function ce(_e){var xe,Le;!((Le=(xe=B.value)===null||xe===void 0?void 0:xe.selfRef)===null||Le===void 0)&&Le.contains(_e.relatedTarget)||(b.value=!1,se(_e),Be())}function fe(_e){Ae(_e),b.value=!0}function ne(_e){b.value=!0}function le(_e){var xe;!((xe=$.value)===null||xe===void 0)&&xe.$el.contains(_e.relatedTarget)||(b.value=!1,se(_e),Be())}function me(){var _e;(_e=$.value)===null||_e===void 0||_e.focus(),Be()}function Te(_e){var xe;w.value&&(!((xe=$.value)===null||xe===void 0)&&xe.$el.contains(getPreciseEventTarget(_e))||Be())}function ge(_e){if(!Array.isArray(_e))return[];if(Q.value)return Array.from(_e);{const{remote:xe}=t,{value:Le}=S;if(xe){const{value:Ve}=H;return _e.filter(ze=>Le.has(ze)||Ve.has(ze))}else return _e.filter(Ve=>Le.has(Ve))}}function $e(_e){de(_e.rawNode)}function de(_e){if(te.value)return;const{tag:xe,remote:Le,clearFilterAfterSelect:Ve,valueField:ze}=t;if(xe&&!Le){const{value:Re}=N,Ne=Re[0]||null;if(Ne){const je=D.value;je.length?je.push(Ne):D.value=[Ne],N.value=O}}if(Le&&H.value.set(_e[ze],_e),t.multiple){const Re=ge(y.value),Ne=Re.findIndex(je=>je===_e[ze]);if(~Ne){if(Re.splice(Ne,1),xe&&!Le){const je=be(_e[ze]);~je&&(D.value.splice(je,1),Ve&&(C.value=""))}}else Re.push(_e[ze]),Ve&&(C.value="");ae(Re,j(Re))}else{if(xe&&!Le){const Re=be(_e[ze]);~Re?D.value=[D.value[Re]]:D.value=O}tt(),Be(),ae(_e[ze],_e)}}function be(_e){return D.value.findIndex(Le=>Le[t.valueField]===_e)}function we(_e){w.value||ye();const{value:xe}=_e.target;C.value=xe;const{tag:Le,remote:Ve}=t;if(pe(xe),Le&&!Ve){if(!xe){N.value=O;return}const{onCreate:ze}=t,Re=ze?ze(xe):{[t.labelField]:xe,[t.valueField]:xe},{valueField:Ne}=t;M.value.some(je=>je[Ne]===Re[Ne])||D.value.some(je=>je[Ne]===Re[Ne])?N.value=O:N.value=[Re]}}function Me(_e){_e.stopPropagation();const{multiple:xe}=t;!xe&&t.filterable&&Be(),ue(),xe?ae([],[]):ae(null,null)}function Ue(_e){!happensIn(_e,"action")&&!happensIn(_e,"empty")&&_e.preventDefault()}function Ge(_e){he(_e)}function Ze(_e){var xe,Le,Ve,ze,Re;switch(_e.key){case" ":if(t.filterable)break;_e.preventDefault();case"Enter":if(!(!((xe=$.value)===null||xe===void 0)&&xe.isComposing)){if(w.value){const Ne=(Le=B.value)===null||Le===void 0?void 0:Le.getPendingTmNode();Ne?$e(Ne):t.filterable||(Be(),tt())}else if(ye(),t.tag&&Ee.value){const Ne=N.value[0];if(Ne){const je=Ne[t.valueField],{value:nt}=y;t.multiple&&Array.isArray(nt)&&nt.some(De=>De===je)||de(Ne)}}}_e.preventDefault();break;case"ArrowUp":if(_e.preventDefault(),t.loading)return;w.value&&((Ve=B.value)===null||Ve===void 0||Ve.prev());break;case"ArrowDown":if(_e.preventDefault(),t.loading)return;w.value?(ze=B.value)===null||ze===void 0||ze.next():ye();break;case"Escape":w.value&&(markEventEffectPerformed(_e),Be()),(Re=$.value)===null||Re===void 0||Re.focus();break}}function tt(){var _e;(_e=$.value)===null||_e===void 0||_e.focus()}function st(){var _e;(_e=$.value)===null||_e===void 0||_e.focusInput()}function We(){var _e;!w.value||(_e=I.value)===null||_e===void 0||_e.syncPosition()}Ce(),watch(toRef(t,"options"),Ce);const Je={focus:()=>{var _e;(_e=$.value)===null||_e===void 0||_e.focus()},blur:()=>{var _e;(_e=$.value)===null||_e===void 0||_e.blur()}},Ye=computed(()=>{const{self:{menuBoxShadow:_e}}=l.value;return{"--n-menu-box-shadow":_e}}),Xe=s?useThemeClass("select",void 0,Ye,t):void 0;return Object.assign(Object.assign({},Je),{mergedStatus:oe,mergedClsPrefix:r,mergedBordered:n,namespace:o,treeMate:x,isMounted:isMounted(),triggerRef:$,menuRef:B,pattern:C,uncontrolledShow:_,mergedShow:w,adjustedTo:useAdjustedTo(t),uncontrolledValue:d,mergedValue:y,followerRef:I,localizedPlaceholder:P,selectedOption:q,selectedOptions:Y,mergedSize:re,mergedDisabled:te,focused:b,activeWithoutMenuOpen:Ee,inlineThemeDisabled:s,onTriggerInputFocus:ie,onTriggerInputBlur:ee,handleTriggerOrMenuResize:We,handleMenuFocus:ne,handleMenuBlur:le,handleMenuTabOut:me,handleTriggerClick:J,handleToggle:$e,handleDeleteOption:de,handlePatternInput:we,handleClear:Me,handleTriggerBlur:ce,handleTriggerFocus:fe,handleKeydown:Ze,handleMenuAfterLeave:Se,handleMenuClickOutside:Te,handleMenuScroll:Ge,handleMenuKeydown:Ze,handleMenuMousedown:Ue,mergedTheme:l,cssVars:s?void 0:Ye,themeClass:Xe==null?void 0:Xe.themeClass,onRender:Xe==null?void 0:Xe.onRender})},render(){return h("div",{class:`${this.mergedClsPrefix}-select`},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h(NInternalSelection,{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 t,r;return[(r=(t=this.$slots).arrow)===null||r===void 0?void 0:r.call(t)]}})}),h(VFollower,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var t,r,n;return this.mergedShow||this.displayDirective==="show"?((t=this.onRender)===null||t===void 0||t.call(this),withDirectives(h(NInternalSelectMenu,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(r=this.menuProps)===null||r===void 0?void 0:r.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:[(n=this.menuProps)===null||n===void 0?void 0:n.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 o,s;return[(s=(o=this.$slots).empty)===null||s===void 0?void 0:s.call(o)]},action:()=>{var o,s;return[(s=(o=this.$slots).action)===null||s===void 0?void 0:s.call(o)]}}),this.displayDirective==="show"?[[vShow,this.mergedShow],[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[clickoutside$1,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),commonVariables$b={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 self$I=t=>{const{textColor2:r,primaryColor:n,primaryColorHover:o,primaryColorPressed:s,inputColorDisabled:l,textColorDisabled:d,borderColor:g,borderRadius:y,fontSizeTiny:b,fontSizeSmall:C,fontSizeMedium:x,heightTiny:S,heightSmall:_,heightMedium:w}=t;return Object.assign(Object.assign({},commonVariables$b),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${g}`,buttonBorderHover:`1px solid ${g}`,buttonBorderPressed:`1px solid ${g}`,buttonIconColor:r,buttonIconColorHover:r,buttonIconColorPressed:r,itemTextColor:r,itemTextColorHover:o,itemTextColorPressed:s,itemTextColorActive:n,itemTextColorDisabled:d,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:l,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${g}`,itemBorderRadius:y,itemSizeSmall:S,itemSizeMedium:_,itemSizeLarge:w,itemFontSizeSmall:b,itemFontSizeMedium:C,itemFontSizeLarge:x,jumperFontSizeSmall:b,jumperFontSizeMedium:C,jumperFontSizeLarge:x,jumperTextColor:r,jumperTextColorDisabled:d})},paginationLight={name:"Pagination",common:commonLight,peers:{Select:selectLight$1,Input:inputLight$1,Popselect:popselectLight$1},self:self$I};var paginationLight$1=paginationLight;const paginationDark={name:"Pagination",common:commonDark,peers:{Select:selectDark$1,Input:inputDark$1,Popselect:popselectDark},self(t){const{primaryColor:r,opacity3:n}=t,o=changeColor(r,{alpha:Number(n)}),s=self$I(t);return s.itemBorderActive=`1px solid ${o}`,s.itemBorderDisabled="1px solid #0000",s}};var paginationDark$1=paginationDark;function createPageItemsInfo(t,r,n){let o=!1,s=!1,l=1,d=r;if(r===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:d,fastBackwardTo:l,items:[{type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(r===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:d,fastBackwardTo:l,items:[{type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:t===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const g=1,y=r;let b=t,C=t;const x=(n-5)/2;C+=Math.ceil(x),C=Math.min(Math.max(C,g+n-3),y-2),b-=Math.floor(x),b=Math.max(Math.min(b,y-n+3),g+2);let S=!1,_=!1;b>g+2&&(S=!0),C<y-2&&(_=!0);const w=[];w.push({type:"page",label:1,active:t===1,mayBeFastBackward:!1,mayBeFastForward:!1}),S?(o=!0,l=b-1,w.push({type:"fast-backward",active:!1,label:void 0,options:createRange$1(g+1,b-1)})):y>=g+1&&w.push({type:"page",label:g+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:t===g+1});for(let $=b;$<=C;++$)w.push({type:"page",label:$,mayBeFastBackward:!1,mayBeFastForward:!1,active:t===$});return _?(s=!0,d=C+1,w.push({type:"fast-forward",active:!1,label:void 0,options:createRange$1(C+1,y-1)})):C===y-2&&w[w.length-1].label!==y-1&&w.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:y-1,active:t===y-1}),w[w.length-1].label!==y&&w.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:y,active:t===y}),{hasFastBackward:o,hasFastForward:s,fastBackwardTo:l,fastForwardTo:d,items:w}}function createRange$1(t,r){const n=[];for(let o=t;o<=r;++o)n.push({label:`${o}`,value:o});return n}const hoverStyleProps=`
|
|
background: var(--n-item-color-hover);
|
|
color: var(--n-item-text-color-hover);
|
|
border: var(--n-item-border-hover);
|
|
`,hoverStyleChildren$1=[cM("button",`
|
|
background: var(--n-button-color-hover);
|
|
border: var(--n-button-border-hover);
|
|
color: var(--n-button-icon-color-hover);
|
|
`)];var style$N=cB("pagination",`
|
|
display: flex;
|
|
vertical-align: middle;
|
|
font-size: var(--n-item-font-size);
|
|
flex-wrap: nowrap;
|
|
`,[cB("pagination-prefix",`
|
|
display: flex;
|
|
align-items: center;
|
|
margin: var(--n-prefix-margin);
|
|
`),cB("pagination-suffix",`
|
|
display: flex;
|
|
align-items: center;
|
|
margin: var(--n-suffix-margin);
|
|
`),c$1("> *:not(:first-child)",`
|
|
margin: var(--n-item-margin);
|
|
`),cB("select",`
|
|
width: var(--n-select-width);
|
|
`),c$1("&.transition-disabled",[cB("pagination-item","transition: none!important;")]),cB("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);
|
|
`,[cB("input",`
|
|
margin: var(--n-input-margin);
|
|
width: var(--n-input-width);
|
|
`)]),cB("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);
|
|
`,[cM("button",`
|
|
background: var(--n-button-color);
|
|
color: var(--n-button-icon-color);
|
|
border: var(--n-button-border);
|
|
padding: 0;
|
|
`,[cB("base-icon",`
|
|
font-size: var(--n-button-icon-size);
|
|
`)]),cNotM("disabled",[cM("hover",hoverStyleProps,hoverStyleChildren$1),c$1("&:hover",hoverStyleProps,hoverStyleChildren$1),c$1("&:active",`
|
|
background: var(--n-item-color-pressed);
|
|
color: var(--n-item-text-color-pressed);
|
|
border: var(--n-item-border-pressed);
|
|
`,[cM("button",`
|
|
background: var(--n-button-color-pressed);
|
|
border: var(--n-button-border-pressed);
|
|
color: var(--n-button-icon-color-pressed);
|
|
`)]),cM("active",`
|
|
background: var(--n-item-color-active);
|
|
color: var(--n-item-text-color-active);
|
|
border: var(--n-item-border-active);
|
|
`,[c$1("&:hover",`
|
|
background: var(--n-item-color-active-hover);
|
|
`)])]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
color: var(--n-item-text-color-disabled);
|
|
`,[cM("active, button",`
|
|
background-color: var(--n-item-color-disabled);
|
|
border: var(--n-item-border-disabled);
|
|
`)])]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
`,[cB("pagination-quick-jumper",`
|
|
color: var(--n-jumper-text-color-disabled);
|
|
`)]),cM("simple",`
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
`,[cB("pagination-quick-jumper",[cB("input",`
|
|
margin: 0;
|
|
`)])])]);const paginationProps=Object.assign(Object.assign({},useTheme.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},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:useAdjustedTo.propTo,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]});var NPagination=defineComponent({name:"Pagination",props:paginationProps,setup(t){const{mergedComponentPropsRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:s}=useConfig(t),l=useTheme("Pagination","-pagination",style$N,paginationLight$1,t,n),{localeRef:d}=useLocale("Pagination"),g=ref(null),y=ref(t.defaultPage),C=ref((()=>{const{defaultPageSize:Se}=t;if(Se!==void 0)return Se;const Ee=t.pageSizes[0];return typeof Ee=="number"?Ee:Ee.value||10})()),x=useMergedState(toRef(t,"page"),y),S=useMergedState(toRef(t,"pageSize"),C),_=computed(()=>{const{itemCount:Se}=t;if(Se!==void 0)return Math.max(1,Math.ceil(Se/S.value));const{pageCount:Ee}=t;return Ee!==void 0?Math.max(Ee,1):1}),w=ref("");watchEffect(()=>{t.simple,w.value=String(x.value)});const $=ref(!1),I=ref(!1),B=ref(!1),R=ref(!1),P=()=>{t.disabled||($.value=!0,X())},M=()=>{t.disabled||($.value=!1,X())},O=()=>{I.value=!0,X()},D=()=>{I.value=!1,X()},N=Se=>{re(Se)},H=computed(()=>createPageItemsInfo(x.value,_.value,t.pageSlot));watchEffect(()=>{H.value.hasFastBackward?H.value.hasFastForward||($.value=!1,B.value=!1):(I.value=!1,R.value=!1)});const Q=computed(()=>{const Se=d.value.selectionSuffix;return t.pageSizes.map(Ee=>typeof Ee=="number"?{label:`${Ee} / ${Se}`,value:Ee}:Ee)}),G=computed(()=>{var Se,Ee;return((Ee=(Se=r==null?void 0:r.value)===null||Se===void 0?void 0:Se.Pagination)===null||Ee===void 0?void 0:Ee.inputSize)||smallerSize(t.size)}),K=computed(()=>{var Se,Ee;return((Ee=(Se=r==null?void 0:r.value)===null||Se===void 0?void 0:Se.Pagination)===null||Ee===void 0?void 0:Ee.selectSize)||smallerSize(t.size)}),W=computed(()=>(x.value-1)*S.value),j=computed(()=>{const Se=x.value*S.value-1,{itemCount:Ee}=t;return Ee!==void 0&&Se>Ee-1?Ee-1:Se}),Y=computed(()=>{const{itemCount:Se}=t;return Se!==void 0?Se:(t.pageCount||1)*S.value}),q=useRtl("Pagination",s,n),X=()=>{nextTick(()=>{var Se;const{value:Ee}=g;!Ee||(Ee.classList.add("transition-disabled"),(Se=g.value)===null||Se===void 0||Se.offsetWidth,Ee.classList.remove("transition-disabled"))})};function re(Se){if(Se===x.value)return;const{"onUpdate:page":Ee,onUpdatePage:ie,onChange:ee,simple:J}=t;Ee&&call(Ee,Se),ie&&call(ie,Se),ee&&call(ee,Se),y.value=Se,J&&(w.value=String(Se))}function te(Se){if(Se===S.value)return;const{"onUpdate:pageSize":Ee,onUpdatePageSize:ie,onPageSizeChange:ee}=t;Ee&&call(Ee,Se),ie&&call(ie,Se),ee&&call(ee,Se),C.value=Se,_.value<x.value&&re(_.value)}function oe(){if(t.disabled)return;const Se=Math.min(x.value+1,_.value);re(Se)}function ae(){if(t.disabled)return;const Se=Math.max(x.value-1,1);re(Se)}function se(){if(t.disabled)return;const Se=Math.min(H.value.fastForwardTo,_.value);re(Se)}function ue(){if(t.disabled)return;const Se=Math.max(H.value.fastBackwardTo,1);re(Se)}function Ae(Se){te(Se)}function pe(){const Se=parseInt(w.value);Number.isNaN(Se)||(re(Math.max(1,Math.min(Se,_.value))),t.simple||(w.value=""))}function he(){pe()}function Ce(Se){if(!t.disabled)switch(Se.type){case"page":re(Se.label);break;case"fast-backward":ue();break;case"fast-forward":se();break}}function ve(Se){w.value=Se.replace(/\D+/g,"")}watchEffect(()=>{x.value,S.value,X()});const ye=computed(()=>{const{size:Se}=t,{self:{buttonBorder:Ee,buttonBorderHover:ie,buttonBorderPressed:ee,buttonIconColor:J,buttonIconColorHover:ce,buttonIconColorPressed:fe,itemTextColor:ne,itemTextColorHover:le,itemTextColorPressed:me,itemTextColorActive:Te,itemTextColorDisabled:ge,itemColor:$e,itemColorHover:de,itemColorPressed:be,itemColorActive:we,itemColorActiveHover:Me,itemColorDisabled:Ue,itemBorder:Ge,itemBorderHover:Ze,itemBorderPressed:tt,itemBorderActive:st,itemBorderDisabled:We,itemBorderRadius:Je,jumperTextColor:Ye,jumperTextColorDisabled:Xe,buttonColor:_e,buttonColorHover:xe,buttonColorPressed:Le,[createKey("itemPadding",Se)]:Ve,[createKey("itemMargin",Se)]:ze,[createKey("inputWidth",Se)]:Re,[createKey("selectWidth",Se)]:Ne,[createKey("inputMargin",Se)]:je,[createKey("selectMargin",Se)]:nt,[createKey("jumperFontSize",Se)]:De,[createKey("prefixMargin",Se)]:Qe,[createKey("suffixMargin",Se)]:Pe,[createKey("itemSize",Se)]:Ke,[createKey("buttonIconSize",Se)]:ot,[createKey("itemFontSize",Se)]:ft,[`${createKey("itemMargin",Se)}Rtl`]:it,[`${createKey("inputMargin",Se)}Rtl`]:Ie},common:{cubicBezierEaseInOut:Fe}}=l.value;return{"--n-prefix-margin":Qe,"--n-suffix-margin":Pe,"--n-item-font-size":ft,"--n-select-width":Ne,"--n-select-margin":nt,"--n-input-width":Re,"--n-input-margin":je,"--n-input-margin-rtl":Ie,"--n-item-size":Ke,"--n-item-text-color":ne,"--n-item-text-color-disabled":ge,"--n-item-text-color-hover":le,"--n-item-text-color-active":Te,"--n-item-text-color-pressed":me,"--n-item-color":$e,"--n-item-color-hover":de,"--n-item-color-disabled":Ue,"--n-item-color-active":we,"--n-item-color-active-hover":Me,"--n-item-color-pressed":be,"--n-item-border":Ge,"--n-item-border-hover":Ze,"--n-item-border-disabled":We,"--n-item-border-active":st,"--n-item-border-pressed":tt,"--n-item-padding":Ve,"--n-item-border-radius":Je,"--n-bezier":Fe,"--n-jumper-font-size":De,"--n-jumper-text-color":Ye,"--n-jumper-text-color-disabled":Xe,"--n-item-margin":ze,"--n-item-margin-rtl":it,"--n-button-icon-size":ot,"--n-button-icon-color":J,"--n-button-icon-color-hover":ce,"--n-button-icon-color-pressed":fe,"--n-button-color-hover":xe,"--n-button-color":_e,"--n-button-color-pressed":Le,"--n-button-border":Ee,"--n-button-border-hover":ie,"--n-button-border-pressed":ee}}),Be=o?useThemeClass("pagination",computed(()=>{let Se="";const{size:Ee}=t;return Se+=Ee[0],Se}),ye,t):void 0;return{rtlEnabled:q,mergedClsPrefix:n,locale:d,selfRef:g,mergedPage:x,pageItems:computed(()=>H.value.items),mergedItemCount:Y,jumperValue:w,pageSizeOptions:Q,mergedPageSize:S,inputSize:G,selectSize:K,mergedTheme:l,mergedPageCount:_,startIndex:W,endIndex:j,showFastForwardMenu:B,showFastBackwardMenu:R,fastForwardActive:$,fastBackwardActive:I,handleMenuSelect:N,handleFastForwardMouseenter:P,handleFastForwardMouseleave:M,handleFastBackwardMouseenter:O,handleFastBackwardMouseleave:D,handleJumperInput:ve,handleBackwardClick:ae,handleForwardClick:oe,handlePageItemClick:Ce,handleSizePickerChange:Ae,handleQuickJumperChange:he,cssVars:o?void 0:ye,themeClass:Be==null?void 0:Be.themeClass,onRender:Be==null?void 0:Be.onRender}},render(){const{$slots:t,mergedClsPrefix:r,disabled:n,cssVars:o,mergedPage:s,mergedPageCount:l,pageItems:d,showSizePicker:g,showQuickJumper:y,mergedTheme:b,locale:C,inputSize:x,selectSize:S,mergedPageSize:_,pageSizeOptions:w,jumperValue:$,simple:I,prev:B,next:R,prefix:P,suffix:M,label:O,goto:D,handleJumperInput:N,handleSizePickerChange:H,handleBackwardClick:Q,handlePageItemClick:G,handleForwardClick:K,handleQuickJumperChange:W,onRender:j}=this;j==null||j();const Y=t.prefix||P,q=t.suffix||M,X=B||t.prev,re=R||t.next,te=O||t.label;return h("div",{ref:"selfRef",class:[`${r}-pagination`,this.themeClass,this.rtlEnabled&&`${r}-pagination--rtl`,n&&`${r}-pagination--disabled`,I&&`${r}-pagination--simple`],style:o},Y?h("div",{class:`${r}-pagination-prefix`},Y({page:s,pageSize:_,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(oe=>{switch(oe){case"pages":return h(Fragment,null,h("div",{class:[`${r}-pagination-item`,!X&&`${r}-pagination-item--button`,(s<=1||s>l||n)&&`${r}-pagination-item--disabled`],onClick:Q},X?X({page:s,pageSize:_,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):h(NBaseIcon,{clsPrefix:r},{default:()=>this.rtlEnabled?h(ForwardIcon,null):h(BackwardIcon,null)})),I?h(Fragment,null,h("div",{class:`${r}-pagination-quick-jumper`},h(NInput,{value:$,onUpdateValue:N,size:x,placeholder:"",disabled:n,theme:b.peers.Input,themeOverrides:b.peerOverrides.Input,onChange:W})),"\xA0/ ",l):d.map((ae,se)=>{let ue,Ae,pe;const{type:he}=ae;switch(he){case"page":const ve=ae.label;te?ue=te({type:"page",node:ve,active:ae.active}):ue=ve;break;case"fast-forward":const ye=this.fastForwardActive?h(NBaseIcon,{clsPrefix:r},{default:()=>this.rtlEnabled?h(FastBackwardIcon,null):h(FastForwardIcon,null)}):h(NBaseIcon,{clsPrefix:r},{default:()=>h(MoreIcon,null)});te?ue=te({type:"fast-forward",node:ye,active:this.fastForwardActive||this.showFastForwardMenu}):ue=ye,Ae=this.handleFastForwardMouseenter,pe=this.handleFastForwardMouseleave;break;case"fast-backward":const Be=this.fastBackwardActive?h(NBaseIcon,{clsPrefix:r},{default:()=>this.rtlEnabled?h(FastForwardIcon,null):h(FastBackwardIcon,null)}):h(NBaseIcon,{clsPrefix:r},{default:()=>h(MoreIcon,null)});te?ue=te({type:"fast-backward",node:Be,active:this.fastBackwardActive||this.showFastBackwardMenu}):ue=Be,Ae=this.handleFastBackwardMouseenter,pe=this.handleFastBackwardMouseleave;break}const Ce=h("div",{key:se,class:[`${r}-pagination-item`,ae.active&&`${r}-pagination-item--active`,he!=="page"&&(he==="fast-backward"&&this.showFastBackwardMenu||he==="fast-forward"&&this.showFastForwardMenu)&&`${r}-pagination-item--hover`,n&&`${r}-pagination-item--disabled`,he==="page"&&`${r}-pagination-item--clickable`],onClick:()=>G(ae),onMouseenter:Ae,onMouseleave:pe},ue);if(he==="page"&&!ae.mayBeFastBackward&&!ae.mayBeFastForward)return Ce;{const ve=ae.type==="page"?ae.mayBeFastBackward?"fast-backward":"fast-forward":ae.type;return h(NPopselect,{to:this.to,key:ve,disabled:n,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:b.peers.Popselect,themeOverrides:b.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:he==="page"?!1:he==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:ye=>{he!=="page"&&(ye?he==="fast-backward"?this.showFastBackwardMenu=ye:this.showFastForwardMenu=ye:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:ae.type!=="page"?ae.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>Ce})}}),h("div",{class:[`${r}-pagination-item`,!re&&`${r}-pagination-item--button`,{[`${r}-pagination-item--disabled`]:s<1||s>=l||n}],onClick:K},re?re({page:s,pageSize:_,pageCount:l,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):h(NBaseIcon,{clsPrefix:r},{default:()=>this.rtlEnabled?h(BackwardIcon,null):h(ForwardIcon,null)})));case"size-picker":return!I&&g?h(NSelect,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:S,options:w,value:_,disabled:n,theme:b.peers.Select,themeOverrides:b.peerOverrides.Select,onUpdateValue:H})):null;case"quick-jumper":return!I&&y?h("div",{class:`${r}-pagination-quick-jumper`},D?D():resolveSlot(this.$slots.goto,()=>[C.goto]),h(NInput,{value:$,onUpdateValue:N,size:x,placeholder:"",disabled:n,theme:b.peers.Input,themeOverrides:b.peerOverrides.Input,onChange:W})):null;default:return null}}),q?h("div",{class:`${r}-pagination-suffix`},q({page:s,pageSize:_,pageCount:l,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),commonVars$8={padding:"8px 14px"};const tooltipDark={name:"Tooltip",common:commonDark,peers:{Popover:popoverDark$1},self(t){const{borderRadius:r,boxShadow2:n,popoverColor:o,textColor2:s}=t;return Object.assign(Object.assign({},commonVars$8),{borderRadius:r,boxShadow:n,color:o,textColor:s})}};var tooltipDark$1=tooltipDark;const self$H=t=>{const{borderRadius:r,boxShadow2:n,baseColor:o}=t;return Object.assign(Object.assign({},commonVars$8),{borderRadius:r,boxShadow:n,color:composite(o,"rgba(0, 0, 0, .85)"),textColor:o})},tooltipLight={name:"Tooltip",common:commonLight,peers:{Popover:popoverLight$1},self:self$H};var tooltipLight$1=tooltipLight;const ellipsisDark={name:"Ellipsis",common:commonDark,peers:{Tooltip:tooltipDark$1}};var ellipsisDark$1=ellipsisDark;const ellipsisLight={name:"Ellipsis",common:commonLight,peers:{Tooltip:tooltipLight$1}};var ellipsisLight$1=ellipsisLight,commonVariables$a={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};const radioDark={name:"Radio",common:commonDark,self(t){const{borderColor:r,primaryColor:n,baseColor:o,textColorDisabled:s,inputColorDisabled:l,textColor2:d,opacityDisabled:g,borderRadius:y,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:x,heightSmall:S,heightMedium:_,heightLarge:w,lineHeight:$}=t;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:$,buttonHeightSmall:S,buttonHeightMedium:_,buttonHeightLarge:w,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:x,boxShadow:`inset 0 0 0 1px ${r}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${changeColor(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${r}`,color:"#0000",colorDisabled:l,colorActive:"#0000",textColor:d,textColorDisabled:s,dotColorActive:n,dotColorDisabled:r,buttonBorderColor:r,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:"#0000",buttonColorActive:n,buttonTextColor:d,buttonTextColorActive:o,buttonTextColorHover:n,opacityDisabled:g,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${changeColor(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:y})}};var radioDark$1=radioDark;const self$G=t=>{const{borderColor:r,primaryColor:n,baseColor:o,textColorDisabled:s,inputColorDisabled:l,textColor2:d,opacityDisabled:g,borderRadius:y,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:x,heightSmall:S,heightMedium:_,heightLarge:w,lineHeight:$}=t;return Object.assign(Object.assign({},commonVariables$a),{labelLineHeight:$,buttonHeightSmall:S,buttonHeightMedium:_,buttonHeightLarge:w,fontSizeSmall:b,fontSizeMedium:C,fontSizeLarge:x,boxShadow:`inset 0 0 0 1px ${r}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${changeColor(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${r}`,color:o,colorDisabled:l,colorActive:"#0000",textColor:d,textColorDisabled:s,dotColorActive:n,dotColorDisabled:r,buttonBorderColor:r,buttonBorderColorActive:n,buttonBorderColorHover:r,buttonColor:o,buttonColorActive:o,buttonTextColor:d,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:g,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${changeColor(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:y})},radioLight={name:"Radio",common:commonLight,self:self$G};var radioLight$1=radioLight,commonVariables$9={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 self$F=t=>{const{primaryColor:r,textColor2:n,dividerColor:o,hoverColor:s,popoverColor:l,invertedColor:d,borderRadius:g,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:C,fontSizeHuge:x,heightSmall:S,heightMedium:_,heightLarge:w,heightHuge:$,textColor3:I,opacityDisabled:B}=t;return Object.assign(Object.assign({},commonVariables$9),{optionHeightSmall:S,optionHeightMedium:_,optionHeightLarge:w,optionHeightHuge:$,borderRadius:g,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:C,fontSizeHuge:x,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:r,optionTextColorChildActive:r,color:l,dividerColor:o,suffixColor:n,prefixColor:n,optionColorHover:s,optionColorActive:changeColor(r,{alpha:.1}),groupHeaderTextColor:I,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:d,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:r,optionColorActiveInverted:r,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:B})},dropdownLight={name:"Dropdown",common:commonLight,peers:{Popover:popoverLight$1},self:self$F};var dropdownLight$1=dropdownLight;const dropdownDark={name:"Dropdown",common:commonDark,peers:{Popover:popoverDark$1},self(t){const{primaryColorSuppl:r,primaryColor:n,popoverColor:o}=t,s=self$F(t);return s.colorInverted=o,s.optionColorActive=changeColor(n,{alpha:.15}),s.optionColorActiveInverted=r,s.optionColorHoverInverted=r,s}};var dropdownDark$1=dropdownDark,commonVariables$8={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 self$E=t=>{const{cardColor:r,modalColor:n,popoverColor:o,textColor2:s,textColor1:l,tableHeaderColor:d,tableColorHover:g,iconColor:y,primaryColor:b,fontWeightStrong:C,borderRadius:x,lineHeight:S,fontSizeSmall:_,fontSizeMedium:w,fontSizeLarge:$,dividerColor:I,heightSmall:B,opacityDisabled:R,tableColorStriped:P}=t;return Object.assign(Object.assign({},commonVariables$8),{actionDividerColor:I,lineHeight:S,borderRadius:x,fontSizeSmall:_,fontSizeMedium:w,fontSizeLarge:$,borderColor:composite(r,I),tdColorHover:composite(r,g),tdColorStriped:composite(r,P),thColor:composite(r,d),thColorHover:composite(composite(r,d),g),tdColor:r,tdTextColor:s,thTextColor:l,thFontWeight:C,thButtonColorHover:g,thIconColor:y,thIconColorActive:b,borderColorModal:composite(n,I),tdColorHoverModal:composite(n,g),tdColorStripedModal:composite(n,P),thColorModal:composite(n,d),thColorHoverModal:composite(composite(n,d),g),tdColorModal:n,borderColorPopover:composite(o,I),tdColorHoverPopover:composite(o,g),tdColorStripedPopover:composite(o,P),thColorPopover:composite(o,d),thColorHoverPopover:composite(composite(o,d),g),tdColorPopover:o,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:b,loadingSize:B,opacityLoading:R})},dataTableLight={name:"DataTable",common:commonLight,peers:{Button:buttonLight$1,Checkbox:checkboxLight$1,Radio:radioLight$1,Pagination:paginationLight$1,Scrollbar:scrollbarLight$1,Empty:emptyLight$1,Popover:popoverLight$1,Ellipsis:ellipsisLight$1,Dropdown:dropdownLight$1},self:self$E};var dataTableLight$1=dataTableLight;const dataTableDark={name:"DataTable",common:commonDark,peers:{Button:buttonDark$1,Checkbox:checkboxDark$1,Radio:radioDark$1,Pagination:paginationDark$1,Scrollbar:scrollbarDark$1,Empty:emptyDark$1,Popover:popoverDark$1,Ellipsis:ellipsisDark$1,Dropdown:dropdownDark$1},self(t){const r=self$E(t);return r.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",r.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",r}};var dataTableDark$1=dataTableDark;const tooltipProps=Object.assign(Object.assign({},popoverBaseProps),useTheme.props);var NTooltip=defineComponent({name:"Tooltip",props:tooltipProps,__popover__:!0,setup(t){const r=useTheme("Tooltip","-tooltip",void 0,tooltipLight$1,t),n=ref(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(s){n.value.setShow(s)}}),{popoverRef:n,mergedTheme:r,popoverThemeOverrides:computed(()=>r.value.self)})},render(){const{mergedTheme:t,internalExtraClass:r}=this;return h(NPopover,Object.assign(Object.assign({},this.$props),{theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:r.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),style$M=cB("ellipsis",{overflow:"hidden"},[cNotM("line-clamp",`
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
max-width: 100%;
|
|
`),cM("line-clamp",`
|
|
display: -webkit-inline-box;
|
|
-webkit-box-orient: vertical;
|
|
`),cM("cursor-pointer",`
|
|
cursor: pointer;
|
|
`)]);function createLineClampClass(t){return`${t}-ellipsis--line-clamp`}function createCursorClass(t,r){return`${t}-ellipsis--cursor-${r}`}const ellipsisProps=Object.assign(Object.assign({},useTheme.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}});var NEllipsis=defineComponent({name:"Ellipsis",inheritAttrs:!1,props:ellipsisProps,setup(t,{slots:r,attrs:n}){const{mergedClsPrefixRef:o}=useConfig(t),s=useTheme("Ellipsis","-ellipsis",style$M,ellipsisLight$1,t,o),l=ref(null),d=ref(null),g=ref(null),y=ref(!1),b=computed(()=>{const{lineClamp:I}=t,{value:B}=y;return I!==void 0?{textOverflow:"","-webkit-line-clamp":B?"":I}:{textOverflow:B?"":"ellipsis","-webkit-line-clamp":""}});function C(){let I=!1;const{value:B}=y;if(B)return!0;const{value:R}=l;if(R){const{lineClamp:P}=t;if(_(R),P!==void 0)I=R.scrollHeight<=R.offsetHeight;else{const{value:M}=d;M&&(I=M.getBoundingClientRect().width<=R.getBoundingClientRect().width)}w(R,I)}return I}const x=computed(()=>t.expandTrigger==="click"?()=>{var I;const{value:B}=y;B&&((I=g.value)===null||I===void 0||I.setShow(!1)),y.value=!B}:void 0);onDeactivated(()=>{var I;t.tooltip&&((I=g.value)===null||I===void 0||I.setShow(!1))});const S=()=>h("span",Object.assign({},mergeProps(n,{class:[`${o.value}-ellipsis`,t.lineClamp!==void 0?createLineClampClass(o.value):void 0,t.expandTrigger==="click"?createCursorClass(o.value,"pointer"):void 0],style:b.value}),{ref:"triggerRef",onClick:x.value,onMouseenter:t.expandTrigger==="click"?C:void 0}),t.lineClamp?r:h("span",{ref:"triggerInnerRef"},r));function _(I){if(!I)return;const B=b.value,R=createLineClampClass(o.value);t.lineClamp!==void 0?$(I,R,"add"):$(I,R,"remove");for(const P in B)I.style[P]!==B[P]&&(I.style[P]=B[P])}function w(I,B){const R=createCursorClass(o.value,"pointer");t.expandTrigger==="click"&&!B?$(I,R,"add"):$(I,R,"remove")}function $(I,B,R){R==="add"?I.classList.contains(B)||I.classList.add(B):I.classList.contains(B)&&I.classList.remove(B)}return{mergedTheme:s,triggerRef:l,triggerInnerRef:d,tooltipRef:g,handleClick:x,renderTrigger:S,getTooltipDisabled:C}},render(){var t;const{tooltip:r,renderTrigger:n,$slots:o}=this;if(r){const{mergedTheme:s}=this;return h(NTooltip,Object.assign({ref:"tooltipRef",placement:"top"},r,{getDisabled:this.getTooltipDisabled,theme:s.peers.Tooltip,themeOverrides:s.peerOverrides.Tooltip}),{trigger:n,default:(t=o.tooltip)!==null&&t!==void 0?t:o.default})}else return n()}}),RenderSorter=defineComponent({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:t,order:r}=this;return t({order:r})}});const dataTableProps=Object.assign(Object.assign({},useTheme.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"},scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},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]}),dataTableInjectionKey="n-data-table";var SortButton=defineComponent({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(t){const{mergedComponentPropsRef:r}=useConfig(),{mergedSortStateRef:n,mergedClsPrefixRef:o}=inject(dataTableInjectionKey),s=computed(()=>n.value.find(y=>y.columnKey===t.column.key)),l=computed(()=>s.value!==void 0),d=computed(()=>{const{value:y}=s;return y&&l.value?y.order:!1}),g=computed(()=>{var y,b;return((b=(y=r==null?void 0:r.value)===null||y===void 0?void 0:y.DataTable)===null||b===void 0?void 0:b.renderSorter)||t.column.renderSorter});return{mergedClsPrefix:o,active:l,mergedSortOrder:d,mergedRenderSorter:g}},render(){const{mergedRenderSorter:t,mergedSortOrder:r,mergedClsPrefix:n}=this,{renderSorterIcon:o}=this.column;return t?h(RenderSorter,{render:t,order:r}):h("span",{class:[`${n}-data-table-sorter`,r==="ascend"&&`${n}-data-table-sorter--asc`,r==="descend"&&`${n}-data-table-sorter--desc`]},o?o({order:r}):h(NBaseIcon,{clsPrefix:n},{default:()=>h(ArrowDownIcon,null)}))}}),RenderFilter=defineComponent({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:t,active:r,show:n}=this;return t({active:r,show:n})}});const radioProps={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}},radioGroupInjectionKey="n-radio-group";function setup(t){const r=useFormItem(t,{mergedSize(R){const{size:P}=t;if(P!==void 0)return P;if(d){const{mergedSizeRef:{value:M}}=d;if(M!==void 0)return M}return R?R.mergedSize.value:"medium"},mergedDisabled(R){return!!(t.disabled||d!=null&&d.disabledRef.value||R!=null&&R.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:o}=r,s=ref(null),l=ref(null),d=inject(radioGroupInjectionKey,null),g=ref(t.defaultChecked),y=toRef(t,"checked"),b=useMergedState(y,g),C=useMemo(()=>d?d.valueRef.value===t.value:b.value),x=useMemo(()=>{const{name:R}=t;if(R!==void 0)return R;if(d)return d.nameRef.value}),S=ref(!1);function _(){if(d){const{doUpdateValue:R}=d,{value:P}=t;call(R,P)}else{const{onUpdateChecked:R,"onUpdate:checked":P}=t,{nTriggerFormInput:M,nTriggerFormChange:O}=r;R&&call(R,!0),P&&call(P,!0),M(),O(),g.value=!0}}function w(){o.value||C.value||_()}function $(){w()}function I(){S.value=!1}function B(){S.value=!0}return{mergedClsPrefix:d?d.mergedClsPrefixRef:useConfig(t).mergedClsPrefixRef,inputRef:s,labelRef:l,mergedName:x,mergedDisabled:o,uncontrolledChecked:g,renderSafeChecked:C,focus:S,mergedSize:n,handleRadioInputChange:$,handleRadioInputBlur:I,handleRadioInputFocus:B}}var style$L=cB("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;
|
|
`,[cM("checked",[cE("dot",`
|
|
background-color: var(--n-color-active);
|
|
`)]),cE("dot-wrapper",`
|
|
position: relative;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
width: var(--n-radio-size);
|
|
`),cB("radio-input",`
|
|
position: absolute;
|
|
border: 0;
|
|
border-radius: inherit;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
opacity: 0;
|
|
z-index: 1;
|
|
cursor: pointer;
|
|
`),cE("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);
|
|
`,[c$1("&::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);
|
|
`),cM("checked",{boxShadow:"var(--n-box-shadow-active)"},[c$1("&::before",`
|
|
opacity: 1;
|
|
transform: scale(1);
|
|
`)])]),cE("label",`
|
|
color: var(--n-text-color);
|
|
padding: var(--n-label-padding);
|
|
font-weight: var(--n-label-font-weight);
|
|
display: inline-block;
|
|
transition: color .3s var(--n-bezier);
|
|
`),cNotM("disabled",`
|
|
cursor: pointer;
|
|
`,[c$1("&:hover",[cE("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),cM("focus",[c$1("&:not(:active)",[cE("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
`,[cE("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[c$1("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),cM("checked",`
|
|
opacity: 1;
|
|
`)]),cE("label",{color:"var(--n-text-color-disabled)"}),cB("radio-input",`
|
|
cursor: not-allowed;
|
|
`)])]),NRadio=defineComponent({name:"Radio",props:Object.assign(Object.assign({},useTheme.props),radioProps),setup(t){const r=setup(t),n=useTheme("Radio","-radio",style$L,radioLight$1,t,r.mergedClsPrefix),o=computed(()=>{const{mergedSize:{value:b}}=r,{common:{cubicBezierEaseInOut:C},self:{boxShadow:x,boxShadowActive:S,boxShadowDisabled:_,boxShadowFocus:w,boxShadowHover:$,color:I,colorDisabled:B,colorActive:R,textColor:P,textColorDisabled:M,dotColorActive:O,dotColorDisabled:D,labelPadding:N,labelLineHeight:H,labelFontWeight:Q,[createKey("fontSize",b)]:G,[createKey("radioSize",b)]:K}}=n.value;return{"--n-bezier":C,"--n-label-line-height":H,"--n-label-font-weight":Q,"--n-box-shadow":x,"--n-box-shadow-active":S,"--n-box-shadow-disabled":_,"--n-box-shadow-focus":w,"--n-box-shadow-hover":$,"--n-color":I,"--n-color-active":R,"--n-color-disabled":B,"--n-dot-color-active":O,"--n-dot-color-disabled":D,"--n-font-size":G,"--n-radio-size":K,"--n-text-color":P,"--n-text-color-disabled":M,"--n-label-padding":N}}),{inlineThemeDisabled:s,mergedClsPrefixRef:l,mergedRtlRef:d}=useConfig(t),g=useRtl("Radio",d,l),y=s?useThemeClass("radio",computed(()=>r.mergedSize.value[0]),o,t):void 0;return Object.assign(r,{rtlEnabled:g,cssVars:s?void 0:o,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender})},render(){const{$slots:t,mergedClsPrefix:r,onRender:n,label:o}=this;return n==null||n(),h("label",{class:[`${r}-radio`,this.themeClass,{[`${r}-radio--rtl`]:this.rtlEnabled,[`${r}-radio--disabled`]:this.mergedDisabled,[`${r}-radio--checked`]:this.renderSafeChecked,[`${r}-radio--focus`]:this.focus}],style:this.cssVars},h("input",{ref:"inputRef",type:"radio",class:`${r}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),h("div",{class:`${r}-radio__dot-wrapper`},"\xA0",h("div",{class:[`${r}-radio__dot`,this.renderSafeChecked&&`${r}-radio__dot--checked`]})),resolveWrappedSlot(t.default,s=>!s&&!o?null:h("div",{ref:"labelRef",class:`${r}-radio__label`},s||o)))}}),style$K=cB("radio-group",`
|
|
display: inline-block;
|
|
font-size: var(--n-font-size);
|
|
`,[cE("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);
|
|
`,[cM("checked",{backgroundColor:"var(--n-button-border-color-active)"}),cM("disabled",{opacity:"var(--n-opacity-disabled)"})]),cM("button-group",`
|
|
white-space: nowrap;
|
|
height: var(--n-height);
|
|
line-height: var(--n-height);
|
|
`,[cB("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),cE("splitor",{height:"var(--n-height)"})]),cB("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);
|
|
`,[cB("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;
|
|
`),cE("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;
|
|
`),c$1("&: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);
|
|
`,[cE("state-border",`
|
|
border-top-left-radius: var(--n-button-border-radius);
|
|
border-bottom-left-radius: var(--n-button-border-radius);
|
|
`)]),c$1("&: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);
|
|
`,[cE("state-border",`
|
|
border-top-right-radius: var(--n-button-border-radius);
|
|
border-bottom-right-radius: var(--n-button-border-radius);
|
|
`)]),cNotM("disabled",`
|
|
cursor: pointer;
|
|
`,[c$1("&:hover",[cE("state-border",`
|
|
transition: box-shadow .3s var(--n-bezier);
|
|
box-shadow: var(--n-button-box-shadow-hover);
|
|
`),cNotM("checked",{color:"var(--n-button-text-color-hover)"})]),cM("focus",[c$1("&:not(:active)",[cE("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),cM("checked",`
|
|
background: var(--n-button-color-active);
|
|
color: var(--n-button-text-color-active);
|
|
border-color: var(--n-button-border-color-active);
|
|
`),cM("disabled",`
|
|
cursor: not-allowed;
|
|
opacity: var(--n-opacity-disabled);
|
|
`)])]);function mapSlot(t,r,n){var o;const s=[];let l=!1;for(let d=0;d<t.length;++d){const g=t[d],y=(o=g.type)===null||o===void 0?void 0:o.name;y==="RadioButton"&&(l=!0);const b=g.props;if(y!=="RadioButton"){s.push(g);continue}if(d===0)s.push(g);else{const C=s[s.length-1].props,x=r===C.value,S=C.disabled,_=r===b.value,w=b.disabled,$=(x?2:0)+(S?0:1),I=(_?2:0)+(w?0:1),B={[`${n}-radio-group__splitor--disabled`]:S,[`${n}-radio-group__splitor--checked`]:x},R={[`${n}-radio-group__splitor--disabled`]:w,[`${n}-radio-group__splitor--checked`]:_},P=$<I?R:B;s.push(h("div",{class:[`${n}-radio-group__splitor`,P]}),g)}}return{children:s,isButtonGroup:l}}const radioGroupProps=Object.assign(Object.assign({},useTheme.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 NRadioGroup=defineComponent({name:"RadioGroup",props:radioGroupProps,setup(t){const r=ref(null),{mergedSizeRef:n,mergedDisabledRef:o,nTriggerFormChange:s,nTriggerFormInput:l,nTriggerFormBlur:d,nTriggerFormFocus:g}=useFormItem(t),{mergedClsPrefixRef:y,inlineThemeDisabled:b,mergedRtlRef:C}=useConfig(t),x=useTheme("Radio","-radio-group",style$K,radioLight$1,t,y),S=ref(t.defaultValue),_=toRef(t,"value"),w=useMergedState(_,S);function $(O){const{onUpdateValue:D,"onUpdate:value":N}=t;D&&call(D,O),N&&call(N,O),S.value=O,s(),l()}function I(O){const{value:D}=r;!D||D.contains(O.relatedTarget)||g()}function B(O){const{value:D}=r;!D||D.contains(O.relatedTarget)||d()}provide(radioGroupInjectionKey,{mergedClsPrefixRef:y,nameRef:toRef(t,"name"),valueRef:w,disabledRef:o,mergedSizeRef:n,doUpdateValue:$});const R=useRtl("Radio",C,y),P=computed(()=>{const{value:O}=n,{common:{cubicBezierEaseInOut:D},self:{buttonBorderColor:N,buttonBorderColorActive:H,buttonBorderRadius:Q,buttonBoxShadow:G,buttonBoxShadowFocus:K,buttonBoxShadowHover:W,buttonColorActive:j,buttonTextColor:Y,buttonTextColorActive:q,buttonTextColorHover:X,opacityDisabled:re,[createKey("buttonHeight",O)]:te,[createKey("fontSize",O)]:oe}}=x.value;return{"--n-font-size":oe,"--n-bezier":D,"--n-button-border-color":N,"--n-button-border-color-active":H,"--n-button-border-radius":Q,"--n-button-box-shadow":G,"--n-button-box-shadow-focus":K,"--n-button-box-shadow-hover":W,"--n-button-color-active":j,"--n-button-text-color":Y,"--n-button-text-color-hover":X,"--n-button-text-color-active":q,"--n-height":te,"--n-opacity-disabled":re}}),M=b?useThemeClass("radio-group",computed(()=>n.value[0]),P,t):void 0;return{selfElRef:r,rtlEnabled:R,mergedClsPrefix:y,mergedValue:w,handleFocusout:B,handleFocusin:I,cssVars:b?void 0:P,themeClass:M==null?void 0:M.themeClass,onRender:M==null?void 0:M.onRender}},render(){var t;const{mergedValue:r,mergedClsPrefix:n,handleFocusin:o,handleFocusout:s}=this,{children:l,isButtonGroup:d}=mapSlot(flatten$5(getSlot$1(this)),r,n);return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{onFocusin:o,onFocusout:s,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,d&&`${n}-radio-group--button-group`],style:this.cssVars},l)}});const SELECTION_COL_WIDTH=40,EXPAND_COL_WIDTH=40;function getNumberColWidth(t){if(t.type==="selection")return t.width===void 0?SELECTION_COL_WIDTH:depx(t.width);if(t.type==="expand")return t.width===void 0?EXPAND_COL_WIDTH:depx(t.width);if(!("children"in t))return typeof t.width=="string"?depx(t.width):t.width}function getStringColWidth(t){var r,n;if(t.type==="selection")return formatLength((r=t.width)!==null&&r!==void 0?r:SELECTION_COL_WIDTH);if(t.type==="expand")return formatLength((n=t.width)!==null&&n!==void 0?n:EXPAND_COL_WIDTH);if(!("children"in t))return formatLength(t.width)}function getColKey(t){return t.type==="selection"?"__n_selection__":t.type==="expand"?"__n_expand__":t.key}function createShallowClonedObject(t){return t&&(typeof t=="object"?Object.assign({},t):t)}function getFlagOfOrder(t){return t==="ascend"?1:t==="descend"?-1:0}function clampValueFollowCSSRules(t,r,n){return n!==void 0&&(t=Math.min(t,typeof n=="number"?n:parseFloat(n))),r!==void 0&&(t=Math.max(t,typeof r=="number"?r:parseFloat(r))),t}function createCustomWidthStyle(t,r){if(r!==void 0)return{width:r,minWidth:r,maxWidth:r};const n=getStringColWidth(t),{minWidth:o,maxWidth:s}=t;return{width:n,minWidth:formatLength(o)||n,maxWidth:formatLength(s)}}function createRowClassName(t,r,n){return typeof n=="function"?n(t,r):n||""}function shouldUseArrayInSingleMode(t){return t.filterOptionValues!==void 0||t.filterOptionValue===void 0&&t.defaultFilterOptionValues!==void 0}function isColumnSortable(t){return"children"in t?!1:!!t.sorter}function isColumnResizable(t){return"children"in t&&!!t.children.length?!1:!!t.resizable}function isColumnFilterable(t){return"children"in t?!1:!!t.filter&&(!!t.filterOptions||!!t.renderFilterMenu)}function getNextOrderOf(t){if(t){if(t==="descend")return"ascend"}else return"descend";return!1}function createNextSorter(t,r){return t.sorter===void 0?null:r===null||r.columnKey!==t.key?{columnKey:t.key,sorter:t.sorter,order:getNextOrderOf(!1)}:Object.assign(Object.assign({},r),{order:getNextOrderOf(r.order)})}function isColumnSorting(t,r){return r.find(n=>n.columnKey===t.key&&n.order)!==void 0}var NDataTableFilterMenu=defineComponent({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(t){const{mergedClsPrefixRef:r,mergedThemeRef:n,localeRef:o}=inject(dataTableInjectionKey),s=ref(t.value),l=computed(()=>{const{value:x}=s;return Array.isArray(x)?x:null}),d=computed(()=>{const{value:x}=s;return shouldUseArrayInSingleMode(t.column)?Array.isArray(x)&&x.length&&x[0]||null:Array.isArray(x)?null:x});function g(x){t.onChange(x)}function y(x){t.multiple&&Array.isArray(x)?s.value=x:shouldUseArrayInSingleMode(t.column)&&!Array.isArray(x)?s.value=[x]:s.value=x}function b(){g(s.value),t.onConfirm()}function C(){t.multiple||shouldUseArrayInSingleMode(t.column)?g([]):g(null),t.onClear()}return{mergedClsPrefix:r,mergedTheme:n,locale:o,checkboxGroupValue:l,radioGroupValue:d,handleChange:y,handleConfirmClick:b,handleClearClick:C}},render(){const{mergedTheme:t,locale:r,mergedClsPrefix:n}=this;return h("div",{class:`${n}-data-table-filter-menu`},h(NScrollbar$1,null,{default:()=>{const{checkboxGroupValue:o,handleChange:s}=this;return this.multiple?h(NCheckboxGroup,{value:o,class:`${n}-data-table-filter-menu__group`,onUpdateValue:s},{default:()=>this.options.map(l=>h(NCheckbox,{key:l.value,theme:t.peers.Checkbox,themeOverrides:t.peerOverrides.Checkbox,value:l.value},{default:()=>l.label}))}):h(NRadioGroup,{name:this.radioGroupName,class:`${n}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(l=>h(NRadio,{key:l.value,value:l.value,theme:t.peers.Radio,themeOverrides:t.peerOverrides.Radio},{default:()=>l.label}))})}}),h("div",{class:`${n}-data-table-filter-menu__action`},h(NButton,{size:"tiny",theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>r.clear}),h(NButton,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>r.confirm})))}});function createFilterState(t,r,n){const o=Object.assign({},t);return o[r]=n,o}var FilterButton=defineComponent({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(t){const{mergedComponentPropsRef:r}=useConfig(),{mergedThemeRef:n,mergedClsPrefixRef:o,mergedFilterStateRef:s,filterMenuCssVarsRef:l,paginationBehaviorOnFilterRef:d,doUpdatePage:g,doUpdateFilters:y}=inject(dataTableInjectionKey),b=ref(!1),C=s,x=computed(()=>t.column.filterMultiple!==!1),S=computed(()=>{const R=C.value[t.column.key];if(R===void 0){const{value:P}=x;return P?[]:null}return R}),_=computed(()=>{const{value:R}=S;return Array.isArray(R)?R.length>0:R!==null}),w=computed(()=>{var R,P;return((P=(R=r==null?void 0:r.value)===null||R===void 0?void 0:R.DataTable)===null||P===void 0?void 0:P.renderFilter)||t.column.renderFilter});function $(R){const P=createFilterState(C.value,t.column.key,R);y(P,t.column),d.value==="first"&&g(1)}function I(){b.value=!1}function B(){b.value=!1}return{mergedTheme:n,mergedClsPrefix:o,active:_,showPopover:b,mergedRenderFilter:w,filterMultiple:x,mergedFilterValue:S,filterMenuCssVars:l,handleFilterChange:$,handleFilterMenuConfirm:B,handleFilterMenuCancel:I}},render(){const{mergedTheme:t,mergedClsPrefix:r,handleFilterMenuCancel:n}=this;return h(NPopover,{show:this.showPopover,onUpdateShow:o=>this.showPopover=o,trigger:"click",theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,placement:"bottom",style:{padding:0}},{trigger:()=>{const{mergedRenderFilter:o}=this;if(o)return h(RenderFilter,{"data-data-table-filter":!0,render:o,active:this.active,show:this.showPopover});const{renderFilterIcon:s}=this.column;return h("div",{"data-data-table-filter":!0,class:[`${r}-data-table-filter`,{[`${r}-data-table-filter--active`]:this.active,[`${r}-data-table-filter--show`]:this.showPopover}]},s?s({active:this.active,show:this.showPopover}):h(NBaseIcon,{clsPrefix:r},{default:()=>h(FilterIcon,null)}))},default:()=>{const{renderFilterMenu:o}=this.column;return o?o({hide:n}):h(NDataTableFilterMenu,{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})}})}}),ResizeButton=defineComponent({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(t){const{mergedClsPrefixRef:r}=inject(dataTableInjectionKey),n=ref(!1);let o=0;function s(y){return y.clientX}function l(y){var b;const C=n.value;o=s(y),n.value=!0,C||(on("mousemove",window,d),on("mouseup",window,g),(b=t.onResizeStart)===null||b===void 0||b.call(t))}function d(y){var b;(b=t.onResize)===null||b===void 0||b.call(t,s(y)-o)}function g(){var y;n.value=!1,(y=t.onResizeEnd)===null||y===void 0||y.call(t),off("mousemove",window,d),off("mouseup",window,g)}return onBeforeUnmount(()=>{off("mousemove",window,d),off("mouseup",window,g)}),{mergedClsPrefix:r,active:n,handleMousedown:l}},render(){const{mergedClsPrefix:t}=this;return h("span",{"data-data-table-resizable":!0,class:[`${t}-data-table-resize-button`,this.active&&`${t}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),NDropdownDivider=defineComponent({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return h("div",{class:`${this.clsPrefix}-dropdown-divider`})}});const self$D=t=>{const{textColorBase:r,opacity1:n,opacity2:o,opacity3:s,opacity4:l,opacity5:d}=t;return{color:r,opacity1Depth:n,opacity2Depth:o,opacity3Depth:s,opacity4Depth:l,opacity5Depth:d}},iconLight={name:"Icon",common:commonLight,self:self$D};var iconLight$1=iconLight;const iconDark$1={name:"Icon",common:commonDark,self:self$D};var iconDark$2=iconDark$1,style$J=cB("icon",`
|
|
height: 1em;
|
|
width: 1em;
|
|
line-height: 1em;
|
|
text-align: center;
|
|
display: inline-block;
|
|
position: relative;
|
|
fill: currentColor;
|
|
transform: translateZ(0);
|
|
`,[cM("color-transition",{transition:"color .3s var(--n-bezier)"}),cM("depth",{color:"var(--n-color)"},[c$1("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),c$1("svg",{height:"1em",width:"1em"})]);const iconProps=Object.assign(Object.assign({},useTheme.props),{depth:[String,Number],size:[Number,String],color:String,component:Object}),NIcon=defineComponent({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:iconProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Icon","-icon",style$J,iconLight$1,t,r),s=computed(()=>{const{depth:d}=t,{common:{cubicBezierEaseInOut:g},self:y}=o.value;if(d!==void 0){const{color:b,[`opacity${d}Depth`]:C}=y;return{"--n-bezier":g,"--n-color":b,"--n-opacity":C}}return{"--n-bezier":g,"--n-color":"","--n-opacity":""}}),l=n?useThemeClass("icon",computed(()=>`${t.depth||"d"}`),s,t):void 0;return{mergedClsPrefix:r,mergedStyle:computed(()=>{const{size:d,color:g}=t;return{fontSize:formatLength(d),color:g}}),cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{$parent:r,depth:n,mergedClsPrefix:o,component:s,onRender:l,themeClass:d}=this;return!((t=r==null?void 0:r.$options)===null||t===void 0)&&t._n_icon__&&warn$5("icon","don't wrap `n-icon` inside `n-icon`"),l==null||l(),h("i",mergeProps(this.$attrs,{role:"img",class:[`${o}-icon`,d,{[`${o}-icon--depth`]:n,[`${o}-icon--color-transition`]:n!==void 0}],style:[this.cssVars,this.mergedStyle]}),s?h(s):this.$slots)}}),dropdownMenuInjectionKey="n-dropdown-menu",dropdownInjectionKey="n-dropdown",dropdownOptionInjectionKey="n-dropdown-option";function isSubmenuNode(t,r){return t.type==="submenu"||t.type===void 0&&t[r]!==void 0}function isGroupNode(t){return t.type==="group"}function isDividerNode$1(t){return t.type==="divider"}function isRenderNode(t){return t.type==="render"}var NDropdownOption=defineComponent({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(t){const r=inject(dropdownInjectionKey),{hoverKeyRef:n,keyboardKeyRef:o,lastToggledSubmenuKeyRef:s,pendingKeyPathRef:l,activeKeyPathRef:d,animatedRef:g,mergedShowRef:y,renderLabelRef:b,renderIconRef:C,labelFieldRef:x,childrenFieldRef:S,renderOptionRef:_,nodePropsRef:w,menuPropsRef:$}=r,I=inject(dropdownOptionInjectionKey,null),B=inject(dropdownMenuInjectionKey),R=inject(popoverBodyInjectionKey),P=computed(()=>t.tmNode.rawNode),M=computed(()=>{const{value:re}=S;return isSubmenuNode(t.tmNode.rawNode,re)}),O=computed(()=>{const{disabled:re}=t.tmNode;return re}),D=computed(()=>{if(!M.value)return!1;const{key:re,disabled:te}=t.tmNode;if(te)return!1;const{value:oe}=n,{value:ae}=o,{value:se}=s,{value:ue}=l;return oe!==null?ue.includes(re):ae!==null?ue.includes(re)&&ue[ue.length-1]!==re:se!==null?ue.includes(re):!1}),N=computed(()=>o.value===null&&!g.value),H=useDeferredTrue(D,300,N),Q=computed(()=>!!(I!=null&&I.enteringSubmenuRef.value)),G=ref(!1);provide(dropdownOptionInjectionKey,{enteringSubmenuRef:G});function K(){G.value=!0}function W(){G.value=!1}function j(){const{parentKey:re,tmNode:te}=t;te.disabled||!y.value||(s.value=re,o.value=null,n.value=te.key)}function Y(){const{tmNode:re}=t;re.disabled||!y.value||n.value!==re.key&&j()}function q(re){if(t.tmNode.disabled||!y.value)return;const{relatedTarget:te}=re;te&&!happensIn({target:te},"dropdownOption")&&!happensIn({target:te},"scrollbarRail")&&(n.value=null)}function X(){const{value:re}=M,{tmNode:te}=t;!y.value||!re&&!te.disabled&&(r.doSelect(te.key,te.rawNode),r.doUpdateShow(!1))}return{labelField:x,renderLabel:b,renderIcon:C,siblingHasIcon:B.showIconRef,siblingHasSubmenu:B.hasSubmenuRef,menuProps:$,popoverBody:R,animated:g,mergedShowSubmenu:computed(()=>H.value&&!Q.value),rawNode:P,hasSubmenu:M,pending:useMemo(()=>{const{value:re}=l,{key:te}=t.tmNode;return re.includes(te)}),childActive:useMemo(()=>{const{value:re}=d,{key:te}=t.tmNode,oe=re.findIndex(ae=>te===ae);return oe===-1?!1:oe<re.length-1}),active:useMemo(()=>{const{value:re}=d,{key:te}=t.tmNode,oe=re.findIndex(ae=>te===ae);return oe===-1?!1:oe===re.length-1}),mergedDisabled:O,renderOption:_,nodeProps:w,handleClick:X,handleMouseMove:Y,handleMouseEnter:j,handleMouseLeave:q,handleSubmenuBeforeEnter:K,handleSubmenuAfterEnter:W}},render(){var t,r;const{animated:n,rawNode:o,mergedShowSubmenu:s,clsPrefix:l,siblingHasIcon:d,siblingHasSubmenu:g,renderLabel:y,renderIcon:b,renderOption:C,nodeProps:x,props:S,scrollable:_}=this;let w=null;if(s){const R=(t=this.menuProps)===null||t===void 0?void 0:t.call(this,o,o.children);w=h(NDropdownMenu,Object.assign({},R,{clsPrefix:l,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const $={class:[`${l}-dropdown-option-body`,this.pending&&`${l}-dropdown-option-body--pending`,this.active&&`${l}-dropdown-option-body--active`,this.childActive&&`${l}-dropdown-option-body--child-active`,this.mergedDisabled&&`${l}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},I=x==null?void 0:x(o),B=h("div",Object.assign({class:[`${l}-dropdown-option`,I==null?void 0:I.class],"data-dropdown-option":!0},I),h("div",mergeProps($,S),[h("div",{class:[`${l}-dropdown-option-body__prefix`,d&&`${l}-dropdown-option-body__prefix--show-icon`]},[b?b(o):render$2(o.icon)]),h("div",{"data-dropdown-option":!0,class:`${l}-dropdown-option-body__label`},y?y(o):render$2((r=o[this.labelField])!==null&&r!==void 0?r:o.title)),h("div",{"data-dropdown-option":!0,class:[`${l}-dropdown-option-body__suffix`,g&&`${l}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?h(NIcon,null,{default:()=>h(ChevronRightIcon,null)}):null)]),this.hasSubmenu?h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h("div",{class:`${l}-dropdown-offset-container`},h(VFollower,{show:this.mergedShowSubmenu,placement:this.placement,to:_&&this.popoverBody||void 0,teleportDisabled:!_},{default:()=>h("div",{class:`${l}-dropdown-menu-wrapper`},n?h(Transition,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>w}):w)}))})]}):null);return C?C({node:B,option:o}):B}}),NDropdownGroupHeader=defineComponent({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:t,hasSubmenuRef:r}=inject(dropdownMenuInjectionKey),{renderLabelRef:n,labelFieldRef:o,nodePropsRef:s,renderOptionRef:l}=inject(dropdownInjectionKey);return{labelField:o,showIcon:t,hasSubmenu:r,renderLabel:n,nodeProps:s,renderOption:l}},render(){var t;const{clsPrefix:r,hasSubmenu:n,showIcon:o,nodeProps:s,renderLabel:l,renderOption:d}=this,{rawNode:g}=this.tmNode,y=h("div",Object.assign({class:`${r}-dropdown-option`},s==null?void 0:s(g)),h("div",{class:`${r}-dropdown-option-body ${r}-dropdown-option-body--group`},h("div",{"data-dropdown-option":!0,class:[`${r}-dropdown-option-body__prefix`,o&&`${r}-dropdown-option-body__prefix--show-icon`]},render$2(g.icon)),h("div",{class:`${r}-dropdown-option-body__label`,"data-dropdown-option":!0},l?l(g):render$2((t=g.title)!==null&&t!==void 0?t:g[this.labelField])),h("div",{class:[`${r}-dropdown-option-body__suffix`,n&&`${r}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return d?d({node:y,option:g}):y}}),NDropdownGroup=defineComponent({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:t,parentKey:r,clsPrefix:n}=this,{children:o}=t;return h(Fragment,null,h(NDropdownGroupHeader,{clsPrefix:n,tmNode:t,key:t.key}),o==null?void 0:o.map(s=>{const{rawNode:l}=s;return l.show===!1?null:isDividerNode$1(l)?h(NDropdownDivider,{clsPrefix:n,key:s.key}):s.isGroup?(warn$5("dropdown","`group` node is not allowed to be put in `group` node."),null):h(NDropdownOption,{clsPrefix:n,tmNode:s,parentKey:r,key:s.key})}))}}),NDropdownRenderOption=defineComponent({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:t,props:r}}=this.tmNode;return h("div",r,[t==null?void 0:t()])}}),NDropdownMenu=defineComponent({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(t){const{renderIconRef:r,childrenFieldRef:n}=inject(dropdownInjectionKey);provide(dropdownMenuInjectionKey,{showIconRef:computed(()=>{const s=r.value;return t.tmNodes.some(l=>{var d;if(l.isGroup)return(d=l.children)===null||d===void 0?void 0:d.some(({rawNode:y})=>s?s(y):y.icon);const{rawNode:g}=l;return s?s(g):g.icon})}),hasSubmenuRef:computed(()=>{const{value:s}=n;return t.tmNodes.some(l=>{var d;if(l.isGroup)return(d=l.children)===null||d===void 0?void 0:d.some(({rawNode:y})=>isSubmenuNode(y,s));const{rawNode:g}=l;return isSubmenuNode(g,s)})})});const o=ref(null);return provide(modalBodyInjectionKey,null),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,o),{bodyRef:o}},render(){const{parentKey:t,clsPrefix:r,scrollable:n}=this,o=this.tmNodes.map(s=>{const{rawNode:l}=s;return l.show===!1?null:isRenderNode(l)?h(NDropdownRenderOption,{tmNode:s,key:s.key}):isDividerNode$1(l)?h(NDropdownDivider,{clsPrefix:r,key:s.key}):isGroupNode(l)?h(NDropdownGroup,{clsPrefix:r,tmNode:s,parentKey:t,key:s.key}):h(NDropdownOption,{clsPrefix:r,tmNode:s,parentKey:t,key:s.key,props:l.props,scrollable:n})});return h("div",{class:[`${r}-dropdown-menu`,n&&`${r}-dropdown-menu--scrollable`],ref:"bodyRef"},n?h(XScrollbar,{contentClass:`${r}-dropdown-menu__content`},{default:()=>o}):o,this.showArrow?renderArrow({clsPrefix:r,arrowStyle:this.arrowStyle}):null)}}),style$I=cB("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);
|
|
`,[fadeInScaleUpTransition(),cB("dropdown-option",`
|
|
position: relative;
|
|
`,[c$1("a",`
|
|
text-decoration: none;
|
|
color: inherit;
|
|
outline: none;
|
|
`,[c$1("&::before",`
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),cB("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);
|
|
`,[c$1("&::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);
|
|
`),cNotM("disabled",[cM("pending",`
|
|
color: var(--n-option-text-color-hover);
|
|
`,[cE("prefix, suffix",`
|
|
color: var(--n-option-text-color-hover);
|
|
`),c$1("&::before","background-color: var(--n-option-color-hover);")]),cM("active",`
|
|
color: var(--n-option-text-color-active);
|
|
`,[cE("prefix, suffix",`
|
|
color: var(--n-option-text-color-active);
|
|
`),c$1("&::before","background-color: var(--n-option-color-active);")]),cM("child-active",`
|
|
color: var(--n-option-text-color-child-active);
|
|
`,[cE("prefix, suffix",`
|
|
color: var(--n-option-text-color-child-active);
|
|
`)])]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
opacity: var(--n-option-opacity-disabled);
|
|
`),cM("group",`
|
|
font-size: calc(var(--n-font-size) - 1px);
|
|
color: var(--n-group-header-text-color);
|
|
`,[cE("prefix",`
|
|
width: calc(var(--n-option-prefix-width) / 2);
|
|
`,[cM("show-icon",`
|
|
width: calc(var(--n-option-icon-prefix-width) / 2);
|
|
`)])]),cE("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;
|
|
`,[cM("show-icon",`
|
|
width: var(--n-option-icon-prefix-width);
|
|
`),cB("icon",`
|
|
font-size: var(--n-option-icon-size);
|
|
`)]),cE("label",`
|
|
white-space: nowrap;
|
|
flex: 1;
|
|
z-index: 1;
|
|
`),cE("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;
|
|
`,[cM("has-submenu",`
|
|
width: var(--n-option-icon-suffix-width);
|
|
`),cB("icon",`
|
|
font-size: var(--n-option-icon-size);
|
|
`)]),cB("dropdown-menu","pointer-events: all;")]),cB("dropdown-offset-container",`
|
|
pointer-events: none;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: -4px;
|
|
bottom: -4px;
|
|
`)]),cB("dropdown-divider",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-divider-color);
|
|
height: 1px;
|
|
margin: 4px 0;
|
|
`),cB("dropdown-menu-wrapper",`
|
|
transform-origin: var(--v-transform-origin);
|
|
width: fit-content;
|
|
`),c$1(">",[cB("scrollbar",`
|
|
height: inherit;
|
|
max-height: inherit;
|
|
`)]),cNotM("scrollable",`
|
|
padding: var(--n-padding);
|
|
`),cM("scrollable",[cE("content",`
|
|
padding: var(--n-padding);
|
|
`)])]);const dropdownBaseProps={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]},popoverPropKeys=Object.keys(popoverBaseProps),dropdownProps=Object.assign(Object.assign(Object.assign({},popoverBaseProps),dropdownBaseProps),useTheme.props);var NDropdown=defineComponent({name:"Dropdown",inheritAttrs:!1,props:dropdownProps,setup(t){const r=ref(!1),n=useMergedState(toRef(t,"show"),r),o=computed(()=>{const{keyField:W,childrenField:j}=t;return createTreeMate(t.options,{getKey(Y){return Y[W]},getDisabled(Y){return Y.disabled===!0},getIgnored(Y){return Y.type==="divider"||Y.type==="render"},getChildren(Y){return Y[j]}})}),s=computed(()=>o.value.treeNodes),l=ref(null),d=ref(null),g=ref(null),y=computed(()=>{var W,j,Y;return(Y=(j=(W=l.value)!==null&&W!==void 0?W:d.value)!==null&&j!==void 0?j:g.value)!==null&&Y!==void 0?Y:null}),b=computed(()=>o.value.getPath(y.value).keyPath),C=computed(()=>o.value.getPath(t.value).keyPath),x=useMemo(()=>t.keyboard&&n.value);useKeyboard$1({keydown:{ArrowUp:{prevent:!0,handler:O},ArrowRight:{prevent:!0,handler:M},ArrowDown:{prevent:!0,handler:D},ArrowLeft:{prevent:!0,handler:P},Enter:{prevent:!0,handler:N},Escape:R}},x);const{mergedClsPrefixRef:S,inlineThemeDisabled:_}=useConfig(t),w=useTheme("Dropdown","-dropdown",style$I,dropdownLight$1,t,S);provide(dropdownInjectionKey,{labelFieldRef:toRef(t,"labelField"),childrenFieldRef:toRef(t,"childrenField"),renderLabelRef:toRef(t,"renderLabel"),renderIconRef:toRef(t,"renderIcon"),hoverKeyRef:l,keyboardKeyRef:d,lastToggledSubmenuKeyRef:g,pendingKeyPathRef:b,activeKeyPathRef:C,animatedRef:toRef(t,"animated"),mergedShowRef:n,nodePropsRef:toRef(t,"nodeProps"),renderOptionRef:toRef(t,"renderOption"),menuPropsRef:toRef(t,"menuProps"),doSelect:$,doUpdateShow:I}),watch(n,W=>{!t.animated&&!W&&B()});function $(W,j){const{onSelect:Y}=t;Y&&call(Y,W,j)}function I(W){const{"onUpdate:show":j,onUpdateShow:Y}=t;j&&call(j,W),Y&&call(Y,W),r.value=W}function B(){l.value=null,d.value=null,g.value=null}function R(){I(!1)}function P(){Q("left")}function M(){Q("right")}function O(){Q("up")}function D(){Q("down")}function N(){const W=H();(W==null?void 0:W.isLeaf)&&n.value&&($(W.key,W.rawNode),I(!1))}function H(){var W;const{value:j}=o,{value:Y}=y;return!j||Y===null?null:(W=j.getNode(Y))!==null&&W!==void 0?W:null}function Q(W){const{value:j}=y,{value:{getFirstAvailableNode:Y}}=o;let q=null;if(j===null){const X=Y();X!==null&&(q=X.key)}else{const X=H();if(X){let re;switch(W){case"down":re=X.getNext();break;case"up":re=X.getPrev();break;case"right":re=X.getChild();break;case"left":re=X.getParent();break}re&&(q=re.key)}}q!==null&&(l.value=null,d.value=q)}const G=computed(()=>{const{size:W,inverted:j}=t,{common:{cubicBezierEaseInOut:Y},self:q}=w.value,{padding:X,dividerColor:re,borderRadius:te,optionOpacityDisabled:oe,[createKey("optionIconSuffixWidth",W)]:ae,[createKey("optionSuffixWidth",W)]:se,[createKey("optionIconPrefixWidth",W)]:ue,[createKey("optionPrefixWidth",W)]:Ae,[createKey("fontSize",W)]:pe,[createKey("optionHeight",W)]:he,[createKey("optionIconSize",W)]:Ce}=q,ve={"--n-bezier":Y,"--n-font-size":pe,"--n-padding":X,"--n-border-radius":te,"--n-option-height":he,"--n-option-prefix-width":Ae,"--n-option-icon-prefix-width":ue,"--n-option-suffix-width":se,"--n-option-icon-suffix-width":ae,"--n-option-icon-size":Ce,"--n-divider-color":re,"--n-option-opacity-disabled":oe};return j?(ve["--n-color"]=q.colorInverted,ve["--n-option-color-hover"]=q.optionColorHoverInverted,ve["--n-option-color-active"]=q.optionColorActiveInverted,ve["--n-option-text-color"]=q.optionTextColorInverted,ve["--n-option-text-color-hover"]=q.optionTextColorHoverInverted,ve["--n-option-text-color-active"]=q.optionTextColorActiveInverted,ve["--n-option-text-color-child-active"]=q.optionTextColorChildActiveInverted,ve["--n-prefix-color"]=q.prefixColorInverted,ve["--n-suffix-color"]=q.suffixColorInverted,ve["--n-group-header-text-color"]=q.groupHeaderTextColorInverted):(ve["--n-color"]=q.color,ve["--n-option-color-hover"]=q.optionColorHover,ve["--n-option-color-active"]=q.optionColorActive,ve["--n-option-text-color"]=q.optionTextColor,ve["--n-option-text-color-hover"]=q.optionTextColorHover,ve["--n-option-text-color-active"]=q.optionTextColorActive,ve["--n-option-text-color-child-active"]=q.optionTextColorChildActive,ve["--n-prefix-color"]=q.prefixColor,ve["--n-suffix-color"]=q.suffixColor,ve["--n-group-header-text-color"]=q.groupHeaderTextColor),ve}),K=_?useThemeClass("dropdown",computed(()=>`${t.size[0]}${t.inverted?"i":""}`),G,t):void 0;return{mergedClsPrefix:S,mergedTheme:w,tmNodes:s,mergedShow:n,handleAfterLeave:()=>{!t.animated||B()},doUpdateShow:I,cssVars:_?void 0:G,themeClass:K==null?void 0:K.themeClass,onRender:K==null?void 0:K.onRender}},render(){const t=(o,s,l,d,g)=>{var y;const{mergedClsPrefix:b,menuProps:C}=this;(y=this.onRender)===null||y===void 0||y.call(this);const x=(C==null?void 0:C(void 0,this.tmNodes.map(_=>_.rawNode)))||{},S={ref:createRefSetter(s),class:[o,`${b}-dropdown`,this.themeClass],clsPrefix:b,tmNodes:this.tmNodes,style:[l,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:d,onMouseleave:g};return h(NDropdownMenu,mergeProps(this.$attrs,S,x))},{mergedTheme:r}=this,n={show:this.mergedShow,theme:r.peers.Popover,themeOverrides:r.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:t,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return h(NPopover,Object.assign({},keep(this.$props,popoverPropKeys),n),{trigger:()=>{var o,s;return(s=(o=this.$slots).default)===null||s===void 0?void 0:s.call(o)}})}});const allKey="_n_all__",noneKey="_n_none__";function createSelectHandler(t,r,n,o){return t?s=>{for(const l of t)switch(s){case allKey:n(!0);return;case noneKey:o(!0);return;default:if(typeof l=="object"&&l.key===s){l.onSelect(r.value);return}}}:()=>{}}function createDropdownOptions(t,r){return t?t.map(n=>{switch(n){case"all":return{label:r.checkTableAll,key:allKey};case"none":return{label:r.uncheckTableAll,key:noneKey};default:return n}}):[]}var SelectionMenu=defineComponent({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(t){const{props:r,localeRef:n,checkOptionsRef:o,rawPaginatedDataRef:s,doCheckAll:l,doUncheckAll:d}=inject(dataTableInjectionKey),g=computed(()=>createSelectHandler(o.value,s,l,d)),y=computed(()=>createDropdownOptions(o.value,n.value));return()=>{var b,C,x,S;const{clsPrefix:_}=t;return h(NDropdown,{theme:(C=(b=r.theme)===null||b===void 0?void 0:b.peers)===null||C===void 0?void 0:C.Dropdown,themeOverrides:(S=(x=r.themeOverrides)===null||x===void 0?void 0:x.peers)===null||S===void 0?void 0:S.Dropdown,options:y.value,onSelect:g.value},{default:()=>h(NBaseIcon,{clsPrefix:_,class:`${_}-data-table-check-extra`},{default:()=>h(ChevronDownIcon,null)})})}}});function renderTitle(t){return typeof t.title=="function"?t.title(t):t.title}var TableHeader=defineComponent({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:t,scrollXRef:r,fixedColumnLeftMapRef:n,fixedColumnRightMapRef:o,mergedCurrentPageRef:s,allRowsCheckedRef:l,someRowsCheckedRef:d,rowsRef:g,colsRef:y,mergedThemeRef:b,checkOptionsRef:C,mergedSortStateRef:x,componentId:S,scrollPartRef:_,mergedTableLayoutRef:w,headerCheckboxDisabledRef:$,onUnstableColumnResize:I,doUpdateResizableWidth:B,handleTableHeaderScroll:R,deriveNextSorter:P,doUncheckAll:M,doCheckAll:O}=inject(dataTableInjectionKey),D=ref({});function N(q){const X=D.value[q];return X==null?void 0:X.getBoundingClientRect().width}function H(){l.value?M():O()}function Q(q,X){if(happensIn(q,"dataTableFilter")||happensIn(q,"dataTableResizable")||!isColumnSortable(X))return;const re=x.value.find(oe=>oe.columnKey===X.key)||null,te=createNextSorter(X,re);P(te)}function G(){_.value="head"}function K(){_.value="body"}const W=new Map;function j(q){W.set(q.key,N(q.key))}function Y(q,X){const re=W.get(q.key);if(re===void 0)return;const te=re+X,oe=clampValueFollowCSSRules(te,q.minWidth,q.maxWidth);I(te,oe,q,N),B(q,oe)}return{cellElsRef:D,componentId:S,mergedSortState:x,mergedClsPrefix:t,scrollX:r,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:s,allRowsChecked:l,someRowsChecked:d,rows:g,cols:y,mergedTheme:b,checkOptions:C,mergedTableLayout:w,headerCheckboxDisabled:$,handleMouseenter:G,handleMouseleave:K,handleCheckboxUpdateChecked:H,handleColHeaderClick:Q,handleTableHeaderScroll:R,handleColumnResizeStart:j,handleColumnResize:Y}},render(){const{cellElsRef:t,mergedClsPrefix:r,fixedColumnLeftMap:n,fixedColumnRightMap:o,currentPage:s,allRowsChecked:l,someRowsChecked:d,rows:g,cols:y,mergedTheme:b,checkOptions:C,componentId:x,discrete:S,mergedTableLayout:_,headerCheckboxDisabled:w,mergedSortState:$,handleColHeaderClick:I,handleCheckboxUpdateChecked:B,handleColumnResizeStart:R,handleColumnResize:P}=this,M=h("thead",{class:`${r}-data-table-thead`,"data-n-id":x},g.map(Q=>h("tr",{class:`${r}-data-table-tr`},Q.map(({column:G,colSpan:K,rowSpan:W,isLast:j})=>{var Y,q;const X=getColKey(G),{ellipsis:re}=G,te=()=>G.type==="selection"?G.multiple!==!1?h(Fragment,null,h(NCheckbox,{key:s,privateInsideTable:!0,checked:l,indeterminate:d,disabled:w,onUpdateChecked:B}),C?h(SelectionMenu,{clsPrefix:r}):null):null:h(Fragment,null,h("div",{class:`${r}-data-table-th__title-wrapper`},h("div",{class:`${r}-data-table-th__title`},re===!0||re&&!re.tooltip?h("div",{class:`${r}-data-table-th__ellipsis`},renderTitle(G)):re&&typeof re=="object"?h(NEllipsis,Object.assign({},re,{theme:b.peers.Ellipsis,themeOverrides:b.peerOverrides.Ellipsis}),{default:()=>renderTitle(G)}):renderTitle(G)),isColumnSortable(G)?h(SortButton,{column:G}):null),isColumnFilterable(G)?h(FilterButton,{column:G,options:G.filterOptions}):null,isColumnResizable(G)?h(ResizeButton,{onResizeStart:()=>R(G),onResize:se=>P(G,se)}):null),oe=X in n,ae=X in o;return h("th",{ref:se=>t[X]=se,key:X,style:{textAlign:G.align,left:pxfy((Y=n[X])===null||Y===void 0?void 0:Y.start),right:pxfy((q=o[X])===null||q===void 0?void 0:q.start)},colspan:K,rowspan:W,"data-col-key":X,class:[`${r}-data-table-th`,(oe||ae)&&`${r}-data-table-th--fixed-${oe?"left":"right"}`,{[`${r}-data-table-th--hover`]:isColumnSorting(G,$),[`${r}-data-table-th--filterable`]:isColumnFilterable(G),[`${r}-data-table-th--sortable`]:isColumnSortable(G),[`${r}-data-table-th--selection`]:G.type==="selection",[`${r}-data-table-th--last`]:j},G.className],onClick:G.type!=="selection"&&G.type!=="expand"&&!("children"in G)?se=>{I(se,G)}:void 0},te())}))));if(!S)return M;const{handleTableHeaderScroll:O,handleMouseenter:D,handleMouseleave:N,scrollX:H}=this;return h("div",{class:`${r}-data-table-base-table-header`,onScroll:O,onMouseenter:D,onMouseleave:N},h("table",{ref:"body",class:`${r}-data-table-table`,style:{minWidth:formatLength(H),tableLayout:_}},h("colgroup",null,y.map(Q=>h("col",{key:Q.key,style:Q.style}))),M))}}),Cell=defineComponent({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:t,column:r,row:n,renderCell:o}=this;let s;const{render:l,key:d,ellipsis:g}=r;if(l&&!t?s=l(n,this.index):t?s=n[d].value:s=o?o(get$1(n,d),n,r):get$1(n,d),g)if(typeof g=="object"){const{mergedTheme:y}=this;return h(NEllipsis,Object.assign({},g,{theme:y.peers.Ellipsis,themeOverrides:y.peerOverrides.Ellipsis}),{default:()=>s})}else return h("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},s);return s}}),ExpandTrigger=defineComponent({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function}},render(){const{clsPrefix:t}=this;return h("div",{class:[`${t}-data-table-expand-trigger`,this.expanded&&`${t}-data-table-expand-trigger--expanded`],onClick:this.onClick},h(NIconSwitchTransition,null,{default:()=>this.loading?h(NBaseLoading,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon():h(NBaseIcon,{clsPrefix:t,key:"base-icon"},{default:()=>h(ChevronRightIcon,null)})}))}}),RenderSafeCheckbox=defineComponent({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(t){const{mergedCheckedRowKeySetRef:r,mergedInderminateRowKeySetRef:n}=inject(dataTableInjectionKey);return()=>{const{rowKey:o}=t;return h(NCheckbox,{privateInsideTable:!0,disabled:t.disabled,indeterminate:n.value.has(o),checked:r.value.has(o),onUpdateChecked:t.onUpdateChecked})}}}),RenderSafeRadio=defineComponent({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(t){const{mergedCheckedRowKeySetRef:r,componentId:n}=inject(dataTableInjectionKey);return()=>{const{rowKey:o}=t;return h(NRadio,{name:n,disabled:t.disabled,checked:r.value.has(o),onUpdateChecked:t.onUpdateChecked})}}});function flatten$2(t,r){const n=[];function o(s,l){s.forEach(d=>{d.children&&r.has(d.key)?(n.push({tmNode:d,striped:!1,key:d.key,index:l}),o(d.children,l)):n.push({key:d.key,tmNode:d,striped:!1,index:l})})}return t.forEach(s=>{n.push(s);const{children:l}=s.tmNode;l&&r.has(s.key)&&o(l,s.index)}),n}const VirtualListItemWrapper=defineComponent({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:t,id:r,cols:n,onMouseenter:o,onMouseleave:s}=this;return h("table",{style:{tableLayout:"fixed"},class:`${t}-data-table-table`,onMouseenter:o,onMouseleave:s},h("colgroup",null,n.map(l=>h("col",{key:l.key,style:l.style}))),h("tbody",{"data-n-id":r,class:`${t}-data-table-tbody`},this.$slots))}});var TableBody=defineComponent({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(t){const{slots:r,bodyWidthRef:n,mergedExpandedRowKeysRef:o,mergedClsPrefixRef:s,mergedThemeRef:l,scrollXRef:d,colsRef:g,paginatedDataRef:y,rawPaginatedDataRef:b,fixedColumnLeftMapRef:C,fixedColumnRightMapRef:x,mergedCurrentPageRef:S,rowClassNameRef:_,leftActiveFixedColKeyRef:w,leftActiveFixedChildrenColKeysRef:$,rightActiveFixedColKeyRef:I,rightActiveFixedChildrenColKeysRef:B,renderExpandRef:R,hoverKeyRef:P,summaryRef:M,mergedSortStateRef:O,virtualScrollRef:D,componentId:N,scrollPartRef:H,mergedTableLayoutRef:Q,childTriggerColIndexRef:G,indentRef:K,rowPropsRef:W,maxHeightRef:j,stripedRef:Y,loadingRef:q,onLoadRef:X,loadingKeySetRef:re,expandableRef:te,stickyExpandedRowsRef:oe,renderExpandIconRef:ae,summaryPlacementRef:se,treeMateRef:ue,scrollbarPropsRef:Ae,setHeaderScrollLeft:pe,doUpdateExpandedRowKeys:he,handleTableBodyScroll:Ce,doCheck:ve,doUncheck:ye,renderCell:Be}=inject(dataTableInjectionKey),Se=ref(null),Ee=ref(null),ie=ref(null),ee=useMemo(()=>y.value.length===0),J=useMemo(()=>t.showHeader||!ee.value),ce=useMemo(()=>t.showHeader||ee.value);let fe="";const ne=computed(()=>new Set(o.value));function le(We){var Je;return(Je=ue.value.getNode(We))===null||Je===void 0?void 0:Je.rawNode}function me(We,Je,Ye){const Xe=le(We.key);if(!Xe){warn$5("data-table",`fail to get row data with key ${We.key}`);return}if(Ye){const _e=y.value.findIndex(xe=>xe.key===fe);if(_e!==-1){const xe=y.value.findIndex(Re=>Re.key===We.key),Le=Math.min(_e,xe),Ve=Math.max(_e,xe),ze=[];y.value.slice(Le,Ve+1).forEach(Re=>{Re.disabled||ze.push(Re.key)}),Je?ve(ze,!1,Xe):ye(ze,Xe),fe=We.key;return}}Je?ve(We.key,!1,Xe):ye(We.key,Xe),fe=We.key}function Te(We){const Je=le(We.key);if(!Je){warn$5("data-table",`fail to get row data with key ${We.key}`);return}ve(We.key,!0,Je)}function ge(){if(!J.value){const{value:Je}=ie;return Je||null}if(D.value)return we();const{value:We}=Se;return We?We.containerRef:null}function $e(We,Je){var Ye;if(re.value.has(We))return;const{value:Xe}=o,_e=Xe.indexOf(We),xe=Array.from(Xe);~_e?(xe.splice(_e,1),he(xe)):Je&&!Je.isLeaf&&!Je.shallowLoaded?(re.value.add(We),(Ye=X.value)===null||Ye===void 0||Ye.call(X,Je.rawNode).then(()=>{const{value:Le}=o,Ve=Array.from(Le);~Ve.indexOf(We)||Ve.push(We),he(Ve)}).finally(()=>{re.value.delete(We)})):(xe.push(We),he(xe))}function de(){P.value=null}function be(){H.value="body"}function we(){const{value:We}=Ee;return We==null?void 0:We.listElRef}function Me(){const{value:We}=Ee;return We==null?void 0:We.itemsElRef}function Ue(We){var Je;Ce(We),(Je=Se.value)===null||Je===void 0||Je.sync()}function Ge(We){var Je;const{onResize:Ye}=t;Ye&&Ye(We),(Je=Se.value)===null||Je===void 0||Je.sync()}const Ze={getScrollContainer:ge,scrollTo(We,Je){var Ye,Xe;D.value?(Ye=Ee.value)===null||Ye===void 0||Ye.scrollTo(We,Je):(Xe=Se.value)===null||Xe===void 0||Xe.scrollTo(We,Je)}},tt=c$1([({props:We})=>{const Je=Xe=>Xe===null?null:c$1(`[data-n-id="${We.componentId}"] [data-col-key="${Xe}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),Ye=Xe=>Xe===null?null:c$1(`[data-n-id="${We.componentId}"] [data-col-key="${Xe}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return c$1([Je(We.leftActiveFixedColKey),Ye(We.rightActiveFixedColKey),We.leftActiveFixedChildrenColKeys.map(Xe=>Je(Xe)),We.rightActiveFixedChildrenColKeys.map(Xe=>Ye(Xe))])}]);let st=!1;return watchEffect(()=>{const{value:We}=w,{value:Je}=$,{value:Ye}=I,{value:Xe}=B;if(!st&&We===null&&Ye===null)return;const _e={leftActiveFixedColKey:We,leftActiveFixedChildrenColKeys:Je,rightActiveFixedColKey:Ye,rightActiveFixedChildrenColKeys:Xe,componentId:N};tt.mount({id:`n-${N}`,force:!0,props:_e,anchorMetaName:cssrAnchorMetaName}),st=!0}),onUnmounted(()=>{tt.unmount({id:`n-${N}`})}),Object.assign({bodyWidth:n,summaryPlacement:se,dataTableSlots:r,componentId:N,scrollbarInstRef:Se,virtualListRef:Ee,emptyElRef:ie,summary:M,mergedClsPrefix:s,mergedTheme:l,scrollX:d,cols:g,loading:q,bodyShowHeaderOnly:ce,shouldDisplaySomeTablePart:J,empty:ee,paginatedDataAndInfo:computed(()=>{const{value:We}=Y;let Je=!1;return{data:y.value.map(We?(Xe,_e)=>(Xe.isLeaf||(Je=!0),{tmNode:Xe,key:Xe.key,striped:_e%2===1,index:_e}):(Xe,_e)=>(Xe.isLeaf||(Je=!0),{tmNode:Xe,key:Xe.key,striped:!1,index:_e})),hasChildren:Je}}),rawPaginatedData:b,fixedColumnLeftMap:C,fixedColumnRightMap:x,currentPage:S,rowClassName:_,renderExpand:R,mergedExpandedRowKeySet:ne,hoverKey:P,mergedSortState:O,virtualScroll:D,mergedTableLayout:Q,childTriggerColIndex:G,indent:K,rowProps:W,maxHeight:j,loadingKeySet:re,expandable:te,stickyExpandedRows:oe,renderExpandIcon:ae,scrollbarProps:Ae,setHeaderScrollLeft:pe,handleMouseenterTable:be,handleVirtualListScroll:Ue,handleVirtualListResize:Ge,handleMouseleaveTable:de,virtualListContainer:we,virtualListContent:Me,handleTableBodyScroll:Ce,handleCheckboxUpdateChecked:me,handleRadioUpdateChecked:Te,handleUpdateExpanded:$e,renderCell:Be},Ze)},render(){const{mergedTheme:t,scrollX:r,mergedClsPrefix:n,virtualScroll:o,maxHeight:s,mergedTableLayout:l,flexHeight:d,loadingKeySet:g,onResize:y,setHeaderScrollLeft:b}=this,C=r!==void 0||s!==void 0||d,x=!C&&l==="auto",S=r!==void 0||x,_={minWidth:formatLength(r)||"100%"};r&&(_.width="100%");const w=h(NScrollbar$1,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:C||x,class:`${n}-data-table-base-table-body`,style:this.bodyStyle,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,contentStyle:_,container:o?this.virtualListContainer:void 0,content:o?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:S,onScroll:o?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:b,onResize:y}),{default:()=>{const $={},I={},{cols:B,paginatedDataAndInfo:R,mergedTheme:P,fixedColumnLeftMap:M,fixedColumnRightMap:O,currentPage:D,rowClassName:N,mergedSortState:H,mergedExpandedRowKeySet:Q,stickyExpandedRows:G,componentId:K,childTriggerColIndex:W,expandable:j,rowProps:Y,handleMouseenterTable:q,handleMouseleaveTable:X,renderExpand:re,summary:te,handleCheckboxUpdateChecked:oe,handleRadioUpdateChecked:ae,handleUpdateExpanded:se}=this,{length:ue}=B;let Ae;const{data:pe,hasChildren:he}=R,Ce=he?flatten$2(pe,Q):pe;if(te){const J=te(this.rawPaginatedData);if(Array.isArray(J)){const ce=J.map((fe,ne)=>({isSummaryRow:!0,key:`__n_summary__${ne}`,tmNode:{rawNode:fe,disabled:!0},index:-1}));Ae=this.summaryPlacement==="top"?[...ce,...Ce]:[...Ce,...ce]}else{const ce={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:J,disabled:!0},index:-1};Ae=this.summaryPlacement==="top"?[ce,...Ce]:[...Ce,ce]}}else Ae=Ce;const ve=he?{width:pxfy(this.indent)}:void 0,ye=[];Ae.forEach(J=>{re&&Q.has(J.key)&&(!j||j(J.tmNode.rawNode))?ye.push(J,{isExpandedRow:!0,key:`${J.key}-expand`,tmNode:J.tmNode,index:J.index}):ye.push(J)});const{length:Be}=ye,Se={};pe.forEach(({tmNode:J},ce)=>{Se[ce]=J.key});const Ee=G?this.bodyWidth:null,ie=Ee===null?void 0:`${Ee}px`,ee=(J,ce,fe)=>{const{index:ne}=J;if("isExpandedRow"in J){const{tmNode:{key:Ue,rawNode:Ge}}=J;return h("tr",{class:`${n}-data-table-tr`,key:`${Ue}__expand`},h("td",{class:[`${n}-data-table-td`,`${n}-data-table-td--last-col`,ce+1===Be&&`${n}-data-table-td--last-row`],colspan:ue},G?h("div",{class:`${n}-data-table-expand`,style:{width:ie}},re(Ge,ne)):re(Ge,ne)))}const le="isSummaryRow"in J,me=!le&&J.striped,{tmNode:Te,key:ge}=J,{rawNode:$e}=Te,de=Q.has(ge),be=Y?Y($e,ne):void 0,we=typeof N=="string"?N:createRowClassName($e,ne,N);return h("tr",Object.assign({onMouseenter:()=>{this.hoverKey=ge},key:ge,class:[`${n}-data-table-tr`,le&&`${n}-data-table-tr--summary`,me&&`${n}-data-table-tr--striped`,we]},be),B.map((Ue,Ge)=>{var Ze,tt,st,We,Je;if(ce in $){const Qe=$[ce],Pe=Qe.indexOf(Ge);if(~Pe)return Qe.splice(Pe,1),null}const{column:Ye}=Ue,Xe=getColKey(Ue),{rowSpan:_e,colSpan:xe}=Ye,Le=le?((Ze=J.tmNode.rawNode[Xe])===null||Ze===void 0?void 0:Ze.colSpan)||1:xe?xe($e,ne):1,Ve=le?((tt=J.tmNode.rawNode[Xe])===null||tt===void 0?void 0:tt.rowSpan)||1:_e?_e($e,ne):1,ze=Ge+Le===ue,Re=ce+Ve===Be,Ne=Ve>1;if(Ne&&(I[ce]={[Ge]:[]}),Le>1||Ne)for(let Qe=ce;Qe<ce+Ve;++Qe){Ne&&I[ce][Ge].push(Se[Qe]);for(let Pe=Ge;Pe<Ge+Le;++Pe)Qe===ce&&Pe===Ge||(Qe in $?$[Qe].push(Pe):$[Qe]=[Pe])}const je=Ne?this.hoverKey:null,{cellProps:nt}=Ye,De=nt==null?void 0:nt($e,ne);return h("td",Object.assign({},De,{key:Xe,style:[{textAlign:Ye.align||void 0,left:pxfy((st=M[Xe])===null||st===void 0?void 0:st.start),right:pxfy((We=O[Xe])===null||We===void 0?void 0:We.start)},(De==null?void 0:De.style)||""],colspan:Le,rowspan:fe?void 0:Ve,"data-col-key":Xe,class:[`${n}-data-table-td`,Ye.className,De==null?void 0:De.class,le&&`${n}-data-table-td--summary`,(je!==null&&I[ce][Ge].includes(je)||isColumnSorting(Ye,H))&&`${n}-data-table-td--hover`,Ye.fixed&&`${n}-data-table-td--fixed-${Ye.fixed}`,Ye.align&&`${n}-data-table-td--${Ye.align}-align`,Ye.type==="selection"&&`${n}-data-table-td--selection`,Ye.type==="expand"&&`${n}-data-table-td--expand`,ze&&`${n}-data-table-td--last-col`,Re&&`${n}-data-table-td--last-row`]}),he&&Ge===W?[repeat(le?0:J.tmNode.level,h("div",{class:`${n}-data-table-indent`,style:ve})),le||J.tmNode.isLeaf?h("div",{class:`${n}-data-table-expand-placeholder`}):h(ExpandTrigger,{class:`${n}-data-table-expand-trigger`,clsPrefix:n,expanded:de,renderExpandIcon:this.renderExpandIcon,loading:g.has(J.key),onClick:()=>{se(ge,J.tmNode)}})]:null,Ye.type==="selection"?le?null:Ye.multiple===!1?h(RenderSafeRadio,{key:D,rowKey:ge,disabled:J.tmNode.disabled,onUpdateChecked:()=>ae(J.tmNode)}):h(RenderSafeCheckbox,{key:D,rowKey:ge,disabled:J.tmNode.disabled,onUpdateChecked:(Qe,Pe)=>oe(J.tmNode,Qe,Pe.shiftKey)}):Ye.type==="expand"?le?null:!Ye.expandable||((Je=Ye.expandable)===null||Je===void 0?void 0:Je.call(Ye,$e))?h(ExpandTrigger,{clsPrefix:n,expanded:de,renderExpandIcon:this.renderExpandIcon,onClick:()=>se(ge,null)}):null:h(Cell,{clsPrefix:n,index:ne,row:$e,column:Ye,isSummary:le,mergedTheme:P,renderCell:this.renderCell}))}))};return o?h(VVirtualList,{ref:"virtualListRef",items:ye,itemSize:28,visibleItemsTag:VirtualListItemWrapper,visibleItemsProps:{clsPrefix:n,id:K,cols:B,onMouseenter:q,onMouseleave:X},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:_,itemResizable:!0},{default:({item:J,index:ce})=>ee(J,ce,!0)}):h("table",{class:`${n}-data-table-table`,onMouseleave:X,onMouseenter:q,style:{tableLayout:this.mergedTableLayout}},h("colgroup",null,B.map(J=>h("col",{key:J.key,style:J.style}))),this.showHeader?h(TableHeader,{discrete:!1}):null,this.empty?null:h("tbody",{"data-n-id":K,class:`${n}-data-table-tbody`},ye.map((J,ce)=>ee(J,ce,!1))))}});if(this.empty){const $=()=>h("div",{class:[`${n}-data-table-empty`,this.loading&&`${n}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},resolveSlot(this.dataTableSlots.empty,()=>[h(NEmpty,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?h(Fragment,null,w,$()):h(VResizeObserver,{onResize:this.onResize},{default:$})}return w}}),MainTable=defineComponent({setup(){const{mergedClsPrefixRef:t,rightFixedColumnsRef:r,leftFixedColumnsRef:n,bodyWidthRef:o,maxHeightRef:s,minHeightRef:l,flexHeightRef:d,syncScrollState:g}=inject(dataTableInjectionKey),y=ref(null),b=ref(null),C=ref(null),x=ref(!(n.value.length||r.value.length)),S=computed(()=>({maxHeight:formatLength(s.value),minHeight:formatLength(l.value)}));function _(B){o.value=B.contentRect.width,g(),x.value||(x.value=!0)}function w(){const{value:B}=y;return B?B.$el:null}function $(){const{value:B}=b;return B?B.getScrollContainer():null}const I={getBodyElement:$,getHeaderElement:w,scrollTo(B,R){var P;(P=b.value)===null||P===void 0||P.scrollTo(B,R)}};return watchEffect(()=>{const{value:B}=C;if(!B)return;const R=`${t.value}-data-table-base-table--transition-disabled`;x.value?setTimeout(()=>{B.classList.remove(R)},0):B.classList.add(R)}),Object.assign({maxHeight:s,mergedClsPrefix:t,selfElRef:C,headerInstRef:y,bodyInstRef:b,bodyStyle:S,flexHeight:d,handleBodyResize:_},I)},render(){const{mergedClsPrefix:t,maxHeight:r,flexHeight:n}=this,o=r===void 0&&!n;return h("div",{class:`${t}-data-table-base-table`,ref:"selfElRef"},o?null:h(TableHeader,{ref:"headerInstRef"}),h(TableBody,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:o,flexHeight:n,onResize:this.handleBodyResize}))}});function useCheck(t,r){const{paginatedDataRef:n,treeMateRef:o,selectionColumnRef:s}=r,l=ref(t.defaultCheckedRowKeys),d=computed(()=>{var O;const{checkedRowKeys:D}=t,N=D===void 0?l.value:D;return((O=s.value)===null||O===void 0?void 0:O.multiple)===!1?{checkedKeys:N.slice(0,1),indeterminateKeys:[]}:o.value.getCheckedKeys(N,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})}),g=computed(()=>d.value.checkedKeys),y=computed(()=>d.value.indeterminateKeys),b=computed(()=>new Set(g.value)),C=computed(()=>new Set(y.value)),x=computed(()=>{const{value:O}=b;return n.value.reduce((D,N)=>{const{key:H,disabled:Q}=N;return D+(!Q&&O.has(H)?1:0)},0)}),S=computed(()=>n.value.filter(O=>O.disabled).length),_=computed(()=>{const{length:O}=n.value,{value:D}=C;return x.value>0&&x.value<O-S.value||n.value.some(N=>D.has(N.key))}),w=computed(()=>{const{length:O}=n.value;return x.value!==0&&x.value===O-S.value}),$=computed(()=>n.value.length===0);function I(O,D,N){const{"onUpdate:checkedRowKeys":H,onUpdateCheckedRowKeys:Q,onCheckedRowKeysChange:G}=t,K=[],{value:{getNode:W}}=o;O.forEach(j=>{var Y;const q=(Y=W(j))===null||Y===void 0?void 0:Y.rawNode;K.push(q)}),H&&call(H,O,K,{row:D,action:N}),Q&&call(Q,O,K,{row:D,action:N}),G&&call(G,O,K,{row:D,action:N}),l.value=O}function B(O,D=!1,N){if(!t.loading){if(D){I(Array.isArray(O)?O.slice(0,1):[O],N,"check");return}I(o.value.check(O,g.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,N,"check")}}function R(O,D){t.loading||I(o.value.uncheck(O,g.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,D,"uncheck")}function P(O=!1){const{value:D}=s;if(!D||t.loading)return;const N=[];(O?o.value.treeNodes:n.value).forEach(H=>{H.disabled||N.push(H.key)}),I(o.value.check(N,g.value,{cascade:!0,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function M(O=!1){const{value:D}=s;if(!D||t.loading)return;const N=[];(O?o.value.treeNodes:n.value).forEach(H=>{H.disabled||N.push(H.key)}),I(o.value.uncheck(N,g.value,{cascade:!0,allowNotLoaded:t.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:b,mergedCheckedRowKeysRef:g,mergedInderminateRowKeySetRef:C,someRowsCheckedRef:_,allRowsCheckedRef:w,headerCheckboxDisabledRef:$,doUpdateCheckedRowKeys:I,doCheckAll:P,doUncheckAll:M,doCheck:B,doUncheck:R}}function getMultiplePriority(t){return typeof t=="object"&&typeof t.multiple=="number"?t.multiple:!1}function getSortFunction(t,r){return r&&(t===void 0||t==="default"||typeof t=="object"&&t.compare==="default")?getDefaultSorterFn(r):typeof t=="function"?t:t&&typeof t=="object"&&t.compare&&t.compare!=="default"?t.compare:!1}function getDefaultSorterFn(t){return(r,n)=>{const o=r[t],s=n[t];return typeof o=="number"&&typeof s=="number"?o-s:typeof o=="string"&&typeof s=="string"?o.localeCompare(s):0}}function useSorter(t,{dataRelatedColsRef:r,filteredDataRef:n}){const o=[];r.value.forEach(_=>{var w;_.sorter!==void 0&&S(o,{columnKey:_.key,sorter:_.sorter,order:(w=_.defaultSortOrder)!==null&&w!==void 0?w:!1})});const s=ref(o),l=computed(()=>{const _=r.value.filter(I=>I.type!=="selection"&&I.sorter!==void 0&&(I.sortOrder==="ascend"||I.sortOrder==="descend"||I.sortOrder===!1)),w=_.filter(I=>I.sortOrder!==!1);if(w.length)return w.map(I=>({columnKey:I.key,order:I.sortOrder,sorter:I.sorter}));if(_.length)return[];const{value:$}=s;return Array.isArray($)?$:$?[$]:[]}),d=computed(()=>{const _=l.value.slice().sort((w,$)=>{const I=getMultiplePriority(w.sorter)||0;return(getMultiplePriority($.sorter)||0)-I});return _.length?n.value.slice().sort(($,I)=>{let B=0;return _.some(R=>{const{columnKey:P,sorter:M,order:O}=R,D=getSortFunction(M,P);return D&&O&&(B=D($.rawNode,I.rawNode),B!==0)?(B=B*getFlagOfOrder(O),!0):!1}),B}):n.value});function g(_){let w=l.value.slice();return _&&getMultiplePriority(_.sorter)!==!1?(w=w.filter($=>getMultiplePriority($.sorter)!==!1),S(w,_),w):_||null}function y(_){const w=g(_);b(w)}function b(_){const{"onUpdate:sorter":w,onUpdateSorter:$,onSorterChange:I}=t;w&&call(w,_),$&&call($,_),I&&call(I,_),s.value=_}function C(_,w="ascend"){if(!_)x();else{const $=r.value.find(B=>B.type!=="selection"&&B.type!=="expand"&&B.key===_);if(!($!=null&&$.sorter))return;const I=$.sorter;y({columnKey:_,sorter:I,order:w})}}function x(){b(null)}function S(_,w){const $=_.findIndex(I=>(w==null?void 0:w.columnKey)&&I.columnKey===w.columnKey);$!==void 0&&$>=0?_[$]=w:_.push(w)}return{clearSorter:x,sort:C,sortedDataRef:d,mergedSortStateRef:l,deriveNextSorter:y}}function useTableData(t,{dataRelatedColsRef:r}){const n=computed(()=>{const ae=se=>{for(let ue=0;ue<se.length;++ue){const Ae=se[ue];if("children"in Ae)return ae(Ae.children);if(Ae.type==="selection")return Ae}return null};return ae(t.columns)}),o=computed(()=>{const{childrenKey:ae}=t;return createTreeMate(t.data,{ignoreEmptyChildren:!0,getKey:t.rowKey,getChildren:se=>se[ae],getDisabled:se=>{var ue,Ae;return!!(!((Ae=(ue=n.value)===null||ue===void 0?void 0:ue.disabled)===null||Ae===void 0)&&Ae.call(ue,se))}})}),s=useMemo(()=>{const{columns:ae}=t,{length:se}=ae;let ue=null;for(let Ae=0;Ae<se;++Ae){const pe=ae[Ae];if(!pe.type&&ue===null&&(ue=Ae),"tree"in pe&&pe.tree)return Ae}return ue||0}),l=ref({}),d=ref(1),g=ref(10),y=computed(()=>{const ae=r.value.filter(Ae=>Ae.filterOptionValues!==void 0||Ae.filterOptionValue!==void 0),se={};return ae.forEach(Ae=>{var pe;Ae.type==="selection"||Ae.type==="expand"||(Ae.filterOptionValues===void 0?se[Ae.key]=(pe=Ae.filterOptionValue)!==null&&pe!==void 0?pe:null:se[Ae.key]=Ae.filterOptionValues)}),Object.assign(createShallowClonedObject(l.value),se)}),b=computed(()=>{const ae=y.value,{columns:se}=t;function ue(he){return(Ce,ve)=>!!~String(ve[he]).indexOf(String(Ce))}const{value:{treeNodes:Ae}}=o,pe=[];return se.forEach(he=>{he.type==="selection"||he.type==="expand"||"children"in he||pe.push([he.key,he])}),Ae?Ae.filter(he=>{const{rawNode:Ce}=he;for(const[ve,ye]of pe){let Be=ae[ve];if(Be==null||(Array.isArray(Be)||(Be=[Be]),!Be.length))continue;const Se=ye.filter==="default"?ue(ve):ye.filter;if(ye&&typeof Se=="function")if(ye.filterMode==="and"){if(Be.some(Ee=>!Se(Ee,Ce)))return!1}else{if(Be.some(Ee=>Se(Ee,Ce)))continue;return!1}}return!0}):[]}),{sortedDataRef:C,deriveNextSorter:x,mergedSortStateRef:S,sort:_,clearSorter:w}=useSorter(t,{dataRelatedColsRef:r,filteredDataRef:b});r.value.forEach(ae=>{var se;if(ae.filter){const ue=ae.defaultFilterOptionValues;ae.filterMultiple?l.value[ae.key]=ue||[]:ue!==void 0?l.value[ae.key]=ue===null?[]:ue:l.value[ae.key]=(se=ae.defaultFilterOptionValue)!==null&&se!==void 0?se:null}});const $=computed(()=>{const{pagination:ae}=t;if(ae!==!1)return ae.page}),I=computed(()=>{const{pagination:ae}=t;if(ae!==!1)return ae.pageSize}),B=useMergedState($,d),R=useMergedState(I,g),P=useMemo(()=>{const ae=B.value;return t.remote?ae:Math.max(1,Math.min(Math.ceil(b.value.length/R.value),ae))}),M=computed(()=>{const{pagination:ae}=t;if(ae){const{pageCount:se}=ae;if(se!==void 0)return se}}),O=computed(()=>{if(t.remote)return o.value.treeNodes;if(!t.pagination)return C.value;const ae=R.value,se=(P.value-1)*ae;return C.value.slice(se,se+ae)}),D=computed(()=>O.value.map(ae=>ae.rawNode));function N(ae){const{pagination:se}=t;if(se){const{onChange:ue,"onUpdate:page":Ae,onUpdatePage:pe}=se;ue&&call(ue,ae),pe&&call(pe,ae),Ae&&call(Ae,ae),K(ae)}}function H(ae){const{pagination:se}=t;if(se){const{onPageSizeChange:ue,"onUpdate:pageSize":Ae,onUpdatePageSize:pe}=se;ue&&call(ue,ae),pe&&call(pe,ae),Ae&&call(Ae,ae),W(ae)}}const Q=computed(()=>{if(t.remote){const{pagination:ae}=t;if(ae){const{itemCount:se}=ae;if(se!==void 0)return se}return}return b.value.length}),G=computed(()=>Object.assign(Object.assign({},t.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":N,"onUpdate:pageSize":H,page:P.value,pageSize:R.value,pageCount:Q.value===void 0?M.value:void 0,itemCount:Q.value}));function K(ae){const{"onUpdate:page":se,onPageChange:ue,onUpdatePage:Ae}=t;Ae&&call(Ae,ae),se&&call(se,ae),ue&&call(ue,ae),d.value=ae}function W(ae){const{"onUpdate:pageSize":se,onPageSizeChange:ue,onUpdatePageSize:Ae}=t;ue&&call(ue,ae),Ae&&call(Ae,ae),se&&call(se,ae),g.value=ae}function j(ae,se){const{onUpdateFilters:ue,"onUpdate:filters":Ae,onFiltersChange:pe}=t;ue&&call(ue,ae,se),Ae&&call(Ae,ae,se),pe&&call(pe,ae,se),l.value=ae}function Y(ae,se,ue,Ae){var pe;(pe=t.onUnstableColumnResize)===null||pe===void 0||pe.call(t,ae,se,ue,Ae)}function q(ae){K(ae)}function X(){re()}function re(){te({})}function te(ae){oe(ae)}function oe(ae){ae?ae&&(l.value=createShallowClonedObject(ae)):l.value={}}return{treeMateRef:o,mergedCurrentPageRef:P,mergedPaginationRef:G,paginatedDataRef:O,rawPaginatedDataRef:D,mergedFilterStateRef:y,mergedSortStateRef:S,hoverKeyRef:ref(null),selectionColumnRef:n,childTriggerColIndexRef:s,doUpdateFilters:j,deriveNextSorter:x,doUpdatePageSize:W,doUpdatePage:K,onUnstableColumnResize:Y,filter:oe,filters:te,clearFilter:X,clearFilters:re,clearSorter:w,page:q,sort:_}}function useScroll(t,{mainTableInstRef:r,mergedCurrentPageRef:n,bodyWidthRef:o,scrollPartRef:s}){let l=0;const d=ref(null),g=ref([]),y=ref(null),b=ref([]),C=computed(()=>formatLength(t.scrollX)),x=computed(()=>t.columns.filter(Q=>Q.fixed==="left")),S=computed(()=>t.columns.filter(Q=>Q.fixed==="right")),_=computed(()=>{const Q={};let G=0;function K(W){W.forEach(j=>{const Y={start:G,end:0};Q[getColKey(j)]=Y,"children"in j?(K(j.children),Y.end=G):(G+=getNumberColWidth(j)||0,Y.end=G)})}return K(x.value),Q}),w=computed(()=>{const Q={};let G=0;function K(W){for(let j=W.length-1;j>=0;--j){const Y=W[j],q={start:G,end:0};Q[getColKey(Y)]=q,"children"in Y?(K(Y.children),q.end=G):(G+=getNumberColWidth(Y)||0,q.end=G)}}return K(S.value),Q});function $(){var Q,G;const{value:K}=x;let W=0;const{value:j}=_;let Y=null;for(let q=0;q<K.length;++q){const X=getColKey(K[q]);if(l>(((Q=j[X])===null||Q===void 0?void 0:Q.start)||0)-W)Y=X,W=((G=j[X])===null||G===void 0?void 0:G.end)||0;else break}d.value=Y}function I(){g.value=[];let Q=t.columns.find(G=>getColKey(G)===d.value);for(;Q&&"children"in Q;){const G=Q.children.length;if(G===0)break;const K=Q.children[G-1];g.value.push(getColKey(K)),Q=K}}function B(){var Q,G;const{value:K}=S,W=Number(t.scrollX),{value:j}=o;if(j===null)return;let Y=0,q=null;const{value:X}=w;for(let re=K.length-1;re>=0;--re){const te=getColKey(K[re]);if(Math.round(l+(((Q=X[te])===null||Q===void 0?void 0:Q.start)||0)+j-Y)<W)q=te,Y=((G=X[te])===null||G===void 0?void 0:G.end)||0;else break}y.value=q}function R(){b.value=[];let Q=t.columns.find(G=>getColKey(G)===y.value);for(;Q&&"children"in Q&&Q.children.length;){const G=Q.children[0];b.value.push(getColKey(G)),Q=G}}function P(){const Q=r.value?r.value.getHeaderElement():null,G=r.value?r.value.getBodyElement():null;return{header:Q,body:G}}function M(){const{body:Q}=P();Q&&(Q.scrollTop=0)}function O(){s.value==="head"&&beforeNextFrameOnce(N)}function D(Q){var G;(G=t.onScroll)===null||G===void 0||G.call(t,Q),s.value==="body"&&beforeNextFrameOnce(N)}function N(){const{header:Q,body:G}=P();if(!G)return;const{value:K}=o;if(K===null)return;const{value:W}=s;if(t.maxHeight||t.flexHeight){if(!Q)return;W==="head"?(l=Q.scrollLeft,G.scrollLeft=l):(l=G.scrollLeft,Q.scrollLeft=l)}else l=G.scrollLeft;$(),I(),B(),R()}function H(Q){const{header:G}=P();!G||(G.scrollLeft=Q,N())}return watch(n,()=>{M()}),{styleScrollXRef:C,fixedColumnLeftMapRef:_,fixedColumnRightMapRef:w,leftFixedColumnsRef:x,rightFixedColumnsRef:S,leftActiveFixedColKeyRef:d,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:y,rightActiveFixedChildrenColKeysRef:b,syncScrollState:N,handleTableBodyScroll:D,handleTableHeaderScroll:O,setHeaderScrollLeft:H}}function useResizable(){const t=ref({});function r(s){return t.value[s]}function n(s,l){isColumnResizable(s)&&"key"in s&&(t.value[s.key]=l)}function o(){t.value={}}return{getResizableWidth:r,doUpdateResizableWidth:n,clearResizableWidth:o}}function getRowsAndCols(t,r){const n=[],o=[],s=[],l=new WeakMap;let d=-1,g=0,y=!1;function b(S,_){_>d&&(n[_]=[],d=_);for(const w of S)if("children"in w)b(w.children,_+1);else{const $="key"in w?w.key:void 0;o.push({key:getColKey(w),style:createCustomWidthStyle(w,$!==void 0?formatLength(r($)):void 0),column:w}),g+=1,y||(y=!!w.ellipsis),s.push(w)}}b(t,0);let C=0;function x(S,_){let w=0;S.forEach(($,I)=>{var B;if("children"in $){const R=C,P={column:$,colSpan:0,rowSpan:1,isLast:!1};x($.children,_+1),$.children.forEach(M=>{var O,D;P.colSpan+=(D=(O=l.get(M))===null||O===void 0?void 0:O.colSpan)!==null&&D!==void 0?D:0}),R+P.colSpan===g&&(P.isLast=!0),l.set($,P),n[_].push(P)}else{if(C<w){C+=1;return}let R=1;"titleColSpan"in $&&(R=(B=$.titleColSpan)!==null&&B!==void 0?B:1),R>1&&(w=C+R);const P=C+R===g,M={column:$,colSpan:R,rowSpan:d-_+1,isLast:P};l.set($,M),n[_].push(M),C+=1}})}return x(t,0),{hasEllipsis:y,rows:n,cols:o,dataRelatedCols:s}}function useGroupHeader(t,r){const n=computed(()=>getRowsAndCols(t.columns,r));return{rowsRef:computed(()=>n.value.rows),colsRef:computed(()=>n.value.cols),hasEllipsisRef:computed(()=>n.value.hasEllipsis),dataRelatedColsRef:computed(()=>n.value.dataRelatedCols)}}function useExpand(t,r){const n=useMemo(()=>{for(const b of t.columns)if(b.type==="expand")return b.renderExpand}),o=useMemo(()=>{let b;for(const C of t.columns)if(C.type==="expand"){b=C.expandable;break}return b}),s=ref(t.defaultExpandAll?n!=null&&n.value?(()=>{const b=[];return r.value.treeNodes.forEach(C=>{var x;!((x=o.value)===null||x===void 0)&&x.call(o,C.rawNode)&&b.push(C.key)}),b})():r.value.getNonLeafKeys():t.defaultExpandedRowKeys),l=toRef(t,"expandedRowKeys"),d=toRef(t,"stickyExpandedRows"),g=useMergedState(l,s);function y(b){const{onUpdateExpandedRowKeys:C,"onUpdate:expandedRowKeys":x}=t;C&&call(C,b),x&&call(x,b),s.value=b}return{stickyExpandedRowsRef:d,mergedExpandedRowKeysRef:g,renderExpandRef:n,expandableRef:o,doUpdateExpandedRowKeys:y}}const fixedColumnStyle=createFixedColumnStyle();var style$H=c$1([cB("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);
|
|
`,[cB("data-table-wrapper",`
|
|
flex-grow: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
`),cM("flex-height",[c$1(">",[cB("data-table-wrapper",[c$1(">",[cB("data-table-base-table",`
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
`,[c$1(">",[cB("data-table-base-table-body","flex-basis: 0;",[c$1("&:last-child","flex-grow: 1;")])])])])])])]),c$1(">",[cB("data-table-loading-wrapper",`
|
|
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);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[fadeInScaleUpTransition({originalTransform:"translateX(-50%) translateY(-50%)"})])]),cB("data-table-expand-placeholder",`
|
|
margin-right: 8px;
|
|
display: inline-block;
|
|
width: 16px;
|
|
height: 1px;
|
|
`),cB("data-table-indent",`
|
|
display: inline-block;
|
|
height: 1px;
|
|
`),cB("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);
|
|
`,[cM("expanded",[cB("icon","transform: rotate(90deg);",[iconSwitchTransition({originalTransform:"rotate(90deg)"})]),cB("base-icon","transform: rotate(90deg);",[iconSwitchTransition({originalTransform:"rotate(90deg)"})])]),cB("base-loading",`
|
|
color: var(--n-loading-color);
|
|
transition: color .3s var(--n-bezier);
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[iconSwitchTransition()]),cB("icon",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[iconSwitchTransition()]),cB("base-icon",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[iconSwitchTransition()])]),cB("data-table-thead",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-merged-th-color);
|
|
`),cB("data-table-tr",`
|
|
box-sizing: border-box;
|
|
background-clip: padding-box;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`,[cB("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;
|
|
`),cM("striped","background-color: var(--n-merged-td-color-striped);",[cB("data-table-td","background-color: var(--n-merged-td-color-striped);")]),cNotM("summary",[c$1("&:hover","background-color: var(--n-merged-td-color-hover);",[c$1(">",[cB("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),cB("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);
|
|
`,[cM("filterable",`
|
|
padding-right: 36px;
|
|
`,[cM("sortable",`
|
|
padding-right: calc(var(--n-th-padding) + 36px);
|
|
`)]),fixedColumnStyle,cM("selection",`
|
|
padding: 0;
|
|
text-align: center;
|
|
line-height: 0;
|
|
z-index: 3;
|
|
`),cE("title-wrapper",`
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: nowrap;
|
|
max-width: 100%;
|
|
`,[cE("title",`
|
|
flex: 1;
|
|
min-width: 0;
|
|
`)]),cE("ellipsis",`
|
|
display: inline-block;
|
|
vertical-align: bottom;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
`),cM("hover",`
|
|
background-color: var(--n-merged-th-color-hover);
|
|
`),cM("sortable",`
|
|
cursor: pointer;
|
|
`,[cE("ellipsis",`
|
|
max-width: calc(100% - 18px);
|
|
`),c$1("&:hover",`
|
|
background-color: var(--n-merged-th-color-hover);
|
|
`)]),cB("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);
|
|
`,[cB("base-icon","transition: transform .3s var(--n-bezier)"),cM("desc",[cB("base-icon",`
|
|
transform: rotate(0deg);
|
|
`)]),cM("asc",[cB("base-icon",`
|
|
transform: rotate(-180deg);
|
|
`)]),cM("asc, desc",`
|
|
color: var(--n-th-icon-color-active);
|
|
`)]),cB("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;
|
|
`,[c$1("&::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: '';
|
|
`),cM("active",[c$1("&::after",`
|
|
background-color: var(--n-th-icon-color-active);
|
|
`)]),c$1("&:hover::after",`
|
|
background-color: var(--n-th-icon-color-active);
|
|
`)]),cB("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);
|
|
`,[c$1("&:hover",`
|
|
background-color: var(--n-th-button-color-hover);
|
|
`),cM("show",`
|
|
background-color: var(--n-th-button-color-hover);
|
|
`),cM("active",`
|
|
background-color: var(--n-th-button-color-hover);
|
|
color: var(--n-th-icon-color-active);
|
|
`)])]),cB("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);
|
|
`,[cM("expand",[cB("data-table-expand-trigger",`
|
|
margin-right: 0;
|
|
`)]),cM("last-row",`
|
|
border-bottom: 0 solid var(--n-merged-border-color);
|
|
`,[c$1("&::after",`
|
|
bottom: 0 !important;
|
|
`),c$1("&::before",`
|
|
bottom: 0 !important;
|
|
`)]),cM("summary",`
|
|
background-color: var(--n-merged-th-color);
|
|
`),cM("hover",`
|
|
background-color: var(--n-merged-td-color-hover);
|
|
`),cE("ellipsis",`
|
|
display: inline-block;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
white-space: nowrap;
|
|
max-width: 100%;
|
|
vertical-align: bottom;
|
|
`),cM("selection, expand",`
|
|
text-align: center;
|
|
padding: 0;
|
|
line-height: 0;
|
|
`),fixedColumnStyle]),cB("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);
|
|
`,[cM("hide",`
|
|
opacity: 0;
|
|
`)]),cE("pagination",`
|
|
margin: var(--n-pagination-margin);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
`),cB("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);
|
|
`),cM("loading",[cB("data-table-wrapper",`
|
|
opacity: var(--n-opacity-loading);
|
|
pointer-events: none;
|
|
`)]),cM("single-column",[cB("data-table-td",`
|
|
border-bottom: 0 solid var(--n-merged-border-color);
|
|
`,[c$1("&::after, &::before",`
|
|
bottom: 0 !important;
|
|
`)])]),cNotM("single-line",[cB("data-table-th",`
|
|
border-right: 1px solid var(--n-merged-border-color);
|
|
`,[cM("last",`
|
|
border-right: 0 solid var(--n-merged-border-color);
|
|
`)]),cB("data-table-td",`
|
|
border-right: 1px solid var(--n-merged-border-color);
|
|
`,[cM("last-col",`
|
|
border-right: 0 solid var(--n-merged-border-color);
|
|
`)])]),cM("bordered",[cB("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;
|
|
`)]),cB("data-table-base-table",[cM("transition-disabled",[cB("data-table-th",[c$1("&::after, &::before","transition: none;")]),cB("data-table-td",[c$1("&::after, &::before","transition: none;")])])]),cM("bottom-bordered",[cB("data-table-td",[cM("last-row",`
|
|
border-bottom: 1px solid var(--n-merged-border-color);
|
|
`)])]),cB("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);
|
|
`),cB("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;
|
|
`,[c$1("&::-webkit-scrollbar",`
|
|
width: 0;
|
|
height: 0;
|
|
`)]),cB("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;
|
|
`)]),cB("data-table-filter-menu",[cB("scrollbar",`
|
|
max-height: 240px;
|
|
`),cE("group",`
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding: 12px 12px 0 12px;
|
|
`,[cB("checkbox",`
|
|
margin-bottom: 12px;
|
|
margin-right: 0;
|
|
`),cB("radio",`
|
|
margin-bottom: 12px;
|
|
margin-right: 0;
|
|
`)]),cE("action",`
|
|
padding: var(--n-action-padding);
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
justify-content: space-evenly;
|
|
border-top: 1px solid var(--n-action-divider-color);
|
|
`,[cB("button",[c$1("&:not(:last-child)",`
|
|
margin: var(--n-action-button-margin);
|
|
`),c$1("&:last-child",`
|
|
margin-right: 0;
|
|
`)])]),cB("divider",`
|
|
margin: 0 !important;
|
|
`)]),insideModal(cB("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);
|
|
`)),insidePopover(cB("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 createFixedColumnStyle(){return[cM("fixed-left",`
|
|
left: 0;
|
|
position: sticky;
|
|
z-index: 2;
|
|
`,[c$1("&::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;
|
|
`)]),cM("fixed-right",`
|
|
right: 0;
|
|
position: sticky;
|
|
z-index: 1;
|
|
`,[c$1("&::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 NDataTable=defineComponent({name:"DataTable",alias:["AdvancedTable"],props:dataTableProps,setup(t,{slots:r}){const{mergedBorderedRef:n,mergedClsPrefixRef:o,inlineThemeDisabled:s}=useConfig(t),l=computed(()=>{const{bottomBordered:Ye}=t;return n.value?!1:Ye!==void 0?Ye:!0}),d=useTheme("DataTable","-data-table",style$H,dataTableLight$1,t,o),g=ref(null),y=ref("body");onDeactivated(()=>{y.value="body"});const b=ref(null),{getResizableWidth:C,clearResizableWidth:x,doUpdateResizableWidth:S}=useResizable(),{rowsRef:_,colsRef:w,dataRelatedColsRef:$,hasEllipsisRef:I}=useGroupHeader(t,C),{treeMateRef:B,mergedCurrentPageRef:R,paginatedDataRef:P,rawPaginatedDataRef:M,selectionColumnRef:O,hoverKeyRef:D,mergedPaginationRef:N,mergedFilterStateRef:H,mergedSortStateRef:Q,childTriggerColIndexRef:G,doUpdatePage:K,doUpdateFilters:W,onUnstableColumnResize:j,deriveNextSorter:Y,filter:q,filters:X,clearFilter:re,clearFilters:te,clearSorter:oe,page:ae,sort:se}=useTableData(t,{dataRelatedColsRef:$}),{doCheckAll:ue,doUncheckAll:Ae,doCheck:pe,doUncheck:he,headerCheckboxDisabledRef:Ce,someRowsCheckedRef:ve,allRowsCheckedRef:ye,mergedCheckedRowKeySetRef:Be,mergedInderminateRowKeySetRef:Se}=useCheck(t,{selectionColumnRef:O,treeMateRef:B,paginatedDataRef:P}),{stickyExpandedRowsRef:Ee,mergedExpandedRowKeysRef:ie,renderExpandRef:ee,expandableRef:J,doUpdateExpandedRowKeys:ce}=useExpand(t,B),{handleTableBodyScroll:fe,handleTableHeaderScroll:ne,syncScrollState:le,setHeaderScrollLeft:me,leftActiveFixedColKeyRef:Te,leftActiveFixedChildrenColKeysRef:ge,rightActiveFixedColKeyRef:$e,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:be,rightFixedColumnsRef:we,fixedColumnLeftMapRef:Me,fixedColumnRightMapRef:Ue}=useScroll(t,{scrollPartRef:y,bodyWidthRef:g,mainTableInstRef:b,mergedCurrentPageRef:R}),{localeRef:Ge}=useLocale("DataTable"),Ze=computed(()=>t.virtualScroll||t.flexHeight||t.maxHeight!==void 0||I.value?"fixed":t.tableLayout);provide(dataTableInjectionKey,{props:t,treeMateRef:B,renderExpandIconRef:toRef(t,"renderExpandIcon"),loadingKeySetRef:ref(new Set),slots:r,indentRef:toRef(t,"indent"),childTriggerColIndexRef:G,bodyWidthRef:g,componentId:createId(),hoverKeyRef:D,mergedClsPrefixRef:o,mergedThemeRef:d,scrollXRef:computed(()=>t.scrollX),rowsRef:_,colsRef:w,paginatedDataRef:P,leftActiveFixedColKeyRef:Te,leftActiveFixedChildrenColKeysRef:ge,rightActiveFixedColKeyRef:$e,rightActiveFixedChildrenColKeysRef:de,leftFixedColumnsRef:be,rightFixedColumnsRef:we,fixedColumnLeftMapRef:Me,fixedColumnRightMapRef:Ue,mergedCurrentPageRef:R,someRowsCheckedRef:ve,allRowsCheckedRef:ye,mergedSortStateRef:Q,mergedFilterStateRef:H,loadingRef:toRef(t,"loading"),rowClassNameRef:toRef(t,"rowClassName"),mergedCheckedRowKeySetRef:Be,mergedExpandedRowKeysRef:ie,mergedInderminateRowKeySetRef:Se,localeRef:Ge,scrollPartRef:y,expandableRef:J,stickyExpandedRowsRef:Ee,rowKeyRef:toRef(t,"rowKey"),renderExpandRef:ee,summaryRef:toRef(t,"summary"),virtualScrollRef:toRef(t,"virtualScroll"),rowPropsRef:toRef(t,"rowProps"),stripedRef:toRef(t,"striped"),checkOptionsRef:computed(()=>{const{value:Ye}=O;return Ye==null?void 0:Ye.options}),rawPaginatedDataRef:M,filterMenuCssVarsRef:computed(()=>{const{self:{actionDividerColor:Ye,actionPadding:Xe,actionButtonMargin:_e}}=d.value;return{"--n-action-padding":Xe,"--n-action-button-margin":_e,"--n-action-divider-color":Ye}}),onLoadRef:toRef(t,"onLoad"),mergedTableLayoutRef:Ze,maxHeightRef:toRef(t,"maxHeight"),minHeightRef:toRef(t,"minHeight"),flexHeightRef:toRef(t,"flexHeight"),headerCheckboxDisabledRef:Ce,paginationBehaviorOnFilterRef:toRef(t,"paginationBehaviorOnFilter"),summaryPlacementRef:toRef(t,"summaryPlacement"),scrollbarPropsRef:toRef(t,"scrollbarProps"),syncScrollState:le,doUpdatePage:K,doUpdateFilters:W,getResizableWidth:C,onUnstableColumnResize:j,clearResizableWidth:x,doUpdateResizableWidth:S,deriveNextSorter:Y,doCheck:pe,doUncheck:he,doCheckAll:ue,doUncheckAll:Ae,doUpdateExpandedRowKeys:ce,handleTableHeaderScroll:ne,handleTableBodyScroll:fe,setHeaderScrollLeft:me,renderCell:toRef(t,"renderCell")});const tt={filter:q,filters:X,clearFilters:te,clearSorter:oe,page:ae,sort:se,clearFilter:re,scrollTo:(Ye,Xe)=>{var _e;(_e=b.value)===null||_e===void 0||_e.scrollTo(Ye,Xe)}},st=computed(()=>{const{size:Ye}=t,{common:{cubicBezierEaseInOut:Xe},self:{borderColor:_e,tdColorHover:xe,thColor:Le,thColorHover:Ve,tdColor:ze,tdTextColor:Re,thTextColor:Ne,thFontWeight:je,thButtonColorHover:nt,thIconColor:De,thIconColorActive:Qe,filterSize:Pe,borderRadius:Ke,lineHeight:ot,tdColorModal:ft,thColorModal:it,borderColorModal:Ie,thColorHoverModal:Fe,tdColorHoverModal:et,borderColorPopover:At,thColorPopover:Oe,tdColorPopover:He,tdColorHoverPopover:at,thColorHoverPopover:ct,paginationMargin:dt,emptyPadding:yt,boxShadowAfter:gt,boxShadowBefore:ke,sorterSize:qe,resizableContainerSize:ut,resizableSize:ht,loadingColor:mt,loadingSize:pt,opacityLoading:xt,tdColorStriped:vt,tdColorStripedModal:bt,tdColorStripedPopover:St,[createKey("fontSize",Ye)]:_t,[createKey("thPadding",Ye)]:wt,[createKey("tdPadding",Ye)]:$t}}=d.value;return{"--n-font-size":_t,"--n-th-padding":wt,"--n-td-padding":$t,"--n-bezier":Xe,"--n-border-radius":Ke,"--n-line-height":ot,"--n-border-color":_e,"--n-border-color-modal":Ie,"--n-border-color-popover":At,"--n-th-color":Le,"--n-th-color-hover":Ve,"--n-th-color-modal":it,"--n-th-color-hover-modal":Fe,"--n-th-color-popover":Oe,"--n-th-color-hover-popover":ct,"--n-td-color":ze,"--n-td-color-hover":xe,"--n-td-color-modal":ft,"--n-td-color-hover-modal":et,"--n-td-color-popover":He,"--n-td-color-hover-popover":at,"--n-th-text-color":Ne,"--n-td-text-color":Re,"--n-th-font-weight":je,"--n-th-button-color-hover":nt,"--n-th-icon-color":De,"--n-th-icon-color-active":Qe,"--n-filter-size":Pe,"--n-pagination-margin":dt,"--n-empty-padding":yt,"--n-box-shadow-before":ke,"--n-box-shadow-after":gt,"--n-sorter-size":qe,"--n-resizable-container-size":ut,"--n-resizable-size":ht,"--n-loading-size":pt,"--n-loading-color":mt,"--n-opacity-loading":xt,"--n-td-color-striped":vt,"--n-td-color-striped-modal":bt,"--n-td-color-striped-popover":St}}),We=s?useThemeClass("data-table",computed(()=>t.size[0]),st,t):void 0,Je=computed(()=>{if(!t.pagination)return!1;if(t.paginateSinglePage)return!0;const Ye=N.value,{pageCount:Xe}=Ye;return Xe!==void 0?Xe>1:Ye.itemCount&&Ye.pageSize&&Ye.itemCount>Ye.pageSize});return Object.assign({mainTableInstRef:b,mergedClsPrefix:o,mergedTheme:d,paginatedData:P,mergedBordered:n,mergedBottomBordered:l,mergedPagination:N,mergedShowPagination:Je,cssVars:s?void 0:st,themeClass:We==null?void 0:We.themeClass,onRender:We==null?void 0:We.onRender},tt)},render(){const{mergedClsPrefix:t,themeClass:r,onRender:n,$slots:o,spinProps:s}=this;return n==null||n(),h("div",{class:[`${t}-data-table`,r,{[`${t}-data-table--bordered`]:this.mergedBordered,[`${t}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${t}-data-table--single-line`]:this.singleLine,[`${t}-data-table--single-column`]:this.singleColumn,[`${t}-data-table--loading`]:this.loading,[`${t}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},h("div",{class:`${t}-data-table-wrapper`},h(MainTable,{ref:"mainTableInstRef"})),this.mergedShowPagination?h("div",{class:`${t}-data-table__pagination`},h(NPagination,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,h(Transition,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?h("div",{class:`${t}-data-table-loading-wrapper`},resolveSlot(o.loading,()=>[h(NBaseLoading,Object.assign({clsPrefix:t,strokeWidth:20},s))])):null}))}}),commonVars$7={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};const self$C=t=>{const{popoverColor:r,textColor2:n,primaryColor:o,hoverColor:s,dividerColor:l,opacityDisabled:d,boxShadow2:g,borderRadius:y,iconColor:b,iconColorDisabled:C}=t;return Object.assign(Object.assign({},commonVars$7),{panelColor:r,panelBoxShadow:g,panelDividerColor:l,itemTextColor:n,itemTextColorActive:o,itemColorHover:s,itemOpacityDisabled:d,itemBorderRadius:y,borderRadius:y,iconColor:b,iconColorDisabled:C})},timePickerLight={name:"TimePicker",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Button:buttonLight$1,Input:inputLight$1},self:self$C};var timePickerLight$1=timePickerLight;const timePickerDark={name:"TimePicker",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Button:buttonDark$1,Input:inputDark$1},self:self$C};var timePickerDark$1=timePickerDark,commonVars$6={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 self$B=t=>{const{hoverColor:r,fontSize:n,textColor2:o,textColorDisabled:s,popoverColor:l,primaryColor:d,borderRadiusSmall:g,iconColor:y,iconColorDisabled:b,textColor1:C,dividerColor:x,boxShadow2:S,borderRadius:_,fontWeightStrong:w}=t;return Object.assign(Object.assign({},commonVars$6),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:o,itemTextColorDisabled:s,itemTextColorActive:l,itemTextColorCurrent:d,itemColorIncluded:changeColor(d,{alpha:.1}),itemColorHover:r,itemColorDisabled:r,itemColorActive:d,itemBorderRadius:g,panelColor:l,panelTextColor:o,arrowColor:y,calendarTitleTextColor:C,calendarTitleColorHover:r,calendarDaysTextColor:o,panelHeaderDividerColor:x,calendarDaysDividerColor:x,calendarDividerColor:x,panelActionDividerColor:x,panelBoxShadow:S,panelBorderRadius:_,calendarTitleFontWeight:w,scrollItemBorderRadius:_,iconColor:y,iconColorDisabled:b})},datePickerLight={name:"DatePicker",common:commonLight,peers:{Input:inputLight$1,Button:buttonLight$1,TimePicker:timePickerLight$1,Scrollbar:scrollbarLight$1},self:self$B};var datePickerLight$1=datePickerLight;const datePickerDark={name:"DatePicker",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,TimePicker:timePickerDark$1,Scrollbar:scrollbarDark$1},self(t){const{popoverColor:r,hoverColor:n,primaryColor:o}=t,s=self$B(t);return s.itemColorDisabled=composite(r,n),s.itemColorIncluded=changeColor(o,{alpha:.15}),s.itemColorHover=composite(r,n),s}};var datePickerDark$1=datePickerDark;function uniCalendarValidation(t,r){const n=computed(()=>{const{isTimeDisabled:C}=t,{value:x}=r;if(!(x===null||Array.isArray(x)))return C==null?void 0:C(x)}),o=computed(()=>{var C;return(C=n.value)===null||C===void 0?void 0:C.isHourDisabled}),s=computed(()=>{var C;return(C=n.value)===null||C===void 0?void 0:C.isMinuteDisabled}),l=computed(()=>{var C;return(C=n.value)===null||C===void 0?void 0:C.isSecondDisabled}),d=computed(()=>{const{type:C,isDateDisabled:x}=t,{value:S}=r;return S===null||Array.isArray(S)||!["date","datetime"].includes(C)||!x?!1:x(S)}),g=computed(()=>{const{type:C}=t,{value:x}=r;if(x===null||C==="datetime"||Array.isArray(x))return!1;const S=new Date(x),_=S.getHours(),w=S.getMinutes(),$=S.getMinutes();return(o.value?o.value(_):!1)||(s.value?s.value(w,_):!1)||(l.value?l.value($,w,_):!1)}),y=computed(()=>d.value||g.value);return{isValueInvalidRef:computed(()=>{const{type:C}=t;return C==="date"?d.value:C==="datetime"?y.value:!1}),isDateInvalidRef:d,isTimeInvalidRef:g,isDateTimeInvalidRef:y,isHourDisabledRef:o,isMinuteDisabledRef:s,isSecondDisabledRef:l}}function dualCalendarValidation(t,r){const n=computed(()=>{const{isTimeDisabled:x}=t,{value:S}=r;return!Array.isArray(S)||!x?[void 0,void 0]:[x==null?void 0:x(S[0],"start",S),x==null?void 0:x(S[1],"end",S)]}),o={isStartHourDisabledRef:computed(()=>{var x;return(x=n.value[0])===null||x===void 0?void 0:x.isHourDisabled}),isEndHourDisabledRef:computed(()=>{var x;return(x=n.value[1])===null||x===void 0?void 0:x.isHourDisabled}),isStartMinuteDisabledRef:computed(()=>{var x;return(x=n.value[0])===null||x===void 0?void 0:x.isMinuteDisabled}),isEndMinuteDisabledRef:computed(()=>{var x;return(x=n.value[1])===null||x===void 0?void 0:x.isMinuteDisabled}),isStartSecondDisabledRef:computed(()=>{var x;return(x=n.value[0])===null||x===void 0?void 0:x.isSecondDisabled}),isEndSecondDisabledRef:computed(()=>{var x;return(x=n.value[1])===null||x===void 0?void 0:x.isSecondDisabled})},s=computed(()=>{const{type:x,isDateDisabled:S}=t,{value:_}=r;return _===null||!Array.isArray(_)||!["daterange","datetimerange"].includes(x)||!S?!1:S(_[0],"start",_)}),l=computed(()=>{const{type:x,isDateDisabled:S}=t,{value:_}=r;return _===null||!Array.isArray(_)||!["daterange","datetimerange"].includes(x)||!S?!1:S(_[1],"end",_)}),d=computed(()=>{const{type:x}=t,{value:S}=r;if(S===null||!Array.isArray(S)||x!=="datetimerange")return!1;const _=getHours(S[0]),w=getMinutes(S[0]),$=getSeconds(S[0]),{isStartHourDisabledRef:I,isStartMinuteDisabledRef:B,isStartSecondDisabledRef:R}=o;return(I.value?I.value(_):!1)||(B.value?B.value(w,_):!1)||(R.value?R.value($,w,_):!1)}),g=computed(()=>{const{type:x}=t,{value:S}=r;if(S===null||!Array.isArray(S)||x!=="datetimerange")return!1;const _=getHours(S[1]),w=getMinutes(S[1]),$=getSeconds(S[1]),{isEndHourDisabledRef:I,isEndMinuteDisabledRef:B,isEndSecondDisabledRef:R}=o;return(I.value?I.value(_):!1)||(B.value?B.value(w,_):!1)||(R.value?R.value($,w,_):!1)}),y=computed(()=>s.value||d.value),b=computed(()=>l.value||g.value),C=computed(()=>y.value||b.value);return Object.assign(Object.assign({},o),{isStartDateInvalidRef:s,isEndDateInvalidRef:l,isStartTimeInvalidRef:d,isEndTimeInvalidRef:g,isStartValueInvalidRef:y,isEndValueInvalidRef:b,isRangeInvalidRef:C})}const datePickerInjectionKey="n-date-picker";var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getDefaultExportFromCjs(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var o=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return t[n]}})}),r}function commonjsRequire(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cloneObject$1={exports:{}},assign$4={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o,s){if(o==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var l in s)Object.prototype.hasOwnProperty.call(s,l)&&(o[l]=s[l]);return o}t.exports=r.default})(assign$4,assign$4.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=s;var n=o(assign$4.exports);function o(l){return l&&l.__esModule?l:{default:l}}function s(l){return(0,n.default)({},l)}t.exports=r.default})(cloneObject$1,cloneObject$1.exports);var cloneObject=getDefaultExportFromCjs(cloneObject$1.exports),format$6={exports:{}},isValid={exports:{}},isDate$2={exports:{}},requiredArgs={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o,s){if(s.length<o)throw new TypeError(o+" argument"+(o>1?"s":"")+" required, but only "+s.length+" present")}t.exports=r.default})(requiredArgs,requiredArgs.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=l;var n=o(requiredArgs.exports);function o(d){return d&&d.__esModule?d:{default:d}}function s(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(y){return typeof y}:s=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},s(d)}function l(d){return(0,n.default)(1,arguments),d instanceof Date||s(d)==="object"&&Object.prototype.toString.call(d)==="[object Date]"}t.exports=r.default})(isDate$2,isDate$2.exports);var toDate$1={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=l;var n=o(requiredArgs.exports);function o(d){return d&&d.__esModule?d:{default:d}}function s(d){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?s=function(y){return typeof y}:s=function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},s(d)}function l(d){(0,n.default)(1,arguments);var g=Object.prototype.toString.call(d);return d instanceof Date||s(d)==="object"&&g==="[object Date]"?new Date(d.getTime()):typeof d=="number"||g==="[object Number]"?new Date(d):((typeof d=="string"||g==="[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://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}t.exports=r.default})(toDate$1,toDate$1.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var n=l(isDate$2.exports),o=l(toDate$1.exports),s=l(requiredArgs.exports);function l(g){return g&&g.__esModule?g:{default:g}}function d(g){if((0,s.default)(1,arguments),!(0,n.default)(g)&&typeof g!="number")return!1;var y=(0,o.default)(g);return!isNaN(Number(y))}t.exports=r.default})(isValid,isValid.exports);var subMilliseconds={exports:{}},addMilliseconds={exports:{}},toInteger$1={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o){if(o===null||o===!0||o===!1)return NaN;var s=Number(o);return isNaN(s)?s:s<0?Math.ceil(s):Math.floor(s)}t.exports=r.default})(toInteger$1,toInteger$1.exports);var toInteger=getDefaultExportFromCjs(toInteger$1.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var n=l(toInteger$1.exports),o=l(toDate$1.exports),s=l(requiredArgs.exports);function l(g){return g&&g.__esModule?g:{default:g}}function d(g,y){(0,s.default)(2,arguments);var b=(0,o.default)(g).getTime(),C=(0,n.default)(y);return new Date(b+C)}t.exports=r.default})(addMilliseconds,addMilliseconds.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var n=l(addMilliseconds.exports),o=l(requiredArgs.exports),s=l(toInteger$1.exports);function l(g){return g&&g.__esModule?g:{default:g}}function d(g,y){(0,o.default)(2,arguments);var b=(0,s.default)(y);return(0,n.default)(g,-b)}t.exports=r.default})(subMilliseconds,subMilliseconds.exports);var formatters$2={exports:{}},getUTCDayOfYear={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var n=s(toDate$1.exports),o=s(requiredArgs.exports);function s(g){return g&&g.__esModule?g:{default:g}}var l=864e5;function d(g){(0,o.default)(1,arguments);var y=(0,n.default)(g),b=y.getTime();y.setUTCMonth(0,1),y.setUTCHours(0,0,0,0);var C=y.getTime(),x=b-C;return Math.floor(x/l)+1}t.exports=r.default})(getUTCDayOfYear,getUTCDayOfYear.exports);var getUTCISOWeek={exports:{}},startOfUTCISOWeek={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=l;var n=s(toDate$1.exports),o=s(requiredArgs.exports);function s(d){return d&&d.__esModule?d:{default:d}}function l(d){(0,o.default)(1,arguments);var g=1,y=(0,n.default)(d),b=y.getUTCDay(),C=(b<g?7:0)+b-g;return y.setUTCDate(y.getUTCDate()-C),y.setUTCHours(0,0,0,0),y}t.exports=r.default})(startOfUTCISOWeek,startOfUTCISOWeek.exports);var startOfUTCISOWeekYear={exports:{}},getUTCISOWeekYear={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var n=l(toDate$1.exports),o=l(requiredArgs.exports),s=l(startOfUTCISOWeek.exports);function l(g){return g&&g.__esModule?g:{default:g}}function d(g){(0,o.default)(1,arguments);var y=(0,n.default)(g),b=y.getUTCFullYear(),C=new Date(0);C.setUTCFullYear(b+1,0,4),C.setUTCHours(0,0,0,0);var x=(0,s.default)(C),S=new Date(0);S.setUTCFullYear(b,0,4),S.setUTCHours(0,0,0,0);var _=(0,s.default)(S);return y.getTime()>=x.getTime()?b+1:y.getTime()>=_.getTime()?b:b-1}t.exports=r.default})(getUTCISOWeekYear,getUTCISOWeekYear.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=d;var n=l(getUTCISOWeekYear.exports),o=l(startOfUTCISOWeek.exports),s=l(requiredArgs.exports);function l(g){return g&&g.__esModule?g:{default:g}}function d(g){(0,s.default)(1,arguments);var y=(0,n.default)(g),b=new Date(0);b.setUTCFullYear(y,0,4),b.setUTCHours(0,0,0,0);var C=(0,o.default)(b);return C}t.exports=r.default})(startOfUTCISOWeekYear,startOfUTCISOWeekYear.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=y;var n=d(toDate$1.exports),o=d(startOfUTCISOWeek.exports),s=d(startOfUTCISOWeekYear.exports),l=d(requiredArgs.exports);function d(b){return b&&b.__esModule?b:{default:b}}var g=6048e5;function y(b){(0,l.default)(1,arguments);var C=(0,n.default)(b),x=(0,o.default)(C).getTime()-(0,s.default)(C).getTime();return Math.round(x/g)+1}t.exports=r.default})(getUTCISOWeek,getUTCISOWeek.exports);var getUTCWeek={exports:{}},startOfUTCWeek={exports:{}},defaultOptions$1={};Object.defineProperty(defaultOptions$1,"__esModule",{value:!0});defaultOptions$1.getDefaultOptions=getDefaultOptions;defaultOptions$1.setDefaultOptions=setDefaultOptions;var defaultOptions={};function getDefaultOptions(){return defaultOptions}function setDefaultOptions(t){defaultOptions=t}(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=g;var n=d(toDate$1.exports),o=d(requiredArgs.exports),s=d(toInteger$1.exports),l=defaultOptions$1;function d(y){return y&&y.__esModule?y:{default:y}}function g(y,b){var C,x,S,_,w,$,I,B;(0,o.default)(1,arguments);var R=(0,l.getDefaultOptions)(),P=(0,s.default)((C=(x=(S=(_=b==null?void 0:b.weekStartsOn)!==null&&_!==void 0?_:b==null||(w=b.locale)===null||w===void 0||($=w.options)===null||$===void 0?void 0:$.weekStartsOn)!==null&&S!==void 0?S:R.weekStartsOn)!==null&&x!==void 0?x:(I=R.locale)===null||I===void 0||(B=I.options)===null||B===void 0?void 0:B.weekStartsOn)!==null&&C!==void 0?C:0);if(!(P>=0&&P<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var M=(0,n.default)(y),O=M.getUTCDay(),D=(O<P?7:0)+O-P;return M.setUTCDate(M.getUTCDate()-D),M.setUTCHours(0,0,0,0),M}t.exports=r.default})(startOfUTCWeek,startOfUTCWeek.exports);var startOfUTCWeekYear={exports:{}},getUTCWeekYear={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=y;var n=g(toDate$1.exports),o=g(requiredArgs.exports),s=g(startOfUTCWeek.exports),l=g(toInteger$1.exports),d=defaultOptions$1;function g(b){return b&&b.__esModule?b:{default:b}}function y(b,C){var x,S,_,w,$,I,B,R;(0,o.default)(1,arguments);var P=(0,n.default)(b),M=P.getUTCFullYear(),O=(0,d.getDefaultOptions)(),D=(0,l.default)((x=(S=(_=(w=C==null?void 0:C.firstWeekContainsDate)!==null&&w!==void 0?w:C==null||($=C.locale)===null||$===void 0||(I=$.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&_!==void 0?_:O.firstWeekContainsDate)!==null&&S!==void 0?S:(B=O.locale)===null||B===void 0||(R=B.options)===null||R===void 0?void 0:R.firstWeekContainsDate)!==null&&x!==void 0?x:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=new Date(0);N.setUTCFullYear(M+1,0,D),N.setUTCHours(0,0,0,0);var H=(0,s.default)(N,C),Q=new Date(0);Q.setUTCFullYear(M,0,D),Q.setUTCHours(0,0,0,0);var G=(0,s.default)(Q,C);return P.getTime()>=H.getTime()?M+1:P.getTime()>=G.getTime()?M:M-1}t.exports=r.default})(getUTCWeekYear,getUTCWeekYear.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=y;var n=g(getUTCWeekYear.exports),o=g(requiredArgs.exports),s=g(startOfUTCWeek.exports),l=g(toInteger$1.exports),d=defaultOptions$1;function g(b){return b&&b.__esModule?b:{default:b}}function y(b,C){var x,S,_,w,$,I,B,R;(0,o.default)(1,arguments);var P=(0,d.getDefaultOptions)(),M=(0,l.default)((x=(S=(_=(w=C==null?void 0:C.firstWeekContainsDate)!==null&&w!==void 0?w:C==null||($=C.locale)===null||$===void 0||(I=$.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&_!==void 0?_:P.firstWeekContainsDate)!==null&&S!==void 0?S:(B=P.locale)===null||B===void 0||(R=B.options)===null||R===void 0?void 0:R.firstWeekContainsDate)!==null&&x!==void 0?x:1),O=(0,n.default)(b,C),D=new Date(0);D.setUTCFullYear(O,0,M),D.setUTCHours(0,0,0,0);var N=(0,s.default)(D,C);return N}t.exports=r.default})(startOfUTCWeekYear,startOfUTCWeekYear.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=y;var n=d(toDate$1.exports),o=d(startOfUTCWeek.exports),s=d(startOfUTCWeekYear.exports),l=d(requiredArgs.exports);function d(b){return b&&b.__esModule?b:{default:b}}var g=6048e5;function y(b,C){(0,l.default)(1,arguments);var x=(0,n.default)(b),S=(0,o.default)(x,C).getTime()-(0,s.default)(x,C).getTime();return Math.round(S/g)+1}t.exports=r.default})(getUTCWeek,getUTCWeek.exports);var addLeadingZeros$1={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o,s){for(var l=o<0?"-":"",d=Math.abs(o).toString();d.length<s;)d="0"+d;return l+d}t.exports=r.default})(addLeadingZeros$1,addLeadingZeros$1.exports);var lightFormatters={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(addLeadingZeros$1.exports);function o(d){return d&&d.__esModule?d:{default:d}}var s={y:function(g,y){var b=g.getUTCFullYear(),C=b>0?b:1-b;return(0,n.default)(y==="yy"?C%100:C,y.length)},M:function(g,y){var b=g.getUTCMonth();return y==="M"?String(b+1):(0,n.default)(b+1,2)},d:function(g,y){return(0,n.default)(g.getUTCDate(),y.length)},a:function(g,y){var b=g.getUTCHours()/12>=1?"pm":"am";switch(y){case"a":case"aa":return b.toUpperCase();case"aaa":return b;case"aaaaa":return b[0];case"aaaa":default:return b==="am"?"a.m.":"p.m."}},h:function(g,y){return(0,n.default)(g.getUTCHours()%12||12,y.length)},H:function(g,y){return(0,n.default)(g.getUTCHours(),y.length)},m:function(g,y){return(0,n.default)(g.getUTCMinutes(),y.length)},s:function(g,y){return(0,n.default)(g.getUTCSeconds(),y.length)},S:function(g,y){var b=y.length,C=g.getUTCMilliseconds(),x=Math.floor(C*Math.pow(10,b-3));return(0,n.default)(x,y.length)}},l=s;r.default=l,t.exports=r.default})(lightFormatters,lightFormatters.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=b(getUTCDayOfYear.exports),o=b(getUTCISOWeek.exports),s=b(getUTCISOWeekYear.exports),l=b(getUTCWeek.exports),d=b(getUTCWeekYear.exports),g=b(addLeadingZeros$1.exports),y=b(lightFormatters.exports);function b(I){return I&&I.__esModule?I:{default:I}}var C={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},x={G:function(B,R,P){var M=B.getUTCFullYear()>0?1:0;switch(R){case"G":case"GG":case"GGG":return P.era(M,{width:"abbreviated"});case"GGGGG":return P.era(M,{width:"narrow"});case"GGGG":default:return P.era(M,{width:"wide"})}},y:function(B,R,P){if(R==="yo"){var M=B.getUTCFullYear(),O=M>0?M:1-M;return P.ordinalNumber(O,{unit:"year"})}return y.default.y(B,R)},Y:function(B,R,P,M){var O=(0,d.default)(B,M),D=O>0?O:1-O;if(R==="YY"){var N=D%100;return(0,g.default)(N,2)}return R==="Yo"?P.ordinalNumber(D,{unit:"year"}):(0,g.default)(D,R.length)},R:function(B,R){var P=(0,s.default)(B);return(0,g.default)(P,R.length)},u:function(B,R){var P=B.getUTCFullYear();return(0,g.default)(P,R.length)},Q:function(B,R,P){var M=Math.ceil((B.getUTCMonth()+1)/3);switch(R){case"Q":return String(M);case"QQ":return(0,g.default)(M,2);case"Qo":return P.ordinalNumber(M,{unit:"quarter"});case"QQQ":return P.quarter(M,{width:"abbreviated",context:"formatting"});case"QQQQQ":return P.quarter(M,{width:"narrow",context:"formatting"});case"QQQQ":default:return P.quarter(M,{width:"wide",context:"formatting"})}},q:function(B,R,P){var M=Math.ceil((B.getUTCMonth()+1)/3);switch(R){case"q":return String(M);case"qq":return(0,g.default)(M,2);case"qo":return P.ordinalNumber(M,{unit:"quarter"});case"qqq":return P.quarter(M,{width:"abbreviated",context:"standalone"});case"qqqqq":return P.quarter(M,{width:"narrow",context:"standalone"});case"qqqq":default:return P.quarter(M,{width:"wide",context:"standalone"})}},M:function(B,R,P){var M=B.getUTCMonth();switch(R){case"M":case"MM":return y.default.M(B,R);case"Mo":return P.ordinalNumber(M+1,{unit:"month"});case"MMM":return P.month(M,{width:"abbreviated",context:"formatting"});case"MMMMM":return P.month(M,{width:"narrow",context:"formatting"});case"MMMM":default:return P.month(M,{width:"wide",context:"formatting"})}},L:function(B,R,P){var M=B.getUTCMonth();switch(R){case"L":return String(M+1);case"LL":return(0,g.default)(M+1,2);case"Lo":return P.ordinalNumber(M+1,{unit:"month"});case"LLL":return P.month(M,{width:"abbreviated",context:"standalone"});case"LLLLL":return P.month(M,{width:"narrow",context:"standalone"});case"LLLL":default:return P.month(M,{width:"wide",context:"standalone"})}},w:function(B,R,P,M){var O=(0,l.default)(B,M);return R==="wo"?P.ordinalNumber(O,{unit:"week"}):(0,g.default)(O,R.length)},I:function(B,R,P){var M=(0,o.default)(B);return R==="Io"?P.ordinalNumber(M,{unit:"week"}):(0,g.default)(M,R.length)},d:function(B,R,P){return R==="do"?P.ordinalNumber(B.getUTCDate(),{unit:"date"}):y.default.d(B,R)},D:function(B,R,P){var M=(0,n.default)(B);return R==="Do"?P.ordinalNumber(M,{unit:"dayOfYear"}):(0,g.default)(M,R.length)},E:function(B,R,P){var M=B.getUTCDay();switch(R){case"E":case"EE":case"EEE":return P.day(M,{width:"abbreviated",context:"formatting"});case"EEEEE":return P.day(M,{width:"narrow",context:"formatting"});case"EEEEEE":return P.day(M,{width:"short",context:"formatting"});case"EEEE":default:return P.day(M,{width:"wide",context:"formatting"})}},e:function(B,R,P,M){var O=B.getUTCDay(),D=(O-M.weekStartsOn+8)%7||7;switch(R){case"e":return String(D);case"ee":return(0,g.default)(D,2);case"eo":return P.ordinalNumber(D,{unit:"day"});case"eee":return P.day(O,{width:"abbreviated",context:"formatting"});case"eeeee":return P.day(O,{width:"narrow",context:"formatting"});case"eeeeee":return P.day(O,{width:"short",context:"formatting"});case"eeee":default:return P.day(O,{width:"wide",context:"formatting"})}},c:function(B,R,P,M){var O=B.getUTCDay(),D=(O-M.weekStartsOn+8)%7||7;switch(R){case"c":return String(D);case"cc":return(0,g.default)(D,R.length);case"co":return P.ordinalNumber(D,{unit:"day"});case"ccc":return P.day(O,{width:"abbreviated",context:"standalone"});case"ccccc":return P.day(O,{width:"narrow",context:"standalone"});case"cccccc":return P.day(O,{width:"short",context:"standalone"});case"cccc":default:return P.day(O,{width:"wide",context:"standalone"})}},i:function(B,R,P){var M=B.getUTCDay(),O=M===0?7:M;switch(R){case"i":return String(O);case"ii":return(0,g.default)(O,R.length);case"io":return P.ordinalNumber(O,{unit:"day"});case"iii":return P.day(M,{width:"abbreviated",context:"formatting"});case"iiiii":return P.day(M,{width:"narrow",context:"formatting"});case"iiiiii":return P.day(M,{width:"short",context:"formatting"});case"iiii":default:return P.day(M,{width:"wide",context:"formatting"})}},a:function(B,R,P){var M=B.getUTCHours(),O=M/12>=1?"pm":"am";switch(R){case"a":case"aa":return P.dayPeriod(O,{width:"abbreviated",context:"formatting"});case"aaa":return P.dayPeriod(O,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return P.dayPeriod(O,{width:"narrow",context:"formatting"});case"aaaa":default:return P.dayPeriod(O,{width:"wide",context:"formatting"})}},b:function(B,R,P){var M=B.getUTCHours(),O;switch(M===12?O=C.noon:M===0?O=C.midnight:O=M/12>=1?"pm":"am",R){case"b":case"bb":return P.dayPeriod(O,{width:"abbreviated",context:"formatting"});case"bbb":return P.dayPeriod(O,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return P.dayPeriod(O,{width:"narrow",context:"formatting"});case"bbbb":default:return P.dayPeriod(O,{width:"wide",context:"formatting"})}},B:function(B,R,P){var M=B.getUTCHours(),O;switch(M>=17?O=C.evening:M>=12?O=C.afternoon:M>=4?O=C.morning:O=C.night,R){case"B":case"BB":case"BBB":return P.dayPeriod(O,{width:"abbreviated",context:"formatting"});case"BBBBB":return P.dayPeriod(O,{width:"narrow",context:"formatting"});case"BBBB":default:return P.dayPeriod(O,{width:"wide",context:"formatting"})}},h:function(B,R,P){if(R==="ho"){var M=B.getUTCHours()%12;return M===0&&(M=12),P.ordinalNumber(M,{unit:"hour"})}return y.default.h(B,R)},H:function(B,R,P){return R==="Ho"?P.ordinalNumber(B.getUTCHours(),{unit:"hour"}):y.default.H(B,R)},K:function(B,R,P){var M=B.getUTCHours()%12;return R==="Ko"?P.ordinalNumber(M,{unit:"hour"}):(0,g.default)(M,R.length)},k:function(B,R,P){var M=B.getUTCHours();return M===0&&(M=24),R==="ko"?P.ordinalNumber(M,{unit:"hour"}):(0,g.default)(M,R.length)},m:function(B,R,P){return R==="mo"?P.ordinalNumber(B.getUTCMinutes(),{unit:"minute"}):y.default.m(B,R)},s:function(B,R,P){return R==="so"?P.ordinalNumber(B.getUTCSeconds(),{unit:"second"}):y.default.s(B,R)},S:function(B,R){return y.default.S(B,R)},X:function(B,R,P,M){var O=M._originalDate||B,D=O.getTimezoneOffset();if(D===0)return"Z";switch(R){case"X":return _(D);case"XXXX":case"XX":return w(D);case"XXXXX":case"XXX":default:return w(D,":")}},x:function(B,R,P,M){var O=M._originalDate||B,D=O.getTimezoneOffset();switch(R){case"x":return _(D);case"xxxx":case"xx":return w(D);case"xxxxx":case"xxx":default:return w(D,":")}},O:function(B,R,P,M){var O=M._originalDate||B,D=O.getTimezoneOffset();switch(R){case"O":case"OO":case"OOO":return"GMT"+S(D,":");case"OOOO":default:return"GMT"+w(D,":")}},z:function(B,R,P,M){var O=M._originalDate||B,D=O.getTimezoneOffset();switch(R){case"z":case"zz":case"zzz":return"GMT"+S(D,":");case"zzzz":default:return"GMT"+w(D,":")}},t:function(B,R,P,M){var O=M._originalDate||B,D=Math.floor(O.getTime()/1e3);return(0,g.default)(D,R.length)},T:function(B,R,P,M){var O=M._originalDate||B,D=O.getTime();return(0,g.default)(D,R.length)}};function S(I,B){var R=I>0?"-":"+",P=Math.abs(I),M=Math.floor(P/60),O=P%60;if(O===0)return R+String(M);var D=B||"";return R+String(M)+D+(0,g.default)(O,2)}function _(I,B){if(I%60===0){var R=I>0?"-":"+";return R+(0,g.default)(Math.abs(I)/60,2)}return w(I,B)}function w(I,B){var R=B||"",P=I>0?"-":"+",M=Math.abs(I),O=(0,g.default)(Math.floor(M/60),2),D=(0,g.default)(M%60,2);return P+O+R+D}var $=x;r.default=$,t.exports=r.default})(formatters$2,formatters$2.exports);var longFormatters={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=function(y,b){switch(y){case"P":return b.date({width:"short"});case"PP":return b.date({width:"medium"});case"PPP":return b.date({width:"long"});case"PPPP":default:return b.date({width:"full"})}},o=function(y,b){switch(y){case"p":return b.time({width:"short"});case"pp":return b.time({width:"medium"});case"ppp":return b.time({width:"long"});case"pppp":default:return b.time({width:"full"})}},s=function(y,b){var C=y.match(/(P+)(p+)?/)||[],x=C[1],S=C[2];if(!S)return n(y,b);var _;switch(x){case"P":_=b.dateTime({width:"short"});break;case"PP":_=b.dateTime({width:"medium"});break;case"PPP":_=b.dateTime({width:"long"});break;case"PPPP":default:_=b.dateTime({width:"full"});break}return _.replace("{{date}}",n(x,b)).replace("{{time}}",o(S,b))},l={p:o,P:s},d=l;r.default=d,t.exports=r.default})(longFormatters,longFormatters.exports);var getTimezoneOffsetInMilliseconds$1={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o){var s=new Date(Date.UTC(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()));return s.setUTCFullYear(o.getFullYear()),o.getTime()-s.getTime()}t.exports=r.default})(getTimezoneOffsetInMilliseconds$1,getTimezoneOffsetInMilliseconds$1.exports);var getTimezoneOffsetInMilliseconds=getDefaultExportFromCjs(getTimezoneOffsetInMilliseconds$1.exports),protectedTokens={};Object.defineProperty(protectedTokens,"__esModule",{value:!0});protectedTokens.isProtectedDayOfYearToken=isProtectedDayOfYearToken;protectedTokens.isProtectedWeekYearToken=isProtectedWeekYearToken;protectedTokens.throwProtectedError=throwProtectedError;var protectedDayOfYearTokens=["D","DD"],protectedWeekYearTokens=["YY","YYYY"];function isProtectedDayOfYearToken(t){return protectedDayOfYearTokens.indexOf(t)!==-1}function isProtectedWeekYearToken(t){return protectedWeekYearTokens.indexOf(t)!==-1}function throwProtectedError(t,r,n){if(t==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(r,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(r,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(r,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(t==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(r,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var defaultLocale={exports:{}},enUS={exports:{}},formatDistance={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={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"}},o=function(d,g,y){var b,C=n[d];return typeof C=="string"?b=C:g===1?b=C.one:b=C.other.replace("{{count}}",g.toString()),y!=null&&y.addSuffix?y.comparison&&y.comparison>0?"in "+b:b+" ago":b},s=o;r.default=s,t.exports=r.default})(formatDistance,formatDistance.exports);var formatLong={exports:{}},buildFormatLongFn={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o){return function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=s.width?String(s.width):o.defaultWidth,d=o.formats[l]||o.formats[o.defaultWidth];return d}}t.exports=r.default})(buildFormatLongFn,buildFormatLongFn.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(buildFormatLongFn.exports);function o(b){return b&&b.__esModule?b:{default:b}}var s={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},l={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},d={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},g={date:(0,n.default)({formats:s,defaultWidth:"full"}),time:(0,n.default)({formats:l,defaultWidth:"full"}),dateTime:(0,n.default)({formats:d,defaultWidth:"full"})},y=g;r.default=y,t.exports=r.default})(formatLong,formatLong.exports);var formatRelative={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},o=function(d,g,y,b){return n[d]},s=o;r.default=s,t.exports=r.default})(formatRelative,formatRelative.exports);var localize={exports:{}},buildLocalizeFn={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o){return function(s,l){var d=l!=null&&l.context?String(l.context):"standalone",g;if(d==="formatting"&&o.formattingValues){var y=o.defaultFormattingWidth||o.defaultWidth,b=l!=null&&l.width?String(l.width):y;g=o.formattingValues[b]||o.formattingValues[y]}else{var C=o.defaultWidth,x=l!=null&&l.width?String(l.width):o.defaultWidth;g=o.values[x]||o.values[C]}var S=o.argumentCallback?o.argumentCallback(s):s;return g[S]}}t.exports=r.default})(buildLocalizeFn,buildLocalizeFn.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(buildLocalizeFn.exports);function o(_){return _&&_.__esModule?_:{default:_}}var s={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},l={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},d={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"]},g={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"]},y={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"}},b={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(w,$){var I=Number(w),B=I%100;if(B>20||B<10)switch(B%10){case 1:return I+"st";case 2:return I+"nd";case 3:return I+"rd"}return I+"th"},x={ordinalNumber:C,era:(0,n.default)({values:s,defaultWidth:"wide"}),quarter:(0,n.default)({values:l,defaultWidth:"wide",argumentCallback:function(w){return w-1}}),month:(0,n.default)({values:d,defaultWidth:"wide"}),day:(0,n.default)({values:g,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:y,defaultWidth:"wide",formattingValues:b,defaultFormattingWidth:"wide"})},S=x;r.default=S,t.exports=r.default})(localize,localize.exports);var match={exports:{}},buildMatchFn={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(l){return function(d){var g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=g.width,b=y&&l.matchPatterns[y]||l.matchPatterns[l.defaultMatchWidth],C=d.match(b);if(!C)return null;var x=C[0],S=y&&l.parsePatterns[y]||l.parsePatterns[l.defaultParseWidth],_=Array.isArray(S)?s(S,function(I){return I.test(x)}):o(S,function(I){return I.test(x)}),w;w=l.valueCallback?l.valueCallback(_):_,w=g.valueCallback?g.valueCallback(w):w;var $=d.slice(x.length);return{value:w,rest:$}}}function o(l,d){for(var g in l)if(l.hasOwnProperty(g)&&d(l[g]))return g}function s(l,d){for(var g=0;g<l.length;g++)if(d(l[g]))return g}t.exports=r.default})(buildMatchFn,buildMatchFn.exports);var buildMatchPatternFn={exports:{}};(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=n;function n(o){return function(s){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=s.match(o.matchPattern);if(!d)return null;var g=d[0],y=s.match(o.parsePattern);if(!y)return null;var b=o.valueCallback?o.valueCallback(y[0]):y[0];b=l.valueCallback?l.valueCallback(b):b;var C=s.slice(g.length);return{value:b,rest:C}}}t.exports=r.default})(buildMatchPatternFn,buildMatchPatternFn.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=s(buildMatchFn.exports),o=s(buildMatchPatternFn.exports);function s(P){return P&&P.__esModule?P:{default:P}}var l=/^(\d+)(th|st|nd|rd)?/i,d=/\d+/i,g={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},y={any:[/^b/i,/^(a|c)/i]},b={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]},x={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},S={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]},_={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},w={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]},$={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},I={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}},B={ordinalNumber:(0,o.default)({matchPattern:l,parsePattern:d,valueCallback:function(M){return parseInt(M,10)}}),era:(0,n.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:y,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:b,defaultMatchWidth:"wide",parsePatterns:C,defaultParseWidth:"any",valueCallback:function(M){return M+1}}),month:(0,n.default)({matchPatterns:x,defaultMatchWidth:"wide",parsePatterns:S,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:_,defaultMatchWidth:"wide",parsePatterns:w,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:$,defaultMatchWidth:"any",parsePatterns:I,defaultParseWidth:"any"})},R=B;r.default=R,t.exports=r.default})(match,match.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=g(formatDistance.exports),o=g(formatLong.exports),s=g(formatRelative.exports),l=g(localize.exports),d=g(match.exports);function g(C){return C&&C.__esModule?C:{default:C}}var y={code:"en-US",formatDistance:n.default,formatLong:o.default,formatRelative:s.default,localize:l.default,match:d.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},b=y;r.default=b,t.exports=r.default})(enUS,enUS.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=o(enUS.exports);function o(l){return l&&l.__esModule?l:{default:l}}var s=n.default;r.default=s,t.exports=r.default})(defaultLocale,defaultLocale.exports);(function(t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=P;var n=_(isValid.exports),o=_(subMilliseconds.exports),s=_(toDate$1.exports),l=_(formatters$2.exports),d=_(longFormatters.exports),g=_(getTimezoneOffsetInMilliseconds$1.exports),y=protectedTokens,b=_(toInteger$1.exports),C=_(requiredArgs.exports),x=defaultOptions$1,S=_(defaultLocale.exports);function _(O){return O&&O.__esModule?O:{default:O}}var w=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,I=/^'([^]*?)'?$/,B=/''/g,R=/[a-zA-Z]/;function P(O,D,N){var H,Q,G,K,W,j,Y,q,X,re,te,oe,ae,se,ue,Ae,pe,he;(0,C.default)(2,arguments);var Ce=String(D),ve=(0,x.getDefaultOptions)(),ye=(H=(Q=N==null?void 0:N.locale)!==null&&Q!==void 0?Q:ve.locale)!==null&&H!==void 0?H:S.default,Be=(0,b.default)((G=(K=(W=(j=N==null?void 0:N.firstWeekContainsDate)!==null&&j!==void 0?j:N==null||(Y=N.locale)===null||Y===void 0||(q=Y.options)===null||q===void 0?void 0:q.firstWeekContainsDate)!==null&&W!==void 0?W:ve.firstWeekContainsDate)!==null&&K!==void 0?K:(X=ve.locale)===null||X===void 0||(re=X.options)===null||re===void 0?void 0:re.firstWeekContainsDate)!==null&&G!==void 0?G:1);if(!(Be>=1&&Be<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Se=(0,b.default)((te=(oe=(ae=(se=N==null?void 0:N.weekStartsOn)!==null&&se!==void 0?se:N==null||(ue=N.locale)===null||ue===void 0||(Ae=ue.options)===null||Ae===void 0?void 0:Ae.weekStartsOn)!==null&&ae!==void 0?ae:ve.weekStartsOn)!==null&&oe!==void 0?oe:(pe=ve.locale)===null||pe===void 0||(he=pe.options)===null||he===void 0?void 0:he.weekStartsOn)!==null&&te!==void 0?te:0);if(!(Se>=0&&Se<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!ye.localize)throw new RangeError("locale must contain localize property");if(!ye.formatLong)throw new RangeError("locale must contain formatLong property");var Ee=(0,s.default)(O);if(!(0,n.default)(Ee))throw new RangeError("Invalid time value");var ie=(0,g.default)(Ee),ee=(0,o.default)(Ee,ie),J={firstWeekContainsDate:Be,weekStartsOn:Se,locale:ye,_originalDate:Ee},ce=Ce.match($).map(function(fe){var ne=fe[0];if(ne==="p"||ne==="P"){var le=d.default[ne];return le(fe,ye.formatLong)}return fe}).join("").match(w).map(function(fe){if(fe==="''")return"'";var ne=fe[0];if(ne==="'")return M(fe);var le=l.default[ne];if(le)return!(N!=null&&N.useAdditionalWeekYearTokens)&&(0,y.isProtectedWeekYearToken)(fe)&&(0,y.throwProtectedError)(fe,D,String(O)),!(N!=null&&N.useAdditionalDayOfYearTokens)&&(0,y.isProtectedDayOfYearToken)(fe)&&(0,y.throwProtectedError)(fe,D,String(O)),le(ee,fe,ye.localize,J);if(ne.match(R))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ne+"`");return fe}).join("");return ce}function M(O){var D=O.match(I);return D?D[1].replace(B,"'"):O}t.exports=r.default})(format$6,format$6.exports);var dateFnsFormat=getDefaultExportFromCjs(format$6.exports);function tzIntlTimeZoneName(t,r,n){var o=getDTF(t,n.timeZone,n.locale);return o.formatToParts?partsTimeZone(o,r):hackyTimeZone(o,r)}function partsTimeZone(t,r){for(var n=t.formatToParts(r),o=n.length-1;o>=0;--o)if(n[o].type==="timeZoneName")return n[o].value}function hackyTimeZone(t,r){var n=t.format(r).replace(/\u200E/g,""),o=/ [\w-+ ]+$/.exec(n);return o?o[0].substr(1):""}function getDTF(t,r,n){if(n&&!n.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(n?[n.code,"en-US"]:void 0,{timeZone:r,timeZoneName:t})}function tzTokenizeDate(t,r){var n=getDateTimeFormat(r);return n.formatToParts?partsOffset(n,t):hackyOffset(n,t)}var typeToPos={year:0,month:1,day:2,hour:3,minute:4,second:5};function partsOffset(t,r){try{for(var n=t.formatToParts(r),o=[],s=0;s<n.length;s++){var l=typeToPos[n[s].type];l>=0&&(o[l]=parseInt(n[s].value,10))}return o}catch(d){if(d instanceof RangeError)return[NaN];throw d}}function hackyOffset(t,r){var n=t.format(r).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[o[3],o[1],o[2],o[4],o[5],o[6]]}var dtfCache={};function getDateTimeFormat(t){if(!dtfCache[t]){var r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n=r==="06/25/2014, 00:00:00"||r==="\u200E06\u200E/\u200E25\u200E/\u200E2014\u200E \u200E00\u200E:\u200E00\u200E:\u200E00";dtfCache[t]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:t,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return dtfCache[t]}function newDateUTC(t,r,n,o,s,l,d){var g=new Date(0);return g.setUTCFullYear(t,r,n),g.setUTCHours(o,s,l,d),g}var MILLISECONDS_IN_HOUR$1=36e5,MILLISECONDS_IN_MINUTE$2=6e4,patterns$1={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function tzParseTimezone(t,r,n){var o,s;if(!t||(o=patterns$1.timezoneZ.exec(t),o))return 0;var l;if(o=patterns$1.timezoneHH.exec(t),o)return l=parseInt(o[1],10),validateTimezone(l)?-(l*MILLISECONDS_IN_HOUR$1):NaN;if(o=patterns$1.timezoneHHMM.exec(t),o){l=parseInt(o[1],10);var d=parseInt(o[2],10);return validateTimezone(l,d)?(s=Math.abs(l)*MILLISECONDS_IN_HOUR$1+d*MILLISECONDS_IN_MINUTE$2,l>0?-s:s):NaN}if(isValidTimezoneIANAString(t)){r=new Date(r||Date.now());var g=n?r:toUtcDate(r),y=calcOffset(g,t),b=n?y:fixOffset(r,y,t);return-b}return NaN}function toUtcDate(t){return newDateUTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}function calcOffset(t,r){var n=tzTokenizeDate(t,r),o=newDateUTC(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),s=t.getTime(),l=s%1e3;return s-=l>=0?l:1e3+l,o-s}function fixOffset(t,r,n){var o=t.getTime(),s=o-r,l=calcOffset(new Date(s),n);if(r===l)return r;s-=l-r;var d=calcOffset(new Date(s),n);return l===d?l:Math.max(l,d)}function validateTimezone(t,r){return-23<=t&&t<=23&&(r==null||0<=r&&r<=59)}var validIANATimezoneCache={};function isValidTimezoneIANAString(t){if(validIANATimezoneCache[t])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:t}),validIANATimezoneCache[t]=!0,!0}catch(r){return!1}}var MILLISECONDS_IN_MINUTE$1=60*1e3,formatters={X:function(t,r,n,o){var s=getTimeZoneOffset(o.timeZone,o._originalDate||t);if(s===0)return"Z";switch(r){case"X":return formatTimezoneWithOptionalMinutes(s);case"XXXX":case"XX":return formatTimezone(s);case"XXXXX":case"XXX":default:return formatTimezone(s,":")}},x:function(t,r,n,o){var s=getTimeZoneOffset(o.timeZone,o._originalDate||t);switch(r){case"x":return formatTimezoneWithOptionalMinutes(s);case"xxxx":case"xx":return formatTimezone(s);case"xxxxx":case"xxx":default:return formatTimezone(s,":")}},O:function(t,r,n,o){var s=getTimeZoneOffset(o.timeZone,o._originalDate||t);switch(r){case"O":case"OO":case"OOO":return"GMT"+formatTimezoneShort(s,":");case"OOOO":default:return"GMT"+formatTimezone(s,":")}},z:function(t,r,n,o){var s=o._originalDate||t;switch(r){case"z":case"zz":case"zzz":return tzIntlTimeZoneName("short",s,o);case"zzzz":default:return tzIntlTimeZoneName("long",s,o)}}};function getTimeZoneOffset(t,r){var n=t?tzParseTimezone(t,r,!0)/MILLISECONDS_IN_MINUTE$1:r.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+t);return n}function addLeadingZeros(t,r){for(var n=t<0?"-":"",o=Math.abs(t).toString();o.length<r;)o="0"+o;return n+o}function formatTimezone(t,r){var n=r||"",o=t>0?"-":"+",s=Math.abs(t),l=addLeadingZeros(Math.floor(s/60),2),d=addLeadingZeros(Math.floor(s%60),2);return o+l+n+d}function formatTimezoneWithOptionalMinutes(t,r){if(t%60===0){var n=t>0?"-":"+";return n+addLeadingZeros(Math.abs(t)/60,2)}return formatTimezone(t,r)}function formatTimezoneShort(t,r){var n=t>0?"-":"+",o=Math.abs(t),s=Math.floor(o/60),l=o%60;if(l===0)return n+String(s);var d=r||"";return n+String(s)+d+addLeadingZeros(l,2)}var formatters$1=formatters,tzPattern=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,tzPattern$1=tzPattern,MILLISECONDS_IN_HOUR=36e5,MILLISECONDS_IN_MINUTE=6e4,DEFAULT_ADDITIONAL_DIGITS=2,patterns={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:tzPattern$1};function toDate(t,r){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(t===null)return new Date(NaN);var n=r||{},o=n.additionalDigits==null?DEFAULT_ADDITIONAL_DIGITS:toInteger(n.additionalDigits);if(o!==2&&o!==1&&o!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||typeof t=="object"&&Object.prototype.toString.call(t)==="[object Date]")return new Date(t.getTime());if(typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]")return new Date(t);if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var s=splitDateString(t),l=parseYear(s.date,o),d=l.year,g=l.restDateString,y=parseDate$1(g,d);if(isNaN(y))return new Date(NaN);if(y){var b=y.getTime(),C=0,x;if(s.time&&(C=parseTime(s.time),isNaN(C)))return new Date(NaN);if(s.timeZone||n.timeZone){if(x=tzParseTimezone(s.timeZone||n.timeZone,new Date(b+C)),isNaN(x))return new Date(NaN)}else x=getTimezoneOffsetInMilliseconds(new Date(b+C)),x=getTimezoneOffsetInMilliseconds(new Date(b+C+x));return new Date(b+C+x)}else return new Date(NaN)}function splitDateString(t){var r={},n=patterns.dateTimePattern.exec(t),o;if(n?(r.date=n[1],o=n[3]):(n=patterns.datePattern.exec(t),n?(r.date=n[1],o=n[2]):(r.date=null,o=t)),o){var s=patterns.timeZone.exec(o);s?(r.time=o.replace(s[1],""),r.timeZone=s[1].trim()):r.time=o}return r}function parseYear(t,r){var n=patterns.YYY[r],o=patterns.YYYYY[r],s;if(s=patterns.YYYY.exec(t)||o.exec(t),s){var l=s[1];return{year:parseInt(l,10),restDateString:t.slice(l.length)}}if(s=patterns.YY.exec(t)||n.exec(t),s){var d=s[1];return{year:parseInt(d,10)*100,restDateString:t.slice(d.length)}}return{year:null}}function parseDate$1(t,r){if(r===null)return null;var n,o,s,l;if(t.length===0)return o=new Date(0),o.setUTCFullYear(r),o;if(n=patterns.MM.exec(t),n)return o=new Date(0),s=parseInt(n[1],10)-1,validateDate(r,s)?(o.setUTCFullYear(r,s),o):new Date(NaN);if(n=patterns.DDD.exec(t),n){o=new Date(0);var d=parseInt(n[1],10);return validateDayOfYearDate(r,d)?(o.setUTCFullYear(r,0,d),o):new Date(NaN)}if(n=patterns.MMDD.exec(t),n){o=new Date(0),s=parseInt(n[1],10)-1;var g=parseInt(n[2],10);return validateDate(r,s,g)?(o.setUTCFullYear(r,s,g),o):new Date(NaN)}if(n=patterns.Www.exec(t),n)return l=parseInt(n[1],10)-1,validateWeekDate(r,l)?dayOfISOWeekYear(r,l):new Date(NaN);if(n=patterns.WwwD.exec(t),n){l=parseInt(n[1],10)-1;var y=parseInt(n[2],10)-1;return validateWeekDate(r,l,y)?dayOfISOWeekYear(r,l,y):new Date(NaN)}return null}function parseTime(t){var r,n,o;if(r=patterns.HH.exec(t),r)return n=parseFloat(r[1].replace(",",".")),validateTime(n)?n%24*MILLISECONDS_IN_HOUR:NaN;if(r=patterns.HHMM.exec(t),r)return n=parseInt(r[1],10),o=parseFloat(r[2].replace(",",".")),validateTime(n,o)?n%24*MILLISECONDS_IN_HOUR+o*MILLISECONDS_IN_MINUTE:NaN;if(r=patterns.HHMMSS.exec(t),r){n=parseInt(r[1],10),o=parseInt(r[2],10);var s=parseFloat(r[3].replace(",","."));return validateTime(n,o,s)?n%24*MILLISECONDS_IN_HOUR+o*MILLISECONDS_IN_MINUTE+s*1e3:NaN}return null}function dayOfISOWeekYear(t,r,n){r=r||0,n=n||0;var o=new Date(0);o.setUTCFullYear(t,0,4);var s=o.getUTCDay()||7,l=r*7+n+1-s;return o.setUTCDate(o.getUTCDate()+l),o}var DAYS_IN_MONTH=[31,28,31,30,31,30,31,31,30,31,30,31],DAYS_IN_MONTH_LEAP_YEAR=[31,29,31,30,31,30,31,31,30,31,30,31];function isLeapYearIndex(t){return t%400===0||t%4===0&&t%100!==0}function validateDate(t,r,n){if(r<0||r>11)return!1;if(n!=null){if(n<1)return!1;var o=isLeapYearIndex(t);if(o&&n>DAYS_IN_MONTH_LEAP_YEAR[r]||!o&&n>DAYS_IN_MONTH[r])return!1}return!0}function validateDayOfYearDate(t,r){if(r<1)return!1;var n=isLeapYearIndex(t);return!(n&&r>366||!n&&r>365)}function validateWeekDate(t,r,n){return!(r<0||r>52||n!=null&&(n<0||n>6))}function validateTime(t,r,n){return!(t!=null&&(t<0||t>=25)||r!=null&&(r<0||r>=60)||n!=null&&(n<0||n>=60))}var tzFormattingTokensRegExp=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function format$5(t,r,n){var o=String(r),s=n||{},l=o.match(tzFormattingTokensRegExp);if(l){var d=toDate(t,s);o=l.reduce(function(g,y){if(y[0]==="'")return g;var b=g.indexOf(y),C=g[b-1]==="'",x=g.replace(y,"'"+formatters$1[y[0]](d,y,null,s)+"'");return C?x.substring(0,b-1)+x.substring(b+1):x},o)}return dateFnsFormat(t,o,s)}function utcToZonedTime(t,r,n){var o=toDate(t,n),s=tzParseTimezone(r,o,!0),l=new Date(o.getTime()-s),d=new Date(0);return d.setFullYear(l.getUTCFullYear(),l.getUTCMonth(),l.getUTCDate()),d.setHours(l.getUTCHours(),l.getUTCMinutes(),l.getUTCSeconds(),l.getUTCMilliseconds()),d}function formatInTimeZone(t,r,n,o){var s=cloneObject(o);return s.timeZone=r,format$5(utcToZonedTime(t,r),n,s)}const time$2={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 getFixValue(t){return`00${t}`.slice(-2)}function getTimeUnits(t,r,n){return Array.isArray(r)?(n==="am"?r.filter(o=>o<12):n==="pm"?r.filter(o=>o>=12).map(o=>o===12?12:o-12):r).map(o=>getFixValue(o)):typeof r=="number"?n==="am"?t.filter(o=>{const s=Number(o);return s<12&&s%r===0}):n==="pm"?t.filter(o=>{const s=Number(o);return s>=12&&s%r===0}).map(o=>{const s=Number(o);return getFixValue(s===12?12:s-12)}):t.filter(o=>Number(o)%r===0):n==="am"?t.filter(o=>Number(o)<12):n==="pm"?t.map(o=>Number(o)).filter(o=>Number(o)>=12).map(o=>getFixValue(o===12?12:o-12)):t}function isTimeInStep(t,r,n){return n?typeof n=="number"?t%n===0:n.includes(t):!0}function findSimilarTime(t,r,n){const o=getTimeUnits(time$2[r],n).map(Number);let s,l;for(let d=0;d<o.length;++d){const g=o[d];if(g===t)return g;if(g>t){l=g;break}s=g}return s===void 0?(l||throwError$1("time-picker","Please set 'hours' or 'minutes' or 'seconds' props"),l):l===void 0||l-t>t-s?s:l}function getAmPm(t){return getHours(t)<12?"am":"pm"}const timePickerInjectionKey="n-time-picker";var PanelCol=defineComponent({name:"TimePickerPanelCol",props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:Number,default:null},onItemClick:Function},render(){const{activeValue:t,onItemClick:r,clsPrefix:n}=this;return this.data.map(o=>{const{label:s,disabled:l,value:d}=o,g=t===d;return h("div",{key:s,"data-active":g?"":null,class:[`${n}-time-picker-col__item`,g&&`${n}-time-picker-col__item--active`,l&&`${n}-time-picker-col__item--disabled`],onClick:r&&!l?()=>r(d):void 0},s)})}});const timePickerPanelProps={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 Panel=defineComponent({name:"TimePickerPanel",props:timePickerPanelProps,setup(t){const{mergedThemeRef:r,mergedClsPrefixRef:n}=inject(timePickerInjectionKey),o=computed(()=>{const{isHourDisabled:g,hours:y,use12Hours:b,amPmValue:C}=t;if(b){const x=C!=null?C:getAmPm(Date.now());return getTimeUnits(time$2.hours,y,x).map(S=>{const _=Number(S),w=x==="pm"&&_!==12?_+12:_;return{label:S,value:w,disabled:g?g(w):!1}})}else return getTimeUnits(time$2.hours,y).map(x=>({label:x,value:Number(x),disabled:g?g(Number(x)):!1}))}),s=computed(()=>{const{isMinuteDisabled:g,minutes:y}=t;return getTimeUnits(time$2.minutes,y).map(b=>({label:b,value:Number(b),disabled:g?g(Number(b),t.hourValue):!1}))}),l=computed(()=>{const{isSecondDisabled:g,seconds:y}=t;return getTimeUnits(time$2.seconds,y).map(b=>({label:b,value:Number(b),disabled:g?g(Number(b),t.minuteValue,t.hourValue):!1}))}),d=computed(()=>{const{isHourDisabled:g}=t;let y=!0,b=!0;for(let C=0;C<12;++C)if(!(g!=null&&g(C))){y=!1;break}for(let C=12;C<24;++C)if(!(g!=null&&g(C))){b=!1;break}return[{label:"AM",value:"am",disabled:y},{label:"PM",value:"pm",disabled:b}]});return{mergedTheme:r,mergedClsPrefix:n,hours:o,minutes:s,seconds:l,amPm:d,hourScrollRef:ref(null),minuteScrollRef:ref(null),secondScrollRef:ref(null),amPmScrollRef:ref(null)}},render(){var t,r,n;const{mergedClsPrefix:o,mergedTheme:s}=this;return h("div",{tabindex:0,class:`${o}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},h("div",{class:`${o}-time-picker-cols`},this.showHour?h("div",{class:[`${o}-time-picker-col`,this.isHourInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},h(NScrollbar$1,{ref:"hourScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:o,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null,this.showMinute?h("div",{class:[`${o}-time-picker-col`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${o}-time-picker-col--invalid`]},h(NScrollbar$1,{ref:"minuteScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:o,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null,this.showSecond?h("div",{class:[`${o}-time-picker-col`,this.isSecondInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},h(NScrollbar$1,{ref:"secondScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:o,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null,this.use12Hours?h("div",{class:[`${o}-time-picker-col`,this.isAmPmInvalid&&`${o}-time-picker-col--invalid`,this.transitionDisabled&&`${o}-time-picker-col--transition-disabled`]},h(NScrollbar$1,{ref:"amPmScrollRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[h(PanelCol,{clsPrefix:o,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),h("div",{class:`${o}-time-picker-col__padding`})]})):null),!((t=this.actions)===null||t===void 0)&&t.length?h("div",{class:`${o}-time-picker-actions`},!((r=this.actions)===null||r===void 0)&&r.includes("now")?h(NButton,{size:"tiny",theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(NButton,{size:"tiny",type:"primary",class:`${o}-time-picker-actions__confirm`,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,h(FocusDetector,{onFocus:this.onFocusDetectorFocus}))}}),style$G=c$1([cB("time-picker",`
|
|
z-index: auto;
|
|
position: relative;
|
|
`,[cB("time-picker-icon",`
|
|
color: var(--n-icon-color-override);
|
|
transition: color .3s var(--n-bezier);
|
|
`),cM("disabled",[cB("time-picker-icon",`
|
|
color: var(--n-icon-color-disabled-override);
|
|
`)])]),cB("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);
|
|
`,[fadeInScaleUpTransition(),cB("time-picker-actions",`
|
|
padding: var(--n-panel-action-padding);
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: space-evenly;
|
|
`),cB("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);
|
|
`),cB("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);
|
|
`,[cM("transition-disabled",[cE("item","transition: none;",[c$1("&::before","transition: none;")])]),cE("padding",`
|
|
height: calc(var(--n-item-height) * 5);
|
|
`),c$1("&:first-child","min-width: calc(var(--n-item-width) + 4px);",[cE("item",[c$1("&::before","left: 4px;")])]),cE("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;
|
|
`,[c$1("&::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);
|
|
`),cNotM("disabled",[c$1("&:hover::before",`
|
|
background-color: var(--n-item-color-hover);
|
|
`)]),cM("active",`
|
|
color: var(--n-item-text-color-active);
|
|
`,[c$1("&::before",`
|
|
background-color: var(--n-item-color-hover);
|
|
`)]),cM("disabled",`
|
|
opacity: var(--n-item-opacity-disabled);
|
|
cursor: not-allowed;
|
|
`)]),cM("invalid",[cE("item",[cM("active",`
|
|
text-decoration: line-through;
|
|
text-decoration-color: var(--n-item-text-color-active);
|
|
`)])])])])]);function validateUnits(t,r){return t===void 0?!0:Array.isArray(t)?t.every(n=>n>=0&&n<=r):t>=0&&t<=r}const timePickerProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.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:t=>validateUnits(t,23)},minutes:{type:[Number,Array],validator:t=>validateUnits(t,59)},seconds:{type:[Number,Array],validator:t=>validateUnits(t,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]});var NTimePicker=defineComponent({name:"TimePicker",props:timePickerProps,setup(t){const{mergedBorderedRef:r,mergedClsPrefixRef:n,namespaceRef:o,inlineThemeDisabled:s}=useConfig(t),{localeRef:l,dateLocaleRef:d}=useLocale("TimePicker"),g=useFormItem(t),{mergedSizeRef:y,mergedDisabledRef:b,mergedStatusRef:C}=g,x=useTheme("TimePicker","-time-picker",style$G,timePickerLight$1,t,n),S=useKeyboard$1(),_=ref(null),w=ref(null),$=computed(()=>({locale:d.value.locale}));function I(De){return De===null?null:strictParse(De,t.valueFormat||t.format,new Date,$.value).getTime()}const{defaultValue:B,defaultFormattedValue:R}=t,P=ref(R!==void 0?I(R):B),M=computed(()=>{const{formattedValue:De}=t;if(De!==void 0)return I(De);const{value:Qe}=t;return Qe!==void 0?Qe:P.value}),O=computed(()=>{const{timeZone:De}=t;return De?(Qe,Pe,Ke)=>formatInTimeZone(Qe,De,Pe,Ke):(Qe,Pe,Ke)=>format$7(Qe,Pe,Ke)}),D=ref("");watch(()=>t.timeZone,()=>{const De=M.value;D.value=De===null?"":O.value(De,t.format,$.value)},{immediate:!0});const N=ref(!1),H=toRef(t,"show"),Q=useMergedState(H,N),G=ref(M.value),K=ref(!1),W=computed(()=>l.value.now),j=computed(()=>t.placeholder!==void 0?t.placeholder:l.value.placeholder),Y=computed(()=>l.value.negativeText),q=computed(()=>l.value.positiveText),X=computed(()=>/H|h|K|k/.test(t.format)),re=computed(()=>t.format.includes("m")),te=computed(()=>t.format.includes("s")),oe=computed(()=>{const{isHourDisabled:De}=t;return he.value===null?!1:isTimeInStep(he.value,"hours",t.hours)?De?De(he.value):!1:!0}),ae=computed(()=>{const{value:De}=Ce,{value:Qe}=he;if(De===null||Qe===null)return!1;if(!isTimeInStep(De,"minutes",t.minutes))return!0;const{isMinuteDisabled:Pe}=t;return Pe?Pe(De,Qe):!1}),se=computed(()=>{const{value:De}=Ce,{value:Qe}=he,{value:Pe}=ve;if(Pe===null||De===null||Qe===null)return!1;if(!isTimeInStep(Pe,"seconds",t.seconds))return!0;const{isSecondDisabled:Ke}=t;return Ke?Ke(Pe,De,Qe):!1}),ue=computed(()=>oe.value||ae.value||se.value),Ae=computed(()=>t.format.length+4),pe=computed(()=>{const{value:De}=M;return De===null?null:getHours(De)<12?"am":"pm"}),he=computed(()=>{const{value:De}=M;return De===null?null:Number(O.value(De,"HH",$.value))}),Ce=computed(()=>{const{value:De}=M;return De===null?null:Number(O.value(De,"mm",$.value))}),ve=computed(()=>{const{value:De}=M;return De===null?null:Number(O.value(De,"ss",$.value))});function ye(De,Qe){const{onUpdateFormattedValue:Pe,"onUpdate:formattedValue":Ke}=t;Pe&&call(Pe,De,Qe),Ke&&call(Ke,De,Qe)}function Be(De){return De===null?null:O.value(De,t.valueFormat||t.format)}function Se(De){const{onUpdateValue:Qe,"onUpdate:value":Pe,onChange:Ke}=t,{nTriggerFormChange:ot,nTriggerFormInput:ft}=g,it=Be(De);Qe&&call(Qe,De,it),Pe&&call(Pe,De,it),Ke&&call(Ke,De,it),ye(it,De),P.value=De,ot(),ft()}function Ee(De){const{onFocus:Qe}=t,{nTriggerFormFocus:Pe}=g;Qe&&call(Qe,De),Pe()}function ie(De){const{onBlur:Qe}=t,{nTriggerFormBlur:Pe}=g;Qe&&call(Qe,De),Pe()}function ee(){const{onConfirm:De}=t;De&&call(De,M.value,Be(M.value))}function J(De){var Qe;De.stopPropagation(),Se(null),be(null),(Qe=t.onClear)===null||Qe===void 0||Qe.call(t)}function ce(){Ye({returnFocus:!0})}function fe(De){De.key==="Escape"&&Q.value&&markEventEffectPerformed(De)}function ne(De){var Qe;switch(De.key){case"Escape":Q.value&&(markEventEffectPerformed(De),Ye({returnFocus:!0}));break;case"Tab":S.shift&&De.target===((Qe=w.value)===null||Qe===void 0?void 0:Qe.$el)&&(De.preventDefault(),Ye({returnFocus:!0}));break}}function le(){K.value=!0,nextTick(()=>{K.value=!1})}function me(De){b.value||happensIn(De,"clear")||Q.value||We()}function Te(De){typeof De!="string"&&(M.value===null?Se(getTime$1(setHours(startOfHour(new Date),De))):Se(getTime$1(setHours(M.value,De))))}function ge(De){typeof De!="string"&&(M.value===null?Se(getTime$1(setMinutes(startOfMinute(new Date),De))):Se(getTime$1(setMinutes(M.value,De))))}function $e(De){typeof De!="string"&&(M.value===null?Se(getTime$1(setSeconds(startOfSecond(new Date),De))):Se(getTime$1(setSeconds(M.value,De))))}function de(De){const{value:Qe}=M;if(Qe===null){const Pe=new Date,Ke=getHours(Pe);De==="pm"&&Ke<12?Se(getTime$1(setHours(Pe,Ke+12))):De==="am"&&Ke>=12&&Se(getTime$1(setHours(Pe,Ke-12))),Se(getTime$1(Pe))}else{const Pe=getHours(Qe);De==="pm"&&Pe<12?Se(getTime$1(setHours(Qe,Pe+12))):De==="am"&&Pe>=12&&Se(getTime$1(setHours(Qe,Pe-12)))}}function be(De){De===void 0&&(De=M.value),De===null?D.value="":D.value=O.value(De,t.format,$.value)}function we(De){st(De)||Ee(De)}function Me(De){var Qe;if(!st(De))if(Q.value){const Pe=(Qe=w.value)===null||Qe===void 0?void 0:Qe.$el;Pe!=null&&Pe.contains(De.relatedTarget)||(be(),ie(De),Ye({returnFocus:!1}))}else be(),ie(De)}function Ue(){b.value||Q.value||We()}function Ge(){b.value||(be(),Ye({returnFocus:!1}))}function Ze(){if(!w.value)return;const{hourScrollRef:De,minuteScrollRef:Qe,secondScrollRef:Pe,amPmScrollRef:Ke}=w.value;[De,Qe,Pe,Ke].forEach(ot=>{var ft;if(!ot)return;const it=(ft=ot.contentRef)===null||ft===void 0?void 0:ft.querySelector("[data-active]");it&&ot.scrollTo({top:it.offsetTop})})}function tt(De){N.value=De;const{onUpdateShow:Qe,"onUpdate:show":Pe}=t;Qe&&call(Qe,De),Pe&&call(Pe,De)}function st(De){var Qe,Pe,Ke;return!!(((Pe=(Qe=_.value)===null||Qe===void 0?void 0:Qe.wrapperElRef)===null||Pe===void 0?void 0:Pe.contains(De.relatedTarget))||((Ke=w.value)===null||Ke===void 0?void 0:Ke.$el.contains(De.relatedTarget)))}function We(){G.value=M.value,tt(!0),nextTick(Ze)}function Je(De){var Qe,Pe;Q.value&&!(!((Pe=(Qe=_.value)===null||Qe===void 0?void 0:Qe.wrapperElRef)===null||Pe===void 0)&&Pe.contains(getPreciseEventTarget(De)))&&Ye({returnFocus:!1})}function Ye({returnFocus:De}){var Qe;Q.value&&(tt(!1),De&&((Qe=_.value)===null||Qe===void 0||Qe.focus()))}function Xe(De){if(De===""){Se(null);return}const Qe=strictParse(De,t.format,new Date,$.value);if(D.value=De,isValid$1(Qe)){const{value:Pe}=M;if(Pe!==null){const Ke=set$2(Pe,{hours:getHours(Qe),minutes:getMinutes(Qe),seconds:getSeconds(Qe)});Se(getTime$1(Ke))}else Se(getTime$1(Qe))}}function _e(){Se(G.value),tt(!1)}function xe(){const De=new Date,Qe={hours:getHours,minutes:getMinutes,seconds:getSeconds},[Pe,Ke,ot]=["hours","minutes","seconds"].map(it=>!t[it]||isTimeInStep(Qe[it](De),it,t[it])?Qe[it](De):findSimilarTime(Qe[it](De),it,t[it])),ft=setSeconds(setMinutes(setHours(M.value?M.value:getTime$1(De),Pe),Ke),ot);Se(getTime$1(ft))}function Le(){be(),ee(),Ye({returnFocus:!0})}function Ve(De){st(De)||(be(),ie(De),Ye({returnFocus:!1}))}watch(M,De=>{be(De),le(),nextTick(Ze)}),watch(Q,()=>{ue.value&&Se(G.value)}),provide(timePickerInjectionKey,{mergedThemeRef:x,mergedClsPrefixRef:n});const ze={focus:()=>{var De;(De=_.value)===null||De===void 0||De.focus()},blur:()=>{var De;(De=_.value)===null||De===void 0||De.blur()}},Re=computed(()=>{const{common:{cubicBezierEaseInOut:De},self:{iconColor:Qe,iconColorDisabled:Pe}}=x.value;return{"--n-icon-color-override":Qe,"--n-icon-color-disabled-override":Pe,"--n-bezier":De}}),Ne=s?useThemeClass("time-picker-trigger",void 0,Re,t):void 0,je=computed(()=>{const{self:{panelColor:De,itemTextColor:Qe,itemTextColorActive:Pe,itemColorHover:Ke,panelDividerColor:ot,panelBoxShadow:ft,itemOpacityDisabled:it,borderRadius:Ie,itemFontSize:Fe,itemWidth:et,itemHeight:At,panelActionPadding:Oe,itemBorderRadius:He},common:{cubicBezierEaseInOut:at}}=x.value;return{"--n-bezier":at,"--n-border-radius":Ie,"--n-item-color-hover":Ke,"--n-item-font-size":Fe,"--n-item-height":At,"--n-item-opacity-disabled":it,"--n-item-text-color":Qe,"--n-item-text-color-active":Pe,"--n-item-width":et,"--n-panel-action-padding":Oe,"--n-panel-box-shadow":ft,"--n-panel-color":De,"--n-panel-divider-color":ot,"--n-item-border-radius":He}}),nt=s?useThemeClass("time-picker",void 0,je,t):void 0;return{focus:ze.focus,blur:ze.blur,mergedStatus:C,mergedBordered:r,mergedClsPrefix:n,namespace:o,uncontrolledValue:P,mergedValue:M,isMounted:isMounted(),inputInstRef:_,panelInstRef:w,adjustedTo:useAdjustedTo(t),mergedShow:Q,localizedNow:W,localizedPlaceholder:j,localizedNegativeText:Y,localizedPositiveText:q,hourInFormat:X,minuteInFormat:re,secondInFormat:te,mergedAttrSize:Ae,displayTimeString:D,mergedSize:y,mergedDisabled:b,isValueInvalid:ue,isHourInvalid:oe,isMinuteInvalid:ae,isSecondInvalid:se,transitionDisabled:K,hourValue:he,minuteValue:Ce,secondValue:ve,amPmValue:pe,handleInputKeydown:fe,handleTimeInputFocus:we,handleTimeInputBlur:Me,handleNowClick:xe,handleConfirmClick:Le,handleTimeInputUpdateValue:Xe,handleMenuFocusOut:Ve,handleCancelClick:_e,handleClickOutside:Je,handleTimeInputActivate:Ue,handleTimeInputDeactivate:Ge,handleHourClick:Te,handleMinuteClick:ge,handleSecondClick:$e,handleAmPmClick:de,handleTimeInputClear:J,handleFocusDetectorFocus:ce,handleMenuKeydown:ne,handleTriggerClick:me,mergedTheme:x,triggerCssVars:s?void 0:Re,triggerThemeClass:Ne==null?void 0:Ne.themeClass,triggerOnRender:Ne==null?void 0:Ne.onRender,cssVars:s?void 0:je,themeClass:nt==null?void 0:nt.themeClass,onRender:nt==null?void 0:nt.onRender}},render(){const{mergedClsPrefix:t,$slots:r,triggerOnRender:n}=this;return n==null||n(),h("div",{class:[`${t}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h(NInput,{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"]:()=>h(NBaseIcon,{clsPrefix:t,class:`${t}-time-picker-icon`},{default:()=>r.icon?r.icon():h(TimeIcon,null)})}:null)}),h(VFollower,{teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>{var o;return this.mergedShow?((o=this.onRender)===null||o===void 0||o.call(this),withDirectives(h(Panel,{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}),[[clickoutside$1,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}});const TIME_FORMAT="HH:mm:ss",usePanelCommonProps={active:Boolean,dateFormat:String,timeFormat:{type:String,value:TIME_FORMAT},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 usePanelCommon(t){const{dateLocaleRef:r,timePickerSizeRef:n,timePickerPropsRef:o,localeRef:s,mergedClsPrefixRef:l,mergedThemeRef:d}=inject(datePickerInjectionKey),g=computed(()=>({locale:r.value.locale})),y=ref(null),b=useKeyboard$1();function C(){const{onClear:W}=t;W&&W()}function x(){const{onConfirm:W,value:j}=t;W&&W(j)}function S(W,j){const{onUpdateValue:Y}=t;Y(W,j)}function _(W=!1){const{onClose:j}=t;j&&j(W)}function w(){const{onTabOut:W}=t;W&&W()}function $(){S(null,!0),_(!0),C()}function I(){w()}function B(){(t.active||t.panel)&&nextTick(()=>{const{value:W}=y;if(!W)return;const j=W.querySelectorAll("[data-n-date]");j.forEach(Y=>{Y.classList.add("transition-disabled")}),W.offsetWidth,j.forEach(Y=>{Y.classList.remove("transition-disabled")})})}function R(W){W.key==="Tab"&&W.target===y.value&&b.shift&&(W.preventDefault(),w())}function P(W){const{value:j}=y;b.tab&&W.target===j&&(j==null?void 0:j.contains(W.relatedTarget))&&w()}let M=null,O=!1;function D(){M=t.value,O=!0}function N(){O=!1}function H(){O&&(S(M,!1),O=!1)}function Q(W){return typeof W=="function"?W():W}const G=ref(!1);function K(){G.value=!G.value}return{mergedTheme:d,mergedClsPrefix:l,dateFnsOptions:g,timePickerSize:n,timePickerProps:o,selfRef:y,locale:s,doConfirm:x,doClose:_,doUpdateValue:S,doTabOut:w,handleClearClick:$,handleFocusDetectorFocus:I,disableTransitionOneTick:B,handlePanelKeyDown:R,handlePanelFocus:P,cachePendingValue:D,clearPendingValue:N,restorePendingValue:H,getShortcutValue:Q,handleShortcutMouseleave:H,showMonthYearPanel:G,handleOpenQuickSelectMonthPanel:K}}const useCalendarProps=Object.assign(Object.assign({},usePanelCommonProps),{actions:{type:Array,default:()=>["now","clear","confirm"]}});function useCalendar(t,r){const n=usePanelCommon(t),{isValueInvalidRef:o,isDateDisabledRef:s,isDateInvalidRef:l,isTimeInvalidRef:d,isDateTimeInvalidRef:g,isHourDisabledRef:y,isMinuteDisabledRef:b,isSecondDisabledRef:C,localeRef:x,firstDayOfWeekRef:S,datePickerSlots:_}=inject(datePickerInjectionKey),w={isValueInvalid:o,isDateDisabled:s,isDateInvalid:l,isTimeInvalid:d,isDateTimeInvalid:g,isHourDisabled:y,isMinuteDisabled:b,isSecondDisabled:C},$=computed(()=>t.dateFormat||x.value.dateFormat),I=ref(t.value===null||Array.isArray(t.value)?"":format$7(t.value,$.value)),B=ref(t.value===null||Array.isArray(t.value)?Date.now():t.value),R=ref(null),P=ref(null),M=ref(null),O=ref(Date.now()),D=computed(()=>{var ne;return dateArray(B.value,t.value,O.value,(ne=S.value)!==null&&ne!==void 0?ne:x.value.firstDayOfWeek)}),N=computed(()=>{const{value:ne}=t;return monthArray(B.value,Array.isArray(ne)?null:ne,O.value)}),H=computed(()=>{const{value:ne}=t;return yearArray(Array.isArray(ne)?null:ne,O.value)}),Q=computed(()=>{const{value:ne}=t;return quarterArray(B.value,Array.isArray(ne)?null:ne,O.value)}),G=computed(()=>D.value.slice(0,7).map(ne=>{const{ts:le}=ne;return format$7(le,x.value.dayFormat,n.dateFnsOptions.value)})),K=computed(()=>format$7(B.value,x.value.monthFormat,n.dateFnsOptions.value)),W=computed(()=>format$7(B.value,x.value.yearFormat,n.dateFnsOptions.value));watch(B,(ne,le)=>{(r==="date"||r==="datetime")&&(isSameMonth(ne,le)||n.disableTransitionOneTick())}),watch(computed(()=>t.value),ne=>{ne!==null&&!Array.isArray(ne)?(I.value=format$7(ne,$.value,n.dateFnsOptions.value),B.value=ne):I.value=""});function j(ne){return getTime$1(r==="datetime"?startOfSecond(ne):r==="month"?startOfMonth(ne):r==="year"?startOfYear(ne):r==="quarter"?startOfQuarter(ne):startOfDay(ne))}function Y(ne){const{isDateDisabled:{value:le}}=w;return le?le(ne):!1}function q(ne){const le=strictParse(ne,$.value,new Date,n.dateFnsOptions.value);if(isValid$1(le)){if(t.value===null)n.doUpdateValue(getTime$1(j(Date.now())),t.panel);else if(!Array.isArray(t.value)){const me=set$2(t.value,{year:getYear(le),month:getMonth(le),date:getDate(le)});n.doUpdateValue(getTime$1(j(getTime$1(me))),t.panel)}}else I.value=ne}function X(){const ne=strictParse(I.value,$.value,new Date,n.dateFnsOptions.value);if(isValid$1(ne)){if(t.value===null)n.doUpdateValue(getTime$1(j(Date.now())),!1);else if(!Array.isArray(t.value)){const le=set$2(t.value,{year:getYear(ne),month:getMonth(ne),date:getDate(ne)});n.doUpdateValue(getTime$1(j(getTime$1(le))),!1)}}else ue()}function re(){n.doUpdateValue(null,!0),I.value="",n.doClose(!0),n.handleClearClick()}function te(){n.doUpdateValue(getTime$1(j(Date.now())),!0);const ne=Date.now();B.value=ne,n.doClose(!0),t.panel&&(r==="month"||r==="quarter"||r==="year")&&(n.disableTransitionOneTick(),ce(ne))}function oe(ne){if(Y(ne.ts))return;let le;if(t.value!==null&&!Array.isArray(t.value)?le=t.value:le=Date.now(),r==="datetime"&&t.defaultTime!==null&&!Array.isArray(t.defaultTime)){const me=getDefaultTime(t.defaultTime);me&&(le=getTime$1(set$2(le,me)))}switch(le=getTime$1(ne.type==="quarter"&&ne.dateObject.quarter?setQuarter(setYear(le,ne.dateObject.year),ne.dateObject.quarter):set$2(le,ne.dateObject)),n.doUpdateValue(j(le),t.panel||r==="date"||r==="year"),r){case"date":n.doClose();break;case"year":t.panel&&n.disableTransitionOneTick(),n.doClose();break;case"month":n.disableTransitionOneTick(),ce(le);break;case"quarter":n.disableTransitionOneTick(),ce(le);break}}function ae(ne,le){let me;t.value!==null&&!Array.isArray(t.value)?me=t.value:me=Date.now(),me=getTime$1(ne.type==="month"?setMonth(me,ne.dateObject.month):setYear(me,ne.dateObject.year)),le(me),ce(me)}function se(ne){B.value=ne}function ue(ne){if(t.value===null||Array.isArray(t.value)){I.value="";return}ne===void 0&&(ne=t.value),I.value=format$7(ne,$.value,n.dateFnsOptions.value)}function Ae(){w.isDateInvalid.value||w.isTimeInvalid.value||(n.doConfirm(),pe())}function pe(){t.active&&n.doClose()}function he(){B.value=getTime$1(addYears(B.value,1))}function Ce(){B.value=getTime$1(addYears(B.value,-1))}function ve(){B.value=getTime$1(addMonths(B.value,1))}function ye(){B.value=getTime$1(addMonths(B.value,-1))}function Be(){const{value:ne}=R;return ne==null?void 0:ne.listElRef}function Se(){const{value:ne}=R;return ne==null?void 0:ne.itemsElRef}function Ee(ne){var le;(le=P.value)===null||le===void 0||le.sync()}function ie(ne){ne!==null&&n.doUpdateValue(ne,t.panel)}function ee(ne){n.cachePendingValue();const le=n.getShortcutValue(ne);typeof le=="number"&&n.doUpdateValue(le,!1)}function J(ne){const le=n.getShortcutValue(ne);typeof le=="number"&&(n.doUpdateValue(le,t.panel),n.clearPendingValue(),Ae())}function ce(ne){const{value:le}=t;if(M.value){const me=getMonth(ne===void 0?le===null?Date.now():le:ne);M.value.scrollTo({top:me*MONTH_ITEM_HEIGHT})}if(R.value){const me=getYear(ne===void 0?le===null?Date.now():le:ne)-START_YEAR;R.value.scrollTo({top:me*MONTH_ITEM_HEIGHT})}}const fe={monthScrollbarRef:M,yearScrollbarRef:P,yearVlRef:R};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:D,monthArray:N,yearArray:H,quarterArray:Q,calendarYear:W,calendarMonth:K,weekdays:G,mergedIsDateDisabled:Y,nextYear:he,prevYear:Ce,nextMonth:ve,prevMonth:ye,handleNowClick:te,handleConfirmClick:Ae,handleSingleShortcutMouseenter:ee,handleSingleShortcutClick:J},w),n),fe),{handleDateClick:oe,handleDateInputBlur:X,handleDateInput:q,handleTimePickerChange:ie,clearSelectedDateTime:re,virtualListContainer:Be,virtualListContent:Se,handleVirtualListScroll:Ee,timePickerSize:n.timePickerSize,dateInputValue:I,datePickerSlots:_,handleQuickMonthClick:ae,justifyColumnsScrollState:ce,calendarValue:B,onUpdateCalendarValue:se})}var MonthPanel=defineComponent({name:"MonthPanel",props:Object.assign(Object.assign({},useCalendarProps),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(t){const r=useCalendar(t,t.type),n=l=>{switch(l.type){case"year":return l.dateObject.year;case"month":return l.dateObject.month+1;case"quarter":return`Q${l.dateObject.quarter}`}},{useAsQuickJump:o}=t,s=(l,d,g)=>{const{mergedIsDateDisabled:y,handleDateClick:b,handleQuickMonthClick:C}=r;return h("div",{"data-n-date":!0,key:d,class:[`${g}-date-panel-month-calendar__picker-col-item`,{[`${g}-date-panel-month-calendar__picker-col-item--current`]:l.isCurrent,[`${g}-date-panel-month-calendar__picker-col-item--selected`]:l.selected,[`${g}-date-panel-month-calendar__picker-col-item--disabled`]:!o&&y(l.ts)}],onClick:()=>{o?C(l,x=>t.onUpdateValue(x,!1)):b(l)}},n(l))};return onMounted(()=>{r.justifyColumnsScrollState()}),Object.assign(Object.assign({},r),{renderItem:s})},render(){const{mergedClsPrefix:t,mergedTheme:r,shortcuts:n,actions:o,renderItem:s,type:l,onRender:d}=this;return d==null||d(),h("div",{ref:"selfRef",tabindex:0,class:[`${t}-date-panel`,`${t}-date-panel--month`,!this.panel&&`${t}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},h("div",{class:`${t}-date-panel-month-calendar`},h(NScrollbar$1,{ref:"yearScrollbarRef",class:`${t}-date-panel-month-calendar__picker-col`,theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(VVirtualList,{ref:"yearVlRef",items:this.yearArray,itemSize:MONTH_ITEM_HEIGHT,showScrollbar:!1,keyField:"ts",onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:g,index:y})=>s(g,y,t)})}),l==="month"||l==="quarter"?h("div",{class:`${t}-date-panel-month-calendar__picker-col`},h(NScrollbar$1,{ref:"monthScrollbarRef",theme:r.peers.Scrollbar,themeOverrides:r.peerOverrides.Scrollbar},{default:()=>[(l==="month"?this.monthArray:this.quarterArray).map((g,y)=>s(g,y,t)),h("div",{class:`${t}-date-panel-${l}-calendar__padding`})]})):null),this.datePickerSlots.footer?h("div",{class:`${t}-date-panel-footer`},{default:this.datePickerSlots.footer}):null,(o==null?void 0:o.length)||n?h("div",{class:`${t}-date-panel-actions`},h("div",{class:`${t}-date-panel-actions__prefix`},n&&Object.keys(n).map(g=>{const y=n[g];return Array.isArray(y)?null:h(XButton,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(y)},onClick:()=>{this.handleSingleShortcutClick(y)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>g})})),h("div",{class:`${t}-date-panel-actions__suffix`},o!=null&&o.includes("clear")?h(NButton,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,o!=null&&o.includes("now")?h(NButton,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,o!=null&&o.includes("confirm")?h(NButton,{theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),PanelHeader=defineComponent({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 t=ref(null),r=ref(null),n=ref(!1);function o(l){var d;n.value&&!(!((d=t.value)===null||d===void 0)&&d.contains(getPreciseEventTarget(l)))&&(n.value=!1)}function s(){n.value=!n.value}return{show:n,triggerRef:t,monthPanelRef:r,handleHeaderClick:s,handleClickOutside:o}},render(){const{handleClickOutside:t,mergedClsPrefix:r}=this;return h("div",{class:`${r}-date-panel-month__month-year`,ref:"triggerRef"},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h("div",{class:[`${r}-date-panel-month__text`,this.show&&`${r}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth," ",this.calendarYear]:[this.calendarYear," ",this.calendarMonth])}),h(VFollower,{show:this.show,teleportDisabled:!0},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:!0},{default:()=>this.show?withDirectives(h(MonthPanel,{ref:"monthPanelRef",onUpdateValue:this.onUpdateValue,actions:[],type:"month",key:"month",useAsQuickJump:!0,value:this.value}),[[clickoutside$1,t,void 0,{capture:!0}]]):null})})]}))}}),DatetimePanel=defineComponent({name:"DateTimePanel",props:useCalendarProps,setup(t){return useCalendar(t,"datetime")},render(){var t,r,n,o;const{mergedClsPrefix:s,mergedTheme:l,shortcuts:d,timePickerProps:g,onRender:y,$slots:b}=this;return y==null||y(),h("div",{ref:"selfRef",tabindex:0,class:[`${s}-date-panel`,`${s}-date-panel--datetime`,!this.panel&&`${s}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{class:`${s}-date-panel-header`},h(NInput,{value:this.dateInputValue,theme:l.peers.Input,themeOverrides:l.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${s}-date-panel-date-input`,textDecoration:this.isDateInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),h(NTimePicker,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timeFormat},Array.isArray(g)?void 0:g,{showIcon:!1,to:!1,theme:l.peers.TimePicker,themeOverrides:l.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),h("div",{class:`${s}-date-panel-calendar`},h("div",{class:`${s}-date-panel-month`},h("div",{class:`${s}-date-panel-month__fast-prev`,onClick:this.prevYear},resolveSlot(b["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${s}-date-panel-month__prev`,onClick:this.prevMonth},resolveSlot(b["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:s,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),h("div",{class:`${s}-date-panel-month__next`,onClick:this.nextMonth},resolveSlot(b["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${s}-date-panel-month__fast-next`,onClick:this.nextYear},resolveSlot(b["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${s}-date-panel-weekdays`},this.weekdays.map(C=>h("div",{key:C,class:`${s}-date-panel-weekdays__day`},C))),h("div",{class:`${s}-date-panel-dates`},this.dateArray.map((C,x)=>h("div",{"data-n-date":!0,key:x,class:[`${s}-date-panel-date`,{[`${s}-date-panel-date--current`]:C.isCurrentDate,[`${s}-date-panel-date--selected`]:C.selected,[`${s}-date-panel-date--excluded`]:!C.inCurrentMonth,[`${s}-date-panel-date--disabled`]:this.mergedIsDateDisabled(C.ts)}],onClick:()=>this.handleDateClick(C)},h("div",{class:`${s}-date-panel-date__trigger`}),C.dateObject.date,C.isCurrentDate?h("div",{class:`${s}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${s}-date-panel-footer`},this.datePickerSlots.footer()):null,((t=this.actions)===null||t===void 0?void 0:t.length)||d?h("div",{class:`${s}-date-panel-actions`},h("div",{class:`${s}-date-panel-actions__prefix`},d&&Object.keys(d).map(C=>{const x=d[C];return Array.isArray(x)?null:h(XButton,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(x)},onClick:()=>{this.handleSingleShortcutClick(x)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>C})})),h("div",{class:`${s}-date-panel-actions__suffix`},!((r=this.actions)===null||r===void 0)&&r.includes("clear")?h(NButton,{theme:l.peers.Button,themeOverrides:l.peerOverrides.Button,size:"tiny",onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?h(NButton,{theme:l.peers.Button,themeOverrides:l.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null,!((o=this.actions)===null||o===void 0)&&o.includes("confirm")?h(NButton,{theme:l.peers.Button,themeOverrides:l.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}});const useDualCalendarProps=Object.assign(Object.assign({},usePanelCommonProps),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>["clear","confirm"]}});function useDualCalendar(t,r){var n,o;const{isDateDisabledRef:s,isStartHourDisabledRef:l,isEndHourDisabledRef:d,isStartMinuteDisabledRef:g,isEndMinuteDisabledRef:y,isStartSecondDisabledRef:b,isEndSecondDisabledRef:C,isStartDateInvalidRef:x,isEndDateInvalidRef:S,isStartTimeInvalidRef:_,isEndTimeInvalidRef:w,isStartValueInvalidRef:$,isEndValueInvalidRef:I,isRangeInvalidRef:B,localeRef:R,rangesRef:P,closeOnSelectRef:M,updateValueOnCloseRef:O,firstDayOfWeekRef:D,datePickerSlots:N}=inject(datePickerInjectionKey),H={isDateDisabled:s,isStartHourDisabled:l,isEndHourDisabled:d,isStartMinuteDisabled:g,isEndMinuteDisabled:y,isStartSecondDisabled:b,isEndSecondDisabled:C,isStartDateInvalid:x,isEndDateInvalid:S,isStartTimeInvalid:_,isEndTimeInvalid:w,isStartValueInvalid:$,isEndValueInvalid:I,isRangeInvalid:B},Q=usePanelCommon(t),G=ref(null),K=ref(null),W=ref(null),j=ref(null),Y=ref(null),q=ref(null),X=ref(null),re=ref(null),{value:te}=t,oe=(n=t.defaultCalendarStartTime)!==null&&n!==void 0?n:Array.isArray(te)&&typeof te[0]=="number"?te[0]:Date.now(),ae=ref(oe),se=ref((o=t.defaultCalendarEndTime)!==null&&o!==void 0?o:Array.isArray(te)&&typeof te[1]=="number"?te[1]:getTime$1(addMonths(oe,1)));Me(!0);const ue=ref(Date.now()),Ae=ref(!1),pe=ref(0),he=computed(()=>t.dateFormat||R.value.dateFormat),Ce=ref(Array.isArray(te)?format$7(te[0],he.value,Q.dateFnsOptions.value):""),ve=ref(Array.isArray(te)?format$7(te[1],he.value,Q.dateFnsOptions.value):""),ye=computed(()=>Ae.value?"end":"start"),Be=computed(()=>{var ke;return dateArray(ae.value,t.value,ue.value,(ke=D.value)!==null&&ke!==void 0?ke:R.value.firstDayOfWeek)}),Se=computed(()=>{var ke;return dateArray(se.value,t.value,ue.value,(ke=D.value)!==null&&ke!==void 0?ke:R.value.firstDayOfWeek)}),Ee=computed(()=>Be.value.slice(0,7).map(ke=>{const{ts:qe}=ke;return format$7(qe,R.value.dayFormat,Q.dateFnsOptions.value)})),ie=computed(()=>format$7(ae.value,R.value.monthFormat,Q.dateFnsOptions.value)),ee=computed(()=>format$7(se.value,R.value.monthFormat,Q.dateFnsOptions.value)),J=computed(()=>format$7(ae.value,R.value.yearFormat,Q.dateFnsOptions.value)),ce=computed(()=>format$7(se.value,R.value.yearFormat,Q.dateFnsOptions.value)),fe=computed(()=>{const{value:ke}=t;return Array.isArray(ke)?ke[0]:null}),ne=computed(()=>{const{value:ke}=t;return Array.isArray(ke)?ke[1]:null}),le=computed(()=>{const{shortcuts:ke}=t;return ke||P.value}),me=computed(()=>yearArray(pluckValueFromRange(t.value,"start"),ue.value)),Te=computed(()=>yearArray(pluckValueFromRange(t.value,"end"),ue.value)),ge=computed(()=>{const ke=pluckValueFromRange(t.value,"start");return quarterArray(ke!=null?ke:Date.now(),ke,ue.value)}),$e=computed(()=>{const ke=pluckValueFromRange(t.value,"end");return quarterArray(ke!=null?ke:Date.now(),ke,ue.value)}),de=computed(()=>{const ke=pluckValueFromRange(t.value,"start");return monthArray(ke!=null?ke:Date.now(),ke,ue.value)}),be=computed(()=>{const ke=pluckValueFromRange(t.value,"end");return monthArray(ke!=null?ke:Date.now(),ke,ue.value)});watch(computed(()=>t.value),ke=>{if(ke!==null&&Array.isArray(ke)){const[qe,ut]=ke;Ce.value=format$7(qe,he.value,Q.dateFnsOptions.value),ve.value=format$7(ut,he.value,Q.dateFnsOptions.value),Ae.value||Le(ke)}else Ce.value="",ve.value=""});function we(ke,qe){(r==="daterange"||r==="datetimerange")&&(getYear(ke)!==getYear(qe)||getMonth(ke)!==getMonth(qe))&&Q.disableTransitionOneTick()}watch(ae,we),watch(se,we);function Me(ke){const qe=startOfMonth(ae.value),ut=startOfMonth(se.value);(t.bindCalendarMonths||qe>=ut)&&(ke?se.value=getTime$1(addMonths(qe,1)):ae.value=getTime$1(addMonths(ut,-1)))}function Ue(){ae.value=getTime$1(addMonths(ae.value,12)),Me(!0)}function Ge(){ae.value=getTime$1(addMonths(ae.value,-12)),Me(!0)}function Ze(){ae.value=getTime$1(addMonths(ae.value,1)),Me(!0)}function tt(){ae.value=getTime$1(addMonths(ae.value,-1)),Me(!0)}function st(){se.value=getTime$1(addMonths(se.value,12)),Me(!1)}function We(){se.value=getTime$1(addMonths(se.value,-12)),Me(!1)}function Je(){se.value=getTime$1(addMonths(se.value,1)),Me(!1)}function Ye(){se.value=getTime$1(addMonths(se.value,-1)),Me(!1)}function Xe(ke){ae.value=ke,Me(!0)}function _e(ke){se.value=ke,Me(!1)}function xe(ke){const qe=s.value;if(!qe)return!1;if(!Array.isArray(t.value)||ye.value==="start")return qe(ke,"start",null);{const{value:ut}=pe;return ke<pe.value?qe(ke,"start",[ut,ut]):qe(ke,"end",[ut,ut])}}function Le(ke){if(ke===null)return;const[qe,ut]=ke;ae.value=qe,startOfMonth(ut)<=startOfMonth(qe)?se.value=getTime$1(startOfMonth(addMonths(qe,1))):se.value=getTime$1(startOfMonth(ut))}function Ve(ke){if(!Ae.value)Ae.value=!0,pe.value=ke.ts,De(ke.ts,ke.ts,"done");else{Ae.value=!1;const{value:qe}=t;t.panel&&Array.isArray(qe)?De(qe[0],qe[1],"done"):M.value&&r==="daterange"&&(O.value?Ne():Re())}}function ze(ke){if(Ae.value){if(xe(ke.ts))return;ke.ts>=pe.value?De(pe.value,ke.ts,"wipPreview"):De(ke.ts,pe.value,"wipPreview")}}function Re(){B.value||(Q.doConfirm(),Ne())}function Ne(){Ae.value=!1,t.active&&Q.doClose()}function je(ke){typeof ke!="number"&&(ke=getTime$1(ke)),t.value===null?Q.doUpdateValue([ke,ke],t.panel):Array.isArray(t.value)&&Q.doUpdateValue([ke,Math.max(t.value[1],ke)],t.panel)}function nt(ke){typeof ke!="number"&&(ke=getTime$1(ke)),t.value===null?Q.doUpdateValue([ke,ke],t.panel):Array.isArray(t.value)&&Q.doUpdateValue([Math.min(t.value[0],ke),ke],t.panel)}function De(ke,qe,ut){if(typeof ke!="number"&&(ke=getTime$1(ke)),ut!=="shortcutPreview"){let ht,mt;if(r==="datetimerange"){const{defaultTime:pt}=t;Array.isArray(pt)?(ht=getDefaultTime(pt[0]),mt=getDefaultTime(pt[1])):(ht=getDefaultTime(pt),mt=ht)}ht&&(ke=getTime$1(set$2(ke,ht))),mt&&(qe=getTime$1(set$2(qe,mt)))}Q.doUpdateValue([ke,qe],t.panel&&ut==="done")}function Qe(ke){return getTime$1(r==="datetimerange"?startOfSecond(ke):r==="monthrange"?startOfMonth(ke):startOfDay(ke))}function Pe(ke){const qe=strictParse(ke,he.value,new Date,Q.dateFnsOptions.value);if(isValid$1(qe))if(t.value){if(Array.isArray(t.value)){const ut=set$2(t.value[0],{year:getYear(qe),month:getMonth(qe),date:getDate(qe)});je(Qe(getTime$1(ut)))}}else{const ut=set$2(new Date,{year:getYear(qe),month:getMonth(qe),date:getDate(qe)});je(Qe(getTime$1(ut)))}else Ce.value=ke}function Ke(ke){const qe=strictParse(ke,he.value,new Date,Q.dateFnsOptions.value);if(isValid$1(qe)){if(t.value===null){const ut=set$2(new Date,{year:getYear(qe),month:getMonth(qe),date:getDate(qe)});nt(Qe(getTime$1(ut)))}else if(Array.isArray(t.value)){const ut=set$2(t.value[1],{year:getYear(qe),month:getMonth(qe),date:getDate(qe)});nt(Qe(getTime$1(ut)))}}else ve.value=ke}function ot(){const ke=strictParse(Ce.value,he.value,new Date,Q.dateFnsOptions.value),{value:qe}=t;if(isValid$1(ke)){if(qe===null){const ut=set$2(new Date,{year:getYear(ke),month:getMonth(ke),date:getDate(ke)});je(Qe(getTime$1(ut)))}else if(Array.isArray(qe)){const ut=set$2(qe[0],{year:getYear(ke),month:getMonth(ke),date:getDate(ke)});je(Qe(getTime$1(ut)))}}else it()}function ft(){const ke=strictParse(ve.value,he.value,new Date,Q.dateFnsOptions.value),{value:qe}=t;if(isValid$1(ke)){if(qe===null){const ut=set$2(new Date,{year:getYear(ke),month:getMonth(ke),date:getDate(ke)});nt(Qe(getTime$1(ut)))}else if(Array.isArray(qe)){const ut=set$2(qe[1],{year:getYear(ke),month:getMonth(ke),date:getDate(ke)});nt(Qe(getTime$1(ut)))}}else it()}function it(ke){const{value:qe}=t;if(qe===null||!Array.isArray(qe)){Ce.value="",ve.value="";return}ke===void 0&&(ke=qe),Ce.value=format$7(ke[0],he.value,Q.dateFnsOptions.value),ve.value=format$7(ke[1],he.value,Q.dateFnsOptions.value)}function Ie(ke){ke!==null&&je(ke)}function Fe(ke){ke!==null&&nt(ke)}function et(ke){Q.cachePendingValue();const qe=Q.getShortcutValue(ke);!Array.isArray(qe)||De(qe[0],qe[1],"shortcutPreview")}function At(ke){const qe=Q.getShortcutValue(ke);!Array.isArray(qe)||(De(qe[0],qe[1],"done"),Q.clearPendingValue(),Re())}function Oe(ke,qe){const ut=ke===void 0?t.value:ke;if(ke===void 0||qe==="start"){if(X.value){const ht=Array.isArray(ut)?getMonth(ut[0]):getMonth(Date.now());X.value.scrollTo({debounce:!1,index:ht,elSize:MONTH_ITEM_HEIGHT})}if(Y.value){const ht=(Array.isArray(ut)?getYear(ut[0]):getYear(Date.now()))-START_YEAR;Y.value.scrollTo({index:ht,debounce:!1})}}if(ke===void 0||qe==="end"){if(re.value){const ht=Array.isArray(ut)?getMonth(ut[1]):getMonth(Date.now());re.value.scrollTo({debounce:!1,index:ht,elSize:MONTH_ITEM_HEIGHT})}if(q.value){const ht=(Array.isArray(ut)?getYear(ut[1]):getYear(Date.now()))-START_YEAR;q.value.scrollTo({index:ht,debounce:!1})}}}function He(ke,qe){const{value:ut}=t,ht=!Array.isArray(ut),mt=ke.type==="year"&&r!=="yearrange"?ht?set$2(ke.ts,{month:getMonth(r==="quarterrange"?startOfQuarter(new Date):new Date)}).valueOf():set$2(ke.ts,{month:getMonth(r==="quarterrange"?startOfQuarter(ut[qe==="start"?0:1]):ut[qe==="start"?0:1])}).valueOf():ke.ts;if(ht){const vt=Qe(mt),bt=[vt,vt];Q.doUpdateValue(bt,t.panel),Oe(bt,"start"),Oe(bt,"end"),Q.disableTransitionOneTick();return}const pt=[ut[0],ut[1]];let xt=!1;switch(qe==="start"?(pt[0]=Qe(mt),pt[0]>pt[1]&&(pt[1]=pt[0],xt=!0)):(pt[1]=Qe(mt),pt[0]>pt[1]&&(pt[0]=pt[1],xt=!0)),Q.doUpdateValue(pt,t.panel),r){case"monthrange":case"quarterrange":Q.disableTransitionOneTick(),xt?(Oe(pt,"start"),Oe(pt,"end")):Oe(pt,qe);break;case"yearrange":Q.disableTransitionOneTick(),Oe(pt,"start"),Oe(pt,"end")}}function at(){var ke;(ke=W.value)===null||ke===void 0||ke.sync()}function ct(){var ke;(ke=j.value)===null||ke===void 0||ke.sync()}function dt(ke){var qe,ut;return ke==="start"?(qe=Y.value)===null||qe===void 0?void 0:qe.listElRef:(ut=q.value)===null||ut===void 0?void 0:ut.listElRef}function yt(ke){var qe,ut;return ke==="start"?(qe=Y.value)===null||qe===void 0?void 0:qe.itemsElRef:(ut=q.value)===null||ut===void 0?void 0:ut.itemsElRef}const gt={startYearVlRef:Y,endYearVlRef:q,startMonthScrollbarRef:X,endMonthScrollbarRef:re,startYearScrollbarRef:W,endYearScrollbarRef:j};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:G,endDatesElRef:K,handleDateClick:Ve,handleColItemClick:He,handleDateMouseEnter:ze,handleConfirmClick:Re,startCalendarPrevYear:Ge,startCalendarPrevMonth:tt,startCalendarNextYear:Ue,startCalendarNextMonth:Ze,endCalendarPrevYear:We,endCalendarPrevMonth:Ye,endCalendarNextMonth:Je,endCalendarNextYear:st,mergedIsDateDisabled:xe,changeStartEndTime:De,ranges:P,startCalendarMonth:ie,startCalendarYear:J,endCalendarMonth:ee,endCalendarYear:ce,weekdays:Ee,startDateArray:Be,endDateArray:Se,startYearArray:me,startMonthArray:de,startQuarterArray:ge,endYearArray:Te,endMonthArray:be,endQuarterArray:$e,isSelecting:Ae,handleRangeShortcutMouseenter:et,handleRangeShortcutClick:At},Q),H),gt),{startDateDisplayString:Ce,endDateInput:ve,timePickerSize:Q.timePickerSize,startTimeValue:fe,endTimeValue:ne,datePickerSlots:N,shortcuts:le,startCalendarDateTime:ae,endCalendarDateTime:se,justifyColumnsScrollState:Oe,handleFocusDetectorFocus:Q.handleFocusDetectorFocus,handleStartTimePickerChange:Ie,handleEndTimePickerChange:Fe,handleStartDateInput:Pe,handleStartDateInputBlur:ot,handleEndDateInput:Ke,handleEndDateInputBlur:ft,handleStartYearVlScroll:at,handleEndYearVlScroll:ct,virtualListContainer:dt,virtualListContent:yt,onUpdateStartCalendarValue:Xe,onUpdateEndCalendarValue:_e})}var DatetimerangePanel=defineComponent({name:"DateTimeRangePanel",props:useDualCalendarProps,setup(t){return useDualCalendar(t,"datetimerange")},render(){var t,r,n;const{mergedClsPrefix:o,mergedTheme:s,shortcuts:l,timePickerProps:d,onRender:g,$slots:y}=this;return g==null||g(),h("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--datetimerange`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{class:`${o}-date-panel-header`},h(NInput,{value:this.startDateDisplayString,theme:s.peers.Input,themeOverrides:s.peerOverrides.Input,size:this.timePickerSize,stateful:!1,class:`${o}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),h(NTimePicker,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(d)?d[0]:d,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:s.peers.TimePicker,themeOverrides:s.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),h(NInput,{value:this.endDateInput,theme:s.peers.Input,themeOverrides:s.peerOverrides.Input,stateful:!1,size:this.timePickerSize,class:`${o}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?"line-through":"",placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),h(NTimePicker,Object.assign({placeholder:this.locale.selectTime,format:this.timeFormat,size:this.timePickerSize},Array.isArray(d)?d[1]:d,{disabled:this.isSelecting,showIcon:!1,theme:s.peers.TimePicker,themeOverrides:s.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),h("div",{ref:"startDatesElRef",class:`${o}-date-panel-calendar ${o}-date-panel-calendar--start`},h("div",{class:`${o}-date-panel-month`},h("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},resolveSlot(y["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${o}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},resolveSlot(y["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:o,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),h("div",{class:`${o}-date-panel-month__next`,onClick:this.startCalendarNextMonth},resolveSlot(y["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},resolveSlot(y["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(b=>h("div",{key:b,class:`${o}-date-panel-weekdays__day`},b))),h("div",{class:`${o}-date-panel__divider`}),h("div",{class:`${o}-date-panel-dates`},this.startDateArray.map((b,C)=>{const x=this.mergedIsDateDisabled(b.ts);return h("div",{"data-n-date":!0,key:C,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--excluded`]:!b.inCurrentMonth,[`${o}-date-panel-date--current`]:b.isCurrentDate,[`${o}-date-panel-date--selected`]:b.selected,[`${o}-date-panel-date--covered`]:b.inSpan,[`${o}-date-panel-date--start`]:b.startOfSpan,[`${o}-date-panel-date--end`]:b.endOfSpan,[`${o}-date-panel-date--disabled`]:x}],onClick:x?void 0:()=>this.handleDateClick(b),onMouseenter:x?void 0:()=>this.handleDateMouseEnter(b)},h("div",{class:`${o}-date-panel-date__trigger`}),b.dateObject.date,b.isCurrentDate?h("div",{class:`${o}-date-panel-date__sup`}):null)}))),h("div",{class:`${o}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${o}-date-panel-calendar ${o}-date-panel-calendar--end`},h("div",{class:`${o}-date-panel-month`},h("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},resolveSlot(y["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${o}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},resolveSlot(y["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:o,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),h("div",{class:`${o}-date-panel-month__next`,onClick:this.endCalendarNextMonth},resolveSlot(y["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},resolveSlot(y["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(b=>h("div",{key:b,class:`${o}-date-panel-weekdays__day`},b))),h("div",{class:`${o}-date-panel__divider`}),h("div",{class:`${o}-date-panel-dates`},this.endDateArray.map((b,C)=>{const x=this.mergedIsDateDisabled(b.ts);return h("div",{"data-n-date":!0,key:C,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--excluded`]:!b.inCurrentMonth,[`${o}-date-panel-date--current`]:b.isCurrentDate,[`${o}-date-panel-date--selected`]:b.selected,[`${o}-date-panel-date--covered`]:b.inSpan,[`${o}-date-panel-date--start`]:b.startOfSpan,[`${o}-date-panel-date--end`]:b.endOfSpan,[`${o}-date-panel-date--disabled`]:x}],onClick:x?void 0:()=>this.handleDateClick(b),onMouseenter:x?void 0:()=>this.handleDateMouseEnter(b)},h("div",{class:`${o}-date-panel-date__trigger`}),b.dateObject.date,b.isCurrentDate?h("div",{class:`${o}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?h("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((t=this.actions)===null||t===void 0?void 0:t.length)||l?h("div",{class:`${o}-date-panel-actions`},h("div",{class:`${o}-date-panel-actions__prefix`},l&&Object.keys(l).map(b=>{const C=l[b];return Array.isArray(C)||typeof C=="function"?h(XButton,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(C)},onClick:()=>{this.handleRangeShortcutClick(C)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>b}):null})),h("div",{class:`${o}-date-panel-actions__suffix`},!((r=this.actions)===null||r===void 0)&&r.includes("clear")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),DatePanel=defineComponent({name:"DatePanel",props:useCalendarProps,setup(t){return useCalendar(t,"date")},render(){var t,r,n;const{mergedClsPrefix:o,mergedTheme:s,shortcuts:l,onRender:d,$slots:g}=this;return d==null||d(),h("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--date`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},h("div",{class:`${o}-date-panel-calendar`},h("div",{class:`${o}-date-panel-month`},h("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.prevYear},resolveSlot(g["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${o}-date-panel-month__prev`,onClick:this.prevMonth},resolveSlot(g["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:o,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),h("div",{class:`${o}-date-panel-month__next`,onClick:this.nextMonth},resolveSlot(g["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.nextYear},resolveSlot(g["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(y=>h("div",{key:y,class:`${o}-date-panel-weekdays__day`},y))),h("div",{class:`${o}-date-panel-dates`},this.dateArray.map((y,b)=>h("div",{"data-n-date":!0,key:b,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--current`]:y.isCurrentDate,[`${o}-date-panel-date--selected`]:y.selected,[`${o}-date-panel-date--excluded`]:!y.inCurrentMonth,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(y.ts)}],onClick:()=>this.handleDateClick(y)},h("div",{class:`${o}-date-panel-date__trigger`}),y.dateObject.date,y.isCurrentDate?h("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((t=this.actions)===null||t===void 0?void 0:t.length)||l?h("div",{class:`${o}-date-panel-actions`},h("div",{class:`${o}-date-panel-actions__prefix`},l&&Object.keys(l).map(y=>{const b=l[y];return Array.isArray(b)?null:h(XButton,{size:"tiny",onMouseenter:()=>{this.handleSingleShortcutMouseenter(b)},onClick:()=>{this.handleSingleShortcutClick(b)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>y})})),h("div",{class:`${o}-date-panel-actions__suffix`},!((r=this.actions)===null||r===void 0)&&r.includes("clear")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("now")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleNowClick},{default:()=>this.locale.now}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),DaterangePanel=defineComponent({name:"DateRangePanel",props:useDualCalendarProps,setup(t){return useDualCalendar(t,"daterange")},render(){var t,r,n;const{mergedClsPrefix:o,mergedTheme:s,shortcuts:l,onRender:d,$slots:g}=this;return d==null||d(),h("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--daterange`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{ref:"startDatesElRef",class:`${o}-date-panel-calendar ${o}-date-panel-calendar--start`},h("div",{class:`${o}-date-panel-month`},h("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},resolveSlot(g["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${o}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},resolveSlot(g["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:o,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),h("div",{class:`${o}-date-panel-month__next`,onClick:this.startCalendarNextMonth},resolveSlot(g["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},resolveSlot(g["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(y=>h("div",{key:y,class:`${o}-date-panel-weekdays__day`},y))),h("div",{class:`${o}-date-panel__divider`}),h("div",{class:`${o}-date-panel-dates`},this.startDateArray.map((y,b)=>h("div",{"data-n-date":!0,key:b,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--excluded`]:!y.inCurrentMonth,[`${o}-date-panel-date--current`]:y.isCurrentDate,[`${o}-date-panel-date--selected`]:y.selected,[`${o}-date-panel-date--covered`]:y.inSpan,[`${o}-date-panel-date--start`]:y.startOfSpan,[`${o}-date-panel-date--end`]:y.endOfSpan,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(y.ts)}],onClick:()=>this.handleDateClick(y),onMouseenter:()=>this.handleDateMouseEnter(y)},h("div",{class:`${o}-date-panel-date__trigger`}),y.dateObject.date,y.isCurrentDate?h("div",{class:`${o}-date-panel-date__sup`}):null)))),h("div",{class:`${o}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${o}-date-panel-calendar ${o}-date-panel-calendar--end`},h("div",{class:`${o}-date-panel-month`},h("div",{class:`${o}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},resolveSlot(g["prev-year"],()=>[h(FastBackwardIcon,null)])),h("div",{class:`${o}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},resolveSlot(g["prev-month"],()=>[h(BackwardIcon,null)])),h(PanelHeader,{monthBeforeYear:this.locale.monthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:o,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),h("div",{class:`${o}-date-panel-month__next`,onClick:this.endCalendarNextMonth},resolveSlot(g["next-month"],()=>[h(ForwardIcon,null)])),h("div",{class:`${o}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},resolveSlot(g["next-year"],()=>[h(FastForwardIcon,null)]))),h("div",{class:`${o}-date-panel-weekdays`},this.weekdays.map(y=>h("div",{key:y,class:`${o}-date-panel-weekdays__day`},y))),h("div",{class:`${o}-date-panel__divider`}),h("div",{class:`${o}-date-panel-dates`},this.endDateArray.map((y,b)=>h("div",{"data-n-date":!0,key:b,class:[`${o}-date-panel-date`,{[`${o}-date-panel-date--excluded`]:!y.inCurrentMonth,[`${o}-date-panel-date--current`]:y.isCurrentDate,[`${o}-date-panel-date--selected`]:y.selected,[`${o}-date-panel-date--covered`]:y.inSpan,[`${o}-date-panel-date--start`]:y.startOfSpan,[`${o}-date-panel-date--end`]:y.endOfSpan,[`${o}-date-panel-date--disabled`]:this.mergedIsDateDisabled(y.ts)}],onClick:()=>this.handleDateClick(y),onMouseenter:()=>this.handleDateMouseEnter(y)},h("div",{class:`${o}-date-panel-date__trigger`}),y.dateObject.date,y.isCurrentDate?h("div",{class:`${o}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?h("div",{class:`${o}-date-panel-footer`},this.datePickerSlots.footer()):null,((t=this.actions)===null||t===void 0?void 0:t.length)||l?h("div",{class:`${o}-date-panel-actions`},h("div",{class:`${o}-date-panel-actions__prefix`},l&&Object.keys(l).map(y=>{const b=l[y];return Array.isArray(b)||typeof b=="function"?h(XButton,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(b)},onClick:()=>{this.handleRangeShortcutClick(b)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>y}):null})),h("div",{class:`${o}-date-panel-actions__suffix`},!((r=this.actions)===null||r===void 0)&&r.includes("clear")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(NButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),MonthRangePanel=defineComponent({name:"MonthRangePanel",props:Object.assign(Object.assign({},useDualCalendarProps),{type:{type:String,required:!0}}),setup(t){const r=useDualCalendar(t,t.type),n=(o,s,l,d)=>{const{handleColItemClick:g}=r,y=!1;return h("div",{"data-n-date":!0,key:s,class:[`${l}-date-panel-month-calendar__picker-col-item`,{[`${l}-date-panel-month-calendar__picker-col-item--current`]:o.isCurrent,[`${l}-date-panel-month-calendar__picker-col-item--selected`]:o.selected,[`${l}-date-panel-month-calendar__picker-col-item--disabled`]:y}],onClick:()=>{g(o,d)}},o.type==="month"?o.dateObject.month+1:o.type==="quarter"?`Q${o.dateObject.quarter}`:o.dateObject.year)};return onMounted(()=>{r.justifyColumnsScrollState()}),Object.assign(Object.assign({},r),{renderItem:n})},render(){var t,r,n;const{mergedClsPrefix:o,mergedTheme:s,shortcuts:l,type:d,renderItem:g,onRender:y}=this;return y==null||y(),h("div",{ref:"selfRef",tabindex:0,class:[`${o}-date-panel`,`${o}-date-panel--daterange`,!this.panel&&`${o}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},h("div",{ref:"startDatesElRef",class:`${o}-date-panel-calendar ${o}-date-panel-calendar--start`},h("div",{class:`${o}-date-panel-month-calendar`},h(NScrollbar$1,{ref:"startYearScrollbarRef",class:`${o}-date-panel-month-calendar__picker-col`,theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("start"),content:()=>this.virtualListContent("start"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(VVirtualList,{ref:"startYearVlRef",items:this.startYearArray,itemSize:MONTH_ITEM_HEIGHT,showScrollbar:!1,keyField:"ts",onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:b,index:C})=>g(b,C,o,"start")})}),d==="monthrange"||d==="quarterrange"?h("div",{class:`${o}-date-panel-month-calendar__picker-col`},h(NScrollbar$1,{ref:"startMonthScrollbarRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[(d==="monthrange"?this.startMonthArray:this.startQuarterArray).map((b,C)=>g(b,C,o,"start")),d==="monthrange"&&h("div",{class:`${o}-date-panel-month-calendar__padding`})]})):null)),h("div",{class:`${o}-date-panel__vertical-divider`}),h("div",{ref:"endDatesElRef",class:`${o}-date-panel-calendar ${o}-date-panel-calendar--end`},h("div",{class:`${o}-date-panel-month-calendar`},h(NScrollbar$1,{ref:"endYearScrollbarRef",class:`${o}-date-panel-month-calendar__picker-col`,theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar,container:()=>this.virtualListContainer("end"),content:()=>this.virtualListContent("end"),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>h(VVirtualList,{ref:"endYearVlRef",items:this.endYearArray,itemSize:MONTH_ITEM_HEIGHT,showScrollbar:!1,keyField:"ts",onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:b,index:C})=>g(b,C,o,"end")})}),d==="monthrange"||d==="quarterrange"?h("div",{class:`${o}-date-panel-month-calendar__picker-col`},h(NScrollbar$1,{ref:"endMonthScrollbarRef",theme:s.peers.Scrollbar,themeOverrides:s.peerOverrides.Scrollbar},{default:()=>[(d==="monthrange"?this.endMonthArray:this.endQuarterArray).map((b,C)=>g(b,C,o,"end")),d==="monthrange"&&h("div",{class:`${o}-date-panel-month-calendar__padding`})]})):null)),this.datePickerSlots.footer?h("div",{class:`${o}-date-panel-footer`},renderSlot(this.datePickerSlots,"footer")):null,((t=this.actions)===null||t===void 0?void 0:t.length)||l?h("div",{class:`${o}-date-panel-actions`},h("div",{class:`${o}-date-panel-actions__prefix`},l&&Object.keys(l).map(b=>{const C=l[b];return Array.isArray(C)||typeof C=="function"?h(XButton,{size:"tiny",onMouseenter:()=>{this.handleRangeShortcutMouseenter(C)},onClick:()=>{this.handleRangeShortcutClick(C)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>b}):null})),h("div",{class:`${o}-date-panel-actions__suffix`},!((r=this.actions)===null||r===void 0)&&r.includes("clear")?h(XButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",onClick:this.handleClearClick},{default:()=>this.locale.clear}):null,!((n=this.actions)===null||n===void 0)&&n.includes("confirm")?h(XButton,{theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,size:"tiny",type:"primary",disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm}):null)):null,h(FocusDetector,{onFocus:this.handleFocusDetectorFocus}))}}),style$F=c$1([cB("date-picker",`
|
|
position: relative;
|
|
z-index: auto;
|
|
`,[cB("date-picker-icon",`
|
|
color: var(--n-icon-color-override);
|
|
transition: color .3s var(--n-bezier);
|
|
`),cB("icon",`
|
|
color: var(--n-icon-color-override);
|
|
transition: color .3s var(--n-bezier);
|
|
`),cM("disabled",[cB("date-picker-icon",`
|
|
color: var(--n-icon-color-disabled-override);
|
|
`),cB("icon",`
|
|
color: var(--n-icon-color-disabled-override);
|
|
`)])]),cB("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);
|
|
`,[fadeInScaleUpTransition(),cM("shadow",`
|
|
box-shadow: var(--n-panel-box-shadow);
|
|
`),cB("date-panel-calendar",{padding:"var(--n-calendar-left-padding)",display:"grid",gridTemplateColumns:"1fr",gridArea:"left-calendar"},[cM("end",{padding:"var(--n-calendar-right-padding)",gridArea:"right-calendar"})]),cB("date-panel-month-calendar",{display:"flex",gridArea:"left-calendar"},[cE("picker-col",`
|
|
min-width: var(--n-scroll-item-width);
|
|
height: calc(var(--n-scroll-item-height) * 6);
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`,[c$1("&:first-child",`
|
|
min-width: calc(var(--n-scroll-item-width) + 4px);
|
|
`,[cE("picker-col-item",[c$1("&::before","left: 4px;")])]),cE("padding",`
|
|
height: calc(var(--n-scroll-item-height) * 5)
|
|
`)]),cE("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);
|
|
`,[c$1("&::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);
|
|
`),cNotM("disabled",[c$1("&:hover::before",`
|
|
background-color: var(--n-item-color-hover);
|
|
`),cM("selected",`
|
|
color: var(--n-item-color-active);
|
|
`,[c$1("&::before","background-color: var(--n-item-color-hover);")])]),cM("disabled",`
|
|
color: var(--n-item-text-color-disabled);
|
|
cursor: not-allowed;
|
|
`,[cM("selected",[c$1("&::before",`
|
|
background-color: var(--n-item-color-disabled);
|
|
`)])])])]),cM("date",{gridTemplateAreas:`
|
|
"left-calendar"
|
|
"footer"
|
|
"action"
|
|
`}),cM("daterange",{gridTemplateAreas:`
|
|
"left-calendar divider right-calendar"
|
|
"footer footer footer"
|
|
"action action action"
|
|
`}),cM("datetime",{gridTemplateAreas:`
|
|
"header"
|
|
"left-calendar"
|
|
"footer"
|
|
"action"
|
|
`}),cM("datetimerange",{gridTemplateAreas:`
|
|
"header header header"
|
|
"left-calendar divider right-calendar"
|
|
"footer footer footer"
|
|
"action action action"
|
|
`}),cM("month",{gridTemplateAreas:`
|
|
"left-calendar"
|
|
"footer"
|
|
"action"
|
|
`}),cB("date-panel-footer",{gridArea:"footer"}),cB("date-panel-actions",{gridArea:"action"}),cB("date-panel-header",{gridArea:"header"}),cB("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);
|
|
`,[c$1(">",[c$1("*:not(:last-child)",{marginRight:"10px"}),c$1("*",{flex:1,width:0}),cB("time-picker",{zIndex:1})])]),cB("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);
|
|
`,[cE("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);
|
|
`),cE("month-year",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
flex-grow: 1;
|
|
position: relative;
|
|
`,[cE("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);
|
|
`,[cM("active",`
|
|
background-color: var(--n-calendar-title-color-hover);
|
|
`),c$1("&:hover",`
|
|
background-color: var(--n-calendar-title-color-hover);
|
|
`)])])]),cB("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);
|
|
`,[cE("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);
|
|
`)]),cB("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;
|
|
`,[cB("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);
|
|
`,[cE("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);
|
|
`),cNotM("disabled",[cNotM("selected",[c$1("&:hover",{backgroundColor:"var(--n-item-color-hover)"})])]),cM("current",[cE("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);
|
|
`)]),c$1("&::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);
|
|
`),cM("covered, start, end",[cNotM("excluded",[c$1("&::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);
|
|
`),c$1("&:nth-child(7n + 1)::before",{borderTopLeftRadius:"var(--n-item-border-radius)",borderBottomLeftRadius:"var(--n-item-border-radius)"}),c$1("&:nth-child(7n + 7)::before",{borderTopRightRadius:"var(--n-item-border-radius)",borderBottomRightRadius:"var(--n-item-border-radius)"})])]),cM("selected",{color:"var(--n-item-text-color-active)"},[c$1("&::after",{backgroundColor:"var(--n-item-color-active)"}),cM("start",[c$1("&::before",{left:"50%"})]),cM("end",[c$1("&::before",{right:"50%"})]),cE("sup",{backgroundColor:"var(--n-panel-color)"})]),cM("excluded",{color:"var(--n-item-text-color-disabled)"},[cM("selected",[c$1("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])]),cM("disabled",{cursor:"not-allowed",color:"var(--n-item-text-color-disabled)"},[cM("covered",[c$1("&::before",{backgroundColor:"var(--n-item-color-disabled)"})]),cM("selected",[c$1("&::before",{backgroundColor:"var(--n-item-color-disabled)"}),c$1("&::after",{backgroundColor:"var(--n-item-color-disabled)"})])])])]),cE("vertical-divider",`
|
|
grid-area: divider;
|
|
height: 100%;
|
|
width: 1px;
|
|
background-color: var(--n-calendar-divider-color);
|
|
`),cB("date-panel-footer",{borderTop:"1px solid var(--n-panel-action-divider-color)",padding:"var(--n-panel-extra-footer-padding)"}),cB("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);
|
|
`,[cE("prefix, suffix",`
|
|
display: flex;
|
|
margin-bottom: -8px;
|
|
`),cE("suffix",`
|
|
align-self: flex-end;
|
|
`),cE("prefix",`
|
|
flex-wrap: wrap;
|
|
`),cB("button",`
|
|
margin-bottom: 8px;
|
|
`,[c$1("&:not(:last-child)",`
|
|
margin-right: 8px;
|
|
`)])])]),c$1("[data-n-date].transition-disabled",{transition:"none !important"},[c$1("&::before, &::after",{transition:"none !important"})])]);const datePickerProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.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 NDatePicker=defineComponent({name:"DatePicker",props:datePickerProps,setup(t,{slots:r}){var n;const{localeRef:o,dateLocaleRef:s}=useLocale("DatePicker"),l=useFormItem(t),{mergedSizeRef:d,mergedDisabledRef:g,mergedStatusRef:y}=l,{mergedComponentPropsRef:b,mergedClsPrefixRef:C,mergedBorderedRef:x,namespaceRef:S,inlineThemeDisabled:_}=useConfig(t),w=ref(null),$=ref(null),I=ref(null),B=ref(!1),R=toRef(t,"show"),P=useMergedState(R,B),M=computed(()=>({locale:s.value.locale})),O=computed(()=>{const{format:Re}=t;if(Re)return Re;switch(t.type){case"date":case"daterange":return o.value.dateFormat;case"datetime":case"datetimerange":return o.value.dateTimeFormat;case"year":case"yearrange":return o.value.yearTypeFormat;case"month":case"monthrange":return o.value.monthTypeFormat;case"quarter":case"quarterrange":return o.value.quarterFormat}}),D=computed(()=>{var Re;return(Re=t.valueFormat)!==null&&Re!==void 0?Re:O.value});function N(Re){if(Re===null)return null;const{value:Ne}=D,{value:je}=M;return Array.isArray(Re)?[strictParse(Re[0],Ne,new Date,je).getTime(),strictParse(Re[1],Ne,new Date,je).getTime()]:strictParse(Re,Ne,new Date,je).getTime()}const{defaultFormattedValue:H,defaultValue:Q}=t,G=ref((n=H!==void 0?N(H):Q)!==null&&n!==void 0?n:null),K=computed(()=>{const{formattedValue:Re}=t;return Re!==void 0?N(Re):t.value}),W=useMergedState(K,G),j=ref(null);watchEffect(()=>{j.value=W.value});const Y=ref(""),q=ref(""),X=ref(""),re=useTheme("DatePicker","-date-picker",style$F,datePickerLight$1,t,C),te=computed(()=>{var Re,Ne;return((Ne=(Re=b==null?void 0:b.value)===null||Re===void 0?void 0:Re.DatePicker)===null||Ne===void 0?void 0:Ne.timePickerSize)||"small"}),oe=computed(()=>["daterange","datetimerange","monthrange","quarterrange","yearrange"].includes(t.type)),ae=computed(()=>{const{placeholder:Re}=t;if(Re===void 0){const{type:Ne}=t;switch(Ne){case"date":return o.value.datePlaceholder;case"datetime":return o.value.datetimePlaceholder;case"month":return o.value.monthPlaceholder;case"year":return o.value.yearPlaceholder;case"quarter":return o.value.quarterPlaceholder;default:return""}}else return Re}),se=computed(()=>t.startPlaceholder===void 0?t.type==="daterange"?o.value.startDatePlaceholder:t.type==="datetimerange"?o.value.startDatetimePlaceholder:t.type==="monthrange"?o.value.startMonthPlaceholder:"":t.startPlaceholder),ue=computed(()=>t.endPlaceholder===void 0?t.type==="daterange"?o.value.endDatePlaceholder:t.type==="datetimerange"?o.value.endDatetimePlaceholder:t.type==="monthrange"?o.value.endMonthPlaceholder:"":t.endPlaceholder),Ae=computed(()=>{const{actions:Re,type:Ne,clearable:je}=t;if(Re===null)return[];if(Re!==void 0)return Re;const nt=je?["clear"]:[];switch(Ne){case"date":return nt.push("now"),nt;case"datetime":return nt.push("now","confirm"),nt;case"daterange":return nt.push("confirm"),nt;case"datetimerange":return nt.push("confirm"),nt;case"month":return nt.push("now","confirm"),nt;case"year":return nt.push("now"),nt;case"quarter":return nt.push("now","confirm"),nt;case"monthrange":case"yearrange":case"quarterrange":return nt.push("confirm"),nt;default:{warn$5("date-picker","The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}}});function pe(Re){if(Re===null)return null;if(Array.isArray(Re)){const{value:Ne}=D,{value:je}=M;return[format$7(Re[0],Ne,je),format$7(Re[1],Ne,M.value)]}else return format$7(Re,D.value,M.value)}function he(Re){j.value=Re}function Ce(Re,Ne){const{"onUpdate:formattedValue":je,onUpdateFormattedValue:nt}=t;je&&call(je,Re,Ne),nt&&call(nt,Re,Ne)}function ve(Re,Ne){const{"onUpdate:value":je,onUpdateValue:nt,onChange:De}=t,{nTriggerFormChange:Qe,nTriggerFormInput:Pe}=l,Ke=pe(Re);Ne.doConfirm&&Be(Re,Ke),nt&&call(nt,Re,Ke),je&&call(je,Re,Ke),De&&call(De,Re,Ke),G.value=Re,Ce(Ke,Re),Qe(),Pe()}function ye(){const{onClear:Re}=t;Re==null||Re()}function Be(Re,Ne){const{onConfirm:je}=t;je&&je(Re,Ne)}function Se(Re){const{onFocus:Ne}=t,{nTriggerFormFocus:je}=l;Ne&&call(Ne,Re),je()}function Ee(Re){const{onBlur:Ne}=t,{nTriggerFormBlur:je}=l;Ne&&call(Ne,Re),je()}function ie(Re){const{"onUpdate:show":Ne,onUpdateShow:je}=t;Ne&&call(Ne,Re),je&&call(je,Re),B.value=Re}function ee(Re){Re.key==="Escape"&&P.value&&(markEventEffectPerformed(Re),Je({returnFocus:!0}))}function J(Re){Re.key==="Escape"&&P.value&&markEventEffectPerformed(Re)}function ce(){var Re;ie(!1),(Re=I.value)===null||Re===void 0||Re.deactivate(),ye()}function fe(){var Re;(Re=I.value)===null||Re===void 0||Re.deactivate(),ye()}function ne(){Je({returnFocus:!0})}function le(Re){var Ne;P.value&&!(!((Ne=$.value)===null||Ne===void 0)&&Ne.contains(getPreciseEventTarget(Re)))&&Je({returnFocus:!1})}function me(Re){Je({returnFocus:!0,disableUpdateOnClose:Re})}function Te(Re,Ne){Ne?ve(Re,{doConfirm:!1}):he(Re)}function ge(){const Re=j.value;ve(Array.isArray(Re)?[Re[0],Re[1]]:Re,{doConfirm:!0})}function $e(){const{value:Re}=j;oe.value?(Array.isArray(Re)||Re===null)&&be(Re):Array.isArray(Re)||de(Re)}function de(Re){Re===null?Y.value="":Y.value=format$7(Re,O.value,M.value)}function be(Re){if(Re===null)q.value="",X.value="";else{const Ne=M.value;q.value=format$7(Re[0],O.value,Ne),X.value=format$7(Re[1],O.value,Ne)}}function we(){P.value||We()}function Me(Re){var Ne;!((Ne=w.value)===null||Ne===void 0)&&Ne.$el.contains(Re.relatedTarget)||(Ee(Re),$e(),Je({returnFocus:!1}))}function Ue(){g.value||($e(),Je({returnFocus:!1}))}function Ge(Re){if(Re===""){ve(null,{doConfirm:!1}),j.value=null,Y.value="";return}const Ne=strictParse(Re,O.value,new Date,M.value);isValid$1(Ne)?(ve(getTime$1(Ne),{doConfirm:!1}),$e()):Y.value=Re}function Ze(Re){if(Re[0]===""&&Re[1]===""){ve(null,{doConfirm:!1}),j.value=null,q.value="",X.value="";return}const[Ne,je]=Re,nt=strictParse(Ne,O.value,new Date,M.value),De=strictParse(je,O.value,new Date,M.value);isValid$1(nt)&&isValid$1(De)?(ve([getTime$1(nt),getTime$1(De)],{doConfirm:!1}),$e()):[q.value,X.value]=Re}function tt(Re){g.value||happensIn(Re,"clear")||P.value||We()}function st(Re){g.value||Se(Re)}function We(){g.value||P.value||ie(!0)}function Je({returnFocus:Re,disableUpdateOnClose:Ne}){var je;P.value&&(ie(!1),t.type!=="date"&&t.updateValueOnClose&&!Ne&&ge(),Re&&((je=I.value)===null||je===void 0||je.focus()))}watch(j,()=>{$e()}),$e(),watch(P,Re=>{Re||(j.value=W.value)});const Ye=uniCalendarValidation(t,j),Xe=dualCalendarValidation(t,j);provide(datePickerInjectionKey,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:C,mergedThemeRef:re,timePickerSizeRef:te,localeRef:o,dateLocaleRef:s,firstDayOfWeekRef:toRef(t,"firstDayOfWeek"),isDateDisabledRef:toRef(t,"isDateDisabled"),rangesRef:toRef(t,"ranges"),timePickerPropsRef:toRef(t,"timePickerProps"),closeOnSelectRef:toRef(t,"closeOnSelect"),updateValueOnCloseRef:toRef(t,"updateValueOnClose")},Ye),Xe),{datePickerSlots:r}));const _e={focus:()=>{var Re;(Re=I.value)===null||Re===void 0||Re.focus()},blur:()=>{var Re;(Re=I.value)===null||Re===void 0||Re.blur()}},xe=computed(()=>{const{common:{cubicBezierEaseInOut:Re},self:{iconColor:Ne,iconColorDisabled:je}}=re.value;return{"--n-bezier":Re,"--n-icon-color-override":Ne,"--n-icon-color-disabled-override":je}}),Le=_?useThemeClass("date-picker-trigger",void 0,xe,t):void 0,Ve=computed(()=>{const{type:Re}=t,{common:{cubicBezierEaseInOut:Ne},self:{calendarTitleFontSize:je,calendarDaysFontSize:nt,itemFontSize:De,itemTextColor:Qe,itemColorDisabled:Pe,itemColorIncluded:Ke,itemColorHover:ot,itemColorActive:ft,itemBorderRadius:it,itemTextColorDisabled:Ie,itemTextColorActive:Fe,panelColor:et,panelTextColor:At,arrowColor:Oe,calendarTitleTextColor:He,panelActionDividerColor:at,panelHeaderDividerColor:ct,calendarDaysDividerColor:dt,panelBoxShadow:yt,panelBorderRadius:gt,calendarTitleFontWeight:ke,panelExtraFooterPadding:qe,panelActionPadding:ut,itemSize:ht,itemCellWidth:mt,itemCellHeight:pt,scrollItemWidth:xt,scrollItemHeight:vt,calendarTitlePadding:bt,calendarTitleHeight:St,calendarDaysHeight:_t,calendarDaysTextColor:wt,arrowSize:$t,panelHeaderPadding:Tt,calendarDividerColor:It,calendarTitleGridTempateColumns:Rt,iconColor:Pt,iconColorDisabled:Mt,scrollItemBorderRadius:Ot,calendarTitleColorHover:Dt,[createKey("calendarLeftPadding",Re)]:Lt,[createKey("calendarRightPadding",Re)]:kt}}=re.value;return{"--n-bezier":Ne,"--n-panel-border-radius":gt,"--n-panel-color":et,"--n-panel-box-shadow":yt,"--n-panel-text-color":At,"--n-panel-header-padding":Tt,"--n-panel-header-divider-color":ct,"--n-calendar-left-padding":Lt,"--n-calendar-right-padding":kt,"--n-calendar-title-color-hover":Dt,"--n-calendar-title-height":St,"--n-calendar-title-padding":bt,"--n-calendar-title-font-size":je,"--n-calendar-title-font-weight":ke,"--n-calendar-title-text-color":He,"--n-calendar-title-grid-template-columns":Rt,"--n-calendar-days-height":_t,"--n-calendar-days-divider-color":dt,"--n-calendar-days-font-size":nt,"--n-calendar-days-text-color":wt,"--n-calendar-divider-color":It,"--n-panel-action-padding":ut,"--n-panel-extra-footer-padding":qe,"--n-panel-action-divider-color":at,"--n-item-font-size":De,"--n-item-border-radius":it,"--n-item-size":ht,"--n-item-cell-width":mt,"--n-item-cell-height":pt,"--n-item-text-color":Qe,"--n-item-color-included":Ke,"--n-item-color-disabled":Pe,"--n-item-color-hover":ot,"--n-item-color-active":ft,"--n-item-text-color-disabled":Ie,"--n-item-text-color-active":Fe,"--n-scroll-item-width":xt,"--n-scroll-item-height":vt,"--n-scroll-item-border-radius":Ot,"--n-arrow-size":$t,"--n-arrow-color":Oe,"--n-icon-color":Pt,"--n-icon-color-disabled":Mt}}),ze=_?useThemeClass("date-picker",computed(()=>t.type),Ve,t):void 0;return Object.assign(Object.assign({},_e),{mergedStatus:y,mergedClsPrefix:C,mergedBordered:x,namespace:S,uncontrolledValue:G,pendingValue:j,panelInstRef:w,triggerElRef:$,inputInstRef:I,isMounted:isMounted(),displayTime:Y,displayStartTime:q,displayEndTime:X,mergedShow:P,adjustedTo:useAdjustedTo(t),isRange:oe,localizedStartPlaceholder:se,localizedEndPlaceholder:ue,mergedSize:d,mergedDisabled:g,localizedPlacehoder:ae,isValueInvalid:Ye.isValueInvalidRef,isStartValueInvalid:Xe.isStartValueInvalidRef,isEndValueInvalid:Xe.isEndValueInvalidRef,handleInputKeydown:J,handleClickOutside:le,handleKeydown:ee,handleClear:ce,handlePanelClear:fe,handleTriggerClick:tt,handleInputActivate:we,handleInputDeactivate:Ue,handleInputFocus:st,handleInputBlur:Me,handlePanelTabOut:ne,handlePanelClose:me,handleRangeUpdateValue:Ze,handleSingleUpdateValue:Ge,handlePanelUpdateValue:Te,handlePanelConfirm:ge,mergedTheme:re,actions:Ae,triggerCssVars:_?void 0:xe,triggerThemeClass:Le==null?void 0:Le.themeClass,triggerOnRender:Le==null?void 0:Le.onRender,cssVars:_?void 0:Ve,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){const{clearable:t,triggerOnRender:r,mergedClsPrefix:n,$slots:o}=this,s={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},l=()=>{const{type:g}=this;return g==="datetime"?h(DatetimePanel,Object.assign({},s),o):g==="daterange"?h(DaterangePanel,Object.assign({},s,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),o):g==="datetimerange"?h(DatetimerangePanel,Object.assign({},s,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),o):g==="month"||g==="year"||g==="quarter"?h(MonthPanel,Object.assign({},s,{type:g,key:g})):g==="monthrange"||g==="yearrange"||g==="quarterrange"?h(MonthRangePanel,Object.assign({},s,{type:g})):h(DatePanel,Object.assign({},s),o)};if(this.panel)return l();r==null||r();const d={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:t,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return h("div",{ref:"triggerElRef",class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>this.isRange?h(NInput,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},d),{separator:()=>this.separator===void 0?resolveSlot(o.separator,()=>[h(NBaseIcon,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>h(ToIcon,null)})]):this.separator,[t?"clear-icon-placeholder":"suffix"]:()=>resolveSlot(o["date-icon"],()=>[h(NBaseIcon,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>h(DateIcon,null)})])}):h(NInput,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},d),{[t?"clear-icon-placeholder":"suffix"]:()=>h(NBaseIcon,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>resolveSlot(o["date-icon"],()=>[h(DateIcon,null)])})})}),h(VFollower,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.placement},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted},{default:()=>this.mergedShow?withDirectives(l(),[[clickoutside$1,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),commonVariables$7={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 self$A=t=>{const{tableHeaderColor:r,textColor2:n,textColor1:o,cardColor:s,modalColor:l,popoverColor:d,dividerColor:g,borderRadius:y,fontWeightStrong:b,lineHeight:C,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:_}=t;return Object.assign(Object.assign({},commonVariables$7),{lineHeight:C,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:_,titleTextColor:o,thColor:composite(s,r),thColorModal:composite(l,r),thColorPopover:composite(d,r),thTextColor:o,thFontWeight:b,tdTextColor:n,tdColor:s,tdColorModal:l,tdColorPopover:d,borderColor:composite(s,g),borderColorModal:composite(l,g),borderColorPopover:composite(d,g),borderRadius:y})},descriptionsLight={name:"Descriptions",common:commonLight,self:self$A};var descriptionsLight$1=descriptionsLight;const descriptionsDark={name:"Descriptions",common:commonDark,self:self$A};var descriptionsDark$1=descriptionsDark;const DESCRIPTION_ITEM_FLAG="DESCRIPTION_ITEM_FLAG";function isDescriptionsItem(t){return typeof t=="object"&&t&&!Array.isArray(t)?t.type&&t.type[DESCRIPTION_ITEM_FLAG]:!1}var style$E=c$1([cB("descriptions",{fontSize:"var(--n-font-size)"},[cB("descriptions-separator",`
|
|
display: inline-block;
|
|
margin: 0 8px 0 2px;
|
|
`),cB("descriptions-table-wrapper",[cB("descriptions-table",[cB("descriptions-table-row",[cB("descriptions-table-header",{padding:"var(--n-th-padding)"}),cB("descriptions-table-content",{padding:"var(--n-td-padding)"})])])]),cNotM("bordered",[cB("descriptions-table-wrapper",[cB("descriptions-table",[cB("descriptions-table-row",[c$1("&:last-child",[cB("descriptions-table-content",{paddingBottom:0})])])])])]),cM("left-label-placement",[cB("descriptions-table-content",[c$1("> *",{verticalAlign:"top"})])]),cM("left-label-align",[c$1("th",{textAlign:"left"})]),cM("center-label-align",[c$1("th",{textAlign:"center"})]),cM("right-label-align",[c$1("th",{textAlign:"right"})]),cM("bordered",[cB("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);
|
|
`,[cB("descriptions-table",[cB("descriptions-table-row",[c$1("&:not(:last-child)",[cB("descriptions-table-content",{borderBottom:"1px solid var(--n-merged-border-color)"}),cB("descriptions-table-header",{borderBottom:"1px solid var(--n-merged-border-color)"})]),cB("descriptions-table-header",`
|
|
font-weight: 400;
|
|
background-clip: padding-box;
|
|
background-color: var(--n-merged-th-color);
|
|
`,[c$1("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})]),cB("descriptions-table-content",[c$1("&:not(:last-child)",{borderRight:"1px solid var(--n-merged-border-color)"})])])])])]),cB("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);
|
|
`),cB("descriptions-table-wrapper",`
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[cB("descriptions-table",`
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
box-sizing: border-box;
|
|
`,[cB("descriptions-table-row",`
|
|
box-sizing: border-box;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[cB("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);
|
|
`),cB("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);
|
|
`,[cE("content",`
|
|
transition: color .3s var(--n-bezier);
|
|
display: inline-block;
|
|
color: var(--n-td-text-color);
|
|
`)]),cE("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);
|
|
`)])])])]),cB("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);
|
|
`),insideModal(cB("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);
|
|
`)),insidePopover(cB("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 descriptionsProps=Object.assign(Object.assign({},useTheme.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 NDescriptions=defineComponent({name:"Descriptions",props:descriptionsProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Descriptions","-descriptions",style$E,descriptionsLight$1,t,r),s=computed(()=>{const{size:d,bordered:g}=t,{common:{cubicBezierEaseInOut:y},self:{titleTextColor:b,thColor:C,thColorModal:x,thColorPopover:S,thTextColor:_,thFontWeight:w,tdTextColor:$,tdColor:I,tdColorModal:B,tdColorPopover:R,borderColor:P,borderColorModal:M,borderColorPopover:O,borderRadius:D,lineHeight:N,[createKey("fontSize",d)]:H,[createKey(g?"thPaddingBordered":"thPadding",d)]:Q,[createKey(g?"tdPaddingBordered":"tdPadding",d)]:G}}=o.value;return{"--n-title-text-color":b,"--n-th-padding":Q,"--n-td-padding":G,"--n-font-size":H,"--n-bezier":y,"--n-th-font-weight":w,"--n-line-height":N,"--n-th-text-color":_,"--n-td-text-color":$,"--n-th-color":C,"--n-th-color-modal":x,"--n-th-color-popover":S,"--n-td-color":I,"--n-td-color-modal":B,"--n-td-color-popover":R,"--n-border-radius":D,"--n-border-color":P,"--n-border-color-modal":M,"--n-border-color-popover":O}}),l=n?useThemeClass("descriptions",computed(()=>{let d="";const{size:g,bordered:y}=t;return y&&(d+="a"),d+=g[0],d}),s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender,compitableColumn:useCompitable(t,["columns","column"]),inlineThemeDisabled:n}},render(){const t=this.$slots.default,r=t?flatten$5(t()):[];r.length;const{compitableColumn:n,labelPlacement:o,labelAlign:s,size:l,bordered:d,title:g,cssVars:y,mergedClsPrefix:b,separator:C,onRender:x}=this;x==null||x();const S=r.filter(I=>isDescriptionsItem(I)),_={span:0,row:[],secondRow:[],rows:[]},$=S.reduce((I,B,R)=>{const P=B.props||{},M=S.length-1===R,O=["label"in P?P.label:getVNodeChildren(B,"label")],D=[getVNodeChildren(B)],N=P.span||1,H=I.span;I.span+=N;const Q=P.labelStyle||P["label-style"]||this.labelStyle,G=P.contentStyle||P["content-style"]||this.contentStyle;if(o==="left")d?I.row.push(h("th",{class:`${b}-descriptions-table-header`,colspan:1,style:Q},O),h("td",{class:`${b}-descriptions-table-content`,colspan:M?(n-H)*2+1:N*2-1,style:G},D)):I.row.push(h("td",{class:`${b}-descriptions-table-content`,colspan:M?(n-H)*2:N*2},h("span",{class:`${b}-descriptions-table-content__label`,style:Q},[...O,C&&h("span",{class:`${b}-descriptions-separator`},C)]),h("span",{class:`${b}-descriptions-table-content__content`,style:G},D)));else{const K=M?(n-H)*2:N*2;I.row.push(h("th",{class:`${b}-descriptions-table-header`,colspan:K,style:Q},O)),I.secondRow.push(h("td",{class:`${b}-descriptions-table-content`,colspan:K,style:G},D))}return(I.span>=n||M)&&(I.span=0,I.row.length&&(I.rows.push(I.row),I.row=[]),o!=="left"&&I.secondRow.length&&(I.rows.push(I.secondRow),I.secondRow=[])),I},_).rows.map(I=>h("tr",{class:`${b}-descriptions-table-row`},I));return h("div",{style:y,class:[`${b}-descriptions`,this.themeClass,`${b}-descriptions--${o}-label-placement`,`${b}-descriptions--${s}-label-align`,`${b}-descriptions--${l}-size`,d&&`${b}-descriptions--bordered`]},g||this.$slots.header?h("div",{class:`${b}-descriptions-header`},g||getSlot$1(this,"header")):null,h("div",{class:`${b}-descriptions-table-wrapper`},h("table",{class:`${b}-descriptions-table`},h("tbody",null,$))))}});const descriptionsItemProps={label:String,span:{type:Number,default:1},labelStyle:[Object,String],contentStyle:[Object,String]};var NDescriptionsItem=defineComponent({name:"DescriptionsItem",[DESCRIPTION_ITEM_FLAG]:!0,props:descriptionsItemProps,render(){return null}}),commonVars$5={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 self$z=t=>{const{textColor1:r,textColor2:n,modalColor:o,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeColorHover:g,closeColorPressed:y,infoColor:b,successColor:C,warningColor:x,errorColor:S,primaryColor:_,dividerColor:w,borderRadius:$,fontWeightStrong:I,lineHeight:B,fontSize:R}=t;return Object.assign(Object.assign({},commonVars$5),{fontSize:R,lineHeight:B,border:`1px solid ${w}`,titleTextColor:r,textColor:n,color:o,closeColorHover:g,closeColorPressed:y,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeBorderRadius:$,iconColor:_,iconColorInfo:b,iconColorSuccess:C,iconColorWarning:x,iconColorError:S,borderRadius:$,titleFontWeight:I})},dialogLight={name:"Dialog",common:commonLight,peers:{Button:buttonLight$1},self:self$z};var dialogLight$1=dialogLight;const dialogDark={name:"Dialog",common:commonDark,peers:{Button:buttonDark$1},self:self$z};var dialogDark$1=dialogDark;const dialogProps={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},dialogPropKeys=keysOf(dialogProps);var style$D=c$1([cB("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);
|
|
`,[cE("icon",{color:"var(--n-icon-color)"}),cM("bordered",{border:"var(--n-border)"}),cM("icon-top",[cE("close",{margin:"var(--n-close-margin)"}),cE("icon",{margin:"var(--n-icon-margin)"}),cE("content",{textAlign:"center"}),cE("title",{justifyContent:"center"}),cE("action",{justifyContent:"center"})]),cM("icon-left",[cE("icon",{margin:"var(--n-icon-margin)"}),cM("closable",[cE("title",`
|
|
padding-right: calc(var(--n-close-size) + 6px);
|
|
`)])]),cE("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;
|
|
`),cE("content",`
|
|
font-size: var(--n-font-size);
|
|
margin: var(--n-content-margin);
|
|
position: relative;
|
|
word-break: break-word;
|
|
`,[cM("last","margin-bottom: 0;")]),cE("action",`
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
`,[c$1("> *:not(:last-child)",{marginRight:"var(--n-action-space)"})]),cE("icon",{fontSize:"var(--n-icon-size)",transition:"color .3s var(--n-bezier)"}),cE("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);
|
|
`),cB("dialog-icon-container",{display:"flex",justifyContent:"center"})]),insideModal(cB("dialog",`
|
|
width: 446px;
|
|
max-width: calc(100vw - 32px);
|
|
`)),cB("dialog",[asModal(`
|
|
width: 446px;
|
|
max-width: calc(100vw - 32px);
|
|
`)])]);const iconRenderMap$2={default:()=>h(InfoIcon,null),info:()=>h(InfoIcon,null),success:()=>h(SuccessIcon,null),warning:()=>h(WarningIcon,null),error:()=>h(ErrorIcon,null)},NDialog=defineComponent({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},useTheme.props),dialogProps),setup(t){const{mergedComponentPropsRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:o}=useConfig(t),s=computed(()=>{var x,S;const{iconPlacement:_}=t;return _||((S=(x=r==null?void 0:r.value)===null||x===void 0?void 0:x.Dialog)===null||S===void 0?void 0:S.iconPlacement)||"left"});function l(x){const{onPositiveClick:S}=t;S&&S(x)}function d(x){const{onNegativeClick:S}=t;S&&S(x)}function g(){const{onClose:x}=t;x&&x()}const y=useTheme("Dialog","-dialog",style$D,dialogLight$1,t,n),b=computed(()=>{const{type:x}=t,S=s.value,{common:{cubicBezierEaseInOut:_},self:{fontSize:w,lineHeight:$,border:I,titleTextColor:B,textColor:R,color:P,closeBorderRadius:M,closeColorHover:O,closeColorPressed:D,closeIconColor:N,closeIconColorHover:H,closeIconColorPressed:Q,closeIconSize:G,borderRadius:K,titleFontWeight:W,titleFontSize:j,padding:Y,iconSize:q,actionSpace:X,contentMargin:re,closeSize:te,[S==="top"?"iconMarginIconTop":"iconMargin"]:oe,[S==="top"?"closeMarginIconTop":"closeMargin"]:ae,[createKey("iconColor",x)]:se}}=y.value;return{"--n-font-size":w,"--n-icon-color":se,"--n-bezier":_,"--n-close-margin":ae,"--n-icon-margin":oe,"--n-icon-size":q,"--n-close-size":te,"--n-close-icon-size":G,"--n-close-border-radius":M,"--n-close-color-hover":O,"--n-close-color-pressed":D,"--n-close-icon-color":N,"--n-close-icon-color-hover":H,"--n-close-icon-color-pressed":Q,"--n-color":P,"--n-text-color":R,"--n-border-radius":K,"--n-padding":Y,"--n-line-height":$,"--n-border":I,"--n-content-margin":re,"--n-title-font-size":j,"--n-title-font-weight":W,"--n-title-text-color":B,"--n-action-space":X}}),C=o?useThemeClass("dialog",computed(()=>`${t.type[0]}${s.value[0]}`),b,t):void 0;return{mergedClsPrefix:n,mergedIconPlacement:s,mergedTheme:y,handlePositiveClick:l,handleNegativeClick:d,handleCloseClick:g,cssVars:o?void 0:b,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){var t;const{bordered:r,mergedIconPlacement:n,cssVars:o,closable:s,showIcon:l,title:d,content:g,action:y,negativeText:b,positiveText:C,positiveButtonProps:x,negativeButtonProps:S,handlePositiveClick:_,handleNegativeClick:w,mergedTheme:$,loading:I,type:B,mergedClsPrefix:R}=this;(t=this.onRender)===null||t===void 0||t.call(this);const P=l?h(NBaseIcon,{clsPrefix:R,class:`${R}-dialog__icon`},{default:()=>resolveWrappedSlot(this.$slots.icon,O=>O||(this.icon?render$2(this.icon):iconRenderMap$2[this.type]()))}):null,M=resolveWrappedSlot(this.$slots.action,O=>O||C||b||y?h("div",{class:`${R}-dialog__action`},O||(y?[render$2(y)]:[this.negativeText&&h(NButton,Object.assign({theme:$.peers.Button,themeOverrides:$.peerOverrides.Button,ghost:!0,size:"small",onClick:w},S),{default:()=>render$2(this.negativeText)}),this.positiveText&&h(NButton,Object.assign({theme:$.peers.Button,themeOverrides:$.peerOverrides.Button,size:"small",type:B==="default"?"primary":B,disabled:I,loading:I,onClick:_},x),{default:()=>render$2(this.positiveText)})])):null);return h("div",{class:[`${R}-dialog`,this.themeClass,this.closable&&`${R}-dialog--closable`,`${R}-dialog--icon-${n}`,r&&`${R}-dialog--bordered`],style:o,role:"dialog"},s?h(NBaseClose,{clsPrefix:R,class:`${R}-dialog__close`,onClick:this.handleCloseClick}):null,l&&n==="top"?h("div",{class:`${R}-dialog-icon-container`},P):null,h("div",{class:`${R}-dialog__title`},l&&n==="left"?P:null,resolveSlot(this.$slots.header,()=>[render$2(d)])),h("div",{class:[`${R}-dialog__content`,M?"":`${R}-dialog__content--last`]},resolveSlot(this.$slots.default,()=>[render$2(g)])),M)}}),dialogProviderInjectionKey="n-dialog-provider",dialogApiInjectionKey="n-dialog-api",dialogReactiveListInjectionKey="n-dialog-reactive-list",self$y=t=>{const{modalColor:r,textColor2:n,boxShadow3:o}=t;return{color:r,textColor:n,boxShadow:o}},modalLight={name:"Modal",common:commonLight,peers:{Scrollbar:scrollbarLight$1,Dialog:dialogLight$1,Card:cardLight$1},self:self$y};var modalLight$1=modalLight;const modalDark={name:"Modal",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Dialog:dialogDark$1,Card:cardDark$1},self:self$y};var modalDark$1=modalDark;const presetProps=Object.assign(Object.assign({},cardBaseProps),dialogProps),presetPropsKeys=keysOf(presetProps);var NModalBodyWrapper=defineComponent({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},presetProps),{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(t){const r=ref(null),n=ref(null),o=ref(t.show),s=ref(null),l=ref(null);watch(toRef(t,"show"),I=>{I&&(o.value=!0)}),useLockHtmlScroll(computed(()=>t.blockScroll&&o.value));const d=inject(modalInjectionKey);function g(){if(d.transformOriginRef.value==="center")return"";const{value:I}=s,{value:B}=l;if(I===null||B===null)return"";if(n.value){const R=n.value.containerScrollTop;return`${I}px ${B+R}px`}return""}function y(I){if(d.transformOriginRef.value==="center")return;const B=d.getMousePosition();if(!B||!n.value)return;const R=n.value.containerScrollTop,{offsetLeft:P,offsetTop:M}=I;if(B){const O=B.y,D=B.x;s.value=-(P-D),l.value=-(M-O-R)}I.style.transformOrigin=g()}function b(I){nextTick(()=>{y(I)})}function C(I){I.style.transformOrigin=g(),t.onBeforeLeave()}function x(){o.value=!1,s.value=null,l.value=null,t.onAfterLeave()}function S(){const{onClose:I}=t;I&&I()}function _(){t.onNegativeClick()}function w(){t.onPositiveClick()}const $=ref(null);return watch($,I=>{I&&nextTick(()=>{const B=I.el;B&&r.value!==B&&(r.value=B)})}),provide(modalBodyInjectionKey,r),provide(drawerBodyInjectionKey,null),provide(popoverBodyInjectionKey,null),{mergedTheme:d.mergedThemeRef,appear:d.appearRef,isMounted:d.isMountedRef,mergedClsPrefix:d.mergedClsPrefixRef,bodyRef:r,scrollbarRef:n,displayed:o,childNodeRef:$,handlePositiveClick:w,handleNegativeClick:_,handleCloseClick:S,handleAfterLeave:x,handleBeforeLeave:C,handleEnter:b}},render(){const{$slots:t,$attrs:r,handleEnter:n,handleAfterLeave:o,handleBeforeLeave:s,preset:l,mergedClsPrefix:d}=this;let g=null;if(!l){if(g=getFirstSlotVNode(t),!g){warn$5("modal","default slot is empty");return}g=cloneVNode(g),g.props=mergeProps({class:`${d}-modal`},r,g.props||{})}return this.displayDirective==="show"||this.displayed||this.show?withDirectives(h("div",{role:"none",class:`${d}-modal-body-wrapper`},h(NScrollbar$1,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${d}-modal-scroll-content`},{default:()=>{var y;return[(y=this.renderMask)===null||y===void 0?void 0:y.call(this),h(FocusTrap,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var b;return h(Transition,{name:"fade-in-scale-up-transition",appear:(b=this.appear)!==null&&b!==void 0?b:this.isMounted,onEnter:n,onAfterEnter:this.onAfterEnter,onAfterLeave:o,onBeforeLeave:s},{default:()=>{const C=[[vShow,this.show]],{onClickoutside:x}=this;return x&&C.push([clickoutside$1,this.onClickoutside,void 0,{capture:!0}]),withDirectives(this.preset==="confirm"||this.preset==="dialog"?h(NDialog,Object.assign({},this.$attrs,{class:[`${d}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},keep(this.$props,dialogPropKeys),{"aria-modal":"true"}),t):this.preset==="card"?h(NCard,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${d}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},keep(this.$props,cardBasePropKeys),{"aria-modal":"true",role:"dialog"}),t):this.childNodeRef=g,C)}})}})]}})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}}),style$C=c$1([cB("modal-container",`
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
height: 0;
|
|
width: 0;
|
|
display: flex;
|
|
`),cB("modal-mask",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, .4);
|
|
`,[fadeInTransition({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),cB("modal-body-wrapper",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
overflow: visible;
|
|
`,[cB("modal-scroll-content",`
|
|
min-height: 100%;
|
|
display: flex;
|
|
position: relative;
|
|
`)]),cB("modal",`
|
|
position: relative;
|
|
align-self: center;
|
|
color: var(--n-text-color);
|
|
margin: auto;
|
|
box-shadow: var(--n-box-shadow);
|
|
`,[fadeInScaleUpTransition({duration:".25s",enterScale:".5"})])]);const modalProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.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}}),presetProps),{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 NModal=defineComponent({name:"Modal",inheritAttrs:!1,props:modalProps,setup(t){const r=ref(null),{mergedClsPrefixRef:n,namespaceRef:o,inlineThemeDisabled:s}=useConfig(t),l=useTheme("Modal","-modal",style$C,modalLight$1,t,n),d=useClicked(64),g=useClickPosition(),y=isMounted(),b=t.internalDialog?inject(dialogProviderInjectionKey,null):null,C=useIsComposing();function x(O){const{onUpdateShow:D,"onUpdate:show":N,onHide:H}=t;D&&call(D,O),N&&call(N,O),H&&!O&&H(O)}function S(){const{onClose:O}=t;O?Promise.resolve(O()).then(D=>{D!==!1&&x(!1)}):x(!1)}function _(){const{onPositiveClick:O}=t;O?Promise.resolve(O()).then(D=>{D!==!1&&x(!1)}):x(!1)}function w(){const{onNegativeClick:O}=t;O?Promise.resolve(O()).then(D=>{D!==!1&&x(!1)}):x(!1)}function $(){const{onBeforeLeave:O,onBeforeHide:D}=t;O&&call(O),D&&D()}function I(){const{onAfterLeave:O,onAfterHide:D}=t;O&&call(O),D&&D()}function B(O){var D;const{onMaskClick:N}=t;N&&N(O),t.maskClosable&&!((D=r.value)===null||D===void 0)&&D.contains(getPreciseEventTarget(O))&&x(!1)}function R(O){var D;(D=t.onEsc)===null||D===void 0||D.call(t),t.show&&t.closeOnEsc&&eventEffectNotPerformed(O)&&!C.value&&x(!1)}provide(modalInjectionKey,{getMousePosition:()=>{if(b){const{clickedRef:O,clickPositionRef:D}=b;if(O.value&&D.value)return D.value}return d.value?g.value:null},mergedClsPrefixRef:n,mergedThemeRef:l,isMountedRef:y,appearRef:toRef(t,"internalAppear"),transformOriginRef:toRef(t,"transformOrigin")});const P=computed(()=>{const{common:{cubicBezierEaseOut:O},self:{boxShadow:D,color:N,textColor:H}}=l.value;return{"--n-bezier-ease-out":O,"--n-box-shadow":D,"--n-color":N,"--n-text-color":H}}),M=s?useThemeClass("theme-class",void 0,P,t):void 0;return{mergedClsPrefix:n,namespace:o,isMounted:y,containerRef:r,presetProps:computed(()=>keep(t,presetPropsKeys)),handleEsc:R,handleAfterLeave:I,handleClickoutside:B,handleBeforeLeave:$,doUpdateShow:x,handleNegativeClick:w,handlePositiveClick:_,handleCloseClick:S,cssVars:s?void 0:P,themeClass:M==null?void 0:M.themeClass,onRender:M==null?void 0:M.onRender}},render(){const{mergedClsPrefix:t}=this;return h(LazyTeleport,{to:this.to,show:this.show},{default:()=>{var r;(r=this.onRender)===null||r===void 0||r.call(this);const{unstableShowMask:n}=this;return withDirectives(h("div",{role:"none",ref:"containerRef",class:[`${t}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},h(NModalBodyWrapper,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:n?void 0:this.handleClickoutside,renderMask:n?()=>{var o;return h(Transition,{name:"fade-in-transition",key:"mask",appear:(o=this.internalAppear)!==null&&o!==void 0?o:this.isMounted},{default:()=>this.show?h("div",{"aria-hidden":!0,ref:"containerRef",class:`${t}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[zindexable$1,{zIndex:this.zIndex,enabled:this.show}]])}})}});const exposedDialogEnvProps=Object.assign(Object.assign({},dialogProps),{onAfterEnter:Function,onAfterLeave:Function,transformOrigin:String,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}),NDialogEnvironment=defineComponent({name:"DialogEnvironment",props:Object.assign(Object.assign({},exposedDialogEnvProps),{internalKey:{type:String,required:!0},to:[String,Object],onInternalAfterLeave:{type:Function,required:!0}}),setup(t){const r=ref(!0);function n(){const{onInternalAfterLeave:C,internalKey:x,onAfterLeave:S}=t;C&&C(x),S&&S()}function o(C){const{onPositiveClick:x}=t;x?Promise.resolve(x(C)).then(S=>{S!==!1&&y()}):y()}function s(C){const{onNegativeClick:x}=t;x?Promise.resolve(x(C)).then(S=>{S!==!1&&y()}):y()}function l(){const{onClose:C}=t;C?Promise.resolve(C()).then(x=>{x!==!1&&y()}):y()}function d(C){const{onMaskClick:x,maskClosable:S}=t;x&&(x(C),S&&y())}function g(){const{onEsc:C}=t;C&&C()}function y(){r.value=!1}function b(C){r.value=C}return{show:r,hide:y,handleUpdateShow:b,handleAfterLeave:n,handleCloseClick:l,handleNegativeClick:s,handlePositiveClick:o,handleMaskClick:d,handleEsc:g}},render(){const{handlePositiveClick:t,handleUpdateShow:r,handleNegativeClick:n,handleCloseClick:o,handleAfterLeave:s,handleMaskClick:l,handleEsc:d,to:g,maskClosable:y,show:b}=this;return h(NModal,{show:b,onUpdateShow:r,onMaskClick:l,onEsc:d,to:g,maskClosable:y,onAfterEnter:this.onAfterEnter,onAfterLeave:s,closeOnEsc:this.closeOnEsc,blockScroll:this.blockScroll,autoFocus:this.autoFocus,transformOrigin:this.transformOrigin,internalAppear:!0,internalDialog:!0},{default:()=>h(NDialog,Object.assign({},keep(this.$props,dialogPropKeys),{style:this.internalStyle,onClose:o,onNegativeClick:n,onPositiveClick:t}))})}}),dialogProviderProps={injectionKey:String,to:[String,Object]},NDialogProvider=defineComponent({name:"DialogProvider",props:dialogProviderProps,setup(){const t=ref([]),r={};function n(g={}){const y=createId(),b=reactive(Object.assign(Object.assign({},g),{key:y,destroy:()=>{r[`n-dialog-${y}`].hide()}}));return t.value.push(b),b}const o=["info","success","warning","error"].map(g=>y=>n(Object.assign(Object.assign({},y),{type:g})));function s(g){const{value:y}=t;y.splice(y.findIndex(b=>b.key===g),1)}function l(){Object.values(r).forEach(g=>g.hide())}const d={create:n,destroyAll:l,info:o[0],success:o[1],warning:o[2],error:o[3]};return provide(dialogApiInjectionKey,d),provide(dialogProviderInjectionKey,{clickedRef:useClicked(64),clickPositionRef:useClickPosition()}),provide(dialogReactiveListInjectionKey,t),Object.assign(Object.assign({},d),{dialogList:t,dialogInstRefs:r,handleAfterLeave:s})},render(){var t,r;return h(Fragment,null,[this.dialogList.map(n=>h(NDialogEnvironment,omit(n,["destroy","style"],{internalStyle:n.style,to:this.to,ref:o=>{o===null?delete this.dialogInstRefs[`n-dialog-${n.key}`]:this.dialogInstRefs[`n-dialog-${n.key}`]=o},internalKey:n.key,onInternalAfterLeave:this.handleAfterLeave}))),(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t)])}});function useDialog(){const t=inject(dialogApiInjectionKey,null);return t===null&&throwError$1("use-dialog","No outer <n-dialog-provider /> founded."),t}const self$x=t=>{const{textColor1:r,dividerColor:n,fontWeightStrong:o}=t;return{textColor:r,color:n,fontWeight:o}},dividerLight={name:"Divider",common:commonLight,self:self$x};var dividerLight$1=dividerLight;const dividerDark={name:"Divider",common:commonDark,self:self$x};var dividerDark$1=dividerDark,style$B=cB("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);
|
|
`,[cNotM("vertical",`
|
|
margin-top: 24px;
|
|
margin-bottom: 24px;
|
|
`,[cNotM("no-title",`
|
|
display: flex;
|
|
align-items: center;
|
|
`)]),cE("title",`
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: 12px;
|
|
margin-right: 12px;
|
|
white-space: nowrap;
|
|
font-weight: var(--n-font-weight);
|
|
`),cM("title-position-left",[cE("line",[cM("left",{width:"28px"})])]),cM("title-position-right",[cE("line",[cM("right",{width:"28px"})])]),cM("dashed",[cE("line",`
|
|
background-color: #0000;
|
|
height: 0px;
|
|
width: 100%;
|
|
border-style: dashed;
|
|
border-width: 1px 0 0;
|
|
`)]),cM("vertical",`
|
|
display: inline-block;
|
|
height: 1em;
|
|
margin: 0 8px;
|
|
vertical-align: middle;
|
|
width: 1px;
|
|
`),cE("line",`
|
|
border: none;
|
|
transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
|
|
height: 1px;
|
|
width: 100%;
|
|
margin: 0;
|
|
`),cNotM("dashed",[cE("line",{backgroundColor:"var(--n-color)"})]),cM("dashed",[cE("line",{borderColor:"var(--n-color)"})]),cM("vertical",{backgroundColor:"var(--n-color)"})]);const dividerProps=Object.assign(Object.assign({},useTheme.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean});var NDivider=defineComponent({name:"Divider",props:dividerProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Divider","-divider",style$B,dividerLight$1,t,r),s=computed(()=>{const{common:{cubicBezierEaseInOut:d},self:{color:g,textColor:y,fontWeight:b}}=o.value;return{"--n-bezier":d,"--n-color":g,"--n-text-color":y,"--n-font-weight":b}}),l=n?useThemeClass("divider",void 0,s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{$slots:r,titlePlacement:n,vertical:o,dashed:s,cssVars:l,mergedClsPrefix:d}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{role:"separator",class:[`${d}-divider`,this.themeClass,{[`${d}-divider--vertical`]:o,[`${d}-divider--no-title`]:!r.default,[`${d}-divider--dashed`]:s,[`${d}-divider--title-position-${n}`]:r.default&&n}],style:l},o?null:h("div",{class:`${d}-divider__line ${d}-divider__line--left`}),!o&&r.default?h(Fragment,null,h("div",{class:`${d}-divider__title`},this.$slots),h("div",{class:`${d}-divider__line ${d}-divider__line--right`})):null)}});const self$w=t=>{const{modalColor:r,textColor1:n,textColor2:o,boxShadow3:s,lineHeight:l,fontWeightStrong:d,dividerColor:g,closeColorHover:y,closeColorPressed:b,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,borderRadius:_,primaryColorHover:w}=t;return{bodyPadding:"16px 24px",headerPadding:"16px 24px",footerPadding:"16px 24px",color:r,textColor:o,titleTextColor:n,titleFontSize:"18px",titleFontWeight:d,boxShadow:s,lineHeight:l,headerBorderBottom:`1px solid ${g}`,footerBorderTop:`1px solid ${g}`,closeIconColor:C,closeIconColorHover:x,closeIconColorPressed:S,closeSize:"22px",closeIconSize:"18px",closeColorHover:y,closeColorPressed:b,closeBorderRadius:_,resizableTriggerColorHover:w}},drawerLight={name:"Drawer",common:commonLight,peers:{Scrollbar:scrollbarLight$1},self:self$w};var drawerLight$1=drawerLight;const drawerDark={name:"Drawer",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self:self$w};var drawerDark$1=drawerDark,NDrawerBodyWrapper=defineComponent({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(t){const r=ref(!!t.show),n=ref(null),o=inject(drawerInjectionKey);let s=0,l="",d=null;const g=ref(!1),y=ref(!1),b=computed(()=>t.placement==="top"||t.placement==="bottom"),{mergedClsPrefixRef:C,mergedRtlRef:x}=useConfig(t),S=useRtl("Drawer",x,C),_=N=>{y.value=!0,s=b.value?N.clientY:N.clientX,l=document.body.style.cursor,document.body.style.cursor=b.value?"ns-resize":"ew-resize",document.body.addEventListener("mousemove",R),document.body.addEventListener("mouseleave",M),document.body.addEventListener("mouseup",P)},w=()=>{d!==null&&(window.clearTimeout(d),d=null),y.value?g.value=!0:d=window.setTimeout(()=>{g.value=!0},300)},$=()=>{d!==null&&(window.clearTimeout(d),d=null),g.value=!1},{doUpdateHeight:I,doUpdateWidth:B}=o,R=N=>{var H,Q;if(y.value)if(b.value){let G=((H=n.value)===null||H===void 0?void 0:H.offsetHeight)||0;const K=s-N.clientY;G+=t.placement==="bottom"?K:-K,I(G),s=N.clientY}else{let G=((Q=n.value)===null||Q===void 0?void 0:Q.offsetWidth)||0;const K=s-N.clientX;G+=t.placement==="right"?K:-K,B(G),s=N.clientX}},P=()=>{y.value&&(s=0,y.value=!1,document.body.style.cursor=l,document.body.removeEventListener("mousemove",R),document.body.removeEventListener("mouseup",P),document.body.removeEventListener("mouseleave",M))},M=P;watchEffect(()=>{t.show&&(r.value=!0)}),watch(()=>t.show,N=>{N||P()}),onBeforeUnmount(()=>{P()});const O=computed(()=>{const{show:N}=t,H=[[vShow,N]];return t.showMask||H.push([clickoutside$1,t.onClickoutside,void 0,{capture:!0}]),H});function D(){var N;r.value=!1,(N=t.onAfterLeave)===null||N===void 0||N.call(t)}return useLockHtmlScroll(computed(()=>t.blockScroll&&r.value)),provide(drawerBodyInjectionKey,n),provide(popoverBodyInjectionKey,null),provide(modalBodyInjectionKey,null),{bodyRef:n,rtlEnabled:S,mergedClsPrefix:o.mergedClsPrefixRef,isMounted:o.isMountedRef,mergedTheme:o.mergedThemeRef,displayed:r,transitionName:computed(()=>({right:"slide-in-from-right-transition",left:"slide-in-from-left-transition",top:"slide-in-from-top-transition",bottom:"slide-in-from-bottom-transition"})[t.placement]),handleAfterLeave:D,bodyDirectives:O,handleMousedownResizeTrigger:_,handleMouseenterResizeTrigger:w,handleMouseleaveResizeTrigger:$,isDragging:y,isHoverOnResizeTrigger:g}},render(){const{$slots:t,mergedClsPrefix:r}=this;return this.displayDirective==="show"||this.displayed||this.show?withDirectives(h("div",{role:"none"},h(FocusTrap,{disabled:!this.showMask||!this.trapFocus,active:this.show,autoFocus:this.autoFocus,onEsc:this.onEsc},{default:()=>h(Transition,{name:this.transitionName,appear:this.isMounted,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave},{default:()=>withDirectives(h("div",mergeProps(this.$attrs,{role:"dialog",ref:"bodyRef","aria-modal":"true",class:[`${r}-drawer`,this.rtlEnabled&&`${r}-drawer--rtl`,`${r}-drawer--${this.placement}-placement`,this.isDragging&&`${r}-drawer--unselectable`,this.nativeScrollbar&&`${r}-drawer--native-scrollbar`]}),[this.resizable?h("div",{class:[`${r}-drawer__resize-trigger`,(this.isDragging||this.isHoverOnResizeTrigger)&&`${r}-drawer__resize-trigger--hover`],onMouseenter:this.handleMouseenterResizeTrigger,onMouseleave:this.handleMouseleaveResizeTrigger,onMousedown:this.handleMousedownResizeTrigger}):null,this.nativeScrollbar?h("div",{class:`${r}-drawer-content-wrapper`,style:this.contentStyle,role:"none"},t):h(NScrollbar$1,Object.assign({},this.scrollbarProps,{contentStyle:this.contentStyle,contentClass:`${r}-drawer-content-wrapper`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar}),t)]),this.bodyDirectives)})})),[[vShow,this.displayDirective==="if"||this.displayed||this.show]]):null}});const{cubicBezierEaseIn:cubicBezierEaseIn$3,cubicBezierEaseOut:cubicBezierEaseOut$3}=commonVariables$m;function slideInFromRightTransition({duration:t="0.3s",leaveDuration:r="0.2s",name:n="slide-in-from-right"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${r} ${cubicBezierEaseIn$3}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut$3}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateX(100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateX(100%)"})]}const{cubicBezierEaseIn:cubicBezierEaseIn$2,cubicBezierEaseOut:cubicBezierEaseOut$2}=commonVariables$m;function slideInFromLeftTransition({duration:t="0.3s",leaveDuration:r="0.2s",name:n="slide-in-from-left"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${r} ${cubicBezierEaseIn$2}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut$2}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateX(-100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateX(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateX(-100%)"})]}const{cubicBezierEaseIn:cubicBezierEaseIn$1,cubicBezierEaseOut:cubicBezierEaseOut$1}=commonVariables$m;function slideInFromTopTransition({duration:t="0.3s",leaveDuration:r="0.2s",name:n="slide-in-from-top"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${r} ${cubicBezierEaseIn$1}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut$1}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateY(-100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateY(-100%)"})]}const{cubicBezierEaseIn,cubicBezierEaseOut}=commonVariables$m;function slideInFromBottomTransition({duration:t="0.3s",leaveDuration:r="0.2s",name:n="slide-in-from-bottom"}={}){return[c$1(`&.${n}-transition-leave-active`,{transition:`transform ${r} ${cubicBezierEaseIn}`}),c$1(`&.${n}-transition-enter-active`,{transition:`transform ${t} ${cubicBezierEaseOut}`}),c$1(`&.${n}-transition-enter-to`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-enter-from`,{transform:"translateY(100%)"}),c$1(`&.${n}-transition-leave-from`,{transform:"translateY(0)"}),c$1(`&.${n}-transition-leave-to`,{transform:"translateY(100%)"})]}var style$A=c$1([cB("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;
|
|
`,[slideInFromRightTransition(),slideInFromLeftTransition(),slideInFromTopTransition(),slideInFromBottomTransition(),cM("unselectable",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),cM("native-scrollbar",[cB("drawer-content-wrapper",`
|
|
overflow: auto;
|
|
height: 100%;
|
|
`)]),cE("resize-trigger",`
|
|
position: absolute;
|
|
background-color: #0000;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`,[cM("hover",`
|
|
background-color: var(--n-resize-trigger-color-hover);
|
|
`)]),cB("drawer-content-wrapper",`
|
|
box-sizing: border-box;
|
|
`),cB("drawer-content",`
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
`,[cM("native-scrollbar",[cB("drawer-body-content-wrapper",`
|
|
height: 100%;
|
|
overflow: auto;
|
|
`)]),cB("drawer-body",`
|
|
flex: 1 0 0;
|
|
overflow: hidden;
|
|
`),cB("drawer-body-content-wrapper",`
|
|
box-sizing: border-box;
|
|
padding: var(--n-body-padding);
|
|
`),cB("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;
|
|
`,[cE("close",`
|
|
margin-left: 6px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`)]),cB("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);
|
|
`)]),cM("right-placement",`
|
|
top: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
`,[cE("resize-trigger",`
|
|
width: 3px;
|
|
height: 100%;
|
|
top: 0;
|
|
left: 0;
|
|
transform: translateX(-1.5px);
|
|
cursor: ew-resize;
|
|
`)]),cM("left-placement",`
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
`,[cE("resize-trigger",`
|
|
width: 3px;
|
|
height: 100%;
|
|
top: 0;
|
|
right: 0;
|
|
transform: translateX(1.5px);
|
|
cursor: ew-resize;
|
|
`)]),cM("top-placement",`
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
`,[cE("resize-trigger",`
|
|
width: 100%;
|
|
height: 3px;
|
|
bottom: 0;
|
|
left: 0;
|
|
transform: translateY(1.5px);
|
|
cursor: ns-resize;
|
|
`)]),cM("bottom-placement",`
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
`,[cE("resize-trigger",`
|
|
width: 100%;
|
|
height: 3px;
|
|
top: 0;
|
|
left: 0;
|
|
transform: translateY(-1.5px);
|
|
cursor: ns-resize;
|
|
`)])]),c$1("body",[c$1(">",[cB("drawer-container",{position:"fixed"})])]),cB("drawer-container",`
|
|
position: relative;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
pointer-events: none;
|
|
`,[c$1("> *",{pointerEvents:"all"})]),cB("drawer-mask",`
|
|
background-color: rgba(0, 0, 0, .3);
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`,[cM("invisible",`
|
|
background-color: rgba(0, 0, 0, 0)
|
|
`),fadeInTransition({enterDuration:"0.2s",leaveDuration:"0.2s",enterCubicBezier:"var(--n-bezier-in)",leaveCubicBezier:"var(--n-bezier-out)"})])]);const drawerProps=Object.assign(Object.assign({},useTheme.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 NDrawer=defineComponent({name:"Drawer",inheritAttrs:!1,props:drawerProps,setup(t){const{mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:o}=useConfig(t),s=isMounted(),l=useTheme("Drawer","-drawer",style$A,drawerLight$1,t,r),d=ref(t.defaultWidth),g=ref(t.defaultHeight),y=useMergedState(toRef(t,"width"),d),b=useMergedState(toRef(t,"height"),g),C=computed(()=>{const{placement:O}=t;return O==="top"||O==="bottom"?"":formatLength(y.value)}),x=computed(()=>{const{placement:O}=t;return O==="left"||O==="right"?"":formatLength(b.value)}),S=O=>{const{onUpdateWidth:D,"onUpdate:width":N}=t;D&&call(D,O),N&&call(N,O),d.value=O},_=O=>{const{onUpdateHeight:D,"onUpdate:width":N}=t;D&&call(D,O),N&&call(N,O),g.value=O},w=computed(()=>[{width:C.value,height:x.value},t.drawerStyle||""]);function $(O){const{onMaskClick:D,maskClosable:N}=t;N&&R(!1),D&&D(O)}const I=useIsComposing();function B(O){var D;(D=t.onEsc)===null||D===void 0||D.call(t),t.show&&t.closeOnEsc&&eventEffectNotPerformed(O)&&!I.value&&R(!1)}function R(O){const{onHide:D,onUpdateShow:N,"onUpdate:show":H}=t;N&&call(N,O),H&&call(H,O),D&&!O&&call(D,O)}provide(drawerInjectionKey,{isMountedRef:s,mergedThemeRef:l,mergedClsPrefixRef:r,doUpdateShow:R,doUpdateHeight:_,doUpdateWidth:S});const P=computed(()=>{const{common:{cubicBezierEaseInOut:O,cubicBezierEaseIn:D,cubicBezierEaseOut:N},self:{color:H,textColor:Q,boxShadow:G,lineHeight:K,headerPadding:W,footerPadding:j,bodyPadding:Y,titleFontSize:q,titleTextColor:X,titleFontWeight:re,headerBorderBottom:te,footerBorderTop:oe,closeIconColor:ae,closeIconColorHover:se,closeIconColorPressed:ue,closeColorHover:Ae,closeColorPressed:pe,closeIconSize:he,closeSize:Ce,closeBorderRadius:ve,resizableTriggerColorHover:ye}}=l.value;return{"--n-line-height":K,"--n-color":H,"--n-text-color":Q,"--n-box-shadow":G,"--n-bezier":O,"--n-bezier-out":N,"--n-bezier-in":D,"--n-header-padding":W,"--n-body-padding":Y,"--n-footer-padding":j,"--n-title-text-color":X,"--n-title-font-size":q,"--n-title-font-weight":re,"--n-header-border-bottom":te,"--n-footer-border-top":oe,"--n-close-icon-color":ae,"--n-close-icon-color-hover":se,"--n-close-icon-color-pressed":ue,"--n-close-size":Ce,"--n-close-color-hover":Ae,"--n-close-color-pressed":pe,"--n-close-icon-size":he,"--n-close-border-radius":ve,"--n-resize-trigger-color-hover":ye}}),M=o?useThemeClass("drawer",void 0,P,t):void 0;return{mergedClsPrefix:r,namespace:n,mergedBodyStyle:w,handleMaskClick:$,handleEsc:B,mergedTheme:l,cssVars:o?void 0:P,themeClass:M==null?void 0:M.themeClass,onRender:M==null?void 0:M.onRender,isMounted:s}},render(){const{mergedClsPrefix:t}=this;return h(LazyTeleport,{to:this.to,show:this.show},{default:()=>{var r;return(r=this.onRender)===null||r===void 0||r.call(this),withDirectives(h("div",{class:[`${t}-drawer-container`,this.namespace,this.themeClass],style:this.cssVars,role:"none"},this.showMask?h(Transition,{name:"fade-in-transition",appear:this.isMounted},{default:()=>this.show?h("div",{"aria-hidden":!0,class:[`${t}-drawer-mask`,this.showMask==="transparent"&&`${t}-drawer-mask--invisible`],onClick:this.handleMaskClick}):null}):null,h(NDrawerBodyWrapper,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)),[[zindexable$1,{zIndex:this.zIndex,enabled:this.show}]])}})}});const drawerContentProps={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 NDrawerContent=defineComponent({name:"DrawerContent",props:drawerContentProps,setup(){const t=inject(drawerInjectionKey,null);t||throwError$1("drawer-content","`n-drawer-content` must be placed inside `n-drawer`.");const{doUpdateShow:r}=t;function n(){r(!1)}return{handleCloseClick:n,mergedTheme:t.mergedThemeRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){const{title:t,mergedClsPrefix:r,nativeScrollbar:n,mergedTheme:o,bodyStyle:s,bodyContentStyle:l,headerStyle:d,footerStyle:g,scrollbarProps:y,closable:b,$slots:C}=this;return h("div",{role:"none",class:[`${r}-drawer-content`,n&&`${r}-drawer-content--native-scrollbar`]},C.header||t||b?h("div",{class:`${r}-drawer-header`,style:d,role:"none"},h("div",{class:`${r}-drawer-header__main`,role:"heading","aria-level":"1"},C.header!==void 0?C.header():t),b&&h(NBaseClose,{onClick:this.handleCloseClick,clsPrefix:r,class:`${r}-drawer-header__close`,absolute:!0})):null,n?h("div",{class:`${r}-drawer-body`,style:s,role:"none"},h("div",{class:`${r}-drawer-body-content-wrapper`,style:l,role:"none"},C)):h(NScrollbar$1,Object.assign({themeOverrides:o.peerOverrides.Scrollbar,theme:o.peers.Scrollbar},y,{class:`${r}-drawer-body`,contentClass:`${r}-drawer-body-content-wrapper`,contentStyle:l}),C),C.footer?h("div",{class:`${r}-drawer-footer`,style:g,role:"none"},C.footer()):null)}}),commonVariables$6={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"};const dynamicInputDark={name:"DynamicInput",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1},self(){return commonVariables$6}};var dynamicInputDark$1=dynamicInputDark,commonVars$4={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};const spaceDark={name:"Space",self(){return commonVars$4}};var spaceDark$1=spaceDark;const self$v=()=>commonVars$4,spaceLight={name:"Space",self:self$v};var spaceLight$1=spaceLight;let supportFlexGap;const ensureSupportFlexGap=()=>{if(!isBrowser$3)return!0;if(supportFlexGap===void 0){const t=document.createElement("div");t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t);const r=t.scrollHeight===1;return document.body.removeChild(t),supportFlexGap=r}return supportFlexGap},spaceProps=Object.assign(Object.assign({},useTheme.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 NSpace=defineComponent({name:"Space",props:spaceProps,setup(t){const{mergedClsPrefixRef:r,mergedRtlRef:n}=useConfig(t),o=useTheme("Space","-space",void 0,spaceLight$1,t,r),s=useRtl("Space",n,r);return{useGap:ensureSupportFlexGap(),rtlEnabled:s,mergedClsPrefix:r,margin:computed(()=>{const{size:l}=t;if(Array.isArray(l))return{horizontal:l[0],vertical:l[1]};if(typeof l=="number")return{horizontal:l,vertical:l};const{self:{[createKey("gap",l)]:d}}=o.value,{row:g,col:y}=getGap$1(d);return{horizontal:depx(y),vertical:depx(g)}})}},render(){const{vertical:t,align:r,inline:n,justify:o,itemStyle:s,margin:l,wrap:d,mergedClsPrefix:g,rtlEnabled:y,useGap:b,wrapItem:C,internalUseGap:x}=this,S=flatten$5(getSlot$1(this));if(!S.length)return null;const _=`${l.horizontal}px`,w=`${l.horizontal/2}px`,$=`${l.vertical}px`,I=`${l.vertical/2}px`,B=S.length-1,R=o.startsWith("space-");return h("div",{role:"none",class:[`${g}-space`,y&&`${g}-space--rtl`],style:{display:n?"inline-flex":"flex",flexDirection:t?"column":"row",justifyContent:["start","end"].includes(o)?"flex-"+o:o,flexWrap:!d||t?"nowrap":"wrap",marginTop:b||t?"":`-${I}`,marginBottom:b||t?"":`-${I}`,alignItems:r,gap:b?`${l.vertical}px ${l.horizontal}px`:""}},!C&&(b||x)?S:S.map((P,M)=>h("div",{role:"none",style:[s,{maxWidth:"100%"},b?"":t?{marginBottom:M!==B?$:""}:y?{marginLeft:R?o==="space-between"&&M===B?"":w:M!==B?_:"",marginRight:R?o==="space-between"&&M===0?"":w:"",paddingTop:I,paddingBottom:I}:{marginRight:R?o==="space-between"&&M===B?"":w:M!==B?_:"",marginLeft:R?o==="space-between"&&M===0?"":w:"",paddingTop:I,paddingBottom:I}]},P)))}});const dynamicTagsDark={name:"DynamicTags",common:commonDark,peers:{Input:inputDark$1,Button:buttonDark$1,Tag:tagDark$1,Space:spaceDark$1},self(){return{inputWidth:"64px"}}};var dynamicTagsDark$1=dynamicTagsDark;const elementDark={name:"Element",common:commonDark};var elementDark$1=elementDark;const elementLight={name:"Element",common:commonLight};var elementLight$1=elementLight;const elementProps=Object.assign(Object.assign({},useTheme.props),{tag:{type:String,default:"div"}});var NElement=defineComponent({name:"Element",alias:["El"],props:elementProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Element","-element",void 0,elementLight$1,t,r),s=computed(()=>{const{common:d}=o.value;return Object.keys(d).reduce((g,y)=>(g[`--${kebabCase$1(y)}`]=d[y],g),{})}),l=n?useThemeClass("element",void 0,s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{tag:r,mergedClsPrefix:n,cssVars:o,themeClass:s,onRender:l,$slots:d}=this;return l==null||l(),h(r,{role:"none",class:[`${n}-element`,s],style:o},(t=d.default)===null||t===void 0?void 0:t.call(d))}}),commonVariables$5={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",labelFontWeight:"400"};const self$u=t=>{const{heightSmall:r,heightMedium:n,heightLarge:o,textColor1:s,errorColor:l,warningColor:d,lineHeight:g,textColor3:y}=t;return Object.assign(Object.assign({},commonVariables$5),{blankHeightSmall:r,blankHeightMedium:n,blankHeightLarge:o,lineHeight:g,labelTextColor:s,asteriskColor:l,feedbackTextColorError:l,feedbackTextColorWarning:d,feedbackTextColor:y})},formLight={name:"Form",common:commonLight,self:self$u};var formLight$1=formLight;const formItemDark={name:"Form",common:commonDark,self:self$u};var formDark=formItemDark,style$z=cB("form",[cM("inline",`
|
|
width: 100%;
|
|
display: inline-flex;
|
|
align-items: flex-start;
|
|
align-content: space-around;
|
|
`,[cB("form-item",{width:"auto",marginRight:"18px"},[c$1("&:last-child",{marginRight:0})])])]);const formInjectionKey="n-form",formItemInstsInjectionKey="n-form-item-insts";var __awaiter$7=globalThis&&globalThis.__awaiter||function(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})};const formProps=Object.assign(Object.assign({},useTheme.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:t=>t.preventDefault()},showLabel:{type:Boolean,default:void 0},validateMessages:Object});var NForm=defineComponent({name:"Form",props:formProps,setup(t){const{mergedClsPrefixRef:r}=useConfig(t);useTheme("Form","-form",style$z,formLight$1,t,r);const n={},o=ref(void 0),s=y=>{const b=o.value;(b===void 0||y>=b)&&(o.value=y)};function l(y,b=()=>!0){return __awaiter$7(this,void 0,void 0,function*(){return yield new Promise((C,x)=>{const S=[];for(const _ of keysOf(n)){const w=n[_];for(const $ of w)$.path&&S.push($.internalValidate(null,b))}Promise.all(S).then(_=>{if(_.some(w=>!w.valid)){const w=_.filter($=>$.errors).map($=>$.errors);y&&y(w),x(w)}else y&&y(),C()})})})}function d(){for(const y of keysOf(n)){const b=n[y];for(const C of b)C.restoreValidation()}}return provide(formInjectionKey,{props:t,maxChildLabelWidthRef:o,deriveMaxChildLabelWidth:s}),provide(formItemInstsInjectionKey,{formItems:n}),Object.assign({validate:l,restoreValidation:d},{mergedClsPrefix:r})},render(){const{mergedClsPrefix:t}=this;return h("form",{class:[`${t}-form`,this.inline&&`${t}-form--inline`],onSubmit:this.onSubmit},this.$slots)}});function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},_extends.apply(this,arguments)}function _inheritsLoose(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,_setPrototypeOf(t,r)}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_getPrototypeOf(t)}function _setPrototypeOf(t,r){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},_setPrototypeOf(t,r)}function _isNativeReflectConstruct(){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(t){return!1}}function _construct(t,r,n){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(s,l,d){var g=[null];g.push.apply(g,l);var y=Function.bind.apply(s,g),b=new y;return d&&_setPrototypeOf(b,d.prototype),b},_construct.apply(null,arguments)}function _isNativeFunction(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _wrapNativeSuper(t){var r=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(o){if(o===null||!_isNativeFunction(o))return o;if(typeof o!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r!="undefined"){if(r.has(o))return r.get(o);r.set(o,s)}function s(){return _construct(o,arguments,_getPrototypeOf(this).constructor)}return s.prototype=Object.create(o.prototype,{constructor:{value:s,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(s,o)},_wrapNativeSuper(t)}var formatRegExp=/%[sdj%]/g,warning=function(){};typeof process!="undefined"&&process.env;function convertFieldsError(t){if(!t||!t.length)return null;var r={};return t.forEach(function(n){var o=n.field;r[o]=r[o]||[],r[o].push(n)}),r}function format$4(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var s=0,l=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var d=t.replace(formatRegExp,function(g){if(g==="%%")return"%";if(s>=l)return g;switch(g){case"%s":return String(n[s++]);case"%d":return Number(n[s++]);case"%j":try{return JSON.stringify(n[s++])}catch(y){return"[Circular]"}break;default:return g}});return d}return t}function isNativeStringType(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function isEmptyValue$1(t,r){return!!(t==null||r==="array"&&Array.isArray(t)&&!t.length||isNativeStringType(r)&&typeof t=="string"&&!t)}function asyncParallelArray(t,r,n){var o=[],s=0,l=t.length;function d(g){o.push.apply(o,g||[]),s++,s===l&&n(o)}t.forEach(function(g){r(g,d)})}function asyncSerialArray(t,r,n){var o=0,s=t.length;function l(d){if(d&&d.length){n(d);return}var g=o;o=o+1,g<s?r(t[g],l):n([])}l([])}function flattenObjArr(t){var r=[];return Object.keys(t).forEach(function(n){r.push.apply(r,t[n]||[])}),r}var AsyncValidationError=function(t){_inheritsLoose(r,t);function r(n,o){var s;return s=t.call(this,"Async Validation Error")||this,s.errors=n,s.fields=o,s}return r}(_wrapNativeSuper(Error));function asyncMap(t,r,n,o,s){if(r.first){var l=new Promise(function(S,_){var w=function(B){return o(B),B.length?_(new AsyncValidationError(B,convertFieldsError(B))):S(s)},$=flattenObjArr(t);asyncSerialArray($,n,w)});return l.catch(function(S){return S}),l}var d=r.firstFields===!0?Object.keys(t):r.firstFields||[],g=Object.keys(t),y=g.length,b=0,C=[],x=new Promise(function(S,_){var w=function(I){if(C.push.apply(C,I),b++,b===y)return o(C),C.length?_(new AsyncValidationError(C,convertFieldsError(C))):S(s)};g.length||(o(C),S(s)),g.forEach(function($){var I=t[$];d.indexOf($)!==-1?asyncSerialArray(I,n,w):asyncParallelArray(I,n,w)})});return x.catch(function(S){return S}),x}function isErrorObj(t){return!!(t&&t.message!==void 0)}function getValue$2(t,r){for(var n=t,o=0;o<r.length;o++){if(n==null)return n;n=n[r[o]]}return n}function complementError(t,r){return function(n){var o;return t.fullFields?o=getValue$2(r,t.fullFields):o=r[n.field||t.fullField],isErrorObj(n)?(n.field=n.field||t.fullField,n.fieldValue=o,n):{message:typeof n=="function"?n():n,fieldValue:o,field:n.field||t.fullField}}}function deepMerge(t,r){if(r){for(var n in r)if(r.hasOwnProperty(n)){var o=r[n];typeof o=="object"&&typeof t[n]=="object"?t[n]=_extends({},t[n],o):t[n]=o}}return t}var required$1=function(r,n,o,s,l,d){r.required&&(!o.hasOwnProperty(r.field)||isEmptyValue$1(n,d||r.type))&&s.push(format$4(l.messages.required,r.fullField))},whitespace=function(r,n,o,s,l){(/^\s+$/.test(n)||n==="")&&s.push(format$4(l.messages.whitespace,r.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var t="[a-fA-F\\d:]",r=function(M){return M&&M.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",o="[a-fA-F\\d]{1,4}",s=(`
|
|
(?:
|
|
(?:`+o+":){7}(?:"+o+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
|
|
(?:`+o+":){6}(?:"+n+"|:"+o+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
|
|
(?:`+o+":){5}(?::"+n+"|(?::"+o+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
|
|
(?:`+o+":){4}(?:(?::"+o+"){0,1}:"+n+"|(?::"+o+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
|
|
(?:`+o+":){3}(?:(?::"+o+"){0,2}:"+n+"|(?::"+o+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
|
|
(?:`+o+":){2}(?:(?::"+o+"){0,3}:"+n+"|(?::"+o+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
|
|
(?:`+o+":){1}(?:(?::"+o+"){0,4}:"+n+"|(?::"+o+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
|
|
(?::(?:(?::`+o+"){0,5}:"+n+"|(?::"+o+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
|
|
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
|
|
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+s+"$)"),d=new RegExp("^"+n+"$"),g=new RegExp("^"+s+"$"),y=function(M){return M&&M.exact?l:new RegExp("(?:"+r(M)+n+r(M)+")|(?:"+r(M)+s+r(M)+")","g")};y.v4=function(P){return P&&P.exact?d:new RegExp(""+r(P)+n+r(P),"g")},y.v6=function(P){return P&&P.exact?g:new RegExp(""+r(P)+s+r(P),"g")};var b="(?:(?:[a-z]+:)?//)",C="(?:\\S+(?::\\S*)?@)?",x=y.v4().source,S=y.v6().source,_="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",w="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",$="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",I="(?::\\d{2,5})?",B='(?:[/?#][^\\s"]*)?',R="(?:"+b+"|www\\.)"+C+"(?:localhost|"+x+"|"+S+"|"+_+w+$+")"+I+B;return urlReg=new RegExp("(?:^"+R+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types={integer:function(r){return types.number(r)&&parseInt(r,10)===r},float:function(r){return types.number(r)&&!types.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch(n){return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!types.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(pattern$2.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(getUrlRegex())},hex:function(r){return typeof r=="string"&&!!r.match(pattern$2.hex)}},type$1=function(r,n,o,s,l){if(r.required&&n===void 0){required$1(r,n,o,s,l);return}var d=["integer","float","array","regexp","object","method","email","number","date","url","hex"],g=r.type;d.indexOf(g)>-1?types[g](n)||s.push(format$4(l.messages.types[g],r.fullField,r.type)):g&&typeof n!==r.type&&s.push(format$4(l.messages.types[g],r.fullField,r.type))},range=function(r,n,o,s,l){var d=typeof r.len=="number",g=typeof r.min=="number",y=typeof r.max=="number",b=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C=n,x=null,S=typeof n=="number",_=typeof n=="string",w=Array.isArray(n);if(S?x="number":_?x="string":w&&(x="array"),!x)return!1;w&&(C=n.length),_&&(C=n.replace(b,"_").length),d?C!==r.len&&s.push(format$4(l.messages[x].len,r.fullField,r.len)):g&&!y&&C<r.min?s.push(format$4(l.messages[x].min,r.fullField,r.min)):y&&!g&&C>r.max?s.push(format$4(l.messages[x].max,r.fullField,r.max)):g&&y&&(C<r.min||C>r.max)&&s.push(format$4(l.messages[x].range,r.fullField,r.min,r.max))},ENUM$1="enum",enumerable$1=function(r,n,o,s,l){r[ENUM$1]=Array.isArray(r[ENUM$1])?r[ENUM$1]:[],r[ENUM$1].indexOf(n)===-1&&s.push(format$4(l.messages[ENUM$1],r.fullField,r[ENUM$1].join(", ")))},pattern$1=function(r,n,o,s,l){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test(n)||s.push(format$4(l.messages.pattern.mismatch,r.fullField,n,r.pattern));else if(typeof r.pattern=="string"){var d=new RegExp(r.pattern);d.test(n)||s.push(format$4(l.messages.pattern.mismatch,r.fullField,n,r.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n,"string")&&!r.required)return o();rules.required(r,n,s,d,l,"string"),isEmptyValue$1(n,"string")||(rules.type(r,n,s,d,l),rules.range(r,n,s,d,l),rules.pattern(r,n,s,d,l),r.whitespace===!0&&rules.whitespace(r,n,s,d,l))}o(d)},method=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),n!==void 0&&rules.type(r,n,s,d,l)}o(d)},number$2=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(n===""&&(n=void 0),isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),n!==void 0&&(rules.type(r,n,s,d,l),rules.range(r,n,s,d,l))}o(d)},_boolean=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),n!==void 0&&rules.type(r,n,s,d,l)}o(d)},regexp$1=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),isEmptyValue$1(n)||rules.type(r,n,s,d,l)}o(d)},integer=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),n!==void 0&&(rules.type(r,n,s,d,l),rules.range(r,n,s,d,l))}o(d)},floatFn=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),n!==void 0&&(rules.type(r,n,s,d,l),rules.range(r,n,s,d,l))}o(d)},array=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(n==null&&!r.required)return o();rules.required(r,n,s,d,l,"array"),n!=null&&(rules.type(r,n,s,d,l),rules.range(r,n,s,d,l))}o(d)},object=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),n!==void 0&&rules.type(r,n,s,d,l)}o(d)},ENUM="enum",enumerable=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l),n!==void 0&&rules[ENUM](r,n,s,d,l)}o(d)},pattern=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n,"string")&&!r.required)return o();rules.required(r,n,s,d,l),isEmptyValue$1(n,"string")||rules.pattern(r,n,s,d,l)}o(d)},date=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n,"date")&&!r.required)return o();if(rules.required(r,n,s,d,l),!isEmptyValue$1(n,"date")){var y;n instanceof Date?y=n:y=new Date(n),rules.type(r,y,s,d,l),y&&rules.range(r,y.getTime(),s,d,l)}}o(d)},required=function(r,n,o,s,l){var d=[],g=Array.isArray(n)?"array":typeof n;rules.required(r,n,s,d,l,g),o(d)},type=function(r,n,o,s,l){var d=r.type,g=[],y=r.required||!r.required&&s.hasOwnProperty(r.field);if(y){if(isEmptyValue$1(n,d)&&!r.required)return o();rules.required(r,n,s,g,l,d),isEmptyValue$1(n,d)||rules.type(r,n,s,g,l)}o(g)},any=function(r,n,o,s,l){var d=[],g=r.required||!r.required&&s.hasOwnProperty(r.field);if(g){if(isEmptyValue$1(n)&&!r.required)return o();rules.required(r,n,s,d,l)}o(d)},validators$2={string,method,number:number$2,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object,enum:enumerable,pattern,date,url:type,hex:type,email:type,required,any};function newMessages(){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 r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var messages=newMessages(),Schema=function(){function t(n){this.rules=null,this._messages=messages,this.define(n)}var r=t.prototype;return r.define=function(o){var s=this;if(!o)throw new Error("Cannot configure a schema with no rules");if(typeof o!="object"||Array.isArray(o))throw new Error("Rules must be an object");this.rules={},Object.keys(o).forEach(function(l){var d=o[l];s.rules[l]=Array.isArray(d)?d:[d]})},r.messages=function(o){return o&&(this._messages=deepMerge(newMessages(),o)),this._messages},r.validate=function(o,s,l){var d=this;s===void 0&&(s={}),l===void 0&&(l=function(){});var g=o,y=s,b=l;if(typeof y=="function"&&(b=y,y={}),!this.rules||Object.keys(this.rules).length===0)return b&&b(null,g),Promise.resolve(g);function C($){var I=[],B={};function R(M){if(Array.isArray(M)){var O;I=(O=I).concat.apply(O,M)}else I.push(M)}for(var P=0;P<$.length;P++)R($[P]);I.length?(B=convertFieldsError(I),b(I,B)):b(null,g)}if(y.messages){var x=this.messages();x===messages&&(x=newMessages()),deepMerge(x,y.messages),y.messages=x}else y.messages=this.messages();var S={},_=y.keys||Object.keys(this.rules);_.forEach(function($){var I=d.rules[$],B=g[$];I.forEach(function(R){var P=R;typeof P.transform=="function"&&(g===o&&(g=_extends({},g)),B=g[$]=P.transform(B)),typeof P=="function"?P={validator:P}:P=_extends({},P),P.validator=d.getValidationMethod(P),P.validator&&(P.field=$,P.fullField=P.fullField||$,P.type=d.getType(P),S[$]=S[$]||[],S[$].push({rule:P,value:B,source:g,field:$}))})});var w={};return asyncMap(S,y,function($,I){var B=$.rule,R=(B.type==="object"||B.type==="array")&&(typeof B.fields=="object"||typeof B.defaultField=="object");R=R&&(B.required||!B.required&&$.value),B.field=$.field;function P(D,N){return _extends({},N,{fullField:B.fullField+"."+D,fullFields:B.fullFields?[].concat(B.fullFields,[D]):[D]})}function M(D){D===void 0&&(D=[]);var N=Array.isArray(D)?D:[D];!y.suppressWarning&&N.length&&t.warning("async-validator:",N),N.length&&B.message!==void 0&&(N=[].concat(B.message));var H=N.map(complementError(B,g));if(y.first&&H.length)return w[B.field]=1,I(H);if(!R)I(H);else{if(B.required&&!$.value)return B.message!==void 0?H=[].concat(B.message).map(complementError(B,g)):y.error&&(H=[y.error(B,format$4(y.messages.required,B.field))]),I(H);var Q={};B.defaultField&&Object.keys($.value).map(function(W){Q[W]=B.defaultField}),Q=_extends({},Q,$.rule.fields);var G={};Object.keys(Q).forEach(function(W){var j=Q[W],Y=Array.isArray(j)?j:[j];G[W]=Y.map(P.bind(null,W))});var K=new t(G);K.messages(y.messages),$.rule.options&&($.rule.options.messages=y.messages,$.rule.options.error=y.error),K.validate($.value,$.rule.options||y,function(W){var j=[];H&&H.length&&j.push.apply(j,H),W&&W.length&&j.push.apply(j,W),I(j.length?j:null)})}}var O;if(B.asyncValidator)O=B.asyncValidator(B,$.value,M,$.source,y);else if(B.validator){try{O=B.validator(B,$.value,M,$.source,y)}catch(D){console.error==null||console.error(D),y.suppressValidatorError||setTimeout(function(){throw D},0),M(D.message)}O===!0?M():O===!1?M(typeof B.message=="function"?B.message(B.fullField||B.field):B.message||(B.fullField||B.field)+" fails"):O instanceof Array?M(O):O instanceof Error&&M(O.message)}O&&O.then&&O.then(function(){return M()},function(D){return M(D)})},function($){C($)},g)},r.getType=function(o){if(o.type===void 0&&o.pattern instanceof RegExp&&(o.type="pattern"),typeof o.validator!="function"&&o.type&&!validators$2.hasOwnProperty(o.type))throw new Error(format$4("Unknown rule type %s",o.type));return o.type||"string"},r.getValidationMethod=function(o){if(typeof o.validator=="function")return o.validator;var s=Object.keys(o),l=s.indexOf("message");return l!==-1&&s.splice(l,1),s.length===1&&s[0]==="required"?validators$2.required:validators$2[this.getType(o)]||void 0},t}();Schema.register=function(r,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators$2[r]=n};Schema.warning=warning;Schema.messages=messages;Schema.validators=validators$2;function formItemSize(t){const r=inject(formInjectionKey,null);return{mergedSize:computed(()=>t.size!==void 0?t.size:(r==null?void 0:r.props.size)!==void 0?r.props.size:"medium")}}function formItemMisc(t){const r=inject(formInjectionKey,null),n=computed(()=>{const{labelPlacement:_}=t;return _!==void 0?_:r!=null&&r.props.labelPlacement?r.props.labelPlacement:"top"}),o=computed(()=>n.value==="left"&&(t.labelWidth==="auto"||(r==null?void 0:r.props.labelWidth)==="auto")),s=computed(()=>{if(n.value==="top")return;const{labelWidth:_}=t;if(_!==void 0&&_!=="auto")return formatLength(_);if(o.value){const w=r==null?void 0:r.maxChildLabelWidthRef.value;return w!==void 0?formatLength(w):void 0}if((r==null?void 0:r.props.labelWidth)!==void 0)return formatLength(r.props.labelWidth)}),l=computed(()=>{const{labelAlign:_}=t;if(_)return _;if(r!=null&&r.props.labelAlign)return r.props.labelAlign}),d=computed(()=>{var _;return[(_=t.labelProps)===null||_===void 0?void 0:_.style,t.labelStyle,{width:s.value}]}),g=computed(()=>{const{showRequireMark:_}=t;return _!==void 0?_:r==null?void 0:r.props.showRequireMark}),y=computed(()=>{const{requireMarkPlacement:_}=t;return _!==void 0?_:(r==null?void 0:r.props.requireMarkPlacement)||"right"}),b=ref(!1),C=computed(()=>{const{validationStatus:_}=t;if(_!==void 0)return _;if(b.value)return"error"}),x=computed(()=>{const{showFeedback:_}=t;return _!==void 0?_:(r==null?void 0:r.props.showFeedback)!==void 0?r.props.showFeedback:!0}),S=computed(()=>{const{showLabel:_}=t;return _!==void 0?_:(r==null?void 0:r.props.showLabel)!==void 0?r.props.showLabel:!0});return{validationErrored:b,mergedLabelStyle:d,mergedLabelPlacement:n,mergedLabelAlign:l,mergedShowRequireMark:g,mergedRequireMarkPlacement:y,mergedValidationStatus:C,mergedShowFeedback:x,mergedShowLabel:S,isAutoLabelWidth:o}}function formItemRule(t){const r=inject(formInjectionKey,null),n=computed(()=>{const{rulePath:d}=t;if(d!==void 0)return d;const{path:g}=t;if(g!==void 0)return g}),o=computed(()=>{const d=[],{rule:g}=t;if(g!==void 0&&(Array.isArray(g)?d.push(...g):d.push(g)),r){const{rules:y}=r.props,{value:b}=n;if(y!==void 0&&b!==void 0){const C=get$1(y,b);C!==void 0&&(Array.isArray(C)?d.push(...C):d.push(C))}}return d}),s=computed(()=>o.value.some(d=>d.required)),l=computed(()=>s.value||t.required);return{mergedRules:o,mergedRequired:l}}const{cubicBezierEaseInOut}=commonVariables$m;function fadeDownTransition({name:t="fade-down",fromOffset:r="-4px",enterDuration:n=".3s",leaveDuration:o=".3s",enterCubicBezier:s=cubicBezierEaseInOut,leaveCubicBezier:l=cubicBezierEaseInOut}={}){return[c$1(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0,transform:`translateY(${r})`}),c$1(`&.${t}-transition-enter-to, &.${t}-transition-leave-from`,{opacity:1,transform:"translateY(0)"}),c$1(`&.${t}-transition-leave-active`,{transition:`opacity ${o} ${l}, transform ${o} ${l}`}),c$1(`&.${t}-transition-enter-active`,{transition:`opacity ${n} ${s}, transform ${n} ${s}`})]}var style$y=cB("form-item",`
|
|
display: grid;
|
|
line-height: var(--n-line-height);
|
|
`,[cB("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;
|
|
font-weight: var(--n-label-font-weight);
|
|
`,[cE("asterisk",`
|
|
white-space: nowrap;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
color: var(--n-asterisk-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`),cE("asterisk-placeholder",`
|
|
grid-area: mark;
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
visibility: hidden;
|
|
`)]),cB("form-item-blank",`
|
|
grid-area: blank;
|
|
min-height: var(--n-blank-height);
|
|
`),cM("auto-label-width",[cB("form-item-label","white-space: nowrap;")]),cM("left-labelled",`
|
|
grid-template-areas:
|
|
"label blank"
|
|
"label feedback";
|
|
grid-template-columns: auto minmax(0, 1fr);
|
|
grid-template-rows: auto 1fr;
|
|
align-items: start;
|
|
`,[cB("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;
|
|
`,[cM("reverse-columns-space",`
|
|
grid-template-columns: auto 1fr;
|
|
`),cM("left-mark",`
|
|
grid-template-areas:
|
|
"mark text"
|
|
". text";
|
|
`),cM("right-mark",`
|
|
grid-template-areas:
|
|
"text mark"
|
|
"text .";
|
|
`),cM("right-hanging-mark",`
|
|
grid-template-areas:
|
|
"text mark"
|
|
"text .";
|
|
`),cE("text",`
|
|
grid-area: text;
|
|
`),cE("asterisk",`
|
|
grid-area: mark;
|
|
align-self: end;
|
|
`)])]),cM("top-labelled",`
|
|
grid-template-areas:
|
|
"label"
|
|
"blank"
|
|
"feedback";
|
|
grid-template-rows: minmax(var(--n-label-height), auto) 1fr;
|
|
grid-template-columns: minmax(0, 100%);
|
|
`,[cM("no-label",`
|
|
grid-template-areas:
|
|
"blank"
|
|
"feedback";
|
|
grid-template-rows: 1fr;
|
|
`),cB("form-item-label",`
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: var(--n-label-text-align);
|
|
`)]),cB("form-item-blank",`
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
align-items: center;
|
|
position: relative;
|
|
`),cB("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;
|
|
`,[c$1("&:not(:empty)",`
|
|
padding: var(--n-feedback-padding);
|
|
`),cB("form-item-feedback",{transition:"color .3s var(--n-bezier)",color:"var(--n-feedback-text-color)"},[cM("warning",{color:"var(--n-feedback-text-color-warning)"}),cM("error",{color:"var(--n-feedback-text-color-error)"}),fadeDownTransition({fromOffset:"-3px",enterDuration:".3s",leaveDuration:".2s"})])])]),__awaiter$6=globalThis&&globalThis.__awaiter||function(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})};const formItemProps=Object.assign(Object.assign({},useTheme.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 wrapValidator(t,r){return(...n)=>{try{const o=t(...n);return!r&&(typeof o=="boolean"||o instanceof Error||Array.isArray(o))||(o==null?void 0:o.then)?o:(o===void 0||warn$5("form-item/validate",`You return a ${typeof o} typed value in the validator method, which is not recommended. Please use `+(r?"`Promise`":"`boolean`, `Error` or `Promise`")+" typed value instead."),!0)}catch(o){warn$5("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(o);return}}}var NFormItem=defineComponent({name:"FormItem",props:formItemProps,setup(t){useInjectionInstanceCollection(formItemInstsInjectionKey,"formItems",toRef(t,"path"));const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=inject(formInjectionKey,null),s=formItemSize(t),l=formItemMisc(t),{validationErrored:d}=l,{mergedRequired:g,mergedRules:y}=formItemRule(t),{mergedSize:b}=s,{mergedLabelPlacement:C,mergedLabelAlign:x,mergedRequireMarkPlacement:S}=l,_=ref([]),w=ref(createId()),$=o?toRef(o.props,"disabled"):ref(!1),I=useTheme("Form","-form-item",style$y,formLight$1,t,r);watch(toRef(t,"path"),()=>{t.ignorePathChange||B()});function B(){_.value=[],d.value=!1,t.feedback&&(w.value=createId())}function R(){N("blur")}function P(){N("change")}function M(){N("focus")}function O(){N("input")}function D(j,Y){return __awaiter$6(this,void 0,void 0,function*(){let q,X,re,te;return typeof j=="string"?(q=j,X=Y):j!==null&&typeof j=="object"&&(q=j.trigger,X=j.callback,re=j.shouldRuleBeApplied,te=j.options),yield new Promise((oe,ae)=>{N(q,re,te).then(({valid:se,errors:ue})=>{se?(X&&X(),oe()):(X&&X(ue),ae(ue))})})})}const N=(j=null,Y=()=>!0,q={suppressWarning:!0})=>__awaiter$6(this,void 0,void 0,function*(){const{path:X}=t;q?q.first||(q.first=t.first):q={};const{value:re}=y,te=o?get$1(o.props.model,X||""):void 0,oe={},ae={},se=(j?re.filter(he=>Array.isArray(he.trigger)?he.trigger.includes(j):he.trigger===j):re).filter(Y).map((he,Ce)=>{const ve=Object.assign({},he);if(ve.validator&&(ve.validator=wrapValidator(ve.validator,!1)),ve.asyncValidator&&(ve.asyncValidator=wrapValidator(ve.asyncValidator,!0)),ve.renderMessage){const ye=`__renderMessage__${Ce}`;ae[ye]=ve.message,ve.message=ye,oe[ye]=ve.renderMessage}return ve});if(!se.length)return{valid:!0};const ue=X!=null?X:"__n_no_path__",Ae=new Schema({[ue]:se}),{validateMessages:pe}=(o==null?void 0:o.props)||{};return pe&&Ae.messages(pe),yield new Promise(he=>{Ae.validate({[ue]:te},q,Ce=>{Ce!=null&&Ce.length?(_.value=Ce.map(ve=>{const ye=(ve==null?void 0:ve.message)||"";return{key:ye,render:()=>ye.startsWith("__renderMessage__")?oe[ye]():ye}}),Ce.forEach(ve=>{var ye;!((ye=ve.message)===null||ye===void 0)&&ye.startsWith("__renderMessage__")&&(ve.message=ae[ve.message])}),d.value=!0,he({valid:!1,errors:Ce})):(B(),he({valid:!0}))})})});provide(formItemInjectionKey,{path:toRef(t,"path"),disabled:$,mergedSize:s.mergedSize,mergedValidationStatus:l.mergedValidationStatus,restoreValidation:B,handleContentBlur:R,handleContentChange:P,handleContentFocus:M,handleContentInput:O});const H={validate:D,restoreValidation:B,internalValidate:N},Q=ref(null);onMounted(()=>{if(!l.isAutoLabelWidth.value)return;const j=Q.value;if(j!==null){const Y=j.style.whiteSpace;j.style.whiteSpace="nowrap",j.style.width="",o==null||o.deriveMaxChildLabelWidth(Number(getComputedStyle(j).width.slice(0,-2))),j.style.whiteSpace=Y}});const G=computed(()=>{var j;const{value:Y}=b,{value:q}=C,X=q==="top"?"vertical":"horizontal",{common:{cubicBezierEaseInOut:re},self:{labelTextColor:te,asteriskColor:oe,lineHeight:ae,feedbackTextColor:se,feedbackTextColorWarning:ue,feedbackTextColorError:Ae,feedbackPadding:pe,labelFontWeight:he,[createKey("labelHeight",Y)]:Ce,[createKey("blankHeight",Y)]:ve,[createKey("feedbackFontSize",Y)]:ye,[createKey("feedbackHeight",Y)]:Be,[createKey("labelPadding",X)]:Se,[createKey("labelTextAlign",X)]:Ee,[createKey(createKey("labelFontSize",q),Y)]:ie}}=I.value;let ee=(j=x.value)!==null&&j!==void 0?j:Ee;return q==="top"&&(ee=ee==="right"?"flex-end":"flex-start"),{"--n-bezier":re,"--n-line-height":ae,"--n-blank-height":ve,"--n-label-font-size":ie,"--n-label-text-align":ee,"--n-label-height":Ce,"--n-label-padding":Se,"--n-label-font-weight":he,"--n-asterisk-color":oe,"--n-label-text-color":te,"--n-feedback-padding":pe,"--n-feedback-font-size":ye,"--n-feedback-height":Be,"--n-feedback-text-color":se,"--n-feedback-text-color-warning":ue,"--n-feedback-text-color-error":Ae}}),K=n?useThemeClass("form-item",computed(()=>{var j;return`${b.value[0]}${C.value[0]}${((j=x.value)===null||j===void 0?void 0:j[0])||""}`}),G,t):void 0,W=computed(()=>C.value==="left"&&S.value==="left"&&x.value==="left");return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:Q,mergedClsPrefix:r,mergedRequired:g,feedbackId:w,renderExplains:_,reverseColSpace:W},l),s),H),{cssVars:n?void 0:G,themeClass:K==null?void 0:K.themeClass,onRender:K==null?void 0:K.onRender})},render(){const{$slots:t,mergedClsPrefix:r,mergedShowLabel:n,mergedShowRequireMark:o,mergedRequireMarkPlacement:s,onRender:l}=this,d=o!==void 0?o:this.mergedRequired;l==null||l();const g=()=>{const y=this.$slots.label?this.$slots.label():this.label;if(!y)return null;const b=h("span",{class:`${r}-form-item-label__text`},y),C=d?h("span",{class:`${r}-form-item-label__asterisk`},s!=="left"?"\xA0*":"*\xA0"):s==="right-hanging"&&h("span",{class:`${r}-form-item-label__asterisk-placeholder`},"\xA0*"),{labelProps:x}=this;return h("label",Object.assign({},x,{class:[x==null?void 0:x.class,`${r}-form-item-label`,`${r}-form-item-label--${s}-mark`,this.reverseColSpace&&`${r}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:"labelElementRef"}),s==="left"?[C,b]:[b,C])};return h("div",{class:[`${r}-form-item`,this.themeClass,`${r}-form-item--${this.mergedSize}-size`,`${r}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${r}-form-item--auto-label-width`,!n&&`${r}-form-item--no-label`],style:this.cssVars},n&&g(),h("div",{class:[`${r}-form-item-blank`,this.mergedValidationStatus&&`${r}-form-item-blank--${this.mergedValidationStatus}`]},t),this.mergedShowFeedback?h("div",{key:this.feedbackId,class:`${r}-form-item-feedback-wrapper`},h(Transition,{name:"fade-down-transition",mode:"out-in"},{default:()=>{const{mergedValidationStatus:y}=this;return resolveWrappedSlot(t.feedback,b=>{var C;const{feedback:x}=this,S=b||x?h("div",{key:"__feedback__",class:`${r}-form-item-feedback__line`},b||x):this.renderExplains.length?(C=this.renderExplains)===null||C===void 0?void 0:C.map(({key:_,render:w})=>h("div",{key:_,class:`${r}-form-item-feedback__line`},w())):null;return S?y==="warning"?h("div",{key:"controlled-warning",class:`${r}-form-item-feedback ${r}-form-item-feedback--warning`},S):y==="error"?h("div",{key:"controlled-error",class:`${r}-form-item-feedback ${r}-form-item-feedback--error`},S):y==="success"?h("div",{key:"controlled-success",class:`${r}-form-item-feedback ${r}-form-item-feedback--success`},S):h("div",{key:"controlled-default",class:`${r}-form-item-feedback`},S):null})}})):null)}});const defaultSpan$1=1,gridInjectionKey="n-grid",defaultSpan=1,gridItemProps={span:{type:[Number,String],default:defaultSpan},offset:{type:[Number,String],default:0},suffix:Boolean,privateOffset:Number,privateSpan:Number,privateColStart:Number,privateShow:{type:Boolean,default:!0}};var NGridItem=defineComponent({__GRID_ITEM__:!0,name:"GridItem",alias:["Gi"],props:gridItemProps,setup(){const{isSsrRef:t,xGapRef:r,itemStyleRef:n,overflowRef:o,layoutShiftDisabledRef:s}=inject(gridInjectionKey),l=getCurrentInstance();return{overflow:o,itemStyle:n,layoutShiftDisabled:s,mergedXGap:computed(()=>pxfy(r.value||0)),deriveStyle:()=>{t.value;const{privateSpan:d=defaultSpan,privateShow:g=!0,privateColStart:y=void 0,privateOffset:b=0}=l.vnode.props,{value:C}=r,x=pxfy(C||0);return{display:g?"":"none",gridColumn:`${y!=null?y:`span ${d}`} / span ${d}`,marginLeft:b?`calc((100% - (${d} - 1) * ${x}) / ${d} * ${b} + ${x} * ${b})`:""}}}},render(){var t,r;if(this.layoutShiftDisabled){const{span:n,offset:o,mergedXGap:s}=this;return h("div",{style:{gridColumn:`span ${n} / span ${n}`,marginLeft:o?`calc((100% - (${n} - 1) * ${s}) / ${n} * ${o} + ${s} * ${o})`:""}},this.$slots)}return h("div",{style:[this.itemStyle,this.deriveStyle()]},(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t,{overflow:this.overflow}))}});const positionStyles=Array.apply(null,{length:24}).map((t,r)=>{const n=r+1,o=`calc(100% / 24 * ${n})`;return[cM(`${n}-span`,{width:o}),cM(`${n}-offset`,{marginLeft:o}),cM(`${n}-push`,{left:o}),cM(`${n}-pull`,{right:o})]});var style$x=c$1([cB("row",{width:"100%",display:"flex",flexWrap:"wrap"}),cB("col",{verticalAlign:"top",boxSizing:"border-box",display:"inline-block",position:"relative",zIndex:"auto"},[cE("box",{position:"relative",zIndex:"auto",width:"100%",height:"100%"}),positionStyles])]);const rowInjectionKey="n-row",rowProps={gutter:{type:[Array,Number,String],default:0},alignItems:String,justifyContent:String};var NRow=defineComponent({name:"Row",props:rowProps,setup(t){const{mergedClsPrefixRef:r,mergedRtlRef:n}=useConfig(t);useStyle("-legacy-grid",style$x,r);const o=useRtl("Row",n,r),s=useMemo(()=>{const{gutter:d}=t;return Array.isArray(d)&&d[1]||0}),l=useMemo(()=>{const{gutter:d}=t;return Array.isArray(d)?d[0]:Number(d)});return provide(rowInjectionKey,{mergedClsPrefixRef:r,gutterRef:toRef(t,"gutter"),verticalGutterRef:s,horizontalGutterRef:l}),{mergedClsPrefix:r,rtlEnabled:o,styleMargin:useMemo(()=>`-${formatLength(s.value,{c:.5})} -${formatLength(l.value,{c:.5})}`),styleWidth:useMemo(()=>`calc(100% + ${formatLength(l.value)})`)}},render(){return h("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 colProps={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 NCol=defineComponent({name:"Col",props:colProps,setup(t){const r=inject(rowInjectionKey,null);return r||throwError$1("col","`n-col` must be placed inside `n-row`."),{mergedClsPrefix:r.mergedClsPrefixRef,gutter:r.gutterRef,stylePadding:computed(()=>`${formatLength(r.verticalGutterRef.value,{c:.5})} ${formatLength(r.horizontalGutterRef.value,{c:.5})}`),mergedPush:computed(()=>Number(t.push)-Number(t.pull))}},render(){const{$slots:t,span:r,mergedPush:n,offset:o,stylePadding:s,gutter:l,mergedClsPrefix:d}=this;return h("div",{class:[`${d}-col`,{[`${d}-col--${r}-span`]:!0,[`${d}-col--${n}-push`]:n>0,[`${d}-col--${-n}-pull`]:n<0,[`${d}-col--${o}-offset`]:o}],style:{padding:s}},l?h("div",null,t):t)}});const gradientTextDark={name:"GradientText",common:commonDark,self(t){const{primaryColor:r,successColor:n,warningColor:o,errorColor:s,infoColor:l,primaryColorSuppl:d,successColorSuppl:g,warningColorSuppl:y,errorColorSuppl:b,infoColorSuppl:C,fontWeightStrong:x}=t;return{fontWeight:x,rotate:"252deg",colorStartPrimary:r,colorEndPrimary:d,colorStartInfo:l,colorEndInfo:C,colorStartWarning:o,colorEndWarning:y,colorStartError:s,colorEndError:b,colorStartSuccess:n,colorEndSuccess:g}}};var gradientTextDark$1=gradientTextDark;const self$t=t=>{const{primaryColor:r,successColor:n,warningColor:o,errorColor:s,infoColor:l,fontWeightStrong:d}=t;return{fontWeight:d,rotate:"252deg",colorStartPrimary:changeColor(r,{alpha:.6}),colorEndPrimary:r,colorStartInfo:changeColor(l,{alpha:.6}),colorEndInfo:l,colorStartWarning:changeColor(o,{alpha:.6}),colorEndWarning:o,colorStartError:changeColor(s,{alpha:.6}),colorEndError:s,colorStartSuccess:changeColor(n,{alpha:.6}),colorEndSuccess:n}},gradientTextLight={name:"GradientText",common:commonLight,self:self$t};var gradientTextLight$1=gradientTextLight,style$w=cB("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 gradientTextProps=Object.assign(Object.assign({},useTheme.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]});var NGradientText=defineComponent({name:"GradientText",props:gradientTextProps,setup(t){useHoudini();const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=computed(()=>{const{type:b}=t;return b==="danger"?"error":b}),s=computed(()=>{let b=t.size||t.fontSize;return b&&(b=formatLength(b)),b||void 0}),l=computed(()=>{const b=t.color||t.gradient;if(typeof b=="string")return b;if(b){const C=b.deg||0,x=b.from,S=b.to;return`linear-gradient(${C}deg, ${x} 0%, ${S} 100%)`}}),d=useTheme("GradientText","-gradient-text",style$w,gradientTextLight$1,t,r),g=computed(()=>{const{value:b}=o,{common:{cubicBezierEaseInOut:C},self:{rotate:x,[createKey("colorStart",b)]:S,[createKey("colorEnd",b)]:_,fontWeight:w}}=d.value;return{"--n-bezier":C,"--n-rotate":x,"--n-color-start":S,"--n-color-end":_,"--n-font-weight":w}}),y=n?useThemeClass("gradient-text",computed(()=>o.value[0]),g,t):void 0;return{mergedClsPrefix:r,compatibleType:o,styleFontSize:s,styleBgImage:l,cssVars:n?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){const{mergedClsPrefix:t,onRender:r}=this;return r==null||r(),h("span",{class:[`${t}-gradient-text`,`${t}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});const defaultBreakpoints={xs:0,s:640,m:1024,l:1280,xl:1536,xxl:1920},defaultCols=24,SSR_ATTR_NAME="__ssr__",gridProps={layoutShiftDisabled:Boolean,responsive:{type:[String,Boolean],default:"self"},cols:{type:[Number,String],default:defaultCols},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 NGrid=defineComponent({name:"Grid",inheritAttrs:!1,props:gridProps,setup(t){const{mergedClsPrefixRef:r,mergedBreakpointsRef:n}=useConfig(t),o=/^\d+$/,s=ref(void 0),l=useBreakpoints((n==null?void 0:n.value)||defaultBreakpoints),d=useMemo(()=>!!(t.itemResponsive||!o.test(t.cols.toString())||!o.test(t.xGap.toString())||!o.test(t.yGap.toString()))),g=computed(()=>{if(!!d.value)return t.responsive==="self"?s.value:l.value}),y=useMemo(()=>{var B;return(B=Number(parseResponsivePropValue(t.cols.toString(),g.value)))!==null&&B!==void 0?B:defaultCols}),b=useMemo(()=>parseResponsivePropValue(t.xGap.toString(),g.value)),C=useMemo(()=>parseResponsivePropValue(t.yGap.toString(),g.value)),x=B=>{s.value=B.contentRect.width},S=B=>{beforeNextFrameOnce(x,B)},_=ref(!1),w=computed(()=>{if(t.responsive==="self")return S}),$=ref(!1),I=ref();return onMounted(()=>{const{value:B}=I;B&&B.hasAttribute(SSR_ATTR_NAME)&&(B.removeAttribute(SSR_ATTR_NAME),$.value=!0)}),provide(gridInjectionKey,{layoutShiftDisabledRef:toRef(t,"layoutShiftDisabled"),isSsrRef:$,itemStyleRef:toRef(t,"itemStyle"),xGapRef:b,overflowRef:_}),{isSsr:!isBrowser$3,contentEl:I,mergedClsPrefix:r,style:computed(()=>t.layoutShiftDisabled?{width:"100%",display:"grid",gridTemplateColumns:`repeat(${t.cols}, minmax(0, 1fr))`,columnGap:pxfy(t.xGap),rowGap:pxfy(t.yGap)}:{width:"100%",display:"grid",gridTemplateColumns:`repeat(${y.value}, minmax(0, 1fr))`,columnGap:pxfy(b.value),rowGap:pxfy(C.value)}),isResponsive:d,responsiveQuery:g,responsiveCols:y,handleResize:w,overflow:_}},render(){if(this.layoutShiftDisabled)return h("div",mergeProps({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style},this.$attrs),this.$slots);const t=()=>{var r,n,o,s,l,d,g;this.overflow=!1;const y=flatten$5(getSlot$1(this)),b=[],{collapsed:C,collapsedRows:x,responsiveCols:S,responsiveQuery:_}=this;y.forEach(R=>{var P,M,O,D;if(((P=R==null?void 0:R.type)===null||P===void 0?void 0:P.__GRID_ITEM__)!==!0)return;if(isNodeVShowFalse(R)){const Q=cloneVNode(R);Q.props?Q.props.privateShow=!1:Q.props={privateShow:!1},b.push({child:Q,rawChildSpan:0});return}R.dirs=((M=R.dirs)===null||M===void 0?void 0:M.filter(({dir:Q})=>Q!==vShow))||null;const N=cloneVNode(R),H=Number((D=parseResponsivePropValue((O=N.props)===null||O===void 0?void 0:O.span,_))!==null&&D!==void 0?D:defaultSpan$1);H!==0&&b.push({child:N,rawChildSpan:H})});let w=0;const $=(r=b[b.length-1])===null||r===void 0?void 0:r.child;if($!=null&&$.props){const R=(n=$.props)===null||n===void 0?void 0:n.suffix;R!==void 0&&R!==!1&&(w=(s=(o=$.props)===null||o===void 0?void 0:o.span)!==null&&s!==void 0?s:defaultSpan$1,$.props.privateSpan=w,$.props.privateColStart=S+1-w,$.props.privateShow=(l=$.props.privateShow)!==null&&l!==void 0?l:!0)}let I=0,B=!1;for(const{child:R,rawChildSpan:P}of b){if(B&&(this.overflow=!0),!B){const M=Number((g=parseResponsivePropValue((d=R.props)===null||d===void 0?void 0:d.offset,_))!==null&&g!==void 0?g:0),O=Math.min(P+M,S);if(R.props?(R.props.privateSpan=O,R.props.privateOffset=M):R.props={privateSpan:O,privateOffset:M},C){const D=I%S;O+D>S&&(I+=S-D),O+I+w>x*S?B=!0:I+=O}}B&&(R.props?R.props.privateShow!==!0&&(R.props.privateShow=!1):R.props={privateShow:!1})}return h("div",mergeProps({ref:"contentEl",class:`${this.mergedClsPrefix}-grid`,style:this.style,[SSR_ATTR_NAME]:this.isSsr||void 0},this.$attrs),b.map(({child:R})=>R))};return this.isResponsive&&this.responsive==="self"?h(VResizeObserver,{onResize:this.handleResize},{default:t}):t()}});const self$s=t=>{const{primaryColor:r,baseColor:n}=t;return{color:r,iconColor:n}},iconDark={name:"IconWrapper",common:commonDark,self:self$s};var iconWrapperDark=iconDark;const imagePreviewSharedProps=Object.assign(Object.assign({},useTheme.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),imageContextKey="n-image";function self$r(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const imageLight={name:"Image",common:commonLight,peers:{Tooltip:tooltipLight$1},self:self$r};var commonVars$3={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};const self$q=t=>{const{textColor2:r,successColor:n,infoColor:o,warningColor:s,errorColor:l,popoverColor:d,closeIconColor:g,closeIconColorHover:y,closeIconColorPressed:b,closeColorHover:C,closeColorPressed:x,textColor1:S,textColor3:_,borderRadius:w,fontWeightStrong:$,boxShadow2:I,lineHeight:B,fontSize:R}=t;return Object.assign(Object.assign({},commonVars$3),{borderRadius:w,lineHeight:B,fontSize:R,headerFontWeight:$,iconColor:r,iconColorSuccess:n,iconColorInfo:o,iconColorWarning:s,iconColorError:l,color:d,textColor:r,closeIconColor:g,closeIconColorHover:y,closeIconColorPressed:b,closeBorderRadius:w,closeColorHover:C,closeColorPressed:x,headerTextColor:S,descriptionTextColor:_,actionTextColor:r,boxShadow:I})},notificationLight={name:"Notification",common:commonLight,peers:{Scrollbar:scrollbarLight$1},self:self$q};var notificationLight$1=notificationLight;const notificationDark={name:"Notification",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self:self$q};var notificationDark$1=notificationDark,commonVariables$4={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 self$p=t=>{const{textColor2:r,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:s,infoColor:l,successColor:d,errorColor:g,warningColor:y,popoverColor:b,boxShadow2:C,primaryColor:x,lineHeight:S,borderRadius:_,closeColorHover:w,closeColorPressed:$}=t;return Object.assign(Object.assign({},commonVariables$4),{closeBorderRadius:_,textColor:r,textColorInfo:r,textColorSuccess:r,textColorError:r,textColorWarning:r,textColorLoading:r,color:b,colorInfo:b,colorSuccess:b,colorError:b,colorWarning:b,colorLoading:b,boxShadow:C,boxShadowInfo:C,boxShadowSuccess:C,boxShadowError:C,boxShadowWarning:C,boxShadowLoading:C,iconColor:r,iconColorInfo:l,iconColorSuccess:d,iconColorWarning:y,iconColorError:g,iconColorLoading:x,closeColorHover:w,closeColorPressed:$,closeIconColor:n,closeIconColorHover:o,closeIconColorPressed:s,closeColorHoverInfo:w,closeColorPressedInfo:$,closeIconColorInfo:n,closeIconColorHoverInfo:o,closeIconColorPressedInfo:s,closeColorHoverSuccess:w,closeColorPressedSuccess:$,closeIconColorSuccess:n,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:s,closeColorHoverError:w,closeColorPressedError:$,closeIconColorError:n,closeIconColorHoverError:o,closeIconColorPressedError:s,closeColorHoverWarning:w,closeColorPressedWarning:$,closeIconColorWarning:n,closeIconColorHoverWarning:o,closeIconColorPressedWarning:s,closeColorHoverLoading:w,closeColorPressedLoading:$,closeIconColorLoading:n,closeIconColorHoverLoading:o,closeIconColorPressedLoading:s,loadingColor:x,lineHeight:S,borderRadius:_})},messageLight={name:"Message",common:commonLight,self:self$p};var messageLight$1=messageLight;const messageDark={name:"Message",common:commonDark,self:self$p};var messageDark$1=messageDark;const buttonGroupDark={name:"ButtonGroup",common:commonDark};var buttonGroupDark$1=buttonGroupDark;const inputNumberDark={name:"InputNumber",common:commonDark,peers:{Button:buttonDark$1,Input:inputDark$1},self(t){const{textColorDisabled:r}=t;return{iconColorDisabled:r}}};var inputNumberDark$1=inputNumberDark;const self$o=t=>{const{textColorDisabled:r}=t;return{iconColorDisabled:r}},inputNumberLight={name:"InputNumber",common:commonLight,peers:{Button:buttonLight$1,Input:inputLight$1},self:self$o};var inputNumberLight$1=inputNumberLight;const layoutDark={name:"Layout",common:commonDark,peers:{Scrollbar:scrollbarDark$1},self(t){const{textColor2:r,bodyColor:n,popoverColor:o,cardColor:s,dividerColor:l,scrollbarColor:d,scrollbarColorHover:g}=t;return{textColor:r,textColorInverted:r,color:n,colorEmbedded:n,headerColor:s,headerColorInverted:s,footerColor:s,footerColorInverted:s,headerBorderColor:l,headerBorderColorInverted:l,footerBorderColor:l,footerBorderColorInverted:l,siderBorderColor:l,siderBorderColorInverted:l,siderColor:s,siderColorInverted:s,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:o,siderToggleButtonIconColor:r,siderToggleButtonIconColorInverted:r,siderToggleBarColor:composite(n,d),siderToggleBarColorHover:composite(n,g),__invertScrollbar:"false"}}};var layoutDark$1=layoutDark;const self$n=t=>{const{baseColor:r,textColor2:n,bodyColor:o,cardColor:s,dividerColor:l,actionColor:d,scrollbarColor:g,scrollbarColorHover:y,invertedColor:b}=t;return{textColor:n,textColorInverted:"#FFF",color:o,colorEmbedded:d,headerColor:s,headerColorInverted:b,footerColor:d,footerColorInverted:b,headerBorderColor:l,headerBorderColorInverted:b,footerBorderColor:l,footerBorderColorInverted:b,siderBorderColor:l,siderBorderColorInverted:b,siderColor:s,siderColorInverted:b,siderToggleButtonBorder:`1px solid ${l}`,siderToggleButtonColor:r,siderToggleButtonIconColor:n,siderToggleButtonIconColorInverted:n,siderToggleBarColor:composite(o,g),siderToggleBarColorHover:composite(o,y),__invertScrollbar:"true"}},layoutLight={name:"Layout",common:commonLight,peers:{Scrollbar:scrollbarLight$1},self:self$n};var layoutLight$1=layoutLight;const self$m=t=>{const{textColor2:r,cardColor:n,modalColor:o,popoverColor:s,dividerColor:l,borderRadius:d,fontSize:g,hoverColor:y}=t;return{textColor:r,color:n,colorHover:y,colorModal:o,colorHoverModal:composite(o,y),colorPopover:s,colorHoverPopover:composite(s,y),borderColor:l,borderColorModal:composite(o,l),borderColorPopover:composite(s,l),borderRadius:d,fontSize:g}},listLight={name:"List",common:commonLight,self:self$m};var listLight$1=listLight;const listDark$1={name:"List",common:commonDark,self:self$m};var listDark$2=listDark$1;const loadingBarDark={name:"LoadingBar",common:commonDark,self(t){const{primaryColor:r}=t;return{colorError:"red",colorLoading:r,height:"2px"}}};var loadingBarDark$1=loadingBarDark;const self$l=t=>{const{primaryColor:r,errorColor:n}=t;return{colorError:n,colorLoading:r,height:"2px"}},loadingBarLight={name:"LoadingBar",common:commonLight,self:self$l};var loadingBarLight$1=loadingBarLight;const logDark={name:"Log",common:commonDark,peers:{Scrollbar:scrollbarDark$1,Code:codeDark$1},self(t){const{textColor2:r,inputColor:n,fontSize:o,primaryColor:s}=t;return{loaderFontSize:o,loaderTextColor:r,loaderColor:n,loaderBorder:"1px solid #0000",loadingColor:s}}};var logDark$1=logDark;const listDark={name:"Mention",common:commonDark,peers:{InternalSelectMenu:internalSelectMenuDark$1,Input:inputDark$1},self(t){const{boxShadow2:r}=t;return{menuBoxShadow:r}}};var mentionDark=listDark;function createPartialInvertedVars(t,r,n,o){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:r,itemColorActiveHoverInverted:r,itemColorActiveCollapsedInverted:r,itemTextColorInverted:t,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:t,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:t,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:t,itemIconColorHorizontalInverted:t,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:t,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:o}}const self$k=t=>{const{borderRadius:r,textColor3:n,primaryColor:o,textColor2:s,textColor1:l,fontSize:d,dividerColor:g,hoverColor:y,primaryColorHover:b}=t;return Object.assign({borderRadius:r,color:"#0000",groupTextColor:n,itemColorHover:y,itemColorActive:changeColor(o,{alpha:.1}),itemColorActiveHover:changeColor(o,{alpha:.1}),itemColorActiveCollapsed:changeColor(o,{alpha:.1}),itemTextColor:s,itemTextColorHover:s,itemTextColorActive:o,itemTextColorActiveHover:o,itemTextColorChildActive:o,itemTextColorChildActiveHover:o,itemTextColorHorizontal:s,itemTextColorHoverHorizontal:b,itemTextColorActiveHorizontal:o,itemTextColorActiveHoverHorizontal:o,itemTextColorChildActiveHorizontal:o,itemTextColorChildActiveHoverHorizontal:o,itemIconColor:l,itemIconColorHover:l,itemIconColorActive:o,itemIconColorActiveHover:o,itemIconColorChildActive:o,itemIconColorChildActiveHover:o,itemIconColorCollapsed:l,itemIconColorHorizontal:l,itemIconColorHoverHorizontal:b,itemIconColorActiveHorizontal:o,itemIconColorActiveHoverHorizontal:o,itemIconColorChildActiveHorizontal:o,itemIconColorChildActiveHoverHorizontal:o,itemHeight:"42px",arrowColor:s,arrowColorHover:s,arrowColorActive:o,arrowColorActiveHover:o,arrowColorChildActive:o,arrowColorChildActiveHover:o,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:d,dividerColor:g},createPartialInvertedVars("#BBB",o,"#FFF","#AAA"))},menuLight={name:"Menu",common:commonLight,peers:{Tooltip:tooltipLight$1,Dropdown:dropdownLight$1},self:self$k};var menuLight$1=menuLight;const menuDark={name:"Menu",common:commonDark,peers:{Tooltip:tooltipDark$1,Dropdown:dropdownDark$1},self(t){const{primaryColor:r,primaryColorSuppl:n}=t,o=self$k(t);return o.itemColorActive=changeColor(r,{alpha:.15}),o.itemColorActiveHover=changeColor(r,{alpha:.15}),o.itemColorActiveCollapsed=changeColor(r,{alpha:.15}),o.itemColorActiveInverted=n,o.itemColorActiveHoverInverted=n,o.itemColorActiveCollapsedInverted=n,o}};var menuDark$1=menuDark,common={titleFontSize:"18px",backSize:"22px"};function self$j(t){const{textColor1:r,textColor2:n,textColor3:o,fontSize:s,fontWeightStrong:l,primaryColorHover:d,primaryColorPressed:g}=t;return Object.assign(Object.assign({},common),{titleFontWeight:l,fontSize:s,titleTextColor:r,backColor:n,backColorHover:d,backColorPressed:g,subtitleTextColor:o})}const pageHeaderDark={name:"PageHeader",common:commonDark,self:self$j};var commonVars$2={iconSize:"22px"};const self$i=t=>{const{fontSize:r,warningColor:n}=t;return Object.assign(Object.assign({},commonVars$2),{fontSize:r,iconColor:n})},popconfirmDark={name:"Popconfirm",common:commonDark,peers:{Button:buttonDark$1,Popover:popoverDark$1},self:self$i};var popconfirmDark$1=popconfirmDark;const self$h=t=>{const{infoColor:r,successColor:n,warningColor:o,errorColor:s,textColor2:l,progressRailColor:d,fontSize:g,fontWeight:y}=t;return{fontSize:g,fontSizeCircle:"28px",fontWeightCircle:y,railColor:d,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:r,iconColorInfo:r,iconColorSuccess:n,iconColorWarning:o,iconColorError:s,textColorCircle:l,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:l,fillColor:r,fillColorInfo:r,fillColorSuccess:n,fillColorWarning:o,fillColorError:s,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}},progressLight={name:"Progress",common:commonLight,self:self$h};var progressLight$1=progressLight;const progressDark={name:"Progress",common:commonDark,self(t){const r=self$h(t);return r.textColorLineInner="rgb(0, 0, 0)",r.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",r}};var progressDark$1=progressDark;const rateDark={name:"Rate",common:commonDark,self(t){const{railColor:r}=t;return{itemColor:r,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}};var rateDark$1=rateDark,commonVariables$3={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 self$g=t=>{const{textColor2:r,textColor1:n,errorColor:o,successColor:s,infoColor:l,warningColor:d,lineHeight:g,fontWeightStrong:y}=t;return Object.assign(Object.assign({},commonVariables$3),{lineHeight:g,titleFontWeight:y,titleTextColor:n,textColor:r,iconColorError:o,iconColorSuccess:s,iconColorInfo:l,iconColorWarning:d})},resultLight={name:"Result",common:commonLight,self:self$g};var resultLight$1=resultLight;const resultDark={name:"Result",common:commonDark,self:self$g};var resultDark$1=resultDark,sizeVariables$3={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"};const sliderDark={name:"Slider",common:commonDark,self(t){const r="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:n,modalColor:o,primaryColorSuppl:s,popoverColor:l,textColor2:d,cardColor:g,borderRadius:y,fontSize:b,opacityDisabled:C}=t;return Object.assign(Object.assign({},sizeVariables$3),{fontSize:b,markFontSize:b,railColor:n,railColorHover:n,fillColor:s,fillColorHover:s,opacityDisabled:C,handleColor:"#FFF",dotColor:g,dotColorModal:o,dotColorPopover:l,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:l,indicatorBoxShadow:r,indicatorTextColor:d,indicatorBorderRadius:y,dotBorder:`2px solid ${n}`,dotBorderActive:`2px solid ${s}`,dotBoxShadow:""})}};var sliderDark$1=sliderDark;const self$f=t=>{const r="rgba(0, 0, 0, .85)",n="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,primaryColor:s,baseColor:l,cardColor:d,modalColor:g,popoverColor:y,borderRadius:b,fontSize:C,opacityDisabled:x}=t;return Object.assign(Object.assign({},sizeVariables$3),{fontSize:C,markFontSize:C,railColor:o,railColorHover:o,fillColor:s,fillColorHover:s,opacityDisabled:x,handleColor:"#FFF",dotColor:d,dotColorModal:g,dotColorPopover:y,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:r,indicatorBoxShadow:n,indicatorTextColor:l,indicatorBorderRadius:b,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${s}`,dotBoxShadow:""})},sliderLight={name:"Slider",common:commonLight,self:self$f};var sliderLight$1=sliderLight;const self$e=t=>{const{opacityDisabled:r,heightTiny:n,heightSmall:o,heightMedium:s,heightLarge:l,heightHuge:d,primaryColor:g,fontSize:y}=t;return{fontSize:y,textColor:g,sizeTiny:n,sizeSmall:o,sizeMedium:s,sizeLarge:l,sizeHuge:d,color:g,opacitySpinning:r}},spinLight={name:"Spin",common:commonLight,self:self$e};var spinLight$1=spinLight;const spinDark={name:"Spin",common:commonDark,self:self$e};var spinDark$1=spinDark;const self$d=t=>{const{textColor2:r,textColor3:n,fontSize:o,fontWeight:s}=t;return{labelFontSize:o,labelFontWeight:s,valueFontWeight:s,valueFontSize:"24px",labelTextColor:n,valuePrefixTextColor:r,valueSuffixTextColor:r,valueTextColor:r}},statisticLight={name:"Statistic",common:commonLight,self:self$d};var statisticLight$1=statisticLight;const statisticDark={name:"Statistic",common:commonDark,self:self$d};var statisticDark$1=statisticDark,commonVariables$2={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};const self$c=t=>{const{fontWeightStrong:r,baseColor:n,textColorDisabled:o,primaryColor:s,errorColor:l,textColor1:d,textColor2:g}=t;return Object.assign(Object.assign({},commonVariables$2),{stepHeaderFontWeight:r,indicatorTextColorProcess:n,indicatorTextColorWait:o,indicatorTextColorFinish:s,indicatorTextColorError:l,indicatorBorderColorProcess:s,indicatorBorderColorWait:o,indicatorBorderColorFinish:s,indicatorBorderColorError:l,indicatorColorProcess:s,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:o,splitorColorWait:o,splitorColorFinish:s,splitorColorError:o,headerTextColorProcess:d,headerTextColorWait:o,headerTextColorFinish:o,headerTextColorError:l,descriptionTextColorProcess:g,descriptionTextColorWait:o,descriptionTextColorFinish:o,descriptionTextColorError:l})},stepsLight={name:"Steps",common:commonLight,self:self$c};var stepsLight$1=stepsLight;const stepsDark={name:"Steps",common:commonDark,self:self$c};var stepsDark$1=stepsDark,commonVars$1={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 switchDark={name:"Switch",common:commonDark,self(t){const{primaryColorSuppl:r,opacityDisabled:n,borderRadius:o,primaryColor:s,textColor2:l,baseColor:d}=t,g="rgba(255, 255, 255, .20)";return Object.assign(Object.assign({},commonVars$1),{iconColor:d,textColor:l,loadingColor:r,opacityDisabled:n,railColor:g,railColorActive:r,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 8px 0 ${changeColor(s,{alpha:.3})}`})}};var switchDark$1=switchDark;const self$b=t=>{const{primaryColor:r,opacityDisabled:n,borderRadius:o,textColor3:s}=t,l="rgba(0, 0, 0, .14)";return Object.assign(Object.assign({},commonVars$1),{iconColor:s,textColor:"white",loadingColor:r,opacityDisabled:n,railColor:l,railColorActive:r,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:o,railBorderRadiusMedium:o,railBorderRadiusLarge:o,buttonBorderRadiusSmall:o,buttonBorderRadiusMedium:o,buttonBorderRadiusLarge:o,boxShadowFocus:`0 0 0 2px ${changeColor(r,{alpha:.2})}`})},switchLight={name:"Switch",common:commonLight,self:self$b};var switchLight$1=switchLight,sizeVariables$2={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};const self$a=t=>{const{dividerColor:r,cardColor:n,modalColor:o,popoverColor:s,tableHeaderColor:l,tableColorStriped:d,textColor1:g,textColor2:y,borderRadius:b,fontWeightStrong:C,lineHeight:x,fontSizeSmall:S,fontSizeMedium:_,fontSizeLarge:w}=t;return Object.assign(Object.assign({},sizeVariables$2),{fontSizeSmall:S,fontSizeMedium:_,fontSizeLarge:w,lineHeight:x,borderRadius:b,borderColor:composite(n,r),borderColorModal:composite(o,r),borderColorPopover:composite(s,r),tdColor:n,tdColorModal:o,tdColorPopover:s,tdColorStriped:composite(n,d),tdColorStripedModal:composite(o,d),tdColorStripedPopover:composite(s,d),thColor:composite(n,l),thColorModal:composite(o,l),thColorPopover:composite(s,l),thTextColor:g,tdTextColor:y,thFontWeight:C})},tableLight={name:"Table",common:commonLight,self:self$a};var tableLight$1=tableLight;const tableDark={name:"Table",common:commonDark,self:self$a};var tableDark$1=tableDark,sizeVariables$1={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"0 6px",tabPaddingVerticalMediumLine:"0 10px",tabPaddingVerticalLargeLine:"0 14px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"0 4px",tabPaddingVerticalMediumBar:"0 6px ",tabPaddingVerticalLargeBar:"0 10px ",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabPaddingSmallCard:"6px 10px",tabPaddingMediumCard:"8px 12px",tabPaddingLargeCard:"8px 16px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"10px 6px",tabPaddingVerticalMediumCard:"12px 8px",tabPaddingVerticalLargeCard:"16px 8px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",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 self$9=t=>{const{textColor2:r,primaryColor:n,textColorDisabled:o,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeColorHover:g,closeColorPressed:y,tabColor:b,baseColor:C,dividerColor:x,fontWeight:S,textColor1:_,borderRadius:w,fontSize:$,fontWeightStrong:I}=t;return Object.assign(Object.assign({},sizeVariables$1),{colorSegment:b,tabFontSizeCard:$,tabTextColorLine:_,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:o,tabTextColorSegment:_,tabTextColorActiveSegment:r,tabTextColorHoverSegment:r,tabTextColorDisabledSegment:o,tabTextColorBar:_,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:o,tabTextColorCard:_,tabTextColorHoverCard:_,tabTextColorActiveCard:n,tabTextColorDisabledCard:o,barColor:n,closeIconColor:s,closeIconColorHover:l,closeIconColorPressed:d,closeColorHover:g,closeColorPressed:y,closeBorderRadius:w,tabColor:b,tabColorSegment:C,tabBorderColor:x,tabFontWeightActive:S,tabFontWeight:S,tabBorderRadius:w,paneTextColor:r,fontWeightStrong:I})},tabsLight={name:"Tabs",common:commonLight,self:self$9};var tabsLight$1=tabsLight;const tabsDark={name:"Tabs",common:commonDark,self(t){const r=self$9(t),{inputColor:n}=t;return r.colorSegment=n,r.tabColorSegment=n,r}};var tabsDark$1=tabsDark;const self$8=t=>{const{textColor1:r,textColor2:n,fontWeightStrong:o,fontSize:s}=t;return{fontSize:s,titleTextColor:r,textColor:n,titleFontWeight:o}},thingLight={name:"Thing",common:commonLight,self:self$8};var thingLight$1=thingLight;const thingDark={name:"Thing",common:commonDark,self:self$8};var thingDark$1=thingDark,sizeVariables={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"};const timelineDark={name:"Timeline",common:commonDark,self(t){const{textColor3:r,infoColorSuppl:n,errorColorSuppl:o,successColorSuppl:s,warningColorSuppl:l,textColor1:d,textColor2:g,railColor:y,fontWeightStrong:b,fontSize:C}=t;return Object.assign(Object.assign({},sizeVariables),{contentFontSize:C,titleFontWeight:b,circleBorder:`2px solid ${r}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${s}`,circleBorderWarning:`2px solid ${l}`,iconColor:r,iconColorInfo:n,iconColorError:o,iconColorSuccess:s,iconColorWarning:l,titleTextColor:d,contentTextColor:g,metaTextColor:r,lineColor:y})}};var timelineDark$1=timelineDark;const self$7=t=>{const{textColor3:r,infoColor:n,errorColor:o,successColor:s,warningColor:l,textColor1:d,textColor2:g,railColor:y,fontWeightStrong:b,fontSize:C}=t;return Object.assign(Object.assign({},sizeVariables),{contentFontSize:C,titleFontWeight:b,circleBorder:`2px solid ${r}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${o}`,circleBorderSuccess:`2px solid ${s}`,circleBorderWarning:`2px solid ${l}`,iconColor:r,iconColorInfo:n,iconColorError:o,iconColorSuccess:s,iconColorWarning:l,titleTextColor:d,contentTextColor:g,metaTextColor:r,lineColor:y})},timelineLight={name:"Timeline",common:commonLight,self:self$7};var timelineLight$1=timelineLight,commonVariables$1={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"};const transferDark$1={name:"Transfer",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Input:inputDark$1,Empty:emptyDark$1,Button:buttonDark$1},self(t){const{fontWeight:r,fontSizeLarge:n,fontSizeMedium:o,fontSizeSmall:s,heightLarge:l,heightMedium:d,borderRadius:g,inputColor:y,tableHeaderColor:b,textColor1:C,textColorDisabled:x,textColor2:S,textColor3:_,hoverColor:w,closeColorHover:$,closeColorPressed:I,closeIconColor:B,closeIconColorHover:R,closeIconColorPressed:P,dividerColor:M}=t;return Object.assign(Object.assign({},commonVariables$1),{itemHeightSmall:d,itemHeightMedium:d,itemHeightLarge:l,fontSizeSmall:s,fontSizeMedium:o,fontSizeLarge:n,borderRadius:g,dividerColor:M,borderColor:"#0000",listColor:y,headerColor:b,titleTextColor:C,titleTextColorDisabled:x,extraTextColor:_,extraTextColorDisabled:x,itemTextColor:S,itemTextColorDisabled:x,itemColorPending:w,titleFontWeight:r,closeColorHover:$,closeColorPressed:I,closeIconColor:B,closeIconColorHover:R,closeIconColorPressed:P})}};var transferDark$2=transferDark$1;const self$6=t=>{const{borderRadiusSmall:r,hoverColor:n,pressedColor:o,primaryColor:s,textColor3:l,textColor2:d,textColorDisabled:g,fontSize:y}=t;return{fontSize:y,nodeBorderRadius:r,nodeColorHover:n,nodeColorPressed:o,nodeColorActive:changeColor(s,{alpha:.1}),arrowColor:l,nodeTextColor:d,nodeTextColorDisabled:g,loadingColor:s,dropMarkColor:s}},treeLight={name:"Tree",common:commonLight,peers:{Checkbox:checkboxLight$1,Scrollbar:scrollbarLight$1,Empty:emptyLight$1},self:self$6};var treeLight$1=treeLight;const treeDark={name:"Tree",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Empty:emptyDark$1},self(t){const{primaryColor:r}=t,n=self$6(t);return n.nodeColorActive=changeColor(r,{alpha:.15}),n}};var treeDark$1=treeDark;const treeSelectDark={name:"TreeSelect",common:commonDark,peers:{Tree:treeDark$1,Empty:emptyDark$1,InternalSelection:internalSelectionDark$1}};var treeSelectDark$1=treeSelectDark;const self$5=t=>{const{popoverColor:r,boxShadow2:n,borderRadius:o,heightMedium:s,dividerColor:l,textColor2:d}=t;return{menuPadding:"4px",menuColor:r,menuBoxShadow:n,menuBorderRadius:o,menuHeight:`calc(${s} * 7.6)`,actionDividerColor:l,actionTextColor:d,actionPadding:"8px 12px"}},treeSelectLight={name:"TreeSelect",common:commonLight,peers:{Tree:treeLight$1,Empty:emptyLight$1,InternalSelection:internalSelectionLight$1},self:self$5};var treeSelectLight$1=treeSelectLight,commonVars={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 self$4=t=>{const{primaryColor:r,textColor2:n,borderColor:o,lineHeight:s,fontSize:l,borderRadiusSmall:d,dividerColor:g,fontWeightStrong:y,textColor1:b,textColor3:C,infoColor:x,warningColor:S,errorColor:_,successColor:w,codeColor:$}=t;return Object.assign(Object.assign({},commonVars),{aTextColor:r,blockquoteTextColor:n,blockquotePrefixColor:o,blockquoteLineHeight:s,blockquoteFontSize:l,codeBorderRadius:d,liTextColor:n,liLineHeight:s,liFontSize:l,hrColor:g,headerFontWeight:y,headerTextColor:b,pTextColor:n,pTextColor1Depth:b,pTextColor2Depth:n,pTextColor3Depth:C,pLineHeight:s,pFontSize:l,headerBarColor:r,headerBarColorPrimary:r,headerBarColorInfo:x,headerBarColorError:_,headerBarColorWarning:S,headerBarColorSuccess:w,textColor:n,textColor1Depth:b,textColor2Depth:n,textColor3Depth:C,textColorPrimary:r,textColorInfo:x,textColorSuccess:w,textColorWarning:S,textColorError:_,codeTextColor:n,codeColor:$,codeBorder:"1px solid #0000"})},typographyLight={name:"Typography",common:commonLight,self:self$4};var typographyLight$1=typographyLight;const typographyDark={name:"Typography",common:commonDark,self:self$4};var typographyDark$1=typographyDark;const self$3=t=>{const{iconColor:r,primaryColor:n,errorColor:o,textColor2:s,successColor:l,opacityDisabled:d,actionColor:g,borderColor:y,hoverColor:b,lineHeight:C,borderRadius:x,fontSize:S}=t;return{fontSize:S,lineHeight:C,borderRadius:x,draggerColor:g,draggerBorder:`1px dashed ${y}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:b,itemColorHoverError:changeColor(o,{alpha:.06}),itemTextColor:s,itemTextColorError:o,itemTextColorSuccess:l,itemIconColor:r,itemDisabledOpacity:d,itemBorderImageCardError:`1px solid ${o}`,itemBorderImageCard:`1px solid ${y}`}},uploadLight={name:"Upload",common:commonLight,peers:{Button:buttonLight$1,Progress:progressLight$1},self:self$3};var uploadLight$1=uploadLight;const uploadDark={name:"Upload",common:commonDark,peers:{Button:buttonDark$1,Progress:progressDark$1},self(t){const{errorColor:r}=t,n=self$3(t);return n.itemColorHoverError=changeColor(r,{alpha:.09}),n}};var uploadDark$1=uploadDark;const watermarkDark={name:"Watermark",common:commonDark,self(t){const{fontFamily:r}=t;return{fontFamily:r}}};var watermarkDark$1=watermarkDark;const watermarkLight={name:"Watermark",common:commonLight,self(t){const{fontFamily:r}=t;return{fontFamily:r}}};var watermarkLight$1=watermarkLight;const rowDark={name:"Row",common:commonDark};var rowDark$1=rowDark;const imageDark={name:"Image",common:commonDark,peers:{Tooltip:tooltipDark$1},self:t=>{const{textColor2:r}=t;return{toolbarIconColor:r,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},prevIcon=h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"})),nextIcon=h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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"})),closeIcon=h("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},h("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 style$v=c$1([c$1("body >",[cB("image-container","position: fixed;")]),cB("image-preview-container",`
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
`),cB("image-preview-overlay",`
|
|
z-index: -1;
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, .3);
|
|
`,[fadeInTransition()]),cB("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;
|
|
`,[cB("base-icon",`
|
|
padding: 0 8px;
|
|
font-size: 28px;
|
|
cursor: pointer;
|
|
`),fadeInTransition()]),cB("image-preview-wrapper",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
pointer-events: none;
|
|
`,[fadeInScaleUpTransition()]),cB("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);
|
|
`),cB("image",`
|
|
display: inline-flex;
|
|
max-height: 100%;
|
|
max-width: 100%;
|
|
`,[cNotM("preview-disabled",`
|
|
cursor: pointer;
|
|
`),c$1("img",`
|
|
border-radius: inherit;
|
|
`)])]);const BLEEDING=32;var NImagePreview=defineComponent({name:"ImagePreview",props:Object.assign(Object.assign({},imagePreviewSharedProps),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(t){const r=useTheme("Image","-image",style$v,imageLight,t,toRef(t,"clsPrefix"));let n=null;const o=ref(null),s=ref(null),l=ref(void 0),d=ref(!1),g=ref(!1),{localeRef:y}=useLocale("Image");function b(){const{value:ie}=s;if(!n||!ie)return;const{style:ee}=ie,J=n.getBoundingClientRect(),ce=J.left+J.width/2,fe=J.top+J.height/2;ee.transformOrigin=`${ce}px ${fe}px`}function C(ie){var ee,J;switch(ie.key){case" ":ie.preventDefault();break;case"ArrowLeft":(ee=t.onPrev)===null||ee===void 0||ee.call(t);break;case"ArrowRight":(J=t.onNext)===null||J===void 0||J.call(t);break;case"Escape":he();break}}watch(d,ie=>{ie?on("keydown",document,C):off("keydown",document,C)}),onBeforeUnmount(()=>{off("keydown",document,C)});let x=0,S=0,_=0,w=0,$=0,I=0,B=0,R=0,P=!1;function M(ie){const{clientX:ee,clientY:J}=ie;_=ee-x,w=J-S,beforeNextFrameOnce(pe)}function O(ie){const{mouseUpClientX:ee,mouseUpClientY:J,mouseDownClientX:ce,mouseDownClientY:fe}=ie,ne=ce-ee,le=fe-J,me=`vertical${le>0?"Top":"Bottom"}`,Te=`horizontal${ne>0?"Left":"Right"}`;return{moveVerticalDirection:me,moveHorizontalDirection:Te,deltaHorizontal:ne,deltaVertical:le}}function D(ie){const{value:ee}=o;if(!ee)return{offsetX:0,offsetY:0};const J=ee.getBoundingClientRect(),{moveVerticalDirection:ce,moveHorizontalDirection:fe,deltaHorizontal:ne,deltaVertical:le}=ie||{};let me=0,Te=0;return J.width<=window.innerWidth?me=0:J.left>0?me=(J.width-window.innerWidth)/2:J.right<window.innerWidth?me=-(J.width-window.innerWidth)/2:fe==="horizontalRight"?me=Math.min((J.width-window.innerWidth)/2,$-(ne!=null?ne:0)):me=Math.max(-((J.width-window.innerWidth)/2),$-(ne!=null?ne:0)),J.height<=window.innerHeight?Te=0:J.top>0?Te=(J.height-window.innerHeight)/2:J.bottom<window.innerHeight?Te=-(J.height-window.innerHeight)/2:ce==="verticalBottom"?Te=Math.min((J.height-window.innerHeight)/2,I-(le!=null?le:0)):Te=Math.max(-((J.height-window.innerHeight)/2),I-(le!=null?le:0)),{offsetX:me,offsetY:Te}}function N(ie){off("mousemove",document,M),off("mouseup",document,N);const{clientX:ee,clientY:J}=ie;P=!1;const ce=O({mouseUpClientX:ee,mouseUpClientY:J,mouseDownClientX:B,mouseDownClientY:R}),fe=D(ce);_=fe.offsetX,w=fe.offsetY,pe()}const H=inject(imageContextKey,null);function Q(ie){var ee,J;if((J=(ee=H==null?void 0:H.previewedImgPropsRef.value)===null||ee===void 0?void 0:ee.onMousedown)===null||J===void 0||J.call(ee,ie),ie.button!==0)return;const{clientX:ce,clientY:fe}=ie;P=!0,x=ce-_,S=fe-w,$=_,I=w,B=ce,R=fe,pe(),on("mousemove",document,M),on("mouseup",document,N)}function G(ie){var ee,J;(J=(ee=H==null?void 0:H.previewedImgPropsRef.value)===null||ee===void 0?void 0:ee.onDblclick)===null||J===void 0||J.call(ee,ie);const ce=se();j=j===ce?1:ce,pe()}const K=1.5;let W=0,j=1,Y=0;function q(){j=1,W=0}function X(){var ie;q(),Y=0,(ie=t.onPrev)===null||ie===void 0||ie.call(t)}function re(){var ie;q(),Y=0,(ie=t.onNext)===null||ie===void 0||ie.call(t)}function te(){Y-=90,pe()}function oe(){Y+=90,pe()}function ae(){const{value:ie}=o;if(!ie)return 1;const{innerWidth:ee,innerHeight:J}=window,ce=Math.max(1,ie.naturalHeight/(J-BLEEDING)),fe=Math.max(1,ie.naturalWidth/(ee-BLEEDING));return Math.max(3,ce*2,fe*2)}function se(){const{value:ie}=o;if(!ie)return 1;const{innerWidth:ee,innerHeight:J}=window,ce=ie.naturalHeight/(J-BLEEDING),fe=ie.naturalWidth/(ee-BLEEDING);return ce<1&&fe<1?1:Math.max(ce,fe)}function ue(){const ie=ae();j<ie&&(W+=1,j=Math.min(ie,Math.pow(K,W)),pe())}function Ae(){if(j>.5){const ie=j;W-=1,j=Math.max(.5,Math.pow(K,W));const ee=ie-j;pe(!1);const J=D();j+=ee,pe(!1),j-=ee,_=J.offsetX,w=J.offsetY,pe()}}function pe(ie=!0){var ee;const{value:J}=o;if(!J)return;const{style:ce}=J,fe=normalizeStyle$1((ee=H==null?void 0:H.previewedImgPropsRef.value)===null||ee===void 0?void 0:ee.style);let ne="";if(typeof fe=="string")ne=fe+";";else for(const me in fe)ne+=`${kebabCase$1(me)}: ${fe[me]};`;const le=`transform-origin: center; transform: translateX(${_}px) translateY(${w}px) rotate(${Y}deg) scale(${j});`;P?ce.cssText=ne+"cursor: grabbing; transition: none;"+le:ce.cssText=ne+"cursor: grab;"+le+(ie?"":"transition: none;"),ie||J.offsetHeight}function he(){d.value=!d.value,g.value=!0}function Ce(){j=se(),W=Math.ceil(Math.log(j)/Math.log(K)),_=0,w=0,pe()}const ve={setPreviewSrc:ie=>{l.value=ie},setThumbnailEl:ie=>{n=ie},toggleShow:he};function ye(ie,ee){if(t.showToolbarTooltip){const{value:J}=r;return h(NTooltip,{to:!1,theme:J.peers.Tooltip,themeOverrides:J.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>y.value[ee],trigger:()=>ie})}else return ie}const Be=computed(()=>{const{common:{cubicBezierEaseInOut:ie},self:{toolbarIconColor:ee,toolbarBorderRadius:J,toolbarBoxShadow:ce,toolbarColor:fe}}=r.value;return{"--n-bezier":ie,"--n-toolbar-icon-color":ee,"--n-toolbar-color":fe,"--n-toolbar-border-radius":J,"--n-toolbar-box-shadow":ce}}),{inlineThemeDisabled:Se}=useConfig(),Ee=Se?useThemeClass("image-preview",void 0,Be,t):void 0;return Object.assign({previewRef:o,previewWrapperRef:s,previewSrc:l,show:d,appear:isMounted(),displayed:g,previewedImgProps:H==null?void 0:H.previewedImgPropsRef,handleWheel(ie){ie.preventDefault()},handlePreviewMousedown:Q,handlePreviewDblclick:G,syncTransformOrigin:b,handleAfterLeave:()=>{q(),Y=0,g.value=!1},handleDragStart:ie=>{var ee,J;(J=(ee=H==null?void 0:H.previewedImgPropsRef.value)===null||ee===void 0?void 0:ee.onDragstart)===null||J===void 0||J.call(ee,ie),ie.preventDefault()},zoomIn:ue,zoomOut:Ae,rotateCounterclockwise:te,rotateClockwise:oe,handleSwitchPrev:X,handleSwitchNext:re,withTooltip:ye,resizeToOrignalImageSize:Ce,cssVars:Se?void 0:Be,themeClass:Ee==null?void 0:Ee.themeClass,onRender:Ee==null?void 0:Ee.onRender},ve)},render(){var t,r;const{clsPrefix:n}=this;return h(Fragment,null,(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t),h(LazyTeleport,{show:this.show},{default:()=>{var o;return this.show||this.displayed?((o=this.onRender)===null||o===void 0||o.call(this),withDirectives(h("div",{class:[`${n}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},h(Transition,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?h("div",{class:`${n}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?h(Transition,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:s}=this;return h("div",{class:`${n}-image-preview-toolbar`},this.onPrev?h(Fragment,null,s(h(NBaseIcon,{clsPrefix:n,onClick:this.handleSwitchPrev},{default:()=>prevIcon}),"tipPrevious"),s(h(NBaseIcon,{clsPrefix:n,onClick:this.handleSwitchNext},{default:()=>nextIcon}),"tipNext")):null,s(h(NBaseIcon,{clsPrefix:n,onClick:this.rotateCounterclockwise},{default:()=>h(RotateCounterclockwiseIcon,null)}),"tipCounterclockwise"),s(h(NBaseIcon,{clsPrefix:n,onClick:this.rotateClockwise},{default:()=>h(RotateClockwiseIcon,null)}),"tipClockwise"),s(h(NBaseIcon,{clsPrefix:n,onClick:this.resizeToOrignalImageSize},{default:()=>h(ResizeSmallIcon,null)}),"tipOriginalSize"),s(h(NBaseIcon,{clsPrefix:n,onClick:this.zoomOut},{default:()=>h(ZoomOutIcon,null)}),"tipZoomOut"),s(h(NBaseIcon,{clsPrefix:n,onClick:this.zoomIn},{default:()=>h(ZoomInIcon,null)}),"tipZoomIn"),s(h(NBaseIcon,{clsPrefix:n,onClick:this.toggleShow},{default:()=>closeIcon}),"tipClose"))}}):null,h(Transition,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:s={}}=this;return withDirectives(h("div",{class:`${n}-image-preview-wrapper`,ref:"previewWrapperRef"},h("img",Object.assign({},s,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${n}-image-preview`,s.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[vShow,this.show]])}})),[[zindexable$1,{enabled:this.show}]])):null}}))}});const imageGroupInjectionKey="n-image-group",imageGroupProps=imagePreviewSharedProps;var NImageGroup=defineComponent({name:"ImageGroup",props:imageGroupProps,setup(t){let r;const{mergedClsPrefixRef:n}=useConfig(t),o=`c${createId()}`,s=getCurrentInstance(),l=y=>{var b;r=y,(b=g.value)===null||b===void 0||b.setPreviewSrc(y)};function d(y){if(!(s!=null&&s.proxy))return;const C=s.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${o}]:not([data-error=true])`);if(!C.length)return;const x=Array.from(C).findIndex(S=>S.dataset.previewSrc===r);~x?l(C[(x+y+C.length)%C.length].dataset.previewSrc):l(C[0].dataset.previewSrc)}provide(imageGroupInjectionKey,{mergedClsPrefixRef:n,setPreviewSrc:l,setThumbnailEl:y=>{var b;(b=g.value)===null||b===void 0||b.setThumbnailEl(y)},toggleShow:()=>{var y;(y=g.value)===null||y===void 0||y.toggleShow()},groupId:o});const g=ref(null);return{mergedClsPrefix:n,previewInstRef:g,next:()=>d(1),prev:()=>d(-1)}},render(){return h(NImagePreview,{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 imageProps=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps: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},imagePreviewSharedProps);var NImage=defineComponent({name:"Image",props:imageProps,inheritAttrs:!1,setup(t){const r=ref(null),n=ref(!1),o=ref(null),s=inject(imageGroupInjectionKey,null),{mergedClsPrefixRef:l}=s||useConfig(t),d={click:()=>{if(t.previewDisabled||n.value)return;const b=t.previewSrc||t.src;if(s){s.setPreviewSrc(b),s.setThumbnailEl(r.value),s.toggleShow();return}const{value:C}=o;!C||(C.setPreviewSrc(b),C.setThumbnailEl(r.value),C.toggleShow())}},g=ref(!t.lazy);onMounted(()=>{var b;(b=r.value)===null||b===void 0||b.setAttribute("data-group-id",(s==null?void 0:s.groupId)||"")}),onMounted(()=>{if(isImageSupportNativeLazy)return;let b;const C=watchEffect(()=>{b==null||b(),b=void 0,t.lazy&&(b=observeIntersection(r.value,t.intersectionObserverOptions,g))});onBeforeUnmount(()=>{C(),b==null||b()})}),watchEffect(()=>{var b;t.src,(b=t.imgProps)===null||b===void 0||b.src,n.value=!1});const y=ref(!1);return provide(imageContextKey,{previewedImgPropsRef:toRef(t,"previewedImgProps")}),Object.assign({mergedClsPrefix:l,groupId:s==null?void 0:s.groupId,previewInstRef:o,imageRef:r,showError:n,shouldStartLoading:g,loaded:y,mergedOnClick:b=>{var C,x;d.click(),(x=(C=t.imgProps)===null||C===void 0?void 0:C.onClick)===null||x===void 0||x.call(C,b)},mergedOnError:b=>{if(!g.value)return;n.value=!0;const{onError:C,imgProps:{onError:x}={}}=t;C==null||C(b),x==null||x(b)},mergedOnLoad:b=>{const{onLoad:C,imgProps:{onLoad:x}={}}=t;C==null||C(b),x==null||x(b),y.value=!0}},d)},render(){var t,r;const{mergedClsPrefix:n,imgProps:o={},loaded:s,$attrs:l,lazy:d}=this,g=(r=(t=this.$slots).placeholder)===null||r===void 0?void 0:r.call(t),y=this.src||o.src||"",b=h("img",Object.assign(Object.assign({},o),{ref:"imageRef",width:this.width||o.width,height:this.height||o.height,src:isImageSupportNativeLazy?y:this.showError?this.fallbackSrc:this.shouldStartLoading?y:void 0,alt:this.alt||o.alt,"aria-label":this.alt||o.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:isImageSupportNativeLazy&&d&&!this.intersectionObserverOptions?"lazy":"eager",style:[o.style||"",g&&!s?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return h("div",Object.assign({},l,{role:"none",class:[l.class,`${n}-image`,(this.previewDisabled||this.showError)&&`${n}-image--preview-disabled`]}),this.groupId?b:h(NImagePreview,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>b}),!s&&g)}});function parse$3(t){return t==null||typeof t=="string"&&t.trim()===""?null:Number(t)}function isWipValue(t){return t.includes(".")&&(/^(-)?\d+.*(\.|0)$/.test(t)||/^\.\d+$/.test(t))}function validator$2(t){return t==null?!0:!Number.isNaN(t)}function format$3(t,r){return t==null?"":r===void 0?String(t):t.toFixed(r)}function parseNumber(t){if(t===null)return null;if(typeof t=="number")return t;{const r=Number(t);return Number.isNaN(r)?null:r}}var style$u=c$1([cB("input-number-suffix",`
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
`),cB("input-number-prefix",`
|
|
display: inline-block;
|
|
margin-left: 10px;
|
|
`)]);const HOLDING_CHANGE_THRESHOLD=800,HOLDING_CHANGE_INTERVAL=100,inputNumberProps=Object.assign(Object.assign({},useTheme.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 NInputNumber=defineComponent({name:"InputNumber",props:inputNumberProps,setup(t){const{mergedBorderedRef:r,mergedClsPrefixRef:n,mergedRtlRef:o}=useConfig(t),s=useTheme("InputNumber","-input-number",style$u,inputNumberLight$1,t,n),{localeRef:l}=useLocale("InputNumber"),d=useFormItem(t),{mergedSizeRef:g,mergedDisabledRef:y,mergedStatusRef:b}=d,C=ref(null),x=ref(null),S=ref(null),_=ref(t.defaultValue),w=toRef(t,"value"),$=useMergedState(w,_),I=ref(""),B=ne=>{const le=String(ne).split(".")[1];return le?le.length:0},R=ne=>{const le=[t.min,t.max,t.step,ne].map(me=>me===void 0?0:B(me));return Math.max(...le)},P=useMemo(()=>{const{placeholder:ne}=t;return ne!==void 0?ne:l.value.placeholder}),M=useMemo(()=>{const ne=parseNumber(t.step);return ne!==null?ne===0?1:Math.abs(ne):1}),O=useMemo(()=>{const ne=parseNumber(t.min);return ne!==null?ne:null}),D=useMemo(()=>{const ne=parseNumber(t.max);return ne!==null?ne:null}),N=ne=>{const{value:le}=$;if(ne===le){Q();return}const{"onUpdate:value":me,onUpdateValue:Te,onChange:ge}=t,{nTriggerFormInput:$e,nTriggerFormChange:de}=d;ge&&call(ge,ne),Te&&call(Te,ne),me&&call(me,ne),_.value=ne,$e(),de()},H=({offset:ne,doUpdateIfValid:le,fixPrecision:me,isInputing:Te})=>{const{value:ge}=I;if(Te&&isWipValue(ge))return!1;const $e=(t.parse||parse$3)(ge);if($e===null)return le&&N(null),null;if(validator$2($e)){const de=B($e),{precision:be}=t;if(be!==void 0&&be<de&&!me)return!1;let we=parseFloat(($e+ne).toFixed(be!=null?be:R($e)));if(validator$2(we)){const{value:Me}=D,{value:Ue}=O;if(Me!==null&&we>Me){if(!le||Te)return!1;we=Me}if(Ue!==null&&we<Ue){if(!le||Te)return!1;we=Ue}return t.validator&&!t.validator(we)?!1:(le&&N(we),we)}}return!1},Q=()=>{const{value:ne}=$;if(validator$2(ne)){const{format:le,precision:me}=t;le?I.value=le(ne):ne===null||me===void 0||B(ne)>me?I.value=format$3(ne,void 0):I.value=format$3(ne,me)}else I.value=String(ne)};Q();const G=useMemo(()=>H({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),K=useMemo(()=>{const{value:ne}=$;if(t.validator&&ne===null)return!1;const{value:le}=M;return H({offset:-le,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),W=useMemo(()=>{const{value:ne}=$;if(t.validator&&ne===null)return!1;const{value:le}=M;return H({offset:+le,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function j(ne){const{onFocus:le}=t,{nTriggerFormFocus:me}=d;le&&call(le,ne),me()}function Y(ne){var le,me;if(ne.target===((le=C.value)===null||le===void 0?void 0:le.wrapperElRef))return;const Te=H({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(Te!==!1){const de=(me=C.value)===null||me===void 0?void 0:me.inputElRef;de&&(de.value=String(Te||"")),$.value===Te&&Q()}else Q();const{onBlur:ge}=t,{nTriggerFormBlur:$e}=d;ge&&call(ge,ne),$e(),nextTick(()=>{Q()})}function q(ne){const{onClear:le}=t;le&&call(le,ne)}function X(){const{value:ne}=W;if(!ne){ve();return}const{value:le}=$;if(le===null)t.validator||N(ae());else{const{value:me}=M;H({offset:me,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function re(){const{value:ne}=K;if(!ne){Ce();return}const{value:le}=$;if(le===null)t.validator||N(ae());else{const{value:me}=M;H({offset:-me,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}const te=j,oe=Y;function ae(){if(t.validator)return null;const{value:ne}=O,{value:le}=D;return ne!==null?Math.max(0,ne):le!==null?Math.min(0,le):0}function se(ne){q(ne),N(null)}function ue(ne){var le,me,Te;!((le=S.value)===null||le===void 0)&&le.$el.contains(ne.target)&&ne.preventDefault(),!((me=x.value)===null||me===void 0)&&me.$el.contains(ne.target)&&ne.preventDefault(),(Te=C.value)===null||Te===void 0||Te.activate()}let Ae=null,pe=null,he=null;function Ce(){he&&(window.clearTimeout(he),he=null),Ae&&(window.clearInterval(Ae),Ae=null)}function ve(){Be&&(window.clearTimeout(Be),Be=null),pe&&(window.clearInterval(pe),pe=null)}function ye(){Ce(),he=window.setTimeout(()=>{Ae=window.setInterval(()=>{re()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,Ce,{once:!0})}let Be=null;function Se(){ve(),Be=window.setTimeout(()=>{pe=window.setInterval(()=>{X()},HOLDING_CHANGE_INTERVAL)},HOLDING_CHANGE_THRESHOLD),on("mouseup",document,ve,{once:!0})}const Ee=()=>{pe||X()},ie=()=>{Ae||re()};function ee(ne){var le,me;if(ne.key==="Enter"){if(ne.target===((le=C.value)===null||le===void 0?void 0:le.wrapperElRef))return;H({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((me=C.value)===null||me===void 0||me.deactivate())}else if(ne.key==="ArrowUp"){if(!W.value||t.keyboard.ArrowUp===!1)return;ne.preventDefault(),H({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&X()}else if(ne.key==="ArrowDown"){if(!K.value||t.keyboard.ArrowDown===!1)return;ne.preventDefault(),H({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&re()}}function J(ne){I.value=ne,t.updateValueOnInput&&!t.format&&!t.parse&&t.precision===void 0&&H({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}watch($,()=>{Q()});const ce={focus:()=>{var ne;return(ne=C.value)===null||ne===void 0?void 0:ne.focus()},blur:()=>{var ne;return(ne=C.value)===null||ne===void 0?void 0:ne.blur()}},fe=useRtl("InputNumber",o,n);return Object.assign(Object.assign({},ce),{rtlEnabled:fe,inputInstRef:C,minusButtonInstRef:x,addButtonInstRef:S,mergedClsPrefix:n,mergedBordered:r,uncontrolledValue:_,mergedValue:$,mergedPlaceholder:P,displayedValueInvalid:G,mergedSize:g,mergedDisabled:y,displayedValue:I,addable:W,minusable:K,mergedStatus:b,handleFocus:te,handleBlur:oe,handleClear:se,handleMouseDown:ue,handleAddClick:Ee,handleMinusClick:ie,handleAddMousedown:Se,handleMinusMousedown:ye,handleKeyDown:ee,handleUpdateDisplayedValue:J,mergedTheme:s,inputThemeOverrides:{paddingSmall:"0 8px 0 10px",paddingMedium:"0 8px 0 12px",paddingLarge:"0 8px 0 14px"},buttonThemeOverrides:computed(()=>{const{self:{iconColorDisabled:ne}}=s.value,[le,me,Te,ge]=rgba(ne);return{textColorTextDisabled:`rgb(${le}, ${me}, ${Te})`,opacityDisabled:`${ge}`}})})},render(){const{mergedClsPrefix:t,$slots:r}=this,n=()=>h(XButton,{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:()=>resolveSlot(r["minus-icon"],()=>[h(NBaseIcon,{clsPrefix:t},{default:()=>h(RemoveIcon,null)})])}),o=()=>h(XButton,{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:()=>resolveSlot(r["add-icon"],()=>[h(NBaseIcon,{clsPrefix:t},{default:()=>h(AddIcon,null)})])});return h("div",{class:[`${t}-input-number`,this.rtlEnabled&&`${t}-input-number--rtl`]},h(NInput,{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 s;return this.showButton&&this.buttonPlacement==="both"?[n(),resolveWrappedSlot(r.prefix,l=>l?h("span",{class:`${t}-input-number-prefix`},l):null)]:(s=r.prefix)===null||s===void 0?void 0:s.call(r)},suffix:()=>{var s;return this.showButton?[resolveWrappedSlot(r.suffix,l=>l?h("span",{class:`${t}-input-number-suffix`},l):null),this.buttonPlacement==="right"?n():null,o()]:(s=r.suffix)===null||s===void 0?void 0:s.call(r)}}))}});const layoutSiderInjectionKey="n-layout-sider",positionProp={type:String,default:"static"};var style$t=cB("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);
|
|
`,[cB("layout-scroll-container",`
|
|
overflow-x: hidden;
|
|
box-sizing: border-box;
|
|
height: 100%;
|
|
`),cM("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]);const layoutProps={embedded:Boolean,position:positionProp,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},layoutInjectionKey="n-layout";function createLayoutComponent(t){return defineComponent({name:t?"LayoutContent":"Layout",props:Object.assign(Object.assign({},useTheme.props),layoutProps),setup(r){const n=ref(null),o=ref(null),{mergedClsPrefixRef:s,inlineThemeDisabled:l}=useConfig(r),d=useTheme("Layout","-layout",style$t,layoutLight$1,r,s);function g($,I){if(r.nativeScrollbar){const{value:B}=n;B&&(I===void 0?B.scrollTo($):B.scrollTo($,I))}else{const{value:B}=o;B&&B.scrollTo($,I)}}provide(layoutInjectionKey,r);let y=0,b=0;const C=$=>{var I;const B=$.target;y=B.scrollLeft,b=B.scrollTop,(I=r.onScroll)===null||I===void 0||I.call(r,$)};useReactivated(()=>{if(r.nativeScrollbar){const $=n.value;$&&($.scrollTop=b,$.scrollLeft=y)}});const x={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},S={scrollTo:g},_=computed(()=>{const{common:{cubicBezierEaseInOut:$},self:I}=d.value;return{"--n-bezier":$,"--n-color":r.embedded?I.colorEmbedded:I.color,"--n-text-color":I.textColor}}),w=l?useThemeClass("layout",computed(()=>r.embedded?"e":""),_,r):void 0;return Object.assign({mergedClsPrefix:s,scrollableElRef:n,scrollbarInstRef:o,hasSiderStyle:x,mergedTheme:d,handleNativeElScroll:C,cssVars:l?void 0:_,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender},S)},render(){var r;const{mergedClsPrefix:n,hasSider:o}=this;(r=this.onRender)===null||r===void 0||r.call(this);const s=o?this.hasSiderStyle:void 0,l=[this.themeClass,t&&`${n}-layout-content`,`${n}-layout`,`${n}-layout--${this.position}-positioned`];return h("div",{class:l,style:this.cssVars},this.nativeScrollbar?h("div",{ref:"scrollableElRef",class:`${n}-layout-scroll-container`,style:[this.contentStyle,s],onScroll:this.handleNativeElScroll},this.$slots):h(NScrollbar$1,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentStyle:[this.contentStyle,s]}),this.$slots))}})}var NLayout=createLayoutComponent(!1),NLayoutContent=createLayoutComponent(!0),style$s=cB("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);
|
|
`,[cM("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
`),cM("bordered",`
|
|
border-bottom: solid 1px var(--n-border-color);
|
|
`)]);const headerProps$1={position:positionProp,inverted:Boolean,bordered:{type:Boolean,default:!1}};var NLayoutHeader=defineComponent({name:"LayoutHeader",props:Object.assign(Object.assign({},useTheme.props),headerProps$1),setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Layout","-layout-header",style$s,layoutLight$1,t,r),s=computed(()=>{const{common:{cubicBezierEaseInOut:d},self:g}=o.value,y={"--n-bezier":d};return t.inverted?(y["--n-color"]=g.headerColorInverted,y["--n-text-color"]=g.textColorInverted,y["--n-border-color"]=g.headerBorderColorInverted):(y["--n-color"]=g.headerColor,y["--n-text-color"]=g.textColor,y["--n-border-color"]=g.headerBorderColor),y}),l=n?useThemeClass("layout-header",computed(()=>t.inverted?"a":"b"),s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{mergedClsPrefix:r}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${r}-layout-header`,this.themeClass,this.position&&`${r}-layout-header--${this.position}-positioned`,this.bordered&&`${r}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),style$r=cB("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;
|
|
`,[cM("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
`),cM("bordered",`
|
|
border-top: solid 1px var(--n-border-color);
|
|
`)]);const layoutFooterProps=Object.assign(Object.assign({},useTheme.props),{inverted:Boolean,position:positionProp,bordered:Boolean});var NLayoutFooter=defineComponent({name:"LayoutFooter",props:layoutFooterProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Layout","-layout-footer",style$r,layoutLight$1,t,r),s=computed(()=>{const{common:{cubicBezierEaseInOut:d},self:g}=o.value,y={"--n-bezier":d};return t.inverted?(y["--n-color"]=g.footerColorInverted,y["--n-text-color"]=g.textColorInverted,y["--n-border-color"]=g.footerBorderColorInverted):(y["--n-color"]=g.footerColor,y["--n-text-color"]=g.textColor,y["--n-border-color"]=g.footerBorderColor),y}),l=n?useThemeClass("layout-footer",computed(()=>t.inverted?"a":"b"),s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{mergedClsPrefix:r}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${r}-layout-footer`,this.themeClass,this.position&&`${r}-layout-footer--${this.position}-positioned`,this.bordered&&`${r}-layout-footer--bordered`],style:this.cssVars},this.$slots)}}),style$q=cB("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;
|
|
`,[cM("bordered",[cE("border",`
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
background-color: var(--n-border-color);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`)]),cE("left-placement",[cM("bordered",[cE("border",`
|
|
right: 0;
|
|
`)])]),cM("right-placement",`
|
|
justify-content: flex-start;
|
|
`,[cM("bordered",[cE("border",`
|
|
left: 0;
|
|
`)]),cM("collapsed",[cB("layout-toggle-button",[cB("base-icon",`
|
|
transform: rotate(180deg);
|
|
`)]),cB("layout-toggle-bar",[c$1("&:hover",[cE("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),cE("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),cB("layout-toggle-button",`
|
|
left: 0;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[cB("base-icon",`
|
|
transform: rotate(0);
|
|
`)]),cB("layout-toggle-bar",`
|
|
left: -28px;
|
|
transform: rotate(180deg);
|
|
`,[c$1("&:hover",[cE("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),cE("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),cM("collapsed",[cB("layout-toggle-bar",[c$1("&:hover",[cE("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),cE("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),cB("layout-toggle-button",[cB("base-icon",`
|
|
transform: rotate(0);
|
|
`)])]),cB("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;
|
|
`,[cB("base-icon",`
|
|
transition: transform .3s var(--n-bezier);
|
|
transform: rotate(180deg);
|
|
`)]),cB("layout-toggle-bar",`
|
|
cursor: pointer;
|
|
height: 72px;
|
|
width: 32px;
|
|
position: absolute;
|
|
top: calc(50% - 36px);
|
|
right: -28px;
|
|
`,[cE("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);
|
|
`),cE("bottom",`
|
|
position: absolute;
|
|
top: 34px;
|
|
`),c$1("&:hover",[cE("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),cE("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),cE("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),c$1("&:hover",[cE("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),cE("border",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 1px;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),cB("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%;
|
|
`),cM("show-content",[cB("layout-sider-scroll-container",{opacity:1})]),cM("absolute-positioned",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),ToggleButton=defineComponent({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:t}=this;return h("div",{class:`${t}-layout-toggle-button`,onClick:this.onClick},h(NBaseIcon,{clsPrefix:t},{default:()=>h(ChevronRightIcon,null)}))}}),ToggleBar=defineComponent({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:t}=this;return h("div",{onClick:this.onClick,class:`${t}-layout-toggle-bar`},h("div",{class:`${t}-layout-toggle-bar__top`}),h("div",{class:`${t}-layout-toggle-bar__bottom`}))}});const layoutSiderProps={position:positionProp,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 NLayoutSider=defineComponent({name:"LayoutSider",props:Object.assign(Object.assign({},useTheme.props),layoutSiderProps),setup(t){const r=inject(layoutInjectionKey),n=ref(null),o=ref(null),s=computed(()=>formatLength(y.value?t.collapsedWidth:t.width)),l=computed(()=>t.collapseMode!=="transform"?{}:{minWidth:formatLength(t.width)}),d=computed(()=>r?r.siderPlacement:"left"),g=ref(t.defaultCollapsed),y=useMergedState(toRef(t,"collapsed"),g);function b(O,D){if(t.nativeScrollbar){const{value:N}=n;N&&(D===void 0?N.scrollTo(O):N.scrollTo(O,D))}else{const{value:N}=o;N&&N.scrollTo(O,D)}}function C(){const{"onUpdate:collapsed":O,onUpdateCollapsed:D,onExpand:N,onCollapse:H}=t,{value:Q}=y;D&&call(D,!Q),O&&call(O,!Q),g.value=!Q,Q?N&&call(N):H&&call(H)}let x=0,S=0;const _=O=>{var D;const N=O.target;x=N.scrollLeft,S=N.scrollTop,(D=t.onScroll)===null||D===void 0||D.call(t,O)};useReactivated(()=>{if(t.nativeScrollbar){const O=n.value;O&&(O.scrollTop=S,O.scrollLeft=x)}}),provide(layoutSiderInjectionKey,{collapsedRef:y,collapseModeRef:toRef(t,"collapseMode")});const{mergedClsPrefixRef:w,inlineThemeDisabled:$}=useConfig(t),I=useTheme("Layout","-layout-sider",style$q,layoutLight$1,t,w);function B(O){var D,N;O.propertyName==="max-width"&&(y.value?(D=t.onAfterLeave)===null||D===void 0||D.call(t):(N=t.onAfterEnter)===null||N===void 0||N.call(t))}const R={scrollTo:b},P=computed(()=>{const{common:{cubicBezierEaseInOut:O},self:D}=I.value,{siderToggleButtonColor:N,siderToggleButtonBorder:H,siderToggleBarColor:Q,siderToggleBarColorHover:G}=D,K={"--n-bezier":O,"--n-toggle-button-color":N,"--n-toggle-button-border":H,"--n-toggle-bar-color":Q,"--n-toggle-bar-color-hover":G};return t.inverted?(K["--n-color"]=D.siderColorInverted,K["--n-text-color"]=D.textColorInverted,K["--n-border-color"]=D.siderBorderColorInverted,K["--n-toggle-button-icon-color"]=D.siderToggleButtonIconColorInverted,K.__invertScrollbar=D.__invertScrollbar):(K["--n-color"]=D.siderColor,K["--n-text-color"]=D.textColor,K["--n-border-color"]=D.siderBorderColor,K["--n-toggle-button-icon-color"]=D.siderToggleButtonIconColor),K}),M=$?useThemeClass("layout-sider",computed(()=>t.inverted?"a":"b"),P,t):void 0;return Object.assign({scrollableElRef:n,scrollbarInstRef:o,mergedClsPrefix:w,mergedTheme:I,styleMaxWidth:s,mergedCollapsed:y,scrollContainerStyle:l,siderPlacement:d,handleNativeElScroll:_,handleTransitionend:B,handleTriggerClick:C,inlineThemeDisabled:$,cssVars:P,themeClass:M==null?void 0:M.themeClass,onRender:M==null?void 0:M.onRender},R)},render(){var t;const{mergedClsPrefix:r,mergedCollapsed:n,showTrigger:o}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("aside",{class:[`${r}-layout-sider`,this.themeClass,`${r}-layout-sider--${this.position}-positioned`,`${r}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${r}-layout-sider--bordered`,n&&`${r}-layout-sider--collapsed`,(!n||this.showCollapsedContent)&&`${r}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:formatLength(this.width)}]},this.nativeScrollbar?h("div",{class:`${r}-layout-sider-scroll-container`,onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):h(NScrollbar$1,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),o?o==="bar"?h(ToggleBar,{clsPrefix:r,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):h(ToggleButton,{clsPrefix:r,style:n?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?h("div",{class:`${r}-layout-sider__border`}):null)}}),commonVariables={extraFontSize:"12px",width:"440px"};const transferDark={name:"Transfer",common:commonDark,peers:{Checkbox:checkboxDark$1,Scrollbar:scrollbarDark$1,Input:inputDark$1,Empty:emptyDark$1,Button:buttonDark$1},self(t){const{iconColorDisabled:r,iconColor:n,fontWeight:o,fontSizeLarge:s,fontSizeMedium:l,fontSizeSmall:d,heightLarge:g,heightMedium:y,heightSmall:b,borderRadius:C,inputColor:x,tableHeaderColor:S,textColor1:_,textColorDisabled:w,textColor2:$,hoverColor:I}=t;return Object.assign(Object.assign({},commonVariables),{itemHeightSmall:b,itemHeightMedium:y,itemHeightLarge:g,fontSizeSmall:d,fontSizeMedium:l,fontSizeLarge:s,borderRadius:C,borderColor:"#0000",listColor:x,headerColor:S,titleTextColor:_,titleTextColorDisabled:w,extraTextColor:$,filterDividerColor:"#0000",itemTextColor:$,itemTextColorDisabled:w,itemColorPending:I,titleFontWeight:o,iconColor:n,iconColorDisabled:r})}};var legacyTransferDark=transferDark,style$p=c$1([cB("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);
|
|
`,[cM("show-divider",[cB("list-item",[c$1("&:not(:last-child)",[cE("divider",`
|
|
background-color: var(--n-merged-border-color);
|
|
`)])])]),cM("clickable",[cB("list-item",`
|
|
cursor: pointer;
|
|
`)]),cM("bordered",`
|
|
border: 1px solid var(--n-merged-border-color);
|
|
border-radius: var(--n-border-radius);
|
|
`),cM("hoverable",[cB("list-item",`
|
|
border-radius: var(--n-border-radius);
|
|
`,[c$1("&:hover",`
|
|
background-color: var(--n-merged-color-hover);
|
|
`,[cE("divider",`
|
|
background-color: transparent;
|
|
`)])])]),cM("bordered, hoverable",[cB("list-item",`
|
|
padding: 12px 20px;
|
|
`),cE("header, footer",`
|
|
padding: 12px 20px;
|
|
`)]),cE("header, footer",`
|
|
padding: 12px 0;
|
|
box-sizing: border-box;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[c$1("&:not(:last-child)",`
|
|
border-bottom: 1px solid var(--n-merged-border-color);
|
|
`)]),cB("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);
|
|
`,[cE("prefix",`
|
|
margin-right: 20px;
|
|
flex: 0;
|
|
`),cE("suffix",`
|
|
margin-left: 20px;
|
|
flex: 0;
|
|
`),cE("main",`
|
|
flex: 1;
|
|
`),cE("divider",`
|
|
height: 1px;
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background-color: transparent;
|
|
transition: background-color .3s var(--n-bezier);
|
|
pointer-events: none;
|
|
`)])]),insideModal(cB("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);
|
|
`)),insidePopover(cB("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 listProps=Object.assign(Object.assign({},useTheme.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),listInjectionKey="n-list";var NList=defineComponent({name:"List",props:listProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=useConfig(t),s=useRtl("List",o,r),l=useTheme("List","-list",style$p,listLight$1,t,r);provide(listInjectionKey,{showDividerRef:toRef(t,"showDivider"),mergedClsPrefixRef:r});const d=computed(()=>{const{common:{cubicBezierEaseInOut:y},self:{fontSize:b,textColor:C,color:x,colorModal:S,colorPopover:_,borderColor:w,borderColorModal:$,borderColorPopover:I,borderRadius:B,colorHover:R,colorHoverModal:P,colorHoverPopover:M}}=l.value;return{"--n-font-size":b,"--n-bezier":y,"--n-text-color":C,"--n-color":x,"--n-border-radius":B,"--n-border-color":w,"--n-border-color-modal":$,"--n-border-color-popover":I,"--n-color-modal":S,"--n-color-popover":_,"--n-color-hover":R,"--n-color-hover-modal":P,"--n-color-hover-popover":M}}),g=n?useThemeClass("list",void 0,d,t):void 0;return{mergedClsPrefix:r,rtlEnabled:s,cssVars:n?void 0:d,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){var t;const{$slots:r,mergedClsPrefix:n,onRender:o}=this;return o==null||o(),h("ul",{class:[`${n}-list`,this.rtlEnabled&&`${n}-list--rtl`,this.bordered&&`${n}-list--bordered`,this.showDivider&&`${n}-list--show-divider`,this.hoverable&&`${n}-list--hoverable`,this.clickable&&`${n}-list--clickable`,this.themeClass],style:this.cssVars},r.header?h("div",{class:`${n}-list__header`},r.header()):null,(t=r.default)===null||t===void 0?void 0:t.call(r),r.footer?h("div",{class:`${n}-list__footer`},r.footer()):null)}}),NListItem=defineComponent({name:"ListItem",setup(){const t=inject(listInjectionKey,null);return t||throwError$1("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:t.showDividerRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){const{$slots:t,mergedClsPrefix:r}=this;return h("li",{class:`${r}-list-item`},t.prefix?h("div",{class:`${r}-list-item__prefix`},t.prefix()):null,t.default?h("div",{class:`${r}-list-item__main`},t):null,t.suffix?h("div",{class:`${r}-list-item__suffix`},t.suffix()):null,this.showDivider&&h("div",{class:`${r}-list-item__divider`}))}});const loadingBarProviderInjectionKey="n-loading-bar",loadingBarApiInjectionKey="n-loading-bar-api";var style$o=cB("loading-bar-container",`
|
|
z-index: 5999;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
`,[fadeInTransition({enterDuration:"0.3s",leaveDuration:"0.8s"}),cB("loading-bar",`
|
|
width: 100%;
|
|
transition:
|
|
max-width 4s linear,
|
|
background .2s linear;
|
|
height: var(--n-height);
|
|
`,[cM("starting",`
|
|
background: var(--n-color-loading);
|
|
`),cM("finishing",`
|
|
background: var(--n-color-loading);
|
|
transition:
|
|
max-width .2s linear,
|
|
background .2s linear;
|
|
`),cM("error",`
|
|
background: var(--n-color-error);
|
|
transition:
|
|
max-width .2s linear,
|
|
background .2s linear;
|
|
`)])]),__awaiter$5=globalThis&&globalThis.__awaiter||function(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})};function createClassName(t,r){return`${r}-loading-bar ${r}-loading-bar--${t}`}var NLoadingBar=defineComponent({name:"LoadingBar",props:{containerStyle:[String,Object]},setup(){const{inlineThemeDisabled:t}=useConfig(),{props:r,mergedClsPrefixRef:n}=inject(loadingBarProviderInjectionKey),o=ref(null),s=ref(!1),l=ref(!1),d=ref(!1),g=ref(!1);let y=!1;const b=ref(!1),C=computed(()=>{const{loadingBarStyle:O}=r;return O?O[b.value?"error":"loading"]:""});function x(){return __awaiter$5(this,void 0,void 0,function*(){s.value=!1,d.value=!1,y=!1,b.value=!1,g.value=!0,yield nextTick(),g.value=!1})}function S(O=0,D=80,N="starting"){return __awaiter$5(this,void 0,void 0,function*(){yield x(),d.value=!0,l.value=!0,yield nextTick();const H=o.value;!H||(H.style.maxWidth=`${O}%`,H.style.transition="none",H.offsetWidth,H.className=createClassName(N,n.value),H.style.transition="",H.style.maxWidth=`${D}%`)})}function _(){if(y||b.value||!d.value)return;y=!0;const O=o.value;!O||(O.className=createClassName("finishing",n.value),O.style.maxWidth="100%",O.offsetWidth,d.value=!1)}function w(){if(!(y||b.value))if(!d.value)S(100,100,"error").then(()=>{b.value=!0;const O=o.value;!O||(O.className=createClassName("error",n.value),O.offsetWidth,d.value=!1)});else{b.value=!0;const O=o.value;if(!O)return;O.className=createClassName("error",n.value),O.style.maxWidth="100%",O.offsetWidth,d.value=!1}}function $(){s.value=!0}function I(){s.value=!1}function B(){return __awaiter$5(this,void 0,void 0,function*(){yield x()})}const R=useTheme("LoadingBar","-loading-bar",style$o,loadingBarLight$1,r,n),P=computed(()=>{const{self:{height:O,colorError:D,colorLoading:N}}=R.value;return{"--n-height":O,"--n-color-loading":N,"--n-color-error":D}}),M=t?useThemeClass("loading-bar",void 0,P,r):void 0;return{mergedClsPrefix:n,loadingBarRef:o,started:l,loading:d,entering:s,transitionDisabled:g,start:S,error:w,finish:_,handleEnter:$,handleAfterEnter:I,handleAfterLeave:B,mergedLoadingBarStyle:C,cssVars:t?void 0:P,themeClass:M==null?void 0:M.themeClass,onRender:M==null?void 0:M.onRender}},render(){if(!this.started)return null;const{mergedClsPrefix:t}=this;return h(Transition,{name:"fade-in-transition",appear:!0,onEnter:this.handleEnter,onAfterEnter:this.handleAfterEnter,onAfterLeave:this.handleAfterLeave,css:!this.transitionDisabled},{default:()=>{var r;return(r=this.onRender)===null||r===void 0||r.call(this),withDirectives(h("div",{class:[`${t}-loading-bar-container`,this.themeClass],style:this.containerStyle},h("div",{ref:"loadingBarRef",class:[`${t}-loading-bar`],style:[this.cssVars,this.mergedLoadingBarStyle]})),[[vShow,this.loading||!this.loading&&this.entering]])}})}});const loadingBarProviderProps=Object.assign(Object.assign({},useTheme.props),{to:{type:[String,Object,Boolean],default:void 0},containerStyle:[String,Object],loadingBarStyle:{type:Object}});var NLoadingBarProvider=defineComponent({name:"LoadingBarProvider",props:loadingBarProviderProps,setup(t){const r=isMounted(),n=ref(null),o={start(){var l;r.value?(l=n.value)===null||l===void 0||l.start():nextTick(()=>{var d;(d=n.value)===null||d===void 0||d.start()})},error(){var l;r.value?(l=n.value)===null||l===void 0||l.error():nextTick(()=>{var d;(d=n.value)===null||d===void 0||d.error()})},finish(){var l;r.value?(l=n.value)===null||l===void 0||l.finish():nextTick(()=>{var d;(d=n.value)===null||d===void 0||d.finish()})}},{mergedClsPrefixRef:s}=useConfig(t);return provide(loadingBarApiInjectionKey,o),provide(loadingBarProviderInjectionKey,{props:t,mergedClsPrefixRef:s}),Object.assign(o,{loadingBarRef:n})},render(){var t,r;return h(Fragment,null,h(Teleport,{disabled:this.to===!1,to:this.to||"body"},h(NLoadingBar,{ref:"loadingBarRef",containerStyle:this.containerStyle})),(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t))}});function useLoadingBar(){const t=inject(loadingBarApiInjectionKey,null);return t===null&&throwError$1("use-loading-bar","No outer <n-loading-bar-provider /> founded."),t}const menuInjectionKey="n-menu",submenuInjectionKey="n-submenu",menuItemGroupInjectionKey="n-menu-item-group",ICON_MARGIN_RIGHT=8;function useMenuChild(t){const r=inject(menuInjectionKey),{props:n,mergedCollapsedRef:o}=r,s=inject(submenuInjectionKey,null),l=inject(menuItemGroupInjectionKey,null),d=computed(()=>n.mode==="horizontal"),g=computed(()=>d.value?n.dropdownPlacement:"tmNodes"in t?"right-start":"right"),y=computed(()=>{var S;return Math.max((S=n.collapsedIconSize)!==null&&S!==void 0?S:n.iconSize,n.iconSize)}),b=computed(()=>{var S;return!d.value&&t.root&&o.value&&(S=n.collapsedIconSize)!==null&&S!==void 0?S:n.iconSize}),C=computed(()=>{if(d.value)return;const{collapsedWidth:S,indent:_,rootIndent:w}=n,{root:$,isGroup:I}=t,B=w===void 0?_:w;if($)return o.value?S/2-y.value/2:B;if(l)return _/2+l.paddingLeftRef.value;if(s)return(I?_/2:_)+s.paddingLeftRef.value}),x=computed(()=>{const{collapsedWidth:S,indent:_,rootIndent:w}=n,{value:$}=y,{root:I}=t;return d.value||!I||!o.value?ICON_MARGIN_RIGHT:(w===void 0?_:w)+$+ICON_MARGIN_RIGHT-(S+$)/2});return{dropdownPlacement:g,activeIconSize:b,maxIconSize:y,paddingLeft:C,iconMarginRight:x,NMenu:r,NSubmenu:s}}const useMenuChildProps={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},menuItemGroupProps=Object.assign(Object.assign({},useMenuChildProps),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),NMenuOptionGroup=defineComponent({name:"MenuOptionGroup",props:menuItemGroupProps,setup(t){provide(submenuInjectionKey,null);const r=useMenuChild(t);provide(menuItemGroupInjectionKey,{paddingLeftRef:r.paddingLeft});const{mergedClsPrefixRef:n,props:o}=inject(menuInjectionKey);return function(){const{value:s}=n,l=r.paddingLeft.value,{nodeProps:d}=o,g=d==null?void 0:d(t.tmNode.rawNode);return h("div",{class:`${s}-menu-item-group`,role:"group"},h("div",Object.assign({},g,{class:[`${s}-menu-item-group-title`,g==null?void 0:g.class],style:[(g==null?void 0:g.style)||"",l!==void 0?`padding-left: ${l}px;`:""]}),render$2(t.title),t.extra?h(Fragment,null," ",render$2(t.extra)):null),h("div",null,t.tmNodes.map(y=>itemRenderer(y,o))))}}});var NMenuOptionContent=defineComponent({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(t){const{props:r}=inject(menuInjectionKey);return{menuProps:r,style:computed(()=>{const{paddingLeft:n}=t;return{paddingLeft:n&&`${n}px`}}),iconStyle:computed(()=>{const{maxIconSize:n,activeIconSize:o,iconMarginRight:s}=t;return{width:`${n}px`,height:`${n}px`,fontSize:`${o}px`,marginRight:`${s}px`}})}},render(){const{clsPrefix:t,tmNode:r,menuProps:{renderIcon:n,renderLabel:o,renderExtra:s,expandIcon:l}}=this,d=n?n(r.rawNode):render$2(this.icon);return h("div",{onClick:g=>{var y;(y=this.onClick)===null||y===void 0||y.call(this,g)},role:"none",class:[`${t}-menu-item-content`,{[`${t}-menu-item-content--selected`]:this.selected,[`${t}-menu-item-content--collapsed`]:this.collapsed,[`${t}-menu-item-content--child-active`]:this.childActive,[`${t}-menu-item-content--disabled`]:this.disabled,[`${t}-menu-item-content--hover`]:this.hover}],style:this.style},d&&h("div",{class:`${t}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[d]),h("div",{class:`${t}-menu-item-content-header`,role:"none"},o?o(r.rawNode):render$2(this.title),this.extra||s?h("span",{class:`${t}-menu-item-content-header__extra`}," ",s?s(r.rawNode):render$2(this.extra)):null),this.showArrow?h(NBaseIcon,{ariaHidden:!0,class:`${t}-menu-item-content__arrow`,clsPrefix:t},{default:()=>l?l(r.rawNode):h(ChevronDownFilledIcon,null)}):null)}});const submenuProps=Object.assign(Object.assign({},useMenuChildProps),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:{type:Boolean,default:!1},icon:Function,onClick:Function}),NSubmenu=defineComponent({name:"Submenu",props:submenuProps,setup(t){const r=useMenuChild(t),{NMenu:n,NSubmenu:o}=r,{props:s,mergedCollapsedRef:l,mergedThemeRef:d}=n,g=computed(()=>{const{disabled:S}=t;return o!=null&&o.mergedDisabledRef.value||s.disabled?!0:S}),y=ref(!1);provide(submenuInjectionKey,{paddingLeftRef:r.paddingLeft,mergedDisabledRef:g}),provide(menuItemGroupInjectionKey,null);function b(){const{onClick:S}=t;S&&S()}function C(){g.value||(l.value||n.toggleExpand(t.internalKey),b())}function x(S){y.value=S}return{menuProps:s,mergedTheme:d,doSelect:n.doSelect,inverted:n.invertedRef,isHorizontal:n.isHorizontalRef,mergedClsPrefix:n.mergedClsPrefixRef,maxIconSize:r.maxIconSize,activeIconSize:r.activeIconSize,iconMarginRight:r.iconMarginRight,dropdownPlacement:r.dropdownPlacement,dropdownShow:y,paddingLeft:r.paddingLeft,mergedDisabled:g,mergedValue:n.mergedValueRef,childActive:useMemo(()=>n.activePathRef.value.includes(t.internalKey)),collapsed:computed(()=>s.mode==="horizontal"?!1:l.value?!0:!n.mergedExpandedKeysRef.value.includes(t.internalKey)),dropdownEnabled:computed(()=>!g.value&&(s.mode==="horizontal"||l.value)),handlePopoverShowChange:x,handleClick:C}},render(){var t;const{mergedClsPrefix:r,menuProps:{renderIcon:n,renderLabel:o}}=this,s=()=>{const{isHorizontal:d,paddingLeft:g,collapsed:y,mergedDisabled:b,maxIconSize:C,activeIconSize:x,title:S,childActive:_,icon:w,handleClick:$,menuProps:{nodeProps:I},dropdownShow:B,iconMarginRight:R,tmNode:P,mergedClsPrefix:M}=this,O=I==null?void 0:I(P.rawNode);return h("div",Object.assign({},O,{class:[`${M}-menu-item`,O==null?void 0:O.class],role:"menuitem"}),h(NMenuOptionContent,{tmNode:P,paddingLeft:g,collapsed:y,disabled:b,iconMarginRight:R,maxIconSize:C,activeIconSize:x,title:S,extra:this.extra,showArrow:!d,childActive:_,clsPrefix:M,icon:w,hover:B,onClick:$}))},l=()=>h(NFadeInExpandTransition,null,{default:()=>{const{tmNodes:d,collapsed:g}=this;return g?null:h("div",{class:`${r}-submenu-children`,role:"menu"},d.map(y=>itemRenderer(y,this.menuProps)))}});return this.root?h(NDropdown,Object.assign({size:"large",trigger:"hover"},(t=this.menuProps)===null||t===void 0?void 0:t.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,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:n,renderLabel:o}),{default:()=>h("div",{class:`${r}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},s(),this.isHorizontal?null:l())}):h("div",{class:`${r}-submenu`,role:"menuitem","aria-expanded":!this.collapsed},s(),l())}}),menuItemProps=Object.assign(Object.assign({},useMenuChildProps),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),NMenuOption=defineComponent({name:"MenuOption",props:menuItemProps,setup(t){const r=useMenuChild(t),{NSubmenu:n,NMenu:o}=r,{props:s,mergedClsPrefixRef:l,mergedCollapsedRef:d}=o,g=n?n.mergedDisabledRef:{value:!1},y=computed(()=>g.value||t.disabled);function b(x){const{onClick:S}=t;S&&S(x)}function C(x){y.value||(o.doSelect(t.internalKey,t.tmNode.rawNode),b(x))}return{mergedClsPrefix:l,dropdownPlacement:r.dropdownPlacement,paddingLeft:r.paddingLeft,iconMarginRight:r.iconMarginRight,maxIconSize:r.maxIconSize,activeIconSize:r.activeIconSize,mergedTheme:o.mergedThemeRef,menuProps:s,dropdownEnabled:useMemo(()=>t.root&&d.value&&s.mode!=="horizontal"&&!y.value),selected:useMemo(()=>o.mergedValueRef.value===t.internalKey),mergedDisabled:y,handleClick:C}},render(){const{mergedClsPrefix:t,mergedTheme:r,tmNode:n,menuProps:{renderLabel:o,nodeProps:s}}=this,l=s==null?void 0:s(n.rawNode);return h("div",Object.assign({},l,{role:"menuitem",class:[`${t}-menu-item`,l==null?void 0:l.class]}),h(NTooltip,{theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>o?o(n.rawNode):render$2(this.title),trigger:()=>h(NMenuOptionContent,{tmNode:n,clsPrefix:t,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 NMenuDivider=defineComponent({name:"MenuDivider",setup(){const t=inject(menuInjectionKey),{mergedClsPrefixRef:r,isHorizontalRef:n}=t;return()=>n.value?null:h("div",{class:`${r.value}-menu-divider`})}});const groupPropKeys=keysOf(menuItemGroupProps),itemPropKeys=keysOf(menuItemProps),submenuPropKeys=keysOf(submenuProps);function isIgnoredNode(t){return t.type==="divider"||t.type==="render"}function isDividerNode(t){return t.type==="divider"}function itemRenderer(t,r){const{rawNode:n}=t,{show:o}=n;if(o===!1)return null;if(isIgnoredNode(n))return isDividerNode(n)?h(NMenuDivider,Object.assign({key:t.key},n.props)):null;const{labelField:s}=r,{key:l,level:d,isGroup:g}=t,y=Object.assign(Object.assign({},n),{title:n.title||n[s],extra:n.titleExtra||n.extra,key:l,internalKey:l,level:d,root:d===0,isGroup:g});return t.children?t.isGroup?h(NMenuOptionGroup,keep(y,groupPropKeys,{tmNode:t,tmNodes:t.children,key:l})):h(NSubmenu,keep(y,submenuPropKeys,{key:l,rawNodes:n[r.childrenField],tmNodes:t.children,tmNode:t})):h(NMenuOption,keep(y,itemPropKeys,{key:l,tmNode:t}))}const hoverStyleChildren=[c$1("&::before","background-color: var(--n-item-color-hover);"),cE("arrow",`
|
|
color: var(--n-arrow-color-hover);
|
|
`),cE("icon",`
|
|
color: var(--n-item-icon-color-hover);
|
|
`),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-hover);
|
|
`,[c$1("a",`
|
|
color: var(--n-item-text-color-hover);
|
|
`),cE("extra",`
|
|
color: var(--n-item-text-color-hover);
|
|
`)])],horizontalHoverStyleChildren=[cE("icon",`
|
|
color: var(--n-item-icon-color-hover-horizontal);
|
|
`),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`,[c$1("a",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`),cE("extra",`
|
|
color: var(--n-item-text-color-hover-horizontal);
|
|
`)])];var style$n=c$1([cB("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;
|
|
`,[cM("horizontal",`
|
|
display: inline-flex;
|
|
padding-bottom: 0;
|
|
`,[cB("submenu","margin: 0;"),cB("menu-item","margin: 0;"),cB("menu-item-content",`
|
|
padding: 0 20px;
|
|
border-bottom: 2px solid #0000;
|
|
`,[c$1("&::before","display: none;"),cM("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),cB("menu-item-content",[cM("selected",[cE("icon","color: var(--n-item-icon-color-active-horizontal);"),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-horizontal);
|
|
`,[c$1("a","color: var(--n-item-text-color-active-horizontal);"),cE("extra","color: var(--n-item-text-color-active-horizontal);")])]),cM("child-active",`
|
|
border-bottom: 2px solid var(--n-border-color-horizontal);
|
|
`,[cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`,[c$1("a",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`),cE("extra",`
|
|
color: var(--n-item-text-color-child-active-horizontal);
|
|
`)]),cE("icon",`
|
|
color: var(--n-item-icon-color-child-active-horizontal);
|
|
`)]),cNotM("disabled",[cNotM("selected, child-active",[c$1("&:focus-within",horizontalHoverStyleChildren)]),cM("selected",[hoverStyle(null,[cE("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-hover-horizontal);
|
|
`,[c$1("a","color: var(--n-item-text-color-active-hover-horizontal);"),cE("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),cM("child-active",[hoverStyle(null,[cE("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-hover-horizontal);
|
|
`,[c$1("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),cE("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),hoverStyle("border-bottom: 2px solid var(--n-border-color-horizontal);",horizontalHoverStyleChildren)]),cB("menu-item-content-header",[c$1("a","color: var(--n-item-text-color-horizontal);")])])]),cM("collapsed",[cB("menu-item-content",[cM("selected",[c$1("&::before",`
|
|
background-color: var(--n-item-color-active-collapsed) !important;
|
|
`)]),cB("menu-item-content-header","opacity: 0;"),cE("arrow","opacity: 0;"),cE("icon","color: var(--n-item-icon-color-collapsed);")])]),cB("menu-item",`
|
|
height: var(--n-item-height);
|
|
margin-top: 6px;
|
|
position: relative;
|
|
`),cB("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);
|
|
`,[c$1("> *","z-index: 1;"),c$1("&::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);
|
|
`),cM("disabled",`
|
|
opacity: .45;
|
|
cursor: not-allowed;
|
|
`),cM("collapsed",[cE("arrow","transform: rotate(0);")]),cM("selected",[c$1("&::before","background-color: var(--n-item-color-active);"),cE("arrow","color: var(--n-arrow-color-active);"),cE("icon","color: var(--n-item-icon-color-active);"),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active);
|
|
`,[c$1("a","color: var(--n-item-text-color-active);"),cE("extra","color: var(--n-item-text-color-active);")])]),cM("child-active",[cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`,[c$1("a",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`),cE("extra",`
|
|
color: var(--n-item-text-color-child-active);
|
|
`)]),cE("arrow",`
|
|
color: var(--n-arrow-color-child-active);
|
|
`),cE("icon",`
|
|
color: var(--n-item-icon-color-child-active);
|
|
`)]),cNotM("disabled",[cNotM("selected, child-active",[c$1("&:focus-within",hoverStyleChildren)]),cM("selected",[hoverStyle(null,[cE("arrow","color: var(--n-arrow-color-active-hover);"),cE("icon","color: var(--n-item-icon-color-active-hover);"),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-active-hover);
|
|
`,[c$1("a","color: var(--n-item-text-color-active-hover);"),cE("extra","color: var(--n-item-text-color-active-hover);")])])]),cM("child-active",[hoverStyle(null,[cE("arrow","color: var(--n-arrow-color-child-active-hover);"),cE("icon","color: var(--n-item-icon-color-child-active-hover);"),cB("menu-item-content-header",`
|
|
color: var(--n-item-text-color-child-active-hover);
|
|
`,[c$1("a","color: var(--n-item-text-color-child-active-hover);"),cE("extra","color: var(--n-item-text-color-child-active-hover);")])])]),cM("selected",[hoverStyle(null,[c$1("&::before","background-color: var(--n-item-color-active-hover);")])]),hoverStyle(null,hoverStyleChildren)]),cE("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;
|
|
`),cE("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);
|
|
`),cB("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);
|
|
`,[c$1("a",`
|
|
outline: none;
|
|
text-decoration: none;
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-item-text-color);
|
|
`,[c$1("&::before",`
|
|
content: "";
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
`)]),cE("extra",`
|
|
font-size: .93em;
|
|
color: var(--n-group-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`)])]),cB("submenu",`
|
|
cursor: pointer;
|
|
position: relative;
|
|
margin-top: 6px;
|
|
`,[cB("menu-item-content",`
|
|
height: var(--n-item-height);
|
|
`),cB("submenu-children",`
|
|
overflow: hidden;
|
|
padding: 0;
|
|
`,[fadeInHeightExpandTransition({duration:".2s"})])]),cB("menu-item-group",[cB("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);
|
|
`)])]),cB("menu-tooltip",[c$1("a",`
|
|
color: inherit;
|
|
text-decoration: none;
|
|
`)]),cB("menu-divider",`
|
|
transition: background-color .3s var(--n-bezier);
|
|
background-color: var(--n-divider-color);
|
|
height: 1px;
|
|
margin: 6px 18px;
|
|
`)]);function hoverStyle(t,r){return[cM("hover",t,r),c$1("&:hover",t,r)]}const menuProps=Object.assign(Object.assign({},useTheme.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 NMenu=defineComponent({name:"Menu",props:menuProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Menu","-menu",style$n,menuLight$1,t,r),s=inject(layoutSiderInjectionKey,null),l=computed(()=>{var H;const{collapsed:Q}=t;if(Q!==void 0)return Q;if(s){const{collapseModeRef:G,collapsedRef:K}=s;if(G.value==="width")return(H=K.value)!==null&&H!==void 0?H:!1}return!1}),d=computed(()=>{const{keyField:H,childrenField:Q,disabledField:G}=t;return createTreeMate(t.items||t.options,{getIgnored(K){return isIgnoredNode(K)},getChildren(K){return K[Q]},getDisabled(K){return K[G]},getKey(K){var W;return(W=K[H])!==null&&W!==void 0?W:K.name}})}),g=computed(()=>new Set(d.value.treeNodes.map(H=>H.key))),{watchProps:y}=t,b=ref(null);y!=null&&y.includes("defaultValue")?watchEffect(()=>{b.value=t.defaultValue}):b.value=t.defaultValue;const C=toRef(t,"value"),x=useMergedState(C,b),S=ref([]),_=()=>{S.value=t.defaultExpandAll?d.value.getNonLeafKeys():t.defaultExpandedNames||t.defaultExpandedKeys||d.value.getPath(x.value,{includeSelf:!1}).keyPath};y!=null&&y.includes("defaultExpandedKeys")?watchEffect(_):_();const w=useCompitable(t,["expandedNames","expandedKeys"]),$=useMergedState(w,S),I=computed(()=>d.value.treeNodes),B=computed(()=>d.value.getPath(x.value).keyPath);provide(menuInjectionKey,{props:t,mergedCollapsedRef:l,mergedThemeRef:o,mergedValueRef:x,mergedExpandedKeysRef:$,activePathRef:B,mergedClsPrefixRef:r,isHorizontalRef:computed(()=>t.mode==="horizontal"),invertedRef:toRef(t,"inverted"),doSelect:R,toggleExpand:M});function R(H,Q){const{"onUpdate:value":G,onUpdateValue:K,onSelect:W}=t;K&&call(K,H,Q),G&&call(G,H,Q),W&&call(W,H,Q),b.value=H}function P(H){const{"onUpdate:expandedKeys":Q,onUpdateExpandedKeys:G,onExpandedNamesChange:K,onOpenNamesChange:W}=t;Q&&call(Q,H),G&&call(G,H),K&&call(K,H),W&&call(W,H),S.value=H}function M(H){const Q=Array.from($.value),G=Q.findIndex(K=>K===H);if(~G)Q.splice(G,1);else{if(t.accordion&&g.value.has(H)){const K=Q.findIndex(W=>g.value.has(W));K>-1&&Q.splice(K,1)}Q.push(H)}P(Q)}const O=H=>{const Q=d.value.getPath(H!=null?H:x.value,{includeSelf:!1}).keyPath;if(!Q.length)return;const G=Array.from($.value),K=new Set([...G,...Q]);t.accordion&&g.value.forEach(W=>{K.has(W)&&!Q.includes(W)&&K.delete(W)}),P(Array.from(K))},D=computed(()=>{const{inverted:H}=t,{common:{cubicBezierEaseInOut:Q},self:G}=o.value,{borderRadius:K,borderColorHorizontal:W,fontSize:j,itemHeight:Y,dividerColor:q}=G,X={"--n-divider-color":q,"--n-bezier":Q,"--n-font-size":j,"--n-border-color-horizontal":W,"--n-border-radius":K,"--n-item-height":Y};return H?(X["--n-group-text-color"]=G.groupTextColorInverted,X["--n-color"]=G.colorInverted,X["--n-item-text-color"]=G.itemTextColorInverted,X["--n-item-text-color-hover"]=G.itemTextColorHoverInverted,X["--n-item-text-color-active"]=G.itemTextColorActiveInverted,X["--n-item-text-color-child-active"]=G.itemTextColorChildActiveInverted,X["--n-item-text-color-child-active-hover"]=G.itemTextColorChildActiveInverted,X["--n-item-text-color-active-hover"]=G.itemTextColorActiveHoverInverted,X["--n-item-icon-color"]=G.itemIconColorInverted,X["--n-item-icon-color-hover"]=G.itemIconColorHoverInverted,X["--n-item-icon-color-active"]=G.itemIconColorActiveInverted,X["--n-item-icon-color-active-hover"]=G.itemIconColorActiveHoverInverted,X["--n-item-icon-color-child-active"]=G.itemIconColorChildActiveInverted,X["--n-item-icon-color-child-active-hover"]=G.itemIconColorChildActiveHoverInverted,X["--n-item-icon-color-collapsed"]=G.itemIconColorCollapsedInverted,X["--n-item-text-color-horizontal"]=G.itemTextColorHorizontalInverted,X["--n-item-text-color-hover-horizontal"]=G.itemTextColorHoverHorizontalInverted,X["--n-item-text-color-active-horizontal"]=G.itemTextColorActiveHorizontalInverted,X["--n-item-text-color-child-active-horizontal"]=G.itemTextColorChildActiveHorizontalInverted,X["--n-item-text-color-child-active-hover-horizontal"]=G.itemTextColorChildActiveHoverHorizontalInverted,X["--n-item-text-color-active-hover-horizontal"]=G.itemTextColorActiveHoverHorizontalInverted,X["--n-item-icon-color-horizontal"]=G.itemIconColorHorizontalInverted,X["--n-item-icon-color-hover-horizontal"]=G.itemIconColorHoverHorizontalInverted,X["--n-item-icon-color-active-horizontal"]=G.itemIconColorActiveHorizontalInverted,X["--n-item-icon-color-active-hover-horizontal"]=G.itemIconColorActiveHoverHorizontalInverted,X["--n-item-icon-color-child-active-horizontal"]=G.itemIconColorChildActiveHorizontalInverted,X["--n-item-icon-color-child-active-hover-horizontal"]=G.itemIconColorChildActiveHoverHorizontalInverted,X["--n-arrow-color"]=G.arrowColorInverted,X["--n-arrow-color-hover"]=G.arrowColorHoverInverted,X["--n-arrow-color-active"]=G.arrowColorActiveInverted,X["--n-arrow-color-active-hover"]=G.arrowColorActiveHoverInverted,X["--n-arrow-color-child-active"]=G.arrowColorChildActiveInverted,X["--n-arrow-color-child-active-hover"]=G.arrowColorChildActiveHoverInverted,X["--n-item-color-hover"]=G.itemColorHoverInverted,X["--n-item-color-active"]=G.itemColorActiveInverted,X["--n-item-color-active-hover"]=G.itemColorActiveHoverInverted,X["--n-item-color-active-collapsed"]=G.itemColorActiveCollapsedInverted):(X["--n-group-text-color"]=G.groupTextColor,X["--n-color"]=G.color,X["--n-item-text-color"]=G.itemTextColor,X["--n-item-text-color-hover"]=G.itemTextColorHover,X["--n-item-text-color-active"]=G.itemTextColorActive,X["--n-item-text-color-child-active"]=G.itemTextColorChildActive,X["--n-item-text-color-child-active-hover"]=G.itemTextColorChildActiveHover,X["--n-item-text-color-active-hover"]=G.itemTextColorActiveHover,X["--n-item-icon-color"]=G.itemIconColor,X["--n-item-icon-color-hover"]=G.itemIconColorHover,X["--n-item-icon-color-active"]=G.itemIconColorActive,X["--n-item-icon-color-active-hover"]=G.itemIconColorActiveHover,X["--n-item-icon-color-child-active"]=G.itemIconColorChildActive,X["--n-item-icon-color-child-active-hover"]=G.itemIconColorChildActiveHover,X["--n-item-icon-color-collapsed"]=G.itemIconColorCollapsed,X["--n-item-text-color-horizontal"]=G.itemTextColorHorizontal,X["--n-item-text-color-hover-horizontal"]=G.itemTextColorHoverHorizontal,X["--n-item-text-color-active-horizontal"]=G.itemTextColorActiveHorizontal,X["--n-item-text-color-child-active-horizontal"]=G.itemTextColorChildActiveHorizontal,X["--n-item-text-color-child-active-hover-horizontal"]=G.itemTextColorChildActiveHoverHorizontal,X["--n-item-text-color-active-hover-horizontal"]=G.itemTextColorActiveHoverHorizontal,X["--n-item-icon-color-horizontal"]=G.itemIconColorHorizontal,X["--n-item-icon-color-hover-horizontal"]=G.itemIconColorHoverHorizontal,X["--n-item-icon-color-active-horizontal"]=G.itemIconColorActiveHorizontal,X["--n-item-icon-color-active-hover-horizontal"]=G.itemIconColorActiveHoverHorizontal,X["--n-item-icon-color-child-active-horizontal"]=G.itemIconColorChildActiveHorizontal,X["--n-item-icon-color-child-active-hover-horizontal"]=G.itemIconColorChildActiveHoverHorizontal,X["--n-arrow-color"]=G.arrowColor,X["--n-arrow-color-hover"]=G.arrowColorHover,X["--n-arrow-color-active"]=G.arrowColorActive,X["--n-arrow-color-active-hover"]=G.arrowColorActiveHover,X["--n-arrow-color-child-active"]=G.arrowColorChildActive,X["--n-arrow-color-child-active-hover"]=G.arrowColorChildActiveHover,X["--n-item-color-hover"]=G.itemColorHover,X["--n-item-color-active"]=G.itemColorActive,X["--n-item-color-active-hover"]=G.itemColorActiveHover,X["--n-item-color-active-collapsed"]=G.itemColorActiveCollapsed),X}),N=n?useThemeClass("menu",computed(()=>t.inverted?"a":"b"),D,t):void 0;return{mergedClsPrefix:r,controlledExpandedKeys:w,uncontrolledExpanededKeys:S,mergedExpandedKeys:$,uncontrolledValue:b,mergedValue:x,activePath:B,tmNodes:I,mergedTheme:o,mergedCollapsed:l,cssVars:n?void 0:D,themeClass:N==null?void 0:N.themeClass,onRender:N==null?void 0:N.onRender,showOption:O}},render(){const{mergedClsPrefix:t,mode:r,themeClass:n,onRender:o}=this;return o==null||o(),h("div",{role:r==="horizontal"?"menubar":"menu",class:[`${t}-menu`,n,`${t}-menu--${r}`,this.mergedCollapsed&&`${t}-menu--collapsed`],style:this.cssVars},this.tmNodes.map(s=>itemRenderer(s,this.$props)))}});const messageProps={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},messageApiInjectionKey="n-message-api",messageProviderInjectionKey="n-message-provider";var style$m=c$1([cB("message-wrapper",`
|
|
margin: var(--n-margin);
|
|
z-index: 0;
|
|
transform-origin: top center;
|
|
display: flex;
|
|
`,[fadeInHeightExpandTransition({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),cB("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);
|
|
`,[cE("content",`
|
|
display: inline-block;
|
|
line-height: var(--n-line-height);
|
|
font-size: var(--n-font-size);
|
|
`),cE("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(t=>cM(`${t}-type`,[c$1("> *",`
|
|
color: var(--n-icon-color-${t});
|
|
transition: color .3s var(--n-bezier);
|
|
`)])),c$1("> *",`
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
`,[iconSwitchTransition()])]),cE("close",`
|
|
margin: var(--n-close-margin);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
flex-shrink: 0;
|
|
`,[c$1("&:hover",`
|
|
color: var(--n-close-icon-color-hover);
|
|
`),c$1("&:active",`
|
|
color: var(--n-close-icon-color-pressed);
|
|
`)])]),cB("message-container",`
|
|
z-index: 6000;
|
|
position: fixed;
|
|
height: 0;
|
|
overflow: visible;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
`,[cM("top",`
|
|
top: 12px;
|
|
left: 0;
|
|
right: 0;
|
|
`),cM("top-left",`
|
|
top: 12px;
|
|
left: 12px;
|
|
right: 0;
|
|
align-items: flex-start;
|
|
`),cM("top-right",`
|
|
top: 12px;
|
|
left: 0;
|
|
right: 12px;
|
|
align-items: flex-end;
|
|
`),cM("bottom",`
|
|
bottom: 4px;
|
|
left: 0;
|
|
right: 0;
|
|
justify-content: flex-end;
|
|
`),cM("bottom-left",`
|
|
bottom: 4px;
|
|
left: 12px;
|
|
right: 0;
|
|
justify-content: flex-end;
|
|
align-items: flex-start;
|
|
`),cM("bottom-right",`
|
|
bottom: 4px;
|
|
left: 0;
|
|
right: 12px;
|
|
justify-content: flex-end;
|
|
align-items: flex-end;
|
|
`)])]);const iconRenderMap$1={info:()=>h(InfoIcon,null),success:()=>h(SuccessIcon,null),warning:()=>h(WarningIcon,null),error:()=>h(ErrorIcon,null),default:()=>null};var NMessage=defineComponent({name:"Message",props:Object.assign(Object.assign({},messageProps),{render:Function}),setup(t){const{inlineThemeDisabled:r,mergedRtlRef:n}=useConfig(t),{props:o,mergedClsPrefixRef:s}=inject(messageProviderInjectionKey),l=useRtl("Message",n,s),d=useTheme("Message","-message",style$m,messageLight$1,o,s),g=computed(()=>{const{type:b}=t,{common:{cubicBezierEaseInOut:C},self:{padding:x,margin:S,maxWidth:_,iconMargin:w,closeMargin:$,closeSize:I,iconSize:B,fontSize:R,lineHeight:P,borderRadius:M,iconColorInfo:O,iconColorSuccess:D,iconColorWarning:N,iconColorError:H,iconColorLoading:Q,closeIconSize:G,closeBorderRadius:K,[createKey("textColor",b)]:W,[createKey("boxShadow",b)]:j,[createKey("color",b)]:Y,[createKey("closeColorHover",b)]:q,[createKey("closeColorPressed",b)]:X,[createKey("closeIconColor",b)]:re,[createKey("closeIconColorPressed",b)]:te,[createKey("closeIconColorHover",b)]:oe}}=d.value;return{"--n-bezier":C,"--n-margin":S,"--n-padding":x,"--n-max-width":_,"--n-font-size":R,"--n-icon-margin":w,"--n-icon-size":B,"--n-close-icon-size":G,"--n-close-border-radius":K,"--n-close-size":I,"--n-close-margin":$,"--n-text-color":W,"--n-color":Y,"--n-box-shadow":j,"--n-icon-color-info":O,"--n-icon-color-success":D,"--n-icon-color-warning":N,"--n-icon-color-error":H,"--n-icon-color-loading":Q,"--n-close-color-hover":q,"--n-close-color-pressed":X,"--n-close-icon-color":re,"--n-close-icon-color-pressed":te,"--n-close-icon-color-hover":oe,"--n-line-height":P,"--n-border-radius":M}}),y=r?useThemeClass("message",computed(()=>t.type[0]),g,{}):void 0;return{mergedClsPrefix:s,rtlEnabled:l,messageProviderProps:o,handleClose(){var b;(b=t.onClose)===null||b===void 0||b.call(t)},cssVars:r?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender,placement:o.placement}},render(){const{render:t,type:r,closable:n,content:o,mergedClsPrefix:s,cssVars:l,themeClass:d,onRender:g,icon:y,handleClose:b,showIcon:C}=this;g==null||g();let x;return h("div",{class:[`${s}-message-wrapper`,d],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},l]},t?t(this.$props):h("div",{class:[`${s}-message ${s}-message--${r}-type`,this.rtlEnabled&&`${s}-message--rtl`]},(x=createIconVNode(y,r,s))&&C?h("div",{class:`${s}-message__icon ${s}-message__icon--${r}-type`},h(NIconSwitchTransition,null,{default:()=>x})):null,h("div",{class:`${s}-message__content`},render$2(o)),n?h(NBaseClose,{clsPrefix:s,class:`${s}-message__close`,onClick:b,absolute:!0}):null))}});function createIconVNode(t,r,n){if(typeof t=="function")return t();{const o=r==="loading"?h(NBaseLoading,{clsPrefix:n,strokeWidth:24,scale:.85}):iconRenderMap$1[r]();return o?h(NBaseIcon,{clsPrefix:n,key:r},{default:()=>o}):null}}var MessageEnvironment=defineComponent({name:"MessageEnvironment",props:Object.assign(Object.assign({},messageProps),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(t){let r=null;const n=ref(!0);onMounted(()=>{o()});function o(){const{duration:C}=t;C&&(r=window.setTimeout(d,C))}function s(C){C.currentTarget===C.target&&r!==null&&(window.clearTimeout(r),r=null)}function l(C){C.currentTarget===C.target&&o()}function d(){const{onHide:C}=t;n.value=!1,r&&(window.clearTimeout(r),r=null),C&&C()}function g(){const{onClose:C}=t;C&&C(),d()}function y(){const{onAfterLeave:C,onInternalAfterLeave:x,onAfterHide:S,internalKey:_}=t;C&&C(),x&&x(_),S&&S()}function b(){d()}return{show:n,hide:d,handleClose:g,handleAfterLeave:y,handleMouseleave:l,handleMouseenter:s,deactivate:b}},render(){return h(NFadeInExpandTransition,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?h(NMessage,{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 messageProviderProps=Object.assign(Object.assign({},useTheme.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerStyle:[String,Object]});var NMessageProvider=defineComponent({name:"MessageProvider",props:messageProviderProps,setup(t){const{mergedClsPrefixRef:r}=useConfig(t),n=ref([]),o=ref({}),s={create(y,b){return l(y,Object.assign({type:"default"},b))},info(y,b){return l(y,Object.assign(Object.assign({},b),{type:"info"}))},success(y,b){return l(y,Object.assign(Object.assign({},b),{type:"success"}))},warning(y,b){return l(y,Object.assign(Object.assign({},b),{type:"warning"}))},error(y,b){return l(y,Object.assign(Object.assign({},b),{type:"error"}))},loading(y,b){return l(y,Object.assign(Object.assign({},b),{type:"loading"}))},destroyAll:g};provide(messageProviderInjectionKey,{props:t,mergedClsPrefixRef:r}),provide(messageApiInjectionKey,s);function l(y,b){const C=createId(),x=reactive(Object.assign(Object.assign({},b),{content:y,key:C,destroy:()=>{var _;(_=o.value[C])===null||_===void 0||_.hide()}})),{max:S}=t;return S&&n.value.length>=S&&n.value.shift(),n.value.push(x),x}function d(y){n.value.splice(n.value.findIndex(b=>b.key===y),1),delete o.value[y]}function g(){Object.values(o.value).forEach(y=>{y.hide()})}return Object.assign({mergedClsPrefix:r,messageRefs:o,messageList:n,handleAfterLeave:d},s)},render(){var t,r,n;return h(Fragment,null,(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t),this.messageList.length?h(Teleport,{to:(n=this.to)!==null&&n!==void 0?n:"body"},h("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`],key:"message-container",style:this.containerStyle},this.messageList.map(o=>h(MessageEnvironment,Object.assign({ref:s=>{s&&(this.messageRefs[o.key]=s)},internalKey:o.key,onInternalAfterLeave:this.handleAfterLeave},omit(o,["destroy"],void 0),{duration:o.duration===void 0?this.duration:o.duration,keepAliveOnHover:o.keepAliveOnHover===void 0?this.keepAliveOnHover:o.keepAliveOnHover,closable:o.closable===void 0?this.closable:o.closable}))))):null)}});function useMessage(){const t=inject(messageApiInjectionKey,null);return t===null&&throwError$1("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."),t}const notificationProviderInjectionKey="n-notification-provider",NotificationContainer=defineComponent({name:"NotificationContainer",props:{scrollable:{type:Boolean,required:!0},placement:{type:String,required:!0}},setup(){const{mergedThemeRef:t,mergedClsPrefixRef:r,wipTransitionCountRef:n}=inject(notificationProviderInjectionKey),o=ref(null);return watchEffect(()=>{var s,l;n.value>0?(s=o==null?void 0:o.value)===null||s===void 0||s.classList.add("transitioning"):(l=o==null?void 0:o.value)===null||l===void 0||l.classList.remove("transitioning")}),{selfRef:o,mergedTheme:t,mergedClsPrefix:r,transitioning:n}},render(){const{$slots:t,scrollable:r,mergedClsPrefix:n,mergedTheme:o,placement:s}=this;return h("div",{ref:"selfRef",class:[`${n}-notification-container`,r&&`${n}-notification-container--scrollable`,`${n}-notification-container--${s}`]},r?h(NScrollbar$1,{theme:o.peers.Scrollbar,themeOverrides:o.peerOverrides.Scrollbar,contentStyle:{overflow:"hidden"}},t):t)}}),iconRenderMap={info:()=>h(InfoIcon,null),success:()=>h(SuccessIcon,null),warning:()=>h(WarningIcon,null),error:()=>h(ErrorIcon,null),default:()=>null},notificationProps={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},notificationPropKeys=keysOf(notificationProps),Notification=defineComponent({name:"Notification",props:notificationProps,setup(t){const{mergedClsPrefixRef:r,mergedThemeRef:n,props:o}=inject(notificationProviderInjectionKey),{inlineThemeDisabled:s,mergedRtlRef:l}=useConfig(),d=useRtl("Notification",l,r),g=computed(()=>{const{type:b}=t,{self:{color:C,textColor:x,closeIconColor:S,closeIconColorHover:_,closeIconColorPressed:w,headerTextColor:$,descriptionTextColor:I,actionTextColor:B,borderRadius:R,headerFontWeight:P,boxShadow:M,lineHeight:O,fontSize:D,closeMargin:N,closeSize:H,width:Q,padding:G,closeIconSize:K,closeBorderRadius:W,closeColorHover:j,closeColorPressed:Y,titleFontSize:q,metaFontSize:X,descriptionFontSize:re,[createKey("iconColor",b)]:te},common:{cubicBezierEaseOut:oe,cubicBezierEaseIn:ae,cubicBezierEaseInOut:se}}=n.value,{left:ue,right:Ae,top:pe,bottom:he}=getMargin(G);return{"--n-color":C,"--n-font-size":D,"--n-text-color":x,"--n-description-text-color":I,"--n-action-text-color":B,"--n-title-text-color":$,"--n-title-font-weight":P,"--n-bezier":se,"--n-bezier-ease-out":oe,"--n-bezier-ease-in":ae,"--n-border-radius":R,"--n-box-shadow":M,"--n-close-border-radius":W,"--n-close-color-hover":j,"--n-close-color-pressed":Y,"--n-close-icon-color":S,"--n-close-icon-color-hover":_,"--n-close-icon-color-pressed":w,"--n-line-height":O,"--n-icon-color":te,"--n-close-margin":N,"--n-close-size":H,"--n-close-icon-size":K,"--n-width":Q,"--n-padding-left":ue,"--n-padding-right":Ae,"--n-padding-top":pe,"--n-padding-bottom":he,"--n-title-font-size":q,"--n-meta-font-size":X,"--n-description-font-size":re}}),y=s?useThemeClass("notification",computed(()=>t.type[0]),g,o):void 0;return{mergedClsPrefix:r,showAvatar:computed(()=>t.avatar||t.type!=="default"),handleCloseClick(){t.onClose()},rtlEnabled:d,cssVars:s?void 0:g,themeClass:y==null?void 0:y.themeClass,onRender:y==null?void 0:y.onRender}},render(){var t;const{mergedClsPrefix:r}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${r}-notification-wrapper`,this.themeClass],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:this.cssVars},h("div",{class:[`${r}-notification`,this.rtlEnabled&&`${r}-notification--rtl`,this.themeClass,{[`${r}-notification--closable`]:this.closable,[`${r}-notification--show-avatar`]:this.showAvatar}],style:this.cssVars},this.showAvatar?h("div",{class:`${r}-notification__avatar`},this.avatar?render$2(this.avatar):this.type!=="default"?h(NBaseIcon,{clsPrefix:r},{default:()=>iconRenderMap[this.type]()}):null):null,this.closable?h(NBaseClose,{clsPrefix:r,class:`${r}-notification__close`,onClick:this.handleCloseClick}):null,h("div",{ref:"bodyRef",class:`${r}-notification-main`},this.title?h("div",{class:`${r}-notification-main__header`},render$2(this.title)):null,this.description?h("div",{class:`${r}-notification-main__description`},render$2(this.description)):null,this.content?h("pre",{class:`${r}-notification-main__content`},render$2(this.content)):null,this.meta||this.action?h("div",{class:`${r}-notification-main-footer`},this.meta?h("div",{class:`${r}-notification-main-footer__meta`},render$2(this.meta)):null,this.action?h("div",{class:`${r}-notification-main-footer__action`},render$2(this.action)):null):null)))}}),notificationEnvOptions=Object.assign(Object.assign({},notificationProps),{duration:Number,onClose:Function,onLeave:Function,onAfterEnter:Function,onAfterLeave:Function,onHide:Function,onAfterShow:Function,onAfterHide:Function}),NotificationEnvironment=defineComponent({name:"NotificationEnvironment",props:Object.assign(Object.assign({},notificationEnvOptions),{internalKey:{type:String,required:!0},onInternalAfterLeave:{type:Function,required:!0}}),setup(t){const{wipTransitionCountRef:r}=inject(notificationProviderInjectionKey),n=ref(!0);let o=null;function s(){n.value=!1,o&&window.clearTimeout(o)}function l(w){r.value++,nextTick(()=>{w.style.height=`${w.offsetHeight}px`,w.style.maxHeight="0",w.style.transition="none",w.offsetHeight,w.style.transition="",w.style.maxHeight=w.style.height})}function d(w){r.value--,w.style.height="",w.style.maxHeight="";const{onAfterEnter:$,onAfterShow:I}=t;$&&$(),I&&I()}function g(w){r.value++,w.style.maxHeight=`${w.offsetHeight}px`,w.style.height=`${w.offsetHeight}px`,w.offsetHeight}function y(w){const{onHide:$}=t;$&&$(),w.style.maxHeight="0",w.offsetHeight}function b(){r.value--;const{onAfterLeave:w,onInternalAfterLeave:$,onAfterHide:I,internalKey:B}=t;w&&w(),$(B),I&&I()}function C(){const{duration:w}=t;w&&(o=window.setTimeout(s,w))}function x(w){w.currentTarget===w.target&&o!==null&&(window.clearTimeout(o),o=null)}function S(w){w.currentTarget===w.target&&C()}function _(){const{onClose:w}=t;w?Promise.resolve(w()).then($=>{$!==!1&&s()}):s()}return onMounted(()=>{t.duration&&(o=window.setTimeout(s,t.duration))}),{show:n,hide:s,handleClose:_,handleAfterLeave:b,handleLeave:y,handleBeforeLeave:g,handleAfterEnter:d,handleBeforeEnter:l,handleMouseenter:x,handleMouseleave:S}},render(){return h(Transition,{name:"notification-transition",appear:!0,onBeforeEnter:this.handleBeforeEnter,onAfterEnter:this.handleAfterEnter,onBeforeLeave:this.handleBeforeLeave,onLeave:this.handleLeave,onAfterLeave:this.handleAfterLeave},{default:()=>this.show?h(Notification,Object.assign({},keep(this.$props,notificationPropKeys),{onClose:this.handleClose,onMouseenter:this.duration&&this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.duration&&this.keepAliveOnHover?this.handleMouseleave:void 0})):null})}});var style$l=c$1([cB("notification-container",`
|
|
z-index: 4000;
|
|
position: fixed;
|
|
overflow: visible;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
`,[c$1(">",[cB("scrollbar",`
|
|
width: initial;
|
|
overflow: visible;
|
|
height: -moz-fit-content !important;
|
|
height: fit-content !important;
|
|
max-height: 100vh !important;
|
|
`,[c$1(">",[cB("scrollbar-container",`
|
|
height: -moz-fit-content !important;
|
|
height: fit-content !important;
|
|
max-height: 100vh !important;
|
|
`,[cB("scrollbar-content",`
|
|
padding-top: 12px;
|
|
padding-bottom: 33px;
|
|
`)])])])]),cM("top, top-right, top-left",`
|
|
top: 12px;
|
|
`,[c$1("&.transitioning >",[cB("scrollbar",[c$1(">",[cB("scrollbar-container",`
|
|
min-height: 100vh !important;
|
|
`)])])])]),cM("bottom, bottom-right, bottom-left",`
|
|
bottom: 12px;
|
|
`,[c$1(">",[cB("scrollbar",[c$1(">",[cB("scrollbar-container",[cB("scrollbar-content",`
|
|
padding-bottom: 12px;
|
|
`)])])])]),cB("notification-wrapper",`
|
|
display: flex;
|
|
align-items: flex-end;
|
|
margin-bottom: 0;
|
|
margin-top: 12px;
|
|
`)]),cM("top, bottom",`
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
`,[cB("notification-wrapper",[c$1("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
transform: scale(0.85);
|
|
`),c$1("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
transform: scale(1);
|
|
`)])]),cM("top",[cB("notification-wrapper",`
|
|
transform-origin: top center;
|
|
`)]),cM("bottom",[cB("notification-wrapper",`
|
|
transform-origin: bottom center;
|
|
`)]),cM("top-right, bottom-right",[cB("notification",`
|
|
margin-left: 28px;
|
|
margin-right: 16px;
|
|
`)]),cM("top-left, bottom-left",[cB("notification",`
|
|
margin-left: 16px;
|
|
margin-right: 28px;
|
|
`)]),cM("top-right",`
|
|
right: 0;
|
|
`,[placementTransformStyle("top-right")]),cM("top-left",`
|
|
left: 0;
|
|
`,[placementTransformStyle("top-left")]),cM("bottom-right",`
|
|
right: 0;
|
|
`,[placementTransformStyle("bottom-right")]),cM("bottom-left",`
|
|
left: 0;
|
|
`,[placementTransformStyle("bottom-left")]),cM("scrollable",[cM("top-right",`
|
|
top: 0;
|
|
`),cM("top-left",`
|
|
top: 0;
|
|
`),cM("bottom-right",`
|
|
bottom: 0;
|
|
`),cM("bottom-left",`
|
|
bottom: 0;
|
|
`)]),cB("notification-wrapper",`
|
|
margin-bottom: 12px;
|
|
`,[c$1("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
opacity: 0;
|
|
margin-top: 0 !important;
|
|
margin-bottom: 0 !important;
|
|
`),c$1("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
opacity: 1;
|
|
`),c$1("&.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);
|
|
`),c$1("&.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);
|
|
`)]),cB("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;
|
|
`,[cE("avatar",[cB("icon",{color:"var(--n-icon-color)"}),cB("base-icon",{color:"var(--n-icon-color)"})]),cM("show-avatar",[cB("notification-main",`
|
|
margin-left: 40px;
|
|
width: calc(100% - 40px);
|
|
`)]),cM("closable",[cB("notification-main",[c$1("> *:first-child",{paddingRight:"20px"})]),cE("close",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
margin: var(--n-close-margin);
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`)]),cE("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;
|
|
`,[cB("icon","transition: color .3s var(--n-bezier);")]),cB("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);
|
|
`,[cB("notification-main-footer",`
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-top: 12px;
|
|
`,[cE("meta",`
|
|
font-size: var(--n-meta-font-size);
|
|
transition: color .3s var(--n-bezier-ease-out);
|
|
color: var(--n-description-text-color);
|
|
`),cE("action",`
|
|
cursor: pointer;
|
|
transition: color .3s var(--n-bezier-ease-out);
|
|
color: var(--n-action-text-color);
|
|
`)]),cE("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);
|
|
`),cE("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);
|
|
`),cE("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);
|
|
`,[c$1("&:first-child",{margin:0})])])])])]);function placementTransformStyle(t){const n=t.split("-")[1]==="left"?"calc(-100%)":"calc(100%)",o="0";return cB("notification-wrapper",[c$1("&.notification-transition-enter-from, &.notification-transition-leave-to",`
|
|
transform: translate(${n}, 0);
|
|
`),c$1("&.notification-transition-leave-from, &.notification-transition-enter-to",`
|
|
transform: translate(${o}, 0);
|
|
`)])}const notificationApiInjectionKey="n-notification-api",notificationProviderProps=Object.assign(Object.assign({},useTheme.props),{containerStyle:[String,Object],to:[String,Object],scrollable:{type:Boolean,default:!0},max:Number,placement:{type:String,default:"top-right"},keepAliveOnHover:Boolean});var NNotificationProvider=defineComponent({name:"NotificationProvider",props:notificationProviderProps,setup(t){const{mergedClsPrefixRef:r}=useConfig(t),n=ref([]),o={},s=new Set;function l(_){const w=createId(),$=()=>{s.add(w),o[w]&&o[w].hide()},I=reactive(Object.assign(Object.assign({},_),{key:w,destroy:$,hide:$,deactivate:$})),{max:B}=t;if(B&&n.value.length-s.size>=B){let R=!1,P=0;for(const M of n.value){if(!s.has(M.key)){o[M.key]&&(M.destroy(),R=!0);break}P++}R||n.value.splice(P,1)}return n.value.push(I),I}const d=["info","success","warning","error"].map(_=>w=>l(Object.assign(Object.assign({},w),{type:_})));function g(_){s.delete(_),n.value.splice(n.value.findIndex(w=>w.key===_),1)}const y=useTheme("Notification","-notification",style$l,notificationLight$1,t,r),b={create:l,info:d[0],success:d[1],warning:d[2],error:d[3],open:x,destroyAll:S},C=ref(0);provide(notificationApiInjectionKey,b),provide(notificationProviderInjectionKey,{props:t,mergedClsPrefixRef:r,mergedThemeRef:y,wipTransitionCountRef:C});function x(_){return l(_)}function S(){Object.values(n.value).forEach(_=>{_.hide()})}return Object.assign({mergedClsPrefix:r,notificationList:n,notificationRefs:o,handleAfterLeave:g},b)},render(){var t,r,n;const{placement:o}=this;return h(Fragment,null,(r=(t=this.$slots).default)===null||r===void 0?void 0:r.call(t),this.notificationList.length?h(Teleport,{to:(n=this.to)!==null&&n!==void 0?n:"body"},h(NotificationContainer,{style:this.containerStyle,scrollable:this.scrollable&&o!=="top"&&o!=="bottom",placement:o},{default:()=>this.notificationList.map(s=>h(NotificationEnvironment,Object.assign({ref:l=>{const d=s.key;l===null?delete this.notificationRefs[d]:this.notificationRefs[d]=l}},omit(s,["destroy","hide","deactivate"]),{internalKey:s.key,onInternalAfterLeave:this.handleAfterLeave,keepAliveOnHover:s.keepAliveOnHover===void 0?this.keepAliveOnHover:s.keepAliveOnHover})))})):null)}}),style$k=c$1([cB("progress",{display:"inline-block"},[cB("progress-icon",`
|
|
color: var(--n-icon-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`),cM("line",`
|
|
width: 100%;
|
|
display: block;
|
|
`,[cB("progress-content",`
|
|
display: flex;
|
|
align-items: center;
|
|
`,[cB("progress-graph",{flex:1})]),cB("progress-custom-content",{marginLeft:"14px"}),cB("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);
|
|
`,[cM("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);
|
|
`)])]),cM("circle, dashboard",{width:"120px"},[cB("progress-custom-content",`
|
|
position: absolute;
|
|
left: 50%;
|
|
top: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`),cB("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;
|
|
`),cB("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);
|
|
`)]),cM("multiple-circle",`
|
|
width: 200px;
|
|
color: inherit;
|
|
`,[cB("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);
|
|
`)]),cB("progress-content",{position:"relative"}),cB("progress-graph",{position:"relative"},[cB("progress-graph-circle",[c$1("svg",{verticalAlign:"bottom"}),cB("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);
|
|
`,[cM("empty",{opacity:0})]),cB("progress-graph-circle-rail",`
|
|
transition: stroke .3s var(--n-bezier);
|
|
overflow: hidden;
|
|
stroke: var(--n-rail-color);
|
|
`)]),cB("progress-graph-line",[cM("indicator-inside",[cB("progress-graph-line-rail",`
|
|
height: 16px;
|
|
line-height: 16px;
|
|
border-radius: 10px;
|
|
`,[cB("progress-graph-line-fill",`
|
|
height: inherit;
|
|
border-radius: 10px;
|
|
`),cB("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);
|
|
`)])]),cM("indicator-inside-label",`
|
|
height: 16px;
|
|
display: flex;
|
|
align-items: center;
|
|
`,[cB("progress-graph-line-rail",`
|
|
flex: 1;
|
|
transition: background-color .3s var(--n-bezier);
|
|
`),cB("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);
|
|
`)]),cB("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);
|
|
`,[cB("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);
|
|
`,[cM("processing",[c$1("&::after",`
|
|
content: "";
|
|
background-image: var(--n-line-bg-processing);
|
|
animation: progress-processing-animation 2s var(--n-bezier) infinite;
|
|
`)])])])])])]),c$1("@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 iconMap$2={success:h(SuccessIcon,null),error:h(ErrorIcon,null),warning:h(WarningIcon,null),info:h(InfoIcon,null)};var Line$4=defineComponent({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(t,{slots:r}){const n=computed(()=>formatLength(t.height)),o=computed(()=>t.railBorderRadius!==void 0?formatLength(t.railBorderRadius):t.height!==void 0?formatLength(t.height,{c:.5}):""),s=computed(()=>t.fillBorderRadius!==void 0?formatLength(t.fillBorderRadius):t.railBorderRadius!==void 0?formatLength(t.railBorderRadius):t.height!==void 0?formatLength(t.height,{c:.5}):"");return()=>{const{indicatorPlacement:l,railColor:d,railStyle:g,percentage:y,unit:b,indicatorTextColor:C,status:x,showIndicator:S,fillColor:_,processing:w,clsPrefix:$}=t;return h("div",{class:`${$}-progress-content`,role:"none"},h("div",{class:`${$}-progress-graph`,"aria-hidden":!0},h("div",{class:[`${$}-progress-graph-line`,{[`${$}-progress-graph-line--indicator-${l}`]:!0}]},h("div",{class:`${$}-progress-graph-line-rail`,style:[{backgroundColor:d,height:n.value,borderRadius:o.value},g]},h("div",{class:[`${$}-progress-graph-line-fill`,w&&`${$}-progress-graph-line-fill--processing`],style:{maxWidth:`${t.percentage}%`,backgroundColor:_,height:n.value,lineHeight:n.value,borderRadius:s.value}},l==="inside"?h("div",{class:`${$}-progress-graph-line-indicator`,style:{color:C}},y,b):null)))),S&&l==="outside"?h("div",null,r.default?h("div",{class:`${$}-progress-custom-content`,style:{color:C},role:"none"},r.default()):x==="default"?h("div",{role:"none",class:`${$}-progress-icon ${$}-progress-icon--as-text`,style:{color:C}},y,b):h("div",{class:`${$}-progress-icon`,"aria-hidden":!0},h(NBaseIcon,{clsPrefix:$},{default:()=>iconMap$2[x]}))):null)}}});const iconMap$1={success:h(SuccessIcon,null),error:h(ErrorIcon,null),warning:h(WarningIcon,null),info:h(InfoIcon,null)};var Circle$2=defineComponent({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(t,{slots:r}){function n(o,s,l){const{gapDegree:d,viewBoxWidth:g,strokeWidth:y}=t,b=50,C=0,x=b,S=0,_=2*b,w=50+y/2,$=`M ${w},${w} m ${C},${x}
|
|
a ${b},${b} 0 1 1 ${S},${-_}
|
|
a ${b},${b} 0 1 1 ${-S},${_}`,I=Math.PI*2*b,B={stroke:l,strokeDasharray:`${o/100*(I-d)}px ${g*8}px`,strokeDashoffset:`-${d/2}px`,transformOrigin:s?"center":void 0,transform:s?`rotate(${s}deg)`:void 0};return{pathString:$,pathStyle:B}}return()=>{const{fillColor:o,railColor:s,strokeWidth:l,offsetDegree:d,status:g,percentage:y,showIndicator:b,indicatorTextColor:C,unit:x,gapOffsetDegree:S,clsPrefix:_}=t,{pathString:w,pathStyle:$}=n(100,0,s),{pathString:I,pathStyle:B}=n(y,d,o),R=100+l;return h("div",{class:`${_}-progress-content`,role:"none"},h("div",{class:`${_}-progress-graph`,"aria-hidden":!0},h("div",{class:`${_}-progress-graph-circle`,style:{transform:S?`rotate(${S}deg)`:void 0}},h("svg",{viewBox:`0 0 ${R} ${R}`},h("g",null,h("path",{class:`${_}-progress-graph-circle-rail`,d:w,"stroke-width":l,"stroke-linecap":"round",fill:"none",style:$})),h("g",null,h("path",{class:[`${_}-progress-graph-circle-fill`,y===0&&`${_}-progress-graph-circle-fill--empty`],d:I,"stroke-width":l,"stroke-linecap":"round",fill:"none",style:B}))))),b?h("div",null,r.default?h("div",{class:`${_}-progress-custom-content`,role:"none"},r.default()):g!=="default"?h("div",{class:`${_}-progress-icon`,"aria-hidden":!0},h(NBaseIcon,{clsPrefix:_},{default:()=>iconMap$1[g]})):h("div",{class:`${_}-progress-text`,style:{color:C},role:"none"},h("span",{class:`${_}-progress-text__percentage`},y),h("span",{class:`${_}-progress-text__unit`},x))):null)}}});function circlePath(t,r,n=100){return`m ${n/2} ${n/2-t} a ${t} ${t} 0 1 1 0 ${2*t} a ${t} ${t} 0 1 1 0 -${2*t}`}var MultipleCircle=defineComponent({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(t,{slots:r}){const n=computed(()=>t.percentage.map((s,l)=>`${Math.PI*s/100*(t.viewBoxWidth/2-t.strokeWidth/2*(1+2*l)-t.circleGap*l)*2}, ${t.viewBoxWidth*8}`));return()=>{const{viewBoxWidth:o,strokeWidth:s,circleGap:l,showIndicator:d,fillColor:g,railColor:y,railStyle:b,percentage:C,clsPrefix:x}=t;return h("div",{class:`${x}-progress-content`,role:"none"},h("div",{class:`${x}-progress-graph`,"aria-hidden":!0},h("div",{class:`${x}-progress-graph-circle`},h("svg",{viewBox:`0 0 ${o} ${o}`},C.map((S,_)=>h("g",{key:_},h("path",{class:`${x}-progress-graph-circle-rail`,d:circlePath(o/2-s/2*(1+2*_)-l*_,s,o),"stroke-width":s,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:y[_]},b[_]]}),h("path",{class:[`${x}-progress-graph-circle-fill`,S===0&&`${x}-progress-graph-circle-fill--empty`],d:circlePath(o/2-s/2*(1+2*_)-l*_,s,o),"stroke-width":s,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[_],strokeDashoffset:0,stroke:g[_]}})))))),d&&r.default?h("div",null,h("div",{class:`${x}-progress-text`},r.default())):null)}}});const progressProps=Object.assign(Object.assign({},useTheme.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 NProgress=defineComponent({name:"Progress",props:progressProps,setup(t){const r=computed(()=>t.indicatorPlacement||t.indicatorPosition),n=computed(()=>{if(t.gapDegree||t.gapDegree===0)return t.gapDegree;if(t.type==="dashboard")return 75}),{mergedClsPrefixRef:o,inlineThemeDisabled:s}=useConfig(t),l=useTheme("Progress","-progress",style$k,progressLight$1,t,o),d=computed(()=>{const{status:y}=t,{common:{cubicBezierEaseInOut:b},self:{fontSize:C,fontSizeCircle:x,railColor:S,railHeight:_,iconSizeCircle:w,iconSizeLine:$,textColorCircle:I,textColorLineInner:B,textColorLineOuter:R,lineBgProcessing:P,fontWeightCircle:M,[createKey("iconColor",y)]:O,[createKey("fillColor",y)]:D}}=l.value;return{"--n-bezier":b,"--n-fill-color":D,"--n-font-size":C,"--n-font-size-circle":x,"--n-font-weight-circle":M,"--n-icon-color":O,"--n-icon-size-circle":w,"--n-icon-size-line":$,"--n-line-bg-processing":P,"--n-rail-color":S,"--n-rail-height":_,"--n-text-color-circle":I,"--n-text-color-line-inner":B,"--n-text-color-line-outer":R}}),g=s?useThemeClass("progress",computed(()=>t.status[0]),d,t):void 0;return{mergedClsPrefix:o,mergedIndicatorPlacement:r,gapDeg:n,cssVars:s?void 0:d,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){const{type:t,cssVars:r,indicatorTextColor:n,showIndicator:o,status:s,railColor:l,railStyle:d,color:g,percentage:y,viewBoxWidth:b,strokeWidth:C,mergedIndicatorPlacement:x,unit:S,borderRadius:_,fillBorderRadius:w,height:$,processing:I,circleGap:B,mergedClsPrefix:R,gapDeg:P,gapOffsetDegree:M,themeClass:O,$slots:D,onRender:N}=this;return N==null||N(),h("div",{class:[O,`${R}-progress`,`${R}-progress--${t}`,`${R}-progress--${s}`],style:r,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":y,role:t==="circle"||t==="line"||t==="dashboard"?"progressbar":"none"},t==="circle"||t==="dashboard"?h(Circle$2,{clsPrefix:R,status:s,showIndicator:o,indicatorTextColor:n,railColor:l,fillColor:g,railStyle:d,offsetDegree:this.offsetDegree,percentage:y,viewBoxWidth:b,strokeWidth:C,gapDegree:P===void 0?t==="dashboard"?75:0:P,gapOffsetDegree:M,unit:S},D):t==="line"?h(Line$4,{clsPrefix:R,status:s,showIndicator:o,indicatorTextColor:n,railColor:l,fillColor:g,railStyle:d,percentage:y,processing:I,indicatorPlacement:x,unit:S,fillBorderRadius:w,railBorderRadius:_,height:$},D):t==="multiple-circle"?h(MultipleCircle,{clsPrefix:R,strokeWidth:C,railColor:l,fillColor:g,railStyle:d,viewBoxWidth:b,percentage:y,showIndicator:o,circleGap:B},D):null)}}),image404=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},h("circle",{fill:"#FFCB4C",cx:"18",cy:"17.018",r:"17"}),h("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"}),h("ellipse",{fill:"#65471B",cx:"13.119",cy:"11.174",rx:"2.125",ry:"2.656"}),h("ellipse",{fill:"#65471B",cx:"24.375",cy:"12.236",rx:"2.125",ry:"2.656"}),h("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"}),h("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"})),image500=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},h("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"}),h("ellipse",{fill:"#664500",cx:"18",cy:"27",rx:"5",ry:"6"}),h("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"})),image418=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},h("ellipse",{fill:"#292F33",cx:"18",cy:"26",rx:"18",ry:"10"}),h("ellipse",{fill:"#66757F",cx:"18",cy:"24",rx:"18",ry:"10"}),h("path",{fill:"#E1E8ED",d:"M18 31C3.042 31 1 16 1 12h34c0 2-1.958 19-17 19z"}),h("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"}),h("ellipse",{fill:"#A6D388",cx:"18",cy:"13",rx:"15",ry:"7"}),h("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"})),image403=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 36 36"},h("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"}),h("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"})),style$j=cB("result",`
|
|
color: var(--n-text-color);
|
|
line-height: var(--n-line-height);
|
|
font-size: var(--n-font-size);
|
|
transition:
|
|
color .3s var(--n-bezier);
|
|
`,[cB("result-icon",`
|
|
display: flex;
|
|
justify-content: center;
|
|
transition: color .3s var(--n-bezier);
|
|
`,[cE("status-image",`
|
|
font-size: var(--n-icon-size);
|
|
width: 1em;
|
|
height: 1em;
|
|
`),cB("base-icon",`
|
|
color: var(--n-icon-color);
|
|
font-size: var(--n-icon-size);
|
|
`)]),cB("result-content",{marginTop:"24px"}),cB("result-footer",`
|
|
margin-top: 24px;
|
|
text-align: center;
|
|
`),cB("result-header",[cE("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);
|
|
`),cE("description",`
|
|
margin-top: 4px;
|
|
text-align: center;
|
|
font-size: var(--n-font-size);
|
|
`)])]);const iconMap={403:image403,404:image404,418:image418,500:image500,info:h(InfoIcon,null),success:h(SuccessIcon,null),warning:h(WarningIcon,null),error:h(ErrorIcon,null)},resultProps=Object.assign(Object.assign({},useTheme.props),{size:{type:String,default:"medium"},status:{type:String,default:"info"},title:String,description:String});var NResult=defineComponent({name:"Result",props:resultProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Result","-result",style$j,resultLight$1,t,r),s=computed(()=>{const{size:d,status:g}=t,{common:{cubicBezierEaseInOut:y},self:{textColor:b,lineHeight:C,titleTextColor:x,titleFontWeight:S,[createKey("iconColor",g)]:_,[createKey("fontSize",d)]:w,[createKey("titleFontSize",d)]:$,[createKey("iconSize",d)]:I}}=o.value;return{"--n-bezier":y,"--n-font-size":w,"--n-icon-size":I,"--n-line-height":C,"--n-text-color":b,"--n-title-font-size":$,"--n-title-font-weight":S,"--n-title-text-color":x,"--n-icon-color":_||""}}),l=n?useThemeClass("result",computed(()=>{const{size:d,status:g}=t;let y="";return d&&(y+=d[0]),g&&(y+=g[0]),y}),s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{status:r,$slots:n,mergedClsPrefix:o,onRender:s}=this;return s==null||s(),h("div",{class:[`${o}-result`,this.themeClass],style:this.cssVars},h("div",{class:`${o}-result-icon`},((t=n.icon)===null||t===void 0?void 0:t.call(n))||h(NBaseIcon,{clsPrefix:o},{default:()=>iconMap[r]})),h("div",{class:`${o}-result-header`},this.title?h("div",{class:`${o}-result-header__title`},this.title):null,this.description?h("div",{class:`${o}-result-header__description`},this.description):null),n.default&&h("div",{class:`${o}-result-content`},n),n.footer&&h("div",{class:`${o}-result-footer`},n.footer()))}});const scrollbarProps=Object.assign(Object.assign({},useTheme.props),{trigger:String,xScrollable:Boolean,onScroll:Function}),Scrollbar=defineComponent({name:"Scrollbar",props:scrollbarProps,setup(){const t=ref(null);return Object.assign(Object.assign({},{scrollTo:(...n)=>{var o;(o=t.value)===null||o===void 0||o.scrollTo(n[0],n[1])},scrollBy:(...n)=>{var o;(o=t.value)===null||o===void 0||o.scrollBy(n[0],n[1])}}),{scrollbarInstRef:t})},render(){return h(NScrollbar$1,Object.assign({ref:"scrollbarInstRef"},this.$props),this.$slots)}});var NScrollbar=Scrollbar;const skeletonDark={name:"Skeleton",common:commonDark,self(t){const{heightSmall:r,heightMedium:n,heightLarge:o,borderRadius:s}=t;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:s,heightSmall:r,heightMedium:n,heightLarge:o}}},self$2=t=>{const{heightSmall:r,heightMedium:n,heightLarge:o,borderRadius:s}=t;return{color:"#eee",colorEnd:"#ddd",borderRadius:s,heightSmall:r,heightMedium:n,heightLarge:o}},skeletonLight={name:"Skeleton",common:commonLight,self:self$2};var style$i=c$1([cB("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);
|
|
`),c$1("@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 skeletonProps=Object.assign(Object.assign({},useTheme.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 NSkeleton=defineComponent({name:"Skeleton",inheritAttrs:!1,props:skeletonProps,setup(t){useHoudini();const{mergedClsPrefixRef:r}=useConfig(t),n=useTheme("Skeleton","-skeleton",style$i,skeletonLight,t,r);return{mergedClsPrefix:r,style:computed(()=>{var o,s;const l=n.value,{common:{cubicBezierEaseInOut:d}}=l,g=l.self,{color:y,colorEnd:b,borderRadius:C}=g;let x;const{circle:S,sharp:_,round:w,width:$,height:I,size:B,text:R,animated:P}=t;B!==void 0&&(x=g[createKey("height",B)]);const M=S?(o=$!=null?$:I)!==null&&o!==void 0?o:x:$,O=(s=S&&$!=null?$:I)!==null&&s!==void 0?s:x;return{display:R?"inline-block":"",verticalAlign:R?"-0.125em":"",borderRadius:S?"50%":w?"4096px":_?"":C,width:typeof M=="number"?pxfy(M):M,height:typeof O=="number"?pxfy(O):O,animation:P?"":"none","--n-bezier":d,"--n-color-start":y,"--n-color-end":b}})}},render(){const{repeat:t,style:r,mergedClsPrefix:n,$attrs:o}=this,s=h("div",mergeProps({class:`${n}-skeleton`,style:r},o));return t>1?h(Fragment,null,Array.apply(null,{length:t}).map(l=>[s,`
|
|
`])):s}});function isTouchEvent(t){return window.TouchEvent&&t instanceof window.TouchEvent}function useRefs(){const t=ref(new Map),r=n=>o=>{t.value.set(n,o)};return onBeforeUpdate(()=>t.value.clear()),[t,r]}var style$h=c$1([cB("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;
|
|
`,[cM("reverse",[cB("slider-handles",[cB("slider-handle-wrapper",`
|
|
transform: translate(50%, -50%);
|
|
`)]),cB("slider-dots",[cB("slider-dot",`
|
|
transform: translateX(50%, -50%);
|
|
`)]),cM("vertical",[cB("slider-handles",[cB("slider-handle-wrapper",`
|
|
transform: translate(-50%, -50%);
|
|
`)]),cB("slider-marks",[cB("slider-mark",`
|
|
transform: translateY(calc(-50% + var(--n-dot-height) / 2));
|
|
`)]),cB("slider-dots",[cB("slider-dot",`
|
|
transform: translateX(-50%) translateY(0);
|
|
`)])])]),cM("vertical",`
|
|
padding: 0 calc((var(--n-handle-size) - var(--n-rail-height)) / 2);
|
|
width: var(--n-rail-width-vertical);
|
|
height: 100%;
|
|
`,[cB("slider-handles",`
|
|
top: calc(var(--n-handle-size) / 2);
|
|
right: 0;
|
|
bottom: calc(var(--n-handle-size) / 2);
|
|
left: 0;
|
|
`,[cB("slider-handle-wrapper",`
|
|
top: unset;
|
|
left: 50%;
|
|
transform: translate(-50%, 50%);
|
|
`)]),cB("slider-rail",`
|
|
height: 100%;
|
|
`,[cE("fill",`
|
|
top: unset;
|
|
right: 0;
|
|
bottom: unset;
|
|
left: 0;
|
|
`)]),cM("with-mark",`
|
|
width: var(--n-rail-width-vertical);
|
|
margin: 0 32px 0 8px;
|
|
`),cB("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);
|
|
`,[cB("slider-mark",`
|
|
transform: translateY(50%);
|
|
white-space: nowrap;
|
|
`)]),cB("slider-dots",`
|
|
top: calc(var(--n-handle-size) / 2);
|
|
right: unset;
|
|
bottom: calc(var(--n-handle-size) / 2);
|
|
left: 50%;
|
|
`,[cB("slider-dot",`
|
|
transform: translateX(-50%) translateY(50%);
|
|
`)])]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
opacity: var(--n-opacity-disabled);
|
|
`,[cB("slider-handle",`
|
|
cursor: not-allowed;
|
|
`)]),cM("with-mark",`
|
|
width: 100%;
|
|
margin: 8px 0 32px 0;
|
|
`),c$1("&:hover",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cM("active",[cB("slider-rail",{backgroundColor:"var(--n-rail-color-hover)"},[cE("fill",{backgroundColor:"var(--n-fill-color-hover)"})]),cB("slider-handle",{boxShadow:"var(--n-handle-box-shadow-hover)"})]),cB("slider-marks",`
|
|
position: absolute;
|
|
top: 18px;
|
|
left: calc(var(--n-handle-size) / 2);
|
|
right: calc(var(--n-handle-size) / 2);
|
|
`,[cB("slider-mark",`
|
|
position: absolute;
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
`)]),cB("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);
|
|
`,[cE("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);
|
|
`)]),cB("slider-handles",`
|
|
position: absolute;
|
|
top: 0;
|
|
right: calc(var(--n-handle-size) / 2);
|
|
bottom: 0;
|
|
left: calc(var(--n-handle-size) / 2);
|
|
`,[cB("slider-handle-wrapper",`
|
|
outline: none;
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translate(-50%, -50%);
|
|
cursor: pointer;
|
|
display: flex;
|
|
`,[cB("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);
|
|
`,[c$1("&:hover",`
|
|
box-shadow: var(--n-handle-box-shadow-hover);
|
|
`)]),c$1("&:focus",[cB("slider-handle",`
|
|
box-shadow: var(--n-handle-box-shadow-focus);
|
|
`,[c$1("&:hover",`
|
|
box-shadow: var(--n-handle-box-shadow-active);
|
|
`)])])])]),cB("slider-dots",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: calc(var(--n-handle-size) / 2);
|
|
right: calc(var(--n-handle-size) / 2);
|
|
`,[cM("transition-disabled",[cB("slider-dot","transition: none;")]),cB("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);
|
|
`,[cM("active","border: var(--n-dot-border-active);")])])]),cB("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);
|
|
`,[fadeInScaleUpTransition()]),cB("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);
|
|
`,[cM("top",`
|
|
margin-bottom: 12px;
|
|
`),cM("right",`
|
|
margin-left: 12px;
|
|
`),cM("bottom",`
|
|
margin-top: 12px;
|
|
`),cM("left",`
|
|
margin-right: 12px;
|
|
`),fadeInScaleUpTransition()]),insideModal(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-modal);")])),insidePopover(cB("slider",[cB("slider-dot","background-color: var(--n-dot-color-popover);")]))]);const eventButtonLeft=0,sliderProps=Object.assign(Object.assign({},useTheme.props),{to:useAdjustedTo.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 NSlider=defineComponent({name:"Slider",props:sliderProps,setup(t){const{mergedClsPrefixRef:r,namespaceRef:n,inlineThemeDisabled:o}=useConfig(t),s=useTheme("Slider","-slider",style$h,sliderLight$1,t,r),l=ref(null),[d,g]=useRefs(),[y,b]=useRefs(),C=ref(new Set),x=useFormItem(t),{mergedDisabledRef:S}=x,_=computed(()=>{const{step:de}=t;if(de<=0||de==="mark")return 0;const be=de.toString();let we=0;return be.includes(".")&&(we=be.length-be.indexOf(".")-1),we}),w=ref(t.defaultValue),$=toRef(t,"value"),I=useMergedState($,w),B=computed(()=>{const{value:de}=I;return(t.range?de:[de]).map(ue)}),R=computed(()=>B.value.length>2),P=computed(()=>t.placement===void 0?t.vertical?"right":"top":t.placement),M=computed(()=>{const{marks:de}=t;return de?Object.keys(de).map(parseFloat):null}),O=ref(-1),D=ref(-1),N=ref(-1),H=ref(!1),Q=ref(!1),G=computed(()=>{const{vertical:de,reverse:be}=t;return de?be?"top":"bottom":be?"right":"left"}),K=computed(()=>{if(R.value)return;const de=B.value,be=Ae(t.range?Math.min(...de):t.min),we=Ae(t.range?Math.max(...de):de[0]),{value:Me}=G;return t.vertical?{[Me]:`${be}%`,height:`${we-be}%`}:{[Me]:`${be}%`,width:`${we-be}%`}}),W=computed(()=>{const de=[],{marks:be}=t;if(be){const we=B.value.slice();we.sort((tt,st)=>tt-st);const{value:Me}=G,{value:Ue}=R,{range:Ge}=t,Ze=Ue?()=>!1:tt=>Ge?tt>=we[0]&&tt<=we[we.length-1]:tt<=we[0];for(const tt of Object.keys(be)){const st=Number(tt);de.push({active:Ze(st),label:be[tt],style:{[Me]:`${Ae(st)}%`}})}}return de});function j(de,be){const we=Ae(de),{value:Me}=G;return{[Me]:`${we}%`,zIndex:be===O.value?1:0}}function Y(de){return t.showTooltip||N.value===de||O.value===de&&H.value}function q(de){return H.value?!(O.value===de&&D.value===de):!0}function X(de){var be;~de&&(O.value=de,(be=d.value.get(de))===null||be===void 0||be.focus())}function re(){y.value.forEach((de,be)=>{Y(be)&&de.syncPosition()})}function te(de){const{"onUpdate:value":be,onUpdateValue:we}=t,{nTriggerFormInput:Me,nTriggerFormChange:Ue}=x;we&&call(we,de),be&&call(be,de),w.value=de,Me(),Ue()}function oe(de){const{range:be}=t;if(be){if(Array.isArray(de)){const{value:we}=B;de.join()!==we.join()&&te(de)}}else Array.isArray(de)||B.value[0]!==de&&te(de)}function ae(de,be){if(t.range){const we=B.value.slice();we.splice(be,1,de),oe(we)}else oe(de)}function se(de,be,we){const Me=we!==void 0;we||(we=de-be>0?1:-1);const Ue=M.value||[],{step:Ge}=t;if(Ge==="mark"){const st=Ce(de,Ue.concat(be),Me?we:void 0);return st?st.value:be}if(Ge<=0)return be;const{value:Ze}=_;let tt;if(Me){const st=Number((be/Ge).toFixed(Ze)),We=Math.floor(st),Je=st>We?We:We-1,Ye=st<We?We:We+1;tt=Ce(be,[Number((Je*Ge).toFixed(Ze)),Number((Ye*Ge).toFixed(Ze)),...Ue],we)}else{const st=he(de);tt=Ce(de,[...Ue,st])}return tt?ue(tt.value):be}function ue(de){return Math.min(t.max,Math.max(t.min,de))}function Ae(de){const{max:be,min:we}=t;return(de-we)/(be-we)*100}function pe(de){const{max:be,min:we}=t;return we+(be-we)*de}function he(de){const{step:be,min:we}=t;if(be<=0||be==="mark")return de;const Me=Math.round((de-we)/be)*be+we;return Number(Me.toFixed(_.value))}function Ce(de,be=M.value,we){if(!(be!=null&&be.length))return null;let Me=null,Ue=-1;for(;++Ue<be.length;){const Ge=be[Ue]-de,Ze=Math.abs(Ge);(we===void 0||Ge*we>0)&&(Me===null||Ze<Me.distance)&&(Me={index:Ue,distance:Ze,value:be[Ue]})}return Me}function ve(de){const be=l.value;if(!be)return;const we=isTouchEvent(de)?de.touches[0]:de,Me=be.getBoundingClientRect();let Ue;return t.vertical?Ue=(Me.bottom-we.clientY)/Me.height:Ue=(we.clientX-Me.left)/Me.width,t.reverse&&(Ue=1-Ue),pe(Ue)}function ye(de){if(S.value||!t.keyboard)return;const{vertical:be,reverse:we}=t;switch(de.key){case"ArrowUp":de.preventDefault(),Be(be&&we?-1:1);break;case"ArrowRight":de.preventDefault(),Be(!be&&we?-1:1);break;case"ArrowDown":de.preventDefault(),Be(be&&we?1:-1);break;case"ArrowLeft":de.preventDefault(),Be(!be&&we?1:-1);break}}function Be(de){const be=O.value;if(be===-1)return;const{step:we}=t,Me=B.value[be],Ue=we<=0||we==="mark"?Me:Me+we*de;ae(se(Ue,Me,de>0?1:-1),be)}function Se(de){var be,we;if(S.value||!isTouchEvent(de)&&de.button!==eventButtonLeft)return;const Me=ve(de);if(Me===void 0)return;const Ue=B.value.slice(),Ge=t.range?(we=(be=Ce(Me,Ue))===null||be===void 0?void 0:be.index)!==null&&we!==void 0?we:-1:0;Ge!==-1&&(de.preventDefault(),X(Ge),Ee(),ae(se(Me,B.value[Ge]),Ge))}function Ee(){H.value||(H.value=!0,on("touchend",document,J),on("mouseup",document,J),on("touchmove",document,ee),on("mousemove",document,ee))}function ie(){H.value&&(H.value=!1,off("touchend",document,J),off("mouseup",document,J),off("touchmove",document,ee),off("mousemove",document,ee))}function ee(de){const{value:be}=O;if(!H.value||be===-1){ie();return}const we=ve(de);ae(se(we,B.value[be]),be)}function J(){ie()}function ce(de){O.value=de,S.value||(N.value=de)}function fe(de){O.value===de&&(O.value=-1,ie()),N.value===de&&(N.value=-1)}function ne(de){N.value=de}function le(de){N.value===de&&(N.value=-1)}watch(O,(de,be)=>void nextTick(()=>D.value=be)),watch(I,()=>{if(t.marks){if(Q.value)return;Q.value=!0,nextTick(()=>{Q.value=!1})}nextTick(re)}),onBeforeUnmount(()=>{ie()});const me=computed(()=>{const{self:{markFontSize:de,railColor:be,railColorHover:we,fillColor:Me,fillColorHover:Ue,handleColor:Ge,opacityDisabled:Ze,dotColor:tt,dotColorModal:st,handleBoxShadow:We,handleBoxShadowHover:Je,handleBoxShadowActive:Ye,handleBoxShadowFocus:Xe,dotBorder:_e,dotBoxShadow:xe,railHeight:Le,railWidthVertical:Ve,handleSize:ze,dotHeight:Re,dotWidth:Ne,dotBorderRadius:je,fontSize:nt,dotBorderActive:De,dotColorPopover:Qe},common:{cubicBezierEaseInOut:Pe}}=s.value;return{"--n-bezier":Pe,"--n-dot-border":_e,"--n-dot-border-active":De,"--n-dot-border-radius":je,"--n-dot-box-shadow":xe,"--n-dot-color":tt,"--n-dot-color-modal":st,"--n-dot-color-popover":Qe,"--n-dot-height":Re,"--n-dot-width":Ne,"--n-fill-color":Me,"--n-fill-color-hover":Ue,"--n-font-size":nt,"--n-handle-box-shadow":We,"--n-handle-box-shadow-active":Ye,"--n-handle-box-shadow-focus":Xe,"--n-handle-box-shadow-hover":Je,"--n-handle-color":Ge,"--n-handle-size":ze,"--n-opacity-disabled":Ze,"--n-rail-color":be,"--n-rail-color-hover":we,"--n-rail-height":Le,"--n-rail-width-vertical":Ve,"--n-mark-font-size":de}}),Te=o?useThemeClass("slider",void 0,me,t):void 0,ge=computed(()=>{const{self:{fontSize:de,indicatorColor:be,indicatorBoxShadow:we,indicatorTextColor:Me,indicatorBorderRadius:Ue}}=s.value;return{"--n-font-size":de,"--n-indicator-border-radius":Ue,"--n-indicator-box-shadow":we,"--n-indicator-color":be,"--n-indicator-text-color":Me}}),$e=o?useThemeClass("slider-indicator",void 0,ge,t):void 0;return{mergedClsPrefix:r,namespace:n,uncontrolledValue:w,mergedValue:I,mergedDisabled:S,mergedPlacement:P,isMounted:isMounted(),adjustedTo:useAdjustedTo(t),dotTransitionDisabled:Q,markInfos:W,isShowTooltip:Y,shouldKeepTooltipTransition:q,handleRailRef:l,setHandleRefs:g,setFollowerRefs:b,fillStyle:K,getHandleStyle:j,activeIndex:O,arrifiedValues:B,followerEnabledIndexSet:C,handleRailMouseDown:Se,handleHandleFocus:ce,handleHandleBlur:fe,handleHandleMouseEnter:ne,handleHandleMouseLeave:le,handleRailKeyDown:ye,indicatorCssVars:o?void 0:ge,indicatorThemeClass:$e==null?void 0:$e.themeClass,indicatorOnRender:$e==null?void 0:$e.onRender,cssVars:o?void 0:me,themeClass:Te==null?void 0:Te.themeClass,onRender:Te==null?void 0:Te.onRender}},render(){var t;const{mergedClsPrefix:r,themeClass:n,formatTooltip:o}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${r}-slider`,n,{[`${r}-slider--disabled`]:this.mergedDisabled,[`${r}-slider--active`]:this.activeIndex!==-1,[`${r}-slider--with-mark`]:this.marks,[`${r}-slider--vertical`]:this.vertical,[`${r}-slider--reverse`]:this.reverse}],style:this.cssVars,onKeydown:this.handleRailKeyDown,onMousedown:this.handleRailMouseDown,onTouchstart:this.handleRailMouseDown},h("div",{class:`${r}-slider-rail`},h("div",{class:`${r}-slider-rail__fill`,style:this.fillStyle}),this.marks?h("div",{class:[`${r}-slider-dots`,this.dotTransitionDisabled&&`${r}-slider-dots--transition-disabled`]},this.markInfos.map(s=>h("div",{key:s.label,class:[`${r}-slider-dot`,{[`${r}-slider-dot--active`]:s.active}],style:s.style}))):null,h("div",{ref:"handleRailRef",class:`${r}-slider-handles`},this.arrifiedValues.map((s,l)=>{const d=this.isShowTooltip(l);return h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h("div",{ref:this.setHandleRefs(l),class:`${r}-slider-handle-wrapper`,tabindex:this.mergedDisabled?-1:0,style:this.getHandleStyle(s,l),onFocus:()=>this.handleHandleFocus(l),onBlur:()=>this.handleHandleBlur(l),onMouseenter:()=>this.handleHandleMouseEnter(l),onMouseleave:()=>this.handleHandleMouseLeave(l)},resolveSlot(this.$slots.thumb,()=>[h("div",{class:`${r}-slider-handle`})]))}),this.tooltip&&h(VFollower,{ref:this.setFollowerRefs(l),show:d,to:this.adjustedTo,enabled:this.showTooltip&&!this.range||this.followerEnabledIndexSet.has(l),teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,placement:this.mergedPlacement,containerClass:this.namespace},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,css:this.shouldKeepTooltipTransition(l),onEnter:()=>{this.followerEnabledIndexSet.add(l)},onAfterLeave:()=>{this.followerEnabledIndexSet.delete(l)}},{default:()=>{var g;return d?((g=this.indicatorOnRender)===null||g===void 0||g.call(this),h("div",{class:[`${r}-slider-handle-indicator`,this.indicatorThemeClass,`${r}-slider-handle-indicator--${this.mergedPlacement}`],style:this.indicatorCssVars},typeof o=="function"?o(s):s)):null}})})]})})),this.marks?h("div",{class:`${r}-slider-marks`},this.markInfos.map(s=>h("div",{key:s.label,class:`${r}-slider-mark`,style:s.style},s.label))):null))}}),style$g=c$1([c$1("@keyframes spin-rotate",`
|
|
from {
|
|
transform: rotate(0);
|
|
}
|
|
to {
|
|
transform: rotate(360deg);
|
|
}
|
|
`),cB("spin-container",{position:"relative"},[cB("spin-body",`
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(-50%);
|
|
`,[fadeInTransition()])]),cB("spin-body",`
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-direction: column;
|
|
`),cB("spin",`
|
|
display: inline-flex;
|
|
height: var(--n-size);
|
|
width: var(--n-size);
|
|
font-size: var(--n-size);
|
|
color: var(--n-color);
|
|
`,[cM("rotate",`
|
|
animation: spin-rotate 2s linear infinite;
|
|
`)]),cB("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;
|
|
`),cB("spin-content",`
|
|
opacity: 1;
|
|
transition: opacity .3s var(--n-bezier);
|
|
pointer-events: all;
|
|
`,[cM("spinning",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
pointer-events: none;
|
|
opacity: var(--n-opacity-spinning);
|
|
`)])]);const STROKE_WIDTH={small:20,medium:18,large:16},spinProps=Object.assign(Object.assign({},useTheme.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 NSpin=defineComponent({name:"Spin",props:spinProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Spin","-spin",style$g,spinLight$1,t,r),s=computed(()=>{const{size:d}=t,{common:{cubicBezierEaseInOut:g},self:y}=o.value,{opacitySpinning:b,color:C,textColor:x}=y,S=typeof d=="number"?pxfy(d):y[createKey("size",d)];return{"--n-bezier":g,"--n-opacity-spinning":b,"--n-size":S,"--n-color":C,"--n-text-color":x}}),l=n?useThemeClass("spin",computed(()=>{const{size:d}=t;return typeof d=="number"?String(d):d[0]}),s,t):void 0;return{mergedClsPrefix:r,compitableShow:useCompitable(t,["spinning","show"]),mergedStrokeWidth:computed(()=>{const{strokeWidth:d}=t;if(d!==void 0)return d;const{size:g}=t;return STROKE_WIDTH[typeof g=="number"?"medium":g]}),cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t,r;const{$slots:n,mergedClsPrefix:o,description:s}=this,l=n.icon&&this.rotate,d=(s||n.description)&&h("div",{class:`${o}-spin-description`},s||((t=n.description)===null||t===void 0?void 0:t.call(n))),g=n.icon?h("div",{class:[`${o}-spin-body`,this.themeClass]},h("div",{class:[`${o}-spin`,l&&`${o}-spin--rotate`],style:n.default?"":this.cssVars},n.icon()),d):h("div",{class:[`${o}-spin-body`,this.themeClass]},h(NBaseLoading,{clsPrefix:o,style:n.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${o}-spin`}),d);return(r=this.onRender)===null||r===void 0||r.call(this),n.default?h("div",{class:[`${o}-spin-container`,this.themeClass],style:this.cssVars},h("div",{class:[`${o}-spin-content`,this.compitableShow&&`${o}-spin-content--spinning`]},n),h(Transition,{name:"fade-in-transition"},{default:()=>this.compitableShow?g:null})):g}}),style$f=cB("statistic",[cE("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);
|
|
`),cB("statistic-value",`
|
|
margin-top: 4px;
|
|
font-weight: var(--n-value-font-weight);
|
|
`,[cE("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);
|
|
`,[cB("icon",{verticalAlign:"-0.125em"})]),cE("content",`
|
|
font-size: var(--n-value-font-size);
|
|
transition: .3s color var(--n-bezier);
|
|
color: var(--n-value-text-color);
|
|
`),cE("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);
|
|
`,[cB("icon",{verticalAlign:"-0.125em"})])])]);const statisticProps=Object.assign(Object.assign({},useTheme.props),{tabularNums:Boolean,label:String,value:[String,Number]});var NStatistic=defineComponent({name:"Statistic",props:statisticProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=useConfig(t),s=useTheme("Statistic","-statistic",style$f,statisticLight$1,t,r),l=useRtl("Statistic",o,r),d=computed(()=>{const{self:{labelFontWeight:y,valueFontSize:b,valueFontWeight:C,valuePrefixTextColor:x,labelTextColor:S,valueSuffixTextColor:_,valueTextColor:w,labelFontSize:$},common:{cubicBezierEaseInOut:I}}=s.value;return{"--n-bezier":I,"--n-label-font-size":$,"--n-label-font-weight":y,"--n-label-text-color":S,"--n-value-font-weight":C,"--n-value-font-size":b,"--n-value-prefix-text-color":x,"--n-value-suffix-text-color":_,"--n-value-text-color":w}}),g=n?useThemeClass("statistic",void 0,d,t):void 0;return{rtlEnabled:l,mergedClsPrefix:r,cssVars:n?void 0:d,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){var t;const{mergedClsPrefix:r,$slots:{default:n,label:o,prefix:s,suffix:l}}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("div",{class:[`${r}-statistic`,this.themeClass,this.rtlEnabled&&`${r}-statistic--rtl`],style:this.cssVars},resolveWrappedSlot(o,d=>h("div",{class:`${r}-statistic__label`},this.label||d)),h("div",{class:`${r}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},resolveWrappedSlot(s,d=>d&&h("span",{class:`${r}-statistic-value__prefix`},d)),this.value!==void 0?h("span",{class:`${r}-statistic-value__content`},this.value):resolveWrappedSlot(n,d=>d&&h("span",{class:`${r}-statistic-value__content`},d)),resolveWrappedSlot(l,d=>d&&h("span",{class:`${r}-statistic-value__suffix`},d))))}}),style$e=cB("steps",`
|
|
width: 100%;
|
|
display: flex;
|
|
`,[cB("step",`
|
|
position: relative;
|
|
display: flex;
|
|
flex: 1;
|
|
`,[cM("disabled","cursor: not-allowed"),cM("clickable",`
|
|
cursor: pointer;
|
|
`),c$1("&:last-child",[cB("step-splitor","display: none;")])]),cB("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);
|
|
`),cB("step-content","flex: 1;",[cB("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);
|
|
`,[cE("title",`
|
|
white-space: nowrap;
|
|
flex: 0;
|
|
`)]),cE("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);
|
|
`)]),cB("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);
|
|
`,[cB("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);
|
|
`,[cE("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);
|
|
`,[iconSwitchTransition()]),cB("icon",`
|
|
color: var(--n-indicator-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[iconSwitchTransition()]),cB("base-icon",`
|
|
color: var(--n-indicator-text-color);
|
|
transition: color .3s var(--n-bezier);
|
|
`,[iconSwitchTransition()])])]),cM("vertical","flex-direction: column;",[cNotM("show-description",[c$1(">",[cB("step","padding-bottom: 8px;")])]),c$1(">",[cB("step","margin-bottom: 16px;",[c$1("&:last-child","margin-bottom: 0;"),c$1(">",[cB("step-indicator",[c$1(">",[cB("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));
|
|
`)])]),cB("step-content",[cE("description","margin-top: 8px;")])])])])])]);function stepWithIndex(t,r){return typeof t!="object"||t===null||Array.isArray(t)?null:(t.props||(t.props={}),t.props.internalIndex=r+1,t)}function stepsWithIndex(t){return t.map((r,n)=>stepWithIndex(r,n))}const stepsProps=Object.assign(Object.assign({},useTheme.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),stepsInjectionKey="n-steps";var NSteps=defineComponent({name:"Steps",props:stepsProps,setup(t,{slots:r}){const{mergedClsPrefixRef:n,mergedRtlRef:o}=useConfig(t),s=useRtl("Steps",o,n),l=useTheme("Steps","-steps",style$e,stepsLight$1,t,n);return provide(stepsInjectionKey,{props:t,mergedThemeRef:l,mergedClsPrefixRef:n,stepsSlots:r}),{mergedClsPrefix:n,rtlEnabled:s}},render(){const{mergedClsPrefix:t}=this;return h("div",{class:[`${t}-steps`,this.rtlEnabled&&`${t}-steps--rtl`,this.vertical&&`${t}-steps--vertical`]},stepsWithIndex(flatten$5(getSlot$1(this))))}});const stepProps={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}};var NStep=defineComponent({name:"Step",props:stepProps,setup(t){const r=inject(stepsInjectionKey,null);r||throwError$1("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=useConfig(),{props:o,mergedThemeRef:s,mergedClsPrefixRef:l,stepsSlots:d}=r,g=computed(()=>o.vertical),y=computed(()=>{const{status:S}=t;if(S)return S;{const{internalIndex:_}=t,{current:w}=o;if(w===void 0)return"process";if(_<w)return"finish";if(_===w)return o.status||"process";if(_>w)return"wait"}return"process"}),b=computed(()=>{const{value:S}=y,{size:_}=o,{common:{cubicBezierEaseInOut:w},self:{stepHeaderFontWeight:$,[createKey("stepHeaderFontSize",_)]:I,[createKey("indicatorIndexFontSize",_)]:B,[createKey("indicatorSize",_)]:R,[createKey("indicatorIconSize",_)]:P,[createKey("indicatorTextColor",S)]:M,[createKey("indicatorBorderColor",S)]:O,[createKey("headerTextColor",S)]:D,[createKey("splitorColor",S)]:N,[createKey("indicatorColor",S)]:H,[createKey("descriptionTextColor",S)]:Q}}=s.value;return{"--n-bezier":w,"--n-description-text-color":Q,"--n-header-text-color":D,"--n-indicator-border-color":O,"--n-indicator-color":H,"--n-indicator-icon-size":P,"--n-indicator-index-font-size":B,"--n-indicator-size":R,"--n-indicator-text-color":M,"--n-splitor-color":N,"--n-step-header-font-size":I,"--n-step-header-font-weight":$}}),C=n?useThemeClass("step",computed(()=>{const{value:S}=y,{size:_}=o;return`${S[0]}${_[0]}`}),b,o):void 0,x=computed(()=>{if(t.disabled)return;const{onUpdateCurrent:S,"onUpdate:current":_}=o;return S||_?()=>{S&&call(S,t.internalIndex),_&&call(_,t.internalIndex)}:void 0});return{stepsSlots:d,mergedClsPrefix:l,vertical:g,mergedStatus:y,handleStepClick:x,cssVars:n?void 0:b,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){const{mergedClsPrefix:t,onRender:r,handleStepClick:n,disabled:o}=this,s=resolveWrappedSlot(this.$slots.default,l=>{const d=l||this.description;return d?h("div",{class:`${t}-step-content__description`},d):null});return r==null||r(),h("div",{class:[`${t}-step`,o&&`${t}-step--disabled`,!o&&n&&`${t}-step--clickable`,this.themeClass,s&&`${t}-step--show-description`,`${t}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},h("div",{class:`${t}-step-indicator`},h("div",{class:`${t}-step-indicator-slot`},h(NIconSwitchTransition,null,{default:()=>resolveWrappedSlot(this.$slots.icon,l=>{const{mergedStatus:d,stepsSlots:g}=this;return d==="finish"||d==="error"?d==="finish"?h(NBaseIcon,{clsPrefix:t,key:"finish"},{default:()=>resolveSlot(g["finish-icon"],()=>[h(FinishedIcon,null)])}):d==="error"?h(NBaseIcon,{clsPrefix:t,key:"error"},{default:()=>resolveSlot(g["error-icon"],()=>[h(ErrorIcon$1,null)])}):null:l||h("div",{key:this.internalIndex,class:`${t}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?h("div",{class:`${t}-step-splitor`}):null),h("div",{class:`${t}-step-content`},h("div",{class:`${t}-step-content-header`},h("div",{class:`${t}-step-content-header__title`},resolveSlot(this.$slots.title,()=>[this.title])),this.vertical?null:h("div",{class:`${t}-step-splitor`})),s))}}),style$d=cB("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;
|
|
`,[cE("children-placeholder",`
|
|
height: var(--n-rail-height);
|
|
display: flex;
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
visibility: hidden;
|
|
`),cE("rail-placeholder",`
|
|
display: flex;
|
|
flex-wrap: none;
|
|
`),cE("button-placeholder",`
|
|
width: calc(1.75 * var(--n-rail-height));
|
|
height: var(--n-rail-height);
|
|
`),cB("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);
|
|
`,[iconSwitchTransition({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),cE("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;
|
|
`),cE("checked",`
|
|
right: 0;
|
|
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
|
`),cE("unchecked",`
|
|
left: 0;
|
|
justify-content: flex-end;
|
|
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
|
`),c$1("&:focus",[cE("rail",`
|
|
box-shadow: var(--n-box-shadow-focus);
|
|
`)]),cM("round",[cE("rail","border-radius: calc(var(--n-rail-height) / 2);",[cE("button","border-radius: calc(var(--n-button-height) / 2);")])]),cNotM("disabled",[cNotM("icon",[cM("rubber-band",[cM("pressed",[cE("rail",[cE("button","max-width: var(--n-button-width-pressed);")])]),cE("rail",[c$1("&:active",[cE("button","max-width: var(--n-button-width-pressed);")])]),cM("active",[cM("pressed",[cE("rail",[cE("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])]),cE("rail",[c$1("&:active",[cE("button","left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));")])])])])])]),cM("active",[cE("rail",[cE("button","left: calc(100% - var(--n-button-width) - var(--n-offset))")])]),cE("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);
|
|
`,[cE("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;
|
|
`,[iconSwitchTransition()]),cE("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);
|
|
`)]),cM("active",[cE("rail","background-color: var(--n-rail-color-active);")]),cM("loading",[cE("rail",`
|
|
cursor: wait;
|
|
`)]),cM("disabled",[cE("rail",`
|
|
cursor: not-allowed;
|
|
opacity: .5;
|
|
`)])]);const switchProps=Object.assign(Object.assign({},useTheme.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 supportCssMax;var NSwitch=defineComponent({name:"Switch",props:switchProps,setup(t){supportCssMax===void 0&&(typeof CSS!="undefined"?typeof CSS.supports!="undefined"?supportCssMax=CSS.supports("width","max(1px)"):supportCssMax=!1:supportCssMax=!0);const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Switch","-switch",style$d,switchLight$1,t,r),s=useFormItem(t),{mergedSizeRef:l,mergedDisabledRef:d}=s,g=ref(t.defaultValue),y=toRef(t,"value"),b=useMergedState(y,g),C=computed(()=>b.value===t.checkedValue),x=ref(!1),S=ref(!1),_=computed(()=>{const{railStyle:H}=t;if(!!H)return H({focused:S.value,checked:C.value})});function w(H){const{"onUpdate:value":Q,onChange:G,onUpdateValue:K}=t,{nTriggerFormInput:W,nTriggerFormChange:j}=s;Q&&call(Q,H),K&&call(K,H),G&&call(G,H),g.value=H,W(),j()}function $(){const{nTriggerFormFocus:H}=s;H()}function I(){const{nTriggerFormBlur:H}=s;H()}function B(){t.loading||d.value||(b.value!==t.checkedValue?w(t.checkedValue):w(t.uncheckedValue))}function R(){S.value=!0,$()}function P(){S.value=!1,I(),x.value=!1}function M(H){t.loading||d.value||H.key===" "&&(b.value!==t.checkedValue?w(t.checkedValue):w(t.uncheckedValue),x.value=!1)}function O(H){t.loading||d.value||H.key===" "&&(H.preventDefault(),x.value=!0)}const D=computed(()=>{const{value:H}=l,{self:{opacityDisabled:Q,railColor:G,railColorActive:K,buttonBoxShadow:W,buttonColor:j,boxShadowFocus:Y,loadingColor:q,textColor:X,iconColor:re,[createKey("buttonHeight",H)]:te,[createKey("buttonWidth",H)]:oe,[createKey("buttonWidthPressed",H)]:ae,[createKey("railHeight",H)]:se,[createKey("railWidth",H)]:ue,[createKey("railBorderRadius",H)]:Ae,[createKey("buttonBorderRadius",H)]:pe},common:{cubicBezierEaseInOut:he}}=o.value;let Ce,ve,ye;return supportCssMax?(Ce=`calc((${se} - ${te}) / 2)`,ve=`max(${se}, ${te})`,ye=`max(${ue}, calc(${ue} + ${te} - ${se}))`):(Ce=pxfy((depx(se)-depx(te))/2),ve=pxfy(Math.max(depx(se),depx(te))),ye=depx(se)>depx(te)?ue:pxfy(depx(ue)+depx(te)-depx(se))),{"--n-bezier":he,"--n-button-border-radius":pe,"--n-button-box-shadow":W,"--n-button-color":j,"--n-button-width":oe,"--n-button-width-pressed":ae,"--n-button-height":te,"--n-height":ve,"--n-offset":Ce,"--n-opacity-disabled":Q,"--n-rail-border-radius":Ae,"--n-rail-color":G,"--n-rail-color-active":K,"--n-rail-height":se,"--n-rail-width":ue,"--n-width":ye,"--n-box-shadow-focus":Y,"--n-loading-color":q,"--n-text-color":X,"--n-icon-color":re}}),N=n?useThemeClass("switch",computed(()=>l.value[0]),D,t):void 0;return{handleClick:B,handleBlur:P,handleFocus:R,handleKeyup:M,handleKeydown:O,mergedRailStyle:_,pressed:x,mergedClsPrefix:r,mergedValue:b,checked:C,mergedDisabled:d,cssVars:n?void 0:D,themeClass:N==null?void 0:N.themeClass,onRender:N==null?void 0:N.onRender}},render(){const{mergedClsPrefix:t,mergedDisabled:r,checked:n,mergedRailStyle:o,onRender:s,$slots:l}=this;s==null||s();const{checked:d,unchecked:g,icon:y,"checked-icon":b,"unchecked-icon":C}=l,x=!(isSlotEmpty(y)&&isSlotEmpty(b)&&isSlotEmpty(C));return h("div",{role:"switch","aria-checked":n,class:[`${t}-switch`,this.themeClass,x&&`${t}-switch--icon`,n&&`${t}-switch--active`,r&&`${t}-switch--disabled`,this.round&&`${t}-switch--round`,this.loading&&`${t}-switch--loading`,this.pressed&&`${t}-switch--pressed`,this.rubberBand&&`${t}-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},h("div",{class:`${t}-switch__rail`,"aria-hidden":"true",style:o},resolveWrappedSlot(d,S=>resolveWrappedSlot(g,_=>S||_?h("div",{"aria-hidden":!0,class:`${t}-switch__children-placeholder`},h("div",{class:`${t}-switch__rail-placeholder`},h("div",{class:`${t}-switch__button-placeholder`}),S),h("div",{class:`${t}-switch__rail-placeholder`},h("div",{class:`${t}-switch__button-placeholder`}),_)):null)),h("div",{class:`${t}-switch__button`},resolveWrappedSlot(y,S=>resolveWrappedSlot(b,_=>resolveWrappedSlot(C,w=>h(NIconSwitchTransition,null,{default:()=>this.loading?h(NBaseLoading,{key:"loading",clsPrefix:t,strokeWidth:20}):this.checked&&(_||S)?h("div",{class:`${t}-switch__button-icon`,key:_?"checked-icon":"icon"},_||S):!this.checked&&(w||S)?h("div",{class:`${t}-switch__button-icon`,key:w?"unchecked-icon":"icon"},w||S):null})))),resolveWrappedSlot(d,S=>S&&h("div",{key:"checked",class:`${t}-switch__checked`},S)),resolveWrappedSlot(g,S=>S&&h("div",{key:"unchecked",class:`${t}-switch__unchecked`},S)))))}}),style$c=c$1([cB("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);
|
|
`,[c$1("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);
|
|
`,[c$1("&:last-child",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`)]),c$1("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);
|
|
`,[c$1("&:last-child",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`)]),cM("bordered",`
|
|
border: 1px solid var(--n-merged-border-color);
|
|
border-radius: var(--n-border-radius);
|
|
`,[c$1("tr",[c$1("&:last-child",[c$1("td",`
|
|
border-bottom: 0 solid var(--n-merged-border-color);
|
|
`)])])]),cM("single-line",[c$1("th",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`),c$1("td",`
|
|
border-right: 0px solid var(--n-merged-border-color);
|
|
`)]),cM("single-column",[c$1("tr",[c$1("&:not(:last-child)",[c$1("td",`
|
|
border-bottom: 0px solid var(--n-merged-border-color);
|
|
`)])])]),cM("striped",[c$1("tr:nth-of-type(even)",[c$1("td","background-color: var(--n-td-color-striped)")])]),cNotM("bottom-bordered",[c$1("tr",[c$1("&:last-child",[c$1("td",`
|
|
border-bottom: 0px solid var(--n-merged-border-color);
|
|
`)])])])]),insideModal(cB("table",`
|
|
background-color: var(--n-td-color-modal);
|
|
--n-merged-border-color: var(--n-border-color-modal);
|
|
`,[c$1("th",`
|
|
background-color: var(--n-th-color-modal);
|
|
`),c$1("td",`
|
|
background-color: var(--n-td-color-modal);
|
|
`)])),insidePopover(cB("table",`
|
|
background-color: var(--n-td-color-popover);
|
|
--n-merged-border-color: var(--n-border-color-popover);
|
|
`,[c$1("th",`
|
|
background-color: var(--n-th-color-popover);
|
|
`),c$1("td",`
|
|
background-color: var(--n-td-color-popover);
|
|
`)]))]);const tableProps=Object.assign(Object.assign({},useTheme.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 NTable=defineComponent({name:"Table",props:tableProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=useConfig(t),s=useTheme("Table","-table",style$c,tableLight$1,t,r),l=useRtl("Table",o,r),d=computed(()=>{const{size:y}=t,{self:{borderColor:b,tdColor:C,tdColorModal:x,tdColorPopover:S,thColor:_,thColorModal:w,thColorPopover:$,thTextColor:I,tdTextColor:B,borderRadius:R,thFontWeight:P,lineHeight:M,borderColorModal:O,borderColorPopover:D,tdColorStriped:N,tdColorStripedModal:H,tdColorStripedPopover:Q,[createKey("fontSize",y)]:G,[createKey("tdPadding",y)]:K,[createKey("thPadding",y)]:W},common:{cubicBezierEaseInOut:j}}=s.value;return{"--n-bezier":j,"--n-td-color":C,"--n-td-color-modal":x,"--n-td-color-popover":S,"--n-td-text-color":B,"--n-border-color":b,"--n-border-color-modal":O,"--n-border-color-popover":D,"--n-border-radius":R,"--n-font-size":G,"--n-th-color":_,"--n-th-color-modal":w,"--n-th-color-popover":$,"--n-th-font-weight":P,"--n-th-text-color":I,"--n-line-height":M,"--n-td-padding":K,"--n-th-padding":W,"--n-td-color-striped":N,"--n-td-color-striped-modal":H,"--n-td-color-striped-popover":Q}}),g=n?useThemeClass("table",computed(()=>t.size[0]),d,t):void 0;return{rtlEnabled:l,mergedClsPrefix:r,cssVars:n?void 0:d,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender}},render(){var t;const{mergedClsPrefix:r}=this;return(t=this.onRender)===null||t===void 0||t.call(this),h("table",{class:[`${r}-table`,this.themeClass,{[`${r}-table--rtl`]:this.rtlEnabled,[`${r}-table--bottom-bordered`]:this.bottomBordered,[`${r}-table--bordered`]:this.bordered,[`${r}-table--single-line`]:this.singleLine,[`${r}-table--single-column`]:this.singleColumn,[`${r}-table--striped`]:this.striped}],style:this.cssVars},this.$slots)}});const tabsInjectionKey="n-tabs",tabPaneProps={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 NTabPane=defineComponent({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:tabPaneProps,setup(t){const r=inject(tabsInjectionKey,null);return r||throwError$1("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:r.paneStyleRef,class:r.paneClassRef,mergedClsPrefix:r.mergedClsPrefixRef}},render(){return h("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}});const tabProps=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},omit(tabPaneProps,["displayDirective"]));var NTab=defineComponent({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:tabProps,setup(t){const{mergedClsPrefixRef:r,valueRef:n,typeRef:o,closableRef:s,tabStyleRef:l,tabChangeIdRef:d,onBeforeLeaveRef:g,triggerRef:y,handleAdd:b,activateTab:C,handleClose:x}=inject(tabsInjectionKey);return{trigger:y,mergedClosable:computed(()=>{if(t.internalAddable)return!1;const{closable:S}=t;return S===void 0?s.value:S}),style:l,clsPrefix:r,value:n,type:o,handleClose(S){S.stopPropagation(),!t.disabled&&x(t.name)},activateTab(){if(t.disabled)return;if(t.internalAddable){b();return}const{name:S}=t,_=++d.id;if(S!==n.value){const{value:w}=g;w?Promise.resolve(w(t.name,n.value)).then($=>{$&&d.id===_&&C(S)}):C(S)}}}},render(){const{internalAddable:t,clsPrefix:r,name:n,disabled:o,label:s,tab:l,value:d,mergedClosable:g,style:y,trigger:b,$slots:{default:C}}=this,x=s!=null?s:l;return h("div",{class:`${r}-tabs-tab-wrapper`},this.internalLeftPadded?h("div",{class:`${r}-tabs-tab-pad`}):null,h("div",Object.assign({key:n,"data-name":n,"data-disabled":o?!0:void 0},mergeProps({class:[`${r}-tabs-tab`,d===n&&`${r}-tabs-tab--active`,o&&`${r}-tabs-tab--disabled`,g&&`${r}-tabs-tab--closable`,t&&`${r}-tabs-tab--addable`],onClick:b==="click"?this.activateTab:void 0,onMouseenter:b==="hover"?this.activateTab:void 0,style:t?void 0:y},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),h("span",{class:`${r}-tabs-tab__label`},t?h(Fragment,null,h("div",{class:`${r}-tabs-tab__height-placeholder`},"\xA0"),h(NBaseIcon,{clsPrefix:r},{default:()=>h(AddIcon,null)})):C?C():typeof x=="object"?x:render$2(x!=null?x:n)),g&&this.type==="card"?h(NBaseClose,{clsPrefix:r,class:`${r}-tabs-tab__close`,onClick:this.handleClose,disabled:o}):null))}}),style$b=cB("tabs",`
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
border-color .3s var(--n-bezier);
|
|
`,[cM("segment-type",[cB("tabs-rail",[c$1("&.transition-disabled","color: red;",[cB("tabs-tab",`
|
|
transition: none;
|
|
`)])])]),cM("left, right",`
|
|
flex-direction: row;
|
|
`,[cB("tabs-bar",`
|
|
width: 2px;
|
|
right: 0;
|
|
transition:
|
|
top .2s var(--n-bezier),
|
|
max-height .2s var(--n-bezier),
|
|
background-color .3s var(--n-bezier);
|
|
`),cB("tabs-tab",`
|
|
padding: var(--n-tab-padding-vertical);
|
|
`)]),cM("right",`
|
|
flex-direction: row-reverse;
|
|
`,[cB("tabs-bar",`
|
|
left: 0;
|
|
`)]),cM("bottom",`
|
|
flex-direction: column-reverse;
|
|
justify-content: flex-end;
|
|
`,[cB("tabs-bar",`
|
|
top: 0;
|
|
`)]),cB("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;
|
|
`,[cB("tabs-tab-wrapper",`
|
|
flex-basis: 0;
|
|
flex-grow: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[cB("tabs-tab",`
|
|
overflow: hidden;
|
|
border-radius: var(--n-tab-border-radius);
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`,[cM("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);
|
|
`),c$1("&:hover",`
|
|
color: var(--n-tab-text-color-hover);
|
|
`)])])]),cM("flex",[cB("tabs-nav",{width:"100%"},[cB("tabs-wrapper",{width:"100%"},[cB("tabs-tab",{marginRight:0})])])]),cB("tabs-nav",`
|
|
box-sizing: border-box;
|
|
line-height: 1.5;
|
|
display: flex;
|
|
transition: border-color .3s var(--n-bezier);
|
|
`,[cE("prefix, suffix",`
|
|
display: flex;
|
|
align-items: center;
|
|
`),cE("prefix","padding-right: 16px;"),cE("suffix","padding-left: 16px;")]),cB("tabs-nav-scroll-wrapper",`
|
|
flex: 1;
|
|
position: relative;
|
|
overflow: hidden;
|
|
`,[cM("shadow-before",[c$1("&::before",`
|
|
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
`)]),cM("shadow-after",[c$1("&::after",`
|
|
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
`)]),cB("tabs-nav-y-scroll",`
|
|
height: 100%;
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
scrollbar-width: none;
|
|
`,[c$1("&::-webkit-scrollbar",`
|
|
width: 0;
|
|
height: 0;
|
|
`)]),c$1("&::before, &::after",`
|
|
transition: box-shadow .3s var(--n-bezier);
|
|
pointer-events: none;
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 20px;
|
|
z-index: 1;
|
|
`),c$1("&::before",`
|
|
left: 0;
|
|
`),c$1("&::after",`
|
|
right: 0;
|
|
`)]),cB("tabs-nav-scroll-content",`
|
|
display: flex;
|
|
position: relative;
|
|
min-width: 100%;
|
|
width: fit-content;
|
|
`),cB("tabs-wrapper",`
|
|
display: inline-flex;
|
|
flex-wrap: nowrap;
|
|
position: relative;
|
|
`),cB("tabs-tab-wrapper",`
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
flex-shrink: 0;
|
|
flex-grow: 0;
|
|
`),cB("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);
|
|
`,[cM("disabled",{cursor:"not-allowed"}),cE("close",`
|
|
margin-left: 6px;
|
|
transition:
|
|
background-color .3s var(--n-bezier),
|
|
color .3s var(--n-bezier);
|
|
`),cE("label",`
|
|
display: flex;
|
|
align-items: center;
|
|
`)]),cB("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);
|
|
`,[c$1("&.transition-disabled",`
|
|
transition: none;
|
|
`),cM("disabled",`
|
|
background-color: var(--n-tab-text-color-disabled)
|
|
`)]),cB("tabs-pane-wrapper",`
|
|
position: relative;
|
|
overflow: hidden;
|
|
transition: max-height .2s var(--n-bezier);
|
|
`),cB("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;
|
|
`,[c$1("&.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);
|
|
`),c$1("&.next-transition-leave-active, &.prev-transition-leave-active",`
|
|
position: absolute;
|
|
`),c$1("&.next-transition-enter-from, &.prev-transition-leave-to",`
|
|
transform: translateX(32px);
|
|
opacity: 0;
|
|
`),c$1("&.next-transition-leave-to, &.prev-transition-enter-from",`
|
|
transform: translateX(-32px);
|
|
opacity: 0;
|
|
`),c$1("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
|
|
transform: translateX(0);
|
|
opacity: 1;
|
|
`)]),cB("tabs-tab-pad",`
|
|
width: var(--n-tab-gap);
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
`),cM("line-type, bar-type",[cB("tabs-tab",`
|
|
font-weight: var(--n-tab-font-weight);
|
|
box-sizing: border-box;
|
|
vertical-align: bottom;
|
|
`,[c$1("&:hover",{color:"var(--n-tab-text-color-hover)"}),cM("active",`
|
|
color: var(--n-tab-text-color-active);
|
|
font-weight: var(--n-tab-font-weight-active);
|
|
`),cM("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),cB("tabs-nav",[cM("line-type",[cE("prefix, suffix",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),cB("tabs-nav-scroll-content",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),cB("tabs-bar",`
|
|
border-radius: 0;
|
|
bottom: -1px;
|
|
`)]),cM("card-type",[cE("prefix, suffix",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),cB("tabs-pad",`
|
|
flex-grow: 1;
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),cB("tabs-tab-pad",`
|
|
transition: border-color .3s var(--n-bezier);
|
|
border-bottom: 1px solid var(--n-tab-border-color);
|
|
`),cB("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);
|
|
`,[cM("addable",`
|
|
padding-left: 8px;
|
|
padding-right: 8px;
|
|
font-size: 16px;
|
|
`,[cE("height-placeholder",`
|
|
width: 0;
|
|
font-size: var(--n-tab-font-size);
|
|
`),cNotM("disabled",[c$1("&:hover",`
|
|
color: var(--n-tab-text-color-hover);
|
|
`)])]),cM("closable","padding-right: 6px;"),cM("active",`
|
|
border-bottom: 1px solid #0000;
|
|
background-color: #0000;
|
|
font-weight: var(--n-tab-font-weight-active);
|
|
color: var(--n-tab-text-color-active);
|
|
`),cM("disabled","color: var(--n-tab-text-color-disabled);")]),cB("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);")]),cM("left, right",[cB("tabs-wrapper",`
|
|
flex-direction: column;
|
|
`,[cB("tabs-tab-wrapper",`
|
|
flex-direction: column;
|
|
`,[cB("tabs-tab-pad",`
|
|
height: var(--n-tab-gap);
|
|
width: 100%;
|
|
`)])]),cB("tabs-nav-scroll-content",`
|
|
border-bottom: none;
|
|
`)]),cM("left",[cB("tabs-nav-scroll-content",`
|
|
box-sizing: border-box;
|
|
border-right: 1px solid var(--n-tab-border-color);
|
|
`)]),cM("right",[cB("tabs-nav-scroll-content",`
|
|
border-left: 1px solid var(--n-tab-border-color);
|
|
`)]),cM("bottom",[cB("tabs-nav-scroll-content",`
|
|
border-top: 1px solid var(--n-tab-border-color);
|
|
border-bottom: none;
|
|
`)])])]);const tabsProps=Object.assign(Object.assign({},useTheme.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"},placement:{type:String,default:"top"},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 NTabs=defineComponent({name:"Tabs",props:tabsProps,setup(t,{slots:r}){var n,o,s,l;const{mergedClsPrefixRef:d,inlineThemeDisabled:g}=useConfig(t),y=useTheme("Tabs","-tabs",style$b,tabsLight$1,t,d),b=ref(null),C=ref(null),x=ref(null),S=ref(null),_=ref(null),w=ref(!0),$=ref(!0),I=useCompitable(t,["labelSize","size"]),B=useCompitable(t,["activeName","value"]),R=ref((o=(n=B.value)!==null&&n!==void 0?n:t.defaultValue)!==null&&o!==void 0?o:r.default?(l=(s=flatten$5(r.default())[0])===null||s===void 0?void 0:s.props)===null||l===void 0?void 0:l.name:null),P=useMergedState(B,R),M={id:0},O=computed(()=>{if(!(!t.justifyContent||t.type==="card"))return{display:"flex",justifyContent:t.justifyContent}});watch(P,()=>{M.id=0,Q(),G()});function D(){var fe;const{value:ne}=P;return ne===null?null:(fe=b.value)===null||fe===void 0?void 0:fe.querySelector(`[data-name="${ne}"]`)}function N(fe){if(t.type==="card")return;const{value:ne}=C;if(!!ne&&fe){const le=`${d.value}-tabs-bar--disabled`,{barWidth:me,placement:Te}=t;if(fe.dataset.disabled==="true"?ne.classList.add(le):ne.classList.remove(le),["top","bottom"].includes(Te)){if(H(["top","maxHeight","height"]),typeof me=="number"&&fe.offsetWidth>=me){const ge=Math.floor((fe.offsetWidth-me)/2)+fe.offsetLeft;ne.style.left=`${ge}px`,ne.style.maxWidth=`${me}px`}else ne.style.left=`${fe.offsetLeft}px`,ne.style.maxWidth=`${fe.offsetWidth}px`;ne.style.width="8192px",ne.offsetWidth}else{if(H(["left","maxWidth","width"]),typeof me=="number"&&fe.offsetHeight>=me){const ge=Math.floor((fe.offsetHeight-me)/2)+fe.offsetTop;ne.style.top=`${ge}px`,ne.style.maxHeight=`${me}px`}else ne.style.top=`${fe.offsetTop}px`,ne.style.maxHeight=`${fe.offsetHeight}px`;ne.style.height="8192px",ne.offsetHeight}}}function H(fe){const{value:ne}=C;if(!!ne)for(const le of fe)ne.style[le]=""}function Q(){if(t.type==="card")return;const fe=D();fe&&N(fe)}function G(fe){var ne;const le=(ne=_.value)===null||ne===void 0?void 0:ne.$el;if(!le)return;const me=D();if(!me)return;const{scrollLeft:Te,offsetWidth:ge}=le,{offsetLeft:$e,offsetWidth:de}=me;Te>$e?le.scrollTo({top:0,left:$e,behavior:"smooth"}):$e+de>Te+ge&&le.scrollTo({top:0,left:$e+de-ge,behavior:"smooth"})}const K=ref(null);let W=0,j=null;function Y(fe){const ne=K.value;if(ne){W=fe.getBoundingClientRect().height;const le=`${W}px`,me=()=>{ne.style.height=le,ne.style.maxHeight=le};j?(me(),j(),j=null):j=me}}function q(fe){const ne=K.value;if(ne){const le=fe.getBoundingClientRect().height,me=()=>{document.body.offsetHeight,ne.style.maxHeight=`${le}px`,ne.style.height=`${Math.max(W,le)}px`};j?(j(),j=null,me()):j=me}}function X(){const fe=K.value;fe&&(fe.style.maxHeight="",fe.style.height="")}const re={value:[]},te=ref("next");function oe(fe){const ne=P.value;let le="next";for(const me of re.value){if(me===ne)break;if(me===fe){le="prev";break}}te.value=le,ae(fe)}function ae(fe){const{onActiveNameChange:ne,onUpdateValue:le,"onUpdate:value":me}=t;ne&&call(ne,fe),le&&call(le,fe),me&&call(me,fe),R.value=fe}function se(fe){const{onClose:ne}=t;ne&&call(ne,fe)}function ue(){const{value:fe}=C;if(!fe)return;const ne="transition-disabled";fe.classList.add(ne),Q(),fe.classList.remove(ne)}let Ae=0;function pe(fe){var ne;if(fe.contentRect.width===0&&fe.contentRect.height===0||Ae===fe.contentRect.width)return;Ae=fe.contentRect.width;const{type:le}=t;(le==="line"||le==="bar")&&ue(),le!=="segment"&&Se((ne=_.value)===null||ne===void 0?void 0:ne.$el)}const he=throttle$1(pe,64);watch([()=>t.justifyContent,()=>t.size],()=>{nextTick(()=>{const{type:fe}=t;(fe==="line"||fe==="bar")&&ue()})});const Ce=ref(!1);function ve(fe){var ne;const{target:le,contentRect:{width:me}}=fe,Te=le.parentElement.offsetWidth;if(!Ce.value)Te<me&&(Ce.value=!0);else{const{value:ge}=S;if(!ge)return;Te-me>ge.$el.offsetWidth&&(Ce.value=!1)}Se((ne=_.value)===null||ne===void 0?void 0:ne.$el)}const ye=throttle$1(ve,64);function Be(){const{onAdd:fe}=t;fe&&fe(),nextTick(()=>{const ne=D(),{value:le}=_;!ne||!le||le.scrollTo({left:ne.offsetLeft,top:0,behavior:"smooth"})})}function Se(fe){if(!fe)return;const{scrollLeft:ne,scrollWidth:le,offsetWidth:me}=fe;w.value=ne<=0,$.value=ne+me>=le}const Ee=throttle$1(fe=>{Se(fe.target)},64);provide(tabsInjectionKey,{triggerRef:toRef(t,"trigger"),tabStyleRef:toRef(t,"tabStyle"),paneClassRef:toRef(t,"paneClass"),paneStyleRef:toRef(t,"paneStyle"),mergedClsPrefixRef:d,typeRef:toRef(t,"type"),closableRef:toRef(t,"closable"),valueRef:P,tabChangeIdRef:M,onBeforeLeaveRef:toRef(t,"onBeforeLeave"),activateTab:oe,handleClose:se,handleAdd:Be}),onFontsReady(()=>{Q(),G()}),watchEffect(()=>{const{value:fe}=x;if(!fe||["left","right"].includes(t.placement))return;const{value:ne}=d,le=`${ne}-tabs-nav-scroll-wrapper--shadow-before`,me=`${ne}-tabs-nav-scroll-wrapper--shadow-after`;w.value?fe.classList.remove(le):fe.classList.add(le),$.value?fe.classList.remove(me):fe.classList.add(me)});const ie=ref(null);watch(P,()=>{if(t.type==="segment"){const fe=ie.value;fe&&nextTick(()=>{fe.classList.add("transition-disabled"),fe.offsetWidth,fe.classList.remove("transition-disabled")})}});const ee={syncBarPosition:()=>{Q()}},J=computed(()=>{const{value:fe}=I,{type:ne}=t,le={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[ne],me=`${fe}${le}`,{self:{barColor:Te,closeIconColor:ge,closeIconColorHover:$e,closeIconColorPressed:de,tabColor:be,tabBorderColor:we,paneTextColor:Me,tabFontWeight:Ue,tabBorderRadius:Ge,tabFontWeightActive:Ze,colorSegment:tt,fontWeightStrong:st,tabColorSegment:We,closeSize:Je,closeIconSize:Ye,closeColorHover:Xe,closeColorPressed:_e,closeBorderRadius:xe,[createKey("panePadding",fe)]:Le,[createKey("tabPadding",me)]:Ve,[createKey("tabPaddingVertical",me)]:ze,[createKey("tabGap",me)]:Re,[createKey("tabTextColor",ne)]:Ne,[createKey("tabTextColorActive",ne)]:je,[createKey("tabTextColorHover",ne)]:nt,[createKey("tabTextColorDisabled",ne)]:De,[createKey("tabFontSize",fe)]:Qe},common:{cubicBezierEaseInOut:Pe}}=y.value;return{"--n-bezier":Pe,"--n-color-segment":tt,"--n-bar-color":Te,"--n-tab-font-size":Qe,"--n-tab-text-color":Ne,"--n-tab-text-color-active":je,"--n-tab-text-color-disabled":De,"--n-tab-text-color-hover":nt,"--n-pane-text-color":Me,"--n-tab-border-color":we,"--n-tab-border-radius":Ge,"--n-close-size":Je,"--n-close-icon-size":Ye,"--n-close-color-hover":Xe,"--n-close-color-pressed":_e,"--n-close-border-radius":xe,"--n-close-icon-color":ge,"--n-close-icon-color-hover":$e,"--n-close-icon-color-pressed":de,"--n-tab-color":be,"--n-tab-font-weight":Ue,"--n-tab-font-weight-active":Ze,"--n-tab-padding":Ve,"--n-tab-padding-vertical":ze,"--n-tab-gap":Re,"--n-pane-padding":Le,"--n-font-weight-strong":st,"--n-tab-color-segment":We}}),ce=g?useThemeClass("tabs",computed(()=>`${I.value[0]}${t.type[0]}`),J,t):void 0;return Object.assign({mergedClsPrefix:d,mergedValue:P,renderedNames:new Set,tabsRailElRef:ie,tabsPaneWrapperRef:K,tabsElRef:b,barElRef:C,addTabInstRef:S,xScrollInstRef:_,scrollWrapperElRef:x,addTabFixed:Ce,tabWrapperStyle:O,handleNavResize:he,mergedSize:I,handleScroll:Ee,handleTabsResize:ye,cssVars:g?void 0:J,themeClass:ce==null?void 0:ce.themeClass,animationDirection:te,renderNameListRef:re,onAnimationBeforeLeave:Y,onAnimationEnter:q,onAnimationAfterEnter:X,onRender:ce==null?void 0:ce.onRender},ee)},render(){const{mergedClsPrefix:t,type:r,placement:n,addTabFixed:o,addable:s,mergedSize:l,renderNameListRef:d,onRender:g,$slots:{default:y,prefix:b,suffix:C}}=this;g==null||g();const x=y?flatten$5(y()).filter(R=>R.type.__TAB_PANE__===!0):[],S=y?flatten$5(y()).filter(R=>R.type.__TAB__===!0):[],_=!S.length,w=r==="card",$=r==="segment",I=!w&&!$&&this.justifyContent;d.value=[];const B=()=>{const R=h("div",{style:this.tabWrapperStyle,class:[`${t}-tabs-wrapper`]},I?null:h("div",{class:`${t}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}),_?x.map((P,M)=>(d.value.push(P.props.name),justifyTabDynamicProps(h(NTab,Object.assign({},P.props,{internalCreatedByPane:!0,internalLeftPadded:M!==0&&(!I||I==="center"||I==="start"||I==="end")}),P.children?{default:P.children.tab}:void 0)))):S.map((P,M)=>(d.value.push(P.props.name),justifyTabDynamicProps(M!==0&&!I?createLeftPaddedTabVNode(P):P))),!o&&s&&w?createAddTag(s,(_?x.length:S.length)!==0):null,I?null:h("div",{class:`${t}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return h("div",{ref:"tabsElRef",class:`${t}-tabs-nav-scroll-content`},w&&s?h(VResizeObserver,{onResize:this.handleTabsResize},{default:()=>R}):R,w?h("div",{class:`${t}-tabs-pad`}):null,w?null:h("div",{ref:"barElRef",class:`${t}-tabs-bar`}))};return h("div",{class:[`${t}-tabs`,this.themeClass,`${t}-tabs--${r}-type`,`${t}-tabs--${l}-size`,I&&`${t}-tabs--flex`,`${t}-tabs--${n}`],style:this.cssVars},h("div",{class:[`${t}-tabs-nav--${r}-type`,`${t}-tabs-nav--${n}`,`${t}-tabs-nav`]},resolveWrappedSlot(b,R=>R&&h("div",{class:`${t}-tabs-nav__prefix`},R)),$?h("div",{class:`${t}-tabs-rail`,ref:"tabsRailElRef"},_?x.map((R,P)=>(d.value.push(R.props.name),h(NTab,Object.assign({},R.props,{internalCreatedByPane:!0,internalLeftPadded:P!==0}),R.children?{default:R.children.tab}:void 0))):S.map((R,P)=>(d.value.push(R.props.name),P===0?R:createLeftPaddedTabVNode(R)))):h(VResizeObserver,{onResize:this.handleNavResize},{default:()=>h("div",{class:`${t}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(n)?h(VXScroll,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:B}):h("div",{class:`${t}-tabs-nav-y-scroll`},B()))}),o&&s&&w?createAddTag(s,!0):null,resolveWrappedSlot(C,R=>R&&h("div",{class:`${t}-tabs-nav__suffix`},R))),_&&(this.animated?h("div",{ref:"tabsPaneWrapperRef",class:`${t}-tabs-pane-wrapper`},filterMapTabPanes(x,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):filterMapTabPanes(x,this.mergedValue,this.renderedNames)))}});function filterMapTabPanes(t,r,n,o,s,l,d){const g=[];return t.forEach(y=>{const{name:b,displayDirective:C,"display-directive":x}=y.props,S=w=>C===w||x===w,_=r===b;if(y.key!==void 0&&(y.key=b),_||S("show")||S("show:lazy")&&n.has(b)){n.has(b)||n.add(b);const w=!S("if");g.push(w?withDirectives(y,[[vShow,_]]):y)}}),d?h(TransitionGroup,{name:`${d}-transition`,onBeforeLeave:o,onEnter:s,onAfterEnter:l},{default:()=>g}):g}function createAddTag(t,r){return h(NTab,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:r,disabled:typeof t=="object"&&t.disabled})}function createLeftPaddedTabVNode(t){const r=cloneVNode(t);return r.props?r.props.internalLeftPadded=!0:r.props={internalLeftPadded:!0},r}function justifyTabDynamicProps(t){return Array.isArray(t.dynamicProps)?t.dynamicProps.includes("internalLeftPadded")||t.dynamicProps.push("internalLeftPadded"):t.dynamicProps=["internalLeftPadded"],t}var style$a=cB("thing",`
|
|
display: flex;
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: var(--n-font-size);
|
|
color: var(--n-text-color);
|
|
`,[cB("thing-avatar",`
|
|
margin-right: 12px;
|
|
margin-top: 2px;
|
|
`),cB("thing-avatar-header-wrapper",`
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`,[cB("thing-header-wrapper",`
|
|
flex: 1;
|
|
`)]),cB("thing-main",`
|
|
flex-grow: 1;
|
|
`,[cB("thing-header",`
|
|
display: flex;
|
|
margin-bottom: 4px;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
`,[cE("title",`
|
|
font-size: 16px;
|
|
font-weight: var(--n-title-font-weight);
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-title-text-color);
|
|
`)]),cE("description",[c$1("&:not(:last-child)",`
|
|
margin-bottom: 4px;
|
|
`)]),cE("content",[c$1("&:not(:first-child)",`
|
|
margin-top: 12px;
|
|
`)]),cE("footer",[c$1("&:not(:first-child)",`
|
|
margin-top: 12px;
|
|
`)]),cE("action",[c$1("&:not(:first-child)",`
|
|
margin-top: 12px;
|
|
`)])])]);const thingProps=Object.assign(Object.assign({},useTheme.props),{title:String,titleExtra:String,description:String,descriptionStyle:[String,Object],content:String,contentStyle:[String,Object],contentIndented:Boolean});var NThing=defineComponent({name:"Thing",props:thingProps,setup(t,{slots:r}){const{mergedClsPrefixRef:n,inlineThemeDisabled:o,mergedRtlRef:s}=useConfig(t),l=useTheme("Thing","-thing",style$a,thingLight$1,t,n),d=useRtl("Thing",s,n),g=computed(()=>{const{self:{titleTextColor:b,textColor:C,titleFontWeight:x,fontSize:S},common:{cubicBezierEaseInOut:_}}=l.value;return{"--n-bezier":_,"--n-font-size":S,"--n-text-color":C,"--n-title-font-weight":x,"--n-title-text-color":b}}),y=o?useThemeClass("thing",void 0,g,t):void 0;return()=>{var b;const{value:C}=n,x=d?d.value:!1;return(b=y==null?void 0:y.onRender)===null||b===void 0||b.call(y),h("div",{class:[`${C}-thing`,y==null?void 0:y.themeClass,x&&`${C}-thing--rtl`],style:o?void 0:g.value},r.avatar&&t.contentIndented?h("div",{class:`${C}-thing-avatar`},r.avatar()):null,h("div",{class:`${C}-thing-main`},!t.contentIndented&&(r.header||t.title||r["header-extra"]||t.titleExtra||r.avatar)?h("div",{class:`${C}-thing-avatar-header-wrapper`},r.avatar?h("div",{class:`${C}-thing-avatar`},r.avatar()):null,r.header||t.title||r["header-extra"]||t.titleExtra?h("div",{class:`${C}-thing-header-wrapper`},h("div",{class:`${C}-thing-header`},r.header||t.title?h("div",{class:`${C}-thing-header__title`},r.header?r.header():t.title):null,r["header-extra"]||t.titleExtra?h("div",{class:`${C}-thing-header__extra`},r["header-extra"]?r["header-extra"]():t.titleExtra):null),r.description||t.description?h("div",{class:`${C}-thing-main__description`,style:t.descriptionStyle},r.description?r.description():t.description):null):null):h(Fragment,null,r.header||t.title||r["header-extra"]||t.titleExtra?h("div",{class:`${C}-thing-header`},r.header||t.title?h("div",{class:`${C}-thing-header__title`},r.header?r.header():t.title):null,r["header-extra"]||t.titleExtra?h("div",{class:`${C}-thing-header__extra`},r["header-extra"]?r["header-extra"]():t.titleExtra):null):null,r.description||t.description?h("div",{class:`${C}-thing-main__description`,style:t.descriptionStyle},r.description?r.description():t.description):null),r.default||t.content?h("div",{class:`${C}-thing-main__content`,style:t.contentStyle},r.default?r.default():t.content):null,r.footer?h("div",{class:`${C}-thing-main__footer`},r.footer()):null,r.action?h("div",{class:`${C}-thing-main__action`},r.action()):null))}}});const timeProps={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 NTime=defineComponent({name:"Time",props:timeProps,setup(t){const r=Date.now(),{localeRef:n,dateLocaleRef:o}=useLocale("Time"),s=computed(()=>{const{timeZone:b}=t;return b?(C,x,S)=>formatInTimeZone(C,b,x,S):format$7}),l=computed(()=>({locale:o.value.locale})),d=computed(()=>{const{time:b}=t;return t.unix?b===void 0?r:fromUnixTime(typeof b=="number"?b:b.valueOf()):b!=null?b:r}),g=computed(()=>{const{to:b}=t;return t.unix?b===void 0?r:fromUnixTime(typeof b=="number"?b:b.valueOf()):b!=null?b:r});return{renderedTime:computed(()=>t.format?s.value(d.value,t.format,l.value):t.type==="date"?s.value(d.value,n.value.dateFormat,l.value):t.type==="datetime"?s.value(d.value,n.value.dateTimeFormat,l.value):formatDistanceStrict(d.value,g.value,{addSuffix:!0,locale:o.value.locale}))}},render(){return this.text?createTextVNode(this.renderedTime):h("time",[this.renderedTime])}});const lineHeight$1=1.25;var style$9=cB("timeline",`
|
|
position: relative;
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
line-height: ${lineHeight$1};
|
|
`,[cM("horizontal",`
|
|
flex-direction: row;
|
|
`,[c$1(">",[cB("timeline-item",`
|
|
flex-shrink: 0;
|
|
padding-right: 40px;
|
|
`,[cM("dashed-line-type",[c$1(">",[cB("timeline-item-timeline",[cE("line",`
|
|
background-image: linear-gradient(90deg, var(--n-color-start), var(--n-color-start) 50%, transparent 50%, transparent 100%);
|
|
background-size: 10px 1px;
|
|
`)])])]),c$1(">",[cB("timeline-item-content",`
|
|
margin-top: calc(var(--n-icon-size) + 12px);
|
|
`,[c$1(">",[cE("meta",`
|
|
margin-top: 6px;
|
|
margin-bottom: unset;
|
|
`)])]),cB("timeline-item-timeline",`
|
|
width: 100%;
|
|
height: calc(var(--n-icon-size) + 12px);
|
|
`,[cE("line",`
|
|
left: var(--n-icon-size);
|
|
top: calc(var(--n-icon-size) / 2 - 1px);
|
|
right: 0px;
|
|
width: unset;
|
|
height: 2px;
|
|
`)])])])])]),cM("right-placement",[cB("timeline-item",[cB("timeline-item-content",`
|
|
text-align: right;
|
|
margin-right: calc(var(--n-icon-size) + 12px);
|
|
`),cB("timeline-item-timeline",`
|
|
width: var(--n-icon-size);
|
|
right: 0;
|
|
`)])]),cM("left-placement",[cB("timeline-item",[cB("timeline-item-content",`
|
|
margin-left: calc(var(--n-icon-size) + 12px);
|
|
`),cB("timeline-item-timeline",`
|
|
left: 0;
|
|
`)])]),cB("timeline-item",`
|
|
position: relative;
|
|
`,[c$1("&:last-child",[cB("timeline-item-timeline",[cE("line",`
|
|
display: none;
|
|
`)]),cB("timeline-item-content",[cE("meta",`
|
|
margin-bottom: 0;
|
|
`)])]),cB("timeline-item-content",[cE("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);
|
|
`),cE("content",`
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: var(--n-content-font-size);
|
|
color: var(--n-content-text-color);
|
|
`),cE("meta",`
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: 12px;
|
|
margin-top: 6px;
|
|
margin-bottom: 20px;
|
|
color: var(--n-meta-text-color);
|
|
`)]),cM("dashed-line-type",[cB("timeline-item-timeline",[cE("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;
|
|
`)])]),cB("timeline-item-timeline",`
|
|
width: calc(var(--n-icon-size) + 12px);
|
|
position: absolute;
|
|
top: calc(var(--n-title-font-size) * ${lineHeight$1} / 2 - var(--n-icon-size) / 2);
|
|
height: 100%;
|
|
`,[cE("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;
|
|
`),cE("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;
|
|
`),cE("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 timelineProps=Object.assign(Object.assign({},useTheme.props),{horizontal:Boolean,itemPlacement:{type:String,default:"left"},size:{type:String,default:"medium"},iconSize:Number}),timelineInjectionKey="n-timeline";var NTimeline=defineComponent({name:"Timeline",props:timelineProps,setup(t,{slots:r}){const{mergedClsPrefixRef:n}=useConfig(t),o=useTheme("Timeline","-timeline",style$9,timelineLight$1,t,n);return provide(timelineInjectionKey,{props:t,mergedThemeRef:o,mergedClsPrefixRef:n}),()=>{const{value:s}=n;return h("div",{class:[`${s}-timeline`,t.horizontal&&`${s}-timeline--horizontal`,`${s}-timeline--${t.size}-size`,!t.horizontal&&`${s}-timeline--${t.itemPlacement}-placement`]},r)}}});const timelineItemProps={time:[String,Number],title:String,content:String,color:String,lineType:{type:String,default:"default"},type:{type:String,default:"default"}};var NTimelineItem=defineComponent({name:"TimelineItem",props:timelineItemProps,setup(t){const r=inject(timelineInjectionKey);r||throwError$1("timeline-item","`n-timeline-item` must be placed inside `n-timeline`."),useHoudini();const{inlineThemeDisabled:n}=useConfig(),o=computed(()=>{const{props:{size:l,iconSize:d},mergedThemeRef:g}=r,{type:y}=t,{self:{titleTextColor:b,contentTextColor:C,metaTextColor:x,lineColor:S,titleFontWeight:_,contentFontSize:w,[createKey("iconSize",l)]:$,[createKey("titleMargin",l)]:I,[createKey("titleFontSize",l)]:B,[createKey("circleBorder",y)]:R,[createKey("iconColor",y)]:P},common:{cubicBezierEaseInOut:M}}=g.value;return{"--n-bezier":M,"--n-circle-border":R,"--n-icon-color":P,"--n-content-font-size":w,"--n-content-text-color":C,"--n-line-color":S,"--n-meta-text-color":x,"--n-title-font-size":B,"--n-title-font-weight":_,"--n-title-margin":I,"--n-title-text-color":b,"--n-icon-size":formatLength(d)||$}}),s=n?useThemeClass("timeline-item",computed(()=>{const{props:{size:l,iconSize:d}}=r,{type:g}=t;return`${l[0]}${d||"a"}${g[0]}`}),o,r.props):void 0;return{mergedClsPrefix:r.mergedClsPrefixRef,cssVars:n?void 0:o,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:t,color:r,onRender:n,$slots:o}=this;return n==null||n(),h("div",{class:[`${t}-timeline-item`,this.themeClass,`${t}-timeline-item--${this.type}-type`,`${t}-timeline-item--${this.lineType}-line-type`],style:this.cssVars},h("div",{class:`${t}-timeline-item-timeline`},h("div",{class:`${t}-timeline-item-timeline__line`}),resolveWrappedSlot(o.icon,s=>s?h("div",{class:`${t}-timeline-item-timeline__icon`,style:{color:r}},s):h("div",{class:`${t}-timeline-item-timeline__circle`,style:{borderColor:r}}))),h("div",{class:`${t}-timeline-item-content`},resolveWrappedSlot(o.header,s=>s||this.title?h("div",{class:`${t}-timeline-item-content__title`},s||this.title):null),h("div",{class:`${t}-timeline-item-content__content`},resolveSlot(o.default,()=>[this.content])),h("div",{class:`${t}-timeline-item-content__meta`},resolveSlot(o.footer,()=>[this.time]))))}});const treeSelectInjectionKey="n-tree-select",treeInjectionKey="n-tree";var NTreeNodeSwitcher=defineComponent({name:"NTreeSwitcher",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,selected:Boolean,hide:Boolean,loading:Boolean,onClick:Function},setup(t){const{renderSwitcherIconRef:r}=inject(treeInjectionKey,null);return()=>{const{clsPrefix:n}=t;return h("span",{"data-switcher":!0,class:[`${n}-tree-node-switcher`,t.expanded&&`${n}-tree-node-switcher--expanded`,t.hide&&`${n}-tree-node-switcher--hide`],onClick:t.onClick},h("div",{class:`${n}-tree-node-switcher__icon`},h(NIconSwitchTransition,null,{default:()=>{if(t.loading)return h(NBaseLoading,{clsPrefix:n,key:"loading",radius:85,strokeWidth:20});const{value:o}=r;return o?o({expanded:t.expanded,selected:t.selected}):h(NBaseIcon,{clsPrefix:n,key:"switcher"},{default:()=>h(SwitcherIcon,null)})}})))}}}),NTreeNodeCheckbox=defineComponent({name:"NTreeNodeCheckbox",props:{clsPrefix:{type:String,required:!0},right:Boolean,focusable:Boolean,disabled:Boolean,checked:Boolean,indeterminate:Boolean,onCheck:Function},setup(t){const r=inject(treeInjectionKey);function n(s){const{onCheck:l}=t;if(l)return l(s)}function o(s){t.indeterminate?n(!1):n(s)}return{handleUpdateValue:o,mergedTheme:r.mergedThemeRef}},render(){const{clsPrefix:t,mergedTheme:r,checked:n,indeterminate:o,disabled:s,focusable:l,handleUpdateValue:d}=this;return h("span",{class:[`${t}-tree-node-checkbox`,this.right&&`${t}-tree-node-checkbox--right`],"data-checkbox":!0},h(NCheckbox,{focusable:l,disabled:s,theme:r.peers.Checkbox,themeOverrides:r.peerOverrides.Checkbox,checked:n,indeterminate:o,onUpdateChecked:d}))}}),NTreeNodeContent=defineComponent({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(t){const{renderLabelRef:r,renderPrefixRef:n,renderSuffixRef:o,labelFieldRef:s}=inject(treeInjectionKey),l=ref(null);function d(y){const{onClick:b}=t;b&&b(y)}function g(y){d(y)}return{selfRef:l,renderLabel:r,renderPrefix:n,renderSuffix:o,labelField:s,handleClick:g}},render(){const{clsPrefix:t,labelField:r,nodeProps:n,checked:o=!1,selected:s=!1,renderLabel:l,renderPrefix:d,renderSuffix:g,handleClick:y,onDragstart:b,tmNode:{rawNode:C,rawNode:{prefix:x,suffix:S,[r]:_}}}=this;return h("span",Object.assign({},n,{ref:"selfRef",class:[`${t}-tree-node-content`,n==null?void 0:n.class],onClick:y,draggable:b===void 0?void 0:!0,onDragstart:b}),d||x?h("div",{class:`${t}-tree-node-content__prefix`},d?d({option:C,selected:s,checked:o}):render$2(x)):null,h("div",{class:`${t}-tree-node-content__text`},l?l({option:C,selected:s,checked:o}):render$2(_)),g||S?h("div",{class:`${t}-tree-node-content__suffix`},g?g({option:C,selected:s,checked:o}):render$2(S)):null)}});function renderDropMark({position:t,offsetLevel:r,indent:n,el:o}){const s={position:"absolute",boxSizing:"border-box",right:0};if(t==="inside")s.left=0,s.top=0,s.bottom=0,s.borderRadius="inherit",s.boxShadow="inset 0 0 0 2px var(--n-drop-mark-color)";else{const l=t==="before"?"top":"bottom";s[l]=0,s.left=`${o.offsetLeft+6-r*n}px`,s.height="2px",s.backgroundColor="var(--n-drop-mark-color)",s.transformOrigin=l,s.borderRadius="1px",s.transform=t==="before"?"translateY(-4px)":"translateY(4px)"}return h("div",{style:s})}function defaultAllowDrop({dropPosition:t,node:r}){return r.isLeaf===!1||r.children?!0:t!=="inside"}function useMergedCheckStrategy(t){return computed(()=>t.leafOnly?"child":t.checkStrategy)}function isNodeDisabled(t,r){return!!t.rawNode[r]}function traverse(t,r,n,o){t==null||t.forEach(s=>{n(s),traverse(s[r],r,n,o),o(s)})}function keysWithFilter(t,r,n,o,s){const l=new Set,d=new Set,g=[];return traverse(t,o,y=>{if(g.push(y),s(r,y)){d.add(y[n]);for(let b=g.length-2;b>=0;--b)if(!l.has(g[b][n]))l.add(g[b][n]);else return}},()=>{g.pop()}),{expandedKeys:Array.from(l),highlightKeySet:d}}if(isBrowser$3&&Image){const t=new Image;t.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}function filterTree(t,r,n,o,s){const l=new Set,d=new Set,g=new Set,y=[],b=[],C=[];function x(_){_.forEach(w=>{if(C.push(w),r(n,w)){l.add(w[o]),g.add(w[o]);for(let I=C.length-2;I>=0;--I){const B=C[I][o];if(!d.has(B))d.add(B),l.has(B)&&l.delete(B);else break}}const $=w[s];$&&x($),C.pop()})}x(t);function S(_,w){_.forEach($=>{const I=$[o],B=l.has(I),R=d.has(I);if(!B&&!R)return;const P=$[s];if(P)if(B)w.push($);else{y.push(I);const M=Object.assign(Object.assign({},$),{[s]:[]});w.push(M),S(P,M[s])}else w.push($)})}return S(t,b),{filteredTree:b,highlightKeySet:g,expandedKeys:y}}const TreeNode$1=defineComponent({name:"TreeNode",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(t){const r=inject(treeInjectionKey),{droppingNodeParentRef:n,droppingMouseNodeRef:o,draggingNodeRef:s,droppingPositionRef:l,droppingOffsetLevelRef:d,nodePropsRef:g,indentRef:y,blockLineRef:b,checkboxPlacementRef:C,checkOnClickRef:x,disabledFieldRef:S}=r,_=useMemo(()=>!!t.tmNode.rawNode.checkboxDisabled),w=useMemo(()=>isNodeDisabled(t.tmNode,S.value)),$=useMemo(()=>r.disabledRef.value||w.value),I=computed(()=>{const{value:te}=g;if(!!te)return te({option:t.tmNode.rawNode})}),B=ref(null),R={value:null};onMounted(()=>{R.value=B.value.$el});function P(){const{tmNode:te}=t;if(!te.isLeaf&&!te.shallowLoaded){if(!r.loadingKeysRef.value.has(te.key))r.loadingKeysRef.value.add(te.key);else return;const{onLoadRef:{value:oe}}=r;oe&&oe(te.rawNode).then(ae=>{ae!==!1&&r.handleSwitcherClick(te)}).finally(()=>{r.loadingKeysRef.value.delete(te.key)})}else r.handleSwitcherClick(te)}const M=useMemo(()=>!w.value&&r.selectableRef.value&&(r.internalTreeSelect?r.mergedCheckStrategyRef.value!=="child"||r.multipleRef.value&&r.cascadeRef.value||t.tmNode.isLeaf:!0)),O=useMemo(()=>r.checkableRef.value&&(r.cascadeRef.value||r.mergedCheckStrategyRef.value!=="child"||t.tmNode.isLeaf)),D=useMemo(()=>r.displayedCheckedKeysRef.value.includes(t.tmNode.key)),N=useMemo(()=>{const{value:te}=O;if(!te)return!1;const{value:oe}=x;return typeof oe=="boolean"?oe:oe(t.tmNode.rawNode)});function H(te){const{value:oe}=r.expandOnClickRef,{value:ae}=M,{value:se}=N;if(!ae&&!oe&&!se||happensIn(te,"checkbox")||happensIn(te,"switcher"))return;const{tmNode:ue}=t;ae&&r.handleSelect(ue),oe&&!ue.isLeaf&&P(),se&&K(!D.value)}function Q(te){var oe,ae;b.value||($.value||H(te),(ae=(oe=I.value)===null||oe===void 0?void 0:oe.onClick)===null||ae===void 0||ae.call(oe,te))}function G(te){var oe,ae;!b.value||($.value||H(te),(ae=(oe=I.value)===null||oe===void 0?void 0:oe.onClick)===null||ae===void 0||ae.call(oe,te))}function K(te){r.handleCheck(t.tmNode,te)}function W(te){r.handleDragStart({event:te,node:t.tmNode})}function j(te){te.currentTarget===te.target&&r.handleDragEnter({event:te,node:t.tmNode})}function Y(te){te.preventDefault(),r.handleDragOver({event:te,node:t.tmNode})}function q(te){r.handleDragEnd({event:te,node:t.tmNode})}function X(te){te.currentTarget===te.target&&r.handleDragLeave({event:te,node:t.tmNode})}function re(te){te.preventDefault(),l.value!==null&&r.handleDrop({event:te,node:t.tmNode,dropPosition:l.value})}return{showDropMark:useMemo(()=>{const{value:te}=s;if(!te)return;const{value:oe}=l;if(!oe)return;const{value:ae}=o;if(!ae)return;const{tmNode:se}=t;return se.key===ae.key}),showDropMarkAsParent:useMemo(()=>{const{value:te}=n;if(!te)return!1;const{tmNode:oe}=t,{value:ae}=l;return ae==="before"||ae==="after"?te.key===oe.key:!1}),pending:useMemo(()=>r.pendingNodeKeyRef.value===t.tmNode.key),loading:useMemo(()=>r.loadingKeysRef.value.has(t.tmNode.key)),highlight:useMemo(()=>{var te;return(te=r.highlightKeySetRef.value)===null||te===void 0?void 0:te.has(t.tmNode.key)}),checked:D,indeterminate:useMemo(()=>r.displayedIndeterminateKeysRef.value.includes(t.tmNode.key)),selected:useMemo(()=>r.mergedSelectedKeysRef.value.includes(t.tmNode.key)),expanded:useMemo(()=>r.mergedExpandedKeysRef.value.includes(t.tmNode.key)),disabled:$,checkable:O,mergedCheckOnClick:N,checkboxDisabled:_,selectable:M,expandOnClick:r.expandOnClickRef,internalScrollable:r.internalScrollableRef,draggable:r.draggableRef,blockLine:b,nodeProps:I,checkboxFocusable:r.internalCheckboxFocusableRef,droppingPosition:l,droppingOffsetLevel:d,indent:y,checkboxPlacement:C,contentInstRef:B,contentElRef:R,handleCheck:K,handleDrop:re,handleDragStart:W,handleDragEnter:j,handleDragOver:Y,handleDragEnd:q,handleDragLeave:X,handleLineClick:G,handleContentClick:Q,handleSwitcherClick:P}},render(){const{tmNode:t,clsPrefix:r,checkable:n,expandOnClick:o,selectable:s,selected:l,checked:d,highlight:g,draggable:y,blockLine:b,indent:C,disabled:x,pending:S,internalScrollable:_,nodeProps:w,checkboxPlacement:$}=this,I=y&&!x?{onDragenter:this.handleDragEnter,onDragleave:this.handleDragLeave,onDragend:this.handleDragEnd,onDrop:this.handleDrop,onDragover:this.handleDragOver}:void 0,B=_?createDataKey(t.key):void 0,R=$==="right",P=n?h(NTreeNodeCheckbox,{right:R,focusable:this.checkboxFocusable,disabled:x||this.checkboxDisabled,clsPrefix:r,checked:this.checked,indeterminate:this.indeterminate,onCheck:this.handleCheck}):null;return h("div",Object.assign({class:`${r}-tree-node-wrapper`},I),h("div",Object.assign({},b?w:void 0,{class:[`${r}-tree-node`,{[`${r}-tree-node--selected`]:l,[`${r}-tree-node--checkable`]:n,[`${r}-tree-node--highlight`]:g,[`${r}-tree-node--pending`]:S,[`${r}-tree-node--disabled`]:x,[`${r}-tree-node--selectable`]:s,[`${r}-tree-node--clickable`]:s||o||this.mergedCheckOnClick},w==null?void 0:w.class],"data-key":B,draggable:y&&b,onClick:this.handleLineClick,onDragstart:y&&b&&!x?this.handleDragStart:void 0}),repeat(t.level,h("div",{class:`${r}-tree-node-indent`},h("div",{style:{width:`${C}px`}}))),h(NTreeNodeSwitcher,{clsPrefix:r,expanded:this.expanded,selected:l,loading:this.loading,hide:t.isLeaf,onClick:this.handleSwitcherClick}),R?null:P,h(NTreeNodeContent,{ref:"contentInstRef",clsPrefix:r,checked:d,selected:l,onClick:this.handleContentClick,nodeProps:b?void 0:w,onDragstart:y&&!b&&!x?this.handleDragStart:void 0,tmNode:t}),y?this.showDropMark?renderDropMark({el:this.contentElRef.value,position:this.droppingPosition,offsetLevel:this.droppingOffsetLevel,indent:C}):this.showDropMarkAsParent?renderDropMark({el:this.contentElRef.value,position:"inside",offsetLevel:this.droppingOffsetLevel,indent:C}):null:null,R?P:null))}});var NTreeNode=TreeNode$1;function useKeyboard({props:t,fNodesRef:r,mergedExpandedKeysRef:n,mergedSelectedKeysRef:o,handleSelect:s,handleSwitcherClick:l}){const{value:d}=o,g=inject(treeSelectInjectionKey,null),y=g?g.pendingNodeKeyRef:ref(d.length?d[d.length-1]:null);function b(C){if(!t.keyboard)return;const{value:x}=y;if(x===null){if((C.key==="ArrowDown"||C.key==="ArrowUp")&&C.preventDefault(),["ArrowDown","ArrowUp","ArrowLeft","ArrowRight"].includes(C.key)&&x===null){const{value:S}=r;let _=0;for(;_<S.length;){if(!S[_].disabled){y.value=S[_].key;break}_+=1}}}else{const{value:S}=r;let _=S.findIndex(w=>w.key===x);if(!~_)return;if(C.key==="Enter")s(S[_]);else if(C.key==="ArrowDown")for(C.preventDefault(),_+=1;_<S.length;){if(!S[_].disabled){y.value=S[_].key;break}_+=1}else if(C.key==="ArrowUp")for(C.preventDefault(),_-=1;_>=0;){if(!S[_].disabled){y.value=S[_].key;break}_-=1}else if(C.key==="ArrowLeft"){const w=S[_];if(w.isLeaf||!n.value.includes(x)){const $=w.getParent();$&&(y.value=$.key)}else l(w)}else if(C.key==="ArrowRight"){const w=S[_];if(w.isLeaf)return;if(!n.value.includes(x))l(w);else for(_+=1;_<S.length;){if(!S[_].disabled){y.value=S[_].key;break}_+=1}}}}return{pendingNodeKeyRef:y,handleKeydown:b}}var MotionWrapper=defineComponent({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:t}=this;return h(NFadeInExpandTransition,{onAfterEnter:this.onAfterEnter,appear:!0,reverse:this.mode==="collapse"},{default:()=>h("div",{class:[`${t}-tree-motion-wrapper`,`${t}-tree-motion-wrapper--${this.mode}`],style:{height:pxfy(this.height)}},this.nodes.map(r=>h(NTreeNode,{clsPrefix:t,tmNode:r})))})}}),style$8=cB("tree",`
|
|
font-size: var(--n-font-size);
|
|
outline: none;
|
|
`,[c$1("ul, li",`
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
`),c$1(">",[cB("tree-node",[c$1("&:first-child",{marginTop:0})])]),cB("tree-node-indent",`
|
|
flex-grow: 0;
|
|
flex-shrink: 0;
|
|
height: 0;
|
|
`),cB("tree-motion-wrapper",[cM("expand",[fadeInHeightExpandTransition({duration:"0.2s"})]),cM("collapse",[fadeInHeightExpandTransition({duration:"0.2s",reverse:!0})])]),cB("tree-node-wrapper",`
|
|
box-sizing: border-box;
|
|
padding: 3px 0;
|
|
`),cB("tree-node",`
|
|
transform: translate3d(0,0,0);
|
|
position: relative;
|
|
display: flex;
|
|
border-radius: var(--n-node-border-radius);
|
|
transition: background-color .3s var(--n-bezier);
|
|
`,[cM("highlight",[cB("tree-node-content",[cE("text",{borderBottomColor:"var(--n-node-text-color-disabled)"})])]),cM("disabled",[cB("tree-node-content",`
|
|
color: var(--n-node-text-color-disabled);
|
|
cursor: not-allowed;
|
|
`)]),cNotM("disabled",[cM("clickable",[cB("tree-node-content",`
|
|
cursor: pointer;
|
|
`)])])]),cM("block-node",[cB("tree-node-content",`
|
|
flex: 1;
|
|
min-width: 0;
|
|
`)]),cNotM("block-line",[cB("tree-node",[cNotM("disabled",[cB("tree-node-content",[c$1("&:hover",{backgroundColor:"var(--n-node-color-hover)"})]),cM("selectable",[cB("tree-node-content",[c$1("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),cM("pending",[cB("tree-node-content",`
|
|
background-color: var(--n-node-color-hover);
|
|
`)]),cM("selected",[cB("tree-node-content",{backgroundColor:"var(--n-node-color-active)"})])])])]),cM("block-line",[cB("tree-node",[cNotM("disabled",[c$1("&:hover",{backgroundColor:"var(--n-node-color-hover)"}),cM("pending",`
|
|
background-color: var(--n-node-color-hover);
|
|
`),cM("selectable",[cNotM("selected",[c$1("&:active",{backgroundColor:"var(--n-node-color-pressed)"})])]),cM("selected",{backgroundColor:"var(--n-node-color-active)"})]),cM("disabled",`
|
|
cursor: not-allowed;
|
|
`)])]),cB("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;
|
|
`,[cE("icon",`
|
|
position: relative;
|
|
height: 14px;
|
|
width: 14px;
|
|
display: flex;
|
|
color: var(--n-arrow-color);
|
|
transition: color .3s var(--n-bezier);
|
|
font-size: 14px;
|
|
`,[cB("icon",[iconSwitchTransition()]),cB("base-loading",`
|
|
color: var(--n-loading-color);
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
`,[iconSwitchTransition()]),cB("base-icon",[iconSwitchTransition()])]),cM("hide",{visibility:"hidden"}),cM("expanded",{transform:"rotate(90deg)"})]),cB("tree-node-checkbox",`
|
|
display: inline-flex;
|
|
height: 24px;
|
|
width: 16px;
|
|
vertical-align: bottom;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-right: 4px;
|
|
`,[cM("right","margin-left: 4px;")]),cM("checkable",[cB("tree-node-content",`
|
|
padding: 0 6px;
|
|
`)]),cB("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);
|
|
`,[c$1("&:last-child",{marginBottom:0}),cE("prefix",`
|
|
display: inline-flex;
|
|
margin-right: 8px;
|
|
`),cE("text",`
|
|
border-bottom: 1px solid #0000;
|
|
transition: border-color .3s var(--n-bezier);
|
|
flex-grow: 1;
|
|
max-width: 100%;
|
|
`),cE("suffix",`
|
|
display: inline-flex;
|
|
`)]),cE("empty","margin: auto;")]),__awaiter$4=globalThis&&globalThis.__awaiter||function(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})};const ITEM_SIZE=30;function createTreeMateOptions(t,r,n,o){return{getIsGroup(){return!1},getKey(l){return l[t]},getChildren:o||(l=>l[r]),getDisabled(l){return!!(l[n]||l.checkboxDisabled)}}}const treeSharedProps={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]},treeProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.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:defaultAllowDrop},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},getChildren:Function,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]}),treeSharedProps),{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 NTree=defineComponent({name:"Tree",props:treeProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:o}=useConfig(t),s=useRtl("Tree",o,r),l=useTheme("Tree","-tree",style$8,treeLight$1,t,r),d=ref(null),g=ref(null),y=ref(null);function b(){var Oe;return(Oe=y.value)===null||Oe===void 0?void 0:Oe.listElRef}function C(){var Oe;return(Oe=y.value)===null||Oe===void 0?void 0:Oe.itemsElRef}const x=computed(()=>{const{filter:Oe}=t;if(Oe)return Oe;const{labelField:He}=t;return(at,ct)=>{if(!at.length)return!0;const dt=ct[He];return typeof dt=="string"?dt.toLowerCase().includes(at.toLowerCase()):!1}}),S=computed(()=>{const{pattern:Oe}=t;return Oe?!Oe.length||!x.value?{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}:filterTree(t.data,x.value,Oe,t.keyField,t.childrenField):{filteredTree:t.data,highlightKeySet:null,expandedKeys:void 0}}),_=computed(()=>createTreeMate(t.showIrrelevantNodes?t.data:S.value.filteredTree,createTreeMateOptions(t.keyField,t.childrenField,t.disabledField,t.getChildren))),w=inject(treeSelectInjectionKey,null),$=t.internalTreeSelect?w.dataTreeMate:_,{watchProps:I}=t,B=ref([]);I!=null&&I.includes("defaultCheckedKeys")?watchEffect(()=>{B.value=t.defaultCheckedKeys}):B.value=t.defaultCheckedKeys;const R=toRef(t,"checkedKeys"),P=useMergedState(R,B),M=computed(()=>$.value.getCheckedKeys(P.value,{cascade:t.cascade,allowNotLoaded:t.allowCheckingNotLoaded})),O=useMergedCheckStrategy(t),D=computed(()=>M.value.checkedKeys),N=computed(()=>{const{indeterminateKeys:Oe}=t;return Oe!==void 0?Oe:M.value.indeterminateKeys}),H=ref([]);I!=null&&I.includes("defaultSelectedKeys")?watchEffect(()=>{H.value=t.defaultSelectedKeys}):H.value=t.defaultSelectedKeys;const Q=toRef(t,"selectedKeys"),G=useMergedState(Q,H),K=ref([]),W=Oe=>{K.value=t.defaultExpandAll?$.value.getNonLeafKeys():Oe===void 0?t.defaultExpandedKeys:Oe};I!=null&&I.includes("defaultExpandedKeys")?watchEffect(()=>W(void 0)):watchEffect(()=>W(t.defaultExpandedKeys));const j=toRef(t,"expandedKeys"),Y=useMergedState(j,K),q=computed(()=>_.value.getFlattenedNodes(Y.value)),{pendingNodeKeyRef:X,handleKeydown:re}=useKeyboard({props:t,mergedSelectedKeysRef:G,fNodesRef:q,mergedExpandedKeysRef:Y,handleSelect:ze,handleSwitcherClick:Ve});let te=null,oe=null;const ae=ref(new Set),se=computed(()=>t.internalHighlightKeySet||S.value.highlightKeySet),ue=useMergedState(se,ae),Ae=ref(new Set),pe=computed(()=>Y.value.filter(Oe=>!Ae.value.has(Oe)));let he=0;const Ce=ref(null),ve=ref(null),ye=ref(null),Be=ref(null),Se=ref(0),Ee=computed(()=>{const{value:Oe}=ve;return Oe?Oe.parent:null});watch(toRef(t,"data"),()=>{Ae.value.clear(),X.value=null,Je()},{deep:!1});let ie=!1;const ee=()=>{ie=!0,nextTick(()=>{ie=!1})};let J;watch(toRef(t,"pattern"),(Oe,He)=>{if(t.showIrrelevantNodes)if(J=void 0,Oe){const{expandedKeys:at,highlightKeySet:ct}=keysWithFilter(t.data,t.pattern,t.keyField,t.childrenField,x.value);ae.value=ct,ee(),de(at,$e(at),{node:null,action:"filter"})}else ae.value=new Set;else if(!Oe.length)J!==void 0&&(ee(),de(J,$e(J),{node:null,action:"filter"}));else{He.length||(J=Y.value);const{expandedKeys:at}=S.value;at!==void 0&&(ee(),de(at,$e(at),{node:null,action:"filter"}))}});function ce(Oe){return __awaiter$4(this,void 0,void 0,function*(){const{onLoad:He}=t;if(!He)return yield Promise.resolve();const{value:at}=Ae;if(!at.has(Oe.key)){at.add(Oe.key);try{(yield He(Oe.rawNode))===!1&&_e()}catch(ct){console.error(ct),_e()}at.delete(Oe.key)}})}watchEffect(()=>{var Oe;const{value:He}=_;if(!He)return;const{getNode:at}=He;(Oe=Y.value)===null||Oe===void 0||Oe.forEach(ct=>{const dt=at(ct);dt&&!dt.shallowLoaded&&ce(dt)})});const fe=ref(!1),ne=ref([]);watch(pe,(Oe,He)=>{if(!t.animated||ie){nextTick(Te);return}const at=new Set(He);let ct=null,dt=null;for(const ht of Oe)if(!at.has(ht)){if(ct!==null)return;ct=ht}const yt=new Set(Oe);for(const ht of He)if(!yt.has(ht)){if(dt!==null)return;dt=ht}if(ct===null&&dt===null)return;const{virtualScroll:gt}=t,ke=(gt?y.value.listElRef:d.value).offsetHeight,qe=Math.ceil(ke/ITEM_SIZE)+1;let ut;if(ct!==null&&(ut=He),dt!==null&&(ut===void 0?ut=Oe:ut=ut.filter(ht=>ht!==dt)),fe.value=!0,ne.value=_.value.getFlattenedNodes(ut),ct!==null){const ht=ne.value.findIndex(mt=>mt.key===ct);if(~ht){const mt=ne.value[ht].children;if(mt){const pt=flatten$3(mt,Oe);ne.value.splice(ht+1,0,{__motion:!0,mode:"expand",height:gt?pt.length*ITEM_SIZE:void 0,nodes:gt?pt.slice(0,qe):pt})}}}if(dt!==null){const ht=ne.value.findIndex(mt=>mt.key===dt);if(~ht){const mt=ne.value[ht].children;if(!mt)return;fe.value=!0;const pt=flatten$3(mt,Oe);ne.value.splice(ht+1,0,{__motion:!0,mode:"collapse",height:gt?pt.length*ITEM_SIZE:void 0,nodes:gt?pt.slice(0,qe):pt})}}});const le=computed(()=>createIndexGetter(q.value)),me=computed(()=>fe.value?ne.value:q.value);function Te(){const{value:Oe}=g;Oe&&Oe.sync()}function ge(){fe.value=!1,t.virtualScroll&&nextTick(Te)}function $e(Oe){const{getNode:He}=$.value;return Oe.map(at=>{var ct;return((ct=He(at))===null||ct===void 0?void 0:ct.rawNode)||null})}function de(Oe,He,at){const{"onUpdate:expandedKeys":ct,onUpdateExpandedKeys:dt}=t;K.value=Oe,ct&&call(ct,Oe,He,at),dt&&call(dt,Oe,He,at)}function be(Oe,He,at){const{"onUpdate:checkedKeys":ct,onUpdateCheckedKeys:dt}=t;B.value=Oe,dt&&call(dt,Oe,He,at),ct&&call(ct,Oe,He,at)}function we(Oe,He){const{"onUpdate:indeterminateKeys":at,onUpdateIndeterminateKeys:ct}=t;at&&call(at,Oe,He),ct&&call(ct,Oe,He)}function Me(Oe,He,at){const{"onUpdate:selectedKeys":ct,onUpdateSelectedKeys:dt}=t;H.value=Oe,dt&&call(dt,Oe,He,at),ct&&call(ct,Oe,He,at)}function Ue(Oe){const{onDragenter:He}=t;He&&call(He,Oe)}function Ge(Oe){const{onDragleave:He}=t;He&&call(He,Oe)}function Ze(Oe){const{onDragend:He}=t;He&&call(He,Oe)}function tt(Oe){const{onDragstart:He}=t;He&&call(He,Oe)}function st(Oe){const{onDragover:He}=t;He&&call(He,Oe)}function We(Oe){const{onDrop:He}=t;He&&call(He,Oe)}function Je(){Ye(),Xe()}function Ye(){Ce.value=null}function Xe(){Se.value=0,ve.value=null,ye.value=null,Be.value=null,_e()}function _e(){te&&(window.clearTimeout(te),te=null),oe=null}function xe(Oe,He){if(t.disabled||isNodeDisabled(Oe,t.disabledField))return;if(t.internalUnifySelectCheck&&!t.multiple){ze(Oe);return}const at=He?"check":"uncheck",{checkedKeys:ct,indeterminateKeys:dt}=$.value[at](Oe.key,D.value,{cascade:t.cascade,checkStrategy:O.value,allowNotLoaded:t.allowCheckingNotLoaded});be(ct,$e(ct),{node:Oe.rawNode,action:at}),we(dt,$e(dt))}function Le(Oe){if(t.disabled)return;const{key:He}=Oe,{value:at}=Y,ct=at.findIndex(dt=>dt===He);if(~ct){const dt=Array.from(at);dt.splice(ct,1),de(dt,$e(dt),{node:Oe.rawNode,action:"collapse"})}else{const dt=_.value.getNode(He);if(!dt||dt.isLeaf)return;let yt;if(t.accordion){const gt=new Set(Oe.siblings.map(({key:ke})=>ke));yt=at.filter(ke=>!gt.has(ke)),yt.push(He)}else yt=at.concat(He);de(yt,$e(yt),{node:Oe.rawNode,action:"expand"})}}function Ve(Oe){t.disabled||fe.value||Le(Oe)}function ze(Oe){if(!(t.disabled||!t.selectable)){if(X.value=Oe.key,t.internalUnifySelectCheck){const{value:{checkedKeys:He,indeterminateKeys:at}}=M;t.multiple?xe(Oe,!(He.includes(Oe.key)||at.includes(Oe.key))):be([Oe.key],$e([Oe.key]),{node:Oe.rawNode,action:"check"})}if(t.multiple){const He=Array.from(G.value),at=He.findIndex(ct=>ct===Oe.key);~at?t.cancelable&&He.splice(at,1):~at||He.push(Oe.key),Me(He,$e(He),{node:Oe.rawNode,action:~at?"unselect":"select"})}else G.value.includes(Oe.key)?t.cancelable&&Me([],[],{node:Oe.rawNode,action:"unselect"}):Me([Oe.key],$e([Oe.key]),{node:Oe.rawNode,action:"select"})}}function Re(Oe){if(te&&(window.clearTimeout(te),te=null),Oe.isLeaf)return;oe=Oe.key;const He=()=>{if(oe!==Oe.key)return;const{value:at}=ye;if(at&&at.key===Oe.key&&!Y.value.includes(Oe.key)){const ct=Y.value.concat(Oe.key);de(ct,$e(ct),{node:Oe.rawNode,action:"expand"})}te=null,oe=null};Oe.shallowLoaded?te=window.setTimeout(()=>{He()},1e3):te=window.setTimeout(()=>{ce(Oe).then(()=>{He()})},1e3)}function Ne({event:Oe,node:He}){!t.draggable||t.disabled||isNodeDisabled(He,t.disabledField)||(Pe({event:Oe,node:He},!1),Ue({event:Oe,node:He.rawNode}))}function je({event:Oe,node:He}){!t.draggable||t.disabled||isNodeDisabled(He,t.disabledField)||Ge({event:Oe,node:He.rawNode})}function nt(Oe){Oe.target===Oe.currentTarget&&Xe()}function De({event:Oe,node:He}){Je(),!(!t.draggable||t.disabled||isNodeDisabled(He,t.disabledField))&&Ze({event:Oe,node:He.rawNode})}function Qe({event:Oe,node:He}){!t.draggable||t.disabled||isNodeDisabled(He,t.disabledField)||(he=Oe.clientX,Ce.value=He,tt({event:Oe,node:He.rawNode}))}function Pe({event:Oe,node:He},at=!0){var ct;if(!t.draggable||t.disabled||isNodeDisabled(He,t.disabledField))return;const{value:dt}=Ce;if(!dt)return;const{allowDrop:yt,indent:gt}=t;at&&st({event:Oe,node:He.rawNode});const ke=Oe.currentTarget,{height:qe,top:ut}=ke.getBoundingClientRect(),ht=Oe.clientY-ut;let mt;yt({node:He.rawNode,dropPosition:"inside",phase:"drag"})?ht<=8?mt="before":ht>=qe-8?mt="after":mt="inside":ht<=qe/2?mt="before":mt="after";const{value:xt}=le;let vt,bt;const St=xt(He.key);if(St===null){Xe();return}let _t=!1;mt==="inside"?(vt=He,bt="inside"):mt==="before"?He.isFirstChild?(vt=He,bt="before"):(vt=q.value[St-1],bt="after"):(vt=He,bt="after"),!vt.isLeaf&&Y.value.includes(vt.key)&&(_t=!0,bt==="after"&&(vt=q.value[St+1],vt?bt="before":(vt=He,bt="inside")));const wt=vt;if(ye.value=wt,!_t&&dt.isLastChild&&dt.key===vt.key&&(bt="after"),bt==="after"){let $t=he-Oe.clientX,Tt=0;for(;$t>=gt/2&&vt.parent!==null&&vt.isLastChild&&Tt<1;)$t-=gt,Tt+=1,vt=vt.parent;Se.value=Tt}else Se.value=0;if((dt.contains(vt)||bt==="inside"&&((ct=dt.parent)===null||ct===void 0?void 0:ct.key)===vt.key)&&!(dt.key===wt.key&&dt.key===vt.key)){Xe();return}if(!yt({node:vt.rawNode,dropPosition:bt,phase:"drag"})){Xe();return}if(dt.key===vt.key)_e();else if(oe!==vt.key)if(bt==="inside"){if(t.expandOnDragenter){if(Re(vt),!vt.shallowLoaded&&oe!==vt.key){Je();return}}else if(!vt.shallowLoaded){Je();return}}else _e();else bt!=="inside"&&_e();Be.value=bt,ve.value=vt}function Ke({event:Oe,node:He,dropPosition:at}){if(!t.draggable||t.disabled||isNodeDisabled(He,t.disabledField))return;const{value:ct}=Ce,{value:dt}=ve,{value:yt}=Be;if(!(!ct||!dt||!yt)&&!!t.allowDrop({node:dt.rawNode,dropPosition:yt,phase:"drag"})&&ct.key!==dt.key){if(yt==="before"){const gt=ct.getNext({includeDisabled:!0});if(gt&>.key===dt.key){Xe();return}}if(yt==="after"){const gt=ct.getPrev({includeDisabled:!0});if(gt&>.key===dt.key){Xe();return}}We({event:Oe,node:dt.rawNode,dragNode:ct.rawNode,dropPosition:at}),Je()}}function ot(){Te()}function ft(){Te()}function it(Oe){var He;if(t.virtualScroll||t.internalScrollable){const{value:at}=g;if(!((He=at==null?void 0:at.containerRef)===null||He===void 0)&&He.contains(Oe.relatedTarget))return;X.value=null}else{const{value:at}=d;if(at!=null&&at.contains(Oe.relatedTarget))return;X.value=null}}watch(X,Oe=>{var He,at;if(Oe!==null){if(t.virtualScroll)(He=y.value)===null||He===void 0||He.scrollTo({key:Oe});else if(t.internalScrollable){const{value:ct}=g;if(ct===null)return;const dt=(at=ct.contentRef)===null||at===void 0?void 0:at.querySelector(`[data-key="${createDataKey(Oe)}"]`);if(!dt)return;ct.scrollTo({el:dt})}}}),provide(treeInjectionKey,{loadingKeysRef:Ae,highlightKeySetRef:ue,displayedCheckedKeysRef:D,displayedIndeterminateKeysRef:N,mergedSelectedKeysRef:G,mergedExpandedKeysRef:Y,mergedThemeRef:l,mergedCheckStrategyRef:O,nodePropsRef:toRef(t,"nodeProps"),disabledRef:toRef(t,"disabled"),checkableRef:toRef(t,"checkable"),selectableRef:toRef(t,"selectable"),expandOnClickRef:toRef(t,"expandOnClick"),onLoadRef:toRef(t,"onLoad"),draggableRef:toRef(t,"draggable"),blockLineRef:toRef(t,"blockLine"),indentRef:toRef(t,"indent"),cascadeRef:toRef(t,"cascade"),checkOnClickRef:toRef(t,"checkOnClick"),checkboxPlacementRef:t.checkboxPlacement,droppingMouseNodeRef:ye,droppingNodeParentRef:Ee,draggingNodeRef:Ce,droppingPositionRef:Be,droppingOffsetLevelRef:Se,fNodesRef:q,pendingNodeKeyRef:X,disabledFieldRef:toRef(t,"disabledField"),internalScrollableRef:toRef(t,"internalScrollable"),internalCheckboxFocusableRef:toRef(t,"internalCheckboxFocusable"),internalTreeSelect:t.internalTreeSelect,renderLabelRef:toRef(t,"renderLabel"),renderPrefixRef:toRef(t,"renderPrefix"),renderSuffixRef:toRef(t,"renderSuffix"),renderSwitcherIconRef:toRef(t,"renderSwitcherIcon"),labelFieldRef:toRef(t,"labelField"),multipleRef:toRef(t,"multiple"),handleSwitcherClick:Ve,handleDragEnd:De,handleDragEnter:Ne,handleDragLeave:je,handleDragStart:Qe,handleDrop:Ke,handleDragOver:Pe,handleSelect:ze,handleCheck:xe});function Ie(Oe){var He;(He=y.value)===null||He===void 0||He.scrollTo(Oe)}const Fe={handleKeydown:re,scrollTo:Ie,getCheckedData:()=>{if(!t.checkable)return{keys:[],options:[]};const{checkedKeys:Oe}=M.value;return{keys:Oe,options:$e(Oe)}},getIndeterminateData:()=>{if(!t.checkable)return{keys:[],options:[]};const{indeterminateKeys:Oe}=M.value;return{keys:Oe,options:$e(Oe)}}},et=computed(()=>{const{common:{cubicBezierEaseInOut:Oe},self:{fontSize:He,nodeBorderRadius:at,nodeColorHover:ct,nodeColorPressed:dt,nodeColorActive:yt,arrowColor:gt,loadingColor:ke,nodeTextColor:qe,nodeTextColorDisabled:ut,dropMarkColor:ht}}=l.value;return{"--n-arrow-color":gt,"--n-loading-color":ke,"--n-bezier":Oe,"--n-font-size":He,"--n-node-border-radius":at,"--n-node-color-active":yt,"--n-node-color-hover":ct,"--n-node-color-pressed":dt,"--n-node-text-color":qe,"--n-node-text-color-disabled":ut,"--n-drop-mark-color":ht}}),At=n?useThemeClass("tree",void 0,et,t):void 0;return Object.assign(Object.assign({},Fe),{mergedClsPrefix:r,mergedTheme:l,rtlEnabled:s,fNodes:me,aip:fe,selfElRef:d,virtualListInstRef:y,scrollbarInstRef:g,handleFocusout:it,handleDragLeaveTree:nt,handleScroll:ot,getScrollContainer:b,getScrollContent:C,handleAfterEnter:ge,handleResize:ft,cssVars:n?void 0:et,themeClass:At==null?void 0:At.themeClass,onRender:At==null?void 0:At.onRender})},render(){var t;const{fNodes:r,internalRenderEmpty:n}=this;if(!r.length&&n)return n();const{mergedClsPrefix:o,blockNode:s,blockLine:l,draggable:d,disabled:g,internalFocusable:y,checkable:b,handleKeydown:C,rtlEnabled:x,handleFocusout:S}=this,_=y&&!g,w=_?"0":void 0,$=[`${o}-tree`,x&&`${o}-tree--rtl`,b&&`${o}-tree--checkable`,(l||s)&&`${o}-tree--block-node`,l&&`${o}-tree--block-line`],I=R=>"__motion"in R?h(MotionWrapper,{height:R.height,nodes:R.nodes,clsPrefix:o,mode:R.mode,onAfterEnter:this.handleAfterEnter}):h(NTreeNode,{key:R.key,tmNode:R,clsPrefix:o});if(this.virtualScroll){const{mergedTheme:R,internalScrollablePadding:P}=this,M=getMargin(P||"0");return h(XScrollbar,{ref:"scrollbarInstRef",onDragleave:d?this.handleDragLeaveTree:void 0,container:this.getScrollContainer,content:this.getScrollContent,class:$,theme:R.peers.Scrollbar,themeOverrides:R.peerOverrides.Scrollbar,tabindex:w,onKeydown:_?C:void 0,onFocusout:_?S:void 0},{default:()=>{var O;return(O=this.onRender)===null||O===void 0||O.call(this),h(VVirtualList,{ref:"virtualListInstRef",items:this.fNodes,itemSize:ITEM_SIZE,ignoreItemResize:this.aip,paddingTop:M.top,paddingBottom:M.bottom,class:this.themeClass,style:[this.cssVars,{paddingLeft:M.left,paddingRight:M.right}],onScroll:this.handleScroll,onResize:this.handleResize,showScrollbar:!1,itemResizable:!0},{default:({item:D})=>I(D)})}})}const{internalScrollable:B}=this;return $.push(this.themeClass),(t=this.onRender)===null||t===void 0||t.call(this),B?h(XScrollbar,{class:$,tabindex:w,onKeydown:_?C:void 0,onFocusout:_?S:void 0,style:this.cssVars,contentStyle:{padding:this.internalScrollablePadding}},{default:()=>h("div",{onDragleave:d?this.handleDragLeaveTree:void 0,ref:"selfElRef"},this.fNodes.map(I))}):h("div",{class:$,tabindex:w,ref:"selfElRef",style:this.cssVars,onKeydown:_?C:void 0,onFocusout:_?S:void 0,onDragleave:d?this.handleDragLeaveTree:void 0},r.length?r.map(I):resolveSlot(this.$slots.empty,()=>[h(NEmpty,{class:`${o}-tree__empty`,theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]))}});function treeOption2SelectOption(t,r){const{rawNode:n}=t;return Object.assign(Object.assign({},n),{label:n[r],value:t.key})}function treeOption2SelectOptionWithPath(t,r,n,o){const{rawNode:s}=t;return Object.assign(Object.assign({},s),{value:t.key,label:r.map(l=>l.rawNode[o]).join(n)})}var style$7=c$1([cB("tree-select",`
|
|
z-index: auto;
|
|
outline: none;
|
|
width: 100%;
|
|
position: relative;
|
|
`),cB("tree-select-menu",`
|
|
position: relative;
|
|
overflow: hidden;
|
|
margin: 4px 0;
|
|
transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier);
|
|
border-radius: var(--n-menu-border-radius);
|
|
box-shadow: var(--n-menu-box-shadow);
|
|
background-color: var(--n-menu-color);
|
|
outline: none;
|
|
`,[cB("tree","max-height: var(--n-menu-height);"),cE("empty",`
|
|
display: flex;
|
|
padding: 12px 32px;
|
|
flex: 1;
|
|
justify-content: center;
|
|
`),cE("action",`
|
|
padding: var(--n-action-padding);
|
|
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);
|
|
`),fadeInScaleUpTransition()])]);const treeSelectProps=Object.assign(Object.assign(Object.assign(Object.assign({},useTheme.props),{bordered:{type:Boolean,default:!0},cascade:Boolean,checkable:Boolean,clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},consistentMenuWidth:{type:Boolean,default:!0},defaultShow:Boolean,defaultValue:{type:[String,Number,Array],default:null},disabled:{type:Boolean,default:void 0},filterable:Boolean,checkStrategy:{type:String,default:"all"},loading:Boolean,maxTagCount:[String,Number],multiple:Boolean,showPath:Boolean,separator:{type:String,default:" / "},options:{type:Array,default:()=>[]},placeholder:String,placement:{type:String,default:"bottom-start"},show:{type:Boolean,default:void 0},size:String,value:[String,Number,Array],to:useAdjustedTo.propTo,menuProps:Object,virtualScroll:{type:Boolean,default:!0},status:String,renderTag:Function}),treeSharedProps),{renderLabel:Function,renderPrefix:Function,renderSuffix:Function,nodeProps:Function,onBlur:Function,onFocus:Function,onLoad:Function,onUpdateShow:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],"onUpdate:show":[Function,Array],leafOnly:Boolean});var NTreeSelect=defineComponent({name:"TreeSelect",props:treeSelectProps,setup(t){const r=ref(null),n=ref(null),o=ref(null),s=ref(null),{mergedClsPrefixRef:l,namespaceRef:d,inlineThemeDisabled:g}=useConfig(t),{localeRef:y}=useLocale("Select"),{mergedSizeRef:b,mergedDisabledRef:C,mergedStatusRef:x,nTriggerFormBlur:S,nTriggerFormChange:_,nTriggerFormFocus:w,nTriggerFormInput:$}=useFormItem(t),I=ref(t.defaultValue),B=toRef(t,"value"),R=useMergedState(B,I),P=ref(t.defaultShow),M=toRef(t,"show"),O=useMergedState(M,P),D=ref(""),N=computed(()=>{const{filter:xe}=t;if(xe)return xe;const{labelField:Le}=t;return(Ve,ze)=>Ve.length?ze[Le].toLowerCase().includes(Ve.toLowerCase()):!0}),H=computed(()=>createTreeMate(t.options,createTreeMateOptions(t.keyField,t.childrenField,t.disabledField,void 0))),{value:Q}=R,G=ref(t.checkable?null:Array.isArray(Q)&&Q.length?Q[Q.length-1]:null),K=computed(()=>t.multiple&&t.cascade&&t.checkable),W=ref(t.defaultExpandAll?void 0:t.defaultExpandedKeys||t.expandedKeys),j=toRef(t,"expandedKeys"),Y=useMergedState(j,W),q=ref(!1),X=computed(()=>{const{placeholder:xe}=t;return xe!==void 0?xe:y.value.placeholder}),re=computed(()=>t.checkable?[]:te.value),te=computed(()=>{const{value:xe}=R;return t.multiple?Array.isArray(xe)?xe:[]:xe===null||Array.isArray(xe)?[]:[xe]}),oe=computed(()=>{const{multiple:xe,showPath:Le,separator:Ve,labelField:ze}=t;if(xe)return null;const{value:Re}=R;if(!Array.isArray(Re)&&Re!==null){const{value:Ne}=H,je=Ne.getNode(Re);if(je!==null)return Le?treeOption2SelectOptionWithPath(je,Ne.getPath(Re).treeNodePath,Ve,ze):treeOption2SelectOption(je,ze)}return null}),ae=computed(()=>{const{multiple:xe,showPath:Le,separator:Ve}=t;if(!xe)return null;const{value:ze}=R;if(Array.isArray(ze)){const Re=[],{value:Ne}=H,{checkedKeys:je}=Ne.getCheckedKeys(ze,{checkStrategy:t.checkStrategy,cascade:K.value,allowNotLoaded:t.allowCheckingNotLoaded}),{labelField:nt}=t;return je.forEach(De=>{const Qe=Ne.getNode(De);Qe!==null&&Re.push(Le?treeOption2SelectOptionWithPath(Qe,Ne.getPath(De).treeNodePath,Ve,nt):treeOption2SelectOption(Qe,nt))}),Re}return[]}),se=computed(()=>{const{self:{menuPadding:xe}}=Ye.value;return xe});function ue(){var xe;(xe=n.value)===null||xe===void 0||xe.focus()}function Ae(){var xe;(xe=n.value)===null||xe===void 0||xe.focusInput()}function pe(xe){const{onUpdateShow:Le,"onUpdate:show":Ve}=t;Le&&call(Le,xe),Ve&&call(Ve,xe),P.value=xe}function he(xe,Le,Ve){const{onUpdateValue:ze,"onUpdate:value":Re}=t;ze&&call(ze,xe,Le,Ve),Re&&call(Re,xe,Le,Ve),I.value=xe,$(),_()}function Ce(xe,Le){const{onUpdateIndeterminateKeys:Ve,"onUpdate:indeterminateKeys":ze}=t;Ve&&call(Ve,xe,Le),ze&&call(ze,xe,Le)}function ve(xe,Le,Ve){const{onUpdateExpandedKeys:ze,"onUpdate:expandedKeys":Re}=t;ze&&call(ze,xe,Le,Ve),Re&&call(Re,xe,Le,Ve),W.value=xe}function ye(xe){const{onFocus:Le}=t;Le&&Le(xe),w()}function Be(xe){Se();const{onBlur:Le}=t;Le&&Le(xe),S()}function Se(){pe(!1)}function Ee(){C.value||(D.value="",pe(!0),t.filterable&&Ae())}function ie(){D.value=""}function ee(xe){var Le;O.value&&(!((Le=n.value)===null||Le===void 0)&&Le.$el.contains(getPreciseEventTarget(xe))||Se())}function J(){C.value||(O.value?t.filterable||Se():Ee())}function ce(xe){const{value:{getNode:Le}}=H;return xe.map(Ve=>{var ze;return((ze=Le(Ve))===null||ze===void 0?void 0:ze.rawNode)||null})}function fe(xe,Le,Ve){const ze=ce(xe),Re=Ve.action==="check"?"select":"unselect",Ne=Ve.node;t.multiple?(he(xe,ze,{node:Ne,action:Re}),t.filterable&&(Ae(),t.clearFilterAfterSelect&&(D.value=""))):(xe.length?he(xe[0],ze[0]||null,{node:Ne,action:Re}):he(null,null,{node:Ne,action:Re}),Se(),ue())}function ne(xe){t.checkable&&Ce(xe,ce(xe))}function le(xe){var Le;!((Le=s.value)===null||Le===void 0)&&Le.contains(xe.relatedTarget)||(q.value=!0,ye(xe))}function me(xe){var Le;!((Le=s.value)===null||Le===void 0)&&Le.contains(xe.relatedTarget)||(q.value=!1,Be(xe))}function Te(xe){var Le,Ve,ze;((Le=s.value)===null||Le===void 0?void 0:Le.contains(xe.relatedTarget))||((ze=(Ve=n.value)===null||Ve===void 0?void 0:Ve.$el)===null||ze===void 0?void 0:ze.contains(xe.relatedTarget))||(q.value=!0,ye(xe))}function ge(xe){var Le,Ve,ze;((Le=s.value)===null||Le===void 0?void 0:Le.contains(xe.relatedTarget))||((ze=(Ve=n.value)===null||Ve===void 0?void 0:Ve.$el)===null||ze===void 0?void 0:ze.contains(xe.relatedTarget))||(q.value=!1,Be(xe))}function $e(xe){xe.stopPropagation();const{multiple:Le}=t;!Le&&t.filterable&&Se(),Le?he([],[],{node:null,action:"clear"}):he(null,null,{node:null,action:"clear"})}function de(xe){const{value:Le}=R;if(Array.isArray(Le)){const{value:Ve}=H,{checkedKeys:ze}=Ve.getCheckedKeys(Le,{cascade:K.value,allowNotLoaded:t.allowCheckingNotLoaded}),Re=ze.findIndex(Ne=>Ne===xe.value);if(~Re){const Ne=ze[Re],je=ce([Ne])[0];if(t.checkable){const{checkedKeys:nt}=Ve.uncheck(xe.value,ze,{checkStrategy:t.checkStrategy,cascade:K.value,allowNotLoaded:t.allowCheckingNotLoaded});he(nt,ce(nt),{node:je,action:"delete"})}else{const nt=Array.from(ze);nt.splice(Re,1),he(nt,ce(nt),{node:je,action:"delete"})}}}}function be(xe){const{value:Le}=xe.target;D.value=Le}function we(xe){const{value:Le}=o;Le&&Le.handleKeydown(xe)}function Me(xe){xe.key==="Enter"?(O.value?(we(xe),t.multiple||(Se(),ue())):Ee(),xe.preventDefault()):xe.key==="Escape"?O.value&&(markEventEffectPerformed(xe),Se(),ue()):O.value?we(xe):xe.key==="ArrowDown"&&Ee()}function Ue(){Se(),ue()}function Ge(xe){happensIn(xe,"action")||xe.preventDefault()}const Ze=computed(()=>{const{renderTag:xe}=t;if(!!xe)return function({option:Ve,handleClose:ze}){const{value:Re}=Ve;if(Re!==void 0){const Ne=H.value.getNode(Re);if(Ne)return xe({option:Ne.rawNode,handleClose:ze})}return Re}});provide(treeSelectInjectionKey,{pendingNodeKeyRef:G,dataTreeMate:H});function tt(){var xe;!O.value||(xe=r.value)===null||xe===void 0||xe.syncPosition()}useOnResize(s,tt);const st=useMergedCheckStrategy(t),We=computed(()=>{if(t.checkable){const xe=R.value;return t.multiple&&Array.isArray(xe)?H.value.getCheckedKeys(xe,{cascade:t.cascade,checkStrategy:st.value,allowNotLoaded:t.allowCheckingNotLoaded}):{checkedKeys:Array.isArray(xe)||xe===null?[]:[xe],indeterminateKeys:[]}}return{checkedKeys:[],indeterminateKeys:[]}}),Je={getCheckedData:()=>{const{checkedKeys:xe}=We.value;return{keys:xe,options:ce(xe)}},getIndeterminateData:()=>{const{indeterminateKeys:xe}=We.value;return{keys:xe,options:ce(xe)}},focus:()=>{var xe;return(xe=n.value)===null||xe===void 0?void 0:xe.focus()},blur:()=>{var xe;return(xe=n.value)===null||xe===void 0?void 0:xe.blur()}},Ye=useTheme("TreeSelect","-tree-select",style$7,treeSelectLight$1,t,l),Xe=computed(()=>{const{common:{cubicBezierEaseInOut:xe},self:{menuBoxShadow:Le,menuBorderRadius:Ve,menuColor:ze,menuHeight:Re,actionPadding:Ne,actionDividerColor:je,actionTextColor:nt}}=Ye.value;return{"--n-menu-box-shadow":Le,"--n-menu-border-radius":Ve,"--n-menu-color":ze,"--n-menu-height":Re,"--n-bezier":xe,"--n-action-padding":Ne,"--n-action-text-color":nt,"--n-action-divider-color":je}}),_e=g?useThemeClass("tree-select",void 0,Xe,t):void 0;return Object.assign(Object.assign({},Je),{menuElRef:s,mergedStatus:x,triggerInstRef:n,followerInstRef:r,treeInstRef:o,mergedClsPrefix:l,mergedValue:R,mergedShow:O,namespace:d,adjustedTo:useAdjustedTo(t),isMounted:isMounted(),focused:q,menuPadding:se,mergedPlaceholder:X,mergedExpandedKeys:Y,treeSelectedKeys:re,treeCheckedKeys:te,mergedSize:b,mergedDisabled:C,selectedOption:oe,selectedOptions:ae,pattern:D,pendingNodeKey:G,mergedCascade:K,mergedFilter:N,selectionRenderTag:Ze,handleTriggerOrMenuResize:tt,doUpdateExpandedKeys:ve,handleMenuLeave:ie,handleTriggerClick:J,handleMenuClickoutside:ee,handleUpdateCheckedKeys:fe,handleUpdateIndeterminateKeys:ne,handleTriggerFocus:le,handleTriggerBlur:me,handleMenuFocusin:Te,handleMenuFocusout:ge,handleClear:$e,handleDeleteOption:de,handlePatternInput:be,handleKeydown:Me,handleTabOut:Ue,handleMenuMousedown:Ge,mergedTheme:Ye,cssVars:g?void 0:Xe,themeClass:_e==null?void 0:_e.themeClass,onRender:_e==null?void 0:_e.onRender})},render(){const{mergedTheme:t,mergedClsPrefix:r,$slots:n}=this;return h("div",{class:`${r}-tree-select`},h(VBinder,null,{default:()=>[h(VTarget,null,{default:()=>h(NInternalSelection,{ref:"triggerInstRef",onResize:this.handleTriggerOrMenuResize,status:this.mergedStatus,focused:this.focused,clsPrefix:r,theme:t.peers.InternalSelection,themeOverrides:t.peerOverrides.InternalSelection,renderTag:this.selectionRenderTag,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,size:this.mergedSize,bordered:this.bordered,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,active:this.mergedShow,loading:this.loading,multiple:this.multiple,maxTagCount:this.maxTagCount,showArrow:!0,filterable:this.filterable,clearable:this.clearable,pattern:this.pattern,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onBlur:this.handleTriggerBlur,onDeleteOption:this.handleDeleteOption,onKeydown:this.handleKeydown},{arrow:()=>{var o,s;return[(s=(o=this.$slots).arrow)===null||s===void 0?void 0:s.call(o)]}})}),h(VFollower,{ref:"followerInstRef",show:this.mergedShow,placement:this.placement,to:this.adjustedTo,teleportDisabled:this.adjustedTo===useAdjustedTo.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target"},{default:()=>h(Transition,{name:"fade-in-scale-up-transition",appear:this.isMounted,onLeave:this.handleMenuLeave},{default:()=>{var o;if(!this.mergedShow)return null;const{mergedClsPrefix:s,checkable:l,multiple:d,menuProps:g,options:y}=this;return(o=this.onRender)===null||o===void 0||o.call(this),withDirectives(h("div",Object.assign({},g,{class:[`${s}-tree-select-menu`,g==null?void 0:g.class,this.themeClass],ref:"menuElRef",style:[(g==null?void 0:g.style)||"",this.cssVars],tabindex:0,onMousedown:this.handleMenuMousedown,onKeydown:this.handleKeydown,onFocusin:this.handleMenuFocusin,onFocusout:this.handleMenuFocusout}),h(NTree,{ref:"treeInstRef",blockLine:!0,allowCheckingNotLoaded:this.allowCheckingNotLoaded,showIrrelevantNodes:!1,animated:!1,pattern:this.pattern,filter:this.mergedFilter,data:y,cancelable:d,labelField:this.labelField,keyField:this.keyField,disabledField:this.disabledField,childrenField:this.childrenField,theme:t.peers.Tree,themeOverrides:t.peerOverrides.Tree,defaultExpandAll:this.defaultExpandAll,defaultExpandedKeys:this.defaultExpandedKeys,expandedKeys:this.mergedExpandedKeys,checkedKeys:this.treeCheckedKeys,selectedKeys:this.treeSelectedKeys,checkable:l,checkStrategy:this.checkStrategy,cascade:this.mergedCascade,leafOnly:this.leafOnly,multiple:this.multiple,renderLabel:this.renderLabel,renderPrefix:this.renderPrefix,renderSuffix:this.renderSuffix,renderSwitcherIcon:this.renderSwitcherIcon,nodeProps:this.nodeProps,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,internalTreeSelect:!0,internalUnifySelectCheck:!0,internalScrollable:!0,internalScrollablePadding:this.menuPadding,internalFocusable:!1,internalCheckboxFocusable:!1,internalRenderEmpty:()=>h("div",{class:`${s}-tree-select-menu__empty`},resolveSlot(n.empty,()=>[h(NEmpty,{theme:t.peers.Empty,themeOverrides:t.peerOverrides.Empty})])),onLoad:this.onLoad,onUpdateCheckedKeys:this.handleUpdateCheckedKeys,onUpdateIndeterminateKeys:this.handleUpdateIndeterminateKeys,onUpdateExpandedKeys:this.doUpdateExpandedKeys}),resolveWrappedSlot(n.action,b=>b?h("div",{class:`${s}-tree-select-menu__action`,"data-action":!0},b):null),h(FocusDetector,{onFocus:this.handleTabOut})),[[clickoutside$1,this.handleMenuClickoutside,void 0,{capture:!0}]])}})})]}))}}),style$6=cB("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);
|
|
`,[c$1("&:first-child",{marginTop:0}),cM("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[cM("align-text",{paddingLeft:0},[c$1("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),c$1("&::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;
|
|
`),c$1("&::before",{backgroundColor:"var(--n-bar-color)"})])]);const headerProps=Object.assign(Object.assign({},useTheme.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean});var createHeader=t=>defineComponent({name:`H${t}`,props:headerProps,setup(r){const{mergedClsPrefixRef:n,inlineThemeDisabled:o}=useConfig(r),s=useTheme("Typography","-h",style$6,typographyLight$1,r,n),l=computed(()=>{const{type:g}=r,{common:{cubicBezierEaseInOut:y},self:{headerFontWeight:b,headerTextColor:C,[createKey("headerPrefixWidth",t)]:x,[createKey("headerFontSize",t)]:S,[createKey("headerMargin",t)]:_,[createKey("headerBarWidth",t)]:w,[createKey("headerBarColor",g)]:$}}=s.value;return{"--n-bezier":y,"--n-font-size":S,"--n-margin":_,"--n-bar-color":$,"--n-bar-width":w,"--n-font-weight":b,"--n-text-color":C,"--n-prefix-width":x}}),d=o?useThemeClass(`h${t}`,computed(()=>r.type[0]),l,r):void 0;return{mergedClsPrefix:n,cssVars:o?void 0:l,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){var r;const{prefix:n,alignText:o,mergedClsPrefix:s,cssVars:l,$slots:d}=this;return(r=this.onRender)===null||r===void 0||r.call(this),h(`h${t}`,{class:[`${s}-h`,`${s}-h${t}`,this.themeClass,{[`${s}-h--prefix-bar`]:n,[`${s}-h--align-text`]:o}],style:l},d)}});const NH1=createHeader("1"),NH2=createHeader("2"),NH3=createHeader("3"),NH4=createHeader("4"),NH5=createHeader("5");createHeader("6");var style$5=cB("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 aProps=Object.assign({},useTheme.props);var NA=defineComponent({name:"A",props:aProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Typography","-a",style$5,typographyLight$1,t,r),s=computed(()=>{const{common:{cubicBezierEaseInOut:d},self:{aTextColor:g}}=o.value;return{"--n-text-color":g,"--n-bezier":d}}),l=n?useThemeClass("a",void 0,s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),h("a",{class:[`${this.mergedClsPrefix}-a`,this.themeClass],style:this.cssVars},this.$slots)}}),style$4=cB("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);
|
|
`,[c$1("&:first-child","margin-top: 0;"),c$1("&:last-child","margin-bottom: 0;")]);const pProps=Object.assign(Object.assign({},useTheme.props),{depth:[String,Number]});var NP=defineComponent({name:"P",props:pProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Typography","-p",style$4,typographyLight$1,t,r),s=computed(()=>{const{depth:d}=t,g=d||"1",{common:{cubicBezierEaseInOut:y},self:{pFontSize:b,pLineHeight:C,pMargin:x,pTextColor:S,[`pTextColor${g}Depth`]:_}}=o.value;return{"--n-bezier":y,"--n-font-size":b,"--n-line-height":C,"--n-margin":x,"--n-text-color":d===void 0?S:_}}),l=n?useThemeClass("p",computed(()=>`${t.depth||""}`),s,t):void 0;return{mergedClsPrefix:r,cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;return(t=this.onRender)===null||t===void 0||t.call(this),h("p",{class:[`${this.mergedClsPrefix}-p`,this.themeClass],style:this.cssVars},this.$slots)}}),style$3=cB("text",`
|
|
transition: color .3s var(--n-bezier);
|
|
color: var(--n-text-color);
|
|
`,[cM("strong",`
|
|
font-weight: var(--n-font-weight-strong);
|
|
`),cM("italic",{fontStyle:"italic"}),cM("underline",{textDecoration:"underline"}),cM("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 textProps=Object.assign(Object.assign({},useTheme.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 NText=defineComponent({name:"Text",props:textProps,setup(t){const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Typography","-text",style$3,typographyLight$1,t,r),s=computed(()=>{const{depth:d,type:g}=t,y=g==="default"?d===void 0?"textColor":`textColor${d}Depth`:createKey("textColor",g),{common:{fontWeightStrong:b,fontFamilyMono:C,cubicBezierEaseInOut:x},self:{codeTextColor:S,codeBorderRadius:_,codeColor:w,codeBorder:$,[y]:I}}=o.value;return{"--n-bezier":x,"--n-text-color":I,"--n-font-weight-strong":b,"--n-font-famliy-mono":C,"--n-code-border-radius":_,"--n-code-text-color":S,"--n-code-color":w,"--n-code-border":$}}),l=n?useThemeClass("text",computed(()=>`${t.type[0]}${t.depth||""}`),s,t):void 0;return{mergedClsPrefix:r,compitableTag:useCompitable(t,["as","tag"]),cssVars:n?void 0:s,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t,r,n;const{mergedClsPrefix:o}=this;(t=this.onRender)===null||t===void 0||t.call(this);const s=[`${o}-text`,this.themeClass,{[`${o}-text--code`]:this.code,[`${o}-text--delete`]:this.delete,[`${o}-text--strong`]:this.strong,[`${o}-text--italic`]:this.italic,[`${o}-text--underline`]:this.underline}],l=(n=(r=this.$slots).default)===null||n===void 0?void 0:n.call(r);return this.code?h("code",{class:s,style:this.cssVars},this.delete?h("del",null,l):l):this.delete?h("del",{class:s,style:this.cssVars},l):h(this.compitableTag||"span",{class:s,style:this.cssVars},l)}});const uploadInjectionKey="n-upload",uploadDraggerKey="__UPLOAD_DRAGGER__";var NUploadDragger=defineComponent({name:"UploadDragger",[uploadDraggerKey]:!0,setup(t,{slots:r}){const n=inject(uploadInjectionKey,null);return n||throwError$1("upload-dragger","`n-upload-dragger` must be placed inside `n-upload`."),()=>{const{mergedClsPrefixRef:{value:o},mergedDisabledRef:{value:s},maxReachedRef:{value:l}}=n;return h("div",{class:[`${o}-upload-dragger`,(s||l)&&`${o}-upload-dragger--disabled`]},r)}}}),__awaiter$3=globalThis&&globalThis.__awaiter||function(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})};const isImageFileType=t=>t.includes("image/"),getExtname=(t="")=>{const r=t.split("/"),o=r[r.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(o)||[""])[0]},imageExtensionRegex=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,isImageFile=t=>{if(t.type)return isImageFileType(t.type);const r=getExtname(t.name||"");if(imageExtensionRegex.test(r))return!0;const n=t.thumbnailUrl||t.url||"",o=getExtname(n);return!!(/^data:image\//.test(n)||imageExtensionRegex.test(o))};function createImageDataUrl(t){return __awaiter$3(this,void 0,void 0,function*(){return yield new Promise(r=>{if(!t.type||!isImageFileType(t.type)){r("");return}r(window.URL.createObjectURL(t))})})}const environmentSupportFile=isBrowser$3&&window.FileReader&&window.File;function isFileSystemDirectoryEntry(t){return t.isDirectory}function isFileSystemFileEntry(t){return t.isFile}function getFilesFromEntries(t,r){return __awaiter$3(this,void 0,void 0,function*(){const n=[];let o,s=0;function l(){s++}function d(){s--,s||o(n)}function g(y){y.forEach(b=>{if(!!b){if(l(),r&&isFileSystemDirectoryEntry(b)){const C=b.createReader();l(),C.readEntries(x=>{g(x),d()},()=>{d()})}else isFileSystemFileEntry(b)&&(l(),b.file(C=>{n.push({file:C,entry:b,source:"dnd"}),d()},()=>{d()}));d()}})}return yield new Promise(y=>{o=y,g(t)}),n})}function createSettledFileInfo(t){const{id:r,name:n,percentage:o,status:s,url:l,file:d,thumbnailUrl:g,type:y,fullPath:b,batchId:C}=t;return{id:r,name:n,percentage:o!=null?o:null,status:s,url:l!=null?l:null,file:d!=null?d:null,thumbnailUrl:g!=null?g:null,type:y!=null?y:null,fullPath:b!=null?b:null,batchId:C!=null?C:null}}function matchType(t,r,n){return t=t.toLowerCase(),r=r.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(",").map(s=>s.trim()).filter(Boolean).some(s=>{if(s.startsWith(".")){if(t.endsWith(s))return!0}else if(s.includes("/")){const[l,d]=r.split("/"),[g,y]=s.split("/");if((g==="*"||l&&g&&g===l)&&(y==="*"||d&&y&&y===d))return!0}else return!0;return!1})}const download=(t,r)=>{if(!t)return;const n=document.createElement("a");n.href=t,r!==void 0&&(n.download=r),document.body.appendChild(n),n.click(),document.body.removeChild(n)};var NUploadTrigger=defineComponent({name:"UploadTrigger",props:{abstract:Boolean},setup(t,{slots:r}){const n=inject(uploadInjectionKey,null);n||throwError$1("upload-trigger","`n-upload-trigger` must be placed inside `n-upload`.");const{mergedClsPrefixRef:o,mergedDisabledRef:s,maxReachedRef:l,listTypeRef:d,dragOverRef:g,openOpenFileDialog:y,draggerInsideRef:b,handleFileAddition:C,mergedDirectoryDndRef:x,triggerStyleRef:S}=n,_=computed(()=>d.value==="image-card");function w(){s.value||l.value||y()}function $(P){P.preventDefault(),g.value=!0}function I(P){P.preventDefault(),g.value=!0}function B(P){P.preventDefault(),g.value=!1}function R(P){var M;if(P.preventDefault(),!b.value||s.value||l.value){g.value=!1;return}const O=(M=P.dataTransfer)===null||M===void 0?void 0:M.items;O!=null&&O.length?getFilesFromEntries(Array.from(O).map(D=>D.webkitGetAsEntry()),x.value).then(D=>{C(D)}).finally(()=>{g.value=!1}):g.value=!1}return()=>{var P;const{value:M}=o;return t.abstract?(P=r.default)===null||P===void 0?void 0:P.call(r,{handleClick:w,handleDrop:R,handleDragOver:$,handleDragEnter:I,handleDragLeave:B}):h("div",{class:[`${M}-upload-trigger`,(s.value||l.value)&&`${M}-upload-trigger--disabled`,_.value&&`${M}-upload-trigger--image-card`],style:S.value,onClick:w,onDrop:R,onDragover:$,onDragenter:I,onDragleave:B},_.value?h(NUploadDragger,null,{default:()=>resolveSlot(r.default,()=>[h(NBaseIcon,{clsPrefix:M},{default:()=>h(AddIcon,null)})])}):r)}}}),NUploadProgress=defineComponent({name:"UploadProgress",props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:inject(uploadInjectionKey).mergedThemeRef}},render(){return h(NFadeInExpandTransition,null,{default:()=>this.show?h(NProgress,{type:"line",showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}});const imageIcon=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},h("g",{fill:"none"},h("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"}))),documentIcon=h("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 28 28"},h("g",{fill:"none"},h("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 __awaiter$2=globalThis&&globalThis.__awaiter||function(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})};const buttonThemeOverrides={paddingMedium:"0 3px",heightMedium:"24px",iconSizeMedium:"18px"};var NUploadFile=defineComponent({name:"UploadFile",props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(t){const r=inject(uploadInjectionKey),n=ref(null),o=ref(""),s=computed(()=>{const{file:O}=t;return O.status==="finished"?"success":O.status==="error"?"error":"info"}),l=computed(()=>{const{file:O}=t;if(O.status==="error")return"error"}),d=computed(()=>{const{file:O}=t;return O.status==="uploading"}),g=computed(()=>{if(!r.showCancelButtonRef.value)return!1;const{file:O}=t;return["uploading","pending","error"].includes(O.status)}),y=computed(()=>{if(!r.showRemoveButtonRef.value)return!1;const{file:O}=t;return["finished"].includes(O.status)}),b=computed(()=>{if(!r.showDownloadButtonRef.value)return!1;const{file:O}=t;return["finished"].includes(O.status)}),C=computed(()=>{if(!r.showRetryButtonRef.value)return!1;const{file:O}=t;return["error"].includes(O.status)}),x=useMemo(()=>o.value||t.file.thumbnailUrl||t.file.url),S=computed(()=>{if(!r.showPreviewButtonRef.value)return!1;const{file:{status:O},listType:D}=t;return["finished"].includes(O)&&x.value&&D==="image-card"});function _(){r.submit(t.file.id)}function w(O){O.preventDefault();const{file:D}=t;["finished","pending","error"].includes(D.status)?I(D):["uploading"].includes(D.status)?R(D):warn$5("upload","The button clicked type is unknown.")}function $(O){O.preventDefault(),B(t.file)}function I(O){const{xhrMap:D,doChange:N,onRemoveRef:{value:H},mergedFileListRef:{value:Q}}=r;Promise.resolve(H?H({file:Object.assign({},O),fileList:Q}):!0).then(G=>{if(G===!1)return;const K=Object.assign({},O,{status:"removed"});D.delete(O.id),N(K,void 0,{remove:!0})})}function B(O){const{onDownloadRef:{value:D}}=r;Promise.resolve(D?D(Object.assign({},O)):!0).then(N=>{N!==!1&&download(O.url,O.name)})}function R(O){const{xhrMap:D}=r,N=D.get(O.id);N==null||N.abort(),I(Object.assign({},O))}function P(){const{onPreviewRef:{value:O}}=r;if(O)O(t.file);else if(t.listType==="image-card"){const{value:D}=n;if(!D)return;D.click()}}const M=()=>__awaiter$2(this,void 0,void 0,function*(){const{listType:O}=t;O!=="image"&&O!=="image-card"||r.shouldUseThumbnailUrlRef.value(t.file)&&(o.value=yield r.getFileThumbnailUrlResolver(t.file))});return watchEffect(()=>{M()}),{mergedTheme:r.mergedThemeRef,progressStatus:s,buttonType:l,showProgress:d,disabled:r.mergedDisabledRef,showCancelButton:g,showRemoveButton:y,showDownloadButton:b,showRetryButton:C,showPreviewButton:S,mergedThumbnailUrl:x,shouldUseThumbnailUrl:r.shouldUseThumbnailUrlRef,renderIcon:r.renderIconRef,imageRef:n,handleRemoveOrCancelClick:w,handleDownloadClick:$,handleRetryClick:_,handlePreviewClick:P}},render(){const{clsPrefix:t,mergedTheme:r,listType:n,file:o,renderIcon:s}=this;let l;const d=n==="image";d||n==="image-card"?l=!this.shouldUseThumbnailUrl(o)||!this.mergedThumbnailUrl?h("span",{class:`${t}-upload-file-info__thumbnail`},s?s(o):isImageFile(o)?h(NBaseIcon,{clsPrefix:t},{default:()=>imageIcon}):h(NBaseIcon,{clsPrefix:t},{default:()=>documentIcon})):h("a",{rel:"noopener noreferer",target:"_blank",href:o.url||void 0,class:`${t}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n==="image-card"?h(NImage,{src:this.mergedThumbnailUrl||void 0,previewSrc:o.url||void 0,alt:o.name,ref:"imageRef"}):h("img",{src:this.mergedThumbnailUrl||void 0,alt:o.name})):l=h("span",{class:`${t}-upload-file-info__thumbnail`},s?s(o):h(NBaseIcon,{clsPrefix:t},{default:()=>h(AttachIcon,null)}));const y=h(NUploadProgress,{show:this.showProgress,percentage:o.percentage||0,status:this.progressStatus}),b=n==="text"||n==="image";return h("div",{class:[`${t}-upload-file`,`${t}-upload-file--${this.progressStatus}-status`,o.url&&o.status!=="error"&&n!=="image-card"&&`${t}-upload-file--with-url`,`${t}-upload-file--${n}-type`]},h("div",{class:`${t}-upload-file-info`},l,h("div",{class:`${t}-upload-file-info__name`},b&&(o.url&&o.status!=="error"?h("a",{rel:"noopener noreferer",target:"_blank",href:o.url||void 0,onClick:this.handlePreviewClick},o.name):h("span",{onClick:this.handlePreviewClick},o.name)),d&&y),h("div",{class:[`${t}-upload-file-info__action`,`${t}-upload-file-info__action--${n}-type`]},this.showPreviewButton?h(NButton,{key:"preview",quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,builtinThemeOverrides:buttonThemeOverrides},{icon:()=>h(NBaseIcon,{clsPrefix:t},{default:()=>h(EyeIcon,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&h(NButton,{key:"cancelOrTrash",theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:buttonThemeOverrides,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>h(NIconSwitchTransition,null,{default:()=>this.showRemoveButton?h(NBaseIcon,{clsPrefix:t,key:"trash"},{default:()=>h(TrashIcon,null)}):h(NBaseIcon,{clsPrefix:t,key:"cancel"},{default:()=>h(CancelIcon,null)})})}),this.showRetryButton&&!this.disabled&&h(NButton,{key:"retry",quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,builtinThemeOverrides:buttonThemeOverrides},{icon:()=>h(NBaseIcon,{clsPrefix:t},{default:()=>h(RetryIcon,null)})}),this.showDownloadButton?h(NButton,{key:"download",quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:r.peers.Button,themeOverrides:r.peerOverrides.Button,builtinThemeOverrides:buttonThemeOverrides},{icon:()=>h(NBaseIcon,{clsPrefix:t},{default:()=>h(DownloadIcon,null)})}):null)),!d&&y)}}),NUploadFileList=defineComponent({name:"UploadFileList",setup(t,{slots:r}){const n=inject(uploadInjectionKey,null);n||throwError$1("upload-file-list","`n-upload-file-list` must be placed inside `n-upload`.");const{abstractRef:o,mergedClsPrefixRef:s,listTypeRef:l,mergedFileListRef:d,fileListStyleRef:g,cssVarsRef:y,themeClassRef:b,maxReachedRef:C,showTriggerRef:x,imageGroupPropsRef:S}=n,_=computed(()=>l.value==="image-card"),w=()=>d.value.map(I=>h(NUploadFile,{clsPrefix:s.value,key:I.id,file:I,listType:l.value})),$=()=>_.value?h(NImageGroup,Object.assign({},S.value),{default:w}):h(NFadeInExpandTransition,{group:!0},{default:w});return()=>{const{value:I}=s,{value:B}=o;return h("div",{class:[`${I}-upload-file-list`,_.value&&`${I}-upload-file-list--grid`,B?b==null?void 0:b.value:void 0],style:[B&&y?y.value:"",g.value]},$(),x.value&&!C.value&&_.value&&h(NUploadTrigger,null,r))}}}),style$2=c$1([cB("upload","width: 100%;",[cM("dragger-inside",[cB("upload-trigger",`
|
|
display: block;
|
|
`)]),cM("drag-over",[cB("upload-dragger",`
|
|
border: var(--n-dragger-border-hover);
|
|
`)])]),cB("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);
|
|
`,[c$1("&:hover",`
|
|
border: var(--n-dragger-border-hover);
|
|
`),cM("disabled",`
|
|
cursor: not-allowed;
|
|
`)]),cB("upload-trigger",`
|
|
display: inline-block;
|
|
box-sizing: border-box;
|
|
opacity: 1;
|
|
transition: opacity .3s var(--n-bezier);
|
|
`,[c$1("+",[cB("upload-file-list","margin-top: 8px;")]),cM("disabled",`
|
|
opacity: var(--n-item-disabled-opacity);
|
|
cursor: not-allowed;
|
|
`),cM("image-card",`
|
|
width: 96px;
|
|
height: 96px;
|
|
`,[cB("base-icon",`
|
|
font-size: 24px;
|
|
`),cB("upload-dragger",`
|
|
padding: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
`)])]),cB("upload-file-list",`
|
|
line-height: var(--n-line-height);
|
|
opacity: 1;
|
|
transition: opacity .3s var(--n-bezier);
|
|
`,[c$1("a, img","outline: none;"),cM("disabled",`
|
|
opacity: var(--n-item-disabled-opacity);
|
|
cursor: not-allowed;
|
|
`,[cB("upload-file","cursor: not-allowed;")]),cM("grid",`
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, 96px);
|
|
grid-gap: 8px;
|
|
margin-top: 0;
|
|
`),cB("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);
|
|
`,[fadeInHeightExpandTransition(),cB("progress",[fadeInHeightExpandTransition({foldPadding:!0})]),c$1("&:hover",`
|
|
background-color: var(--n-item-color-hover);
|
|
`,[cB("upload-file-info",[cE("action",`
|
|
opacity: 1;
|
|
`)])]),cM("image-type",`
|
|
border-radius: var(--n-border-radius);
|
|
text-decoration: underline;
|
|
text-decoration-color: #0000;
|
|
`,[cB("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;
|
|
`,[cB("progress",`
|
|
padding: 2px 0;
|
|
margin-bottom: 0;
|
|
`),cE("name",`
|
|
padding: 0 8px;
|
|
`),cE("thumbnail",`
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 28px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
`,[c$1("img",`
|
|
width: 100%;
|
|
`)])])]),cM("text-type",[cB("progress",`
|
|
box-sizing: border-box;
|
|
padding-bottom: 6px;
|
|
margin-bottom: 6px;
|
|
`)]),cM("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;
|
|
`,[cB("progress",`
|
|
position: absolute;
|
|
left: 8px;
|
|
bottom: 8px;
|
|
right: 8px;
|
|
width: unset;
|
|
`),cB("upload-file-info",`
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
`,[cE("thumbnail",`
|
|
width: 100%;
|
|
height: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 36px;
|
|
`,[c$1("img",`
|
|
width: 100%;
|
|
`)])]),c$1("&::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: "";
|
|
`),c$1("&:hover",[c$1("&::before","opacity: 1;"),cB("upload-file-info",[cE("thumbnail","opacity: .12;")])])]),cM("error-status",[c$1("&:hover",`
|
|
background-color: var(--n-item-color-hover-error);
|
|
`),cB("upload-file-info",[cE("name","color: var(--n-item-text-color-error);"),cE("thumbnail","color: var(--n-item-text-color-error);")]),cM("image-card-type",`
|
|
border: var(--n-item-border-image-card-error);
|
|
`)]),cM("with-url",`
|
|
cursor: pointer;
|
|
`,[cB("upload-file-info",[cE("name",`
|
|
color: var(--n-item-text-color-success);
|
|
text-decoration-color: var(--n-item-text-color-success);
|
|
`,[c$1("a",`
|
|
text-decoration: underline;
|
|
`)])])]),cB("upload-file-info",`
|
|
position: relative;
|
|
padding-top: 6px;
|
|
padding-bottom: 6px;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
`,[cE("thumbnail",`
|
|
font-size: 18px;
|
|
opacity: 1;
|
|
transition: opacity .2s var(--n-bezier);
|
|
color: var(--n-item-icon-color);
|
|
`,[cB("base-icon",`
|
|
margin-right: 2px;
|
|
vertical-align: middle;
|
|
transition: color .3s var(--n-bezier);
|
|
`)]),cE("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;
|
|
`,[cB("button",[c$1("&:not(:last-child)",{marginRight:"4px"}),cB("base-icon",[c$1("svg",[iconSwitchTransition()])])]),cM("image-type",`
|
|
position: relative;
|
|
max-width: 80px;
|
|
width: auto;
|
|
`),cM("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;
|
|
`)]),cE("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);
|
|
`,[c$1("a",`
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
`)])])])]),cB("upload-file-input",`
|
|
display: block;
|
|
width: 0;
|
|
height: 0;
|
|
opacity: 0;
|
|
`)]),__awaiter$1=globalThis&&globalThis.__awaiter||function(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})};function createXhrHandlers(t,r,n){const{doChange:o,xhrMap:s}=t;let l=0;function d(y){var b;let C=Object.assign({},r,{status:"error",percentage:l});s.delete(r.id),C=createSettledFileInfo(((b=t.onError)===null||b===void 0?void 0:b.call(t,{file:C,event:y}))||C),o(C,y)}function g(y){var b;if(t.isErrorState){if(t.isErrorState(n)){d(y);return}}else if(n.status<200||n.status>=300){d(y);return}let C=Object.assign({},r,{status:"finished",percentage:l});s.delete(r.id),C=createSettledFileInfo(((b=t.onFinish)===null||b===void 0?void 0:b.call(t,{file:C,event:y}))||C),o(C,y)}return{handleXHRLoad:g,handleXHRError:d,handleXHRAbort(y){const b=Object.assign({},r,{status:"removed",file:null,percentage:l});s.delete(r.id),o(b,y)},handleXHRProgress(y){const b=Object.assign({},r,{status:"uploading"});if(y.lengthComputable){const C=Math.ceil(y.loaded/y.total*100);b.percentage=C,l=C}o(b,y)}}}function customSubmitImpl(t){const{inst:r,file:n,data:o,headers:s,withCredentials:l,action:d,customRequest:g}=t,{doChange:y}=t.inst;let b=0;g({file:n,data:o,headers:s,withCredentials:l,action:d,onProgress(C){const x=Object.assign({},n,{status:"uploading"}),S=C.percent;x.percentage=S,b=S,y(x)},onFinish(){var C;let x=Object.assign({},n,{status:"finished",percentage:b});x=createSettledFileInfo(((C=r.onFinish)===null||C===void 0?void 0:C.call(r,{file:x}))||x),y(x)},onError(){var C;let x=Object.assign({},n,{status:"error",percentage:b});x=createSettledFileInfo(((C=r.onError)===null||C===void 0?void 0:C.call(r,{file:x}))||x),y(x)}})}function registerHandler(t,r,n){const o=createXhrHandlers(t,r,n);n.onabort=o.handleXHRAbort,n.onerror=o.handleXHRError,n.onload=o.handleXHRLoad,n.upload&&(n.upload.onprogress=o.handleXHRProgress)}function unwrapFunctionValue(t,r){return typeof t=="function"?t({file:r}):t||{}}function setHeaders(t,r,n){const o=unwrapFunctionValue(r,n);!o||Object.keys(o).forEach(s=>{t.setRequestHeader(s,o[s])})}function appendData(t,r,n){const o=unwrapFunctionValue(r,n);!o||Object.keys(o).forEach(s=>{t.append(s,o[s])})}function submitImpl(t,r,n,{method:o,action:s,withCredentials:l,responseType:d,headers:g,data:y}){const b=new XMLHttpRequest;b.responseType=d,t.xhrMap.set(n.id,b),b.withCredentials=l;const C=new FormData;if(appendData(C,y,n),C.append(r,n.file),registerHandler(t,n,b),s!==void 0){b.open(o.toUpperCase(),s),setHeaders(b,g,n),b.send(C);const x=Object.assign({},n,{status:"uploading"});t.doChange(x)}}const uploadProps=Object.assign(Object.assign({},useTheme.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,shouldUseThumbnailUrl:{type:Function,default:t=>environmentSupportFile?isImageFile(t):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerStyle:[String,Object],renderIcon:Object});var NUpload=defineComponent({name:"Upload",props:uploadProps,setup(t){t.abstract&&t.listType==="image-card"&&throwError$1("upload","when the list-type is image-card, abstract is not supported.");const{mergedClsPrefixRef:r,inlineThemeDisabled:n}=useConfig(t),o=useTheme("Upload","-upload",style$2,uploadLight$1,t,r),s=useFormItem(t),l=computed(()=>{const{max:Q}=t;return Q!==void 0?_.value.length>=Q:!1}),d=ref(t.defaultFileList),g=toRef(t,"fileList"),y=ref(null),b={value:!1},C=ref(!1),x=new Map,S=useMergedState(g,d),_=computed(()=>S.value.map(createSettledFileInfo));function w(){var Q;(Q=y.value)===null||Q===void 0||Q.click()}function $(Q){const G=Q.target;R(G.files?Array.from(G.files).map(K=>({file:K,entry:null,source:"input"})):null,Q),G.value=""}function I(Q){const{"onUpdate:fileList":G,onUpdateFileList:K}=t;G&&call(G,Q),K&&call(K,Q),d.value=Q}const B=computed(()=>t.multiple||t.directory);function R(Q,G){if(!Q||Q.length===0)return;const{onBeforeUpload:K}=t;Q=B.value?Q:[Q[0]];const{max:W,accept:j}=t;Q=Q.filter(({file:q,source:X})=>X==="dnd"&&(j==null?void 0:j.trim())?matchType(q.name,q.type,j):!0),W&&(Q=Q.slice(0,W-_.value.length));const Y=createId();Promise.all(Q.map(({file:q,entry:X})=>__awaiter$1(this,void 0,void 0,function*(){var re;const te={id:createId(),batchId:Y,name:q.name,status:"pending",percentage:0,file:q,url:null,type:q.type,thumbnailUrl:null,fullPath:(re=X==null?void 0:X.fullPath)!==null&&re!==void 0?re:`/${q.webkitRelativePath||q.name}`};return!K||(yield K({file:te,fileList:_.value}))!==!1?te:null}))).then(q=>__awaiter$1(this,void 0,void 0,function*(){let X=Promise.resolve();return q.forEach(re=>{X=X.then(nextTick).then(()=>{re&&M(re,G,{append:!0})})}),yield X})).then(()=>{t.defaultUpload&&P()})}function P(Q){const{method:G,action:K,withCredentials:W,headers:j,data:Y,name:q}=t,X=Q!==void 0?_.value.filter(te=>te.id===Q):_.value,re=Q!==void 0;X.forEach(te=>{const{status:oe}=te;(oe==="pending"||oe==="error"&&re)&&(t.customRequest?customSubmitImpl({inst:{doChange:M,xhrMap:x,onFinish:t.onFinish,onError:t.onError},file:te,action:K,withCredentials:W,headers:j,data:Y,customRequest:t.customRequest}):submitImpl({doChange:M,xhrMap:x,onFinish:t.onFinish,onError:t.onError,isErrorState:t.isErrorState},q,te,{method:G,action:K,withCredentials:W,responseType:t.responseType,headers:j,data:Y}))})}const M=(Q,G,K={append:!1,remove:!1})=>{const{append:W,remove:j}=K,Y=Array.from(_.value),q=Y.findIndex(X=>X.id===Q.id);if(W||j||~q){W?Y.push(Q):j?Y.splice(q,1):Y.splice(q,1,Q);const{onChange:X}=t;X&&X({file:Q,fileList:Y,event:G}),I(Y)}};function O(Q){var G;if(Q.thumbnailUrl)return Q.thumbnailUrl;const{createThumbnailUrl:K}=t;return K?(G=K(Q.file,Q))!==null&&G!==void 0?G:Q.url||"":Q.url?Q.url:Q.file?createImageDataUrl(Q.file):""}const D=computed(()=>{const{common:{cubicBezierEaseInOut:Q},self:{draggerColor:G,draggerBorder:K,draggerBorderHover:W,itemColorHover:j,itemColorHoverError:Y,itemTextColorError:q,itemTextColorSuccess:X,itemTextColor:re,itemIconColor:te,itemDisabledOpacity:oe,lineHeight:ae,borderRadius:se,fontSize:ue,itemBorderImageCardError:Ae,itemBorderImageCard:pe}}=o.value;return{"--n-bezier":Q,"--n-border-radius":se,"--n-dragger-border":K,"--n-dragger-border-hover":W,"--n-dragger-color":G,"--n-font-size":ue,"--n-item-color-hover":j,"--n-item-color-hover-error":Y,"--n-item-disabled-opacity":oe,"--n-item-icon-color":te,"--n-item-text-color":re,"--n-item-text-color-error":q,"--n-item-text-color-success":X,"--n-line-height":ae,"--n-item-border-image-card-error":Ae,"--n-item-border-image-card":pe}}),N=n?useThemeClass("upload",void 0,D,t):void 0;provide(uploadInjectionKey,{mergedClsPrefixRef:r,mergedThemeRef:o,showCancelButtonRef:toRef(t,"showCancelButton"),showDownloadButtonRef:toRef(t,"showDownloadButton"),showRemoveButtonRef:toRef(t,"showRemoveButton"),showRetryButtonRef:toRef(t,"showRetryButton"),onRemoveRef:toRef(t,"onRemove"),onDownloadRef:toRef(t,"onDownload"),mergedFileListRef:_,triggerStyleRef:toRef(t,"triggerStyle"),shouldUseThumbnailUrlRef:toRef(t,"shouldUseThumbnailUrl"),renderIconRef:toRef(t,"renderIcon"),xhrMap:x,submit:P,doChange:M,showPreviewButtonRef:toRef(t,"showPreviewButton"),onPreviewRef:toRef(t,"onPreview"),getFileThumbnailUrlResolver:O,listTypeRef:toRef(t,"listType"),dragOverRef:C,openOpenFileDialog:w,draggerInsideRef:b,handleFileAddition:R,mergedDisabledRef:s.mergedDisabledRef,maxReachedRef:l,fileListStyleRef:toRef(t,"fileListStyle"),abstractRef:toRef(t,"abstract"),acceptRef:toRef(t,"accept"),cssVarsRef:n?void 0:D,themeClassRef:N==null?void 0:N.themeClass,onRender:N==null?void 0:N.onRender,showTriggerRef:toRef(t,"showTrigger"),imageGroupPropsRef:toRef(t,"imageGroupProps"),mergedDirectoryDndRef:computed(()=>{var Q;return(Q=t.directoryDnd)!==null&&Q!==void 0?Q:t.directory})});const H={clear:()=>{d.value=[]},submit:P,openOpenFileDialog:w};return Object.assign({mergedClsPrefix:r,draggerInsideRef:b,inputElRef:y,mergedTheme:o,dragOver:C,mergedMultiple:B,cssVars:n?void 0:D,themeClass:N==null?void 0:N.themeClass,onRender:N==null?void 0:N.onRender,handleFileInputChange:$},H)},render(){var t,r;const{draggerInsideRef:n,mergedClsPrefix:o,$slots:s,directory:l,onRender:d}=this;if(s.default&&!this.abstract){const y=s.default()[0];!((t=y==null?void 0:y.type)===null||t===void 0)&&t[uploadDraggerKey]&&(n.value=!0)}const g=h("input",Object.assign({},this.inputProps,{ref:"inputElRef",type:"file",class:`${o}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:l||void 0,directory:l||void 0}));return this.abstract?h(Fragment,null,(r=s.default)===null||r===void 0?void 0:r.call(s),h(Teleport,{to:"body"},g)):(d==null||d(),h("div",{class:[`${o}-upload`,n.value&&`${o}-upload--dragger-inside`,this.dragOver&&`${o}-upload--drag-over`,this.themeClass],style:this.cssVars},g,this.showTrigger&&this.listType!=="image-card"&&h(NUploadTrigger,null,s),this.showFileList&&h(NUploadFileList,null,s)))}}),style$1=c$1([cB("watermark-container",`
|
|
position: relative;
|
|
`,[cNotM("selectable",`
|
|
user-select: none;
|
|
-webkit-user-select: none;
|
|
`),cM("global-rotate",`
|
|
overflow: hidden;
|
|
`),cM("fullscreen",`
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
position: fixed;
|
|
`)]),cB("watermark",`
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
pointer-events: none;
|
|
background-repeat: repeat;
|
|
`,[cM("fullscreen",`
|
|
position: fixed;
|
|
`),cM("global-rotate",`
|
|
position: absolute;
|
|
height: max(284vh, 284vw);
|
|
width: max(284vh, 284vw);
|
|
`)])]);function getRatio(t){if(!t)return 1;const r=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r}const watermarkProps=Object.assign(Object.assign({},useTheme.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 NWatermark=defineComponent({name:"Watermark",props:watermarkProps,setup(t,{slots:r}){const{mergedClsPrefixRef:n}=useConfig(t),o=useTheme("Watermark","-watermark",style$1,watermarkLight$1,t,n),s=ref(""),l=isBrowser$3?document.createElement("canvas"):null,d=l?l.getContext("2d"):null,g=ref(!1);return onFontsReady(()=>g.value=!0),watchEffect(()=>{if(!l)return;g.value;const y=getRatio(d),{xGap:b,yGap:C,width:x,height:S,yOffset:_,xOffset:w,rotate:$,image:I,content:B,fontColor:R,fontStyle:P,fontVariant:M,fontStretch:O,fontWeight:D,fontFamily:N,fontSize:H,lineHeight:Q,debug:G}=t,K=(b+x)*y,W=(C+S)*y,j=w*y,Y=_*y;if(l.width=K,l.height=W,d){d.translate(0,0);const q=x*y,X=S*y;if(G&&(d.strokeStyle="grey",d.strokeRect(0,0,q,X)),d.rotate($*(Math.PI/180)),I){const re=new Image;re.crossOrigin="anonymous",re.referrerPolicy="no-referrer",re.src=I,re.onload=()=>{d.globalAlpha=t.imageOpacity;const{imageWidth:te,imageHeight:oe}=t;d.drawImage(re,j,Y,(t.imageWidth||(oe?re.width*oe/re.height:re.width))*y,(t.imageHeight||(te?re.height*te/re.width:re.height))*y),s.value=l.toDataURL()}}else B&&(G&&(d.strokeStyle="green",d.strokeRect(0,0,q,X)),d.font=`${P} ${M} ${D} ${O} ${H*y}px/${Q*y}px ${N||o.value.self.fontFamily}`,d.fillStyle=R,d.fillText(B,j,Y+Q*y),s.value=l.toDataURL())}else warnOnce("watermark","Canvas is not supported in the browser.")}),()=>{var y;const{globalRotate:b,fullscreen:C,zIndex:x}=t,S=n.value,_=b!==0&&C,w="max(142vh, 142vw)",$=h("div",{class:[`${S}-watermark`,b!==0&&`${S}-watermark--global-rotate`,C&&`${S}-watermark--fullscreen`],style:{transform:b?`translateX(-50%) translateY(-50%) rotate(${b}deg)`:void 0,zIndex:_?void 0:x,backgroundSize:`${t.xGap+t.width}px`,backgroundPosition:b===0?t.cross?`${t.width/2}px ${t.height/2}px, 0 0`:"":t.cross?`calc(${w} + ${t.width/2}px) calc(${w} + ${t.height/2}px), ${w} ${w}`:w,backgroundImage:t.cross?`url(${s.value}), url(${s.value})`:`url(${s.value})`}});return t.fullscreen&&!b?$:h("div",{class:[`${S}-watermark-container`,b!==0&&`${S}-watermark-container--global-rotate`,C&&`${S}-watermark-container--fullscreen`,t.selectable&&`${S}-watermark-container--selectable`],style:{zIndex:_?x:void 0}},(y=r.default)===null||y===void 0?void 0:y.call(r),$)}}}),version$3="2.34.3";function create$3({componentPrefix:t="N",components:r=[]}={}){const n=[];function o(l,d,g){l.component(t+d)||l.component(t+d,g)}function s(l){n.includes(l)||(n.push(l),r.forEach(d=>{const{name:g,alias:y}=d;o(l,g,d),y&&y.forEach(b=>{o(l,b,d)})}))}return{version:version$3,componentPrefix:t,install:s}}const self$1=()=>({}),equationDark={name:"Equation",common:commonDark,self:self$1};var equationDark$1=equationDark;const darkTheme$2={name:"dark",common:commonDark,Alert:alertDark$1,Anchor:anchorDark$1,AutoComplete:autoCompleteDark$1,Avatar:avatarDark$1,AvatarGroup:avatarGroupDark$1,BackTop:backTopDark$1,Badge:badgeDark$1,Breadcrumb:breadcrumbDark$1,Button:buttonDark$1,ButtonGroup:buttonGroupDark$1,Calendar:calendarDark$1,Card:cardDark$1,Carousel:carouselDark$1,Cascader:cascaderDark$1,Checkbox:checkboxDark$1,Code:codeDark$1,Collapse:collapseDark$1,CollapseTransition:collapseTransitionDark$1,ColorPicker:colorPickerDark$1,DataTable:dataTableDark$1,DatePicker:datePickerDark$1,Descriptions:descriptionsDark$1,Dialog:dialogDark$1,Divider:dividerDark$1,Drawer:drawerDark$1,Dropdown:dropdownDark$1,DynamicInput:dynamicInputDark$1,DynamicTags:dynamicTagsDark$1,Element:elementDark$1,Empty:emptyDark$1,Ellipsis:ellipsisDark$1,Equation:equationDark$1,Form:formDark,GradientText:gradientTextDark$1,Icon:iconDark$2,IconWrapper:iconWrapperDark,Image:imageDark,Input:inputDark$1,InputNumber:inputNumberDark$1,LegacyTransfer:legacyTransferDark,Layout:layoutDark$1,List:listDark$2,LoadingBar:loadingBarDark$1,Log:logDark$1,Menu:menuDark$1,Mention:mentionDark,Message:messageDark$1,Modal:modalDark$1,Notification:notificationDark$1,PageHeader:pageHeaderDark,Pagination:paginationDark$1,Popconfirm:popconfirmDark$1,Popover:popoverDark$1,Popselect:popselectDark,Progress:progressDark$1,Radio:radioDark$1,Rate:rateDark$1,Result:resultDark$1,Row:rowDark$1,Scrollbar:scrollbarDark$1,Select:selectDark$1,Skeleton:skeletonDark,Slider:sliderDark$1,Space:spaceDark$1,Spin:spinDark$1,Statistic:statisticDark$1,Steps:stepsDark$1,Switch:switchDark$1,Table:tableDark$1,Tabs:tabsDark$1,Tag:tagDark$1,Thing:thingDark$1,TimePicker:timePickerDark$1,Timeline:timelineDark$1,Tooltip:tooltipDark$1,Transfer:transferDark$2,Tree:treeDark$1,TreeSelect:treeSelectDark$1,Typography:typographyDark$1,Upload:uploadDark$1,Watermark:watermarkDark$1},_sfc_main$d=defineComponent({__name:"index",setup(t){return window.$message=useMessage(),(r,n)=>null}}),_sfc_main$c=defineComponent({__name:"index",setup(t){return window.$dialog=useDialog(),(r,n)=>null}}),_sfc_main$b=defineComponent({__name:"index",setup(t){return window.$loading=useLoadingBar(),window.$loading.finish(),(r,n)=>null}}),_sfc_main$a=defineComponent({__name:"index",setup(t){return(r,n)=>(openBlock(),createBlock(unref(NLoadingBarProvider),null,{default:withCtx(()=>[createVNode$1(unref(NDialogProvider),null,{default:withCtx(()=>[createVNode$1(unref(_sfc_main$c)),createVNode$1(unref(_sfc_main$b)),createVNode$1(unref(NNotificationProvider),null,{default:withCtx(()=>[createVNode$1(unref(NMessageProvider),null,{default:withCtx(()=>[createVNode$1(unref(_sfc_main$d)),renderSlot(r.$slots,"default")]),_:3})]),_:3})]),_:3})]),_:3}))}});var vueI18n_cjs={},shared$3={exports:{}},shared_cjs_prod={};/*!
|
|
* shared v9.2.2
|
|
* (c) 2022 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/Object.defineProperty(shared_cjs_prod,"__esModule",{value:!0});const inBrowser$1=typeof window!="undefined";let mark,measure;const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$2(t,...r){return r.length===1&&isObject$g(r[0])&&(r=r[0]),(!r||!r.hasOwnProperty)&&(r={}),t.replace(RE_ARGS,(n,o)=>r.hasOwnProperty(o)?r[o]:"")}const hasSymbol$1=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",makeSymbol=t=>hasSymbol$1?Symbol(t):t,generateFormatCacheKey=(t,r,n)=>friendlyJSONstringify({l:t,k:r,s:n}),friendlyJSONstringify=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$3=t=>typeof t=="number"&&isFinite(t),isDate$1=t=>toTypeString(t)==="[object Date]",isRegExp$1=t=>toTypeString(t)==="[object RegExp]",isEmptyObject=t=>isPlainObject$4(t)&&Object.keys(t).length===0;function warn$2(t,r){typeof console!="undefined"&&(console.warn("[intlify] "+t),r&&console.warn(r.stack))}const assign$3=Object.assign;let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof commonjsGlobal!="undefined"?commonjsGlobal:{});function escapeHtml(t){return t.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$c=Object.prototype.hasOwnProperty;function hasOwn$1(t,r){return hasOwnProperty$c.call(t,r)}const isArray$e=Array.isArray,isFunction$6=t=>typeof t=="function",isString$3=t=>typeof t=="string",isBoolean=t=>typeof t=="boolean",isSymbol$4=t=>typeof t=="symbol",isObject$g=t=>t!==null&&typeof t=="object",isPromise=t=>isObject$g(t)&&isFunction$6(t.then)&&isFunction$6(t.catch),objectToString$2=Object.prototype.toString,toTypeString=t=>objectToString$2.call(t),isPlainObject$4=t=>toTypeString(t)==="[object Object]",toDisplayString=t=>t==null?"":isArray$e(t)||isPlainObject$4(t)&&t.toString===objectToString$2?JSON.stringify(t,null,2):String(t),RANGE=2;function generateCodeFrame(t,r=0,n=t.length){const o=t.split(/\r?\n/);let s=0;const l=[];for(let d=0;d<o.length;d++)if(s+=o[d].length+1,s>=r){for(let g=d-RANGE;g<=d+RANGE||n>s;g++){if(g<0||g>=o.length)continue;const y=g+1;l.push(`${y}${" ".repeat(3-String(y).length)}| ${o[g]}`);const b=o[g].length;if(g===d){const C=r-(s-b)+1,x=Math.max(1,n>s?b-C:n-r);l.push(" | "+" ".repeat(C)+"^".repeat(x))}else if(g>d){if(n>s){const C=Math.max(Math.min(n-s,b),1);l.push(" | "+"^".repeat(C))}s+=b+1}}break}return l.join(`
|
|
`)}function createEmitter(){const t=new Map;return{events:t,on(n,o){const s=t.get(n);s&&s.push(o)||t.set(n,[o])},off(n,o){const s=t.get(n);s&&s.splice(s.indexOf(o)>>>0,1)},emit(n,o){(t.get(n)||[]).slice().map(s=>s(o)),(t.get("*")||[]).slice().map(s=>s(n,o))}}}shared_cjs_prod.assign=assign$3;shared_cjs_prod.createEmitter=createEmitter;shared_cjs_prod.escapeHtml=escapeHtml;shared_cjs_prod.format=format$2;shared_cjs_prod.friendlyJSONstringify=friendlyJSONstringify;shared_cjs_prod.generateCodeFrame=generateCodeFrame;shared_cjs_prod.generateFormatCacheKey=generateFormatCacheKey;shared_cjs_prod.getGlobalThis=getGlobalThis;shared_cjs_prod.hasOwn=hasOwn$1;shared_cjs_prod.inBrowser=inBrowser$1;shared_cjs_prod.isArray=isArray$e;shared_cjs_prod.isBoolean=isBoolean;shared_cjs_prod.isDate=isDate$1;shared_cjs_prod.isEmptyObject=isEmptyObject;shared_cjs_prod.isFunction=isFunction$6;shared_cjs_prod.isNumber=isNumber$3;shared_cjs_prod.isObject=isObject$g;shared_cjs_prod.isPlainObject=isPlainObject$4;shared_cjs_prod.isPromise=isPromise;shared_cjs_prod.isRegExp=isRegExp$1;shared_cjs_prod.isString=isString$3;shared_cjs_prod.isSymbol=isSymbol$4;shared_cjs_prod.makeSymbol=makeSymbol;shared_cjs_prod.mark=mark;shared_cjs_prod.measure=measure;shared_cjs_prod.objectToString=objectToString$2;shared_cjs_prod.toDisplayString=toDisplayString;shared_cjs_prod.toTypeString=toTypeString;shared_cjs_prod.warn=warn$2;shared$3.exports=shared_cjs_prod;var coreBase$1={exports:{}},coreBase_cjs_prod={},messageCompiler$1={exports:{}},messageCompiler_cjs_prod={},sourceMap$1={},sourceMapGenerator={},base64Vlq={},base64$3={},intToCharMap="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");base64$3.encode=function(t){if(0<=t&&t<intToCharMap.length)return intToCharMap[t];throw new TypeError("Must be between 0 and 63: "+t)};base64$3.decode=function(t){var r=65,n=90,o=97,s=122,l=48,d=57,g=43,y=47,b=26,C=52;return r<=t&&t<=n?t-r:o<=t&&t<=s?t-o+b:l<=t&&t<=d?t-l+C:t==g?62:t==y?63:-1};var base64$2=base64$3,VLQ_BASE_SHIFT=5,VLQ_BASE=1<<VLQ_BASE_SHIFT,VLQ_BASE_MASK=VLQ_BASE-1,VLQ_CONTINUATION_BIT=VLQ_BASE;function toVLQSigned(t){return t<0?(-t<<1)+1:(t<<1)+0}function fromVLQSigned(t){var r=(t&1)===1,n=t>>1;return r?-n:n}base64Vlq.encode=function(r){var n="",o,s=toVLQSigned(r);do o=s&VLQ_BASE_MASK,s>>>=VLQ_BASE_SHIFT,s>0&&(o|=VLQ_CONTINUATION_BIT),n+=base64$2.encode(o);while(s>0);return n};base64Vlq.decode=function(r,n,o){var s=r.length,l=0,d=0,g,y;do{if(n>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(y=base64$2.decode(r.charCodeAt(n++)),y===-1)throw new Error("Invalid base64 digit: "+r.charAt(n-1));g=!!(y&VLQ_CONTINUATION_BIT),y&=VLQ_BASE_MASK,l=l+(y<<d),d+=VLQ_BASE_SHIFT}while(g);o.value=fromVLQSigned(l),o.rest=n};var util$7={};(function(t){function r(M,O,D){if(O in M)return M[O];if(arguments.length===3)return D;throw new Error('"'+O+'" is a required argument.')}t.getArg=r;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,o=/^data:.+\,.+$/;function s(M){var O=M.match(n);return O?{scheme:O[1],auth:O[2],host:O[3],port:O[4],path:O[5]}:null}t.urlParse=s;function l(M){var O="";return M.scheme&&(O+=M.scheme+":"),O+="//",M.auth&&(O+=M.auth+"@"),M.host&&(O+=M.host),M.port&&(O+=":"+M.port),M.path&&(O+=M.path),O}t.urlGenerate=l;function d(M){var O=M,D=s(M);if(D){if(!D.path)return M;O=D.path}for(var N=t.isAbsolute(O),H=O.split(/\/+/),Q,G=0,K=H.length-1;K>=0;K--)Q=H[K],Q==="."?H.splice(K,1):Q===".."?G++:G>0&&(Q===""?(H.splice(K+1,G),G=0):(H.splice(K,2),G--));return O=H.join("/"),O===""&&(O=N?"/":"."),D?(D.path=O,l(D)):O}t.normalize=d;function g(M,O){M===""&&(M="."),O===""&&(O=".");var D=s(O),N=s(M);if(N&&(M=N.path||"/"),D&&!D.scheme)return N&&(D.scheme=N.scheme),l(D);if(D||O.match(o))return O;if(N&&!N.host&&!N.path)return N.host=O,l(N);var H=O.charAt(0)==="/"?O:d(M.replace(/\/+$/,"")+"/"+O);return N?(N.path=H,l(N)):H}t.join=g,t.isAbsolute=function(M){return M.charAt(0)==="/"||n.test(M)};function y(M,O){M===""&&(M="."),M=M.replace(/\/$/,"");for(var D=0;O.indexOf(M+"/")!==0;){var N=M.lastIndexOf("/");if(N<0||(M=M.slice(0,N),M.match(/^([^\/]+:\/)?\/*$/)))return O;++D}return Array(D+1).join("../")+O.substr(M.length+1)}t.relative=y;var b=function(){var M=Object.create(null);return!("__proto__"in M)}();function C(M){return M}function x(M){return _(M)?"$"+M:M}t.toSetString=b?C:x;function S(M){return _(M)?M.slice(1):M}t.fromSetString=b?C:S;function _(M){if(!M)return!1;var O=M.length;if(O<9||M.charCodeAt(O-1)!==95||M.charCodeAt(O-2)!==95||M.charCodeAt(O-3)!==111||M.charCodeAt(O-4)!==116||M.charCodeAt(O-5)!==111||M.charCodeAt(O-6)!==114||M.charCodeAt(O-7)!==112||M.charCodeAt(O-8)!==95||M.charCodeAt(O-9)!==95)return!1;for(var D=O-10;D>=0;D--)if(M.charCodeAt(D)!==36)return!1;return!0}function w(M,O,D){var N=I(M.source,O.source);return N!==0||(N=M.originalLine-O.originalLine,N!==0)||(N=M.originalColumn-O.originalColumn,N!==0||D)||(N=M.generatedColumn-O.generatedColumn,N!==0)||(N=M.generatedLine-O.generatedLine,N!==0)?N:I(M.name,O.name)}t.compareByOriginalPositions=w;function $(M,O,D){var N=M.generatedLine-O.generatedLine;return N!==0||(N=M.generatedColumn-O.generatedColumn,N!==0||D)||(N=I(M.source,O.source),N!==0)||(N=M.originalLine-O.originalLine,N!==0)||(N=M.originalColumn-O.originalColumn,N!==0)?N:I(M.name,O.name)}t.compareByGeneratedPositionsDeflated=$;function I(M,O){return M===O?0:M===null?1:O===null?-1:M>O?1:-1}function B(M,O){var D=M.generatedLine-O.generatedLine;return D!==0||(D=M.generatedColumn-O.generatedColumn,D!==0)||(D=I(M.source,O.source),D!==0)||(D=M.originalLine-O.originalLine,D!==0)||(D=M.originalColumn-O.originalColumn,D!==0)?D:I(M.name,O.name)}t.compareByGeneratedPositionsInflated=B;function R(M){return JSON.parse(M.replace(/^\)]}'[^\n]*\n/,""))}t.parseSourceMapInput=R;function P(M,O,D){if(O=O||"",M&&(M[M.length-1]!=="/"&&O[0]!=="/"&&(M+="/"),O=M+O),D){var N=s(D);if(!N)throw new Error("sourceMapURL could not be parsed");if(N.path){var H=N.path.lastIndexOf("/");H>=0&&(N.path=N.path.substring(0,H+1))}O=g(l(N),O)}return d(O)}t.computeSourceURL=P})(util$7);var arraySet={},util$6=util$7,has$2=Object.prototype.hasOwnProperty,hasNativeMap=typeof Map!="undefined";function ArraySet$2(){this._array=[],this._set=hasNativeMap?new Map:Object.create(null)}ArraySet$2.fromArray=function(r,n){for(var o=new ArraySet$2,s=0,l=r.length;s<l;s++)o.add(r[s],n);return o};ArraySet$2.prototype.size=function(){return hasNativeMap?this._set.size:Object.getOwnPropertyNames(this._set).length};ArraySet$2.prototype.add=function(r,n){var o=hasNativeMap?r:util$6.toSetString(r),s=hasNativeMap?this.has(r):has$2.call(this._set,o),l=this._array.length;(!s||n)&&this._array.push(r),s||(hasNativeMap?this._set.set(r,l):this._set[o]=l)};ArraySet$2.prototype.has=function(r){if(hasNativeMap)return this._set.has(r);var n=util$6.toSetString(r);return has$2.call(this._set,n)};ArraySet$2.prototype.indexOf=function(r){if(hasNativeMap){var n=this._set.get(r);if(n>=0)return n}else{var o=util$6.toSetString(r);if(has$2.call(this._set,o))return this._set[o]}throw new Error('"'+r+'" is not in the set.')};ArraySet$2.prototype.at=function(r){if(r>=0&&r<this._array.length)return this._array[r];throw new Error("No element indexed by "+r)};ArraySet$2.prototype.toArray=function(){return this._array.slice()};arraySet.ArraySet=ArraySet$2;var mappingList={},util$5=util$7;function generatedPositionAfter(t,r){var n=t.generatedLine,o=r.generatedLine,s=t.generatedColumn,l=r.generatedColumn;return o>n||o==n&&l>=s||util$5.compareByGeneratedPositionsInflated(t,r)<=0}function MappingList$1(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList$1.prototype.unsortedForEach=function(r,n){this._array.forEach(r,n)};MappingList$1.prototype.add=function(r){generatedPositionAfter(this._last,r)?(this._last=r,this._array.push(r)):(this._sorted=!1,this._array.push(r))};MappingList$1.prototype.toArray=function(){return this._sorted||(this._array.sort(util$5.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};mappingList.MappingList=MappingList$1;var base64VLQ$1=base64Vlq,util$4=util$7,ArraySet$1=arraySet.ArraySet,MappingList=mappingList.MappingList;function SourceMapGenerator$1(t){t||(t={}),this._file=util$4.getArg(t,"file",null),this._sourceRoot=util$4.getArg(t,"sourceRoot",null),this._skipValidation=util$4.getArg(t,"skipValidation",!1),this._sources=new ArraySet$1,this._names=new ArraySet$1,this._mappings=new MappingList,this._sourcesContents=null}SourceMapGenerator$1.prototype._version=3;SourceMapGenerator$1.fromSourceMap=function(r){var n=r.sourceRoot,o=new SourceMapGenerator$1({file:r.file,sourceRoot:n});return r.eachMapping(function(s){var l={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(l.source=s.source,n!=null&&(l.source=util$4.relative(n,l.source)),l.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(l.name=s.name)),o.addMapping(l)}),r.sources.forEach(function(s){var l=s;n!==null&&(l=util$4.relative(n,s)),o._sources.has(l)||o._sources.add(l);var d=r.sourceContentFor(s);d!=null&&o.setSourceContent(s,d)}),o};SourceMapGenerator$1.prototype.addMapping=function(r){var n=util$4.getArg(r,"generated"),o=util$4.getArg(r,"original",null),s=util$4.getArg(r,"source",null),l=util$4.getArg(r,"name",null);this._skipValidation||this._validateMapping(n,o,s,l),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),l!=null&&(l=String(l),this._names.has(l)||this._names.add(l)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:o!=null&&o.line,originalColumn:o!=null&&o.column,source:s,name:l})};SourceMapGenerator$1.prototype.setSourceContent=function(r,n){var o=r;this._sourceRoot!=null&&(o=util$4.relative(this._sourceRoot,o)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[util$4.toSetString(o)]=n):this._sourcesContents&&(delete this._sourcesContents[util$4.toSetString(o)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};SourceMapGenerator$1.prototype.applySourceMap=function(r,n,o){var s=n;if(n==null){if(r.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=r.file}var l=this._sourceRoot;l!=null&&(s=util$4.relative(l,s));var d=new ArraySet$1,g=new ArraySet$1;this._mappings.unsortedForEach(function(y){if(y.source===s&&y.originalLine!=null){var b=r.originalPositionFor({line:y.originalLine,column:y.originalColumn});b.source!=null&&(y.source=b.source,o!=null&&(y.source=util$4.join(o,y.source)),l!=null&&(y.source=util$4.relative(l,y.source)),y.originalLine=b.line,y.originalColumn=b.column,b.name!=null&&(y.name=b.name))}var C=y.source;C!=null&&!d.has(C)&&d.add(C);var x=y.name;x!=null&&!g.has(x)&&g.add(x)},this),this._sources=d,this._names=g,r.sources.forEach(function(y){var b=r.sourceContentFor(y);b!=null&&(o!=null&&(y=util$4.join(o,y)),l!=null&&(y=util$4.relative(l,y)),this.setSourceContent(y,b))},this)};SourceMapGenerator$1.prototype._validateMapping=function(r,n,o,s){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(r&&"line"in r&&"column"in r&&r.line>0&&r.column>=0&&!n&&!o&&!s)){if(r&&"line"in r&&"column"in r&&n&&"line"in n&&"column"in n&&r.line>0&&r.column>=0&&n.line>0&&n.column>=0&&o)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:r,source:o,original:n,name:s}))}};SourceMapGenerator$1.prototype._serializeMappings=function(){for(var r=0,n=1,o=0,s=0,l=0,d=0,g="",y,b,C,x,S=this._mappings.toArray(),_=0,w=S.length;_<w;_++){if(b=S[_],y="",b.generatedLine!==n)for(r=0;b.generatedLine!==n;)y+=";",n++;else if(_>0){if(!util$4.compareByGeneratedPositionsInflated(b,S[_-1]))continue;y+=","}y+=base64VLQ$1.encode(b.generatedColumn-r),r=b.generatedColumn,b.source!=null&&(x=this._sources.indexOf(b.source),y+=base64VLQ$1.encode(x-d),d=x,y+=base64VLQ$1.encode(b.originalLine-1-s),s=b.originalLine-1,y+=base64VLQ$1.encode(b.originalColumn-o),o=b.originalColumn,b.name!=null&&(C=this._names.indexOf(b.name),y+=base64VLQ$1.encode(C-l),l=C)),g+=y}return g};SourceMapGenerator$1.prototype._generateSourcesContent=function(r,n){return r.map(function(o){if(!this._sourcesContents)return null;n!=null&&(o=util$4.relative(n,o));var s=util$4.toSetString(o);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};SourceMapGenerator$1.prototype.toJSON=function(){var r={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(r.file=this._file),this._sourceRoot!=null&&(r.sourceRoot=this._sourceRoot),this._sourcesContents&&(r.sourcesContent=this._generateSourcesContent(r.sources,r.sourceRoot)),r};SourceMapGenerator$1.prototype.toString=function(){return JSON.stringify(this.toJSON())};sourceMapGenerator.SourceMapGenerator=SourceMapGenerator$1;var sourceMapConsumer={},binarySearch$1={};(function(t){t.GREATEST_LOWER_BOUND=1,t.LEAST_UPPER_BOUND=2;function r(n,o,s,l,d,g){var y=Math.floor((o-n)/2)+n,b=d(s,l[y],!0);return b===0?y:b>0?o-y>1?r(y,o,s,l,d,g):g==t.LEAST_UPPER_BOUND?o<l.length?o:-1:y:y-n>1?r(n,y,s,l,d,g):g==t.LEAST_UPPER_BOUND?y:n<0?-1:n}t.search=function(o,s,l,d){if(s.length===0)return-1;var g=r(-1,s.length,o,s,l,d||t.GREATEST_LOWER_BOUND);if(g<0)return-1;for(;g-1>=0&&l(s[g],s[g-1],!0)===0;)--g;return g}})(binarySearch$1);var quickSort$1={};function swap(t,r,n){var o=t[r];t[r]=t[n],t[n]=o}function randomIntInRange(t,r){return Math.round(t+Math.random()*(r-t))}function doQuickSort(t,r,n,o){if(n<o){var s=randomIntInRange(n,o),l=n-1;swap(t,s,o);for(var d=t[o],g=n;g<o;g++)r(t[g],d)<=0&&(l+=1,swap(t,l,g));swap(t,l+1,g);var y=l+1;doQuickSort(t,r,n,y-1),doQuickSort(t,r,y+1,o)}}quickSort$1.quickSort=function(t,r){doQuickSort(t,r,0,t.length-1)};var util$3=util$7,binarySearch=binarySearch$1,ArraySet=arraySet.ArraySet,base64VLQ=base64Vlq,quickSort=quickSort$1.quickSort;function SourceMapConsumer(t,r){var n=t;return typeof t=="string"&&(n=util$3.parseSourceMapInput(t)),n.sections!=null?new IndexedSourceMapConsumer(n,r):new BasicSourceMapConsumer(n,r)}SourceMapConsumer.fromSourceMap=function(t,r){return BasicSourceMapConsumer.fromSourceMap(t,r)};SourceMapConsumer.prototype._version=3;SourceMapConsumer.prototype.__generatedMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});SourceMapConsumer.prototype.__originalMappings=null;Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});SourceMapConsumer.prototype._charIsMappingSeparator=function(r,n){var o=r.charAt(n);return o===";"||o===","};SourceMapConsumer.prototype._parseMappings=function(r,n){throw new Error("Subclasses must implement _parseMappings")};SourceMapConsumer.GENERATED_ORDER=1;SourceMapConsumer.ORIGINAL_ORDER=2;SourceMapConsumer.GREATEST_LOWER_BOUND=1;SourceMapConsumer.LEAST_UPPER_BOUND=2;SourceMapConsumer.prototype.eachMapping=function(r,n,o){var s=n||null,l=o||SourceMapConsumer.GENERATED_ORDER,d;switch(l){case SourceMapConsumer.GENERATED_ORDER:d=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:d=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var g=this.sourceRoot;d.map(function(y){var b=y.source===null?null:this._sources.at(y.source);return b=util$3.computeSourceURL(g,b,this._sourceMapURL),{source:b,generatedLine:y.generatedLine,generatedColumn:y.generatedColumn,originalLine:y.originalLine,originalColumn:y.originalColumn,name:y.name===null?null:this._names.at(y.name)}},this).forEach(r,s)};SourceMapConsumer.prototype.allGeneratedPositionsFor=function(r){var n=util$3.getArg(r,"line"),o={source:util$3.getArg(r,"source"),originalLine:n,originalColumn:util$3.getArg(r,"column",0)};if(o.source=this._findSourceIndex(o.source),o.source<0)return[];var s=[],l=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",util$3.compareByOriginalPositions,binarySearch.LEAST_UPPER_BOUND);if(l>=0){var d=this._originalMappings[l];if(r.column===void 0)for(var g=d.originalLine;d&&d.originalLine===g;)s.push({line:util$3.getArg(d,"generatedLine",null),column:util$3.getArg(d,"generatedColumn",null),lastColumn:util$3.getArg(d,"lastGeneratedColumn",null)}),d=this._originalMappings[++l];else for(var y=d.originalColumn;d&&d.originalLine===n&&d.originalColumn==y;)s.push({line:util$3.getArg(d,"generatedLine",null),column:util$3.getArg(d,"generatedColumn",null),lastColumn:util$3.getArg(d,"lastGeneratedColumn",null)}),d=this._originalMappings[++l]}return s};sourceMapConsumer.SourceMapConsumer=SourceMapConsumer;function BasicSourceMapConsumer(t,r){var n=t;typeof t=="string"&&(n=util$3.parseSourceMapInput(t));var o=util$3.getArg(n,"version"),s=util$3.getArg(n,"sources"),l=util$3.getArg(n,"names",[]),d=util$3.getArg(n,"sourceRoot",null),g=util$3.getArg(n,"sourcesContent",null),y=util$3.getArg(n,"mappings"),b=util$3.getArg(n,"file",null);if(o!=this._version)throw new Error("Unsupported version: "+o);d&&(d=util$3.normalize(d)),s=s.map(String).map(util$3.normalize).map(function(C){return d&&util$3.isAbsolute(d)&&util$3.isAbsolute(C)?util$3.relative(d,C):C}),this._names=ArraySet.fromArray(l.map(String),!0),this._sources=ArraySet.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(C){return util$3.computeSourceURL(d,C,r)}),this.sourceRoot=d,this.sourcesContent=g,this._mappings=y,this._sourceMapURL=r,this.file=b}BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer;BasicSourceMapConsumer.prototype._findSourceIndex=function(t){var r=t;if(this.sourceRoot!=null&&(r=util$3.relative(this.sourceRoot,r)),this._sources.has(r))return this._sources.indexOf(r);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==t)return n;return-1};BasicSourceMapConsumer.fromSourceMap=function(r,n){var o=Object.create(BasicSourceMapConsumer.prototype),s=o._names=ArraySet.fromArray(r._names.toArray(),!0),l=o._sources=ArraySet.fromArray(r._sources.toArray(),!0);o.sourceRoot=r._sourceRoot,o.sourcesContent=r._generateSourcesContent(o._sources.toArray(),o.sourceRoot),o.file=r._file,o._sourceMapURL=n,o._absoluteSources=o._sources.toArray().map(function(_){return util$3.computeSourceURL(o.sourceRoot,_,n)});for(var d=r._mappings.toArray().slice(),g=o.__generatedMappings=[],y=o.__originalMappings=[],b=0,C=d.length;b<C;b++){var x=d[b],S=new Mapping;S.generatedLine=x.generatedLine,S.generatedColumn=x.generatedColumn,x.source&&(S.source=l.indexOf(x.source),S.originalLine=x.originalLine,S.originalColumn=x.originalColumn,x.name&&(S.name=s.indexOf(x.name)),y.push(S)),g.push(S)}return quickSort(o.__originalMappings,util$3.compareByOriginalPositions),o};BasicSourceMapConsumer.prototype._version=3;Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}BasicSourceMapConsumer.prototype._parseMappings=function(r,n){for(var o=1,s=0,l=0,d=0,g=0,y=0,b=r.length,C=0,x={},S={},_=[],w=[],$,I,B,R,P;C<b;)if(r.charAt(C)===";")o++,C++,s=0;else if(r.charAt(C)===",")C++;else{for($=new Mapping,$.generatedLine=o,R=C;R<b&&!this._charIsMappingSeparator(r,R);R++);if(I=r.slice(C,R),B=x[I],B)C+=I.length;else{for(B=[];C<R;)base64VLQ.decode(r,C,S),P=S.value,C=S.rest,B.push(P);if(B.length===2)throw new Error("Found a source, but no line and column");if(B.length===3)throw new Error("Found a source and line, but no column");x[I]=B}$.generatedColumn=s+B[0],s=$.generatedColumn,B.length>1&&($.source=g+B[1],g+=B[1],$.originalLine=l+B[2],l=$.originalLine,$.originalLine+=1,$.originalColumn=d+B[3],d=$.originalColumn,B.length>4&&($.name=y+B[4],y+=B[4])),w.push($),typeof $.originalLine=="number"&&_.push($)}quickSort(w,util$3.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,quickSort(_,util$3.compareByOriginalPositions),this.__originalMappings=_};BasicSourceMapConsumer.prototype._findMapping=function(r,n,o,s,l,d){if(r[o]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+r[o]);if(r[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+r[s]);return binarySearch.search(r,n,l,d)};BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var r=0;r<this._generatedMappings.length;++r){var n=this._generatedMappings[r];if(r+1<this._generatedMappings.length){var o=this._generatedMappings[r+1];if(n.generatedLine===o.generatedLine){n.lastGeneratedColumn=o.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};BasicSourceMapConsumer.prototype.originalPositionFor=function(r){var n={generatedLine:util$3.getArg(r,"line"),generatedColumn:util$3.getArg(r,"column")},o=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",util$3.compareByGeneratedPositionsDeflated,util$3.getArg(r,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(o>=0){var s=this._generatedMappings[o];if(s.generatedLine===n.generatedLine){var l=util$3.getArg(s,"source",null);l!==null&&(l=this._sources.at(l),l=util$3.computeSourceURL(this.sourceRoot,l,this._sourceMapURL));var d=util$3.getArg(s,"name",null);return d!==null&&(d=this._names.at(d)),{source:l,line:util$3.getArg(s,"originalLine",null),column:util$3.getArg(s,"originalColumn",null),name:d}}}return{source:null,line:null,column:null,name:null}};BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(r){return r==null}):!1};BasicSourceMapConsumer.prototype.sourceContentFor=function(r,n){if(!this.sourcesContent)return null;var o=this._findSourceIndex(r);if(o>=0)return this.sourcesContent[o];var s=r;this.sourceRoot!=null&&(s=util$3.relative(this.sourceRoot,s));var l;if(this.sourceRoot!=null&&(l=util$3.urlParse(this.sourceRoot))){var d=s.replace(/^file:\/\//,"");if(l.scheme=="file"&&this._sources.has(d))return this.sourcesContent[this._sources.indexOf(d)];if((!l.path||l.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(n)return null;throw new Error('"'+s+'" is not in the SourceMap.')};BasicSourceMapConsumer.prototype.generatedPositionFor=function(r){var n=util$3.getArg(r,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var o={source:n,originalLine:util$3.getArg(r,"line"),originalColumn:util$3.getArg(r,"column")},s=this._findMapping(o,this._originalMappings,"originalLine","originalColumn",util$3.compareByOriginalPositions,util$3.getArg(r,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(s>=0){var l=this._originalMappings[s];if(l.source===o.source)return{line:util$3.getArg(l,"generatedLine",null),column:util$3.getArg(l,"generatedColumn",null),lastColumn:util$3.getArg(l,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};sourceMapConsumer.BasicSourceMapConsumer=BasicSourceMapConsumer;function IndexedSourceMapConsumer(t,r){var n=t;typeof t=="string"&&(n=util$3.parseSourceMapInput(t));var o=util$3.getArg(n,"version"),s=util$3.getArg(n,"sections");if(o!=this._version)throw new Error("Unsupported version: "+o);this._sources=new ArraySet,this._names=new ArraySet;var l={line:-1,column:0};this._sections=s.map(function(d){if(d.url)throw new Error("Support for url field in sections not implemented.");var g=util$3.getArg(d,"offset"),y=util$3.getArg(g,"line"),b=util$3.getArg(g,"column");if(y<l.line||y===l.line&&b<l.column)throw new Error("Section offsets must be ordered and non-overlapping.");return l=g,{generatedOffset:{generatedLine:y+1,generatedColumn:b+1},consumer:new SourceMapConsumer(util$3.getArg(d,"map"),r)}})}IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype);IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer;IndexedSourceMapConsumer.prototype._version=3;Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var t=[],r=0;r<this._sections.length;r++)for(var n=0;n<this._sections[r].consumer.sources.length;n++)t.push(this._sections[r].consumer.sources[n]);return t}});IndexedSourceMapConsumer.prototype.originalPositionFor=function(r){var n={generatedLine:util$3.getArg(r,"line"),generatedColumn:util$3.getArg(r,"column")},o=binarySearch.search(n,this._sections,function(l,d){var g=l.generatedLine-d.generatedOffset.generatedLine;return g||l.generatedColumn-d.generatedOffset.generatedColumn}),s=this._sections[o];return s?s.consumer.originalPositionFor({line:n.generatedLine-(s.generatedOffset.generatedLine-1),column:n.generatedColumn-(s.generatedOffset.generatedLine===n.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:r.bias}):{source:null,line:null,column:null,name:null}};IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(r){return r.consumer.hasContentsOfAllSources()})};IndexedSourceMapConsumer.prototype.sourceContentFor=function(r,n){for(var o=0;o<this._sections.length;o++){var s=this._sections[o],l=s.consumer.sourceContentFor(r,!0);if(l)return l}if(n)return null;throw new Error('"'+r+'" is not in the SourceMap.')};IndexedSourceMapConsumer.prototype.generatedPositionFor=function(r){for(var n=0;n<this._sections.length;n++){var o=this._sections[n];if(o.consumer._findSourceIndex(util$3.getArg(r,"source"))!==-1){var s=o.consumer.generatedPositionFor(r);if(s){var l={line:s.line+(o.generatedOffset.generatedLine-1),column:s.column+(o.generatedOffset.generatedLine===s.line?o.generatedOffset.generatedColumn-1:0)};return l}}}return{line:null,column:null}};IndexedSourceMapConsumer.prototype._parseMappings=function(r,n){this.__generatedMappings=[],this.__originalMappings=[];for(var o=0;o<this._sections.length;o++)for(var s=this._sections[o],l=s.consumer._generatedMappings,d=0;d<l.length;d++){var g=l[d],y=s.consumer._sources.at(g.source);y=util$3.computeSourceURL(s.consumer.sourceRoot,y,this._sourceMapURL),this._sources.add(y),y=this._sources.indexOf(y);var b=null;g.name&&(b=s.consumer._names.at(g.name),this._names.add(b),b=this._names.indexOf(b));var C={source:y,generatedLine:g.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:g.generatedColumn+(s.generatedOffset.generatedLine===g.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:g.originalLine,originalColumn:g.originalColumn,name:b};this.__generatedMappings.push(C),typeof C.originalLine=="number"&&this.__originalMappings.push(C)}quickSort(this.__generatedMappings,util$3.compareByGeneratedPositionsDeflated),quickSort(this.__originalMappings,util$3.compareByOriginalPositions)};sourceMapConsumer.IndexedSourceMapConsumer=IndexedSourceMapConsumer;var sourceNode={},SourceMapGenerator=sourceMapGenerator.SourceMapGenerator,util$2=util$7,REGEX_NEWLINE=/(\r?\n)/,NEWLINE_CODE=10,isSourceNode="$$$isSourceNode$$$";function SourceNode(t,r,n,o,s){this.children=[],this.sourceContents={},this.line=t==null?null:t,this.column=r==null?null:r,this.source=n==null?null:n,this.name=s==null?null:s,this[isSourceNode]=!0,o!=null&&this.add(o)}SourceNode.fromStringWithSourceMap=function(r,n,o){var s=new SourceNode,l=r.split(REGEX_NEWLINE),d=0,g=function(){var S=w(),_=w()||"";return S+_;function w(){return d<l.length?l[d++]:void 0}},y=1,b=0,C=null;return n.eachMapping(function(S){if(C!==null)if(y<S.generatedLine)x(C,g()),y++,b=0;else{var _=l[d]||"",w=_.substr(0,S.generatedColumn-b);l[d]=_.substr(S.generatedColumn-b),b=S.generatedColumn,x(C,w),C=S;return}for(;y<S.generatedLine;)s.add(g()),y++;if(b<S.generatedColumn){var _=l[d]||"";s.add(_.substr(0,S.generatedColumn)),l[d]=_.substr(S.generatedColumn),b=S.generatedColumn}C=S},this),d<l.length&&(C&&x(C,g()),s.add(l.splice(d).join(""))),n.sources.forEach(function(S){var _=n.sourceContentFor(S);_!=null&&(o!=null&&(S=util$2.join(o,S)),s.setSourceContent(S,_))}),s;function x(S,_){if(S===null||S.source===void 0)s.add(_);else{var w=o?util$2.join(o,S.source):S.source;s.add(new SourceNode(S.originalLine,S.originalColumn,w,_,S.name))}}};SourceNode.prototype.add=function(r){if(Array.isArray(r))r.forEach(function(n){this.add(n)},this);else if(r[isSourceNode]||typeof r=="string")r&&this.children.push(r);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+r);return this};SourceNode.prototype.prepend=function(r){if(Array.isArray(r))for(var n=r.length-1;n>=0;n--)this.prepend(r[n]);else if(r[isSourceNode]||typeof r=="string")this.children.unshift(r);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+r);return this};SourceNode.prototype.walk=function(r){for(var n,o=0,s=this.children.length;o<s;o++)n=this.children[o],n[isSourceNode]?n.walk(r):n!==""&&r(n,{source:this.source,line:this.line,column:this.column,name:this.name})};SourceNode.prototype.join=function(r){var n,o,s=this.children.length;if(s>0){for(n=[],o=0;o<s-1;o++)n.push(this.children[o]),n.push(r);n.push(this.children[o]),this.children=n}return this};SourceNode.prototype.replaceRight=function(r,n){var o=this.children[this.children.length-1];return o[isSourceNode]?o.replaceRight(r,n):typeof o=="string"?this.children[this.children.length-1]=o.replace(r,n):this.children.push("".replace(r,n)),this};SourceNode.prototype.setSourceContent=function(r,n){this.sourceContents[util$2.toSetString(r)]=n};SourceNode.prototype.walkSourceContents=function(r){for(var n=0,o=this.children.length;n<o;n++)this.children[n][isSourceNode]&&this.children[n].walkSourceContents(r);for(var s=Object.keys(this.sourceContents),n=0,o=s.length;n<o;n++)r(util$2.fromSetString(s[n]),this.sourceContents[s[n]])};SourceNode.prototype.toString=function(){var r="";return this.walk(function(n){r+=n}),r};SourceNode.prototype.toStringWithSourceMap=function(r){var n={code:"",line:1,column:0},o=new SourceMapGenerator(r),s=!1,l=null,d=null,g=null,y=null;return this.walk(function(b,C){n.code+=b,C.source!==null&&C.line!==null&&C.column!==null?((l!==C.source||d!==C.line||g!==C.column||y!==C.name)&&o.addMapping({source:C.source,original:{line:C.line,column:C.column},generated:{line:n.line,column:n.column},name:C.name}),l=C.source,d=C.line,g=C.column,y=C.name,s=!0):s&&(o.addMapping({generated:{line:n.line,column:n.column}}),l=null,s=!1);for(var x=0,S=b.length;x<S;x++)b.charCodeAt(x)===NEWLINE_CODE?(n.line++,n.column=0,x+1===S?(l=null,s=!1):s&&o.addMapping({source:C.source,original:{line:C.line,column:C.column},generated:{line:n.line,column:n.column},name:C.name})):n.column++}),this.walkSourceContents(function(b,C){o.setSourceContent(b,C)}),{code:n.code,map:o}};sourceNode.SourceNode=SourceNode;sourceMap$1.SourceMapGenerator=sourceMapGenerator.SourceMapGenerator;sourceMap$1.SourceMapConsumer=sourceMapConsumer.SourceMapConsumer;sourceMap$1.SourceNode=sourceNode.SourceNode;/*!
|
|
* message-compiler v9.2.2
|
|
* (c) 2022 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/Object.defineProperty(messageCompiler_cjs_prod,"__esModule",{value:!0});var shared$2=shared$3.exports,sourceMap=sourceMap$1;const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15},errorMessages$1={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'"};function createCompileError(t,r,n={}){const{domain:o,messages:s,args:l}=n,d=t,g=new SyntaxError(String(d));return g.code=t,r&&(g.location=r),g.domain=o,g}function defaultOnError(t){throw t}const LocationStub={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}};function createPosition(t,r,n){return{line:t,column:r,offset:n}}function createLocation(t,r,n){const o={start:t,end:r};return n!=null&&(o.source=n),o}const CHAR_SP=" ",CHAR_CR="\r",CHAR_LF=`
|
|
`,CHAR_LS=String.fromCharCode(8232),CHAR_PS=String.fromCharCode(8233);function createScanner(t){const r=t;let n=0,o=1,s=1,l=0;const d=N=>r[N]===CHAR_CR&&r[N+1]===CHAR_LF,g=N=>r[N]===CHAR_LF,y=N=>r[N]===CHAR_PS,b=N=>r[N]===CHAR_LS,C=N=>d(N)||g(N)||y(N)||b(N),x=()=>n,S=()=>o,_=()=>s,w=()=>l,$=N=>d(N)||y(N)||b(N)?CHAR_LF:r[N],I=()=>$(n),B=()=>$(n+l);function R(){return l=0,C(n)&&(o++,s=0),d(n)&&n++,n++,s++,r[n]}function P(){return d(n+l)&&l++,l++,r[n+l]}function M(){n=0,o=1,s=1,l=0}function O(N=0){l=N}function D(){const N=n+l;for(;N!==n;)R();l=0}return{index:x,line:S,column:_,peekOffset:w,charAt:$,currentChar:I,currentPeek:B,next:R,peek:P,reset:M,resetPeek:O,skipToPeek:D}}const EOF$1=void 0,LITERAL_DELIMITER="'",ERROR_DOMAIN$1="tokenizer";function createTokenizer(t,r={}){const n=r.location!==!1,o=createScanner(t),s=()=>o.index(),l=()=>createPosition(o.line(),o.column(),o.index()),d=l(),g=s(),y={currentType:14,offset:g,startLoc:d,endLoc:d,lastType:14,lastOffset:g,lastStartLoc:d,lastEndLoc:d,braceNest:0,inLinked:!1,text:""},b=()=>y,{onError:C}=r;function x(ee,J,ce,...fe){const ne=b();if(J.column+=ce,J.offset+=ce,C){const le=createLocation(ne.startLoc,J),me=createCompileError(ee,le,{domain:ERROR_DOMAIN$1,args:fe});C(me)}}function S(ee,J,ce){ee.endLoc=l(),ee.currentType=J;const fe={type:J};return n&&(fe.loc=createLocation(ee.startLoc,ee.endLoc)),ce!=null&&(fe.value=ce),fe}const _=ee=>S(ee,14);function w(ee,J){return ee.currentChar()===J?(ee.next(),J):(x(CompileErrorCodes.EXPECTED_TOKEN,l(),0,J),"")}function $(ee){let J="";for(;ee.currentPeek()===CHAR_SP||ee.currentPeek()===CHAR_LF;)J+=ee.currentPeek(),ee.peek();return J}function I(ee){const J=$(ee);return ee.skipToPeek(),J}function B(ee){if(ee===EOF$1)return!1;const J=ee.charCodeAt(0);return J>=97&&J<=122||J>=65&&J<=90||J===95}function R(ee){if(ee===EOF$1)return!1;const J=ee.charCodeAt(0);return J>=48&&J<=57}function P(ee,J){const{currentType:ce}=J;if(ce!==2)return!1;$(ee);const fe=B(ee.currentPeek());return ee.resetPeek(),fe}function M(ee,J){const{currentType:ce}=J;if(ce!==2)return!1;$(ee);const fe=ee.currentPeek()==="-"?ee.peek():ee.currentPeek(),ne=R(fe);return ee.resetPeek(),ne}function O(ee,J){const{currentType:ce}=J;if(ce!==2)return!1;$(ee);const fe=ee.currentPeek()===LITERAL_DELIMITER;return ee.resetPeek(),fe}function D(ee,J){const{currentType:ce}=J;if(ce!==8)return!1;$(ee);const fe=ee.currentPeek()===".";return ee.resetPeek(),fe}function N(ee,J){const{currentType:ce}=J;if(ce!==9)return!1;$(ee);const fe=B(ee.currentPeek());return ee.resetPeek(),fe}function H(ee,J){const{currentType:ce}=J;if(!(ce===8||ce===12))return!1;$(ee);const fe=ee.currentPeek()===":";return ee.resetPeek(),fe}function Q(ee,J){const{currentType:ce}=J;if(ce!==10)return!1;const fe=()=>{const le=ee.currentPeek();return le==="{"?B(ee.peek()):le==="@"||le==="%"||le==="|"||le===":"||le==="."||le===CHAR_SP||!le?!1:le===CHAR_LF?(ee.peek(),fe()):B(le)},ne=fe();return ee.resetPeek(),ne}function G(ee){$(ee);const J=ee.currentPeek()==="|";return ee.resetPeek(),J}function K(ee){const J=$(ee),ce=ee.currentPeek()==="%"&&ee.peek()==="{";return ee.resetPeek(),{isModulo:ce,hasSpace:J.length>0}}function W(ee,J=!0){const ce=(ne=!1,le="",me=!1)=>{const Te=ee.currentPeek();return Te==="{"?le==="%"?!1:ne:Te==="@"||!Te?le==="%"?!0:ne:Te==="%"?(ee.peek(),ce(ne,"%",!0)):Te==="|"?le==="%"||me?!0:!(le===CHAR_SP||le===CHAR_LF):Te===CHAR_SP?(ee.peek(),ce(!0,CHAR_SP,me)):Te===CHAR_LF?(ee.peek(),ce(!0,CHAR_LF,me)):!0},fe=ce();return J&&ee.resetPeek(),fe}function j(ee,J){const ce=ee.currentChar();return ce===EOF$1?EOF$1:J(ce)?(ee.next(),ce):null}function Y(ee){return j(ee,ce=>{const fe=ce.charCodeAt(0);return fe>=97&&fe<=122||fe>=65&&fe<=90||fe>=48&&fe<=57||fe===95||fe===36})}function q(ee){return j(ee,ce=>{const fe=ce.charCodeAt(0);return fe>=48&&fe<=57})}function X(ee){return j(ee,ce=>{const fe=ce.charCodeAt(0);return fe>=48&&fe<=57||fe>=65&&fe<=70||fe>=97&&fe<=102})}function re(ee){let J="",ce="";for(;J=q(ee);)ce+=J;return ce}function te(ee){I(ee);const J=ee.currentChar();return J!=="%"&&x(CompileErrorCodes.EXPECTED_TOKEN,l(),0,J),ee.next(),"%"}function oe(ee){let J="";for(;;){const ce=ee.currentChar();if(ce==="{"||ce==="}"||ce==="@"||ce==="|"||!ce)break;if(ce==="%")if(W(ee))J+=ce,ee.next();else break;else if(ce===CHAR_SP||ce===CHAR_LF)if(W(ee))J+=ce,ee.next();else{if(G(ee))break;J+=ce,ee.next()}else J+=ce,ee.next()}return J}function ae(ee){I(ee);let J="",ce="";for(;J=Y(ee);)ce+=J;return ee.currentChar()===EOF$1&&x(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),ce}function se(ee){I(ee);let J="";return ee.currentChar()==="-"?(ee.next(),J+=`-${re(ee)}`):J+=re(ee),ee.currentChar()===EOF$1&&x(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),J}function ue(ee){I(ee),w(ee,"'");let J="",ce="";const fe=le=>le!==LITERAL_DELIMITER&&le!==CHAR_LF;for(;J=j(ee,fe);)J==="\\"?ce+=Ae(ee):ce+=J;const ne=ee.currentChar();return ne===CHAR_LF||ne===EOF$1?(x(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,l(),0),ne===CHAR_LF&&(ee.next(),w(ee,"'")),ce):(w(ee,"'"),ce)}function Ae(ee){const J=ee.currentChar();switch(J){case"\\":case"'":return ee.next(),`\\${J}`;case"u":return pe(ee,J,4);case"U":return pe(ee,J,6);default:return x(CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE,l(),0,J),""}}function pe(ee,J,ce){w(ee,J);let fe="";for(let ne=0;ne<ce;ne++){const le=X(ee);if(!le){x(CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE,l(),0,`\\${J}${fe}${ee.currentChar()}`);break}fe+=le}return`\\${J}${fe}`}function he(ee){I(ee);let J="",ce="";const fe=ne=>ne!=="{"&&ne!=="}"&&ne!==CHAR_SP&&ne!==CHAR_LF;for(;J=j(ee,fe);)ce+=J;return ce}function Ce(ee){let J="",ce="";for(;J=Y(ee);)ce+=J;return ce}function ve(ee){const J=(ce=!1,fe)=>{const ne=ee.currentChar();return ne==="{"||ne==="%"||ne==="@"||ne==="|"||!ne||ne===CHAR_SP?fe:ne===CHAR_LF?(fe+=ne,ee.next(),J(ce,fe)):(fe+=ne,ee.next(),J(!0,fe))};return J(!1,"")}function ye(ee){I(ee);const J=w(ee,"|");return I(ee),J}function Be(ee,J){let ce=null;switch(ee.currentChar()){case"{":return J.braceNest>=1&&x(CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER,l(),0),ee.next(),ce=S(J,2,"{"),I(ee),J.braceNest++,ce;case"}":return J.braceNest>0&&J.currentType===2&&x(CompileErrorCodes.EMPTY_PLACEHOLDER,l(),0),ee.next(),ce=S(J,3,"}"),J.braceNest--,J.braceNest>0&&I(ee),J.inLinked&&J.braceNest===0&&(J.inLinked=!1),ce;case"@":return J.braceNest>0&&x(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),ce=Se(ee,J)||_(J),J.braceNest=0,ce;default:let ne=!0,le=!0,me=!0;if(G(ee))return J.braceNest>0&&x(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),ce=S(J,1,ye(ee)),J.braceNest=0,J.inLinked=!1,ce;if(J.braceNest>0&&(J.currentType===5||J.currentType===6||J.currentType===7))return x(CompileErrorCodes.UNTERMINATED_CLOSING_BRACE,l(),0),J.braceNest=0,Ee(ee,J);if(ne=P(ee,J))return ce=S(J,5,ae(ee)),I(ee),ce;if(le=M(ee,J))return ce=S(J,6,se(ee)),I(ee),ce;if(me=O(ee,J))return ce=S(J,7,ue(ee)),I(ee),ce;if(!ne&&!le&&!me)return ce=S(J,13,he(ee)),x(CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER,l(),0,ce.value),I(ee),ce;break}return ce}function Se(ee,J){const{currentType:ce}=J;let fe=null;const ne=ee.currentChar();switch((ce===8||ce===9||ce===12||ce===10)&&(ne===CHAR_LF||ne===CHAR_SP)&&x(CompileErrorCodes.INVALID_LINKED_FORMAT,l(),0),ne){case"@":return ee.next(),fe=S(J,8,"@"),J.inLinked=!0,fe;case".":return I(ee),ee.next(),S(J,9,".");case":":return I(ee),ee.next(),S(J,10,":");default:return G(ee)?(fe=S(J,1,ye(ee)),J.braceNest=0,J.inLinked=!1,fe):D(ee,J)||H(ee,J)?(I(ee),Se(ee,J)):N(ee,J)?(I(ee),S(J,12,Ce(ee))):Q(ee,J)?(I(ee),ne==="{"?Be(ee,J)||fe:S(J,11,ve(ee))):(ce===8&&x(CompileErrorCodes.INVALID_LINKED_FORMAT,l(),0),J.braceNest=0,J.inLinked=!1,Ee(ee,J))}}function Ee(ee,J){let ce={type:14};if(J.braceNest>0)return Be(ee,J)||_(J);if(J.inLinked)return Se(ee,J)||_(J);switch(ee.currentChar()){case"{":return Be(ee,J)||_(J);case"}":return x(CompileErrorCodes.UNBALANCED_CLOSING_BRACE,l(),0),ee.next(),S(J,3,"}");case"@":return Se(ee,J)||_(J);default:if(G(ee))return ce=S(J,1,ye(ee)),J.braceNest=0,J.inLinked=!1,ce;const{isModulo:ne,hasSpace:le}=K(ee);if(ne)return le?S(J,0,oe(ee)):S(J,4,te(ee));if(W(ee))return S(J,0,oe(ee));break}return ce}function ie(){const{currentType:ee,offset:J,startLoc:ce,endLoc:fe}=y;return y.lastType=ee,y.lastOffset=J,y.lastStartLoc=ce,y.lastEndLoc=fe,y.offset=s(),y.startLoc=l(),o.currentChar()===EOF$1?S(y,14):Ee(o,y)}return{nextToken:ie,currentOffset:s,currentPosition:l,context:b}}const ERROR_DOMAIN="parser",KNOWN_ESCAPES=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function fromEscapeSequence(t,r,n){switch(t){case"\\\\":return"\\";case"\\'":return"'";default:{const o=parseInt(r||n,16);return o<=55295||o>=57344?String.fromCodePoint(o):"\uFFFD"}}}function createParser(t={}){const r=t.location!==!1,{onError:n}=t;function o(B,R,P,M,...O){const D=B.currentPosition();if(D.offset+=M,D.column+=M,n){const N=createLocation(P,D),H=createCompileError(R,N,{domain:ERROR_DOMAIN,args:O});n(H)}}function s(B,R,P){const M={type:B,start:R,end:R};return r&&(M.loc={start:P,end:P}),M}function l(B,R,P,M){B.end=R,M&&(B.type=M),r&&B.loc&&(B.loc.end=P)}function d(B,R){const P=B.context(),M=s(3,P.offset,P.startLoc);return M.value=R,l(M,B.currentOffset(),B.currentPosition()),M}function g(B,R){const P=B.context(),{lastOffset:M,lastStartLoc:O}=P,D=s(5,M,O);return D.index=parseInt(R,10),B.nextToken(),l(D,B.currentOffset(),B.currentPosition()),D}function y(B,R){const P=B.context(),{lastOffset:M,lastStartLoc:O}=P,D=s(4,M,O);return D.key=R,B.nextToken(),l(D,B.currentOffset(),B.currentPosition()),D}function b(B,R){const P=B.context(),{lastOffset:M,lastStartLoc:O}=P,D=s(9,M,O);return D.value=R.replace(KNOWN_ESCAPES,fromEscapeSequence),B.nextToken(),l(D,B.currentOffset(),B.currentPosition()),D}function C(B){const R=B.nextToken(),P=B.context(),{lastOffset:M,lastStartLoc:O}=P,D=s(8,M,O);return R.type!==12?(o(B,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER,P.lastStartLoc,0),D.value="",l(D,M,O),{nextConsumeToken:R,node:D}):(R.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,P.lastStartLoc,0,getTokenCaption(R)),D.value=R.value||"",l(D,B.currentOffset(),B.currentPosition()),{node:D})}function x(B,R){const P=B.context(),M=s(7,P.offset,P.startLoc);return M.value=R,l(M,B.currentOffset(),B.currentPosition()),M}function S(B){const R=B.context(),P=s(6,R.offset,R.startLoc);let M=B.nextToken();if(M.type===9){const O=C(B);P.modifier=O.node,M=O.nextConsumeToken||B.nextToken()}switch(M.type!==10&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(M)),M=B.nextToken(),M.type===2&&(M=B.nextToken()),M.type){case 11:M.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(M)),P.key=x(B,M.value||"");break;case 5:M.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(M)),P.key=y(B,M.value||"");break;case 6:M.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(M)),P.key=g(B,M.value||"");break;case 7:M.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(M)),P.key=b(B,M.value||"");break;default:o(B,CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY,R.lastStartLoc,0);const O=B.context(),D=s(7,O.offset,O.startLoc);return D.value="",l(D,O.offset,O.startLoc),P.key=D,l(P,O.offset,O.startLoc),{nextConsumeToken:M,node:P}}return l(P,B.currentOffset(),B.currentPosition()),{node:P}}function _(B){const R=B.context(),P=R.currentType===1?B.currentOffset():R.offset,M=R.currentType===1?R.endLoc:R.startLoc,O=s(2,P,M);O.items=[];let D=null;do{const Q=D||B.nextToken();switch(D=null,Q.type){case 0:Q.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(Q)),O.items.push(d(B,Q.value||""));break;case 6:Q.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(Q)),O.items.push(g(B,Q.value||""));break;case 5:Q.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(Q)),O.items.push(y(B,Q.value||""));break;case 7:Q.value==null&&o(B,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,R.lastStartLoc,0,getTokenCaption(Q)),O.items.push(b(B,Q.value||""));break;case 8:const G=S(B);O.items.push(G.node),D=G.nextConsumeToken||null;break}}while(R.currentType!==14&&R.currentType!==1);const N=R.currentType===1?R.lastOffset:B.currentOffset(),H=R.currentType===1?R.lastEndLoc:B.currentPosition();return l(O,N,H),O}function w(B,R,P,M){const O=B.context();let D=M.items.length===0;const N=s(1,R,P);N.cases=[],N.cases.push(M);do{const H=_(B);D||(D=H.items.length===0),N.cases.push(H)}while(O.currentType!==14);return D&&o(B,CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL,P,0),l(N,B.currentOffset(),B.currentPosition()),N}function $(B){const R=B.context(),{offset:P,startLoc:M}=R,O=_(B);return R.currentType===14?O:w(B,P,M,O)}function I(B){const R=createTokenizer(B,shared$2.assign({},t)),P=R.context(),M=s(0,P.offset,P.startLoc);return r&&M.loc&&(M.loc.source=B),M.body=$(R),P.currentType!==14&&o(R,CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS,P.lastStartLoc,0,B[P.offset]||""),l(M,R.currentOffset(),R.currentPosition()),M}return{parse:I}}function getTokenCaption(t){if(t.type===14)return"EOF";const r=(t.value||"").replace(/\r?\n/gu,"\\n");return r.length>10?r.slice(0,9)+"\u2026":r}function createTransformer(t,r={}){const n={ast:t,helpers:new Set};return{context:()=>n,helper:l=>(n.helpers.add(l),l)}}function traverseNodes(t,r){for(let n=0;n<t.length;n++)traverseNode(t[n],r)}function traverseNode(t,r){switch(t.type){case 1:traverseNodes(t.cases,r),r.helper("plural");break;case 2:traverseNodes(t.items,r);break;case 6:traverseNode(t.key,r),r.helper("linked"),r.helper("type");break;case 5:r.helper("interpolate"),r.helper("list");break;case 4:r.helper("interpolate"),r.helper("named");break}}function transform$2(t,r={}){const n=createTransformer(t);n.helper("normalize"),t.body&&traverseNode(t.body,n);const o=n.context();t.helpers=Array.from(o.helpers)}function createCodeGenerator(t,r){const{sourceMap:n,filename:o,breakLineCode:s,needIndent:l}=r,d={source:t.loc.source,filename:o,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:l,indentLevel:0},g=()=>d;function y(I,B){d.code+=I,d.map&&(B&&B.loc&&B.loc!==LocationStub&&$(B.loc.start,getMappingName(B)),advancePositionWithSource(d,I))}function b(I,B=!0){const R=B?s:"";y(l?R+" ".repeat(I):R)}function C(I=!0){const B=++d.indentLevel;I&&b(B)}function x(I=!0){const B=--d.indentLevel;I&&b(B)}function S(){b(d.indentLevel)}const _=I=>`_${I}`,w=()=>d.needIndent;function $(I,B){d.map.addMapping({name:B,source:d.filename,original:{line:I.line,column:I.column-1},generated:{line:d.line,column:d.column-1}})}return n&&(d.map=new sourceMap.SourceMapGenerator,d.map.setSourceContent(o,d.source)),{context:g,push:y,indent:C,deindent:x,newline:S,helper:_,needIndent:w}}function generateLinkedNode(t,r){const{helper:n}=t;t.push(`${n("linked")}(`),generateNode(t,r.key),r.modifier?(t.push(", "),generateNode(t,r.modifier),t.push(", _type")):t.push(", undefined, _type"),t.push(")")}function generateMessageNode(t,r){const{helper:n,needIndent:o}=t;t.push(`${n("normalize")}([`),t.indent(o());const s=r.items.length;for(let l=0;l<s&&(generateNode(t,r.items[l]),l!==s-1);l++)t.push(", ");t.deindent(o()),t.push("])")}function generatePluralNode(t,r){const{helper:n,needIndent:o}=t;if(r.cases.length>1){t.push(`${n("plural")}([`),t.indent(o());const s=r.cases.length;for(let l=0;l<s&&(generateNode(t,r.cases[l]),l!==s-1);l++)t.push(", ");t.deindent(o()),t.push("])")}}function generateResource(t,r){r.body?generateNode(t,r.body):t.push("null")}function generateNode(t,r){const{helper:n}=t;switch(r.type){case 0:generateResource(t,r);break;case 1:generatePluralNode(t,r);break;case 2:generateMessageNode(t,r);break;case 6:generateLinkedNode(t,r);break;case 8:t.push(JSON.stringify(r.value),r);break;case 7:t.push(JSON.stringify(r.value),r);break;case 5:t.push(`${n("interpolate")}(${n("list")}(${r.index}))`,r);break;case 4:t.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(r.key)}))`,r);break;case 9:t.push(JSON.stringify(r.value),r);break;case 3:t.push(JSON.stringify(r.value),r);break}}const generate=(t,r={})=>{const n=shared$2.isString(r.mode)?r.mode:"normal",o=shared$2.isString(r.filename)?r.filename:"message.intl",s=!!r.sourceMap,l=r.breakLineCode!=null?r.breakLineCode:n==="arrow"?";":`
|
|
`,d=r.needIndent?r.needIndent:n!=="arrow",g=t.helpers||[],y=createCodeGenerator(t,{mode:n,filename:o,sourceMap:s,breakLineCode:l,needIndent:d});y.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),y.indent(d),g.length>0&&(y.push(`const { ${g.map(x=>`${x}: _${x}`).join(", ")} } = ctx`),y.newline()),y.push("return "),generateNode(y,t),y.deindent(d),y.push("}");const{code:b,map:C}=y.context();return{ast:t,code:b,map:C?C.toJSON():void 0}};function getMappingName(t){switch(t.type){case 3:case 9:case 8:case 7:return t.value;case 5:return t.index.toString();case 4:return t.key;default:return}}function advancePositionWithSource(t,r,n=r.length){let o=0,s=-1;for(let l=0;l<n;l++)r.charCodeAt(l)===10&&(o++,s=l);return t.offset+=n,t.line+=o,t.column=s===-1?t.column+n:n-s,t}function baseCompile(t,r={}){const n=shared$2.assign({},r),s=createParser(n).parse(t);return transform$2(s,n),generate(s,n)}messageCompiler_cjs_prod.CompileErrorCodes=CompileErrorCodes;messageCompiler_cjs_prod.ERROR_DOMAIN=ERROR_DOMAIN;messageCompiler_cjs_prod.LocationStub=LocationStub;messageCompiler_cjs_prod.baseCompile=baseCompile;messageCompiler_cjs_prod.createCompileError=createCompileError;messageCompiler_cjs_prod.createLocation=createLocation;messageCompiler_cjs_prod.createParser=createParser;messageCompiler_cjs_prod.createPosition=createPosition;messageCompiler_cjs_prod.defaultOnError=defaultOnError;messageCompiler_cjs_prod.errorMessages=errorMessages$1;messageCompiler$1.exports=messageCompiler_cjs_prod;var devtoolsIf$1={exports:{}},devtoolsIf_cjs_prod={};/*!
|
|
* devtools-if v9.2.2
|
|
* (c) 2022 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/Object.defineProperty(devtoolsIf_cjs_prod,"__esModule",{value:!0});const IntlifyDevToolsHooks={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};devtoolsIf_cjs_prod.IntlifyDevToolsHooks=IntlifyDevToolsHooks;devtoolsIf$1.exports=devtoolsIf_cjs_prod;/*!
|
|
* core-base v9.2.2
|
|
* (c) 2022 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/Object.defineProperty(coreBase_cjs_prod,"__esModule",{value:!0});var messageCompiler=messageCompiler$1.exports,shared$1=shared$3.exports,devtoolsIf=devtoolsIf$1.exports;const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],["["]:[4],o:[7]};pathStateMachine[1]={w:[1],["."]:[2],["["]:[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],[0]:[3,0]};pathStateMachine[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};pathStateMachine[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};pathStateMachine[5]={["'"]:[4,0],o:8,l:[5,0]};pathStateMachine[6]={['"']:[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral(t){return literalValueRE.test(t)}function stripQuotes(t){const r=t.charCodeAt(0),n=t.charCodeAt(t.length-1);return r===n&&(r===34||r===39)?t.slice(1,-1):t}function getPathCharType(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;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 formatSubPath(t){const r=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:isLiteral(r)?stripQuotes(r):"*"+r}function parse$2(t){const r=[];let n=-1,o=0,s=0,l,d,g,y,b,C,x;const S=[];S[0]=()=>{d===void 0?d=g:d+=g},S[1]=()=>{d!==void 0&&(r.push(d),d=void 0)},S[2]=()=>{S[0](),s++},S[3]=()=>{if(s>0)s--,o=4,S[0]();else{if(s=0,d===void 0||(d=formatSubPath(d),d===!1))return!1;S[1]()}};function _(){const w=t[n+1];if(o===5&&w==="'"||o===6&&w==='"')return n++,g="\\"+w,S[0](),!0}for(;o!==null;)if(n++,l=t[n],!(l==="\\"&&_())){if(y=getPathCharType(l),x=pathStateMachine[o],b=x[y]||x.l||8,b===8||(o=b[0],b[1]!==void 0&&(C=S[b[1]],C&&(g=l,C()===!1))))return;if(o===7)return r}}const cache=new Map;function resolveWithKeyValue(t,r){return shared$1.isObject(t)?t[r]:null}function resolveValue(t,r){if(!shared$1.isObject(t))return null;let n=cache.get(r);if(n||(n=parse$2(r),n&&cache.set(r,n)),!n)return null;const o=n.length;let s=t,l=0;for(;l<o;){const d=s[n[l]];if(d===void 0)return null;s=d,l++}return s}const DEFAULT_MODIFIER=t=>t,DEFAULT_MESSAGE=t=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=t=>t.length===0?"":t.join(""),DEFAULT_INTERPOLATE=shared$1.toDisplayString;function pluralDefault(t,r){return t=Math.abs(t),r===2?t?t>1?1:0:1:t?Math.min(t,2):0}function getPluralIndex(t){const r=shared$1.isNumber(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(shared$1.isNumber(t.named.count)||shared$1.isNumber(t.named.n))?shared$1.isNumber(t.named.count)?t.named.count:shared$1.isNumber(t.named.n)?t.named.n:r:r}function normalizeNamed(t,r){r.count||(r.count=t),r.n||(r.n=t)}function createMessageContext(t={}){const r=t.locale,n=getPluralIndex(t),o=shared$1.isObject(t.pluralRules)&&shared$1.isString(r)&&shared$1.isFunction(t.pluralRules[r])?t.pluralRules[r]:pluralDefault,s=shared$1.isObject(t.pluralRules)&&shared$1.isString(r)&&shared$1.isFunction(t.pluralRules[r])?pluralDefault:void 0,l=B=>B[o(n,B.length,s)],d=t.list||[],g=B=>d[B],y=t.named||{};shared$1.isNumber(t.pluralIndex)&&normalizeNamed(n,y);const b=B=>y[B];function C(B){const R=shared$1.isFunction(t.messages)?t.messages(B):shared$1.isObject(t.messages)?t.messages[B]:!1;return R||(t.parent?t.parent.message(B):DEFAULT_MESSAGE)}const x=B=>t.modifiers?t.modifiers[B]:DEFAULT_MODIFIER,S=shared$1.isPlainObject(t.processor)&&shared$1.isFunction(t.processor.normalize)?t.processor.normalize:DEFAULT_NORMALIZE,_=shared$1.isPlainObject(t.processor)&&shared$1.isFunction(t.processor.interpolate)?t.processor.interpolate:DEFAULT_INTERPOLATE,w=shared$1.isPlainObject(t.processor)&&shared$1.isString(t.processor.type)?t.processor.type:DEFAULT_MESSAGE_DATA_TYPE,I={list:g,named:b,plural:l,linked:(B,...R)=>{const[P,M]=R;let O="text",D="";R.length===1?shared$1.isObject(P)?(D=P.modifier||D,O=P.type||O):shared$1.isString(P)&&(D=P||D):R.length===2&&(shared$1.isString(P)&&(D=P||D),shared$1.isString(M)&&(O=M||O));let N=C(B)(I);return O==="vnode"&&shared$1.isArray(N)&&D&&(N=N[0]),D?x(D)(N,O):N},message:C,type:w,interpolate:_,normalize:S};return I}let devtools=null;function setDevToolsHook(t){devtools=t}function getDevToolsHook(){return devtools}function initI18nDevTools(t,r,n){devtools&&devtools.emit(devtoolsIf.IntlifyDevToolsHooks.I18nInit,{timestamp:Date.now(),i18n:t,version:r,meta:n})}const translateDevTools=createDevToolsHook(devtoolsIf.IntlifyDevToolsHooks.FunctionTranslate);function createDevToolsHook(t){return r=>devtools&&devtools.emit(t,r)}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7},warnMessages$1={[CoreWarnCodes.NOT_FOUND_KEY]:"Not found '{key}' key in '{locale}' locale messages.",[CoreWarnCodes.FALLBACK_TO_TRANSLATE]:"Fall back to translate '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_NUMBER]:"Cannot format a number value due to not supported Intl.NumberFormat.",[CoreWarnCodes.FALLBACK_TO_NUMBER_FORMAT]:"Fall back to number format '{key}' key with '{target}' locale.",[CoreWarnCodes.CANNOT_FORMAT_DATE]:"Cannot format a date value due to not supported Intl.DateTimeFormat.",[CoreWarnCodes.FALLBACK_TO_DATE_FORMAT]:"Fall back to datetime format '{key}' key with '{target}' locale."};function getWarnMessage$1(t,...r){return shared$1.format(warnMessages$1[t],...r)}function fallbackWithSimple(t,r,n){return[...new Set([n,...shared$1.isArray(r)?r:shared$1.isObject(r)?Object.keys(r):shared$1.isString(r)?[r]:[n]])]}function fallbackWithLocaleChain(t,r,n){const o=shared$1.isString(n)?n:DEFAULT_LOCALE$1,s=t;s.__localeChainCache||(s.__localeChainCache=new Map);let l=s.__localeChainCache.get(o);if(!l){l=[];let d=[n];for(;shared$1.isArray(d);)d=appendBlockToChain(l,d,r);const g=shared$1.isArray(r)||!shared$1.isPlainObject(r)?r:r.default?r.default:null;d=shared$1.isString(g)?[g]:g,shared$1.isArray(d)&&appendBlockToChain(l,d,!1),s.__localeChainCache.set(o,l)}return l}function appendBlockToChain(t,r,n){let o=!0;for(let s=0;s<r.length&&shared$1.isBoolean(o);s++){const l=r[s];shared$1.isString(l)&&(o=appendLocaleToChain(t,r[s],n))}return o}function appendLocaleToChain(t,r,n){let o;const s=r.split("-");do{const l=s.join("-");o=appendItemToChain(t,l,n),s.splice(-1,1)}while(s.length&&o===!0);return o}function appendItemToChain(t,r,n){let o=!1;if(!t.includes(r)&&(o=!0,r)){o=r[r.length-1]!=="!";const s=r.replace(/!/g,"");t.push(s),(shared$1.isArray(n)||shared$1.isPlainObject(n))&&n[s]&&(o=n[s])}return o}const VERSION$2="9.2.2",NOT_REOSLVED=-1,DEFAULT_LOCALE$1="en-US",MISSING_RESOLVE_VALUE="",capitalize$1=t=>`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(t,r)=>r==="text"&&shared$1.isString(t)?t.toUpperCase():r==="vnode"&&shared$1.isObject(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,r)=>r==="text"&&shared$1.isString(t)?t.toLowerCase():r==="vnode"&&shared$1.isObject(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,r)=>r==="text"&&shared$1.isString(t)?capitalize$1(t):r==="vnode"&&shared$1.isObject(t)&&"__v_isVNode"in t?capitalize$1(t.children):t}}let _compiler;function registerMessageCompiler(t){_compiler=t}let _resolver;function registerMessageResolver(t){_resolver=t}let _fallbacker;function registerLocaleFallbacker(t){_fallbacker=t}let _additionalMeta=null;const setAdditionalMeta=t=>{_additionalMeta=t},getAdditionalMeta=()=>_additionalMeta;let _fallbackContext=null;const setFallbackContext=t=>{_fallbackContext=t},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(t={}){const r=shared$1.isString(t.version)?t.version:VERSION$2,n=shared$1.isString(t.locale)?t.locale:DEFAULT_LOCALE$1,o=shared$1.isArray(t.fallbackLocale)||shared$1.isPlainObject(t.fallbackLocale)||shared$1.isString(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:n,s=shared$1.isPlainObject(t.messages)?t.messages:{[n]:{}},l=shared$1.isPlainObject(t.datetimeFormats)?t.datetimeFormats:{[n]:{}},d=shared$1.isPlainObject(t.numberFormats)?t.numberFormats:{[n]:{}},g=shared$1.assign({},t.modifiers||{},getDefaultLinkedModifiers()),y=t.pluralRules||{},b=shared$1.isFunction(t.missing)?t.missing:null,C=shared$1.isBoolean(t.missingWarn)||shared$1.isRegExp(t.missingWarn)?t.missingWarn:!0,x=shared$1.isBoolean(t.fallbackWarn)||shared$1.isRegExp(t.fallbackWarn)?t.fallbackWarn:!0,S=!!t.fallbackFormat,_=!!t.unresolving,w=shared$1.isFunction(t.postTranslation)?t.postTranslation:null,$=shared$1.isPlainObject(t.processor)?t.processor:null,I=shared$1.isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0,B=!!t.escapeParameter,R=shared$1.isFunction(t.messageCompiler)?t.messageCompiler:_compiler,P=shared$1.isFunction(t.messageResolver)?t.messageResolver:_resolver||resolveWithKeyValue,M=shared$1.isFunction(t.localeFallbacker)?t.localeFallbacker:_fallbacker||fallbackWithSimple,O=shared$1.isObject(t.fallbackContext)?t.fallbackContext:void 0,D=shared$1.isFunction(t.onWarn)?t.onWarn:shared$1.warn,N=t,H=shared$1.isObject(N.__datetimeFormatters)?N.__datetimeFormatters:new Map,Q=shared$1.isObject(N.__numberFormatters)?N.__numberFormatters:new Map,G=shared$1.isObject(N.__meta)?N.__meta:{};_cid++;const K={version:r,cid:_cid,locale:n,fallbackLocale:o,messages:s,modifiers:g,pluralRules:y,missing:b,missingWarn:C,fallbackWarn:x,fallbackFormat:S,unresolving:_,postTranslation:w,processor:$,warnHtmlMessage:I,escapeParameter:B,messageCompiler:R,messageResolver:P,localeFallbacker:M,fallbackContext:O,onWarn:D,__meta:G};return K.datetimeFormats=l,K.numberFormats=d,K.__datetimeFormatters=H,K.__numberFormatters=Q,K}function isTranslateFallbackWarn(t,r){return t instanceof RegExp?t.test(r):t}function isTranslateMissingWarn(t,r){return t instanceof RegExp?t.test(r):t}function handleMissing(t,r,n,o,s){const{missing:l,onWarn:d}=t;if(l!==null){const g=l(t,n,r,s);return shared$1.isString(g)?g:r}else return r}function updateFallbackLocale(t,r,n){const o=t;o.__localeChainCache=new Map,t.localeFallbacker(t,n,r)}const defaultOnCacheKey=t=>t;let compileCache=Object.create(null);function clearCompileCache(){compileCache=Object.create(null)}function compileToFunction(t,r={}){{const o=(r.onCacheKey||defaultOnCacheKey)(t),s=compileCache[o];if(s)return s;let l=!1;const d=r.onError||messageCompiler.defaultOnError;r.onError=b=>{l=!0,d(b)};const{code:g}=messageCompiler.baseCompile(t,r),y=new Function(`return ${g}`)();return l?y:compileCache[o]=y}}let code$2=messageCompiler.CompileErrorCodes.__EXTEND_POINT__;const inc$2=()=>++code$2,CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(t){return messageCompiler.createCompileError(t,null,void 0)}CoreErrorCodes.INVALID_ARGUMENT+"",CoreErrorCodes.INVALID_DATE_ARGUMENT+"",CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT+"";const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=t=>shared$1.isFunction(t);function translate$1(t,...r){const{fallbackFormat:n,postTranslation:o,unresolving:s,messageCompiler:l,fallbackLocale:d,messages:g}=t,[y,b]=parseTranslateArgs(...r),C=shared$1.isBoolean(b.missingWarn)?b.missingWarn:t.missingWarn,x=shared$1.isBoolean(b.fallbackWarn)?b.fallbackWarn:t.fallbackWarn,S=shared$1.isBoolean(b.escapeParameter)?b.escapeParameter:t.escapeParameter,_=!!b.resolvedMessage,w=shared$1.isString(b.default)||shared$1.isBoolean(b.default)?shared$1.isBoolean(b.default)?l?y:()=>y:b.default:n?l?y:()=>y:"",$=n||w!=="",I=shared$1.isString(b.locale)?b.locale:t.locale;S&&escapeParams(b);let[B,R,P]=_?[y,I,g[I]||{}]:resolveMessageFormat(t,y,I,d,x,C),M=B,O=y;if(!_&&!(shared$1.isString(M)||isMessageFunction(M))&&$&&(M=w,O=M),!_&&(!(shared$1.isString(M)||isMessageFunction(M))||!shared$1.isString(R)))return s?NOT_REOSLVED:y;let D=!1;const N=()=>{D=!0},H=isMessageFunction(M)?M:compileMessageFormat(t,y,R,M,O,N);if(D)return M;const Q=getMessageContextOptions(t,R,P,b),G=createMessageContext(Q),K=evaluateMessage(t,H,G);return o?o(K,y):K}function escapeParams(t){shared$1.isArray(t.list)?t.list=t.list.map(r=>shared$1.isString(r)?shared$1.escapeHtml(r):r):shared$1.isObject(t.named)&&Object.keys(t.named).forEach(r=>{shared$1.isString(t.named[r])&&(t.named[r]=shared$1.escapeHtml(t.named[r]))})}function resolveMessageFormat(t,r,n,o,s,l){const{messages:d,onWarn:g,messageResolver:y,localeFallbacker:b}=t,C=b(t,o,n);let x={},S,_=null;const w="translate";for(let $=0;$<C.length&&(S=C[$],x=d[S]||{},(_=y(x,r))===null&&(_=x[r]),!(shared$1.isString(_)||shared$1.isFunction(_)));$++){const I=handleMissing(t,r,S,l,w);I!==r&&(_=I)}return[_,S,x]}function compileMessageFormat(t,r,n,o,s,l){const{messageCompiler:d,warnHtmlMessage:g}=t;if(isMessageFunction(o)){const b=o;return b.locale=b.locale||n,b.key=b.key||r,b}if(d==null){const b=()=>o;return b.locale=n,b.key=r,b}const y=d(o,getCompileOptions(t,n,s,o,g,l));return y.locale=n,y.key=r,y.source=o,y}function evaluateMessage(t,r,n){return r(n)}function parseTranslateArgs(...t){const[r,n,o]=t,s={};if(!shared$1.isString(r)&&!shared$1.isNumber(r)&&!isMessageFunction(r))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const l=shared$1.isNumber(r)?String(r):(isMessageFunction(r),r);return shared$1.isNumber(n)?s.plural=n:shared$1.isString(n)?s.default=n:shared$1.isPlainObject(n)&&!shared$1.isEmptyObject(n)?s.named=n:shared$1.isArray(n)&&(s.list=n),shared$1.isNumber(o)?s.plural=o:shared$1.isString(o)?s.default=o:shared$1.isPlainObject(o)&&shared$1.assign(s,o),[l,s]}function getCompileOptions(t,r,n,o,s,l){return{warnHtmlMessage:s,onError:d=>{throw l&&l(d),d},onCacheKey:d=>shared$1.generateFormatCacheKey(r,n,d)}}function getMessageContextOptions(t,r,n,o){const{modifiers:s,pluralRules:l,messageResolver:d,fallbackLocale:g,fallbackWarn:y,missingWarn:b,fallbackContext:C}=t,S={locale:r,modifiers:s,pluralRules:l,messages:_=>{let w=d(n,_);if(w==null&&C){const[,,$]=resolveMessageFormat(C,_,r,g,y,b);w=d($,_)}if(shared$1.isString(w)){let $=!1;const B=compileMessageFormat(t,_,r,w,_,()=>{$=!0});return $?NOOP_MESSAGE_FUNCTION:B}else return isMessageFunction(w)?w:NOOP_MESSAGE_FUNCTION}};return t.processor&&(S.processor=t.processor),o.list&&(S.list=o.list),o.named&&(S.named=o.named),shared$1.isNumber(o.plural)&&(S.pluralIndex=o.plural),S}function datetime(t,...r){const{datetimeFormats:n,unresolving:o,fallbackLocale:s,onWarn:l,localeFallbacker:d}=t,{__datetimeFormatters:g}=t,[y,b,C,x]=parseDateTimeArgs(...r),S=shared$1.isBoolean(C.missingWarn)?C.missingWarn:t.missingWarn;shared$1.isBoolean(C.fallbackWarn)?C.fallbackWarn:t.fallbackWarn;const _=!!C.part,w=shared$1.isString(C.locale)?C.locale:t.locale,$=d(t,s,w);if(!shared$1.isString(y)||y==="")return new Intl.DateTimeFormat(w,x).format(b);let I={},B,R=null;const P="datetime format";for(let D=0;D<$.length&&(B=$[D],I=n[B]||{},R=I[y],!shared$1.isPlainObject(R));D++)handleMissing(t,y,B,S,P);if(!shared$1.isPlainObject(R)||!shared$1.isString(B))return o?NOT_REOSLVED:y;let M=`${B}__${y}`;shared$1.isEmptyObject(x)||(M=`${M}__${JSON.stringify(x)}`);let O=g.get(M);return O||(O=new Intl.DateTimeFormat(B,shared$1.assign({},R,x)),g.set(M,O)),_?O.formatToParts(b):O.format(b)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...t){const[r,n,o,s]=t,l={};let d={},g;if(shared$1.isString(r)){const y=r.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!y)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const b=y[3]?y[3].trim().startsWith("T")?`${y[1].trim()}${y[3].trim()}`:`${y[1].trim()}T${y[3].trim()}`:y[1].trim();g=new Date(b);try{g.toISOString()}catch(C){throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(shared$1.isDate(r)){if(isNaN(r.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);g=r}else if(shared$1.isNumber(r))g=r;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return shared$1.isString(n)?l.key=n:shared$1.isPlainObject(n)&&Object.keys(n).forEach(y=>{DATETIME_FORMAT_OPTIONS_KEYS.includes(y)?d[y]=n[y]:l[y]=n[y]}),shared$1.isString(o)?l.locale=o:shared$1.isPlainObject(o)&&(d=o),shared$1.isPlainObject(s)&&(d=s),[l.key||"",g,l,d]}function clearDateTimeFormat(t,r,n){const o=t;for(const s in n){const l=`${r}__${s}`;!o.__datetimeFormatters.has(l)||o.__datetimeFormatters.delete(l)}}function number$1(t,...r){const{numberFormats:n,unresolving:o,fallbackLocale:s,onWarn:l,localeFallbacker:d}=t,{__numberFormatters:g}=t,[y,b,C,x]=parseNumberArgs(...r),S=shared$1.isBoolean(C.missingWarn)?C.missingWarn:t.missingWarn;shared$1.isBoolean(C.fallbackWarn)?C.fallbackWarn:t.fallbackWarn;const _=!!C.part,w=shared$1.isString(C.locale)?C.locale:t.locale,$=d(t,s,w);if(!shared$1.isString(y)||y==="")return new Intl.NumberFormat(w,x).format(b);let I={},B,R=null;const P="number format";for(let D=0;D<$.length&&(B=$[D],I=n[B]||{},R=I[y],!shared$1.isPlainObject(R));D++)handleMissing(t,y,B,S,P);if(!shared$1.isPlainObject(R)||!shared$1.isString(B))return o?NOT_REOSLVED:y;let M=`${B}__${y}`;shared$1.isEmptyObject(x)||(M=`${M}__${JSON.stringify(x)}`);let O=g.get(M);return O||(O=new Intl.NumberFormat(B,shared$1.assign({},R,x)),g.set(M,O)),_?O.formatToParts(b):O.format(b)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...t){const[r,n,o,s]=t,l={};let d={};if(!shared$1.isNumber(r))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const g=r;return shared$1.isString(n)?l.key=n:shared$1.isPlainObject(n)&&Object.keys(n).forEach(y=>{NUMBER_FORMAT_OPTIONS_KEYS.includes(y)?d[y]=n[y]:l[y]=n[y]}),shared$1.isString(o)?l.locale=o:shared$1.isPlainObject(o)&&(d=o),shared$1.isPlainObject(s)&&(d=s),[l.key||"",g,l,d]}function clearNumberFormat(t,r,n){const o=t;for(const s in n){const l=`${r}__${s}`;!o.__numberFormatters.has(l)||o.__numberFormatters.delete(l)}}coreBase_cjs_prod.CompileErrorCodes=messageCompiler.CompileErrorCodes;coreBase_cjs_prod.createCompileError=messageCompiler.createCompileError;coreBase_cjs_prod.CoreErrorCodes=CoreErrorCodes;coreBase_cjs_prod.CoreWarnCodes=CoreWarnCodes;coreBase_cjs_prod.DATETIME_FORMAT_OPTIONS_KEYS=DATETIME_FORMAT_OPTIONS_KEYS;coreBase_cjs_prod.DEFAULT_LOCALE=DEFAULT_LOCALE$1;coreBase_cjs_prod.DEFAULT_MESSAGE_DATA_TYPE=DEFAULT_MESSAGE_DATA_TYPE;coreBase_cjs_prod.MISSING_RESOLVE_VALUE=MISSING_RESOLVE_VALUE;coreBase_cjs_prod.NOT_REOSLVED=NOT_REOSLVED;coreBase_cjs_prod.NUMBER_FORMAT_OPTIONS_KEYS=NUMBER_FORMAT_OPTIONS_KEYS;coreBase_cjs_prod.VERSION=VERSION$2;coreBase_cjs_prod.clearCompileCache=clearCompileCache;coreBase_cjs_prod.clearDateTimeFormat=clearDateTimeFormat;coreBase_cjs_prod.clearNumberFormat=clearNumberFormat;coreBase_cjs_prod.compileToFunction=compileToFunction;coreBase_cjs_prod.createCoreContext=createCoreContext;coreBase_cjs_prod.createCoreError=createCoreError;coreBase_cjs_prod.createMessageContext=createMessageContext;coreBase_cjs_prod.datetime=datetime;coreBase_cjs_prod.fallbackWithLocaleChain=fallbackWithLocaleChain;coreBase_cjs_prod.fallbackWithSimple=fallbackWithSimple;coreBase_cjs_prod.getAdditionalMeta=getAdditionalMeta;coreBase_cjs_prod.getDevToolsHook=getDevToolsHook;coreBase_cjs_prod.getFallbackContext=getFallbackContext;coreBase_cjs_prod.getWarnMessage=getWarnMessage$1;coreBase_cjs_prod.handleMissing=handleMissing;coreBase_cjs_prod.initI18nDevTools=initI18nDevTools;coreBase_cjs_prod.isMessageFunction=isMessageFunction;coreBase_cjs_prod.isTranslateFallbackWarn=isTranslateFallbackWarn;coreBase_cjs_prod.isTranslateMissingWarn=isTranslateMissingWarn;coreBase_cjs_prod.number=number$1;coreBase_cjs_prod.parse=parse$2;coreBase_cjs_prod.parseDateTimeArgs=parseDateTimeArgs;coreBase_cjs_prod.parseNumberArgs=parseNumberArgs;coreBase_cjs_prod.parseTranslateArgs=parseTranslateArgs;coreBase_cjs_prod.registerLocaleFallbacker=registerLocaleFallbacker;coreBase_cjs_prod.registerMessageCompiler=registerMessageCompiler;coreBase_cjs_prod.registerMessageResolver=registerMessageResolver;coreBase_cjs_prod.resolveValue=resolveValue;coreBase_cjs_prod.resolveWithKeyValue=resolveWithKeyValue;coreBase_cjs_prod.setAdditionalMeta=setAdditionalMeta;coreBase_cjs_prod.setDevToolsHook=setDevToolsHook;coreBase_cjs_prod.setFallbackContext=setFallbackContext;coreBase_cjs_prod.translate=translate$1;coreBase_cjs_prod.translateDevTools=translateDevTools;coreBase_cjs_prod.updateFallbackLocale=updateFallbackLocale;coreBase$1.exports=coreBase_cjs_prod;var require$$0=getAugmentedNamespace(vue_runtime_esmBundler);/*!
|
|
* vue-i18n v9.2.2
|
|
* (c) 2022 kazuya kawaguchi
|
|
* Released under the MIT License.
|
|
*/Object.defineProperty(vueI18n_cjs,"__esModule",{value:!0});var shared=shared$3.exports,coreBase=coreBase$1.exports,vue=require$$0;const VERSION$1="9.2.2";let code$1=coreBase.CoreWarnCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,I18nWarnCodes={FALLBACK_TO_ROOT:code$1,NOT_SUPPORTED_PRESERVE:inc$1(),NOT_SUPPORTED_FORMATTER:inc$1(),NOT_SUPPORTED_PRESERVE_DIRECTIVE:inc$1(),NOT_SUPPORTED_GET_CHOICE_INDEX:inc$1(),COMPONENT_NAME_LEGACY_COMPATIBLE:inc$1(),NOT_FOUND_PARENT_SCOPE:inc$1()},warnMessages={[I18nWarnCodes.FALLBACK_TO_ROOT]:"Fall back to {type} '{key}' with root locale.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE]:"Not supported 'preserve'.",[I18nWarnCodes.NOT_SUPPORTED_FORMATTER]:"Not supported 'formatter'.",[I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE]:"Not supported 'preserveDirectiveContent'.",[I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX]:"Not supported 'getChoiceIndex'.",[I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE]:"Component name legacy compatible: '{name}' -> 'i18n'",[I18nWarnCodes.NOT_FOUND_PARENT_SCOPE]:"Not found parent scope. use the global scope."};function getWarnMessage(t,...r){return shared.format(warnMessages[t],...r)}let code=coreBase.CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSLALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSLALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(t,...r){return coreBase.createCompileError(t,null,{messages:errorMessages,args:r})}const errorMessages={[I18nErrorCodes.UNEXPECTED_RETURN_TYPE]:"Unexpected return type in composer",[I18nErrorCodes.INVALID_ARGUMENT]:"Invalid argument",[I18nErrorCodes.MUST_BE_CALL_SETUP_TOP]:"Must be called at the top of a `setup` function",[I18nErrorCodes.NOT_INSLALLED]:"Need to install with `app.use` function",[I18nErrorCodes.UNEXPECTED_ERROR]:"Unexpected error",[I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE]:"Not available in legacy mode",[I18nErrorCodes.REQUIRED_VALUE]:"Required in value: {0}",[I18nErrorCodes.INVALID_VALUE]:"Invalid value",[I18nErrorCodes.CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN]:"Cannot setup vue-devtools plugin",[I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE]:"Need to install with `provide` function",[I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N]:"Not compatible legacy VueI18n.",[I18nErrorCodes.BRIDGE_SUPPORT_VUE_2_ONLY]:"vue-i18n-bridge support Vue 2.x only",[I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION]:"Must define \u2018i18n\u2019 option or custom block in Composition API with using local scope in Legacy API mode",[I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY]:"Not available Compostion API in Legacy API mode. Please make sure that the legacy API mode is working properly"},TransrateVNodeSymbol=shared.makeSymbol("__transrateVNode"),DatetimePartsSymbol=shared.makeSymbol("__datetimeParts"),NumberPartsSymbol=shared.makeSymbol("__numberParts"),EnableEmitter=shared.makeSymbol("__enableEmitter"),DisableEmitter=shared.makeSymbol("__disableEmitter"),SetPluralRulesSymbol=shared.makeSymbol("__setPluralRules");shared.makeSymbol("__intlifyMeta");const InejctWithOption=shared.makeSymbol("__injectWithOption"),__VUE_I18N_BRIDGE__="__VUE_I18N_BRIDGE__";function handleFlatJson(t){if(!shared.isObject(t))return t;for(const r in t)if(!!shared.hasOwn(t,r))if(!r.includes("."))shared.isObject(t[r])&&handleFlatJson(t[r]);else{const n=r.split("."),o=n.length-1;let s=t;for(let l=0;l<o;l++)n[l]in s||(s[n[l]]={}),s=s[n[l]];s[n[o]]=t[r],delete t[r],shared.isObject(s[n[o]])&&handleFlatJson(s[n[o]])}return t}function getLocaleMessages(t,r){const{messages:n,__i18n:o,messageResolver:s,flatJson:l}=r,d=shared.isPlainObject(n)?n:shared.isArray(o)?{}:{[t]:{}};if(shared.isArray(o)&&o.forEach(g=>{if("locale"in g&&"resource"in g){const{locale:y,resource:b}=g;y?(d[y]=d[y]||{},deepCopy(b,d[y])):deepCopy(b,d)}else shared.isString(g)&&deepCopy(JSON.parse(g),d)}),s==null&&l)for(const g in d)shared.hasOwn(d,g)&&handleFlatJson(d[g]);return d}const isNotObjectOrIsArray=t=>!shared.isObject(t)||shared.isArray(t);function deepCopy(t,r){if(isNotObjectOrIsArray(t)||isNotObjectOrIsArray(r))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const n in t)shared.hasOwn(t,n)&&(isNotObjectOrIsArray(t[n])||isNotObjectOrIsArray(r[n])?r[n]=t[n]:deepCopy(t[n],r[n]))}function getComponentOptions(t){return t.type}function adjustI18nResources(t,r,n){let o=shared.isObject(r.messages)?r.messages:{};"__i18nGlobal"in n&&(o=getLocaleMessages(t.locale.value,{messages:o,__i18n:n.__i18nGlobal}));const s=Object.keys(o);s.length&&s.forEach(l=>{t.mergeLocaleMessage(l,o[l])});{if(shared.isObject(r.datetimeFormats)){const l=Object.keys(r.datetimeFormats);l.length&&l.forEach(d=>{t.mergeDateTimeFormat(d,r.datetimeFormats[d])})}if(shared.isObject(r.numberFormats)){const l=Object.keys(r.numberFormats);l.length&&l.forEach(d=>{t.mergeNumberFormat(d,r.numberFormats[d])})}}}function createTextNode$1(t){return vue.createVNode(vue.Text,null,t,0)}const DEVTOOLS_META="__INTLIFY_META__";let composerID=0;function defineCoreMissingHandler(t){return(r,n,o,s)=>t(n,o,vue.getCurrentInstance()||void 0,s)}const getMetaInfo=()=>{const t=vue.getCurrentInstance();let r=null;return t&&(r=getComponentOptions(t)[DEVTOOLS_META])?{[DEVTOOLS_META]:r}:null};function createComposer(t={},r){const{__root:n}=t,o=n===void 0;let s=shared.isBoolean(t.inheritLocale)?t.inheritLocale:!0;const l=vue.ref(n&&s?n.locale.value:shared.isString(t.locale)?t.locale:coreBase.DEFAULT_LOCALE),d=vue.ref(n&&s?n.fallbackLocale.value:shared.isString(t.fallbackLocale)||shared.isArray(t.fallbackLocale)||shared.isPlainObject(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:l.value),g=vue.ref(getLocaleMessages(l.value,t)),y=vue.ref(shared.isPlainObject(t.datetimeFormats)?t.datetimeFormats:{[l.value]:{}}),b=vue.ref(shared.isPlainObject(t.numberFormats)?t.numberFormats:{[l.value]:{}});let C=n?n.missingWarn:shared.isBoolean(t.missingWarn)||shared.isRegExp(t.missingWarn)?t.missingWarn:!0,x=n?n.fallbackWarn:shared.isBoolean(t.fallbackWarn)||shared.isRegExp(t.fallbackWarn)?t.fallbackWarn:!0,S=n?n.fallbackRoot:shared.isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,_=!!t.fallbackFormat,w=shared.isFunction(t.missing)?t.missing:null,$=shared.isFunction(t.missing)?defineCoreMissingHandler(t.missing):null,I=shared.isFunction(t.postTranslation)?t.postTranslation:null,B=n?n.warnHtmlMessage:shared.isBoolean(t.warnHtmlMessage)?t.warnHtmlMessage:!0,R=!!t.escapeParameter;const P=n?n.modifiers:shared.isPlainObject(t.modifiers)?t.modifiers:{};let M=t.pluralRules||n&&n.pluralRules,O;O=(()=>{o&&coreBase.setFallbackContext(null);const de={version:VERSION$1,locale:l.value,fallbackLocale:d.value,messages:g.value,modifiers:P,pluralRules:M,missing:$===null?void 0:$,missingWarn:C,fallbackWarn:x,fallbackFormat:_,unresolving:!0,postTranslation:I===null?void 0:I,warnHtmlMessage:B,escapeParameter:R,messageResolver:t.messageResolver,__meta:{framework:"vue"}};de.datetimeFormats=y.value,de.numberFormats=b.value,de.__datetimeFormatters=shared.isPlainObject(O)?O.__datetimeFormatters:void 0,de.__numberFormatters=shared.isPlainObject(O)?O.__numberFormatters:void 0,de.__v_emitter=shared.isPlainObject(O)?O.__v_emitter:void 0;const be=coreBase.createCoreContext(de);return o&&coreBase.setFallbackContext(be),be})(),coreBase.updateFallbackLocale(O,l.value,d.value);function N(){return[l.value,d.value,g.value,y.value,b.value]}const H=vue.computed({get:()=>l.value,set:de=>{l.value=de,O.locale=l.value}}),Q=vue.computed({get:()=>d.value,set:de=>{d.value=de,O.fallbackLocale=d.value,coreBase.updateFallbackLocale(O,l.value,de)}}),G=vue.computed(()=>g.value),K=vue.computed(()=>y.value),W=vue.computed(()=>b.value);function j(){return shared.isFunction(I)?I:null}function Y(de){I=de,O.postTranslation=de}function q(){return w}function X(de){de!==null&&($=defineCoreMissingHandler(de)),w=de,O.missing=$}function re(de,be){return de!=="translate"||!be.resolvedMessage}const te=(de,be,we,Me,Ue,Ge)=>{N();let Ze;try{coreBase.setAdditionalMeta(getMetaInfo()),o||(O.fallbackContext=n?coreBase.getFallbackContext():void 0),Ze=de(O)}finally{coreBase.setAdditionalMeta(null),o||(O.fallbackContext=void 0)}if(shared.isNumber(Ze)&&Ze===coreBase.NOT_REOSLVED){const[tt,st]=be();if(n&&shared.isString(tt)&&re(we,st)){S&&(coreBase.isTranslateFallbackWarn(x,tt)||coreBase.isTranslateMissingWarn(C,tt))&&shared.warn(getWarnMessage(I18nWarnCodes.FALLBACK_TO_ROOT,{key:tt,type:we}));{const{__v_emitter:We}=O;We&&S&&We.emit("fallback",{type:we,key:tt,to:"global",groupId:`${we}:${tt}`})}}return n&&S?Me(n):Ue(tt)}else{if(Ge(Ze))return Ze;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function oe(...de){return te(be=>Reflect.apply(coreBase.translate,null,[be,...de]),()=>coreBase.parseTranslateArgs(...de),"translate",be=>Reflect.apply(be.t,be,[...de]),be=>be,be=>shared.isString(be))}function ae(...de){const[be,we,Me]=de;if(Me&&!shared.isObject(Me))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return oe(be,we,shared.assign({resolvedMessage:!0},Me||{}))}function se(...de){return te(be=>Reflect.apply(coreBase.datetime,null,[be,...de]),()=>coreBase.parseDateTimeArgs(...de),"datetime format",be=>Reflect.apply(be.d,be,[...de]),()=>coreBase.MISSING_RESOLVE_VALUE,be=>shared.isString(be))}function ue(...de){return te(be=>Reflect.apply(coreBase.number,null,[be,...de]),()=>coreBase.parseNumberArgs(...de),"number format",be=>Reflect.apply(be.n,be,[...de]),()=>coreBase.MISSING_RESOLVE_VALUE,be=>shared.isString(be))}function Ae(de){return de.map(be=>shared.isString(be)||shared.isNumber(be)||shared.isBoolean(be)?createTextNode$1(String(be)):be)}const he={normalize:Ae,interpolate:de=>de,type:"vnode"};function Ce(...de){return te(be=>{let we;const Me=be;try{Me.processor=he,we=Reflect.apply(coreBase.translate,null,[Me,...de])}finally{Me.processor=null}return we},()=>coreBase.parseTranslateArgs(...de),"translate",be=>be[TransrateVNodeSymbol](...de),be=>[createTextNode$1(be)],be=>shared.isArray(be))}function ve(...de){return te(be=>Reflect.apply(coreBase.number,null,[be,...de]),()=>coreBase.parseNumberArgs(...de),"number format",be=>be[NumberPartsSymbol](...de),()=>[],be=>shared.isString(be)||shared.isArray(be))}function ye(...de){return te(be=>Reflect.apply(coreBase.datetime,null,[be,...de]),()=>coreBase.parseDateTimeArgs(...de),"datetime format",be=>be[DatetimePartsSymbol](...de),()=>[],be=>shared.isString(be)||shared.isArray(be))}function Be(de){M=de,O.pluralRules=M}function Se(de,be){const we=shared.isString(be)?be:l.value,Me=ee(we);return O.messageResolver(Me,de)!==null}function Ee(de){let be=null;const we=coreBase.fallbackWithLocaleChain(O,d.value,l.value);for(let Me=0;Me<we.length;Me++){const Ue=g.value[we[Me]]||{},Ge=O.messageResolver(Ue,de);if(Ge!=null){be=Ge;break}}return be}function ie(de){const be=Ee(de);return be!=null?be:n?n.tm(de)||{}:{}}function ee(de){return g.value[de]||{}}function J(de,be){g.value[de]=be,O.messages=g.value}function ce(de,be){g.value[de]=g.value[de]||{},deepCopy(be,g.value[de]),O.messages=g.value}function fe(de){return y.value[de]||{}}function ne(de,be){y.value[de]=be,O.datetimeFormats=y.value,coreBase.clearDateTimeFormat(O,de,be)}function le(de,be){y.value[de]=shared.assign(y.value[de]||{},be),O.datetimeFormats=y.value,coreBase.clearDateTimeFormat(O,de,be)}function me(de){return b.value[de]||{}}function Te(de,be){b.value[de]=be,O.numberFormats=b.value,coreBase.clearNumberFormat(O,de,be)}function ge(de,be){b.value[de]=shared.assign(b.value[de]||{},be),O.numberFormats=b.value,coreBase.clearNumberFormat(O,de,be)}composerID++,n&&shared.inBrowser&&(vue.watch(n.locale,de=>{s&&(l.value=de,O.locale=de,coreBase.updateFallbackLocale(O,l.value,d.value))}),vue.watch(n.fallbackLocale,de=>{s&&(d.value=de,O.fallbackLocale=de,coreBase.updateFallbackLocale(O,l.value,d.value))}));const $e={id:composerID,locale:H,fallbackLocale:Q,get inheritLocale(){return s},set inheritLocale(de){s=de,de&&n&&(l.value=n.locale.value,d.value=n.fallbackLocale.value,coreBase.updateFallbackLocale(O,l.value,d.value))},get availableLocales(){return Object.keys(g.value).sort()},messages:G,get modifiers(){return P},get pluralRules(){return M||{}},get isGlobal(){return o},get missingWarn(){return C},set missingWarn(de){C=de,O.missingWarn=C},get fallbackWarn(){return x},set fallbackWarn(de){x=de,O.fallbackWarn=x},get fallbackRoot(){return S},set fallbackRoot(de){S=de},get fallbackFormat(){return _},set fallbackFormat(de){_=de,O.fallbackFormat=_},get warnHtmlMessage(){return B},set warnHtmlMessage(de){B=de,O.warnHtmlMessage=de},get escapeParameter(){return R},set escapeParameter(de){R=de,O.escapeParameter=de},t:oe,getLocaleMessage:ee,setLocaleMessage:J,mergeLocaleMessage:ce,getPostTranslationHandler:j,setPostTranslationHandler:Y,getMissingHandler:q,setMissingHandler:X,[SetPluralRulesSymbol]:Be};return $e.datetimeFormats=K,$e.numberFormats=W,$e.rt=ae,$e.te=Se,$e.tm=ie,$e.d=se,$e.n=ue,$e.getDateTimeFormat=fe,$e.setDateTimeFormat=ne,$e.mergeDateTimeFormat=le,$e.getNumberFormat=me,$e.setNumberFormat=Te,$e.mergeNumberFormat=ge,$e[InejctWithOption]=t.__injectWithOption,$e[TransrateVNodeSymbol]=Ce,$e[DatetimePartsSymbol]=ye,$e[NumberPartsSymbol]=ve,$e[EnableEmitter]=de=>{O.__v_emitter=de},$e[DisableEmitter]=()=>{O.__v_emitter=void 0},$e}function convertComposerOptions(t){const r=shared.isString(t.locale)?t.locale:coreBase.DEFAULT_LOCALE,n=shared.isString(t.fallbackLocale)||shared.isArray(t.fallbackLocale)||shared.isPlainObject(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:r,o=shared.isFunction(t.missing)?t.missing:void 0,s=shared.isBoolean(t.silentTranslationWarn)||shared.isRegExp(t.silentTranslationWarn)?!t.silentTranslationWarn:!0,l=shared.isBoolean(t.silentFallbackWarn)||shared.isRegExp(t.silentFallbackWarn)?!t.silentFallbackWarn:!0,d=shared.isBoolean(t.fallbackRoot)?t.fallbackRoot:!0,g=!!t.formatFallbackMessages,y=shared.isPlainObject(t.modifiers)?t.modifiers:{},b=t.pluralizationRules,C=shared.isFunction(t.postTranslation)?t.postTranslation:void 0,x=shared.isString(t.warnHtmlInMessage)?t.warnHtmlInMessage!=="off":!0,S=!!t.escapeParameterHtml,_=shared.isBoolean(t.sync)?t.sync:!0;t.formatter&&shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),t.preserveDirectiveContent&&shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE));let w=t.messages;if(shared.isPlainObject(t.sharedMessages)){const O=t.sharedMessages;w=Object.keys(O).reduce((N,H)=>{const Q=N[H]||(N[H]={});return shared.assign(Q,O[H]),N},w||{})}const{__i18n:$,__root:I,__injectWithOption:B}=t,R=t.datetimeFormats,P=t.numberFormats,M=t.flatJson;return{locale:r,fallbackLocale:n,messages:w,flatJson:M,datetimeFormats:R,numberFormats:P,missing:o,missingWarn:s,fallbackWarn:l,fallbackRoot:d,fallbackFormat:g,modifiers:y,pluralRules:b,postTranslation:C,warnHtmlMessage:x,escapeParameter:S,messageResolver:t.messageResolver,inheritLocale:_,__i18n:$,__root:I,__injectWithOption:B}}function createVueI18n(t={},r){{const n=createComposer(convertComposerOptions(t)),o={id:n.id,get locale(){return n.locale.value},set locale(s){n.locale.value=s},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(s){n.fallbackLocale.value=s},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER)),{interpolate(){return[]}}},set formatter(s){shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_FORMATTER))},get missing(){return n.getMissingHandler()},set missing(s){n.setMissingHandler(s)},get silentTranslationWarn(){return shared.isBoolean(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(s){n.missingWarn=shared.isBoolean(s)?!s:s},get silentFallbackWarn(){return shared.isBoolean(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(s){n.fallbackWarn=shared.isBoolean(s)?!s:s},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(s){n.fallbackFormat=s},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(s){n.setPostTranslationHandler(s)},get sync(){return n.inheritLocale},set sync(s){n.inheritLocale=s},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(s){n.warnHtmlMessage=s!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(s){n.escapeParameter=s},get preserveDirectiveContent(){return shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE)),!0},set preserveDirectiveContent(s){shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE_DIRECTIVE))},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...s){const[l,d,g]=s,y={};let b=null,C=null;if(!shared.isString(l))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const x=l;return shared.isString(d)?y.locale=d:shared.isArray(d)?b=d:shared.isPlainObject(d)&&(C=d),shared.isArray(g)?b=g:shared.isPlainObject(g)&&(C=g),Reflect.apply(n.t,n,[x,b||C||{},y])},rt(...s){return Reflect.apply(n.rt,n,[...s])},tc(...s){const[l,d,g]=s,y={plural:1};let b=null,C=null;if(!shared.isString(l))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);const x=l;return shared.isString(d)?y.locale=d:shared.isNumber(d)?y.plural=d:shared.isArray(d)?b=d:shared.isPlainObject(d)&&(C=d),shared.isString(g)?y.locale=g:shared.isArray(g)?b=g:shared.isPlainObject(g)&&(C=g),Reflect.apply(n.t,n,[x,b||C||{},y])},te(s,l){return n.te(s,l)},tm(s){return n.tm(s)},getLocaleMessage(s){return n.getLocaleMessage(s)},setLocaleMessage(s,l){n.setLocaleMessage(s,l)},mergeLocaleMessage(s,l){n.mergeLocaleMessage(s,l)},d(...s){return Reflect.apply(n.d,n,[...s])},getDateTimeFormat(s){return n.getDateTimeFormat(s)},setDateTimeFormat(s,l){n.setDateTimeFormat(s,l)},mergeDateTimeFormat(s,l){n.mergeDateTimeFormat(s,l)},n(...s){return Reflect.apply(n.n,n,[...s])},getNumberFormat(s){return n.getNumberFormat(s)},setNumberFormat(s,l){n.setNumberFormat(s,l)},mergeNumberFormat(s,l){n.mergeNumberFormat(s,l)},getChoiceIndex(s,l){return shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_GET_CHOICE_INDEX)),-1},__onComponentInstanceCreated(s){const{componentInstanceCreatedListener:l}=t;l&&l(s,o)}};return o.__enableEmitter=s=>{const l=n;l[EnableEmitter]&&l[EnableEmitter](s)},o.__disableEmitter=()=>{const s=n;s[DisableEmitter]&&s[DisableEmitter]()},o}}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:t},r){return r.length===1&&r[0]==="default"?(t.default?t.default():[]).reduce((o,s)=>o=[...o,...shared.isArray(s.children)?s.children:[s]],[]):r.reduce((n,o)=>{const s=t[o];return s&&(n[o]=s()),n},{})}function getFragmentableTag(t){return vue.Fragment}const Translation={name:"i18n-t",props:shared.assign({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>shared.isNumber(t)||!isNaN(t)}},baseFormatProps),setup(t,r){const{slots:n,attrs:o}=r,s=t.i18n||useI18n({useScope:t.scope,__useComponent:!0});return()=>{const l=Object.keys(n).filter(x=>x!=="_"),d={};t.locale&&(d.locale=t.locale),t.plural!==void 0&&(d.plural=shared.isString(t.plural)?+t.plural:t.plural);const g=getInterpolateArg(r,l),y=s[TransrateVNodeSymbol](t.keypath,g,d),b=shared.assign({},o),C=shared.isString(t.tag)||shared.isObject(t.tag)?t.tag:getFragmentableTag();return vue.h(C,b,y)}}};function isVNode(t){return shared.isArray(t)&&!shared.isString(t[0])}function renderFormatter(t,r,n,o){const{slots:s,attrs:l}=r;return()=>{const d={part:!0};let g={};t.locale&&(d.locale=t.locale),shared.isString(t.format)?d.key=t.format:shared.isObject(t.format)&&(shared.isString(t.format.key)&&(d.key=t.format.key),g=Object.keys(t.format).reduce((S,_)=>n.includes(_)?shared.assign({},S,{[_]:t.format[_]}):S,{}));const y=o(t.value,d,g);let b=[d.key];shared.isArray(y)?b=y.map((S,_)=>{const w=s[S.type],$=w?w({[S.type]:S.value,index:_,parts:y}):[S.value];return isVNode($)&&($[0].key=`${S.type}-${_}`),$}):shared.isString(y)&&(b=[y]);const C=shared.assign({},l),x=shared.isString(t.tag)||shared.isObject(t.tag)?t.tag:getFragmentableTag();return vue.h(x,C,b)}}const NumberFormat={name:"i18n-n",props:shared.assign({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,r){const n=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,r,coreBase.NUMBER_FORMAT_OPTIONS_KEYS,(...o)=>n[NumberPartsSymbol](...o))}},DatetimeFormat={name:"i18n-d",props:shared.assign({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,r){const n=t.i18n||useI18n({useScope:"parent",__useComponent:!0});return renderFormatter(t,r,coreBase.DATETIME_FORMAT_OPTIONS_KEYS,(...o)=>n[DatetimePartsSymbol](...o))}};function getComposer$1(t,r){const n=t;if(t.mode==="composition")return n.__getInstance(r)||t.global;{const o=n.__getInstance(r);return o!=null?o.__composer:t.global.__composer}}function vTDirective(t){const r=d=>{const{instance:g,modifiers:y,value:b}=d;if(!g||!g.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const C=getComposer$1(t,g.$);y.preserve&&shared.warn(getWarnMessage(I18nWarnCodes.NOT_SUPPORTED_PRESERVE));const x=parseValue(b);return[Reflect.apply(C.t,C,[...makeParams(x)]),C]};return{created:(d,g)=>{const[y,b]=r(g);shared.inBrowser&&t.global===b&&(d.__i18nWatcher=vue.watch(b.locale,()=>{g.instance&&g.instance.$forceUpdate()})),d.__composer=b,d.textContent=y},unmounted:d=>{shared.inBrowser&&d.__i18nWatcher&&(d.__i18nWatcher(),d.__i18nWatcher=void 0,delete d.__i18nWatcher),d.__composer&&(d.__composer=void 0,delete d.__composer)},beforeUpdate:(d,{value:g})=>{if(d.__composer){const y=d.__composer,b=parseValue(g);d.textContent=Reflect.apply(y.t,y,[...makeParams(b)])}},getSSRProps:d=>{const[g]=r(d);return{textContent:g}}}}function parseValue(t){if(shared.isString(t))return{path:t};if(shared.isPlainObject(t)){if(!("path"in t))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return t}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(t){const{path:r,locale:n,args:o,choice:s,plural:l}=t,d={},g=o||{};return shared.isString(n)&&(d.locale=n),shared.isNumber(s)&&(d.plural=s),shared.isNumber(l)&&(d.plural=l),[r,g,d]}function apply$2(t,r,...n){const o=shared.isPlainObject(n[0])?n[0]:{},s=!!o.useI18nComponentName,l=shared.isBoolean(o.globalInstall)?o.globalInstall:!0;l&&s&&shared.warn(getWarnMessage(I18nWarnCodes.COMPONENT_NAME_LEGACY_COMPATIBLE,{name:Translation.name})),l&&(t.component(s?"i18n":Translation.name,Translation),t.component(NumberFormat.name,NumberFormat),t.component(DatetimeFormat.name,DatetimeFormat)),t.directive("t",vTDirective(r))}function defineMixin(t,r,n){return{beforeCreate(){const o=vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const s=this.$options;if(s.i18n){const l=s.i18n;s.__i18n&&(l.__i18n=s.__i18n),l.__root=r,this===this.$root?this.$i18n=mergeToRoot(t,l):(l.__injectWithOption=!0,this.$i18n=createVueI18n(l))}else s.__i18n?this===this.$root?this.$i18n=mergeToRoot(t,s):this.$i18n=createVueI18n({__i18n:s.__i18n,__injectWithOption:!0,__root:r}):this.$i18n=t;s.__i18nGlobal&&adjustI18nResources(r,s,s),t.__onComponentInstanceCreated(this.$i18n),n.__setInstance(o,this.$i18n),this.$t=(...l)=>this.$i18n.t(...l),this.$rt=(...l)=>this.$i18n.rt(...l),this.$tc=(...l)=>this.$i18n.tc(...l),this.$te=(l,d)=>this.$i18n.te(l,d),this.$d=(...l)=>this.$i18n.d(...l),this.$n=(...l)=>this.$i18n.n(...l),this.$tm=l=>this.$i18n.tm(l)},mounted(){},unmounted(){const o=vue.getCurrentInstance();if(!o)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(o),delete this.$i18n}}}function mergeToRoot(t,r){t.locale=r.locale||t.locale,t.fallbackLocale=r.fallbackLocale||t.fallbackLocale,t.missing=r.missing||t.missing,t.silentTranslationWarn=r.silentTranslationWarn||t.silentFallbackWarn,t.silentFallbackWarn=r.silentFallbackWarn||t.silentFallbackWarn,t.formatFallbackMessages=r.formatFallbackMessages||t.formatFallbackMessages,t.postTranslation=r.postTranslation||t.postTranslation,t.warnHtmlInMessage=r.warnHtmlInMessage||t.warnHtmlInMessage,t.escapeParameterHtml=r.escapeParameterHtml||t.escapeParameterHtml,t.sync=r.sync||t.sync,t.__composer[SetPluralRulesSymbol](r.pluralizationRules||t.pluralizationRules);const n=getLocaleMessages(t.locale,{messages:r.messages,__i18n:r.__i18n});return Object.keys(n).forEach(o=>t.mergeLocaleMessage(o,n[o])),r.datetimeFormats&&Object.keys(r.datetimeFormats).forEach(o=>t.mergeDateTimeFormat(o,r.datetimeFormats[o])),r.numberFormats&&Object.keys(r.numberFormats).forEach(o=>t.mergeNumberFormat(o,r.numberFormats[o])),t}const I18nInjectionKey=shared.makeSymbol("global-vue-i18n");function createI18n(t={},r){const n=shared.isBoolean(t.legacy)?t.legacy:!0,o=shared.isBoolean(t.globalInjection)?t.globalInjection:!0,s=n?!!t.allowComposition:!0,l=new Map,[d,g]=createGlobal(t,n),y=shared.makeSymbol("vue-i18n");function b(S){return l.get(S)||null}function C(S,_){l.set(S,_)}function x(S){l.delete(S)}{let _;const S={get mode(){return n?"legacy":"composition"},get allowComposition(){return s},install(w,...$){return Bt(this,null,function*(){w.__VUE_I18N_SYMBOL__=y,w.provide(w.__VUE_I18N_SYMBOL__,S),!n&&o&&injectGlobalFields(w,S.global),apply$2(w,S,...$),n&&w.mixin(defineMixin(g,g.__composer,S));const I=w.unmount;w.unmount=()=>{S.dispose(),I()}})},get global(){return g},dispose(){d.stop()},__instances:l,__getInstance:b,__setInstance:C,__deleteInstance:x};return S}}function useI18n(t={}){const r=vue.getCurrentInstance();if(r==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!r.isCE&&r.appContext.app!=null&&!r.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSLALLED);const n=getI18nInstance(r),o=getGlobalComposer(n),s=getComponentOptions(r),l=getScope(t,s);if(n.mode==="legacy"&&!t.__useComponent){if(!n.allowComposition)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_IN_LEGACY_MODE);return useI18nForLegacy(r,l,o,t)}if(l==="global")return adjustI18nResources(o,t,s),o;if(l==="parent"){let y=getComposer(n,r,t.__useComponent);return y==null&&(shared.warn(getWarnMessage(I18nWarnCodes.NOT_FOUND_PARENT_SCOPE)),y=o),y}const d=n;let g=d.__getInstance(r);if(g==null){const y=shared.assign({},t);"__i18n"in s&&(y.__i18n=s.__i18n),o&&(y.__root=o),g=createComposer(y),setupLifeCycle(d,r),d.__setInstance(r,g)}return g}const castToVueI18n=t=>{if(!(__VUE_I18N_BRIDGE__ in t))throw createI18nError(I18nErrorCodes.NOT_COMPATIBLE_LEGACY_VUE_I18N);return t};function createGlobal(t,r,n){const o=vue.effectScope();{const s=r?o.run(()=>createVueI18n(t)):o.run(()=>createComposer(t));if(s==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[o,s]}}function getI18nInstance(t){{const r=vue.inject(t.isCE?I18nInjectionKey:t.appContext.app.__VUE_I18N_SYMBOL__);if(!r)throw createI18nError(t.isCE?I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return r}}function getScope(t,r){return shared.isEmptyObject(t)?"__i18n"in r?"local":"global":t.useScope?t.useScope:"local"}function getGlobalComposer(t){return t.mode==="composition"?t.global:t.global.__composer}function getComposer(t,r,n=!1){let o=null;const s=r.root;let l=r.parent;for(;l!=null;){const d=t;if(t.mode==="composition")o=d.__getInstance(l);else{const g=d.__getInstance(l);g!=null&&(o=g.__composer,n&&o&&!o[InejctWithOption]&&(o=null))}if(o!=null||s===l)break;l=l.parent}return o}function setupLifeCycle(t,r,n){vue.onMounted(()=>{},r),vue.onUnmounted(()=>{t.__deleteInstance(r)},r)}function useI18nForLegacy(t,r,n,o={}){const s=r==="local",l=vue.shallowRef(null);if(s&&t.proxy&&!(t.proxy.$options.i18n||t.proxy.$options.__i18n))throw createI18nError(I18nErrorCodes.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const d=shared.isBoolean(o.inheritLocale)?o.inheritLocale:!0,g=vue.ref(s&&d?n.locale.value:shared.isString(o.locale)?o.locale:coreBase.DEFAULT_LOCALE),y=vue.ref(s&&d?n.fallbackLocale.value:shared.isString(o.fallbackLocale)||shared.isArray(o.fallbackLocale)||shared.isPlainObject(o.fallbackLocale)||o.fallbackLocale===!1?o.fallbackLocale:g.value),b=vue.ref(getLocaleMessages(g.value,o)),C=vue.ref(shared.isPlainObject(o.datetimeFormats)?o.datetimeFormats:{[g.value]:{}}),x=vue.ref(shared.isPlainObject(o.numberFormats)?o.numberFormats:{[g.value]:{}}),S=s?n.missingWarn:shared.isBoolean(o.missingWarn)||shared.isRegExp(o.missingWarn)?o.missingWarn:!0,_=s?n.fallbackWarn:shared.isBoolean(o.fallbackWarn)||shared.isRegExp(o.fallbackWarn)?o.fallbackWarn:!0,w=s?n.fallbackRoot:shared.isBoolean(o.fallbackRoot)?o.fallbackRoot:!0,$=!!o.fallbackFormat,I=shared.isFunction(o.missing)?o.missing:null,B=shared.isFunction(o.postTranslation)?o.postTranslation:null,R=s?n.warnHtmlMessage:shared.isBoolean(o.warnHtmlMessage)?o.warnHtmlMessage:!0,P=!!o.escapeParameter,M=s?n.modifiers:shared.isPlainObject(o.modifiers)?o.modifiers:{},O=o.pluralRules||s&&n.pluralRules;function D(){return[g.value,y.value,b.value,C.value,x.value]}const N=vue.computed({get:()=>l.value?l.value.locale.value:g.value,set:J=>{l.value&&(l.value.locale.value=J),g.value=J}}),H=vue.computed({get:()=>l.value?l.value.fallbackLocale.value:y.value,set:J=>{l.value&&(l.value.fallbackLocale.value=J),y.value=J}}),Q=vue.computed(()=>l.value?l.value.messages.value:b.value),G=vue.computed(()=>C.value),K=vue.computed(()=>x.value);function W(){return l.value?l.value.getPostTranslationHandler():B}function j(J){l.value&&l.value.setPostTranslationHandler(J)}function Y(){return l.value?l.value.getMissingHandler():I}function q(J){l.value&&l.value.setMissingHandler(J)}function X(J){return D(),J()}function re(...J){return l.value?X(()=>Reflect.apply(l.value.t,null,[...J])):X(()=>"")}function te(...J){return l.value?Reflect.apply(l.value.rt,null,[...J]):""}function oe(...J){return l.value?X(()=>Reflect.apply(l.value.d,null,[...J])):X(()=>"")}function ae(...J){return l.value?X(()=>Reflect.apply(l.value.n,null,[...J])):X(()=>"")}function se(J){return l.value?l.value.tm(J):{}}function ue(J,ce){return l.value?l.value.te(J,ce):!1}function Ae(J){return l.value?l.value.getLocaleMessage(J):{}}function pe(J,ce){l.value&&(l.value.setLocaleMessage(J,ce),b.value[J]=ce)}function he(J,ce){l.value&&l.value.mergeLocaleMessage(J,ce)}function Ce(J){return l.value?l.value.getDateTimeFormat(J):{}}function ve(J,ce){l.value&&(l.value.setDateTimeFormat(J,ce),C.value[J]=ce)}function ye(J,ce){l.value&&l.value.mergeDateTimeFormat(J,ce)}function Be(J){return l.value?l.value.getNumberFormat(J):{}}function Se(J,ce){l.value&&(l.value.setNumberFormat(J,ce),x.value[J]=ce)}function Ee(J,ce){l.value&&l.value.mergeNumberFormat(J,ce)}const ie={get id(){return l.value?l.value.id:-1},locale:N,fallbackLocale:H,messages:Q,datetimeFormats:G,numberFormats:K,get inheritLocale(){return l.value?l.value.inheritLocale:d},set inheritLocale(J){l.value&&(l.value.inheritLocale=J)},get availableLocales(){return l.value?l.value.availableLocales:Object.keys(b.value)},get modifiers(){return l.value?l.value.modifiers:M},get pluralRules(){return l.value?l.value.pluralRules:O},get isGlobal(){return l.value?l.value.isGlobal:!1},get missingWarn(){return l.value?l.value.missingWarn:S},set missingWarn(J){l.value&&(l.value.missingWarn=J)},get fallbackWarn(){return l.value?l.value.fallbackWarn:_},set fallbackWarn(J){l.value&&(l.value.missingWarn=J)},get fallbackRoot(){return l.value?l.value.fallbackRoot:w},set fallbackRoot(J){l.value&&(l.value.fallbackRoot=J)},get fallbackFormat(){return l.value?l.value.fallbackFormat:$},set fallbackFormat(J){l.value&&(l.value.fallbackFormat=J)},get warnHtmlMessage(){return l.value?l.value.warnHtmlMessage:R},set warnHtmlMessage(J){l.value&&(l.value.warnHtmlMessage=J)},get escapeParameter(){return l.value?l.value.escapeParameter:P},set escapeParameter(J){l.value&&(l.value.escapeParameter=J)},t:re,getPostTranslationHandler:W,setPostTranslationHandler:j,getMissingHandler:Y,setMissingHandler:q,rt:te,d:oe,n:ae,tm:se,te:ue,getLocaleMessage:Ae,setLocaleMessage:pe,mergeLocaleMessage:he,getDateTimeFormat:Ce,setDateTimeFormat:ve,mergeDateTimeFormat:ye,getNumberFormat:Be,setNumberFormat:Se,mergeNumberFormat:Ee};function ee(J){J.locale.value=g.value,J.fallbackLocale.value=y.value,Object.keys(b.value).forEach(ce=>{J.mergeLocaleMessage(ce,b.value[ce])}),Object.keys(C.value).forEach(ce=>{J.mergeDateTimeFormat(ce,C.value[ce])}),Object.keys(x.value).forEach(ce=>{J.mergeNumberFormat(ce,x.value[ce])}),J.escapeParameter=P,J.fallbackFormat=$,J.fallbackRoot=w,J.fallbackWarn=_,J.missingWarn=S,J.warnHtmlMessage=R}return vue.onBeforeMount(()=>{if(t.proxy==null||t.proxy.$i18n==null)throw createI18nError(I18nErrorCodes.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const J=l.value=t.proxy.$i18n.__composer;r==="global"?(g.value=J.locale.value,y.value=J.fallbackLocale.value,b.value=J.messages.value,C.value=J.datetimeFormats.value,x.value=J.numberFormats.value):s&&ee(J)}),ie}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields(t,r){const n=Object.create(null);globalExportProps.forEach(o=>{const s=Object.getOwnPropertyDescriptor(r,o);if(!s)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const l=vue.isRef(s.value)?{get(){return s.value.value},set(d){s.value.value=d}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,o,l)}),t.config.globalProperties.$i18n=n,globalExportMethods.forEach(o=>{const s=Object.getOwnPropertyDescriptor(r,o);if(!s||!s.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${o}`,s)})}coreBase.registerMessageCompiler(coreBase.compileToFunction);coreBase.registerMessageResolver(coreBase.resolveValue);coreBase.registerLocaleFallbacker(coreBase.fallbackWithLocaleChain);{const t=shared.getGlobalThis();t.__INTLIFY__=!0,coreBase.setDevToolsHook(t.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}vueI18n_cjs.DatetimeFormat=DatetimeFormat;vueI18n_cjs.I18nInjectionKey=I18nInjectionKey;vueI18n_cjs.NumberFormat=NumberFormat;vueI18n_cjs.Translation=Translation;vueI18n_cjs.VERSION=VERSION$1;vueI18n_cjs.castToVueI18n=castToVueI18n;var createI18n_1=vueI18n_cjs.createI18n=createI18n,useI18n_1=vueI18n_cjs.useI18n=useI18n;vueI18n_cjs.vTDirective=vTDirective;const _sfc_main$9=defineComponent({__name:"index",setup(t){const{t:r}=useI18n_1();return window.$t=r,(n,o)=>null}});var isVue2=!1;/*!
|
|
* pinia v2.0.32
|
|
* (c) 2023 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/let activePinia;const setActivePinia=t=>activePinia=t,piniaSymbol=Symbol();function isPlainObject$3(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var MutationType;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const t=effectScope(!0),r=t.run(()=>ref({}));let n=[],o=[];const s=markRaw({install(l){setActivePinia(s),s._a=l,l.provide(piniaSymbol,s),l.config.globalProperties.$pinia=s,o.forEach(d=>n.push(d)),o=[]},use(l){return!this._a&&!isVue2?o.push(l):n.push(l),this},_p:n,_a:null,_e:t,_s:new Map,state:r});return s}const noop$2=()=>{};function addSubscription(t,r,n,o=noop$2){t.push(r);const s=()=>{const l=t.indexOf(r);l>-1&&(t.splice(l,1),o())};return!n&&getCurrentScope()&&onScopeDispose(s),s}function triggerSubscriptions(t,...r){t.slice().forEach(n=>{n(...r)})}function mergeReactiveObjects(t,r){t instanceof Map&&r instanceof Map&&r.forEach((n,o)=>t.set(o,n)),t instanceof Set&&r instanceof Set&&r.forEach(t.add,t);for(const n in r){if(!r.hasOwnProperty(n))continue;const o=r[n],s=t[n];isPlainObject$3(s)&&isPlainObject$3(o)&&t.hasOwnProperty(n)&&!isRef(o)&&!isReactive(o)?t[n]=mergeReactiveObjects(s,o):t[n]=o}return t}const skipHydrateSymbol=Symbol();function shouldHydrate(t){return!isPlainObject$3(t)||!t.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed(t){return!!(isRef(t)&&t.effect)}function createOptionsStore(t,r,n,o){const{state:s,actions:l,getters:d}=r,g=n.state.value[t];let y;function b(){g||(n.state.value[t]=s?s():{});const C=toRefs(n.state.value[t]);return assign$2(C,l,Object.keys(d||{}).reduce((x,S)=>(x[S]=markRaw(computed(()=>{setActivePinia(n);const _=n._s.get(t);return d[S].call(_,_)})),x),{}))}return y=createSetupStore(t,b,r,n,o,!0),y.$reset=function(){const x=s?s():{};this.$patch(S=>{assign$2(S,x)})},y}function createSetupStore(t,r,n={},o,s,l){let d;const g=assign$2({actions:{}},n),y={deep:!0};let b,C,x=markRaw([]),S=markRaw([]),_;const w=o.state.value[t];!l&&!w&&(o.state.value[t]={}),ref({});let $;function I(N){let H;b=C=!1,typeof N=="function"?(N(o.state.value[t]),H={type:MutationType.patchFunction,storeId:t,events:_}):(mergeReactiveObjects(o.state.value[t],N),H={type:MutationType.patchObject,payload:N,storeId:t,events:_});const Q=$=Symbol();nextTick().then(()=>{$===Q&&(b=!0)}),C=!0,triggerSubscriptions(x,H,o.state.value[t])}const B=noop$2;function R(){d.stop(),x=[],S=[],o._s.delete(t)}function P(N,H){return function(){setActivePinia(o);const Q=Array.from(arguments),G=[],K=[];function W(q){G.push(q)}function j(q){K.push(q)}triggerSubscriptions(S,{args:Q,name:N,store:O,after:W,onError:j});let Y;try{Y=H.apply(this&&this.$id===t?this:O,Q)}catch(q){throw triggerSubscriptions(K,q),q}return Y instanceof Promise?Y.then(q=>(triggerSubscriptions(G,q),q)).catch(q=>(triggerSubscriptions(K,q),Promise.reject(q))):(triggerSubscriptions(G,Y),Y)}}const M={_p:o,$id:t,$onAction:addSubscription.bind(null,S),$patch:I,$reset:B,$subscribe(N,H={}){const Q=addSubscription(x,N,H.detached,()=>G()),G=d.run(()=>watch(()=>o.state.value[t],K=>{(H.flush==="sync"?C:b)&&N({storeId:t,type:MutationType.direct,events:_},K)},assign$2({},y,H)));return Q},$dispose:R},O=reactive(M);o._s.set(t,O);const D=o._e.run(()=>(d=effectScope(),d.run(()=>r())));for(const N in D){const H=D[N];if(isRef(H)&&!isComputed(H)||isReactive(H))l||(w&&shouldHydrate(H)&&(isRef(H)?H.value=w[N]:mergeReactiveObjects(H,w[N])),o.state.value[t][N]=H);else if(typeof H=="function"){const Q=P(N,H);D[N]=Q,g.actions[N]=H}}return assign$2(O,D),assign$2(toRaw(O),D),Object.defineProperty(O,"$state",{get:()=>o.state.value[t],set:N=>{I(H=>{assign$2(H,N)})}}),o._p.forEach(N=>{assign$2(O,d.run(()=>N({store:O,app:o._a,pinia:o,options:g})))}),w&&l&&n.hydrate&&n.hydrate(O.$state,w),b=!0,C=!0,O}function defineStore(t,r,n){let o,s;const l=typeof r=="function";typeof t=="string"?(o=t,s=l?n:r):(s=t,o=t.id);function d(g,y){const b=getCurrentInstance();return g=g||b&&inject(piniaSymbol,null),g&&setActivePinia(g),g=activePinia,g._s.has(o)||(l?createSetupStore(o,r,s,g):createOptionsStore(o,s,g)),g._s.get(o)}return d.$id=o,d}var ThemeEnum=(t=>(t.DARK="dark",t.LIGHT="light",t))(ThemeEnum||{}),LangEnum=(t=>(t.ZH="ZH",t.EN="EN",t))(LangEnum||{}),PreviewScaleEnum=(t=>(t.FIT="fit",t.SCROLL_Y="scrollY",t.SCROLL_X="scrollX",t.FULL="full",t))(PreviewScaleEnum||{}),ResultEnum=(t=>(t[t.DATA_SUCCESS=0]="DATA_SUCCESS",t[t.SUCCESS=200]="SUCCESS",t[t.SERVER_ERROR=500]="SERVER_ERROR",t[t.SERVER_FORBIDDEN=403]="SERVER_FORBIDDEN",t[t.NOT_FOUND=404]="NOT_FOUND",t[t.TIMEOUT=6e4]="TIMEOUT",t))(ResultEnum||{}),RequestDataTypeEnum=(t=>(t[t.STATIC=0]="STATIC",t[t.AJAX=1]="AJAX",t[t.Pond=2]="Pond",t))(RequestDataTypeEnum||{}),RequestContentTypeEnum=(t=>(t[t.DEFAULT=0]="DEFAULT",t[t.SQL=1]="SQL",t))(RequestContentTypeEnum||{}),RequestHttpEnum=(t=>(t.GET="get",t.POST="post",t.PATCH="patch",t.PUT="put",t.DELETE="delete",t))(RequestHttpEnum||{}),RequestHttpIntervalEnum=(t=>(t.SECOND="second",t.MINUTE="minute",t.HOUR="hour",t.DAY="day",t))(RequestHttpIntervalEnum||{}),RequestBodyEnum=(t=>(t.NONE="none",t.FORM_DATA="form-data",t.X_WWW_FORM_URLENCODED="x-www-form-urlencoded",t.JSON="json",t.XML="xml",t))(RequestBodyEnum||{}),ContentTypeEnum=(t=>(t.JSON="application/json;charset=UTF-8",t.TEXT="text/plain;charset=UTF-8",t.XML="application/xml;charset=UTF-8",t.FORM_URLENCODED="application/x-www-form-urlencoded;charset=UTF-8",t.FORM_DATA="multipart/form-data;charset=UTF-8",t))(ContentTypeEnum||{});const lang=LangEnum.ZH,watermarkText="GoView \u4F4E\u4EE3\u7801\u5E73\u53F0",groupTitle="\u5206\u7EC4",theme$1={darkTheme:!0,appTheme:"#51d6a9",appThemeDetail:null},chartInitConfig={x:50,y:50,w:450,h:300,offsetX:0,offsetY:0,lockScale:!1},dialogIconSize="20",asideWidth="270",asideCollapsedWidth=60,maskClosable=!1,borderRadius="6px",carouselInterval=4e3,previewScaleType=PreviewScaleEnum.FIT,requestInterval=30,requestIntervalUnit=RequestHttpIntervalEnum.SECOND,editHistoryMax=100,canvasModelIndex=9999,selectBoxIndex=canvasModelIndex+10,methodMap=[["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"]],nativeAPI=(()=>{if(typeof document=="undefined")return!1;const t=methodMap[0],r={};for(const n of methodMap)if((n==null?void 0:n[1])in document){for(const[s,l]of n.entries())r[t[s]]=l;return r}return!1})(),eventNameMap={change:nativeAPI.fullscreenchange,error:nativeAPI.fullscreenerror};let screenfull={request(t=document.documentElement,r){return new Promise((n,o)=>{const s=()=>{screenfull.off("change",s),n()};screenfull.on("change",s);const l=t[nativeAPI.requestFullscreen](r);l instanceof Promise&&l.then(s).catch(o)})},exit(){return new Promise((t,r)=>{if(!screenfull.isFullscreen){t();return}const n=()=>{screenfull.off("change",n),t()};screenfull.on("change",n);const o=document[nativeAPI.exitFullscreen]();o instanceof Promise&&o.then(n).catch(r)})},toggle(t,r){return screenfull.isFullscreen?screenfull.exit():screenfull.request(t,r)},onchange(t){screenfull.on("change",t)},onerror(t){screenfull.on("error",t)},on(t,r){const n=eventNameMap[t];n&&document.addEventListener(n,r,!1)},off(t,r){const n=eventNameMap[t];n&&document.removeEventListener(n,r,!1)},raw:nativeAPI};Object.defineProperties(screenfull,{isFullscreen:{get:()=>Boolean(document[nativeAPI.fullscreenElement])},element:{enumerable:!0,get:()=>{var t;return(t=document[nativeAPI.fullscreenElement])!=null?t:void 0}},isEnabled:{enumerable:!0,get:()=>Boolean(document[nativeAPI.fullscreenEnabled])}});nativeAPI||(screenfull={isEnabled:!1});var screenfull$1=screenfull;function isObject$f(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}var isObject_1=isObject$f,freeGlobal$1=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,_freeGlobal=freeGlobal$1,freeGlobal=_freeGlobal,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root$8=freeGlobal||freeSelf||Function("return this")(),_root=root$8,root$7=_root,Symbol$7=root$7.Symbol,_Symbol=Symbol$7,Symbol$6=_Symbol,objectProto$d=Object.prototype,hasOwnProperty$b=objectProto$d.hasOwnProperty,nativeObjectToString$1=objectProto$d.toString,symToStringTag$1=Symbol$6?Symbol$6.toStringTag:void 0;function getRawTag$1(t){var r=hasOwnProperty$b.call(t,symToStringTag$1),n=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var o=!0}catch(l){}var s=nativeObjectToString$1.call(t);return o&&(r?t[symToStringTag$1]=n:delete t[symToStringTag$1]),s}var _getRawTag=getRawTag$1,objectProto$c=Object.prototype,nativeObjectToString=objectProto$c.toString;function objectToString$1(t){return nativeObjectToString.call(t)}var _objectToString=objectToString$1,Symbol$5=_Symbol,getRawTag=_getRawTag,objectToString=_objectToString,nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$5?Symbol$5.toStringTag:void 0;function baseGetTag$6(t){return t==null?t===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}var _baseGetTag=baseGetTag$6;function isObjectLike$8(t){return t!=null&&typeof t=="object"}var isObjectLike_1=isObjectLike$8,baseGetTag$5=_baseGetTag,isObjectLike$7=isObjectLike_1,symbolTag$2="[object Symbol]";function isSymbol$3(t){return typeof t=="symbol"||isObjectLike$7(t)&&baseGetTag$5(t)==symbolTag$2}var isSymbol_1=isSymbol$3,__glob_6_7="./static/png/image-404.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 extendStatics$2=function(t,r){return extendStatics$2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},extendStatics$2(t,r)};function __extends$2(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");extendStatics$2(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(r){for(var n,o=1,s=arguments.length;o<s;o++){n=arguments[o];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(r[l]=n[l])}return r},__assign.apply(this,arguments)};function __awaiter(t,r,n,o){function s(l){return l instanceof n?l:new n(function(d){d(l)})}return new(n||(n=Promise))(function(l,d){function g(C){try{b(o.next(C))}catch(x){d(x)}}function y(C){try{b(o.throw(C))}catch(x){d(x)}}function b(C){C.done?l(C.value):s(C.value).then(g,y)}b((o=o.apply(t,r||[])).next())})}function __generator(t,r){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},o,s,l,d;return d={next:g(0),throw:g(1),return:g(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function g(b){return function(C){return y([b,C])}}function y(b){if(o)throw new TypeError("Generator is already executing.");for(;n;)try{if(o=1,s&&(l=b[0]&2?s.return:b[0]?s.throw||((l=s.return)&&l.call(s),0):s.next)&&!(l=l.call(s,b[1])).done)return l;switch(s=0,l&&(b=[b[0]&2,l.value]),b[0]){case 0:case 1:l=b;break;case 4:return n.label++,{value:b[1],done:!1};case 5:n.label++,s=b[1],b=[0];continue;case 7:b=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(b[0]===6||b[0]===2)){n=0;continue}if(b[0]===3&&(!l||b[1]>l[0]&&b[1]<l[3])){n.label=b[1];break}if(b[0]===6&&n.label<l[1]){n.label=l[1],l=b;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(b);break}l[2]&&n.ops.pop(),n.trys.pop();continue}b=r.call(t,n)}catch(C){b=[6,C],s=0}finally{o=l=0}if(b[0]&5)throw b[1];return{value:b[0]?b[1]:void 0,done:!0}}}function __spreadArray(t,r,n){if(n||arguments.length===2)for(var o=0,s=r.length,l;o<s;o++)(l||!(o in r))&&(l||(l=Array.prototype.slice.call(r,0,o)),l[o]=r[o]);return t.concat(l||r)}var Bounds=function(){function t(r,n,o,s){this.left=r,this.top=n,this.width=o,this.height=s}return t.prototype.add=function(r,n,o,s){return new t(this.left+r,this.top+n,this.width+o,this.height+s)},t.fromClientRect=function(r,n){return new t(n.left+r.windowBounds.left,n.top+r.windowBounds.top,n.width,n.height)},t.fromDOMRectList=function(r,n){var o=Array.from(n).find(function(s){return s.width!==0});return o?new t(o.left+r.windowBounds.left,o.top+r.windowBounds.top,o.width,o.height):t.EMPTY},t.EMPTY=new t(0,0,0,0),t}(),parseBounds=function(t,r){return Bounds.fromClientRect(t,r.getBoundingClientRect())},parseDocumentSize=function(t){var r=t.body,n=t.documentElement;if(!r||!n)throw new Error("Unable to get document size");var o=Math.max(Math.max(r.scrollWidth,n.scrollWidth),Math.max(r.offsetWidth,n.offsetWidth),Math.max(r.clientWidth,n.clientWidth)),s=Math.max(Math.max(r.scrollHeight,n.scrollHeight),Math.max(r.offsetHeight,n.offsetHeight),Math.max(r.clientHeight,n.clientHeight));return new Bounds(0,0,o,s)},toCodePoints$1=function(t){for(var r=[],n=0,o=t.length;n<o;){var s=t.charCodeAt(n++);if(s>=55296&&s<=56319&&n<o){var l=t.charCodeAt(n++);(l&64512)===56320?r.push(((s&1023)<<10)+(l&1023)+65536):(r.push(s),n--)}else r.push(s)}return r},fromCodePoint$1=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var o=[],s=-1,l="";++s<n;){var d=t[s];d<=65535?o.push(d):(d-=65536,o.push((d>>10)+55296,d%1024+56320)),(s+1===n||o.length>16384)&&(l+=String.fromCharCode.apply(String,o),o.length=0)}return l},chars$2="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$2=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var i$2=0;i$2<chars$2.length;i$2++)lookup$2[chars$2.charCodeAt(i$2)]=i$2;var chars$1$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1$1=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var i$1$1=0;i$1$1<chars$1$1.length;i$1$1++)lookup$1$1[chars$1$1.charCodeAt(i$1$1)]=i$1$1;var decode$1$1=function(t){var r=t.length*.75,n=t.length,o,s=0,l,d,g,y;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);var b=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(r):new Array(r),C=Array.isArray(b)?b:new Uint8Array(b);for(o=0;o<n;o+=4)l=lookup$1$1[t.charCodeAt(o)],d=lookup$1$1[t.charCodeAt(o+1)],g=lookup$1$1[t.charCodeAt(o+2)],y=lookup$1$1[t.charCodeAt(o+3)],C[s++]=l<<2|d>>4,C[s++]=(d&15)<<4|g>>2,C[s++]=(g&3)<<6|y&63;return b},polyUint16Array$1=function(t){for(var r=t.length,n=[],o=0;o<r;o+=2)n.push(t[o+1]<<8|t[o]);return n},polyUint32Array$1=function(t){for(var r=t.length,n=[],o=0;o<r;o+=4)n.push(t[o+3]<<24|t[o+2]<<16|t[o+1]<<8|t[o]);return n},UTRIE2_SHIFT_2$1=5,UTRIE2_SHIFT_1$1=6+5,UTRIE2_INDEX_SHIFT$1=2,UTRIE2_SHIFT_1_2$1=UTRIE2_SHIFT_1$1-UTRIE2_SHIFT_2$1,UTRIE2_LSCP_INDEX_2_OFFSET$1=65536>>UTRIE2_SHIFT_2$1,UTRIE2_DATA_BLOCK_LENGTH$1=1<<UTRIE2_SHIFT_2$1,UTRIE2_DATA_MASK$1=UTRIE2_DATA_BLOCK_LENGTH$1-1,UTRIE2_LSCP_INDEX_2_LENGTH$1=1024>>UTRIE2_SHIFT_2$1,UTRIE2_INDEX_2_BMP_LENGTH$1=UTRIE2_LSCP_INDEX_2_OFFSET$1+UTRIE2_LSCP_INDEX_2_LENGTH$1,UTRIE2_UTF8_2B_INDEX_2_OFFSET$1=UTRIE2_INDEX_2_BMP_LENGTH$1,UTRIE2_UTF8_2B_INDEX_2_LENGTH$1=32,UTRIE2_INDEX_1_OFFSET$1=UTRIE2_UTF8_2B_INDEX_2_OFFSET$1+UTRIE2_UTF8_2B_INDEX_2_LENGTH$1,UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1=65536>>UTRIE2_SHIFT_1$1,UTRIE2_INDEX_2_BLOCK_LENGTH$1=1<<UTRIE2_SHIFT_1_2$1,UTRIE2_INDEX_2_MASK$1=UTRIE2_INDEX_2_BLOCK_LENGTH$1-1,slice16$1=function(t,r,n){return t.slice?t.slice(r,n):new Uint16Array(Array.prototype.slice.call(t,r,n))},slice32$1=function(t,r,n){return t.slice?t.slice(r,n):new Uint32Array(Array.prototype.slice.call(t,r,n))},createTrieFromBase64$1=function(t,r){var n=decode$1$1(t),o=Array.isArray(n)?polyUint32Array$1(n):new Uint32Array(n),s=Array.isArray(n)?polyUint16Array$1(n):new Uint16Array(n),l=24,d=slice16$1(s,l/2,o[4]/2),g=o[5]===2?slice16$1(s,(l+o[4])/2):slice32$1(o,Math.ceil((l+o[4])/4));return new Trie$1(o[0],o[1],o[2],o[3],d,g)},Trie$1=function(){function t(r,n,o,s,l,d){this.initialValue=r,this.errorValue=n,this.highStart=o,this.highValueIndex=s,this.index=l,this.data=d}return t.prototype.get=function(r){var n;if(r>=0){if(r<55296||r>56319&&r<=65535)return n=this.index[r>>UTRIE2_SHIFT_2$1],n=(n<<UTRIE2_INDEX_SHIFT$1)+(r&UTRIE2_DATA_MASK$1),this.data[n];if(r<=65535)return n=this.index[UTRIE2_LSCP_INDEX_2_OFFSET$1+(r-55296>>UTRIE2_SHIFT_2$1)],n=(n<<UTRIE2_INDEX_SHIFT$1)+(r&UTRIE2_DATA_MASK$1),this.data[n];if(r<this.highStart)return n=UTRIE2_INDEX_1_OFFSET$1-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH$1+(r>>UTRIE2_SHIFT_1$1),n=this.index[n],n+=r>>UTRIE2_SHIFT_2$1&UTRIE2_INDEX_2_MASK$1,n=this.index[n],n=(n<<UTRIE2_INDEX_SHIFT$1)+(r&UTRIE2_DATA_MASK$1),this.data[n];if(r<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),chars$3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$3=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var i$3=0;i$3<chars$3.length;i$3++)lookup$3[chars$3.charCodeAt(i$3)]=i$3;var base64$1="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==",LETTER_NUMBER_MODIFIER=50,BK=1,CR$1=2,LF$1=3,CM=4,NL=5,WJ=7,ZW=8,GL=9,SP=10,ZWJ$1=11,B2=12,BA=13,BB=14,HY=15,CB=16,CL=17,CP=18,EX=19,IN=20,NS=21,OP=22,QU=23,IS=24,NU=25,PO=26,PR=27,SY=28,AI=29,AL=30,CJ=31,EB=32,EM=33,H2=34,H3=35,HL=36,ID=37,JL=38,JV=39,JT=40,RI$1=41,SA=42,XX=43,ea_OP=[9001,65288],BREAK_MANDATORY="!",BREAK_NOT_ALLOWED$1="\xD7",BREAK_ALLOWED$1="\xF7",UnicodeTrie$1=createTrieFromBase64$1(base64$1),ALPHABETICS=[AL,HL],HARD_LINE_BREAKS=[BK,CR$1,LF$1,NL],SPACE$1=[SP,ZW],PREFIX_POSTFIX=[PR,PO],LINE_BREAKS=HARD_LINE_BREAKS.concat(SPACE$1),KOREAN_SYLLABLE_BLOCK=[JL,JV,JT,H2,H3],HYPHEN=[HY,BA],codePointsToCharacterClasses=function(t,r){r===void 0&&(r="strict");var n=[],o=[],s=[];return t.forEach(function(l,d){var g=UnicodeTrie$1.get(l);if(g>LETTER_NUMBER_MODIFIER?(s.push(!0),g-=LETTER_NUMBER_MODIFIER):s.push(!1),["normal","auto","loose"].indexOf(r)!==-1&&[8208,8211,12316,12448].indexOf(l)!==-1)return o.push(d),n.push(CB);if(g===CM||g===ZWJ$1){if(d===0)return o.push(d),n.push(AL);var y=n[d-1];return LINE_BREAKS.indexOf(y)===-1?(o.push(o[d-1]),n.push(y)):(o.push(d),n.push(AL))}if(o.push(d),g===CJ)return n.push(r==="strict"?NS:ID);if(g===SA||g===AI)return n.push(AL);if(g===XX)return l>=131072&&l<=196605||l>=196608&&l<=262141?n.push(ID):n.push(AL);n.push(g)}),[o,n,s]},isAdjacentWithSpaceIgnored=function(t,r,n,o){var s=o[n];if(Array.isArray(t)?t.indexOf(s)!==-1:t===s)for(var l=n;l<=o.length;){l++;var d=o[l];if(d===r)return!0;if(d!==SP)break}if(s===SP)for(var l=n;l>0;){l--;var g=o[l];if(Array.isArray(t)?t.indexOf(g)!==-1:t===g)for(var y=n;y<=o.length;){y++;var d=o[y];if(d===r)return!0;if(d!==SP)break}if(g!==SP)break}return!1},previousNonSpaceClassType=function(t,r){for(var n=t;n>=0;){var o=r[n];if(o===SP)n--;else return o}return 0},_lineBreakAtIndex=function(t,r,n,o,s){if(n[o]===0)return BREAK_NOT_ALLOWED$1;var l=o-1;if(Array.isArray(s)&&s[l]===!0)return BREAK_NOT_ALLOWED$1;var d=l-1,g=l+1,y=r[l],b=d>=0?r[d]:0,C=r[g];if(y===CR$1&&C===LF$1)return BREAK_NOT_ALLOWED$1;if(HARD_LINE_BREAKS.indexOf(y)!==-1)return BREAK_MANDATORY;if(HARD_LINE_BREAKS.indexOf(C)!==-1||SPACE$1.indexOf(C)!==-1)return BREAK_NOT_ALLOWED$1;if(previousNonSpaceClassType(l,r)===ZW)return BREAK_ALLOWED$1;if(UnicodeTrie$1.get(t[l])===ZWJ$1||(y===EB||y===EM)&&UnicodeTrie$1.get(t[g])===ZWJ$1||y===WJ||C===WJ||y===GL||[SP,BA,HY].indexOf(y)===-1&&C===GL||[CL,CP,EX,IS,SY].indexOf(C)!==-1||previousNonSpaceClassType(l,r)===OP||isAdjacentWithSpaceIgnored(QU,OP,l,r)||isAdjacentWithSpaceIgnored([CL,CP],NS,l,r)||isAdjacentWithSpaceIgnored(B2,B2,l,r))return BREAK_NOT_ALLOWED$1;if(y===SP)return BREAK_ALLOWED$1;if(y===QU||C===QU)return BREAK_NOT_ALLOWED$1;if(C===CB||y===CB)return BREAK_ALLOWED$1;if([BA,HY,NS].indexOf(C)!==-1||y===BB||b===HL&&HYPHEN.indexOf(y)!==-1||y===SY&&C===HL||C===IN||ALPHABETICS.indexOf(C)!==-1&&y===NU||ALPHABETICS.indexOf(y)!==-1&&C===NU||y===PR&&[ID,EB,EM].indexOf(C)!==-1||[ID,EB,EM].indexOf(y)!==-1&&C===PO||ALPHABETICS.indexOf(y)!==-1&&PREFIX_POSTFIX.indexOf(C)!==-1||PREFIX_POSTFIX.indexOf(y)!==-1&&ALPHABETICS.indexOf(C)!==-1||[PR,PO].indexOf(y)!==-1&&(C===NU||[OP,HY].indexOf(C)!==-1&&r[g+1]===NU)||[OP,HY].indexOf(y)!==-1&&C===NU||y===NU&&[NU,SY,IS].indexOf(C)!==-1)return BREAK_NOT_ALLOWED$1;if([NU,SY,IS,CL,CP].indexOf(C)!==-1)for(var x=l;x>=0;){var S=r[x];if(S===NU)return BREAK_NOT_ALLOWED$1;if([SY,IS].indexOf(S)!==-1)x--;else break}if([PR,PO].indexOf(C)!==-1)for(var x=[CL,CP].indexOf(y)!==-1?d:l;x>=0;){var S=r[x];if(S===NU)return BREAK_NOT_ALLOWED$1;if([SY,IS].indexOf(S)!==-1)x--;else break}if(JL===y&&[JL,JV,H2,H3].indexOf(C)!==-1||[JV,H2].indexOf(y)!==-1&&[JV,JT].indexOf(C)!==-1||[JT,H3].indexOf(y)!==-1&&C===JT||KOREAN_SYLLABLE_BLOCK.indexOf(y)!==-1&&[IN,PO].indexOf(C)!==-1||KOREAN_SYLLABLE_BLOCK.indexOf(C)!==-1&&y===PR||ALPHABETICS.indexOf(y)!==-1&&ALPHABETICS.indexOf(C)!==-1||y===IS&&ALPHABETICS.indexOf(C)!==-1||ALPHABETICS.concat(NU).indexOf(y)!==-1&&C===OP&&ea_OP.indexOf(t[g])===-1||ALPHABETICS.concat(NU).indexOf(C)!==-1&&y===CP)return BREAK_NOT_ALLOWED$1;if(y===RI$1&&C===RI$1){for(var _=n[l],w=1;_>0&&(_--,r[_]===RI$1);)w++;if(w%2!==0)return BREAK_NOT_ALLOWED$1}return y===EB&&C===EM?BREAK_NOT_ALLOWED$1:BREAK_ALLOWED$1},cssFormattedClasses=function(t,r){r||(r={lineBreak:"normal",wordBreak:"normal"});var n=codePointsToCharacterClasses(t,r.lineBreak),o=n[0],s=n[1],l=n[2];(r.wordBreak==="break-all"||r.wordBreak==="break-word")&&(s=s.map(function(g){return[NU,AL,SA].indexOf(g)!==-1?ID:g}));var d=r.wordBreak==="keep-all"?l.map(function(g,y){return g&&t[y]>=19968&&t[y]<=40959}):void 0;return[o,s,d]},Break=function(){function t(r,n,o,s){this.codePoints=r,this.required=n===BREAK_MANDATORY,this.start=o,this.end=s}return t.prototype.slice=function(){return fromCodePoint$1.apply(void 0,this.codePoints.slice(this.start,this.end))},t}(),LineBreaker=function(t,r){var n=toCodePoints$1(t),o=cssFormattedClasses(n,r),s=o[0],l=o[1],d=o[2],g=n.length,y=0,b=0;return{next:function(){if(b>=g)return{done:!0,value:null};for(var C=BREAK_NOT_ALLOWED$1;b<g&&(C=_lineBreakAtIndex(n,l,s,++b,d))===BREAK_NOT_ALLOWED$1;);if(C!==BREAK_NOT_ALLOWED$1||b===g){var x=new Break(n,C,y,b);return y=b,{value:x,done:!1}}return{done:!0,value:null}}}},FLAG_UNRESTRICTED=1<<0,FLAG_ID=1<<1,FLAG_INTEGER=1<<2,FLAG_NUMBER=1<<3,LINE_FEED=10,SOLIDUS=47,REVERSE_SOLIDUS=92,CHARACTER_TABULATION=9,SPACE=32,QUOTATION_MARK=34,EQUALS_SIGN=61,NUMBER_SIGN=35,DOLLAR_SIGN=36,PERCENTAGE_SIGN=37,APOSTROPHE=39,LEFT_PARENTHESIS=40,RIGHT_PARENTHESIS=41,LOW_LINE=95,HYPHEN_MINUS=45,EXCLAMATION_MARK=33,LESS_THAN_SIGN=60,GREATER_THAN_SIGN=62,COMMERCIAL_AT=64,LEFT_SQUARE_BRACKET=91,RIGHT_SQUARE_BRACKET=93,CIRCUMFLEX_ACCENT=61,LEFT_CURLY_BRACKET=123,QUESTION_MARK=63,RIGHT_CURLY_BRACKET=125,VERTICAL_LINE=124,TILDE=126,CONTROL=128,REPLACEMENT_CHARACTER=65533,ASTERISK=42,PLUS_SIGN=43,COMMA=44,COLON=58,SEMICOLON=59,FULL_STOP=46,NULL=0,BACKSPACE=8,LINE_TABULATION=11,SHIFT_OUT=14,INFORMATION_SEPARATOR_ONE=31,DELETE=127,EOF=-1,ZERO=48,a=97,e$1=101,f=102,u=117,z=122,A=65,E=69,F=70,U=85,Z=90,isDigit=function(t){return t>=ZERO&&t<=57},isSurrogateCodePoint=function(t){return t>=55296&&t<=57343},isHex=function(t){return isDigit(t)||t>=A&&t<=F||t>=a&&t<=f},isLowerCaseLetter=function(t){return t>=a&&t<=z},isUpperCaseLetter=function(t){return t>=A&&t<=Z},isLetter=function(t){return isLowerCaseLetter(t)||isUpperCaseLetter(t)},isNonASCIICodePoint=function(t){return t>=CONTROL},isWhiteSpace=function(t){return t===LINE_FEED||t===CHARACTER_TABULATION||t===SPACE},isNameStartCodePoint=function(t){return isLetter(t)||isNonASCIICodePoint(t)||t===LOW_LINE},isNameCodePoint=function(t){return isNameStartCodePoint(t)||isDigit(t)||t===HYPHEN_MINUS},isNonPrintableCodePoint=function(t){return t>=NULL&&t<=BACKSPACE||t===LINE_TABULATION||t>=SHIFT_OUT&&t<=INFORMATION_SEPARATOR_ONE||t===DELETE},isValidEscape=function(t,r){return t!==REVERSE_SOLIDUS?!1:r!==LINE_FEED},isIdentifierStart=function(t,r,n){return t===HYPHEN_MINUS?isNameStartCodePoint(r)||isValidEscape(r,n):isNameStartCodePoint(t)?!0:!!(t===REVERSE_SOLIDUS&&isValidEscape(t,r))},isNumberStart=function(t,r,n){return t===PLUS_SIGN||t===HYPHEN_MINUS?isDigit(r)?!0:r===FULL_STOP&&isDigit(n):isDigit(t===FULL_STOP?r:t)},stringToNumber=function(t){var r=0,n=1;(t[r]===PLUS_SIGN||t[r]===HYPHEN_MINUS)&&(t[r]===HYPHEN_MINUS&&(n=-1),r++);for(var o=[];isDigit(t[r]);)o.push(t[r++]);var s=o.length?parseInt(fromCodePoint$1.apply(void 0,o),10):0;t[r]===FULL_STOP&&r++;for(var l=[];isDigit(t[r]);)l.push(t[r++]);var d=l.length,g=d?parseInt(fromCodePoint$1.apply(void 0,l),10):0;(t[r]===E||t[r]===e$1)&&r++;var y=1;(t[r]===PLUS_SIGN||t[r]===HYPHEN_MINUS)&&(t[r]===HYPHEN_MINUS&&(y=-1),r++);for(var b=[];isDigit(t[r]);)b.push(t[r++]);var C=b.length?parseInt(fromCodePoint$1.apply(void 0,b),10):0;return n*(s+g*Math.pow(10,-d))*Math.pow(10,y*C)},LEFT_PARENTHESIS_TOKEN={type:2},RIGHT_PARENTHESIS_TOKEN={type:3},COMMA_TOKEN={type:4},SUFFIX_MATCH_TOKEN={type:13},PREFIX_MATCH_TOKEN={type:8},COLUMN_TOKEN={type:21},DASH_MATCH_TOKEN={type:9},INCLUDE_MATCH_TOKEN={type:10},LEFT_CURLY_BRACKET_TOKEN={type:11},RIGHT_CURLY_BRACKET_TOKEN={type:12},SUBSTRING_MATCH_TOKEN={type:14},BAD_URL_TOKEN={type:23},BAD_STRING_TOKEN={type:1},CDO_TOKEN={type:25},CDC_TOKEN={type:24},COLON_TOKEN={type:26},SEMICOLON_TOKEN={type:27},LEFT_SQUARE_BRACKET_TOKEN={type:28},RIGHT_SQUARE_BRACKET_TOKEN={type:29},WHITESPACE_TOKEN={type:31},EOF_TOKEN={type:32},Tokenizer=function(){function t(){this._value=[]}return t.prototype.write=function(r){this._value=this._value.concat(toCodePoints$1(r))},t.prototype.read=function(){for(var r=[],n=this.consumeToken();n!==EOF_TOKEN;)r.push(n),n=this.consumeToken();return r},t.prototype.consumeToken=function(){var r=this.consumeCodePoint();switch(r){case QUOTATION_MARK:return this.consumeStringToken(QUOTATION_MARK);case NUMBER_SIGN:var n=this.peekCodePoint(0),o=this.peekCodePoint(1),s=this.peekCodePoint(2);if(isNameCodePoint(n)||isValidEscape(o,s)){var l=isIdentifierStart(n,o,s)?FLAG_ID:FLAG_UNRESTRICTED,d=this.consumeName();return{type:5,value:d,flags:l}}break;case DOLLAR_SIGN:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),SUFFIX_MATCH_TOKEN;break;case APOSTROPHE:return this.consumeStringToken(APOSTROPHE);case LEFT_PARENTHESIS:return LEFT_PARENTHESIS_TOKEN;case RIGHT_PARENTHESIS:return RIGHT_PARENTHESIS_TOKEN;case ASTERISK:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),SUBSTRING_MATCH_TOKEN;break;case PLUS_SIGN:if(isNumberStart(r,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(r),this.consumeNumericToken();break;case COMMA:return COMMA_TOKEN;case HYPHEN_MINUS:var g=r,y=this.peekCodePoint(0),b=this.peekCodePoint(1);if(isNumberStart(g,y,b))return this.reconsumeCodePoint(r),this.consumeNumericToken();if(isIdentifierStart(g,y,b))return this.reconsumeCodePoint(r),this.consumeIdentLikeToken();if(y===HYPHEN_MINUS&&b===GREATER_THAN_SIGN)return this.consumeCodePoint(),this.consumeCodePoint(),CDC_TOKEN;break;case FULL_STOP:if(isNumberStart(r,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(r),this.consumeNumericToken();break;case SOLIDUS:if(this.peekCodePoint(0)===ASTERISK)for(this.consumeCodePoint();;){var C=this.consumeCodePoint();if(C===ASTERISK&&(C=this.consumeCodePoint(),C===SOLIDUS))return this.consumeToken();if(C===EOF)return this.consumeToken()}break;case COLON:return COLON_TOKEN;case SEMICOLON:return SEMICOLON_TOKEN;case LESS_THAN_SIGN:if(this.peekCodePoint(0)===EXCLAMATION_MARK&&this.peekCodePoint(1)===HYPHEN_MINUS&&this.peekCodePoint(2)===HYPHEN_MINUS)return this.consumeCodePoint(),this.consumeCodePoint(),CDO_TOKEN;break;case COMMERCIAL_AT:var x=this.peekCodePoint(0),S=this.peekCodePoint(1),_=this.peekCodePoint(2);if(isIdentifierStart(x,S,_)){var d=this.consumeName();return{type:7,value:d}}break;case LEFT_SQUARE_BRACKET:return LEFT_SQUARE_BRACKET_TOKEN;case REVERSE_SOLIDUS:if(isValidEscape(r,this.peekCodePoint(0)))return this.reconsumeCodePoint(r),this.consumeIdentLikeToken();break;case RIGHT_SQUARE_BRACKET:return RIGHT_SQUARE_BRACKET_TOKEN;case CIRCUMFLEX_ACCENT:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),PREFIX_MATCH_TOKEN;break;case LEFT_CURLY_BRACKET:return LEFT_CURLY_BRACKET_TOKEN;case RIGHT_CURLY_BRACKET:return RIGHT_CURLY_BRACKET_TOKEN;case u:case U:var w=this.peekCodePoint(0),$=this.peekCodePoint(1);return w===PLUS_SIGN&&(isHex($)||$===QUESTION_MARK)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(r),this.consumeIdentLikeToken();case VERTICAL_LINE:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),DASH_MATCH_TOKEN;if(this.peekCodePoint(0)===VERTICAL_LINE)return this.consumeCodePoint(),COLUMN_TOKEN;break;case TILDE:if(this.peekCodePoint(0)===EQUALS_SIGN)return this.consumeCodePoint(),INCLUDE_MATCH_TOKEN;break;case EOF:return EOF_TOKEN}return isWhiteSpace(r)?(this.consumeWhiteSpace(),WHITESPACE_TOKEN):isDigit(r)?(this.reconsumeCodePoint(r),this.consumeNumericToken()):isNameStartCodePoint(r)?(this.reconsumeCodePoint(r),this.consumeIdentLikeToken()):{type:6,value:fromCodePoint$1(r)}},t.prototype.consumeCodePoint=function(){var r=this._value.shift();return typeof r=="undefined"?-1:r},t.prototype.reconsumeCodePoint=function(r){this._value.unshift(r)},t.prototype.peekCodePoint=function(r){return r>=this._value.length?-1:this._value[r]},t.prototype.consumeUnicodeRangeToken=function(){for(var r=[],n=this.consumeCodePoint();isHex(n)&&r.length<6;)r.push(n),n=this.consumeCodePoint();for(var o=!1;n===QUESTION_MARK&&r.length<6;)r.push(n),n=this.consumeCodePoint(),o=!0;if(o){var s=parseInt(fromCodePoint$1.apply(void 0,r.map(function(y){return y===QUESTION_MARK?ZERO:y})),16),l=parseInt(fromCodePoint$1.apply(void 0,r.map(function(y){return y===QUESTION_MARK?F:y})),16);return{type:30,start:s,end:l}}var d=parseInt(fromCodePoint$1.apply(void 0,r),16);if(this.peekCodePoint(0)===HYPHEN_MINUS&&isHex(this.peekCodePoint(1))){this.consumeCodePoint(),n=this.consumeCodePoint();for(var g=[];isHex(n)&&g.length<6;)g.push(n),n=this.consumeCodePoint();var l=parseInt(fromCodePoint$1.apply(void 0,g),16);return{type:30,start:d,end:l}}else return{type:30,start:d,end:d}},t.prototype.consumeIdentLikeToken=function(){var r=this.consumeName();return r.toLowerCase()==="url"&&this.peekCodePoint(0)===LEFT_PARENTHESIS?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===LEFT_PARENTHESIS?(this.consumeCodePoint(),{type:19,value:r}):{type:20,value:r}},t.prototype.consumeUrlToken=function(){var r=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF)return{type:22,value:""};var n=this.peekCodePoint(0);if(n===APOSTROPHE||n===QUOTATION_MARK){var o=this.consumeStringToken(this.consumeCodePoint());return o.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF||this.peekCodePoint(0)===RIGHT_PARENTHESIS)?(this.consumeCodePoint(),{type:22,value:o.value}):(this.consumeBadUrlRemnants(),BAD_URL_TOKEN)}for(;;){var s=this.consumeCodePoint();if(s===EOF||s===RIGHT_PARENTHESIS)return{type:22,value:fromCodePoint$1.apply(void 0,r)};if(isWhiteSpace(s))return this.consumeWhiteSpace(),this.peekCodePoint(0)===EOF||this.peekCodePoint(0)===RIGHT_PARENTHESIS?(this.consumeCodePoint(),{type:22,value:fromCodePoint$1.apply(void 0,r)}):(this.consumeBadUrlRemnants(),BAD_URL_TOKEN);if(s===QUOTATION_MARK||s===APOSTROPHE||s===LEFT_PARENTHESIS||isNonPrintableCodePoint(s))return this.consumeBadUrlRemnants(),BAD_URL_TOKEN;if(s===REVERSE_SOLIDUS)if(isValidEscape(s,this.peekCodePoint(0)))r.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),BAD_URL_TOKEN;else r.push(s)}},t.prototype.consumeWhiteSpace=function(){for(;isWhiteSpace(this.peekCodePoint(0));)this.consumeCodePoint()},t.prototype.consumeBadUrlRemnants=function(){for(;;){var r=this.consumeCodePoint();if(r===RIGHT_PARENTHESIS||r===EOF)return;isValidEscape(r,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},t.prototype.consumeStringSlice=function(r){for(var n=5e4,o="";r>0;){var s=Math.min(n,r);o+=fromCodePoint$1.apply(void 0,this._value.splice(0,s)),r-=s}return this._value.shift(),o},t.prototype.consumeStringToken=function(r){var n="",o=0;do{var s=this._value[o];if(s===EOF||s===void 0||s===r)return n+=this.consumeStringSlice(o),{type:0,value:n};if(s===LINE_FEED)return this._value.splice(0,o),BAD_STRING_TOKEN;if(s===REVERSE_SOLIDUS){var l=this._value[o+1];l!==EOF&&l!==void 0&&(l===LINE_FEED?(n+=this.consumeStringSlice(o),o=-1,this._value.shift()):isValidEscape(s,l)&&(n+=this.consumeStringSlice(o),n+=fromCodePoint$1(this.consumeEscapedCodePoint()),o=-1))}o++}while(!0)},t.prototype.consumeNumber=function(){var r=[],n=FLAG_INTEGER,o=this.peekCodePoint(0);for((o===PLUS_SIGN||o===HYPHEN_MINUS)&&r.push(this.consumeCodePoint());isDigit(this.peekCodePoint(0));)r.push(this.consumeCodePoint());o=this.peekCodePoint(0);var s=this.peekCodePoint(1);if(o===FULL_STOP&&isDigit(s))for(r.push(this.consumeCodePoint(),this.consumeCodePoint()),n=FLAG_NUMBER;isDigit(this.peekCodePoint(0));)r.push(this.consumeCodePoint());o=this.peekCodePoint(0),s=this.peekCodePoint(1);var l=this.peekCodePoint(2);if((o===E||o===e$1)&&((s===PLUS_SIGN||s===HYPHEN_MINUS)&&isDigit(l)||isDigit(s)))for(r.push(this.consumeCodePoint(),this.consumeCodePoint()),n=FLAG_NUMBER;isDigit(this.peekCodePoint(0));)r.push(this.consumeCodePoint());return[stringToNumber(r),n]},t.prototype.consumeNumericToken=function(){var r=this.consumeNumber(),n=r[0],o=r[1],s=this.peekCodePoint(0),l=this.peekCodePoint(1),d=this.peekCodePoint(2);if(isIdentifierStart(s,l,d)){var g=this.consumeName();return{type:15,number:n,flags:o,unit:g}}return s===PERCENTAGE_SIGN?(this.consumeCodePoint(),{type:16,number:n,flags:o}):{type:17,number:n,flags:o}},t.prototype.consumeEscapedCodePoint=function(){var r=this.consumeCodePoint();if(isHex(r)){for(var n=fromCodePoint$1(r);isHex(this.peekCodePoint(0))&&n.length<6;)n+=fromCodePoint$1(this.consumeCodePoint());isWhiteSpace(this.peekCodePoint(0))&&this.consumeCodePoint();var o=parseInt(n,16);return o===0||isSurrogateCodePoint(o)||o>1114111?REPLACEMENT_CHARACTER:o}return r===EOF?REPLACEMENT_CHARACTER:r},t.prototype.consumeName=function(){for(var r="";;){var n=this.consumeCodePoint();if(isNameCodePoint(n))r+=fromCodePoint$1(n);else if(isValidEscape(n,this.peekCodePoint(0)))r+=fromCodePoint$1(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(n),r}},t}(),Parser=function(){function t(r){this._tokens=r}return t.create=function(r){var n=new Tokenizer;return n.write(r),new t(n.read())},t.parseValue=function(r){return t.create(r).parseComponentValue()},t.parseValues=function(r){return t.create(r).parseComponentValues()},t.prototype.parseComponentValue=function(){for(var r=this.consumeToken();r.type===31;)r=this.consumeToken();if(r.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(r);var n=this.consumeComponentValue();do r=this.consumeToken();while(r.type===31);if(r.type===32)return n;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},t.prototype.parseComponentValues=function(){for(var r=[];;){var n=this.consumeComponentValue();if(n.type===32)return r;r.push(n),r.push()}},t.prototype.consumeComponentValue=function(){var r=this.consumeToken();switch(r.type){case 11:case 28:case 2:return this.consumeSimpleBlock(r.type);case 19:return this.consumeFunction(r)}return r},t.prototype.consumeSimpleBlock=function(r){for(var n={type:r,values:[]},o=this.consumeToken();;){if(o.type===32||isEndingTokenFor(o,r))return n;this.reconsumeToken(o),n.values.push(this.consumeComponentValue()),o=this.consumeToken()}},t.prototype.consumeFunction=function(r){for(var n={name:r.value,values:[],type:18};;){var o=this.consumeToken();if(o.type===32||o.type===3)return n;this.reconsumeToken(o),n.values.push(this.consumeComponentValue())}},t.prototype.consumeToken=function(){var r=this._tokens.shift();return typeof r=="undefined"?EOF_TOKEN:r},t.prototype.reconsumeToken=function(r){this._tokens.unshift(r)},t}(),isDimensionToken=function(t){return t.type===15},isNumberToken=function(t){return t.type===17},isIdentToken=function(t){return t.type===20},isStringToken=function(t){return t.type===0},isIdentWithValue=function(t,r){return isIdentToken(t)&&t.value===r},nonWhiteSpace=function(t){return t.type!==31},nonFunctionArgSeparator=function(t){return t.type!==31&&t.type!==4},parseFunctionArgs=function(t){var r=[],n=[];return t.forEach(function(o){if(o.type===4){if(n.length===0)throw new Error("Error parsing function args, zero tokens for arg");r.push(n),n=[];return}o.type!==31&&n.push(o)}),n.length&&r.push(n),r},isEndingTokenFor=function(t,r){return r===11&&t.type===12||r===28&&t.type===29?!0:r===2&&t.type===3},isLength$4=function(t){return t.type===17||t.type===15},isLengthPercentage=function(t){return t.type===16||isLength$4(t)},parseLengthPercentageTuple=function(t){return t.length>1?[t[0],t[1]]:[t[0]]},ZERO_LENGTH={type:17,number:0,flags:FLAG_INTEGER},FIFTY_PERCENT={type:16,number:50,flags:FLAG_INTEGER},HUNDRED_PERCENT={type:16,number:100,flags:FLAG_INTEGER},getAbsoluteValueForTuple=function(t,r,n){var o=t[0],s=t[1];return[getAbsoluteValue(o,r),getAbsoluteValue(typeof s!="undefined"?s:o,n)]},getAbsoluteValue=function(t,r){if(t.type===16)return t.number/100*r;if(isDimensionToken(t))switch(t.unit){case"rem":case"em":return 16*t.number;case"px":default:return t.number}return t.number},DEG="deg",GRAD="grad",RAD="rad",TURN="turn",angle={name:"angle",parse:function(t,r){if(r.type===15)switch(r.unit){case DEG:return Math.PI*r.number/180;case GRAD:return Math.PI/200*r.number;case RAD:return r.number;case TURN:return Math.PI*2*r.number}throw new Error("Unsupported angle type")}},isAngle=function(t){return t.type===15&&(t.unit===DEG||t.unit===GRAD||t.unit===RAD||t.unit===TURN)},parseNamedSide=function(t){var r=t.filter(isIdentToken).map(function(n){return n.value}).join(" ");switch(r){case"to bottom right":case"to right bottom":case"left top":case"top left":return[ZERO_LENGTH,ZERO_LENGTH];case"to top":case"bottom":return deg(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[ZERO_LENGTH,HUNDRED_PERCENT];case"to right":case"left":return deg(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[HUNDRED_PERCENT,HUNDRED_PERCENT];case"to bottom":case"top":return deg(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[HUNDRED_PERCENT,ZERO_LENGTH];case"to left":case"right":return deg(270)}return 0},deg=function(t){return Math.PI*t/180},color$1$1={name:"color",parse:function(t,r){if(r.type===18){var n=SUPPORTED_COLOR_FUNCTIONS[r.name];if(typeof n=="undefined")throw new Error('Attempting to parse an unsupported color function "'+r.name+'"');return n(t,r.values)}if(r.type===5){if(r.value.length===3){var o=r.value.substring(0,1),s=r.value.substring(1,2),l=r.value.substring(2,3);return pack(parseInt(o+o,16),parseInt(s+s,16),parseInt(l+l,16),1)}if(r.value.length===4){var o=r.value.substring(0,1),s=r.value.substring(1,2),l=r.value.substring(2,3),d=r.value.substring(3,4);return pack(parseInt(o+o,16),parseInt(s+s,16),parseInt(l+l,16),parseInt(d+d,16)/255)}if(r.value.length===6){var o=r.value.substring(0,2),s=r.value.substring(2,4),l=r.value.substring(4,6);return pack(parseInt(o,16),parseInt(s,16),parseInt(l,16),1)}if(r.value.length===8){var o=r.value.substring(0,2),s=r.value.substring(2,4),l=r.value.substring(4,6),d=r.value.substring(6,8);return pack(parseInt(o,16),parseInt(s,16),parseInt(l,16),parseInt(d,16)/255)}}if(r.type===20){var g=COLORS[r.value.toUpperCase()];if(typeof g!="undefined")return g}return COLORS.TRANSPARENT}},isTransparent=function(t){return(255&t)===0},asString=function(t){var r=255&t,n=255&t>>8,o=255&t>>16,s=255&t>>24;return r<255?"rgba("+s+","+o+","+n+","+r/255+")":"rgb("+s+","+o+","+n+")"},pack=function(t,r,n,o){return(t<<24|r<<16|n<<8|Math.round(o*255)<<0)>>>0},getTokenColorValue=function(t,r){if(t.type===17)return t.number;if(t.type===16){var n=r===3?1:255;return r===3?t.number/100*n:Math.round(t.number/100*n)}return 0},rgb=function(t,r){var n=r.filter(nonFunctionArgSeparator);if(n.length===3){var o=n.map(getTokenColorValue),s=o[0],l=o[1],d=o[2];return pack(s,l,d,1)}if(n.length===4){var g=n.map(getTokenColorValue),s=g[0],l=g[1],d=g[2],y=g[3];return pack(s,l,d,y)}return 0};function hue2rgb(t,r,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(r-t)*n*6+t:n<1/2?r:n<2/3?(r-t)*6*(2/3-n)+t:t}var hsl=function(t,r){var n=r.filter(nonFunctionArgSeparator),o=n[0],s=n[1],l=n[2],d=n[3],g=(o.type===17?deg(o.number):angle.parse(t,o))/(Math.PI*2),y=isLengthPercentage(s)?s.number/100:0,b=isLengthPercentage(l)?l.number/100:0,C=typeof d!="undefined"&&isLengthPercentage(d)?getAbsoluteValue(d,1):1;if(y===0)return pack(b*255,b*255,b*255,1);var x=b<=.5?b*(y+1):b+y-b*y,S=b*2-x,_=hue2rgb(S,x,g+1/3),w=hue2rgb(S,x,g),$=hue2rgb(S,x,g-1/3);return pack(_*255,w*255,$*255,C)},SUPPORTED_COLOR_FUNCTIONS={hsl,hsla:hsl,rgb,rgba:rgb},parseColor=function(t,r){return color$1$1.parse(t,Parser.create(r).parseComponentValue())},COLORS={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},backgroundClip={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(t,r){return r.map(function(n){if(isIdentToken(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},backgroundColor$1={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},parseColorStop=function(t,r){var n=color$1$1.parse(t,r[0]),o=r[1];return o&&isLengthPercentage(o)?{color:n,stop:o}:{color:n,stop:null}},processColorStops=function(t,r){var n=t[0],o=t[t.length-1];n.stop===null&&(n.stop=ZERO_LENGTH),o.stop===null&&(o.stop=HUNDRED_PERCENT);for(var s=[],l=0,d=0;d<t.length;d++){var g=t[d].stop;if(g!==null){var y=getAbsoluteValue(g,r);y>l?s.push(y):s.push(l),l=y}else s.push(null)}for(var b=null,d=0;d<s.length;d++){var C=s[d];if(C===null)b===null&&(b=d);else if(b!==null){for(var x=d-b,S=s[b-1],_=(C-S)/(x+1),w=1;w<=x;w++)s[b+w-1]=_*w;b=null}}return t.map(function($,I){var B=$.color;return{color:B,stop:Math.max(Math.min(1,s[I]/r),0)}})},getAngleFromCorner=function(t,r,n){var o=r/2,s=n/2,l=getAbsoluteValue(t[0],r)-o,d=s-getAbsoluteValue(t[1],n);return(Math.atan2(d,l)+Math.PI*2)%(Math.PI*2)},calculateGradientDirection=function(t,r,n){var o=typeof t=="number"?t:getAngleFromCorner(t,r,n),s=Math.abs(r*Math.sin(o))+Math.abs(n*Math.cos(o)),l=r/2,d=n/2,g=s/2,y=Math.sin(o-Math.PI/2)*g,b=Math.cos(o-Math.PI/2)*g;return[s,l-b,l+b,d-y,d+y]},distance$1=function(t,r){return Math.sqrt(t*t+r*r)},findCorner=function(t,r,n,o,s){var l=[[0,0],[0,r],[t,0],[t,r]];return l.reduce(function(d,g){var y=g[0],b=g[1],C=distance$1(n-y,o-b);return(s?C<d.optimumDistance:C>d.optimumDistance)?{optimumCorner:g,optimumDistance:C}:d},{optimumDistance:s?1/0:-1/0,optimumCorner:null}).optimumCorner},calculateRadius=function(t,r,n,o,s){var l=0,d=0;switch(t.size){case 0:t.shape===0?l=d=Math.min(Math.abs(r),Math.abs(r-o),Math.abs(n),Math.abs(n-s)):t.shape===1&&(l=Math.min(Math.abs(r),Math.abs(r-o)),d=Math.min(Math.abs(n),Math.abs(n-s)));break;case 2:if(t.shape===0)l=d=Math.min(distance$1(r,n),distance$1(r,n-s),distance$1(r-o,n),distance$1(r-o,n-s));else if(t.shape===1){var g=Math.min(Math.abs(n),Math.abs(n-s))/Math.min(Math.abs(r),Math.abs(r-o)),y=findCorner(o,s,r,n,!0),b=y[0],C=y[1];l=distance$1(b-r,(C-n)/g),d=g*l}break;case 1:t.shape===0?l=d=Math.max(Math.abs(r),Math.abs(r-o),Math.abs(n),Math.abs(n-s)):t.shape===1&&(l=Math.max(Math.abs(r),Math.abs(r-o)),d=Math.max(Math.abs(n),Math.abs(n-s)));break;case 3:if(t.shape===0)l=d=Math.max(distance$1(r,n),distance$1(r,n-s),distance$1(r-o,n),distance$1(r-o,n-s));else if(t.shape===1){var g=Math.max(Math.abs(n),Math.abs(n-s))/Math.max(Math.abs(r),Math.abs(r-o)),x=findCorner(o,s,r,n,!1),b=x[0],C=x[1];l=distance$1(b-r,(C-n)/g),d=g*l}break}return Array.isArray(t.size)&&(l=getAbsoluteValue(t.size[0],o),d=t.size.length===2?getAbsoluteValue(t.size[1],s):l),[l,d]},linearGradient=function(t,r){var n=deg(180),o=[];return parseFunctionArgs(r).forEach(function(s,l){if(l===0){var d=s[0];if(d.type===20&&d.value==="to"){n=parseNamedSide(s);return}else if(isAngle(d)){n=angle.parse(t,d);return}}var g=parseColorStop(t,s);o.push(g)}),{angle:n,stops:o,type:1}},prefixLinearGradient=function(t,r){var n=deg(180),o=[];return parseFunctionArgs(r).forEach(function(s,l){if(l===0){var d=s[0];if(d.type===20&&["top","left","right","bottom"].indexOf(d.value)!==-1){n=parseNamedSide(s);return}else if(isAngle(d)){n=(angle.parse(t,d)+deg(270))%deg(360);return}}var g=parseColorStop(t,s);o.push(g)}),{angle:n,stops:o,type:1}},webkitGradient=function(t,r){var n=deg(180),o=[],s=1,l=0,d=3,g=[];return parseFunctionArgs(r).forEach(function(y,b){var C=y[0];if(b===0){if(isIdentToken(C)&&C.value==="linear"){s=1;return}else if(isIdentToken(C)&&C.value==="radial"){s=2;return}}if(C.type===18){if(C.name==="from"){var x=color$1$1.parse(t,C.values[0]);o.push({stop:ZERO_LENGTH,color:x})}else if(C.name==="to"){var x=color$1$1.parse(t,C.values[0]);o.push({stop:HUNDRED_PERCENT,color:x})}else if(C.name==="color-stop"){var S=C.values.filter(nonFunctionArgSeparator);if(S.length===2){var x=color$1$1.parse(t,S[1]),_=S[0];isNumberToken(_)&&o.push({stop:{type:16,number:_.number*100,flags:_.flags},color:x})}}}}),s===1?{angle:(n+deg(180))%deg(360),stops:o,type:s}:{size:d,shape:l,stops:o,position:g,type:s}},CLOSEST_SIDE="closest-side",FARTHEST_SIDE="farthest-side",CLOSEST_CORNER="closest-corner",FARTHEST_CORNER="farthest-corner",CIRCLE="circle",ELLIPSE="ellipse",COVER="cover",CONTAIN="contain",radialGradient=function(t,r){var n=0,o=3,s=[],l=[];return parseFunctionArgs(r).forEach(function(d,g){var y=!0;if(g===0){var b=!1;y=d.reduce(function(x,S){if(b)if(isIdentToken(S))switch(S.value){case"center":return l.push(FIFTY_PERCENT),x;case"top":case"left":return l.push(ZERO_LENGTH),x;case"right":case"bottom":return l.push(HUNDRED_PERCENT),x}else(isLengthPercentage(S)||isLength$4(S))&&l.push(S);else if(isIdentToken(S))switch(S.value){case CIRCLE:return n=0,!1;case ELLIPSE:return n=1,!1;case"at":return b=!0,!1;case CLOSEST_SIDE:return o=0,!1;case COVER:case FARTHEST_SIDE:return o=1,!1;case CONTAIN:case CLOSEST_CORNER:return o=2,!1;case FARTHEST_CORNER:return o=3,!1}else if(isLength$4(S)||isLengthPercentage(S))return Array.isArray(o)||(o=[]),o.push(S),!1;return x},y)}if(y){var C=parseColorStop(t,d);s.push(C)}}),{size:o,shape:n,stops:s,position:l,type:2}},prefixRadialGradient=function(t,r){var n=0,o=3,s=[],l=[];return parseFunctionArgs(r).forEach(function(d,g){var y=!0;if(g===0?y=d.reduce(function(C,x){if(isIdentToken(x))switch(x.value){case"center":return l.push(FIFTY_PERCENT),!1;case"top":case"left":return l.push(ZERO_LENGTH),!1;case"right":case"bottom":return l.push(HUNDRED_PERCENT),!1}else if(isLengthPercentage(x)||isLength$4(x))return l.push(x),!1;return C},y):g===1&&(y=d.reduce(function(C,x){if(isIdentToken(x))switch(x.value){case CIRCLE:return n=0,!1;case ELLIPSE:return n=1,!1;case CONTAIN:case CLOSEST_SIDE:return o=0,!1;case FARTHEST_SIDE:return o=1,!1;case CLOSEST_CORNER:return o=2,!1;case COVER:case FARTHEST_CORNER:return o=3,!1}else if(isLength$4(x)||isLengthPercentage(x))return Array.isArray(o)||(o=[]),o.push(x),!1;return C},y)),y){var b=parseColorStop(t,d);s.push(b)}}),{size:o,shape:n,stops:s,position:l,type:2}},isLinearGradient$1=function(t){return t.type===1},isRadialGradient$1=function(t){return t.type===2},image={name:"image",parse:function(t,r){if(r.type===22){var n={url:r.value,type:0};return t.cache.addImage(r.value),n}if(r.type===18){var o=SUPPORTED_IMAGE_FUNCTIONS[r.name];if(typeof o=="undefined")throw new Error('Attempting to parse an unsupported image function "'+r.name+'"');return o(t,r.values)}throw new Error("Unsupported image type "+r.type)}};function isSupportedImage(t){return!(t.type===20&&t.value==="none")&&(t.type!==18||!!SUPPORTED_IMAGE_FUNCTIONS[t.name])}var SUPPORTED_IMAGE_FUNCTIONS={"linear-gradient":linearGradient,"-moz-linear-gradient":prefixLinearGradient,"-ms-linear-gradient":prefixLinearGradient,"-o-linear-gradient":prefixLinearGradient,"-webkit-linear-gradient":prefixLinearGradient,"radial-gradient":radialGradient,"-moz-radial-gradient":prefixRadialGradient,"-ms-radial-gradient":prefixRadialGradient,"-o-radial-gradient":prefixRadialGradient,"-webkit-radial-gradient":prefixRadialGradient,"-webkit-gradient":webkitGradient},backgroundImage={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(t,r){if(r.length===0)return[];var n=r[0];return n.type===20&&n.value==="none"?[]:r.filter(function(o){return nonFunctionArgSeparator(o)&&isSupportedImage(o)}).map(function(o){return image.parse(t,o)})}},backgroundOrigin={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(t,r){return r.map(function(n){if(isIdentToken(n))switch(n.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},backgroundPosition={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(t,r){return parseFunctionArgs(r).map(function(n){return n.filter(isLengthPercentage)}).map(parseLengthPercentageTuple)}},backgroundRepeat={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(t,r){return parseFunctionArgs(r).map(function(n){return n.filter(isIdentToken).map(function(o){return o.value}).join(" ")}).map(parseBackgroundRepeat)}},parseBackgroundRepeat=function(t){switch(t){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}},BACKGROUND_SIZE;(function(t){t.AUTO="auto",t.CONTAIN="contain",t.COVER="cover"})(BACKGROUND_SIZE||(BACKGROUND_SIZE={}));var backgroundSize={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(t,r){return parseFunctionArgs(r).map(function(n){return n.filter(isBackgroundSizeInfoToken)})}},isBackgroundSizeInfoToken=function(t){return isIdentToken(t)||isLengthPercentage(t)},borderColorForSide=function(t){return{name:"border-"+t+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},borderTopColor=borderColorForSide("top"),borderRightColor=borderColorForSide("right"),borderBottomColor=borderColorForSide("bottom"),borderLeftColor=borderColorForSide("left"),borderRadiusForSide=function(t){return{name:"border-radius-"+t,initialValue:"0 0",prefix:!1,type:1,parse:function(r,n){return parseLengthPercentageTuple(n.filter(isLengthPercentage))}}},borderTopLeftRadius=borderRadiusForSide("top-left"),borderTopRightRadius=borderRadiusForSide("top-right"),borderBottomRightRadius=borderRadiusForSide("bottom-right"),borderBottomLeftRadius=borderRadiusForSide("bottom-left"),borderStyleForSide=function(t){return{name:"border-"+t+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(r,n){switch(n){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},borderTopStyle=borderStyleForSide("top"),borderRightStyle=borderStyleForSide("right"),borderBottomStyle=borderStyleForSide("bottom"),borderLeftStyle=borderStyleForSide("left"),borderWidthForSide=function(t){return{name:"border-"+t+"-width",initialValue:"0",type:0,prefix:!1,parse:function(r,n){return isDimensionToken(n)?n.number:0}}},borderTopWidth=borderWidthForSide("top"),borderRightWidth=borderWidthForSide("right"),borderBottomWidth=borderWidthForSide("bottom"),borderLeftWidth=borderWidthForSide("left"),color$2={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},direction={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(t,r){switch(r){case"rtl":return 1;case"ltr":default:return 0}}},display={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(t,r){return r.filter(isIdentToken).reduce(function(n,o){return n|parseDisplayValue(o.value)},0)}},parseDisplayValue=function(t){switch(t){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},float={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(t,r){switch(r){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},letterSpacing={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(t,r){return r.type===20&&r.value==="normal"?0:r.type===17||r.type===15?r.number:0}},LINE_BREAK;(function(t){t.NORMAL="normal",t.STRICT="strict"})(LINE_BREAK||(LINE_BREAK={}));var lineBreak={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,r){switch(r){case"strict":return LINE_BREAK.STRICT;case"normal":default:return LINE_BREAK.NORMAL}}},lineHeight={name:"line-height",initialValue:"normal",prefix:!1,type:4},computeLineHeight=function(t,r){return isIdentToken(t)&&t.value==="normal"?1.2*r:t.type===17?r*t.number:isLengthPercentage(t)?getAbsoluteValue(t,r):r},listStyleImage={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(t,r){return r.type===20&&r.value==="none"?null:image.parse(t,r)}},listStylePosition={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(t,r){switch(r){case"inside":return 0;case"outside":default:return 1}}},listStyleType={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(t,r){switch(r){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}}},marginForSide=function(t){return{name:"margin-"+t,initialValue:"0",prefix:!1,type:4}},marginTop=marginForSide("top"),marginRight=marginForSide("right"),marginBottom=marginForSide("bottom"),marginLeft=marginForSide("left"),overflow={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(t,r){return r.filter(isIdentToken).map(function(n){switch(n.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},overflowWrap={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(t,r){switch(r){case"break-word":return"break-word";case"normal":default:return"normal"}}},paddingForSide=function(t){return{name:"padding-"+t,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},paddingTop=paddingForSide("top"),paddingRight=paddingForSide("right"),paddingBottom=paddingForSide("bottom"),paddingLeft=paddingForSide("left"),textAlign={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(t,r){switch(r){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},position$1={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(t,r){switch(r){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},textShadow={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,r){return r.length===1&&isIdentWithValue(r[0],"none")?[]:parseFunctionArgs(r).map(function(n){for(var o={color:COLORS.TRANSPARENT,offsetX:ZERO_LENGTH,offsetY:ZERO_LENGTH,blur:ZERO_LENGTH},s=0,l=0;l<n.length;l++){var d=n[l];isLength$4(d)?(s===0?o.offsetX=d:s===1?o.offsetY=d:o.blur=d,s++):o.color=color$1$1.parse(t,d)}return o})}},textTransform={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(t,r){switch(r){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},transform$1={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(t,r){if(r.type===20&&r.value==="none")return null;if(r.type===18){var n=SUPPORTED_TRANSFORM_FUNCTIONS[r.name];if(typeof n=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+r.name+'"');return n(r.values)}return null}},matrix$1=function(t){var r=t.filter(function(n){return n.type===17}).map(function(n){return n.number});return r.length===6?r:null},matrix3d=function(t){var r=t.filter(function(y){return y.type===17}).map(function(y){return y.number}),n=r[0],o=r[1];r[2],r[3];var s=r[4],l=r[5];r[6],r[7],r[8],r[9],r[10],r[11];var d=r[12],g=r[13];return r[14],r[15],r.length===16?[n,o,s,l,d,g]:null},SUPPORTED_TRANSFORM_FUNCTIONS={matrix:matrix$1,matrix3d},DEFAULT_VALUE={type:16,number:50,flags:FLAG_INTEGER},DEFAULT=[DEFAULT_VALUE,DEFAULT_VALUE],transformOrigin={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(t,r){var n=r.filter(isLengthPercentage);return n.length!==2?DEFAULT:[n[0],n[1]]}},visibility={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(t,r){switch(r){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},WORD_BREAK;(function(t){t.NORMAL="normal",t.BREAK_ALL="break-all",t.KEEP_ALL="keep-all"})(WORD_BREAK||(WORD_BREAK={}));var wordBreak={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(t,r){switch(r){case"break-all":return WORD_BREAK.BREAK_ALL;case"keep-all":return WORD_BREAK.KEEP_ALL;case"normal":default:return WORD_BREAK.NORMAL}}},zIndex={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(t,r){if(r.type===20)return{auto:!0,order:0};if(isNumberToken(r))return{auto:!1,order:r.number};throw new Error("Invalid z-index number parsed")}},time$1={name:"time",parse:function(t,r){if(r.type===15)switch(r.unit.toLowerCase()){case"s":return 1e3*r.number;case"ms":return r.number}throw new Error("Unsupported time type")}},opacity={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(t,r){return isNumberToken(r)?r.number:1}},textDecorationColor={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},textDecorationLine={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(t,r){return r.filter(isIdentToken).map(function(n){switch(n.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(n){return n!==0})}},fontFamily={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(t,r){var n=[],o=[];return r.forEach(function(s){switch(s.type){case 20:case 0:n.push(s.value);break;case 17:n.push(s.number.toString());break;case 4:o.push(n.join(" ")),n.length=0;break}}),n.length&&o.push(n.join(" ")),o.map(function(s){return s.indexOf(" ")===-1?s:"'"+s+"'"})}},fontSize={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},fontWeight={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(t,r){if(isNumberToken(r))return r.number;if(isIdentToken(r))switch(r.value){case"bold":return 700;case"normal":default:return 400}return 400}},fontVariant={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(t,r){return r.filter(isIdentToken).map(function(n){return n.value})}},fontStyle={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(t,r){switch(r){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},contains=function(t,r){return(t&r)!==0},content={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(t,r){if(r.length===0)return[];var n=r[0];return n.type===20&&n.value==="none"?[]:r}},counterIncrement={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(t,r){if(r.length===0)return null;var n=r[0];if(n.type===20&&n.value==="none")return null;for(var o=[],s=r.filter(nonWhiteSpace),l=0;l<s.length;l++){var d=s[l],g=s[l+1];if(d.type===20){var y=g&&isNumberToken(g)?g.number:1;o.push({counter:d.value,increment:y})}}return o}},counterReset={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(t,r){if(r.length===0)return[];for(var n=[],o=r.filter(nonWhiteSpace),s=0;s<o.length;s++){var l=o[s],d=o[s+1];if(isIdentToken(l)&&l.value!=="none"){var g=d&&isNumberToken(d)?d.number:0;n.push({counter:l.value,reset:g})}}return n}},duration={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(t,r){return r.filter(isDimensionToken).map(function(n){return time$1.parse(t,n)})}},quotes={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(t,r){if(r.length===0)return null;var n=r[0];if(n.type===20&&n.value==="none")return null;var o=[],s=r.filter(isStringToken);if(s.length%2!==0)return null;for(var l=0;l<s.length;l+=2){var d=s[l].value,g=s[l+1].value;o.push({open:d,close:g})}return o}},getQuote=function(t,r,n){if(!t)return"";var o=t[Math.min(r,t.length-1)];return o?n?o.open:o.close:""},boxShadow={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(t,r){return r.length===1&&isIdentWithValue(r[0],"none")?[]:parseFunctionArgs(r).map(function(n){for(var o={color:255,offsetX:ZERO_LENGTH,offsetY:ZERO_LENGTH,blur:ZERO_LENGTH,spread:ZERO_LENGTH,inset:!1},s=0,l=0;l<n.length;l++){var d=n[l];isIdentWithValue(d,"inset")?o.inset=!0:isLength$4(d)?(s===0?o.offsetX=d:s===1?o.offsetY=d:s===2?o.blur=d:o.spread=d,s++):o.color=color$1$1.parse(t,d)}return o})}},paintOrder={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(t,r){var n=[0,1,2],o=[];return r.filter(isIdentToken).forEach(function(s){switch(s.value){case"stroke":o.push(1);break;case"fill":o.push(0);break;case"markers":o.push(2);break}}),n.forEach(function(s){o.indexOf(s)===-1&&o.push(s)}),o}},webkitTextStrokeColor={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},webkitTextStrokeWidth={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(t,r){return isDimensionToken(r)?r.number:0}},CSSParsedDeclaration=function(){function t(r,n){var o,s;this.animationDuration=parse$1(r,duration,n.animationDuration),this.backgroundClip=parse$1(r,backgroundClip,n.backgroundClip),this.backgroundColor=parse$1(r,backgroundColor$1,n.backgroundColor),this.backgroundImage=parse$1(r,backgroundImage,n.backgroundImage),this.backgroundOrigin=parse$1(r,backgroundOrigin,n.backgroundOrigin),this.backgroundPosition=parse$1(r,backgroundPosition,n.backgroundPosition),this.backgroundRepeat=parse$1(r,backgroundRepeat,n.backgroundRepeat),this.backgroundSize=parse$1(r,backgroundSize,n.backgroundSize),this.borderTopColor=parse$1(r,borderTopColor,n.borderTopColor),this.borderRightColor=parse$1(r,borderRightColor,n.borderRightColor),this.borderBottomColor=parse$1(r,borderBottomColor,n.borderBottomColor),this.borderLeftColor=parse$1(r,borderLeftColor,n.borderLeftColor),this.borderTopLeftRadius=parse$1(r,borderTopLeftRadius,n.borderTopLeftRadius),this.borderTopRightRadius=parse$1(r,borderTopRightRadius,n.borderTopRightRadius),this.borderBottomRightRadius=parse$1(r,borderBottomRightRadius,n.borderBottomRightRadius),this.borderBottomLeftRadius=parse$1(r,borderBottomLeftRadius,n.borderBottomLeftRadius),this.borderTopStyle=parse$1(r,borderTopStyle,n.borderTopStyle),this.borderRightStyle=parse$1(r,borderRightStyle,n.borderRightStyle),this.borderBottomStyle=parse$1(r,borderBottomStyle,n.borderBottomStyle),this.borderLeftStyle=parse$1(r,borderLeftStyle,n.borderLeftStyle),this.borderTopWidth=parse$1(r,borderTopWidth,n.borderTopWidth),this.borderRightWidth=parse$1(r,borderRightWidth,n.borderRightWidth),this.borderBottomWidth=parse$1(r,borderBottomWidth,n.borderBottomWidth),this.borderLeftWidth=parse$1(r,borderLeftWidth,n.borderLeftWidth),this.boxShadow=parse$1(r,boxShadow,n.boxShadow),this.color=parse$1(r,color$2,n.color),this.direction=parse$1(r,direction,n.direction),this.display=parse$1(r,display,n.display),this.float=parse$1(r,float,n.cssFloat),this.fontFamily=parse$1(r,fontFamily,n.fontFamily),this.fontSize=parse$1(r,fontSize,n.fontSize),this.fontStyle=parse$1(r,fontStyle,n.fontStyle),this.fontVariant=parse$1(r,fontVariant,n.fontVariant),this.fontWeight=parse$1(r,fontWeight,n.fontWeight),this.letterSpacing=parse$1(r,letterSpacing,n.letterSpacing),this.lineBreak=parse$1(r,lineBreak,n.lineBreak),this.lineHeight=parse$1(r,lineHeight,n.lineHeight),this.listStyleImage=parse$1(r,listStyleImage,n.listStyleImage),this.listStylePosition=parse$1(r,listStylePosition,n.listStylePosition),this.listStyleType=parse$1(r,listStyleType,n.listStyleType),this.marginTop=parse$1(r,marginTop,n.marginTop),this.marginRight=parse$1(r,marginRight,n.marginRight),this.marginBottom=parse$1(r,marginBottom,n.marginBottom),this.marginLeft=parse$1(r,marginLeft,n.marginLeft),this.opacity=parse$1(r,opacity,n.opacity);var l=parse$1(r,overflow,n.overflow);this.overflowX=l[0],this.overflowY=l[l.length>1?1:0],this.overflowWrap=parse$1(r,overflowWrap,n.overflowWrap),this.paddingTop=parse$1(r,paddingTop,n.paddingTop),this.paddingRight=parse$1(r,paddingRight,n.paddingRight),this.paddingBottom=parse$1(r,paddingBottom,n.paddingBottom),this.paddingLeft=parse$1(r,paddingLeft,n.paddingLeft),this.paintOrder=parse$1(r,paintOrder,n.paintOrder),this.position=parse$1(r,position$1,n.position),this.textAlign=parse$1(r,textAlign,n.textAlign),this.textDecorationColor=parse$1(r,textDecorationColor,(o=n.textDecorationColor)!==null&&o!==void 0?o:n.color),this.textDecorationLine=parse$1(r,textDecorationLine,(s=n.textDecorationLine)!==null&&s!==void 0?s:n.textDecoration),this.textShadow=parse$1(r,textShadow,n.textShadow),this.textTransform=parse$1(r,textTransform,n.textTransform),this.transform=parse$1(r,transform$1,n.transform),this.transformOrigin=parse$1(r,transformOrigin,n.transformOrigin),this.visibility=parse$1(r,visibility,n.visibility),this.webkitTextStrokeColor=parse$1(r,webkitTextStrokeColor,n.webkitTextStrokeColor),this.webkitTextStrokeWidth=parse$1(r,webkitTextStrokeWidth,n.webkitTextStrokeWidth),this.wordBreak=parse$1(r,wordBreak,n.wordBreak),this.zIndex=parse$1(r,zIndex,n.zIndex)}return t.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},t.prototype.isTransparent=function(){return isTransparent(this.backgroundColor)},t.prototype.isTransformed=function(){return this.transform!==null},t.prototype.isPositioned=function(){return this.position!==0},t.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},t.prototype.isFloating=function(){return this.float!==0},t.prototype.isInlineLevel=function(){return contains(this.display,4)||contains(this.display,33554432)||contains(this.display,268435456)||contains(this.display,536870912)||contains(this.display,67108864)||contains(this.display,134217728)},t}(),CSSParsedPseudoDeclaration=function(){function t(r,n){this.content=parse$1(r,content,n.content),this.quotes=parse$1(r,quotes,n.quotes)}return t}(),CSSParsedCounterDeclaration=function(){function t(r,n){this.counterIncrement=parse$1(r,counterIncrement,n.counterIncrement),this.counterReset=parse$1(r,counterReset,n.counterReset)}return t}(),parse$1=function(t,r,n){var o=new Tokenizer,s=n!==null&&typeof n!="undefined"?n.toString():r.initialValue;o.write(s);var l=new Parser(o.read());switch(r.type){case 2:var d=l.parseComponentValue();return r.parse(t,isIdentToken(d)?d.value:r.initialValue);case 0:return r.parse(t,l.parseComponentValue());case 1:return r.parse(t,l.parseComponentValues());case 4:return l.parseComponentValue();case 3:switch(r.format){case"angle":return angle.parse(t,l.parseComponentValue());case"color":return color$1$1.parse(t,l.parseComponentValue());case"image":return image.parse(t,l.parseComponentValue());case"length":var g=l.parseComponentValue();return isLength$4(g)?g:ZERO_LENGTH;case"length-percentage":var y=l.parseComponentValue();return isLengthPercentage(y)?y:ZERO_LENGTH;case"time":return time$1.parse(t,l.parseComponentValue())}break}},elementDebuggerAttribute="data-html2canvas-debug",getElementDebugType=function(t){var r=t.getAttribute(elementDebuggerAttribute);switch(r){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},isDebugging=function(t,r){var n=getElementDebugType(t);return n===1||r===n},ElementContainer=function(){function t(r,n){if(this.context=r,this.textNodes=[],this.elements=[],this.flags=0,isDebugging(n,3))debugger;this.styles=new CSSParsedDeclaration(r,window.getComputedStyle(n,null)),isHTMLElementNode(n)&&(this.styles.animationDuration.some(function(o){return o>0})&&(n.style.animationDuration="0s"),this.styles.transform!==null&&(n.style.transform="none")),this.bounds=parseBounds(this.context,n),isDebugging(n,4)&&(this.flags|=16)}return t}(),base64="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",chars$1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup$1=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var i$1=0;i$1<chars$1.length;i$1++)lookup$1[chars$1.charCodeAt(i$1)]=i$1;var decode$2=function(t){var r=t.length*.75,n=t.length,o,s=0,l,d,g,y;t[t.length-1]==="="&&(r--,t[t.length-2]==="="&&r--);var b=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(r):new Array(r),C=Array.isArray(b)?b:new Uint8Array(b);for(o=0;o<n;o+=4)l=lookup$1[t.charCodeAt(o)],d=lookup$1[t.charCodeAt(o+1)],g=lookup$1[t.charCodeAt(o+2)],y=lookup$1[t.charCodeAt(o+3)],C[s++]=l<<2|d>>4,C[s++]=(d&15)<<4|g>>2,C[s++]=(g&3)<<6|y&63;return b},polyUint16Array=function(t){for(var r=t.length,n=[],o=0;o<r;o+=2)n.push(t[o+1]<<8|t[o]);return n},polyUint32Array=function(t){for(var r=t.length,n=[],o=0;o<r;o+=4)n.push(t[o+3]<<24|t[o+2]<<16|t[o+1]<<8|t[o]);return n},UTRIE2_SHIFT_2=5,UTRIE2_SHIFT_1=6+5,UTRIE2_INDEX_SHIFT=2,UTRIE2_SHIFT_1_2=UTRIE2_SHIFT_1-UTRIE2_SHIFT_2,UTRIE2_LSCP_INDEX_2_OFFSET=65536>>UTRIE2_SHIFT_2,UTRIE2_DATA_BLOCK_LENGTH=1<<UTRIE2_SHIFT_2,UTRIE2_DATA_MASK=UTRIE2_DATA_BLOCK_LENGTH-1,UTRIE2_LSCP_INDEX_2_LENGTH=1024>>UTRIE2_SHIFT_2,UTRIE2_INDEX_2_BMP_LENGTH=UTRIE2_LSCP_INDEX_2_OFFSET+UTRIE2_LSCP_INDEX_2_LENGTH,UTRIE2_UTF8_2B_INDEX_2_OFFSET=UTRIE2_INDEX_2_BMP_LENGTH,UTRIE2_UTF8_2B_INDEX_2_LENGTH=32,UTRIE2_INDEX_1_OFFSET=UTRIE2_UTF8_2B_INDEX_2_OFFSET+UTRIE2_UTF8_2B_INDEX_2_LENGTH,UTRIE2_OMITTED_BMP_INDEX_1_LENGTH=65536>>UTRIE2_SHIFT_1,UTRIE2_INDEX_2_BLOCK_LENGTH=1<<UTRIE2_SHIFT_1_2,UTRIE2_INDEX_2_MASK=UTRIE2_INDEX_2_BLOCK_LENGTH-1,slice16=function(t,r,n){return t.slice?t.slice(r,n):new Uint16Array(Array.prototype.slice.call(t,r,n))},slice32=function(t,r,n){return t.slice?t.slice(r,n):new Uint32Array(Array.prototype.slice.call(t,r,n))},createTrieFromBase64=function(t,r){var n=decode$2(t),o=Array.isArray(n)?polyUint32Array(n):new Uint32Array(n),s=Array.isArray(n)?polyUint16Array(n):new Uint16Array(n),l=24,d=slice16(s,l/2,o[4]/2),g=o[5]===2?slice16(s,(l+o[4])/2):slice32(o,Math.ceil((l+o[4])/4));return new Trie(o[0],o[1],o[2],o[3],d,g)},Trie=function(){function t(r,n,o,s,l,d){this.initialValue=r,this.errorValue=n,this.highStart=o,this.highValueIndex=s,this.index=l,this.data=d}return t.prototype.get=function(r){var n;if(r>=0){if(r<55296||r>56319&&r<=65535)return n=this.index[r>>UTRIE2_SHIFT_2],n=(n<<UTRIE2_INDEX_SHIFT)+(r&UTRIE2_DATA_MASK),this.data[n];if(r<=65535)return n=this.index[UTRIE2_LSCP_INDEX_2_OFFSET+(r-55296>>UTRIE2_SHIFT_2)],n=(n<<UTRIE2_INDEX_SHIFT)+(r&UTRIE2_DATA_MASK),this.data[n];if(r<this.highStart)return n=UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH+(r>>UTRIE2_SHIFT_1),n=this.index[n],n+=r>>UTRIE2_SHIFT_2&UTRIE2_INDEX_2_MASK,n=this.index[n],n=(n<<UTRIE2_INDEX_SHIFT)+(r&UTRIE2_DATA_MASK),this.data[n];if(r<=1114111)return this.data[this.highValueIndex]}return this.errorValue},t}(),chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",lookup=typeof Uint8Array=="undefined"?[]:new Uint8Array(256);for(var i$4=0;i$4<chars.length;i$4++)lookup[chars.charCodeAt(i$4)]=i$4;var Prepend=1,CR=2,LF=3,Control=4,Extend=5,SpacingMark=7,L=8,V=9,T=10,LV=11,LVT=12,ZWJ=13,Extended_Pictographic=14,RI=15,toCodePoints=function(t){for(var r=[],n=0,o=t.length;n<o;){var s=t.charCodeAt(n++);if(s>=55296&&s<=56319&&n<o){var l=t.charCodeAt(n++);(l&64512)===56320?r.push(((s&1023)<<10)+(l&1023)+65536):(r.push(s),n--)}else r.push(s)}return r},fromCodePoint=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(String.fromCodePoint)return String.fromCodePoint.apply(String,t);var n=t.length;if(!n)return"";for(var o=[],s=-1,l="";++s<n;){var d=t[s];d<=65535?o.push(d):(d-=65536,o.push((d>>10)+55296,d%1024+56320)),(s+1===n||o.length>16384)&&(l+=String.fromCharCode.apply(String,o),o.length=0)}return l},UnicodeTrie=createTrieFromBase64(base64),BREAK_NOT_ALLOWED="\xD7",BREAK_ALLOWED="\xF7",codePointToClass=function(t){return UnicodeTrie.get(t)},_graphemeBreakAtIndex=function(t,r,n){var o=n-2,s=r[o],l=r[n-1],d=r[n];if(l===CR&&d===LF)return BREAK_NOT_ALLOWED;if(l===CR||l===LF||l===Control||d===CR||d===LF||d===Control)return BREAK_ALLOWED;if(l===L&&[L,V,LV,LVT].indexOf(d)!==-1||(l===LV||l===V)&&(d===V||d===T)||(l===LVT||l===T)&&d===T||d===ZWJ||d===Extend||d===SpacingMark||l===Prepend)return BREAK_NOT_ALLOWED;if(l===ZWJ&&d===Extended_Pictographic){for(;s===Extend;)s=r[--o];if(s===Extended_Pictographic)return BREAK_NOT_ALLOWED}if(l===RI&&d===RI){for(var g=0;s===RI;)g++,s=r[--o];if(g%2===0)return BREAK_NOT_ALLOWED}return BREAK_ALLOWED},GraphemeBreaker=function(t){var r=toCodePoints(t),n=r.length,o=0,s=0,l=r.map(codePointToClass);return{next:function(){if(o>=n)return{done:!0,value:null};for(var d=BREAK_NOT_ALLOWED;o<n&&(d=_graphemeBreakAtIndex(r,l,++o))===BREAK_NOT_ALLOWED;);if(d!==BREAK_NOT_ALLOWED||o===n){var g=fromCodePoint.apply(null,r.slice(s,o));return s=o,{value:g,done:!1}}return{done:!0,value:null}}}},splitGraphemes=function(t){for(var r=GraphemeBreaker(t),n=[],o;!(o=r.next()).done;)o.value&&n.push(o.value.slice());return n},testRangeBounds=function(t){var r=123;if(t.createRange){var n=t.createRange();if(n.getBoundingClientRect){var o=t.createElement("boundtest");o.style.height=r+"px",o.style.display="block",t.body.appendChild(o),n.selectNode(o);var s=n.getBoundingClientRect(),l=Math.round(s.height);if(t.body.removeChild(o),l===r)return!0}}return!1},testIOSLineBreak=function(t){var r=t.createElement("boundtest");r.style.width="50px",r.style.display="block",r.style.fontSize="12px",r.style.letterSpacing="0px",r.style.wordSpacing="0px",t.body.appendChild(r);var n=t.createRange();r.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var o=r.firstChild,s=toCodePoints$1(o.data).map(function(y){return fromCodePoint$1(y)}),l=0,d={},g=s.every(function(y,b){n.setStart(o,l),n.setEnd(o,l+y.length);var C=n.getBoundingClientRect();l+=y.length;var x=C.x>d.x||C.y>d.y;return d=C,b===0?!0:x});return t.body.removeChild(r),g},testCORS=function(){return typeof new Image().crossOrigin!="undefined"},testResponseType=function(){return typeof new XMLHttpRequest().responseType=="string"},testSVG=function(t){var r=new Image,n=t.createElement("canvas"),o=n.getContext("2d");if(!o)return!1;r.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{o.drawImage(r,0,0),n.toDataURL()}catch(s){return!1}return!0},isGreenPixel=function(t){return t[0]===0&&t[1]===255&&t[2]===0&&t[3]===255},testForeignObject=function(t){var r=t.createElement("canvas"),n=100;r.width=n,r.height=n;var o=r.getContext("2d");if(!o)return Promise.reject(!1);o.fillStyle="rgb(0, 255, 0)",o.fillRect(0,0,n,n);var s=new Image,l=r.toDataURL();s.src=l;var d=createForeignObjectSVG(n,n,0,0,s);return o.fillStyle="red",o.fillRect(0,0,n,n),loadSerializedSVG$1(d).then(function(g){o.drawImage(g,0,0);var y=o.getImageData(0,0,n,n).data;o.fillStyle="red",o.fillRect(0,0,n,n);var b=t.createElement("div");return b.style.backgroundImage="url("+l+")",b.style.height=n+"px",isGreenPixel(y)?loadSerializedSVG$1(createForeignObjectSVG(n,n,0,0,b)):Promise.reject(!1)}).then(function(g){return o.drawImage(g,0,0),isGreenPixel(o.getImageData(0,0,n,n).data)}).catch(function(){return!1})},createForeignObjectSVG=function(t,r,n,o,s){var l="http://www.w3.org/2000/svg",d=document.createElementNS(l,"svg"),g=document.createElementNS(l,"foreignObject");return d.setAttributeNS(null,"width",t.toString()),d.setAttributeNS(null,"height",r.toString()),g.setAttributeNS(null,"width","100%"),g.setAttributeNS(null,"height","100%"),g.setAttributeNS(null,"x",n.toString()),g.setAttributeNS(null,"y",o.toString()),g.setAttributeNS(null,"externalResourcesRequired","true"),d.appendChild(g),g.appendChild(s),d},loadSerializedSVG$1=function(t){return new Promise(function(r,n){var o=new Image;o.onload=function(){return r(o)},o.onerror=n,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},FEATURES={get SUPPORT_RANGE_BOUNDS(){var t=testRangeBounds(document);return Object.defineProperty(FEATURES,"SUPPORT_RANGE_BOUNDS",{value:t}),t},get SUPPORT_WORD_BREAKING(){var t=FEATURES.SUPPORT_RANGE_BOUNDS&&testIOSLineBreak(document);return Object.defineProperty(FEATURES,"SUPPORT_WORD_BREAKING",{value:t}),t},get SUPPORT_SVG_DRAWING(){var t=testSVG(document);return Object.defineProperty(FEATURES,"SUPPORT_SVG_DRAWING",{value:t}),t},get SUPPORT_FOREIGNOBJECT_DRAWING(){var t=typeof Array.from=="function"&&typeof window.fetch=="function"?testForeignObject(document):Promise.resolve(!1);return Object.defineProperty(FEATURES,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:t}),t},get SUPPORT_CORS_IMAGES(){var t=testCORS();return Object.defineProperty(FEATURES,"SUPPORT_CORS_IMAGES",{value:t}),t},get SUPPORT_RESPONSE_TYPE(){var t=testResponseType();return Object.defineProperty(FEATURES,"SUPPORT_RESPONSE_TYPE",{value:t}),t},get SUPPORT_CORS_XHR(){var t="withCredentials"in new XMLHttpRequest;return Object.defineProperty(FEATURES,"SUPPORT_CORS_XHR",{value:t}),t},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var t=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(FEATURES,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:t}),t}},TextBounds=function(){function t(r,n){this.text=r,this.bounds=n}return t}(),parseTextBounds=function(t,r,n,o){var s=breakText(r,n),l=[],d=0;return s.forEach(function(g){if(n.textDecorationLine.length||g.trim().length>0)if(FEATURES.SUPPORT_RANGE_BOUNDS){var y=createRange(o,d,g.length).getClientRects();if(y.length>1){var b=segmentGraphemes(g),C=0;b.forEach(function(S){l.push(new TextBounds(S,Bounds.fromDOMRectList(t,createRange(o,C+d,S.length).getClientRects()))),C+=S.length})}else l.push(new TextBounds(g,Bounds.fromDOMRectList(t,y)))}else{var x=o.splitText(g.length);l.push(new TextBounds(g,getWrapperBounds(t,o))),o=x}else FEATURES.SUPPORT_RANGE_BOUNDS||(o=o.splitText(g.length));d+=g.length}),l},getWrapperBounds=function(t,r){var n=r.ownerDocument;if(n){var o=n.createElement("html2canvaswrapper");o.appendChild(r.cloneNode(!0));var s=r.parentNode;if(s){s.replaceChild(o,r);var l=parseBounds(t,o);return o.firstChild&&s.replaceChild(o.firstChild,o),l}}return Bounds.EMPTY},createRange=function(t,r,n){var o=t.ownerDocument;if(!o)throw new Error("Node has no owner document");var s=o.createRange();return s.setStart(t,r),s.setEnd(t,r+n),s},segmentGraphemes=function(t){if(FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var r=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(r.segment(t)).map(function(n){return n.segment})}return splitGraphemes(t)},segmentWords=function(t,r){if(FEATURES.SUPPORT_NATIVE_TEXT_SEGMENTATION){var n=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(n.segment(t)).map(function(o){return o.segment})}return breakWords(t,r)},breakText=function(t,r){return r.letterSpacing!==0?segmentGraphemes(t):segmentWords(t,r)},wordSeparators=[32,160,4961,65792,65793,4153,4241],breakWords=function(t,r){for(var n=LineBreaker(t,{lineBreak:r.lineBreak,wordBreak:r.overflowWrap==="break-word"?"break-word":r.wordBreak}),o=[],s,l=function(){if(s.value){var d=s.value.slice(),g=toCodePoints$1(d),y="";g.forEach(function(b){wordSeparators.indexOf(b)===-1?y+=fromCodePoint$1(b):(y.length&&o.push(y),o.push(fromCodePoint$1(b)),y="")}),y.length&&o.push(y)}};!(s=n.next()).done;)l();return o},TextContainer=function(){function t(r,n,o){this.text=transform(n.data,o.textTransform),this.textBounds=parseTextBounds(r,this.text,o,n)}return t}(),transform=function(t,r){switch(r){case 1:return t.toLowerCase();case 3:return t.replace(CAPITALIZE,capitalize);case 2:return t.toUpperCase();default:return t}},CAPITALIZE=/(^|\s|:|-|\(|\))([a-z])/g,capitalize=function(t,r,n){return t.length>0?r+n.toUpperCase():t},ImageElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.src=o.currentSrc||o.src,s.intrinsicWidth=o.naturalWidth,s.intrinsicHeight=o.naturalHeight,s.context.cache.addImage(s.src),s}return r}(ElementContainer),CanvasElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.canvas=o,s.intrinsicWidth=o.width,s.intrinsicHeight=o.height,s}return r}(ElementContainer),SVGElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this,l=new XMLSerializer,d=parseBounds(n,o);return o.setAttribute("width",d.width+"px"),o.setAttribute("height",d.height+"px"),s.svg="data:image/svg+xml,"+encodeURIComponent(l.serializeToString(o)),s.intrinsicWidth=o.width.baseVal.value,s.intrinsicHeight=o.height.baseVal.value,s.context.cache.addImage(s.svg),s}return r}(ElementContainer),LIElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.value=o.value,s}return r}(ElementContainer),OLElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.start=o.start,s.reversed=typeof o.reversed=="boolean"&&o.reversed===!0,s}return r}(ElementContainer),CHECKBOX_BORDER_RADIUS=[{type:15,flags:0,unit:"px",number:3}],RADIO_BORDER_RADIUS=[{type:16,flags:0,number:50}],reformatInputBounds=function(t){return t.width>t.height?new Bounds(t.left+(t.width-t.height)/2,t.top,t.height,t.height):t.width<t.height?new Bounds(t.left,t.top+(t.height-t.width)/2,t.width,t.width):t},getInputValue=function(t){var r=t.type===PASSWORD?new Array(t.value.length+1).join("\u2022"):t.value;return r.length===0?t.placeholder||"":r},CHECKBOX="checkbox",RADIO="radio",PASSWORD="password",INPUT_COLOR=707406591,InputElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;switch(s.type=o.type.toLowerCase(),s.checked=o.checked,s.value=getInputValue(o),(s.type===CHECKBOX||s.type===RADIO)&&(s.styles.backgroundColor=3739148031,s.styles.borderTopColor=s.styles.borderRightColor=s.styles.borderBottomColor=s.styles.borderLeftColor=2779096575,s.styles.borderTopWidth=s.styles.borderRightWidth=s.styles.borderBottomWidth=s.styles.borderLeftWidth=1,s.styles.borderTopStyle=s.styles.borderRightStyle=s.styles.borderBottomStyle=s.styles.borderLeftStyle=1,s.styles.backgroundClip=[0],s.styles.backgroundOrigin=[0],s.bounds=reformatInputBounds(s.bounds)),s.type){case CHECKBOX:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=CHECKBOX_BORDER_RADIUS;break;case RADIO:s.styles.borderTopRightRadius=s.styles.borderTopLeftRadius=s.styles.borderBottomRightRadius=s.styles.borderBottomLeftRadius=RADIO_BORDER_RADIUS;break}return s}return r}(ElementContainer),SelectElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this,l=o.options[o.selectedIndex||0];return s.value=l&&l.text||"",s}return r}(ElementContainer),TextareaElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.value=o.value,s}return r}(ElementContainer),IFrameElementContainer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;s.src=o.src,s.width=parseInt(o.width,10)||0,s.height=parseInt(o.height,10)||0,s.backgroundColor=s.styles.backgroundColor;try{if(o.contentWindow&&o.contentWindow.document&&o.contentWindow.document.documentElement){s.tree=parseTree(n,o.contentWindow.document.documentElement);var l=o.contentWindow.document.documentElement?parseColor(n,getComputedStyle(o.contentWindow.document.documentElement).backgroundColor):COLORS.TRANSPARENT,d=o.contentWindow.document.body?parseColor(n,getComputedStyle(o.contentWindow.document.body).backgroundColor):COLORS.TRANSPARENT;s.backgroundColor=isTransparent(l)?isTransparent(d)?s.styles.backgroundColor:d:l}}catch(g){}return s}return r}(ElementContainer),LIST_OWNERS=["OL","UL","MENU"],parseNodeTree=function(t,r,n,o){for(var s=r.firstChild,l=void 0;s;s=l)if(l=s.nextSibling,isTextNode(s)&&s.data.trim().length>0)n.textNodes.push(new TextContainer(t,s,n.styles));else if(isElementNode(s))if(isSlotElement(s)&&s.assignedNodes)s.assignedNodes().forEach(function(g){return parseNodeTree(t,g,n,o)});else{var d=createContainer(t,s);d.styles.isVisible()&&(createsRealStackingContext(s,d,o)?d.flags|=4:createsStackingContext(d.styles)&&(d.flags|=2),LIST_OWNERS.indexOf(s.tagName)!==-1&&(d.flags|=8),n.elements.push(d),s.slot,s.shadowRoot?parseNodeTree(t,s.shadowRoot,d,o):!isTextareaElement(s)&&!isSVGElement(s)&&!isSelectElement(s)&&parseNodeTree(t,s,d,o))}},createContainer=function(t,r){return isImageElement(r)?new ImageElementContainer(t,r):isCanvasElement(r)?new CanvasElementContainer(t,r):isSVGElement(r)?new SVGElementContainer(t,r):isLIElement(r)?new LIElementContainer(t,r):isOLElement(r)?new OLElementContainer(t,r):isInputElement(r)?new InputElementContainer(t,r):isSelectElement(r)?new SelectElementContainer(t,r):isTextareaElement(r)?new TextareaElementContainer(t,r):isIFrameElement(r)?new IFrameElementContainer(t,r):new ElementContainer(t,r)},parseTree=function(t,r){var n=createContainer(t,r);return n.flags|=4,parseNodeTree(t,r,n,n),n},createsRealStackingContext=function(t,r,n){return r.styles.isPositionedWithZIndex()||r.styles.opacity<1||r.styles.isTransformed()||isBodyElement(t)&&n.styles.isTransparent()},createsStackingContext=function(t){return t.isPositioned()||t.isFloating()},isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},isHTMLElementNode=function(t){return isElementNode(t)&&typeof t.style!="undefined"&&!isSVGElementNode(t)},isSVGElementNode=function(t){return typeof t.className=="object"},isLIElement=function(t){return t.tagName==="LI"},isOLElement=function(t){return t.tagName==="OL"},isInputElement=function(t){return t.tagName==="INPUT"},isHTMLElement=function(t){return t.tagName==="HTML"},isSVGElement=function(t){return t.tagName==="svg"},isBodyElement=function(t){return t.tagName==="BODY"},isCanvasElement=function(t){return t.tagName==="CANVAS"},isVideoElement=function(t){return t.tagName==="VIDEO"},isImageElement=function(t){return t.tagName==="IMG"},isIFrameElement=function(t){return t.tagName==="IFRAME"},isStyleElement=function(t){return t.tagName==="STYLE"},isScriptElement=function(t){return t.tagName==="SCRIPT"},isTextareaElement=function(t){return t.tagName==="TEXTAREA"},isSelectElement=function(t){return t.tagName==="SELECT"},isSlotElement=function(t){return t.tagName==="SLOT"},isCustomElement=function(t){return t.tagName.indexOf("-")>0},CounterState=function(){function t(){this.counters={}}return t.prototype.getCounterValue=function(r){var n=this.counters[r];return n&&n.length?n[n.length-1]:1},t.prototype.getCounterValues=function(r){var n=this.counters[r];return n||[]},t.prototype.pop=function(r){var n=this;r.forEach(function(o){return n.counters[o].pop()})},t.prototype.parse=function(r){var n=this,o=r.counterIncrement,s=r.counterReset,l=!0;o!==null&&o.forEach(function(g){var y=n.counters[g.counter];y&&g.increment!==0&&(l=!1,y.length||y.push(1),y[Math.max(0,y.length-1)]+=g.increment)});var d=[];return l&&s.forEach(function(g){var y=n.counters[g.counter];d.push(g.counter),y||(y=n.counters[g.counter]=[]),y.push(g.reset)}),d},t}(),ROMAN_UPPER={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"]},ARMENIAN={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"]},HEBREW={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"]},GEORGIAN={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"]},createAdditiveCounter=function(t,r,n,o,s,l){return t<r||t>n?createCounterText(t,s,l.length>0):o.integers.reduce(function(d,g,y){for(;t>=g;)t-=g,d+=o.values[y];return d},"")+l},createCounterStyleWithSymbolResolver=function(t,r,n,o){var s="";do n||t--,s=o(t)+s,t/=r;while(t*r>=r);return s},createCounterStyleFromRange=function(t,r,n,o,s){var l=n-r+1;return(t<0?"-":"")+(createCounterStyleWithSymbolResolver(Math.abs(t),l,o,function(d){return fromCodePoint$1(Math.floor(d%l)+r)})+s)},createCounterStyleFromSymbols=function(t,r,n){n===void 0&&(n=". ");var o=r.length;return createCounterStyleWithSymbolResolver(Math.abs(t),o,!1,function(s){return r[Math.floor(s%o)]})+n},CJK_ZEROS=1<<0,CJK_TEN_COEFFICIENTS=1<<1,CJK_TEN_HIGH_COEFFICIENTS=1<<2,CJK_HUNDRED_COEFFICIENTS=1<<3,createCJKCounter=function(t,r,n,o,s,l){if(t<-9999||t>9999)return createCounterText(t,4,s.length>0);var d=Math.abs(t),g=s;if(d===0)return r[0]+g;for(var y=0;d>0&&y<=4;y++){var b=d%10;b===0&&contains(l,CJK_ZEROS)&&g!==""?g=r[b]+g:b>1||b===1&&y===0||b===1&&y===1&&contains(l,CJK_TEN_COEFFICIENTS)||b===1&&y===1&&contains(l,CJK_TEN_HIGH_COEFFICIENTS)&&t>100||b===1&&y>1&&contains(l,CJK_HUNDRED_COEFFICIENTS)?g=r[b]+(y>0?n[y-1]:"")+g:b===1&&y>0&&(g=n[y-1]+g),d=Math.floor(d/10)}return(t<0?o:"")+g},CHINESE_INFORMAL_MULTIPLIERS="\u5341\u767E\u5343\u842C",CHINESE_FORMAL_MULTIPLIERS="\u62FE\u4F70\u4EDF\u842C",JAPANESE_NEGATIVE="\u30DE\u30A4\u30CA\u30B9",KOREAN_NEGATIVE="\uB9C8\uC774\uB108\uC2A4",createCounterText=function(t,r,n){var o=n?". ":"",s=n?"\u3001":"",l=n?", ":"",d=n?" ":"";switch(r){case 0:return"\u2022"+d;case 1:return"\u25E6"+d;case 2:return"\u25FE"+d;case 5:var g=createCounterStyleFromRange(t,48,57,!0,o);return g.length<4?"0"+g:g;case 4:return createCounterStyleFromSymbols(t,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",s);case 6:return createAdditiveCounter(t,1,3999,ROMAN_UPPER,3,o).toLowerCase();case 7:return createAdditiveCounter(t,1,3999,ROMAN_UPPER,3,o);case 8:return createCounterStyleFromRange(t,945,969,!1,o);case 9:return createCounterStyleFromRange(t,97,122,!1,o);case 10:return createCounterStyleFromRange(t,65,90,!1,o);case 11:return createCounterStyleFromRange(t,1632,1641,!0,o);case 12:case 49:return createAdditiveCounter(t,1,9999,ARMENIAN,3,o);case 35:return createAdditiveCounter(t,1,9999,ARMENIAN,3,o).toLowerCase();case 13:return createCounterStyleFromRange(t,2534,2543,!0,o);case 14:case 30:return createCounterStyleFromRange(t,6112,6121,!0,o);case 15:return createCounterStyleFromSymbols(t,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",s);case 16:return createCounterStyleFromSymbols(t,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",s);case 17:case 48:return createCJKCounter(t,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",CHINESE_INFORMAL_MULTIPLIERS,"\u8CA0",s,CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 47:return createCJKCounter(t,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",CHINESE_FORMAL_MULTIPLIERS,"\u8CA0",s,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 42:return createCJKCounter(t,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",CHINESE_INFORMAL_MULTIPLIERS,"\u8D1F",s,CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 41:return createCJKCounter(t,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",CHINESE_FORMAL_MULTIPLIERS,"\u8D1F",s,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS|CJK_HUNDRED_COEFFICIENTS);case 26:return createCJKCounter(t,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",JAPANESE_NEGATIVE,s,0);case 25:return createCJKCounter(t,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",JAPANESE_NEGATIVE,s,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 31:return createCJKCounter(t,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",KOREAN_NEGATIVE,l,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 33:return createCJKCounter(t,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",KOREAN_NEGATIVE,l,0);case 32:return createCJKCounter(t,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",KOREAN_NEGATIVE,l,CJK_ZEROS|CJK_TEN_COEFFICIENTS|CJK_TEN_HIGH_COEFFICIENTS);case 18:return createCounterStyleFromRange(t,2406,2415,!0,o);case 20:return createAdditiveCounter(t,1,19999,GEORGIAN,3,o);case 21:return createCounterStyleFromRange(t,2790,2799,!0,o);case 22:return createCounterStyleFromRange(t,2662,2671,!0,o);case 22:return createAdditiveCounter(t,1,10999,HEBREW,3,o);case 23:return createCounterStyleFromSymbols(t,"\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 createCounterStyleFromSymbols(t,"\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 createCounterStyleFromRange(t,3302,3311,!0,o);case 28:return createCounterStyleFromSymbols(t,"\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",s);case 29:return createCounterStyleFromSymbols(t,"\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",s);case 34:return createCounterStyleFromRange(t,3792,3801,!0,o);case 37:return createCounterStyleFromRange(t,6160,6169,!0,o);case 38:return createCounterStyleFromRange(t,4160,4169,!0,o);case 39:return createCounterStyleFromRange(t,2918,2927,!0,o);case 40:return createCounterStyleFromRange(t,1776,1785,!0,o);case 43:return createCounterStyleFromRange(t,3046,3055,!0,o);case 44:return createCounterStyleFromRange(t,3174,3183,!0,o);case 45:return createCounterStyleFromRange(t,3664,3673,!0,o);case 46:return createCounterStyleFromRange(t,3872,3881,!0,o);case 3:default:return createCounterStyleFromRange(t,48,57,!0,o)}},IGNORE_ATTRIBUTE="data-html2canvas-ignore",DocumentCloner=function(){function t(r,n,o){if(this.context=r,this.options=o,this.scrolledElements=[],this.referenceElement=n,this.counters=new CounterState,this.quoteDepth=0,!n.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(n.ownerDocument.documentElement,!1)}return t.prototype.toIFrame=function(r,n){var o=this,s=createIFrameContainer(r,n);if(!s.contentWindow)return Promise.reject("Unable to find iframe window");var l=r.defaultView.pageXOffset,d=r.defaultView.pageYOffset,g=s.contentWindow,y=g.document,b=iframeLoader(s).then(function(){return __awaiter(o,void 0,void 0,function(){var C,x;return __generator(this,function(S){switch(S.label){case 0:return this.scrolledElements.forEach(restoreNodeScroll),g&&(g.scrollTo(n.left,n.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(g.scrollY!==n.top||g.scrollX!==n.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(g.scrollX-n.left,g.scrollY-n.top,0,0))),C=this.options.onclone,x=this.clonedReferenceElement,typeof x=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:y.fonts&&y.fonts.ready?[4,y.fonts.ready]:[3,2];case 1:S.sent(),S.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,imagesReady(y)]:[3,4];case 3:S.sent(),S.label=4;case 4:return typeof C=="function"?[2,Promise.resolve().then(function(){return C(y,x)}).then(function(){return s})]:[2,s]}})})});return y.open(),y.write(serializeDoctype(document.doctype)+"<html></html>"),restoreOwnerScroll(this.referenceElement.ownerDocument,l,d),y.replaceChild(y.adoptNode(this.documentElement),y.documentElement),y.close(),b},t.prototype.createElementClone=function(r){if(isDebugging(r,2))debugger;if(isCanvasElement(r))return this.createCanvasClone(r);if(isVideoElement(r))return this.createVideoClone(r);if(isStyleElement(r))return this.createStyleClone(r);var n=r.cloneNode(!1);return isImageElement(n)&&(isImageElement(r)&&r.currentSrc&&r.currentSrc!==r.src&&(n.src=r.currentSrc,n.srcset=""),n.loading==="lazy"&&(n.loading="eager")),isCustomElement(n)?this.createCustomElementClone(n):n},t.prototype.createCustomElementClone=function(r){var n=document.createElement("html2canvascustomelement");return copyCSSStyles(r.style,n),n},t.prototype.createStyleClone=function(r){try{var n=r.sheet;if(n&&n.cssRules){var o=[].slice.call(n.cssRules,0).reduce(function(l,d){return d&&typeof d.cssText=="string"?l+d.cssText:l},""),s=r.cloneNode(!1);return s.textContent=o,s}}catch(l){if(this.context.logger.error("Unable to access cssRules property",l),l.name!=="SecurityError")throw l}return r.cloneNode(!1)},t.prototype.createCanvasClone=function(r){var n;if(this.options.inlineImages&&r.ownerDocument){var o=r.ownerDocument.createElement("img");try{return o.src=r.toDataURL(),o}catch(b){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",r)}}var s=r.cloneNode(!1);try{s.width=r.width,s.height=r.height;var l=r.getContext("2d"),d=s.getContext("2d");if(d)if(!this.options.allowTaint&&l)d.putImageData(l.getImageData(0,0,r.width,r.height),0,0);else{var g=(n=r.getContext("webgl2"))!==null&&n!==void 0?n:r.getContext("webgl");if(g){var y=g.getContextAttributes();(y==null?void 0:y.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",r)}d.drawImage(r,0,0)}return s}catch(b){this.context.logger.info("Unable to clone canvas as it is tainted",r)}return s},t.prototype.createVideoClone=function(r){var n=r.ownerDocument.createElement("canvas");n.width=r.offsetWidth,n.height=r.offsetHeight;var o=n.getContext("2d");try{return o&&(o.drawImage(r,0,0,n.width,n.height),this.options.allowTaint||o.getImageData(0,0,n.width,n.height)),n}catch(l){this.context.logger.info("Unable to clone video as it is tainted",r)}var s=r.ownerDocument.createElement("canvas");return s.width=r.offsetWidth,s.height=r.offsetHeight,s},t.prototype.appendChildNode=function(r,n,o){(!isElementNode(n)||!isScriptElement(n)&&!n.hasAttribute(IGNORE_ATTRIBUTE)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(n)))&&(!this.options.copyStyles||!isElementNode(n)||!isStyleElement(n))&&r.appendChild(this.cloneNode(n,o))},t.prototype.cloneChildNodes=function(r,n,o){for(var s=this,l=r.shadowRoot?r.shadowRoot.firstChild:r.firstChild;l;l=l.nextSibling)if(isElementNode(l)&&isSlotElement(l)&&typeof l.assignedNodes=="function"){var d=l.assignedNodes();d.length&&d.forEach(function(g){return s.appendChildNode(n,g,o)})}else this.appendChildNode(n,l,o)},t.prototype.cloneNode=function(r,n){if(isTextNode(r))return document.createTextNode(r.data);if(!r.ownerDocument)return r.cloneNode(!1);var o=r.ownerDocument.defaultView;if(o&&isElementNode(r)&&(isHTMLElementNode(r)||isSVGElementNode(r))){var s=this.createElementClone(r);s.style.transitionProperty="none";var l=o.getComputedStyle(r),d=o.getComputedStyle(r,":before"),g=o.getComputedStyle(r,":after");this.referenceElement===r&&isHTMLElementNode(s)&&(this.clonedReferenceElement=s),isBodyElement(s)&&createPseudoHideStyles(s);var y=this.counters.parse(new CSSParsedCounterDeclaration(this.context,l)),b=this.resolvePseudoContent(r,s,d,PseudoElementType.BEFORE);isCustomElement(r)&&(n=!0),isVideoElement(r)||this.cloneChildNodes(r,s,n),b&&s.insertBefore(b,s.firstChild);var C=this.resolvePseudoContent(r,s,g,PseudoElementType.AFTER);return C&&s.appendChild(C),this.counters.pop(y),(l&&(this.options.copyStyles||isSVGElementNode(r))&&!isIFrameElement(r)||n)&©CSSStyles(l,s),(r.scrollTop!==0||r.scrollLeft!==0)&&this.scrolledElements.push([s,r.scrollLeft,r.scrollTop]),(isTextareaElement(r)||isSelectElement(r))&&(isTextareaElement(s)||isSelectElement(s))&&(s.value=r.value),s}return r.cloneNode(!1)},t.prototype.resolvePseudoContent=function(r,n,o,s){var l=this;if(!!o){var d=o.content,g=n.ownerDocument;if(!(!g||!d||d==="none"||d==="-moz-alt-content"||o.display==="none")){this.counters.parse(new CSSParsedCounterDeclaration(this.context,o));var y=new CSSParsedPseudoDeclaration(this.context,o),b=g.createElement("html2canvaspseudoelement");copyCSSStyles(o,b),y.content.forEach(function(x){if(x.type===0)b.appendChild(g.createTextNode(x.value));else if(x.type===22){var S=g.createElement("img");S.src=x.value,S.style.opacity="1",b.appendChild(S)}else if(x.type===18){if(x.name==="attr"){var _=x.values.filter(isIdentToken);_.length&&b.appendChild(g.createTextNode(r.getAttribute(_[0].value)||""))}else if(x.name==="counter"){var w=x.values.filter(nonFunctionArgSeparator),$=w[0],I=w[1];if($&&isIdentToken($)){var B=l.counters.getCounterValue($.value),R=I&&isIdentToken(I)?listStyleType.parse(l.context,I.value):3;b.appendChild(g.createTextNode(createCounterText(B,R,!1)))}}else if(x.name==="counters"){var P=x.values.filter(nonFunctionArgSeparator),$=P[0],M=P[1],I=P[2];if($&&isIdentToken($)){var O=l.counters.getCounterValues($.value),D=I&&isIdentToken(I)?listStyleType.parse(l.context,I.value):3,N=M&&M.type===0?M.value:"",H=O.map(function(K){return createCounterText(K,D,!1)}).join(N);b.appendChild(g.createTextNode(H))}}}else if(x.type===20)switch(x.value){case"open-quote":b.appendChild(g.createTextNode(getQuote(y.quotes,l.quoteDepth++,!0)));break;case"close-quote":b.appendChild(g.createTextNode(getQuote(y.quotes,--l.quoteDepth,!1)));break;default:b.appendChild(g.createTextNode(x.value))}}),b.className=PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+PSEUDO_HIDE_ELEMENT_CLASS_AFTER;var C=s===PseudoElementType.BEFORE?" "+PSEUDO_HIDE_ELEMENT_CLASS_BEFORE:" "+PSEUDO_HIDE_ELEMENT_CLASS_AFTER;return isSVGElementNode(n)?n.className.baseValue+=C:n.className+=C,b}}},t.destroy=function(r){return r.parentNode?(r.parentNode.removeChild(r),!0):!1},t}(),PseudoElementType;(function(t){t[t.BEFORE=0]="BEFORE",t[t.AFTER=1]="AFTER"})(PseudoElementType||(PseudoElementType={}));var createIFrameContainer=function(t,r){var n=t.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=r.width.toString(),n.height=r.height.toString(),n.scrolling="no",n.setAttribute(IGNORE_ATTRIBUTE,"true"),t.body.appendChild(n),n},imageReady=function(t){return new Promise(function(r){if(t.complete){r();return}if(!t.src){r();return}t.onload=r,t.onerror=r})},imagesReady=function(t){return Promise.all([].slice.call(t.images,0).map(imageReady))},iframeLoader=function(t){return new Promise(function(r,n){var o=t.contentWindow;if(!o)return n("No window assigned for iframe");var s=o.document;o.onload=t.onload=function(){o.onload=t.onload=null;var l=setInterval(function(){s.body.childNodes.length>0&&s.readyState==="complete"&&(clearInterval(l),r(t))},50)}})},ignoredStyleProperties=["all","d","content"],copyCSSStyles=function(t,r){for(var n=t.length-1;n>=0;n--){var o=t.item(n);ignoredStyleProperties.indexOf(o)===-1&&r.style.setProperty(o,t.getPropertyValue(o))}return r},serializeDoctype=function(t){var r="";return t&&(r+="<!DOCTYPE ",t.name&&(r+=t.name),t.internalSubset&&(r+=t.internalSubset),t.publicId&&(r+='"'+t.publicId+'"'),t.systemId&&(r+='"'+t.systemId+'"'),r+=">"),r},restoreOwnerScroll=function(t,r,n){t&&t.defaultView&&(r!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)&&t.defaultView.scrollTo(r,n)},restoreNodeScroll=function(t){var r=t[0],n=t[1],o=t[2];r.scrollLeft=n,r.scrollTop=o},PSEUDO_BEFORE=":before",PSEUDO_AFTER=":after",PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before",PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after",PSEUDO_HIDE_ELEMENT_STYLE=`{
|
|
content: "" !important;
|
|
display: none !important;
|
|
}`,createPseudoHideStyles=function(t){createStyles(t,"."+PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+PSEUDO_BEFORE+PSEUDO_HIDE_ELEMENT_STYLE+`
|
|
.`+PSEUDO_HIDE_ELEMENT_CLASS_AFTER+PSEUDO_AFTER+PSEUDO_HIDE_ELEMENT_STYLE)},createStyles=function(t,r){var n=t.ownerDocument;if(n){var o=n.createElement("style");o.textContent=r,t.appendChild(o)}},CacheStorage=function(){function t(){}return t.getOrigin=function(r){var n=t._link;return n?(n.href=r,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},t.isSameOrigin=function(r){return t.getOrigin(r)===t._origin},t.setContext=function(r){t._link=r.document.createElement("a"),t._origin=t.getOrigin(r.location.href)},t._origin="about:blank",t}(),Cache=function(){function t(r,n){this.context=r,this._options=n,this._cache={}}return t.prototype.addImage=function(r){var n=Promise.resolve();return this.has(r)||(isBlobImage(r)||isRenderable(r))&&(this._cache[r]=this.loadImage(r)).catch(function(){}),n},t.prototype.match=function(r){return this._cache[r]},t.prototype.loadImage=function(r){return __awaiter(this,void 0,void 0,function(){var n,o,s,l,d=this;return __generator(this,function(g){switch(g.label){case 0:return n=CacheStorage.isSameOrigin(r),o=!isInlineImage(r)&&this._options.useCORS===!0&&FEATURES.SUPPORT_CORS_IMAGES&&!n,s=!isInlineImage(r)&&!n&&!isBlobImage(r)&&typeof this._options.proxy=="string"&&FEATURES.SUPPORT_CORS_XHR&&!o,!n&&this._options.allowTaint===!1&&!isInlineImage(r)&&!isBlobImage(r)&&!s&&!o?[2]:(l=r,s?[4,this.proxy(l)]:[3,2]);case 1:l=g.sent(),g.label=2;case 2:return this.context.logger.debug("Added image "+r.substring(0,256)),[4,new Promise(function(y,b){var C=new Image;C.onload=function(){return y(C)},C.onerror=b,(isInlineBase64Image(l)||o)&&(C.crossOrigin="anonymous"),C.src=l,C.complete===!0&&setTimeout(function(){return y(C)},500),d._options.imageTimeout>0&&setTimeout(function(){return b("Timed out ("+d._options.imageTimeout+"ms) loading image")},d._options.imageTimeout)})];case 3:return[2,g.sent()]}})})},t.prototype.has=function(r){return typeof this._cache[r]!="undefined"},t.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},t.prototype.proxy=function(r){var n=this,o=this._options.proxy;if(!o)throw new Error("No proxy defined");var s=r.substring(0,256);return new Promise(function(l,d){var g=FEATURES.SUPPORT_RESPONSE_TYPE?"blob":"text",y=new XMLHttpRequest;y.onload=function(){if(y.status===200)if(g==="text")l(y.response);else{var x=new FileReader;x.addEventListener("load",function(){return l(x.result)},!1),x.addEventListener("error",function(S){return d(S)},!1),x.readAsDataURL(y.response)}else d("Failed to proxy resource "+s+" with status code "+y.status)},y.onerror=d;var b=o.indexOf("?")>-1?"&":"?";if(y.open("GET",""+o+b+"url="+encodeURIComponent(r)+"&responseType="+g),g!=="text"&&y instanceof XMLHttpRequest&&(y.responseType=g),n._options.imageTimeout){var C=n._options.imageTimeout;y.timeout=C,y.ontimeout=function(){return d("Timed out ("+C+"ms) proxying "+s)}}y.send()})},t}(),INLINE_SVG=/^data:image\/svg\+xml/i,INLINE_BASE64=/^data:image\/.*;base64,/i,INLINE_IMG=/^data:image\/.*/i,isRenderable=function(t){return FEATURES.SUPPORT_SVG_DRAWING||!isSVG(t)},isInlineImage=function(t){return INLINE_IMG.test(t)},isInlineBase64Image=function(t){return INLINE_BASE64.test(t)},isBlobImage=function(t){return t.substr(0,4)==="blob"},isSVG=function(t){return t.substr(-3).toLowerCase()==="svg"||INLINE_SVG.test(t)},Vector=function(){function t(r,n){this.type=0,this.x=r,this.y=n}return t.prototype.add=function(r,n){return new t(this.x+r,this.y+n)},t}(),lerp$2=function(t,r,n){return new Vector(t.x+(r.x-t.x)*n,t.y+(r.y-t.y)*n)},BezierCurve$2=function(){function t(r,n,o,s){this.type=1,this.start=r,this.startControl=n,this.endControl=o,this.end=s}return t.prototype.subdivide=function(r,n){var o=lerp$2(this.start,this.startControl,r),s=lerp$2(this.startControl,this.endControl,r),l=lerp$2(this.endControl,this.end,r),d=lerp$2(o,s,r),g=lerp$2(s,l,r),y=lerp$2(d,g,r);return n?new t(this.start,o,d,y):new t(y,g,l,this.end)},t.prototype.add=function(r,n){return new t(this.start.add(r,n),this.startControl.add(r,n),this.endControl.add(r,n),this.end.add(r,n))},t.prototype.reverse=function(){return new t(this.end,this.endControl,this.startControl,this.start)},t}(),isBezierCurve=function(t){return t.type===1},BoundCurves=function(){function t(r){var n=r.styles,o=r.bounds,s=getAbsoluteValueForTuple(n.borderTopLeftRadius,o.width,o.height),l=s[0],d=s[1],g=getAbsoluteValueForTuple(n.borderTopRightRadius,o.width,o.height),y=g[0],b=g[1],C=getAbsoluteValueForTuple(n.borderBottomRightRadius,o.width,o.height),x=C[0],S=C[1],_=getAbsoluteValueForTuple(n.borderBottomLeftRadius,o.width,o.height),w=_[0],$=_[1],I=[];I.push((l+y)/o.width),I.push((w+x)/o.width),I.push((d+$)/o.height),I.push((b+S)/o.height);var B=Math.max.apply(Math,I);B>1&&(l/=B,d/=B,y/=B,b/=B,x/=B,S/=B,w/=B,$/=B);var R=o.width-y,P=o.height-S,M=o.width-x,O=o.height-$,D=n.borderTopWidth,N=n.borderRightWidth,H=n.borderBottomWidth,Q=n.borderLeftWidth,G=getAbsoluteValue(n.paddingTop,r.bounds.width),K=getAbsoluteValue(n.paddingRight,r.bounds.width),W=getAbsoluteValue(n.paddingBottom,r.bounds.width),j=getAbsoluteValue(n.paddingLeft,r.bounds.width);this.topLeftBorderDoubleOuterBox=l>0||d>0?getCurvePoints(o.left+Q/3,o.top+D/3,l-Q/3,d-D/3,CORNER.TOP_LEFT):new Vector(o.left+Q/3,o.top+D/3),this.topRightBorderDoubleOuterBox=l>0||d>0?getCurvePoints(o.left+R,o.top+D/3,y-N/3,b-D/3,CORNER.TOP_RIGHT):new Vector(o.left+o.width-N/3,o.top+D/3),this.bottomRightBorderDoubleOuterBox=x>0||S>0?getCurvePoints(o.left+M,o.top+P,x-N/3,S-H/3,CORNER.BOTTOM_RIGHT):new Vector(o.left+o.width-N/3,o.top+o.height-H/3),this.bottomLeftBorderDoubleOuterBox=w>0||$>0?getCurvePoints(o.left+Q/3,o.top+O,w-Q/3,$-H/3,CORNER.BOTTOM_LEFT):new Vector(o.left+Q/3,o.top+o.height-H/3),this.topLeftBorderDoubleInnerBox=l>0||d>0?getCurvePoints(o.left+Q*2/3,o.top+D*2/3,l-Q*2/3,d-D*2/3,CORNER.TOP_LEFT):new Vector(o.left+Q*2/3,o.top+D*2/3),this.topRightBorderDoubleInnerBox=l>0||d>0?getCurvePoints(o.left+R,o.top+D*2/3,y-N*2/3,b-D*2/3,CORNER.TOP_RIGHT):new Vector(o.left+o.width-N*2/3,o.top+D*2/3),this.bottomRightBorderDoubleInnerBox=x>0||S>0?getCurvePoints(o.left+M,o.top+P,x-N*2/3,S-H*2/3,CORNER.BOTTOM_RIGHT):new Vector(o.left+o.width-N*2/3,o.top+o.height-H*2/3),this.bottomLeftBorderDoubleInnerBox=w>0||$>0?getCurvePoints(o.left+Q*2/3,o.top+O,w-Q*2/3,$-H*2/3,CORNER.BOTTOM_LEFT):new Vector(o.left+Q*2/3,o.top+o.height-H*2/3),this.topLeftBorderStroke=l>0||d>0?getCurvePoints(o.left+Q/2,o.top+D/2,l-Q/2,d-D/2,CORNER.TOP_LEFT):new Vector(o.left+Q/2,o.top+D/2),this.topRightBorderStroke=l>0||d>0?getCurvePoints(o.left+R,o.top+D/2,y-N/2,b-D/2,CORNER.TOP_RIGHT):new Vector(o.left+o.width-N/2,o.top+D/2),this.bottomRightBorderStroke=x>0||S>0?getCurvePoints(o.left+M,o.top+P,x-N/2,S-H/2,CORNER.BOTTOM_RIGHT):new Vector(o.left+o.width-N/2,o.top+o.height-H/2),this.bottomLeftBorderStroke=w>0||$>0?getCurvePoints(o.left+Q/2,o.top+O,w-Q/2,$-H/2,CORNER.BOTTOM_LEFT):new Vector(o.left+Q/2,o.top+o.height-H/2),this.topLeftBorderBox=l>0||d>0?getCurvePoints(o.left,o.top,l,d,CORNER.TOP_LEFT):new Vector(o.left,o.top),this.topRightBorderBox=y>0||b>0?getCurvePoints(o.left+R,o.top,y,b,CORNER.TOP_RIGHT):new Vector(o.left+o.width,o.top),this.bottomRightBorderBox=x>0||S>0?getCurvePoints(o.left+M,o.top+P,x,S,CORNER.BOTTOM_RIGHT):new Vector(o.left+o.width,o.top+o.height),this.bottomLeftBorderBox=w>0||$>0?getCurvePoints(o.left,o.top+O,w,$,CORNER.BOTTOM_LEFT):new Vector(o.left,o.top+o.height),this.topLeftPaddingBox=l>0||d>0?getCurvePoints(o.left+Q,o.top+D,Math.max(0,l-Q),Math.max(0,d-D),CORNER.TOP_LEFT):new Vector(o.left+Q,o.top+D),this.topRightPaddingBox=y>0||b>0?getCurvePoints(o.left+Math.min(R,o.width-N),o.top+D,R>o.width+N?0:Math.max(0,y-N),Math.max(0,b-D),CORNER.TOP_RIGHT):new Vector(o.left+o.width-N,o.top+D),this.bottomRightPaddingBox=x>0||S>0?getCurvePoints(o.left+Math.min(M,o.width-Q),o.top+Math.min(P,o.height-H),Math.max(0,x-N),Math.max(0,S-H),CORNER.BOTTOM_RIGHT):new Vector(o.left+o.width-N,o.top+o.height-H),this.bottomLeftPaddingBox=w>0||$>0?getCurvePoints(o.left+Q,o.top+Math.min(O,o.height-H),Math.max(0,w-Q),Math.max(0,$-H),CORNER.BOTTOM_LEFT):new Vector(o.left+Q,o.top+o.height-H),this.topLeftContentBox=l>0||d>0?getCurvePoints(o.left+Q+j,o.top+D+G,Math.max(0,l-(Q+j)),Math.max(0,d-(D+G)),CORNER.TOP_LEFT):new Vector(o.left+Q+j,o.top+D+G),this.topRightContentBox=y>0||b>0?getCurvePoints(o.left+Math.min(R,o.width+Q+j),o.top+D+G,R>o.width+Q+j?0:y-Q+j,b-(D+G),CORNER.TOP_RIGHT):new Vector(o.left+o.width-(N+K),o.top+D+G),this.bottomRightContentBox=x>0||S>0?getCurvePoints(o.left+Math.min(M,o.width-(Q+j)),o.top+Math.min(P,o.height+D+G),Math.max(0,x-(N+K)),S-(H+W),CORNER.BOTTOM_RIGHT):new Vector(o.left+o.width-(N+K),o.top+o.height-(H+W)),this.bottomLeftContentBox=w>0||$>0?getCurvePoints(o.left+Q+j,o.top+O,Math.max(0,w-(Q+j)),$-(H+W),CORNER.BOTTOM_LEFT):new Vector(o.left+Q+j,o.top+o.height-(H+W))}return t}(),CORNER;(function(t){t[t.TOP_LEFT=0]="TOP_LEFT",t[t.TOP_RIGHT=1]="TOP_RIGHT",t[t.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",t[t.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(CORNER||(CORNER={}));var getCurvePoints=function(t,r,n,o,s){var l=4*((Math.sqrt(2)-1)/3),d=n*l,g=o*l,y=t+n,b=r+o;switch(s){case CORNER.TOP_LEFT:return new BezierCurve$2(new Vector(t,b),new Vector(t,b-g),new Vector(y-d,r),new Vector(y,r));case CORNER.TOP_RIGHT:return new BezierCurve$2(new Vector(t,r),new Vector(t+d,r),new Vector(y,b-g),new Vector(y,b));case CORNER.BOTTOM_RIGHT:return new BezierCurve$2(new Vector(y,r),new Vector(y,r+g),new Vector(t+d,b),new Vector(t,b));case CORNER.BOTTOM_LEFT:default:return new BezierCurve$2(new Vector(y,b),new Vector(y-d,b),new Vector(t,r+g),new Vector(t,r))}},calculateBorderBoxPath=function(t){return[t.topLeftBorderBox,t.topRightBorderBox,t.bottomRightBorderBox,t.bottomLeftBorderBox]},calculateContentBoxPath=function(t){return[t.topLeftContentBox,t.topRightContentBox,t.bottomRightContentBox,t.bottomLeftContentBox]},calculatePaddingBoxPath=function(t){return[t.topLeftPaddingBox,t.topRightPaddingBox,t.bottomRightPaddingBox,t.bottomLeftPaddingBox]},TransformEffect=function(){function t(r,n,o){this.offsetX=r,this.offsetY=n,this.matrix=o,this.type=0,this.target=6}return t}(),ClipEffect=function(){function t(r,n){this.path=r,this.target=n,this.type=1}return t}(),OpacityEffect=function(){function t(r){this.opacity=r,this.type=2,this.target=6}return t}(),isTransformEffect=function(t){return t.type===0},isClipEffect=function(t){return t.type===1},isOpacityEffect=function(t){return t.type===2},equalPath=function(t,r){return t.length===r.length?t.some(function(n,o){return n===r[o]}):!1},transformPath$1=function(t,r,n,o,s){return t.map(function(l,d){switch(d){case 0:return l.add(r,n);case 1:return l.add(r+o,n);case 2:return l.add(r+o,n+s);case 3:return l.add(r,n+s)}return l})},StackingContext=function(){function t(r){this.element=r,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return t}(),ElementPaint=function(){function t(r,n){if(this.container=r,this.parent=n,this.effects=[],this.curves=new BoundCurves(this.container),this.container.styles.opacity<1&&this.effects.push(new OpacityEffect(this.container.styles.opacity)),this.container.styles.transform!==null){var o=this.container.bounds.left+this.container.styles.transformOrigin[0].number,s=this.container.bounds.top+this.container.styles.transformOrigin[1].number,l=this.container.styles.transform;this.effects.push(new TransformEffect(o,s,l))}if(this.container.styles.overflowX!==0){var d=calculateBorderBoxPath(this.curves),g=calculatePaddingBoxPath(this.curves);equalPath(d,g)?this.effects.push(new ClipEffect(d,6)):(this.effects.push(new ClipEffect(d,2)),this.effects.push(new ClipEffect(g,4)))}}return t.prototype.getEffects=function(r){for(var n=[2,3].indexOf(this.container.styles.position)===-1,o=this.parent,s=this.effects.slice(0);o;){var l=o.effects.filter(function(y){return!isClipEffect(y)});if(n||o.container.styles.position!==0||!o.parent){if(s.unshift.apply(s,l),n=[2,3].indexOf(o.container.styles.position)===-1,o.container.styles.overflowX!==0){var d=calculateBorderBoxPath(o.curves),g=calculatePaddingBoxPath(o.curves);equalPath(d,g)||s.unshift(new ClipEffect(g,6))}}else s.unshift.apply(s,l);o=o.parent}return s.filter(function(y){return contains(y.target,r)})},t}(),parseStackTree=function(t,r,n,o){t.container.elements.forEach(function(s){var l=contains(s.flags,4),d=contains(s.flags,2),g=new ElementPaint(s,t);contains(s.styles.display,2048)&&o.push(g);var y=contains(s.flags,8)?[]:o;if(l||d){var b=l||s.styles.isPositioned()?n:r,C=new StackingContext(g);if(s.styles.isPositioned()||s.styles.opacity<1||s.styles.isTransformed()){var x=s.styles.zIndex.order;if(x<0){var S=0;b.negativeZIndex.some(function(w,$){return x>w.element.container.styles.zIndex.order?(S=$,!1):S>0}),b.negativeZIndex.splice(S,0,C)}else if(x>0){var _=0;b.positiveZIndex.some(function(w,$){return x>=w.element.container.styles.zIndex.order?(_=$+1,!1):_>0}),b.positiveZIndex.splice(_,0,C)}else b.zeroOrAutoZIndexOrTransformedOrOpacity.push(C)}else s.styles.isFloating()?b.nonPositionedFloats.push(C):b.nonPositionedInlineLevel.push(C);parseStackTree(g,C,l?C:n,y)}else s.styles.isInlineLevel()?r.inlineLevel.push(g):r.nonInlineLevel.push(g),parseStackTree(g,r,n,y);contains(s.flags,8)&&processListItems(s,y)})},processListItems=function(t,r){for(var n=t instanceof OLElementContainer?t.start:1,o=t instanceof OLElementContainer?t.reversed:!1,s=0;s<r.length;s++){var l=r[s];l.container instanceof LIElementContainer&&typeof l.container.value=="number"&&l.container.value!==0&&(n=l.container.value),l.listValue=createCounterText(n,l.container.styles.listStyleType,!0),n+=o?-1:1}},parseStackingContexts=function(t){var r=new ElementPaint(t,null),n=new StackingContext(r),o=[];return parseStackTree(r,n,n,o),processListItems(r.container,o),n},parsePathForBorder=function(t,r){switch(r){case 0:return createPathFromCurves(t.topLeftBorderBox,t.topLeftPaddingBox,t.topRightBorderBox,t.topRightPaddingBox);case 1:return createPathFromCurves(t.topRightBorderBox,t.topRightPaddingBox,t.bottomRightBorderBox,t.bottomRightPaddingBox);case 2:return createPathFromCurves(t.bottomRightBorderBox,t.bottomRightPaddingBox,t.bottomLeftBorderBox,t.bottomLeftPaddingBox);case 3:default:return createPathFromCurves(t.bottomLeftBorderBox,t.bottomLeftPaddingBox,t.topLeftBorderBox,t.topLeftPaddingBox)}},parsePathForBorderDoubleOuter=function(t,r){switch(r){case 0:return createPathFromCurves(t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox,t.topRightBorderBox,t.topRightBorderDoubleOuterBox);case 1:return createPathFromCurves(t.topRightBorderBox,t.topRightBorderDoubleOuterBox,t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox);case 2:return createPathFromCurves(t.bottomRightBorderBox,t.bottomRightBorderDoubleOuterBox,t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox);case 3:default:return createPathFromCurves(t.bottomLeftBorderBox,t.bottomLeftBorderDoubleOuterBox,t.topLeftBorderBox,t.topLeftBorderDoubleOuterBox)}},parsePathForBorderDoubleInner=function(t,r){switch(r){case 0:return createPathFromCurves(t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox,t.topRightBorderDoubleInnerBox,t.topRightPaddingBox);case 1:return createPathFromCurves(t.topRightBorderDoubleInnerBox,t.topRightPaddingBox,t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox);case 2:return createPathFromCurves(t.bottomRightBorderDoubleInnerBox,t.bottomRightPaddingBox,t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox);case 3:default:return createPathFromCurves(t.bottomLeftBorderDoubleInnerBox,t.bottomLeftPaddingBox,t.topLeftBorderDoubleInnerBox,t.topLeftPaddingBox)}},parsePathForBorderStroke=function(t,r){switch(r){case 0:return createStrokePathFromCurves(t.topLeftBorderStroke,t.topRightBorderStroke);case 1:return createStrokePathFromCurves(t.topRightBorderStroke,t.bottomRightBorderStroke);case 2:return createStrokePathFromCurves(t.bottomRightBorderStroke,t.bottomLeftBorderStroke);case 3:default:return createStrokePathFromCurves(t.bottomLeftBorderStroke,t.topLeftBorderStroke)}},createStrokePathFromCurves=function(t,r){var n=[];return isBezierCurve(t)?n.push(t.subdivide(.5,!1)):n.push(t),isBezierCurve(r)?n.push(r.subdivide(.5,!0)):n.push(r),n},createPathFromCurves=function(t,r,n,o){var s=[];return isBezierCurve(t)?s.push(t.subdivide(.5,!1)):s.push(t),isBezierCurve(n)?s.push(n.subdivide(.5,!0)):s.push(n),isBezierCurve(o)?s.push(o.subdivide(.5,!0).reverse()):s.push(o),isBezierCurve(r)?s.push(r.subdivide(.5,!1).reverse()):s.push(r),s},paddingBox=function(t){var r=t.bounds,n=t.styles;return r.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},contentBox=function(t){var r=t.styles,n=t.bounds,o=getAbsoluteValue(r.paddingLeft,n.width),s=getAbsoluteValue(r.paddingRight,n.width),l=getAbsoluteValue(r.paddingTop,n.width),d=getAbsoluteValue(r.paddingBottom,n.width);return n.add(o+r.borderLeftWidth,l+r.borderTopWidth,-(r.borderRightWidth+r.borderLeftWidth+o+s),-(r.borderTopWidth+r.borderBottomWidth+l+d))},calculateBackgroundPositioningArea=function(t,r){return t===0?r.bounds:t===2?contentBox(r):paddingBox(r)},calculateBackgroundPaintingArea=function(t,r){return t===0?r.bounds:t===2?contentBox(r):paddingBox(r)},calculateBackgroundRendering=function(t,r,n){var o=calculateBackgroundPositioningArea(getBackgroundValueForIndex(t.styles.backgroundOrigin,r),t),s=calculateBackgroundPaintingArea(getBackgroundValueForIndex(t.styles.backgroundClip,r),t),l=calculateBackgroundSize(getBackgroundValueForIndex(t.styles.backgroundSize,r),n,o),d=l[0],g=l[1],y=getAbsoluteValueForTuple(getBackgroundValueForIndex(t.styles.backgroundPosition,r),o.width-d,o.height-g),b=calculateBackgroundRepeatPath(getBackgroundValueForIndex(t.styles.backgroundRepeat,r),y,l,o,s),C=Math.round(o.left+y[0]),x=Math.round(o.top+y[1]);return[b,C,x,d,g]},isAuto=function(t){return isIdentToken(t)&&t.value===BACKGROUND_SIZE.AUTO},hasIntrinsicValue=function(t){return typeof t=="number"},calculateBackgroundSize=function(t,r,n){var o=r[0],s=r[1],l=r[2],d=t[0],g=t[1];if(!d)return[0,0];if(isLengthPercentage(d)&&g&&isLengthPercentage(g))return[getAbsoluteValue(d,n.width),getAbsoluteValue(g,n.height)];var y=hasIntrinsicValue(l);if(isIdentToken(d)&&(d.value===BACKGROUND_SIZE.CONTAIN||d.value===BACKGROUND_SIZE.COVER)){if(hasIntrinsicValue(l)){var b=n.width/n.height;return b<l!=(d.value===BACKGROUND_SIZE.COVER)?[n.width,n.width/l]:[n.height*l,n.height]}return[n.width,n.height]}var C=hasIntrinsicValue(o),x=hasIntrinsicValue(s),S=C||x;if(isAuto(d)&&(!g||isAuto(g))){if(C&&x)return[o,s];if(!y&&!S)return[n.width,n.height];if(S&&y){var _=C?o:s*l,w=x?s:o/l;return[_,w]}var $=C?o:n.width,I=x?s:n.height;return[$,I]}if(y){var B=0,R=0;return isLengthPercentage(d)?B=getAbsoluteValue(d,n.width):isLengthPercentage(g)&&(R=getAbsoluteValue(g,n.height)),isAuto(d)?B=R*l:(!g||isAuto(g))&&(R=B/l),[B,R]}var P=null,M=null;if(isLengthPercentage(d)?P=getAbsoluteValue(d,n.width):g&&isLengthPercentage(g)&&(M=getAbsoluteValue(g,n.height)),P!==null&&(!g||isAuto(g))&&(M=C&&x?P/o*s:n.height),M!==null&&isAuto(d)&&(P=C&&x?M/s*o:n.width),P!==null&&M!==null)return[P,M];throw new Error("Unable to calculate background-size for element")},getBackgroundValueForIndex=function(t,r){var n=t[r];return typeof n=="undefined"?t[0]:n},calculateBackgroundRepeatPath=function(t,r,n,o,s){var l=r[0],d=r[1],g=n[0],y=n[1];switch(t){case 2:return[new Vector(Math.round(o.left),Math.round(o.top+d)),new Vector(Math.round(o.left+o.width),Math.round(o.top+d)),new Vector(Math.round(o.left+o.width),Math.round(y+o.top+d)),new Vector(Math.round(o.left),Math.round(y+o.top+d))];case 3:return[new Vector(Math.round(o.left+l),Math.round(o.top)),new Vector(Math.round(o.left+l+g),Math.round(o.top)),new Vector(Math.round(o.left+l+g),Math.round(o.height+o.top)),new Vector(Math.round(o.left+l),Math.round(o.height+o.top))];case 1:return[new Vector(Math.round(o.left+l),Math.round(o.top+d)),new Vector(Math.round(o.left+l+g),Math.round(o.top+d)),new Vector(Math.round(o.left+l+g),Math.round(o.top+d+y)),new Vector(Math.round(o.left+l),Math.round(o.top+d+y))];default:return[new Vector(Math.round(s.left),Math.round(s.top)),new Vector(Math.round(s.left+s.width),Math.round(s.top)),new Vector(Math.round(s.left+s.width),Math.round(s.height+s.top)),new Vector(Math.round(s.left),Math.round(s.height+s.top))]}},SMALL_IMAGE="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",SAMPLE_TEXT="Hidden Text",FontMetrics=function(){function t(r){this._data={},this._document=r}return t.prototype.parseMetrics=function(r,n){var o=this._document.createElement("div"),s=this._document.createElement("img"),l=this._document.createElement("span"),d=this._document.body;o.style.visibility="hidden",o.style.fontFamily=r,o.style.fontSize=n,o.style.margin="0",o.style.padding="0",o.style.whiteSpace="nowrap",d.appendChild(o),s.src=SMALL_IMAGE,s.width=1,s.height=1,s.style.margin="0",s.style.padding="0",s.style.verticalAlign="baseline",l.style.fontFamily=r,l.style.fontSize=n,l.style.margin="0",l.style.padding="0",l.appendChild(this._document.createTextNode(SAMPLE_TEXT)),o.appendChild(l),o.appendChild(s);var g=s.offsetTop-l.offsetTop+2;o.removeChild(l),o.appendChild(this._document.createTextNode(SAMPLE_TEXT)),o.style.lineHeight="normal",s.style.verticalAlign="super";var y=s.offsetTop-o.offsetTop+2;return d.removeChild(o),{baseline:g,middle:y}},t.prototype.getMetrics=function(r,n){var o=r+" "+n;return typeof this._data[o]=="undefined"&&(this._data[o]=this.parseMetrics(r,n)),this._data[o]},t}(),Renderer=function(){function t(r,n){this.context=r,this.options=n}return t}(),MASK_OFFSET=1e4,CanvasRenderer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s._activeEffects=[],s.canvas=o.canvas?o.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),o.canvas||(s.canvas.width=Math.floor(o.width*o.scale),s.canvas.height=Math.floor(o.height*o.scale),s.canvas.style.width=o.width+"px",s.canvas.style.height=o.height+"px"),s.fontMetrics=new FontMetrics(document),s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-o.x,-o.y),s.ctx.textBaseline="bottom",s._activeEffects=[],s.context.logger.debug("Canvas renderer initialized ("+o.width+"x"+o.height+") with scale "+o.scale),s}return r.prototype.applyEffects=function(n){for(var o=this;this._activeEffects.length;)this.popEffect();n.forEach(function(s){return o.applyEffect(s)})},r.prototype.applyEffect=function(n){this.ctx.save(),isOpacityEffect(n)&&(this.ctx.globalAlpha=n.opacity),isTransformEffect(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),isClipEffect(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},r.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},r.prototype.renderStack=function(n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){switch(s.label){case 0:return o=n.element.container.styles,o.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:s.sent(),s.label=2;case 2:return[2]}})})},r.prototype.renderNode=function(n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){switch(o.label){case 0:if(contains(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return o.sent(),[4,this.renderNodeContent(n)];case 2:o.sent(),o.label=3;case 3:return[2]}})})},r.prototype.renderTextWithLetterSpacing=function(n,o,s){var l=this;if(o===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+s);else{var d=segmentGraphemes(n.text);d.reduce(function(g,y){return l.ctx.fillText(y,g,n.bounds.top+s),g+l.ctx.measureText(y).width},n.bounds.left)}},r.prototype.createFontStyle=function(n){var o=n.fontVariant.filter(function(d){return d==="normal"||d==="small-caps"}).join(""),s=fixIOSSystemFonts(n.fontFamily).join(", "),l=isDimensionToken(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,o,n.fontWeight,l,s].join(" "),s,l]},r.prototype.renderTextNode=function(n,o){return __awaiter(this,void 0,void 0,function(){var s,l,d,g,y,b,C,x,S=this;return __generator(this,function(_){return s=this.createFontStyle(o),l=s[0],d=s[1],g=s[2],this.ctx.font=l,this.ctx.direction=o.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",y=this.fontMetrics.getMetrics(d,g),b=y.baseline,C=y.middle,x=o.paintOrder,n.textBounds.forEach(function(w){x.forEach(function($){switch($){case 0:S.ctx.fillStyle=asString(o.color),S.renderTextWithLetterSpacing(w,o.letterSpacing,b);var I=o.textShadow;I.length&&w.text.trim().length&&(I.slice(0).reverse().forEach(function(B){S.ctx.shadowColor=asString(B.color),S.ctx.shadowOffsetX=B.offsetX.number*S.options.scale,S.ctx.shadowOffsetY=B.offsetY.number*S.options.scale,S.ctx.shadowBlur=B.blur.number,S.renderTextWithLetterSpacing(w,o.letterSpacing,b)}),S.ctx.shadowColor="",S.ctx.shadowOffsetX=0,S.ctx.shadowOffsetY=0,S.ctx.shadowBlur=0),o.textDecorationLine.length&&(S.ctx.fillStyle=asString(o.textDecorationColor||o.color),o.textDecorationLine.forEach(function(B){switch(B){case 1:S.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top+b),w.bounds.width,1);break;case 2:S.ctx.fillRect(w.bounds.left,Math.round(w.bounds.top),w.bounds.width,1);break;case 3:S.ctx.fillRect(w.bounds.left,Math.ceil(w.bounds.top+C),w.bounds.width,1);break}}));break;case 1:o.webkitTextStrokeWidth&&w.text.trim().length&&(S.ctx.strokeStyle=asString(o.webkitTextStrokeColor),S.ctx.lineWidth=o.webkitTextStrokeWidth,S.ctx.lineJoin=window.chrome?"miter":"round",S.ctx.strokeText(w.text,w.bounds.left,w.bounds.top+b)),S.ctx.strokeStyle="",S.ctx.lineWidth=0,S.ctx.lineJoin="miter";break}})}),[2]})})},r.prototype.renderReplacedElement=function(n,o,s){if(s&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var l=contentBox(n),d=calculatePaddingBoxPath(o);this.path(d),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(s,0,0,n.intrinsicWidth,n.intrinsicHeight,l.left,l.top,l.width,l.height),this.ctx.restore()}},r.prototype.renderNodeContent=function(n){return __awaiter(this,void 0,void 0,function(){var o,s,l,d,g,y,R,R,b,C,x,S,M,_,w,O,$,I,B,R,P,M,O;return __generator(this,function(D){switch(D.label){case 0:this.applyEffects(n.getEffects(4)),o=n.container,s=n.curves,l=o.styles,d=0,g=o.textNodes,D.label=1;case 1:return d<g.length?(y=g[d],[4,this.renderTextNode(y,l)]):[3,4];case 2:D.sent(),D.label=3;case 3:return d++,[3,1];case 4:if(!(o instanceof ImageElementContainer))return[3,8];D.label=5;case 5:return D.trys.push([5,7,,8]),[4,this.context.cache.match(o.src)];case 6:return R=D.sent(),this.renderReplacedElement(o,s,R),[3,8];case 7:return D.sent(),this.context.logger.error("Error loading image "+o.src),[3,8];case 8:if(o instanceof CanvasElementContainer&&this.renderReplacedElement(o,s,o.canvas),!(o instanceof SVGElementContainer))return[3,12];D.label=9;case 9:return D.trys.push([9,11,,12]),[4,this.context.cache.match(o.svg)];case 10:return R=D.sent(),this.renderReplacedElement(o,s,R),[3,12];case 11:return D.sent(),this.context.logger.error("Error loading svg "+o.svg.substring(0,255)),[3,12];case 12:return o instanceof IFrameElementContainer&&o.tree?(b=new r(this.context,{scale:this.options.scale,backgroundColor:o.backgroundColor,x:0,y:0,width:o.width,height:o.height}),[4,b.render(o.tree)]):[3,14];case 13:C=D.sent(),o.width&&o.height&&this.ctx.drawImage(C,0,0,o.width,o.height,o.bounds.left,o.bounds.top,o.bounds.width,o.bounds.height),D.label=14;case 14:if(o instanceof InputElementContainer&&(x=Math.min(o.bounds.width,o.bounds.height),o.type===CHECKBOX?o.checked&&(this.ctx.save(),this.path([new Vector(o.bounds.left+x*.39363,o.bounds.top+x*.79),new Vector(o.bounds.left+x*.16,o.bounds.top+x*.5549),new Vector(o.bounds.left+x*.27347,o.bounds.top+x*.44071),new Vector(o.bounds.left+x*.39694,o.bounds.top+x*.5649),new Vector(o.bounds.left+x*.72983,o.bounds.top+x*.23),new Vector(o.bounds.left+x*.84,o.bounds.top+x*.34085),new Vector(o.bounds.left+x*.39363,o.bounds.top+x*.79)]),this.ctx.fillStyle=asString(INPUT_COLOR),this.ctx.fill(),this.ctx.restore()):o.type===RADIO&&o.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(o.bounds.left+x/2,o.bounds.top+x/2,x/4,0,Math.PI*2,!0),this.ctx.fillStyle=asString(INPUT_COLOR),this.ctx.fill(),this.ctx.restore())),isTextInputElement(o)&&o.value.length){switch(S=this.createFontStyle(l),M=S[0],_=S[1],w=this.fontMetrics.getMetrics(M,_).baseline,this.ctx.font=M,this.ctx.fillStyle=asString(l.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=canvasTextAlign(o.styles.textAlign),O=contentBox(o),$=0,o.styles.textAlign){case 1:$+=O.width/2;break;case 2:$+=O.width;break}I=O.add($,0,0,-O.height/2+1),this.ctx.save(),this.path([new Vector(O.left,O.top),new Vector(O.left+O.width,O.top),new Vector(O.left+O.width,O.top+O.height),new Vector(O.left,O.top+O.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new TextBounds(o.value,I),l.letterSpacing,w),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!contains(o.styles.display,2048))return[3,20];if(o.styles.listStyleImage===null)return[3,19];if(B=o.styles.listStyleImage,B.type!==0)return[3,18];R=void 0,P=B.url,D.label=15;case 15:return D.trys.push([15,17,,18]),[4,this.context.cache.match(P)];case 16:return R=D.sent(),this.ctx.drawImage(R,o.bounds.left-(R.width+10),o.bounds.top),[3,18];case 17:return D.sent(),this.context.logger.error("Error loading list-style-image "+P),[3,18];case 18:return[3,20];case 19:n.listValue&&o.styles.listStyleType!==-1&&(M=this.createFontStyle(l)[0],this.ctx.font=M,this.ctx.fillStyle=asString(l.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",O=new Bounds(o.bounds.left,o.bounds.top+getAbsoluteValue(o.styles.paddingTop,o.bounds.width),o.bounds.width,computeLineHeight(l.lineHeight,l.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new TextBounds(n.listValue,O),l.letterSpacing,computeLineHeight(l.lineHeight,l.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),D.label=20;case 20:return[2]}})})},r.prototype.renderStackContent=function(n){return __awaiter(this,void 0,void 0,function(){var o,s,B,l,d,B,g,y,B,b,C,B,x,S,B,_,w,B,$,I,B;return __generator(this,function(R){switch(R.label){case 0:if(contains(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:R.sent(),o=0,s=n.negativeZIndex,R.label=2;case 2:return o<s.length?(B=s[o],[4,this.renderStack(B)]):[3,5];case 3:R.sent(),R.label=4;case 4:return o++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:R.sent(),l=0,d=n.nonInlineLevel,R.label=7;case 7:return l<d.length?(B=d[l],[4,this.renderNode(B)]):[3,10];case 8:R.sent(),R.label=9;case 9:return l++,[3,7];case 10:g=0,y=n.nonPositionedFloats,R.label=11;case 11:return g<y.length?(B=y[g],[4,this.renderStack(B)]):[3,14];case 12:R.sent(),R.label=13;case 13:return g++,[3,11];case 14:b=0,C=n.nonPositionedInlineLevel,R.label=15;case 15:return b<C.length?(B=C[b],[4,this.renderStack(B)]):[3,18];case 16:R.sent(),R.label=17;case 17:return b++,[3,15];case 18:x=0,S=n.inlineLevel,R.label=19;case 19:return x<S.length?(B=S[x],[4,this.renderNode(B)]):[3,22];case 20:R.sent(),R.label=21;case 21:return x++,[3,19];case 22:_=0,w=n.zeroOrAutoZIndexOrTransformedOrOpacity,R.label=23;case 23:return _<w.length?(B=w[_],[4,this.renderStack(B)]):[3,26];case 24:R.sent(),R.label=25;case 25:return _++,[3,23];case 26:$=0,I=n.positiveZIndex,R.label=27;case 27:return $<I.length?(B=I[$],[4,this.renderStack(B)]):[3,30];case 28:R.sent(),R.label=29;case 29:return $++,[3,27];case 30:return[2]}})})},r.prototype.mask=function(n){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(n.slice(0).reverse()),this.ctx.closePath()},r.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},r.prototype.formatPath=function(n){var o=this;n.forEach(function(s,l){var d=isBezierCurve(s)?s.start:s;l===0?o.ctx.moveTo(d.x,d.y):o.ctx.lineTo(d.x,d.y),isBezierCurve(s)&&o.ctx.bezierCurveTo(s.startControl.x,s.startControl.y,s.endControl.x,s.endControl.y,s.end.x,s.end.y)})},r.prototype.renderRepeat=function(n,o,s,l){this.path(n),this.ctx.fillStyle=o,this.ctx.translate(s,l),this.ctx.fill(),this.ctx.translate(-s,-l)},r.prototype.resizeImage=function(n,o,s){var l;if(n.width===o&&n.height===s)return n;var d=(l=this.canvas.ownerDocument)!==null&&l!==void 0?l:document,g=d.createElement("canvas");g.width=Math.max(1,o),g.height=Math.max(1,s);var y=g.getContext("2d");return y.drawImage(n,0,0,n.width,n.height,0,0,o,s),g},r.prototype.renderBackgroundImage=function(n){return __awaiter(this,void 0,void 0,function(){var o,s,l,d,g,y;return __generator(this,function(b){switch(b.label){case 0:o=n.styles.backgroundImage.length-1,s=function(C){var x,S,_,G,X,re,j,Y,H,w,G,X,re,j,Y,$,I,B,R,P,M,O,D,N,H,Q,G,K,W,j,Y,q,X,re,te,oe,ae,se,ue,Ae,pe,he;return __generator(this,function(Ce){switch(Ce.label){case 0:if(C.type!==0)return[3,5];x=void 0,S=C.url,Ce.label=1;case 1:return Ce.trys.push([1,3,,4]),[4,l.context.cache.match(S)];case 2:return x=Ce.sent(),[3,4];case 3:return Ce.sent(),l.context.logger.error("Error loading background-image "+S),[3,4];case 4:return x&&(_=calculateBackgroundRendering(n,o,[x.width,x.height,x.width/x.height]),G=_[0],X=_[1],re=_[2],j=_[3],Y=_[4],H=l.ctx.createPattern(l.resizeImage(x,j,Y),"repeat"),l.renderRepeat(G,H,X,re)),[3,6];case 5:isLinearGradient$1(C)?(w=calculateBackgroundRendering(n,o,[null,null,null]),G=w[0],X=w[1],re=w[2],j=w[3],Y=w[4],$=calculateGradientDirection(C.angle,j,Y),I=$[0],B=$[1],R=$[2],P=$[3],M=$[4],O=document.createElement("canvas"),O.width=j,O.height=Y,D=O.getContext("2d"),N=D.createLinearGradient(B,P,R,M),processColorStops(C.stops,I).forEach(function(ve){return N.addColorStop(ve.stop,asString(ve.color))}),D.fillStyle=N,D.fillRect(0,0,j,Y),j>0&&Y>0&&(H=l.ctx.createPattern(O,"repeat"),l.renderRepeat(G,H,X,re))):isRadialGradient$1(C)&&(Q=calculateBackgroundRendering(n,o,[null,null,null]),G=Q[0],K=Q[1],W=Q[2],j=Q[3],Y=Q[4],q=C.position.length===0?[FIFTY_PERCENT]:C.position,X=getAbsoluteValue(q[0],j),re=getAbsoluteValue(q[q.length-1],Y),te=calculateRadius(C,X,re,j,Y),oe=te[0],ae=te[1],oe>0&&ae>0&&(se=l.ctx.createRadialGradient(K+X,W+re,0,K+X,W+re,oe),processColorStops(C.stops,oe*2).forEach(function(ve){return se.addColorStop(ve.stop,asString(ve.color))}),l.path(G),l.ctx.fillStyle=se,oe!==ae?(ue=n.bounds.left+.5*n.bounds.width,Ae=n.bounds.top+.5*n.bounds.height,pe=ae/oe,he=1/pe,l.ctx.save(),l.ctx.translate(ue,Ae),l.ctx.transform(1,0,0,pe,0,0),l.ctx.translate(-ue,-Ae),l.ctx.fillRect(K,he*(W-Ae)+Ae,j,Y*he),l.ctx.restore()):l.ctx.fill())),Ce.label=6;case 6:return o--,[2]}})},l=this,d=0,g=n.styles.backgroundImage.slice(0).reverse(),b.label=1;case 1:return d<g.length?(y=g[d],[5,s(y)]):[3,4];case 2:b.sent(),b.label=3;case 3:return d++,[3,1];case 4:return[2]}})})},r.prototype.renderSolidBorder=function(n,o,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(l){return this.path(parsePathForBorder(s,o)),this.ctx.fillStyle=asString(n),this.ctx.fill(),[2]})})},r.prototype.renderDoubleBorder=function(n,o,s,l){return __awaiter(this,void 0,void 0,function(){var d,g;return __generator(this,function(y){switch(y.label){case 0:return o<3?[4,this.renderSolidBorder(n,s,l)]:[3,2];case 1:return y.sent(),[2];case 2:return d=parsePathForBorderDoubleOuter(l,s),this.path(d),this.ctx.fillStyle=asString(n),this.ctx.fill(),g=parsePathForBorderDoubleInner(l,s),this.path(g),this.ctx.fill(),[2]}})})},r.prototype.renderNodeBackgroundAndBorders=function(n){return __awaiter(this,void 0,void 0,function(){var o,s,l,d,g,y,b,C,x=this;return __generator(this,function(S){switch(S.label){case 0:return this.applyEffects(n.getEffects(2)),o=n.container.styles,s=!isTransparent(o.backgroundColor)||o.backgroundImage.length,l=[{style:o.borderTopStyle,color:o.borderTopColor,width:o.borderTopWidth},{style:o.borderRightStyle,color:o.borderRightColor,width:o.borderRightWidth},{style:o.borderBottomStyle,color:o.borderBottomColor,width:o.borderBottomWidth},{style:o.borderLeftStyle,color:o.borderLeftColor,width:o.borderLeftWidth}],d=calculateBackgroundCurvedPaintingArea(getBackgroundValueForIndex(o.backgroundClip,0),n.curves),s||o.boxShadow.length?(this.ctx.save(),this.path(d),this.ctx.clip(),isTransparent(o.backgroundColor)||(this.ctx.fillStyle=asString(o.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:S.sent(),this.ctx.restore(),o.boxShadow.slice(0).reverse().forEach(function(_){x.ctx.save();var w=calculateBorderBoxPath(n.curves),$=_.inset?0:MASK_OFFSET,I=transformPath$1(w,-$+(_.inset?1:-1)*_.spread.number,(_.inset?1:-1)*_.spread.number,_.spread.number*(_.inset?-2:2),_.spread.number*(_.inset?-2:2));_.inset?(x.path(w),x.ctx.clip(),x.mask(I)):(x.mask(w),x.ctx.clip(),x.path(I)),x.ctx.shadowOffsetX=_.offsetX.number+$,x.ctx.shadowOffsetY=_.offsetY.number,x.ctx.shadowColor=asString(_.color),x.ctx.shadowBlur=_.blur.number,x.ctx.fillStyle=_.inset?asString(_.color):"rgba(0,0,0,1)",x.ctx.fill(),x.ctx.restore()}),S.label=2;case 2:g=0,y=0,b=l,S.label=3;case 3:return y<b.length?(C=b[y],C.style!==0&&!isTransparent(C.color)&&C.width>0?C.style!==2?[3,5]:[4,this.renderDashedDottedBorder(C.color,C.width,g,n.curves,2)]:[3,11]):[3,13];case 4:return S.sent(),[3,11];case 5:return C.style!==3?[3,7]:[4,this.renderDashedDottedBorder(C.color,C.width,g,n.curves,3)];case 6:return S.sent(),[3,11];case 7:return C.style!==4?[3,9]:[4,this.renderDoubleBorder(C.color,C.width,g,n.curves)];case 8:return S.sent(),[3,11];case 9:return[4,this.renderSolidBorder(C.color,g,n.curves)];case 10:S.sent(),S.label=11;case 11:g++,S.label=12;case 12:return y++,[3,3];case 13:return[2]}})})},r.prototype.renderDashedDottedBorder=function(n,o,s,l,d){return __awaiter(this,void 0,void 0,function(){var g,y,b,C,x,S,_,w,$,I,B,R,P,M,O,D,O,D;return __generator(this,function(N){return this.ctx.save(),g=parsePathForBorderStroke(l,s),y=parsePathForBorder(l,s),d===2&&(this.path(y),this.ctx.clip()),isBezierCurve(y[0])?(b=y[0].start.x,C=y[0].start.y):(b=y[0].x,C=y[0].y),isBezierCurve(y[1])?(x=y[1].end.x,S=y[1].end.y):(x=y[1].x,S=y[1].y),s===0||s===2?_=Math.abs(b-x):_=Math.abs(C-S),this.ctx.beginPath(),d===3?this.formatPath(g):this.formatPath(y.slice(0,2)),w=o<3?o*3:o*2,$=o<3?o*2:o,d===3&&(w=o,$=o),I=!0,_<=w*2?I=!1:_<=w*2+$?(B=_/(2*w+$),w*=B,$*=B):(R=Math.floor((_+$)/(w+$)),P=(_-R*w)/(R-1),M=(_-(R+1)*w)/R,$=M<=0||Math.abs($-P)<Math.abs($-M)?P:M),I&&(d===3?this.ctx.setLineDash([0,w+$]):this.ctx.setLineDash([w,$])),d===3?(this.ctx.lineCap="round",this.ctx.lineWidth=o):this.ctx.lineWidth=o*2+1.1,this.ctx.strokeStyle=asString(n),this.ctx.stroke(),this.ctx.setLineDash([]),d===2&&(isBezierCurve(y[0])&&(O=y[3],D=y[0],this.ctx.beginPath(),this.formatPath([new Vector(O.end.x,O.end.y),new Vector(D.start.x,D.start.y)]),this.ctx.stroke()),isBezierCurve(y[1])&&(O=y[1],D=y[2],this.ctx.beginPath(),this.formatPath([new Vector(O.end.x,O.end.y),new Vector(D.start.x,D.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},r.prototype.render=function(n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(s){switch(s.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),o=parseStackingContexts(n),[4,this.renderStack(o)];case 1:return s.sent(),this.applyEffects([]),[2,this.canvas]}})})},r}(Renderer),isTextInputElement=function(t){return t instanceof TextareaElementContainer||t instanceof SelectElementContainer?!0:t instanceof InputElementContainer&&t.type!==RADIO&&t.type!==CHECKBOX},calculateBackgroundCurvedPaintingArea=function(t,r){switch(t){case 0:return calculateBorderBoxPath(r);case 2:return calculateContentBoxPath(r);case 1:default:return calculatePaddingBoxPath(r)}},canvasTextAlign=function(t){switch(t){case 1:return"center";case 2:return"right";case 0:default:return"left"}},iOSBrokenFonts=["-apple-system","system-ui"],fixIOSSystemFonts=function(t){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?t.filter(function(r){return iOSBrokenFonts.indexOf(r)===-1}):t},ForeignObjectRenderer=function(t){__extends$2(r,t);function r(n,o){var s=t.call(this,n,o)||this;return s.canvas=o.canvas?o.canvas:document.createElement("canvas"),s.ctx=s.canvas.getContext("2d"),s.options=o,s.canvas.width=Math.floor(o.width*o.scale),s.canvas.height=Math.floor(o.height*o.scale),s.canvas.style.width=o.width+"px",s.canvas.style.height=o.height+"px",s.ctx.scale(s.options.scale,s.options.scale),s.ctx.translate(-o.x,-o.y),s.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+o.width+"x"+o.height+" at "+o.x+","+o.y+") with scale "+o.scale),s}return r.prototype.render=function(n){return __awaiter(this,void 0,void 0,function(){var o,s;return __generator(this,function(l){switch(l.label){case 0:return o=createForeignObjectSVG(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,loadSerializedSVG(o)];case 1:return s=l.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=asString(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(s,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},r}(Renderer),loadSerializedSVG=function(t){return new Promise(function(r,n){var o=new Image;o.onload=function(){r(o)},o.onerror=n,o.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(t))})},Logger=function(){function t(r){var n=r.id,o=r.enabled;this.id=n,this.enabled=o,this.start=Date.now()}return t.prototype.debug=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,__spreadArray([this.id,this.getTime()+"ms"],r)):this.info.apply(this,r))},t.prototype.getTime=function(){return Date.now()-this.start},t.prototype.info=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,__spreadArray([this.id,this.getTime()+"ms"],r))},t.prototype.warn=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,__spreadArray([this.id,this.getTime()+"ms"],r)):this.info.apply(this,r))},t.prototype.error=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,__spreadArray([this.id,this.getTime()+"ms"],r)):this.info.apply(this,r))},t.instances={},t}(),Context=function(){function t(r,n){var o;this.windowBounds=n,this.instanceName="#"+t.instanceCount++,this.logger=new Logger({id:this.instanceName,enabled:r.logging}),this.cache=(o=r.cache)!==null&&o!==void 0?o:new Cache(this,r)}return t.instanceCount=1,t}(),html2canvas=function(t,r){return r===void 0&&(r={}),renderElement(t,r)};typeof window!="undefined"&&CacheStorage.setContext(window);var renderElement=function(t,r){return __awaiter(void 0,void 0,void 0,function(){var n,o,s,l,d,g,y,b,C,x,S,_,w,$,I,B,R,P,M,O,N,D,N,H,Q,G,K,W,j,Y,q,X,re,te,oe,ae,se,ue,Ae,pe;return __generator(this,function(he){switch(he.label){case 0:if(!t||typeof t!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=t.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(o=n.defaultView,!o)throw new Error("Document is not attached to a Window");return s={allowTaint:(H=r.allowTaint)!==null&&H!==void 0?H:!1,imageTimeout:(Q=r.imageTimeout)!==null&&Q!==void 0?Q:15e3,proxy:r.proxy,useCORS:(G=r.useCORS)!==null&&G!==void 0?G:!1},l=__assign({logging:(K=r.logging)!==null&&K!==void 0?K:!0,cache:r.cache},s),d={windowWidth:(W=r.windowWidth)!==null&&W!==void 0?W:o.innerWidth,windowHeight:(j=r.windowHeight)!==null&&j!==void 0?j:o.innerHeight,scrollX:(Y=r.scrollX)!==null&&Y!==void 0?Y:o.pageXOffset,scrollY:(q=r.scrollY)!==null&&q!==void 0?q:o.pageYOffset},g=new Bounds(d.scrollX,d.scrollY,d.windowWidth,d.windowHeight),y=new Context(l,g),b=(X=r.foreignObjectRendering)!==null&&X!==void 0?X:!1,C={allowTaint:(re=r.allowTaint)!==null&&re!==void 0?re:!1,onclone:r.onclone,ignoreElements:r.ignoreElements,inlineImages:b,copyStyles:b},y.logger.debug("Starting document clone with size "+g.width+"x"+g.height+" scrolled to "+-g.left+","+-g.top),x=new DocumentCloner(y,t,C),S=x.clonedReferenceElement,S?[4,x.toIFrame(n,g)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return _=he.sent(),w=isBodyElement(S)||isHTMLElement(S)?parseDocumentSize(S.ownerDocument):parseBounds(y,S),$=w.width,I=w.height,B=w.left,R=w.top,P=parseBackgroundColor(y,S,r.backgroundColor),M={canvas:r.canvas,backgroundColor:P,scale:(oe=(te=r.scale)!==null&&te!==void 0?te:o.devicePixelRatio)!==null&&oe!==void 0?oe:1,x:((ae=r.x)!==null&&ae!==void 0?ae:0)+B,y:((se=r.y)!==null&&se!==void 0?se:0)+R,width:(ue=r.width)!==null&&ue!==void 0?ue:Math.ceil($),height:(Ae=r.height)!==null&&Ae!==void 0?Ae:Math.ceil(I)},b?(y.logger.debug("Document cloned, using foreign object rendering"),N=new ForeignObjectRenderer(y,M),[4,N.render(S)]):[3,3];case 2:return O=he.sent(),[3,5];case 3:return y.logger.debug("Document cloned, element located at "+B+","+R+" with size "+$+"x"+I+" using computed rendering"),y.logger.debug("Starting DOM parsing"),D=parseTree(y,S),P===D.styles.backgroundColor&&(D.styles.backgroundColor=COLORS.TRANSPARENT),y.logger.debug("Starting renderer for element at "+M.x+","+M.y+" with size "+M.width+"x"+M.height),N=new CanvasRenderer(y,M),[4,N.render(D)];case 4:O=he.sent(),he.label=5;case 5:return(!((pe=r.removeContainer)!==null&&pe!==void 0)||pe)&&(DocumentCloner.destroy(_)||y.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),y.logger.debug("Finished rendering"),[2,O]}})})},parseBackgroundColor=function(t,r,n){var o=r.ownerDocument,s=o.documentElement?parseColor(t,getComputedStyle(o.documentElement).backgroundColor):COLORS.TRANSPARENT,l=o.body?parseColor(t,getComputedStyle(o.body).backgroundColor):COLORS.TRANSPARENT,d=typeof n=="string"?parseColor(t,n):n===null?COLORS.TRANSPARENT:4294967295;return r===o.documentElement?isTransparent(s)?isTransparent(l)?d:l:s:d};const readFile=t=>new Promise(r=>{try{const n=new FileReader;n.onload=o=>{o.target&&r(o.target.result)},n.readAsText(t)}catch(n){window.$message.error("\u6587\u4EF6\u8BFB\u53D6\u5931\u8D25\uFF01")}}),downloadByA=(t,r=new Date().getTime(),n)=>{const o=document.createElement("a");o.download=`${r}.${n}`,o.style.display="none",o.href=t,document.body.appendChild(o),o.click(),document.body.removeChild(o)},downloadTextFile=(t,r=new Date().getTime(),n)=>{const o=new Blob([t]);downloadByA(URL.createObjectURL(o),r,n)};function isString$2(t){return typeof t=="string"}function isNumber$2(t){return typeof t=="number"}function isArray$d(t){return Array.isArray(t)}const toNumber=(t,r=2)=>isString$2(t)?parseFloat(parseFloat(t).toFixed(2)):t,toString$4=t=>isNumber$2(t)?`${t}`:isObject_1(t)?JSON.stringify(t):t;function listCacheClear$1(){this.__data__=[],this.size=0}var _listCacheClear=listCacheClear$1;function eq$4(t,r){return t===r||t!==t&&r!==r}var eq_1=eq$4,eq$3=eq_1;function assocIndexOf$4(t,r){for(var n=t.length;n--;)if(eq$3(t[n][0],r))return n;return-1}var _assocIndexOf=assocIndexOf$4,assocIndexOf$3=_assocIndexOf,arrayProto$1=Array.prototype,splice=arrayProto$1.splice;function listCacheDelete$1(t){var r=this.__data__,n=assocIndexOf$3(r,t);if(n<0)return!1;var o=r.length-1;return n==o?r.pop():splice.call(r,n,1),--this.size,!0}var _listCacheDelete=listCacheDelete$1,assocIndexOf$2=_assocIndexOf;function listCacheGet$2(t){var r=this.__data__,n=assocIndexOf$2(r,t);return n<0?void 0:r[n][1]}var _listCacheGet=listCacheGet$2,assocIndexOf$1=_assocIndexOf;function listCacheHas$1(t){return assocIndexOf$1(this.__data__,t)>-1}var _listCacheHas=listCacheHas$1,assocIndexOf=_assocIndexOf;function listCacheSet$2(t,r){var n=this.__data__,o=assocIndexOf(n,t);return o<0?(++this.size,n.push([t,r])):n[o][1]=r,this}var _listCacheSet=listCacheSet$2,listCacheClear=_listCacheClear,listCacheDelete=_listCacheDelete,listCacheGet$1=_listCacheGet,listCacheHas=_listCacheHas,listCacheSet$1=_listCacheSet;function ListCache$4(t){var r=-1,n=t==null?0:t.length;for(this.clear();++r<n;){var o=t[r];this.set(o[0],o[1])}}ListCache$4.prototype.clear=listCacheClear;ListCache$4.prototype.delete=listCacheDelete;ListCache$4.prototype.get=listCacheGet$1;ListCache$4.prototype.has=listCacheHas;ListCache$4.prototype.set=listCacheSet$1;var _ListCache=ListCache$4,ListCache$3=_ListCache;function stackClear$1(){this.__data__=new ListCache$3,this.size=0}var _stackClear=stackClear$1;function stackDelete$1(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}var _stackDelete=stackDelete$1;function stackGet$1(t){return this.__data__.get(t)}var _stackGet=stackGet$1;function stackHas$1(t){return this.__data__.has(t)}var _stackHas=stackHas$1,baseGetTag$4=_baseGetTag,isObject$e=isObject_1,asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$5(t){if(!isObject$e(t))return!1;var r=baseGetTag$4(t);return r==funcTag$2||r==genTag$1||r==asyncTag||r==proxyTag}var isFunction_1=isFunction$5,root$6=_root,coreJsData$1=root$6["__core-js_shared__"],_coreJsData=coreJsData$1,coreJsData=_coreJsData,maskSrcKey=function(){var t=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function isMasked$1(t){return!!maskSrcKey&&maskSrcKey in t}var _isMasked=isMasked$1,funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource$2(t){if(t!=null){try{return funcToString$2.call(t)}catch(r){}try{return t+""}catch(r){}}return""}var _toSource=toSource$2,isFunction$4=isFunction_1,isMasked=_isMasked,isObject$d=isObject_1,toSource$1=_toSource,reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$b=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$a=objectProto$b.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$a).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative$1(t){if(!isObject$d(t)||isMasked(t))return!1;var r=isFunction$4(t)?reIsNative:reIsHostCtor;return r.test(toSource$1(t))}var _baseIsNative=baseIsNative$1;function getValue$1(t,r){return t==null?void 0:t[r]}var _getValue=getValue$1,baseIsNative=_baseIsNative,getValue=_getValue;function getNative$7(t,r){var n=getValue(t,r);return baseIsNative(n)?n:void 0}var _getNative=getNative$7,getNative$6=_getNative,root$5=_root,Map$4=getNative$6(root$5,"Map"),_Map=Map$4,getNative$5=_getNative,nativeCreate$4=getNative$5(Object,"create"),_nativeCreate=nativeCreate$4,nativeCreate$3=_nativeCreate;function hashClear$1(){this.__data__=nativeCreate$3?nativeCreate$3(null):{},this.size=0}var _hashClear=hashClear$1;function hashDelete$1(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}var _hashDelete=hashDelete$1,nativeCreate$2=_nativeCreate,HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$a=Object.prototype,hasOwnProperty$9=objectProto$a.hasOwnProperty;function hashGet$1(t){var r=this.__data__;if(nativeCreate$2){var n=r[t];return n===HASH_UNDEFINED$1?void 0:n}return hasOwnProperty$9.call(r,t)?r[t]:void 0}var _hashGet=hashGet$1,nativeCreate$1=_nativeCreate,objectProto$9=Object.prototype,hasOwnProperty$8=objectProto$9.hasOwnProperty;function hashHas$1(t){var r=this.__data__;return nativeCreate$1?r[t]!==void 0:hasOwnProperty$8.call(r,t)}var _hashHas=hashHas$1,nativeCreate=_nativeCreate,HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet$1(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nativeCreate&&r===void 0?HASH_UNDEFINED:r,this}var _hashSet=hashSet$1,hashClear=_hashClear,hashDelete=_hashDelete,hashGet=_hashGet,hashHas=_hashHas,hashSet=_hashSet;function Hash$1(t){var r=-1,n=t==null?0:t.length;for(this.clear();++r<n;){var o=t[r];this.set(o[0],o[1])}}Hash$1.prototype.clear=hashClear;Hash$1.prototype.delete=hashDelete;Hash$1.prototype.get=hashGet;Hash$1.prototype.has=hashHas;Hash$1.prototype.set=hashSet;var _Hash=Hash$1,Hash=_Hash,ListCache$2=_ListCache,Map$3=_Map;function mapCacheClear$1(){this.size=0,this.__data__={hash:new Hash,map:new(Map$3||ListCache$2),string:new Hash}}var _mapCacheClear=mapCacheClear$1;function isKeyable$1(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}var _isKeyable=isKeyable$1,isKeyable=_isKeyable;function getMapData$4(t,r){var n=t.__data__;return isKeyable(r)?n[typeof r=="string"?"string":"hash"]:n.map}var _getMapData=getMapData$4,getMapData$3=_getMapData;function mapCacheDelete$1(t){var r=getMapData$3(this,t).delete(t);return this.size-=r?1:0,r}var _mapCacheDelete=mapCacheDelete$1,getMapData$2=_getMapData;function mapCacheGet$1(t){return getMapData$2(this,t).get(t)}var _mapCacheGet=mapCacheGet$1,getMapData$1=_getMapData;function mapCacheHas$1(t){return getMapData$1(this,t).has(t)}var _mapCacheHas=mapCacheHas$1,getMapData=_getMapData;function mapCacheSet$1(t,r){var n=getMapData(this,t),o=n.size;return n.set(t,r),this.size+=n.size==o?0:1,this}var _mapCacheSet=mapCacheSet$1,mapCacheClear=_mapCacheClear,mapCacheDelete=_mapCacheDelete,mapCacheGet=_mapCacheGet,mapCacheHas=_mapCacheHas,mapCacheSet=_mapCacheSet;function MapCache$2(t){var r=-1,n=t==null?0:t.length;for(this.clear();++r<n;){var o=t[r];this.set(o[0],o[1])}}MapCache$2.prototype.clear=mapCacheClear;MapCache$2.prototype.delete=mapCacheDelete;MapCache$2.prototype.get=mapCacheGet;MapCache$2.prototype.has=mapCacheHas;MapCache$2.prototype.set=mapCacheSet;var _MapCache=MapCache$2,ListCache$1=_ListCache,Map$2=_Map,MapCache$1=_MapCache,LARGE_ARRAY_SIZE=200;function stackSet$1(t,r){var n=this.__data__;if(n instanceof ListCache$1){var o=n.__data__;if(!Map$2||o.length<LARGE_ARRAY_SIZE-1)return o.push([t,r]),this.size=++n.size,this;n=this.__data__=new MapCache$1(o)}return n.set(t,r),this.size=n.size,this}var _stackSet=stackSet$1,ListCache=_ListCache,stackClear=_stackClear,stackDelete=_stackDelete,stackGet=_stackGet,stackHas=_stackHas,stackSet=_stackSet;function Stack$2(t){var r=this.__data__=new ListCache(t);this.size=r.size}Stack$2.prototype.clear=stackClear;Stack$2.prototype.delete=stackDelete;Stack$2.prototype.get=stackGet;Stack$2.prototype.has=stackHas;Stack$2.prototype.set=stackSet;var _Stack=Stack$2;function arrayEach$1(t,r){for(var n=-1,o=t==null?0:t.length;++n<o&&r(t[n],n,t)!==!1;);return t}var _arrayEach=arrayEach$1,getNative$4=_getNative,defineProperty$2=function(){try{var t=getNative$4(Object,"defineProperty");return t({},"",{}),t}catch(r){}}(),_defineProperty=defineProperty$2,defineProperty$1=_defineProperty;function baseAssignValue$3(t,r,n){r=="__proto__"&&defineProperty$1?defineProperty$1(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n}var _baseAssignValue=baseAssignValue$3,baseAssignValue$2=_baseAssignValue,eq$2=eq_1,objectProto$8=Object.prototype,hasOwnProperty$7=objectProto$8.hasOwnProperty;function assignValue$3(t,r,n){var o=t[r];(!(hasOwnProperty$7.call(t,r)&&eq$2(o,n))||n===void 0&&!(r in t))&&baseAssignValue$2(t,r,n)}var _assignValue=assignValue$3,assignValue$2=_assignValue,baseAssignValue$1=_baseAssignValue;function copyObject$5(t,r,n,o){var s=!n;n||(n={});for(var l=-1,d=r.length;++l<d;){var g=r[l],y=o?o(n[g],t[g],g,n,t):void 0;y===void 0&&(y=t[g]),s?baseAssignValue$1(n,g,y):assignValue$2(n,g,y)}return n}var _copyObject=copyObject$5;function baseTimes$1(t,r){for(var n=-1,o=Array(t);++n<t;)o[n]=r(n);return o}var _baseTimes=baseTimes$1,baseGetTag$3=_baseGetTag,isObjectLike$6=isObjectLike_1,argsTag$2="[object Arguments]";function baseIsArguments$1(t){return isObjectLike$6(t)&&baseGetTag$3(t)==argsTag$2}var _baseIsArguments=baseIsArguments$1,baseIsArguments=_baseIsArguments,isObjectLike$5=isObjectLike_1,objectProto$7=Object.prototype,hasOwnProperty$6=objectProto$7.hasOwnProperty,propertyIsEnumerable$1=objectProto$7.propertyIsEnumerable,isArguments$4=baseIsArguments(function(){return arguments}())?baseIsArguments:function(t){return isObjectLike$5(t)&&hasOwnProperty$6.call(t,"callee")&&!propertyIsEnumerable$1.call(t,"callee")},isArguments_1=isArguments$4,isArray$c=Array.isArray,isArray_1=isArray$c,isBuffer$4={exports:{}};function stubFalse(){return!1}var stubFalse_1=stubFalse;(function(t,r){var n=_root,o=stubFalse_1,s=r&&!r.nodeType&&r,l=s&&!0&&t&&!t.nodeType&&t,d=l&&l.exports===s,g=d?n.Buffer:void 0,y=g?g.isBuffer:void 0,b=y||o;t.exports=b})(isBuffer$4,isBuffer$4.exports);var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex$4(t,r){var n=typeof t;return r=r==null?MAX_SAFE_INTEGER$2:r,!!r&&(n=="number"||n!="symbol"&&reIsUint.test(t))&&t>-1&&t%1==0&&t<r}var _isIndex=isIndex$4,MAX_SAFE_INTEGER$1=9007199254740991;function isLength$3(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=MAX_SAFE_INTEGER$1}var isLength_1=isLength$3,baseGetTag$2=_baseGetTag,isLength$2=isLength_1,isObjectLike$4=isObjectLike_1,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$2="[object Boolean]",dateTag$2="[object Date]",errorTag$1="[object Error]",funcTag$1="[object Function]",mapTag$4="[object Map]",numberTag$2="[object Number]",objectTag$3="[object Object]",regexpTag$2="[object RegExp]",setTag$4="[object Set]",stringTag$2="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$3="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$1]=typedArrayTags[arrayTag$1]=typedArrayTags[arrayBufferTag$2]=typedArrayTags[boolTag$2]=typedArrayTags[dataViewTag$3]=typedArrayTags[dateTag$2]=typedArrayTags[errorTag$1]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$4]=typedArrayTags[numberTag$2]=typedArrayTags[objectTag$3]=typedArrayTags[regexpTag$2]=typedArrayTags[setTag$4]=typedArrayTags[stringTag$2]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray$1(t){return isObjectLike$4(t)&&isLength$2(t.length)&&!!typedArrayTags[baseGetTag$2(t)]}var _baseIsTypedArray=baseIsTypedArray$1;function baseUnary$3(t){return function(r){return t(r)}}var _baseUnary=baseUnary$3,_nodeUtil={exports:{}};(function(t,r){var n=_freeGlobal,o=r&&!r.nodeType&&r,s=o&&!0&&t&&!t.nodeType&&t,l=s&&s.exports===o,d=l&&n.process,g=function(){try{var y=s&&s.require&&s.require("util").types;return y||d&&d.binding&&d.binding("util")}catch(b){}}();t.exports=g})(_nodeUtil,_nodeUtil.exports);var baseIsTypedArray=_baseIsTypedArray,baseUnary$2=_baseUnary,nodeUtil$2=_nodeUtil.exports,nodeIsTypedArray=nodeUtil$2&&nodeUtil$2.isTypedArray,isTypedArray$4=nodeIsTypedArray?baseUnary$2(nodeIsTypedArray):baseIsTypedArray,isTypedArray_1=isTypedArray$4,baseTimes=_baseTimes,isArguments$3=isArguments_1,isArray$b=isArray_1,isBuffer$3=isBuffer$4.exports,isIndex$3=_isIndex,isTypedArray$3=isTypedArray_1,objectProto$6=Object.prototype,hasOwnProperty$5=objectProto$6.hasOwnProperty;function arrayLikeKeys$2(t,r){var n=isArray$b(t),o=!n&&isArguments$3(t),s=!n&&!o&&isBuffer$3(t),l=!n&&!o&&!s&&isTypedArray$3(t),d=n||o||s||l,g=d?baseTimes(t.length,String):[],y=g.length;for(var b in t)(r||hasOwnProperty$5.call(t,b))&&!(d&&(b=="length"||s&&(b=="offset"||b=="parent")||l&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||isIndex$3(b,y)))&&g.push(b);return g}var _arrayLikeKeys=arrayLikeKeys$2,objectProto$5=Object.prototype;function isPrototype$3(t){var r=t&&t.constructor,n=typeof r=="function"&&r.prototype||objectProto$5;return t===n}var _isPrototype=isPrototype$3;function overArg$2(t,r){return function(n){return t(r(n))}}var _overArg=overArg$2,overArg$1=_overArg,nativeKeys$1=overArg$1(Object.keys,Object),_nativeKeys=nativeKeys$1,isPrototype$2=_isPrototype,nativeKeys=_nativeKeys,objectProto$4=Object.prototype,hasOwnProperty$4=objectProto$4.hasOwnProperty;function baseKeys$1(t){if(!isPrototype$2(t))return nativeKeys(t);var r=[];for(var n in Object(t))hasOwnProperty$4.call(t,n)&&n!="constructor"&&r.push(n);return r}var _baseKeys=baseKeys$1,isFunction$3=isFunction_1,isLength$1=isLength_1;function isArrayLike$5(t){return t!=null&&isLength$1(t.length)&&!isFunction$3(t)}var isArrayLike_1=isArrayLike$5,arrayLikeKeys$1=_arrayLikeKeys,baseKeys=_baseKeys,isArrayLike$4=isArrayLike_1;function keys$4(t){return isArrayLike$4(t)?arrayLikeKeys$1(t):baseKeys(t)}var keys_1=keys$4,copyObject$4=_copyObject,keys$3=keys_1;function baseAssign$1(t,r){return t&©Object$4(r,keys$3(r),t)}var _baseAssign=baseAssign$1;function nativeKeysIn$1(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}var _nativeKeysIn=nativeKeysIn$1,isObject$c=isObject_1,isPrototype$1=_isPrototype,nativeKeysIn=_nativeKeysIn,objectProto$3=Object.prototype,hasOwnProperty$3=objectProto$3.hasOwnProperty;function baseKeysIn$1(t){if(!isObject$c(t))return nativeKeysIn(t);var r=isPrototype$1(t),n=[];for(var o in t)o=="constructor"&&(r||!hasOwnProperty$3.call(t,o))||n.push(o);return n}var _baseKeysIn=baseKeysIn$1,arrayLikeKeys=_arrayLikeKeys,baseKeysIn=_baseKeysIn,isArrayLike$3=isArrayLike_1;function keysIn$5(t){return isArrayLike$3(t)?arrayLikeKeys(t,!0):baseKeysIn(t)}var keysIn_1=keysIn$5,copyObject$3=_copyObject,keysIn$4=keysIn_1;function baseAssignIn$1(t,r){return t&©Object$3(r,keysIn$4(r),t)}var _baseAssignIn=baseAssignIn$1,_cloneBuffer={exports:{}};(function(t,r){var n=_root,o=r&&!r.nodeType&&r,s=o&&!0&&t&&!t.nodeType&&t,l=s&&s.exports===o,d=l?n.Buffer:void 0,g=d?d.allocUnsafe:void 0;function y(b,C){if(C)return b.slice();var x=b.length,S=g?g(x):new b.constructor(x);return b.copy(S),S}t.exports=y})(_cloneBuffer,_cloneBuffer.exports);function copyArray$2(t,r){var n=-1,o=t.length;for(r||(r=Array(o));++n<o;)r[n]=t[n];return r}var _copyArray=copyArray$2;function arrayFilter$1(t,r){for(var n=-1,o=t==null?0:t.length,s=0,l=[];++n<o;){var d=t[n];r(d,n,t)&&(l[s++]=d)}return l}var _arrayFilter=arrayFilter$1;function stubArray$2(){return[]}var stubArray_1=stubArray$2,arrayFilter=_arrayFilter,stubArray$1=stubArray_1,objectProto$2=Object.prototype,propertyIsEnumerable=objectProto$2.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols$4=nativeGetSymbols$1?function(t){return t==null?[]:(t=Object(t),arrayFilter(nativeGetSymbols$1(t),function(r){return propertyIsEnumerable.call(t,r)}))}:stubArray$1,_getSymbols=getSymbols$4,copyObject$2=_copyObject,getSymbols$3=_getSymbols;function copySymbols$1(t,r){return copyObject$2(t,getSymbols$3(t),r)}var _copySymbols=copySymbols$1;function arrayPush$3(t,r){for(var n=-1,o=r.length,s=t.length;++n<o;)t[s+n]=r[n];return t}var _arrayPush=arrayPush$3,overArg=_overArg,getPrototype$3=overArg(Object.getPrototypeOf,Object),_getPrototype=getPrototype$3,arrayPush$2=_arrayPush,getPrototype$2=_getPrototype,getSymbols$2=_getSymbols,stubArray=stubArray_1,nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn$2=nativeGetSymbols?function(t){for(var r=[];t;)arrayPush$2(r,getSymbols$2(t)),t=getPrototype$2(t);return r}:stubArray,_getSymbolsIn=getSymbolsIn$2,copyObject$1=_copyObject,getSymbolsIn$1=_getSymbolsIn;function copySymbolsIn$1(t,r){return copyObject$1(t,getSymbolsIn$1(t),r)}var _copySymbolsIn=copySymbolsIn$1,arrayPush$1=_arrayPush,isArray$a=isArray_1;function baseGetAllKeys$2(t,r,n){var o=r(t);return isArray$a(t)?o:arrayPush$1(o,n(t))}var _baseGetAllKeys=baseGetAllKeys$2,baseGetAllKeys$1=_baseGetAllKeys,getSymbols$1=_getSymbols,keys$2=keys_1;function getAllKeys$1(t){return baseGetAllKeys$1(t,keys$2,getSymbols$1)}var _getAllKeys=getAllKeys$1,baseGetAllKeys=_baseGetAllKeys,getSymbolsIn=_getSymbolsIn,keysIn$3=keysIn_1;function getAllKeysIn$1(t){return baseGetAllKeys(t,keysIn$3,getSymbolsIn)}var _getAllKeysIn=getAllKeysIn$1,getNative$3=_getNative,root$4=_root,DataView$3=getNative$3(root$4,"DataView"),_DataView=DataView$3,getNative$2=_getNative,root$3=_root,Promise$2=getNative$2(root$3,"Promise"),_Promise=Promise$2,getNative$1=_getNative,root$2=_root,Set$2=getNative$1(root$2,"Set"),_Set=Set$2,getNative=_getNative,root$1=_root,WeakMap$4=getNative(root$1,"WeakMap"),_WeakMap=WeakMap$4,DataView$2=_DataView,Map$1=_Map,Promise$1=_Promise,Set$1=_Set,WeakMap$3=_WeakMap,baseGetTag$1=_baseGetTag,toSource=_toSource,mapTag$3="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$3="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$2="[object DataView]",dataViewCtorString=toSource(DataView$2),mapCtorString=toSource(Map$1),promiseCtorString=toSource(Promise$1),setCtorString=toSource(Set$1),weakMapCtorString=toSource(WeakMap$3),getTag$3=baseGetTag$1;(DataView$2&&getTag$3(new DataView$2(new ArrayBuffer(1)))!=dataViewTag$2||Map$1&&getTag$3(new Map$1)!=mapTag$3||Promise$1&&getTag$3(Promise$1.resolve())!=promiseTag||Set$1&&getTag$3(new Set$1)!=setTag$3||WeakMap$3&&getTag$3(new WeakMap$3)!=weakMapTag$1)&&(getTag$3=function(t){var r=baseGetTag$1(t),n=r==objectTag$2?t.constructor:void 0,o=n?toSource(n):"";if(o)switch(o){case dataViewCtorString:return dataViewTag$2;case mapCtorString:return mapTag$3;case promiseCtorString:return promiseTag;case setCtorString:return setTag$3;case weakMapCtorString:return weakMapTag$1}return r});var _getTag=getTag$3,objectProto$1=Object.prototype,hasOwnProperty$2=objectProto$1.hasOwnProperty;function initCloneArray$1(t){var r=t.length,n=new t.constructor(r);return r&&typeof t[0]=="string"&&hasOwnProperty$2.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var _initCloneArray=initCloneArray$1,root=_root,Uint8Array$2=root.Uint8Array,_Uint8Array=Uint8Array$2,Uint8Array$1=_Uint8Array;function cloneArrayBuffer$3(t){var r=new t.constructor(t.byteLength);return new Uint8Array$1(r).set(new Uint8Array$1(t)),r}var _cloneArrayBuffer=cloneArrayBuffer$3,cloneArrayBuffer$2=_cloneArrayBuffer;function cloneDataView$1(t,r){var n=r?cloneArrayBuffer$2(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var _cloneDataView=cloneDataView$1,reFlags=/\w*$/;function cloneRegExp$1(t){var r=new t.constructor(t.source,reFlags.exec(t));return r.lastIndex=t.lastIndex,r}var _cloneRegExp=cloneRegExp$1,Symbol$4=_Symbol,symbolProto$1=Symbol$4?Symbol$4.prototype:void 0,symbolValueOf=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol$1(t){return symbolValueOf?Object(symbolValueOf.call(t)):{}}var _cloneSymbol=cloneSymbol$1,cloneArrayBuffer$1=_cloneArrayBuffer;function cloneTypedArray$2(t,r){var n=r?cloneArrayBuffer$1(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var _cloneTypedArray=cloneTypedArray$2,cloneArrayBuffer=_cloneArrayBuffer,cloneDataView=_cloneDataView,cloneRegExp=_cloneRegExp,cloneSymbol=_cloneSymbol,cloneTypedArray$1=_cloneTypedArray,boolTag$1="[object Boolean]",dateTag$1="[object Date]",mapTag$2="[object Map]",numberTag$1="[object Number]",regexpTag$1="[object RegExp]",setTag$2="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag$1(t,r,n){var o=t.constructor;switch(r){case arrayBufferTag$1:return cloneArrayBuffer(t);case boolTag$1:case dateTag$1:return new o(+t);case dataViewTag$1:return cloneDataView(t,n);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray$1(t,n);case mapTag$2:return new o;case numberTag$1:case stringTag$1:return new o(t);case regexpTag$1:return cloneRegExp(t);case setTag$2:return new o;case symbolTag$1:return cloneSymbol(t)}}var _initCloneByTag=initCloneByTag$1,isObject$b=isObject_1,objectCreate=Object.create,baseCreate$1=function(){function t(){}return function(r){if(!isObject$b(r))return{};if(objectCreate)return objectCreate(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}(),_baseCreate=baseCreate$1,baseCreate=_baseCreate,getPrototype$1=_getPrototype,isPrototype=_isPrototype;function initCloneObject$2(t){return typeof t.constructor=="function"&&!isPrototype(t)?baseCreate(getPrototype$1(t)):{}}var _initCloneObject=initCloneObject$2,getTag$2=_getTag,isObjectLike$3=isObjectLike_1,mapTag$1="[object Map]";function baseIsMap$1(t){return isObjectLike$3(t)&&getTag$2(t)==mapTag$1}var _baseIsMap=baseIsMap$1,baseIsMap=_baseIsMap,baseUnary$1=_baseUnary,nodeUtil$1=_nodeUtil.exports,nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary$1(nodeIsMap):baseIsMap,isMap_1=isMap$1,getTag$1=_getTag,isObjectLike$2=isObjectLike_1,setTag$1="[object Set]";function baseIsSet$1(t){return isObjectLike$2(t)&&getTag$1(t)==setTag$1}var _baseIsSet=baseIsSet$1,baseIsSet=_baseIsSet,baseUnary=_baseUnary,nodeUtil=_nodeUtil.exports,nodeIsSet=nodeUtil&&nodeUtil.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet,isSet_1=isSet$1,Stack$1=_Stack,arrayEach=_arrayEach,assignValue$1=_assignValue,baseAssign=_baseAssign,baseAssignIn=_baseAssignIn,cloneBuffer$1=_cloneBuffer.exports,copyArray$1=_copyArray,copySymbols=_copySymbols,copySymbolsIn=_copySymbolsIn,getAllKeys=_getAllKeys,getAllKeysIn=_getAllKeysIn,getTag=_getTag,initCloneArray=_initCloneArray,initCloneByTag=_initCloneByTag,initCloneObject$1=_initCloneObject,isArray$9=isArray_1,isBuffer$2=isBuffer$4.exports,isMap=isMap_1,isObject$a=isObject_1,isSet=isSet_1,keys$1=keys_1,keysIn$2=keysIn_1,CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$1=4,argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag="[object Map]",numberTag="[object Number]",objectTag$1="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag$1]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone$1(t,r,n,o,s,l){var d,g=r&CLONE_DEEP_FLAG$1,y=r&CLONE_FLAT_FLAG,b=r&CLONE_SYMBOLS_FLAG$1;if(n&&(d=s?n(t,o,s,l):n(t)),d!==void 0)return d;if(!isObject$a(t))return t;var C=isArray$9(t);if(C){if(d=initCloneArray(t),!g)return copyArray$1(t,d)}else{var x=getTag(t),S=x==funcTag||x==genTag;if(isBuffer$2(t))return cloneBuffer$1(t,g);if(x==objectTag$1||x==argsTag||S&&!s){if(d=y||S?{}:initCloneObject$1(t),!g)return y?copySymbolsIn(t,baseAssignIn(d,t)):copySymbols(t,baseAssign(d,t))}else{if(!cloneableTags[x])return s?t:{};d=initCloneByTag(t,x,g)}}l||(l=new Stack$1);var _=l.get(t);if(_)return _;l.set(t,d),isSet(t)?t.forEach(function(I){d.add(baseClone$1(I,r,n,I,t,l))}):isMap(t)&&t.forEach(function(I,B){d.set(B,baseClone$1(I,r,n,B,t,l))});var w=b?y?getAllKeysIn:getAllKeys:y?keysIn$2:keys$1,$=C?void 0:w(t);return arrayEach($||t,function(I,B){$&&(B=I,I=t[B]),assignValue$1(d,B,baseClone$1(I,r,n,B,t,l))}),d}var _baseClone=baseClone$1,baseClone=_baseClone,CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep(t){return baseClone(t,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var cloneDeep_1=cloneDeep,MouseEventButton=(t=>(t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t))(MouseEventButton||{}),DragKeyEnum=(t=>(t.DRAG_KEY="ChartData",t))(DragKeyEnum||{}),SavePageEnum=(t=>(t.CHART="SaveChart",t.JSON="SaveJSON",t))(SavePageEnum||{}),MenuEnum=(t=>(t.ARROW_UP="up",t.ARROW_RIGHT="right",t.ARROW_DOWN="down",t.ARROW_LEFT="left",t.DELETE="delete",t.COPY="copy",t.CUT="cut",t.PARSE="parse",t.TOP="top",t.BOTTOM="bottom",t.UP="up",t.DOWN="down",t.CLEAR="clear",t.GROUP="group",t.UN_GROUP="unGroup",t.BACK="back",t.FORWORD="forward",t.SAVE="save",t.LOCK="lock",t.UNLOCK="unLock",t.HIDE="hide",t.SHOW="show",t))(MenuEnum||{}),WinKeyboard=(t=>(t.CTRL="ctrl",t.SHIFT="shift",t.ALT=" alt",t.CTRL_SOURCE_KEY="control",t.SHIFT_SOURCE_KEY="shift",t.ALT_SOURCE_KEY="alt",t.SPACE="Space",t))(WinKeyboard||{}),MacKeyboard=(t=>(t.CTRL="\u2318",t.SHIFT="\u21E7",t.ALT="\u2325",t.CTRL_SOURCE_KEY="\u2318",t.SHIFT_SOURCE_KEY="\u21E7",t.ALT_SOURCE_KEY="\u2325",t.SPACE="Space",t))(MacKeyboard||{}),SyncEnum=(t=>(t[t.PENDING=0]="PENDING",t[t.START=1]="START",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE",t))(SyncEnum||{}),BaseEvent=(t=>(t.ON_CLICK="click",t.ON_DBL_CLICK="dblclick",t.ON_MOUSE_ENTER="mouseenter",t.ON_MOUSE_LEAVE="mouseleave",t))(BaseEvent||{}),EventLife=(t=>(t.VNODE_MOUNTED="vnodeMounted",t.VNODE_BEFORE_MOUNT="vnodeBeforeMount",t))(EventLife||{});const excludeParseEventKeyList=["vnodeBeforeMount","vnodeMounted","click","dblclick","mouseenter","mouseleave","filter"],getUUID=(t=10)=>Number(Math.random().toString().substring(2,t)+Date.now()).toString(36),renderIcon=(t,r={})=>()=>h(NIcon,r,{default:()=>h(t)}),renderLang=(t,r={},n="span")=>()=>h(n,r,{default:()=>window.$t(t)}),requireErrorImg=()=>__glob_6_7,screenfullFn=(t,r)=>{if(t)return screenfull$1.isFullscreen;if(r)return screenfull$1.isEnabled;if(screenfull$1.isEnabled){screenfull$1.toggle();return}window.$message.warning("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u5168\u5C4F\u529F\u80FD\uFF01")},setComponentPosition=(t,r,n)=>{r&&(t.attr.x=r),n&&(t.attr.y=n)},canvasCut=(t,r)=>{if(!t){window.$message.error("\u5BFC\u51FA\u5931\u8D25\uFF01"),r&&r();return}html2canvas(t,{backgroundColor:null,allowTaint:!0,useCORS:!0}).then(n=>{window.$message.success("\u5BFC\u51FA\u6210\u529F\uFF01"),downloadByA(n.toDataURL(),void 0,"png"),r&&r()})},newFunctionHandle=(t,r,n,o,s,l)=>{try{if(!n)return t;const g=new Function("data","res",n)(cloneDeep_1(t),cloneDeep_1(r)),y=o?toString$4(g):g;return l&&l(y),y}catch(d){return s&&s(d),"\u51FD\u6570\u6267\u884C\u9519\u8BEF"}},intervalUnitHandle=(t,r)=>{switch(r){case RequestHttpIntervalEnum.SECOND:return t*1e3;case RequestHttpIntervalEnum.MINUTE:return t*1e3*60;case RequestHttpIntervalEnum.HOUR:return t*1e3*60*60;case RequestHttpIntervalEnum.DAY:return t*1e3*60*60*24;default:return t*1e3}},setKeyboardDressShow=t=>{var o,s;const r=new Map([[17,WinKeyboard.CTRL],[32,WinKeyboard.SPACE]]),n=document.getElementById("keyboard-dress-show");if(!!n){if(!t){(o=window.onKeySpacePressHold)==null||o.call(window,!1),n.innerText="";return}t&&r.has(t)&&(t==32&&((s=window.onKeySpacePressHold)==null||s.call(window,!0)),n.innerText=`\u6309\u4E0B\u4E86\u300C${r.get(t)}\u300D\u952E`)}},JSONStringify=t=>JSON.stringify(t,(r,n)=>typeof n=="function"?`${n}`:typeof n=="undefined"?null:n,2),JSONParse=data=>JSON.parse(data,(k,v)=>{if(excludeParseEventKeyList.includes(k))return v;if(typeof v=="string"&&v.indexOf&&(v.indexOf("function")>-1||v.indexOf("=>")>-1))return eval(`(function(){return ${v}})()`);if(typeof v=="string"&&v.indexOf&&v.indexOf("return ")>-1){const baseLeftIndex=v.indexOf("(");if(baseLeftIndex>-1){const newFn=`function ${v.substring(baseLeftIndex)}`;return eval(`(function(){return ${newFn}})()`)}}return v}),setTitle=t=>{t&&(document.title=t)};var cryptoJs={exports:{}},core$1={exports:{}};(function(t,r){(function(n,o){t.exports=o()})(commonjsGlobal,function(){var n=n||function(o,s){var l;if(typeof window!="undefined"&&window.crypto&&(l=window.crypto),typeof self!="undefined"&&self.crypto&&(l=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(l=globalThis.crypto),!l&&typeof window!="undefined"&&window.msCrypto&&(l=window.msCrypto),!l&&typeof commonjsGlobal!="undefined"&&commonjsGlobal.crypto&&(l=commonjsGlobal.crypto),!l&&typeof commonjsRequire=="function")try{l=require("crypto")}catch(R){}var d=function(){if(l){if(typeof l.getRandomValues=="function")try{return l.getRandomValues(new Uint32Array(1))[0]}catch(R){}if(typeof l.randomBytes=="function")try{return l.randomBytes(4).readInt32LE()}catch(R){}}throw new Error("Native crypto module could not be used to get secure random number.")},g=Object.create||function(){function R(){}return function(P){var M;return R.prototype=P,M=new R,R.prototype=null,M}}(),y={},b=y.lib={},C=b.Base=function(){return{extend:function(R){var P=g(this);return R&&P.mixIn(R),(!P.hasOwnProperty("init")||this.init===P.init)&&(P.init=function(){P.$super.init.apply(this,arguments)}),P.init.prototype=P,P.$super=this,P},create:function(){var R=this.extend();return R.init.apply(R,arguments),R},init:function(){},mixIn:function(R){for(var P in R)R.hasOwnProperty(P)&&(this[P]=R[P]);R.hasOwnProperty("toString")&&(this.toString=R.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=b.WordArray=C.extend({init:function(R,P){R=this.words=R||[],P!=s?this.sigBytes=P:this.sigBytes=R.length*4},toString:function(R){return(R||_).stringify(this)},concat:function(R){var P=this.words,M=R.words,O=this.sigBytes,D=R.sigBytes;if(this.clamp(),O%4)for(var N=0;N<D;N++){var H=M[N>>>2]>>>24-N%4*8&255;P[O+N>>>2]|=H<<24-(O+N)%4*8}else for(var Q=0;Q<D;Q+=4)P[O+Q>>>2]=M[Q>>>2];return this.sigBytes+=D,this},clamp:function(){var R=this.words,P=this.sigBytes;R[P>>>2]&=4294967295<<32-P%4*8,R.length=o.ceil(P/4)},clone:function(){var R=C.clone.call(this);return R.words=this.words.slice(0),R},random:function(R){for(var P=[],M=0;M<R;M+=4)P.push(d());return new x.init(P,R)}}),S=y.enc={},_=S.Hex={stringify:function(R){for(var P=R.words,M=R.sigBytes,O=[],D=0;D<M;D++){var N=P[D>>>2]>>>24-D%4*8&255;O.push((N>>>4).toString(16)),O.push((N&15).toString(16))}return O.join("")},parse:function(R){for(var P=R.length,M=[],O=0;O<P;O+=2)M[O>>>3]|=parseInt(R.substr(O,2),16)<<24-O%8*4;return new x.init(M,P/2)}},w=S.Latin1={stringify:function(R){for(var P=R.words,M=R.sigBytes,O=[],D=0;D<M;D++){var N=P[D>>>2]>>>24-D%4*8&255;O.push(String.fromCharCode(N))}return O.join("")},parse:function(R){for(var P=R.length,M=[],O=0;O<P;O++)M[O>>>2]|=(R.charCodeAt(O)&255)<<24-O%4*8;return new x.init(M,P)}},$=S.Utf8={stringify:function(R){try{return decodeURIComponent(escape(w.stringify(R)))}catch(P){throw new Error("Malformed UTF-8 data")}},parse:function(R){return w.parse(unescape(encodeURIComponent(R)))}},I=b.BufferedBlockAlgorithm=C.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(R){typeof R=="string"&&(R=$.parse(R)),this._data.concat(R),this._nDataBytes+=R.sigBytes},_process:function(R){var P,M=this._data,O=M.words,D=M.sigBytes,N=this.blockSize,H=N*4,Q=D/H;R?Q=o.ceil(Q):Q=o.max((Q|0)-this._minBufferSize,0);var G=Q*N,K=o.min(G*4,D);if(G){for(var W=0;W<G;W+=N)this._doProcessBlock(O,W);P=O.splice(0,G),M.sigBytes-=K}return new x.init(P,K)},clone:function(){var R=C.clone.call(this);return R._data=this._data.clone(),R},_minBufferSize:0});b.Hasher=I.extend({cfg:C.extend(),init:function(R){this.cfg=this.cfg.extend(R),this.reset()},reset:function(){I.reset.call(this),this._doReset()},update:function(R){return this._append(R),this._process(),this},finalize:function(R){R&&this._append(R);var P=this._doFinalize();return P},blockSize:16,_createHelper:function(R){return function(P,M){return new R.init(M).finalize(P)}},_createHmacHelper:function(R){return function(P,M){return new B.HMAC.init(R,M).finalize(P)}}});var B=y.algo={};return y}(Math);return n})})(core$1);var x64Core={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(o){var s=n,l=s.lib,d=l.Base,g=l.WordArray,y=s.x64={};y.Word=d.extend({init:function(b,C){this.high=b,this.low=C}}),y.WordArray=d.extend({init:function(b,C){b=this.words=b||[],C!=o?this.sigBytes=C:this.sigBytes=b.length*8},toX32:function(){for(var b=this.words,C=b.length,x=[],S=0;S<C;S++){var _=b[S];x.push(_.high),x.push(_.low)}return g.create(x,this.sigBytes)},clone:function(){for(var b=d.clone.call(this),C=b.words=this.words.slice(0),x=C.length,S=0;S<x;S++)C[S]=C[S].clone();return b}})}(),n})})(x64Core);var libTypedarrays={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(){if(typeof ArrayBuffer=="function"){var o=n,s=o.lib,l=s.WordArray,d=l.init,g=l.init=function(y){if(y instanceof ArrayBuffer&&(y=new Uint8Array(y)),(y instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&y instanceof Uint8ClampedArray||y instanceof Int16Array||y instanceof Uint16Array||y instanceof Int32Array||y instanceof Uint32Array||y instanceof Float32Array||y instanceof Float64Array)&&(y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength)),y instanceof Uint8Array){for(var b=y.byteLength,C=[],x=0;x<b;x++)C[x>>>2]|=y[x]<<24-x%4*8;d.call(this,C,b)}else d.apply(this,arguments)};g.prototype=l}}(),n.lib.WordArray})})(libTypedarrays);var encUtf16={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.WordArray,d=o.enc;d.Utf16=d.Utf16BE={stringify:function(y){for(var b=y.words,C=y.sigBytes,x=[],S=0;S<C;S+=2){var _=b[S>>>2]>>>16-S%4*8&65535;x.push(String.fromCharCode(_))}return x.join("")},parse:function(y){for(var b=y.length,C=[],x=0;x<b;x++)C[x>>>1]|=y.charCodeAt(x)<<16-x%2*16;return l.create(C,b*2)}},d.Utf16LE={stringify:function(y){for(var b=y.words,C=y.sigBytes,x=[],S=0;S<C;S+=2){var _=g(b[S>>>2]>>>16-S%4*8&65535);x.push(String.fromCharCode(_))}return x.join("")},parse:function(y){for(var b=y.length,C=[],x=0;x<b;x++)C[x>>>1]|=g(y.charCodeAt(x)<<16-x%2*16);return l.create(C,b*2)}};function g(y){return y<<8&4278255360|y>>>8&16711935}}(),n.enc.Utf16})})(encUtf16);var encBase64={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.WordArray,d=o.enc;d.Base64={stringify:function(y){var b=y.words,C=y.sigBytes,x=this._map;y.clamp();for(var S=[],_=0;_<C;_+=3)for(var w=b[_>>>2]>>>24-_%4*8&255,$=b[_+1>>>2]>>>24-(_+1)%4*8&255,I=b[_+2>>>2]>>>24-(_+2)%4*8&255,B=w<<16|$<<8|I,R=0;R<4&&_+R*.75<C;R++)S.push(x.charAt(B>>>6*(3-R)&63));var P=x.charAt(64);if(P)for(;S.length%4;)S.push(P);return S.join("")},parse:function(y){var b=y.length,C=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var S=0;S<C.length;S++)x[C.charCodeAt(S)]=S}var _=C.charAt(64);if(_){var w=y.indexOf(_);w!==-1&&(b=w)}return g(y,b,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function g(y,b,C){for(var x=[],S=0,_=0;_<b;_++)if(_%4){var w=C[y.charCodeAt(_-1)]<<_%4*2,$=C[y.charCodeAt(_)]>>>6-_%4*2,I=w|$;x[S>>>2]|=I<<24-S%4*8,S++}return l.create(x,S)}}(),n.enc.Base64})})(encBase64);var encBase64url={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.WordArray,d=o.enc;d.Base64url={stringify:function(y,b=!0){var C=y.words,x=y.sigBytes,S=b?this._safe_map:this._map;y.clamp();for(var _=[],w=0;w<x;w+=3)for(var $=C[w>>>2]>>>24-w%4*8&255,I=C[w+1>>>2]>>>24-(w+1)%4*8&255,B=C[w+2>>>2]>>>24-(w+2)%4*8&255,R=$<<16|I<<8|B,P=0;P<4&&w+P*.75<x;P++)_.push(S.charAt(R>>>6*(3-P)&63));var M=S.charAt(64);if(M)for(;_.length%4;)_.push(M);return _.join("")},parse:function(y,b=!0){var C=y.length,x=b?this._safe_map:this._map,S=this._reverseMap;if(!S){S=this._reverseMap=[];for(var _=0;_<x.length;_++)S[x.charCodeAt(_)]=_}var w=x.charAt(64);if(w){var $=y.indexOf(w);$!==-1&&(C=$)}return g(y,C,S)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function g(y,b,C){for(var x=[],S=0,_=0;_<b;_++)if(_%4){var w=C[y.charCodeAt(_-1)]<<_%4*2,$=C[y.charCodeAt(_)]>>>6-_%4*2,I=w|$;x[S>>>2]|=I<<24-S%4*8,S++}return l.create(x,S)}}(),n.enc.Base64url})})(encBase64url);var md5={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(o){var s=n,l=s.lib,d=l.WordArray,g=l.Hasher,y=s.algo,b=[];(function(){for(var $=0;$<64;$++)b[$]=o.abs(o.sin($+1))*4294967296|0})();var C=y.MD5=g.extend({_doReset:function(){this._hash=new d.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function($,I){for(var B=0;B<16;B++){var R=I+B,P=$[R];$[R]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}var M=this._hash.words,O=$[I+0],D=$[I+1],N=$[I+2],H=$[I+3],Q=$[I+4],G=$[I+5],K=$[I+6],W=$[I+7],j=$[I+8],Y=$[I+9],q=$[I+10],X=$[I+11],re=$[I+12],te=$[I+13],oe=$[I+14],ae=$[I+15],se=M[0],ue=M[1],Ae=M[2],pe=M[3];se=x(se,ue,Ae,pe,O,7,b[0]),pe=x(pe,se,ue,Ae,D,12,b[1]),Ae=x(Ae,pe,se,ue,N,17,b[2]),ue=x(ue,Ae,pe,se,H,22,b[3]),se=x(se,ue,Ae,pe,Q,7,b[4]),pe=x(pe,se,ue,Ae,G,12,b[5]),Ae=x(Ae,pe,se,ue,K,17,b[6]),ue=x(ue,Ae,pe,se,W,22,b[7]),se=x(se,ue,Ae,pe,j,7,b[8]),pe=x(pe,se,ue,Ae,Y,12,b[9]),Ae=x(Ae,pe,se,ue,q,17,b[10]),ue=x(ue,Ae,pe,se,X,22,b[11]),se=x(se,ue,Ae,pe,re,7,b[12]),pe=x(pe,se,ue,Ae,te,12,b[13]),Ae=x(Ae,pe,se,ue,oe,17,b[14]),ue=x(ue,Ae,pe,se,ae,22,b[15]),se=S(se,ue,Ae,pe,D,5,b[16]),pe=S(pe,se,ue,Ae,K,9,b[17]),Ae=S(Ae,pe,se,ue,X,14,b[18]),ue=S(ue,Ae,pe,se,O,20,b[19]),se=S(se,ue,Ae,pe,G,5,b[20]),pe=S(pe,se,ue,Ae,q,9,b[21]),Ae=S(Ae,pe,se,ue,ae,14,b[22]),ue=S(ue,Ae,pe,se,Q,20,b[23]),se=S(se,ue,Ae,pe,Y,5,b[24]),pe=S(pe,se,ue,Ae,oe,9,b[25]),Ae=S(Ae,pe,se,ue,H,14,b[26]),ue=S(ue,Ae,pe,se,j,20,b[27]),se=S(se,ue,Ae,pe,te,5,b[28]),pe=S(pe,se,ue,Ae,N,9,b[29]),Ae=S(Ae,pe,se,ue,W,14,b[30]),ue=S(ue,Ae,pe,se,re,20,b[31]),se=_(se,ue,Ae,pe,G,4,b[32]),pe=_(pe,se,ue,Ae,j,11,b[33]),Ae=_(Ae,pe,se,ue,X,16,b[34]),ue=_(ue,Ae,pe,se,oe,23,b[35]),se=_(se,ue,Ae,pe,D,4,b[36]),pe=_(pe,se,ue,Ae,Q,11,b[37]),Ae=_(Ae,pe,se,ue,W,16,b[38]),ue=_(ue,Ae,pe,se,q,23,b[39]),se=_(se,ue,Ae,pe,te,4,b[40]),pe=_(pe,se,ue,Ae,O,11,b[41]),Ae=_(Ae,pe,se,ue,H,16,b[42]),ue=_(ue,Ae,pe,se,K,23,b[43]),se=_(se,ue,Ae,pe,Y,4,b[44]),pe=_(pe,se,ue,Ae,re,11,b[45]),Ae=_(Ae,pe,se,ue,ae,16,b[46]),ue=_(ue,Ae,pe,se,N,23,b[47]),se=w(se,ue,Ae,pe,O,6,b[48]),pe=w(pe,se,ue,Ae,W,10,b[49]),Ae=w(Ae,pe,se,ue,oe,15,b[50]),ue=w(ue,Ae,pe,se,G,21,b[51]),se=w(se,ue,Ae,pe,re,6,b[52]),pe=w(pe,se,ue,Ae,H,10,b[53]),Ae=w(Ae,pe,se,ue,q,15,b[54]),ue=w(ue,Ae,pe,se,D,21,b[55]),se=w(se,ue,Ae,pe,j,6,b[56]),pe=w(pe,se,ue,Ae,ae,10,b[57]),Ae=w(Ae,pe,se,ue,K,15,b[58]),ue=w(ue,Ae,pe,se,te,21,b[59]),se=w(se,ue,Ae,pe,Q,6,b[60]),pe=w(pe,se,ue,Ae,X,10,b[61]),Ae=w(Ae,pe,se,ue,N,15,b[62]),ue=w(ue,Ae,pe,se,Y,21,b[63]),M[0]=M[0]+se|0,M[1]=M[1]+ue|0,M[2]=M[2]+Ae|0,M[3]=M[3]+pe|0},_doFinalize:function(){var $=this._data,I=$.words,B=this._nDataBytes*8,R=$.sigBytes*8;I[R>>>5]|=128<<24-R%32;var P=o.floor(B/4294967296),M=B;I[(R+64>>>9<<4)+15]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,I[(R+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,$.sigBytes=(I.length+1)*4,this._process();for(var O=this._hash,D=O.words,N=0;N<4;N++){var H=D[N];D[N]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return O},clone:function(){var $=g.clone.call(this);return $._hash=this._hash.clone(),$}});function x($,I,B,R,P,M,O){var D=$+(I&B|~I&R)+P+O;return(D<<M|D>>>32-M)+I}function S($,I,B,R,P,M,O){var D=$+(I&R|B&~R)+P+O;return(D<<M|D>>>32-M)+I}function _($,I,B,R,P,M,O){var D=$+(I^B^R)+P+O;return(D<<M|D>>>32-M)+I}function w($,I,B,R,P,M,O){var D=$+(B^(I|~R))+P+O;return(D<<M|D>>>32-M)+I}s.MD5=g._createHelper(C),s.HmacMD5=g._createHmacHelper(C)}(Math),n.MD5})})(md5);var sha1={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.WordArray,d=s.Hasher,g=o.algo,y=[],b=g.SHA1=d.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(C,x){for(var S=this._hash.words,_=S[0],w=S[1],$=S[2],I=S[3],B=S[4],R=0;R<80;R++){if(R<16)y[R]=C[x+R]|0;else{var P=y[R-3]^y[R-8]^y[R-14]^y[R-16];y[R]=P<<1|P>>>31}var M=(_<<5|_>>>27)+B+y[R];R<20?M+=(w&$|~w&I)+1518500249:R<40?M+=(w^$^I)+1859775393:R<60?M+=(w&$|w&I|$&I)-1894007588:M+=(w^$^I)-899497514,B=I,I=$,$=w<<30|w>>>2,w=_,_=M}S[0]=S[0]+_|0,S[1]=S[1]+w|0,S[2]=S[2]+$|0,S[3]=S[3]+I|0,S[4]=S[4]+B|0},_doFinalize:function(){var C=this._data,x=C.words,S=this._nDataBytes*8,_=C.sigBytes*8;return x[_>>>5]|=128<<24-_%32,x[(_+64>>>9<<4)+14]=Math.floor(S/4294967296),x[(_+64>>>9<<4)+15]=S,C.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var C=d.clone.call(this);return C._hash=this._hash.clone(),C}});o.SHA1=d._createHelper(b),o.HmacSHA1=d._createHmacHelper(b)}(),n.SHA1})})(sha1);var sha256={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){return function(o){var s=n,l=s.lib,d=l.WordArray,g=l.Hasher,y=s.algo,b=[],C=[];(function(){function _(B){for(var R=o.sqrt(B),P=2;P<=R;P++)if(!(B%P))return!1;return!0}function w(B){return(B-(B|0))*4294967296|0}for(var $=2,I=0;I<64;)_($)&&(I<8&&(b[I]=w(o.pow($,1/2))),C[I]=w(o.pow($,1/3)),I++),$++})();var x=[],S=y.SHA256=g.extend({_doReset:function(){this._hash=new d.init(b.slice(0))},_doProcessBlock:function(_,w){for(var $=this._hash.words,I=$[0],B=$[1],R=$[2],P=$[3],M=$[4],O=$[5],D=$[6],N=$[7],H=0;H<64;H++){if(H<16)x[H]=_[w+H]|0;else{var Q=x[H-15],G=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,K=x[H-2],W=(K<<15|K>>>17)^(K<<13|K>>>19)^K>>>10;x[H]=G+x[H-7]+W+x[H-16]}var j=M&O^~M&D,Y=I&B^I&R^B&R,q=(I<<30|I>>>2)^(I<<19|I>>>13)^(I<<10|I>>>22),X=(M<<26|M>>>6)^(M<<21|M>>>11)^(M<<7|M>>>25),re=N+X+j+C[H]+x[H],te=q+Y;N=D,D=O,O=M,M=P+re|0,P=R,R=B,B=I,I=re+te|0}$[0]=$[0]+I|0,$[1]=$[1]+B|0,$[2]=$[2]+R|0,$[3]=$[3]+P|0,$[4]=$[4]+M|0,$[5]=$[5]+O|0,$[6]=$[6]+D|0,$[7]=$[7]+N|0},_doFinalize:function(){var _=this._data,w=_.words,$=this._nDataBytes*8,I=_.sigBytes*8;return w[I>>>5]|=128<<24-I%32,w[(I+64>>>9<<4)+14]=o.floor($/4294967296),w[(I+64>>>9<<4)+15]=$,_.sigBytes=w.length*4,this._process(),this._hash},clone:function(){var _=g.clone.call(this);return _._hash=this._hash.clone(),_}});s.SHA256=g._createHelper(S),s.HmacSHA256=g._createHmacHelper(S)}(Math),n.SHA256})})(sha256);var sha224={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,sha256.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.WordArray,d=o.algo,g=d.SHA256,y=d.SHA224=g.extend({_doReset:function(){this._hash=new l.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var b=g._doFinalize.call(this);return b.sigBytes-=4,b}});o.SHA224=g._createHelper(y),o.HmacSHA224=g._createHmacHelper(y)}(),n.SHA224})})(sha224);var sha512={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,x64Core.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.Hasher,d=o.x64,g=d.Word,y=d.WordArray,b=o.algo;function C(){return g.create.apply(g,arguments)}var x=[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)],S=[];(function(){for(var w=0;w<80;w++)S[w]=C()})();var _=b.SHA512=l.extend({_doReset:function(){this._hash=new y.init([new g.init(1779033703,4089235720),new g.init(3144134277,2227873595),new g.init(1013904242,4271175723),new g.init(2773480762,1595750129),new g.init(1359893119,2917565137),new g.init(2600822924,725511199),new g.init(528734635,4215389547),new g.init(1541459225,327033209)])},_doProcessBlock:function(w,$){for(var I=this._hash.words,B=I[0],R=I[1],P=I[2],M=I[3],O=I[4],D=I[5],N=I[6],H=I[7],Q=B.high,G=B.low,K=R.high,W=R.low,j=P.high,Y=P.low,q=M.high,X=M.low,re=O.high,te=O.low,oe=D.high,ae=D.low,se=N.high,ue=N.low,Ae=H.high,pe=H.low,he=Q,Ce=G,ve=K,ye=W,Be=j,Se=Y,Ee=q,ie=X,ee=re,J=te,ce=oe,fe=ae,ne=se,le=ue,me=Ae,Te=pe,ge=0;ge<80;ge++){var $e,de,be=S[ge];if(ge<16)de=be.high=w[$+ge*2]|0,$e=be.low=w[$+ge*2+1]|0;else{var we=S[ge-15],Me=we.high,Ue=we.low,Ge=(Me>>>1|Ue<<31)^(Me>>>8|Ue<<24)^Me>>>7,Ze=(Ue>>>1|Me<<31)^(Ue>>>8|Me<<24)^(Ue>>>7|Me<<25),tt=S[ge-2],st=tt.high,We=tt.low,Je=(st>>>19|We<<13)^(st<<3|We>>>29)^st>>>6,Ye=(We>>>19|st<<13)^(We<<3|st>>>29)^(We>>>6|st<<26),Xe=S[ge-7],_e=Xe.high,xe=Xe.low,Le=S[ge-16],Ve=Le.high,ze=Le.low;$e=Ze+xe,de=Ge+_e+($e>>>0<Ze>>>0?1:0),$e=$e+Ye,de=de+Je+($e>>>0<Ye>>>0?1:0),$e=$e+ze,de=de+Ve+($e>>>0<ze>>>0?1:0),be.high=de,be.low=$e}var Re=ee&ce^~ee&ne,Ne=J&fe^~J&le,je=he&ve^he&Be^ve&Be,nt=Ce&ye^Ce&Se^ye&Se,De=(he>>>28|Ce<<4)^(he<<30|Ce>>>2)^(he<<25|Ce>>>7),Qe=(Ce>>>28|he<<4)^(Ce<<30|he>>>2)^(Ce<<25|he>>>7),Pe=(ee>>>14|J<<18)^(ee>>>18|J<<14)^(ee<<23|J>>>9),Ke=(J>>>14|ee<<18)^(J>>>18|ee<<14)^(J<<23|ee>>>9),ot=x[ge],ft=ot.high,it=ot.low,Ie=Te+Ke,Fe=me+Pe+(Ie>>>0<Te>>>0?1:0),Ie=Ie+Ne,Fe=Fe+Re+(Ie>>>0<Ne>>>0?1:0),Ie=Ie+it,Fe=Fe+ft+(Ie>>>0<it>>>0?1:0),Ie=Ie+$e,Fe=Fe+de+(Ie>>>0<$e>>>0?1:0),et=Qe+nt,At=De+je+(et>>>0<Qe>>>0?1:0);me=ne,Te=le,ne=ce,le=fe,ce=ee,fe=J,J=ie+Ie|0,ee=Ee+Fe+(J>>>0<ie>>>0?1:0)|0,Ee=Be,ie=Se,Be=ve,Se=ye,ve=he,ye=Ce,Ce=Ie+et|0,he=Fe+At+(Ce>>>0<Ie>>>0?1:0)|0}G=B.low=G+Ce,B.high=Q+he+(G>>>0<Ce>>>0?1:0),W=R.low=W+ye,R.high=K+ve+(W>>>0<ye>>>0?1:0),Y=P.low=Y+Se,P.high=j+Be+(Y>>>0<Se>>>0?1:0),X=M.low=X+ie,M.high=q+Ee+(X>>>0<ie>>>0?1:0),te=O.low=te+J,O.high=re+ee+(te>>>0<J>>>0?1:0),ae=D.low=ae+fe,D.high=oe+ce+(ae>>>0<fe>>>0?1:0),ue=N.low=ue+le,N.high=se+ne+(ue>>>0<le>>>0?1:0),pe=H.low=pe+Te,H.high=Ae+me+(pe>>>0<Te>>>0?1:0)},_doFinalize:function(){var w=this._data,$=w.words,I=this._nDataBytes*8,B=w.sigBytes*8;$[B>>>5]|=128<<24-B%32,$[(B+128>>>10<<5)+30]=Math.floor(I/4294967296),$[(B+128>>>10<<5)+31]=I,w.sigBytes=$.length*4,this._process();var R=this._hash.toX32();return R},clone:function(){var w=l.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:1024/32});o.SHA512=l._createHelper(_),o.HmacSHA512=l._createHmacHelper(_)}(),n.SHA512})})(sha512);var sha384={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,x64Core.exports,sha512.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.x64,l=s.Word,d=s.WordArray,g=o.algo,y=g.SHA512,b=g.SHA384=y.extend({_doReset:function(){this._hash=new d.init([new l.init(3418070365,3238371032),new l.init(1654270250,914150663),new l.init(2438529370,812702999),new l.init(355462360,4144912697),new l.init(1731405415,4290775857),new l.init(2394180231,1750603025),new l.init(3675008525,1694076839),new l.init(1203062813,3204075428)])},_doFinalize:function(){var C=y._doFinalize.call(this);return C.sigBytes-=16,C}});o.SHA384=y._createHelper(b),o.HmacSHA384=y._createHmacHelper(b)}(),n.SHA384})})(sha384);var sha3={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,x64Core.exports)})(commonjsGlobal,function(n){return function(o){var s=n,l=s.lib,d=l.WordArray,g=l.Hasher,y=s.x64,b=y.Word,C=s.algo,x=[],S=[],_=[];(function(){for(var I=1,B=0,R=0;R<24;R++){x[I+5*B]=(R+1)*(R+2)/2%64;var P=B%5,M=(2*I+3*B)%5;I=P,B=M}for(var I=0;I<5;I++)for(var B=0;B<5;B++)S[I+5*B]=B+(2*I+3*B)%5*5;for(var O=1,D=0;D<24;D++){for(var N=0,H=0,Q=0;Q<7;Q++){if(O&1){var G=(1<<Q)-1;G<32?H^=1<<G:N^=1<<G-32}O&128?O=O<<1^113:O<<=1}_[D]=b.create(N,H)}})();var w=[];(function(){for(var I=0;I<25;I++)w[I]=b.create()})();var $=C.SHA3=g.extend({cfg:g.cfg.extend({outputLength:512}),_doReset:function(){for(var I=this._state=[],B=0;B<25;B++)I[B]=new b.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(I,B){for(var R=this._state,P=this.blockSize/2,M=0;M<P;M++){var O=I[B+2*M],D=I[B+2*M+1];O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var N=R[M];N.high^=D,N.low^=O}for(var H=0;H<24;H++){for(var Q=0;Q<5;Q++){for(var G=0,K=0,W=0;W<5;W++){var N=R[Q+5*W];G^=N.high,K^=N.low}var j=w[Q];j.high=G,j.low=K}for(var Q=0;Q<5;Q++)for(var Y=w[(Q+4)%5],q=w[(Q+1)%5],X=q.high,re=q.low,G=Y.high^(X<<1|re>>>31),K=Y.low^(re<<1|X>>>31),W=0;W<5;W++){var N=R[Q+5*W];N.high^=G,N.low^=K}for(var te=1;te<25;te++){var G,K,N=R[te],oe=N.high,ae=N.low,se=x[te];se<32?(G=oe<<se|ae>>>32-se,K=ae<<se|oe>>>32-se):(G=ae<<se-32|oe>>>64-se,K=oe<<se-32|ae>>>64-se);var ue=w[S[te]];ue.high=G,ue.low=K}var Ae=w[0],pe=R[0];Ae.high=pe.high,Ae.low=pe.low;for(var Q=0;Q<5;Q++)for(var W=0;W<5;W++){var te=Q+5*W,N=R[te],he=w[te],Ce=w[(Q+1)%5+5*W],ve=w[(Q+2)%5+5*W];N.high=he.high^~Ce.high&ve.high,N.low=he.low^~Ce.low&ve.low}var N=R[0],ye=_[H];N.high^=ye.high,N.low^=ye.low}},_doFinalize:function(){var I=this._data,B=I.words;this._nDataBytes*8;var R=I.sigBytes*8,P=this.blockSize*32;B[R>>>5]|=1<<24-R%32,B[(o.ceil((R+1)/P)*P>>>5)-1]|=128,I.sigBytes=B.length*4,this._process();for(var M=this._state,O=this.cfg.outputLength/8,D=O/8,N=[],H=0;H<D;H++){var Q=M[H],G=Q.high,K=Q.low;G=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360,K=(K<<8|K>>>24)&16711935|(K<<24|K>>>8)&4278255360,N.push(K),N.push(G)}return new d.init(N,O)},clone:function(){for(var I=g.clone.call(this),B=I._state=this._state.slice(0),R=0;R<25;R++)B[R]=B[R].clone();return I}});s.SHA3=g._createHelper($),s.HmacSHA3=g._createHmacHelper($)}(Math),n.SHA3})})(sha3);var ripemd160={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){/** @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(o){var s=n,l=s.lib,d=l.WordArray,g=l.Hasher,y=s.algo,b=d.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=d.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]),x=d.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]),S=d.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]),_=d.create([0,1518500249,1859775393,2400959708,2840853838]),w=d.create([1352829926,1548603684,1836072691,2053994217,0]),$=y.RIPEMD160=g.extend({_doReset:function(){this._hash=d.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,N){for(var H=0;H<16;H++){var Q=N+H,G=D[Q];D[Q]=(G<<8|G>>>24)&16711935|(G<<24|G>>>8)&4278255360}var K=this._hash.words,W=_.words,j=w.words,Y=b.words,q=C.words,X=x.words,re=S.words,te,oe,ae,se,ue,Ae,pe,he,Ce,ve;Ae=te=K[0],pe=oe=K[1],he=ae=K[2],Ce=se=K[3],ve=ue=K[4];for(var ye,H=0;H<80;H+=1)ye=te+D[N+Y[H]]|0,H<16?ye+=I(oe,ae,se)+W[0]:H<32?ye+=B(oe,ae,se)+W[1]:H<48?ye+=R(oe,ae,se)+W[2]:H<64?ye+=P(oe,ae,se)+W[3]:ye+=M(oe,ae,se)+W[4],ye=ye|0,ye=O(ye,X[H]),ye=ye+ue|0,te=ue,ue=se,se=O(ae,10),ae=oe,oe=ye,ye=Ae+D[N+q[H]]|0,H<16?ye+=M(pe,he,Ce)+j[0]:H<32?ye+=P(pe,he,Ce)+j[1]:H<48?ye+=R(pe,he,Ce)+j[2]:H<64?ye+=B(pe,he,Ce)+j[3]:ye+=I(pe,he,Ce)+j[4],ye=ye|0,ye=O(ye,re[H]),ye=ye+ve|0,Ae=ve,ve=Ce,Ce=O(he,10),he=pe,pe=ye;ye=K[1]+ae+Ce|0,K[1]=K[2]+se+ve|0,K[2]=K[3]+ue+Ae|0,K[3]=K[4]+te+pe|0,K[4]=K[0]+oe+he|0,K[0]=ye},_doFinalize:function(){var D=this._data,N=D.words,H=this._nDataBytes*8,Q=D.sigBytes*8;N[Q>>>5]|=128<<24-Q%32,N[(Q+64>>>9<<4)+14]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,D.sigBytes=(N.length+1)*4,this._process();for(var G=this._hash,K=G.words,W=0;W<5;W++){var j=K[W];K[W]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return G},clone:function(){var D=g.clone.call(this);return D._hash=this._hash.clone(),D}});function I(D,N,H){return D^N^H}function B(D,N,H){return D&N|~D&H}function R(D,N,H){return(D|~N)^H}function P(D,N,H){return D&H|N&~H}function M(D,N,H){return D^(N|~H)}function O(D,N){return D<<N|D>>>32-N}s.RIPEMD160=g._createHelper($),s.HmacRIPEMD160=g._createHmacHelper($)}(),n.RIPEMD160})})(ripemd160);var hmac={exports:{}};(function(t,r){(function(n,o){t.exports=o(core$1.exports)})(commonjsGlobal,function(n){(function(){var o=n,s=o.lib,l=s.Base,d=o.enc,g=d.Utf8,y=o.algo;y.HMAC=l.extend({init:function(b,C){b=this._hasher=new b.init,typeof C=="string"&&(C=g.parse(C));var x=b.blockSize,S=x*4;C.sigBytes>S&&(C=b.finalize(C)),C.clamp();for(var _=this._oKey=C.clone(),w=this._iKey=C.clone(),$=_.words,I=w.words,B=0;B<x;B++)$[B]^=1549556828,I[B]^=909522486;_.sigBytes=w.sigBytes=S,this.reset()},reset:function(){var b=this._hasher;b.reset(),b.update(this._iKey)},update:function(b){return this._hasher.update(b),this},finalize:function(b){var C=this._hasher,x=C.finalize(b);C.reset();var S=C.finalize(this._oKey.clone().concat(x));return S}})})()})})(hmac);var pbkdf2={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,sha1.exports,hmac.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.Base,d=s.WordArray,g=o.algo,y=g.SHA1,b=g.HMAC,C=g.PBKDF2=l.extend({cfg:l.extend({keySize:128/32,hasher:y,iterations:1}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,S){for(var _=this.cfg,w=b.create(_.hasher,x),$=d.create(),I=d.create([1]),B=$.words,R=I.words,P=_.keySize,M=_.iterations;B.length<P;){var O=w.update(S).finalize(I);w.reset();for(var D=O.words,N=D.length,H=O,Q=1;Q<M;Q++){H=w.finalize(H),w.reset();for(var G=H.words,K=0;K<N;K++)D[K]^=G[K]}$.concat(O),R[0]++}return $.sigBytes=P*4,$}});o.PBKDF2=function(x,S,_){return C.create(_).compute(x,S)}}(),n.PBKDF2})})(pbkdf2);var evpkdf={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,sha1.exports,hmac.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.Base,d=s.WordArray,g=o.algo,y=g.MD5,b=g.EvpKDF=l.extend({cfg:l.extend({keySize:128/32,hasher:y,iterations:1}),init:function(C){this.cfg=this.cfg.extend(C)},compute:function(C,x){for(var S,_=this.cfg,w=_.hasher.create(),$=d.create(),I=$.words,B=_.keySize,R=_.iterations;I.length<B;){S&&w.update(S),S=w.update(C).finalize(x),w.reset();for(var P=1;P<R;P++)S=w.finalize(S),w.reset();$.concat(S)}return $.sigBytes=B*4,$}});o.EvpKDF=function(C,x,S){return b.create(S).compute(C,x)}}(),n.EvpKDF})})(evpkdf);var cipherCore={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,evpkdf.exports)})(commonjsGlobal,function(n){n.lib.Cipher||function(o){var s=n,l=s.lib,d=l.Base,g=l.WordArray,y=l.BufferedBlockAlgorithm,b=s.enc;b.Utf8;var C=b.Base64,x=s.algo,S=x.EvpKDF,_=l.Cipher=y.extend({cfg:d.extend(),createEncryptor:function(G,K){return this.create(this._ENC_XFORM_MODE,G,K)},createDecryptor:function(G,K){return this.create(this._DEC_XFORM_MODE,G,K)},init:function(G,K,W){this.cfg=this.cfg.extend(W),this._xformMode=G,this._key=K,this.reset()},reset:function(){y.reset.call(this),this._doReset()},process:function(G){return this._append(G),this._process()},finalize:function(G){G&&this._append(G);var K=this._doFinalize();return K},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function G(K){return typeof K=="string"?Q:D}return function(K){return{encrypt:function(W,j,Y){return G(j).encrypt(K,W,j,Y)},decrypt:function(W,j,Y){return G(j).decrypt(K,W,j,Y)}}}}()});l.StreamCipher=_.extend({_doFinalize:function(){var G=this._process(!0);return G},blockSize:1});var w=s.mode={},$=l.BlockCipherMode=d.extend({createEncryptor:function(G,K){return this.Encryptor.create(G,K)},createDecryptor:function(G,K){return this.Decryptor.create(G,K)},init:function(G,K){this._cipher=G,this._iv=K}}),I=w.CBC=function(){var G=$.extend();G.Encryptor=G.extend({processBlock:function(W,j){var Y=this._cipher,q=Y.blockSize;K.call(this,W,j,q),Y.encryptBlock(W,j),this._prevBlock=W.slice(j,j+q)}}),G.Decryptor=G.extend({processBlock:function(W,j){var Y=this._cipher,q=Y.blockSize,X=W.slice(j,j+q);Y.decryptBlock(W,j),K.call(this,W,j,q),this._prevBlock=X}});function K(W,j,Y){var q,X=this._iv;X?(q=X,this._iv=o):q=this._prevBlock;for(var re=0;re<Y;re++)W[j+re]^=q[re]}return G}(),B=s.pad={},R=B.Pkcs7={pad:function(G,K){for(var W=K*4,j=W-G.sigBytes%W,Y=j<<24|j<<16|j<<8|j,q=[],X=0;X<j;X+=4)q.push(Y);var re=g.create(q,j);G.concat(re)},unpad:function(G){var K=G.words[G.sigBytes-1>>>2]&255;G.sigBytes-=K}};l.BlockCipher=_.extend({cfg:_.cfg.extend({mode:I,padding:R}),reset:function(){var G;_.reset.call(this);var K=this.cfg,W=K.iv,j=K.mode;this._xformMode==this._ENC_XFORM_MODE?G=j.createEncryptor:(G=j.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==G?this._mode.init(this,W&&W.words):(this._mode=G.call(j,this,W&&W.words),this._mode.__creator=G)},_doProcessBlock:function(G,K){this._mode.processBlock(G,K)},_doFinalize:function(){var G,K=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(K.pad(this._data,this.blockSize),G=this._process(!0)):(G=this._process(!0),K.unpad(G)),G},blockSize:128/32});var P=l.CipherParams=d.extend({init:function(G){this.mixIn(G)},toString:function(G){return(G||this.formatter).stringify(this)}}),M=s.format={},O=M.OpenSSL={stringify:function(G){var K,W=G.ciphertext,j=G.salt;return j?K=g.create([1398893684,1701076831]).concat(j).concat(W):K=W,K.toString(C)},parse:function(G){var K,W=C.parse(G),j=W.words;return j[0]==1398893684&&j[1]==1701076831&&(K=g.create(j.slice(2,4)),j.splice(0,4),W.sigBytes-=16),P.create({ciphertext:W,salt:K})}},D=l.SerializableCipher=d.extend({cfg:d.extend({format:O}),encrypt:function(G,K,W,j){j=this.cfg.extend(j);var Y=G.createEncryptor(W,j),q=Y.finalize(K),X=Y.cfg;return P.create({ciphertext:q,key:W,iv:X.iv,algorithm:G,mode:X.mode,padding:X.padding,blockSize:G.blockSize,formatter:j.format})},decrypt:function(G,K,W,j){j=this.cfg.extend(j),K=this._parse(K,j.format);var Y=G.createDecryptor(W,j).finalize(K.ciphertext);return Y},_parse:function(G,K){return typeof G=="string"?K.parse(G,this):G}}),N=s.kdf={},H=N.OpenSSL={execute:function(G,K,W,j){j||(j=g.random(64/8));var Y=S.create({keySize:K+W}).compute(G,j),q=g.create(Y.words.slice(K),W*4);return Y.sigBytes=K*4,P.create({key:Y,iv:q,salt:j})}},Q=l.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:H}),encrypt:function(G,K,W,j){j=this.cfg.extend(j);var Y=j.kdf.execute(W,G.keySize,G.ivSize);j.iv=Y.iv;var q=D.encrypt.call(this,G,K,Y.key,j);return q.mixIn(Y),q},decrypt:function(G,K,W,j){j=this.cfg.extend(j),K=this._parse(K,j.format);var Y=j.kdf.execute(W,G.keySize,G.ivSize,K.salt);j.iv=Y.iv;var q=D.decrypt.call(this,G,K,Y.key,j);return q}})}()})})(cipherCore);var modeCfb={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.mode.CFB=function(){var o=n.lib.BlockCipherMode.extend();o.Encryptor=o.extend({processBlock:function(l,d){var g=this._cipher,y=g.blockSize;s.call(this,l,d,y,g),this._prevBlock=l.slice(d,d+y)}}),o.Decryptor=o.extend({processBlock:function(l,d){var g=this._cipher,y=g.blockSize,b=l.slice(d,d+y);s.call(this,l,d,y,g),this._prevBlock=b}});function s(l,d,g,y){var b,C=this._iv;C?(b=C.slice(0),this._iv=void 0):b=this._prevBlock,y.encryptBlock(b,0);for(var x=0;x<g;x++)l[d+x]^=b[x]}return o}(),n.mode.CFB})})(modeCfb);var modeCtr={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.mode.CTR=function(){var o=n.lib.BlockCipherMode.extend(),s=o.Encryptor=o.extend({processBlock:function(l,d){var g=this._cipher,y=g.blockSize,b=this._iv,C=this._counter;b&&(C=this._counter=b.slice(0),this._iv=void 0);var x=C.slice(0);g.encryptBlock(x,0),C[y-1]=C[y-1]+1|0;for(var S=0;S<y;S++)l[d+S]^=x[S]}});return o.Decryptor=s,o}(),n.mode.CTR})})(modeCtr);var modeCtrGladman={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){/** @preserve
|
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
* derived from CryptoJS.mode.CTR
|
|
* Jan Hruby jhruby.web@gmail.com
|
|
*/return n.mode.CTRGladman=function(){var o=n.lib.BlockCipherMode.extend();function s(g){if((g>>24&255)===255){var y=g>>16&255,b=g>>8&255,C=g&255;y===255?(y=0,b===255?(b=0,C===255?C=0:++C):++b):++y,g=0,g+=y<<16,g+=b<<8,g+=C}else g+=1<<24;return g}function l(g){return(g[0]=s(g[0]))===0&&(g[1]=s(g[1])),g}var d=o.Encryptor=o.extend({processBlock:function(g,y){var b=this._cipher,C=b.blockSize,x=this._iv,S=this._counter;x&&(S=this._counter=x.slice(0),this._iv=void 0),l(S);var _=S.slice(0);b.encryptBlock(_,0);for(var w=0;w<C;w++)g[y+w]^=_[w]}});return o.Decryptor=d,o}(),n.mode.CTRGladman})})(modeCtrGladman);var modeOfb={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.mode.OFB=function(){var o=n.lib.BlockCipherMode.extend(),s=o.Encryptor=o.extend({processBlock:function(l,d){var g=this._cipher,y=g.blockSize,b=this._iv,C=this._keystream;b&&(C=this._keystream=b.slice(0),this._iv=void 0),g.encryptBlock(C,0);for(var x=0;x<y;x++)l[d+x]^=C[x]}});return o.Decryptor=s,o}(),n.mode.OFB})})(modeOfb);var modeEcb={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.mode.ECB=function(){var o=n.lib.BlockCipherMode.extend();return o.Encryptor=o.extend({processBlock:function(s,l){this._cipher.encryptBlock(s,l)}}),o.Decryptor=o.extend({processBlock:function(s,l){this._cipher.decryptBlock(s,l)}}),o}(),n.mode.ECB})})(modeEcb);var padAnsix923={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.pad.AnsiX923={pad:function(o,s){var l=o.sigBytes,d=s*4,g=d-l%d,y=l+g-1;o.clamp(),o.words[y>>>2]|=g<<24-y%4*8,o.sigBytes+=g},unpad:function(o){var s=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=s}},n.pad.Ansix923})})(padAnsix923);var padIso10126={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.pad.Iso10126={pad:function(o,s){var l=s*4,d=l-o.sigBytes%l;o.concat(n.lib.WordArray.random(d-1)).concat(n.lib.WordArray.create([d<<24],1))},unpad:function(o){var s=o.words[o.sigBytes-1>>>2]&255;o.sigBytes-=s}},n.pad.Iso10126})})(padIso10126);var padIso97971={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.pad.Iso97971={pad:function(o,s){o.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(o,s)},unpad:function(o){n.pad.ZeroPadding.unpad(o),o.sigBytes--}},n.pad.Iso97971})})(padIso97971);var padZeropadding={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.pad.ZeroPadding={pad:function(o,s){var l=s*4;o.clamp(),o.sigBytes+=l-(o.sigBytes%l||l)},unpad:function(o){for(var s=o.words,l=o.sigBytes-1,l=o.sigBytes-1;l>=0;l--)if(s[l>>>2]>>>24-l%4*8&255){o.sigBytes=l+1;break}}},n.pad.ZeroPadding})})(padZeropadding);var padNopadding={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(padNopadding);var formatHex={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,cipherCore.exports)})(commonjsGlobal,function(n){return function(o){var s=n,l=s.lib,d=l.CipherParams,g=s.enc,y=g.Hex,b=s.format;b.Hex={stringify:function(C){return C.ciphertext.toString(y)},parse:function(C){var x=y.parse(C);return d.create({ciphertext:x})}}}(),n.format.Hex})})(formatHex);var aes={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.BlockCipher,d=o.algo,g=[],y=[],b=[],C=[],x=[],S=[],_=[],w=[],$=[],I=[];(function(){for(var P=[],M=0;M<256;M++)M<128?P[M]=M<<1:P[M]=M<<1^283;for(var O=0,D=0,M=0;M<256;M++){var N=D^D<<1^D<<2^D<<3^D<<4;N=N>>>8^N&255^99,g[O]=N,y[N]=O;var H=P[O],Q=P[H],G=P[Q],K=P[N]*257^N*16843008;b[O]=K<<24|K>>>8,C[O]=K<<16|K>>>16,x[O]=K<<8|K>>>24,S[O]=K;var K=G*16843009^Q*65537^H*257^O*16843008;_[N]=K<<24|K>>>8,w[N]=K<<16|K>>>16,$[N]=K<<8|K>>>24,I[N]=K,O?(O=H^P[P[P[G^H]]],D^=P[P[D]]):O=D=1}})();var B=[0,1,2,4,8,16,32,64,128,27,54],R=d.AES=l.extend({_doReset:function(){var P;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var M=this._keyPriorReset=this._key,O=M.words,D=M.sigBytes/4,N=this._nRounds=D+6,H=(N+1)*4,Q=this._keySchedule=[],G=0;G<H;G++)G<D?Q[G]=O[G]:(P=Q[G-1],G%D?D>6&&G%D==4&&(P=g[P>>>24]<<24|g[P>>>16&255]<<16|g[P>>>8&255]<<8|g[P&255]):(P=P<<8|P>>>24,P=g[P>>>24]<<24|g[P>>>16&255]<<16|g[P>>>8&255]<<8|g[P&255],P^=B[G/D|0]<<24),Q[G]=Q[G-D]^P);for(var K=this._invKeySchedule=[],W=0;W<H;W++){var G=H-W;if(W%4)var P=Q[G];else var P=Q[G-4];W<4||G<=4?K[W]=P:K[W]=_[g[P>>>24]]^w[g[P>>>16&255]]^$[g[P>>>8&255]]^I[g[P&255]]}}},encryptBlock:function(P,M){this._doCryptBlock(P,M,this._keySchedule,b,C,x,S,g)},decryptBlock:function(P,M){var O=P[M+1];P[M+1]=P[M+3],P[M+3]=O,this._doCryptBlock(P,M,this._invKeySchedule,_,w,$,I,y);var O=P[M+1];P[M+1]=P[M+3],P[M+3]=O},_doCryptBlock:function(P,M,O,D,N,H,Q,G){for(var K=this._nRounds,W=P[M]^O[0],j=P[M+1]^O[1],Y=P[M+2]^O[2],q=P[M+3]^O[3],X=4,re=1;re<K;re++){var te=D[W>>>24]^N[j>>>16&255]^H[Y>>>8&255]^Q[q&255]^O[X++],oe=D[j>>>24]^N[Y>>>16&255]^H[q>>>8&255]^Q[W&255]^O[X++],ae=D[Y>>>24]^N[q>>>16&255]^H[W>>>8&255]^Q[j&255]^O[X++],se=D[q>>>24]^N[W>>>16&255]^H[j>>>8&255]^Q[Y&255]^O[X++];W=te,j=oe,Y=ae,q=se}var te=(G[W>>>24]<<24|G[j>>>16&255]<<16|G[Y>>>8&255]<<8|G[q&255])^O[X++],oe=(G[j>>>24]<<24|G[Y>>>16&255]<<16|G[q>>>8&255]<<8|G[W&255])^O[X++],ae=(G[Y>>>24]<<24|G[q>>>16&255]<<16|G[W>>>8&255]<<8|G[j&255])^O[X++],se=(G[q>>>24]<<24|G[W>>>16&255]<<16|G[j>>>8&255]<<8|G[Y&255])^O[X++];P[M]=te,P[M+1]=oe,P[M+2]=ae,P[M+3]=se},keySize:256/32});o.AES=l._createHelper(R)}(),n.AES})})(aes);var tripledes={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.WordArray,d=s.BlockCipher,g=o.algo,y=[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],b=[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],x=[{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}],S=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],_=g.DES=d.extend({_doReset:function(){for(var B=this._key,R=B.words,P=[],M=0;M<56;M++){var O=y[M]-1;P[M]=R[O>>>5]>>>31-O%32&1}for(var D=this._subKeys=[],N=0;N<16;N++){for(var H=D[N]=[],Q=C[N],M=0;M<24;M++)H[M/6|0]|=P[(b[M]-1+Q)%28]<<31-M%6,H[4+(M/6|0)]|=P[28+(b[M+24]-1+Q)%28]<<31-M%6;H[0]=H[0]<<1|H[0]>>>31;for(var M=1;M<7;M++)H[M]=H[M]>>>(M-1)*4+3;H[7]=H[7]<<5|H[7]>>>27}for(var G=this._invSubKeys=[],M=0;M<16;M++)G[M]=D[15-M]},encryptBlock:function(B,R){this._doCryptBlock(B,R,this._subKeys)},decryptBlock:function(B,R){this._doCryptBlock(B,R,this._invSubKeys)},_doCryptBlock:function(B,R,P){this._lBlock=B[R],this._rBlock=B[R+1],w.call(this,4,252645135),w.call(this,16,65535),$.call(this,2,858993459),$.call(this,8,16711935),w.call(this,1,1431655765);for(var M=0;M<16;M++){for(var O=P[M],D=this._lBlock,N=this._rBlock,H=0,Q=0;Q<8;Q++)H|=x[Q][((N^O[Q])&S[Q])>>>0];this._lBlock=N,this._rBlock=D^H}var G=this._lBlock;this._lBlock=this._rBlock,this._rBlock=G,w.call(this,1,1431655765),$.call(this,8,16711935),$.call(this,2,858993459),w.call(this,16,65535),w.call(this,4,252645135),B[R]=this._lBlock,B[R+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function w(B,R){var P=(this._lBlock>>>B^this._rBlock)&R;this._rBlock^=P,this._lBlock^=P<<B}function $(B,R){var P=(this._rBlock>>>B^this._lBlock)&R;this._lBlock^=P,this._rBlock^=P<<B}o.DES=d._createHelper(_);var I=g.TripleDES=d.extend({_doReset:function(){var B=this._key,R=B.words;if(R.length!==2&&R.length!==4&&R.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var P=R.slice(0,2),M=R.length<4?R.slice(0,2):R.slice(2,4),O=R.length<6?R.slice(0,2):R.slice(4,6);this._des1=_.createEncryptor(l.create(P)),this._des2=_.createEncryptor(l.create(M)),this._des3=_.createEncryptor(l.create(O))},encryptBlock:function(B,R){this._des1.encryptBlock(B,R),this._des2.decryptBlock(B,R),this._des3.encryptBlock(B,R)},decryptBlock:function(B,R){this._des3.decryptBlock(B,R),this._des2.encryptBlock(B,R),this._des1.decryptBlock(B,R)},keySize:192/32,ivSize:64/32,blockSize:64/32});o.TripleDES=d._createHelper(I)}(),n.TripleDES})})(tripledes);var rc4={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.StreamCipher,d=o.algo,g=d.RC4=l.extend({_doReset:function(){for(var C=this._key,x=C.words,S=C.sigBytes,_=this._S=[],w=0;w<256;w++)_[w]=w;for(var w=0,$=0;w<256;w++){var I=w%S,B=x[I>>>2]>>>24-I%4*8&255;$=($+_[w]+B)%256;var R=_[w];_[w]=_[$],_[$]=R}this._i=this._j=0},_doProcessBlock:function(C,x){C[x]^=y.call(this)},keySize:256/32,ivSize:0});function y(){for(var C=this._S,x=this._i,S=this._j,_=0,w=0;w<4;w++){x=(x+1)%256,S=(S+C[x])%256;var $=C[x];C[x]=C[S],C[S]=$,_|=C[(C[x]+C[S])%256]<<24-w*8}return this._i=x,this._j=S,_}o.RC4=l._createHelper(g);var b=d.RC4Drop=g.extend({cfg:g.cfg.extend({drop:192}),_doReset:function(){g._doReset.call(this);for(var C=this.cfg.drop;C>0;C--)y.call(this)}});o.RC4Drop=l._createHelper(b)}(),n.RC4})})(rc4);var rabbit={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.StreamCipher,d=o.algo,g=[],y=[],b=[],C=d.Rabbit=l.extend({_doReset:function(){for(var S=this._key.words,_=this.cfg.iv,w=0;w<4;w++)S[w]=(S[w]<<8|S[w]>>>24)&16711935|(S[w]<<24|S[w]>>>8)&4278255360;var $=this._X=[S[0],S[3]<<16|S[2]>>>16,S[1],S[0]<<16|S[3]>>>16,S[2],S[1]<<16|S[0]>>>16,S[3],S[2]<<16|S[1]>>>16],I=this._C=[S[2]<<16|S[2]>>>16,S[0]&4294901760|S[1]&65535,S[3]<<16|S[3]>>>16,S[1]&4294901760|S[2]&65535,S[0]<<16|S[0]>>>16,S[2]&4294901760|S[3]&65535,S[1]<<16|S[1]>>>16,S[3]&4294901760|S[0]&65535];this._b=0;for(var w=0;w<4;w++)x.call(this);for(var w=0;w<8;w++)I[w]^=$[w+4&7];if(_){var B=_.words,R=B[0],P=B[1],M=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,O=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,D=M>>>16|O&4294901760,N=O<<16|M&65535;I[0]^=M,I[1]^=D,I[2]^=O,I[3]^=N,I[4]^=M,I[5]^=D,I[6]^=O,I[7]^=N;for(var w=0;w<4;w++)x.call(this)}},_doProcessBlock:function(S,_){var w=this._X;x.call(this),g[0]=w[0]^w[5]>>>16^w[3]<<16,g[1]=w[2]^w[7]>>>16^w[5]<<16,g[2]=w[4]^w[1]>>>16^w[7]<<16,g[3]=w[6]^w[3]>>>16^w[1]<<16;for(var $=0;$<4;$++)g[$]=(g[$]<<8|g[$]>>>24)&16711935|(g[$]<<24|g[$]>>>8)&4278255360,S[_+$]^=g[$]},blockSize:128/32,ivSize:64/32});function x(){for(var S=this._X,_=this._C,w=0;w<8;w++)y[w]=_[w];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<y[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<y[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<y[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<y[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<y[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<y[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<y[6]>>>0?1:0)|0,this._b=_[7]>>>0<y[7]>>>0?1:0;for(var w=0;w<8;w++){var $=S[w]+_[w],I=$&65535,B=$>>>16,R=((I*I>>>17)+I*B>>>15)+B*B,P=(($&4294901760)*$|0)+(($&65535)*$|0);b[w]=R^P}S[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,S[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,S[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,S[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,S[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,S[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,S[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,S[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}o.Rabbit=l._createHelper(C)}(),n.Rabbit})})(rabbit);var rabbitLegacy={exports:{}};(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,encBase64.exports,md5.exports,evpkdf.exports,cipherCore.exports)})(commonjsGlobal,function(n){return function(){var o=n,s=o.lib,l=s.StreamCipher,d=o.algo,g=[],y=[],b=[],C=d.RabbitLegacy=l.extend({_doReset:function(){var S=this._key.words,_=this.cfg.iv,w=this._X=[S[0],S[3]<<16|S[2]>>>16,S[1],S[0]<<16|S[3]>>>16,S[2],S[1]<<16|S[0]>>>16,S[3],S[2]<<16|S[1]>>>16],$=this._C=[S[2]<<16|S[2]>>>16,S[0]&4294901760|S[1]&65535,S[3]<<16|S[3]>>>16,S[1]&4294901760|S[2]&65535,S[0]<<16|S[0]>>>16,S[2]&4294901760|S[3]&65535,S[1]<<16|S[1]>>>16,S[3]&4294901760|S[0]&65535];this._b=0;for(var I=0;I<4;I++)x.call(this);for(var I=0;I<8;I++)$[I]^=w[I+4&7];if(_){var B=_.words,R=B[0],P=B[1],M=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,O=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,D=M>>>16|O&4294901760,N=O<<16|M&65535;$[0]^=M,$[1]^=D,$[2]^=O,$[3]^=N,$[4]^=M,$[5]^=D,$[6]^=O,$[7]^=N;for(var I=0;I<4;I++)x.call(this)}},_doProcessBlock:function(S,_){var w=this._X;x.call(this),g[0]=w[0]^w[5]>>>16^w[3]<<16,g[1]=w[2]^w[7]>>>16^w[5]<<16,g[2]=w[4]^w[1]>>>16^w[7]<<16,g[3]=w[6]^w[3]>>>16^w[1]<<16;for(var $=0;$<4;$++)g[$]=(g[$]<<8|g[$]>>>24)&16711935|(g[$]<<24|g[$]>>>8)&4278255360,S[_+$]^=g[$]},blockSize:128/32,ivSize:64/32});function x(){for(var S=this._X,_=this._C,w=0;w<8;w++)y[w]=_[w];_[0]=_[0]+1295307597+this._b|0,_[1]=_[1]+3545052371+(_[0]>>>0<y[0]>>>0?1:0)|0,_[2]=_[2]+886263092+(_[1]>>>0<y[1]>>>0?1:0)|0,_[3]=_[3]+1295307597+(_[2]>>>0<y[2]>>>0?1:0)|0,_[4]=_[4]+3545052371+(_[3]>>>0<y[3]>>>0?1:0)|0,_[5]=_[5]+886263092+(_[4]>>>0<y[4]>>>0?1:0)|0,_[6]=_[6]+1295307597+(_[5]>>>0<y[5]>>>0?1:0)|0,_[7]=_[7]+3545052371+(_[6]>>>0<y[6]>>>0?1:0)|0,this._b=_[7]>>>0<y[7]>>>0?1:0;for(var w=0;w<8;w++){var $=S[w]+_[w],I=$&65535,B=$>>>16,R=((I*I>>>17)+I*B>>>15)+B*B,P=(($&4294901760)*$|0)+(($&65535)*$|0);b[w]=R^P}S[0]=b[0]+(b[7]<<16|b[7]>>>16)+(b[6]<<16|b[6]>>>16)|0,S[1]=b[1]+(b[0]<<8|b[0]>>>24)+b[7]|0,S[2]=b[2]+(b[1]<<16|b[1]>>>16)+(b[0]<<16|b[0]>>>16)|0,S[3]=b[3]+(b[2]<<8|b[2]>>>24)+b[1]|0,S[4]=b[4]+(b[3]<<16|b[3]>>>16)+(b[2]<<16|b[2]>>>16)|0,S[5]=b[5]+(b[4]<<8|b[4]>>>24)+b[3]|0,S[6]=b[6]+(b[5]<<16|b[5]>>>16)+(b[4]<<16|b[4]>>>16)|0,S[7]=b[7]+(b[6]<<8|b[6]>>>24)+b[5]|0}o.RabbitLegacy=l._createHelper(C)}(),n.RabbitLegacy})})(rabbitLegacy);(function(t,r){(function(n,o,s){t.exports=o(core$1.exports,x64Core.exports,libTypedarrays.exports,encUtf16.exports,encBase64.exports,encBase64url.exports,md5.exports,sha1.exports,sha256.exports,sha224.exports,sha512.exports,sha384.exports,sha3.exports,ripemd160.exports,hmac.exports,pbkdf2.exports,evpkdf.exports,cipherCore.exports,modeCfb.exports,modeCtr.exports,modeCtrGladman.exports,modeOfb.exports,modeEcb.exports,padAnsix923.exports,padIso10126.exports,padIso97971.exports,padZeropadding.exports,padNopadding.exports,formatHex.exports,aes.exports,tripledes.exports,rc4.exports,rabbit.exports,rabbitLegacy.exports)})(commonjsGlobal,function(n){return n})})(cryptoJs);var CryptoJS=cryptoJs.exports;/*!
|
|
* vue-router v4.0.12
|
|
* (c) 2021 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",PolySymbol=t=>hasSymbol?Symbol(t):"_vr_"+t,matchedRouteKey=PolySymbol("rvlm"),viewDepthKey=PolySymbol("rvd"),routerKey=PolySymbol("r"),routeLocationKey=PolySymbol("rl"),routerViewLocationKey=PolySymbol("rvl"),isBrowser=typeof window!="undefined";function isESModule(t){return t.__esModule||hasSymbol&&t[Symbol.toStringTag]==="Module"}const assign$1=Object.assign;function applyToParams(t,r){const n={};for(const o in r){const s=r[o];n[o]=Array.isArray(s)?s.map(t):t(s)}return n}const noop$1=()=>{},TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=t=>t.replace(TRAILING_SLASH_RE,"");function parseURL(t,r,n="/"){let o,s={},l="",d="";const g=r.indexOf("?"),y=r.indexOf("#",g>-1?g:0);return g>-1&&(o=r.slice(0,g),l=r.slice(g+1,y>-1?y:r.length),s=t(l)),y>-1&&(o=o||r.slice(0,y),d=r.slice(y,r.length)),o=resolveRelativePath(o!=null?o:r,n),{fullPath:o+(l&&"?")+l+d,path:o,query:s,hash:d}}function stringifyURL(t,r){const n=r.query?t(r.query):"";return r.path+(n&&"?")+n+(r.hash||"")}function stripBase(t,r){return!r||!t.toLowerCase().startsWith(r.toLowerCase())?t:t.slice(r.length)||"/"}function isSameRouteLocation(t,r,n){const o=r.matched.length-1,s=n.matched.length-1;return o>-1&&o===s&&isSameRouteRecord(r.matched[o],n.matched[s])&&isSameRouteLocationParams(r.params,n.params)&&t(r.query)===t(n.query)&&r.hash===n.hash}function isSameRouteRecord(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function isSameRouteLocationParams(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const n in t)if(!isSameRouteLocationParamsValue(t[n],r[n]))return!1;return!0}function isSameRouteLocationParamsValue(t,r){return Array.isArray(t)?isEquivalentArray(t,r):Array.isArray(r)?isEquivalentArray(r,t):t===r}function isEquivalentArray(t,r){return Array.isArray(r)?t.length===r.length&&t.every((n,o)=>n===r[o]):t.length===1&&t[0]===r}function resolveRelativePath(t,r){if(t.startsWith("/"))return t;if(!t)return r;const n=r.split("/"),o=t.split("/");let s=n.length-1,l,d;for(l=0;l<o.length;l++)if(d=o[l],!(s===1||d==="."))if(d==="..")s--;else break;return n.slice(0,s).join("/")+"/"+o.slice(l-(l===o.length?1:0)).join("/")}var NavigationType;(function(t){t.pop="pop",t.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(t){t.back="back",t.forward="forward",t.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(t){if(!t)if(isBrowser){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),removeTrailingSlash(t)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(t,r){return t.replace(BEFORE_HASH_RE,"#")+r}function getElementPosition(t,r){const n=document.documentElement.getBoundingClientRect(),o=t.getBoundingClientRect();return{behavior:r.behavior,left:o.left-n.left-(r.left||0),top:o.top-n.top-(r.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(t){let r;if("el"in t){const n=t.el,o=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;r=getElementPosition(s,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.pageXOffset,r.top!=null?r.top:window.pageYOffset)}function getScrollKey(t,r){return(history.state?history.state.position-r:-1)+t}const scrollPositions=new Map;function saveScrollPosition(t,r){scrollPositions.set(t,r)}function getSavedScrollPosition(t){const r=scrollPositions.get(t);return scrollPositions.delete(t),r}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(t,r){const{pathname:n,search:o,hash:s}=r,l=t.indexOf("#");if(l>-1){let g=s.includes(t.slice(l))?t.slice(l).length:1,y=s.slice(g);return y[0]!=="/"&&(y="/"+y),stripBase(y,"")}return stripBase(n,t)+o+s}function useHistoryListeners(t,r,n,o){let s=[],l=[],d=null;const g=({state:S})=>{const _=createCurrentLocation(t,location),w=n.value,$=r.value;let I=0;if(S){if(n.value=_,r.value=S,d&&d===w){d=null;return}I=$?S.position-$.position:0}else o(_);s.forEach(B=>{B(n.value,w,{delta:I,type:NavigationType.pop,direction:I?I>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function y(){d=n.value}function b(S){s.push(S);const _=()=>{const w=s.indexOf(S);w>-1&&s.splice(w,1)};return l.push(_),_}function C(){const{history:S}=window;!S.state||S.replaceState(assign$1({},S.state,{scroll:computeScrollPosition()}),"")}function x(){for(const S of l)S();l=[],window.removeEventListener("popstate",g),window.removeEventListener("beforeunload",C)}return window.addEventListener("popstate",g),window.addEventListener("beforeunload",C),{pauseListeners:y,listen:b,destroy:x}}function buildState(t,r,n,o=!1,s=!1){return{back:t,current:r,forward:n,replaced:o,position:window.history.length,scroll:s?computeScrollPosition():null}}function useHistoryStateNavigation(t){const{history:r,location:n}=window,o={value:createCurrentLocation(t,n)},s={value:r.state};s.value||l(o.value,{back:null,current:o.value,forward:null,position:r.length-1,replaced:!0,scroll:null},!0);function l(y,b,C){const x=t.indexOf("#"),S=x>-1?(n.host&&document.querySelector("base")?t:t.slice(x))+y:createBaseLocation()+t+y;try{r[C?"replaceState":"pushState"](b,"",S),s.value=b}catch(_){console.error(_),n[C?"replace":"assign"](S)}}function d(y,b){const C=assign$1({},r.state,buildState(s.value.back,y,s.value.forward,!0),b,{position:s.value.position});l(y,C,!0),o.value=y}function g(y,b){const C=assign$1({},s.value,r.state,{forward:y,scroll:computeScrollPosition()});l(C.current,C,!0);const x=assign$1({},buildState(o.value,y,null),{position:C.position+1},b);l(y,x,!1),o.value=y}return{location:o,state:s,push:g,replace:d}}function createWebHistory(t){t=normalizeBase(t);const r=useHistoryStateNavigation(t),n=useHistoryListeners(t,r.state,r.location,r.replace);function o(l,d=!0){d||n.pauseListeners(),history.go(l)}const s=assign$1({location:"",base:t,go:o,createHref:createHref.bind(null,t)},r,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>r.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>r.state.value}),s}function createWebHashHistory(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),createWebHistory(t)}function isRouteLocation(t){return typeof t=="string"||t&&typeof t=="object"}function isRouteName(t){return typeof t=="string"||typeof t=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=PolySymbol("nf");var NavigationFailureType;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(t,r){return assign$1(new Error,{type:t,[NavigationFailureSymbol]:!0},r)}function isNavigationFailure(t,r){return t instanceof Error&&NavigationFailureSymbol in t&&(r==null||!!(t.type&r))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(t,r){const n=assign$1({},BASE_PATH_PARSER_OPTIONS,r),o=[];let s=n.start?"^":"";const l=[];for(const b of t){const C=b.length?[]:[90];n.strict&&!b.length&&(s+="/");for(let x=0;x<b.length;x++){const S=b[x];let _=40+(n.sensitive?.25:0);if(S.type===0)x||(s+="/"),s+=S.value.replace(REGEX_CHARS_RE,"\\$&"),_+=40;else if(S.type===1){const{value:w,repeatable:$,optional:I,regexp:B}=S;l.push({name:w,repeatable:$,optional:I});const R=B||BASE_PARAM_PATTERN;if(R!==BASE_PARAM_PATTERN){_+=10;try{new RegExp(`(${R})`)}catch(M){throw new Error(`Invalid custom RegExp for param "${w}" (${R}): `+M.message)}}let P=$?`((?:${R})(?:/(?:${R}))*)`:`(${R})`;x||(P=I&&b.length<2?`(?:/${P})`:"/"+P),I&&(P+="?"),s+=P,_+=20,I&&(_+=-8),$&&(_+=-20),R===".*"&&(_+=-50)}C.push(_)}o.push(C)}if(n.strict&&n.end){const b=o.length-1;o[b][o[b].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const d=new RegExp(s,n.sensitive?"":"i");function g(b){const C=b.match(d),x={};if(!C)return null;for(let S=1;S<C.length;S++){const _=C[S]||"",w=l[S-1];x[w.name]=_&&w.repeatable?_.split("/"):_}return x}function y(b){let C="",x=!1;for(const S of t){(!x||!C.endsWith("/"))&&(C+="/"),x=!1;for(const _ of S)if(_.type===0)C+=_.value;else if(_.type===1){const{value:w,repeatable:$,optional:I}=_,B=w in b?b[w]:"";if(Array.isArray(B)&&!$)throw new Error(`Provided param "${w}" is an array but it is not repeatable (* or + modifiers)`);const R=Array.isArray(B)?B.join("/"):B;if(!R)if(I)S.length<2&&(C.endsWith("/")?C=C.slice(0,-1):x=!0);else throw new Error(`Missing required param "${w}"`);C+=R}}return C}return{re:d,score:o,keys:l,parse:g,stringify:y}}function compareScoreArray(t,r){let n=0;for(;n<t.length&&n<r.length;){const o=r[n]-t[n];if(o)return o;n++}return t.length<r.length?t.length===1&&t[0]===40+40?-1:1:t.length>r.length?r.length===1&&r[0]===40+40?1:-1:0}function comparePathParserScore(t,r){let n=0;const o=t.score,s=r.score;for(;n<o.length&&n<s.length;){const l=compareScoreArray(o[n],s[n]);if(l)return l;n++}return s.length-o.length}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(t){if(!t)return[[]];if(t==="/")return[[ROOT_TOKEN]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(_){throw new Error(`ERR (${n})/"${b}": ${_}`)}let n=0,o=n;const s=[];let l;function d(){l&&s.push(l),l=[]}let g=0,y,b="",C="";function x(){!b||(n===0?l.push({type:0,value:b}):n===1||n===2||n===3?(l.length>1&&(y==="*"||y==="+")&&r(`A repeatable param (${b}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:b,regexp:C,repeatable:y==="*"||y==="+",optional:y==="*"||y==="?"})):r("Invalid state to consume buffer"),b="")}function S(){b+=y}for(;g<t.length;){if(y=t[g++],y==="\\"&&n!==2){o=n,n=4;continue}switch(n){case 0:y==="/"?(b&&x(),d()):y===":"?(x(),n=1):S();break;case 4:S(),n=o;break;case 1:y==="("?n=2:VALID_PARAM_RE.test(y)?S():(x(),n=0,y!=="*"&&y!=="?"&&y!=="+"&&g--);break;case 2:y===")"?C[C.length-1]=="\\"?C=C.slice(0,-1)+y:n=3:C+=y;break;case 3:x(),n=0,y!=="*"&&y!=="?"&&y!=="+"&&g--,C="";break;default:r("Unknown state");break}}return n===2&&r(`Unfinished custom RegExp for param "${b}"`),x(),d(),s}function createRouteRecordMatcher(t,r,n){const o=tokensToParser(tokenizePath(t.path),n),s=assign$1(o,{record:t,parent:r,children:[],alias:[]});return r&&!s.record.aliasOf==!r.record.aliasOf&&r.children.push(s),s}function createRouterMatcher(t,r){const n=[],o=new Map;r=mergeOptions({strict:!1,end:!0,sensitive:!1},r);function s(C){return o.get(C)}function l(C,x,S){const _=!S,w=normalizeRouteRecord(C);w.aliasOf=S&&S.record;const $=mergeOptions(r,C),I=[w];if("alias"in C){const P=typeof C.alias=="string"?[C.alias]:C.alias;for(const M of P)I.push(assign$1({},w,{components:S?S.record.components:w.components,path:M,aliasOf:S?S.record:w}))}let B,R;for(const P of I){const{path:M}=P;if(x&&M[0]!=="/"){const O=x.record.path,D=O[O.length-1]==="/"?"":"/";P.path=x.record.path+(M&&D+M)}if(B=createRouteRecordMatcher(P,x,$),S?S.alias.push(B):(R=R||B,R!==B&&R.alias.push(B),_&&C.name&&!isAliasRecord(B)&&d(C.name)),"children"in w){const O=w.children;for(let D=0;D<O.length;D++)l(O[D],B,S&&S.children[D])}S=S||B,y(B)}return R?()=>{d(R)}:noop$1}function d(C){if(isRouteName(C)){const x=o.get(C);x&&(o.delete(C),n.splice(n.indexOf(x),1),x.children.forEach(d),x.alias.forEach(d))}else{const x=n.indexOf(C);x>-1&&(n.splice(x,1),C.record.name&&o.delete(C.record.name),C.children.forEach(d),C.alias.forEach(d))}}function g(){return n}function y(C){let x=0;for(;x<n.length&&comparePathParserScore(C,n[x])>=0;)x++;n.splice(x,0,C),C.record.name&&!isAliasRecord(C)&&o.set(C.record.name,C)}function b(C,x){let S,_={},w,$;if("name"in C&&C.name){if(S=o.get(C.name),!S)throw createRouterError(1,{location:C});$=S.record.name,_=assign$1(paramsFromLocation(x.params,S.keys.filter(R=>!R.optional).map(R=>R.name)),C.params),w=S.stringify(_)}else if("path"in C)w=C.path,S=n.find(R=>R.re.test(w)),S&&(_=S.parse(w),$=S.record.name);else{if(S=x.name?o.get(x.name):n.find(R=>R.re.test(x.path)),!S)throw createRouterError(1,{location:C,currentLocation:x});$=S.record.name,_=assign$1({},x.params,C.params),w=S.stringify(_)}const I=[];let B=S;for(;B;)I.unshift(B.record),B=B.parent;return{name:$,path:w,params:_,matched:I,meta:mergeMetaFields(I)}}return t.forEach(C=>l(C)),{addRoute:l,resolve:b,removeRoute:d,getRoutes:g,getRecordMatcher:s}}function paramsFromLocation(t,r){const n={};for(const o of r)o in t&&(n[o]=t[o]);return n}function normalizeRouteRecord(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:normalizeRecordProps(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||{}:{default:t.component}}}function normalizeRecordProps(t){const r={},n=t.props||!1;if("component"in t)r.default=n;else for(const o in t.components)r[o]=typeof n=="boolean"?n:n[o];return r}function isAliasRecord(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mergeMetaFields(t){return t.reduce((r,n)=>assign$1(r,n.meta),{})}function mergeOptions(t,r){const n={};for(const o in t)n[o]=o in r?r[o]:t[o];return n}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(t){return encodeURI(""+t).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(t){return commonEncode(t).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(t){return commonEncode(t).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(t){return encodeQueryValue(t).replace(EQUAL_RE,"%3D")}function encodePath(t){return commonEncode(t).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(t){return t==null?"":encodePath(t).replace(SLASH_RE,"%2F")}function decode$1(t){try{return decodeURIComponent(""+t)}catch(r){}return""+t}function parseQuery(t){const r={};if(t===""||t==="?")return r;const o=(t[0]==="?"?t.slice(1):t).split("&");for(let s=0;s<o.length;++s){const l=o[s].replace(PLUS_RE," "),d=l.indexOf("="),g=decode$1(d<0?l:l.slice(0,d)),y=d<0?null:decode$1(l.slice(d+1));if(g in r){let b=r[g];Array.isArray(b)||(b=r[g]=[b]),b.push(y)}else r[g]=y}return r}function stringifyQuery(t){let r="";for(let n in t){const o=t[n];if(n=encodeQueryKey(n),o==null){o!==void 0&&(r+=(r.length?"&":"")+n);continue}(Array.isArray(o)?o.map(l=>l&&encodeQueryValue(l)):[o&&encodeQueryValue(o)]).forEach(l=>{l!==void 0&&(r+=(r.length?"&":"")+n,l!=null&&(r+="="+l))})}return r}function normalizeQuery(t){const r={};for(const n in t){const o=t[n];o!==void 0&&(r[n]=Array.isArray(o)?o.map(s=>s==null?null:""+s):o==null?o:""+o)}return r}function useCallbacks(){let t=[];function r(o){return t.push(o),()=>{const s=t.indexOf(o);s>-1&&t.splice(s,1)}}function n(){t=[]}return{add:r,list:()=>t,reset:n}}function guardToPromiseFn(t,r,n,o,s){const l=o&&(o.enterCallbacks[s]=o.enterCallbacks[s]||[]);return()=>new Promise((d,g)=>{const y=x=>{x===!1?g(createRouterError(4,{from:n,to:r})):x instanceof Error?g(x):isRouteLocation(x)?g(createRouterError(2,{from:r,to:x})):(l&&o.enterCallbacks[s]===l&&typeof x=="function"&&l.push(x),d())},b=t.call(o&&o.instances[s],r,n,y);let C=Promise.resolve(b);t.length<3&&(C=C.then(y)),C.catch(x=>g(x))})}function extractComponentsGuards(t,r,n,o){const s=[];for(const l of t)for(const d in l.components){let g=l.components[d];if(!(r!=="beforeRouteEnter"&&!l.instances[d]))if(isRouteComponent(g)){const b=(g.__vccOpts||g)[r];b&&s.push(guardToPromiseFn(b,n,o,l,d))}else{let y=g();s.push(()=>y.then(b=>{if(!b)return Promise.reject(new Error(`Couldn't resolve component "${d}" at "${l.path}"`));const C=isESModule(b)?b.default:b;l.components[d]=C;const S=(C.__vccOpts||C)[r];return S&&guardToPromiseFn(S,n,o,l,d)()}))}}return s}function isRouteComponent(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function useLink(t){const r=inject(routerKey),n=inject(routeLocationKey),o=computed(()=>r.resolve(unref(t.to))),s=computed(()=>{const{matched:y}=o.value,{length:b}=y,C=y[b-1],x=n.matched;if(!C||!x.length)return-1;const S=x.findIndex(isSameRouteRecord.bind(null,C));if(S>-1)return S;const _=getOriginalPath(y[b-2]);return b>1&&getOriginalPath(C)===_&&x[x.length-1].path!==_?x.findIndex(isSameRouteRecord.bind(null,y[b-2])):S}),l=computed(()=>s.value>-1&&includesParams(n.params,o.value.params)),d=computed(()=>s.value>-1&&s.value===n.matched.length-1&&isSameRouteLocationParams(n.params,o.value.params));function g(y={}){return guardEvent(y)?r[unref(t.replace)?"replace":"push"](unref(t.to)).catch(noop$1):Promise.resolve()}return{route:o,href:computed(()=>o.value.href),isActive:l,isExactActive:d,navigate:g}}const RouterLinkImpl=defineComponent({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup(t,{slots:r}){const n=reactive(useLink(t)),{options:o}=inject(routerKey),s=computed(()=>({[getLinkClass(t.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(t.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=r.default&&r.default(n);return t.custom?l:h("a",{"aria-current":n.isExactActive?t.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},l)}}}),RouterLink=RouterLinkImpl;function guardEvent(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function includesParams(t,r){for(const n in r){const o=r[n],s=t[n];if(typeof o=="string"){if(o!==s)return!1}else if(!Array.isArray(s)||s.length!==o.length||o.some((l,d)=>l!==s[d]))return!1}return!0}function getOriginalPath(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const getLinkClass=(t,r,n)=>t!=null?t:r!=null?r:n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(t,{attrs:r,slots:n}){const o=inject(routerViewLocationKey),s=computed(()=>t.route||o.value),l=inject(viewDepthKey,0),d=computed(()=>s.value.matched[l]);provide(viewDepthKey,l+1),provide(matchedRouteKey,d),provide(routerViewLocationKey,s);const g=ref();return watch(()=>[g.value,d.value,t.name],([y,b,C],[x,S,_])=>{b&&(b.instances[C]=y,S&&S!==b&&y&&y===x&&(b.leaveGuards.size||(b.leaveGuards=S.leaveGuards),b.updateGuards.size||(b.updateGuards=S.updateGuards))),y&&b&&(!S||!isSameRouteRecord(b,S)||!x)&&(b.enterCallbacks[C]||[]).forEach(w=>w(y))},{flush:"post"}),()=>{const y=s.value,b=d.value,C=b&&b.components[t.name],x=t.name;if(!C)return normalizeSlot(n.default,{Component:C,route:y});const S=b.props[t.name],_=S?S===!0?y.params:typeof S=="function"?S(y):S:null,$=h(C,assign$1({},_,r,{onVnodeUnmounted:I=>{I.component.isUnmounted&&(b.instances[x]=null)},ref:g}));return normalizeSlot(n.default,{Component:$,route:y})||$}}});function normalizeSlot(t,r){if(!t)return null;const n=t(r);return n.length===1?n[0]:n}const RouterView=RouterViewImpl;function createRouter(t){const r=createRouterMatcher(t.routes,t),n=t.parseQuery||parseQuery,o=t.stringifyQuery||stringifyQuery,s=t.history,l=useCallbacks(),d=useCallbacks(),g=useCallbacks(),y=shallowRef(START_LOCATION_NORMALIZED);let b=START_LOCATION_NORMALIZED;isBrowser&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const C=applyToParams.bind(null,he=>""+he),x=applyToParams.bind(null,encodeParam),S=applyToParams.bind(null,decode$1);function _(he,Ce){let ve,ye;return isRouteName(he)?(ve=r.getRecordMatcher(he),ye=Ce):ye=he,r.addRoute(ye,ve)}function w(he){const Ce=r.getRecordMatcher(he);Ce&&r.removeRoute(Ce)}function $(){return r.getRoutes().map(he=>he.record)}function I(he){return!!r.getRecordMatcher(he)}function B(he,Ce){if(Ce=assign$1({},Ce||y.value),typeof he=="string"){const ie=parseURL(n,he,Ce.path),ee=r.resolve({path:ie.path},Ce),J=s.createHref(ie.fullPath);return assign$1(ie,ee,{params:S(ee.params),hash:decode$1(ie.hash),redirectedFrom:void 0,href:J})}let ve;if("path"in he)ve=assign$1({},he,{path:parseURL(n,he.path,Ce.path).path});else{const ie=assign$1({},he.params);for(const ee in ie)ie[ee]==null&&delete ie[ee];ve=assign$1({},he,{params:x(he.params)}),Ce.params=x(Ce.params)}const ye=r.resolve(ve,Ce),Be=he.hash||"";ye.params=C(S(ye.params));const Se=stringifyURL(o,assign$1({},he,{hash:encodeHash(Be),path:ye.path})),Ee=s.createHref(Se);return assign$1({fullPath:Se,hash:Be,query:o===stringifyQuery?normalizeQuery(he.query):he.query||{}},ye,{redirectedFrom:void 0,href:Ee})}function R(he){return typeof he=="string"?parseURL(n,he,y.value.path):assign$1({},he)}function P(he,Ce){if(b!==he)return createRouterError(8,{from:Ce,to:he})}function M(he){return N(he)}function O(he){return M(assign$1(R(he),{replace:!0}))}function D(he){const Ce=he.matched[he.matched.length-1];if(Ce&&Ce.redirect){const{redirect:ve}=Ce;let ye=typeof ve=="function"?ve(he):ve;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=R(ye):{path:ye},ye.params={}),assign$1({query:he.query,hash:he.hash,params:he.params},ye)}}function N(he,Ce){const ve=b=B(he),ye=y.value,Be=he.state,Se=he.force,Ee=he.replace===!0,ie=D(ve);if(ie)return N(assign$1(R(ie),{state:Be,force:Se,replace:Ee}),Ce||ve);const ee=ve;ee.redirectedFrom=Ce;let J;return!Se&&isSameRouteLocation(o,ye,ve)&&(J=createRouterError(16,{to:ee,from:ye}),ae(ye,ye,!0,!1)),(J?Promise.resolve(J):Q(ee,ye)).catch(ce=>isNavigationFailure(ce)?ce:re(ce,ee,ye)).then(ce=>{if(ce){if(isNavigationFailure(ce,2))return N(assign$1(R(ce.to),{state:Be,force:Se,replace:Ee}),Ce||ee)}else ce=K(ee,ye,!0,Ee,Be);return G(ee,ye,ce),ce})}function H(he,Ce){const ve=P(he,Ce);return ve?Promise.reject(ve):Promise.resolve()}function Q(he,Ce){let ve;const[ye,Be,Se]=extractChangingRecords(he,Ce);ve=extractComponentsGuards(ye.reverse(),"beforeRouteLeave",he,Ce);for(const ie of ye)ie.leaveGuards.forEach(ee=>{ve.push(guardToPromiseFn(ee,he,Ce))});const Ee=H.bind(null,he,Ce);return ve.push(Ee),runGuardQueue(ve).then(()=>{ve=[];for(const ie of l.list())ve.push(guardToPromiseFn(ie,he,Ce));return ve.push(Ee),runGuardQueue(ve)}).then(()=>{ve=extractComponentsGuards(Be,"beforeRouteUpdate",he,Ce);for(const ie of Be)ie.updateGuards.forEach(ee=>{ve.push(guardToPromiseFn(ee,he,Ce))});return ve.push(Ee),runGuardQueue(ve)}).then(()=>{ve=[];for(const ie of he.matched)if(ie.beforeEnter&&!Ce.matched.includes(ie))if(Array.isArray(ie.beforeEnter))for(const ee of ie.beforeEnter)ve.push(guardToPromiseFn(ee,he,Ce));else ve.push(guardToPromiseFn(ie.beforeEnter,he,Ce));return ve.push(Ee),runGuardQueue(ve)}).then(()=>(he.matched.forEach(ie=>ie.enterCallbacks={}),ve=extractComponentsGuards(Se,"beforeRouteEnter",he,Ce),ve.push(Ee),runGuardQueue(ve))).then(()=>{ve=[];for(const ie of d.list())ve.push(guardToPromiseFn(ie,he,Ce));return ve.push(Ee),runGuardQueue(ve)}).catch(ie=>isNavigationFailure(ie,8)?ie:Promise.reject(ie))}function G(he,Ce,ve){for(const ye of g.list())ye(he,Ce,ve)}function K(he,Ce,ve,ye,Be){const Se=P(he,Ce);if(Se)return Se;const Ee=Ce===START_LOCATION_NORMALIZED,ie=isBrowser?history.state:{};ve&&(ye||Ee?s.replace(he.fullPath,assign$1({scroll:Ee&&ie&&ie.scroll},Be)):s.push(he.fullPath,Be)),y.value=he,ae(he,Ce,ve,Ee),oe()}let W;function j(){W=s.listen((he,Ce,ve)=>{const ye=B(he),Be=D(ye);if(Be){N(assign$1(Be,{replace:!0}),ye).catch(noop$1);return}b=ye;const Se=y.value;isBrowser&&saveScrollPosition(getScrollKey(Se.fullPath,ve.delta),computeScrollPosition()),Q(ye,Se).catch(Ee=>isNavigationFailure(Ee,12)?Ee:isNavigationFailure(Ee,2)?(N(Ee.to,ye).then(ie=>{isNavigationFailure(ie,20)&&!ve.delta&&ve.type===NavigationType.pop&&s.go(-1,!1)}).catch(noop$1),Promise.reject()):(ve.delta&&s.go(-ve.delta,!1),re(Ee,ye,Se))).then(Ee=>{Ee=Ee||K(ye,Se,!1),Ee&&(ve.delta?s.go(-ve.delta,!1):ve.type===NavigationType.pop&&isNavigationFailure(Ee,20)&&s.go(-1,!1)),G(ye,Se,Ee)}).catch(noop$1)})}let Y=useCallbacks(),q=useCallbacks(),X;function re(he,Ce,ve){oe(he);const ye=q.list();return ye.length?ye.forEach(Be=>Be(he,Ce,ve)):console.error(he),Promise.reject(he)}function te(){return X&&y.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((he,Ce)=>{Y.add([he,Ce])})}function oe(he){X||(X=!0,j(),Y.list().forEach(([Ce,ve])=>he?ve(he):Ce()),Y.reset())}function ae(he,Ce,ve,ye){const{scrollBehavior:Be}=t;if(!isBrowser||!Be)return Promise.resolve();const Se=!ve&&getSavedScrollPosition(getScrollKey(he.fullPath,0))||(ye||!ve)&&history.state&&history.state.scroll||null;return nextTick().then(()=>Be(he,Ce,Se)).then(Ee=>Ee&&scrollToPosition(Ee)).catch(Ee=>re(Ee,he,Ce))}const se=he=>s.go(he);let ue;const Ae=new Set;return{currentRoute:y,addRoute:_,removeRoute:w,hasRoute:I,getRoutes:$,resolve:B,options:t,push:M,replace:O,go:se,back:()=>se(-1),forward:()=>se(1),beforeEach:l.add,beforeResolve:d.add,afterEach:g.add,onError:q.add,isReady:te,install(he){const Ce=this;he.component("RouterLink",RouterLink),he.component("RouterView",RouterView),he.config.globalProperties.$router=Ce,Object.defineProperty(he.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(y)}),isBrowser&&!ue&&y.value===START_LOCATION_NORMALIZED&&(ue=!0,M(s.location).catch(Be=>{}));const ve={};for(const Be in START_LOCATION_NORMALIZED)ve[Be]=computed(()=>y.value[Be]);he.provide(routerKey,Ce),he.provide(routeLocationKey,reactive(ve)),he.provide(routerViewLocationKey,y);const ye=he.unmount;Ae.add(he),he.unmount=function(){Ae.delete(he),Ae.size<1&&(b=START_LOCATION_NORMALIZED,W&&W(),y.value=START_LOCATION_NORMALIZED,ue=!1,X=!1),ye()}}}}function runGuardQueue(t){return t.reduce((r,n)=>r.then(()=>n()),Promise.resolve())}function extractChangingRecords(t,r){const n=[],o=[],s=[],l=Math.max(r.matched.length,t.matched.length);for(let d=0;d<l;d++){const g=r.matched[d];g&&(t.matched.find(b=>isSameRouteRecord(b,g))?o.push(g):n.push(g));const y=t.matched[d];y&&(r.matched.find(b=>isSameRouteRecord(b,y))||s.push(y))}return[n,o,s]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}var ChartEnum=(t=>(t.CHART_HOME="/chart/home/:id(.*)*",t.CHART_HOME_NAME="ChartHome",t))(ChartEnum||{}),PreviewEnum=(t=>(t.CHART_PREVIEW="/chart/preview/:id(.*)*",t.CHART_PREVIEW_NAME="ChartPreview",t))(PreviewEnum||{}),EditEnum=(t=>(t.CHART_EDIT="/chart/edit/:id(.*)*",t.CHART_EDIT_NAME="ChartEdit",t))(EditEnum||{}),PageEnum=(t=>(t.BASE_LOGIN="/login",t.BASE_LOGIN_NAME="Login",t.REDIRECT="/redirect",t.REDIRECT_NAME="Redirect",t.RELOAD="/reload",t.RELOAD_NAME="Reload",t.BASE_HOME="/project",t.BASE_HOME_NAME="Project",t.BASE_HOME_ITEMS="/project/items",t.BASE_HOME_ITEMS_NAME="Project-Items",t.BASE_HOME_TEMPLATE="/project/my-template",t.BASE_HOME_TEMPLATE_NAME="Project-My-Template",t.BASE_HOME_TEMPLATE_MARKET="/project/template-market",t.BASE_HOME_TEMPLATE_MARKET_NAME="Project-Template-Market",t.ERROR_PAGE_NAME_403="ErrorPage403",t.ERROR_PAGE_NAME_404="ErrorPage404",t.ERROR_PAGE_NAME_500="ErrorPage500",t))(PageEnum||{});const ErrorPageNameMap=new Map([[ResultEnum.NOT_FOUND,"ErrorPage404"],[ResultEnum.SERVER_FORBIDDEN,"ErrorPage403"],[ResultEnum.SERVER_ERROR,"ErrorPage500"]]),docPath="https://www.mtruning.club/",giteeSourceCodePath="https://gitee.com/dromara/go-view";var StorageEnum=(t=>(t.GO_SYSTEM_SETTING_STORE="GO_SYSTEM_SETTING",t.GO_ACCESS_TOKEN_STORE="GO_ACCESS_TOKEN",t.GO_LOGIN_INFO_STORE="GO_LOGIN_INFO",t.GO_LANG_STORE="GO_LANG",t.GO_DESIGN_STORE="GO_DESIGN",t.GO_CHART_LAYOUT_STORE="GO_CHART_LAYOUT",t.GO_CHART_STORAGE_LIST="GO_CHART_STORAGE_LIST",t))(StorageEnum||{});const setLocalStorage=(t,r)=>{try{window.localStorage.setItem(t,JSONStringify(r))}catch(n){return!1}},getLocalStorage=t=>{const r=window.localStorage.getItem(t);try{return r&&JSONParse(r)}catch(n){return r}},setSessionStorage=(t,r)=>{try{window.sessionStorage.setItem(t,JSONStringify(r))}catch(n){return!1}},getSessionStorage=t=>{const r=window.sessionStorage.getItem(t);try{return r&&JSONParse(r)}catch(n){return r}},scriptRel="modulepreload",seen={},base$1="./",__vitePreload=function t(r,n){return!n||n.length===0?r():Promise.all(n.map(o=>{if(o=`${base$1}${o}`,o in seen)return;seen[o]=!0;const s=o.endsWith(".css"),l=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${o}"]${l}`))return;const d=document.createElement("link");if(d.rel=s?"stylesheet":scriptRel,s||(d.as="script",d.crossOrigin=""),d.href=o,document.head.appendChild(d),s)return new Promise((g,y)=>{d.addEventListener("load",g),d.addEventListener("error",()=>y(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>r())},ErrorPage404=()=>__vitePreload(()=>import("./404-8fc4be3a.js"),["static/js/404-8fc4be3a.js","static/css/404-02e2f39d.css","static/js/404-c00f16ad.js"]),ErrorPage403=()=>__vitePreload(()=>import("./403-7f79530b.js"),["static/js/403-7f79530b.js","static/css/403-0603d656.css","static/js/403-24e394e4.js"]),ErrorPage500=()=>__vitePreload(()=>import("./500-276af395.js"),["static/js/500-276af395.js","static/css/500-40625925.css","static/js/500-dc262da5.js"]),Layout=()=>__vitePreload(()=>import("./index-cde166ae.js"),[]);var index_vue_vue_type_style_index_0_scoped_true_lang$2="",_export_sfc$1=(t,r)=>{const n=t.__vccOpts||t;for(const[o,s]of r)n[o]=s;return n};const _hoisted_1$5={class:"go-reload"},_sfc_main$8=defineComponent({__name:"index",setup(t){return onMounted(()=>{router.go(-1)}),(r,n)=>(openBlock(),createElementBlock("div",_hoisted_1$5))}});var GoReload=_export_sfc$1(_sfc_main$8,[["__scopeId","data-v-3ecec4ca"]]);const LoginRoute={path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-7b7b01b6.js"),["static/js/index-7b7b01b6.js","static/css/index-afc289d7.css","static/js/moke-20211219181327-c0abf229.js","static/js/tables_list-16bd57ab.js","static/js/icon-f895716a.js","static/js/index-beb85927.js","static/css/index-24d4cc74.css"]),meta:{title:"\u767B\u5F55"}},HttpErrorPage=[{path:"/error/404",name:PageEnum.ERROR_PAGE_NAME_404,component:ErrorPage404,meta:{title:PageEnum.ERROR_PAGE_NAME_404}},{path:"/error/403",name:PageEnum.ERROR_PAGE_NAME_403,component:ErrorPage403,meta:{title:PageEnum.ERROR_PAGE_NAME_403}},{path:"/error/500",name:PageEnum.ERROR_PAGE_NAME_500,component:ErrorPage500,meta:{title:PageEnum.ERROR_PAGE_NAME_500}}];PageEnum.ERROR_PAGE_NAME_404;const ReloadRoute={path:PageEnum.RELOAD,name:PageEnum.RELOAD_NAME,component:GoReload,meta:{title:PageEnum.RELOAD_NAME}},RedirectRoute={path:PageEnum.REDIRECT,name:PageEnum.REDIRECT_NAME,component:Layout,meta:{title:PageEnum.REDIRECT_NAME},children:[{path:"/redirect/:path(.*)",name:PageEnum.REDIRECT_NAME,component:()=>__vitePreload(()=>import("./index-75818224.js"),[]),meta:{title:PageEnum.REDIRECT_NAME,hideBreadcrumb:!0}}]},importPath$3={"PageEnum.BASE_HOME_NAME":()=>__vitePreload(()=>import("./index-c0c066b9.js"),["static/js/index-c0c066b9.js","static/css/index-87e741e7.css","static/js/icon-f895716a.js","static/js/index-e3a8a362.js","static/js/index-beb85927.js","static/css/index-24d4cc74.css"]),"PageEnum.BASE_HOME_ITEMS_NAME":()=>__vitePreload(()=>import("./index-000e40ce.js"),["static/js/index-000e40ce.js","static/css/index-ce4b1793.css","static/js/moke-20211219181327-c0abf229.js","static/js/403-24e394e4.js","static/js/404-c00f16ad.js","static/js/500-dc262da5.js","static/js/tables_list-16bd57ab.js","static/js/icon-f895716a.js","static/js/index-90b41ab2.js","static/css/index-2ce6d63c.css","static/js/plugin-3f5f1424.js"]),"PageEnum.BASE_HOME_TEMPLATE_NAME":()=>__vitePreload(()=>import("./index-431deff4.js"),["static/js/index-431deff4.js","static/css/index-367bbf0c.css"]),"PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME":()=>__vitePreload(()=>import("./index-5172ba62.js"),["static/js/index-5172ba62.js","static/css/index-84dfce21.css"])},projectRoutes={path:PageEnum.BASE_HOME,name:PageEnum.BASE_HOME_NAME,component:importPath$3["PageEnum.BASE_HOME_NAME"],redirect:PageEnum.BASE_HOME_ITEMS,meta:{title:"\u9879\u76EE",isRoot:!0},children:[{path:PageEnum.BASE_HOME_ITEMS,name:PageEnum.BASE_HOME_ITEMS_NAME,component:importPath$3["PageEnum.BASE_HOME_ITEMS_NAME"],meta:{title:"\u6211\u7684\u9879\u76EE"}},{path:PageEnum.BASE_HOME_TEMPLATE,name:PageEnum.BASE_HOME_TEMPLATE_NAME,component:importPath$3["PageEnum.BASE_HOME_TEMPLATE_NAME"],meta:{title:"\u6211\u7684\u6A21\u677F"}},{path:PageEnum.BASE_HOME_TEMPLATE_MARKET,name:PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME,component:importPath$3["PageEnum.BASE_HOME_TEMPLATE_MARKET_NAME"],meta:{title:"\u6A21\u677F\u5E02\u573A"}}]},importPath$2={"ChartEnum.CHART_HOME_NAME":()=>__vitePreload(()=>import("./index-391b9821.js").then(function(t){return t.i}),["static/js/index-391b9821.js","static/css/index-8038d4fd.css","static/js/index-e3a8a362.js","static/js/index-beb85927.js","static/css/index-24d4cc74.css","static/js/chartEditStore-512dd188.js","static/js/plugin-3f5f1424.js","static/js/icon-f895716a.js"])},chartRoutes$2={path:ChartEnum.CHART_HOME,name:ChartEnum.CHART_HOME_NAME,component:importPath$2["ChartEnum.CHART_HOME_NAME"],meta:{title:"\u5DE5\u4F5C\u7A7A\u95F4",isRoot:!0,noKeepAlive:!0}},importPath$1={"PreviewEnum.CHART_PREVIEW_NAME":()=>__vitePreload(()=>import("./wrapper-0f4135f4.js"),["static/js/wrapper-0f4135f4.js","static/css/wrapper-1a426e9c.css","static/css/SizeSetting.vue_vue_type_style_index_0_scoped_true_lang-976f12dd.css","static/js/storage-9b9506ad.js","static/js/chartEditStore-512dd188.js","static/js/plugin-3f5f1424.js","static/js/icon-f895716a.js","static/js/index-82f3faec.js","static/css/index-65bc49c3.css","static/js/chartLayoutStore-4baab7c4.js","static/js/tables_list-16bd57ab.js","static/js/SettingItemBox-0b7490e2.js","static/js/CollapseItem-818c6947.js","static/js/useTargetData.hook-644fac7b.js"])},chartRoutes$1={path:PreviewEnum.CHART_PREVIEW,name:PreviewEnum.CHART_PREVIEW_NAME,component:importPath$1["PreviewEnum.CHART_PREVIEW_NAME"],meta:{title:"\u9884\u89C8",isRoot:!0}},importPath={[EditEnum.CHART_EDIT_NAME]:()=>__vitePreload(()=>import("./index-3ae13aea.js").then(function(t){return t.i}),["static/js/index-3ae13aea.js","static/css/index-922543b6.css","static/js/editorWorker-abdb3aef.js","static/js/storage-9b9506ad.js","static/js/icon-f895716a.js"])},chartRoutes={path:EditEnum.CHART_EDIT,name:EditEnum.CHART_EDIT_NAME,component:importPath[EditEnum.CHART_EDIT_NAME],meta:{title:"\u7F16\u8F91",isRoot:!0}};var modules={projectRoutes,chartRoutes:chartRoutes$2,previewRoutes:chartRoutes$1,editRoutes:chartRoutes};const RootRoute=[{path:"/",name:"Root",redirect:PageEnum.BASE_HOME,component:Layout,meta:{title:"Root"},children:[...HttpErrorPage,modules.projectRoutes,modules.chartRoutes,modules.previewRoutes,modules.editRoutes]}],constantRouter=[LoginRoute,...RootRoute,RedirectRoute,ReloadRoute],router=createRouter({history:createWebHashHistory(""),routes:constantRouter,strict:!0});function setupRouter(t){t.use(router)}const routerTurnByName=(t,r,n)=>{if(n){const o=fetchPathByName(t,"href");openNewWindow(o);return}if(r){router.replace({name:t});return}router.push({name:t})},fetchPathByName=(t,r)=>{try{const n=router.resolve({name:t});return r?n[r]:n}catch(n){window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01")}},routerTurnByPath=(t,r,n,o)=>{let s="";if(r!=null&&r.length&&(s=`${t}/${r.join("/")}`),o)return openNewWindow(s);if(n){router.replace({path:s});return}router.push({path:s})},redirectErrorPage=t=>{if(!t)return!1;const r=ErrorPageNameMap.get(t);if(!r)return!1;routerTurnByName(r)},reloadRoutePage=()=>{routerTurnByName(PageEnum.RELOAD_NAME)},openNewWindow=t=>window.open(t,"_blank"),openDoc=()=>{openNewWindow(docPath)},openGiteeSourceCode=()=>{openNewWindow(giteeSourceCodePath)},isPreview=()=>document.location.hash.includes("preview"),fetchRouteParamsLocation=()=>{try{return document.location.hash.split("/").pop()||""}catch(t){return window.$message.warning("\u67E5\u8BE2\u8DEF\u7531\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u7BA1\u7406\u5458\uFF01"),""}};var colorString$1={exports:{}},colorName={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]},simpleSwizzle={exports:{}},isArrayish$1=function t(r){return!r||typeof r=="string"?!1:r instanceof Array||Array.isArray(r)||r.length>=0&&(r.splice instanceof Function||Object.getOwnPropertyDescriptor(r,r.length-1)&&r.constructor.name!=="String")},isArrayish=isArrayish$1,concat$1=Array.prototype.concat,slice$1=Array.prototype.slice,swizzle$1=simpleSwizzle.exports=function t(r){for(var n=[],o=0,s=r.length;o<s;o++){var l=r[o];isArrayish(l)?n=concat$1.call(n,slice$1.call(l)):n.push(l)}return n};swizzle$1.wrap=function(t){return function(){return t(swizzle$1(arguments))}};var colorNames=colorName,swizzle=simpleSwizzle.exports,hasOwnProperty$1=Object.hasOwnProperty,reverseNames=Object.create(null);for(var name in colorNames)hasOwnProperty$1.call(colorNames,name)&&(reverseNames[colorNames[name]]=name);var cs=colorString$1.exports={to:{},get:{}};cs.get=function(t){var r=t.substring(0,3).toLowerCase(),n,o;switch(r){case"hsl":n=cs.get.hsl(t),o="hsl";break;case"hwb":n=cs.get.hwb(t),o="hwb";break;default:n=cs.get.rgb(t),o="rgb";break}return n?{model:o,value:n}:null};cs.get.rgb=function(t){if(!t)return null;var r=/^#([a-f0-9]{3,4})$/i,n=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i,o=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,s=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/,l=/^(\w+)$/,d=[0,0,0,1],g,y,b;if(g=t.match(n)){for(b=g[2],g=g[1],y=0;y<3;y++){var C=y*2;d[y]=parseInt(g.slice(C,C+2),16)}b&&(d[3]=parseInt(b,16)/255)}else if(g=t.match(r)){for(g=g[1],b=g[3],y=0;y<3;y++)d[y]=parseInt(g[y]+g[y],16);b&&(d[3]=parseInt(b+b,16)/255)}else if(g=t.match(o)){for(y=0;y<3;y++)d[y]=parseInt(g[y+1],0);g[4]&&(g[5]?d[3]=parseFloat(g[4])*.01:d[3]=parseFloat(g[4]))}else if(g=t.match(s)){for(y=0;y<3;y++)d[y]=Math.round(parseFloat(g[y+1])*2.55);g[4]&&(g[5]?d[3]=parseFloat(g[4])*.01:d[3]=parseFloat(g[4]))}else return(g=t.match(l))?g[1]==="transparent"?[0,0,0,0]:hasOwnProperty$1.call(colorNames,g[1])?(d=colorNames[g[1]],d[3]=1,d):null:null;for(y=0;y<3;y++)d[y]=clamp$1(d[y],0,255);return d[3]=clamp$1(d[3],0,1),d};cs.get.hsl=function(t){if(!t)return null;var r=/^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*)?\)$/,n=t.match(r);if(n){var o=parseFloat(n[4]),s=(parseFloat(n[1])%360+360)%360,l=clamp$1(parseFloat(n[2]),0,100),d=clamp$1(parseFloat(n[3]),0,100),g=clamp$1(isNaN(o)?1:o,0,1);return[s,l,d,g]}return null};cs.get.hwb=function(t){if(!t)return null;var r=/^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*)?\)$/,n=t.match(r);if(n){var o=parseFloat(n[4]),s=(parseFloat(n[1])%360+360)%360,l=clamp$1(parseFloat(n[2]),0,100),d=clamp$1(parseFloat(n[3]),0,100),g=clamp$1(isNaN(o)?1:o,0,1);return[s,l,d,g]}return null};cs.to.hex=function(){var t=swizzle(arguments);return"#"+hexDouble(t[0])+hexDouble(t[1])+hexDouble(t[2])+(t[3]<1?hexDouble(Math.round(t[3]*255)):"")};cs.to.rgb=function(){var t=swizzle(arguments);return t.length<4||t[3]===1?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"};cs.to.rgb.percent=function(){var t=swizzle(arguments),r=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),o=Math.round(t[2]/255*100);return t.length<4||t[3]===1?"rgb("+r+"%, "+n+"%, "+o+"%)":"rgba("+r+"%, "+n+"%, "+o+"%, "+t[3]+")"};cs.to.hsl=function(){var t=swizzle(arguments);return t.length<4||t[3]===1?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"};cs.to.hwb=function(){var t=swizzle(arguments),r="";return t.length>=4&&t[3]!==1&&(r=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+r+")"};cs.to.keyword=function(t){return reverseNames[t.slice(0,3)]};function clamp$1(t,r,n){return Math.min(Math.max(r,t),n)}function hexDouble(t){var r=Math.round(t).toString(16).toUpperCase();return r.length<2?"0"+r:r}const cssKeywords=colorName,reverseKeywords={};for(const t of Object.keys(cssKeywords))reverseKeywords[cssKeywords[t]]=t;const convert$2={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 conversions$2=convert$2;for(const t of Object.keys(convert$2)){if(!("channels"in convert$2[t]))throw new Error("missing channels property: "+t);if(!("labels"in convert$2[t]))throw new Error("missing channel labels property: "+t);if(convert$2[t].labels.length!==convert$2[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:r,labels:n}=convert$2[t];delete convert$2[t].channels,delete convert$2[t].labels,Object.defineProperty(convert$2[t],"channels",{value:r}),Object.defineProperty(convert$2[t],"labels",{value:n})}convert$2.rgb.hsl=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.min(r,n,o),l=Math.max(r,n,o),d=l-s;let g,y;l===s?g=0:r===l?g=(n-o)/d:n===l?g=2+(o-r)/d:o===l&&(g=4+(r-n)/d),g=Math.min(g*60,360),g<0&&(g+=360);const b=(s+l)/2;return l===s?y=0:b<=.5?y=d/(l+s):y=d/(2-l-s),[g,y*100,b*100]};convert$2.rgb.hsv=function(t){let r,n,o,s,l;const d=t[0]/255,g=t[1]/255,y=t[2]/255,b=Math.max(d,g,y),C=b-Math.min(d,g,y),x=function(S){return(b-S)/6/C+1/2};return C===0?(s=0,l=0):(l=C/b,r=x(d),n=x(g),o=x(y),d===b?s=o-n:g===b?s=1/3+r-o:y===b&&(s=2/3+n-r),s<0?s+=1:s>1&&(s-=1)),[s*360,l*100,b*100]};convert$2.rgb.hwb=function(t){const r=t[0],n=t[1];let o=t[2];const s=convert$2.rgb.hsl(t)[0],l=1/255*Math.min(r,Math.min(n,o));return o=1-1/255*Math.max(r,Math.max(n,o)),[s,l*100,o*100]};convert$2.rgb.cmyk=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.min(1-r,1-n,1-o),l=(1-r-s)/(1-s)||0,d=(1-n-s)/(1-s)||0,g=(1-o-s)/(1-s)||0;return[l*100,d*100,g*100,s*100]};function comparativeDistance(t,r){return Ct(t[0]-r[0],2)+Ct(t[1]-r[1],2)+Ct(t[2]-r[2],2)}convert$2.rgb.keyword=function(t){const r=reverseKeywords[t];if(r)return r;let n=1/0,o;for(const s of Object.keys(cssKeywords)){const l=cssKeywords[s],d=comparativeDistance(t,l);d<n&&(n=d,o=s)}return o};convert$2.keyword.rgb=function(t){return cssKeywords[t]};convert$2.rgb.xyz=function(t){let r=t[0]/255,n=t[1]/255,o=t[2]/255;r=r>.04045?Ct((r+.055)/1.055,2.4):r/12.92,n=n>.04045?Ct((n+.055)/1.055,2.4):n/12.92,o=o>.04045?Ct((o+.055)/1.055,2.4):o/12.92;const s=r*.4124+n*.3576+o*.1805,l=r*.2126+n*.7152+o*.0722,d=r*.0193+n*.1192+o*.9505;return[s*100,l*100,d*100]};convert$2.rgb.lab=function(t){const r=convert$2.rgb.xyz(t);let n=r[0],o=r[1],s=r[2];n/=95.047,o/=100,s/=108.883,n=n>.008856?Ct(n,1/3):7.787*n+16/116,o=o>.008856?Ct(o,1/3):7.787*o+16/116,s=s>.008856?Ct(s,1/3):7.787*s+16/116;const l=116*o-16,d=500*(n-o),g=200*(o-s);return[l,d,g]};convert$2.hsl.rgb=function(t){const r=t[0]/360,n=t[1]/100,o=t[2]/100;let s,l,d;if(n===0)return d=o*255,[d,d,d];o<.5?s=o*(1+n):s=o+n-o*n;const g=2*o-s,y=[0,0,0];for(let b=0;b<3;b++)l=r+1/3*-(b-1),l<0&&l++,l>1&&l--,6*l<1?d=g+(s-g)*6*l:2*l<1?d=s:3*l<2?d=g+(s-g)*(2/3-l)*6:d=g,y[b]=d*255;return y};convert$2.hsl.hsv=function(t){const r=t[0];let n=t[1]/100,o=t[2]/100,s=n;const l=Math.max(o,.01);o*=2,n*=o<=1?o:2-o,s*=l<=1?l:2-l;const d=(o+n)/2,g=o===0?2*s/(l+s):2*n/(o+n);return[r,g*100,d*100]};convert$2.hsv.rgb=function(t){const r=t[0]/60,n=t[1]/100;let o=t[2]/100;const s=Math.floor(r)%6,l=r-Math.floor(r),d=255*o*(1-n),g=255*o*(1-n*l),y=255*o*(1-n*(1-l));switch(o*=255,s){case 0:return[o,y,d];case 1:return[g,o,d];case 2:return[d,o,y];case 3:return[d,g,o];case 4:return[y,d,o];case 5:return[o,d,g]}};convert$2.hsv.hsl=function(t){const r=t[0],n=t[1]/100,o=t[2]/100,s=Math.max(o,.01);let l,d;d=(2-n)*o;const g=(2-n)*s;return l=n*s,l/=g<=1?g:2-g,l=l||0,d/=2,[r,l*100,d*100]};convert$2.hwb.rgb=function(t){const r=t[0]/360;let n=t[1]/100,o=t[2]/100;const s=n+o;let l;s>1&&(n/=s,o/=s);const d=Math.floor(6*r),g=1-o;l=6*r-d,(d&1)!==0&&(l=1-l);const y=n+l*(g-n);let b,C,x;switch(d){default:case 6:case 0:b=g,C=y,x=n;break;case 1:b=y,C=g,x=n;break;case 2:b=n,C=g,x=y;break;case 3:b=n,C=y,x=g;break;case 4:b=y,C=n,x=g;break;case 5:b=g,C=n,x=y;break}return[b*255,C*255,x*255]};convert$2.cmyk.rgb=function(t){const r=t[0]/100,n=t[1]/100,o=t[2]/100,s=t[3]/100,l=1-Math.min(1,r*(1-s)+s),d=1-Math.min(1,n*(1-s)+s),g=1-Math.min(1,o*(1-s)+s);return[l*255,d*255,g*255]};convert$2.xyz.rgb=function(t){const r=t[0]/100,n=t[1]/100,o=t[2]/100;let s,l,d;return s=r*3.2406+n*-1.5372+o*-.4986,l=r*-.9689+n*1.8758+o*.0415,d=r*.0557+n*-.204+o*1.057,s=s>.0031308?1.055*Ct(s,1/2.4)-.055:s*12.92,l=l>.0031308?1.055*Ct(l,1/2.4)-.055:l*12.92,d=d>.0031308?1.055*Ct(d,1/2.4)-.055:d*12.92,s=Math.min(Math.max(0,s),1),l=Math.min(Math.max(0,l),1),d=Math.min(Math.max(0,d),1),[s*255,l*255,d*255]};convert$2.xyz.lab=function(t){let r=t[0],n=t[1],o=t[2];r/=95.047,n/=100,o/=108.883,r=r>.008856?Ct(r,1/3):7.787*r+16/116,n=n>.008856?Ct(n,1/3):7.787*n+16/116,o=o>.008856?Ct(o,1/3):7.787*o+16/116;const s=116*n-16,l=500*(r-n),d=200*(n-o);return[s,l,d]};convert$2.lab.xyz=function(t){const r=t[0],n=t[1],o=t[2];let s,l,d;l=(r+16)/116,s=n/500+l,d=l-o/200;const g=Ct(l,3),y=Ct(s,3),b=Ct(d,3);return l=g>.008856?g:(l-16/116)/7.787,s=y>.008856?y:(s-16/116)/7.787,d=b>.008856?b:(d-16/116)/7.787,s*=95.047,l*=100,d*=108.883,[s,l,d]};convert$2.lab.lch=function(t){const r=t[0],n=t[1],o=t[2];let s;s=Math.atan2(o,n)*360/2/Math.PI,s<0&&(s+=360);const d=Math.sqrt(n*n+o*o);return[r,d,s]};convert$2.lch.lab=function(t){const r=t[0],n=t[1],s=t[2]/360*2*Math.PI,l=n*Math.cos(s),d=n*Math.sin(s);return[r,l,d]};convert$2.rgb.ansi16=function(t,r=null){const[n,o,s]=t;let l=r===null?convert$2.rgb.hsv(t)[2]:r;if(l=Math.round(l/50),l===0)return 30;let d=30+(Math.round(s/255)<<2|Math.round(o/255)<<1|Math.round(n/255));return l===2&&(d+=60),d};convert$2.hsv.ansi16=function(t){return convert$2.rgb.ansi16(convert$2.hsv.rgb(t),t[2])};convert$2.rgb.ansi256=function(t){const r=t[0],n=t[1],o=t[2];return r===n&&n===o?r<8?16:r>248?231:Math.round((r-8)/247*24)+232:16+36*Math.round(r/255*5)+6*Math.round(n/255*5)+Math.round(o/255*5)};convert$2.ansi16.rgb=function(t){let r=t%10;if(r===0||r===7)return t>50&&(r+=3.5),r=r/10.5*255,[r,r,r];const n=(~~(t>50)+1)*.5,o=(r&1)*n*255,s=(r>>1&1)*n*255,l=(r>>2&1)*n*255;return[o,s,l]};convert$2.ansi256.rgb=function(t){if(t>=232){const l=(t-232)*10+8;return[l,l,l]}t-=16;let r;const n=Math.floor(t/36)/5*255,o=Math.floor((r=t%36)/6)/5*255,s=r%6/5*255;return[n,o,s]};convert$2.rgb.hex=function(t){const n=(((Math.round(t[0])&255)<<16)+((Math.round(t[1])&255)<<8)+(Math.round(t[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};convert$2.hex.rgb=function(t){const r=t.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!r)return[0,0,0];let n=r[0];r[0].length===3&&(n=n.split("").map(g=>g+g).join(""));const o=parseInt(n,16),s=o>>16&255,l=o>>8&255,d=o&255;return[s,l,d]};convert$2.rgb.hcg=function(t){const r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.max(Math.max(r,n),o),l=Math.min(Math.min(r,n),o),d=s-l;let g,y;return d<1?g=l/(1-d):g=0,d<=0?y=0:s===r?y=(n-o)/d%6:s===n?y=2+(o-r)/d:y=4+(r-n)/d,y/=6,y%=1,[y*360,d*100,g*100]};convert$2.hsl.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=n<.5?2*r*n:2*r*(1-n);let s=0;return o<1&&(s=(n-.5*o)/(1-o)),[t[0],o*100,s*100]};convert$2.hsv.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=r*n;let s=0;return o<1&&(s=(n-o)/(1-o)),[t[0],o*100,s*100]};convert$2.hcg.rgb=function(t){const r=t[0]/360,n=t[1]/100,o=t[2]/100;if(n===0)return[o*255,o*255,o*255];const s=[0,0,0],l=r%1*6,d=l%1,g=1-d;let y=0;switch(Math.floor(l)){case 0:s[0]=1,s[1]=d,s[2]=0;break;case 1:s[0]=g,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=d;break;case 3:s[0]=0,s[1]=g,s[2]=1;break;case 4:s[0]=d,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=g}return y=(1-n)*o,[(n*s[0]+y)*255,(n*s[1]+y)*255,(n*s[2]+y)*255]};convert$2.hcg.hsv=function(t){const r=t[1]/100,n=t[2]/100,o=r+n*(1-r);let s=0;return o>0&&(s=r/o),[t[0],s*100,o*100]};convert$2.hcg.hsl=function(t){const r=t[1]/100,o=t[2]/100*(1-r)+.5*r;let s=0;return o>0&&o<.5?s=r/(2*o):o>=.5&&o<1&&(s=r/(2*(1-o))),[t[0],s*100,o*100]};convert$2.hcg.hwb=function(t){const r=t[1]/100,n=t[2]/100,o=r+n*(1-r);return[t[0],(o-r)*100,(1-o)*100]};convert$2.hwb.hcg=function(t){const r=t[1]/100,n=t[2]/100,o=1-n,s=o-r;let l=0;return s<1&&(l=(o-s)/(1-s)),[t[0],s*100,l*100]};convert$2.apple.rgb=function(t){return[t[0]/65535*255,t[1]/65535*255,t[2]/65535*255]};convert$2.rgb.apple=function(t){return[t[0]/255*65535,t[1]/255*65535,t[2]/255*65535]};convert$2.gray.rgb=function(t){return[t[0]/100*255,t[0]/100*255,t[0]/100*255]};convert$2.gray.hsl=function(t){return[0,0,t[0]]};convert$2.gray.hsv=convert$2.gray.hsl;convert$2.gray.hwb=function(t){return[0,100,t[0]]};convert$2.gray.cmyk=function(t){return[0,0,0,t[0]]};convert$2.gray.lab=function(t){return[t[0],0,0]};convert$2.gray.hex=function(t){const r=Math.round(t[0]/100*255)&255,o=((r<<16)+(r<<8)+r).toString(16).toUpperCase();return"000000".substring(o.length)+o};convert$2.rgb.gray=function(t){return[(t[0]+t[1]+t[2])/3/255*100]};const conversions$1=conversions$2;function buildGraph(){const t={},r=Object.keys(conversions$1);for(let n=r.length,o=0;o<n;o++)t[r[o]]={distance:-1,parent:null};return t}function deriveBFS(t){const r=buildGraph(),n=[t];for(r[t].distance=0;n.length;){const o=n.pop(),s=Object.keys(conversions$1[o]);for(let l=s.length,d=0;d<l;d++){const g=s[d],y=r[g];y.distance===-1&&(y.distance=r[o].distance+1,y.parent=o,n.unshift(g))}}return r}function link(t,r){return function(n){return r(t(n))}}function wrapConversion(t,r){const n=[r[t].parent,t];let o=conversions$1[r[t].parent][t],s=r[t].parent;for(;r[s].parent;)n.unshift(r[s].parent),o=link(conversions$1[r[s].parent][s],o),s=r[s].parent;return o.conversion=n,o}var route$1=function(t){const r=deriveBFS(t),n={},o=Object.keys(r);for(let s=o.length,l=0;l<s;l++){const d=o[l];r[d].parent!==null&&(n[d]=wrapConversion(d,r))}return n};const conversions=conversions$2,route=route$1,convert$1={},models=Object.keys(conversions);function wrapRaw(t){const r=function(...n){const o=n[0];return o==null?o:(o.length>1&&(n=o),t(n))};return"conversion"in t&&(r.conversion=t.conversion),r}function wrapRounded(t){const r=function(...n){const o=n[0];if(o==null)return o;o.length>1&&(n=o);const s=t(n);if(typeof s=="object")for(let l=s.length,d=0;d<l;d++)s[d]=Math.round(s[d]);return s};return"conversion"in t&&(r.conversion=t.conversion),r}models.forEach(t=>{convert$1[t]={},Object.defineProperty(convert$1[t],"channels",{value:conversions[t].channels}),Object.defineProperty(convert$1[t],"labels",{value:conversions[t].labels});const r=route(t);Object.keys(r).forEach(o=>{const s=r[o];convert$1[t][o]=wrapRounded(s),convert$1[t][o].raw=wrapRaw(s)})});var colorConvert=convert$1;const colorString=colorString$1.exports,convert=colorConvert,skippedModels=["keyword","gray","hex"],hashedModelKeys={};for(const t of Object.keys(convert))hashedModelKeys[[...convert[t].labels].sort().join("")]=t;const limiters={};function Color(t,r){if(!(this instanceof Color))return new Color(t,r);if(r&&r in skippedModels&&(r=null),r&&!(r in convert))throw new Error("Unknown model: "+r);let n,o;if(t==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(t instanceof Color)this.model=t.model,this.color=[...t.color],this.valpha=t.valpha;else if(typeof t=="string"){const s=colorString.get(t);if(s===null)throw new Error("Unable to parse color from string: "+t);this.model=s.model,o=convert[this.model].channels,this.color=s.value.slice(0,o),this.valpha=typeof s.value[o]=="number"?s.value[o]:1}else if(t.length>0){this.model=r||"rgb",o=convert[this.model].channels;const s=Array.prototype.slice.call(t,0,o);this.color=zeroArray(s,o),this.valpha=typeof t[o]=="number"?t[o]:1}else if(typeof t=="number")this.model="rgb",this.color=[t>>16&255,t>>8&255,t&255],this.valpha=1;else{this.valpha=1;const s=Object.keys(t);"alpha"in t&&(s.splice(s.indexOf("alpha"),1),this.valpha=typeof t.alpha=="number"?t.alpha:0);const l=s.sort().join("");if(!(l in hashedModelKeys))throw new Error("Unable to parse color from object: "+JSON.stringify(t));this.model=hashedModelKeys[l];const{labels:d}=convert[this.model],g=[];for(n=0;n<d.length;n++)g.push(t[d[n]]);this.color=zeroArray(g)}if(limiters[this.model])for(o=convert[this.model].channels,n=0;n<o;n++){const s=limiters[this.model][n];s&&(this.color[n]=s(this.color[n]))}this.valpha=Math.max(0,Math.min(1,this.valpha)),Object.freeze&&Object.freeze(this)}Color.prototype={toString(){return this.string()},toJSON(){return this[this.model]()},string(t){let r=this.model in colorString.to?this:this.rgb();r=r.round(typeof t=="number"?t:1);const n=r.valpha===1?r.color:[...r.color,this.valpha];return colorString.to[r.model](n)},percentString(t){const r=this.rgb().round(typeof t=="number"?t:1),n=r.valpha===1?r.color:[...r.color,this.valpha];return colorString.to.rgb.percent(n)},array(){return this.valpha===1?[...this.color]:[...this.color,this.valpha]},object(){const t={},{channels:r}=convert[this.model],{labels:n}=convert[this.model];for(let o=0;o<r;o++)t[n[o]]=this.color[o];return this.valpha!==1&&(t.alpha=this.valpha),t},unitArray(){const t=this.rgb().color;return t[0]/=255,t[1]/=255,t[2]/=255,this.valpha!==1&&t.push(this.valpha),t},unitObject(){const t=this.rgb().object();return t.r/=255,t.g/=255,t.b/=255,this.valpha!==1&&(t.alpha=this.valpha),t},round(t){return t=Math.max(t||0,0),new Color([...this.color.map(roundToPlace(t)),this.valpha],this.model)},alpha(t){return t!==void 0?new Color([...this.color,Math.max(0,Math.min(1,t))],this.model):this.valpha},red:getset("rgb",0,maxfn(255)),green:getset("rgb",1,maxfn(255)),blue:getset("rgb",2,maxfn(255)),hue:getset(["hsl","hsv","hsl","hwb","hcg"],0,t=>(t%360+360)%360),saturationl:getset("hsl",1,maxfn(100)),lightness:getset("hsl",2,maxfn(100)),saturationv:getset("hsv",1,maxfn(100)),value:getset("hsv",2,maxfn(100)),chroma:getset("hcg",1,maxfn(100)),gray:getset("hcg",2,maxfn(100)),white:getset("hwb",1,maxfn(100)),wblack:getset("hwb",2,maxfn(100)),cyan:getset("cmyk",0,maxfn(100)),magenta:getset("cmyk",1,maxfn(100)),yellow:getset("cmyk",2,maxfn(100)),black:getset("cmyk",3,maxfn(100)),x:getset("xyz",0,maxfn(95.047)),y:getset("xyz",1,maxfn(100)),z:getset("xyz",2,maxfn(108.833)),l:getset("lab",0,maxfn(100)),a:getset("lab",1),b:getset("lab",2),keyword(t){return t!==void 0?new Color(t):convert[this.model].keyword(this.color)},hex(t){return t!==void 0?new Color(t):colorString.to.hex(this.rgb().round().color)},hexa(t){if(t!==void 0)return new Color(t);const r=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),colorString.to.hex(r)+n},rgbNumber(){const t=this.rgb().color;return(t[0]&255)<<16|(t[1]&255)<<8|t[2]&255},luminosity(){const t=this.rgb().color,r=[];for(const[n,o]of t.entries()){const s=o/255;r[n]=s<=.04045?s/12.92:Ct((s+.055)/1.055,2.4)}return .2126*r[0]+.7152*r[1]+.0722*r[2]},contrast(t){const r=this.luminosity(),n=t.luminosity();return r>n?(r+.05)/(n+.05):(n+.05)/(r+.05)},level(t){const r=this.contrast(t);return r>=7?"AAA":r>=4.5?"AA":""},isDark(){const t=this.rgb().color;return(t[0]*2126+t[1]*7152+t[2]*722)/1e4<128},isLight(){return!this.isDark()},negate(){const t=this.rgb();for(let r=0;r<3;r++)t.color[r]=255-t.color[r];return t},lighten(t){const r=this.hsl();return r.color[2]+=r.color[2]*t,r},darken(t){const r=this.hsl();return r.color[2]-=r.color[2]*t,r},saturate(t){const r=this.hsl();return r.color[1]+=r.color[1]*t,r},desaturate(t){const r=this.hsl();return r.color[1]-=r.color[1]*t,r},whiten(t){const r=this.hwb();return r.color[1]+=r.color[1]*t,r},blacken(t){const r=this.hwb();return r.color[2]+=r.color[2]*t,r},grayscale(){const t=this.rgb().color,r=t[0]*.3+t[1]*.59+t[2]*.11;return Color.rgb(r,r,r)},fade(t){return this.alpha(this.valpha-this.valpha*t)},opaquer(t){return this.alpha(this.valpha+this.valpha*t)},rotate(t){const r=this.hsl();let n=r.color[0];return n=(n+t)%360,n=n<0?360+n:n,r.color[0]=n,r},mix(t,r){if(!t||!t.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof t);const n=t.rgb(),o=this.rgb(),s=r===void 0?.5:r,l=2*s-1,d=n.alpha()-o.alpha(),g=((l*d===-1?l:(l+d)/(1+l*d))+1)/2,y=1-g;return Color.rgb(g*n.red()+y*o.red(),g*n.green()+y*o.green(),g*n.blue()+y*o.blue(),n.alpha()*s+o.alpha()*(1-s))}};for(const t of Object.keys(convert)){if(skippedModels.includes(t))continue;const{channels:r}=convert[t];Color.prototype[t]=function(...n){return this.model===t?new Color(this):n.length>0?new Color(n,t):new Color([...assertArray(convert[this.model][t].raw(this.color)),this.valpha],t)},Color[t]=function(...n){let o=n[0];return typeof o=="number"&&(o=zeroArray(n,r)),new Color(o,t)}}function roundTo(t,r){return Number(t.toFixed(r))}function roundToPlace(t){return function(r){return roundTo(r,t)}}function getset(t,r,n){t=Array.isArray(t)?t:[t];for(const o of t)(limiters[o]||(limiters[o]=[]))[r]=n;return t=t[0],function(o){let s;return o!==void 0?(n&&(o=n(o)),s=this[t](),s.color[r]=o,s):(s=this[t]().color[r],n&&(s=n(s)),s)}}function maxfn(t){return function(r){return Math.max(0,Math.min(t,r))}}function assertArray(t){return Array.isArray(t)?t:[t]}function zeroArray(t,r){for(let n=0;n<r;n++)typeof t[n]!="number"&&(t[n]=0);return t}var color$1=Color,Color$1=color$1;const animationsClass=t=>t.length?`animate__animated animate__${t[0]}`:"",getFilterStyle=t=>{if(!t||!t.filterShow)return{};const{opacity:r,saturate:n,contrast:o,hueRotate:s,brightness:l}=t;return{opacity:r,filter:`saturate(${n}) contrast(${o}) hue-rotate(${s}deg) brightness(${l})`}},getTransformStyle=t=>{const{rotateZ:r,rotateX:n,rotateY:o,skewX:s,skewY:l}=t;return{transform:`rotateZ(${r||0}deg) rotateX(${n||0}deg) rotateY(${o||0}deg) skewX(${s||0}deg) skewY(${l||0}deg)`}},getBlendModeStyle=t=>{if(!t||!t.filterShow)return{};const{blendMode:r}=t;return{"mix-blend-mode":r}};function alpha(t,r=1){return Color$1(t).alpha(r).toString()}function lighten(t,r){return Color$1(t).lighten(r).toString()}const setHtmlTheme=t=>{const r=window.document.documentElement;if(t){r.setAttribute("data-theme",t);return}const n=useDesignStore();r.setAttribute("data-theme",n.themeName)},naive=create$3({components:[NA,NP,NH1,NH2,NH3,NH4,NH5,NCode,NCountdown,NText,NTime,NEllipsis,NMessageProvider,NDialogProvider,NConfigProvider,NGradientText,NInput,NButton,NButtonGroup,NForm,NFormItem,NCheckboxGroup,NCheckbox,NIcon,NImage,NLayout,NLayoutHeader,NLayoutContent,NLayoutFooter,NLayoutSider,NMenu,NBreadcrumb,NBreadcrumbItem,NDropdown,NSpace,NTooltip,NAvatar,NTabs,NTab,NTabPane,NCard,NRow,NCol,NDrawer,NDrawerContent,NDivider,NSwitch,NBadge,NAlert,NElement,NTag,NNotificationProvider,NNumberAnimation,NProgress,NDatePicker,NGrid,NGridItem,NList,NListItem,NThing,NDataTable,NPopover,NPagination,NSlider,NSelect,NRadioGroup,NRadio,NSteps,NStep,NInputGroup,NInputGroupLabel,NResult,NDescriptions,NDescriptionsItem,NTable,NInputNumber,NLoadingBarProvider,NModal,NUpload,NUploadFileList,NUploadTrigger,NUploadDragger,NTree,NTreeSelect,NSpin,NTimeline,NTimelineItem,NTimePicker,NBackTop,NSkeleton,NStatistic,NCarousel,NScrollbar,NPopselect,NCollapse,NCollapseItem,NColorPicker,NWatermark,NEmpty,NCollapseTransition]});function setupNaive(t){t.use(naive)}/*!
|
|
* 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 LifecycleEnum;(function(t){t.LOADING="loading",t.LOADED="loaded",t.ERROR="error"})(LifecycleEnum||(LifecycleEnum={}));var inBrowser=typeof window!="undefined"&&window!==null,hasIntersectionObserver=checkIntersectionObserver(),isEnumerable=Object.prototype.propertyIsEnumerable,getSymbols=Object.getOwnPropertySymbols;function isObject$9(t){return typeof t=="function"||toString.call(t)==="[object Object]"}function isPrimitive$1(t){return typeof t=="object"?t===null:typeof t!="function"}function isValidKey(t){return t!=="__proto__"&&t!=="constructor"&&t!=="prototype"}function checkIntersectionObserver(){return inBrowser&&"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 assignSymbols(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!isObject$9(t))throw new TypeError("expected the first argument to be an object");if(r.length===0||typeof Symbol!="function"||typeof getSymbols!="function")return t;for(var o=0,s=r;o<s.length;o++)for(var l=s[o],d=getSymbols(l),g=0,y=d;g<y.length;g++){var b=y[g];isEnumerable.call(l,b)&&(t[b]=l[b])}return t}function assign(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=0;for(isPrimitive$1(t)&&(t=r[o++]),t||(t={});o<r.length;o++)if(isObject$9(r[o])){for(var s=0,l=Object.keys(r[o]);s<l.length;s++){var d=l[s];isValidKey(d)&&(isObject$9(t[d])&&isObject$9(r[o][d])?assign(t[d],r[o][d]):t[d]=r[o][d])}assignSymbols(t,r[o])}return t}var DEFAULT_OBSERVER_OPTIONS={rootMargin:"0px",threshold:0},DEFAULT_LOADING="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",DEFAULT_ERROR="",Lazy=function(){function t(r){this.options={loading:DEFAULT_LOADING,error:DEFAULT_ERROR,observerOptions:DEFAULT_OBSERVER_OPTIONS,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(r)}return t.prototype.config=function(r){r===void 0&&(r={}),assign(this.options,r)},t.prototype.mount=function(r,n){var o=this._valueFormatter(n.value),s=o.src,l=o.loading,d=o.error,g=o.lifecycle;this._lifecycle(LifecycleEnum.LOADING,g,r),r.setAttribute("src",l||DEFAULT_LOADING),hasIntersectionObserver||(this.loadImages(r,s,d,g),this._log(function(){throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(r,s,d,g)},t.prototype.update=function(r,n){var o;(o=this._realObserver(r))===null||o===void 0||o.unobserve(r);var s=this._valueFormatter(n.value),l=s.src,d=s.error,g=s.lifecycle;this._initIntersectionObserver(r,l,d,g)},t.prototype.unmount=function(r){var n;(n=this._realObserver(r))===null||n===void 0||n.unobserve(r),this._images.delete(r)},t.prototype.loadImages=function(r,n,o,s){this._setImageSrc(r,n,o,s)},t.prototype._setImageSrc=function(r,n,o,s){var l=this;if(r.tagName.toLowerCase()==="img"){if(n){var d=r.getAttribute("src");d!==n&&r.setAttribute("src",n)}this._listenImageStatus(r,function(){l._lifecycle(LifecycleEnum.LOADED,s,r)},function(){var g;r.onload=null,l._lifecycle(LifecycleEnum.ERROR,s,r),(g=l._realObserver(r))===null||g===void 0||g.disconnect(),o&&r.setAttribute("src",o),l._log(function(){throw new Error("Image failed to load!")})})}else r.style.backgroundImage="url('"+n+"')"},t.prototype._initIntersectionObserver=function(r,n,o,s){var l=this,d,g=this.options.observerOptions;this._images.set(r,new IntersectionObserver(function(y){Array.prototype.forEach.call(y,function(b){var C;b.isIntersecting&&((C=l._realObserver(r))===null||C===void 0||C.unobserve(b.target),l._setImageSrc(r,n,o,s))})},g)),(d=this._realObserver(r))===null||d===void 0||d.observe(r)},t.prototype._listenImageStatus=function(r,n,o){r.onload=n,r.onerror=o},t.prototype._valueFormatter=function(r){var n=r,o=this.options.loading,s=this.options.error,l=this.options.lifecycle;return isObject$9(r)&&(n=r.src,o=r.loading||this.options.loading,s=r.error||this.options.error,l=r.lifecycle||this.options.lifecycle),{src:n,loading:o,error:s,lifecycle:l}},t.prototype._log=function(r){this.options.log&&r()},t.prototype._lifecycle=function(r,n,o){switch(r){case LifecycleEnum.LOADING:o==null||o.setAttribute("lazy",LifecycleEnum.LOADING),n!=null&&n.loading&&n.loading(o);break;case LifecycleEnum.LOADED:o==null||o.setAttribute("lazy",LifecycleEnum.LOADED),n!=null&&n.loaded&&n.loaded(o);break;case LifecycleEnum.ERROR:o==null||o.setAttribute("lazy",LifecycleEnum.ERROR),n!=null&&n.error&&n.error(o);break}},t.prototype._realObserver=function(r){return this._images.get(r)},t}(),index$1={install:function(t,r){var n=new Lazy(r);t.config.globalProperties.$Lazyload=n,t.provide("Lazyload",n),t.directive("lazy",{mounted:n.mount.bind(n),updated:n.update.bind(n),unmounted:n.unmount.bind(n)})}};function setupDirectives(t){t.use(index$1,{error:requireErrorImg()})}var index_vue_vue_type_style_index_0_scoped_true_lang$1="";const _hoisted_1$4={class:"go-skeleton"},_sfc_main$7=defineComponent({__name:"index",props:{repeat:{type:Number,default:1},load:{type:Boolean,default:!0}},setup(t){return(r,n)=>{const o=resolveComponent("n-skeleton");return withDirectives((openBlock(),createElementBlock("div",_hoisted_1$4,[withDirectives(createBaseVNode("div",null,[createVNode$1(o,mergeProps({class:"item"},r.$attrs),null,16)],512),[[vShow,t.repeat==1]]),withDirectives(createBaseVNode("div",null,[createVNode$1(o,mergeProps({class:"item"},r.$attrs),null,16),createVNode$1(o,mergeProps({class:"item"},r.$attrs,{style:{width:"60%"}}),null,16)],512),[[vShow,t.repeat==2]]),withDirectives(createBaseVNode("div",null,[createVNode$1(o,mergeProps({class:"item"},r.$attrs,{repeat:t.repeat-2}),null,16,["repeat"]),createVNode$1(o,mergeProps({class:"item"},r.$attrs,{style:{width:"60%"}}),null,16),createVNode$1(o,mergeProps({class:"item"},r.$attrs,{style:{width:"50%"}}),null,16)],512),[[vShow,t.repeat>2]])],512)),[[vShow,t.load]])}}});var GoSkeleton=_export_sfc$1(_sfc_main$7,[["__scopeId","data-v-1ab16d08"]]),__glob_6_18="./static/svg/loadingSvg-633775fd.svg",index_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$6={},_withScopeId=t=>(pushScopeId("data-v-06585fdc"),t=t(),popScopeId(),t),_hoisted_1$3={class:"go-loading-svg go-flex-center"},_hoisted_2$1=_withScopeId(()=>createBaseVNode("img",{src:__glob_6_18,alt:""},null,-1)),_hoisted_3=[_hoisted_2$1];function _sfc_render$5(t,r){return openBlock(),createElementBlock("div",_hoisted_1$3,_hoisted_3)}var AsyncLoading=_export_sfc$1(_sfc_main$6,[["render",_sfc_render$5],["__scopeId","data-v-06585fdc"]]);const _sfc_main$5={};function _sfc_render$4(t,r){const n=resolveComponent("go-skeleton");return openBlock(),createElementBlock("div",null,[createVNode$1(n,{repeat:3,show:!0})])}var AsyncSkeletonLoading=_export_sfc$1(_sfc_main$5,[["render",_sfc_render$4]]);AsyncLoading.install=t=>{t.component("AsyncLoading",AsyncLoading)};AsyncSkeletonLoading.install=t=>{t.component("AsyncSkeletonLoading",AsyncSkeletonLoading)};/*!vue3-sketch-ruler v1.3.62022年11月Fri Nov 04 2022 18:18:02 GMT+0800 (中国标准时间)制作*/var _export_sfc=(t,r)=>{const n=t.__vccOpts||t;for(const[o,s]of r)n[o]=s;return n};const _sfc_main$3=defineComponent({name:"LineRuler",props:{scale:Number,thick:Number,palette:Object,index:Number,start:Number,vertical:Boolean,value:Number,isShowReferLine:Boolean},emits:["onMouseDown","onRelease","onRemove"],setup(t,{emit:r}){const n=ref(0),o=ref(!0);onMounted(()=>{n.value=t.value});const s=C=>{o.value=C>=0},l=computed(()=>{const C=(n.value-t.start)*t.scale;s(C);const x=C+"px";return t.vertical?{top:x}:{left:x}}),d=computed(()=>{var C;const x=`1px solid ${(C=t.palette)==null?void 0:C.lineColor}`,S=t.vertical?{borderTop:x}:{borderLeft:x},_=t.isShowReferLine?t.vertical?"ns-resize":"ew-resize":"none";return Et({cursor:_},S)}),g=computed(()=>t.vertical?{left:t.thick+"px"}:{top:t.thick+"px"});return{startValue:n,showLine:o,offset:l,borderCursor:d,actionStyle:g,handleDown:C=>{const x=t.vertical?C.clientY:C.clientX,S=n.value;r("onMouseDown");const _=$=>{const I=t.vertical?$.clientY:$.clientX,B=Math.round(S+(I-x)/t.scale);n.value=B},w=()=>{r("onRelease",n.value,t.index),document.removeEventListener("mousemove",_),document.removeEventListener("mouseup",w)};document.addEventListener("mousemove",_),document.addEventListener("mouseup",w)},handleRemove:()=>{r("onRemove",t.index)}}}}),_hoisted_1$2={class:"value"};function _sfc_render$3(t,r,n,o,s,l){return withDirectives((openBlock(),createElementBlock("div",{class:"line",style:normalizeStyle$1([t.offset,t.borderCursor]),onMousedown:r[1]||(r[1]=(...d)=>t.handleDown&&t.handleDown(...d))},[createBaseVNode("div",{class:"action",style:normalizeStyle$1(t.actionStyle)},[createBaseVNode("span",{class:"del",onClick:r[0]||(r[0]=(...d)=>t.handleRemove&&t.handleRemove(...d))},"\xD7"),createBaseVNode("span",_hoisted_1$2,toDisplayString$1(t.startValue),1)],4)],36)),[[vShow,t.showLine]])}var RulerLine=_export_sfc(_sfc_main$3,[["render",_sfc_render$3],["__scopeId","data-v-5dea28d6"]]);const getGridSize=t=>t<=.25?40:t<=.5?20:t<=1?10:t<=2?5:t<=4?2:1,FONT_SCALE=.83,drawCavaseRuler=(t,r,n,o,s,l)=>{const{scale:d,width:g,height:y,ratio:b,palette:C}=s,{bgColor:x,fontColor:S,shadowColor:_,longfgColor:w,shortfgColor:$}=C;if(t.scale(b,b),t.clearRect(0,0,g,y),t.fillStyle=x,t.fillRect(0,0,g,y),o){const Q=(n-r)*d,G=o*d;t.fillStyle=_,l?t.fillRect(Q,0,G,y*3/8):t.fillRect(0,Q,g*3/8,G)}const I=getGridSize(d),B=I*d,R=I*10,P=R*d,M=Math.floor(r/I)*I,O=Math.floor(r/R)*R,D=(M-r)/I*B,N=(O-r)/R*P,H=r+Math.ceil((l?g:y)/d);t.beginPath(),t.fillStyle=S,t.strokeStyle=w;for(let Q=O,G=0;Q<H;Q+=R,G++){const K=N+G*P+.5;l?t.moveTo(K,0):t.moveTo(0,K),t.save(),l?t.translate(K,y*.4):t.translate(g*.4,K),l||t.rotate(-Math.PI/2),t.scale(FONT_SCALE/b,FONT_SCALE/b),t.fillText(Q.toString(),4*b,7*b),t.restore(),l?t.lineTo(K,y*9/16):t.lineTo(g*9/16,K)}t.stroke(),t.closePath(),t.beginPath(),t.strokeStyle=$;for(let Q=M,G=0;Q<H;Q+=I,G++){const K=D+G*B+.5;l?t.moveTo(K,0):t.moveTo(0,K),Q%R!==0&&(l?t.lineTo(K,y*1/4):t.lineTo(g*1/4,K))}t.stroke(),t.closePath(),t.setTransform(1,0,0,1,0,0)},_sfc_main$2=defineComponent({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(t,{emit:r}){const n=reactive({canvasContext:null});let o=1;const s=ref(null);onMounted(()=>{o=t.ratio||window.devicePixelRatio||1,l(),d(o),g(o)});const l=()=>{n.canvasContext=s.value&&s.value.getContext("2d")},d=b=>{if(s.value){s.value.width=t.width*b,s.value.height=t.height*b;const C=n.canvasContext;C&&(C.font=`${12*b}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")}},g=b=>{const C={scale:t.scale,width:t.width,height:t.height,palette:t.palette,ratio:b};n.canvasContext&&drawCavaseRuler(n.canvasContext,t.start,t.selectStart,t.selectLength,C,!t.vertical)};return watch(()=>t.start,()=>g(o)),watch([()=>t.width,()=>t.height],()=>{d(o),g(o)}),{handle:(b,C)=>{const x=(w,$,I)=>Math.round($+w/I),S=t.vertical?b.offsetY:b.offsetX,_=x(S,t.start,t.scale);switch(C){case"click":r("onAddLine",_);break;case"enter":r("update:valueNum",_),r("update:showIndicator",!0);break;default:r("update:valueNum",_);break}},canvas:s}}});function _sfc_render$2(t,r,n,o,s,l){return openBlock(),createElementBlock("canvas",{ref:"canvas",class:"ruler",onClick:r[0]||(r[0]=d=>t.handle(d,"click")),onMouseenter:r[1]||(r[1]=d=>t.handle(d,"enter")),onMousemove:r[2]||(r[2]=d=>t.handle(d,"move")),onMouseleave:r[3]||(r[3]=d=>t.$emit("update:showIndicator",!1))},null,544)}var CanvasRuler=_export_sfc(_sfc_main$2,[["render",_sfc_render$2]]);const wrapperProps={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}},_sfc_main$1=defineComponent({name:"RulerWrapper",components:{CanvasRuler,RulerLine},props:wrapperProps,setup(t){const r=ref(!1),n=ref(0),o=computed(()=>t.vertical?"v-container":"h-container"),s=computed(()=>{const b={width:`calc(100% - ${t.thick}px)`,height:`${t.thick+1}px`,left:`${t.thick}px`},C={width:`${t.thick&&t.thick+1}px`,height:`calc(100% - ${t.thick}px)`,top:`${t.thick}px`};return t.vertical?C:b}),l=computed(()=>{var b;const C=(n.value-t.start)*t.scale;let x="top",S="borderLeft";return x=t.vertical?"top":"left",S=t.vertical?"borderBottom":"borderLeft",{[x]:C+"px",[S]:`1px solid ${(b=t.palette)==null?void 0:b.lineColor}`}}),d=b=>{t.lines.push(b)},g=(b,C)=>{const x=b-t.start,S=(t.vertical?t.height:t.width)/t.scale;x<0||x>S?y(C):t.lines[C]=b},y=b=>{t.lines.splice(b,1)};return{showIndicator:r,valueNum:n,rwClassName:o,rwStyle:s,indicatorStyle:l,handleNewLine:d,handleLineRelease:g,handleLineRemove:y}}}),_hoisted_1$1={class:"lines"},_hoisted_2={class:"value"};function _sfc_render$1(t,r,n,o,s,l){const d=resolveComponent("CanvasRuler"),g=resolveComponent("RulerLine");return openBlock(),createElementBlock("div",{class:normalizeClass(t.rwClassName),style:normalizeStyle$1(t.rwStyle)},[createVNode$1(d,{vertical:t.vertical,scale:t.scale,width:t.width,height:t.height,start:t.start,ratio:t.ratio,"select-start":t.selectStart,"select-length":t.selectLength,palette:t.palette,valueNum:t.valueNum,"onUpdate:valueNum":r[0]||(r[0]=y=>t.valueNum=y),showIndicator:t.showIndicator,"onUpdate:showIndicator":r[1]||(r[1]=y=>t.showIndicator=y),onOnAddLine:t.handleNewLine},null,8,["vertical","scale","width","height","start","ratio","select-start","select-length","palette","valueNum","showIndicator","onOnAddLine"]),withDirectives(createBaseVNode("div",_hoisted_1$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.lines,(y,b)=>(openBlock(),createBlock(g,{key:y+b,index:b,value:y>>0,scale:t.scale,start:t.start,thick:t.thick,palette:t.palette,vertical:t.vertical,"is-show-refer-line":t.isShowReferLine,onOnRemove:t.handleLineRemove,onOnRelease:t.handleLineRelease},null,8,["index","value","scale","start","thick","palette","vertical","is-show-refer-line","onOnRemove","onOnRelease"]))),128))],512),[[vShow,t.isShowReferLine]]),withDirectives(createBaseVNode("div",{class:"indicator",style:normalizeStyle$1(t.indicatorStyle)},[createBaseVNode("div",_hoisted_2,toDisplayString$1(t.valueNum),1)],4),[[vShow,t.showIndicator]])],6)}var RulerWrapper=_export_sfc(_sfc_main$1,[["render",_sfc_render$1],["__scopeId","data-v-b6c23352"]]);const eye64="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",closeEye64="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=",sketchRulerProps={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:[]})},isShowReferLine:{type:Boolean,default:!0}},_sfc_main$4=defineComponent({name:"SketchRule",components:{RulerWrapper},props:sketchRulerProps,emits:["onCornerClick"],setup(t,{emit:r}){let n=ref(!0);n.value=t.isShowReferLine;const o=computed(()=>{function d(y,b){return Object.keys(y).forEach(C=>{C&&y.hasOwnProperty(C)&&(typeof b.key=="object"?y[C]=d(y[C],b[C]):b.hasOwnProperty(C)&&(y[C]=b[C]))}),y}return d({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"}}},t.palette||{})}),s=computed(()=>({backgroundImage:n.value?`url(${t.eyeIcon||eye64})`:`url(${t.closeEyeIcon||closeEye64})`,width:t.thick+"px",height:t.thick+"px",borderRight:`1px solid ${o.value.borderColor}`,borderBottom:`1px solid ${o.value.borderColor}`})),l=d=>{n.value=!n.value,r("onCornerClick",n.value)};return watch([()=>t.isShowReferLine],()=>{n.value=t.isShowReferLine}),{showReferLine:n,paletteCpu:o,cornerStyle:s,onCornerClick:l}}}),_hoisted_1={id:"mb-ruler",class:"style-ruler mb-ruler"};function _sfc_render(t,r,n,o,s,l){const d=resolveComponent("RulerWrapper");return openBlock(),createElementBlock("div",_hoisted_1,[createVNode$1(d,{vertical:!1,width:t.width,height:t.thick,"is-show-refer-line":t.showReferLine,thick:t.thick,ratio:t.ratio,start:t.startX,lines:t.lines.h,"select-start":t.shadow.x,"select-length":t.shadow.width,scale:t.scale,palette:t.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),createVNode$1(d,{vertical:!0,width:t.thick,height:t.height,"is-show-refer-line":t.showReferLine,thick:t.thick,ratio:t.ratio,start:t.startY,lines:t.lines.v,"select-start":t.shadow.y,"select-length":t.shadow.height,scale:t.scale,palette:t.paletteCpu},null,8,["width","height","is-show-refer-line","thick","ratio","start","lines","select-start","select-length","scale","palette"]),createBaseVNode("a",{class:"corner",style:normalizeStyle$1(t.cornerStyle),onClick:r[0]||(r[0]=(...g)=>t.onCornerClick&&t.onCornerClick(...g))},null,4)])}var SketchRule=_export_sfc(_sfc_main$4,[["render",_sfc_render]]);function setupCustomComponents(t){t.component("GoSkeleton",GoSkeleton),t.component("GoLoading",AsyncLoading),t.component("SketchRule",SketchRule)}const initFunction=()=>Bt(void 0,null,function*(){window.addEventListener("unhandledrejection",t=>{console.warn(`UNHANDLED PROMISE REJECTION: ${t.reason}`)})}),{GO_DESIGN_STORE}=StorageEnum,{darkTheme:darkTheme$1,appTheme,appThemeDetail}=theme$1,storageDesign=getLocalStorage(GO_DESIGN_STORE),useDesignStore=defineStore({id:"useDesignStore",state:()=>storageDesign||{darkTheme:darkTheme$1,themeName:darkTheme$1&&ThemeEnum.DARK||ThemeEnum.LIGHT,appTheme,appThemeDetail},getters:{getDarkTheme(t){return this.darkTheme},getAppTheme(){return this.appTheme},getAppThemeDetail(){return this.appThemeDetail}},actions:{changeTheme(){this.darkTheme=!this.darkTheme,this.themeName=this.darkTheme?ThemeEnum.DARK:ThemeEnum.LIGHT,setLocalStorage(GO_DESIGN_STORE,this.$state)},setAppColor(t){this.appTheme=t.hex,this.appThemeDetail=t,setLocalStorage(GO_DESIGN_STORE,this.$state)}}}),useThemeOverridesHook=()=>{const t=useDesignStore(),{getAppTheme:r}=toRefs(t);return computed(()=>{const o={common:{primaryColor:r.value,primaryColorHover:lighten(alpha(r.value),.1),primaryColorPressed:lighten(alpha(r.value),.1),primaryColorSuppl:r.value,borderRadius}},s={common:Et({},o.common)},l={common:Et({},o.common),LoadingBar:{colorLoading:r.value}};return t.getDarkTheme?l:s})},useDarkThemeHook=()=>{const t=useDesignStore();return computed(()=>t.getDarkTheme?darkTheme$2:void 0)};var deepFreezeEs6={exports:{}};function deepFreeze(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(r){var n=t[r];typeof n=="object"&&!Object.isFrozen(n)&&deepFreeze(n)}),t}deepFreezeEs6.exports=deepFreeze;deepFreezeEs6.exports.default=deepFreeze;class Response{constructor(r){r.data===void 0&&(r.data={}),this.data=r.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function escapeHTML(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function inherit$1(t,...r){const n=Object.create(null);for(const o in t)n[o]=t[o];return r.forEach(function(o){for(const s in o)n[s]=o[s]}),n}const SPAN_CLOSE="</span>",emitsWrappingTags=t=>!!t.scope||t.sublanguage&&t.language,scopeToCSSClass=(t,{prefix:r})=>{if(t.includes(".")){const n=t.split(".");return[`${r}${n.shift()}`,...n.map((o,s)=>`${o}${"_".repeat(s+1)}`)].join(" ")}return`${r}${t}`};class HTMLRenderer{constructor(r,n){this.buffer="",this.classPrefix=n.classPrefix,r.walk(this)}addText(r){this.buffer+=escapeHTML(r)}openNode(r){if(!emitsWrappingTags(r))return;let n="";r.sublanguage?n=`language-${r.language}`:n=scopeToCSSClass(r.scope,{prefix:this.classPrefix}),this.span(n)}closeNode(r){!emitsWrappingTags(r)||(this.buffer+=SPAN_CLOSE)}value(){return this.buffer}span(r){this.buffer+=`<span class="${r}">`}}const newNode=(t={})=>{const r={children:[]};return Object.assign(r,t),r};class TokenTree{constructor(){this.rootNode=newNode(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(r){this.top.children.push(r)}openNode(r){const n=newNode({scope:r});this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(r){return this.constructor._walk(r,this.rootNode)}static _walk(r,n){return typeof n=="string"?r.addText(n):n.children&&(r.openNode(n),n.children.forEach(o=>this._walk(r,o)),r.closeNode(n)),r}static _collapse(r){typeof r!="string"&&(!r.children||(r.children.every(n=>typeof n=="string")?r.children=[r.children.join("")]:r.children.forEach(n=>{TokenTree._collapse(n)})))}}class TokenTreeEmitter extends TokenTree{constructor(r){super(),this.options=r}addKeyword(r,n){r!==""&&(this.openNode(n),this.addText(r),this.closeNode())}addText(r){r!==""&&this.add(r)}addSublanguage(r,n){const o=r.root;o.sublanguage=!0,o.language=n,this.add(o)}toHTML(){return new HTMLRenderer(this,this.options).value()}finalize(){return!0}}function source(t){return t?typeof t=="string"?t:t.source:null}function lookahead(t){return concat("(?=",t,")")}function anyNumberOfTimes(t){return concat("(?:",t,")*")}function optional(t){return concat("(?:",t,")?")}function concat(...t){return t.map(n=>source(n)).join("")}function stripOptionsFromArgs(t){const r=t[t.length-1];return typeof r=="object"&&r.constructor===Object?(t.splice(t.length-1,1),r):{}}function either(...t){const r=stripOptionsFromArgs(t);return"("+(r.capture?"":"?:")+t.map(o=>source(o)).join("|")+")"}function countMatchGroups(t){return new RegExp(t.toString()+"|").exec("").length-1}function startsWith(t,r){const n=t&&t.exec(r);return n&&n.index===0}const BACKREF_RE=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function _rewriteBackreferences(t,{joinWith:r}){let n=0;return t.map(o=>{n+=1;const s=n;let l=source(o),d="";for(;l.length>0;){const g=BACKREF_RE.exec(l);if(!g){d+=l;break}d+=l.substring(0,g.index),l=l.substring(g.index+g[0].length),g[0][0]==="\\"&&g[1]?d+="\\"+String(Number(g[1])+s):(d+=g[0],g[0]==="("&&n++)}return d}).map(o=>`(${o})`).join(r)}const MATCH_NOTHING_RE=/\b\B/,IDENT_RE$1="[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",NUMBER_RE="\\b\\d+(\\.\\d+)?",C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",BINARY_NUMBER_RE="\\b(0b[01]+)",RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG=(t={})=>{const r=/^#![ ]*\//;return t.binary&&(t.begin=concat(r,/.*\b/,t.binary,/\b.*/)),inherit$1({scope:"meta",begin:r,end:/$/,relevance:0,"on:begin":(n,o)=>{n.index!==0&&o.ignoreMatch()}},t)},BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},APOS_STRING_MODE={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[BACKSLASH_ESCAPE]},QUOTE_STRING_MODE={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[BACKSLASH_ESCAPE]},PHRASAL_WORDS_MODE={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/},COMMENT=function(t,r,n={}){const o=inherit$1({scope:"comment",begin:t,end:r,contains:[]},n);o.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 s=either("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 o.contains.push({begin:concat(/[ ]+/,"(",s,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),o},C_LINE_COMMENT_MODE=COMMENT("//","$"),C_BLOCK_COMMENT_MODE=COMMENT("/\\*","\\*/"),HASH_COMMENT_MODE=COMMENT("#","$"),NUMBER_MODE={scope:"number",begin:NUMBER_RE,relevance:0},C_NUMBER_MODE={scope:"number",begin:C_NUMBER_RE,relevance:0},BINARY_NUMBER_MODE={scope:"number",begin:BINARY_NUMBER_RE,relevance:0},REGEXP_MODE={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[BACKSLASH_ESCAPE]}]}]},TITLE_MODE={scope:"title",begin:IDENT_RE$1,relevance:0},UNDERSCORE_TITLE_MODE={scope:"title",begin:UNDERSCORE_IDENT_RE,relevance:0},METHOD_GUARD={begin:"\\.\\s*"+UNDERSCORE_IDENT_RE,relevance:0},END_SAME_AS_BEGIN=function(t){return Object.assign(t,{"on:begin":(r,n)=>{n.data._beginMatch=r[1]},"on:end":(r,n)=>{n.data._beginMatch!==r[1]&&n.ignoreMatch()}})};var MODES=Object.freeze({__proto__:null,MATCH_NOTHING_RE,IDENT_RE:IDENT_RE$1,UNDERSCORE_IDENT_RE,NUMBER_RE,C_NUMBER_RE,BINARY_NUMBER_RE,RE_STARTERS_RE,SHEBANG,BACKSLASH_ESCAPE,APOS_STRING_MODE,QUOTE_STRING_MODE,PHRASAL_WORDS_MODE,COMMENT,C_LINE_COMMENT_MODE,C_BLOCK_COMMENT_MODE,HASH_COMMENT_MODE,NUMBER_MODE,C_NUMBER_MODE,BINARY_NUMBER_MODE,REGEXP_MODE,TITLE_MODE,UNDERSCORE_TITLE_MODE,METHOD_GUARD,END_SAME_AS_BEGIN});function skipIfHasPrecedingDot(t,r){t.input[t.index-1]==="."&&r.ignoreMatch()}function scopeClassName(t,r){t.className!==void 0&&(t.scope=t.className,delete t.className)}function beginKeywords(t,r){!r||!t.beginKeywords||(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=skipIfHasPrecedingDot,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function compileIllegal(t,r){!Array.isArray(t.illegal)||(t.illegal=either(...t.illegal))}function compileMatch(t,r){if(!!t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function compileRelevance(t,r){t.relevance===void 0&&(t.relevance=1)}const beforeMatchExt=(t,r)=>{if(!t.beforeMatch)return;if(t.starts)throw new Error("beforeMatch cannot be used with starts");const n=Object.assign({},t);Object.keys(t).forEach(o=>{delete t[o]}),t.keywords=n.keywords,t.begin=concat(n.beforeMatch,lookahead(n.begin)),t.starts={relevance:0,contains:[Object.assign(n,{endsParent:!0})]},t.relevance=0,delete n.beforeMatch},COMMON_KEYWORDS=["of","and","for","in","not","or","if","then","parent","list","value"],DEFAULT_KEYWORD_SCOPE="keyword";function compileKeywords(t,r,n=DEFAULT_KEYWORD_SCOPE){const o=Object.create(null);return typeof t=="string"?s(n,t.split(" ")):Array.isArray(t)?s(n,t):Object.keys(t).forEach(function(l){Object.assign(o,compileKeywords(t[l],r,l))}),o;function s(l,d){r&&(d=d.map(g=>g.toLowerCase())),d.forEach(function(g){const y=g.split("|");o[y[0]]=[l,scoreForKeyword(y[0],y[1])]})}}function scoreForKeyword(t,r){return r?Number(r):commonKeyword(t)?0:1}function commonKeyword(t){return COMMON_KEYWORDS.includes(t.toLowerCase())}const seenDeprecations={},error=t=>{console.error(t)},warn$1=(t,...r)=>{console.log(`WARN: ${t}`,...r)},deprecated=(t,r)=>{seenDeprecations[`${t}/${r}`]||(console.log(`Deprecated as of ${t}. ${r}`),seenDeprecations[`${t}/${r}`]=!0)},MultiClassError=new Error;function remapScopeNames(t,r,{key:n}){let o=0;const s=t[n],l={},d={};for(let g=1;g<=r.length;g++)d[g+o]=s[g],l[g+o]=!0,o+=countMatchGroups(r[g-1]);t[n]=d,t[n]._emit=l,t[n]._multi=!0}function beginMultiClass(t){if(!!Array.isArray(t.begin)){if(t.skip||t.excludeBegin||t.returnBegin)throw error("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),MultiClassError;if(typeof t.beginScope!="object"||t.beginScope===null)throw error("beginScope must be object"),MultiClassError;remapScopeNames(t,t.begin,{key:"beginScope"}),t.begin=_rewriteBackreferences(t.begin,{joinWith:""})}}function endMultiClass(t){if(!!Array.isArray(t.end)){if(t.skip||t.excludeEnd||t.returnEnd)throw error("skip, excludeEnd, returnEnd not compatible with endScope: {}"),MultiClassError;if(typeof t.endScope!="object"||t.endScope===null)throw error("endScope must be object"),MultiClassError;remapScopeNames(t,t.end,{key:"endScope"}),t.end=_rewriteBackreferences(t.end,{joinWith:""})}}function scopeSugar(t){t.scope&&typeof t.scope=="object"&&t.scope!==null&&(t.beginScope=t.scope,delete t.scope)}function MultiClass(t){scopeSugar(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),beginMultiClass(t),endMultiClass(t)}function compileLanguage(t){function r(d,g){return new RegExp(source(d),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(g?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(g,y){y.position=this.position++,this.matchIndexes[this.matchAt]=y,this.regexes.push([y,g]),this.matchAt+=countMatchGroups(g)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const g=this.regexes.map(y=>y[1]);this.matcherRe=r(_rewriteBackreferences(g,{joinWith:"|"}),!0),this.lastIndex=0}exec(g){this.matcherRe.lastIndex=this.lastIndex;const y=this.matcherRe.exec(g);if(!y)return null;const b=y.findIndex((x,S)=>S>0&&x!==void 0),C=this.matchIndexes[b];return y.splice(0,b),Object.assign(y,C)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(g){if(this.multiRegexes[g])return this.multiRegexes[g];const y=new n;return this.rules.slice(g).forEach(([b,C])=>y.addRule(b,C)),y.compile(),this.multiRegexes[g]=y,y}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(g,y){this.rules.push([g,y]),y.type==="begin"&&this.count++}exec(g){const y=this.getMatcher(this.regexIndex);y.lastIndex=this.lastIndex;let b=y.exec(g);if(this.resumingScanAtSamePosition()&&!(b&&b.index===this.lastIndex)){const C=this.getMatcher(0);C.lastIndex=this.lastIndex+1,b=C.exec(g)}return b&&(this.regexIndex+=b.position+1,this.regexIndex===this.count&&this.considerAll()),b}}function s(d){const g=new o;return d.contains.forEach(y=>g.addRule(y.begin,{rule:y,type:"begin"})),d.terminatorEnd&&g.addRule(d.terminatorEnd,{type:"end"}),d.illegal&&g.addRule(d.illegal,{type:"illegal"}),g}function l(d,g){const y=d;if(d.isCompiled)return y;[scopeClassName,compileMatch,MultiClass,beforeMatchExt].forEach(C=>C(d,g)),t.compilerExtensions.forEach(C=>C(d,g)),d.__beforeBegin=null,[beginKeywords,compileIllegal,compileRelevance].forEach(C=>C(d,g)),d.isCompiled=!0;let b=null;return typeof d.keywords=="object"&&d.keywords.$pattern&&(d.keywords=Object.assign({},d.keywords),b=d.keywords.$pattern,delete d.keywords.$pattern),b=b||/\w+/,d.keywords&&(d.keywords=compileKeywords(d.keywords,t.case_insensitive)),y.keywordPatternRe=r(b,!0),g&&(d.begin||(d.begin=/\B|\b/),y.beginRe=r(y.begin),!d.end&&!d.endsWithParent&&(d.end=/\B|\b/),d.end&&(y.endRe=r(y.end)),y.terminatorEnd=source(y.end)||"",d.endsWithParent&&g.terminatorEnd&&(y.terminatorEnd+=(d.end?"|":"")+g.terminatorEnd)),d.illegal&&(y.illegalRe=r(d.illegal)),d.contains||(d.contains=[]),d.contains=[].concat(...d.contains.map(function(C){return expandOrCloneMode(C==="self"?d:C)})),d.contains.forEach(function(C){l(C,y)}),d.starts&&l(d.starts,g),y.matcher=s(y),y}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=inherit$1(t.classNameAliases||{}),l(t)}function dependencyOnParent(t){return t?t.endsWithParent||dependencyOnParent(t.starts):!1}function expandOrCloneMode(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(r){return inherit$1(t,{variants:null},r)})),t.cachedVariants?t.cachedVariants:dependencyOnParent(t)?inherit$1(t,{starts:t.starts?inherit$1(t.starts):null}):Object.isFrozen(t)?inherit$1(t):t}var version$2="11.7.0";class HTMLInjectionError extends Error{constructor(r,n){super(r),this.name="HTMLInjectionError",this.html=n}}const escape$1=escapeHTML,inherit=inherit$1,NO_MATCH=Symbol("nomatch"),MAX_KEYWORD_HITS=7,HLJS=function(t){const r=Object.create(null),n=Object.create(null),o=[];let s=!0;const l="Could not find the language '{}', did you forget to load/include a language module?",d={disableAutodetect:!0,name:"Plain text",contains:[]};let g={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:TokenTreeEmitter};function y(X){return g.noHighlightRe.test(X)}function b(X){let re=X.className+" ";re+=X.parentNode?X.parentNode.className:"";const te=g.languageDetectRe.exec(re);if(te){const oe=Q(te[1]);return oe||(warn$1(l.replace("{}",te[1])),warn$1("Falling back to no-highlight mode for this block.",X)),oe?te[1]:"no-highlight"}return re.split(/\s+/).find(oe=>y(oe)||Q(oe))}function C(X,re,te){let oe="",ae="";typeof re=="object"?(oe=X,te=re.ignoreIllegals,ae=re.language):(deprecated("10.7.0","highlight(lang, code, ...args) has been deprecated."),deprecated("10.7.0",`Please use highlight(code, options) instead.
|
|
https://github.com/highlightjs/highlight.js/issues/2277`),ae=X,oe=re),te===void 0&&(te=!0);const se={code:oe,language:ae};Y("before:highlight",se);const ue=se.result?se.result:x(se.language,se.code,te);return ue.code=se.code,Y("after:highlight",ue),ue}function x(X,re,te,oe){const ae=Object.create(null);function se(we,Me){return we.keywords[Me]}function ue(){if(!ne.keywords){me.addText(Te);return}let we=0;ne.keywordPatternRe.lastIndex=0;let Me=ne.keywordPatternRe.exec(Te),Ue="";for(;Me;){Ue+=Te.substring(we,Me.index);const Ge=J.case_insensitive?Me[0].toLowerCase():Me[0],Ze=se(ne,Ge);if(Ze){const[tt,st]=Ze;if(me.addText(Ue),Ue="",ae[Ge]=(ae[Ge]||0)+1,ae[Ge]<=MAX_KEYWORD_HITS&&(ge+=st),tt.startsWith("_"))Ue+=Me[0];else{const We=J.classNameAliases[tt]||tt;me.addKeyword(Me[0],We)}}else Ue+=Me[0];we=ne.keywordPatternRe.lastIndex,Me=ne.keywordPatternRe.exec(Te)}Ue+=Te.substring(we),me.addText(Ue)}function Ae(){if(Te==="")return;let we=null;if(typeof ne.subLanguage=="string"){if(!r[ne.subLanguage]){me.addText(Te);return}we=x(ne.subLanguage,Te,!0,le[ne.subLanguage]),le[ne.subLanguage]=we._top}else we=_(Te,ne.subLanguage.length?ne.subLanguage:null);ne.relevance>0&&(ge+=we.relevance),me.addSublanguage(we._emitter,we.language)}function pe(){ne.subLanguage!=null?Ae():ue(),Te=""}function he(we,Me){let Ue=1;const Ge=Me.length-1;for(;Ue<=Ge;){if(!we._emit[Ue]){Ue++;continue}const Ze=J.classNameAliases[we[Ue]]||we[Ue],tt=Me[Ue];Ze?me.addKeyword(tt,Ze):(Te=tt,ue(),Te=""),Ue++}}function Ce(we,Me){return we.scope&&typeof we.scope=="string"&&me.openNode(J.classNameAliases[we.scope]||we.scope),we.beginScope&&(we.beginScope._wrap?(me.addKeyword(Te,J.classNameAliases[we.beginScope._wrap]||we.beginScope._wrap),Te=""):we.beginScope._multi&&(he(we.beginScope,Me),Te="")),ne=Object.create(we,{parent:{value:ne}}),ne}function ve(we,Me,Ue){let Ge=startsWith(we.endRe,Ue);if(Ge){if(we["on:end"]){const Ze=new Response(we);we["on:end"](Me,Ze),Ze.isMatchIgnored&&(Ge=!1)}if(Ge){for(;we.endsParent&&we.parent;)we=we.parent;return we}}if(we.endsWithParent)return ve(we.parent,Me,Ue)}function ye(we){return ne.matcher.regexIndex===0?(Te+=we[0],1):(be=!0,0)}function Be(we){const Me=we[0],Ue=we.rule,Ge=new Response(Ue),Ze=[Ue.__beforeBegin,Ue["on:begin"]];for(const tt of Ze)if(!!tt&&(tt(we,Ge),Ge.isMatchIgnored))return ye(Me);return Ue.skip?Te+=Me:(Ue.excludeBegin&&(Te+=Me),pe(),!Ue.returnBegin&&!Ue.excludeBegin&&(Te=Me)),Ce(Ue,we),Ue.returnBegin?0:Me.length}function Se(we){const Me=we[0],Ue=re.substring(we.index),Ge=ve(ne,we,Ue);if(!Ge)return NO_MATCH;const Ze=ne;ne.endScope&&ne.endScope._wrap?(pe(),me.addKeyword(Me,ne.endScope._wrap)):ne.endScope&&ne.endScope._multi?(pe(),he(ne.endScope,we)):Ze.skip?Te+=Me:(Ze.returnEnd||Ze.excludeEnd||(Te+=Me),pe(),Ze.excludeEnd&&(Te=Me));do ne.scope&&me.closeNode(),!ne.skip&&!ne.subLanguage&&(ge+=ne.relevance),ne=ne.parent;while(ne!==Ge.parent);return Ge.starts&&Ce(Ge.starts,we),Ze.returnEnd?0:Me.length}function Ee(){const we=[];for(let Me=ne;Me!==J;Me=Me.parent)Me.scope&&we.unshift(Me.scope);we.forEach(Me=>me.openNode(Me))}let ie={};function ee(we,Me){const Ue=Me&&Me[0];if(Te+=we,Ue==null)return pe(),0;if(ie.type==="begin"&&Me.type==="end"&&ie.index===Me.index&&Ue===""){if(Te+=re.slice(Me.index,Me.index+1),!s){const Ge=new Error(`0 width match regex (${X})`);throw Ge.languageName=X,Ge.badRule=ie.rule,Ge}return 1}if(ie=Me,Me.type==="begin")return Be(Me);if(Me.type==="illegal"&&!te){const Ge=new Error('Illegal lexeme "'+Ue+'" for mode "'+(ne.scope||"<unnamed>")+'"');throw Ge.mode=ne,Ge}else if(Me.type==="end"){const Ge=Se(Me);if(Ge!==NO_MATCH)return Ge}if(Me.type==="illegal"&&Ue==="")return 1;if(de>1e5&&de>Me.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Te+=Ue,Ue.length}const J=Q(X);if(!J)throw error(l.replace("{}",X)),new Error('Unknown language: "'+X+'"');const ce=compileLanguage(J);let fe="",ne=oe||ce;const le={},me=new g.__emitter(g);Ee();let Te="",ge=0,$e=0,de=0,be=!1;try{for(ne.matcher.considerAll();;){de++,be?be=!1:ne.matcher.considerAll(),ne.matcher.lastIndex=$e;const we=ne.matcher.exec(re);if(!we)break;const Me=re.substring($e,we.index),Ue=ee(Me,we);$e=we.index+Ue}return ee(re.substring($e)),me.closeAllNodes(),me.finalize(),fe=me.toHTML(),{language:X,value:fe,relevance:ge,illegal:!1,_emitter:me,_top:ne}}catch(we){if(we.message&&we.message.includes("Illegal"))return{language:X,value:escape$1(re),illegal:!0,relevance:0,_illegalBy:{message:we.message,index:$e,context:re.slice($e-100,$e+100),mode:we.mode,resultSoFar:fe},_emitter:me};if(s)return{language:X,value:escape$1(re),illegal:!1,relevance:0,errorRaised:we,_emitter:me,_top:ne};throw we}}function S(X){const re={value:escape$1(X),illegal:!1,relevance:0,_top:d,_emitter:new g.__emitter(g)};return re._emitter.addText(X),re}function _(X,re){re=re||g.languages||Object.keys(r);const te=S(X),oe=re.filter(Q).filter(K).map(pe=>x(pe,X,!1));oe.unshift(te);const ae=oe.sort((pe,he)=>{if(pe.relevance!==he.relevance)return he.relevance-pe.relevance;if(pe.language&&he.language){if(Q(pe.language).supersetOf===he.language)return 1;if(Q(he.language).supersetOf===pe.language)return-1}return 0}),[se,ue]=ae,Ae=se;return Ae.secondBest=ue,Ae}function w(X,re,te){const oe=re&&n[re]||te;X.classList.add("hljs"),X.classList.add(`language-${oe}`)}function $(X){let re=null;const te=b(X);if(y(te))return;if(Y("before:highlightElement",{el:X,language:te}),X.children.length>0&&(g.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(X)),g.throwUnescapedHTML))throw new HTMLInjectionError("One of your code blocks includes unescaped HTML.",X.innerHTML);re=X;const oe=re.textContent,ae=te?C(oe,{language:te,ignoreIllegals:!0}):_(oe);X.innerHTML=ae.value,w(X,te,ae.language),X.result={language:ae.language,re:ae.relevance,relevance:ae.relevance},ae.secondBest&&(X.secondBest={language:ae.secondBest.language,relevance:ae.secondBest.relevance}),Y("after:highlightElement",{el:X,result:ae,text:oe})}function I(X){g=inherit(g,X)}const B=()=>{M(),deprecated("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function R(){M(),deprecated("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let P=!1;function M(){if(document.readyState==="loading"){P=!0;return}document.querySelectorAll(g.cssSelector).forEach($)}function O(){P&&M()}typeof window!="undefined"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",O,!1);function D(X,re){let te=null;try{te=re(t)}catch(oe){if(error("Language definition for '{}' could not be registered.".replace("{}",X)),s)error(oe);else throw oe;te=d}te.name||(te.name=X),r[X]=te,te.rawDefinition=re.bind(null,t),te.aliases&&G(te.aliases,{languageName:X})}function N(X){delete r[X];for(const re of Object.keys(n))n[re]===X&&delete n[re]}function H(){return Object.keys(r)}function Q(X){return X=(X||"").toLowerCase(),r[X]||r[n[X]]}function G(X,{languageName:re}){typeof X=="string"&&(X=[X]),X.forEach(te=>{n[te.toLowerCase()]=re})}function K(X){const re=Q(X);return re&&!re.disableAutodetect}function W(X){X["before:highlightBlock"]&&!X["before:highlightElement"]&&(X["before:highlightElement"]=re=>{X["before:highlightBlock"](Object.assign({block:re.el},re))}),X["after:highlightBlock"]&&!X["after:highlightElement"]&&(X["after:highlightElement"]=re=>{X["after:highlightBlock"](Object.assign({block:re.el},re))})}function j(X){W(X),o.push(X)}function Y(X,re){const te=X;o.forEach(function(oe){oe[te]&&oe[te](re)})}function q(X){return deprecated("10.7.0","highlightBlock will be removed entirely in v12.0"),deprecated("10.7.0","Please use highlightElement now."),$(X)}Object.assign(t,{highlight:C,highlightAuto:_,highlightAll:M,highlightElement:$,highlightBlock:q,configure:I,initHighlighting:B,initHighlightingOnLoad:R,registerLanguage:D,unregisterLanguage:N,listLanguages:H,getLanguage:Q,registerAliases:G,autoDetection:K,inherit,addPlugin:j}),t.debugMode=function(){s=!1},t.safeMode=function(){s=!0},t.versionString=version$2,t.regex={concat,lookahead,either,optional,anyNumberOfTimes};for(const X in MODES)typeof MODES[X]=="object"&&deepFreezeEs6.exports(MODES[X]);return Object.assign(t,MODES),t};var highlight=HLJS({}),core=highlight;highlight.HighlightJS=highlight;highlight.default=highlight;var HighlightJS=core;function json(t){const r={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},n={match:/[{}[\],:]/,className:"punctuation",relevance:0},o=["true","false","null"],s={scope:"literal",beginKeywords:o.join(" ")};return{name:"JSON",keywords:{literal:o},contains:[r,n,t.QUOTE_STRING_MODE,s,t.C_NUMBER_MODE,t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}const IDENT_RE="[A-Za-z$_][0-9A-Za-z$_]*",KEYWORDS=["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"],LITERALS=["true","false","null","undefined","NaN","Infinity"],TYPES=["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"],ERROR_TYPES=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],BUILT_IN_GLOBALS=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],BUILT_IN_VARIABLES=["arguments","this","super","console","window","document","localStorage","module","global"],BUILT_INS=[].concat(BUILT_IN_GLOBALS,TYPES,ERROR_TYPES);function javascript(t){const r=t.regex,n=(re,{after:te})=>{const oe="</"+re[0].slice(1);return re.input.indexOf(oe,te)!==-1},o=IDENT_RE,s={begin:"<>",end:"</>"},l=/<[A-Za-z0-9\\._:-]+\s*\/>/,d={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(re,te)=>{const oe=re[0].length+re.index,ae=re.input[oe];if(ae==="<"||ae===","){te.ignoreMatch();return}ae===">"&&(n(re,{after:oe})||te.ignoreMatch());let se;const ue=re.input.substring(oe);if(se=ue.match(/^\s*=/)){te.ignoreMatch();return}if((se=ue.match(/^\s+extends\s+/))&&se.index===0){te.ignoreMatch();return}}},g={$pattern:IDENT_RE,keyword:KEYWORDS,literal:LITERALS,built_in:BUILT_INS,"variable.language":BUILT_IN_VARIABLES},y="[0-9](_?[0-9])*",b=`\\.(${y})`,C="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",x={className:"number",variants:[{begin:`(\\b(${C})((${b})|\\.)?|(${b}))[eE][+-]?(${y})\\b`},{begin:`\\b(${C})\\b((${b})\\b|\\.)?|(${b})\\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},S={className:"subst",begin:"\\$\\{",end:"\\}",keywords:g,contains:[]},_={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,S],subLanguage:"xml"}},w={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,S],subLanguage:"css"}},$={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,S]},I=t.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:o+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),B={className:"comment",variants:[I,t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},R=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,_,w,$,{match:/\$\d+/},x];S.contains=R.concat({begin:/\{/,end:/\}/,keywords:g,contains:["self"].concat(R)});const P=[].concat(B,S.contains),M=P.concat([{begin:/\(/,end:/\)/,keywords:g,contains:["self"].concat(P)}]),O={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:M},D={variants:[{match:[/class/,/\s+/,o,/\s+/,/extends/,/\s+/,r.concat(o,"(",r.concat(/\./,o),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,o],scope:{1:"keyword",3:"title.class"}}]},N={relevance:0,match:r.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:{_:[...TYPES,...ERROR_TYPES]}},H={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},Q={variants:[{match:[/function/,/\s+/,o,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[O],illegal:/%/},G={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function K(re){return r.concat("(?!",re.join("|"),")")}const W={match:r.concat(/\b/,K([...BUILT_IN_GLOBALS,"super","import"]),o,r.lookahead(/\(/)),className:"title.function",relevance:0},j={begin:r.concat(/\./,r.lookahead(r.concat(o,/(?![0-9A-Za-z$_(])/))),end:o,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Y={match:[/get|set/,/\s+/,o,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},O]},q="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",X={match:[/const|var|let/,/\s+/,o,/\s*/,/=\s*/,/(async\s*)?/,r.lookahead(q)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[O]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:g,exports:{PARAMS_CONTAINS:M,CLASS_REFERENCE:N},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),H,t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,_,w,$,B,{match:/\$\d+/},x,N,{className:"attr",begin:o+r.lookahead(":"),relevance:0},X,{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[B,t.REGEXP_MODE,{className:"function",begin:q,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:g,contains:M}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:s.begin,end:s.end},{match:l},{begin:d.begin,"on:begin":d.isTrulyOpeningTag,end:d.end}],subLanguage:"xml",contains:[{begin:d.begin,end:d.end,skip:!0,contains:["self"]}]}]},Q,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[O,t.inherit(t.TITLE_MODE,{begin:o,className:"title.function"})]},{match:/\.\.\./,relevance:0},j,{match:"\\$"+o,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[O]},W,G,D,Y,{match:/\$[(.]/}]}}function typescript(t){const r=javascript(t),n=IDENT_RE,o=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],s={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[r.exports.CLASS_REFERENCE]},l={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:o},contains:[r.exports.CLASS_REFERENCE]},d={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},g=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],y={$pattern:IDENT_RE,keyword:KEYWORDS.concat(g),literal:LITERALS,built_in:BUILT_INS.concat(o),"variable.language":BUILT_IN_VARIABLES},b={className:"meta",begin:"@"+n},C=(S,_,w)=>{const $=S.contains.findIndex(I=>I.label===_);if($===-1)throw new Error("can not find mode to replace");S.contains.splice($,1,w)};Object.assign(r.keywords,y),r.exports.PARAMS_CONTAINS.push(b),r.contains=r.contains.concat([b,s,l]),C(r,"shebang",t.SHEBANG()),C(r,"use_strict",d);const x=r.contains.find(S=>S.label==="func.def");return x.relevance=0,Object.assign(r,{name:"TypeScript",aliases:["ts","tsx"]}),r}const useCode=()=>(HighlightJS.registerLanguage("json",json),HighlightJS.registerLanguage("typescript",typescript),HighlightJS);var axios$2={exports:{}},bind$4=function t(r,n){return function(){for(var s=new Array(arguments.length),l=0;l<s.length;l++)s[l]=arguments[l];return r.apply(n,s)}},bind$3=bind$4,toString$3=Object.prototype.toString,kindOf=function(t){return function(r){var n=toString$3.call(r);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function kindOfTest(t){return t=t.toLowerCase(),function(n){return kindOf(n)===t}}function isArray$8(t){return Array.isArray(t)}function isUndefined(t){return typeof t=="undefined"}function isBuffer$1(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t)}var isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(t){var r;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&isArrayBuffer(t.buffer),r}function isString$1(t){return typeof t=="string"}function isNumber$1(t){return typeof t=="number"}function isObject$8(t){return t!==null&&typeof t=="object"}function isPlainObject$2(t){if(kindOf(t)!=="object")return!1;var r=Object.getPrototypeOf(t);return r===null||r===Object.prototype}var isDate=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList");function isFunction$2(t){return toString$3.call(t)==="[object Function]"}function isStream(t){return isObject$8(t)&&isFunction$2(t.pipe)}function isFormData(t){var r="[object FormData]";return t&&(typeof FormData=="function"&&t instanceof FormData||toString$3.call(t)===r||isFunction$2(t.toString)&&t.toString()===r)}var isURLSearchParams=kindOfTest("URLSearchParams");function trim$2(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function isStandardBrowserEnv(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function forEach(t,r){if(!(t===null||typeof t=="undefined"))if(typeof t!="object"&&(t=[t]),isArray$8(t))for(var n=0,o=t.length;n<o;n++)r.call(null,t[n],n,t);else for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&r.call(null,t[s],s,t)}function merge$2(){var t={};function r(s,l){isPlainObject$2(t[l])&&isPlainObject$2(s)?t[l]=merge$2(t[l],s):isPlainObject$2(s)?t[l]=merge$2({},s):isArray$8(s)?t[l]=s.slice():t[l]=s}for(var n=0,o=arguments.length;n<o;n++)forEach(arguments[n],r);return t}function extend$1(t,r,n){return forEach(r,function(s,l){n&&typeof s=="function"?t[l]=bind$3(s,n):t[l]=s}),t}function stripBOM(t){return t.charCodeAt(0)===65279&&(t=t.slice(1)),t}function inherits$1(t,r,n,o){t.prototype=Object.create(r.prototype,o),t.prototype.constructor=t,n&&Object.assign(t.prototype,n)}function toFlatObject(t,r,n){var o,s,l,d={};r=r||{};do{for(o=Object.getOwnPropertyNames(t),s=o.length;s-- >0;)l=o[s],d[l]||(r[l]=t[l],d[l]=!0);t=Object.getPrototypeOf(t)}while(t&&(!n||n(t,r))&&t!==Object.prototype);return r}function endsWith(t,r,n){t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=r.length;var o=t.indexOf(r,n);return o!==-1&&o===n}function toArray(t){if(!t)return null;var r=t.length;if(isUndefined(r))return null;for(var n=new Array(r);r-- >0;)n[r]=t[r];return n}var isTypedArray$2=function(t){return function(r){return t&&r instanceof t}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),utils$h={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$1,isNumber:isNumber$1,isObject:isObject$8,isPlainObject:isPlainObject$2,isUndefined,isDate,isFile,isBlob,isFunction:isFunction$2,isStream,isURLSearchParams,isStandardBrowserEnv,forEach,merge:merge$2,extend:extend$1,trim:trim$2,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray,isTypedArray:isTypedArray$2,isFileList},utils$g=utils$h;function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var buildURL$2=function t(r,n,o){if(!n)return r;var s;if(o)s=o(n);else if(utils$g.isURLSearchParams(n))s=n.toString();else{var l=[];utils$g.forEach(n,function(y,b){y===null||typeof y=="undefined"||(utils$g.isArray(y)?b=b+"[]":y=[y],utils$g.forEach(y,function(x){utils$g.isDate(x)?x=x.toISOString():utils$g.isObject(x)&&(x=JSON.stringify(x)),l.push(encode(b)+"="+encode(x))}))}),s=l.join("&")}if(s){var d=r.indexOf("#");d!==-1&&(r=r.slice(0,d)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r},utils$f=utils$h;function InterceptorManager$1(){this.handlers=[]}InterceptorManager$1.prototype.use=function t(r,n,o){return this.handlers.push({fulfilled:r,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};InterceptorManager$1.prototype.eject=function t(r){this.handlers[r]&&(this.handlers[r]=null)};InterceptorManager$1.prototype.forEach=function t(r){utils$f.forEach(this.handlers,function(o){o!==null&&r(o)})};var InterceptorManager_1=InterceptorManager$1,utils$e=utils$h,normalizeHeaderName$1=function t(r,n){utils$e.forEach(r,function(s,l){l!==n&&l.toUpperCase()===n.toUpperCase()&&(r[n]=s,delete r[l])})},utils$d=utils$h;function AxiosError$5(t,r,n,o,s){Error.call(this),this.message=t,this.name="AxiosError",r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),s&&(this.response=s)}utils$d.inherits(AxiosError$5,Error,{toJSON:function t(){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 prototype=AxiosError$5.prototype,descriptors={};["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(t){descriptors[t]={value:t}});Object.defineProperties(AxiosError$5,descriptors);Object.defineProperty(prototype,"isAxiosError",{value:!0});AxiosError$5.from=function(t,r,n,o,s,l){var d=Object.create(prototype);return utils$d.toFlatObject(t,d,function(y){return y!==Error.prototype}),AxiosError$5.call(d,t.message,r,n,o,s),d.name=t.name,l&&Object.assign(d,l),d};var AxiosError_1=AxiosError$5,transitional={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},utils$c=utils$h;function toFormData$1(t,r){r=r||new FormData;var n=[];function o(l){return l===null?"":utils$c.isDate(l)?l.toISOString():utils$c.isArrayBuffer(l)||utils$c.isTypedArray(l)?typeof Blob=="function"?new Blob([l]):Buffer.from(l):l}function s(l,d){if(utils$c.isPlainObject(l)||utils$c.isArray(l)){if(n.indexOf(l)!==-1)throw Error("Circular reference detected in "+d);n.push(l),utils$c.forEach(l,function(y,b){if(!utils$c.isUndefined(y)){var C=d?d+"."+b:b,x;if(y&&!d&&typeof y=="object"){if(utils$c.endsWith(b,"{}"))y=JSON.stringify(y);else if(utils$c.endsWith(b,"[]")&&(x=utils$c.toArray(y))){x.forEach(function(S){!utils$c.isUndefined(S)&&r.append(C,o(S))});return}}s(y,C)}}),n.pop()}else r.append(d,o(l))}return s(t),r}var toFormData_1=toFormData$1,AxiosError$4=AxiosError_1,settle$1=function t(r,n,o){var s=o.config.validateStatus;!o.status||!s||s(o.status)?r(o):n(new AxiosError$4("Request failed with status code "+o.status,[AxiosError$4.ERR_BAD_REQUEST,AxiosError$4.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))},utils$b=utils$h,cookies$1=utils$b.isStandardBrowserEnv()?function t(){return{write:function(n,o,s,l,d,g){var y=[];y.push(n+"="+encodeURIComponent(o)),utils$b.isNumber(s)&&y.push("expires="+new Date(s).toGMTString()),utils$b.isString(l)&&y.push("path="+l),utils$b.isString(d)&&y.push("domain="+d),g===!0&&y.push("secure"),document.cookie=y.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function t(){return{write:function(){},read:function(){return null},remove:function(){}}}(),isAbsoluteURL$1=function t(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)},combineURLs$1=function t(r,n){return n?r.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):r},isAbsoluteURL=isAbsoluteURL$1,combineURLs=combineURLs$1,buildFullPath$2=function t(r,n){return r&&!isAbsoluteURL(n)?combineURLs(r,n):n},utils$a=utils$h,ignoreDuplicateOf=["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"],parseHeaders$1=function t(r){var n={},o,s,l;return r&&utils$a.forEach(r.split(`
|
|
`),function(g){if(l=g.indexOf(":"),o=utils$a.trim(g.substr(0,l)).toLowerCase(),s=utils$a.trim(g.substr(l+1)),o){if(n[o]&&ignoreDuplicateOf.indexOf(o)>=0)return;o==="set-cookie"?n[o]=(n[o]?n[o]:[]).concat([s]):n[o]=n[o]?n[o]+", "+s:s}}),n},utils$9=utils$h,isURLSameOrigin$1=utils$9.isStandardBrowserEnv()?function t(){var r=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function s(l){var d=l;return r&&(n.setAttribute("href",d),d=n.href),n.setAttribute("href",d),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=s(window.location.href),function(d){var g=utils$9.isString(d)?s(d):d;return g.protocol===o.protocol&&g.host===o.host}}():function t(){return function(){return!0}}(),AxiosError$3=AxiosError_1,utils$8=utils$h;function CanceledError$3(t){AxiosError$3.call(this,t==null?"canceled":t,AxiosError$3.ERR_CANCELED),this.name="CanceledError"}utils$8.inherits(CanceledError$3,AxiosError$3,{__CANCEL__:!0});var CanceledError_1=CanceledError$3,parseProtocol$1=function t(r){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return n&&n[1]||""},utils$7=utils$h,settle=settle$1,cookies=cookies$1,buildURL$1=buildURL$2,buildFullPath$1=buildFullPath$2,parseHeaders=parseHeaders$1,isURLSameOrigin=isURLSameOrigin$1,transitionalDefaults$1=transitional,AxiosError$2=AxiosError_1,CanceledError$2=CanceledError_1,parseProtocol=parseProtocol$1,xhr=function t(r){return new Promise(function(o,s){var l=r.data,d=r.headers,g=r.responseType,y;function b(){r.cancelToken&&r.cancelToken.unsubscribe(y),r.signal&&r.signal.removeEventListener("abort",y)}utils$7.isFormData(l)&&utils$7.isStandardBrowserEnv()&&delete d["Content-Type"];var C=new XMLHttpRequest;if(r.auth){var x=r.auth.username||"",S=r.auth.password?unescape(encodeURIComponent(r.auth.password)):"";d.Authorization="Basic "+btoa(x+":"+S)}var _=buildFullPath$1(r.baseURL,r.url);C.open(r.method.toUpperCase(),buildURL$1(_,r.params,r.paramsSerializer),!0),C.timeout=r.timeout;function w(){if(!!C){var B="getAllResponseHeaders"in C?parseHeaders(C.getAllResponseHeaders()):null,R=!g||g==="text"||g==="json"?C.responseText:C.response,P={data:R,status:C.status,statusText:C.statusText,headers:B,config:r,request:C};settle(function(O){o(O),b()},function(O){s(O),b()},P),C=null}}if("onloadend"in C?C.onloadend=w:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(w)},C.onabort=function(){!C||(s(new AxiosError$2("Request aborted",AxiosError$2.ECONNABORTED,r,C)),C=null)},C.onerror=function(){s(new AxiosError$2("Network Error",AxiosError$2.ERR_NETWORK,r,C,C)),C=null},C.ontimeout=function(){var R=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded",P=r.transitional||transitionalDefaults$1;r.timeoutErrorMessage&&(R=r.timeoutErrorMessage),s(new AxiosError$2(R,P.clarifyTimeoutError?AxiosError$2.ETIMEDOUT:AxiosError$2.ECONNABORTED,r,C)),C=null},utils$7.isStandardBrowserEnv()){var $=(r.withCredentials||isURLSameOrigin(_))&&r.xsrfCookieName?cookies.read(r.xsrfCookieName):void 0;$&&(d[r.xsrfHeaderName]=$)}"setRequestHeader"in C&&utils$7.forEach(d,function(R,P){typeof l=="undefined"&&P.toLowerCase()==="content-type"?delete d[P]:C.setRequestHeader(P,R)}),utils$7.isUndefined(r.withCredentials)||(C.withCredentials=!!r.withCredentials),g&&g!=="json"&&(C.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&C.addEventListener("progress",r.onDownloadProgress),typeof r.onUploadProgress=="function"&&C.upload&&C.upload.addEventListener("progress",r.onUploadProgress),(r.cancelToken||r.signal)&&(y=function(B){!C||(s(!B||B&&B.type?new CanceledError$2:B),C.abort(),C=null)},r.cancelToken&&r.cancelToken.subscribe(y),r.signal&&(r.signal.aborted?y():r.signal.addEventListener("abort",y))),l||(l=null);var I=parseProtocol(_);if(I&&["http","https","file"].indexOf(I)===-1){s(new AxiosError$2("Unsupported protocol "+I+":",AxiosError$2.ERR_BAD_REQUEST,r));return}C.send(l)})},_null=null,utils$6=utils$h,normalizeHeaderName=normalizeHeaderName$1,AxiosError$1=AxiosError_1,transitionalDefaults=transitional,toFormData=toFormData_1,DEFAULT_CONTENT_TYPE={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,r){!utils$6.isUndefined(t)&&utils$6.isUndefined(t["Content-Type"])&&(t["Content-Type"]=r)}function getDefaultAdapter(){var t;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(t=xhr),t}function stringifySafely(t,r,n){if(utils$6.isString(t))try{return(r||JSON.parse)(t),utils$6.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(t)}var defaults$4={transitional:transitionalDefaults,adapter:getDefaultAdapter(),transformRequest:[function t(r,n){if(normalizeHeaderName(n,"Accept"),normalizeHeaderName(n,"Content-Type"),utils$6.isFormData(r)||utils$6.isArrayBuffer(r)||utils$6.isBuffer(r)||utils$6.isStream(r)||utils$6.isFile(r)||utils$6.isBlob(r))return r;if(utils$6.isArrayBufferView(r))return r.buffer;if(utils$6.isURLSearchParams(r))return setContentTypeIfUnset(n,"application/x-www-form-urlencoded;charset=utf-8"),r.toString();var o=utils$6.isObject(r),s=n&&n["Content-Type"],l;if((l=utils$6.isFileList(r))||o&&s==="multipart/form-data"){var d=this.env&&this.env.FormData;return toFormData(l?{"files[]":r}:r,d&&new d)}else if(o||s==="application/json")return setContentTypeIfUnset(n,"application/json"),stringifySafely(r);return r}],transformResponse:[function t(r){var n=this.transitional||defaults$4.transitional,o=n&&n.silentJSONParsing,s=n&&n.forcedJSONParsing,l=!o&&this.responseType==="json";if(l||s&&utils$6.isString(r)&&r.length)try{return JSON.parse(r)}catch(d){if(l)throw d.name==="SyntaxError"?AxiosError$1.from(d,AxiosError$1.ERR_BAD_RESPONSE,this,null,this.response):d}return r}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_null},validateStatus:function t(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$6.forEach(["delete","get","head"],function t(r){defaults$4.headers[r]={}});utils$6.forEach(["post","put","patch"],function t(r){defaults$4.headers[r]=utils$6.merge(DEFAULT_CONTENT_TYPE)});var defaults_1=defaults$4,utils$5=utils$h,defaults$3=defaults_1,transformData$1=function t(r,n,o){var s=this||defaults$3;return utils$5.forEach(o,function(d){r=d.call(s,r,n)}),r},isCancel$1=function t(r){return!!(r&&r.__CANCEL__)},utils$4=utils$h,transformData=transformData$1,isCancel=isCancel$1,defaults$2=defaults_1,CanceledError$1=CanceledError_1;function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError$1}var dispatchRequest$1=function t(r){throwIfCancellationRequested(r),r.headers=r.headers||{},r.data=transformData.call(r,r.data,r.headers,r.transformRequest),r.headers=utils$4.merge(r.headers.common||{},r.headers[r.method]||{},r.headers),utils$4.forEach(["delete","get","head","post","put","patch","common"],function(s){delete r.headers[s]});var n=r.adapter||defaults$2.adapter;return n(r).then(function(s){return throwIfCancellationRequested(r),s.data=transformData.call(r,s.data,s.headers,r.transformResponse),s},function(s){return isCancel(s)||(throwIfCancellationRequested(r),s&&s.response&&(s.response.data=transformData.call(r,s.response.data,s.response.headers,r.transformResponse))),Promise.reject(s)})},utils$3=utils$h,mergeConfig$2=function t(r,n){n=n||{};var o={};function s(C,x){return utils$3.isPlainObject(C)&&utils$3.isPlainObject(x)?utils$3.merge(C,x):utils$3.isPlainObject(x)?utils$3.merge({},x):utils$3.isArray(x)?x.slice():x}function l(C){if(utils$3.isUndefined(n[C])){if(!utils$3.isUndefined(r[C]))return s(void 0,r[C])}else return s(r[C],n[C])}function d(C){if(!utils$3.isUndefined(n[C]))return s(void 0,n[C])}function g(C){if(utils$3.isUndefined(n[C])){if(!utils$3.isUndefined(r[C]))return s(void 0,r[C])}else return s(void 0,n[C])}function y(C){if(C in n)return s(r[C],n[C]);if(C in r)return s(void 0,r[C])}var b={url:d,method:d,data:d,baseURL:g,transformRequest:g,transformResponse:g,paramsSerializer:g,timeout:g,timeoutMessage:g,withCredentials:g,adapter:g,responseType:g,xsrfCookieName:g,xsrfHeaderName:g,onUploadProgress:g,onDownloadProgress:g,decompress:g,maxContentLength:g,maxBodyLength:g,beforeRedirect:g,transport:g,httpAgent:g,httpsAgent:g,cancelToken:g,socketPath:g,responseEncoding:g,validateStatus:y};return utils$3.forEach(Object.keys(r).concat(Object.keys(n)),function(x){var S=b[x]||l,_=S(x);utils$3.isUndefined(_)&&S!==y||(o[x]=_)}),o},data={version:"0.27.2"},VERSION=data.version,AxiosError=AxiosError_1,validators$1={};["object","boolean","number","function","string","symbol"].forEach(function(t,r){validators$1[t]=function(o){return typeof o===t||"a"+(r<1?"n ":" ")+t}});var deprecatedWarnings={};validators$1.transitional=function t(r,n,o){function s(l,d){return"[Axios v"+VERSION+"] Transitional option '"+l+"'"+d+(o?". "+o:"")}return function(l,d,g){if(r===!1)throw new AxiosError(s(d," has been removed"+(n?" in "+n:"")),AxiosError.ERR_DEPRECATED);return n&&!deprecatedWarnings[d]&&(deprecatedWarnings[d]=!0,console.warn(s(d," has been deprecated since v"+n+" and will be removed in the near future"))),r?r(l,d,g):!0}};function assertOptions(t,r,n){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(t),s=o.length;s-- >0;){var l=o[s],d=r[l];if(d){var g=t[l],y=g===void 0||d(g,l,t);if(y!==!0)throw new AxiosError("option "+l+" must be "+y,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new AxiosError("Unknown option "+l,AxiosError.ERR_BAD_OPTION)}}var validator$1={assertOptions,validators:validators$1},utils$2=utils$h,buildURL=buildURL$2,InterceptorManager=InterceptorManager_1,dispatchRequest=dispatchRequest$1,mergeConfig$1=mergeConfig$2,buildFullPath=buildFullPath$2,validator=validator$1,validators=validator.validators;function Axios$1(t){this.defaults=t,this.interceptors={request:new InterceptorManager,response:new InterceptorManager}}Axios$1.prototype.request=function t(r,n){typeof r=="string"?(n=n||{},n.url=r):n=r||{},n=mergeConfig$1(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var o=n.transitional;o!==void 0&&validator.assertOptions(o,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1);var s=[],l=!0;this.interceptors.request.forEach(function(_){typeof _.runWhen=="function"&&_.runWhen(n)===!1||(l=l&&_.synchronous,s.unshift(_.fulfilled,_.rejected))});var d=[];this.interceptors.response.forEach(function(_){d.push(_.fulfilled,_.rejected)});var g;if(!l){var y=[dispatchRequest,void 0];for(Array.prototype.unshift.apply(y,s),y=y.concat(d),g=Promise.resolve(n);y.length;)g=g.then(y.shift(),y.shift());return g}for(var b=n;s.length;){var C=s.shift(),x=s.shift();try{b=C(b)}catch(S){x(S);break}}try{g=dispatchRequest(b)}catch(S){return Promise.reject(S)}for(;d.length;)g=g.then(d.shift(),d.shift());return g};Axios$1.prototype.getUri=function t(r){r=mergeConfig$1(this.defaults,r);var n=buildFullPath(r.baseURL,r.url);return buildURL(n,r.params,r.paramsSerializer)};utils$2.forEach(["delete","get","head","options"],function t(r){Axios$1.prototype[r]=function(n,o){return this.request(mergeConfig$1(o||{},{method:r,url:n,data:(o||{}).data}))}});utils$2.forEach(["post","put","patch"],function t(r){function n(o){return function(l,d,g){return this.request(mergeConfig$1(g||{},{method:r,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:d}))}}Axios$1.prototype[r]=n(),Axios$1.prototype[r+"Form"]=n(!0)});var Axios_1=Axios$1,CanceledError=CanceledError_1;function CancelToken(t){if(typeof t!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var n=this;this.promise.then(function(o){if(!!n._listeners){var s,l=n._listeners.length;for(s=0;s<l;s++)n._listeners[s](o);n._listeners=null}}),this.promise.then=function(o){var s,l=new Promise(function(d){n.subscribe(d),s=d}).then(o);return l.cancel=function(){n.unsubscribe(s)},l},t(function(s){n.reason||(n.reason=new CanceledError(s),r(n.reason))})}CancelToken.prototype.throwIfRequested=function t(){if(this.reason)throw this.reason};CancelToken.prototype.subscribe=function t(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]};CancelToken.prototype.unsubscribe=function t(r){if(!!this._listeners){var n=this._listeners.indexOf(r);n!==-1&&this._listeners.splice(n,1)}};CancelToken.source=function t(){var r,n=new CancelToken(function(s){r=s});return{token:n,cancel:r}};var CancelToken_1=CancelToken,spread=function t(r){return function(o){return r.apply(null,o)}},utils$1=utils$h,isAxiosError=function t(r){return utils$1.isObject(r)&&r.isAxiosError===!0},utils=utils$h,bind$2=bind$4,Axios=Axios_1,mergeConfig=mergeConfig$2,defaults$1=defaults_1;function createInstance(t){var r=new Axios(t),n=bind$2(Axios.prototype.request,r);return utils.extend(n,Axios.prototype,r),utils.extend(n,r),n.create=function(s){return createInstance(mergeConfig(t,s))},n}var axios$1=createInstance(defaults$1);axios$1.Axios=Axios;axios$1.CanceledError=CanceledError_1;axios$1.CancelToken=CancelToken_1;axios$1.isCancel=isCancel$1;axios$1.VERSION=data.version;axios$1.toFormData=toFormData_1;axios$1.AxiosError=AxiosError_1;axios$1.Cancel=axios$1.CanceledError;axios$1.all=function t(r){return Promise.all(r)};axios$1.spread=spread;axios$1.isAxiosError=isAxiosError;axios$2.exports=axios$1;axios$2.exports.default=axios$1;var axios=axios$2.exports;const axiosInstance=axios.create({baseURL:"./",timeout:ResultEnum.TIMEOUT});axiosInstance.interceptors.request.use(t=>t,t=>{Promise.reject(t)});axiosInstance.interceptors.response.use(t=>{const{code:r}=t.data;return r==null?Promise.resolve(t):(r===ResultEnum.DATA_SUCCESS||ErrorPageNameMap.get(r)&&redirectErrorPage(r),Promise.resolve(t.data))},t=>{Promise.reject(t)});var baseAssignValue=_baseAssignValue,eq$1=eq_1;function assignMergeValue$2(t,r,n){(n!==void 0&&!eq$1(t[r],n)||n===void 0&&!(r in t))&&baseAssignValue(t,r,n)}var _assignMergeValue=assignMergeValue$2;function createBaseFor$1(t){return function(r,n,o){for(var s=-1,l=Object(r),d=o(r),g=d.length;g--;){var y=d[t?g:++s];if(n(l[y],y,l)===!1)break}return r}}var _createBaseFor=createBaseFor$1,createBaseFor=_createBaseFor,baseFor$1=createBaseFor(),_baseFor=baseFor$1,isArrayLike$2=isArrayLike_1,isObjectLike$1=isObjectLike_1;function isArrayLikeObject$1(t){return isObjectLike$1(t)&&isArrayLike$2(t)}var isArrayLikeObject_1=isArrayLikeObject$1,baseGetTag=_baseGetTag,getPrototype=_getPrototype,isObjectLike=isObjectLike_1,objectTag="[object Object]",funcProto=Function.prototype,objectProto=Object.prototype,funcToString=funcProto.toString,hasOwnProperty=objectProto.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$1(t){if(!isObjectLike(t)||baseGetTag(t)!=objectTag)return!1;var r=getPrototype(t);if(r===null)return!0;var n=hasOwnProperty.call(r,"constructor")&&r.constructor;return typeof n=="function"&&n instanceof n&&funcToString.call(n)==objectCtorString}var isPlainObject_1=isPlainObject$1;function safeGet$2(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}var _safeGet=safeGet$2,copyObject=_copyObject,keysIn$1=keysIn_1;function toPlainObject$1(t){return copyObject(t,keysIn$1(t))}var toPlainObject_1=toPlainObject$1,assignMergeValue$1=_assignMergeValue,cloneBuffer=_cloneBuffer.exports,cloneTypedArray=_cloneTypedArray,copyArray=_copyArray,initCloneObject=_initCloneObject,isArguments$2=isArguments_1,isArray$7=isArray_1,isArrayLikeObject=isArrayLikeObject_1,isBuffer=isBuffer$4.exports,isFunction$1=isFunction_1,isObject$7=isObject_1,isPlainObject=isPlainObject_1,isTypedArray$1=isTypedArray_1,safeGet$1=_safeGet,toPlainObject=toPlainObject_1;function baseMergeDeep$1(t,r,n,o,s,l,d){var g=safeGet$1(t,n),y=safeGet$1(r,n),b=d.get(y);if(b){assignMergeValue$1(t,n,b);return}var C=l?l(g,y,n+"",t,r,d):void 0,x=C===void 0;if(x){var S=isArray$7(y),_=!S&&isBuffer(y),w=!S&&!_&&isTypedArray$1(y);C=y,S||_||w?isArray$7(g)?C=g:isArrayLikeObject(g)?C=copyArray(g):_?(x=!1,C=cloneBuffer(y,!0)):w?(x=!1,C=cloneTypedArray(y,!0)):C=[]:isPlainObject(y)||isArguments$2(y)?(C=g,isArguments$2(g)?C=toPlainObject(g):(!isObject$7(g)||isFunction$1(g))&&(C=initCloneObject(y))):x=!1}x&&(d.set(y,C),s(C,y,o,l,d),d.delete(y)),assignMergeValue$1(t,n,C)}var _baseMergeDeep=baseMergeDeep$1,Stack=_Stack,assignMergeValue=_assignMergeValue,baseFor=_baseFor,baseMergeDeep=_baseMergeDeep,isObject$6=isObject_1,keysIn=keysIn_1,safeGet=_safeGet;function baseMerge$1(t,r,n,o,s){t!==r&&baseFor(r,function(l,d){if(s||(s=new Stack),isObject$6(l))baseMergeDeep(t,r,d,n,baseMerge$1,o,s);else{var g=o?o(safeGet(t,d),l,d+"",t,r,s):void 0;g===void 0&&(g=l),assignMergeValue(t,d,g)}},keysIn)}var _baseMerge=baseMerge$1;function identity$3(t){return t}var identity_1=identity$3;function apply$1(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}var _apply=apply$1,apply=_apply,nativeMax=Math.max;function overRest$2(t,r,n){return r=nativeMax(r===void 0?t.length-1:r,0),function(){for(var o=arguments,s=-1,l=nativeMax(o.length-r,0),d=Array(l);++s<l;)d[s]=o[r+s];s=-1;for(var g=Array(r+1);++s<r;)g[s]=o[s];return g[r]=n(d),apply(t,this,g)}}var _overRest=overRest$2;function constant$1(t){return function(){return t}}var constant_1=constant$1,constant=constant_1,defineProperty=_defineProperty,identity$2=identity_1,baseSetToString$1=defineProperty?function(t,r){return defineProperty(t,"toString",{configurable:!0,enumerable:!1,value:constant(r),writable:!0})}:identity$2,_baseSetToString=baseSetToString$1,HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut$1(t){var r=0,n=0;return function(){var o=nativeNow(),s=HOT_SPAN-(o-n);if(n=o,s>0){if(++r>=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}var _shortOut=shortOut$1,baseSetToString=_baseSetToString,shortOut=_shortOut,setToString$2=shortOut(baseSetToString),_setToString=setToString$2,identity$1=identity_1,overRest$1=_overRest,setToString$1=_setToString;function baseRest$1(t,r){return setToString$1(overRest$1(t,r,identity$1),t+"")}var _baseRest=baseRest$1,eq=eq_1,isArrayLike$1=isArrayLike_1,isIndex$2=_isIndex,isObject$5=isObject_1;function isIterateeCall$1(t,r,n){if(!isObject$5(n))return!1;var o=typeof r;return(o=="number"?isArrayLike$1(n)&&isIndex$2(r,n.length):o=="string"&&r in n)?eq(n[r],t):!1}var _isIterateeCall=isIterateeCall$1,baseRest=_baseRest,isIterateeCall=_isIterateeCall;function createAssigner$1(t){return baseRest(function(r,n){var o=-1,s=n.length,l=s>1?n[s-1]:void 0,d=s>2?n[2]:void 0;for(l=t.length>3&&typeof l=="function"?(s--,l):void 0,d&&isIterateeCall(n[0],n[1],d)&&(l=s<3?void 0:l,s=1),r=Object(r);++o<s;){var g=n[o];g&&t(r,g,o,l)}return r})}var _createAssigner=createAssigner$1,baseMerge=_baseMerge,createAssigner=_createAssigner,merge$1=createAssigner(function(t,r,n){baseMerge(t,r,n)}),merge_1=merge$1,isArray$6=isArray_1,isSymbol$2=isSymbol_1,reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey$1(t,r){if(isArray$6(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||isSymbol$2(t)?!0:reIsPlainProp.test(t)||!reIsDeepProp.test(t)||r!=null&&t in Object(r)}var _isKey=isKey$1,MapCache=_MapCache,FUNC_ERROR_TEXT="Expected a function";function memoize$1(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT);var n=function(){var o=arguments,s=r?r.apply(this,o):o[0],l=n.cache;if(l.has(s))return l.get(s);var d=t.apply(this,o);return n.cache=l.set(s,d)||l,d};return n.cache=new(memoize$1.Cache||MapCache),n}memoize$1.Cache=MapCache;var memoize_1=memoize$1,memoize=memoize_1,MAX_MEMOIZE_SIZE=500;function memoizeCapped$1(t){var r=memoize(t,function(o){return n.size===MAX_MEMOIZE_SIZE&&n.clear(),o}),n=r.cache;return r}var _memoizeCapped=memoizeCapped$1,memoizeCapped=_memoizeCapped,rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(rePropName,function(n,o,s,l){r.push(s?l.replace(reEscapeChar,"$1"):o||n)}),r}),_stringToPath=stringToPath$1;function arrayMap$1(t,r){for(var n=-1,o=t==null?0:t.length,s=Array(o);++n<o;)s[n]=r(t[n],n,t);return s}var _arrayMap=arrayMap$1,Symbol$3=_Symbol,arrayMap=_arrayMap,isArray$5=isArray_1,isSymbol$1=isSymbol_1,INFINITY$1=1/0,symbolProto=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto?symbolProto.toString:void 0;function baseToString$1(t){if(typeof t=="string")return t;if(isArray$5(t))return arrayMap(t,baseToString$1)+"";if(isSymbol$1(t))return symbolToString?symbolToString.call(t):"";var r=t+"";return r=="0"&&1/t==-INFINITY$1?"-0":r}var _baseToString=baseToString$1,baseToString=_baseToString;function toString$2(t){return t==null?"":baseToString(t)}var toString_1=toString$2,isArray$4=isArray_1,isKey=_isKey,stringToPath=_stringToPath,toString$1=toString_1;function castPath$4(t,r){return isArray$4(t)?t:isKey(t,r)?[t]:stringToPath(toString$1(t))}var _castPath=castPath$4,isSymbol=isSymbol_1,INFINITY=1/0;function toKey$3(t){if(typeof t=="string"||isSymbol(t))return t;var r=t+"";return r=="0"&&1/t==-INFINITY?"-0":r}var _toKey=toKey$3,castPath$3=_castPath,toKey$2=_toKey;function baseGet$1(t,r){r=castPath$3(r,t);for(var n=0,o=r.length;t!=null&&n<o;)t=t[toKey$2(r[n++])];return n&&n==o?t:void 0}var _baseGet=baseGet$1,assignValue=_assignValue,castPath$2=_castPath,isIndex$1=_isIndex,isObject$4=isObject_1,toKey$1=_toKey;function baseSet$1(t,r,n,o){if(!isObject$4(t))return t;r=castPath$2(r,t);for(var s=-1,l=r.length,d=l-1,g=t;g!=null&&++s<l;){var y=toKey$1(r[s]),b=n;if(y==="__proto__"||y==="constructor"||y==="prototype")return t;if(s!=d){var C=g[y];b=o?o(C,y,g):void 0,b===void 0&&(b=isObject$4(C)?C:isIndex$1(r[s+1])?[]:{})}assignValue(g,y,b),g=g[y]}return t}var _baseSet=baseSet$1,baseGet=_baseGet,baseSet=_baseSet,castPath$1=_castPath;function basePickBy$1(t,r,n){for(var o=-1,s=r.length,l={};++o<s;){var d=r[o],g=baseGet(t,d);n(g,d)&&baseSet(l,castPath$1(d,t),g)}return l}var _basePickBy=basePickBy$1;function baseHasIn$1(t,r){return t!=null&&r in Object(t)}var _baseHasIn=baseHasIn$1,castPath=_castPath,isArguments$1=isArguments_1,isArray$3=isArray_1,isIndex=_isIndex,isLength=isLength_1,toKey=_toKey;function hasPath$1(t,r,n){r=castPath(r,t);for(var o=-1,s=r.length,l=!1;++o<s;){var d=toKey(r[o]);if(!(l=t!=null&&n(t,d)))break;t=t[d]}return l||++o!=s?l:(s=t==null?0:t.length,!!s&&isLength(s)&&isIndex(d,s)&&(isArray$3(t)||isArguments$1(t)))}var _hasPath=hasPath$1,baseHasIn=_baseHasIn,hasPath=_hasPath;function hasIn$1(t,r){return t!=null&&hasPath(t,r,baseHasIn)}var hasIn_1=hasIn$1,basePickBy=_basePickBy,hasIn=hasIn_1;function basePick$1(t,r){return basePickBy(t,r,function(n,o){return hasIn(t,o)})}var _basePick=basePick$1,Symbol$2=_Symbol,isArguments=isArguments_1,isArray$2=isArray_1,spreadableSymbol=Symbol$2?Symbol$2.isConcatSpreadable:void 0;function isFlattenable$1(t){return isArray$2(t)||isArguments(t)||!!(spreadableSymbol&&t&&t[spreadableSymbol])}var _isFlattenable=isFlattenable$1,arrayPush=_arrayPush,isFlattenable=_isFlattenable;function baseFlatten$1(t,r,n,o,s){var l=-1,d=t.length;for(n||(n=isFlattenable),s||(s=[]);++l<d;){var g=t[l];r>0&&n(g)?r>1?baseFlatten$1(g,r-1,n,o,s):arrayPush(s,g):o||(s[s.length]=g)}return s}var _baseFlatten=baseFlatten$1,baseFlatten=_baseFlatten;function flatten$1(t){var r=t==null?0:t.length;return r?baseFlatten(t,1):[]}var flatten_1=flatten$1,flatten=flatten_1,overRest=_overRest,setToString=_setToString;function flatRest$1(t){return setToString(overRest(t,void 0,flatten),t+"")}var _flatRest=flatRest$1,basePick=_basePick,flatRest=_flatRest,pick=flatRest(function(t,r){return t==null?{}:basePick(t,r)}),pick_1=pick;/*! *****************************************************************************
|
|
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 extendStatics$1=function(t,r){return extendStatics$1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},extendStatics$1(t,r)};function __extends$1(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");extendStatics$1(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}var Browser=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Env=function(){function t(){this.browser=new Browser,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 t}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?env.worker=!0:typeof navigator=="undefined"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(t,r){var n=r.browser,o=t.match(/Firefox\/([\d.]+)/),s=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),l=t.match(/Edge?\/([\d.]+)/),d=/micromessenger/i.test(t);o&&(n.firefox=!0,n.version=o[1]),s&&(n.ie=!0,n.version=s[1]),l&&(n.edge=!0,n.version=l[1],n.newEdge=+l[1].split(".")[0]>18),d&&(n.weChat=!0),r.svgSupported=typeof SVGRect!="undefined",r.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,r.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),r.domSupported=typeof document!="undefined";var g=document.documentElement.style;r.transform3dSupported=(n.ie&&"transition"in g||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in g)&&!("OTransition"in g),r.transformSupported=r.transform3dSupported||n.ie&&+n.version>=9}var env$1=env,DEFAULT_FONT_SIZE=12,DEFAULT_FONT_FAMILY="sans-serif",DEFAULT_FONT=DEFAULT_FONT_SIZE+"px "+DEFAULT_FONT_FAMILY,OFFSET=20,SCALE=100,defaultWidthMapStr="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function getTextWidthMap(t){var r={};if(typeof JSON=="undefined")return r;for(var n=0;n<t.length;n++){var o=String.fromCharCode(n+32),s=(t.charCodeAt(n)-OFFSET)/SCALE;r[o]=s}return r}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var t,r;return function(n,o){if(!t){var s=platformApi.createCanvas();t=s&&s.getContext("2d")}if(t)return r!==o&&(r=t.font=o||DEFAULT_FONT),t.measureText(n);n=n||"",o=o||DEFAULT_FONT;var l=/(\d+)px/.exec(o),d=l&&+l[1]||DEFAULT_FONT_SIZE,g=0;if(o.indexOf("mono")>=0)g=d*n.length;else for(var y=0;y<n.length;y++){var b=DEFAULT_TEXT_WIDTH_MAP[n[y]];g+=b==null?d:b*d}return{width:g}}}(),loadImage:function(t,r,n){var o=new Image;return o.onload=r,o.onerror=n,o.src=t,o}};function setPlatformAPI(t){for(var r in platformApi)t[r]&&(platformApi[r]=t[r])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,r){return t["[object "+r+"]"]=!0,t},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,r){return t["[object "+r+"Array]"]=!0,t},{}),objToString=Object.prototype.toString,arrayProto=Array.prototype,nativeForEach=arrayProto.forEach,nativeFilter=arrayProto.filter,nativeSlice=arrayProto.slice,nativeMap=arrayProto.map,ctorFunction=function(){}.constructor,protoFunction=ctorFunction?ctorFunction.prototype:null,protoKey="__proto__",idStart=2311;function guid(){return idStart++}function logError(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];typeof console!="undefined"&&console.error.apply(console,t)}function clone$4(t){if(t==null||typeof t!="object")return t;var r=t,n=objToString.call(t);if(n==="[object Array]"){if(!isPrimitive(t)){r=[];for(var o=0,s=t.length;o<s;o++)r[o]=clone$4(t[o])}}else if(TYPED_ARRAY[n]){if(!isPrimitive(t)){var l=t.constructor;if(l.from)r=l.from(t);else{r=new l(t.length);for(var o=0,s=t.length;o<s;o++)r[o]=t[o]}}}else if(!BUILTIN_OBJECT[n]&&!isPrimitive(t)&&!isDom(t)){r={};for(var d in t)t.hasOwnProperty(d)&&d!==protoKey&&(r[d]=clone$4(t[d]))}return r}function merge(t,r,n){if(!isObject$3(r)||!isObject$3(t))return n?clone$4(r):t;for(var o in r)if(r.hasOwnProperty(o)&&o!==protoKey){var s=t[o],l=r[o];isObject$3(l)&&isObject$3(s)&&!isArray$1(l)&&!isArray$1(s)&&!isDom(l)&&!isDom(s)&&!isBuiltInObject(l)&&!isBuiltInObject(s)&&!isPrimitive(l)&&!isPrimitive(s)?merge(s,l,n):(n||!(o in t))&&(t[o]=clone$4(r[o]))}return t}function mergeAll(t,r){for(var n=t[0],o=1,s=t.length;o<s;o++)n=merge(n,t[o],r);return n}function extend(t,r){if(Object.assign)Object.assign(t,r);else for(var n in r)r.hasOwnProperty(n)&&n!==protoKey&&(t[n]=r[n]);return t}function defaults(t,r,n){for(var o=keys(r),s=0;s<o.length;s++){var l=o[s];(n?r[l]!=null:t[l]==null)&&(t[l]=r[l])}return t}var createCanvas=platformApi.createCanvas;function indexOf(t,r){if(t){if(t.indexOf)return t.indexOf(r);for(var n=0,o=t.length;n<o;n++)if(t[n]===r)return n}return-1}function inherits(t,r){var n=t.prototype;function o(){}o.prototype=r.prototype,t.prototype=new o;for(var s in n)n.hasOwnProperty(s)&&(t.prototype[s]=n[s]);t.prototype.constructor=t,t.superClass=r}function mixin(t,r,n){if(t="prototype"in t?t.prototype:t,r="prototype"in r?r.prototype:r,Object.getOwnPropertyNames)for(var o=Object.getOwnPropertyNames(r),s=0;s<o.length;s++){var l=o[s];l!=="constructor"&&(n?r[l]!=null:t[l]==null)&&(t[l]=r[l])}else defaults(t,r,n)}function isArrayLike(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function each$f(t,r,n){if(!!(t&&r))if(t.forEach&&t.forEach===nativeForEach)t.forEach(r,n);else if(t.length===+t.length)for(var o=0,s=t.length;o<s;o++)r.call(n,t[o],o,t);else for(var l in t)t.hasOwnProperty(l)&&r.call(n,t[l],l,t)}function map$1(t,r,n){if(!t)return[];if(!r)return slice(t);if(t.map&&t.map===nativeMap)return t.map(r,n);for(var o=[],s=0,l=t.length;s<l;s++)o.push(r.call(n,t[s],s,t));return o}function reduce(t,r,n,o){if(!!(t&&r)){for(var s=0,l=t.length;s<l;s++)n=r.call(o,n,t[s],s,t);return n}}function filter(t,r,n){if(!t)return[];if(!r)return slice(t);if(t.filter&&t.filter===nativeFilter)return t.filter(r,n);for(var o=[],s=0,l=t.length;s<l;s++)r.call(n,t[s],s,t)&&o.push(t[s]);return o}function find(t,r,n){if(!!(t&&r)){for(var o=0,s=t.length;o<s;o++)if(r.call(n,t[o],o,t))return t[o]}}function keys(t){if(!t)return[];if(Object.keys)return Object.keys(t);var r=[];for(var n in t)t.hasOwnProperty(n)&&r.push(n);return r}function bindPolyfill(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return function(){return t.apply(r,n.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return function(){return t.apply(this,r.concat(nativeSlice.call(arguments)))}}function isArray$1(t){return Array.isArray?Array.isArray(t):objToString.call(t)==="[object Array]"}function isFunction(t){return typeof t=="function"}function isString(t){return typeof t=="string"}function isStringSafe(t){return objToString.call(t)==="[object String]"}function isNumber(t){return typeof t=="number"}function isObject$3(t){var r=typeof t;return r==="function"||!!t&&r==="object"}function isBuiltInObject(t){return!!BUILTIN_OBJECT[objToString.call(t)]}function isTypedArray(t){return!!TYPED_ARRAY[objToString.call(t)]}function isDom(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function isGradientObject(t){return t.colorStops!=null}function isImagePatternObject(t){return t.image!=null}function isRegExp(t){return objToString.call(t)==="[object RegExp]"}function eqNaN(t){return t!==t}function retrieve(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,o=t.length;n<o;n++)if(t[n]!=null)return t[n]}function retrieve2(t,r){return t!=null?t:r}function retrieve3(t,r,n){return t!=null?t:r!=null?r:n}function slice(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];return nativeSlice.apply(t,r)}function normalizeCssArray$1(t){if(typeof t=="number")return[t,t,t,t];var r=t.length;return r===2?[t[0],t[1],t[0],t[1]]:r===3?[t[0],t[1],t[2],t[1]]:t}function assert(t,r){if(!t)throw new Error(r)}function trim$1(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive(t){t[primitiveKey]=!0}function isPrimitive(t){return t[primitiveKey]}var MapPolyfill=function(){function t(){this.data={}}return t.prototype.delete=function(r){var n=this.has(r);return n&&delete this.data[r],n},t.prototype.has=function(r){return this.data.hasOwnProperty(r)},t.prototype.get=function(r){return this.data[r]},t.prototype.set=function(r,n){return this.data[r]=n,this},t.prototype.keys=function(){return keys(this.data)},t.prototype.forEach=function(r){var n=this.data;for(var o in n)n.hasOwnProperty(o)&&r(n[o],o)},t}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function t(r){var n=isArray$1(r);this.data=maybeNativeMap();var o=this;r instanceof t?r.each(s):r&&each$f(r,s);function s(l,d){n?o.set(l,d):o.set(d,l)}}return t.prototype.hasKey=function(r){return this.data.has(r)},t.prototype.get=function(r){return this.data.get(r)},t.prototype.set=function(r,n){return this.data.set(r,n),n},t.prototype.each=function(r,n){this.data.forEach(function(o,s){r.call(n,o,s)})},t.prototype.keys=function(){var r=this.data.keys();return isNativeMapSupported?Array.from(r):r},t.prototype.removeKey=function(r){this.data.delete(r)},t}();function createHashMap(t){return new HashMap(t)}function concatArray(t,r){for(var n=new t.constructor(t.length+r.length),o=0;o<t.length;o++)n[o]=t[o];for(var s=t.length,o=0;o<r.length;o++)n[o+s]=r[o];return n}function createObject(t,r){var n;if(Object.create)n=Object.create(t);else{var o=function(){};o.prototype=t,n=new o}return r&&extend(n,r),n}function disableUserSelect(t){var r=t.style;r.webkitUserSelect="none",r.userSelect="none",r.webkitTapHighlightColor="rgba(0,0,0,0)",r["-webkit-touch-callout"]="none"}function hasOwn(t,r){return t.hasOwnProperty(r)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI,util$1=Object.freeze(Object.defineProperty({__proto__:null,guid,logError,clone:clone$4,merge,mergeAll,extend,defaults,createCanvas,indexOf,inherits,mixin,isArrayLike,each:each$f,map:map$1,reduce,filter,find,keys,bind:bind$1,curry:curry$1,isArray:isArray$1,isFunction,isString,isStringSafe,isNumber,isObject:isObject$3,isBuiltInObject,isTypedArray,isDom,isGradientObject,isImagePatternObject,isRegExp,eqNaN,retrieve,retrieve2,retrieve3,slice,normalizeCssArray:normalizeCssArray$1,assert,trim:trim$1,setAsPrimitive,isPrimitive,HashMap,createHashMap,concatArray,createObject,disableUserSelect,hasOwn,noop,RADIAN_TO_DEGREE},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
|
|
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 extendStatics=function(t,r){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(n[s]=o[s])},extendStatics(t,r)};function __extends(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");extendStatics(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}function create$2(t,r){return t==null&&(t=0),r==null&&(r=0),[t,r]}function copy$1(t,r){return t[0]=r[0],t[1]=r[1],t}function clone$3(t){return[t[0],t[1]]}function set$1(t,r,n){return t[0]=r,t[1]=n,t}function add(t,r,n){return t[0]=r[0]+n[0],t[1]=r[1]+n[1],t}function scaleAndAdd$1(t,r,n,o){return t[0]=r[0]+n[0]*o,t[1]=r[1]+n[1]*o,t}function sub(t,r,n){return t[0]=r[0]-n[0],t[1]=r[1]-n[1],t}function len(t){return Math.sqrt(lenSquare(t))}var length=len;function lenSquare(t){return t[0]*t[0]+t[1]*t[1]}var lengthSquare=lenSquare;function mul$1(t,r,n){return t[0]=r[0]*n[0],t[1]=r[1]*n[1],t}function div(t,r,n){return t[0]=r[0]/n[0],t[1]=r[1]/n[1],t}function dot(t,r){return t[0]*r[0]+t[1]*r[1]}function scale$2(t,r,n){return t[0]=r[0]*n,t[1]=r[1]*n,t}function normalize$3(t,r){var n=len(r);return n===0?(t[0]=0,t[1]=0):(t[0]=r[0]/n,t[1]=r[1]/n),t}function distance(t,r){return Math.sqrt((t[0]-r[0])*(t[0]-r[0])+(t[1]-r[1])*(t[1]-r[1]))}var dist$1=distance;function distanceSquare(t,r){return(t[0]-r[0])*(t[0]-r[0])+(t[1]-r[1])*(t[1]-r[1])}var distSquare=distanceSquare;function negate(t,r){return t[0]=-r[0],t[1]=-r[1],t}function lerp$1(t,r,n,o){return t[0]=r[0]+o*(n[0]-r[0]),t[1]=r[1]+o*(n[1]-r[1]),t}function applyTransform$1(t,r,n){var o=r[0],s=r[1];return t[0]=n[0]*o+n[2]*s+n[4],t[1]=n[1]*o+n[3]*s+n[5],t}function min$1(t,r,n){return t[0]=Math.min(r[0],n[0]),t[1]=Math.min(r[1],n[1]),t}function max$1(t,r,n){return t[0]=Math.max(r[0],n[0]),t[1]=Math.max(r[1],n[1]),t}var vector=Object.freeze(Object.defineProperty({__proto__:null,create:create$2,copy:copy$1,clone:clone$3,set:set$1,add,scaleAndAdd:scaleAndAdd$1,sub,len,length,lenSquare,lengthSquare,mul:mul$1,div,dot,scale:scale$2,normalize:normalize$3,distance,dist:dist$1,distanceSquare,distSquare,negate,lerp:lerp$1,applyTransform:applyTransform$1,min:min$1,max:max$1},Symbol.toStringTag,{value:"Module"})),Param=function(){function t(r,n){this.target=r,this.topTarget=n&&n.topTarget}return t}(),Draggable=function(){function t(r){this.handler=r,r.on("mousedown",this._dragStart,this),r.on("mousemove",this._drag,this),r.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(r){for(var n=r.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=r.offsetX,this._y=r.offsetY,this.handler.dispatchToElement(new Param(n,r),"dragstart",r.event))},t.prototype._drag=function(r){var n=this._draggingTarget;if(n){var o=r.offsetX,s=r.offsetY,l=o-this._x,d=s-this._y;this._x=o,this._y=s,n.drift(l,d,r),this.handler.dispatchToElement(new Param(n,r),"drag",r.event);var g=this.handler.findHover(o,s,n).target,y=this._dropTarget;this._dropTarget=g,n!==g&&(y&&g!==y&&this.handler.dispatchToElement(new Param(y,r),"dragleave",r.event),g&&g!==y&&this.handler.dispatchToElement(new Param(g,r),"dragenter",r.event))}},t.prototype._dragEnd=function(r){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new Param(n,r),"dragend",r.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,r),"drop",r.event),this._draggingTarget=null,this._dropTarget=null},t}(),Draggable$1=Draggable,Eventful=function(){function t(r){r&&(this._$eventProcessor=r)}return t.prototype.on=function(r,n,o,s){this._$handlers||(this._$handlers={});var l=this._$handlers;if(typeof n=="function"&&(s=o,o=n,n=null),!o||!r)return this;var d=this._$eventProcessor;n!=null&&d&&d.normalizeQuery&&(n=d.normalizeQuery(n)),l[r]||(l[r]=[]);for(var g=0;g<l[r].length;g++)if(l[r][g].h===o)return this;var y={h:o,query:n,ctx:s||this,callAtLast:o.zrEventfulCallAtLast},b=l[r].length-1,C=l[r][b];return C&&C.callAtLast?l[r].splice(b,0,y):l[r].push(y),this},t.prototype.isSilent=function(r){var n=this._$handlers;return!n||!n[r]||!n[r].length},t.prototype.off=function(r,n){var o=this._$handlers;if(!o)return this;if(!r)return this._$handlers={},this;if(n){if(o[r]){for(var s=[],l=0,d=o[r].length;l<d;l++)o[r][l].h!==n&&s.push(o[r][l]);o[r]=s}o[r]&&o[r].length===0&&delete o[r]}else delete o[r];return this},t.prototype.trigger=function(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(!this._$handlers)return this;var s=this._$handlers[r],l=this._$eventProcessor;if(s)for(var d=n.length,g=s.length,y=0;y<g;y++){var b=s[y];if(!(l&&l.filter&&b.query!=null&&!l.filter(r,b.query)))switch(d){case 0:b.h.call(b.ctx);break;case 1:b.h.call(b.ctx,n[0]);break;case 2:b.h.call(b.ctx,n[0],n[1]);break;default:b.h.apply(b.ctx,n);break}}return l&&l.afterTrigger&&l.afterTrigger(r),this},t.prototype.triggerWithContext=function(r){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(!this._$handlers)return this;var s=this._$handlers[r],l=this._$eventProcessor;if(s)for(var d=n.length,g=n[d-1],y=s.length,b=0;b<y;b++){var C=s[b];if(!(l&&l.filter&&C.query!=null&&!l.filter(r,C.query)))switch(d){case 0:C.h.call(g);break;case 1:C.h.call(g,n[0]);break;case 2:C.h.call(g,n[0],n[1]);break;default:C.h.apply(g,n.slice(1,d-1));break}}return l&&l.afterTrigger&&l.afterTrigger(r),this},t}(),Eventful$1=Eventful,LN2=Math.log(2);function determinant(t,r,n,o,s,l){var d=o+"-"+s,g=t.length;if(l.hasOwnProperty(d))return l[d];if(r===1){var y=Math.round(Math.log((1<<g)-1&~s)/LN2);return t[n][y]}for(var b=o|1<<n,C=n+1;o&1<<C;)C++;for(var x=0,S=0,_=0;S<g;S++){var w=1<<S;w&s||(x+=(_%2?-1:1)*t[n][S]*determinant(t,r-1,C,b,s|w,l),_++)}return l[d]=x,x}function buildTransformer(t,r){var n=[[t[0],t[1],1,0,0,0,-r[0]*t[0],-r[0]*t[1]],[0,0,0,t[0],t[1],1,-r[1]*t[0],-r[1]*t[1]],[t[2],t[3],1,0,0,0,-r[2]*t[2],-r[2]*t[3]],[0,0,0,t[2],t[3],1,-r[3]*t[2],-r[3]*t[3]],[t[4],t[5],1,0,0,0,-r[4]*t[4],-r[4]*t[5]],[0,0,0,t[4],t[5],1,-r[5]*t[4],-r[5]*t[5]],[t[6],t[7],1,0,0,0,-r[6]*t[6],-r[6]*t[7]],[0,0,0,t[6],t[7],1,-r[7]*t[6],-r[7]*t[7]]],o={},s=determinant(n,8,0,0,0,o);if(s!==0){for(var l=[],d=0;d<8;d++)for(var g=0;g<8;g++)l[g]==null&&(l[g]=0),l[g]+=((d+g)%2?-1:1)*determinant(n,7,d===0?1:0,1<<d,1<<g,o)/s*r[d];return function(y,b,C){var x=b*l[6]+C*l[7]+1;y[0]=(b*l[0]+C*l[1]+l[2])/x,y[1]=(b*l[3]+C*l[4]+l[5])/x}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord(t,r,n,o,s){return transformCoordWithViewport(_calcOut$1,r,o,s,!0)&&transformCoordWithViewport(t,n,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport(t,r,n,o,s){if(r.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(r)){var l=r[EVENT_SAVED_PROP]||(r[EVENT_SAVED_PROP]={}),d=prepareCoordMarkers(r,l),g=preparePointerTransformer(d,l,s);if(g)return g(t,n,o),!0}return!1}function prepareCoordMarkers(t,r){var n=r.markers;if(n)return n;n=r.markers=[];for(var o=["left","right"],s=["top","bottom"],l=0;l<4;l++){var d=document.createElement("div"),g=d.style,y=l%2,b=(l>>1)%2;g.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[y]+":0",s[b]+":0",o[1-y]+":auto",s[1-b]+":auto",""].join("!important;"),t.appendChild(d),n.push(d)}return n}function preparePointerTransformer(t,r,n){for(var o=n?"invTrans":"trans",s=r[o],l=r.srcCoords,d=[],g=[],y=!0,b=0;b<4;b++){var C=t[b].getBoundingClientRect(),x=2*b,S=C.left,_=C.top;d.push(S,_),y=y&&l&&S===l[x]&&_===l[x+1],g.push(t[b].offsetLeft,t[b].offsetTop)}return y&&s?s:(r.srcCoords=d,r[o]=n?buildTransformer(g,d):buildTransformer(d,g))}function isCanvasEl(t){return t.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML(t){return t==null?"":(t+"").replace(replaceReg,function(r,n){return replaceMap[n]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal(t,r,n,o){return n=n||{},o?calculateZrXY(t,r,n):firefoxNotSupportOffsetXY&&r.layerX!=null&&r.layerX!==r.offsetX?(n.zrX=r.layerX,n.zrY=r.layerY):r.offsetX!=null?(n.zrX=r.offsetX,n.zrY=r.offsetY):calculateZrXY(t,r,n),n}function calculateZrXY(t,r,n){if(env$1.domSupported&&t.getBoundingClientRect){var o=r.clientX,s=r.clientY;if(isCanvasEl(t)){var l=t.getBoundingClientRect();n.zrX=o-l.left,n.zrY=s-l.top;return}else if(transformCoordWithViewport(_calcOut,t,o,s)){n.zrX=_calcOut[0],n.zrY=_calcOut[1];return}}n.zrX=n.zrY=0}function getNativeEvent(t){return t||window.event}function normalizeEvent(t,r,n){if(r=getNativeEvent(r),r.zrX!=null)return r;var o=r.type,s=o&&o.indexOf("touch")>=0;if(s){var d=o!=="touchend"?r.targetTouches[0]:r.changedTouches[0];d&&clientToLocal(t,d,r,n)}else{clientToLocal(t,r,r,n);var l=getWheelDeltaMayPolyfill(r);r.zrDelta=l?l/120:-(r.detail||0)/3}var g=r.button;return r.which==null&&g!==void 0&&MOUSE_EVENT_REG.test(r.type)&&(r.which=g&1?1:g&2?3:g&4?2:0),r}function getWheelDeltaMayPolyfill(t){var r=t.wheelDelta;if(r)return r;var n=t.deltaX,o=t.deltaY;if(n==null||o==null)return r;var s=Math.abs(o!==0?o:n),l=o>0?-1:o<0?1:n>0?-1:1;return 3*s*l}function addEventListener(t,r,n,o){t.addEventListener(r,n,o)}function removeEventListener(t,r,n,o){t.removeEventListener(r,n,o)}var stop=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown(t){return t.which===2||t.which===3}var GestureMgr=function(){function t(){this._track=[]}return t.prototype.recognize=function(r,n,o){return this._doTrack(r,n,o),this._recognize(r)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(r,n,o){var s=r.touches;if(!!s){for(var l={points:[],touches:[],target:n,event:r},d=0,g=s.length;d<g;d++){var y=s[d],b=clientToLocal(o,y,{});l.points.push([b.zrX,b.zrY]),l.touches.push(y)}this._track.push(l)}},t.prototype._recognize=function(r){for(var n in recognizers)if(recognizers.hasOwnProperty(n)){var o=recognizers[n](this._track,r);if(o)return o}},t}();function dist(t){var r=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(r*r+n*n)}function center$1(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var recognizers={pinch:function(t,r){var n=t.length;if(!!n){var o=(t[n-1]||{}).points,s=(t[n-2]||{}).points||o;if(s&&s.length>1&&o&&o.length>1){var l=dist(o)/dist(s);!isFinite(l)&&(l=1),r.pinchScale=l;var d=center$1(o);return r.pinchX=d[0],r.pinchY=d[1],{type:"pinch",target:t[0].target,event:r}}}}};function create$1(){return[1,0,0,1,0,0]}function identity(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function copy(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t}function mul(t,r,n){var o=r[0]*n[0]+r[2]*n[1],s=r[1]*n[0]+r[3]*n[1],l=r[0]*n[2]+r[2]*n[3],d=r[1]*n[2]+r[3]*n[3],g=r[0]*n[4]+r[2]*n[5]+r[4],y=r[1]*n[4]+r[3]*n[5]+r[5];return t[0]=o,t[1]=s,t[2]=l,t[3]=d,t[4]=g,t[5]=y,t}function translate(t,r,n){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4]+n[0],t[5]=r[5]+n[1],t}function rotate(t,r,n){var o=r[0],s=r[2],l=r[4],d=r[1],g=r[3],y=r[5],b=Math.sin(n),C=Math.cos(n);return t[0]=o*C+d*b,t[1]=-o*b+d*C,t[2]=s*C+g*b,t[3]=-s*b+C*g,t[4]=C*l+b*y,t[5]=C*y-b*l,t}function scale$1(t,r,n){var o=n[0],s=n[1];return t[0]=r[0]*o,t[1]=r[1]*s,t[2]=r[2]*o,t[3]=r[3]*s,t[4]=r[4]*o,t[5]=r[5]*s,t}function invert(t,r){var n=r[0],o=r[2],s=r[4],l=r[1],d=r[3],g=r[5],y=n*d-l*o;return y?(y=1/y,t[0]=d*y,t[1]=-l*y,t[2]=-o*y,t[3]=n*y,t[4]=(o*g-d*s)*y,t[5]=(l*s-n*g)*y,t):null}function clone$2(t){var r=create$1();return copy(r,t),r}var matrix=Object.freeze(Object.defineProperty({__proto__:null,create:create$1,identity,copy,mul,translate,rotate,scale:scale$1,invert,clone:clone$2},Symbol.toStringTag,{value:"Module"})),Point=function(){function t(r,n){this.x=r||0,this.y=n||0}return t.prototype.copy=function(r){return this.x=r.x,this.y=r.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(r,n){return this.x=r,this.y=n,this},t.prototype.equal=function(r){return r.x===this.x&&r.y===this.y},t.prototype.add=function(r){return this.x+=r.x,this.y+=r.y,this},t.prototype.scale=function(r){this.x*=r,this.y*=r},t.prototype.scaleAndAdd=function(r,n){this.x+=r.x*n,this.y+=r.y*n},t.prototype.sub=function(r){return this.x-=r.x,this.y-=r.y,this},t.prototype.dot=function(r){return this.x*r.x+this.y*r.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var r=this.len();return this.x/=r,this.y/=r,this},t.prototype.distance=function(r){var n=this.x-r.x,o=this.y-r.y;return Math.sqrt(n*n+o*o)},t.prototype.distanceSquare=function(r){var n=this.x-r.x,o=this.y-r.y;return n*n+o*o},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(r){if(!!r){var n=this.x,o=this.y;return this.x=r[0]*n+r[2]*o+r[4],this.y=r[1]*n+r[3]*o+r[5],this}},t.prototype.toArray=function(r){return r[0]=this.x,r[1]=this.y,r},t.prototype.fromArray=function(r){this.x=r[0],this.y=r[1]},t.set=function(r,n,o){r.x=n,r.y=o},t.copy=function(r,n){r.x=n.x,r.y=n.y},t.len=function(r){return Math.sqrt(r.x*r.x+r.y*r.y)},t.lenSquare=function(r){return r.x*r.x+r.y*r.y},t.dot=function(r,n){return r.x*n.x+r.y*n.y},t.add=function(r,n,o){r.x=n.x+o.x,r.y=n.y+o.y},t.sub=function(r,n,o){r.x=n.x-o.x,r.y=n.y-o.y},t.scale=function(r,n,o){r.x=n.x*o,r.y=n.y*o},t.scaleAndAdd=function(r,n,o,s){r.x=n.x+o.x*s,r.y=n.y+o.y*s},t.lerp=function(r,n,o,s){var l=1-s;r.x=l*n.x+s*o.x,r.y=l*n.y+s*o.y},t}(),Point$1=Point,mathMin$a=Math.min,mathMax$a=Math.max,lt=new Point$1,rb=new Point$1,lb=new Point$1,rt=new Point$1,minTv$1=new Point$1,maxTv$1=new Point$1,BoundingRect=function(){function t(r,n,o,s){o<0&&(r=r+o,o=-o),s<0&&(n=n+s,s=-s),this.x=r,this.y=n,this.width=o,this.height=s}return t.prototype.union=function(r){var n=mathMin$a(r.x,this.x),o=mathMin$a(r.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$a(r.x+r.width,this.x+this.width)-n:this.width=r.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$a(r.y+r.height,this.y+this.height)-o:this.height=r.height,this.x=n,this.y=o},t.prototype.applyTransform=function(r){t.applyTransform(this,this,r)},t.prototype.calculateTransform=function(r){var n=this,o=r.width/n.width,s=r.height/n.height,l=create$1();return translate(l,l,[-n.x,-n.y]),scale$1(l,l,[o,s]),translate(l,l,[r.x,r.y]),l},t.prototype.intersect=function(r,n){if(!r)return!1;r instanceof t||(r=t.create(r));var o=this,s=o.x,l=o.x+o.width,d=o.y,g=o.y+o.height,y=r.x,b=r.x+r.width,C=r.y,x=r.y+r.height,S=!(l<y||b<s||g<C||x<d);if(n){var _=1/0,w=0,$=Math.abs(l-y),I=Math.abs(b-s),B=Math.abs(g-C),R=Math.abs(x-d),P=Math.min($,I),M=Math.min(B,R);l<y||b<s?P>w&&(w=P,$<I?Point$1.set(maxTv$1,-$,0):Point$1.set(maxTv$1,I,0)):P<_&&(_=P,$<I?Point$1.set(minTv$1,$,0):Point$1.set(minTv$1,-I,0)),g<C||x<d?M>w&&(w=M,B<R?Point$1.set(maxTv$1,0,-B):Point$1.set(maxTv$1,0,R)):P<_&&(_=P,B<R?Point$1.set(minTv$1,0,B):Point$1.set(minTv$1,0,-R))}return n&&Point$1.copy(n,S?minTv$1:maxTv$1),S},t.prototype.contain=function(r,n){var o=this;return r>=o.x&&r<=o.x+o.width&&n>=o.y&&n<=o.y+o.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(r){t.copy(this,r)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(r){return new t(r.x,r.y,r.width,r.height)},t.copy=function(r,n){r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height},t.applyTransform=function(r,n,o){if(!o){r!==n&&t.copy(r,n);return}if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var s=o[0],l=o[3],d=o[4],g=o[5];r.x=n.x*s+d,r.y=n.y*l+g,r.width=n.width*s,r.height=n.height*l,r.width<0&&(r.x+=r.width,r.width=-r.width),r.height<0&&(r.y+=r.height,r.height=-r.height);return}lt.x=lb.x=n.x,lt.y=rt.y=n.y,rb.x=rt.x=n.x+n.width,rb.y=lb.y=n.y+n.height,lt.transform(o),rt.transform(o),rb.transform(o),lb.transform(o),r.x=mathMin$a(lt.x,rb.x,lb.x,rt.x),r.y=mathMin$a(lt.y,rb.y,lb.y,rt.y);var y=mathMax$a(lt.x,rb.x,lb.x,rt.x),b=mathMax$a(lt.y,rb.y,lb.y,rt.y);r.width=y-r.x,r.height=b-r.y},t}(),BoundingRect$1=BoundingRect,SILENT="silent";function makeEventPacket(t,r,n){return{type:t,event:n,target:r.target,topTarget:r.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return r.prototype.dispose=function(){},r.prototype.setCursor=function(){},r}(Eventful$1),HoveredResult=function(){function t(r,n){this.x=r,this.y=n}return t}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(t){__extends(r,t);function r(n,o,s,l,d){var g=t.call(this)||this;return g._hovered=new HoveredResult(0,0),g.storage=n,g.painter=o,g.painterRoot=l,g._pointerSize=d,s=s||new EmptyProxy,g.proxy=null,g.setHandlerProxy(s),g._draggingMgr=new Draggable$1(g),g}return r.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(each$f(handlerNames,function(o){n.on&&n.on(o,this[o],this)},this),n.handler=this),this.proxy=n},r.prototype.mousemove=function(n){var o=n.zrX,s=n.zrY,l=isOutsideBoundary(this,o,s),d=this._hovered,g=d.target;g&&!g.__zr&&(d=this.findHover(d.x,d.y),g=d.target);var y=this._hovered=l?new HoveredResult(o,s):this.findHover(o,s),b=y.target,C=this.proxy;C.setCursor&&C.setCursor(b?b.cursor:"default"),g&&b!==g&&this.dispatchToElement(d,"mouseout",n),this.dispatchToElement(y,"mousemove",n),b&&b!==g&&this.dispatchToElement(y,"mouseover",n)},r.prototype.mouseout=function(n){var o=n.zrEventControl;o!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),o!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},r.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},r.prototype.dispatch=function(n,o){var s=this[n];s&&s.call(this,o)},r.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},r.prototype.setCursorStyle=function(n){var o=this.proxy;o.setCursor&&o.setCursor(n)},r.prototype.dispatchToElement=function(n,o,s){n=n||{};var l=n.target;if(!(l&&l.silent)){for(var d="on"+o,g=makeEventPacket(o,n,s);l&&(l[d]&&(g.cancelBubble=!!l[d].call(l,g)),l.trigger(o,g),l=l.__hostTarget?l.__hostTarget:l.parent,!g.cancelBubble););g.cancelBubble||(this.trigger(o,g),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(y){typeof y[d]=="function"&&y[d].call(y,g),y.trigger&&y.trigger(o,g)}))}},r.prototype.findHover=function(n,o,s){var l=this.storage.getDisplayList(),d=new HoveredResult(n,o);if(setHoverTarget(l,d,n,o,s),this._pointerSize&&!d.target){for(var g=[],y=this._pointerSize,b=y/2,C=new BoundingRect$1(n-b,o-b,y,y),x=l.length-1;x>=0;x--){var S=l[x];S!==s&&!S.ignore&&!S.ignoreCoarsePointer&&(!S.parent||!S.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(S.getBoundingRect()),S.transform&&tmpRect$1.applyTransform(S.transform),tmpRect$1.intersect(C)&&g.push(S))}if(g.length)for(var _=4,w=Math.PI/12,$=Math.PI*2,I=0;I<b;I+=_)for(var B=0;B<$;B+=w){var R=n+I*Math.cos(B),P=o+I*Math.sin(B);if(setHoverTarget(g,d,R,P,s),d.target)return d}}return d},r.prototype.processGesture=function(n,o){this._gestureMgr||(this._gestureMgr=new GestureMgr);var s=this._gestureMgr;o==="start"&&s.clear();var l=s.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(o==="end"&&s.clear(),l){var d=l.type;n.gestureEvent=d;var g=new HoveredResult;g.target=l.target,this.dispatchToElement(g,d,l.event)}},r}(Eventful$1);each$f(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Handler.prototype[t]=function(r){var n=r.zrX,o=r.zrY,s=isOutsideBoundary(this,n,o),l,d;if((t!=="mouseup"||!s)&&(l=this.findHover(n,o),d=l.target),t==="mousedown")this._downEl=d,this._downPoint=[r.zrX,r.zrY],this._upEl=d;else if(t==="mouseup")this._upEl=d;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[r.zrX,r.zrY])>4)return;this._downPoint=null}this.dispatchToElement(l,t,r)}});function isHover(t,r,n){if(t[t.rectHover?"rectContain":"contain"](r,n)){for(var o=t,s=void 0,l=!1;o;){if(o.ignoreClip&&(l=!0),!l){var d=o.getClipPath();if(d&&!d.contain(r,n))return!1;o.silent&&(s=!0)}var g=o.__hostTarget;o=g||o.parent}return s?SILENT:!0}return!1}function setHoverTarget(t,r,n,o,s){for(var l=t.length-1;l>=0;l--){var d=t[l],g=void 0;if(d!==s&&!d.ignore&&(g=isHover(d,n,o))&&(!r.topTarget&&(r.topTarget=d),g!==SILENT)){r.target=d;break}}}function isOutsideBoundary(t,r,n){var o=t.painter;return r<0||r>o.getWidth()||n<0||n>o.getHeight()}var Handler$1=Handler,DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(t){for(var r=0;t>=DEFAULT_MIN_MERGE;)r|=t&1,t>>=1;return t+r}function makeAscendingRun(t,r,n,o){var s=r+1;if(s===n)return 1;if(o(t[s++],t[r])<0){for(;s<n&&o(t[s],t[s-1])<0;)s++;reverseRun(t,r,s)}else for(;s<n&&o(t[s],t[s-1])>=0;)s++;return s-r}function reverseRun(t,r,n){for(n--;r<n;){var o=t[r];t[r++]=t[n],t[n--]=o}}function binaryInsertionSort(t,r,n,o,s){for(o===r&&o++;o<n;o++){for(var l=t[o],d=r,g=o,y;d<g;)y=d+g>>>1,s(l,t[y])<0?g=y:d=y+1;var b=o-d;switch(b){case 3:t[d+3]=t[d+2];case 2:t[d+2]=t[d+1];case 1:t[d+1]=t[d];break;default:for(;b>0;)t[d+b]=t[d+b-1],b--}t[d]=l}}function gallopLeft(t,r,n,o,s,l){var d=0,g=0,y=1;if(l(t,r[n+s])>0){for(g=o-s;y<g&&l(t,r[n+s+y])>0;)d=y,y=(y<<1)+1,y<=0&&(y=g);y>g&&(y=g),d+=s,y+=s}else{for(g=s+1;y<g&&l(t,r[n+s-y])<=0;)d=y,y=(y<<1)+1,y<=0&&(y=g);y>g&&(y=g);var b=d;d=s-y,y=s-b}for(d++;d<y;){var C=d+(y-d>>>1);l(t,r[n+C])>0?d=C+1:y=C}return y}function gallopRight(t,r,n,o,s,l){var d=0,g=0,y=1;if(l(t,r[n+s])<0){for(g=s+1;y<g&&l(t,r[n+s-y])<0;)d=y,y=(y<<1)+1,y<=0&&(y=g);y>g&&(y=g);var b=d;d=s-y,y=s-b}else{for(g=o-s;y<g&&l(t,r[n+s+y])>=0;)d=y,y=(y<<1)+1,y<=0&&(y=g);y>g&&(y=g),d+=s,y+=s}for(d++;d<y;){var C=d+(y-d>>>1);l(t,r[n+C])<0?y=C:d=C+1}return y}function TimSort(t,r){var n=DEFAULT_MIN_GALLOPING,o,s,l=0;t.length;var d=[];o=[],s=[];function g(_,w){o[l]=_,s[l]=w,l+=1}function y(){for(;l>1;){var _=l-2;if(_>=1&&s[_-1]<=s[_]+s[_+1]||_>=2&&s[_-2]<=s[_]+s[_-1])s[_-1]<s[_+1]&&_--;else if(s[_]>s[_+1])break;C(_)}}function b(){for(;l>1;){var _=l-2;_>0&&s[_-1]<s[_+1]&&_--,C(_)}}function C(_){var w=o[_],$=s[_],I=o[_+1],B=s[_+1];s[_]=$+B,_===l-3&&(o[_+1]=o[_+2],s[_+1]=s[_+2]),l--;var R=gallopRight(t[I],t,w,$,0,r);w+=R,$-=R,$!==0&&(B=gallopLeft(t[w+$-1],t,I,B,B-1,r),B!==0&&($<=B?x(w,$,I,B):S(w,$,I,B)))}function x(_,w,$,I){var B=0;for(B=0;B<w;B++)d[B]=t[_+B];var R=0,P=$,M=_;if(t[M++]=t[P++],--I===0){for(B=0;B<w;B++)t[M+B]=d[R+B];return}if(w===1){for(B=0;B<I;B++)t[M+B]=t[P+B];t[M+I]=d[R];return}for(var O=n,D,N,H;;){D=0,N=0,H=!1;do if(r(t[P],d[R])<0){if(t[M++]=t[P++],N++,D=0,--I===0){H=!0;break}}else if(t[M++]=d[R++],D++,N=0,--w===1){H=!0;break}while((D|N)<O);if(H)break;do{if(D=gallopRight(t[P],d,R,w,0,r),D!==0){for(B=0;B<D;B++)t[M+B]=d[R+B];if(M+=D,R+=D,w-=D,w<=1){H=!0;break}}if(t[M++]=t[P++],--I===0){H=!0;break}if(N=gallopLeft(d[R],t,P,I,0,r),N!==0){for(B=0;B<N;B++)t[M+B]=t[P+B];if(M+=N,P+=N,I-=N,I===0){H=!0;break}}if(t[M++]=d[R++],--w===1){H=!0;break}O--}while(D>=DEFAULT_MIN_GALLOPING||N>=DEFAULT_MIN_GALLOPING);if(H)break;O<0&&(O=0),O+=2}if(n=O,n<1&&(n=1),w===1){for(B=0;B<I;B++)t[M+B]=t[P+B];t[M+I]=d[R]}else{if(w===0)throw new Error;for(B=0;B<w;B++)t[M+B]=d[R+B]}}function S(_,w,$,I){var B=0;for(B=0;B<I;B++)d[B]=t[$+B];var R=_+w-1,P=I-1,M=$+I-1,O=0,D=0;if(t[M--]=t[R--],--w===0){for(O=M-(I-1),B=0;B<I;B++)t[O+B]=d[B];return}if(I===1){for(M-=w,R-=w,D=M+1,O=R+1,B=w-1;B>=0;B--)t[D+B]=t[O+B];t[M]=d[P];return}for(var N=n;;){var H=0,Q=0,G=!1;do if(r(d[P],t[R])<0){if(t[M--]=t[R--],H++,Q=0,--w===0){G=!0;break}}else if(t[M--]=d[P--],Q++,H=0,--I===1){G=!0;break}while((H|Q)<N);if(G)break;do{if(H=w-gallopRight(d[P],t,_,w,w-1,r),H!==0){for(M-=H,R-=H,w-=H,D=M+1,O=R+1,B=H-1;B>=0;B--)t[D+B]=t[O+B];if(w===0){G=!0;break}}if(t[M--]=d[P--],--I===1){G=!0;break}if(Q=I-gallopLeft(t[R],d,0,I,I-1,r),Q!==0){for(M-=Q,P-=Q,I-=Q,D=M+1,O=P+1,B=0;B<Q;B++)t[D+B]=d[O+B];if(I<=1){G=!0;break}}if(t[M--]=t[R--],--w===0){G=!0;break}N--}while(H>=DEFAULT_MIN_GALLOPING||Q>=DEFAULT_MIN_GALLOPING);if(G)break;N<0&&(N=0),N+=2}if(n=N,n<1&&(n=1),I===1){for(M-=w,R-=w,D=M+1,O=R+1,B=w-1;B>=0;B--)t[D+B]=t[O+B];t[M]=d[P]}else{if(I===0)throw new Error;for(O=M-(I-1),B=0;B<I;B++)t[O+B]=d[B]}}return{mergeRuns:y,forceMergeRuns:b,pushRun:g}}function sort$2(t,r,n,o){n||(n=0),o||(o=t.length);var s=o-n;if(!(s<2)){var l=0;if(s<DEFAULT_MIN_MERGE){l=makeAscendingRun(t,n,o,r),binaryInsertionSort(t,n,o,n+l,r);return}var d=TimSort(t,r),g=minRunLength(s);do{if(l=makeAscendingRun(t,n,o,r),l<g){var y=s;y>g&&(y=g),binaryInsertionSort(t,n,n+y,n+l,r),l=y}d.pushRun(n,l),d.mergeRuns(),s-=l,n+=l}while(s!==0);d.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(t,r){return t.zlevel===r.zlevel?t.z===r.z?t.z2-r.z2:t.z-r.z:t.zlevel-r.zlevel}var Storage=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return t.prototype.traverse=function(r,n){for(var o=0;o<this._roots.length;o++)this._roots[o].traverse(r,n)},t.prototype.getDisplayList=function(r,n){n=n||!1;var o=this._displayList;return(r||!o.length)&&this.updateDisplayList(n),o},t.prototype.updateDisplayList=function(r){this._displayListLen=0;for(var n=this._roots,o=this._displayList,s=0,l=n.length;s<l;s++)this._updateAndAddDisplayable(n[s],null,r);o.length=this._displayListLen,sort$2(o,shapeCompareFunc)},t.prototype._updateAndAddDisplayable=function(r,n,o){if(!(r.ignore&&!o)){r.beforeUpdate(),r.update(),r.afterUpdate();var s=r.getClipPath();if(r.ignoreClip)n=null;else if(s){n?n=n.slice():n=[];for(var l=s,d=r;l;)l.parent=d,l.updateTransform(),n.push(l),d=l,l=l.getClipPath()}if(r.childrenRef){for(var g=r.childrenRef(),y=0;y<g.length;y++){var b=g[y];r.__dirty&&(b.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(b,n,o)}r.__dirty=0}else{var C=r;n&&n.length?C.__clipPaths=n:C.__clipPaths&&C.__clipPaths.length>0&&(C.__clipPaths=[]),isNaN(C.z)&&(logInvalidZError(),C.z=0),isNaN(C.z2)&&(logInvalidZError(),C.z2=0),isNaN(C.zlevel)&&(logInvalidZError(),C.zlevel=0),this._displayList[this._displayListLen++]=C}var x=r.getDecalElement&&r.getDecalElement();x&&this._updateAndAddDisplayable(x,n,o);var S=r.getTextGuideLine();S&&this._updateAndAddDisplayable(S,n,o);var _=r.getTextContent();_&&this._updateAndAddDisplayable(_,n,o)}},t.prototype.addRoot=function(r){r.__zr&&r.__zr.storage===this||this._roots.push(r)},t.prototype.delRoot=function(r){if(r instanceof Array){for(var n=0,o=r.length;n<o;n++)this.delRoot(r[n]);return}var s=indexOf(this._roots,r);s>=0&&this._roots.splice(s,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Storage$1=Storage,requestAnimationFrame$1;requestAnimationFrame$1=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var requestAnimationFrame$2=requestAnimationFrame$1,easingFuncs={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var r,n=.1,o=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=o/4):r=o*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/o)))},elasticOut:function(t){var r,n=.1,o=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=o/4):r=o*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-r)*(2*Math.PI)/o)+1)},elasticInOut:function(t){var r,n=.1,o=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=o/4):r=o*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/o)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/o)*.5+1)},backIn:function(t){var r=1.70158;return t*t*((r+1)*t-r)},backOut:function(t){var r=1.70158;return--t*t*((r+1)*t+r)+1},backInOut:function(t){var r=2.5949095;return(t*=2)<1?.5*(t*t*((r+1)*t-r)):.5*((t-=2)*t*((r+1)*t+r)+2)},bounceIn:function(t){return 1-easingFuncs.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?easingFuncs.bounceIn(t*2)*.5:easingFuncs.bounceOut(t*2-1)*.5+.5}},easingFuncs$1=easingFuncs,mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$4=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$2(),_v1=create$2(),_v2=create$2();function isAroundZero$1(t){return t>-EPSILON$4&&t<EPSILON$4}function isNotAroundZero$1(t){return t>EPSILON$4||t<-EPSILON$4}function cubicAt(t,r,n,o,s){var l=1-s;return l*l*(l*t+3*s*r)+s*s*(s*o+3*l*n)}function cubicDerivativeAt(t,r,n,o,s){var l=1-s;return 3*(((r-t)*l+2*(n-r)*s)*l+(o-n)*s*s)}function cubicRootAt(t,r,n,o,s,l){var d=o+3*(r-n)-t,g=3*(n-r*2+t),y=3*(r-t),b=t-s,C=g*g-3*d*y,x=g*y-9*d*b,S=y*y-3*g*b,_=0;if(isAroundZero$1(C)&&isAroundZero$1(x))if(isAroundZero$1(g))l[0]=0;else{var w=-y/g;w>=0&&w<=1&&(l[_++]=w)}else{var $=x*x-4*C*S;if(isAroundZero$1($)){var I=x/C,w=-g/d+I,B=-I/2;w>=0&&w<=1&&(l[_++]=w),B>=0&&B<=1&&(l[_++]=B)}else if($>0){var R=mathSqrt$3($),P=C*g+1.5*d*(-x+R),M=C*g+1.5*d*(-x-R);P<0?P=-mathPow$2(-P,ONE_THIRD):P=mathPow$2(P,ONE_THIRD),M<0?M=-mathPow$2(-M,ONE_THIRD):M=mathPow$2(M,ONE_THIRD);var w=(-g-(P+M))/(3*d);w>=0&&w<=1&&(l[_++]=w)}else{var O=(2*C*g-3*d*x)/(2*mathSqrt$3(C*C*C)),D=Math.acos(O)/3,N=mathSqrt$3(C),H=Math.cos(D),w=(-g-2*N*H)/(3*d),B=(-g+N*(H+THREE_SQRT*Math.sin(D)))/(3*d),Q=(-g+N*(H-THREE_SQRT*Math.sin(D)))/(3*d);w>=0&&w<=1&&(l[_++]=w),B>=0&&B<=1&&(l[_++]=B),Q>=0&&Q<=1&&(l[_++]=Q)}}return _}function cubicExtrema(t,r,n,o,s){var l=6*n-12*r+6*t,d=9*r+3*o-3*t-9*n,g=3*r-3*t,y=0;if(isAroundZero$1(d)){if(isNotAroundZero$1(l)){var b=-g/l;b>=0&&b<=1&&(s[y++]=b)}}else{var C=l*l-4*d*g;if(isAroundZero$1(C))s[0]=-l/(2*d);else if(C>0){var x=mathSqrt$3(C),b=(-l+x)/(2*d),S=(-l-x)/(2*d);b>=0&&b<=1&&(s[y++]=b),S>=0&&S<=1&&(s[y++]=S)}}return y}function cubicSubdivide(t,r,n,o,s,l){var d=(r-t)*s+t,g=(n-r)*s+r,y=(o-n)*s+n,b=(g-d)*s+d,C=(y-g)*s+g,x=(C-b)*s+b;l[0]=t,l[1]=d,l[2]=b,l[3]=x,l[4]=x,l[5]=C,l[6]=y,l[7]=o}function cubicProjectPoint(t,r,n,o,s,l,d,g,y,b,C){var x,S=.005,_=1/0,w,$,I,B;_v0[0]=y,_v0[1]=b;for(var R=0;R<1;R+=.05)_v1[0]=cubicAt(t,n,s,d,R),_v1[1]=cubicAt(r,o,l,g,R),I=distSquare(_v0,_v1),I<_&&(x=R,_=I);_=1/0;for(var P=0;P<32&&!(S<EPSILON_NUMERIC);P++)w=x-S,$=x+S,_v1[0]=cubicAt(t,n,s,d,w),_v1[1]=cubicAt(r,o,l,g,w),I=distSquare(_v1,_v0),w>=0&&I<_?(x=w,_=I):(_v2[0]=cubicAt(t,n,s,d,$),_v2[1]=cubicAt(r,o,l,g,$),B=distSquare(_v2,_v0),$<=1&&B<_?(x=$,_=B):S*=.5);return C&&(C[0]=cubicAt(t,n,s,d,x),C[1]=cubicAt(r,o,l,g,x)),mathSqrt$3(_)}function cubicLength(t,r,n,o,s,l,d,g,y){for(var b=t,C=r,x=0,S=1/y,_=1;_<=y;_++){var w=_*S,$=cubicAt(t,n,s,d,w),I=cubicAt(r,o,l,g,w),B=$-b,R=I-C;x+=Math.sqrt(B*B+R*R),b=$,C=I}return x}function quadraticAt$1(t,r,n,o){var s=1-o;return s*(s*t+2*o*r)+o*o*n}function quadraticDerivativeAt(t,r,n,o){return 2*((1-o)*(r-t)+o*(n-r))}function quadraticRootAt(t,r,n,o,s){var l=t-2*r+n,d=2*(r-t),g=t-o,y=0;if(isAroundZero$1(l)){if(isNotAroundZero$1(d)){var b=-g/d;b>=0&&b<=1&&(s[y++]=b)}}else{var C=d*d-4*l*g;if(isAroundZero$1(C)){var b=-d/(2*l);b>=0&&b<=1&&(s[y++]=b)}else if(C>0){var x=mathSqrt$3(C),b=(-d+x)/(2*l),S=(-d-x)/(2*l);b>=0&&b<=1&&(s[y++]=b),S>=0&&S<=1&&(s[y++]=S)}}return y}function quadraticExtremum(t,r,n){var o=t+n-2*r;return o===0?.5:(t-r)/o}function quadraticSubdivide(t,r,n,o,s){var l=(r-t)*o+t,d=(n-r)*o+r,g=(d-l)*o+l;s[0]=t,s[1]=l,s[2]=g,s[3]=g,s[4]=d,s[5]=n}function quadraticProjectPoint(t,r,n,o,s,l,d,g,y){var b,C=.005,x=1/0;_v0[0]=d,_v0[1]=g;for(var S=0;S<1;S+=.05){_v1[0]=quadraticAt$1(t,n,s,S),_v1[1]=quadraticAt$1(r,o,l,S);var _=distSquare(_v0,_v1);_<x&&(b=S,x=_)}x=1/0;for(var w=0;w<32&&!(C<EPSILON_NUMERIC);w++){var $=b-C,I=b+C;_v1[0]=quadraticAt$1(t,n,s,$),_v1[1]=quadraticAt$1(r,o,l,$);var _=distSquare(_v1,_v0);if($>=0&&_<x)b=$,x=_;else{_v2[0]=quadraticAt$1(t,n,s,I),_v2[1]=quadraticAt$1(r,o,l,I);var B=distSquare(_v2,_v0);I<=1&&B<x?(b=I,x=B):C*=.5}}return y&&(y[0]=quadraticAt$1(t,n,s,b),y[1]=quadraticAt$1(r,o,l,b)),mathSqrt$3(x)}function quadraticLength(t,r,n,o,s,l,d){for(var g=t,y=r,b=0,C=1/d,x=1;x<=d;x++){var S=x*C,_=quadraticAt$1(t,n,s,S),w=quadraticAt$1(r,o,l,S),$=_-g,I=w-y;b+=Math.sqrt($*$+I*I),g=_,y=w}return b}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(t){var r=t&®exp.exec(t);if(r){var n=r[1].split(","),o=+trim$1(n[0]),s=+trim$1(n[1]),l=+trim$1(n[2]),d=+trim$1(n[3]);if(isNaN(o+s+l+d))return;var g=[];return function(y){return y<=0?0:y>=1?1:cubicRootAt(0,o,l,1,y,g)&&cubicAt(0,s,d,1,g[0])}}}var Clip=function(){function t(r){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=r.life||1e3,this._delay=r.delay||0,this.loop=r.loop||!1,this.onframe=r.onframe||noop,this.ondestroy=r.ondestroy||noop,this.onrestart=r.onrestart||noop,r.easing&&this.setEasing(r.easing)}return t.prototype.step=function(r,n){if(this._inited||(this._startTime=r+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var o=this._life,s=r-this._startTime-this._pausedTime,l=s/o;l<0&&(l=0),l=Math.min(l,1);var d=this.easingFunc,g=d?d(l):l;if(this.onframe(g),l===1)if(this.loop){var y=s%o;this._startTime=r-y,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(r){this.easing=r,this.easingFunc=isFunction(r)?r:easingFuncs$1[r]||createCubicEasingFunc(r)},t}(),Clip$1=Clip,Entry=function(){function t(r){this.value=r}return t}(),LinkedList=function(){function t(){this._len=0}return t.prototype.insert=function(r){var n=new Entry(r);return this.insertEntry(n),n},t.prototype.insertEntry=function(r){this.head?(this.tail.next=r,r.prev=this.tail,r.next=null,this.tail=r):this.head=this.tail=r,this._len++},t.prototype.remove=function(r){var n=r.prev,o=r.next;n?n.next=o:this.head=o,o?o.prev=n:this.tail=n,r.next=r.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),LRU=function(){function t(r){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=r}return t.prototype.put=function(r,n){var o=this._list,s=this._map,l=null;if(s[r]==null){var d=o.len(),g=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var y=o.head;o.remove(y),delete s[y.key],l=y.value,this._lastRemovedEntry=y}g?g.value=n:g=new Entry(n),g.key=r,o.insertEntry(g),s[r]=g}return l},t.prototype.get=function(r){var n=this._map[r],o=this._list;if(n!=null)return n!==o.tail&&(o.remove(n),o.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),LRU$1=LRU,kCSSColorTable={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 clampCssByte(t){return t=Math.round(t),t<0?0:t>255?255:t}function clampCssAngle(t){return t=Math.round(t),t<0?0:t>360?360:t}function clampCssFloat(t){return t<0?0:t>1?1:t}function parseCssInt(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssByte(parseFloat(r)/100*255):clampCssByte(parseInt(r,10))}function parseCssFloat(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssFloat(parseFloat(r)/100):clampCssFloat(parseFloat(r))}function cssHueToRgb(t,r,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(r-t)*n*6:n*2<1?r:n*3<2?t+(r-t)*(2/3-n)*6:t}function lerpNumber(t,r,n){return t+(r-t)*n}function setRgba(t,r,n,o,s){return t[0]=r,t[1]=n,t[2]=o,t[3]=s,t}function copyRgba(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(t,r){lastRemovedArr&©Rgba(lastRemovedArr,r),lastRemovedArr=colorCache.put(t,lastRemovedArr||r.slice())}function parse(t,r){if(!!t){r=r||[];var n=colorCache.get(t);if(n)return copyRgba(r,n);t=t+"";var o=t.replace(/ /g,"").toLowerCase();if(o in kCSSColorTable)return copyRgba(r,kCSSColorTable[o]),putToCache(t,r),r;var s=o.length;if(o.charAt(0)==="#"){if(s===4||s===5){var l=parseInt(o.slice(1,4),16);if(!(l>=0&&l<=4095)){setRgba(r,0,0,0,1);return}return setRgba(r,(l&3840)>>4|(l&3840)>>8,l&240|(l&240)>>4,l&15|(l&15)<<4,s===5?parseInt(o.slice(4),16)/15:1),putToCache(t,r),r}else if(s===7||s===9){var l=parseInt(o.slice(1,7),16);if(!(l>=0&&l<=16777215)){setRgba(r,0,0,0,1);return}return setRgba(r,(l&16711680)>>16,(l&65280)>>8,l&255,s===9?parseInt(o.slice(7),16)/255:1),putToCache(t,r),r}return}var d=o.indexOf("("),g=o.indexOf(")");if(d!==-1&&g+1===s){var y=o.substr(0,d),b=o.substr(d+1,g-(d+1)).split(","),C=1;switch(y){case"rgba":if(b.length!==4)return b.length===3?setRgba(r,+b[0],+b[1],+b[2],1):setRgba(r,0,0,0,1);C=parseCssFloat(b.pop());case"rgb":if(b.length>=3)return setRgba(r,parseCssInt(b[0]),parseCssInt(b[1]),parseCssInt(b[2]),b.length===3?C:parseCssFloat(b[3])),putToCache(t,r),r;setRgba(r,0,0,0,1);return;case"hsla":if(b.length!==4){setRgba(r,0,0,0,1);return}return b[3]=parseCssFloat(b[3]),hsla2rgba(b,r),putToCache(t,r),r;case"hsl":if(b.length!==3){setRgba(r,0,0,0,1);return}return hsla2rgba(b,r),putToCache(t,r),r;default:return}}setRgba(r,0,0,0,1)}}function hsla2rgba(t,r){var n=(parseFloat(t[0])%360+360)%360/360,o=parseCssFloat(t[1]),s=parseCssFloat(t[2]),l=s<=.5?s*(o+1):s+o-s*o,d=s*2-l;return r=r||[],setRgba(r,clampCssByte(cssHueToRgb(d,l,n+1/3)*255),clampCssByte(cssHueToRgb(d,l,n)*255),clampCssByte(cssHueToRgb(d,l,n-1/3)*255),1),t.length===4&&(r[3]=t[3]),r}function rgba2hsla(t){if(!!t){var r=t[0]/255,n=t[1]/255,o=t[2]/255,s=Math.min(r,n,o),l=Math.max(r,n,o),d=l-s,g=(l+s)/2,y,b;if(d===0)y=0,b=0;else{g<.5?b=d/(l+s):b=d/(2-l-s);var C=((l-r)/6+d/2)/d,x=((l-n)/6+d/2)/d,S=((l-o)/6+d/2)/d;r===l?y=S-x:n===l?y=1/3+C-S:o===l&&(y=2/3+x-C),y<0&&(y+=1),y>1&&(y-=1)}var _=[y*360,b,g];return t[3]!=null&&_.push(t[3]),_}}function lift(t,r){var n=parse(t);if(n){for(var o=0;o<3;o++)r<0?n[o]=n[o]*(1-r)|0:n[o]=(255-n[o])*r+n[o]|0,n[o]>255?n[o]=255:n[o]<0&&(n[o]=0);return stringify(n,n.length===4?"rgba":"rgb")}}function toHex(t){var r=parse(t);if(r)return((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1)}function fastLerp(t,r,n){if(!(!(r&&r.length)||!(t>=0&&t<=1))){n=n||[];var o=t*(r.length-1),s=Math.floor(o),l=Math.ceil(o),d=r[s],g=r[l],y=o-s;return n[0]=clampCssByte(lerpNumber(d[0],g[0],y)),n[1]=clampCssByte(lerpNumber(d[1],g[1],y)),n[2]=clampCssByte(lerpNumber(d[2],g[2],y)),n[3]=clampCssFloat(lerpNumber(d[3],g[3],y)),n}}var fastMapToColor=fastLerp;function lerp(t,r,n){if(!(!(r&&r.length)||!(t>=0&&t<=1))){var o=t*(r.length-1),s=Math.floor(o),l=Math.ceil(o),d=parse(r[s]),g=parse(r[l]),y=o-s,b=stringify([clampCssByte(lerpNumber(d[0],g[0],y)),clampCssByte(lerpNumber(d[1],g[1],y)),clampCssByte(lerpNumber(d[2],g[2],y)),clampCssFloat(lerpNumber(d[3],g[3],y))],"rgba");return n?{color:b,leftIndex:s,rightIndex:l,value:o}:b}}var mapToColor=lerp;function modifyHSL(t,r,n,o){var s=parse(t);if(t)return s=rgba2hsla(s),r!=null&&(s[0]=clampCssAngle(r)),n!=null&&(s[1]=parseCssFloat(n)),o!=null&&(s[2]=parseCssFloat(o)),stringify(hsla2rgba(s),"rgba")}function modifyAlpha(t,r){var n=parse(t);if(n&&r!=null)return n[3]=clampCssFloat(r),stringify(n,"rgba")}function stringify(t,r){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(r==="rgba"||r==="hsva"||r==="hsla")&&(n+=","+t[3]),r+"("+n+")"}}function lum(t,r){var n=parse(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*r:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var color=Object.freeze(Object.defineProperty({__proto__:null,parse,lift,toHex,fastLerp,fastMapToColor,lerp,mapToColor,modifyHSL,modifyAlpha,stringify,lum,random},Symbol.toStringTag,{value:"Module"})),mathRound$1=Math.round;function normalizeColor(t){var r;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=parse(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",r=n[3])}return{color:t,opacity:r==null?1:r}}var EPSILON$3=1e-4;function isAroundZero(t){return t<EPSILON$3&&t>-EPSILON$3}function round3(t){return mathRound$1(t*1e3)/1e3}function round4(t){return mathRound$1(t*1e4)/1e4}function getMatrixStr(t){return"matrix("+round3(t[0])+","+round3(t[1])+","+round3(t[2])+","+round3(t[3])+","+round4(t[4])+","+round4(t[5])+")"}var TEXT_ALIGN_TO_ANCHOR={left:"start",right:"end",center:"middle",middle:"middle"};function adjustTextY$1(t,r,n){return n==="top"?t+=r/2:n==="bottom"&&(t-=r/2),t}function hasShadow(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function getShadowKey(t){var r=t.style,n=t.getGlobalScale();return[r.shadowColor,(r.shadowBlur||0).toFixed(2),(r.shadowOffsetX||0).toFixed(2),(r.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function isImagePattern(t){return t&&!!t.image}function isSVGPattern(t){return t&&!!t.svgElement}function isPattern(t){return isImagePattern(t)||isSVGPattern(t)}function isLinearGradient(t){return t.type==="linear"}function isRadialGradient(t){return t.type==="radial"}function isGradient(t){return t&&(t.type==="linear"||t.type==="radial")}function getIdURL(t){return"url(#"+t+")"}function getPathPrecision(t){var r=t.getGlobalScale(),n=Math.max(r[0],r[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function getSRTTransformString(t){var r=t.x||0,n=t.y||0,o=(t.rotation||0)*RADIAN_TO_DEGREE,s=retrieve2(t.scaleX,1),l=retrieve2(t.scaleY,1),d=t.skewX||0,g=t.skewY||0,y=[];return(r||n)&&y.push("translate("+r+"px,"+n+"px)"),o&&y.push("rotate("+o+")"),(s!==1||l!==1)&&y.push("scale("+s+","+l+")"),(d||g)&&y.push("skew("+mathRound$1(d*RADIAN_TO_DEGREE)+"deg, "+mathRound$1(g*RADIAN_TO_DEGREE)+"deg)"),y.join(" ")}var encodeBase64=function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer!="undefined"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}}(),arraySlice=Array.prototype.slice;function interpolateNumber$1(t,r,n){return(r-t)*n+t}function interpolate1DArray(t,r,n,o){for(var s=r.length,l=0;l<s;l++)t[l]=interpolateNumber$1(r[l],n[l],o);return t}function interpolate2DArray(t,r,n,o){for(var s=r.length,l=s&&r[0].length,d=0;d<s;d++){t[d]||(t[d]=[]);for(var g=0;g<l;g++)t[d][g]=interpolateNumber$1(r[d][g],n[d][g],o)}return t}function add1DArray(t,r,n,o){for(var s=r.length,l=0;l<s;l++)t[l]=r[l]+n[l]*o;return t}function add2DArray(t,r,n,o){for(var s=r.length,l=s&&r[0].length,d=0;d<s;d++){t[d]||(t[d]=[]);for(var g=0;g<l;g++)t[d][g]=r[d][g]+n[d][g]*o}return t}function fillColorStops(t,r){for(var n=t.length,o=r.length,s=n>o?r:t,l=Math.min(n,o),d=s[l-1]||{color:[0,0,0,0],offset:0},g=l;g<Math.max(n,o);g++)s.push({offset:d.offset,color:d.color.slice()})}function fillArray(t,r,n){var o=t,s=r;if(!(!o.push||!s.push)){var l=o.length,d=s.length;if(l!==d){var g=l>d;if(g)o.length=d;else for(var y=l;y<d;y++)o.push(n===1?s[y]:arraySlice.call(s[y]))}for(var b=o[0]&&o[0].length,y=0;y<o.length;y++)if(n===1)isNaN(o[y])&&(o[y]=s[y]);else for(var C=0;C<b;C++)isNaN(o[y][C])&&(o[y][C]=s[y][C])}}function cloneValue(t){if(isArrayLike(t)){var r=t.length;if(isArrayLike(t[0])){for(var n=[],o=0;o<r;o++)n.push(arraySlice.call(t[o]));return n}return arraySlice.call(t)}return t}function rgba2String(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function guessArrayDim(t){return isArrayLike(t&&t[0])?2:1}var VALUE_TYPE_NUMBER=0,VALUE_TYPE_1D_ARRAY=1,VALUE_TYPE_2D_ARRAY=2,VALUE_TYPE_COLOR=3,VALUE_TYPE_LINEAR_GRADIENT=4,VALUE_TYPE_RADIAL_GRADIENT=5,VALUE_TYPE_UNKOWN=6;function isGradientValueType(t){return t===VALUE_TYPE_LINEAR_GRADIENT||t===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType(t){return t===VALUE_TYPE_1D_ARRAY||t===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function t(r){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=r}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(r,n,o){this._needsSort=!0;var s=this.keyframes,l=s.length,d=!1,g=VALUE_TYPE_UNKOWN,y=n;if(isArrayLike(n)){var b=guessArrayDim(n);g=b,(b===1&&!isNumber(n[0])||b===2&&!isNumber(n[0][0]))&&(d=!0)}else if(isNumber(n)&&!eqNaN(n))g=VALUE_TYPE_NUMBER;else if(isString(n))if(!isNaN(+n))g=VALUE_TYPE_NUMBER;else{var C=parse(n);C&&(y=C,g=VALUE_TYPE_COLOR)}else if(isGradientObject(n)){var x=extend({},y);x.colorStops=map$1(n.colorStops,function(_){return{offset:_.offset,color:parse(_.color)}}),isLinearGradient(n)?g=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(n)&&(g=VALUE_TYPE_RADIAL_GRADIENT),y=x}l===0?this.valType=g:(g!==this.valType||g===VALUE_TYPE_UNKOWN)&&(d=!0),this.discrete=this.discrete||d;var S={time:r,value:y,rawValue:n,percent:0};return o&&(S.easing=o,S.easingFunc=isFunction(o)?o:easingFuncs$1[o]||createCubicEasingFunc(o)),s.push(S),S},t.prototype.prepare=function(r,n){var o=this.keyframes;this._needsSort&&o.sort(function($,I){return $.time-I.time});for(var s=this.valType,l=o.length,d=o[l-1],g=this.discrete,y=isArrayValueType(s),b=isGradientValueType(s),C=0;C<l;C++){var x=o[C],S=x.value,_=d.value;x.percent=x.time/r,g||(y&&C!==l-1?fillArray(S,_,s):b&&fillColorStops(S.colorStops,_.colorStops))}if(!g&&s!==VALUE_TYPE_RADIAL_GRADIENT&&n&&this.needsAnimate()&&n.needsAnimate()&&s===n.valType&&!n._finished){this._additiveTrack=n;for(var w=o[0].value,C=0;C<l;C++)s===VALUE_TYPE_NUMBER?o[C].additiveValue=o[C].value-w:s===VALUE_TYPE_COLOR?o[C].additiveValue=add1DArray([],o[C].value,w,-1):isArrayValueType(s)&&(o[C].additiveValue=s===VALUE_TYPE_1D_ARRAY?add1DArray([],o[C].value,w,-1):add2DArray([],o[C].value,w,-1))}},t.prototype.step=function(r,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var o=this._additiveTrack!=null,s=o?"additiveValue":"value",l=this.valType,d=this.keyframes,g=d.length,y=this.propName,b=l===VALUE_TYPE_COLOR,C,x=this._lastFr,S=Math.min,_,w;if(g===1)_=w=d[0];else{if(n<0)C=0;else if(n<this._lastFrP){var $=S(x+1,g-1);for(C=$;C>=0&&!(d[C].percent<=n);C--);C=S(C,g-2)}else{for(C=x;C<g&&!(d[C].percent>n);C++);C=S(C-1,g-2)}w=d[C+1],_=d[C]}if(!!(_&&w)){this._lastFr=C,this._lastFrP=n;var I=w.percent-_.percent,B=I===0?1:S((n-_.percent)/I,1);w.easingFunc&&(B=w.easingFunc(B));var R=o?this._additiveValue:b?tmpRgba:r[y];if((isArrayValueType(l)||b)&&!R&&(R=this._additiveValue=[]),this.discrete)r[y]=B<1?_.rawValue:w.rawValue;else if(isArrayValueType(l))l===VALUE_TYPE_1D_ARRAY?interpolate1DArray(R,_[s],w[s],B):interpolate2DArray(R,_[s],w[s],B);else if(isGradientValueType(l)){var P=_[s],M=w[s],O=l===VALUE_TYPE_LINEAR_GRADIENT;r[y]={type:O?"linear":"radial",x:interpolateNumber$1(P.x,M.x,B),y:interpolateNumber$1(P.y,M.y,B),colorStops:map$1(P.colorStops,function(N,H){var Q=M.colorStops[H];return{offset:interpolateNumber$1(N.offset,Q.offset,B),color:rgba2String(interpolate1DArray([],N.color,Q.color,B))}}),global:M.global},O?(r[y].x2=interpolateNumber$1(P.x2,M.x2,B),r[y].y2=interpolateNumber$1(P.y2,M.y2,B)):r[y].r=interpolateNumber$1(P.r,M.r,B)}else if(b)interpolate1DArray(R,_[s],w[s],B),o||(r[y]=rgba2String(R));else{var D=interpolateNumber$1(_[s],w[s],B);o?this._additiveValue=D:r[y]=D}o&&this._addToTarget(r)}}},t.prototype._addToTarget=function(r){var n=this.valType,o=this.propName,s=this._additiveValue;n===VALUE_TYPE_NUMBER?r[o]=r[o]+s:n===VALUE_TYPE_COLOR?(parse(r[o],tmpRgba),add1DArray(tmpRgba,tmpRgba,s,1),r[o]=rgba2String(tmpRgba)):n===VALUE_TYPE_1D_ARRAY?add1DArray(r[o],r[o],s,1):n===VALUE_TYPE_2D_ARRAY&&add2DArray(r[o],r[o],s,1)},t}(),Animator=function(){function t(r,n,o,s){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=r,this._loop=n,n&&s){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=s,this._allowDiscrete=o}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(r){this._target=r},t.prototype.when=function(r,n,o){return this.whenWithKeys(r,n,keys(n),o)},t.prototype.whenWithKeys=function(r,n,o,s){for(var l=this._tracks,d=0;d<o.length;d++){var g=o[d],y=l[g];if(!y){y=l[g]=new Track(g);var b=void 0,C=this._getAdditiveTrack(g);if(C){var x=C.keyframes,S=x[x.length-1];b=S&&S.value,C.valType===VALUE_TYPE_COLOR&&b&&(b=rgba2String(b))}else b=this._target[g];if(b==null)continue;r>0&&y.addKeyframe(0,cloneValue(b),s),this._trackKeys.push(g)}y.addKeyframe(r,cloneValue(n[g]),s)}return this._maxTime=Math.max(this._maxTime,r),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(r){return this._maxTime=r,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var r=this._doneCbs;if(r)for(var n=r.length,o=0;o<n;o++)r[o].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var r=this.animation,n=this._abortedCbs;if(r&&r.removeClip(this._clip),this._clip=null,n)for(var o=0;o<n.length;o++)n[o].call(this)},t.prototype._setTracksFinished=function(){for(var r=this._tracks,n=this._trackKeys,o=0;o<n.length;o++)r[n[o]].setFinished()},t.prototype._getAdditiveTrack=function(r){var n,o=this._additiveAnimators;if(o)for(var s=0;s<o.length;s++){var l=o[s].getTrack(r);l&&(n=l)}return n},t.prototype.start=function(r){if(!(this._started>0)){this._started=1;for(var n=this,o=[],s=this._maxTime||0,l=0;l<this._trackKeys.length;l++){var d=this._trackKeys[l],g=this._tracks[d],y=this._getAdditiveTrack(d),b=g.keyframes,C=b.length;if(g.prepare(s,y),g.needsAnimate())if(!this._allowDiscrete&&g.discrete){var x=b[C-1];x&&(n._target[g.propName]=x.rawValue),g.setFinished()}else o.push(g)}if(o.length||this._force){var S=new Clip$1({life:s,loop:this._loop,delay:this._delay||0,onframe:function(_){n._started=2;var w=n._additiveAnimators;if(w){for(var $=!1,I=0;I<w.length;I++)if(w[I]._clip){$=!0;break}$||(n._additiveAnimators=null)}for(var I=0;I<o.length;I++)o[I].step(n._target,_);var B=n._onframeCbs;if(B)for(var I=0;I<B.length;I++)B[I](n._target,_)},ondestroy:function(){n._doneCallback()}});this._clip=S,this.animation&&this.animation.addClip(S),r&&S.setEasing(r)}else this._doneCallback();return this}},t.prototype.stop=function(r){if(!!this._clip){var n=this._clip;r&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(r){return this._delay=r,this},t.prototype.during=function(r){return r&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(r)),this},t.prototype.done=function(r){return r&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(r)),this},t.prototype.aborted=function(r){return r&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(r)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(r){return this._tracks[r]},t.prototype.getTracks=function(){var r=this;return map$1(this._trackKeys,function(n){return r._tracks[n]})},t.prototype.stopTracks=function(r,n){if(!r.length||!this._clip)return!0;for(var o=this._tracks,s=this._trackKeys,l=0;l<r.length;l++){var d=o[r[l]];d&&!d.isFinished()&&(n?d.step(this._target,1):this._started===1&&d.step(this._target,0),d.setFinished())}for(var g=!0,l=0;l<s.length;l++)if(!o[s[l]].isFinished()){g=!1;break}return g&&this._abortedCallback(),g},t.prototype.saveTo=function(r,n,o){if(!!r){n=n||this._trackKeys;for(var s=0;s<n.length;s++){var l=n[s],d=this._tracks[l];if(!(!d||d.isFinished())){var g=d.keyframes,y=g[o?0:g.length-1];y&&(r[l]=cloneValue(y.rawValue))}}}},t.prototype.__changeFinalValue=function(r,n){n=n||keys(r);for(var o=0;o<n.length;o++){var s=n[o],l=this._tracks[s];if(!!l){var d=l.keyframes;if(d.length>1){var g=d.pop();l.addKeyframe(g.time,r[s]),l.prepare(this._maxTime,l.getAdditiveTrack())}}}},t}(),Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(t){__extends(r,t);function r(n){var o=t.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,n=n||{},o.stage=n.stage||{},o}return r.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},r.prototype.addAnimator=function(n){n.animation=this;var o=n.getClip();o&&this.addClip(o)},r.prototype.removeClip=function(n){if(!!n.animation){var o=n.prev,s=n.next;o?o.next=s:this._head=s,s?s.prev=o:this._tail=o,n.next=n.prev=n.animation=null}},r.prototype.removeAnimator=function(n){var o=n.getClip();o&&this.removeClip(o),n.animation=null},r.prototype.update=function(n){for(var o=getTime()-this._pausedTime,s=o-this._time,l=this._head;l;){var d=l.next,g=l.step(o,s);g&&(l.ondestroy(),this.removeClip(l)),l=d}this._time=o,n||(this.trigger("frame",s),this.stage.update&&this.stage.update())},r.prototype._startLoop=function(){var n=this;this._running=!0;function o(){n._running&&(requestAnimationFrame$2(o),!n._paused&&n.update())}requestAnimationFrame$2(o)},r.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},r.prototype.stop=function(){this._running=!1},r.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},r.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},r.prototype.clear=function(){for(var n=this._head;n;){var o=n.next;n.prev=n.next=n.animation=null,n=o}this._head=this._tail=null},r.prototype.isFinished=function(){return this._head==null},r.prototype.animate=function(n,o){o=o||{},this.start();var s=new Animator$1(n,o.loop);return this.addAnimator(s),s},r}(Eventful$1),Animation$1=Animation,TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],r=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},o=map$1(t,function(s){var l=s.replace("mouse","pointer");return n.hasOwnProperty(l)?l:s});return{mouse:t,touch:r,pointer:o}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(t){var r=t.pointerType;return r==="pen"||r==="touch"}function setTouchTimer(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function markTouch(t){t&&(t.zrByTouch=!0)}function normalizeGlobalEvent(t,r){return normalizeEvent(t.dom,new FakeGlobalEvent(t,r),!0)}function isLocalEl(t,r){for(var n=r,o=!1;n&&n.nodeType!==9&&!(o=n.domBelongToZr||n!==r&&n===t.painterRoot);)n=n.parentNode;return o}var FakeGlobalEvent=function(){function t(r,n){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=n.type,this.target=this.currentTarget=r.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),localDOMHandlers={mousedown:function(t){t=normalizeEvent(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=normalizeEvent(this.dom,t);var r=this.__mayPointerCapture;r&&(t.zrX!==r[0]||t.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=normalizeEvent(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=normalizeEvent(this.dom,t);var r=t.toElement||t.relatedTarget;isLocalEl(this,r)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wheelEventSupported=!0,t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wheelEventSupported||(t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),localDOMHandlers.mousemove.call(this,t),localDOMHandlers.mousedown.call(this,t)},touchmove:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"change"),localDOMHandlers.mousemove.call(this,t)},touchend:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"end"),localDOMHandlers.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,t)},pointerdown:function(t){localDOMHandlers.mousedown.call(this,t)},pointermove:function(t){isPointerFromTouch(t)||localDOMHandlers.mousemove.call(this,t)},pointerup:function(t){localDOMHandlers.mouseup.call(this,t)},pointerout:function(t){isPointerFromTouch(t)||localDOMHandlers.mouseout.call(this,t)}};each$f(["click","dblclick","contextmenu"],function(t){localDOMHandlers[t]=function(r){r=normalizeEvent(this.dom,r),this.trigger(t,r)}});var globalDOMHandlers={pointermove:function(t){isPointerFromTouch(t)||globalDOMHandlers.mousemove.call(this,t)},pointerup:function(t){globalDOMHandlers.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var r=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),r&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function mountLocalDOMEventListeners(t,r){var n=r.domHandlers;env$1.pointerEventsSupported?each$f(localNativeListenerNames.pointer,function(o){mountSingleDOMEventListener(r,o,function(s){n[o].call(t,s)})}):(env$1.touchEventsSupported&&each$f(localNativeListenerNames.touch,function(o){mountSingleDOMEventListener(r,o,function(s){n[o].call(t,s),setTouchTimer(r)})}),each$f(localNativeListenerNames.mouse,function(o){mountSingleDOMEventListener(r,o,function(s){s=getNativeEvent(s),r.touching||n[o].call(t,s)})}))}function mountGlobalDOMEventListeners(t,r){env$1.pointerEventsSupported?each$f(globalNativeListenerNames.pointer,n):env$1.touchEventsSupported||each$f(globalNativeListenerNames.mouse,n);function n(o){function s(l){l=getNativeEvent(l),isLocalEl(t,l.target)||(l=normalizeGlobalEvent(t,l),r.domHandlers[o].call(t,l))}mountSingleDOMEventListener(r,o,s,{capture:!0})}}function mountSingleDOMEventListener(t,r,n,o){t.mounted[r]=n,t.listenerOpts[r]=o,addEventListener(t.domTarget,r,n,o)}function unmountDOMEventListeners(t){var r=t.mounted;for(var n in r)r.hasOwnProperty(n)&&removeEventListener(t.domTarget,n,r[n],t.listenerOpts[n]);t.mounted={}}var DOMHandlerScope=function(){function t(r,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=r,this.domHandlers=n}return t}(),HandlerDomProxy=function(t){__extends(r,t);function r(n,o){var s=t.call(this)||this;return s.__pointerCapturing=!1,s.dom=n,s.painterRoot=o,s._localHandlerScope=new DOMHandlerScope(n,localDOMHandlers),globalEventSupported&&(s._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(s,s._localHandlerScope),s}return r.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},r.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},r.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var o=this._globalHandlerScope;n?mountGlobalDOMEventListeners(this,o):unmountDOMEventListeners(o)}},r}(Eventful$1),HandlerProxy=HandlerDomProxy,dpr=1;env$1.hasGlobalWindow&&(dpr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var devicePixelRatio$1=dpr,DARK_MODE_THRESHOLD=.4,DARK_LABEL_COLOR="#333",LIGHT_LABEL_COLOR="#ccc",LIGHTER_LABEL_COLOR="#eee",mIdentity=identity,EPSILON$2=5e-5;function isNotAroundZero(t){return t>EPSILON$2||t<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create$1(),abs=Math.abs,Transformable=function(){function t(){}return t.prototype.getLocalTransform=function(r){return t.getLocalTransform(this,r)},t.prototype.setPosition=function(r){this.x=r[0],this.y=r[1]},t.prototype.setScale=function(r){this.scaleX=r[0],this.scaleY=r[1]},t.prototype.setSkew=function(r){this.skewX=r[0],this.skewY=r[1]},t.prototype.setOrigin=function(r){this.originX=r[0],this.originY=r[1]},t.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},t.prototype.updateTransform=function(){var r=this.parent&&this.parent.transform,n=this.needLocalTransform(),o=this.transform;if(!(n||r)){o&&mIdentity(o);return}o=o||create$1(),n?this.getLocalTransform(o):mIdentity(o),r&&(n?mul(o,r,o):copy(o,r)),this.transform=o,this._resolveGlobalScaleRatio(o)},t.prototype._resolveGlobalScaleRatio=function(r){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(scaleTmp);var o=scaleTmp[0]<0?-1:1,s=scaleTmp[1]<0?-1:1,l=((scaleTmp[0]-o)*n+o)/scaleTmp[0]||0,d=((scaleTmp[1]-s)*n+s)/scaleTmp[1]||0;r[0]*=l,r[1]*=l,r[2]*=d,r[3]*=d}this.invTransform=this.invTransform||create$1(),invert(this.invTransform,r)},t.prototype.getComputedTransform=function(){for(var r=this,n=[];r;)n.push(r),r=r.parent;for(;r=n.pop();)r.updateTransform();return this.transform},t.prototype.setLocalTransform=function(r){if(!!r){var n=r[0]*r[0]+r[1]*r[1],o=r[2]*r[2]+r[3]*r[3],s=Math.atan2(r[1],r[0]),l=Math.PI/2+s-Math.atan2(r[3],r[2]);o=Math.sqrt(o)*Math.cos(l),n=Math.sqrt(n),this.skewX=l,this.skewY=0,this.rotation=-s,this.x=+r[4],this.y=+r[5],this.scaleX=n,this.scaleY=o,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(!!this.transform){var r=this.parent,n=this.transform;r&&r.transform&&(mul(tmpTransform,r.invTransform,n),n=tmpTransform);var o=this.originX,s=this.originY;(o||s)&&(originTransform[4]=o,originTransform[5]=s,mul(tmpTransform,n,originTransform),tmpTransform[4]-=o,tmpTransform[5]-=s,n=tmpTransform),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(r){var n=this.transform;return r=r||[],n?(r[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),r[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(r[0]=-r[0]),n[3]<0&&(r[1]=-r[1]),r):(r[0]=1,r[1]=1,r)},t.prototype.transformCoordToLocal=function(r,n){var o=[r,n],s=this.invTransform;return s&&applyTransform$1(o,o,s),o},t.prototype.transformCoordToGlobal=function(r,n){var o=[r,n],s=this.transform;return s&&applyTransform$1(o,o,s),o},t.prototype.getLineScale=function(){var r=this.transform;return r&&abs(r[0]-1)>1e-10&&abs(r[3]-1)>1e-10?Math.sqrt(abs(r[0]*r[3]-r[2]*r[1])):1},t.prototype.copyTransform=function(r){copyTransform(this,r)},t.getLocalTransform=function(r,n){n=n||[];var o=r.originX||0,s=r.originY||0,l=r.scaleX,d=r.scaleY,g=r.anchorX,y=r.anchorY,b=r.rotation||0,C=r.x,x=r.y,S=r.skewX?Math.tan(r.skewX):0,_=r.skewY?Math.tan(-r.skewY):0;if(o||s||g||y){var w=o+g,$=s+y;n[4]=-w*l-S*$*d,n[5]=-$*d-_*w*l}else n[4]=n[5]=0;return n[0]=l,n[3]=d,n[1]=_*l,n[2]=S*d,b&&rotate(n,n,b),n[4]+=o+C,n[5]+=s+x,n},t.initDefaultProps=function(){var r=t.prototype;r.scaleX=r.scaleY=r.globalScaleRatio=1,r.x=r.y=r.originX=r.originY=r.skewX=r.skewY=r.rotation=r.anchorX=r.anchorY=0}(),t}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(t,r){for(var n=0;n<TRANSFORMABLE_PROPS.length;n++){var o=TRANSFORMABLE_PROPS[n];t[o]=r[o]}}var Transformable$1=Transformable,textWidthCache={};function getWidth(t,r){r=r||DEFAULT_FONT;var n=textWidthCache[r];n||(n=textWidthCache[r]=new LRU$1(500));var o=n.get(t);return o==null&&(o=platformApi.measureText(t,r).width,n.put(t,o)),o}function innerGetBoundingRect(t,r,n,o){var s=getWidth(t,r),l=getLineHeight(r),d=adjustTextX(0,s,n),g=adjustTextY(0,l,o),y=new BoundingRect$1(d,g,s,l);return y}function getBoundingRect(t,r,n,o){var s=((t||"")+"").split(`
|
|
`),l=s.length;if(l===1)return innerGetBoundingRect(s[0],r,n,o);for(var d=new BoundingRect$1(0,0,0,0),g=0;g<s.length;g++){var y=innerGetBoundingRect(s[g],r,n,o);g===0?d.copy(y):d.union(y)}return d}function adjustTextX(t,r,n){return n==="right"?t-=r:n==="center"&&(t-=r/2),t}function adjustTextY(t,r,n){return n==="middle"?t-=r/2:n==="bottom"&&(t-=r),t}function getLineHeight(t){return getWidth("\u56FD",t)}function parsePercent$1(t,r){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*r:parseFloat(t):t}function calculateTextPosition(t,r,n){var o=r.position||"inside",s=r.distance!=null?r.distance:5,l=n.height,d=n.width,g=l/2,y=n.x,b=n.y,C="left",x="top";if(o instanceof Array)y+=parsePercent$1(o[0],n.width),b+=parsePercent$1(o[1],n.height),C=null,x=null;else switch(o){case"left":y-=s,b+=g,C="right",x="middle";break;case"right":y+=s+d,b+=g,x="middle";break;case"top":y+=d/2,b-=s,C="center",x="bottom";break;case"bottom":y+=d/2,b+=l+s,C="center";break;case"inside":y+=d/2,b+=g,C="center",x="middle";break;case"insideLeft":y+=s,b+=g,x="middle";break;case"insideRight":y+=d-s,b+=g,C="right",x="middle";break;case"insideTop":y+=d/2,b+=s,C="center";break;case"insideBottom":y+=d/2,b+=l-s,C="center",x="bottom";break;case"insideTopLeft":y+=s,b+=s;break;case"insideTopRight":y+=d-s,b+=s,C="right";break;case"insideBottomLeft":y+=s,b+=l-s,x="bottom";break;case"insideBottomRight":y+=d-s,b+=l-s,C="right",x="bottom";break}return t=t||{},t.x=y,t.y=b,t.align=C,t.verticalAlign=x,t}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(t,r){return t[r]=!0,t},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function t(r){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(r)}return t.prototype._init=function(r){this.attr(r)},t.prototype.drift=function(r,n,o){switch(this.draggable){case"horizontal":n=0;break;case"vertical":r=0;break}var s=this.transform;s||(s=this.transform=[1,0,0,1,0,0]),s[4]+=r,s[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(r){var n=this._textContent;if(n&&(!n.ignore||r)){this.textConfig||(this.textConfig={});var o=this.textConfig,s=o.local,l=n.innerTransformable,d=void 0,g=void 0,y=!1;l.parent=s?this:null;var b=!1;if(l.copyTransform(n),o.position!=null){var C=tmpBoundingRect;o.layoutRect?C.copy(o.layoutRect):C.copy(this.getBoundingRect()),s||C.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,o,C):calculateTextPosition(tmpTextPosCalcRes,o,C),l.x=tmpTextPosCalcRes.x,l.y=tmpTextPosCalcRes.y,d=tmpTextPosCalcRes.align,g=tmpTextPosCalcRes.verticalAlign;var x=o.origin;if(x&&o.rotation!=null){var S=void 0,_=void 0;x==="center"?(S=C.width*.5,_=C.height*.5):(S=parsePercent$1(x[0],C.width),_=parsePercent$1(x[1],C.height)),b=!0,l.originX=-l.x+S+(s?0:C.x),l.originY=-l.y+_+(s?0:C.y)}}o.rotation!=null&&(l.rotation=o.rotation);var w=o.offset;w&&(l.x+=w[0],l.y+=w[1],b||(l.originX=-w[0],l.originY=-w[1]));var $=o.inside==null?typeof o.position=="string"&&o.position.indexOf("inside")>=0:o.inside,I=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),B=void 0,R=void 0,P=void 0;$&&this.canBeInsideText()?(B=o.insideFill,R=o.insideStroke,(B==null||B==="auto")&&(B=this.getInsideTextFill()),(R==null||R==="auto")&&(R=this.getInsideTextStroke(B),P=!0)):(B=o.outsideFill,R=o.outsideStroke,(B==null||B==="auto")&&(B=this.getOutsideFill()),(R==null||R==="auto")&&(R=this.getOutsideStroke(B),P=!0)),B=B||"#000",(B!==I.fill||R!==I.stroke||P!==I.autoStroke||d!==I.align||g!==I.verticalAlign)&&(y=!0,I.fill=B,I.stroke=R,I.autoStroke=P,I.align=d,I.verticalAlign=g,n.setDefaultTextStyle(I)),n.__dirty|=REDRAW_BIT,y&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(r){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(r){var n=this.__zr&&this.__zr.getBackgroundColor(),o=typeof n=="string"&&parse(n);o||(o=[255,255,255,1]);for(var s=o[3],l=this.__zr.isDarkMode(),d=0;d<3;d++)o[d]=o[d]*s+(l?0:255)*(1-s);return o[3]=1,stringify(o,"rgba")},t.prototype.traverse=function(r,n){},t.prototype.attrKV=function(r,n){r==="textConfig"?this.setTextConfig(n):r==="textContent"?this.setTextContent(n):r==="clipPath"?this.setClipPath(n):r==="extra"?(this.extra=this.extra||{},extend(this.extra,n)):this[r]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(r,n){if(typeof r=="string")this.attrKV(r,n);else if(isObject$3(r))for(var o=r,s=keys(o),l=0;l<s.length;l++){var d=s[l];this.attrKV(d,r[d])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(r){this._innerSaveToNormal(r);for(var n=this._normalState,o=0;o<this.animators.length;o++){var s=this.animators[o],l=s.__fromStateTransition;if(!(s.getLoop()||l&&l!==PRESERVED_NORMAL_STATE)){var d=s.targetName,g=d?n[d]:n;s.saveTo(g)}}},t.prototype._innerSaveToNormal=function(r){var n=this._normalState;n||(n=this._normalState={}),r.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(r,n,PRIMARY_STATES_KEYS$1)},t.prototype._savePrimaryToNormal=function(r,n,o){for(var s=0;s<o.length;s++){var l=o[s];r[l]!=null&&!(l in n)&&(n[l]=this[l])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(r){return this.states[r]},t.prototype.ensureState=function(r){var n=this.states;return n[r]||(n[r]={}),n[r]},t.prototype.clearStates=function(r){this.useState(PRESERVED_NORMAL_STATE,!1,r)},t.prototype.useState=function(r,n,o,s){var l=r===PRESERVED_NORMAL_STATE,d=this.hasState();if(!(!d&&l)){var g=this.currentStates,y=this.stateTransition;if(!(indexOf(g,r)>=0&&(n||g.length===1))){var b;if(this.stateProxy&&!l&&(b=this.stateProxy(r)),b||(b=this.states&&this.states[r]),!b&&!l){logError("State "+r+" not exists.");return}l||this.saveCurrentToNormalState(b);var C=!!(b&&b.hoverLayer||s);C&&this._toggleHoverLayerFlag(!0),this._applyStateObj(r,b,this._normalState,n,!o&&!this.__inHover&&y&&y.duration>0,y);var x=this._textContent,S=this._textGuide;return x&&x.useState(r,n,o,C),S&&S.useState(r,n,o,C),l?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(r):this.currentStates=[r],this._updateAnimationTargets(),this.markRedraw(),!C&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),b}}},t.prototype.useStates=function(r,n,o){if(!r.length)this.clearStates();else{var s=[],l=this.currentStates,d=r.length,g=d===l.length;if(g){for(var y=0;y<d;y++)if(r[y]!==l[y]){g=!1;break}}if(g)return;for(var y=0;y<d;y++){var b=r[y],C=void 0;this.stateProxy&&(C=this.stateProxy(b,r)),C||(C=this.states[b]),C&&s.push(C)}var x=s[d-1],S=!!(x&&x.hoverLayer||o);S&&this._toggleHoverLayerFlag(!0);var _=this._mergeStates(s),w=this.stateTransition;this.saveCurrentToNormalState(_),this._applyStateObj(r.join(","),_,this._normalState,!1,!n&&!this.__inHover&&w&&w.duration>0,w);var $=this._textContent,I=this._textGuide;$&&$.useStates(r,n,S),I&&I.useStates(r,n,S),this._updateAnimationTargets(),this.currentStates=r.slice(),this.markRedraw(),!S&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},t.prototype._updateAnimationTargets=function(){for(var r=0;r<this.animators.length;r++){var n=this.animators[r];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(r){var n=indexOf(this.currentStates,r);if(n>=0){var o=this.currentStates.slice();o.splice(n,1),this.useStates(o)}},t.prototype.replaceState=function(r,n,o){var s=this.currentStates.slice(),l=indexOf(s,r),d=indexOf(s,n)>=0;l>=0?d?s.splice(l,1):s[l]=n:o&&!d&&s.push(n),this.useStates(s)},t.prototype.toggleState=function(r,n){n?this.useState(r,!0):this.removeState(r)},t.prototype._mergeStates=function(r){for(var n={},o,s=0;s<r.length;s++){var l=r[s];extend(n,l),l.textConfig&&(o=o||{},extend(o,l.textConfig))}return o&&(n.textConfig=o),n},t.prototype._applyStateObj=function(r,n,o,s,l,d){var g=!(n&&s);n&&n.textConfig?(this.textConfig=extend({},s?this.textConfig:o.textConfig),extend(this.textConfig,n.textConfig)):g&&o.textConfig&&(this.textConfig=o.textConfig);for(var y={},b=!1,C=0;C<PRIMARY_STATES_KEYS$1.length;C++){var x=PRIMARY_STATES_KEYS$1[C],S=l&&DEFAULT_ANIMATABLE_MAP[x];n&&n[x]!=null?S?(b=!0,y[x]=n[x]):this[x]=n[x]:g&&o[x]!=null&&(S?(b=!0,y[x]=o[x]):this[x]=o[x])}if(!l)for(var C=0;C<this.animators.length;C++){var _=this.animators[C],w=_.targetName;_.getLoop()||_.__changeFinalValue(w?(n||o)[w]:n||o)}b&&this._transitionState(r,y,d)},t.prototype._attachComponent=function(r){if(!(r.__zr&&!r.__hostTarget)&&r!==this){var n=this.__zr;n&&r.addSelfToZr(n),r.__zr=n,r.__hostTarget=this}},t.prototype._detachComponent=function(r){r.__zr&&r.removeSelfFromZr(r.__zr),r.__zr=null,r.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(r){this._clipPath&&this._clipPath!==r&&this.removeClipPath(),this._attachComponent(r),this._clipPath=r,this.markRedraw()},t.prototype.removeClipPath=function(){var r=this._clipPath;r&&(this._detachComponent(r),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(r){var n=this._textContent;n!==r&&(n&&n!==r&&this.removeTextContent(),r.innerTransformable=new Transformable$1,this._attachComponent(r),this._textContent=r,this.markRedraw())},t.prototype.setTextConfig=function(r){this.textConfig||(this.textConfig={}),extend(this.textConfig,r),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var r=this._textContent;r&&(r.innerTransformable=null,this._detachComponent(r),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(r){this._textGuide&&this._textGuide!==r&&this.removeTextGuideLine(),this._attachComponent(r),this._textGuide=r,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var r=this._textGuide;r&&(this._detachComponent(r),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var r=this.__zr;r&&(this.__inHover?r.refreshHover():r.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(r){this.__inHover=r;var n=this._textContent,o=this._textGuide;n&&(n.__inHover=r),o&&(o.__inHover=r)},t.prototype.addSelfToZr=function(r){if(this.__zr!==r){this.__zr=r;var n=this.animators;if(n)for(var o=0;o<n.length;o++)r.animation.addAnimator(n[o]);this._clipPath&&this._clipPath.addSelfToZr(r),this._textContent&&this._textContent.addSelfToZr(r),this._textGuide&&this._textGuide.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){if(!!this.__zr){this.__zr=null;var n=this.animators;if(n)for(var o=0;o<n.length;o++)r.animation.removeAnimator(n[o]);this._clipPath&&this._clipPath.removeSelfFromZr(r),this._textContent&&this._textContent.removeSelfFromZr(r),this._textGuide&&this._textGuide.removeSelfFromZr(r)}},t.prototype.animate=function(r,n,o){var s=r?this[r]:this,l=new Animator$1(s,n,o);return r&&(l.targetName=r),this.addAnimator(l,r),l},t.prototype.addAnimator=function(r,n){var o=this.__zr,s=this;r.during(function(){s.updateDuringAnimation(n)}).done(function(){var l=s.animators,d=indexOf(l,r);d>=0&&l.splice(d,1)}),this.animators.push(r),o&&o.animation.addAnimator(r),o&&o.wakeUp()},t.prototype.updateDuringAnimation=function(r){this.markRedraw()},t.prototype.stopAnimation=function(r,n){for(var o=this.animators,s=o.length,l=[],d=0;d<s;d++){var g=o[d];!r||r===g.scope?g.stop(n):l.push(g)}return this.animators=l,this},t.prototype.animateTo=function(r,n,o){animateTo(this,r,n,o)},t.prototype.animateFrom=function(r,n,o){animateTo(this,r,n,o,!0)},t.prototype._transitionState=function(r,n,o,s){for(var l=animateTo(this,n,o,s),d=0;d<l.length;d++)l[d].__fromStateTransition=r},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var r=t.prototype;r.type="element",r.name="",r.ignore=r.silent=r.isGroup=r.draggable=r.dragging=r.ignoreClip=r.__inHover=!1,r.__dirty=REDRAW_BIT;function n(o,s,l,d){Object.defineProperty(r,o,{get:function(){if(!this[s]){var y=this[s]=[];g(this,y)}return this[s]},set:function(y){this[l]=y[0],this[d]=y[1],this[s]=y,g(this,y)}});function g(y,b){Object.defineProperty(b,0,{get:function(){return y[l]},set:function(C){y[l]=C}}),Object.defineProperty(b,1,{get:function(){return y[d]},set:function(C){y[d]=C}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();mixin(Element$1,Eventful$1);mixin(Element$1,Transformable$1);function animateTo(t,r,n,o,s){n=n||{};var l=[];animateToShallow(t,"",t,r,n,o,l,s);var d=l.length,g=!1,y=n.done,b=n.aborted,C=function(){g=!0,d--,d<=0&&(g?y&&y():b&&b())},x=function(){d--,d<=0&&(g?y&&y():b&&b())};d||y&&y(),l.length>0&&n.during&&l[0].during(function(w,$){n.during($)});for(var S=0;S<l.length;S++){var _=l[S];C&&_.done(C),x&&_.aborted(x),n.force&&_.duration(n.duration),_.start(n.easing)}return l}function copyArrShallow(t,r,n){for(var o=0;o<n;o++)t[o]=r[o]}function is2DArray(t){return isArrayLike(t[0])}function copyValue(t,r,n){if(isArrayLike(r[n]))if(isArrayLike(t[n])||(t[n]=[]),isTypedArray(r[n])){var o=r[n].length;t[n].length!==o&&(t[n]=new r[n].constructor(o),copyArrShallow(t[n],r[n],o))}else{var s=r[n],l=t[n],d=s.length;if(is2DArray(s))for(var g=s[0].length,y=0;y<d;y++)l[y]?copyArrShallow(l[y],s[y],g):l[y]=Array.prototype.slice.call(s[y]);else copyArrShallow(l,s,d);l.length=s.length}else t[n]=r[n]}function isValueSame(t,r){return t===r||isArrayLike(t)&&isArrayLike(r)&&is1DArraySame(t,r)}function is1DArraySame(t,r){var n=t.length;if(n!==r.length)return!1;for(var o=0;o<n;o++)if(t[o]!==r[o])return!1;return!0}function animateToShallow(t,r,n,o,s,l,d,g){for(var y=keys(o),b=s.duration,C=s.delay,x=s.additive,S=s.setToFinal,_=!isObject$3(l),w=t.animators,$=[],I=0;I<y.length;I++){var B=y[I],R=o[B];if(R!=null&&n[B]!=null&&(_||l[B]))if(isObject$3(R)&&!isArrayLike(R)&&!isGradientObject(R)){if(r){g||(n[B]=R,t.updateDuringAnimation(r));continue}animateToShallow(t,B,n[B],R,s,l&&l[B],d,g)}else $.push(B);else g||(n[B]=R,t.updateDuringAnimation(r),$.push(B))}var P=$.length;if(!x&&P)for(var M=0;M<w.length;M++){var O=w[M];if(O.targetName===r){var D=O.stopTracks($);if(D){var N=indexOf(w,O);w.splice(N,1)}}}if(s.force||($=filter($,function(K){return!isValueSame(o[K],n[K])}),P=$.length),P>0||s.force&&!d.length){var H=void 0,Q=void 0,G=void 0;if(g){Q={},S&&(H={});for(var M=0;M<P;M++){var B=$[M];Q[B]=n[B],S?H[B]=o[B]:n[B]=o[B]}}else if(S){G={};for(var M=0;M<P;M++){var B=$[M];G[B]=cloneValue(n[B]),copyValue(n,o,B)}}var O=new Animator$1(n,!1,!1,x?filter(w,function(W){return W.targetName===r}):null);O.targetName=r,s.scope&&(O.scope=s.scope),S&&H&&O.whenWithKeys(0,H,$),G&&O.whenWithKeys(0,G,$),O.whenWithKeys(b==null?500:b,g?Q:o,$).delay(C||0),t.addAnimator(O,r),d.push(O)}}var Element$2=Element$1,Group$3=function(t){__extends(r,t);function r(n){var o=t.call(this)||this;return o.isGroup=!0,o._children=[],o.attr(n),o}return r.prototype.childrenRef=function(){return this._children},r.prototype.children=function(){return this._children.slice()},r.prototype.childAt=function(n){return this._children[n]},r.prototype.childOfName=function(n){for(var o=this._children,s=0;s<o.length;s++)if(o[s].name===n)return o[s]},r.prototype.childCount=function(){return this._children.length},r.prototype.add=function(n){return n&&n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),this},r.prototype.addBefore=function(n,o){if(n&&n!==this&&n.parent!==this&&o&&o.parent===this){var s=this._children,l=s.indexOf(o);l>=0&&(s.splice(l,0,n),this._doAdd(n))}return this},r.prototype.replace=function(n,o){var s=indexOf(this._children,n);return s>=0&&this.replaceAt(o,s),this},r.prototype.replaceAt=function(n,o){var s=this._children,l=s[o];if(n&&n!==this&&n.parent!==this&&n!==l){s[o]=n,l.parent=null;var d=this.__zr;d&&l.removeSelfFromZr(d),this._doAdd(n)}return this},r.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var o=this.__zr;o&&o!==n.__zr&&n.addSelfToZr(o),o&&o.refresh()},r.prototype.remove=function(n){var o=this.__zr,s=this._children,l=indexOf(s,n);return l<0?this:(s.splice(l,1),n.parent=null,o&&n.removeSelfFromZr(o),o&&o.refresh(),this)},r.prototype.removeAll=function(){for(var n=this._children,o=this.__zr,s=0;s<n.length;s++){var l=n[s];o&&l.removeSelfFromZr(o),l.parent=null}return n.length=0,this},r.prototype.eachChild=function(n,o){for(var s=this._children,l=0;l<s.length;l++){var d=s[l];n.call(o,d,l)}return this},r.prototype.traverse=function(n,o){for(var s=0;s<this._children.length;s++){var l=this._children[s],d=n.call(o,l);l.isGroup&&!d&&l.traverse(n,o)}return this},r.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var o=0;o<this._children.length;o++){var s=this._children[o];s.addSelfToZr(n)}},r.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var o=0;o<this._children.length;o++){var s=this._children[o];s.removeSelfFromZr(n)}},r.prototype.getBoundingRect=function(n){for(var o=new BoundingRect$1(0,0,0,0),s=n||this._children,l=[],d=null,g=0;g<s.length;g++){var y=s[g];if(!(y.ignore||y.invisible)){var b=y.getBoundingRect(),C=y.getLocalTransform(l);C?(BoundingRect$1.applyTransform(o,b,C),d=d||o.clone(),d.union(o)):(d=d||b.clone(),d.union(b))}}return d||o},r}(Element$2);Group$3.prototype.type="group";var Group$4=Group$3;/*!
|
|
* 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 painterCtors={},instances$1={};function delInstance(t){delete instances$1[t]}function isDarkMode(t){if(!t)return!1;if(typeof t=="string")return lum(t,1)<DARK_MODE_THRESHOLD;if(t.colorStops){for(var r=t.colorStops,n=0,o=r.length,s=0;s<o;s++)n+=lum(r[s].color,1);return n/=o,n<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function t(r,n,o){var s=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,o=o||{},this.dom=n,this.id=r;var l=new Storage$1,d=o.renderer||"canvas";painterCtors[d]||(d=keys(painterCtors)[0]),o.useDirtyRect=o.useDirtyRect==null?!1:o.useDirtyRect;var g=new painterCtors[d](n,l,o,r),y=o.ssr||g.ssrOnly;this.storage=l,this.painter=g;var b=!env$1.node&&!env$1.worker&&!y?new HandlerProxy(g.getViewportRoot(),g.root):null,C=o.useCoarsePointer,x=C==null||C==="auto"?env$1.touchEventsSupported:!!C,S=44,_;x&&(_=retrieve2(o.pointerSize,S)),this.handler=new Handler$1(l,g,b,g.root,_),this.animation=new Animation$1({stage:{update:y?null:function(){return s._flush(!0)}}}),y||this.animation.start()}return t.prototype.add=function(r){!r||(this.storage.addRoot(r),r.addSelfToZr(this),this.refresh())},t.prototype.remove=function(r){!r||(this.storage.delRoot(r),r.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(r,n){this.painter.configLayer&&this.painter.configLayer(r,n),this.refresh()},t.prototype.setBackgroundColor=function(r){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(r),this.refresh(),this._backgroundColor=r,this._darkMode=isDarkMode(r)},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(r){this._darkMode=r},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(r){r||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},t.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},t.prototype.flush=function(){this._flush(!1)},t.prototype._flush=function(r){var n,o=getTime();this._needsRefresh&&(n=!0,this.refreshImmediately(r)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var s=getTime();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:s-o})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(r){this._sleepAfterStill=r},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(r){r=r||{},this.painter.resize(r.width,r.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(r){this.handler.setCursorStyle(r)},t.prototype.findHover=function(r,n){return this.handler.findHover(r,n)},t.prototype.on=function(r,n,o){return this.handler.on(r,n,o),this},t.prototype.off=function(r,n){this.handler.off(r,n)},t.prototype.trigger=function(r,n){this.handler.trigger(r,n)},t.prototype.clear=function(){for(var r=this.storage.getRoots(),n=0;n<r.length;n++)r[n]instanceof Group$4&&r[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},t.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,delInstance(this.id)},t}();function init$2(t,r){var n=new ZRender(guid(),t,r);return instances$1[n.id]=n,n}function dispose$1(t){t.dispose()}function disposeAll(){for(var t in instances$1)instances$1.hasOwnProperty(t)&&instances$1[t].dispose();instances$1={}}function getInstance(t){return instances$1[t]}function registerPainter(t,r){painterCtors[t]=r}var version$1="5.4.1",zrender=Object.freeze(Object.defineProperty({__proto__:null,init:init$2,dispose:dispose$1,disposeAll,getInstance,registerPainter,version:version$1},Symbol.toStringTag,{value:"Module"})),RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim(t){return t.replace(/^\s+|\s+$/g,"")}function linearMap$2(t,r,n,o){var s=r[0],l=r[1],d=n[0],g=n[1],y=l-s,b=g-d;if(y===0)return b===0?d:(d+g)/2;if(o)if(y>0){if(t<=s)return d;if(t>=l)return g}else{if(t>=s)return d;if(t<=l)return g}else{if(t===s)return d;if(t===l)return g}return(t-s)/y*b+d}function parsePercent(t,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return isString(t)?_trim(t).match(/%$/)?parseFloat(t)/100*r:parseFloat(t):t==null?NaN:+t}function round$3(t,r,n){return r==null&&(r=10),r=Math.min(Math.max(0,r),ROUND_SUPPORTED_PRECISION_MAX),t=(+t).toFixed(r),n?t:+t}function asc$2(t){return t.sort(function(r,n){return r-n}),t}function getPrecision(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var r=1,n=0;n<15;n++,r*=10)if(Math.round(t*r)/r===t)return n}return getPrecisionSafe(t)}function getPrecisionSafe(t){var r=t.toString().toLowerCase(),n=r.indexOf("e"),o=n>0?+r.slice(n+1):0,s=n>0?n:r.length,l=r.indexOf("."),d=l<0?0:s-1-l;return Math.max(0,d-o)}function getPixelPrecision(t,r){var n=Math.log,o=Math.LN10,s=Math.floor(n(t[1]-t[0])/o),l=Math.round(n(Math.abs(r[1]-r[0]))/o),d=Math.min(Math.max(-s+l,0),20);return isFinite(d)?d:20}function getPercentWithPrecision(t,r,n){if(!t[r])return 0;var o=getPercentSeats(t,n);return o[r]||0}function getPercentSeats(t,r){var n=reduce(t,function(_,w){return _+(isNaN(w)?0:w)},0);if(n===0)return[];for(var o=Math.pow(10,r),s=map$1(t,function(_){return(isNaN(_)?0:_)/n*o*100}),l=o*100,d=map$1(s,function(_){return Math.floor(_)}),g=reduce(d,function(_,w){return _+w},0),y=map$1(s,function(_,w){return _-d[w]});g<l;){for(var b=Number.NEGATIVE_INFINITY,C=null,x=0,S=y.length;x<S;++x)y[x]>b&&(b=y[x],C=x);++d[C],y[C]=0,++g}return map$1(d,function(_){return _/o})}function addSafe(t,r){var n=Math.max(getPrecision(t),getPrecision(r)),o=t+r;return n>ROUND_SUPPORTED_PRECISION_MAX?o:round$3(o,n)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian(t){var r=Math.PI*2;return(t%r+r)%r}function isRadianAroundZero(t){return t>-RADIAN_EPSILON&&t<RADIAN_EPSILON}var TIME_REG=/^(?:(\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 parseDate(t){if(t instanceof Date)return t;if(isString(t)){var r=TIME_REG.exec(t);if(!r)return new Date(NaN);if(r[8]){var n=+r[4]||0;return r[8].toUpperCase()!=="Z"&&(n-=+r[8].slice(0,3)),new Date(Date.UTC(+r[1],+(r[2]||1)-1,+r[3]||1,n,+(r[5]||0),+r[6]||0,r[7]?+r[7].substring(0,3):0))}else return new Date(+r[1],+(r[2]||1)-1,+r[3]||1,+r[4]||0,+(r[5]||0),+r[6]||0,r[7]?+r[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function quantity(t){return Math.pow(10,quantityExponent(t))}function quantityExponent(t){if(t===0)return 0;var r=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,r)>=10&&r++,r}function nice(t,r){var n=quantityExponent(t),o=Math.pow(10,n),s=t/o,l;return r?s<1.5?l=1:s<2.5?l=2:s<4?l=3:s<7?l=5:l=10:s<1?l=1:s<2?l=2:s<3?l=3:s<5?l=5:l=10,t=l*o,n>=-20?+t.toFixed(n<0?-n:0):t}function quantile(t,r){var n=(t.length-1)*r+1,o=Math.floor(n),s=+t[o-1],l=n-o;return l?s+l*(t[o]-s):s}function reformIntervals(t){t.sort(function(y,b){return g(y,b,0)?-1:1});for(var r=-1/0,n=1,o=0;o<t.length;){for(var s=t[o].interval,l=t[o].close,d=0;d<2;d++)s[d]<=r&&(s[d]=r,l[d]=d?1:1-n),r=s[d],n=l[d];s[0]===s[1]&&l[0]*l[1]!==1?t.splice(o,1):o++}return t;function g(y,b,C){return y.interval[C]<b.interval[C]||y.interval[C]===b.interval[C]&&(y.close[C]-b.close[C]===(C?-1:1)||!C&&g(y,b,1))}}function numericToNumber(t){var r=parseFloat(t);return r==t&&(r!==0||!isString(t)||t.indexOf("x")<=0)?r:NaN}function isNumeric(t){return!isNaN(numericToNumber(t))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor(t,r){return r===0?t:getGreatestCommonDividor(r,t%r)}function getLeastCommonMultiple(t,r){return t==null?r:r==null?t:t*r/getGreatestCommonDividor(t,r)}var ECHARTS_PREFIX="[ECharts] ",storedLogs={},hasConsole=typeof console!="undefined"&&console.warn&&console.log;function outputLog(t,r,n){if(hasConsole){if(n){if(storedLogs[r])return;storedLogs[r]=!0}console[t](ECHARTS_PREFIX+r)}}function warn(t,r){outputLog("warn",t,r)}function throwError(t){throw new Error(t)}function interpolateNumber(t,r,n){return(r-t)*n+t}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray(t){return t instanceof Array?t:t==null?[]:[t]}function defaultEmphasis(t,r,n){if(t){t[r]=t[r]||{},t.emphasis=t.emphasis||{},t.emphasis[r]=t.emphasis[r]||{};for(var o=0,s=n.length;o<s;o++){var l=n[o];!t.emphasis[r].hasOwnProperty(l)&&t[r].hasOwnProperty(l)&&(t.emphasis[r][l]=t[r][l])}}}var TEXT_STYLE_OPTIONS=["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 getDataItemValue(t){return isObject$3(t)&&!isArray$1(t)&&!(t instanceof Date)?t.value:t}function isDataItemOption(t){return isObject$3(t)&&!(t instanceof Array)}function mappingToExists(t,r,n){var o=n==="normalMerge",s=n==="replaceMerge",l=n==="replaceAll";t=t||[],r=(r||[]).slice();var d=createHashMap();each$f(r,function(y,b){if(!isObject$3(y)){r[b]=null;return}});var g=prepareResult(t,d,n);return(o||s)&&mappingById(g,t,d,r),o&&mappingByName(g,r),o||s?mappingByIndex(g,r,s):l&&mappingInReplaceAllMode(g,r),makeIdAndName(g),g}function prepareResult(t,r,n){var o=[];if(n==="replaceAll")return o;for(var s=0;s<t.length;s++){var l=t[s];l&&l.id!=null&&r.set(l.id,s),o.push({existing:n==="replaceMerge"||isComponentIdInternal(l)?null:l,newOption:null,keyInfo:null,brandNew:null})}return o}function mappingById(t,r,n,o){each$f(o,function(s,l){if(!(!s||s.id==null)){var d=makeComparableKey(s.id),g=n.get(d);if(g!=null){var y=t[g];assert(!y.newOption,'Duplicated option on id "'+d+'".'),y.newOption=s,y.existing=r[g],o[l]=null}}})}function mappingByName(t,r){each$f(r,function(n,o){if(!(!n||n.name==null))for(var s=0;s<t.length;s++){var l=t[s].existing;if(!t[s].newOption&&l&&(l.id==null||n.id==null)&&!isComponentIdInternal(n)&&!isComponentIdInternal(l)&&keyExistAndEqual("name",l,n)){t[s].newOption=n,r[o]=null;return}}})}function mappingByIndex(t,r,n){each$f(r,function(o){if(!!o){for(var s,l=0;(s=t[l])&&(s.newOption||isComponentIdInternal(s.existing)||s.existing&&o.id!=null&&!keyExistAndEqual("id",o,s.existing));)l++;s?(s.newOption=o,s.brandNew=n):t.push({newOption:o,brandNew:n,existing:null,keyInfo:null}),l++}})}function mappingInReplaceAllMode(t,r){each$f(r,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName(t){var r=createHashMap();each$f(t,function(n){var o=n.existing;o&&r.set(o.id,n)}),each$f(t,function(n){var o=n.newOption;assert(!o||o.id==null||!r.get(o.id)||r.get(o.id)===n,"id duplicates: "+(o&&o.id)),o&&o.id!=null&&r.set(o.id,n),!n.keyInfo&&(n.keyInfo={})}),each$f(t,function(n,o){var s=n.existing,l=n.newOption,d=n.keyInfo;if(!!isObject$3(l)){if(d.name=l.name!=null?makeComparableKey(l.name):s?s.name:DUMMY_COMPONENT_NAME_PREFIX+o,s)d.id=makeComparableKey(s.id);else if(l.id!=null)d.id=makeComparableKey(l.id);else{var g=0;do d.id="\0"+d.name+"\0"+g++;while(r.get(d.id))}r.set(d.id,n)}})}function keyExistAndEqual(t,r,n){var o=convertOptionIdName(r[t],null),s=convertOptionIdName(n[t],null);return o!=null&&s!=null&&o===s}function makeComparableKey(t){return convertOptionIdName(t,"")}function convertOptionIdName(t,r){return t==null?r:isString(t)?t:isNumber(t)||isStringSafe(t)?t+"":r}function isNameSpecified(t){var r=t.name;return!!(r&&r.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal(t){return t&&t.id!=null&&makeComparableKey(t.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function makeInternalComponentId(t){return INTERNAL_COMPONENT_ID_PREFIX+t}function setComponentTypeToKeyInfo(t,r,n){each$f(t,function(o){var s=o.newOption;isObject$3(s)&&(o.keyInfo.mainType=r,o.keyInfo.subType=determineSubType(r,s,o.existing,n))})}function determineSubType(t,r,n,o){var s=r.type?r.type:n?n.subType:o.determineSubType(t,r);return s}function compressBatches(t,r){var n={},o={};return s(t||[],n),s(r||[],o,n),[l(n),l(o)];function s(d,g,y){for(var b=0,C=d.length;b<C;b++){var x=convertOptionIdName(d[b].seriesId,null);if(x==null)return;for(var S=normalizeToArray(d[b].dataIndex),_=y&&y[x],w=0,$=S.length;w<$;w++){var I=S[w];_&&_[I]?_[I]=null:(g[x]||(g[x]={}))[I]=1}}}function l(d,g){var y=[];for(var b in d)if(d.hasOwnProperty(b)&&d[b]!=null)if(g)y.push(+b);else{var C=l(d[b],!0);C.length&&y.push({seriesId:b,dataIndex:C})}return y}}function queryDataIndex(t,r){if(r.dataIndexInside!=null)return r.dataIndexInside;if(r.dataIndex!=null)return isArray$1(r.dataIndex)?map$1(r.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(r.dataIndex);if(r.name!=null)return isArray$1(r.name)?map$1(r.name,function(n){return t.indexOfName(n)}):t.indexOfName(r.name)}function makeInner(){var t="__ec_inner_"+innerUniqueIndex++;return function(r){return r[t]||(r[t]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1(t,r,n){var o=preParseFinder(r,n),s=o.mainTypeSpecified,l=o.queryOptionMap,d=o.others,g=d,y=n?n.defaultMainType:null;return!s&&y&&l.set(y,{}),l.each(function(b,C){var x=queryReferringComponents(t,C,b,{useDefault:y===C,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});g[C+"Models"]=x.models,g[C+"Model"]=x.models[0]}),g}function preParseFinder(t,r){var n;if(isString(t)){var o={};o[t+"Index"]=0,n=o}else n=t;var s=createHashMap(),l={},d=!1;return each$f(n,function(g,y){if(y==="dataIndex"||y==="dataIndexInside"){l[y]=g;return}var b=y.match(/^(\w+)(Index|Id|Name)$/)||[],C=b[1],x=(b[2]||"").toLowerCase();if(!(!C||!x||r&&r.includeMainTypes&&indexOf(r.includeMainTypes,C)<0)){d=d||!!C;var S=s.get(C)||s.set(C,{});S[x]=g}}),{mainTypeSpecified:d,queryOptionMap:s,others:l}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents(t,r,n,o){o=o||SINGLE_REFERRING;var s=n.index,l=n.id,d=n.name,g={models:null,specified:s!=null||l!=null||d!=null};if(!g.specified){var y=void 0;return g.models=o.useDefault&&(y=t.getComponent(r))?[y]:[],g}return s==="none"||s===!1?(assert(o.enableNone,'`"none"` or `false` is not a valid value on index option.'),g.models=[],g):(s==="all"&&(assert(o.enableAll,'`"all"` is not a valid value on index option.'),s=l=d=null),g.models=t.queryComponents({mainType:r,index:s,id:l,name:d}),g)}function setAttribute(t,r,n){t.setAttribute?t.setAttribute(r,n):t[r]=n}function getAttribute(t,r){return t.getAttribute?t.getAttribute(r):t[r]}function getTooltipRenderMode(t){return t==="auto"?env$1.domSupported?"html":"richText":t||"html"}function groupData(t,r){var n=createHashMap(),o=[];return each$f(t,function(s){var l=r(s);(n.get(l)||(o.push(l),n.set(l,[]))).push(s)}),{keys:o,buckets:n}}function interpolateRawValues(t,r,n,o,s){var l=r==null||r==="auto";if(o==null)return o;if(isNumber(o)){var d=interpolateNumber(n||0,o,s);return round$3(d,l?Math.max(getPrecision(n||0),getPrecision(o)):r)}else{if(isString(o))return s<1?n:o;for(var g=[],y=n,b=o,C=Math.max(y?y.length:0,b.length),x=0;x<C;++x){var S=t.getDimensionInfo(x);if(S&&S.type==="ordinal")g[x]=(s<1&&y?y:b)[x];else{var _=y&&y[x]?y[x]:0,w=b[x],d=interpolateNumber(_,w,s);g[x]=round$3(d,l?Math.max(getPrecision(_),getPrecision(w)):r)}}return g}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType(t){var r={main:"",sub:""};if(t){var n=t.split(TYPE_DELIMITER);r.main=n[0]||"",r.sub=n[1]||""}return r}function checkClassType(t){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function isExtendedClass(t){return!!(t&&t[IS_EXTENDED_CLASS])}function enableClassExtend(t,r){t.$constructor=t,t.extend=function(n){var o=this,s;return isESClass(o)?s=function(l){__extends$1(d,l);function d(){return l.apply(this,arguments)||this}return d}(o):(s=function(){(n.$constructor||o).apply(this,arguments)},inherits(s,this)),extend(s.prototype,n),s[IS_EXTENDED_CLASS]=!0,s.extend=this.extend,s.superCall=superCall,s.superApply=superApply,s.superClass=o,s}}function isESClass(t){return isFunction(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function mountExtend(t,r){t.extend=r.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck(t){var r=["__\0is_clz",classBase++].join("_");t.prototype[r]=!0,t.isInstance=function(n){return!!(n&&n[r])}}function superCall(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];return this.superClass.prototype[r].apply(t,n)}function superApply(t,r,n){return this.superClass.prototype[r].apply(t,n)}function enableClassManagement(t){var r={};t.registerClass=function(o){var s=o.type||o.prototype.type;if(s){checkClassType(s),o.prototype.type=s;var l=parseClassType(s);if(!l.sub)r[l.main]=o;else if(l.sub!==IS_CONTAINER){var d=n(l);d[l.sub]=o}}return o},t.getClass=function(o,s,l){var d=r[o];if(d&&d[IS_CONTAINER]&&(d=s?d[s]:null),l&&!d)throw new Error(s?"Component "+o+"."+(s||"")+" is used but not imported.":o+".type should be specified.");return d},t.getClassesByMainType=function(o){var s=parseClassType(o),l=[],d=r[s.main];return d&&d[IS_CONTAINER]?each$f(d,function(g,y){y!==IS_CONTAINER&&l.push(g)}):l.push(d),l},t.hasClass=function(o){var s=parseClassType(o);return!!r[s.main]},t.getAllClassMainTypes=function(){var o=[];return each$f(r,function(s,l){o.push(l)}),o},t.hasSubTypes=function(o){var s=parseClassType(o),l=r[s.main];return l&&l[IS_CONTAINER]};function n(o){var s=r[o.main];return(!s||!s[IS_CONTAINER])&&(s=r[o.main]={},s[IS_CONTAINER]=!0),s}}function makeStyleMapper(t,r){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return r=r||!1,function(o,s,l){for(var d={},g=0;g<t.length;g++){var y=t[g][1];if(!(s&&indexOf(s,y)>=0||l&&indexOf(l,y)<0)){var b=o.getShallow(y,r);b!=null&&(d[t[g][0]]=b)}}return d}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function t(){}return t.prototype.getAreaStyle=function(r,n){return getAreaStyle(this,r,n)},t}(),globalImageCache=new LRU$1(50);function findExistImage(t){if(typeof t=="string"){var r=globalImageCache.get(t);return r&&r.image}else return t}function createOrUpdateImage(t,r,n,o,s){if(t)if(typeof t=="string"){if(r&&r.__zrImageSrc===t||!n)return r;var l=globalImageCache.get(t),d={hostEl:n,cb:o,cbPayload:s};return l?(r=l.image,!isImageReady(r)&&l.pending.push(d)):(r=platformApi.loadImage(t,imageOnLoad,imageOnLoad),r.__zrImageSrc=t,globalImageCache.put(t,r.__cachedImgObj={image:r,pending:[d]})),r}else return t;else return r}function imageOnLoad(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var r=0;r<t.pending.length;r++){var n=t.pending[r],o=n.cb;o&&o(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function isImageReady(t){return t&&t.width&&t.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText(t,r,n,o,s){if(!r)return"";var l=(t+"").split(`
|
|
`);s=prepareTruncateOptions(r,n,o,s);for(var d=0,g=l.length;d<g;d++)l[d]=truncateSingleLine(l[d],s);return l.join(`
|
|
`)}function prepareTruncateOptions(t,r,n,o){o=o||{};var s=extend({},o);s.font=r,n=retrieve2(n,"..."),s.maxIterations=retrieve2(o.maxIterations,2);var l=s.minChar=retrieve2(o.minChar,0);s.cnCharWidth=getWidth("\u56FD",r);var d=s.ascCharWidth=getWidth("a",r);s.placeholder=retrieve2(o.placeholder,"");for(var g=t=Math.max(0,t-1),y=0;y<l&&g>=d;y++)g-=d;var b=getWidth(n,r);return b>g&&(n="",b=0),g=t-b,s.ellipsis=n,s.ellipsisWidth=b,s.contentWidth=g,s.containerWidth=t,s}function truncateSingleLine(t,r){var n=r.containerWidth,o=r.font,s=r.contentWidth;if(!n)return"";var l=getWidth(t,o);if(l<=n)return t;for(var d=0;;d++){if(l<=s||d>=r.maxIterations){t+=r.ellipsis;break}var g=d===0?estimateLength(t,s,r.ascCharWidth,r.cnCharWidth):l>0?Math.floor(t.length*s/l):0;t=t.substr(0,g),l=getWidth(t,o)}return t===""&&(t=r.placeholder),t}function estimateLength(t,r,n,o){for(var s=0,l=0,d=t.length;l<d&&s<r;l++){var g=t.charCodeAt(l);s+=0<=g&&g<=127?n:o}return l}function parsePlainText(t,r){t!=null&&(t+="");var n=r.overflow,o=r.padding,s=r.font,l=n==="truncate",d=getLineHeight(s),g=retrieve2(r.lineHeight,d),y=!!r.backgroundColor,b=r.lineOverflow==="truncate",C=r.width,x;C!=null&&(n==="break"||n==="breakAll")?x=t?wrapText(t,r.font,C,n==="breakAll",0).lines:[]:x=t?t.split(`
|
|
`):[];var S=x.length*g,_=retrieve2(r.height,S);if(S>_&&b){var w=Math.floor(_/g);x=x.slice(0,w)}if(t&&l&&C!=null)for(var $=prepareTruncateOptions(C,s,r.ellipsis,{minChar:r.truncateMinChar,placeholder:r.placeholder}),I=0;I<x.length;I++)x[I]=truncateSingleLine(x[I],$);for(var B=_,R=0,I=0;I<x.length;I++)R=Math.max(getWidth(x[I],s),R);C==null&&(C=R);var P=R;return o&&(B+=o[0]+o[2],P+=o[1]+o[3],C+=o[1]+o[3]),y&&(P=C),{lines:x,height:_,outerWidth:P,outerHeight:B,lineHeight:g,calculatedLineHeight:d,contentWidth:R,contentHeight:S,width:C}}var RichTextToken=function(){function t(){}return t}(),RichTextLine=function(){function t(r){this.tokens=[],r&&(this.tokens=r)}return t}(),RichTextContentBlock=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function parseRichText(t,r){var n=new RichTextContentBlock;if(t!=null&&(t+=""),!t)return n;for(var o=r.width,s=r.height,l=r.overflow,d=(l==="break"||l==="breakAll")&&o!=null?{width:o,accumWidth:0,breakAll:l==="breakAll"}:null,g=STYLE_REG.lastIndex=0,y;(y=STYLE_REG.exec(t))!=null;){var b=y.index;b>g&&pushTokens(n,t.substring(g,b),r,d),pushTokens(n,y[2],r,d,y[1]),g=STYLE_REG.lastIndex}g<t.length&&pushTokens(n,t.substring(g,t.length),r,d);var C=[],x=0,S=0,_=r.padding,w=l==="truncate",$=r.lineOverflow==="truncate";function I(te,oe,ae){te.width=oe,te.lineHeight=ae,x+=ae,S=Math.max(S,oe)}e:for(var B=0;B<n.lines.length;B++){for(var R=n.lines[B],P=0,M=0,O=0;O<R.tokens.length;O++){var D=R.tokens[O],N=D.styleName&&r.rich[D.styleName]||{},H=D.textPadding=N.padding,Q=H?H[1]+H[3]:0,G=D.font=N.font||r.font;D.contentHeight=getLineHeight(G);var K=retrieve2(N.height,D.contentHeight);if(D.innerHeight=K,H&&(K+=H[0]+H[2]),D.height=K,D.lineHeight=retrieve3(N.lineHeight,r.lineHeight,K),D.align=N&&N.align||r.align,D.verticalAlign=N&&N.verticalAlign||"middle",$&&s!=null&&x+D.lineHeight>s){O>0?(R.tokens=R.tokens.slice(0,O),I(R,M,P),n.lines=n.lines.slice(0,B+1)):n.lines=n.lines.slice(0,B);break e}var W=N.width,j=W==null||W==="auto";if(typeof W=="string"&&W.charAt(W.length-1)==="%")D.percentWidth=W,C.push(D),D.contentWidth=getWidth(D.text,G);else{if(j){var Y=N.backgroundColor,q=Y&&Y.image;q&&(q=findExistImage(q),isImageReady(q)&&(D.width=Math.max(D.width,q.width*K/q.height)))}var X=w&&o!=null?o-M:null;X!=null&&X<D.width?!j||X<Q?(D.text="",D.width=D.contentWidth=0):(D.text=truncateText(D.text,X-Q,G,r.ellipsis,{minChar:r.truncateMinChar}),D.width=D.contentWidth=getWidth(D.text,G)):D.contentWidth=getWidth(D.text,G)}D.width+=Q,M+=D.width,N&&(P=Math.max(P,D.lineHeight))}I(R,M,P)}n.outerWidth=n.width=retrieve2(o,S),n.outerHeight=n.height=retrieve2(s,x),n.contentHeight=x,n.contentWidth=S,_&&(n.outerWidth+=_[1]+_[3],n.outerHeight+=_[0]+_[2]);for(var B=0;B<C.length;B++){var D=C[B],re=D.percentWidth;D.width=parseInt(re,10)/100*n.width}return n}function pushTokens(t,r,n,o,s){var l=r==="",d=s&&n.rich[s]||{},g=t.lines,y=d.font||n.font,b=!1,C,x;if(o){var S=d.padding,_=S?S[1]+S[3]:0;if(d.width!=null&&d.width!=="auto"){var w=parsePercent$1(d.width,o.width)+_;g.length>0&&w+o.accumWidth>o.width&&(C=r.split(`
|
|
`),b=!0),o.accumWidth=w}else{var $=wrapText(r,y,o.width,o.breakAll,o.accumWidth);o.accumWidth=$.accumWidth+_,x=$.linesWidths,C=$.lines}}else C=r.split(`
|
|
`);for(var I=0;I<C.length;I++){var B=C[I],R=new RichTextToken;if(R.styleName=s,R.text=B,R.isLineHolder=!B&&!l,typeof d.width=="number"?R.width=d.width:R.width=x?x[I]:getWidth(B,y),!I&&!b){var P=(g[g.length-1]||(g[0]=new RichTextLine)).tokens,M=P.length;M===1&&P[0].isLineHolder?P[0]=R:(B||!M||l)&&P.push(R)}else g.push(new RichTextLine([R]))}}function isLatin(t){var r=t.charCodeAt(0);return r>=33&&r<=383}var breakCharMap=reduce(",&?/;] ".split(""),function(t,r){return t[r]=!0,t},{});function isWordBreakChar(t){return isLatin(t)?!!breakCharMap[t]:!0}function wrapText(t,r,n,o,s){for(var l=[],d=[],g="",y="",b=0,C=0,x=0;x<t.length;x++){var S=t.charAt(x);if(S===`
|
|
`){y&&(g+=y,C+=b),l.push(g),d.push(C),g="",y="",b=0,C=0;continue}var _=getWidth(S,r),w=o?!1:!isWordBreakChar(S);if(l.length?C+_>n:s+C+_>n){C?(g||y)&&(w?(g||(g=y,y="",b=0,C=b),l.push(g),d.push(C-b),y+=S,b+=_,g="",C=b):(y&&(g+=y,y="",b=0),l.push(g),d.push(C),g=S,C=_)):w?(l.push(y),d.push(b),y=S,b=_):(l.push(S),d.push(_));continue}C+=_,w?(y+=S,b+=_):(y&&(g+=y,y="",b=0),g+=S)}return!l.length&&!g&&(g=t,y="",b=0),y&&(g+=y),g&&(l.push(g),d.push(C)),l.length===1&&(C+=s),{accumWidth:C,lines:l,linesWidths:d}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype._init=function(n){for(var o=keys(n),s=0;s<o.length;s++){var l=o[s];l==="style"?this.useStyle(n[l]):t.prototype.attrKV.call(this,l,n[l])}this.style||this.useStyle({})},r.prototype.beforeBrush=function(){},r.prototype.afterBrush=function(){},r.prototype.innerBeforeBrush=function(){},r.prototype.innerAfterBrush=function(){},r.prototype.shouldBePainted=function(n,o,s,l){var d=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,n,o)||d&&!d[0]&&!d[3])return!1;if(s&&this.__clipPaths){for(var g=0;g<this.__clipPaths.length;++g)if(this.__clipPaths[g].isZeroArea())return!1}if(l&&this.parent)for(var y=this.parent;y;){if(y.ignore)return!1;y=y.parent}return!0},r.prototype.contain=function(n,o){return this.rectContain(n,o)},r.prototype.traverse=function(n,o){n.call(o,this)},r.prototype.rectContain=function(n,o){var s=this.transformCoordToLocal(n,o),l=this.getBoundingRect();return l.contain(s[0],s[1])},r.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var o=this.transform,s=this.getBoundingRect(),l=this.style,d=l.shadowBlur||0,g=l.shadowOffsetX||0,y=l.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),o?BoundingRect$1.applyTransform(n,s,o):n.copy(s),(d||g||y)&&(n.width+=d*2+Math.abs(g),n.height+=d*2+Math.abs(y),n.x=Math.min(n.x,n.x+g-d),n.y=Math.min(n.y,n.y+y-d));var b=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-b),n.y=Math.floor(n.y-b),n.width=Math.ceil(n.width+1+b*2),n.height=Math.ceil(n.height+1+b*2))}return n},r.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},r.prototype.getPrevPaintRect=function(){return this._prevPaintRect},r.prototype.animateStyle=function(n){return this.animate("style",n)},r.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},r.prototype.attrKV=function(n,o){n!=="style"?t.prototype.attrKV.call(this,n,o):this.style?this.setStyle(o):this.useStyle(o)},r.prototype.setStyle=function(n,o){return typeof n=="string"?this.style[n]=o:extend(this.style,n),this.dirtyStyle(),this},r.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},r.prototype.dirty=function(){this.dirtyStyle()},r.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},r.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},r.prototype.createStyle=function(n){return createObject(DEFAULT_COMMON_STYLE,n)},r.prototype.useStyle=function(n){n[STYLE_MAGIC_KEY]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},r.prototype.isStyleObject=function(n){return n[STYLE_MAGIC_KEY]},r.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var o=this._normalState;n.style&&!o.style&&(o.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,o,PRIMARY_STATES_KEYS)},r.prototype._applyStateObj=function(n,o,s,l,d,g){t.prototype._applyStateObj.call(this,n,o,s,l,d,g);var y=!(o&&l),b;if(o&&o.style?d?l?b=o.style:(b=this._mergeStyle(this.createStyle(),s.style),this._mergeStyle(b,o.style)):(b=this._mergeStyle(this.createStyle(),l?this.style:s.style),this._mergeStyle(b,o.style)):y&&(b=s.style),b)if(d){var C=this.style;if(this.style=this.createStyle(y?{}:C),y)for(var x=keys(C),S=0;S<x.length;S++){var _=x[S];_ in b&&(b[_]=b[_],this.style[_]=C[_])}for(var w=keys(b),S=0;S<w.length;S++){var _=w[S];this.style[_]=this.style[_]}this._transitionState(n,{style:b},g,this.getAnimationStyleProps())}else this.useStyle(b);for(var $=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,S=0;S<$.length;S++){var _=$[S];o&&o[_]!=null?this[_]=o[_]:y&&s[_]!=null&&(this[_]=s[_])}},r.prototype._mergeStates=function(n){for(var o=t.prototype._mergeStates.call(this,n),s,l=0;l<n.length;l++){var d=n[l];d.style&&(s=s||{},this._mergeStyle(s,d.style))}return s&&(o.style=s),o},r.prototype._mergeStyle=function(n,o){return extend(n,o),n},r.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},r.initDefaultProps=function(){var n=r.prototype;n.type="displayable",n.invisible=!1,n.z=0,n.z2=0,n.zlevel=0,n.culling=!1,n.cursor="pointer",n.rectHover=!1,n.incremental=!1,n._rect=null,n.dirtyRectTolerance=0,n.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),r}(Element$2),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled(t,r,n){return tmpRect.copy(t.getBoundingRect()),t.transform&&tmpRect.applyTransform(t.transform),viewRect.width=r,viewRect.height=n,!tmpRect.intersect(viewRect)}var Displayable$1=Displayable,mathMin$9=Math.min,mathMax$9=Math.max,mathSin$4=Math.sin,mathCos$4=Math.cos,PI2$8=Math.PI*2,start=create$2(),end=create$2(),extremity=create$2();function fromPoints(t,r,n){if(t.length!==0){for(var o=t[0],s=o[0],l=o[0],d=o[1],g=o[1],y=1;y<t.length;y++)o=t[y],s=mathMin$9(s,o[0]),l=mathMax$9(l,o[0]),d=mathMin$9(d,o[1]),g=mathMax$9(g,o[1]);r[0]=s,r[1]=d,n[0]=l,n[1]=g}}function fromLine(t,r,n,o,s,l){s[0]=mathMin$9(t,n),s[1]=mathMin$9(r,o),l[0]=mathMax$9(t,n),l[1]=mathMax$9(r,o)}var xDim=[],yDim=[];function fromCubic(t,r,n,o,s,l,d,g,y,b){var C=cubicExtrema,x=cubicAt,S=C(t,n,s,d,xDim);y[0]=1/0,y[1]=1/0,b[0]=-1/0,b[1]=-1/0;for(var _=0;_<S;_++){var w=x(t,n,s,d,xDim[_]);y[0]=mathMin$9(w,y[0]),b[0]=mathMax$9(w,b[0])}S=C(r,o,l,g,yDim);for(var _=0;_<S;_++){var $=x(r,o,l,g,yDim[_]);y[1]=mathMin$9($,y[1]),b[1]=mathMax$9($,b[1])}y[0]=mathMin$9(t,y[0]),b[0]=mathMax$9(t,b[0]),y[0]=mathMin$9(d,y[0]),b[0]=mathMax$9(d,b[0]),y[1]=mathMin$9(r,y[1]),b[1]=mathMax$9(r,b[1]),y[1]=mathMin$9(g,y[1]),b[1]=mathMax$9(g,b[1])}function fromQuadratic(t,r,n,o,s,l,d,g){var y=quadraticExtremum,b=quadraticAt$1,C=mathMax$9(mathMin$9(y(t,n,s),1),0),x=mathMax$9(mathMin$9(y(r,o,l),1),0),S=b(t,n,s,C),_=b(r,o,l,x);d[0]=mathMin$9(t,s,S),d[1]=mathMin$9(r,l,_),g[0]=mathMax$9(t,s,S),g[1]=mathMax$9(r,l,_)}function fromArc(t,r,n,o,s,l,d,g,y){var b=min$1,C=max$1,x=Math.abs(s-l);if(x%PI2$8<1e-4&&x>1e-4){g[0]=t-n,g[1]=r-o,y[0]=t+n,y[1]=r+o;return}if(start[0]=mathCos$4(s)*n+t,start[1]=mathSin$4(s)*o+r,end[0]=mathCos$4(l)*n+t,end[1]=mathSin$4(l)*o+r,b(g,start,end),C(y,start,end),s=s%PI2$8,s<0&&(s=s+PI2$8),l=l%PI2$8,l<0&&(l=l+PI2$8),s>l&&!d?l+=PI2$8:s<l&&d&&(s+=PI2$8),d){var S=l;l=s,s=S}for(var _=0;_<l;_+=Math.PI/2)_>s&&(extremity[0]=mathCos$4(_)*n+t,extremity[1]=mathSin$4(_)*o+r,b(g,extremity,g),C(y,extremity,y))}var CMD$4={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$8=Math.min,mathMax$8=Math.max,mathCos$3=Math.cos,mathSin$3=Math.sin,mathAbs$2=Math.abs,PI$8=Math.PI,PI2$7=PI$8*2,hasTypedArray=typeof Float32Array!="undefined",tmpAngles=[];function modPI2(t){var r=Math.round(t/PI$8*1e8)/1e8;return r%2*PI$8}function normalizeArcAngles(t,r){var n=modPI2(t[0]);n<0&&(n+=PI2$7);var o=n-t[0],s=t[1];s+=o,!r&&s-n>=PI2$7?s=n+PI2$7:r&&n-s>=PI2$7?s=n-PI2$7:!r&&n>s?s=n+(PI2$7-modPI2(n-s)):r&&n<s&&(s=n-(PI2$7-modPI2(s-n))),t[0]=n,t[1]=s}var PathProxy=function(){function t(r){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,r&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(r,n,o){o=o||0,o>0&&(this._ux=mathAbs$2(o/devicePixelRatio$1/r)||0,this._uy=mathAbs$2(o/devicePixelRatio$1/n)||0)},t.prototype.setDPR=function(r){this.dpr=r},t.prototype.setContext=function(r){this._ctx=r},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(r,n){return this._drawPendingPt(),this.addData(CMD$4.M,r,n),this._ctx&&this._ctx.moveTo(r,n),this._x0=r,this._y0=n,this._xi=r,this._yi=n,this},t.prototype.lineTo=function(r,n){var o=mathAbs$2(r-this._xi),s=mathAbs$2(n-this._yi),l=o>this._ux||s>this._uy;if(this.addData(CMD$4.L,r,n),this._ctx&&l&&this._ctx.lineTo(r,n),l)this._xi=r,this._yi=n,this._pendingPtDist=0;else{var d=o*o+s*s;d>this._pendingPtDist&&(this._pendingPtX=r,this._pendingPtY=n,this._pendingPtDist=d)}return this},t.prototype.bezierCurveTo=function(r,n,o,s,l,d){return this._drawPendingPt(),this.addData(CMD$4.C,r,n,o,s,l,d),this._ctx&&this._ctx.bezierCurveTo(r,n,o,s,l,d),this._xi=l,this._yi=d,this},t.prototype.quadraticCurveTo=function(r,n,o,s){return this._drawPendingPt(),this.addData(CMD$4.Q,r,n,o,s),this._ctx&&this._ctx.quadraticCurveTo(r,n,o,s),this._xi=o,this._yi=s,this},t.prototype.arc=function(r,n,o,s,l,d){this._drawPendingPt(),tmpAngles[0]=s,tmpAngles[1]=l,normalizeArcAngles(tmpAngles,d),s=tmpAngles[0],l=tmpAngles[1];var g=l-s;return this.addData(CMD$4.A,r,n,o,o,s,g,0,d?0:1),this._ctx&&this._ctx.arc(r,n,o,s,l,d),this._xi=mathCos$3(l)*o+r,this._yi=mathSin$3(l)*o+n,this},t.prototype.arcTo=function(r,n,o,s,l){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(r,n,o,s,l),this},t.prototype.rect=function(r,n,o,s){return this._drawPendingPt(),this._ctx&&this._ctx.rect(r,n,o,s),this.addData(CMD$4.R,r,n,o,s),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$4.Z);var r=this._ctx,n=this._x0,o=this._y0;return r&&r.closePath(),this._xi=n,this._yi=o,this},t.prototype.fill=function(r){r&&r.fill(),this.toStatic()},t.prototype.stroke=function(r){r&&r.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(r){var n=r.length;!(this.data&&this.data.length===n)&&hasTypedArray&&(this.data=new Float32Array(n));for(var o=0;o<n;o++)this.data[o]=r[o];this._len=n},t.prototype.appendPath=function(r){r instanceof Array||(r=[r]);for(var n=r.length,o=0,s=this._len,l=0;l<n;l++)o+=r[l].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(s+o));for(var l=0;l<n;l++)for(var d=r[l].data,g=0;g<d.length;g++)this.data[s++]=d[g];this._len=s},t.prototype.addData=function(r,n,o,s,l,d,g,y,b){if(!!this._saveData){var C=this.data;this._len+arguments.length>C.length&&(this._expandData(),C=this.data);for(var x=0;x<arguments.length;x++)C[this._len++]=arguments[x]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var r=[],n=0;n<this._len;n++)r[n]=this.data[n];this.data=r}},t.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var r=this.data;r instanceof Array&&(r.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(r)))}},t.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var r=this.data,n=0,o=0,s=0,l=0,d;for(d=0;d<this._len;){var g=r[d++],y=d===1;switch(y&&(n=r[d],o=r[d+1],s=n,l=o),g){case CMD$4.M:n=s=r[d++],o=l=r[d++],min2[0]=s,min2[1]=l,max2[0]=s,max2[1]=l;break;case CMD$4.L:fromLine(n,o,r[d],r[d+1],min2,max2),n=r[d++],o=r[d++];break;case CMD$4.C:fromCubic(n,o,r[d++],r[d++],r[d++],r[d++],r[d],r[d+1],min2,max2),n=r[d++],o=r[d++];break;case CMD$4.Q:fromQuadratic(n,o,r[d++],r[d++],r[d],r[d+1],min2,max2),n=r[d++],o=r[d++];break;case CMD$4.A:var b=r[d++],C=r[d++],x=r[d++],S=r[d++],_=r[d++],w=r[d++]+_;d+=1;var $=!r[d++];y&&(s=mathCos$3(_)*x+b,l=mathSin$3(_)*S+C),fromArc(b,C,x,S,_,w,$,min2,max2),n=mathCos$3(w)*x+b,o=mathSin$3(w)*S+C;break;case CMD$4.R:s=n=r[d++],l=o=r[d++];var I=r[d++],B=r[d++];fromLine(s,l,s+I,l+B,min2,max2);break;case CMD$4.Z:n=s,o=l;break}min$1(min,min,min2),max$1(max,max,max2)}return d===0&&(min[0]=min[1]=max[0]=max[1]=0),new BoundingRect$1(min[0],min[1],max[0]-min[0],max[1]-min[1])},t.prototype._calculateLength=function(){var r=this.data,n=this._len,o=this._ux,s=this._uy,l=0,d=0,g=0,y=0;this._pathSegLen||(this._pathSegLen=[]);for(var b=this._pathSegLen,C=0,x=0,S=0;S<n;){var _=r[S++],w=S===1;w&&(l=r[S],d=r[S+1],g=l,y=d);var $=-1;switch(_){case CMD$4.M:l=g=r[S++],d=y=r[S++];break;case CMD$4.L:{var I=r[S++],B=r[S++],R=I-l,P=B-d;(mathAbs$2(R)>o||mathAbs$2(P)>s||S===n-1)&&($=Math.sqrt(R*R+P*P),l=I,d=B);break}case CMD$4.C:{var M=r[S++],O=r[S++],I=r[S++],B=r[S++],D=r[S++],N=r[S++];$=cubicLength(l,d,M,O,I,B,D,N,10),l=D,d=N;break}case CMD$4.Q:{var M=r[S++],O=r[S++],I=r[S++],B=r[S++];$=quadraticLength(l,d,M,O,I,B,10),l=I,d=B;break}case CMD$4.A:var H=r[S++],Q=r[S++],G=r[S++],K=r[S++],W=r[S++],j=r[S++],Y=j+W;S+=1,r[S++],w&&(g=mathCos$3(W)*G+H,y=mathSin$3(W)*K+Q),$=mathMax$8(G,K)*mathMin$8(PI2$7,Math.abs(j)),l=mathCos$3(Y)*G+H,d=mathSin$3(Y)*K+Q;break;case CMD$4.R:{g=l=r[S++],y=d=r[S++];var q=r[S++],X=r[S++];$=q*2+X*2;break}case CMD$4.Z:{var R=g-l,P=y-d;$=Math.sqrt(R*R+P*P),l=g,d=y;break}}$>=0&&(b[x++]=$,C+=$)}return this._pathLen=C,C},t.prototype.rebuildPath=function(r,n){var o=this.data,s=this._ux,l=this._uy,d=this._len,g,y,b,C,x,S,_=n<1,w,$,I=0,B=0,R,P=0,M,O;if(_&&(this._pathSegLen||this._calculateLength(),w=this._pathSegLen,$=this._pathLen,R=n*$,!R))return;e:for(var D=0;D<d;){var N=o[D++],H=D===1;switch(H&&(b=o[D],C=o[D+1],g=b,y=C),N!==CMD$4.L&&P>0&&(r.lineTo(M,O),P=0),N){case CMD$4.M:g=b=o[D++],y=C=o[D++],r.moveTo(b,C);break;case CMD$4.L:{x=o[D++],S=o[D++];var Q=mathAbs$2(x-b),G=mathAbs$2(S-C);if(Q>s||G>l){if(_){var K=w[B++];if(I+K>R){var W=(R-I)/K;r.lineTo(b*(1-W)+x*W,C*(1-W)+S*W);break e}I+=K}r.lineTo(x,S),b=x,C=S,P=0}else{var j=Q*Q+G*G;j>P&&(M=x,O=S,P=j)}break}case CMD$4.C:{var Y=o[D++],q=o[D++],X=o[D++],re=o[D++],te=o[D++],oe=o[D++];if(_){var K=w[B++];if(I+K>R){var W=(R-I)/K;cubicSubdivide(b,Y,X,te,W,tmpOutX),cubicSubdivide(C,q,re,oe,W,tmpOutY),r.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}I+=K}r.bezierCurveTo(Y,q,X,re,te,oe),b=te,C=oe;break}case CMD$4.Q:{var Y=o[D++],q=o[D++],X=o[D++],re=o[D++];if(_){var K=w[B++];if(I+K>R){var W=(R-I)/K;quadraticSubdivide(b,Y,X,W,tmpOutX),quadraticSubdivide(C,q,re,W,tmpOutY),r.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}I+=K}r.quadraticCurveTo(Y,q,X,re),b=X,C=re;break}case CMD$4.A:var ae=o[D++],se=o[D++],ue=o[D++],Ae=o[D++],pe=o[D++],he=o[D++],Ce=o[D++],ve=!o[D++],ye=ue>Ae?ue:Ae,Be=mathAbs$2(ue-Ae)>.001,Se=pe+he,Ee=!1;if(_){var K=w[B++];I+K>R&&(Se=pe+he*(R-I)/K,Ee=!0),I+=K}if(Be&&r.ellipse?r.ellipse(ae,se,ue,Ae,Ce,pe,Se,ve):r.arc(ae,se,ye,pe,Se,ve),Ee)break e;H&&(g=mathCos$3(pe)*ue+ae,y=mathSin$3(pe)*Ae+se),b=mathCos$3(Se)*ue+ae,C=mathSin$3(Se)*Ae+se;break;case CMD$4.R:g=b=o[D],y=C=o[D+1],x=o[D++],S=o[D++];var ie=o[D++],ee=o[D++];if(_){var K=w[B++];if(I+K>R){var J=R-I;r.moveTo(x,S),r.lineTo(x+mathMin$8(J,ie),S),J-=ie,J>0&&r.lineTo(x+ie,S+mathMin$8(J,ee)),J-=ee,J>0&&r.lineTo(x+mathMax$8(ie-J,0),S+ee),J-=ie,J>0&&r.lineTo(x,S+mathMax$8(ee-J,0));break e}I+=K}r.rect(x,S,ie,ee);break;case CMD$4.Z:if(_){var K=w[B++];if(I+K>R){var W=(R-I)/K;r.lineTo(b*(1-W)+g*W,C*(1-W)+y*W);break e}I+=K}r.closePath(),b=g,C=y}}},t.prototype.clone=function(){var r=new t,n=this.data;return r.data=n.slice?n.slice():Array.prototype.slice.call(n),r._len=this._len,r},t.CMD=CMD$4,t.initDefaultProps=function(){var r=t.prototype;r._saveData=!0,r._ux=0,r._uy=0,r._pendingPtDist=0,r._version=0}(),t}(),PathProxy$1=PathProxy;function containStroke$4(t,r,n,o,s,l,d){if(s===0)return!1;var g=s,y=0,b=t;if(d>r+g&&d>o+g||d<r-g&&d<o-g||l>t+g&&l>n+g||l<t-g&&l<n-g)return!1;if(t!==n)y=(r-o)/(t-n),b=(t*o-n*r)/(t-n);else return Math.abs(l-t)<=g/2;var C=y*l-d+b,x=C*C/(y*y+1);return x<=g/2*g/2}function containStroke$3(t,r,n,o,s,l,d,g,y,b,C){if(y===0)return!1;var x=y;if(C>r+x&&C>o+x&&C>l+x&&C>g+x||C<r-x&&C<o-x&&C<l-x&&C<g-x||b>t+x&&b>n+x&&b>s+x&&b>d+x||b<t-x&&b<n-x&&b<s-x&&b<d-x)return!1;var S=cubicProjectPoint(t,r,n,o,s,l,d,g,b,C,null);return S<=x/2}function containStroke$2(t,r,n,o,s,l,d,g,y){if(d===0)return!1;var b=d;if(y>r+b&&y>o+b&&y>l+b||y<r-b&&y<o-b&&y<l-b||g>t+b&&g>n+b&&g>s+b||g<t-b&&g<n-b&&g<s-b)return!1;var C=quadraticProjectPoint(t,r,n,o,s,l,g,y,null);return C<=b/2}var PI2$6=Math.PI*2;function normalizeRadian(t){return t%=PI2$6,t<0&&(t+=PI2$6),t}var PI2$5=Math.PI*2;function containStroke$1(t,r,n,o,s,l,d,g,y){if(d===0)return!1;var b=d;g-=t,y-=r;var C=Math.sqrt(g*g+y*y);if(C-b>n||C+b<n)return!1;if(Math.abs(o-s)%PI2$5<1e-4)return!0;if(l){var x=o;o=normalizeRadian(s),s=normalizeRadian(x)}else o=normalizeRadian(o),s=normalizeRadian(s);o>s&&(s+=PI2$5);var S=Math.atan2(y,g);return S<0&&(S+=PI2$5),S>=o&&S<=s||S+PI2$5>=o&&S+PI2$5<=s}function windingLine(t,r,n,o,s,l){if(l>r&&l>o||l<r&&l<o||o===r)return 0;var d=(l-r)/(o-r),g=o<r?1:-1;(d===1||d===0)&&(g=o<r?.5:-.5);var y=d*(n-t)+t;return y===s?1/0:y>s?g:0}var CMD$3=PathProxy$1.CMD,PI2$4=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1(t,r){return Math.abs(t-r)<EPSILON$1}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var t=extrema[0];extrema[0]=extrema[1],extrema[1]=t}function windingCubic(t,r,n,o,s,l,d,g,y,b){if(b>r&&b>o&&b>l&&b>g||b<r&&b<o&&b<l&&b<g)return 0;var C=cubicRootAt(r,o,l,g,b,roots);if(C===0)return 0;for(var x=0,S=-1,_=void 0,w=void 0,$=0;$<C;$++){var I=roots[$],B=I===0||I===1?.5:1,R=cubicAt(t,n,s,d,I);R<y||(S<0&&(S=cubicExtrema(r,o,l,g,extrema),extrema[1]<extrema[0]&&S>1&&swapExtrema(),_=cubicAt(r,o,l,g,extrema[0]),S>1&&(w=cubicAt(r,o,l,g,extrema[1]))),S===2?I<extrema[0]?x+=_<r?B:-B:I<extrema[1]?x+=w<_?B:-B:x+=g<w?B:-B:I<extrema[0]?x+=_<r?B:-B:x+=g<_?B:-B)}return x}function windingQuadratic(t,r,n,o,s,l,d,g){if(g>r&&g>o&&g>l||g<r&&g<o&&g<l)return 0;var y=quadraticRootAt(r,o,l,g,roots);if(y===0)return 0;var b=quadraticExtremum(r,o,l);if(b>=0&&b<=1){for(var C=0,x=quadraticAt$1(r,o,l,b),S=0;S<y;S++){var _=roots[S]===0||roots[S]===1?.5:1,w=quadraticAt$1(t,n,s,roots[S]);w<d||(roots[S]<b?C+=x<r?_:-_:C+=l<x?_:-_)}return C}else{var _=roots[0]===0||roots[0]===1?.5:1,w=quadraticAt$1(t,n,s,roots[0]);return w<d?0:l<r?_:-_}}function windingArc(t,r,n,o,s,l,d,g){if(g-=r,g>n||g<-n)return 0;var y=Math.sqrt(n*n-g*g);roots[0]=-y,roots[1]=y;var b=Math.abs(o-s);if(b<1e-4)return 0;if(b>=PI2$4-1e-4){o=0,s=PI2$4;var C=l?1:-1;return d>=roots[0]+t&&d<=roots[1]+t?C:0}if(o>s){var x=o;o=s,s=x}o<0&&(o+=PI2$4,s+=PI2$4);for(var S=0,_=0;_<2;_++){var w=roots[_];if(w+t>d){var $=Math.atan2(g,w),C=l?1:-1;$<0&&($=PI2$4+$),($>=o&&$<=s||$+PI2$4>=o&&$+PI2$4<=s)&&($>Math.PI/2&&$<Math.PI*1.5&&(C=-C),S+=C)}}return S}function containPath(t,r,n,o,s){for(var l=t.data,d=t.len(),g=0,y=0,b=0,C=0,x=0,S,_,w=0;w<d;){var $=l[w++],I=w===1;switch($===CMD$3.M&&w>1&&(n||(g+=windingLine(y,b,C,x,o,s))),I&&(y=l[w],b=l[w+1],C=y,x=b),$){case CMD$3.M:C=l[w++],x=l[w++],y=C,b=x;break;case CMD$3.L:if(n){if(containStroke$4(y,b,l[w],l[w+1],r,o,s))return!0}else g+=windingLine(y,b,l[w],l[w+1],o,s)||0;y=l[w++],b=l[w++];break;case CMD$3.C:if(n){if(containStroke$3(y,b,l[w++],l[w++],l[w++],l[w++],l[w],l[w+1],r,o,s))return!0}else g+=windingCubic(y,b,l[w++],l[w++],l[w++],l[w++],l[w],l[w+1],o,s)||0;y=l[w++],b=l[w++];break;case CMD$3.Q:if(n){if(containStroke$2(y,b,l[w++],l[w++],l[w],l[w+1],r,o,s))return!0}else g+=windingQuadratic(y,b,l[w++],l[w++],l[w],l[w+1],o,s)||0;y=l[w++],b=l[w++];break;case CMD$3.A:var B=l[w++],R=l[w++],P=l[w++],M=l[w++],O=l[w++],D=l[w++];w+=1;var N=!!(1-l[w++]);S=Math.cos(O)*P+B,_=Math.sin(O)*M+R,I?(C=S,x=_):g+=windingLine(y,b,S,_,o,s);var H=(o-B)*M/P+B;if(n){if(containStroke$1(B,R,M,O,O+D,N,r,H,s))return!0}else g+=windingArc(B,R,M,O,O+D,N,H,s);y=Math.cos(O+D)*P+B,b=Math.sin(O+D)*M+R;break;case CMD$3.R:C=y=l[w++],x=b=l[w++];var Q=l[w++],G=l[w++];if(S=C+Q,_=x+G,n){if(containStroke$4(C,x,S,x,r,o,s)||containStroke$4(S,x,S,_,r,o,s)||containStroke$4(S,_,C,_,r,o,s)||containStroke$4(C,_,C,x,r,o,s))return!0}else g+=windingLine(S,x,S,_,o,s),g+=windingLine(C,_,C,x,o,s);break;case CMD$3.Z:if(n){if(containStroke$4(y,b,C,x,r,o,s))return!0}else g+=windingLine(y,b,C,x,o,s);y=C,b=x;break}}return!n&&!isAroundEqual$1(b,x)&&(g+=windingLine(y,b,C,x,o,s)||0),g!==0}function contain$2(t,r,n){return containPath(t,0,!1,r,n)}function containStroke(t,r,n,o){return containPath(t,r,!0,n,o)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.update=function(){var n=this;t.prototype.update.call(this);var o=this.style;if(o.decal){var s=this._decalEl=this._decalEl||new r;s.buildPath===r.prototype.buildPath&&(s.buildPath=function(y){n.buildPath(y,n.shape)}),s.silent=!0;var l=s.style;for(var d in o)l[d]!==o[d]&&(l[d]=o[d]);l.fill=o.fill?o.decal:null,l.decal=null,l.shadowColor=null,o.strokeFirst&&(l.stroke=null);for(var g=0;g<pathCopyParams.length;++g)s[pathCopyParams[g]]=this[pathCopyParams[g]];s.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},r.prototype.getDecalElement=function(){return this._decalEl},r.prototype._init=function(n){var o=keys(n);this.shape=this.getDefaultShape();var s=this.getDefaultStyle();s&&this.useStyle(s);for(var l=0;l<o.length;l++){var d=o[l],g=n[d];d==="style"?this.style?extend(this.style,g):this.useStyle(g):d==="shape"?extend(this.shape,g):t.prototype.attrKV.call(this,d,g)}this.style||this.useStyle({})},r.prototype.getDefaultStyle=function(){return null},r.prototype.getDefaultShape=function(){return{}},r.prototype.canBeInsideText=function(){return this.hasFill()},r.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(isString(n)){var o=lum(n,0);return o>.5?DARK_LABEL_COLOR:o>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(n)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},r.prototype.getInsideTextStroke=function(n){var o=this.style.fill;if(isString(o)){var s=this.__zr,l=!!(s&&s.isDarkMode()),d=lum(n,0)<DARK_MODE_THRESHOLD;if(l===d)return o}},r.prototype.buildPath=function(n,o,s){},r.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},r.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},r.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},r.prototype.hasStroke=function(){var n=this.style,o=n.stroke;return!(o==null||o==="none"||!(n.lineWidth>0))},r.prototype.hasFill=function(){var n=this.style,o=n.fill;return o!=null&&o!=="none"},r.prototype.getBoundingRect=function(){var n=this._rect,o=this.style,s=!n;if(s){var l=!1;this.path||(l=!0,this.createPathProxy());var d=this.path;(l||this.__dirty&SHAPE_CHANGED_BIT)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),n=d.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var g=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||s){g.copy(n);var y=o.strokeNoScale?this.getLineScale():1,b=o.lineWidth;if(!this.hasFill()){var C=this.strokeContainThreshold;b=Math.max(b,C==null?4:C)}y>1e-10&&(g.width+=b/y,g.height+=b/y,g.x-=b/y/2,g.y-=b/y/2)}return g}return n},r.prototype.contain=function(n,o){var s=this.transformCoordToLocal(n,o),l=this.getBoundingRect(),d=this.style;if(n=s[0],o=s[1],l.contain(n,o)){var g=this.path;if(this.hasStroke()){var y=d.lineWidth,b=d.strokeNoScale?this.getLineScale():1;if(b>1e-10&&(this.hasFill()||(y=Math.max(y,this.strokeContainThreshold)),containStroke(g,y/b,n,o)))return!0}if(this.hasFill())return contain$2(g,n,o)}return!1},r.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},r.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},r.prototype.animateShape=function(n){return this.animate("shape",n)},r.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function(n,o){n==="shape"?this.setShape(o):t.prototype.attrKV.call(this,n,o)},r.prototype.setShape=function(n,o){var s=this.shape;return s||(s=this.shape={}),typeof n=="string"?s[n]=o:extend(s,n),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},r.prototype.createStyle=function(n){return createObject(DEFAULT_PATH_STYLE,n)},r.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var o=this._normalState;n.shape&&!o.shape&&(o.shape=extend({},this.shape))},r.prototype._applyStateObj=function(n,o,s,l,d,g){t.prototype._applyStateObj.call(this,n,o,s,l,d,g);var y=!(o&&l),b;if(o&&o.shape?d?l?b=o.shape:(b=extend({},s.shape),extend(b,o.shape)):(b=extend({},l?this.shape:s.shape),extend(b,o.shape)):y&&(b=s.shape),b)if(d){this.shape=extend({},this.shape);for(var C={},x=keys(b),S=0;S<x.length;S++){var _=x[S];typeof b[_]=="object"?this.shape[_]=b[_]:C[_]=b[_]}this._transitionState(n,{shape:C},g)}else this.shape=b,this.dirtyShape()},r.prototype._mergeStates=function(n){for(var o=t.prototype._mergeStates.call(this,n),s,l=0;l<n.length;l++){var d=n[l];d.shape&&(s=s||{},this._mergeStyle(s,d.shape))}return s&&(o.shape=s),o},r.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},r.prototype.isZeroArea=function(){return!1},r.extend=function(n){var o=function(l){__extends(d,l);function d(g){var y=l.call(this,g)||this;return n.init&&n.init.call(y,g),y}return d.prototype.getDefaultStyle=function(){return clone$4(n.style)},d.prototype.getDefaultShape=function(){return clone$4(n.shape)},d}(r);for(var s in n)typeof n[s]=="function"&&(o.prototype[s]=n[s]);return o},r.initDefaultProps=function(){var n=r.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),r}(Displayable$1),Path$1=Path,DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.hasStroke=function(){var n=this.style,o=n.stroke;return o!=null&&o!=="none"&&n.lineWidth>0},r.prototype.hasFill=function(){var n=this.style,o=n.fill;return o!=null&&o!=="none"},r.prototype.createStyle=function(n){return createObject(DEFAULT_TSPAN_STYLE,n)},r.prototype.setBoundingRect=function(n){this._rect=n},r.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var o=n.text;o!=null?o+="":o="";var s=getBoundingRect(o,n.font,n.textAlign,n.textBaseline);if(s.x+=n.x||0,s.y+=n.y||0,this.hasStroke()){var l=n.lineWidth;s.x-=l/2,s.y-=l/2,s.width+=l,s.height+=l}this._rect=s}return this._rect},r.initDefaultProps=function(){var n=r.prototype;n.dirtyRectTolerance=10}(),r}(Displayable$1);TSpan.prototype.type="tspan";var TSpan$1=TSpan,DEFAULT_IMAGE_STYLE=defaults({x:0,y:0},DEFAULT_COMMON_STYLE),DEFAULT_IMAGE_ANIMATION_PROPS={style:defaults({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)};function isImageLike$1(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ZRImage=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.createStyle=function(n){return createObject(DEFAULT_IMAGE_STYLE,n)},r.prototype._getSize=function(n){var o=this.style,s=o[n];if(s!=null)return s;var l=isImageLike$1(o.image)?o.image:this.__image;if(!l)return 0;var d=n==="width"?"height":"width",g=o[d];return g==null?l[n]:l[n]/l[d]*g},r.prototype.getWidth=function(){return this._getSize("width")},r.prototype.getHeight=function(){return this._getSize("height")},r.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},r.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new BoundingRect$1(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},r}(Displayable$1);ZRImage.prototype.type="image";var ZRImage$1=ZRImage;function buildPath$2(t,r){var n=r.x,o=r.y,s=r.width,l=r.height,d=r.r,g,y,b,C;s<0&&(n=n+s,s=-s),l<0&&(o=o+l,l=-l),typeof d=="number"?g=y=b=C=d:d instanceof Array?d.length===1?g=y=b=C=d[0]:d.length===2?(g=b=d[0],y=C=d[1]):d.length===3?(g=d[0],y=C=d[1],b=d[2]):(g=d[0],y=d[1],b=d[2],C=d[3]):g=y=b=C=0;var x;g+y>s&&(x=g+y,g*=s/x,y*=s/x),b+C>s&&(x=b+C,b*=s/x,C*=s/x),y+b>l&&(x=y+b,y*=l/x,b*=l/x),g+C>l&&(x=g+C,g*=l/x,C*=l/x),t.moveTo(n+g,o),t.lineTo(n+s-y,o),y!==0&&t.arc(n+s-y,o+y,y,-Math.PI/2,0),t.lineTo(n+s,o+l-b),b!==0&&t.arc(n+s-b,o+l-b,b,0,Math.PI/2),t.lineTo(n+C,o+l),C!==0&&t.arc(n+C,o+l-C,C,Math.PI/2,Math.PI),t.lineTo(n,o+g),g!==0&&t.arc(n+g,o+g,g,Math.PI,Math.PI*1.5)}var round$2=Math.round;function subPixelOptimizeLine$1(t,r,n){if(!!r){var o=r.x1,s=r.x2,l=r.y1,d=r.y2;t.x1=o,t.x2=s,t.y1=l,t.y2=d;var g=n&&n.lineWidth;return g&&(round$2(o*2)===round$2(s*2)&&(t.x1=t.x2=subPixelOptimize$1(o,g,!0)),round$2(l*2)===round$2(d*2)&&(t.y1=t.y2=subPixelOptimize$1(l,g,!0))),t}}function subPixelOptimizeRect$1(t,r,n){if(!!r){var o=r.x,s=r.y,l=r.width,d=r.height;t.x=o,t.y=s,t.width=l,t.height=d;var g=n&&n.lineWidth;return g&&(t.x=subPixelOptimize$1(o,g,!0),t.y=subPixelOptimize$1(s,g,!0),t.width=Math.max(subPixelOptimize$1(o+l,g,!1)-t.x,l===0?0:1),t.height=Math.max(subPixelOptimize$1(s+d,g,!1)-t.y,d===0?0:1)),t}}function subPixelOptimize$1(t,r,n){if(!r)return t;var o=round$2(t*2);return(o+round$2(r))%2===0?o/2:(o+(n?1:-1))/2}var RectShape=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),subPixelOptimizeOutputShape$1={},Rect$2=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new RectShape},r.prototype.buildPath=function(n,o){var s,l,d,g;if(this.subPixelOptimize){var y=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,o,this.style);s=y.x,l=y.y,d=y.width,g=y.height,y.r=o.r,o=y}else s=o.x,l=o.y,d=o.width,g=o.height;o.r?buildPath$2(n,o):n.rect(s,l,d,g)},r.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},r}(Path$1);Rect$2.prototype.type="rect";var Rect$3=Rect$2,DEFAULT_RICH_TEXT_COLOR={fill:"#000"},DEFAULT_STROKE_LINE_WIDTH=2,DEFAULT_TEXT_ANIMATION_PROPS={style:defaults({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},DEFAULT_COMMON_ANIMATION_PROPS.style)},ZRText=function(t){__extends(r,t);function r(n){var o=t.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=DEFAULT_RICH_TEXT_COLOR,o.attr(n),o}return r.prototype.childrenRef=function(){return this._children},r.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n<this._children.length;n++){var o=this._children[n];o.zlevel=this.zlevel,o.z=this.z,o.z2=this.z2,o.culling=this.culling,o.cursor=this.cursor,o.invisible=this.invisible}},r.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},r.prototype.getLocalTransform=function(n){var o=this.innerTransformable;return o?o.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},r.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},r.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},r.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var o=0;o<this._children.length;o++)this._children[o].__zr=n},r.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var o=0;o<this._children.length;o++)this._children[o].__zr=null},r.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new BoundingRect$1(0,0,0,0),o=this._children,s=[],l=null,d=0;d<o.length;d++){var g=o[d],y=g.getBoundingRect(),b=g.getLocalTransform(s);b?(n.copy(y),n.applyTransform(b),l=l||n.clone(),l.union(n)):(l=l||y.clone(),l.union(y))}this._rect=l||n}return this._rect},r.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||DEFAULT_RICH_TEXT_COLOR},r.prototype.setTextContent=function(n){},r.prototype._mergeStyle=function(n,o){if(!o)return n;var s=o.rich,l=n.rich||s&&{};return extend(n,o),s&&l?(this._mergeRich(l,s),n.rich=l):l&&(n.rich=l),n},r.prototype._mergeRich=function(n,o){for(var s=keys(o),l=0;l<s.length;l++){var d=s[l];n[d]=n[d]||{},extend(n[d],o[d])}},r.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},r.prototype._getOrCreateChild=function(n){var o=this._children[this._childCursor];return(!o||!(o instanceof n))&&(o=new n),this._children[this._childCursor++]=o,o.__zr=this.__zr,o.parent=this,o},r.prototype._updatePlainTexts=function(){var n=this.style,o=n.font||DEFAULT_FONT,s=n.padding,l=getStyleText(n),d=parsePlainText(l,n),g=needDrawBackground(n),y=!!n.backgroundColor,b=d.outerHeight,C=d.outerWidth,x=d.contentWidth,S=d.lines,_=d.lineHeight,w=this._defaultStyle,$=n.x||0,I=n.y||0,B=n.align||w.align||"left",R=n.verticalAlign||w.verticalAlign||"top",P=$,M=adjustTextY(I,d.contentHeight,R);if(g||s){var O=adjustTextX($,C,B),D=adjustTextY(I,b,R);g&&this._renderBackground(n,n,O,D,C,b)}M+=_/2,s&&(P=getTextXForPadding($,B,s),R==="top"?M+=s[0]:R==="bottom"&&(M-=s[2]));for(var N=0,H=!1,Q=getFill("fill"in n?n.fill:(H=!0,w.fill)),G=getStroke("stroke"in n?n.stroke:!y&&(!w.autoStroke||H)?(N=DEFAULT_STROKE_LINE_WIDTH,w.stroke):null),K=n.textShadowBlur>0,W=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),j=d.calculatedLineHeight,Y=0;Y<S.length;Y++){var q=this._getOrCreateChild(TSpan$1),X=q.createStyle();q.useStyle(X),X.text=S[Y],X.x=P,X.y=M,B&&(X.textAlign=B),X.textBaseline="middle",X.opacity=n.opacity,X.strokeFirst=!0,K&&(X.shadowBlur=n.textShadowBlur||0,X.shadowColor=n.textShadowColor||"transparent",X.shadowOffsetX=n.textShadowOffsetX||0,X.shadowOffsetY=n.textShadowOffsetY||0),X.stroke=G,X.fill=Q,G&&(X.lineWidth=n.lineWidth||N,X.lineDash=n.lineDash,X.lineDashOffset=n.lineDashOffset||0),X.font=o,setSeparateFont(X,n),M+=_,W&&q.setBoundingRect(new BoundingRect$1(adjustTextX(X.x,n.width,X.textAlign),adjustTextY(X.y,j,X.textBaseline),x,j))}},r.prototype._updateRichTexts=function(){var n=this.style,o=getStyleText(n),s=parseRichText(o,n),l=s.width,d=s.outerWidth,g=s.outerHeight,y=n.padding,b=n.x||0,C=n.y||0,x=this._defaultStyle,S=n.align||x.align,_=n.verticalAlign||x.verticalAlign,w=adjustTextX(b,d,S),$=adjustTextY(C,g,_),I=w,B=$;y&&(I+=y[3],B+=y[0]);var R=I+l;needDrawBackground(n)&&this._renderBackground(n,n,w,$,d,g);for(var P=!!n.backgroundColor,M=0;M<s.lines.length;M++){for(var O=s.lines[M],D=O.tokens,N=D.length,H=O.lineHeight,Q=O.width,G=0,K=I,W=R,j=N-1,Y=void 0;G<N&&(Y=D[G],!Y.align||Y.align==="left");)this._placeToken(Y,n,H,B,K,"left",P),Q-=Y.width,K+=Y.width,G++;for(;j>=0&&(Y=D[j],Y.align==="right");)this._placeToken(Y,n,H,B,W,"right",P),Q-=Y.width,W-=Y.width,j--;for(K+=(l-(K-I)-(R-W)-Q)/2;G<=j;)Y=D[G],this._placeToken(Y,n,H,B,K+Y.width/2,"center",P),K+=Y.width,G++;B+=H}},r.prototype._placeToken=function(n,o,s,l,d,g,y){var b=o.rich[n.styleName]||{};b.text=n.text;var C=n.verticalAlign,x=l+s/2;C==="top"?x=l+n.height/2:C==="bottom"&&(x=l+s-n.height/2);var S=!n.isLineHolder&&needDrawBackground(b);S&&this._renderBackground(b,o,g==="right"?d-n.width:g==="center"?d-n.width/2:d,x-n.height/2,n.width,n.height);var _=!!b.backgroundColor,w=n.textPadding;w&&(d=getTextXForPadding(d,g,w),x-=n.height/2-w[0]-n.innerHeight/2);var $=this._getOrCreateChild(TSpan$1),I=$.createStyle();$.useStyle(I);var B=this._defaultStyle,R=!1,P=0,M=getFill("fill"in b?b.fill:"fill"in o?o.fill:(R=!0,B.fill)),O=getStroke("stroke"in b?b.stroke:"stroke"in o?o.stroke:!_&&!y&&(!B.autoStroke||R)?(P=DEFAULT_STROKE_LINE_WIDTH,B.stroke):null),D=b.textShadowBlur>0||o.textShadowBlur>0;I.text=n.text,I.x=d,I.y=x,D&&(I.shadowBlur=b.textShadowBlur||o.textShadowBlur||0,I.shadowColor=b.textShadowColor||o.textShadowColor||"transparent",I.shadowOffsetX=b.textShadowOffsetX||o.textShadowOffsetX||0,I.shadowOffsetY=b.textShadowOffsetY||o.textShadowOffsetY||0),I.textAlign=g,I.textBaseline="middle",I.font=n.font||DEFAULT_FONT,I.opacity=retrieve3(b.opacity,o.opacity,1),setSeparateFont(I,b),O&&(I.lineWidth=retrieve3(b.lineWidth,o.lineWidth,P),I.lineDash=retrieve2(b.lineDash,o.lineDash),I.lineDashOffset=o.lineDashOffset||0,I.stroke=O),M&&(I.fill=M);var N=n.contentWidth,H=n.contentHeight;$.setBoundingRect(new BoundingRect$1(adjustTextX(I.x,N,I.textAlign),adjustTextY(I.y,H,I.textBaseline),N,H))},r.prototype._renderBackground=function(n,o,s,l,d,g){var y=n.backgroundColor,b=n.borderWidth,C=n.borderColor,x=y&&y.image,S=y&&!x,_=n.borderRadius,w=this,$,I;if(S||n.lineHeight||b&&C){$=this._getOrCreateChild(Rect$3),$.useStyle($.createStyle()),$.style.fill=null;var B=$.shape;B.x=s,B.y=l,B.width=d,B.height=g,B.r=_,$.dirtyShape()}if(S){var R=$.style;R.fill=y||null,R.fillOpacity=retrieve2(n.fillOpacity,1)}else if(x){I=this._getOrCreateChild(ZRImage$1),I.onload=function(){w.dirtyStyle()};var P=I.style;P.image=y.image,P.x=s,P.y=l,P.width=d,P.height=g}if(b&&C){var R=$.style;R.lineWidth=b,R.stroke=C,R.strokeOpacity=retrieve2(n.strokeOpacity,1),R.lineDash=n.borderDash,R.lineDashOffset=n.borderDashOffset||0,$.strokeContainThreshold=0,$.hasFill()&&$.hasStroke()&&(R.strokeFirst=!0,R.lineWidth*=2)}var M=($||I).style;M.shadowBlur=n.shadowBlur||0,M.shadowColor=n.shadowColor||"transparent",M.shadowOffsetX=n.shadowOffsetX||0,M.shadowOffsetY=n.shadowOffsetY||0,M.opacity=retrieve3(n.opacity,o.opacity,1)},r.makeFont=function(n){var o="";return hasSeparateFont(n)&&(o=[n.fontStyle,n.fontWeight,parseFontSize(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),o&&trim$1(o)||n.textFont||n.font},r}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?DEFAULT_FONT_SIZE+"px":t+"px"}function setSeparateFont(t,r){for(var n=0;n<FONT_PARTS.length;n++){var o=FONT_PARTS[n],s=r[o];s!=null&&(t[o]=s)}}function hasSeparateFont(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function normalizeTextStyle(t){return normalizeStyle(t),each$f(t.rich,normalizeStyle),t}function normalizeStyle(t){if(t){t.font=ZRText.makeFont(t);var r=t.align;r==="middle"&&(r="center"),t.align=r==null||VALID_TEXT_ALIGN[r]?r:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||VALID_TEXT_VERTICAL_ALIGN[n]?n:"top";var o=t.padding;o&&(t.padding=normalizeCssArray$1(t.padding))}}function getStroke(t,r){return t==null||r<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function getFill(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function getTextXForPadding(t,r,n){return r==="right"?t-n[1]:r==="center"?t+n[3]/2-n[1]/2:t+n[3]}function getStyleText(t){var r=t.text;return r!=null&&(r+=""),r}function needDrawBackground(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}var ZRText$1=ZRText,getECData=makeInner(),setCommonECData=function(t,r,n,o){if(o){var s=getECData(o);s.dataIndex=n,s.dataType=r,s.seriesIndex=t,o.type==="group"&&o.traverse(function(l){var d=getECData(l);d.seriesIndex=t,d.dataIndex=n,d.dataType=r})}},_highlightNextDigit=1,_highlightKeyMap={},getSavedStates=makeInner(),getComponentStates=makeInner(),HOVER_STATE_NORMAL=0,HOVER_STATE_BLUR=1,HOVER_STATE_EMPHASIS=2,SPECIAL_STATES=["emphasis","blur","select"],DISPLAY_STATES=["normal","emphasis","blur","select"],Z2_EMPHASIS_LIFT=10,Z2_SELECT_LIFT=9,HIGHLIGHT_ACTION_TYPE="highlight",DOWNPLAY_ACTION_TYPE="downplay",SELECT_ACTION_TYPE="select",UNSELECT_ACTION_TYPE="unselect",TOGGLE_SELECT_ACTION_TYPE="toggleSelect";function hasFillOrStroke(t){return t!=null&&t!=="none"}var liftedColorCache=new LRU$1(100);function liftColor(t){if(isString(t)){var r=liftedColorCache.get(t);return r||(r=lift(t,-.1),liftedColorCache.put(t,r)),r}else if(isGradientObject(t)){var n=extend({},t);return n.colorStops=map$1(t.colorStops,function(o){return{offset:o.offset,color:lift(o.color,-.1)}}),n}return t}function doChangeHoverState(t,r,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(r),t.hoverState=n}function singleEnterEmphasis(t){doChangeHoverState(t,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis(t){t.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState(t,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur(t){doChangeHoverState(t,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur(t){t.hoverState===HOVER_STATE_BLUR&&doChangeHoverState(t,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect(t){t.selected=!0}function singleLeaveSelect(t){t.selected=!1}function updateElementState(t,r,n){r(t,n)}function traverseUpdateState(t,r,n){updateElementState(t,r,n),t.isGroup&&t.traverse(function(o){updateElementState(o,r,n)})}function setStatesFlag(t,r){switch(r){case"emphasis":t.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":t.hoverState=HOVER_STATE_NORMAL;break;case"blur":t.hoverState=HOVER_STATE_BLUR;break;case"select":t.selected=!0}}function getFromStateStyle(t,r,n,o){for(var s=t.style,l={},d=0;d<r.length;d++){var g=r[d],y=s[g];l[g]=y==null?o&&o[g]:y}for(var d=0;d<t.animators.length;d++){var b=t.animators[d];b.__fromStateTransition&&b.__fromStateTransition.indexOf(n)<0&&b.targetName==="style"&&b.saveTo(l,r)}return l}function createEmphasisDefaultState(t,r,n,o){var s=n&&indexOf(n,"select")>=0,l=!1;if(t instanceof Path$1){var d=getSavedStates(t),g=s&&d.selectFill||d.normalFill,y=s&&d.selectStroke||d.normalStroke;if(hasFillOrStroke(g)||hasFillOrStroke(y)){o=o||{};var b=o.style||{};b.fill==="inherit"?(l=!0,o=extend({},o),b=extend({},b),b.fill=g):!hasFillOrStroke(b.fill)&&hasFillOrStroke(g)?(l=!0,o=extend({},o),b=extend({},b),b.fill=liftColor(g)):!hasFillOrStroke(b.stroke)&&hasFillOrStroke(y)&&(l||(o=extend({},o),b=extend({},b)),b.stroke=liftColor(y)),o.style=b}}if(o&&o.z2==null){l||(o=extend({},o));var C=t.z2EmphasisLift;o.z2=t.z2+(C!=null?C:Z2_EMPHASIS_LIFT)}return o}function createSelectDefaultState(t,r,n){if(n&&n.z2==null){n=extend({},n);var o=t.z2SelectLift;n.z2=t.z2+(o!=null?o:Z2_SELECT_LIFT)}return n}function createBlurDefaultState(t,r,n){var o=indexOf(t.currentStates,r)>=0,s=t.style.opacity,l=o?null:getFromStateStyle(t,["opacity"],r,{opacity:1});n=n||{};var d=n.style||{};return d.opacity==null&&(n=extend({},n),d=extend({opacity:o?s:l.opacity*.1},d),n.style=d),n}function elementStateProxy(t,r){var n=this.states[t];if(this.style){if(t==="emphasis")return createEmphasisDefaultState(this,t,r,n);if(t==="blur")return createBlurDefaultState(this,t,n);if(t==="select")return createSelectDefaultState(this,t,n)}return n}function setDefaultStateProxy(t){t.stateProxy=elementStateProxy;var r=t.getTextContent(),n=t.getTextGuideLine();r&&(r.stateProxy=elementStateProxy),n&&(n.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleLeaveEmphasis)}function enterEmphasis(t,r){t.__highByOuter|=1<<(r||0),traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasis(t,r){!(t.__highByOuter&=~(1<<(r||0)))&&traverseUpdateState(t,singleLeaveEmphasis)}function enterBlur(t){traverseUpdateState(t,singleEnterBlur)}function leaveBlur(t){traverseUpdateState(t,singleLeaveBlur)}function enterSelect(t){traverseUpdateState(t,singleEnterSelect)}function leaveSelect(t){traverseUpdateState(t,singleLeaveSelect)}function shouldSilent(t,r){return t.__highDownSilentOnTouch&&r.zrByTouch}function allLeaveBlur(t){var r=t.getModel(),n=[],o=[];r.eachComponent(function(s,l){var d=getComponentStates(l),g=s==="series",y=g?t.getViewOfSeriesModel(l):t.getViewOfComponentModel(l);!g&&o.push(y),d.isBlured&&(y.group.traverse(function(b){singleLeaveBlur(b)}),g&&n.push(l)),d.isBlured=!1}),each$f(o,function(s){s&&s.toggleBlurSeries&&s.toggleBlurSeries(n,!1,r)})}function blurSeries(t,r,n,o){var s=o.getModel();n=n||"coordinateSystem";function l(b,C){for(var x=0;x<C.length;x++){var S=b.getItemGraphicEl(C[x]);S&&leaveBlur(S)}}if(t!=null&&!(!r||r==="none")){var d=s.getSeriesByIndex(t),g=d.coordinateSystem;g&&g.master&&(g=g.master);var y=[];s.eachSeries(function(b){var C=d===b,x=b.coordinateSystem;x&&x.master&&(x=x.master);var S=x&&g?x===g:C;if(!(n==="series"&&!C||n==="coordinateSystem"&&!S||r==="series"&&C)){var _=o.getViewOfSeriesModel(b);if(_.group.traverse(function(I){singleEnterBlur(I)}),isArrayLike(r))l(b.getData(),r);else if(isObject$3(r))for(var w=keys(r),$=0;$<w.length;$++)l(b.getData(w[$]),r[w[$]]);y.push(b),getComponentStates(b).isBlured=!0}}),s.eachComponent(function(b,C){if(b!=="series"){var x=o.getViewOfComponentModel(C);x&&x.toggleBlurSeries&&x.toggleBlurSeries(y,!0,s)}})}}function blurComponent(t,r,n){if(!(t==null||r==null)){var o=n.getModel().getComponent(t,r);if(!!o){getComponentStates(o).isBlured=!0;var s=n.getViewOfComponentModel(o);!s||!s.focusBlurEnabled||s.group.traverse(function(l){singleEnterBlur(l)})}}}function blurSeriesFromHighlightPayload(t,r,n){var o=t.seriesIndex,s=t.getData(r.dataType);if(!!s){var l=queryDataIndex(s,r);l=(isArray$1(l)?l[0]:l)||0;var d=s.getItemGraphicEl(l);if(!d)for(var g=s.count(),y=0;!d&&y<g;)d=s.getItemGraphicEl(y++);if(d){var b=getECData(d);blurSeries(o,b.focus,b.blurScope,n)}else{var C=t.get(["emphasis","focus"]),x=t.get(["emphasis","blurScope"]);C!=null&&blurSeries(o,C,x,n)}}}function findComponentHighDownDispatchers(t,r,n,o){var s={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||r==null||n==null)return s;var l=o.getModel().getComponent(t,r);if(!l)return s;var d=o.getViewOfComponentModel(l);if(!d||!d.findHighDownDispatchers)return s;for(var g=d.findHighDownDispatchers(n),y,b=0;b<g.length;b++)if(getECData(g[b]).focus==="self"){y=!0;break}return{focusSelf:y,dispatchers:g}}function handleGlobalMouseOverForHighDown(t,r,n){var o=getECData(t),s=findComponentHighDownDispatchers(o.componentMainType,o.componentIndex,o.componentHighDownName,n),l=s.dispatchers,d=s.focusSelf;l?(d&&blurComponent(o.componentMainType,o.componentIndex,n),each$f(l,function(g){return enterEmphasisWhenMouseOver(g,r)})):(blurSeries(o.seriesIndex,o.focus,o.blurScope,n),o.focus==="self"&&blurComponent(o.componentMainType,o.componentIndex,n),enterEmphasisWhenMouseOver(t,r))}function handleGlobalMouseOutForHighDown(t,r,n){allLeaveBlur(n);var o=getECData(t),s=findComponentHighDownDispatchers(o.componentMainType,o.componentIndex,o.componentHighDownName,n).dispatchers;s?each$f(s,function(l){return leaveEmphasisWhenMouseOut(l,r)}):leaveEmphasisWhenMouseOut(t,r)}function toggleSelectionFromPayload(t,r,n){if(!!isSelectChangePayload(r)){var o=r.dataType,s=t.getData(o),l=queryDataIndex(s,r);isArray$1(l)||(l=[l]),t[r.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":r.type===SELECT_ACTION_TYPE?"select":"unselect"](l,o)}}function updateSeriesElementSelection(t){var r=t.getAllData();each$f(r,function(n){var o=n.data,s=n.type;o.eachItemGraphicEl(function(l,d){t.isSelected(d,s)?enterSelect(l):leaveSelect(l)})})}function getAllSelectedIndices(t){var r=[];return t.eachSeries(function(n){var o=n.getAllData();each$f(o,function(s){s.data;var l=s.type,d=n.getSelectedDataIndices();if(d.length>0){var g={dataIndex:d,seriesIndex:n.seriesIndex};l!=null&&(g.dataType=l),r.push(g)}})}),r}function enableHoverEmphasis(t,r,n){setAsHighDownDispatcher(t,!0),traverseUpdateState(t,setDefaultStateProxy),enableHoverFocus(t,r,n)}function disableHoverEmphasis(t){setAsHighDownDispatcher(t,!1)}function toggleHoverEmphasis(t,r,n,o){o?disableHoverEmphasis(t):enableHoverEmphasis(t,r,n)}function enableHoverFocus(t,r,n){var o=getECData(t);r!=null?(o.focus=r,o.blurScope=n):o.focus&&(o.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(t,r,n,o){n=n||"itemStyle";for(var s=0;s<OTHER_STATES.length;s++){var l=OTHER_STATES[s],d=r.getModel([l,n]),g=t.ensureState(l);g.style=o?o(d):d[defaultStyleGetterMap[n]]()}}function setAsHighDownDispatcher(t,r){var n=r===!1,o=t;t.highDownSilentOnTouch&&(o.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||o.__highDownDispatcher)&&(o.__highByOuter=o.__highByOuter||0,o.__highDownDispatcher=!n)}function isHighDownDispatcher(t){return!!(t&&t.__highDownDispatcher)}function enableComponentHighDownFeatures(t,r,n){var o=getECData(t);o.componentMainType=r.mainType,o.componentIndex=r.componentIndex,o.componentHighDownName=n}function getHighlightDigit(t){var r=_highlightKeyMap[t];return r==null&&_highlightNextDigit<=32&&(r=_highlightKeyMap[t]=_highlightNextDigit++),r}function isSelectChangePayload(t){var r=t.type;return r===SELECT_ACTION_TYPE||r===UNSELECT_ACTION_TYPE||r===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload(t){var r=t.type;return r===HIGHLIGHT_ACTION_TYPE||r===DOWNPLAY_ACTION_TYPE}function savePathStates(t){var r=getSavedStates(t);r.normalFill=t.style.fill,r.normalStroke=t.style.stroke;var n=t.states.select||{};r.selectFill=n.style&&n.style.fill||null,r.selectStroke=n.style&&n.style.stroke||null}var CMD$2=PathProxy$1.CMD,points$2=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath(t,r){if(!!r){var n=t.data,o=t.len(),s,l,d,g,y,b,C=CMD$2.M,x=CMD$2.C,S=CMD$2.L,_=CMD$2.R,w=CMD$2.A,$=CMD$2.Q;for(d=0,g=0;d<o;){switch(s=n[d++],g=d,l=0,s){case C:l=1;break;case S:l=1;break;case x:l=3;break;case $:l=2;break;case w:var I=r[4],B=r[5],R=mathSqrt$2(r[0]*r[0]+r[1]*r[1]),P=mathSqrt$2(r[2]*r[2]+r[3]*r[3]),M=mathAtan2(-r[1]/P,r[0]/R);n[d]*=R,n[d++]+=I,n[d]*=P,n[d++]+=B,n[d++]*=R,n[d++]*=P,n[d++]+=M,n[d++]+=M,d+=2,g=d;break;case _:b[0]=n[d++],b[1]=n[d++],applyTransform$1(b,b,r),n[g++]=b[0],n[g++]=b[1],b[0]+=n[d++],b[1]+=n[d++],applyTransform$1(b,b,r),n[g++]=b[0],n[g++]=b[1]}for(y=0;y<l;y++){var O=points$2[y];O[0]=n[d++],O[1]=n[d++],applyTransform$1(O,O,r),n[g++]=O[0],n[g++]=O[1]}}t.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$2=Math.sin,mathCos$2=Math.cos,PI$7=Math.PI;function vMag(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function vRatio(t,r){return(t[0]*r[0]+t[1]*r[1])/(vMag(t)*vMag(r))}function vAngle(t,r){return(t[0]*r[1]<t[1]*r[0]?-1:1)*Math.acos(vRatio(t,r))}function processArc(t,r,n,o,s,l,d,g,y,b,C){var x=y*(PI$7/180),S=mathCos$2(x)*(t-n)/2+mathSin$2(x)*(r-o)/2,_=-1*mathSin$2(x)*(t-n)/2+mathCos$2(x)*(r-o)/2,w=S*S/(d*d)+_*_/(g*g);w>1&&(d*=mathSqrt$1(w),g*=mathSqrt$1(w));var $=(s===l?-1:1)*mathSqrt$1((d*d*(g*g)-d*d*(_*_)-g*g*(S*S))/(d*d*(_*_)+g*g*(S*S)))||0,I=$*d*_/g,B=$*-g*S/d,R=(t+n)/2+mathCos$2(x)*I-mathSin$2(x)*B,P=(r+o)/2+mathSin$2(x)*I+mathCos$2(x)*B,M=vAngle([1,0],[(S-I)/d,(_-B)/g]),O=[(S-I)/d,(_-B)/g],D=[(-1*S-I)/d,(-1*_-B)/g],N=vAngle(O,D);if(vRatio(O,D)<=-1&&(N=PI$7),vRatio(O,D)>=1&&(N=0),N<0){var H=Math.round(N/PI$7*1e6)/1e6;N=PI$7*2+H%2*PI$7}C.addData(b,R,P,d,g,M,N,x,l)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg$1=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(t){var r=new PathProxy$1;if(!t)return r;var n=0,o=0,s=n,l=o,d,g=PathProxy$1.CMD,y=t.match(commandReg);if(!y)return r;for(var b=0;b<y.length;b++){for(var C=y[b],x=C.charAt(0),S=void 0,_=C.match(numberReg$1)||[],w=_.length,$=0;$<w;$++)_[$]=parseFloat(_[$]);for(var I=0;I<w;){var B=void 0,R=void 0,P=void 0,M=void 0,O=void 0,D=void 0,N=void 0,H=n,Q=o,G=void 0,K=void 0;switch(x){case"l":n+=_[I++],o+=_[I++],S=g.L,r.addData(S,n,o);break;case"L":n=_[I++],o=_[I++],S=g.L,r.addData(S,n,o);break;case"m":n+=_[I++],o+=_[I++],S=g.M,r.addData(S,n,o),s=n,l=o,x="l";break;case"M":n=_[I++],o=_[I++],S=g.M,r.addData(S,n,o),s=n,l=o,x="L";break;case"h":n+=_[I++],S=g.L,r.addData(S,n,o);break;case"H":n=_[I++],S=g.L,r.addData(S,n,o);break;case"v":o+=_[I++],S=g.L,r.addData(S,n,o);break;case"V":o=_[I++],S=g.L,r.addData(S,n,o);break;case"C":S=g.C,r.addData(S,_[I++],_[I++],_[I++],_[I++],_[I++],_[I++]),n=_[I-2],o=_[I-1];break;case"c":S=g.C,r.addData(S,_[I++]+n,_[I++]+o,_[I++]+n,_[I++]+o,_[I++]+n,_[I++]+o),n+=_[I-2],o+=_[I-1];break;case"S":B=n,R=o,G=r.len(),K=r.data,d===g.C&&(B+=n-K[G-4],R+=o-K[G-3]),S=g.C,H=_[I++],Q=_[I++],n=_[I++],o=_[I++],r.addData(S,B,R,H,Q,n,o);break;case"s":B=n,R=o,G=r.len(),K=r.data,d===g.C&&(B+=n-K[G-4],R+=o-K[G-3]),S=g.C,H=n+_[I++],Q=o+_[I++],n+=_[I++],o+=_[I++],r.addData(S,B,R,H,Q,n,o);break;case"Q":H=_[I++],Q=_[I++],n=_[I++],o=_[I++],S=g.Q,r.addData(S,H,Q,n,o);break;case"q":H=_[I++]+n,Q=_[I++]+o,n+=_[I++],o+=_[I++],S=g.Q,r.addData(S,H,Q,n,o);break;case"T":B=n,R=o,G=r.len(),K=r.data,d===g.Q&&(B+=n-K[G-4],R+=o-K[G-3]),n=_[I++],o=_[I++],S=g.Q,r.addData(S,B,R,n,o);break;case"t":B=n,R=o,G=r.len(),K=r.data,d===g.Q&&(B+=n-K[G-4],R+=o-K[G-3]),n+=_[I++],o+=_[I++],S=g.Q,r.addData(S,B,R,n,o);break;case"A":P=_[I++],M=_[I++],O=_[I++],D=_[I++],N=_[I++],H=n,Q=o,n=_[I++],o=_[I++],S=g.A,processArc(H,Q,n,o,D,N,P,M,O,S,r);break;case"a":P=_[I++],M=_[I++],O=_[I++],D=_[I++],N=_[I++],H=n,Q=o,n+=_[I++],o+=_[I++],S=g.A,processArc(H,Q,n,o,D,N,P,M,O,S,r);break}}(x==="z"||x==="Z")&&(S=g.Z,r.addData(S),n=s,o=l),d=S}return r.toStatic(),r}var SVGPath=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.applyTransform=function(n){},r}(Path$1);function isPathProxy(t){return t.setData!=null}function createPathOptions(t,r){var n=createPathProxyFromString(t),o=extend({},r);return o.buildPath=function(s){if(isPathProxy(s)){s.setData(n.data);var l=s.getContext();l&&s.rebuildPath(l,1)}else{var l=s;n.rebuildPath(l,1)}},o.applyTransform=function(s){transformPath(n,s),this.dirtyShape()},o}function createFromString(t,r){return new SVGPath(createPathOptions(t,r))}function extendFromString(t,r){var n=createPathOptions(t,r),o=function(s){__extends(l,s);function l(d){var g=s.call(this,d)||this;return g.applyTransform=n.applyTransform,g.buildPath=n.buildPath,g}return l}(SVGPath);return o}function mergePath$1(t,r){for(var n=[],o=t.length,s=0;s<o;s++){var l=t[s];n.push(l.getUpdatedPathProxy(!0))}var d=new Path$1(r);return d.createPathProxy(),d.buildPath=function(g){if(isPathProxy(g)){g.appendPath(n);var y=g.getContext();y&&g.rebuildPath(y,1)}},d}function clonePath(t,r){r=r||{};var n=new Path$1;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),r.bakeTransform?transformPath(n.path,t.getComputedTransform()):r.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var CircleShape=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),Circle=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new CircleShape},r.prototype.buildPath=function(n,o){n.moveTo(o.cx+o.r,o.cy),n.arc(o.cx,o.cy,o.r,0,Math.PI*2)},r}(Path$1);Circle.prototype.type="circle";var Circle$1=Circle,EllipseShape=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),Ellipse=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new EllipseShape},r.prototype.buildPath=function(n,o){var s=.5522848,l=o.cx,d=o.cy,g=o.rx,y=o.ry,b=g*s,C=y*s;n.moveTo(l-g,d),n.bezierCurveTo(l-g,d-C,l-b,d-y,l,d-y),n.bezierCurveTo(l+b,d-y,l+g,d-C,l+g,d),n.bezierCurveTo(l+g,d+C,l+b,d+y,l,d+y),n.bezierCurveTo(l-b,d+y,l-g,d+C,l-g,d),n.closePath()},r}(Path$1);Ellipse.prototype.type="ellipse";var Ellipse$1=Ellipse,PI$6=Math.PI,PI2$3=PI$6*2,mathSin$1=Math.sin,mathCos$1=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs$1=Math.abs,mathSqrt=Math.sqrt,mathMax$7=Math.max,mathMin$7=Math.min,e=1e-4;function intersect(t,r,n,o,s,l,d,g){var y=n-t,b=o-r,C=d-s,x=g-l,S=x*y-C*b;if(!(S*S<e))return S=(C*(r-l)-x*(t-s))/S,[t+S*y,r+S*b]}function computeCornerTangents(t,r,n,o,s,l,d){var g=t-n,y=r-o,b=(d?l:-l)/mathSqrt(g*g+y*y),C=b*y,x=-b*g,S=t+C,_=r+x,w=n+C,$=o+x,I=(S+w)/2,B=(_+$)/2,R=w-S,P=$-_,M=R*R+P*P,O=s-l,D=S*$-w*_,N=(P<0?-1:1)*mathSqrt(mathMax$7(0,O*O*M-D*D)),H=(D*P-R*N)/M,Q=(-D*R-P*N)/M,G=(D*P+R*N)/M,K=(-D*R+P*N)/M,W=H-I,j=Q-B,Y=G-I,q=K-B;return W*W+j*j>Y*Y+q*q&&(H=G,Q=K),{cx:H,cy:Q,x0:-C,y0:-x,x1:H*(s/O-1),y1:Q*(s/O-1)}}function normalizeCornerRadius(t){var r;if(isArray$1(t)){var n=t.length;if(!n)return t;n===1?r=[t[0],t[0],0,0]:n===2?r=[t[0],t[0],t[1],t[1]]:n===3?r=t.concat(t[2]):r=t}else r=[t,t,t,t];return r}function buildPath$1(t,r){var n,o=mathMax$7(r.r,0),s=mathMax$7(r.r0||0,0),l=o>0,d=s>0;if(!(!l&&!d)){if(l||(o=s,s=0),s>o){var g=o;o=s,s=g}var y=r.startAngle,b=r.endAngle;if(!(isNaN(y)||isNaN(b))){var C=r.cx,x=r.cy,S=!!r.clockwise,_=mathAbs$1(b-y),w=_>PI2$3&&_%PI2$3;if(w>e&&(_=w),!(o>e))t.moveTo(C,x);else if(_>PI2$3-e)t.moveTo(C+o*mathCos$1(y),x+o*mathSin$1(y)),t.arc(C,x,o,y,b,!S),s>e&&(t.moveTo(C+s*mathCos$1(b),x+s*mathSin$1(b)),t.arc(C,x,s,b,y,S));else{var $=void 0,I=void 0,B=void 0,R=void 0,P=void 0,M=void 0,O=void 0,D=void 0,N=void 0,H=void 0,Q=void 0,G=void 0,K=void 0,W=void 0,j=void 0,Y=void 0,q=o*mathCos$1(y),X=o*mathSin$1(y),re=s*mathCos$1(b),te=s*mathSin$1(b),oe=_>e;if(oe){var ae=r.cornerRadius;ae&&(n=normalizeCornerRadius(ae),$=n[0],I=n[1],B=n[2],R=n[3]);var se=mathAbs$1(o-s)/2;if(P=mathMin$7(se,B),M=mathMin$7(se,R),O=mathMin$7(se,$),D=mathMin$7(se,I),Q=N=mathMax$7(P,M),G=H=mathMax$7(O,D),(N>e||H>e)&&(K=o*mathCos$1(b),W=o*mathSin$1(b),j=s*mathCos$1(y),Y=s*mathSin$1(y),_<PI$6)){var ue=intersect(q,X,j,Y,K,W,re,te);if(ue){var Ae=q-ue[0],pe=X-ue[1],he=K-ue[0],Ce=W-ue[1],ve=1/mathSin$1(mathACos((Ae*he+pe*Ce)/(mathSqrt(Ae*Ae+pe*pe)*mathSqrt(he*he+Ce*Ce)))/2),ye=mathSqrt(ue[0]*ue[0]+ue[1]*ue[1]);Q=mathMin$7(N,(o-ye)/(ve+1)),G=mathMin$7(H,(s-ye)/(ve-1))}}}if(!oe)t.moveTo(C+q,x+X);else if(Q>e){var Be=mathMin$7(B,Q),Se=mathMin$7(R,Q),Ee=computeCornerTangents(j,Y,q,X,o,Be,S),ie=computeCornerTangents(K,W,re,te,o,Se,S);t.moveTo(C+Ee.cx+Ee.x0,x+Ee.cy+Ee.y0),Q<N&&Be===Se?t.arc(C+Ee.cx,x+Ee.cy,Q,mathATan2(Ee.y0,Ee.x0),mathATan2(ie.y0,ie.x0),!S):(Be>0&&t.arc(C+Ee.cx,x+Ee.cy,Be,mathATan2(Ee.y0,Ee.x0),mathATan2(Ee.y1,Ee.x1),!S),t.arc(C,x,o,mathATan2(Ee.cy+Ee.y1,Ee.cx+Ee.x1),mathATan2(ie.cy+ie.y1,ie.cx+ie.x1),!S),Se>0&&t.arc(C+ie.cx,x+ie.cy,Se,mathATan2(ie.y1,ie.x1),mathATan2(ie.y0,ie.x0),!S))}else t.moveTo(C+q,x+X),t.arc(C,x,o,y,b,!S);if(!(s>e)||!oe)t.lineTo(C+re,x+te);else if(G>e){var Be=mathMin$7($,G),Se=mathMin$7(I,G),Ee=computeCornerTangents(re,te,K,W,s,-Se,S),ie=computeCornerTangents(q,X,j,Y,s,-Be,S);t.lineTo(C+Ee.cx+Ee.x0,x+Ee.cy+Ee.y0),G<H&&Be===Se?t.arc(C+Ee.cx,x+Ee.cy,G,mathATan2(Ee.y0,Ee.x0),mathATan2(ie.y0,ie.x0),!S):(Se>0&&t.arc(C+Ee.cx,x+Ee.cy,Se,mathATan2(Ee.y0,Ee.x0),mathATan2(Ee.y1,Ee.x1),!S),t.arc(C,x,s,mathATan2(Ee.cy+Ee.y1,Ee.cx+Ee.x1),mathATan2(ie.cy+ie.y1,ie.cx+ie.x1),S),Be>0&&t.arc(C+ie.cx,x+ie.cy,Be,mathATan2(ie.y1,ie.x1),mathATan2(ie.y0,ie.x0),!S))}else t.lineTo(C+re,x+te),t.arc(C,x,s,b,y,S)}t.closePath()}}}var SectorShape=function(){function t(){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 t}(),Sector=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new SectorShape},r.prototype.buildPath=function(n,o){buildPath$1(n,o)},r.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},r}(Path$1);Sector.prototype.type="sector";var Sector$1=Sector,RingShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Ring=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new RingShape},r.prototype.buildPath=function(n,o){var s=o.cx,l=o.cy,d=Math.PI*2;n.moveTo(s+o.r,l),n.arc(s,l,o.r,0,d,!1),n.moveTo(s+o.r0,l),n.arc(s,l,o.r0,0,d,!0)},r}(Path$1);Ring.prototype.type="ring";var Ring$1=Ring;function smoothBezier(t,r,n,o){var s=[],l=[],d=[],g=[],y,b,C,x;if(o){C=[1/0,1/0],x=[-1/0,-1/0];for(var S=0,_=t.length;S<_;S++)min$1(C,C,t[S]),max$1(x,x,t[S]);min$1(C,C,o[0]),max$1(x,x,o[1])}for(var S=0,_=t.length;S<_;S++){var w=t[S];if(n)y=t[S?S-1:_-1],b=t[(S+1)%_];else if(S===0||S===_-1){s.push(clone$3(t[S]));continue}else y=t[S-1],b=t[S+1];sub(l,b,y),scale$2(l,l,r);var $=distance(w,y),I=distance(w,b),B=$+I;B!==0&&($/=B,I/=B),scale$2(d,l,-$),scale$2(g,l,I);var R=add([],w,d),P=add([],w,g);o&&(max$1(R,R,C),min$1(R,R,x),max$1(P,P,C),min$1(P,P,x)),s.push(R),s.push(P)}return n&&s.push(s.shift()),s}function buildPath(t,r,n){var o=r.smooth,s=r.points;if(s&&s.length>=2){if(o){var l=smoothBezier(s,o,n,r.smoothConstraint);t.moveTo(s[0][0],s[0][1]);for(var d=s.length,g=0;g<(n?d:d-1);g++){var y=l[g*2],b=l[g*2+1],C=s[(g+1)%d];t.bezierCurveTo(y[0],y[1],b[0],b[1],C[0],C[1])}}else{t.moveTo(s[0][0],s[0][1]);for(var g=1,x=s.length;g<x;g++)t.lineTo(s[g][0],s[g][1])}n&&t.closePath()}}var PolygonShape=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Polygon=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new PolygonShape},r.prototype.buildPath=function(n,o){buildPath(n,o,!0)},r}(Path$1);Polygon.prototype.type="polygon";var Polygon$1=Polygon,PolylineShape=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Polyline$2=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new PolylineShape},r.prototype.buildPath=function(n,o){buildPath(n,o,!1)},r}(Path$1);Polyline$2.prototype.type="polyline";var Polyline$3=Polyline$2,subPixelOptimizeOutputShape={},LineShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Line$2=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new LineShape},r.prototype.buildPath=function(n,o){var s,l,d,g;if(this.subPixelOptimize){var y=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,o,this.style);s=y.x1,l=y.y1,d=y.x2,g=y.y2}else s=o.x1,l=o.y1,d=o.x2,g=o.y2;var b=o.percent;b!==0&&(n.moveTo(s,l),b<1&&(d=s*(1-b)+d*b,g=l*(1-b)+g*b),n.lineTo(d,g))},r.prototype.pointAt=function(n){var o=this.shape;return[o.x1*(1-n)+o.x2*n,o.y1*(1-n)+o.y2*n]},r}(Path$1);Line$2.prototype.type="line";var Line$3=Line$2,out=[],BezierCurveShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function someVectorAt(t,r,n){var o=t.cpx2,s=t.cpy2;return o!=null||s!=null?[(n?cubicDerivativeAt:cubicAt)(t.x1,t.cpx1,t.cpx2,t.x2,r),(n?cubicDerivativeAt:cubicAt)(t.y1,t.cpy1,t.cpy2,t.y2,r)]:[(n?quadraticDerivativeAt:quadraticAt$1)(t.x1,t.cpx1,t.x2,r),(n?quadraticDerivativeAt:quadraticAt$1)(t.y1,t.cpy1,t.y2,r)]}var BezierCurve=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new BezierCurveShape},r.prototype.buildPath=function(n,o){var s=o.x1,l=o.y1,d=o.x2,g=o.y2,y=o.cpx1,b=o.cpy1,C=o.cpx2,x=o.cpy2,S=o.percent;S!==0&&(n.moveTo(s,l),C==null||x==null?(S<1&&(quadraticSubdivide(s,y,d,S,out),y=out[1],d=out[2],quadraticSubdivide(l,b,g,S,out),b=out[1],g=out[2]),n.quadraticCurveTo(y,b,d,g)):(S<1&&(cubicSubdivide(s,y,C,d,S,out),y=out[1],C=out[2],d=out[3],cubicSubdivide(l,b,x,g,S,out),b=out[1],x=out[2],g=out[3]),n.bezierCurveTo(y,b,C,x,d,g)))},r.prototype.pointAt=function(n){return someVectorAt(this.shape,n,!1)},r.prototype.tangentAt=function(n){var o=someVectorAt(this.shape,n,!0);return normalize$3(o,o)},r}(Path$1);BezierCurve.prototype.type="bezier-curve";var BezierCurve$1=BezierCurve,ArcShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Arc=function(t){__extends(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ArcShape},r.prototype.buildPath=function(n,o){var s=o.cx,l=o.cy,d=Math.max(o.r,0),g=o.startAngle,y=o.endAngle,b=o.clockwise,C=Math.cos(g),x=Math.sin(g);n.moveTo(C*d+s,x*d+l),n.arc(s,l,d,g,y,!b)},r}(Path$1);Arc.prototype.type="arc";var Arc$1=Arc,CompoundPath=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return r.prototype._updatePathDirty=function(){for(var n=this.shape.paths,o=this.shapeChanged(),s=0;s<n.length;s++)o=o||n[s].shapeChanged();o&&this.dirtyShape()},r.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],o=this.getGlobalScale(),s=0;s<n.length;s++)n[s].path||n[s].createPathProxy(),n[s].path.setScale(o[0],o[1],n[s].segmentIgnoreThreshold)},r.prototype.buildPath=function(n,o){for(var s=o.paths||[],l=0;l<s.length;l++)s[l].buildPath(n,s[l].shape,!0)},r.prototype.afterBrush=function(){for(var n=this.shape.paths||[],o=0;o<n.length;o++)n[o].pathUpdated()},r.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},r}(Path$1),CompoundPath$1=CompoundPath,Gradient=function(){function t(r){this.colorStops=r||[]}return t.prototype.addColorStop=function(r,n){this.colorStops.push({offset:r,color:n})},t}(),Gradient$1=Gradient,LinearGradient=function(t){__extends(r,t);function r(n,o,s,l,d,g){var y=t.call(this,d)||this;return y.x=n==null?0:n,y.y=o==null?0:o,y.x2=s==null?1:s,y.y2=l==null?0:l,y.type="linear",y.global=g||!1,y}return r}(Gradient$1),LinearGradient$1=LinearGradient,RadialGradient=function(t){__extends(r,t);function r(n,o,s,l,d){var g=t.call(this,l)||this;return g.x=n==null?.5:n,g.y=o==null?.5:o,g.r=s==null?.5:s,g.type="radial",g.global=d||!1,g}return r}(Gradient$1),RadialGradient$1=RadialGradient,extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function t(r,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var o=0;o<4;o++)this._corners[o]=new Point$1;for(var o=0;o<2;o++)this._axes[o]=new Point$1;r&&this.fromBoundingRect(r,n)}return t.prototype.fromBoundingRect=function(r,n){var o=this._corners,s=this._axes,l=r.x,d=r.y,g=l+r.width,y=d+r.height;if(o[0].set(l,d),o[1].set(g,d),o[2].set(g,y),o[3].set(l,y),n)for(var b=0;b<4;b++)o[b].transform(n);Point$1.sub(s[0],o[1],o[0]),Point$1.sub(s[1],o[3],o[0]),s[0].normalize(),s[1].normalize();for(var b=0;b<2;b++)this._origin[b]=s[b].dot(o[0])},t.prototype.intersect=function(r,n){var o=!0,s=!n;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,r,minTv,maxTv,s,1)&&(o=!1,s)||!this._intersectCheckOneSide(r,this,minTv,maxTv,s,-1)&&(o=!1,s)||s||Point$1.copy(n,o?minTv:maxTv),o},t.prototype._intersectCheckOneSide=function(r,n,o,s,l,d){for(var g=!0,y=0;y<2;y++){var b=this._axes[y];if(this._getProjMinMaxOnAxis(y,r._corners,extent),this._getProjMinMaxOnAxis(y,n._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(g=!1,l)return g;var C=Math.abs(extent2[0]-extent[1]),x=Math.abs(extent[0]-extent2[1]);Math.min(C,x)>s.len()&&(C<x?Point$1.scale(s,b,-C*d):Point$1.scale(s,b,x*d))}else if(o){var C=Math.abs(extent2[0]-extent[1]),x=Math.abs(extent[0]-extent2[1]);Math.min(C,x)<o.len()&&(C<x?Point$1.scale(o,b,C*d):Point$1.scale(o,b,-x*d))}}return g},t.prototype._getProjMinMaxOnAxis=function(r,n,o){for(var s=this._axes[r],l=this._origin,d=n[0].dot(s)+l[r],g=d,y=d,b=1;b<n.length;b++){var C=n[b].dot(s)+l[r];g=Math.min(C,g),y=Math.max(C,y)}o[0]=g,o[1]=y},t}(),OrientedBoundingRect$1=OrientedBoundingRect,m=[],IncrementalDisplayable=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return r.prototype.traverse=function(n,o){n.call(o,this)},r.prototype.useStyle=function(){this.style={}},r.prototype.getCursor=function(){return this._cursor},r.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},r.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},r.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},r.prototype.addDisplayable=function(n,o){o?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},r.prototype.addDisplayables=function(n,o){o=o||!1;for(var s=0;s<n.length;s++)this.addDisplayable(n[s],o)},r.prototype.getDisplayables=function(){return this._displayables},r.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},r.prototype.eachPendingDisplayable=function(n){for(var o=this._cursor;o<this._displayables.length;o++)n&&n(this._displayables[o]);for(var o=0;o<this._temporaryDisplayables.length;o++)n&&n(this._temporaryDisplayables[o])},r.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var o=this._displayables[n];o.parent=this,o.update(),o.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var o=this._temporaryDisplayables[n];o.parent=this,o.update(),o.parent=null}},r.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new BoundingRect$1(1/0,1/0,-1/0,-1/0),o=0;o<this._displayables.length;o++){var s=this._displayables[o],l=s.getBoundingRect().clone();s.needLocalTransform()&&l.applyTransform(s.getLocalTransform(m)),n.union(l)}this._rect=n}return this._rect},r.prototype.contain=function(n,o){var s=this.transformCoordToLocal(n,o),l=this.getBoundingRect();if(l.contain(s[0],s[1]))for(var d=0;d<this._displayables.length;d++){var g=this._displayables[d];if(g.contain(n,o))return!0}return!1},r}(Displayable$1),IncrementalDisplayable$1=IncrementalDisplayable,transitionStore=makeInner();function getAnimationConfig(t,r,n,o,s){var l;if(r&&r.ecModel){var d=r.ecModel.getUpdatePayload();l=d&&d.animation}var g=r&&r.isAnimationEnabled(),y=t==="update";if(g){var b=void 0,C=void 0,x=void 0;o?(b=retrieve2(o.duration,200),C=retrieve2(o.easing,"cubicOut"),x=0):(b=r.getShallow(y?"animationDurationUpdate":"animationDuration"),C=r.getShallow(y?"animationEasingUpdate":"animationEasing"),x=r.getShallow(y?"animationDelayUpdate":"animationDelay")),l&&(l.duration!=null&&(b=l.duration),l.easing!=null&&(C=l.easing),l.delay!=null&&(x=l.delay)),isFunction(x)&&(x=x(n,s)),isFunction(b)&&(b=b(n));var S={duration:b||0,delay:x,easing:C};return S}else return null}function animateOrSetProps(t,r,n,o,s,l,d){var g=!1,y;isFunction(s)?(d=l,l=s,s=null):isObject$3(s)&&(l=s.cb,d=s.during,g=s.isFrom,y=s.removeOpt,s=s.dataIndex);var b=t==="leave";b||r.stopAnimation("leave");var C=getAnimationConfig(t,o,s,b?y||{}:null,o&&o.getAnimationDelayParams?o.getAnimationDelayParams(r,s):null);if(C&&C.duration>0){var x=C.duration,S=C.delay,_=C.easing,w={duration:x,delay:S||0,easing:_,done:l,force:!!l||!!d,setToFinal:!b,scope:t,during:d};g?r.animateFrom(n,w):r.animateTo(n,w)}else r.stopAnimation(),!g&&r.attr(n),d&&d(1),l&&l()}function updateProps$1(t,r,n,o,s,l){animateOrSetProps("update",t,r,n,o,s,l)}function initProps(t,r,n,o,s,l){animateOrSetProps("enter",t,r,n,o,s,l)}function isElementRemoved(t){if(!t.__zr)return!0;for(var r=0;r<t.animators.length;r++){var n=t.animators[r];if(n.scope==="leave")return!0}return!1}function removeElement(t,r,n,o,s,l){isElementRemoved(t)||animateOrSetProps("leave",t,r,n,o,s,l)}function fadeOutDisplayable(t,r,n,o){t.removeTextContent(),t.removeTextGuideLine(),removeElement(t,{style:{opacity:0}},r,n,o)}function removeElementWithFadeOut(t,r,n){function o(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(s){s.isGroup||fadeOutDisplayable(s,r,n,o)}):fadeOutDisplayable(t,r,n,o)}function saveOldStyle(t){transitionStore(t).oldStyle=t.style}function getOldStyle(t){return transitionStore(t).oldStyle}var mathMax$6=Math.max,mathMin$6=Math.min,_customShapeMap={};function extendShape(t){return Path$1.extend(t)}var extendPathFromString=extendFromString;function extendPath(t,r){return extendPathFromString(t,r)}function registerShape(t,r){_customShapeMap[t]=r}function getShapeClass(t){if(_customShapeMap.hasOwnProperty(t))return _customShapeMap[t]}function makePath(t,r,n,o){var s=createFromString(t,r);return n&&(o==="center"&&(n=centerGraphic(n,s.getBoundingRect())),resizePath(s,n)),s}function makeImage(t,r,n){var o=new ZRImage$1({style:{image:t,x:r.x,y:r.y,width:r.width,height:r.height},onload:function(s){if(n==="center"){var l={width:s.width,height:s.height};o.setStyle(centerGraphic(r,l))}}});return o}function centerGraphic(t,r){var n=r.width/r.height,o=t.height*n,s;o<=t.width?s=t.height:(o=t.width,s=o/n);var l=t.x+t.width/2,d=t.y+t.height/2;return{x:l-o/2,y:d-s/2,width:o,height:s}}var mergePath=mergePath$1;function resizePath(t,r){if(!!t.applyTransform){var n=t.getBoundingRect(),o=n.calculateTransform(r);t.applyTransform(o)}}function subPixelOptimizeLine(t,r){return subPixelOptimizeLine$1(t,t,{lineWidth:r}),t}function subPixelOptimizeRect(t){return subPixelOptimizeRect$1(t.shape,t.shape,t.style),t}var subPixelOptimize=subPixelOptimize$1;function getTransform$1(t,r){for(var n=identity([]);t&&t!==r;)mul(n,t.getLocalTransform(),n),t=t.parent;return n}function applyTransform(t,r,n){return r&&!isArrayLike(r)&&(r=Transformable$1.getLocalTransform(r)),n&&(r=invert([],r)),applyTransform$1([],t,r)}function transformDirection(t,r,n){var o=r[4]===0||r[5]===0||r[0]===0?1:Math.abs(2*r[4]/r[0]),s=r[4]===0||r[5]===0||r[2]===0?1:Math.abs(2*r[4]/r[2]),l=[t==="left"?-o:t==="right"?o:0,t==="top"?-s:t==="bottom"?s:0];return l=applyTransform(l,r,n),Math.abs(l[0])>Math.abs(l[1])?l[0]>0?"right":"left":l[1]>0?"bottom":"top"}function isNotGroup(t){return!t.isGroup}function isPath$1(t){return t.shape!=null}function groupTransition(t,r,n){if(!t||!r)return;function o(d){var g={};return d.traverse(function(y){isNotGroup(y)&&y.anid&&(g[y.anid]=y)}),g}function s(d){var g={x:d.x,y:d.y,rotation:d.rotation};return isPath$1(d)&&(g.shape=extend({},d.shape)),g}var l=o(t);r.traverse(function(d){if(isNotGroup(d)&&d.anid){var g=l[d.anid];if(g){var y=s(d);d.attr(s(g)),updateProps$1(d,y,n,getECData(d).dataIndex)}}})}function clipPointsByRect(t,r){return map$1(t,function(n){var o=n[0];o=mathMax$6(o,r.x),o=mathMin$6(o,r.x+r.width);var s=n[1];return s=mathMax$6(s,r.y),s=mathMin$6(s,r.y+r.height),[o,s]})}function clipRectByRect(t,r){var n=mathMax$6(t.x,r.x),o=mathMin$6(t.x+t.width,r.x+r.width),s=mathMax$6(t.y,r.y),l=mathMin$6(t.y+t.height,r.y+r.height);if(o>=n&&l>=s)return{x:n,y:s,width:o-n,height:l-s}}function createIcon(t,r,n){var o=extend({rectHover:!0},r),s=o.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(s.image=t.slice(8),defaults(s,n),new ZRImage$1(o)):makePath(t.replace("path://",""),o,n,"center")}function linePolygonIntersect(t,r,n,o,s){for(var l=0,d=s[s.length-1];l<s.length;l++){var g=s[l];if(lineLineIntersect$1(t,r,n,o,g[0],g[1],d[0],d[1]))return!0;d=g}}function lineLineIntersect$1(t,r,n,o,s,l,d,g){var y=n-t,b=o-r,C=d-s,x=g-l,S=crossProduct2d$1(C,x,y,b);if(nearZero(S))return!1;var _=t-s,w=r-l,$=crossProduct2d$1(_,w,y,b)/S;if($<0||$>1)return!1;var I=crossProduct2d$1(_,w,C,x)/S;return!(I<0||I>1)}function crossProduct2d$1(t,r,n,o){return t*o-n*r}function nearZero(t){return t<=1e-6&&t>=-1e-6}function setTooltipConfig(t){var r=t.itemTooltipOption,n=t.componentModel,o=t.itemName,s=isString(r)?{formatter:r}:r,l=n.mainType,d=n.componentIndex,g={componentType:l,name:o,$vars:["name"]};g[l+"Index"]=d;var y=t.formatterParamsExtra;y&&each$f(keys(y),function(C){hasOwn(g,C)||(g[C]=y[C],g.$vars.push(C))});var b=getECData(t.el);b.componentMainType=l,b.componentIndex=d,b.tooltipConfig={name:o,option:defaults({content:o,formatterParams:g},s)}}function traverseElement(t,r){var n;t.isGroup&&(n=r(t)),n||t.traverse(r)}function traverseElements(t,r){if(t)if(isArray$1(t))for(var n=0;n<t.length;n++)traverseElement(t[n],r);else traverseElement(t,r)}registerShape("circle",Circle$1);registerShape("ellipse",Ellipse$1);registerShape("sector",Sector$1);registerShape("ring",Ring$1);registerShape("polygon",Polygon$1);registerShape("polyline",Polyline$3);registerShape("rect",Rect$3);registerShape("line",Line$3);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);var graphic$1=Object.freeze(Object.defineProperty({__proto__:null,updateProps:updateProps$1,initProps,removeElement,removeElementWithFadeOut,isElementRemoved,extendShape,extendPath,registerShape,getShapeClass,makePath,makeImage,mergePath,resizePath,subPixelOptimizeLine,subPixelOptimizeRect,subPixelOptimize,getTransform:getTransform$1,applyTransform,transformDirection,groupTransition,clipPointsByRect,clipRectByRect,createIcon,linePolygonIntersect,lineLineIntersect:lineLineIntersect$1,setTooltipConfig,traverseElements,Group:Group$4,Image:ZRImage$1,Text:ZRText$1,Circle:Circle$1,Ellipse:Ellipse$1,Sector:Sector$1,Ring:Ring$1,Polygon:Polygon$1,Polyline:Polyline$3,Rect:Rect$3,Line:Line$3,BezierCurve:BezierCurve$1,Arc:Arc$1,IncrementalDisplayable:IncrementalDisplayable$1,CompoundPath:CompoundPath$1,LinearGradient:LinearGradient$1,RadialGradient:RadialGradient$1,BoundingRect:BoundingRect$1,OrientedBoundingRect:OrientedBoundingRect$1,Point:Point$1,Path:Path$1},Symbol.toStringTag,{value:"Module"})),EMPTY_OBJ={};function setLabelText(t,r){for(var n=0;n<SPECIAL_STATES.length;n++){var o=SPECIAL_STATES[n],s=r[o],l=t.ensureState(o);l.style=l.style||{},l.style.text=s}var d=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:r.normal}),t.useStates(d,!0)}function getLabelText(t,r,n){var o=t.labelFetcher,s=t.labelDataIndex,l=t.labelDimIndex,d=r.normal,g;o&&(g=o.getFormattedLabel(s,"normal",null,l,d&&d.get("formatter"),n!=null?{interpolatedValue:n}:null)),g==null&&(g=isFunction(t.defaultText)?t.defaultText(s,t,n):t.defaultText);for(var y={normal:g},b=0;b<SPECIAL_STATES.length;b++){var C=SPECIAL_STATES[b],x=r[C];y[C]=retrieve2(o?o.getFormattedLabel(s,C,null,l,x&&x.get("formatter")):null,g)}return y}function setLabelStyle(t,r,n,o){n=n||EMPTY_OBJ;for(var s=t instanceof ZRText$1,l=!1,d=0;d<DISPLAY_STATES.length;d++){var g=r[DISPLAY_STATES[d]];if(g&&g.getShallow("show")){l=!0;break}}var y=s?t:t.getTextContent();if(l){s||(y||(y=new ZRText$1,t.setTextContent(y)),t.stateProxy&&(y.stateProxy=t.stateProxy));var b=getLabelText(n,r),C=r.normal,x=!!C.getShallow("show"),S=createTextStyle$1(C,o&&o.normal,n,!1,!s);S.text=b.normal,s||t.setTextConfig(createTextConfig(C,n,!1));for(var d=0;d<SPECIAL_STATES.length;d++){var _=SPECIAL_STATES[d],g=r[_];if(g){var w=y.ensureState(_),$=!!retrieve2(g.getShallow("show"),x);if($!==x&&(w.ignore=!$),w.style=createTextStyle$1(g,o&&o[_],n,!0,!s),w.style.text=b[_],!s){var I=t.ensureState(_);I.textConfig=createTextConfig(g,n,!0)}}}y.silent=!!C.getShallow("silent"),y.style.x!=null&&(S.x=y.style.x),y.style.y!=null&&(S.y=y.style.y),y.ignore=!x,y.useStyle(S),y.dirty(),n.enableTextSetter&&(labelInner(y).setLabelText=function(B){var R=getLabelText(n,r,B);setLabelText(y,R)})}else y&&(y.ignore=!0);t.dirty()}function getLabelStatesModels(t,r){r=r||"label";for(var n={normal:t.getModel(r)},o=0;o<SPECIAL_STATES.length;o++){var s=SPECIAL_STATES[o];n[s]=t.getModel([s,r])}return n}function createTextStyle$1(t,r,n,o,s){var l={};return setTextStyleCommon(l,t,n,o,s),r&&extend(l,r),l}function createTextConfig(t,r,n){r=r||{};var o={},s,l=t.getShallow("rotate"),d=retrieve2(t.getShallow("distance"),n?null:5),g=t.getShallow("offset");return s=t.getShallow("position")||(n?null:"inside"),s==="outside"&&(s=r.defaultOutsidePosition||"top"),s!=null&&(o.position=s),g!=null&&(o.offset=g),l!=null&&(l*=Math.PI/180,o.rotation=l),d!=null&&(o.distance=d),o.outsideFill=t.get("color")==="inherit"?r.inheritColor||null:"auto",o}function setTextStyleCommon(t,r,n,o,s){n=n||EMPTY_OBJ;var l=r.ecModel,d=l&&l.option.textStyle,g=getRichItemNames(r),y;if(g){y={};for(var b in g)if(g.hasOwnProperty(b)){var C=r.getModel(["rich",b]);setTokenTextStyle(y[b]={},C,d,n,o,s,!1,!0)}}y&&(t.rich=y);var x=r.get("overflow");x&&(t.overflow=x);var S=r.get("minMargin");S!=null&&(t.margin=S),setTokenTextStyle(t,r,d,n,o,s,!0,!1)}function getRichItemNames(t){for(var r;t&&t!==t.ecModel;){var n=(t.option||EMPTY_OBJ).rich;if(n){r=r||{};for(var o=keys(n),s=0;s<o.length;s++){var l=o[s];r[l]=1}}t=t.parentModel}return r}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle(t,r,n,o,s,l,d,g){n=!s&&n||EMPTY_OBJ;var y=o&&o.inheritColor,b=r.getShallow("color"),C=r.getShallow("textBorderColor"),x=retrieve2(r.getShallow("opacity"),n.opacity);(b==="inherit"||b==="auto")&&(y?b=y:b=null),(C==="inherit"||C==="auto")&&(y?C=y:C=null),l||(b=b||n.color,C=C||n.textBorderColor),b!=null&&(t.fill=b),C!=null&&(t.stroke=C);var S=retrieve2(r.getShallow("textBorderWidth"),n.textBorderWidth);S!=null&&(t.lineWidth=S);var _=retrieve2(r.getShallow("textBorderType"),n.textBorderType);_!=null&&(t.lineDash=_);var w=retrieve2(r.getShallow("textBorderDashOffset"),n.textBorderDashOffset);w!=null&&(t.lineDashOffset=w),!s&&x==null&&!g&&(x=o&&o.defaultOpacity),x!=null&&(t.opacity=x),!s&&!l&&t.fill==null&&o.inheritColor&&(t.fill=o.inheritColor);for(var $=0;$<TEXT_PROPS_WITH_GLOBAL.length;$++){var I=TEXT_PROPS_WITH_GLOBAL[$],B=retrieve2(r.getShallow(I),n[I]);B!=null&&(t[I]=B)}for(var $=0;$<TEXT_PROPS_SELF.length;$++){var I=TEXT_PROPS_SELF[$],B=r.getShallow(I);B!=null&&(t[I]=B)}if(t.verticalAlign==null){var R=r.getShallow("baseline");R!=null&&(t.verticalAlign=R)}if(!d||!o.disableBox){for(var $=0;$<TEXT_PROPS_BOX.length;$++){var I=TEXT_PROPS_BOX[$],B=r.getShallow(I);B!=null&&(t[I]=B)}var P=r.getShallow("borderType");P!=null&&(t.borderDash=P),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&y&&(t.backgroundColor=y),(t.borderColor==="auto"||t.borderColor==="inherit")&&y&&(t.borderColor=y)}}function getFont(t,r){var n=r&&r.getModel("textStyle");return trim$1([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation(t,r,n,o){if(!!t){var s=labelInner(t);s.prevValue=s.value,s.value=n;var l=r.normal;s.valueAnimation=l.get("valueAnimation"),s.valueAnimation&&(s.precision=l.get("precision"),s.defaultInterpolatedText=o,s.statesModels=r)}}function animateLabelValue(t,r,n,o,s){var l=labelInner(t);if(!l.valueAnimation||l.prevValue===l.value)return;var d=l.defaultInterpolatedText,g=retrieve2(l.interpolatedValue,l.prevValue),y=l.value;function b(C){var x=interpolateRawValues(n,l.precision,g,y,C);l.interpolatedValue=C===1?null:x;var S=getLabelText({labelDataIndex:r,labelFetcher:s,defaultText:d?d(x):x+""},l.statesModels,x);setLabelText(t,S)}t.percent=0,(l.prevValue==null?initProps:updateProps$1)(t,{percent:1},o,r,null,b)}var PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function t(){}return t.prototype.getTextColor=function(r){var n=this.ecModel;return this.getShallow("color")||(!r&&n?n.get(PATH_COLOR):null)},t.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(r){for(var n={text:r,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},o=0;o<textStyleParams.length;o++)n[textStyleParams[o]]=this.getShallow(textStyleParams[o]);return tmpText.useStyle(n),tmpText.update(),tmpText.getBoundingRect()},t}(),TextStyleMixin$1=TextStyleMixin,LINE_STYLE_KEY_MAP=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],getLineStyle=makeStyleMapper(LINE_STYLE_KEY_MAP),LineStyleMixin=function(){function t(){}return t.prototype.getLineStyle=function(r){return getLineStyle(this,r)},t}(),ITEM_STYLE_KEY_MAP=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],getItemStyle=makeStyleMapper(ITEM_STYLE_KEY_MAP),ItemStyleMixin=function(){function t(){}return t.prototype.getItemStyle=function(r,n){return getItemStyle(this,r,n)},t}(),Model=function(){function t(r,n,o){this.parentModel=n,this.ecModel=o,this.option=r}return t.prototype.init=function(r,n,o){},t.prototype.mergeOption=function(r,n){merge(this.option,r,!0)},t.prototype.get=function(r,n){return r==null?this.option:this._doGet(this.parsePath(r),!n&&this.parentModel)},t.prototype.getShallow=function(r,n){var o=this.option,s=o==null?o:o[r];if(s==null&&!n){var l=this.parentModel;l&&(s=l.getShallow(r))}return s},t.prototype.getModel=function(r,n){var o=r!=null,s=o?this.parsePath(r):null,l=o?this._doGet(s):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(s)),new t(l,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var r=this.constructor;return new r(clone$4(this.option))},t.prototype.parsePath=function(r){return typeof r=="string"?r.split("."):r},t.prototype.resolveParentPath=function(r){return r},t.prototype.isAnimationEnabled=function(){if(!env$1.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(r,n){var o=this.option;if(!r)return o;for(var s=0;s<r.length&&!(!!r[s]&&(o=o&&typeof o=="object"?o[r[s]]:null,o==null));s++);return o==null&&n&&(o=n._doGet(this.resolveParentPath(r),n.parentModel)),o},t}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);var Model$1=Model,base=Math.round(Math.random()*10);function getUID(t){return[t||"",base++].join("_")}function enableSubTypeDefaulter(t){var r={};t.registerSubTypeDefaulter=function(n,o){var s=parseClassType(n);r[s.main]=o},t.determineSubType=function(n,o){var s=o.type;if(!s){var l=parseClassType(n).main;t.hasSubTypes(n)&&r[l]&&(s=r[l](o))}return s}}function enableTopologicalTravel(t,r){t.topologicalTravel=function(l,d,g,y){if(!l.length)return;var b=n(d),C=b.graph,x=b.noEntryList,S={};for(each$f(l,function(R){S[R]=!0});x.length;){var _=x.pop(),w=C[_],$=!!S[_];$&&(g.call(y,_,w.originalDeps.slice()),delete S[_]),each$f(w.successor,$?B:I)}each$f(S,function(){var R="";throw new Error(R)});function I(R){C[R].entryCount--,C[R].entryCount===0&&x.push(R)}function B(R){S[R]=!0,I(R)}};function n(l){var d={},g=[];return each$f(l,function(y){var b=o(d,y),C=b.originalDeps=r(y),x=s(C,l);b.entryCount=x.length,b.entryCount===0&&g.push(y),each$f(x,function(S){indexOf(b.predecessor,S)<0&&b.predecessor.push(S);var _=o(d,S);indexOf(_.successor,S)<0&&_.successor.push(y)})}),{graph:d,noEntryList:g}}function o(l,d){return l[d]||(l[d]={predecessor:[],successor:[]}),l[d]}function s(l,d){var g=[];return each$f(l,function(y){indexOf(d,y)>=0&&g.push(y)}),g}}function inheritDefaultOption(t,r){return merge(merge({},t,!0),r,!0)}var langEN={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:". "}}}},langZH={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:""}}}},LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(t,r){t=t.toUpperCase(),localeModels[t]=new Model$1(r),localeStorage[t]=r}function createLocaleObject(t){if(isString(t)){var r=localeStorage[t.toUpperCase()]||{};return t===LOCALE_ZH||t===LOCALE_EN?clone$4(r):merge(clone$4(r),clone$4(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$4(t),clone$4(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(t){return localeModels[t]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={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}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(t,r){return t+="","0000".substr(0,r-t.length)+t}function getPrimaryTimeUnit(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function isPrimaryTimeUnit(t){return t===getPrimaryTimeUnit(t)}function getDefaultFormatPrecisionOfInterval(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1(t,r,n,o){var s=parseDate(t),l=s[fullYearGetterName(n)](),d=s[monthGetterName(n)]()+1,g=Math.floor((d-1)/3)+1,y=s[dateGetterName(n)](),b=s["get"+(n?"UTC":"")+"Day"](),C=s[hoursGetterName(n)](),x=(C-1)%12+1,S=s[minutesGetterName(n)](),_=s[secondsGetterName(n)](),w=s[millisecondsGetterName(n)](),$=o instanceof Model$1?o:getLocaleModel(o||SYSTEM_LANG)||getDefaultLocaleModel(),I=$.getModel("time"),B=I.get("month"),R=I.get("monthAbbr"),P=I.get("dayOfWeek"),M=I.get("dayOfWeekAbbr");return(r||"").replace(/{yyyy}/g,l+"").replace(/{yy}/g,l%100+"").replace(/{Q}/g,g+"").replace(/{MMMM}/g,B[d-1]).replace(/{MMM}/g,R[d-1]).replace(/{MM}/g,pad(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,pad(y,2)).replace(/{d}/g,y+"").replace(/{eeee}/g,P[b]).replace(/{ee}/g,M[b]).replace(/{e}/g,b+"").replace(/{HH}/g,pad(C,2)).replace(/{H}/g,C+"").replace(/{hh}/g,pad(x+"",2)).replace(/{h}/g,x+"").replace(/{mm}/g,pad(S,2)).replace(/{m}/g,S+"").replace(/{ss}/g,pad(_,2)).replace(/{s}/g,_+"").replace(/{SSS}/g,pad(w,3)).replace(/{S}/g,w+"")}function leveledFormat(t,r,n,o,s){var l=null;if(isString(n))l=n;else if(isFunction(n))l=n(t.value,r,{level:t.level});else{var d=extend({},defaultLeveledFormatter);if(t.level>0)for(var g=0;g<primaryTimeUnits.length;++g)d[primaryTimeUnits[g]]="{primary|"+d[primaryTimeUnits[g]]+"}";var y=n?n.inherit===!1?n:defaults(n,d):d,b=getUnitFromValue(t.value,s);if(y[b])l=y[b];else if(y.inherit){for(var C=timeUnits.indexOf(b),g=C-1;g>=0;--g)if(y[b]){l=y[b];break}l=l||d.none}if(isArray$1(l)){var x=t.level==null?0:t.level>=0?t.level:l.length+t.level;x=Math.min(x,l.length-1),l=l[x]}}return format$1(new Date(t.value),l,s,o)}function getUnitFromValue(t,r){var n=parseDate(t),o=n[monthGetterName(r)]()+1,s=n[dateGetterName(r)](),l=n[hoursGetterName(r)](),d=n[minutesGetterName(r)](),g=n[secondsGetterName(r)](),y=n[millisecondsGetterName(r)](),b=y===0,C=b&&g===0,x=C&&d===0,S=x&&l===0,_=S&&s===1,w=_&&o===1;return w?"year":_?"month":S?"day":x?"hour":C?"minute":b?"second":"millisecond"}function getUnitValue(t,r,n){var o=isNumber(t)?parseDate(t):t;switch(r=r||getUnitFromValue(t,n),r){case"year":return o[fullYearGetterName(n)]();case"half-year":return o[monthGetterName(n)]()>=6?1:0;case"quarter":return Math.floor((o[monthGetterName(n)]()+1)/4);case"month":return o[monthGetterName(n)]();case"day":return o[dateGetterName(n)]();case"half-day":return o[hoursGetterName(n)]()/24;case"hour":return o[hoursGetterName(n)]();case"minute":return o[minutesGetterName(n)]();case"second":return o[secondsGetterName(n)]();case"millisecond":return o[millisecondsGetterName(n)]()}}function fullYearGetterName(t){return t?"getUTCFullYear":"getFullYear"}function monthGetterName(t){return t?"getUTCMonth":"getMonth"}function dateGetterName(t){return t?"getUTCDate":"getDate"}function hoursGetterName(t){return t?"getUTCHours":"getHours"}function minutesGetterName(t){return t?"getUTCMinutes":"getMinutes"}function secondsGetterName(t){return t?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(t){return t?"setUTCFullYear":"setFullYear"}function monthSetterName(t){return t?"setUTCMonth":"setMonth"}function dateSetterName(t){return t?"setUTCDate":"setDate"}function hoursSetterName(t){return t?"setUTCHours":"setHours"}function minutesSetterName(t){return t?"setUTCMinutes":"setMinutes"}function secondsSetterName(t){return t?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(t){return t?"setUTCMilliseconds":"setMilliseconds"}function getTextRect(t,r,n,o,s,l,d,g){var y=new ZRText$1({style:{text:t,font:r,align:n,verticalAlign:o,padding:s,rich:l,overflow:d?"truncate":null,lineHeight:g}});return y.getBoundingRect()}function addCommas(t){if(!isNumeric(t))return isString(t)?t:"-";var r=(t+"").split(".");return r[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(r.length>1?"."+r[1]:"")}function toCamelCase(t,r){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,o){return o.toUpperCase()}),r&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(t,r,n){var o="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function s(C){return C&&trim$1(C)?C:"-"}function l(C){return!!(C!=null&&!isNaN(C)&&isFinite(C))}var d=r==="time",g=t instanceof Date;if(d||g){var y=d?parseDate(t):t;if(isNaN(+y)){if(g)return"-"}else return format$1(y,o,n)}if(r==="ordinal")return isStringSafe(t)?s(t):isNumber(t)&&l(t)?t+"":"-";var b=numericToNumber(t);return l(b)?addCommas(b):isStringSafe(t)?s(t):typeof t=="boolean"?t+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(t,r){return"{"+t+(r==null?"":r)+"}"};function formatTpl(t,r,n){isArray$1(r)||(r=[r]);var o=r.length;if(!o)return"";for(var s=r[0].$vars||[],l=0;l<s.length;l++){var d=TPL_VAR_ALIAS[l];t=t.replace(wrapVar(d),wrapVar(d,0))}for(var g=0;g<o;g++)for(var y=0;y<s.length;y++){var b=r[g][s[y]];t=t.replace(wrapVar(TPL_VAR_ALIAS[y],g),n?encodeHTML(b):b)}return t}function formatTplSimple(t,r,n){return each$f(r,function(o,s){t=t.replace("{"+s+"}",n?encodeHTML(o):o)}),t}function getTooltipMarker(t,r){var n=isString(t)?{color:t,extraCssText:r}:t||{},o=n.color,s=n.type;r=n.extraCssText;var l=n.renderMode||"html";if(!o)return"";if(l==="html")return s==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+encodeHTML(o)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(o)+";"+(r||"")+'"></span>';var d=n.markerId||"markerX";return{renderMode:l,content:"{"+d+"|} ",style:s==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}}function formatTime(t,r,n){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
|
|
yyyy`);var o=parseDate(r),s=n?"getUTC":"get",l=o[s+"FullYear"](),d=o[s+"Month"]()+1,g=o[s+"Date"](),y=o[s+"Hours"](),b=o[s+"Minutes"](),C=o[s+"Seconds"](),x=o[s+"Milliseconds"]();return t=t.replace("MM",pad(d,2)).replace("M",d).replace("yyyy",l).replace("yy",pad(l%100+"",2)).replace("dd",pad(g,2)).replace("d",g).replace("hh",pad(y,2)).replace("h",y).replace("mm",pad(b,2)).replace("m",b).replace("ss",pad(C,2)).replace("s",C).replace("SSS",pad(x,3)),t}function capitalFirst(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function convertToColorString(t,r){return r=r||"transparent",isString(t)?t:isObject$3(t)&&t.colorStops&&(t.colorStops[0]||{}).color||r}function windowOpen(t,r){if(r==="_blank"||r==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,r)}var each$e=each$f,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(t,r,n,o,s){var l=0,d=0;o==null&&(o=1/0),s==null&&(s=1/0);var g=0;r.eachChild(function(y,b){var C=y.getBoundingRect(),x=r.childAt(b+1),S=x&&x.getBoundingRect(),_,w;if(t==="horizontal"){var $=C.width+(S?-S.x+C.x:0);_=l+$,_>o||y.newline?(l=0,_=$,d+=g+n,g=C.height):g=Math.max(g,C.height)}else{var I=C.height+(S?-S.y+C.y:0);w=d+I,w>s||y.newline?(l+=g+n,d=0,w=I,g=C.width):g=Math.max(g,C.width)}y.newline||(y.x=l,y.y=d,y.markRedraw(),t==="horizontal"?l=_+n:d=w+n)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getAvailableSize(t,r,n){var o=r.width,s=r.height,l=parsePercent(t.left,o),d=parsePercent(t.top,s),g=parsePercent(t.right,o),y=parsePercent(t.bottom,s);return(isNaN(l)||isNaN(parseFloat(t.left)))&&(l=0),(isNaN(g)||isNaN(parseFloat(t.right)))&&(g=o),(isNaN(d)||isNaN(parseFloat(t.top)))&&(d=0),(isNaN(y)||isNaN(parseFloat(t.bottom)))&&(y=s),n=normalizeCssArray(n||0),{width:Math.max(g-l-n[1]-n[3],0),height:Math.max(y-d-n[0]-n[2],0)}}function getLayoutRect(t,r,n){n=normalizeCssArray(n||0);var o=r.width,s=r.height,l=parsePercent(t.left,o),d=parsePercent(t.top,s),g=parsePercent(t.right,o),y=parsePercent(t.bottom,s),b=parsePercent(t.width,o),C=parsePercent(t.height,s),x=n[2]+n[0],S=n[1]+n[3],_=t.aspect;switch(isNaN(b)&&(b=o-g-S-l),isNaN(C)&&(C=s-y-x-d),_!=null&&(isNaN(b)&&isNaN(C)&&(_>o/s?b=o*.8:C=s*.8),isNaN(b)&&(b=_*C),isNaN(C)&&(C=b/_)),isNaN(l)&&(l=o-g-b-S),isNaN(d)&&(d=s-y-C-x),t.left||t.right){case"center":l=o/2-b/2-n[3];break;case"right":l=o-b-S;break}switch(t.top||t.bottom){case"middle":case"center":d=s/2-C/2-n[0];break;case"bottom":d=s-C-x;break}l=l||0,d=d||0,isNaN(b)&&(b=o-S-l-(g||0)),isNaN(C)&&(C=s-x-d-(y||0));var w=new BoundingRect$1(l+n[3],d+n[0],b,C);return w.margin=n,w}function positionElement(t,r,n,o,s,l){var d=!s||!s.hv||s.hv[0],g=!s||!s.hv||s.hv[1],y=s&&s.boundingMode||"all";if(l=l||t,l.x=t.x,l.y=t.y,!d&&!g)return!1;var b;if(y==="raw")b=t.type==="group"?new BoundingRect$1(0,0,+r.width||0,+r.height||0):t.getBoundingRect();else if(b=t.getBoundingRect(),t.needLocalTransform()){var C=t.getLocalTransform();b=b.clone(),b.applyTransform(C)}var x=getLayoutRect(defaults({width:b.width,height:b.height},r),n,o),S=d?x.x-b.x:0,_=g?x.y-b.y:0;return y==="raw"?(l.x=S,l.y=_):(l.x+=S,l.y+=_),l===t&&t.markRedraw(),!0}function sizeCalculable(t,r){return t[HV_NAMES[r][0]]!=null||t[HV_NAMES[r][1]]!=null&&t[HV_NAMES[r][2]]!=null}function fetchLayoutMode(t){var r=t.layoutMode||t.constructor.layoutMode;return isObject$3(r)?r:r?{type:r}:null}function mergeLayoutParam(t,r,n){var o=n&&n.ignoreSize;!isArray$1(o)&&(o=[o,o]);var s=d(HV_NAMES[0],0),l=d(HV_NAMES[1],1);b(HV_NAMES[0],t,s),b(HV_NAMES[1],t,l);function d(C,x){var S={},_=0,w={},$=0,I=2;if(each$e(C,function(P){w[P]=t[P]}),each$e(C,function(P){g(r,P)&&(S[P]=w[P]=r[P]),y(S,P)&&_++,y(w,P)&&$++}),o[x])return y(r,C[1])?w[C[2]]=null:y(r,C[2])&&(w[C[1]]=null),w;if($===I||!_)return w;if(_>=I)return S;for(var B=0;B<C.length;B++){var R=C[B];if(!g(S,R)&&g(t,R)){S[R]=t[R];break}}return S}function g(C,x){return C.hasOwnProperty(x)}function y(C,x){return C[x]!=null&&C[x]!=="auto"}function b(C,x,S){each$e(C,function(_){x[_]=S[_]})}}function getLayoutParams(t){return copyLayoutParams({},t)}function copyLayoutParams(t,r){return r&&t&&each$e(LOCATION_PARAMS,function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t}var inner$l=makeInner(),ComponentModel=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this,n,o,s)||this;return l.uid=getUID("ec_cpt_model"),l}return r.prototype.init=function(n,o,s){this.mergeDefaultAndTheme(n,s)},r.prototype.mergeDefaultAndTheme=function(n,o){var s=fetchLayoutMode(this),l=s?getLayoutParams(n):{},d=o.getTheme();merge(n,d.get(this.mainType)),merge(n,this.getDefaultOption()),s&&mergeLayoutParam(n,l,s)},r.prototype.mergeOption=function(n,o){merge(this.option,n,!0);var s=fetchLayoutMode(this);s&&mergeLayoutParam(this.option,n,s)},r.prototype.optionUpdated=function(n,o){},r.prototype.getDefaultOption=function(){var n=this.constructor;if(!isExtendedClass(n))return n.defaultOption;var o=inner$l(this);if(!o.defaultOption){for(var s=[],l=n;l;){var d=l.prototype.defaultOption;d&&s.push(d),l=l.superClass}for(var g={},y=s.length-1;y>=0;y--)g=merge(g,s[y],!0);o.defaultOption=g}return o.defaultOption},r.prototype.getReferringComponents=function(n,o){var s=n+"Index",l=n+"Id";return queryReferringComponents(this.ecModel,n,{index:this.get(s,!0),id:this.get(l,!0)},o)},r.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},r.prototype.getZLevelKey=function(){return""},r.prototype.setZLevel=function(n){this.option.zlevel=n},r.protoInitialize=function(){var n=r.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),r}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(t){var r=[];return each$f(ComponentModel.getClassesByMainType(t),function(n){r=r.concat(n.dependencies||n.prototype.dependencies||[])}),r=map$1(r,function(n){return parseClassType(n).main}),t!=="dataset"&&indexOf(r,"dataset")<=0&&r.unshift("dataset"),r}var ComponentModel$1=ComponentModel,platform="";typeof navigator!="undefined"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)",globalDefault={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:decalColor,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:decalColor,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:decalColor,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:decalColor,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:decalColor,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:decalColor,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:platform.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},VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter(t){innerGlobalModel(t).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(t,r,n){var o={},s=querySeriesUpstreamDatasetModel(r);if(!s||!t)return o;var l=[],d=[],g=r.ecModel,y=innerGlobalModel(g).datasetMap,b=s.uid+"_"+n.seriesLayoutBy,C,x;t=t.slice(),each$f(t,function($,I){var B=isObject$3($)?$:t[I]={name:$};B.type==="ordinal"&&C==null&&(C=I,x=w(B)),o[B.name]=[]});var S=y.get(b)||y.set(b,{categoryWayDim:x,valueWayDim:0});each$f(t,function($,I){var B=$.name,R=w($);if(C==null){var P=S.valueWayDim;_(o[B],P,R),_(d,P,R),S.valueWayDim+=R}else if(C===I)_(o[B],0,R),_(l,0,R);else{var P=S.categoryWayDim;_(o[B],P,R),_(d,P,R),S.categoryWayDim+=R}});function _($,I,B){for(var R=0;R<B;R++)$.push(I+R)}function w($){var I=$.dimsDef;return I?I.length:1}return l.length&&(o.itemName=l),d.length&&(o.seriesName=d),o}function makeSeriesEncodeForNameBased(t,r,n){var o={},s=querySeriesUpstreamDatasetModel(t);if(!s)return o;var l=r.sourceFormat,d=r.dimensionsDefine,g;(l===SOURCE_FORMAT_OBJECT_ROWS||l===SOURCE_FORMAT_KEYED_COLUMNS)&&each$f(d,function(C,x){(isObject$3(C)?C.name:C)==="name"&&(g=x)});var y=function(){for(var C={},x={},S=[],_=0,w=Math.min(5,n);_<w;_++){var $=doGuessOrdinal(r.data,l,r.seriesLayoutBy,d,r.startIndex,_);S.push($);var I=$===BE_ORDINAL.Not;if(I&&C.v==null&&_!==g&&(C.v=_),(C.n==null||C.n===C.v||!I&&S[C.n]===BE_ORDINAL.Not)&&(C.n=_),B(C)&&S[C.n]!==BE_ORDINAL.Not)return C;I||($===BE_ORDINAL.Might&&x.v==null&&_!==g&&(x.v=_),(x.n==null||x.n===x.v)&&(x.n=_))}function B(R){return R.v!=null&&R.n!=null}return B(C)?C:B(x)?x:null}();if(y){o.value=[y.v];var b=g!=null?g:y.n;o.itemName=[b],o.seriesName=[b]}return o}function querySeriesUpstreamDatasetModel(t){var r=t.get("data",!0);if(!r)return queryReferringComponents(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:queryReferringComponents(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal(t,r){return doGuessOrdinal(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,r)}function doGuessOrdinal(t,r,n,o,s,l){var d,g=5;if(isTypedArray(t))return BE_ORDINAL.Not;var y,b;if(o){var C=o[l];isObject$3(C)?(y=C.name,b=C.type):isString(C)&&(y=C)}if(b!=null)return b==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(r===SOURCE_FORMAT_ARRAY_ROWS){var x=t;if(n===SERIES_LAYOUT_BY_ROW){for(var S=x[l],_=0;_<(S||[]).length&&_<g;_++)if((d=M(S[s+_]))!=null)return d}else for(var _=0;_<x.length&&_<g;_++){var w=x[s+_];if(w&&(d=M(w[l]))!=null)return d}}else if(r===SOURCE_FORMAT_OBJECT_ROWS){var $=t;if(!y)return BE_ORDINAL.Not;for(var _=0;_<$.length&&_<g;_++){var I=$[_];if(I&&(d=M(I[y]))!=null)return d}}else if(r===SOURCE_FORMAT_KEYED_COLUMNS){var B=t;if(!y)return BE_ORDINAL.Not;var S=B[y];if(!S||isTypedArray(S))return BE_ORDINAL.Not;for(var _=0;_<S.length&&_<g;_++)if((d=M(S[_]))!=null)return d}else if(r===SOURCE_FORMAT_ORIGINAL)for(var R=t,_=0;_<R.length&&_<g;_++){var I=R[_],P=getDataItemValue(I);if(!isArray$1(P))return BE_ORDINAL.Not;if((d=M(P[l]))!=null)return d}function M(O){var D=isString(O);if(O!=null&&isFinite(O)&&O!=="")return D?BE_ORDINAL.Might:BE_ORDINAL.Not;if(D&&O!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function registerInternalOptionCreator(t,r){assert(internalOptionCreatorMap.get(t)==null&&r),internalOptionCreatorMap.set(t,r)}function concatInternalOptions(t,r,n){var o=internalOptionCreatorMap.get(r);if(!o)return n;var s=o(t);return s?n.concat(s):n}var innerColor=makeInner(),innerDecal=makeInner(),PaletteMixin=function(){function t(){}return t.prototype.getColorFromPalette=function(r,n,o){var s=normalizeToArray(this.get("color",!0)),l=this.get("colorLayer",!0);return getFromPalette(this,innerColor,s,l,r,n,o)},t.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},t}();function getDecalFromPalette(t,r,n,o){var s=normalizeToArray(t.get(["aria","decal","decals"]));return getFromPalette(t,innerDecal,s,null,r,n,o)}function getNearestPalette(t,r){for(var n=t.length,o=0;o<n;o++)if(t[o].length>r)return t[o];return t[n-1]}function getFromPalette(t,r,n,o,s,l,d){l=l||t;var g=r(l),y=g.paletteIdx||0,b=g.paletteNameMap=g.paletteNameMap||{};if(b.hasOwnProperty(s))return b[s];var C=d==null||!o?n:getNearestPalette(o,d);if(C=C||n,!(!C||!C.length)){var x=C[y];return s&&(b[s]=x),g.paletteIdx=(y+1)%C.length,x}}function clearPalette(t,r){r(t).paletteIdx=0,r(t).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(n,o,s,l,d,g){l=l||{},this.option=null,this._theme=new Model$1(l),this._locale=new Model$1(d),this._optionManager=g},r.prototype.setOption=function(n,o,s){var l=normalizeSetOptionInput(o);this._optionManager.setOption(n,s,l),this._resetOption(null,l)},r.prototype.resetOption=function(n,o){return this._resetOption(n,normalizeSetOptionInput(o))},r.prototype._resetOption=function(n,o){var s=!1,l=this._optionManager;if(!n||n==="recreate"){var d=l.mountOption(n==="recreate");!this.option||n==="recreate"?initBase(this,d):(this.restoreData(),this._mergeOption(d,o)),s=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var g=l.getTimelineOption(this);g&&(s=!0,this._mergeOption(g,o))}if(!n||n==="recreate"||n==="media"){var y=l.getMediaOption(this);y.length&&each$f(y,function(b){s=!0,this._mergeOption(b,o)},this)}return s},r.prototype.mergeOption=function(n){this._mergeOption(n,null)},r.prototype._mergeOption=function(n,o){var s=this.option,l=this._componentsMap,d=this._componentsCount,g=[],y=createHashMap(),b=o&&o.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$f(n,function(x,S){x!=null&&(ComponentModel$1.hasClass(S)?S&&(g.push(S),y.set(S,!0)):s[S]=s[S]==null?clone$4(x):merge(s[S],x,!0))}),b&&b.each(function(x,S){ComponentModel$1.hasClass(S)&&!y.get(S)&&(g.push(S),y.set(S,!0))}),ComponentModel$1.topologicalTravel(g,ComponentModel$1.getAllClassMainTypes(),C,this);function C(x){var S=concatInternalOptions(this,x,normalizeToArray(n[x])),_=l.get(x),w=_?b&&b.get(x)?"replaceMerge":"normalMerge":"replaceAll",$=mappingToExists(_,S,w);setComponentTypeToKeyInfo($,x,ComponentModel$1),s[x]=null,l.set(x,null),d.set(x,0);var I=[],B=[],R=0,P;each$f($,function(M,O){var D=M.existing,N=M.newOption;if(!N)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var H=x==="series",Q=ComponentModel$1.getClass(x,M.keyInfo.subType,!H);if(!Q)return;if(x==="tooltip"){if(P)return;P=!0}if(D&&D.constructor===Q)D.name=M.keyInfo.name,D.mergeOption(N,this),D.optionUpdated(N,!1);else{var G=extend({componentIndex:O},M.keyInfo);D=new Q(N,this,this,G),extend(D,G),M.brandNew&&(D.__requireNewView=!0),D.init(N,this,this),D.optionUpdated(null,!0)}}D?(I.push(D.option),B.push(D),R++):(I.push(void 0),B.push(void 0))},this),s[x]=I,l.set(x,B),d.set(x,R),x==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},r.prototype.getOption=function(){var n=clone$4(this.option);return each$f(n,function(o,s){if(ComponentModel$1.hasClass(s)){for(var l=normalizeToArray(o),d=l.length,g=!1,y=d-1;y>=0;y--)l[y]&&!isComponentIdInternal(l[y])?g=!0:(l[y]=null,!g&&d--);l.length=d,n[s]=l}}),delete n[OPTION_INNER_KEY],n},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.setUpdatePayload=function(n){this._payload=n},r.prototype.getUpdatePayload=function(){return this._payload},r.prototype.getComponent=function(n,o){var s=this._componentsMap.get(n);if(s){var l=s[o||0];if(l)return l;if(o==null){for(var d=0;d<s.length;d++)if(s[d])return s[d]}}},r.prototype.queryComponents=function(n){var o=n.mainType;if(!o)return[];var s=n.index,l=n.id,d=n.name,g=this._componentsMap.get(o);if(!g||!g.length)return[];var y;return s!=null?(y=[],each$f(normalizeToArray(s),function(b){g[b]&&y.push(g[b])})):l!=null?y=queryByIdOrName("id",l,g):d!=null?y=queryByIdOrName("name",d,g):y=filter(g,function(b){return!!b}),filterBySubType(y,n)},r.prototype.findComponents=function(n){var o=n.query,s=n.mainType,l=g(o),d=l?this.queryComponents(l):filter(this._componentsMap.get(s),function(b){return!!b});return y(filterBySubType(d,n));function g(b){var C=s+"Index",x=s+"Id",S=s+"Name";return b&&(b[C]!=null||b[x]!=null||b[S]!=null)?{mainType:s,index:b[C],id:b[x],name:b[S]}:null}function y(b){return n.filter?filter(b,n.filter):b}},r.prototype.eachComponent=function(n,o,s){var l=this._componentsMap;if(isFunction(n)){var d=o,g=n;l.each(function(x,S){for(var _=0;x&&_<x.length;_++){var w=x[_];w&&g.call(d,S,w,w.componentIndex)}})}else for(var y=isString(n)?l.get(n):isObject$3(n)?this.findComponents(n):null,b=0;y&&b<y.length;b++){var C=y[b];C&&o.call(s,C,C.componentIndex)}},r.prototype.getSeriesByName=function(n){var o=convertOptionIdName(n,null);return filter(this._componentsMap.get("series"),function(s){return!!s&&o!=null&&s.name===o})},r.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},r.prototype.getSeriesByType=function(n){return filter(this._componentsMap.get("series"),function(o){return!!o&&o.subType===n})},r.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(n){return!!n})},r.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},r.prototype.eachSeries=function(n,o){assertSeriesInitialized(this),each$f(this._seriesIndices,function(s){var l=this._componentsMap.get("series")[s];n.call(o,l,s)},this)},r.prototype.eachRawSeries=function(n,o){each$f(this._componentsMap.get("series"),function(s){s&&n.call(o,s,s.componentIndex)})},r.prototype.eachSeriesByType=function(n,o,s){assertSeriesInitialized(this),each$f(this._seriesIndices,function(l){var d=this._componentsMap.get("series")[l];d.subType===n&&o.call(s,d,l)},this)},r.prototype.eachRawSeriesByType=function(n,o,s){return each$f(this.getSeriesByType(n),o,s)},r.prototype.isSeriesFiltered=function(n){return assertSeriesInitialized(this),this._seriesIndicesMap.get(n.componentIndex)==null},r.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},r.prototype.filterSeries=function(n,o){assertSeriesInitialized(this);var s=[];each$f(this._seriesIndices,function(l){var d=this._componentsMap.get("series")[l];n.call(o,d,l)&&s.push(l)},this),this._seriesIndices=s,this._seriesIndicesMap=createHashMap(s)},r.prototype.restoreData=function(n){reCreateSeriesIndices(this);var o=this._componentsMap,s=[];o.each(function(l,d){ComponentModel$1.hasClass(d)&&s.push(d)}),ComponentModel$1.topologicalTravel(s,ComponentModel$1.getAllClassMainTypes(),function(l){each$f(o.get(l),function(d){d&&(l!=="series"||!isNotTargetSeries(d,n))&&d.restoreData()})})},r.internalField=function(){reCreateSeriesIndices=function(n){var o=n._seriesIndices=[];each$f(n._componentsMap.get("series"),function(s){s&&o.push(s.componentIndex)}),n._seriesIndicesMap=createHashMap(o)},assertSeriesInitialized=function(n){},initBase=function(n,o){n.option={},n.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,n._componentsMap=createHashMap({series:[]}),n._componentsCount=createHashMap();var s=o.aria;isObject$3(s)&&s.enabled==null&&(s.enabled=!0),mergeTheme(o,n._theme.option),merge(o,globalDefault,!1),n._mergeOption(o,null)}}(),r}(Model$1);function isNotTargetSeries(t,r){if(r){var n=r.seriesIndex,o=r.seriesId,s=r.seriesName;return n!=null&&t.componentIndex!==n||o!=null&&t.id!==o||s!=null&&t.name!==s}}function mergeTheme(t,r){var n=t.color&&!t.colorLayer;each$f(r,function(o,s){s==="colorLayer"&&n||ComponentModel$1.hasClass(s)||(typeof o=="object"?t[s]=t[s]?merge(t[s],o,!1):clone$4(o):t[s]==null&&(t[s]=o))})}function queryByIdOrName(t,r,n){if(isArray$1(r)){var o=createHashMap();return each$f(r,function(l){if(l!=null){var d=convertOptionIdName(l,null);d!=null&&o.set(l,!0)}}),filter(n,function(l){return l&&o.get(l[t])})}else{var s=convertOptionIdName(r,null);return filter(n,function(l){return l&&s!=null&&l[t]===s})}}function filterBySubType(t,r){return r.hasOwnProperty("subType")?filter(t,function(n){return n&&n.subType===r.subType}):t}function normalizeSetOptionInput(t){var r=createHashMap();return t&&each$f(normalizeToArray(t.replaceMerge),function(n){r.set(n,!0)}),{replaceMergeMainTypeMap:r}}mixin(GlobalModel,PaletteMixin);var GlobalModel$1=GlobalModel,availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function t(r){each$f(availableMethods,function(n){this[n]=bind$1(r[n],r)},this)}return t}(),ExtensionAPI$1=ExtensionAPI,coordinateSystemCreators={},CoordinateSystemManager=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(r,n){var o=[];each$f(coordinateSystemCreators,function(s,l){var d=s.create(r,n);o=o.concat(d||[])}),this._coordinateSystems=o},t.prototype.update=function(r,n){each$f(this._coordinateSystems,function(o){o.update&&o.update(r,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(r,n){coordinateSystemCreators[r]=n},t.get=function(r){return coordinateSystemCreators[r]},t}(),CoordinateSystem=CoordinateSystemManager,QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function t(r){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=r}return t.prototype.setOption=function(r,n,o){r&&(each$f(normalizeToArray(r.series),function(d){d&&d.data&&isTypedArray(d.data)&&setAsPrimitive(d.data)}),each$f(normalizeToArray(r.dataset),function(d){d&&d.source&&isTypedArray(d.source)&&setAsPrimitive(d.source)})),r=clone$4(r);var s=this._optionBackup,l=parseRawOption(r,n,!s);this._newBaseOption=l.baseOption,s?(l.timelineOptions.length&&(s.timelineOptions=l.timelineOptions),l.mediaList.length&&(s.mediaList=l.mediaList),l.mediaDefault&&(s.mediaDefault=l.mediaDefault)):this._optionBackup=l},t.prototype.mountOption=function(r){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],clone$4(r?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(r){var n,o=this._timelineOptions;if(o.length){var s=r.getComponent("timeline");s&&(n=clone$4(o[s.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(r){var n=this._api.getWidth(),o=this._api.getHeight(),s=this._mediaList,l=this._mediaDefault,d=[],g=[];if(!s.length&&!l)return g;for(var y=0,b=s.length;y<b;y++)applyMediaQuery(s[y].query,n,o)&&d.push(y);return!d.length&&l&&(d=[-1]),d.length&&!indicesEquals(d,this._currentMediaIndices)&&(g=map$1(d,function(C){return clone$4(C===-1?l.option:s[C].option)})),this._currentMediaIndices=d,g},t}();function parseRawOption(t,r,n){var o=[],s,l,d=t.baseOption,g=t.timeline,y=t.options,b=t.media,C=!!t.media,x=!!(y||g||d&&d.timeline);d?(l=d,l.timeline||(l.timeline=g)):((x||C)&&(t.options=t.media=null),l=t),C&&isArray$1(b)&&each$f(b,function(_){_&&_.option&&(_.query?o.push(_):s||(s=_))}),S(l),each$f(y,function(_){return S(_)}),each$f(o,function(_){return S(_.option)});function S(_){each$f(r,function(w){w(_,n)})}return{baseOption:l,timelineOptions:y||[],mediaDefault:s,mediaList:o}}function applyMediaQuery(t,r,n){var o={width:r,height:n,aspectratio:r/n},s=!0;return each$f(t,function(l,d){var g=d.match(QUERY_REG);if(!(!g||!g[1]||!g[2])){var y=g[1],b=g[2].toLowerCase();compare(o[b],l,y)||(s=!1)}}),s}function compare(t,r,n){return n==="min"?t>=r:n==="max"?t<=r:t===r}function indicesEquals(t,r){return t.join(",")===r.join(",")}var OptionManager$1=OptionManager,each$d=each$f,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(t){var r=t&&t.itemStyle;if(!!r)for(var n=0,o=POSSIBLE_STYLES.length;n<o;n++){var s=POSSIBLE_STYLES[n],l=r.normal,d=r.emphasis;l&&l[s]&&(t[s]=t[s]||{},t[s].normal?merge(t[s].normal,l[s]):t[s].normal=l[s],l[s]=null),d&&d[s]&&(t[s]=t[s]||{},t[s].emphasis?merge(t[s].emphasis,d[s]):t[s].emphasis=d[s],d[s]=null)}}function convertNormalEmphasis(t,r,n){if(t&&t[r]&&(t[r].normal||t[r].emphasis)){var o=t[r].normal,s=t[r].emphasis;o&&(n?(t[r].normal=t[r].emphasis=null,defaults(t[r],o)):t[r]=o),s&&(t.emphasis=t.emphasis||{},t.emphasis[r]=s,s.focus&&(t.emphasis.focus=s.focus),s.blurScope&&(t.emphasis.blurScope=s.blurScope))}}function removeEC3NormalStatus(t){convertNormalEmphasis(t,"itemStyle"),convertNormalEmphasis(t,"lineStyle"),convertNormalEmphasis(t,"areaStyle"),convertNormalEmphasis(t,"label"),convertNormalEmphasis(t,"labelLine"),convertNormalEmphasis(t,"upperLabel"),convertNormalEmphasis(t,"edgeLabel")}function compatTextStyle(t,r){var n=isObject$2(t)&&t[r],o=isObject$2(n)&&n.textStyle;if(o)for(var s=0,l=TEXT_STYLE_OPTIONS.length;s<l;s++){var d=TEXT_STYLE_OPTIONS[s];o.hasOwnProperty(d)&&(n[d]=o[d])}}function compatEC3CommonStyles(t){t&&(removeEC3NormalStatus(t),compatTextStyle(t,"label"),t.emphasis&&compatTextStyle(t.emphasis,"label"))}function processSeries(t){if(!!isObject$2(t)){compatEC2ItemStyle(t),removeEC3NormalStatus(t),compatTextStyle(t,"label"),compatTextStyle(t,"upperLabel"),compatTextStyle(t,"edgeLabel"),t.emphasis&&(compatTextStyle(t.emphasis,"label"),compatTextStyle(t.emphasis,"upperLabel"),compatTextStyle(t.emphasis,"edgeLabel"));var r=t.markPoint;r&&(compatEC2ItemStyle(r),compatEC3CommonStyles(r));var n=t.markLine;n&&(compatEC2ItemStyle(n),compatEC3CommonStyles(n));var o=t.markArea;o&&compatEC3CommonStyles(o);var s=t.data;if(t.type==="graph"){s=s||t.nodes;var l=t.links||t.edges;if(l&&!isTypedArray(l))for(var d=0;d<l.length;d++)compatEC3CommonStyles(l[d]);each$f(t.categories,function(b){removeEC3NormalStatus(b)})}if(s&&!isTypedArray(s))for(var d=0;d<s.length;d++)compatEC3CommonStyles(s[d]);if(r=t.markPoint,r&&r.data)for(var g=r.data,d=0;d<g.length;d++)compatEC3CommonStyles(g[d]);if(n=t.markLine,n&&n.data)for(var y=n.data,d=0;d<y.length;d++)isArray$1(y[d])?(compatEC3CommonStyles(y[d][0]),compatEC3CommonStyles(y[d][1])):compatEC3CommonStyles(y[d]);t.type==="gauge"?(compatTextStyle(t,"axisLabel"),compatTextStyle(t,"title"),compatTextStyle(t,"detail")):t.type==="treemap"?(convertNormalEmphasis(t.breadcrumb,"itemStyle"),each$f(t.levels,function(b){removeEC3NormalStatus(b)})):t.type==="tree"&&removeEC3NormalStatus(t.leaves)}}function toArr(t){return isArray$1(t)?t:t?[t]:[]}function toObj(t){return(isArray$1(t)?t[0]:t)||{}}function globalCompatStyle(t,r){each$d(toArr(t.series),function(o){isObject$2(o)&&processSeries(o)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];r&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$d(n,function(o){each$d(toArr(t[o]),function(s){s&&(compatTextStyle(s,"axisLabel"),compatTextStyle(s.axisPointer,"label"))})}),each$d(toArr(t.parallel),function(o){var s=o&&o.parallelAxisDefault;compatTextStyle(s,"axisLabel"),compatTextStyle(s&&s.axisPointer,"label")}),each$d(toArr(t.calendar),function(o){convertNormalEmphasis(o,"itemStyle"),compatTextStyle(o,"dayLabel"),compatTextStyle(o,"monthLabel"),compatTextStyle(o,"yearLabel")}),each$d(toArr(t.radar),function(o){compatTextStyle(o,"name"),o.name&&o.axisName==null&&(o.axisName=o.name,delete o.name),o.nameGap!=null&&o.axisNameGap==null&&(o.axisNameGap=o.nameGap,delete o.nameGap)}),each$d(toArr(t.geo),function(o){isObject$2(o)&&(compatEC3CommonStyles(o),each$d(toArr(o.regions),function(s){compatEC3CommonStyles(s)}))}),each$d(toArr(t.timeline),function(o){compatEC3CommonStyles(o),convertNormalEmphasis(o,"label"),convertNormalEmphasis(o,"itemStyle"),convertNormalEmphasis(o,"controlStyle",!0);var s=o.data;isArray$1(s)&&each$f(s,function(l){isObject$3(l)&&(convertNormalEmphasis(l,"label"),convertNormalEmphasis(l,"itemStyle"))})}),each$d(toArr(t.toolbox),function(o){convertNormalEmphasis(o,"iconStyle"),each$d(o.feature,function(s){convertNormalEmphasis(s,"iconStyle")})}),compatTextStyle(toObj(t.axisPointer),"label"),compatTextStyle(toObj(t.tooltip).axisPointer,"label")}function get(t,r){for(var n=r.split(","),o=t,s=0;s<n.length&&(o=o&&o[n[s]],o!=null);s++);return o}function set(t,r,n,o){for(var s=r.split(","),l=t,d,g=0;g<s.length-1;g++)d=s[g],l[d]==null&&(l[d]={}),l=l[d];(o||l[s[g]]==null)&&(l[s[g]]=n)}function compatLayoutProperties(t){t&&each$f(LAYOUT_PROPERTIES,function(r){r[0]in t&&!(r[1]in t)&&(t[r[1]]=t[r[0]])})}var LAYOUT_PROPERTIES=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],COMPATITABLE_COMPONENTS=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],BAR_ITEM_STYLE_MAP=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function compatBarItemStyle(t){var r=t&&t.itemStyle;if(r)for(var n=0;n<BAR_ITEM_STYLE_MAP.length;n++){var o=BAR_ITEM_STYLE_MAP[n][1],s=BAR_ITEM_STYLE_MAP[n][0];r[o]!=null&&(r[s]=r[o])}}function compatPieLabel(t){!t||t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(t.edgeDistance=t.margin)}function compatSunburstState(t){!t||t.downplay&&!t.blur&&(t.blur=t.downplay)}function compatGraphFocus(t){!t||t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(t.emphasis.focus="adjacency"))}function traverseTree(t,r){if(t)for(var n=0;n<t.length;n++)r(t[n]),t[n]&&traverseTree(t[n].children,r)}function globalBackwardCompat(t,r){globalCompatStyle(t,r),t.series=normalizeToArray(t.series),each$f(t.series,function(n){if(!!isObject$3(n)){var o=n.type;if(o==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(o==="pie"||o==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),compatPieLabel(n.label);var s=n.data;if(s&&!isTypedArray(s))for(var l=0;l<s.length;l++)compatPieLabel(s[l]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(o==="gauge"){var d=get(n,"pointer.color");d!=null&&set(n,"itemStyle.color",d)}else if(o==="bar"){compatBarItemStyle(n),compatBarItemStyle(n.backgroundStyle),compatBarItemStyle(n.emphasis);var s=n.data;if(s&&!isTypedArray(s))for(var l=0;l<s.length;l++)typeof s[l]=="object"&&(compatBarItemStyle(s[l]),compatBarItemStyle(s[l]&&s[l].emphasis))}else if(o==="sunburst"){var g=n.highlightPolicy;g&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=g)),compatSunburstState(n),traverseTree(n.data,compatSunburstState)}else o==="graph"||o==="sankey"?compatGraphFocus(n):o==="map"&&(n.mapType&&!n.map&&(n.map=n.mapType),n.mapLocation&&defaults(n,n.mapLocation));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(n.emphasis.scale=n.hoverAnimation)),compatLayoutProperties(n)}}),t.dataRange&&(t.visualMap=t.dataRange),each$f(COMPATITABLE_COMPONENTS,function(n){var o=t[n];o&&(isArray$1(o)||(o=[o]),each$f(o,function(s){compatLayoutProperties(s)}))})}function dataStack$1(t){var r=createHashMap();t.eachSeries(function(n){var o=n.get("stack");if(o){var s=r.get(o)||r.set(o,[]),l=n.getData(),d={stackResultDimension:l.getCalculationInfo("stackResultDimension"),stackedOverDimension:l.getCalculationInfo("stackedOverDimension"),stackedDimension:l.getCalculationInfo("stackedDimension"),stackedByDimension:l.getCalculationInfo("stackedByDimension"),isStackedByIndex:l.getCalculationInfo("isStackedByIndex"),data:l,seriesModel:n};if(!d.stackedDimension||!(d.isStackedByIndex||d.stackedByDimension))return;s.length&&l.setCalculationInfo("stackedOnSeries",s[s.length-1].seriesModel),s.push(d)}}),r.each(calculateStack)}function calculateStack(t){each$f(t,function(r,n){var o=[],s=[NaN,NaN],l=[r.stackResultDimension,r.stackedOverDimension],d=r.data,g=r.isStackedByIndex,y=r.seriesModel.get("stackStrategy")||"samesign";d.modify(l,function(b,C,x){var S=d.get(r.stackedDimension,x);if(isNaN(S))return s;var _,w;g?w=d.getRawIndex(x):_=d.get(r.stackedByDimension,x);for(var $=NaN,I=n-1;I>=0;I--){var B=t[I];if(g||(w=B.data.rawIndexOf(B.stackedByDimension,_)),w>=0){var R=B.data.getByRawIndex(B.stackResultDimension,w);if(y==="all"||y==="positive"&&R>0||y==="negative"&&R<0||y==="samesign"&&S>=0&&R>0||y==="samesign"&&S<=0&&R<0){S=addSafe(S,R),$=R;break}}}return o[0]=S,o[1]=$,o})})}var SourceImpl=function(){function t(r){this.data=r.data||(r.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=r.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=r.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=r.startIndex||0,this.dimensionsDetectedCount=r.dimensionsDetectedCount,this.metaRawOption=r.metaRawOption;var n=this.dimensionsDefine=r.dimensionsDefine;if(n)for(var o=0;o<n.length;o++){var s=n[o];s.type==null&&guessOrdinal(this,o)===BE_ORDINAL.Must&&(s.type="ordinal")}}return t}();function isSourceInstance(t){return t instanceof SourceImpl}function createSource(t,r,n){n=n||detectSourceFormat(t);var o=r.seriesLayoutBy,s=determineSourceDimensions(t,n,o,r.sourceHeader,r.dimensions),l=new SourceImpl({data:t,sourceFormat:n,seriesLayoutBy:o,dimensionsDefine:s.dimensionsDefine,startIndex:s.startIndex,dimensionsDetectedCount:s.dimensionsDetectedCount,metaRawOption:clone$4(r)});return l}function createSourceFromSeriesDataOption(t){return new SourceImpl({data:t,sourceFormat:isTypedArray(t)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow(t){return new SourceImpl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:clone$4(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function detectSourceFormat(t){var r=SOURCE_FORMAT_UNKNOWN;if(isTypedArray(t))r=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1(t)){t.length===0&&(r=SOURCE_FORMAT_ARRAY_ROWS);for(var n=0,o=t.length;n<o;n++){var s=t[n];if(s!=null){if(isArray$1(s)){r=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(s)){r=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3(t)){for(var l in t)if(hasOwn(t,l)&&isArrayLike(t[l])){r=SOURCE_FORMAT_KEYED_COLUMNS;break}}return r}function determineSourceDimensions(t,r,n,o,s){var l,d;if(!t)return{dimensionsDefine:normalizeDimensionsOption(s),startIndex:d,dimensionsDetectedCount:l};if(r===SOURCE_FORMAT_ARRAY_ROWS){var g=t;o==="auto"||o==null?arrayRowsTravelFirst(function(b){b!=null&&b!=="-"&&(isString(b)?d==null&&(d=1):d=0)},n,g,10):d=isNumber(o)?o:o?1:0,!s&&d===1&&(s=[],arrayRowsTravelFirst(function(b,C){s[C]=b!=null?b+"":""},n,g,1/0)),l=s?s.length:n===SERIES_LAYOUT_BY_ROW?g.length:g[0]?g[0].length:null}else if(r===SOURCE_FORMAT_OBJECT_ROWS)s||(s=objectRowsCollectDimensions(t));else if(r===SOURCE_FORMAT_KEYED_COLUMNS)s||(s=[],each$f(t,function(b,C){s.push(C)}));else if(r===SOURCE_FORMAT_ORIGINAL){var y=getDataItemValue(t[0]);l=isArray$1(y)&&y.length||1}return{startIndex:d,dimensionsDefine:normalizeDimensionsOption(s),dimensionsDetectedCount:l}}function objectRowsCollectDimensions(t){for(var r=0,n;r<t.length&&!(n=t[r++]););if(n){var o=[];return each$f(n,function(s,l){o.push(l)}),o}}function normalizeDimensionsOption(t){if(!!t){var r=createHashMap();return map$1(t,function(n,o){n=isObject$3(n)?n:{name:n};var s={name:n.name,displayName:n.displayName,type:n.type};if(s.name==null)return s;s.name+="",s.displayName==null&&(s.displayName=s.name);var l=r.get(s.name);return l?s.name+="-"+l.count++:r.set(s.name,{count:1}),s})}}function arrayRowsTravelFirst(t,r,n,o){if(r===SERIES_LAYOUT_BY_ROW)for(var s=0;s<n.length&&s<o;s++)t(n[s]?n[s][0]:null,s);else for(var l=n[0]||[],s=0;s<l.length&&s<o;s++)t(l[s],s)}function shouldRetrieveDataByName(t){var r=t.sourceFormat;return r===SOURCE_FORMAT_OBJECT_ROWS||r===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function t(r,n){var o=isSourceInstance(r)?r:createSourceFromSeriesDataOption(r);this._source=o;var s=this._data=o.data;o.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=n,this._data=s),mountMethods(this,s,o)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(r,n){},t.prototype.appendData=function(r){},t.prototype.clean=function(){},t.protoInitialize=function(){var r=t.prototype;r.pure=!1,r.persistent=!0}(),t.internalField=function(){var r;mountMethods=function(d,g,y){var b=y.sourceFormat,C=y.seriesLayoutBy,x=y.startIndex,S=y.dimensionsDefine,_=providerMethods[getMethodMapKey(b,C)];if(extend(d,_),b===SOURCE_FORMAT_TYPED_ARRAY)d.getItem=n,d.count=s,d.fillStorage=o;else{var w=getRawSourceItemGetter(b,C);d.getItem=bind$1(w,null,g,x,S);var $=getRawSourceDataCounter(b,C);d.count=bind$1($,null,g,x,S)}};var n=function(d,g){d=d-this._offset,g=g||[];for(var y=this._data,b=this._dimSize,C=b*d,x=0;x<b;x++)g[x]=y[C+x];return g},o=function(d,g,y,b){for(var C=this._data,x=this._dimSize,S=0;S<x;S++){for(var _=b[S],w=_[0]==null?1/0:_[0],$=_[1]==null?-1/0:_[1],I=g-d,B=y[S],R=0;R<I;R++){var P=C[R*x+S];B[d+R]=P,P<w&&(w=P),P>$&&($=P)}_[0]=w,_[1]=$}},s=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(r={},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:l},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},r[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:l},r[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(d){var g=this._data;each$f(d,function(y,b){for(var C=g[b]||(g[b]=[]),x=0;x<(y||[]).length;x++)C.push(y[x])})}},r[SOURCE_FORMAT_ORIGINAL]={appendData:l},r[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(d){this._data=d},clean:function(){this._offset+=this.count(),this._data=null}},r);function l(d){for(var g=0;g<d.length;g++)this._data.push(d[g])}}(),t}(),getItemSimply=function(t,r,n,o){return t[o]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(t,r,n,o){return t[o+r]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(t,r,n,o,s){o+=r;for(var l=s||[],d=t,g=0;g<d.length;g++){var y=d[g];l[g]=y?y[o]:null}return l},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function(t,r,n,o,s){for(var l=s||[],d=0;d<n.length;d++){var g=n[d].name,y=t[g];l[d]=y?y[o]:null}return l},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter(t,r){var n=rawSourceItemGetterMap[getMethodMapKey(t,r)];return n}var countSimply=function(t,r,n){return t.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(t,r,n){return Math.max(0,t.length-r)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(t,r,n){var o=t[0];return o?Math.max(0,o.length-r):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function(t,r,n){var o=n[0].name,s=t[o];return s?s.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter(t,r){var n=rawSourceDataCounterMap[getMethodMapKey(t,r)];return n}var getRawValueSimply=function(t,r,n){return t[r]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function(t,r,n){return t[n]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function(t,r,n){var o=getDataItemValue(t);return o instanceof Array?o[r]:o},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter(t){var r=rawSourceValueGetterMap[t];return r}function getMethodMapKey(t,r){return t===SOURCE_FORMAT_ARRAY_ROWS?t+"_"+r:t}function retrieveRawValue(t,r,n){if(!!t){var o=t.getRawDataItem(r);if(o!=null){var s=t.getStore(),l=s.getSource().sourceFormat;if(n!=null){var d=t.getDimensionIndex(n),g=s.getDimensionProperty(d);return getRawSourceValueGetter(l)(o,d,g)}else{var y=o;return l===SOURCE_FORMAT_ORIGINAL&&(y=getDataItemValue(o)),y}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function t(){}return t.prototype.getDataParams=function(r,n){var o=this.getData(n),s=this.getRawValue(r,n),l=o.getRawIndex(r),d=o.getName(r),g=o.getRawDataItem(r),y=o.getItemVisual(r,"style"),b=y&&y[o.getItemVisual(r,"drawType")||"fill"],C=y&&y.stroke,x=this.mainType,S=x==="series",_=o.userOutput&&o.userOutput.get();return{componentType:x,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:S?this.subType:null,seriesIndex:this.seriesIndex,seriesId:S?this.id:null,seriesName:S?this.name:null,name:d,dataIndex:l,data:g,dataType:n,value:s,color:b,borderColor:C,dimensionNames:_?_.fullDimensions:null,encode:_?_.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(r,n,o,s,l,d){n=n||"normal";var g=this.getData(o),y=this.getDataParams(r,o);if(d&&(y.value=d.interpolatedValue),s!=null&&isArray$1(y.value)&&(y.value=y.value[s]),!l){var b=g.getItemModel(r);l=b.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(isFunction(l))return y.status=n,y.dimensionIndex=s,l(y);if(isString(l)){var C=formatTpl(l,y);return C.replace(DIMENSION_LABEL_REG,function(x,S){var _=S.length,w=S;w.charAt(0)==="["&&w.charAt(_-1)==="]"&&(w=+w.slice(1,_-1));var $=retrieveRawValue(g,r,w);if(d&&isArray$1(d.interpolatedValue)){var I=g.getDimensionIndex(w);I>=0&&($=d.interpolatedValue[I])}return $!=null?$+"":""})}},t.prototype.getRawValue=function(r,n){return retrieveRawValue(this.getData(n),r)},t.prototype.formatTooltip=function(r,n,o){},t}();function normalizeTooltipFormatResult(t){var r,n;return isObject$3(t)?t.type&&(n=t):r=t,{text:r,frag:n}}function createTask(t){return new Task(t)}var Task=function(){function t(r){r=r||{},this._reset=r.reset,this._plan=r.plan,this._count=r.count,this._onDirty=r.onDirty,this._dirty=!0}return t.prototype.perform=function(r){var n=this._upstream,o=r&&r.skip;if(this._dirty&&n){var s=this.context;s.data=s.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var l;this._plan&&!o&&(l=this._plan(this.context));var d=C(this._modBy),g=this._modDataCount||0,y=C(r&&r.modBy),b=r&&r.modDataCount||0;(d!==y||g!==b)&&(l="reset");function C(R){return!(R>=1)&&(R=1),R}var x;(this._dirty||l==="reset")&&(this._dirty=!1,x=this._doReset(o)),this._modBy=y,this._modDataCount=b;var S=r&&r.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var _=this._dueIndex,w=Math.min(S!=null?this._dueIndex+S:1/0,this._dueEnd);if(!o&&(x||_<w)){var $=this._progress;if(isArray$1($))for(var I=0;I<$.length;I++)this._doProgress($[I],_,w,y,b);else this._doProgress($,_,w,y,b)}this._dueIndex=w;var B=this._settedOutputEnd!=null?this._settedOutputEnd:w;this._outputDueEnd=B}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(r,n,o,s,l){iterator.reset(n,o,s,l),this._callingProgress=r,this._callingProgress({start:n,end:o,count:o-n,next:iterator.next},this.context)},t.prototype._doReset=function(r){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,o;!r&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(o=n.forceFirstProgress,n=n.progress),isArray$1(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var s=this._downstream;return s&&s.dirty(),o},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(r){(this._downstream!==r||this._dirty)&&(this._downstream=r,r._upstream=this,r.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(r){this._outputDueEnd=this._settedOutputEnd=r},t}(),iterator=function(){var t,r,n,o,s,l={reset:function(y,b,C,x){r=y,t=b,n=C,o=x,s=Math.ceil(o/n),l.next=n>1&&o>0?g:d}};return l;function d(){return r<t?r++:null}function g(){var y=r%s*n+Math.ceil(r/s),b=r>=t?null:y<o?y:r;return r++,b}}();function parseDataValue(t,r){var n=r&&r.type;return n==="ordinal"?t:(n==="time"&&!isNumber(t)&&t!=null&&t!=="-"&&(t=+parseDate(t)),t==null||t===""?NaN:+t)}var valueParserMap=createHashMap({number:function(t){return parseFloat(t)},time:function(t){return+parseDate(t)},trim:function(t){return isString(t)?trim$1(t):t}});function getRawValueParser(t){return valueParserMap.get(t)}var ORDER_COMPARISON_OP_MAP={lt:function(t,r){return t<r},lte:function(t,r){return t<=r},gt:function(t,r){return t>r},gte:function(t,r){return t>=r}},FilterOrderComparator=function(){function t(r,n){if(!isNumber(n)){var o="";throwError(o)}this._opFn=ORDER_COMPARISON_OP_MAP[r],this._rvalFloat=numericToNumber(n)}return t.prototype.evaluate=function(r){return isNumber(r)?this._opFn(r,this._rvalFloat):this._opFn(numericToNumber(r),this._rvalFloat)},t}(),SortOrderComparator=function(){function t(r,n){var o=r==="desc";this._resultLT=o?1:-1,n==null&&(n=o?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(r,n){var o=isNumber(r)?r:numericToNumber(r),s=isNumber(n)?n:numericToNumber(n),l=isNaN(o),d=isNaN(s);if(l&&(o=this._incomparable),d&&(s=this._incomparable),l&&d){var g=isString(r),y=isString(n);g&&(o=y?r:0),y&&(s=g?n:0)}return o<s?this._resultLT:o>s?-this._resultLT:0},t}(),FilterEqualityComparator=function(){function t(r,n){this._rval=n,this._isEQ=r,this._rvalTypeof=typeof n,this._rvalFloat=numericToNumber(n)}return t.prototype.evaluate=function(r){var n=r===this._rval;if(!n){var o=typeof r;o!==this._rvalTypeof&&(o==="number"||this._rvalTypeof==="number")&&(n=numericToNumber(r)===this._rvalFloat)}return this._isEQ?n:!n},t}();function createFilterComparator(t,r){return t==="eq"||t==="ne"?new FilterEqualityComparator(t==="eq",r):hasOwn(ORDER_COMPARISON_OP_MAP,t)?new FilterOrderComparator(t,r):null}var ExternalSource=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(r){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(r){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(r,n){},t.prototype.retrieveValueFromItem=function(r,n){},t.prototype.convertValue=function(r,n){return parseDataValue(r,n)},t}();function createExternalSource(t,r){var n=new ExternalSource,o=t.data,s=n.sourceFormat=t.sourceFormat,l=t.startIndex,d="";t.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(d);var g=[],y={},b=t.dimensionsDefine;if(b)each$f(b,function($,I){var B=$.name,R={index:I,name:B,displayName:$.displayName};if(g.push(R),B!=null){var P="";hasOwn(y,B)&&throwError(P),y[B]=R}});else for(var C=0;C<t.dimensionsDetectedCount;C++)g.push({index:C});var x=getRawSourceItemGetter(s,SERIES_LAYOUT_BY_COLUMN);r.__isBuiltIn&&(n.getRawDataItem=function($){return x(o,l,g,$)},n.getRawData=bind$1(getRawData,null,t)),n.cloneRawData=bind$1(cloneRawData,null,t);var S=getRawSourceDataCounter(s,SERIES_LAYOUT_BY_COLUMN);n.count=bind$1(S,null,o,l,g);var _=getRawSourceValueGetter(s);n.retrieveValue=function($,I){var B=x(o,l,g,$);return w(B,I)};var w=n.retrieveValueFromItem=function($,I){if($!=null){var B=g[I];if(B)return _($,I,B.name)}};return n.getDimensionInfo=bind$1(getDimensionInfo,null,g,y),n.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,g),n}function getRawData(t){var r=t.sourceFormat;if(!isSupportedSourceFormat(r)){var n="";throwError(n)}return t.data}function cloneRawData(t){var r=t.sourceFormat,n=t.data;if(!isSupportedSourceFormat(r)){var o="";throwError(o)}if(r===SOURCE_FORMAT_ARRAY_ROWS){for(var s=[],l=0,d=n.length;l<d;l++)s.push(n[l].slice());return s}else if(r===SOURCE_FORMAT_OBJECT_ROWS){for(var s=[],l=0,d=n.length;l<d;l++)s.push(extend({},n[l]));return s}}function getDimensionInfo(t,r,n){if(n!=null){if(isNumber(n)||!isNaN(n)&&!hasOwn(r,n))return t[n];if(hasOwn(r,n))return r[n]}}function cloneAllDimensionInfo(t){return clone$4(t)}var externalTransformMap=createHashMap();function registerExternalTransform(t){t=clone$4(t);var r=t.type,n="";r||throwError(n);var o=r.split(":");o.length!==2&&throwError(n);var s=!1;o[0]==="echarts"&&(r=o[1],s=!0),t.__isBuiltIn=s,externalTransformMap.set(r,t)}function applyDataTransform(t,r,n){var o=normalizeToArray(t),s=o.length,l="";s||throwError(l);for(var d=0,g=s;d<g;d++){var y=o[d];r=applySingleDataTransform(y,r),d!==g-1&&(r.length=Math.max(r.length,1))}return r}function applySingleDataTransform(t,r,n,o){var s="";r.length||throwError(s),isObject$3(t)||throwError(s);var l=t.type,d=externalTransformMap.get(l);d||throwError(s);var g=map$1(r,function(b){return createExternalSource(b,d)}),y=normalizeToArray(d.transform({upstream:g[0],upstreamList:g,config:clone$4(t.config)}));return map$1(y,function(b,C){var x="";isObject$3(b)||throwError(x),b.data||throwError(x);var S=detectSourceFormat(b.data);isSupportedSourceFormat(S)||throwError(x);var _,w=r[0];if(w&&C===0&&!b.dimensions){var $=w.startIndex;$&&(b.data=w.data.slice(0,$).concat(b.data)),_={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:$,dimensions:w.metaRawOption.dimensions}}else _={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:b.dimensions};return createSource(b.data,_,null)})}function isSupportedSourceFormat(t){return t===SOURCE_FORMAT_ARRAY_ROWS||t===SOURCE_FORMAT_OBJECT_ROWS}var UNDEFINED="undefined",CtorUint32Array=typeof Uint32Array===UNDEFINED?Array:Uint32Array,CtorUint16Array=typeof Uint16Array===UNDEFINED?Array:Uint16Array,CtorInt32Array$1=typeof Int32Array===UNDEFINED?Array:Int32Array,CtorFloat64Array=typeof Float64Array===UNDEFINED?Array:Float64Array,dataCtors={float:CtorFloat64Array,int:CtorInt32Array$1,ordinal:Array,number:Array,time:CtorFloat64Array},defaultDimValueGetters;function getIndicesCtor(t){return t>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(t){var r=t.constructor;return r===Array?t.slice():new r(t)}function prepareStore(t,r,n,o,s){var l=dataCtors[n||"float"];if(s){var d=t[r],g=d&&d.length;if(g!==o){for(var y=new l(o),b=0;b<g;b++)y[b]=d[b];t[r]=y}}else t[r]=new l(o)}var DataStore=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return t.prototype.initData=function(r,n,o){this._provider=r,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var s=r.getSource(),l=this.defaultDimValueGetter=defaultDimValueGetters[s.sourceFormat];this._dimValueGetter=o||l,this._rawExtent=[],shouldRetrieveDataByName(s),this._dimensions=map$1(n,function(d){return{type:d.type,property:d.property}}),this._initDataFromProvider(0,r.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(r,n){var o=this._calcDimNameToIdx,s=this._dimensions,l=o.get(r);if(l!=null){if(s[l].type===n)return l}else l=s.length;return s[l]={type:n},o.set(r,l),this._chunks[l]=new dataCtors[n||"float"](this._rawCount),this._rawExtent[l]=getInitialExtent(),l},t.prototype.collectOrdinalMeta=function(r,n){var o=this._chunks[r],s=this._dimensions[r],l=this._rawExtent,d=s.ordinalOffset||0,g=o.length;d===0&&(l[r]=getInitialExtent());for(var y=l[r],b=d;b<g;b++){var C=o[b]=n.parseAndCollect(o[b]);isNaN(C)||(y[0]=Math.min(C,y[0]),y[1]=Math.max(C,y[1]))}s.ordinalMeta=n,s.ordinalOffset=g,s.type="ordinal"},t.prototype.getOrdinalMeta=function(r){var n=this._dimensions[r],o=n.ordinalMeta;return o},t.prototype.getDimensionProperty=function(r){var n=this._dimensions[r];return n&&n.property},t.prototype.appendData=function(r){var n=this._provider,o=this.count();n.appendData(r);var s=n.count();return n.persistent||(s+=o),o<s&&this._initDataFromProvider(o,s,!0),[o,s]},t.prototype.appendValues=function(r,n){for(var o=this._chunks,s=this._dimensions,l=s.length,d=this._rawExtent,g=this.count(),y=g+Math.max(r.length,n||0),b=0;b<l;b++){var C=s[b];prepareStore(o,b,C.type,y,!0)}for(var x=[],S=g;S<y;S++)for(var _=S-g,w=0;w<l;w++){var C=s[w],$=defaultDimValueGetters.arrayRows.call(this,r[_]||x,C.property,_,w);o[w][S]=$;var I=d[w];$<I[0]&&(I[0]=$),$>I[1]&&(I[1]=$)}return this._rawCount=this._count=y,{start:g,end:y}},t.prototype._initDataFromProvider=function(r,n,o){for(var s=this._provider,l=this._chunks,d=this._dimensions,g=d.length,y=this._rawExtent,b=map$1(d,function(R){return R.property}),C=0;C<g;C++){var x=d[C];y[C]||(y[C]=getInitialExtent()),prepareStore(l,C,x.type,n,o)}if(s.fillStorage)s.fillStorage(r,n,l,y);else for(var S=[],_=r;_<n;_++){S=s.getItem(_,S);for(var w=0;w<g;w++){var $=l[w],I=this._dimValueGetter(S,b[w],_,w);$[_]=I;var B=y[w];I<B[0]&&(B[0]=I),I>B[1]&&(B[1]=I)}}!s.persistent&&s.clean&&s.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(r,n){if(!(n>=0&&n<this._count))return NaN;var o=this._chunks[r];return o?o[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(r,n){var o=[],s=[];if(n==null){n=r,r=[];for(var l=0;l<this._dimensions.length;l++)s.push(l)}else s=r;for(var l=0,d=s.length;l<d;l++)o.push(this.get(s[l],n));return o},t.prototype.getByRawIndex=function(r,n){if(!(n>=0&&n<this._rawCount))return NaN;var o=this._chunks[r];return o?o[n]:NaN},t.prototype.getSum=function(r){var n=this._chunks[r],o=0;if(n)for(var s=0,l=this.count();s<l;s++){var d=this.get(r,s);isNaN(d)||(o+=d)}return o},t.prototype.getMedian=function(r){var n=[];this.each([r],function(l){isNaN(l)||n.push(l)});var o=n.sort(function(l,d){return l-d}),s=this.count();return s===0?0:s%2===1?o[(s-1)/2]:(o[s/2]+o[s/2-1])/2},t.prototype.indexOfRawIndex=function(r){if(r>=this._rawCount||r<0)return-1;if(!this._indices)return r;var n=this._indices,o=n[r];if(o!=null&&o<this._count&&o===r)return r;for(var s=0,l=this._count-1;s<=l;){var d=(s+l)/2|0;if(n[d]<r)s=d+1;else if(n[d]>r)l=d-1;else return d}return-1},t.prototype.indicesOfNearest=function(r,n,o){var s=this._chunks,l=s[r],d=[];if(!l)return d;o==null&&(o=1/0);for(var g=1/0,y=-1,b=0,C=0,x=this.count();C<x;C++){var S=this.getRawIndex(C),_=n-l[S],w=Math.abs(_);w<=o&&((w<g||w===g&&_>=0&&y<0)&&(g=w,y=_,b=0),_===y&&(d[b++]=C))}return d.length=b,d},t.prototype.getIndices=function(){var r,n=this._indices;if(n){var o=n.constructor,s=this._count;if(o===Array){r=new o(s);for(var l=0;l<s;l++)r[l]=n[l]}else r=new o(n.buffer,0,s)}else{var o=getIndicesCtor(this._rawCount);r=new o(this.count());for(var l=0;l<r.length;l++)r[l]=l}return r},t.prototype.filter=function(r,n){if(!this._count)return this;for(var o=this.clone(),s=o.count(),l=getIndicesCtor(o._rawCount),d=new l(s),g=[],y=r.length,b=0,C=r[0],x=o._chunks,S=0;S<s;S++){var _=void 0,w=o.getRawIndex(S);if(y===0)_=n(S);else if(y===1){var $=x[C][w];_=n($,S)}else{for(var I=0;I<y;I++)g[I]=x[r[I]][w];g[I]=S,_=n.apply(null,g)}_&&(d[b++]=w)}return b<s&&(o._indices=d),o._count=b,o._extent=[],o._updateGetRawIdx(),o},t.prototype.selectRange=function(r){var n=this.clone(),o=n._count;if(!o)return this;var s=keys(r),l=s.length;if(!l)return this;var d=n.count(),g=getIndicesCtor(n._rawCount),y=new g(d),b=0,C=s[0],x=r[C][0],S=r[C][1],_=n._chunks,w=!1;if(!n._indices){var $=0;if(l===1){for(var I=_[s[0]],B=0;B<o;B++){var R=I[B];(R>=x&&R<=S||isNaN(R))&&(y[b++]=$),$++}w=!0}else if(l===2){for(var I=_[s[0]],P=_[s[1]],M=r[s[1]][0],O=r[s[1]][1],B=0;B<o;B++){var R=I[B],D=P[B];(R>=x&&R<=S||isNaN(R))&&(D>=M&&D<=O||isNaN(D))&&(y[b++]=$),$++}w=!0}}if(!w)if(l===1)for(var B=0;B<d;B++){var N=n.getRawIndex(B),R=_[s[0]][N];(R>=x&&R<=S||isNaN(R))&&(y[b++]=N)}else for(var B=0;B<d;B++){for(var H=!0,N=n.getRawIndex(B),Q=0;Q<l;Q++){var G=s[Q],R=_[G][N];(R<r[G][0]||R>r[G][1])&&(H=!1)}H&&(y[b++]=n.getRawIndex(B))}return b<d&&(n._indices=y),n._count=b,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(r,n){var o=this.clone(r);return this._updateDims(o,r,n),o},t.prototype.modify=function(r,n){this._updateDims(this,r,n)},t.prototype._updateDims=function(r,n,o){for(var s=r._chunks,l=[],d=n.length,g=r.count(),y=[],b=r._rawExtent,C=0;C<n.length;C++)b[n[C]]=getInitialExtent();for(var x=0;x<g;x++){for(var S=r.getRawIndex(x),_=0;_<d;_++)y[_]=s[n[_]][S];y[d]=x;var w=o&&o.apply(null,y);if(w!=null){typeof w!="object"&&(l[0]=w,w=l);for(var C=0;C<w.length;C++){var $=n[C],I=w[C],B=b[$],R=s[$];R&&(R[S]=I),I<B[0]&&(B[0]=I),I>B[1]&&(B[1]=I)}}}},t.prototype.lttbDownSample=function(r,n){var o=this.clone([r],!0),s=o._chunks,l=s[r],d=this.count(),g=0,y=Math.floor(1/n),b=this.getRawIndex(0),C,x,S,_=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(d/y)+2)*2,d));_[g++]=b;for(var w=1;w<d-1;w+=y){for(var $=Math.min(w+y,d-1),I=Math.min(w+y*2,d),B=(I+$)/2,R=0,P=$;P<I;P++){var M=this.getRawIndex(P),O=l[M];isNaN(O)||(R+=O)}R/=I-$;var D=w,N=Math.min(w+y,d),H=w-1,Q=l[b];C=-1,S=D;for(var G=-1,K=0,P=D;P<N;P++){var M=this.getRawIndex(P),O=l[M];if(isNaN(O)){K++,G<0&&(G=M);continue}x=Math.abs((H-B)*(O-Q)-(H-P)*(R-Q)),x>C&&(C=x,S=M)}K>0&&K<N-D&&(_[g++]=Math.min(G,S),S=Math.max(G,S)),_[g++]=S,b=S}return _[g++]=this.getRawIndex(d-1),o._count=g,o._indices=_,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(r,n,o,s){for(var l=this.clone([r],!0),d=l._chunks,g=[],y=Math.floor(1/n),b=d[r],C=this.count(),x=l._rawExtent[r]=getInitialExtent(),S=new(getIndicesCtor(this._rawCount))(Math.ceil(C/y)),_=0,w=0;w<C;w+=y){y>C-w&&(y=C-w,g.length=y);for(var $=0;$<y;$++){var I=this.getRawIndex(w+$);g[$]=b[I]}var B=o(g),R=this.getRawIndex(Math.min(w+s(g,B)||0,C-1));b[R]=B,B<x[0]&&(x[0]=B),B>x[1]&&(x[1]=B),S[_++]=R}return l._count=_,l._indices=S,l._updateGetRawIdx(),l},t.prototype.each=function(r,n){if(!!this._count)for(var o=r.length,s=this._chunks,l=0,d=this.count();l<d;l++){var g=this.getRawIndex(l);switch(o){case 0:n(l);break;case 1:n(s[r[0]][g],l);break;case 2:n(s[r[0]][g],s[r[1]][g],l);break;default:for(var y=0,b=[];y<o;y++)b[y]=s[r[y]][g];b[y]=l,n.apply(null,b)}}},t.prototype.getDataExtent=function(r){var n=this._chunks[r],o=getInitialExtent();if(!n)return o;var s=this.count(),l=!this._indices,d;if(l)return this._rawExtent[r].slice();if(d=this._extent[r],d)return d.slice();d=o;for(var g=d[0],y=d[1],b=0;b<s;b++){var C=this.getRawIndex(b),x=n[C];x<g&&(g=x),x>y&&(y=x)}return d=[g,y],this._extent[r]=d,d},t.prototype.getRawDataItem=function(r){var n=this.getRawIndex(r);if(this._provider.persistent)return this._provider.getItem(n);for(var o=[],s=this._chunks,l=0;l<s.length;l++)o.push(s[l][n]);return o},t.prototype.clone=function(r,n){var o=new t,s=this._chunks,l=r&&reduce(r,function(g,y){return g[y]=!0,g},{});if(l)for(var d=0;d<s.length;d++)o._chunks[d]=l[d]?cloneChunk(s[d]):s[d];else o._chunks=s;return this._copyCommonProps(o),n||(o._indices=this._cloneIndices()),o._updateGetRawIdx(),o},t.prototype._copyCommonProps=function(r){r._count=this._count,r._rawCount=this._rawCount,r._provider=this._provider,r._dimensions=this._dimensions,r._extent=clone$4(this._extent),r._rawExtent=clone$4(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var r=this._indices.constructor,n=void 0;if(r===Array){var o=this._indices.length;n=new r(o);for(var s=0;s<o;s++)n[s]=this._indices[s]}else n=new r(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(r){return r},t.prototype._getRawIdx=function(r){return r<this._count&&r>=0?this._indices[r]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function r(n,o,s,l){return parseDataValue(n[l],this._dimensions[l])}defaultDimValueGetters={arrayRows:r,objectRows:function(n,o,s,l){return parseDataValue(n[o],this._dimensions[l])},keyedColumns:r,original:function(n,o,s,l){var d=n&&(n.value==null?n:n.value);return parseDataValue(d instanceof Array?d[l]:d,this._dimensions[l])},typedArray:function(n,o,s,l){return n[l]}}}(),t}(),SourceManager=function(){function t(r){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=r}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(r,n){this._sourceList=r,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var r=this._sourceHost,n=this._getUpstreamSourceManagers(),o=!!n.length,s,l;if(isSeries(r)){var d=r,g=void 0,y=void 0,b=void 0;if(o){var C=n[0];C.prepareSource(),b=C.getSource(),g=b.data,y=b.sourceFormat,l=[C._getVersionSign()]}else g=d.get("data",!0),y=isTypedArray(g)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,l=[];var x=this._getSourceMetaRawOption()||{},S=b&&b.metaRawOption||{},_=retrieve2(x.seriesLayoutBy,S.seriesLayoutBy)||null,w=retrieve2(x.sourceHeader,S.sourceHeader),$=retrieve2(x.dimensions,S.dimensions),I=_!==S.seriesLayoutBy||!!w!=!!S.sourceHeader||$;s=I?[createSource(g,{seriesLayoutBy:_,sourceHeader:w,dimensions:$},y)]:[]}else{var B=r;if(o){var R=this._applyTransform(n);s=R.sourceList,l=R.upstreamSignList}else{var P=B.get("source",!0);s=[createSource(P,this._getSourceMetaRawOption(),null)],l=[]}}this._setLocalSource(s,l)},t.prototype._applyTransform=function(r){var n=this._sourceHost,o=n.get("transform",!0),s=n.get("fromTransformResult",!0);if(s!=null){var l="";r.length!==1&&doThrow(l)}var d,g=[],y=[];return each$f(r,function(b){b.prepareSource();var C=b.getSource(s||0),x="";s!=null&&!C&&doThrow(x),g.push(C),y.push(b._getVersionSign())}),o?d=applyDataTransform(o,g,{datasetIndex:n.componentIndex}):s!=null&&(d=[cloneSourceShallow(g[0])]),{sourceList:d,upstreamSignList:y}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var r=this._getUpstreamSourceManagers(),n=0;n<r.length;n++){var o=r[n];if(o._isDirty()||this._upstreamSignList[n]!==o._getVersionSign())return!0}},t.prototype.getSource=function(r){r=r||0;var n=this._sourceList[r];if(!n){var o=this._getUpstreamSourceManagers();return o[0]&&o[0].getSource(r)}return n},t.prototype.getSharedDataStore=function(r){var n=r.makeStoreSchema();return this._innerGetDataStore(n.dimensions,r.source,n.hash)},t.prototype._innerGetDataStore=function(r,n,o){var s=0,l=this._storeList,d=l[s];d||(d=l[s]={});var g=d[o];if(!g){var y=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&y?g=y._innerGetDataStore(r,n,o):(g=new DataStore,g.initData(new DefaultDataProvider(n,r.length),r)),d[o]=g}return g},t.prototype._getUpstreamSourceManagers=function(){var r=this._sourceHost;if(isSeries(r)){var n=querySeriesUpstreamDatasetModel(r);return n?[n.getSourceManager()]:[]}else return map$1(queryDatasetUpstreamDatasetModels(r),function(o){return o.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r=this._sourceHost,n,o,s;if(isSeries(r))n=r.get("seriesLayoutBy",!0),o=r.get("sourceHeader",!0),s=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var l=r;n=l.get("seriesLayoutBy",!0),o=l.get("sourceHeader",!0),s=l.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:o,dimensions:s}},t}();function disableTransformOptionMerge(t){var r=t.option.transform;r&&setAsPrimitive(t.option.transform)}function isSeries(t){return t.mainType==="series"}function doThrow(t){throw new Error(t)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle(t,r){var n=t.color||"#6e7079",o=t.fontSize||12,s=t.fontWeight||"400",l=t.color||"#464646",d=t.fontSize||14,g=t.fontWeight||"900";return r==="html"?{nameStyle:"font-size:"+encodeHTML(o+"")+"px;color:"+encodeHTML(n)+";font-weight:"+encodeHTML(s+""),valueStyle:"font-size:"+encodeHTML(d+"")+"px;color:"+encodeHTML(l)+";font-weight:"+encodeHTML(g+"")}:{nameStyle:{fontSize:o,fill:n,fontWeight:s},valueStyle:{fontSize:d,fill:l,fontWeight:g}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
|
|
`,`
|
|
|
|
`,`
|
|
|
|
|
|
`];function createTooltipMarkup(t,r){return r.type=t,r}function isSectionFragment(t){return t.type==="section"}function getBuilder(t){return isSectionFragment(t)?buildSection:buildNameValue}function getBlockGapLevel(t){if(isSectionFragment(t)){var r=0,n=t.blocks.length,o=n>1||n>0&&!t.noHeader;return each$f(t.blocks,function(s){var l=getBlockGapLevel(s);l>=r&&(r=l+ +(o&&(!l||isSectionFragment(s)&&!s.noHeader)))}),r}return 0}function buildSection(t,r,n,o){var s=r.noHeader,l=getGap(getBlockGapLevel(r)),d=[],g=r.blocks||[];assert(!g||isArray$1(g)),g=g||[];var y=t.orderMode;if(r.sortBlocks&&y){g=g.slice();var b={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(b,y)){var C=new SortOrderComparator(b[y],null);g.sort(function(w,$){return C.evaluate(w.sortParam,$.sortParam)})}else y==="seriesDesc"&&g.reverse()}each$f(g,function(w,$){var I=r.valueFormatter,B=getBuilder(w)(I?extend(extend({},t),{valueFormatter:I}):t,w,$>0?l.html:0,o);B!=null&&d.push(B)});var x=t.renderMode==="richText"?d.join(l.richText):wrapBlockHTML(d.join(""),s?n:l.html);if(s)return x;var S=makeValueReadable(r.header,"ordinal",t.useUTC),_=getTooltipTextStyle(o,t.renderMode).nameStyle;return t.renderMode==="richText"?wrapInlineNameRichText(t,S,_)+l.richText+x:wrapBlockHTML('<div style="'+_+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(S)+"</div>"+x,n)}function buildNameValue(t,r,n,o){var s=t.renderMode,l=r.noName,d=r.noValue,g=!r.markerType,y=r.name,b=t.useUTC,C=r.valueFormatter||t.valueFormatter||function(M){return M=isArray$1(M)?M:[M],map$1(M,function(O,D){return makeValueReadable(O,isArray$1(_)?_[D]:_,b)})};if(!(l&&d)){var x=g?"":t.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",s),S=l?"":makeValueReadable(y,"ordinal",b),_=r.valueType,w=d?[]:C(r.value),$=!g||!l,I=!g&&l,B=getTooltipTextStyle(o,s),R=B.nameStyle,P=B.valueStyle;return s==="richText"?(g?"":x)+(l?"":wrapInlineNameRichText(t,S,R))+(d?"":wrapInlineValueRichText(t,w,$,I,P)):wrapBlockHTML((g?"":x)+(l?"":wrapInlineNameHTML(S,!g,R))+(d?"":wrapInlineValueHTML(w,$,I,P)),n)}}function buildTooltipMarkup(t,r,n,o,s,l){if(!!t){var d=getBuilder(t),g={useUTC:s,renderMode:n,orderMode:o,markupStyleCreator:r,valueFormatter:t.valueFormatter};return d(g,t,0,l)}}function getGap(t){return{html:HTML_GAPS[t],richText:RICH_TEXT_GAPS[t]}}function wrapBlockHTML(t,r){var n='<div style="clear:both"></div>',o="margin: "+r+"px 0 0";return'<div style="'+o+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+t+n+"</div>"}function wrapInlineNameHTML(t,r,n){var o=r?"margin-left:2px":"";return'<span style="'+n+";"+o+'">'+encodeHTML(t)+"</span>"}function wrapInlineValueHTML(t,r,n,o){var s=n?"10px":"20px",l=r?"float:right;margin-left:"+s:"";return t=isArray$1(t)?t:[t],'<span style="'+l+";"+o+'">'+map$1(t,function(d){return encodeHTML(d)}).join(" ")+"</span>"}function wrapInlineNameRichText(t,r,n){return t.markupStyleCreator.wrapRichTextStyle(r,n)}function wrapInlineValueRichText(t,r,n,o,s){var l=[s],d=o?10:20;return n&&l.push({padding:[0,0,0,d],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(isArray$1(r)?r.join(" "):r,l)}function retrieveVisualColorForTooltipMarker(t,r){var n=t.getData().getItemVisual(r,"style"),o=n[t.visualDrawType];return convertToColorString(o)}function getPaddingFromTooltipModel(t,r){var n=t.get("padding");return n!=null?n:r==="richText"?[8,10]:10}var TooltipMarkupStyleCreator=function(){function t(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(r,n,o){var s=o==="richText"?this._generateStyleName():null,l=getTooltipMarker({color:n,type:r,renderMode:o,markerId:s});return isString(l)?l:(this.richTextStyles[s]=l.style,l.content)},t.prototype.wrapRichTextStyle=function(r,n){var o={};isArray$1(n)?each$f(n,function(l){return extend(o,l)}):extend(o,n);var s=this._generateStyleName();return this.richTextStyles[s]=o,"{"+s+"|"+r+"}"},t}();function defaultSeriesFormatTooltip(t){var r=t.series,n=t.dataIndex,o=t.multipleSeries,s=r.getData(),l=s.mapDimensionsAll("defaultedTooltip"),d=l.length,g=r.getRawValue(n),y=isArray$1(g),b=retrieveVisualColorForTooltipMarker(r,n),C,x,S,_;if(d>1||y&&!d){var w=formatTooltipArrayValue(g,r,n,l,b);C=w.inlineValues,x=w.inlineValueTypes,S=w.blocks,_=w.inlineValues[0]}else if(d){var $=s.getDimensionInfo(l[0]);_=C=retrieveRawValue(s,n,l[0]),x=$.type}else _=C=y?g[0]:g;var I=isNameSpecified(r),B=I&&r.name||"",R=s.getName(n),P=o?B:R;return createTooltipMarkup("section",{header:B,noHeader:o||!I,sortParam:_,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:b,name:P,noName:!trim$1(P),value:C,valueType:x})].concat(S||[])})}function formatTooltipArrayValue(t,r,n,o,s){var l=r.getData(),d=reduce(t,function(x,S,_){var w=l.getDimensionInfo(_);return x=x||w&&w.tooltip!==!1&&w.displayName!=null},!1),g=[],y=[],b=[];o.length?each$f(o,function(x){C(retrieveRawValue(l,n,x),x)}):each$f(t,C);function C(x,S){var _=l.getDimensionInfo(S);!_||_.otherDims.tooltip===!1||(d?b.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:s,name:_.displayName,value:x,valueType:_.type})):(g.push(x),y.push(_.type)))}return{inlineValues:g,inlineValueTypes:y,blocks:b}}var inner$k=makeInner();function getSelectionKey(t,r){return t.getName(r)||t.getId(r)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return r.prototype.init=function(n,o,s){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,s);var l=inner$k(this).sourceManager=new SourceManager(this);l.prepareSource();var d=this.getInitialData(n,s);wrapData(d,this),this.dataTask.context.data=d,inner$k(this).dataBeforeProcessed=d,autoSeriesName(this),this._initSelectedMapFromData(d)},r.prototype.mergeDefaultAndTheme=function(n,o){var s=fetchLayoutMode(this),l=s?getLayoutParams(n):{},d=this.subType;ComponentModel$1.hasClass(d)&&(d+="Series"),merge(n,o.getTheme().get(this.subType)),merge(n,this.getDefaultOption()),defaultEmphasis(n,"label",["show"]),this.fillDataTextStyle(n.data),s&&mergeLayoutParam(n,l,s)},r.prototype.mergeOption=function(n,o){n=merge(this.option,n,!0),this.fillDataTextStyle(n.data);var s=fetchLayoutMode(this);s&&mergeLayoutParam(this.option,n,s);var l=inner$k(this).sourceManager;l.dirty(),l.prepareSource();var d=this.getInitialData(n,o);wrapData(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,inner$k(this).dataBeforeProcessed=d,autoSeriesName(this),this._initSelectedMapFromData(d)},r.prototype.fillDataTextStyle=function(n){if(n&&!isTypedArray(n))for(var o=["show"],s=0;s<n.length;s++)n[s]&&n[s].label&&defaultEmphasis(n[s],"label",o)},r.prototype.getInitialData=function(n,o){},r.prototype.appendData=function(n){var o=this.getRawData();o.appendData(n.data)},r.prototype.getData=function(n){var o=getCurrentTask(this);if(o){var s=o.context.data;return n==null?s:s.getLinkedData(n)}else return inner$k(this).data},r.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},r.prototype.setData=function(n){var o=getCurrentTask(this);if(o){var s=o.context;s.outputData=n,o!==this.dataTask&&(s.data=n)}inner$k(this).data=n},r.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return createHashMap(n)},r.prototype.getSourceManager=function(){return inner$k(this).sourceManager},r.prototype.getSource=function(){return this.getSourceManager().getSource()},r.prototype.getRawData=function(){return inner$k(this).dataBeforeProcessed},r.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},r.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},r.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},r.prototype.formatTooltip=function(n,o,s){return defaultSeriesFormatTooltip({series:this,dataIndex:n,multipleSeries:o})},r.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(env$1.node&&!(n&&n.ssr))return!1;var o=this.getShallow("animation");return o&&this.getData().count()>this.getShallow("animationThreshold")&&(o=!1),!!o},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function(n,o,s){var l=this.ecModel,d=PaletteMixin.prototype.getColorFromPalette.call(this,n,o,s);return d||(d=l.getColorFromPalette(n,o,s)),d},r.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},r.prototype.getProgressive=function(){return this.get("progressive")},r.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},r.prototype.select=function(n,o){this._innerSelect(this.getData(o),n)},r.prototype.unselect=function(n,o){var s=this.option.selectedMap;if(!!s){var l=this.option.selectedMode,d=this.getData(o);if(l==="series"||s==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var g=0;g<n.length;g++){var y=n[g],b=getSelectionKey(d,y);s[b]=!1,this._selectedDataIndicesMap[b]=-1}}},r.prototype.toggleSelect=function(n,o){for(var s=[],l=0;l<n.length;l++)s[0]=n[l],this.isSelected(n[l],o)?this.unselect(s,o):this.select(s,o)},r.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,o=keys(n),s=[],l=0;l<o.length;l++){var d=n[o[l]];d>=0&&s.push(d)}return s},r.prototype.isSelected=function(n,o){var s=this.option.selectedMap;if(!s)return!1;var l=this.getData(o);return(s==="all"||s[getSelectionKey(l,n)])&&!l.getItemModel(n).get(["select","disabled"])},r.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},r.prototype._innerSelect=function(n,o){var s,l,d=this.option,g=d.selectedMode,y=o.length;if(!(!g||!y)){if(g==="series")d.selectedMap="all";else if(g==="multiple"){isObject$3(d.selectedMap)||(d.selectedMap={});for(var b=d.selectedMap,C=0;C<y;C++){var x=o[C],S=getSelectionKey(n,x);b[S]=!0,this._selectedDataIndicesMap[S]=n.getRawIndex(x)}}else if(g==="single"||g===!0){var _=o[y-1],S=getSelectionKey(n,_);d.selectedMap=(s={},s[S]=!0,s),this._selectedDataIndicesMap=(l={},l[S]=n.getRawIndex(_),l)}}},r.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var o=[];n.hasItemOption&&n.each(function(s){var l=n.getRawDataItem(s);l&&l.selected&&o.push(s)}),o.length>0&&this._innerSelect(n,o)}},r.registerClass=function(n){return ComponentModel$1.registerClass(n)},r.protoInitialize=function(){var n=r.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),r}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(t){var r=t.name;isNameSpecified(t)||(t.name=getSeriesAutoName(t)||r)}function getSeriesAutoName(t){var r=t.getRawData(),n=r.mapDimensionsAll("seriesName"),o=[];return each$f(n,function(s){var l=r.getDimensionInfo(s);l.displayName&&o.push(l.displayName)}),o.join(" ")}function dataTaskCount(t){return t.model.getRawData().count()}function dataTaskReset(t){var r=t.model;return r.setData(r.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(t,r){r.outputData&&t.end>r.outputData.count()&&r.model.getRawData().cloneShallow(r.outputData)}function wrapData(t,r){each$f(concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,curry$1(onDataChange,r))})}function onDataChange(t,r){var n=getCurrentTask(t);return n&&n.setOutputEnd((r||this).count()),r}function getCurrentTask(t){var r=(t.ecModel||{}).scheduler,n=r&&r.getPipeline(t.uid);if(n){var o=n.currentTask;if(o){var s=o.agentStubMap;s&&(o=s.get(t.uid))}return o}}var SeriesModel$1=SeriesModel,ComponentView=function(){function t(){this.group=new Group$4,this.uid=getUID("viewComponent")}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,o,s){},t.prototype.dispose=function(r,n){},t.prototype.updateView=function(r,n,o,s){},t.prototype.updateLayout=function(r,n,o,s){},t.prototype.updateVisual=function(r,n,o,s){},t.prototype.toggleBlurSeries=function(r,n,o){},t.prototype.eachRendered=function(r){var n=this.group;n&&n.traverse(r)},t}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);var ComponentView$1=ComponentView;function createRenderPlanner(){var t=makeInner();return function(r){var n=t(r),o=r.pipelineContext,s=!!n.large,l=!!n.progressiveRender,d=n.large=!!(o&&o.large),g=n.progressiveRender=!!(o&&o.progressiveRender);return(s!==d||l!==g)&&"reset"}}var inner$j=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function t(){this.group=new Group$4,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,o,s){},t.prototype.highlight=function(r,n,o,s){var l=r.getData(s&&s.dataType);!l||toggleHighlight(l,s,"emphasis")},t.prototype.downplay=function(r,n,o,s){var l=r.getData(s&&s.dataType);!l||toggleHighlight(l,s,"normal")},t.prototype.remove=function(r,n){this.group.removeAll()},t.prototype.dispose=function(r,n){},t.prototype.updateView=function(r,n,o,s){this.render(r,n,o,s)},t.prototype.updateLayout=function(r,n,o,s){this.render(r,n,o,s)},t.prototype.updateVisual=function(r,n,o,s){this.render(r,n,o,s)},t.prototype.eachRendered=function(r){traverseElements(this.group,r)},t.markUpdateMethod=function(r,n){inner$j(r).updateMethod=n},t.protoInitialize=function(){var r=t.prototype;r.type="chart"}(),t}();function elSetState(t,r,n){t&&isHighDownDispatcher(t)&&(r==="emphasis"?enterEmphasis:leaveEmphasis)(t,n)}function toggleHighlight(t,r,n){var o=queryDataIndex(t,r),s=r&&r.highlightKey!=null?getHighlightDigit(r.highlightKey):null;o!=null?each$f(normalizeToArray(o),function(l){elSetState(t.getItemGraphicEl(l),n,s)}):t.eachItemGraphicEl(function(l){elSetState(l,n,s)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(t){return renderPlanner(t.model)}function renderTaskReset(t){var r=t.model,n=t.ecModel,o=t.api,s=t.payload,l=r.pipelineContext.progressiveRender,d=t.view,g=s&&inner$j(s).updateMethod,y=l?"incrementalPrepareRender":g&&d[g]?g:"render";return y!=="render"&&d[y](r,n,o,s),progressMethodMap[y]}var progressMethodMap={incrementalPrepareRender:{progress:function(t,r){r.view.incrementalRender(t,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(t,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}},ChartView$1=ChartView,ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(t,r,n){var o,s=0,l=0,d=null,g,y,b,C;r=r||0;function x(){l=new Date().getTime(),d=null,t.apply(y,b||[])}var S=function(){for(var _=[],w=0;w<arguments.length;w++)_[w]=arguments[w];o=new Date().getTime(),y=this,b=_;var $=C||r,I=C||n;C=null,g=o-(I?s:l)-$,clearTimeout(d),I?d=setTimeout(x,$):g>=0?x():d=setTimeout(x,-g),s=o};return S.clear=function(){d&&(clearTimeout(d),d=null)},S.debounceNextCall=function(_){C=_},S}function createOrUpdate(t,r,n,o){var s=t[r];if(!!s){var l=s[ORIGIN_METHOD]||s,d=s[THROTTLE_TYPE],g=s[RATE];if(g!==n||d!==o){if(n==null||!o)return t[r]=l;s=t[r]=throttle(l,n,o==="debounce"),s[ORIGIN_METHOD]=l,s[THROTTLE_TYPE]=o,s[RATE]=n}return s}}function clear$1(t,r){var n=t[r];n&&n[ORIGIN_METHOD]&&(n.clear&&n.clear(),t[r]=n[ORIGIN_METHOD])}var inner$i=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper(t,r){var n=t.visualStyleMapper||defaultStyleMappers[r];return n||(console.warn("Unknown style type '"+r+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(t,r){var n=t.visualDrawType||defaultColorKey[r];return n||(console.warn("Unknown style type '"+r+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var n=t.getData(),o=t.visualStyleAccessPath||"itemStyle",s=t.getModel(o),l=getStyleMapper(t,o),d=l(s),g=s.getShallow("decal");g&&(n.setVisual("decal",g),g.dirty=!0);var y=getDefaultColorKey(t,o),b=d[y],C=isFunction(b)?b:null,x=d.fill==="auto"||d.stroke==="auto";if(!d[y]||C||x){var S=t.getColorFromPalette(t.name,null,r.getSeriesCount());d[y]||(d[y]=S,n.setVisual("colorFromPalette",!0)),d.fill=d.fill==="auto"||isFunction(d.fill)?S:d.fill,d.stroke=d.stroke==="auto"||isFunction(d.stroke)?S:d.stroke}if(n.setVisual("style",d),n.setVisual("drawType",y),!r.isSeriesFiltered(t)&&C)return n.setVisual("colorFromPalette",!1),{dataEach:function(_,w){var $=t.getDataParams(w),I=extend({},d);I[y]=C($),_.setItemVisual(w,"style",I)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!(t.ignoreStyleOnData||r.isSeriesFiltered(t))){var n=t.getData(),o=t.visualStyleAccessPath||"itemStyle",s=getStyleMapper(t,o),l=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(d,g){var y=d.getRawDataItem(g);if(y&&y[o]){sharedModel.option=y[o];var b=s(sharedModel),C=d.ensureUniqueItemVisual(g,"style");extend(C,b),sharedModel.option.decal&&(d.setItemVisual(g,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),l in b&&d.setItemVisual(g,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(t){var r=createHashMap();t.eachSeries(function(n){var o=n.getColorBy();if(!n.isColorBySeries()){var s=n.type+"-"+o,l=r.get(s);l||(l={},r.set(s,l)),inner$i(n).scope=l}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var o=n.getRawData(),s={},l=n.getData(),d=inner$i(n).scope,g=n.visualStyleAccessPath||"itemStyle",y=getDefaultColorKey(n,g);l.each(function(b){var C=l.getRawIndex(b);s[C]=b}),o.each(function(b){var C=s[b],x=l.getItemVisual(C,"colorFromPalette");if(x){var S=l.ensureUniqueItemVisual(C,"style"),_=o.getName(b)||b+"",w=o.count();S[y]=n.getColorFromPalette(_,d,w)}})}})}},PI$5=Math.PI;function defaultLoading(t,r){r=r||{},defaults(r,{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 n=new Group$4,o=new Rect$3({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4});n.add(o);var s=new ZRText$1({style:{text:r.text,fill:r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,fontStyle:r.fontStyle,fontFamily:r.fontFamily},zlevel:r.zlevel,z:10001}),l=new Rect$3({style:{fill:"none"},textContent:s,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});n.add(l);var d;return r.showSpinner&&(d=new Arc$1({shape:{startAngle:-PI$5/2,endAngle:-PI$5/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001}),d.animateShape(!0).when(1e3,{endAngle:PI$5*3/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:PI$5*3/2}).delay(300).start("circularInOut"),n.add(d)),n.resize=function(){var g=s.getBoundingRect().width,y=r.showSpinner?r.spinnerRadius:0,b=(t.getWidth()-y*2-(r.showSpinner&&g?10:0)-g)/2-(r.showSpinner&&g?0:5+g/2)+(r.showSpinner?0:g/2)+(g?0:y),C=t.getHeight()/2;r.showSpinner&&d.setShape({cx:b,cy:C}),l.setShape({x:b-y,y:C-y,width:y*2,height:y*2}),o.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Scheduler=function(){function t(r,n,o,s){this._stageTaskMap=createHashMap(),this.ecInstance=r,this.api=n,o=this._dataProcessorHandlers=o.slice(),s=this._visualHandlers=s.slice(),this._allHandlers=o.concat(s)}return t.prototype.restoreData=function(r,n){r.restoreData(n),this._stageTaskMap.each(function(o){var s=o.overallTask;s&&s.dirty()})},t.prototype.getPerformArgs=function(r,n){if(!!r.__pipeline){var o=this._pipelineMap.get(r.__pipeline.id),s=o.context,l=!n&&o.progressiveEnabled&&(!s||s.progressiveRender)&&r.__idxInPipeline>o.blockIndex,d=l?o.step:null,g=s&&s.modDataCount,y=g!=null?Math.ceil(g/d):null;return{step:d,modBy:y,modDataCount:g}}},t.prototype.getPipeline=function(r){return this._pipelineMap.get(r)},t.prototype.updateStreamModes=function(r,n){var o=this._pipelineMap.get(r.uid),s=r.getData(),l=s.count(),d=o.progressiveEnabled&&n.incrementalPrepareRender&&l>=o.threshold,g=r.get("large")&&l>=r.get("largeThreshold"),y=r.get("progressiveChunkMode")==="mod"?l:null;r.pipelineContext=o.context={progressiveRender:d,modDataCount:y,large:g}},t.prototype.restorePipelines=function(r){var n=this,o=n._pipelineMap=createHashMap();r.eachSeries(function(s){var l=s.getProgressive(),d=s.uid;o.set(d,{id:d,head:null,tail:null,threshold:s.getProgressiveThreshold(),progressiveEnabled:l&&!(s.preventIncremental&&s.preventIncremental()),blockIndex:-1,step:Math.round(l||700),count:0}),n._pipe(s,s.dataTask)})},t.prototype.prepareStageTasks=function(){var r=this._stageTaskMap,n=this.api.getModel(),o=this.api;each$f(this._allHandlers,function(s){var l=r.get(s.uid)||r.set(s.uid,{}),d="";assert(!(s.reset&&s.overallReset),d),s.reset&&this._createSeriesStageTask(s,l,n,o),s.overallReset&&this._createOverallStageTask(s,l,n,o)},this)},t.prototype.prepareView=function(r,n,o,s){var l=r.renderTask,d=l.context;d.model=n,d.ecModel=o,d.api=s,l.__block=!r.incrementalPrepareRender,this._pipe(n,l)},t.prototype.performDataProcessorTasks=function(r,n){this._performStageTasks(this._dataProcessorHandlers,r,n,{block:!0})},t.prototype.performVisualTasks=function(r,n,o){this._performStageTasks(this._visualHandlers,r,n,o)},t.prototype._performStageTasks=function(r,n,o,s){s=s||{};var l=!1,d=this;each$f(r,function(y,b){if(!(s.visualType&&s.visualType!==y.visualType)){var C=d._stageTaskMap.get(y.uid),x=C.seriesTaskMap,S=C.overallTask;if(S){var _,w=S.agentStubMap;w.each(function(I){g(s,I)&&(I.dirty(),_=!0)}),_&&S.dirty(),d.updatePayload(S,o);var $=d.getPerformArgs(S,s.block);w.each(function(I){I.perform($)}),S.perform($)&&(l=!0)}else x&&x.each(function(I,B){g(s,I)&&I.dirty();var R=d.getPerformArgs(I,s.block);R.skip=!y.performRawSeries&&n.isSeriesFiltered(I.context.model),d.updatePayload(I,o),I.perform(R)&&(l=!0)})}});function g(y,b){return y.setDirty&&(!y.dirtyMap||y.dirtyMap.get(b.__pipeline.id))}this.unfinished=l||this.unfinished},t.prototype.performSeriesTasks=function(r){var n;r.eachSeries(function(o){n=o.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(r){var n=r.tail;do{if(n.__block){r.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(r,n){n!=="remain"&&(r.context.payload=n)},t.prototype._createSeriesStageTask=function(r,n,o,s){var l=this,d=n.seriesTaskMap,g=n.seriesTaskMap=createHashMap(),y=r.seriesType,b=r.getTargetSeries;r.createOnAllSeries?o.eachRawSeries(C):y?o.eachRawSeriesByType(y,C):b&&b(o,s).each(C);function C(x){var S=x.uid,_=g.set(S,d&&d.get(S)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));_.context={model:x,ecModel:o,api:s,useClearVisual:r.isVisual&&!r.isLayout,plan:r.plan,reset:r.reset,scheduler:l},l._pipe(x,_)}},t.prototype._createOverallStageTask=function(r,n,o,s){var l=this,d=n.overallTask=n.overallTask||createTask({reset:overallTaskReset});d.context={ecModel:o,api:s,overallReset:r.overallReset,scheduler:l};var g=d.agentStubMap,y=d.agentStubMap=createHashMap(),b=r.seriesType,C=r.getTargetSeries,x=!0,S=!1,_="";assert(!r.createOnAllSeries,_),b?o.eachRawSeriesByType(b,w):C?C(o,s).each(w):(x=!1,each$f(o.getSeries(),w));function w($){var I=$.uid,B=y.set(I,g&&g.get(I)||(S=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));B.context={model:$,overallProgress:x},B.agent=d,B.__block=x,l._pipe($,B)}S&&d.dirty()},t.prototype._pipe=function(r,n){var o=r.uid,s=this._pipelineMap.get(o);!s.head&&(s.head=n),s.tail&&s.tail.pipe(n),s.tail=n,n.__idxInPipeline=s.count++,n.__pipeline=s},t.wrapStageHandler=function(r,n){return isFunction(r)&&(r={overallReset:r,seriesType:detectSeriseType(r)}),r.uid=getUID("stageHandler"),n&&(r.visualType=n),r},t}();function overallTaskReset(t){t.overallReset(t.ecModel,t.api,t.payload)}function stubReset(t){return t.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function seriesTaskReset(t){t.useClearVisual&&t.data.clearAllVisual();var r=t.resetDefines=normalizeToArray(t.reset(t.model,t.ecModel,t.api,t.payload));return r.length>1?map$1(r,function(n,o){return makeSeriesTaskProgress(o)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(t){return function(r,n){var o=n.data,s=n.resetDefines[t];if(s&&s.dataEach)for(var l=r.start;l<r.end;l++)s.dataEach(o,l);else s&&s.progress&&s.progress(r,o)}}function seriesTaskCount(t){return t.data.count()}function detectSeriseType(t){seriesType=null;try{t(ecModelMock,apiMock)}catch(r){}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function(t){seriesType=t};ecModelMock.eachComponent=function(t){t.mainType==="series"&&t.subType&&(seriesType=t.subType)};function mockMethods(t,r){for(var n in r.prototype)t[n]=noop}var Scheduler$1=Scheduler,colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]},contrastColor="#B9B8CE",backgroundColor="#100C2A",axisCommon=function(){return{axisLine:{lineStyle:{color:contrastColor}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},colorPalette=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],theme={darkMode:!0,color:colorPalette,backgroundColor,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:contrastColor}},textStyle:{color:contrastColor},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:contrastColor}},dataZoom:{borderColor:"#71708A",textStyle:{color:contrastColor},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:contrastColor}},timeline:{lineStyle:{color:contrastColor},label:{color:contrastColor},controlStyle:{color:contrastColor,borderColor:contrastColor}},calendar:{itemStyle:{color:backgroundColor},dayLabel:{color:contrastColor},monthLabel:{color:contrastColor},yearLabel:{color:contrastColor}},timeAxis:axisCommon(),logAxis:axisCommon(),valueAxis:axisCommon(),categoryAxis:axisCommon(),line:{symbol:"circle"},graph:{color:colorPalette},gauge:{title:{color:contrastColor},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:contrastColor},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};theme.categoryAxis.splitLine.show=!1;var darkTheme=theme,ECEventProcessor=function(){function t(){}return t.prototype.normalizeQuery=function(r){var n={},o={},s={};if(isString(r)){var l=parseClassType(r);n.mainType=l.main||null,n.subType=l.sub||null}else{var d=["Index","Name","Id"],g={name:1,dataIndex:1,dataType:1};each$f(r,function(y,b){for(var C=!1,x=0;x<d.length;x++){var S=d[x],_=b.lastIndexOf(S);if(_>0&&_===b.length-S.length){var w=b.slice(0,_);w!=="data"&&(n.mainType=w,n[S.toLowerCase()]=y,C=!0)}}g.hasOwnProperty(b)&&(o[b]=y,C=!0),C||(s[b]=y)})}return{cptQuery:n,dataQuery:o,otherQuery:s}},t.prototype.filter=function(r,n){var o=this.eventInfo;if(!o)return!0;var s=o.targetEl,l=o.packedEvent,d=o.model,g=o.view;if(!d||!g)return!0;var y=n.cptQuery,b=n.dataQuery;return C(y,d,"mainType")&&C(y,d,"subType")&&C(y,d,"index","componentIndex")&&C(y,d,"name")&&C(y,d,"id")&&C(b,l,"name")&&C(b,l,"dataIndex")&&C(b,l,"dataType")&&(!g.filterForExposedEvent||g.filterForExposedEvent(r,n.otherQuery,s,l));function C(x,S,_,w){return x[_]==null||S[w||_]===x[_]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var o={},s={},l=!1,d=0;d<SYMBOL_PROPS_WITH_CB.length;d++){var g=SYMBOL_PROPS_WITH_CB[d],y=t.get(g);isFunction(y)?(l=!0,s[g]=y):o[g]=y}if(o.symbol=o.symbol||t.defaultSymbol,n.setVisual(extend({legendIcon:t.legendIcon||o.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},o)),r.isSeriesFiltered(t))return;var b=keys(s);function C(x,S){for(var _=t.getRawValue(S),w=t.getDataParams(S),$=0;$<b.length;$++){var I=b[$];x.setItemVisual(S,I,s[I](_,w))}}return{dataEach:l?C:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!t.hasSymbolVisual||r.isSeriesFiltered(t))return;var n=t.getData();function o(s,l){for(var d=s.getItemModel(l),g=0;g<SYMBOL_PROPS.length;g++){var y=SYMBOL_PROPS[g],b=d.getShallow(y,!0);b!=null&&s.setItemVisual(l,y,b)}}return{dataEach:n.hasItemOption?o:null}}};function getItemVisualFromData(t,r,n){switch(n){case"color":var o=t.getItemVisual(r,"style");return o[t.getVisual("drawType")];case"opacity":return t.getItemVisual(r,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(r,n)}}function getVisualFromData(t,r){switch(r){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(r)}}function setItemVisualFromData(t,r,n,o){switch(n){case"color":var s=t.ensureUniqueItemVisual(r,"style");s[t.getVisual("drawType")]=o,t.setItemVisual(r,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(r,"style").opacity=o;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(r,n,o);break}}function createLegacyDataSelectAction(t,r){function n(o,s){var l=[];return o.eachComponent({mainType:"series",subType:t,query:s},function(d){l.push(d.seriesIndex)}),l}each$f([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(o){r(o[0],function(s,l,d){s=extend({},s),d.dispatchAction(extend(s,{type:o[1],seriesIndex:n(l,s)}))})})}function handleSeriesLegacySelectEvents(t,r,n,o,s){var l=t+r;n.isSilent(l)||o.eachComponent({mainType:"series",subType:"pie"},function(d){for(var g=d.seriesIndex,y=d.option.selectedMap,b=s.selected,C=0;C<b.length;C++)if(b[C].seriesIndex===g){var x=d.getData(),S=queryDataIndex(x,s.fromActionPayload);n.trigger(l,{type:l,seriesId:d.id,name:isArray$1(S)?x.getName(S[0]):x.getName(S),selected:isString(y)?y:extend({},y)})}})}function handleLegacySelectEvents(t,r,n){t.on("selectchanged",function(o){var s=n.getModel();o.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",r,s,o),handleSeriesLegacySelectEvents("pie","selectchanged",r,s,o)):o.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",r,s,o),handleSeriesLegacySelectEvents("pie","selected",r,s,o)):o.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",r,s,o),handleSeriesLegacySelectEvents("pie","unselected",r,s,o))})}function findEventDispatcher(t,r,n){for(var o;t&&!(r(t)&&(o=t,n));)t=t.__hostTarget||t.parent;return o}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap$1=function(){function t(){this._id="__ec_inner_"+wmUniqueIndex++}return t.prototype.get=function(r){return this._guard(r)[this._id]},t.prototype.set=function(r,n){var o=this._guard(r);return supportDefineProperty?Object.defineProperty(o,this._id,{value:n,enumerable:!1,configurable:!0}):o[this._id]=n,this},t.prototype.delete=function(r){return this.has(r)?(delete this._guard(r)[this._id],!0):!1},t.prototype.has=function(r){return!!this._guard(r)[this._id]},t.prototype._guard=function(r){if(r!==Object(r))throw TypeError("Value of WeakMap is not a non-null object.");return r},t}(),WeakMap$2=WeakMap$1,Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,r){var n=r.cx,o=r.cy,s=r.width/2,l=r.height/2;t.moveTo(n,o-l),t.lineTo(n+s,o+l),t.lineTo(n-s,o+l),t.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,r){var n=r.cx,o=r.cy,s=r.width/2,l=r.height/2;t.moveTo(n,o-l),t.lineTo(n+s,o),t.lineTo(n,o+l),t.lineTo(n-s,o),t.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,r){var n=r.x,o=r.y,s=r.width/5*3,l=Math.max(s,r.height),d=s/2,g=d*d/(l-d),y=o-l+d+g,b=Math.asin(g/d),C=Math.cos(b)*d,x=Math.sin(b),S=Math.cos(b),_=d*.6,w=d*.7;t.moveTo(n-C,y+g),t.arc(n,y,d,Math.PI-b,Math.PI*2+b),t.bezierCurveTo(n+C-x*_,y+g+S*_,n,o-w,n,o),t.bezierCurveTo(n,o-w,n-C+x*_,y+g+S*_,n-C,y+g),t.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,r){var n=r.height,o=r.width,s=r.x,l=r.y,d=o/3*2;t.moveTo(s,l),t.lineTo(s+d,l+n),t.lineTo(s,l+n/4*3),t.lineTo(s-d,l+n),t.lineTo(s,l),t.closePath()}}),symbolCtors={line:Line$3,rect:Rect$3,roundRect:Rect$3,square:Rect$3,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function(t,r,n,o,s){s.x1=t,s.y1=r+o/2,s.x2=t+n,s.y2=r+o/2},rect:function(t,r,n,o,s){s.x=t,s.y=r,s.width=n,s.height=o},roundRect:function(t,r,n,o,s){s.x=t,s.y=r,s.width=n,s.height=o,s.r=Math.min(n,o)/4},square:function(t,r,n,o,s){var l=Math.min(n,o);s.x=t,s.y=r,s.width=l,s.height=l},circle:function(t,r,n,o,s){s.cx=t+n/2,s.cy=r+o/2,s.r=Math.min(n,o)/2},diamond:function(t,r,n,o,s){s.cx=t+n/2,s.cy=r+o/2,s.width=n,s.height=o},pin:function(t,r,n,o,s){s.x=t+n/2,s.y=r+o/2,s.width=n,s.height=o},arrow:function(t,r,n,o,s){s.x=t+n/2,s.y=r+o/2,s.width=n,s.height=o},triangle:function(t,r,n,o,s){s.cx=t+n/2,s.cy=r+o/2,s.width=n,s.height=o}},symbolBuildProxies={};each$f(symbolCtors,function(t,r){symbolBuildProxies[r]=new t});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,r,n){var o=calculateTextPosition(t,r,n),s=this.shape;return s&&s.symbolType==="pin"&&r.position==="inside"&&(o.y=n.y+n.height*.4),o},buildPath:function(t,r,n){var o=r.symbolType;if(o!=="none"){var s=symbolBuildProxies[o];s||(o="rect",s=symbolBuildProxies[o]),symbolShapeMakers[o](r.x,r.y,r.width,r.height,s.shape),s.buildPath(t,s.shape,n)}}});function symbolPathSetColor(t,r){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=r||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function createSymbol$1(t,r,n,o,s,l,d){var g=t.indexOf("empty")===0;g&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var y;return t.indexOf("image://")===0?y=makeImage(t.slice(8),new BoundingRect$1(r,n,o,s),d?"center":"cover"):t.indexOf("path://")===0?y=makePath(t.slice(7),{},new BoundingRect$1(r,n,o,s),d?"center":"cover"):y=new SymbolClz$1({shape:{symbolType:t,x:r,y:n,width:o,height:s}}),y.__isEmptyBrush=g,y.setColor=symbolPathSetColor,l&&y.setColor(l),y}function normalizeSymbolSize(t){return isArray$1(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function normalizeSymbolOffset(t,r){if(t!=null)return isArray$1(t)||(t=[t,t]),[parsePercent(t[0],r[0])||0,parsePercent(retrieve2(t[1],t[0]),r[1])||0]}function isSafeNum(t){return isFinite(t)}function createLinearGradient(t,r,n){var o=r.x==null?0:r.x,s=r.x2==null?1:r.x2,l=r.y==null?0:r.y,d=r.y2==null?0:r.y2;r.global||(o=o*n.width+n.x,s=s*n.width+n.x,l=l*n.height+n.y,d=d*n.height+n.y),o=isSafeNum(o)?o:0,s=isSafeNum(s)?s:1,l=isSafeNum(l)?l:0,d=isSafeNum(d)?d:0;var g=t.createLinearGradient(o,l,s,d);return g}function createRadialGradient(t,r,n){var o=n.width,s=n.height,l=Math.min(o,s),d=r.x==null?.5:r.x,g=r.y==null?.5:r.y,y=r.r==null?.5:r.r;r.global||(d=d*o+n.x,g=g*s+n.y,y=y*l),d=isSafeNum(d)?d:.5,g=isSafeNum(g)?g:.5,y=y>=0&&isSafeNum(y)?y:.5;var b=t.createRadialGradient(d,g,0,d,g,y);return b}function getCanvasGradient(t,r,n){for(var o=r.type==="radial"?createRadialGradient(t,r,n):createLinearGradient(t,r,n),s=r.colorStops,l=0;l<s.length;l++)o.addColorStop(s[l].offset,s[l].color);return o}function isClipPathChanged(t,r){if(t===r||!t&&!r)return!1;if(!t||!r||t.length!==r.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==r[n])return!0;return!1}function parseInt10(t){return parseInt(t,10)}function getSize$1(t,r,n){var o=["width","height"][r],s=["clientWidth","clientHeight"][r],l=["paddingLeft","paddingTop"][r],d=["paddingRight","paddingBottom"][r];if(n[o]!=null&&n[o]!=="auto")return parseFloat(n[o]);var g=document.defaultView.getComputedStyle(t);return(t[s]||parseInt10(g[o])||parseInt10(t.style[o]))-(parseInt10(g[l])||0)-(parseInt10(g[d])||0)|0}function normalizeLineDash(t,r){return!t||t==="solid"||!(r>0)?null:t==="dashed"?[4*r,2*r]:t==="dotted"?[r]:isNumber(t)?[t]:isArray$1(t)?t:null}function getLineDash(t){var r=t.style,n=r.lineDash&&r.lineWidth>0&&normalizeLineDash(r.lineDash,r.lineWidth),o=r.lineDashOffset;if(n){var s=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&s!==1&&(n=map$1(n,function(l){return l/s}),o/=s)}return[n,o]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(t){var r=t.stroke;return!(r==null||r==="none"||!(t.lineWidth>0))}function isValidStrokeFillStyle(t){return typeof t=="string"&&t!=="none"}function styleHasFill(t){var r=t.fill;return r!=null&&r!=="none"}function doFillPath(t,r){if(r.fillOpacity!=null&&r.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=r.fillOpacity*r.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function doStrokePath(t,r){if(r.strokeOpacity!=null&&r.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=r.strokeOpacity*r.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function createCanvasPattern(t,r,n){var o=createOrUpdateImage(r.image,r.__image,n);if(isImageReady(o)){var s=t.createPattern(o,r.repeat||"repeat");if(typeof DOMMatrix=="function"&&s&&s.setTransform){var l=new DOMMatrix;l.translateSelf(r.x||0,r.y||0),l.rotateSelf(0,0,(r.rotation||0)*RADIAN_TO_DEGREE),l.scaleSelf(r.scaleX||1,r.scaleY||1),s.setTransform(l)}return s}}function brushPath(t,r,n,o){var s,l=styleHasStroke(n),d=styleHasFill(n),g=n.strokePercent,y=g<1,b=!r.path;(!r.silent||y)&&b&&r.createPathProxy();var C=r.path||pathProxyForDraw,x=r.__dirty;if(!o){var S=n.fill,_=n.stroke,w=d&&!!S.colorStops,$=l&&!!_.colorStops,I=d&&!!S.image,B=l&&!!_.image,R=void 0,P=void 0,M=void 0,O=void 0,D=void 0;(w||$)&&(D=r.getBoundingRect()),w&&(R=x?getCanvasGradient(t,S,D):r.__canvasFillGradient,r.__canvasFillGradient=R),$&&(P=x?getCanvasGradient(t,_,D):r.__canvasStrokeGradient,r.__canvasStrokeGradient=P),I&&(M=x||!r.__canvasFillPattern?createCanvasPattern(t,S,r):r.__canvasFillPattern,r.__canvasFillPattern=M),B&&(O=x||!r.__canvasStrokePattern?createCanvasPattern(t,_,r):r.__canvasStrokePattern,r.__canvasStrokePattern=M),w?t.fillStyle=R:I&&(M?t.fillStyle=M:d=!1),$?t.strokeStyle=P:B&&(O?t.strokeStyle=O:l=!1)}var N=r.getGlobalScale();C.setScale(N[0],N[1],r.segmentIgnoreThreshold);var H,Q;t.setLineDash&&n.lineDash&&(s=getLineDash(r),H=s[0],Q=s[1]);var G=!0;(b||x&SHAPE_CHANGED_BIT)&&(C.setDPR(t.dpr),y?C.setContext(null):(C.setContext(t),G=!1),C.reset(),r.buildPath(C,r.shape,o),C.toStatic(),r.pathUpdated()),G&&C.rebuildPath(t,y?g:1),H&&(t.setLineDash(H),t.lineDashOffset=Q),o||(n.strokeFirst?(l&&doStrokePath(t,n),d&&doFillPath(t,n)):(d&&doFillPath(t,n),l&&doStrokePath(t,n))),H&&t.setLineDash([])}function brushImage(t,r,n){var o=r.__image=createOrUpdateImage(n.image,r.__image,r,r.onload);if(!(!o||!isImageReady(o))){var s=n.x||0,l=n.y||0,d=r.getWidth(),g=r.getHeight(),y=o.width/o.height;if(d==null&&g!=null?d=g*y:g==null&&d!=null?g=d/y:d==null&&g==null&&(d=o.width,g=o.height),n.sWidth&&n.sHeight){var b=n.sx||0,C=n.sy||0;t.drawImage(o,b,C,n.sWidth,n.sHeight,s,l,d,g)}else if(n.sx&&n.sy){var b=n.sx,C=n.sy,x=d-b,S=g-C;t.drawImage(o,b,C,x,S,s,l,d,g)}else t.drawImage(o,s,l,d,g)}}function brushText(t,r,n){var o,s=n.text;if(s!=null&&(s+=""),s){t.font=n.font||DEFAULT_FONT,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var l=void 0,d=void 0;t.setLineDash&&n.lineDash&&(o=getLineDash(r),l=o[0],d=o[1]),l&&(t.setLineDash(l),t.lineDashOffset=d),n.strokeFirst?(styleHasStroke(n)&&t.strokeText(s,n.x,n.y),styleHasFill(n)&&t.fillText(s,n.x,n.y)):(styleHasFill(n)&&t.fillText(s,n.x,n.y),styleHasStroke(n)&&t.strokeText(s,n.x,n.y)),l&&t.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(t,r,n,o,s){var l=!1;if(!o&&(n=n||{},r===n))return!1;if(o||r.opacity!==n.opacity){flushPathDrawn(t,s),l=!0;var d=Math.max(Math.min(r.opacity,1),0);t.globalAlpha=isNaN(d)?DEFAULT_COMMON_STYLE.opacity:d}(o||r.blend!==n.blend)&&(l||(flushPathDrawn(t,s),l=!0),t.globalCompositeOperation=r.blend||DEFAULT_COMMON_STYLE.blend);for(var g=0;g<SHADOW_NUMBER_PROPS.length;g++){var y=SHADOW_NUMBER_PROPS[g];(o||r[y]!==n[y])&&(l||(flushPathDrawn(t,s),l=!0),t[y]=t.dpr*(r[y]||0))}return(o||r.shadowColor!==n.shadowColor)&&(l||(flushPathDrawn(t,s),l=!0),t.shadowColor=r.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),l}function bindPathAndTextCommonStyle(t,r,n,o,s){var l=getStyle(r,s.inHover),d=o?null:n&&getStyle(n,s.inHover)||{};if(l===d)return!1;var g=bindCommonProps(t,l,d,o,s);if((o||l.fill!==d.fill)&&(g||(flushPathDrawn(t,s),g=!0),isValidStrokeFillStyle(l.fill)&&(t.fillStyle=l.fill)),(o||l.stroke!==d.stroke)&&(g||(flushPathDrawn(t,s),g=!0),isValidStrokeFillStyle(l.stroke)&&(t.strokeStyle=l.stroke)),(o||l.opacity!==d.opacity)&&(g||(flushPathDrawn(t,s),g=!0),t.globalAlpha=l.opacity==null?1:l.opacity),r.hasStroke()){var y=l.lineWidth,b=y/(l.strokeNoScale&&r.getLineScale?r.getLineScale():1);t.lineWidth!==b&&(g||(flushPathDrawn(t,s),g=!0),t.lineWidth=b)}for(var C=0;C<STROKE_PROPS.length;C++){var x=STROKE_PROPS[C],S=x[0];(o||l[S]!==d[S])&&(g||(flushPathDrawn(t,s),g=!0),t[S]=l[S]||x[1])}return g}function bindImageStyle(t,r,n,o,s){return bindCommonProps(t,getStyle(r,s.inHover),n&&getStyle(n,s.inHover),o,s)}function setContextTransform(t,r){var n=r.transform,o=t.dpr||1;n?t.setTransform(o*n[0],o*n[1],o*n[2],o*n[3],o*n[4],o*n[5]):t.setTransform(o,0,0,o,0,0)}function updateClipStatus(t,r,n){for(var o=!1,s=0;s<t.length;s++){var l=t[s];o=o||l.isZeroArea(),setContextTransform(r,l),r.beginPath(),l.buildPath(r,l.shape),r.clip()}n.allClipped=o}function isTransformChanged(t,r){return t&&r?t[0]!==r[0]||t[1]!==r[1]||t[2]!==r[2]||t[3]!==r[3]||t[4]!==r[4]||t[5]!==r[5]:!(!t&&!r)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch(t){var r=styleHasFill(t),n=styleHasStroke(t);return!(t.lineDash||!(+r^+n)||r&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function flushPathDrawn(t,r){r.batchFill&&t.fill(),r.batchStroke&&t.stroke(),r.batchFill="",r.batchStroke=""}function getStyle(t,r){return r&&t.__hoverStyle||t.style}function brushSingle(t,r){brush$1(t,r,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush$1(t,r,n,o){var s=r.transform;if(!r.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){r.__dirty&=~REDRAW_BIT,r.__isRendered=!1;return}var l=r.__clipPaths,d=n.prevElClipPaths,g=!1,y=!1;if((!d||isClipPathChanged(l,d))&&(d&&d.length&&(flushPathDrawn(t,n),t.restore(),y=g=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),l&&l.length&&(flushPathDrawn(t,n),t.save(),updateClipStatus(l,t,n),g=!0),n.prevElClipPaths=l),n.allClipped){r.__isRendered=!1;return}r.beforeBrush&&r.beforeBrush(),r.innerBeforeBrush();var b=n.prevEl;b||(y=g=!0);var C=r instanceof Path$1&&r.autoBatch&&canPathBatch(r.style);g||isTransformChanged(s,b.transform)?(flushPathDrawn(t,n),setContextTransform(t,r)):C||flushPathDrawn(t,n);var x=getStyle(r,n.inHover);r instanceof Path$1?(n.lastDrawType!==DRAW_TYPE_PATH&&(y=!0,n.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle(t,r,b,y,n),(!C||!n.batchFill&&!n.batchStroke)&&t.beginPath(),brushPath(t,r,x,C),C&&(n.batchFill=x.fill||"",n.batchStroke=x.stroke||"")):r instanceof TSpan$1?(n.lastDrawType!==DRAW_TYPE_TEXT&&(y=!0,n.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle(t,r,b,y,n),brushText(t,r,x)):r instanceof ZRImage$1?(n.lastDrawType!==DRAW_TYPE_IMAGE&&(y=!0,n.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle(t,r,b,y,n),brushImage(t,r,x)):r.getTemporalDisplayables&&(n.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(y=!0,n.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental(t,r,n)),C&&o&&flushPathDrawn(t,n),r.innerAfterBrush(),r.afterBrush&&r.afterBrush(),n.prevEl=r,r.__dirty=0,r.__isRendered=!0}function brushIncremental(t,r,n){var o=r.getDisplayables(),s=r.getTemporalDisplayables();t.save();var l={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},d,g;for(d=r.getCursor(),g=o.length;d<g;d++){var y=o[d];y.beforeBrush&&y.beforeBrush(),y.innerBeforeBrush(),brush$1(t,y,l,d===g-1),y.innerAfterBrush(),y.afterBrush&&y.afterBrush(),l.prevEl=y}for(var b=0,C=s.length;b<C;b++){var y=s[b];y.beforeBrush&&y.beforeBrush(),y.innerBeforeBrush(),brush$1(t,y,l,b===C-1),y.innerAfterBrush(),y.afterBrush&&y.afterBrush(),l.prevEl=y}r.clearTemporalDisplayables(),r.notClear=!0,t.restore()}var decalMap=new WeakMap$2,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal(t,r){if(t==="none")return null;var n=r.getDevicePixelRatio(),o=r.getZr(),s=o.painter.type==="svg";t.dirty&&decalMap.delete(t);var l=decalMap.get(t);if(l)return l;var d=defaults(t,{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});d.backgroundColor==="none"&&(d.backgroundColor=null);var g={repeat:"repeat"};return y(g),g.rotation=d.rotation,g.scaleX=g.scaleY=s?1:1/n,decalMap.set(t,g),t.dirty=!1,g;function y(b){for(var C=[n],x=!0,S=0;S<decalKeys.length;++S){var _=d[decalKeys[S]];if(_!=null&&!isArray$1(_)&&!isString(_)&&!isNumber(_)&&typeof _!="boolean"){x=!1;break}C.push(_)}var w;if(x){w=C.join(",")+(s?"-svg":"");var $=decalCache.get(w);$&&(s?b.svgElement=$:b.image=$)}var I=normalizeDashArrayX(d.dashArrayX),B=normalizeDashArrayY(d.dashArrayY),R=normalizeSymbolArray(d.symbol),P=getLineBlockLengthX(I),M=getLineBlockLengthY(B),O=!s&&platformApi.createCanvas(),D=s&&{tag:"g",attrs:{},key:"dcl",children:[]},N=Q(),H;O&&(O.width=N.width*n,O.height=N.height*n,H=O.getContext("2d")),G(),x&&decalCache.put(w,O||D),b.image=O,b.svgElement=D,b.svgWidth=N.width,b.svgHeight=N.height;function Q(){for(var K=1,W=0,j=P.length;W<j;++W)K=getLeastCommonMultiple(K,P[W]);for(var Y=1,W=0,j=R.length;W<j;++W)Y=getLeastCommonMultiple(Y,R[W].length);K*=Y;var q=M*P.length*R.length;return{width:Math.max(1,Math.min(K,d.maxTileWidth)),height:Math.max(1,Math.min(q,d.maxTileHeight))}}function G(){H&&(H.clearRect(0,0,O.width,O.height),d.backgroundColor&&(H.fillStyle=d.backgroundColor,H.fillRect(0,0,O.width,O.height)));for(var K=0,W=0;W<B.length;++W)K+=B[W];if(K<=0)return;for(var j=-M,Y=0,q=0,X=0;j<N.height;){if(Y%2===0){for(var re=q/2%R.length,te=0,oe=0,ae=0;te<N.width*2;){for(var se=0,W=0;W<I[X].length;++W)se+=I[X][W];if(se<=0)break;if(oe%2===0){var ue=(1-d.symbolSize)*.5,Ae=te+I[X][oe]*ue,pe=j+B[Y]*ue,he=I[X][oe]*d.symbolSize,Ce=B[Y]*d.symbolSize,ve=ae/2%R[re].length;ye(Ae,pe,he,Ce,R[re][ve])}te+=I[X][oe],++ae,++oe,oe===I[X].length&&(oe=0)}++X,X===I.length&&(X=0)}j+=B[Y],++q,++Y,Y===B.length&&(Y=0)}function ye(Be,Se,Ee,ie,ee){var J=s?1:n,ce=createSymbol$1(ee,Be*J,Se*J,Ee*J,ie*J,d.color,d.symbolKeepAspect);if(s){var fe=o.painter.renderOneToVNode(ce);fe&&D.children.push(fe)}else brushSingle(H,ce)}}}}function normalizeSymbolArray(t){if(!t||t.length===0)return[["rect"]];if(isString(t))return[[t]];for(var r=!0,n=0;n<t.length;++n)if(!isString(t[n])){r=!1;break}if(r)return normalizeSymbolArray([t]);for(var o=[],n=0;n<t.length;++n)isString(t[n])?o.push([t[n]]):o.push(t[n]);return o}function normalizeDashArrayX(t){if(!t||t.length===0)return[[0,0]];if(isNumber(t)){var r=Math.ceil(t);return[[r,r]]}for(var n=!0,o=0;o<t.length;++o)if(!isNumber(t[o])){n=!1;break}if(n)return normalizeDashArrayX([t]);for(var s=[],o=0;o<t.length;++o)if(isNumber(t[o])){var r=Math.ceil(t[o]);s.push([r,r])}else{var r=map$1(t[o],function(g){return Math.ceil(g)});r.length%2===1?s.push(r.concat(r)):s.push(r)}return s}function normalizeDashArrayY(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(isNumber(t)){var r=Math.ceil(t);return[r,r]}var n=map$1(t,function(o){return Math.ceil(o)});return t.length%2?n.concat(n):n}function getLineBlockLengthX(t){return map$1(t,function(r){return getLineBlockLengthY(r)})}function getLineBlockLengthY(t){for(var r=0,n=0;n<t.length;++n)r+=t[n];return t.length%2===1?r*2:r}function decalVisual(t,r){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var o=n.getData();o.hasItemVisual()&&o.each(function(d){var g=o.getItemVisual(d,"decal");if(g){var y=o.ensureUniqueItemVisual(d,"style");y.decal=createOrUpdatePatternFromDecal(g,r)}});var s=o.getVisual("decal");if(s){var l=o.getVisual("style");l.decal=createOrUpdatePatternFromDecal(s,r)}}})}var lifecycle=new Eventful$1,lifecycle$1=lifecycle,implsStore={};function registerImpl(t,r){implsStore[t]=r}function getImpl(t){return implsStore[t]}var version="5.4.1",dependencies={zrender:"5.4.1"},TEST_FRAME_REMAIN_TIME=1,PRIORITY_PROCESSOR_SERIES_FILTER=800,PRIORITY_PROCESSOR_DATASTACK=900,PRIORITY_PROCESSOR_FILTER=1e3,PRIORITY_PROCESSOR_DEFAULT=2e3,PRIORITY_PROCESSOR_STATISTIC=5e3,PRIORITY_VISUAL_LAYOUT=1e3,PRIORITY_VISUAL_PROGRESSIVE_LAYOUT=1100,PRIORITY_VISUAL_GLOBAL=2e3,PRIORITY_VISUAL_CHART=3e3,PRIORITY_VISUAL_COMPONENT=4e3,PRIORITY_VISUAL_CHART_DATA_CUSTOM=4500,PRIORITY_VISUAL_POST_CHART_LAYOUT=4600,PRIORITY_VISUAL_BRUSH=5e3,PRIORITY_VISUAL_ARIA=6e3,PRIORITY_VISUAL_DECAL=7e3,PRIORITY={PROCESSOR:{FILTER:PRIORITY_PROCESSOR_FILTER,SERIES_FILTER:PRIORITY_PROCESSOR_SERIES_FILTER,STATISTIC:PRIORITY_PROCESSOR_STATISTIC},VISUAL:{LAYOUT:PRIORITY_VISUAL_LAYOUT,PROGRESSIVE_LAYOUT:PRIORITY_VISUAL_PROGRESSIVE_LAYOUT,GLOBAL:PRIORITY_VISUAL_GLOBAL,CHART:PRIORITY_VISUAL_CHART,POST_CHART_LAYOUT:PRIORITY_VISUAL_POST_CHART_LAYOUT,COMPONENT:PRIORITY_VISUAL_COMPONENT,BRUSH:PRIORITY_VISUAL_BRUSH,CHART_ITEM:PRIORITY_VISUAL_CHART_DATA_CUSTOM,ARIA:PRIORITY_VISUAL_ARIA,DECAL:PRIORITY_VISUAL_DECAL}},IN_MAIN_PROCESS_KEY="__flagInMainProcess",PENDING_UPDATE="__pendingUpdate",STATUS_NEEDS_UPDATE_KEY="__needsUpdateStatus",ACTION_REG=/^[a-zA-Z0-9_]+$/,CONNECT_STATUS_KEY="__connectUpdateStatus",CONNECT_STATUS_PENDING=0,CONNECT_STATUS_UPDATING=1,CONNECT_STATUS_UPDATED=2;function createRegisterEventWithLowercaseECharts(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,t,r)}}function createRegisterEventWithLowercaseMessageCenter(t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return toLowercaseNameAndCallEventful(this,t,r)}}function toLowercaseNameAndCallEventful(t,r,n){return n[0]=n[0]&&n[0].toLowerCase(),Eventful$1.prototype[r].apply(t,n)}var MessageCenter=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this,new ECEventProcessor)||this;l._chartsViews=[],l._chartsMap={},l._componentsViews=[],l._componentsMap={},l._pendingActions=[],s=s||{},isString(o)&&(o=themeStorage[o]),l._dom=n;var d="canvas",g="auto",y=!1,b=l._zr=init$2(n,{renderer:s.renderer||d,devicePixelRatio:s.devicePixelRatio,width:s.width,height:s.height,ssr:s.ssr,useDirtyRect:retrieve2(s.useDirtyRect,y),useCoarsePointer:retrieve2(s.useCoarsePointer,g),pointerSize:s.pointerSize});l._ssr=s.ssr,l._throttledZrFlush=throttle(bind$1(b.flush,b),17),o=clone$4(o),o&&globalBackwardCompat(o,!0),l._theme=o,l._locale=createLocaleObject(s.locale||SYSTEM_LANG),l._coordSysMgr=new CoordinateSystem;var C=l._api=createExtensionAPI(l);function x(S,_){return S.__prio-_.__prio}return sort$2(visualFuncs,x),sort$2(dataProcessorFuncs,x),l._scheduler=new Scheduler$1(l,C,dataProcessorFuncs,visualFuncs),l._messageCenter=new MessageCenter,l._initEvents(),l.resize=bind$1(l.resize,l),b.animation.on("frame",l._onframe,l),bindRenderedEvent(b,l),bindMouseEvent(b,l),setAsPrimitive(l),l}return r.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var n=this._scheduler;if(this[PENDING_UPDATE]){var o=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(y){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,y}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,o),triggerUpdatedEvent.call(this,o)}else if(n.unfinished){var s=TEST_FRAME_REMAIN_TIME,l=this._model,d=this._api;n.unfinished=!1;do{var g=+new Date;n.performSeriesTasks(l),n.performDataProcessorTasks(l),updateStreamModes(this,l),n.performVisualTasks(l),renderSeries(this,this._model,d,"remain",{}),s-=+new Date-g}while(s>0&&n.unfinished);n.unfinished||this._zr.flush()}}},r.prototype.getDom=function(){return this._dom},r.prototype.getId=function(){return this.id},r.prototype.getZr=function(){return this._zr},r.prototype.isSSR=function(){return this._ssr},r.prototype.setOption=function(n,o,s){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var l,d,g;if(isObject$3(o)&&(s=o.lazyUpdate,l=o.silent,d=o.replaceMerge,g=o.transition,o=o.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||o){var y=new OptionManager$1(this._api),b=this._theme,C=this._model=new GlobalModel$1;C.scheduler=this._scheduler,C.ssr=this._ssr,C.init(null,null,null,b,this._locale,y)}this._model.setOption(n,{replaceMerge:d},optionPreprocessorFuncs);var x={seriesTransition:g,optionChanged:!0};if(s)this[PENDING_UPDATE]={silent:l,updateParams:x},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare(this),updateMethods.update.call(this,null,x)}catch(S){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,S}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,l),triggerUpdatedEvent.call(this,l)}}},r.prototype.setTheme=function(){},r.prototype.getModel=function(){return this._model},r.prototype.getOption=function(){return this._model&&this._model.getOption()},r.prototype.getWidth=function(){return this._zr.getWidth()},r.prototype.getHeight=function(){return this._zr.getHeight()},r.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},r.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},r.prototype.renderToCanvas=function(n){n=n||{};var o=this._zr.painter;return o.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},r.prototype.renderToSVGString=function(n){n=n||{};var o=this._zr.painter;return o.renderToString({useViewBox:n.useViewBox})},r.prototype.getSvgDataURL=function(){if(!!env$1.svgSupported){var n=this._zr,o=n.storage.getDisplayList();return each$f(o,function(s){s.stopAnimation(null,!0)}),n.painter.toDataURL()}},r.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var o=n.excludeComponents,s=this._model,l=[],d=this;each$f(o,function(y){s.eachComponent({mainType:y},function(b){var C=d._componentsMap[b.__viewId];C.group.ignore||(l.push(C),C.group.ignore=!0)})});var g=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return each$f(l,function(y){y.group.ignore=!1}),g},r.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var o=n.type==="svg",s=this.group,l=Math.min,d=Math.max,g=1/0;if(connectedGroups[s]){var y=g,b=g,C=-g,x=-g,S=[],_=n&&n.pixelRatio||this.getDevicePixelRatio();each$f(instances,function(P,M){if(P.group===s){var O=o?P.getZr().painter.getSvgDom().innerHTML:P.renderToCanvas(clone$4(n)),D=P.getDom().getBoundingClientRect();y=l(D.left,y),b=l(D.top,b),C=d(D.right,C),x=d(D.bottom,x),S.push({dom:O,left:D.left,top:D.top})}}),y*=_,b*=_,C*=_,x*=_;var w=C-y,$=x-b,I=platformApi.createCanvas(),B=init$2(I,{renderer:o?"svg":"canvas"});if(B.resize({width:w,height:$}),o){var R="";return each$f(S,function(P){var M=P.left-y,O=P.top-b;R+='<g transform="translate('+M+","+O+')">'+P.dom+"</g>"}),B.painter.getSvgRoot().innerHTML=R,n.connectedBackgroundColor&&B.painter.setBackgroundColor(n.connectedBackgroundColor),B.refreshImmediately(),B.painter.toDataURL()}else return n.connectedBackgroundColor&&B.add(new Rect$3({shape:{x:0,y:0,width:w,height:$},style:{fill:n.connectedBackgroundColor}})),each$f(S,function(P){var M=new ZRImage$1({style:{x:P.left*_-y,y:P.top*_-b,image:P.dom}});B.add(M)}),B.refreshImmediately(),I.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},r.prototype.convertToPixel=function(n,o){return doConvertPixel(this,"convertToPixel",n,o)},r.prototype.convertFromPixel=function(n,o){return doConvertPixel(this,"convertFromPixel",n,o)},r.prototype.containPixel=function(n,o){if(this._disposed){this.id;return}var s=this._model,l,d=parseFinder$1(s,n);return each$f(d,function(g,y){y.indexOf("Models")>=0&&each$f(g,function(b){var C=b.coordinateSystem;if(C&&C.containPoint)l=l||!!C.containPoint(o);else if(y==="seriesModels"){var x=this._chartsMap[b.__viewId];x&&x.containPoint&&(l=l||x.containPoint(o,b))}},this)},this),!!l},r.prototype.getVisual=function(n,o){var s=this._model,l=parseFinder$1(s,n,{defaultMainType:"series"}),d=l.seriesModel,g=d.getData(),y=l.hasOwnProperty("dataIndexInside")?l.dataIndexInside:l.hasOwnProperty("dataIndex")?g.indexOfRawIndex(l.dataIndex):null;return y!=null?getItemVisualFromData(g,y,o):getVisualFromData(g,o)},r.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},r.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},r.prototype._initEvents=function(){var n=this;each$f(MOUSE_EVENT_NAMES,function(o){var s=function(l){var d=n.getModel(),g=l.target,y,b=o==="globalout";if(b?y={}:g&&findEventDispatcher(g,function(w){var $=getECData(w);if($&&$.dataIndex!=null){var I=$.dataModel||d.getSeriesByIndex($.seriesIndex);return y=I&&I.getDataParams($.dataIndex,$.dataType)||{},!0}else if($.eventData)return y=extend({},$.eventData),!0},!0),y){var C=y.componentType,x=y.componentIndex;(C==="markLine"||C==="markPoint"||C==="markArea")&&(C="series",x=y.seriesIndex);var S=C&&x!=null&&d.getComponent(C,x),_=S&&n[S.mainType==="series"?"_chartsMap":"_componentsMap"][S.__viewId];y.event=l,y.type=o,n._$eventProcessor.eventInfo={targetEl:g,packedEvent:y,model:S,view:_},n.trigger(o,y)}};s.zrEventfulCallAtLast=!0,n._zr.on(o,s,n)}),each$f(eventActionMap,function(o,s){n._messageCenter.on(s,function(l){this.trigger(s,l)},n)}),each$f(["selectchanged"],function(o){n._messageCenter.on(o,function(s){this.trigger(o,s)},n)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},r.prototype.isDisposed=function(){return this._disposed},r.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},r.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var o=this,s=o._api,l=o._model;each$f(o._componentsViews,function(d){d.dispose(l,s)}),each$f(o._chartsViews,function(d){d.dispose(l,s)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete instances[o.id]},r.prototype.resize=function(n){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(n);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!o){var s=o.resetOption("media"),l=n&&n.silent;this[PENDING_UPDATE]&&(l==null&&(l=this[PENDING_UPDATE].silent),s=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{s&&prepare(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},n&&n.animation)})}catch(d){throw this[IN_MAIN_PROCESS_KEY]=!1,d}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,l),triggerUpdatedEvent.call(this,l)}}},r.prototype.showLoading=function(n,o){if(this._disposed){this.id;return}if(isObject$3(n)&&(o=n,n=""),n=n||"default",this.hideLoading(),!!loadingEffects[n]){var s=loadingEffects[n](this._api,o),l=this._zr;this._loadingFX=s,l.add(s)}},r.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},r.prototype.makeActionFromEvent=function(n){var o=extend({},n);return o.type=eventActionMap[n.type],o},r.prototype.dispatchAction=function(n,o){if(this._disposed){this.id;return}if(isObject$3(o)||(o={silent:!!o}),!!actions[n.type]&&!!this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(n);return}var s=o.silent;doDispatchAction.call(this,n,s);var l=o.flush;l?this._zr.flush():l!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,s),triggerUpdatedEvent.call(this,s)}},r.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},r.prototype.appendData=function(n){if(this._disposed){this.id;return}var o=n.seriesIndex,s=this.getModel(),l=s.getSeriesByIndex(o);l.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},r.internalField=function(){prepare=function(x){var S=x._scheduler;S.restorePipelines(x._model),S.prepareStageTasks(),prepareView(x,!0),prepareView(x,!1),S.plan()},prepareView=function(x,S){for(var _=x._model,w=x._scheduler,$=S?x._componentsViews:x._chartsViews,I=S?x._componentsMap:x._chartsMap,B=x._zr,R=x._api,P=0;P<$.length;P++)$[P].__alive=!1;S?_.eachComponent(function(D,N){D!=="series"&&M(N)}):_.eachSeries(M);function M(D){var N=D.__requireNewView;D.__requireNewView=!1;var H="_ec_"+D.id+"_"+D.type,Q=!N&&I[H];if(!Q){var G=parseClassType(D.type),K=S?ComponentView$1.getClass(G.main,G.sub):ChartView$1.getClass(G.sub);Q=new K,Q.init(_,R),I[H]=Q,$.push(Q),B.add(Q.group)}D.__viewId=Q.__id=H,Q.__alive=!0,Q.__model=D,Q.group.__ecComponentInfo={mainType:D.mainType,index:D.componentIndex},!S&&w.prepareView(Q,D,_,R)}for(var P=0;P<$.length;){var O=$[P];O.__alive?P++:(!S&&O.renderTask.dispose(),B.remove(O.group),O.dispose(_,R),$.splice(P,1),I[O.__id]===O&&delete I[O.__id],O.__id=O.group.__ecComponentInfo=null)}},updateDirectly=function(x,S,_,w,$){var I=x._model;if(I.setUpdatePayload(_),!w){each$f([].concat(x._componentsViews).concat(x._chartsViews),O);return}var B={};B[w+"Id"]=_[w+"Id"],B[w+"Index"]=_[w+"Index"],B[w+"Name"]=_[w+"Name"];var R={mainType:w,query:B};$&&(R.subType=$);var P=_.excludeSeriesId,M;P!=null&&(M=createHashMap(),each$f(normalizeToArray(P),function(D){var N=convertOptionIdName(D,null);N!=null&&M.set(N,!0)})),I&&I.eachComponent(R,function(D){var N=M&&M.get(D.id)!=null;if(!N)if(isHighDownPayload(_))if(D instanceof SeriesModel$1)_.type===HIGHLIGHT_ACTION_TYPE&&!_.notBlur&&!D.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(D,_,x._api);else{var H=findComponentHighDownDispatchers(D.mainType,D.componentIndex,_.name,x._api),Q=H.focusSelf,G=H.dispatchers;_.type===HIGHLIGHT_ACTION_TYPE&&Q&&!_.notBlur&&blurComponent(D.mainType,D.componentIndex,x._api),G&&each$f(G,function(K){_.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(K):leaveEmphasis(K)})}else isSelectChangePayload(_)&&D instanceof SeriesModel$1&&(toggleSelectionFromPayload(D,_,x._api),updateSeriesElementSelection(D),markStatusToUpdate(x))},x),I&&I.eachComponent(R,function(D){var N=M&&M.get(D.id)!=null;N||O(x[w==="series"?"_chartsMap":"_componentsMap"][D.__viewId])},x);function O(D){D&&D.__alive&&D[S]&&D[S](D.__model,I,x._api,_)}},updateMethods={prepareAndUpdate:function(x){prepare(this),updateMethods.update.call(this,x,{optionChanged:x.newOption!=null})},update:function(x,S){var _=this._model,w=this._api,$=this._zr,I=this._coordSysMgr,B=this._scheduler;if(!!_){_.setUpdatePayload(x),B.restoreData(_,x),B.performSeriesTasks(_),I.create(_,w),B.performDataProcessorTasks(_,x),updateStreamModes(this,_),I.update(_,w),n(_),B.performVisualTasks(_,x),render(this,_,w,x,S);var R=_.get("backgroundColor")||"transparent",P=_.get("darkMode");$.setBackgroundColor(R),P!=null&&P!=="auto"&&$.setDarkMode(P),lifecycle$1.trigger("afterupdate",_,w)}},updateTransform:function(x){var S=this,_=this._model,w=this._api;if(!!_){_.setUpdatePayload(x);var $=[];_.eachComponent(function(B,R){if(B!=="series"){var P=S.getViewOfComponentModel(R);if(P&&P.__alive)if(P.updateTransform){var M=P.updateTransform(R,_,w,x);M&&M.update&&$.push(P)}else $.push(P)}});var I=createHashMap();_.eachSeries(function(B){var R=S._chartsMap[B.__viewId];if(R.updateTransform){var P=R.updateTransform(B,_,w,x);P&&P.update&&I.set(B.uid,1)}else I.set(B.uid,1)}),n(_),this._scheduler.performVisualTasks(_,x,{setDirty:!0,dirtyMap:I}),renderSeries(this,_,w,x,{},I),lifecycle$1.trigger("afterupdate",_,w)}},updateView:function(x){var S=this._model;!S||(S.setUpdatePayload(x),ChartView$1.markUpdateMethod(x,"updateView"),n(S),this._scheduler.performVisualTasks(S,x,{setDirty:!0}),render(this,S,this._api,x,{}),lifecycle$1.trigger("afterupdate",S,this._api))},updateVisual:function(x){var S=this,_=this._model;!_||(_.setUpdatePayload(x),_.eachSeries(function(w){w.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(x,"updateVisual"),n(_),this._scheduler.performVisualTasks(_,x,{visualType:"visual",setDirty:!0}),_.eachComponent(function(w,$){if(w!=="series"){var I=S.getViewOfComponentModel($);I&&I.__alive&&I.updateVisual($,_,S._api,x)}}),_.eachSeries(function(w){var $=S._chartsMap[w.__viewId];$.updateVisual(w,_,S._api,x)}),lifecycle$1.trigger("afterupdate",_,this._api))},updateLayout:function(x){updateMethods.update.call(this,x)}},doConvertPixel=function(x,S,_,w){if(x._disposed){x.id;return}for(var $=x._model,I=x._coordSysMgr.getCoordinateSystems(),B,R=parseFinder$1($,_),P=0;P<I.length;P++){var M=I[P];if(M[S]&&(B=M[S]($,R,w))!=null)return B}},updateStreamModes=function(x,S){var _=x._chartsMap,w=x._scheduler;S.eachSeries(function($){w.updateStreamModes($,_[$.__viewId])})},doDispatchAction=function(x,S){var _=this,w=this.getModel(),$=x.type,I=x.escapeConnect,B=actions[$],R=B.actionInfo,P=(R.update||"update").split(":"),M=P.pop(),O=P[0]!=null&&parseClassType(P[0]);this[IN_MAIN_PROCESS_KEY]=!0;var D=[x],N=!1;x.batch&&(N=!0,D=map$1(x.batch,function(Y){return Y=defaults(extend({},Y),x),Y.batch=null,Y}));var H=[],Q,G=isSelectChangePayload(x),K=isHighDownPayload(x);if(K&&allLeaveBlur(this._api),each$f(D,function(Y){if(Q=B.action(Y,_._model,_._api),Q=Q||extend({},Y),Q.type=R.event||Q.type,H.push(Q),K){var q=preParseFinder(x),X=q.queryOptionMap,re=q.mainTypeSpecified,te=re?X.keys()[0]:"series";updateDirectly(_,M,Y,te),markStatusToUpdate(_)}else G?(updateDirectly(_,M,Y,"series"),markStatusToUpdate(_)):O&&updateDirectly(_,M,Y,O.main,O.sub)}),M!=="none"&&!K&&!G&&!O)try{this[PENDING_UPDATE]?(prepare(this),updateMethods.update.call(this,x),this[PENDING_UPDATE]=null):updateMethods[M].call(this,x)}catch(Y){throw this[IN_MAIN_PROCESS_KEY]=!1,Y}if(N?Q={type:R.event||$,escapeConnect:I,batch:H}:Q=H[0],this[IN_MAIN_PROCESS_KEY]=!1,!S){var W=this._messageCenter;if(W.trigger(Q.type,Q),G){var j={type:"selectchanged",escapeConnect:I,selected:getAllSelectedIndices(w),isFromClick:x.isFromClick||!1,fromAction:x.type,fromActionPayload:x};W.trigger(j.type,j)}}},flushPendingActions=function(x){for(var S=this._pendingActions;S.length;){var _=S.shift();doDispatchAction.call(this,_,x)}},triggerUpdatedEvent=function(x){!x&&this.trigger("updated")},bindRenderedEvent=function(x,S){x.on("rendered",function(_){S.trigger("rendered",_),x.animation.isFinished()&&!S[PENDING_UPDATE]&&!S._scheduler.unfinished&&!S._pendingActions.length&&S.trigger("finished")})},bindMouseEvent=function(x,S){x.on("mouseover",function(_){var w=_.target,$=findEventDispatcher(w,isHighDownDispatcher);$&&(handleGlobalMouseOverForHighDown($,_,S._api),markStatusToUpdate(S))}).on("mouseout",function(_){var w=_.target,$=findEventDispatcher(w,isHighDownDispatcher);$&&(handleGlobalMouseOutForHighDown($,_,S._api),markStatusToUpdate(S))}).on("click",function(_){var w=_.target,$=findEventDispatcher(w,function(R){return getECData(R).dataIndex!=null},!0);if($){var I=$.selected?"unselect":"select",B=getECData($);S._api.dispatchAction({type:I,dataType:B.dataType,dataIndexInside:B.dataIndex,seriesIndex:B.seriesIndex,isFromClick:!0})}})};function n(x){x.clearColorPalette(),x.eachSeries(function(S){S.clearColorPalette()})}function o(x){var S=[],_=[],w=!1;if(x.eachComponent(function(R,P){var M=P.get("zlevel")||0,O=P.get("z")||0,D=P.getZLevelKey();w=w||!!D,(R==="series"?_:S).push({zlevel:M,z:O,idx:P.componentIndex,type:R,key:D})}),w){var $=S.concat(_),I,B;sort$2($,function(R,P){return R.zlevel===P.zlevel?R.z-P.z:R.zlevel-P.zlevel}),each$f($,function(R){var P=x.getComponent(R.type,R.idx),M=R.zlevel,O=R.key;I!=null&&(M=Math.max(I,M)),O?(M===I&&O!==B&&M++,B=O):B&&(M===I&&M++,B=""),I=M,P.setZLevel(M)})}}render=function(x,S,_,w,$){o(S),renderComponents(x,S,_,w,$),each$f(x._chartsViews,function(I){I.__alive=!1}),renderSeries(x,S,_,w,$),each$f(x._chartsViews,function(I){I.__alive||I.remove(S,_)})},renderComponents=function(x,S,_,w,$,I){each$f(I||x._componentsViews,function(B){var R=B.__model;b(R,B),B.render(R,S,_,w),g(R,B),C(R,B)})},renderSeries=function(x,S,_,w,$,I){var B=x._scheduler;$=extend($||{},{updatedSeries:S.getSeries()}),lifecycle$1.trigger("series:beforeupdate",S,_,$);var R=!1;S.eachSeries(function(P){var M=x._chartsMap[P.__viewId];M.__alive=!0;var O=M.renderTask;B.updatePayload(O,w),b(P,M),I&&I.get(P.uid)&&O.dirty(),O.perform(B.getPerformArgs(O))&&(R=!0),M.group.silent=!!P.get("silent"),d(P,M),updateSeriesElementSelection(P)}),B.unfinished=R||B.unfinished,lifecycle$1.trigger("series:layoutlabels",S,_,$),lifecycle$1.trigger("series:transition",S,_,$),S.eachSeries(function(P){var M=x._chartsMap[P.__viewId];g(P,M),C(P,M)}),l(x,S),lifecycle$1.trigger("series:afterupdate",S,_,$)},markStatusToUpdate=function(x){x[STATUS_NEEDS_UPDATE_KEY]=!0,x.getZr().wakeUp()},applyChangedStates=function(x){!x[STATUS_NEEDS_UPDATE_KEY]||(x.getZr().storage.traverse(function(S){isElementRemoved(S)||s(S)}),x[STATUS_NEEDS_UPDATE_KEY]=!1)};function s(x){for(var S=[],_=x.currentStates,w=0;w<_.length;w++){var $=_[w];$==="emphasis"||$==="blur"||$==="select"||S.push($)}x.selected&&x.states.select&&S.push("select"),x.hoverState===HOVER_STATE_EMPHASIS&&x.states.emphasis?S.push("emphasis"):x.hoverState===HOVER_STATE_BLUR&&x.states.blur&&S.push("blur"),x.useStates(S)}function l(x,S){var _=x._zr,w=_.storage,$=0;w.traverse(function(I){I.isGroup||$++}),$>S.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&S.eachSeries(function(I){if(!I.preventUsingHoverLayer){var B=x._chartsMap[I.__viewId];B.__alive&&B.eachRendered(function(R){R.states.emphasis&&(R.states.emphasis.hoverLayer=!0)})}})}function d(x,S){var _=x.get("blendMode")||null;S.eachRendered(function(w){w.isGroup||(w.style.blend=_)})}function g(x,S){if(!x.preventAutoZ){var _=x.get("z")||0,w=x.get("zlevel")||0;S.eachRendered(function($){return y($,_,w,-1/0),!0})}}function y(x,S,_,w){var $=x.getTextContent(),I=x.getTextGuideLine(),B=x.isGroup;if(B)for(var R=x.childrenRef(),P=0;P<R.length;P++)w=Math.max(y(R[P],S,_,w),w);else x.z=S,x.zlevel=_,w=Math.max(x.z2,w);if($&&($.z=S,$.zlevel=_,isFinite(w)&&($.z2=w+2)),I){var M=x.textGuideLineConfig;I.z=S,I.zlevel=_,isFinite(w)&&(I.z2=w+(M&&M.showAbove?1:-1))}return w}function b(x,S){S.eachRendered(function(_){if(!isElementRemoved(_)){var w=_.getTextContent(),$=_.getTextGuideLine();_.stateTransition&&(_.stateTransition=null),w&&w.stateTransition&&(w.stateTransition=null),$&&$.stateTransition&&($.stateTransition=null),_.hasState()?(_.prevStates=_.currentStates,_.clearStates()):_.prevStates&&(_.prevStates=null)}})}function C(x,S){var _=x.getModel("stateAnimation"),w=x.isAnimationEnabled(),$=_.get("duration"),I=$>0?{duration:$,delay:_.get("delay"),easing:_.get("easing")}:null;S.eachRendered(function(B){if(B.states&&B.states.emphasis){if(isElementRemoved(B))return;if(B instanceof Path$1&&savePathStates(B),B.__dirty){var R=B.prevStates;R&&B.useStates(R)}if(w){B.stateTransition=I;var P=B.getTextContent(),M=B.getTextGuideLine();P&&(P.stateTransition=I),M&&(M.stateTransition=I)}B.__dirty&&s(B)}})}createExtensionAPI=function(x){return new(function(S){__extends$1(_,S);function _(){return S!==null&&S.apply(this,arguments)||this}return _.prototype.getCoordinateSystems=function(){return x._coordSysMgr.getCoordinateSystems()},_.prototype.getComponentByElement=function(w){for(;w;){var $=w.__ecComponentInfo;if($!=null)return x._model.getComponent($.mainType,$.index);w=w.parent}},_.prototype.enterEmphasis=function(w,$){enterEmphasis(w,$),markStatusToUpdate(x)},_.prototype.leaveEmphasis=function(w,$){leaveEmphasis(w,$),markStatusToUpdate(x)},_.prototype.enterBlur=function(w){enterBlur(w),markStatusToUpdate(x)},_.prototype.leaveBlur=function(w){leaveBlur(w),markStatusToUpdate(x)},_.prototype.enterSelect=function(w){enterSelect(w),markStatusToUpdate(x)},_.prototype.leaveSelect=function(w){leaveSelect(w),markStatusToUpdate(x)},_.prototype.getModel=function(){return x.getModel()},_.prototype.getViewOfComponentModel=function(w){return x.getViewOfComponentModel(w)},_.prototype.getViewOfSeriesModel=function(w){return x.getViewOfSeriesModel(w)},_}(ExtensionAPI$1))(x)},enableConnect=function(x){function S(_,w){for(var $=0;$<_.length;$++){var I=_[$];I[CONNECT_STATUS_KEY]=w}}each$f(eventActionMap,function(_,w){x._messageCenter.on(w,function($){if(connectedGroups[x.group]&&x[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if($&&$.escapeConnect)return;var I=x.makeActionFromEvent($),B=[];each$f(instances,function(R){R!==x&&R.group===x.group&&B.push(R)}),S(B,CONNECT_STATUS_PENDING),each$f(B,function(R){R[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&R.dispatchAction(I)}),S(B,CONNECT_STATUS_UPDATED)}})})}}(),r}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function(t,r,n){var o=this;function s(){for(var l=[],d=0;d<arguments.length;d++)l[d]=arguments[d];r&&r.apply&&r.apply(this,l),o.off(t,s)}this.on.call(this,t,s,n)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning(t){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,groupIdBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init$1(t,r,n){var o=!(n&&n.ssr);if(o){var s=getInstanceByDom(t);if(s)return s}var l=new ECharts(t,r,n);return l.id="ec_"+idBase++,instances[l.id]=l,o&&setAttribute(t,DOM_ATTRIBUTE_KEY,l.id),enableConnect(l),lifecycle$1.trigger("afterinit",l),l}function connect(t){if(isArray$1(t)){var r=t;t=null,each$f(r,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+groupIdBase++,each$f(r,function(n){n.group=t})}return connectedGroups[t]=!0,t}function disConnect(t){connectedGroups[t]=!1}var disconnect=disConnect;function dispose(t){isString(t)?t=instances[t]:t instanceof ECharts||(t=getInstanceByDom(t)),t instanceof ECharts&&!t.isDisposed()&&t.dispose()}function getInstanceByDom(t){return instances[getAttribute(t,DOM_ATTRIBUTE_KEY)]}function getInstanceById(t){return instances[t]}function registerTheme(t,r){themeStorage[t]=r}function registerPreprocessor(t){indexOf(optionPreprocessorFuncs,t)<0&&optionPreprocessorFuncs.push(t)}function registerProcessor(t,r){normalizeRegister(dataProcessorFuncs,t,r,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit(t){registerUpdateLifecycle("afterinit",t)}function registerPostUpdate(t){registerUpdateLifecycle("afterupdate",t)}function registerUpdateLifecycle(t,r){lifecycle$1.on(t,r)}function registerAction(t,r,n){isFunction(r)&&(n=r,r="");var o=isObject$3(t)?t.type:[t,t={event:r}][0];t.event=(t.event||o).toLowerCase(),r=t.event,!eventActionMap[r]&&(assert(ACTION_REG.test(o)&&ACTION_REG.test(r)),actions[o]||(actions[o]={action:n,actionInfo:t}),eventActionMap[r]=o)}function registerCoordinateSystem(t,r){CoordinateSystem.register(t,r)}function getCoordinateSystemDimensions(t){var r=CoordinateSystem.get(t);if(r)return r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice()}function registerLayout(t,r){normalizeRegister(visualFuncs,t,r,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual(t,r){normalizeRegister(visualFuncs,t,r,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister(t,r,n,o,s){if((isFunction(r)||isObject$3(r))&&(n=r,r=o),!(indexOf(registeredTasks,n)>=0)){registeredTasks.push(n);var l=Scheduler$1.wrapStageHandler(n,s);l.__prio=r,l.__raw=n,t.push(l)}}function registerLoading(t,r){loadingEffects[t]=r}function setCanvasCreator(t){setPlatformAPI({createCanvas:t})}function registerMap$1(t,r,n){var o=getImpl("registerMap");o&&o(t,r,n)}function getMap(t){var r=getImpl("getMap");return r&&r(t)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={},extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap:registerMap$1,registerImpl,PRIORITY,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,registerComponentModel:function(t){ComponentModel$1.registerClass(t)},registerComponentView:function(t){ComponentView$1.registerClass(t)},registerSeriesModel:function(t){SeriesModel$1.registerClass(t)},registerChartView:function(t){ChartView$1.registerClass(t)},registerSubTypeDefaulter:function(t,r){ComponentModel$1.registerSubTypeDefaulter(t,r)},registerPainter:function(t,r){registerPainter(t,r)}};function use(t){if(isArray$1(t)){each$f(t,function(r){use(r)});return}indexOf(extensions,t)>=0||(extensions.push(t),isFunction(t)&&(t={install:t}),t.install(extensionRegisters))}function dataIndexMapValueLength(t){return t==null?0:t.length||1}function defaultKeyGetter(t){return t}var DataDiffer=function(){function t(r,n,o,s,l,d){this._old=r,this._new=n,this._oldKeyGetter=o||defaultKeyGetter,this._newKeyGetter=s||defaultKeyGetter,this.context=l,this._diffModeMultiple=d==="multiple"}return t.prototype.add=function(r){return this._add=r,this},t.prototype.update=function(r){return this._update=r,this},t.prototype.updateManyToOne=function(r){return this._updateManyToOne=r,this},t.prototype.updateOneToMany=function(r){return this._updateOneToMany=r,this},t.prototype.updateManyToMany=function(r){return this._updateManyToMany=r,this},t.prototype.remove=function(r){return this._remove=r,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var r=this._old,n=this._new,o={},s=new Array(r.length),l=new Array(n.length);this._initIndexMap(r,null,s,"_oldKeyGetter"),this._initIndexMap(n,o,l,"_newKeyGetter");for(var d=0;d<r.length;d++){var g=s[d],y=o[g],b=dataIndexMapValueLength(y);if(b>1){var C=y.shift();y.length===1&&(o[g]=y[0]),this._update&&this._update(C,d)}else b===1?(o[g]=null,this._update&&this._update(y,d)):this._remove&&this._remove(d)}this._performRestAdd(l,o)},t.prototype._executeMultiple=function(){var r=this._old,n=this._new,o={},s={},l=[],d=[];this._initIndexMap(r,o,l,"_oldKeyGetter"),this._initIndexMap(n,s,d,"_newKeyGetter");for(var g=0;g<l.length;g++){var y=l[g],b=o[y],C=s[y],x=dataIndexMapValueLength(b),S=dataIndexMapValueLength(C);if(x>1&&S===1)this._updateManyToOne&&this._updateManyToOne(C,b),s[y]=null;else if(x===1&&S>1)this._updateOneToMany&&this._updateOneToMany(C,b),s[y]=null;else if(x===1&&S===1)this._update&&this._update(C,b),s[y]=null;else if(x>1&&S>1)this._updateManyToMany&&this._updateManyToMany(C,b),s[y]=null;else if(x>1)for(var _=0;_<x;_++)this._remove&&this._remove(b[_]);else this._remove&&this._remove(b)}this._performRestAdd(d,s)},t.prototype._performRestAdd=function(r,n){for(var o=0;o<r.length;o++){var s=r[o],l=n[s],d=dataIndexMapValueLength(l);if(d>1)for(var g=0;g<d;g++)this._add&&this._add(l[g]);else d===1&&this._add&&this._add(l);n[s]=null}},t.prototype._initIndexMap=function(r,n,o,s){for(var l=this._diffModeMultiple,d=0;d<r.length;d++){var g="_ec_"+this[s](r[d],d);if(l||(o[d]=g),!!n){var y=n[g],b=dataIndexMapValueLength(y);b===0?(n[g]=d,l&&o.push(g)):b===1?n[g]=[y,d]:y.push(d)}}},t}(),DataDiffer$1=DataDiffer,DimensionUserOuput=function(){function t(r,n){this._encode=r,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function summarizeDimensions(t,r){var n={},o=n.encode={},s=createHashMap(),l=[],d=[],g={};each$f(t.dimensions,function(S){var _=t.getDimensionInfo(S),w=_.coordDim;if(w){var $=_.coordDimIndex;getOrCreateEncodeArr(o,w)[$]=S,_.isExtraCoord||(s.set(w,1),mayLabelDimType(_.type)&&(l[0]=S),getOrCreateEncodeArr(g,w)[$]=t.getDimensionIndex(_.name)),_.defaultTooltip&&d.push(S)}VISUAL_DIMENSIONS.each(function(I,B){var R=getOrCreateEncodeArr(o,B),P=_.otherDims[B];P!=null&&P!==!1&&(R[P]=_.name)})});var y=[],b={};s.each(function(S,_){var w=o[_];b[_]=w[0],y=y.concat(w)}),n.dataDimsOnCoord=y,n.dataDimIndicesOnCoord=map$1(y,function(S){return t.getDimensionInfo(S).storeDimIndex}),n.encodeFirstDimNotExtra=b;var C=o.label;C&&C.length&&(l=C.slice());var x=o.tooltip;return x&&x.length?d=x.slice():d.length||(d=l.slice()),o.defaultedLabel=l,o.defaultedTooltip=d,n.userOutput=new DimensionUserOuput(g,r),n}function getOrCreateEncodeArr(t,r){return t.hasOwnProperty(r)||(t[r]=[]),t[r]}function getDimensionTypeByAxis(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function mayLabelDimType(t){return!(t==="ordinal"||t==="time")}var SeriesDimensionDefine=function(){function t(r){this.otherDims={},r!=null&&extend(this,r)}return t}(),SeriesDimensionDefine$1=SeriesDimensionDefine,inner$h=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function t(r){this.dimensions=r.dimensions,this._dimOmitted=r.dimensionOmitted,this.source=r.source,this._fullDimCount=r.fullDimensionCount,this._updateDimOmitted(r.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(r){this._dimOmitted=r,r&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},t.prototype.getSourceDimensionIndex=function(r){return retrieve2(this._dimNameMap.get(r),-1)},t.prototype.getSourceDimension=function(r){var n=this.source.dimensionsDefine;if(n)return n[r]},t.prototype.makeStoreSchema=function(){for(var r=this._fullDimCount,n=shouldRetrieveDataByName(this.source),o=!shouldOmitUnusedDimensions(r),s="",l=[],d=0,g=0;d<r;d++){var y=void 0,b=void 0,C=void 0,x=this.dimensions[g];if(x&&x.storeDimIndex===d)y=n?x.name:null,b=x.type,C=x.ordinalMeta,g++;else{var S=this.getSourceDimension(d);S&&(y=n?S.name:null,b=S.type)}l.push({property:y,type:b,ordinalMeta:C}),n&&y!=null&&(!x||!x.isCalculationCoord)&&(s+=o?y.replace(/\`/g,"`1").replace(/\$/g,"`2"):y),s+="$",s+=dimTypeShort[b]||"f",C&&(s+=C.uid),s+="$"}var _=this.source,w=[_.seriesLayoutBy,_.startIndex,s].join("$$");return{dimensions:l,hash:w}},t.prototype.makeOutputDimensionNames=function(){for(var r=[],n=0,o=0;n<this._fullDimCount;n++){var s=void 0,l=this.dimensions[o];if(l&&l.storeDimIndex===n)l.isCalculationCoord||(s=l.name),o++;else{var d=this.getSourceDimension(n);d&&(s=d.name)}r.push(s)}return r},t.prototype.appendCalculationDimension=function(r){this.dimensions.push(r),r.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function isSeriesDataSchema(t){return t instanceof SeriesDataSchema}function createDimNameMap(t){for(var r=createHashMap(),n=0;n<(t||[]).length;n++){var o=t[n],s=isObject$3(o)?o.name:o;s!=null&&r.get(s)==null&&r.set(s,n)}return r}function ensureSourceDimNameMap(t){var r=inner$h(t);return r.dimNameMap||(r.dimNameMap=createDimNameMap(t.dimensionsDefine))}function shouldOmitUnusedDimensions(t){return t>30}var isObject$1=isObject$3,map=map$1,CtorInt32Array=typeof Int32Array=="undefined"?Array:Int32Array,ID_PREFIX="e\0\0",INDEX_NOT_FOUND=-1,TRANSFERABLE_PROPERTIES=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CLONE_PROPERTIES=["_approximateExtent"],prepareInvertedIndex,getId,getIdNameFromStore,normalizeDimensions,transferProperties,cloneListForMapAndSample,makeIdFromName,SeriesData=function(){function t(r,n){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 o,s=!1;isSeriesDataSchema(r)?(o=r.dimensions,this._dimOmitted=r.isDimensionOmitted(),this._schema=r):(s=!0,o=r),o=o||["x","y"];for(var l={},d=[],g={},y=!1,b={},C=0;C<o.length;C++){var x=o[C],S=isString(x)?new SeriesDimensionDefine$1({name:x}):x instanceof SeriesDimensionDefine$1?x:new SeriesDimensionDefine$1(x),_=S.name;S.type=S.type||"float",S.coordDim||(S.coordDim=_,S.coordDimIndex=0);var w=S.otherDims=S.otherDims||{};d.push(_),l[_]=S,b[_]!=null&&(y=!0),S.createInvertedIndices&&(g[_]=[]),w.itemName===0&&(this._nameDimIdx=C),w.itemId===0&&(this._idDimIdx=C),s&&(S.storeDimIndex=C)}if(this.dimensions=d,this._dimInfos=l,this._initGetDimensionInfo(y),this.hostModel=n,this._invertedIndicesMap=g,this._dimOmitted){var $=this._dimIdxToName=createHashMap();each$f(d,function(I){$.set(l[I].storeDimIndex,I)})}}return t.prototype.getDimension=function(r){var n=this._recognizeDimIndex(r);if(n==null)return r;if(n=r,!this._dimOmitted)return this.dimensions[n];var o=this._dimIdxToName.get(n);if(o!=null)return o;var s=this._schema.getSourceDimension(n);if(s)return s.name},t.prototype.getDimensionIndex=function(r){var n=this._recognizeDimIndex(r);if(n!=null)return n;if(r==null)return-1;var o=this._getDimInfo(r);return o?o.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(r):-1},t.prototype._recognizeDimIndex=function(r){if(isNumber(r)||r!=null&&!isNaN(r)&&!this._getDimInfo(r)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(r)<0))return+r},t.prototype._getStoreDimIndex=function(r){var n=this.getDimensionIndex(r);return n},t.prototype.getDimensionInfo=function(r){return this._getDimInfo(this.getDimension(r))},t.prototype._initGetDimensionInfo=function(r){var n=this._dimInfos;this._getDimInfo=r?function(o){return n.hasOwnProperty(o)?n[o]:void 0}:function(o){return n[o]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(r,n){var o=this._dimSummary;if(n==null)return o.encodeFirstDimNotExtra[r];var s=o.encode[r];return s?s[n]:null},t.prototype.mapDimensionsAll=function(r){var n=this._dimSummary,o=n.encode[r];return(o||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(r,n,o){var s=this,l;if(r instanceof DataStore&&(l=r),!l){var d=this.dimensions,g=isSourceInstance(r)||isArrayLike(r)?new DefaultDataProvider(r,d.length):r;l=new DataStore;var y=map(d,function(b){return{type:s._dimInfos[b].type,property:b}});l.initData(g,y,o)}this._store=l,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,l.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(r){var n=this._store.appendData(r);this._doInit(n[0],n[1])},t.prototype.appendValues=function(r,n){var o=this._store.appendValues(r,n.length),s=o.start,l=o.end,d=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var g=s;g<l;g++){var y=g-s;this._nameList[g]=n[y],d&&makeIdFromName(this,g)}},t.prototype._updateOrdinalMeta=function(){for(var r=this._store,n=this.dimensions,o=0;o<n.length;o++){var s=this._dimInfos[n[o]];s.ordinalMeta&&r.collectOrdinalMeta(s.storeDimIndex,s.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var r=this._store.getProvider();return this._idDimIdx==null&&r.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!r.fillStorage},t.prototype._doInit=function(r,n){if(!(r>=n)){var o=this._store,s=o.getProvider();this._updateOrdinalMeta();var l=this._nameList,d=this._idList,g=s.getSource().sourceFormat,y=g===SOURCE_FORMAT_ORIGINAL;if(y&&!s.pure)for(var b=[],C=r;C<n;C++){var x=s.getItem(C,b);if(!this.hasItemOption&&isDataItemOption(x)&&(this.hasItemOption=!0),x){var S=x.name;l[C]==null&&S!=null&&(l[C]=convertOptionIdName(S,null));var _=x.id;d[C]==null&&_!=null&&(d[C]=convertOptionIdName(_,null))}}if(this._shouldMakeIdFromName())for(var C=r;C<n;C++)makeIdFromName(this,C);prepareInvertedIndex(this)}},t.prototype.getApproximateExtent=function(r){return this._approximateExtent[r]||this._store.getDataExtent(this._getStoreDimIndex(r))},t.prototype.setApproximateExtent=function(r,n){n=this.getDimension(n),this._approximateExtent[n]=r.slice()},t.prototype.getCalculationInfo=function(r){return this._calculationInfo[r]},t.prototype.setCalculationInfo=function(r,n){isObject$1(r)?extend(this._calculationInfo,r):this._calculationInfo[r]=n},t.prototype.getName=function(r){var n=this.getRawIndex(r),o=this._nameList[n];return o==null&&this._nameDimIdx!=null&&(o=getIdNameFromStore(this,this._nameDimIdx,n)),o==null&&(o=""),o},t.prototype._getCategory=function(r,n){var o=this._store.get(r,n),s=this._store.getOrdinalMeta(r);return s?s.categories[o]:o},t.prototype.getId=function(r){return getId(this,this.getRawIndex(r))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(r,n){var o=this._store,s=this._dimInfos[r];if(s)return o.get(s.storeDimIndex,n)},t.prototype.getByRawIndex=function(r,n){var o=this._store,s=this._dimInfos[r];if(s)return o.getByRawIndex(s.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(r){return this._store.getDataExtent(this._getStoreDimIndex(r))},t.prototype.getSum=function(r){return this._store.getSum(this._getStoreDimIndex(r))},t.prototype.getMedian=function(r){return this._store.getMedian(this._getStoreDimIndex(r))},t.prototype.getValues=function(r,n){var o=this,s=this._store;return isArray$1(r)?s.getValues(map(r,function(l){return o._getStoreDimIndex(l)}),n):s.getValues(r)},t.prototype.hasValue=function(r){for(var n=this._dimSummary.dataDimIndicesOnCoord,o=0,s=n.length;o<s;o++)if(isNaN(this._store.get(n[o],r)))return!1;return!0},t.prototype.indexOfName=function(r){for(var n=0,o=this._store.count();n<o;n++)if(this.getName(n)===r)return n;return-1},t.prototype.getRawIndex=function(r){return this._store.getRawIndex(r)},t.prototype.indexOfRawIndex=function(r){return this._store.indexOfRawIndex(r)},t.prototype.rawIndexOf=function(r,n){var o=r&&this._invertedIndicesMap[r],s=o[n];return s==null||isNaN(s)?INDEX_NOT_FOUND:s},t.prototype.indicesOfNearest=function(r,n,o){return this._store.indicesOfNearest(this._getStoreDimIndex(r),n,o)},t.prototype.each=function(r,n,o){isFunction(r)&&(o=n,n=r,r=[]);var s=o||this,l=map(normalizeDimensions(r),this._getStoreDimIndex,this);this._store.each(l,s?bind$1(n,s):n)},t.prototype.filterSelf=function(r,n,o){isFunction(r)&&(o=n,n=r,r=[]);var s=o||this,l=map(normalizeDimensions(r),this._getStoreDimIndex,this);return this._store=this._store.filter(l,s?bind$1(n,s):n),this},t.prototype.selectRange=function(r){var n=this,o={},s=keys(r);return each$f(s,function(l){var d=n._getStoreDimIndex(l);o[d]=r[l]}),this._store=this._store.selectRange(o),this},t.prototype.mapArray=function(r,n,o){isFunction(r)&&(o=n,n=r,r=[]),o=o||this;var s=[];return this.each(r,function(){s.push(n&&n.apply(this,arguments))},o),s},t.prototype.map=function(r,n,o,s){var l=o||s||this,d=map(normalizeDimensions(r),this._getStoreDimIndex,this),g=cloneListForMapAndSample(this);return g._store=this._store.map(d,l?bind$1(n,l):n),g},t.prototype.modify=function(r,n,o,s){var l=o||s||this,d=map(normalizeDimensions(r),this._getStoreDimIndex,this);this._store.modify(d,l?bind$1(n,l):n)},t.prototype.downSample=function(r,n,o,s){var l=cloneListForMapAndSample(this);return l._store=this._store.downSample(this._getStoreDimIndex(r),n,o,s),l},t.prototype.lttbDownSample=function(r,n){var o=cloneListForMapAndSample(this);return o._store=this._store.lttbDownSample(this._getStoreDimIndex(r),n),o},t.prototype.getRawDataItem=function(r){return this._store.getRawDataItem(r)},t.prototype.getItemModel=function(r){var n=this.hostModel,o=this.getRawDataItem(r);return new Model$1(o,n,n&&n.ecModel)},t.prototype.diff=function(r){var n=this;return new DataDiffer$1(r?r.getStore().getIndices():[],this.getStore().getIndices(),function(o){return getId(r,o)},function(o){return getId(n,o)})},t.prototype.getVisual=function(r){var n=this._visual;return n&&n[r]},t.prototype.setVisual=function(r,n){this._visual=this._visual||{},isObject$1(r)?extend(this._visual,r):this._visual[r]=n},t.prototype.getItemVisual=function(r,n){var o=this._itemVisuals[r],s=o&&o[n];return s==null?this.getVisual(n):s},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(r,n){var o=this._itemVisuals,s=o[r];s||(s=o[r]={});var l=s[n];return l==null&&(l=this.getVisual(n),isArray$1(l)?l=l.slice():isObject$1(l)&&(l=extend({},l)),s[n]=l),l},t.prototype.setItemVisual=function(r,n,o){var s=this._itemVisuals[r]||{};this._itemVisuals[r]=s,isObject$1(n)?extend(s,n):s[n]=o},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(r,n){isObject$1(r)?extend(this._layout,r):this._layout[r]=n},t.prototype.getLayout=function(r){return this._layout[r]},t.prototype.getItemLayout=function(r){return this._itemLayouts[r]},t.prototype.setItemLayout=function(r,n,o){this._itemLayouts[r]=o?extend(this._itemLayouts[r]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(r,n){var o=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(o,this.dataType,r,n),this._graphicEls[r]=n},t.prototype.getItemGraphicEl=function(r){return this._graphicEls[r]},t.prototype.eachItemGraphicEl=function(r,n){each$f(this._graphicEls,function(o,s){o&&r&&r.call(n,o,s)})},t.prototype.cloneShallow=function(r){return r||(r=new t(this._schema?this._schema:map(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(r,this),r._store=this._store,r},t.prototype.wrapMethod=function(r,n){var o=this[r];!isFunction(o)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(r),this[r]=function(){var s=o.apply(this,arguments);return n.apply(this,[s].concat(slice(arguments)))})},t.internalField=function(){prepareInvertedIndex=function(r){var n=r._invertedIndicesMap;each$f(n,function(o,s){var l=r._dimInfos[s],d=l.ordinalMeta,g=r._store;if(d){o=n[s]=new CtorInt32Array(d.categories.length);for(var y=0;y<o.length;y++)o[y]=INDEX_NOT_FOUND;for(var y=0;y<g.count();y++)o[g.get(l.storeDimIndex,y)]=y}})},getIdNameFromStore=function(r,n,o){return convertOptionIdName(r._getCategory(n,o),null)},getId=function(r,n){var o=r._idList[n];return o==null&&r._idDimIdx!=null&&(o=getIdNameFromStore(r,r._idDimIdx,n)),o==null&&(o=ID_PREFIX+n),o},normalizeDimensions=function(r){return isArray$1(r)||(r=r!=null?[r]:[]),r},cloneListForMapAndSample=function(r){var n=new t(r._schema?r._schema:map(r.dimensions,r._getDimInfo,r),r.hostModel);return transferProperties(n,r),n},transferProperties=function(r,n){each$f(TRANSFERABLE_PROPERTIES.concat(n.__wrappedMethods||[]),function(o){n.hasOwnProperty(o)&&(r[o]=n[o])}),r.__wrappedMethods=n.__wrappedMethods,each$f(CLONE_PROPERTIES,function(o){r[o]=clone$4(n[o])}),r._calculationInfo=extend({},n._calculationInfo)},makeIdFromName=function(r,n){var o=r._nameList,s=r._idList,l=r._nameDimIdx,d=r._idDimIdx,g=o[n],y=s[n];if(g==null&&l!=null&&(o[n]=g=getIdNameFromStore(r,l,n)),y==null&&d!=null&&(s[n]=y=getIdNameFromStore(r,d,n)),y==null&&g!=null){var b=r._nameRepeatCount,C=b[g]=(b[g]||0)+1;y=g,C>1&&(y+="__ec__"+C),s[n]=y}}}(),t}(),SeriesData$1=SeriesData;function createDimensions(t,r){return prepareSeriesDataSchema(t,r).dimensions}function prepareSeriesDataSchema(t,r){isSourceInstance(t)||(t=createSourceFromSeriesDataOption(t)),r=r||{};var n=r.coordDimensions||[],o=r.dimensionsDefine||t.dimensionsDefine||[],s=createHashMap(),l=[],d=getDimCount(t,n,o,r.dimensionsCount),g=r.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(d),y=o===t.dimensionsDefine,b=y?ensureSourceDimNameMap(t):createDimNameMap(o),C=r.encodeDefine;!C&&r.encodeDefaulter&&(C=r.encodeDefaulter(t,d));for(var x=createHashMap(C),S=new CtorInt32Array$1(d),_=0;_<S.length;_++)S[_]=-1;function w(Q){var G=S[Q];if(G<0){var K=o[Q],W=isObject$3(K)?K:{name:K},j=new SeriesDimensionDefine$1,Y=W.name;Y!=null&&b.get(Y)!=null&&(j.name=j.displayName=Y),W.type!=null&&(j.type=W.type),W.displayName!=null&&(j.displayName=W.displayName);var q=l.length;return S[Q]=q,j.storeDimIndex=Q,l.push(j),j}return l[G]}if(!g)for(var _=0;_<d;_++)w(_);x.each(function(Q,G){var K=normalizeToArray(Q).slice();if(K.length===1&&!isString(K[0])&&K[0]<0){x.set(G,!1);return}var W=x.set(G,[]);each$f(K,function(j,Y){var q=isString(j)?b.get(j):j;q!=null&&q<d&&(W[Y]=q,I(w(q),G,Y))})});var $=0;each$f(n,function(Q){var G,K,W,j;if(isString(Q))G=Q,j={};else{j=Q,G=j.name;var Y=j.ordinalMeta;j.ordinalMeta=null,j=extend({},j),j.ordinalMeta=Y,K=j.dimsDef,W=j.otherDims,j.name=j.coordDim=j.coordDimIndex=j.dimsDef=j.otherDims=null}var q=x.get(G);if(q!==!1){if(q=normalizeToArray(q),!q.length)for(var X=0;X<(K&&K.length||1);X++){for(;$<d&&w($).coordDim!=null;)$++;$<d&&q.push($++)}each$f(q,function(re,te){var oe=w(re);if(y&&j.type!=null&&(oe.type=j.type),I(defaults(oe,j),G,te),oe.name==null&&K){var ae=K[te];!isObject$3(ae)&&(ae={name:ae}),oe.name=oe.displayName=ae.name,oe.defaultTooltip=ae.defaultTooltip}W&&defaults(oe.otherDims,W)})}});function I(Q,G,K){VISUAL_DIMENSIONS.get(G)!=null?Q.otherDims[G]=K:(Q.coordDim=G,Q.coordDimIndex=K,s.set(G,!0))}var B=r.generateCoord,R=r.generateCoordCount,P=R!=null;R=B?R||1:0;var M=B||"value";function O(Q){Q.name==null&&(Q.name=Q.coordDim)}if(g)each$f(l,function(Q){O(Q)}),l.sort(function(Q,G){return Q.storeDimIndex-G.storeDimIndex});else for(var D=0;D<d;D++){var N=w(D),H=N.coordDim;H==null&&(N.coordDim=genCoordDimName(M,s,P),N.coordDimIndex=0,(!B||R<=0)&&(N.isExtraCoord=!0),R--),O(N),N.type==null&&(guessOrdinal(t,D)===BE_ORDINAL.Must||N.isExtraCoord&&(N.otherDims.itemName!=null||N.otherDims.seriesName!=null))&&(N.type="ordinal")}return removeDuplication(l),new SeriesDataSchema({source:t,dimensions:l,fullDimensionCount:d,dimensionOmitted:g})}function removeDuplication(t){for(var r=createHashMap(),n=0;n<t.length;n++){var o=t[n],s=o.name,l=r.get(s)||0;l>0&&(o.name=s+(l-1)),l++,r.set(s,l)}}function getDimCount(t,r,n,o){var s=Math.max(t.dimensionsDetectedCount||1,r.length,n.length,o||0);return each$f(r,function(l){var d;isObject$3(l)&&(d=l.dimsDef)&&(s=Math.max(s,d.length))}),s}function genCoordDimName(t,r,n){if(n||r.hasKey(t)){for(var o=0;r.hasKey(t+o);)o++;t+=o}return r.set(t,!0),t}var CoordSysInfo=function(){function t(r){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=r}return t}();function getCoordSysInfoBySeries(t){var r=t.get("coordinateSystem"),n=new CoordSysInfo(r),o=fetchers[r];if(o)return o(t,n,n.axisMap,n.categoryAxisMap),n}var fetchers={cartesian2d:function(t,r,n,o){var s=t.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],l=t.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["x","y"],n.set("x",s),n.set("y",l),isCategory(s)&&(o.set("x",s),r.firstCategoryDimIndex=0),isCategory(l)&&(o.set("y",l),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},singleAxis:function(t,r,n,o){var s=t.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["single"],n.set("single",s),isCategory(s)&&(o.set("single",s),r.firstCategoryDimIndex=0)},polar:function(t,r,n,o){var s=t.getReferringComponents("polar",SINGLE_REFERRING).models[0],l=s.findAxisModel("radiusAxis"),d=s.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],n.set("radius",l),n.set("angle",d),isCategory(l)&&(o.set("radius",l),r.firstCategoryDimIndex=0),isCategory(d)&&(o.set("angle",d),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},geo:function(t,r,n,o){r.coordSysDims=["lng","lat"]},parallel:function(t,r,n,o){var s=t.ecModel,l=s.getComponent("parallel",t.get("parallelIndex")),d=r.coordSysDims=l.dimensions.slice();each$f(l.parallelAxisIndex,function(g,y){var b=s.getComponent("parallelAxis",g),C=d[y];n.set(C,b),isCategory(b)&&(o.set(C,b),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=y))})}};function isCategory(t){return t.get("type")==="category"}function enableDataStack(t,r,n){n=n||{};var o=n.byIndex,s=n.stackedCoordDimension,l,d,g;isLegacyDimensionsInput(r)?l=r:(d=r.schema,l=d.dimensions,g=r.store);var y=!!(t&&t.get("stack")),b,C,x,S;if(each$f(l,function(R,P){isString(R)&&(l[P]=R={name:R}),y&&!R.isExtraCoord&&(!o&&!b&&R.ordinalMeta&&(b=R),!C&&R.type!=="ordinal"&&R.type!=="time"&&(!s||s===R.coordDim)&&(C=R))}),C&&!o&&!b&&(o=!0),C){x="__\0ecstackresult_"+t.id,S="__\0ecstackedover_"+t.id,b&&(b.createInvertedIndices=!0);var _=C.coordDim,w=C.type,$=0;each$f(l,function(R){R.coordDim===_&&$++});var I={name:x,coordDim:_,coordDimIndex:$,type:w,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:l.length},B={name:S,coordDim:S,coordDimIndex:$+1,type:w,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:l.length+1};d?(g&&(I.storeDimIndex=g.ensureCalculationDimension(S,w),B.storeDimIndex=g.ensureCalculationDimension(x,w)),d.appendCalculationDimension(I),d.appendCalculationDimension(B)):(l.push(I),l.push(B))}return{stackedDimension:C&&C.name,stackedByDimension:b&&b.name,isStackedByIndex:o,stackedOverDimension:S,stackResultDimension:x}}function isLegacyDimensionsInput(t){return!isSeriesDataSchema(t.schema)}function isDimensionStacked(t,r){return!!r&&r===t.getCalculationInfo("stackedDimension")}function getStackedDimension(t,r){return isDimensionStacked(t,r)?t.getCalculationInfo("stackResultDimension"):r}function getCoordSysDimDefs(t,r){var n=t.get("coordinateSystem"),o=CoordinateSystem.get(n),s;return r&&r.coordSysDims&&(s=map$1(r.coordSysDims,function(l){var d={name:l},g=r.axisMap.get(l);if(g){var y=g.get("type");d.type=getDimensionTypeByAxis(y)}return d})),s||(s=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),s}function injectOrdinalMeta(t,r,n){var o,s;return n&&each$f(t,function(l,d){var g=l.coordDim,y=n.categoryAxisMap.get(g);y&&(o==null&&(o=d),l.ordinalMeta=y.getOrdinalMeta(),r&&(l.createInvertedIndices=!0)),l.otherDims.itemName!=null&&(s=!0)}),!s&&o!=null&&(t[o].otherDims.itemName=0),o}function createSeriesData(t,r,n){n=n||{};var o=r.getSourceManager(),s,l=!1;t?(l=!0,s=createSourceFromSeriesDataOption(t)):(s=o.getSource(),l=s.sourceFormat===SOURCE_FORMAT_ORIGINAL);var d=getCoordSysInfoBySeries(r),g=getCoordSysDimDefs(r,d),y=n.useEncodeDefaulter,b=isFunction(y)?y:y?curry$1(makeSeriesEncodeForAxisCoordSys,g,r):null,C={coordDimensions:g,generateCoord:n.generateCoord,encodeDefine:r.getEncode(),encodeDefaulter:b,canOmitUnusedDimensions:!l},x=prepareSeriesDataSchema(s,C),S=injectOrdinalMeta(x.dimensions,n.createInvertedIndices,d),_=l?null:o.getSharedDataStore(x),w=enableDataStack(r,{schema:x,store:_}),$=new SeriesData$1(x,r);$.setCalculationInfo(w);var I=S!=null&&isNeedCompleteOrdinalData(s)?function(B,R,P,M){return M===S?P:this.defaultDimValueGetter(B,R,P,M)}:null;return $.hasItemOption=!1,$.initData(l?s:_,null,I),$}function isNeedCompleteOrdinalData(t){if(t.sourceFormat===SOURCE_FORMAT_ORIGINAL){var r=firstDataNotNull(t.data||[]);return!isArray$1(getDataItemValue(r))}}function firstDataNotNull(t){for(var r=0;r<t.length&&t[r]==null;)r++;return t[r]}var Scale=function(){function t(r){this._setting=r||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(r){return this._setting[r]},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])},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(r,n){var o=this._extent;isNaN(r)||(o[0]=r),isNaN(n)||(o[1]=n)},t.prototype.isInExtentRange=function(r){return this._extent[0]<=r&&this._extent[1]>=r},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(r){this._isBlank=r},t}();enableClassManagement(Scale);var Scale$1=Scale,uidBase=0,OrdinalMeta=function(){function t(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this.uid=++uidBase}return t.createByAxisModel=function(r){var n=r.option,o=n.data,s=o&&map$1(o,getName);return new t({categories:s,needCollect:!s,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(r){return this._getOrCreateMap().get(r)},t.prototype.parseAndCollect=function(r){var n,o=this._needCollect;if(!isString(r)&&!o)return r;if(o&&!this._deduplication)return n=this.categories.length,this.categories[n]=r,n;var s=this._getOrCreateMap();return n=s.get(r),n==null&&(o?(n=this.categories.length,this.categories[n]=r,s.set(r,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},t}();function getName(t){return isObject$3(t)&&t.value!=null?t.value:t+""}var OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale(t){return t.type==="interval"||t.type==="log"}function intervalScaleNiceTicks(t,r,n,o){var s={},l=t[1]-t[0],d=s.interval=nice(l/r,!0);n!=null&&d<n&&(d=s.interval=n),o!=null&&d>o&&(d=s.interval=o);var g=s.intervalPrecision=getIntervalPrecision(d),y=s.niceTickExtent=[round$3(Math.ceil(t[0]/d)*d,g),round$3(Math.floor(t[1]/d)*d,g)];return fixExtent(y,t),s}function increaseInterval(t){var r=Math.pow(10,quantityExponent(t)),n=t/r;return n?n===2?n=3:n===3?n=5:n*=2:n=1,round$3(n*r)}function getIntervalPrecision(t){return getPrecision(t)+2}function clamp(t,r,n){t[r]=Math.max(Math.min(t[r],n[1]),n[0])}function fixExtent(t,r){!isFinite(t[0])&&(t[0]=r[0]),!isFinite(t[1])&&(t[1]=r[1]),clamp(t,0,r),clamp(t,1,r),t[0]>t[1]&&(t[0]=t[1])}function contain$1(t,r){return t>=r[0]&&t<=r[1]}function normalize$2(t,r){return r[1]===r[0]?.5:(t-r[0])/(r[1]-r[0])}function scale(t,r){return t*(r[1]-r[0])+r[0]}var OrdinalScale=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;o.type="ordinal";var s=o.getSetting("ordinalMeta");return s||(s=new OrdinalMeta$1({})),isArray$1(s)&&(s=new OrdinalMeta$1({categories:map$1(s,function(l){return isObject$3(l)?l.value:l})})),o._ordinalMeta=s,o._extent=o.getSetting("extent")||[0,s.categories.length-1],o}return r.prototype.parse=function(n){return n==null?NaN:isString(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},r.prototype.contain=function(n){return n=this.parse(n),contain$1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},r.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),normalize$2(n,this._extent)},r.prototype.scale=function(n){return n=Math.round(scale(n,this._extent)),this.getRawOrdinalNumber(n)},r.prototype.getTicks=function(){for(var n=[],o=this._extent,s=o[0];s<=o[1];)n.push({value:s}),s++;return n},r.prototype.getMinorTicks=function(n){},r.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var o=n.ordinalNumbers,s=this._ordinalNumbersByTick=[],l=this._ticksByOrdinalNumber=[],d=0,g=this._ordinalMeta.categories.length,y=Math.min(g,o.length);d<y;++d){var b=o[d];s[d]=b,l[b]=d}for(var C=0;d<g;++d){for(;l[C]!=null;)C++;s.push(C),l[C]=d}},r.prototype._getTickNumber=function(n){var o=this._ticksByOrdinalNumber;return o&&n>=0&&n<o.length?o[n]:n},r.prototype.getRawOrdinalNumber=function(n){var o=this._ordinalNumbersByTick;return o&&n>=0&&n<o.length?o[n]:n},r.prototype.getLabel=function(n){if(!this.isBlank()){var o=this.getRawOrdinalNumber(n.value),s=this._ordinalMeta.categories[o];return s==null?"":s+""}},r.prototype.count=function(){return this._extent[1]-this._extent[0]+1},r.prototype.unionExtentFromData=function(n,o){this.unionExtent(n.getApproximateExtent(o))},r.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r.prototype.calcNiceTicks=function(){},r.prototype.calcNiceExtent=function(){},r.type="ordinal",r}(Scale$1);Scale$1.registerClass(OrdinalScale);var OrdinalScale$1=OrdinalScale,roundNumber=round$3,IntervalScale=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return r.prototype.parse=function(n){return n},r.prototype.contain=function(n){return contain$1(n,this._extent)},r.prototype.normalize=function(n){return normalize$2(n,this._extent)},r.prototype.scale=function(n){return scale(n,this._extent)},r.prototype.setExtent=function(n,o){var s=this._extent;isNaN(n)||(s[0]=parseFloat(n)),isNaN(o)||(s[1]=parseFloat(o))},r.prototype.unionExtent=function(n){var o=this._extent;n[0]<o[0]&&(o[0]=n[0]),n[1]>o[1]&&(o[1]=n[1]),this.setExtent(o[0],o[1])},r.prototype.getInterval=function(){return this._interval},r.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(n)},r.prototype.getTicks=function(n){var o=this._interval,s=this._extent,l=this._niceExtent,d=this._intervalPrecision,g=[];if(!o)return g;var y=1e4;s[0]<l[0]&&(n?g.push({value:roundNumber(l[0]-o,d)}):g.push({value:s[0]}));for(var b=l[0];b<=l[1]&&(g.push({value:b}),b=roundNumber(b+o,d),b!==g[g.length-1].value);)if(g.length>y)return[];var C=g.length?g[g.length-1].value:l[1];return s[1]>C&&(n?g.push({value:roundNumber(C+o,d)}):g.push({value:s[1]})),g},r.prototype.getMinorTicks=function(n){for(var o=this.getTicks(!0),s=[],l=this.getExtent(),d=1;d<o.length;d++){for(var g=o[d],y=o[d-1],b=0,C=[],x=g.value-y.value,S=x/n;b<n-1;){var _=roundNumber(y.value+(b+1)*S);_>l[0]&&_<l[1]&&C.push(_),b++}s.push(C)}return s},r.prototype.getLabel=function(n,o){if(n==null)return"";var s=o&&o.precision;s==null?s=getPrecision(n.value)||0:s==="auto"&&(s=this._intervalPrecision);var l=roundNumber(n.value,s,!0);return addCommas(l)},r.prototype.calcNiceTicks=function(n,o,s){n=n||5;var l=this._extent,d=l[1]-l[0];if(!!isFinite(d)){d<0&&(d=-d,l.reverse());var g=intervalScaleNiceTicks(l,n,o,s);this._intervalPrecision=g.intervalPrecision,this._interval=g.interval,this._niceExtent=g.niceTickExtent}},r.prototype.calcNiceExtent=function(n){var o=this._extent;if(o[0]===o[1])if(o[0]!==0){var s=Math.abs(o[0]);n.fixMax||(o[1]+=s/2),o[0]-=s/2}else o[1]=1;var l=o[1]-o[0];isFinite(l)||(o[0]=0,o[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var d=this._interval;n.fixMin||(o[0]=roundNumber(Math.floor(o[0]/d)*d)),n.fixMax||(o[1]=roundNumber(Math.ceil(o[1]/d)*d))},r.prototype.setNiceExtent=function(n,o){this._niceExtent=[n,o]},r.type="interval",r}(Scale$1);Scale$1.registerClass(IntervalScale);var IntervalScale$1=IntervalScale,supportFloat32Array=typeof Float32Array!="undefined",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array(t){return isArray$1(t)?supportFloat32Array?new Float32Array(t):t:new Float32ArrayCtor(t)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId$1(t){return t.get("stack")||STACK_PREFIX+t.seriesIndex}function getAxisKey$1(t){return t.dim+t.index}function getLayoutOnAxis(t){var r=[],n=t.axis,o="axis0";if(n.type==="category"){for(var s=n.getBandWidth(),l=0;l<t.count;l++)r.push(defaults({bandWidth:s,axisKey:o,stackId:STACK_PREFIX+l},t));for(var d=doCalBarWidthAndOffset(r),g=[],l=0;l<t.count;l++){var y=d[o][STACK_PREFIX+l];y.offsetCenter=y.offset+y.width/2,g.push(y)}return g}}function prepareLayoutBarSeries(t,r){var n=[];return r.eachSeriesByType(t,function(o){isOnCartesian(o)&&n.push(o)}),n}function getValueAxesMinGaps(t){var r={};each$f(t,function(y){var b=y.coordinateSystem,C=b.getBaseAxis();if(!(C.type!=="time"&&C.type!=="value"))for(var x=y.getData(),S=C.dim+"_"+C.index,_=x.getDimensionIndex(x.mapDimension(C.dim)),w=x.getStore(),$=0,I=w.count();$<I;++$){var B=w.get(_,$);r[S]?r[S].push(B):r[S]=[B]}});var n={};for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];if(s){s.sort(function(y,b){return y-b});for(var l=null,d=1;d<s.length;++d){var g=s[d]-s[d-1];g>0&&(l=l===null?g:Math.min(l,g))}n[o]=l}}return n}function makeColumnLayout(t){var r=getValueAxesMinGaps(t),n=[];return each$f(t,function(o){var s=o.coordinateSystem,l=s.getBaseAxis(),d=l.getExtent(),g;if(l.type==="category")g=l.getBandWidth();else if(l.type==="value"||l.type==="time"){var y=l.dim+"_"+l.index,b=r[y],C=Math.abs(d[1]-d[0]),x=l.scale.getExtent(),S=Math.abs(x[1]-x[0]);g=b?C/S*b:C}else{var _=o.getData();g=Math.abs(d[1]-d[0])/_.count()}var w=parsePercent(o.get("barWidth"),g),$=parsePercent(o.get("barMaxWidth"),g),I=parsePercent(o.get("barMinWidth")||(isInLargeMode(o)?.5:1),g),B=o.get("barGap"),R=o.get("barCategoryGap");n.push({bandWidth:g,barWidth:w,barMaxWidth:$,barMinWidth:I,barGap:B,barCategoryGap:R,axisKey:getAxisKey$1(l),stackId:getSeriesStackId$1(o)})}),doCalBarWidthAndOffset(n)}function doCalBarWidthAndOffset(t){var r={};each$f(t,function(o,s){var l=o.axisKey,d=o.bandWidth,g=r[l]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},y=g.stacks;r[l]=g;var b=o.stackId;y[b]||g.autoWidthCount++,y[b]=y[b]||{width:0,maxWidth:0};var C=o.barWidth;C&&!y[b].width&&(y[b].width=C,C=Math.min(g.remainedWidth,C),g.remainedWidth-=C);var x=o.barMaxWidth;x&&(y[b].maxWidth=x);var S=o.barMinWidth;S&&(y[b].minWidth=S);var _=o.barGap;_!=null&&(g.gap=_);var w=o.barCategoryGap;w!=null&&(g.categoryGap=w)});var n={};return each$f(r,function(o,s){n[s]={};var l=o.stacks,d=o.bandWidth,g=o.categoryGap;if(g==null){var y=keys(l).length;g=Math.max(35-y*4,15)+"%"}var b=parsePercent(g,d),C=parsePercent(o.gap,1),x=o.remainedWidth,S=o.autoWidthCount,_=(x-b)/(S+(S-1)*C);_=Math.max(_,0),each$f(l,function(B){var R=B.maxWidth,P=B.minWidth;if(B.width){var M=B.width;R&&(M=Math.min(M,R)),P&&(M=Math.max(M,P)),B.width=M,x-=M+C*M,S--}else{var M=_;R&&R<M&&(M=Math.min(R,x)),P&&P>M&&(M=P),M!==_&&(B.width=M,x-=M+C*M,S--)}}),_=(x-b)/(S+(S-1)*C),_=Math.max(_,0);var w=0,$;each$f(l,function(B,R){B.width||(B.width=_),$=B,w+=B.width*(1+C)}),$&&(w-=$.width*C);var I=-w/2;each$f(l,function(B,R){n[s][R]=n[s][R]||{bandWidth:d,offset:I,width:B.width},I+=B.width*(1+C)})}),n}function retrieveColumnLayout(t,r,n){if(t&&r){var o=t[getAxisKey$1(r)];return o!=null&&n!=null?o[getSeriesStackId$1(n)]:o}}function layout$3(t,r){var n=prepareLayoutBarSeries(t,r),o=makeColumnLayout(n);each$f(n,function(s){var l=s.getData(),d=s.coordinateSystem,g=d.getBaseAxis(),y=getSeriesStackId$1(s),b=o[getAxisKey$1(g)][y],C=b.offset,x=b.width;l.setLayout({bandWidth:b.bandWidth,offset:C,size:x})})}function createProgressiveLayout(t){return{seriesType:t,plan:createRenderPlanner(),reset:function(r){if(!!isOnCartesian(r)){var n=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=o.getOtherAxis(s),d=n.getDimensionIndex(n.mapDimension(l.dim)),g=n.getDimensionIndex(n.mapDimension(s.dim)),y=r.get("showBackground",!0),b=n.mapDimension(l.dim),C=n.getCalculationInfo("stackResultDimension"),x=isDimensionStacked(n,b)&&!!n.getCalculationInfo("stackedOnSeries"),S=l.isHorizontal(),_=getValueAxisStart(s,l),w=isInLargeMode(r),$=r.get("barMinHeight")||0,I=C&&n.getDimensionIndex(C),B=n.getLayout("size"),R=n.getLayout("offset");return{progress:function(P,M){for(var O=P.count,D=w&&createFloat32Array(O*3),N=w&&y&&createFloat32Array(O*3),H=w&&createFloat32Array(O),Q=o.master.getRect(),G=S?Q.width:Q.height,K,W=M.getStore(),j=0;(K=P.next())!=null;){var Y=W.get(x?I:d,K),q=W.get(g,K),X=_,re=void 0;x&&(re=+Y-W.get(d,K));var te=void 0,oe=void 0,ae=void 0,se=void 0;if(S){var ue=o.dataToPoint([Y,q]);if(x){var Ae=o.dataToPoint([re,q]);X=Ae[0]}te=X,oe=ue[1]+R,ae=ue[0]-X,se=B,Math.abs(ae)<$&&(ae=(ae<0?-1:1)*$)}else{var ue=o.dataToPoint([q,Y]);if(x){var Ae=o.dataToPoint([q,re]);X=Ae[1]}te=ue[0]+R,oe=X,ae=B,se=ue[1]-X,Math.abs(se)<$&&(se=(se<=0?-1:1)*$)}w?(D[j]=te,D[j+1]=oe,D[j+2]=S?ae:se,N&&(N[j]=S?Q.x:te,N[j+1]=S?oe:Q.y,N[j+2]=G),H[K]=K):M.setItemLayout(K,{x:te,y:oe,width:ae,height:se}),j+=3}w&&M.setLayout({largePoints:D,largeDataIndices:H,largeBackgroundPoints:N,valueAxisHorizontal:S})}}}}}}function isOnCartesian(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function isInLargeMode(t){return t.pipelineContext&&t.pipelineContext.large}function getValueAxisStart(t,r){return r.toGlobalCoord(r.dataToCoord(r.type==="log"?1:0))}var bisect=function(t,r,n,o){for(;n<o;){var s=n+o>>>1;t[s][1]<r?n=s+1:o=s}return n},TimeScale=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="time",o}return r.prototype.getLabel=function(n){var o=this.getSetting("useUTC");return format$1(n.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,o,this.getSetting("locale"))},r.prototype.getFormattedLabel=function(n,o,s){var l=this.getSetting("useUTC"),d=this.getSetting("locale");return leveledFormat(n,o,s,d,l)},r.prototype.getTicks=function(){var n=this._interval,o=this._extent,s=[];if(!n)return s;s.push({value:o[0],level:0});var l=this.getSetting("useUTC"),d=getIntervalTicks(this._minLevelUnit,this._approxInterval,l,o);return s=s.concat(d),s.push({value:o[1],level:0}),s},r.prototype.calcNiceExtent=function(n){var o=this._extent;if(o[0]===o[1]&&(o[0]-=ONE_DAY,o[1]+=ONE_DAY),o[1]===-1/0&&o[0]===1/0){var s=new Date;o[1]=+new Date(s.getFullYear(),s.getMonth(),s.getDate()),o[0]=o[1]-ONE_DAY}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},r.prototype.calcNiceTicks=function(n,o,s){n=n||10;var l=this._extent,d=l[1]-l[0];this._approxInterval=d/n,o!=null&&this._approxInterval<o&&(this._approxInterval=o),s!=null&&this._approxInterval>s&&(this._approxInterval=s);var g=scaleIntervals.length,y=Math.min(bisect(scaleIntervals,this._approxInterval,0,g),g-1);this._interval=scaleIntervals[y][1],this._minLevelUnit=scaleIntervals[Math.max(y-1,0)][0]},r.prototype.parse=function(n){return isNumber(n)?n:+parseDate(n)},r.prototype.contain=function(n){return contain$1(this.parse(n),this._extent)},r.prototype.normalize=function(n){return normalize$2(this.parse(n),this._extent)},r.prototype.scale=function(n){return scale(n,this._extent)},r.type="time",r}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(t,r,n,o){var s=parseDate(r),l=parseDate(n),d=function(w){return getUnitValue(s,w,o)===getUnitValue(l,w,o)},g=function(){return d("year")},y=function(){return g()&&d("month")},b=function(){return y()&&d("day")},C=function(){return b()&&d("hour")},x=function(){return C()&&d("minute")},S=function(){return x()&&d("second")},_=function(){return S()&&d("millisecond")};switch(t){case"year":return g();case"month":return y();case"day":return b();case"hour":return C();case"minute":return x();case"second":return S();case"millisecond":return _()}}function getDateInterval(t,r){return t/=ONE_DAY,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function getMonthInterval(t){var r=30*ONE_DAY;return t/=r,t>6?6:t>3?3:t>2?2:1}function getHourInterval(t){return t/=ONE_HOUR,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function getMinutesAndSecondsInterval(t,r){return t/=r?ONE_MINUTE:ONE_SECOND,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function getMillisecondsInterval(t){return nice(t,!0)}function getFirstTimestampOfUnit(t,r,n){var o=new Date(t);switch(getPrimaryTimeUnit(r)){case"year":case"month":o[monthSetterName(n)](0);case"day":o[dateSetterName(n)](1);case"hour":o[hoursSetterName(n)](0);case"minute":o[minutesSetterName(n)](0);case"second":o[secondsSetterName(n)](0),o[millisecondsSetterName(n)](0)}return o.getTime()}function getIntervalTicks(t,r,n,o){var s=1e4,l=timeUnits,d=0;function g(G,K,W,j,Y,q,X){for(var re=new Date(K),te=K,oe=re[j]();te<W&&te<=o[1];)X.push({value:te}),oe+=G,re[Y](oe),te=re.getTime();X.push({value:te,notAdd:!0})}function y(G,K,W){var j=[],Y=!K.length;if(!isUnitValueSame(getPrimaryTimeUnit(G),o[0],o[1],n)){Y&&(K=[{value:getFirstTimestampOfUnit(new Date(o[0]),G,n)},{value:o[1]}]);for(var q=0;q<K.length-1;q++){var X=K[q].value,re=K[q+1].value;if(X!==re){var te=void 0,oe=void 0,ae=void 0,se=!1;switch(G){case"year":te=Math.max(1,Math.round(r/ONE_DAY/365)),oe=fullYearGetterName(n),ae=fullYearSetterName(n);break;case"half-year":case"quarter":case"month":te=getMonthInterval(r),oe=monthGetterName(n),ae=monthSetterName(n);break;case"week":case"half-week":case"day":te=getDateInterval(r),oe=dateGetterName(n),ae=dateSetterName(n),se=!0;break;case"half-day":case"quarter-day":case"hour":te=getHourInterval(r),oe=hoursGetterName(n),ae=hoursSetterName(n);break;case"minute":te=getMinutesAndSecondsInterval(r,!0),oe=minutesGetterName(n),ae=minutesSetterName(n);break;case"second":te=getMinutesAndSecondsInterval(r,!1),oe=secondsGetterName(n),ae=secondsSetterName(n);break;case"millisecond":te=getMillisecondsInterval(r),oe=millisecondsGetterName(n),ae=millisecondsSetterName(n);break}g(te,X,re,oe,ae,se,j),G==="year"&&W.length>1&&q===0&&W.unshift({value:W[0].value-te})}}for(var q=0;q<j.length;q++)W.push(j[q]);return j}}for(var b=[],C=[],x=0,S=0,_=0;_<l.length&&d++<s;++_){var w=getPrimaryTimeUnit(l[_]);if(!!isPrimaryTimeUnit(l[_])){y(l[_],b[b.length-1]||[],C);var $=l[_+1]?getPrimaryTimeUnit(l[_+1]):null;if(w!==$){if(C.length){S=x,C.sort(function(G,K){return G.value-K.value});for(var I=[],B=0;B<C.length;++B){var R=C[B].value;(B===0||C[B-1].value!==R)&&(I.push(C[B]),R>=o[0]&&R<=o[1]&&x++)}var P=(o[1]-o[0])/r;if(x>P*1.5&&S>P/1.5||(b.push(I),x>P||t===l[_]))break}C=[]}}}for(var M=filter(map$1(b,function(G){return filter(G,function(K){return K.value>=o[0]&&K.value<=o[1]&&!K.notAdd})}),function(G){return G.length>0}),O=[],D=M.length-1,_=0;_<M.length;++_)for(var N=M[_],H=0;H<N.length;++H)O.push({value:N[H].value,level:D-_});O.sort(function(G,K){return G.value-K.value});for(var Q=[],_=0;_<O.length;++_)(_===0||O[_].value!==O[_-1].value)&&Q.push(O[_]);return Q}Scale$1.registerClass(TimeScale);var TimeScale$1=TimeScale,scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$3,mathFloor$1=Math.floor,mathCeil$1=Math.ceil,mathPow$1=Math.pow,mathLog$1=Math.log,LogScale=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new IntervalScale$1,n._interval=0,n}return r.prototype.getTicks=function(n){var o=this._originalScale,s=this._extent,l=o.getExtent(),d=intervalScaleProto.getTicks.call(this,n);return map$1(d,function(g){var y=g.value,b=round$3(mathPow$1(this.base,y));return b=y===s[0]&&this._fixMin?fixRoundingError(b,l[0]):b,b=y===s[1]&&this._fixMax?fixRoundingError(b,l[1]):b,{value:b}},this)},r.prototype.setExtent=function(n,o){var s=mathLog$1(this.base);n=mathLog$1(Math.max(0,n))/s,o=mathLog$1(Math.max(0,o))/s,intervalScaleProto.setExtent.call(this,n,o)},r.prototype.getExtent=function(){var n=this.base,o=scaleProto.getExtent.call(this);o[0]=mathPow$1(n,o[0]),o[1]=mathPow$1(n,o[1]);var s=this._originalScale,l=s.getExtent();return this._fixMin&&(o[0]=fixRoundingError(o[0],l[0])),this._fixMax&&(o[1]=fixRoundingError(o[1],l[1])),o},r.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var o=this.base;n[0]=mathLog$1(n[0])/mathLog$1(o),n[1]=mathLog$1(n[1])/mathLog$1(o),scaleProto.unionExtent.call(this,n)},r.prototype.unionExtentFromData=function(n,o){this.unionExtent(n.getApproximateExtent(o))},r.prototype.calcNiceTicks=function(n){n=n||10;var o=this._extent,s=o[1]-o[0];if(!(s===1/0||s<=0)){var l=quantity(s),d=n/s*l;for(d<=.5&&(l*=10);!isNaN(l)&&Math.abs(l)<1&&Math.abs(l)>0;)l*=10;var g=[round$3(mathCeil$1(o[0]/l)*l),round$3(mathFloor$1(o[1]/l)*l)];this._interval=l,this._niceExtent=g}},r.prototype.calcNiceExtent=function(n){intervalScaleProto.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},r.prototype.parse=function(n){return n},r.prototype.contain=function(n){return n=mathLog$1(n)/mathLog$1(this.base),contain$1(n,this._extent)},r.prototype.normalize=function(n){return n=mathLog$1(n)/mathLog$1(this.base),normalize$2(n,this._extent)},r.prototype.scale=function(n){return n=scale(n,this._extent),mathPow$1(this.base,n)},r.type="log",r}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(t,r){return roundingErrorFix(t,getPrecision(r))}Scale$1.registerClass(LogScale);var LogScale$1=LogScale,ScaleRawExtentInfo=function(){function t(r,n,o){this._prepareParams(r,n,o)}return t.prototype._prepareParams=function(r,n,o){o[1]<o[0]&&(o=[NaN,NaN]),this._dataMin=o[0],this._dataMax=o[1];var s=this._isOrdinal=r.type==="ordinal";this._needCrossZero=r.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var l=this._modelMinRaw=n.get("min",!0);isFunction(l)?this._modelMinNum=parseAxisModelMinMax(r,l({min:o[0],max:o[1]})):l!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(r,l));var d=this._modelMaxRaw=n.get("max",!0);if(isFunction(d)?this._modelMaxNum=parseAxisModelMinMax(r,d({min:o[0],max:o[1]})):d!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(r,d)),s)this._axisDataLen=n.getCategories().length;else{var g=n.get("boundaryGap"),y=isArray$1(g)?g:[g||0,g||0];typeof y[0]=="boolean"||typeof y[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(y[0],1),parsePercent$1(y[1],1)]}},t.prototype.calculate=function(){var r=this._isOrdinal,n=this._dataMin,o=this._dataMax,s=this._axisDataLen,l=this._boundaryGapInner,d=r?null:o-n||Math.abs(n),g=this._modelMinRaw==="dataMin"?n:this._modelMinNum,y=this._modelMaxRaw==="dataMax"?o:this._modelMaxNum,b=g!=null,C=y!=null;g==null&&(g=r?s?0:NaN:n-l[0]*d),y==null&&(y=r?s?s-1:NaN:o+l[1]*d),(g==null||!isFinite(g))&&(g=NaN),(y==null||!isFinite(y))&&(y=NaN);var x=eqNaN(g)||eqNaN(y)||r&&!s;this._needCrossZero&&(g>0&&y>0&&!b&&(g=0),g<0&&y<0&&!C&&(y=0));var S=this._determinedMin,_=this._determinedMax;return S!=null&&(g=S,b=!0),_!=null&&(y=_,C=!0),{min:g,max:y,minFixed:b,maxFixed:C,isBlank:x}},t.prototype.modifyDataMinMax=function(r,n){this[DATA_MIN_MAX_ATTR[r]]=n},t.prototype.setDeterminedMinMax=function(r,n){var o=DETERMINED_MIN_MAX_ATTR[r];this[o]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(t,r,n){var o=t.rawExtentInfo;return o||(o=new ScaleRawExtentInfo(t,r,n),t.rawExtentInfo=o,o)}function parseAxisModelMinMax(t,r){return r==null?null:eqNaN(r)?NaN:t.parse(r)}function getScaleExtent(t,r){var n=t.type,o=ensureScaleRawExtentInfo(t,r,t.getExtent()).calculate();t.setBlank(o.isBlank);var s=o.min,l=o.max,d=r.ecModel;if(d&&n==="time"){var g=prepareLayoutBarSeries("bar",d),y=!1;if(each$f(g,function(x){y=y||x.getBaseAxis()===r.axis}),y){var b=makeColumnLayout(g),C=adjustScaleForOverflow(s,l,r,b);s=C.min,l=C.max}}return{extent:[s,l],fixMin:o.minFixed,fixMax:o.maxFixed}}function adjustScaleForOverflow(t,r,n,o){var s=n.axis.getExtent(),l=s[1]-s[0],d=retrieveColumnLayout(o,n.axis);if(d===void 0)return{min:t,max:r};var g=1/0;each$f(d,function(_){g=Math.min(_.offset,g)});var y=-1/0;each$f(d,function(_){y=Math.max(_.offset+_.width,y)}),g=Math.abs(g),y=Math.abs(y);var b=g+y,C=r-t,x=1-(g+y)/l,S=C/x-C;return r+=S*(y/b),t-=S*(g/b),{min:t,max:r}}function niceScaleExtent(t,r){var n=r,o=getScaleExtent(t,n),s=o.extent,l=n.get("splitNumber");t instanceof LogScale$1&&(t.base=n.get("logBase"));var d=t.type,g=n.get("interval"),y=d==="interval"||d==="time";t.setExtent(s[0],s[1]),t.calcNiceExtent({splitNumber:l,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:y?n.get("minInterval"):null,maxInterval:y?n.get("maxInterval"):null}),g!=null&&t.setInterval&&t.setInterval(g)}function createScaleByModel$1(t,r){if(r=r||t.get("type"),r)switch(r){case"category":return new OrdinalScale$1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Scale$1.getClass(r)||IntervalScale$1)}}function ifAxisCrossZero(t){var r=t.scale.getExtent(),n=r[0],o=r[1];return!(n>0&&o>0||n<0&&o<0)}function makeLabelFormatter(t){var r=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(o){return function(s,l){return t.scale.getFormattedLabel(s,l,o)}}(r):isString(r)?function(o){return function(s){var l=t.scale.getLabel(s),d=o.replace("{value}",l!=null?l:"");return d}}(r):isFunction(r)?function(o){return function(s,l){return n!=null&&(l=s.value-n),o(getAxisRawValue(t,s),l,s.level!=null?{level:s.level}:null)}}(r):function(o){return t.scale.getLabel(o)}}function getAxisRawValue(t,r){return t.type==="category"?t.scale.getLabel(r):r.value}function estimateLabelUnionRect(t){var r=t.model,n=t.scale;if(!(!r.get(["axisLabel","show"])||n.isBlank())){var o,s,l=n.getExtent();n instanceof OrdinalScale$1?s=n.count():(o=n.getTicks(),s=o.length);var d=t.getLabelModel(),g=makeLabelFormatter(t),y,b=1;s>40&&(b=Math.ceil(s/40));for(var C=0;C<s;C+=b){var x=o?o[C]:{value:l[0]+C},S=g(x,C),_=d.getTextRect(S),w=rotateTextRect(_,d.get("rotate")||0);y?y.union(w):y=w}return y}}function rotateTextRect(t,r){var n=r*Math.PI/180,o=t.width,s=t.height,l=o*Math.abs(Math.cos(n))+Math.abs(s*Math.sin(n)),d=o*Math.abs(Math.sin(n))+Math.abs(s*Math.cos(n)),g=new BoundingRect$1(t.x,t.y,l,d);return g}function getOptionCategoryInterval(t){var r=t.get("interval");return r==null?"auto":r}function shouldShowAllLabels(t){return t.type==="category"&&getOptionCategoryInterval(t.getLabelModel())===0}function getDataDimensionsOnAxis(t,r){var n={};return each$f(t.mapDimensionsAll(r),function(o){n[getStackedDimension(t,o)]=!0}),keys(n)}function unionAxisExtentFromData(t,r,n){r&&each$f(getDataDimensionsOnAxis(r,n),function(o){var s=r.getApproximateExtent(o);s[0]<t[0]&&(t[0]=s[0]),s[1]>t[1]&&(t[1]=s[1])})}var AxisModelCommonMixin=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var r=this.option;return!r.scale},t.prototype.getCoordSysModel=function(){},t}();function createList$2(t){return createSeriesData(null,t)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale(t,r){var n=r;r instanceof Model$1||(n=new Model$1(r));var o=createScaleByModel$1(n);return o.setExtent(t[0],t[1]),niceScaleExtent(o,n),o}function mixinAxisModelCommonMethods(t){mixin(t,AxisModelCommonMixin)}function createTextStyle(t,r){return r=r||{},createTextStyle$1(t,null,null,r.state!=="normal")}var helper=Object.freeze(Object.defineProperty({__proto__:null,createList:createList$2,getLayoutRect,dataStack,createScale,mixinAxisModelCommonMethods,getECData,createTextStyle,createDimensions,createSymbol:createSymbol$1,enableHoverEmphasis},Symbol.toStringTag,{value:"Module"})),EPSILON=1e-8;function isAroundEqual(t,r){return Math.abs(t-r)<EPSILON}function contain(t,r,n){var o=0,s=t[0];if(!s)return!1;for(var l=1;l<t.length;l++){var d=t[l];o+=windingLine(s[0],s[1],d[0],d[1],r,n),s=d}var g=t[0];return(!isAroundEqual(s[0],g[0])||!isAroundEqual(s[1],g[1]))&&(o+=windingLine(s[0],s[1],g[0],g[1],r,n)),o!==0}var TMP_TRANSFORM=[];function transformPoints(t,r){for(var n=0;n<t.length;n++)applyTransform$1(t[n],t[n],r)}function updateBBoxFromPoints(t,r,n,o){for(var s=0;s<t.length;s++){var l=t[s];o&&(l=o.project(l)),l&&isFinite(l[0])&&isFinite(l[1])&&(min$1(r,r,l),max$1(n,n,l))}}function centroid$1(t){for(var r=0,n=0,o=0,s=t.length,l=t[s-1][0],d=t[s-1][1],g=0;g<s;g++){var y=t[g][0],b=t[g][1],C=l*b-y*d;r+=C,n+=(l+y)*C,o+=(d+b)*C,l=y,d=b}return r?[n/r/3,o/r/3,r]:[t[0][0]||0,t[0][1]||0]}var Region=function(){function t(r){this.name=r}return t.prototype.setCenter=function(r){this._center=r},t.prototype.getCenter=function(){var r=this._center;return r||(r=this._center=this.calcCenter()),r},t}(),GeoJSONPolygonGeometry=function(){function t(r,n){this.type="polygon",this.exterior=r,this.interiors=n}return t}(),GeoJSONLineStringGeometry=function(){function t(r){this.type="linestring",this.points=r}return t}(),GeoJSONRegion=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this,n)||this;return l.type="geoJSON",l.geometries=o,l._center=s&&[s[0],s[1]],l}return r.prototype.calcCenter=function(){for(var n=this.geometries,o,s=0,l=0;l<n.length;l++){var d=n[l],g=d.exterior,y=g&&g.length;y>s&&(o=d,s=y)}if(o)return centroid$1(o.exterior);var b=this.getBoundingRect();return[b.x+b.width/2,b.y+b.height/2]},r.prototype.getBoundingRect=function(n){var o=this._rect;if(o&&!n)return o;var s=[1/0,1/0],l=[-1/0,-1/0],d=this.geometries;return each$f(d,function(g){g.type==="polygon"?updateBBoxFromPoints(g.exterior,s,l,n):each$f(g.points,function(y){updateBBoxFromPoints(y,s,l,n)})}),isFinite(s[0])&&isFinite(s[1])&&isFinite(l[0])&&isFinite(l[1])||(s[0]=s[1]=l[0]=l[1]=0),o=new BoundingRect$1(s[0],s[1],l[0]-s[0],l[1]-s[1]),n||(this._rect=o),o},r.prototype.contain=function(n){var o=this.getBoundingRect(),s=this.geometries;if(!o.contain(n[0],n[1]))return!1;e:for(var l=0,d=s.length;l<d;l++){var g=s[l];if(g.type==="polygon"){var y=g.exterior,b=g.interiors;if(contain(y,n[0],n[1])){for(var C=0;C<(b?b.length:0);C++)if(contain(b[C],n[0],n[1]))continue e;return!0}}}return!1},r.prototype.transformTo=function(n,o,s,l){var d=this.getBoundingRect(),g=d.width/d.height;s?l||(l=s/g):s=g*l;for(var y=new BoundingRect$1(n,o,s,l),b=d.calculateTransform(y),C=this.geometries,x=0;x<C.length;x++){var S=C[x];S.type==="polygon"?(transformPoints(S.exterior,b),each$f(S.interiors,function(_){transformPoints(_,b)})):each$f(S.points,function(_){transformPoints(_,b)})}d=this._rect,d.copy(y),this._center=[d.x+d.width/2,d.y+d.height/2]},r.prototype.cloneShallow=function(n){n==null&&(n=this.name);var o=new r(n,this.geometries,this._center);return o._rect=this._rect,o.transformTo=null,o},r}(Region),GeoSVGRegion=function(t){__extends$1(r,t);function r(n,o){var s=t.call(this,n)||this;return s.type="geoSVG",s._elOnlyForCalculate=o,s}return r.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,o=n.getBoundingRect(),s=[o.x+o.width/2,o.y+o.height/2],l=identity(TMP_TRANSFORM),d=n;d&&!d.isGeoSVGGraphicRoot;)mul(l,d.getLocalTransform(),l),d=d.parent;return invert(l,l),applyTransform$1(s,s,l),s},r}(Region);function decode(t){if(!t.UTF8Encoding)return t;var r=t,n=r.UTF8Scale;n==null&&(n=1024);var o=r.features;return each$f(o,function(s){var l=s.geometry,d=l.encodeOffsets,g=l.coordinates;if(!!d)switch(l.type){case"LineString":l.coordinates=decodeRing(g,d,n);break;case"Polygon":decodeRings(g,d,n);break;case"MultiLineString":decodeRings(g,d,n);break;case"MultiPolygon":each$f(g,function(y,b){return decodeRings(y,d[b],n)})}}),r.UTF8Encoding=!1,r}function decodeRings(t,r,n){for(var o=0;o<t.length;o++)t[o]=decodeRing(t[o],r[o],n)}function decodeRing(t,r,n){for(var o=[],s=r[0],l=r[1],d=0;d<t.length;d+=2){var g=t.charCodeAt(d)-64,y=t.charCodeAt(d+1)-64;g=g>>1^-(g&1),y=y>>1^-(y&1),g+=s,y+=l,s=g,l=y,o.push([g/n,y/n])}return o}function parseGeoJSON(t,r){return t=decode(t),map$1(filter(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var o=n.properties,s=n.geometry,l=[];switch(s.type){case"Polygon":var d=s.coordinates;l.push(new GeoJSONPolygonGeometry(d[0],d.slice(1)));break;case"MultiPolygon":each$f(s.coordinates,function(y){y[0]&&l.push(new GeoJSONPolygonGeometry(y[0],y.slice(1)))});break;case"LineString":l.push(new GeoJSONLineStringGeometry([s.coordinates]));break;case"MultiLineString":l.push(new GeoJSONLineStringGeometry(s.coordinates))}var g=new GeoJSONRegion(o[r||"name"],l,o.cp);return g.properties=o,g})}var number=Object.freeze(Object.defineProperty({__proto__:null,linearMap:linearMap$2,round:round$3,asc:asc$2,getPrecision,getPrecisionSafe,getPixelPrecision,getPercentWithPrecision,MAX_SAFE_INTEGER,remRadian,isRadianAroundZero,parseDate,quantity,quantityExponent,nice,quantile,reformIntervals,isNumeric,numericToNumber},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,parse:parseDate,format:format$1},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,extendShape,extendPath,makePath,makeImage,mergePath,resizePath,createIcon,updateProps:updateProps$1,initProps,getTransform:getTransform$1,clipPointsByRect,clipRectByRect,registerShape,getShapeClass,Group:Group$4,Image:ZRImage$1,Text:ZRText$1,Circle:Circle$1,Ellipse:Ellipse$1,Sector:Sector$1,Ring:Ring$1,Polygon:Polygon$1,Polyline:Polyline$3,Rect:Rect$3,Line:Line$3,BezierCurve:BezierCurve$1,Arc:Arc$1,IncrementalDisplayable:IncrementalDisplayable$1,CompoundPath:CompoundPath$1,LinearGradient:LinearGradient$1,RadialGradient:RadialGradient$1,BoundingRect:BoundingRect$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,toCamelCase,normalizeCssArray,encodeHTML,formatTpl,getTooltipMarker,formatTime,capitalFirst,truncateText,getTextRect},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,map:map$1,each:each$f,indexOf,inherits,reduce,filter,bind:bind$1,curry:curry$1,isArray:isArray$1,isString,isObject:isObject$3,isFunction,extend,defaults,clone:clone$4,merge},Symbol.toStringTag,{value:"Module"})),inner$g=makeInner();function createAxisLabels(t){return t.type==="category"?makeCategoryLabels(t):makeRealNumberLabels(t)}function createAxisTicks(t,r){return t.type==="category"?makeCategoryTicks(t,r):{ticks:map$1(t.scale.getTicks(),function(n){return n.value})}}function makeCategoryLabels(t){var r=t.getLabelModel(),n=makeCategoryLabelsActually(t,r);return!r.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function makeCategoryLabelsActually(t,r){var n=getListCache(t,"labels"),o=getOptionCategoryInterval(r),s=listCacheGet(n,o);if(s)return s;var l,d;return isFunction(o)?l=makeLabelsByCustomizedCategoryInterval(t,o):(d=o==="auto"?makeAutoCategoryInterval(t):o,l=makeLabelsByNumericCategoryInterval(t,d)),listCacheSet(n,o,{labels:l,labelCategoryInterval:d})}function makeCategoryTicks(t,r){var n=getListCache(t,"ticks"),o=getOptionCategoryInterval(r),s=listCacheGet(n,o);if(s)return s;var l,d;if((!r.get("show")||t.scale.isBlank())&&(l=[]),isFunction(o))l=makeLabelsByCustomizedCategoryInterval(t,o,!0);else if(o==="auto"){var g=makeCategoryLabelsActually(t,t.getLabelModel());d=g.labelCategoryInterval,l=map$1(g.labels,function(y){return y.tickValue})}else d=o,l=makeLabelsByNumericCategoryInterval(t,d,!0);return listCacheSet(n,o,{ticks:l,tickCategoryInterval:d})}function makeRealNumberLabels(t){var r=t.scale.getTicks(),n=makeLabelFormatter(t);return{labels:map$1(r,function(o,s){return{level:o.level,formattedLabel:n(o,s),rawLabel:t.scale.getLabel(o),tickValue:o.value}})}}function getListCache(t,r){return inner$g(t)[r]||(inner$g(t)[r]=[])}function listCacheGet(t,r){for(var n=0;n<t.length;n++)if(t[n].key===r)return t[n].value}function listCacheSet(t,r,n){return t.push({key:r,value:n}),n}function makeAutoCategoryInterval(t){var r=inner$g(t).autoInterval;return r!=null?r:inner$g(t).autoInterval=t.calculateCategoryInterval()}function calculateCategoryInterval(t){var r=fetchAutoCategoryIntervalCalculationParams(t),n=makeLabelFormatter(t),o=(r.axisRotate-r.labelRotate)/180*Math.PI,s=t.scale,l=s.getExtent(),d=s.count();if(l[1]-l[0]<1)return 0;var g=1;d>40&&(g=Math.max(1,Math.floor(d/40)));for(var y=l[0],b=t.dataToCoord(y+1)-t.dataToCoord(y),C=Math.abs(b*Math.cos(o)),x=Math.abs(b*Math.sin(o)),S=0,_=0;y<=l[1];y+=g){var w=0,$=0,I=getBoundingRect(n({value:y}),r.font,"center","top");w=I.width*1.3,$=I.height*1.3,S=Math.max(S,w,7),_=Math.max(_,$,7)}var B=S/C,R=_/x;isNaN(B)&&(B=1/0),isNaN(R)&&(R=1/0);var P=Math.max(0,Math.floor(Math.min(B,R))),M=inner$g(t.model),O=t.getExtent(),D=M.lastAutoInterval,N=M.lastTickCount;return D!=null&&N!=null&&Math.abs(D-P)<=1&&Math.abs(N-d)<=1&&D>P&&M.axisExtent0===O[0]&&M.axisExtent1===O[1]?P=D:(M.lastTickCount=d,M.lastAutoInterval=P,M.axisExtent0=O[0],M.axisExtent1=O[1]),P}function fetchAutoCategoryIntervalCalculationParams(t){var r=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()}}function makeLabelsByNumericCategoryInterval(t,r,n){var o=makeLabelFormatter(t),s=t.scale,l=s.getExtent(),d=t.getLabelModel(),g=[],y=Math.max((r||0)+1,1),b=l[0],C=s.count();b!==0&&y>1&&C/y>2&&(b=Math.round(Math.ceil(b/y)*y));var x=shouldShowAllLabels(t),S=d.get("showMinLabel")||x,_=d.get("showMaxLabel")||x;S&&b!==l[0]&&$(l[0]);for(var w=b;w<=l[1];w+=y)$(w);_&&w-y!==l[1]&&$(l[1]);function $(I){var B={value:I};g.push(n?I:{formattedLabel:o(B),rawLabel:s.getLabel(B),tickValue:I})}return g}function makeLabelsByCustomizedCategoryInterval(t,r,n){var o=t.scale,s=makeLabelFormatter(t),l=[];return each$f(o.getTicks(),function(d){var g=o.getLabel(d),y=d.value;r(d.value,g)&&l.push(n?y:{formattedLabel:s(d),rawLabel:g,tickValue:y})}),l}var NORMALIZED_EXTENT=[0,1],Axis=function(){function t(r,n,o){this.onBand=!1,this.inverse=!1,this.dim=r,this.scale=n,this._extent=o||[0,0]}return t.prototype.contain=function(r){var n=this._extent,o=Math.min(n[0],n[1]),s=Math.max(n[0],n[1]);return r>=o&&r<=s},t.prototype.containData=function(r){return this.scale.contain(r)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(r){return getPixelPrecision(r||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(r,n){var o=this._extent;o[0]=r,o[1]=n},t.prototype.dataToCoord=function(r,n){var o=this._extent,s=this.scale;return r=s.normalize(r),this.onBand&&s.type==="ordinal"&&(o=o.slice(),fixExtentWithBands(o,s.count())),linearMap$2(r,NORMALIZED_EXTENT,o,n)},t.prototype.coordToData=function(r,n){var o=this._extent,s=this.scale;this.onBand&&s.type==="ordinal"&&(o=o.slice(),fixExtentWithBands(o,s.count()));var l=linearMap$2(r,o,NORMALIZED_EXTENT,n);return this.scale.scale(l)},t.prototype.pointToData=function(r,n){},t.prototype.getTicksCoords=function(r){r=r||{};var n=r.tickModel||this.getTickModel(),o=createAxisTicks(this,n),s=o.ticks,l=map$1(s,function(g){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(g):g),tickValue:g}},this),d=n.get("alignWithLabel");return fixOnBandTicksCoords(this,l,d,r.clamp),l},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var r=this.model.getModel("minorTick"),n=r.get("splitNumber");n>0&&n<100||(n=5);var o=this.scale.getMinorTicks(n),s=map$1(o,function(l){return map$1(l,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this);return s},t.prototype.getViewLabels=function(){return createAxisLabels(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var r=this._extent,n=this.scale.getExtent(),o=n[1]-n[0]+(this.onBand?1:0);o===0&&(o=1);var s=Math.abs(r[1]-r[0]);return Math.abs(s)/o},t.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},t}();function fixExtentWithBands(t,r){var n=t[1]-t[0],o=r,s=n/o/2;t[0]+=s,t[1]-=s}function fixOnBandTicksCoords(t,r,n,o){var s=r.length;if(!t.onBand||n||!s)return;var l=t.getExtent(),d,g;if(s===1)r[0].coord=l[0],d=r[1]={coord:l[0]};else{var y=r[s-1].tickValue-r[0].tickValue,b=(r[s-1].coord-r[0].coord)/y;each$f(r,function(_){_.coord-=b/2});var C=t.scale.getExtent();g=1+C[1]-r[s-1].tickValue,d={coord:r[s-1].coord+b*g},r.push(d)}var x=l[0]>l[1];S(r[0].coord,l[0])&&(o?r[0].coord=l[0]:r.shift()),o&&S(l[0],r[0].coord)&&r.unshift({coord:l[0]}),S(l[1],d.coord)&&(o?d.coord=l[1]:r.pop()),o&&S(d.coord,l[1])&&r.push({coord:l[1]});function S(_,w){return _=round$3(_),w=round$3(w),x?_>w:_<w}}var Axis$1=Axis;function extendComponentModel(t){var r=ComponentModel$1.extend(t);return ComponentModel$1.registerClass(r),r}function extendComponentView(t){var r=ComponentView$1.extend(t);return ComponentView$1.registerClass(r),r}function extendSeriesModel(t){var r=SeriesModel$1.extend(t);return SeriesModel$1.registerClass(r),r}function extendChartView(t){var r=ChartView$1.extend(t);return ChartView$1.registerClass(r),r}var PI2$2=Math.PI*2,CMD$1=PathProxy$1.CMD,DEFAULT_SEARCH_SPACE=["top","right","bottom","left"];function getCandidateAnchor(t,r,n,o,s){var l=n.width,d=n.height;switch(t){case"top":o.set(n.x+l/2,n.y-r),s.set(0,-1);break;case"bottom":o.set(n.x+l/2,n.y+d+r),s.set(0,1);break;case"left":o.set(n.x-r,n.y+d/2),s.set(-1,0);break;case"right":o.set(n.x+l+r,n.y+d/2),s.set(1,0);break}}function projectPointToArc(t,r,n,o,s,l,d,g,y){d-=t,g-=r;var b=Math.sqrt(d*d+g*g);d/=b,g/=b;var C=d*n+t,x=g*n+r;if(Math.abs(o-s)%PI2$2<1e-4)return y[0]=C,y[1]=x,b-n;if(l){var S=o;o=normalizeRadian(s),s=normalizeRadian(S)}else o=normalizeRadian(o),s=normalizeRadian(s);o>s&&(s+=PI2$2);var _=Math.atan2(g,d);if(_<0&&(_+=PI2$2),_>=o&&_<=s||_+PI2$2>=o&&_+PI2$2<=s)return y[0]=C,y[1]=x,b-n;var w=n*Math.cos(o)+t,$=n*Math.sin(o)+r,I=n*Math.cos(s)+t,B=n*Math.sin(s)+r,R=(w-d)*(w-d)+($-g)*($-g),P=(I-d)*(I-d)+(B-g)*(B-g);return R<P?(y[0]=w,y[1]=$,Math.sqrt(R)):(y[0]=I,y[1]=B,Math.sqrt(P))}function projectPointToLine(t,r,n,o,s,l,d,g){var y=s-t,b=l-r,C=n-t,x=o-r,S=Math.sqrt(C*C+x*x);C/=S,x/=S;var _=y*C+b*x,w=_/S;g&&(w=Math.min(Math.max(w,0),1)),w*=S;var $=d[0]=t+w*C,I=d[1]=r+w*x;return Math.sqrt(($-s)*($-s)+(I-l)*(I-l))}function projectPointToRect(t,r,n,o,s,l,d){n<0&&(t=t+n,n=-n),o<0&&(r=r+o,o=-o);var g=t+n,y=r+o,b=d[0]=Math.min(Math.max(s,t),g),C=d[1]=Math.min(Math.max(l,r),y);return Math.sqrt((b-s)*(b-s)+(C-l)*(C-l))}var tmpPt=[];function nearestPointOnRect(t,r,n){var o=projectPointToRect(r.x,r.y,r.width,r.height,t.x,t.y,tmpPt);return n.set(tmpPt[0],tmpPt[1]),o}function nearestPointOnPath(t,r,n){for(var o=0,s=0,l=0,d=0,g,y,b=1/0,C=r.data,x=t.x,S=t.y,_=0;_<C.length;){var w=C[_++];_===1&&(o=C[_],s=C[_+1],l=o,d=s);var $=b;switch(w){case CMD$1.M:l=C[_++],d=C[_++],o=l,s=d;break;case CMD$1.L:$=projectPointToLine(o,s,C[_],C[_+1],x,S,tmpPt,!0),o=C[_++],s=C[_++];break;case CMD$1.C:$=cubicProjectPoint(o,s,C[_++],C[_++],C[_++],C[_++],C[_],C[_+1],x,S,tmpPt),o=C[_++],s=C[_++];break;case CMD$1.Q:$=quadraticProjectPoint(o,s,C[_++],C[_++],C[_],C[_+1],x,S,tmpPt),o=C[_++],s=C[_++];break;case CMD$1.A:var I=C[_++],B=C[_++],R=C[_++],P=C[_++],M=C[_++],O=C[_++];_+=1;var D=!!(1-C[_++]);g=Math.cos(M)*R+I,y=Math.sin(M)*P+B,_<=1&&(l=g,d=y);var N=(x-I)*P/R+I;$=projectPointToArc(I,B,P,M,M+O,D,N,S,tmpPt),o=Math.cos(M+O)*R+I,s=Math.sin(M+O)*P+B;break;case CMD$1.R:l=o=C[_++],d=s=C[_++];var H=C[_++],Q=C[_++];$=projectPointToRect(l,d,H,Q,x,S,tmpPt);break;case CMD$1.Z:$=projectPointToLine(o,s,l,d,x,S,tmpPt,!0),o=l,s=d;break}$<b&&(b=$,n.set(tmpPt[0],tmpPt[1]))}return b}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1;function updateLabelLinePoints(t,r){if(!!t){var n=t.getTextGuideLine(),o=t.getTextContent();if(!!(o&&n)){var s=t.textGuideLineConfig||{},l=[[0,0],[0,0],[0,0]],d=s.candidates||DEFAULT_SEARCH_SPACE,g=o.getBoundingRect().clone();g.applyTransform(o.getComputedTransform());var y=1/0,b=s.anchor,C=t.getComputedTransform(),x=C&&invert([],C),S=r.get("length2")||0;b&&pt2.copy(b);for(var _=0;_<d.length;_++){var w=d[_];getCandidateAnchor(w,0,g,pt0,dir),Point$1.scaleAndAdd(pt1,pt0,dir,S),pt1.transform(x);var $=t.getBoundingRect(),I=b?b.distance(pt1):t instanceof Path$1?nearestPointOnPath(pt1,t.path,pt2):nearestPointOnRect(pt1,$,pt2);I<y&&(y=I,pt1.transform(C),pt2.transform(C),pt2.toArray(l[0]),pt1.toArray(l[1]),pt0.toArray(l[2]))}limitTurnAngle(l,r.get("minTurnAngle")),n.setShape({points:l})}}}var tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle(t,r){if(r<=180&&r>0){r=r/180*Math.PI,pt0.fromArray(t[0]),pt1.fromArray(t[1]),pt2.fromArray(t[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var n=dir.len(),o=dir2.len();if(!(n<.001||o<.001)){dir.scale(1/n),dir2.scale(1/o);var s=dir.dot(dir2),l=Math.cos(r);if(l<s){var d=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,d/Math.tan(Math.PI-r));var g=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(g))return;g<0?Point$1.copy(tmpProjPoint,pt1):g>1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(t[1])}}}}function limitSurfaceAngle(t,r,n){if(n<=180&&n>0){n=n/180*Math.PI,pt0.fromArray(t[0]),pt1.fromArray(t[1]),pt2.fromArray(t[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var o=dir.len(),s=dir2.len();if(!(o<.001||s<.001)){dir.scale(1/o),dir2.scale(1/s);var l=dir.dot(r),d=Math.cos(n);if(l<d){var g=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var y=Math.PI/2,b=Math.acos(dir2.dot(r)),C=y+b-n;if(C>=y)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,g/Math.tan(Math.PI/2-C));var x=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(x))return;x<0?Point$1.copy(tmpProjPoint,pt1):x>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(t[1])}}}}function setLabelLineState(t,r,n,o){var s=n==="normal",l=s?t:t.ensureState(n);l.ignore=r;var d=o.get("smooth");d&&d===!0&&(d=.3),l.shape=l.shape||{},d>0&&(l.shape.smooth=d);var g=o.getModel("lineStyle").getLineStyle();s?t.useStyle(g):l.style=g}function buildLabelLinePath(t,r){var n=r.smooth,o=r.points;if(!!o)if(t.moveTo(o[0][0],o[0][1]),n>0&&o.length>=3){var s=dist$1(o[0],o[1]),l=dist$1(o[1],o[2]);if(!s||!l){t.lineTo(o[1][0],o[1][1]),t.lineTo(o[2][0],o[2][1]);return}var d=Math.min(s,l)*n,g=lerp$1([],o[1],o[0],d/s),y=lerp$1([],o[1],o[2],d/l),b=lerp$1([],g,y,.5);t.bezierCurveTo(g[0],g[1],g[0],g[1],b[0],b[1]),t.bezierCurveTo(y[0],y[1],y[0],y[1],o[2][0],o[2][1])}else for(var C=1;C<o.length;C++)t.lineTo(o[C][0],o[C][1])}function setLabelLineStyle(t,r,n){var o=t.getTextGuideLine(),s=t.getTextContent();if(!s){o&&t.removeTextGuideLine();return}for(var l=r.normal,d=l.get("show"),g=s.ignore,y=0;y<DISPLAY_STATES.length;y++){var b=DISPLAY_STATES[y],C=r[b],x=b==="normal";if(C){var S=C.get("show"),_=x?g:retrieve2(s.states[b]&&s.states[b].ignore,g);if(_||!retrieve2(S,d)){var w=x?o:o&&o.states[b];w&&(w.ignore=!0);continue}o||(o=new Polyline$3,t.setTextGuideLine(o),!x&&(g||!d)&&setLabelLineState(o,!0,"normal",r.normal),t.stateProxy&&(o.stateProxy=t.stateProxy)),setLabelLineState(o,!1,b,C)}}if(o){defaults(o.style,n),o.style.fill=null;var $=l.get("showAbove"),I=t.textGuideLineConfig=t.textGuideLineConfig||{};I.showAbove=$||!1,o.buildPath=buildLabelLinePath}}function getLabelLineStatesModels(t,r){r=r||"labelLine";for(var n={normal:t.getModel(r)},o=0;o<SPECIAL_STATES.length;o++){var s=SPECIAL_STATES[o];n[s]=t.getModel([s,r])}return n}function prepareLayoutList(t){for(var r=[],n=0;n<t.length;n++){var o=t[n];if(!o.defaultAttr.ignore){var s=o.label,l=s.getComputedTransform(),d=s.getBoundingRect(),g=!l||l[1]<1e-5&&l[2]<1e-5,y=s.style.margin||0,b=d.clone();b.applyTransform(l),b.x-=y/2,b.y-=y/2,b.width+=y,b.height+=y;var C=g?new OrientedBoundingRect$1(d,l):null;r.push({label:s,labelLine:o.labelLine,rect:b,localRect:d,obb:C,priority:o.priority,defaultAttr:o.defaultAttr,layoutOption:o.computedLayoutOption,axisAligned:g,transform:l})}}return r}function shiftLayout(t,r,n,o,s,l){var d=t.length;if(d<2)return;t.sort(function(H,Q){return H.rect[r]-Q.rect[r]});for(var g=0,y,b=!1,C=0,x=0;x<d;x++){var S=t[x],_=S.rect;y=_[r]-g,y<0&&(_[r]-=y,S.label[r]-=y,b=!0);var w=Math.max(-y,0);C+=w,g=_[r]+_[n]}C>0&&l&&O(-C/d,0,d);var $=t[0],I=t[d-1],B,R;P(),B<0&&D(-B,.8),R<0&&D(R,.8),P(),M(B,R,1),M(R,B,-1),P(),B<0&&N(-B),R<0&&N(R);function P(){B=$.rect[r]-o,R=s-I.rect[r]-I.rect[n]}function M(H,Q,G){if(H<0){var K=Math.min(Q,-H);if(K>0){O(K*G,0,d);var W=K+H;W<0&&D(-W*G,1)}else D(-H*G,1)}}function O(H,Q,G){H!==0&&(b=!0);for(var K=Q;K<G;K++){var W=t[K],j=W.rect;j[r]+=H,W.label[r]+=H}}function D(H,Q){for(var G=[],K=0,W=1;W<d;W++){var j=t[W-1].rect,Y=Math.max(t[W].rect[r]-j[r]-j[n],0);G.push(Y),K+=Y}if(!!K){var q=Math.min(Math.abs(H)/K,Q);if(H>0)for(var W=0;W<d-1;W++){var X=G[W]*q;O(X,0,W+1)}else for(var W=d-1;W>0;W--){var X=G[W-1]*q;O(-X,W,d)}}}function N(H){var Q=H<0?-1:1;H=Math.abs(H);for(var G=Math.ceil(H/(d-1)),K=0;K<d-1;K++)if(Q>0?O(G,0,K+1):O(-G,d-K-1,d),H-=G,H<=0)return}return b}function shiftLayoutOnX(t,r,n,o){return shiftLayout(t,"x","width",r,n,o)}function shiftLayoutOnY(t,r,n,o){return shiftLayout(t,"y","height",r,n,o)}function hideOverlap(t){var r=[];t.sort(function($,I){return I.priority-$.priority});var n=new BoundingRect$1(0,0,0,0);function o($){if(!$.ignore){var I=$.ensureState("emphasis");I.ignore==null&&(I.ignore=!1)}$.ignore=!0}for(var s=0;s<t.length;s++){var l=t[s],d=l.axisAligned,g=l.localRect,y=l.transform,b=l.label,C=l.labelLine;n.copy(l.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var x=l.obb,S=!1,_=0;_<r.length;_++){var w=r[_];if(!!n.intersect(w.rect)){if(d&&w.axisAligned){S=!0;break}if(w.obb||(w.obb=new OrientedBoundingRect$1(w.localRect,w.transform)),x||(x=new OrientedBoundingRect$1(g,y)),x.intersect(w.obb)){S=!0;break}}}S?(o(b),C&&o(C)):(b.attr("ignore",l.defaultAttr.ignore),C&&C.attr("ignore",l.defaultAttr.labelGuideIgnore),r.push(l))}}function cloneArr(t){if(t){for(var r=[],n=0;n<t.length;n++)r.push(t[n].slice());return r}}function prepareLayoutCallbackParams(t,r){var n=t.label,o=r&&r.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:cloneArr(o&&o.shape.points)}}var LABEL_OPTION_TO_STYLE_KEYS=["align","verticalAlign","width","height","fontSize"],dummyTransformable=new Transformable$1,labelLayoutInnerStore=makeInner(),labelLineAnimationStore=makeInner();function extendWithKeys(t,r,n){for(var o=0;o<n.length;o++){var s=n[o];r[s]!=null&&(t[s]=r[s])}}var LABEL_LAYOUT_PROPS=["x","y","rotation"],LabelManager=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(r,n,o,s,l){var d=s.style,g=s.__hostTarget,y=g.textConfig||{},b=s.getComputedTransform(),C=s.getBoundingRect().plain();BoundingRect$1.applyTransform(C,C,b),b?dummyTransformable.setLocalTransform(b):(dummyTransformable.x=dummyTransformable.y=dummyTransformable.rotation=dummyTransformable.originX=dummyTransformable.originY=0,dummyTransformable.scaleX=dummyTransformable.scaleY=1);var x=s.__hostTarget,S;if(x){S=x.getBoundingRect().plain();var _=x.getComputedTransform();BoundingRect$1.applyTransform(S,S,_)}var w=S&&x.getTextGuideLine();this._labelList.push({label:s,labelLine:w,seriesModel:o,dataIndex:r,dataType:n,layoutOption:l,computedLayoutOption:null,rect:C,hostRect:S,priority:S?S.width*S.height:0,defaultAttr:{ignore:s.ignore,labelGuideIgnore:w&&w.ignore,x:dummyTransformable.x,y:dummyTransformable.y,scaleX:dummyTransformable.scaleX,scaleY:dummyTransformable.scaleY,rotation:dummyTransformable.rotation,style:{x:d.x,y:d.y,align:d.align,verticalAlign:d.verticalAlign,width:d.width,height:d.height,fontSize:d.fontSize},cursor:s.cursor,attachedPos:y.position,attachedRot:y.rotation}})},t.prototype.addLabelsOfSeries=function(r){var n=this;this._chartViewList.push(r);var o=r.__model,s=o.get("labelLayout");!(isFunction(s)||keys(s).length)||r.group.traverse(function(l){if(l.ignore)return!0;var d=l.getTextContent(),g=getECData(l);d&&!d.disableLabelLayout&&n._addLabel(g.dataIndex,g.dataType,o,d,s)})},t.prototype.updateLayoutConfig=function(r){var n=r.getWidth(),o=r.getHeight();function s(P,M){return function(){updateLabelLinePoints(P,M)}}for(var l=0;l<this._labelList.length;l++){var d=this._labelList[l],g=d.label,y=g.__hostTarget,b=d.defaultAttr,C=void 0;isFunction(d.layoutOption)?C=d.layoutOption(prepareLayoutCallbackParams(d,y)):C=d.layoutOption,C=C||{},d.computedLayoutOption=C;var x=Math.PI/180;y&&y.setTextConfig({local:!1,position:C.x!=null||C.y!=null?null:b.attachedPos,rotation:C.rotate!=null?C.rotate*x:b.attachedRot,offset:[C.dx||0,C.dy||0]});var S=!1;if(C.x!=null?(g.x=parsePercent(C.x,n),g.setStyle("x",0),S=!0):(g.x=b.x,g.setStyle("x",b.style.x)),C.y!=null?(g.y=parsePercent(C.y,o),g.setStyle("y",0),S=!0):(g.y=b.y,g.setStyle("y",b.style.y)),C.labelLinePoints){var _=y.getTextGuideLine();_&&(_.setShape({points:C.labelLinePoints}),S=!1)}var w=labelLayoutInnerStore(g);w.needsUpdateLabelLine=S,g.rotation=C.rotate!=null?C.rotate*x:b.rotation,g.scaleX=b.scaleX,g.scaleY=b.scaleY;for(var $=0;$<LABEL_OPTION_TO_STYLE_KEYS.length;$++){var I=LABEL_OPTION_TO_STYLE_KEYS[$];g.setStyle(I,C[I]!=null?C[I]:b.style[I])}if(C.draggable){if(g.draggable=!0,g.cursor="move",y){var B=d.seriesModel;if(d.dataIndex!=null){var R=d.seriesModel.getData(d.dataType);B=R.getItemModel(d.dataIndex)}g.on("drag",s(y,B.getModel("labelLine")))}}else g.off("drag"),g.cursor=b.cursor}},t.prototype.layout=function(r){var n=r.getWidth(),o=r.getHeight(),s=prepareLayoutList(this._labelList),l=filter(s,function(y){return y.layoutOption.moveOverlap==="shiftX"}),d=filter(s,function(y){return y.layoutOption.moveOverlap==="shiftY"});shiftLayoutOnX(l,0,n),shiftLayoutOnY(d,0,o);var g=filter(s,function(y){return y.layoutOption.hideOverlap});hideOverlap(g)},t.prototype.processLabelsOverall=function(){var r=this;each$f(this._chartViewList,function(n){var o=n.__model,s=n.ignoreLabelLineUpdate,l=o.isAnimationEnabled();n.group.traverse(function(d){if(d.ignore&&!d.forceLabelAnimation)return!0;var g=!s,y=d.getTextContent();!g&&y&&(g=labelLayoutInnerStore(y).needsUpdateLabelLine),g&&r._updateLabelLine(d,o),l&&r._animateLabels(d,o)})})},t.prototype._updateLabelLine=function(r,n){var o=r.getTextContent(),s=getECData(r),l=s.dataIndex;if(o&&l!=null){var d=n.getData(s.dataType),g=d.getItemModel(l),y={},b=d.getItemVisual(l,"style"),C=d.getVisual("drawType");y.stroke=b[C];var x=g.getModel("labelLine");setLabelLineStyle(r,getLabelLineStatesModels(g),y),updateLabelLinePoints(r,x)}},t.prototype._animateLabels=function(r,n){var o=r.getTextContent(),s=r.getTextGuideLine();if(o&&(r.forceLabelAnimation||!o.ignore&&!o.invisible&&!r.disableLabelAnimation&&!isElementRemoved(r))){var l=labelLayoutInnerStore(o),d=l.oldLayout,g=getECData(r),y=g.dataIndex,b={x:o.x,y:o.y,rotation:o.rotation},C=n.getData(g.dataType);if(d){o.attr(d);var S=r.prevStates;S&&(indexOf(S,"select")>=0&&o.attr(l.oldLayoutSelect),indexOf(S,"emphasis")>=0&&o.attr(l.oldLayoutEmphasis)),updateProps$1(o,b,n,y)}else if(o.attr(b),!labelInner(o).valueAnimation){var x=retrieve2(o.style.opacity,1);o.style.opacity=0,initProps(o,{style:{opacity:x}},n,y)}if(l.oldLayout=b,o.states.select){var _=l.oldLayoutSelect={};extendWithKeys(_,b,LABEL_LAYOUT_PROPS),extendWithKeys(_,o.states.select,LABEL_LAYOUT_PROPS)}if(o.states.emphasis){var w=l.oldLayoutEmphasis={};extendWithKeys(w,b,LABEL_LAYOUT_PROPS),extendWithKeys(w,o.states.emphasis,LABEL_LAYOUT_PROPS)}animateLabelValue(o,y,C,n,n)}if(s&&!s.ignore&&!s.invisible){var l=labelLineAnimationStore(s),d=l.oldLayout,$={points:s.shape.points};d?(s.attr({shape:d}),updateProps$1(s,{shape:$},n)):(s.setShape($),s.style.strokePercent=0,initProps(s,{style:{strokePercent:1}},n)),l.oldLayout=$}},t}(),LabelManager$1=LabelManager,getLabelManager=makeInner();function installLabelLayout(t){t.registerUpdateLifecycle("series:beforeupdate",function(r,n,o){var s=getLabelManager(n).labelManager;s||(s=getLabelManager(n).labelManager=new LabelManager$1),s.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(r,n,o){var s=getLabelManager(n).labelManager;o.updatedSeries.forEach(function(l){s.addLabelsOfSeries(n.getViewOfSeriesModel(l))}),s.updateLayoutConfig(n),s.layout(n),s.processLabelsOverall()})}var mathSin=Math.sin,mathCos=Math.cos,PI$4=Math.PI,PI2$1=Math.PI*2,degree=180/PI$4,SVGPathRebuilder=function(){function t(){}return t.prototype.reset=function(r){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,r||4)},t.prototype.moveTo=function(r,n){this._add("M",r,n)},t.prototype.lineTo=function(r,n){this._add("L",r,n)},t.prototype.bezierCurveTo=function(r,n,o,s,l,d){this._add("C",r,n,o,s,l,d)},t.prototype.quadraticCurveTo=function(r,n,o,s){this._add("Q",r,n,o,s)},t.prototype.arc=function(r,n,o,s,l,d){this.ellipse(r,n,o,o,0,s,l,d)},t.prototype.ellipse=function(r,n,o,s,l,d,g,y){var b=g-d,C=!y,x=Math.abs(b),S=isAroundZero(x-PI2$1)||(C?b>=PI2$1:-b>=PI2$1),_=b>0?b%PI2$1:b%PI2$1+PI2$1,w=!1;S?w=!0:isAroundZero(x)?w=!1:w=_>=PI$4==!!C;var $=r+o*mathCos(d),I=n+s*mathSin(d);this._start&&this._add("M",$,I);var B=Math.round(l*degree);if(S){var R=1/this._p,P=(C?1:-1)*(PI2$1-R);this._add("A",o,s,B,1,+C,r+o*mathCos(d+P),n+s*mathSin(d+P)),R>.01&&this._add("A",o,s,B,0,+C,$,I)}else{var M=r+o*mathCos(g),O=n+s*mathSin(g);this._add("A",o,s,B,+w,+C,M,O)}},t.prototype.rect=function(r,n,o,s){this._add("M",r,n),this._add("l",o,0),this._add("l",0,s),this._add("l",-o,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(r,n,o,s,l,d,g,y,b){for(var C=[],x=this._p,S=1;S<arguments.length;S++){var _=arguments[S];if(isNaN(_)){this._invalid=!0;return}C.push(Math.round(_*x)/x)}this._d.push(r+C.join(" ")),this._start=r==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),SVGPathRebuilder$1=SVGPathRebuilder,NONE="none",mathRound=Math.round;function pathHasFill(t){var r=t.fill;return r!=null&&r!==NONE}function pathHasStroke(t){var r=t.stroke;return r!=null&&r!==NONE}var strokeProps=["lineCap","miterLimit","lineJoin"],svgStrokeProps=map$1(strokeProps,function(t){return"stroke-"+t.toLowerCase()});function mapStyleToAttrs(t,r,n,o){var s=r.opacity==null?1:r.opacity;if(n instanceof ZRImage$1){t("opacity",s);return}if(pathHasFill(r)){var l=normalizeColor(r.fill);t("fill",l.color);var d=r.fillOpacity!=null?r.fillOpacity*l.opacity*s:l.opacity*s;(o||d<1)&&t("fill-opacity",d)}else t("fill",NONE);if(pathHasStroke(r)){var g=normalizeColor(r.stroke);t("stroke",g.color);var y=r.strokeNoScale?n.getLineScale():1,b=y?(r.lineWidth||0)/y:0,C=r.strokeOpacity!=null?r.strokeOpacity*g.opacity*s:g.opacity*s,x=r.strokeFirst;if((o||b!==1)&&t("stroke-width",b),(o||x)&&t("paint-order",x?"stroke":"fill"),(o||C<1)&&t("stroke-opacity",C),r.lineDash){var S=getLineDash(n),_=S[0],w=S[1];_&&(w=mathRound(w||0),t("stroke-dasharray",_.join(",")),(w||o)&&t("stroke-dashoffset",w))}else o&&t("stroke-dasharray",NONE);for(var $=0;$<strokeProps.length;$++){var I=strokeProps[$];if(o||r[I]!==DEFAULT_PATH_STYLE[I]){var B=r[I]||DEFAULT_PATH_STYLE[I];B&&t(svgStrokeProps[$],B)}}}else o&&t("stroke",NONE)}var SVGNS="http://www.w3.org/2000/svg",XLINKNS="http://www.w3.org/1999/xlink",XMLNS="http://www.w3.org/2000/xmlns/",XML_NAMESPACE="http://www.w3.org/XML/1998/namespace";function createElement(t){return document.createElementNS(SVGNS,t)}function createVNode(t,r,n,o,s){return{tag:t,attrs:n||{},children:o,text:s,key:r}}function createElementOpen(t,r){var n=[];if(r)for(var o in r){var s=r[o],l=o;s!==!1&&(s!==!0&&s!=null&&(l+='="'+s+'"'),n.push(l))}return"<"+t+" "+n.join(" ")+">"}function createElementClose(t){return"</"+t+">"}function vNodeToString(t,r){r=r||{};var n=r.newline?`
|
|
`:"";function o(s){var l=s.children,d=s.tag,g=s.attrs;return createElementOpen(d,g)+encodeHTML(s.text)+(l?""+n+map$1(l,function(y){return o(y)}).join(n)+n:"")+createElementClose(d)}return o(t)}function getCssString(t,r,n){n=n||{};var o=n.newline?`
|
|
`:"",s=" {"+o,l=o+"}",d=map$1(keys(t),function(y){return y+s+map$1(keys(t[y]),function(b){return b+":"+t[y][b]+";"}).join(o)+l}).join(o),g=map$1(keys(r),function(y){return"@keyframes "+y+s+map$1(keys(r[y]),function(b){return b+s+map$1(keys(r[y][b]),function(C){var x=r[y][b][C];return C==="d"&&(x='path("'+x+'")'),C+":"+x+";"}).join(o)+l}).join(o)+l}).join(o);return!d&&!g?"":["<![CDATA[",d,g,"]]>"].join(o)}function createBrushScope(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function createSVGVNode(t,r,n,o){return createVNode("svg","root",{width:t,height:r,xmlns:SVGNS,"xmlns:xlink":XLINKNS,version:"1.1",baseProfile:"full",viewBox:o?"0 0 "+t+" "+r:!1},n)}var EASING_MAP={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"},transformOriginKey="transform-origin";function buildPathString(t,r,n){var o=extend({},t.shape);extend(o,r),t.buildPath(n,o);var s=new SVGPathRebuilder$1;return s.reset(getPathPrecision(t)),n.rebuildPath(s,1),s.generateStr(),s.getStr()}function setTransformOrigin(t,r){var n=r.originX,o=r.originY;(n||o)&&(t[transformOriginKey]=n+"px "+o+"px")}var ANIMATE_STYLE_MAP={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function addAnimation(t,r){var n=r.zrId+"-ani-"+r.cssAnimIdx++;return r.cssAnims[n]=t,n}function createCompoundPathCSSAnimation(t,r,n){var o=t.shape.paths,s={},l,d;if(each$f(o,function(y){var b=createBrushScope(n.zrId);b.animation=!0,createCSSAnimation(y,{},b,!0);var C=b.cssAnims,x=b.cssNodes,S=keys(C),_=S.length;if(!!_){d=S[_-1];var w=C[d];for(var $ in w){var I=w[$];s[$]=s[$]||{d:""},s[$].d+=I.d||""}for(var B in x){var R=x[B].animation;R.indexOf(d)>=0&&(l=R)}}}),!!l){r.d=!1;var g=addAnimation(s,n);return l.replace(d,g)}}function getEasingFunc(t){return isString(t)?EASING_MAP[t]?"cubic-bezier("+EASING_MAP[t]+")":createCubicEasingFunc(t)?t:"":""}function createCSSAnimation(t,r,n,o){var s=t.animators,l=s.length,d=[];if(t instanceof CompoundPath$1){var g=createCompoundPathCSSAnimation(t,r,n);if(g)d.push(g);else if(!l)return}else if(!l)return;for(var y={},b=0;b<l;b++){var C=s[b],x=[C.getMaxTime()/1e3+"s"],S=getEasingFunc(C.getClip().easing),_=C.getDelay();S?x.push(S):x.push("linear"),_&&x.push(_/1e3+"s"),C.getLoop()&&x.push("infinite");var w=x.join(" ");y[w]=y[w]||[w,[]],y[w][1].push(C)}function $(R){var P=R[1],M=P.length,O={},D={},N={},H="animation-timing-function";function Q(ye,Be,Se){for(var Ee=ye.getTracks(),ie=ye.getMaxTime(),ee=0;ee<Ee.length;ee++){var J=Ee[ee];if(J.needsAnimate()){var ce=J.keyframes,fe=J.propName;if(Se&&(fe=Se(fe)),fe)for(var ne=0;ne<ce.length;ne++){var le=ce[ne],me=Math.round(le.time/ie*100)+"%",Te=getEasingFunc(le.easing),ge=le.rawValue;(isString(ge)||isNumber(ge))&&(Be[me]=Be[me]||{},Be[me][fe]=le.rawValue,Te&&(Be[me][H]=Te))}}}}for(var G=0;G<M;G++){var K=P[G],W=K.targetName;W?W==="shape"&&Q(K,D):!o&&Q(K,O)}for(var j in O){var Y={};copyTransform(Y,t),extend(Y,O[j]);var q=getSRTTransformString(Y),X=O[j][H];N[j]=q?{transform:q}:{},setTransformOrigin(N[j],Y),X&&(N[j][H]=X)}var re,te=!0;for(var j in D){N[j]=N[j]||{};var oe=!re,X=D[j][H];oe&&(re=new PathProxy$1);var ae=re.len();re.reset(),N[j].d=buildPathString(t,D[j],re);var se=re.len();if(!oe&&ae!==se){te=!1;break}X&&(N[j][H]=X)}if(!te)for(var j in N)delete N[j].d;if(!o)for(var G=0;G<M;G++){var K=P[G],W=K.targetName;W==="style"&&Q(K,N,function(Ee){return ANIMATE_STYLE_MAP[Ee]})}for(var ue=keys(N),Ae=!0,pe,G=1;G<ue.length;G++){var he=ue[G-1],Ce=ue[G];if(N[he][transformOriginKey]!==N[Ce][transformOriginKey]){Ae=!1;break}pe=N[he][transformOriginKey]}if(Ae&&pe){for(var j in N)N[j][transformOriginKey]&&delete N[j][transformOriginKey];r[transformOriginKey]=pe}if(filter(ue,function(ye){return keys(N[ye]).length>0}).length){var ve=addAnimation(N,n);return ve+" "+R[0]+" both"}}for(var I in y){var g=$(y[I]);g&&d.push(g)}if(d.length){var B=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+B]={animation:d.join(",")},r.class=B}}var round$1=Math.round;function isImageLike(t){return t&&isString(t.src)}function isCanvasLike(t){return t&&isFunction(t.toDataURL)}function setStyleAttrs(t,r,n,o){mapStyleToAttrs(function(s,l){var d=s==="fill"||s==="stroke";d&&isGradient(l)?setGradient(r,t,s,o):d&&isPattern(l)?setPattern(n,t,s,o):t[s]=l},r,n,!1),setShadow(n,t,o)}function noRotateScale(t){return isAroundZero(t[0]-1)&&isAroundZero(t[1])&&isAroundZero(t[2])&&isAroundZero(t[3]-1)}function noTranslate(t){return isAroundZero(t[4])&&isAroundZero(t[5])}function setTransform(t,r,n){if(r&&!(noTranslate(r)&&noRotateScale(r))){var o=n?10:1e4;t.transform=noRotateScale(r)?"translate("+round$1(r[4]*o)/o+" "+round$1(r[5]*o)/o+")":getMatrixStr(r)}}function convertPolyShape(t,r,n){for(var o=t.points,s=[],l=0;l<o.length;l++)s.push(round$1(o[l][0]*n)/n),s.push(round$1(o[l][1]*n)/n);r.points=s.join(" ")}function validatePolyShape(t){return!t.smooth}function createAttrsConvert(t){var r=map$1(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,o,s){for(var l=0;l<r.length;l++){var d=r[l],g=n[d[0]];g!=null&&(o[d[1]]=round$1(g*s)/s)}}}var builtinShapesDef={circle:[createAttrsConvert(["cx","cy","r"])],polyline:[convertPolyShape,validatePolyShape],polygon:[convertPolyShape,validatePolyShape]};function hasShapeAnimation(t){for(var r=t.animators,n=0;n<r.length;n++)if(r[n].targetName==="shape")return!0;return!1}function brushSVGPath(t,r){var n=t.style,o=t.shape,s=builtinShapesDef[t.type],l={},d=r.animation,g="path",y=t.style.strokePercent,b=r.compress&&getPathPrecision(t)||4;if(s&&!r.willUpdate&&!(s[1]&&!s[1](o))&&!(d&&hasShapeAnimation(t))&&!(y<1)){g=t.type;var C=Math.pow(10,b);s[0](o,l,C)}else{var x=!t.path||t.shapeChanged();t.path||t.createPathProxy();var S=t.path;x&&(S.beginPath(),t.buildPath(S,t.shape),t.pathUpdated());var _=S.getVersion(),w=t,$=w.__svgPathBuilder;(w.__svgPathVersion!==_||!$||y!==w.__svgPathStrokePercent)&&($||($=w.__svgPathBuilder=new SVGPathRebuilder$1),$.reset(b),S.rebuildPath($,y),$.generateStr(),w.__svgPathVersion=_,w.__svgPathStrokePercent=y),l.d=$.getStr()}return setTransform(l,t.transform),setStyleAttrs(l,n,t,r),r.animation&&createCSSAnimation(t,l,r),createVNode(g,t.id+"",l)}function brushSVGImage(t,r){var n=t.style,o=n.image;if(o&&!isString(o)&&(isImageLike(o)?o=o.src:isCanvasLike(o)&&(o=o.toDataURL())),!!o){var s=n.x||0,l=n.y||0,d=n.width,g=n.height,y={href:o,width:d,height:g};return s&&(y.x=s),l&&(y.y=l),setTransform(y,t.transform),setStyleAttrs(y,n,t,r),r.animation&&createCSSAnimation(t,y,r),createVNode("image",t.id+"",y)}}function brushSVGTSpan(t,r){var n=t.style,o=n.text;if(o!=null&&(o+=""),!(!o||isNaN(n.x)||isNaN(n.y))){var s=n.font||DEFAULT_FONT,l=n.x||0,d=adjustTextY$1(n.y||0,getLineHeight(s),n.textBaseline),g=TEXT_ALIGN_TO_ANCHOR[n.textAlign]||n.textAlign,y={"dominant-baseline":"central","text-anchor":g};if(hasSeparateFont(n)){var b="",C=n.fontStyle,x=parseFontSize(n.fontSize);if(!parseFloat(x))return;var S=n.fontFamily||DEFAULT_FONT_FAMILY,_=n.fontWeight;b+="font-size:"+x+";font-family:"+S+";",C&&C!=="normal"&&(b+="font-style:"+C+";"),_&&_!=="normal"&&(b+="font-weight:"+_+";"),y.style=b}else y.style="font: "+s;return o.match(/\s/)&&(y["xml:space"]="preserve"),l&&(y.x=l),d&&(y.y=d),setTransform(y,t.transform),setStyleAttrs(y,n,t,r),r.animation&&createCSSAnimation(t,y,r),createVNode("text",t.id+"",y,void 0,o)}}function brush(t,r){if(t instanceof Path$1)return brushSVGPath(t,r);if(t instanceof ZRImage$1)return brushSVGImage(t,r);if(t instanceof TSpan$1)return brushSVGTSpan(t,r)}function setShadow(t,r,n){var o=t.style;if(hasShadow(o)){var s=getShadowKey(t),l=n.shadowCache,d=l[s];if(!d){var g=t.getGlobalScale(),y=g[0],b=g[1];if(!y||!b)return;var C=o.shadowOffsetX||0,x=o.shadowOffsetY||0,S=o.shadowBlur,_=normalizeColor(o.shadowColor),w=_.opacity,$=_.color,I=S/2/y,B=S/2/b,R=I+" "+B;d=n.zrId+"-s"+n.shadowIdx++,n.defs[d]=createVNode("filter",d,{id:d,x:"-100%",y:"-100%",width:"300%",height:"300%"},[createVNode("feDropShadow","",{dx:C/y,dy:x/b,stdDeviation:R,"flood-color":$,"flood-opacity":w})]),l[s]=d}r.filter=getIdURL(d)}}function setGradient(t,r,n,o){var s=t[n],l,d={gradientUnits:s.global?"userSpaceOnUse":"objectBoundingBox"};if(isLinearGradient(s))l="linearGradient",d.x1=s.x,d.y1=s.y,d.x2=s.x2,d.y2=s.y2;else if(isRadialGradient(s))l="radialGradient",d.cx=retrieve2(s.x,.5),d.cy=retrieve2(s.y,.5),d.r=retrieve2(s.r,.5);else return;for(var g=s.colorStops,y=[],b=0,C=g.length;b<C;++b){var x=round4(g[b].offset)*100+"%",S=g[b].color,_=normalizeColor(S),w=_.color,$=_.opacity,I={offset:x};I["stop-color"]=w,$<1&&(I["stop-opacity"]=$),y.push(createVNode("stop",b+"",I))}var B=createVNode(l,"",d,y),R=vNodeToString(B),P=o.gradientCache,M=P[R];M||(M=o.zrId+"-g"+o.gradientIdx++,P[R]=M,d.id=M,o.defs[M]=createVNode(l,M,d,y)),r[n]=getIdURL(M)}function setPattern(t,r,n,o){var s=t.style[n],l=t.getBoundingRect(),d={},g=s.repeat,y=g==="no-repeat",b=g==="repeat-x",C=g==="repeat-y",x;if(isImagePattern(s)){var S=s.imageWidth,_=s.imageHeight,w=void 0,$=s.image;if(isString($)?w=$:isImageLike($)?w=$.src:isCanvasLike($)&&(w=$.toDataURL()),typeof Image=="undefined"){var I="Image width/height must been given explictly in svg-ssr renderer.";assert(S,I),assert(_,I)}else if(S==null||_==null){var B=function(G,K){if(G){var W=G.elm,j=S||K.width,Y=_||K.height;G.tag==="pattern"&&(b?(Y=1,j/=l.width):C&&(j=1,Y/=l.height)),G.attrs.width=j,G.attrs.height=Y,W&&(W.setAttribute("width",j),W.setAttribute("height",Y))}},R=createOrUpdateImage(w,null,t,function(G){y||B(D,G),B(x,G)});R&&R.width&&R.height&&(S=S||R.width,_=_||R.height)}x=createVNode("image","img",{href:w,width:S,height:_}),d.width=S,d.height=_}else s.svgElement&&(x=clone$4(s.svgElement),d.width=s.svgWidth,d.height=s.svgHeight);if(!!x){var P,M;y?P=M=1:b?(M=1,P=d.width/l.width):C?(P=1,M=d.height/l.height):d.patternUnits="userSpaceOnUse",P!=null&&!isNaN(P)&&(d.width=P),M!=null&&!isNaN(M)&&(d.height=M);var O=getSRTTransformString(s);O&&(d.patternTransform=O);var D=createVNode("pattern","",d,[x]),N=vNodeToString(D),H=o.patternCache,Q=H[N];Q||(Q=o.zrId+"-p"+o.patternIdx++,H[N]=Q,d.id=Q,D=o.defs[Q]=createVNode("pattern",Q,d,[x])),r[n]=getIdURL(Q)}}function setClipPath(t,r,n){var o=n.clipPathCache,s=n.defs,l=o[t.id];if(!l){l=n.zrId+"-c"+n.clipPathIdx++;var d={id:l};o[t.id]=l,s[l]=createVNode("clipPath",l,d,[brushSVGPath(t,n)])}r["clip-path"]=getIdURL(l)}function createTextNode(t){return document.createTextNode(t)}function insertBefore(t,r,n){t.insertBefore(r,n)}function removeChild(t,r){t.removeChild(r)}function appendChild(t,r){t.appendChild(r)}function parentNode(t){return t.parentNode}function nextSibling(t){return t.nextSibling}function setTextContent(t,r){t.textContent=r}var colonChar=58,xChar=120,emptyNode=createVNode("","");function isUndef(t){return t===void 0}function isDef(t){return t!==void 0}function createKeyToOldIdx(t,r,n){for(var o={},s=r;s<=n;++s){var l=t[s].key;l!==void 0&&(o[l]=s)}return o}function sameVnode(t,r){var n=t.key===r.key,o=t.tag===r.tag;return o&&n}function createElm(t){var r,n=t.children,o=t.tag;if(isDef(o)){var s=t.elm=createElement(o);if(updateAttrs(emptyNode,t),isArray$1(n))for(r=0;r<n.length;++r){var l=n[r];l!=null&&appendChild(s,createElm(l))}else isDef(t.text)&&!isObject$3(t.text)&&appendChild(s,createTextNode(t.text))}else t.elm=createTextNode(t.text);return t.elm}function addVnodes(t,r,n,o,s){for(;o<=s;++o){var l=n[o];l!=null&&insertBefore(t,createElm(l),r)}}function removeVnodes(t,r,n,o){for(;n<=o;++n){var s=r[n];if(s!=null)if(isDef(s.tag)){var l=parentNode(s.elm);removeChild(l,s.elm)}else removeChild(t,s.elm)}}function updateAttrs(t,r){var n,o=r.elm,s=t&&t.attrs||{},l=r.attrs||{};if(s!==l){for(n in l){var d=l[n],g=s[n];g!==d&&(d===!0?o.setAttribute(n,""):d===!1?o.removeAttribute(n):n.charCodeAt(0)!==xChar?o.setAttribute(n,d):n==="xmlns:xlink"||n==="xmlns"?o.setAttributeNS(XMLNS,n,d):n.charCodeAt(3)===colonChar?o.setAttributeNS(XML_NAMESPACE,n,d):n.charCodeAt(5)===colonChar?o.setAttributeNS(XLINKNS,n,d):o.setAttribute(n,d))}for(n in s)n in l||o.removeAttribute(n)}}function updateChildren(t,r,n){for(var o=0,s=0,l=r.length-1,d=r[0],g=r[l],y=n.length-1,b=n[0],C=n[y],x,S,_,w;o<=l&&s<=y;)d==null?d=r[++o]:g==null?g=r[--l]:b==null?b=n[++s]:C==null?C=n[--y]:sameVnode(d,b)?(patchVnode(d,b),d=r[++o],b=n[++s]):sameVnode(g,C)?(patchVnode(g,C),g=r[--l],C=n[--y]):sameVnode(d,C)?(patchVnode(d,C),insertBefore(t,d.elm,nextSibling(g.elm)),d=r[++o],C=n[--y]):sameVnode(g,b)?(patchVnode(g,b),insertBefore(t,g.elm,d.elm),g=r[--l],b=n[++s]):(isUndef(x)&&(x=createKeyToOldIdx(r,o,l)),S=x[b.key],isUndef(S)?insertBefore(t,createElm(b),d.elm):(_=r[S],_.tag!==b.tag?insertBefore(t,createElm(b),d.elm):(patchVnode(_,b),r[S]=void 0,insertBefore(t,_.elm,d.elm))),b=n[++s]);(o<=l||s<=y)&&(o>l?(w=n[y+1]==null?null:n[y+1].elm,addVnodes(t,w,n,s,y)):removeVnodes(t,r,o,l))}function patchVnode(t,r){var n=r.elm=t.elm,o=t.children,s=r.children;t!==r&&(updateAttrs(t,r),isUndef(r.text)?isDef(o)&&isDef(s)?o!==s&&updateChildren(n,o,s):isDef(s)?(isDef(t.text)&&setTextContent(n,""),addVnodes(n,null,s,0,s.length-1)):isDef(o)?removeVnodes(n,o,0,o.length-1):isDef(t.text)&&setTextContent(n,""):t.text!==r.text&&(isDef(o)&&removeVnodes(n,o,0,o.length-1),setTextContent(n,r.text)))}function patch(t,r){if(sameVnode(t,r))patchVnode(t,r);else{var n=t.elm,o=parentNode(n);createElm(r),o!==null&&(insertBefore(o,r.elm,nextSibling(n)),removeVnodes(o,[t],0,0))}return r}var svgId=0,SVGPainter=function(){function t(r,n,o){if(this.type="svg",this.refreshHover=createMethodNotSupport(),this.configLayer=createMethodNotSupport(),this.storage=n,this._opts=o=extend({},o),this.root=r,this._id="zr"+svgId++,this._oldVNode=createSVGVNode(o.width,o.height),r&&!o.ssr){var s=this._viewport=document.createElement("div");s.style.cssText="position:relative;overflow:hidden";var l=this._svgDom=this._oldVNode.elm=createElement("svg");updateAttrs(null,this._oldVNode),s.appendChild(l),r.appendChild(s)}this.resize(o.width,o.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var r=this.renderToVNode({willUpdate:!0});r.attrs.style="position:absolute;left:0;top:0;user-select:none",patch(this._oldVNode,r),this._oldVNode=r}},t.prototype.renderOneToVNode=function(r){return brush(r,createBrushScope(this._id))},t.prototype.renderToVNode=function(r){r=r||{};var n=this.storage.getDisplayList(!0),o=this._width,s=this._height,l=createBrushScope(this._id);l.animation=r.animation,l.willUpdate=r.willUpdate,l.compress=r.compress;var d=[],g=this._bgVNode=createBackgroundVNode(o,s,this._backgroundColor,l);g&&d.push(g);var y=r.compress?null:this._mainVNode=createVNode("g","main",{},[]);this._paintList(n,l,y?y.children:d),y&&d.push(y);var b=map$1(keys(l.defs),function(S){return l.defs[S]});if(b.length&&d.push(createVNode("defs","defs",{},b)),r.animation){var C=getCssString(l.cssNodes,l.cssAnims,{newline:!0});if(C){var x=createVNode("style","stl",{},[],C);d.push(x)}}return createSVGVNode(o,s,d,r.useViewBox)},t.prototype.renderToString=function(r){return r=r||{},vNodeToString(this.renderToVNode({animation:retrieve2(r.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:retrieve2(r.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(r){this._backgroundColor=r},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(r,n,o){for(var s=r.length,l=[],d=0,g,y,b=0,C=0;C<s;C++){var x=r[C];if(!x.invisible){var S=x.__clipPaths,_=S&&S.length||0,w=y&&y.length||0,$=void 0;for($=Math.max(_-1,w-1);$>=0&&!(S&&y&&S[$]===y[$]);$--);for(var I=w-1;I>$;I--)d--,g=l[d-1];for(var B=$+1;B<_;B++){var R={};setClipPath(S[B],R,n);var P=createVNode("g","clip-g-"+b++,R,[]);(g?g.children:o).push(P),l[d++]=P,g=P}y=S;var M=brush(x,n);M&&(g?g.children:o).push(M)}}},t.prototype.resize=function(r,n){var o=this._opts,s=this.root,l=this._viewport;if(r!=null&&(o.width=r),n!=null&&(o.height=n),s&&l&&(l.style.display="none",r=getSize$1(s,0,o),n=getSize$1(s,1,o),l.style.display=""),this._width!==r||this._height!==n){if(this._width=r,this._height=n,l){var d=l.style;d.width=r+"px",d.height=n+"px"}if(isPattern(this._backgroundColor))this.refresh();else{var g=this._svgDom;g&&(g.setAttribute("width",r),g.setAttribute("height",n));var y=this._bgVNode&&this._bgVNode.elm;y&&(y.setAttribute("width",r),y.setAttribute("height",n))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(r){var n=this.renderToString(),o="data:image/svg+xml;";return r?(n=encodeBase64(n),n&&o+"base64,"+n):o+"charset=UTF-8,"+encodeURIComponent(n)},t}();function createMethodNotSupport(t){return function(){}}function createBackgroundVNode(t,r,n,o){var s;if(n&&n!=="none")if(s=createVNode("rect","bg",{width:t,height:r,x:"0",y:"0",id:"0"}),isGradient(n))setGradient({fill:n},s.attrs,"fill",o);else if(isPattern(n))setPattern({style:{fill:n},dirty:noop,getBoundingRect:function(){return{width:t,height:r}}},s.attrs,"fill",o);else{var l=normalizeColor(n),d=l.color,g=l.opacity;s.attrs.fill=d,g<1&&(s.attrs["fill-opacity"]=g)}return s}var SVGPainter$1=SVGPainter;function install$S(t){t.registerPainter("svg",SVGPainter$1)}function createDom(t,r,n){var o=platformApi.createCanvas(),s=r.getWidth(),l=r.getHeight(),d=o.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=s+"px",d.height=l+"px",o.setAttribute("data-zr-dom-id",t)),o.width=s*n,o.height=l*n,o}var Layer=function(t){__extends(r,t);function r(n,o,s){var l=t.call(this)||this;l.motionBlur=!1,l.lastFrameAlpha=.7,l.dpr=1,l.virtual=!1,l.config={},l.incremental=!1,l.zlevel=0,l.maxRepaintRectCount=5,l.__dirty=!0,l.__firstTimePaint=!0,l.__used=!1,l.__drawIndex=0,l.__startIndex=0,l.__endIndex=0,l.__prevStartIndex=null,l.__prevEndIndex=null;var d;s=s||devicePixelRatio$1,typeof n=="string"?d=createDom(n,o,s):isObject$3(n)&&(d=n,n=d.id),l.id=n,l.dom=d;var g=d.style;return g&&(disableUserSelect(d),d.onselectstart=function(){return!1},g.padding="0",g.margin="0",g.borderWidth="0"),l.painter=o,l.dpr=s,l}return r.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},r.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},r.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},r.prototype.setUnpainted=function(){this.__firstTimePaint=!0},r.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},r.prototype.createRepaintRects=function(n,o,s,l){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var d=[],g=this.maxRepaintRectCount,y=!1,b=new BoundingRect$1(0,0,0,0);function C(R){if(!(!R.isFinite()||R.isZero()))if(d.length===0){var P=new BoundingRect$1(0,0,0,0);P.copy(R),d.push(P)}else{for(var M=!1,O=1/0,D=0,N=0;N<d.length;++N){var H=d[N];if(H.intersect(R)){var Q=new BoundingRect$1(0,0,0,0);Q.copy(H),Q.union(R),d[N]=Q,M=!0;break}else if(y){b.copy(R),b.union(H);var G=R.width*R.height,K=H.width*H.height,W=b.width*b.height,j=W-G-K;j<O&&(O=j,D=N)}}if(y&&(d[D].union(R),M=!0),!M){var P=new BoundingRect$1(0,0,0,0);P.copy(R),d.push(P)}y||(y=d.length>=g)}}for(var x=this.__startIndex;x<this.__endIndex;++x){var S=n[x];if(S){var _=S.shouldBePainted(s,l,!0,!0),w=S.__isRendered&&(S.__dirty&REDRAW_BIT||!_)?S.getPrevPaintRect():null;w&&C(w);var $=_&&(S.__dirty&REDRAW_BIT||!S.__isRendered)?S.getPaintRect():null;$&&C($)}}for(var x=this.__prevStartIndex;x<this.__prevEndIndex;++x){var S=o[x],_=S.shouldBePainted(s,l,!0,!0);if(S&&(!_||!S.__zr)&&S.__isRendered){var w=S.getPrevPaintRect();w&&C(w)}}var I;do{I=!1;for(var x=0;x<d.length;){if(d[x].isZero()){d.splice(x,1);continue}for(var B=x+1;B<d.length;)d[x].intersect(d[B])?(I=!0,d[x].union(d[B]),d.splice(B,1)):B++;x++}}while(I);return this._paintRects=d,d},r.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},r.prototype.resize=function(n,o){var s=this.dpr,l=this.dom,d=l.style,g=this.domBack;d&&(d.width=n+"px",d.height=o+"px"),l.width=n*s,l.height=o*s,g&&(g.width=n*s,g.height=o*s,s!==1&&this.ctxBack.scale(s,s))},r.prototype.clear=function(n,o,s){var l=this.dom,d=this.ctx,g=l.width,y=l.height;o=o||this.clearColor;var b=this.motionBlur&&!n,C=this.lastFrameAlpha,x=this.dpr,S=this;b&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(l,0,0,g/x,y/x));var _=this.domBack;function w($,I,B,R){if(d.clearRect($,I,B,R),o&&o!=="transparent"){var P=void 0;if(isGradientObject(o)){var M=o.global||o.__width===B&&o.__height===R;P=M&&o.__canvasGradient||getCanvasGradient(d,o,{x:0,y:0,width:B,height:R}),o.__canvasGradient=P,o.__width=B,o.__height=R}else isImagePatternObject(o)&&(o.scaleX=o.scaleX||x,o.scaleY=o.scaleY||x,P=createCanvasPattern(d,o,{dirty:function(){S.setUnpainted(),S.__painter.refresh()}}));d.save(),d.fillStyle=P||o,d.fillRect($,I,B,R),d.restore()}b&&(d.save(),d.globalAlpha=C,d.drawImage(_,$,I,B,R),d.restore())}!s||b?w(0,0,g,y):s.length&&each$f(s,function($){w($.x*x,$.y*x,$.width*x,$.height*x)})},r}(Eventful$1),Layer$1=Layer,HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function createRoot(t,r){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+r+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var CanvasPainter=function(){function t(r,n,o,s){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var l=!r.nodeName||r.nodeName.toUpperCase()==="CANVAS";this._opts=o=extend({},o||{}),this.dpr=o.devicePixelRatio||devicePixelRatio$1,this._singleCanvas=l,this.root=r;var d=r.style;d&&(disableUserSelect(r),r.innerHTML=""),this.storage=n;var g=this._zlevelList;this._prevDisplayList=[];var y=this._layers;if(l){var C=r,x=C.width,S=C.height;o.width!=null&&(x=o.width),o.height!=null&&(S=o.height),this.dpr=o.devicePixelRatio||1,C.width=x*this.dpr,C.height=S*this.dpr,this._width=x,this._height=S;var _=new Layer$1(C,this,this.dpr);_.__builtin__=!0,_.initContext(),y[CANVAS_ZLEVEL]=_,_.zlevel=CANVAS_ZLEVEL,g.push(CANVAS_ZLEVEL),this._domRoot=r}else{this._width=getSize$1(r,0,o),this._height=getSize$1(r,1,o);var b=this._domRoot=createRoot(this._width,this._height);r.appendChild(b)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var r=this.getViewportRoot();if(r)return{offsetLeft:r.offsetLeft||0,offsetTop:r.offsetTop||0}},t.prototype.refresh=function(r){var n=this.storage.getDisplayList(!0),o=this._prevDisplayList,s=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,o,r,this._redrawId);for(var l=0;l<s.length;l++){var d=s[l],g=this._layers[d];if(!g.__builtin__&&g.refresh){var y=l===0?this._backgroundColor:null;g.refresh(y)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(r){var n=r.length,o=this._hoverlayer;if(o&&o.clear(),!!n){for(var s={inHover:!0,viewWidth:this._width,viewHeight:this._height},l,d=0;d<n;d++){var g=r[d];g.__inHover&&(o||(o=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),l||(l=o.ctx,l.save()),brush$1(l,g,s,d===n-1))}l&&l.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},t.prototype.paintOne=function(r,n){brushSingle(r,n)},t.prototype._paintList=function(r,n,o,s){if(this._redrawId===s){o=o||!1,this._updateLayerStatus(r);var l=this._doPaintList(r,n,o),d=l.finished,g=l.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),g&&this._paintHoverList(r),d)this.eachLayer(function(b){b.afterBrush&&b.afterBrush()});else{var y=this;requestAnimationFrame$2(function(){y._paintList(r,n,o,s)})}}},t.prototype._compositeManually=function(){var r=this.getLayer(CANVAS_ZLEVEL).ctx,n=this._domRoot.width,o=this._domRoot.height;r.clearRect(0,0,n,o),this.eachBuiltinLayer(function(s){s.virtual&&r.drawImage(s.dom,0,0,n,o)})},t.prototype._doPaintList=function(r,n,o){for(var s=this,l=[],d=this._opts.useDirtyRect,g=0;g<this._zlevelList.length;g++){var y=this._zlevelList[g],b=this._layers[y];b.__builtin__&&b!==this._hoverlayer&&(b.__dirty||o)&&l.push(b)}for(var C=!0,x=!1,S=function($){var I=l[$],B=I.ctx,R=d&&I.createRepaintRects(r,n,_._width,_._height),P=o?I.__startIndex:I.__drawIndex,M=!o&&I.incremental&&Date.now,O=M&&Date.now(),D=I.zlevel===_._zlevelList[0]?_._backgroundColor:null;if(I.__startIndex===I.__endIndex)I.clear(!1,D,R);else if(P===I.__startIndex){var N=r[P];(!N.incremental||!N.notClear||o)&&I.clear(!1,D,R)}P===-1&&(console.error("For some unknown reason. drawIndex is -1"),P=I.__startIndex);var H,Q=function(j){var Y={inHover:!1,allClipped:!1,prevEl:null,viewWidth:s._width,viewHeight:s._height};for(H=P;H<I.__endIndex;H++){var q=r[H];if(q.__inHover&&(x=!0),s._doPaintEl(q,I,d,j,Y,H===I.__endIndex-1),M){var X=Date.now()-O;if(X>15)break}}Y.prevElClipPaths&&B.restore()};if(R)if(R.length===0)H=I.__endIndex;else for(var G=_.dpr,K=0;K<R.length;++K){var W=R[K];B.save(),B.beginPath(),B.rect(W.x*G,W.y*G,W.width*G,W.height*G),B.clip(),Q(W),B.restore()}else B.save(),Q(),B.restore();I.__drawIndex=H,I.__drawIndex<I.__endIndex&&(C=!1)},_=this,w=0;w<l.length;w++)S(w);return env$1.wxa&&each$f(this._layers,function($){$&&$.ctx&&$.ctx.draw&&$.ctx.draw()}),{finished:C,needsRefreshHover:x}},t.prototype._doPaintEl=function(r,n,o,s,l,d){var g=n.ctx;if(o){var y=r.getPaintRect();(!s||y&&y.intersect(s))&&(brush$1(g,r,l,d),r.setPrevPaintRect(y))}else brush$1(g,r,l,d)},t.prototype.getLayer=function(r,n){this._singleCanvas&&!this._needsManuallyCompositing&&(r=CANVAS_ZLEVEL);var o=this._layers[r];return o||(o=new Layer$1("zr_"+r,this,this.dpr),o.zlevel=r,o.__builtin__=!0,this._layerConfig[r]?merge(o,this._layerConfig[r],!0):this._layerConfig[r-EL_AFTER_INCREMENTAL_INC]&&merge(o,this._layerConfig[r-EL_AFTER_INCREMENTAL_INC],!0),n&&(o.virtual=n),this.insertLayer(r,o),o.initContext()),o},t.prototype.insertLayer=function(r,n){var o=this._layers,s=this._zlevelList,l=s.length,d=this._domRoot,g=null,y=-1;if(!o[r]&&!!isLayerValid(n)){if(l>0&&r>s[0]){for(y=0;y<l-1&&!(s[y]<r&&s[y+1]>r);y++);g=o[s[y]]}if(s.splice(y+1,0,r),o[r]=n,!n.virtual)if(g){var b=g.dom;b.nextSibling?d.insertBefore(n.dom,b.nextSibling):d.appendChild(n.dom)}else d.firstChild?d.insertBefore(n.dom,d.firstChild):d.appendChild(n.dom);n.__painter=this}},t.prototype.eachLayer=function(r,n){for(var o=this._zlevelList,s=0;s<o.length;s++){var l=o[s];r.call(n,this._layers[l],l)}},t.prototype.eachBuiltinLayer=function(r,n){for(var o=this._zlevelList,s=0;s<o.length;s++){var l=o[s],d=this._layers[l];d.__builtin__&&r.call(n,d,l)}},t.prototype.eachOtherLayer=function(r,n){for(var o=this._zlevelList,s=0;s<o.length;s++){var l=o[s],d=this._layers[l];d.__builtin__||r.call(n,d,l)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(r){this.eachBuiltinLayer(function(x,S){x.__dirty=x.__used=!1});function n(x){l&&(l.__endIndex!==x&&(l.__dirty=!0),l.__endIndex=x)}if(this._singleCanvas)for(var o=1;o<r.length;o++){var s=r[o];if(s.zlevel!==r[o-1].zlevel||s.incremental){this._needsManuallyCompositing=!0;break}}var l=null,d=0,g,y;for(y=0;y<r.length;y++){var s=r[y],b=s.zlevel,C=void 0;g!==b&&(g=b,d=0),s.incremental?(C=this.getLayer(b+INCREMENTAL_INC,this._needsManuallyCompositing),C.incremental=!0,d=1):C=this.getLayer(b+(d>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),C.__builtin__||logError("ZLevel "+b+" has been used by unkown layer "+C.id),C!==l&&(C.__used=!0,C.__startIndex!==y&&(C.__dirty=!0),C.__startIndex=y,C.incremental?C.__drawIndex=-1:C.__drawIndex=y,n(y),l=C),s.__dirty&REDRAW_BIT&&!s.__inHover&&(C.__dirty=!0,C.incremental&&C.__drawIndex<0&&(C.__drawIndex=y))}n(y),this.eachBuiltinLayer(function(x,S){!x.__used&&x.getElementCount()>0&&(x.__dirty=!0,x.__startIndex=x.__endIndex=x.__drawIndex=0),x.__dirty&&x.__drawIndex<0&&(x.__drawIndex=x.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(r){r.clear()},t.prototype.setBackgroundColor=function(r){this._backgroundColor=r,each$f(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(r,n){if(n){var o=this._layerConfig;o[r]?merge(o[r],n,!0):o[r]=n;for(var s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s];if(l===r||l===r+EL_AFTER_INCREMENTAL_INC){var d=this._layers[l];merge(d,o[r],!0)}}}},t.prototype.delLayer=function(r){var n=this._layers,o=this._zlevelList,s=n[r];!s||(s.dom.parentNode.removeChild(s.dom),delete n[r],o.splice(indexOf(o,r),1))},t.prototype.resize=function(r,n){if(this._domRoot.style){var o=this._domRoot;o.style.display="none";var s=this._opts,l=this.root;if(r!=null&&(s.width=r),n!=null&&(s.height=n),r=getSize$1(l,0,s),n=getSize$1(l,1,s),o.style.display="",this._width!==r||n!==this._height){o.style.width=r+"px",o.style.height=n+"px";for(var d in this._layers)this._layers.hasOwnProperty(d)&&this._layers[d].resize(r,n);this.refresh(!0)}this._width=r,this._height=n}else{if(r==null||n==null)return;this._width=r,this._height=n,this.getLayer(CANVAS_ZLEVEL).resize(r,n)}return this},t.prototype.clearLayer=function(r){var n=this._layers[r];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(r){if(r=r||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var n=new Layer$1("image",this,r.pixelRatio||this.dpr);n.initContext(),n.clear(!1,r.backgroundColor||this._backgroundColor);var o=n.ctx;if(r.pixelRatio<=this.dpr){this.refresh();var s=n.dom.width,l=n.dom.height;this.eachLayer(function(x){x.__builtin__?o.drawImage(x.dom,0,0,s,l):x.renderToCanvas&&(o.save(),x.renderToCanvas(o),o.restore())})}else for(var d={inHover:!1,viewWidth:this._width,viewHeight:this._height},g=this.storage.getDisplayList(!0),y=0,b=g.length;y<b;y++){var C=g[y];brush$1(o,C,d,y===b-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),CanvasPainter$1=CanvasPainter;function install$R(t){t.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.hasSymbolVisual=!0,n}return r.prototype.getInitialData=function(n){return createSeriesData(null,this,{useEncodeDefaulter:!0})},r.prototype.getLegendIcon=function(n){var o=new Group$4,s=createSymbol$1("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);o.add(s),s.setStyle(n.lineStyle);var l=this.getData().getVisual("symbol"),d=this.getData().getVisual("symbolRotate"),g=l==="none"?"circle":l,y=n.itemHeight*.8,b=createSymbol$1(g,(n.itemWidth-y)/2,(n.itemHeight-y)/2,y,y,n.itemStyle.fill);o.add(b),b.setStyle(n.itemStyle);var C=n.iconRotate==="inherit"?d:n.iconRotate||0;return b.rotation=C*Math.PI/180,b.setOrigin([n.itemWidth/2,n.itemHeight/2]),g.indexOf("empty")>-1&&(b.style.stroke=b.style.fill,b.style.fill="#fff",b.style.lineWidth=2),o},r.type="series.line",r.dependencies=["grid","polar"],r.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},r}(SeriesModel$1),LineSeries=LineSeriesModel;function getDefaultLabel(t,r){var n=t.mapDimensionsAll("defaultedLabel"),o=n.length;if(o===1){var s=retrieveRawValue(t,r,n[0]);return s!=null?s+"":null}else if(o){for(var l=[],d=0;d<n.length;d++)l.push(retrieveRawValue(t,r,n[d]));return l.join(" ")}}function getDefaultInterpolatedLabel(t,r){var n=t.mapDimensionsAll("defaultedLabel");if(!isArray$1(r))return r+"";for(var o=[],s=0;s<n.length;s++){var l=t.getDimensionIndex(n[s]);l>=0&&o.push(r[l])}return o.join(" ")}var Symbol$1=function(t){__extends$1(r,t);function r(n,o,s,l){var d=t.call(this)||this;return d.updateData(n,o,s,l),d}return r.prototype._createSymbol=function(n,o,s,l,d){this.removeAll();var g=createSymbol$1(n,-1,-1,2,2,null,d);g.attr({z2:100,culling:!0,scaleX:l[0]/2,scaleY:l[1]/2}),g.drift=driftSymbol,this._symbolType=n,this.add(g)},r.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},r.prototype.getSymbolType=function(){return this._symbolType},r.prototype.getSymbolPath=function(){return this.childAt(0)},r.prototype.highlight=function(){enterEmphasis(this.childAt(0))},r.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},r.prototype.setZ=function(n,o){var s=this.childAt(0);s.zlevel=n,s.z=o},r.prototype.setDraggable=function(n,o){var s=this.childAt(0);s.draggable=n,s.cursor=!o&&n?"move":s.cursor},r.prototype.updateData=function(n,o,s,l){this.silent=!1;var d=n.getItemVisual(o,"symbol")||"circle",g=n.hostModel,y=r.getSymbolSize(n,o),b=d!==this._symbolType,C=l&&l.disableAnimation;if(b){var x=n.getItemVisual(o,"symbolKeepAspect");this._createSymbol(d,n,o,y,x)}else{var S=this.childAt(0);S.silent=!1;var _={scaleX:y[0]/2,scaleY:y[1]/2};C?S.attr(_):updateProps$1(S,_,g,o),saveOldStyle(S)}if(this._updateCommon(n,o,y,s,l),b){var S=this.childAt(0);if(!C){var _={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:S.style.opacity}};S.scaleX=S.scaleY=0,S.style.opacity=0,initProps(S,_,g,o)}}C&&this.childAt(0).stopAnimation("leave")},r.prototype._updateCommon=function(n,o,s,l,d){var g=this.childAt(0),y=n.hostModel,b,C,x,S,_,w,$,I,B;if(l&&(b=l.emphasisItemStyle,C=l.blurItemStyle,x=l.selectItemStyle,S=l.focus,_=l.blurScope,$=l.labelStatesModels,I=l.hoverScale,B=l.cursorStyle,w=l.emphasisDisabled),!l||n.hasItemOption){var R=l&&l.itemModel?l.itemModel:n.getItemModel(o),P=R.getModel("emphasis");b=P.getModel("itemStyle").getItemStyle(),x=R.getModel(["select","itemStyle"]).getItemStyle(),C=R.getModel(["blur","itemStyle"]).getItemStyle(),S=P.get("focus"),_=P.get("blurScope"),w=P.get("disabled"),$=getLabelStatesModels(R),I=P.getShallow("scale"),B=R.getShallow("cursor")}var M=n.getItemVisual(o,"symbolRotate");g.attr("rotation",(M||0)*Math.PI/180||0);var O=normalizeSymbolOffset(n.getItemVisual(o,"symbolOffset"),s);O&&(g.x=O[0],g.y=O[1]),B&&g.attr("cursor",B);var D=n.getItemVisual(o,"style"),N=D.fill;if(g instanceof ZRImage$1){var H=g.style;g.useStyle(extend({image:H.image,x:H.x,y:H.y,width:H.width,height:H.height},D))}else g.__isEmptyBrush?g.useStyle(extend({},D)):g.useStyle(D),g.style.decal=null,g.setColor(N,d&&d.symbolInnerColor),g.style.strokeNoScale=!0;var Q=n.getItemVisual(o,"liftZ"),G=this._z2;Q!=null?G==null&&(this._z2=g.z2,g.z2+=Q):G!=null&&(g.z2=G,this._z2=null);var K=d&&d.useNameLabel;setLabelStyle(g,$,{labelFetcher:y,labelDataIndex:o,defaultText:W,inheritColor:N,defaultOpacity:D.opacity});function W(q){return K?n.getName(q):getDefaultLabel(n,q)}this._sizeX=s[0]/2,this._sizeY=s[1]/2;var j=g.ensureState("emphasis");j.style=b,g.ensureState("select").style=x,g.ensureState("blur").style=C;var Y=I==null||I===!0?Math.max(1.1,3/this._sizeY):isFinite(I)&&I>0?+I:1;j.scaleX=this._sizeX*Y,j.scaleY=this._sizeY*Y,this.setSymbolScale(1),toggleHoverEmphasis(this,S,_,w)},r.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},r.prototype.fadeOut=function(n,o,s){var l=this.childAt(0),d=getECData(this).dataIndex,g=s&&s.animation;if(this.silent=l.silent=!0,s&&s.fadeLabel){var y=l.getTextContent();y&&removeElement(y,{style:{opacity:0}},o,{dataIndex:d,removeOpt:g,cb:function(){l.removeTextContent()}})}else l.removeTextContent();removeElement(l,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:d,cb:n,removeOpt:g})},r.getSymbolSize=function(n,o){return normalizeSymbolSize(n.getItemVisual(o,"symbolSize"))},r}(Group$4);function driftSymbol(t,r){this.parent.drift(t,r)}var SymbolClz=Symbol$1;function symbolNeedsDraw$1(t,r,n,o){return r&&!isNaN(r[0])&&!isNaN(r[1])&&!(o.isIgnore&&o.isIgnore(n))&&!(o.clipShape&&!o.clipShape.contain(r[0],r[1]))&&t.getItemVisual(n,"symbol")!=="none"}function normalizeUpdateOpt(t){return t!=null&&!isObject$3(t)&&(t={isIgnore:t}),t||{}}function makeSeriesScope$2(t){var r=t.hostModel,n=r.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:r.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:r.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:getLabelStatesModels(r),cursorStyle:r.get("cursor")}}var SymbolDraw=function(){function t(r){this.group=new Group$4,this._SymbolCtor=r||SymbolClz}return t.prototype.updateData=function(r,n){this._progressiveEls=null,n=normalizeUpdateOpt(n);var o=this.group,s=r.hostModel,l=this._data,d=this._SymbolCtor,g=n.disableAnimation,y=makeSeriesScope$2(r),b={disableAnimation:g},C=n.getSymbolPoint||function(x){return r.getItemLayout(x)};l||o.removeAll(),r.diff(l).add(function(x){var S=C(x);if(symbolNeedsDraw$1(r,S,x,n)){var _=new d(r,x,y,b);_.setPosition(S),r.setItemGraphicEl(x,_),o.add(_)}}).update(function(x,S){var _=l.getItemGraphicEl(S),w=C(x);if(!symbolNeedsDraw$1(r,w,x,n)){o.remove(_);return}var $=r.getItemVisual(x,"symbol")||"circle",I=_&&_.getSymbolType&&_.getSymbolType();if(!_||I&&I!==$)o.remove(_),_=new d(r,x,y,b),_.setPosition(w);else{_.updateData(r,x,y,b);var B={x:w[0],y:w[1]};g?_.attr(B):updateProps$1(_,B,s)}o.add(_),r.setItemGraphicEl(x,_)}).remove(function(x){var S=l.getItemGraphicEl(x);S&&S.fadeOut(function(){o.remove(S)},s)}).execute(),this._getSymbolPoint=C,this._data=r},t.prototype.updateLayout=function(){var r=this,n=this._data;n&&n.eachItemGraphicEl(function(o,s){var l=r._getSymbolPoint(s);o.setPosition(l),o.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(r){this._seriesScope=makeSeriesScope$2(r),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(r,n,o){this._progressiveEls=[],o=normalizeUpdateOpt(o);function s(y){y.isGroup||(y.incremental=!0,y.ensureState("emphasis").hoverLayer=!0)}for(var l=r.start;l<r.end;l++){var d=n.getItemLayout(l);if(symbolNeedsDraw$1(n,d,l,o)){var g=new this._SymbolCtor(n,l,this._seriesScope);g.traverse(s),g.setPosition(d),this.group.add(g),n.setItemGraphicEl(l,g),this._progressiveEls.push(g)}}},t.prototype.eachRendered=function(r){traverseElements(this._progressiveEls||this.group,r)},t.prototype.remove=function(r){var n=this.group,o=this._data;o&&r?o.eachItemGraphicEl(function(s){s.fadeOut(function(){n.remove(s)},o.hostModel)}):n.removeAll()},t}(),SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo(t,r,n){var o=t.getBaseAxis(),s=t.getOtherAxis(o),l=getValueStart(s,n),d=o.dim,g=s.dim,y=r.mapDimension(g),b=r.mapDimension(d),C=g==="x"||g==="radius"?1:0,x=map$1(t.dimensions,function(w){return r.mapDimension(w)}),S=!1,_=r.getCalculationInfo("stackResultDimension");return isDimensionStacked(r,x[0])&&(S=!0,x[0]=_),isDimensionStacked(r,x[1])&&(S=!0,x[1]=_),{dataDimsForPoint:x,valueStart:l,valueAxisDim:g,baseAxisDim:d,stacked:!!S,valueDim:y,baseDim:b,baseDataOffset:C,stackedOverDimension:r.getCalculationInfo("stackedOverDimension")}}function getValueStart(t,r){var n=0,o=t.scale.getExtent();return r==="start"?n=o[0]:r==="end"?n=o[1]:isNumber(r)&&!isNaN(r)?n=r:o[0]>0?n=o[0]:o[1]<0&&(n=o[1]),n}function getStackedOnPoint(t,r,n,o){var s=NaN;t.stacked&&(s=n.get(n.getCalculationInfo("stackedOverDimension"),o)),isNaN(s)&&(s=t.valueStart);var l=t.baseDataOffset,d=[];return d[l]=n.get(t.baseDim,o),d[1-l]=s,r.dataToPoint(d)}function diffData(t,r){var n=[];return r.diff(t).add(function(o){n.push({cmd:"+",idx:o})}).update(function(o,s){n.push({cmd:"=",idx:s,idx1:o})}).remove(function(o){n.push({cmd:"-",idx:o})}).execute(),n}function lineAnimationDiff(t,r,n,o,s,l,d,g){for(var y=diffData(t,r),b=[],C=[],x=[],S=[],_=[],w=[],$=[],I=prepareDataCoordInfo(s,r,d),B=t.getLayout("points")||[],R=r.getLayout("points")||[],P=0;P<y.length;P++){var M=y[P],O=!0,D=void 0,N=void 0;switch(M.cmd){case"=":D=M.idx*2,N=M.idx1*2;var H=B[D],Q=B[D+1],G=R[N],K=R[N+1];(isNaN(H)||isNaN(Q))&&(H=G,Q=K),b.push(H,Q),C.push(G,K),x.push(n[D],n[D+1]),S.push(o[N],o[N+1]),$.push(r.getRawIndex(M.idx1));break;case"+":var W=M.idx,j=I.dataDimsForPoint,Y=s.dataToPoint([r.get(j[0],W),r.get(j[1],W)]);N=W*2,b.push(Y[0],Y[1]),C.push(R[N],R[N+1]);var q=getStackedOnPoint(I,s,r,W);x.push(q[0],q[1]),S.push(o[N],o[N+1]),$.push(r.getRawIndex(W));break;case"-":O=!1}O&&(_.push(M),w.push(w.length))}w.sort(function(he,Ce){return $[he]-$[Ce]});for(var X=b.length,re=createFloat32Array(X),te=createFloat32Array(X),oe=createFloat32Array(X),ae=createFloat32Array(X),se=[],P=0;P<w.length;P++){var ue=w[P],Ae=P*2,pe=ue*2;re[Ae]=b[pe],re[Ae+1]=b[pe+1],te[Ae]=C[pe],te[Ae+1]=C[pe+1],oe[Ae]=x[pe],oe[Ae+1]=x[pe+1],ae[Ae]=S[pe],ae[Ae+1]=S[pe+1],se[P]=_[ue]}return{current:re,next:te,stackedOnCurrent:oe,stackedOnNext:ae,status:se}}var mathMin$5=Math.min,mathMax$5=Math.max;function isPointNull$1(t,r){return isNaN(t)||isNaN(r)}function drawSegment(t,r,n,o,s,l,d,g,y){for(var b,C,x,S,_,w,$=n,I=0;I<o;I++){var B=r[$*2],R=r[$*2+1];if($>=s||$<0)break;if(isPointNull$1(B,R)){if(y){$+=l;continue}break}if($===n)t[l>0?"moveTo":"lineTo"](B,R),x=B,S=R;else{var P=B-b,M=R-C;if(P*P+M*M<.5){$+=l;continue}if(d>0){for(var O=$+l,D=r[O*2],N=r[O*2+1];D===B&&N===R&&I<o;)I++,O+=l,$+=l,D=r[O*2],N=r[O*2+1],B=r[$*2],R=r[$*2+1],P=B-b,M=R-C;var H=I+1;if(y)for(;isPointNull$1(D,N)&&H<o;)H++,O+=l,D=r[O*2],N=r[O*2+1];var Q=.5,G=0,K=0,W=void 0,j=void 0;if(H>=o||isPointNull$1(D,N))_=B,w=R;else{G=D-b,K=N-C;var Y=B-b,q=D-B,X=R-C,re=N-R,te=void 0,oe=void 0;if(g==="x"){te=Math.abs(Y),oe=Math.abs(q);var ae=G>0?1:-1;_=B-ae*te*d,w=R,W=B+ae*oe*d,j=R}else if(g==="y"){te=Math.abs(X),oe=Math.abs(re);var se=K>0?1:-1;_=B,w=R-se*te*d,W=B,j=R+se*oe*d}else te=Math.sqrt(Y*Y+X*X),oe=Math.sqrt(q*q+re*re),Q=oe/(oe+te),_=B-G*d*(1-Q),w=R-K*d*(1-Q),W=B+G*d*Q,j=R+K*d*Q,W=mathMin$5(W,mathMax$5(D,B)),j=mathMin$5(j,mathMax$5(N,R)),W=mathMax$5(W,mathMin$5(D,B)),j=mathMax$5(j,mathMin$5(N,R)),G=W-B,K=j-R,_=B-G*te/oe,w=R-K*te/oe,_=mathMin$5(_,mathMax$5(b,B)),w=mathMin$5(w,mathMax$5(C,R)),_=mathMax$5(_,mathMin$5(b,B)),w=mathMax$5(w,mathMin$5(C,R)),G=B-_,K=R-w,W=B+G*oe/te,j=R+K*oe/te}t.bezierCurveTo(x,S,_,w,B,R),x=W,S=j}else t.lineTo(B,R)}b=B,C=R,$+=l}return I}var ECPolylineShape=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ECPolyline=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="ec-polyline",o}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ECPolylineShape},r.prototype.buildPath=function(n,o){var s=o.points,l=0,d=s.length/2;if(o.connectNulls){for(;d>0&&isPointNull$1(s[d*2-2],s[d*2-1]);d--);for(;l<d&&isPointNull$1(s[l*2],s[l*2+1]);l++);}for(;l<d;)l+=drawSegment(n,s,l,d,d,1,o.smooth,o.smoothMonotone,o.connectNulls)+1},r.prototype.getPointOn=function(n,o){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var s=this.path,l=s.data,d=PathProxy$1.CMD,g,y,b=o==="x",C=[],x=0;x<l.length;){var S=l[x++],_=void 0,w=void 0,$=void 0,I=void 0,B=void 0,R=void 0,P=void 0;switch(S){case d.M:g=l[x++],y=l[x++];break;case d.L:if(_=l[x++],w=l[x++],P=b?(n-g)/(_-g):(n-y)/(w-y),P<=1&&P>=0){var M=b?(w-y)*P+y:(_-g)*P+g;return b?[n,M]:[M,n]}g=_,y=w;break;case d.C:_=l[x++],w=l[x++],$=l[x++],I=l[x++],B=l[x++],R=l[x++];var O=b?cubicRootAt(g,_,$,B,n,C):cubicRootAt(y,w,I,R,n,C);if(O>0)for(var D=0;D<O;D++){var N=C[D];if(N<=1&&N>=0){var M=b?cubicAt(y,w,I,R,N):cubicAt(g,_,$,B,N);return b?[n,M]:[M,n]}}g=B,y=R;break}}},r}(Path$1),ECPolygonShape=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(ECPolylineShape),ECPolygon=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="ec-polygon",o}return r.prototype.getDefaultShape=function(){return new ECPolygonShape},r.prototype.buildPath=function(n,o){var s=o.points,l=o.stackedOnPoints,d=0,g=s.length/2,y=o.smoothMonotone;if(o.connectNulls){for(;g>0&&isPointNull$1(s[g*2-2],s[g*2-1]);g--);for(;d<g&&isPointNull$1(s[d*2],s[d*2+1]);d++);}for(;d<g;){var b=drawSegment(n,s,d,g,g,1,o.smooth,y,o.connectNulls);drawSegment(n,l,d+b-1,b,g,-1,o.stackedOnSmooth,y,o.connectNulls),d+=b+1,n.closePath()}},r}(Path$1);function createGridClipPath(t,r,n,o,s){var l=t.getArea(),d=l.x,g=l.y,y=l.width,b=l.height,C=n.get(["lineStyle","width"])||2;d-=C/2,g-=C/2,y+=C,b+=C,d=Math.floor(d),y=Math.round(y);var x=new Rect$3({shape:{x:d,y:g,width:y,height:b}});if(r){var S=t.getBaseAxis(),_=S.isHorizontal(),w=S.inverse;_?(w&&(x.shape.x+=y),x.shape.width=0):(w||(x.shape.y+=b),x.shape.height=0);var $=isFunction(s)?function(I){s(I,x)}:null;initProps(x,{shape:{width:y,height:b,x:d,y:g}},n,null,o,$)}return x}function createPolarClipPath(t,r,n){var o=t.getArea(),s=round$3(o.r0,1),l=round$3(o.r,1),d=new Sector$1({shape:{cx:round$3(t.cx,1),cy:round$3(t.cy,1),r0:s,r:l,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}});if(r){var g=t.getBaseAxis().dim==="angle";g?d.shape.endAngle=o.startAngle:d.shape.r=s,initProps(d,{shape:{endAngle:o.endAngle,r:l}},n)}return d}function createClipPath(t,r,n,o,s){if(t){if(t.type==="polar")return createPolarClipPath(t,r,n);if(t.type==="cartesian2d")return createGridClipPath(t,r,n,o,s)}else return null;return null}function isCoordinateSystemType(t,r){return t.type===r}function isPointsSame(t,r){if(t.length===r.length){for(var n=0;n<t.length;n++)if(t[n]!==r[n])return;return!0}}function bboxFromPoints(t){for(var r=1/0,n=1/0,o=-1/0,s=-1/0,l=0;l<t.length;){var d=t[l++],g=t[l++];isNaN(d)||(r=Math.min(d,r),o=Math.max(d,o)),isNaN(g)||(n=Math.min(g,n),s=Math.max(g,s))}return[[r,n],[o,s]]}function getBoundingDiff(t,r){var n=bboxFromPoints(t),o=n[0],s=n[1],l=bboxFromPoints(r),d=l[0],g=l[1];return Math.max(Math.abs(o[0]-d[0]),Math.abs(o[1]-d[1]),Math.abs(s[0]-g[0]),Math.abs(s[1]-g[1]))}function getSmooth(t){return isNumber(t)?t:t?.5:0}function getStackedOnPoints(t,r,n){if(!n.valueDim)return[];for(var o=r.count(),s=createFloat32Array(o*2),l=0;l<o;l++){var d=getStackedOnPoint(n,t,r,l);s[l*2]=d[0],s[l*2+1]=d[1]}return s}function turnPointsIntoStep(t,r,n,o){var s=r.getBaseAxis(),l=s.dim==="x"||s.dim==="radius"?0:1,d=[],g=0,y=[],b=[],C=[],x=[];if(o){for(g=0;g<t.length;g+=2)!isNaN(t[g])&&!isNaN(t[g+1])&&x.push(t[g],t[g+1]);t=x}for(g=0;g<t.length-2;g+=2)switch(C[0]=t[g+2],C[1]=t[g+3],b[0]=t[g],b[1]=t[g+1],d.push(b[0],b[1]),n){case"end":y[l]=C[l],y[1-l]=b[1-l],d.push(y[0],y[1]);break;case"middle":var S=(b[l]+C[l])/2,_=[];y[l]=_[l]=S,y[1-l]=b[1-l],_[1-l]=C[1-l],d.push(y[0],y[1]),d.push(_[0],_[1]);break;default:y[l]=b[l],y[1-l]=C[1-l],d.push(y[0],y[1])}return d.push(t[g++],t[g++]),d}function clipColorStops(t,r){var n=[],o=t.length,s,l;function d(C,x,S){var _=C.coord,w=(S-_)/(x.coord-_),$=lerp(w,[C.color,x.color]);return{coord:S,color:$}}for(var g=0;g<o;g++){var y=t[g],b=y.coord;if(b<0)s=y;else if(b>r){l?n.push(d(l,y,r)):s&&n.push(d(s,y,0),d(s,y,r));break}else s&&(n.push(d(s,y,0)),s=null),n.push(y),l=y}return n}function getVisualGradient(t,r,n){var o=t.getVisual("visualMeta");if(!(!o||!o.length||!t.count())&&r.type==="cartesian2d"){for(var s,l,d=o.length-1;d>=0;d--){var g=t.getDimensionInfo(o[d].dimension);if(s=g&&g.coordDim,s==="x"||s==="y"){l=o[d];break}}if(!!l){var y=r.getAxis(s),b=map$1(l.stops,function(P){return{coord:y.toGlobalCoord(y.dataToCoord(P.value)),color:P.color}}),C=b.length,x=l.outerColors.slice();C&&b[0].coord>b[C-1].coord&&(b.reverse(),x.reverse());var S=clipColorStops(b,s==="x"?n.getWidth():n.getHeight()),_=S.length;if(!_&&C)return b[0].coord<0?x[1]?x[1]:b[C-1].color:x[0]?x[0]:b[0].color;var w=10,$=S[0].coord-w,I=S[_-1].coord+w,B=I-$;if(B<.001)return"transparent";each$f(S,function(P){P.offset=(P.coord-$)/B}),S.push({offset:_?S[_-1].offset:.5,color:x[1]||"transparent"}),S.unshift({offset:_?S[0].offset:.5,color:x[0]||"transparent"});var R=new LinearGradient$1(0,0,0,0,S,!0);return R[s]=$,R[s+"2"]=I,R}}}function getIsIgnoreFunc(t,r,n){var o=t.get("showAllSymbol"),s=o==="auto";if(!(o&&!s)){var l=n.getAxesByScale("ordinal")[0];if(!!l&&!(s&&canShowAllSymbolForCategory(l,r))){var d=r.mapDimension(l.dim),g={};return each$f(l.getViewLabels(),function(y){var b=l.scale.getRawOrdinalNumber(y.tickValue);g[b]=1}),function(y){return!g.hasOwnProperty(r.get(d,y))}}}}function canShowAllSymbolForCategory(t,r){var n=t.getExtent(),o=Math.abs(n[1]-n[0])/t.scale.count();isNaN(o)&&(o=0);for(var s=r.count(),l=Math.max(1,Math.round(s/5)),d=0;d<s;d+=l)if(SymbolClz.getSymbolSize(r,d)[t.isHorizontal()?1:0]*1.5>o)return!1;return!0}function isPointNull(t,r){return isNaN(t)||isNaN(r)}function getLastIndexNotNull(t){for(var r=t.length/2;r>0&&isPointNull(t[r*2-2],t[r*2-1]);r--);return r-1}function getPointAtIndex(t,r){return[t[r*2],t[r*2+1]]}function getIndexRange(t,r,n){for(var o=t.length/2,s=n==="x"?0:1,l,d,g=0,y=-1,b=0;b<o;b++)if(d=t[b*2+s],!(isNaN(d)||isNaN(t[b*2+1-s]))){if(b===0){l=d;continue}if(l<=r&&d>=r||l>=r&&d<=r){y=b;break}g=b,l=d}return{range:[g,y],t:(r-l)/(d-l)}}function anyStateShowEndLabel(t){if(t.get(["endLabel","show"]))return!0;for(var r=0;r<SPECIAL_STATES.length;r++)if(t.get([SPECIAL_STATES[r],"endLabel","show"]))return!0;return!1}function createLineClipPath(t,r,n,o){if(isCoordinateSystemType(r,"cartesian2d")){var s=o.getModel("endLabel"),l=s.get("valueAnimation"),d=o.getData(),g={lastFrameIndex:0},y=anyStateShowEndLabel(o)?function(_,w){t._endLabelOnDuring(_,w,d,g,l,s,r)}:null,b=r.getBaseAxis().isHorizontal(),C=createGridClipPath(r,n,o,function(){var _=t._endLabel;_&&n&&g.originalX!=null&&_.attr({x:g.originalX,y:g.originalY})},y);if(!o.get("clip",!0)){var x=C.shape,S=Math.max(x.width,x.height);b?(x.y-=S,x.height+=S*2):(x.x-=S,x.width+=S*2)}return y&&y(1,C),C}else return createPolarClipPath(r,n,o)}function getEndLabelStateSpecified(t,r){var n=r.getBaseAxis(),o=n.isHorizontal(),s=n.inverse,l=o?s?"right":"left":"center",d=o?"middle":s?"top":"bottom";return{normal:{align:t.get("align")||l,verticalAlign:t.get("verticalAlign")||d}}}var LineView=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(){var n=new Group$4,o=new SymbolDraw$1;this.group.add(o.group),this._symbolDraw=o,this._lineGroup=n},r.prototype.render=function(n,o,s){var l=this,d=n.coordinateSystem,g=this.group,y=n.getData(),b=n.getModel("lineStyle"),C=n.getModel("areaStyle"),x=y.getLayout("points")||[],S=d.type==="polar",_=this._coordSys,w=this._symbolDraw,$=this._polyline,I=this._polygon,B=this._lineGroup,R=n.get("animation"),P=!C.isEmpty(),M=C.get("origin"),O=prepareDataCoordInfo(d,y,M),D=P&&getStackedOnPoints(d,y,O),N=n.get("showSymbol"),H=n.get("connectNulls"),Q=N&&!S&&getIsIgnoreFunc(n,y,d),G=this._data;G&&G.eachItemGraphicEl(function(Ce,ve){Ce.__temp&&(g.remove(Ce),G.setItemGraphicEl(ve,null))}),N||w.remove(),g.add(B);var K=S?!1:n.get("step"),W;d&&d.getArea&&n.get("clip",!0)&&(W=d.getArea(),W.width!=null?(W.x-=.1,W.y-=.1,W.width+=.2,W.height+=.2):W.r0&&(W.r0-=.5,W.r+=.5)),this._clipShapeForSymbol=W;var j=getVisualGradient(y,d,s)||y.getVisual("style")[y.getVisual("drawType")];if(!($&&_.type===d.type&&K===this._step))N&&w.updateData(y,{isIgnore:Q,clipShape:W,disableAnimation:!0,getSymbolPoint:function(Ce){return[x[Ce*2],x[Ce*2+1]]}}),R&&this._initSymbolLabelAnimation(y,d,W),K&&(x=turnPointsIntoStep(x,d,K,H),D&&(D=turnPointsIntoStep(D,d,K,H))),$=this._newPolyline(x),P?I=this._newPolygon(x,D):I&&(B.remove(I),I=this._polygon=null),S||this._initOrUpdateEndLabel(n,d,convertToColorString(j)),B.setClipPath(createLineClipPath(this,d,!0,n));else{P&&!I?I=this._newPolygon(x,D):I&&!P&&(B.remove(I),I=this._polygon=null),S||this._initOrUpdateEndLabel(n,d,convertToColorString(j));var Y=B.getClipPath();if(Y){var q=createLineClipPath(this,d,!1,n);initProps(Y,{shape:q.shape},n)}else B.setClipPath(createLineClipPath(this,d,!0,n));N&&w.updateData(y,{isIgnore:Q,clipShape:W,disableAnimation:!0,getSymbolPoint:function(Ce){return[x[Ce*2],x[Ce*2+1]]}}),(!isPointsSame(this._stackedOnPoints,D)||!isPointsSame(this._points,x))&&(R?this._doUpdateAnimation(y,D,d,s,K,M,H):(K&&(x=turnPointsIntoStep(x,d,K,H),D&&(D=turnPointsIntoStep(D,d,K,H))),$.setShape({points:x}),I&&I.setShape({points:x,stackedOnPoints:D})))}var X=n.getModel("emphasis"),re=X.get("focus"),te=X.get("blurScope"),oe=X.get("disabled");if($.useStyle(defaults(b.getLineStyle(),{fill:"none",stroke:j,lineJoin:"bevel"})),setStatesStylesFromModel($,n,"lineStyle"),$.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var ae=$.getState("emphasis").style;ae.lineWidth=+$.style.lineWidth+1}getECData($).seriesIndex=n.seriesIndex,toggleHoverEmphasis($,re,te,oe);var se=getSmooth(n.get("smooth")),ue=n.get("smoothMonotone");if($.setShape({smooth:se,smoothMonotone:ue,connectNulls:H}),I){var Ae=y.getCalculationInfo("stackedOnSeries"),pe=0;I.useStyle(defaults(C.getAreaStyle(),{fill:j,opacity:.7,lineJoin:"bevel",decal:y.getVisual("style").decal})),Ae&&(pe=getSmooth(Ae.get("smooth"))),I.setShape({smooth:se,stackedOnSmooth:pe,smoothMonotone:ue,connectNulls:H}),setStatesStylesFromModel(I,n,"areaStyle"),getECData(I).seriesIndex=n.seriesIndex,toggleHoverEmphasis(I,re,te,oe)}var he=function(Ce){l._changePolyState(Ce)};y.eachItemGraphicEl(function(Ce){Ce&&(Ce.onHoverStateChange=he)}),this._polyline.onHoverStateChange=he,this._data=y,this._coordSys=d,this._stackedOnPoints=D,this._points=x,this._step=K,this._valueOrigin=M,n.get("triggerLineEvent")&&(this.packEventData(n,$),I&&this.packEventData(n,I))},r.prototype.packEventData=function(n,o){getECData(o).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},r.prototype.highlight=function(n,o,s,l){var d=n.getData(),g=queryDataIndex(d,l);if(this._changePolyState("emphasis"),!(g instanceof Array)&&g!=null&&g>=0){var y=d.getLayout("points"),b=d.getItemGraphicEl(g);if(!b){var C=y[g*2],x=y[g*2+1];if(isNaN(C)||isNaN(x)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(C,x))return;var S=n.get("zlevel")||0,_=n.get("z")||0;b=new SymbolClz(d,g),b.x=C,b.y=x,b.setZ(S,_);var w=b.getSymbolPath().getTextContent();w&&(w.zlevel=S,w.z=_,w.z2=this._polyline.z2+1),b.__temp=!0,d.setItemGraphicEl(g,b),b.stopSymbolAnimation(!0),this.group.add(b)}b.highlight()}else ChartView$1.prototype.highlight.call(this,n,o,s,l)},r.prototype.downplay=function(n,o,s,l){var d=n.getData(),g=queryDataIndex(d,l);if(this._changePolyState("normal"),g!=null&&g>=0){var y=d.getItemGraphicEl(g);y&&(y.__temp?(d.setItemGraphicEl(g,null),this.group.remove(y)):y.downplay())}else ChartView$1.prototype.downplay.call(this,n,o,s,l)},r.prototype._changePolyState=function(n){var o=this._polygon;setStatesFlag(this._polyline,n),o&&setStatesFlag(o,n)},r.prototype._newPolyline=function(n){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new ECPolyline({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},r.prototype._newPolygon=function(n,o){var s=this._polygon;return s&&this._lineGroup.remove(s),s=new ECPolygon({shape:{points:n,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(s),this._polygon=s,s},r.prototype._initSymbolLabelAnimation=function(n,o,s){var l,d,g=o.getBaseAxis(),y=g.inverse;o.type==="cartesian2d"?(l=g.isHorizontal(),d=!1):o.type==="polar"&&(l=g.dim==="angle",d=!0);var b=n.hostModel,C=b.get("animationDuration");isFunction(C)&&(C=C(null));var x=b.get("animationDelay")||0,S=isFunction(x)?x(null):x;n.eachItemGraphicEl(function(_,w){var $=_;if($){var I=[_.x,_.y],B=void 0,R=void 0,P=void 0;if(s)if(d){var M=s,O=o.pointToCoord(I);l?(B=M.startAngle,R=M.endAngle,P=-O[1]/180*Math.PI):(B=M.r0,R=M.r,P=O[0])}else{var D=s;l?(B=D.x,R=D.x+D.width,P=_.x):(B=D.y+D.height,R=D.y,P=_.y)}var N=R===B?0:(P-B)/(R-B);y&&(N=1-N);var H=isFunction(x)?x(w):C*N+S,Q=$.getSymbolPath(),G=Q.getTextContent();$.attr({scaleX:0,scaleY:0}),$.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:H}),G&&G.animateFrom({style:{opacity:0}},{duration:300,delay:H}),Q.disableLabelAnimation=!0}})},r.prototype._initOrUpdateEndLabel=function(n,o,s){var l=n.getModel("endLabel");if(anyStateShowEndLabel(n)){var d=n.getData(),g=this._polyline,y=d.getLayout("points");if(!y){g.removeTextContent(),this._endLabel=null;return}var b=this._endLabel;b||(b=this._endLabel=new ZRText$1({z2:200}),b.ignoreClip=!0,g.setTextContent(this._endLabel),g.disableLabelAnimation=!0);var C=getLastIndexNotNull(y);C>=0&&(setLabelStyle(g,getLabelStatesModels(n,"endLabel"),{inheritColor:s,labelFetcher:n,labelDataIndex:C,defaultText:function(x,S,_){return _!=null?getDefaultInterpolatedLabel(d,_):getDefaultLabel(d,x)},enableTextSetter:!0},getEndLabelStateSpecified(l,o)),g.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},r.prototype._endLabelOnDuring=function(n,o,s,l,d,g,y){var b=this._endLabel,C=this._polyline;if(b){n<1&&l.originalX==null&&(l.originalX=b.x,l.originalY=b.y);var x=s.getLayout("points"),S=s.hostModel,_=S.get("connectNulls"),w=g.get("precision"),$=g.get("distance")||0,I=y.getBaseAxis(),B=I.isHorizontal(),R=I.inverse,P=o.shape,M=R?B?P.x:P.y+P.height:B?P.x+P.width:P.y,O=(B?$:0)*(R?-1:1),D=(B?0:-$)*(R?-1:1),N=B?"x":"y",H=getIndexRange(x,M,N),Q=H.range,G=Q[1]-Q[0],K=void 0;if(G>=1){if(G>1&&!_){var W=getPointAtIndex(x,Q[0]);b.attr({x:W[0]+O,y:W[1]+D}),d&&(K=S.getRawValue(Q[0]))}else{var W=C.getPointOn(M,N);W&&b.attr({x:W[0]+O,y:W[1]+D});var j=S.getRawValue(Q[0]),Y=S.getRawValue(Q[1]);d&&(K=interpolateRawValues(s,w,j,Y,H.t))}l.lastFrameIndex=Q[0]}else{var q=n===1||l.lastFrameIndex>0?Q[0]:0,W=getPointAtIndex(x,q);d&&(K=S.getRawValue(q)),b.attr({x:W[0]+O,y:W[1]+D})}d&&labelInner(b).setLabelText(K)}},r.prototype._doUpdateAnimation=function(n,o,s,l,d,g,y){var b=this._polyline,C=this._polygon,x=n.hostModel,S=lineAnimationDiff(this._data,n,this._stackedOnPoints,o,this._coordSys,s,this._valueOrigin),_=S.current,w=S.stackedOnCurrent,$=S.next,I=S.stackedOnNext;if(d&&(_=turnPointsIntoStep(S.current,s,d,y),w=turnPointsIntoStep(S.stackedOnCurrent,s,d,y),$=turnPointsIntoStep(S.next,s,d,y),I=turnPointsIntoStep(S.stackedOnNext,s,d,y)),getBoundingDiff(_,$)>3e3||C&&getBoundingDiff(w,I)>3e3){b.stopAnimation(),b.setShape({points:$}),C&&(C.stopAnimation(),C.setShape({points:$,stackedOnPoints:I}));return}b.shape.__points=S.current,b.shape.points=_;var B={shape:{points:$}};S.current!==_&&(B.shape.__points=S.next),b.stopAnimation(),updateProps$1(b,B,x),C&&(C.setShape({points:_,stackedOnPoints:w}),C.stopAnimation(),updateProps$1(C,{shape:{stackedOnPoints:I}},x),b.shape.points!==C.shape.points&&(C.shape.points=b.shape.points));for(var R=[],P=S.status,M=0;M<P.length;M++){var O=P[M].cmd;if(O==="="){var D=n.getItemGraphicEl(P[M].idx1);D&&R.push({el:D,ptIdx:M})}}b.animators&&b.animators.length&&b.animators[0].during(function(){C&&C.dirtyShape();for(var N=b.shape.__points,H=0;H<R.length;H++){var Q=R[H].el,G=R[H].ptIdx*2;Q.x=N[G],Q.y=N[G+1],Q.markRedraw()}})},r.prototype.remove=function(n){var o=this.group,s=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),s&&s.eachItemGraphicEl(function(l,d){l.__temp&&(o.remove(l),s.setItemGraphicEl(d,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},r.type="line",r}(ChartView$1),LineView$1=LineView;function pointsLayout(t,r){return{seriesType:t,plan:createRenderPlanner(),reset:function(n){var o=n.getData(),s=n.coordinateSystem,l=n.pipelineContext,d=r||l.large;if(!!s){var g=map$1(s.dimensions,function(_){return o.mapDimension(_)}).slice(0,2),y=g.length,b=o.getCalculationInfo("stackResultDimension");isDimensionStacked(o,g[0])&&(g[0]=b),isDimensionStacked(o,g[1])&&(g[1]=b);var C=o.getStore(),x=o.getDimensionIndex(g[0]),S=o.getDimensionIndex(g[1]);return y&&{progress:function(_,w){for(var $=_.end-_.start,I=d&&createFloat32Array($*y),B=[],R=[],P=_.start,M=0;P<_.end;P++){var O=void 0;if(y===1){var D=C.get(x,P);O=s.dataToPoint(D,null,R)}else B[0]=C.get(x,P),B[1]=C.get(S,P),O=s.dataToPoint(B,null,R);d?(I[M++]=O[0],I[M++]=O[1]):w.setItemLayout(P,O.slice())}d&&w.setLayout("points",I)}}}}}}var samplers={average:function(t){for(var r=0,n=0,o=0;o<t.length;o++)isNaN(t[o])||(r+=t[o],n++);return n===0?NaN:r/n},sum:function(t){for(var r=0,n=0;n<t.length;n++)r+=t[n]||0;return r},max:function(t){for(var r=-1/0,n=0;n<t.length;n++)t[n]>r&&(r=t[n]);return isFinite(r)?r:NaN},min:function(t){for(var r=1/0,n=0;n<t.length;n++)t[n]<r&&(r=t[n]);return isFinite(r)?r:NaN},nearest:function(t){return t[0]}},indexSampler=function(t){return Math.round(t.length/2)};function dataSample(t){return{seriesType:t,reset:function(r,n,o){var s=r.getData(),l=r.get("sampling"),d=r.coordinateSystem,g=s.count();if(g>10&&d.type==="cartesian2d"&&l){var y=d.getBaseAxis(),b=d.getOtherAxis(y),C=y.getExtent(),x=o.getDevicePixelRatio(),S=Math.abs(C[1]-C[0])*(x||1),_=Math.round(g/S);if(isFinite(_)&&_>1){l==="lttb"&&r.setData(s.lttbDownSample(s.mapDimension(b.dim),1/_));var w=void 0;isString(l)?w=samplers[l]:isFunction(l)&&(w=l),w&&r.setData(s.downSample(s.mapDimension(b.dim),1/_,w,indexSampler))}}}}}function install$Q(t){t.registerChartView(LineView$1),t.registerSeriesModel(LineSeries),t.registerLayout(pointsLayout("line",!0)),t.registerVisual({seriesType:"line",reset:function(r){var n=r.getData(),o=r.getModel("lineStyle").getLineStyle();o&&!o.stroke&&(o.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",o)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.getInitialData=function(n,o){return createSeriesData(null,this,{useEncodeDefaulter:!0})},r.prototype.getMarkerPosition=function(n,o,s){var l=this.coordinateSystem;if(l&&l.clampData){var d=l.dataToPoint(l.clampData(n));if(s)each$f(l.getAxes(),function(x,S){if(x.type==="category"){var _=x.getTicksCoords(),w=l.clampData(n)[S];o&&(o[S]==="x1"||o[S]==="y1")&&(w+=1),w>_.length-1&&(w=_.length-1),w<0&&(w=0),_[w]&&(d[S]=x.toGlobalCoord(_[w].coord))}});else{var g=this.getData(),y=g.getLayout("offset"),b=g.getLayout("size"),C=l.getBaseAxis().isHorizontal()?0:1;d[C]+=y+b/2}return d}return[NaN,NaN]},r.type="series.__base_bar__",r.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},r}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);var BaseBarSeriesModel$1=BaseBarSeriesModel,BarSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},r.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},r.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),o=this.get("largeThreshold");return o>n&&(n=o),n},r.prototype.brushSelector=function(n,o,s){return s.rect(o.getItemLayout(n))},r.type="series.bar",r.dependencies=["grid","polar"],r.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.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}),r}(BaseBarSeriesModel$1),BarSeries=BarSeriesModel,SausageShape=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),SausagePath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="sausage",o}return r.prototype.getDefaultShape=function(){return new SausageShape},r.prototype.buildPath=function(n,o){var s=o.cx,l=o.cy,d=Math.max(o.r0||0,0),g=Math.max(o.r,0),y=(g-d)*.5,b=d+y,C=o.startAngle,x=o.endAngle,S=o.clockwise,_=Math.PI*2,w=S?x-C<_:C-x<_;w||(C=x-(S?_:-_));var $=Math.cos(C),I=Math.sin(C),B=Math.cos(x),R=Math.sin(x);w?(n.moveTo($*d+s,I*d+l),n.arc($*b+s,I*b+l,y,-Math.PI+C,C,!S)):n.moveTo($*g+s,I*g+l),n.arc(s,l,g,C,x,!S),n.arc(B*b+s,R*b+l,y,x-Math.PI*2,x-Math.PI,!S),d!==0&&n.arc(s,l,d,x,C,S)},r}(Path$1),Sausage=SausagePath;function createSectorCalculateTextPosition(t,r){r=r||{};var n=r.isRoundCap;return function(o,s,l){var d=s.position;if(!d||d instanceof Array)return calculateTextPosition(o,s,l);var g=t(d),y=s.distance!=null?s.distance:5,b=this.shape,C=b.cx,x=b.cy,S=b.r,_=b.r0,w=(S+_)/2,$=b.startAngle,I=b.endAngle,B=($+I)/2,R=n?Math.abs(S-_)/2:0,P=Math.cos,M=Math.sin,O=C+S*P($),D=x+S*M($),N="left",H="top";switch(g){case"startArc":O=C+(_-y)*P(B),D=x+(_-y)*M(B),N="center",H="top";break;case"insideStartArc":O=C+(_+y)*P(B),D=x+(_+y)*M(B),N="center",H="bottom";break;case"startAngle":O=C+w*P($)+adjustAngleDistanceX($,y+R,!1),D=x+w*M($)+adjustAngleDistanceY($,y+R,!1),N="right",H="middle";break;case"insideStartAngle":O=C+w*P($)+adjustAngleDistanceX($,-y+R,!1),D=x+w*M($)+adjustAngleDistanceY($,-y+R,!1),N="left",H="middle";break;case"middle":O=C+w*P(B),D=x+w*M(B),N="center",H="middle";break;case"endArc":O=C+(S+y)*P(B),D=x+(S+y)*M(B),N="center",H="bottom";break;case"insideEndArc":O=C+(S-y)*P(B),D=x+(S-y)*M(B),N="center",H="top";break;case"endAngle":O=C+w*P(I)+adjustAngleDistanceX(I,y+R,!0),D=x+w*M(I)+adjustAngleDistanceY(I,y+R,!0),N="left",H="middle";break;case"insideEndAngle":O=C+w*P(I)+adjustAngleDistanceX(I,-y+R,!0),D=x+w*M(I)+adjustAngleDistanceY(I,-y+R,!0),N="right",H="middle";break;default:return calculateTextPosition(o,s,l)}return o=o||{},o.x=O,o.y=D,o.align=N,o.verticalAlign=H,o}}function setSectorTextRotation(t,r,n,o){if(isNumber(o)){t.setTextConfig({rotation:o});return}else if(isArray$1(r)){t.setTextConfig({rotation:0});return}var s=t.shape,l=s.clockwise?s.startAngle:s.endAngle,d=s.clockwise?s.endAngle:s.startAngle,g=(l+d)/2,y,b=n(r);switch(b){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":y=g;break;case"startAngle":case"insideStartAngle":y=l;break;case"endAngle":case"insideEndAngle":y=d;break;default:t.setTextConfig({rotation:0});return}var C=Math.PI*1.5-y;b==="middle"&&C>Math.PI/2&&C<Math.PI*1.5&&(C-=Math.PI),t.setTextConfig({rotation:C})}function adjustAngleDistanceX(t,r,n){return r*Math.sin(t)*(n?-1:1)}function adjustAngleDistanceY(t,r,n){return r*Math.cos(t)*(n?1:-1)}var mathMax$4=Math.max,mathMin$4=Math.min;function getClipArea(t,r){var n=t.getArea&&t.getArea();if(isCoordinateSystemType(t,"cartesian2d")){var o=t.getBaseAxis();if(o.type!=="category"||!o.onBand){var s=r.getLayout("bandWidth");o.isHorizontal()?(n.x-=s,n.width+=s*2):(n.y-=s,n.height+=s*2)}}return n}var BarView=function(t){__extends$1(r,t);function r(){var n=t.call(this)||this;return n.type=r.type,n._isFirstFrame=!0,n}return r.prototype.render=function(n,o,s,l){this._model=n,this._removeOnRenderedListener(s),this._updateDrawMode(n);var d=n.get("coordinateSystem");(d==="cartesian2d"||d==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,o,s):this._renderNormal(n,o,s,l))},r.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},r.prototype.incrementalRender=function(n,o){this._progressiveEls=[],this._incrementalRenderLarge(n,o)},r.prototype.eachRendered=function(n){traverseElements(this._progressiveEls||this.group,n)},r.prototype._updateDrawMode=function(n){var o=n.pipelineContext.large;(this._isLargeDraw==null||o!==this._isLargeDraw)&&(this._isLargeDraw=o,this._clear())},r.prototype._renderNormal=function(n,o,s,l){var d=this.group,g=n.getData(),y=this._data,b=n.coordinateSystem,C=b.getBaseAxis(),x;b.type==="cartesian2d"?x=C.isHorizontal():b.type==="polar"&&(x=C.dim==="angle");var S=n.isAnimationEnabled()?n:null,_=shouldRealtimeSort(n,b);_&&this._enableRealtimeSort(_,g,s);var w=n.get("clip",!0)||_,$=getClipArea(b,g);d.removeClipPath();var I=n.get("roundCap",!0),B=n.get("showBackground",!0),R=n.getModel("backgroundStyle"),P=R.get("borderRadius")||0,M=[],O=this._backgroundEls,D=l&&l.isInitSort,N=l&&l.type==="changeAxisOrder";function H(K){var W=getLayout[b.type](g,K),j=createBackgroundEl(b,x,W);return j.useStyle(R.getItemStyle()),b.type==="cartesian2d"&&j.setShape("r",P),M[K]=j,j}g.diff(y).add(function(K){var W=g.getItemModel(K),j=getLayout[b.type](g,K,W);if(B&&H(K),!(!g.hasValue(K)||!isValidLayout[b.type](j))){var Y=!1;w&&(Y=clip[b.type]($,j));var q=elementCreator[b.type](n,g,K,j,x,S,C.model,!1,I);_&&(q.forceLabelAnimation=!0),updateStyle(q,g,K,W,j,n,x,b.type==="polar"),D?q.attr({shape:j}):_?updateRealtimeAnimation(_,S,q,j,K,x,!1,!1):initProps(q,{shape:j},n,K),g.setItemGraphicEl(K,q),d.add(q),q.ignore=Y}}).update(function(K,W){var j=g.getItemModel(K),Y=getLayout[b.type](g,K,j);if(B){var q=void 0;O.length===0?q=H(W):(q=O[W],q.useStyle(R.getItemStyle()),b.type==="cartesian2d"&&q.setShape("r",P),M[K]=q);var X=getLayout[b.type](g,K),re=createBackgroundShape(x,X,b);updateProps$1(q,{shape:re},S,K)}var te=y.getItemGraphicEl(W);if(!g.hasValue(K)||!isValidLayout[b.type](Y)){d.remove(te);return}var oe=!1;if(w&&(oe=clip[b.type]($,Y),oe&&d.remove(te)),te?saveOldStyle(te):te=elementCreator[b.type](n,g,K,Y,x,S,C.model,!!te,I),_&&(te.forceLabelAnimation=!0),N){var ae=te.getTextContent();if(ae){var se=labelInner(ae);se.prevValue!=null&&(se.prevValue=se.value)}}else updateStyle(te,g,K,j,Y,n,x,b.type==="polar");D?te.attr({shape:Y}):_?updateRealtimeAnimation(_,S,te,Y,K,x,!0,N):updateProps$1(te,{shape:Y},n,K,null),g.setItemGraphicEl(K,te),te.ignore=oe,d.add(te)}).remove(function(K){var W=y.getItemGraphicEl(K);W&&removeElementWithFadeOut(W,n,K)}).execute();var Q=this._backgroundGroup||(this._backgroundGroup=new Group$4);Q.removeAll();for(var G=0;G<M.length;++G)Q.add(M[G]);d.add(Q),this._backgroundEls=M,this._data=g},r.prototype._renderLarge=function(n,o,s){this._clear(),createLarge$1(n,this.group),this._updateLargeClip(n)},r.prototype._incrementalRenderLarge=function(n,o){this._removeBackground(),createLarge$1(o,this.group,this._progressiveEls,!0)},r.prototype._updateLargeClip=function(n){var o=n.get("clip",!0)&&createClipPath(n.coordinateSystem,!1,n),s=this.group;o?s.setClipPath(o):s.removeClipPath()},r.prototype._enableRealtimeSort=function(n,o,s){var l=this;if(!!o.count()){var d=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(o,n,s),this._isFirstFrame=!1;else{var g=function(y){var b=o.getItemGraphicEl(y),C=b&&b.shape;return C&&Math.abs(d.isHorizontal()?C.height:C.width)||0};this._onRendered=function(){l._updateSortWithinSameData(o,g,d,s)},s.getZr().on("rendered",this._onRendered)}}},r.prototype._dataSort=function(n,o,s){var l=[];return n.each(n.mapDimension(o.dim),function(d,g){var y=s(g);y=y==null?NaN:y,l.push({dataIndex:g,mappedValue:y,ordinalNumber:d})}),l.sort(function(d,g){return g.mappedValue-d.mappedValue}),{ordinalNumbers:map$1(l,function(d){return d.ordinalNumber})}},r.prototype._isOrderChangedWithinSameData=function(n,o,s){for(var l=s.scale,d=n.mapDimension(s.dim),g=Number.MAX_VALUE,y=0,b=l.getOrdinalMeta().categories.length;y<b;++y){var C=n.rawIndexOf(d,l.getRawOrdinalNumber(y)),x=C<0?Number.MIN_VALUE:o(n.indexOfRawIndex(C));if(x>g)return!0;g=x}return!1},r.prototype._isOrderDifferentInView=function(n,o){for(var s=o.scale,l=s.getExtent(),d=Math.max(0,l[0]),g=Math.min(l[1],s.getOrdinalMeta().categories.length-1);d<=g;++d)if(n.ordinalNumbers[d]!==s.getRawOrdinalNumber(d))return!0},r.prototype._updateSortWithinSameData=function(n,o,s,l){if(!!this._isOrderChangedWithinSameData(n,o,s)){var d=this._dataSort(n,s,o);this._isOrderDifferentInView(d,s)&&(this._removeOnRenderedListener(l),l.dispatchAction({type:"changeAxisOrder",componentType:s.dim+"Axis",axisId:s.index,sortInfo:d}))}},r.prototype._dispatchInitSort=function(n,o,s){var l=o.baseAxis,d=this._dataSort(n,l,function(g){return n.get(n.mapDimension(o.otherAxis.dim),g)});s.dispatchAction({type:"changeAxisOrder",componentType:l.dim+"Axis",isInitSort:!0,axisId:l.index,sortInfo:d})},r.prototype.remove=function(n,o){this._clear(this._model),this._removeOnRenderedListener(o)},r.prototype.dispose=function(n,o){this._removeOnRenderedListener(o)},r.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},r.prototype._clear=function(n){var o=this.group,s=this._data;n&&n.isAnimationEnabled()&&s&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],s.eachItemGraphicEl(function(l){removeElementWithFadeOut(l,n,getECData(l).dataIndex)})):o.removeAll(),this._data=null,this._isFirstFrame=!0},r.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},r.type="bar",r}(ChartView$1),clip={cartesian2d:function(t,r){var n=r.width<0?-1:1,o=r.height<0?-1:1;n<0&&(r.x+=r.width,r.width=-r.width),o<0&&(r.y+=r.height,r.height=-r.height);var s=t.x+t.width,l=t.y+t.height,d=mathMax$4(r.x,t.x),g=mathMin$4(r.x+r.width,s),y=mathMax$4(r.y,t.y),b=mathMin$4(r.y+r.height,l),C=g<d,x=b<y;return r.x=C&&d>s?g:d,r.y=x&&y>l?b:y,r.width=C?0:g-d,r.height=x?0:b-y,n<0&&(r.x+=r.width,r.width=-r.width),o<0&&(r.y+=r.height,r.height=-r.height),C||x},polar:function(t,r){var n=r.r0<=r.r?1:-1;if(n<0){var o=r.r;r.r=r.r0,r.r0=o}var s=mathMin$4(r.r,t.r),l=mathMax$4(r.r0,t.r0);r.r=s,r.r0=l;var d=s-l<0;if(n<0){var o=r.r;r.r=r.r0,r.r0=o}return d}},elementCreator={cartesian2d:function(t,r,n,o,s,l,d,g,y){var b=new Rect$3({shape:extend({},o),z2:1});if(b.__dataIndex=n,b.name="item",l){var C=b.shape,x=s?"height":"width";C[x]=0}return b},polar:function(t,r,n,o,s,l,d,g,y){var b=!s&&y?Sausage:Sector$1,C=new b({shape:o,z2:1});C.name="item";var x=createPolarPositionMapping(s);if(C.calculateTextPosition=createSectorCalculateTextPosition(x,{isRoundCap:b===Sausage}),l){var S=C.shape,_=s?"r":"endAngle",w={};S[_]=s?0:o.startAngle,w[_]=o[_],(g?updateProps$1:initProps)(C,{shape:w},l)}return C}};function shouldRealtimeSort(t,r){var n=t.get("realtimeSort",!0),o=r.getBaseAxis();if(n&&o.type==="category"&&r.type==="cartesian2d")return{baseAxis:o,otherAxis:r.getOtherAxis(o)}}function updateRealtimeAnimation(t,r,n,o,s,l,d,g){var y,b;l?(b={x:o.x,width:o.width},y={y:o.y,height:o.height}):(b={y:o.y,height:o.height},y={x:o.x,width:o.width}),g||(d?updateProps$1:initProps)(n,{shape:y},r,s,null);var C=r?t.baseAxis.model:null;(d?updateProps$1:initProps)(n,{shape:b},C,s)}function checkPropertiesNotValid(t,r){for(var n=0;n<r.length;n++)if(!isFinite(t[r[n]]))return!0;return!1}var rectPropties=["x","y","width","height"],polarPropties=["cx","cy","r","startAngle","endAngle"],isValidLayout={cartesian2d:function(t){return!checkPropertiesNotValid(t,rectPropties)},polar:function(t){return!checkPropertiesNotValid(t,polarPropties)}},getLayout={cartesian2d:function(t,r,n){var o=t.getItemLayout(r),s=n?getLineWidth(n,o):0,l=o.width>0?1:-1,d=o.height>0?1:-1;return{x:o.x+l*s/2,y:o.y+d*s/2,width:o.width-l*s,height:o.height-d*s}},polar:function(t,r,n){var o=t.getItemLayout(r);return{cx:o.cx,cy:o.cy,r0:o.r0,r:o.r,startAngle:o.startAngle,endAngle:o.endAngle,clockwise:o.clockwise}}};function isZeroOnPolar(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function createPolarPositionMapping(t){return function(r){var n=r?"Arc":"Angle";return function(o){switch(o){case"start":case"insideStart":case"end":case"insideEnd":return o+n;default:return o}}}(t)}function updateStyle(t,r,n,o,s,l,d,g){var y=r.getItemVisual(n,"style");g||t.setShape("r",o.get(["itemStyle","borderRadius"])||0),t.useStyle(y);var b=o.getShallow("cursor");b&&t.attr("cursor",b);var C=g?d?s.r>=s.r0?"endArc":"startArc":s.endAngle>=s.startAngle?"endAngle":"startAngle":d?s.height>=0?"bottom":"top":s.width>=0?"right":"left",x=getLabelStatesModels(o);setLabelStyle(t,x,{labelFetcher:l,labelDataIndex:n,defaultText:getDefaultLabel(l.getData(),n),inheritColor:y.fill,defaultOpacity:y.opacity,defaultOutsidePosition:C});var S=t.getTextContent();if(g&&S){var _=o.get(["label","position"]);t.textConfig.inside=_==="middle"?!0:null,setSectorTextRotation(t,_==="outside"?C:_,createPolarPositionMapping(d),o.get(["label","rotate"]))}setLabelValueAnimation(S,x,l.getRawValue(n),function($){return getDefaultInterpolatedLabel(r,$)});var w=o.getModel(["emphasis"]);toggleHoverEmphasis(t,w.get("focus"),w.get("blurScope"),w.get("disabled")),setStatesStylesFromModel(t,o),isZeroOnPolar(s)&&(t.style.fill="none",t.style.stroke="none",each$f(t.states,function($){$.style&&($.style.fill=$.style.stroke="none")}))}function getLineWidth(t,r){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var o=t.get(["itemStyle","borderWidth"])||0,s=isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),l=isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height);return Math.min(o,s,l)}var LagePathShape=function(){function t(){}return t}(),LargePath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="largeBar",o}return r.prototype.getDefaultShape=function(){return new LagePathShape},r.prototype.buildPath=function(n,o){for(var s=o.points,l=this.baseDimIdx,d=1-this.baseDimIdx,g=[],y=[],b=this.barWidth,C=0;C<s.length;C+=3)y[l]=b,y[d]=s[C+2],g[l]=s[C+l],g[d]=s[C+d],n.rect(g[0],g[1],y[0],y[1])},r}(Path$1);function createLarge$1(t,r,n,o){var s=t.getData(),l=s.getLayout("valueAxisHorizontal")?1:0,d=s.getLayout("largeDataIndices"),g=s.getLayout("size"),y=t.getModel("backgroundStyle"),b=s.getLayout("largeBackgroundPoints");if(b){var C=new LargePath({shape:{points:b},incremental:!!o,silent:!0,z2:0});C.baseDimIdx=l,C.largeDataIndices=d,C.barWidth=g,C.useStyle(y.getItemStyle()),r.add(C),n&&n.push(C)}var x=new LargePath({shape:{points:s.getLayout("largePoints")},incremental:!!o,ignoreCoarsePointer:!0,z2:1});x.baseDimIdx=l,x.largeDataIndices=d,x.barWidth=g,r.add(x),x.useStyle(s.getVisual("style")),getECData(x).seriesIndex=t.seriesIndex,t.get("silent")||(x.on("mousedown",largePathUpdateDataIndex),x.on("mousemove",largePathUpdateDataIndex)),n&&n.push(x)}var largePathUpdateDataIndex=throttle(function(t){var r=this,n=largePathFindDataIndex(r,t.offsetX,t.offsetY);getECData(r).dataIndex=n>=0?n:null},30,!1);function largePathFindDataIndex(t,r,n){for(var o=t.baseDimIdx,s=1-o,l=t.shape.points,d=t.largeDataIndices,g=[],y=[],b=t.barWidth,C=0,x=l.length/3;C<x;C++){var S=C*3;if(y[o]=b,y[s]=l[S+2],g[o]=l[S+o],g[s]=l[S+s],y[s]<0&&(g[s]+=y[s],y[s]=-y[s]),r>=g[0]&&r<=g[0]+y[0]&&n>=g[1]&&n<=g[1]+y[1])return d[C]}return-1}function createBackgroundShape(t,r,n){if(isCoordinateSystemType(n,"cartesian2d")){var o=r,s=n.getArea();return{x:t?o.x:s.x,y:t?s.y:o.y,width:t?o.width:s.width,height:t?s.height:o.height}}else{var s=n.getArea(),l=r;return{cx:s.cx,cy:s.cy,r0:t?s.r0:l.r0,r:t?s.r:l.r,startAngle:t?l.startAngle:0,endAngle:t?l.endAngle:Math.PI*2}}}function createBackgroundEl(t,r,n){var o=t.type==="polar"?Sector$1:Rect$3;return new o({shape:createBackgroundShape(r,n,t),silent:!0,z2:0})}var BarView$1=BarView;function install$P(t){t.registerChartView(BarView$1),t.registerSeriesModel(BarSeries),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,curry$1(layout$3,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(r,n){var o=r.componentType||"series";n.eachComponent({mainType:o,query:r},function(s){r.sortInfo&&s.axis.setCategorySortInfo(r.sortInfo)})})}var PI2=Math.PI*2,RADIAN$2=Math.PI/180;function getViewRect$5(t,r){return getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function getBasicPieLayout(t,r){var n=getViewRect$5(t,r),o=t.get("center"),s=t.get("radius");isArray$1(s)||(s=[0,s]);var l=parsePercent(n.width,r.getWidth()),d=parsePercent(n.height,r.getHeight()),g=Math.min(l,d),y=parsePercent(s[0],g/2),b=parsePercent(s[1],g/2),C,x,S=t.coordinateSystem;if(S){var _=S.dataToPoint(o);C=_[0]||0,x=_[1]||0}else isArray$1(o)||(o=[o,o]),C=parsePercent(o[0],l)+n.x,x=parsePercent(o[1],d)+n.y;return{cx:C,cy:x,r0:y,r:b}}function pieLayout(t,r,n){r.eachSeriesByType(t,function(o){var s=o.getData(),l=s.mapDimension("value"),d=getViewRect$5(o,n),g=getBasicPieLayout(o,n),y=g.cx,b=g.cy,C=g.r,x=g.r0,S=-o.get("startAngle")*RADIAN$2,_=o.get("minAngle")*RADIAN$2,w=0;s.each(l,function(G){!isNaN(G)&&w++});var $=s.getSum(l),I=Math.PI/($||w)*2,B=o.get("clockwise"),R=o.get("roseType"),P=o.get("stillShowZeroSum"),M=s.getDataExtent(l);M[0]=0;var O=PI2,D=0,N=S,H=B?1:-1;if(s.setLayout({viewRect:d,r:C}),s.each(l,function(G,K){var W;if(isNaN(G)){s.setItemLayout(K,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:B,cx:y,cy:b,r0:x,r:R?NaN:C});return}R!=="area"?W=$===0&&P?I:G*I:W=PI2/w,W<_?(W=_,O-=_):D+=G;var j=N+H*W;s.setItemLayout(K,{angle:W,startAngle:N,endAngle:j,clockwise:B,cx:y,cy:b,r0:x,r:R?linearMap$2(G,M,[x,C]):C}),N=j}),O<PI2&&w)if(O<=.001){var Q=PI2/w;s.each(l,function(G,K){if(!isNaN(G)){var W=s.getItemLayout(K);W.angle=Q,W.startAngle=S+H*K*Q,W.endAngle=S+H*(K+1)*Q}})}else I=O/D,N=S,s.each(l,function(G,K){if(!isNaN(G)){var W=s.getItemLayout(K),j=W.angle===_?_:G*I;W.startAngle=N,W.endAngle=N+H*j,N+=H*j}})})}function dataFilter$1(t){return{seriesType:t,reset:function(r,n){var o=n.findComponents({mainType:"legend"});if(!(!o||!o.length)){var s=r.getData();s.filterSelf(function(l){for(var d=s.getName(l),g=0;g<o.length;g++)if(!o[g].isSelected(d))return!1;return!0})}}}}var RADIAN$1=Math.PI/180;function adjustSingleSide(t,r,n,o,s,l,d,g,y,b){if(t.length<2)return;function C($){for(var I=$.rB,B=I*I,R=0;R<$.list.length;R++){var P=$.list[R],M=Math.abs(P.label.y-n),O=o+P.len,D=O*O,N=Math.sqrt((1-Math.abs(M*M/B))*D),H=r+(N+P.len2)*s,Q=H-P.label.x,G=P.targetTextWidth-Q*s;constrainTextWidth(P,G,!0),P.label.x=H}}function x($){for(var I={list:[],maxY:0},B={list:[],maxY:0},R=0;R<$.length;R++)if($[R].labelAlignTo==="none"){var P=$[R],M=P.label.y>n?B:I,O=Math.abs(P.label.y-n);if(O>=M.maxY){var D=P.label.x-r-P.len2*s,N=o+P.len,H=Math.abs(D)<N?Math.sqrt(O*O/(1-D*D/N/N)):N;M.rB=H,M.maxY=O}M.list.push(P)}C(I),C(B)}for(var S=t.length,_=0;_<S;_++)if(t[_].position==="outer"&&t[_].labelAlignTo==="labelLine"){var w=t[_].label.x-b;t[_].linePoints[1][0]+=w,t[_].label.x=b}shiftLayoutOnY(t,y,y+d)&&x(t)}function avoidOverlap(t,r,n,o,s,l,d,g){for(var y=[],b=[],C=Number.MAX_VALUE,x=-Number.MAX_VALUE,S=0;S<t.length;S++){var _=t[S].label;isPositionCenter(t[S])||(_.x<r?(C=Math.min(C,_.x),y.push(t[S])):(x=Math.max(x,_.x),b.push(t[S])))}for(var S=0;S<t.length;S++){var w=t[S];if(!isPositionCenter(w)&&w.linePoints){if(w.labelStyleWidth!=null)continue;var _=w.label,$=w.linePoints,I=void 0;w.labelAlignTo==="edge"?_.x<r?I=$[2][0]-w.labelDistance-d-w.edgeDistance:I=d+s-w.edgeDistance-$[2][0]-w.labelDistance:w.labelAlignTo==="labelLine"?_.x<r?I=C-d-w.bleedMargin:I=d+s-x-w.bleedMargin:_.x<r?I=_.x-d-w.bleedMargin:I=d+s-_.x-w.bleedMargin,w.targetTextWidth=I,constrainTextWidth(w,I)}}adjustSingleSide(b,r,n,o,1,s,l,d,g,x),adjustSingleSide(y,r,n,o,-1,s,l,d,g,C);for(var S=0;S<t.length;S++){var w=t[S];if(!isPositionCenter(w)&&w.linePoints){var _=w.label,$=w.linePoints,B=w.labelAlignTo==="edge",R=_.style.padding,P=R?R[1]+R[3]:0,M=_.style.backgroundColor?0:P,O=w.rect.width+M,D=$[1][0]-$[2][0];B?_.x<r?$[2][0]=d+w.edgeDistance+O+w.labelDistance:$[2][0]=d+s-w.edgeDistance-O-w.labelDistance:(_.x<r?$[2][0]=_.x+w.labelDistance:$[2][0]=_.x-w.labelDistance,$[1][0]=$[2][0]+D),$[1][1]=$[2][1]=_.y}}}function constrainTextWidth(t,r,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var o=t.label,s=o.style,l=t.rect,d=s.backgroundColor,g=s.padding,y=g?g[1]+g[3]:0,b=s.overflow,C=l.width+(d?0:y);if(r<C||n){var x=l.height;if(b&&b.match("break")){o.setStyle("backgroundColor",null),o.setStyle("width",r-y);var S=o.getBoundingRect();o.setStyle("width",Math.ceil(S.width)),o.setStyle("backgroundColor",d)}else{var _=r-y,w=r<C?_:n?_>t.unconstrainedWidth?null:_:null;o.setStyle("width",w)}var $=o.getBoundingRect();l.width=$.width;var I=(o.style.margin||0)+2.1;l.height=$.height+I,l.y-=(l.height-x)/2}}}function isPositionCenter(t){return t.position==="center"}function pieLabelLayout(t){var r=t.getData(),n=[],o,s,l=!1,d=(t.get("minShowLabelAngle")||0)*RADIAN$1,g=r.getLayout("viewRect"),y=r.getLayout("r"),b=g.width,C=g.x,x=g.y,S=g.height;function _(D){D.ignore=!0}function w(D){if(!D.ignore)return!0;for(var N in D.states)if(D.states[N].ignore===!1)return!0;return!1}r.each(function(D){var N=r.getItemGraphicEl(D),H=N.shape,Q=N.getTextContent(),G=N.getTextGuideLine(),K=r.getItemModel(D),W=K.getModel("label"),j=W.get("position")||K.get(["emphasis","label","position"]),Y=W.get("distanceToLabelLine"),q=W.get("alignTo"),X=parsePercent(W.get("edgeDistance"),b),re=W.get("bleedMargin"),te=K.getModel("labelLine"),oe=te.get("length");oe=parsePercent(oe,b);var ae=te.get("length2");if(ae=parsePercent(ae,b),Math.abs(H.endAngle-H.startAngle)<d){each$f(Q.states,_),Q.ignore=!0,G&&(each$f(G.states,_),G.ignore=!0);return}if(!!w(Q)){var se=(H.startAngle+H.endAngle)/2,ue=Math.cos(se),Ae=Math.sin(se),pe,he,Ce,ve;o=H.cx,s=H.cy;var ye=j==="inside"||j==="inner";if(j==="center")pe=H.cx,he=H.cy,ve="center";else{var Be=(ye?(H.r+H.r0)/2*ue:H.r*ue)+o,Se=(ye?(H.r+H.r0)/2*Ae:H.r*Ae)+s;if(pe=Be+ue*3,he=Se+Ae*3,!ye){var Ee=Be+ue*(oe+y-H.r),ie=Se+Ae*(oe+y-H.r),ee=Ee+(ue<0?-1:1)*ae,J=ie;q==="edge"?pe=ue<0?C+X:C+b-X:pe=ee+(ue<0?-Y:Y),he=J,Ce=[[Be,Se],[Ee,ie],[ee,J]]}ve=ye?"center":q==="edge"?ue>0?"right":"left":ue>0?"left":"right"}var ce=Math.PI,fe=0,ne=W.get("rotate");if(isNumber(ne))fe=ne*(ce/180);else if(j==="center")fe=0;else if(ne==="radial"||ne===!0){var le=ue<0?-se+ce:-se;fe=le}else if(ne==="tangential"&&j!=="outside"&&j!=="outer"){var me=Math.atan2(ue,Ae);me<0&&(me=ce*2+me);var Te=Ae>0;Te&&(me=ce+me),fe=me-ce}if(l=!!fe,Q.x=pe,Q.y=he,Q.rotation=fe,Q.setStyle({verticalAlign:"middle"}),ye){Q.setStyle({align:ve});var de=Q.states.select;de&&(de.x+=Q.x,de.y+=Q.y)}else{var ge=Q.getBoundingRect().clone();ge.applyTransform(Q.getComputedTransform());var $e=(Q.style.margin||0)+2.1;ge.y-=$e/2,ge.height+=$e,n.push({label:Q,labelLine:G,position:j,len:oe,len2:ae,minTurnAngle:te.get("minTurnAngle"),maxSurfaceAngle:te.get("maxSurfaceAngle"),surfaceNormal:new Point$1(ue,Ae),linePoints:Ce,textAlign:ve,labelDistance:Y,labelAlignTo:q,edgeDistance:X,bleedMargin:re,rect:ge,unconstrainedWidth:ge.width,labelStyleWidth:Q.style.width})}N.setTextConfig({inside:ye})}}),!l&&t.get("avoidLabelOverlap")&&avoidOverlap(n,o,s,y,b,S,C,x);for(var $=0;$<n.length;$++){var I=n[$],B=I.label,R=I.labelLine,P=isNaN(B.x)||isNaN(B.y);if(B){B.setStyle({align:I.textAlign}),P&&(each$f(B.states,_),B.ignore=!0);var M=B.states.select;M&&(M.x+=B.x,M.y+=B.y)}if(R){var O=I.linePoints;P||!O?(each$f(R.states,_),R.ignore=!0):(limitTurnAngle(O,I.minTurnAngle),limitSurfaceAngle(O,I.surfaceNormal,I.maxSurfaceAngle),R.setShape({points:O}),B.__hostTarget.textGuideLineConfig={anchor:new Point$1(O[0][0],O[0][1])})}}}function getSectorCornerRadius(t,r,n){var o=t.get("borderRadius");if(o==null)return n?{cornerRadius:0}:null;isArray$1(o)||(o=[o,o,o,o]);var s=Math.abs(r.r||0-r.r0||0);return{cornerRadius:map$1(o,function(l){return parsePercent$1(l,s)})}}var PiePiece=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this)||this;l.z2=2;var d=new ZRText$1;return l.setTextContent(d),l.updateData(n,o,s,!0),l}return r.prototype.updateData=function(n,o,s,l){var d=this,g=n.hostModel,y=n.getItemModel(o),b=y.getModel("emphasis"),C=n.getItemLayout(o),x=extend(getSectorCornerRadius(y.getModel("itemStyle"),C,!0),C);if(isNaN(x.startAngle)){d.setShape(x);return}if(l){d.setShape(x);var S=g.getShallow("animationType");g.ecModel.ssr?(initProps(d,{scaleX:0,scaleY:0},g,{dataIndex:o,isFrom:!0}),d.originX=x.cx,d.originY=x.cy):S==="scale"?(d.shape.r=C.r0,initProps(d,{shape:{r:C.r}},g,o)):s!=null?(d.setShape({startAngle:s,endAngle:s}),initProps(d,{shape:{startAngle:C.startAngle,endAngle:C.endAngle}},g,o)):(d.shape.endAngle=C.startAngle,updateProps$1(d,{shape:{endAngle:C.endAngle}},g,o))}else saveOldStyle(d),updateProps$1(d,{shape:x},g,o);d.useStyle(n.getItemVisual(o,"style")),setStatesStylesFromModel(d,y);var _=(C.startAngle+C.endAngle)/2,w=g.get("selectedOffset"),$=Math.cos(_)*w,I=Math.sin(_)*w,B=y.getShallow("cursor");B&&d.attr("cursor",B),this._updateLabel(g,n,o),d.ensureState("emphasis").shape=extend({r:C.r+(b.get("scale")&&b.get("scaleSize")||0)},getSectorCornerRadius(b.getModel("itemStyle"),C)),extend(d.ensureState("select"),{x:$,y:I,shape:getSectorCornerRadius(y.getModel(["select","itemStyle"]),C)}),extend(d.ensureState("blur"),{shape:getSectorCornerRadius(y.getModel(["blur","itemStyle"]),C)});var R=d.getTextGuideLine(),P=d.getTextContent();R&&extend(R.ensureState("select"),{x:$,y:I}),extend(P.ensureState("select"),{x:$,y:I}),toggleHoverEmphasis(this,b.get("focus"),b.get("blurScope"),b.get("disabled"))},r.prototype._updateLabel=function(n,o,s){var l=this,d=o.getItemModel(s),g=d.getModel("labelLine"),y=o.getItemVisual(s,"style"),b=y&&y.fill,C=y&&y.opacity;setLabelStyle(l,getLabelStatesModels(d),{labelFetcher:o.hostModel,labelDataIndex:s,inheritColor:b,defaultOpacity:C,defaultText:n.getFormattedLabel(s,"normal")||o.getName(s)});var x=l.getTextContent();l.setTextConfig({position:null,rotation:null}),x.attr({z2:10});var S=n.get(["label","position"]);if(S!=="outside"&&S!=="outer")l.removeTextGuideLine();else{var _=this.getTextGuideLine();_||(_=new Polyline$3,this.setTextGuideLine(_)),setLabelLineStyle(this,getLabelLineStatesModels(d),{stroke:b,opacity:retrieve3(g.get(["lineStyle","opacity"]),C,1)})}},r}(Sector$1),PieView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return r.prototype.render=function(n,o,s,l){var d=n.getData(),g=this._data,y=this.group,b;if(!g&&d.count()>0){for(var C=d.getItemLayout(0),x=1;isNaN(C&&C.startAngle)&&x<d.count();++x)C=d.getItemLayout(x);C&&(b=C.startAngle)}if(this._emptyCircleSector&&y.remove(this._emptyCircleSector),d.count()===0&&n.get("showEmptyCircle")){var S=new Sector$1({shape:getBasicPieLayout(n,s)});S.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=S,y.add(S)}d.diff(g).add(function(_){var w=new PiePiece(d,_,b);d.setItemGraphicEl(_,w),y.add(w)}).update(function(_,w){var $=g.getItemGraphicEl(w);$.updateData(d,_,b),$.off("click"),y.add($),d.setItemGraphicEl(_,$)}).remove(function(_){var w=g.getItemGraphicEl(_);removeElementWithFadeOut(w,n,_)}).execute(),pieLabelLayout(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=d)},r.prototype.dispose=function(){},r.prototype.containPoint=function(n,o){var s=o.getData(),l=s.getItemLayout(0);if(l){var d=n[0]-l.cx,g=n[1]-l.cy,y=Math.sqrt(d*d+g*g);return y<=l.r&&y>=l.r0}},r.type="pie",r}(ChartView$1),PieView$1=PieView;function createSeriesDataSimply(t,r,n){r=isArray$1(r)&&{coordDimensions:r}||extend({encodeDefine:t.getEncode()},r);var o=t.getSource(),s=prepareSeriesDataSchema(o,r).dimensions,l=new SeriesData$1(s,t);return l.initData(o,n),l}var LegendVisualProvider=function(){function t(r,n){this._getDataWithEncodedVisual=r,this._getRawData=n}return t.prototype.getAllNames=function(){var r=this._getRawData();return r.mapArray(r.getName)},t.prototype.containName=function(r){var n=this._getRawData();return n.indexOfName(r)>=0},t.prototype.indexOfName=function(r){var n=this._getDataWithEncodedVisual();return n.indexOfName(r)},t.prototype.getItemVisual=function(r,n){var o=this._getDataWithEncodedVisual();return o.getItemVisual(r,n)},t}(),LegendVisualProvider$1=LegendVisualProvider,innerData=makeInner(),PieSeriesModel=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(n)},r.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},r.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},r.prototype.getDataParams=function(n){var o=this.getData(),s=innerData(o),l=s.seats;if(!l){var d=[];o.each(o.mapDimension("value"),function(y){d.push(y)}),l=s.seats=getPercentSeats(d,o.hostModel.get("percentPrecision"))}var g=t.prototype.getDataParams.call(this,n);return g.percent=l[n]||0,g.$vars.push("percent"),g},r.prototype._defaultLabelLine=function(n){defaultEmphasis(n,"labelLine",["show"]);var o=n.labelLine,s=n.emphasis.labelLine;o.show=o.show&&n.label.show,s.show=s.show&&n.emphasis.label.show},r.type="series.pie",r.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"},r}(SeriesModel$1),PieSeriesModel$1=PieSeriesModel;function negativeDataFilter(t){return{seriesType:t,reset:function(r,n){var o=r.getData();o.filterSelf(function(s){var l=o.mapDimension("value"),d=o.get(l,s);return!(isNumber(d)&&!isNaN(d)&&d<0)})}}}function install$O(t){t.registerChartView(PieView$1),t.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",t.registerAction),t.registerLayout(curry$1(pieLayout,"pie")),t.registerProcessor(dataFilter$1("pie")),t.registerProcessor(negativeDataFilter("pie"))}var ScatterSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.hasSymbolVisual=!0,n}return r.prototype.getInitialData=function(n,o){return createSeriesData(null,this,{useEncodeDefaulter:!0})},r.prototype.getProgressive=function(){var n=this.option.progressive;return n==null?this.option.large?5e3:this.get("progressive"):n},r.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n==null?this.option.large?1e4:this.get("progressiveThreshold"):n},r.prototype.brushSelector=function(n,o,s){return s.point(o.getItemLayout(n))},r.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},r.type="series.scatter",r.dependencies=["grid","polar","geo","singleAxis","calendar"],r.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"}},r}(SeriesModel$1),ScatterSeriesModel$1=ScatterSeriesModel,BOOST_SIZE_THRESHOLD=4,LargeSymbolPathShape=function(){function t(){}return t}(),LargeSymbolPath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o._off=0,o.hoverDataIdx=-1,o}return r.prototype.getDefaultShape=function(){return new LargeSymbolPathShape},r.prototype.reset=function(){this.notClear=!1,this._off=0},r.prototype.buildPath=function(n,o){var s=o.points,l=o.size,d=this.symbolProxy,g=d.shape,y=n.getContext?n.getContext():n,b=y&&l[0]<BOOST_SIZE_THRESHOLD,C=this.softClipShape,x;if(b){this._ctx=y;return}for(this._ctx=null,x=this._off;x<s.length;){var S=s[x++],_=s[x++];isNaN(S)||isNaN(_)||C&&!C.contain(S,_)||(g.x=S-l[0]/2,g.y=_-l[1]/2,g.width=l[0],g.height=l[1],d.buildPath(n,g,!0))}this.incremental&&(this._off=x,this.notClear=!0)},r.prototype.afterBrush=function(){var n=this.shape,o=n.points,s=n.size,l=this._ctx,d=this.softClipShape,g;if(!!l){for(g=this._off;g<o.length;){var y=o[g++],b=o[g++];isNaN(y)||isNaN(b)||d&&!d.contain(y,b)||l.fillRect(y-s[0]/2,b-s[1]/2,s[0],s[1])}this.incremental&&(this._off=g,this.notClear=!0)}},r.prototype.findDataIndex=function(n,o){for(var s=this.shape,l=s.points,d=s.size,g=Math.max(d[0],4),y=Math.max(d[1],4),b=l.length/2-1;b>=0;b--){var C=b*2,x=l[C]-g/2,S=l[C+1]-y/2;if(n>=x&&o>=S&&n<=x+g&&o<=S+y)return b}return-1},r.prototype.contain=function(n,o){var s=this.transformCoordToLocal(n,o),l=this.getBoundingRect();if(n=s[0],o=s[1],l.contain(n,o)){var d=this.hoverDataIdx=this.findDataIndex(n,o);return d>=0}return this.hoverDataIdx=-1,!1},r.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var o=this.shape,s=o.points,l=o.size,d=l[0],g=l[1],y=1/0,b=1/0,C=-1/0,x=-1/0,S=0;S<s.length;){var _=s[S++],w=s[S++];y=Math.min(_,y),C=Math.max(_,C),b=Math.min(w,b),x=Math.max(w,x)}n=this._rect=new BoundingRect$1(y-d/2,b-g/2,C-y+d,x-b+g)}return n},r}(Path$1),LargeSymbolDraw=function(){function t(){this.group=new Group$4}return t.prototype.updateData=function(r,n){this._clear();var o=this._create();o.setShape({points:r.getLayout("points")}),this._setCommon(o,r,n)},t.prototype.updateLayout=function(r){var n=r.getLayout("points");this.group.eachChild(function(o){if(o.startIndex!=null){var s=(o.endIndex-o.startIndex)*2,l=o.startIndex*4*2;n=new Float32Array(n.buffer,l,s)}o.setShape("points",n),o.reset()})},t.prototype.incrementalPrepareUpdate=function(r){this._clear()},t.prototype.incrementalUpdate=function(r,n,o){var s=this._newAdded[0],l=n.getLayout("points"),d=s&&s.shape.points;if(d&&d.length<2e4){var g=d.length,y=new Float32Array(g+l.length);y.set(d),y.set(l,g),s.endIndex=r.end,s.setShape({points:y})}else{this._newAdded=[];var b=this._create();b.startIndex=r.start,b.endIndex=r.end,b.incremental=!0,b.setShape({points:l}),this._setCommon(b,n,o)}},t.prototype.eachRendered=function(r){this._newAdded[0]&&r(this._newAdded[0])},t.prototype._create=function(){var r=new LargeSymbolPath({cursor:"default"});return r.ignoreCoarsePointer=!0,this.group.add(r),this._newAdded.push(r),r},t.prototype._setCommon=function(r,n,o){var s=n.hostModel;o=o||{};var l=n.getVisual("symbolSize");r.setShape("size",l instanceof Array?l:[l,l]),r.softClipShape=o.clipShape||null,r.symbolProxy=createSymbol$1(n.getVisual("symbol"),0,0,0,0),r.setColor=r.symbolProxy.setColor;var d=r.shape.size[0]<BOOST_SIZE_THRESHOLD;r.useStyle(s.getModel("itemStyle").getItemStyle(d?["color","shadowBlur","shadowColor"]:["color"]));var g=n.getVisual("style"),y=g&&g.fill;y&&r.setColor(y);var b=getECData(r);b.seriesIndex=s.seriesIndex,r.on("mousemove",function(C){b.dataIndex=null;var x=r.hoverDataIdx;x>=0&&(b.dataIndex=x+(r.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),LargeSymbolDraw$1=LargeSymbolDraw,ScatterView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=n.getData(),d=this._updateSymbolDraw(l,n);d.updateData(l,{clipShape:this._getClipShape(n)}),this._finished=!0},r.prototype.incrementalPrepareRender=function(n,o,s){var l=n.getData(),d=this._updateSymbolDraw(l,n);d.incrementalPrepareUpdate(l),this._finished=!1},r.prototype.incrementalRender=function(n,o,s){this._symbolDraw.incrementalUpdate(n,o.getData(),{clipShape:this._getClipShape(o)}),this._finished=n.end===o.getData().count()},r.prototype.updateTransform=function(n,o,s){var l=n.getData();if(this.group.dirty(),!this._finished||l.count()>1e4)return{update:!0};var d=pointsLayout("").reset(n,o,s);d.progress&&d.progress({start:0,end:l.count(),count:l.count()},l),this._symbolDraw.updateLayout(l)},r.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},r.prototype._getClipShape=function(n){var o=n.coordinateSystem,s=o&&o.getArea&&o.getArea();return n.get("clip",!0)?s:null},r.prototype._updateSymbolDraw=function(n,o){var s=this._symbolDraw,l=o.pipelineContext,d=l.large;return(!s||d!==this._isLargeDraw)&&(s&&s.remove(),s=this._symbolDraw=d?new LargeSymbolDraw$1:new SymbolDraw$1,this._isLargeDraw=d,this.group.removeAll()),this.group.add(s.group),s},r.prototype.remove=function(n,o){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},r.prototype.dispose=function(){},r.type="scatter",r}(ChartView$1),ScatterView$1=ScatterView,GridModel=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.type="grid",r.dependencies=["xAxis","yAxis"],r.layoutMode="box",r.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"},r}(ComponentModel$1),GridModel$1=GridModel,CartesianAxisModel=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},r.type="cartesian2dAxis",r}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={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)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({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}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis),axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis},AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator(t,r,n,o){each$f(AXIS_TYPES,function(s,l){var d=merge(merge({},axisDefault[l],!0),o,!0),g=function(y){__extends$1(b,y);function b(){var C=y!==null&&y.apply(this,arguments)||this;return C.type=r+"Axis."+l,C}return b.prototype.mergeDefaultAndTheme=function(C,x){var S=fetchLayoutMode(this),_=S?getLayoutParams(C):{},w=x.getTheme();merge(C,w.get(l+"Axis")),merge(C,this.getDefaultOption()),C.type=getAxisType(C),S&&mergeLayoutParam(C,_,S)},b.prototype.optionUpdated=function(){var C=this.option;C.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},b.prototype.getCategories=function(C){var x=this.option;if(x.type==="category")return C?x.data:this.__ordinalMeta.categories},b.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},b.type=r+"Axis."+l,b.defaultOption=d,b}(n);t.registerComponentModel(g)}),t.registerSubTypeDefaulter(r+"Axis",getAxisType)}function getAxisType(t){return t.type||(t.data?"category":"value")}var Cartesian=function(){function t(r){this.type="cartesian",this._dimList=[],this._axes={},this.name=r||""}return t.prototype.getAxis=function(r){return this._axes[r]},t.prototype.getAxes=function(){return map$1(this._dimList,function(r){return this._axes[r]},this)},t.prototype.getAxesByScale=function(r){return r=r.toLowerCase(),filter(this.getAxes(),function(n){return n.scale.type===r})},t.prototype.addAxis=function(r){var n=r.dim;this._axes[n]=r,this._dimList.push(n)},t}(),Cartesian$1=Cartesian,cartesian2DDimensions=["x","y"];function canCalculateAffineTransform(t){return t.type==="interval"||t.type==="time"}var Cartesian2D=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=cartesian2DDimensions,n}return r.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,o=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(n)||!canCalculateAffineTransform(o))){var s=n.getExtent(),l=o.getExtent(),d=this.dataToPoint([s[0],l[0]]),g=this.dataToPoint([s[1],l[1]]),y=s[1]-s[0],b=l[1]-l[0];if(!(!y||!b)){var C=(g[0]-d[0])/y,x=(g[1]-d[1])/b,S=d[0]-s[0]*C,_=d[1]-l[0]*x,w=this._transform=[C,0,0,x,S,_];this._invTransform=invert([],w)}}},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},r.prototype.containPoint=function(n){var o=this.getAxis("x"),s=this.getAxis("y");return o.contain(o.toLocalCoord(n[0]))&&s.contain(s.toLocalCoord(n[1]))},r.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},r.prototype.containZone=function(n,o){var s=this.dataToPoint(n),l=this.dataToPoint(o),d=this.getArea(),g=new BoundingRect$1(s[0],s[1],l[0]-s[0],l[1]-s[1]);return d.intersect(g)},r.prototype.dataToPoint=function(n,o,s){s=s||[];var l=n[0],d=n[1];if(this._transform&&l!=null&&isFinite(l)&&d!=null&&isFinite(d))return applyTransform$1(s,n,this._transform);var g=this.getAxis("x"),y=this.getAxis("y");return s[0]=g.toGlobalCoord(g.dataToCoord(l,o)),s[1]=y.toGlobalCoord(y.dataToCoord(d,o)),s},r.prototype.clampData=function(n,o){var s=this.getAxis("x").scale,l=this.getAxis("y").scale,d=s.getExtent(),g=l.getExtent(),y=s.parse(n[0]),b=l.parse(n[1]);return o=o||[],o[0]=Math.min(Math.max(Math.min(d[0],d[1]),y),Math.max(d[0],d[1])),o[1]=Math.min(Math.max(Math.min(g[0],g[1]),b),Math.max(g[0],g[1])),o},r.prototype.pointToData=function(n,o){var s=[];if(this._invTransform)return applyTransform$1(s,n,this._invTransform);var l=this.getAxis("x"),d=this.getAxis("y");return s[0]=l.coordToData(l.toLocalCoord(n[0]),o),s[1]=d.coordToData(d.toLocalCoord(n[1]),o),s},r.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},r.prototype.getArea=function(){var n=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),s=Math.min(n[0],n[1]),l=Math.min(o[0],o[1]),d=Math.max(n[0],n[1])-s,g=Math.max(o[0],o[1])-l;return new BoundingRect$1(s,l,d,g)},r}(Cartesian$1),Axis2D=function(t){__extends$1(r,t);function r(n,o,s,l,d){var g=t.call(this,n,o,s)||this;return g.index=0,g.type=l||"value",g.position=d||"bottom",g}return r.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},r.prototype.getGlobalExtent=function(n){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),n&&o[0]>o[1]&&o.reverse(),o},r.prototype.pointToData=function(n,o){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),o)},r.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},r}(Axis$1),Axis2D$1=Axis2D;function layout$2(t,r,n){n=n||{};var o=t.coordinateSystem,s=r.axis,l={},d=s.getAxesOnZeroOf()[0],g=s.position,y=d?"onZero":g,b=s.dim,C=o.getRect(),x=[C.x,C.x+C.width,C.y,C.y+C.height],S={left:0,right:1,top:0,bottom:1,onZero:2},_=r.get("offset")||0,w=b==="x"?[x[2]-_,x[3]+_]:[x[0]-_,x[1]+_];if(d){var $=d.toGlobalCoord(d.dataToCoord(0));w[S.onZero]=Math.max(Math.min($,w[1]),w[0])}l.position=[b==="y"?w[S[y]]:x[0],b==="x"?w[S[y]]:x[3]],l.rotation=Math.PI/2*(b==="x"?0:1);var I={top:-1,bottom:1,left:-1,right:1};l.labelDirection=l.tickDirection=l.nameDirection=I[g],l.labelOffset=d?w[S[g]]-w[S.onZero]:0,r.get(["axisTick","inside"])&&(l.tickDirection=-l.tickDirection),retrieve(n.labelInside,r.get(["axisLabel","inside"]))&&(l.labelDirection=-l.labelDirection);var B=r.get(["axisLabel","rotate"]);return l.labelRotate=y==="top"?-B:B,l.z2=1,l}function isCartesian2DSeries(t){return t.get("coordinateSystem")==="cartesian2d"}function findAxisModels(t){var r={xAxisModel:null,yAxisModel:null};return each$f(r,function(n,o){var s=o.replace(/Model$/,""),l=t.getReferringComponents(s,SINGLE_REFERRING).models[0];r[o]=l}),r}var mathLog=Math.log;function alignScaleTicks(t,r,n){var o=IntervalScale$1.prototype,s=o.getTicks.call(n),l=o.getTicks.call(n,!0),d=s.length-1,g=o.getInterval.call(n),y=getScaleExtent(t,r),b=y.extent,C=y.fixMin,x=y.fixMax;if(t.type==="log"){var S=mathLog(t.base);b=[mathLog(b[0])/S,mathLog(b[1])/S]}t.setExtent(b[0],b[1]),t.calcNiceExtent({splitNumber:d,fixMin:C,fixMax:x});var _=o.getExtent.call(t);C&&(b[0]=_[0]),x&&(b[1]=_[1]);var w=o.getInterval.call(t),$=b[0],I=b[1];if(C&&x)w=(I-$)/d;else if(C)for(I=b[0]+w*d;I<b[1]&&isFinite(I)&&isFinite(b[1]);)w=increaseInterval(w),I=b[0]+w*d;else if(x)for($=b[1]-w*d;$>b[0]&&isFinite($)&&isFinite(b[0]);)w=increaseInterval(w),$=b[1]-w*d;else{var B=t.getTicks().length-1;B>d&&(w=increaseInterval(w));var R=w*d;I=Math.ceil(b[1]/w)*w,$=round$3(I-R),$<0&&b[0]>=0?($=0,I=round$3(R)):I>0&&b[1]<=0&&(I=0,$=-round$3(R))}var P=(s[0].value-l[0].value)/g,M=(s[d].value-l[d].value)/g;o.setExtent.call(t,$+w*P,I+w*M),o.setInterval.call(t,w),(P||M)&&o.setNiceExtent.call(t,$+w,I-w)}var Grid=function(){function t(r,n,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(r,n,o),this.model=r}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(r,n){var o=this._axesMap;this._updateScale(r,this.model);function s(d){var g,y=keys(d),b=y.length;if(!!b){for(var C=[],x=b-1;x>=0;x--){var S=+y[x],_=d[S],w=_.model,$=_.scale;isIntervalOrLogScale($)&&w.get("alignTicks")&&w.get("interval")==null?C.push(_):(niceScaleExtent($,w),isIntervalOrLogScale($)&&(g=_))}C.length&&(g||(g=C.pop(),niceScaleExtent(g.scale,g.model)),each$f(C,function(I){alignScaleTicks(I.scale,I.model,g.scale)}))}}s(o.x),s(o.y);var l={};each$f(o.x,function(d){fixAxisOnZero(o,"y",d,l)}),each$f(o.y,function(d){fixAxisOnZero(o,"x",d,l)}),this.resize(this.model,n)},t.prototype.resize=function(r,n,o){var s=r.getBoxLayoutParams(),l=!o&&r.get("containLabel"),d=getLayoutRect(s,{width:n.getWidth(),height:n.getHeight()});this._rect=d;var g=this._axesList;y(),l&&(each$f(g,function(b){if(!b.model.get(["axisLabel","inside"])){var C=estimateLabelUnionRect(b);if(C){var x=b.isHorizontal()?"height":"width",S=b.model.get(["axisLabel","margin"]);d[x]-=C[x]+S,b.position==="top"?d.y+=C.height+S:b.position==="left"&&(d.x+=C.width+S)}}}),y()),each$f(this._coordsList,function(b){b.calcAffineTransform()});function y(){each$f(g,function(b){var C=b.isHorizontal(),x=C?[0,d.width]:[0,d.height],S=b.inverse?1:0;b.setExtent(x[S],x[1-S]),updateAxisTransform(b,C?d.x:d.y)})}},t.prototype.getAxis=function(r,n){var o=this._axesMap[r];if(o!=null)return o[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(r,n){if(r!=null&&n!=null){var o="x"+r+"y"+n;return this._coordsMap[o]}isObject$3(r)&&(n=r.yAxisIndex,r=r.xAxisIndex);for(var s=0,l=this._coordsList;s<l.length;s++)if(l[s].getAxis("x").index===r||l[s].getAxis("y").index===n)return l[s]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(r,n,o){var s=this._findConvertTarget(n);return s.cartesian?s.cartesian.dataToPoint(o):s.axis?s.axis.toGlobalCoord(s.axis.dataToCoord(o)):null},t.prototype.convertFromPixel=function(r,n,o){var s=this._findConvertTarget(n);return s.cartesian?s.cartesian.pointToData(o):s.axis?s.axis.coordToData(s.axis.toLocalCoord(o)):null},t.prototype._findConvertTarget=function(r){var n=r.seriesModel,o=r.xAxisModel||n&&n.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],s=r.yAxisModel||n&&n.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],l=r.gridModel,d=this._coordsList,g,y;if(n)g=n.coordinateSystem,indexOf(d,g)<0&&(g=null);else if(o&&s)g=this.getCartesian(o.componentIndex,s.componentIndex);else if(o)y=this.getAxis("x",o.componentIndex);else if(s)y=this.getAxis("y",s.componentIndex);else if(l){var b=l.coordinateSystem;b===this&&(g=this._coordsList[0])}return{cartesian:g,axis:y}},t.prototype.containPoint=function(r){var n=this._coordsList[0];if(n)return n.containPoint(r)},t.prototype._initCartesian=function(r,n,o){var s=this,l=this,d={left:!1,right:!1,top:!1,bottom:!1},g={x:{},y:{}},y={x:0,y:0};if(n.eachComponent("xAxis",b("x"),this),n.eachComponent("yAxis",b("y"),this),!y.x||!y.y){this._axesMap={},this._axesList=[];return}this._axesMap=g,each$f(g.x,function(C,x){each$f(g.y,function(S,_){var w="x"+x+"y"+_,$=new Cartesian2D(w);$.master=s,$.model=r,s._coordsMap[w]=$,s._coordsList.push($),$.addAxis(C),$.addAxis(S)})});function b(C){return function(x,S){if(!!isAxisUsedInTheGrid(x,r)){var _=x.get("position");C==="x"?_!=="top"&&_!=="bottom"&&(_=d.bottom?"top":"bottom"):_!=="left"&&_!=="right"&&(_=d.left?"right":"left"),d[_]=!0;var w=new Axis2D$1(C,createScaleByModel$1(x),[0,0],x.get("type"),_),$=w.type==="category";w.onBand=$&&x.get("boundaryGap"),w.inverse=x.get("inverse"),x.axis=w,w.model=x,w.grid=l,w.index=S,l._axesList.push(w),g[C][S]=w,y[C]++}}}},t.prototype._updateScale=function(r,n){each$f(this._axesList,function(s){if(s.scale.setExtent(1/0,-1/0),s.type==="category"){var l=s.model.get("categorySortInfo");s.scale.setSortInfo(l)}}),r.eachSeries(function(s){if(isCartesian2DSeries(s)){var l=findAxisModels(s),d=l.xAxisModel,g=l.yAxisModel;if(!isAxisUsedInTheGrid(d,n)||!isAxisUsedInTheGrid(g,n))return;var y=this.getCartesian(d.componentIndex,g.componentIndex),b=s.getData(),C=y.getAxis("x"),x=y.getAxis("y");o(b,C),o(b,x)}},this);function o(s,l){each$f(getDataDimensionsOnAxis(s,l.dim),function(d){l.scale.unionExtentFromData(s,d)})}},t.prototype.getTooltipAxes=function(r){var n=[],o=[];return each$f(this.getCartesians(),function(s){var l=r!=null&&r!=="auto"?s.getAxis(r):s.getBaseAxis(),d=s.getOtherAxis(l);indexOf(n,l)<0&&n.push(l),indexOf(o,d)<0&&o.push(d)}),{baseAxes:n,otherAxes:o}},t.create=function(r,n){var o=[];return r.eachComponent("grid",function(s,l){var d=new t(s,r,n);d.name="grid_"+l,d.resize(s,n,!0),s.coordinateSystem=d,o.push(d)}),r.eachSeries(function(s){if(!!isCartesian2DSeries(s)){var l=findAxisModels(s),d=l.xAxisModel,g=l.yAxisModel,y=d.getCoordSysModel(),b=y.coordinateSystem;s.coordinateSystem=b.getCartesian(d.componentIndex,g.componentIndex)}}),o},t.dimensions=cartesian2DDimensions,t}();function isAxisUsedInTheGrid(t,r){return t.getCoordSysModel()===r}function fixAxisOnZero(t,r,n,o){n.getAxesOnZeroOf=function(){return l?[l]:[]};var s=t[r],l,d=n.model,g=d.get(["axisLine","onZero"]),y=d.get(["axisLine","onZeroAxisIndex"]);if(!g)return;if(y!=null)canOnZeroToAxis(s[y])&&(l=s[y]);else for(var b in s)if(s.hasOwnProperty(b)&&canOnZeroToAxis(s[b])&&!o[C(s[b])]){l=s[b];break}l&&(o[C(l)]=!0);function C(x){return x.dim+"_"+x.index}}function canOnZeroToAxis(t){return t&&t.type!=="category"&&t.type!=="time"&&ifAxisCrossZero(t)}function updateAxisTransform(t,r){var n=t.getExtent(),o=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(s){return s+r}:function(s){return o-s+r},t.toLocalCoord=t.dim==="x"?function(s){return s-r}:function(s){return o-s+r}}var Grid$1=Grid,PI$3=Math.PI,AxisBuilder=function(){function t(r,n){this.group=new Group$4,this.opt=n,this.axisModel=r,defaults(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new Group$4({x:n.position[0],y:n.position[1],rotation:n.rotation});o.updateTransform(),this._transformGroup=o}return t.prototype.hasBuilder=function(r){return!!builders[r]},t.prototype.add=function(r){builders[r](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(r,n,o){var s=remRadian(n-r),l,d;return isRadianAroundZero(s)?(d=o>0?"top":"bottom",l="center"):isRadianAroundZero(s-PI$3)?(d=o>0?"bottom":"top",l="center"):(d="middle",s>0&&s<PI$3?l=o>0?"right":"left":l=o>0?"left":"right"),{rotation:s,textAlign:l,textVerticalAlign:d}},t.makeAxisEventDataBase=function(r){var n={componentType:r.mainType,componentIndex:r.componentIndex};return n[r.mainType+"Index"]=r.componentIndex,n},t.isLabelSilent=function(r){var n=r.get("tooltip");return r.get("silent")||!(r.get("triggerEvent")||n&&n.show)},t}(),builders={axisLine:function(t,r,n,o){var s=r.get(["axisLine","show"]);if(s==="auto"&&t.handleAutoShown&&(s=t.handleAutoShown("axisLine")),!!s){var l=r.axis.getExtent(),d=o.transform,g=[l[0],0],y=[l[1],0],b=g[0]>y[0];d&&(applyTransform$1(g,g,d),applyTransform$1(y,y,d));var C=extend({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),x=new Line$3({shape:{x1:g[0],y1:g[1],x2:y[0],y2:y[1]},style:C,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(x.shape,x.style.lineWidth),x.anid="line",n.add(x);var S=r.get(["axisLine","symbol"]);if(S!=null){var _=r.get(["axisLine","symbolSize"]);isString(S)&&(S=[S,S]),(isString(_)||isNumber(_))&&(_=[_,_]);var w=normalizeSymbolOffset(r.get(["axisLine","symbolOffset"])||0,_),$=_[0],I=_[1];each$f([{rotate:t.rotation+Math.PI/2,offset:w[0],r:0},{rotate:t.rotation-Math.PI/2,offset:w[1],r:Math.sqrt((g[0]-y[0])*(g[0]-y[0])+(g[1]-y[1])*(g[1]-y[1]))}],function(B,R){if(S[R]!=="none"&&S[R]!=null){var P=createSymbol$1(S[R],-$/2,-I/2,$,I,C.stroke,!0),M=B.r+B.offset,O=b?y:g;P.attr({rotation:B.rotate,x:O[0]+M*Math.cos(t.rotation),y:O[1]-M*Math.sin(t.rotation),silent:!0,z2:11}),n.add(P)}})}}},axisTickLabel:function(t,r,n,o){var s=buildAxisMajorTicks(n,o,r,t),l=buildAxisLabel(n,o,r,t);if(fixMinMaxLabelShow(r,l,s),buildAxisMinorTicks(n,o,r,t.tickDirection),r.get(["axisLabel","hideOverlap"])){var d=prepareLayoutList(map$1(l,function(g){return{label:g,priority:g.z2,defaultAttr:{ignore:g.ignore}}}));hideOverlap(d)}},axisName:function(t,r,n,o){var s=retrieve(t.axisName,r.get("name"));if(!!s){var l=r.get("nameLocation"),d=t.nameDirection,g=r.getModel("nameTextStyle"),y=r.get("nameGap")||0,b=r.axis.getExtent(),C=b[0]>b[1]?-1:1,x=[l==="start"?b[0]-C*y:l==="end"?b[1]+C*y:(b[0]+b[1])/2,isNameLocationCenter(l)?t.labelOffset+d*y:0],S,_=r.get("nameRotate");_!=null&&(_=_*PI$3/180);var w;isNameLocationCenter(l)?S=AxisBuilder.innerTextLayout(t.rotation,_!=null?_:t.rotation,d):(S=endTextLayout(t.rotation,l,_||0,b),w=t.axisNameAvailableWidth,w!=null&&(w=Math.abs(w/Math.sin(S.rotation)),!isFinite(w)&&(w=null)));var $=g.getFont(),I=r.get("nameTruncate",!0)||{},B=I.ellipsis,R=retrieve(t.nameTruncateMaxWidth,I.maxWidth,w),P=new ZRText$1({x:x[0],y:x[1],rotation:S.rotation,silent:AxisBuilder.isLabelSilent(r),style:createTextStyle$1(g,{text:s,font:$,overflow:"truncate",width:R,ellipsis:B,fill:g.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:g.get("align")||S.textAlign,verticalAlign:g.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(setTooltipConfig({el:P,componentModel:r,itemName:s}),P.__fullText=s,P.anid="name",r.get("triggerEvent")){var M=AxisBuilder.makeAxisEventDataBase(r);M.targetType="axisName",M.name=s,getECData(P).eventData=M}o.add(P),P.updateTransform(),n.add(P),P.decomposeTransform()}}};function endTextLayout(t,r,n,o){var s=remRadian(n-t),l,d,g=o[0]>o[1],y=r==="start"&&!g||r!=="start"&&g;return isRadianAroundZero(s-PI$3/2)?(d=y?"bottom":"top",l="center"):isRadianAroundZero(s-PI$3*1.5)?(d=y?"top":"bottom",l="center"):(d="middle",s<PI$3*1.5&&s>PI$3/2?l=y?"left":"right":l=y?"right":"left"),{rotation:s,textAlign:l,textVerticalAlign:d}}function fixMinMaxLabelShow(t,r,n){if(!shouldShowAllLabels(t.axis)){var o=t.get(["axisLabel","showMinLabel"]),s=t.get(["axisLabel","showMaxLabel"]);r=r||[],n=n||[];var l=r[0],d=r[1],g=r[r.length-1],y=r[r.length-2],b=n[0],C=n[1],x=n[n.length-1],S=n[n.length-2];o===!1?(ignoreEl(l),ignoreEl(b)):isTwoLabelOverlapped(l,d)&&(o?(ignoreEl(d),ignoreEl(C)):(ignoreEl(l),ignoreEl(b))),s===!1?(ignoreEl(g),ignoreEl(x)):isTwoLabelOverlapped(y,g)&&(s?(ignoreEl(y),ignoreEl(S)):(ignoreEl(g),ignoreEl(x)))}}function ignoreEl(t){t&&(t.ignore=!0)}function isTwoLabelOverlapped(t,r){var n=t&&t.getBoundingRect().clone(),o=r&&r.getBoundingRect().clone();if(!(!n||!o)){var s=identity([]);return rotate(s,s,-t.rotation),n.applyTransform(mul([],s,t.getLocalTransform())),o.applyTransform(mul([],s,r.getLocalTransform())),n.intersect(o)}}function isNameLocationCenter(t){return t==="middle"||t==="center"}function createTicks(t,r,n,o,s){for(var l=[],d=[],g=[],y=0;y<t.length;y++){var b=t[y].coord;d[0]=b,d[1]=0,g[0]=b,g[1]=n,r&&(applyTransform$1(d,d,r),applyTransform$1(g,g,r));var C=new Line$3({shape:{x1:d[0],y1:d[1],x2:g[0],y2:g[1]},style:o,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(C.shape,C.style.lineWidth),C.anid=s+"_"+t[y].tickValue,l.push(C)}return l}function buildAxisMajorTicks(t,r,n,o){var s=n.axis,l=n.getModel("axisTick"),d=l.get("show");if(d==="auto"&&o.handleAutoShown&&(d=o.handleAutoShown("axisTick")),!(!d||s.scale.isBlank())){for(var g=l.getModel("lineStyle"),y=o.tickDirection*l.get("length"),b=s.getTicksCoords(),C=createTicks(b,r.transform,y,defaults(g.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),x=0;x<C.length;x++)t.add(C[x]);return C}}function buildAxisMinorTicks(t,r,n,o){var s=n.axis,l=n.getModel("minorTick");if(!(!l.get("show")||s.scale.isBlank())){var d=s.getMinorTicksCoords();if(!!d.length)for(var g=l.getModel("lineStyle"),y=o*l.get("length"),b=defaults(g.getLineStyle(),defaults(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),C=0;C<d.length;C++)for(var x=createTicks(d[C],r.transform,y,b,"minorticks_"+C),S=0;S<x.length;S++)t.add(x[S])}}function buildAxisLabel(t,r,n,o){var s=n.axis,l=retrieve(o.axisLabelShow,n.get(["axisLabel","show"]));if(!(!l||s.scale.isBlank())){var d=n.getModel("axisLabel"),g=d.get("margin"),y=s.getViewLabels(),b=(retrieve(o.labelRotate,d.get("rotate"))||0)*PI$3/180,C=AxisBuilder.innerTextLayout(o.rotation,b,o.labelDirection),x=n.getCategories&&n.getCategories(!0),S=[],_=AxisBuilder.isLabelSilent(n),w=n.get("triggerEvent");return each$f(y,function($,I){var B=s.scale.type==="ordinal"?s.scale.getRawOrdinalNumber($.tickValue):$.tickValue,R=$.formattedLabel,P=$.rawLabel,M=d;if(x&&x[B]){var O=x[B];isObject$3(O)&&O.textStyle&&(M=new Model$1(O.textStyle,d,n.ecModel))}var D=M.getTextColor()||n.get(["axisLine","lineStyle","color"]),N=s.dataToCoord(B),H=new ZRText$1({x:N,y:o.labelOffset+o.labelDirection*g,rotation:C.rotation,silent:_,z2:10+($.level||0),style:createTextStyle$1(M,{text:R,align:M.getShallow("align",!0)||C.textAlign,verticalAlign:M.getShallow("verticalAlign",!0)||M.getShallow("baseline",!0)||C.textVerticalAlign,fill:isFunction(D)?D(s.type==="category"?P:s.type==="value"?B+"":B,I):D})});if(H.anid="label_"+B,w){var Q=AxisBuilder.makeAxisEventDataBase(n);Q.targetType="axisLabel",Q.value=P,Q.tickIndex=I,s.type==="category"&&(Q.dataIndex=B),getECData(H).eventData=Q}r.add(H),H.updateTransform(),S.push(H),t.add(H),H.decomposeTransform()}),S}}var AxisBuilder$1=AxisBuilder;function collect(t,r){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(n,t,r),n.seriesInvolved&&collectSeriesInfo(n,t),n}function collectAxesInfo(t,r,n){var o=r.getComponent("tooltip"),s=r.getComponent("axisPointer"),l=s.get("link",!0)||[],d=[];each$f(n.getCoordinateSystems(),function(g){if(!g.axisPointerEnabled)return;var y=makeKey(g.model),b=t.coordSysAxesInfo[y]={};t.coordSysMap[y]=g;var C=g.model,x=C.getModel("tooltip",o);if(each$f(g.getAxes(),curry$1($,!1,null)),g.getTooltipAxes&&o&&x.get("show")){var S=x.get("trigger")==="axis",_=x.get(["axisPointer","type"])==="cross",w=g.getTooltipAxes(x.get(["axisPointer","axis"]));(S||_)&&each$f(w.baseAxes,curry$1($,_?"cross":!0,S)),_&&each$f(w.otherAxes,curry$1($,"cross",!1))}function $(I,B,R){var P=R.model.getModel("axisPointer",s),M=P.get("show");if(!(!M||M==="auto"&&!I&&!isHandleTrigger(P))){B==null&&(B=P.get("triggerTooltip")),P=I?makeAxisPointerModel(R,x,s,r,I,B):P;var O=P.get("snap"),D=makeKey(R.model),N=B||O||R.type==="category",H=t.axesInfo[D]={key:D,axis:R,coordSys:g,axisPointerModel:P,triggerTooltip:B,involveSeries:N,snap:O,useHandle:isHandleTrigger(P),seriesModels:[],linkGroup:null};b[D]=H,t.seriesInvolved=t.seriesInvolved||N;var Q=getLinkGroupIndex(l,R);if(Q!=null){var G=d[Q]||(d[Q]={axesInfo:{}});G.axesInfo[D]=H,G.mapper=l[Q].mapper,H.linkGroup=G}}}})}function makeAxisPointerModel(t,r,n,o,s,l){var d=r.getModel("axisPointer"),g=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],y={};each$f(g,function(S){y[S]=clone$4(d.get(S))}),y.snap=t.type!=="category"&&!!l,d.get("type")==="cross"&&(y.type="line");var b=y.label||(y.label={});if(b.show==null&&(b.show=!1),s==="cross"){var C=d.get(["label","show"]);if(b.show=C!=null?C:!0,!l){var x=y.lineStyle=d.get("crossStyle");x&&defaults(b,x.textStyle)}}return t.model.getModel("axisPointer",new Model$1(y,n,o))}function collectSeriesInfo(t,r){r.eachSeries(function(n){var o=n.coordinateSystem,s=n.get(["tooltip","trigger"],!0),l=n.get(["tooltip","show"],!0);!o||s==="none"||s===!1||s==="item"||l===!1||n.get(["axisPointer","show"],!0)===!1||each$f(t.coordSysAxesInfo[makeKey(o.model)],function(d){var g=d.axis;o.getAxis(g.dim)===g&&(d.seriesModels.push(n),d.seriesDataCount==null&&(d.seriesDataCount=0),d.seriesDataCount+=n.getData().count())})})}function getLinkGroupIndex(t,r){for(var n=r.model,o=r.dim,s=0;s<t.length;s++){var l=t[s]||{};if(checkPropInLink(l[o+"AxisId"],n.id)||checkPropInLink(l[o+"AxisIndex"],n.componentIndex)||checkPropInLink(l[o+"AxisName"],n.name))return s}}function checkPropInLink(t,r){return t==="all"||isArray$1(t)&&indexOf(t,r)>=0||t===r}function fixValue(t){var r=getAxisInfo$1(t);if(!!r){var n=r.axisPointerModel,o=r.axis.scale,s=n.option,l=n.get("status"),d=n.get("value");d!=null&&(d=o.parse(d));var g=isHandleTrigger(n);l==null&&(s.status=g?"show":"hide");var y=o.getExtent().slice();y[0]>y[1]&&y.reverse(),(d==null||d>y[1])&&(d=y[1]),d<y[0]&&(d=y[0]),s.value=d,g&&(s.status=r.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo$1(t){var r=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return r&&r.axesInfo[makeKey(t)]}function getAxisPointerModel(t){var r=getAxisInfo$1(t);return r&&r.axisPointerModel}function isHandleTrigger(t){return!!t.get(["handle","show"])}function makeKey(t){return t.type+"||"+t.id}var axisPointerClazz={},AxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s,l){this.axisPointerClass&&fixValue(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,s,!0)},r.prototype.updateAxisPointer=function(n,o,s,l){this._doUpdateAxisPointerClass(n,s,!1)},r.prototype.remove=function(n,o){var s=this._axisPointer;s&&s.remove(o)},r.prototype.dispose=function(n,o){this._disposeAxisPointer(o),t.prototype.dispose.apply(this,arguments)},r.prototype._doUpdateAxisPointerClass=function(n,o,s){var l=r.getAxisPointerClass(this.axisPointerClass);if(!!l){var d=getAxisPointerModel(n);d?(this._axisPointer||(this._axisPointer=new l)).render(n,d,o,s):this._disposeAxisPointer(o)}},r.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},r.registerAxisPointerClass=function(n,o){axisPointerClazz[n]=o},r.getAxisPointerClass=function(n){return n&&axisPointerClazz[n]},r.type="axis",r}(ComponentView$1),AxisView$1=AxisView,inner$f=makeInner();function rectCoordAxisBuildSplitArea(t,r,n,o){var s=n.axis;if(!s.scale.isBlank()){var l=n.getModel("splitArea"),d=l.getModel("areaStyle"),g=d.get("color"),y=o.coordinateSystem.getRect(),b=s.getTicksCoords({tickModel:l,clamp:!0});if(!!b.length){var C=g.length,x=inner$f(t).splitAreaColors,S=createHashMap(),_=0;if(x)for(var w=0;w<b.length;w++){var $=x.get(b[w].tickValue);if($!=null){_=($+(C-1)*w)%C;break}}var I=s.toGlobalCoord(b[0].coord),B=d.getAreaStyle();g=isArray$1(g)?g:[g];for(var w=1;w<b.length;w++){var R=s.toGlobalCoord(b[w].coord),P=void 0,M=void 0,O=void 0,D=void 0;s.isHorizontal()?(P=I,M=y.y,O=R-P,D=y.height,I=P+O):(P=y.x,M=I,O=y.width,D=R-M,I=M+D);var N=b[w-1].tickValue;N!=null&&S.set(N,_),r.add(new Rect$3({anid:N!=null?"area_"+N:null,shape:{x:P,y:M,width:O,height:D},style:defaults({fill:g[_]},B),autoBatch:!0,silent:!0})),_=(_+1)%C}inner$f(t).splitAreaColors=S}}}function rectCoordAxisHandleRemove(t){inner$f(t).splitAreaColors=null}var axisBuilderAttrs$3=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs$2=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.axisPointerClass="CartesianAxisPointer",n}return r.prototype.render=function(n,o,s,l){this.group.removeAll();var d=this._axisGroup;if(this._axisGroup=new Group$4,this.group.add(this._axisGroup),!!n.get("show")){var g=n.getCoordSysModel(),y=layout$2(g,n),b=new AxisBuilder$1(n,extend({handleAutoShown:function(x){for(var S=g.coordinateSystem.getCartesians(),_=0;_<S.length;_++)if(isIntervalOrLogScale(S[_].getOtherAxis(n.axis).scale))return!0;return!1}},y));each$f(axisBuilderAttrs$3,b.add,b),this._axisGroup.add(b.getGroup()),each$f(selfBuilderAttrs$2,function(x){n.get([x,"show"])&&axisElementBuilders$2[x](this,this._axisGroup,n,g)},this);var C=l&&l.type==="changeAxisOrder"&&l.isInitSort;C||groupTransition(d,this._axisGroup,n),t.prototype.render.call(this,n,o,s,l)}},r.prototype.remove=function(){rectCoordAxisHandleRemove(this)},r.type="cartesianAxis",r}(AxisView$1),axisElementBuilders$2={splitLine:function(t,r,n,o){var s=n.axis;if(!s.scale.isBlank()){var l=n.getModel("splitLine"),d=l.getModel("lineStyle"),g=d.get("color");g=isArray$1(g)?g:[g];for(var y=o.coordinateSystem.getRect(),b=s.isHorizontal(),C=0,x=s.getTicksCoords({tickModel:l}),S=[],_=[],w=d.getLineStyle(),$=0;$<x.length;$++){var I=s.toGlobalCoord(x[$].coord);b?(S[0]=I,S[1]=y.y,_[0]=I,_[1]=y.y+y.height):(S[0]=y.x,S[1]=I,_[0]=y.x+y.width,_[1]=I);var B=C++%g.length,R=x[$].tickValue,P=new Line$3({anid:R!=null?"line_"+x[$].tickValue:null,autoBatch:!0,shape:{x1:S[0],y1:S[1],x2:_[0],y2:_[1]},style:defaults({stroke:g[B]},w),silent:!0});subPixelOptimizeLine(P.shape,w.lineWidth),r.add(P)}}},minorSplitLine:function(t,r,n,o){var s=n.axis,l=n.getModel("minorSplitLine"),d=l.getModel("lineStyle"),g=o.coordinateSystem.getRect(),y=s.isHorizontal(),b=s.getMinorTicksCoords();if(!!b.length)for(var C=[],x=[],S=d.getLineStyle(),_=0;_<b.length;_++)for(var w=0;w<b[_].length;w++){var $=s.toGlobalCoord(b[_][w].coord);y?(C[0]=$,C[1]=g.y,x[0]=$,x[1]=g.y+g.height):(C[0]=g.x,C[1]=$,x[0]=g.x+g.width,x[1]=$);var I=new Line$3({anid:"minor_line_"+b[_][w].tickValue,autoBatch:!0,shape:{x1:C[0],y1:C[1],x2:x[0],y2:x[1]},style:S,silent:!0});subPixelOptimizeLine(I.shape,S.lineWidth),r.add(I)}},splitArea:function(t,r,n,o){rectCoordAxisBuildSplitArea(t,r,n,o)}},CartesianXAxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="xAxis",r}(CartesianAxisView),CartesianYAxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=CartesianXAxisView.type,n}return r.type="yAxis",r}(CartesianAxisView),GridView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return r.prototype.render=function(n,o){this.group.removeAll(),n.get("show")&&this.group.add(new Rect$3({shape:n.coordinateSystem.getRect(),style:defaults({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},r.type="grid",r}(ComponentView$1),extraOption={offset:0};function install$N(t){t.registerComponentView(GridView),t.registerComponentModel(GridModel$1),t.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator(t,"x",CartesianAxisModel,extraOption),axisModelCreator(t,"y",CartesianAxisModel,extraOption),t.registerComponentView(CartesianXAxisView),t.registerComponentView(CartesianYAxisView),t.registerPreprocessor(function(r){r.xAxis&&r.yAxis&&!r.grid&&(r.grid={})})}function install$M(t){use(install$N),t.registerSeriesModel(ScatterSeriesModel$1),t.registerChartView(ScatterView$1),t.registerLayout(pointsLayout("scatter"))}function radarLayout(t){t.eachSeriesByType("radar",function(r){var n=r.getData(),o=[],s=r.coordinateSystem;if(!!s){var l=s.getIndicatorAxes();each$f(l,function(d,g){n.each(n.mapDimension(l[g].dim),function(y,b){o[b]=o[b]||[];var C=s.dataToPoint(y,g);o[b][g]=isValidPoint(C)?C:getValueMissingPoint(s)})}),n.each(function(d){var g=find(o[d],function(y){return isValidPoint(y)})||getValueMissingPoint(s);o[d].push(g.slice()),n.setItemLayout(d,o[d])})}})}function isValidPoint(t){return!isNaN(t[0])&&!isNaN(t[1])}function getValueMissingPoint(t){return[t.cx,t.cy]}function radarBackwardCompat(t){var r=t.polar;if(r){isArray$1(r)||(r=[r]);var n=[];each$f(r,function(o,s){o.indicator?(o.type&&!o.shape&&(o.shape=o.type),t.radar=t.radar||[],isArray$1(t.radar)||(t.radar=[t.radar]),t.radar.push(o)):n.push(o)}),t.polar=n}each$f(t.series,function(o){o&&o.type==="radar"&&o.polarIndex&&(o.radarIndex=o.polarIndex)})}var RadarView$2=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=n.coordinateSystem,d=this.group,g=n.getData(),y=this._data;function b(S,_){var w=S.getItemVisual(_,"symbol")||"circle";if(w!=="none"){var $=normalizeSymbolSize(S.getItemVisual(_,"symbolSize")),I=createSymbol$1(w,-1,-1,2,2),B=S.getItemVisual(_,"symbolRotate")||0;return I.attr({style:{strokeNoScale:!0},z2:100,scaleX:$[0]/2,scaleY:$[1]/2,rotation:B*Math.PI/180||0}),I}}function C(S,_,w,$,I,B){w.removeAll();for(var R=0;R<_.length-1;R++){var P=b($,I);P&&(P.__dimIdx=R,S[R]?(P.setPosition(S[R]),graphic$1[B?"initProps":"updateProps"](P,{x:_[R][0],y:_[R][1]},n,I)):P.setPosition(_[R]),w.add(P))}}function x(S){return map$1(S,function(_){return[l.cx,l.cy]})}g.diff(y).add(function(S){var _=g.getItemLayout(S);if(!!_){var w=new Polygon$1,$=new Polyline$3,I={shape:{points:_}};w.shape.points=x(_),$.shape.points=x(_),initProps(w,I,n,S),initProps($,I,n,S);var B=new Group$4,R=new Group$4;B.add($),B.add(w),B.add(R),C($.shape.points,_,R,g,S,!0),g.setItemGraphicEl(S,B)}}).update(function(S,_){var w=y.getItemGraphicEl(_),$=w.childAt(0),I=w.childAt(1),B=w.childAt(2),R={shape:{points:g.getItemLayout(S)}};!R.shape.points||(C($.shape.points,R.shape.points,B,g,S,!1),saveOldStyle(I),saveOldStyle($),updateProps$1($,R,n),updateProps$1(I,R,n),g.setItemGraphicEl(S,w))}).remove(function(S){d.remove(y.getItemGraphicEl(S))}).execute(),g.eachItemGraphicEl(function(S,_){var w=g.getItemModel(_),$=S.childAt(0),I=S.childAt(1),B=S.childAt(2),R=g.getItemVisual(_,"style"),P=R.fill;d.add(S),$.useStyle(defaults(w.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:P})),setStatesStylesFromModel($,w,"lineStyle"),setStatesStylesFromModel(I,w,"areaStyle");var M=w.getModel("areaStyle"),O=M.isEmpty()&&M.parentModel.isEmpty();I.ignore=O,each$f(["emphasis","select","blur"],function(H){var Q=w.getModel([H,"areaStyle"]),G=Q.isEmpty()&&Q.parentModel.isEmpty();I.ensureState(H).ignore=G&&O}),I.useStyle(defaults(M.getAreaStyle(),{fill:P,opacity:.7,decal:R.decal}));var D=w.getModel("emphasis"),N=D.getModel("itemStyle").getItemStyle();B.eachChild(function(H){if(H instanceof ZRImage$1){var Q=H.style;H.useStyle(extend({image:Q.image,x:Q.x,y:Q.y,width:Q.width,height:Q.height},R))}else H.useStyle(R),H.setColor(P),H.style.strokeNoScale=!0;var G=H.ensureState("emphasis");G.style=clone$4(N);var K=g.getStore().get(g.getDimensionIndex(H.__dimIdx),_);(K==null||isNaN(K))&&(K=""),setLabelStyle(H,getLabelStatesModels(w),{labelFetcher:g.hostModel,labelDataIndex:_,labelDimIndex:H.__dimIdx,defaultText:K,inheritColor:P,defaultOpacity:R.opacity})}),toggleHoverEmphasis(S,D.get("focus"),D.get("blurScope"),D.get("disabled"))}),this._data=g},r.prototype.remove=function(){this.group.removeAll(),this._data=null},r.type="radar",r}(ChartView$1),RadarView$3=RadarView$2,RadarSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.hasSymbolVisual=!0,n}return r.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this))},r.prototype.getInitialData=function(n,o){return createSeriesDataSimply(this,{generateCoord:"indicator_",generateCoordCount:1/0})},r.prototype.formatTooltip=function(n,o,s){var l=this.getData(),d=this.coordinateSystem,g=d.getIndicatorAxes(),y=this.getData().getName(n),b=y===""?this.name:y,C=retrieveVisualColorForTooltipMarker(this,n);return createTooltipMarkup("section",{header:b,sortBlocks:!0,blocks:map$1(g,function(x){var S=l.get(l.mapDimension(x.dim),n);return createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:C,name:x.name,value:S,sortParam:S})})})},r.prototype.getTooltipPosition=function(n){if(n!=null){for(var o=this.getData(),s=this.coordinateSystem,l=o.getValues(map$1(s.dimensions,function(b){return o.mapDimension(b)}),n),d=0,g=l.length;d<g;d++)if(!isNaN(l[d])){var y=s.getIndicatorAxes();return s.coordToPoint(y[d].dataToCoord(l[d]),d)}}},r.type="series.radar",r.dependencies=["radar"],r.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},r}(SeriesModel$1),RadarSeriesModel$1=RadarSeriesModel,valueAxisDefault=axisDefault.value;function defaultsShow(t,r){return defaults({show:r},t)}var RadarModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),o=this.get("splitNumber"),s=this.get("scale"),l=this.get("axisLine"),d=this.get("axisTick"),g=this.get("axisLabel"),y=this.get("axisName"),b=this.get(["axisName","show"]),C=this.get(["axisName","formatter"]),x=this.get("axisNameGap"),S=this.get("triggerEvent"),_=map$1(this.get("indicator")||[],function(w){w.max!=null&&w.max>0&&!w.min?w.min=0:w.min!=null&&w.min<0&&!w.max&&(w.max=0);var $=y;w.color!=null&&($=defaults({color:w.color},y));var I=merge(clone$4(w),{boundaryGap:n,splitNumber:o,scale:s,axisLine:l,axisTick:d,axisLabel:g,name:w.text,showName:b,nameLocation:"end",nameGap:x,nameTextStyle:$,triggerEvent:S},!1);if(isString(C)){var B=I.name;I.name=C.replace("{value}",B!=null?B:"")}else isFunction(C)&&(I.name=C(I.name,I));var R=new Model$1(I,null,this.ecModel);return mixin(R,AxisModelCommonMixin.prototype),R.mainType="radar",R.componentIndex=this.componentIndex,R},this);this._indicatorModels=_},r.prototype.getIndicatorModels=function(){return this._indicatorModels},r.type="radar",r.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:merge({lineStyle:{color:"#bbb"}},valueAxisDefault.axisLine),axisLabel:defaultsShow(valueAxisDefault.axisLabel,!1),axisTick:defaultsShow(valueAxisDefault.axisTick,!1),splitLine:defaultsShow(valueAxisDefault.splitLine,!0),splitArea:defaultsShow(valueAxisDefault.splitArea,!0),indicator:[]},r}(ComponentModel$1),RadarModel$1=RadarModel,axisBuilderAttrs$2=["axisLine","axisTickLabel","axisName"],RadarView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=this.group;l.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},r.prototype._buildAxes=function(n){var o=n.coordinateSystem,s=o.getIndicatorAxes(),l=map$1(s,function(d){var g=d.model.get("showName")?d.name:"",y=new AxisBuilder$1(d.model,{axisName:g,position:[o.cx,o.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return y});each$f(l,function(d){each$f(axisBuilderAttrs$2,d.add,d),this.group.add(d.getGroup())},this)},r.prototype._buildSplitLineAndArea=function(n){var o=n.coordinateSystem,s=o.getIndicatorAxes();if(!s.length)return;var l=n.get("shape"),d=n.getModel("splitLine"),g=n.getModel("splitArea"),y=d.getModel("lineStyle"),b=g.getModel("areaStyle"),C=d.get("show"),x=g.get("show"),S=y.get("color"),_=b.get("color"),w=isArray$1(S)?S:[S],$=isArray$1(_)?_:[_],I=[],B=[];function R(q,X,re){var te=re%X.length;return q[te]=q[te]||[],te}if(l==="circle")for(var P=s[0].getTicksCoords(),M=o.cx,O=o.cy,D=0;D<P.length;D++){if(C){var N=R(I,w,D);I[N].push(new Circle$1({shape:{cx:M,cy:O,r:P[D].coord}}))}if(x&&D<P.length-1){var N=R(B,$,D);B[N].push(new Ring$1({shape:{cx:M,cy:O,r0:P[D].coord,r:P[D+1].coord}}))}}else for(var H,Q=map$1(s,function(q,X){var re=q.getTicksCoords();return H=H==null?re.length-1:Math.min(re.length-1,H),map$1(re,function(te){return o.coordToPoint(te.coord,X)})}),G=[],D=0;D<=H;D++){for(var K=[],W=0;W<s.length;W++)K.push(Q[W][D]);if(K[0]&&K.push(K[0].slice()),C){var N=R(I,w,D);I[N].push(new Polyline$3({shape:{points:K}}))}if(x&&G){var N=R(B,$,D-1);B[N].push(new Polygon$1({shape:{points:K.concat(G)}}))}G=K.slice().reverse()}var j=y.getLineStyle(),Y=b.getAreaStyle();each$f(B,function(q,X){this.group.add(mergePath(q,{style:defaults({stroke:"none",fill:$[X%$.length]},Y),silent:!0}))},this),each$f(I,function(q,X){this.group.add(mergePath(q,{style:defaults({fill:"none",stroke:w[X%w.length]},j),silent:!0}))},this)},r.type="radar",r}(ComponentView$1),RadarView$1=RadarView,IndicatorAxis=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this,n,o,s)||this;return l.type="value",l.angle=0,l.name="",l}return r}(Axis$1),IndicatorAxis$1=IndicatorAxis,Radar=function(){function t(r,n,o){this.dimensions=[],this._model=r,this._indicatorAxes=map$1(r.getIndicatorModels(),function(s,l){var d="indicator_"+l,g=new IndicatorAxis$1(d,new IntervalScale$1);return g.name=s.get("name"),g.model=s,s.axis=g,this.dimensions.push(d),g},this),this.resize(r,o)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(r,n){var o=this._indicatorAxes[n];return this.coordToPoint(o.dataToCoord(r),n)},t.prototype.coordToPoint=function(r,n){var o=this._indicatorAxes[n],s=o.angle,l=this.cx+r*Math.cos(s),d=this.cy-r*Math.sin(s);return[l,d]},t.prototype.pointToData=function(r){var n=r[0]-this.cx,o=r[1]-this.cy,s=Math.sqrt(n*n+o*o);n/=s,o/=s;for(var l=Math.atan2(-o,n),d=1/0,g,y=-1,b=0;b<this._indicatorAxes.length;b++){var C=this._indicatorAxes[b],x=Math.abs(l-C.angle);x<d&&(g=C,y=b,d=x)}return[y,+(g&&g.coordToData(s))]},t.prototype.resize=function(r,n){var o=r.get("center"),s=n.getWidth(),l=n.getHeight(),d=Math.min(s,l)/2;this.cx=parsePercent(o[0],s),this.cy=parsePercent(o[1],l),this.startAngle=r.get("startAngle")*Math.PI/180;var g=r.get("radius");(isString(g)||isNumber(g))&&(g=[0,g]),this.r0=parsePercent(g[0],d),this.r=parsePercent(g[1],d),each$f(this._indicatorAxes,function(y,b){y.setExtent(this.r0,this.r);var C=this.startAngle+b*Math.PI*2/this._indicatorAxes.length;C=Math.atan2(Math.sin(C),Math.cos(C)),y.angle=C},this)},t.prototype.update=function(r,n){var o=this._indicatorAxes,s=this._model;each$f(o,function(g){g.scale.setExtent(1/0,-1/0)}),r.eachSeriesByType("radar",function(g,y){if(!(g.get("coordinateSystem")!=="radar"||r.getComponent("radar",g.get("radarIndex"))!==s)){var b=g.getData();each$f(o,function(C){C.scale.unionExtentFromData(b,b.mapDimension(C.dim))})}},this);var l=s.get("splitNumber"),d=new IntervalScale$1;d.setExtent(0,l),d.setInterval(1),each$f(o,function(g,y){alignScaleTicks(g.scale,g.model,d)})},t.prototype.convertToPixel=function(r,n,o){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(r,n,o){return console.warn("Not implemented."),null},t.prototype.containPoint=function(r){return console.warn("Not implemented."),!1},t.create=function(r,n){var o=[];return r.eachComponent("radar",function(s){var l=new t(s,r,n);o.push(l),s.coordinateSystem=l}),r.eachSeriesByType("radar",function(s){s.get("coordinateSystem")==="radar"&&(s.coordinateSystem=o[s.get("radarIndex")||0])}),o},t.dimensions=[],t}(),Radar$1=Radar;function install$L(t){t.registerCoordinateSystem("radar",Radar$1),t.registerComponentModel(RadarModel$1),t.registerComponentView(RadarView$1),t.registerVisual({seriesType:"radar",reset:function(r){var n=r.getData();n.each(function(o){n.setItemVisual(o,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function install$K(t){use(install$L),t.registerChartView(RadarView$3),t.registerSeriesModel(RadarSeriesModel$1),t.registerLayout(radarLayout),t.registerProcessor(dataFilter$1("radar")),t.registerPreprocessor(radarBackwardCompat)}var ATTR="\0_ec_interaction_mutex";function take(t,r,n){var o=getStore(t);o[r]=n}function release(t,r,n){var o=getStore(t),s=o[r];s===n&&(o[r]=null)}function isTaken(t,r){return!!getStore(t)[r]}function getStore(t){return t[ATTR]||(t[ATTR]={})}registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},noop);var RoamController=function(t){__extends$1(r,t);function r(n){var o=t.call(this)||this;o._zr=n;var s=bind$1(o._mousedownHandler,o),l=bind$1(o._mousemoveHandler,o),d=bind$1(o._mouseupHandler,o),g=bind$1(o._mousewheelHandler,o),y=bind$1(o._pinchHandler,o);return o.enable=function(b,C){this.disable(),this._opt=defaults(clone$4(C)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),b==null&&(b=!0),(b===!0||b==="move"||b==="pan")&&(n.on("mousedown",s),n.on("mousemove",l),n.on("mouseup",d)),(b===!0||b==="scale"||b==="zoom")&&(n.on("mousewheel",g),n.on("pinch",y))},o.disable=function(){n.off("mousedown",s),n.off("mousemove",l),n.off("mouseup",d),n.off("mousewheel",g),n.off("pinch",y)},o}return r.prototype.isDragging=function(){return this._dragging},r.prototype.isPinching=function(){return this._pinching},r.prototype.setPointerChecker=function(n){this.pointerChecker=n},r.prototype.dispose=function(){this.disable()},r.prototype._mousedownHandler=function(n){if(!isMiddleOrRightButtonOnMouseUpDown(n)){for(var o=n.target;o;){if(o.draggable)return;o=o.__hostTarget||o.parent}var s=n.offsetX,l=n.offsetY;this.pointerChecker&&this.pointerChecker(n,s,l)&&(this._x=s,this._y=l,this._dragging=!0)}},r.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var o=n.offsetX,s=n.offsetY,l=this._x,d=this._y,g=o-l,y=s-d;this._x=o,this._y=s,this._opt.preventDefaultMouseMove&&stop(n.event),trigger$1(this,"pan","moveOnMouseMove",n,{dx:g,dy:y,oldX:l,oldY:d,newX:o,newY:s,isAvailableBehavior:null})}},r.prototype._mouseupHandler=function(n){isMiddleOrRightButtonOnMouseUpDown(n)||(this._dragging=!1)},r.prototype._mousewheelHandler=function(n){var o=isAvailableBehavior("zoomOnMouseWheel",n,this._opt),s=isAvailableBehavior("moveOnMouseWheel",n,this._opt),l=n.wheelDelta,d=Math.abs(l),g=n.offsetX,y=n.offsetY;if(!(l===0||!o&&!s)){if(o){var b=d>3?1.4:d>1?1.2:1.1,C=l>0?b:1/b;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",n,{scale:C,originX:g,originY:y,isAvailableBehavior:null})}if(s){var x=Math.abs(l),S=(l>0?1:-1)*(x>3?.4:x>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:S,originX:g,originY:y,isAvailableBehavior:null})}}},r.prototype._pinchHandler=function(n){if(!isTaken(this._zr,"globalPan")){var o=n.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,n,{scale:o,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},r}(Eventful$1);function checkPointerAndTrigger(t,r,n,o,s){t.pointerChecker&&t.pointerChecker(o,s.originX,s.originY)&&(stop(o.event),trigger$1(t,r,n,o,s))}function trigger$1(t,r,n,o,s){s.isAvailableBehavior=bind$1(isAvailableBehavior,null,n,o),t.trigger(r,s)}function isAvailableBehavior(t,r,n){var o=n[t];return!t||o&&(!isString(o)||r.event[o+"Key"])}var RoamController$1=RoamController;function updateViewOnPan(t,r,n){var o=t.target;o.x+=r,o.y+=n,o.dirty()}function updateViewOnZoom(t,r,n,o){var s=t.target,l=t.zoomLimit,d=t.zoom=t.zoom||1;if(d*=r,l){var g=l.min||0,y=l.max||1/0;d=Math.max(Math.min(y,d),g)}var b=d/t.zoom;t.zoom=d,s.x-=(n-s.x)*(b-1),s.y-=(o-s.y)*(b-1),s.scaleX*=b,s.scaleY*=b,s.dirty()}var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement(t,r,n){var o=r.getComponentByElement(t.topTarget),s=o&&o.coordinateSystem;return o&&o!==n&&!IRRELEVANT_EXCLUDES.hasOwnProperty(o.mainType)&&s&&s.model!==n}function parseXML(t){if(isString(t)){var r=new DOMParser;t=r.parseFromString(t,"text/xml")}var n=t;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var nodeParsers,INHERITABLE_STYLE_ATTRIBUTES_MAP={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"},INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS=keys(INHERITABLE_STYLE_ATTRIBUTES_MAP),SELF_STYLE_ATTRIBUTES_MAP={"alignment-baseline":"textBaseline","stop-color":"stopColor"},SELF_STYLE_ATTRIBUTES_MAP_KEYS=keys(SELF_STYLE_ATTRIBUTES_MAP),SVGParser=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(r,n){n=n||{};var o=parseXML(r);this._defsUsePending=[];var s=new Group$4;this._root=s;var l=[],d=o.getAttribute("viewBox")||"",g=parseFloat(o.getAttribute("width")||n.width),y=parseFloat(o.getAttribute("height")||n.height);isNaN(g)&&(g=null),isNaN(y)&&(y=null),parseAttributes(o,s,null,!0,!1);for(var b=o.firstChild;b;)this._parseNode(b,s,l,null,!1,!1),b=b.nextSibling;applyDefs(this._defs,this._defsUsePending),this._defsUsePending=[];var C,x;if(d){var S=splitNumberSequence(d);S.length>=4&&(C={x:parseFloat(S[0]||0),y:parseFloat(S[1]||0),width:parseFloat(S[2]),height:parseFloat(S[3])})}if(C&&g!=null&&y!=null&&(x=makeViewBoxTransform(C,{x:0,y:0,width:g,height:y}),!n.ignoreViewBox)){var _=s;s=new Group$4,s.add(_),_.scaleX=_.scaleY=x.scale,_.x=x.x,_.y=x.y}return!n.ignoreRootClip&&g!=null&&y!=null&&s.setClipPath(new Rect$3({shape:{x:0,y:0,width:g,height:y}})),{root:s,width:g,height:y,viewBoxRect:C,viewBoxTransform:x,named:l}},t.prototype._parseNode=function(r,n,o,s,l,d){var g=r.nodeName.toLowerCase(),y,b=s;if(g==="defs"&&(l=!0),g==="text"&&(d=!0),g==="defs"||g==="switch")y=n;else{if(!l){var C=nodeParsers[g];if(C&&hasOwn(nodeParsers,g)){y=C.call(this,r,n);var x=r.getAttribute("name");if(x){var S={name:x,namedFrom:null,svgNodeTagLower:g,el:y};o.push(S),g==="g"&&(b=S)}else s&&o.push({name:s.name,namedFrom:s,svgNodeTagLower:g,el:y});n.add(y)}}var _=paintServerParsers[g];if(_&&hasOwn(paintServerParsers,g)){var w=_.call(this,r),$=r.getAttribute("id");$&&(this._defs[$]=w)}}if(y&&y.isGroup)for(var I=r.firstChild;I;)I.nodeType===1?this._parseNode(I,y,o,b,l,d):I.nodeType===3&&d&&this._parseText(I,y),I=I.nextSibling},t.prototype._parseText=function(r,n){var o=new TSpan$1({style:{text:r.textContent},silent:!0,x:this._textX||0,y:this._textY||0});inheritStyle(n,o),parseAttributes(r,o,this._defsUsePending,!1,!1),applyTextAlignment(o,n);var s=o.style,l=s.fontSize;l&&l<9&&(s.fontSize=9,o.scaleX*=l/9,o.scaleY*=l/9);var d=(s.fontSize||s.fontFamily)&&[s.fontStyle,s.fontWeight,(s.fontSize||12)+"px",s.fontFamily||"sans-serif"].join(" ");s.font=d;var g=o.getBoundingRect();return this._textX+=g.width,n.add(o),o},t.internalField=function(){nodeParsers={g:function(r,n){var o=new Group$4;return inheritStyle(n,o),parseAttributes(r,o,this._defsUsePending,!1,!1),o},rect:function(r,n){var o=new Rect$3;return inheritStyle(n,o),parseAttributes(r,o,this._defsUsePending,!1,!1),o.setShape({x:parseFloat(r.getAttribute("x")||"0"),y:parseFloat(r.getAttribute("y")||"0"),width:parseFloat(r.getAttribute("width")||"0"),height:parseFloat(r.getAttribute("height")||"0")}),o.silent=!0,o},circle:function(r,n){var o=new Circle$1;return inheritStyle(n,o),parseAttributes(r,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),r:parseFloat(r.getAttribute("r")||"0")}),o.silent=!0,o},line:function(r,n){var o=new Line$3;return inheritStyle(n,o),parseAttributes(r,o,this._defsUsePending,!1,!1),o.setShape({x1:parseFloat(r.getAttribute("x1")||"0"),y1:parseFloat(r.getAttribute("y1")||"0"),x2:parseFloat(r.getAttribute("x2")||"0"),y2:parseFloat(r.getAttribute("y2")||"0")}),o.silent=!0,o},ellipse:function(r,n){var o=new Ellipse$1;return inheritStyle(n,o),parseAttributes(r,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(r.getAttribute("cx")||"0"),cy:parseFloat(r.getAttribute("cy")||"0"),rx:parseFloat(r.getAttribute("rx")||"0"),ry:parseFloat(r.getAttribute("ry")||"0")}),o.silent=!0,o},polygon:function(r,n){var o=r.getAttribute("points"),s;o&&(s=parsePoints(o));var l=new Polygon$1({shape:{points:s||[]},silent:!0});return inheritStyle(n,l),parseAttributes(r,l,this._defsUsePending,!1,!1),l},polyline:function(r,n){var o=r.getAttribute("points"),s;o&&(s=parsePoints(o));var l=new Polyline$3({shape:{points:s||[]},silent:!0});return inheritStyle(n,l),parseAttributes(r,l,this._defsUsePending,!1,!1),l},image:function(r,n){var o=new ZRImage$1;return inheritStyle(n,o),parseAttributes(r,o,this._defsUsePending,!1,!1),o.setStyle({image:r.getAttribute("xlink:href")||r.getAttribute("href"),x:+r.getAttribute("x"),y:+r.getAttribute("y"),width:+r.getAttribute("width"),height:+r.getAttribute("height")}),o.silent=!0,o},text:function(r,n){var o=r.getAttribute("x")||"0",s=r.getAttribute("y")||"0",l=r.getAttribute("dx")||"0",d=r.getAttribute("dy")||"0";this._textX=parseFloat(o)+parseFloat(l),this._textY=parseFloat(s)+parseFloat(d);var g=new Group$4;return inheritStyle(n,g),parseAttributes(r,g,this._defsUsePending,!1,!0),g},tspan:function(r,n){var o=r.getAttribute("x"),s=r.getAttribute("y");o!=null&&(this._textX=parseFloat(o)),s!=null&&(this._textY=parseFloat(s));var l=r.getAttribute("dx")||"0",d=r.getAttribute("dy")||"0",g=new Group$4;return inheritStyle(n,g),parseAttributes(r,g,this._defsUsePending,!1,!0),this._textX+=parseFloat(l),this._textY+=parseFloat(d),g},path:function(r,n){var o=r.getAttribute("d")||"",s=createFromString(o);return inheritStyle(n,s),parseAttributes(r,s,this._defsUsePending,!1,!1),s.silent=!0,s}}}(),t}(),paintServerParsers={lineargradient:function(t){var r=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),o=parseInt(t.getAttribute("x2")||"10",10),s=parseInt(t.getAttribute("y2")||"0",10),l=new LinearGradient$1(r,n,o,s);return parsePaintServerUnit(t,l),parseGradientColorStops(t,l),l},radialgradient:function(t){var r=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),o=parseInt(t.getAttribute("r")||"0",10),s=new RadialGradient$1(r,n,o);return parsePaintServerUnit(t,s),parseGradientColorStops(t,s),s}};function parsePaintServerUnit(t,r){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(r.global=!0)}function parseGradientColorStops(t,r){for(var n=t.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var o=n.getAttribute("offset"),s=void 0;o&&o.indexOf("%")>0?s=parseInt(o,10)/100:o?s=parseFloat(o):s=0;var l={};parseInlineStyle(n,l,l);var d=l.stopColor||n.getAttribute("stop-color")||"#000000";r.colorStops.push({offset:s,color:d})}n=n.nextSibling}}function inheritStyle(t,r){t&&t.__inheritedStyle&&(r.__inheritedStyle||(r.__inheritedStyle={}),defaults(r.__inheritedStyle,t.__inheritedStyle))}function parsePoints(t){for(var r=splitNumberSequence(t),n=[],o=0;o<r.length;o+=2){var s=parseFloat(r[o]),l=parseFloat(r[o+1]);n.push([s,l])}return n}function parseAttributes(t,r,n,o,s){var l=r,d=l.__inheritedStyle=l.__inheritedStyle||{},g={};t.nodeType===1&&(parseTransformAttribute(t,r),parseInlineStyle(t,d,g),o||parseAttributeStyle(t,d,g)),l.style=l.style||{},d.fill!=null&&(l.style.fill=getFillStrokeStyle(l,"fill",d.fill,n)),d.stroke!=null&&(l.style.stroke=getFillStrokeStyle(l,"stroke",d.stroke,n)),each$f(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(y){d[y]!=null&&(l.style[y]=parseFloat(d[y]))}),each$f(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(y){d[y]!=null&&(l.style[y]=d[y])}),s&&(l.__selfStyle=g),d.lineDash&&(l.style.lineDash=map$1(splitNumberSequence(d.lineDash),function(y){return parseFloat(y)})),(d.visibility==="hidden"||d.visibility==="collapse")&&(l.invisible=!0),d.display==="none"&&(l.ignore=!0)}function applyTextAlignment(t,r){var n=r.__selfStyle;if(n){var o=n.textBaseline,s=o;!o||o==="auto"||o==="baseline"?s="alphabetic":o==="before-edge"||o==="text-before-edge"?s="top":o==="after-edge"||o==="text-after-edge"?s="bottom":(o==="central"||o==="mathematical")&&(s="middle"),t.style.textBaseline=s}var l=r.__inheritedStyle;if(l){var d=l.textAlign,g=d;d&&(d==="middle"&&(g="center"),t.style.textAlign=g)}}var urlRegex=/^url\(\s*#(.*?)\)/;function getFillStrokeStyle(t,r,n,o){var s=n&&n.match(urlRegex);if(s){var l=trim$1(s[1]);o.push([t,r,l]);return}return n==="none"&&(n=null),n}function applyDefs(t,r){for(var n=0;n<r.length;n++){var o=r[n];o[0].style[o[1]]=t[o[2]]}}var numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function splitNumberSequence(t){return t.match(numberReg)||[]}var transformRegex=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,DEGREE_TO_ANGLE=Math.PI/180;function parseTransformAttribute(t,r){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var o=[],s=null;n.replace(transformRegex,function(x,S,_){return o.push(S,_),""});for(var l=o.length-1;l>0;l-=2){var d=o[l],g=o[l-1],y=splitNumberSequence(d);switch(s=s||create$1(),g){case"translate":translate(s,s,[parseFloat(y[0]),parseFloat(y[1]||"0")]);break;case"scale":scale$1(s,s,[parseFloat(y[0]),parseFloat(y[1]||y[0])]);break;case"rotate":rotate(s,s,-parseFloat(y[0])*DEGREE_TO_ANGLE);break;case"skewX":var b=Math.tan(parseFloat(y[0])*DEGREE_TO_ANGLE);mul(s,[1,0,b,1,0,0],s);break;case"skewY":var C=Math.tan(parseFloat(y[0])*DEGREE_TO_ANGLE);mul(s,[1,C,0,1,0,0],s);break;case"matrix":s[0]=parseFloat(y[0]),s[1]=parseFloat(y[1]),s[2]=parseFloat(y[2]),s[3]=parseFloat(y[3]),s[4]=parseFloat(y[4]),s[5]=parseFloat(y[5]);break}}r.setLocalTransform(s)}}var styleRegex=/([^\s:;]+)\s*:\s*([^:;]+)/g;function parseInlineStyle(t,r,n){var o=t.getAttribute("style");if(!!o){styleRegex.lastIndex=0;for(var s;(s=styleRegex.exec(o))!=null;){var l=s[1],d=hasOwn(INHERITABLE_STYLE_ATTRIBUTES_MAP,l)?INHERITABLE_STYLE_ATTRIBUTES_MAP[l]:null;d&&(r[d]=s[2]);var g=hasOwn(SELF_STYLE_ATTRIBUTES_MAP,l)?SELF_STYLE_ATTRIBUTES_MAP[l]:null;g&&(n[g]=s[2])}}}function parseAttributeStyle(t,r,n){for(var o=0;o<INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS.length;o++){var s=INHERITABLE_STYLE_ATTRIBUTES_MAP_KEYS[o],l=t.getAttribute(s);l!=null&&(r[INHERITABLE_STYLE_ATTRIBUTES_MAP[s]]=l)}for(var o=0;o<SELF_STYLE_ATTRIBUTES_MAP_KEYS.length;o++){var s=SELF_STYLE_ATTRIBUTES_MAP_KEYS[o],l=t.getAttribute(s);l!=null&&(n[SELF_STYLE_ATTRIBUTES_MAP[s]]=l)}}function makeViewBoxTransform(t,r){var n=r.width/t.width,o=r.height/t.height,s=Math.min(n,o);return{scale:s,x:-(t.x+t.width/2)*s+(r.x+r.width/2),y:-(t.y+t.height/2)*s+(r.y+r.height/2)}}function parseSVG(t,r){var n=new SVGParser;return n.parse(t,r)}var REGION_AVAILABLE_SVG_TAG_MAP=createHashMap(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),GeoSVGResource=function(){function t(r,n){this.type="geoSVG",this._usedGraphicMap=createHashMap(),this._freedGraphics=[],this._mapName=r,this._parsedXML=parseXML(n)}return t.prototype.load=function(){var r=this._firstGraphic;if(!r){r=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(r),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=createRegions(r.named),o=n.regions,s=n.regionsMap;this._regions=o,this._regionsMap=s}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(r){var n,o;try{n=r&&parseSVG(r,{ignoreViewBox:!0,ignoreRootClip:!0})||{},o=n.root,assert(o!=null)}catch(I){throw new Error(`Invalid svg format
|
|
`+I.message)}var s=new Group$4;s.add(o),s.isGeoSVGGraphicRoot=!0;var l=n.width,d=n.height,g=n.viewBoxRect,y=this._boundingRect;if(!y){var b=void 0,C=void 0,x=void 0,S=void 0;if(l!=null?(b=0,x=l):g&&(b=g.x,x=g.width),d!=null?(C=0,S=d):g&&(C=g.y,S=g.height),b==null||C==null){var _=o.getBoundingRect();b==null&&(b=_.x,x=_.width),C==null&&(C=_.y,S=_.height)}y=this._boundingRect=new BoundingRect$1(b,C,x,S)}if(g){var w=makeViewBoxTransform(g,y);o.scaleX=o.scaleY=w.scale,o.x=w.x,o.y=w.y}s.setClipPath(new Rect$3({shape:y.plain()}));var $=[];return each$f(n.named,function(I){REGION_AVAILABLE_SVG_TAG_MAP.get(I.svgNodeTagLower)!=null&&($.push(I),setSilent(I.el))}),{root:s,boundingRect:y,named:$}},t.prototype.useGraphic=function(r){var n=this._usedGraphicMap,o=n.get(r);return o||(o=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(r,o),o)},t.prototype.freeGraphic=function(r){var n=this._usedGraphicMap,o=n.get(r);o&&(n.removeKey(r),this._freedGraphics.push(o))},t}();function setSilent(t){t.silent=!1,t.isGroup&&t.traverse(function(r){r.silent=!1})}function createRegions(t){var r=[],n=createHashMap();return each$f(t,function(o){if(o.namedFrom==null){var s=new GeoSVGRegion(o.name,o.el);r.push(s),n.set(o.name,s)}}),{regions:r,regionsMap:n}}var geoCoord=[126,25],nanhaiName="\u5357\u6D77\u8BF8\u5C9B",points$1=[[[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 i=0;i<points$1.length;i++)for(var k=0;k<points$1[i].length;k++)points$1[i][k][0]/=10.5,points$1[i][k][1]/=-10.5/.75,points$1[i][k][0]+=geoCoord[0],points$1[i][k][1]+=geoCoord[1];function fixNanhai(t,r){if(t==="china"){for(var n=0;n<r.length;n++)if(r[n].name===nanhaiName)return;r.push(new GeoJSONRegion(nanhaiName,map$1(points$1,function(o){return{type:"polygon",exterior:o}}),geoCoord))}}var coordsOffsetMap={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function fixTextCoords(t,r){if(t==="china"){var n=coordsOffsetMap[r.name];if(n){var o=r.getCenter();o[0]+=n[0]/10.5,o[1]+=-n[1]/(10.5/.75),r.setCenter(o)}}}var points=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function fixDiaoyuIsland(t,r){t==="china"&&r.name==="\u53F0\u6E7E"&&r.geometries.push({type:"polygon",exterior:points[0]})}var DEFAULT_NAME_PROPERTY="name",GeoJSONResource=function(){function t(r,n,o){this.type="geoJSON",this._parsedMap=createHashMap(),this._mapName=r,this._specialAreas=o,this._geoJSON=parseInput(n)}return t.prototype.load=function(r,n){n=n||DEFAULT_NAME_PROPERTY;var o=this._parsedMap.get(n);if(!o){var s=this._parseToRegions(n);o=this._parsedMap.set(n,{regions:s,boundingRect:calculateBoundingRect(s)})}var l=createHashMap(),d=[];return each$f(o.regions,function(g){var y=g.name;r&&hasOwn(r,y)&&(g=g.cloneShallow(y=r[y])),d.push(g),l.set(y,g)}),{regions:d,boundingRect:o.boundingRect||new BoundingRect$1(0,0,0,0),regionsMap:l}},t.prototype._parseToRegions=function(r){var n=this._mapName,o=this._geoJSON,s;try{s=o?parseGeoJSON(o,r):[]}catch(l){throw new Error(`Invalid geoJson format
|
|
`+l.message)}return fixNanhai(n,s),each$f(s,function(l){var d=l.name;fixTextCoords(n,l),fixDiaoyuIsland(n,l);var g=this._specialAreas&&this._specialAreas[d];g&&l.transformTo(g.left,g.top,g.width,g.height)},this),s},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function calculateBoundingRect(t){for(var r,n=0;n<t.length;n++){var o=t[n].getBoundingRect();r=r||o.clone(),r.union(o)}return r}function parseInput(t){return isString(t)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var storage=createHashMap(),geoSourceManager={registerMap:function(t,r,n){if(r.svg){var o=new GeoSVGResource(t,r.svg);storage.set(t,o)}else{var s=r.geoJson||r.geoJSON;s&&!r.features?n=r.specialAreas:s=r;var o=new GeoJSONResource(t,s,n);storage.set(t,o)}},getGeoResource:function(t){return storage.get(t)},getMapForUser:function(t){var r=storage.get(t);return r&&r.type==="geoJSON"&&r.getMapForUser()},load:function(t,r,n){var o=storage.get(t);if(!!o)return o.load(r,n)}},OPTION_STYLE_ENABLED_TAGS=["rect","circle","line","ellipse","polygon","polyline","path"],OPTION_STYLE_ENABLED_TAG_MAP=createHashMap(OPTION_STYLE_ENABLED_TAGS),STATE_TRIGGER_TAG_MAP=createHashMap(OPTION_STYLE_ENABLED_TAGS.concat(["g"])),LABEL_HOST_MAP=createHashMap(OPTION_STYLE_ENABLED_TAGS.concat(["g"])),mapLabelRaw=makeInner();function getFixedItemStyle(t){var r=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(r.fill=n),r}function fixLineStyle(t){var r=t.style;r&&(r.stroke=r.stroke||r.fill,r.fill=null)}var MapDraw=function(){function t(r){var n=new Group$4;this.uid=getUID("ec_map_draw"),this._controller=new RoamController$1(r.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Group$4),n.add(this._svgGroup=new Group$4)}return t.prototype.draw=function(r,n,o,s,l){var d=r.mainType==="geo",g=r.getData&&r.getData();d&&n.eachComponent({mainType:"series",subType:"map"},function(B){!g&&B.getHostGeoModel()===r&&(g=B.getData())});var y=r.coordinateSystem,b=this._regionsGroup,C=this.group,x=y.getTransformInfo(),S=x.raw,_=x.roam,w=!b.childAt(0)||l;w?(C.x=_.x,C.y=_.y,C.scaleX=_.scaleX,C.scaleY=_.scaleY,C.dirty()):updateProps$1(C,_,r);var $=g&&g.getVisual("visualMeta")&&g.getVisual("visualMeta").length>0,I={api:o,geo:y,mapOrGeoModel:r,data:g,isVisualEncodedByVisualMap:$,isGeo:d,transformInfoRaw:S};y.resourceType==="geoJSON"?this._buildGeoJSON(I):y.resourceType==="geoSVG"&&this._buildSVG(I),this._updateController(r,n,o),this._updateMapSelectHandler(r,b,o,s)},t.prototype._buildGeoJSON=function(r){var n=this._regionsGroupByName=createHashMap(),o=createHashMap(),s=this._regionsGroup,l=r.transformInfoRaw,d=r.mapOrGeoModel,g=r.data,y=r.geo.projection,b=y&&y.stream;function C(_,w){return w&&(_=w(_)),_&&[_[0]*l.scaleX+l.x,_[1]*l.scaleY+l.y]}function x(_){for(var w=[],$=!b&&y&&y.project,I=0;I<_.length;++I){var B=C(_[I],$);B&&w.push(B)}return w}function S(_){return{shape:{points:x(_)}}}s.removeAll(),each$f(r.geo.regions,function(_){var w=_.name,$=n.get(w),I=o.get(w)||{},B=I.dataIdx,R=I.regionModel;$||($=n.set(w,new Group$4),s.add($),B=g?g.indexOfName(w):null,R=r.isGeo?d.getRegionModel(w):g?g.getItemModel(B):null,o.set(w,{dataIdx:B,regionModel:R}));var P=[],M=[];each$f(_.geometries,function(N){if(N.type==="polygon"){var H=[N.exterior].concat(N.interiors||[]);b&&(H=projectPolys(H,b)),each$f(H,function(G){P.push(new Polygon$1(S(G)))})}else{var Q=N.points;b&&(Q=projectPolys(Q,b,!0)),each$f(Q,function(G){M.push(new Polyline$3(S(G)))})}});var O=C(_.getCenter(),y&&y.project);function D(N,H){if(!!N.length){var Q=new CompoundPath$1({culling:!0,segmentIgnoreThreshold:1,shape:{paths:N}});$.add(Q),applyOptionStyleForRegion(r,Q,B,R),resetLabelForRegion(r,Q,w,R,d,B,O),H&&(fixLineStyle(Q),each$f(Q.states,fixLineStyle))}}D(P),D(M,!0)}),n.each(function(_,w){var $=o.get(w),I=$.dataIdx,B=$.regionModel;resetEventTriggerForRegion(r,_,w,B,d,I),resetTooltipForRegion(r,_,w,B,d),resetStateTriggerForRegion(r,_,w,B,d)},this)},t.prototype._buildSVG=function(r){var n=r.geo.map,o=r.transformInfoRaw;this._svgGroup.x=o.x,this._svgGroup.y=o.y,this._svgGroup.scaleX=o.scaleX,this._svgGroup.scaleY=o.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var s=this._svgDispatcherMap=createHashMap(),l=!1;each$f(this._svgGraphicRecord.named,function(d){var g=d.name,y=r.mapOrGeoModel,b=r.data,C=d.svgNodeTagLower,x=d.el,S=b?b.indexOfName(g):null,_=y.getRegionModel(g);if(OPTION_STYLE_ENABLED_TAG_MAP.get(C)!=null&&x instanceof Displayable$1&&applyOptionStyleForRegion(r,x,S,_),x instanceof Displayable$1&&(x.culling=!0),x.z2EmphasisLift=0,!d.namedFrom&&(LABEL_HOST_MAP.get(C)!=null&&resetLabelForRegion(r,x,g,_,y,S,null),resetEventTriggerForRegion(r,x,g,_,y,S),resetTooltipForRegion(r,x,g,_,y),STATE_TRIGGER_TAG_MAP.get(C)!=null)){var w=resetStateTriggerForRegion(r,x,g,_,y);w==="self"&&(l=!0);var $=s.get(g)||s.set(g,[]);$.push(x)}},this),this._enableBlurEntireSVG(l,r)},t.prototype._enableBlurEntireSVG=function(r,n){if(r&&n.isGeo){var o=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),s=o.opacity;this._svgGraphicRecord.root.traverse(function(l){if(!l.isGroup){setDefaultStateProxy(l);var d=l.ensureState("blur").style||{};d.opacity==null&&s!=null&&(d.opacity=s),l.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(r,n){if(r==null)return[];var o=n.coordinateSystem;if(o.resourceType==="geoJSON"){var s=this._regionsGroupByName;if(s){var l=s.get(r);return l?[l]:[]}}else if(o.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(r)||[]},t.prototype._svgResourceChanged=function(r){return this._svgMapName!==r},t.prototype._useSVG=function(r){var n=geoSourceManager.getGeoResource(r);if(n&&n.type==="geoSVG"){var o=n.useGraphic(this.uid);this._svgGroup.add(o.root),this._svgGraphicRecord=o,this._svgMapName=r}},t.prototype._freeSVG=function(){var r=this._svgMapName;if(r!=null){var n=geoSourceManager.getGeoResource(r);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(r,n,o){var s=r.coordinateSystem,l=this._controller,d=this._controllerHost;d.zoomLimit=r.get("scaleLimit"),d.zoom=s.getZoom(),l.enable(r.get("roam")||!1);var g=r.mainType;function y(){var b={type:"geoRoam",componentType:g};return b[g+"Id"]=r.id,b}l.off("pan").on("pan",function(b){this._mouseDownFlag=!1,updateViewOnPan(d,b.dx,b.dy),o.dispatchAction(extend(y(),{dx:b.dx,dy:b.dy,animation:{duration:0}}))},this),l.off("zoom").on("zoom",function(b){this._mouseDownFlag=!1,updateViewOnZoom(d,b.scale,b.originX,b.originY),o.dispatchAction(extend(y(),{zoom:b.scale,originX:b.originX,originY:b.originY,animation:{duration:0}}))},this),l.setPointerChecker(function(b,C,x){return s.containPoint([C,x])&&!onIrrelevantElement(b,o,r)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(r){var n=r.getTextContent();n&&(n.ignore=mapLabelRaw(n).ignore)})},t.prototype._updateMapSelectHandler=function(r,n,o,s){var l=this;n.off("mousedown"),n.off("click"),r.get("selectedMode")&&(n.on("mousedown",function(){l._mouseDownFlag=!0}),n.on("click",function(d){!l._mouseDownFlag||(l._mouseDownFlag=!1)}))},t}();function applyOptionStyleForRegion(t,r,n,o){var s=o.getModel("itemStyle"),l=o.getModel(["emphasis","itemStyle"]),d=o.getModel(["blur","itemStyle"]),g=o.getModel(["select","itemStyle"]),y=getFixedItemStyle(s),b=getFixedItemStyle(l),C=getFixedItemStyle(g),x=getFixedItemStyle(d),S=t.data;if(S){var _=S.getItemVisual(n,"style"),w=S.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&_.fill&&(y.fill=_.fill),w&&(y.decal=createOrUpdatePatternFromDecal(w,t.api))}r.setStyle(y),r.style.strokeNoScale=!0,r.ensureState("emphasis").style=b,r.ensureState("select").style=C,r.ensureState("blur").style=x,setDefaultStateProxy(r)}function resetLabelForRegion(t,r,n,o,s,l,d){var g=t.data,y=t.isGeo,b=g&&isNaN(g.get(g.mapDimension("value"),l)),C=g&&g.getItemLayout(l);if(y||b||C&&C.showLabel){var x=y?n:l,S=void 0;(!g||l>=0)&&(S=s);var _=d?{normal:{align:"center",verticalAlign:"middle"}}:null;setLabelStyle(r,getLabelStatesModels(o),{labelFetcher:S,labelDataIndex:x,defaultText:n},_);var w=r.getTextContent();if(w&&(mapLabelRaw(w).ignore=w.ignore,r.textConfig&&d)){var $=r.getBoundingRect().clone();r.textConfig.layoutRect=$,r.textConfig.position=[(d[0]-$.x)/$.width*100+"%",(d[1]-$.y)/$.height*100+"%"]}r.disableLabelAnimation=!0}else r.removeTextContent(),r.removeTextConfig(),r.disableLabelAnimation=null}function resetEventTriggerForRegion(t,r,n,o,s,l){t.data?t.data.setItemGraphicEl(l,r):getECData(r).eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:n,region:o&&o.option||{}}}function resetTooltipForRegion(t,r,n,o,s){t.data||setTooltipConfig({el:r,componentModel:s,itemName:n,itemTooltipOption:o.get("tooltip")})}function resetStateTriggerForRegion(t,r,n,o,s){r.highDownSilentOnTouch=!!s.get("selectedMode");var l=o.getModel("emphasis"),d=l.get("focus");return toggleHoverEmphasis(r,d,l.get("blurScope"),l.get("disabled")),t.isGeo&&enableComponentHighDownFeatures(r,s,n),d}function projectPolys(t,r,n){var o=[],s;function l(){s=[]}function d(){s.length&&(o.push(s),s=[])}var g=r({polygonStart:l,polygonEnd:d,lineStart:l,lineEnd:d,point:function(y,b){isFinite(y)&&isFinite(b)&&s.push([y,b])},sphere:function(){}});return!n&&g.polygonStart(),each$f(t,function(y){g.lineStart();for(var b=0;b<y.length;b++)g.point(y[b][0],y[b][1]);g.lineEnd()}),!n&&g.polygonEnd(),o}var MapDraw$1=MapDraw,MapView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s,l){if(!(l&&l.type==="mapToggleSelect"&&l.from===this.uid)){var d=this.group;if(d.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&l&&l.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),l&&l.type==="geoRoam"&&l.componentType==="series"&&l.seriesId===n.id){var g=this._mapDraw;g&&d.add(g.group)}else if(n.needsDrawMap){var g=this._mapDraw||new MapDraw$1(s);d.add(g.group),g.draw(n,o,s,this,l),this._mapDraw=g}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&o.getComponent("legend")&&this._renderSymbols(n,o,s)}}},r.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},r.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},r.prototype._renderSymbols=function(n,o,s){var l=n.originalData,d=this.group;l.each(l.mapDimension("value"),function(g,y){if(!isNaN(g)){var b=l.getItemLayout(y);if(!(!b||!b.point)){var C=b.point,x=b.offset,S=new Circle$1({style:{fill:n.getData().getVisual("style").fill},shape:{cx:C[0]+x*9,cy:C[1],r:3},silent:!0,z2:8+(x?0:Z2_EMPHASIS_LIFT+1)});if(!x){var _=n.mainSeries.getData(),w=l.getName(y),$=_.indexOfName(w),I=l.getItemModel(y),B=I.getModel("label"),R=_.getItemGraphicEl($);setLabelStyle(S,getLabelStatesModels(I),{labelFetcher:{getFormattedLabel:function(P,M){return n.getFormattedLabel($,M)}},defaultText:w}),S.disableLabelAnimation=!0,B.get("position")||S.setTextConfig({position:"bottom"}),R.onHoverStateChange=function(P){setStatesFlag(S,P)}}d.add(S)}}})},r.type="map",r}(ChartView$1),MapView$1=MapView,MapSeries=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(o){if(o!=null){var s=this.getData().getName(o),l=this.coordinateSystem,d=l.getRegion(s);return d&&l.dataToPoint(d.getCenter())}},n}return r.prototype.getInitialData=function(n){for(var o=createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)}),s=createHashMap(),l=[],d=0,g=o.count();d<g;d++){var y=o.getName(d);s.set(y,!0)}var b=geoSourceManager.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return each$f(b.regions,function(C){var x=C.name;s.get(x)||l.push(x)}),o.appendValues([],l),o},r.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},r.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},r.prototype.getRawValue=function(n){var o=this.getData();return o.get(o.mapDimension("value"),n)},r.prototype.getRegionModel=function(n){var o=this.getData();return o.getItemModel(o.indexOfName(n))},r.prototype.formatTooltip=function(n,o,s){for(var l=this.getData(),d=this.getRawValue(n),g=l.getName(n),y=this.seriesGroup,b=[],C=0;C<y.length;C++){var x=y[C].originalData.indexOfName(g),S=l.mapDimension("value");isNaN(y[C].originalData.get(S,x))||b.push(y[C].name)}return createTooltipMarkup("section",{header:b.join(", "),noHeader:!b.length,blocks:[createTooltipMarkup("nameValue",{name:g,value:d})]})},r.prototype.setZoom=function(n){this.option.zoom=n},r.prototype.setCenter=function(n){this.option.center=n},r.prototype.getLegendIcon=function(n){var o=n.icon||"roundRect",s=createSymbol$1(o,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return s.setStyle(n.itemStyle),s.style.stroke="none",o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),s},r.type="series.map",r.dependencies=["geo"],r.layoutMode="box",r.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"},r}(SeriesModel$1),MapSeries$1=MapSeries;function dataStatistics(t,r){var n={};return each$f(t,function(o){o.each(o.mapDimension("value"),function(s,l){var d="ec-"+o.getName(l);n[d]=n[d]||[],isNaN(s)||n[d].push(s)})}),t[0].map(t[0].mapDimension("value"),function(o,s){for(var l="ec-"+t[0].getName(s),d=0,g=1/0,y=-1/0,b=n[l].length,C=0;C<b;C++)g=Math.min(g,n[l][C]),y=Math.max(y,n[l][C]),d+=n[l][C];var x;return r==="min"?x=g:r==="max"?x=y:r==="average"?x=d/b:x=d,b===0?NaN:x})}function mapDataStatistic(t){var r={};t.eachSeriesByType("map",function(n){var o=n.getHostGeoModel(),s=o?"o"+o.id:"i"+n.getMapType();(r[s]=r[s]||[]).push(n)}),each$f(r,function(n,o){for(var s=dataStatistics(map$1(n,function(d){return d.getData()}),n[0].get("mapValueCalculation")),l=0;l<n.length;l++)n[l].originalData=n[l].getData();for(var l=0;l<n.length;l++)n[l].seriesGroup=n,n[l].needsDrawMap=l===0&&!n[l].getHostGeoModel(),n[l].setData(s.cloneShallow()),n[l].mainSeries=n[0]})}function mapSymbolLayout(t){var r={};t.eachSeriesByType("map",function(n){var o=n.getMapType();if(!(n.getHostGeoModel()||r[o])){var s={};each$f(n.seriesGroup,function(d){var g=d.coordinateSystem,y=d.originalData;d.get("showLegendSymbol")&&t.getComponent("legend")&&y.each(y.mapDimension("value"),function(b,C){var x=y.getName(C),S=g.getRegion(x);if(!(!S||isNaN(b))){var _=s[x]||0,w=g.dataToPoint(S.getCenter());s[x]=_+1,y.setItemLayout(C,{point:w,offset:_})}})});var l=n.getData();l.each(function(d){var g=l.getName(d),y=l.getItemLayout(d)||{};y.showLabel=!s[g],l.setItemLayout(d,y)}),r[o]=!0}})}var v2ApplyTransform=applyTransform$1,View=function(t){__extends$1(r,t);function r(n){var o=t.call(this)||this;return o.type="view",o.dimensions=["x","y"],o._roamTransformable=new Transformable$1,o._rawTransformable=new Transformable$1,o.name=n,o}return r.prototype.setBoundingRect=function(n,o,s,l){return this._rect=new BoundingRect$1(n,o,s,l),this._rect},r.prototype.getBoundingRect=function(){return this._rect},r.prototype.setViewRect=function(n,o,s,l){this._transformTo(n,o,s,l),this._viewRect=new BoundingRect$1(n,o,s,l)},r.prototype._transformTo=function(n,o,s,l){var d=this.getBoundingRect(),g=this._rawTransformable;g.transform=d.calculateTransform(new BoundingRect$1(n,o,s,l));var y=g.parent;g.parent=null,g.decomposeTransform(),g.parent=y,this._updateTransform()},r.prototype.setCenter=function(n,o){!n||(this._center=[parsePercent(n[0],o.getWidth()),parsePercent(n[1],o.getHeight())],this._updateCenterAndZoom())},r.prototype.setZoom=function(n){n=n||1;var o=this.zoomLimit;o&&(o.max!=null&&(n=Math.min(o.max,n)),o.min!=null&&(n=Math.max(o.min,n))),this._zoom=n,this._updateCenterAndZoom()},r.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),o=n.x+n.width/2,s=n.y+n.height/2;return[o,s]},r.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},r.prototype.getZoom=function(){return this._zoom||1},r.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},r.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),o=this._roamTransformable,s=this.getDefaultCenter(),l=this.getCenter(),d=this.getZoom();l=applyTransform$1([],l,n),s=applyTransform$1([],s,n),o.originX=l[0],o.originY=l[1],o.x=s[0]-l[0],o.y=s[1]-l[1],o.scaleX=o.scaleY=d,this._updateTransform()},r.prototype._updateTransform=function(){var n=this._roamTransformable,o=this._rawTransformable;o.parent=n,n.updateTransform(),o.updateTransform(),copy(this.transform||(this.transform=[]),o.transform||create$1()),this._rawTransform=o.getLocalTransform(),this.invTransform=this.invTransform||[],invert(this.invTransform,this.transform),this.decomposeTransform()},r.prototype.getTransformInfo=function(){var n=this._rawTransformable,o=this._roamTransformable,s=new Transformable$1;return s.transform=o.transform,s.decomposeTransform(),{roam:{x:s.x,y:s.y,scaleX:s.scaleX,scaleY:s.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},r.prototype.getViewRect=function(){return this._viewRect},r.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},r.prototype.dataToPoint=function(n,o,s){var l=o?this._rawTransform:this.transform;return s=s||[],l?v2ApplyTransform(s,n,l):copy$1(s,n)},r.prototype.pointToData=function(n){var o=this.invTransform;return o?v2ApplyTransform([],n,o):[n[0],n[1]]},r.prototype.convertToPixel=function(n,o,s){var l=getCoordSys$4(o);return l===this?l.dataToPoint(s):null},r.prototype.convertFromPixel=function(n,o,s){var l=getCoordSys$4(o);return l===this?l.pointToData(s):null},r.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},r.dimensions=["x","y"],r}(Transformable$1);function getCoordSys$4(t){var r=t.seriesModel;return r?r.coordinateSystem:null}var View$1=View,GEO_DEFAULT_PARAMS={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},geo2DDimensions=["lng","lat"],Geo=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this,n)||this;l.dimensions=geo2DDimensions,l.type="geo",l._nameCoordMap=createHashMap(),l.map=o;var d=s.projection,g=geoSourceManager.load(o,s.nameMap,s.nameProperty),y=geoSourceManager.getGeoResource(o);l.resourceType=y?y.type:null;var b=l.regions=g.regions,C=GEO_DEFAULT_PARAMS[y.type];l._regionsMap=g.regionsMap,l.regions=g.regions,l.projection=d;var x;if(d)for(var S=0;S<b.length;S++){var _=b[S].getBoundingRect(d);x=x||_.clone(),x.union(_)}else x=g.boundingRect;return l.setBoundingRect(x.x,x.y,x.width,x.height),l.aspectScale=d?1:retrieve2(s.aspectScale,C.aspectScale),l._invertLongitute=d?!1:C.invertLongitute,l}return r.prototype._transformTo=function(n,o,s,l){var d=this.getBoundingRect(),g=this._invertLongitute;d=d.clone(),g&&(d.y=-d.y-d.height);var y=this._rawTransformable;y.transform=d.calculateTransform(new BoundingRect$1(n,o,s,l));var b=y.parent;y.parent=null,y.decomposeTransform(),y.parent=b,g&&(y.scaleY=-y.scaleY),this._updateTransform()},r.prototype.getRegion=function(n){return this._regionsMap.get(n)},r.prototype.getRegionByCoord=function(n){for(var o=this.regions,s=0;s<o.length;s++){var l=o[s];if(l.type==="geoJSON"&&l.contain(n))return o[s]}},r.prototype.addGeoCoord=function(n,o){this._nameCoordMap.set(n,o)},r.prototype.getGeoCoord=function(n){var o=this._regionsMap.get(n);return this._nameCoordMap.get(n)||o&&o.getCenter()},r.prototype.dataToPoint=function(n,o,s){if(isString(n)&&(n=this.getGeoCoord(n)),n){var l=this.projection;return l&&(n=l.project(n)),n&&this.projectedToPoint(n,o,s)}},r.prototype.pointToData=function(n){var o=this.projection;return o&&(n=o.unproject(n)),n&&this.pointToProjected(n)},r.prototype.pointToProjected=function(n){return t.prototype.pointToData.call(this,n)},r.prototype.projectedToPoint=function(n,o,s){return t.prototype.dataToPoint.call(this,n,o,s)},r.prototype.convertToPixel=function(n,o,s){var l=getCoordSys$3(o);return l===this?l.dataToPoint(s):null},r.prototype.convertFromPixel=function(n,o,s){var l=getCoordSys$3(o);return l===this?l.pointToData(s):null},r}(View$1);mixin(Geo,View$1);function getCoordSys$3(t){var r=t.geoModel,n=t.seriesModel;return r?r.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",SINGLE_REFERRING).models[0]||{}).coordinateSystem:null}var Geo$1=Geo;function resizeGeo(t,r){var n=t.get("boundingCoords");if(n!=null){var o=n[0],s=n[1];if(isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])){var l=this.projection;if(l){var d=o[0],g=o[1],y=s[0],b=s[1];o=[1/0,1/0],s=[-1/0,-1/0];var C=function(D,N,H,Q){for(var G=H-D,K=Q-N,W=0;W<=100;W++){var j=W/100,Y=l.project([D+G*j,N+K*j]);min$1(o,o,Y),max$1(s,s,Y)}};C(d,g,y,g),C(y,g,y,b),C(y,b,d,b),C(d,b,y,g)}this.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1])}}var x=this.getBoundingRect(),S=t.get("layoutCenter"),_=t.get("layoutSize"),w=r.getWidth(),$=r.getHeight(),I=x.width/x.height*this.aspectScale,B=!1,R,P;S&&_&&(R=[parsePercent(S[0],w),parsePercent(S[1],$)],P=parsePercent(_,Math.min(w,$)),!isNaN(R[0])&&!isNaN(R[1])&&!isNaN(P)&&(B=!0));var M;if(B)M={},I>1?(M.width=P,M.height=P/I):(M.height=P,M.width=P*I),M.y=R[1]-M.height/2,M.x=R[0]-M.width/2;else{var O=t.getBoxLayoutParams();O.aspect=I,M=getLayoutRect(O,{width:w,height:$})}this.setViewRect(M.x,M.y,M.width,M.height),this.setCenter(t.get("center"),r),this.setZoom(t.get("zoom"))}function setGeoCoords(t,r){each$f(r.get("geoCoord"),function(n,o){t.addGeoCoord(o,n)})}var GeoCreator=function(){function t(){this.dimensions=geo2DDimensions}return t.prototype.create=function(r,n){var o=[];function s(d){return{nameProperty:d.get("nameProperty"),aspectScale:d.get("aspectScale"),projection:d.get("projection")}}r.eachComponent("geo",function(d,g){var y=d.get("map"),b=new Geo$1(y+g,y,extend({nameMap:d.get("nameMap")},s(d)));b.zoomLimit=d.get("scaleLimit"),o.push(b),d.coordinateSystem=b,b.model=d,b.resize=resizeGeo,b.resize(d,n)}),r.eachSeries(function(d){var g=d.get("coordinateSystem");if(g==="geo"){var y=d.get("geoIndex")||0;d.coordinateSystem=o[y]}});var l={};return r.eachSeriesByType("map",function(d){if(!d.getHostGeoModel()){var g=d.getMapType();l[g]=l[g]||[],l[g].push(d)}}),each$f(l,function(d,g){var y=map$1(d,function(C){return C.get("nameMap")}),b=new Geo$1(g,g,extend({nameMap:mergeAll(y)},s(d[0])));b.zoomLimit=retrieve.apply(null,map$1(d,function(C){return C.get("scaleLimit")})),o.push(b),b.resize=resizeGeo,b.resize(d[0],n),each$f(d,function(C){C.coordinateSystem=b,setGeoCoords(b,C)})}),o},t.prototype.getFilledRegions=function(r,n,o,s){for(var l=(r||[]).slice(),d=createHashMap(),g=0;g<l.length;g++)d.set(l[g].name,l[g]);var y=geoSourceManager.load(n,o,s);return each$f(y.regions,function(b){var C=b.name;!d.get(C)&&l.push({name:C})}),l},t}(),geoCreator=new GeoCreator,geoCreator$1=geoCreator,GeoModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,o,s){var l=geoSourceManager.getGeoResource(n.map);if(l&&l.type==="geoJSON"){var d=n.itemStyle=n.itemStyle||{};"color"in d||(d.color="#eee")}this.mergeDefaultAndTheme(n,s),defaultEmphasis(n,"label",["show"])},r.prototype.optionUpdated=function(){var n=this,o=this.option;o.regions=geoCreator$1.getFilledRegions(o.regions,o.map,o.nameMap,o.nameProperty);var s={};this._optionModelMap=reduce(o.regions||[],function(l,d){var g=d.name;return g&&(l.set(g,new Model$1(d,n,n.ecModel)),d.selected&&(s[g]=!0)),l},createHashMap()),o.selectedMap||(o.selectedMap=s)},r.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new Model$1(null,this,this.ecModel)},r.prototype.getFormattedLabel=function(n,o){var s=this.getRegionModel(n),l=o==="normal"?s.get(["label","formatter"]):s.get(["emphasis","label","formatter"]),d={name:n};if(isFunction(l))return d.status=o,l(d);if(isString(l))return l.replace("{a}",n!=null?n:"")},r.prototype.setZoom=function(n){this.option.zoom=n},r.prototype.setCenter=function(n){this.option.center=n},r.prototype.select=function(n){var o=this.option,s=o.selectedMode;if(!!s){s!=="multiple"&&(o.selectedMap=null);var l=o.selectedMap||(o.selectedMap={});l[n]=!0}},r.prototype.unSelect=function(n){var o=this.option.selectedMap;o&&(o[n]=!1)},r.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},r.prototype.isSelected=function(n){var o=this.option.selectedMap;return!!(o&&o[n])},r.type="geo",r.layoutMode="box",r.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:[]},r}(ComponentModel$1),GeoModel$1=GeoModel;function getCenterCoord(t,r){return t.pointToProjected?t.pointToProjected(r):t.pointToData(r)}function updateCenterAndZoom(t,r,n,o){var s=t.getZoom(),l=t.getCenter(),d=r.zoom,g=t.projectedToPoint?t.projectedToPoint(l):t.dataToPoint(l);if(r.dx!=null&&r.dy!=null&&(g[0]-=r.dx,g[1]-=r.dy,t.setCenter(getCenterCoord(t,g),o)),d!=null){if(n){var y=n.min||0,b=n.max||1/0;d=Math.max(Math.min(s*d,b),y)/s}t.scaleX*=d,t.scaleY*=d;var C=(r.originX-t.x)*(d-1),x=(r.originY-t.y)*(d-1);t.x-=C,t.y-=x,t.updateTransform(),t.setCenter(getCenterCoord(t,g),o),t.setZoom(d*s)}return{center:t.getCenter(),zoom:t.getZoom()}}var GeoView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.focusBlurEnabled=!0,n}return r.prototype.init=function(n,o){this._api=o},r.prototype.render=function(n,o,s,l){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new MapDraw$1(s));var d=this._mapDraw;d.draw(n,o,s,this,l),d.group.on("click",this._handleRegionClick,this),d.group.silent=n.get("silent"),this.group.add(d.group),this.updateSelectStatus(n,o,s)},r.prototype._handleRegionClick=function(n){var o;findEventDispatcher(n.target,function(s){return(o=getECData(s).eventData)!=null},!0),o&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:o.name})},r.prototype.updateSelectStatus=function(n,o,s){var l=this;this._mapDraw.group.traverse(function(d){var g=getECData(d).eventData;if(g)return l._model.isSelected(g.name)?s.enterSelect(d):s.leaveSelect(d),!0})},r.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},r.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},r.type="geo",r}(ComponentView$1),GeoView$1=GeoView;function registerMap(t,r,n){geoSourceManager.registerMap(t,r,n)}function install$J(t){t.registerCoordinateSystem("geo",geoCreator$1),t.registerComponentModel(GeoModel$1),t.registerComponentView(GeoView$1),t.registerImpl("registerMap",registerMap),t.registerImpl("getMap",function(n){return geoSourceManager.getMapForUser(n)});function r(n,o){o.update="geo:updateSelectStatus",t.registerAction(o,function(s,l){var d={},g=[];return l.eachComponent({mainType:"geo",query:s},function(y){y[n](s.name);var b=y.coordinateSystem;each$f(b.regions,function(x){d[x.name]=y.isSelected(x.name)||!1});var C=[];each$f(d,function(x,S){d[S]&&C.push(S)}),g.push({geoIndex:y.componentIndex,name:C})}),{selected:d,allSelected:g,name:s.name}})}r("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),r("select",{type:"geoSelect",event:"geoselected"}),r("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,o,s){var l=n.componentType||"series";o.eachComponent({mainType:l,query:n},function(d){var g=d.coordinateSystem;if(g.type==="geo"){var y=updateCenterAndZoom(g,n,d.get("scaleLimit"),s);d.setCenter&&d.setCenter(y.center),d.setZoom&&d.setZoom(y.zoom),l==="series"&&each$f(d.seriesGroup,function(b){b.setCenter(y.center),b.setZoom(y.zoom)})}})})}function install$I(t){use(install$J),t.registerChartView(MapView$1),t.registerSeriesModel(MapSeries$1),t.registerLayout(mapSymbolLayout),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,mapDataStatistic),createLegacyDataSelectAction("map",t.registerAction)}function init(t){var r=t;r.hierNode={defaultAncestor:null,ancestor:r,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[r],o,s;o=n.pop();)if(s=o.children,o.isExpand&&s.length)for(var l=s.length,d=l-1;d>=0;d--){var g=s[d];g.hierNode={defaultAncestor:null,ancestor:g,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},n.push(g)}}function firstWalk(t,r){var n=t.isExpand?t.children:[],o=t.parentNode.children,s=t.hierNode.i?o[t.hierNode.i-1]:null;if(n.length){executeShifts(t);var l=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;s?(t.hierNode.prelim=s.hierNode.prelim+r(t,s),t.hierNode.modifier=t.hierNode.prelim-l):t.hierNode.prelim=l}else s&&(t.hierNode.prelim=s.hierNode.prelim+r(t,s));t.parentNode.hierNode.defaultAncestor=apportion(t,s,t.parentNode.hierNode.defaultAncestor||o[0],r)}function secondWalk(t){var r=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:r},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function separation(t){return arguments.length?t:defaultSeparation}function radialCoordinate(t,r){return t-=Math.PI/2,{x:r*Math.cos(t),y:r*Math.sin(t)}}function getViewRect$4(t,r){return getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function executeShifts(t){for(var r=t.children,n=r.length,o=0,s=0;--n>=0;){var l=r[n];l.hierNode.prelim+=o,l.hierNode.modifier+=o,s+=l.hierNode.change,o+=l.hierNode.shift+s}}function apportion(t,r,n,o){if(r){for(var s=t,l=t,d=l.parentNode.children[0],g=r,y=s.hierNode.modifier,b=l.hierNode.modifier,C=d.hierNode.modifier,x=g.hierNode.modifier;g=nextRight(g),l=nextLeft(l),g&&l;){s=nextRight(s),d=nextLeft(d),s.hierNode.ancestor=t;var S=g.hierNode.prelim+x-l.hierNode.prelim-b+o(g,l);S>0&&(moveSubtree(nextAncestor(g,t,n),t,S),b+=S,y+=S),x+=g.hierNode.modifier,b+=l.hierNode.modifier,y+=s.hierNode.modifier,C+=d.hierNode.modifier}g&&!nextRight(s)&&(s.hierNode.thread=g,s.hierNode.modifier+=x-y),l&&!nextLeft(d)&&(d.hierNode.thread=l,d.hierNode.modifier+=b-C,n=t)}return n}function nextRight(t){var r=t.children;return r.length&&t.isExpand?r[r.length-1]:t.hierNode.thread}function nextLeft(t){var r=t.children;return r.length&&t.isExpand?r[0]:t.hierNode.thread}function nextAncestor(t,r,n){return t.hierNode.ancestor.parentNode===r.parentNode?t.hierNode.ancestor:n}function moveSubtree(t,r,n){var o=n/(r.hierNode.i-t.hierNode.i);r.hierNode.change-=o,r.hierNode.shift+=n,r.hierNode.modifier+=n,r.hierNode.prelim+=n,t.hierNode.change+=o}function defaultSeparation(t,r){return t.parentNode===r.parentNode?1:2}var TreeEdgeShape=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),TreePath=function(t){__extends$1(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new TreeEdgeShape},r.prototype.buildPath=function(n,o){var s=o.childPoints,l=s.length,d=o.parentPoint,g=s[0],y=s[l-1];if(l===1){n.moveTo(d[0],d[1]),n.lineTo(g[0],g[1]);return}var b=o.orient,C=b==="TB"||b==="BT"?0:1,x=1-C,S=parsePercent(o.forkPosition,1),_=[];_[C]=d[C],_[x]=d[x]+(y[x]-d[x])*S,n.moveTo(d[0],d[1]),n.lineTo(_[0],_[1]),n.moveTo(g[0],g[1]),_[C]=g[C],n.lineTo(_[0],_[1]),_[C]=y[C],n.lineTo(_[0],_[1]),n.lineTo(y[0],y[1]);for(var w=1;w<l-1;w++){var $=s[w];n.moveTo($[0],$[1]),_[C]=$[C],n.lineTo(_[0],_[1])}},r}(Path$1),TreeView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._mainGroup=new Group$4,n}return r.prototype.init=function(n,o){this._controller=new RoamController$1(o.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},r.prototype.render=function(n,o,s){var l=n.getData(),d=n.layoutInfo,g=this._mainGroup,y=n.get("layout");y==="radial"?(g.x=d.x+d.width/2,g.y=d.y+d.height/2):(g.x=d.x,g.y=d.y),this._updateViewCoordSys(n,s),this._updateController(n,o,s);var b=this._data;l.diff(b).add(function(C){symbolNeedsDraw(l,C)&&updateNode(l,C,null,g,n)}).update(function(C,x){var S=b.getItemGraphicEl(x);if(!symbolNeedsDraw(l,C)){S&&removeNode(b,x,S,g,n);return}updateNode(l,C,S,g,n)}).remove(function(C){var x=b.getItemGraphicEl(C);x&&removeNode(b,C,x,g,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&l.eachItemGraphicEl(function(C,x){C.off("click").on("click",function(){s.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:x})})}),this._data=l},r.prototype._updateViewCoordSys=function(n,o){var s=n.getData(),l=[];s.each(function(x){var S=s.getItemLayout(x);S&&!isNaN(S.x)&&!isNaN(S.y)&&l.push([+S.x,+S.y])});var d=[],g=[];fromPoints(l,d,g);var y=this._min,b=this._max;g[0]-d[0]===0&&(d[0]=y?y[0]:d[0]-1,g[0]=b?b[0]:g[0]+1),g[1]-d[1]===0&&(d[1]=y?y[1]:d[1]-1,g[1]=b?b[1]:g[1]+1);var C=n.coordinateSystem=new View$1;C.zoomLimit=n.get("scaleLimit"),C.setBoundingRect(d[0],d[1],g[0]-d[0],g[1]-d[1]),C.setCenter(n.get("center"),o),C.setZoom(n.get("zoom")),this.group.attr({x:C.x,y:C.y,scaleX:C.scaleX,scaleY:C.scaleY}),this._min=d,this._max=g},r.prototype._updateController=function(n,o,s){var l=this,d=this._controller,g=this._controllerHost,y=this.group;d.setPointerChecker(function(b,C,x){var S=y.getBoundingRect();return S.applyTransform(y.transform),S.contain(C,x)&&!onIrrelevantElement(b,s,n)}),d.enable(n.get("roam")),g.zoomLimit=n.get("scaleLimit"),g.zoom=n.coordinateSystem.getZoom(),d.off("pan").off("zoom").on("pan",function(b){updateViewOnPan(g,b.dx,b.dy),s.dispatchAction({seriesId:n.id,type:"treeRoam",dx:b.dx,dy:b.dy})}).on("zoom",function(b){updateViewOnZoom(g,b.scale,b.originX,b.originY),s.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:b.scale,originX:b.originX,originY:b.originY}),l._updateNodeAndLinkScale(n),s.updateLabelLayout()})},r.prototype._updateNodeAndLinkScale=function(n){var o=n.getData(),s=this._getNodeGlobalScale(n);o.eachItemGraphicEl(function(l,d){l.setSymbolScale(s)})},r.prototype._getNodeGlobalScale=function(n){var o=n.coordinateSystem;if(o.type!=="view")return 1;var s=this._nodeScaleRatio,l=o.scaleX||1,d=o.getZoom(),g=(d-1)*s+1;return g/l},r.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},r.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},r.type="tree",r}(ChartView$1);function symbolNeedsDraw(t,r){var n=t.getItemLayout(r);return n&&!isNaN(n.x)&&!isNaN(n.y)}function updateNode(t,r,n,o,s){var l=!n,d=t.tree.getNodeByDataIndex(r),g=d.getModel(),y=d.getVisual("style").fill,b=d.isExpand===!1&&d.children.length!==0?y:"#fff",C=t.tree.root,x=d.parentNode===C?d:d.parentNode||d,S=t.getItemGraphicEl(x.dataIndex),_=x.getLayout(),w=S?{x:S.__oldX,y:S.__oldY,rawX:S.__radialOldRawX,rawY:S.__radialOldRawY}:_,$=d.getLayout();l?(n=new SymbolClz(t,r,null,{symbolInnerColor:b,useNameLabel:!0}),n.x=w.x,n.y=w.y):n.updateData(t,r,null,{symbolInnerColor:b,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=$.rawX,n.__radialRawY=$.rawY,o.add(n),t.setItemGraphicEl(r,n),n.__oldX=n.x,n.__oldY=n.y,updateProps$1(n,{x:$.x,y:$.y},s);var I=n.getSymbolPath();if(s.get("layout")==="radial"){var B=C.children[0],R=B.getLayout(),P=B.children.length,M=void 0,O=void 0;if($.x===R.x&&d.isExpand===!0&&B.children.length){var D={x:(B.children[0].getLayout().x+B.children[P-1].getLayout().x)/2,y:(B.children[0].getLayout().y+B.children[P-1].getLayout().y)/2};M=Math.atan2(D.y-R.y,D.x-R.x),M<0&&(M=Math.PI*2+M),O=D.x<R.x,O&&(M=M-Math.PI)}else M=Math.atan2($.y-R.y,$.x-R.x),M<0&&(M=Math.PI*2+M),d.children.length===0||d.children.length!==0&&d.isExpand===!1?(O=$.x<R.x,O&&(M=M-Math.PI)):(O=$.x>R.x,O||(M=M-Math.PI));var N=O?"left":"right",H=g.getModel("label"),Q=H.get("rotate"),G=Q*(Math.PI/180),K=I.getTextContent();K&&(I.setTextConfig({position:H.get("position")||N,rotation:Q==null?-M:G,origin:"center"}),K.setStyle("verticalAlign","middle"))}var W=g.get(["emphasis","focus"]),j=W==="relative"?concatArray(d.getAncestorsIndices(),d.getDescendantIndices()):W==="ancestor"?d.getAncestorsIndices():W==="descendant"?d.getDescendantIndices():null;j&&(getECData(n).focus=j),drawEdge(s,d,C,n,w,_,$,o),n.__edge&&(n.onHoverStateChange=function(Y){if(Y!=="blur"){var q=d.parentNode&&t.getItemGraphicEl(d.parentNode.dataIndex);q&&q.hoverState===HOVER_STATE_BLUR||setStatesFlag(n.__edge,Y)}})}function drawEdge(t,r,n,o,s,l,d,g){var y=r.getModel(),b=t.get("edgeShape"),C=t.get("layout"),x=t.getOrient(),S=t.get(["lineStyle","curveness"]),_=t.get("edgeForkPosition"),w=y.getModel("lineStyle").getLineStyle(),$=o.__edge;if(b==="curve")r.parentNode&&r.parentNode!==n&&($||($=o.__edge=new BezierCurve$1({shape:getEdgeShape(C,x,S,s,s)})),updateProps$1($,{shape:getEdgeShape(C,x,S,l,d)},t));else if(b==="polyline"&&C==="orthogonal"&&r!==n&&r.children&&r.children.length!==0&&r.isExpand===!0){for(var I=r.children,B=[],R=0;R<I.length;R++){var P=I[R].getLayout();B.push([P.x,P.y])}$||($=o.__edge=new TreePath({shape:{parentPoint:[d.x,d.y],childPoints:[[d.x,d.y]],orient:x,forkPosition:_}})),updateProps$1($,{shape:{parentPoint:[d.x,d.y],childPoints:B}},t)}$&&!(b==="polyline"&&!r.isExpand)&&($.useStyle(defaults({strokeNoScale:!0,fill:null},w)),setStatesStylesFromModel($,y,"lineStyle"),setDefaultStateProxy($),g.add($))}function removeNodeEdge(t,r,n,o,s){var l=r.tree.root,d=getSourceNode(l,t),g=d.source,y=d.sourceLayout,b=r.getItemGraphicEl(t.dataIndex);if(!!b){var C=r.getItemGraphicEl(g.dataIndex),x=C.__edge,S=b.__edge||(g.isExpand===!1||g.children.length===1?x:void 0),_=o.get("edgeShape"),w=o.get("layout"),$=o.get("orient"),I=o.get(["lineStyle","curveness"]);S&&(_==="curve"?removeElement(S,{shape:getEdgeShape(w,$,I,y,y),style:{opacity:0}},o,{cb:function(){n.remove(S)},removeOpt:s}):_==="polyline"&&o.get("layout")==="orthogonal"&&removeElement(S,{shape:{parentPoint:[y.x,y.y],childPoints:[[y.x,y.y]]},style:{opacity:0}},o,{cb:function(){n.remove(S)},removeOpt:s}))}}function getSourceNode(t,r){for(var n=r.parentNode===t?r:r.parentNode||r,o;o=n.getLayout(),o==null;)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:o}}function removeNode(t,r,n,o,s){var l=t.tree.getNodeByDataIndex(r),d=t.tree.root,g=getSourceNode(d,l).sourceLayout,y={duration:s.get("animationDurationUpdate"),easing:s.get("animationEasingUpdate")};removeElement(n,{x:g.x+1,y:g.y+1},s,{cb:function(){o.remove(n),t.setItemGraphicEl(r,null)},removeOpt:y}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:y}),l.children.forEach(function(b){removeNodeEdge(b,t,o,s,y)}),removeNodeEdge(l,t,o,s,y)}function getEdgeShape(t,r,n,o,s){var l,d,g,y,b,C,x,S;if(t==="radial"){b=o.rawX,x=o.rawY,C=s.rawX,S=s.rawY;var _=radialCoordinate(b,x),w=radialCoordinate(b,x+(S-x)*n),$=radialCoordinate(C,S+(x-S)*n),I=radialCoordinate(C,S);return{x1:_.x||0,y1:_.y||0,x2:I.x||0,y2:I.y||0,cpx1:w.x||0,cpy1:w.y||0,cpx2:$.x||0,cpy2:$.y||0}}else b=o.x,x=o.y,C=s.x,S=s.y,(r==="LR"||r==="RL")&&(l=b+(C-b)*n,d=x,g=C+(b-C)*n,y=S),(r==="TB"||r==="BT")&&(l=b,d=x+(S-x)*n,g=C,y=S+(x-S)*n);return{x1:b,y1:x,x2:C,y2:S,cpx1:l,cpy1:d,cpx2:g,cpy2:y}}var TreeView$1=TreeView,inner$e=makeInner();function linkSeriesData(t){var r=t.mainData,n=t.datas;n||(n={main:r},t.datasAttr={main:"data"}),t.datas=t.mainData=null,linkAll(r,n,t),each$f(n,function(o){each$f(r.TRANSFERABLE_METHODS,function(s){o.wrapMethod(s,curry$1(transferInjection,t))})}),r.wrapMethod("cloneShallow",curry$1(cloneShallowInjection,t)),each$f(r.CHANGABLE_METHODS,function(o){r.wrapMethod(o,curry$1(changeInjection,t))}),assert(n[r.dataType]===r)}function transferInjection(t,r){if(isMainData(this)){var n=extend({},inner$e(this).datas);n[this.dataType]=r,linkAll(r,n,t)}else linkSingle(r,this.dataType,inner$e(this).mainData,t);return r}function changeInjection(t,r){return t.struct&&t.struct.update(),r}function cloneShallowInjection(t,r){return each$f(inner$e(r).datas,function(n,o){n!==r&&linkSingle(n.cloneShallow(),o,r,t)}),r}function getLinkedData(t){var r=inner$e(this).mainData;return t==null||r==null?r:inner$e(r).datas[t]}function getLinkedDataAll(){var t=inner$e(this).mainData;return t==null?[{data:t}]:map$1(keys(inner$e(t).datas),function(r){return{type:r,data:inner$e(t).datas[r]}})}function isMainData(t){return inner$e(t).mainData===t}function linkAll(t,r,n){inner$e(t).datas={},each$f(r,function(o,s){linkSingle(o,s,t,n)})}function linkSingle(t,r,n,o){inner$e(n).datas[r]=t,inner$e(t).mainData=n,t.dataType=r,o.struct&&(t[o.structAttr]=o.struct,o.struct[o.datasAttr[r]]=t),t.getLinkedData=getLinkedData,t.getLinkedDataAll=getLinkedDataAll}var TreeNode=function(){function t(r,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=r||"",this.hostTree=n}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(r,n,o){isFunction(r)&&(o=n,n=r,r=null),r=r||{},isString(r)&&(r={order:r});var s=r.order||"preorder",l=this[r.attr||"children"],d;s==="preorder"&&(d=n.call(o,this));for(var g=0;!d&&g<l.length;g++)l[g].eachNode(r,n,o);s==="postorder"&&n.call(o,this)},t.prototype.updateDepthAndHeight=function(r){var n=0;this.depth=r;for(var o=0;o<this.children.length;o++){var s=this.children[o];s.updateDepthAndHeight(r+1),s.height>n&&(n=s.height)}this.height=n+1},t.prototype.getNodeById=function(r){if(this.getId()===r)return this;for(var n=0,o=this.children,s=o.length;n<s;n++){var l=o[n].getNodeById(r);if(l)return l}},t.prototype.contains=function(r){if(r===this)return!0;for(var n=0,o=this.children,s=o.length;n<s;n++){var l=o[n].contains(r);if(l)return l}},t.prototype.getAncestors=function(r){for(var n=[],o=r?this:this.parentNode;o;)n.push(o),o=o.parentNode;return n.reverse(),n},t.prototype.getAncestorsIndices=function(){for(var r=[],n=this;n;)r.push(n.dataIndex),n=n.parentNode;return r.reverse(),r},t.prototype.getDescendantIndices=function(){var r=[];return this.eachNode(function(n){r.push(n.dataIndex)}),r},t.prototype.getValue=function(r){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},t.prototype.setLayout=function(r,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,r,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(r){if(!(this.dataIndex<0)){var n=this.hostTree,o=n.data.getItemModel(this.dataIndex);return o.getModel(r)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(r,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,r,n)},t.prototype.getVisual=function(r){return this.hostTree.data.getItemVisual(this.dataIndex,r)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var r=this.parentNode.children,n=0;n<r.length;++n)if(r[n]===this)return n;return-1}return-1},t.prototype.isAncestorOf=function(r){for(var n=r.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},t.prototype.isDescendantOf=function(r){return r!==this&&r.isAncestorOf(this)},t}(),Tree=function(){function t(r){this.type="tree",this._nodes=[],this.hostModel=r}return t.prototype.eachNode=function(r,n,o){this.root.eachNode(r,n,o)},t.prototype.getNodeByDataIndex=function(r){var n=this.data.getRawIndex(r);return this._nodes[n]},t.prototype.getNodeById=function(r){return this.root.getNodeById(r)},t.prototype.update=function(){for(var r=this.data,n=this._nodes,o=0,s=n.length;o<s;o++)n[o].dataIndex=-1;for(var o=0,s=r.count();o<s;o++)n[r.getRawIndex(o)].dataIndex=o},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(r,n,o){var s=new t(n),l=[],d=1;g(r);function g(C,x){var S=C.value;d=Math.max(d,isArray$1(S)?S.length:1),l.push(C);var _=new TreeNode(convertOptionIdName(C.name,""),s);x?addChild(_,x):s.root=_,s._nodes.push(_);var w=C.children;if(w)for(var $=0;$<w.length;$++)g(w[$],_)}s.root.updateDepthAndHeight(0);var y=prepareSeriesDataSchema(l,{coordDimensions:["value"],dimensionsCount:d}).dimensions,b=new SeriesData$1(y,n);return b.initData(l),o&&o(b),linkSeriesData({mainData:b,struct:s,structAttr:"tree"}),s.update(),s},t}();function addChild(t,r){var n=r.children;t.parentNode!==r&&(n.push(t),t.parentNode=r)}var Tree$1=Tree;function retrieveTargetInfo(t,r,n){if(t&&indexOf(r,t.type)>=0){var o=n.getData().tree.root,s=t.targetNode;if(isString(s)&&(s=o.getNodeById(s)),s&&o.contains(s))return{node:s};var l=t.targetNodeId;if(l!=null&&(s=o.getNodeById(l)))return{node:s}}}function getPathToRoot(t){for(var r=[];t;)t=t.parentNode,t&&r.push(t);return r.reverse()}function aboveViewRoot(t,r){var n=getPathToRoot(t);return indexOf(n,r)>=0}function wrapTreePathInfo(t,r){for(var n=[];t;){var o=t.dataIndex;n.push({name:t.name,dataIndex:o,value:r.getRawValue(o)}),t=t.parentNode}return n.reverse(),n}var TreeSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return r.prototype.getInitialData=function(n){var o={name:n.name,children:n.data},s=n.leaves||{},l=new Model$1(s,this,this.ecModel),d=Tree$1.createTree(o,this,g);function g(x){x.wrapMethod("getItemModel",function(S,_){var w=d.getNodeByDataIndex(_);return w&&w.children.length&&w.isExpand||(S.parentModel=l),S})}var y=0;d.eachNode("preorder",function(x){x.depth>y&&(y=x.depth)});var b=n.expandAndCollapse,C=b&&n.initialTreeDepth>=0?n.initialTreeDepth:y;return d.root.eachNode("preorder",function(x){var S=x.hostTree.data.getRawDataItem(x.dataIndex);x.isExpand=S&&S.collapsed!=null?!S.collapsed:x.depth<=C}),d.data},r.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},r.prototype.setZoom=function(n){this.option.zoom=n},r.prototype.setCenter=function(n){this.option.center=n},r.prototype.formatTooltip=function(n,o,s){for(var l=this.getData().tree,d=l.root.children[0],g=l.getNodeByDataIndex(n),y=g.getValue(),b=g.name;g&&g!==d;)b=g.parentNode.name+"."+b,g=g.parentNode;return createTooltipMarkup("nameValue",{name:b,value:y,noValue:isNaN(y)||y==null})},r.prototype.getDataParams=function(n){var o=t.prototype.getDataParams.apply(this,arguments),s=this.getData().tree.getNodeByDataIndex(n);return o.treeAncestors=wrapTreePathInfo(s,this),o.collapsed=!s.isExpand,o},r.type="series.tree",r.layoutMode="box",r.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},r}(SeriesModel$1),TreeSeriesModel$1=TreeSeriesModel;function eachAfter(t,r,n){for(var o=[t],s=[],l;l=o.pop();)if(s.push(l),l.isExpand){var d=l.children;if(d.length)for(var g=0;g<d.length;g++)o.push(d[g])}for(;l=s.pop();)r(l,n)}function eachBefore(t,r){for(var n=[t],o;o=n.pop();)if(r(o),o.isExpand){var s=o.children;if(s.length)for(var l=s.length-1;l>=0;l--)n.push(s[l])}}function treeLayout(t,r){t.eachSeriesByType("tree",function(n){commonLayout(n,r)})}function commonLayout(t,r){var n=getViewRect$4(t,r);t.layoutInfo=n;var o=t.get("layout"),s=0,l=0,d=null;o==="radial"?(s=2*Math.PI,l=Math.min(n.height,n.width)/2,d=separation(function(P,M){return(P.parentNode===M.parentNode?1:2)/P.depth})):(s=n.width,l=n.height,d=separation());var g=t.getData().tree.root,y=g.children[0];if(y){init(g),eachAfter(y,firstWalk,d),g.hierNode.modifier=-y.hierNode.prelim,eachBefore(y,secondWalk);var b=y,C=y,x=y;eachBefore(y,function(P){var M=P.getLayout().x;M<b.getLayout().x&&(b=P),M>C.getLayout().x&&(C=P),P.depth>x.depth&&(x=P)});var S=b===C?1:d(b,C)/2,_=S-b.getLayout().x,w=0,$=0,I=0,B=0;if(o==="radial")w=s/(C.getLayout().x+S+_),$=l/(x.depth-1||1),eachBefore(y,function(P){I=(P.getLayout().x+_)*w,B=(P.depth-1)*$;var M=radialCoordinate(I,B);P.setLayout({x:M.x,y:M.y,rawX:I,rawY:B},!0)});else{var R=t.getOrient();R==="RL"||R==="LR"?($=l/(C.getLayout().x+S+_),w=s/(x.depth-1||1),eachBefore(y,function(P){B=(P.getLayout().x+_)*$,I=R==="LR"?(P.depth-1)*w:s-(P.depth-1)*w,P.setLayout({x:I,y:B},!0)})):(R==="TB"||R==="BT")&&(w=s/(C.getLayout().x+S+_),$=l/(x.depth-1||1),eachBefore(y,function(P){I=(P.getLayout().x+_)*w,B=R==="TB"?(P.depth-1)*$:l-(P.depth-1)*$,P.setLayout({x:I,y:B},!0)}))}}}function treeVisual(t){t.eachSeriesByType("tree",function(r){var n=r.getData(),o=n.tree;o.eachNode(function(s){var l=s.getModel(),d=l.getModel("itemStyle").getItemStyle(),g=n.ensureUniqueItemVisual(s.dataIndex,"style");extend(g,d)})})}function installTreeAction(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(r,n){n.eachComponent({mainType:"series",subType:"tree",query:r},function(o){var s=r.dataIndex,l=o.getData().tree,d=l.getNodeByDataIndex(s);d.isExpand=!d.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(r,n,o){n.eachComponent({mainType:"series",subType:"tree",query:r},function(s){var l=s.coordinateSystem,d=updateCenterAndZoom(l,r,void 0,o);s.setCenter&&s.setCenter(d.center),s.setZoom&&s.setZoom(d.zoom)})})}function install$H(t){t.registerChartView(TreeView$1),t.registerSeriesModel(TreeSeriesModel$1),t.registerLayout(treeLayout),t.registerVisual(treeVisual),installTreeAction(t)}var actionTypes=["treemapZoomToNode","treemapRender","treemapMove"];function installTreemapAction(t){for(var r=0;r<actionTypes.length;r++)t.registerAction({type:actionTypes[r],update:"updateView"},noop);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,o){o.eachComponent({mainType:"series",subType:"treemap",query:n},s);function s(l,d){var g=["treemapZoomToNode","treemapRootToNode"],y=retrieveTargetInfo(n,g,l);if(y){var b=l.getViewRoot();b&&(n.direction=aboveViewRoot(b,y.node)?"rollUp":"drillDown"),l.resetViewRoot(y.node)}}})}function enableAriaDecalForTree(t){var r=t.getData(),n=r.tree,o={};n.eachNode(function(s){for(var l=s;l&&l.depth>1;)l=l.parentNode;var d=getDecalFromPalette(t.ecModel,l.name||l.dataIndex+"",o);s.setVisual("decal",d)})}var TreemapSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.preventUsingHoverLayer=!0,n}return r.prototype.getInitialData=function(n,o){var s={name:n.name,children:n.data};completeTreeValue$1(s);var l=n.levels||[],d=this.designatedVisualItemStyle={},g=new Model$1({itemStyle:d},this,o);l=n.levels=setDefault(l,o);var y=map$1(l||[],function(x){return new Model$1(x,g,o)},this),b=Tree$1.createTree(s,this,C);function C(x){x.wrapMethod("getItemModel",function(S,_){var w=b.getNodeByDataIndex(_),$=w?y[w.depth]:null;return S.parentModel=$||g,S})}return b.data},r.prototype.optionUpdated=function(){this.resetViewRoot()},r.prototype.formatTooltip=function(n,o,s){var l=this.getData(),d=this.getRawValue(n),g=l.getName(n);return createTooltipMarkup("nameValue",{name:g,value:d})},r.prototype.getDataParams=function(n){var o=t.prototype.getDataParams.apply(this,arguments),s=this.getData().tree.getNodeByDataIndex(n);return o.treeAncestors=wrapTreePathInfo(s,this),o.treePathInfo=o.treeAncestors,o},r.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},extend(this.layoutInfo,n)},r.prototype.mapIdToIndex=function(n){var o=this._idIndexMap;o||(o=this._idIndexMap=createHashMap(),this._idIndexMapCount=0);var s=o.get(n);return s==null&&o.set(n,s=this._idIndexMapCount++),s},r.prototype.getViewRoot=function(){return this._viewRoot},r.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var o=this.getRawData().tree.root;(!n||n!==o&&!o.contains(n))&&(this._viewRoot=o)},r.prototype.enableAriaDecal=function(){enableAriaDecalForTree(this)},r.type="series.treemap",r.layoutMode="box",r.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"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},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:[]},r}(SeriesModel$1);function completeTreeValue$1(t){var r=0;each$f(t.children,function(o){completeTreeValue$1(o);var s=o.value;isArray$1(s)&&(s=s[0]),r+=s});var n=t.value;isArray$1(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=r),n<0&&(n=0),isArray$1(t.value)?t.value[0]=n:t.value=n}function setDefault(t,r){var n=normalizeToArray(r.get("color")),o=normalizeToArray(r.get(["aria","decal","decals"]));if(!!n){t=t||[];var s,l;each$f(t,function(g){var y=new Model$1(g),b=y.get("color"),C=y.get("decal");(y.get(["itemStyle","color"])||b&&b!=="none")&&(s=!0),(y.get(["itemStyle","decal"])||C&&C!=="none")&&(l=!0)});var d=t[0]||(t[0]={});return s||(d.color=n.slice()),!l&&o&&(d.decal=o.slice()),t}}var TreemapSeriesModel$1=TreemapSeriesModel,TEXT_PADDING=8,ITEM_GAP=8,ARRAY_LENGTH=5,Breadcrumb=function(){function t(r){this.group=new Group$4,r.add(this.group)}return t.prototype.render=function(r,n,o,s){var l=r.getModel("breadcrumb"),d=this.group;if(d.removeAll(),!(!l.get("show")||!o)){var g=l.getModel("itemStyle"),y=l.getModel("emphasis"),b=g.getModel("textStyle"),C=y.getModel(["itemStyle","textStyle"]),x={pos:{left:l.get("left"),right:l.get("right"),top:l.get("top"),bottom:l.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:l.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,x,b),this._renderContent(r,x,g,y,b,C,s),positionElement(d,x.pos,x.box)}},t.prototype._prepare=function(r,n,o){for(var s=r;s;s=s.parentNode){var l=convertOptionIdName(s.getModel().get("name"),""),d=o.getTextRect(l),g=Math.max(d.width+TEXT_PADDING*2,n.emptyItemWidth);n.totalWidth+=g+ITEM_GAP,n.renderList.push({node:s,text:l,width:g})}},t.prototype._renderContent=function(r,n,o,s,l,d,g){for(var y=0,b=n.emptyItemWidth,C=r.get(["breadcrumb","height"]),x=getAvailableSize(n.pos,n.box),S=n.totalWidth,_=n.renderList,w=s.getModel("itemStyle").getItemStyle(),$=_.length-1;$>=0;$--){var I=_[$],B=I.node,R=I.width,P=I.text;S>x.width&&(S-=R-b,R=b,P=null);var M=new Polygon$1({shape:{points:makeItemPoints(y,0,R,C,$===_.length-1,$===0)},style:defaults(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new ZRText$1({style:createTextStyle$1(l,{text:P})}),textConfig:{position:"inside"},z2:Z2_EMPHASIS_LIFT*1e4,onclick:curry$1(g,B)});M.disableLabelAnimation=!0,M.getTextContent().ensureState("emphasis").style=createTextStyle$1(d,{text:P}),M.ensureState("emphasis").style=w,toggleHoverEmphasis(M,s.get("focus"),s.get("blurScope"),s.get("disabled")),this.group.add(M),packEventData(M,r,B),y+=R+ITEM_GAP}},t.prototype.remove=function(){this.group.removeAll()},t}();function makeItemPoints(t,r,n,o,s,l){var d=[[s?t:t-ARRAY_LENGTH,r],[t+n,r],[t+n,r+o],[s?t:t-ARRAY_LENGTH,r+o]];return!l&&d.splice(2,0,[t+n+ARRAY_LENGTH,r+o/2]),!s&&d.push([t,r+o/2]),d}function packEventData(t,r,n){getECData(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&wrapTreePathInfo(n,r)}}var Breadcrumb$1=Breadcrumb,AnimationWrap=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(r,n,o,s,l){return this._elExistsMap[r.id]?!1:(this._elExistsMap[r.id]=!0,this._storage.push({el:r,target:n,duration:o,delay:s,easing:l}),!0)},t.prototype.finished=function(r){return this._finishedCallback=r,this},t.prototype.start=function(){for(var r=this,n=this._storage.length,o=function(){n--,n<=0&&(r._storage.length=0,r._elExistsMap={},r._finishedCallback&&r._finishedCallback())},s=0,l=this._storage.length;s<l;s++){var d=this._storage[s];d.el.animateTo(d.target,{duration:d.duration,delay:d.delay,easing:d.easing,setToFinal:!0,done:o,aborted:o})}return this},t}();function createWrap(){return new AnimationWrap}var Group$2=Group$4,Rect$1=Rect$3,DRAG_THRESHOLD=3,PATH_LABEL_NOAMAL="label",PATH_UPPERLABEL_NORMAL="upperLabel",Z2_BASE=Z2_EMPHASIS_LIFT*10,Z2_BG=Z2_EMPHASIS_LIFT*2,Z2_CONTENT=Z2_EMPHASIS_LIFT*3,getStateItemStyle=makeStyleMapper([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),getItemStyleNormal=function(t){var r=getStateItemStyle(t);return r.stroke=r.fill=r.lineWidth=null,r},inner$d=makeInner(),TreemapView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._state="ready",n._storage=createStorage(),n}return r.prototype.render=function(n,o,s,l){var d=o.findComponents({mainType:"series",subType:"treemap",query:l});if(!(indexOf(d,n)<0)){this.seriesModel=n,this.api=s,this.ecModel=o;var g=["treemapZoomToNode","treemapRootToNode"],y=retrieveTargetInfo(l,g,n),b=l&&l.type,C=n.layoutInfo,x=!this._oldTree,S=this._storage,_=b==="treemapRootToNode"&&y&&S?{rootNodeGroup:S.nodeGroup[y.node.getRawIndex()],direction:l.direction}:null,w=this._giveContainerGroup(C),$=n.get("animation"),I=this._doRender(w,n,_);$&&!x&&(!b||b==="treemapZoomToNode"||b==="treemapRootToNode")?this._doAnimation(w,I,n,_):I.renderFinally(),this._resetController(s),this._renderBreadcrumb(n,s,y)}},r.prototype._giveContainerGroup=function(n){var o=this._containerGroup;return o||(o=this._containerGroup=new Group$2,this._initEvents(o),this.group.add(o)),o.x=n.x,o.y=n.y,o},r.prototype._doRender=function(n,o,s){var l=o.getData().tree,d=this._oldTree,g=createStorage(),y=createStorage(),b=this._storage,C=[];function x(I,B,R,P){return renderNode(o,y,b,s,g,C,I,B,R,P)}_(l.root?[l.root]:[],d&&d.root?[d.root]:[],n,l===d||!d,0);var S=w(b);return this._oldTree=l,this._storage=y,{lastsForAnimation:g,willDeleteEls:S,renderFinally:$};function _(I,B,R,P,M){P?(B=I,each$f(I,function(N,H){!N.isRemoved()&&D(H,H)})):new DataDiffer$1(B,I,O,O).add(D).update(D).remove(curry$1(D,null)).execute();function O(N){return N.getId()}function D(N,H){var Q=N!=null?I[N]:null,G=H!=null?B[H]:null,K=x(Q,G,R,M);K&&_(Q&&Q.viewChildren||[],G&&G.viewChildren||[],K,P,M+1)}}function w(I){var B=createStorage();return I&&each$f(I,function(R,P){var M=B[P];each$f(R,function(O){O&&(M.push(O),inner$d(O).willDelete=!0)})}),B}function $(){each$f(S,function(I){each$f(I,function(B){B.parent&&B.parent.remove(B)})}),each$f(C,function(I){I.invisible=!0,I.dirty()})}},r.prototype._doAnimation=function(n,o,s,l){var d=s.get("animationDurationUpdate"),g=s.get("animationEasing"),y=(isFunction(d)?0:d)||0,b=(isFunction(g)?null:g)||"cubicOut",C=createWrap();each$f(o.willDeleteEls,function(x,S){each$f(x,function(_,w){if(!_.invisible){var $=_.parent,I,B=inner$d($);if(l&&l.direction==="drillDown")I=$===l.rootNodeGroup?{shape:{x:0,y:0,width:B.nodeWidth,height:B.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var R=0,P=0;B.willDelete||(R=B.nodeWidth/2,P=B.nodeHeight/2),I=S==="nodeGroup"?{x:R,y:P,style:{opacity:0}}:{shape:{x:R,y:P,width:0,height:0},style:{opacity:0}}}I&&C.add(_,I,y,0,b)}})}),each$f(this._storage,function(x,S){each$f(x,function(_,w){var $=o.lastsForAnimation[S][w],I={};!$||(_ instanceof Group$4?$.oldX!=null&&(I.x=_.x,I.y=_.y,_.x=$.oldX,_.y=$.oldY):($.oldShape&&(I.shape=extend({},_.shape),_.setShape($.oldShape)),$.fadein?(_.setStyle("opacity",0),I.style={opacity:1}):_.style.opacity!==1&&(I.style={opacity:1})),C.add(_,I,y,0,b))})},this),this._state="animating",C.finished(bind$1(function(){this._state="ready",o.renderFinally()},this)).start()},r.prototype._resetController=function(n){var o=this._controller;o||(o=this._controller=new RoamController$1(n.getZr()),o.enable(this.seriesModel.get("roam")),o.on("pan",bind$1(this._onPan,this)),o.on("zoom",bind$1(this._onZoom,this)));var s=new BoundingRect$1(0,0,n.getWidth(),n.getHeight());o.setPointerChecker(function(l,d,g){return s.contain(d,g)})},r.prototype._clearController=function(){var n=this._controller;n&&(n.dispose(),n=null)},r.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>DRAG_THRESHOLD||Math.abs(n.dy)>DRAG_THRESHOLD)){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:s.x+n.dx,y:s.y+n.dy,width:s.width,height:s.height}})}},r.prototype._onZoom=function(n){var o=n.originX,s=n.originY;if(this._state!=="animating"){var l=this.seriesModel.getData().tree.root;if(!l)return;var d=l.getLayout();if(!d)return;var g=new BoundingRect$1(d.x,d.y,d.width,d.height),y=this.seriesModel.layoutInfo;o-=y.x,s-=y.y;var b=create$1();translate(b,b,[-o,-s]),scale$1(b,b,[n.scale,n.scale]),translate(b,b,[o,s]),g.applyTransform(b),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:g.x,y:g.y,width:g.width,height:g.height}})}},r.prototype._initEvents=function(n){var o=this;n.on("click",function(s){if(o._state==="ready"){var l=o.seriesModel.get("nodeClick",!0);if(!!l){var d=o.findTarget(s.offsetX,s.offsetY);if(!!d){var g=d.node;if(g.getLayout().isLeafRoot)o._rootToNode(d);else if(l==="zoomToNode")o._zoomToNode(d);else if(l==="link"){var y=g.hostTree.data.getItemModel(g.dataIndex),b=y.get("link",!0),C=y.get("target",!0)||"blank";b&&windowOpen(b,C)}}}}},this)},r.prototype._renderBreadcrumb=function(n,o,s){var l=this;s||(s=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(o.getWidth()/2,o.getHeight()/2),s||(s={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Breadcrumb$1(this.group))).render(n,o,s.node,function(d){l._state!=="animating"&&(aboveViewRoot(n.getViewRoot(),d)?l._rootToNode({node:d}):l._zoomToNode({node:d}))})},r.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=createStorage(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},r.prototype.dispose=function(){this._clearController()},r.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},r.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},r.prototype.findTarget=function(n,o){var s,l=this.seriesModel.getViewRoot();return l.eachNode({attr:"viewChildren",order:"preorder"},function(d){var g=this._storage.background[d.getRawIndex()];if(g){var y=g.transformCoordToLocal(n,o),b=g.shape;if(b.x<=y[0]&&y[0]<=b.x+b.width&&b.y<=y[1]&&y[1]<=b.y+b.height)s={node:d,offsetX:y[0],offsetY:y[1]};else return!1}},this),s},r.type="treemap",r}(ChartView$1);function createStorage(){return{nodeGroup:[],background:[],content:[]}}function renderNode(t,r,n,o,s,l,d,g,y,b){if(!d)return;var C=d.getLayout(),x=t.getData(),S=d.getModel();if(x.setItemGraphicEl(d.dataIndex,null),!C||!C.isInView)return;var _=C.width,w=C.height,$=C.borderWidth,I=C.invisible,B=d.getRawIndex(),R=g&&g.getRawIndex(),P=d.viewChildren,M=C.upperHeight,O=P&&P.length,D=S.getModel("itemStyle"),N=S.getModel(["emphasis","itemStyle"]),H=S.getModel(["blur","itemStyle"]),Q=S.getModel(["select","itemStyle"]),G=D.get("borderRadius")||0,K=pe("nodeGroup",Group$2);if(!K)return;if(y.add(K),K.x=C.x||0,K.y=C.y||0,K.markRedraw(),inner$d(K).nodeWidth=_,inner$d(K).nodeHeight=w,C.isAboveViewRoot)return K;var W=pe("background",Rect$1,b,Z2_BG);W&&oe(K,W,O&&C.upperLabelHeight);var j=S.getModel("emphasis"),Y=j.get("focus"),q=j.get("blurScope"),X=j.get("disabled"),re=Y==="ancestor"?d.getAncestorsIndices():Y==="descendant"?d.getDescendantIndices():Y;if(O)isHighDownDispatcher(K)&&setAsHighDownDispatcher(K,!1),W&&(setAsHighDownDispatcher(W,!X),x.setItemGraphicEl(d.dataIndex,W),enableHoverFocus(W,re,q));else{var te=pe("content",Rect$1,b,Z2_CONTENT);te&&ae(K,te),W.disableMorphing=!0,W&&isHighDownDispatcher(W)&&setAsHighDownDispatcher(W,!1),setAsHighDownDispatcher(K,!X),x.setItemGraphicEl(d.dataIndex,K),enableHoverFocus(K,re,q)}return K;function oe(ve,ye,Be){var Se=getECData(ye);if(Se.dataIndex=d.dataIndex,Se.seriesIndex=t.seriesIndex,ye.setShape({x:0,y:0,width:_,height:w,r:G}),I)se(ye);else{ye.invisible=!1;var Ee=d.getVisual("style"),ie=Ee.stroke,ee=getItemStyleNormal(D);ee.fill=ie;var J=getStateItemStyle(N);J.fill=N.get("borderColor");var ce=getStateItemStyle(H);ce.fill=H.get("borderColor");var fe=getStateItemStyle(Q);if(fe.fill=Q.get("borderColor"),Be){var ne=_-2*$;ue(ye,ie,Ee.opacity,{x:$,y:0,width:ne,height:M})}else ye.removeTextContent();ye.setStyle(ee),ye.ensureState("emphasis").style=J,ye.ensureState("blur").style=ce,ye.ensureState("select").style=fe,setDefaultStateProxy(ye)}ve.add(ye)}function ae(ve,ye){var Be=getECData(ye);Be.dataIndex=d.dataIndex,Be.seriesIndex=t.seriesIndex;var Se=Math.max(_-2*$,0),Ee=Math.max(w-2*$,0);if(ye.culling=!0,ye.setShape({x:$,y:$,width:Se,height:Ee,r:G}),I)se(ye);else{ye.invisible=!1;var ie=d.getVisual("style"),ee=ie.fill,J=getItemStyleNormal(D);J.fill=ee,J.decal=ie.decal;var ce=getStateItemStyle(N),fe=getStateItemStyle(H),ne=getStateItemStyle(Q);ue(ye,ee,ie.opacity,null),ye.setStyle(J),ye.ensureState("emphasis").style=ce,ye.ensureState("blur").style=fe,ye.ensureState("select").style=ne,setDefaultStateProxy(ye)}ve.add(ye)}function se(ve){!ve.invisible&&l.push(ve)}function ue(ve,ye,Be,Se){var Ee=S.getModel(Se?PATH_UPPERLABEL_NORMAL:PATH_LABEL_NOAMAL),ie=convertOptionIdName(S.get("name"),null),ee=Ee.getShallow("show");setLabelStyle(ve,getLabelStatesModels(S,Se?PATH_UPPERLABEL_NORMAL:PATH_LABEL_NOAMAL),{defaultText:ee?ie:null,inheritColor:ye,defaultOpacity:Be,labelFetcher:t,labelDataIndex:d.dataIndex});var J=ve.getTextContent();if(!!J){var ce=J.style,fe=normalizeCssArray$1(ce.padding||0);Se&&(ve.setTextConfig({layoutRect:Se}),J.disableLabelLayout=!0),J.beforeUpdate=function(){var le=Math.max((Se?Se.width:ve.shape.width)-fe[1]-fe[3],0),me=Math.max((Se?Se.height:ve.shape.height)-fe[0]-fe[2],0);(ce.width!==le||ce.height!==me)&&J.setStyle({width:le,height:me})},ce.truncateMinChar=2,ce.lineOverflow="truncate",Ae(ce,Se,C);var ne=J.getState("emphasis");Ae(ne?ne.style:null,Se,C)}}function Ae(ve,ye,Be){var Se=ve?ve.text:null;if(!ye&&Be.isLeafRoot&&Se!=null){var Ee=t.get("drillDownIcon",!0);ve.text=Ee?Ee+" "+Se:Se}}function pe(ve,ye,Be,Se){var Ee=R!=null&&n[ve][R],ie=s[ve];return Ee?(n[ve][R]=null,he(ie,Ee)):I||(Ee=new ye,Ee instanceof Displayable$1&&(Ee.z2=calculateZ2(Be,Se)),Ce(ie,Ee)),r[ve][B]=Ee}function he(ve,ye){var Be=ve[B]={};ye instanceof Group$2?(Be.oldX=ye.x,Be.oldY=ye.y):Be.oldShape=extend({},ye.shape)}function Ce(ve,ye){var Be=ve[B]={},Se=d.parentNode,Ee=ye instanceof Group$4;if(Se&&(!o||o.direction==="drillDown")){var ie=0,ee=0,J=s.background[Se.getRawIndex()];!o&&J&&J.oldShape&&(ie=J.oldShape.width,ee=J.oldShape.height),Ee?(Be.oldX=0,Be.oldY=ee):Be.oldShape={x:ie,y:ee,width:0,height:0}}Be.fadein=!Ee}}function calculateZ2(t,r){return t*Z2_BASE+r}var TreemapView$1=TreemapView,each$c=each$f,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function t(r){var n=r.mappingMethod,o=r.type,s=this.option=clone$4(r);this.type=o,this.mappingMethod=n,this._normalizeData=normalizers[n];var l=t.visualHandlers[o];this.applyVisual=l.applyVisual,this.getColorMapper=l.getColorMapper,this._normalizedToVisual=l._normalizedToVisual[n],n==="piecewise"?(normalizeVisualRange(s),preprocessForPiecewise(s)):n==="category"?s.categories?preprocessForSpecifiedCategory(s):normalizeVisualRange(s,!0):(assert(n!=="linear"||s.dataExtent),normalizeVisualRange(s))}return t.prototype.mapValueToVisual=function(r){var n=this._normalizeData(r);return this._normalizedToVisual(n,r)},t.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},t.listVisualTypes=function(){return keys(t.visualHandlers)},t.isValidType=function(r){return t.visualHandlers.hasOwnProperty(r)},t.eachVisual=function(r,n,o){isObject$3(r)?each$f(r,n,o):n.call(o,r)},t.mapVisual=function(r,n,o){var s,l=isArray$1(r)?[]:isObject$3(r)?{}:(s=!0,null);return t.eachVisual(r,function(d,g){var y=n.call(o,d,g);s?l=y:l[g]=y}),l},t.retrieveVisuals=function(r){var n={},o;return r&&each$c(t.visualHandlers,function(s,l){r.hasOwnProperty(l)&&(n[l]=r[l],o=!0)}),o?n:null},t.prepareVisualTypes=function(r){if(isArray$1(r))r=r.slice();else if(isObject(r)){var n=[];each$c(r,function(o,s){n.push(s)}),r=n}else return[];return r.sort(function(o,s){return s==="color"&&o!=="color"&&o.indexOf("color")===0?1:-1}),r},t.dependsOn=function(r,n){return n==="color"?!!(r&&r.indexOf(n)===0):r===n},t.findPieceIndex=function(r,n,o){for(var s,l=1/0,d=0,g=n.length;d<g;d++){var y=n[d].value;if(y!=null){if(y===r||isString(y)&&y===r+"")return d;o&&S(y,d)}}for(var d=0,g=n.length;d<g;d++){var b=n[d],C=b.interval,x=b.close;if(C){if(C[0]===-1/0){if(littleThan(x[1],r,C[1]))return d}else if(C[1]===1/0){if(littleThan(x[0],C[0],r))return d}else if(littleThan(x[0],C[0],r)&&littleThan(x[1],r,C[1]))return d;o&&S(C[0],d),o&&S(C[1],d)}}if(o)return r===1/0?n.length-1:r===-1/0?0:s;function S(_,w){var $=Math.abs(_-r);$<l&&(l=$,s=w)}},t.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var r=this.option;return bind$1(r.mappingMethod==="category"?function(n,o){return!o&&(n=this._normalizeData(n)),doMapCategory.call(this,n)}:function(n,o,s){var l=!!s;return!o&&(n=this._normalizeData(n)),s=fastLerp(n,r.parsedVisual,s),l?s:stringify(s,"rgba")},this)},_normalizedToVisual:{linear:function(r){return stringify(fastLerp(r,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(r,n){var o=getSpecifiedVisual.call(this,n);return o==null&&(o=stringify(fastLerp(r,this.option.parsedVisual),"rgba")),o},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(r,n){return modifyHSL(r,n)}),colorSaturation:makePartialColorVisualHandler(function(r,n){return modifyHSL(r,null,n)}),colorLightness:makePartialColorVisualHandler(function(r,n){return modifyHSL(r,null,null,n)}),colorAlpha:makePartialColorVisualHandler(function(r,n){return modifyAlpha(r,n)}),decal:{applyVisual:makeApplyVisual("decal"),_normalizedToVisual:{linear:null,category:doMapCategory,piecewise:null,fixed:null}},opacity:{applyVisual:makeApplyVisual("opacity"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])},liftZ:{applyVisual:makeApplyVisual("liftZ"),_normalizedToVisual:{linear:doMapFixed,category:doMapFixed,piecewise:doMapFixed,fixed:doMapFixed}},symbol:{applyVisual:function(r,n,o){var s=this.mapValueToVisual(r);o("symbol",s)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(r,n){var o=getSpecifiedVisual.call(this,n);return o==null&&(o=doMapToArray.call(this,r)),o},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},t}();function preprocessForPiecewise(t){var r=t.pieceList;t.hasSpecialVisual=!1,each$f(r,function(n,o){n.originIndex=o,n.visual!=null&&(t.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory(t){var r=t.categories,n=t.categoryMap={},o=t.visual;if(each$c(r,function(d,g){n[d]=g}),!isArray$1(o)){var s=[];isObject$3(o)?each$c(o,function(d,g){var y=n[g];s[y!=null?y:CATEGORY_DEFAULT_VISUAL_INDEX]=d}):s[CATEGORY_DEFAULT_VISUAL_INDEX]=o,o=setVisualToOption(t,s)}for(var l=r.length-1;l>=0;l--)o[l]==null&&(delete n[r[l]],r.pop())}function normalizeVisualRange(t,r){var n=t.visual,o=[];isObject$3(n)?each$c(n,function(l){o.push(l)}):n!=null&&o.push(n);var s={color:1,symbol:1};!r&&o.length===1&&!s.hasOwnProperty(t.type)&&(o[1]=o[0]),setVisualToOption(t,o)}function makePartialColorVisualHandler(t){return{applyVisual:function(r,n,o){var s=this.mapValueToVisual(r);o("color",t(n("color"),s))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray(t){var r=this.option.visual;return r[Math.round(linearMap$2(t,[0,1],[0,r.length-1],!0))]||{}}function makeApplyVisual(t){return function(r,n,o){o(t,this.mapValueToVisual(r))}}function doMapCategory(t){var r=this.option.visual;return r[this.option.loop&&t!==CATEGORY_DEFAULT_VISUAL_INDEX?t%r.length:t]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual(t){return{linear:function(r){return linearMap$2(r,t,this.option.visual,!0)},category:doMapCategory,piecewise:function(r,n){var o=getSpecifiedVisual.call(this,n);return o==null&&(o=linearMap$2(r,t,this.option.visual,!0)),o},fixed:doMapFixed}}function getSpecifiedVisual(t){var r=this.option,n=r.pieceList;if(r.hasSpecialVisual){var o=VisualMapping.findPieceIndex(t,n),s=n[o];if(s&&s.visual)return s.visual[this.type]}}function setVisualToOption(t,r){return t.visual=r,t.type==="color"&&(t.parsedVisual=map$1(r,function(n){var o=parse(n);return o||[0,0,0,1]})),r}var normalizers={linear:function(t){return linearMap$2(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var r=this.option.pieceList,n=VisualMapping.findPieceIndex(t,r,!0);if(n!=null)return linearMap$2(n,[0,r.length-1],[0,1],!0)},category:function(t){var r=this.option.categories?this.option.categoryMap[t]:t;return r==null?CATEGORY_DEFAULT_VISUAL_INDEX:r},fixed:noop};function littleThan(t,r,n){return t?r<=n:r<n}var VisualMapping$1=VisualMapping,ITEM_STYLE_NORMAL="itemStyle",inner$c=makeInner(),treemapVisual={seriesType:"treemap",reset:function(t){var r=t.getData().tree,n=r.root;n.isRemoved()||travelTree(n,{},t.getViewRoot().getAncestors(),t)}};function travelTree(t,r,n,o){var s=t.getModel(),l=t.getLayout(),d=t.hostTree.data;if(!(!l||l.invisible||!l.isInView)){var g=s.getModel(ITEM_STYLE_NORMAL),y=buildVisuals(g,r,o),b=d.ensureUniqueItemVisual(t.dataIndex,"style"),C=g.get("borderColor"),x=g.get("borderColorSaturation"),S;x!=null&&(S=calculateColor(y),C=calculateBorderColor(x,S)),b.stroke=C;var _=t.viewChildren;if(!_||!_.length)S=calculateColor(y),b.fill=S;else{var w=buildVisualMapping(t,s,l,g,y,_);each$f(_,function($,I){if($.depth>=n.length||$===n[$.depth]){var B=mapVisual$1(s,y,$,I,w,o);travelTree($,B,n,o)}})}}}function buildVisuals(t,r,n){var o=extend({},r),s=n.designatedVisualItemStyle;return each$f(["color","colorAlpha","colorSaturation"],function(l){s[l]=r[l];var d=t.get(l);s[l]=null,d!=null&&(o[l]=d)}),o}function calculateColor(t){var r=getValueVisualDefine(t,"color");if(r){var n=getValueVisualDefine(t,"colorAlpha"),o=getValueVisualDefine(t,"colorSaturation");return o&&(r=modifyHSL(r,null,null,o)),n&&(r=modifyAlpha(r,n)),r}}function calculateBorderColor(t,r){return r!=null?modifyHSL(r,null,null,t):null}function getValueVisualDefine(t,r){var n=t[r];if(n!=null&&n!=="none")return n}function buildVisualMapping(t,r,n,o,s,l){if(!(!l||!l.length)){var d=getRangeVisual(r,"color")||s.color!=null&&s.color!=="none"&&(getRangeVisual(r,"colorAlpha")||getRangeVisual(r,"colorSaturation"));if(!!d){var g=r.get("visualMin"),y=r.get("visualMax"),b=n.dataExtent.slice();g!=null&&g<b[0]&&(b[0]=g),y!=null&&y>b[1]&&(b[1]=y);var C=r.get("colorMappingBy"),x={type:d.name,dataExtent:b,visual:d.range};x.type==="color"&&(C==="index"||C==="id")?(x.mappingMethod="category",x.loop=!0):x.mappingMethod="linear";var S=new VisualMapping$1(x);return inner$c(S).drColorMappingBy=C,S}}}function getRangeVisual(t,r){var n=t.get(r);return isArray$1(n)&&n.length?{name:r,range:n}:null}function mapVisual$1(t,r,n,o,s,l){var d=extend({},r);if(s){var g=s.type,y=g==="color"&&inner$c(s).drColorMappingBy,b=y==="index"?o:y==="id"?l.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));d[g]=s.mapValueToVisual(b)}return d}var mathMax$3=Math.max,mathMin$3=Math.min,retrieveValue=retrieve,each$b=each$f,PATH_BORDER_WIDTH=["itemStyle","borderWidth"],PATH_GAP_WIDTH=["itemStyle","gapWidth"],PATH_UPPER_LABEL_SHOW=["upperLabel","show"],PATH_UPPER_LABEL_HEIGHT=["upperLabel","height"],treemapLayout={seriesType:"treemap",reset:function(t,r,n,o){var s=n.getWidth(),l=n.getHeight(),d=t.option,g=getLayoutRect(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),y=d.size||[],b=parsePercent(retrieveValue(g.width,y[0]),s),C=parsePercent(retrieveValue(g.height,y[1]),l),x=o&&o.type,S=["treemapZoomToNode","treemapRootToNode"],_=retrieveTargetInfo(o,S,t),w=x==="treemapRender"||x==="treemapMove"?o.rootRect:null,$=t.getViewRoot(),I=getPathToRoot($);if(x!=="treemapMove"){var B=x==="treemapZoomToNode"?estimateRootSize(t,_,$,b,C):w?[w.width,w.height]:[b,C],R=d.sort;R&&R!=="asc"&&R!=="desc"&&(R="desc");var P={squareRatio:d.squareRatio,sort:R,leafDepth:d.leafDepth};$.hostTree.clearLayouts();var M={x:0,y:0,width:B[0],height:B[1],area:B[0]*B[1]};$.setLayout(M),squarify($,P,!1,0),M=$.getLayout(),each$b(I,function(D,N){var H=(I[N+1]||$).getValue();D.setLayout(extend({dataExtent:[H,H],borderWidth:0,upperHeight:0},M))})}var O=t.getData().tree.root;O.setLayout(calculateRootPosition(g,w,_),!0),t.setLayoutInfo(g),prunning(O,new BoundingRect$1(-g.x,-g.y,s,l),I,$,0)}};function squarify(t,r,n,o){var s,l;if(!t.isRemoved()){var d=t.getLayout();s=d.width,l=d.height;var g=t.getModel(),y=g.get(PATH_BORDER_WIDTH),b=g.get(PATH_GAP_WIDTH)/2,C=getUpperLabelHeight(g),x=Math.max(y,C),S=y-b,_=x-b;t.setLayout({borderWidth:y,upperHeight:x,upperLabelHeight:C},!0),s=mathMax$3(s-2*S,0),l=mathMax$3(l-S-_,0);var w=s*l,$=initChildren$1(t,g,w,r,n,o);if(!!$.length){var I={x:S,y:_,width:s,height:l},B=mathMin$3(s,l),R=1/0,P=[];P.area=0;for(var M=0,O=$.length;M<O;){var D=$[M];P.push(D),P.area+=D.getLayout().area;var N=worst(P,B,r.squareRatio);N<=R?(M++,R=N):(P.area-=P.pop().getLayout().area,position(P,B,I,b,!1),B=mathMin$3(I.width,I.height),P.length=P.area=0,R=1/0)}if(P.length&&position(P,B,I,b,!0),!n){var H=g.get("childrenVisibleMin");H!=null&&w<H&&(n=!0)}for(var M=0,O=$.length;M<O;M++)squarify($[M],r,n,o+1)}}}function initChildren$1(t,r,n,o,s,l){var d=t.children||[],g=o.sort;g!=="asc"&&g!=="desc"&&(g=null);var y=o.leafDepth!=null&&o.leafDepth<=l;if(s&&!y)return t.viewChildren=[];d=filter(d,function(_){return!_.isRemoved()}),sort$1(d,g);var b=statistic(r,d,g);if(b.sum===0)return t.viewChildren=[];if(b.sum=filterByThreshold(r,n,b.sum,g,d),b.sum===0)return t.viewChildren=[];for(var C=0,x=d.length;C<x;C++){var S=d[C].getValue()/b.sum*n;d[C].setLayout({area:S})}return y&&(d.length&&t.setLayout({isLeafRoot:!0},!0),d.length=0),t.viewChildren=d,t.setLayout({dataExtent:b.dataExtent},!0),d}function filterByThreshold(t,r,n,o,s){if(!o)return n;for(var l=t.get("visibleMin"),d=s.length,g=d,y=d-1;y>=0;y--){var b=s[o==="asc"?d-y-1:y].getValue();b/n*r<l&&(g=y,n-=b)}return o==="asc"?s.splice(0,d-g):s.splice(g,d-g),n}function sort$1(t,r){return r&&t.sort(function(n,o){var s=r==="asc"?n.getValue()-o.getValue():o.getValue()-n.getValue();return s===0?r==="asc"?n.dataIndex-o.dataIndex:o.dataIndex-n.dataIndex:s}),t}function statistic(t,r,n){for(var o=0,s=0,l=r.length;s<l;s++)o+=r[s].getValue();var d=t.get("visualDimension"),g;return!r||!r.length?g=[NaN,NaN]:d==="value"&&n?(g=[r[r.length-1].getValue(),r[0].getValue()],n==="asc"&&g.reverse()):(g=[1/0,-1/0],each$b(r,function(y){var b=y.getValue(d);b<g[0]&&(g[0]=b),b>g[1]&&(g[1]=b)})),{sum:o,dataExtent:g}}function worst(t,r,n){for(var o=0,s=1/0,l=0,d=void 0,g=t.length;l<g;l++)d=t[l].getLayout().area,d&&(d<s&&(s=d),d>o&&(o=d));var y=t.area*t.area,b=r*r*n;return y?mathMax$3(b*o/y,y/(b*s)):1/0}function position(t,r,n,o,s){var l=r===n.width?0:1,d=1-l,g=["x","y"],y=["width","height"],b=n[g[l]],C=r?t.area/r:0;(s||C>n[y[d]])&&(C=n[y[d]]);for(var x=0,S=t.length;x<S;x++){var _=t[x],w={},$=C?_.getLayout().area/C:0,I=w[y[d]]=mathMax$3(C-2*o,0),B=n[g[l]]+n[y[l]]-b,R=x===S-1||B<$?B:$,P=w[y[l]]=mathMax$3(R-2*o,0);w[g[d]]=n[g[d]]+mathMin$3(o,I/2),w[g[l]]=b+mathMin$3(o,P/2),b+=R,_.setLayout(w,!0)}n[g[d]]+=C,n[y[d]]-=C}function estimateRootSize(t,r,n,o,s){var l=(r||{}).node,d=[o,s];if(!l||l===n)return d;for(var g,y=o*s,b=y*t.option.zoomToNodeRatio;g=l.parentNode;){for(var C=0,x=g.children,S=0,_=x.length;S<_;S++)C+=x[S].getValue();var w=l.getValue();if(w===0)return d;b*=C/w;var $=g.getModel(),I=$.get(PATH_BORDER_WIDTH),B=Math.max(I,getUpperLabelHeight($));b+=4*I*I+(3*I+B)*Math.pow(b,.5),b>MAX_SAFE_INTEGER&&(b=MAX_SAFE_INTEGER),l=g}b<y&&(b=y);var R=Math.pow(b/y,.5);return[o*R,s*R]}function calculateRootPosition(t,r,n){if(r)return{x:r.x,y:r.y};var o={x:0,y:0};if(!n)return o;var s=n.node,l=s.getLayout();if(!l)return o;for(var d=[l.width/2,l.height/2],g=s;g;){var y=g.getLayout();d[0]+=y.x,d[1]+=y.y,g=g.parentNode}return{x:t.width/2-d[0],y:t.height/2-d[1]}}function prunning(t,r,n,o,s){var l=t.getLayout(),d=n[s],g=d&&d===t;if(!(d&&!g||s===n.length&&t!==o)){t.setLayout({isInView:!0,invisible:!g&&!r.intersect(l),isAboveViewRoot:g},!0);var y=new BoundingRect$1(r.x-l.x,r.y-l.y,r.width,r.height);each$b(t.viewChildren||[],function(b){prunning(b,y,n,o,s+1)})}}function getUpperLabelHeight(t){return t.get(PATH_UPPER_LABEL_SHOW)?t.get(PATH_UPPER_LABEL_HEIGHT):0}function install$G(t){t.registerSeriesModel(TreemapSeriesModel$1),t.registerChartView(TreemapView$1),t.registerVisual(treemapVisual),t.registerLayout(treemapLayout),installTreemapAction(t)}function categoryFilter(t){var r=t.findComponents({mainType:"legend"});!r||!r.length||t.eachSeriesByType("graph",function(n){var o=n.getCategoriesData(),s=n.getGraph(),l=s.data,d=o.mapArray(o.getName);l.filterSelf(function(g){var y=l.getItemModel(g),b=y.getShallow("category");if(b!=null){isNumber(b)&&(b=d[b]);for(var C=0;C<r.length;C++)if(!r[C].isSelected(b))return!1}return!0})})}function categoryVisual(t){var r={};t.eachSeriesByType("graph",function(n){var o=n.getCategoriesData(),s=n.getData(),l={};o.each(function(d){var g=o.getName(d);l["ec-"+g]=d;var y=o.getItemModel(d),b=y.getModel("itemStyle").getItemStyle();b.fill||(b.fill=n.getColorFromPalette(g,r)),o.setItemVisual(d,"style",b);for(var C=["symbol","symbolSize","symbolKeepAspect"],x=0;x<C.length;x++){var S=y.getShallow(C[x],!0);S!=null&&o.setItemVisual(d,C[x],S)}}),o.count()&&s.each(function(d){var g=s.getItemModel(d),y=g.getShallow("category");if(y!=null){isString(y)&&(y=l["ec-"+y]);var b=o.getItemVisual(y,"style"),C=s.ensureUniqueItemVisual(d,"style");extend(C,b);for(var x=["symbol","symbolSize","symbolKeepAspect"],S=0;S<x.length;S++)s.setItemVisual(d,x[S],o.getItemVisual(y,x[S]))}})})}function normalize$1(t){return t instanceof Array||(t=[t,t]),t}function graphEdgeVisual(t){t.eachSeriesByType("graph",function(r){var n=r.getGraph(),o=r.getEdgeData(),s=normalize$1(r.get("edgeSymbol")),l=normalize$1(r.get("edgeSymbolSize"));o.setVisual("fromSymbol",s&&s[0]),o.setVisual("toSymbol",s&&s[1]),o.setVisual("fromSymbolSize",l&&l[0]),o.setVisual("toSymbolSize",l&&l[1]),o.setVisual("style",r.getModel("lineStyle").getLineStyle()),o.each(function(d){var g=o.getItemModel(d),y=n.getEdgeByIndex(d),b=normalize$1(g.getShallow("symbol",!0)),C=normalize$1(g.getShallow("symbolSize",!0)),x=g.getModel("lineStyle").getLineStyle(),S=o.ensureUniqueItemVisual(d,"style");switch(extend(S,x),S.stroke){case"source":{var _=y.node1.getVisual("style");S.stroke=_&&_.fill;break}case"target":{var _=y.node2.getVisual("style");S.stroke=_&&_.fill;break}}b[0]&&y.setVisual("fromSymbol",b[0]),b[1]&&y.setVisual("toSymbol",b[1]),C[0]&&y.setVisual("fromSymbolSize",C[0]),C[1]&&y.setVisual("toSymbolSize",C[1])})})}var KEY_DELIMITER="-->",getAutoCurvenessParams=function(t){return t.get("autoCurveness")||null},createCurveness=function(t,r){var n=getAutoCurvenessParams(t),o=20,s=[];if(isNumber(n))o=n;else if(isArray$1(n)){t.__curvenessList=n;return}r>o&&(o=r);var l=o%2?o+2:o+3;s=[];for(var d=0;d<l;d++)s.push((d%2?d+1:d)/10*(d%2?-1:1));t.__curvenessList=s},getKeyOfEdges=function(t,r,n){var o=[t.id,t.dataIndex].join("."),s=[r.id,r.dataIndex].join(".");return[n.uid,o,s].join(KEY_DELIMITER)},getOppositeKey=function(t){var r=t.split(KEY_DELIMITER);return[r[0],r[2],r[1]].join(KEY_DELIMITER)},getEdgeFromMap=function(t,r){var n=getKeyOfEdges(t.node1,t.node2,r);return r.__edgeMap[n]},getTotalLengthBetweenNodes=function(t,r){var n=getEdgeMapLengthWithKey(getKeyOfEdges(t.node1,t.node2,r),r),o=getEdgeMapLengthWithKey(getKeyOfEdges(t.node2,t.node1,r),r);return n+o},getEdgeMapLengthWithKey=function(t,r){var n=r.__edgeMap;return n[t]?n[t].length:0};function initCurvenessList(t){!getAutoCurvenessParams(t)||(t.__curvenessList=[],t.__edgeMap={},createCurveness(t))}function createEdgeMapForCurveness(t,r,n,o){if(!!getAutoCurvenessParams(n)){var s=getKeyOfEdges(t,r,n),l=n.__edgeMap,d=l[getOppositeKey(s)];l[s]&&!d?l[s].isForward=!0:d&&l[s]&&(d.isForward=!0,l[s].isForward=!1),l[s]=l[s]||[],l[s].push(o)}}function getCurvenessForEdge(t,r,n,o){var s=getAutoCurvenessParams(r),l=isArray$1(s);if(!s)return null;var d=getEdgeFromMap(t,r);if(!d)return null;for(var g=-1,y=0;y<d.length;y++)if(d[y]===n){g=y;break}var b=getTotalLengthBetweenNodes(t,r);createCurveness(r,b),t.lineStyle=t.lineStyle||{};var C=getKeyOfEdges(t.node1,t.node2,r),x=r.__curvenessList,S=l||b%2?0:1;if(d.isForward)return x[S+g];var _=getOppositeKey(C),w=getEdgeMapLengthWithKey(_,r),$=x[g+w+S];return o?l?s&&s[0]===0?(w+S)%2?$:-$:((w%2?0:1)+S)%2?$:-$:(w+S)%2?$:-$:x[g+w+S]}function simpleLayout(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view")){var n=t.getGraph();n.eachNode(function(o){var s=o.getModel();o.setLayout([+s.get("x"),+s.get("y")])}),simpleLayoutEdge(n,t)}}function simpleLayoutEdge(t,r){t.eachEdge(function(n,o){var s=retrieve3(n.getModel().get(["lineStyle","curveness"]),-getCurvenessForEdge(n,r,o,!0),0),l=clone$3(n.node1.getLayout()),d=clone$3(n.node2.getLayout()),g=[l,d];+s&&g.push([(l[0]+d[0])/2-(l[1]-d[1])*s,(l[1]+d[1])/2-(d[0]-l[0])*s]),n.setLayout(g)})}function graphSimpleLayout(t,r){t.eachSeriesByType("graph",function(n){var o=n.get("layout"),s=n.coordinateSystem;if(s&&s.type!=="view"){var l=n.getData(),d=[];each$f(s.dimensions,function(S){d=d.concat(l.mapDimensionsAll(S))});for(var g=0;g<l.count();g++){for(var y=[],b=!1,C=0;C<d.length;C++){var x=l.get(d[C],g);isNaN(x)||(b=!0),y.push(x)}b?l.setItemLayout(g,s.dataToPoint(y)):l.setItemLayout(g,[NaN,NaN])}simpleLayoutEdge(l.graph,n)}else(!o||o==="none")&&simpleLayout(n)})}function getNodeGlobalScale(t){var r=t.coordinateSystem;if(r.type!=="view")return 1;var n=t.option.nodeScaleRatio,o=r.scaleX,s=r.getZoom(),l=(s-1)*n+1;return l/o}function getSymbolSize(t){var r=t.getVisual("symbolSize");return r instanceof Array&&(r=(r[0]+r[1])/2),+r}var PI$2=Math.PI,_symbolRadiansHalf=[];function circularLayout(t,r,n,o){var s=t.coordinateSystem;if(!(s&&s.type!=="view")){var l=s.getBoundingRect(),d=t.getData(),g=d.graph,y=l.width/2+l.x,b=l.height/2+l.y,C=Math.min(l.width,l.height)/2,x=d.count();if(d.setLayout({cx:y,cy:b}),!!x){if(n){var S=s.pointToData(o),_=S[0],w=S[1],$=[_-y,w-b];normalize$3($,$),scale$2($,$,C),n.setLayout([y+$[0],b+$[1]],!0);var I=t.get(["circular","rotateLabel"]);rotateNodeLabel(n,I,y,b)}_layoutNodesBasedOn[r](t,g,d,C,y,b,x),g.eachEdge(function(B,R){var P=retrieve3(B.getModel().get(["lineStyle","curveness"]),getCurvenessForEdge(B,t,R),0),M=clone$3(B.node1.getLayout()),O=clone$3(B.node2.getLayout()),D,N=(M[0]+O[0])/2,H=(M[1]+O[1])/2;+P&&(P*=3,D=[y*P+N*(1-P),b*P+H*(1-P)]),B.setLayout([M,O,D])})}}}var _layoutNodesBasedOn={value:function(t,r,n,o,s,l,d){var g=0,y=n.getSum("value"),b=Math.PI*2/(y||d);r.eachNode(function(C){var x=C.getValue("value"),S=b*(y?x:1)/2;g+=S,C.setLayout([o*Math.cos(g)+s,o*Math.sin(g)+l]),g+=S})},symbolSize:function(t,r,n,o,s,l,d){var g=0;_symbolRadiansHalf.length=d;var y=getNodeGlobalScale(t);r.eachNode(function(x){var S=getSymbolSize(x);isNaN(S)&&(S=2),S<0&&(S=0),S*=y;var _=Math.asin(S/2/o);isNaN(_)&&(_=PI$2/2),_symbolRadiansHalf[x.dataIndex]=_,g+=_*2});var b=(2*PI$2-g)/d/2,C=0;r.eachNode(function(x){var S=b+_symbolRadiansHalf[x.dataIndex];C+=S,(!x.getLayout()||!x.getLayout().fixed)&&x.setLayout([o*Math.cos(C)+s,o*Math.sin(C)+l]),C+=S})}};function rotateNodeLabel(t,r,n,o){var s=t.getGraphicEl();if(!!s){var l=t.getModel(),d=l.get(["label","rotate"])||0,g=s.getSymbolPath();if(r){var y=t.getLayout(),b=Math.atan2(y[1]-o,y[0]-n);b<0&&(b=Math.PI*2+b);var C=y[0]<n;C&&(b=b-Math.PI);var x=C?"left":"right";g.setTextConfig({rotation:-b,position:x,origin:"center"});var S=g.ensureState("emphasis");extend(S.textConfig||(S.textConfig={}),{position:x})}else g.setTextConfig({rotation:d*=Math.PI/180})}}function graphCircularLayout(t){t.eachSeriesByType("graph",function(r){r.get("layout")==="circular"&&circularLayout(r,"symbolSize")})}var scaleAndAdd=scaleAndAdd$1;function forceLayout(t,r,n){for(var o=t,s=r,l=n.rect,d=l.width,g=l.height,y=[l.x+d/2,l.y+g/2],b=n.gravity==null?.1:n.gravity,C=0;C<o.length;C++){var x=o[C];x.p||(x.p=create$2(d*(Math.random()-.5)+y[0],g*(Math.random()-.5)+y[1])),x.pp=clone$3(x.p),x.edges=null}var S=n.friction==null?.6:n.friction,_=S,w,$;return{warmUp:function(){_=S*.8},setFixed:function(I){o[I].fixed=!0},setUnfixed:function(I){o[I].fixed=!1},beforeStep:function(I){w=I},afterStep:function(I){$=I},step:function(I){w&&w(o,s);for(var B=[],R=o.length,P=0;P<s.length;P++){var M=s[P];if(!M.ignoreForceLayout){var O=M.n1,D=M.n2;sub(B,D.p,O.p);var N=len(B)-M.d,H=D.w/(O.w+D.w);isNaN(H)&&(H=0),normalize$3(B,B),!O.fixed&&scaleAndAdd(O.p,O.p,B,H*N*_),!D.fixed&&scaleAndAdd(D.p,D.p,B,-(1-H)*N*_)}}for(var P=0;P<R;P++){var Q=o[P];Q.fixed||(sub(B,y,Q.p),scaleAndAdd(Q.p,Q.p,B,b*_))}for(var P=0;P<R;P++)for(var O=o[P],G=P+1;G<R;G++){var D=o[G];sub(B,D.p,O.p);var N=len(B);N===0&&(set$1(B,Math.random()-.5,Math.random()-.5),N=1);var K=(O.rep+D.rep)/N/N;!O.fixed&&scaleAndAdd(O.pp,O.pp,B,K),!D.fixed&&scaleAndAdd(D.pp,D.pp,B,-K)}for(var W=[],P=0;P<R;P++){var Q=o[P];Q.fixed||(sub(W,Q.p,Q.pp),scaleAndAdd(Q.p,Q.p,W,_),copy$1(Q.pp,Q.p))}_=_*.992;var j=_<.01;$&&$(o,s,j),I&&I(j)}}}function graphForceLayout(t){t.eachSeriesByType("graph",function(r){var n=r.coordinateSystem;if(!(n&&n.type!=="view"))if(r.get("layout")==="force"){var o=r.preservedPoints||{},s=r.getGraph(),l=s.data,d=s.edgeData,g=r.getModel("force"),y=g.get("initLayout");r.preservedPoints?l.each(function(P){var M=l.getId(P);l.setItemLayout(P,o[M]||[NaN,NaN])}):!y||y==="none"?simpleLayout(r):y==="circular"&&circularLayout(r,"value");var b=l.getDataExtent("value"),C=d.getDataExtent("value"),x=g.get("repulsion"),S=g.get("edgeLength"),_=isArray$1(x)?x:[x,x],w=isArray$1(S)?S:[S,S];w=[w[1],w[0]];var $=l.mapArray("value",function(P,M){var O=l.getItemLayout(M),D=linearMap$2(P,b,_);return isNaN(D)&&(D=(_[0]+_[1])/2),{w:D,rep:D,fixed:l.getItemModel(M).get("fixed"),p:!O||isNaN(O[0])||isNaN(O[1])?null:O}}),I=d.mapArray("value",function(P,M){var O=s.getEdgeByIndex(M),D=linearMap$2(P,C,w);isNaN(D)&&(D=(w[0]+w[1])/2);var N=O.getModel(),H=retrieve3(O.getModel().get(["lineStyle","curveness"]),-getCurvenessForEdge(O,r,M,!0),0);return{n1:$[O.node1.dataIndex],n2:$[O.node2.dataIndex],d:D,curveness:H,ignoreForceLayout:N.get("ignoreForceLayout")}}),B=n.getBoundingRect(),R=forceLayout($,I,{rect:B,gravity:g.get("gravity"),friction:g.get("friction")});R.beforeStep(function(P,M){for(var O=0,D=P.length;O<D;O++)P[O].fixed&©$1(P[O].p,s.getNodeByIndex(O).getLayout())}),R.afterStep(function(P,M,O){for(var D=0,N=P.length;D<N;D++)P[D].fixed||s.getNodeByIndex(D).setLayout(P[D].p),o[l.getId(D)]=P[D].p;for(var D=0,N=M.length;D<N;D++){var H=M[D],Q=s.getEdgeByIndex(D),G=H.n1.p,K=H.n2.p,W=Q.getLayout();W=W?W.slice():[],W[0]=W[0]||[],W[1]=W[1]||[],copy$1(W[0],G),copy$1(W[1],K),+H.curveness&&(W[2]=[(G[0]+K[0])/2-(G[1]-K[1])*H.curveness,(G[1]+K[1])/2-(K[0]-G[0])*H.curveness]),Q.setLayout(W)}}),r.forceLayout=R,r.preservedPoints=o,R.step()}else r.forceLayout=null})}function getViewRect$3(t,r,n){var o=extend(t.getBoxLayoutParams(),{aspect:n});return getLayoutRect(o,{width:r.getWidth(),height:r.getHeight()})}function createViewCoordSys(t,r){var n=[];return t.eachSeriesByType("graph",function(o){var s=o.get("coordinateSystem");if(!s||s==="view"){var l=o.getData(),d=l.mapArray(function(I){var B=l.getItemModel(I);return[+B.get("x"),+B.get("y")]}),g=[],y=[];fromPoints(d,g,y),y[0]-g[0]===0&&(y[0]+=1,g[0]-=1),y[1]-g[1]===0&&(y[1]+=1,g[1]-=1);var b=(y[0]-g[0])/(y[1]-g[1]),C=getViewRect$3(o,r,b);isNaN(b)&&(g=[C.x,C.y],y=[C.x+C.width,C.y+C.height]);var x=y[0]-g[0],S=y[1]-g[1],_=C.width,w=C.height,$=o.coordinateSystem=new View$1;$.zoomLimit=o.get("scaleLimit"),$.setBoundingRect(g[0],g[1],x,S),$.setViewRect(C.x,C.y,_,w),$.setCenter(o.get("center"),r),$.setZoom(o.get("zoom")),n.push($)}}),n}var straightLineProto=Line$3.prototype,bezierCurveProto=BezierCurve$1.prototype,StraightLineShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r})(StraightLineShape);function isStraightLine(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var ECLinePath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="ec-line",o}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new StraightLineShape},r.prototype.buildPath=function(n,o){isStraightLine(o)?straightLineProto.buildPath.call(this,n,o):bezierCurveProto.buildPath.call(this,n,o)},r.prototype.pointAt=function(n){return isStraightLine(this.shape)?straightLineProto.pointAt.call(this,n):bezierCurveProto.pointAt.call(this,n)},r.prototype.tangentAt=function(n){var o=this.shape,s=isStraightLine(o)?[o.x2-o.x1,o.y2-o.y1]:bezierCurveProto.tangentAt.call(this,n);return normalize$3(s,s)},r}(Path$1),ECLinePath$1=ECLinePath,SYMBOL_CATEGORIES=["fromSymbol","toSymbol"];function makeSymbolTypeKey(t){return"_"+t+"Type"}function createSymbol(t,r,n){var o=r.getItemVisual(n,t);if(!(!o||o==="none")){var s=r.getItemVisual(n,t+"Size"),l=r.getItemVisual(n,t+"Rotate"),d=r.getItemVisual(n,t+"Offset"),g=r.getItemVisual(n,t+"KeepAspect"),y=normalizeSymbolSize(s),b=normalizeSymbolOffset(d||0,y),C=createSymbol$1(o,-y[0]/2+b[0],-y[1]/2+b[1],y[0],y[1],null,g);return C.__specifiedRotation=l==null||isNaN(l)?void 0:+l*Math.PI/180||0,C.name=t,C}}function createLine(t){var r=new ECLinePath$1({name:"line",subPixelOptimize:!0});return setLinePoints(r.shape,t),r}function setLinePoints(t,r){t.x1=r[0][0],t.y1=r[0][1],t.x2=r[1][0],t.y2=r[1][1],t.percent=1;var n=r[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var Line=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this)||this;return l._createLine(n,o,s),l}return r.prototype._createLine=function(n,o,s){var l=n.hostModel,d=n.getItemLayout(o),g=createLine(d);g.shape.percent=0,initProps(g,{shape:{percent:1}},l,o),this.add(g),each$f(SYMBOL_CATEGORIES,function(y){var b=createSymbol(y,n,o);this.add(b),this[makeSymbolTypeKey(y)]=n.getItemVisual(o,y)},this),this._updateCommonStl(n,o,s)},r.prototype.updateData=function(n,o,s){var l=n.hostModel,d=this.childOfName("line"),g=n.getItemLayout(o),y={shape:{}};setLinePoints(y.shape,g),updateProps$1(d,y,l,o),each$f(SYMBOL_CATEGORIES,function(b){var C=n.getItemVisual(o,b),x=makeSymbolTypeKey(b);if(this[x]!==C){this.remove(this.childOfName(b));var S=createSymbol(b,n,o);this.add(S)}this[x]=C},this),this._updateCommonStl(n,o,s)},r.prototype.getLinePath=function(){return this.childAt(0)},r.prototype._updateCommonStl=function(n,o,s){var l=n.hostModel,d=this.childOfName("line"),g=s&&s.emphasisLineStyle,y=s&&s.blurLineStyle,b=s&&s.selectLineStyle,C=s&&s.labelStatesModels,x=s&&s.emphasisDisabled,S=s&&s.focus,_=s&&s.blurScope;if(!s||n.hasItemOption){var w=n.getItemModel(o),$=w.getModel("emphasis");g=$.getModel("lineStyle").getLineStyle(),y=w.getModel(["blur","lineStyle"]).getLineStyle(),b=w.getModel(["select","lineStyle"]).getLineStyle(),x=$.get("disabled"),S=$.get("focus"),_=$.get("blurScope"),C=getLabelStatesModels(w)}var I=n.getItemVisual(o,"style"),B=I.stroke;d.useStyle(I),d.style.fill=null,d.style.strokeNoScale=!0,d.ensureState("emphasis").style=g,d.ensureState("blur").style=y,d.ensureState("select").style=b,each$f(SYMBOL_CATEGORIES,function(D){var N=this.childOfName(D);if(N){N.setColor(B),N.style.opacity=I.opacity;for(var H=0;H<SPECIAL_STATES.length;H++){var Q=SPECIAL_STATES[H],G=d.getState(Q);if(G){var K=G.style||{},W=N.ensureState(Q),j=W.style||(W.style={});K.stroke!=null&&(j[N.__isEmptyBrush?"stroke":"fill"]=K.stroke),K.opacity!=null&&(j.opacity=K.opacity)}}N.markRedraw()}},this);var R=l.getRawValue(o);setLabelStyle(this,C,{labelDataIndex:o,labelFetcher:{getFormattedLabel:function(D,N){return l.getFormattedLabel(D,N,n.dataType)}},inheritColor:B||"#000",defaultOpacity:I.opacity,defaultText:(R==null?n.getName(o):isFinite(R)?round$3(R):R)+""});var P=this.getTextContent();if(P){var M=C.normal;P.__align=P.style.align,P.__verticalAlign=P.style.verticalAlign,P.__position=M.get("position")||"middle";var O=M.get("distance");isArray$1(O)||(O=[O,O]),P.__labelDistance=O}this.setTextConfig({position:null,local:!0,inside:!1}),toggleHoverEmphasis(this,S,_,x)},r.prototype.highlight=function(){enterEmphasis(this)},r.prototype.downplay=function(){leaveEmphasis(this)},r.prototype.updateLayout=function(n,o){this.setLinePoints(n.getItemLayout(o))},r.prototype.setLinePoints=function(n){var o=this.childOfName("line");setLinePoints(o.shape,n),o.dirty()},r.prototype.beforeUpdate=function(){var n=this,o=n.childOfName("fromSymbol"),s=n.childOfName("toSymbol"),l=n.getTextContent();if(!o&&!s&&(!l||l.ignore))return;for(var d=1,g=this.parent;g;)g.scaleX&&(d/=g.scaleX),g=g.parent;var y=n.childOfName("line");if(!this.__dirty&&!y.__dirty)return;var b=y.shape.percent,C=y.pointAt(0),x=y.pointAt(b),S=sub([],x,C);normalize$3(S,S);function _(G,K){var W=G.__specifiedRotation;if(W==null){var j=y.tangentAt(K);G.attr("rotation",(K===1?-1:1)*Math.PI/2-Math.atan2(j[1],j[0]))}else G.attr("rotation",W)}if(o&&(o.setPosition(C),_(o,0),o.scaleX=o.scaleY=d*b,o.markRedraw()),s&&(s.setPosition(x),_(s,1),s.scaleX=s.scaleY=d*b,s.markRedraw()),l&&!l.ignore){l.x=l.y=0,l.originX=l.originY=0;var w=void 0,$=void 0,I=l.__labelDistance,B=I[0]*d,R=I[1]*d,P=b/2,M=y.tangentAt(P),O=[M[1],-M[0]],D=y.pointAt(P);O[1]>0&&(O[0]=-O[0],O[1]=-O[1]);var N=M[0]<0?-1:1;if(l.__position!=="start"&&l.__position!=="end"){var H=-Math.atan2(M[1],M[0]);x[0]<C[0]&&(H=Math.PI+H),l.rotation=H}var Q=void 0;switch(l.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":Q=-R,$="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":Q=R,$="top";break;default:Q=0,$="middle"}switch(l.__position){case"end":l.x=S[0]*B+x[0],l.y=S[1]*R+x[1],w=S[0]>.8?"left":S[0]<-.8?"right":"center",$=S[1]>.8?"top":S[1]<-.8?"bottom":"middle";break;case"start":l.x=-S[0]*B+C[0],l.y=-S[1]*R+C[1],w=S[0]>.8?"right":S[0]<-.8?"left":"center",$=S[1]>.8?"bottom":S[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":l.x=B*N+C[0],l.y=C[1]+Q,w=M[0]<0?"right":"left",l.originX=-B*N,l.originY=-Q;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":l.x=D[0],l.y=D[1]+Q,w="center",l.originY=-Q;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":l.x=-B*N+x[0],l.y=x[1]+Q,w=M[0]>=0?"right":"left",l.originX=B*N,l.originY=-Q;break}l.scaleX=l.scaleY=d,l.setStyle({verticalAlign:l.__verticalAlign||$,align:l.__align||w})}},r}(Group$4),Line$1=Line,LineDraw=function(){function t(r){this.group=new Group$4,this._LineCtor=r||Line$1}return t.prototype.updateData=function(r){var n=this;this._progressiveEls=null;var o=this,s=o.group,l=o._lineData;o._lineData=r,l||s.removeAll();var d=makeSeriesScope$1(r);r.diff(l).add(function(g){n._doAdd(r,g,d)}).update(function(g,y){n._doUpdate(l,r,y,g,d)}).remove(function(g){s.remove(l.getItemGraphicEl(g))}).execute()},t.prototype.updateLayout=function(){var r=this._lineData;!r||r.eachItemGraphicEl(function(n,o){n.updateLayout(r,o)},this)},t.prototype.incrementalPrepareUpdate=function(r){this._seriesScope=makeSeriesScope$1(r),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(r,n){this._progressiveEls=[];function o(g){!g.isGroup&&!isEffectObject(g)&&(g.incremental=!0,g.ensureState("emphasis").hoverLayer=!0)}for(var s=r.start;s<r.end;s++){var l=n.getItemLayout(s);if(lineNeedsDraw(l)){var d=new this._LineCtor(n,s,this._seriesScope);d.traverse(o),this.group.add(d),n.setItemGraphicEl(s,d),this._progressiveEls.push(d)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(r){traverseElements(this._progressiveEls||this.group,r)},t.prototype._doAdd=function(r,n,o){var s=r.getItemLayout(n);if(!!lineNeedsDraw(s)){var l=new this._LineCtor(r,n,o);r.setItemGraphicEl(n,l),this.group.add(l)}},t.prototype._doUpdate=function(r,n,o,s,l){var d=r.getItemGraphicEl(o);if(!lineNeedsDraw(n.getItemLayout(s))){this.group.remove(d);return}d?d.updateData(n,s,l):d=new this._LineCtor(n,s,l),n.setItemGraphicEl(s,d),this.group.add(d)},t}();function isEffectObject(t){return t.animators&&t.animators.length>0}function makeSeriesScope$1(t){var r=t.hostModel,n=r.getModel("emphasis");return{lineStyle:r.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:r.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:r.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:getLabelStatesModels(r)}}function isPointNaN(t){return isNaN(t[0])||isNaN(t[1])}function lineNeedsDraw(t){return t&&!isPointNaN(t[0])&&!isPointNaN(t[1])}var LineDraw$1=LineDraw,v1=[],v2=[],v3=[],quadraticAt=quadraticAt$1,v2DistSquare=distSquare,mathAbs=Math.abs;function intersectCurveCircle(t,r,n){for(var o=t[0],s=t[1],l=t[2],d=1/0,g,y=n*n,b=.1,C=.1;C<=.9;C+=.1){v1[0]=quadraticAt(o[0],s[0],l[0],C),v1[1]=quadraticAt(o[1],s[1],l[1],C);var x=mathAbs(v2DistSquare(v1,r)-y);x<d&&(d=x,g=C)}for(var S=0;S<32;S++){var _=g+b;v2[0]=quadraticAt(o[0],s[0],l[0],g),v2[1]=quadraticAt(o[1],s[1],l[1],g),v3[0]=quadraticAt(o[0],s[0],l[0],_),v3[1]=quadraticAt(o[1],s[1],l[1],_);var x=v2DistSquare(v2,r)-y;if(mathAbs(x)<.01)break;var w=v2DistSquare(v3,r)-y;b/=2,x<0?w>=0?g=g+b:g=g-b:w>=0?g=g-b:g=g+b}return g}function adjustEdge(t,r){var n=[],o=quadraticSubdivide,s=[[],[],[]],l=[[],[]],d=[];r/=2,t.eachEdge(function(g,y){var b=g.getLayout(),C=g.getVisual("fromSymbol"),x=g.getVisual("toSymbol");b.__original||(b.__original=[clone$3(b[0]),clone$3(b[1])],b[2]&&b.__original.push(clone$3(b[2])));var S=b.__original;if(b[2]!=null){if(copy$1(s[0],S[0]),copy$1(s[1],S[2]),copy$1(s[2],S[1]),C&&C!=="none"){var _=getSymbolSize(g.node1),w=intersectCurveCircle(s,S[0],_*r);o(s[0][0],s[1][0],s[2][0],w,n),s[0][0]=n[3],s[1][0]=n[4],o(s[0][1],s[1][1],s[2][1],w,n),s[0][1]=n[3],s[1][1]=n[4]}if(x&&x!=="none"){var _=getSymbolSize(g.node2),w=intersectCurveCircle(s,S[1],_*r);o(s[0][0],s[1][0],s[2][0],w,n),s[1][0]=n[1],s[2][0]=n[2],o(s[0][1],s[1][1],s[2][1],w,n),s[1][1]=n[1],s[2][1]=n[2]}copy$1(b[0],s[0]),copy$1(b[1],s[2]),copy$1(b[2],s[1])}else{if(copy$1(l[0],S[0]),copy$1(l[1],S[1]),sub(d,l[1],l[0]),normalize$3(d,d),C&&C!=="none"){var _=getSymbolSize(g.node1);scaleAndAdd$1(l[0],l[0],d,_*r)}if(x&&x!=="none"){var _=getSymbolSize(g.node2);scaleAndAdd$1(l[1],l[1],d,-_*r)}copy$1(b[0],l[0]),copy$1(b[1],l[1])}})}function isViewCoordSys(t){return t.type==="view"}var GraphView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,o){var s=new SymbolDraw$1,l=new LineDraw$1,d=this.group;this._controller=new RoamController$1(o.getZr()),this._controllerHost={target:d},d.add(s.group),d.add(l.group),this._symbolDraw=s,this._lineDraw=l,this._firstRender=!0},r.prototype.render=function(n,o,s){var l=this,d=n.coordinateSystem;this._model=n;var g=this._symbolDraw,y=this._lineDraw,b=this.group;if(isViewCoordSys(d)){var C={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?b.attr(C):updateProps$1(b,C,n)}adjustEdge(n.getGraph(),getNodeGlobalScale(n));var x=n.getData();g.updateData(x);var S=n.getEdgeData();y.updateData(S),this._updateNodeAndLinkScale(),this._updateController(n,o,s),clearTimeout(this._layoutTimeout);var _=n.forceLayout,w=n.get(["force","layoutAnimation"]);_&&this._startForceLayoutIteration(_,w);var $=n.get("layout");x.graph.eachNode(function(P){var M=P.dataIndex,O=P.getGraphicEl(),D=P.getModel();if(!!O){O.off("drag").off("dragend");var N=D.get("draggable");N&&O.on("drag",function(Q){switch($){case"force":_.warmUp(),!l._layouting&&l._startForceLayoutIteration(_,w),_.setFixed(M),x.setItemLayout(M,[O.x,O.y]);break;case"circular":x.setItemLayout(M,[O.x,O.y]),P.setLayout({fixed:!0},!0),circularLayout(n,"symbolSize",P,[Q.offsetX,Q.offsetY]),l.updateLayout(n);break;case"none":default:x.setItemLayout(M,[O.x,O.y]),simpleLayoutEdge(n.getGraph(),n),l.updateLayout(n);break}}).on("dragend",function(){_&&_.setUnfixed(M)}),O.setDraggable(N,!!D.get("cursor"));var H=D.get(["emphasis","focus"]);H==="adjacency"&&(getECData(O).focus=P.getAdjacentDataIndices())}}),x.graph.eachEdge(function(P){var M=P.getGraphicEl(),O=P.getModel().get(["emphasis","focus"]);!M||O==="adjacency"&&(getECData(M).focus={edge:[P.dataIndex],node:[P.node1.dataIndex,P.node2.dataIndex]})});var I=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),B=x.getLayout("cx"),R=x.getLayout("cy");x.graph.eachNode(function(P){rotateNodeLabel(P,I,B,R)}),this._firstRender=!1},r.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},r.prototype._startForceLayoutIteration=function(n,o){var s=this;(function l(){n.step(function(d){s.updateLayout(s._model),(s._layouting=!d)&&(o?s._layoutTimeout=setTimeout(l,16):l())})})()},r.prototype._updateController=function(n,o,s){var l=this,d=this._controller,g=this._controllerHost,y=this.group;if(d.setPointerChecker(function(b,C,x){var S=y.getBoundingRect();return S.applyTransform(y.transform),S.contain(C,x)&&!onIrrelevantElement(b,s,n)}),!isViewCoordSys(n.coordinateSystem)){d.disable();return}d.enable(n.get("roam")),g.zoomLimit=n.get("scaleLimit"),g.zoom=n.coordinateSystem.getZoom(),d.off("pan").off("zoom").on("pan",function(b){updateViewOnPan(g,b.dx,b.dy),s.dispatchAction({seriesId:n.id,type:"graphRoam",dx:b.dx,dy:b.dy})}).on("zoom",function(b){updateViewOnZoom(g,b.scale,b.originX,b.originY),s.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:b.scale,originX:b.originX,originY:b.originY}),l._updateNodeAndLinkScale(),adjustEdge(n.getGraph(),getNodeGlobalScale(n)),l._lineDraw.updateLayout(),s.updateLabelLayout()})},r.prototype._updateNodeAndLinkScale=function(){var n=this._model,o=n.getData(),s=getNodeGlobalScale(n);o.eachItemGraphicEl(function(l,d){l&&l.setSymbolScale(s)})},r.prototype.updateLayout=function(n){adjustEdge(n.getGraph(),getNodeGlobalScale(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},r.prototype.remove=function(n,o){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},r.type="graph",r}(ChartView$1),GraphView$1=GraphView;function generateNodeKey(t){return"_EC_"+t}var Graph=function(){function t(r){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=r||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(r,n){r=r==null?""+n:""+r;var o=this._nodesMap;if(!o[generateNodeKey(r)]){var s=new GraphNode(r,n);return s.hostGraph=this,this.nodes.push(s),o[generateNodeKey(r)]=s,s}},t.prototype.getNodeByIndex=function(r){var n=this.data.getRawIndex(r);return this.nodes[n]},t.prototype.getNodeById=function(r){return this._nodesMap[generateNodeKey(r)]},t.prototype.addEdge=function(r,n,o){var s=this._nodesMap,l=this._edgesMap;if(isNumber(r)&&(r=this.nodes[r]),isNumber(n)&&(n=this.nodes[n]),r instanceof GraphNode||(r=s[generateNodeKey(r)]),n instanceof GraphNode||(n=s[generateNodeKey(n)]),!(!r||!n)){var d=r.id+"-"+n.id,g=new GraphEdge(r,n,o);return g.hostGraph=this,this._directed&&(r.outEdges.push(g),n.inEdges.push(g)),r.edges.push(g),r!==n&&n.edges.push(g),this.edges.push(g),l[d]=g,g}},t.prototype.getEdgeByIndex=function(r){var n=this.edgeData.getRawIndex(r);return this.edges[n]},t.prototype.getEdge=function(r,n){r instanceof GraphNode&&(r=r.id),n instanceof GraphNode&&(n=n.id);var o=this._edgesMap;return this._directed?o[r+"-"+n]:o[r+"-"+n]||o[n+"-"+r]},t.prototype.eachNode=function(r,n){for(var o=this.nodes,s=o.length,l=0;l<s;l++)o[l].dataIndex>=0&&r.call(n,o[l],l)},t.prototype.eachEdge=function(r,n){for(var o=this.edges,s=o.length,l=0;l<s;l++)o[l].dataIndex>=0&&o[l].node1.dataIndex>=0&&o[l].node2.dataIndex>=0&&r.call(n,o[l],l)},t.prototype.breadthFirstTraverse=function(r,n,o,s){if(n instanceof GraphNode||(n=this._nodesMap[generateNodeKey(n)]),!!n){for(var l=o==="out"?"outEdges":o==="in"?"inEdges":"edges",d=0;d<this.nodes.length;d++)this.nodes[d].__visited=!1;if(!r.call(s,n,null))for(var g=[n];g.length;)for(var y=g.shift(),b=y[l],d=0;d<b.length;d++){var C=b[d],x=C.node1===y?C.node2:C.node1;if(!x.__visited){if(r.call(s,x,y))return;g.push(x),x.__visited=!0}}}},t.prototype.update=function(){for(var r=this.data,n=this.edgeData,o=this.nodes,s=this.edges,l=0,d=o.length;l<d;l++)o[l].dataIndex=-1;for(var l=0,d=r.count();l<d;l++)o[r.getRawIndex(l)].dataIndex=l;n.filterSelf(function(g){var y=s[n.getRawIndex(g)];return y.node1.dataIndex>=0&&y.node2.dataIndex>=0});for(var l=0,d=s.length;l<d;l++)s[l].dataIndex=-1;for(var l=0,d=n.count();l<d;l++)s[n.getRawIndex(l)].dataIndex=l},t.prototype.clone=function(){for(var r=new t(this._directed),n=this.nodes,o=this.edges,s=0;s<n.length;s++)r.addNode(n[s].id,n[s].dataIndex);for(var s=0;s<o.length;s++){var l=o[s];r.addEdge(l.node1.id,l.node2.id,l.dataIndex)}return r},t}(),GraphNode=function(){function t(r,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=r==null?"":r,this.dataIndex=n==null?-1:n}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(r){if(!(this.dataIndex<0)){var n=this.hostGraph,o=n.data.getItemModel(this.dataIndex);return o.getModel(r)}},t.prototype.getAdjacentDataIndices=function(){for(var r={edge:[],node:[]},n=0;n<this.edges.length;n++){var o=this.edges[n];o.dataIndex<0||(r.edge.push(o.dataIndex),r.node.push(o.node1.dataIndex,o.node2.dataIndex))}return r},t}(),GraphEdge=function(){function t(r,n,o){this.dataIndex=-1,this.node1=r,this.node2=n,this.dataIndex=o==null?-1:o}return t.prototype.getModel=function(r){if(!(this.dataIndex<0)){var n=this.hostGraph,o=n.edgeData.getItemModel(this.dataIndex);return o.getModel(r)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t}();function createGraphDataProxyMixin(t,r){return{getValue:function(n){var o=this[t][r];return o.getStore().get(o.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,o){this.dataIndex>=0&&this[t][r].setItemVisual(this.dataIndex,n,o)},getVisual:function(n){return this[t][r].getItemVisual(this.dataIndex,n)},setLayout:function(n,o){this.dataIndex>=0&&this[t][r].setItemLayout(this.dataIndex,n,o)},getLayout:function(){return this[t][r].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][r].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][r].getRawIndex(this.dataIndex)}}}mixin(GraphNode,createGraphDataProxyMixin("hostGraph","data"));mixin(GraphEdge,createGraphDataProxyMixin("hostGraph","edgeData"));var Graph$1=Graph;function createGraphFromNodeEdge(t,r,n,o,s){for(var l=new Graph$1(o),d=0;d<t.length;d++)l.addNode(retrieve(t[d].id,t[d].name,d),d);for(var g=[],y=[],b=0,d=0;d<r.length;d++){var C=r[d],x=C.source,S=C.target;l.addEdge(x,S,b)&&(y.push(C),g.push(retrieve(convertOptionIdName(C.id,null),x+" > "+S)),b++)}var _=n.get("coordinateSystem"),w;if(_==="cartesian2d"||_==="polar")w=createSeriesData(t,n);else{var $=CoordinateSystem.get(_),I=$?$.dimensions||[]:[];indexOf(I,"value")<0&&I.concat(["value"]);var B=prepareSeriesDataSchema(t,{coordDimensions:I,encodeDefine:n.getEncode()}).dimensions;w=new SeriesData$1(B,n),w.initData(t)}var R=new SeriesData$1(["value"],n);return R.initData(y,g),s&&s(w,R),linkSeriesData({mainData:w,struct:l,structAttr:"graph",datas:{node:w,edge:R},datasAttr:{node:"data",edge:"edgeData"}}),l.update(),l}var GraphSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.hasSymbolVisual=!0,n}return r.prototype.init=function(n){t.prototype.init.apply(this,arguments);var o=this;function s(){return o._categoriesData}this.legendVisualProvider=new LegendVisualProvider$1(s,s),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},r.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},r.prototype.mergeDefaultAndTheme=function(n){t.prototype.mergeDefaultAndTheme.apply(this,arguments),defaultEmphasis(n,"edgeLabel",["show"])},r.prototype.getInitialData=function(n,o){var s=n.edges||n.links||[],l=n.data||n.nodes||[],d=this;if(l&&s){initCurvenessList(this);var g=createGraphFromNodeEdge(l,s,this,!0,y);return each$f(g.edges,function(b){createEdgeMapForCurveness(b.node1,b.node2,this,b.dataIndex)},this),g.data}function y(b,C){b.wrapMethod("getItemModel",function(w){var $=d._categoriesModels,I=w.getShallow("category"),B=$[I];return B&&(B.parentModel=w.parentModel,w.parentModel=B),w});var x=Model$1.prototype.getModel;function S(w,$){var I=x.call(this,w,$);return I.resolveParentPath=_,I}C.wrapMethod("getItemModel",function(w){return w.resolveParentPath=_,w.getModel=S,w});function _(w){if(w&&(w[0]==="label"||w[1]==="label")){var $=w.slice();return w[0]==="label"?$[0]="edgeLabel":w[1]==="label"&&($[1]="edgeLabel"),$}return w}}},r.prototype.getGraph=function(){return this.getData().graph},r.prototype.getEdgeData=function(){return this.getGraph().edgeData},r.prototype.getCategoriesData=function(){return this._categoriesData},r.prototype.formatTooltip=function(n,o,s){if(s==="edge"){var l=this.getData(),d=this.getDataParams(n,s),g=l.graph.getEdgeByIndex(n),y=l.getName(g.node1.dataIndex),b=l.getName(g.node2.dataIndex),C=[];return y!=null&&C.push(y),b!=null&&C.push(b),createTooltipMarkup("nameValue",{name:C.join(" > "),value:d.value,noValue:d.value==null})}var x=defaultSeriesFormatTooltip({series:this,dataIndex:n,multipleSeries:o});return x},r.prototype._updateCategoriesData=function(){var n=map$1(this.option.categories||[],function(s){return s.value!=null?s:extend({value:0},s)}),o=new SeriesData$1(["value"],this);o.initData(n),this._categoriesData=o,this._categoriesModels=o.mapArray(function(s){return o.getItemModel(s)})},r.prototype.setZoom=function(n){this.option.zoom=n},r.prototype.setCenter=function(n){this.option.center=n},r.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},r.type="series.graph",r.dependencies=["grid","polar","geo","singleAxis","calendar"],r.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"}}},r}(SeriesModel$1),GraphSeriesModel$1=GraphSeriesModel,actionInfo$1={type:"graphRoam",event:"graphRoam",update:"none"};function install$F(t){t.registerChartView(GraphView$1),t.registerSeriesModel(GraphSeriesModel$1),t.registerProcessor(categoryFilter),t.registerVisual(categoryVisual),t.registerVisual(graphEdgeVisual),t.registerLayout(graphSimpleLayout),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,graphCircularLayout),t.registerLayout(graphForceLayout),t.registerCoordinateSystem("graphView",{dimensions:View$1.dimensions,create:createViewCoordSys}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},noop),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},noop),t.registerAction(actionInfo$1,function(r,n,o){n.eachComponent({mainType:"series",query:r},function(s){var l=s.coordinateSystem,d=updateCenterAndZoom(l,r,void 0,o);s.setCenter&&s.setCenter(d.center),s.setZoom&&s.setZoom(d.zoom)})})}var PointerShape=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),PointerPath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="pointer",o}return r.prototype.getDefaultShape=function(){return new PointerShape},r.prototype.buildPath=function(n,o){var s=Math.cos,l=Math.sin,d=o.r,g=o.width,y=o.angle,b=o.x-s(y)*g*(g>=d/3?1:2),C=o.y-l(y)*g*(g>=d/3?1:2);y=o.angle-Math.PI/2,n.moveTo(b,C),n.lineTo(o.x+s(y)*g,o.y+l(y)*g),n.lineTo(o.x+s(o.angle)*d,o.y+l(o.angle)*d),n.lineTo(o.x-s(y)*g,o.y-l(y)*g),n.lineTo(b,C)},r}(Path$1),PointerPath$1=PointerPath;function parsePosition(t,r){var n=t.get("center"),o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),d=parsePercent(n[0],r.getWidth()),g=parsePercent(n[1],r.getHeight()),y=parsePercent(t.get("radius"),l/2);return{cx:d,cy:g,r:y}}function formatLabel(t,r){var n=t==null?"":t+"";return r&&(isString(r)?n=r.replace("{value}",n):isFunction(r)&&(n=r(t))),n}var GaugeView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){this.group.removeAll();var l=n.get(["axisLine","lineStyle","color"]),d=parsePosition(n,s);this._renderMain(n,o,s,l,d),this._data=n.getData()},r.prototype.dispose=function(){},r.prototype._renderMain=function(n,o,s,l,d){var g=this.group,y=n.get("clockwise"),b=-n.get("startAngle")/180*Math.PI,C=-n.get("endAngle")/180*Math.PI,x=n.getModel("axisLine"),S=x.get("roundCap"),_=S?Sausage:Sector$1,w=x.get("show"),$=x.getModel("lineStyle"),I=$.get("width"),B=[b,C];normalizeArcAngles(B,!y),b=B[0],C=B[1];for(var R=C-b,P=b,M=[],O=0;w&&O<l.length;O++){var D=Math.min(Math.max(l[O][0],0),1);C=b+R*D;var N=new _({shape:{startAngle:P,endAngle:C,cx:d.cx,cy:d.cy,clockwise:y,r0:d.r-I,r:d.r},silent:!0});N.setStyle({fill:l[O][1]}),N.setStyle($.getLineStyle(["color","width"])),M.push(N),P=C}M.reverse(),each$f(M,function(Q){return g.add(Q)});var H=function(Q){if(Q<=0)return l[0][1];var G;for(G=0;G<l.length;G++)if(l[G][0]>=Q&&(G===0?0:l[G-1][0])<Q)return l[G][1];return l[G-1][1]};this._renderTicks(n,o,s,H,d,b,C,y,I),this._renderTitleAndDetail(n,o,s,H,d),this._renderAnchor(n,d),this._renderPointer(n,o,s,H,d,b,C,y,I)},r.prototype._renderTicks=function(n,o,s,l,d,g,y,b,C){for(var x=this.group,S=d.cx,_=d.cy,w=d.r,$=+n.get("min"),I=+n.get("max"),B=n.getModel("splitLine"),R=n.getModel("axisTick"),P=n.getModel("axisLabel"),M=n.get("splitNumber"),O=R.get("splitNumber"),D=parsePercent(B.get("length"),w),N=parsePercent(R.get("length"),w),H=g,Q=(y-g)/M,G=Q/O,K=B.getModel("lineStyle").getLineStyle(),W=R.getModel("lineStyle").getLineStyle(),j=B.get("distance"),Y,q,X=0;X<=M;X++){if(Y=Math.cos(H),q=Math.sin(H),B.get("show")){var re=j?j+C:C,te=new Line$3({shape:{x1:Y*(w-re)+S,y1:q*(w-re)+_,x2:Y*(w-D-re)+S,y2:q*(w-D-re)+_},style:K,silent:!0});K.stroke==="auto"&&te.setStyle({stroke:l(X/M)}),x.add(te)}if(P.get("show")){var re=P.get("distance")+j,oe=formatLabel(round$3(X/M*(I-$)+$),P.get("formatter")),ae=l(X/M),se=Y*(w-D-re)+S,ue=q*(w-D-re)+_,Ae=P.get("rotate"),pe=0;Ae==="radial"?(pe=-H+2*Math.PI,pe>Math.PI/2&&(pe+=Math.PI)):Ae==="tangential"?pe=-H-Math.PI/2:isNumber(Ae)&&(pe=Ae*Math.PI/180),pe===0?x.add(new ZRText$1({style:createTextStyle$1(P,{text:oe,x:se,y:ue,verticalAlign:q<-.8?"top":q>.8?"bottom":"middle",align:Y<-.4?"left":Y>.4?"right":"center"},{inheritColor:ae}),silent:!0})):x.add(new ZRText$1({style:createTextStyle$1(P,{text:oe,x:se,y:ue,verticalAlign:"middle",align:"center"},{inheritColor:ae}),silent:!0,originX:se,originY:ue,rotation:pe}))}if(R.get("show")&&X!==M){var re=R.get("distance");re=re?re+C:C;for(var he=0;he<=O;he++){Y=Math.cos(H),q=Math.sin(H);var Ce=new Line$3({shape:{x1:Y*(w-re)+S,y1:q*(w-re)+_,x2:Y*(w-N-re)+S,y2:q*(w-N-re)+_},silent:!0,style:W});W.stroke==="auto"&&Ce.setStyle({stroke:l((X+he/O)/M)}),x.add(Ce),H+=G}H-=G}else H+=Q}},r.prototype._renderPointer=function(n,o,s,l,d,g,y,b,C){var x=this.group,S=this._data,_=this._progressEls,w=[],$=n.get(["pointer","show"]),I=n.getModel("progress"),B=I.get("show"),R=n.getData(),P=R.mapDimension("value"),M=+n.get("min"),O=+n.get("max"),D=[M,O],N=[g,y];function H(G,K){var W=R.getItemModel(G),j=W.getModel("pointer"),Y=parsePercent(j.get("width"),d.r),q=parsePercent(j.get("length"),d.r),X=n.get(["pointer","icon"]),re=j.get("offsetCenter"),te=parsePercent(re[0],d.r),oe=parsePercent(re[1],d.r),ae=j.get("keepAspect"),se;return X?se=createSymbol$1(X,te-Y/2,oe-q,Y,q,null,ae):se=new PointerPath$1({shape:{angle:-Math.PI/2,width:Y,r:q,x:te,y:oe}}),se.rotation=-(K+Math.PI/2),se.x=d.cx,se.y=d.cy,se}function Q(G,K){var W=I.get("roundCap"),j=W?Sausage:Sector$1,Y=I.get("overlap"),q=Y?I.get("width"):C/R.count(),X=Y?d.r-q:d.r-(G+1)*q,re=Y?d.r:d.r-G*q,te=new j({shape:{startAngle:g,endAngle:K,cx:d.cx,cy:d.cy,clockwise:b,r0:X,r:re}});return Y&&(te.z2=O-R.get(P,G)%O),te}(B||$)&&(R.diff(S).add(function(G){var K=R.get(P,G);if($){var W=H(G,g);initProps(W,{rotation:-((isNaN(+K)?N[0]:linearMap$2(K,D,N,!0))+Math.PI/2)},n),x.add(W),R.setItemGraphicEl(G,W)}if(B){var j=Q(G,g),Y=I.get("clip");initProps(j,{shape:{endAngle:linearMap$2(K,D,N,Y)}},n),x.add(j),setCommonECData(n.seriesIndex,R.dataType,G,j),w[G]=j}}).update(function(G,K){var W=R.get(P,G);if($){var j=S.getItemGraphicEl(K),Y=j?j.rotation:g,q=H(G,Y);q.rotation=Y,updateProps$1(q,{rotation:-((isNaN(+W)?N[0]:linearMap$2(W,D,N,!0))+Math.PI/2)},n),x.add(q),R.setItemGraphicEl(G,q)}if(B){var X=_[K],re=X?X.shape.endAngle:g,te=Q(G,re),oe=I.get("clip");updateProps$1(te,{shape:{endAngle:linearMap$2(W,D,N,oe)}},n),x.add(te),setCommonECData(n.seriesIndex,R.dataType,G,te),w[G]=te}}).execute(),R.each(function(G){var K=R.getItemModel(G),W=K.getModel("emphasis"),j=W.get("focus"),Y=W.get("blurScope"),q=W.get("disabled");if($){var X=R.getItemGraphicEl(G),re=R.getItemVisual(G,"style"),te=re.fill;if(X instanceof ZRImage$1){var oe=X.style;X.useStyle(extend({image:oe.image,x:oe.x,y:oe.y,width:oe.width,height:oe.height},re))}else X.useStyle(re),X.type!=="pointer"&&X.setColor(te);X.setStyle(K.getModel(["pointer","itemStyle"]).getItemStyle()),X.style.fill==="auto"&&X.setStyle("fill",l(linearMap$2(R.get(P,G),D,[0,1],!0))),X.z2EmphasisLift=0,setStatesStylesFromModel(X,K),toggleHoverEmphasis(X,j,Y,q)}if(B){var ae=w[G];ae.useStyle(R.getItemVisual(G,"style")),ae.setStyle(K.getModel(["progress","itemStyle"]).getItemStyle()),ae.z2EmphasisLift=0,setStatesStylesFromModel(ae,K),toggleHoverEmphasis(ae,j,Y,q)}}),this._progressEls=w)},r.prototype._renderAnchor=function(n,o){var s=n.getModel("anchor"),l=s.get("show");if(l){var d=s.get("size"),g=s.get("icon"),y=s.get("offsetCenter"),b=s.get("keepAspect"),C=createSymbol$1(g,o.cx-d/2+parsePercent(y[0],o.r),o.cy-d/2+parsePercent(y[1],o.r),d,d,null,b);C.z2=s.get("showAbove")?1:0,C.setStyle(s.getModel("itemStyle").getItemStyle()),this.group.add(C)}},r.prototype._renderTitleAndDetail=function(n,o,s,l,d){var g=this,y=n.getData(),b=y.mapDimension("value"),C=+n.get("min"),x=+n.get("max"),S=new Group$4,_=[],w=[],$=n.isAnimationEnabled(),I=n.get(["pointer","showAbove"]);y.diff(this._data).add(function(B){_[B]=new ZRText$1({silent:!0}),w[B]=new ZRText$1({silent:!0})}).update(function(B,R){_[B]=g._titleEls[R],w[B]=g._detailEls[R]}).execute(),y.each(function(B){var R=y.getItemModel(B),P=y.get(b,B),M=new Group$4,O=l(linearMap$2(P,[C,x],[0,1],!0)),D=R.getModel("title");if(D.get("show")){var N=D.get("offsetCenter"),H=d.cx+parsePercent(N[0],d.r),Q=d.cy+parsePercent(N[1],d.r),G=_[B];G.attr({z2:I?0:2,style:createTextStyle$1(D,{x:H,y:Q,text:y.getName(B),align:"center",verticalAlign:"middle"},{inheritColor:O})}),M.add(G)}var K=R.getModel("detail");if(K.get("show")){var W=K.get("offsetCenter"),j=d.cx+parsePercent(W[0],d.r),Y=d.cy+parsePercent(W[1],d.r),q=parsePercent(K.get("width"),d.r),X=parsePercent(K.get("height"),d.r),re=n.get(["progress","show"])?y.getItemVisual(B,"style").fill:O,G=w[B],te=K.get("formatter");G.attr({z2:I?0:2,style:createTextStyle$1(K,{x:j,y:Y,text:formatLabel(P,te),width:isNaN(q)?null:q,height:isNaN(X)?null:X,align:"center",verticalAlign:"middle"},{inheritColor:re})}),setLabelValueAnimation(G,{normal:K},P,function(ae){return formatLabel(ae,te)}),$&&animateLabelValue(G,B,y,n,{getFormattedLabel:function(ae,se,ue,Ae,pe,he){return formatLabel(he?he.interpolatedValue:P,te)}}),M.add(G)}S.add(M)}),this.group.add(S),this._titleEls=_,this._detailEls=w},r.type="gauge",r}(ChartView$1),GaugeView$1=GaugeView,GaugeSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.visualStyleAccessPath="itemStyle",n}return r.prototype.getInitialData=function(n,o){return createSeriesDataSimply(this,["value"])},r.type="series.gauge",r.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,rotate:0},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}},r}(SeriesModel$1),GaugeSeriesModel$1=GaugeSeriesModel;function install$E(t){t.registerChartView(GaugeView$1),t.registerSeriesModel(GaugeSeriesModel$1)}var opacityAccessPath$1=["itemStyle","opacity"],FunnelPiece=function(t){__extends$1(r,t);function r(n,o){var s=t.call(this)||this,l=s,d=new Polyline$3,g=new ZRText$1;return l.setTextContent(g),s.setTextGuideLine(d),s.updateData(n,o,!0),s}return r.prototype.updateData=function(n,o,s){var l=this,d=n.hostModel,g=n.getItemModel(o),y=n.getItemLayout(o),b=g.getModel("emphasis"),C=g.get(opacityAccessPath$1);C=C==null?1:C,s||saveOldStyle(l),l.useStyle(n.getItemVisual(o,"style")),l.style.lineJoin="round",s?(l.setShape({points:y.points}),l.style.opacity=0,initProps(l,{style:{opacity:C}},d,o)):updateProps$1(l,{style:{opacity:C},shape:{points:y.points}},d,o),setStatesStylesFromModel(l,g),this._updateLabel(n,o),toggleHoverEmphasis(this,b.get("focus"),b.get("blurScope"),b.get("disabled"))},r.prototype._updateLabel=function(n,o){var s=this,l=this.getTextGuideLine(),d=s.getTextContent(),g=n.hostModel,y=n.getItemModel(o),b=n.getItemLayout(o),C=b.label,x=n.getItemVisual(o,"style"),S=x.fill;setLabelStyle(d,getLabelStatesModels(y),{labelFetcher:n.hostModel,labelDataIndex:o,defaultOpacity:x.opacity,defaultText:n.getName(o)},{normal:{align:C.textAlign,verticalAlign:C.verticalAlign}}),s.setTextConfig({local:!0,inside:!!C.inside,insideStroke:S,outsideFill:S});var _=C.linePoints;l.setShape({points:_}),s.textGuideLineConfig={anchor:_?new Point$1(_[0][0],_[0][1]):null},updateProps$1(d,{style:{x:C.x,y:C.y}},g,o),d.attr({rotation:C.rotation,originX:C.x,originY:C.y,z2:10}),setLabelLineStyle(s,getLabelLineStatesModels(y),{stroke:S})},r}(Polygon$1),FunnelView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.ignoreLabelLineUpdate=!0,n}return r.prototype.render=function(n,o,s){var l=n.getData(),d=this._data,g=this.group;l.diff(d).add(function(y){var b=new FunnelPiece(l,y);l.setItemGraphicEl(y,b),g.add(b)}).update(function(y,b){var C=d.getItemGraphicEl(b);C.updateData(l,y),g.add(C),l.setItemGraphicEl(y,C)}).remove(function(y){var b=d.getItemGraphicEl(y);removeElementWithFadeOut(b,n,y)}).execute(),this._data=l},r.prototype.remove=function(){this.group.removeAll(),this._data=null},r.prototype.dispose=function(){},r.type="funnel",r}(ChartView$1),FunnelView$1=FunnelView,FunnelSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(n)},r.prototype.getInitialData=function(n,o){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},r.prototype._defaultLabelLine=function(n){defaultEmphasis(n,"labelLine",["show"]);var o=n.labelLine,s=n.emphasis.labelLine;o.show=o.show&&n.label.show,s.show=s.show&&n.emphasis.label.show},r.prototype.getDataParams=function(n){var o=this.getData(),s=t.prototype.getDataParams.call(this,n),l=o.mapDimension("value"),d=o.getSum(l);return s.percent=d?+(o.get(l,n)/d*100).toFixed(2):0,s.$vars.push("percent"),s},r.type="series.funnel",r.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"}}},r}(SeriesModel$1),FunnelSeriesModel$1=FunnelSeriesModel;function getViewRect$2(t,r){return getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function getSortedIndices(t,r){for(var n=t.mapDimension("value"),o=t.mapArray(n,function(y){return y}),s=[],l=r==="ascending",d=0,g=t.count();d<g;d++)s[d]=d;return isFunction(r)?s.sort(r):r!=="none"&&s.sort(function(y,b){return l?o[y]-o[b]:o[b]-o[y]}),s}function labelLayout(t){var r=t.hostModel,n=r.get("orient");t.each(function(o){var s=t.getItemModel(o),l=s.getModel("label"),d=l.get("position"),g=s.getModel("labelLine"),y=t.getItemLayout(o),b=y.points,C=d==="inner"||d==="inside"||d==="center"||d==="insideLeft"||d==="insideRight",x,S,_,w;if(C)d==="insideLeft"?(S=(b[0][0]+b[3][0])/2+5,_=(b[0][1]+b[3][1])/2,x="left"):d==="insideRight"?(S=(b[1][0]+b[2][0])/2-5,_=(b[1][1]+b[2][1])/2,x="right"):(S=(b[0][0]+b[1][0]+b[2][0]+b[3][0])/4,_=(b[0][1]+b[1][1]+b[2][1]+b[3][1])/4,x="center"),w=[[S,_],[S,_]];else{var $=void 0,I=void 0,B=void 0,R=void 0,P=g.get("length");d==="left"?($=(b[3][0]+b[0][0])/2,I=(b[3][1]+b[0][1])/2,B=$-P,S=B-5,x="right"):d==="right"?($=(b[1][0]+b[2][0])/2,I=(b[1][1]+b[2][1])/2,B=$+P,S=B+5,x="left"):d==="top"?($=(b[3][0]+b[0][0])/2,I=(b[3][1]+b[0][1])/2,R=I-P,_=R-5,x="center"):d==="bottom"?($=(b[1][0]+b[2][0])/2,I=(b[1][1]+b[2][1])/2,R=I+P,_=R+5,x="center"):d==="rightTop"?($=n==="horizontal"?b[3][0]:b[1][0],I=n==="horizontal"?b[3][1]:b[1][1],n==="horizontal"?(R=I-P,_=R-5,x="center"):(B=$+P,S=B+5,x="top")):d==="rightBottom"?($=b[2][0],I=b[2][1],n==="horizontal"?(R=I+P,_=R+5,x="center"):(B=$+P,S=B+5,x="bottom")):d==="leftTop"?($=b[0][0],I=n==="horizontal"?b[0][1]:b[1][1],n==="horizontal"?(R=I-P,_=R-5,x="center"):(B=$-P,S=B-5,x="right")):d==="leftBottom"?($=n==="horizontal"?b[1][0]:b[3][0],I=n==="horizontal"?b[1][1]:b[2][1],n==="horizontal"?(R=I+P,_=R+5,x="center"):(B=$-P,S=B-5,x="right")):($=(b[1][0]+b[2][0])/2,I=(b[1][1]+b[2][1])/2,n==="horizontal"?(R=I+P,_=R+5,x="center"):(B=$+P,S=B+5,x="left")),n==="horizontal"?(B=$,S=B):(R=I,_=R),w=[[$,I],[B,R]]}y.label={linePoints:w,x:S,y:_,verticalAlign:"middle",textAlign:x,inside:C}})}function funnelLayout(t,r){t.eachSeriesByType("funnel",function(n){var o=n.getData(),s=o.mapDimension("value"),l=n.get("sort"),d=getViewRect$2(n,r),g=n.get("orient"),y=d.width,b=d.height,C=getSortedIndices(o,l),x=d.x,S=d.y,_=g==="horizontal"?[parsePercent(n.get("minSize"),b),parsePercent(n.get("maxSize"),b)]:[parsePercent(n.get("minSize"),y),parsePercent(n.get("maxSize"),y)],w=o.getDataExtent(s),$=n.get("min"),I=n.get("max");$==null&&($=Math.min(w[0],0)),I==null&&(I=w[1]);var B=n.get("funnelAlign"),R=n.get("gap"),P=g==="horizontal"?y:b,M=(P-R*(o.count()-1))/o.count(),O=function(Y,q){if(g==="horizontal"){var X=o.get(s,Y)||0,re=linearMap$2(X,[$,I],_,!0),te=void 0;switch(B){case"top":te=S;break;case"center":te=S+(b-re)/2;break;case"bottom":te=S+(b-re);break}return[[q,te],[q,te+re]]}var oe=o.get(s,Y)||0,ae=linearMap$2(oe,[$,I],_,!0),se;switch(B){case"left":se=x;break;case"center":se=x+(y-ae)/2;break;case"right":se=x+y-ae;break}return[[se,q],[se+ae,q]]};l==="ascending"&&(M=-M,R=-R,g==="horizontal"?x+=y:S+=b,C=C.reverse());for(var D=0;D<C.length;D++){var N=C[D],H=C[D+1],Q=o.getItemModel(N);if(g==="horizontal"){var G=Q.get(["itemStyle","width"]);G==null?G=M:(G=parsePercent(G,y),l==="ascending"&&(G=-G));var K=O(N,x),W=O(H,x+G);x+=G+R,o.setItemLayout(N,{points:K.concat(W.slice().reverse())})}else{var j=Q.get(["itemStyle","height"]);j==null?j=M:(j=parsePercent(j,b),l==="ascending"&&(j=-j));var K=O(N,S),W=O(H,S+j);S+=j+R,o.setItemLayout(N,{points:K.concat(W.slice().reverse())})}}labelLayout(o)})}function install$D(t){t.registerChartView(FunnelView$1),t.registerSeriesModel(FunnelSeriesModel$1),t.registerLayout(funnelLayout),t.registerProcessor(dataFilter$1("funnel"))}var DEFAULT_SMOOTH=.3,ParallelView$2=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._dataGroup=new Group$4,n._initialized=!1,n}return r.prototype.init=function(){this.group.add(this._dataGroup)},r.prototype.render=function(n,o,s,l){this._progressiveEls=null;var d=this._dataGroup,g=n.getData(),y=this._data,b=n.coordinateSystem,C=b.dimensions,x=makeSeriesScope(n);g.diff(y).add(S).update(_).remove(w).execute();function S(I){var B=addEl(g,d,I,C,b);updateElCommon(B,g,I,x)}function _(I,B){var R=y.getItemGraphicEl(B),P=createLinePoints(g,I,C,b);g.setItemGraphicEl(I,R),updateProps$1(R,{shape:{points:P}},n,I),saveOldStyle(R),updateElCommon(R,g,I,x)}function w(I){var B=y.getItemGraphicEl(I);d.remove(B)}if(!this._initialized){this._initialized=!0;var $=createGridClipShape$2(b,n,function(){setTimeout(function(){d.removeClipPath()})});d.setClipPath($)}this._data=g},r.prototype.incrementalPrepareRender=function(n,o,s){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},r.prototype.incrementalRender=function(n,o,s){for(var l=o.getData(),d=o.coordinateSystem,g=d.dimensions,y=makeSeriesScope(o),b=this._progressiveEls=[],C=n.start;C<n.end;C++){var x=addEl(l,this._dataGroup,C,g,d);x.incremental=!0,updateElCommon(x,l,C,y),b.push(x)}},r.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},r.type="parallel",r}(ChartView$1);function createGridClipShape$2(t,r,n){var o=t.model,s=t.getRect(),l=new Rect$3({shape:{x:s.x,y:s.y,width:s.width,height:s.height}}),d=o.get("layout")==="horizontal"?"width":"height";return l.setShape(d,0),initProps(l,{shape:{width:s.width,height:s.height}},r,n),l}function createLinePoints(t,r,n,o){for(var s=[],l=0;l<n.length;l++){var d=n[l],g=t.get(t.mapDimension(d),r);isEmptyValue(g,o.getAxis(d).type)||s.push(o.dataToPoint(g,d))}return s}function addEl(t,r,n,o,s){var l=createLinePoints(t,n,o,s),d=new Polyline$3({shape:{points:l},z2:10});return r.add(d),t.setItemGraphicEl(n,d),d}function makeSeriesScope(t){var r=t.get("smooth",!0);return r===!0&&(r=DEFAULT_SMOOTH),r=numericToNumber(r),eqNaN(r)&&(r=0),{smooth:r}}function updateElCommon(t,r,n,o){t.useStyle(r.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",o.smooth);var s=r.getItemModel(n),l=s.getModel("emphasis");setStatesStylesFromModel(t,s,"lineStyle"),toggleHoverEmphasis(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function isEmptyValue(t,r){return r==="category"?t==null:t==null||isNaN(t)}var ParallelView$3=ParallelView$2,ParallelSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return r.prototype.getInitialData=function(n,o){return createSeriesData(null,this,{useEncodeDefaulter:bind$1(makeDefaultEncode,null,this)})},r.prototype.getRawIndicesByActiveState=function(n){var o=this.coordinateSystem,s=this.getData(),l=[];return o.eachActiveState(s,function(d,g){n===d&&l.push(s.getRawIndex(g))}),l},r.type="series.parallel",r.dependencies=["parallel"],r.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"},r}(SeriesModel$1);function makeDefaultEncode(t){var r=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(!!r){var n={};return each$f(r.dimensions,function(o){var s=convertDimNameToNumber(o);n[o]=s}),n}}function convertDimNameToNumber(t){return+t.replace("dim","")}var ParallelSeriesModel$1=ParallelSeriesModel,opacityAccessPath=["lineStyle","opacity"],parallelVisual={seriesType:"parallel",reset:function(t,r){var n=t.coordinateSystem,o={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(s,l){n.eachActiveState(l,function(d,g){var y=o[d];if(d==="normal"&&l.hasItemOption){var b=l.getItemModel(g).get(opacityAccessPath,!0);b!=null&&(y=b)}var C=l.ensureUniqueItemVisual(g,"style");C.opacity=y},s.start,s.end)}}}},parallelVisual$1=parallelVisual;function parallelPreprocessor(t){createParallelIfNeeded(t),mergeAxisOptionFromParallel(t)}function createParallelIfNeeded(t){if(!t.parallel){var r=!1;each$f(t.series,function(n){n&&n.type==="parallel"&&(r=!0)}),r&&(t.parallel=[{}])}}function mergeAxisOptionFromParallel(t){var r=normalizeToArray(t.parallelAxis);each$f(r,function(n){if(!!isObject$3(n)){var o=n.parallelIndex||0,s=normalizeToArray(t.parallel)[o];s&&s.parallelAxisDefault&&merge(n,s.parallelAxisDefault,!1)}})}var CLICK_THRESHOLD=5,ParallelView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){this._model=n,this._api=s,this._handlers||(this._handlers={},each$f(handlers$1,function(l,d){s.getZr().on(d,this._handlers[d]=bind$1(l,this))},this)),createOrUpdate(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},r.prototype.dispose=function(n,o){clear$1(this,"_throttledDispatchExpand"),each$f(this._handlers,function(s,l){o.getZr().off(l,s)}),this._handlers=null},r.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},r.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(extend({type:"parallelAxisExpand"},n))},r.type="parallel",r}(ComponentView$1),handlers$1={mousedown:function(t){checkTrigger(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var r=this._mouseDownPoint;if(checkTrigger(this,"click")&&r){var n=[t.offsetX,t.offsetY],o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2);if(o>CLICK_THRESHOLD)return;var s=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);s.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:s.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!checkTrigger(this,"mousemove"))){var r=this._model,n=r.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),o=n.behavior;o==="jump"&&this._throttledDispatchExpand.debounceNextCall(r.get("axisExpandDebounce")),this._throttledDispatchExpand(o==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:o==="jump"?null:{duration:0}})}}};function checkTrigger(t,r){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===r}var ParallelView$1=ParallelView,ParallelModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},r.prototype.mergeOption=function(n){var o=this.option;n&&merge(o,n,!0),this._initDimensions()},r.prototype.contains=function(n,o){var s=n.get("parallelIndex");return s!=null&&o.getComponent("parallel",s)===this},r.prototype.setAxisExpand=function(n){each$f(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(o){n.hasOwnProperty(o)&&(this.option[o]=n[o])},this)},r.prototype._initDimensions=function(){var n=this.dimensions=[],o=this.parallelAxisIndex=[],s=filter(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(l){return(l.get("parallelIndex")||0)===this.componentIndex},this);each$f(s,function(l){n.push("dim"+l.get("dim")),o.push(l.componentIndex)})},r.type="parallel",r.dependencies=["parallelAxis"],r.layoutMode="box",r.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},r}(ComponentModel$1),ParallelModel$1=ParallelModel,ParallelAxis=function(t){__extends$1(r,t);function r(n,o,s,l,d){var g=t.call(this,n,o,s)||this;return g.type=l||"value",g.axisIndex=d,g}return r.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},r}(Axis$1),ParallelAxis$1=ParallelAxis;function sliderMove(t,r,n,o,s,l){t=t||0;var d=n[1]-n[0];if(s!=null&&(s=restrict$1(s,[0,d])),l!=null&&(l=Math.max(l,s!=null?s:0)),o==="all"){var g=Math.abs(r[1]-r[0]);g=restrict$1(g,[0,d]),s=l=restrict$1(g,[s,l]),o=0}r[0]=restrict$1(r[0],n),r[1]=restrict$1(r[1],n);var y=getSpanSign(r,o);r[o]+=t;var b=s||0,C=n.slice();y.sign<0?C[0]+=b:C[1]-=b,r[o]=restrict$1(r[o],C);var x;return x=getSpanSign(r,o),s!=null&&(x.sign!==y.sign||x.span<s)&&(r[1-o]=r[o]+y.sign*s),x=getSpanSign(r,o),l!=null&&x.span>l&&(r[1-o]=r[o]+x.sign*l),r}function getSpanSign(t,r){var n=t[r]-t[1-r];return{span:Math.abs(n),sign:n>0?-1:n<0?1:r?-1:1}}function restrict$1(t,r){return Math.min(r[1]!=null?r[1]:1/0,Math.max(r[0]!=null?r[0]:-1/0,t))}var each$a=each$f,mathMin$2=Math.min,mathMax$2=Math.max,mathFloor=Math.floor,mathCeil=Math.ceil,round=round$3,PI$1=Math.PI,Parallel=function(){function t(r,n,o){this.type="parallel",this._axesMap=createHashMap(),this._axesLayout={},this.dimensions=r.dimensions,this._model=r,this._init(r,n,o)}return t.prototype._init=function(r,n,o){var s=r.dimensions,l=r.parallelAxisIndex;each$a(s,function(d,g){var y=l[g],b=n.getComponent("parallelAxis",y),C=this._axesMap.set(d,new ParallelAxis$1(d,createScaleByModel$1(b),[0,0],b.get("type"),y)),x=C.type==="category";C.onBand=x&&b.get("boundaryGap"),C.inverse=b.get("inverse"),b.axis=C,C.model=b,C.coordinateSystem=b.coordinateSystem=this},this)},t.prototype.update=function(r,n){this._updateAxesFromSeries(this._model,r)},t.prototype.containPoint=function(r){var n=this._makeLayoutInfo(),o=n.axisBase,s=n.layoutBase,l=n.pixelDimIndex,d=r[1-l],g=r[l];return d>=o&&d<=o+n.axisLength&&g>=s&&g<=s+n.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(r,n){n.eachSeries(function(o){if(!!r.contains(o,n)){var s=o.getData();each$a(this.dimensions,function(l){var d=this._axesMap.get(l);d.scale.unionExtentFromData(s,s.mapDimension(l)),niceScaleExtent(d.scale,d.model)},this)}},this)},t.prototype.resize=function(r,n){this._rect=getLayoutRect(r.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var r=this._model,n=this._rect,o=["x","y"],s=["width","height"],l=r.get("layout"),d=l==="horizontal"?0:1,g=n[s[d]],y=[0,g],b=this.dimensions.length,C=restrict(r.get("axisExpandWidth"),y),x=restrict(r.get("axisExpandCount")||0,[0,b]),S=r.get("axisExpandable")&&b>3&&b>x&&x>1&&C>0&&g>0,_=r.get("axisExpandWindow"),w;if(_)w=restrict(_[1]-_[0],y),_[1]=_[0]+w;else{w=restrict(C*(x-1),y);var $=r.get("axisExpandCenter")||mathFloor(b/2);_=[C*$-w/2],_[1]=_[0]+w}var I=(g-w)/(b-x);I<3&&(I=0);var B=[mathFloor(round(_[0]/C,1))+1,mathCeil(round(_[1]/C,1))-1],R=I/C*_[0];return{layout:l,pixelDimIndex:d,layoutBase:n[o[d]],layoutLength:g,axisBase:n[o[1-d]],axisLength:n[s[1-d]],axisExpandable:S,axisExpandWidth:C,axisCollapseWidth:I,axisExpandWindow:_,axisCount:b,winInnerIndices:B,axisExpandWindow0Pos:R}},t.prototype._layoutAxes=function(){var r=this._rect,n=this._axesMap,o=this.dimensions,s=this._makeLayoutInfo(),l=s.layout;n.each(function(d){var g=[0,s.axisLength],y=d.inverse?1:0;d.setExtent(g[y],g[1-y])}),each$a(o,function(d,g){var y=(s.axisExpandable?layoutAxisWithExpand:layoutAxisWithoutExpand)(g,s),b={horizontal:{x:y.position,y:s.axisLength},vertical:{x:0,y:y.position}},C={horizontal:PI$1/2,vertical:0},x=[b[l].x+r.x,b[l].y+r.y],S=C[l],_=create$1();rotate(_,_,S),translate(_,_,x),this._axesLayout[d]={position:x,rotation:S,transform:_,axisNameAvailableWidth:y.axisNameAvailableWidth,axisLabelShow:y.axisLabelShow,nameTruncateMaxWidth:y.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(r){return this._axesMap.get(r)},t.prototype.dataToPoint=function(r,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(r),n)},t.prototype.eachActiveState=function(r,n,o,s){o==null&&(o=0),s==null&&(s=r.count());var l=this._axesMap,d=this.dimensions,g=[],y=[];each$f(d,function(I){g.push(r.mapDimension(I)),y.push(l.get(I).model)});for(var b=this.hasAxisBrushed(),C=o;C<s;C++){var x=void 0;if(!b)x="normal";else{x="active";for(var S=r.getValues(g,C),_=0,w=d.length;_<w;_++){var $=y[_].getActiveState(S[_]);if($==="inactive"){x="inactive";break}}}n(x,C)}},t.prototype.hasAxisBrushed=function(){for(var r=this.dimensions,n=this._axesMap,o=!1,s=0,l=r.length;s<l;s++)n.get(r[s]).model.getActiveState()!=="normal"&&(o=!0);return o},t.prototype.axisCoordToPoint=function(r,n){var o=this._axesLayout[n];return applyTransform([r,0],o.transform)},t.prototype.getAxisLayout=function(r){return clone$4(this._axesLayout[r])},t.prototype.getSlidedAxisExpandWindow=function(r){var n=this._makeLayoutInfo(),o=n.pixelDimIndex,s=n.axisExpandWindow.slice(),l=s[1]-s[0],d=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(r))return{behavior:"none",axisExpandWindow:s};var g=r[o]-n.layoutBase-n.axisExpandWindow0Pos,y,b="slide",C=n.axisCollapseWidth,x=this._model.get("axisExpandSlideTriggerArea"),S=x[0]!=null;if(C)S&&C&&g<l*x[0]?(b="jump",y=g-l*x[2]):S&&C&&g>l*(1-x[0])?(b="jump",y=g-l*(1-x[2])):(y=g-l*x[1])>=0&&(y=g-l*(1-x[1]))<=0&&(y=0),y*=n.axisExpandWidth/C,y?sliderMove(y,s,d,"all"):b="none";else{var _=s[1]-s[0],w=d[1]*g/_;s=[mathMax$2(0,w-_/2)],s[1]=mathMin$2(d[1],s[0]+_),s[0]=s[1]-_}return{axisExpandWindow:s,behavior:b}},t}();function restrict(t,r){return mathMin$2(mathMax$2(t,r[0]),r[1])}function layoutAxisWithoutExpand(t,r){var n=r.layoutLength/(r.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function layoutAxisWithExpand(t,r){var n=r.layoutLength,o=r.axisExpandWidth,s=r.axisCount,l=r.axisCollapseWidth,d=r.winInnerIndices,g,y=l,b=!1,C;return t<d[0]?(g=t*l,C=l):t<=d[1]?(g=r.axisExpandWindow0Pos+t*o-r.axisExpandWindow[0],y=o,b=!0):(g=n-(s-1-t)*l,C=l),{position:g,axisNameAvailableWidth:y,axisLabelShow:b,nameTruncateMaxWidth:C}}var Parallel$1=Parallel;function createParallelCoordSys(t,r){var n=[];return t.eachComponent("parallel",function(o,s){var l=new Parallel$1(o,t,r);l.name="parallel_"+s,l.resize(o,r),o.coordinateSystem=l,l.model=o,n.push(l)}),t.eachSeries(function(o){if(o.get("coordinateSystem")==="parallel"){var s=o.getReferringComponents("parallel",SINGLE_REFERRING).models[0];o.coordinateSystem=s.coordinateSystem}}),n}var parallelCoordSysCreator={create:createParallelCoordSys},parallelCoordSysCreator$1=parallelCoordSysCreator,ParallelAxisModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.activeIntervals=[],n}return r.prototype.getAreaSelectStyle=function(){return makeStyleMapper([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},r.prototype.setActiveIntervals=function(n){var o=this.activeIntervals=clone$4(n);if(o)for(var s=o.length-1;s>=0;s--)asc$2(o[s])},r.prototype.getActiveState=function(n){var o=this.activeIntervals;if(!o.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(o.length===1){var s=o[0];if(s[0]<=n&&n<=s[1])return"active"}else for(var l=0,d=o.length;l<d;l++)if(o[l][0]<=n&&n<=o[l][1])return"active";return"inactive"},r}(ComponentModel$1);mixin(ParallelAxisModel,AxisModelCommonMixin);var ParallelAxisModel$1=ParallelAxisModel,BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function(t){__extends$1(r,t);function r(n){var o=t.call(this)||this;return o._track=[],o._covers=[],o._handlers={},o._zr=n,o.group=new Group$4,o._uid="brushController_"+baseUID++,each$f(pointerHandlers,function(s,l){this._handlers[l]=bind$1(s,this)},o),o}return r.prototype.enableBrush=function(n){return this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},r.prototype._doEnableBrush=function(n){var o=this._zr;this._enableGlobalPan||take(o,MUTEX_RESOURCE_KEY,this._uid),each$f(this._handlers,function(s,l){o.on(l,s)}),this._brushType=n.brushType,this._brushOption=merge(clone$4(DEFAULT_BRUSH_OPT),n,!0)},r.prototype._doDisableBrush=function(){var n=this._zr;release(n,MUTEX_RESOURCE_KEY,this._uid),each$f(this._handlers,function(o,s){n.off(s,o)}),this._brushType=this._brushOption=null},r.prototype.setPanels=function(n){if(n&&n.length){var o=this._panels={};each$f(n,function(s){o[s.panelId]=clone$4(s)})}else this._panels=null;return this},r.prototype.mount=function(n){n=n||{},this._enableGlobalPan=n.enableGlobalPan;var o=this.group;return this._zr.add(o),o.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=o.getLocalTransform(),this},r.prototype.updateCovers=function(n){n=map$1(n,function(S){return merge(clone$4(DEFAULT_BRUSH_OPT),S,!0)});var o="\0-brush-index-",s=this._covers,l=this._covers=[],d=this,g=this._creatingCover;return new DataDiffer$1(s,n,b,y).add(C).update(C).remove(x).execute(),this;function y(S,_){return(S.id!=null?S.id:o+_)+"-"+S.brushType}function b(S,_){return y(S.__brushOption,_)}function C(S,_){var w=n[S];if(_!=null&&s[_]===g)l[S]=s[_];else{var $=l[S]=_!=null?(s[_].__brushOption=w,s[_]):endCreating(d,createCover(d,w));updateCoverAfterCreation(d,$)}}function x(S){s[S]!==g&&d.group.remove(s[S])}},r.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},r.prototype.dispose=function(){this.unmount(),this.off()},r}(Eventful$1);function createCover(t,r){var n=coverRenderers[r.brushType].createCover(t,r);return n.__brushOption=r,updateZ$1(n,r),t.group.add(n),n}function endCreating(t,r){var n=getCoverRenderer(r);return n.endCreating&&(n.endCreating(t,r),updateZ$1(r,r.__brushOption)),r}function updateCoverShape(t,r){var n=r.__brushOption;getCoverRenderer(r).updateCoverShape(t,r,n.range,n)}function updateZ$1(t,r){var n=r.z;n==null&&(n=COVER_Z),t.traverse(function(o){o.z=n,o.z2=n})}function updateCoverAfterCreation(t,r){getCoverRenderer(r).updateCommon(t,r),updateCoverShape(t,r)}function getCoverRenderer(t){return coverRenderers[t.__brushOption.brushType]}function getPanelByPoint(t,r,n){var o=t._panels;if(!o)return BRUSH_PANEL_GLOBAL;var s,l=t._transform;return each$f(o,function(d){d.isTargetByCursor(r,n,l)&&(s=d)}),s}function getPanelByCover(t,r){var n=t._panels;if(!n)return BRUSH_PANEL_GLOBAL;var o=r.__brushOption.panelId;return o!=null?n[o]:BRUSH_PANEL_GLOBAL}function clearCovers(t){var r=t._covers,n=r.length;return each$f(r,function(o){t.group.remove(o)},t),r.length=0,!!n}function trigger(t,r){var n=map$1(t._covers,function(o){var s=o.__brushOption,l=clone$4(s.range);return{brushType:s.brushType,panelId:s.panelId,range:l}});t.trigger("brush",{areas:n,isEnd:!!r.isEnd,removeOnClick:!!r.removeOnClick})}function shouldShowCover(t){var r=t._track;if(!r.length)return!1;var n=r[r.length-1],o=r[0],s=n[0]-o[0],l=n[1]-o[1],d=mathPow(s*s+l*l,.5);return d>UNSELECT_THRESHOLD}function getTrackEnds(t){var r=t.length-1;return r<0&&(r=0),[t[0],t[r]]}function createBaseRectCover(t,r,n,o){var s=new Group$4;return s.add(new Rect$3({name:"main",style:makeStyle(n),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,t,r,s,["n","s","w","e"]),ondragend:curry$1(trigger,r,{isEnd:!0})})),each$f(o,function(l){s.add(new Rect$3({name:l.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,t,r,s,l),ondragend:curry$1(trigger,r,{isEnd:!0})}))}),s}function updateBaseRect(t,r,n,o){var s=o.brushStyle.lineWidth||0,l=mathMax$1(s,MIN_RESIZE_LINE_WIDTH),d=n[0][0],g=n[1][0],y=d-s/2,b=g-s/2,C=n[0][1],x=n[1][1],S=C-l+s/2,_=x-l+s/2,w=C-d,$=x-g,I=w+s,B=$+s;updateRectShape(t,r,"main",d,g,w,$),o.transformable&&(updateRectShape(t,r,"w",y,b,l,B),updateRectShape(t,r,"e",S,b,l,B),updateRectShape(t,r,"n",y,b,I,l),updateRectShape(t,r,"s",y,_,I,l),updateRectShape(t,r,"nw",y,b,l,l),updateRectShape(t,r,"ne",S,b,l,l),updateRectShape(t,r,"sw",y,_,l,l),updateRectShape(t,r,"se",S,_,l,l))}function updateCommon$1(t,r){var n=r.__brushOption,o=n.transformable,s=r.childAt(0);s.useStyle(makeStyle(n)),s.attr({silent:!o,cursor:o?"move":"default"}),each$f([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(l){var d=r.childOfName(l.join("")),g=l.length===1?getGlobalDirection1(t,l[0]):getGlobalDirection2(t,l);d&&d.attr({silent:!o,invisible:!o,cursor:o?CURSOR_MAP[g]+"-resize":null})})}function updateRectShape(t,r,n,o,s,l,d){var g=r.childOfName(n);g&&g.setShape(pointsToRect(clipByPanel(t,r,[[o,s],[o+l,s+d]])))}function makeStyle(t){return defaults({strokeNoScale:!0},t.brushStyle)}function formatRectRange(t,r,n,o){var s=[mathMin$1(t,n),mathMin$1(r,o)],l=[mathMax$1(t,n),mathMax$1(r,o)];return[[s[0],l[0]],[s[1],l[1]]]}function getTransform(t){return getTransform$1(t.group)}function getGlobalDirection1(t,r){var n={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},s=transformDirection(n[r],getTransform(t));return o[s]}function getGlobalDirection2(t,r){var n=[getGlobalDirection1(t,r[0]),getGlobalDirection1(t,r[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function driftRect(t,r,n,o,s,l){var d=n.__brushOption,g=t.toRectRange(d.range),y=toLocalDelta(r,s,l);each$f(o,function(b){var C=DIRECTION_MAP[b];g[C[0]][C[1]]+=y[C[0]]}),d.range=t.fromRectRange(formatRectRange(g[0][0],g[1][0],g[0][1],g[1][1])),updateCoverAfterCreation(r,n),trigger(r,{isEnd:!1})}function driftPolygon(t,r,n,o){var s=r.__brushOption.range,l=toLocalDelta(t,n,o);each$f(s,function(d){d[0]+=l[0],d[1]+=l[1]}),updateCoverAfterCreation(t,r),trigger(t,{isEnd:!1})}function toLocalDelta(t,r,n){var o=t.group,s=o.transformCoordToLocal(r,n),l=o.transformCoordToLocal(0,0);return[s[0]-l[0],s[1]-l[1]]}function clipByPanel(t,r,n){var o=getPanelByCover(t,r);return o&&o!==BRUSH_PANEL_GLOBAL?o.clipPath(n,t._transform):clone$4(n)}function pointsToRect(t){var r=mathMin$1(t[0][0],t[1][0]),n=mathMin$1(t[0][1],t[1][1]),o=mathMax$1(t[0][0],t[1][0]),s=mathMax$1(t[0][1],t[1][1]);return{x:r,y:n,width:o-r,height:s-n}}function resetCursor(t,r,n){if(!(!t._brushType||isOutsideZrArea(t,r.offsetX,r.offsetY))){var o=t._zr,s=t._covers,l=getPanelByPoint(t,r,n);if(!t._dragging)for(var d=0;d<s.length;d++){var g=s[d].__brushOption;if(l&&(l===BRUSH_PANEL_GLOBAL||g.panelId===l.panelId)&&coverRenderers[g.brushType].contain(s[d],n[0],n[1]))return}l&&o.setCursorStyle("crosshair")}}function preventDefault(t){var r=t.event;r.preventDefault&&r.preventDefault()}function mainShapeContain(t,r,n){return t.childOfName("main").contain(r,n)}function updateCoverByMouse(t,r,n,o){var s=t._creatingCover,l=t._creatingPanel,d=t._brushOption,g;if(t._track.push(n.slice()),shouldShowCover(t)||s){if(l&&!s){d.brushMode==="single"&&clearCovers(t);var y=clone$4(d);y.brushType=determineBrushType(y.brushType,l),y.panelId=l===BRUSH_PANEL_GLOBAL?null:l.panelId,s=t._creatingCover=createCover(t,y),t._covers.push(s)}if(s){var b=coverRenderers[determineBrushType(t._brushType,l)],C=s.__brushOption;C.range=b.getCreatingRange(clipByPanel(t,s,t._track)),o&&(endCreating(t,s),b.updateCommon(t,s)),updateCoverShape(t,s),g={isEnd:o}}}else o&&d.brushMode==="single"&&d.removeOnClick&&getPanelByPoint(t,r,n)&&clearCovers(t)&&(g={isEnd:o,removeOnClick:!0});return g}function determineBrushType(t,r){return t==="auto"?r.defaultBrushType:t}var pointerHandlers={mousedown:function(t){if(this._dragging)handleDragEnd(this,t);else if(!t.target||!t.target.draggable){preventDefault(t);var r=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=getPanelByPoint(this,t,r);n&&(this._dragging=!0,this._track=[r.slice()])}},mousemove:function(t){var r=t.offsetX,n=t.offsetY,o=this.group.transformCoordToLocal(r,n);if(resetCursor(this,t,o),this._dragging){preventDefault(t);var s=updateCoverByMouse(this,t,o,!1);s&&trigger(this,s)}},mouseup:function(t){handleDragEnd(this,t)}};function handleDragEnd(t,r){if(t._dragging){preventDefault(r);var n=r.offsetX,o=r.offsetY,s=t.group.transformCoordToLocal(n,o),l=updateCoverByMouse(t,r,s,!0);t._dragging=!1,t._track=[],t._creatingCover=null,l&&trigger(t,l)}}function isOutsideZrArea(t,r,n){var o=t._zr;return r<0||r>o.getWidth()||n<0||n>o.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function(t,r){function n(o){return o}return createBaseRectCover({toRectRange:n,fromRectRange:n},t,r,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var r=getTrackEnds(t);return formatRectRange(r[1][0],r[1][1],r[0][0],r[0][1])},updateCoverShape:function(t,r,n,o){updateBaseRect(t,r,n,o)},updateCommon:updateCommon$1,contain:mainShapeContain},polygon:{createCover:function(t,r){var n=new Group$4;return n.add(new Polyline$3({name:"main",style:makeStyle(r),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,r){r.remove(r.childAt(0)),r.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,t,r),ondragend:curry$1(trigger,t,{isEnd:!0})}))},updateCoverShape:function(t,r,n,o){r.childAt(0).setShape({points:clipByPanel(t,r,n)})},updateCommon:updateCommon$1,contain:mainShapeContain}};function getLineRenderer(t){return{createCover:function(r,n){return createBaseRectCover({toRectRange:function(o){var s=[o,[0,100]];return t&&s.reverse(),s},fromRectRange:function(o){return o[t]}},r,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(r){var n=getTrackEnds(r),o=mathMin$1(n[0][t],n[1][t]),s=mathMax$1(n[0][t],n[1][t]);return[o,s]},updateCoverShape:function(r,n,o,s){var l,d=getPanelByCover(r,n);if(d!==BRUSH_PANEL_GLOBAL&&d.getLinearBrushOtherExtent)l=d.getLinearBrushOtherExtent(t);else{var g=r._zr;l=[0,[g.getWidth(),g.getHeight()][1-t]]}var y=[o,l];t&&y.reverse(),updateBaseRect(r,n,y,s)},updateCommon:updateCommon$1,contain:mainShapeContain}}var BrushController$1=BrushController;function makeRectPanelClipPath(t){return t=normalizeRect(t),function(r){return clipPointsByRect(r,t)}}function makeLinearBrushOtherExtent(t,r){return t=normalizeRect(t),function(n){var o=r!=null?r:n,s=o?t.width:t.height,l=o?t.x:t.y;return[l,l+(s||0)]}}function makeRectIsTargetByCursor(t,r,n){var o=normalizeRect(t);return function(s,l){return o.contain(l[0],l[1])&&!onIrrelevantElement(s,r,n)}}function normalizeRect(t){return BoundingRect$1.create(t)}var elementList$1=["axisLine","axisTickLabel","axisName"],ParallelAxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,o){t.prototype.init.apply(this,arguments),(this._brushController=new BrushController$1(o.getZr())).on("brush",bind$1(this._onBrush,this))},r.prototype.render=function(n,o,s,l){if(!fromAxisAreaSelect(n,o,l)){this.axisModel=n,this.api=s,this.group.removeAll();var d=this._axisGroup;if(this._axisGroup=new Group$4,this.group.add(this._axisGroup),!!n.get("show")){var g=getCoordSysModel(n,o),y=g.coordinateSystem,b=n.getAreaSelectStyle(),C=b.width,x=n.axis.dim,S=y.getAxisLayout(x),_=extend({strokeContainThreshold:C},S),w=new AxisBuilder$1(n,_);each$f(elementList$1,w.add,w),this._axisGroup.add(w.getGroup()),this._refreshBrushController(_,b,n,g,C,s),groupTransition(d,this._axisGroup,n)}}},r.prototype._refreshBrushController=function(n,o,s,l,d,g){var y=s.axis.getExtent(),b=y[1]-y[0],C=Math.min(30,Math.abs(b)*.1),x=BoundingRect$1.create({x:y[0],y:-d/2,width:b,height:d});x.x-=C,x.width+=2*C,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:makeRectPanelClipPath(x),isTargetByCursor:makeRectIsTargetByCursor(x,g,l),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(x,0)}]).enableBrush({brushType:"lineX",brushStyle:o,removeOnClick:!0}).updateCovers(getCoverInfoList(s))},r.prototype._onBrush=function(n){var o=n.areas,s=this.axisModel,l=s.axis,d=map$1(o,function(g){return[l.coordToData(g.range[0],!0),l.coordToData(g.range[1],!0)]});(!s.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:s.id,intervals:d})},r.prototype.dispose=function(){this._brushController.dispose()},r.type="parallelAxis",r}(ComponentView$1);function fromAxisAreaSelect(t,r,n){return n&&n.type==="axisAreaSelect"&&r.findComponents({mainType:"parallelAxis",query:n})[0]===t}function getCoverInfoList(t){var r=t.axis;return map$1(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[r.dataToCoord(n[0],!0),r.dataToCoord(n[1],!0)]}})}function getCoordSysModel(t,r){return r.getComponent("parallel",t.get("parallelIndex"))}var ParallelAxisView$1=ParallelAxisView,actionInfo={type:"axisAreaSelect",event:"axisAreaSelected"};function installParallelActions(t){t.registerAction(actionInfo,function(r,n){n.eachComponent({mainType:"parallelAxis",query:r},function(o){o.axis.model.setActiveIntervals(r.intervals)})}),t.registerAction("parallelAxisExpand",function(r,n){n.eachComponent({mainType:"parallel",query:r},function(o){o.setAxisExpand(r)})})}var defaultAxisOption={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function install$C(t){t.registerComponentView(ParallelView$1),t.registerComponentModel(ParallelModel$1),t.registerCoordinateSystem("parallel",parallelCoordSysCreator$1),t.registerPreprocessor(parallelPreprocessor),t.registerComponentModel(ParallelAxisModel$1),t.registerComponentView(ParallelAxisView$1),axisModelCreator(t,"parallel",ParallelAxisModel$1,defaultAxisOption),installParallelActions(t)}function install$B(t){use(install$C),t.registerChartView(ParallelView$3),t.registerSeriesModel(ParallelSeriesModel$1),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,parallelVisual$1)}var SankeyPathShape=function(){function t(){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 t}(),SankeyPath=function(t){__extends$1(r,t);function r(n){return t.call(this,n)||this}return r.prototype.getDefaultShape=function(){return new SankeyPathShape},r.prototype.buildPath=function(n,o){var s=o.extent;n.moveTo(o.x1,o.y1),n.bezierCurveTo(o.cpx1,o.cpy1,o.cpx2,o.cpy2,o.x2,o.y2),o.orient==="vertical"?(n.lineTo(o.x2+s,o.y2),n.bezierCurveTo(o.cpx2+s,o.cpy2,o.cpx1+s,o.cpy1,o.x1+s,o.y1)):(n.lineTo(o.x2,o.y2+s),n.bezierCurveTo(o.cpx2,o.cpy2+s,o.cpx1,o.cpy1+s,o.x1,o.y1+s)),n.closePath()},r.prototype.highlight=function(){enterEmphasis(this)},r.prototype.downplay=function(){leaveEmphasis(this)},r}(Path$1),SankeyView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._focusAdjacencyDisabled=!1,n}return r.prototype.render=function(n,o,s){var l=this,d=n.getGraph(),g=this.group,y=n.layoutInfo,b=y.width,C=y.height,x=n.getData(),S=n.getData("edge"),_=n.get("orient");this._model=n,g.removeAll(),g.x=y.x,g.y=y.y,d.eachEdge(function(w){var $=new SankeyPath,I=getECData($);I.dataIndex=w.dataIndex,I.seriesIndex=n.seriesIndex,I.dataType="edge";var B=w.getModel(),R=B.getModel("lineStyle"),P=R.get("curveness"),M=w.node1.getLayout(),O=w.node1.getModel(),D=O.get("localX"),N=O.get("localY"),H=w.node2.getLayout(),Q=w.node2.getModel(),G=Q.get("localX"),K=Q.get("localY"),W=w.getLayout(),j,Y,q,X,re,te,oe,ae;switch($.shape.extent=Math.max(1,W.dy),$.shape.orient=_,_==="vertical"?(j=(D!=null?D*b:M.x)+W.sy,Y=(N!=null?N*C:M.y)+M.dy,q=(G!=null?G*b:H.x)+W.ty,X=K!=null?K*C:H.y,re=j,te=Y*(1-P)+X*P,oe=q,ae=Y*P+X*(1-P)):(j=(D!=null?D*b:M.x)+M.dx,Y=(N!=null?N*C:M.y)+W.sy,q=G!=null?G*b:H.x,X=(K!=null?K*C:H.y)+W.ty,re=j*(1-P)+q*P,te=Y,oe=j*P+q*(1-P),ae=X),$.setShape({x1:j,y1:Y,x2:q,y2:X,cpx1:re,cpy1:te,cpx2:oe,cpy2:ae}),$.useStyle(R.getItemStyle()),$.style.fill){case"source":$.style.fill=w.node1.getVisual("color"),$.style.decal=w.node1.getVisual("style").decal;break;case"target":$.style.fill=w.node2.getVisual("color"),$.style.decal=w.node2.getVisual("style").decal;break;case"gradient":var se=w.node1.getVisual("color"),ue=w.node2.getVisual("color");isString(se)&&isString(ue)&&($.style.fill=new LinearGradient$1(0,0,+(_==="horizontal"),+(_==="vertical"),[{color:se,offset:0},{color:ue,offset:1}]))}setLabelStyle($,getLabelStatesModels(B,"edgeLabel"),{labelFetcher:n,labelDataIndex:w.dataIndex,defaultText:""+B.get("value")}),$.setTextConfig({position:"inside"});var Ae=B.getModel("emphasis");setStatesStylesFromModel($,B,"lineStyle",function(he){return he.getItemStyle()}),g.add($),S.setItemGraphicEl(w.dataIndex,$);var pe=Ae.get("focus");toggleHoverEmphasis($,pe==="adjacency"?w.getAdjacentDataIndices():pe,Ae.get("blurScope"),Ae.get("disabled")),getECData($).dataType="edge"}),d.eachNode(function(w){var $=w.getLayout(),I=w.getModel(),B=I.get("localX"),R=I.get("localY"),P=I.getModel("emphasis"),M=new Rect$3({shape:{x:B!=null?B*b:$.x,y:R!=null?R*C:$.y,width:$.dx,height:$.dy},style:I.getModel("itemStyle").getItemStyle(),z2:10});setLabelStyle(M,getLabelStatesModels(I),{labelFetcher:n,labelDataIndex:w.dataIndex,defaultText:w.id}),M.disableLabelAnimation=!0,M.setStyle("fill",w.getVisual("color")),M.setStyle("decal",w.getVisual("style").decal),setStatesStylesFromModel(M,I),g.add(M),x.setItemGraphicEl(w.dataIndex,M),getECData(M).dataType="node";var O=P.get("focus");toggleHoverEmphasis(M,O==="adjacency"?w.getAdjacentDataIndices():O,P.get("blurScope"),P.get("disabled"))}),x.eachItemGraphicEl(function(w,$){var I=x.getItemModel($);I.get("draggable")&&(w.drift=function(B,R){l._focusAdjacencyDisabled=!0,this.shape.x+=B,this.shape.y+=R,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:x.getRawIndex($),localX:this.shape.x/b,localY:this.shape.y/C})},w.ondragend=function(){l._focusAdjacencyDisabled=!1},w.draggable=!0,w.cursor="move")}),!this._data&&n.isAnimationEnabled()&&g.setClipPath(createGridClipShape$1(g.getBoundingRect(),n,function(){g.removeClipPath()})),this._data=n.getData()},r.prototype.dispose=function(){},r.type="sankey",r}(ChartView$1);function createGridClipShape$1(t,r,n){var o=new Rect$3({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return initProps(o,{shape:{width:t.width+20}},r,n),o}var SankeyView$1=SankeyView,SankeySeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.getInitialData=function(n,o){var s=n.edges||n.links,l=n.data||n.nodes,d=n.levels;this.levelModels=[];for(var g=this.levelModels,y=0;y<d.length;y++)d[y].depth!=null&&d[y].depth>=0&&(g[d[y].depth]=new Model$1(d[y],this,o));if(l&&s){var b=createGraphFromNodeEdge(l,s,this,!0,C);return b.data}function C(x,S){x.wrapMethod("getItemModel",function(_,w){var $=_.parentModel,I=$.getData().getItemLayout(w);if(I){var B=I.depth,R=$.levelModels[B];R&&(_.parentModel=R)}return _}),S.wrapMethod("getItemModel",function(_,w){var $=_.parentModel,I=$.getGraph().getEdgeByIndex(w),B=I.node1.getLayout();if(B){var R=B.depth,P=$.levelModels[R];P&&(_.parentModel=P)}return _})}},r.prototype.setNodePosition=function(n,o){var s=this.option.data||this.option.nodes,l=s[n];l.localX=o[0],l.localY=o[1]},r.prototype.getGraph=function(){return this.getData().graph},r.prototype.getEdgeData=function(){return this.getGraph().edgeData},r.prototype.formatTooltip=function(n,o,s){function l(_){return isNaN(_)||_==null}if(s==="edge"){var d=this.getDataParams(n,s),g=d.data,y=d.value,b=g.source+" -- "+g.target;return createTooltipMarkup("nameValue",{name:b,value:y,noValue:l(y)})}else{var C=this.getGraph().getNodeByIndex(n),x=C.getLayout().value,S=this.getDataParams(n,s).data.name;return createTooltipMarkup("nameValue",{name:S!=null?S+"":null,value:x,noValue:l(x)})}},r.prototype.optionUpdated=function(){},r.prototype.getDataParams=function(n,o){var s=t.prototype.getDataParams.call(this,n,o);if(s.value==null&&o==="node"){var l=this.getGraph().getNodeByIndex(n),d=l.getLayout().value;s.value=d}return s},r.type="series.sankey",r.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},edgeLabel:{show:!1,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},r}(SeriesModel$1),SankeySeriesModel$1=SankeySeriesModel;function sankeyLayout(t,r){t.eachSeriesByType("sankey",function(n){var o=n.get("nodeWidth"),s=n.get("nodeGap"),l=getViewRect$1(n,r);n.layoutInfo=l;var d=l.width,g=l.height,y=n.getGraph(),b=y.nodes,C=y.edges;computeNodeValues(b);var x=filter(b,function($){return $.getLayout().value===0}),S=x.length!==0?0:n.get("layoutIterations"),_=n.get("orient"),w=n.get("nodeAlign");layoutSankey(b,C,o,s,d,g,S,_,w)})}function getViewRect$1(t,r){return getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function layoutSankey(t,r,n,o,s,l,d,g,y){computeNodeBreadths(t,r,n,s,l,g,y),computeNodeDepths(t,r,l,s,o,d,g),computeEdgeDepths(t,g)}function computeNodeValues(t){each$f(t,function(r){var n=sum(r.outEdges,getEdgeValue),o=sum(r.inEdges,getEdgeValue),s=r.getValue()||0,l=Math.max(n,o,s);r.setLayout({value:l},!0)})}function computeNodeBreadths(t,r,n,o,s,l,d){for(var g=[],y=[],b=[],C=[],x=0,S=0;S<r.length;S++)g[S]=1;for(var S=0;S<t.length;S++)y[S]=t[S].inEdges.length,y[S]===0&&b.push(t[S]);for(var _=-1;b.length;){for(var w=0;w<b.length;w++){var $=b[w],I=$.hostGraph.data.getRawDataItem($.dataIndex),B=I.depth!=null&&I.depth>=0;B&&I.depth>_&&(_=I.depth),$.setLayout({depth:B?I.depth:x},!0),l==="vertical"?$.setLayout({dy:n},!0):$.setLayout({dx:n},!0);for(var R=0;R<$.outEdges.length;R++){var P=$.outEdges[R],M=r.indexOf(P);g[M]=0;var O=P.node2,D=t.indexOf(O);--y[D]===0&&C.indexOf(O)<0&&C.push(O)}}++x,b=C,C=[]}for(var S=0;S<g.length;S++)if(g[S]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var N=_>x-1?_:x-1;d&&d!=="left"&&adjustNodeWithNodeAlign(t,d,l,N);var H=l==="vertical"?(s-n)/N:(o-n)/N;scaleNodeBreadths(t,H,l)}function isNodeDepth(t){var r=t.hostGraph.data.getRawDataItem(t.dataIndex);return r.depth!=null&&r.depth>=0}function adjustNodeWithNodeAlign(t,r,n,o){if(r==="right"){for(var s=[],l=t,d=0;l.length;){for(var g=0;g<l.length;g++){var y=l[g];y.setLayout({skNodeHeight:d},!0);for(var b=0;b<y.inEdges.length;b++){var C=y.inEdges[b];s.indexOf(C.node1)<0&&s.push(C.node1)}}l=s,s=[],++d}each$f(t,function(x){isNodeDepth(x)||x.setLayout({depth:Math.max(0,o-x.getLayout().skNodeHeight)},!0)})}else r==="justify"&&moveSinksRight(t,o)}function moveSinksRight(t,r){each$f(t,function(n){!isNodeDepth(n)&&!n.outEdges.length&&n.setLayout({depth:r},!0)})}function scaleNodeBreadths(t,r,n){each$f(t,function(o){var s=o.getLayout().depth*r;n==="vertical"?o.setLayout({y:s},!0):o.setLayout({x:s},!0)})}function computeNodeDepths(t,r,n,o,s,l,d){var g=prepareNodesByBreadth(t,d);initializeNodeDepth(g,r,n,o,s,d),resolveCollisions(g,s,n,o,d);for(var y=1;l>0;l--)y*=.99,relaxRightToLeft(g,y,d),resolveCollisions(g,s,n,o,d),relaxLeftToRight(g,y,d),resolveCollisions(g,s,n,o,d)}function prepareNodesByBreadth(t,r){var n=[],o=r==="vertical"?"y":"x",s=groupData(t,function(l){return l.getLayout()[o]});return s.keys.sort(function(l,d){return l-d}),each$f(s.keys,function(l){n.push(s.buckets.get(l))}),n}function initializeNodeDepth(t,r,n,o,s,l){var d=1/0;each$f(t,function(g){var y=g.length,b=0;each$f(g,function(x){b+=x.getLayout().value});var C=l==="vertical"?(o-(y-1)*s)/b:(n-(y-1)*s)/b;C<d&&(d=C)}),each$f(t,function(g){each$f(g,function(y,b){var C=y.getLayout().value*d;l==="vertical"?(y.setLayout({x:b},!0),y.setLayout({dx:C},!0)):(y.setLayout({y:b},!0),y.setLayout({dy:C},!0))})}),each$f(r,function(g){var y=+g.getValue()*d;g.setLayout({dy:y},!0)})}function resolveCollisions(t,r,n,o,s){var l=s==="vertical"?"x":"y";each$f(t,function(d){d.sort(function($,I){return $.getLayout()[l]-I.getLayout()[l]});for(var g,y,b,C=0,x=d.length,S=s==="vertical"?"dx":"dy",_=0;_<x;_++)y=d[_],b=C-y.getLayout()[l],b>0&&(g=y.getLayout()[l]+b,s==="vertical"?y.setLayout({x:g},!0):y.setLayout({y:g},!0)),C=y.getLayout()[l]+y.getLayout()[S]+r;var w=s==="vertical"?o:n;if(b=C-r-w,b>0){g=y.getLayout()[l]-b,s==="vertical"?y.setLayout({x:g},!0):y.setLayout({y:g},!0),C=g;for(var _=x-2;_>=0;--_)y=d[_],b=y.getLayout()[l]+y.getLayout()[S]+r-C,b>0&&(g=y.getLayout()[l]-b,s==="vertical"?y.setLayout({x:g},!0):y.setLayout({y:g},!0)),C=y.getLayout()[l]}})}function relaxRightToLeft(t,r,n){each$f(t.slice().reverse(),function(o){each$f(o,function(s){if(s.outEdges.length){var l=sum(s.outEdges,weightedTarget,n)/sum(s.outEdges,getEdgeValue);if(isNaN(l)){var d=s.outEdges.length;l=d?sum(s.outEdges,centerTarget,n)/d:0}if(n==="vertical"){var g=s.getLayout().x+(l-center(s,n))*r;s.setLayout({x:g},!0)}else{var y=s.getLayout().y+(l-center(s,n))*r;s.setLayout({y},!0)}}})})}function weightedTarget(t,r){return center(t.node2,r)*t.getValue()}function centerTarget(t,r){return center(t.node2,r)}function weightedSource(t,r){return center(t.node1,r)*t.getValue()}function centerSource(t,r){return center(t.node1,r)}function center(t,r){return r==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function getEdgeValue(t){return t.getValue()}function sum(t,r,n){for(var o=0,s=t.length,l=-1;++l<s;){var d=+r(t[l],n);isNaN(d)||(o+=d)}return o}function relaxLeftToRight(t,r,n){each$f(t,function(o){each$f(o,function(s){if(s.inEdges.length){var l=sum(s.inEdges,weightedSource,n)/sum(s.inEdges,getEdgeValue);if(isNaN(l)){var d=s.inEdges.length;l=d?sum(s.inEdges,centerSource,n)/d:0}if(n==="vertical"){var g=s.getLayout().x+(l-center(s,n))*r;s.setLayout({x:g},!0)}else{var y=s.getLayout().y+(l-center(s,n))*r;s.setLayout({y},!0)}}})})}function computeEdgeDepths(t,r){var n=r==="vertical"?"x":"y";each$f(t,function(o){o.outEdges.sort(function(s,l){return s.node2.getLayout()[n]-l.node2.getLayout()[n]}),o.inEdges.sort(function(s,l){return s.node1.getLayout()[n]-l.node1.getLayout()[n]})}),each$f(t,function(o){var s=0,l=0;each$f(o.outEdges,function(d){d.setLayout({sy:s},!0),s+=d.getLayout().dy}),each$f(o.inEdges,function(d){d.setLayout({ty:l},!0),l+=d.getLayout().dy})})}function sankeyVisual(t){t.eachSeriesByType("sankey",function(r){var n=r.getGraph(),o=n.nodes,s=n.edges;if(o.length){var l=1/0,d=-1/0;each$f(o,function(g){var y=g.getLayout().value;y<l&&(l=y),y>d&&(d=y)}),each$f(o,function(g){var y=new VisualMapping$1({type:"color",mappingMethod:"linear",dataExtent:[l,d],visual:r.get("color")}),b=y.mapValueToVisual(g.getLayout().value),C=g.getModel().get(["itemStyle","color"]);C!=null?(g.setVisual("color",C),g.setVisual("style",{fill:C})):(g.setVisual("color",b),g.setVisual("style",{fill:b}))})}s.length&&each$f(s,function(g){var y=g.getModel().get("lineStyle");g.setVisual("style",y)})})}function install$A(t){t.registerChartView(SankeyView$1),t.registerSeriesModel(SankeySeriesModel$1),t.registerLayout(sankeyLayout),t.registerVisual(sankeyVisual),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(r,n){n.eachComponent({mainType:"series",subType:"sankey",query:r},function(o){o.setNodePosition(r.dataIndex,[r.localX,r.localY])})})}var WhiskerBoxCommonMixin=function(){function t(){}return t.prototype.getInitialData=function(r,n){var o,s=n.getComponent("xAxis",this.get("xAxisIndex")),l=n.getComponent("yAxis",this.get("yAxisIndex")),d=s.get("type"),g=l.get("type"),y;d==="category"?(r.layout="horizontal",o=s.getOrdinalMeta(),y=!0):g==="category"?(r.layout="vertical",o=l.getOrdinalMeta(),y=!0):r.layout=r.layout||"horizontal";var b=["x","y"],C=r.layout==="horizontal"?0:1,x=this._baseAxisDim=b[C],S=b[1-C],_=[s,l],w=_[C].get("type"),$=_[1-C].get("type"),I=r.data;if(I&&y){var B=[];each$f(I,function(M,O){var D;isArray$1(M)?(D=M.slice(),M.unshift(O)):isArray$1(M.value)?(D=extend({},M),D.value=D.value.slice(),M.value.unshift(O)):D=M,B.push(D)}),r.data=B}var R=this.defaultValueDimensions,P=[{name:x,type:getDimensionTypeByAxis(w),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:S,type:getDimensionTypeByAxis($),dimsDef:R.slice()}];return createSeriesDataSimply(this,{coordDimensions:P,dimensionsCount:R.length+1,encodeDefaulter:curry$1(makeSeriesEncodeForAxisCoordSys,P,this)})},t.prototype.getBaseAxis=function(){var r=this._baseAxisDim;return this.ecModel.getComponent(r+"Axis",this.get(r+"AxisIndex")).axis},t}(),BoxplotSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return r.type="series.boxplot",r.dependencies=["xAxis","yAxis","grid"],r.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},r}(SeriesModel$1);mixin(BoxplotSeriesModel,WhiskerBoxCommonMixin,!0);var BoxplotSeriesModel$1=BoxplotSeriesModel,BoxplotView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=n.getData(),d=this.group,g=this._data;this._data||d.removeAll();var y=n.get("layout")==="horizontal"?1:0;l.diff(g).add(function(b){if(l.hasValue(b)){var C=l.getItemLayout(b),x=createNormalBox$1(C,l,b,y,!0);l.setItemGraphicEl(b,x),d.add(x)}}).update(function(b,C){var x=g.getItemGraphicEl(C);if(!l.hasValue(b)){d.remove(x);return}var S=l.getItemLayout(b);x?(saveOldStyle(x),updateNormalBoxData(S,x,l,b)):x=createNormalBox$1(S,l,b,y),d.add(x),l.setItemGraphicEl(b,x)}).remove(function(b){var C=g.getItemGraphicEl(b);C&&d.remove(C)}).execute(),this._data=l},r.prototype.remove=function(n){var o=this.group,s=this._data;this._data=null,s&&s.eachItemGraphicEl(function(l){l&&o.remove(l)})},r.type="boxplot",r}(ChartView$1),BoxPathShape=function(){function t(){}return t}(),BoxPath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="boxplotBoxPath",o}return r.prototype.getDefaultShape=function(){return new BoxPathShape},r.prototype.buildPath=function(n,o){var s=o.points,l=0;for(n.moveTo(s[l][0],s[l][1]),l++;l<4;l++)n.lineTo(s[l][0],s[l][1]);for(n.closePath();l<s.length;l++)n.moveTo(s[l][0],s[l][1]),l++,n.lineTo(s[l][0],s[l][1])},r}(Path$1);function createNormalBox$1(t,r,n,o,s){var l=t.ends,d=new BoxPath({shape:{points:s?transInit$1(l,o,t):l}});return updateNormalBoxData(t,d,r,n,s),d}function updateNormalBoxData(t,r,n,o,s){var l=n.hostModel,d=graphic$1[s?"initProps":"updateProps"];d(r,{shape:{points:t.ends}},l,o),r.useStyle(n.getItemVisual(o,"style")),r.style.strokeNoScale=!0,r.z2=100;var g=n.getItemModel(o),y=g.getModel("emphasis");setStatesStylesFromModel(r,g),toggleHoverEmphasis(r,y.get("focus"),y.get("blurScope"),y.get("disabled"))}function transInit$1(t,r,n){return map$1(t,function(o){return o=o.slice(),o[r]=n.initBaseline,o})}var BoxplotView$1=BoxplotView,each$9=each$f;function boxplotLayout(t){var r=groupSeriesByAxis(t);each$9(r,function(n){var o=n.seriesModels;!o.length||(calculateBase(n),each$9(o,function(s,l){layoutSingleSeries(s,n.boxOffsetList[l],n.boxWidthList[l])}))})}function groupSeriesByAxis(t){var r=[],n=[];return t.eachSeriesByType("boxplot",function(o){var s=o.getBaseAxis(),l=indexOf(n,s);l<0&&(l=n.length,n[l]=s,r[l]={axis:s,seriesModels:[]}),r[l].seriesModels.push(o)}),r}function calculateBase(t){var r=t.axis,n=t.seriesModels,o=n.length,s=t.boxWidthList=[],l=t.boxOffsetList=[],d=[],g;if(r.type==="category")g=r.getBandWidth();else{var y=0;each$9(n,function(w){y=Math.max(y,w.getData().count())});var b=r.getExtent();g=Math.abs(b[1]-b[0])/y}each$9(n,function(w){var $=w.get("boxWidth");isArray$1($)||($=[$,$]),d.push([parsePercent($[0],g)||0,parsePercent($[1],g)||0])});var C=g*.8-2,x=C/o*.3,S=(C-x*(o-1))/o,_=S/2-C/2;each$9(n,function(w,$){l.push(_),_+=x+S,s.push(Math.min(Math.max(S,d[$][0]),d[$][1]))})}function layoutSingleSeries(t,r,n){var o=t.coordinateSystem,s=t.getData(),l=n/2,d=t.get("layout")==="horizontal"?0:1,g=1-d,y=["x","y"],b=s.mapDimension(y[d]),C=s.mapDimensionsAll(y[g]);if(b==null||C.length<5)return;for(var x=0;x<s.count();x++){var S=s.get(b,x),_=P(S,C[2],x),w=P(S,C[0],x),$=P(S,C[1],x),I=P(S,C[3],x),B=P(S,C[4],x),R=[];M(R,$,!1),M(R,I,!0),R.push(w,$,B,I),O(R,w),O(R,B),O(R,_),s.setItemLayout(x,{initBaseline:_[g],ends:R})}function P(D,N,H){var Q=s.get(N,H),G=[];G[d]=D,G[g]=Q;var K;return isNaN(D)||isNaN(Q)?K=[NaN,NaN]:(K=o.dataToPoint(G),K[d]+=r),K}function M(D,N,H){var Q=N.slice(),G=N.slice();Q[d]+=l,G[d]-=l,H?D.push(Q,G):D.push(G,Q)}function O(D,N){var H=N.slice(),Q=N.slice();H[d]-=l,Q[d]+=l,D.push(H,Q)}}function prepareBoxplotData(t,r){r=r||{};for(var n=[],o=[],s=r.boundIQR,l=s==="none"||s===0,d=0;d<t.length;d++){var g=asc$2(t[d].slice()),y=quantile(g,.25),b=quantile(g,.5),C=quantile(g,.75),x=g[0],S=g[g.length-1],_=(s==null?1.5:s)*(C-y),w=l?x:Math.max(x,y-_),$=l?S:Math.min(S,C+_),I=r.itemNameFormatter,B=isFunction(I)?I({value:d}):isString(I)?I.replace("{value}",d+""):d+"";n.push([B,w,y,b,C,$]);for(var R=0;R<g.length;R++){var P=g[R];if(P<w||P>$){var M=[B,P];o.push(M)}}}return{boxData:n,outliers:o}}var boxplotTransform={type:"echarts:boxplot",transform:function t(r){var n=r.upstream;if(n.sourceFormat!==SOURCE_FORMAT_ARRAY_ROWS){var o="";throwError(o)}var s=prepareBoxplotData(n.getRawData(),r.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:s.boxData},{data:s.outliers}]}};function install$z(t){t.registerSeriesModel(BoxplotSeriesModel$1),t.registerChartView(BoxplotView$1),t.registerLayout(boxplotLayout),t.registerTransform(boxplotTransform)}var SKIP_PROPS=["color","borderColor"],CandlestickView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},r.prototype.incrementalPrepareRender=function(n,o,s){this._clear(),this._updateDrawMode(n)},r.prototype.incrementalRender=function(n,o,s,l){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,o):this._incrementalRenderNormal(n,o)},r.prototype.eachRendered=function(n){traverseElements(this._progressiveEls||this.group,n)},r.prototype._updateDrawMode=function(n){var o=n.pipelineContext.large;(this._isLargeDraw==null||o!==this._isLargeDraw)&&(this._isLargeDraw=o,this._clear())},r.prototype._renderNormal=function(n){var o=n.getData(),s=this._data,l=this.group,d=o.getLayout("isSimpleBox"),g=n.get("clip",!0),y=n.coordinateSystem,b=y.getArea&&y.getArea();this._data||l.removeAll(),o.diff(s).add(function(C){if(o.hasValue(C)){var x=o.getItemLayout(C);if(g&&isNormalBoxClipped(b,x))return;var S=createNormalBox(x,C,!0);initProps(S,{shape:{points:x.ends}},n,C),setBoxCommon(S,o,C,d),l.add(S),o.setItemGraphicEl(C,S)}}).update(function(C,x){var S=s.getItemGraphicEl(x);if(!o.hasValue(C)){l.remove(S);return}var _=o.getItemLayout(C);if(g&&isNormalBoxClipped(b,_)){l.remove(S);return}S?(updateProps$1(S,{shape:{points:_.ends}},n,C),saveOldStyle(S)):S=createNormalBox(_),setBoxCommon(S,o,C,d),l.add(S),o.setItemGraphicEl(C,S)}).remove(function(C){var x=s.getItemGraphicEl(C);x&&l.remove(x)}).execute(),this._data=o},r.prototype._renderLarge=function(n){this._clear(),createLarge(n,this.group);var o=n.get("clip",!0)?createClipPath(n.coordinateSystem,!1,n):null;o?this.group.setClipPath(o):this.group.removeClipPath()},r.prototype._incrementalRenderNormal=function(n,o){for(var s=o.getData(),l=s.getLayout("isSimpleBox"),d;(d=n.next())!=null;){var g=s.getItemLayout(d),y=createNormalBox(g);setBoxCommon(y,s,d,l),y.incremental=!0,this.group.add(y),this._progressiveEls.push(y)}},r.prototype._incrementalRenderLarge=function(n,o){createLarge(o,this.group,this._progressiveEls,!0)},r.prototype.remove=function(n){this._clear()},r.prototype._clear=function(){this.group.removeAll(),this._data=null},r.type="candlestick",r}(ChartView$1),NormalBoxPathShape=function(){function t(){}return t}(),NormalBoxPath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="normalCandlestickBox",o}return r.prototype.getDefaultShape=function(){return new NormalBoxPathShape},r.prototype.buildPath=function(n,o){var s=o.points;this.__simpleBox?(n.moveTo(s[4][0],s[4][1]),n.lineTo(s[6][0],s[6][1])):(n.moveTo(s[0][0],s[0][1]),n.lineTo(s[1][0],s[1][1]),n.lineTo(s[2][0],s[2][1]),n.lineTo(s[3][0],s[3][1]),n.closePath(),n.moveTo(s[4][0],s[4][1]),n.lineTo(s[5][0],s[5][1]),n.moveTo(s[6][0],s[6][1]),n.lineTo(s[7][0],s[7][1]))},r}(Path$1);function createNormalBox(t,r,n){var o=t.ends;return new NormalBoxPath({shape:{points:n?transInit(o,t):o},z2:100})}function isNormalBoxClipped(t,r){for(var n=!0,o=0;o<r.ends.length;o++)if(t.contain(r.ends[o][0],r.ends[o][1])){n=!1;break}return n}function setBoxCommon(t,r,n,o){var s=r.getItemModel(n);t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=o,setStatesStylesFromModel(t,s)}function transInit(t,r){return map$1(t,function(n){return n=n.slice(),n[1]=r.initBaseline,n})}var LargeBoxPathShape=function(){function t(){}return t}(),LargeBoxPath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o.type="largeCandlestickBox",o}return r.prototype.getDefaultShape=function(){return new LargeBoxPathShape},r.prototype.buildPath=function(n,o){for(var s=o.points,l=0;l<s.length;)if(this.__sign===s[l++]){var d=s[l++];n.moveTo(d,s[l++]),n.lineTo(d,s[l++])}else l+=3},r}(Path$1);function createLarge(t,r,n,o){var s=t.getData(),l=s.getLayout("largePoints"),d=new LargeBoxPath({shape:{points:l},__sign:1,ignoreCoarsePointer:!0});r.add(d);var g=new LargeBoxPath({shape:{points:l},__sign:-1,ignoreCoarsePointer:!0});r.add(g);var y=new LargeBoxPath({shape:{points:l},__sign:0,ignoreCoarsePointer:!0});r.add(y),setLargeStyle(1,d,t),setLargeStyle(-1,g,t),setLargeStyle(0,y,t),o&&(d.incremental=!0,g.incremental=!0),n&&n.push(d,g)}function setLargeStyle(t,r,n,o){var s=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(s=n.get(["itemStyle","borderColorDoji"]));var l=n.getModel("itemStyle").getItemStyle(SKIP_PROPS);r.useStyle(l),r.style.fill=null,r.style.stroke=s}var CandlestickView$1=CandlestickView,CandlestickSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return r.prototype.getShadowDim=function(){return"open"},r.prototype.brushSelector=function(n,o,s){var l=o.getItemLayout(n);return l&&s.rect(l.brushRect)},r.type="series.candlestick",r.dependencies=["xAxis","yAxis","grid"],r.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},r}(SeriesModel$1);mixin(CandlestickSeriesModel,WhiskerBoxCommonMixin,!0);var CandlestickSeriesModel$1=CandlestickSeriesModel;function candlestickPreprocessor(t){!t||!isArray$1(t.series)||each$f(t.series,function(r){isObject$3(r)&&r.type==="k"&&(r.type="candlestick")})}var positiveBorderColorQuery=["itemStyle","borderColor"],negativeBorderColorQuery=["itemStyle","borderColor0"],dojiBorderColorQuery=["itemStyle","borderColorDoji"],positiveColorQuery=["itemStyle","color"],negativeColorQuery=["itemStyle","color0"],candlestickVisual={seriesType:"candlestick",plan:createRenderPlanner(),performRawSeries:!0,reset:function(t,r){function n(l,d){return d.get(l>0?positiveColorQuery:negativeColorQuery)}function o(l,d){return d.get(l===0?dojiBorderColorQuery:l>0?positiveBorderColorQuery:negativeBorderColorQuery)}if(!r.isSeriesFiltered(t)){var s=t.pipelineContext.large;return!s&&{progress:function(l,d){for(var g;(g=l.next())!=null;){var y=d.getItemModel(g),b=d.getItemLayout(g).sign,C=y.getItemStyle();C.fill=n(b,y),C.stroke=o(b,y)||C.fill;var x=d.ensureUniqueItemVisual(g,"style");extend(x,C)}}}}}},candlestickVisual$1=candlestickVisual,candlestickLayout={seriesType:"candlestick",plan:createRenderPlanner(),reset:function(t){var r=t.coordinateSystem,n=t.getData(),o=calculateCandleWidth(t,n),s=0,l=1,d=["x","y"],g=n.getDimensionIndex(n.mapDimension(d[s])),y=map$1(n.mapDimensionsAll(d[l]),n.getDimensionIndex,n),b=y[0],C=y[1],x=y[2],S=y[3];if(n.setLayout({candleWidth:o,isSimpleBox:o<=1.3}),g<0||y.length<4)return;return{progress:t.pipelineContext.large?w:_};function _($,I){for(var B,R=I.getStore();(B=$.next())!=null;){var P=R.get(g,B),M=R.get(b,B),O=R.get(C,B),D=R.get(x,B),N=R.get(S,B),H=Math.min(M,O),Q=Math.max(M,O),G=re(H,P),K=re(Q,P),W=re(D,P),j=re(N,P),Y=[];te(Y,K,0),te(Y,G,1),Y.push(ae(j),ae(K),ae(W),ae(G));var q=I.getItemModel(B),X=!!q.get(["itemStyle","borderColorDoji"]);I.setItemLayout(B,{sign:getSign(R,B,M,O,C,X),initBaseline:M>O?K[l]:G[l],ends:Y,brushRect:oe(D,N,P)})}function re(se,ue){var Ae=[];return Ae[s]=ue,Ae[l]=se,isNaN(ue)||isNaN(se)?[NaN,NaN]:r.dataToPoint(Ae)}function te(se,ue,Ae){var pe=ue.slice(),he=ue.slice();pe[s]=subPixelOptimize(pe[s]+o/2,1,!1),he[s]=subPixelOptimize(he[s]-o/2,1,!0),Ae?se.push(pe,he):se.push(he,pe)}function oe(se,ue,Ae){var pe=re(se,Ae),he=re(ue,Ae);return pe[s]-=o/2,he[s]-=o/2,{x:pe[0],y:pe[1],width:o,height:he[1]-pe[1]}}function ae(se){return se[s]=subPixelOptimize(se[s],1),se}}function w($,I){for(var B=createFloat32Array($.count*4),R=0,P,M=[],O=[],D,N=I.getStore(),H=!!t.get(["itemStyle","borderColorDoji"]);(D=$.next())!=null;){var Q=N.get(g,D),G=N.get(b,D),K=N.get(C,D),W=N.get(x,D),j=N.get(S,D);if(isNaN(Q)||isNaN(W)||isNaN(j)){B[R++]=NaN,R+=3;continue}B[R++]=getSign(N,D,G,K,C,H),M[s]=Q,M[l]=W,P=r.dataToPoint(M,null,O),B[R++]=P?P[0]:NaN,B[R++]=P?P[1]:NaN,M[l]=j,P=r.dataToPoint(M,null,O),B[R++]=P?P[1]:NaN}I.setLayout("largePoints",B)}}};function getSign(t,r,n,o,s,l){var d;return n>o?d=-1:n<o?d=1:d=l?0:r>0?t.get(s,r-1)<=o?1:-1:1,d}function calculateCandleWidth(t,r){var n=t.getBaseAxis(),o,s=n.type==="category"?n.getBandWidth():(o=n.getExtent(),Math.abs(o[1]-o[0])/r.count()),l=parsePercent(retrieve2(t.get("barMaxWidth"),s),s),d=parsePercent(retrieve2(t.get("barMinWidth"),1),s),g=t.get("barWidth");return g!=null?parsePercent(g,s):Math.max(Math.min(s/2,l),d)}var candlestickLayout$1=candlestickLayout;function install$y(t){t.registerChartView(CandlestickView$1),t.registerSeriesModel(CandlestickSeriesModel$1),t.registerPreprocessor(candlestickPreprocessor),t.registerVisual(candlestickVisual$1),t.registerLayout(candlestickLayout$1)}function updateRipplePath(t,r){var n=r.rippleEffectColor||r.color;t.eachChild(function(o){o.attr({z:r.z,zlevel:r.zlevel,style:{stroke:r.brushType==="stroke"?n:null,fill:r.brushType==="fill"?n:null}})})}var EffectSymbol=function(t){__extends$1(r,t);function r(n,o){var s=t.call(this)||this,l=new SymbolClz(n,o),d=new Group$4;return s.add(l),s.add(d),s.updateData(n,o),s}return r.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},r.prototype.startEffectAnimation=function(n){for(var o=n.symbolType,s=n.color,l=n.rippleNumber,d=this.childAt(1),g=0;g<l;g++){var y=createSymbol$1(o,-1,-1,2,2,s);y.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var b=-g/l*n.period+n.effectOffset;y.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(b).start(),y.animateStyle(!0).when(n.period,{opacity:0}).delay(b).start(),d.add(y)}updateRipplePath(d,n)},r.prototype.updateEffectAnimation=function(n){for(var o=this._effectCfg,s=this.childAt(1),l=["symbolType","period","rippleScale","rippleNumber"],d=0;d<l.length;d++){var g=l[d];if(o[g]!==n[g]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}updateRipplePath(s,n)},r.prototype.highlight=function(){enterEmphasis(this)},r.prototype.downplay=function(){leaveEmphasis(this)},r.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},r.prototype.updateData=function(n,o){var s=this,l=n.hostModel;this.childAt(0).updateData(n,o);var d=this.childAt(1),g=n.getItemModel(o),y=n.getItemVisual(o,"symbol"),b=normalizeSymbolSize(n.getItemVisual(o,"symbolSize")),C=n.getItemVisual(o,"style"),x=C&&C.fill,S=g.getModel("emphasis");d.setScale(b),d.traverse(function(I){I.setStyle("fill",x)});var _=normalizeSymbolOffset(n.getItemVisual(o,"symbolOffset"),b);_&&(d.x=_[0],d.y=_[1]);var w=n.getItemVisual(o,"symbolRotate");d.rotation=(w||0)*Math.PI/180||0;var $={};$.showEffectOn=l.get("showEffectOn"),$.rippleScale=g.get(["rippleEffect","scale"]),$.brushType=g.get(["rippleEffect","brushType"]),$.period=g.get(["rippleEffect","period"])*1e3,$.effectOffset=o/n.count(),$.z=l.getShallow("z")||0,$.zlevel=l.getShallow("zlevel")||0,$.symbolType=y,$.color=x,$.rippleEffectColor=g.get(["rippleEffect","color"]),$.rippleNumber=g.get(["rippleEffect","number"]),$.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation($):this.startEffectAnimation($),this._effectCfg=$):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(I){I==="emphasis"?$.showEffectOn!=="render"&&s.startEffectAnimation($):I==="normal"&&$.showEffectOn!=="render"&&s.stopEffectAnimation()}),this._effectCfg=$,toggleHoverEmphasis(this,S.get("focus"),S.get("blurScope"),S.get("disabled"))},r.prototype.fadeOut=function(n){n&&n()},r}(Group$4),EffectSymbol$1=EffectSymbol,EffectScatterView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(){this._symbolDraw=new SymbolDraw$1(EffectSymbol$1)},r.prototype.render=function(n,o,s){var l=n.getData(),d=this._symbolDraw;d.updateData(l,{clipShape:this._getClipShape(n)}),this.group.add(d.group)},r.prototype._getClipShape=function(n){var o=n.coordinateSystem,s=o&&o.getArea&&o.getArea();return n.get("clip",!0)?s:null},r.prototype.updateTransform=function(n,o,s){var l=n.getData();this.group.dirty();var d=pointsLayout("").reset(n,o,s);d.progress&&d.progress({start:0,end:l.count(),count:l.count()},l),this._symbolDraw.updateLayout()},r.prototype._updateGroupTransform=function(n){var o=n.coordinateSystem;o&&o.getRoamTransform&&(this.group.transform=clone$2(o.getRoamTransform()),this.group.decomposeTransform())},r.prototype.remove=function(n,o){this._symbolDraw&&this._symbolDraw.remove(!0)},r.type="effectScatter",r}(ChartView$1),EffectScatterView$1=EffectScatterView,EffectScatterSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.hasSymbolVisual=!0,n}return r.prototype.getInitialData=function(n,o){return createSeriesData(null,this,{useEncodeDefaulter:!0})},r.prototype.brushSelector=function(n,o,s){return s.point(o.getItemLayout(n))},r.type="series.effectScatter",r.dependencies=["grid","polar"],r.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},r}(SeriesModel$1),EffectScatterSeriesModel$1=EffectScatterSeriesModel;function install$x(t){t.registerChartView(EffectScatterView$1),t.registerSeriesModel(EffectScatterSeriesModel$1),t.registerLayout(pointsLayout("effectScatter"))}var EffectLine=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this)||this;return l.add(l.createLine(n,o,s)),l._updateEffectSymbol(n,o),l}return r.prototype.createLine=function(n,o,s){return new Line$1(n,o,s)},r.prototype._updateEffectSymbol=function(n,o){var s=n.getItemModel(o),l=s.getModel("effect"),d=l.get("symbolSize"),g=l.get("symbol");isArray$1(d)||(d=[d,d]);var y=n.getItemVisual(o,"style"),b=l.get("color")||y&&y.stroke,C=this.childAt(1);this._symbolType!==g&&(this.remove(C),C=createSymbol$1(g,-.5,-.5,1,1,b),C.z2=100,C.culling=!0,this.add(C)),C&&(C.setStyle("shadowColor",b),C.setStyle(l.getItemStyle(["color"])),C.scaleX=d[0],C.scaleY=d[1],C.setColor(b),this._symbolType=g,this._symbolScale=d,this._updateEffectAnimation(n,l,o))},r.prototype._updateEffectAnimation=function(n,o,s){var l=this.childAt(1);if(!!l){var d=n.getItemLayout(s),g=o.get("period")*1e3,y=o.get("loop"),b=o.get("roundTrip"),C=o.get("constantSpeed"),x=retrieve(o.get("delay"),function(_){return _/n.count()*g/3});if(l.ignore=!0,this._updateAnimationPoints(l,d),C>0&&(g=this._getLineLength(l)/C*1e3),g!==this._period||y!==this._loop||b!==this._roundTrip){l.stopAnimation();var S=void 0;isFunction(x)?S=x(s):S=x,l.__t>0&&(S=-g*l.__t),this._animateSymbol(l,g,S,y,b)}this._period=g,this._loop=y,this._roundTrip=b}},r.prototype._animateSymbol=function(n,o,s,l,d){if(o>0){n.__t=0;var g=this,y=n.animate("",l).when(d?o*2:o,{__t:d?2:1}).delay(s).during(function(){g._updateSymbolPosition(n)});l||y.done(function(){g.remove(n)}),y.start()}},r.prototype._getLineLength=function(n){return dist$1(n.__p1,n.__cp1)+dist$1(n.__cp1,n.__p2)},r.prototype._updateAnimationPoints=function(n,o){n.__p1=o[0],n.__p2=o[1],n.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},r.prototype.updateData=function(n,o,s){this.childAt(0).updateData(n,o,s),this._updateEffectSymbol(n,o)},r.prototype._updateSymbolPosition=function(n){var o=n.__p1,s=n.__p2,l=n.__cp1,d=n.__t<1?n.__t:2-n.__t,g=[n.x,n.y],y=g.slice(),b=quadraticAt$1,C=quadraticDerivativeAt;g[0]=b(o[0],l[0],s[0],d),g[1]=b(o[1],l[1],s[1],d);var x=n.__t<1?C(o[0],l[0],s[0],d):C(s[0],l[0],o[0],1-d),S=n.__t<1?C(o[1],l[1],s[1],d):C(s[1],l[1],o[1],1-d);n.rotation=-Math.atan2(S,x)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=dist$1(y,g)*1.05,d===1&&(g[0]=y[0]+(g[0]-y[0])/2,g[1]=y[1]+(g[1]-y[1])/2)):n.__lastT===1?n.scaleY=2*dist$1(o,g):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=g[0],n.y=g[1]},r.prototype.updateLayout=function(n,o){this.childAt(0).updateLayout(n,o);var s=n.getItemModel(o).getModel("effect");this._updateEffectAnimation(n,s,o)},r}(Group$4),EffectLine$1=EffectLine,Polyline=function(t){__extends$1(r,t);function r(n,o,s){var l=t.call(this)||this;return l._createPolyline(n,o,s),l}return r.prototype._createPolyline=function(n,o,s){var l=n.getItemLayout(o),d=new Polyline$3({shape:{points:l}});this.add(d),this._updateCommonStl(n,o,s)},r.prototype.updateData=function(n,o,s){var l=n.hostModel,d=this.childAt(0),g={shape:{points:n.getItemLayout(o)}};updateProps$1(d,g,l,o),this._updateCommonStl(n,o,s)},r.prototype._updateCommonStl=function(n,o,s){var l=this.childAt(0),d=n.getItemModel(o),g=s&&s.emphasisLineStyle,y=s&&s.focus,b=s&&s.blurScope,C=s&&s.emphasisDisabled;if(!s||n.hasItemOption){var x=d.getModel("emphasis");g=x.getModel("lineStyle").getLineStyle(),C=x.get("disabled"),y=x.get("focus"),b=x.get("blurScope")}l.useStyle(n.getItemVisual(o,"style")),l.style.fill=null,l.style.strokeNoScale=!0;var S=l.ensureState("emphasis");S.style=g,toggleHoverEmphasis(this,y,b,C)},r.prototype.updateLayout=function(n,o){var s=this.childAt(0);s.setShape("points",n.getItemLayout(o))},r}(Group$4),Polyline$1=Polyline,EffectPolyline=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return r.prototype.createLine=function(n,o,s){return new Polyline$1(n,o,s)},r.prototype._updateAnimationPoints=function(n,o){this._points=o;for(var s=[0],l=0,d=1;d<o.length;d++){var g=o[d-1],y=o[d];l+=dist$1(g,y),s.push(l)}if(l===0){this._length=0;return}for(var d=0;d<s.length;d++)s[d]/=l;this._offsets=s,this._length=l},r.prototype._getLineLength=function(){return this._length},r.prototype._updateSymbolPosition=function(n){var o=n.__t<1?n.__t:2-n.__t,s=this._points,l=this._offsets,d=s.length;if(!!l){var g=this._lastFrame,y;if(o<this._lastFramePercent){var b=Math.min(g+1,d-1);for(y=b;y>=0&&!(l[y]<=o);y--);y=Math.min(y,d-2)}else{for(y=g;y<d&&!(l[y]>o);y++);y=Math.min(y-1,d-2)}var C=(o-l[y])/(l[y+1]-l[y]),x=s[y],S=s[y+1];n.x=x[0]*(1-C)+C*S[0],n.y=x[1]*(1-C)+C*S[1];var _=n.__t<1?S[0]-x[0]:x[0]-S[0],w=n.__t<1?S[1]-x[1]:x[1]-S[1];n.rotation=-Math.atan2(w,_)-Math.PI/2,this._lastFrame=y,this._lastFramePercent=o,n.ignore=!1}},r}(EffectLine$1),EffectPolyline$1=EffectPolyline,LargeLinesPathShape=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),LargeLinesPath=function(t){__extends$1(r,t);function r(n){var o=t.call(this,n)||this;return o._off=0,o.hoverDataIdx=-1,o}return r.prototype.reset=function(){this.notClear=!1,this._off=0},r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new LargeLinesPathShape},r.prototype.buildPath=function(n,o){var s=o.segs,l=o.curveness,d;if(o.polyline)for(d=this._off;d<s.length;){var g=s[d++];if(g>0){n.moveTo(s[d++],s[d++]);for(var y=1;y<g;y++)n.lineTo(s[d++],s[d++])}}else for(d=this._off;d<s.length;){var b=s[d++],C=s[d++],x=s[d++],S=s[d++];if(n.moveTo(b,C),l>0){var _=(b+x)/2-(C-S)*l,w=(C+S)/2-(x-b)*l;n.quadraticCurveTo(_,w,x,S)}else n.lineTo(x,S)}this.incremental&&(this._off=d,this.notClear=!0)},r.prototype.findDataIndex=function(n,o){var s=this.shape,l=s.segs,d=s.curveness,g=this.style.lineWidth;if(s.polyline)for(var y=0,b=0;b<l.length;){var C=l[b++];if(C>0)for(var x=l[b++],S=l[b++],_=1;_<C;_++){var w=l[b++],$=l[b++];if(containStroke$4(x,S,w,$,g,n,o))return y}y++}else for(var y=0,b=0;b<l.length;){var x=l[b++],S=l[b++],w=l[b++],$=l[b++];if(d>0){var I=(x+w)/2-(S-$)*d,B=(S+$)/2-(w-x)*d;if(containStroke$2(x,S,I,B,w,$,g,n,o))return y}else if(containStroke$4(x,S,w,$,g,n,o))return y;y++}return-1},r.prototype.contain=function(n,o){var s=this.transformCoordToLocal(n,o),l=this.getBoundingRect();if(n=s[0],o=s[1],l.contain(n,o)){var d=this.hoverDataIdx=this.findDataIndex(n,o);return d>=0}return this.hoverDataIdx=-1,!1},r.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var o=this.shape,s=o.segs,l=1/0,d=1/0,g=-1/0,y=-1/0,b=0;b<s.length;){var C=s[b++],x=s[b++];l=Math.min(C,l),g=Math.max(C,g),d=Math.min(x,d),y=Math.max(x,y)}n=this._rect=new BoundingRect$1(l,d,g,y)}return n},r}(Path$1),LargeLineDraw=function(){function t(){this.group=new Group$4}return t.prototype.updateData=function(r){this._clear();var n=this._create();n.setShape({segs:r.getLayout("linesPoints")}),this._setCommon(n,r)},t.prototype.incrementalPrepareUpdate=function(r){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(r,n){var o=this._newAdded[0],s=n.getLayout("linesPoints"),l=o&&o.shape.segs;if(l&&l.length<2e4){var d=l.length,g=new Float32Array(d+s.length);g.set(l),g.set(s,d),o.setShape({segs:g})}else{this._newAdded=[];var y=this._create();y.incremental=!0,y.setShape({segs:s}),this._setCommon(y,n),y.__startIndex=r.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(r){this._newAdded[0]&&r(this._newAdded[0])},t.prototype._create=function(){var r=new LargeLinesPath({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(r),this.group.add(r),r},t.prototype._setCommon=function(r,n,o){var s=n.hostModel;r.setShape({polyline:s.get("polyline"),curveness:s.get(["lineStyle","curveness"])}),r.useStyle(s.getModel("lineStyle").getLineStyle()),r.style.strokeNoScale=!0;var l=n.getVisual("style");l&&l.stroke&&r.setStyle("stroke",l.stroke),r.setStyle("fill",null);var d=getECData(r);d.seriesIndex=s.seriesIndex,r.on("mousemove",function(g){d.dataIndex=null;var y=r.hoverDataIdx;y>0&&(d.dataIndex=y+r.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),LargeLineDraw$1=LargeLineDraw,linesLayout={seriesType:"lines",plan:createRenderPlanner(),reset:function(t){var r=t.coordinateSystem;if(!!r){var n=t.get("polyline"),o=t.pipelineContext.large;return{progress:function(s,l){var d=[];if(o){var g=void 0,y=s.end-s.start;if(n){for(var b=0,C=s.start;C<s.end;C++)b+=t.getLineCoordsCount(C);g=new Float32Array(y+b*2)}else g=new Float32Array(y*4);for(var x=0,S=[],C=s.start;C<s.end;C++){var _=t.getLineCoords(C,d);n&&(g[x++]=_);for(var w=0;w<_;w++)S=r.dataToPoint(d[w],!1,S),g[x++]=S[0],g[x++]=S[1]}l.setLayout("linesPoints",g)}else for(var C=s.start;C<s.end;C++){var $=l.getItemModel(C),_=t.getLineCoords(C,d),I=[];if(n)for(var B=0;B<_;B++)I.push(r.dataToPoint(d[B]));else{I[0]=r.dataToPoint(d[0]),I[1]=r.dataToPoint(d[1]);var R=$.get(["lineStyle","curveness"]);+R&&(I[2]=[(I[0][0]+I[1][0])/2-(I[0][1]-I[1][1])*R,(I[0][1]+I[1][1])/2-(I[1][0]-I[0][0])*R])}l.setItemLayout(C,I)}}}}}},linesLayout$1=linesLayout,LinesView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=n.getData(),d=this._updateLineDraw(l,n),g=n.get("zlevel"),y=n.get(["effect","trailLength"]),b=s.getZr(),C=b.painter.getType()==="svg";C||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!C&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&y>0&&(C||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(y/10+.9,1),0)})),d.updateData(l);var x=n.get("clip",!0)&&createClipPath(n.coordinateSystem,!1,n);x?this.group.setClipPath(x):this.group.removeClipPath(),this._lastZlevel=g,this._finished=!0},r.prototype.incrementalPrepareRender=function(n,o,s){var l=n.getData(),d=this._updateLineDraw(l,n);d.incrementalPrepareUpdate(l),this._clearLayer(s),this._finished=!1},r.prototype.incrementalRender=function(n,o,s){this._lineDraw.incrementalUpdate(n,o.getData()),this._finished=n.end===o.getData().count()},r.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},r.prototype.updateTransform=function(n,o,s){var l=n.getData(),d=n.pipelineContext;if(!this._finished||d.large||d.progressiveRender)return{update:!0};var g=linesLayout$1.reset(n,o,s);g.progress&&g.progress({start:0,end:l.count(),count:l.count()},l),this._lineDraw.updateLayout(),this._clearLayer(s)},r.prototype._updateLineDraw=function(n,o){var s=this._lineDraw,l=this._showEffect(o),d=!!o.get("polyline"),g=o.pipelineContext,y=g.large;return(!s||l!==this._hasEffet||d!==this._isPolyline||y!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=y?new LargeLineDraw$1:new LineDraw$1(d?l?EffectPolyline$1:Polyline$1:l?EffectLine$1:Line$1),this._hasEffet=l,this._isPolyline=d,this._isLargeDraw=y),this.group.add(s.group),s},r.prototype._showEffect=function(n){return!!n.get(["effect","show"])},r.prototype._clearLayer=function(n){var o=n.getZr(),s=o.painter.getType()==="svg";!s&&this._lastZlevel!=null&&o.painter.getLayer(this._lastZlevel).clear(!0)},r.prototype.remove=function(n,o){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(o)},r.prototype.dispose=function(n,o){this.remove(n,o)},r.type="lines",r}(ChartView$1),LinesView$1=LinesView,Uint32Arr=typeof Uint32Array=="undefined"?Array:Uint32Array,Float64Arr=typeof Float64Array=="undefined"?Array:Float64Array;function compatEc2(t){var r=t.data;r&&r[0]&&r[0][0]&&r[0][0].coord&&(t.data=map$1(r,function(n){var o=[n[0].coord,n[1].coord],s={coords:o};return n[0].name&&(s.fromName=n[0].name),n[1].name&&(s.toName=n[1].name),mergeAll([s,n[0],n[1]])}))}var LinesSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return r.prototype.init=function(n){n.data=n.data||[],compatEc2(n);var o=this._processFlatCoordsArray(n.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(n.data=new Float32Array(o.count)),t.prototype.init.apply(this,arguments)},r.prototype.mergeOption=function(n){if(compatEc2(n),n.data){var o=this._processFlatCoordsArray(n.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(n.data=new Float32Array(o.count))}t.prototype.mergeOption.apply(this,arguments)},r.prototype.appendData=function(n){var o=this._processFlatCoordsArray(n.data);o.flatCoords&&(this._flatCoords?(this._flatCoords=concatArray(this._flatCoords,o.flatCoords),this._flatCoordsOffset=concatArray(this._flatCoordsOffset,o.flatCoordsOffset)):(this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset),n.data=new Float32Array(o.count)),this.getRawData().appendData(n.data)},r.prototype._getCoordsFromItemModel=function(n){var o=this.getData().getItemModel(n),s=o.option instanceof Array?o.option:o.getShallow("coords");return s},r.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},r.prototype.getLineCoords=function(n,o){if(this._flatCoordsOffset){for(var s=this._flatCoordsOffset[n*2],l=this._flatCoordsOffset[n*2+1],d=0;d<l;d++)o[d]=o[d]||[],o[d][0]=this._flatCoords[s+d*2],o[d][1]=this._flatCoords[s+d*2+1];return l}else{for(var g=this._getCoordsFromItemModel(n),d=0;d<g.length;d++)o[d]=o[d]||[],o[d][0]=g[d][0],o[d][1]=g[d][1];return g.length}},r.prototype._processFlatCoordsArray=function(n){var o=0;if(this._flatCoords&&(o=this._flatCoords.length),isNumber(n[0])){for(var s=n.length,l=new Uint32Arr(s),d=new Float64Arr(s),g=0,y=0,b=0,C=0;C<s;){b++;var x=n[C++];l[y++]=g+o,l[y++]=x;for(var S=0;S<x;S++){var _=n[C++],w=n[C++];d[g++]=_,d[g++]=w}}return{flatCoordsOffset:new Uint32Array(l.buffer,0,y),flatCoords:d,count:b}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},r.prototype.getInitialData=function(n,o){var s=new SeriesData$1(["value"],this);return s.hasItemOption=!1,s.initData(n.data,[],function(l,d,g,y){if(l instanceof Array)return NaN;s.hasItemOption=!0;var b=l.value;if(b!=null)return b instanceof Array?b[y]:b}),s},r.prototype.formatTooltip=function(n,o,s){var l=this.getData(),d=l.getItemModel(n),g=d.get("name");if(g)return g;var y=d.get("fromName"),b=d.get("toName"),C=[];return y!=null&&C.push(y),b!=null&&C.push(b),createTooltipMarkup("nameValue",{name:C.join(" > ")})},r.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},r.prototype.getProgressive=function(){var n=this.option.progressive;return n==null?this.option.large?1e4:this.get("progressive"):n},r.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n==null?this.option.large?2e4:this.get("progressiveThreshold"):n},r.prototype.getZLevelKey=function(){var n=this.getModel("effect"),o=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&o>0?o+"":""},r.type="series.lines",r.dependencies=["grid","polar","geo","calendar"],r.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}},r}(SeriesModel$1),LinesSeriesModel$1=LinesSeriesModel;function normalize(t){return t instanceof Array||(t=[t,t]),t}var linesVisual={seriesType:"lines",reset:function(t){var r=normalize(t.get("symbol")),n=normalize(t.get("symbolSize")),o=t.getData();o.setVisual("fromSymbol",r&&r[0]),o.setVisual("toSymbol",r&&r[1]),o.setVisual("fromSymbolSize",n&&n[0]),o.setVisual("toSymbolSize",n&&n[1]);function s(l,d){var g=l.getItemModel(d),y=normalize(g.getShallow("symbol",!0)),b=normalize(g.getShallow("symbolSize",!0));y[0]&&l.setItemVisual(d,"fromSymbol",y[0]),y[1]&&l.setItemVisual(d,"toSymbol",y[1]),b[0]&&l.setItemVisual(d,"fromSymbolSize",b[0]),b[1]&&l.setItemVisual(d,"toSymbolSize",b[1])}return{dataEach:o.hasItemOption?s:null}}},linesVisual$1=linesVisual;function install$w(t){t.registerChartView(LinesView$1),t.registerSeriesModel(LinesSeriesModel$1),t.registerLayout(linesLayout$1),t.registerVisual(linesVisual$1)}var GRADIENT_LEVELS=256,HeatmapLayer=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var r=platformApi.createCanvas();this.canvas=r}return t.prototype.update=function(r,n,o,s,l,d){var g=this._getBrush(),y=this._getGradient(l,"inRange"),b=this._getGradient(l,"outOfRange"),C=this.pointSize+this.blurSize,x=this.canvas,S=x.getContext("2d"),_=r.length;x.width=n,x.height=o;for(var w=0;w<_;++w){var $=r[w],I=$[0],B=$[1],R=$[2],P=s(R);S.globalAlpha=P,S.drawImage(g,I-C,B-C)}if(!x.width||!x.height)return x;for(var M=S.getImageData(0,0,x.width,x.height),O=M.data,D=0,N=O.length,H=this.minOpacity,Q=this.maxOpacity,G=Q-H;D<N;){var P=O[D+3]/256,K=Math.floor(P*(GRADIENT_LEVELS-1))*4;if(P>0){var W=d(P)?y:b;P>0&&(P=P*G+H),O[D++]=W[K],O[D++]=W[K+1],O[D++]=W[K+2],O[D++]=W[K+3]*P*256}else D+=4}return S.putImageData(M,0,0),x},t.prototype._getBrush=function(){var r=this._brushCanvas||(this._brushCanvas=platformApi.createCanvas()),n=this.pointSize+this.blurSize,o=n*2;r.width=o,r.height=o;var s=r.getContext("2d");return s.clearRect(0,0,o,o),s.shadowOffsetX=o,s.shadowBlur=this.blurSize,s.shadowColor="#000",s.beginPath(),s.arc(-n,n,this.pointSize,0,Math.PI*2,!0),s.closePath(),s.fill(),r},t.prototype._getGradient=function(r,n){for(var o=this._gradientPixels,s=o[n]||(o[n]=new Uint8ClampedArray(256*4)),l=[0,0,0,0],d=0,g=0;g<256;g++)r[n](g/255,!0,l),s[d++]=l[0],s[d++]=l[1],s[d++]=l[2],s[d++]=l[3];return s},t}(),HeatmapLayer$1=HeatmapLayer;function getIsInPiecewiseRange(t,r,n){var o=t[1]-t[0];r=map$1(r,function(d){return{interval:[(d.interval[0]-t[0])/o,(d.interval[1]-t[0])/o]}});var s=r.length,l=0;return function(d){var g;for(g=l;g<s;g++){var y=r[g].interval;if(y[0]<=d&&d<=y[1]){l=g;break}}if(g===s)for(g=l-1;g>=0;g--){var y=r[g].interval;if(y[0]<=d&&d<=y[1]){l=g;break}}return g>=0&&g<s&&n[g]}}function getIsInContinuousRange(t,r){var n=t[1]-t[0];return r=[(r[0]-t[0])/n,(r[1]-t[0])/n],function(o){return o>=r[0]&&o<=r[1]}}function isGeoCoordSys(t){var r=t.dimensions;return r[0]==="lng"&&r[1]==="lat"}var HeatmapView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l;o.eachComponent("visualMap",function(g){g.eachTargetSeries(function(y){y===n&&(l=g)})}),this._progressiveEls=null,this.group.removeAll();var d=n.coordinateSystem;d.type==="cartesian2d"||d.type==="calendar"?this._renderOnCartesianAndCalendar(n,s,0,n.getData().count()):isGeoCoordSys(d)&&this._renderOnGeo(d,n,l,s)},r.prototype.incrementalPrepareRender=function(n,o,s){this.group.removeAll()},r.prototype.incrementalRender=function(n,o,s,l){var d=o.coordinateSystem;d&&(isGeoCoordSys(d)?this.render(o,s,l):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(o,l,n.start,n.end,!0)))},r.prototype.eachRendered=function(n){traverseElements(this._progressiveEls||this.group,n)},r.prototype._renderOnCartesianAndCalendar=function(n,o,s,l,d){var g=n.coordinateSystem,y=isCoordinateSystemType(g,"cartesian2d"),b,C,x,S;if(y){var _=g.getAxis("x"),w=g.getAxis("y");b=_.getBandWidth()+.5,C=w.getBandWidth()+.5,x=_.scale.getExtent(),S=w.scale.getExtent()}for(var $=this.group,I=n.getData(),B=n.getModel(["emphasis","itemStyle"]).getItemStyle(),R=n.getModel(["blur","itemStyle"]).getItemStyle(),P=n.getModel(["select","itemStyle"]).getItemStyle(),M=n.get(["itemStyle","borderRadius"]),O=getLabelStatesModels(n),D=n.getModel("emphasis"),N=D.get("focus"),H=D.get("blurScope"),Q=D.get("disabled"),G=y?[I.mapDimension("x"),I.mapDimension("y"),I.mapDimension("value")]:[I.mapDimension("time"),I.mapDimension("value")],K=s;K<l;K++){var W=void 0,j=I.getItemVisual(K,"style");if(y){var Y=I.get(G[0],K),q=I.get(G[1],K);if(isNaN(I.get(G[2],K))||isNaN(Y)||isNaN(q)||Y<x[0]||Y>x[1]||q<S[0]||q>S[1])continue;var X=g.dataToPoint([Y,q]);W=new Rect$3({shape:{x:X[0]-b/2,y:X[1]-C/2,width:b,height:C},style:j})}else{if(isNaN(I.get(G[1],K)))continue;W=new Rect$3({z2:1,shape:g.dataToRect([I.get(G[0],K)]).contentShape,style:j})}if(I.hasItemOption){var re=I.getItemModel(K),te=re.getModel("emphasis");B=te.getModel("itemStyle").getItemStyle(),R=re.getModel(["blur","itemStyle"]).getItemStyle(),P=re.getModel(["select","itemStyle"]).getItemStyle(),M=re.get(["itemStyle","borderRadius"]),N=te.get("focus"),H=te.get("blurScope"),Q=te.get("disabled"),O=getLabelStatesModels(re)}W.shape.r=M;var oe=n.getRawValue(K),ae="-";oe&&oe[2]!=null&&(ae=oe[2]+""),setLabelStyle(W,O,{labelFetcher:n,labelDataIndex:K,defaultOpacity:j.opacity,defaultText:ae}),W.ensureState("emphasis").style=B,W.ensureState("blur").style=R,W.ensureState("select").style=P,toggleHoverEmphasis(W,N,H,Q),W.incremental=d,d&&(W.states.emphasis.hoverLayer=!0),$.add(W),I.setItemGraphicEl(K,W),this._progressiveEls&&this._progressiveEls.push(W)}},r.prototype._renderOnGeo=function(n,o,s,l){var d=s.targetVisuals.inRange,g=s.targetVisuals.outOfRange,y=o.getData(),b=this._hmLayer||this._hmLayer||new HeatmapLayer$1;b.blurSize=o.get("blurSize"),b.pointSize=o.get("pointSize"),b.minOpacity=o.get("minOpacity"),b.maxOpacity=o.get("maxOpacity");var C=n.getViewRect().clone(),x=n.getRoamTransform();C.applyTransform(x);var S=Math.max(C.x,0),_=Math.max(C.y,0),w=Math.min(C.width+C.x,l.getWidth()),$=Math.min(C.height+C.y,l.getHeight()),I=w-S,B=$-_,R=[y.mapDimension("lng"),y.mapDimension("lat"),y.mapDimension("value")],P=y.mapArray(R,function(N,H,Q){var G=n.dataToPoint([N,H]);return G[0]-=S,G[1]-=_,G.push(Q),G}),M=s.getExtent(),O=s.type==="visualMap.continuous"?getIsInContinuousRange(M,s.option.range):getIsInPiecewiseRange(M,s.getPieceList(),s.option.selected);b.update(P,I,B,d.color.getNormalizer(),{inRange:d.color.getColorMapper(),outOfRange:g.color.getColorMapper()},O);var D=new ZRImage$1({style:{width:I,height:B,x:S,y:_,image:b.canvas},silent:!0});this.group.add(D)},r.type="heatmap",r}(ChartView$1),HeatmapView$1=HeatmapView,HeatmapSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.getInitialData=function(n,o){return createSeriesData(null,this,{generateCoord:"value"})},r.prototype.preventIncremental=function(){var n=CoordinateSystem.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},r.type="series.heatmap",r.dependencies=["grid","geo","calendar"],r.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},r}(SeriesModel$1),HeatmapSeriesModel$1=HeatmapSeriesModel;function install$v(t){t.registerChartView(HeatmapView$1),t.registerSeriesModel(HeatmapSeriesModel$1)}var BAR_BORDER_WIDTH_QUERY=["itemStyle","borderWidth"],LAYOUT_ATTRS=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],pathForLineWidth=new Circle$1,PictorialBarView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=this.group,d=n.getData(),g=this._data,y=n.coordinateSystem,b=y.getBaseAxis(),C=b.isHorizontal(),x=y.master.getRect(),S={ecSize:{width:s.getWidth(),height:s.getHeight()},seriesModel:n,coordSys:y,coordSysExtent:[[x.x,x.x+x.width],[x.y,x.y+x.height]],isHorizontal:C,valueDim:LAYOUT_ATTRS[+C],categoryDim:LAYOUT_ATTRS[1-+C]};return d.diff(g).add(function(_){if(!!d.hasValue(_)){var w=getItemModel(d,_),$=getSymbolMeta(d,_,w,S),I=createBar(d,S,$);d.setItemGraphicEl(_,I),l.add(I),updateCommon(I,S,$)}}).update(function(_,w){var $=g.getItemGraphicEl(w);if(!d.hasValue(_)){l.remove($);return}var I=getItemModel(d,_),B=getSymbolMeta(d,_,I,S),R=getShapeStr(d,B);$&&R!==$.__pictorialShapeStr&&(l.remove($),d.setItemGraphicEl(_,null),$=null),$?updateBar($,S,B):$=createBar(d,S,B,!0),d.setItemGraphicEl(_,$),$.__pictorialSymbolMeta=B,l.add($),updateCommon($,S,B)}).remove(function(_){var w=g.getItemGraphicEl(_);w&&removeBar(g,_,w.__pictorialSymbolMeta.animationModel,w)}).execute(),this._data=d,this.group},r.prototype.remove=function(n,o){var s=this.group,l=this._data;n.get("animation")?l&&l.eachItemGraphicEl(function(d){removeBar(l,getECData(d).dataIndex,n,d)}):s.removeAll()},r.type="pictorialBar",r}(ChartView$1);function getSymbolMeta(t,r,n,o){var s=t.getItemLayout(r),l=n.get("symbolRepeat"),d=n.get("symbolClip"),g=n.get("symbolPosition")||"start",y=n.get("symbolRotate"),b=(y||0)*Math.PI/180||0,C=n.get("symbolPatternSize")||2,x=n.isAnimationEnabled(),S={dataIndex:r,layout:s,itemModel:n,symbolType:t.getItemVisual(r,"symbol")||"circle",style:t.getItemVisual(r,"style"),symbolClip:d,symbolRepeat:l,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:C,rotation:b,animationModel:x?n:null,hoverScale:x&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};prepareBarLength(n,l,s,o,S),prepareSymbolSize(t,r,s,l,d,S.boundingLength,S.pxSign,C,o,S),prepareLineWidth(n,S.symbolScale,b,o,S);var _=S.symbolSize,w=normalizeSymbolOffset(n.get("symbolOffset"),_);return prepareLayoutInfo(n,_,s,l,d,w,g,S.valueLineWidth,S.boundingLength,S.repeatCutLength,o,S),S}function prepareBarLength(t,r,n,o,s){var l=o.valueDim,d=t.get("symbolBoundingData"),g=o.coordSys.getOtherAxis(o.coordSys.getBaseAxis()),y=g.toGlobalCoord(g.dataToCoord(0)),b=1-+(n[l.wh]<=0),C;if(isArray$1(d)){var x=[convertToCoordOnAxis(g,d[0])-y,convertToCoordOnAxis(g,d[1])-y];x[1]<x[0]&&x.reverse(),C=x[b]}else d!=null?C=convertToCoordOnAxis(g,d)-y:r?C=o.coordSysExtent[l.index][b]-y:C=n[l.wh];s.boundingLength=C,r&&(s.repeatCutLength=n[l.wh]),s.pxSign=C>0?1:-1}function convertToCoordOnAxis(t,r){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(r)))}function prepareSymbolSize(t,r,n,o,s,l,d,g,y,b){var C=y.valueDim,x=y.categoryDim,S=Math.abs(n[x.wh]),_=t.getItemVisual(r,"symbolSize"),w;isArray$1(_)?w=_.slice():_==null?w=["100%","100%"]:w=[_,_],w[x.index]=parsePercent(w[x.index],S),w[C.index]=parsePercent(w[C.index],o?S:Math.abs(l)),b.symbolSize=w;var $=b.symbolScale=[w[0]/g,w[1]/g];$[C.index]*=(y.isHorizontal?-1:1)*d}function prepareLineWidth(t,r,n,o,s){var l=t.get(BAR_BORDER_WIDTH_QUERY)||0;l&&(pathForLineWidth.attr({scaleX:r[0],scaleY:r[1],rotation:n}),pathForLineWidth.updateTransform(),l/=pathForLineWidth.getLineScale(),l*=r[o.valueDim.index]),s.valueLineWidth=l||0}function prepareLayoutInfo(t,r,n,o,s,l,d,g,y,b,C,x){var S=C.categoryDim,_=C.valueDim,w=x.pxSign,$=Math.max(r[_.index]+g,0),I=$;if(o){var B=Math.abs(y),R=retrieve(t.get("symbolMargin"),"15%")+"",P=!1;R.lastIndexOf("!")===R.length-1&&(P=!0,R=R.slice(0,R.length-1));var M=parsePercent(R,r[_.index]),O=Math.max($+M*2,0),D=P?0:M*2,N=isNumeric(o),H=N?o:toIntTimes((B+D)/O),Q=B-H*$;M=Q/2/(P?H:Math.max(H-1,1)),O=$+M*2,D=P?0:M*2,!N&&o!=="fixed"&&(H=b?toIntTimes((Math.abs(b)+D)/O):0),I=H*O-D,x.repeatTimes=H,x.symbolMargin=M}var G=w*(I/2),K=x.pathPosition=[];K[S.index]=n[S.wh]/2,K[_.index]=d==="start"?G:d==="end"?y-G:y/2,l&&(K[0]+=l[0],K[1]+=l[1]);var W=x.bundlePosition=[];W[S.index]=n[S.xy],W[_.index]=n[_.xy];var j=x.barRectShape=extend({},n);j[_.wh]=w*Math.max(Math.abs(n[_.wh]),Math.abs(K[_.index]+G)),j[S.wh]=n[S.wh];var Y=x.clipShape={};Y[S.xy]=-n[S.xy],Y[S.wh]=C.ecSize[S.wh],Y[_.xy]=0,Y[_.wh]=n[_.wh]}function createPath(t){var r=t.symbolPatternSize,n=createSymbol$1(t.symbolType,-r/2,-r/2,r,r);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function createOrUpdateRepeatSymbols(t,r,n,o){var s=t.__pictorialBundle,l=n.symbolSize,d=n.valueLineWidth,g=n.pathPosition,y=r.valueDim,b=n.repeatTimes||0,C=0,x=l[r.valueDim.index]+d+n.symbolMargin*2;for(eachPath(t,function($){$.__pictorialAnimationIndex=C,$.__pictorialRepeatTimes=b,C<b?updateAttr($,null,w(C),n,o):updateAttr($,null,{scaleX:0,scaleY:0},n,o,function(){s.remove($)}),C++});C<b;C++){var S=createPath(n);S.__pictorialAnimationIndex=C,S.__pictorialRepeatTimes=b,s.add(S);var _=w(C);updateAttr(S,{x:_.x,y:_.y,scaleX:0,scaleY:0},{scaleX:_.scaleX,scaleY:_.scaleY,rotation:_.rotation},n,o)}function w($){var I=g.slice(),B=n.pxSign,R=$;return(n.symbolRepeatDirection==="start"?B>0:B<0)&&(R=b-1-$),I[y.index]=x*(R-b/2+.5)+g[y.index],{x:I[0],y:I[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function createOrUpdateSingleSymbol(t,r,n,o){var s=t.__pictorialBundle,l=t.__pictorialMainPath;l?updateAttr(l,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,o):(l=t.__pictorialMainPath=createPath(n),s.add(l),updateAttr(l,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,o))}function createOrUpdateBarRect(t,r,n){var o=extend({},r.barRectShape),s=t.__pictorialBarRect;s?updateAttr(s,null,{shape:o},r,n):(s=t.__pictorialBarRect=new Rect$3({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),s.disableMorphing=!0,t.add(s))}function createOrUpdateClip(t,r,n,o){if(n.symbolClip){var s=t.__pictorialClipPath,l=extend({},n.clipShape),d=r.valueDim,g=n.animationModel,y=n.dataIndex;if(s)updateProps$1(s,{shape:l},g,y);else{l[d.wh]=0,s=new Rect$3({shape:l}),t.__pictorialBundle.setClipPath(s),t.__pictorialClipPath=s;var b={};b[d.wh]=n.clipShape[d.wh],graphic$1[o?"updateProps":"initProps"](s,{shape:b},g,y)}}}function getItemModel(t,r){var n=t.getItemModel(r);return n.getAnimationDelayParams=getAnimationDelayParams,n.isAnimationEnabled=isAnimationEnabled,n}function getAnimationDelayParams(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function isAnimationEnabled(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function createBar(t,r,n,o){var s=new Group$4,l=new Group$4;return s.add(l),s.__pictorialBundle=l,l.x=n.bundlePosition[0],l.y=n.bundlePosition[1],n.symbolRepeat?createOrUpdateRepeatSymbols(s,r,n):createOrUpdateSingleSymbol(s,r,n),createOrUpdateBarRect(s,n,o),createOrUpdateClip(s,r,n,o),s.__pictorialShapeStr=getShapeStr(t,n),s.__pictorialSymbolMeta=n,s}function updateBar(t,r,n){var o=n.animationModel,s=n.dataIndex,l=t.__pictorialBundle;updateProps$1(l,{x:n.bundlePosition[0],y:n.bundlePosition[1]},o,s),n.symbolRepeat?createOrUpdateRepeatSymbols(t,r,n,!0):createOrUpdateSingleSymbol(t,r,n,!0),createOrUpdateBarRect(t,n,!0),createOrUpdateClip(t,r,n,!0)}function removeBar(t,r,n,o){var s=o.__pictorialBarRect;s&&s.removeTextContent();var l=[];eachPath(o,function(d){l.push(d)}),o.__pictorialMainPath&&l.push(o.__pictorialMainPath),o.__pictorialClipPath&&(n=null),each$f(l,function(d){removeElement(d,{scaleX:0,scaleY:0},n,r,function(){o.parent&&o.parent.remove(o)})}),t.setItemGraphicEl(r,null)}function getShapeStr(t,r){return[t.getItemVisual(r.dataIndex,"symbol")||"none",!!r.symbolRepeat,!!r.symbolClip].join(":")}function eachPath(t,r,n){each$f(t.__pictorialBundle.children(),function(o){o!==t.__pictorialBarRect&&r.call(n,o)})}function updateAttr(t,r,n,o,s,l){r&&t.attr(r),o.symbolClip&&!s?n&&t.attr(n):n&&graphic$1[s?"updateProps":"initProps"](t,n,o.animationModel,o.dataIndex,l)}function updateCommon(t,r,n){var o=n.dataIndex,s=n.itemModel,l=s.getModel("emphasis"),d=l.getModel("itemStyle").getItemStyle(),g=s.getModel(["blur","itemStyle"]).getItemStyle(),y=s.getModel(["select","itemStyle"]).getItemStyle(),b=s.getShallow("cursor"),C=l.get("focus"),x=l.get("blurScope"),S=l.get("scale");eachPath(t,function($){if($ instanceof ZRImage$1){var I=$.style;$.useStyle(extend({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},n.style))}else $.useStyle(n.style);var B=$.ensureState("emphasis");B.style=d,S&&(B.scaleX=$.scaleX*1.1,B.scaleY=$.scaleY*1.1),$.ensureState("blur").style=g,$.ensureState("select").style=y,b&&($.cursor=b),$.z2=n.z2});var _=r.valueDim.posDesc[+(n.boundingLength>0)],w=t.__pictorialBarRect;setLabelStyle(w,getLabelStatesModels(s),{labelFetcher:r.seriesModel,labelDataIndex:o,defaultText:getDefaultLabel(r.seriesModel.getData(),o),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:_}),toggleHoverEmphasis(t,C,x,l.get("disabled"))}function toIntTimes(t){var r=Math.round(t);return Math.abs(t-r)<1e-4?r:Math.ceil(t)}var PictorialBarView$1=PictorialBarView,PictorialBarSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return r.prototype.getInitialData=function(n){return n.stack=null,t.prototype.getInitialData.apply(this,arguments)},r.type="series.pictorialBar",r.dependencies=["grid"],r.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.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"}}}),r}(BaseBarSeriesModel$1),PictorialBarSeriesModel$1=PictorialBarSeriesModel;function install$u(t){t.registerChartView(PictorialBarView$1),t.registerSeriesModel(PictorialBarSeriesModel$1),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,curry$1(layout$3,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("pictorialBar"))}var ThemeRiverView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._layers=[],n}return r.prototype.render=function(n,o,s){var l=n.getData(),d=this,g=this.group,y=n.getLayerSeries(),b=l.getLayout("layoutInfo"),C=b.rect,x=b.boundaryGap;g.x=0,g.y=C.y+x[0];function S(I){return I.name}var _=new DataDiffer$1(this._layersSeries||[],y,S,S),w=[];_.add(bind$1($,this,"add")).update(bind$1($,this,"update")).remove(bind$1($,this,"remove")).execute();function $(I,B,R){var P=d._layers;if(I==="remove"){g.remove(P[B]);return}for(var M=[],O=[],D,N=y[B].indices,H=0;H<N.length;H++){var Q=l.getItemLayout(N[H]),G=Q.x,K=Q.y0,W=Q.y;M.push(G,K),O.push(G,K+W),D=l.getItemVisual(N[H],"style")}var j,Y=l.getItemLayout(N[0]),q=n.getModel("label"),X=q.get("margin"),re=n.getModel("emphasis");if(I==="add"){var te=w[B]=new Group$4;j=new ECPolygon({shape:{points:M,stackedOnPoints:O,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),te.add(j),g.add(te),n.isAnimationEnabled()&&j.setClipPath(createGridClipShape(j.getBoundingRect(),n,function(){j.removeClipPath()}))}else{var te=P[R];j=te.childAt(0),g.add(te),w[B]=te,updateProps$1(j,{shape:{points:M,stackedOnPoints:O}},n),saveOldStyle(j)}setLabelStyle(j,getLabelStatesModels(n),{labelDataIndex:N[H-1],defaultText:l.getName(N[H-1]),inheritColor:D.fill},{normal:{verticalAlign:"middle"}}),j.setTextConfig({position:null,local:!0});var oe=j.getTextContent();oe&&(oe.x=Y.x-X,oe.y=Y.y0+Y.y/2),j.useStyle(D),l.setItemGraphicEl(B,j),setStatesStylesFromModel(j,n),toggleHoverEmphasis(j,re.get("focus"),re.get("blurScope"),re.get("disabled"))}this._layersSeries=y,this._layers=w},r.type="themeRiver",r}(ChartView$1);function createGridClipShape(t,r,n){var o=new Rect$3({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return initProps(o,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},r,n),o}var ThemeRiverView$1=ThemeRiverView,DATA_NAME_INDEX=2,ThemeRiverSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this))},r.prototype.fixData=function(n){var o=n.length,s={},l=groupData(n,function(S){return s.hasOwnProperty(S[0]+"")||(s[S[0]+""]=-1),S[2]}),d=[];l.buckets.each(function(S,_){d.push({name:_,dataList:S})});for(var g=d.length,y=0;y<g;++y){for(var b=d[y].name,C=0;C<d[y].dataList.length;++C){var x=d[y].dataList[C][0]+"";s[x]=y}for(var x in s)s.hasOwnProperty(x)&&s[x]!==y&&(s[x]=y,n[o]=[x,0,b],o++)}return n},r.prototype.getInitialData=function(n,o){for(var s=this.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0],l=s.get("type"),d=filter(n.data,function(w){return w[2]!==void 0}),g=this.fixData(d||[]),y=[],b=this.nameMap=createHashMap(),C=0,x=0;x<g.length;++x)y.push(g[x][DATA_NAME_INDEX]),b.get(g[x][DATA_NAME_INDEX])||(b.set(g[x][DATA_NAME_INDEX],C),C++);var S=prepareSeriesDataSchema(g,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:getDimensionTypeByAxis(l)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,_=new SeriesData$1(S,this);return _.initData(g),_},r.prototype.getLayerSeries=function(){for(var n=this.getData(),o=n.count(),s=[],l=0;l<o;++l)s[l]=l;var d=n.mapDimension("single"),g=groupData(s,function(b){return n.get("name",b)}),y=[];return g.buckets.each(function(b,C){b.sort(function(x,S){return n.get(d,x)-n.get(d,S)}),y.push({name:C,indices:b})}),y},r.prototype.getAxisTooltipData=function(n,o,s){isArray$1(n)||(n=n?[n]:[]);for(var l=this.getData(),d=this.getLayerSeries(),g=[],y=d.length,b,C=0;C<y;++C){for(var x=Number.MAX_VALUE,S=-1,_=d[C].indices.length,w=0;w<_;++w){var $=l.get(n[0],d[C].indices[w]),I=Math.abs($-o);I<=x&&(b=$,x=I,S=d[C].indices[w])}g.push(S)}return{dataIndices:g,nestestValue:b}},r.prototype.formatTooltip=function(n,o,s){var l=this.getData(),d=l.getName(n),g=l.get(l.mapDimension("value"),n);return createTooltipMarkup("nameValue",{name:d,value:g})},r.type="series.themeRiver",r.dependencies=["singleAxis"],r.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}}},r}(SeriesModel$1),ThemeRiverSeriesModel$1=ThemeRiverSeriesModel;function themeRiverLayout(t,r){t.eachSeriesByType("themeRiver",function(n){var o=n.getData(),s=n.coordinateSystem,l={},d=s.getRect();l.rect=d;var g=n.get("boundaryGap"),y=s.getAxis();if(l.boundaryGap=g,y.orient==="horizontal"){g[0]=parsePercent(g[0],d.height),g[1]=parsePercent(g[1],d.height);var b=d.height-g[0]-g[1];doThemeRiverLayout(o,n,b)}else{g[0]=parsePercent(g[0],d.width),g[1]=parsePercent(g[1],d.width);var C=d.width-g[0]-g[1];doThemeRiverLayout(o,n,C)}o.setLayout("layoutInfo",l)})}function doThemeRiverLayout(t,r,n){if(!!t.count())for(var o=r.coordinateSystem,s=r.getLayerSeries(),l=t.mapDimension("single"),d=t.mapDimension("value"),g=map$1(s,function(I){return map$1(I.indices,function(B){var R=o.dataToPoint(t.get(l,B));return R[1]=t.get(d,B),R})}),y=computeBaseline(g),b=y.y0,C=n/y.max,x=s.length,S=s[0].indices.length,_,w=0;w<S;++w){_=b[w]*C,t.setItemLayout(s[0].indices[w],{layerIndex:0,x:g[0][w][0],y0:_,y:g[0][w][1]*C});for(var $=1;$<x;++$)_+=g[$-1][w][1]*C,t.setItemLayout(s[$].indices[w],{layerIndex:$,x:g[$][w][0],y0:_,y:g[$][w][1]*C})}}function computeBaseline(t){for(var r=t.length,n=t[0].length,o=[],s=[],l=0,d=0;d<n;++d){for(var g=0,y=0;y<r;++y)g+=t[y][d][1];g>l&&(l=g),o.push(g)}for(var b=0;b<n;++b)s[b]=(l-o[b])/2;l=0;for(var C=0;C<n;++C){var x=o[C]+s[C];x>l&&(l=x)}return{y0:s,max:l}}function install$t(t){t.registerChartView(ThemeRiverView$1),t.registerSeriesModel(ThemeRiverSeriesModel$1),t.registerLayout(themeRiverLayout),t.registerProcessor(dataFilter$1("themeRiver"))}var DEFAULT_SECTOR_Z=2,DEFAULT_TEXT_Z=4,SunburstPiece=function(t){__extends$1(r,t);function r(n,o,s,l){var d=t.call(this)||this;d.z2=DEFAULT_SECTOR_Z,d.textConfig={inside:!0},getECData(d).seriesIndex=o.seriesIndex;var g=new ZRText$1({z2:DEFAULT_TEXT_Z,silent:n.getModel().get(["label","silent"])});return d.setTextContent(g),d.updateData(!0,n,o,s,l),d}return r.prototype.updateData=function(n,o,s,l,d){this.node=o,o.piece=this,s=s||this._seriesModel,l=l||this._ecModel;var g=this;getECData(g).dataIndex=o.dataIndex;var y=o.getModel(),b=y.getModel("emphasis"),C=o.getLayout(),x=extend({},C);x.label=null;var S=o.getVisual("style");S.lineJoin="bevel";var _=o.getVisual("decal");_&&(S.decal=createOrUpdatePatternFromDecal(_,d));var w=getSectorCornerRadius(y.getModel("itemStyle"),x,!0);extend(x,w),each$f(SPECIAL_STATES,function(R){var P=g.ensureState(R),M=y.getModel([R,"itemStyle"]);P.style=M.getItemStyle();var O=getSectorCornerRadius(M,x);O&&(P.shape=O)}),n?(g.setShape(x),g.shape.r=C.r0,updateProps$1(g,{shape:{r:C.r}},s,o.dataIndex)):(updateProps$1(g,{shape:x},s),saveOldStyle(g)),g.useStyle(S),this._updateLabel(s);var $=y.getShallow("cursor");$&&g.attr("cursor",$),this._seriesModel=s||this._seriesModel,this._ecModel=l||this._ecModel;var I=b.get("focus"),B=I==="ancestor"?o.getAncestorsIndices():I==="descendant"?o.getDescendantIndices():I;toggleHoverEmphasis(this,B,b.get("blurScope"),b.get("disabled"))},r.prototype._updateLabel=function(n){var o=this,s=this.node.getModel(),l=s.getModel("label"),d=this.node.getLayout(),g=d.endAngle-d.startAngle,y=(d.startAngle+d.endAngle)/2,b=Math.cos(y),C=Math.sin(y),x=this,S=x.getTextContent(),_=this.node.dataIndex,w=l.get("minAngle")/180*Math.PI,$=l.get("show")&&!(w!=null&&Math.abs(g)<w);S.ignore=!$,each$f(DISPLAY_STATES,function(B){var R=B==="normal"?s.getModel("label"):s.getModel([B,"label"]),P=B==="normal",M=P?S:S.ensureState(B),O=n.getFormattedLabel(_,B);P&&(O=O||o.node.name),M.style=createTextStyle$1(R,{},null,B!=="normal",!0),O&&(M.style.text=O);var D=R.get("show");D!=null&&!P&&(M.ignore=!D);var N=I(R,"position"),H=P?x:x.states[B],Q=H.style.fill;H.textConfig={outsideFill:R.get("color")==="inherit"?Q:null,inside:N!=="outside"};var G,K=I(R,"distance")||0,W=I(R,"align");N==="outside"?(G=d.r+K,W=y>Math.PI/2?"right":"left"):!W||W==="center"?(g===2*Math.PI&&d.r0===0?G=0:G=(d.r+d.r0)/2,W="center"):W==="left"?(G=d.r0+K,y>Math.PI/2&&(W="right")):W==="right"&&(G=d.r-K,y>Math.PI/2&&(W="left")),M.style.align=W,M.style.verticalAlign=I(R,"verticalAlign")||"middle",M.x=G*b+d.cx,M.y=G*C+d.cy;var j=I(R,"rotate"),Y=0;j==="radial"?(Y=-y,Y<-Math.PI/2&&(Y+=Math.PI)):j==="tangential"?(Y=Math.PI/2-y,Y>Math.PI/2?Y-=Math.PI:Y<-Math.PI/2&&(Y+=Math.PI)):isNumber(j)&&(Y=j*Math.PI/180),M.rotation=Y});function I(B,R){var P=B.get(R);return P==null?l.get(R):P}S.dirtyStyle()},r}(Sector$1),SunburstPiece$1=SunburstPiece,ROOT_TO_NODE_ACTION="sunburstRootToNode",HIGHLIGHT_ACTION="sunburstHighlight",UNHIGHLIGHT_ACTION="sunburstUnhighlight";function installSunburstAction(t){t.registerAction({type:ROOT_TO_NODE_ACTION,update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"sunburst",query:r},o);function o(s,l){var d=retrieveTargetInfo(r,[ROOT_TO_NODE_ACTION],s);if(d){var g=s.getViewRoot();g&&(r.direction=aboveViewRoot(g,d.node)?"rollUp":"drillDown"),s.resetViewRoot(d.node)}}}),t.registerAction({type:HIGHLIGHT_ACTION,update:"none"},function(r,n,o){r=extend({},r),n.eachComponent({mainType:"series",subType:"sunburst",query:r},s);function s(l){var d=retrieveTargetInfo(r,[HIGHLIGHT_ACTION],l);d&&(r.dataIndex=d.node.dataIndex)}o.dispatchAction(extend(r,{type:"highlight"}))}),t.registerAction({type:UNHIGHLIGHT_ACTION,update:"updateView"},function(r,n,o){r=extend({},r),o.dispatchAction(extend(r,{type:"downplay"}))})}var SunburstView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s,l){var d=this;this.seriesModel=n,this.api=s,this.ecModel=o;var g=n.getData(),y=g.tree.root,b=n.getViewRoot(),C=this.group,x=n.get("renderLabelForZeroData"),S=[];b.eachNode(function(R){S.push(R)});var _=this._oldChildren||[];w(S,_),B(y,b),this._initEvents(),this._oldChildren=S;function w(R,P){if(R.length===0&&P.length===0)return;new DataDiffer$1(P,R,M,M).add(O).update(O).remove(curry$1(O,null)).execute();function M(D){return D.getId()}function O(D,N){var H=D==null?null:R[D],Q=N==null?null:P[N];$(H,Q)}}function $(R,P){if(!x&&R&&!R.getValue()&&(R=null),R!==y&&P!==y){if(P&&P.piece)R?(P.piece.updateData(!1,R,n,o,s),g.setItemGraphicEl(R.dataIndex,P.piece)):I(P);else if(R){var M=new SunburstPiece$1(R,n,o,s);C.add(M),g.setItemGraphicEl(R.dataIndex,M)}}}function I(R){!R||R.piece&&(C.remove(R.piece),R.piece=null)}function B(R,P){P.depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,R,n,o,s):(d.virtualPiece=new SunburstPiece$1(R,n,o,s),C.add(d.virtualPiece)),P.piece.off("click"),d.virtualPiece.on("click",function(M){d._rootToNode(P.parentNode)})):d.virtualPiece&&(C.remove(d.virtualPiece),d.virtualPiece=null)}},r.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(o){var s=!1,l=n.seriesModel.getViewRoot();l.eachNode(function(d){if(!s&&d.piece&&d.piece===o.target){var g=d.getModel().get("nodeClick");if(g==="rootToNode")n._rootToNode(d);else if(g==="link"){var y=d.getModel(),b=y.get("link");if(b){var C=y.get("target",!0)||"_blank";windowOpen(b,C)}}s=!0}})})},r.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:ROOT_TO_NODE_ACTION,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},r.prototype.containPoint=function(n,o){var s=o.getData(),l=s.getItemLayout(0);if(l){var d=n[0]-l.cx,g=n[1]-l.cy,y=Math.sqrt(d*d+g*g);return y<=l.r&&y>=l.r0}},r.type="sunburst",r}(ChartView$1),SunburstView$1=SunburstView,SunburstSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.ignoreStyleOnData=!0,n}return r.prototype.getInitialData=function(n,o){var s={name:n.name,children:n.data};completeTreeValue(s);var l=this._levelModels=map$1(n.levels||[],function(y){return new Model$1(y,this,o)},this),d=Tree$1.createTree(s,this,g);function g(y){y.wrapMethod("getItemModel",function(b,C){var x=d.getNodeByDataIndex(C),S=l[x.depth];return S&&(b.parentModel=S),b})}return d.data},r.prototype.optionUpdated=function(){this.resetViewRoot()},r.prototype.getDataParams=function(n){var o=t.prototype.getDataParams.apply(this,arguments),s=this.getData().tree.getNodeByDataIndex(n);return o.treePathInfo=wrapTreePathInfo(s,this),o},r.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},r.prototype.getViewRoot=function(){return this._viewRoot},r.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var o=this.getRawData().tree.root;(!n||n!==o&&!o.contains(n))&&(this._viewRoot=o)},r.prototype.enableAriaDecal=function(){enableAriaDecalForTree(this)},r.type="series.sunburst",r.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"},r}(SeriesModel$1);function completeTreeValue(t){var r=0;each$f(t.children,function(o){completeTreeValue(o);var s=o.value;isArray$1(s)&&(s=s[0]),r+=s});var n=t.value;isArray$1(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=r),n<0&&(n=0),isArray$1(t.value)?t.value[0]=n:t.value=n}var SunburstSeriesModel$1=SunburstSeriesModel,RADIAN=Math.PI/180;function sunburstLayout(t,r,n){r.eachSeriesByType(t,function(o){var s=o.get("center"),l=o.get("radius");isArray$1(l)||(l=[0,l]),isArray$1(s)||(s=[s,s]);var d=n.getWidth(),g=n.getHeight(),y=Math.min(d,g),b=parsePercent(s[0],d),C=parsePercent(s[1],g),x=parsePercent(l[0],y/2),S=parsePercent(l[1],y/2),_=-o.get("startAngle")*RADIAN,w=o.get("minAngle")*RADIAN,$=o.getData().tree.root,I=o.getViewRoot(),B=I.depth,R=o.get("sort");R!=null&&initChildren(I,R);var P=0;each$f(I.children,function(X){!isNaN(X.getValue())&&P++});var M=I.getValue(),O=Math.PI/(M||P)*2,D=I.depth>0,N=I.height-(D?-1:1),H=(S-x)/(N||1),Q=o.get("clockwise"),G=o.get("stillShowZeroSum"),K=Q?1:-1,W=function(X,re){if(!!X){var te=re;if(X!==$){var oe=X.getValue(),ae=M===0&&G?O:oe*O;ae<w&&(ae=w),te=re+K*ae;var se=X.depth-B-(D?-1:1),ue=x+H*se,Ae=x+H*(se+1),pe=o.getLevelModel(X);if(pe){var he=pe.get("r0",!0),Ce=pe.get("r",!0),ve=pe.get("radius",!0);ve!=null&&(he=ve[0],Ce=ve[1]),he!=null&&(ue=parsePercent(he,y/2)),Ce!=null&&(Ae=parsePercent(Ce,y/2))}X.setLayout({angle:ae,startAngle:re,endAngle:te,clockwise:Q,cx:b,cy:C,r0:ue,r:Ae})}if(X.children&&X.children.length){var ye=0;each$f(X.children,function(Be){ye+=W(Be,re+ye)})}return te-re}};if(D){var j=x,Y=x+H,q=Math.PI*2;$.setLayout({angle:q,startAngle:_,endAngle:_+q,clockwise:Q,cx:b,cy:C,r0:j,r:Y})}W(I,_)})}function initChildren(t,r){var n=t.children||[];t.children=sort(n,r),n.length&&each$f(t.children,function(o){initChildren(o,r)})}function sort(t,r){if(isFunction(r)){var n=map$1(t,function(s,l){var d=s.getValue();return{params:{depth:s.depth,height:s.height,dataIndex:s.dataIndex,getValue:function(){return d}},index:l}});return n.sort(function(s,l){return r(s.params,l.params)}),map$1(n,function(s){return t[s.index]})}else{var o=r==="asc";return t.sort(function(s,l){var d=(s.getValue()-l.getValue())*(o?1:-1);return d===0?(s.dataIndex-l.dataIndex)*(o?-1:1):d})}}function sunburstVisual(t){var r={};function n(o,s,l){for(var d=o;d&&d.depth>1;)d=d.parentNode;var g=s.getColorFromPalette(d.name||d.dataIndex+"",r);return o.depth>1&&isString(g)&&(g=lift(g,(o.depth-1)/(l-1)*.5)),g}t.eachSeriesByType("sunburst",function(o){var s=o.getData(),l=s.tree;l.eachNode(function(d){var g=d.getModel(),y=g.getModel("itemStyle").getItemStyle();y.fill||(y.fill=n(d,o,l.root.height));var b=s.ensureUniqueItemVisual(d.dataIndex,"style");extend(b,y)})})}function install$s(t){t.registerChartView(SunburstView$1),t.registerSeriesModel(SunburstSeriesModel$1),t.registerLayout(curry$1(sunburstLayout,"sunburst")),t.registerProcessor(curry$1(dataFilter$1,"sunburst")),t.registerVisual(sunburstVisual),installSunburstAction(t)}var STYLE_VISUAL_TYPE={color:"fill",borderColor:"stroke"},NON_STYLE_VISUAL_PROPS={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},customInnerStore=makeInner(),CustomSeriesModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},r.prototype.getInitialData=function(n,o){return createSeriesData(null,this)},r.prototype.getDataParams=function(n,o,s){var l=t.prototype.getDataParams.call(this,n,o);return s&&(l.info=customInnerStore(s).info),l},r.type="series.custom",r.dependencies=["grid","polar","geo","singleAxis","calendar"],r.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},r}(SeriesModel$1),CustomSeriesModel$1=CustomSeriesModel;function dataToCoordSize$3(t,r){return r=r||[0,0],map$1(["x","y"],function(n,o){var s=this.getAxis(n),l=r[o],d=t[o]/2;return s.type==="category"?s.getBandWidth():Math.abs(s.dataToCoord(l-d)-s.dataToCoord(l+d))},this)}function cartesianPrepareCustom(t){var r=t.master.getRect();return{coordSys:{type:"cartesian2d",x:r.x,y:r.y,width:r.width,height:r.height},api:{coord:function(n){return t.dataToPoint(n)},size:bind$1(dataToCoordSize$3,t)}}}function dataToCoordSize$2(t,r){return r=r||[0,0],map$1([0,1],function(n){var o=r[n],s=t[n]/2,l=[],d=[];return l[n]=o-s,d[n]=o+s,l[1-n]=d[1-n]=r[1-n],Math.abs(this.dataToPoint(l)[n]-this.dataToPoint(d)[n])},this)}function geoPrepareCustom(t){var r=t.getBoundingRect();return{coordSys:{type:"geo",x:r.x,y:r.y,width:r.width,height:r.height,zoom:t.getZoom()},api:{coord:function(n){return t.dataToPoint(n)},size:bind$1(dataToCoordSize$2,t)}}}function dataToCoordSize$1(t,r){var n=this.getAxis(),o=r instanceof Array?r[0]:r,s=(t instanceof Array?t[0]:t)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-s)-n.dataToCoord(o+s))}function singlePrepareCustom(t){var r=t.getRect();return{coordSys:{type:"singleAxis",x:r.x,y:r.y,width:r.width,height:r.height},api:{coord:function(n){return t.dataToPoint(n)},size:bind$1(dataToCoordSize$1,t)}}}function dataToCoordSize(t,r){return r=r||[0,0],map$1(["Radius","Angle"],function(n,o){var s="get"+n+"Axis",l=this[s](),d=r[o],g=t[o]/2,y=l.type==="category"?l.getBandWidth():Math.abs(l.dataToCoord(d-g)-l.dataToCoord(d+g));return n==="Angle"&&(y=y*Math.PI/180),y},this)}function polarPrepareCustom(t){var r=t.getRadiusAxis(),n=t.getAngleAxis(),o=r.getExtent();return o[0]>o[1]&&o.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:o[1],r0:o[0]},api:{coord:function(s){var l=r.dataToRadius(s[0]),d=n.dataToAngle(s[1]),g=t.coordToPoint([l,d]);return g.push(l,d*Math.PI/180),g},size:bind$1(dataToCoordSize,t)}}}function calendarPrepareCustom(t){var r=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:r.x,y:r.y,width:r.width,height:r.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(o,s){return t.dataToPoint(o,s)}}}}function isEC4CompatibleStyle(t,r,n,o){return t&&(t.legacy||t.legacy!==!1&&!n&&!o&&r!=="tspan"&&(r==="text"||hasOwn(t,"text")))}function convertFromEC4CompatibleStyle(t,r,n){var o=t,s,l,d;if(r==="text")d=o;else{d={},hasOwn(o,"text")&&(d.text=o.text),hasOwn(o,"rich")&&(d.rich=o.rich),hasOwn(o,"textFill")&&(d.fill=o.textFill),hasOwn(o,"textStroke")&&(d.stroke=o.textStroke),hasOwn(o,"fontFamily")&&(d.fontFamily=o.fontFamily),hasOwn(o,"fontSize")&&(d.fontSize=o.fontSize),hasOwn(o,"fontStyle")&&(d.fontStyle=o.fontStyle),hasOwn(o,"fontWeight")&&(d.fontWeight=o.fontWeight),l={type:"text",style:d,silent:!0},s={};var g=hasOwn(o,"textPosition");n?s.position=g?o.textPosition:"inside":g&&(s.position=o.textPosition),hasOwn(o,"textPosition")&&(s.position=o.textPosition),hasOwn(o,"textOffset")&&(s.offset=o.textOffset),hasOwn(o,"textRotation")&&(s.rotation=o.textRotation),hasOwn(o,"textDistance")&&(s.distance=o.textDistance)}return convertEC4CompatibleRichItem(d,t),each$f(d.rich,function(y){convertEC4CompatibleRichItem(y,y)}),{textConfig:s,textContent:l}}function convertEC4CompatibleRichItem(t,r){!r||(r.font=r.textFont||r.font,hasOwn(r,"textStrokeWidth")&&(t.lineWidth=r.textStrokeWidth),hasOwn(r,"textAlign")&&(t.align=r.textAlign),hasOwn(r,"textVerticalAlign")&&(t.verticalAlign=r.textVerticalAlign),hasOwn(r,"textLineHeight")&&(t.lineHeight=r.textLineHeight),hasOwn(r,"textWidth")&&(t.width=r.textWidth),hasOwn(r,"textHeight")&&(t.height=r.textHeight),hasOwn(r,"textBackgroundColor")&&(t.backgroundColor=r.textBackgroundColor),hasOwn(r,"textPadding")&&(t.padding=r.textPadding),hasOwn(r,"textBorderColor")&&(t.borderColor=r.textBorderColor),hasOwn(r,"textBorderWidth")&&(t.borderWidth=r.textBorderWidth),hasOwn(r,"textBorderRadius")&&(t.borderRadius=r.textBorderRadius),hasOwn(r,"textBoxShadowColor")&&(t.shadowColor=r.textBoxShadowColor),hasOwn(r,"textBoxShadowBlur")&&(t.shadowBlur=r.textBoxShadowBlur),hasOwn(r,"textBoxShadowOffsetX")&&(t.shadowOffsetX=r.textBoxShadowOffsetX),hasOwn(r,"textBoxShadowOffsetY")&&(t.shadowOffsetY=r.textBoxShadowOffsetY))}function convertToEC4StyleForCustomSerise(t,r,n){var o=t;o.textPosition=o.textPosition||n.position||"inside",n.offset!=null&&(o.textOffset=n.offset),n.rotation!=null&&(o.textRotation=n.rotation),n.distance!=null&&(o.textDistance=n.distance);var s=o.textPosition.indexOf("inside")>=0,l=t.fill||"#000";convertToEC4RichItem(o,r);var d=o.textFill==null;return s?d&&(o.textFill=n.insideFill||"#fff",!o.textStroke&&n.insideStroke&&(o.textStroke=n.insideStroke),!o.textStroke&&(o.textStroke=l),o.textStrokeWidth==null&&(o.textStrokeWidth=2)):(d&&(o.textFill=t.fill||n.outsideFill||"#000"),!o.textStroke&&n.outsideStroke&&(o.textStroke=n.outsideStroke)),o.text=r.text,o.rich=r.rich,each$f(r.rich,function(g){convertToEC4RichItem(g,g)}),o}function convertToEC4RichItem(t,r){!r||(hasOwn(r,"fill")&&(t.textFill=r.fill),hasOwn(r,"stroke")&&(t.textStroke=r.fill),hasOwn(r,"lineWidth")&&(t.textStrokeWidth=r.lineWidth),hasOwn(r,"font")&&(t.font=r.font),hasOwn(r,"fontStyle")&&(t.fontStyle=r.fontStyle),hasOwn(r,"fontWeight")&&(t.fontWeight=r.fontWeight),hasOwn(r,"fontSize")&&(t.fontSize=r.fontSize),hasOwn(r,"fontFamily")&&(t.fontFamily=r.fontFamily),hasOwn(r,"align")&&(t.textAlign=r.align),hasOwn(r,"verticalAlign")&&(t.textVerticalAlign=r.verticalAlign),hasOwn(r,"lineHeight")&&(t.textLineHeight=r.lineHeight),hasOwn(r,"width")&&(t.textWidth=r.width),hasOwn(r,"height")&&(t.textHeight=r.height),hasOwn(r,"backgroundColor")&&(t.textBackgroundColor=r.backgroundColor),hasOwn(r,"padding")&&(t.textPadding=r.padding),hasOwn(r,"borderColor")&&(t.textBorderColor=r.borderColor),hasOwn(r,"borderWidth")&&(t.textBorderWidth=r.borderWidth),hasOwn(r,"borderRadius")&&(t.textBorderRadius=r.borderRadius),hasOwn(r,"shadowColor")&&(t.textBoxShadowColor=r.shadowColor),hasOwn(r,"shadowBlur")&&(t.textBoxShadowBlur=r.shadowBlur),hasOwn(r,"shadowOffsetX")&&(t.textBoxShadowOffsetX=r.shadowOffsetX),hasOwn(r,"shadowOffsetY")&&(t.textBoxShadowOffsetY=r.shadowOffsetY),hasOwn(r,"textShadowColor")&&(t.textShadowColor=r.textShadowColor),hasOwn(r,"textShadowBlur")&&(t.textShadowBlur=r.textShadowBlur),hasOwn(r,"textShadowOffsetX")&&(t.textShadowOffsetX=r.textShadowOffsetX),hasOwn(r,"textShadowOffsetY")&&(t.textShadowOffsetY=r.textShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function(t,r){return t[r]=1,t},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig(t,r,n,o,s){var l=t+"Animation",d=getAnimationConfig(t,o,s)||{},g=transitionInnerStore(r).userDuring;return d.duration>0&&(d.during=g?bind$1(duringCall,{el:r,userDuring:g}):null,d.setToFinal=!0,d.scope=t),extend(d,n[l]),d}function applyUpdateTransition(t,r,n,o){o=o||{};var s=o.dataIndex,l=o.isInit,d=o.clearStyle,g=n.isAnimationEnabled(),y=transitionInnerStore(t),b=r.style;y.userDuring=r.during;var C={},x={};if(prepareTransformAllPropsFinal(t,r,x),prepareShapeOrExtraAllPropsFinal("shape",r,x),prepareShapeOrExtraAllPropsFinal("extra",r,x),!l&&g&&(prepareTransformTransitionFrom(t,r,C),prepareShapeOrExtraTransitionFrom("shape",t,r,C),prepareShapeOrExtraTransitionFrom("extra",t,r,C),prepareStyleTransitionFrom(t,r,b,C)),x.style=b,applyPropsDirectly(t,x,d),applyMiscProps(t,r),g)if(l){var S={};each$f(ELEMENT_ANIMATABLE_PROPS,function(w){var $=w?r[w]:r;$&&$.enterFrom&&(w&&(S[w]=S[w]||{}),extend(w?S[w]:S,$.enterFrom))});var _=getElementAnimationConfig("enter",t,r,n,s);_.duration>0&&t.animateFrom(S,_)}else applyPropsTransition(t,r,s||0,n,C);updateLeaveTo(t,r),b?t.dirty():t.markRedraw()}function updateLeaveTo(t,r){for(var n=transitionInnerStore(t).leaveToProps,o=0;o<ELEMENT_ANIMATABLE_PROPS.length;o++){var s=ELEMENT_ANIMATABLE_PROPS[o],l=s?r[s]:r;l&&l.leaveTo&&(n||(n=transitionInnerStore(t).leaveToProps={}),s&&(n[s]=n[s]||{}),extend(s?n[s]:n,l.leaveTo))}}function applyLeaveTransition(t,r,n,o){if(t){var s=t.parent,l=transitionInnerStore(t).leaveToProps;if(l){var d=getElementAnimationConfig("update",t,r,n,0);d.done=function(){s.remove(t),o&&o()},t.animateTo(l,d)}else s.remove(t),o&&o()}}function isTransitionAll(t){return t==="all"}function applyPropsDirectly(t,r,n){var o=r.style;if(!t.isGroup&&o){if(n){t.useStyle({});for(var s=t.animators,l=0;l<s.length;l++){var d=s[l];d.targetName==="style"&&d.changeTarget(t.style)}}t.setStyle(o)}r&&(r.style=null,r&&t.attr(r),r.style=o)}function applyPropsTransition(t,r,n,o,s){if(s){var l=getElementAnimationConfig("update",t,r,o,n);l.duration>0&&t.animateFrom(s,l)}}function applyMiscProps(t,r){hasOwn(r,"silent")&&(t.silent=r.silent),hasOwn(r,"ignore")&&(t.ignore=r.ignore),t instanceof Displayable$1&&hasOwn(r,"invisible")&&(t.invisible=r.invisible),t instanceof Path$1&&hasOwn(r,"autoBatch")&&(t.autoBatch=r.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function(t,r){return tmpDuringScope.el[t]=r,this},getTransform:function(t){return tmpDuringScope.el[t]},setShape:function(t,r){var n=tmpDuringScope.el,o=n.shape||(n.shape={});return o[t]=r,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){var r=tmpDuringScope.el.shape;if(r)return r[t]},setStyle:function(t,r){var n=tmpDuringScope.el,o=n.style;return o&&(o[t]=r,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){var r=tmpDuringScope.el.style;if(r)return r[t]},setExtra:function(t,r){var n=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return n[t]=r,this},getExtra:function(t){var r=tmpDuringScope.el.extra;if(r)return r[t]}};function duringCall(){var t=this,r=t.el;if(!!r){var n=transitionInnerStore(r).userDuring,o=t.userDuring;if(n!==o){t.el=t.userDuring=null;return}tmpDuringScope.el=r,o(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom(t,r,n,o){var s=n[t];if(!!s){var l=r[t],d;if(l){var g=n.transition,y=s.transition;if(y)if(!d&&(d=o[t]={}),isTransitionAll(y))extend(d,l);else for(var b=normalizeToArray(y),C=0;C<b.length;C++){var x=b[C],S=l[x];d[x]=S}else if(isTransitionAll(g)||indexOf(g,t)>=0){!d&&(d=o[t]={});for(var _=keys(l),C=0;C<_.length;C++){var x=_[C],S=l[x];isNonStyleTransitionEnabled(s[x],S)&&(d[x]=S)}}}}}function prepareShapeOrExtraAllPropsFinal(t,r,n){var o=r[t];if(!!o)for(var s=n[t]={},l=keys(o),d=0;d<l.length;d++){var g=l[d];s[g]=cloneValue(o[g])}}function prepareTransformTransitionFrom(t,r,n){for(var o=r.transition,s=isTransitionAll(o)?TRANSFORMABLE_PROPS:normalizeToArray(o||[]),l=0;l<s.length;l++){var d=s[l];if(!(d==="style"||d==="shape"||d==="extra")){var g=t[d];n[d]=g}}}function prepareTransformAllPropsFinal(t,r,n){for(var o=0;o<LEGACY_TRANSFORM_PROPS.length;o++){var s=LEGACY_TRANSFORM_PROPS[o],l=LEGACY_TRANSFORM_PROPS_MAP[s],d=r[s];d&&(n[l[0]]=d[0],n[l[1]]=d[1])}for(var o=0;o<TRANSFORMABLE_PROPS.length;o++){var g=TRANSFORMABLE_PROPS[o];r[g]!=null&&(n[g]=r[g])}}function prepareStyleTransitionFrom(t,r,n,o){if(!!n){var s=t.style,l;if(s){var d=n.transition,g=r.transition;if(d&&!isTransitionAll(d)){var y=normalizeToArray(d);!l&&(l=o.style={});for(var b=0;b<y.length;b++){var C=y[b],x=s[C];l[C]=x}}else if(t.getAnimationStyleProps&&(isTransitionAll(g)||isTransitionAll(d)||indexOf(g,"style")>=0)){var S=t.getAnimationStyleProps(),_=S?S.style:null;if(_){!l&&(l=o.style={});for(var w=keys(n),b=0;b<w.length;b++){var C=w[b];if(_[C]){var x=s[C];l[C]=x}}}}}}}function isNonStyleTransitionEnabled(t,r){return isArrayLike(t)?t!==r:t!=null&&isFinite(t)}var getStateToRestore=makeInner(),KEYFRAME_EXCLUDE_KEYS=["percent","easing","shape","style","extra"];function stopPreviousKeyframeAnimationAndRestore(t){t.stopAnimation("keyframe"),t.attr(getStateToRestore(t))}function applyKeyframeAnimation(t,r,n){if(!(!n.isAnimationEnabled()||!r)){if(isArray$1(r)){each$f(r,function(g){applyKeyframeAnimation(t,g,n)});return}var o=r.keyframes,s=r.duration;if(n&&s==null){var l=getAnimationConfig("enter",n,0);s=l&&l.duration}if(!(!o||!s)){var d=getStateToRestore(t);each$f(ELEMENT_ANIMATABLE_PROPS,function(g){if(!(g&&!t[g])){var y;o.sort(function(b,C){return b.percent-C.percent}),each$f(o,function(b){var C=t.animators,x=g?b[g]:b;if(!!x){var S=keys(x);if(g||(S=filter(S,function($){return indexOf(KEYFRAME_EXCLUDE_KEYS,$)<0})),!!S.length){y||(y=t.animate(g,r.loop,!0),y.scope="keyframe");for(var _=0;_<C.length;_++)C[_]!==y&&C[_].targetName===y.targetName&&C[_].stopTracks(S);g&&(d[g]=d[g]||{});var w=g?d[g]:d;each$f(S,function($){w[$]=((g?t[g]:t)||{})[$]}),y.whenWithKeys(s*b.percent,x,S,b.easing)}}}),y&&y.delay(r.delay||0).duration(s).start(r.easing)}})}}}var EMPHASIS="emphasis",NORMAL="normal",BLUR="blur",SELECT="select",STATES=[NORMAL,EMPHASIS,BLUR,SELECT],PATH_ITEM_STYLE={normal:["itemStyle"],emphasis:[EMPHASIS,"itemStyle"],blur:[BLUR,"itemStyle"],select:[SELECT,"itemStyle"]},PATH_LABEL={normal:["label"],emphasis:[EMPHASIS,"label"],blur:[BLUR,"label"],select:[SELECT,"label"]},DEFAULT_TRANSITION=["x","y"],GROUP_DIFF_PREFIX="e\0\0",attachedTxInfoTmp={normal:{},emphasis:{},blur:{},select:{}},prepareCustoms={cartesian2d:cartesianPrepareCustom,geo:geoPrepareCustom,single:singlePrepareCustom,polar:polarPrepareCustom,calendar:calendarPrepareCustom};function isPath(t){return t instanceof Path$1}function isDisplayable(t){return t instanceof Displayable$1}function copyElement(t,r){r.copyTransform(t),isDisplayable(r)&&isDisplayable(t)&&(r.setStyle(t.style),r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel,r.invisible=t.invisible,r.ignore=t.ignore,isPath(r)&&isPath(t)&&r.setShape(t.shape))}var CustomChartView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s,l){this._progressiveEls=null;var d=this._data,g=n.getData(),y=this.group,b=makeRenderItem(n,g,o,s);d||y.removeAll(),g.diff(d).add(function(x){createOrUpdateItem(s,null,x,b(x,l),n,y,g)}).remove(function(x){var S=d.getItemGraphicEl(x);S&&applyLeaveTransition(S,customInnerStore(S).option,n)}).update(function(x,S){var _=d.getItemGraphicEl(S);createOrUpdateItem(s,_,x,b(x,l),n,y,g)}).execute();var C=n.get("clip",!0)?createClipPath(n.coordinateSystem,!1,n):null;C?y.setClipPath(C):y.removeClipPath(),this._data=g},r.prototype.incrementalPrepareRender=function(n,o,s){this.group.removeAll(),this._data=null},r.prototype.incrementalRender=function(n,o,s,l,d){var g=o.getData(),y=makeRenderItem(o,g,s,l),b=this._progressiveEls=[];function C(_){_.isGroup||(_.incremental=!0,_.ensureState("emphasis").hoverLayer=!0)}for(var x=n.start;x<n.end;x++){var S=createOrUpdateItem(null,null,x,y(x,d),o,this.group,g);S&&(S.traverse(C),b.push(S))}},r.prototype.eachRendered=function(n){traverseElements(this._progressiveEls||this.group,n)},r.prototype.filterForExposedEvent=function(n,o,s,l){var d=o.element;if(d==null||s.name===d)return!0;for(;(s=s.__hostTarget||s.parent)&&s!==this.group;)if(s.name===d)return!0;return!1},r.type="custom",r}(ChartView$1),CustomChartView$1=CustomChartView;function createEl$1(t){var r=t.type,n;if(r==="path"){var o=t.shape,s=o.width!=null&&o.height!=null?{x:o.x||0,y:o.y||0,width:o.width,height:o.height}:null,l=getPathData(o);n=makePath(l,null,s,o.layout||"center"),customInnerStore(n).customPathData=l}else if(r==="image")n=new ZRImage$1({}),customInnerStore(n).customImagePath=t.style.image;else if(r==="text")n=new ZRText$1({});else if(r==="group")n=new Group$4;else{if(r==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var d=getShapeClass(r);if(!d){var g="";throwError(g)}n=new d}return customInnerStore(n).customGraphicType=r,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function updateElNormal(t,r,n,o,s,l,d){stopPreviousKeyframeAnimationAndRestore(r);var g=s&&s.normal.cfg;g&&r.setTextConfig(g),o&&o.transition==null&&(o.transition=DEFAULT_TRANSITION);var y=o&&o.style;if(y){if(r.type==="text"){var b=y;hasOwn(b,"textFill")&&(b.fill=b.textFill),hasOwn(b,"textStroke")&&(b.stroke=b.textStroke)}var C=void 0,x=isPath(r)?y.decal:null;t&&x&&(x.dirty=!0,C=createOrUpdatePatternFromDecal(x,t)),y.__decalPattern=C}if(isDisplayable(r)&&y){var C=y.__decalPattern;C&&(y.decal=C)}applyUpdateTransition(r,o,l,{dataIndex:n,isInit:d,clearStyle:!0}),applyKeyframeAnimation(r,o.keyframeAnimation,l)}function updateElOnState(t,r,n,o,s){var l=r.isGroup?null:r,d=s&&s[t].cfg;if(l){var g=l.ensureState(t);if(o===!1){var y=l.getState(t);y&&(y.style=null)}else g.style=o||null;d&&(g.textConfig=d),setDefaultStateProxy(l)}}function updateZ(t,r,n){if(!t.isGroup){var o=t,s=n.currentZ,l=n.currentZLevel;o.z=s,o.zlevel=l;var d=r.z2;d!=null&&(o.z2=d||0);for(var g=0;g<STATES.length;g++)updateZForEachState(o,r,STATES[g])}}function updateZForEachState(t,r,n){var o=n===NORMAL,s=o?r:retrieveStateOption(r,n),l=s?s.z2:null,d;l!=null&&(d=o?t:t.ensureState(n),d.z2=l||0)}function makeRenderItem(t,r,n,o){var s=t.get("renderItem"),l=t.coordinateSystem,d={};l&&(d=l.prepareCustoms?l.prepareCustoms(l):prepareCustoms[l.type](l));for(var g=defaults({getWidth:o.getWidth,getHeight:o.getHeight,getZr:o.getZr,getDevicePixelRatio:o.getDevicePixelRatio,value:M,style:D,ordinalRawValue:O,styleEmphasis:N,visual:G,barLayout:K,currentSeriesIndices:W,font:j},d.api||{}),y={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:d.coordSys,dataInsideLength:r.count(),encode:wrapEncodeDef(t.getData())},b,C,x={},S={},_={},w={},$=0;$<STATES.length;$++){var I=STATES[$];_[I]=t.getModel(PATH_ITEM_STYLE[I]),w[I]=t.getModel(PATH_LABEL[I])}function B(Y){return Y===b?C||(C=r.getItemModel(Y)):r.getItemModel(Y)}function R(Y,q){return r.hasItemOption?Y===b?x[q]||(x[q]=B(Y).getModel(PATH_ITEM_STYLE[q])):B(Y).getModel(PATH_ITEM_STYLE[q]):_[q]}function P(Y,q){return r.hasItemOption?Y===b?S[q]||(S[q]=B(Y).getModel(PATH_LABEL[q])):B(Y).getModel(PATH_LABEL[q]):w[q]}return function(Y,q){return b=Y,C=null,x={},S={},s&&s(defaults({dataIndexInside:Y,dataIndex:r.getRawIndex(Y),actionType:q?q.type:null},y),g)};function M(Y,q){return q==null&&(q=b),r.getStore().get(r.getDimensionIndex(Y||0),q)}function O(Y,q){q==null&&(q=b),Y=Y||0;var X=r.getDimensionInfo(Y);if(!X){var re=r.getDimensionIndex(Y);return re>=0?r.getStore().get(re,q):void 0}var te=r.get(X.name,q),oe=X&&X.ordinalMeta;return oe?oe.categories[te]:te}function D(Y,q){q==null&&(q=b);var X=r.getItemVisual(q,"style"),re=X&&X.fill,te=X&&X.opacity,oe=R(q,NORMAL).getItemStyle();re!=null&&(oe.fill=re),te!=null&&(oe.opacity=te);var ae={inheritColor:isString(re)?re:"#000"},se=P(q,NORMAL),ue=createTextStyle$1(se,null,ae,!1,!0);ue.text=se.getShallow("show")?retrieve2(t.getFormattedLabel(q,NORMAL),getDefaultLabel(r,q)):null;var Ae=createTextConfig(se,ae,!1);return Q(Y,oe),oe=convertToEC4StyleForCustomSerise(oe,ue,Ae),Y&&H(oe,Y),oe.legacy=!0,oe}function N(Y,q){q==null&&(q=b);var X=R(q,EMPHASIS).getItemStyle(),re=P(q,EMPHASIS),te=createTextStyle$1(re,null,null,!0,!0);te.text=re.getShallow("show")?retrieve3(t.getFormattedLabel(q,EMPHASIS),t.getFormattedLabel(q,NORMAL),getDefaultLabel(r,q)):null;var oe=createTextConfig(re,null,!0);return Q(Y,X),X=convertToEC4StyleForCustomSerise(X,te,oe),Y&&H(X,Y),X.legacy=!0,X}function H(Y,q){for(var X in q)hasOwn(q,X)&&(Y[X]=q[X])}function Q(Y,q){Y&&(Y.textFill&&(q.textFill=Y.textFill),Y.textPosition&&(q.textPosition=Y.textPosition))}function G(Y,q){if(q==null&&(q=b),hasOwn(STYLE_VISUAL_TYPE,Y)){var X=r.getItemVisual(q,"style");return X?X[STYLE_VISUAL_TYPE[Y]]:null}if(hasOwn(NON_STYLE_VISUAL_PROPS,Y))return r.getItemVisual(q,Y)}function K(Y){if(l.type==="cartesian2d"){var q=l.getBaseAxis();return getLayoutOnAxis(defaults({axis:q},Y))}}function W(){return n.getCurrentSeriesIndices()}function j(Y){return getFont(Y,n)}}function wrapEncodeDef(t){var r={};return each$f(t.dimensions,function(n){var o=t.getDimensionInfo(n);if(!o.isExtraCoord){var s=o.coordDim,l=r[s]=r[s]||[];l[o.coordDimIndex]=t.getDimensionIndex(n)}}),r}function createOrUpdateItem(t,r,n,o,s,l,d){if(!o){l.remove(r);return}var g=doCreateOrUpdateEl(t,r,n,o,s,l);return g&&d.setItemGraphicEl(n,g),g&&toggleHoverEmphasis(g,o.focus,o.blurScope,o.emphasisDisabled),g}function doCreateOrUpdateEl(t,r,n,o,s,l){var d=-1,g=r;r&&doesElNeedRecreate(r,o,s)&&(d=indexOf(l.childrenRef(),r),r=null);var y=!r,b=r;b?b.clearStates():(b=createEl$1(o),g&©Element(g,b)),o.morph===!1?b.disableMorphing=!0:b.disableMorphing&&(b.disableMorphing=!1),attachedTxInfoTmp.normal.cfg=attachedTxInfoTmp.normal.conOpt=attachedTxInfoTmp.emphasis.cfg=attachedTxInfoTmp.emphasis.conOpt=attachedTxInfoTmp.blur.cfg=attachedTxInfoTmp.blur.conOpt=attachedTxInfoTmp.select.cfg=attachedTxInfoTmp.select.conOpt=null,attachedTxInfoTmp.isLegacy=!1,doCreateOrUpdateAttachedTx(b,n,o,s,y,attachedTxInfoTmp),doCreateOrUpdateClipPath(b,n,o,s,y),updateElNormal(t,b,n,o,attachedTxInfoTmp,s,y),hasOwn(o,"info")&&(customInnerStore(b).info=o.info);for(var C=0;C<STATES.length;C++){var x=STATES[C];if(x!==NORMAL){var S=retrieveStateOption(o,x),_=retrieveStyleOptionOnState(o,S,x);updateElOnState(x,b,S,_,attachedTxInfoTmp)}}return updateZ(b,o,s),o.type==="group"&&mergeChildren(t,b,n,o,s),d>=0?l.replaceAt(b,d):l.add(b),b}function doesElNeedRecreate(t,r,n){var o=customInnerStore(t),s=r.type,l=r.shape,d=r.style;return n.isUniversalTransitionEnabled()||s!=null&&s!==o.customGraphicType||s==="path"&&hasOwnPathData(l)&&getPathData(l)!==o.customPathData||s==="image"&&hasOwn(d,"image")&&d.image!==o.customImagePath}function doCreateOrUpdateClipPath(t,r,n,o,s){var l=n.clipPath;if(l===!1)t&&t.getClipPath()&&t.removeClipPath();else if(l){var d=t.getClipPath();d&&doesElNeedRecreate(d,l,o)&&(d=null),d||(d=createEl$1(l),t.setClipPath(d)),updateElNormal(null,d,r,l,null,o,s)}}function doCreateOrUpdateAttachedTx(t,r,n,o,s,l){if(!t.isGroup){processTxInfo(n,null,l),processTxInfo(n,EMPHASIS,l);var d=l.normal.conOpt,g=l.emphasis.conOpt,y=l.blur.conOpt,b=l.select.conOpt;if(d!=null||g!=null||b!=null||y!=null){var C=t.getTextContent();if(d===!1)C&&t.removeTextContent();else{d=l.normal.conOpt=d||{type:"text"},C?C.clearStates():(C=createEl$1(d),t.setTextContent(C)),updateElNormal(null,C,r,d,null,o,s);for(var x=d&&d.style,S=0;S<STATES.length;S++){var _=STATES[S];if(_!==NORMAL){var w=l[_].conOpt;updateElOnState(_,C,w,retrieveStyleOptionOnState(d,w,_),null)}}x?C.dirty():C.markRedraw()}}}}function processTxInfo(t,r,n){var o=r?retrieveStateOption(t,r):t,s=r?retrieveStyleOptionOnState(t,o,EMPHASIS):t.style,l=t.type,d=o?o.textConfig:null,g=t.textContent,y=g?r?retrieveStateOption(g,r):g:null;if(s&&(n.isLegacy||isEC4CompatibleStyle(s,l,!!d,!!y))){n.isLegacy=!0;var b=convertFromEC4CompatibleStyle(s,l,!r);!d&&b.textConfig&&(d=b.textConfig),!y&&b.textContent&&(y=b.textContent)}if(!r&&y){var C=y;!C.type&&(C.type="text")}var x=r?n[r]:n.normal;x.cfg=d,x.conOpt=y}function retrieveStateOption(t,r){return r?t?t[r]:null:t}function retrieveStyleOptionOnState(t,r,n){var o=r&&r.style;return o==null&&n===EMPHASIS&&t&&(o=t.styleEmphasis),o}function mergeChildren(t,r,n,o,s){var l=o.children,d=l?l.length:0,g=o.$mergeChildren,y=g==="byName"||o.diffChildrenByName,b=g===!1;if(!(!d&&!y&&!b)){if(y){diffGroupChildren({api:t,oldChildren:r.children()||[],newChildren:l||[],dataIndex:n,seriesModel:s,group:r});return}b&&r.removeAll();for(var C=0;C<d;C++){var x=l[C],S=r.childAt(C);x?(x.ignore==null&&(x.ignore=!1),doCreateOrUpdateEl(t,S,n,x,s,r)):S.ignore=!0}for(var _=r.childCount()-1;_>=C;_--){var w=r.childAt(_);removeChildFromGroup(r,w,s)}}}function removeChildFromGroup(t,r,n){r&&applyLeaveTransition(r,customInnerStore(t).option,n)}function diffGroupChildren(t){new DataDiffer$1(t.oldChildren,t.newChildren,getKey,getKey,t).add(processAddUpdate).update(processAddUpdate).remove(processRemove).execute()}function getKey(t,r){var n=t&&t.name;return n!=null?n:GROUP_DIFF_PREFIX+r}function processAddUpdate(t,r){var n=this.context,o=t!=null?n.newChildren[t]:null,s=r!=null?n.oldChildren[r]:null;doCreateOrUpdateEl(n.api,s,n.dataIndex,o,n.seriesModel,n.group)}function processRemove(t){var r=this.context,n=r.oldChildren[t];n&&applyLeaveTransition(n,customInnerStore(n).option,r.seriesModel)}function getPathData(t){return t&&(t.pathData||t.d)}function hasOwnPathData(t){return t&&(hasOwn(t,"pathData")||hasOwn(t,"d"))}function install$r(t){t.registerChartView(CustomChartView$1),t.registerSeriesModel(CustomSeriesModel$1)}var inner$b=makeInner(),clone$1=clone$4,bind=bind$1,BaseAxisPointer=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(r,n,o,s){var l=n.get("value"),d=n.get("status");if(this._axisModel=r,this._axisPointerModel=n,this._api=o,!(!s&&this._lastValue===l&&this._lastStatus===d)){this._lastValue=l,this._lastStatus=d;var g=this._group,y=this._handle;if(!d||d==="hide"){g&&g.hide(),y&&y.hide();return}g&&g.show(),y&&y.show();var b={};this.makeElOption(b,l,r,n,o);var C=b.graphicKey;C!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=C;var x=this._moveAnimation=this.determineAnimation(r,n);if(!g)g=this._group=new Group$4,this.createPointerEl(g,b,r,n),this.createLabelEl(g,b,r,n),o.getZr().add(g);else{var S=curry$1(updateProps,n,x);this.updatePointerEl(g,b,S),this.updateLabelEl(g,b,S,n)}updateMandatoryProps(g,n,!0),this._renderHandle(l)}},t.prototype.remove=function(r){this.clear(r)},t.prototype.dispose=function(r){this.clear(r)},t.prototype.determineAnimation=function(r,n){var o=n.get("animation"),s=r.axis,l=s.type==="category",d=n.get("snap");if(!d&&!l)return!1;if(o==="auto"||o==null){var g=this.animationThreshold;if(l&&s.getBandWidth()>g)return!0;if(d){var y=getAxisInfo$1(r).seriesDataCount,b=s.getExtent();return Math.abs(b[0]-b[1])/y>g}return!1}return o===!0},t.prototype.makeElOption=function(r,n,o,s,l){},t.prototype.createPointerEl=function(r,n,o,s){var l=n.pointer;if(l){var d=inner$b(r).pointerEl=new graphic$1[l.type](clone$1(n.pointer));r.add(d)}},t.prototype.createLabelEl=function(r,n,o,s){if(n.label){var l=inner$b(r).labelEl=new ZRText$1(clone$1(n.label));r.add(l),updateLabelShowHide(l,s)}},t.prototype.updatePointerEl=function(r,n,o){var s=inner$b(r).pointerEl;s&&n.pointer&&(s.setStyle(n.pointer.style),o(s,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(r,n,o,s){var l=inner$b(r).labelEl;l&&(l.setStyle(n.label.style),o(l,{x:n.label.x,y:n.label.y}),updateLabelShowHide(l,s))},t.prototype._renderHandle=function(r){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,o=this._api.getZr(),s=this._handle,l=n.getModel("handle"),d=n.get("status");if(!l.get("show")||!d||d==="hide"){s&&o.remove(s),this._handle=null;return}var g;this._handle||(g=!0,s=this._handle=createIcon(l.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(b){stop(b.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),o.add(s)),updateMandatoryProps(s,n,!1),s.setStyle(l.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var y=l.get("size");isArray$1(y)||(y=[y,y]),s.scaleX=y[0]/2,s.scaleY=y[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",l.get("throttle")||0,"fixRate"),this._moveHandleToValue(r,g)}},t.prototype._moveHandleToValue=function(r,n){updateProps(this._axisPointerModel,!n&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(r,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(r,n){var o=this._handle;if(!!o){this._dragging=!0;var s=this.updateHandleTransform(getHandleTransProps(o),[r,n],this._axisModel,this._axisPointerModel);this._payloadInfo=s,o.stopAnimation(),o.attr(getHandleTransProps(s)),inner$b(o).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var r=this._handle;if(!!r){var n=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var r=this._handle;if(!!r){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(r){this._lastValue=null,this._lastStatus=null;var n=r.getZr(),o=this._group,s=this._handle;n&&o&&(this._lastGraphicKey=null,o&&n.remove(o),s&&n.remove(s),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(r,n,o){return o=o||0,{x:r[o],y:r[1-o],width:n[o],height:n[1-o]}},t}();function updateProps(t,r,n,o){propsEqual(inner$b(n).lastProp,o)||(inner$b(n).lastProp=o,r?updateProps$1(n,o,t):(n.stopAnimation(),n.attr(o)))}function propsEqual(t,r){if(isObject$3(t)&&isObject$3(r)){var n=!0;return each$f(r,function(o,s){n=n&&propsEqual(t[s],o)}),!!n}else return t===r}function updateLabelShowHide(t,r){t[r.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function updateMandatoryProps(t,r,n){var o=r.get("z"),s=r.get("zlevel");t&&t.traverse(function(l){l.type!=="group"&&(o!=null&&(l.z=o),s!=null&&(l.zlevel=s),l.silent=n)})}var BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(t){var r=t.get("type"),n=t.getModel(r+"Style"),o;return r==="line"?(o=n.getLineStyle(),o.fill=null):r==="shadow"&&(o=n.getAreaStyle(),o.stroke=null),o}function buildLabelElOption(t,r,n,o,s){var l=n.get("value"),d=getValueLabel(l,r.axis,r.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),g=n.getModel("label"),y=normalizeCssArray(g.get("padding")||0),b=g.getFont(),C=getBoundingRect(d,b),x=s.position,S=C.width+y[1]+y[3],_=C.height+y[0]+y[2],w=s.align;w==="right"&&(x[0]-=S),w==="center"&&(x[0]-=S/2);var $=s.verticalAlign;$==="bottom"&&(x[1]-=_),$==="middle"&&(x[1]-=_/2),confineInContainer(x,S,_,o);var I=g.get("backgroundColor");(!I||I==="auto")&&(I=r.get(["axisLine","lineStyle","color"])),t.label={x:x[0],y:x[1],style:createTextStyle$1(g,{text:d,font:b,fill:g.getTextColor(),padding:y,backgroundColor:I}),z2:10}}function confineInContainer(t,r,n,o){var s=o.getWidth(),l=o.getHeight();t[0]=Math.min(t[0]+r,s)-r,t[1]=Math.min(t[1]+n,l)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function getValueLabel(t,r,n,o,s){t=r.scale.parse(t);var l=r.scale.getLabel({value:t},{precision:s.precision}),d=s.formatter;if(d){var g={value:getAxisRawValue(r,{value:t}),axisDimension:r.dim,axisIndex:r.index,seriesData:[]};each$f(o,function(y){var b=n.getSeriesByIndex(y.seriesIndex),C=y.dataIndexInside,x=b&&b.getDataParams(C);x&&g.seriesData.push(x)}),isString(d)?l=d.replace("{value}",l):isFunction(d)&&(l=d(g))}return l}function getTransformedPosition(t,r,n){var o=create$1();return rotate(o,o,n.rotation),translate(o,o,n.position),applyTransform([t.dataToCoord(r),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],o)}function buildCartesianSingleLabelElOption(t,r,n,o,s,l){var d=AxisBuilder$1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=s.get(["label","margin"]),buildLabelElOption(r,o,s,l,{position:getTransformedPosition(o.axis,t,n),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function makeLineShape(t,r,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:r[n],y2:r[1-n]}}function makeRectShape(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}}function makeSectorShape(t,r,n,o,s,l){return{cx:t,cy:r,r0:n,r:o,startAngle:s,endAngle:l,clockwise:!0}}var CartesianAxisPointer=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.makeElOption=function(n,o,s,l,d){var g=s.axis,y=g.grid,b=l.get("type"),C=getCartesian(y,g).getOtherAxis(g).getGlobalExtent(),x=g.toGlobalCoord(g.dataToCoord(o,!0));if(b&&b!=="none"){var S=buildElStyle(l),_=pointerShapeBuilder$2[b](g,x,C);_.style=S,n.graphicKey=_.type,n.pointer=_}var w=layout$2(y.model,s);buildCartesianSingleLabelElOption(o,n,w,s,l,d)},r.prototype.getHandleTransform=function(n,o,s){var l=layout$2(o.axis.grid.model,o,{labelInside:!1});l.labelMargin=s.get(["handle","margin"]);var d=getTransformedPosition(o.axis,n,l);return{x:d[0],y:d[1],rotation:l.rotation+(l.labelDirection<0?Math.PI:0)}},r.prototype.updateHandleTransform=function(n,o,s,l){var d=s.axis,g=d.grid,y=d.getGlobalExtent(!0),b=getCartesian(g,d).getOtherAxis(d).getGlobalExtent(),C=d.dim==="x"?0:1,x=[n.x,n.y];x[C]+=o[C],x[C]=Math.min(y[1],x[C]),x[C]=Math.max(y[0],x[C]);var S=(b[1]+b[0])/2,_=[S,S];_[C]=x[C];var w=[{verticalAlign:"middle"},{align:"center"}];return{x:x[0],y:x[1],rotation:n.rotation,cursorPoint:_,tooltipOption:w[C]}},r}(BaseAxisPointer$1);function getCartesian(t,r){var n={};return n[r.dim+"AxisIndex"]=r.index,t.getCartesian(n)}var pointerShapeBuilder$2={line:function(t,r,n){var o=makeLineShape([r,n[0]],[r,n[1]],getAxisDimIndex(t));return{type:"Line",subPixelOptimize:!0,shape:o}},shadow:function(t,r,n){var o=Math.max(1,t.getBandWidth()),s=n[1]-n[0];return{type:"Rect",shape:makeRectShape([r-o/2,n[0]],[o,s],getAxisDimIndex(t))}}};function getAxisDimIndex(t){return t.dim==="x"?0:1}var CartesianAxisPointer$1=CartesianAxisPointer,AxisPointerModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="axisPointer",r.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}},r}(ComponentModel$1),AxisPointerModel$1=AxisPointerModel,inner$a=makeInner(),each$8=each$f;function register(t,r,n){if(!env$1.node){var o=r.getZr();inner$a(o).records||(inner$a(o).records={}),initGlobalListeners(o,r);var s=inner$a(o).records[t]||(inner$a(o).records[t]={});s.handler=n}}function initGlobalListeners(t,r){if(inner$a(t).initialized)return;inner$a(t).initialized=!0,n("click",curry$1(doEnter,"click")),n("mousemove",curry$1(doEnter,"mousemove")),n("globalout",onLeave);function n(o,s){t.on(o,function(l){var d=makeDispatchAction$1(r);each$8(inner$a(t).records,function(g){g&&s(g,l,d.dispatchAction)}),dispatchTooltipFinally(d.pendings,r)})}}function dispatchTooltipFinally(t,r){var n=t.showTip.length,o=t.hideTip.length,s;n?s=t.showTip[n-1]:o&&(s=t.hideTip[o-1]),s&&(s.dispatchAction=null,r.dispatchAction(s))}function onLeave(t,r,n){t.handler("leave",null,n)}function doEnter(t,r,n,o){r.handler(t,n,o)}function makeDispatchAction$1(t){var r={showTip:[],hideTip:[]},n=function(o){var s=r[o.type];s?s.push(o):(o.dispatchAction=n,t.dispatchAction(o))};return{dispatchAction:n,pendings:r}}function unregister(t,r){if(!env$1.node){var n=r.getZr(),o=(inner$a(n).records||{})[t];o&&(inner$a(n).records[t]=null)}}var AxisPointerView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=o.getComponent("tooltip"),d=n.get("triggerOn")||l&&l.get("triggerOn")||"mousemove|click";register("axisPointer",s,function(g,y,b){d!=="none"&&(g==="leave"||d.indexOf(g)>=0)&&b({type:"updateAxisPointer",currTrigger:g,x:y&&y.offsetX,y:y&&y.offsetY})})},r.prototype.remove=function(n,o){unregister("axisPointer",o)},r.prototype.dispose=function(n,o){unregister("axisPointer",o)},r.type="axisPointer",r}(ComponentView$1),AxisPointerView$1=AxisPointerView;function findPointFromSeries(t,r){var n=[],o=t.seriesIndex,s;if(o==null||!(s=r.getSeriesByIndex(o)))return{point:[]};var l=s.getData(),d=queryDataIndex(l,t);if(d==null||d<0||isArray$1(d))return{point:[]};var g=l.getItemGraphicEl(d),y=s.coordinateSystem;if(s.getTooltipPosition)n=s.getTooltipPosition(d)||[];else if(y&&y.dataToPoint)if(t.isStacked){var b=y.getBaseAxis(),C=y.getOtherAxis(b),x=C.dim,S=b.dim,_=x==="x"||x==="radius"?1:0,w=l.mapDimension(S),$=[];$[_]=l.get(w,d),$[1-_]=l.get(l.getCalculationInfo("stackResultDimension"),d),n=y.dataToPoint($)||[]}else n=y.dataToPoint(l.getValues(map$1(y.dimensions,function(B){return l.mapDimension(B)}),d))||[];else if(g){var I=g.getBoundingRect().clone();I.applyTransform(g.transform),n=[I.x+I.width/2,I.y+I.height/2]}return{point:n,el:g}}var inner$9=makeInner();function axisTrigger(t,r,n){var o=t.currTrigger,s=[t.x,t.y],l=t,d=t.dispatchAction||bind$1(n.dispatchAction,n),g=r.getComponent("axisPointer").coordSysAxesInfo;if(!!g){illegalPoint(s)&&(s=findPointFromSeries({seriesIndex:l.seriesIndex,dataIndex:l.dataIndex},r).point);var y=illegalPoint(s),b=l.axesInfo,C=g.axesInfo,x=o==="leave"||illegalPoint(s),S={},_={},w={list:[],map:{}},$={showPointer:curry$1(showPointer,_),showTooltip:curry$1(showTooltip,w)};each$f(g.coordSysMap,function(B,R){var P=y||B.containPoint(s);each$f(g.coordSysAxesInfo[R],function(M,O){var D=M.axis,N=findInputAxisInfo(b,M);if(!x&&P&&(!b||N)){var H=N&&N.value;H==null&&!y&&(H=D.pointToData(s)),H!=null&&processOnAxis(M,H,$,!1,S)}})});var I={};return each$f(C,function(B,R){var P=B.linkGroup;P&&!_[R]&&each$f(P.axesInfo,function(M,O){var D=_[O];if(M!==B&&D){var N=D.value;P.mapper&&(N=B.axis.scale.parse(P.mapper(N,makeMapperParam(M),makeMapperParam(B)))),I[B.key]=N}})}),each$f(I,function(B,R){processOnAxis(C[R],B,$,!0,S)}),updateModelActually(_,C,S),dispatchTooltipActually(w,s,t,d),dispatchHighDownActually(C,d,n),S}}function processOnAxis(t,r,n,o,s){var l=t.axis;if(!(l.scale.isBlank()||!l.containData(r))){if(!t.involveSeries){n.showPointer(t,r);return}var d=buildPayloadsBySeries(r,t),g=d.payloadBatch,y=d.snapToValue;g[0]&&s.seriesIndex==null&&extend(s,g[0]),!o&&t.snap&&l.containData(y)&&y!=null&&(r=y),n.showPointer(t,r,g),n.showTooltip(t,d,y)}}function buildPayloadsBySeries(t,r){var n=r.axis,o=n.dim,s=t,l=[],d=Number.MAX_VALUE,g=-1;return each$f(r.seriesModels,function(y,b){var C=y.getData().mapDimensionsAll(o),x,S;if(y.getAxisTooltipData){var _=y.getAxisTooltipData(C,t,n);S=_.dataIndices,x=_.nestestValue}else{if(S=y.getData().indicesOfNearest(C[0],t,n.type==="category"?.5:null),!S.length)return;x=y.getData().get(C[0],S[0])}if(!(x==null||!isFinite(x))){var w=t-x,$=Math.abs(w);$<=d&&(($<d||w>=0&&g<0)&&(d=$,g=w,s=x,l.length=0),each$f(S,function(I){l.push({seriesIndex:y.seriesIndex,dataIndexInside:I,dataIndex:y.getData().getRawIndex(I)})}))}}),{payloadBatch:l,snapToValue:s}}function showPointer(t,r,n,o){t[r.key]={value:n,payloadBatch:o}}function showTooltip(t,r,n,o){var s=n.payloadBatch,l=r.axis,d=l.model,g=r.axisPointerModel;if(!(!r.triggerTooltip||!s.length)){var y=r.coordSys.model,b=makeKey(y),C=t.map[b];C||(C=t.map[b]={coordSysId:y.id,coordSysIndex:y.componentIndex,coordSysType:y.type,coordSysMainType:y.mainType,dataByAxis:[]},t.list.push(C)),C.dataByAxis.push({axisDim:l.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:o,valueLabelOpt:{precision:g.get(["label","precision"]),formatter:g.get(["label","formatter"])},seriesDataIndices:s.slice()})}}function updateModelActually(t,r,n){var o=n.axesInfo=[];each$f(r,function(s,l){var d=s.axisPointerModel.option,g=t[l];g?(!s.useHandle&&(d.status="show"),d.value=g.value,d.seriesDataIndices=(g.payloadBatch||[]).slice()):!s.useHandle&&(d.status="hide"),d.status==="show"&&o.push({axisDim:s.axis.dim,axisIndex:s.axis.model.componentIndex,value:d.value})})}function dispatchTooltipActually(t,r,n,o){if(illegalPoint(r)||!t.list.length){o({type:"hideTip"});return}var s=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:r[0],y:r[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:s.dataIndexInside,dataIndex:s.dataIndex,seriesIndex:s.seriesIndex,dataByCoordSys:t.list})}function dispatchHighDownActually(t,r,n){var o=n.getZr(),s="axisPointerLastHighlights",l=inner$9(o)[s]||{},d=inner$9(o)[s]={};each$f(t,function(b,C){var x=b.axisPointerModel.option;x.status==="show"&&each$f(x.seriesDataIndices,function(S){var _=S.seriesIndex+" | "+S.dataIndex;d[_]=S})});var g=[],y=[];each$f(l,function(b,C){!d[C]&&y.push(b)}),each$f(d,function(b,C){!l[C]&&g.push(b)}),y.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:y}),g.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:g})}function findInputAxisInfo(t,r){for(var n=0;n<(t||[]).length;n++){var o=t[n];if(r.axis.dim===o.axisDim&&r.axis.model.componentIndex===o.axisIndex)return o}}function makeMapperParam(t){var r=t.axis.model,n={},o=n.axisDim=t.axis.dim;return n.axisIndex=n[o+"AxisIndex"]=r.componentIndex,n.axisName=n[o+"AxisName"]=r.name,n.axisId=n[o+"AxisId"]=r.id,n}function illegalPoint(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function install$q(t){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),t.registerComponentModel(AxisPointerModel$1),t.registerComponentView(AxisPointerView$1),t.registerPreprocessor(function(r){if(r){(!r.axisPointer||r.axisPointer.length===0)&&(r.axisPointer={});var n=r.axisPointer.link;n&&!isArray$1(n)&&(r.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(r,n){r.getComponent("axisPointer").coordSysAxesInfo=collect(r,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$p(t){use(install$N),use(install$q)}var PolarAxisPointer=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.makeElOption=function(n,o,s,l,d){var g=s.axis;g.dim==="angle"&&(this.animationThreshold=Math.PI/18);var y=g.polar,b=y.getOtherAxis(g),C=b.getExtent(),x=g.dataToCoord(o),S=l.get("type");if(S&&S!=="none"){var _=buildElStyle(l),w=pointerShapeBuilder$1[S](g,y,x,C);w.style=_,n.graphicKey=w.type,n.pointer=w}var $=l.get(["label","margin"]),I=getLabelPosition(o,s,l,y,$);buildLabelElOption(n,s,l,d,I)},r}(BaseAxisPointer$1);function getLabelPosition(t,r,n,o,s){var l=r.axis,d=l.dataToCoord(t),g=o.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var y=o.getRadiusAxis().getExtent(),b,C,x;if(l.dim==="radius"){var S=create$1();rotate(S,S,g),translate(S,S,[o.cx,o.cy]),b=applyTransform([d,-s],S);var _=r.getModel("axisLabel").get("rotate")||0,w=AxisBuilder$1.innerTextLayout(g,_*Math.PI/180,-1);C=w.textAlign,x=w.textVerticalAlign}else{var $=y[1];b=o.coordToPoint([$+s,d]);var I=o.cx,B=o.cy;C=Math.abs(b[0]-I)/$<.3?"center":b[0]>I?"left":"right",x=Math.abs(b[1]-B)/$<.3?"middle":b[1]>B?"top":"bottom"}return{position:b,align:C,verticalAlign:x}}var pointerShapeBuilder$1={line:function(t,r,n,o){return t.dim==="angle"?{type:"Line",shape:makeLineShape(r.coordToPoint([o[0],n]),r.coordToPoint([o[1],n]))}:{type:"Circle",shape:{cx:r.cx,cy:r.cy,r:n}}},shadow:function(t,r,n,o){var s=Math.max(1,t.getBandWidth()),l=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:makeSectorShape(r.cx,r.cy,o[0],o[1],(-n-s/2)*l,(-n+s/2)*l)}:{type:"Sector",shape:makeSectorShape(r.cx,r.cy,n-s/2,n+s/2,0,Math.PI*2)}}},PolarAxisPointer$1=PolarAxisPointer,PolarModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.findAxisModel=function(n){var o,s=this.ecModel;return s.eachComponent(n,function(l){l.getCoordSysModel()===this&&(o=l)},this),o},r.type="polar",r.dependencies=["radiusAxis","angleAxis"],r.defaultOption={z:0,center:["50%","50%"],radius:"80%"},r}(ComponentModel$1),PolarModel$1=PolarModel,PolarAxisModel=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",SINGLE_REFERRING).models[0]},r.type="polarAxis",r}(ComponentModel$1);mixin(PolarAxisModel,AxisModelCommonMixin);var AngleAxisModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="angleAxis",r}(PolarAxisModel),RadiusAxisModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="radiusAxis",r}(PolarAxisModel),RadiusAxis=function(t){__extends$1(r,t);function r(n,o){return t.call(this,"radius",n,o)||this}return r.prototype.pointToData=function(n,o){return this.polar.pointToData(n,o)[this.dim==="radius"?0:1]},r}(Axis$1);RadiusAxis.prototype.dataToRadius=Axis$1.prototype.dataToCoord;RadiusAxis.prototype.radiusToData=Axis$1.prototype.coordToData;var RadiusAxis$1=RadiusAxis,inner$8=makeInner(),AngleAxis=function(t){__extends$1(r,t);function r(n,o){return t.call(this,"angle",n,o||[0,360])||this}return r.prototype.pointToData=function(n,o){return this.polar.pointToData(n,o)[this.dim==="radius"?0:1]},r.prototype.calculateCategoryInterval=function(){var n=this,o=n.getLabelModel(),s=n.scale,l=s.getExtent(),d=s.count();if(l[1]-l[0]<1)return 0;var g=l[0],y=n.dataToCoord(g+1)-n.dataToCoord(g),b=Math.abs(y),C=getBoundingRect(g==null?"":g+"",o.getFont(),"center","top"),x=Math.max(C.height,7),S=x/b;isNaN(S)&&(S=1/0);var _=Math.max(0,Math.floor(S)),w=inner$8(n.model),$=w.lastAutoInterval,I=w.lastTickCount;return $!=null&&I!=null&&Math.abs($-_)<=1&&Math.abs(I-d)<=1&&$>_?_=$:(w.lastTickCount=d,w.lastAutoInterval=_),_},r}(Axis$1);AngleAxis.prototype.dataToAngle=Axis$1.prototype.dataToCoord;AngleAxis.prototype.angleToData=Axis$1.prototype.coordToData;var AngleAxis$1=AngleAxis,polarDimensions=["radius","angle"],Polar=function(){function t(r){this.dimensions=polarDimensions,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new RadiusAxis$1,this._angleAxis=new AngleAxis$1,this.axisPointerEnabled=!0,this.name=r||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(r){var n=this.pointToCoord(r);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},t.prototype.containData=function(r){return this._radiusAxis.containData(r[0])&&this._angleAxis.containData(r[1])},t.prototype.getAxis=function(r){var n="_"+r+"Axis";return this[n]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(r){var n=[],o=this._angleAxis,s=this._radiusAxis;return o.scale.type===r&&n.push(o),s.scale.type===r&&n.push(s),n},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(r){var n=this._angleAxis;return r===n?this._radiusAxis:n},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(r){var n=r!=null&&r!=="auto"?this.getAxis(r):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},t.prototype.dataToPoint=function(r,n){return this.coordToPoint([this._radiusAxis.dataToRadius(r[0],n),this._angleAxis.dataToAngle(r[1],n)])},t.prototype.pointToData=function(r,n){var o=this.pointToCoord(r);return[this._radiusAxis.radiusToData(o[0],n),this._angleAxis.angleToData(o[1],n)]},t.prototype.pointToCoord=function(r){var n=r[0]-this.cx,o=r[1]-this.cy,s=this.getAngleAxis(),l=s.getExtent(),d=Math.min(l[0],l[1]),g=Math.max(l[0],l[1]);s.inverse?d=g-360:g=d+360;var y=Math.sqrt(n*n+o*o);n/=y,o/=y;for(var b=Math.atan2(-o,n)/Math.PI*180,C=b<d?1:-1;b<d||b>g;)b+=C*360;return[y,b]},t.prototype.coordToPoint=function(r){var n=r[0],o=r[1]/180*Math.PI,s=Math.cos(o)*n+this.cx,l=-Math.sin(o)*n+this.cy;return[s,l]},t.prototype.getArea=function(){var r=this.getAngleAxis(),n=this.getRadiusAxis(),o=n.getExtent().slice();o[0]>o[1]&&o.reverse();var s=r.getExtent(),l=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-s[0]*l,endAngle:-s[1]*l,clockwise:r.inverse,contain:function(d,g){var y=d-this.cx,b=g-this.cy,C=y*y+b*b-1e-4,x=this.r,S=this.r0;return C<=x*x&&C>=S*S}}},t.prototype.convertToPixel=function(r,n,o){var s=getCoordSys$2(n);return s===this?this.dataToPoint(o):null},t.prototype.convertFromPixel=function(r,n,o){var s=getCoordSys$2(n);return s===this?this.pointToData(o):null},t}();function getCoordSys$2(t){var r=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||r&&r.coordinateSystem}var Polar$1=Polar;function resizePolar(t,r,n){var o=r.get("center"),s=n.getWidth(),l=n.getHeight();t.cx=parsePercent(o[0],s),t.cy=parsePercent(o[1],l);var d=t.getRadiusAxis(),g=Math.min(s,l)/2,y=r.get("radius");y==null?y=[0,"100%"]:isArray$1(y)||(y=[0,y]);var b=[parsePercent(y[0],g),parsePercent(y[1],g)];d.inverse?d.setExtent(b[1],b[0]):d.setExtent(b[0],b[1])}function updatePolarScale(t,r){var n=this,o=n.getAngleAxis(),s=n.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),s.scale.setExtent(1/0,-1/0),t.eachSeries(function(g){if(g.coordinateSystem===n){var y=g.getData();each$f(getDataDimensionsOnAxis(y,"radius"),function(b){s.scale.unionExtentFromData(y,b)}),each$f(getDataDimensionsOnAxis(y,"angle"),function(b){o.scale.unionExtentFromData(y,b)})}}),niceScaleExtent(o.scale,o.model),niceScaleExtent(s.scale,s.model),o.type==="category"&&!o.onBand){var l=o.getExtent(),d=360/o.scale.count();o.inverse?l[1]+=d:l[1]-=d,o.setExtent(l[0],l[1])}}function isAngleAxisModel(t){return t.mainType==="angleAxis"}function setAxis(t,r){if(t.type=r.get("type"),t.scale=createScaleByModel$1(r),t.onBand=r.get("boundaryGap")&&t.type==="category",t.inverse=r.get("inverse"),isAngleAxisModel(r)){t.inverse=t.inverse!==r.get("clockwise");var n=r.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}r.axis=t,t.model=r}var polarCreator={dimensions:polarDimensions,create:function(t,r){var n=[];return t.eachComponent("polar",function(o,s){var l=new Polar$1(s+"");l.update=updatePolarScale;var d=l.getRadiusAxis(),g=l.getAngleAxis(),y=o.findAxisModel("radiusAxis"),b=o.findAxisModel("angleAxis");setAxis(d,y),setAxis(g,b),resizePolar(l,o,r),n.push(l),o.coordinateSystem=l,l.model=o}),t.eachSeries(function(o){if(o.get("coordinateSystem")==="polar"){var s=o.getReferringComponents("polar",SINGLE_REFERRING).models[0];o.coordinateSystem=s.coordinateSystem}}),n}},polarCreator$1=polarCreator,elementList=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function getAxisLineShape(t,r,n){r[1]>r[0]&&(r=r.slice().reverse());var o=t.coordToPoint([r[0],n]),s=t.coordToPoint([r[1],n]);return{x1:o[0],y1:o[1],x2:s[0],y2:s[1]}}function getRadiusIdx(t){var r=t.getRadiusAxis();return r.inverse?0:1}function fixAngleOverlap(t){var r=t[0],n=t[t.length-1];r&&n&&Math.abs(Math.abs(r.coord-n.coord)-360)<1e-4&&t.pop()}var AngleAxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.axisPointerClass="PolarAxisPointer",n}return r.prototype.render=function(n,o){if(this.group.removeAll(),!!n.get("show")){var s=n.axis,l=s.polar,d=l.getRadiusAxis().getExtent(),g=s.getTicksCoords(),y=s.getMinorTicksCoords(),b=map$1(s.getViewLabels(),function(C){C=clone$4(C);var x=s.scale,S=x.type==="ordinal"?x.getRawOrdinalNumber(C.tickValue):C.tickValue;return C.coord=s.dataToCoord(S),C});fixAngleOverlap(b),fixAngleOverlap(g),each$f(elementList,function(C){n.get([C,"show"])&&(!s.scale.isBlank()||C==="axisLine")&&angelAxisElementsBuilders[C](this.group,n,l,g,y,d,b)},this)}},r.type="angleAxis",r}(AxisView$1),angelAxisElementsBuilders={axisLine:function(t,r,n,o,s,l){var d=r.getModel(["axisLine","lineStyle"]),g=getRadiusIdx(n),y=g?0:1,b;l[y]===0?b=new Circle$1({shape:{cx:n.cx,cy:n.cy,r:l[g]},style:d.getLineStyle(),z2:1,silent:!0}):b=new Ring$1({shape:{cx:n.cx,cy:n.cy,r:l[g],r0:l[y]},style:d.getLineStyle(),z2:1,silent:!0}),b.style.fill=null,t.add(b)},axisTick:function(t,r,n,o,s,l){var d=r.getModel("axisTick"),g=(d.get("inside")?-1:1)*d.get("length"),y=l[getRadiusIdx(n)],b=map$1(o,function(C){return new Line$3({shape:getAxisLineShape(n,[y,y+g],C.coord)})});t.add(mergePath(b,{style:defaults(d.getModel("lineStyle").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,r,n,o,s,l){if(!!s.length){for(var d=r.getModel("axisTick"),g=r.getModel("minorTick"),y=(d.get("inside")?-1:1)*g.get("length"),b=l[getRadiusIdx(n)],C=[],x=0;x<s.length;x++)for(var S=0;S<s[x].length;S++)C.push(new Line$3({shape:getAxisLineShape(n,[b,b+y],s[x][S].coord)}));t.add(mergePath(C,{style:defaults(g.getModel("lineStyle").getLineStyle(),defaults(d.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,r,n,o,s,l,d){var g=r.getCategories(!0),y=r.getModel("axisLabel"),b=y.get("margin"),C=r.get("triggerEvent");each$f(d,function(x,S){var _=y,w=x.tickValue,$=l[getRadiusIdx(n)],I=n.coordToPoint([$+b,x.coord]),B=n.cx,R=n.cy,P=Math.abs(I[0]-B)/$<.3?"center":I[0]>B?"left":"right",M=Math.abs(I[1]-R)/$<.3?"middle":I[1]>R?"top":"bottom";if(g&&g[w]){var O=g[w];isObject$3(O)&&O.textStyle&&(_=new Model$1(O.textStyle,y,y.ecModel))}var D=new ZRText$1({silent:AxisBuilder$1.isLabelSilent(r),style:createTextStyle$1(_,{x:I[0],y:I[1],fill:_.getTextColor()||r.get(["axisLine","lineStyle","color"]),text:x.formattedLabel,align:P,verticalAlign:M})});if(t.add(D),C){var N=AxisBuilder$1.makeAxisEventDataBase(r);N.targetType="axisLabel",N.value=x.rawLabel,getECData(D).eventData=N}},this)},splitLine:function(t,r,n,o,s,l){var d=r.getModel("splitLine"),g=d.getModel("lineStyle"),y=g.get("color"),b=0;y=y instanceof Array?y:[y];for(var C=[],x=0;x<o.length;x++){var S=b++%y.length;C[S]=C[S]||[],C[S].push(new Line$3({shape:getAxisLineShape(n,l,o[x].coord)}))}for(var x=0;x<C.length;x++)t.add(mergePath(C[x],{style:defaults({stroke:y[x%y.length]},g.getLineStyle()),silent:!0,z:r.get("z")}))},minorSplitLine:function(t,r,n,o,s,l){if(!!s.length){for(var d=r.getModel("minorSplitLine"),g=d.getModel("lineStyle"),y=[],b=0;b<s.length;b++)for(var C=0;C<s[b].length;C++)y.push(new Line$3({shape:getAxisLineShape(n,l,s[b][C].coord)}));t.add(mergePath(y,{style:g.getLineStyle(),silent:!0,z:r.get("z")}))}},splitArea:function(t,r,n,o,s,l){if(!!o.length){var d=r.getModel("splitArea"),g=d.getModel("areaStyle"),y=g.get("color"),b=0;y=y instanceof Array?y:[y];for(var C=[],x=Math.PI/180,S=-o[0].coord*x,_=Math.min(l[0],l[1]),w=Math.max(l[0],l[1]),$=r.get("clockwise"),I=1,B=o.length;I<=B;I++){var R=I===B?o[0].coord:o[I].coord,P=b++%y.length;C[P]=C[P]||[],C[P].push(new Sector$1({shape:{cx:n.cx,cy:n.cy,r0:_,r:w,startAngle:S,endAngle:-R*x,clockwise:$},silent:!0})),S=-R*x}for(var I=0;I<C.length;I++)t.add(mergePath(C[I],{style:defaults({fill:y[I%y.length]},g.getAreaStyle()),silent:!0}))}}},AngleAxisView$1=AngleAxisView,axisBuilderAttrs$1=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs$1=["splitLine","splitArea","minorSplitLine"],RadiusAxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.axisPointerClass="PolarAxisPointer",n}return r.prototype.render=function(n,o){if(this.group.removeAll(),!!n.get("show")){var s=this._axisGroup,l=this._axisGroup=new Group$4;this.group.add(l);var d=n.axis,g=d.polar,y=g.getAngleAxis(),b=d.getTicksCoords(),C=d.getMinorTicksCoords(),x=y.getExtent()[0],S=d.getExtent(),_=layoutAxis(g,n,x),w=new AxisBuilder$1(n,_);each$f(axisBuilderAttrs$1,w.add,w),l.add(w.getGroup()),groupTransition(s,l,n),each$f(selfBuilderAttrs$1,function($){n.get([$,"show"])&&!d.scale.isBlank()&&axisElementBuilders$1[$](this.group,n,g,x,S,b,C)},this)}},r.type="radiusAxis",r}(AxisView$1),axisElementBuilders$1={splitLine:function(t,r,n,o,s,l){var d=r.getModel("splitLine"),g=d.getModel("lineStyle"),y=g.get("color"),b=0;y=y instanceof Array?y:[y];for(var C=[],x=0;x<l.length;x++){var S=b++%y.length;C[S]=C[S]||[],C[S].push(new Circle$1({shape:{cx:n.cx,cy:n.cy,r:Math.max(l[x].coord,0)}}))}for(var x=0;x<C.length;x++)t.add(mergePath(C[x],{style:defaults({stroke:y[x%y.length],fill:null},g.getLineStyle()),silent:!0}))},minorSplitLine:function(t,r,n,o,s,l,d){if(!!d.length){for(var g=r.getModel("minorSplitLine"),y=g.getModel("lineStyle"),b=[],C=0;C<d.length;C++)for(var x=0;x<d[C].length;x++)b.push(new Circle$1({shape:{cx:n.cx,cy:n.cy,r:d[C][x].coord}}));t.add(mergePath(b,{style:defaults({fill:null},y.getLineStyle()),silent:!0}))}},splitArea:function(t,r,n,o,s,l){if(!!l.length){var d=r.getModel("splitArea"),g=d.getModel("areaStyle"),y=g.get("color"),b=0;y=y instanceof Array?y:[y];for(var C=[],x=l[0].coord,S=1;S<l.length;S++){var _=b++%y.length;C[_]=C[_]||[],C[_].push(new Sector$1({shape:{cx:n.cx,cy:n.cy,r0:x,r:l[S].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),x=l[S].coord}for(var S=0;S<C.length;S++)t.add(mergePath(C[S],{style:defaults({fill:y[S%y.length]},g.getAreaStyle()),silent:!0}))}}};function layoutAxis(t,r,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:r.getModel("axisLabel").get("rotate"),z2:1}}var RadiusAxisView$1=RadiusAxisView;function getSeriesStackId(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function getAxisKey(t,r){return r.dim+t.model.componentIndex}function barLayoutPolar(t,r,n){var o={},s=calRadialBar(filter(r.getSeriesByType(t),function(l){return!r.isSeriesFiltered(l)&&l.coordinateSystem&&l.coordinateSystem.type==="polar"}));r.eachSeriesByType(t,function(l){if(l.coordinateSystem.type==="polar"){var d=l.getData(),g=l.coordinateSystem,y=g.getBaseAxis(),b=getAxisKey(g,y),C=getSeriesStackId(l),x=s[b][C],S=x.offset,_=x.width,w=g.getOtherAxis(y),$=l.coordinateSystem.cx,I=l.coordinateSystem.cy,B=l.get("barMinHeight")||0,R=l.get("barMinAngle")||0;o[C]=o[C]||[];for(var P=d.mapDimension(w.dim),M=d.mapDimension(y.dim),O=isDimensionStacked(d,P),D=y.dim!=="radius"||!l.get("roundCap",!0),N=w.dataToCoord(0),H=0,Q=d.count();H<Q;H++){var G=d.get(P,H),K=d.get(M,H),W=G>=0?"p":"n",j=N;O&&(o[C][K]||(o[C][K]={p:N,n:N}),j=o[C][K][W]);var Y=void 0,q=void 0,X=void 0,re=void 0;if(w.dim==="radius"){var te=w.dataToCoord(G)-N,oe=y.dataToCoord(K);Math.abs(te)<B&&(te=(te<0?-1:1)*B),Y=j,q=j+te,X=oe-S,re=X-_,O&&(o[C][K][W]=q)}else{var ae=w.dataToCoord(G,D)-N,se=y.dataToCoord(K);Math.abs(ae)<R&&(ae=(ae<0?-1:1)*R),Y=se+S,q=Y+_,X=j,re=j+ae,O&&(o[C][K][W]=re)}d.setItemLayout(H,{cx:$,cy:I,r0:Y,r:q,startAngle:-X*Math.PI/180,endAngle:-re*Math.PI/180,clockwise:X>=re})}}})}function calRadialBar(t){var r={};each$f(t,function(o,s){var l=o.getData(),d=o.coordinateSystem,g=d.getBaseAxis(),y=getAxisKey(d,g),b=g.getExtent(),C=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/l.count(),x=r[y]||{bandWidth:C,remainedWidth:C,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},S=x.stacks;r[y]=x;var _=getSeriesStackId(o);S[_]||x.autoWidthCount++,S[_]=S[_]||{width:0,maxWidth:0};var w=parsePercent(o.get("barWidth"),C),$=parsePercent(o.get("barMaxWidth"),C),I=o.get("barGap"),B=o.get("barCategoryGap");w&&!S[_].width&&(w=Math.min(x.remainedWidth,w),S[_].width=w,x.remainedWidth-=w),$&&(S[_].maxWidth=$),I!=null&&(x.gap=I),B!=null&&(x.categoryGap=B)});var n={};return each$f(r,function(o,s){n[s]={};var l=o.stacks,d=o.bandWidth,g=parsePercent(o.categoryGap,d),y=parsePercent(o.gap,1),b=o.remainedWidth,C=o.autoWidthCount,x=(b-g)/(C+(C-1)*y);x=Math.max(x,0),each$f(l,function($,I){var B=$.maxWidth;B&&B<x&&(B=Math.min(B,b),$.width&&(B=Math.min(B,$.width)),b-=B,$.width=B,C--)}),x=(b-g)/(C+(C-1)*y),x=Math.max(x,0);var S=0,_;each$f(l,function($,I){$.width||($.width=x),_=$,S+=$.width*(1+y)}),_&&(S-=_.width*y);var w=-S/2;each$f(l,function($,I){n[s][I]=n[s][I]||{offset:w,width:$.width},w+=$.width*(1+y)})}),n}var angleAxisExtraOption={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},radiusAxisExtraOption={splitNumber:5},PolarView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="polar",r}(ComponentView$1);function install$o(t){use(install$q),AxisView$1.registerAxisPointerClass("PolarAxisPointer",PolarAxisPointer$1),t.registerCoordinateSystem("polar",polarCreator$1),t.registerComponentModel(PolarModel$1),t.registerComponentView(PolarView),axisModelCreator(t,"angle",AngleAxisModel,angleAxisExtraOption),axisModelCreator(t,"radius",RadiusAxisModel,radiusAxisExtraOption),t.registerComponentView(AngleAxisView$1),t.registerComponentView(RadiusAxisView$1),t.registerLayout(curry$1(barLayoutPolar,"bar"))}function layout$1(t,r){r=r||{};var n=t.coordinateSystem,o=t.axis,s={},l=o.position,d=o.orient,g=n.getRect(),y=[g.x,g.x+g.width,g.y,g.y+g.height],b={horizontal:{top:y[2],bottom:y[3]},vertical:{left:y[0],right:y[1]}};s.position=[d==="vertical"?b.vertical[l]:y[0],d==="horizontal"?b.horizontal[l]:y[3]];var C={horizontal:0,vertical:1};s.rotation=Math.PI/2*C[d];var x={top:-1,bottom:1,right:1,left:-1};s.labelDirection=s.tickDirection=s.nameDirection=x[l],t.get(["axisTick","inside"])&&(s.tickDirection=-s.tickDirection),retrieve(r.labelInside,t.get(["axisLabel","inside"]))&&(s.labelDirection=-s.labelDirection);var S=r.rotate;return S==null&&(S=t.get(["axisLabel","rotate"])),s.labelRotation=l==="top"?-S:S,s.z2=1,s}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine"],SingleAxisView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.axisPointerClass="SingleAxisPointer",n}return r.prototype.render=function(n,o,s,l){var d=this.group;d.removeAll();var g=this._axisGroup;this._axisGroup=new Group$4;var y=layout$1(n),b=new AxisBuilder$1(n,y);each$f(axisBuilderAttrs,b.add,b),d.add(this._axisGroup),d.add(b.getGroup()),each$f(selfBuilderAttrs,function(C){n.get([C,"show"])&&axisElementBuilders[C](this,this.group,this._axisGroup,n)},this),groupTransition(g,this._axisGroup,n),t.prototype.render.call(this,n,o,s,l)},r.prototype.remove=function(){rectCoordAxisHandleRemove(this)},r.type="singleAxis",r}(AxisView$1),axisElementBuilders={splitLine:function(t,r,n,o){var s=o.axis;if(!s.scale.isBlank()){var l=o.getModel("splitLine"),d=l.getModel("lineStyle"),g=d.get("color");g=g instanceof Array?g:[g];for(var y=d.get("width"),b=o.coordinateSystem.getRect(),C=s.isHorizontal(),x=[],S=0,_=s.getTicksCoords({tickModel:l}),w=[],$=[],I=0;I<_.length;++I){var B=s.toGlobalCoord(_[I].coord);C?(w[0]=B,w[1]=b.y,$[0]=B,$[1]=b.y+b.height):(w[0]=b.x,w[1]=B,$[0]=b.x+b.width,$[1]=B);var R=new Line$3({shape:{x1:w[0],y1:w[1],x2:$[0],y2:$[1]},silent:!0});subPixelOptimizeLine(R.shape,y);var P=S++%g.length;x[P]=x[P]||[],x[P].push(R)}for(var M=d.getLineStyle(["color"]),I=0;I<x.length;++I)r.add(mergePath(x[I],{style:defaults({stroke:g[I%g.length]},M),silent:!0}))}},splitArea:function(t,r,n,o){rectCoordAxisBuildSplitArea(t,n,o,o)}},SingleAxisView$1=SingleAxisView,SingleAxisModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.getCoordSysModel=function(){return this},r.type="singleAxis",r.layoutMode="box",r.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}}},r}(ComponentModel$1);mixin(SingleAxisModel,AxisModelCommonMixin.prototype);var SingleAxisModel$1=SingleAxisModel,SingleAxis=function(t){__extends$1(r,t);function r(n,o,s,l,d){var g=t.call(this,n,o,s)||this;return g.type=l||"value",g.position=d||"bottom",g}return r.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},r.prototype.pointToData=function(n,o){return this.coordinateSystem.pointToData(n)[0]},r}(Axis$1),SingleAxis$1=SingleAxis,singleDimensions=["single"],Single=function(){function t(r,n,o){this.type="single",this.dimension="single",this.dimensions=singleDimensions,this.axisPointerEnabled=!0,this.model=r,this._init(r,n,o)}return t.prototype._init=function(r,n,o){var s=this.dimension,l=new SingleAxis$1(s,createScaleByModel$1(r),[0,0],r.get("type"),r.get("position")),d=l.type==="category";l.onBand=d&&r.get("boundaryGap"),l.inverse=r.get("inverse"),l.orient=r.get("orient"),r.axis=l,l.model=r,l.coordinateSystem=this,this._axis=l},t.prototype.update=function(r,n){r.eachSeries(function(o){if(o.coordinateSystem===this){var s=o.getData();each$f(s.mapDimensionsAll(this.dimension),function(l){this._axis.scale.unionExtentFromData(s,l)},this),niceScaleExtent(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(r,n){this._rect=getLayoutRect({left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var r=this._rect,n=this._axis,o=n.isHorizontal(),s=o?[0,r.width]:[0,r.height],l=n.inverse?1:0;n.setExtent(s[l],s[1-l]),this._updateAxisTransform(n,o?r.x:r.y)},t.prototype._updateAxisTransform=function(r,n){var o=r.getExtent(),s=o[0]+o[1],l=r.isHorizontal();r.toGlobalCoord=l?function(d){return d+n}:function(d){return s-d+n},r.toLocalCoord=l?function(d){return d-n}:function(d){return s-d+n}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(r){var n=this.getRect(),o=this.getAxis(),s=o.orient;return s==="horizontal"?o.contain(o.toLocalCoord(r[0]))&&r[1]>=n.y&&r[1]<=n.y+n.height:o.contain(o.toLocalCoord(r[1]))&&r[0]>=n.y&&r[0]<=n.y+n.height},t.prototype.pointToData=function(r){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(r[n.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(r){var n=this.getAxis(),o=this.getRect(),s=[],l=n.orient==="horizontal"?0:1;return r instanceof Array&&(r=r[0]),s[l]=n.toGlobalCoord(n.dataToCoord(+r)),s[1-l]=l===0?o.y+o.height/2:o.x+o.width/2,s},t.prototype.convertToPixel=function(r,n,o){var s=getCoordSys$1(n);return s===this?this.dataToPoint(o):null},t.prototype.convertFromPixel=function(r,n,o){var s=getCoordSys$1(n);return s===this?this.pointToData(o):null},t}();function getCoordSys$1(t){var r=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||r&&r.coordinateSystem}function create(t,r){var n=[];return t.eachComponent("singleAxis",function(o,s){var l=new Single(o,t,r);l.name="single_"+s,l.resize(o,r),o.coordinateSystem=l,n.push(l)}),t.eachSeries(function(o){if(o.get("coordinateSystem")==="singleAxis"){var s=o.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];o.coordinateSystem=s&&s.coordinateSystem}}),n}var singleCreator={create,dimensions:singleDimensions},singleCreator$1=singleCreator,XY$1=["x","y"],WH$1=["width","height"],SingleAxisPointer=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.makeElOption=function(n,o,s,l,d){var g=s.axis,y=g.coordinateSystem,b=getGlobalExtent(y,1-getPointDimIndex(g)),C=y.dataToPoint(o)[0],x=l.get("type");if(x&&x!=="none"){var S=buildElStyle(l),_=pointerShapeBuilder[x](g,C,b);_.style=S,n.graphicKey=_.type,n.pointer=_}var w=layout$1(s);buildCartesianSingleLabelElOption(o,n,w,s,l,d)},r.prototype.getHandleTransform=function(n,o,s){var l=layout$1(o,{labelInside:!1});l.labelMargin=s.get(["handle","margin"]);var d=getTransformedPosition(o.axis,n,l);return{x:d[0],y:d[1],rotation:l.rotation+(l.labelDirection<0?Math.PI:0)}},r.prototype.updateHandleTransform=function(n,o,s,l){var d=s.axis,g=d.coordinateSystem,y=getPointDimIndex(d),b=getGlobalExtent(g,y),C=[n.x,n.y];C[y]+=o[y],C[y]=Math.min(b[1],C[y]),C[y]=Math.max(b[0],C[y]);var x=getGlobalExtent(g,1-y),S=(x[1]+x[0])/2,_=[S,S];return _[y]=C[y],{x:C[0],y:C[1],rotation:n.rotation,cursorPoint:_,tooltipOption:{verticalAlign:"middle"}}},r}(BaseAxisPointer$1),pointerShapeBuilder={line:function(t,r,n){var o=makeLineShape([r,n[0]],[r,n[1]],getPointDimIndex(t));return{type:"Line",subPixelOptimize:!0,shape:o}},shadow:function(t,r,n){var o=t.getBandWidth(),s=n[1]-n[0];return{type:"Rect",shape:makeRectShape([r-o/2,n[0]],[o,s],getPointDimIndex(t))}}};function getPointDimIndex(t){return t.isHorizontal()?0:1}function getGlobalExtent(t,r){var n=t.getRect();return[n[XY$1[r]],n[XY$1[r]]+n[WH$1[r]]]}var SingleAxisPointer$1=SingleAxisPointer,SingleView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="single",r}(ComponentView$1);function install$n(t){use(install$q),AxisView$1.registerAxisPointerClass("SingleAxisPointer",SingleAxisPointer$1),t.registerComponentView(SingleView),t.registerComponentView(SingleAxisView$1),t.registerComponentModel(SingleAxisModel$1),axisModelCreator(t,"single",SingleAxisModel$1,SingleAxisModel$1.defaultOption),t.registerCoordinateSystem("single",singleCreator$1)}var CalendarModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,o,s){var l=getLayoutParams(n);t.prototype.init.apply(this,arguments),mergeAndNormalizeLayoutParams$1(n,l)},r.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),mergeAndNormalizeLayoutParams$1(this.option,n)},r.prototype.getCellSize=function(){return this.option.cellSize},r.type="calendar",r.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}},r}(ComponentModel$1);function mergeAndNormalizeLayoutParams$1(t,r){var n=t.cellSize,o;isArray$1(n)?o=n:o=t.cellSize=[n,n],o.length===1&&(o[1]=o[0]);var s=map$1([0,1],function(l){return sizeCalculable(r,l)&&(o[l]="auto"),o[l]!=null&&o[l]!=="auto"});mergeLayoutParam(t,r,{type:"box",ignoreSize:s})}var CalendarModel$1=CalendarModel,CalendarView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){var l=this.group;l.removeAll();var d=n.coordinateSystem,g=d.getRangeInfo(),y=d.getOrient(),b=o.getLocaleModel();this._renderDayRect(n,g,l),this._renderLines(n,g,y,l),this._renderYearText(n,g,y,l),this._renderMonthText(n,b,y,l),this._renderWeekText(n,b,g,y,l)},r.prototype._renderDayRect=function(n,o,s){for(var l=n.coordinateSystem,d=n.getModel("itemStyle").getItemStyle(),g=l.getCellWidth(),y=l.getCellHeight(),b=o.start.time;b<=o.end.time;b=l.getNextNDay(b,1).time){var C=l.dataToRect([b],!1).tl,x=new Rect$3({shape:{x:C[0],y:C[1],width:g,height:y},cursor:"default",style:d});s.add(x)}},r.prototype._renderLines=function(n,o,s,l){var d=this,g=n.coordinateSystem,y=n.getModel(["splitLine","lineStyle"]).getLineStyle(),b=n.get(["splitLine","show"]),C=y.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var x=o.start,S=0;x.time<=o.end.time;S++){w(x.formatedDate),S===0&&(x=g.getDateInfo(o.start.y+"-"+o.start.m));var _=x.date;_.setMonth(_.getMonth()+1),x=g.getDateInfo(_)}w(g.getNextNDay(o.end.time,1).formatedDate);function w($){d._firstDayOfMonth.push(g.getDateInfo($)),d._firstDayPoints.push(g.dataToRect([$],!1).tl);var I=d._getLinePointsOfOneWeek(n,$,s);d._tlpoints.push(I[0]),d._blpoints.push(I[I.length-1]),b&&d._drawSplitline(I,y,l)}b&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,C,s),y,l),b&&this._drawSplitline(d._getEdgesPoints(d._blpoints,C,s),y,l)},r.prototype._getEdgesPoints=function(n,o,s){var l=[n[0].slice(),n[n.length-1].slice()],d=s==="horizontal"?0:1;return l[0][d]=l[0][d]-o/2,l[1][d]=l[1][d]+o/2,l},r.prototype._drawSplitline=function(n,o,s){var l=new Polyline$3({z2:20,shape:{points:n},style:o});s.add(l)},r.prototype._getLinePointsOfOneWeek=function(n,o,s){for(var l=n.coordinateSystem,d=l.getDateInfo(o),g=[],y=0;y<7;y++){var b=l.getNextNDay(d.time,y),C=l.dataToRect([b.time],!1);g[2*b.day]=C.tl,g[2*b.day+1]=C[s==="horizontal"?"bl":"tr"]}return g},r.prototype._formatterLabel=function(n,o){return isString(n)&&n?formatTplSimple(n,o):isFunction(n)?n(o):o.nameMap},r.prototype._yearTextPositionControl=function(n,o,s,l,d){var g=o[0],y=o[1],b=["center","bottom"];l==="bottom"?(y+=d,b=["center","top"]):l==="left"?g-=d:l==="right"?(g+=d,b=["center","top"]):y-=d;var C=0;return(l==="left"||l==="right")&&(C=Math.PI/2),{rotation:C,x:g,y,style:{align:b[0],verticalAlign:b[1]}}},r.prototype._renderYearText=function(n,o,s,l){var d=n.getModel("yearLabel");if(!!d.get("show")){var g=d.get("margin"),y=d.get("position");y||(y=s!=="horizontal"?"top":"left");var b=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],C=(b[0][0]+b[1][0])/2,x=(b[0][1]+b[1][1])/2,S=s==="horizontal"?0:1,_={top:[C,b[S][1]],bottom:[C,b[1-S][1]],left:[b[1-S][0],x],right:[b[S][0],x]},w=o.start.y;+o.end.y>+o.start.y&&(w=w+"-"+o.end.y);var $=d.get("formatter"),I={start:o.start.y,end:o.end.y,nameMap:w},B=this._formatterLabel($,I),R=new ZRText$1({z2:30,style:createTextStyle$1(d,{text:B})});R.attr(this._yearTextPositionControl(R,_[y],s,y,g)),l.add(R)}},r.prototype._monthTextPositionControl=function(n,o,s,l,d){var g="left",y="top",b=n[0],C=n[1];return s==="horizontal"?(C=C+d,o&&(g="center"),l==="start"&&(y="bottom")):(b=b+d,o&&(y="middle"),l==="start"&&(g="right")),{x:b,y:C,align:g,verticalAlign:y}},r.prototype._renderMonthText=function(n,o,s,l){var d=n.getModel("monthLabel");if(!!d.get("show")){var g=d.get("nameMap"),y=d.get("margin"),b=d.get("position"),C=d.get("align"),x=[this._tlpoints,this._blpoints];(!g||isString(g))&&(g&&(o=getLocaleModel(g)||o),g=o.get(["time","monthAbbr"])||[]);var S=b==="start"?0:1,_=s==="horizontal"?0:1;y=b==="start"?-y:y;for(var w=C==="center",$=0;$<x[S].length-1;$++){var I=x[S][$].slice(),B=this._firstDayOfMonth[$];if(w){var R=this._firstDayPoints[$];I[_]=(R[_]+x[0][$+1][_])/2}var P=d.get("formatter"),M=g[+B.m-1],O={yyyy:B.y,yy:(B.y+"").slice(2),MM:B.m,M:+B.m,nameMap:M},D=this._formatterLabel(P,O),N=new ZRText$1({z2:30,style:extend(createTextStyle$1(d,{text:D}),this._monthTextPositionControl(I,w,s,b,y))});l.add(N)}}},r.prototype._weekTextPositionControl=function(n,o,s,l,d){var g="center",y="middle",b=n[0],C=n[1],x=s==="start";return o==="horizontal"?(b=b+l+(x?1:-1)*d[0]/2,g=x?"right":"left"):(C=C+l+(x?1:-1)*d[1]/2,y=x?"bottom":"top"),{x:b,y:C,align:g,verticalAlign:y}},r.prototype._renderWeekText=function(n,o,s,l,d){var g=n.getModel("dayLabel");if(!!g.get("show")){var y=n.coordinateSystem,b=g.get("position"),C=g.get("nameMap"),x=g.get("margin"),S=y.getFirstDayOfWeek();if(!C||isString(C)){C&&(o=getLocaleModel(C)||o);var _=o.get(["time","dayOfWeekShort"]);C=_||map$1(o.get(["time","dayOfWeekAbbr"]),function(O){return O[0]})}var w=y.getNextNDay(s.end.time,7-s.lweek).time,$=[y.getCellWidth(),y.getCellHeight()];x=parsePercent(x,Math.min($[1],$[0])),b==="start"&&(w=y.getNextNDay(s.start.time,-(7+s.fweek)).time,x=-x);for(var I=0;I<7;I++){var B=y.getNextNDay(w,I),R=y.dataToRect([B.time],!1).center,P=I;P=Math.abs((I+S)%7);var M=new ZRText$1({z2:30,style:extend(createTextStyle$1(g,{text:C[P]}),this._weekTextPositionControl(R,l,b,x,$))});d.add(M)}}},r.type="calendar",r}(ComponentView$1),CalendarView$1=CalendarView,PROXIMATE_ONE_DAY=864e5,Calendar=function(){function t(r,n,o){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=r}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(r){r=parseDate(r);var n=r.getFullYear(),o=r.getMonth()+1,s=o<10?"0"+o:""+o,l=r.getDate(),d=l<10?"0"+l:""+l,g=r.getDay();return g=Math.abs((g+7-this.getFirstDayOfWeek())%7),{y:n+"",m:s,d,day:g,time:r.getTime(),formatedDate:n+"-"+s+"-"+d,date:r}},t.prototype.getNextNDay=function(r,n){return n=n||0,n===0?this.getDateInfo(r):(r=new Date(this.getDateInfo(r).time),r.setDate(r.getDate()+n),this.getDateInfo(r))},t.prototype.update=function(r,n){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 o=this._rangeInfo.weeks||1,s=["width","height"],l=this._model.getCellSize().slice(),d=this._model.getBoxLayoutParams(),g=this._orient==="horizontal"?[o,7]:[7,o];each$f([0,1],function(x){C(l,x)&&(d[s[x]]=l[x]*g[x])});var y={width:n.getWidth(),height:n.getHeight()},b=this._rect=getLayoutRect(d,y);each$f([0,1],function(x){C(l,x)||(l[x]=b[s[x]]/g[x])});function C(x,S){return x[S]!=null&&x[S]!=="auto"}this._sw=l[0],this._sh=l[1]},t.prototype.dataToPoint=function(r,n){isArray$1(r)&&(r=r[0]),n==null&&(n=!0);var o=this.getDateInfo(r),s=this._rangeInfo,l=o.formatedDate;if(n&&!(o.time>=s.start.time&&o.time<s.end.time+PROXIMATE_ONE_DAY))return[NaN,NaN];var d=o.day,g=this._getRangeInfo([s.start.time,l]).nthWeek;return this._orient==="vertical"?[this._rect.x+d*this._sw+this._sw/2,this._rect.y+g*this._sh+this._sh/2]:[this._rect.x+g*this._sw+this._sw/2,this._rect.y+d*this._sh+this._sh/2]},t.prototype.pointToData=function(r){var n=this.pointToDate(r);return n&&n.time},t.prototype.dataToRect=function(r,n){var o=this.dataToPoint(r,n);return{contentShape:{x:o[0]-(this._sw-this._lineWidth)/2,y:o[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:o,tl:[o[0]-this._sw/2,o[1]-this._sh/2],tr:[o[0]+this._sw/2,o[1]-this._sh/2],br:[o[0]+this._sw/2,o[1]+this._sh/2],bl:[o[0]-this._sw/2,o[1]+this._sh/2]}},t.prototype.pointToDate=function(r){var n=Math.floor((r[0]-this._rect.x)/this._sw)+1,o=Math.floor((r[1]-this._rect.y)/this._sh)+1,s=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(o,n-1,s):this._getDateByWeeksAndDay(n,o-1,s)},t.prototype.convertToPixel=function(r,n,o){var s=getCoordSys(n);return s===this?s.dataToPoint(o):null},t.prototype.convertFromPixel=function(r,n,o){var s=getCoordSys(n);return s===this?s.pointToData(o):null},t.prototype.containPoint=function(r){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var r=this._model.get("range"),n;if(isArray$1(r)&&r.length===1&&(r=r[0]),isArray$1(r))n=r;else{var o=r.toString();if(/^\d{4}$/.test(o)&&(n=[o+"-01-01",o+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(o)){var s=this.getDateInfo(o),l=s.date;l.setMonth(l.getMonth()+1);var d=this.getNextNDay(l,-1);n=[s.formatedDate,d.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(o)&&(n=[o,o])}if(!n)return r;var g=this._getRangeInfo(n);return g.start.time>g.end.time&&n.reverse(),n},t.prototype._getRangeInfo=function(r){var n=[this.getDateInfo(r[0]),this.getDateInfo(r[1])],o;n[0].time>n[1].time&&(o=!0,n.reverse());var s=Math.floor(n[1].time/PROXIMATE_ONE_DAY)-Math.floor(n[0].time/PROXIMATE_ONE_DAY)+1,l=new Date(n[0].time),d=l.getDate(),g=n[1].date.getDate();l.setDate(d+s-1);var y=l.getDate();if(y!==g)for(var b=l.getTime()-n[1].time>0?1:-1;(y=l.getDate())!==g&&(l.getTime()-n[1].time)*b>0;)s-=b,l.setDate(y-b);var C=Math.floor((s+n[0].day+6)/7),x=o?-C+1:C-1;return o&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:s,weeks:C,nthWeek:x,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(r,n,o){var s=this._getRangeInfo(o);if(r>s.weeks||r===0&&n<s.fweek||r===s.weeks&&n>s.lweek)return null;var l=(r-1)*7-s.fweek+n,d=new Date(s.start.time);return d.setDate(+s.start.d+l),this.getDateInfo(d)},t.create=function(r,n){var o=[];return r.eachComponent("calendar",function(s){var l=new t(s);o.push(l),s.coordinateSystem=l}),r.eachSeries(function(s){s.get("coordinateSystem")==="calendar"&&(s.coordinateSystem=o[s.get("calendarIndex")||0])}),o},t.dimensions=["time","value"],t}();function getCoordSys(t){var r=t.calendarModel,n=t.seriesModel,o=r?r.coordinateSystem:n?n.coordinateSystem:null;return o}var Calendar$1=Calendar;function install$m(t){t.registerComponentModel(CalendarModel$1),t.registerComponentView(CalendarView$1),t.registerCoordinateSystem("calendar",Calendar$1)}function setKeyInfoToNewElOption(t,r){var n=t.existing;if(r.id=t.keyInfo.id,!r.type&&n&&(r.type=n.type),r.parentId==null){var o=r.parentOption;o?r.parentId=o.id:n&&(r.parentId=n.parentId)}r.parentOption=null}function isSetLoc(t,r){var n;return each$f(r,function(o){t[o]!=null&&t[o]!=="auto"&&(n=!0)}),n}function mergeNewElOptionToExist(t,r,n){var o=extend({},n),s=t[r],l=n.$action||"merge";l==="merge"?s?(merge(s,o,!0),mergeLayoutParam(s,o,{ignoreSize:!0}),copyLayoutParams(n,s),copyTransitionInfo(n,s),copyTransitionInfo(n,s,"shape"),copyTransitionInfo(n,s,"style"),copyTransitionInfo(n,s,"extra"),n.clipPath=s.clipPath):t[r]=o:l==="replace"?t[r]=o:l==="remove"&&s&&(t[r]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo(t,r,n){if(n&&(!t[n]&&r[n]&&(t[n]={}),t=t[n],r=r[n]),!(!t||!r))for(var o=n?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,s=0;s<o.length;s++){var l=o[s];t[l]==null&&r[l]!=null&&(t[l]=r[l])}}function setLayoutInfoToExist(t,r){if(!!t&&(t.hv=r.hv=[isSetLoc(r,["left","right"]),isSetLoc(r,["top","bottom"])],t.type==="group")){var n=t,o=r;n.width==null&&(n.width=o.width=0),n.height==null&&(n.height=o.height=0)}}var GraphicComponentModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.preventAutoZ=!0,n}return r.prototype.mergeOption=function(n,o){var s=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,o),this.option.elements=s},r.prototype.optionUpdated=function(n,o){var s=this.option,l=(o?s:n).elements,d=s.elements=o?[]:s.elements,g=[];this._flatten(l,g,null);var y=mappingToExists(d,g,"normalMerge"),b=this._elOptionsToUpdate=[];each$f(y,function(C,x){var S=C.newOption;!S||(b.push(S),setKeyInfoToNewElOption(C,S),mergeNewElOptionToExist(d,x,S),setLayoutInfoToExist(d[x],S))},this),s.elements=filter(d,function(C){return C&&delete C.$action,C!=null})},r.prototype._flatten=function(n,o,s){each$f(n,function(l){if(!!l){s&&(l.parentOption=s),o.push(l);var d=l.children;d&&d.length&&this._flatten(d,o,l),delete l.children}},this)},r.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},r.type="graphic",r.defaultOption={elements:[]},r}(ComponentModel$1),nonShapeGraphicElements={path:null,compoundPath:null,group:Group$4,image:ZRImage$1,text:ZRText$1},inner$7=makeInner(),GraphicComponentView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(){this._elMap=createHashMap()},r.prototype.render=function(n,o,s){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,s)},r.prototype._updateElements=function(n){var o=n.useElOptionsToUpdate();if(!!o){var s=this._elMap,l=this.group,d=n.get("z"),g=n.get("zlevel");each$f(o,function(y){var b=convertOptionIdName(y.id,null),C=b!=null?s.get(b):null,x=convertOptionIdName(y.parentId,null),S=x!=null?s.get(x):l,_=y.type,w=y.style;_==="text"&&w&&y.hv&&y.hv[1]&&(w.textVerticalAlign=w.textBaseline=w.verticalAlign=w.align=null);var $=y.textContent,I=y.textConfig;if(w&&isEC4CompatibleStyle(w,_,!!I,!!$)){var B=convertFromEC4CompatibleStyle(w,_,!0);!I&&B.textConfig&&(I=y.textConfig=B.textConfig),!$&&B.textContent&&($=B.textContent)}var R=getCleanedElOption(y),P=y.$action||"merge",M=P==="merge",O=P==="replace";if(M){var D=!C,N=C;D?N=createEl(b,S,y.type,s):(N&&(inner$7(N).isNew=!1),stopPreviousKeyframeAnimationAndRestore(N)),N&&(applyUpdateTransition(N,R,n,{isInit:D}),updateCommonAttrs(N,y,d,g))}else if(O){removeEl$1(C,y,s,n);var H=createEl(b,S,y.type,s);H&&(applyUpdateTransition(H,R,n,{isInit:!0}),updateCommonAttrs(H,y,d,g))}else P==="remove"&&(updateLeaveTo(C,y),removeEl$1(C,y,s,n));var Q=s.get(b);if(Q&&$)if(M){var G=Q.getTextContent();G?G.attr($):Q.setTextContent(new ZRText$1($))}else O&&Q.setTextContent(new ZRText$1($));if(Q){var K=y.clipPath;if(K){var W=K.type,j=void 0,D=!1;if(M){var Y=Q.getClipPath();D=!Y||inner$7(Y).type!==W,j=D?newEl(W):Y}else O&&(D=!0,j=newEl(W));Q.setClipPath(j),applyUpdateTransition(j,K,n,{isInit:D}),applyKeyframeAnimation(j,K.keyframeAnimation,n)}var q=inner$7(Q);Q.setTextConfig(I),q.option=y,setEventData(Q,n,y),setTooltipConfig({el:Q,componentModel:n,itemName:Q.name,itemTooltipOption:y.tooltip}),applyKeyframeAnimation(Q,y.keyframeAnimation,n)}})}},r.prototype._relocate=function(n,o){for(var s=n.option.elements,l=this.group,d=this._elMap,g=o.getWidth(),y=o.getHeight(),b=["x","y"],C=0;C<s.length;C++){var x=s[C],S=convertOptionIdName(x.id,null),_=S!=null?d.get(S):null;if(!(!_||!_.isGroup)){var w=_.parent,$=w===l,I=inner$7(_),B=inner$7(w);I.width=parsePercent(I.option.width,$?g:B.width)||0,I.height=parsePercent(I.option.height,$?y:B.height)||0}}for(var C=s.length-1;C>=0;C--){var x=s[C],S=convertOptionIdName(x.id,null),_=S!=null?d.get(S):null;if(!!_){var w=_.parent,B=inner$7(w),R=w===l?{width:g,height:y}:{width:B.width,height:B.height},P={},M=positionElement(_,x,R,null,{hv:x.hv,boundingMode:x.bounding},P);if(!inner$7(_).isNew&&M){for(var O=x.transition,D={},N=0;N<b.length;N++){var H=b[N],Q=P[H];O&&(isTransitionAll(O)||indexOf(O,H)>=0)?D[H]=Q:_[H]=Q}updateProps$1(_,D,n,0)}else _.attr(P)}}},r.prototype._clear=function(){var n=this,o=this._elMap;o.each(function(s){removeEl$1(s,inner$7(s).option,o,n._lastGraphicModel)}),this._elMap=createHashMap()},r.prototype.dispose=function(){this._clear()},r.type="graphic",r}(ComponentView$1);function newEl(t){var r=hasOwn(nonShapeGraphicElements,t)?nonShapeGraphicElements[t]:getShapeClass(t),n=new r({});return inner$7(n).type=t,n}function createEl(t,r,n,o){var s=newEl(n);return r.add(s),o.set(t,s),inner$7(s).id=t,inner$7(s).isNew=!0,s}function removeEl$1(t,r,n,o){var s=t&&t.parent;s&&(t.type==="group"&&t.traverse(function(l){removeEl$1(l,r,n,o)}),applyLeaveTransition(t,r,o),n.removeKey(inner$7(t).id))}function updateCommonAttrs(t,r,n,o){t.isGroup||each$f([["cursor",Displayable$1.prototype.cursor],["zlevel",o||0],["z",n||0],["z2",0]],function(s){var l=s[0];hasOwn(r,l)?t[l]=retrieve2(r[l],s[1]):t[l]==null&&(t[l]=s[1])}),each$f(keys(r),function(s){if(s.indexOf("on")===0){var l=r[s];t[s]=isFunction(l)?l:null}}),hasOwn(r,"draggable")&&(t.draggable=r.draggable),r.name!=null&&(t.name=r.name),r.id!=null&&(t.id=r.id)}function getCleanedElOption(t){return t=extend({},t),each$f(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(r){delete t[r]}),t}function setEventData(t,r,n){var o=getECData(t).eventData;!t.silent&&!t.ignore&&!o&&(o=getECData(t).eventData={componentType:"graphic",componentIndex:r.componentIndex,name:t.name}),o&&(o.info=n.info)}function install$l(t){t.registerComponentModel(GraphicComponentModel),t.registerComponentView(GraphicComponentView),t.registerPreprocessor(function(r){var n=r.graphic;isArray$1(n)?!n[0]||!n[0].elements?r.graphic=[{elements:n}]:r.graphic=[r.graphic[0]]:n&&!n.elements&&(r.graphic=[{elements:[n]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported(t){var r=t.get("coordinateSystem");return indexOf(SERIES_COORDS,r)>=0}function getAxisMainType(t){return t+"Axis"}function findEffectedDataZooms(t,r){var n=createHashMap(),o=[],s=createHashMap();t.eachComponent({mainType:"dataZoom",query:r},function(C){s.get(C.uid)||g(C)});var l;do l=!1,t.eachComponent("dataZoom",d);while(l);function d(C){!s.get(C.uid)&&y(C)&&(g(C),l=!0)}function g(C){s.set(C.uid,!0),o.push(C),b(C)}function y(C){var x=!1;return C.eachTargetAxis(function(S,_){var w=n.get(S);w&&w[_]&&(x=!0)}),x}function b(C){C.eachTargetAxis(function(x,S){(n.get(x)||n.set(x,[]))[S]=!0})}return o}function collectReferCoordSysModelInfo(t){var r=t.ecModel,n={infoList:[],infoMap:createHashMap()};return t.eachTargetAxis(function(o,s){var l=r.getComponent(getAxisMainType(o),s);if(!!l){var d=l.getCoordSysModel();if(!!d){var g=d.uid,y=n.infoMap.get(g);y||(y={model:d,axisModels:[]},n.infoList.push(y),n.infoMap.set(g,y)),y.axisModels.push(l)}}}),n}var DataZoomAxisInfo=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(r){this.indexMap[r]||(this.indexList.push(r),this.indexMap[r]=!0)},t}(),DataZoomModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return r.prototype.init=function(n,o,s){var l=retrieveRawOption(n);this.settledOption=l,this.mergeDefaultAndTheme(n,s),this._doInit(l)},r.prototype.mergeOption=function(n){var o=retrieveRawOption(n);merge(this.option,n,!0),merge(this.settledOption,o,!0),this._doInit(o)},r.prototype._doInit=function(n){var o=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var s=this.settledOption;each$f([["start","startValue"],["end","endValue"]],function(l,d){this._rangePropMode[d]==="value"&&(o[l[0]]=s[l[0]]=null)},this),this._resetTarget()},r.prototype._resetTarget=function(){var n=this.get("orient",!0),o=this._targetAxisInfoMap=createHashMap(),s=this._fillSpecifiedTargetAxis(o);s?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(o,this._orient)),this._noTarget=!0,o.each(function(l){l.indexList.length&&(this._noTarget=!1)},this)},r.prototype._fillSpecifiedTargetAxis=function(n){var o=!1;return each$f(DATA_ZOOM_AXIS_DIMENSIONS,function(s){var l=this.getReferringComponents(getAxisMainType(s),MULTIPLE_REFERRING);if(!!l.specified){o=!0;var d=new DataZoomAxisInfo;each$f(l.models,function(g){d.add(g.componentIndex)}),n.set(s,d)}},this),o},r.prototype._fillAutoTargetAxisByOrient=function(n,o){var s=this.ecModel,l=!0;if(l){var d=o==="vertical"?"y":"x",g=s.findComponents({mainType:d+"Axis"});y(g,d)}if(l){var g=s.findComponents({mainType:"singleAxis",filter:function(C){return C.get("orient",!0)===o}});y(g,"single")}function y(b,C){var x=b[0];if(!!x){var S=new DataZoomAxisInfo;if(S.add(x.componentIndex),n.set(C,S),l=!1,C==="x"||C==="y"){var _=x.getReferringComponents("grid",SINGLE_REFERRING).models[0];_&&each$f(b,function(w){x.componentIndex!==w.componentIndex&&_===w.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&S.add(w.componentIndex)})}}}l&&each$f(DATA_ZOOM_AXIS_DIMENSIONS,function(b){if(!!l){var C=s.findComponents({mainType:getAxisMainType(b),filter:function(S){return S.get("type",!0)==="category"}});if(C[0]){var x=new DataZoomAxisInfo;x.add(C[0].componentIndex),n.set(b,x),l=!1}}},this)},r.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(o){!n&&(n=o)},this),n==="y"?"vertical":"horizontal"},r.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},r.prototype._updateRangeUse=function(n){var o=this._rangePropMode,s=this.get("rangeMode");each$f([["start","startValue"],["end","endValue"]],function(l,d){var g=n[l[0]]!=null,y=n[l[1]]!=null;g&&!y?o[d]="percent":!g&&y?o[d]="value":s?o[d]=s[d]:g&&(o[d]="percent")})},r.prototype.noTarget=function(){return this._noTarget},r.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(o,s){n==null&&(n=this.ecModel.getComponent(getAxisMainType(o),s))},this),n},r.prototype.eachTargetAxis=function(n,o){this._targetAxisInfoMap.each(function(s,l){each$f(s.indexList,function(d){n.call(o,l,d)})})},r.prototype.getAxisProxy=function(n,o){var s=this.getAxisModel(n,o);if(s)return s.__dzAxisProxy},r.prototype.getAxisModel=function(n,o){var s=this._targetAxisInfoMap.get(n);if(s&&s.indexMap[o])return this.ecModel.getComponent(getAxisMainType(n),o)},r.prototype.setRawRange=function(n){var o=this.option,s=this.settledOption;each$f([["start","startValue"],["end","endValue"]],function(l){(n[l[0]]!=null||n[l[1]]!=null)&&(o[l[0]]=s[l[0]]=n[l[0]],o[l[1]]=s[l[1]]=n[l[1]])},this),this._updateRangeUse(n)},r.prototype.setCalculatedRange=function(n){var o=this.option;each$f(["start","startValue","end","endValue"],function(s){o[s]=n[s]})},r.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},r.prototype.getValueRange=function(n,o){if(n==null&&o==null){var s=this.findRepresentativeAxisProxy();if(s)return s.getDataValueWindow()}else return this.getAxisProxy(n,o).getDataValueWindow()},r.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var o,s=this._targetAxisInfoMap.keys(),l=0;l<s.length;l++)for(var d=s[l],g=this._targetAxisInfoMap.get(d),y=0;y<g.indexList.length;y++){var b=this.getAxisProxy(d,g.indexList[y]);if(b.hostedBy(this))return b;o||(o=b)}return o},r.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},r.prototype.getOrient=function(){return this._orient},r.type="dataZoom",r.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],r.defaultOption={z:4,filterMode:"filter",start:0,end:100},r}(ComponentModel$1);function retrieveRawOption(t){var r={};return each$f(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(r[n]=t[n])}),r}var DataZoomModel$1=DataZoomModel,SelectDataZoomModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="dataZoom.select",r}(DataZoomModel$1),SelectZoomModel=SelectDataZoomModel,DataZoomView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s,l){this.dataZoomModel=n,this.ecModel=o,this.api=s},r.type="dataZoom",r}(ComponentView$1),DataZoomView$1=DataZoomView,SelectDataZoomView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="dataZoom.select",r}(DataZoomView$1),SelectZoomView=SelectDataZoomView,each$7=each$f,asc$1=asc$2,AxisProxy=function(){function t(r,n,o,s){this._dimName=r,this._axisIndex=n,this.ecModel=s,this._dataZoomModel=o}return t.prototype.hostedBy=function(r){return this._dataZoomModel===r},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var r=[];return this.ecModel.eachSeries(function(n){if(isCoordSupported(n)){var o=getAxisMainType(this._dimName),s=n.getReferringComponents(o,SINGLE_REFERRING).models[0];s&&this._axisIndex===s.componentIndex&&r.push(n)}},this),r},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return clone$4(this._minMaxSpan)},t.prototype.calculateDataWindow=function(r){var n=this._dataExtent,o=this.getAxisModel(),s=o.axis.scale,l=this._dataZoomModel.getRangePropMode(),d=[0,100],g=[],y=[],b;each$7(["start","end"],function(S,_){var w=r[S],$=r[S+"Value"];l[_]==="percent"?(w==null&&(w=d[_]),$=s.parse(linearMap$2(w,d,n))):(b=!0,$=$==null?n[_]:s.parse($),w=linearMap$2($,n,d)),y[_]=$==null||isNaN($)?n[_]:$,g[_]=w==null||isNaN(w)?d[_]:w}),asc$1(y),asc$1(g);var C=this._minMaxSpan;b?x(y,g,n,d,!1):x(g,y,d,n,!0);function x(S,_,w,$,I){var B=I?"Span":"ValueSpan";sliderMove(0,S,w,"all",C["min"+B],C["max"+B]);for(var R=0;R<2;R++)_[R]=linearMap$2(S[R],w,$,!0),I&&(_[R]=s.parse(_[R]))}return{valueWindow:y,percentWindow:g}},t.prototype.reset=function(r){if(r===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,n),this._updateMinMaxSpan();var o=this.calculateDataWindow(r.settledOption);this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(r,n){if(r!==this._dataZoomModel)return;var o=this._dimName,s=this.getTargetSeriesModels(),l=r.get("filterMode"),d=this._valueWindow;if(l==="none")return;each$7(s,function(y){var b=y.getData(),C=b.mapDimensionsAll(o);if(!!C.length){if(l==="weakFilter"){var x=b.getStore(),S=map$1(C,function(_){return b.getDimensionIndex(_)},b);b.filterSelf(function(_){for(var w,$,I,B=0;B<C.length;B++){var R=x.get(S[B],_),P=!isNaN(R),M=R<d[0],O=R>d[1];if(P&&!M&&!O)return!0;P&&(I=!0),M&&(w=!0),O&&($=!0)}return I&&w&&$})}else each$7(C,function(_){if(l==="empty")y.setData(b=b.map(_,function($){return g($)?$:NaN}));else{var w={};w[_]=d,b.selectRange(w)}});each$7(C,function(_){b.setApproximateExtent(d,_)})}});function g(y){return y>=d[0]&&y<=d[1]}},t.prototype._updateMinMaxSpan=function(){var r=this._minMaxSpan={},n=this._dataZoomModel,o=this._dataExtent;each$7(["min","max"],function(s){var l=n.get(s+"Span"),d=n.get(s+"ValueSpan");d!=null&&(d=this.getAxisModel().axis.scale.parse(d)),d!=null?l=linearMap$2(o[0]+d,o,[0,100],!0):l!=null&&(d=linearMap$2(l,[0,100],o,!0)-o[0]),r[s+"Span"]=l,r[s+"ValueSpan"]=d},this)},t.prototype._setAxisModel=function(){var r=this.getAxisModel(),n=this._percentWindow,o=this._valueWindow;if(!!n){var s=getPixelPrecision(o,[0,500]);s=Math.min(s,20);var l=r.axis.scale.rawExtentInfo;n[0]!==0&&l.setDeterminedMinMax("min",+o[0].toFixed(s)),n[1]!==100&&l.setDeterminedMinMax("max",+o[1].toFixed(s)),l.freeze()}},t}();function calculateDataExtent(t,r,n){var o=[1/0,-1/0];each$7(n,function(d){unionAxisExtentFromData(o,d.getData(),r)});var s=t.getAxisModel(),l=ensureScaleRawExtentInfo(s.axis.scale,s,o).calculate();return[l.min,l.max]}var AxisProxy$1=AxisProxy,dataZoomProcessor={getTargetSeries:function(t){function r(s){t.eachComponent("dataZoom",function(l){l.eachTargetAxis(function(d,g){var y=t.getComponent(getAxisMainType(d),g);s(d,g,y,l)})})}r(function(s,l,d,g){d.__dzAxisProxy=null});var n=[];r(function(s,l,d,g){d.__dzAxisProxy||(d.__dzAxisProxy=new AxisProxy$1(s,l,g,t),n.push(d.__dzAxisProxy))});var o=createHashMap();return each$f(n,function(s){each$f(s.getTargetSeriesModels(),function(l){o.set(l.uid,l)})}),o},overallReset:function(t,r){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(o,s){n.getAxisProxy(o,s).reset(n)}),n.eachTargetAxis(function(o,s){n.getAxisProxy(o,s).filterData(n,r)})}),t.eachComponent("dataZoom",function(n){var o=n.findRepresentativeAxisProxy();if(o){var s=o.getDataPercentWindow(),l=o.getDataValueWindow();n.setCalculatedRange({start:s[0],end:s[1],startValue:l[0],endValue:l[1]})}})}},dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction(t){t.registerAction("dataZoom",function(r,n){var o=findEffectedDataZooms(n,r);each$f(o,function(s){s.setRawRange({start:r.start,end:r.end,startValue:r.startValue,endValue:r.endValue})})})}var installed$1=!1;function installCommon$1(t){installed$1||(installed$1=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$k(t){t.registerComponentModel(SelectZoomModel),t.registerComponentView(SelectZoomView),installCommon$1(t)}var ToolboxFeature=function(){function t(){}return t}(),features={};function registerFeature(t,r){features[t]=r}function getFeature(t){return features[t]}var ToolboxModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;each$f(this.option.feature,function(o,s){var l=getFeature(s);l&&(l.getDefaultOption&&(l.defaultOption=l.getDefaultOption(n)),merge(o,l.defaultOption))})},r.type="toolbox",r.layoutMode={type:"box",ignoreSize:!0},r.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"}},r}(ComponentModel$1),ToolboxModel$1=ToolboxModel;function layout(t,r,n){var o=r.getBoxLayoutParams(),s=r.get("padding"),l={width:n.getWidth(),height:n.getHeight()},d=getLayoutRect(o,l,s);box(r.get("orient"),t,r.get("itemGap"),d.width,d.height),positionElement(t,o,l,s)}function makeBackground(t,r){var n=normalizeCssArray(r.get("padding")),o=r.getItemStyle(["color","opacity"]);return o.fill=r.get("backgroundColor"),t=new Rect$3({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:r.get("borderRadius")},style:o,silent:!0,z2:-1}),t}var ToolboxView=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(n,o,s,l){var d=this.group;if(d.removeAll(),!n.get("show"))return;var g=+n.get("itemSize"),y=n.get("orient")==="vertical",b=n.get("feature")||{},C=this._features||(this._features={}),x=[];each$f(b,function(w,$){x.push($)}),new DataDiffer$1(this._featureNames||[],x).add(S).update(S).remove(curry$1(S,null)).execute(),this._featureNames=x;function S(w,$){var I=x[w],B=x[$],R=b[I],P=new Model$1(R,n,n.ecModel),M;if(l&&l.newTitle!=null&&l.featureName===I&&(R.title=l.newTitle),I&&!B){if(isUserFeatureName(I))M={onclick:P.option.onclick,featureName:I};else{var O=getFeature(I);if(!O)return;M=new O}C[I]=M}else if(M=C[B],!M)return;M.uid=getUID("toolbox-feature"),M.model=P,M.ecModel=o,M.api=s;var D=M instanceof ToolboxFeature;if(!I&&B){D&&M.dispose&&M.dispose(o,s);return}if(!P.get("show")||D&&M.unusable){D&&M.remove&&M.remove(o,s);return}_(P,M,I),P.setIconStatus=function(N,H){var Q=this.option,G=this.iconPaths;Q.iconStatus=Q.iconStatus||{},Q.iconStatus[N]=H,G[N]&&(H==="emphasis"?enterEmphasis:leaveEmphasis)(G[N])},M instanceof ToolboxFeature&&M.render&&M.render(P,o,s,l)}function _(w,$,I){var B=w.getModel("iconStyle"),R=w.getModel(["emphasis","iconStyle"]),P=$ instanceof ToolboxFeature&&$.getIcons?$.getIcons():w.get("icon"),M=w.get("title")||{},O,D;isString(P)?(O={},O[I]=P):O=P,isString(M)?(D={},D[I]=M):D=M;var N=w.iconPaths={};each$f(O,function(H,Q){var G=createIcon(H,{},{x:-g/2,y:-g/2,width:g,height:g});G.setStyle(B.getItemStyle());var K=G.ensureState("emphasis");K.style=R.getItemStyle();var W=new ZRText$1({style:{text:D[Q],align:R.get("textAlign"),borderRadius:R.get("textBorderRadius"),padding:R.get("textPadding"),fill:null},ignore:!0});G.setTextContent(W),setTooltipConfig({el:G,componentModel:n,itemName:Q,formatterParamsExtra:{title:D[Q]}}),G.__title=D[Q],G.on("mouseover",function(){var j=R.getItemStyle(),Y=y?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";W.setStyle({fill:R.get("textFill")||j.fill||j.stroke||"#000",backgroundColor:R.get("textBackgroundColor")}),G.setTextConfig({position:R.get("textPosition")||Y}),W.ignore=!n.get("showTitle"),s.enterEmphasis(this)}).on("mouseout",function(){w.get(["iconStatus",Q])!=="emphasis"&&s.leaveEmphasis(this),W.hide()}),(w.get(["iconStatus",Q])==="emphasis"?enterEmphasis:leaveEmphasis)(G),d.add(G),G.on("click",bind$1($.onclick,$,o,s,Q)),N[Q]=G})}layout(d,n,s),d.add(makeBackground(d.getBoundingRect(),n)),y||d.eachChild(function(w){var $=w.__title,I=w.ensureState("emphasis"),B=I.textConfig||(I.textConfig={}),R=w.getTextContent(),P=R&&R.ensureState("emphasis");if(P&&!isFunction(P)&&$){var M=P.style||(P.style={}),O=getBoundingRect($,ZRText$1.makeFont(M)),D=w.x+d.x,N=w.y+d.y+g,H=!1;N+O.height>s.getHeight()&&(B.position="top",H=!0);var Q=H?-5-O.height:g+10;D+O.width/2>s.getWidth()?(B.position=["100%",Q],M.align="right"):D-O.width/2<0&&(B.position=[0,Q],M.align="left")}})},r.prototype.updateView=function(n,o,s,l){each$f(this._features,function(d){d instanceof ToolboxFeature&&d.updateView&&d.updateView(d.model,o,s,l)})},r.prototype.remove=function(n,o){each$f(this._features,function(s){s instanceof ToolboxFeature&&s.remove&&s.remove(n,o)}),this.group.removeAll()},r.prototype.dispose=function(n,o){each$f(this._features,function(s){s instanceof ToolboxFeature&&s.dispose&&s.dispose(n,o)})},r.type="toolbox",r}(ComponentView$1);function isUserFeatureName(t){return t.indexOf("my")===0}var ToolboxView$1=ToolboxView,SaveAsImage=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.onclick=function(n,o){var s=this.model,l=s.get("name")||n.get("title.0.text")||"echarts",d=o.getZr().painter.getType()==="svg",g=d?"svg":s.get("type",!0)||"png",y=o.getConnectedDataURL({type:g,backgroundColor:s.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:s.get("connectedBackgroundColor"),excludeComponents:s.get("excludeComponents"),pixelRatio:s.get("pixelRatio")}),b=env$1.browser;if(isFunction(MouseEvent)&&(b.newEdge||!b.ie&&!b.edge)){var C=document.createElement("a");C.download=l+"."+g,C.target="_blank",C.href=y;var x=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});C.dispatchEvent(x)}else if(window.navigator.msSaveOrOpenBlob||d){var S=y.split(","),_=S[0].indexOf("base64")>-1,w=d?decodeURIComponent(S[1]):S[1];_&&(w=window.atob(w));var $=l+"."+g;if(window.navigator.msSaveOrOpenBlob){for(var I=w.length,B=new Uint8Array(I);I--;)B[I]=w.charCodeAt(I);var R=new Blob([B]);window.navigator.msSaveOrOpenBlob(R,$)}else{var P=document.createElement("iframe");document.body.appendChild(P);var M=P.contentWindow,O=M.document;O.open("image/svg+xml","replace"),O.write(w),O.close(),M.focus(),O.execCommand("SaveAs",!0,$),document.body.removeChild(P)}}else{var D=s.get("lang"),N='<body style="margin:0;"><img src="'+y+'" style="max-width:100%;" title="'+(D&&D[0]||"")+'" /></body>',H=window.open();H.document.write(N),H.document.title=l}},r.getDefaultOption=function(n){var o={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:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return o},r}(ToolboxFeature),SaveAsImage$1=SaveAsImage,INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getIcons=function(){var n=this.model,o=n.get("icon"),s={};return each$f(n.get("type"),function(l){o[l]&&(s[l]=o[l])}),s},r.getDefaultOption=function(n){var o={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:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return o},r.prototype.onclick=function(n,o,s){var l=this.model,d=l.get(["seriesIndex",s]);if(!!seriesOptGenreator[s]){var g={series:[]},y=function(x){var S=x.subType,_=x.id,w=seriesOptGenreator[s](S,_,x,l);w&&(defaults(w,x.option),g.series.push(w));var $=x.coordinateSystem;if($&&$.type==="cartesian2d"&&(s==="line"||s==="bar")){var I=$.getAxesByScale("ordinal")[0];if(I){var B=I.dim,R=B+"Axis",P=x.getReferringComponents(R,SINGLE_REFERRING).models[0],M=P.componentIndex;g[R]=g[R]||[];for(var O=0;O<=M;O++)g[R][M]=g[R][M]||{};g[R][M].boundaryGap=s==="bar"}}};each$f(radioTypes,function(x){indexOf(x,s)>=0&&each$f(x,function(S){l.setIconStatus(S,"normal")})}),l.setIconStatus(s,"emphasis"),n.eachComponent({mainType:"series",query:d==null?null:{seriesIndex:d}},y);var b,C=s;s==="stack"&&(b=merge({stack:l.option.title.tiled,tiled:l.option.title.stack},l.option.title),l.get(["iconStatus",s])!=="emphasis"&&(C="tiled")),o.dispatchAction({type:"changeMagicType",currentType:C,newOption:g,newTitle:b,featureName:"magicType"})}},r}(ToolboxFeature),seriesOptGenreator={line:function(t,r,n,o){if(t==="bar")return merge({id:r,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get(["option","line"])||{},!0)},bar:function(t,r,n,o){if(t==="line")return merge({id:r,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},o.get(["option","bar"])||{},!0)},stack:function(t,r,n,o){var s=n.get("stack")===INNER_STACK_KEYWORD;if(t==="line"||t==="bar")return o.setIconStatus("stack",s?"normal":"emphasis"),merge({id:r,stack:s?"":INNER_STACK_KEYWORD},o.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,r){r.mergeOption(t.newOption)});var MagicType$1=MagicType,BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries(t){var r={},n=[],o=[];return t.eachRawSeries(function(s){var l=s.coordinateSystem;if(l&&(l.type==="cartesian2d"||l.type==="polar")){var d=l.getBaseAxis();if(d.type==="category"){var g=d.dim+"_"+d.index;r[g]||(r[g]={categoryAxis:d,valueAxis:l.getOtherAxis(d),series:[]},o.push({axisDim:d.dim,axisIndex:d.index})),r[g].series.push(s)}else n.push(s)}else n.push(s)}),{seriesGroupByCategoryAxis:r,other:n,meta:o}}function assembleSeriesWithCategoryAxis(t){var r=[];return each$f(t,function(n,o){var s=n.categoryAxis,l=n.valueAxis,d=l.dim,g=[" "].concat(map$1(n.series,function(_){return _.name})),y=[s.model.getCategories()];each$f(n.series,function(_){var w=_.getRawData();y.push(_.getRawData().mapArray(w.mapDimension(d),function($){return $}))});for(var b=[g.join(ITEM_SPLITER)],C=0;C<y[0].length;C++){for(var x=[],S=0;S<y.length;S++)x.push(y[S][C]);b.push(x.join(ITEM_SPLITER))}r.push(b.join(`
|
|
`))}),r.join(`
|
|
|
|
`+BLOCK_SPLITER+`
|
|
|
|
`)}function assembleOtherSeries(t){return map$1(t,function(r){var n=r.getRawData(),o=[r.name],s=[];return n.each(n.dimensions,function(){for(var l=arguments.length,d=arguments[l-1],g=n.getName(d),y=0;y<l-1;y++)s[y]=arguments[y];o.push((g?g+ITEM_SPLITER:"")+s.join(ITEM_SPLITER))}),o.join(`
|
|
`)}).join(`
|
|
|
|
`+BLOCK_SPLITER+`
|
|
|
|
`)}function getContentFromModel(t){var r=groupSeries(t);return{value:filter([assembleSeriesWithCategoryAxis(r.seriesGroupByCategoryAxis),assembleOtherSeries(r.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
|
|
|
|
`+BLOCK_SPLITER+`
|
|
|
|
`),meta:r.meta}}function trim(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function isTSVFormat(t){var r=t.slice(0,t.indexOf(`
|
|
`));if(r.indexOf(ITEM_SPLITER)>=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents(t){for(var r=t.split(/\n+/g),n=trim(r.shift()).split(itemSplitRegex),o=[],s=map$1(n,function(y){return{name:y,data:[]}}),l=0;l<r.length;l++){var d=trim(r[l]).split(itemSplitRegex);o.push(d.shift());for(var g=0;g<d.length;g++)s[g]&&(s[g].data[l]=d[g])}return{series:s,categories:o}}function parseListContents(t){for(var r=t.split(/\n+/g),n=trim(r.shift()),o=[],s=0;s<r.length;s++){var l=trim(r[s]);if(!!l){var d=l.split(itemSplitRegex),g="",y=void 0,b=!1;isNaN(d[0])?(b=!0,g=d[0],d=d.slice(1),o[s]={name:g,value:[]},y=o[s].value):y=o[s]=[];for(var C=0;C<d.length;C++)y.push(+d[C]);y.length===1&&(b?o[s].value=y[0]:o[s]=y[0])}}return{name:n,data:o}}function parseContents(t,r){var n=t.split(new RegExp(`
|
|
*`+BLOCK_SPLITER+`
|
|
*`,"g")),o={series:[]};return each$f(n,function(s,l){if(isTSVFormat(s)){var d=parseTSVContents(s),g=r[l],y=g.axisDim+"Axis";g&&(o[y]=o[y]||[],o[y][g.axisIndex]={data:d.categories},o.series=o.series.concat(d.series))}else{var d=parseListContents(s);o.series.push(d)}}),o}var DataView=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.onclick=function(n,o){setTimeout(function(){o.dispatchAction({type:"hideTip"})});var s=o.getDom(),l=this.model;this._dom&&s.removeChild(this._dom);var d=document.createElement("div");d.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",d.style.backgroundColor=l.get("backgroundColor")||"#fff";var g=document.createElement("h4"),y=l.get("lang")||[];g.innerHTML=y[0]||l.get("title"),g.style.cssText="margin:10px 20px",g.style.color=l.get("textColor");var b=document.createElement("div"),C=document.createElement("textarea");b.style.cssText="overflow:auto";var x=l.get("optionToContent"),S=l.get("contentToOption"),_=getContentFromModel(n);if(isFunction(x)){var w=x(o.getOption());isString(w)?b.innerHTML=w:isDom(w)&&b.appendChild(w)}else{C.readOnly=l.get("readOnly");var $=C.style;$.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",$.color=l.get("textColor"),$.borderColor=l.get("textareaBorderColor"),$.backgroundColor=l.get("textareaColor"),C.value=_.value,b.appendChild(C)}var I=_.meta,B=document.createElement("div");B.style.cssText="position:absolute;bottom:5px;left:0;right:0";var R="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",P=document.createElement("div"),M=document.createElement("div");R+=";background-color:"+l.get("buttonColor"),R+=";color:"+l.get("buttonTextColor");var O=this;function D(){s.removeChild(d),O._dom=null}addEventListener(P,"click",D),addEventListener(M,"click",function(){if(S==null&&x!=null||S!=null&&x==null){D();return}var N;try{isFunction(S)?N=S(b,o.getOption()):N=parseContents(C.value,I)}catch(H){throw D(),new Error("Data view format error "+H)}N&&o.dispatchAction({type:"changeDataView",newOption:N}),D()}),P.innerHTML=y[1],M.innerHTML=y[2],M.style.cssText=P.style.cssText=R,!l.get("readOnly")&&B.appendChild(M),B.appendChild(P),d.appendChild(g),d.appendChild(b),d.appendChild(B),b.style.height=s.clientHeight-80+"px",s.appendChild(d),this._dom=d},r.prototype.remove=function(n,o){this._dom&&o.getDom().removeChild(this._dom)},r.prototype.dispose=function(n,o){this.remove(n,o)},r.getDefaultOption=function(n){var o={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:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return o},r}(ToolboxFeature);function tryMergeDataOption(t,r){return map$1(t,function(n,o){var s=r&&r[o];if(isObject$3(s)&&!isArray$1(s)){var l=isObject$3(n)&&!isArray$1(n);l||(n={value:n});var d=s.name!=null&&n.name==null;return n=defaults(n,s),d&&delete n.name,n}else return n})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,r){var n=[];each$f(t.newOption.series,function(o){var s=r.getSeriesByName(o.name)[0];if(!s)n.push(extend({type:"scatter"},o));else{var l=s.get("data");n.push({name:o.name,data:tryMergeDataOption(o.data,l)})}}),r.mergeOption(defaults({series:n},t.newOption))});var DataView$1=DataView,each$6=each$f,inner$6=makeInner();function push(t,r){var n=getStoreSnapshots(t);each$6(r,function(o,s){for(var l=n.length-1;l>=0;l--){var d=n[l];if(d[s])break}if(l<0){var g=t.queryComponents({mainType:"dataZoom",subType:"select",id:s})[0];if(g){var y=g.getPercentRange();n[0][s]={dataZoomId:s,start:y[0],end:y[1]}}}}),n.push(r)}function pop(t){var r=getStoreSnapshots(t),n=r[r.length-1];r.length>1&&r.pop();var o={};return each$6(n,function(s,l){for(var d=r.length-1;d>=0;d--)if(s=r[d][l],s){o[l]=s;break}}),o}function clear(t){inner$6(t).snapshots=null}function count(t){return getStoreSnapshots(t).length}function getStoreSnapshots(t){var r=inner$6(t);return r.snapshots||(r.snapshots=[{}]),r.snapshots}var RestoreOption=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.onclick=function(n,o){clear(n),o.dispatchAction({type:"restore",from:this.uid})},r.getDefaultOption=function(n){var o={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:n.getLocaleModel().get(["toolbox","restore","title"])};return o},r}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,r){r.resetOption("recreate")});var Restore=RestoreOption,INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function t(r,n,o){var s=this;this._targetInfoList=[];var l=parseFinder(n,r);each$f(targetInfoBuilders,function(d,g){(!o||!o.include||indexOf(o.include,g)>=0)&&d(l,s._targetInfoList)})}return t.prototype.setOutputRanges=function(r,n){return this.matchOutputRanges(r,n,function(o,s,l){if((o.coordRanges||(o.coordRanges=[])).push(s),!o.coordRange){o.coordRange=s;var d=coordConvert[o.brushType](0,l,s);o.__rangeOffset={offset:diffProcessor[o.brushType](d.values,o.range,[1,1]),xyMinMax:d.xyMinMax}}}),r},t.prototype.matchOutputRanges=function(r,n,o){each$f(r,function(s){var l=this.findTargetInfo(s,n);l&&l!==!0&&each$f(l.coordSyses,function(d){var g=coordConvert[s.brushType](1,d,s.range,!0);o(s,g.values,d,n)})},this)},t.prototype.setInputRanges=function(r,n){each$f(r,function(o){var s=this.findTargetInfo(o,n);if(o.range=o.range||[],s&&s!==!0){o.panelId=s.panelId;var l=coordConvert[o.brushType](0,s.coordSys,o.coordRange),d=o.__rangeOffset;o.range=d?diffProcessor[o.brushType](l.values,d.offset,getScales(l.xyMinMax,d.xyMinMax)):l.values}},this)},t.prototype.makePanelOpts=function(r,n){return map$1(this._targetInfoList,function(o){var s=o.getPanelRect();return{panelId:o.panelId,defaultBrushType:n?n(o):null,clipPath:makeRectPanelClipPath(s),isTargetByCursor:makeRectIsTargetByCursor(s,r,o.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(s)}})},t.prototype.controlSeries=function(r,n,o){var s=this.findTargetInfo(r,o);return s===!0||s&&indexOf(s.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(r,n){for(var o=this._targetInfoList,s=parseFinder(n,r),l=0;l<o.length;l++){var d=o[l],g=r.panelId;if(g){if(d.panelId===g)return d}else for(var y=0;y<targetInfoMatchers.length;y++)if(targetInfoMatchers[y](s,d))return d}return!0},t}();function formatMinMax(t){return t[0]>t[1]&&t.reverse(),t}function parseFinder(t,r){return parseFinder$1(t,r,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function(t,r){var n=t.xAxisModels,o=t.yAxisModels,s=t.gridModels,l=createHashMap(),d={},g={};!n&&!o&&!s||(each$f(n,function(y){var b=y.axis.grid.model;l.set(b.id,b),d[b.id]=!0}),each$f(o,function(y){var b=y.axis.grid.model;l.set(b.id,b),g[b.id]=!0}),each$f(s,function(y){l.set(y.id,y),d[y.id]=!0,g[y.id]=!0}),l.each(function(y){var b=y.coordinateSystem,C=[];each$f(b.getCartesians(),function(x,S){(indexOf(n,x.getAxis("x").model)>=0||indexOf(o,x.getAxis("y").model)>=0)&&C.push(x)}),r.push({panelId:"grid--"+y.id,gridModel:y,coordSysModel:y,coordSys:C[0],coordSyses:C,getPanelRect:panelRectBuilders.grid,xAxisDeclared:d[y.id],yAxisDeclared:g[y.id]})}))},geo:function(t,r){each$f(t.geoModels,function(n){var o=n.coordinateSystem;r.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:o,coordSyses:[o],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function(t,r){var n=t.xAxisModel,o=t.yAxisModel,s=t.gridModel;return!s&&n&&(s=n.axis.grid.model),!s&&o&&(s=o.axis.grid.model),s&&s===r.gridModel},function(t,r){var n=t.geoModel;return n&&n===r.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,r=t.getBoundingRect().clone();return r.applyTransform(getTransform$1(t)),r}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function(t,r,n,o){var s=t?r.pointToData([n[0][0],n[1][0]],o):r.dataToPoint([n[0][0],n[1][0]],o),l=t?r.pointToData([n[0][1],n[1][1]],o):r.dataToPoint([n[0][1],n[1][1]],o),d=[formatMinMax([s[0],l[0]]),formatMinMax([s[1],l[1]])];return{values:d,xyMinMax:d}},polygon:function(t,r,n,o){var s=[[1/0,-1/0],[1/0,-1/0]],l=map$1(n,function(d){var g=t?r.pointToData(d,o):r.dataToPoint(d,o);return s[0][0]=Math.min(s[0][0],g[0]),s[1][0]=Math.min(s[1][0],g[1]),s[0][1]=Math.max(s[0][1],g[0]),s[1][1]=Math.max(s[1][1],g[1]),g});return{values:l,xyMinMax:s}}};function axisConvert(t,r,n,o){var s=n.getAxis(["x","y"][t]),l=formatMinMax(map$1([0,1],function(g){return r?s.coordToData(s.toLocalCoord(o[g]),!0):s.toGlobalCoord(s.dataToCoord(o[g]))})),d=[];return d[t]=l,d[1-t]=[NaN,NaN],{values:l,xyMinMax:d}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function(t,r,n){return[[t[0][0]-n[0]*r[0][0],t[0][1]-n[0]*r[0][1]],[t[1][0]-n[1]*r[1][0],t[1][1]-n[1]*r[1][1]]]},polygon:function(t,r,n){return map$1(t,function(o,s){return[o[0]-n[0]*r[s][0],o[1]-n[1]*r[s][1]]})}};function axisDiffProcessor(t,r,n,o){return[r[0]-o[t]*n[0],r[1]-o[t]*n[1]]}function getScales(t,r){var n=getSize(t),o=getSize(r),s=[n[0]/o[0],n[1]/o[1]];return isNaN(s[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s}function getSize(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var BrushTargetManager$1=BrushTargetManager,each$5=each$f,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(n,o,s,l){this._brushController||(this._brushController=new BrushController$1(s.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(n,o,this,l,s),updateBackBtnStatus(n,o)},r.prototype.onclick=function(n,o,s){handlers[s].call(this)},r.prototype.remove=function(n,o){this._brushController&&this._brushController.unmount()},r.prototype.dispose=function(n,o){this._brushController&&this._brushController.dispose()},r.prototype._onBrush=function(n){var o=n.areas;if(!n.isEnd||!o.length)return;var s={},l=this.ecModel;this._brushController.updateCovers([]);var d=new BrushTargetManager$1(makeAxisFinder(this.model),l,{include:["grid"]});d.matchOutputRanges(o,l,function(b,C,x){if(x.type==="cartesian2d"){var S=b.brushType;S==="rect"?(g("x",x,C[0]),g("y",x,C[1])):g({lineX:"x",lineY:"y"}[S],x,C)}}),push(l,s),this._dispatchZoomAction(s);function g(b,C,x){var S=C.getAxis(b),_=S.model,w=y(b,_,l),$=w.findRepresentativeAxisProxy(_).getMinMaxSpan();($.minValueSpan!=null||$.maxValueSpan!=null)&&(x=sliderMove(0,x.slice(),S.scale.getExtent(),0,$.minValueSpan,$.maxValueSpan)),w&&(s[w.id]={dataZoomId:w.id,startValue:x[0],endValue:x[1]})}function y(b,C,x){var S;return x.eachComponent({mainType:"dataZoom",subType:"select"},function(_){var w=_.getAxisModel(b,C.componentIndex);w&&(S=_)}),S}},r.prototype._dispatchZoomAction=function(n){var o=[];each$5(n,function(s,l){o.push(clone$4(s))}),o.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:o})},r.getDefaultOption=function(n){var o={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:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return o},r}(ToolboxFeature),handlers={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder(t){var r={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return r.xAxisIndex==null&&r.xAxisId==null&&(r.xAxisIndex="all"),r.yAxisIndex==null&&r.yAxisId==null&&(r.yAxisIndex="all"),r}function updateBackBtnStatus(t,r){t.setIconStatus("back",count(r)>1?"emphasis":"normal")}function updateZoomBtnStatus(t,r,n,o,s){var l=n._isZoomActive;o&&o.type==="takeGlobalCursor"&&(l=o.key==="dataZoomSelect"?o.dataZoomSelectActive:!1),n._isZoomActive=l,t.setIconStatus("zoom",l?"emphasis":"normal");var d=new BrushTargetManager$1(makeAxisFinder(t),r,{include:["grid"]}),g=d.makePanelOpts(s,function(y){return y.xAxisDeclared&&!y.yAxisDeclared?"lineX":!y.xAxisDeclared&&y.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(g).enableBrush(l&&g.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function(t){var r=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!r||r.get(n)==null)return;var o=r.getModel(n),s=[],l=makeAxisFinder(o),d=parseFinder$1(t,l);each$5(d.xAxisModels,function(y){return g(y,"xAxis","xAxisIndex")}),each$5(d.yAxisModels,function(y){return g(y,"yAxis","yAxisIndex")});function g(y,b,C){var x=y.componentIndex,S={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+b+x};S[C]=x,s.push(S)}return s});var DataZoom=DataZoomFeature;function install$j(t){t.registerComponentModel(ToolboxModel$1),t.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$1),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use(install$k)}var TooltipModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="tooltip",r.dependencies=["axisPointer"],r.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}},r}(ComponentModel$1),TooltipModel$1=TooltipModel;function shouldTooltipConfine(t){var r=t.get("confine");return r!=null?!!r:t.get("renderMode")==="richText"}function testStyle(t){if(!!env$1.domSupported){for(var r=document.documentElement.style,n=0,o=t.length;n<o;n++)if(t[n]in r)return t[n]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix(t,r){if(!t)return r;r=toCamelCase(r,!0);var n=t.indexOf(r);return t=n===-1?r:"-"+t.slice(0,n)+"-"+r,t.toLowerCase()}function getComputedStyle$1(t,r){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?r?n[r]:n:null}var CSS_TRANSITION_VENDOR=toCSSVendorPrefix(TRANSITION_VENDOR,"transition"),CSS_TRANSFORM_VENDOR=toCSSVendorPrefix(TRANSFORM_VENDOR,"transform"),gCssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(env$1.transform3dSupported?"will-change:transform;":"");function mirrorPos(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function assembleArrow(t,r,n){if(!isString(n)||n==="inside")return"";var o=t.get("backgroundColor"),s=t.get("borderWidth");r=convertToColorString(r);var l=mirrorPos(n),d=Math.max(Math.round(s)*1.5,6),g="",y=CSS_TRANSFORM_VENDOR+":",b;indexOf(["left","right"],l)>-1?(g+="top:50%",y+="translateY(-50%) rotate("+(b=l==="left"?-225:-45)+"deg)"):(g+="left:50%",y+="translateX(-50%) rotate("+(b=l==="top"?225:45)+"deg)");var C=b*Math.PI/180,x=d+s,S=x*Math.abs(Math.cos(C))+x*Math.abs(Math.sin(C)),_=Math.round(((S-Math.SQRT2*s)/2+Math.SQRT2*s-(S-x)/2)*100)/100;g+=";"+l+":-"+_+"px";var w=r+" solid "+s+"px;",$=["position:absolute;width:"+d+"px;height:"+d+"px;z-index:-1;",g+";"+y+";","border-bottom:"+w,"border-right:"+w,"background-color:"+o+";"];return'<div style="'+$.join("")+'"></div>'}function assembleTransition(t,r){var n="cubic-bezier(0.23,1,0.32,1)",o=" "+t/2+"s "+n,s="opacity"+o+",visibility"+o;return r||(o=" "+t+"s "+n,s+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+o:",left"+o+",top"+o),CSS_TRANSITION_VENDOR+":"+s}function assembleTransform(t,r,n){var o=t.toFixed(0)+"px",s=r.toFixed(0)+"px";if(!env$1.transformSupported)return n?"top:"+s+";left:"+o+";":[["top",s],["left",o]];var l=env$1.transform3dSupported,d="translate"+(l?"3d":"")+"("+o+","+s+(l?",0":"")+")";return n?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+d+";":[["top",0],["left",0],[TRANSFORM_VENDOR,d]]}function assembleFont(t){var r=[],n=t.get("fontSize"),o=t.getTextColor();o&&r.push("color:"+o),r.push("font:"+t.getFont()),n&&r.push("line-height:"+Math.round(n*3/2)+"px");var s=t.get("textShadowColor"),l=t.get("textShadowBlur")||0,d=t.get("textShadowOffsetX")||0,g=t.get("textShadowOffsetY")||0;return s&&l&&r.push("text-shadow:"+d+"px "+g+"px "+l+"px "+s),each$f(["decoration","align"],function(y){var b=t.get(y);b&&r.push("text-"+y+":"+b)}),r.join(";")}function assembleCssText(t,r,n){var o=[],s=t.get("transitionDuration"),l=t.get("backgroundColor"),d=t.get("shadowBlur"),g=t.get("shadowColor"),y=t.get("shadowOffsetX"),b=t.get("shadowOffsetY"),C=t.getModel("textStyle"),x=getPaddingFromTooltipModel(t,"html"),S=y+"px "+b+"px "+d+"px "+g;return o.push("box-shadow:"+S),r&&s&&o.push(assembleTransition(s,n)),l&&o.push("background-color:"+l),each$f(["width","color","radius"],function(_){var w="border-"+_,$=toCamelCase(w),I=t.get($);I!=null&&o.push(w+":"+I+(_==="color"?"":"px"))}),o.push(assembleFont(C)),x!=null&&o.push("padding:"+normalizeCssArray(x).join("px ")+"px"),o.join(";")+";"}function makeStyleCoord$1(t,r,n,o,s){var l=r&&r.painter;if(n){var d=l&&l.getViewportRoot();d&&transformLocalCoord(t,d,document.body,o,s)}else{t[0]=o,t[1]=s;var g=l&&l.getViewportRootOffset();g&&(t[0]+=g.offsetLeft,t[1]+=g.offsetTop)}t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipHTMLContent=function(){function t(r,n,o){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var s=document.createElement("div");s.domBelongToZr=!0,this.el=s;var l=this._zr=n.getZr(),d=this._appendToBody=o&&o.appendToBody;makeStyleCoord$1(this._styleCoord,l,d,n.getWidth()/2,n.getHeight()/2),d?document.body.appendChild(s):r.appendChild(s),this._container=r;var g=this;s.onmouseenter=function(){g._enterable&&(clearTimeout(g._hideTimeout),g._show=!0),g._inContent=!0},s.onmousemove=function(y){if(y=y||window.event,!g._enterable){var b=l.handler,C=l.painter.getViewportRoot();normalizeEvent(C,y,!0),b.dispatch("mousemove",y)}},s.onmouseleave=function(){g._inContent=!1,g._enterable&&g._show&&g.hideLater(g._hideDelay)}}return t.prototype.update=function(r){var n=this._container,o=getComputedStyle$1(n,"position"),s=n.style;s.position!=="absolute"&&o!=="absolute"&&(s.position="relative");var l=r.get("alwaysShowContent");l&&this._moveIfResized(),this.el.className=r.get("className")||""},t.prototype.show=function(r,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var o=this.el,s=o.style,l=this._styleCoord;o.innerHTML?s.cssText=gCssText+assembleCssText(r,!this._firstShow,this._longHide)+assembleTransform(l[0],l[1],!0)+("border-color:"+convertToColorString(n)+";")+(r.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):s.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(r,n,o,s,l){var d=this.el;if(r==null){d.innerHTML="";return}var g="";if(isString(l)&&o.get("trigger")==="item"&&!shouldTooltipConfine(o)&&(g=assembleArrow(o,s,l)),isString(r))d.innerHTML=r+g;else if(r){d.innerHTML="",isArray$1(r)||(r=[r]);for(var y=0;y<r.length;y++)isDom(r[y])&&r[y].parentNode!==d&&d.appendChild(r[y]);if(g&&d.childNodes.length){var b=document.createElement("div");b.innerHTML=g,d.appendChild(b)}}},t.prototype.setEnterable=function(r){this._enterable=r},t.prototype.getSize=function(){var r=this.el;return[r.offsetWidth,r.offsetHeight]},t.prototype.moveTo=function(r,n){var o=this._styleCoord;if(makeStyleCoord$1(o,this._zr,this._appendToBody,r,n),o[0]!=null&&o[1]!=null){var s=this.el.style,l=assembleTransform(o[0],o[1]);each$f(l,function(d){s[d[0]]=d[1]})}},t.prototype._moveIfResized=function(){var r=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(r*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var r=this,n=this.el.style;n.visibility="hidden",n.opacity="0",env$1.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return r._longHide=!0},500)},t.prototype.hideLater=function(r){this._show&&!(this._inContent&&this._enterable)&&(r?(this._hideDelay=r,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),r)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},t}(),TooltipHTMLContent$1=TooltipHTMLContent,TooltipRichContent=function(){function t(r){this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._zr=r.getZr(),makeStyleCoord(this._styleCoord,this._zr,r.getWidth()/2,r.getHeight()/2)}return t.prototype.update=function(r){var n=r.get("alwaysShowContent");n&&this._moveIfResized()},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(r,n,o,s,l){var d=this;isObject$3(r)&&throwError(""),this.el&&this._zr.remove(this.el);var g=o.getModel("textStyle");this.el=new ZRText$1({style:{rich:n.richTextStyles,text:r,lineHeight:22,borderWidth:1,borderColor:s,textShadowColor:g.get("textShadowColor"),fill:o.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(o,"richText"),verticalAlign:"top",align:"left"},z:o.get("z")}),each$f(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(b){d.el.style[b]=o.get(b)}),each$f(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(b){d.el.style[b]=g.get(b)||0}),this._zr.add(this.el);var y=this;this.el.on("mouseover",function(){y._enterable&&(clearTimeout(y._hideTimeout),y._show=!0),y._inContent=!0}),this.el.on("mouseout",function(){y._enterable&&y._show&&y.hideLater(y._hideDelay),y._inContent=!1})},t.prototype.setEnterable=function(r){this._enterable=r},t.prototype.getSize=function(){var r=this.el,n=this.el.getBoundingRect(),o=calcShadowOuterSize(r.style);return[n.width+o.left+o.right,n.height+o.top+o.bottom]},t.prototype.moveTo=function(r,n){var o=this.el;if(o){var s=this._styleCoord;makeStyleCoord(s,this._zr,r,n),r=s[0],n=s[1];var l=o.style,d=mathMaxWith0(l.borderWidth||0),g=calcShadowOuterSize(l);o.x=r+d+g.left,o.y=n+d+g.top,o.markRedraw()}},t.prototype._moveIfResized=function(){var r=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(r*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(r){this._show&&!(this._inContent&&this._enterable)&&(r?(this._hideDelay=r,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),r)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function mathMaxWith0(t){return Math.max(0,t)}function calcShadowOuterSize(t){var r=mathMaxWith0(t.shadowBlur||0),n=mathMaxWith0(t.shadowOffsetX||0),o=mathMaxWith0(t.shadowOffsetY||0);return{left:mathMaxWith0(r-n),right:mathMaxWith0(r+n),top:mathMaxWith0(r-o),bottom:mathMaxWith0(r+o)}}function makeStyleCoord(t,r,n,o){t[0]=n,t[1]=o,t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipRichContent$1=TooltipRichContent,proxyRect=new Rect$3({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,o){if(!(env$1.node||!o.getDom())){var s=n.getComponent("tooltip"),l=this._renderMode=getTooltipRenderMode(s.get("renderMode"));this._tooltipContent=l==="richText"?new TooltipRichContent$1(o):new TooltipHTMLContent$1(o.getDom(),o,{appendToBody:s.get("appendToBody",!0)})}},r.prototype.render=function(n,o,s){if(!(env$1.node||!s.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=o,this._api=s,this._alwaysShowContent=n.get("alwaysShowContent");var l=this._tooltipContent;l.update(n),l.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},r.prototype._initGlobalListener=function(){var n=this._tooltipModel,o=n.get("triggerOn");register("itemTooltip",this._api,bind$1(function(s,l,d){o!=="none"&&(o.indexOf(s)>=0?this._tryShow(l,d):s==="leave"&&this._hide(d))},this))},r.prototype._keepShow=function(){var n=this._tooltipModel,o=this._ecModel,s=this._api,l=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&l!=="none"&&l!=="click"){var d=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!s.isDisposed()&&d.manuallyShowTip(n,o,s,{x:d._lastX,y:d._lastY,dataByCoordSys:d._lastDataByCoordSys})})}},r.prototype.manuallyShowTip=function(n,o,s,l){if(!(l.from===this.uid||env$1.node||!s.getDom())){var d=makeDispatchAction(l,s);this._ticket="";var g=l.dataByCoordSys,y=findComponentReference(l,o,s);if(y){var b=y.el.getBoundingRect().clone();b.applyTransform(y.el.transform),this._tryShow({offsetX:b.x+b.width/2,offsetY:b.y+b.height/2,target:y.el,position:l.position,positionDefault:"bottom"},d)}else if(l.tooltip&&l.x!=null&&l.y!=null){var C=proxyRect;C.x=l.x,C.y=l.y,C.update(),getECData(C).tooltipConfig={name:null,option:l.tooltip},this._tryShow({offsetX:l.x,offsetY:l.y,target:C},d)}else if(g)this._tryShow({offsetX:l.x,offsetY:l.y,position:l.position,dataByCoordSys:g,tooltipOption:l.tooltipOption},d);else if(l.seriesIndex!=null){if(this._manuallyAxisShowTip(n,o,s,l))return;var x=findPointFromSeries(l,o),S=x.point[0],_=x.point[1];S!=null&&_!=null&&this._tryShow({offsetX:S,offsetY:_,target:x.el,position:l.position,positionDefault:"bottom"},d)}else l.x!=null&&l.y!=null&&(s.dispatchAction({type:"updateAxisPointer",x:l.x,y:l.y}),this._tryShow({offsetX:l.x,offsetY:l.y,position:l.position,target:s.getZr().findHover(l.x,l.y).target},d))}},r.prototype.manuallyHideTip=function(n,o,s,l){var d=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&d.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,l.from!==this.uid&&this._hide(makeDispatchAction(l,s))},r.prototype._manuallyAxisShowTip=function(n,o,s,l){var d=l.seriesIndex,g=l.dataIndex,y=o.getComponent("axisPointer").coordSysAxesInfo;if(!(d==null||g==null||y==null)){var b=o.getSeriesByIndex(d);if(!!b){var C=b.getData(),x=buildTooltipModel([C.getItemModel(g),b,(b.coordinateSystem||{}).model],this._tooltipModel);if(x.get("trigger")==="axis")return s.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:g,position:l.position}),!0}}},r.prototype._tryShow=function(n,o){var s=n.target,l=this._tooltipModel;if(!!l){this._lastX=n.offsetX,this._lastY=n.offsetY;var d=n.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,n);else if(s){this._lastDataByCoordSys=null;var g,y;findEventDispatcher(s,function(b){if(getECData(b).dataIndex!=null)return g=b,!0;if(getECData(b).tooltipConfig!=null)return y=b,!0},!0),g?this._showSeriesItemTooltip(n,g,o):y?this._showComponentItemTooltip(n,y,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},r.prototype._showOrMove=function(n,o){var s=n.get("showDelay");o=bind$1(o,this),clearTimeout(this._showTimout),s>0?this._showTimout=setTimeout(o,s):o()},r.prototype._showAxisTooltip=function(n,o){var s=this._ecModel,l=this._tooltipModel,d=[o.offsetX,o.offsetY],g=buildTooltipModel([o.tooltipOption],l),y=this._renderMode,b=[],C=createTooltipMarkup("section",{blocks:[],noHeader:!0}),x=[],S=new TooltipMarkupStyleCreator;each$f(n,function(R){each$f(R.dataByAxis,function(P){var M=s.getComponent(P.axisDim+"Axis",P.axisIndex),O=P.value;if(!(!M||O==null)){var D=getValueLabel(O,M.axis,s,P.seriesDataIndices,P.valueLabelOpt),N=createTooltipMarkup("section",{header:D,noHeader:!trim$1(D),sortBlocks:!0,blocks:[]});C.blocks.push(N),each$f(P.seriesDataIndices,function(H){var Q=s.getSeriesByIndex(H.seriesIndex),G=H.dataIndexInside,K=Q.getDataParams(G);if(!(K.dataIndex<0)){K.axisDim=P.axisDim,K.axisIndex=P.axisIndex,K.axisType=P.axisType,K.axisId=P.axisId,K.axisValue=getAxisRawValue(M.axis,{value:O}),K.axisValueLabel=D,K.marker=S.makeTooltipMarker("item",convertToColorString(K.color),y);var W=normalizeTooltipFormatResult(Q.formatTooltip(G,!0,null)),j=W.frag;if(j){var Y=buildTooltipModel([Q],l).get("valueFormatter");N.blocks.push(Y?extend({valueFormatter:Y},j):j)}W.text&&x.push(W.text),b.push(K)}})}})}),C.blocks.reverse(),x.reverse();var _=o.position,w=g.get("order"),$=buildTooltipMarkup(C,S,y,w,s.get("useUTC"),g.get("textStyle"));$&&x.unshift($);var I=y==="richText"?`
|
|
|
|
`:"<br/>",B=x.join(I);this._showOrMove(g,function(){this._updateContentNotChangedOnAxis(n,b)?this._updatePosition(g,_,d[0],d[1],this._tooltipContent,b):this._showTooltipContent(g,B,b,Math.random()+"",d[0],d[1],_,null,S)})},r.prototype._showSeriesItemTooltip=function(n,o,s){var l=this._ecModel,d=getECData(o),g=d.seriesIndex,y=l.getSeriesByIndex(g),b=d.dataModel||y,C=d.dataIndex,x=d.dataType,S=b.getData(x),_=this._renderMode,w=n.positionDefault,$=buildTooltipModel([S.getItemModel(C),b,y&&(y.coordinateSystem||{}).model],this._tooltipModel,w?{position:w}:null),I=$.get("trigger");if(!(I!=null&&I!=="item")){var B=b.getDataParams(C,x),R=new TooltipMarkupStyleCreator;B.marker=R.makeTooltipMarker("item",convertToColorString(B.color),_);var P=normalizeTooltipFormatResult(b.formatTooltip(C,!1,x)),M=$.get("order"),O=$.get("valueFormatter"),D=P.frag,N=D?buildTooltipMarkup(O?extend({valueFormatter:O},D):D,R,_,M,l.get("useUTC"),$.get("textStyle")):P.text,H="item_"+b.name+"_"+C;this._showOrMove($,function(){this._showTooltipContent($,N,B,H,n.offsetX,n.offsetY,n.position,n.target,R)}),s({type:"showTip",dataIndexInside:C,dataIndex:S.getRawIndex(C),seriesIndex:g,from:this.uid})}},r.prototype._showComponentItemTooltip=function(n,o,s){var l=getECData(o),d=l.tooltipConfig,g=d.option||{};if(isString(g)){var y=g;g={content:y,formatter:y}}var b=[g],C=this._ecModel.getComponent(l.componentMainType,l.componentIndex);C&&b.push(C),b.push({formatter:g.content});var x=n.positionDefault,S=buildTooltipModel(b,this._tooltipModel,x?{position:x}:null),_=S.get("content"),w=Math.random()+"",$=new TooltipMarkupStyleCreator;this._showOrMove(S,function(){var I=clone$4(S.get("formatterParams")||{});this._showTooltipContent(S,_,I,w,n.offsetX,n.offsetY,n.position,o,$)}),s({type:"showTip",from:this.uid})},r.prototype._showTooltipContent=function(n,o,s,l,d,g,y,b,C){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var x=this._tooltipContent;x.setEnterable(n.get("enterable"));var S=n.get("formatter");y=y||n.get("position");var _=o,w=this._getNearestPoint([d,g],s,n.get("trigger"),n.get("borderColor")),$=w.color;if(S)if(isString(S)){var I=n.ecModel.get("useUTC"),B=isArray$1(s)?s[0]:s,R=B&&B.axisType&&B.axisType.indexOf("time")>=0;_=S,R&&(_=format$1(B.axisValue,_,I)),_=formatTpl(_,s,!0)}else if(isFunction(S)){var P=bind$1(function(M,O){M===this._ticket&&(x.setContent(O,C,n,$,y),this._updatePosition(n,y,d,g,x,s,b))},this);this._ticket=l,_=S(s,l,P)}else _=S;x.setContent(_,C,n,$,y),x.show(n,$),this._updatePosition(n,y,d,g,x,s,b)}},r.prototype._getNearestPoint=function(n,o,s,l){if(s==="axis"||isArray$1(o))return{color:l||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(o))return{color:l||o.color||o.borderColor}},r.prototype._updatePosition=function(n,o,s,l,d,g,y){var b=this._api.getWidth(),C=this._api.getHeight();o=o||n.get("position");var x=d.getSize(),S=n.get("align"),_=n.get("verticalAlign"),w=y&&y.getBoundingRect().clone();if(y&&w.applyTransform(y.transform),isFunction(o)&&(o=o([s,l],g,d.el,w,{viewSize:[b,C],contentSize:x.slice()})),isArray$1(o))s=parsePercent(o[0],b),l=parsePercent(o[1],C);else if(isObject$3(o)){var $=o;$.width=x[0],$.height=x[1];var I=getLayoutRect($,{width:b,height:C});s=I.x,l=I.y,S=null,_=null}else if(isString(o)&&y){var B=calcTooltipPosition(o,w,x,n.get("borderWidth"));s=B[0],l=B[1]}else{var B=refixTooltipPosition(s,l,d,b,C,S?null:20,_?null:20);s=B[0],l=B[1]}if(S&&(s-=isCenterAlign(S)?x[0]/2:S==="right"?x[0]:0),_&&(l-=isCenterAlign(_)?x[1]/2:_==="bottom"?x[1]:0),shouldTooltipConfine(n)){var B=confineTooltipPosition(s,l,d,b,C);s=B[0],l=B[1]}d.moveTo(s,l)},r.prototype._updateContentNotChangedOnAxis=function(n,o){var s=this._lastDataByCoordSys,l=this._cbParamsList,d=!!s&&s.length===n.length;return d&&each$f(s,function(g,y){var b=g.dataByAxis||[],C=n[y]||{},x=C.dataByAxis||[];d=d&&b.length===x.length,d&&each$f(b,function(S,_){var w=x[_]||{},$=S.seriesDataIndices||[],I=w.seriesDataIndices||[];d=d&&S.value===w.value&&S.axisType===w.axisType&&S.axisId===w.axisId&&$.length===I.length,d&&each$f($,function(B,R){var P=I[R];d=d&&B.seriesIndex===P.seriesIndex&&B.dataIndex===P.dataIndex}),l&&each$f(S.seriesDataIndices,function(B){var R=B.seriesIndex,P=o[R],M=l[R];P&&M&&M.data!==P.data&&(d=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=o,!!d},r.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},r.prototype.dispose=function(n,o){env$1.node||!o.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",o))},r.type="tooltip",r}(ComponentView$1);function buildTooltipModel(t,r,n){var o=r.ecModel,s;n?(s=new Model$1(n,o,o),s=new Model$1(r.option,s,o)):s=r;for(var l=t.length-1;l>=0;l--){var d=t[l];d&&(d instanceof Model$1&&(d=d.get("tooltip",!0)),isString(d)&&(d={formatter:d}),d&&(s=new Model$1(d,s,o)))}return s}function makeDispatchAction(t,r){return t.dispatchAction||bind$1(r.dispatchAction,r)}function refixTooltipPosition(t,r,n,o,s,l,d){var g=n.getSize(),y=g[0],b=g[1];return l!=null&&(t+y+l+2>o?t-=y+l:t+=l),d!=null&&(r+b+d>s?r-=b+d:r+=d),[t,r]}function confineTooltipPosition(t,r,n,o,s){var l=n.getSize(),d=l[0],g=l[1];return t=Math.min(t+d,o)-d,r=Math.min(r+g,s)-g,t=Math.max(t,0),r=Math.max(r,0),[t,r]}function calcTooltipPosition(t,r,n,o){var s=n[0],l=n[1],d=Math.ceil(Math.SQRT2*o)+8,g=0,y=0,b=r.width,C=r.height;switch(t){case"inside":g=r.x+b/2-s/2,y=r.y+C/2-l/2;break;case"top":g=r.x+b/2-s/2,y=r.y-l-d;break;case"bottom":g=r.x+b/2-s/2,y=r.y+C+d;break;case"left":g=r.x-s-d,y=r.y+C/2-l/2;break;case"right":g=r.x+b+d,y=r.y+C/2-l/2}return[g,y]}function isCenterAlign(t){return t==="center"||t==="middle"}function findComponentReference(t,r,n){var o=preParseFinder(t).queryOptionMap,s=o.keys()[0];if(!(!s||s==="series")){var l=queryReferringComponents(r,s,o.get(s),{useDefault:!1,enableAll:!1,enableNone:!1}),d=l.models[0];if(!!d){var g=n.getViewOfComponentModel(d),y;if(g.group.traverse(function(b){var C=getECData(b).tooltipConfig;if(C&&C.name===t.name)return y=b,!0}),y)return{componentMainType:s,componentIndex:d.componentIndex,el:y}}}}var TooltipView$1=TooltipView;function install$i(t){use(install$q),t.registerComponentModel(TooltipModel$1),t.registerComponentView(TooltipView$1),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var DEFAULT_TOOLBOX_BTNS=["rect","polygon","keep","clear"];function brushPreprocessor(t,r){var n=normalizeToArray(t?t.brush:[]);if(!!n.length){var o=[];each$f(n,function(y){var b=y.hasOwnProperty("toolbox")?y.toolbox:[];b instanceof Array&&(o=o.concat(b))});var s=t&&t.toolbox;isArray$1(s)&&(s=s[0]),s||(s={feature:{}},t.toolbox=[s]);var l=s.feature||(s.feature={}),d=l.brush||(l.brush={}),g=d.type||(d.type=[]);g.push.apply(g,o),removeDuplicate(g),r&&!g.length&&g.push.apply(g,DEFAULT_TOOLBOX_BTNS)}}function removeDuplicate(t){var r={};each$f(t,function(n){r[n]=1}),t.length=0,each$f(r,function(n,o){t.push(o)})}var each$4=each$f;function hasKeys(t){if(t){for(var r in t)if(t.hasOwnProperty(r))return!0}}function createVisualMappings(t,r,n){var o={};return each$4(r,function(l){var d=o[l]=s();each$4(t[l],function(g,y){if(!!VisualMapping$1.isValidType(y)){var b={type:y,visual:g};n&&n(b,l),d[y]=new VisualMapping$1(b),y==="opacity"&&(b=clone$4(b),b.type="colorAlpha",d.__hidden.__alphaForOpacity=new VisualMapping$1(b))}})}),o;function s(){var l=function(){};l.prototype.__hidden=l.prototype;var d=new l;return d}}function replaceVisualOption(t,r,n){var o;each$f(n,function(s){r.hasOwnProperty(s)&&hasKeys(r[s])&&(o=!0)}),o&&each$f(n,function(s){r.hasOwnProperty(s)&&hasKeys(r[s])?t[s]=clone$4(r[s]):delete t[s]})}function applyVisual(t,r,n,o,s,l){var d={};each$f(t,function(x){var S=VisualMapping$1.prepareVisualTypes(r[x]);d[x]=S});var g;function y(x){return getItemVisualFromData(n,g,x)}function b(x,S){setItemVisualFromData(n,g,x,S)}l==null?n.each(C):n.each([l],C);function C(x,S){g=l==null?x:S;var _=n.getRawDataItem(g);if(!(_&&_.visualMap===!1))for(var w=o.call(s,x),$=r[w],I=d[w],B=0,R=I.length;B<R;B++){var P=I[B];$[P]&&$[P].applyVisual(x,y,b)}}}function incrementalApplyVisual(t,r,n,o){var s={};return each$f(t,function(l){var d=VisualMapping$1.prepareVisualTypes(r[l]);s[l]=d}),{progress:function(d,g){var y;o!=null&&(y=g.getDimensionIndex(o));function b(O){return getItemVisualFromData(g,x,O)}function C(O,D){setItemVisualFromData(g,x,O,D)}for(var x,S=g.getStore();(x=d.next())!=null;){var _=g.getRawDataItem(x);if(!(_&&_.visualMap===!1))for(var w=o!=null?S.get(y,x):x,$=n(w),I=r[$],B=s[$],R=0,P=B.length;R<P;R++){var M=B[R];I[M]&&I[M].applyVisual(w,b,C)}}}}}function makeBrushCommonSelectorForSeries(t){var r=t.brushType,n={point:function(o){return selector[r].point(o,n,t)},rect:function(o){return selector[r].rect(o,n,t)}};return n}var selector={lineX:getLineSelectors(0),lineY:getLineSelectors(1),rect:{point:function(t,r,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,r,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,r,n){return t&&n.boundingRect.contain(t[0],t[1])&&contain(n.range,t[0],t[1])},rect:function(t,r,n){var o=n.range;if(!t||o.length<=1)return!1;var s=t.x,l=t.y,d=t.width,g=t.height,y=o[0];if(contain(o,s,l)||contain(o,s+d,l)||contain(o,s,l+g)||contain(o,s+d,l+g)||BoundingRect$1.create(t).contain(y[0],y[1])||linePolygonIntersect(s,l,s+d,l,o)||linePolygonIntersect(s,l,s,l+g,o)||linePolygonIntersect(s+d,l,s+d,l+g,o)||linePolygonIntersect(s,l+g,s+d,l+g,o))return!0}}};function getLineSelectors(t){var r=["x","y"],n=["width","height"];return{point:function(o,s,l){if(o){var d=l.range,g=o[t];return inLineRange(g,d)}},rect:function(o,s,l){if(o){var d=l.range,g=[o[r[t]],o[r[t]]+o[n[t]]];return g[1]<g[0]&&g.reverse(),inLineRange(g[0],d)||inLineRange(g[1],d)||inLineRange(d[0],g)||inLineRange(d[1],g)}}}}function inLineRange(t,r){return r[0]<=t&&t<=r[1]}var STATE_LIST=["inBrush","outOfBrush"],DISPATCH_METHOD="__ecBrushSelect",DISPATCH_FLAG="__ecInBrushSelectEvent";function layoutCovers(t){t.eachComponent({mainType:"brush"},function(r){var n=r.brushTargetManager=new BrushTargetManager$1(r.option,t);n.setInputRanges(r.areas,t)})}function brushVisual(t,r,n){var o=[],s,l;t.eachComponent({mainType:"brush"},function(d){n&&n.type==="takeGlobalCursor"&&d.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),layoutCovers(t),t.eachComponent({mainType:"brush"},function(d,g){var y={brushId:d.id,brushIndex:g,brushName:d.name,areas:clone$4(d.areas),selected:[]};o.push(y);var b=d.option,C=b.brushLink,x=[],S=[],_=[],w=!1;g||(s=b.throttleType,l=b.throttleDelay);var $=map$1(d.areas,function(O){var D=boundingRectBuilders[O.brushType],N=defaults({boundingRect:D?D(O):void 0},O);return N.selectors=makeBrushCommonSelectorForSeries(N),N}),I=createVisualMappings(d.option,STATE_LIST,function(O){O.mappingMethod="fixed"});isArray$1(C)&&each$f(C,function(O){x[O]=1});function B(O){return C==="all"||!!x[O]}function R(O){return!!O.length}t.eachSeries(function(O,D){var N=_[D]=[];O.subType==="parallel"?P(O,D):M(O,D,N)});function P(O,D){var N=O.coordinateSystem;w=w||N.hasAxisBrushed(),B(D)&&N.eachActiveState(O.getData(),function(H,Q){H==="active"&&(S[Q]=1)})}function M(O,D,N){if(!(!O.brushSelector||brushModelNotControll(d,D))&&(each$f($,function(Q){d.brushTargetManager.controlSeries(Q,O,t)&&N.push(Q),w=w||R(N)}),B(D)&&R(N))){var H=O.getData();H.each(function(Q){checkInRange(O,N,H,Q)&&(S[Q]=1)})}}t.eachSeries(function(O,D){var N={seriesId:O.id,seriesIndex:D,seriesName:O.name,dataIndex:[]};y.selected.push(N);var H=_[D],Q=O.getData(),G=B(D)?function(K){return S[K]?(N.dataIndex.push(Q.getRawIndex(K)),"inBrush"):"outOfBrush"}:function(K){return checkInRange(O,H,Q,K)?(N.dataIndex.push(Q.getRawIndex(K)),"inBrush"):"outOfBrush"};(B(D)?w:R(H))&&applyVisual(STATE_LIST,I,Q,G)})}),dispatchAction$1(r,s,l,o,n)}function dispatchAction$1(t,r,n,o,s){if(!!s){var l=t.getZr();if(!l[DISPATCH_FLAG]){l[DISPATCH_METHOD]||(l[DISPATCH_METHOD]=doDispatch);var d=createOrUpdate(l,DISPATCH_METHOD,n,r);d(t,o)}}}function doDispatch(t,r){if(!t.isDisposed()){var n=t.getZr();n[DISPATCH_FLAG]=!0,t.dispatchAction({type:"brushSelect",batch:r}),n[DISPATCH_FLAG]=!1}}function checkInRange(t,r,n,o){for(var s=0,l=r.length;s<l;s++){var d=r[s];if(t.brushSelector(o,n,d.selectors,d))return!0}}function brushModelNotControll(t,r){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(isArray$1(n)?indexOf(n,r)<0:r!==n)}var boundingRectBuilders={rect:function(t){return getBoundingRectFromMinMax(t.range)},polygon:function(t){for(var r,n=t.range,o=0,s=n.length;o<s;o++){r=r||[[1/0,-1/0],[1/0,-1/0]];var l=n[o];l[0]<r[0][0]&&(r[0][0]=l[0]),l[0]>r[0][1]&&(r[0][1]=l[0]),l[1]<r[1][0]&&(r[1][0]=l[1]),l[1]>r[1][1]&&(r[1][1]=l[1])}return r&&getBoundingRectFromMinMax(r)}};function getBoundingRectFromMinMax(t){return new BoundingRect$1(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var BrushView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,o){this.ecModel=n,this.api=o,this.model,(this._brushController=new BrushController$1(o.getZr())).on("brush",bind$1(this._onBrush,this)).mount()},r.prototype.render=function(n,o,s,l){this.model=n,this._updateController(n,o,s,l)},r.prototype.updateTransform=function(n,o,s,l){layoutCovers(o),this._updateController(n,o,s,l)},r.prototype.updateVisual=function(n,o,s,l){this.updateTransform(n,o,s,l)},r.prototype.updateView=function(n,o,s,l){this._updateController(n,o,s,l)},r.prototype._updateController=function(n,o,s,l){(!l||l.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(s)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},r.prototype.dispose=function(){this._brushController.dispose()},r.prototype._onBrush=function(n){var o=this.model.id,s=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:o,areas:clone$4(s),$from:o}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:o,areas:clone$4(s),$from:o})},r.type="brush",r}(ComponentView$1),BrushView$1=BrushView,DEFAULT_OUT_OF_BRUSH_COLOR="#ddd",BrushModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.areas=[],n.brushOption={},n}return r.prototype.optionUpdated=function(n,o){var s=this.option;!o&&replaceVisualOption(s,n,["inBrush","outOfBrush"]);var l=s.inBrush=s.inBrush||{};s.outOfBrush=s.outOfBrush||{color:DEFAULT_OUT_OF_BRUSH_COLOR},l.hasOwnProperty("liftZ")||(l.liftZ=5)},r.prototype.setAreas=function(n){!n||(this.areas=map$1(n,function(o){return generateBrushOption(this.option,o)},this))},r.prototype.setBrushOption=function(n){this.brushOption=generateBrushOption(this.option,n),this.brushType=this.brushOption.brushType},r.type="brush",r.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],r.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},r}(ComponentModel$1);function generateBrushOption(t,r){return merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Model$1(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},r,!0)}var BrushModel$1=BrushModel,ICON_TYPES=["rect","polygon","lineX","lineY","keep","clear"],BrushFeature=function(t){__extends$1(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function(n,o,s){var l,d,g;o.eachComponent({mainType:"brush"},function(y){l=y.brushType,d=y.brushOption.brushMode||"single",g=g||!!y.areas.length}),this._brushType=l,this._brushMode=d,each$f(n.get("type",!0),function(y){n.setIconStatus(y,(y==="keep"?d==="multiple":y==="clear"?g:y===l)?"emphasis":"normal")})},r.prototype.updateView=function(n,o,s){this.render(n,o,s)},r.prototype.getIcons=function(){var n=this.model,o=n.get("icon",!0),s={};return each$f(n.get("type",!0),function(l){o[l]&&(s[l]=o[l])}),s},r.prototype.onclick=function(n,o,s){var l=this._brushType,d=this._brushMode;s==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:s==="keep"?l:l===s?!1:s,brushMode:s==="keep"?d==="multiple"?"single":"multiple":d}})},r.getDefaultOption=function(n){var o={show:!0,type:ICON_TYPES.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:n.getLocaleModel().get(["toolbox","brush","title"])};return o},r}(ToolboxFeature),BrushFeature$1=BrushFeature;function install$h(t){t.registerComponentView(BrushView$1),t.registerComponentModel(BrushModel$1),t.registerPreprocessor(brushPreprocessor),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,brushVisual),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(r,n){n.eachComponent({mainType:"brush",query:r},function(o){o.setAreas(r.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},noop),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},noop),registerFeature("brush",BrushFeature$1)}var TitleModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.layoutMode={type:"box",ignoreSize:!0},n}return r.type="title",r.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"}},r}(ComponentModel$1),TitleView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.render=function(n,o,s){if(this.group.removeAll(),!!n.get("show")){var l=this.group,d=n.getModel("textStyle"),g=n.getModel("subtextStyle"),y=n.get("textAlign"),b=retrieve2(n.get("textBaseline"),n.get("textVerticalAlign")),C=new ZRText$1({style:createTextStyle$1(d,{text:n.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),x=C.getBoundingRect(),S=n.get("subtext"),_=new ZRText$1({style:createTextStyle$1(g,{text:S,fill:g.getTextColor(),y:x.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),w=n.get("link"),$=n.get("sublink"),I=n.get("triggerEvent",!0);C.silent=!w&&!I,_.silent=!$&&!I,w&&C.on("click",function(){windowOpen(w,"_"+n.get("target"))}),$&&_.on("click",function(){windowOpen($,"_"+n.get("subtarget"))}),getECData(C).eventData=getECData(_).eventData=I?{componentType:"title",componentIndex:n.componentIndex}:null,l.add(C),S&&l.add(_);var B=l.getBoundingRect(),R=n.getBoxLayoutParams();R.width=B.width,R.height=B.height;var P=getLayoutRect(R,{width:s.getWidth(),height:s.getHeight()},n.get("padding"));y||(y=n.get("left")||n.get("right"),y==="middle"&&(y="center"),y==="right"?P.x+=P.width:y==="center"&&(P.x+=P.width/2)),b||(b=n.get("top")||n.get("bottom"),b==="center"&&(b="middle"),b==="bottom"?P.y+=P.height:b==="middle"&&(P.y+=P.height/2),b=b||"top"),l.x=P.x,l.y=P.y,l.markRedraw();var M={align:y,verticalAlign:b};C.setStyle(M),_.setStyle(M),B=l.getBoundingRect();var O=P.margin,D=n.getItemStyle(["color","opacity"]);D.fill=n.get("backgroundColor");var N=new Rect$3({shape:{x:B.x-O[3],y:B.y-O[0],width:B.width+O[1]+O[3],height:B.height+O[0]+O[2],r:n.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});l.add(N)}},r.type="title",r}(ComponentView$1);function install$g(t){t.registerComponentModel(TitleModel),t.registerComponentView(TitleView)}var TimelineModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.layoutMode="box",n}return r.prototype.init=function(n,o,s){this.mergeDefaultAndTheme(n,s),this._initData()},r.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this._initData()},r.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var o=this._data.count();this.option.loop?n=(n%o+o)%o:(n>=o&&(n=o-1),n<0&&(n=0)),this.option.currentIndex=n},r.prototype.getCurrentIndex=function(){return this.option.currentIndex},r.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},r.prototype.setPlayState=function(n){this.option.autoPlay=!!n},r.prototype.getPlayState=function(){return!!this.option.autoPlay},r.prototype._initData=function(){var n=this.option,o=n.data||[],s=n.axisType,l=this._names=[],d;s==="category"?(d=[],each$f(o,function(b,C){var x=convertOptionIdName(getDataItemValue(b),""),S;isObject$3(b)?(S=clone$4(b),S.value=C):S=C,d.push(S),l.push(x)})):d=o;var g={category:"ordinal",time:"time",value:"number"}[s]||"number",y=this._data=new SeriesData$1([{name:"value",type:g}],this);y.initData(d,l)},r.prototype.getData=function(){return this._data},r.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},r.type="timeline",r.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:[]},r}(ComponentModel$1),TimelineModel$1=TimelineModel,SliderTimelineModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="timeline.slider",r.defaultOption=inheritDefaultOption(TimelineModel$1.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:[]}),r}(TimelineModel$1);mixin(SliderTimelineModel,DataFormatMixin.prototype);var SliderTimelineModel$1=SliderTimelineModel,TimelineView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="timeline",r}(ComponentView$1),TimelineView$1=TimelineView,TimelineAxis=function(t){__extends$1(r,t);function r(n,o,s,l){var d=t.call(this,n,o,s)||this;return d.type=l||"value",d}return r.prototype.getLabelModel=function(){return this.model.getModel("label")},r.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},r}(Axis$1),TimelineAxis$1=TimelineAxis,PI=Math.PI,labelDataIndexStore=makeInner(),SliderTimelineView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(n,o){this.api=o},r.prototype.render=function(n,o,s){if(this.model=n,this.api=s,this.ecModel=o,this.group.removeAll(),n.get("show",!0)){var l=this._layout(n,s),d=this._createGroup("_mainGroup"),g=this._createGroup("_labelGroup"),y=this._axis=this._createAxis(l,n);n.formatTooltip=function(b){var C=y.scale.getLabel({value:b});return createTooltipMarkup("nameValue",{noName:!0,value:C})},each$f(["AxisLine","AxisTick","Control","CurrentPointer"],function(b){this["_render"+b](l,d,y,n)},this),this._renderAxisLabel(l,g,y,n),this._position(l,n)}this._doPlayStop(),this._updateTicksStatus()},r.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},r.prototype.dispose=function(){this._clearTimer()},r.prototype._layout=function(n,o){var s=n.get(["label","position"]),l=n.get("orient"),d=getViewRect(n,o),g;s==null||s==="auto"?g=l==="horizontal"?d.y+d.height/2<o.getHeight()/2?"-":"+":d.x+d.width/2<o.getWidth()/2?"+":"-":isString(s)?g={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[l][s]:g=s;var y={horizontal:"center",vertical:g>=0||g==="+"?"left":"right"},b={horizontal:g>=0||g==="+"?"top":"bottom",vertical:"middle"},C={horizontal:0,vertical:PI/2},x=l==="vertical"?d.height:d.width,S=n.getModel("controlStyle"),_=S.get("show",!0),w=_?S.get("itemSize"):0,$=_?S.get("itemGap"):0,I=w+$,B=n.get(["label","rotate"])||0;B=B*PI/180;var R,P,M,O=S.get("position",!0),D=_&&S.get("showPlayBtn",!0),N=_&&S.get("showPrevBtn",!0),H=_&&S.get("showNextBtn",!0),Q=0,G=x;O==="left"||O==="bottom"?(D&&(R=[0,0],Q+=I),N&&(P=[Q,0],Q+=I),H&&(M=[G-w,0],G-=I)):(D&&(R=[G-w,0],G-=I),N&&(P=[0,0],Q+=I),H&&(M=[G-w,0],G-=I));var K=[Q,G];return n.get("inverse")&&K.reverse(),{viewRect:d,mainLength:x,orient:l,rotation:C[l],labelRotation:B,labelPosOpt:g,labelAlign:n.get(["label","align"])||y[l],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||b[l],playPosition:R,prevBtnPosition:P,nextBtnPosition:M,axisExtent:K,controlSize:w,controlGap:$}},r.prototype._position=function(n,o){var s=this._mainGroup,l=this._labelGroup,d=n.viewRect;if(n.orient==="vertical"){var g=create$1(),y=d.x,b=d.y+d.height;translate(g,g,[-y,-b]),rotate(g,g,-PI/2),translate(g,g,[y,b]),d=d.clone(),d.applyTransform(g)}var C=R(d),x=R(s.getBoundingRect()),S=R(l.getBoundingRect()),_=[s.x,s.y],w=[l.x,l.y];w[0]=_[0]=C[0][0];var $=n.labelPosOpt;if($==null||isString($)){var I=$==="+"?0:1;P(_,x,C,1,I),P(w,S,C,1,1-I)}else{var I=$>=0?0:1;P(_,x,C,1,I),w[1]=_[1]+$}s.setPosition(_),l.setPosition(w),s.rotation=l.rotation=n.rotation,B(s),B(l);function B(M){M.originX=C[0][0]-M.x,M.originY=C[1][0]-M.y}function R(M){return[[M.x,M.x+M.width],[M.y,M.y+M.height]]}function P(M,O,D,N,H){M[N]+=D[N][H]-O[N][H]}},r.prototype._createAxis=function(n,o){var s=o.getData(),l=o.get("axisType"),d=createScaleByModel(o,l);d.getTicks=function(){return s.mapArray(["value"],function(b){return{value:b}})};var g=s.getDataExtent("value");d.setExtent(g[0],g[1]),d.calcNiceTicks();var y=new TimelineAxis$1("value",d,n.axisExtent,l);return y.model=o,y},r.prototype._createGroup=function(n){var o=this[n]=new Group$4;return this.group.add(o),o},r.prototype._renderAxisLine=function(n,o,s,l){var d=s.getExtent();if(!!l.get(["lineStyle","show"])){var g=new Line$3({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:extend({lineCap:"round"},l.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(g);var y=this._progressLine=new Line$3({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:defaults({lineCap:"round",lineWidth:g.style.lineWidth},l.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});o.add(y)}},r.prototype._renderAxisTick=function(n,o,s,l){var d=this,g=l.getData(),y=s.scale.getTicks();this._tickSymbols=[],each$f(y,function(b){var C=s.dataToCoord(b.value),x=g.getItemModel(b.value),S=x.getModel("itemStyle"),_=x.getModel(["emphasis","itemStyle"]),w=x.getModel(["progress","itemStyle"]),$={x:C,y:0,onclick:bind$1(d._changeTimeline,d,b.value)},I=giveSymbol(x,S,o,$);I.ensureState("emphasis").style=_.getItemStyle(),I.ensureState("progress").style=w.getItemStyle(),enableHoverEmphasis(I);var B=getECData(I);x.get("tooltip")?(B.dataIndex=b.value,B.dataModel=l):B.dataIndex=B.dataModel=null,d._tickSymbols.push(I)})},r.prototype._renderAxisLabel=function(n,o,s,l){var d=this,g=s.getLabelModel();if(!!g.get("show")){var y=l.getData(),b=s.getViewLabels();this._tickLabels=[],each$f(b,function(C){var x=C.tickValue,S=y.getItemModel(x),_=S.getModel("label"),w=S.getModel(["emphasis","label"]),$=S.getModel(["progress","label"]),I=s.dataToCoord(C.tickValue),B=new ZRText$1({x:I,y:0,rotation:n.labelRotation-n.rotation,onclick:bind$1(d._changeTimeline,d,x),silent:!1,style:createTextStyle$1(_,{text:C.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});B.ensureState("emphasis").style=createTextStyle$1(w),B.ensureState("progress").style=createTextStyle$1($),o.add(B),enableHoverEmphasis(B),labelDataIndexStore(B).dataIndex=x,d._tickLabels.push(B)})}},r.prototype._renderControl=function(n,o,s,l){var d=n.controlSize,g=n.rotation,y=l.getModel("controlStyle").getItemStyle(),b=l.getModel(["emphasis","controlStyle"]).getItemStyle(),C=l.getPlayState(),x=l.get("inverse",!0);S(n.nextBtnPosition,"next",bind$1(this._changeTimeline,this,x?"-":"+")),S(n.prevBtnPosition,"prev",bind$1(this._changeTimeline,this,x?"+":"-")),S(n.playPosition,C?"stop":"play",bind$1(this._handlePlayClick,this,!C),!0);function S(_,w,$,I){if(!!_){var B=parsePercent$1(retrieve2(l.get(["controlStyle",w+"BtnSize"]),d),d),R=[0,-B/2,B,B],P=makeControlIcon(l,w+"Icon",R,{x:_[0],y:_[1],originX:d/2,originY:0,rotation:I?-g:0,rectHover:!0,style:y,onclick:$});P.ensureState("emphasis").style=b,o.add(P),enableHoverEmphasis(P)}}},r.prototype._renderCurrentPointer=function(n,o,s,l){var d=l.getData(),g=l.getCurrentIndex(),y=d.getItemModel(g).getModel("checkpointStyle"),b=this,C={onCreate:function(x){x.draggable=!0,x.drift=bind$1(b._handlePointerDrag,b),x.ondragend=bind$1(b._handlePointerDragend,b),pointerMoveTo(x,b._progressLine,g,s,l,!0)},onUpdate:function(x){pointerMoveTo(x,b._progressLine,g,s,l)}};this._currentPointer=giveSymbol(y,y,this._mainGroup,{},this._currentPointer,C)},r.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},r.prototype._handlePointerDrag=function(n,o,s){this._clearTimer(),this._pointerChangeTimeline([s.offsetX,s.offsetY])},r.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},r.prototype._pointerChangeTimeline=function(n,o){var s=this._toAxisCoord(n)[0],l=this._axis,d=asc$2(l.getExtent().slice());s>d[1]&&(s=d[1]),s<d[0]&&(s=d[0]),this._currentPointer.x=s,this._currentPointer.markRedraw();var g=this._progressLine;g&&(g.shape.x2=s,g.dirty());var y=this._findNearestTick(s),b=this.model;(o||y!==b.getCurrentIndex()&&b.get("realtime"))&&this._changeTimeline(y)},r.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var o=n.model;n._changeTimeline(o.getCurrentIndex()+(o.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},r.prototype._toAxisCoord=function(n){var o=this._mainGroup.getLocalTransform();return applyTransform(n,o,!0)},r.prototype._findNearestTick=function(n){var o=this.model.getData(),s=1/0,l,d=this._axis;return o.each(["value"],function(g,y){var b=d.dataToCoord(g),C=Math.abs(b-n);C<s&&(s=C,l=y)}),l},r.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},r.prototype._changeTimeline=function(n){var o=this.model.getCurrentIndex();n==="+"?n=o+1:n==="-"&&(n=o-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},r.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),o=this._tickSymbols,s=this._tickLabels;if(o)for(var l=0;l<o.length;l++)o&&o[l]&&o[l].toggleState("progress",l<n);if(s)for(var l=0;l<s.length;l++)s&&s[l]&&s[l].toggleState("progress",labelDataIndexStore(s[l]).dataIndex<=n)},r.type="timeline.slider",r}(TimelineView$1);function createScaleByModel(t,r){if(r=r||t.get("type"),r)switch(r){case"category":return new OrdinalScale$1({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new IntervalScale$1}}function getViewRect(t,r){return getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()},t.get("padding"))}function makeControlIcon(t,r,n,o){var s=o.style,l=createIcon(t.get(["controlStyle",r]),o||{},new BoundingRect$1(n[0],n[1],n[2],n[3]));return s&&l.setStyle(s),l}function giveSymbol(t,r,n,o,s,l){var d=r.get("color");if(s)s.setColor(d),n.add(s),l&&l.onUpdate(s);else{var g=t.get("symbol");s=createSymbol$1(g,-1,-1,2,2,d),s.setStyle("strokeNoScale",!0),n.add(s),l&&l.onCreate(s)}var y=r.getItemStyle(["color"]);s.setStyle(y),o=merge({rectHover:!0,z2:100},o,!0);var b=normalizeSymbolSize(t.get("symbolSize"));o.scaleX=b[0]/2,o.scaleY=b[1]/2;var C=normalizeSymbolOffset(t.get("symbolOffset"),b);C&&(o.x=(o.x||0)+C[0],o.y=(o.y||0)+C[1]);var x=t.get("symbolRotate");return o.rotation=(x||0)*Math.PI/180||0,s.attr(o),s.updateTransform(),s}function pointerMoveTo(t,r,n,o,s,l){if(!t.dragging){var d=s.getModel("checkpointStyle"),g=o.dataToCoord(s.getData().get("value",n));if(l||!d.get("animation",!0))t.attr({x:g,y:0}),r&&r.attr({shape:{x2:g}});else{var y={duration:d.get("animationDuration",!0),easing:d.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:g,y:0},y),r&&r.animateTo({shape:{x2:g}},y)}}}var SliderTimelineView$1=SliderTimelineView;function installTimelineAction(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(r,n,o){var s=n.getComponent("timeline");return s&&r.currentIndex!=null&&(s.setCurrentIndex(r.currentIndex),!s.get("loop",!0)&&s.isIndexMax()&&s.getPlayState()&&(s.setPlayState(!1),o.dispatchAction({type:"timelinePlayChange",playState:!1,from:r.from}))),n.resetOption("timeline",{replaceMerge:s.get("replaceMerge",!0)}),defaults({currentIndex:s.option.currentIndex},r)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(r,n){var o=n.getComponent("timeline");o&&r.playState!=null&&o.setPlayState(r.playState)})}function timelinePreprocessor(t){var r=t&&t.timeline;isArray$1(r)||(r=r?[r]:[]),each$f(r,function(n){!n||compatibleEC2(n)})}function compatibleEC2(t){var r=t.type,n={number:"value",time:"time"};if(n[r]&&(t.axisType=n[r],delete t.type),transferItem(t),has$1(t,"controlPosition")){var o=t.controlStyle||(t.controlStyle={});has$1(o,"position")||(o.position=t.controlPosition),o.position==="none"&&!has$1(o,"show")&&(o.show=!1,delete o.position),delete t.controlPosition}each$f(t.data||[],function(s){isObject$3(s)&&!isArray$1(s)&&(!has$1(s,"value")&&has$1(s,"name")&&(s.value=s.name),transferItem(s))})}function transferItem(t){var r=t.itemStyle||(t.itemStyle={}),n=r.emphasis||(r.emphasis={}),o=t.label||t.label||{},s=o.normal||(o.normal={}),l={normal:1,emphasis:1};each$f(o,function(d,g){!l[g]&&!has$1(s,g)&&(s[g]=d)}),n.label&&!has$1(o,"emphasis")&&(o.emphasis=n.label,delete n.label)}function has$1(t,r){return t.hasOwnProperty(r)}function install$f(t){t.registerComponentModel(SliderTimelineModel$1),t.registerComponentView(SliderTimelineView$1),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),installTimelineAction(t),t.registerPreprocessor(timelinePreprocessor)}function checkMarkerInSeries(t,r){if(!t)return!1;for(var n=isArray$1(t)?t:[t],o=0;o<n.length;o++)if(n[o]&&n[o][r])return!0;return!1}function fillLabel(t){defaultEmphasis(t,"label",["show"])}var inner$5=makeInner(),MarkerModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.createdBySelf=!1,n}return r.prototype.init=function(n,o,s){this.mergeDefaultAndTheme(n,s),this._mergeOption(n,s,!1,!0)},r.prototype.isAnimationEnabled=function(){if(env$1.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},r.prototype.mergeOption=function(n,o){this._mergeOption(n,o,!1,!1)},r.prototype._mergeOption=function(n,o,s,l){var d=this.mainType;s||o.eachSeries(function(g){var y=g.get(this.mainType,!0),b=inner$5(g)[d];if(!y||!y.data){inner$5(g)[d]=null;return}b?b._mergeOption(y,o,!0):(l&&fillLabel(y),each$f(y.data,function(C){C instanceof Array?(fillLabel(C[0]),fillLabel(C[1])):fillLabel(C)}),b=this.createMarkerModelFromSeries(y,this,o),extend(b,{mainType:this.mainType,seriesIndex:g.seriesIndex,name:g.name,createdBySelf:!0}),b.__hostSeries=g),inner$5(g)[d]=b},this)},r.prototype.formatTooltip=function(n,o,s){var l=this.getData(),d=this.getRawValue(n),g=l.getName(n);return createTooltipMarkup("section",{header:this.name,blocks:[createTooltipMarkup("nameValue",{name:g,value:d,noName:!g,noValue:d==null})]})},r.prototype.getData=function(){return this._data},r.prototype.setData=function(n){this._data=n},r.getMarkerModelFromSeries=function(n,o){return inner$5(n)[o]},r.type="marker",r.dependencies=["series","grid","polar","geo"],r}(ComponentModel$1);mixin(MarkerModel,DataFormatMixin.prototype);var MarkerModel$1=MarkerModel,MarkPointModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.createMarkerModelFromSeries=function(n,o,s){return new r(n,o,s)},r.type="markPoint",r.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},r}(MarkerModel$1),MarkPointModel$1=MarkPointModel;function hasXOrY(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function hasXAndY(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function markerTypeCalculatorWithExtent(t,r,n,o,s,l){var d=[],g=isDimensionStacked(r,o),y=g?r.getCalculationInfo("stackResultDimension"):o,b=numCalculate(r,y,t),C=r.indicesOfNearest(y,b)[0];d[s]=r.get(n,C),d[l]=r.get(y,C);var x=r.get(o,C),S=getPrecision(r.get(o,C));return S=Math.min(S,20),S>=0&&(d[l]=+d[l].toFixed(S)),[d,x]}var markerTypeCalculator={min:curry$1(markerTypeCalculatorWithExtent,"min"),max:curry$1(markerTypeCalculatorWithExtent,"max"),average:curry$1(markerTypeCalculatorWithExtent,"average"),median:curry$1(markerTypeCalculatorWithExtent,"median")};function dataTransform(t,r){if(!!r){var n=t.getData(),o=t.coordinateSystem,s=o.dimensions;if(!hasXAndY(r)&&!isArray$1(r.coord)&&o){var l=getAxisInfo(r,n,o,t);if(r=clone$4(r),r.type&&markerTypeCalculator[r.type]&&l.baseAxis&&l.valueAxis){var d=indexOf(s,l.baseAxis.dim),g=indexOf(s,l.valueAxis.dim),y=markerTypeCalculator[r.type](n,l.baseDataDim,l.valueDataDim,d,g);r.coord=y[0],r.value=y[1]}else r.coord=[r.xAxis!=null?r.xAxis:r.radiusAxis,r.yAxis!=null?r.yAxis:r.angleAxis]}if(r.coord==null)r.coord=[];else for(var b=r.coord,C=0;C<2;C++)markerTypeCalculator[b[C]]&&(b[C]=numCalculate(n,n.mapDimension(s[C]),b[C]));return r}}function getAxisInfo(t,r,n,o){var s={};return t.valueIndex!=null||t.valueDim!=null?(s.valueDataDim=t.valueIndex!=null?r.getDimension(t.valueIndex):t.valueDim,s.valueAxis=n.getAxis(dataDimToCoordDim(o,s.valueDataDim)),s.baseAxis=n.getOtherAxis(s.valueAxis),s.baseDataDim=r.mapDimension(s.baseAxis.dim)):(s.baseAxis=o.getBaseAxis(),s.valueAxis=n.getOtherAxis(s.baseAxis),s.baseDataDim=r.mapDimension(s.baseAxis.dim),s.valueDataDim=r.mapDimension(s.valueAxis.dim)),s}function dataDimToCoordDim(t,r){var n=t.getData().getDimensionInfo(r);return n&&n.coordDim}function dataFilter(t,r){return t&&t.containData&&r.coord&&!hasXOrY(r)?t.containData(r.coord):!0}function zoneFilter(t,r,n){return t&&t.containZone&&r.coord&&n.coord&&!hasXOrY(r)&&!hasXOrY(n)?t.containZone(r.coord,n.coord):!0}function createMarkerDimValueGetter(t,r){return t?function(n,o,s,l){var d=l<2?n.coord&&n.coord[l]:n.value;return parseDataValue(d,r[l])}:function(n,o,s,l){return parseDataValue(n.value,r[l])}}function numCalculate(t,r,n){if(n==="average"){var o=0,s=0;return t.each(r,function(l,d){isNaN(l)||(o+=l,s++)}),o/s}else return n==="median"?t.getMedian(r):t.getDataExtent(r)[n==="max"?1:0]}var inner$4=makeInner(),MarkerView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.init=function(){this.markerGroupMap=createHashMap()},r.prototype.render=function(n,o,s){var l=this,d=this.markerGroupMap;d.each(function(g){inner$4(g).keep=!1}),o.eachSeries(function(g){var y=MarkerModel$1.getMarkerModelFromSeries(g,l.type);y&&l.renderSeries(g,y,o,s)}),d.each(function(g){!inner$4(g).keep&&l.group.remove(g.group)})},r.prototype.markKeep=function(n){inner$4(n).keep=!0},r.prototype.toggleBlurSeries=function(n,o){var s=this;each$f(n,function(l){var d=MarkerModel$1.getMarkerModelFromSeries(l,s.type);if(d){var g=d.getData();g.eachItemGraphicEl(function(y){y&&(o?enterBlur(y):leaveBlur(y))})}})},r.type="marker",r}(ComponentView$1),MarkerView$1=MarkerView;function updateMarkerLayout(t,r,n){var o=r.coordinateSystem;t.each(function(s){var l=t.getItemModel(s),d,g=parsePercent(l.get("x"),n.getWidth()),y=parsePercent(l.get("y"),n.getHeight());if(!isNaN(g)&&!isNaN(y))d=[g,y];else if(r.getMarkerPosition)d=r.getMarkerPosition(t.getValues(t.dimensions,s));else if(o){var b=t.get(o.dimensions[0],s),C=t.get(o.dimensions[1],s);d=o.dataToPoint([b,C])}isNaN(g)||(d[0]=g),isNaN(y)||(d[1]=y),t.setItemLayout(s,d)})}var MarkPointView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.updateTransform=function(n,o,s){o.eachSeries(function(l){var d=MarkerModel$1.getMarkerModelFromSeries(l,"markPoint");d&&(updateMarkerLayout(d.getData(),l,s),this.markerGroupMap.get(l.id).updateLayout())},this)},r.prototype.renderSeries=function(n,o,s,l){var d=n.coordinateSystem,g=n.id,y=n.getData(),b=this.markerGroupMap,C=b.get(g)||b.set(g,new SymbolDraw$1),x=createData(d,n,o);o.setData(x),updateMarkerLayout(o.getData(),n,l),x.each(function(S){var _=x.getItemModel(S),w=_.getShallow("symbol"),$=_.getShallow("symbolSize"),I=_.getShallow("symbolRotate"),B=_.getShallow("symbolOffset"),R=_.getShallow("symbolKeepAspect");if(isFunction(w)||isFunction($)||isFunction(I)||isFunction(B)){var P=o.getRawValue(S),M=o.getDataParams(S);isFunction(w)&&(w=w(P,M)),isFunction($)&&($=$(P,M)),isFunction(I)&&(I=I(P,M)),isFunction(B)&&(B=B(P,M))}var O=_.getModel("itemStyle").getItemStyle(),D=getVisualFromData(y,"color");O.fill||(O.fill=D),x.setItemVisual(S,{symbol:w,symbolSize:$,symbolRotate:I,symbolOffset:B,symbolKeepAspect:R,style:O})}),C.updateData(x),this.group.add(C.group),x.eachItemGraphicEl(function(S){S.traverse(function(_){getECData(_).dataModel=o})}),this.markKeep(C),C.group.silent=o.get("silent")||n.get("silent")},r.type="markPoint",r}(MarkerView$1);function createData(t,r,n){var o;t?o=map$1(t&&t.dimensions,function(g){var y=r.getData().getDimensionInfo(r.getData().mapDimension(g))||{};return extend(extend({},y),{name:g,ordinalMeta:null})}):o=[{name:"value",type:"float"}];var s=new SeriesData$1(o,n),l=map$1(n.get("data"),curry$1(dataTransform,r));t&&(l=filter(l,curry$1(dataFilter,t)));var d=createMarkerDimValueGetter(!!t,o);return s.initData(l,null,d),s}var MarkPointView$1=MarkPointView;function install$e(t){t.registerComponentModel(MarkPointModel$1),t.registerComponentView(MarkPointView$1),t.registerPreprocessor(function(r){checkMarkerInSeries(r.series,"markPoint")&&(r.markPoint=r.markPoint||{})})}var MarkLineModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.createMarkerModelFromSeries=function(n,o,s){return new r(n,o,s)},r.type="markLine",r.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"},r}(MarkerModel$1),MarkLineModel$1=MarkLineModel,inner$3=makeInner(),markLineTransform=function(t,r,n,o){var s=t.getData(),l;if(isArray$1(o))l=o;else{var d=o.type;if(d==="min"||d==="max"||d==="average"||d==="median"||o.xAxis!=null||o.yAxis!=null){var g=void 0,y=void 0;if(o.yAxis!=null||o.xAxis!=null)g=r.getAxis(o.yAxis!=null?"y":"x"),y=retrieve(o.yAxis,o.xAxis);else{var b=getAxisInfo(o,s,r,t);g=b.valueAxis;var C=getStackedDimension(s,b.valueDataDim);y=numCalculate(s,C,d)}var x=g.dim==="x"?0:1,S=1-x,_=clone$4(o),w={coord:[]};_.type=null,_.coord=[],_.coord[S]=-1/0,w.coord[S]=1/0;var $=n.get("precision");$>=0&&isNumber(y)&&(y=+y.toFixed(Math.min($,20))),_.coord[x]=w.coord[x]=y,l=[_,w,{type:d,valueIndex:o.valueIndex,value:y}]}else l=[]}var I=[dataTransform(t,l[0]),dataTransform(t,l[1]),extend({},l[2])];return I[2].type=I[2].type||null,merge(I[2],I[0]),merge(I[2],I[1]),I};function isInfinity$1(t){return!isNaN(t)&&!isFinite(t)}function ifMarkLineHasOnlyDim(t,r,n,o){var s=1-t,l=o.dimensions[t];return isInfinity$1(r[s])&&isInfinity$1(n[s])&&r[t]===n[t]&&o.getAxis(l).containData(r[t])}function markLineFilter(t,r){if(t.type==="cartesian2d"){var n=r[0].coord,o=r[1].coord;if(n&&o&&(ifMarkLineHasOnlyDim(1,n,o,t)||ifMarkLineHasOnlyDim(0,n,o,t)))return!0}return dataFilter(t,r[0])&&dataFilter(t,r[1])}function updateSingleMarkerEndLayout(t,r,n,o,s){var l=o.coordinateSystem,d=t.getItemModel(r),g,y=parsePercent(d.get("x"),s.getWidth()),b=parsePercent(d.get("y"),s.getHeight());if(!isNaN(y)&&!isNaN(b))g=[y,b];else{if(o.getMarkerPosition)g=o.getMarkerPosition(t.getValues(t.dimensions,r));else{var C=l.dimensions,x=t.get(C[0],r),S=t.get(C[1],r);g=l.dataToPoint([x,S])}if(isCoordinateSystemType(l,"cartesian2d")){var _=l.getAxis("x"),w=l.getAxis("y"),C=l.dimensions;isInfinity$1(t.get(C[0],r))?g[0]=_.toGlobalCoord(_.getExtent()[n?0:1]):isInfinity$1(t.get(C[1],r))&&(g[1]=w.toGlobalCoord(w.getExtent()[n?0:1]))}isNaN(y)||(g[0]=y),isNaN(b)||(g[1]=b)}t.setItemLayout(r,g)}var MarkLineView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.updateTransform=function(n,o,s){o.eachSeries(function(l){var d=MarkerModel$1.getMarkerModelFromSeries(l,"markLine");if(d){var g=d.getData(),y=inner$3(d).from,b=inner$3(d).to;y.each(function(C){updateSingleMarkerEndLayout(y,C,!0,l,s),updateSingleMarkerEndLayout(b,C,!1,l,s)}),g.each(function(C){g.setItemLayout(C,[y.getItemLayout(C),b.getItemLayout(C)])}),this.markerGroupMap.get(l.id).updateLayout()}},this)},r.prototype.renderSeries=function(n,o,s,l){var d=n.coordinateSystem,g=n.id,y=n.getData(),b=this.markerGroupMap,C=b.get(g)||b.set(g,new LineDraw$1);this.group.add(C.group);var x=createList$1(d,n,o),S=x.from,_=x.to,w=x.line;inner$3(o).from=S,inner$3(o).to=_,o.setData(w);var $=o.get("symbol"),I=o.get("symbolSize"),B=o.get("symbolRotate"),R=o.get("symbolOffset");isArray$1($)||($=[$,$]),isArray$1(I)||(I=[I,I]),isArray$1(B)||(B=[B,B]),isArray$1(R)||(R=[R,R]),x.from.each(function(M){P(S,M,!0),P(_,M,!1)}),w.each(function(M){var O=w.getItemModel(M).getModel("lineStyle").getLineStyle();w.setItemLayout(M,[S.getItemLayout(M),_.getItemLayout(M)]),O.stroke==null&&(O.stroke=S.getItemVisual(M,"style").fill),w.setItemVisual(M,{fromSymbolKeepAspect:S.getItemVisual(M,"symbolKeepAspect"),fromSymbolOffset:S.getItemVisual(M,"symbolOffset"),fromSymbolRotate:S.getItemVisual(M,"symbolRotate"),fromSymbolSize:S.getItemVisual(M,"symbolSize"),fromSymbol:S.getItemVisual(M,"symbol"),toSymbolKeepAspect:_.getItemVisual(M,"symbolKeepAspect"),toSymbolOffset:_.getItemVisual(M,"symbolOffset"),toSymbolRotate:_.getItemVisual(M,"symbolRotate"),toSymbolSize:_.getItemVisual(M,"symbolSize"),toSymbol:_.getItemVisual(M,"symbol"),style:O})}),C.updateData(w),x.line.eachItemGraphicEl(function(M){getECData(M).dataModel=o,M.traverse(function(O){getECData(O).dataModel=o})});function P(M,O,D){var N=M.getItemModel(O);updateSingleMarkerEndLayout(M,O,D,n,l);var H=N.getModel("itemStyle").getItemStyle();H.fill==null&&(H.fill=getVisualFromData(y,"color")),M.setItemVisual(O,{symbolKeepAspect:N.get("symbolKeepAspect"),symbolOffset:retrieve2(N.get("symbolOffset",!0),R[D?0:1]),symbolRotate:retrieve2(N.get("symbolRotate",!0),B[D?0:1]),symbolSize:retrieve2(N.get("symbolSize"),I[D?0:1]),symbol:retrieve2(N.get("symbol",!0),$[D?0:1]),style:H})}this.markKeep(C),C.group.silent=o.get("silent")||n.get("silent")},r.type="markLine",r}(MarkerView$1);function createList$1(t,r,n){var o;t?o=map$1(t&&t.dimensions,function(b){var C=r.getData().getDimensionInfo(r.getData().mapDimension(b))||{};return extend(extend({},C),{name:b,ordinalMeta:null})}):o=[{name:"value",type:"float"}];var s=new SeriesData$1(o,n),l=new SeriesData$1(o,n),d=new SeriesData$1([],n),g=map$1(n.get("data"),curry$1(markLineTransform,r,t,n));t&&(g=filter(g,curry$1(markLineFilter,t)));var y=createMarkerDimValueGetter(!!t,o);return s.initData(map$1(g,function(b){return b[0]}),null,y),l.initData(map$1(g,function(b){return b[1]}),null,y),d.initData(map$1(g,function(b){return b[2]})),d.hasItemOption=!0,{from:s,to:l,line:d}}var MarkLineView$1=MarkLineView;function install$d(t){t.registerComponentModel(MarkLineModel$1),t.registerComponentView(MarkLineView$1),t.registerPreprocessor(function(r){checkMarkerInSeries(r.series,"markLine")&&(r.markLine=r.markLine||{})})}var MarkAreaModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.createMarkerModelFromSeries=function(n,o,s){return new r(n,o,s)},r.type="markArea",r.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},r}(MarkerModel$1),MarkAreaModel$1=MarkAreaModel,inner$2=makeInner(),markAreaTransform=function(t,r,n,o){var s=o[0],l=o[1];if(!(!s||!l)){var d=dataTransform(t,s),g=dataTransform(t,l),y=d.coord,b=g.coord;y[0]=retrieve(y[0],-1/0),y[1]=retrieve(y[1],-1/0),b[0]=retrieve(b[0],1/0),b[1]=retrieve(b[1],1/0);var C=mergeAll([{},d,g]);return C.coord=[d.coord,g.coord],C.x0=d.x,C.y0=d.y,C.x1=g.x,C.y1=g.y,C}};function isInfinity(t){return!isNaN(t)&&!isFinite(t)}function ifMarkAreaHasOnlyDim(t,r,n,o){var s=1-t;return isInfinity(r[s])&&isInfinity(n[s])}function markAreaFilter(t,r){var n=r.coord[0],o=r.coord[1],s={coord:n,x:r.x0,y:r.y0},l={coord:o,x:r.x1,y:r.y1};return isCoordinateSystemType(t,"cartesian2d")?n&&o&&(ifMarkAreaHasOnlyDim(1,n,o)||ifMarkAreaHasOnlyDim(0,n,o))?!0:zoneFilter(t,s,l):dataFilter(t,s)||dataFilter(t,l)}function getSingleMarkerEndPoint(t,r,n,o,s){var l=o.coordinateSystem,d=t.getItemModel(r),g,y=parsePercent(d.get(n[0]),s.getWidth()),b=parsePercent(d.get(n[1]),s.getHeight());if(!isNaN(y)&&!isNaN(b))g=[y,b];else{if(o.getMarkerPosition){var C=t.getValues(["x0","y0"],r),x=t.getValues(["x1","y1"],r),S=l.clampData(C),_=l.clampData(x),w=[];n[0]==="x0"?w[0]=S[0]>_[0]?x[0]:C[0]:w[0]=S[0]>_[0]?C[0]:x[0],n[1]==="y0"?w[1]=S[1]>_[1]?x[1]:C[1]:w[1]=S[1]>_[1]?C[1]:x[1],g=o.getMarkerPosition(w,n,!0)}else{var $=t.get(n[0],r),I=t.get(n[1],r),B=[$,I];l.clampData&&l.clampData(B,B),g=l.dataToPoint(B,!0)}if(isCoordinateSystemType(l,"cartesian2d")){var R=l.getAxis("x"),P=l.getAxis("y"),$=t.get(n[0],r),I=t.get(n[1],r);isInfinity($)?g[0]=R.toGlobalCoord(R.getExtent()[n[0]==="x0"?0:1]):isInfinity(I)&&(g[1]=P.toGlobalCoord(P.getExtent()[n[1]==="y0"?0:1]))}isNaN(y)||(g[0]=y),isNaN(b)||(g[1]=b)}return g}var dimPermutations=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],MarkAreaView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.updateTransform=function(n,o,s){o.eachSeries(function(l){var d=MarkerModel$1.getMarkerModelFromSeries(l,"markArea");if(d){var g=d.getData();g.each(function(y){var b=map$1(dimPermutations,function(x){return getSingleMarkerEndPoint(g,y,x,l,s)});g.setItemLayout(y,b);var C=g.getItemGraphicEl(y);C.setShape("points",b)})}},this)},r.prototype.renderSeries=function(n,o,s,l){var d=n.coordinateSystem,g=n.id,y=n.getData(),b=this.markerGroupMap,C=b.get(g)||b.set(g,{group:new Group$4});this.group.add(C.group),this.markKeep(C);var x=createList(d,n,o);o.setData(x),x.each(function(S){var _=map$1(dimPermutations,function(H){return getSingleMarkerEndPoint(x,S,H,n,l)}),w=d.getAxis("x").scale,$=d.getAxis("y").scale,I=w.getExtent(),B=$.getExtent(),R=[w.parse(x.get("x0",S)),w.parse(x.get("x1",S))],P=[$.parse(x.get("y0",S)),$.parse(x.get("y1",S))];asc$2(R),asc$2(P);var M=!(I[0]>R[1]||I[1]<R[0]||B[0]>P[1]||B[1]<P[0]),O=!M;x.setItemLayout(S,{points:_,allClipped:O});var D=x.getItemModel(S).getModel("itemStyle").getItemStyle(),N=getVisualFromData(y,"color");D.fill||(D.fill=N,isString(D.fill)&&(D.fill=modifyAlpha(D.fill,.4))),D.stroke||(D.stroke=N),x.setItemVisual(S,"style",D)}),x.diff(inner$2(C).data).add(function(S){var _=x.getItemLayout(S);if(!_.allClipped){var w=new Polygon$1({shape:{points:_.points}});x.setItemGraphicEl(S,w),C.group.add(w)}}).update(function(S,_){var w=inner$2(C).data.getItemGraphicEl(_),$=x.getItemLayout(S);$.allClipped?w&&C.group.remove(w):(w?updateProps$1(w,{shape:{points:$.points}},o,S):w=new Polygon$1({shape:{points:$.points}}),x.setItemGraphicEl(S,w),C.group.add(w))}).remove(function(S){var _=inner$2(C).data.getItemGraphicEl(S);C.group.remove(_)}).execute(),x.eachItemGraphicEl(function(S,_){var w=x.getItemModel(_),$=x.getItemVisual(_,"style");S.useStyle(x.getItemVisual(_,"style")),setLabelStyle(S,getLabelStatesModels(w),{labelFetcher:o,labelDataIndex:_,defaultText:x.getName(_)||"",inheritColor:isString($.fill)?modifyAlpha($.fill,1):"#000"}),setStatesStylesFromModel(S,w),toggleHoverEmphasis(S,null,null,w.get(["emphasis","disabled"])),getECData(S).dataModel=o}),inner$2(C).data=x,C.group.silent=o.get("silent")||n.get("silent")},r.type="markArea",r}(MarkerView$1);function createList(t,r,n){var o,s,l=["x0","y0","x1","y1"];if(t){var d=map$1(t&&t.dimensions,function(b){var C=r.getData(),x=C.getDimensionInfo(C.mapDimension(b))||{};return extend(extend({},x),{name:b,ordinalMeta:null})});s=map$1(l,function(b,C){return{name:b,type:d[C%2].type}}),o=new SeriesData$1(s,n)}else s=[{name:"value",type:"float"}],o=new SeriesData$1(s,n);var g=map$1(n.get("data"),curry$1(markAreaTransform,r,t,n));t&&(g=filter(g,curry$1(markAreaFilter,t)));var y=t?function(b,C,x,S){var _=b.coord[Math.floor(S/2)][S%2];return parseDataValue(_,s[S])}:function(b,C,x,S){return parseDataValue(b.value,s[S])};return o.initData(g,null,y),o.hasItemOption=!0,o}var MarkAreaView$1=MarkAreaView;function install$c(t){t.registerComponentModel(MarkAreaModel$1),t.registerComponentView(MarkAreaView$1),t.registerPreprocessor(function(r){checkMarkerInSeries(r.series,"markArea")&&(r.markArea=r.markArea||{})})}var getDefaultSelectorOptions=function(t,r){if(r==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(r==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.layoutMode={type:"box",ignoreSize:!0},n}return r.prototype.init=function(n,o,s){this.mergeDefaultAndTheme(n,s),n.selected=n.selected||{},this._updateSelector(n)},r.prototype.mergeOption=function(n,o){t.prototype.mergeOption.call(this,n,o),this._updateSelector(n)},r.prototype._updateSelector=function(n){var o=n.selector,s=this.ecModel;o===!0&&(o=n.selector=["all","inverse"]),isArray$1(o)&&each$f(o,function(l,d){isString(l)&&(l={type:l}),o[d]=merge(l,getDefaultSelectorOptions(s,l.type))})},r.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var o=!1,s=0;s<n.length;s++){var l=n[s].get("name");if(this.isSelected(l)){this.select(l),o=!0;break}}!o&&this.select(n[0].get("name"))}},r.prototype._updateData=function(n){var o=[],s=[];n.eachRawSeries(function(y){var b=y.name;s.push(b);var C;if(y.legendVisualProvider){var x=y.legendVisualProvider,S=x.getAllNames();n.isSeriesFiltered(y)||(s=s.concat(S)),S.length?o=o.concat(S):C=!0}else C=!0;C&&isNameSpecified(y)&&o.push(y.name)}),this._availableNames=s;var l=this.get("data")||o,d=createHashMap(),g=map$1(l,function(y){return(isString(y)||isNumber(y))&&(y={name:y}),d.get(y.name)?null:(d.set(y.name,!0),new Model$1(y,this,this.ecModel))},this);this._data=filter(g,function(y){return!!y})},r.prototype.getData=function(){return this._data},r.prototype.select=function(n){var o=this.option.selected,s=this.get("selectedMode");if(s==="single"){var l=this._data;each$f(l,function(d){o[d.get("name")]=!1})}o[n]=!0},r.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},r.prototype.toggleSelected=function(n){var o=this.option.selected;o.hasOwnProperty(n)||(o[n]=!0),this[o[n]?"unSelect":"select"](n)},r.prototype.allSelect=function(){var n=this._data,o=this.option.selected;each$f(n,function(s){o[s.get("name",!0)]=!0})},r.prototype.inverseSelect=function(){var n=this._data,o=this.option.selected;each$f(n,function(s){var l=s.get("name",!0);o.hasOwnProperty(l)||(o[l]=!0),o[l]=!o[l]})},r.prototype.isSelected=function(n){var o=this.option.selected;return!(o.hasOwnProperty(n)&&!o[n])&&indexOf(this._availableNames,n)>=0},r.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},r.type="legend.plain",r.dependencies=["series"],r.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}},r}(ComponentModel$1),LegendModel$1=LegendModel,curry=curry$1,each$3=each$f,Group$1=Group$4,LegendView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.newlineDisabled=!1,n}return r.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},r.prototype.getContentGroup=function(){return this._contentGroup},r.prototype.getSelectorGroup=function(){return this._selectorGroup},r.prototype.render=function(n,o,s){var l=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var d=n.get("align"),g=n.get("orient");(!d||d==="auto")&&(d=n.get("left")==="right"&&g==="vertical"?"right":"left");var y=n.get("selector",!0),b=n.get("selectorPosition",!0);y&&(!b||b==="auto")&&(b=g==="horizontal"?"end":"start"),this.renderInner(d,n,o,s,y,g,b);var C=n.getBoxLayoutParams(),x={width:s.getWidth(),height:s.getHeight()},S=n.get("padding"),_=getLayoutRect(C,x,S),w=this.layoutInner(n,d,_,l,y,b),$=getLayoutRect(defaults({width:w.width,height:w.height},C),x,S);this.group.x=$.x-w.x,this.group.y=$.y-w.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(w,n))}},r.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},r.prototype.renderInner=function(n,o,s,l,d,g,y){var b=this.getContentGroup(),C=createHashMap(),x=o.get("selectedMode"),S=[];s.eachRawSeries(function(_){!_.get("legendHoverLink")&&S.push(_.id)}),each$3(o.getData(),function(_,w){var $=_.get("name");if(!this.newlineDisabled&&($===""||$===`
|
|
`)){var I=new Group$1;I.newline=!0,b.add(I);return}var B=s.getSeriesByName($)[0];if(!C.get($))if(B){var R=B.getData(),P=R.getVisual("legendLineStyle")||{},M=R.getVisual("legendIcon"),O=R.getVisual("style"),D=this._createItem(B,$,w,_,o,n,P,O,M,x,l);D.on("click",curry(dispatchSelectAction,$,null,l,S)).on("mouseover",curry(dispatchHighlightAction,B.name,null,l,S)).on("mouseout",curry(dispatchDownplayAction,B.name,null,l,S)),C.set($,!0)}else s.eachRawSeries(function(N){if(!C.get($)&&N.legendVisualProvider){var H=N.legendVisualProvider;if(!H.containName($))return;var Q=H.indexOfName($),G=H.getItemVisual(Q,"style"),K=H.getItemVisual(Q,"legendIcon"),W=parse(G.fill);W&&W[3]===0&&(W[3]=.2,G=extend(extend({},G),{fill:stringify(W,"rgba")}));var j=this._createItem(N,$,w,_,o,n,{},G,K,x,l);j.on("click",curry(dispatchSelectAction,null,$,l,S)).on("mouseover",curry(dispatchHighlightAction,null,$,l,S)).on("mouseout",curry(dispatchDownplayAction,null,$,l,S)),C.set($,!0)}},this)},this),d&&this._createSelector(d,o,l,g,y)},r.prototype._createSelector=function(n,o,s,l,d){var g=this.getSelectorGroup();each$3(n,function(b){var C=b.type,x=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){s.dispatchAction({type:C==="all"?"legendAllSelect":"legendInverseSelect"})}});g.add(x);var S=o.getModel("selectorLabel"),_=o.getModel(["emphasis","selectorLabel"]);setLabelStyle(x,{normal:S,emphasis:_},{defaultText:b.title}),enableHoverEmphasis(x)})},r.prototype._createItem=function(n,o,s,l,d,g,y,b,C,x,S){var _=n.visualDrawType,w=d.get("itemWidth"),$=d.get("itemHeight"),I=d.isSelected(o),B=l.get("symbolRotate"),R=l.get("symbolKeepAspect"),P=l.get("icon");C=P||C||"roundRect";var M=getLegendStyle(C,l,y,b,_,I,S),O=new Group$1,D=l.getModel("textStyle");if(isFunction(n.getLegendIcon)&&(!P||P==="inherit"))O.add(n.getLegendIcon({itemWidth:w,itemHeight:$,icon:C,iconRotate:B,itemStyle:M.itemStyle,lineStyle:M.lineStyle,symbolKeepAspect:R}));else{var N=P==="inherit"&&n.getData().getVisual("symbol")?B==="inherit"?n.getData().getVisual("symbolRotate"):B:0;O.add(getDefaultLegendIcon({itemWidth:w,itemHeight:$,icon:C,iconRotate:N,itemStyle:M.itemStyle,lineStyle:M.lineStyle,symbolKeepAspect:R}))}var H=g==="left"?w+5:-5,Q=g,G=d.get("formatter"),K=o;isString(G)&&G?K=G.replace("{name}",o!=null?o:""):isFunction(G)&&(K=G(o));var W=l.get("inactiveColor");O.add(new ZRText$1({style:createTextStyle$1(D,{text:K,x:H,y:$/2,fill:I?D.getTextColor():W,align:Q,verticalAlign:"middle"})}));var j=new Rect$3({shape:O.getBoundingRect(),invisible:!0}),Y=l.getModel("tooltip");return Y.get("show")&&setTooltipConfig({el:j,componentModel:d,itemName:o,itemTooltipOption:Y.option}),O.add(j),O.eachChild(function(q){q.silent=!0}),j.silent=!x,this.getContentGroup().add(O),enableHoverEmphasis(O),O.__legendDataIndex=s,O},r.prototype.layoutInner=function(n,o,s,l,d,g){var y=this.getContentGroup(),b=this.getSelectorGroup();box(n.get("orient"),y,n.get("itemGap"),s.width,s.height);var C=y.getBoundingRect(),x=[-C.x,-C.y];if(b.markRedraw(),y.markRedraw(),d){box("horizontal",b,n.get("selectorItemGap",!0));var S=b.getBoundingRect(),_=[-S.x,-S.y],w=n.get("selectorButtonGap",!0),$=n.getOrient().index,I=$===0?"width":"height",B=$===0?"height":"width",R=$===0?"y":"x";g==="end"?_[$]+=C[I]+w:x[$]+=S[I]+w,_[1-$]+=C[B]/2-S[B]/2,b.x=_[0],b.y=_[1],y.x=x[0],y.y=x[1];var P={x:0,y:0};return P[I]=C[I]+w+S[I],P[B]=Math.max(C[B],S[B]),P[R]=Math.min(0,S[R]+_[1-$]),P}else return y.x=x[0],y.y=x[1],this.group.getBoundingRect()},r.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},r.type="legend.plain",r}(ComponentView$1);function getLegendStyle(t,r,n,o,s,l,d){function g(I,B){I.lineWidth==="auto"&&(I.lineWidth=B.lineWidth>0?2:0),each$3(I,function(R,P){I[P]==="inherit"&&(I[P]=B[P])})}var y=r.getModel("itemStyle"),b=y.getItemStyle(),C=t.lastIndexOf("empty",0)===0?"fill":"stroke",x=y.getShallow("decal");b.decal=!x||x==="inherit"?o.decal:createOrUpdatePatternFromDecal(x,d),b.fill==="inherit"&&(b.fill=o[s]),b.stroke==="inherit"&&(b.stroke=o[C]),b.opacity==="inherit"&&(b.opacity=(s==="fill"?o:n).opacity),g(b,o);var S=r.getModel("lineStyle"),_=S.getLineStyle();if(g(_,n),b.fill==="auto"&&(b.fill=o.fill),b.stroke==="auto"&&(b.stroke=o.fill),_.stroke==="auto"&&(_.stroke=o.fill),!l){var w=r.get("inactiveBorderWidth"),$=b[C];b.lineWidth=w==="auto"?o.lineWidth>0&&$?2:0:b.lineWidth,b.fill=r.get("inactiveColor"),b.stroke=r.get("inactiveBorderColor"),_.stroke=S.get("inactiveColor"),_.lineWidth=S.get("inactiveWidth")}return{itemStyle:b,lineStyle:_}}function getDefaultLegendIcon(t){var r=t.icon||"roundRect",n=createSymbol$1(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),r.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function dispatchSelectAction(t,r,n,o){dispatchDownplayAction(t,r,n,o),n.dispatchAction({type:"legendToggleSelect",name:t!=null?t:r}),dispatchHighlightAction(t,r,n,o)}function isUseHoverLayer(t){for(var r=t.getZr().storage.getDisplayList(),n,o=0,s=r.length;o<s&&!(n=r[o].states.emphasis);)o++;return n&&n.hoverLayer}function dispatchHighlightAction(t,r,n,o){isUseHoverLayer(n)||n.dispatchAction({type:"highlight",seriesName:t,name:r,excludeSeriesId:o})}function dispatchDownplayAction(t,r,n,o){isUseHoverLayer(n)||n.dispatchAction({type:"downplay",seriesName:t,name:r,excludeSeriesId:o})}var LegendView$1=LegendView;function legendFilter(t){var r=t.findComponents({mainType:"legend"});r&&r.length&&t.filterSeries(function(n){for(var o=0;o<r.length;o++)if(!r[o].isSelected(n.name))return!1;return!0})}function legendSelectActionHandler(t,r,n){var o={},s=t==="toggleSelected",l;return n.eachComponent("legend",function(d){s&&l!=null?d[l?"select":"unSelect"](r.name):t==="allSelect"||t==="inverseSelect"?d[t]():(d[t](r.name),l=d.isSelected(r.name));var g=d.getData();each$f(g,function(y){var b=y.get("name");if(!(b===`
|
|
`||b==="")){var C=d.isSelected(b);o.hasOwnProperty(b)?o[b]=o[b]&&C:o[b]=C}})}),t==="allSelect"||t==="inverseSelect"?{selected:o}:{name:r.name,selected:o}}function installLegendAction(t){t.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),t.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),t.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$b(t){t.registerComponentModel(LegendModel$1),t.registerComponentView(LegendView$1),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),t.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction(t)}var ScrollableLegendModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},r.prototype.init=function(n,o,s){var l=getLayoutParams(n);t.prototype.init.call(this,n,o,s),mergeAndNormalizeLayoutParams(this,n,l)},r.prototype.mergeOption=function(n,o){t.prototype.mergeOption.call(this,n,o),mergeAndNormalizeLayoutParams(this,this.option,n)},r.type="legend.scroll",r.defaultOption=inheritDefaultOption(LegendModel$1.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}),r}(LegendModel$1);function mergeAndNormalizeLayoutParams(t,r,n){var o=t.getOrient(),s=[1,1];s[o.index]=0,mergeLayoutParam(r,n,{type:"box",ignoreSize:!!s})}var ScrollableLegendModel$1=ScrollableLegendModel,Group=Group$4,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.newlineDisabled=!0,n._currentIndex=0,n}return r.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},r.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},r.prototype.renderInner=function(n,o,s,l,d,g,y){var b=this;t.prototype.renderInner.call(this,n,o,s,l,d,g,y);var C=this._controllerGroup,x=o.get("pageIconSize",!0),S=isArray$1(x)?x:[x,x];w("pagePrev",0);var _=o.getModel("pageTextStyle");C.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:_.getTextColor(),font:_.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),w("pageNext",1);function w($,I){var B=$+"DataIndex",R=createIcon(o.get("pageIcons",!0)[o.getOrient().name][I],{onclick:bind$1(b._pageGo,b,B,o,l)},{x:-S[0]/2,y:-S[1]/2,width:S[0],height:S[1]});R.name=$,C.add(R)}},r.prototype.layoutInner=function(n,o,s,l,d,g){var y=this.getSelectorGroup(),b=n.getOrient().index,C=WH[b],x=XY[b],S=WH[1-b],_=XY[1-b];d&&box("horizontal",y,n.get("selectorItemGap",!0));var w=n.get("selectorButtonGap",!0),$=y.getBoundingRect(),I=[-$.x,-$.y],B=clone$4(s);d&&(B[C]=s[C]-$[C]-w);var R=this._layoutContentAndController(n,l,B,b,C,S,_,x);if(d){if(g==="end")I[b]+=R[C]+w;else{var P=$[C]+w;I[b]-=P,R[x]-=P}R[C]+=$[C]+w,I[1-b]+=R[_]+R[S]/2-$[S]/2,R[S]=Math.max(R[S],$[S]),R[_]=Math.min(R[_],$[_]+I[1-b]),y.x=I[0],y.y=I[1],y.markRedraw()}return R},r.prototype._layoutContentAndController=function(n,o,s,l,d,g,y,b){var C=this.getContentGroup(),x=this._containerGroup,S=this._controllerGroup;box(n.get("orient"),C,n.get("itemGap"),l?s.width:null,l?null:s.height),box("horizontal",S,n.get("pageButtonItemGap",!0));var _=C.getBoundingRect(),w=S.getBoundingRect(),$=this._showController=_[d]>s[d],I=[-_.x,-_.y];o||(I[l]=C[b]);var B=[0,0],R=[-w.x,-w.y],P=retrieve2(n.get("pageButtonGap",!0),n.get("itemGap",!0));if($){var M=n.get("pageButtonPosition",!0);M==="end"?R[l]+=s[d]-w[d]:B[l]+=w[d]+P}R[1-l]+=_[g]/2-w[g]/2,C.setPosition(I),x.setPosition(B),S.setPosition(R);var O={x:0,y:0};if(O[d]=$?s[d]:_[d],O[g]=Math.max(_[g],w[g]),O[y]=Math.min(0,w[y]+R[1-l]),x.__rectSize=s[d],$){var D={x:0,y:0};D[d]=Math.max(s[d]-w[d]-P,0),D[g]=O[g],x.setClipPath(new Rect$3({shape:D})),x.__rectSize=D[d]}else S.eachChild(function(H){H.attr({invisible:!0,silent:!0})});var N=this._getPageInfo(n);return N.pageIndex!=null&&updateProps$1(C,{x:N.contentPosition[0],y:N.contentPosition[1]},$?n:null),this._updatePageInfoView(n,N),O},r.prototype._pageGo=function(n,o,s){var l=this._getPageInfo(o)[n];l!=null&&s.dispatchAction({type:"legendScroll",scrollDataIndex:l,legendId:o.id})},r.prototype._updatePageInfoView=function(n,o){var s=this._controllerGroup;each$f(["pagePrev","pageNext"],function(C){var x=C+"DataIndex",S=o[x]!=null,_=s.childOfName(C);_&&(_.setStyle("fill",S?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),_.cursor=S?"pointer":"default")});var l=s.childOfName("pageText"),d=n.get("pageFormatter"),g=o.pageIndex,y=g!=null?g+1:0,b=o.pageCount;l&&d&&l.setStyle("text",isString(d)?d.replace("{current}",y==null?"":y+"").replace("{total}",b==null?"":b+""):d({current:y,total:b}))},r.prototype._getPageInfo=function(n){var o=n.get("scrollDataIndex",!0),s=this.getContentGroup(),l=this._containerGroup.__rectSize,d=n.getOrient().index,g=WH[d],y=XY[d],b=this._findTargetItemIndex(o),C=s.children(),x=C[b],S=C.length,_=S?1:0,w={contentPosition:[s.x,s.y],pageCount:_,pageIndex:_-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!x)return w;var $=M(x);w.contentPosition[d]=-$.s;for(var I=b+1,B=$,R=$,P=null;I<=S;++I)P=M(C[I]),(!P&&R.e>B.s+l||P&&!O(P,B.s))&&(R.i>B.i?B=R:B=P,B&&(w.pageNextDataIndex==null&&(w.pageNextDataIndex=B.i),++w.pageCount)),R=P;for(var I=b-1,B=$,R=$,P=null;I>=-1;--I)P=M(C[I]),(!P||!O(R,P.s))&&B.i<R.i&&(R=B,w.pagePrevDataIndex==null&&(w.pagePrevDataIndex=B.i),++w.pageCount,++w.pageIndex),B=P;return w;function M(D){if(D){var N=D.getBoundingRect(),H=N[y]+D[y];return{s:H,e:H+N[g],i:D.__legendDataIndex}}}function O(D,N){return D.e>=N&&D.s<=N+l}},r.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var o,s=this.getContentGroup(),l;return s.eachChild(function(d,g){var y=d.__legendDataIndex;l==null&&y!=null&&(l=g),y===n&&(o=g)}),o!=null?o:l},r.type="legend.scroll",r}(LegendView$1),ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(t){t.registerAction("legendScroll","legendscroll",function(r,n){var o=r.scrollDataIndex;o!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:r},function(s){s.setScrollDataIndex(o)})})}function install$a(t){use(install$b),t.registerComponentModel(ScrollableLegendModel$1),t.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(t)}function install$9(t){use(install$b),use(install$a)}var InsideZoomModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="dataZoom.inside",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),r}(DataZoomModel$1),InsideZoomModel$1=InsideZoomModel,inner$1=makeInner();function setViewInfoToCoordSysRecord(t,r,n){inner$1(t).coordSysRecordMap.each(function(o){var s=o.dataZoomInfoMap.get(r.uid);s&&(s.getRange=n)})}function disposeCoordSysRecordIfNeeded(t,r){for(var n=inner$1(t).coordSysRecordMap,o=n.keys(),s=0;s<o.length;s++){var l=o[s],d=n.get(l),g=d.dataZoomInfoMap;if(g){var y=r.uid,b=g.get(y);b&&(g.removeKey(y),g.keys().length||disposeCoordSysRecord(n,d))}}}function disposeCoordSysRecord(t,r){if(r){t.removeKey(r.model.uid);var n=r.controller;n&&n.dispose()}}function createCoordSysRecord(t,r){var n={model:r,containsPoint:curry$1(containsPoint,r),dispatchAction:curry$1(dispatchAction,t),dataZoomInfoMap:null,controller:null},o=n.controller=new RoamController$1(t.getZr());return each$f(["pan","zoom","scrollMove"],function(s){o.on(s,function(l){var d=[];n.dataZoomInfoMap.each(function(g){if(!!l.isAvailableBehavior(g.model.option)){var y=(g.getRange||{})[s],b=y&&y(g.dzReferCoordSysInfo,n.model.mainType,n.controller,l);!g.model.get("disabled",!0)&&b&&d.push({dataZoomId:g.model.id,start:b[0],end:b[1]})}}),d.length&&n.dispatchAction(d)})}),n}function dispatchAction(t,r){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:r})}function containsPoint(t,r,n,o){return t.coordinateSystem.containPoint([n,o])}function mergeControllerParams(t){var r,n="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},s=!0;return t.each(function(l){var d=l.model,g=d.get("disabled",!0)?!1:d.get("zoomLock",!0)?"move":!0;o[n+g]>o[n+r]&&(r=g),s=s&&d.get("preventDefaultMouseMove",!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!s}}}function installDataZoomRoamProcessor(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(r,n){var o=inner$1(n),s=o.coordSysRecordMap||(o.coordSysRecordMap=createHashMap());s.each(function(l){l.dataZoomInfoMap=null}),r.eachComponent({mainType:"dataZoom",subType:"inside"},function(l){var d=collectReferCoordSysModelInfo(l);each$f(d.infoList,function(g){var y=g.model.uid,b=s.get(y)||s.set(y,createCoordSysRecord(n,g.model)),C=b.dataZoomInfoMap||(b.dataZoomInfoMap=createHashMap());C.set(l.uid,{dzReferCoordSysInfo:g,model:l,getRange:null})})}),s.each(function(l){var d=l.controller,g,y=l.dataZoomInfoMap;if(y){var b=y.keys()[0];b!=null&&(g=y.get(b))}if(!g){disposeCoordSysRecord(s,l);return}var C=mergeControllerParams(y);d.enable(C.controlType,C.opt),d.setPointerChecker(l.containsPoint),createOrUpdate(l,"dispatchAction",g.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return r.prototype.render=function(n,o,s){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),setViewInfoToCoordSysRecord(s,n,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},r.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},r.type="dataZoom.inside",r}(DataZoomView$1),getRangeHandlers={zoom:function(t,r,n,o){var s=this.range,l=s.slice(),d=t.axisModels[0];if(!!d){var g=getDirectionInfo[r](null,[o.originX,o.originY],d,n,t),y=(g.signal>0?g.pixelStart+g.pixelLength-g.pixel:g.pixel-g.pixelStart)/g.pixelLength*(l[1]-l[0])+l[0],b=Math.max(1/o.scale,0);l[0]=(l[0]-y)*b+y,l[1]=(l[1]-y)*b+y;var C=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,l,[0,100],0,C.minSpan,C.maxSpan),this.range=l,s[0]!==l[0]||s[1]!==l[1])return l}},pan:makeMover(function(t,r,n,o,s,l){var d=getDirectionInfo[o]([l.oldX,l.oldY],[l.newX,l.newY],r,s,n);return d.signal*(t[1]-t[0])*d.pixel/d.pixelLength}),scrollMove:makeMover(function(t,r,n,o,s,l){var d=getDirectionInfo[o]([0,0],[l.scrollDelta,l.scrollDelta],r,s,n);return d.signal*(t[1]-t[0])*l.scrollDelta})};function makeMover(t){return function(r,n,o,s){var l=this.range,d=l.slice(),g=r.axisModels[0];if(!!g){var y=t(d,g,r,n,o,s);if(sliderMove(y,d,[0,100],"all"),this.range=d,l[0]!==d[0]||l[1]!==d[1])return d}}}var getDirectionInfo={grid:function(t,r,n,o,s){var l=n.axis,d={},g=s.model.coordinateSystem.getRect();return t=t||[0,0],l.dim==="x"?(d.pixel=r[0]-t[0],d.pixelLength=g.width,d.pixelStart=g.x,d.signal=l.inverse?1:-1):(d.pixel=r[1]-t[1],d.pixelLength=g.height,d.pixelStart=g.y,d.signal=l.inverse?-1:1),d},polar:function(t,r,n,o,s){var l=n.axis,d={},g=s.model.coordinateSystem,y=g.getRadiusAxis().getExtent(),b=g.getAngleAxis().getExtent();return t=t?g.pointToCoord(t):[0,0],r=g.pointToCoord(r),n.mainType==="radiusAxis"?(d.pixel=r[0]-t[0],d.pixelLength=y[1]-y[0],d.pixelStart=y[0],d.signal=l.inverse?1:-1):(d.pixel=r[1]-t[1],d.pixelLength=b[1]-b[0],d.pixelStart=b[0],d.signal=l.inverse?-1:1),d},singleAxis:function(t,r,n,o,s){var l=n.axis,d=s.model.coordinateSystem.getRect(),g={};return t=t||[0,0],l.orient==="horizontal"?(g.pixel=r[0]-t[0],g.pixelLength=d.width,g.pixelStart=d.x,g.signal=l.inverse?1:-1):(g.pixel=r[1]-t[1],g.pixelLength=d.height,g.pixelStart=d.y,g.signal=l.inverse?-1:1),g}},InsideZoomView$1=InsideZoomView;function install$8(t){installCommon$1(t),t.registerComponentModel(InsideZoomModel$1),t.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(t)}var SliderZoomModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.type="dataZoom.slider",r.layoutMode="box",r.defaultOption=inheritDefaultOption(DataZoomModel$1.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"}}}),r}(DataZoomModel$1),SliderZoomModel$1=SliderZoomModel,Rect=Rect$3,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._displayables={},n}return r.prototype.init=function(n,o){this.api=o,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},r.prototype.render=function(n,o,s,l){if(t.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!l||l.type!=="dataZoom"||l.from!==this.uid)&&this._buildView(),this._updateView()},r.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},r.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var o=this._displayables.sliderGroup=new Group$4;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(o),this._positionGroup()},r.prototype._resetLocation=function(){var n=this.dataZoomModel,o=this.api,s=n.get("brushSelect"),l=s?DEFAULT_MOVE_HANDLE_SIZE:0,d=this._findCoordRect(),g={width:o.getWidth(),height:o.getHeight()},y=this._orient===HORIZONTAL?{right:g.width-d.x-d.width,top:g.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-l,width:d.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:d.y,width:DEFAULT_FILLER_SIZE,height:d.height},b=getLayoutParams(n.option);each$f(["right","top","width","height"],function(x){b[x]==="ph"&&(b[x]=y[x])});var C=getLayoutRect(b,g);this._location={x:C.x,y:C.y},this._size=[C.width,C.height],this._orient===VERTICAL&&this._size.reverse()},r.prototype._positionGroup=function(){var n=this.group,o=this._location,s=this._orient,l=this.dataZoomModel.getFirstTargetAxisModel(),d=l&&l.get("inverse"),g=this._displayables.sliderGroup,y=(this._dataShadowInfo||{}).otherAxisInverse;g.attr(s===HORIZONTAL&&!d?{scaleY:y?1:-1,scaleX:1}:s===HORIZONTAL&&d?{scaleY:y?1:-1,scaleX:-1}:s===VERTICAL&&!d?{scaleY:y?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:y?-1:1,scaleX:-1,rotation:Math.PI/2});var b=n.getBoundingRect([g]);n.x=o.x-b.x,n.y=o.y-b.y,n.markRedraw()},r.prototype._getViewExtent=function(){return[0,this._size[0]]},r.prototype._renderBackground=function(){var n=this.dataZoomModel,o=this._size,s=this._displayables.sliderGroup,l=n.get("brushSelect");s.add(new Rect({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var d=new Rect({shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),g=this.api.getZr();l?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",g.on("mousemove",this._onBrush),g.on("mouseup",this._onBrushEnd)):(g.off("mousemove",this._onBrush),g.off("mouseup",this._onBrushEnd)),s.add(d)},r.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var o=this._size,s=this._shadowSize||[],l=n.series,d=l.getRawData(),g=l.getShadowDim&&l.getShadowDim(),y=g&&d.getDimensionInfo(g)?l.getShadowDim():n.otherDim;if(y==null)return;var b=this._shadowPolygonPts,C=this._shadowPolylinePts;if(d!==this._shadowData||y!==this._shadowDim||o[0]!==s[0]||o[1]!==s[1]){var x=d.getDataExtent(y),S=(x[1]-x[0])*.3;x=[x[0]-S,x[1]+S];var _=[0,o[1]],w=[0,o[0]],$=[[o[0],0],[0,0]],I=[],B=w[1]/(d.count()-1),R=0,P=Math.round(d.count()/o[0]),M;d.each([y],function(Q,G){if(P>0&&G%P){R+=B;return}var K=Q==null||isNaN(Q)||Q==="",W=K?0:linearMap$2(Q,x,_,!0);K&&!M&&G?($.push([$[$.length-1][0],0]),I.push([I[I.length-1][0],0])):!K&&M&&($.push([R,0]),I.push([R,0])),$.push([R,W]),I.push([R,W]),R+=B,M=K}),b=this._shadowPolygonPts=$,C=this._shadowPolylinePts=I}this._shadowData=d,this._shadowDim=y,this._shadowSize=[o[0],o[1]];var O=this.dataZoomModel;function D(Q){var G=O.getModel(Q?"selectedDataBackground":"dataBackground"),K=new Group$4,W=new Polygon$1({shape:{points:b},segmentIgnoreThreshold:1,style:G.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),j=new Polyline$3({shape:{points:C},segmentIgnoreThreshold:1,style:G.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return K.add(W),K.add(j),K}for(var N=0;N<3;N++){var H=D(N===1);this._displayables.sliderGroup.add(H),this._displayables.dataShadowSegs.push(H)}},r.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,o=n.get("showDataShadow");if(o!==!1){var s,l=this.ecModel;return n.eachTargetAxis(function(d,g){var y=n.getAxisProxy(d,g).getTargetSeriesModels();each$f(y,function(b){if(!s&&!(o!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,b.get("type"))<0)){var C=l.getComponent(getAxisMainType(d),g).axis,x=getOtherDim(d),S,_=b.coordinateSystem;x!=null&&_.getOtherAxis&&(S=_.getOtherAxis(C).inverse),x=b.getData().mapDimension(x),s={thisAxis:C,series:b,thisDim:d,otherDim:x,otherAxisInverse:S}}},this)},this),s}},r.prototype._renderHandle=function(){var n=this.group,o=this._displayables,s=o.handles=[null,null],l=o.handleLabels=[null,null],d=this._displayables.sliderGroup,g=this._size,y=this.dataZoomModel,b=this.api,C=y.get("borderRadius")||0,x=y.get("brushSelect"),S=o.filler=new Rect({silent:x,style:{fill:y.get("fillerColor")},textConfig:{position:"inside"}});d.add(S),d.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:g[0],height:g[1],r:C},style:{stroke:y.get("dataBackgroundColor")||y.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$f([0,1],function(P){var M=y.get("handleIcon");!symbolBuildProxies[M]&&M.indexOf("path://")<0&&M.indexOf("image://")<0&&(M="path://"+M);var O=createSymbol$1(M,-1,0,2,2,null,!0);O.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,P),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var D=O.getBoundingRect(),N=y.get("handleSize");this._handleHeight=parsePercent(N,this._size[1]),this._handleWidth=D.width/D.height*this._handleHeight,O.setStyle(y.getModel("handleStyle").getItemStyle()),O.style.strokeNoScale=!0,O.rectHover=!0,O.ensureState("emphasis").style=y.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(O);var H=y.get("handleColor");H!=null&&(O.style.fill=H),d.add(s[P]=O);var Q=y.getModel("textStyle");n.add(l[P]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(Q,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Q.getTextColor(),font:Q.getFont()}),z2:10}))},this);var _=S;if(x){var w=parsePercent(y.get("moveHandleSize"),g[1]),$=o.moveHandle=new Rect$3({style:y.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:g[1]-.5,height:w}}),I=w*.8,B=o.moveHandleIcon=createSymbol$1(y.get("moveHandleIcon"),-I/2,-I/2,I,I,"#fff",!0);B.silent=!0,B.y=g[1]+w/2-.5,$.ensureState("emphasis").style=y.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var R=Math.min(g[1]/2,Math.max(w,10));_=o.moveZone=new Rect$3({invisible:!0,shape:{y:g[1]-R,height:w+R}}),_.on("mouseover",function(){b.enterEmphasis($)}).on("mouseout",function(){b.leaveEmphasis($)}),d.add($),d.add(B),d.add(_)}_.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},r.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),o=this._getViewExtent();this._handleEnds=[linearMap$2(n[0],[0,100],o,!0),linearMap$2(n[1],[0,100],o,!0)]},r.prototype._updateInterval=function(n,o){var s=this.dataZoomModel,l=this._handleEnds,d=this._getViewExtent(),g=s.findRepresentativeAxisProxy().getMinMaxSpan(),y=[0,100];sliderMove(o,l,d,s.get("zoomLock")?"all":n,g.minSpan!=null?linearMap$2(g.minSpan,y,d,!0):null,g.maxSpan!=null?linearMap$2(g.maxSpan,y,d,!0):null);var b=this._range,C=this._range=asc$2([linearMap$2(l[0],d,y,!0),linearMap$2(l[1],d,y,!0)]);return!b||b[0]!==C[0]||b[1]!==C[1]},r.prototype._updateView=function(n){var o=this._displayables,s=this._handleEnds,l=asc$2(s.slice()),d=this._size;each$f([0,1],function(_){var w=o.handles[_],$=this._handleHeight;w.attr({scaleX:$/2,scaleY:$/2,x:s[_]+(_?-1:1),y:d[1]/2-$/2})},this),o.filler.setShape({x:l[0],y:0,width:l[1]-l[0],height:d[1]});var g={x:l[0],width:l[1]-l[0]};o.moveHandle&&(o.moveHandle.setShape(g),o.moveZone.setShape(g),o.moveZone.getBoundingRect(),o.moveHandleIcon&&o.moveHandleIcon.attr("x",g.x+g.width/2));for(var y=o.dataShadowSegs,b=[0,l[0],l[1],d[0]],C=0;C<y.length;C++){var x=y[C],S=x.getClipPath();S||(S=new Rect$3,x.setClipPath(S)),S.setShape({x:b[C],y:0,width:b[C+1]-b[C],height:d[1]})}this._updateDataInfo(n)},r.prototype._updateDataInfo=function(n){var o=this.dataZoomModel,s=this._displayables,l=s.handleLabels,d=this._orient,g=["",""];if(o.get("showDetail")){var y=o.findRepresentativeAxisProxy();if(y){var b=y.getAxisModel().axis,C=this._range,x=n?y.calculateDataWindow({start:C[0],end:C[1]}).valueWindow:y.getDataValueWindow();g=[this._formatLabel(x[0],b),this._formatLabel(x[1],b)]}}var S=asc$2(this._handleEnds.slice());_.call(this,0),_.call(this,1);function _(w){var $=getTransform$1(s.handles[w].parent,this.group),I=transformDirection(w===0?"right":"left",$),B=this._handleWidth/2+LABEL_GAP,R=applyTransform([S[w]+(w===0?-B:B),this._size[1]/2],$);l[w].setStyle({x:R[0],y:R[1],verticalAlign:d===HORIZONTAL?"middle":I,align:d===HORIZONTAL?I:"center",text:g[w]})}},r.prototype._formatLabel=function(n,o){var s=this.dataZoomModel,l=s.get("labelFormatter"),d=s.get("labelPrecision");(d==null||d==="auto")&&(d=o.getPixelPrecision());var g=n==null||isNaN(n)?"":o.type==="category"||o.type==="time"?o.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(d,20));return isFunction(l)?l(n,g):isString(l)?l.replace("{value}",g):g},r.prototype._showDataInfo=function(n){n=this._dragging||n;var o=this._displayables,s=o.handleLabels;s[0].attr("invisible",!n),s[1].attr("invisible",!n),o.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](o.moveHandle,1)},r.prototype._onDragMove=function(n,o,s,l){this._dragging=!0,stop(l.event);var d=this._displayables.sliderGroup.getLocalTransform(),g=applyTransform([o,s],d,!0),y=this._updateInterval(n,g[0]),b=this.dataZoomModel.get("realtime");this._updateView(!b),y&&b&&this._dispatchZoomAction(!0)},r.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},r.prototype._onClickPanel=function(n){var o=this._size,s=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(s[0]<0||s[0]>o[0]||s[1]<0||s[1]>o[1])){var l=this._handleEnds,d=(l[0]+l[1])/2,g=this._updateInterval("all",s[0]-d);this._updateView(),g&&this._dispatchZoomAction(!1)}},r.prototype._onBrushStart=function(n){var o=n.offsetX,s=n.offsetY;this._brushStart=new Point$1(o,s),this._brushing=!0,this._brushStartTime=+new Date},r.prototype._onBrushEnd=function(n){if(!!this._brushing){var o=this._displayables.brushRect;if(this._brushing=!1,!!o){o.attr("ignore",!0);var s=o.shape,l=+new Date;if(!(l-this._brushStartTime<200&&Math.abs(s.width)<5)){var d=this._getViewExtent(),g=[0,100];this._range=asc$2([linearMap$2(s.x,d,g,!0),linearMap$2(s.x+s.width,d,g,!0)]),this._handleEnds=[s.x,s.x+s.width],this._updateView(),this._dispatchZoomAction(!1)}}}},r.prototype._onBrush=function(n){this._brushing&&(stop(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},r.prototype._updateBrushRect=function(n,o){var s=this._displayables,l=this.dataZoomModel,d=s.brushRect;d||(d=s.brushRect=new Rect({silent:!0,style:l.getModel("brushStyle").getItemStyle()}),s.sliderGroup.add(d)),d.attr("ignore",!1);var g=this._brushStart,y=this._displayables.sliderGroup,b=y.transformCoordToLocal(n,o),C=y.transformCoordToLocal(g.x,g.y),x=this._size;b[0]=Math.max(Math.min(x[0],b[0]),0),d.setShape({x:C[0],y:0,width:b[0]-C[0],height:x[1]})},r.prototype._dispatchZoomAction=function(n){var o=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?REALTIME_ANIMATION_CONFIG:null,start:o[0],end:o[1]})},r.prototype._findCoordRect=function(){var n,o=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!n&&o.length){var s=o[0].model.coordinateSystem;n=s.getRect&&s.getRect()}if(!n){var l=this.api.getWidth(),d=this.api.getHeight();n={x:l*.2,y:d*.2,width:l*.6,height:d*.6}}return n},r.type="dataZoom.slider",r}(DataZoomView$1);function getOtherDim(t){var r={x:"y",y:"x",radius:"angle",angle:"radius"};return r[t]}function getCursor$1(t){return t==="vertical"?"ns-resize":"ew-resize"}var SliderZoomView$1=SliderZoomView;function install$7(t){t.registerComponentModel(SliderZoomModel$1),t.registerComponentView(SliderZoomView$1),installCommon$1(t)}function install$6(t){use(install$8),use(install$7)}var visualDefault={get:function(t,r,n){var o=clone$4((defaultOption[t]||{})[r]);return n&&isArray$1(o)?o[o.length-1]:o}},defaultOption={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]}},visualDefault$1=visualDefault,mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$f,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return r.prototype.init=function(n,o,s){this.mergeDefaultAndTheme(n,s)},r.prototype.optionUpdated=function(n,o){var s=this.option;!o&&replaceVisualOption(s,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},r.prototype.resetVisual=function(n){var o=this.stateList;n=bind$1(n,this),this.controllerVisuals=createVisualMappings(this.option.controller,o,n),this.targetVisuals=createVisualMappings(this.option.target,o,n)},r.prototype.getItemSymbol=function(){return null},r.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,o=[];return n==null||n==="all"?this.ecModel.eachSeries(function(s,l){o.push(l)}):o=normalizeToArray(n),o},r.prototype.eachTargetSeries=function(n,o){each$f(this.getTargetSeriesIndices(),function(s){var l=this.ecModel.getSeriesByIndex(s);l&&n.call(o,l)},this)},r.prototype.isTargetSeries=function(n){var o=!1;return this.eachTargetSeries(function(s){s===n&&(o=!0)}),o},r.prototype.formatValueText=function(n,o,s){var l=this.option,d=l.precision,g=this.dataBound,y=l.formatter,b;s=s||["<",">"],isArray$1(n)&&(n=n.slice(),b=!0);var C=o?n:b?[x(n[0]),x(n[1])]:x(n);if(isString(y))return y.replace("{value}",b?C[0]:C).replace("{value2}",b?C[1]:C);if(isFunction(y))return b?y(n[0],n[1]):y(n);if(b)return n[0]===g[0]?s[0]+" "+C[1]:n[1]===g[1]?s[1]+" "+C[0]:C[0]+" - "+C[1];return C;function x(S){return S===g[0]?"min":S===g[1]?"max":(+S).toFixed(Math.min(d,20))}},r.prototype.resetExtent=function(){var n=this.option,o=asc([n.min,n.max]);this._dataExtent=o},r.prototype.getDataDimensionIndex=function(n){var o=this.option.dimension;if(o!=null)return n.getDimensionIndex(o);for(var s=n.dimensions,l=s.length-1;l>=0;l--){var d=s[l],g=n.getDimensionInfo(d);if(!g.isCalculationCoord)return g.storeDimIndex}},r.prototype.getExtent=function(){return this._dataExtent.slice()},r.prototype.completeVisualOption=function(){var n=this.ecModel,o=this.option,s={inRange:o.inRange,outOfRange:o.outOfRange},l=o.target||(o.target={}),d=o.controller||(o.controller={});merge(l,s),merge(d,s);var g=this.isCategory();y.call(this,l),y.call(this,d),b.call(this,l,"inRange","outOfRange"),C.call(this,d);function y(x){isArray(o.color)&&!x.inRange&&(x.inRange={color:o.color.slice().reverse()}),x.inRange=x.inRange||{color:n.get("gradientColor")}}function b(x,S,_){var w=x[S],$=x[_];w&&!$&&($=x[_]={},each$2(w,function(I,B){if(!!VisualMapping$1.isValidType(B)){var R=visualDefault$1.get(B,"inactive",g);R!=null&&($[B]=R,B==="color"&&!$.hasOwnProperty("opacity")&&!$.hasOwnProperty("colorAlpha")&&($.opacity=[0,0]))}}))}function C(x){var S=(x.inRange||{}).symbol||(x.outOfRange||{}).symbol,_=(x.inRange||{}).symbolSize||(x.outOfRange||{}).symbolSize,w=this.get("inactiveColor"),$=this.getItemSymbol(),I=$||"roundRect";each$2(this.stateList,function(B){var R=this.itemSize,P=x[B];P||(P=x[B]={color:g?w:[w]}),P.symbol==null&&(P.symbol=S&&clone$4(S)||(g?I:[I])),P.symbolSize==null&&(P.symbolSize=_&&clone$4(_)||(g?R[0]:[R[0],R[0]])),P.symbol=mapVisual(P.symbol,function(D){return D==="none"?I:D});var M=P.symbolSize;if(M!=null){var O=-1/0;eachVisual(M,function(D){D>O&&(O=D)}),P.symbolSize=mapVisual(M,function(D){return linearMap$1(D,[0,O],[0,R[0]],!0)})}},this)}},r.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},r.prototype.isCategory=function(){return!!this.option.categories},r.prototype.setSelected=function(n){},r.prototype.getSelected=function(){return null},r.prototype.getValueState=function(n){return null},r.prototype.getVisualMeta=function(n){return null},r.type="visualMap",r.dependencies=["series"],r.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"}},r}(ComponentModel$1),VisualMapModel$1=VisualMapModel,DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.optionUpdated=function(n,o){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(s){s.mappingMethod="linear",s.dataExtent=this.getExtent()}),this._resetRange()},r.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=DEFAULT_BAR_BOUND[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=DEFAULT_BAR_BOUND[1])},r.prototype._resetRange=function(){var n=this.getExtent(),o=this.option.range;!o||o.auto?(n.auto=1,this.option.range=n):isArray$1(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],n[0]),o[1]=Math.min(o[1],n[1]))},r.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),each$f(this.stateList,function(n){var o=this.option.controller[n].symbolSize;o&&o[0]!==o[1]&&(o[0]=o[1]/3)},this)},r.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},r.prototype.getSelected=function(){var n=this.getExtent(),o=asc$2((this.get("range")||[]).slice());return o[0]>n[1]&&(o[0]=n[1]),o[1]>n[1]&&(o[1]=n[1]),o[0]<n[0]&&(o[0]=n[0]),o[1]<n[0]&&(o[1]=n[0]),o},r.prototype.getValueState=function(n){var o=this.option.range,s=this.getExtent();return(o[0]<=s[0]||o[0]<=n)&&(o[1]>=s[1]||n<=o[1])?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(n){var o=[];return this.eachTargetSeries(function(s){var l=[],d=s.getData();d.each(this.getDataDimensionIndex(d),function(g,y){n[0]<=g&&g<=n[1]&&l.push(y)},this),o.push({seriesId:s.id,dataIndex:l})},this),o},r.prototype.getVisualMeta=function(n){var o=getColorStopValues(this,"outOfRange",this.getExtent()),s=getColorStopValues(this,"inRange",this.option.range.slice()),l=[];function d(_,w){l.push({value:_,color:n(_,w)})}for(var g=0,y=0,b=s.length,C=o.length;y<C&&(!s.length||o[y]<=s[0]);y++)o[y]<s[g]&&d(o[y],"outOfRange");for(var x=1;g<b;g++,x=0)x&&l.length&&d(s[g],"outOfRange"),d(s[g],"inRange");for(var x=1;y<C;y++)(!s.length||s[s.length-1]<o[y])&&(x&&(l.length&&d(l[l.length-1].value,"outOfRange"),x=0),d(o[y],"outOfRange"));var S=l.length;return{stops:l,outerColors:[S?l[0].color:"transparent",S?l[S-1].color:"transparent"]}},r.type="visualMap.continuous",r.defaultOption=inheritDefaultOption(VisualMapModel$1.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)"}}),r}(VisualMapModel$1);function getColorStopValues(t,r,n){if(n[0]===n[1])return n.slice();for(var o=200,s=(n[1]-n[0])/o,l=n[0],d=[],g=0;g<=o&&l<n[1];g++)d.push(l),l+=s;return d.push(n[1]),d}var ContinuousModel$1=ContinuousModel,VisualMapView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return r.prototype.init=function(n,o){this.ecModel=n,this.api=o},r.prototype.render=function(n,o,s,l){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,o,s,l)},r.prototype.renderBackground=function(n){var o=this.visualMapModel,s=normalizeCssArray(o.get("padding")||0),l=n.getBoundingRect();n.add(new Rect$3({z2:-1,silent:!0,shape:{x:l.x-s[3],y:l.y-s[0],width:l.width+s[3]+s[1],height:l.height+s[0]+s[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},r.prototype.getControllerVisual=function(n,o,s){s=s||{};var l=s.forceState,d=this.visualMapModel,g={};if(o==="color"){var y=d.get("contentColor");g.color=y}function b(_){return g[_]}function C(_,w){g[_]=w}var x=d.controllerVisuals[l||d.getValueState(n)],S=VisualMapping$1.prepareVisualTypes(x);return each$f(S,function(_){var w=x[_];s.convertOpacityToAlpha&&_==="opacity"&&(_="colorAlpha",w=x.__alphaForOpacity),VisualMapping$1.dependsOn(_,o)&&w&&w.applyVisual(n,b,C)}),g[o]},r.prototype.positionGroup=function(n){var o=this.visualMapModel,s=this.api;positionElement(n,o.getBoxLayoutParams(),{width:s.getWidth(),height:s.getHeight()})},r.prototype.doRender=function(n,o,s,l){},r.type="visualMap",r}(ComponentView$1),VisualMapView$1=VisualMapView,paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign(t,r,n){var o=t.option,s=o.align;if(s!=null&&s!=="auto")return s;for(var l={width:r.getWidth(),height:r.getHeight()},d=o.orient==="horizontal"?1:0,g=paramsSet[d],y=[0,null,10],b={},C=0;C<3;C++)b[paramsSet[1-d][C]]=y[C],b[g[C]]=C===2?n[0]:o[g[C]];var x=[["x","width",3],["y","height",0]][d],S=getLayoutRect(b,l,o.padding);return g[(S.margin[x[2]]||0)+S[x[0]]+S[x[1]]*.5<l[x[1]]*.5?0:1]}function makeHighDownBatch(t,r){return each$f(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(r?r.componentIndex:"")}),t}var linearMap=linearMap$2,each$1=each$f,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return r.prototype.doRender=function(n,o,s,l){this._api=s,(!l||l.type!=="selectDataRange"||l.from!==this.uid)&&this._buildView()},r.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,o=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(o);var s=n.get("text");this._renderEndsText(o,s,0),this._renderEndsText(o,s,1),this._updateView(!0),this.renderBackground(o),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(o)},r.prototype._renderEndsText=function(n,o,s){if(!!o){var l=o[1-s];l=l!=null?l+"":"";var d=this.visualMapModel,g=d.get("textGap"),y=d.itemSize,b=this._shapes.mainGroup,C=this._applyTransform([y[0]/2,s===0?-g:y[1]+g],b),x=this._applyTransform(s===0?"bottom":"top",b),S=this._orient,_=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(_,{x:C[0],y:C[1],verticalAlign:S==="horizontal"?"middle":x,align:S==="horizontal"?x:"center",text:l})}))}},r.prototype._renderBar=function(n){var o=this.visualMapModel,s=this._shapes,l=o.itemSize,d=this._orient,g=this._useHandle,y=getItemAlign(o,this.api,l),b=s.mainGroup=this._createBarGroup(y),C=new Group$4;b.add(C),C.add(s.outOfRange=createPolygon()),C.add(s.inRange=createPolygon(null,g?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),C.setClipPath(new Rect$3({shape:{x:0,y:0,width:l[0],height:l[1],r:3}}));var x=o.textStyleModel.getTextRect("\u56FD"),S=mathMax(x.width,x.height);g&&(s.handleThumbs=[],s.handleLabels=[],s.handleLabelPoints=[],this._createHandle(o,b,0,l,S,d),this._createHandle(o,b,1,l,S,d)),this._createIndicator(o,b,l,S,d),n.add(b)},r.prototype._createHandle=function(n,o,s,l,d,g){var y=bind$1(this._dragHandle,this,s,!1),b=bind$1(this._dragHandle,this,s,!0),C=parsePercent$1(n.get("handleSize"),l[0]),x=createSymbol$1(n.get("handleIcon"),-C/2,-C/2,C,C,null,!0),S=getCursor(this._orient);x.attr({cursor:S,draggable:!0,drift:y,ondragend:b,onmousemove:function(B){stop(B.event)}}),x.x=l[0]/2,x.useStyle(n.getModel("handleStyle").getItemStyle()),x.setStyle({strokeNoScale:!0,strokeFirst:!0}),x.style.lineWidth*=2,x.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(x,!0),o.add(x);var _=this.visualMapModel.textStyleModel,w=new ZRText$1({cursor:S,draggable:!0,drift:y,onmousemove:function(B){stop(B.event)},ondragend:b,style:createTextStyle$1(_,{x:0,y:0,text:""})});w.ensureState("blur").style={opacity:.1},w.stateTransition={duration:200},this.group.add(w);var $=[C,0],I=this._shapes;I.handleThumbs[s]=x,I.handleLabelPoints[s]=$,I.handleLabels[s]=w},r.prototype._createIndicator=function(n,o,s,l,d){var g=parsePercent$1(n.get("indicatorSize"),s[0]),y=createSymbol$1(n.get("indicatorIcon"),-g/2,-g/2,g,g,null,!0);y.attr({cursor:"move",invisible:!0,silent:!0,x:s[0]/2});var b=n.getModel("indicatorStyle").getItemStyle();if(y instanceof ZRImage$1){var C=y.style;y.useStyle(extend({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},b))}else y.useStyle(b);o.add(y);var x=this.visualMapModel.textStyleModel,S=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(x,{x:0,y:0,text:""})});this.group.add(S);var _=[(d==="horizontal"?l/2:HOVER_LINK_OUT)+s[0]/2,0],w=this._shapes;w.indicator=y,w.indicatorLabel=S,w.indicatorLabelPoint=_,this._firstShowIndicator=!0},r.prototype._dragHandle=function(n,o,s,l){if(!!this._useHandle){if(this._dragging=!o,!o){var d=this._applyTransform([s,l],this._shapes.mainGroup,!0);this._updateInterval(n,d[1]),this._hideIndicator(),this._updateView()}o===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),o?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},r.prototype._resetInterval=function(){var n=this.visualMapModel,o=this._dataInterval=n.getSelected(),s=n.getExtent(),l=[0,n.itemSize[1]];this._handleEnds=[linearMap(o[0],s,l,!0),linearMap(o[1],s,l,!0)]},r.prototype._updateInterval=function(n,o){o=o||0;var s=this.visualMapModel,l=this._handleEnds,d=[0,s.itemSize[1]];sliderMove(o,l,d,n,0);var g=s.getExtent();this._dataInterval=[linearMap(l[0],d,g,!0),linearMap(l[1],d,g,!0)]},r.prototype._updateView=function(n){var o=this.visualMapModel,s=o.getExtent(),l=this._shapes,d=[0,o.itemSize[1]],g=n?d:this._handleEnds,y=this._createBarVisual(this._dataInterval,s,g,"inRange"),b=this._createBarVisual(s,s,d,"outOfRange");l.inRange.setStyle({fill:y.barColor}).setShape("points",y.barPoints),l.outOfRange.setStyle({fill:b.barColor}).setShape("points",b.barPoints),this._updateHandle(g,y)},r.prototype._createBarVisual=function(n,o,s,l){var d={forceState:l,convertOpacityToAlpha:!0},g=this._makeColorGradient(n,d),y=[this.getControllerVisual(n[0],"symbolSize",d),this.getControllerVisual(n[1],"symbolSize",d)],b=this._createBarPoints(s,y);return{barColor:new LinearGradient$1(0,0,0,1,g),barPoints:b,handlesColor:[g[0].color,g[g.length-1].color]}},r.prototype._makeColorGradient=function(n,o){var s=100,l=[],d=(n[1]-n[0])/s;l.push({color:this.getControllerVisual(n[0],"color",o),offset:0});for(var g=1;g<s;g++){var y=n[0]+d*g;if(y>n[1])break;l.push({color:this.getControllerVisual(y,"color",o),offset:g/s})}return l.push({color:this.getControllerVisual(n[1],"color",o),offset:1}),l},r.prototype._createBarPoints=function(n,o){var s=this.visualMapModel.itemSize;return[[s[0]-o[0],n[0]],[s[0],n[0]],[s[0],n[1]],[s[0]-o[1],n[1]]]},r.prototype._createBarGroup=function(n){var o=this._orient,s=this.visualMapModel.get("inverse");return new Group$4(o==="horizontal"&&!s?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:o==="horizontal"&&s?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:o==="vertical"&&!s?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},r.prototype._updateHandle=function(n,o){if(!!this._useHandle){var s=this._shapes,l=this.visualMapModel,d=s.handleThumbs,g=s.handleLabels,y=l.itemSize,b=l.getExtent();each$1([0,1],function(C){var x=d[C];x.setStyle("fill",o.handlesColor[C]),x.y=n[C];var S=linearMap(n[C],[0,y[1]],b,!0),_=this.getControllerVisual(S,"symbolSize");x.scaleX=x.scaleY=_/y[0],x.x=y[0]-_/2;var w=applyTransform(s.handleLabelPoints[C],getTransform$1(x,this.group));g[C].setStyle({x:w[0],y:w[1],text:l.formatValueText(this._dataInterval[C]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",s.mainGroup):"center"})},this)}},r.prototype._showIndicator=function(n,o,s,l){var d=this.visualMapModel,g=d.getExtent(),y=d.itemSize,b=[0,y[1]],C=this._shapes,x=C.indicator;if(!!x){x.attr("invisible",!1);var S={convertOpacityToAlpha:!0},_=this.getControllerVisual(n,"color",S),w=this.getControllerVisual(n,"symbolSize"),$=linearMap(n,g,b,!0),I=y[0]-w/2,B={x:x.x,y:x.y};x.y=$,x.x=I;var R=applyTransform(C.indicatorLabelPoint,getTransform$1(x,this.group)),P=C.indicatorLabel;P.attr("invisible",!1);var M=this._applyTransform("left",C.mainGroup),O=this._orient,D=O==="horizontal";P.setStyle({text:(s||"")+d.formatValueText(o),verticalAlign:D?M:"middle",align:D?"center":M});var N={x:I,y:$,style:{fill:_}},H={style:{x:R[0],y:R[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Q={duration:100,easing:"cubicInOut",additive:!0};x.x=B.x,x.y=B.y,x.animateTo(N,Q),P.animateTo(H,Q)}else x.attr(N),P.attr(H);this._firstShowIndicator=!1;var G=this._shapes.handleLabels;if(G)for(var K=0;K<G.length;K++)this._api.enterBlur(G[K])}},r.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(o){if(n._hovering=!0,!n._dragging){var s=n.visualMapModel.itemSize,l=n._applyTransform([o.offsetX,o.offsetY],n._shapes.mainGroup,!0,!0);l[1]=mathMin(mathMax(0,l[1]),s[1]),n._doHoverLinkToSeries(l[1],0<=l[0]&&l[0]<=s[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},r.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},r.prototype._doHoverLinkToSeries=function(n,o){var s=this.visualMapModel,l=s.itemSize;if(!!s.option.hoverLink){var d=[0,l[1]],g=s.getExtent();n=mathMin(mathMax(d[0],n),d[1]);var y=getHalfHoverLinkSize(s,g,d),b=[n-y,n+y],C=linearMap(n,d,g,!0),x=[linearMap(b[0],d,g,!0),linearMap(b[1],d,g,!0)];b[0]<d[0]&&(x[0]=-1/0),b[1]>d[1]&&(x[1]=1/0),o&&(x[0]===-1/0?this._showIndicator(C,x[1],"< ",y):x[1]===1/0?this._showIndicator(C,x[0],"> ",y):this._showIndicator(C,C,"\u2248 ",y));var S=this._hoverLinkDataIndices,_=[];(o||useHoverLinkOnHandle(s))&&(_=this._hoverLinkDataIndices=s.findTargetDataIndices(x));var w=compressBatches(S,_);this._dispatchHighDown("downplay",makeHighDownBatch(w[0],s)),this._dispatchHighDown("highlight",makeHighDownBatch(w[1],s))}},r.prototype._hoverLinkFromSeriesMouseOver=function(n){var o;if(findEventDispatcher(n.target,function(y){var b=getECData(y);if(b.dataIndex!=null)return o=b,!0},!0),!!o){var s=this.ecModel.getSeriesByIndex(o.seriesIndex),l=this.visualMapModel;if(!!l.isTargetSeries(s)){var d=s.getData(o.dataType),g=d.getStore().get(l.getDataDimensionIndex(d),o.dataIndex);isNaN(g)||this._showIndicator(g,g)}}},r.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var o=this._shapes.handleLabels;if(o)for(var s=0;s<o.length;s++)this._api.leaveBlur(o[s])},r.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(n,this.visualMapModel)),n.length=0},r.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},r.prototype._applyTransform=function(n,o,s,l){var d=getTransform$1(o,l?null:this.group);return isArray$1(n)?applyTransform(n,d,s):transformDirection(n,d,s)},r.prototype._dispatchHighDown=function(n,o){o&&o.length&&this.api.dispatchAction({type:n,batch:o})},r.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},r.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},r.type="visualMap.continuous",r}(VisualMapView$1);function createPolygon(t,r,n,o){return new Polygon$1({shape:{points:t},draggable:!!n,cursor:r,drift:n,onmousemove:function(s){stop(s.event)},ondragend:o})}function getHalfHoverLinkSize(t,r,n){var o=HOVER_LINK_SIZE/2,s=t.get("hoverLinkDataSize");return s&&(o=linearMap(s,r,n,!0)/2),o}function useHoverLinkOnHandle(t){var r=t.get("hoverLinkOnHandle");return!!(r==null?t.get("realtime"):r)}function getCursor(t){return t==="vertical"?"ns-resize":"ew-resize"}var ContinuousView$1=ContinuousView,visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function(t,r){r.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function(t,r){var n=[];return r.eachComponent("visualMap",function(o){var s=t.pipelineContext;!o.isTargetSeries(t)||s&&s.large||n.push(incrementalApplyVisual(o.stateList,o.targetVisuals,bind$1(o.getValueState,o),o.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,r){var n=t.getData(),o=[];r.eachComponent("visualMap",function(s){if(s.isTargetSeries(t)){var l=s.getVisualMeta(bind$1(getColorVisual,null,t,s))||{stops:[],outerColors:[]},d=s.getDataDimensionIndex(n);d>=0&&(l.dimension=d,o.push(l))}}),t.getData().setVisual("visualMeta",o)}}];function getColorVisual(t,r,n,o){for(var s=r.targetVisuals[o],l=VisualMapping$1.prepareVisualTypes(s),d={color:getVisualFromData(t.getData(),"color")},g=0,y=l.length;g<y;g++){var b=l[g],C=s[b==="opacity"?"__alphaForOpacity":b];C&&C.applyVisual(n,x,S)}return d.color;function x(_){return d[_]}function S(_,w){d[_]=w}}var each=each$f;function visualMapPreprocessor(t){var r=t&&t.visualMap;isArray$1(r)||(r=r?[r]:[]),each(r,function(n){if(!!n){has(n,"splitList")&&!has(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var o=n.pieces;o&&isArray$1(o)&&each(o,function(s){isObject$3(s)&&(has(s,"start")&&!has(s,"min")&&(s.min=s.start),has(s,"end")&&!has(s,"max")&&(s.max=s.end))})}})}function has(t,r){return t&&t.hasOwnProperty&&t.hasOwnProperty(r)}var installed=!1;function installCommon(t){installed||(installed=!0,t.registerSubTypeDefaulter("visualMap",function(r){return!r.categories&&(!(r.pieces?r.pieces.length>0:r.splitNumber>0)||r.calculable)?"continuous":"piecewise"}),t.registerAction(visualMapActionInfo,visualMapActionHander),each$f(visualMapEncodingHandlers,function(r){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,r)}),t.registerPreprocessor(visualMapPreprocessor))}function install$5(t){t.registerComponentModel(ContinuousModel$1),t.registerComponentView(ContinuousView$1),installCommon(t)}var PiecewiseModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n._pieceList=[],n}return r.prototype.optionUpdated=function(n,o){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var s=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(n,o);var l=this.option.categories;this.resetVisual(function(d,g){s==="categories"?(d.mappingMethod="category",d.categories=clone$4(l)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=map$1(this._pieceList,function(y){return y=clone$4(y),g!=="inRange"&&(y.visual=null),y}))})},r.prototype.completeVisualOption=function(){var n=this.option,o={},s=VisualMapping$1.listVisualTypes(),l=this.isCategory();each$f(n.pieces,function(g){each$f(s,function(y){g.hasOwnProperty(y)&&(o[y]=1)})}),each$f(o,function(g,y){var b=!1;each$f(this.stateList,function(C){b=b||d(n,C,y)||d(n.target,C,y)},this),!b&&each$f(this.stateList,function(C){(n[C]||(n[C]={}))[y]=visualDefault$1.get(y,C==="inRange"?"active":"inactive",l)})},this);function d(g,y,b){return g&&g[y]&&g[y].hasOwnProperty(b)}t.prototype.completeVisualOption.apply(this,arguments)},r.prototype._resetSelected=function(n,o){var s=this.option,l=this._pieceList,d=(o?s:n).selected||{};if(s.selected=d,each$f(l,function(y,b){var C=this.getSelectedMapKey(y);d.hasOwnProperty(C)||(d[C]=!0)},this),s.selectedMode==="single"){var g=!1;each$f(l,function(y,b){var C=this.getSelectedMapKey(y);d[C]&&(g?d[C]=!1:g=!0)},this)}},r.prototype.getItemSymbol=function(){return this.get("itemSymbol")},r.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},r.prototype.getPieceList=function(){return this._pieceList},r.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},r.prototype.setSelected=function(n){this.option.selected=clone$4(n)},r.prototype.getValueState=function(n){var o=VisualMapping$1.findPieceIndex(n,this._pieceList);return o!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[o])]?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function(n){var o=[],s=this._pieceList;return this.eachTargetSeries(function(l){var d=[],g=l.getData();g.each(this.getDataDimensionIndex(g),function(y,b){var C=VisualMapping$1.findPieceIndex(y,s);C===n&&d.push(b)},this),o.push({seriesId:l.id,dataIndex:d})},this),o},r.prototype.getRepresentValue=function(n){var o;if(this.isCategory())o=n.value;else if(n.value!=null)o=n.value;else{var s=n.interval||[];o=s[0]===-1/0&&s[1]===1/0?0:(s[0]+s[1])/2}return o},r.prototype.getVisualMeta=function(n){if(this.isCategory())return;var o=[],s=["",""],l=this;function d(C,x){var S=l.getRepresentValue({interval:C});x||(x=l.getValueState(S));var _=n(S,x);C[0]===-1/0?s[0]=_:C[1]===1/0?s[1]=_:o.push({value:C[0],color:_},{value:C[1],color:_})}var g=this._pieceList.slice();if(!g.length)g.push({interval:[-1/0,1/0]});else{var y=g[0].interval[0];y!==-1/0&&g.unshift({interval:[-1/0,y]}),y=g[g.length-1].interval[1],y!==1/0&&g.push({interval:[y,1/0]})}var b=-1/0;return each$f(g,function(C){var x=C.interval;x&&(x[0]>b&&d([b,x[0]],"outOfRange"),d(x.slice()),b=x[1])},this),{stops:o,outerColors:s}},r.type="visualMap.piecewise",r.defaultOption=inheritDefaultOption(VisualMapModel$1.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}),r}(VisualMapModel$1),resetMethods={splitNumber:function(t){var r=this.option,n=Math.min(r.precision,20),o=this.getExtent(),s=r.splitNumber;s=Math.max(parseInt(s,10),1),r.splitNumber=s;for(var l=(o[1]-o[0])/s;+l.toFixed(n)!==l&&n<5;)n++;r.precision=n,l=+l.toFixed(n),r.minOpen&&t.push({interval:[-1/0,o[0]],close:[0,0]});for(var d=0,g=o[0];d<s;g+=l,d++){var y=d===s-1?o[1]:g+l;t.push({interval:[g,y],close:[1,1]})}r.maxOpen&&t.push({interval:[o[1],1/0],close:[0,0]}),reformIntervals(t),each$f(t,function(b,C){b.index=C,b.text=this.formatValueText(b.interval)},this)},categories:function(t){var r=this.option;each$f(r.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),normalizeReverse(r,t)},pieces:function(t){var r=this.option;each$f(r.pieces,function(n,o){isObject$3(n)||(n={value:n});var s={text:"",index:o};if(n.label!=null&&(s.text=n.label),n.hasOwnProperty("value")){var l=s.value=n.value;s.interval=[l,l],s.close=[1,1]}else{for(var d=s.interval=[],g=s.close=[0,0],y=[1,0,1],b=[-1/0,1/0],C=[],x=0;x<2;x++){for(var S=[["gte","gt","min"],["lte","lt","max"]][x],_=0;_<3&&d[x]==null;_++)d[x]=n[S[_]],g[x]=y[_],C[x]=_===2;d[x]==null&&(d[x]=b[x])}C[0]&&d[1]===1/0&&(g[0]=0),C[1]&&d[0]===-1/0&&(g[1]=0),d[0]===d[1]&&g[0]&&g[1]&&(s.value=d[0])}s.visual=VisualMapping$1.retrieveVisuals(n),t.push(s)},this),normalizeReverse(r,t),reformIntervals(t),each$f(t,function(n){var o=n.close,s=[["<","\u2264"][o[1]],[">","\u2265"][o[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,s)},this)}};function normalizeReverse(t,r){var n=t.inverse;(t.orient==="vertical"?!n:n)&&r.reverse()}var PiecewiseModel$1=PiecewiseModel,PiecewiseVisualMapView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=r.type,n}return r.prototype.doRender=function(){var n=this.group;n.removeAll();var o=this.visualMapModel,s=o.get("textGap"),l=o.textStyleModel,d=l.getFont(),g=l.getTextColor(),y=this._getItemAlign(),b=o.itemSize,C=this._getViewData(),x=C.endsText,S=retrieve(o.get("showLabel",!0),!x);x&&this._renderEndsText(n,x[0],b,S,y),each$f(C.viewPieceList,function(_){var w=_.piece,$=new Group$4;$.onclick=bind$1(this._onItemClick,this,w),this._enableHoverLink($,_.indexInModelPieceList);var I=o.getRepresentValue(w);if(this._createItemSymbol($,I,[0,0,b[0],b[1]]),S){var B=this.visualMapModel.getValueState(I);$.add(new ZRText$1({style:{x:y==="right"?-s:b[0]+s,y:b[1]/2,text:w.text,verticalAlign:"middle",align:y,font:d,fill:g,opacity:B==="outOfRange"?.5:1}}))}n.add($)},this),x&&this._renderEndsText(n,x[1],b,S,y),box(o.get("orient"),n,o.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},r.prototype._enableHoverLink=function(n,o){var s=this;n.on("mouseover",function(){return l("highlight")}).on("mouseout",function(){return l("downplay")});var l=function(d){var g=s.visualMapModel;g.option.hoverLink&&s.api.dispatchAction({type:d,batch:makeHighDownBatch(g.findTargetDataIndices(o),g)})}},r.prototype._getItemAlign=function(){var n=this.visualMapModel,o=n.option;if(o.orient==="vertical")return getItemAlign(n,this.api,n.itemSize);var s=o.align;return(!s||s==="auto")&&(s="left"),s},r.prototype._renderEndsText=function(n,o,s,l,d){if(!!o){var g=new Group$4,y=this.visualMapModel.textStyleModel;g.add(new ZRText$1({style:createTextStyle$1(y,{x:l?d==="right"?s[0]:0:s[0]/2,y:s[1]/2,verticalAlign:"middle",align:l?d:"center",text:o})})),n.add(g)}},r.prototype._getViewData=function(){var n=this.visualMapModel,o=map$1(n.getPieceList(),function(g,y){return{piece:g,indexInModelPieceList:y}}),s=n.get("text"),l=n.get("orient"),d=n.get("inverse");return(l==="horizontal"?d:!d)?o.reverse():s&&(s=s.slice().reverse()),{viewPieceList:o,endsText:s}},r.prototype._createItemSymbol=function(n,o,s){n.add(createSymbol$1(this.getControllerVisual(o,"symbol"),s[0],s[1],s[2],s[3],this.getControllerVisual(o,"color")))},r.prototype._onItemClick=function(n){var o=this.visualMapModel,s=o.option,l=s.selectedMode;if(!!l){var d=clone$4(s.selected),g=o.getSelectedMapKey(n);l==="single"||l===!0?(d[g]=!0,each$f(d,function(y,b){d[b]=b===g})):d[g]=!d[g],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:d})}},r.type="visualMap.piecewise",r}(VisualMapView$1),PiecewiseView=PiecewiseVisualMapView;function install$4(t){t.registerComponentModel(PiecewiseModel$1),t.registerComponentView(PiecewiseView),installCommon(t)}function install$3(t){use(install$5),use(install$4)}var DEFAULT_OPTION={label:{enabled:!0},decal:{show:!1}},inner=makeInner(),decalPaletteScope={};function ariaVisual(t,r){var n=t.getModel("aria");if(!n.get("enabled"))return;var o=clone$4(DEFAULT_OPTION);merge(o.label,t.getLocaleModel().get("aria"),!1),merge(n.option,o,!1),s(),l();function s(){var b=n.getModel("decal"),C=b.get("show");if(C){var x=createHashMap();t.eachSeries(function(S){if(!S.isColorBySeries()){var _=x.get(S.type);_||(_={},x.set(S.type,_)),inner(S).scope=_}}),t.eachRawSeries(function(S){if(t.isSeriesFiltered(S))return;if(isFunction(S.enableAriaDecal)){S.enableAriaDecal();return}var _=S.getData();if(S.isColorBySeries()){var R=getDecalFromPalette(S.ecModel,S.name,decalPaletteScope,t.getSeriesCount()),P=_.getVisual("decal");_.setVisual("decal",M(P,R))}else{var w=S.getRawData(),$={},I=inner(S).scope;_.each(function(O){var D=_.getRawIndex(O);$[D]=O});var B=w.count();w.each(function(O){var D=$[O],N=w.getName(O)||O+"",H=getDecalFromPalette(S.ecModel,N,I,B),Q=_.getItemVisual(D,"decal");_.setItemVisual(D,"decal",M(Q,H))})}function M(O,D){var N=O?extend(extend({},D),O):D;return N.dirty=!0,N}})}}function l(){var b=t.getLocaleModel().get("aria"),C=n.getModel("label");if(C.option=defaults(C.option,b),!!C.get("enabled")){var x=r.getZr().dom;if(C.get("description")){x.setAttribute("aria-label",C.get("description"));return}var S=t.getSeriesCount(),_=C.get(["data","maxCount"])||10,w=C.get(["series","maxCount"])||10,$=Math.min(S,w),I;if(!(S<1)){var B=g();if(B){var R=C.get(["general","withTitle"]);I=d(R,{title:B})}else I=C.get(["general","withoutTitle"]);var P=[],M=S>1?C.get(["series","multiple","prefix"]):C.get(["series","single","prefix"]);I+=d(M,{seriesCount:S}),t.eachSeries(function(H,Q){if(Q<$){var G=void 0,K=H.get("name"),W=K?"withName":"withoutName";G=S>1?C.get(["series","multiple",W]):C.get(["series","single",W]),G=d(G,{seriesId:H.seriesIndex,seriesName:H.get("name"),seriesType:y(H.subType)});var j=H.getData();if(j.count()>_){var Y=C.get(["data","partialData"]);G+=d(Y,{displayCnt:_})}else G+=C.get(["data","allData"]);for(var q=C.get(["data","separator","middle"]),X=C.get(["data","separator","end"]),re=[],te=0;te<j.count();te++)if(te<_){var oe=j.getName(te),ae=j.getValues(te),se=C.get(["data",oe?"withName":"withoutName"]);re.push(d(se,{name:oe,value:ae.join(q)}))}G+=re.join(q)+X,P.push(G)}});var O=C.getModel(["series","multiple","separator"]),D=O.get("middle"),N=O.get("end");I+=P.join(D)+N,x.setAttribute("aria-label",I)}}}function d(b,C){if(!isString(b))return b;var x=b;return each$f(C,function(S,_){x=x.replace(new RegExp("\\{\\s*"+_+"\\s*\\}","g"),S)}),x}function g(){var b=t.get("title");return b&&b.length&&(b=b[0]),b&&b.text}function y(b){return t.getLocaleModel().get(["series","typeNames"])[b]||"\u81EA\u5B9A\u4E49\u56FE"}}function ariaPreprocessor(t){if(!(!t||!t.aria)){var r=t.aria;r.show!=null&&(r.enabled=r.show),r.label=r.label||{},each$f(["description","general","series","data"],function(n){r[n]!=null&&(r.label[n]=r[n])})}}function install$2(t){t.registerPreprocessor(ariaPreprocessor),t.registerVisual(t.PRIORITY.VISUAL.ARIA,ariaVisual)}var RELATIONAL_EXPRESSION_OP_ALIAS_MAP={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},RegExpEvaluator=function(){function t(r){var n=this._condVal=isString(r)?new RegExp(r):isRegExp(r)?r:null;if(n==null){var o="";throwError(o)}}return t.prototype.evaluate=function(r){var n=typeof r;return isString(n)?this._condVal.test(r):isNumber(n)?this._condVal.test(r+""):!1},t}(),ConstConditionInternal=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),AndConditionInternal=function(){function t(){}return t.prototype.evaluate=function(){for(var r=this.children,n=0;n<r.length;n++)if(!r[n].evaluate())return!1;return!0},t}(),OrConditionInternal=function(){function t(){}return t.prototype.evaluate=function(){for(var r=this.children,n=0;n<r.length;n++)if(r[n].evaluate())return!0;return!1},t}(),NotConditionInternal=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),RelationalConditionInternal=function(){function t(){}return t.prototype.evaluate=function(){for(var r=!!this.valueParser,n=this.getValue,o=n(this.valueGetterParam),s=r?this.valueParser(o):null,l=0;l<this.subCondList.length;l++)if(!this.subCondList[l].evaluate(r?s:o))return!1;return!0},t}();function parseOption(t,r){if(t===!0||t===!1){var n=new ConstConditionInternal;return n.value=t,n}var o="";return isObjectNotArray(t)||throwError(o),t.and?parseAndOrOption("and",t,r):t.or?parseAndOrOption("or",t,r):t.not?parseNotOption(t,r):parseRelationalOption(t,r)}function parseAndOrOption(t,r,n){var o=r[t],s="";isArray$1(o)||throwError(s),o.length||throwError(s);var l=t==="and"?new AndConditionInternal:new OrConditionInternal;return l.children=map$1(o,function(d){return parseOption(d,n)}),l.children.length||throwError(s),l}function parseNotOption(t,r){var n=t.not,o="";isObjectNotArray(n)||throwError(o);var s=new NotConditionInternal;return s.child=parseOption(n,r),s.child||throwError(o),s}function parseRelationalOption(t,r){for(var n="",o=r.prepareGetValue(t),s=[],l=keys(t),d=t.parser,g=d?getRawValueParser(d):null,y=0;y<l.length;y++){var b=l[y];if(!(b==="parser"||r.valueGetterAttrMap.get(b))){var C=hasOwn(RELATIONAL_EXPRESSION_OP_ALIAS_MAP,b)?RELATIONAL_EXPRESSION_OP_ALIAS_MAP[b]:b,x=t[b],S=g?g(x):x,_=createFilterComparator(C,S)||C==="reg"&&new RegExpEvaluator(S);_||throwError(n),s.push(_)}}s.length||throwError(n);var w=new RelationalConditionInternal;return w.valueGetterParam=o,w.valueParser=g,w.getValue=r.getValue,w.subCondList=s,w}function isObjectNotArray(t){return isObject$3(t)&&!isArrayLike(t)}var ConditionalExpressionParsed=function(){function t(r,n){this._cond=parseOption(r,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function parseConditionalExpression(t,r){return new ConditionalExpressionParsed(t,r)}var filterTransform={type:"echarts:filter",transform:function(t){for(var r=t.upstream,n,o=parseConditionalExpression(t.config,{valueGetterAttrMap:createHashMap({dimension:!0}),prepareGetValue:function(g){var y="",b=g.dimension;hasOwn(g,"dimension")||throwError(y);var C=r.getDimensionInfo(b);return C||throwError(y),{dimIdx:C.index}},getValue:function(g){return r.retrieveValueFromItem(n,g.dimIdx)}}),s=[],l=0,d=r.count();l<d;l++)n=r.getRawDataItem(l),o.evaluate()&&s.push(n);return{data:s}}},sortTransform={type:"echarts:sort",transform:function(t){var r=t.upstream,n=t.config,o="",s=normalizeToArray(n);s.length||throwError(o);var l=[];each$f(s,function(C){var x=C.dimension,S=C.order,_=C.parser,w=C.incomparable;if(x==null&&throwError(o),S!=="asc"&&S!=="desc"&&throwError(o),w&&w!=="min"&&w!=="max"){var $="";throwError($)}if(S!=="asc"&&S!=="desc"){var I="";throwError(I)}var B=r.getDimensionInfo(x);B||throwError(o);var R=_?getRawValueParser(_):null;_&&!R&&throwError(o),l.push({dimIdx:B.index,parser:R,comparator:new SortOrderComparator(S,w)})});var d=r.sourceFormat;d!==SOURCE_FORMAT_ARRAY_ROWS&&d!==SOURCE_FORMAT_OBJECT_ROWS&&throwError(o);for(var g=[],y=0,b=r.count();y<b;y++)g.push(r.getRawDataItem(y));return g.sort(function(C,x){for(var S=0;S<l.length;S++){var _=l[S],w=r.retrieveValueFromItem(C,_.dimIdx),$=r.retrieveValueFromItem(x,_.dimIdx);_.parser&&(w=_.parser(w),$=_.parser($));var I=_.comparator.evaluate(w,$);if(I!==0)return I}return 0}),{data:g}}};function install$1(t){t.registerTransform(filterTransform),t.registerTransform(sortTransform)}var DatasetModel=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return r.prototype.init=function(n,o,s){t.prototype.init.call(this,n,o,s),this._sourceManager=new SourceManager(this),disableTransformOptionMerge(this)},r.prototype.mergeOption=function(n,o){t.prototype.mergeOption.call(this,n,o),disableTransformOptionMerge(this)},r.prototype.optionUpdated=function(){this._sourceManager.dirty()},r.prototype.getSourceManager=function(){return this._sourceManager},r.type="dataset",r.defaultOption={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN},r}(ComponentModel$1),DatasetView=function(t){__extends$1(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return r.type="dataset",r}(ComponentView$1);function install(t){t.registerComponentModel(DatasetModel),t.registerComponentView(DatasetView)}var CMD=PathProxy$1.CMD;function aroundEqual(t,r){return Math.abs(t-r)<1e-5}function pathToBezierCurves(t){var r=t.data,n=t.len(),o=[],s,l=0,d=0,g=0,y=0;function b(j,Y){s&&s.length>2&&o.push(s),s=[j,Y]}function C(j,Y,q,X){aroundEqual(j,q)&&aroundEqual(Y,X)||s.push(j,Y,q,X,q,X)}function x(j,Y,q,X,re,te){var oe=Math.abs(Y-j),ae=Math.tan(oe/4)*4/3,se=Y<j?-1:1,ue=Math.cos(j),Ae=Math.sin(j),pe=Math.cos(Y),he=Math.sin(Y),Ce=ue*re+q,ve=Ae*te+X,ye=pe*re+q,Be=he*te+X,Se=re*ae*se,Ee=te*ae*se;s.push(Ce-Se*Ae,ve+Ee*ue,ye+Se*he,Be-Ee*pe,ye,Be)}for(var S,_,w,$,I=0;I<n;){var B=r[I++],R=I===1;switch(R&&(l=r[I],d=r[I+1],g=l,y=d,(B===CMD.L||B===CMD.C||B===CMD.Q)&&(s=[g,y])),B){case CMD.M:l=g=r[I++],d=y=r[I++],b(g,y);break;case CMD.L:S=r[I++],_=r[I++],C(l,d,S,_),l=S,d=_;break;case CMD.C:s.push(r[I++],r[I++],r[I++],r[I++],l=r[I++],d=r[I++]);break;case CMD.Q:S=r[I++],_=r[I++],w=r[I++],$=r[I++],s.push(l+2/3*(S-l),d+2/3*(_-d),w+2/3*(S-w),$+2/3*(_-$),w,$),l=w,d=$;break;case CMD.A:var P=r[I++],M=r[I++],O=r[I++],D=r[I++],N=r[I++],H=r[I++]+N;I+=1;var Q=!r[I++];S=Math.cos(N)*O+P,_=Math.sin(N)*D+M,R?(g=S,y=_,b(g,y)):C(l,d,S,_),l=Math.cos(H)*O+P,d=Math.sin(H)*D+M;for(var G=(Q?-1:1)*Math.PI/2,K=N;Q?K>H:K<H;K+=G){var W=Q?Math.max(K+G,H):Math.min(K+G,H);x(K,W,P,M,O,D)}break;case CMD.R:g=l=r[I++],y=d=r[I++],S=g+r[I++],_=y+r[I++],b(S,y),C(S,y,S,_),C(S,_,g,_),C(g,_,g,y),C(g,y,S,y);break;case CMD.Z:s&&C(l,d,g,y),l=g,d=y;break}}return s&&s.length>2&&o.push(s),o}function adpativeBezier(t,r,n,o,s,l,d,g,y,b){if(aroundEqual(t,n)&&aroundEqual(r,o)&&aroundEqual(s,d)&&aroundEqual(l,g)){y.push(d,g);return}var C=2/b,x=C*C,S=d-t,_=g-r,w=Math.sqrt(S*S+_*_);S/=w,_/=w;var $=n-t,I=o-r,B=s-d,R=l-g,P=$*$+I*I,M=B*B+R*R;if(P<x&&M<x){y.push(d,g);return}var O=S*$+_*I,D=-S*B-_*R,N=P-O*O,H=M-D*D;if(N<x&&O>=0&&H<x&&D>=0){y.push(d,g);return}var Q=[],G=[];cubicSubdivide(t,n,s,d,.5,Q),cubicSubdivide(r,o,l,g,.5,G),adpativeBezier(Q[0],G[0],Q[1],G[1],Q[2],G[2],Q[3],G[3],y,b),adpativeBezier(Q[4],G[4],Q[5],G[5],Q[6],G[6],Q[7],G[7],y,b)}function pathToPolygons(t,r){var n=pathToBezierCurves(t),o=[];r=r||1;for(var s=0;s<n.length;s++){var l=n[s],d=[],g=l[0],y=l[1];d.push(g,y);for(var b=2;b<l.length;){var C=l[b++],x=l[b++],S=l[b++],_=l[b++],w=l[b++],$=l[b++];adpativeBezier(g,y,C,x,S,_,w,$,d,r),g=w,y=$}o.push(d)}return o}function getDividingGrids(t,r,n){var o=t[r],s=t[1-r],l=Math.abs(o/s),d=Math.ceil(Math.sqrt(l*n)),g=Math.floor(n/d);g===0&&(g=1,d=n);for(var y=[],b=0;b<d;b++)y.push(g);var C=d*g,x=n-C;if(x>0)for(var b=0;b<x;b++)y[b%d]+=1;return y}function divideSector(t,r,n){for(var o=t.r0,s=t.r,l=t.startAngle,d=t.endAngle,g=Math.abs(d-l),y=g*s,b=s-o,C=y>Math.abs(b),x=getDividingGrids([y,b],C?0:1,r),S=(C?g:b)/x.length,_=0;_<x.length;_++)for(var w=(C?b:g)/x[_],$=0;$<x[_];$++){var I={};C?(I.startAngle=l+S*_,I.endAngle=l+S*(_+1),I.r0=o+w*$,I.r=o+w*($+1)):(I.startAngle=l+w*$,I.endAngle=l+w*($+1),I.r0=o+S*_,I.r=o+S*(_+1)),I.clockwise=t.clockwise,I.cx=t.cx,I.cy=t.cy,n.push(I)}}function divideRect(t,r,n){for(var o=t.width,s=t.height,l=o>s,d=getDividingGrids([o,s],l?0:1,r),g=l?"width":"height",y=l?"height":"width",b=l?"x":"y",C=l?"y":"x",x=t[g]/d.length,S=0;S<d.length;S++)for(var _=t[y]/d[S],w=0;w<d[S];w++){var $={};$[b]=S*x,$[C]=w*_,$[g]=x,$[y]=_,$.x+=t.x,$.y+=t.y,n.push($)}}function crossProduct2d(t,r,n,o){return t*o-n*r}function lineLineIntersect(t,r,n,o,s,l,d,g){var y=n-t,b=o-r,C=d-s,x=g-l,S=crossProduct2d(C,x,y,b);if(Math.abs(S)<1e-6)return null;var _=t-s,w=r-l,$=crossProduct2d(_,w,C,x)/S;return $<0||$>1?null:new Point$1($*y+t,$*b+r)}function projPtOnLine(t,r,n){var o=new Point$1;Point$1.sub(o,n,r),o.normalize();var s=new Point$1;Point$1.sub(s,t,r);var l=s.dot(o);return l}function addToPoly(t,r){var n=t[t.length-1];n&&n[0]===r[0]&&n[1]===r[1]||t.push(r)}function splitPolygonByLine(t,r,n){for(var o=t.length,s=[],l=0;l<o;l++){var d=t[l],g=t[(l+1)%o],y=lineLineIntersect(d[0],d[1],g[0],g[1],r.x,r.y,n.x,n.y);y&&s.push({projPt:projPtOnLine(y,r,n),pt:y,idx:l})}if(s.length<2)return[{points:t},{points:t}];s.sort(function(I,B){return I.projPt-B.projPt});var b=s[0],C=s[s.length-1];if(C.idx<b.idx){var x=b;b=C,C=x}for(var S=[b.pt.x,b.pt.y],_=[C.pt.x,C.pt.y],w=[S],$=[_],l=b.idx+1;l<=C.idx;l++)addToPoly(w,t[l].slice());addToPoly(w,_),addToPoly(w,S);for(var l=C.idx+1;l<=b.idx+o;l++)addToPoly($,t[l%o].slice());return addToPoly($,S),addToPoly($,_),[{points:w},{points:$}]}function binaryDividePolygon(t){var r=t.points,n=[],o=[];fromPoints(r,n,o);var s=new BoundingRect$1(n[0],n[1],o[0]-n[0],o[1]-n[1]),l=s.width,d=s.height,g=s.x,y=s.y,b=new Point$1,C=new Point$1;return l>d?(b.x=C.x=g+l/2,b.y=y,C.y=y+d):(b.y=C.y=y+d/2,b.x=g,C.x=g+l),splitPolygonByLine(r,b,C)}function binaryDivideRecursive(t,r,n,o){if(n===1)o.push(r);else{var s=Math.floor(n/2),l=t(r);binaryDivideRecursive(t,l[0],s,o),binaryDivideRecursive(t,l[1],n-s,o)}return o}function clone(t,r){for(var n=[],o=0;o<r;o++)n.push(clonePath(t));return n}function copyPathProps(t,r){r.setStyle(t.style),r.z=t.z,r.z2=t.z2,r.zlevel=t.zlevel}function polygonConvert(t){for(var r=[],n=0;n<t.length;)r.push([t[n++],t[n++]]);return r}function split(t,r){var n=[],o=t.shape,s;switch(t.type){case"rect":divideRect(o,r,n),s=Rect$3;break;case"sector":divideSector(o,r,n),s=Sector$1;break;case"circle":divideSector({r0:0,r:o.r,startAngle:0,endAngle:Math.PI*2,cx:o.cx,cy:o.cy},r,n),s=Sector$1;break;default:var l=t.getComputedTransform(),d=l?Math.sqrt(Math.max(l[0]*l[0]+l[1]*l[1],l[2]*l[2]+l[3]*l[3])):1,g=map$1(pathToPolygons(t.getUpdatedPathProxy(),d),function(B){return polygonConvert(B)}),y=g.length;if(y===0)binaryDivideRecursive(binaryDividePolygon,{points:g[0]},r,n);else if(y===r)for(var b=0;b<y;b++)n.push({points:g[b]});else{var C=0,x=map$1(g,function(B){var R=[],P=[];fromPoints(B,R,P);var M=(P[1]-R[1])*(P[0]-R[0]);return C+=M,{poly:B,area:M}});x.sort(function(B,R){return R.area-B.area});for(var S=r,b=0;b<y;b++){var _=x[b];if(S<=0)break;var w=b===y-1?S:Math.ceil(_.area/C*r);w<0||(binaryDivideRecursive(binaryDividePolygon,{points:_.poly},w,n),S-=w)}}s=Polygon$1;break}if(!s)return clone(t,r);for(var $=[],b=0;b<n.length;b++){var I=new s;I.setShape(n[b]),copyPathProps(t,I),$.push(I)}return $}function alignSubpath(t,r){var n=t.length,o=r.length;if(n===o)return[t,r];for(var s=[],l=[],d=n<o?t:r,g=Math.min(n,o),y=Math.abs(o-n)/6,b=(g-2)/6,C=Math.ceil(y/b)+1,x=[d[0],d[1]],S=y,_=2;_<g;){var w=d[_-2],$=d[_-1],I=d[_++],B=d[_++],R=d[_++],P=d[_++],M=d[_++],O=d[_++];if(S<=0){x.push(I,B,R,P,M,O);continue}for(var D=Math.min(S,C-1)+1,N=1;N<=D;N++){var H=N/D;cubicSubdivide(w,I,R,M,H,s),cubicSubdivide($,B,P,O,H,l),w=s[3],$=l[3],x.push(s[1],l[1],s[2],l[2],w,$),I=s[5],B=l[5],R=s[6],P=l[6]}S-=D-1}return d===t?[x,r]:[t,x]}function createSubpath(t,r){for(var n=t.length,o=t[n-2],s=t[n-1],l=[],d=0;d<r.length;)l[d++]=o,l[d++]=s;return l}function alignBezierCurves(t,r){for(var n,o,s,l=[],d=[],g=0;g<Math.max(t.length,r.length);g++){var y=t[g],b=r[g],C=void 0,x=void 0;y?b?(n=alignSubpath(y,b),C=n[0],x=n[1],o=C,s=x):(x=createSubpath(s||y,y),C=y):(C=createSubpath(o||b,b),x=b),l.push(C),d.push(x)}return[l,d]}function centroid(t){for(var r=0,n=0,o=0,s=t.length,l=0,d=s-2;l<s;d=l,l+=2){var g=t[d],y=t[d+1],b=t[l],C=t[l+1],x=g*C-b*y;r+=x,n+=(g+b)*x,o+=(y+C)*x}return r===0?[t[0]||0,t[1]||0]:[n/r/3,o/r/3,r]}function findBestRingOffset(t,r,n,o){for(var s=(t.length-2)/6,l=1/0,d=0,g=t.length,y=g-2,b=0;b<s;b++){for(var C=b*6,x=0,S=0;S<g;S+=2){var _=S===0?C:(C+S-2)%y+2,w=t[_]-n[0],$=t[_+1]-n[1],I=r[S]-o[0],B=r[S+1]-o[1],R=I-w,P=B-$;x+=R*R+P*P}x<l&&(l=x,d=b)}return d}function reverse(t){for(var r=[],n=t.length,o=0;o<n;o+=2)r[o]=t[n-o-2],r[o+1]=t[n-o-1];return r}function findBestMorphingRotation(t,r,n,o){for(var s=[],l,d=0;d<t.length;d++){var g=t[d],y=r[d],b=centroid(g),C=centroid(y);l==null&&(l=b[2]<0!=C[2]<0);var x=[],S=[],_=0,w=1/0,$=[],I=g.length;l&&(g=reverse(g));for(var B=findBestRingOffset(g,y,b,C)*6,R=I-2,P=0;P<R;P+=2){var M=(B+P)%R+2;x[P+2]=g[M]-b[0],x[P+3]=g[M+1]-b[1]}if(x[0]=g[B]-b[0],x[1]=g[B+1]-b[1],n>0)for(var O=o/n,D=-o/2;D<=o/2;D+=O){for(var N=Math.sin(D),H=Math.cos(D),Q=0,P=0;P<g.length;P+=2){var G=x[P],K=x[P+1],W=y[P]-C[0],j=y[P+1]-C[1],Y=W*H-j*N,q=W*N+j*H;$[P]=Y,$[P+1]=q;var X=Y-G,re=q-K;Q+=X*X+re*re}if(Q<w){w=Q,_=D;for(var te=0;te<$.length;te++)S[te]=$[te]}}else for(var oe=0;oe<I;oe+=2)S[oe]=y[oe]-C[0],S[oe+1]=y[oe+1]-C[1];s.push({from:x,to:S,fromCp:b,toCp:C,rotation:-_})}return s}function isCombineMorphing(t){return t.__isCombineMorphing}var SAVED_METHOD_PREFIX="__mOriginal_";function saveAndModifyMethod(t,r,n){var o=SAVED_METHOD_PREFIX+r,s=t[o]||t[r];t[o]||(t[o]=t[r]);var l=n.replace,d=n.after,g=n.before;t[r]=function(){var y=arguments,b;return g&&g.apply(this,y),l?b=l.apply(this,y):b=s.apply(this,y),d&&d.apply(this,y),b}}function restoreMethod(t,r){var n=SAVED_METHOD_PREFIX+r;t[n]&&(t[r]=t[n],t[n]=null)}function applyTransformOnBeziers(t,r){for(var n=0;n<t.length;n++)for(var o=t[n],s=0;s<o.length;){var l=o[s],d=o[s+1];o[s++]=r[0]*l+r[2]*d+r[4],o[s++]=r[1]*l+r[3]*d+r[5]}}function prepareMorphPath(t,r){var n=t.getUpdatedPathProxy(),o=r.getUpdatedPathProxy(),s=alignBezierCurves(pathToBezierCurves(n),pathToBezierCurves(o)),l=s[0],d=s[1],g=t.getComputedTransform(),y=r.getComputedTransform();function b(){this.transform=null}g&&applyTransformOnBeziers(l,g),y&&applyTransformOnBeziers(d,y),saveAndModifyMethod(r,"updateTransform",{replace:b}),r.transform=null;var C=findBestMorphingRotation(l,d,10,Math.PI),x=[];saveAndModifyMethod(r,"buildPath",{replace:function(S){for(var _=r.__morphT,w=1-_,$=[],I=0;I<C.length;I++){var B=C[I],R=B.from,P=B.to,M=B.rotation*_,O=B.fromCp,D=B.toCp,N=Math.sin(M),H=Math.cos(M);lerp$1($,O,D,_);for(var Q=0;Q<R.length;Q+=2){var G=R[Q],K=R[Q+1],W=P[Q],j=P[Q+1],Y=G*w+W*_,q=K*w+j*_;x[Q]=Y*H-q*N+$[0],x[Q+1]=Y*N+q*H+$[1]}var X=x[0],re=x[1];S.moveTo(X,re);for(var Q=2;Q<R.length;){var W=x[Q++],j=x[Q++],te=x[Q++],oe=x[Q++],ae=x[Q++],se=x[Q++];X===W&&re===j&&te===ae&&oe===se?S.lineTo(ae,se):S.bezierCurveTo(W,j,te,oe,ae,se),X=ae,re=se}}}})}function morphPath(t,r,n){if(!t||!r)return r;var o=n.done,s=n.during;prepareMorphPath(t,r),r.__morphT=0;function l(){restoreMethod(r,"buildPath"),restoreMethod(r,"updateTransform"),r.__morphT=-1,r.createPathProxy(),r.dirtyShape()}return r.animateTo({__morphT:1},defaults({during:function(d){r.dirtyShape(),s&&s(d)},done:function(){l(),o&&o()}},n)),r}function hilbert(t,r,n,o,s,l){var d=16;t=s===n?0:Math.round(32767*(t-n)/(s-n)),r=l===o?0:Math.round(32767*(r-o)/(l-o));for(var g=0,y,b=(1<<d)/2;b>0;b/=2){var C=0,x=0;(t&b)>0&&(C=1),(r&b)>0&&(x=1),g+=b*b*(3*C^x),x===0&&(C===1&&(t=b-1-t,r=b-1-r),y=t,t=r,r=y)}return g}function sortPaths(t){var r=1/0,n=1/0,o=-1/0,s=-1/0,l=map$1(t,function(g){var y=g.getBoundingRect(),b=g.getComputedTransform(),C=y.x+y.width/2+(b?b[4]:0),x=y.y+y.height/2+(b?b[5]:0);return r=Math.min(C,r),n=Math.min(x,n),o=Math.max(C,o),s=Math.max(x,s),[C,x]}),d=map$1(l,function(g,y){return{cp:g,z:hilbert(g[0],g[1],r,n,o,s),path:t[y]}});return d.sort(function(g,y){return g.z-y.z}).map(function(g){return g.path})}function defaultDividePath(t){return split(t.path,t.count)}function createEmptyReturn(){return{fromIndividuals:[],toIndividuals:[],count:0}}function combineMorph(t,r,n){var o=[];function s(O){for(var D=0;D<O.length;D++){var N=O[D];isCombineMorphing(N)?s(N.childrenRef()):N instanceof Path$1&&o.push(N)}}s(t);var l=o.length;if(!l)return createEmptyReturn();var d=n.dividePath||defaultDividePath,g=d({path:r,count:l});if(g.length!==l)return console.error("Invalid morphing: unmatched splitted path"),createEmptyReturn();o=sortPaths(o),g=sortPaths(g);for(var y=n.done,b=n.during,C=n.individualDelay,x=new Transformable$1,S=0;S<l;S++){var _=o[S],w=g[S];w.parent=r,w.copyTransform(x),C||prepareMorphPath(_,w)}r.__isCombineMorphing=!0,r.childrenRef=function(){return g};function $(O){for(var D=0;D<g.length;D++)g[D].addSelfToZr(O)}saveAndModifyMethod(r,"addSelfToZr",{after:function(O){$(O)}}),saveAndModifyMethod(r,"removeSelfFromZr",{after:function(O){for(var D=0;D<g.length;D++)g[D].removeSelfFromZr(O)}});function I(){r.__isCombineMorphing=!1,r.__morphT=-1,r.childrenRef=null,restoreMethod(r,"addSelfToZr"),restoreMethod(r,"removeSelfFromZr")}var B=g.length;if(C)for(var R=B,P=function(){R--,R===0&&(I(),y&&y())},S=0;S<B;S++){var M=C?defaults({delay:(n.delay||0)+C(S,B,o[S],g[S]),done:P},n):n;morphPath(o[S],g[S],M)}else r.__morphT=0,r.animateTo({__morphT:1},defaults({during:function(O){for(var D=0;D<B;D++){var N=g[D];N.__morphT=r.__morphT,N.dirtyShape()}b&&b(O)},done:function(){I();for(var O=0;O<t.length;O++)restoreMethod(t[O],"updateTransform");y&&y()}},n));return r.__zr&&$(r.__zr),{fromIndividuals:o,toIndividuals:g,count:B}}function separateMorph(t,r,n){var o=r.length,s=[],l=n.dividePath||defaultDividePath;function d(_){for(var w=0;w<_.length;w++){var $=_[w];isCombineMorphing($)?d($.childrenRef()):$ instanceof Path$1&&s.push($)}}if(isCombineMorphing(t)){d(t.childrenRef());var g=s.length;if(g<o)for(var y=0,b=g;b<o;b++)s.push(clonePath(s[y++%g]));s.length=o}else{s=l({path:t,count:o});for(var C=t.getComputedTransform(),b=0;b<s.length;b++)s[b].setLocalTransform(C);if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),createEmptyReturn()}s=sortPaths(s),r=sortPaths(r);for(var x=n.individualDelay,b=0;b<o;b++){var S=x?defaults({delay:(n.delay||0)+x(b,o,s[b],r[b])},n):n;morphPath(s[b],r[b],S)}return{fromIndividuals:s,toIndividuals:r,count:r.length}}function isMultiple(t){return isArray$1(t[0])}function prepareMorphBatches(t,r){for(var n=[],o=t.length,s=0;s<o;s++)n.push({one:t[s],many:[]});for(var s=0;s<r.length;s++){var l=r[s].length,d=void 0;for(d=0;d<l;d++)n[d%o].many.push(r[s][d])}for(var g=0,s=o-1;s>=0;s--)if(!n[s].many.length){var y=n[g].many;if(y.length<=1)if(g)g=0;else return n;var l=y.length,b=Math.ceil(l/2);n[s].many=y.slice(b,l),n[g].many=y.slice(0,b),g++}return n}var pathDividers={clone:function(t){for(var r=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),o=0;o<t.count;o++){var s=clonePath(t.path);s.setStyle("opacity",n),r.push(s)}return r},split:null};function applyMorphAnimation(t,r,n,o,s,l){if(!t.length||!r.length)return;var d=getAnimationConfig("update",o,s);if(!(d&&d.duration>0))return;var g=o.getModel("universalTransition").get("delay"),y=Object.assign({setToFinal:!0},d),b,C;isMultiple(t)&&(b=t,C=r),isMultiple(r)&&(b=r,C=t);function x(B,R,P,M,O){var D=B.many,N=B.one;if(D.length===1&&!O){var H=R?D[0]:N,Q=R?N:D[0];if(isCombineMorphing(H))x({many:[H],one:Q},!0,P,M,!0);else{var G=g?defaults({delay:g(P,M)},y):y;morphPath(H,Q,G),l(H,Q,H,Q,G)}}else for(var K=defaults({dividePath:pathDividers[n],individualDelay:g&&function(re,te,oe,ae){return g(re+P,M)}},y),W=R?combineMorph(D,N,K):separateMorph(N,D,K),j=W.fromIndividuals,Y=W.toIndividuals,q=j.length,X=0;X<q;X++){var G=g?defaults({delay:g(X,q)},y):y;l(j[X],Y[X],R?D[X]:B.one,R?B.one:D[X],G)}}for(var S=b?b===t:t.length>r.length,_=b?prepareMorphBatches(C,b):prepareMorphBatches(S?r:t,[S?t:r]),w=0,$=0;$<_.length;$++)w+=_[$].many.length;for(var I=0,$=0;$<_.length;$++)x(_[$],S,I,w),I+=_[$].many.length}function getPathList(t){if(!t)return[];if(isArray$1(t)){for(var r=[],n=0;n<t.length;n++)r.push(getPathList(t[n]));return r}var o=[];return t.traverse(function(s){s instanceof Path$1&&!s.disableMorphing&&!s.invisible&&!s.ignore&&o.push(s)}),o}var DATA_COUNT_THRESHOLD=1e4,getUniversalTransitionGlobalStore=makeInner();function getGroupIdDimension(t){for(var r=t.dimensions,n=0;n<r.length;n++){var o=t.getDimensionInfo(r[n]);if(o&&o.otherDims.itemGroupId===0)return r[n]}}function flattenDataDiffItems(t){var r=[];return each$f(t,function(n){var o=n.data;if(!(o.count()>DATA_COUNT_THRESHOLD))for(var s=o.getIndices(),l=getGroupIdDimension(o),d=0;d<s.length;d++)r.push({dataGroupId:n.dataGroupId,data:o,dim:n.dim||l,divide:n.divide,dataIndex:d})}),r}function fadeInElement(t,r,n){t.traverse(function(o){o instanceof Path$1&&initProps(o,{style:{opacity:0}},r,{dataIndex:n,isFrom:!0})})}function removeEl(t){if(t.parent){var r=t.getComputedTransform();t.setLocalTransform(r),t.parent.remove(t)}}function stopAnimation(t){t.stopAnimation(),t.isGroup&&t.traverse(function(r){r.stopAnimation()})}function animateElementStyles(t,r,n){var o=getAnimationConfig("update",n,r);o&&t.traverse(function(s){if(s instanceof Displayable$1){var l=getOldStyle(s);l&&s.animateFrom({style:l},o)}})}function isAllIdSame(t,r){var n=t.length;if(n!==r.length)return!1;for(var o=0;o<n;o++){var s=t[o],l=r[o];if(s.data.getId(s.dataIndex)!==l.data.getId(l.dataIndex))return!1}return!0}function transitionBetween(t,r,n){var o=flattenDataDiffItems(t),s=flattenDataDiffItems(r);function l(B,R,P,M,O){(P||B)&&R.animateFrom({style:P&&P!==B?extend(extend({},P.style),B.style):B.style},O)}function d(B){for(var R=0;R<B.length;R++)if(B[R].dim)return B[R].dim}var g=d(o),y=d(s),b=!1;function C(B,R){return function(P){var M=P.data,O=P.dataIndex;if(R)return M.getId(O);var D=P.dataGroupId,N=B?g||y:y||g,H=N&&M.getDimensionInfo(N),Q=H&&H.ordinalMeta;if(H){var G=M.get(H.name,O);return Q&&Q.categories[G]||G+""}var K=M.getRawDataItem(O);return K&&K.groupId?K.groupId+"":D||M.getId(O)}}var x=isAllIdSame(o,s),S={};if(!x)for(var _=0;_<s.length;_++){var w=s[_],$=w.data.getItemGraphicEl(w.dataIndex);$&&(S[$.id]=!0)}function I(B,R){var P=o[R],M=s[B],O=M.data.hostModel,D=P.data.getItemGraphicEl(P.dataIndex),N=M.data.getItemGraphicEl(M.dataIndex);if(D===N){N&&animateElementStyles(N,M.dataIndex,O);return}D&&S[D.id]||N&&(stopAnimation(N),D?(stopAnimation(D),removeEl(D),b=!0,applyMorphAnimation(getPathList(D),getPathList(N),M.divide,O,B,l)):fadeInElement(N,O,B))}new DataDiffer$1(o,s,C(!0,x),C(!1,x),null,"multiple").update(I).updateManyToOne(function(B,R){var P=s[B],M=P.data,O=M.hostModel,D=M.getItemGraphicEl(P.dataIndex),N=filter(map$1(R,function(H){return o[H].data.getItemGraphicEl(o[H].dataIndex)}),function(H){return H&&H!==D&&!S[H.id]});D&&(stopAnimation(D),N.length?(each$f(N,function(H){stopAnimation(H),removeEl(H)}),b=!0,applyMorphAnimation(getPathList(N),getPathList(D),P.divide,O,B,l)):fadeInElement(D,O,P.dataIndex))}).updateOneToMany(function(B,R){var P=o[R],M=P.data.getItemGraphicEl(P.dataIndex);if(!(M&&S[M.id])){var O=filter(map$1(B,function(N){return s[N].data.getItemGraphicEl(s[N].dataIndex)}),function(N){return N&&N!==M}),D=s[B[0]].data.hostModel;O.length&&(each$f(O,function(N){return stopAnimation(N)}),M?(stopAnimation(M),removeEl(M),b=!0,applyMorphAnimation(getPathList(M),getPathList(O),P.divide,D,B[0],l)):each$f(O,function(N){return fadeInElement(N,D,B[0])}))}}).updateManyToMany(function(B,R){new DataDiffer$1(R,B,function(P){return o[P].data.getId(o[P].dataIndex)},function(P){return s[P].data.getId(s[P].dataIndex)}).update(function(P,M){I(B[P],R[M])}).execute()}).execute(),b&&each$f(r,function(B){var R=B.data,P=R.hostModel,M=P&&n.getViewOfSeriesModel(P),O=getAnimationConfig("update",P,0);M&&P.isAnimationEnabled()&&O&&O.duration>0&&M.group.traverse(function(D){D instanceof Path$1&&!D.animators.length&&D.animateFrom({style:{opacity:0}},O)})})}function getSeriesTransitionKey(t){var r=t.getModel("universalTransition").get("seriesKey");return r||t.id}function convertArraySeriesKeyToString(t){return isArray$1(t)?t.sort().join(","):t}function getDivideShapeFromData(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function findTransitionSeriesBatches(t,r){var n=createHashMap(),o=createHashMap(),s=createHashMap();return each$f(t.oldSeries,function(l,d){var g=t.oldDataGroupIds[d],y=t.oldData[d],b=getSeriesTransitionKey(l),C=convertArraySeriesKeyToString(b);o.set(C,{dataGroupId:g,data:y}),isArray$1(b)&&each$f(b,function(x){s.set(x,{key:C,dataGroupId:g,data:y})})}),each$f(r.updatedSeries,function(l){if(l.isUniversalTransitionEnabled()&&l.isAnimationEnabled()){var d=l.get("dataGroupId"),g=l.getData(),y=getSeriesTransitionKey(l),b=convertArraySeriesKeyToString(y),C=o.get(b);if(C)n.set(b,{oldSeries:[{dataGroupId:C.dataGroupId,divide:getDivideShapeFromData(C.data),data:C.data}],newSeries:[{dataGroupId:d,divide:getDivideShapeFromData(g),data:g}]});else if(isArray$1(y)){var x=[];each$f(y,function(w){var $=o.get(w);$.data&&x.push({dataGroupId:$.dataGroupId,divide:getDivideShapeFromData($.data),data:$.data})}),x.length&&n.set(b,{oldSeries:x,newSeries:[{dataGroupId:d,data:g,divide:getDivideShapeFromData(g)}]})}else{var S=s.get(y);if(S){var _=n.get(S.key);_||(_={oldSeries:[{dataGroupId:S.dataGroupId,data:S.data,divide:getDivideShapeFromData(S.data)}],newSeries:[]},n.set(S.key,_)),_.newSeries.push({dataGroupId:d,data:g,divide:getDivideShapeFromData(g)})}}}}),n}function querySeries(t,r){for(var n=0;n<t.length;n++){var o=r.seriesIndex!=null&&r.seriesIndex===t[n].seriesIndex||r.seriesId!=null&&r.seriesId===t[n].id;if(o)return n}}function transitionSeriesFromOpt(t,r,n,o){var s=[],l=[];each$f(normalizeToArray(t.from),function(d){var g=querySeries(r.oldSeries,d);g>=0&&s.push({dataGroupId:r.oldDataGroupIds[g],data:r.oldData[g],divide:getDivideShapeFromData(r.oldData[g]),dim:d.dimension})}),each$f(normalizeToArray(t.to),function(d){var g=querySeries(n.updatedSeries,d);if(g>=0){var y=n.updatedSeries[g].getData();l.push({dataGroupId:r.oldDataGroupIds[g],data:y,divide:getDivideShapeFromData(y),dim:d.dimension})}}),s.length>0&&l.length>0&&transitionBetween(s,l,o)}function installUniversalTransition(t){t.registerUpdateLifecycle("series:beforeupdate",function(r,n,o){each$f(normalizeToArray(o.seriesTransition),function(s){each$f(normalizeToArray(s.to),function(l){for(var d=o.updatedSeries,g=0;g<d.length;g++)(l.seriesIndex!=null&&l.seriesIndex===d[g].seriesIndex||l.seriesId!=null&&l.seriesId===d[g].id)&&(d[g][SERIES_UNIVERSAL_TRANSITION_PROP]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(r,n,o){var s=getUniversalTransitionGlobalStore(n);if(s.oldSeries&&o.updatedSeries&&o.optionChanged){var l=o.seriesTransition;if(l)each$f(normalizeToArray(l),function(_){transitionSeriesFromOpt(_,s,o,n)});else{var d=findTransitionSeriesBatches(s,o);each$f(d.keys(),function(_){var w=d.get(_);transitionBetween(w.oldSeries,w.newSeries,n)})}each$f(o.updatedSeries,function(_){_[SERIES_UNIVERSAL_TRANSITION_PROP]&&(_[SERIES_UNIVERSAL_TRANSITION_PROP]=!1)})}for(var g=r.getSeries(),y=s.oldSeries=[],b=s.oldDataGroupIds=[],C=s.oldData=[],x=0;x<g.length;x++){var S=g[x].getData();S.count()<DATA_COUNT_THRESHOLD&&(y.push(g[x]),b.push(g[x].get("dataGroupId")),C.push(S))}})}use([install$R]);use([install$S]);use([install$Q,install$P,install$O,install$M,install$K,install$I,install$H,install$G,install$F,install$E,install$D,install$B,install$A,install$z,install$y,install$x,install$w,install$v,install$u,install$t,install$s,install$r]);use(install$p);use(install$o);use(install$J);use(install$n);use(install$C);use(install$m);use(install$l);use(install$j);use(install$i);use(install$q);use(install$h);use(install$g);use(install$f);use(install$e);use(install$d);use(install$c);use(install$9);use(install$6);use(install$8);use(install$7);use(install$3);use(install$5);use(install$4);use(install$2);use(install$1);use(install);use(installUniversalTransition);use(installLabelLayout);var echarts=Object.freeze(Object.defineProperty({__proto__:null,registerLocale,version,dependencies,PRIORITY,init:init$1,connect,disConnect,disconnect,dispose,getInstanceByDom,getInstanceById,registerTheme,registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,getCoordinateSystemDimensions,registerLayout,registerVisual,registerLoading,setCanvasCreator,registerMap:registerMap$1,getMap,registerTransform,dataTool,throttle,use,setPlatformAPI,parseGeoJSON,parseGeoJson:parseGeoJSON,env:env$1,Model:Model$1,Axis:Axis$1,innerDrawElementOnCanvas:brushSingle,zrender,matrix,vector,zrUtil:util$1,color,helper,number,time,graphic,format,util,List:SeriesData$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,SeriesModel:SeriesModel$1,ChartView:ChartView$1,extendComponentModel,extendComponentView,extendSeriesModel,extendChartView},Symbol.toStringTag,{value:"Module"})),ToolsStatusEnum=(t=>(t.DOCK="dock",t.ASIDE="aside",t))(ToolsStatusEnum||{}),SettingStoreEnums=(t=>(t.HIDE_PACKAGE_ONE_CATEGORY="hidePackageOneCategory",t.CHANGE_LANG_RELOAD="changeLangReload",t.ASIDE_ALL_COLLAPSED="asideAllCollapsed",t.CHART_MOVE_DISTANCE="chartMoveDistance",t.CHART_ALIGN_RANGE="chartAlignRange",t.CHART_TOOLS_STATUS="chartToolsStatus",t.CHART_TOOLS_STATUS_HIDE="chartToolsStatusHide",t))(SettingStoreEnums||{});const systemSetting={[SettingStoreEnums.ASIDE_ALL_COLLAPSED]:!0,[SettingStoreEnums.HIDE_PACKAGE_ONE_CATEGORY]:!0,[SettingStoreEnums.CHANGE_LANG_RELOAD]:!1,[SettingStoreEnums.CHART_MOVE_DISTANCE]:5,[SettingStoreEnums.CHART_ALIGN_RANGE]:10,[SettingStoreEnums.CHART_TOOLS_STATUS]:ToolsStatusEnum.ASIDE,[SettingStoreEnums.CHART_TOOLS_STATUS_HIDE]:!1},{GO_SYSTEM_SETTING_STORE}=StorageEnum,storageSetting=getLocalStorage(GO_SYSTEM_SETTING_STORE),useSettingStore=defineStore({id:"useSettingStore",state:()=>storageSetting||systemSetting,getters:{getHidePackageOneCategory(){return this.hidePackageOneCategory},getChangeLangReload(){return this.changeLangReload},getAsideAllCollapsed(){return this.asideAllCollapsed},getAsideCollapsedWidth(){return this.asideAllCollapsed?0:asideCollapsedWidth},getChartMoveDistance(){return this.chartMoveDistance},getChartAlignRange(){return this.chartAlignRange},getChartToolsStatus(){return this.chartToolsStatus},getChartToolsStatusHide(){return this.chartToolsStatusHide}},actions:{setItem(t,r){this.$patch(n=>{n[t]=r}),setLocalStorage(GO_SYSTEM_SETTING_STORE,this.$state)}}}),{GO_LANG_STORE}=StorageEnum,storageLang=getLocalStorage(GO_LANG_STORE),useLangStore=defineStore({id:"useLangStore",state:()=>storageLang||{lang},getters:{getLang(){return this.lang}},actions:{changeLang(t){const r=useSettingStore();this.lang!==t&&(this.lang=t,setLocalStorage(GO_LANG_STORE,this.$state),r.getChangeLangReload&&reloadRoutePage())}}}),useLang=()=>{const t=useLangStore(),r=computed(()=>t.getLang===LangEnum.ZH?zhCN$2:enUS$2),n=computed(()=>t.getLang===LangEnum.ZH?dateZhCN$1:dateEnUS);return{locale:r,dateLocale:n}},_sfc_main=defineComponent({__name:"App",setup(t){const r=useDarkThemeHook(),n=useThemeOverridesHook(),o=useCode(),{locale:s,dateLocale:l}=useLang();return(d,g)=>{const y=resolveComponent("router-view");return openBlock(),createBlock(unref(NConfigProvider),{theme:unref(r),hljs:unref(o),locale:unref(s),"date-locale":unref(l),"theme-overrides":unref(n)},{default:withCtx(()=>[createVNode$1(unref(_sfc_main$a),null,{default:withCtx(()=>[createVNode$1(unref(_sfc_main$9)),createVNode$1(y)]),_:1})]),_:1},8,["theme","hljs","locale","date-locale","theme-overrides"])}}});var login$1={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"},project$1={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 global$2={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 zh={global:global$2,login:login$1,project:project$1},login={desc:"Login",form_auto:"Sign in automatically",form_button:"Login",login_success:"Login success",login_message:"Please complete the letter"},project={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 global$1={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 en={global:global$1,login,project};const langStorage=getLocalStorage(StorageEnum.GO_LANG_STORE),langList=[{label:"\u4E2D\u6587",key:LangEnum.ZH},{label:"English",key:LangEnum.EN}],i18n=createI18n_1({legacy:!1,globalInjection:!0,locale:(langStorage==null?void 0:langStorage.lang)||lang,fallbackLocale:(langStorage==null?void 0:langStorage.lang)||lang,messages:{[LangEnum.ZH]:zh,[LangEnum.EN]:en}}),pinia=createPinia();function setupStore(t){t.use(pinia)}var index="",animate_min="",style="";function appInit(){return Bt(this,null,function*(){const t=createApp(_sfc_main$a),r=createApp(_sfc_main);if(setupNaive(r),setupDirectives(r),setupCustomComponents(r),setupStore(r),t.mount("#appProvider",!0),setupRouter(r),yield router.isReady(),window.previewApi)try{const o=document.location.hash.split("/"),s=o&&o[o.length-1],d=yield(yield fetch(window.previewApi.replace("{id}",s))).json();window.chartData=d}catch(n){console.error(n)}setHtmlTheme(),r.use(i18n),r.mount("#app",!0),window.$vue=r})}appInit().then(()=>{initFunction()});export{openGiteeSourceCode as $,renderList as A,carouselInterval as B,CryptoJS as C,setLocalStorage as D,routerTurnByName as E,Fragment as F,pushScopeId as G,popScopeId as H,__glob_6_7 as I,useRoute as J,useRouter as K,resolveDynamicComponent as L,KeepAlive as M,shallowRef as N,renderLang as O,PageEnum as P,ChartEnum as Q,watch as R,StorageEnum as S,TransitionGroup as T,getUUID as U,fetchPathByName as V,routerTurnByPath as W,withDirectives as X,vShow as Y,openDoc as Z,_copyArray as _,_arrayMap as a,getCurrentInstance as a$,h as a0,renderIcon as a1,RouterLink as a2,toRefs as a3,useSettingStore as a4,computed as a5,onUnmounted as a6,asideWidth as a7,Transition as a8,requireErrorImg as a9,defineStore as aA,editHistoryMax as aB,SyncEnum as aC,previewScaleType as aD,requestInterval as aE,requestIntervalUnit as aF,isArray$d as aG,echarts as aH,animationsClass as aI,normalizeStyle$1 as aJ,getFilterStyle as aK,getTransformStyle as aL,getBlendModeStyle as aM,mergeProps as aN,toHandlers as aO,PreviewScaleEnum as aP,SavePageEnum as aQ,setSessionStorage as aR,getSessionStorage as aS,ContentTypeEnum as aT,axiosInstance as aU,merge_1 as aV,pick_1 as aW,isPreview as aX,newFunctionHandle as aY,intervalUnitHandle as aZ,inject as a_,createCommentVNode as aa,__glob_6_18 as ab,screenfullFn as ac,normalizeClass as ad,withModifiers as ae,dialogIconSize as af,maskClosable as ag,defineAsyncComponent as ah,AsyncLoading as ai,MenuEnum as aj,toRaw as ak,cloneDeep_1 as al,nextTick as am,__vitePreload as an,_root as ao,isObject_1 as ap,isSymbol_1 as aq,RequestDataTypeEnum as ar,RequestHttpEnum as as,RequestHttpIntervalEnum as at,RequestContentTypeEnum as au,RequestBodyEnum as av,groupTitle as aw,chartInitConfig as ax,BaseEvent as ay,EventLife as az,isArray_1 as b,linearMap$2 as b$,watchEffect as b0,onBeforeUnmount as b1,init$1 as b2,throttle as b3,use as b4,install as b5,install$R as b6,install$P as b7,install$p as b8,install$i as b9,Rect$3 as bA,ZRText$1 as bB,CompoundPath$1 as bC,parsePercent as bD,makePath as bE,BoundingRect$1 as bF,createSymbol$1 as bG,Circle$1 as bH,isNumber$2 as bI,install$O as bJ,install$g as bK,install$M as bL,install$d as bM,install$c as bN,install$e as bO,install$1 as bP,installUniversalTransition as bQ,registerTransform as bR,alpha as bS,useCssVars as bT,createStaticVNode as bU,registerLayout as bV,registerPreprocessor as bW,isArray$1 as bX,each$f as bY,capitalFirst as bZ,getLayoutRect as b_,install$9 as ba,install$Q as bb,LinearGradient$1 as bc,commonjsGlobal as bd,install$I as be,install$J as bf,install$x as bg,install$3 as bh,registerMap$1 as bi,install$D as bj,install$v as bk,shallowReactive as bl,toNumber as bm,install$K as bn,install$G as bo,installLabelLayout as bp,extendSeriesModel as bq,createDimensions as br,SeriesData$1 as bs,extendShape as bt,extendChartView as bu,initProps as bv,updateProps$1 as bw,Group$4 as bx,enableHoverEmphasis as by,createTextStyle as bz,createBlock as c,isRef as c0,getLocalStorage as c1,JSONStringify as c2,JSONParse as c3,setTitle as c4,WinKeyboard as c5,MacKeyboard as c6,getAugmentedNamespace as c7,require$$0 as c8,getDefaultExportFromCjs as c9,MouseEventButton as ca,resolveDirective as cb,_baseGet as cc,_castPath as cd,_toKey as ce,isPlainObject_1 as cf,_copyObject as cg,_flatRest as ch,_getAllKeysIn as ci,_baseClone as cj,DragKeyEnum as ck,setKeyboardDressShow as cl,setComponentPosition as cm,watermarkText as cn,selectBoxIndex as co,SettingStoreEnums as cp,ToolsStatusEnum as cq,downloadTextFile as cr,canvasCut as cs,readFile as ct,EditEnum as cu,fetchRouteParamsLocation as cv,defineComponent as d,createVNode$1 as e,unref as f,useI18n_1 as g,useLangStore as h,isString$2 as i,_export_sfc$1 as j,keys_1 as k,langList as l,createElementBlock as m,renderSlot as n,openBlock as o,createTextVNode as p,docPath as q,resolveComponent as r,setHtmlTheme as s,toDisplayString$1 as t,useDesignStore as u,ref as v,withCtx as w,onMounted as x,reactive as y,createBaseVNode as z};
|