tensorneko-util 0.3.20__py3-none-any.whl → 0.3.22__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,188 @@
1
+ const p$1=function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))i(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&i(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerpolicy&&(o.referrerPolicy=a.referrerpolicy),a.crossorigin==="use-credentials"?o.credentials="include":a.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(a){if(a.ep)return;a.ep=!0;const o=n(a);fetch(a.href,o)}};p$1();/**
2
+ * @vue/shared v3.5.23
3
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
+ * @license MIT
5
+ **/function makeMap(t){const r=Object.create(null);for(const n of t.split(","))r[n]=1;return n=>n in r}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,isOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),isModelListener=t=>t.startsWith("onUpdate:"),extend$1=Object.assign,remove=(t,r)=>{const n=t.indexOf(r);n>-1&&t.splice(n,1)},hasOwnProperty$1=Object.prototype.hasOwnProperty,hasOwn$1=(t,r)=>hasOwnProperty$1.call(t,r),isArray$2=Array.isArray,isMap=t=>toTypeString(t)==="[object Map]",isSet=t=>toTypeString(t)==="[object Set]",isDate=t=>toTypeString(t)==="[object Date]",isFunction$2=t=>typeof t=="function",isString$2=t=>typeof t=="string",isSymbol=t=>typeof t=="symbol",isObject$4=t=>t!==null&&typeof t=="object",isPromise=t=>(isObject$4(t)||isFunction$2(t))&&isFunction$2(t.then)&&isFunction$2(t.catch),objectToString=Object.prototype.toString,toTypeString=t=>objectToString.call(t),toRawType=t=>toTypeString(t).slice(8,-1),isPlainObject$1=t=>toTypeString(t)==="[object Object]",isIntegerKey=t=>isString$2(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=>r.slice(1).toUpperCase())),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize(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,i=!1)=>{Object.defineProperty(t,r,{configurable:!0,enumerable:!1,writable:i,value:n})},looseToNumber=t=>{const r=parseFloat(t);return isNaN(r)?t:r},toNumber=t=>{const r=isString$2(t)?Number(t):NaN;return isNaN(r)?t:r};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function normalizeStyle$1(t){if(isArray$2(t)){const r={};for(let n=0;n<t.length;n++){const i=t[n],a=isString$2(i)?parseStringStyle(i):normalizeStyle$1(i);if(a)for(const o in a)r[o]=a[o]}return r}else if(isString$2(t)||isObject$4(t))return t}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=/\/\*[^]*?\*\//g;function parseStringStyle(t){const r={};return t.replace(styleCommentRE,"").split(listDelimiterRE).forEach(n=>{if(n){const i=n.split(propertyDelimiterRE);i.length>1&&(r[i[0].trim()]=i[1].trim())}}),r}function normalizeClass(t){let r="";if(isString$2(t))r=t;else if(isArray$2(t))for(let n=0;n<t.length;n++){const i=normalizeClass(t[n]);i&&(r+=i+" ")}else if(isObject$4(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$2(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 i=0;n&&i<t.length;i++)n=looseEqual(t[i],r[i]);return n}function looseEqual(t,r){if(t===r)return!0;let n=isDate(t),i=isDate(r);if(n||i)return n&&i?t.getTime()===r.getTime():!1;if(n=isSymbol(t),i=isSymbol(r),n||i)return t===r;if(n=isArray$2(t),i=isArray$2(r),n||i)return n&&i?looseCompareArrays(t,r):!1;if(n=isObject$4(t),i=isObject$4(r),n||i){if(!n||!i)return!1;const a=Object.keys(t).length,o=Object.keys(r).length;if(a!==o)return!1;for(const s in t){const l=t.hasOwnProperty(s),u=r.hasOwnProperty(s);if(l&&!u||!l&&u||!looseEqual(t[s],r[s]))return!1}}return String(t)===String(r)}function looseIndexOf(t,r){return t.findIndex(n=>looseEqual(n,r))}const isRef$1=t=>!!(t&&t.__v_isRef===!0),toDisplayString=t=>isString$2(t)?t:t==null?"":isArray$2(t)||isObject$4(t)&&(t.toString===objectToString||!isFunction$2(t.toString))?isRef$1(t)?toDisplayString(t.value):JSON.stringify(t,replacer,2):String(t),replacer=(t,r)=>isRef$1(r)?replacer(t,r.value):isMap(r)?{[`Map(${r.size})`]:[...r.entries()].reduce((n,[i,a],o)=>(n[stringifySymbol(i,o)+" =>"]=a,n),{})}:isSet(r)?{[`Set(${r.size})`]:[...r.values()].map(n=>stringifySymbol(n))}:isSymbol(r)?stringifySymbol(r):isObject$4(r)&&!isArray$2(r)&&!isPlainObject$1(r)?String(r):r,stringifySymbol=(t,r="")=>{var n;return isSymbol(t)?`Symbol(${(n=t.description)!=null?n:r})`:t};/**
6
+ * @vue/reactivity v3.5.23
7
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
+ * @license MIT
9
+ **/let activeEffectScope;class EffectScope{constructor(r=!1){this.detached=r,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=activeEffectScope,!r&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let r,n;if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].pause();for(r=0,n=this.effects.length;r<n;r++)this.effects[r].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let r,n;if(this.scopes)for(r=0,n=this.scopes.length;r<n;r++)this.scopes[r].resume();for(r=0,n=this.effects.length;r<n;r++)this.effects[r].resume()}}run(r){if(this._active){const n=activeEffectScope;try{return activeEffectScope=this,r()}finally{activeEffectScope=n}}}on(){++this._on===1&&(this.prevScope=activeEffectScope,activeEffectScope=this)}off(){this._on>0&&--this._on===0&&(activeEffectScope=this.prevScope,this.prevScope=void 0)}stop(r){if(this._active){this._active=!1;let n,i;for(n=0,i=this.effects.length;n<i;n++)this.effects[n].stop();for(this.effects.length=0,n=0,i=this.cleanups.length;n<i;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,i=this.scopes.length;n<i;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!r){const a=this.parent.scopes.pop();a&&a!==this&&(this.parent.scopes[this.index]=a,a.index=this.index)}this.parent=void 0}}}function getCurrentScope(){return activeEffectScope}let activeSub;const pausedQueueEffects=new WeakSet;class ReactiveEffect{constructor(r){this.fn=r,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,activeEffectScope&&activeEffectScope.active&&activeEffectScope.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,pausedQueueEffects.has(this)&&(pausedQueueEffects.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||batch(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,cleanupEffect(this),prepareDeps(this);const r=activeSub,n=shouldTrack;activeSub=this,shouldTrack=!0;try{return this.fn()}finally{cleanupDeps(this),activeSub=r,shouldTrack=n,this.flags&=-3}}stop(){if(this.flags&1){for(let r=this.deps;r;r=r.nextDep)removeSub(r);this.deps=this.depsTail=void 0,cleanupEffect(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?pausedQueueEffects.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){isDirty(this)&&this.run()}get dirty(){return isDirty(this)}}let batchDepth=0,batchedSub,batchedComputed;function batch(t,r=!1){if(t.flags|=8,r){t.next=batchedComputed,batchedComputed=t;return}t.next=batchedSub,batchedSub=t}function startBatch(){batchDepth++}function endBatch(){if(--batchDepth>0)return;if(batchedComputed){let r=batchedComputed;for(batchedComputed=void 0;r;){const n=r.next;r.next=void 0,r.flags&=-9,r=n}}let t;for(;batchedSub;){let r=batchedSub;for(batchedSub=void 0;r;){const n=r.next;if(r.next=void 0,r.flags&=-9,r.flags&1)try{r.trigger()}catch(i){t||(t=i)}r=n}}if(t)throw t}function prepareDeps(t){for(let r=t.deps;r;r=r.nextDep)r.version=-1,r.prevActiveLink=r.dep.activeLink,r.dep.activeLink=r}function cleanupDeps(t){let r,n=t.depsTail,i=n;for(;i;){const a=i.prevDep;i.version===-1?(i===n&&(n=a),removeSub(i),removeDep(i)):r=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=a}t.deps=r,t.depsTail=n}function isDirty(t){for(let r=t.deps;r;r=r.nextDep)if(r.dep.version!==r.version||r.dep.computed&&(refreshComputed(r.dep.computed)||r.dep.version!==r.version))return!0;return!!t._dirty}function refreshComputed(t){if(t.flags&4&&!(t.flags&16)||(t.flags&=-17,t.globalVersion===globalVersion)||(t.globalVersion=globalVersion,!t.isSSR&&t.flags&128&&(!t.deps&&!t._dirty||!isDirty(t))))return;t.flags|=2;const r=t.dep,n=activeSub,i=shouldTrack;activeSub=t,shouldTrack=!0;try{prepareDeps(t);const a=t.fn(t._value);(r.version===0||hasChanged(a,t._value))&&(t.flags|=128,t._value=a,r.version++)}catch(a){throw r.version++,a}finally{activeSub=n,shouldTrack=i,cleanupDeps(t),t.flags&=-3}}function removeSub(t,r=!1){const{dep:n,prevSub:i,nextSub:a}=t;if(i&&(i.nextSub=a,t.prevSub=void 0),a&&(a.prevSub=i,t.nextSub=void 0),n.subs===t&&(n.subs=i,!i&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)removeSub(o,!0)}!r&&!--n.sc&&n.map&&n.map.delete(n.key)}function removeDep(t){const{prevDep:r,nextDep:n}=t;r&&(r.nextDep=n,t.prevDep=void 0),n&&(n.prevDep=r,t.nextDep=void 0)}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 cleanupEffect(t){const{cleanup:r}=t;if(t.cleanup=void 0,r){const n=activeSub;activeSub=void 0;try{r()}finally{activeSub=n}}}let globalVersion=0;class Link{constructor(r,n){this.sub=r,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Dep{constructor(r){this.computed=r,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(r){if(!activeSub||!shouldTrack||activeSub===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==activeSub)n=this.activeLink=new Link(activeSub,this),activeSub.deps?(n.prevDep=activeSub.depsTail,activeSub.depsTail.nextDep=n,activeSub.depsTail=n):activeSub.deps=activeSub.depsTail=n,addSub(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const i=n.nextDep;i.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=i),n.prevDep=activeSub.depsTail,n.nextDep=void 0,activeSub.depsTail.nextDep=n,activeSub.depsTail=n,activeSub.deps===n&&(activeSub.deps=i)}return n}trigger(r){this.version++,globalVersion++,this.notify(r)}notify(r){startBatch();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{endBatch()}}}function addSub(t){if(t.dep.sc++,t.sub.flags&4){const r=t.dep.computed;if(r&&!t.dep.subs){r.flags|=20;for(let i=r.deps;i;i=i.nextDep)addSub(i)}const n=t.dep.subs;n!==t&&(t.prevSub=n,n&&(n.nextSub=t)),t.dep.subs=t}}const targetMap=new WeakMap,ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol(""),ARRAY_ITERATE_KEY=Symbol("");function track(t,r,n){if(shouldTrack&&activeSub){let i=targetMap.get(t);i||targetMap.set(t,i=new Map);let a=i.get(n);a||(i.set(n,a=new Dep),a.map=i,a.key=n),a.track()}}function trigger(t,r,n,i,a,o){const s=targetMap.get(t);if(!s){globalVersion++;return}const l=u=>{u&&u.trigger()};if(startBatch(),r==="clear")s.forEach(l);else{const u=isArray$2(t),c=u&&isIntegerKey(n);if(u&&n==="length"){const d=Number(i);s.forEach((v,I)=>{(I==="length"||I===ARRAY_ITERATE_KEY||!isSymbol(I)&&I>=d)&&l(v)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),c&&l(s.get(ARRAY_ITERATE_KEY)),r){case"add":u?c&&l(s.get("length")):(l(s.get(ITERATE_KEY)),isMap(t)&&l(s.get(MAP_KEY_ITERATE_KEY)));break;case"delete":u||(l(s.get(ITERATE_KEY)),isMap(t)&&l(s.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap(t)&&l(s.get(ITERATE_KEY));break}}endBatch()}function getDepFromReactive(t,r){const n=targetMap.get(t);return n&&n.get(r)}function reactiveReadArray(t){const r=toRaw(t);return r===t?r:(track(r,"iterate",ARRAY_ITERATE_KEY),isShallow(t)?r:r.map(toReactive))}function shallowReadArray(t){return track(t=toRaw(t),"iterate",ARRAY_ITERATE_KEY),t}const arrayInstrumentations={__proto__:null,[Symbol.iterator](){return iterator$1(this,Symbol.iterator,toReactive)},concat(...t){return reactiveReadArray(this).concat(...t.map(r=>isArray$2(r)?reactiveReadArray(r):r))},entries(){return iterator$1(this,"entries",t=>(t[1]=toReactive(t[1]),t))},every(t,r){return apply(this,"every",t,r,void 0,arguments)},filter(t,r){return apply(this,"filter",t,r,n=>n.map(toReactive),arguments)},find(t,r){return apply(this,"find",t,r,toReactive,arguments)},findIndex(t,r){return apply(this,"findIndex",t,r,void 0,arguments)},findLast(t,r){return apply(this,"findLast",t,r,toReactive,arguments)},findLastIndex(t,r){return apply(this,"findLastIndex",t,r,void 0,arguments)},forEach(t,r){return apply(this,"forEach",t,r,void 0,arguments)},includes(...t){return searchProxy(this,"includes",t)},indexOf(...t){return searchProxy(this,"indexOf",t)},join(t){return reactiveReadArray(this).join(t)},lastIndexOf(...t){return searchProxy(this,"lastIndexOf",t)},map(t,r){return apply(this,"map",t,r,void 0,arguments)},pop(){return noTracking(this,"pop")},push(...t){return noTracking(this,"push",t)},reduce(t,...r){return reduce$1(this,"reduce",t,r)},reduceRight(t,...r){return reduce$1(this,"reduceRight",t,r)},shift(){return noTracking(this,"shift")},some(t,r){return apply(this,"some",t,r,void 0,arguments)},splice(...t){return noTracking(this,"splice",t)},toReversed(){return reactiveReadArray(this).toReversed()},toSorted(t){return reactiveReadArray(this).toSorted(t)},toSpliced(...t){return reactiveReadArray(this).toSpliced(...t)},unshift(...t){return noTracking(this,"unshift",t)},values(){return iterator$1(this,"values",toReactive)}};function iterator$1(t,r,n){const i=shallowReadArray(t),a=i[r]();return i!==t&&!isShallow(t)&&(a._next=a.next,a.next=()=>{const o=a._next();return o.done||(o.value=n(o.value)),o}),a}const arrayProto$1=Array.prototype;function apply(t,r,n,i,a,o){const s=shallowReadArray(t),l=s!==t&&!isShallow(t),u=s[r];if(u!==arrayProto$1[r]){const v=u.apply(t,o);return l?toReactive(v):v}let c=n;s!==t&&(l?c=function(v,I){return n.call(this,toReactive(v),I,t)}:n.length>2&&(c=function(v,I){return n.call(this,v,I,t)}));const d=u.call(s,c,i);return l&&a?a(d):d}function reduce$1(t,r,n,i){const a=shallowReadArray(t);let o=n;return a!==t&&(isShallow(t)?n.length>3&&(o=function(s,l,u){return n.call(this,s,l,u,t)}):o=function(s,l,u){return n.call(this,s,toReactive(l),u,t)}),a[r](o,...i)}function searchProxy(t,r,n){const i=toRaw(t);track(i,"iterate",ARRAY_ITERATE_KEY);const a=i[r](...n);return(a===-1||a===!1)&&isProxy(n[0])?(n[0]=toRaw(n[0]),i[r](...n)):a}function noTracking(t,r,n=[]){pauseTracking(),startBatch();const i=toRaw(t)[r].apply(t,n);return endBatch(),resetTracking(),i}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));function hasOwnProperty(t){isSymbol(t)||(t=String(t));const r=toRaw(this);return track(r,"has",t),r.hasOwnProperty(t)}class BaseReactiveHandler{constructor(r=!1,n=!1){this._isReadonly=r,this._isShallow=n}get(r,n,i){if(n==="__v_skip")return r.__v_skip;const a=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!a;if(n==="__v_isReadonly")return a;if(n==="__v_isShallow")return o;if(n==="__v_raw")return i===(a?o?shallowReadonlyMap:readonlyMap:o?shallowReactiveMap:reactiveMap).get(r)||Object.getPrototypeOf(r)===Object.getPrototypeOf(i)?r:void 0;const s=isArray$2(r);if(!a){let u;if(s&&(u=arrayInstrumentations[n]))return u;if(n==="hasOwnProperty")return hasOwnProperty}const l=Reflect.get(r,n,isRef(r)?r:i);if((isSymbol(n)?builtInSymbols.has(n):isNonTrackableKeys(n))||(a||track(r,"get",n),o))return l;if(isRef(l)){const u=s&&isIntegerKey(n)?l:l.value;return a&&isObject$4(u)?readonly(u):u}return isObject$4(l)?a?readonly(l):reactive(l):l}}class MutableReactiveHandler extends BaseReactiveHandler{constructor(r=!1){super(!1,r)}set(r,n,i,a){let o=r[n];if(!this._isShallow){const u=isReadonly(o);if(!isShallow(i)&&!isReadonly(i)&&(o=toRaw(o),i=toRaw(i)),!isArray$2(r)&&isRef(o)&&!isRef(i))return u||(o.value=i),!0}const s=isArray$2(r)&&isIntegerKey(n)?Number(n)<r.length:hasOwn$1(r,n),l=Reflect.set(r,n,i,isRef(r)?r:a);return r===toRaw(a)&&(s?hasChanged(i,o)&&trigger(r,"set",n,i):trigger(r,"add",n,i)),l}deleteProperty(r,n){const i=hasOwn$1(r,n);r[n];const a=Reflect.deleteProperty(r,n);return a&&i&&trigger(r,"delete",n,void 0),a}has(r,n){const i=Reflect.has(r,n);return(!isSymbol(n)||!builtInSymbols.has(n))&&track(r,"has",n),i}ownKeys(r){return track(r,"iterate",isArray$2(r)?"length":ITERATE_KEY),Reflect.ownKeys(r)}}class ReadonlyReactiveHandler extends BaseReactiveHandler{constructor(r=!1){super(!0,r)}set(r,n){return!0}deleteProperty(r,n){return!0}}const mutableHandlers=new MutableReactiveHandler,readonlyHandlers=new ReadonlyReactiveHandler,shallowReactiveHandlers=new MutableReactiveHandler(!0),shallowReadonlyHandlers=new ReadonlyReactiveHandler(!0),toShallow=t=>t,getProto=t=>Reflect.getPrototypeOf(t);function createIterableMethod(t,r,n){return function(...i){const a=this.__v_raw,o=toRaw(a),s=isMap(o),l=t==="entries"||t===Symbol.iterator&&s,u=t==="keys"&&s,c=a[t](...i),d=n?toShallow:r?toReadonly:toReactive;return!r&&track(o,"iterate",u?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:v,done:I}=c.next();return I?{value:v,done:I}:{value:l?[d(v[0]),d(v[1])]:d(v),done:I}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...r){return t==="delete"?!1:t==="clear"?void 0:this}}function createInstrumentations(t,r){const n={get(a){const o=this.__v_raw,s=toRaw(o),l=toRaw(a);t||(hasChanged(a,l)&&track(s,"get",a),track(s,"get",l));const{has:u}=getProto(s),c=r?toShallow:t?toReadonly:toReactive;if(u.call(s,a))return c(o.get(a));if(u.call(s,l))return c(o.get(l));o!==s&&o.get(a)},get size(){const a=this.__v_raw;return!t&&track(toRaw(a),"iterate",ITERATE_KEY),a.size},has(a){const o=this.__v_raw,s=toRaw(o),l=toRaw(a);return t||(hasChanged(a,l)&&track(s,"has",a),track(s,"has",l)),a===l?o.has(a):o.has(a)||o.has(l)},forEach(a,o){const s=this,l=s.__v_raw,u=toRaw(l),c=r?toShallow:t?toReadonly:toReactive;return!t&&track(u,"iterate",ITERATE_KEY),l.forEach((d,v)=>a.call(o,c(d),c(v),s))}};return extend$1(n,t?{add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear")}:{add(a){!r&&!isShallow(a)&&!isReadonly(a)&&(a=toRaw(a));const o=toRaw(this);return getProto(o).has.call(o,a)||(o.add(a),trigger(o,"add",a,a)),this},set(a,o){!r&&!isShallow(o)&&!isReadonly(o)&&(o=toRaw(o));const s=toRaw(this),{has:l,get:u}=getProto(s);let c=l.call(s,a);c||(a=toRaw(a),c=l.call(s,a));const d=u.call(s,a);return s.set(a,o),c?hasChanged(o,d)&&trigger(s,"set",a,o):trigger(s,"add",a,o),this},delete(a){const o=toRaw(this),{has:s,get:l}=getProto(o);let u=s.call(o,a);u||(a=toRaw(a),u=s.call(o,a)),l&&l.call(o,a);const c=o.delete(a);return u&&trigger(o,"delete",a,void 0),c},clear(){const a=toRaw(this),o=a.size!==0,s=a.clear();return o&&trigger(a,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(a=>{n[a]=createIterableMethod(a,t,r)}),n}function createInstrumentationGetter(t,r){const n=createInstrumentations(t,r);return(i,a,o)=>a==="__v_isReactive"?!t:a==="__v_isReadonly"?t:a==="__v_raw"?i:Reflect.get(hasOwn$1(n,a)&&a in i?n:i,a,o)}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,i,a){if(!isObject$4(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const o=getTargetType(t);if(o===0)return t;const s=a.get(t);if(s)return s;const l=new Proxy(t,o===2?i:n);return a.set(t,l),l}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 t?!!t.__v_raw:!1}function toRaw(t){const r=t&&t.__v_raw;return r?toRaw(r):t}function markRaw(t){return!hasOwn$1(t,"__v_skip")&&Object.isExtensible(t)&&def(t,"__v_skip",!0),t}const toReactive=t=>isObject$4(t)?reactive(t):t,toReadonly=t=>isObject$4(t)?readonly(t):t;function isRef(t){return t?t.__v_isRef===!0:!1}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.dep=new Dep,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?r:toRaw(r),this._value=n?r:toReactive(r),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(r){const n=this._rawValue,i=this.__v_isShallow||isShallow(r)||isReadonly(r);r=i?r:toRaw(r),hasChanged(r,n)&&(this._rawValue=r,this._value=i?r:toReactive(r),this.dep.trigger())}}function unref(t){return isRef(t)?t.value:t}const shallowUnwrapHandlers={get:(t,r,n)=>r==="__v_raw"?t:unref(Reflect.get(t,r,n)),set:(t,r,n,i)=>{const a=t[r];return isRef(a)&&!isRef(n)?(a.value=n,!0):Reflect.set(t,r,n,i)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}function toRefs(t){const r=isArray$2(t)?new Array(t.length):{};for(const n in t)r[n]=propertyToRef(t,n);return r}class ObjectRefImpl{constructor(r,n,i){this._object=r,this._key=n,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const r=this._object[this._key];return this._value=r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}function propertyToRef(t,r,n){const i=t[r];return isRef(i)?i:new ObjectRefImpl(t,r,n)}class ComputedRefImpl{constructor(r,n,i){this.fn=r,this.setter=n,this._value=void 0,this.dep=new Dep(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=globalVersion-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&activeSub!==this)return batch(this,!0),!0}get value(){const r=this.dep.track();return refreshComputed(this),r&&(r.version=this.dep.version),this._value}set value(r){this.setter&&this.setter(r)}}function computed$1(t,r,n=!1){let i,a;return isFunction$2(t)?i=t:(i=t.get,a=t.set),new ComputedRefImpl(i,a,n)}const INITIAL_WATCHER_VALUE={},cleanupMap=new WeakMap;let activeWatcher;function onWatcherCleanup(t,r=!1,n=activeWatcher){if(n){let i=cleanupMap.get(n);i||cleanupMap.set(n,i=[]),i.push(t)}}function watch$1(t,r,n=EMPTY_OBJ$1){const{immediate:i,deep:a,once:o,scheduler:s,augmentJob:l,call:u}=n,c=Y=>a?Y:isShallow(Y)||a===!1||a===0?traverse(Y,1):traverse(Y);let d,v,I,$,O=!1,R=!1;if(isRef(t)?(v=()=>t.value,O=isShallow(t)):isReactive(t)?(v=()=>c(t),O=!0):isArray$2(t)?(R=!0,O=t.some(Y=>isReactive(Y)||isShallow(Y)),v=()=>t.map(Y=>{if(isRef(Y))return Y.value;if(isReactive(Y))return c(Y);if(isFunction$2(Y))return u?u(Y,2):Y()})):isFunction$2(t)?r?v=u?()=>u(t,2):t:v=()=>{if(I){pauseTracking();try{I()}finally{resetTracking()}}const Y=activeWatcher;activeWatcher=d;try{return u?u(t,3,[$]):t($)}finally{activeWatcher=Y}}:v=NOOP,r&&a){const Y=v,X=a===!0?1/0:a;v=()=>traverse(Y(),X)}const M=getCurrentScope(),N=()=>{d.stop(),M&&M.active&&remove(M.effects,d)};if(o&&r){const Y=r;r=(...X)=>{Y(...X),N()}}let V=R?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const G=Y=>{if(!(!(d.flags&1)||!d.dirty&&!Y))if(r){const X=d.run();if(a||O||(R?X.some((q,Z)=>hasChanged(q,V[Z])):hasChanged(X,V))){I&&I();const q=activeWatcher;activeWatcher=d;try{const Z=[X,V===INITIAL_WATCHER_VALUE?void 0:R&&V[0]===INITIAL_WATCHER_VALUE?[]:V,$];V=X,u?u(r,3,Z):r(...Z)}finally{activeWatcher=q}}}else d.run()};return l&&l(G),d=new ReactiveEffect(v),d.scheduler=s?()=>s(G,!1):G,$=Y=>onWatcherCleanup(Y,!1,d),I=d.onStop=()=>{const Y=cleanupMap.get(d);if(Y){if(u)u(Y,4);else for(const X of Y)X();cleanupMap.delete(d)}},r?i?G(!0):V=d.run():s?s(G.bind(null,!0),!0):d.run(),N.pause=d.pause.bind(d),N.resume=d.resume.bind(d),N.stop=N,N}function traverse(t,r=1/0,n){if(r<=0||!isObject$4(t)||t.__v_skip||(n=n||new Map,(n.get(t)||0)>=r))return t;if(n.set(t,r),r--,isRef(t))traverse(t.value,r,n);else if(isArray$2(t))for(let i=0;i<t.length;i++)traverse(t[i],r,n);else if(isSet(t)||isMap(t))t.forEach(i=>{traverse(i,r,n)});else if(isPlainObject$1(t)){for(const i in t)traverse(t[i],r,n);for(const i of Object.getOwnPropertySymbols(t))Object.prototype.propertyIsEnumerable.call(t,i)&&traverse(t[i],r,n)}return t}/**
10
+ * @vue/runtime-core v3.5.23
11
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
+ * @license MIT
13
+ **/const stack=[];let isWarning=!1;function warn$1(t,...r){if(isWarning)return;isWarning=!0,pauseTracking();const n=stack.length?stack[stack.length-1].component:null,i=n&&n.appContext.config.warnHandler,a=getComponentTrace();if(i)callWithErrorHandling(i,n,11,[t+r.map(o=>{var s,l;return(l=(s=o.toString)==null?void 0:s.call(o))!=null?l:JSON.stringify(o)}).join(""),n&&n.proxy,a.map(({vnode:o})=>`at <${formatComponentName(n,o.type)}>`).join(`
14
+ `),a]);else{const o=[`[Vue warn]: ${t}`,...r];a.length&&o.push(`
15
+ `,...formatTrace(a)),console.warn(...o)}resetTracking(),isWarning=!1}function getComponentTrace(){let t=stack[stack.length-1];if(!t)return[];const r=[];for(;t;){const n=r[0];n&&n.vnode===t?n.recurseCount++:r.push({vnode:t,recurseCount:0});const i=t.component&&t.component.parent;t=i&&i.vnode}return r}function formatTrace(t){const r=[];return t.forEach((n,i)=>{r.push(...i===0?[]:[`
16
+ `],...formatTraceEntry(n))}),r}function formatTraceEntry({vnode:t,recurseCount:r}){const n=r>0?`... (${r} recursive calls)`:"",i=t.component?t.component.parent==null:!1,a=` at <${formatComponentName(t.component,t.type,i)}`,o=">"+n;return t.props?[a,...formatProps(t.props),o]:[a+o]}function formatProps(t){const r=[],n=Object.keys(t);return n.slice(0,3).forEach(i=>{r.push(...formatProp(i,t[i]))}),n.length>3&&r.push(" ..."),r}function formatProp(t,r,n){return isString$2(r)?(r=JSON.stringify(r),n?r:[`${t}=${r}`]):typeof r=="number"||typeof r=="boolean"||r==null?n?r:[`${t}=${r}`]:isRef(r)?(r=formatProp(t,toRaw(r.value),!0),n?r:[`${t}=Ref<`,r,">"]):isFunction$2(r)?[`${t}=fn${r.name?`<${r.name}>`:""}`]:(r=toRaw(r),n?r:[`${t}=`,r])}function callWithErrorHandling(t,r,n,i){try{return i?t(...i):t()}catch(a){handleError(a,r,n)}}function callWithAsyncErrorHandling(t,r,n,i){if(isFunction$2(t)){const a=callWithErrorHandling(t,r,n,i);return a&&isPromise(a)&&a.catch(o=>{handleError(o,r,n)}),a}if(isArray$2(t)){const a=[];for(let o=0;o<t.length;o++)a.push(callWithAsyncErrorHandling(t[o],r,n,i));return a}}function handleError(t,r,n,i=!0){const a=r?r.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:s}=r&&r.appContext.config||EMPTY_OBJ$1;if(r){let l=r.parent;const u=r.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const d=l.ec;if(d){for(let v=0;v<d.length;v++)if(d[v](t,u,c)===!1)return}l=l.parent}if(o){pauseTracking(),callWithErrorHandling(o,null,10,[t,u,c]),resetTracking();return}}logError$1(t,n,a,i,s)}function logError$1(t,r,n,i=!0,a=!1){if(a)throw t;console.error(t)}const queue=[];let flushIndex=-1;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 i=r+n>>>1,a=queue[i],o=getId$1(a);o<t||o===t&&a.flags&2?r=i+1:n=i}return r}function queueJob(t){if(!(t.flags&1)){const r=getId$1(t),n=queue[queue.length-1];!n||!(t.flags&2)&&r>=getId$1(n)?queue.push(t):queue.splice(findInsertionIndex(r),0,t),t.flags|=1,queueFlush()}}function queueFlush(){currentFlushPromise||(currentFlushPromise=resolvedPromise.then(flushJobs))}function queuePostFlushCb(t){isArray$2(t)?pendingPostFlushCbs.push(...t):activePostFlushCbs&&t.id===-1?activePostFlushCbs.splice(postFlushIndex+1,0,t):t.flags&1||(pendingPostFlushCbs.push(t),t.flags|=1),queueFlush()}function flushPreFlushCbs(t,r,n=flushIndex+1){for(;n<queue.length;n++){const i=queue[n];if(i&&i.flags&2){if(t&&i.id!==t.uid)continue;queue.splice(n,1),n--,i.flags&4&&(i.flags&=-2),i(),i.flags&4||(i.flags&=-2)}}}function flushPostFlushCbs(t){if(pendingPostFlushCbs.length){const r=[...new Set(pendingPostFlushCbs)].sort((n,i)=>getId$1(n)-getId$1(i));if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...r);return}for(activePostFlushCbs=r,postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++){const n=activePostFlushCbs[postFlushIndex];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}activePostFlushCbs=null,postFlushIndex=0}}const getId$1=t=>t.id==null?t.flags&2?-1:1/0:t.id;function flushJobs(t){const r=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),callWithErrorHandling(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;flushIndex<queue.length;flushIndex++){const n=queue[flushIndex];n&&(n.flags&=-2)}flushIndex=-1,queue.length=0,flushPostFlushCbs(),currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const r=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,r}function withCtx(t,r=currentRenderingInstance,n){if(!r||t._n)return t;const i=(...a)=>{i._d&&setBlockTracking(-1);const o=setCurrentRenderingInstance(r);let s;try{s=t(...a)}finally{setCurrentRenderingInstance(o),i._d&&setBlockTracking(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function withDirectives(t,r){if(currentRenderingInstance===null)return t;const n=getComponentPublicInstance(currentRenderingInstance),i=t.dirs||(t.dirs=[]);for(let a=0;a<r.length;a++){let[o,s,l,u=EMPTY_OBJ$1]=r[a];o&&(isFunction$2(o)&&(o={mounted:o,updated:o}),o.deep&&traverse(s),i.push({dir:o,instance:n,value:s,oldValue:void 0,arg:l,modifiers:u}))}return t}function invokeDirectiveHook(t,r,n,i){const a=t.dirs,o=r&&r.dirs;for(let s=0;s<a.length;s++){const l=a[s];o&&(l.oldValue=o[s].value);let u=l.dir[i];u&&(pauseTracking(),callWithAsyncErrorHandling(u,n,8,[t.el,l,t,r]),resetTracking())}}const TeleportEndKey=Symbol("_vte"),isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTeleportDeferred=t=>t&&(t.defer||t.defer===""),isTargetSVG=t=>typeof SVGElement!="undefined"&&t instanceof SVGElement,isTargetMathML=t=>typeof MathMLElement=="function"&&t instanceof MathMLElement,resolveTarget=(t,r)=>{const n=t&&t.to;return isString$2(n)?r?r(n):null:n},TeleportImpl={name:"Teleport",__isTeleport:!0,process(t,r,n,i,a,o,s,l,u,c){const{mc:d,pc:v,pbc:I,o:{insert:$,querySelector:O,createText:R,createComment:M}}=c,N=isTeleportDisabled(r.props);let{shapeFlag:V,children:G,dynamicChildren:Y}=r;if(t==null){const X=r.el=R(""),q=r.anchor=R("");$(X,n,i),$(q,n,i);const Z=(ne,J)=>{V&16&&d(G,ne,J,a,o,s,l,u)},ee=()=>{const ne=r.target=resolveTarget(r.props,O),J=prepareAnchor(ne,r,R,$);ne&&(s!=="svg"&&isTargetSVG(ne)?s="svg":s!=="mathml"&&isTargetMathML(ne)&&(s="mathml"),a&&a.isCE&&(a.ce._teleportTargets||(a.ce._teleportTargets=new Set)).add(ne),N||(Z(ne,J),updateCssVars(r,!1)))};N&&(Z(n,q),updateCssVars(r,!0)),isTeleportDeferred(r.props)?(r.el.__isMounted=!1,queuePostRenderEffect(()=>{ee(),delete r.el.__isMounted},o)):ee()}else{if(isTeleportDeferred(r.props)&&t.el.__isMounted===!1){queuePostRenderEffect(()=>{TeleportImpl.process(t,r,n,i,a,o,s,l,u,c)},o);return}r.el=t.el,r.targetStart=t.targetStart;const X=r.anchor=t.anchor,q=r.target=t.target,Z=r.targetAnchor=t.targetAnchor,ee=isTeleportDisabled(t.props),ne=ee?n:q,J=ee?X:Z;if(s==="svg"||isTargetSVG(q)?s="svg":(s==="mathml"||isTargetMathML(q))&&(s="mathml"),Y?(I(t.dynamicChildren,Y,ne,a,o,s,l),traverseStaticChildren(t,r,!0)):u||v(t,r,ne,J,a,o,s,l,!1),N)ee?r.props&&t.props&&r.props.to!==t.props.to&&(r.props.to=t.props.to):moveTeleport(r,n,X,c,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const te=r.target=resolveTarget(r.props,O);te&&moveTeleport(r,te,null,c,0)}else ee&&moveTeleport(r,q,Z,c,1);updateCssVars(r,N)}},remove(t,r,n,{um:i,o:{remove:a}},o){const{shapeFlag:s,children:l,anchor:u,targetStart:c,targetAnchor:d,target:v,props:I}=t;if(v&&(a(c),a(d)),o&&a(u),s&16){const $=o||!isTeleportDisabled(I);for(let O=0;O<l.length;O++){const R=l[O];i(R,r,n,$,!!R.dynamicChildren)}}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport(t,r,n,{o:{insert:i},m:a},o=2){o===0&&i(t.targetAnchor,r,n);const{el:s,anchor:l,shapeFlag:u,children:c,props:d}=t,v=o===2;if(v&&i(s,r,n),(!v||isTeleportDisabled(d))&&u&16)for(let I=0;I<c.length;I++)a(c[I],r,n,2);v&&i(l,r,n)}function hydrateTeleport(t,r,n,i,a,o,{o:{nextSibling:s,parentNode:l,querySelector:u,insert:c,createText:d}},v){function I(R,M,N,V){M.anchor=v(s(R),M,l(R),n,i,a,o),M.targetStart=N,M.targetAnchor=V}const $=r.target=resolveTarget(r.props,u),O=isTeleportDisabled(r.props);if($){const R=$._lpa||$.firstChild;if(r.shapeFlag&16)if(O)I(t,r,R,R&&s(R));else{r.anchor=s(t);let M=R;for(;M;){if(M&&M.nodeType===8){if(M.data==="teleport start anchor")r.targetStart=M;else if(M.data==="teleport anchor"){r.targetAnchor=M,$._lpa=r.targetAnchor&&s(r.targetAnchor);break}}M=s(M)}r.targetAnchor||prepareAnchor($,r,d,c),v(R&&s(R),r,$,n,i,a,o)}updateCssVars(r,O)}else O&&r.shapeFlag&16&&I(t,r,t,s(t));return r.anchor&&s(r.anchor)}const Teleport=TeleportImpl;function updateCssVars(t,r){const n=t.ctx;if(n&&n.ut){let i,a;for(r?(i=t.el,a=t.anchor):(i=t.targetStart,a=t.targetAnchor);i&&i!==a;)i.nodeType===1&&i.setAttribute("data-v-owner",n.uid),i=i.nextSibling;n.ut()}}function prepareAnchor(t,r,n,i){const a=r.targetStart=n(""),o=r.targetAnchor=n("");return a[TeleportEndKey]=o,t&&(i(a,t),i(o,t)),o}const leaveCbKey=Symbol("_leaveCb"),enterCbKey=Symbol("_enterCb");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],BaseTransitionPropsValidators={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},recursiveGetSubtree=t=>{const r=t.subTree;return r.component?recursiveGetSubtree(r.component):r},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:r}){const n=getCurrentInstance(),i=useTransitionState();return()=>{const a=r.default&&getTransitionRawChildren(r.default(),!0);if(!a||!a.length)return;const o=findNonCommentChild(a),s=toRaw(t),{mode:l}=s;if(i.isLeaving)return emptyPlaceholder(o);const u=getInnerChild$1(o);if(!u)return emptyPlaceholder(o);let c=resolveTransitionHooks(u,s,i,n,v=>c=v);u.type!==Comment&&setTransitionHooks(u,c);let d=n.subTree&&getInnerChild$1(n.subTree);if(d&&d.type!==Comment&&!isSameVNodeType(d,u)&&recursiveGetSubtree(n).type!==Comment){let v=resolveTransitionHooks(d,s,i,n);if(setTransitionHooks(d,v),l==="out-in"&&u.type!==Comment)return i.isLeaving=!0,v.afterLeave=()=>{i.isLeaving=!1,n.job.flags&8||n.update(),delete v.afterLeave,d=void 0},emptyPlaceholder(o);l==="in-out"&&u.type!==Comment?v.delayLeave=(I,$,O)=>{const R=getLeavingNodesForType(i,d);R[String(d.key)]=d,I[leaveCbKey]=()=>{$(),I[leaveCbKey]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{O(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return o}}};function findNonCommentChild(t){let r=t[0];if(t.length>1){for(const n of t)if(n.type!==Comment){r=n;break}}return r}const BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,r){const{leavingVNodes:n}=t;let i=n.get(r.type);return i||(i=Object.create(null),n.set(r.type,i)),i}function resolveTransitionHooks(t,r,n,i,a){const{appear:o,mode:s,persisted:l=!1,onBeforeEnter:u,onEnter:c,onAfterEnter:d,onEnterCancelled:v,onBeforeLeave:I,onLeave:$,onAfterLeave:O,onLeaveCancelled:R,onBeforeAppear:M,onAppear:N,onAfterAppear:V,onAppearCancelled:G}=r,Y=String(t.key),X=getLeavingNodesForType(n,t),q=(ne,J)=>{ne&&callWithAsyncErrorHandling(ne,i,9,J)},Z=(ne,J)=>{const te=J[1];q(ne,J),isArray$2(ne)?ne.every(Q=>Q.length<=1)&&te():ne.length<=1&&te()},ee={mode:s,persisted:l,beforeEnter(ne){let J=u;if(!n.isMounted)if(o)J=M||u;else return;ne[leaveCbKey]&&ne[leaveCbKey](!0);const te=X[Y];te&&isSameVNodeType(t,te)&&te.el[leaveCbKey]&&te.el[leaveCbKey](),q(J,[ne])},enter(ne){let J=c,te=d,Q=v;if(!n.isMounted)if(o)J=N||c,te=V||d,Q=G||v;else return;let oe=!1;const ue=ne[enterCbKey]=fe=>{oe||(oe=!0,fe?q(Q,[ne]):q(te,[ne]),ee.delayedLeave&&ee.delayedLeave(),ne[enterCbKey]=void 0)};J?Z(J,[ne,ue]):ue()},leave(ne,J){const te=String(t.key);if(ne[enterCbKey]&&ne[enterCbKey](!0),n.isUnmounting)return J();q(I,[ne]);let Q=!1;const oe=ne[leaveCbKey]=ue=>{Q||(Q=!0,J(),ue?q(R,[ne]):q(O,[ne]),ne[leaveCbKey]=void 0,X[te]===t&&delete X[te])};X[te]=t,$?Z($,[ne,oe]):oe()},clone(ne){const J=resolveTransitionHooks(ne,r,n,i,a);return a&&a(J),J}};return ee}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getInnerChild$1(t){if(!isKeepAlive(t))return isTeleport(t.type)&&t.children?findNonCommentChild(t.children):t;if(t.component)return t.component.subTree;const{shapeFlag:r,children:n}=t;if(n){if(r&16)return n[0];if(r&32&&isFunction$2(n.default))return n.default()}}function setTransitionHooks(t,r){t.shapeFlag&6&&t.component?(t.transition=r,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 i=[],a=0;for(let o=0;o<t.length;o++){let s=t[o];const l=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Fragment?(s.patchFlag&128&&a++,i=i.concat(getTransitionRawChildren(s.children,r,l))):(r||s.type!==Comment)&&i.push(l!=null?cloneVNode(s,{key:l}):s)}if(a>1)for(let o=0;o<i.length;o++)i[o].patchFlag=-2;return i}function defineComponent(t,r){return isFunction$2(t)?(()=>extend$1({name:t.name},r,{setup:t}))():t}function markAsyncBoundary(t){t.ids=[t.ids[0]+t.ids[2]+++"-",0,0]}const pendingSetRefMap=new WeakMap;function setRef(t,r,n,i,a=!1){if(isArray$2(t)){t.forEach((O,R)=>setRef(O,r&&(isArray$2(r)?r[R]:r),n,i,a));return}if(isAsyncWrapper(i)&&!a){i.shapeFlag&512&&i.type.__asyncResolved&&i.component.subTree.component&&setRef(t,r,n,i.component.subTree);return}const o=i.shapeFlag&4?getComponentPublicInstance(i.component):i.el,s=a?null:o,{i:l,r:u}=t,c=r&&r.r,d=l.refs===EMPTY_OBJ$1?l.refs={}:l.refs,v=l.setupState,I=toRaw(v),$=v===EMPTY_OBJ$1?NO:O=>hasOwn$1(I,O);if(c!=null&&c!==u){if(invalidatePendingSetRef(r),isString$2(c))d[c]=null,$(c)&&(v[c]=null);else if(isRef(c)){c.value=null;const O=r;O.k&&(d[O.k]=null)}}if(isFunction$2(u))callWithErrorHandling(u,l,12,[s,d]);else{const O=isString$2(u),R=isRef(u);if(O||R){const M=()=>{if(t.f){const N=O?$(u)?v[u]:d[u]:u.value;if(a)isArray$2(N)&&remove(N,o);else if(isArray$2(N))N.includes(o)||N.push(o);else if(O)d[u]=[o],$(u)&&(v[u]=d[u]);else{const V=[o];u.value=V,t.k&&(d[t.k]=V)}}else O?(d[u]=s,$(u)&&(v[u]=s)):R&&(u.value=s,t.k&&(d[t.k]=s))};if(s){const N=()=>{M(),pendingSetRefMap.delete(t)};N.id=-1,pendingSetRefMap.set(t,N),queuePostRenderEffect(N,n)}else invalidatePendingSetRef(t),M()}}}function invalidatePendingSetRef(t){const r=pendingSetRefMap.get(t);r&&(r.flags|=8,pendingSetRefMap.delete(t))}getGlobalThis().requestIdleCallback;getGlobalThis().cancelIdleCallback;const isAsyncWrapper=t=>!!t.type.__asyncLoader,isKeepAlive=t=>t.type.__isKeepAlive;function onActivated(t,r){registerKeepAliveHook(t,"a",r)}function onDeactivated(t,r){registerKeepAliveHook(t,"da",r)}function registerKeepAliveHook(t,r,n=currentInstance){const i=t.__wdc||(t.__wdc=()=>{let a=n;for(;a;){if(a.isDeactivated)return;a=a.parent}return t()});if(injectHook(r,i,n),n){let a=n.parent;for(;a&&a.parent;)isKeepAlive(a.parent.vnode)&&injectToKeepAliveRoot(i,r,n,a),a=a.parent}}function injectToKeepAliveRoot(t,r,n,i){const a=injectHook(r,t,i,!0);onUnmounted(()=>{remove(i[r],a)},n)}function injectHook(t,r,n=currentInstance,i=!1){if(n){const a=n[t]||(n[t]=[]),o=r.__weh||(r.__weh=(...s)=>{pauseTracking();const l=setCurrentInstance(n),u=callWithAsyncErrorHandling(r,n,t,s);return l(),resetTracking(),u});return i?a.unshift(o):a.push(o),o}}const createHook=t=>(r,n=currentInstance)=>{(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...i)=>r(...i),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)}const COMPONENTS="components";function resolveComponent(t,r){return resolveAsset(COMPONENTS,t,!0,r)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$2(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveAsset(t,r,n=!0,i=!1){const a=currentRenderingInstance||currentInstance;if(a){const o=a.type;if(t===COMPONENTS){const l=getComponentName(o,!1);if(l&&(l===r||l===camelize(r)||l===capitalize(camelize(r))))return o}const s=resolve(a[t]||o[t],r)||resolve(a.appContext[t],r);return!s&&i?o:s}}function resolve(t,r){return t&&(t[r]||t[camelize(r)]||t[capitalize(camelize(r))])}function renderList(t,r,n,i){let a;const o=n&&n[i],s=isArray$2(t);if(s||isString$2(t)){const l=s&&isReactive(t);let u=!1,c=!1;l&&(u=!isShallow(t),c=isReadonly(t),t=shallowReadArray(t)),a=new Array(t.length);for(let d=0,v=t.length;d<v;d++)a[d]=r(u?c?toReadonly(toReactive(t[d])):toReactive(t[d]):t[d],d,void 0,o&&o[d])}else if(typeof t=="number"){a=new Array(t);for(let l=0;l<t;l++)a[l]=r(l+1,l,void 0,o&&o[l])}else if(isObject$4(t))if(t[Symbol.iterator])a=Array.from(t,(l,u)=>r(l,u,void 0,o&&o[u]));else{const l=Object.keys(t);a=new Array(l.length);for(let u=0,c=l.length;u<c;u++){const d=l[u];a[u]=r(t[d],d,u,o&&o[u])}}else a=[];return n&&(n[i]=a),a}function createSlots(t,r){for(let n=0;n<r.length;n++){const i=r[n];if(isArray$2(i))for(let a=0;a<i.length;a++)t[i[a].name]=i[a].fn;else i&&(t[i.name]=i.key?(...a)=>{const o=i.fn(...a);return o&&(o.key=i.key),o}:i.fn)}return t}function renderSlot(t,r,n={},i,a){if(currentRenderingInstance.ce||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.ce){const c=Object.keys(n).length>0;return r!=="default"&&(n.name=r),openBlock(),createBlock(Fragment,null,[createVNode("slot",n,i&&i())],c?-2:64)}let o=t[r];o&&o._c&&(o._d=!1),openBlock();const s=o&&ensureValidVNode(o(n)),l=n.key||s&&s.key,u=createBlock(Fragment,{key:(l&&!isSymbol(l)?l:`_${r}`)+(!s&&i?"_fb":"")},s||(i?i():[]),s&&t._===1?64:-2);return!a&&u.scopeId&&(u.slotScopeIds=[u.scopeId+"-s"]),o&&o._c&&(o._d=!0),u}function ensureValidVNode(t){return t.some(r=>isVNode(r)?!(r.type===Comment||r.type===Fragment&&!ensureValidVNode(r.children)):!0)?t:null}const getPublicInstance=t=>t?isStatefulComponent(t)?getComponentPublicInstance(t):getPublicInstance(t.parent):null,publicPropertiesMap=extend$1(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),$host:t=>t.ce,$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$1(t,r),PublicInstanceProxyHandlers={get({_:t},r){if(r==="__v_skip")return!0;const{ctx:n,setupState:i,data:a,props:o,accessCache:s,type:l,appContext:u}=t;let c;if(r[0]!=="$"){const $=s[r];if($!==void 0)switch($){case 1:return i[r];case 2:return a[r];case 4:return n[r];case 3:return o[r]}else{if(hasSetupBinding(i,r))return s[r]=1,i[r];if(a!==EMPTY_OBJ$1&&hasOwn$1(a,r))return s[r]=2,a[r];if((c=t.propsOptions[0])&&hasOwn$1(c,r))return s[r]=3,o[r];if(n!==EMPTY_OBJ$1&&hasOwn$1(n,r))return s[r]=4,n[r];shouldCacheAccess&&(s[r]=0)}}const d=publicPropertiesMap[r];let v,I;if(d)return r==="$attrs"&&track(t.attrs,"get",""),d(t);if((v=l.__cssModules)&&(v=v[r]))return v;if(n!==EMPTY_OBJ$1&&hasOwn$1(n,r))return s[r]=4,n[r];if(I=u.config.globalProperties,hasOwn$1(I,r))return I[r]},set({_:t},r,n){const{data:i,setupState:a,ctx:o}=t;return hasSetupBinding(a,r)?(a[r]=n,!0):i!==EMPTY_OBJ$1&&hasOwn$1(i,r)?(i[r]=n,!0):hasOwn$1(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(o[r]=n,!0)},has({_:{data:t,setupState:r,accessCache:n,ctx:i,appContext:a,propsOptions:o,type:s}},l){let u,c;return!!(n[l]||t!==EMPTY_OBJ$1&&l[0]!=="$"&&hasOwn$1(t,l)||hasSetupBinding(r,l)||(u=o[0])&&hasOwn$1(u,l)||hasOwn$1(i,l)||hasOwn$1(publicPropertiesMap,l)||hasOwn$1(a.config.globalProperties,l)||(c=s.__cssModules)&&c[l])},defineProperty(t,r,n){return n.get!=null?t._.accessCache[r]=0:hasOwn$1(n,"value")&&this.set(t,r,n.value,null),Reflect.defineProperty(t,r,n)}};function useSlots(){return getContext().slots}function useAttrs(){return getContext().attrs}function getContext(t){const r=getCurrentInstance();return r.setupContext||(r.setupContext=createSetupContext(r))}function normalizePropsOrEmits(t){return isArray$2(t)?t.reduce((r,n)=>(r[n]=null,r),{}):t}let shouldCacheAccess=!0;function applyOptions(t){const r=resolveMergedOptions(t),n=t.proxy,i=t.ctx;shouldCacheAccess=!1,r.beforeCreate&&callHook$1(r.beforeCreate,t,"bc");const{data:a,computed:o,methods:s,watch:l,provide:u,inject:c,created:d,beforeMount:v,mounted:I,beforeUpdate:$,updated:O,activated:R,deactivated:M,beforeDestroy:N,beforeUnmount:V,destroyed:G,unmounted:Y,render:X,renderTracked:q,renderTriggered:Z,errorCaptured:ee,serverPrefetch:ne,expose:J,inheritAttrs:te,components:Q,directives:oe,filters:ue}=r;if(c&&resolveInjections(c,i,null),s)for(const ye in s){const ge=s[ye];isFunction$2(ge)&&(i[ye]=ge.bind(n))}if(a){const ye=a.call(n,n);isObject$4(ye)&&(t.data=reactive(ye))}if(shouldCacheAccess=!0,o)for(const ye in o){const ge=o[ye],Te=isFunction$2(ge)?ge.bind(n,n):isFunction$2(ge.get)?ge.get.bind(n,n):NOOP,Be=!isFunction$2(ge)&&isFunction$2(ge.set)?ge.set.bind(n):NOOP,Ie=computed({get:Te,set:Be});Object.defineProperty(i,ye,{enumerable:!0,configurable:!0,get:()=>Ie.value,set:me=>Ie.value=me})}if(l)for(const ye in l)createWatcher(l[ye],i,n,ye);if(u){const ye=isFunction$2(u)?u.call(n):u;Reflect.ownKeys(ye).forEach(ge=>{provide(ge,ye[ge])})}d&&callHook$1(d,t,"c");function de(ye,ge){isArray$2(ge)?ge.forEach(Te=>ye(Te.bind(n))):ge&&ye(ge.bind(n))}if(de(onBeforeMount,v),de(onMounted,I),de(onBeforeUpdate,$),de(onUpdated,O),de(onActivated,R),de(onDeactivated,M),de(onErrorCaptured,ee),de(onRenderTracked,q),de(onRenderTriggered,Z),de(onBeforeUnmount,V),de(onUnmounted,Y),de(onServerPrefetch,ne),isArray$2(J))if(J.length){const ye=t.exposed||(t.exposed={});J.forEach(ge=>{Object.defineProperty(ye,ge,{get:()=>n[ge],set:Te=>n[ge]=Te,enumerable:!0})})}else t.exposed||(t.exposed={});X&&t.render===NOOP&&(t.render=X),te!=null&&(t.inheritAttrs=te),Q&&(t.components=Q),oe&&(t.directives=oe),ne&&markAsyncBoundary(t)}function resolveInjections(t,r,n=NOOP){isArray$2(t)&&(t=normalizeInject(t));for(const i in t){const a=t[i];let o;isObject$4(a)?"default"in a?o=inject(a.from||i,a.default,!0):o=inject(a.from||i):o=inject(a),isRef(o)?Object.defineProperty(r,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):r[i]=o}}function callHook$1(t,r,n){callWithAsyncErrorHandling(isArray$2(t)?t.map(i=>i.bind(r.proxy)):t.bind(r.proxy),r,n)}function createWatcher(t,r,n,i){let a=i.includes(".")?createPathGetter(n,i):()=>n[i];if(isString$2(t)){const o=r[t];isFunction$2(o)&&watch(a,o)}else if(isFunction$2(t))watch(a,t.bind(n));else if(isObject$4(t))if(isArray$2(t))t.forEach(o=>createWatcher(o,r,n,i));else{const o=isFunction$2(t.handler)?t.handler.bind(n):r[t.handler];isFunction$2(o)&&watch(a,o,t)}}function resolveMergedOptions(t){const r=t.type,{mixins:n,extends:i}=r,{mixins:a,optionsCache:o,config:{optionMergeStrategies:s}}=t.appContext,l=o.get(r);let u;return l?u=l:!a.length&&!n&&!i?u=r:(u={},a.length&&a.forEach(c=>mergeOptions(u,c,s,!0)),mergeOptions(u,r,s)),isObject$4(r)&&o.set(r,u),u}function mergeOptions(t,r,n,i=!1){const{mixins:a,extends:o}=r;o&&mergeOptions(t,o,n,!0),a&&a.forEach(s=>mergeOptions(t,s,n,!0));for(const s in r)if(!(i&&s==="expose")){const l=internalOptionMergeStrats[s]||n&&n[s];t[s]=l?l(t[s],r[s]):r[s]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,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$1(isFunction$2(t)?t.call(this,this):t,isFunction$2(r)?r.call(this,this):r)}:r:t}function mergeInject(t,r){return mergeObjectOptions(normalizeInject(t),normalizeInject(r))}function normalizeInject(t){if(isArray$2(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$1(Object.create(null),t,r):r}function mergeEmitsOrPropsOptions(t,r){return t?isArray$2(t)&&isArray$2(r)?[...new Set([...t,...r])]:extend$1(Object.create(null),normalizePropsOrEmits(t),normalizePropsOrEmits(r!=null?r:{})):r}function mergeWatchOptions(t,r){if(!t)return r;if(!r)return t;const n=extend$1(Object.create(null),t);for(const i in r)n[i]=mergeAsArray(t[i],r[i]);return n}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(i,a=null){isFunction$2(i)||(i=extend$1({},i)),a!=null&&!isObject$4(a)&&(a=null);const o=createAppContext(),s=new WeakSet,l=[];let u=!1;const c=o.app={_uid:uid$1++,_component:i,_props:a,_container:null,_context:o,_instance:null,version,get config(){return o.config},set config(d){},use(d,...v){return s.has(d)||(d&&isFunction$2(d.install)?(s.add(d),d.install(c,...v)):isFunction$2(d)&&(s.add(d),d(c,...v))),c},mixin(d){return o.mixins.includes(d)||o.mixins.push(d),c},component(d,v){return v?(o.components[d]=v,c):o.components[d]},directive(d,v){return v?(o.directives[d]=v,c):o.directives[d]},mount(d,v,I){if(!u){const $=c._ceVNode||createVNode(i,a);return $.appContext=o,I===!0?I="svg":I===!1&&(I=void 0),v&&r?r($,d):t($,d,I),u=!0,c._container=d,d.__vue_app__=c,getComponentPublicInstance($.component)}},onUnmount(d){l.push(d)},unmount(){u&&(callWithAsyncErrorHandling(l,c._instance,16),t(null,c._container),delete c._container.__vue_app__)},provide(d,v){return o.provides[d]=v,c},runWithContext(d){const v=currentApp;currentApp=c;try{return d()}finally{currentApp=v}}};return c}}let currentApp=null;function provide(t,r){if(currentInstance){let n=currentInstance.provides;const i=currentInstance.parent&&currentInstance.parent.provides;i===n&&(n=currentInstance.provides=Object.create(i)),n[t]=r}}function inject(t,r,n=!1){const i=getCurrentInstance();if(i||currentApp){let a=currentApp?currentApp._context.provides:i?i.parent==null||i.ce?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:void 0;if(a&&t in a)return a[t];if(arguments.length>1)return n&&isFunction$2(r)?r.call(i&&i.proxy):r}}const internalObjectProto={},createInternalObject=()=>Object.create(internalObjectProto),isInternalObject=t=>Object.getPrototypeOf(t)===internalObjectProto;function initProps$1(t,r,n,i=!1){const a={},o=createInternalObject();t.propsDefaults=Object.create(null),setFullProps(t,r,a,o);for(const s in t.propsOptions[0])s in a||(a[s]=void 0);n?t.props=i?a:shallowReactive(a):t.type.props?t.props=a:t.props=o,t.attrs=o}function updateProps$2(t,r,n,i){const{props:a,attrs:o,vnode:{patchFlag:s}}=t,l=toRaw(a),[u]=t.propsOptions;let c=!1;if((i||s>0)&&!(s&16)){if(s&8){const d=t.vnode.dynamicProps;for(let v=0;v<d.length;v++){let I=d[v];if(isEmitListener(t.emitsOptions,I))continue;const $=r[I];if(u)if(hasOwn$1(o,I))$!==o[I]&&(o[I]=$,c=!0);else{const O=camelize(I);a[O]=resolvePropValue(u,l,O,$,t,!1)}else $!==o[I]&&(o[I]=$,c=!0)}}}else{setFullProps(t,r,a,o)&&(c=!0);let d;for(const v in l)(!r||!hasOwn$1(r,v)&&((d=hyphenate(v))===v||!hasOwn$1(r,d)))&&(u?n&&(n[v]!==void 0||n[d]!==void 0)&&(a[v]=resolvePropValue(u,l,v,void 0,t,!0)):delete a[v]);if(o!==l)for(const v in o)(!r||!hasOwn$1(r,v)&&!0)&&(delete o[v],c=!0)}c&&trigger(t.attrs,"set","")}function setFullProps(t,r,n,i){const[a,o]=t.propsOptions;let s=!1,l;if(r)for(let u in r){if(isReservedProp(u))continue;const c=r[u];let d;a&&hasOwn$1(a,d=camelize(u))?!o||!o.includes(d)?n[d]=c:(l||(l={}))[d]=c:isEmitListener(t.emitsOptions,u)||(!(u in i)||c!==i[u])&&(i[u]=c,s=!0)}if(o){const u=toRaw(n),c=l||EMPTY_OBJ$1;for(let d=0;d<o.length;d++){const v=o[d];n[v]=resolvePropValue(a,u,v,c[v],t,!hasOwn$1(c,v))}}return s}function resolvePropValue(t,r,n,i,a,o){const s=t[n];if(s!=null){const l=hasOwn$1(s,"default");if(l&&i===void 0){const u=s.default;if(s.type!==Function&&!s.skipFactory&&isFunction$2(u)){const{propsDefaults:c}=a;if(n in c)i=c[n];else{const d=setCurrentInstance(a);i=c[n]=u.call(null,r),d()}}else i=u;a.ce&&a.ce._setProp(n,i)}s[0]&&(o&&!l?i=!1:s[1]&&(i===""||i===hyphenate(n))&&(i=!0))}return i}const mixinPropsCache=new WeakMap;function normalizePropsOptions(t,r,n=!1){const i=n?mixinPropsCache:r.propsCache,a=i.get(t);if(a)return a;const o=t.props,s={},l=[];let u=!1;if(!isFunction$2(t)){const d=v=>{u=!0;const[I,$]=normalizePropsOptions(v,r,!0);extend$1(s,I),$&&l.push(...$)};!n&&r.mixins.length&&r.mixins.forEach(d),t.extends&&d(t.extends),t.mixins&&t.mixins.forEach(d)}if(!o&&!u)return isObject$4(t)&&i.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$2(o))for(let d=0;d<o.length;d++){const v=camelize(o[d]);validatePropName(v)&&(s[v]=EMPTY_OBJ$1)}else if(o)for(const d in o){const v=camelize(d);if(validatePropName(v)){const I=o[d],$=s[v]=isArray$2(I)||isFunction$2(I)?{type:I}:extend$1({},I),O=$.type;let R=!1,M=!0;if(isArray$2(O))for(let N=0;N<O.length;++N){const V=O[N],G=isFunction$2(V)&&V.name;if(G==="Boolean"){R=!0;break}else G==="String"&&(M=!1)}else R=isFunction$2(O)&&O.name==="Boolean";$[0]=R,$[1]=M,(R||hasOwn$1($,"default"))&&l.push(v)}}const c=[s,l];return isObject$4(t)&&i.set(t,c),c}function validatePropName(t){return t[0]!=="$"&&!isReservedProp(t)}const isInternalKey=t=>t==="_"||t==="_ctx"||t==="$stable",normalizeSlotValue=t=>isArray$2(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot$1=(t,r,n)=>{if(r._n)return r;const i=withCtx((...a)=>normalizeSlotValue(r(...a)),n);return i._c=!1,i},normalizeObjectSlots=(t,r,n)=>{const i=t._ctx;for(const a in t){if(isInternalKey(a))continue;const o=t[a];if(isFunction$2(o))r[a]=normalizeSlot$1(a,o,i);else if(o!=null){const s=normalizeSlotValue(o);r[a]=()=>s}}},normalizeVNodeSlots=(t,r)=>{const n=normalizeSlotValue(r);t.slots.default=()=>n},assignSlots=(t,r,n)=>{for(const i in r)(n||!isInternalKey(i))&&(t[i]=r[i])},initSlots=(t,r,n)=>{const i=t.slots=createInternalObject();if(t.vnode.shapeFlag&32){const a=r._;a?(assignSlots(i,r,n),n&&def(i,"_",a,!0)):normalizeObjectSlots(r,i)}else r&&normalizeVNodeSlots(t,r)},updateSlots=(t,r,n)=>{const{vnode:i,slots:a}=t;let o=!0,s=EMPTY_OBJ$1;if(i.shapeFlag&32){const l=r._;l?n&&l===1?o=!1:assignSlots(a,r,n):(o=!r.$stable,normalizeObjectSlots(r,a)),s=r}else r&&(normalizeVNodeSlots(t,r),s={default:1});if(o)for(const l in a)!isInternalKey(l)&&s[l]==null&&delete a[l]};function initFeatureFlags(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(getGlobalThis().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function baseCreateRenderer(t,r){initFeatureFlags();const n=getGlobalThis();n.__VUE__=!0;const{insert:i,remove:a,patchProp:o,createElement:s,createText:l,createComment:u,setText:c,setElementText:d,parentNode:v,nextSibling:I,setScopeId:$=NOOP,insertStaticContent:O}=t,R=(se,ae,ve,Ce=null,be=null,xe=null,Re=void 0,Pe=null,Oe=!!ae.dynamicChildren)=>{if(se===ae)return;se&&!isSameVNodeType(se,ae)&&(Ce=ft(se),me(se,be,xe,!0),se=null),ae.patchFlag===-2&&(Oe=!1,ae.dynamicChildren=null);const{type:we,ref:We,shapeFlag:Ne}=ae;switch(we){case Text:M(se,ae,ve,Ce);break;case Comment:N(se,ae,ve,Ce);break;case Static:se==null&&V(ae,ve,Ce,Re);break;case Fragment:Q(se,ae,ve,Ce,be,xe,Re,Pe,Oe);break;default:Ne&1?X(se,ae,ve,Ce,be,xe,Re,Pe,Oe):Ne&6?oe(se,ae,ve,Ce,be,xe,Re,Pe,Oe):(Ne&64||Ne&128)&&we.process(se,ae,ve,Ce,be,xe,Re,Pe,Oe,Le)}We!=null&&be?setRef(We,se&&se.ref,xe,ae||se,!ae):We==null&&se&&se.ref!=null&&setRef(se.ref,null,xe,se,!0)},M=(se,ae,ve,Ce)=>{if(se==null)i(ae.el=l(ae.children),ve,Ce);else{const be=ae.el=se.el;ae.children!==se.children&&c(be,ae.children)}},N=(se,ae,ve,Ce)=>{se==null?i(ae.el=u(ae.children||""),ve,Ce):ae.el=se.el},V=(se,ae,ve,Ce)=>{[se.el,se.anchor]=O(se.children,ae,ve,Ce,se.el,se.anchor)},G=({el:se,anchor:ae},ve,Ce)=>{let be;for(;se&&se!==ae;)be=I(se),i(se,ve,Ce),se=be;i(ae,ve,Ce)},Y=({el:se,anchor:ae})=>{let ve;for(;se&&se!==ae;)ve=I(se),a(se),se=ve;a(ae)},X=(se,ae,ve,Ce,be,xe,Re,Pe,Oe)=>{if(ae.type==="svg"?Re="svg":ae.type==="math"&&(Re="mathml"),se==null)q(ae,ve,Ce,be,xe,Re,Pe,Oe);else{const we=se.el&&se.el._isVueCE?se.el:null;try{we&&we._beginPatch(),ne(se,ae,be,xe,Re,Pe,Oe)}finally{we&&we._endPatch()}}},q=(se,ae,ve,Ce,be,xe,Re,Pe)=>{let Oe,we;const{props:We,shapeFlag:Ne,transition:ze,dirs:qe}=se;if(Oe=se.el=s(se.type,xe,We&&We.is,We),Ne&8?d(Oe,se.children):Ne&16&&ee(se.children,Oe,null,Ce,be,resolveChildrenNamespace(se,xe),Re,Pe),qe&&invokeDirectiveHook(se,null,Ce,"created"),Z(Oe,se,se.scopeId,Re,Ce),We){for(const st in We)st!=="value"&&!isReservedProp(st)&&o(Oe,st,null,We[st],xe,Ce);"value"in We&&o(Oe,"value",null,We.value,xe),(we=We.onVnodeBeforeMount)&&invokeVNodeHook(we,Ce,se)}qe&&invokeDirectiveHook(se,null,Ce,"beforeMount");const Je=needTransition(be,ze);Je&&ze.beforeEnter(Oe),i(Oe,ae,ve),((we=We&&We.onVnodeMounted)||Je||qe)&&queuePostRenderEffect(()=>{we&&invokeVNodeHook(we,Ce,se),Je&&ze.enter(Oe),qe&&invokeDirectiveHook(se,null,Ce,"mounted")},be)},Z=(se,ae,ve,Ce,be)=>{if(ve&&$(se,ve),Ce)for(let xe=0;xe<Ce.length;xe++)$(se,Ce[xe]);if(be){let xe=be.subTree;if(ae===xe||isSuspense(xe.type)&&(xe.ssContent===ae||xe.ssFallback===ae)){const Re=be.vnode;Z(se,Re,Re.scopeId,Re.slotScopeIds,be.parent)}}},ee=(se,ae,ve,Ce,be,xe,Re,Pe,Oe=0)=>{for(let we=Oe;we<se.length;we++){const We=se[we]=Pe?cloneIfMounted(se[we]):normalizeVNode(se[we]);R(null,We,ae,ve,Ce,be,xe,Re,Pe)}},ne=(se,ae,ve,Ce,be,xe,Re)=>{const Pe=ae.el=se.el;let{patchFlag:Oe,dynamicChildren:we,dirs:We}=ae;Oe|=se.patchFlag&16;const Ne=se.props||EMPTY_OBJ$1,ze=ae.props||EMPTY_OBJ$1;let qe;if(ve&&toggleRecurse(ve,!1),(qe=ze.onVnodeBeforeUpdate)&&invokeVNodeHook(qe,ve,ae,se),We&&invokeDirectiveHook(ae,se,ve,"beforeUpdate"),ve&&toggleRecurse(ve,!0),(Ne.innerHTML&&ze.innerHTML==null||Ne.textContent&&ze.textContent==null)&&d(Pe,""),we?J(se.dynamicChildren,we,Pe,ve,Ce,resolveChildrenNamespace(ae,be),xe):Re||ge(se,ae,Pe,null,ve,Ce,resolveChildrenNamespace(ae,be),xe,!1),Oe>0){if(Oe&16)te(Pe,Ne,ze,ve,be);else if(Oe&2&&Ne.class!==ze.class&&o(Pe,"class",null,ze.class,be),Oe&4&&o(Pe,"style",Ne.style,ze.style,be),Oe&8){const Je=ae.dynamicProps;for(let st=0;st<Je.length;st++){const ht=Je[st],$t=Ne[ht],At=ze[ht];(At!==$t||ht==="value")&&o(Pe,ht,$t,At,be,ve)}}Oe&1&&se.children!==ae.children&&d(Pe,ae.children)}else!Re&&we==null&&te(Pe,Ne,ze,ve,be);((qe=ze.onVnodeUpdated)||We)&&queuePostRenderEffect(()=>{qe&&invokeVNodeHook(qe,ve,ae,se),We&&invokeDirectiveHook(ae,se,ve,"updated")},Ce)},J=(se,ae,ve,Ce,be,xe,Re)=>{for(let Pe=0;Pe<ae.length;Pe++){const Oe=se[Pe],we=ae[Pe],We=Oe.el&&(Oe.type===Fragment||!isSameVNodeType(Oe,we)||Oe.shapeFlag&198)?v(Oe.el):ve;R(Oe,we,We,null,Ce,be,xe,Re,!0)}},te=(se,ae,ve,Ce,be)=>{if(ae!==ve){if(ae!==EMPTY_OBJ$1)for(const xe in ae)!isReservedProp(xe)&&!(xe in ve)&&o(se,xe,ae[xe],null,be,Ce);for(const xe in ve){if(isReservedProp(xe))continue;const Re=ve[xe],Pe=ae[xe];Re!==Pe&&xe!=="value"&&o(se,xe,Pe,Re,be,Ce)}"value"in ve&&o(se,"value",ae.value,ve.value,be)}},Q=(se,ae,ve,Ce,be,xe,Re,Pe,Oe)=>{const we=ae.el=se?se.el:l(""),We=ae.anchor=se?se.anchor:l("");let{patchFlag:Ne,dynamicChildren:ze,slotScopeIds:qe}=ae;qe&&(Pe=Pe?Pe.concat(qe):qe),se==null?(i(we,ve,Ce),i(We,ve,Ce),ee(ae.children||[],ve,We,be,xe,Re,Pe,Oe)):Ne>0&&Ne&64&&ze&&se.dynamicChildren?(J(se.dynamicChildren,ze,ve,be,xe,Re,Pe),(ae.key!=null||be&&ae===be.subTree)&&traverseStaticChildren(se,ae,!0)):ge(se,ae,ve,We,be,xe,Re,Pe,Oe)},oe=(se,ae,ve,Ce,be,xe,Re,Pe,Oe)=>{ae.slotScopeIds=Pe,se==null?ae.shapeFlag&512?be.ctx.activate(ae,ve,Ce,Re,Oe):ue(ae,ve,Ce,be,xe,Re,Oe):fe(se,ae,Oe)},ue=(se,ae,ve,Ce,be,xe,Re)=>{const Pe=se.component=createComponentInstance(se,Ce,be);if(isKeepAlive(se)&&(Pe.ctx.renderer=Le),setupComponent(Pe,!1,Re),Pe.asyncDep){if(be&&be.registerDep(Pe,de,Re),!se.el){const Oe=Pe.subTree=createVNode(Comment);N(null,Oe,ae,ve),se.placeholder=Oe.el}}else de(Pe,se,ae,ve,be,xe,Re)},fe=(se,ae,ve)=>{const Ce=ae.component=se.component;if(shouldUpdateComponent(se,ae,ve))if(Ce.asyncDep&&!Ce.asyncResolved){ye(Ce,ae,ve);return}else Ce.next=ae,Ce.update();else ae.el=se.el,Ce.vnode=ae},de=(se,ae,ve,Ce,be,xe,Re)=>{const Pe=()=>{if(se.isMounted){let{next:Ne,bu:ze,u:qe,parent:Je,vnode:st}=se;{const Ot=locateNonHydratedAsyncRoot(se);if(Ot){Ne&&(Ne.el=st.el,ye(se,Ne,Re)),Ot.asyncDep.then(()=>{se.isUnmounted||Pe()});return}}let ht=Ne,$t;toggleRecurse(se,!1),Ne?(Ne.el=st.el,ye(se,Ne,Re)):Ne=st,ze&&invokeArrayFns(ze),($t=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&invokeVNodeHook($t,Je,Ne,st),toggleRecurse(se,!0);const At=renderComponentRoot(se),Bt=se.subTree;se.subTree=At,R(Bt,At,v(Bt.el),ft(Bt),se,be,xe),Ne.el=At.el,ht===null&&updateHOCHostEl(se,At.el),qe&&queuePostRenderEffect(qe,be),($t=Ne.props&&Ne.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook($t,Je,Ne,st),be)}else{let Ne;const{el:ze,props:qe}=ae,{bm:Je,m:st,parent:ht,root:$t,type:At}=se,Bt=isAsyncWrapper(ae);if(toggleRecurse(se,!1),Je&&invokeArrayFns(Je),!Bt&&(Ne=qe&&qe.onVnodeBeforeMount)&&invokeVNodeHook(Ne,ht,ae),toggleRecurse(se,!0),ze&&ke){const Ot=()=>{se.subTree=renderComponentRoot(se),ke(ze,se.subTree,se,be,null)};Bt&&At.__asyncHydrate?At.__asyncHydrate(ze,se,Ot):Ot()}else{$t.ce&&$t.ce._def.shadowRoot!==!1&&$t.ce._injectChildStyle(At);const Ot=se.subTree=renderComponentRoot(se);R(null,Ot,ve,Ce,se,be,xe),ae.el=Ot.el}if(st&&queuePostRenderEffect(st,be),!Bt&&(Ne=qe&&qe.onVnodeMounted)){const Ot=ae;queuePostRenderEffect(()=>invokeVNodeHook(Ne,ht,Ot),be)}(ae.shapeFlag&256||ht&&isAsyncWrapper(ht.vnode)&&ht.vnode.shapeFlag&256)&&se.a&&queuePostRenderEffect(se.a,be),se.isMounted=!0,ae=ve=Ce=null}};se.scope.on();const Oe=se.effect=new ReactiveEffect(Pe);se.scope.off();const we=se.update=Oe.run.bind(Oe),We=se.job=Oe.runIfDirty.bind(Oe);We.i=se,We.id=se.uid,Oe.scheduler=()=>queueJob(We),toggleRecurse(se,!0),we()},ye=(se,ae,ve)=>{ae.component=se;const Ce=se.vnode.props;se.vnode=ae,se.next=null,updateProps$2(se,ae.props,Ce,ve),updateSlots(se,ae.children,ve),pauseTracking(),flushPreFlushCbs(se),resetTracking()},ge=(se,ae,ve,Ce,be,xe,Re,Pe,Oe=!1)=>{const we=se&&se.children,We=se?se.shapeFlag:0,Ne=ae.children,{patchFlag:ze,shapeFlag:qe}=ae;if(ze>0){if(ze&128){Be(we,Ne,ve,Ce,be,xe,Re,Pe,Oe);return}else if(ze&256){Te(we,Ne,ve,Ce,be,xe,Re,Pe,Oe);return}}qe&8?(We&16&&Ze(we,be,xe),Ne!==we&&d(ve,Ne)):We&16?qe&16?Be(we,Ne,ve,Ce,be,xe,Re,Pe,Oe):Ze(we,be,xe,!0):(We&8&&d(ve,""),qe&16&&ee(Ne,ve,Ce,be,xe,Re,Pe,Oe))},Te=(se,ae,ve,Ce,be,xe,Re,Pe,Oe)=>{se=se||EMPTY_ARR,ae=ae||EMPTY_ARR;const we=se.length,We=ae.length,Ne=Math.min(we,We);let ze;for(ze=0;ze<Ne;ze++){const qe=ae[ze]=Oe?cloneIfMounted(ae[ze]):normalizeVNode(ae[ze]);R(se[ze],qe,ve,null,be,xe,Re,Pe,Oe)}we>We?Ze(se,be,xe,!0,!1,Ne):ee(ae,ve,Ce,be,xe,Re,Pe,Oe,Ne)},Be=(se,ae,ve,Ce,be,xe,Re,Pe,Oe)=>{let we=0;const We=ae.length;let Ne=se.length-1,ze=We-1;for(;we<=Ne&&we<=ze;){const qe=se[we],Je=ae[we]=Oe?cloneIfMounted(ae[we]):normalizeVNode(ae[we]);if(isSameVNodeType(qe,Je))R(qe,Je,ve,null,be,xe,Re,Pe,Oe);else break;we++}for(;we<=Ne&&we<=ze;){const qe=se[Ne],Je=ae[ze]=Oe?cloneIfMounted(ae[ze]):normalizeVNode(ae[ze]);if(isSameVNodeType(qe,Je))R(qe,Je,ve,null,be,xe,Re,Pe,Oe);else break;Ne--,ze--}if(we>Ne){if(we<=ze){const qe=ze+1,Je=qe<We?ae[qe].el:Ce;for(;we<=ze;)R(null,ae[we]=Oe?cloneIfMounted(ae[we]):normalizeVNode(ae[we]),ve,Je,be,xe,Re,Pe,Oe),we++}}else if(we>ze)for(;we<=Ne;)me(se[we],be,xe,!0),we++;else{const qe=we,Je=we,st=new Map;for(we=Je;we<=ze;we++){const Pt=ae[we]=Oe?cloneIfMounted(ae[we]):normalizeVNode(ae[we]);Pt.key!=null&&st.set(Pt.key,we)}let ht,$t=0;const At=ze-Je+1;let Bt=!1,Ot=0;const dr=new Array(At);for(we=0;we<At;we++)dr[we]=0;for(we=qe;we<=Ne;we++){const Pt=se[we];if($t>=At){me(Pt,be,xe,!0);continue}let Vt;if(Pt.key!=null)Vt=st.get(Pt.key);else for(ht=Je;ht<=ze;ht++)if(dr[ht-Je]===0&&isSameVNodeType(Pt,ae[ht])){Vt=ht;break}Vt===void 0?me(Pt,be,xe,!0):(dr[Vt-Je]=we+1,Vt>=Ot?Ot=Vt:Bt=!0,R(Pt,ae[Vt],ve,null,be,xe,Re,Pe,Oe),$t++)}const Vr=Bt?getSequence(dr):EMPTY_ARR;for(ht=Vr.length-1,we=At-1;we>=0;we--){const Pt=Je+we,Vt=ae[Pt],mn=ae[Pt+1],_n=Pt+1<We?mn.el||mn.placeholder:Ce;dr[we]===0?R(null,Vt,ve,_n,be,xe,Re,Pe,Oe):Bt&&(ht<0||we!==Vr[ht]?Ie(Vt,ve,_n,2):ht--)}}},Ie=(se,ae,ve,Ce,be=null)=>{const{el:xe,type:Re,transition:Pe,children:Oe,shapeFlag:we}=se;if(we&6){Ie(se.component.subTree,ae,ve,Ce);return}if(we&128){se.suspense.move(ae,ve,Ce);return}if(we&64){Re.move(se,ae,ve,Le);return}if(Re===Fragment){i(xe,ae,ve);for(let Ne=0;Ne<Oe.length;Ne++)Ie(Oe[Ne],ae,ve,Ce);i(se.anchor,ae,ve);return}if(Re===Static){G(se,ae,ve);return}if(Ce!==2&&we&1&&Pe)if(Ce===0)Pe.beforeEnter(xe),i(xe,ae,ve),queuePostRenderEffect(()=>Pe.enter(xe),be);else{const{leave:Ne,delayLeave:ze,afterLeave:qe}=Pe,Je=()=>{se.ctx.isUnmounted?a(xe):i(xe,ae,ve)},st=()=>{xe._isLeaving&&xe[leaveCbKey](!0),Ne(xe,()=>{Je(),qe&&qe()})};ze?ze(xe,Je,st):st()}else i(xe,ae,ve)},me=(se,ae,ve,Ce=!1,be=!1)=>{const{type:xe,props:Re,ref:Pe,children:Oe,dynamicChildren:we,shapeFlag:We,patchFlag:Ne,dirs:ze,cacheIndex:qe}=se;if(Ne===-2&&(be=!1),Pe!=null&&(pauseTracking(),setRef(Pe,null,ve,se,!0),resetTracking()),qe!=null&&(ae.renderCache[qe]=void 0),We&256){ae.ctx.deactivate(se);return}const Je=We&1&&ze,st=!isAsyncWrapper(se);let ht;if(st&&(ht=Re&&Re.onVnodeBeforeUnmount)&&invokeVNodeHook(ht,ae,se),We&6)Ue(se.component,ve,Ce);else{if(We&128){se.suspense.unmount(ve,Ce);return}Je&&invokeDirectiveHook(se,null,ae,"beforeUnmount"),We&64?se.type.remove(se,ae,ve,Le,Ce):we&&!we.hasOnce&&(xe!==Fragment||Ne>0&&Ne&64)?Ze(we,ae,ve,!1,!0):(xe===Fragment&&Ne&384||!be&&We&16)&&Ze(Oe,ae,ve),Ce&&De(se)}(st&&(ht=Re&&Re.onVnodeUnmounted)||Je)&&queuePostRenderEffect(()=>{ht&&invokeVNodeHook(ht,ae,se),Je&&invokeDirectiveHook(se,null,ae,"unmounted")},ve)},De=se=>{const{type:ae,el:ve,anchor:Ce,transition:be}=se;if(ae===Fragment){Ve(ve,Ce);return}if(ae===Static){Y(se);return}const xe=()=>{a(ve),be&&!be.persisted&&be.afterLeave&&be.afterLeave()};if(se.shapeFlag&1&&be&&!be.persisted){const{leave:Re,delayLeave:Pe}=be,Oe=()=>Re(ve,xe);Pe?Pe(se.el,xe,Oe):Oe()}else xe()},Ve=(se,ae)=>{let ve;for(;se!==ae;)ve=I(se),a(se),se=ve;a(ae)},Ue=(se,ae,ve)=>{const{bum:Ce,scope:be,job:xe,subTree:Re,um:Pe,m:Oe,a:we}=se;invalidateMount(Oe),invalidateMount(we),Ce&&invokeArrayFns(Ce),be.stop(),xe&&(xe.flags|=8,me(Re,se,ae,ve)),Pe&&queuePostRenderEffect(Pe,ae),queuePostRenderEffect(()=>{se.isUnmounted=!0},ae)},Ze=(se,ae,ve,Ce=!1,be=!1,xe=0)=>{for(let Re=xe;Re<se.length;Re++)me(se[Re],ae,ve,Ce,be)},ft=se=>{if(se.shapeFlag&6)return ft(se.component.subTree);if(se.shapeFlag&128)return se.suspense.next();const ae=I(se.anchor||se.el),ve=ae&&ae[TeleportEndKey];return ve?I(ve):ae};let at=!1;const dt=(se,ae,ve)=>{se==null?ae._vnode&&me(ae._vnode,null,null,!0):R(ae._vnode||null,se,ae,null,null,null,ve),ae._vnode=se,at||(at=!0,flushPreFlushCbs(),flushPostFlushCbs(),at=!1)},Le={p:R,um:me,m:Ie,r:De,mt:ue,mc:ee,pc:ge,pbc:J,n:ft,o:t};let Me,ke;return r&&([Me,ke]=r(Le)),{render:dt,hydrate:Me,createApp:createAppAPI(dt,Me)}}function resolveChildrenNamespace({type:t,props:r},n){return n==="svg"&&t==="foreignObject"||n==="mathml"&&t==="annotation-xml"&&r&&r.encoding&&r.encoding.includes("html")?void 0:n}function toggleRecurse({effect:t,job:r},n){n?(t.flags|=32,r.flags|=4):(t.flags&=-33,r.flags&=-5)}function needTransition(t,r){return(!t||t&&!t.pendingBranch)&&r&&!r.persisted}function traverseStaticChildren(t,r,n=!1){const i=t.children,a=r.children;if(isArray$2(i)&&isArray$2(a))for(let o=0;o<i.length;o++){const s=i[o];let l=a[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=a[o]=cloneIfMounted(a[o]),l.el=s.el),!n&&l.patchFlag!==-2&&traverseStaticChildren(s,l)),l.type===Text&&l.patchFlag!==-1&&(l.el=s.el),l.type===Comment&&!l.el&&(l.el=s.el)}}function getSequence(t){const r=t.slice(),n=[0];let i,a,o,s,l;const u=t.length;for(i=0;i<u;i++){const c=t[i];if(c!==0){if(a=n[n.length-1],t[a]<c){r[i]=a,n.push(i);continue}for(o=0,s=n.length-1;o<s;)l=o+s>>1,t[n[l]]<c?o=l+1:s=l;c<t[n[o]]&&(o>0&&(r[i]=n[o-1]),n[o]=i)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=r[s];return n}function locateNonHydratedAsyncRoot(t){const r=t.subTree.component;if(r)return r.asyncDep&&!r.asyncResolved?r:locateNonHydratedAsyncRoot(r)}function invalidateMount(t){if(t)for(let r=0;r<t.length;r++)t[r].flags|=8}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function watchEffect(t,r){return doWatch(t,null,r)}function watch(t,r,n){return doWatch(t,r,n)}function doWatch(t,r,n=EMPTY_OBJ$1){const{immediate:i,deep:a,flush:o,once:s}=n,l=extend$1({},n),u=r&&i||!r&&o!=="post";let c;if(isInSSRComponentSetup){if(o==="sync"){const $=useSSRContext();c=$.__watcherHandles||($.__watcherHandles=[])}else if(!u){const $=()=>{};return $.stop=NOOP,$.resume=NOOP,$.pause=NOOP,$}}const d=currentInstance;l.call=($,O,R)=>callWithAsyncErrorHandling($,d,O,R);let v=!1;o==="post"?l.scheduler=$=>{queuePostRenderEffect($,d&&d.suspense)}:o!=="sync"&&(v=!0,l.scheduler=($,O)=>{O?$():queueJob($)}),l.augmentJob=$=>{r&&($.flags|=4),v&&($.flags|=2,d&&($.id=d.uid,$.i=d))};const I=watch$1(t,r,l);return isInSSRComponentSetup&&(c?c.push(I):u&&I()),I}function instanceWatch(t,r,n){const i=this.proxy,a=isString$2(t)?t.includes(".")?createPathGetter(i,t):()=>i[t]:t.bind(i,i);let o;isFunction$2(r)?o=r:(o=r.handler,n=r);const s=setCurrentInstance(this),l=doWatch(a,o.bind(i),n);return s(),l}function createPathGetter(t,r){const n=r.split(".");return()=>{let i=t;for(let a=0;a<n.length&&i;a++)i=i[n[a]];return i}}const getModelModifiers=(t,r)=>r==="modelValue"||r==="model-value"?t.modelModifiers:t[`${r}Modifiers`]||t[`${camelize(r)}Modifiers`]||t[`${hyphenate(r)}Modifiers`];function emit(t,r,...n){if(t.isUnmounted)return;const i=t.vnode.props||EMPTY_OBJ$1;let a=n;const o=r.startsWith("update:"),s=o&&getModelModifiers(i,r.slice(7));s&&(s.trim&&(a=n.map(d=>isString$2(d)?d.trim():d)),s.number&&(a=n.map(looseToNumber)));let l,u=i[l=toHandlerKey(r)]||i[l=toHandlerKey(camelize(r))];!u&&o&&(u=i[l=toHandlerKey(hyphenate(r))]),u&&callWithAsyncErrorHandling(u,t,6,a);const c=i[l+"Once"];if(c){if(!t.emitted)t.emitted={};else if(t.emitted[l])return;t.emitted[l]=!0,callWithAsyncErrorHandling(c,t,6,a)}}const mixinEmitsCache=new WeakMap;function normalizeEmitsOptions(t,r,n=!1){const i=n?mixinEmitsCache:r.emitsCache,a=i.get(t);if(a!==void 0)return a;const o=t.emits;let s={},l=!1;if(!isFunction$2(t)){const u=c=>{const d=normalizeEmitsOptions(c,r,!0);d&&(l=!0,extend$1(s,d))};!n&&r.mixins.length&&r.mixins.forEach(u),t.extends&&u(t.extends),t.mixins&&t.mixins.forEach(u)}return!o&&!l?(isObject$4(t)&&i.set(t,null),null):(isArray$2(o)?o.forEach(u=>s[u]=null):extend$1(s,o),isObject$4(t)&&i.set(t,s),s)}function isEmitListener(t,r){return!t||!isOn(r)?!1:(r=r.slice(2).replace(/Once$/,""),hasOwn$1(t,r[0].toLowerCase()+r.slice(1))||hasOwn$1(t,hyphenate(r))||hasOwn$1(t,r))}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:r,vnode:n,proxy:i,withProxy:a,propsOptions:[o],slots:s,attrs:l,emit:u,render:c,renderCache:d,props:v,data:I,setupState:$,ctx:O,inheritAttrs:R}=t,M=setCurrentRenderingInstance(t);let N,V;try{if(n.shapeFlag&4){const Y=a||i,X=Y;N=normalizeVNode(c.call(X,Y,d,v,$,I,O)),V=l}else{const Y=r;N=normalizeVNode(Y.length>1?Y(v,{attrs:l,slots:s,emit:u}):Y(v,null)),V=r.props?l:getFunctionalFallthrough(l)}}catch(Y){blockStack.length=0,handleError(Y,t,1),N=createVNode(Comment)}let G=N;if(V&&R!==!1){const Y=Object.keys(V),{shapeFlag:X}=G;Y.length&&X&7&&(o&&Y.some(isModelListener)&&(V=filterModelListeners(V,o)),G=cloneVNode(G,V,!1,!0))}return n.dirs&&(G=cloneVNode(G,null,!1,!0),G.dirs=G.dirs?G.dirs.concat(n.dirs):n.dirs),n.transition&&setTransitionHooks(G,n.transition),N=G,setCurrentRenderingInstance(M),N}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 i in t)(!isModelListener(i)||!(i.slice(9)in r))&&(n[i]=t[i]);return n};function shouldUpdateComponent(t,r,n){const{props:i,children:a,component:o}=t,{props:s,children:l,patchFlag:u}=r,c=o.emitsOptions;if(r.dirs||r.transition)return!0;if(n&&u>=0){if(u&1024)return!0;if(u&16)return i?hasPropsChanged(i,s,c):!!s;if(u&8){const d=r.dynamicProps;for(let v=0;v<d.length;v++){const I=d[v];if(s[I]!==i[I]&&!isEmitListener(c,I))return!0}}}else return(a||l)&&(!l||!l.$stable)?!0:i===s?!1:i?s?hasPropsChanged(i,s,c):!0:!!s;return!1}function hasPropsChanged(t,r,n){const i=Object.keys(r);if(i.length!==Object.keys(t).length)return!0;for(let a=0;a<i.length;a++){const o=i[a];if(r[o]!==t[o]&&!isEmitListener(n,o))return!0}return!1}function updateHOCHostEl({vnode:t,parent:r},n){for(;r;){const i=r.subTree;if(i.suspense&&i.suspense.activeBranch===t&&(i.el=t.el),i===t)(t=r.vnode).el=n,r=r.parent;else break}}const isSuspense=t=>t.__isSuspense;function queueEffectWithSuspense(t,r){r&&r.pendingBranch?isArray$2(t)?r.effects.push(...t):r.effects.push(t):queuePostFlushCb(t)}const Fragment=Symbol.for("v-fgt"),Text=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),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,r=!1){isBlockTreeEnabled+=t,t<0&&currentBlock&&r&&(currentBlock.hasOnce=!0)}function setupBlock(t){return t.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push(t),t}function createElementBlock(t,r,n,i,a,o){return setupBlock(createBaseVNode(t,r,n,i,a,o,!0))}function createBlock(t,r,n,i,a){return setupBlock(createVNode(t,r,n,i,a,!0))}function isVNode(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,r){return t.type===r.type&&t.key===r.key}const normalizeKey=({key:t})=>t!=null?t:null,normalizeRef=({ref:t,ref_key:r,ref_for:n})=>(typeof t=="number"&&(t=""+t),t!=null?isString$2(t)||isRef(t)||isFunction$2(t)?{i:currentRenderingInstance,r:t,k:r,f:!!n}:t:null);function createBaseVNode(t,r=null,n=null,i=0,a=null,o=t===Fragment?0:1,s=!1,l=!1){const u={__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,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:i,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return l?(normalizeChildren(u,n),o&128&&t.normalize(u)):n&&(u.shapeFlag|=isString$2(n)?8:16),isBlockTreeEnabled>0&&!s&&currentBlock&&(u.patchFlag>0||o&6)&&u.patchFlag!==32&&currentBlock.push(u),u}const createVNode=_createVNode;function _createVNode(t,r=null,n=null,i=0,a=null,o=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode(t)){const l=cloneVNode(t,r,!0);return n&&normalizeChildren(l,n),isBlockTreeEnabled>0&&!o&&currentBlock&&(l.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=l:currentBlock.push(l)),l.patchFlag=-2,l}if(isClassComponent(t)&&(t=t.__vccOpts),r){r=guardReactiveProps(r);let{class:l,style:u}=r;l&&!isString$2(l)&&(r.class=normalizeClass(l)),isObject$4(u)&&(isProxy(u)&&!isArray$2(u)&&(u=extend$1({},u)),r.style=normalizeStyle$1(u))}const s=isString$2(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$4(t)?4:isFunction$2(t)?2:0;return createBaseVNode(t,r,n,i,a,s,o,!0)}function guardReactiveProps(t){return t?isProxy(t)||isInternalObject(t)?extend$1({},t):t:null}function cloneVNode(t,r,n=!1,i=!1){const{props:a,ref:o,patchFlag:s,children:l,transition:u}=t,c=r?mergeProps(a||{},r):a,d={__v_isVNode:!0,__v_skip:!0,type:t.type,props:c,key:c&&normalizeKey(c),ref:r&&r.ref?n&&o?isArray$2(o)?o.concat(normalizeRef(r)):[o,normalizeRef(r)]:normalizeRef(r):o,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:l,target:t.target,targetStart:t.targetStart,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Fragment?s===-1?16:s|16:s,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:u,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),placeholder:t.placeholder,el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce};return u&&i&&setTransitionHooks(d,u.clone(d)),d}function createTextVNode(t=" ",r=0){return createVNode(Text,null,t,r)}function createCommentVNode(t="",r=!1){return r?(openBlock(),createBlock(Comment,null,t)):createVNode(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment):isArray$2(t)?createVNode(Fragment,null,t.slice()):isVNode(t)?cloneIfMounted(t):createVNode(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:i}=t;if(r==null)r=null;else if(isArray$2(r))n=16;else if(typeof r=="object")if(i&65){const a=r.default;a&&(a._c&&(a._d=!1),normalizeChildren(t,a()),a._c&&(a._d=!0));return}else{n=32;const a=r._;!a&&!isInternalObject(r)?r._ctx=currentRenderingInstance:a===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else isFunction$2(r)?(r={default:r,_ctx:currentRenderingInstance},n=32):(r=String(r),i&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 i=t[n];for(const a in i)if(a==="class")r.class!==i.class&&(r.class=normalizeClass([r.class,i.class]));else if(a==="style")r.style=normalizeStyle$1([r.style,i.style]);else if(isOn(a)){const o=r[a],s=i[a];s&&o!==s&&!(isArray$2(o)&&o.includes(s))&&(r[a]=o?[].concat(o,s):s)}else a!==""&&(r[a]=i[a])}return r}function invokeVNodeHook(t,r,n,i=null){callWithAsyncErrorHandling(t,r,7,[n,i])}const emptyAppContext=createAppContext();let uid=0;function createComponentInstance(t,r,n){const i=t.type,a=(r?r.appContext:t.appContext)||emptyAppContext,o={uid:uid++,vnode:t,type:i,parent:r,appContext:a,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:r?r.provides:Object.create(a.provides),ids:r?r.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(i,a),emitsOptions:normalizeEmitsOptions(i,a),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:i.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 o.ctx={_:o},o.root=r?r.root:o,o.emit=emit.bind(null,o),t.ce&&t.ce(o),o}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,setInSSRSetupState;{const t=getGlobalThis(),r=(n,i)=>{let a;return(a=t[n])||(a=t[n]=[]),a.push(i),o=>{a.length>1?a.forEach(s=>s(o)):a[0](o)}};internalSetCurrentInstance=r("__VUE_INSTANCE_SETTERS__",n=>currentInstance=n),setInSSRSetupState=r("__VUE_SSR_SETTERS__",n=>isInSSRComponentSetup=n)}const setCurrentInstance=t=>{const r=currentInstance;return internalSetCurrentInstance(t),t.scope.on(),()=>{t.scope.off(),internalSetCurrentInstance(r)}},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,r=!1,n=!1){r&&setInSSRSetupState(r);const{props:i,children:a}=t.vnode,o=isStatefulComponent(t);initProps$1(t,i,o,r),initSlots(t,a,n||r);const s=o?setupStatefulComponent(t,r):void 0;return r&&setInSSRSetupState(!1),s}function setupStatefulComponent(t,r){const n=t.type;t.accessCache=Object.create(null),t.proxy=new Proxy(t.ctx,PublicInstanceProxyHandlers);const{setup:i}=n;if(i){pauseTracking();const a=t.setupContext=i.length>1?createSetupContext(t):null,o=setCurrentInstance(t),s=callWithErrorHandling(i,t,0,[t.props,a]),l=isPromise(s);if(resetTracking(),o(),(l||t.sp)&&!isAsyncWrapper(t)&&markAsyncBoundary(t),l){if(s.then(unsetCurrentInstance,unsetCurrentInstance),r)return s.then(u=>{handleSetupResult(t,u,r)}).catch(u=>{handleError(u,t,0)});t.asyncDep=s}else handleSetupResult(t,s,r)}else finishComponentSetup(t,r)}function handleSetupResult(t,r,n){isFunction$2(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:isObject$4(r)&&(t.setupState=proxyRefs(r)),finishComponentSetup(t,n)}let compile;function finishComponentSetup(t,r,n){const i=t.type;if(!t.render){if(!r&&compile&&!i.render){const a=i.template||resolveMergedOptions(t).template;if(a){const{isCustomElement:o,compilerOptions:s}=t.appContext.config,{delimiters:l,compilerOptions:u}=i,c=extend$1(extend$1({isCustomElement:o,delimiters:l},s),u);i.render=compile(a,c)}}t.render=i.render||NOOP}{const a=setCurrentInstance(t);pauseTracking();try{applyOptions(t)}finally{resetTracking(),a()}}}const attrsProxyHandlers={get(t,r){return track(t,"get",""),t[r]}};function createSetupContext(t){const r=n=>{t.exposed=n||{}};return{attrs:new Proxy(t.attrs,attrsProxyHandlers),slots:t.slots,emit:t.emit,expose:r}}function getComponentPublicInstance(t){return t.exposed?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}})):t.proxy}const classifyRE=/(?:^|[-_])\w/g,classify=t=>t.replace(classifyRE,r=>r.toUpperCase()).replace(/[-_]/g,"");function getComponentName(t,r=!0){return isFunction$2(t)?t.displayName||t.name:t.name||r&&t.__name}function formatComponentName(t,r,n=!1){let i=getComponentName(r);if(!i&&r.__file){const a=r.__file.match(/([^/\\]+)\.\w+$/);a&&(i=a[1])}if(!i&&t&&t.parent){const a=o=>{for(const s in o)if(o[s]===r)return s};i=a(t.components||t.parent.type.components)||a(t.appContext.components)}return i?classify(i):n?"App":"Anonymous"}function isClassComponent(t){return isFunction$2(t)&&"__vccOpts"in t}const computed=(t,r)=>computed$1(t,r,isInSSRComponentSetup);function h(t,r,n){try{setBlockTracking(-1);const i=arguments.length;return i===2?isObject$4(r)&&!isArray$2(r)?isVNode(r)?createVNode(t,null,[r]):createVNode(t,r):createVNode(t,null,r):(i>3?n=Array.prototype.slice.call(arguments,2):i===3&&isVNode(n)&&(n=[n]),createVNode(t,r,n))}finally{setBlockTracking(1)}}const version="3.5.23";/**
17
+ * @vue/runtime-dom v3.5.23
18
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
19
+ * @license MIT
20
+ **/let policy;const tt=typeof window!="undefined"&&window.trustedTypes;if(tt)try{policy=tt.createPolicy("vue",{createHTML:t=>t})}catch{}const unsafeToTrustedHTML=policy?t=>policy.createHTML(t):t=>t,svgNS="http://www.w3.org/2000/svg",mathmlNS="http://www.w3.org/1998/Math/MathML",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,i)=>{const a=r==="svg"?doc.createElementNS(svgNS,t):r==="mathml"?doc.createElementNS(mathmlNS,t):n?doc.createElement(t,{is:n}):doc.createElement(t);return t==="select"&&i&&i.multiple!=null&&a.setAttribute("multiple",i.multiple),a},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,i,a,o){const s=n?n.previousSibling:r.lastChild;if(a&&(a===o||a.nextSibling))for(;r.insertBefore(a.cloneNode(!0),n),!(a===o||!(a=a.nextSibling)););else{templateContainer.innerHTML=unsafeToTrustedHTML(i==="svg"?`<svg>${t}</svg>`:i==="mathml"?`<math>${t}</math>`:t);const l=templateContainer.content;if(i==="svg"||i==="mathml"){const u=l.firstChild;for(;u.firstChild;)l.appendChild(u.firstChild);l.removeChild(u)}r.insertBefore(l,n)}return[s?s.nextSibling:r.firstChild,n?n.previousSibling:r.lastChild]}},TRANSITION="transition",ANIMATION="animation",vtcKey=Symbol("_vtc"),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=extend$1({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),decorate$1=t=>(t.displayName="Transition",t.props=TransitionPropsValidators,t),Transition=decorate$1((t,{slots:r})=>h(BaseTransition,resolveTransitionProps(t),r)),callHook=(t,r=[])=>{isArray$2(t)?t.forEach(n=>n(...r)):t&&t(...r)},hasExplicitCallback=t=>t?isArray$2(t)?t.some(r=>r.length>1):t.length>1:!1;function resolveTransitionProps(t){const r={};for(const Q in t)Q in DOMTransitionPropsValidators||(r[Q]=t[Q]);if(t.css===!1)return r;const{name:n="v",type:i,duration:a,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=s,appearToClass:d=l,leaveFromClass:v=`${n}-leave-from`,leaveActiveClass:I=`${n}-leave-active`,leaveToClass:$=`${n}-leave-to`}=t,O=normalizeDuration(a),R=O&&O[0],M=O&&O[1],{onBeforeEnter:N,onEnter:V,onEnterCancelled:G,onLeave:Y,onLeaveCancelled:X,onBeforeAppear:q=N,onAppear:Z=V,onAppearCancelled:ee=G}=r,ne=(Q,oe,ue,fe)=>{Q._enterCancelled=fe,removeTransitionClass(Q,oe?d:l),removeTransitionClass(Q,oe?c:s),ue&&ue()},J=(Q,oe)=>{Q._isLeaving=!1,removeTransitionClass(Q,v),removeTransitionClass(Q,$),removeTransitionClass(Q,I),oe&&oe()},te=Q=>(oe,ue)=>{const fe=Q?Z:V,de=()=>ne(oe,Q,ue);callHook(fe,[oe,de]),nextFrame(()=>{removeTransitionClass(oe,Q?u:o),addTransitionClass(oe,Q?d:l),hasExplicitCallback(fe)||whenTransitionEnds(oe,i,R,de)})};return extend$1(r,{onBeforeEnter(Q){callHook(N,[Q]),addTransitionClass(Q,o),addTransitionClass(Q,s)},onBeforeAppear(Q){callHook(q,[Q]),addTransitionClass(Q,u),addTransitionClass(Q,c)},onEnter:te(!1),onAppear:te(!0),onLeave(Q,oe){Q._isLeaving=!0;const ue=()=>J(Q,oe);addTransitionClass(Q,v),Q._enterCancelled?(addTransitionClass(Q,I),forceReflow(Q)):(forceReflow(Q),addTransitionClass(Q,I)),nextFrame(()=>{!Q._isLeaving||(removeTransitionClass(Q,v),addTransitionClass(Q,$),hasExplicitCallback(Y)||whenTransitionEnds(Q,i,M,ue))}),callHook(Y,[Q,ue])},onEnterCancelled(Q){ne(Q,!1,void 0,!0),callHook(G,[Q])},onAppearCancelled(Q){ne(Q,!0,void 0,!0),callHook(ee,[Q])},onLeaveCancelled(Q){J(Q),callHook(X,[Q])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$4(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const r=NumberOf(t);return[r,r]}}function NumberOf(t){return toNumber(t)}function addTransitionClass(t,r){r.split(/\s+/).forEach(n=>n&&t.classList.add(n)),(t[vtcKey]||(t[vtcKey]=new Set)).add(r)}function removeTransitionClass(t,r){r.split(/\s+/).forEach(i=>i&&t.classList.remove(i));const n=t[vtcKey];n&&(n.delete(r),n.size||(t[vtcKey]=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,r,n,i){const a=t._endId=++endId,o=()=>{a===t._endId&&i()};if(n!=null)return setTimeout(o,n);const{type:s,timeout:l,propCount:u}=getTransitionInfo(t,r);if(!s)return i();const c=s+"end";let d=0;const v=()=>{t.removeEventListener(c,I),o()},I=$=>{$.target===t&&++d>=u&&v()};setTimeout(()=>{d<u&&v()},l+1),t.addEventListener(c,I)}function getTransitionInfo(t,r){const n=window.getComputedStyle(t),i=O=>(n[O]||"").split(", "),a=i(`${TRANSITION}Delay`),o=i(`${TRANSITION}Duration`),s=getTimeout(a,o),l=i(`${ANIMATION}Delay`),u=i(`${ANIMATION}Duration`),c=getTimeout(l,u);let d=null,v=0,I=0;r===TRANSITION?s>0&&(d=TRANSITION,v=s,I=o.length):r===ANIMATION?c>0&&(d=ANIMATION,v=c,I=u.length):(v=Math.max(s,c),d=v>0?s>c?TRANSITION:ANIMATION:null,I=d?d===TRANSITION?o.length:u.length:0);const $=d===TRANSITION&&/\b(?:transform|all)(?:,|$)/.test(i(`${TRANSITION}Property`).toString());return{type:d,timeout:v,propCount:I,hasTransform:$}}function getTimeout(t,r){for(;t.length<r.length;)t=t.concat(t);return Math.max(...r.map((n,i)=>toMs(n)+toMs(t[i])))}function toMs(t){return t==="auto"?0:Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(t){return(t?t.ownerDocument:document).body.offsetHeight}function patchClass(t,r,n){const i=t[vtcKey];i&&(r=(r?[r,...i]:[...i]).join(" ")),r==null?t.removeAttribute("class"):n?t.setAttribute("class",r):t.className=r}const vShowOriginalDisplay=Symbol("_vod"),vShowHidden=Symbol("_vsh"),CSS_VAR_TEXT=Symbol(""),displayRE=/(?:^|;)\s*display\s*:/;function patchStyle(t,r,n){const i=t.style,a=isString$2(n);let o=!1;if(n&&!a){if(r)if(isString$2(r))for(const s of r.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&setStyle(i,l,"")}else for(const s in r)n[s]==null&&setStyle(i,s,"");for(const s in n)s==="display"&&(o=!0),setStyle(i,s,n[s])}else if(a){if(r!==n){const s=i[CSS_VAR_TEXT];s&&(n+=";"+s),i.cssText=n,o=displayRE.test(n)}}else r&&t.removeAttribute("style");vShowOriginalDisplay in t&&(t[vShowOriginalDisplay]=o?i.display:"",t[vShowHidden]&&(i.display="none"))}const importantRE=/\s*!important$/;function setStyle(t,r,n){if(isArray$2(n))n.forEach(i=>setStyle(t,r,i));else if(n==null&&(n=""),r.startsWith("--"))t.setProperty(r,n);else{const i=autoPrefix(t,r);importantRE.test(n)?t.setProperty(hyphenate(i),n.replace(importantRE,""),"important"):t[i]=n}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,r){const n=prefixCache[r];if(n)return n;let i=camelize(r);if(i!=="filter"&&i in t)return prefixCache[r]=i;i=capitalize(i);for(let a=0;a<prefixes.length;a++){const o=prefixes[a]+i;if(o in t)return prefixCache[r]=o}return r}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr(t,r,n,i,a,o=isSpecialBooleanAttr(r)){i&&r.startsWith("xlink:")?n==null?t.removeAttributeNS(xlinkNS,r.slice(6,r.length)):t.setAttributeNS(xlinkNS,r,n):n==null||o&&!includeBooleanAttr(n)?t.removeAttribute(r):t.setAttribute(r,o?"":isSymbol(n)?String(n):n)}function patchDOMProp(t,r,n,i,a){if(r==="innerHTML"||r==="textContent"){n!=null&&(t[r]=r==="innerHTML"?unsafeToTrustedHTML(n):n);return}const o=t.tagName;if(r==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?t.getAttribute("value")||"":t.value,u=n==null?t.type==="checkbox"?"on":"":String(n);(l!==u||!("_value"in t))&&(t.value=u),n==null&&t.removeAttribute(r),t._value=n;return}let s=!1;if(n===""||n==null){const l=typeof t[r];l==="boolean"?n=includeBooleanAttr(n):n==null&&l==="string"?(n="",s=!0):l==="number"&&(n=0,s=!0)}try{t[r]=n}catch{}s&&t.removeAttribute(a||r)}function addEventListener$1(t,r,n,i){t.addEventListener(r,n,i)}function removeEventListener$1(t,r,n,i){t.removeEventListener(r,n,i)}const veiKey=Symbol("_vei");function patchEvent(t,r,n,i,a=null){const o=t[veiKey]||(t[veiKey]={}),s=o[r];if(i&&s)s.value=i;else{const[l,u]=parseName(r);if(i){const c=o[r]=createInvoker(i,a);addEventListener$1(t,l,c,u)}else s&&(removeEventListener$1(t,l,s,u),o[r]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName(t){let r;if(optionsModifierRE.test(t)){r={};let i;for(;i=t.match(optionsModifierRE);)t=t.slice(0,t.length-i[0].length),r[i[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=i=>{if(!i._vts)i._vts=Date.now();else if(i._vts<=n.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(i,n.value),r,5,[i])};return n.value=t,n.attached=getNow(),n}function patchStopImmediatePropagation(t,r){if(isArray$2(r)){const n=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{n.call(t),t._stopped=!0},r.map(i=>a=>!a._stopped&&i&&i(a))}else return r}const isNativeOn=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)>96&&t.charCodeAt(2)<123,patchProp=(t,r,n,i,a,o)=>{const s=a==="svg";r==="class"?patchClass(t,i,s):r==="style"?patchStyle(t,n,i):isOn(r)?isModelListener(r)||patchEvent(t,r,n,i,o):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):shouldSetAsProp(t,r,i,s))?(patchDOMProp(t,r,i),!t.tagName.includes("-")&&(r==="value"||r==="checked"||r==="selected")&&patchAttr(t,r,i,s,o,r!=="value")):t._isVueCE&&(/[A-Z]/.test(r)||!isString$2(i))?patchDOMProp(t,camelize(r),i,o,r):(r==="true-value"?t._trueValue=i:r==="false-value"&&(t._falseValue=i),patchAttr(t,r,i,s))};function shouldSetAsProp(t,r,n,i){if(i)return!!(r==="innerHTML"||r==="textContent"||r in t&&isNativeOn(r)&&isFunction$2(n));if(r==="spellcheck"||r==="draggable"||r==="translate"||r==="autocorrect"||r==="sandbox"&&t.tagName==="IFRAME"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA")return!1;if(r==="width"||r==="height"){const a=t.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return isNativeOn(r)&&isString$2(n)?!1:r in t}const getModelAssigner=t=>{const r=t.props["onUpdate:modelValue"]||!1;return isArray$2(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 assignKey=Symbol("_assign");function castValue(t,r,n){return r&&(t=t.trim()),n&&(t=looseToNumber(t)),t}const vModelText={created(t,{modifiers:{lazy:r,trim:n,number:i}},a){t[assignKey]=getModelAssigner(a);const o=i||a.props&&a.props.type==="number";addEventListener$1(t,r?"change":"input",s=>{s.target.composing||t[assignKey](castValue(t.value,n,o))}),(n||o)&&addEventListener$1(t,"change",()=>{t.value=castValue(t.value,n,o)}),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,oldValue:n,modifiers:{lazy:i,trim:a,number:o}},s){if(t[assignKey]=getModelAssigner(s),t.composing)return;const l=(o||t.type==="number")&&!/^0\d/.test(t.value)?looseToNumber(t.value):t.value,u=r==null?"":r;l!==u&&(document.activeElement===t&&t.type!=="range"&&(i&&r===n||a&&t.value.trim()===u)||(t.value=u))}},vModelCheckbox={deep:!0,created(t,r,n){t[assignKey]=getModelAssigner(n),addEventListener$1(t,"change",()=>{const i=t._modelValue,a=getValue(t),o=t.checked,s=t[assignKey];if(isArray$2(i)){const l=looseIndexOf(i,a),u=l!==-1;if(o&&!u)s(i.concat(a));else if(!o&&u){const c=[...i];c.splice(l,1),s(c)}}else if(isSet(i)){const l=new Set(i);o?l.add(a):l.delete(a),s(l)}else s(getCheckboxValue(t,o))})},mounted:setChecked,beforeUpdate(t,r,n){t[assignKey]=getModelAssigner(n),setChecked(t,r,n)}};function setChecked(t,{value:r,oldValue:n},i){t._modelValue=r;let a;if(isArray$2(r))a=looseIndexOf(r,i.props.value)>-1;else if(isSet(r))a=r.has(i.props.value);else{if(r===n)return;a=looseEqual(r,getCheckboxValue(t,!0))}t.checked!==a&&(t.checked=a)}const vModelRadio={created(t,{value:r},n){t.checked=looseEqual(r,n.props.value),t[assignKey]=getModelAssigner(n),addEventListener$1(t,"change",()=>{t[assignKey](getValue(t))})},beforeUpdate(t,{value:r,oldValue:n},i){t[assignKey]=getModelAssigner(i),r!==n&&(t.checked=looseEqual(r,i.props.value))}},vModelSelect={deep:!0,created(t,{value:r,modifiers:{number:n}},i){const a=isSet(r);addEventListener$1(t,"change",()=>{const o=Array.prototype.filter.call(t.options,s=>s.selected).map(s=>n?looseToNumber(getValue(s)):getValue(s));t[assignKey](t.multiple?a?new Set(o):o:o[0]),t._assigning=!0,nextTick(()=>{t._assigning=!1})}),t[assignKey]=getModelAssigner(i)},mounted(t,{value:r}){setSelected(t,r)},beforeUpdate(t,r,n){t[assignKey]=getModelAssigner(n)},updated(t,{value:r}){t._assigning||setSelected(t,r)}};function setSelected(t,r){const n=t.multiple,i=isArray$2(r);if(!(n&&!i&&!isSet(r))){for(let a=0,o=t.options.length;a<o;a++){const s=t.options[a],l=getValue(s);if(n)if(i){const u=typeof l;u==="string"||u==="number"?s.selected=r.some(c=>String(c)===String(l)):s.selected=looseIndexOf(r,l)>-1}else s.selected=r.has(l);else if(looseEqual(getValue(s),r)){t.selectedIndex!==a&&(t.selectedIndex=a);return}}!n&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue(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 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)=>{const n=t._withMods||(t._withMods={}),i=r.join(".");return n[i]||(n[i]=(a,...o)=>{for(let s=0;s<r.length;s++){const l=modifierGuards[r[s]];if(l&&l(a,r))return}return t(a,...o)})},rendererOptions=extend$1({patchProp},nodeOps);let renderer;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}const createApp=(...t)=>{const r=ensureRenderer().createApp(...t),{mount:n}=r;return r.mount=i=>{const a=normalizeContainer(i);if(!a)return;const o=r._component;!isFunction$2(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.nodeType===1&&(a.textContent="");const s=n(a,!1,resolveRootNamespace(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),s},r};function resolveRootNamespace(t){if(t instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&t instanceof MathMLElement)return"mathml"}function normalizeContainer(t){return isString$2(t)?document.querySelector(t):t}var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function getAugmentedNamespace(t){if(t.__esModule)return t;var r=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var collapse={exports:{}},baseComponent={exports:{}},data={exports:{}};/*!
21
+ * Bootstrap data.js v5.3.8 (https://getbootstrap.com/)
22
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
23
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
24
+ */(function(t,r){(function(n,i){t.exports=i()})(commonjsGlobal,function(){const n=new Map;return{set(a,o,s){n.has(a)||n.set(a,new Map);const l=n.get(a);if(!l.has(o)&&l.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(l.keys())[0]}.`);return}l.set(o,s)},get(a,o){return n.has(a)&&n.get(a).get(o)||null},remove(a,o){if(!n.has(a))return;const s=n.get(a);s.delete(o),s.size===0&&n.delete(a)}}})})(data);var eventHandler={exports:{}},util={exports:{}};/*!
25
+ * Bootstrap index.js v5.3.8 (https://getbootstrap.com/)
26
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
27
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
28
+ */(function(t,r){(function(n,i){i(r)})(commonjsGlobal,function(n){const o="transitionend",s=J=>(J&&window.CSS&&window.CSS.escape&&(J=J.replace(/#([^\s"#']+)/g,(te,Q)=>`#${CSS.escape(Q)}`)),J),l=J=>J==null?`${J}`:Object.prototype.toString.call(J).match(/\s([a-z]+)/i)[1].toLowerCase(),u=J=>{do J+=Math.floor(Math.random()*1e6);while(document.getElementById(J));return J},c=J=>{if(!J)return 0;let{transitionDuration:te,transitionDelay:Q}=window.getComputedStyle(J);const oe=Number.parseFloat(te),ue=Number.parseFloat(Q);return!oe&&!ue?0:(te=te.split(",")[0],Q=Q.split(",")[0],(Number.parseFloat(te)+Number.parseFloat(Q))*1e3)},d=J=>{J.dispatchEvent(new Event(o))},v=J=>!J||typeof J!="object"?!1:(typeof J.jquery!="undefined"&&(J=J[0]),typeof J.nodeType!="undefined"),I=J=>v(J)?J.jquery?J[0]:J:typeof J=="string"&&J.length>0?document.querySelector(s(J)):null,$=J=>{if(!v(J)||J.getClientRects().length===0)return!1;const te=getComputedStyle(J).getPropertyValue("visibility")==="visible",Q=J.closest("details:not([open])");if(!Q)return te;if(Q!==J){const oe=J.closest("summary");if(oe&&oe.parentNode!==Q||oe===null)return!1}return te},O=J=>!J||J.nodeType!==Node.ELEMENT_NODE||J.classList.contains("disabled")?!0:typeof J.disabled!="undefined"?J.disabled:J.hasAttribute("disabled")&&J.getAttribute("disabled")!=="false",R=J=>{if(!document.documentElement.attachShadow)return null;if(typeof J.getRootNode=="function"){const te=J.getRootNode();return te instanceof ShadowRoot?te:null}return J instanceof ShadowRoot?J:J.parentNode?R(J.parentNode):null},M=()=>{},N=J=>{J.offsetHeight},V=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,G=[],Y=J=>{document.readyState==="loading"?(G.length||document.addEventListener("DOMContentLoaded",()=>{for(const te of G)te()}),G.push(J)):J()},X=()=>document.documentElement.dir==="rtl",q=J=>{Y(()=>{const te=V();if(te){const Q=J.NAME,oe=te.fn[Q];te.fn[Q]=J.jQueryInterface,te.fn[Q].Constructor=J,te.fn[Q].noConflict=()=>(te.fn[Q]=oe,J.jQueryInterface)}})},Z=(J,te=[],Q=J)=>typeof J=="function"?J.call(...te):Q,ee=(J,te,Q=!0)=>{if(!Q){Z(J);return}const oe=5,ue=c(te)+oe;let fe=!1;const de=({target:ye})=>{ye===te&&(fe=!0,te.removeEventListener(o,de),Z(J))};te.addEventListener(o,de),setTimeout(()=>{fe||d(te)},ue)},ne=(J,te,Q,oe)=>{const ue=J.length;let fe=J.indexOf(te);return fe===-1?!Q&&oe?J[ue-1]:J[0]:(fe+=Q?1:-1,oe&&(fe=(fe+ue)%ue),J[Math.max(0,Math.min(fe,ue-1))])};n.defineJQueryPlugin=q,n.execute=Z,n.executeAfterTransition=ee,n.findShadowRoot=R,n.getElement=I,n.getNextActiveElement=ne,n.getTransitionDurationFromElement=c,n.getUID=u,n.getjQuery=V,n.isDisabled=O,n.isElement=v,n.isRTL=X,n.isVisible=$,n.noop=M,n.onDOMContentLoaded=Y,n.parseSelector=s,n.reflow=N,n.toType=l,n.triggerTransitionEnd=d,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(util,util.exports);/*!
29
+ * Bootstrap event-handler.js v5.3.8 (https://getbootstrap.com/)
30
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
31
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
32
+ */(function(t,r){(function(n,i){t.exports=i(util.exports)})(commonjsGlobal,function(n){const i=/[^.]*(?=\..*)\.|.*/,a=/\..*/,o=/::\d+$/,s={};let l=1;const u={mouseenter:"mouseover",mouseleave:"mouseout"},c=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function d(q,Z){return Z&&`${Z}::${l++}`||q.uidEvent||l++}function v(q){const Z=d(q);return q.uidEvent=Z,s[Z]=s[Z]||{},s[Z]}function I(q,Z){return function ee(ne){return X(ne,{delegateTarget:q}),ee.oneOff&&Y.off(q,ne.type,Z),Z.apply(q,[ne])}}function $(q,Z,ee){return function ne(J){const te=q.querySelectorAll(Z);for(let{target:Q}=J;Q&&Q!==this;Q=Q.parentNode)for(const oe of te)if(oe===Q)return X(J,{delegateTarget:Q}),ne.oneOff&&Y.off(q,J.type,Z,ee),ee.apply(Q,[J])}}function O(q,Z,ee=null){return Object.values(q).find(ne=>ne.callable===Z&&ne.delegationSelector===ee)}function R(q,Z,ee){const ne=typeof Z=="string",J=ne?ee:Z||ee;let te=G(q);return c.has(te)||(te=q),[ne,J,te]}function M(q,Z,ee,ne,J){if(typeof Z!="string"||!q)return;let[te,Q,oe]=R(Z,ee,ne);Z in u&&(Q=(Be=>function(Ie){if(!Ie.relatedTarget||Ie.relatedTarget!==Ie.delegateTarget&&!Ie.delegateTarget.contains(Ie.relatedTarget))return Be.call(this,Ie)})(Q));const ue=v(q),fe=ue[oe]||(ue[oe]={}),de=O(fe,Q,te?ee:null);if(de){de.oneOff=de.oneOff&&J;return}const ye=d(Q,Z.replace(i,"")),ge=te?$(q,ee,Q):I(q,Q);ge.delegationSelector=te?ee:null,ge.callable=Q,ge.oneOff=J,ge.uidEvent=ye,fe[ye]=ge,q.addEventListener(oe,ge,te)}function N(q,Z,ee,ne,J){const te=O(Z[ee],ne,J);!te||(q.removeEventListener(ee,te,Boolean(J)),delete Z[ee][te.uidEvent])}function V(q,Z,ee,ne){const J=Z[ee]||{};for(const[te,Q]of Object.entries(J))te.includes(ne)&&N(q,Z,ee,Q.callable,Q.delegationSelector)}function G(q){return q=q.replace(a,""),u[q]||q}const Y={on(q,Z,ee,ne){M(q,Z,ee,ne,!1)},one(q,Z,ee,ne){M(q,Z,ee,ne,!0)},off(q,Z,ee,ne){if(typeof Z!="string"||!q)return;const[J,te,Q]=R(Z,ee,ne),oe=Q!==Z,ue=v(q),fe=ue[Q]||{},de=Z.startsWith(".");if(typeof te!="undefined"){if(!Object.keys(fe).length)return;N(q,ue,Q,te,J?ee:null);return}if(de)for(const ye of Object.keys(ue))V(q,ue,ye,Z.slice(1));for(const[ye,ge]of Object.entries(fe)){const Te=ye.replace(o,"");(!oe||Z.includes(Te))&&N(q,ue,Q,ge.callable,ge.delegationSelector)}},trigger(q,Z,ee){if(typeof Z!="string"||!q)return null;const ne=n.getjQuery(),J=G(Z),te=Z!==J;let Q=null,oe=!0,ue=!0,fe=!1;te&&ne&&(Q=ne.Event(Z,ee),ne(q).trigger(Q),oe=!Q.isPropagationStopped(),ue=!Q.isImmediatePropagationStopped(),fe=Q.isDefaultPrevented());const de=X(new Event(Z,{bubbles:oe,cancelable:!0}),ee);return fe&&de.preventDefault(),ue&&q.dispatchEvent(de),de.defaultPrevented&&Q&&Q.preventDefault(),de}};function X(q,Z={}){for(const[ee,ne]of Object.entries(Z))try{q[ee]=ne}catch{Object.defineProperty(q,ee,{configurable:!0,get(){return ne}})}return q}return Y})})(eventHandler);var config={exports:{}},manipulator={exports:{}};/*!
33
+ * Bootstrap manipulator.js v5.3.8 (https://getbootstrap.com/)
34
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
35
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
36
+ */(function(t,r){(function(n,i){t.exports=i()})(commonjsGlobal,function(){function n(o){if(o==="true")return!0;if(o==="false")return!1;if(o===Number(o).toString())return Number(o);if(o===""||o==="null")return null;if(typeof o!="string")return o;try{return JSON.parse(decodeURIComponent(o))}catch{return o}}function i(o){return o.replace(/[A-Z]/g,s=>`-${s.toLowerCase()}`)}return{setDataAttribute(o,s,l){o.setAttribute(`data-bs-${i(s)}`,l)},removeDataAttribute(o,s){o.removeAttribute(`data-bs-${i(s)}`)},getDataAttributes(o){if(!o)return{};const s={},l=Object.keys(o.dataset).filter(u=>u.startsWith("bs")&&!u.startsWith("bsConfig"));for(const u of l){let c=u.replace(/^bs/,"");c=c.charAt(0).toLowerCase()+c.slice(1),s[c]=n(o.dataset[u])}return s},getDataAttribute(o,s){return n(o.getAttribute(`data-bs-${i(s)}`))}}})})(manipulator);/*!
37
+ * Bootstrap config.js v5.3.8 (https://getbootstrap.com/)
38
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
39
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
40
+ */(function(t,r){(function(n,i){t.exports=i(manipulator.exports,util.exports)})(commonjsGlobal,function(n,i){class a{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(s){return s=this._mergeConfigObj(s),s=this._configAfterMerge(s),this._typeCheckConfig(s),s}_configAfterMerge(s){return s}_mergeConfigObj(s,l){const u=i.isElement(l)?n.getDataAttribute(l,"config"):{};return{...this.constructor.Default,...typeof u=="object"?u:{},...i.isElement(l)?n.getDataAttributes(l):{},...typeof s=="object"?s:{}}}_typeCheckConfig(s,l=this.constructor.DefaultType){for(const[u,c]of Object.entries(l)){const d=s[u],v=i.isElement(d)?"element":i.toType(d);if(!new RegExp(c).test(v))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${u}" provided type "${v}" but expected type "${c}".`)}}}return a})})(config);/*!
41
+ * Bootstrap base-component.js v5.3.8 (https://getbootstrap.com/)
42
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
43
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
44
+ */(function(t,r){(function(n,i){t.exports=i(data.exports,eventHandler.exports,config.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="5.3.8";class l extends a{constructor(c,d){super(),c=o.getElement(c),c&&(this._element=c,this._config=this._getConfig(d),n.set(this._element,this.constructor.DATA_KEY,this))}dispose(){n.remove(this._element,this.constructor.DATA_KEY),i.off(this._element,this.constructor.EVENT_KEY);for(const c of Object.getOwnPropertyNames(this))this[c]=null}_queueCallback(c,d,v=!0){o.executeAfterTransition(c,d,v)}_getConfig(c){return c=this._mergeConfigObj(c,this._element),c=this._configAfterMerge(c),this._typeCheckConfig(c),c}static getInstance(c){return n.get(o.getElement(c),this.DATA_KEY)}static getOrCreateInstance(c,d={}){return this.getInstance(c)||new this(c,typeof d=="object"?d:null)}static get VERSION(){return s}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(c){return`${c}${this.EVENT_KEY}`}}return l})})(baseComponent);var selectorEngine={exports:{}};/*!
45
+ * Bootstrap selector-engine.js v5.3.8 (https://getbootstrap.com/)
46
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
47
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
48
+ */(function(t,r){(function(n,i){t.exports=i(util.exports)})(commonjsGlobal,function(n){const i=o=>{let s=o.getAttribute("data-bs-target");if(!s||s==="#"){let l=o.getAttribute("href");if(!l||!l.includes("#")&&!l.startsWith("."))return null;l.includes("#")&&!l.startsWith("#")&&(l=`#${l.split("#")[1]}`),s=l&&l!=="#"?l.trim():null}return s?s.split(",").map(l=>n.parseSelector(l)).join(","):null},a={find(o,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,o))},findOne(o,s=document.documentElement){return Element.prototype.querySelector.call(s,o)},children(o,s){return[].concat(...o.children).filter(l=>l.matches(s))},parents(o,s){const l=[];let u=o.parentNode.closest(s);for(;u;)l.push(u),u=u.parentNode.closest(s);return l},prev(o,s){let l=o.previousElementSibling;for(;l;){if(l.matches(s))return[l];l=l.previousElementSibling}return[]},next(o,s){let l=o.nextElementSibling;for(;l;){if(l.matches(s))return[l];l=l.nextElementSibling}return[]},focusableChildren(o){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(l=>`${l}:not([tabindex^="-"])`).join(",");return this.find(s,o).filter(l=>!n.isDisabled(l)&&n.isVisible(l))},getSelectorFromElement(o){const s=i(o);return s&&a.findOne(s)?s:null},getElementFromSelector(o){const s=i(o);return s?a.findOne(s):null},getMultipleElementsFromSelector(o){const s=i(o);return s?a.find(s):[]}};return a})})(selectorEngine);/*!
49
+ * Bootstrap collapse.js v5.3.8 (https://getbootstrap.com/)
50
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
51
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
52
+ */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="collapse",u=".bs.collapse",c=".data-api",d=`show${u}`,v=`shown${u}`,I=`hide${u}`,$=`hidden${u}`,O=`click${u}${c}`,R="show",M="collapse",N="collapsing",V="collapsed",G=`:scope .${M} .${M}`,Y="collapse-horizontal",X="width",q="height",Z=".collapse.show, .collapse.collapsing",ee='[data-bs-toggle="collapse"]',ne={parent:null,toggle:!0},J={parent:"(null|element)",toggle:"boolean"};class te extends n{constructor(oe,ue){super(oe,ue),this._isTransitioning=!1,this._triggerArray=[];const fe=a.find(ee);for(const de of fe){const ye=a.getSelectorFromElement(de),ge=a.find(ye).filter(Te=>Te===this._element);ye!==null&&ge.length&&this._triggerArray.push(de)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ne}static get DefaultType(){return J}static get NAME(){return s}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let oe=[];if(this._config.parent&&(oe=this._getFirstLevelChildren(Z).filter(Te=>Te!==this._element).map(Te=>te.getOrCreateInstance(Te,{toggle:!1}))),oe.length&&oe[0]._isTransitioning||i.trigger(this._element,d).defaultPrevented)return;for(const Te of oe)Te.hide();const fe=this._getDimension();this._element.classList.remove(M),this._element.classList.add(N),this._element.style[fe]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const de=()=>{this._isTransitioning=!1,this._element.classList.remove(N),this._element.classList.add(M,R),this._element.style[fe]="",i.trigger(this._element,v)},ge=`scroll${fe[0].toUpperCase()+fe.slice(1)}`;this._queueCallback(de,this._element,!0),this._element.style[fe]=`${this._element[ge]}px`}hide(){if(this._isTransitioning||!this._isShown()||i.trigger(this._element,I).defaultPrevented)return;const ue=this._getDimension();this._element.style[ue]=`${this._element.getBoundingClientRect()[ue]}px`,o.reflow(this._element),this._element.classList.add(N),this._element.classList.remove(M,R);for(const de of this._triggerArray){const ye=a.getElementFromSelector(de);ye&&!this._isShown(ye)&&this._addAriaAndCollapsedClass([de],!1)}this._isTransitioning=!0;const fe=()=>{this._isTransitioning=!1,this._element.classList.remove(N),this._element.classList.add(M),i.trigger(this._element,$)};this._element.style[ue]="",this._queueCallback(fe,this._element,!0)}_isShown(oe=this._element){return oe.classList.contains(R)}_configAfterMerge(oe){return oe.toggle=Boolean(oe.toggle),oe.parent=o.getElement(oe.parent),oe}_getDimension(){return this._element.classList.contains(Y)?X:q}_initializeChildren(){if(!this._config.parent)return;const oe=this._getFirstLevelChildren(ee);for(const ue of oe){const fe=a.getElementFromSelector(ue);fe&&this._addAriaAndCollapsedClass([ue],this._isShown(fe))}}_getFirstLevelChildren(oe){const ue=a.find(G,this._config.parent);return a.find(oe,this._config.parent).filter(fe=>!ue.includes(fe))}_addAriaAndCollapsedClass(oe,ue){if(!!oe.length)for(const fe of oe)fe.classList.toggle(V,!ue),fe.setAttribute("aria-expanded",ue)}static jQueryInterface(oe){const ue={};return typeof oe=="string"&&/show|hide/.test(oe)&&(ue.toggle=!1),this.each(function(){const fe=te.getOrCreateInstance(this,ue);if(typeof oe=="string"){if(typeof fe[oe]=="undefined")throw new TypeError(`No method named "${oe}"`);fe[oe]()}})}}return i.on(document,O,ee,function(Q){(Q.target.tagName==="A"||Q.delegateTarget&&Q.delegateTarget.tagName==="A")&&Q.preventDefault();for(const oe of a.getMultipleElementsFromSelector(this))te.getOrCreateInstance(oe,{toggle:!1}).toggle()}),o.defineJQueryPlugin(te),te})})(collapse);var Collapse=collapse.exports,alert={exports:{}},componentFunctions={exports:{}};/*!
53
+ * Bootstrap component-functions.js v5.3.8 (https://getbootstrap.com/)
54
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
55
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
56
+ */(function(t,r){(function(n,i){i(r,eventHandler.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s=(l,u="hide")=>{const c=`click.dismiss${l.EVENT_KEY}`,d=l.NAME;i.on(document,c,`[data-bs-dismiss="${d}"]`,function(v){if(["A","AREA"].includes(this.tagName)&&v.preventDefault(),o.isDisabled(this))return;const I=a.getElementFromSelector(this)||this.closest(`.${d}`);l.getOrCreateInstance(I)[u]()})};n.enableDismissTrigger=s,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(componentFunctions,componentFunctions.exports);/*!
57
+ * Bootstrap alert.js v5.3.8 (https://getbootstrap.com/)
58
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
59
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
60
+ */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,componentFunctions.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="alert",u=".bs.alert",c=`close${u}`,d=`closed${u}`,v="fade",I="show";class $ extends n{static get NAME(){return s}close(){if(i.trigger(this._element,c).defaultPrevented)return;this._element.classList.remove(I);const M=this._element.classList.contains(v);this._queueCallback(()=>this._destroyElement(),this._element,M)}_destroyElement(){this._element.remove(),i.trigger(this._element,d),this.dispose()}static jQueryInterface(R){return this.each(function(){const M=$.getOrCreateInstance(this);if(typeof R=="string"){if(M[R]===void 0||R.startsWith("_")||R==="constructor")throw new TypeError(`No method named "${R}"`);M[R](this)}})}}return a.enableDismissTrigger($,"close"),o.defineJQueryPlugin($),$})})(alert);var Alert=alert.exports,carousel={exports:{}},swipe={exports:{}};/*!
61
+ * Bootstrap swipe.js v5.3.8 (https://getbootstrap.com/)
62
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
63
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
64
+ */(function(t,r){(function(n,i){t.exports=i(eventHandler.exports,config.exports,util.exports)})(commonjsGlobal,function(n,i,a){const o="swipe",s=".bs.swipe",l=`touchstart${s}`,u=`touchmove${s}`,c=`touchend${s}`,d=`pointerdown${s}`,v=`pointerup${s}`,I="touch",$="pen",O="pointer-event",R=40,M={endCallback:null,leftCallback:null,rightCallback:null},N={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class V extends i{constructor(Y,X){super(),this._element=Y,!(!Y||!V.isSupported())&&(this._config=this._getConfig(X),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return M}static get DefaultType(){return N}static get NAME(){return o}dispose(){n.off(this._element,s)}_start(Y){if(!this._supportPointerEvents){this._deltaX=Y.touches[0].clientX;return}this._eventIsPointerPenTouch(Y)&&(this._deltaX=Y.clientX)}_end(Y){this._eventIsPointerPenTouch(Y)&&(this._deltaX=Y.clientX-this._deltaX),this._handleSwipe(),a.execute(this._config.endCallback)}_move(Y){this._deltaX=Y.touches&&Y.touches.length>1?0:Y.touches[0].clientX-this._deltaX}_handleSwipe(){const Y=Math.abs(this._deltaX);if(Y<=R)return;const X=Y/this._deltaX;this._deltaX=0,X&&a.execute(X>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(n.on(this._element,d,Y=>this._start(Y)),n.on(this._element,v,Y=>this._end(Y)),this._element.classList.add(O)):(n.on(this._element,l,Y=>this._start(Y)),n.on(this._element,u,Y=>this._move(Y)),n.on(this._element,c,Y=>this._end(Y)))}_eventIsPointerPenTouch(Y){return this._supportPointerEvents&&(Y.pointerType===$||Y.pointerType===I)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}return V})})(swipe);/*!
65
+ * Bootstrap carousel.js v5.3.8 (https://getbootstrap.com/)
66
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
67
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
68
+ */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,manipulator.exports,selectorEngine.exports,util.exports,swipe.exports)})(commonjsGlobal,function(n,i,a,o,s,l){const u="carousel",d=".bs.carousel",v=".data-api",I="ArrowLeft",$="ArrowRight",O=500,R="next",M="prev",N="left",V="right",G=`slide${d}`,Y=`slid${d}`,X=`keydown${d}`,q=`mouseenter${d}`,Z=`mouseleave${d}`,ee=`dragstart${d}`,ne=`load${d}${v}`,J=`click${d}${v}`,te="carousel",Q="active",oe="slide",ue="carousel-item-end",fe="carousel-item-start",de="carousel-item-next",ye="carousel-item-prev",ge=".active",Te=".carousel-item",Be=ge+Te,Ie=".carousel-item img",me=".carousel-indicators",De="[data-bs-slide], [data-bs-slide-to]",Ve='[data-bs-ride="carousel"]',Ue={[I]:V,[$]:N},Ze={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ft={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class at extends n{constructor(Le,Me){super(Le,Me),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=o.findOne(me,this._element),this._addEventListeners(),this._config.ride===te&&this.cycle()}static get Default(){return Ze}static get DefaultType(){return ft}static get NAME(){return u}next(){this._slide(R)}nextWhenVisible(){!document.hidden&&s.isVisible(this._element)&&this.next()}prev(){this._slide(M)}pause(){this._isSliding&&s.triggerTransitionEnd(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(!!this._config.ride){if(this._isSliding){i.one(this._element,Y,()=>this.cycle());return}this.cycle()}}to(Le){const Me=this._getItems();if(Le>Me.length-1||Le<0)return;if(this._isSliding){i.one(this._element,Y,()=>this.to(Le));return}const ke=this._getItemIndex(this._getActive());if(ke===Le)return;const se=Le>ke?R:M;this._slide(se,Me[Le])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(Le){return Le.defaultInterval=Le.interval,Le}_addEventListeners(){this._config.keyboard&&i.on(this._element,X,Le=>this._keydown(Le)),this._config.pause==="hover"&&(i.on(this._element,q,()=>this.pause()),i.on(this._element,Z,()=>this._maybeEnableCycle())),this._config.touch&&l.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const ke of o.find(Ie,this._element))i.on(ke,ee,se=>se.preventDefault());const Me={leftCallback:()=>this._slide(this._directionToOrder(N)),rightCallback:()=>this._slide(this._directionToOrder(V)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),O+this._config.interval))}};this._swipeHelper=new l(this._element,Me)}_keydown(Le){if(/input|textarea/i.test(Le.target.tagName))return;const Me=Ue[Le.key];Me&&(Le.preventDefault(),this._slide(this._directionToOrder(Me)))}_getItemIndex(Le){return this._getItems().indexOf(Le)}_setActiveIndicatorElement(Le){if(!this._indicatorsElement)return;const Me=o.findOne(ge,this._indicatorsElement);Me.classList.remove(Q),Me.removeAttribute("aria-current");const ke=o.findOne(`[data-bs-slide-to="${Le}"]`,this._indicatorsElement);ke&&(ke.classList.add(Q),ke.setAttribute("aria-current","true"))}_updateInterval(){const Le=this._activeElement||this._getActive();if(!Le)return;const Me=Number.parseInt(Le.getAttribute("data-bs-interval"),10);this._config.interval=Me||this._config.defaultInterval}_slide(Le,Me=null){if(this._isSliding)return;const ke=this._getActive(),se=Le===R,ae=Me||s.getNextActiveElement(this._getItems(),ke,se,this._config.wrap);if(ae===ke)return;const ve=this._getItemIndex(ae),Ce=we=>i.trigger(this._element,we,{relatedTarget:ae,direction:this._orderToDirection(Le),from:this._getItemIndex(ke),to:ve});if(Ce(G).defaultPrevented||!ke||!ae)return;const xe=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(ve),this._activeElement=ae;const Re=se?fe:ue,Pe=se?de:ye;ae.classList.add(Pe),s.reflow(ae),ke.classList.add(Re),ae.classList.add(Re);const Oe=()=>{ae.classList.remove(Re,Pe),ae.classList.add(Q),ke.classList.remove(Q,Pe,Re),this._isSliding=!1,Ce(Y)};this._queueCallback(Oe,ke,this._isAnimated()),xe&&this.cycle()}_isAnimated(){return this._element.classList.contains(oe)}_getActive(){return o.findOne(Be,this._element)}_getItems(){return o.find(Te,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(Le){return s.isRTL()?Le===N?M:R:Le===N?R:M}_orderToDirection(Le){return s.isRTL()?Le===M?N:V:Le===M?V:N}static jQueryInterface(Le){return this.each(function(){const Me=at.getOrCreateInstance(this,Le);if(typeof Le=="number"){Me.to(Le);return}if(typeof Le=="string"){if(Me[Le]===void 0||Le.startsWith("_")||Le==="constructor")throw new TypeError(`No method named "${Le}"`);Me[Le]()}})}}return i.on(document,J,De,function(dt){const Le=o.getElementFromSelector(this);if(!Le||!Le.classList.contains(te))return;dt.preventDefault();const Me=at.getOrCreateInstance(Le),ke=this.getAttribute("data-bs-slide-to");if(ke){Me.to(ke),Me._maybeEnableCycle();return}if(a.getDataAttribute(this,"slide")==="next"){Me.next(),Me._maybeEnableCycle();return}Me.prev(),Me._maybeEnableCycle()}),i.on(window,ne,()=>{const dt=o.find(Ve);for(const Le of dt)at.getOrCreateInstance(Le)}),s.defineJQueryPlugin(at),at})})(carousel);var Carousel=carousel.exports,dropdown={exports:{}},top="top",bottom="bottom",right="right",left="left",auto="auto",basePlacements=[top,bottom,right,left],start$1="start",end$1="end",clippingParents="clippingParents",viewport="viewport",popper="popper",reference="reference",variationPlacements=basePlacements.reduce(function(t,r){return t.concat([r+"-"+start$1,r+"-"+end$1])},[]),placements=[].concat(basePlacements,[auto]).reduce(function(t,r){return t.concat([r,r+"-"+start$1,r+"-"+end$1])},[]),beforeRead="beforeRead",read="read",afterRead="afterRead",beforeMain="beforeMain",main="main",afterMain="afterMain",beforeWrite="beforeWrite",write="write",afterWrite="afterWrite",modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(t){return t?(t.nodeName||"").toLowerCase():null}function getWindow(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function isElement$1(t){var r=getWindow(t).Element;return t instanceof r||t instanceof Element}function isHTMLElement(t){var r=getWindow(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function isShadowRoot(t){if(typeof ShadowRoot=="undefined")return!1;var r=getWindow(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function applyStyles(t){var r=t.state;Object.keys(r.elements).forEach(function(n){var i=r.styles[n]||{},a=r.attributes[n]||{},o=r.elements[n];!isHTMLElement(o)||!getNodeName(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(s){var l=a[s];l===!1?o.removeAttribute(s):o.setAttribute(s,l===!0?"":l)}))})}function effect$2(t){var r=t.state,n={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,n.popper),r.styles=n,r.elements.arrow&&Object.assign(r.elements.arrow.style,n.arrow),function(){Object.keys(r.elements).forEach(function(i){var a=r.elements[i],o=r.attributes[i]||{},s=Object.keys(r.styles.hasOwnProperty(i)?r.styles[i]:n[i]),l=s.reduce(function(u,c){return u[c]="",u},{});!isHTMLElement(a)||!getNodeName(a)||(Object.assign(a.style,l),Object.keys(o).forEach(function(u){a.removeAttribute(u)}))})}}var applyStyles$1={name:"applyStyles",enabled:!0,phase:"write",fn:applyStyles,effect:effect$2,requires:["computeStyles"]};function getBasePlacement(t){return t.split("-")[0]}var max$2=Math.max,min$2=Math.min,round$2=Math.round;function getUAString(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(t,r,n){r===void 0&&(r=!1),n===void 0&&(n=!1);var i=t.getBoundingClientRect(),a=1,o=1;r&&isHTMLElement(t)&&(a=t.offsetWidth>0&&round$2(i.width)/t.offsetWidth||1,o=t.offsetHeight>0&&round$2(i.height)/t.offsetHeight||1);var s=isElement$1(t)?getWindow(t):window,l=s.visualViewport,u=!isLayoutViewport()&&n,c=(i.left+(u&&l?l.offsetLeft:0))/a,d=(i.top+(u&&l?l.offsetTop:0))/o,v=i.width/a,I=i.height/o;return{width:v,height:I,top:d,right:c+v,bottom:d+I,left:c,x:c,y:d}}function getLayoutRect$1(t){var r=getBoundingClientRect(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(r.width-n)<=1&&(n=r.width),Math.abs(r.height-i)<=1&&(i=r.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function contains(t,r){var n=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(n&&isShadowRoot(n)){var i=r;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getComputedStyle$3(t){return getWindow(t).getComputedStyle(t)}function isTableElement(t){return["table","td","th"].indexOf(getNodeName(t))>=0}function getDocumentElement(t){return((isElement$1(t)?t.ownerDocument:t.document)||window.document).documentElement}function getParentNode(t){return getNodeName(t)==="html"?t:t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){return!isHTMLElement(t)||getComputedStyle$3(t).position==="fixed"?null:t.offsetParent}function getContainingBlock(t){var r=/firefox/i.test(getUAString()),n=/Trident/i.test(getUAString());if(n&&isHTMLElement(t)){var i=getComputedStyle$3(t);if(i.position==="fixed")return null}var a=getParentNode(t);for(isShadowRoot(a)&&(a=a.host);isHTMLElement(a)&&["html","body"].indexOf(getNodeName(a))<0;){var o=getComputedStyle$3(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||r&&o.willChange==="filter"||r&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function getOffsetParent(t){for(var r=getWindow(t),n=getTrueOffsetParent(t);n&&isTableElement(n)&&getComputedStyle$3(n).position==="static";)n=getTrueOffsetParent(n);return n&&(getNodeName(n)==="html"||getNodeName(n)==="body"&&getComputedStyle$3(n).position==="static")?r:n||getContainingBlock(t)||r}function getMainAxisFromPlacement(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function within(t,r,n){return max$2(t,min$2(r,n))}function withinMaxClamp(t,r,n){var i=within(t,r,n);return i>n?n:i}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(t){return Object.assign({},getFreshSideObject(),t)}function expandToHashMap(t,r){return r.reduce(function(n,i){return n[i]=t,n},{})}var toPaddingObject=function(r,n){return r=typeof r=="function"?r(Object.assign({},n.rects,{placement:n.placement})):r,mergePaddingObject(typeof r!="number"?r:expandToHashMap(r,basePlacements))};function arrow(t){var r,n=t.state,i=t.name,a=t.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,l=getBasePlacement(n.placement),u=getMainAxisFromPlacement(l),c=[left,right].indexOf(l)>=0,d=c?"height":"width";if(!(!o||!s)){var v=toPaddingObject(a.padding,n),I=getLayoutRect$1(o),$=u==="y"?top:left,O=u==="y"?bottom:right,R=n.rects.reference[d]+n.rects.reference[u]-s[u]-n.rects.popper[d],M=s[u]-n.rects.reference[u],N=getOffsetParent(o),V=N?u==="y"?N.clientHeight||0:N.clientWidth||0:0,G=R/2-M/2,Y=v[$],X=V-I[d]-v[O],q=V/2-I[d]/2+G,Z=within(Y,q,X),ee=u;n.modifiersData[i]=(r={},r[ee]=Z,r.centerOffset=Z-q,r)}}function effect$1(t){var r=t.state,n=t.options,i=n.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||!contains(r.elements.popper,a)||(r.elements.arrow=a))}var arrow$1={name:"arrow",enabled:!0,phase:"main",fn:arrow,effect:effect$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function getVariation(t){return t.split("-")[1]}var unsetSides={top:"auto",right:"auto",bottom:"auto",left:"auto"};function roundOffsetsByDPR(t,r){var n=t.x,i=t.y,a=r.devicePixelRatio||1;return{x:round$2(n*a)/a||0,y:round$2(i*a)/a||0}}function mapToStyles(t){var r,n=t.popper,i=t.popperRect,a=t.placement,o=t.variation,s=t.offsets,l=t.position,u=t.gpuAcceleration,c=t.adaptive,d=t.roundOffsets,v=t.isFixed,I=s.x,$=I===void 0?0:I,O=s.y,R=O===void 0?0:O,M=typeof d=="function"?d({x:$,y:R}):{x:$,y:R};$=M.x,R=M.y;var N=s.hasOwnProperty("x"),V=s.hasOwnProperty("y"),G=left,Y=top,X=window;if(c){var q=getOffsetParent(n),Z="clientHeight",ee="clientWidth";if(q===getWindow(n)&&(q=getDocumentElement(n),getComputedStyle$3(q).position!=="static"&&l==="absolute"&&(Z="scrollHeight",ee="scrollWidth")),q=q,a===top||(a===left||a===right)&&o===end$1){Y=bottom;var ne=v&&q===X&&X.visualViewport?X.visualViewport.height:q[Z];R-=ne-i.height,R*=u?1:-1}if(a===left||(a===top||a===bottom)&&o===end$1){G=right;var J=v&&q===X&&X.visualViewport?X.visualViewport.width:q[ee];$-=J-i.width,$*=u?1:-1}}var te=Object.assign({position:l},c&&unsetSides),Q=d===!0?roundOffsetsByDPR({x:$,y:R},getWindow(n)):{x:$,y:R};if($=Q.x,R=Q.y,u){var oe;return Object.assign({},te,(oe={},oe[Y]=V?"0":"",oe[G]=N?"0":"",oe.transform=(X.devicePixelRatio||1)<=1?"translate("+$+"px, "+R+"px)":"translate3d("+$+"px, "+R+"px, 0)",oe))}return Object.assign({},te,(r={},r[Y]=V?R+"px":"",r[G]=N?$+"px":"",r.transform="",r))}function computeStyles(t){var r=t.state,n=t.options,i=n.gpuAcceleration,a=i===void 0?!0:i,o=n.adaptive,s=o===void 0?!0:o,l=n.roundOffsets,u=l===void 0?!0:l,c={placement:getBasePlacement(r.placement),variation:getVariation(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,mapToStyles(Object.assign({},c,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:s,roundOffsets:u})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,mapToStyles(Object.assign({},c,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}var computeStyles$1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:computeStyles,data:{}},passive={passive:!0};function effect(t){var r=t.state,n=t.instance,i=t.options,a=i.scroll,o=a===void 0?!0:a,s=i.resize,l=s===void 0?!0:s,u=getWindow(r.elements.popper),c=[].concat(r.scrollParents.reference,r.scrollParents.popper);return o&&c.forEach(function(d){d.addEventListener("scroll",n.update,passive)}),l&&u.addEventListener("resize",n.update,passive),function(){o&&c.forEach(function(d){d.removeEventListener("scroll",n.update,passive)}),l&&u.removeEventListener("resize",n.update,passive)}}var eventListeners={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect,data:{}},hash$1={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,function(r){return hash$1[r]})}var hash={start:"end",end:"start"};function getOppositeVariationPlacement(t){return t.replace(/start|end/g,function(r){return hash[r]})}function getWindowScroll(t){var r=getWindow(t),n=r.pageXOffset,i=r.pageYOffset;return{scrollLeft:n,scrollTop:i}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getWindowScroll(t).scrollLeft}function getViewportRect(t,r){var n=getWindow(t),i=getDocumentElement(t),a=n.visualViewport,o=i.clientWidth,s=i.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;var c=isLayoutViewport();(c||!c&&r==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:o,height:s,x:l+getWindowScrollBarX(t),y:u}}function getDocumentRect(t){var r,n=getDocumentElement(t),i=getWindowScroll(t),a=(r=t.ownerDocument)==null?void 0:r.body,o=max$2(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=max$2(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),l=-i.scrollLeft+getWindowScrollBarX(t),u=-i.scrollTop;return getComputedStyle$3(a||n).direction==="rtl"&&(l+=max$2(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:l,y:u}}function isScrollParent(t){var r=getComputedStyle$3(t),n=r.overflow,i=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+i)}function getScrollParent(t){return["html","body","#document"].indexOf(getNodeName(t))>=0?t.ownerDocument.body:isHTMLElement(t)&&isScrollParent(t)?t:getScrollParent(getParentNode(t))}function listScrollParents(t,r){var n;r===void 0&&(r=[]);var i=getScrollParent(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),o=getWindow(i),s=a?[o].concat(o.visualViewport||[],isScrollParent(i)?i:[]):i,l=r.concat(s);return a?l:l.concat(listScrollParents(getParentNode(s)))}function rectToClientRect(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function getInnerBoundingClientRect(t,r){var n=getBoundingClientRect(t,!1,r==="fixed");return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}function getClientRectFromMixedType(t,r,n){return r===viewport?rectToClientRect(getViewportRect(t,n)):isElement$1(r)?getInnerBoundingClientRect(r,n):rectToClientRect(getDocumentRect(getDocumentElement(t)))}function getClippingParents(t){var r=listScrollParents(getParentNode(t)),n=["absolute","fixed"].indexOf(getComputedStyle$3(t).position)>=0,i=n&&isHTMLElement(t)?getOffsetParent(t):t;return isElement$1(i)?r.filter(function(a){return isElement$1(a)&&contains(a,i)&&getNodeName(a)!=="body"}):[]}function getClippingRect(t,r,n,i){var a=r==="clippingParents"?getClippingParents(t):[].concat(r),o=[].concat(a,[n]),s=o[0],l=o.reduce(function(u,c){var d=getClientRectFromMixedType(t,c,i);return u.top=max$2(d.top,u.top),u.right=min$2(d.right,u.right),u.bottom=min$2(d.bottom,u.bottom),u.left=max$2(d.left,u.left),u},getClientRectFromMixedType(t,s,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function computeOffsets(t){var r=t.reference,n=t.element,i=t.placement,a=i?getBasePlacement(i):null,o=i?getVariation(i):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2,u;switch(a){case top:u={x:s,y:r.y-n.height};break;case bottom:u={x:s,y:r.y+r.height};break;case right:u={x:r.x+r.width,y:l};break;case left:u={x:r.x-n.width,y:l};break;default:u={x:r.x,y:r.y}}var c=a?getMainAxisFromPlacement(a):null;if(c!=null){var d=c==="y"?"height":"width";switch(o){case start$1:u[c]=u[c]-(r[d]/2-n[d]/2);break;case end$1:u[c]=u[c]+(r[d]/2-n[d]/2);break}}return u}function detectOverflow(t,r){r===void 0&&(r={});var n=r,i=n.placement,a=i===void 0?t.placement:i,o=n.strategy,s=o===void 0?t.strategy:o,l=n.boundary,u=l===void 0?clippingParents:l,c=n.rootBoundary,d=c===void 0?viewport:c,v=n.elementContext,I=v===void 0?popper:v,$=n.altBoundary,O=$===void 0?!1:$,R=n.padding,M=R===void 0?0:R,N=mergePaddingObject(typeof M!="number"?M:expandToHashMap(M,basePlacements)),V=I===popper?reference:popper,G=t.rects.popper,Y=t.elements[O?V:I],X=getClippingRect(isElement$1(Y)?Y:Y.contextElement||getDocumentElement(t.elements.popper),u,d,s),q=getBoundingClientRect(t.elements.reference),Z=computeOffsets({reference:q,element:G,strategy:"absolute",placement:a}),ee=rectToClientRect(Object.assign({},G,Z)),ne=I===popper?ee:q,J={top:X.top-ne.top+N.top,bottom:ne.bottom-X.bottom+N.bottom,left:X.left-ne.left+N.left,right:ne.right-X.right+N.right},te=t.modifiersData.offset;if(I===popper&&te){var Q=te[a];Object.keys(J).forEach(function(oe){var ue=[right,bottom].indexOf(oe)>=0?1:-1,fe=[top,bottom].indexOf(oe)>=0?"y":"x";J[oe]+=Q[fe]*ue})}return J}function computeAutoPlacement(t,r){r===void 0&&(r={});var n=r,i=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,c=u===void 0?placements:u,d=getVariation(i),v=d?l?variationPlacements:variationPlacements.filter(function(O){return getVariation(O)===d}):basePlacements,I=v.filter(function(O){return c.indexOf(O)>=0});I.length===0&&(I=v);var $=I.reduce(function(O,R){return O[R]=detectOverflow(t,{placement:R,boundary:a,rootBoundary:o,padding:s})[getBasePlacement(R)],O},{});return Object.keys($).sort(function(O,R){return $[O]-$[R]})}function getExpandedFallbackPlacements(t){if(getBasePlacement(t)===auto)return[];var r=getOppositePlacement(t);return[getOppositeVariationPlacement(t),r,getOppositeVariationPlacement(r)]}function flip(t){var r=t.state,n=t.options,i=t.name;if(!r.modifiersData[i]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!0:s,u=n.fallbackPlacements,c=n.padding,d=n.boundary,v=n.rootBoundary,I=n.altBoundary,$=n.flipVariations,O=$===void 0?!0:$,R=n.allowedAutoPlacements,M=r.options.placement,N=getBasePlacement(M),V=N===M,G=u||(V||!O?[getOppositePlacement(M)]:getExpandedFallbackPlacements(M)),Y=[M].concat(G).reduce(function(Ve,Ue){return Ve.concat(getBasePlacement(Ue)===auto?computeAutoPlacement(r,{placement:Ue,boundary:d,rootBoundary:v,padding:c,flipVariations:O,allowedAutoPlacements:R}):Ue)},[]),X=r.rects.reference,q=r.rects.popper,Z=new Map,ee=!0,ne=Y[0],J=0;J<Y.length;J++){var te=Y[J],Q=getBasePlacement(te),oe=getVariation(te)===start$1,ue=[top,bottom].indexOf(Q)>=0,fe=ue?"width":"height",de=detectOverflow(r,{placement:te,boundary:d,rootBoundary:v,altBoundary:I,padding:c}),ye=ue?oe?right:left:oe?bottom:top;X[fe]>q[fe]&&(ye=getOppositePlacement(ye));var ge=getOppositePlacement(ye),Te=[];if(o&&Te.push(de[Q]<=0),l&&Te.push(de[ye]<=0,de[ge]<=0),Te.every(function(Ve){return Ve})){ne=te,ee=!1;break}Z.set(te,Te)}if(ee)for(var Be=O?3:1,Ie=function(Ue){var Ze=Y.find(function(ft){var at=Z.get(ft);if(at)return at.slice(0,Ue).every(function(dt){return dt})});if(Ze)return ne=Ze,"break"},me=Be;me>0;me--){var De=Ie(me);if(De==="break")break}r.placement!==ne&&(r.modifiersData[i]._skip=!0,r.placement=ne,r.reset=!0)}}var flip$1={name:"flip",enabled:!0,phase:"main",fn:flip,requiresIfExists:["offset"],data:{_skip:!1}};function getSideOffsets(t,r,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-r.height-n.y,right:t.right-r.width+n.x,bottom:t.bottom-r.height+n.y,left:t.left-r.width-n.x}}function isAnySideFullyClipped(t){return[top,right,bottom,left].some(function(r){return t[r]>=0})}function hide(t){var r=t.state,n=t.name,i=r.rects.reference,a=r.rects.popper,o=r.modifiersData.preventOverflow,s=detectOverflow(r,{elementContext:"reference"}),l=detectOverflow(r,{altBoundary:!0}),u=getSideOffsets(s,i),c=getSideOffsets(l,a,o),d=isAnySideFullyClipped(u),v=isAnySideFullyClipped(c);r.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:v},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":v})}var hide$1={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hide};function distanceAndSkiddingToXY(t,r,n){var i=getBasePlacement(t),a=[left,top].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},r,{placement:t})):n,s=o[0],l=o[1];return s=s||0,l=(l||0)*a,[left,right].indexOf(i)>=0?{x:l,y:s}:{x:s,y:l}}function offset(t){var r=t.state,n=t.options,i=t.name,a=n.offset,o=a===void 0?[0,0]:a,s=placements.reduce(function(d,v){return d[v]=distanceAndSkiddingToXY(v,r.rects,o),d},{}),l=s[r.placement],u=l.x,c=l.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=u,r.modifiersData.popperOffsets.y+=c),r.modifiersData[i]=s}var offset$1={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:offset};function popperOffsets(t){var r=t.state,n=t.name;r.modifiersData[n]=computeOffsets({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}var popperOffsets$1={name:"popperOffsets",enabled:!0,phase:"read",fn:popperOffsets,data:{}};function getAltAxis(t){return t==="x"?"y":"x"}function preventOverflow(t){var r=t.state,n=t.options,i=t.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,l=s===void 0?!1:s,u=n.boundary,c=n.rootBoundary,d=n.altBoundary,v=n.padding,I=n.tether,$=I===void 0?!0:I,O=n.tetherOffset,R=O===void 0?0:O,M=detectOverflow(r,{boundary:u,rootBoundary:c,padding:v,altBoundary:d}),N=getBasePlacement(r.placement),V=getVariation(r.placement),G=!V,Y=getMainAxisFromPlacement(N),X=getAltAxis(Y),q=r.modifiersData.popperOffsets,Z=r.rects.reference,ee=r.rects.popper,ne=typeof R=="function"?R(Object.assign({},r.rects,{placement:r.placement})):R,J=typeof ne=="number"?{mainAxis:ne,altAxis:ne}:Object.assign({mainAxis:0,altAxis:0},ne),te=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,Q={x:0,y:0};if(!!q){if(o){var oe,ue=Y==="y"?top:left,fe=Y==="y"?bottom:right,de=Y==="y"?"height":"width",ye=q[Y],ge=ye+M[ue],Te=ye-M[fe],Be=$?-ee[de]/2:0,Ie=V===start$1?Z[de]:ee[de],me=V===start$1?-ee[de]:-Z[de],De=r.elements.arrow,Ve=$&&De?getLayoutRect$1(De):{width:0,height:0},Ue=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Ze=Ue[ue],ft=Ue[fe],at=within(0,Z[de],Ve[de]),dt=G?Z[de]/2-Be-at-Ze-J.mainAxis:Ie-at-Ze-J.mainAxis,Le=G?-Z[de]/2+Be+at+ft+J.mainAxis:me+at+ft+J.mainAxis,Me=r.elements.arrow&&getOffsetParent(r.elements.arrow),ke=Me?Y==="y"?Me.clientTop||0:Me.clientLeft||0:0,se=(oe=te==null?void 0:te[Y])!=null?oe:0,ae=ye+dt-se-ke,ve=ye+Le-se,Ce=within($?min$2(ge,ae):ge,ye,$?max$2(Te,ve):Te);q[Y]=Ce,Q[Y]=Ce-ye}if(l){var be,xe=Y==="x"?top:left,Re=Y==="x"?bottom:right,Pe=q[X],Oe=X==="y"?"height":"width",we=Pe+M[xe],We=Pe-M[Re],Ne=[top,left].indexOf(N)!==-1,ze=(be=te==null?void 0:te[X])!=null?be:0,qe=Ne?we:Pe-Z[Oe]-ee[Oe]-ze+J.altAxis,Je=Ne?Pe+Z[Oe]+ee[Oe]-ze-J.altAxis:We,st=$&&Ne?withinMaxClamp(qe,Pe,Je):within($?qe:we,Pe,$?Je:We);q[X]=st,Q[X]=st-Pe}r.modifiersData[i]=Q}}var preventOverflow$1={name:"preventOverflow",enabled:!0,phase:"main",fn:preventOverflow,requiresIfExists:["offset"]};function getHTMLElementScroll(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function getNodeScroll(t){return t===getWindow(t)||!isHTMLElement(t)?getWindowScroll(t):getHTMLElementScroll(t)}function isElementScaled(t){var r=t.getBoundingClientRect(),n=round$2(r.width)/t.offsetWidth||1,i=round$2(r.height)/t.offsetHeight||1;return n!==1||i!==1}function getCompositeRect(t,r,n){n===void 0&&(n=!1);var i=isHTMLElement(r),a=isHTMLElement(r)&&isElementScaled(r),o=getDocumentElement(r),s=getBoundingClientRect(t,a,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&((getNodeName(r)!=="body"||isScrollParent(o))&&(l=getNodeScroll(r)),isHTMLElement(r)?(u=getBoundingClientRect(r,!0),u.x+=r.clientLeft,u.y+=r.clientTop):o&&(u.x=getWindowScrollBarX(o))),{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function order(t){var r=new Map,n=new Set,i=[];t.forEach(function(o){r.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(l){if(!n.has(l)){var u=r.get(l);u&&a(u)}}),i.push(o)}return t.forEach(function(o){n.has(o.name)||a(o)}),i}function orderModifiers(t){var r=order(t);return modifierPhases.reduce(function(n,i){return n.concat(r.filter(function(a){return a.phase===i}))},[])}function debounce(t){var r;return function(){return r||(r=new Promise(function(n){Promise.resolve().then(function(){r=void 0,n(t())})})),r}}function mergeByName(t){var r=t.reduce(function(n,i){var a=n[i.name];return n[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,n},{});return Object.keys(r).map(function(n){return r[n]})}var DEFAULT_OPTIONS={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return!r.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function popperGenerator(t){t===void 0&&(t={});var r=t,n=r.defaultModifiers,i=n===void 0?[]:n,a=r.defaultOptions,o=a===void 0?DEFAULT_OPTIONS:a;return function(l,u,c){c===void 0&&(c=o);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,o),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},v=[],I=!1,$={state:d,setOptions:function(N){var V=typeof N=="function"?N(d.options):N;R(),d.options=Object.assign({},o,d.options,V),d.scrollParents={reference:isElement$1(l)?listScrollParents(l):l.contextElement?listScrollParents(l.contextElement):[],popper:listScrollParents(u)};var G=orderModifiers(mergeByName([].concat(i,d.options.modifiers)));return d.orderedModifiers=G.filter(function(Y){return Y.enabled}),O(),$.update()},forceUpdate:function(){if(!I){var N=d.elements,V=N.reference,G=N.popper;if(!!areValidElements(V,G)){d.rects={reference:getCompositeRect(V,getOffsetParent(G),d.options.strategy==="fixed"),popper:getLayoutRect$1(G)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(J){return d.modifiersData[J.name]=Object.assign({},J.data)});for(var Y=0;Y<d.orderedModifiers.length;Y++){if(d.reset===!0){d.reset=!1,Y=-1;continue}var X=d.orderedModifiers[Y],q=X.fn,Z=X.options,ee=Z===void 0?{}:Z,ne=X.name;typeof q=="function"&&(d=q({state:d,options:ee,name:ne,instance:$})||d)}}}},update:debounce(function(){return new Promise(function(M){$.forceUpdate(),M(d)})}),destroy:function(){R(),I=!0}};if(!areValidElements(l,u))return $;$.setOptions(c).then(function(M){!I&&c.onFirstUpdate&&c.onFirstUpdate(M)});function O(){d.orderedModifiers.forEach(function(M){var N=M.name,V=M.options,G=V===void 0?{}:V,Y=M.effect;if(typeof Y=="function"){var X=Y({state:d,name:N,instance:$,options:G}),q=function(){};v.push(X||q)}})}function R(){v.forEach(function(M){return M()}),v=[]}return $}}var createPopper$2=popperGenerator(),defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1],createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1}),defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1],createPopper=popperGenerator({defaultModifiers}),lib=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator,detectOverflow,createPopperBase:createPopper$2,createPopper,createPopperLite:createPopper$1,top,bottom,right,left,auto,basePlacements,start:start$1,end:end$1,clippingParents,viewport,popper,reference,variationPlacements,placements,beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite,modifierPhases,applyStyles:applyStyles$1,arrow:arrow$1,computeStyles:computeStyles$1,eventListeners,flip:flip$1,hide:hide$1,offset:offset$1,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(lib);/*!
69
+ * Bootstrap dropdown.js v5.3.8 (https://getbootstrap.com/)
70
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
71
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
72
+ */(function(t,r){(function(n,i){t.exports=i(require$$0,baseComponent.exports,eventHandler.exports,manipulator.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a,o,s,l){function u(se){const ae=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(se){for(const ve in se)if(ve!=="default"){const Ce=Object.getOwnPropertyDescriptor(se,ve);Object.defineProperty(ae,ve,Ce.get?Ce:{enumerable:!0,get:()=>se[ve]})}}return ae.default=se,Object.freeze(ae)}const c=u(n),d="dropdown",I=".bs.dropdown",$=".data-api",O="Escape",R="Tab",M="ArrowUp",N="ArrowDown",V=2,G=`hide${I}`,Y=`hidden${I}`,X=`show${I}`,q=`shown${I}`,Z=`click${I}${$}`,ee=`keydown${I}${$}`,ne=`keyup${I}${$}`,J="show",te="dropup",Q="dropend",oe="dropstart",ue="dropup-center",fe="dropdown-center",de='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',ye=`${de}.${J}`,ge=".dropdown-menu",Te=".navbar",Be=".navbar-nav",Ie=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",me=l.isRTL()?"top-end":"top-start",De=l.isRTL()?"top-start":"top-end",Ve=l.isRTL()?"bottom-end":"bottom-start",Ue=l.isRTL()?"bottom-start":"bottom-end",Ze=l.isRTL()?"left-start":"right-start",ft=l.isRTL()?"right-start":"left-start",at="top",dt="bottom",Le={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Me={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ke extends i{constructor(ae,ve){super(ae,ve),this._popper=null,this._parent=this._element.parentNode,this._menu=s.next(this._element,ge)[0]||s.prev(this._element,ge)[0]||s.findOne(ge,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Le}static get DefaultType(){return Me}static get NAME(){return d}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l.isDisabled(this._element)||this._isShown())return;const ae={relatedTarget:this._element};if(!a.trigger(this._element,X,ae).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(Be))for(const Ce of[].concat(...document.body.children))a.on(Ce,"mouseover",l.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(J),this._element.classList.add(J),a.trigger(this._element,q,ae)}}hide(){if(l.isDisabled(this._element)||!this._isShown())return;const ae={relatedTarget:this._element};this._completeHide(ae)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(ae){if(!a.trigger(this._element,G,ae).defaultPrevented){if("ontouchstart"in document.documentElement)for(const Ce of[].concat(...document.body.children))a.off(Ce,"mouseover",l.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(J),this._element.classList.remove(J),this._element.setAttribute("aria-expanded","false"),o.removeDataAttribute(this._menu,"popper"),a.trigger(this._element,Y,ae)}}_getConfig(ae){if(ae=super._getConfig(ae),typeof ae.reference=="object"&&!l.isElement(ae.reference)&&typeof ae.reference.getBoundingClientRect!="function")throw new TypeError(`${d.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return ae}_createPopper(){if(typeof c=="undefined")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org/docs/v2/)");let ae=this._element;this._config.reference==="parent"?ae=this._parent:l.isElement(this._config.reference)?ae=l.getElement(this._config.reference):typeof this._config.reference=="object"&&(ae=this._config.reference);const ve=this._getPopperConfig();this._popper=c.createPopper(ae,this._menu,ve)}_isShown(){return this._menu.classList.contains(J)}_getPlacement(){const ae=this._parent;if(ae.classList.contains(Q))return Ze;if(ae.classList.contains(oe))return ft;if(ae.classList.contains(ue))return at;if(ae.classList.contains(fe))return dt;const ve=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return ae.classList.contains(te)?ve?De:me:ve?Ue:Ve}_detectNavbar(){return this._element.closest(Te)!==null}_getOffset(){const{offset:ae}=this._config;return typeof ae=="string"?ae.split(",").map(ve=>Number.parseInt(ve,10)):typeof ae=="function"?ve=>ae(ve,this._element):ae}_getPopperConfig(){const ae={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(o.setDataAttribute(this._menu,"popper","static"),ae.modifiers=[{name:"applyStyles",enabled:!1}]),{...ae,...l.execute(this._config.popperConfig,[void 0,ae])}}_selectMenuItem({key:ae,target:ve}){const Ce=s.find(Ie,this._menu).filter(be=>l.isVisible(be));!Ce.length||l.getNextActiveElement(Ce,ve,ae===N,!Ce.includes(ve)).focus()}static jQueryInterface(ae){return this.each(function(){const ve=ke.getOrCreateInstance(this,ae);if(typeof ae=="string"){if(typeof ve[ae]=="undefined")throw new TypeError(`No method named "${ae}"`);ve[ae]()}})}static clearMenus(ae){if(ae.button===V||ae.type==="keyup"&&ae.key!==R)return;const ve=s.find(ye);for(const Ce of ve){const be=ke.getInstance(Ce);if(!be||be._config.autoClose===!1)continue;const xe=ae.composedPath(),Re=xe.includes(be._menu);if(xe.includes(be._element)||be._config.autoClose==="inside"&&!Re||be._config.autoClose==="outside"&&Re||be._menu.contains(ae.target)&&(ae.type==="keyup"&&ae.key===R||/input|select|option|textarea|form/i.test(ae.target.tagName)))continue;const Pe={relatedTarget:be._element};ae.type==="click"&&(Pe.clickEvent=ae),be._completeHide(Pe)}}static dataApiKeydownHandler(ae){const ve=/input|textarea/i.test(ae.target.tagName),Ce=ae.key===O,be=[M,N].includes(ae.key);if(!be&&!Ce||ve&&!Ce)return;ae.preventDefault();const xe=this.matches(de)?this:s.prev(this,de)[0]||s.next(this,de)[0]||s.findOne(de,ae.delegateTarget.parentNode),Re=ke.getOrCreateInstance(xe);if(be){ae.stopPropagation(),Re.show(),Re._selectMenuItem(ae);return}Re._isShown()&&(ae.stopPropagation(),Re.hide(),xe.focus())}}return a.on(document,ee,de,ke.dataApiKeydownHandler),a.on(document,ee,ge,ke.dataApiKeydownHandler),a.on(document,Z,ke.clearMenus),a.on(document,ne,ke.clearMenus),a.on(document,Z,de,function(se){se.preventDefault(),ke.getOrCreateInstance(this).toggle()}),l.defineJQueryPlugin(ke),ke})})(dropdown);var Dropdown=dropdown.exports,modal={exports:{}},backdrop={exports:{}};/*!
73
+ * Bootstrap backdrop.js v5.3.8 (https://getbootstrap.com/)
74
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
75
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
76
+ */(function(t,r){(function(n,i){t.exports=i(eventHandler.exports,config.exports,util.exports)})(commonjsGlobal,function(n,i,a){const o="backdrop",s="fade",l="show",u=`mousedown.bs.${o}`,c={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},d={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class v extends i{constructor($){super(),this._config=this._getConfig($),this._isAppended=!1,this._element=null}static get Default(){return c}static get DefaultType(){return d}static get NAME(){return o}show($){if(!this._config.isVisible){a.execute($);return}this._append();const O=this._getElement();this._config.isAnimated&&a.reflow(O),O.classList.add(l),this._emulateAnimation(()=>{a.execute($)})}hide($){if(!this._config.isVisible){a.execute($);return}this._getElement().classList.remove(l),this._emulateAnimation(()=>{this.dispose(),a.execute($)})}dispose(){!this._isAppended||(n.off(this._element,u),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const $=document.createElement("div");$.className=this._config.className,this._config.isAnimated&&$.classList.add(s),this._element=$}return this._element}_configAfterMerge($){return $.rootElement=a.getElement($.rootElement),$}_append(){if(this._isAppended)return;const $=this._getElement();this._config.rootElement.append($),n.on($,u,()=>{a.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation($){a.executeAfterTransition($,this._getElement(),this._config.isAnimated)}}return v})})(backdrop);var focustrap={exports:{}};/*!
77
+ * Bootstrap focustrap.js v5.3.8 (https://getbootstrap.com/)
78
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
79
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
80
+ */(function(t,r){(function(n,i){t.exports=i(eventHandler.exports,selectorEngine.exports,config.exports)})(commonjsGlobal,function(n,i,a){const o="focustrap",l=".bs.focustrap",u=`focusin${l}`,c=`keydown.tab${l}`,d="Tab",v="forward",I="backward",$={autofocus:!0,trapElement:null},O={autofocus:"boolean",trapElement:"element"};class R extends a{constructor(N){super(),this._config=this._getConfig(N),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return $}static get DefaultType(){return O}static get NAME(){return o}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),n.off(document,l),n.on(document,u,N=>this._handleFocusin(N)),n.on(document,c,N=>this._handleKeydown(N)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,n.off(document,l))}_handleFocusin(N){const{trapElement:V}=this._config;if(N.target===document||N.target===V||V.contains(N.target))return;const G=i.focusableChildren(V);G.length===0?V.focus():this._lastTabNavDirection===I?G[G.length-1].focus():G[0].focus()}_handleKeydown(N){N.key===d&&(this._lastTabNavDirection=N.shiftKey?I:v)}}return R})})(focustrap);var scrollbar={exports:{}};/*!
81
+ * Bootstrap scrollbar.js v5.3.8 (https://getbootstrap.com/)
82
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
83
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
84
+ */(function(t,r){(function(n,i){t.exports=i(manipulator.exports,selectorEngine.exports,util.exports)})(commonjsGlobal,function(n,i,a){const o=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",s=".sticky-top",l="padding-right",u="margin-right";class c{constructor(){this._element=document.body}getWidth(){const v=document.documentElement.clientWidth;return Math.abs(window.innerWidth-v)}hide(){const v=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,l,I=>I+v),this._setElementAttributes(o,l,I=>I+v),this._setElementAttributes(s,u,I=>I-v)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,l),this._resetElementAttributes(o,l),this._resetElementAttributes(s,u)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(v,I,$){const O=this.getWidth(),R=M=>{if(M!==this._element&&window.innerWidth>M.clientWidth+O)return;this._saveInitialAttribute(M,I);const N=window.getComputedStyle(M).getPropertyValue(I);M.style.setProperty(I,`${$(Number.parseFloat(N))}px`)};this._applyManipulationCallback(v,R)}_saveInitialAttribute(v,I){const $=v.style.getPropertyValue(I);$&&n.setDataAttribute(v,I,$)}_resetElementAttributes(v,I){const $=O=>{const R=n.getDataAttribute(O,I);if(R===null){O.style.removeProperty(I);return}n.removeDataAttribute(O,I),O.style.setProperty(I,R)};this._applyManipulationCallback(v,$)}_applyManipulationCallback(v,I){if(a.isElement(v)){I(v);return}for(const $ of i.find(v,this._element))I($)}}return c})})(scrollbar);/*!
85
+ * Bootstrap modal.js v5.3.8 (https://getbootstrap.com/)
86
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
87
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
88
+ */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,selectorEngine.exports,backdrop.exports,componentFunctions.exports,focustrap.exports,util.exports,scrollbar.exports)})(commonjsGlobal,function(n,i,a,o,s,l,u,c){const d="modal",I=".bs.modal",$=".data-api",O="Escape",R=`hide${I}`,M=`hidePrevented${I}`,N=`hidden${I}`,V=`show${I}`,G=`shown${I}`,Y=`resize${I}`,X=`click.dismiss${I}`,q=`mousedown.dismiss${I}`,Z=`keydown.dismiss${I}`,ee=`click${I}${$}`,ne="modal-open",J="fade",te="show",Q="modal-static",oe=".modal.show",ue=".modal-dialog",fe=".modal-body",de='[data-bs-toggle="modal"]',ye={backdrop:!0,focus:!0,keyboard:!0},ge={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Te extends n{constructor(Ie,me){super(Ie,me),this._dialog=a.findOne(ue,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new c,this._addEventListeners()}static get Default(){return ye}static get DefaultType(){return ge}static get NAME(){return d}toggle(Ie){return this._isShown?this.hide():this.show(Ie)}show(Ie){this._isShown||this._isTransitioning||i.trigger(this._element,V,{relatedTarget:Ie}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(ne),this._adjustDialog(),this._backdrop.show(()=>this._showElement(Ie)))}hide(){!this._isShown||this._isTransitioning||i.trigger(this._element,R).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(te),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){i.off(window,I),i.off(this._dialog,I),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new o({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new l({trapElement:this._element})}_showElement(Ie){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const me=a.findOne(fe,this._dialog);me&&(me.scrollTop=0),u.reflow(this._element),this._element.classList.add(te);const De=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,i.trigger(this._element,G,{relatedTarget:Ie})};this._queueCallback(De,this._dialog,this._isAnimated())}_addEventListeners(){i.on(this._element,Z,Ie=>{if(Ie.key===O){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),i.on(window,Y,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),i.on(this._element,q,Ie=>{i.one(this._element,X,me=>{if(!(this._element!==Ie.target||this._element!==me.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(ne),this._resetAdjustments(),this._scrollBar.reset(),i.trigger(this._element,N)})}_isAnimated(){return this._element.classList.contains(J)}_triggerBackdropTransition(){if(i.trigger(this._element,M).defaultPrevented)return;const me=this._element.scrollHeight>document.documentElement.clientHeight,De=this._element.style.overflowY;De==="hidden"||this._element.classList.contains(Q)||(me||(this._element.style.overflowY="hidden"),this._element.classList.add(Q),this._queueCallback(()=>{this._element.classList.remove(Q),this._queueCallback(()=>{this._element.style.overflowY=De},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const Ie=this._element.scrollHeight>document.documentElement.clientHeight,me=this._scrollBar.getWidth(),De=me>0;if(De&&!Ie){const Ve=u.isRTL()?"paddingLeft":"paddingRight";this._element.style[Ve]=`${me}px`}if(!De&&Ie){const Ve=u.isRTL()?"paddingRight":"paddingLeft";this._element.style[Ve]=`${me}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(Ie,me){return this.each(function(){const De=Te.getOrCreateInstance(this,Ie);if(typeof Ie=="string"){if(typeof De[Ie]=="undefined")throw new TypeError(`No method named "${Ie}"`);De[Ie](me)}})}}return i.on(document,ee,de,function(Be){const Ie=a.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&Be.preventDefault(),i.one(Ie,V,Ve=>{Ve.defaultPrevented||i.one(Ie,N,()=>{u.isVisible(this)&&this.focus()})});const me=a.findOne(oe);me&&Te.getInstance(me).hide(),Te.getOrCreateInstance(Ie).toggle(this)}),s.enableDismissTrigger(Te),u.defineJQueryPlugin(Te),Te})})(modal);var Modal=modal.exports,offcanvas={exports:{}};/*!
89
+ * Bootstrap offcanvas.js v5.3.8 (https://getbootstrap.com/)
90
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
91
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
92
+ */(function(t,r){(function(n,i){t.exports=i(baseComponent.exports,eventHandler.exports,selectorEngine.exports,backdrop.exports,componentFunctions.exports,focustrap.exports,util.exports,scrollbar.exports)})(commonjsGlobal,function(n,i,a,o,s,l,u,c){const d="offcanvas",I=".bs.offcanvas",$=".data-api",O=`load${I}${$}`,R="Escape",M="show",N="showing",V="hiding",G="offcanvas-backdrop",Y=".offcanvas.show",X=`show${I}`,q=`shown${I}`,Z=`hide${I}`,ee=`hidePrevented${I}`,ne=`hidden${I}`,J=`resize${I}`,te=`click${I}${$}`,Q=`keydown.dismiss${I}`,oe='[data-bs-toggle="offcanvas"]',ue={backdrop:!0,keyboard:!0,scroll:!1},fe={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class de extends n{constructor(ge,Te){super(ge,Te),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ue}static get DefaultType(){return fe}static get NAME(){return d}toggle(ge){return this._isShown?this.hide():this.show(ge)}show(ge){if(this._isShown||i.trigger(this._element,X,{relatedTarget:ge}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new c().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(N);const Be=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(M),this._element.classList.remove(N),i.trigger(this._element,q,{relatedTarget:ge})};this._queueCallback(Be,this._element,!0)}hide(){if(!this._isShown||i.trigger(this._element,Z).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(V),this._backdrop.hide();const Te=()=>{this._element.classList.remove(M,V),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new c().reset(),i.trigger(this._element,ne)};this._queueCallback(Te,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const ge=()=>{if(this._config.backdrop==="static"){i.trigger(this._element,ee);return}this.hide()},Te=Boolean(this._config.backdrop);return new o({className:G,isVisible:Te,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:Te?ge:null})}_initializeFocusTrap(){return new l({trapElement:this._element})}_addEventListeners(){i.on(this._element,Q,ge=>{if(ge.key===R){if(this._config.keyboard){this.hide();return}i.trigger(this._element,ee)}})}static jQueryInterface(ge){return this.each(function(){const Te=de.getOrCreateInstance(this,ge);if(typeof ge=="string"){if(Te[ge]===void 0||ge.startsWith("_")||ge==="constructor")throw new TypeError(`No method named "${ge}"`);Te[ge](this)}})}}return i.on(document,te,oe,function(ye){const ge=a.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&ye.preventDefault(),u.isDisabled(this))return;i.one(ge,ne,()=>{u.isVisible(this)&&this.focus()});const Te=a.findOne(Y);Te&&Te!==ge&&de.getInstance(Te).hide(),de.getOrCreateInstance(ge).toggle(this)}),i.on(window,O,()=>{for(const ye of a.find(Y))de.getOrCreateInstance(ye).show()}),i.on(window,J,()=>{for(const ye of a.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(ye).position!=="fixed"&&de.getOrCreateInstance(ye).hide()}),s.enableDismissTrigger(de),u.defineJQueryPlugin(de),de})})(offcanvas);var Offcanvas=offcanvas.exports,popover={exports:{}},tooltip={exports:{}},sanitizer={exports:{}};/*!
93
+ * Bootstrap sanitizer.js v5.3.8 (https://getbootstrap.com/)
94
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
95
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
96
+ */(function(t,r){(function(n,i){i(r)})(commonjsGlobal,function(n){const a={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},o=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),s=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,l=(c,d)=>{const v=c.nodeName.toLowerCase();return d.includes(v)?o.has(v)?Boolean(s.test(c.nodeValue)):!0:d.filter(I=>I instanceof RegExp).some(I=>I.test(v))};function u(c,d,v){if(!c.length)return c;if(v&&typeof v=="function")return v(c);const $=new window.DOMParser().parseFromString(c,"text/html"),O=[].concat(...$.body.querySelectorAll("*"));for(const R of O){const M=R.nodeName.toLowerCase();if(!Object.keys(d).includes(M)){R.remove();continue}const N=[].concat(...R.attributes),V=[].concat(d["*"]||[],d[M]||[]);for(const G of N)l(G,V)||R.removeAttribute(G.nodeName)}return $.body.innerHTML}n.DefaultAllowlist=a,n.sanitizeHtml=u,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})})})(sanitizer,sanitizer.exports);var templateFactory={exports:{}};/*!
97
+ * Bootstrap template-factory.js v5.3.8 (https://getbootstrap.com/)
98
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
99
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
100
+ */(function(t,r){(function(n,i){t.exports=i(selectorEngine.exports,config.exports,sanitizer.exports,util.exports)})(commonjsGlobal,function(n,i,a,o){const s="TemplateFactory",l={allowList:a.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},u={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},c={entry:"(string|element|function|null)",selector:"(string|element)"};class d extends i{constructor(I){super(),this._config=this._getConfig(I)}static get Default(){return l}static get DefaultType(){return u}static get NAME(){return s}getContent(){return Object.values(this._config.content).map(I=>this._resolvePossibleFunction(I)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(I){return this._checkContent(I),this._config.content={...this._config.content,...I},this}toHtml(){const I=document.createElement("div");I.innerHTML=this._maybeSanitize(this._config.template);for(const[R,M]of Object.entries(this._config.content))this._setContent(I,M,R);const $=I.children[0],O=this._resolvePossibleFunction(this._config.extraClass);return O&&$.classList.add(...O.split(" ")),$}_typeCheckConfig(I){super._typeCheckConfig(I),this._checkContent(I.content)}_checkContent(I){for(const[$,O]of Object.entries(I))super._typeCheckConfig({selector:$,entry:O},c)}_setContent(I,$,O){const R=n.findOne(O,I);if(!!R){if($=this._resolvePossibleFunction($),!$){R.remove();return}if(o.isElement($)){this._putElementInTemplate(o.getElement($),R);return}if(this._config.html){R.innerHTML=this._maybeSanitize($);return}R.textContent=$}}_maybeSanitize(I){return this._config.sanitize?a.sanitizeHtml(I,this._config.allowList,this._config.sanitizeFn):I}_resolvePossibleFunction(I){return o.execute(I,[void 0,this])}_putElementInTemplate(I,$){if(this._config.html){$.innerHTML="",$.append(I);return}$.textContent=I.textContent}}return d})})(templateFactory);/*!
101
+ * Bootstrap tooltip.js v5.3.8 (https://getbootstrap.com/)
102
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
103
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
104
+ */(function(t,r){(function(n,i){t.exports=i(require$$0,baseComponent.exports,eventHandler.exports,manipulator.exports,util.exports,sanitizer.exports,templateFactory.exports)})(commonjsGlobal,function(n,i,a,o,s,l,u){function c(Ie){const me=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(Ie){for(const De in Ie)if(De!=="default"){const Ve=Object.getOwnPropertyDescriptor(Ie,De);Object.defineProperty(me,De,Ve.get?Ve:{enumerable:!0,get:()=>Ie[De]})}}return me.default=Ie,Object.freeze(me)}const d=c(n),v="tooltip",I=new Set(["sanitize","allowList","sanitizeFn"]),$="fade",O="modal",R="show",M=".tooltip-inner",N=`.${O}`,V="hide.bs.modal",G="hover",Y="focus",X="click",q="manual",Z="hide",ee="hidden",ne="show",J="shown",te="inserted",Q="click",oe="focusin",ue="focusout",fe="mouseenter",de="mouseleave",ye={AUTO:"auto",TOP:"top",RIGHT:s.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:s.isRTL()?"right":"left"},ge={allowList:l.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Te={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class Be extends i{constructor(me,De){if(typeof d=="undefined")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org/docs/v2/)");super(me,De),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return ge}static get DefaultType(){return Te}static get NAME(){return v}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),a.off(this._element.closest(N),V,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const me=a.trigger(this._element,this.constructor.eventName(ne)),Ve=(s.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(me.defaultPrevented||!Ve)return;this._disposePopper();const Ue=this._getTipElement();this._element.setAttribute("aria-describedby",Ue.getAttribute("id"));const{container:Ze}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(Ze.append(Ue),a.trigger(this._element,this.constructor.eventName(te))),this._popper=this._createPopper(Ue),Ue.classList.add(R),"ontouchstart"in document.documentElement)for(const at of[].concat(...document.body.children))a.on(at,"mouseover",s.noop);const ft=()=>{a.trigger(this._element,this.constructor.eventName(J)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(ft,this.tip,this._isAnimated())}hide(){if(!this._isShown()||a.trigger(this._element,this.constructor.eventName(Z)).defaultPrevented)return;if(this._getTipElement().classList.remove(R),"ontouchstart"in document.documentElement)for(const Ue of[].concat(...document.body.children))a.off(Ue,"mouseover",s.noop);this._activeTrigger[X]=!1,this._activeTrigger[Y]=!1,this._activeTrigger[G]=!1,this._isHovered=null;const Ve=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),a.trigger(this._element,this.constructor.eventName(ee)))};this._queueCallback(Ve,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(me){const De=this._getTemplateFactory(me).toHtml();if(!De)return null;De.classList.remove($,R),De.classList.add(`bs-${this.constructor.NAME}-auto`);const Ve=s.getUID(this.constructor.NAME).toString();return De.setAttribute("id",Ve),this._isAnimated()&&De.classList.add($),De}setContent(me){this._newContent=me,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(me){return this._templateFactory?this._templateFactory.changeContent(me):this._templateFactory=new u({...this._config,content:me,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[M]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(me){return this.constructor.getOrCreateInstance(me.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains($)}_isShown(){return this.tip&&this.tip.classList.contains(R)}_createPopper(me){const De=s.execute(this._config.placement,[this,me,this._element]),Ve=ye[De.toUpperCase()];return d.createPopper(this._element,me,this._getPopperConfig(Ve))}_getOffset(){const{offset:me}=this._config;return typeof me=="string"?me.split(",").map(De=>Number.parseInt(De,10)):typeof me=="function"?De=>me(De,this._element):me}_resolvePossibleFunction(me){return s.execute(me,[this._element,this._element])}_getPopperConfig(me){const De={placement:me,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:Ve=>{this._getTipElement().setAttribute("data-popper-placement",Ve.state.placement)}}]};return{...De,...s.execute(this._config.popperConfig,[void 0,De])}}_setListeners(){const me=this._config.trigger.split(" ");for(const De of me)if(De==="click")a.on(this._element,this.constructor.eventName(Q),this._config.selector,Ve=>{const Ue=this._initializeOnDelegatedTarget(Ve);Ue._activeTrigger[X]=!(Ue._isShown()&&Ue._activeTrigger[X]),Ue.toggle()});else if(De!==q){const Ve=De===G?this.constructor.eventName(fe):this.constructor.eventName(oe),Ue=De===G?this.constructor.eventName(de):this.constructor.eventName(ue);a.on(this._element,Ve,this._config.selector,Ze=>{const ft=this._initializeOnDelegatedTarget(Ze);ft._activeTrigger[Ze.type==="focusin"?Y:G]=!0,ft._enter()}),a.on(this._element,Ue,this._config.selector,Ze=>{const ft=this._initializeOnDelegatedTarget(Ze);ft._activeTrigger[Ze.type==="focusout"?Y:G]=ft._element.contains(Ze.relatedTarget),ft._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},a.on(this._element.closest(N),V,this._hideModalHandler)}_fixTitle(){const me=this._element.getAttribute("title");!me||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",me),this._element.setAttribute("data-bs-original-title",me),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(me,De){clearTimeout(this._timeout),this._timeout=setTimeout(me,De)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(me){const De=o.getDataAttributes(this._element);for(const Ve of Object.keys(De))I.has(Ve)&&delete De[Ve];return me={...De,...typeof me=="object"&&me?me:{}},me=this._mergeConfigObj(me),me=this._configAfterMerge(me),this._typeCheckConfig(me),me}_configAfterMerge(me){return me.container=me.container===!1?document.body:s.getElement(me.container),typeof me.delay=="number"&&(me.delay={show:me.delay,hide:me.delay}),typeof me.title=="number"&&(me.title=me.title.toString()),typeof me.content=="number"&&(me.content=me.content.toString()),me}_getDelegateConfig(){const me={};for(const[De,Ve]of Object.entries(this._config))this.constructor.Default[De]!==Ve&&(me[De]=Ve);return me.selector=!1,me.trigger="manual",me}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(me){return this.each(function(){const De=Be.getOrCreateInstance(this,me);if(typeof me=="string"){if(typeof De[me]=="undefined")throw new TypeError(`No method named "${me}"`);De[me]()}})}}return s.defineJQueryPlugin(Be),Be})})(tooltip);var Tooltip=tooltip.exports;/*!
105
+ * Bootstrap popover.js v5.3.8 (https://getbootstrap.com/)
106
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
107
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
108
+ */(function(t,r){(function(n,i){t.exports=i(tooltip.exports,util.exports)})(commonjsGlobal,function(n,i){const a="popover",o=".popover-header",s=".popover-body",l={...n.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},u={...n.DefaultType,content:"(null|string|element|function)"};class c extends n{static get Default(){return l}static get DefaultType(){return u}static get NAME(){return a}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[o]:this._getTitle(),[s]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(v){return this.each(function(){const I=c.getOrCreateInstance(this,v);if(typeof v=="string"){if(typeof I[v]=="undefined")throw new TypeError(`No method named "${v}"`);I[v]()}})}}return i.defineJQueryPlugin(c),c})})(popover);var Popover=popover.exports;function getID(t=""){return`__BVID__${Math.random().toString().slice(2,8)}___BV_${t}__`}function useId(t,r){return computed(()=>t||getID(r))}const _hoisted_1$J=["id"],injectionKey$5=Symbol(),_sfc_main$1p=defineComponent({__name:"BAccordion",props:{flush:{type:Boolean,default:!1},free:{type:Boolean,default:!1},id:{default:void 0}},setup(t){const r=t,n=useId(r.id,"accordion"),i=computed(()=>({"accordion-flush":r.flush}));return r.free||provide(injectionKey$5,n.value.toString()),(a,o)=>(openBlock(),createElementBlock("div",{id:unref(n),class:normalizeClass(["accordion",unref(i)])},[renderSlot(a.$slots,"default")],10,_hoisted_1$J))}});function useEventListener(t,r,n){onMounted(()=>{var i;(i=t==null?void 0:t.value)==null||i.addEventListener(r,n)}),onBeforeUnmount(()=>{var i;(i=t==null?void 0:t.value)==null||i.removeEventListener(r,n)})}const _sfc_main$1o=defineComponent({__name:"BCollapse",props:{accordion:null,id:{default:getID()},modelValue:{type:Boolean,default:!1},tag:{default:"div"},toggle:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["update:modelValue","show","shown","hide","hidden"],setup(t,{emit:r}){const n=t,i=ref(),a=ref(),o=computed(()=>({show:n.modelValue})),s=()=>r("update:modelValue",!1);return useEventListener(i,"show.bs.collapse",()=>{r("show"),r("update:modelValue",!0)}),useEventListener(i,"hide.bs.collapse",()=>{r("hide"),r("update:modelValue",!1)}),useEventListener(i,"shown.bs.collapse",()=>r("shown")),useEventListener(i,"hidden.bs.collapse",()=>r("hidden")),onMounted(()=>{var l;a.value=new Collapse(i.value,{parent:n.accordion?`#${n.accordion}`:void 0,toggle:n.toggle}),(n.visible||n.modelValue)&&(r("update:modelValue",!0),(l=a.value)==null||l.show())}),watch(()=>n.modelValue,l=>{var u,c;l?(u=a.value)==null||u.show():(c=a.value)==null||c.hide()}),watch(()=>n.visible,l=>{var u,c;l?(r("update:modelValue",!!l),(u=a.value)==null||u.show()):(r("update:modelValue",!!l),(c=a.value)==null||c.hide())}),(l,u)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,ref_key:"element",ref:i,class:normalizeClass(["collapse",unref(o)]),"data-bs-parent":t.accordion||null},{default:withCtx(()=>[renderSlot(l.$slots,"default",{visible:t.modelValue,close:s})]),_:3},8,["id","class","data-bs-parent"]))}}),RX_UNDERSCORE=/_/g,RX_LOWER_UPPER=/([a-z])([A-Z])/g,RX_FIRST_START_SPACE_WORD=/(\s|^)(\w)/,RX_SPACE_SPLIT=/\s+/,RX_HASH=/^#/,RX_HASH_ID=/^#[A-Za-z]+[\w\-:.]*$/,arrayIncludes=(t,r)=>t.indexOf(r)!==-1,from=(...t)=>Array.from([...t]),concat=(...t)=>Array.prototype.concat.apply([],t),HAS_WINDOW_SUPPORT=typeof window!="undefined",HAS_DOCUMENT_SUPPORT=typeof document!="undefined",HAS_NAVIGATOR_SUPPORT=typeof navigator!="undefined",IS_BROWSER=HAS_WINDOW_SUPPORT&&HAS_DOCUMENT_SUPPORT&&HAS_NAVIGATOR_SUPPORT,DOCUMENT=HAS_DOCUMENT_SUPPORT?document:{},RX_NUMBER=/^[0-9]*\.?[0-9]+$/,isBoolean=t=>toType(t)==="boolean",isObject$3=t=>t!==null&&typeof t=="object",isString$1=t=>typeof t=="string",isUndefined=t=>t===void 0,isNull=t=>t===null,isUndefinedOrNull=t=>isUndefined(t)||isNull(t),isNumeric$1=t=>RX_NUMBER.test(String(t)),isNumber$1=t=>typeof t=="number",toType=t=>typeof t,isFunction$1=t=>toType(t)==="function",isPlainObject=t=>Object.prototype.toString.call(t)==="[object Object]",isArray$1=t=>Array.isArray(t),toString=(t,r=2)=>isUndefinedOrNull(t)?"":isArray$1(t)||isPlainObject(t)&&t.toString===Object.prototype.toString?JSON.stringify(t,null,r):String(t),startCase=t=>t.replace(RX_UNDERSCORE," ").replace(RX_LOWER_UPPER,(r,n,i)=>`${n} ${i}`).replace(RX_FIRST_START_SPACE_WORD,(r,n,i)=>n+i.toUpperCase()),upperFirst=t=>(t=isString$1(t)?t.trim():String(t),t.charAt(0).toUpperCase()+t.slice(1)),isElement=t=>!!(t&&t.nodeType===Node.ELEMENT_NODE),getBCR=t=>isElement(t)?t.getBoundingClientRect():null,getActiveElement=(t=[])=>{const{activeElement:r}=document;return r&&!t.some(n=>n===r)?r:null},isActiveElement=t=>isElement(t)&&t===getActiveElement(),attemptFocus=(t,r={})=>{try{t.focus(r)}catch(n){console.error(n)}return isActiveElement(t)},getStyle$1=(t,r)=>r&&isElement(t)&&t.getAttribute(r)||null,isVisible=t=>{if(getStyle$1(t,"display")==="none")return!1;const r=getBCR(t);return!!(r&&r.height>0&&r.width>0)},isEmptySlot=(t,r)=>!t||t(r).filter(n=>n.type!==Comment).length<1,select=(t,r)=>(isElement(r)?r:DOCUMENT).querySelector(t)||null,selectAll=(t,r)=>from((isElement(r)?r:DOCUMENT).querySelectorAll(t)),getAttr=(t,r)=>r&&isElement(t)?t.getAttribute(r):null,setAttr=(t,r,n)=>{r&&isElement(t)&&t.setAttribute(r,n)},removeAttr=(t,r)=>{r&&isElement(t)&&t.removeAttribute(r)},isTag=(t,r)=>toString(t).toLowerCase()===toString(r).toLowerCase(),requestAF=HAS_WINDOW_SUPPORT?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||(t=>setTimeout(t,16)):t=>setTimeout(t,0);function resolveToggleType(t){if(t.classList.contains("offcanvas"))return"offcanvas";if(t.classList.contains("collapse"))return"collapse";throw Error("Couldn't resolve toggle type")}const getTargets=(t,r)=>{const{modifiers:n,arg:i,value:a}=t,o=Object.keys(n||{}),s=isString$1(a)?a.split(RX_SPACE_SPLIT):a;if(isTag(r.tagName,"a")){const l=getAttr(r,"href")||"";RX_HASH_ID.test(l)&&o.push(l.replace(RX_HASH,""))}return concat(i,s).forEach(l=>isString$1(l)&&o.push(l)),o.filter((l,u,c)=>l&&c.indexOf(l)===u)},BToggle={mounted(t,r){const n=getTargets(r,t),i=[];let a="data-bs-target";t.tagName==="a"&&(a="href");for(let o=0;o<n.length;o++){const s=n[o],l=document.getElementById(s);l&&(t.setAttribute("data-bs-toggle",resolveToggleType(l)),i.push(`#${s}`))}i.length>0&&t.setAttribute(a,i.join(","))}},_hoisted_1$I={class:"accordion-item"},_hoisted_2$n=["id"],_hoisted_3$9=["aria-expanded","aria-controls"],_hoisted_4$6={class:"accordion-body"},_sfc_main$1n=defineComponent({__name:"BAccordionItem",props:{id:null,title:null,visible:{type:Boolean,default:!1}},setup(t){const n=useId(t.id,"accordion_item"),i=inject(injectionKey$5,"");return(a,o)=>(openBlock(),createElementBlock("div",_hoisted_1$I,[createBaseVNode("h2",{id:`${unref(n)}heading`,class:"accordion-header"},[withDirectives((openBlock(),createElementBlock("button",{class:normalizeClass(["accordion-button",{collapsed:!t.visible}]),type:"button","aria-expanded":t.visible?"true":"false","aria-controls":unref(n)},[renderSlot(a.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])],10,_hoisted_3$9)),[[unref(BToggle),void 0,unref(n)]])],8,_hoisted_2$n),createVNode(_sfc_main$1o,{id:unref(n),class:"accordion-collapse",visible:t.visible,accordion:unref(i),"aria-labelledby":`heading${unref(n)}`},{default:withCtx(()=>[createBaseVNode("div",_hoisted_4$6,[renderSlot(a.$slots,"default")])]),_:3},8,["id","visible","accordion","aria-labelledby"])]))}}),toInteger=(t,r=NaN)=>Number.isInteger(t)?t:r,stringToInteger=(t,r=NaN)=>{const n=parseInt(t,10);return isNaN(n)?r:n},toFloat=(t,r=NaN)=>{const n=parseFloat(t.toString());return isNaN(n)?r:n},_hoisted_1$H=["aria-label"],_sfc_main$1m=defineComponent({__name:"BAlert",props:{dismissLabel:{default:"Close"},dismissible:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},modelValue:{type:[Boolean,Number],default:!1},show:{type:Boolean,default:!1},variant:{default:"info"}},emits:["dismissed","dismiss-count-down","update:modelValue"],setup(t,{emit:r}){const n=t,i=ref(),a=ref(),o=computed(()=>({[`alert-${n.variant}`]:n.variant,show:n.modelValue,"alert-dismissible":n.dismissible,fade:n.modelValue}));let s;const l=O=>{if(typeof O=="boolean")return 0;const R=toInteger(O,0);return R>0?R:0},u=()=>{s!==void 0&&(clearTimeout(s),s=void 0)},c=ref(l(n.modelValue)),d=computed(()=>!!n.modelValue||n.show);onBeforeUnmount(()=>{var O;u(),(O=a.value)==null||O.dispose(),a.value=void 0});const v=computed(()=>n.modelValue===!0?!0:n.modelValue===!1||toInteger(n.modelValue,0)<1?!1:!!n.modelValue),I=()=>{c.value=l(n.modelValue),(v.value||n.show)&&!a.value&&(a.value=new Alert(i.value))},$=()=>{typeof n.modelValue=="boolean"?r("update:modelValue",!1):r("update:modelValue",0),r("dismissed")};return watch(()=>n.modelValue,I),watch(()=>n.show,I),watch(c,O=>{u(),typeof n.modelValue!="boolean"&&(r("dismiss-count-down",O),O===0&&n.modelValue>0&&r("dismissed"),n.modelValue!==O&&r("update:modelValue",O),O>0&&(s=setTimeout(()=>{c.value--},1e3)))}),(O,R)=>unref(d)?(openBlock(),createElementBlock("div",{key:0,ref_key:"element",ref:i,class:normalizeClass(["alert",unref(o)]),role:"alert"},[renderSlot(O.$slots,"default"),t.dismissible?(openBlock(),createElementBlock("button",{key:0,type:"button",class:"btn-close","data-bs-dismiss":"alert","aria-label":t.dismissLabel,onClick:$},null,8,_hoisted_1$H)):createCommentVNode("",!0)],2)):createCommentVNode("",!0)}}),mathMin$6=Math.min,mathMax$6=Math.max,injectionKey$4=Symbol(),_sfc_main$1l=defineComponent({__name:"BAvatarGroup",props:{overlap:{default:.3},rounded:{type:[Boolean,String],default:!1},size:null,square:{type:Boolean,default:!1},tag:{default:"div"},variant:null},setup(t){const r=t,n=computed(()=>computeSize(r.size)),i=s=>isString$1(s)&&isNumeric$1(s)?toFloat(s,0):s||0,a=computed(()=>mathMin$6(mathMax$6(i(r.overlap),0),1)/2),o=computed(()=>{let{value:s}=n;return s=s?`calc(${s} * ${a.value})`:null,s?{paddingLeft:s,paddingRight:s}:{}});return provide(injectionKey$4,{overlapScale:a,size:r.size,square:r.square,rounded:r.rounded,variant:r.variant}),(s,l)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"b-avatar-group",role:"group"},{default:withCtx(()=>[createBaseVNode("div",{class:"b-avatar-group-inner",style:normalizeStyle$1(unref(o))},[renderSlot(s.$slots,"default")],4)]),_:3}))}}),_hoisted_1$G={key:0,class:"b-avatar-custom"},_hoisted_2$m={key:1,class:"b-avatar-img"},_hoisted_3$8=["src","alt"],computeSize=t=>{const r=isString$1(t)&&isNumeric$1(t)?toFloat(t,0):t;return isNumber$1(r)?`${r}px`:r||null},_sfc_main$1k=defineComponent({__name:"BAvatar",props:{alt:{default:"avatar"},ariaLabel:null,badge:{type:[Boolean,String],default:!1},badgeLeft:{type:Boolean,default:!1},badgeOffset:null,badgeTop:{type:Boolean,default:!1},badgeVariant:{default:"primary"},button:{type:Boolean,default:!1},buttonType:{default:"button"},disabled:{type:Boolean,default:!1},icon:null,rounded:{type:[Boolean,String],default:"circle"},size:null,square:{type:Boolean,default:!1},src:null,text:null,textVariant:{default:void 0},variant:{default:"secondary"}},emits:["click","img-error"],setup(t,{emit:r}){const n=t,i=useSlots(),a=["sm",null,"lg"],o=.4,s=o*.7,l=inject(injectionKey$4,null),u=Q=>{const oe=Q;return oe==="light"||oe==="warning"?"dark":"light"},c=computed(()=>!isEmptySlot(i.default)),d=computed(()=>!isEmptySlot(i.badge)),v=computed(()=>n.badge||n.badge===""||d.value),I=computed(()=>l!=null&&l.size?l.size:computeSize(n.size)),$=computed(()=>l!=null&&l.variant?l.variant:n.variant),O=computed(()=>l!=null&&l.rounded?l.rounded:n.rounded),R=computed(()=>({"aria-label":n.ariaLabel||null,disabled:n.disabled||null})),M=computed(()=>({[`bg-${n.badgeVariant}`]:n.badgeVariant})),N=computed(()=>n.badge===!0?"":n.badge),V=computed(()=>`text-${u(n.badgeVariant)}`),G=computed(()=>({[`b-avatar-${n.size}`]:n.size&&a.indexOf(computeSize(n.size))!==-1,[`bg-${$.value}`]:$.value,badge:!n.button&&$.value&&c.value,rounded:O.value===""||O.value===!0,["rounded-circle"]:!n.square&&O.value==="circle",["rounded-0"]:n.square||O.value==="0",["rounded-1"]:!n.square&&O.value==="sm",["rounded-3"]:!n.square&&O.value==="lg",["rounded-top"]:!n.square&&O.value==="top",["rounded-bottom"]:!n.square&&O.value==="bottom",["rounded-start"]:!n.square&&O.value==="left",["rounded-end"]:!n.square&&O.value==="right",btn:n.button,[`btn-${$.value}`]:n.button?$.value:null})),Y=computed(()=>`text-${n.textVariant||u($.value)}`),X=computed(()=>{const Q=n.badgeOffset||"0px";return{fontSize:(a.indexOf(I.value||null)===-1?`calc(${I.value} * ${s})`:"")||"",top:n.badgeTop?Q:"",bottom:n.badgeTop?"":Q,left:n.badgeLeft?Q:"",right:n.badgeLeft?"":Q}}),q=computed(()=>{const Q=a.indexOf(I.value||null)===-1?`calc(${I.value} * ${o})`:null;return Q?{fontSize:Q}:{}}),Z=computed(()=>{var Q;const oe=((Q=l==null?void 0:l.overlapScale)==null?void 0:Q.value)||0,ue=I.value&&oe?`calc(${I.value} * -${oe})`:null;return ue?{marginLeft:ue,marginRight:ue}:{}}),ee=computed(()=>n.button?n.buttonType:"span"),ne=computed(()=>({...Z.value,width:I.value,height:I.value})),J=Q=>{!n.disabled&&n.button&&r("click",Q)},te=Q=>r("img-error",Q);return(Q,oe)=>(openBlock(),createBlock(resolveDynamicComponent(unref(ee)),mergeProps({class:["b-avatar",unref(G)],style:unref(ne)},unref(R),{onClick:J}),{default:withCtx(()=>[unref(c)?(openBlock(),createElementBlock("span",_hoisted_1$G,[renderSlot(Q.$slots,"default")])):t.src?(openBlock(),createElementBlock("span",_hoisted_2$m,[createBaseVNode("img",{src:t.src,alt:t.alt,onError:te},null,40,_hoisted_3$8)])):t.text?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(["b-avatar-text",unref(Y)]),style:normalizeStyle$1(unref(q))},toDisplayString(t.text),7)):createCommentVNode("",!0),unref(v)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(["b-avatar-badge",unref(M)]),style:normalizeStyle$1(unref(X))},[unref(d)?renderSlot(Q.$slots,"badge",{key:0}):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(V))},toDisplayString(unref(N)),3))],6)):createCommentVNode("",!0)]),_:3},16,["class","style"]))}}),assign=(t,...r)=>Object.assign(t,...r),defineProperties=(t,r)=>Object.defineProperties(t,r),defineProperty=(t,r,n)=>Object.defineProperty(t,r,n),omit=(t,r)=>Object.keys(t).filter(n=>r.indexOf(n)===-1).reduce((n,i)=>({...n,[i]:t[i]}),{}),readonlyDescriptor=()=>({enumerable:!0,configurable:!1,writable:!1});var _export_sfc$1=(t,r)=>{const n=t.__vccOpts||t;for(const[i,a]of r)n[i]=a;return n};const BLINK_PROPS={active:{type:Boolean,default:!1},activeClass:{type:String,default:"router-link-active"},append:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},event:{type:[String,Array],default:"click"},exact:{type:Boolean,default:!1},exactActiveClass:{type:String,default:"router-link-exact-active"},href:{type:String},rel:{type:String,default:null},replace:{type:Boolean,default:!1},routerComponentName:{type:String,default:"router-link"},routerTag:{type:String,default:"a"},target:{type:String,default:"_self"},to:{type:[String,Object],default:null}},_sfc_main$1j=defineComponent({name:"BLink",props:BLINK_PROPS,emits:["click"],setup(t,{emit:r,attrs:n}){const i=getCurrentInstance(),a=ref(null),o=computed(()=>{const c=t.routerComponentName.split("-").map(v=>v.charAt(0).toUpperCase()+v.slice(1)).join("");return!((i==null?void 0:i.appContext.app.component(c))!==void 0)||t.disabled||!t.to?"a":t.routerComponentName}),s=computed(()=>{const c="#";if(t.href)return t.href;if(typeof t.to=="string")return t.to||c;const d=t.to;if(Object.prototype.toString.call(d)==="[object Object]"&&(d.path||d.query||d.hash)){const v=d.path||"",I=d.query?`?${Object.keys(d.query).map(O=>`${O}=${d.query[O]}`).join("=")}`:"",$=!d.hash||d.hash.charAt(0)==="#"?d.hash||"":`#${d.hash}`;return`${v}${I}${$}`||c}return c}),l=computed(()=>({to:t.to,href:s.value,target:t.target,rel:t.target==="_blank"&&t.rel===null?"noopener":t.rel||null,tabindex:t.disabled?"-1":typeof n.tabindex=="undefined"?null:n.tabindex,"aria-disabled":t.disabled?"true":null}));return{tag:o,routerAttr:l,link:a,clicked:c=>{if(t.disabled){c.preventDefault(),c.stopImmediatePropagation();return}r("click",c)}}}});function _sfc_render$b(t,r,n,i,a,o){return t.tag==="router-link"?(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({key:0},t.routerAttr,{custom:""}),{default:withCtx(({href:s,navigate:l,isActive:u,isExactActive:c})=>[(openBlock(),createBlock(resolveDynamicComponent(t.routerTag),mergeProps({ref:"link",href:s,class:[u&&t.activeClass,c&&t.exactActiveClass]},t.$attrs,{onClick:l}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:2},1040,["href","class","onClick"]))]),_:3},16)):(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({key:1,ref:"link",class:{active:t.active,disabled:t.disabled}},t.routerAttr,{onClick:t.clicked}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["class","onClick"]))}var BLink=_export_sfc$1(_sfc_main$1j,[["render",_sfc_render$b]]);const isLink=t=>!!(t.href||t.to),suffixPropName=(t,r)=>r+(t?upperFirst(t):""),pluckProps=(t,r,n=i=>i)=>(isArray$1(t)?t.slice():Object.keys(t)).reduce((i,a)=>(i[n(a)]=r[a],i),{}),linkProps=omit(BLINK_PROPS,["event","routerTag"]),_sfc_main$1i=defineComponent({name:"BBadge",props:{pill:{type:Boolean,default:!1},tag:{type:String,default:"span"},variant:{type:String,default:"secondary"},textIndicator:{type:Boolean,default:!1},dotIndicator:{type:Boolean,default:!1},...linkProps},setup(t){const r=computed(()=>isLink(t)),n=computed(()=>r.value?"b-link":t.tag);return{classes:computed(()=>({[`bg-${t.variant}`]:t.variant,active:t.active,disabled:t.disabled,"text-dark":["warning","info","light"].includes(t.variant),"rounded-pill":t.pill,"position-absolute top-0 start-100 translate-middle":t.textIndicator||t.dotIndicator,"p-2 border border-light rounded-circle":t.dotIndicator,"text-decoration-none":r})),props:r.value?pluckProps(linkProps,t):{},computedTag:n}}});function _sfc_render$a(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.computedTag),mergeProps({class:["badge",t.classes]},t.props),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["class"])}var BBadge=_export_sfc$1(_sfc_main$1i,[["render",_sfc_render$a]]);const BREADCRUMB_SYMBOL=Symbol(),BREADCRUMB_OBJECT={items:reactive([]),reset(){this.items=reactive([])}};function createBreadcrumb(t){t.provide(BREADCRUMB_SYMBOL,BREADCRUMB_OBJECT)}function useBreadcrumb(){const t=inject(BREADCRUMB_SYMBOL);return t||BREADCRUMB_OBJECT}const _sfc_main$1h=defineComponent({name:"BBreadcrumbItem",props:{...omit(BLINK_PROPS,["event","routerTag"]),active:{type:Boolean,default:!1},ariaCurrent:{type:String,default:"location"},disabled:{type:Boolean,default:!1},text:{type:String,required:!1}},emits:["click"],setup(t,{emit:r}){const n=computed(()=>({active:t.active})),i=computed(()=>t.active?"span":"b-link"),a=computed(()=>({"aria-current":t.active?t.ariaCurrent:void 0}));return{liClasses:n,computedTag:i,computedAriaCurrent:a,clicked:s=>{if(t.disabled||t.active){s.preventDefault(),s.stopImmediatePropagation();return}t.disabled||r("click",s)}}}});function _sfc_render$9(t,r,n,i,a,o){return openBlock(),createElementBlock("li",{class:normalizeClass(["breadcrumb-item",t.liClasses])},[(openBlock(),createBlock(resolveDynamicComponent(t.computedTag),mergeProps({"aria-current":t.computedAriaCurrent},t.$props,{onClick:t.clicked}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["aria-current","onClick"]))],2)}var BBreadcrumbItem=_export_sfc$1(_sfc_main$1h,[["render",_sfc_render$9]]);const _hoisted_1$F={"aria-label":"breadcrumb"},_hoisted_2$l={class:"breadcrumb"},_sfc_main$1g=defineComponent({__name:"BBreadcrumb",props:{items:null},setup(t){const r=t,n=useBreadcrumb(),i=computed(()=>{const a=r.items||(n==null?void 0:n.items)||[];let o=!1;return a.map((l,u)=>(typeof l=="string"&&(l={text:l},u<a.length-1&&(l.href="#")),l.active&&(o=!0),!l.active&&!o&&(l.active=u+1===a.length),l))});return(a,o)=>(openBlock(),createElementBlock("nav",_hoisted_1$F,[createBaseVNode("ol",_hoisted_2$l,[renderSlot(a.$slots,"prepend"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(i),(s,l)=>(openBlock(),createBlock(BBreadcrumbItem,mergeProps({key:l},s),{default:withCtx(()=>[createTextVNode(toDisplayString(s.text),1)]),_:2},1040))),128)),renderSlot(a.$slots,"default"),renderSlot(a.$slots,"append")])]))}}),_sfc_main$1f=defineComponent({name:"BButton",props:{...BLINK_PROPS,active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:{type:String,required:!1},pill:{type:Boolean,default:!1},pressed:{type:Boolean,default:null},rel:{type:String,default:null},size:{type:String},squared:{type:Boolean,default:!1},tag:{type:String,default:"button"},target:{type:String,default:"_self"},type:{type:String,default:"button"},variant:{type:String,default:"secondary"}},emits:["click","update:pressed"],setup(t,{emit:r}){const n=t.pressed!==null,i=t.tag==="button"&&!t.href&&!t.to,a=!!(t.href||t.to),o=!!t.to,s=t.href?!1:!i,l=computed(()=>({[`btn-${t.variant}`]:t.variant,[`btn-${t.size}`]:t.size,active:t.active||t.pressed,"rounded-pill":t.pill,"rounded-0":t.squared,disabled:t.disabled})),u=computed(()=>({"aria-disabled":s?String(t.disabled):null,"aria-pressed":n?String(t.pressed):null,autocomplete:n?"off":null,disabled:i?t.disabled:null,href:t.href,rel:a?t.rel:null,role:s||a?"button":null,target:a?t.target:null,type:i?t.type:null,to:i?null:t.to,append:a?t.append:null,activeClass:o?t.activeClass:null,event:o?t.event:null,exact:o?t.exact:null,exactActiveClass:o?t.exactActiveClass:null,replace:o?t.replace:null,routerComponentName:o?t.routerComponentName:null,routerTag:o?t.routerTag:null})),c=computed(()=>o?"b-link":t.href?"a":t.tag);return{classes:l,attrs:u,computedTag:c,clicked:v=>{if(t.disabled){v.preventDefault(),v.stopPropagation();return}r("click",v),n&&r("update:pressed",!t.pressed)}}}});function _sfc_render$8(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.computedTag),mergeProps({class:["btn",t.classes]},t.attrs,{onClick:t.clicked}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["class","onClick"])}var BButton=_export_sfc$1(_sfc_main$1f,[["render",_sfc_render$8]]);const _sfc_main$1e=defineComponent({__name:"BButtonGroup",props:{ariaRole:{default:"group"},size:null,tag:{default:"div"},vertical:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"btn-group":!r.vertical,"btn-group-vertical":r.vertical,[`btn-group-${r.size}`]:r.size}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(unref(n)),role:"group","aria-role":t.ariaRole},{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3},8,["class","aria-role"]))}}),_hoisted_1$E=["aria-label"],_sfc_main$1d=defineComponent({__name:"BButtonToolbar",props:{ariaRole:{default:"group"},justify:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"justify-content-between":r.justify}));return(i,a)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(n),"btn-toolbar"]),role:"toolbar","aria-label":t.ariaRole},[renderSlot(i.$slots,"default")],10,_hoisted_1$E))}}),_hoisted_1$D=["innerHTML"],_hoisted_2$k=["innerHTML"],_sfc_main$1c=defineComponent({__name:"BCard",props:{align:null,bgVariant:null,bodyBgVariant:null,bodyClass:null,bodyTag:{default:"div"},bodyTextVariant:null,borderVariant:null,footer:null,footerBgVariant:null,footerBorderVariant:null,footerClass:null,footerHtml:{default:""},footerTag:{default:"div"},footerTextVariant:null,header:null,headerBgVariant:null,headerBorderVariant:null,headerClass:null,headerHtml:{default:""},headerTag:{default:"div"},headerTextVariant:null,imgAlt:null,imgBottom:{type:Boolean,default:!1},imgEnd:{type:Boolean,default:!1},imgHeight:null,imgLeft:{type:Boolean,default:!1},imgRight:{type:Boolean,default:!1},imgSrc:null,imgStart:{type:Boolean,default:!1},imgTop:{type:Boolean,default:!1},imgWidth:null,noBody:{type:Boolean,default:!1},overlay:{type:Boolean,default:!1},subTitle:null,subTitleTag:{default:"h6"},subTitleTextVariant:{default:"muted"},tag:{default:"div"},textVariant:null,title:null,titleTag:{default:"h4"}},setup(t){const r=t,n=computed(()=>({[`text-${r.align}`]:r.align,[`text-${r.textVariant}`]:r.textVariant,[`bg-${r.bgVariant}`]:r.bgVariant,[`border-${r.borderVariant}`]:r.borderVariant,"flex-row":r.imgLeft||r.imgStart,"flex-row-reverse":r.imgEnd||r.imgRight})),i=computed(()=>({"card-body":!r.noBody,"card-img-overlay":r.overlay,[`bg-${r.bodyBgVariant}`]:r.bodyBgVariant,[`text-${r.bodyTextVariant}`]:r.bodyTextVariant})),a=computed(()=>({[`bg-${r.footerBgVariant}`]:r.footerBgVariant,[`border-${r.footerBorderVariant}`]:r.footerBorderVariant,[`text-${r.footerTextVariant}`]:r.footerTextVariant})),o=computed(()=>({[`bg-${r.headerBgVariant}`]:r.headerBgVariant,[`border-${r.headerBorderVariant}`]:r.headerBorderVariant,[`text-${r.headerTextVariant}`]:r.headerTextVariant})),s=computed(()=>({"card-img":!r.imgEnd&&!r.imgRight&&!r.imgStart&&!r.imgLeft&&!r.imgTop&&!r.imgTop,"card-img-right":r.imgEnd||r.imgRight,"card-img-left":r.imgStart||r.imgLeft,"card-img-top":r.imgTop,"card-img-bottom":r.imgBottom})),l=computed(()=>({src:r.imgSrc,alt:r.imgAlt,height:r.imgHeight,width:r.imgWidth})),u=computed(()=>({[`text-${r.subTitleTextVariant}`]:r.subTitleTextVariant}));return(c,d)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(["card",unref(n)])},{default:withCtx(()=>[t.imgSrc&&!t.imgBottom?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(l),{class:unref(s)}),null,16)):createCommentVNode("",!0),t.header||c.$slots.header||t.headerHtml?(openBlock(),createBlock(resolveDynamicComponent(t.headerTag),{key:1,class:normalizeClass(["card-header",[t.headerClass,unref(o)]])},{default:withCtx(()=>[t.headerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.headerHtml},null,8,_hoisted_1$D)):renderSlot(c.$slots,"header",{key:1},()=>[createTextVNode(toDisplayString(t.header),1)])]),_:3},8,["class"])):createCommentVNode("",!0),t.noBody?createCommentVNode("",!0):(openBlock(),createBlock(resolveDynamicComponent(t.bodyTag),{key:2,class:normalizeClass([t.bodyClass,unref(i)])},{default:withCtx(()=>[t.title&&!t.noBody?(openBlock(),createBlock(resolveDynamicComponent(t.titleTag),{key:0,class:"card-title"},{default:withCtx(()=>[createTextVNode(toDisplayString(t.title),1)]),_:1})):createCommentVNode("",!0),t.subTitle&&!t.noBody?(openBlock(),createBlock(resolveDynamicComponent(t.subTitleTag),{key:1,class:normalizeClass(["card-subtitle mb-2",unref(u)])},{default:withCtx(()=>[createTextVNode(toDisplayString(t.subTitle),1)]),_:1},8,["class"])):createCommentVNode("",!0),renderSlot(c.$slots,"default")]),_:3},8,["class"])),t.noBody?renderSlot(c.$slots,"default",{key:3}):createCommentVNode("",!0),t.footer||c.$slots.footer||t.footerHtml?(openBlock(),createBlock(resolveDynamicComponent(t.footerTag),{key:4,class:normalizeClass(["card-footer",[t.footerClass,unref(a)]])},{default:withCtx(()=>[t.footerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.footerHtml},null,8,_hoisted_2$k)):renderSlot(c.$slots,"footer",{key:1},()=>[createTextVNode(toDisplayString(t.footer),1)])]),_:3},8,["class"])):createCommentVNode("",!0),t.imgSrc&&t.imgBottom?(openBlock(),createElementBlock("img",mergeProps({key:5},unref(l),{class:unref(s)}),null,16)):createCommentVNode("",!0)]),_:3},8,["class"]))}}),_sfc_main$1b=defineComponent({__name:"BCardTitle",props:{title:null,titleTag:{default:"h4"}},setup(t){return(r,n)=>(openBlock(),createBlock(resolveDynamicComponent(t.titleTag),{class:"card-title"},{default:withCtx(()=>[renderSlot(r.$slots,"default",{},()=>[createTextVNode(toDisplayString(t.title),1)])]),_:3}))}}),_sfc_main$1a=defineComponent({__name:"BCardSubTitle",props:{subTitle:null,subTitleTag:{default:"h6"},subTitleTextVariant:{default:"muted"}},setup(t){const r=t,n=computed(()=>({[`text-${r.subTitleTextVariant}`]:r.subTitleTextVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.subTitleTag),{class:normalizeClass(["card-subtitle mb-2",unref(n)])},{default:withCtx(()=>[renderSlot(i.$slots,"default",{},()=>[createTextVNode(toDisplayString(t.subTitle),1)])]),_:3},8,["class"]))}}),_sfc_main$19=defineComponent({__name:"BCardBody",props:{bodyBgVariant:null,bodyClass:null,bodyTag:{default:"div"},bodyTextVariant:null,overlay:{type:Boolean,default:!1},subTitle:null,subTitleTag:{default:"h4"},subTitleTextVariant:null,title:null,titleTag:{default:"h4"}},setup(t){const r=t,n=computed(()=>({[`text-${r.bodyTextVariant}`]:r.bodyTextVariant,[`bg-${r.bodyBgVariant}`]:r.bodyBgVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.bodyTag),{class:normalizeClass(["card-body",unref(n)])},{default:withCtx(()=>[t.title?(openBlock(),createBlock(_sfc_main$1b,{key:0,"title-tag":t.titleTag,title:t.title},null,8,["title-tag","title"])):createCommentVNode("",!0),t.subTitle?(openBlock(),createBlock(_sfc_main$1a,{key:1,"sub-title-tag":t.subTitleTag,"sub-title":t.subTitle,"sub-title-text-variant":t.subTitleTextVariant},null,8,["sub-title-tag","sub-title","sub-title-text-variant"])):createCommentVNode("",!0),renderSlot(i.$slots,"default")]),_:3},8,["class"]))}}),_hoisted_1$C=["innerHTML"],_sfc_main$18=defineComponent({__name:"BCardFooter",props:{footer:null,footerBgVariant:null,footerBorderVariant:null,footerClass:null,footerHtml:null,footerTag:{default:"div"},footerTextVariant:null},setup(t){const r=t,n=computed(()=>({[`text-${r.footerTextVariant}`]:r.footerTextVariant,[`bg-${r.footerBgVariant}`]:r.footerBgVariant,[`border-${r.footerBorderVariant}`]:r.footerBorderVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.footerTag),{class:normalizeClass(["card-footer",[t.footerClass,unref(n)]])},{default:withCtx(()=>[t.footerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.footerHtml},null,8,_hoisted_1$C)):renderSlot(i.$slots,"default",{key:1},()=>[createTextVNode(toDisplayString(t.footer),1)])]),_:3},8,["class"]))}}),_sfc_main$17=defineComponent({__name:"BCardGroup",props:{columns:{type:Boolean,default:!1},deck:{type:Boolean,default:!1},tag:{default:"div"}},setup(t){const r=t,n=computed(()=>r.deck?"card-deck":r.columns?"card-columns":"card-group");return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(unref(n))},{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3},8,["class"]))}}),_hoisted_1$B=["innerHTML"],_sfc_main$16=defineComponent({__name:"BCardHeader",props:{header:null,headerBgVariant:null,headerBorderVariant:null,headerClass:null,headerHtml:null,headerTag:{default:"div"},headerTextVariant:null},setup(t){const r=t,n=computed(()=>({[`text-${r.headerTextVariant}`]:r.headerTextVariant,[`bg-${r.headerBgVariant}`]:r.headerBgVariant,[`border-${r.headerBorderVariant}`]:r.headerBorderVariant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.headerTag),{class:normalizeClass(["card-header",[t.headerClass,unref(n)]])},{default:withCtx(()=>[t.headerHtml?(openBlock(),createElementBlock("div",{key:0,innerHTML:t.headerHtml},null,8,_hoisted_1$B)):renderSlot(i.$slots,"default",{key:1},()=>[createTextVNode(toDisplayString(t.header),1)])]),_:3},8,["class"]))}}),_sfc_main$15=defineComponent({__name:"BCardImg",props:{alt:{default:void 0},bottom:{type:Boolean,default:!1},end:{type:Boolean,default:!1},height:null,left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},src:null,start:{type:Boolean,default:!1},top:{type:Boolean,default:!1},width:null},setup(t){const r=t,n=computed(()=>({src:r.src,alt:r.alt,width:(typeof r.width=="number"?r.width:parseInt(r.width,10))||void 0,height:(typeof r.height=="number"?r.height:parseInt(r.height,10))||void 0})),i=computed(()=>{const a=r.left?"float-left":r.right?"float-right":"";let o="card-img";return r.top?o+="-top":r.right||r.end?o+="-right":r.bottom?o+="-bottom":(r.left||r.start)&&(o+="-left"),{[a]:!!a,[o]:!0}});return(a,o)=>(openBlock(),createElementBlock("img",mergeProps({class:unref(i)},unref(n)),null,16))}}),_sfc_main$14={},_hoisted_1$A={class:"card-text"};function _sfc_render$7(t,r){return openBlock(),createElementBlock("p",_hoisted_1$A,[renderSlot(t.$slots,"default")])}var BCardText=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$7]]);const _hoisted_1$z=["id"],_hoisted_2$j={key:0,class:"carousel-indicators"},_hoisted_3$7=["data-bs-target","data-bs-slide-to","aria-label"],_hoisted_4$5={class:"carousel-inner"},_hoisted_5$5=["data-bs-target"],_hoisted_6$3=createBaseVNode("span",{class:"carousel-control-prev-icon","aria-hidden":"true"},null,-1),_hoisted_7$2=createBaseVNode("span",{class:"visually-hidden"},"Previous",-1),_hoisted_8$2=[_hoisted_6$3,_hoisted_7$2],_hoisted_9$2=["data-bs-target"],_hoisted_10$2=createBaseVNode("span",{class:"carousel-control-next-icon","aria-hidden":"true"},null,-1),_hoisted_11$2=createBaseVNode("span",{class:"visually-hidden"},"Next",-1),_hoisted_12$2=[_hoisted_10$2,_hoisted_11$2],injectionKey$3=Symbol(),_sfc_main$13=defineComponent({__name:"BCarousel",props:{id:null,imgHeight:null,imgWidth:null,background:null,modelValue:{default:0},controls:{type:Boolean,default:!1},indicators:{type:Boolean,default:!1},interval:{default:5e3},noTouch:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1}},emits:["sliding-start","sliding-end"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(),o=ref(),s=useId(n.id,"accordion"),l=ref([]);return useEventListener(a,"slide.bs.carousel",u=>r("sliding-start",u)),useEventListener(a,"slid.bs.carousel",u=>r("sliding-end",u)),onMounted(()=>{o.value=new Carousel(a.value,{wrap:!n.noTouch,interval:n.interval,touch:!n.noTouch}),i.default&&(l.value=i.default().filter(u=>{var c;return((c=u.type)==null?void 0:c.name)==="BCarouselSlide"}))}),provide(injectionKey$3,{background:n.background,width:n.imgWidth,height:n.imgHeight}),(u,c)=>(openBlock(),createElementBlock("div",{id:unref(s),ref_key:"element",ref:a,class:"carousel slide","data-bs-ride":"carousel"},[t.indicators?(openBlock(),createElementBlock("div",_hoisted_2$j,[(openBlock(!0),createElementBlock(Fragment,null,renderList(l.value,(d,v)=>(openBlock(),createElementBlock("button",{key:v,type:"button","data-bs-target":`#${unref(s)}`,"data-bs-slide-to":v,class:normalizeClass(v===0?"active":""),"aria-current":"true","aria-label":`Slide ${v}`},null,10,_hoisted_3$7))),128))])):createCommentVNode("",!0),createBaseVNode("div",_hoisted_4$5,[renderSlot(u.$slots,"default")]),t.controls?(openBlock(),createElementBlock(Fragment,{key:1},[createBaseVNode("button",{class:"carousel-control-prev",type:"button","data-bs-target":`#${unref(s)}`,"data-bs-slide":"prev"},_hoisted_8$2,8,_hoisted_5$5),createBaseVNode("button",{class:"carousel-control-next",type:"button","data-bs-target":`#${unref(s)}`,"data-bs-slide":"next"},_hoisted_12$2,8,_hoisted_9$2)],64)):createCommentVNode("",!0)],8,_hoisted_1$z))}}),_hoisted_1$y=["id","data-bs-interval"],_hoisted_2$i={key:0},_hoisted_3$6=["innerHTML"],_hoisted_4$4={key:0},_hoisted_5$4=["innerHTML"],_sfc_main$12=defineComponent({__name:"BCarouselSlide",props:{imgSrc:null,imgHeight:null,imgWidth:null,interval:null,active:{type:Boolean,default:!1},background:null,caption:null,captionHtml:null,captionTag:{default:"h3"},contentTag:{default:"div"},contentVisibleUp:null,id:null,imgAlt:null,imgBlank:{type:Boolean,default:!1},imgBlankColor:{default:"transparent"},text:null,textHtml:null,textTag:{default:"p"}},setup(t){const r=t,n=inject(injectionKey$3,{}),i=useId(r.id,"accordion");computed(()=>r.imgBlank?r.imgBlank:r.imgSrc);const a=computed(()=>({background:`${r.background||n.background||"rgb(171, 171, 171)"} none repeat scroll 0% 0%`})),o=computed(()=>({"d-none":r.contentVisibleUp,[`d-${r.contentVisibleUp}-block`]:r.contentVisibleUp})),s=computed(()=>r.text&&!r.textHtml),l=computed(()=>r.textHtml),u=computed(()=>r.caption&&!r.captionHtml),c=computed(()=>r.captionHtml),d=computed(()=>n.width),v=computed(()=>n.height);return(I,$)=>{const O=resolveComponent("b-img");return openBlock(),createElementBlock("div",{id:unref(i),class:normalizeClass(["carousel-item",{active:t.active}]),"data-bs-interval":t.interval,style:normalizeStyle$1(unref(a))},[renderSlot(I.$slots,"img",{},()=>[createVNode(O,{class:"d-block w-100",alt:t.imgAlt,src:t.imgSrc,width:t.imgWidth||unref(d),height:t.imgHeight||unref(v),blank:t.imgBlank,"blank-color":t.imgBlankColor},null,8,["alt","src","width","height","blank","blank-color"])]),t.caption||t.captionHtml||t.text||t.textHtml||I.$slots.default?(openBlock(),createBlock(resolveDynamicComponent(t.contentTag),{key:0,class:normalizeClass(["carousel-caption",unref(o)])},{default:withCtx(()=>[t.caption||t.captionHtml?(openBlock(),createBlock(resolveDynamicComponent(t.captionTag),{key:0},{default:withCtx(()=>[unref(u)?(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString(t.caption),1)):createCommentVNode("",!0),unref(c)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.captionHtml},null,8,_hoisted_3$6)):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),t.text||t.textHtml?(openBlock(),createBlock(resolveDynamicComponent(t.textTag),{key:1},{default:withCtx(()=>[unref(s)?(openBlock(),createElementBlock("span",_hoisted_4$4,toDisplayString(t.text),1)):createCommentVNode("",!0),unref(l)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.textHtml},null,8,_hoisted_5$4)):createCommentVNode("",!0)]),_:1})):createCommentVNode("",!0),renderSlot(I.$slots,"default")]),_:3},8,["class"])):createCommentVNode("",!0)],14,_hoisted_1$y)}}}),_hoisted_1$x=["disabled"],_sfc_main$11=defineComponent({__name:"BCloseButton",props:{disabled:{type:Boolean,default:!1},white:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"btn-close-white":r.white}));return(i,a)=>(openBlock(),createElementBlock("button",{type:"button",class:normalizeClass(["btn-close",unref(n)]),disabled:t.disabled,"aria-label":"Close"},null,10,_hoisted_1$x))}});var getBreakpointProps=(t,r,n)=>r.concat(["sm","md","lg","xl","xxl"]).reduce((i,a)=>(i[t?`${t}${a.charAt(0).toUpperCase()+a.slice(1)}`:a]=n,i),Object.create(null)),getClasses$1=(t,r,n,i=n)=>Object.keys(r).reduce((a,o)=>(t[o]&&a.push([i,o.replace(n,""),t[o]].filter(s=>s&&typeof s!="boolean").join("-").toLowerCase()),a),[]);const breakpointCol=getBreakpointProps("",[],{type:[Boolean,String,Number],default:!1}),breakpointOffset=getBreakpointProps("offset",[""],{type:[String,Number],default:null}),breakpointOrder=getBreakpointProps("order",[""],{type:[String,Number],default:null}),_sfc_main$10=defineComponent({name:"BCol",props:{col:{type:Boolean,default:!1},cols:{type:[String,Number],default:null},...breakpointCol,offset:{type:[String,Number],default:null},...breakpointOffset,order:{type:[String,Number],default:null},...breakpointOrder,alignSelf:{type:String,default:null},tag:{type:String,default:"div"}},setup(t){const n=[{content:breakpointCol,propPrefix:"cols",classPrefix:"col"},{content:breakpointOffset,propPrefix:"offset"},{content:breakpointOrder,propPrefix:"order"}].flatMap(a=>getClasses$1(t,a.content,a.propPrefix,a.classPrefix));return{classes:computed(()=>({col:t.col||!n.some(a=>/^col-/.test(a)&&!t.cols),[`col-${t.cols}`]:!!t.cols,[`offset-${t.offset}`]:!!t.offset,[`order-${t.order}`]:!!t.order,[`align-self-${t.alignSelf}`]:!!t.alignSelf})),classList:n}}});function _sfc_render$6(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass([t.classes,t.classList])},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["class"])}var BCol=_export_sfc$1(_sfc_main$10,[["render",_sfc_render$6]]);const defaultToastOptions={delay:5e3,value:!0,pos:"top-right"};class ToastInstance{constructor(r){isReactive(r)?this.vm=r:this.vm=reactive(r),this.containerPositions=computed(()=>{const n=new Set([]);return this.vm.toasts.map(i=>{i.options.pos&&n.add(i.options.pos)}),n})}toasts(r){return computed(r?()=>this.vm.toasts.filter(n=>{if(n.options.pos===r&&n.options.value)return n}):()=>this.vm.toasts)}remove(...r){this.vm.toasts=this.vm.toasts.filter(n=>{if(n.options.id&&!r.includes(n.options.id))return n})}isRoot(){var r;return(r=this.vm.root)!=null?r:!1}show(r,n=defaultToastOptions){const i={id:getID(),...defaultToastOptions,...n},a={options:reactive(i),content:r};return this.vm.toasts.push(a),a}info(r,n=defaultToastOptions){return this.show(r,{variant:"info",...n})}danger(r,n=defaultToastOptions){return this.show(r,{variant:"danger",...n})}warning(r,n=defaultToastOptions){return this.show(r,{variant:"warning",...n})}success(r,n=defaultToastOptions){return this.show(r,{variant:"success",...n})}hide(){}}class ToastController{constructor(){this.useToast=useToast,this.vms={}}getOrCreateViewModel(r){if(!r){if(this.rootInstance)return this.vms[this.rootInstance];const n={root:!0,toasts:[],container:void 0,id:Symbol("toast")};return this.rootInstance=n.id,this.vms[n.id]=n,n}if(r.root){if(this.rootInstance)return this.vms[this.rootInstance];this.rootInstance=r.id}return this.vms[r.id]=r,r}getVM(r){if(!r&&this.rootInstance)return this.vms[this.rootInstance];if(r)return this.vms[r]}}const injectkey=Symbol(),fetchKey=Symbol(),defaults$1={container:void 0,toasts:[],root:!1};function getKey(){return inject(fetchKey)}function useToast(t,r=injectkey){const n=inject(getKey());if(!t)return new ToastInstance(n.getOrCreateViewModel());const i={id:Symbol("toastInstance")},a={...defaults$1,...i,...t},o=n.getOrCreateViewModel(a);return new ToastInstance(o)}const BToastPlugin={install:(t,r={})=>{var n,i,a,o;t.provide(fetchKey,(i=(n=r==null?void 0:r.BToast)==null?void 0:n.injectkey)!=null?i:injectkey),t.provide((o=(a=r==null?void 0:r.BToast)==null?void 0:a.injectkey)!=null?o:injectkey,new ToastController)}},_sfc_main$$=defineComponent({__name:"BToaster",props:{position:{default:"top-right"},instance:null},setup(t){const r=t,n={"top-left":"top-0 start-0","top-center":"top-0 start-50 translate-middle-x","top-right":"top-0 end-0","middle-left":"top-50 start-0 translate-middle-y","middle-center":"top-50 start-50 translate-middle","middle-right":"top-50 end-0 translate-middle-y","bottom-left":"bottom-0 start-0","bottom-center":"bottom-0 start-50 translate-middle-x","bottom-right":"bottom-0 end-0"},i=computed(()=>n[r.position]),a=o=>{var s;(s=r.instance)==null||s.remove(o)};return(o,s)=>{var l;const u=resolveComponent("b-toast");return openBlock(),createElementBlock("div",{class:normalizeClass([[unref(i)],"b-toaster position-fixed p-3"]),style:{"z-index":"11"}},[(openBlock(!0),createElementBlock(Fragment,null,renderList((l=t.instance)==null?void 0:l.toasts(t.position).value,c=>(openBlock(),createBlock(u,{id:c.options.id,key:c.options.id,modelValue:c.options.value,"onUpdate:modelValue":d=>c.options.value=d,delay:c.options.delay,title:c.content.title,body:c.content.body,component:c.content.body,variant:c.options.variant,onDestroyed:a},null,8,["id","modelValue","onUpdate:modelValue","delay","title","body","component","variant"]))),128))],2)}}}),_sfc_main$_=defineComponent({name:"BContainer",props:{gutterX:{type:String,default:null},gutterY:{type:String,default:null},fluid:{type:[Boolean,String],default:!1},toast:{type:Object},position:{type:String,required:!1}},setup(t,{slots:r,expose:n}){const i=ref();let a;const o=computed(()=>({container:!t.fluid,["container-fluid"]:typeof t.fluid=="boolean"&&t.fluid,[`container-${t.fluid}`]:typeof t.fluid=="string",[`gx-${t.gutterX}`]:t.gutterX!==null,[`gy-${t.gutterY}`]:t.gutterY!==null}));return onMounted(()=>{t.toast}),t.toast&&(a=useToast({container:i,root:t.toast.root}),n({})),()=>{var s;const l=[];return a==null||a.containerPositions.value.forEach(u=>{l.push(h(_sfc_main$$,{key:u,instance:a,position:u}))}),h("div",{class:[o.value,t.position],ref:i},[...l,(s=r.default)==null?void 0:s.call(r)])}},methods:{}});function _isObject(t){return t&&typeof t=="object"&&t.constructor===Object}function mergeDeep(t,r,n=!0){const i=t instanceof Date&&typeof t.getMonth=="function"?new Date(t):Object.assign({},t);return _isObject(t)&&_isObject(r)&&Object.keys(r).forEach(a=>{_isObject(r[a])?a in t?i[a]=mergeDeep(t[a],r[a],n):Object.assign(i,{[a]:r[a]}):Array.isArray(r[a])&&Array.isArray(t[a])?Object.assign(i,{[a]:n?t[a].concat(r[a].filter(o=>!t[a].includes(o))):r[a]}):Object.assign(i,{[a]:r[a]})}),i}const _hoisted_1$w={class:"visually-hidden"},_hoisted_2$h=["aria-labelledby","role"],_sfc_main$Z=defineComponent({__name:"BDropdown",props:{id:null,menuClass:null,size:null,splitClass:null,splitVariant:null,text:null,toggleClass:null,autoClose:{type:[Boolean,String],default:!0},block:{type:Boolean,default:!1},boundary:{default:"clippingParents"},dark:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},dropup:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},noFlip:{type:Boolean,default:!1},offset:{default:0},popperOpts:{default:()=>({})},right:{type:Boolean,default:!1},role:{default:"menu"},split:{type:Boolean,default:!1},splitButtonType:{default:"button"},splitHref:{default:void 0},noCaret:{type:Boolean,default:!1},toggleText:{default:"Toggle dropdown"},variant:{default:"secondary"}},emits:["show","shown","hide","hidden","click","toggle"],setup(t,{expose:r,emit:n}){const i=t,a=ref(),o=ref(),s=ref(),l=useId(i.id,"dropdown");useEventListener(a,"show.bs.dropdown",()=>n("show")),useEventListener(a,"shown.bs.dropdown",()=>n("shown")),useEventListener(a,"hide.bs.dropdown",()=>n("hide")),useEventListener(a,"hidden.bs.dropdown",()=>n("hidden"));const u=R=>{i.split&&n("click",R)},c=computed(()=>({"d-grid":i.block,"d-flex":i.block&&i.split})),d=computed(()=>({"dropdown-toggle":!i.split,"dropdown-toggle-no-caret":i.noCaret&&!i.split,"w-100":i.split&&i.block})),v=computed(()=>({"dropdown-menu-dark":i.dark,"dropdown-menu-right":i.right})),I=computed(()=>({"data-bs-toggle":i.split?void 0:"dropdown","aria-expanded":i.split?void 0:!1,ref:i.split?void 0:o,href:i.split?i.splitHref:void 0})),$=computed(()=>({ref:i.split?o:void 0})),O=()=>{var R;(R=s.value)==null||R.hide()};return onMounted(()=>{var R;s.value=new Dropdown((R=o.value)==null?void 0:R.$el,{autoClose:i.autoClose,boundary:i.boundary,offset:i.offset?i.offset.toString():"",reference:i.offset||i.split?"parent":"toggle",popperConfig:M=>{const N={placement:"bottom-start",modifiers:i.noFlip?[{name:"flip",options:{fallbackPlacements:[]}}]:[]};return i.dropup?N.placement=i.right?"top-end":"top-start":i.dropright?N.placement="right-start":i.dropleft?N.placement="left-start":i.right&&(N.placement="bottom-end"),mergeDeep(M,mergeDeep(N,i.popperOpts))}})}),r({hide:O}),(R,M)=>(openBlock(),createElementBlock("div",{ref_key:"parent",ref:a,class:normalizeClass([unref(c),"btn-group"])},[createVNode(BButton,mergeProps({id:unref(l),variant:t.splitVariant||t.variant,size:t.size,class:[unref(d),t.split?t.splitClass:t.toggleClass],disabled:t.disabled,type:t.splitButtonType},unref(I),{onClick:u}),{default:withCtx(()=>[createTextVNode(toDisplayString(t.text)+" ",1),renderSlot(R.$slots,"button-content")]),_:3},16,["id","variant","size","class","disabled","type"]),t.split?(openBlock(),createBlock(BButton,mergeProps({key:0,variant:t.variant,size:t.size,disabled:t.disabled},unref($),{class:[t.toggleClass,"dropdown-toggle-split dropdown-toggle"],"data-bs-toggle":"dropdown","aria-expanded":"false",onClick:M[0]||(M[0]=N=>n("toggle"))}),{default:withCtx(()=>[createBaseVNode("span",_hoisted_1$w,toDisplayString(t.toggleText),1)]),_:1},16,["variant","size","disabled","class"])):createCommentVNode("",!0),createBaseVNode("ul",{class:normalizeClass(["dropdown-menu",[t.menuClass,unref(v)]]),"aria-labelledby":unref(l),role:t.role},[renderSlot(R.$slots,"default")],10,_hoisted_2$h)],2))}}),_hoisted_1$v={role:"presentation"},_sfc_main$Y=defineComponent({__name:"BDropdownDivider",props:{tag:{default:"hr"}},setup(t){return(r,n)=>(openBlock(),createElementBlock("li",_hoisted_1$v,[(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"dropdown-divider",role:"separator","aria-orientation":"horizontal"}))]))}}),_sfc_main$X={},_hoisted_1$u={role:"presentation"},_hoisted_2$g={class:"px-4 py-3"};function _sfc_render$5(t,r){return openBlock(),createElementBlock("li",_hoisted_1$u,[createBaseVNode("form",_hoisted_2$g,[renderSlot(t.$slots,"default")])])}var BDropdownForm=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$5]]);const _hoisted_1$t={role:"presentation"},_hoisted_2$f=["id","aria-describedby"],__default__$4=defineComponent({inheritAttrs:!1}),_sfc_main$W=defineComponent({...__default__$4,__name:"BDropdownGroup",props:{id:null,ariaDescribedby:null,header:null,headerClasses:{default:void 0},headerTag:{default:"header"},headerVariant:{default:void 0}},setup(t){const r=t,n=computed(()=>r.id?[r.id,"group_dd_header"].join("_"):void 0),i=computed(()=>r.headerTag==="header"?void 0:"heading"),a=computed(()=>({[`text-${r.headerVariant}`]:r.headerVariant}));return(o,s)=>(openBlock(),createElementBlock("li",_hoisted_1$t,[(openBlock(),createBlock(resolveDynamicComponent(t.headerTag),{id:unref(n),class:normalizeClass(["dropdown-header",[unref(a),t.headerClasses]]),role:unref(i)},{default:withCtx(()=>[renderSlot(o.$slots,"header",{},()=>[createTextVNode(toDisplayString(t.header),1)])]),_:3},8,["id","class","role"])),createBaseVNode("ul",mergeProps({id:t.id,role:"group",class:"list-unstyled"},o.$attrs,{"aria-describedby":t.ariaDescribedby||unref(n)}),[renderSlot(o.$slots,"default")],16,_hoisted_2$f)]))}}),_sfc_main$V={},_hoisted_1$s={class:"dropdown-header"};function _sfc_render$4(t,r){return openBlock(),createElementBlock("li",null,[createBaseVNode("h6",_hoisted_1$s,[renderSlot(t.$slots,"default")])])}var BDropdownHeader=_export_sfc$1(_sfc_main$V,[["render",_sfc_render$4]]);const _hoisted_1$r={role:"presentation"},__default__$3=defineComponent({inheritAttrs:!1}),_sfc_main$U=defineComponent({...__default__$3,__name:"BDropdownItem",props:{href:null,linkClass:null,active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rel:{default:void 0},target:{default:"_self"},variant:{default:void 0}},emits:["click"],setup(t,{emit:r}){const n=t,i=useAttrs(),a=computed(()=>({active:n.active,disabled:n.disabled,[`text-${n.variant}`]:n.variant})),o=computed(()=>n.href?"a":i.to?"b-link":"button"),s=computed(()=>({"aria-current":n.active?"true":null,href:o.value==="a"?n.href:null,rel:n.rel,type:o.value==="button"?"button":null,target:n.target,...i.to?{activeClass:"active",...i}:{}})),l=u=>r("click",u);return(u,c)=>(openBlock(),createElementBlock("li",_hoisted_1$r,[(openBlock(),createBlock(resolveDynamicComponent(unref(o)),mergeProps({class:["dropdown-item",[unref(a),t.linkClass]]},unref(s),{onClick:l}),{default:withCtx(()=>[renderSlot(u.$slots,"default")]),_:3},16,["class"]))]))}}),_hoisted_1$q={role:"presentation"},__default__$2=defineComponent({inheritAttrs:!1}),_sfc_main$T=defineComponent({...__default__$2,__name:"BDropdownItemButton",props:{buttonClass:null,active:{type:Boolean,default:!1},activeClass:{default:"active"},disabled:{type:Boolean,default:!1},variant:{default:void 0}},emits:["click"],setup(t,{emit:r}){const n=t,i=computed(()=>({[n.activeClass]:n.active,disabled:n.disabled,[`text-${n.variant}`]:n.variant})),a=computed(()=>({role:"menuitem",type:"button",disabled:n.disabled})),o=s=>r("click",s);return(s,l)=>(openBlock(),createElementBlock("li",_hoisted_1$q,[createBaseVNode("button",mergeProps({class:["dropdown-item",[unref(i),t.buttonClass]]},unref(a),{onClick:o}),[renderSlot(s.$slots,"default")],16)]))}}),_sfc_main$S={},_hoisted_1$p={role:"presentation"},_hoisted_2$e={class:"px-4 py-1 mb-0 text-muted"};function _sfc_render$3(t,r){return openBlock(),createElementBlock("li",_hoisted_1$p,[createBaseVNode("p",_hoisted_2$e,[renderSlot(t.$slots,"default")])])}var BDropdownText=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$3]]);const _hoisted_1$o=["id","novalidate","onSubmit"],_sfc_main$R=defineComponent({__name:"BForm",props:{id:null,floating:{type:Boolean,default:!1},novalidate:{type:Boolean,default:!1},validated:{type:Boolean,default:!1}},emits:["submit"],setup(t,{emit:r}){const n=t,i=computed(()=>({"form-floating":n.floating,"was-validated":n.validated})),a=o=>r("submit",o);return(o,s)=>(openBlock(),createElementBlock("form",{id:t.id,novalidate:t.novalidate,class:normalizeClass(unref(i)),onSubmit:withModifiers(a,["prevent"])},[renderSlot(o.$slots,"default")],42,_hoisted_1$o))}}),_hoisted_1$n={class:"form-floating"},_hoisted_2$d=["for"],_sfc_main$Q=defineComponent({__name:"BFormFloatingLabel",props:{labelFor:null,label:null},setup(t){return(r,n)=>(openBlock(),createElementBlock("div",_hoisted_1$n,[renderSlot(r.$slots,"default"),createBaseVNode("label",{for:t.labelFor},toDisplayString(t.label),9,_hoisted_2$d)]))}}),_sfc_main$P=defineComponent({__name:"BFormInvalidFeedback",props:{ariaLive:null,forceShow:{type:Boolean,default:!1},id:null,role:null,state:{type:Boolean,default:void 0},tag:{default:"div"},tooltip:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>r.forceShow===!0||r.state===!1),i=computed(()=>({"d-block":n.value,"invalid-feedback":!r.tooltip,"invalid-tooltip":r.tooltip})),a=computed(()=>({id:r.id||null,role:r.role||null,"aria-live":r.ariaLive||null,"aria-atomic":r.ariaLive?"true":null}));return(o,s)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({class:unref(i)},unref(a)),{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$O=defineComponent({__name:"BFormRow",props:{tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"row d-flex flex-wrap"},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3}))}}),_sfc_main$N=defineComponent({__name:"BFormText",props:{id:null,inline:{type:Boolean,default:!1},tag:{default:"small"},textVariant:{default:"muted"}},setup(t){const r=t,n=computed(()=>({"form-text":!r.inline,[`text-${r.textVariant}`]:r.textVariant})),i=computed(()=>({id:r.id||null}));return(a,o)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({class:unref(n)},unref(i)),{default:withCtx(()=>[renderSlot(a.$slots,"default")]),_:3},16,["class"]))}}),_sfc_main$M=defineComponent({__name:"BFormValidFeedback",props:{ariaLive:null,forceShow:{type:Boolean,default:!1},id:null,role:null,state:{type:Boolean,default:void 0},tag:{default:"div"},tooltip:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>r.forceShow===!0||r.state===!0),i=computed(()=>({"d-block":n.value,"valid-feedback":!r.tooltip,"valid-tooltip":r.tooltip})),a=computed(()=>({id:r.id||null,role:r.role||null,"aria-live":r.ariaLive||null,"aria-atomic":r.ariaLive?"true":null}));return(o,s)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),mergeProps({class:unref(i)},unref(a)),{default:withCtx(()=>[renderSlot(o.$slots,"default")]),_:3},16,["class"]))}}),_getComputedAriaInvalid=t=>computed(()=>t.ariaInvalid===!0||t.ariaInvalid==="true"||t.ariaInvalid===""||(typeof t.state=="boolean"?t.state:null)===!1?"true":t.ariaInvalid),getClasses=t=>computed(()=>({"form-check":!t.plain&&!t.button,"form-check-inline":t.inline,"form-switch":t.switch,[`form-control-${t.size}`]:t.size&&t.size!=="md"})),getInputClasses=t=>computed(()=>({"form-check-input":!t.plain&&!t.button,"is-valid":t.state===!0,"is-invalid":t.state===!1,"btn-check":t.button})),getLabelClasses=t=>computed(()=>({"form-check-label":!t.plain&&!t.button,btn:t.button,[`btn-${t.buttonVariant}`]:t.button,[`btn-${t.size}`]:t.button&&t.size&&t.size!=="md"})),getGroupAttr=t=>computed(()=>({"aria-invalid":_getComputedAriaInvalid(t).value,"aria-required":t.required.toString()==="true"?"true":null})),getGroupClasses=t=>computed(()=>({"was-validated":t.validated,"btn-group":t.buttons&&!t.stacked,"btn-group-vertical":t.stacked,[`btn-group-${t.size}`]:t.size})),slotsToElements=(t,r,n)=>t.filter(i=>i.type.name===r).map(i=>{const a=(i.children.default?i.children.default():[]).find(o=>o.type.toString()==="Symbol(Text)");return{props:{disabled:n,...i.props},text:a?a.children:""}}),optionToElement=(t,r)=>typeof t=="string"?{props:{value:t,disabled:r.disabled},text:t}:{props:{value:t[r.valueField],disabled:r.disabled||t[r.disabledField],...t.props},text:t[r.textField],html:t[r.htmlField]},bindGroupProps=(t,r,n,i,a)=>({...t,props:{"button-variant":n.buttonVariant,form:n.form,name:i.value,id:`${a.value}_option_${r}`,button:n.buttons,state:n.state,plain:n.plain,size:n.size,inline:!n.stacked,required:n.required,...t.props}}),_hoisted_1$m=["id","disabled","required","name","form","aria-label","aria-labelledby","aria-required","value","indeterminate"],_hoisted_2$c=["for"],__default__$1=defineComponent({inheritAttrs:!1}),_sfc_main$L=defineComponent({...__default__$1,__name:"BFormCheckbox",props:{ariaLabel:null,ariaLabelledBy:null,form:null,indeterminate:{type:Boolean},name:null,id:{default:void 0},autofocus:{type:Boolean,default:!1},plain:{type:Boolean,default:!1},button:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},inline:{type:Boolean,default:!1},required:{type:Boolean,default:void 0},size:{default:"md"},state:{type:Boolean,default:void 0},uncheckedValue:{type:[Array,Set,Boolean,String,Object,Number],default:!1},value:{type:[Array,Set,Boolean,String,Object,Number],default:!0},modelValue:{type:[Array,Set,Boolean,String,Object,Number],default:void 0}},emits:["update:modelValue","input","change"],setup(t,{emit:r}){const n=t,i=useId(n.id,"form-check"),a=ref(null),o=ref(!1),s=computed({get:()=>n.uncheckedValue?Array.isArray(n.modelValue)?n.modelValue.indexOf(n.value)>-1:n.modelValue===n.value:n.modelValue,set:v=>{let I=v;Array.isArray(n.modelValue)?n.uncheckedValue&&(I=n.modelValue,v?(I.indexOf(n.uncheckedValue)>-1&&I.splice(I.indexOf(n.uncheckedValue),1),I.push(n.value)):(I.indexOf(n.value)>-1&&I.splice(I.indexOf(n.value),1),I.push(n.uncheckedValue))):I=v?n.value:n.uncheckedValue,r("input",I),r("update:modelValue",I),r("change",I)}}),l=computed(()=>Array.isArray(n.modelValue)?n.modelValue.indexOf(n.value)>-1:JSON.stringify(n.modelValue)===JSON.stringify(n.value)),u=getClasses(n),c=getInputClasses(n),d=getLabelClasses(n);return onMounted(()=>{n.autofocus&&a.value.focus()}),(v,I)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(u))},[withDirectives(createBaseVNode("input",mergeProps({id:unref(i)},v.$attrs,{ref_key:"input",ref:a,"onUpdate:modelValue":I[0]||(I[0]=$=>isRef(s)?s.value=$:null),class:unref(c),type:"checkbox",disabled:t.disabled,required:!!t.name&&!!t.required,name:t.name,form:t.form,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,"aria-required":t.name&&t.required?"true":void 0,value:t.value,indeterminate:t.indeterminate,onFocus:I[1]||(I[1]=$=>o.value=!0),onBlur:I[2]||(I[2]=$=>o.value=!1)}),null,16,_hoisted_1$m),[[vModelCheckbox,unref(s)]]),v.$slots.default||!t.plain?(openBlock(),createElementBlock("label",{key:0,for:unref(i),class:normalizeClass([unref(d),{active:unref(l),focus:o.value}])},[renderSlot(v.$slots,"default")],10,_hoisted_2$c)):createCommentVNode("",!0)],2))}}),_hoisted_1$l=["id"],_hoisted_2$b=["innerHTML"],_hoisted_3$5=["textContent"],_sfc_main$K=defineComponent({__name:"BFormCheckboxGroup",props:{id:null,form:null,modelValue:{default:()=>[]},ariaInvalid:{type:[Boolean,String],default:void 0},autofocus:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},buttons:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},htmlField:{default:"html"},name:null,options:{default:()=>[]},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:null,stacked:{type:Boolean,default:!1},state:{type:Boolean,default:void 0},switches:{type:Boolean,default:!1},textField:{default:"text"},validated:{type:Boolean,default:!1},valueField:{default:"value"}},emits:["input","update:modelValue","change"],setup(t,{emit:r}){const n=t,i=useSlots(),a="BFormCheckbox",o=useId(n.id,"checkbox"),s=useId(n.name,"checkbox"),l=computed({get:()=>n.modelValue,set:v=>{JSON.stringify(v)!==JSON.stringify(n.modelValue)&&(r("input",v),r("update:modelValue",v),r("change",v))}}),u=computed(()=>(i.first?slotsToElements(i.first(),a,n.disabled):[]).concat(n.options.map(v=>optionToElement(v,n))).concat(i.default?slotsToElements(i.default(),a,n.disabled):[]).map((v,I)=>bindGroupProps(v,I,n,s,o)).map(v=>({...v,props:{switch:n.switches,...v.props}}))),c=getGroupAttr(n),d=getGroupClasses(n);return(v,I)=>(openBlock(),createElementBlock("div",mergeProps(unref(c),{id:unref(o),role:"group",class:[unref(d),"bv-no-focus-ring"],tabindex:"-1"}),[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(u),($,O)=>(openBlock(),createBlock(_sfc_main$L,mergeProps({key:O,modelValue:unref(l),"onUpdate:modelValue":I[0]||(I[0]=R=>isRef(l)?l.value=R:null)},$.props),{default:withCtx(()=>[$.html?(openBlock(),createElementBlock("span",{key:0,innerHTML:$.html},null,8,_hoisted_2$b)):(openBlock(),createElementBlock("span",{key:1,textContent:toDisplayString($.text)},null,8,_hoisted_3$5))]),_:2},1040,["modelValue"]))),128))],16,_hoisted_1$l))}}),escapeChar=t=>"\\"+t,cssEscape=t=>{t=toString(t);const r=t.length,n=t.charCodeAt(0);return t.split("").reduce((i,a,o)=>{const s=t.charCodeAt(o);return s===0?i+"\uFFFD":s===127||s>=1&&s<=31||o===0&&s>=48&&s<=57||o===1&&s>=48&&s<=57&&n===45?i+escapeChar(`${s.toString(16)} `):o===0&&s===45&&r===1?i+escapeChar(a):s>=128||s===45||s===95||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?i+a:i+escapeChar(a)},"")},normalizeSlot=(t,r={},n={})=>{const i=[t];let a;for(let o=0;o<i.length&&!a;o++){const s=i[o];a=n[s]}return a&&isFunction$1(a)?a(r):a},INPUTS=["input","select","textarea"],INPUT_SELECTOR=INPUTS.map(t=>`${t}:not([disabled])`).join(),LEGEND_INTERACTIVE_ELEMENTS=[...INPUTS,"a","button","label"],SLOT_NAME_LABEL="label",SLOT_NAME_INVALID_FEEDBACK="invalid-feedback",SLOT_NAME_VALID_FEEDBACK="valid-feedback",SLOT_NAME_DESCRIPTION="description",SLOT_NAME_DEFAULT$1="default",_sfc_main$J=defineComponent({name:"BFormGroup",components:{BCol,BFormInvalidFeedback:_sfc_main$P,BFormRow:_sfc_main$O,BFormText:_sfc_main$N,BFormValidFeedback:_sfc_main$M},props:{contentCols:{type:[Boolean,String,Number],required:!1},contentColsLg:{type:[Boolean,String,Number],required:!1},contentColsMd:{type:[Boolean,String,Number],required:!1},contentColsSm:{type:[Boolean,String,Number],required:!1},contentColsXl:{type:[Boolean,String,Number],required:!1},description:{type:[String],required:!1},disabled:{type:Boolean,default:!1},feedbackAriaLive:{type:String,default:"assertive"},id:{type:String,required:!1},invalidFeedback:{type:String,required:!1},label:{type:String,required:!1},labelAlign:{type:[Boolean,String,Number],required:!1},labelAlignLg:{type:[Boolean,String,Number],required:!1},labelAlignMd:{type:[Boolean,String,Number],required:!1},labelAlignSm:{type:[Boolean,String,Number],required:!1},labelAlignXl:{type:[Boolean,String,Number],required:!1},labelClass:{type:[Array,Object,String],required:!1},labelCols:{type:[Boolean,String,Number],required:!1},labelColsLg:{type:[Boolean,String,Number],required:!1},labelColsMd:{type:[Boolean,String,Number],required:!1},labelColsSm:{type:[Boolean,String,Number],required:!1},labelColsXl:{type:[Boolean,String,Number],required:!1},labelFor:{type:String,required:!1},labelSize:{type:String,required:!1},labelSrOnly:{type:Boolean,default:!1},state:{type:Boolean,default:null},tooltip:{type:Boolean,default:!1},validFeedback:{type:String,required:!1},validated:{type:Boolean,default:!1},floating:{type:Boolean,default:!1}},setup(t,{attrs:r}){const i=["xs","sm","md","lg","xl"],a=(M,N)=>i.reduce((V,G)=>{const Y=M[suffixPropName(G,`${N}Align`)]||null;return Y&&V.push(["text",G,Y].filter(X=>X).join("-")),V},[]),o=(M,N)=>i.reduce((V,G)=>{let Y=M[suffixPropName(G,`${N}Cols`)];return Y=Y===""?!0:Y||!1,!isBoolean(Y)&&Y!=="auto"&&(Y=stringToInteger(Y,0),Y=Y>0?Y:!1),Y&&(V[G||(isBoolean(Y)?"col":"cols")]=Y),V},{}),s=ref(),l=(M,N=null)=>{if(IS_BROWSER&&t.labelFor){const V=select(`#${cssEscape(t.labelFor)}`,s);if(V){const G="aria-describedby",Y=(M||"").split(RX_SPACE_SPLIT),X=(N||"").split(RX_SPACE_SPLIT),q=(getAttr(V,G)||"").split(RX_SPACE_SPLIT).filter(Z=>!arrayIncludes(X,Z)).concat(Y).filter((Z,ee,ne)=>ne.indexOf(Z)===ee).filter(Z=>Z).join(" ").trim();q?setAttr(V,G,q):removeAttr(V,G)}}},u=computed(()=>o(t,"content")),c=computed(()=>a(t,"label")),d=computed(()=>o(t,"label")),v=computed(()=>Object.keys(u.value).length>0||Object.keys(d.value).length>0),I=computed(()=>isBoolean(t.state)?t.state:null),$=computed(()=>{const M=I.value;return M===!0?"is-valid":M===!1?"is-invalid":null}),O=computed(()=>r.ariaInvalid===!0||r.ariaInvalid==="true"||r.ariaInvalid===""||I.value===!1?"true":r.ariaInvalid);return watch(()=>null,(M,N)=>{M!==N&&l(M,N)}),onMounted(()=>{nextTick(()=>{l(null)})}),{ariaDescribedby:null,computedAriaInvalid:O,contentColProps:u,isHorizontal:v,labelAlignClasses:c,labelColProps:d,onLegendClick:M=>{if(t.labelFor)return;const{target:N}=M,V=N?N.tagName:"";if(LEGEND_INTERACTIVE_ELEMENTS.indexOf(V)!==-1)return;const G=selectAll(INPUT_SELECTOR,s).filter(isVisible);G.length===1&&attemptFocus(G[0])},stateClass:$}},render(){const t=this.$props,r=this.$slots,n=useId(),i=!t.labelFor;let a=null;const o=normalizeSlot(SLOT_NAME_LABEL,{},r)||t.label,s=o?getID("_BV_label_"):null;if(o||this.isHorizontal){const Y=i?"legend":"label";if(t.labelSrOnly)o&&(a=h(Y,{class:"visually-hidden",id:s,for:t.labelFor||null},o)),this.isHorizontal?a=h(BCol,this.labelColProps,{default:()=>a}):a=h("div",{},[a]);else{const X={onClick:i?this.onLegendClick:null,...this.isHorizontal?this.labelColProps:{},tag:this.isHorizontal?Y:null,id:s,for:t.labelFor||null,tabIndex:i?"-1":null,class:[this.isHorizontal?"col-form-label":"form-label",{"bv-no-focus-ring":i,"col-form-label":this.isHorizontal||i,"pt-0":!this.isHorizontal&&i,"d-block":!this.isHorizontal&&!i,[`col-form-label-${t.labelSize}`]:!!t.labelSize},this.labelAlignClasses,t.labelClass]};this.isHorizontal?a=h(BCol,X,{default:()=>o}):a=h(Y,X,o)}}let l=null;const u=normalizeSlot(SLOT_NAME_INVALID_FEEDBACK,{},r)||this.invalidFeedback,c=u?getID("_BV_feedback_invalid_"):void 0;u&&(l=h(_sfc_main$P,{ariaLive:t.feedbackAriaLive,id:c,state:t.state,tooltip:t.tooltip},{default:()=>u}));let d=null;const v=normalizeSlot(SLOT_NAME_VALID_FEEDBACK,{},r)||this.validFeedback,I=v?getID("_BV_feedback_valid_"):void 0;v&&(d=h(_sfc_main$M,{ariaLive:t.feedbackAriaLive,id:I,state:t.state,tooltip:t.tooltip},{default:()=>v}));let $=null;const O=normalizeSlot(SLOT_NAME_DESCRIPTION,{},r)||this.description,R=O?getID("_BV_description_"):void 0;O&&($=h(_sfc_main$N,{id:R},{default:()=>O}));const M=this.ariaDescribedby=[R,t.state===!1?c:null,t.state===!0?I:null].filter(Y=>Y).join(" ")||null,N=[normalizeSlot(SLOT_NAME_DEFAULT$1,{ariaDescribedby:M,descriptionId:R,id:n,labelId:s},r)||"",l,d,$];!this.isHorizontal&&t.floating&&N.push(a);let V=h("div",{ref:"content",class:[{"form-floating":!this.isHorizontal&&t.floating}]},N);this.isHorizontal&&(V=h(BCol,{ref:"content",...this.contentColProps},{default:()=>N}));const G={class:["mb-3",this.stateClass,{"was-validated":t.validated}],id:useId(t.id).value,disabled:i?t.disabled:null,role:i?null:"group","aria-invalid":this.computedAriaInvalid,"aria-labelledby":i&&this.isHorizontal?s:null};return this.isHorizontal&&!i?h(_sfc_main$O,G,{default:()=>[a,V]}):h(i?"fieldset":"div",G,this.isHorizontal&&i?[h(_sfc_main$O,{},{default:()=>[a,V]})]:this.isHorizontal||!t.floating?[a,V]:[V])}}),COMMON_INPUT_PROPS={ariaInvalid:{type:[Boolean,String],default:!1},autocomplete:{type:String,required:!1},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},form:{type:String,required:!1},formatter:{type:Function,required:!1},id:{type:String,required:!1},lazy:{type:Boolean,default:!1},lazyFormatter:{type:Boolean,default:!1},list:{type:String,required:!1},modelValue:{type:[String,Number],default:""},name:{type:String,required:!1},number:{type:Boolean,default:!1},placeholder:{type:String,required:!1},plaintext:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},size:{type:String,required:!1},state:{type:Boolean,default:null},trim:{type:Boolean,default:!1}};function useFormInput(t,r){const n=ref();let i=null,a=!0;const o=useId(t.id,"input"),s=(R,M,N=!1)=>(R=String(R),typeof t.formatter=="function"&&(!t.lazyFormatter||N)?(a=!1,t.formatter(R,M)):R),l=R=>t.trim?R.trim():t.number?parseFloat(R):R,u=()=>{nextTick(()=>{var R;t.autofocus&&((R=n.value)==null||R.focus())})};onMounted(u),onMounted(()=>{n.value&&(n.value.value=t.modelValue)}),onActivated(u);const c=computed(()=>{if(t.state===!1)return!0;if(t.state!==!0)return typeof t.ariaInvalid=="boolean"&&t.ariaInvalid===!1?void 0:t.ariaInvalid}),d=R=>{const{value:M}=R.target,N=s(M,R);if(N===!1||R.defaultPrevented){R.preventDefault();return}if(t.lazy)return;r("input",N);const V=l(N);t.modelValue!==V&&(i=M,r("update:modelValue",V))},v=R=>{const{value:M}=R.target,N=s(M,R);if(N===!1||R.defaultPrevented){R.preventDefault();return}if(!t.lazy)return;i=M,r("update:modelValue",N);const V=l(N);t.modelValue!==V&&r("change",N)},I=R=>{if(r("blur",R),!t.lazy&&!t.lazyFormatter)return;const{value:M}=R.target,N=s(M,R,!0);i=M,r("update:modelValue",N)},$=()=>{var R;t.disabled||(R=n.value)==null||R.focus()},O=()=>{var R;t.disabled||(R=n.value)==null||R.blur()};return watch(()=>t.modelValue,R=>{!n.value||(n.value.value=i&&a?i:R,i=null,a=!0)}),{input:n,computedId:o,computedAriaInvalid:c,onInput:d,onChange:v,onBlur:I,focus:$,blur:O}}const allowedTypes=["text","number","email","password","search","url","tel","date","time","range","color"],_sfc_main$I=defineComponent({name:"BFormInput",props:{...COMMON_INPUT_PROPS,max:{type:[String,Number],required:!1},min:{type:[String,Number],required:!1},step:{type:[String,Number],required:!1},type:{type:String,default:"text",validator:t=>allowedTypes.includes(t)}},emits:["update:modelValue","change","blur","input"],setup(t,{emit:r}){const n=computed(()=>{const I=t.type==="range",$=t.type==="color";return{"form-range":I,"form-control":$||!t.plaintext&&!I,"form-control-color":$,"form-control-plaintext":t.plaintext&&!I&&!$,[`form-control-${t.size}`]:t.size,"is-valid":t.state===!0,"is-invalid":t.state===!1}}),i=computed(()=>allowedTypes.includes(t.type)?t.type:"text"),{input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v}=useFormInput(t,r);return{classes:n,localType:i,input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v}}}),_hoisted_1$k=["id","name","form","type","disabled","placeholder","required","autocomplete","readonly","min","max","step","list","aria-required","aria-invalid"];function _sfc_render$2(t,r,n,i,a,o){return openBlock(),createElementBlock("input",mergeProps({id:t.computedId,ref:"input",class:t.classes,name:t.name||void 0,form:t.form||void 0,type:t.localType,disabled:t.disabled,placeholder:t.placeholder,required:t.required,autocomplete:t.autocomplete||void 0,readonly:t.readonly||t.plaintext,min:t.min,max:t.max,step:t.step,list:t.type!=="password"?t.list:void 0,"aria-required":t.required?"true":void 0,"aria-invalid":t.computedAriaInvalid},t.$attrs,{onInput:r[0]||(r[0]=s=>t.onInput(s)),onChange:r[1]||(r[1]=s=>t.onChange(s)),onBlur:r[2]||(r[2]=s=>t.onBlur(s))}),null,16,_hoisted_1$k)}var BFormInput=_export_sfc$1(_sfc_main$I,[["render",_sfc_render$2]]);const _hoisted_1$j=["id","disabled","required","name","form","aria-label","aria-labelledby","value","aria-required"],_hoisted_2$a=["for"],_sfc_main$H=defineComponent({__name:"BFormRadio",props:{ariaLabel:null,ariaLabelledBy:null,form:null,id:null,name:null,size:null,autofocus:{type:Boolean,default:!1},modelValue:{type:[Boolean,String,Array,Object,Number],default:void 0},plain:{type:Boolean,default:!1},button:{type:Boolean,default:!1},switch:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},inline:{type:Boolean,default:!1},required:{type:Boolean,default:!1},state:{type:[Boolean,null],default:void 0},value:{type:[String,Boolean,Object,Number],default:!0}},emits:["input","change","update:modelValue"],setup(t,{emit:r}){const n=t,i=useId(n.id,"form-check"),a=ref(null),o=ref(!1),s=computed({get:()=>Array.isArray(n.modelValue)?n.modelValue[0]:n.modelValue,set:v=>{const I=v?n.value:!1,$=Array.isArray(n.modelValue)?[I]:I;r("input",$),r("change",$),r("update:modelValue",$)}}),l=computed(()=>Array.isArray(n.modelValue)?(n.modelValue||[]).find(v=>v===n.value):JSON.stringify(n.modelValue)===JSON.stringify(n.value)),u=getClasses(n),c=getInputClasses(n),d=getLabelClasses(n);return onMounted(()=>{n.autofocus&&a.value.focus()}),(v,I)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(u))},[withDirectives(createBaseVNode("input",mergeProps({id:unref(i)},v.$attrs,{ref_key:"input",ref:a,"onUpdate:modelValue":I[0]||(I[0]=$=>isRef(s)?s.value=$:null),class:unref(c),type:"radio",disabled:t.disabled,required:!!t.name&&!!t.required,name:t.name,form:t.form,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledBy,value:t.value,"aria-required":t.name&&t.required?!0:void 0,onFocus:I[1]||(I[1]=$=>o.value=!0),onBlur:I[2]||(I[2]=$=>o.value=!1)}),null,16,_hoisted_1$j),[[vModelRadio,unref(s)]]),v.$slots.default||!t.plain?(openBlock(),createElementBlock("label",{key:0,for:unref(i),class:normalizeClass([unref(d),{active:unref(l),focus:o.value}])},[renderSlot(v.$slots,"default")],10,_hoisted_2$a)):createCommentVNode("",!0)],2))}}),_hoisted_1$i=["id"],_hoisted_2$9=["innerHTML"],_hoisted_3$4=["textContent"],_sfc_main$G=defineComponent({__name:"BFormRadioGroup",props:{size:null,form:null,id:null,name:null,modelValue:{type:[String,Boolean,Array,Object,Number],default:""},ariaInvalid:{type:[Boolean,String],default:void 0},autofocus:{type:Boolean,default:!1},buttonVariant:{default:"secondary"},buttons:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},htmlField:{default:"html"},options:{default:()=>[]},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},stacked:{type:Boolean,default:!1},state:{type:Boolean,default:void 0},textField:{default:"text"},validated:{type:Boolean,default:!1},valueField:{default:"value"}},emits:["input","update:modelValue","change"],setup(t,{emit:r}){const n=t,i=useSlots(),a="BFormRadio",o=useId(n.id,"radio"),s=useId(n.name,"checkbox"),l=computed({get:()=>n.modelValue,set:v=>{r("input",v),r("update:modelValue",v),r("change",v)}}),u=computed(()=>(i.first?slotsToElements(i.first(),a,n.disabled):[]).concat(n.options.map(v=>optionToElement(v,n))).concat(i.default?slotsToElements(i.default(),a,n.disabled):[]).map((v,I)=>bindGroupProps(v,I,n,s,o)).map(v=>({...v}))),c=getGroupAttr(n),d=getGroupClasses(n);return(v,I)=>(openBlock(),createElementBlock("div",mergeProps(unref(c),{id:unref(o),role:"radiogroup",class:[unref(d),"bv-no-focus-ring"],tabindex:"-1"}),[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(u),($,O)=>(openBlock(),createBlock(_sfc_main$H,mergeProps({key:O,modelValue:unref(l),"onUpdate:modelValue":I[0]||(I[0]=R=>isRef(l)?l.value=R:null)},$.props),{default:withCtx(()=>[$.html?(openBlock(),createElementBlock("span",{key:0,innerHTML:$.html},null,8,_hoisted_2$9)):(openBlock(),createElementBlock("span",{key:1,textContent:toDisplayString($.text)},null,8,_hoisted_3$4))]),_:2},1040,["modelValue"]))),128))],16,_hoisted_1$i))}}),_hoisted_1$h=["value","disabled"],_sfc_main$F=defineComponent({__name:"BFormSelectOption",props:{value:null,disabled:{type:Boolean,default:!1}},setup(t){return(r,n)=>{var i;return openBlock(),createElementBlock("option",{value:(i=t.value)!=null?i:"",disabled:t.disabled},[renderSlot(r.$slots,"default")],8,_hoisted_1$h)}}}),_getNested=(t,r)=>{if(!t)return t;if(r in t)return t[r];const n=r.split(".");return _getNested(t[n[0]],n.splice(1).join("."))},_normalizeOption=(t,r=null,n,i)=>{if(Object.prototype.toString.call(t)==="[object Object]"){const a=_getNested(t,i.valueField),o=_getNested(t,i.textField),s=_getNested(t,i.htmlField),l=_getNested(t,i.disabledField),u=t[i.optionsField]||null;return u!==null?{label:String(_getNested(t,i.labelField)||o),options:normalizeOptions(u,n,i)}:{value:typeof a=="undefined"?r||o:a,text:String(typeof o=="undefined"?r:o),html:s,disabled:Boolean(l)}}return{value:r||t,text:String(t),disabled:!1}},normalizeOptions=(t,r,n)=>Array.isArray(t)?t.map(i=>_normalizeOption(i,null,r,n)):Object.prototype.toString.call(t)==="[object Object]"?(console.warn(`[BootstrapVue warn]: ${r} - Setting prop "options" to an object is deprecated. Use the array format instead.`),Object.keys(t).map(i=>{const a=t[i];switch(typeof a){case"object":return _normalizeOption(a.text,String(a.value),r,n);default:return _normalizeOption(a,String(i),r,n)}})):[],_hoisted_1$g=["label"],_sfc_main$E=defineComponent({__name:"BFormSelectOptionGroup",props:{label:null,disabledField:{default:"disabled"},htmlField:{default:"html"},options:{default:()=>[]},textField:{default:"text"},valueField:{default:"value"}},setup(t){const r=t,n=computed(()=>normalizeOptions(r.options,"BFormSelectOptionGroup",r));return(i,a)=>(openBlock(),createElementBlock("optgroup",{label:t.label},[renderSlot(i.$slots,"first"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(n),(o,s)=>(openBlock(),createBlock(_sfc_main$F,mergeProps({key:`option_${s}`,value:o.value,disabled:o.disabled},i.$attrs,{innerHTML:o.html||o.text}),null,16,["value","disabled","innerHTML"]))),128)),renderSlot(i.$slots,"default")],8,_hoisted_1$g))}}),_hoisted_1$f=["id","name","form","multiple","size","disabled","required","aria-required","aria-invalid"],_sfc_main$D=defineComponent({__name:"BFormSelect",props:{ariaInvalid:{type:[Boolean,String],default:!1},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledField:{default:"disabled"},form:null,htmlField:{default:"html"},id:null,labelField:{default:"label"},multiple:{type:Boolean,default:!1},name:null,options:{default:()=>[]},optionsField:{default:"options"},plain:{type:Boolean,default:!1},required:{type:Boolean,default:!1},selectSize:{default:0},size:null,state:{type:Boolean,default:void 0},textField:{default:"text"},valueField:{default:"value"},modelValue:{default:""}},emits:["input","update:modelValue","change"],setup(t,{expose:r,emit:n}){const i=t,a=ref(),o=useId(i.id,"input"),s=()=>{nextTick(()=>{var O;i.autofocus&&((O=a.value)==null||O.focus())})};onMounted(s),onActivated(s);const l=computed(()=>({"form-control":i.plain,[`form-control-${i.size}`]:i.size&&i.plain,"form-select":!i.plain,[`form-select-${i.size}`]:i.size&&!i.plain,"is-valid":i.state===!0,"is-invalid":i.state===!1})),u=computed(()=>{if(i.selectSize||i.plain)return i.selectSize}),c=computed(()=>typeof i.state=="boolean"?i.state?void 0:!0:typeof i.ariaInvalid=="boolean"?i.ariaInvalid?i.ariaInvalid:void 0:i.ariaInvalid),d=computed(()=>normalizeOptions(i.options,"BFormSelect",i)),v=computed({get(){return i.modelValue},set(O){n("change",O),n("update:modelValue",O),n("input",O)}});return r({blur:()=>{var O;i.disabled||(O=a.value)==null||O.blur()},focus:()=>{var O;i.disabled||(O=a.value)==null||O.focus()}}),(O,R)=>withDirectives((openBlock(),createElementBlock("select",mergeProps({id:unref(o),ref_key:"input",ref:a},O.$attrs,{"onUpdate:modelValue":R[0]||(R[0]=M=>isRef(v)?v.value=M:null),class:unref(l),name:t.name,form:t.form||void 0,multiple:t.multiple||void 0,size:unref(u),disabled:t.disabled,required:t.required,"aria-required":t.required?!0:void 0,"aria-invalid":unref(c)}),[renderSlot(O.$slots,"first"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(d),(M,N)=>(openBlock(),createElementBlock(Fragment,null,[Array.isArray(M.options)?(openBlock(),createBlock(_sfc_main$E,{key:`option_${N}`,label:M.label,options:M.options},null,8,["label","options"])):(openBlock(),createBlock(_sfc_main$F,{key:`option2_${N}`,value:M.value,disabled:M.disabled,innerHTML:M.html||M.text},null,8,["value","disabled","innerHTML"]))],64))),256)),renderSlot(O.$slots,"default")],16,_hoisted_1$f)),[[vModelSelect,unref(v)]])}}),_hoisted_1$e=["id"],_hoisted_2$8=["aria-label","aria-controls","aria-describedby"],_sfc_main$C=defineComponent({__name:"BFormTag",props:{id:null,title:null,disabled:{type:Boolean,default:!1},noRemove:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},removeLabel:{default:"Remove tag"},tag:{default:"span"},variant:{default:"secondary"}},emits:["remove"],setup(t,{emit:r}){const n=t,i=useSlots(),a=computed(()=>{var u,c,d;return(d=((c=(u=i.default)==null?void 0:u.call(i)[0].children)==null?void 0:c.toString())||n.title)!=null?d:""}),o=useId(n.id),s=computed(()=>`${o.value}taglabel__`),l=computed(()=>[`bg-${n.variant}`,{"text-dark":["warning","info","light"].includes(n.variant),"rounded-pill":n.pill,disabled:n.disabled}]);return(u,c)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:unref(o),title:unref(a),class:normalizeClass(["badge b-form-tag d-inline-flex align-items-center mw-100",unref(l)]),"aria-labelledby":unref(s)},{default:withCtx(()=>[createBaseVNode("span",{id:unref(s),class:"b-form-tag-content flex-grow-1 text-truncate"},[renderSlot(u.$slots,"default",{},()=>[createTextVNode(toDisplayString(unref(a)),1)])],8,_hoisted_1$e),!t.disabled&&!t.noRemove?(openBlock(),createElementBlock("button",{key:0,"aria-keyshortcuts":"Delete",type:"button","aria-label":t.removeLabel,class:normalizeClass(["btn-close b-form-tag-remove",{"btn-close-white":!["warning","info","light"].includes(t.variant)}]),"aria-controls":t.id,"aria-describedby":unref(s),onClick:c[0]||(c[0]=d=>r("remove",unref(a)))},null,10,_hoisted_2$8)):createCommentVNode("",!0)]),_:3},8,["id","title","class","aria-labelledby"]))}}),_hoisted_1$d=["id"],_hoisted_2$7=["id","for","aria-live"],_hoisted_3$3=["id","aria-live"],_hoisted_4$3=["id"],_hoisted_5$3=["aria-controls"],_hoisted_6$2={role:"group",class:"d-flex"},_hoisted_7$1=["id","disabled","value","type","placeholder","form","required"],_hoisted_8$1=["disabled"],_hoisted_9$1={"aria-live":"polite","aria-atomic":"true"},_hoisted_10$1={key:0,class:"d-block invalid-feedback"},_hoisted_11$1={key:1,class:"form-text text-muted"},_hoisted_12$1={key:2,class:"form-text text-muted"},_hoisted_13=["name","value"],_sfc_main$B=defineComponent({__name:"BFormTags",props:{addButtonText:{default:"Add"},addButtonVariant:{default:"outline-secondary"},addOnChange:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},duplicateTagText:{default:"Duplicate tag(s)"},inputAttrs:null,inputClass:null,inputId:null,inputType:{default:"text"},invalidTagText:{default:"Invalid tag(s)"},form:null,limit:null,limitTagsText:{default:"Tag limit reached"},modelValue:{default:()=>[]},name:null,noAddOnEnter:{type:Boolean,default:!1},noOuterFocus:{type:Boolean,default:!1},noTagRemove:{type:Boolean,default:!1},placeholder:{default:"Add tag..."},removeOnDelete:{type:Boolean,default:!1},required:{type:Boolean,default:!1},separator:null,state:{type:Boolean,default:void 0},size:null,tagClass:null,tagPills:{type:Boolean,default:!1},tagRemoveLabel:null,tagRemovedLabel:{default:"Tag removed"},tagValidator:{type:Function,default:()=>!0},tagVariant:{default:"secondary"}},emits:["update:modelValue","input","tag-state","focus","focusin","focusout","blur"],setup(t,{emit:r}){const n=t,i=ref(null),a=useId(),o=computed(()=>n.inputId||`${a.value}input__`);onMounted(()=>{G(),n.modelValue.length>0&&(u.value=!0)}),onActivated(()=>G()),watch(()=>n.modelValue,oe=>{s.value=oe});const s=ref(n.modelValue),l=ref(""),u=ref(!1),c=ref(!1),d=ref(""),v=ref([]),I=ref([]),$=ref([]),O=computed(()=>({[`form-control-${n.size}`]:n.size,disabled:n.disabled,focus:c.value,"is-invalid":n.state===!1,"is-valid":n.state===!0})),R=computed(()=>s.value.includes(l.value)),M=computed(()=>l.value===""?!1:!n.tagValidator(l.value)),N=computed(()=>s.value.length===n.limit),V=computed(()=>!M.value&&!R.value),G=()=>{var oe;n.autofocus&&((oe=i.value)==null||oe.focus())},Y=oe=>{if(n.disabled){oe.target.blur();return}r("focusin",oe)},X=oe=>{n.disabled||n.noOuterFocus||(c.value=!0,r("focus",oe))},q=oe=>{c.value=!1,r("blur",oe)},Z=oe=>{var ue,fe;const de=typeof oe=="string"?oe:oe.target.value;if(u.value=!1,((ue=n.separator)==null?void 0:ue.includes(de.charAt(0)))&&de.length>0){i.value&&(i.value.value="");return}if(l.value=de,(fe=n.separator)!=null&&fe.includes(de.charAt(de.length-1))){J(de.slice(0,de.length-1));return}v.value=n.tagValidator(de)&&!R.value?[de]:[],I.value=n.tagValidator(de)?[]:[de],$.value=R.value?[de]:[],r("tag-state",v.value,I.value,$.value)},ee=oe=>{n.addOnChange&&(Z(oe),R.value||J(l.value))},ne=oe=>{if(oe.key==="Enter"&&!n.noAddOnEnter){J(l.value);return}(oe.key==="Backspace"||oe.key==="Delete")&&n.removeOnDelete&&l.value===""&&u.value&&s.value.length>0?te(s.value[s.value.length-1]):u.value=!0},J=oe=>{var ue;if(oe=(oe||l.value).trim(),oe===""||R.value||!n.tagValidator(oe)||n.limit&&N.value)return;const fe=[...n.modelValue,oe];l.value="",u.value=!0,r("update:modelValue",fe),r("input",fe),(ue=i.value)==null||ue.focus()},te=oe=>{var ue;const fe=s.value.indexOf((ue=oe==null?void 0:oe.toString())!=null?ue:"");d.value=s.value.splice(fe,1).toString(),r("update:modelValue",s.value)},Q=computed(()=>{const{addButtonText:oe,addButtonVariant:ue,disabled:fe,duplicateTagText:de,inputAttrs:ye,form:ge,inputType:Te,invalidTagText:Be,limitTagsText:Ie,limit:me,noTagRemove:De,placeholder:Ve,required:Ue,separator:Ze,size:ft,state:at,tagClass:dt,tagPills:Le,tagRemoveLabel:Me,tagVariant:ke}=n;return{addButtonText:oe,addButtonVariant:ue,addTag:J,disableAddButton:V,disabled:fe,duplicateTagText:de,duplicateTags:$,form:ge,inputAttrs:{...ye,disabled:fe,form:ge,id:o,value:l},inputHandlers:{input:Z,keydown:ne,change:ee},inputId:o,inputType:Te,invalidTagText:Be,invalidTags:I,isDuplicate:R,isInvalid:M,isLimitReached:N,limitTagsText:Ie,limit:me,noTagRemove:De,placeholder:Ve,removeTag:te,required:Ue,separator:Ze,size:ft,state:at,tagClass:dt,tagPills:Le,tagRemoveLabel:Me,tagVariant:ke,tags:s}});return(oe,ue)=>(openBlock(),createElementBlock("div",{id:unref(a),class:normalizeClass(["b-form-tags form-control h-auto",unref(O)]),role:"group",tabindex:"-1",onFocusin:Y,onFocusout:ue[1]||(ue[1]=fe=>oe.$emit("focusout",fe))},[createBaseVNode("output",{id:`${unref(a)}selected_tags__`,class:"visually-hidden",role:"status",for:unref(o),"aria-live":c.value?"polite":"off","aria-atomic":"true","aria-relevant":"additions text"},toDisplayString(s.value.join(", ")),9,_hoisted_2$7),createBaseVNode("div",{id:`${unref(a)}removed_tags__`,role:"status","aria-live":c.value?"assertive":"off","aria-atomic":"true",class:"visually-hidden"}," ("+toDisplayString(t.tagRemovedLabel)+") "+toDisplayString(d.value),9,_hoisted_3$3),renderSlot(oe.$slots,"default",normalizeProps(guardReactiveProps(unref(Q))),()=>[createBaseVNode("ul",{id:`${unref(a)}tag_list__`,class:"b-form-tags-list list-unstyled mb-0 d-flex flex-wrap align-items-center"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(s.value,fe=>(openBlock(),createBlock(_sfc_main$C,{key:fe,class:normalizeClass(t.tagClass),tag:"li",variant:t.tagVariant,pill:t.tagPills,onRemove:te},{default:withCtx(()=>[createTextVNode(toDisplayString(fe),1)]),_:2},1032,["class","variant","pill"]))),128)),createBaseVNode("li",{role:"none","aria-live":"off",class:"b-from-tags-field flex-grow-1","aria-controls":`${unref(a)}tag_list__`},[createBaseVNode("div",_hoisted_6$2,[createBaseVNode("input",mergeProps({id:unref(o),ref_key:"input",ref:i,disabled:t.disabled,value:l.value,type:t.inputType,placeholder:t.placeholder,class:"b-form-tags-input w-100 flex-grow-1 p-0 m-0 bg-transparent border-0",style:{outline:"currentcolor none 0px","min-width":"5rem"}},t.inputAttrs,{form:t.form,required:t.required,onInput:Z,onChange:ee,onKeydown:ne,onFocus:X,onBlur:q}),null,16,_hoisted_7$1),unref(V)?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["btn b-form-tags-button py-0",[`btn-${t.addButtonVariant}`,{"disabled invisible":l.value.length===0},t.inputClass]]),style:{"font-size":"90%"},disabled:t.disabled||l.value.length===0||unref(N),onClick:ue[0]||(ue[0]=fe=>J(l.value))},[renderSlot(oe.$slots,"add-button-text",{},()=>[createTextVNode(toDisplayString(t.addButtonText),1)])],10,_hoisted_8$1)):createCommentVNode("",!0)])],8,_hoisted_5$3)],8,_hoisted_4$3),createBaseVNode("div",_hoisted_9$1,[unref(M)?(openBlock(),createElementBlock("div",_hoisted_10$1,toDisplayString(t.invalidTagText)+": "+toDisplayString(l.value),1)):createCommentVNode("",!0),unref(R)?(openBlock(),createElementBlock("small",_hoisted_11$1,toDisplayString(t.duplicateTagText)+": "+toDisplayString(l.value),1)):createCommentVNode("",!0),s.value.length===t.limit?(openBlock(),createElementBlock("small",_hoisted_12$1,"Tag limit reached")):createCommentVNode("",!0)])]),t.name?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(s.value,fe=>(openBlock(),createElementBlock("input",{key:fe,type:"hidden",name:t.name,value:fe},null,8,_hoisted_13))),128)):createCommentVNode("",!0)],42,_hoisted_1$d))}}),_sfc_main$A=defineComponent({name:"BFormTextarea",props:{...COMMON_INPUT_PROPS,noResize:{type:Boolean,default:!1},rows:{type:[String,Number],required:!1,default:2},wrap:{type:String,default:"soft"}},emits:["update:modelValue","change","blur","input"],setup(t,{emit:r}){const n=computed(()=>({"form-control":!t.plaintext,"form-control-plaintext":t.plaintext,[`form-control-${t.size}`]:t.size,"is-valid":t.state===!0,"is-invalid":t.state===!1})),i=computed(()=>t.noResize?{resize:"none"}:void 0),{input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v}=useFormInput(t,r);return{input:a,computedId:o,computedAriaInvalid:s,onInput:l,onChange:u,onBlur:c,focus:d,blur:v,classes:n,computedStyles:i}}}),_hoisted_1$c=["id","name","form","disabled","placeholder","required","autocomplete","readonly","aria-required","aria-invalid","rows","wrap"];function _sfc_render$1(t,r,n,i,a,o){return openBlock(),createElementBlock("textarea",mergeProps({id:t.computedId,ref:"input",class:t.classes,name:t.name||void 0,form:t.form||void 0,disabled:t.disabled,placeholder:t.placeholder,required:t.required,autocomplete:t.autocomplete||void 0,readonly:t.readonly||t.plaintext,"aria-required":t.required?"true":void 0,"aria-invalid":t.computedAriaInvalid,rows:t.rows,style:t.computedStyles,wrap:t.wrap||void 0},t.$attrs,{onInput:r[0]||(r[0]=s=>t.onInput(s)),onChange:r[1]||(r[1]=s=>t.onChange(s)),onBlur:r[2]||(r[2]=s=>t.onBlur(s))}),null,16,_hoisted_1$c)}var BFormTextarea=_export_sfc$1(_sfc_main$A,[["render",_sfc_render$1]]);const _sfc_main$z=defineComponent({__name:"BImg",props:{alt:{default:void 0},blank:{type:Boolean,default:!1},blankColor:{default:"transparent"},block:{type:Boolean,default:!1},center:{type:Boolean,default:!1},fluid:{type:Boolean,default:!1},fluidGrow:{type:Boolean,default:!1},height:null,left:{type:Boolean,default:!1},right:{type:Boolean,default:!1},rounded:{type:[Boolean,String],default:!1},sizes:null,src:null,srcset:null,thumbnail:{type:Boolean,default:!1},width:null},setup(t){const r=t,n='<svg width="%{w}" height="%{h}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 %{w} %{h}" preserveAspectRatio="none"><rect width="100%" height="100%" style="fill:%{f};"></rect></svg>',i=(s,l,u)=>`data:image/svg+xml;charset=UTF-8,${encodeURIComponent(n.replace("%{w}",String(s)).replace("%{h}",String(l)).replace("%{f}",u))}`,a=computed(()=>{let s=r.src,l=(typeof r.width=="number"?r.width:parseInt(r.width,10))||void 0,u=(typeof r.height=="number"?r.height:parseInt(r.height,10))||void 0,c="";typeof r.srcset=="string"?c=r.srcset.split(",").filter(v=>v).join(","):Array.isArray(r.srcset)&&(c=r.srcset.filter(v=>v).join(","));let d="";return typeof r.sizes=="string"?d=r.sizes.split(",").filter(v=>v).join(","):Array.isArray(r.sizes)&&(d=r.sizes.filter(v=>v).join(",")),r.blank&&(!u&&l?u=l:!l&&u&&(l=u),!l&&!u&&(l=1,u=1),s=i(l,u,r.blankColor||"transparent"),c="",d=""),{src:s,alt:r.alt,width:l||void 0,height:u||void 0,srcset:c||void 0,sizes:d||void 0}}),o=computed(()=>{let s="",l=r.block;return r.left?s="float-start":r.right?s="float-end":r.center&&(s="mx-auto",l=!0),{"img-thumbnail":r.thumbnail,"img-fluid":r.fluid||r.fluidGrow,"w-100":r.fluidGrow,rounded:r.rounded===""||r.rounded===!0,[`rounded-${r.rounded}`]:typeof r.rounded=="string"&&r.rounded!=="",[s]:!!s,"d-block":l}});return(s,l)=>(openBlock(),createElementBlock("img",mergeProps({class:unref(o)},unref(a)),null,16))}}),_hoisted_1$b={key:0,class:"input-group-text"},_hoisted_2$6={key:0},_hoisted_3$2=["innerHTML"],_hoisted_4$2={key:0,class:"input-group-text"},_hoisted_5$2={key:0},_hoisted_6$1=["innerHTML"],_sfc_main$y=defineComponent({__name:"BInputGroup",props:{append:null,appendHtml:null,id:null,prepend:null,prependHtml:null,size:null,tag:{default:"div"}},setup(t){const r=t,n=computed(()=>({"input-group-sm":r.size==="sm","input-group-lg":r.size==="lg"})),i=computed(()=>!!r.append||!!r.appendHtml),a=computed(()=>!!r.prepend||!!r.prependHtml),o=computed(()=>!!r.appendHtml),s=computed(()=>!!r.prependHtml);return(l,u)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["input-group",unref(n)]),role:"group"},{default:withCtx(()=>[renderSlot(l.$slots,"prepend",{},()=>[unref(a)?(openBlock(),createElementBlock("span",_hoisted_1$b,[unref(s)?createCommentVNode("",!0):(openBlock(),createElementBlock("span",_hoisted_2$6,toDisplayString(t.prepend),1)),unref(s)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.prependHtml},null,8,_hoisted_3$2)):createCommentVNode("",!0)])):createCommentVNode("",!0)]),renderSlot(l.$slots,"default"),renderSlot(l.$slots,"append",{},()=>[unref(i)?(openBlock(),createElementBlock("span",_hoisted_4$2,[unref(o)?createCommentVNode("",!0):(openBlock(),createElementBlock("span",_hoisted_5$2,toDisplayString(t.append),1)),unref(o)?(openBlock(),createElementBlock("span",{key:1,innerHTML:t.appendHtml},null,8,_hoisted_6$1)):createCommentVNode("",!0)])):createCommentVNode("",!0)])]),_:3},8,["id","class"]))}}),_sfc_main$x=defineComponent({__name:"BInputGroupText",props:{tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:"input-group-text"},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3}))}}),_sfc_main$w=defineComponent({__name:"BInputGroupAddon",props:{append:{type:Boolean,default:!1},id:null,isText:{type:Boolean},tag:{default:"div"}},setup(t){const r=t,n=computed(()=>({"input-group-append":r.append,"input-group-prepend":!r.append}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["d-flex",unref(n)])},{default:withCtx(()=>[t.isText?(openBlock(),createBlock(_sfc_main$x,{key:0},{default:withCtx(()=>[renderSlot(i.$slots,"default")]),_:3})):createCommentVNode("",!0),t.isText?createCommentVNode("",!0):renderSlot(i.$slots,"default",{key:1})]),_:3},8,["id","class"]))}}),_sfc_main$v=defineComponent({__name:"BInputGroupAppend",props:{id:null,isText:{type:Boolean},tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$w,{id:t.id,"is-text":t.isText,tag:t.tag,append:""},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3},8,["id","is-text","tag"]))}}),_sfc_main$u=defineComponent({__name:"BInputGroupPrepend",props:{id:null,isText:{type:Boolean},tag:{default:"div"}},setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$w,{id:t.id,"is-text":t.isText,tag:t.tag,append:!1},{default:withCtx(()=>[renderSlot(r.$slots,"default")]),_:3},8,["id","is-text","tag"]))}}),injectionKey$2=Symbol(),_sfc_main$t=defineComponent({__name:"BListGroup",props:{flush:{type:Boolean,default:!1},horizontal:{type:[Boolean,null],default:!1},numbered:{type:Boolean,default:!1},tag:{default:"div"}},setup(t){const r=t,n=computed(()=>{const a=r.flush?!1:r.horizontal;return{"list-group-flush":r.flush,"list-group-horizontal":a===!0,[`list-group-horizontal-${a}`]:typeof a=="string","list-group-numbered":r.numbered}}),i=computed(()=>r.numbered===!0?"ol":r.tag);return provide(injectionKey$2,{numbered:r.numbered}),(a,o)=>(openBlock(),createBlock(resolveDynamicComponent(unref(i)),{class:normalizeClass(["list-group",unref(n)])},{default:withCtx(()=>[renderSlot(a.$slots,"default")]),_:3},8,["class"]))}}),_sfc_main$s=defineComponent({__name:"BListGroupItem",props:{action:{type:Boolean,default:!1},active:{type:Boolean,default:!1},button:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:null,tag:{default:"div"},target:{default:"_self"},to:null,variant:null},setup(t){const r=t,n=useAttrs(),i=inject(injectionKey$2,null),a=computed(()=>!r.button&&(!!r.href||!!r.to)),o=computed(()=>i!=null&&i.numbered?"li":r.button?"button":a.value?BLink:r.tag),s=computed(()=>{const u=r.action||a.value||r.button||["a","router-link","button","b-link"].includes(r.tag);return{[`list-group-item-${r.variant}`]:r.variant,"list-group-item-action":u,active:r.active,disabled:r.disabled}}),l=computed(()=>{const u={};return r.button&&((!n||!n.type)&&(u.type="button"),r.disabled&&(u.disabled=!0)),u});return(u,c)=>(openBlock(),createBlock(resolveDynamicComponent(unref(o)),mergeProps({class:["list-group-item",unref(s)],"aria-current":t.active?!0:null,"aria-disabled":t.disabled?!0:null,target:unref(a)?t.target:null,href:t.button?null:t.href,to:t.button?null:t.to},unref(l)),{default:withCtx(()=>[renderSlot(u.$slots,"default")]),_:3},16,["class","aria-current","aria-disabled","target","href","to"]))}}),_hoisted_1$a=["id"],_hoisted_2$5=["aria-label"],__default__=defineComponent({inheritAttrs:!1}),_sfc_main$r=defineComponent({...__default__,__name:"BModal",props:{bodyBgVariant:null,bodyClass:null,bodyTextVariant:null,busy:{type:Boolean,default:!1},buttonSize:{default:"md"},cancelDisabled:{type:Boolean,default:!1},cancelTitle:{default:"Cancel"},cancelVariant:{default:"secondary"},centered:{type:Boolean,default:!1},contentClass:null,dialogClass:null,footerBgVariant:null,footerBorderVariant:null,footerClass:null,footerTextVariant:null,fullscreen:{type:[Boolean,String],default:!1},headerBgVariant:null,headerBorderVariant:null,headerClass:null,headerCloseLabel:{default:"Close"},headerCloseWhite:{type:Boolean,default:!1},headerTextVariant:null,hideBackdrop:{type:Boolean,default:!1},hideFooter:{type:Boolean,default:!1},hideHeader:{type:Boolean,default:!1},hideHeaderClose:{type:Boolean,default:!1},id:null,modalClass:null,modelValue:{type:Boolean,default:!1},noCloseOnBackdrop:{type:Boolean,default:!1},noCloseOnEsc:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noFocus:{type:Boolean,default:!1},okDisabled:{type:Boolean,default:!1},okOnly:{type:Boolean,default:!1},okTitle:{default:"Ok"},okVariant:{default:"primary"},scrollable:{type:Boolean,default:!1},show:{type:Boolean,default:!1},size:null,title:null,titleClass:null,titleSrOnly:{type:Boolean,default:!1},titleTag:{default:"h5"}},emits:["update:modelValue","show","shown","hide","hidden","hide-prevented","ok","cancel"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(),o=ref(),s=computed(()=>[{fade:!n.noFade,show:n.show},n.modalClass]),l=computed(()=>[{"modal-fullscreen":typeof n.fullscreen=="boolean"?n.fullscreen:!1,[`modal-fullscreen-${n.fullscreen}-down`]:typeof n.fullscreen=="string"?n.fullscreen:!1,[`modal-${n.size}`]:n.size,"modal-dialog-centered":n.centered,"modal-dialog-scrollable":n.scrollable},n.dialogClass]),u=computed(()=>[{[`bg-${n.bodyBgVariant}`]:n.bodyBgVariant,[`text-${n.bodyTextVariant}`]:n.bodyTextVariant},n.bodyClass]),c=computed(()=>[{[`bg-${n.headerBgVariant}`]:n.headerBgVariant,[`border-${n.headerBorderVariant}`]:n.headerBorderVariant,[`text-${n.headerTextVariant}`]:n.headerTextVariant},n.headerClass]),d=computed(()=>[{[`bg-${n.footerBgVariant}`]:n.footerBgVariant,[`border-${n.footerBorderVariant}`]:n.footerBorderVariant,[`text-${n.footerTextVariant}`]:n.footerTextVariant},n.footerClass]),v=computed(()=>[{["visually-hidden"]:n.titleSrOnly},n.titleClass]),I=computed(()=>!!i["header-close"]),$=computed(()=>[{["btn-close-content"]:I.value,["d-flex"]:I.value,["btn-close-white"]:!I.value&&n.headerCloseWhite}]),O=computed(()=>n.cancelDisabled||n.busy),R=computed(()=>n.okDisabled||n.busy);return useEventListener(a,"shown.bs.modal",M=>r("shown",M)),useEventListener(a,"hidden.bs.modal",M=>r("hidden",M)),useEventListener(a,"hidePrevented.bs.modal",M=>r("hide-prevented",M)),useEventListener(a,"show.bs.modal",M=>{r("show",M),M.defaultPrevented||r("update:modelValue",!0)}),useEventListener(a,"hide.bs.modal",M=>{r("hide",M),M.defaultPrevented||r("update:modelValue",!1)}),onMounted(()=>{var M;o.value=new Modal(a.value,{backdrop:n.hideBackdrop?!1:n.noCloseOnBackdrop?"static":!n.hideBackdrop,keyboard:!n.noCloseOnEsc,focus:!n.noFocus}),n.modelValue&&((M=o.value)==null||M.show())}),watch(()=>n.modelValue,M=>{var N,V;M?(N=o.value)==null||N.show():(V=o.value)==null||V.hide()}),(M,N)=>(openBlock(),createBlock(Teleport,{to:"body"},[createBaseVNode("div",mergeProps({id:t.id,ref_key:"element",ref:a,class:["modal",unref(s)],tabindex:"-1"},M.$attrs),[createBaseVNode("div",{class:normalizeClass(["modal-dialog",unref(l)])},[createBaseVNode("div",{class:normalizeClass(["modal-content",t.contentClass])},[t.hideHeader?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["modal-header",unref(c)])},[(openBlock(),createBlock(resolveDynamicComponent(t.titleTag),{class:normalizeClass(["modal-title",unref(v)])},{default:withCtx(()=>[renderSlot(M.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])]),_:3},8,["class"])),t.hideHeaderClose?createCommentVNode("",!0):(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(["btn-close",unref($)]),"data-bs-dismiss":"modal","aria-label":t.headerCloseLabel},[renderSlot(M.$slots,"header-close")],10,_hoisted_2$5))],2)),createBaseVNode("div",{class:normalizeClass(["modal-body",unref(u)])},[renderSlot(M.$slots,"default")],2),t.hideFooter?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["modal-footer",unref(d)])},[renderSlot(M.$slots,"footer",{},()=>[t.okOnly?createCommentVNode("",!0):(openBlock(),createBlock(BButton,{key:0,type:"button",class:"btn","data-bs-dismiss":"modal",disabled:unref(O),size:t.buttonSize,variant:t.cancelVariant,onClick:N[0]||(N[0]=V=>M.$emit("cancel"))},{default:withCtx(()=>[createTextVNode(toDisplayString(t.cancelTitle),1)]),_:1},8,["disabled","size","variant"])),createVNode(BButton,{type:"button",class:"btn","data-bs-dismiss":"modal",disabled:unref(R),size:t.buttonSize,variant:t.okVariant,onClick:N[1]||(N[1]=V=>M.$emit("ok"))},{default:withCtx(()=>[createTextVNode(toDisplayString(t.okTitle),1)]),_:1},8,["disabled","size","variant"])])],2))],2)],2)],16,_hoisted_1$a)]))}}),_sfc_main$q=defineComponent({__name:"BNav",props:{align:null,fill:{type:Boolean,default:!1},justified:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},tabs:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({"flex-column":r.vertical,[`justify-content-${r.align}`]:r.align,"nav-tabs":r.tabs,"nav-pills":r.pills,"nav-fill":r.fill,"nav-justified":r.justified}));return(i,a)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(["nav",unref(n)])},[renderSlot(i.$slots,"default")],2))}}),_hoisted_1$9=["href","tabindex","aria-disabled"],_sfc_main$p=defineComponent({__name:"BNavItem",props:{active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},href:null},setup(t){const r=t,n=computed(()=>({active:r.active,disabled:r.disabled}));return(i,a)=>(openBlock(),createElementBlock("li",{class:normalizeClass(["nav-item",unref(n)])},[createBaseVNode("a",{href:t.href,class:"nav-link",tabindex:t.disabled?-1:void 0,"aria-disabled":t.disabled?!0:void 0},[renderSlot(i.$slots,"default")],8,_hoisted_1$9)],2))}}),_hoisted_1$8={class:"nav-item dropdown"},_sfc_main$o=defineComponent({__name:"BNavItemDropdown",props:{id:null,text:null,size:null,offset:null,autoClose:{type:[Boolean,String],default:!0},dark:{type:Boolean,default:!1},dropleft:{type:Boolean,default:!1},dropright:{type:Boolean,default:!1},dropup:{type:Boolean,default:!1},right:{type:Boolean,default:!1},left:{type:[Boolean,String],default:!1},offsetParent:{type:Boolean,default:!1},split:{type:Boolean,default:!1},splitVariant:null,noCaret:{type:Boolean,default:!1},variant:{default:"link"}},setup(t){return(r,n)=>(openBlock(),createElementBlock("li",_hoisted_1$8,[createVNode(_sfc_main$Z,normalizeProps(guardReactiveProps(r.$props)),createSlots({_:2},[renderList(r.$slots,(i,a)=>({name:a,fn:withCtx(o=>[renderSlot(r.$slots,a,normalizeProps(guardReactiveProps(o||{})))])}))]),1040)]))}}),_hoisted_1$7=["data-bs-backdrop","data-bs-scroll"],_hoisted_2$4={class:"offcanvas-header"},_hoisted_3$1={id:"offcanvasLabel",class:"offcanvas-title"},_hoisted_4$1=createBaseVNode("button",{type:"button",class:"btn-close text-reset","data-bs-dismiss":"offcanvas","aria-label":"Close"},null,-1),_hoisted_5$1={class:"offcanvas-body"},_sfc_main$n=defineComponent({__name:"BOffcanvas",props:{modelValue:{type:Boolean,default:!1},bodyScrolling:{type:Boolean,default:!1},backdrop:{type:Boolean,default:!0},placement:{default:"start"},title:null},emits:["update:modelValue","show","shown","hide","hidden"],setup(t,{emit:r}){const n=t,i=ref(),a=ref();useEventListener(i,"shown.bs.offcanvas",()=>r("shown")),useEventListener(i,"hidden.bs.offcanvas",()=>r("hidden")),useEventListener(i,"show.bs.offcanvas",()=>{r("show"),r("update:modelValue",!0)}),useEventListener(i,"hide.bs.offcanvas",()=>{r("hide"),r("update:modelValue",!1)}),onMounted(()=>{var s;a.value=new Offcanvas(i.value),n.modelValue&&((s=a.value)==null||s.show(i.value))});const o=computed(()=>({[`offcanvas-${n.placement}`]:n.placement}));return watch(()=>n.modelValue,s=>{var l,u;s?(l=a.value)==null||l.show(i.value):(u=a.value)==null||u.hide()}),(s,l)=>(openBlock(),createElementBlock("div",{ref_key:"element",ref:i,class:normalizeClass(["offcanvas",unref(o)]),tabindex:"-1","aria-labelledby":"offcanvasLabel","data-bs-backdrop":t.backdrop,"data-bs-scroll":t.bodyScrolling},[createBaseVNode("div",_hoisted_2$4,[createBaseVNode("h5",_hoisted_3$1,[renderSlot(s.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])]),_hoisted_4$1]),createBaseVNode("div",_hoisted_5$1,[renderSlot(s.$slots,"default")])],10,_hoisted_1$7))}}),NO_FADE_PROPS={name:"",enterActiveClass:"",enterToClass:"",leaveActiveClass:"",leaveToClass:"showing",enterFromClass:"showing",leaveFromClass:""},FADE_PROPS={...NO_FADE_PROPS,enterActiveClass:"fade showing",leaveActiveClass:"fade showing"},_sfc_main$m=defineComponent({name:"BTransition",props:{appear:{type:Boolean,default:!1},mode:{type:String,required:!1},noFade:{type:Boolean,default:!1},transProps:{type:Object,required:!1}},setup(t,{slots:r}){const n=ref(t.transProps);return isPlainObject(n.value)||(n.value=t.noFade?NO_FADE_PROPS:FADE_PROPS,t.appear&&(n.value={...n.value,appear:!0,appearClass:n.value.enterClass,appearActiveClass:n.value.enterActiveClass,appearToClass:n.value.enterToClass})),n.value={mode:t.mode,...n.value,css:!0},()=>h(Transition,{...n.value},{default:()=>r.default?r.default():[]})}}),POSITION_COVER={top:0,left:0,bottom:0,right:0},SLOT_NAME_DEFAULT="default",SLOT_NAME_OVERLAY="overlay",_sfc_main$l=defineComponent({name:"BOverlay",components:{BTransition:_sfc_main$m},props:{bgColor:{type:String,required:!1},blur:{type:String,default:"2px"},fixed:{type:Boolean,default:!1},noCenter:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},opacity:{type:[Number,String],default:.85,validator:t=>{const r=toFloat(t,0);return r>=0&&r<=1}},overlayTag:{type:String,default:"div"},rounded:{type:[Boolean,String],default:!1},show:{type:Boolean,default:!1},spinnerSmall:{type:Boolean,default:!1},spinnerType:{type:String,default:"border"},spinnerVariant:{type:String,required:!1},variant:{type:String,default:"light"},wrapTag:{type:String,default:"div"},zIndex:{type:[Number,String],default:10}},emits:["click","hidden","shown"],setup(t,{slots:r,emit:n}){const i=computed(()=>t.rounded===!0||t.rounded===""?"rounded":t.rounded?`rounded-${t.rounded}`:""),a=computed(()=>t.variant&&!t.bgColor?`bg-${t.variant}`:""),o=computed(()=>({spinnerType:t.spinnerType||null,spinnerVariant:t.spinnerVariant||null,spinnerSmall:t.spinnerSmall}));return()=>{const s=d=>h(resolveComponent("BSpinner"),{type:d.spinnerType,variant:d.spinnerVariant,small:d.spinnerSmall});let l="";if(t.show){const d=h("div",{class:["position-absolute",a.value,i.value],style:{...POSITION_COVER,opacity:t.opacity,backgroundColor:t.bgColor||null,backdropFilter:t.blur?`blur(${t.blur})`:null}}),v=h("div",{class:"position-absolute",style:t.noCenter?{...POSITION_COVER}:{top:"50%",left:"50%",transform:"translateX(-50%) translateY(-50%)"}},normalizeSlot(SLOT_NAME_OVERLAY,o.value,r)||s(o.value)||"");l=h(t.overlayTag,{class:["b-overlay",{"position-absolute":!t.noWrap||t.noWrap&&!t.fixed,"position-fixed":t.noWrap&&t.fixed}],style:{...POSITION_COVER,zIndex:t.zIndex||10},onClick:I=>n("click",I),key:"overlay"},[d,v])}const u=()=>h(_sfc_main$m,{noFade:t.noFade,transProps:{enterToClass:"show"},name:"fade",onAfterEnter:()=>n("shown"),onAfterLeave:()=>n("hidden")},{default:()=>l});return t.noWrap?u():h(t.wrapTag,{class:["b-overlay-wrap position-relative"],"aria-busy":t.show?"true":null},[h("span",normalizeSlot(SLOT_NAME_DEFAULT,{},r)),u()])}}});function alignment(t){return computed(()=>t.align==="center"?"justify-content-center":t.align==="end"?"justify-content-end":(t.align==="start","justify-content-start"))}class BvEvent{constructor(r,n={}){if(this.cancelable=!0,this.componentId=null,this.defaultPrevented=!1,this.nativeEvent=null,this.relatedTarget=null,this.target=null,this.eventType="",this.vueTarget=null,!r)throw new TypeError(`Failed to construct '${this.constructor.name}'. 1 argument required, ${arguments.length} given.`);assign(this,BvEvent.Defaults,this.constructor.Defaults,n,{eventType:r}),defineProperties(this,{type:readonlyDescriptor(),cancelable:readonlyDescriptor(),nativeEvent:readonlyDescriptor(),target:readonlyDescriptor(),relatedTarget:readonlyDescriptor(),vueTarget:readonlyDescriptor(),componentId:readonlyDescriptor()});let i=!1;this.preventDefault=function(){this.cancelable&&(i=!0)},defineProperty(this,"defaultPrevented",{enumerable:!0,get(){return i}})}static get Defaults(){return{eventType:"",cancelable:!0,nativeEvent:null,target:null,relatedTarget:null,vueTarget:null,componentId:null}}}const DEFAULT_LIMIT=5,DEFAULT_PER_PAGE=20,DEFAULT_TOTAL_ROWS=0,ELLIPSIS_THRESHOLD=3,SLOT_NAME_ELLIPSIS_TEXT="ellipsis-text",SLOT_NAME_FIRST_TEXT="first-text",SLOT_NAME_LAST_TEXT="last-text",SLOT_NAME_NEXT_TEXT="next-text",SLOT_NAME_PAGE="page",SLOT_NAME_PREV_TEXT="prev-text",sanitizePerPage=t=>Math.max(toInteger(t)||DEFAULT_PER_PAGE,1),sanitizeTotalRows=t=>Math.max(toInteger(t)||DEFAULT_TOTAL_ROWS,0),sanitizeCurrentPage=(t,r)=>{const n=toInteger(t)||1;return n>r?r:n<1?1:n},_sfc_main$k=defineComponent({name:"BPagination",props:{align:{type:String,default:"start"},ariaControls:{type:String,required:!1},ariaLabel:{type:String,default:"Pagination"},disabled:{type:Boolean,default:!1},ellipsisClass:{type:[Array,String],default:()=>[]},ellipsisText:{type:String,default:"\u2026"},firstClass:{type:[Array,String],default:()=>[]},firstNumber:{type:Boolean,default:!1},firstText:{type:String,default:"\xAB"},hideEllipsis:{type:Boolean,default:!1},hideGotoEndButtons:{type:Boolean,default:!1},labelFirstPage:{type:String,default:"Go to first page"},labelLastPage:{type:String,default:"Go to last page"},labelNextPage:{type:String,default:"Go to next page"},labelPage:{type:String,default:"Go to page"},labelPrevPage:{type:String,default:"Go to previous page"},lastClass:{type:[Array,String],default:()=>[]},lastNumber:{type:Boolean,default:!1},lastText:{type:String,default:"\xBB"},limit:{type:Number,default:DEFAULT_LIMIT},modelValue:{type:Number,default:1},nextClass:{type:[Array,String],default:()=>[]},nextText:{type:String,default:"\u203A"},pageClass:{type:[Array,String],default:()=>[]},perPage:{type:Number,default:DEFAULT_PER_PAGE},pills:{type:Boolean,default:!1},prevClass:{type:[Array,String],default:()=>[]},prevText:{type:String,default:"\u2039"},size:{type:String,required:!1},totalRows:{type:Number,default:DEFAULT_TOTAL_ROWS}},emits:["update:modelValue","page-click"],setup(t,{emit:r,slots:n}){const i=alignment(t),a=computed(()=>Math.ceil(sanitizeTotalRows(t.totalRows)/sanitizePerPage(t.perPage))),o=computed(()=>{let O;return a.value-t.modelValue+2<t.limit&&t.limit>ELLIPSIS_THRESHOLD?O=a.value-l.value+1:O=t.modelValue-Math.floor(l.value/2),O<1?O=1:O>a.value-l.value&&(O=a.value-l.value+1),t.limit<=ELLIPSIS_THRESHOLD&&t.lastNumber&&a.value===O+l.value-1&&(O=Math.max(O-1,1)),O}),s=computed(()=>{const O=a.value-t.modelValue;let R=!1;return O+2<t.limit&&t.limit>ELLIPSIS_THRESHOLD?t.limit>ELLIPSIS_THRESHOLD&&(R=!0):t.limit>ELLIPSIS_THRESHOLD&&(R=!!(!t.hideEllipsis||t.firstNumber)),o.value<=1&&(R=!1),R&&t.firstNumber&&o.value<4&&(R=!1),R}),l=computed(()=>{let O=t.limit;return a.value<=t.limit?O=a.value:t.modelValue<t.limit-1&&t.limit>ELLIPSIS_THRESHOLD?((!t.hideEllipsis||t.lastNumber)&&(O=t.limit-(t.firstNumber?0:1)),O=Math.min(O,t.limit)):a.value-t.modelValue+2<t.limit&&t.limit>ELLIPSIS_THRESHOLD?(!t.hideEllipsis||t.firstNumber)&&(O=t.limit-(t.lastNumber?0:1)):t.limit>ELLIPSIS_THRESHOLD&&(O=t.limit-(t.hideEllipsis?0:2)),O}),u=computed(()=>{const O=a.value-l.value;let R=!1;t.modelValue<t.limit-1&&t.limit>ELLIPSIS_THRESHOLD?(!t.hideEllipsis||t.lastNumber)&&(R=!0):t.limit>ELLIPSIS_THRESHOLD&&(R=!!(!t.hideEllipsis||t.lastNumber)),o.value>O&&(R=!1);const M=o.value+l.value-1;return R&&t.lastNumber&&M>a.value-3&&(R=!1),R}),c=reactive({pageSize:sanitizePerPage(t.perPage),totalRows:sanitizeTotalRows(t.totalRows),numberOfPages:a.value}),d=(O,R)=>{if(R===t.modelValue)return;const{target:M}=O,N=new BvEvent("page-click",{cancelable:!0,vueTarget:this,target:M});r("page-click",N,R),!N.defaultPrevented&&r("update:modelValue",R)},v=computed(()=>t.size?`pagination-${t.size}`:""),I=computed(()=>t.pills?"b-pagination-pills":"");watch(()=>t.modelValue,O=>{const R=sanitizeCurrentPage(O,a.value);R!==t.modelValue&&r("update:modelValue",R)}),watch(c,(O,R)=>{isUndefinedOrNull(O)||(R.pageSize!==O.pageSize&&R.totalRows===O.totalRows||R.numberOfPages!==O.numberOfPages&&t.modelValue>R.numberOfPages)&&r("update:modelValue",1)});const $=computed(()=>{const O=[];for(let R=0;R<l.value;R++)O.push({number:o.value+R,classes:null});return O});return()=>{const O=[],R=$.value.map(ee=>ee.number),M=ee=>ee===t.modelValue,N=t.modelValue<1,V=t.align==="fill",G=(ee,ne,J,te,Q,oe)=>{const ue=t.disabled||M(oe)||N||ee<1||ee>a.value,fe=ee<1?1:ee>a.value?a.value:ee,de={disabled:ue,page:fe,index:fe-1},ye=normalizeSlot(J,de,n)||te||"";return h("li",{class:["page-item",{disabled:ue,"flex-fill":V,"d-flex":V&&!ue},Q]},h(ue?"span":"button",{class:["page-link",{"flex-grow-1":!ue&&V}],"aria-label":ne,"aria-controls":t.ariaControls||null,"aria-disabled":ue?"true":null,role:"menuitem",type:ue?null:"button",tabindex:ue?null:"-1",onClick:ge=>{ue||d(ge,fe)}},ye))},Y=ee=>h("li",{class:["page-item","disabled","bv-d-xs-down-none",V?"flex-fill":"",t.ellipsisClass],role:"separator",key:`ellipsis-${ee?"last":"first"}`},[h("span",{class:["page-link"]},normalizeSlot(SLOT_NAME_ELLIPSIS_TEXT,{},n)||t.ellipsisText||"...")]),X=(ee,ne)=>{const J=M(ee.number)&&!N,te=t.disabled?null:J||N&&ne===0?"0":"-1",Q={active:J,disabled:t.disabled,page:ee.number,index:ee.number-1,content:ee.number},oe=normalizeSlot(SLOT_NAME_PAGE,Q,n)||ee.number,ue=h(t.disabled?"span":"button",{class:["page-link",{"flex-grow-1":!t.disabled&&V}],"aria-controls":t.ariaControls||null,"aria-disabled":t.disabled?"true":null,"aria-label":t.labelPage?`${t.labelPage} ${ee.number}`:null,role:"menuitemradio",type:t.disabled?null:"button",tabindex:te,onClick:fe=>{t.disabled||d(fe,ee.number)}},oe);return h("li",{class:["page-item",{disabled:t.disabled,active:J,"flex-fill":V,"d-flex":V&&!t.disabled},t.pageClass],role:"presentation",key:`page-${ee.number}`},ue)};if(!t.hideGotoEndButtons&&!t.firstNumber){const ee=G(1,t.labelFirstPage,SLOT_NAME_FIRST_TEXT,t.firstText,t.firstClass,1);O.push(ee)}const q=G(t.modelValue-1,t.labelFirstPage,SLOT_NAME_PREV_TEXT,t.prevText,t.prevClass,1);O.push(q),t.firstNumber&&R[0]!==1&&O.push(X({number:1},0)),s.value&&O.push(Y(!1)),$.value.forEach((ee,ne)=>{const J=s.value&&t.firstNumber&&R[0]!==1?1:0;O.push(X(ee,ne+J))}),u.value&&O.push(Y(!0)),t.lastNumber&&R[R.length-1]!==a.value&&O.push(X({number:a.value},-1));const Z=G(t.modelValue+1,t.labelNextPage,SLOT_NAME_NEXT_TEXT,t.nextText,t.nextClass,a.value);if(O.push(Z),!t.lastNumber&&!t.hideGotoEndButtons){const ee=G(a.value,t.labelLastPage,SLOT_NAME_LAST_TEXT,t.lastText,t.lastClass,a.value);O.push(ee)}return h("ul",{class:["pagination",v.value,i.value,I.value],role:"menubar","aria-disabled":t.disabled,"aria-label":t.ariaLabel||null},O)}}}),_hoisted_1$6=["id"],_sfc_main$j=defineComponent({__name:"BPopover",props:{id:null,title:null,content:null,container:{default:"body"},noninteractive:{type:Boolean,default:!1},placement:{default:"right"},target:{default:void 0},delay:{default:0},triggers:{default:"click"},show:{type:Boolean,default:!1},variant:{default:void 0},html:{type:Boolean,default:!0},sanitize:{type:Boolean,default:!1},offset:{default:"0"}},emits:["show","shown","hide","hidden","inserted"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(),o=ref(),s=ref(),l=ref(),u=ref(),c=computed(()=>({[`b-popover-${n.variant}`]:n.variant})),d=$=>{if(typeof $=="string")return $;if($ instanceof HTMLElement)return $;if(typeof $!="undefined")return $.$el},v=$=>{if(!!$){if(typeof $=="string"){const O=document.getElementById($);return O||void 0}return $}},I=$=>{o.value=v(d($)),o.value&&(s.value=new Popover(o.value,{container:d(n.container),trigger:n.triggers,placement:n.placement,title:n.title||i.title?l.value:"",content:u.value,html:n.html,delay:n.delay,sanitize:n.sanitize,offset:n.offset}))};return onMounted(()=>{var $,O,R;nextTick(()=>{I(n.target)}),(O=($=a.value)==null?void 0:$.parentNode)==null||O.removeChild(a.value),n.show&&((R=s.value)==null||R.show())}),onBeforeUnmount(()=>{var $;($=s.value)==null||$.dispose()}),watch(()=>n.target,$=>{var O;(O=s.value)==null||O.dispose(),I($)}),watch(()=>n.show,($,O)=>{var R,M;$!==O&&($?(R=s.value)==null||R.show():(M=s.value)==null||M.hide())}),useEventListener(o,"show.bs.popover",()=>r("show")),useEventListener(o,"shown.bs.popover",()=>r("shown")),useEventListener(o,"hide.bs.popover",()=>r("hide")),useEventListener(o,"hidden.bs.popover",()=>r("hidden")),useEventListener(o,"inserted.bs.popover",()=>r("inserted")),($,O)=>(openBlock(),createElementBlock("div",{id:t.id,ref_key:"element",ref:a,class:normalizeClass(["popover b-popover",unref(c)]),role:"tooltip",tabindex:"-1"},[createBaseVNode("div",{ref_key:"titleRef",ref:l},[renderSlot($.$slots,"title",{},()=>[createTextVNode(toDisplayString(t.title),1)])],512),createBaseVNode("div",{ref_key:"contentRef",ref:u},[renderSlot($.$slots,"default",{},()=>[createTextVNode(toDisplayString(t.content),1)])],512)],10,_hoisted_1$6))}}),_sfc_main$i=defineComponent({name:"BProgressBar",props:{animated:{type:Boolean,default:!1},label:{type:String},labelHtml:{type:String},max:{type:[Number,String]},precision:{type:[Number,String],default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},value:{type:[Number,String],default:0},variant:{type:String}},setup(t,{slots:r}){const n=inject(injectionKey$1),i=computed(()=>({"progress-bar-animated":t.animated||(n==null?void 0:n.animated),"progress-bar-striped":t.striped||(n==null?void 0:n.striped)||t.animated||(n==null?void 0:n.animated),[`bg-${t.variant}`]:t.variant})),a=computed(()=>{if(t.showValue||(n==null?void 0:n.showValue))return parseFloat(t.value).toFixed(t.precision);if(t.showProgress||(n==null?void 0:n.showProgress)){const l=(t.value*100/parseInt(t.max||100)).toString();return parseFloat(l).toFixed(t.precision)}return t.label||""}),o=computed(()=>t.max||(n==null?void 0:n.max)?`${t.value*100/parseInt(t.max||(n==null?void 0:n.max))}%`:typeof t.value=="string"?t.value:`${t.value}%`),s=computed(()=>{const l={class:["progress-bar",i.value],role:"progressbar","aria-valuenow":t.value,"aria-valuemin":0,"aria-valuemax":t.max,style:{width:o.value}};return t.labelHtml?{...l,innerHTML:t.labelHtml}:l});return()=>{var l;return h("div",s.value,((l=r.default)==null?void 0:l.call(r))||a.value)}}}),injectionKey$1=Symbol(),_sfc_main$h=defineComponent({__name:"BProgress",props:{variant:null,max:null,height:null,animated:{type:Boolean,default:!1},precision:{default:0},showProgress:{type:Boolean,default:!1},showValue:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},value:{default:0}},setup(t){const r=t;return provide(injectionKey$1,{animated:r.animated,max:r.max,showProgress:r.showProgress,showValue:r.showValue,striped:r.striped}),(n,i)=>(openBlock(),createElementBlock("div",{class:"progress",style:normalizeStyle$1({height:t.height})},[renderSlot(n.$slots,"default",{},()=>[createVNode(_sfc_main$i,normalizeProps(guardReactiveProps({animated:t.animated,max:t.max,precision:t.precision,showProgress:t.showProgress,showValue:t.showValue,striped:t.striped,value:t.value,variant:t.variant})),null,16)])],4))}}),rowColsProps=getBreakpointProps("cols",[""],{type:[String,Number],default:null}),_sfc_main$g=defineComponent({name:"BRow",props:{tag:{type:String,default:"div"},gutterX:{type:String,default:null},gutterY:{type:String,default:null},alignV:{type:String,default:null},alignH:{type:String,default:null},alignContent:{type:String,default:null},...rowColsProps},setup(t){const r=getClasses$1(t,rowColsProps,"cols","row-cols");return{classes:computed(()=>({[`gx-${t.gutterX}`]:t.gutterX!==null,[`gy-${t.gutterY}`]:t.gutterY!==null,[`align-items-${t.alignV}`]:t.alignV,[`justify-content-${t.alignH}`]:t.alignH,[`align-content-${t.alignContent}`]:t.alignContent})),rowColsClasses:r}}});function _sfc_render(t,r,n,i,a,o){return openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(["row",[t.classes,t.rowColsClasses]])},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["class"])}var BRow=_export_sfc$1(_sfc_main$g,[["render",_sfc_render]]);const _sfc_main$f=defineComponent({__name:"BSkeleton",props:{height:null,width:null,size:null,animation:{default:"wave"},type:{default:"text"},variant:null},setup(t){const r=t,n=computed(()=>[`b-skeleton-${r.type}`,{[`b-skeleton-animate-${r.animation}`]:typeof r.animation=="boolean"?void 0:r.animation,[`bg-${r.variant}`]:r.variant}]),i=computed(()=>({width:r.size||r.width,height:r.size||r.height}));return(a,o)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["b-skeleton",unref(n)]),style:normalizeStyle$1(unref(i))},null,6))}}),_sfc_main$e=defineComponent({__name:"BSkeletonIcon",props:{animation:{default:"wave"}},setup(t){const r=t,n=computed(()=>[`b-skeleton-animate-${r.animation}`]);return(i,a)=>(openBlock(),createElementBlock("div",{class:normalizeClass(["b-skeleton-icon-wrapper position-relative d-inline-block overflow-hidden",unref(n)])},[renderSlot(i.$slots,"default")],2))}}),_sfc_main$d=defineComponent({__name:"BTableSimple",props:{bordered:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},borderVariant:{type:String},captionTop:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},responsive:{type:[Boolean,String],default:!1},stacked:{type:[Boolean,String],default:!1},striped:{type:Boolean,default:!1},small:{type:Boolean,default:!1},tableClass:{type:[Array,Object,String]},tableVariant:{type:String}},setup(t){const r=t,n=computed(()=>["table","b-table",{"table-bordered":r.bordered,"table-borderless":r.borderless,[`border-${r.borderVariant}`]:r.borderVariant,"caption-top":r.captionTop,"table-dark":r.dark,"table-hover":r.hover,"b-table-stacked":typeof r.stacked=="boolean"&&r.stacked,[`b-table-stacked-${r.stacked}`]:typeof r.stacked=="string","table-striped":r.striped,"table-sm":r.small,[`table-${r.tableVariant}`]:r.tableVariant},r.tableClass]),i=computed(()=>[{"table-responsive":typeof r.responsive=="boolean"&&r.responsive,[`table-responsive-${r.responsive}`]:typeof r.responsive=="string"}]);return(a,o)=>t.responsive?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(i))},[createBaseVNode("table",{role:"table",class:normalizeClass(unref(n))},[renderSlot(a.$slots,"default")],2)],2)):(openBlock(),createElementBlock("table",{key:1,role:"table",class:normalizeClass(unref(n))},[renderSlot(a.$slots,"default")],2))}}),_hoisted_1$5={key:0},_hoisted_2$3={key:1},_sfc_main$c=defineComponent({__name:"BSkeletonTable",props:{animation:{default:"wave"},columns:{default:5},hideHeader:{type:Boolean,default:!1},rows:{default:3},showFooter:{type:Boolean,default:!1},tableProps:null},setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$d,normalizeProps(guardReactiveProps(t.tableProps)),{default:withCtx(()=>[t.hideHeader?createCommentVNode("",!0):(openBlock(),createElementBlock("thead",_hoisted_1$5,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.columns,(i,a)=>(openBlock(),createElementBlock("th",{key:a},[createVNode(_sfc_main$f)]))),128))])])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.rows,(i,a)=>(openBlock(),createElementBlock("tr",{key:a},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.columns,(o,s)=>(openBlock(),createElementBlock("td",{key:s},[createVNode(_sfc_main$f,{width:"75%"})]))),128))]))),128))]),t.showFooter?(openBlock(),createElementBlock("tfoot",_hoisted_2$3,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.columns,(i,a)=>(openBlock(),createElementBlock("th",{key:a},[createVNode(_sfc_main$f)]))),128))])])):createCommentVNode("",!0)]),_:1},16))}}),_sfc_main$b$1=defineComponent({__name:"BSkeletonWrapper",props:{loading:{type:Boolean,default:!1}},setup(t){return(r,n)=>t.loading?renderSlot(r.$slots,"loading",{key:0}):renderSlot(r.$slots,"default",{key:1})}}),_hoisted_1$4$1={key:0,class:"visually-hidden"},_sfc_main$a$1=defineComponent({__name:"BSpinner",props:{label:null,role:{default:"status"},small:{type:Boolean,default:!1},tag:{default:"span"},type:{default:"border"},variant:null},setup(t){const r=t,n=computed(()=>({"spinner-border":r.type==="border","spinner-border-sm":r.type==="border"&&r.small,"spinner-grow":r.type==="grow","spinner-grow-sm":r.type==="grow"&&r.small,[`text-${r.variant}`]:!!r.variant}));return(i,a)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{class:normalizeClass(unref(n)),role:t.label||i.$slots.label?t.role:null,"aria-hidden":t.label||i.$slots.label?null:!0},{default:withCtx(()=>[t.label||i.$slots.label?(openBlock(),createElementBlock("span",_hoisted_1$4$1,[renderSlot(i.$slots,"label",{},()=>[createTextVNode(toDisplayString(t.label),1)])])):createCommentVNode("",!0)]),_:3},8,["class","role","aria-hidden"]))}}),_hoisted_1$3$1=["id","data-bs-target","aria-controls","aria-selected","onClick"],injectionKey=Symbol(),_sfc_main$9$1=defineComponent({__name:"BTabs",props:{activeNavItemClass:{default:void 0},activeTabClass:{default:void 0},align:{default:void 0},card:{type:Boolean,default:!1},contentClass:{default:void 0},end:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},id:{default:void 0},justified:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},navClass:{default:void 0},navWrapperClass:{default:void 0},noFade:{type:Boolean,default:!1},noNavStyle:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},small:{type:Boolean,default:!1},tag:{default:"div"},vertical:{type:Boolean,default:!1},modelValue:{default:-1}},emits:["update:modelValue","activate-tab","click"],setup(t,{emit:r}){const n=t,i=useSlots(),a=ref(n.modelValue),o=ref(""),s=computed({get:()=>a.value,set:O=>{a.value=O,l.value.length>0&&O>=0&&O<l.value.length?o.value=l.value[O].buttonId:o.value="",r("update:modelValue",O)}}),l=computed(()=>{let O=[];return i.default&&(O=$(i).map((R,M)=>{R.props||(R.props={});const N=R.props["button-id"]||getID("tab"),V=R.props.id||getID(),G=s.value>-1?M===s.value:R.props.active==="",Y=R.props["title-item-class"],X=R.props["title-link-attributes"];return{buttonId:N,contentId:V,active:G,disabled:R.props.disabled===""||R.props.disabled===!0,navItemClasses:[{active:G,disabled:R.props.disabled===""||R.props.disabled===!0},G&&n.activeNavItemClass?n.activeNavItemClass:null,R.props["title-link-class"]],tabClasses:[{fade:!n.noFade},G&&n.activeTabClass?n.activeTabClass:null],target:`#${V}`,title:R.props.title,titleItemClass:Y,titleLinkAttributes:X,onClick:R.props.onClick,tab:R}})),O}),u=computed(()=>!((l==null?void 0:l.value)&&l.value.length>0)),c=computed(()=>({"d-flex align-items-start":n.vertical})),d=computed(()=>({"nav-pills":n.pills,"flex-column me-3":n.vertical,[`justify-content-${n.align}`]:!!n.align,"nav-fill":n.fill,"card-header-tabs":n.card,"nav-justified":n.justified,"nav-tabs":!n.noNavStyle&&!n.pills,small:n.small})),v=O=>{let R=!1;if(O!==void 0&&O>-1&&O<l.value.length&&!l.value[O].disabled&&(s.value<0||l.value[O].buttonId!==o.value)){const M=new BvEvent("activate-tab",{cancelable:!0,vueTarget:this});r("activate-tab",O,s.value,M),M.defaultPrevented||(s.value=O,R=!0)}return!R&&n.modelValue!==s.value&&r("update:modelValue",s.value),R},I=(O,R)=>{var M;v(R),R>=0&&!l.value[R].disabled&&((M=l.value[R])==null?void 0:M.onClick)&&isFunction$1(l.value[R].onClick)&&l.value[R].onClick(O)},$=O=>!O||!O.default?[]:O.default().reduce((R,M)=>(typeof M.type=="symbol"?R=R.concat(M.children):R.push(M),R),[]).filter(R=>{var M;return((M=R.type)==null?void 0:M.__name)==="BTab"});return v(a.value),watch(()=>n.modelValue,(O,R)=>{if(O===R)return;if(O=mathMax$6(O,-1),R=mathMax$6(R,-1),l.value.length<=0){s.value=-1;return}const M=O>R;let N=O;const V=l.value.length-1;for(;N>=0&&N<=V&&l.value[N].disabled;)N+=M?1:-1;if(N<0){v(0);return}if(N>=l.value.length){v(l.value.length-1);return}v(N)}),watch(()=>l.value,()=>{let O=l.value.map(R=>R.active&&!R.disabled).lastIndexOf(!0);O<0&&(s.value>=l.value.length?O=l.value.map(R=>!R.disabled).lastIndexOf(!0):l.value[s.value]&&!l.value[s.value].disabled&&(O=s.value)),O<0&&(O=l.value.map(R=>!R.disabled).indexOf(!0)),l.value.forEach((R,M)=>R.active=M===O),v(O)}),onMounted(()=>{if(s.value<0&&l.value.length>0&&!l.value.some(O=>O.active)){const O=l.value.map(R=>!R.disabled).indexOf(!0);v(O>=0?O:-1)}}),provide(injectionKey,{lazy:n.lazy,card:n.card}),(O,R)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["tabs",unref(c)])},{default:withCtx(()=>[t.end?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(["tab-content",t.contentClass])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(l),({tab:M,contentId:N,tabClasses:V,active:G},Y)=>(openBlock(),createBlock(resolveDynamicComponent(M),{key:Y,id:N,class:normalizeClass(V),active:G},null,8,["id","class","active"]))),128)),unref(u)?(openBlock(),createElementBlock("div",{key:"bv-empty-tab",class:normalizeClass(["tab-pane active",{"card-body":t.card}])},[renderSlot(O.$slots,"empty")],2)):createCommentVNode("",!0)],2)):createCommentVNode("",!0),createBaseVNode("div",{class:normalizeClass([t.navWrapperClass,{"card-header":t.card,"ms-auto":t.vertical&&t.end}])},[createBaseVNode("ul",{class:normalizeClass(["nav",[unref(d),t.navClass]]),role:"tablist"},[renderSlot(O.$slots,"tabs-start"),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(l),({tab:M,buttonId:N,contentId:V,navItemClasses:G,active:Y,target:X},q)=>(openBlock(),createElementBlock("li",{key:q,class:normalizeClass(["nav-item",M.props["title-item-class"]])},[createBaseVNode("button",mergeProps({id:N,class:["nav-link",G],"data-bs-toggle":"tab","data-bs-target":X,role:"tab","aria-controls":V,"aria-selected":Y},M.props["title-link-attributes"],{onClick:withModifiers(Z=>I(Z,q),["stop","prevent"])}),[M.children&&M.children.title?(openBlock(),createBlock(resolveDynamicComponent(M.children.title),{key:0})):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(M.props.title),1)],64))],16,_hoisted_1$3$1)],2))),128)),renderSlot(O.$slots,"tabs-end")],2)],2),t.end?createCommentVNode("",!0):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(["tab-content",t.contentClass])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(l),({tab:M,contentId:N,tabClasses:V,active:G},Y)=>(openBlock(),createBlock(resolveDynamicComponent(M),{key:Y,id:N,class:normalizeClass(V),active:G},null,8,["id","class","active"]))),128)),unref(u)?(openBlock(),createElementBlock("div",{key:"bv-empty-tab",class:normalizeClass(["tab-pane active",{"card-body":t.card}])},[renderSlot(O.$slots,"empty")],2)):createCommentVNode("",!0)],2))]),_:3},8,["id","class"]))}}),_sfc_main$8$1=defineComponent({__name:"BTab",props:{id:null,title:null,active:{type:Boolean,default:!1},buttonId:{default:void 0},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},noBody:{type:[Boolean,String],default:!1},tag:{default:"div"},titleItemClass:{default:void 0},titleLinkAttributes:{default:void 0},titleLinkClass:{default:void 0}},setup(t){const r=t,n=inject(injectionKey,null),i=computed(()=>(n==null?void 0:n.lazy)||r.lazy),a=computed(()=>r.active&&!r.disabled),o=computed(()=>a.value||!i.value),s=computed(()=>({active:r.active,show:r.active,"card-body":(n==null?void 0:n.card)&&r.noBody===!1}));return(l,u)=>(openBlock(),createBlock(resolveDynamicComponent(t.tag),{id:t.id,class:normalizeClass(["tab-pane",unref(s)]),role:"tabpanel","aria-labelledby":"profile-tab"},{default:withCtx(()=>[unref(o)?renderSlot(l.$slots,"default",{key:0}):createCommentVNode("",!0)]),_:3},8,["id","class"]))}}),useItemHelper=()=>({normaliseFields:(r,n)=>{const i=[];return!(r!=null&&r.length)&&(n==null?void 0:n.length)?(Object.keys(n[0]).forEach(a=>i.push({key:a,label:startCase(a)})),i):(Array.isArray(r)&&r.forEach(a=>{typeof a=="string"?i.push({key:a,label:startCase(a)}):isObject$3(a)&&a.key&&isString$1(a.key)&&i.push({...a})}),i)}}),_hoisted_1$2$1=["title","abbr"],_hoisted_2$2={key:1},_hoisted_3$a={key:0},_hoisted_4=["title","abbr"],_hoisted_5={key:1},_hoisted_6={key:2},_hoisted_7=["title","abbr"],_hoisted_8={key:1},_hoisted_9={key:0},_hoisted_10=["title","abbr"],_hoisted_11={key:1},_hoisted_12={key:2},_sfc_main$7$1=defineComponent({__name:"BTable",props:{align:{type:String},caption:{type:String},captionTop:{type:Boolean,default:!1},borderless:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1},borderVariant:{type:String},dark:{type:Boolean,default:!1},fields:{type:Array,default:()=>[]},footClone:{type:Boolean,default:!1},hover:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},responsive:{type:[Boolean,String],default:!1},small:{type:Boolean,default:!1},striped:{type:Boolean,default:!1},variant:{type:String}},setup(t){const r=t,n=computed(()=>["table",{[`align-${r.align}`]:r.align,[`table-${r.variant}`]:r.variant,"table-striped":r.striped,"table-hover":r.hover,"table-dark":r.dark,"table-bordered":r.bordered,[`border-${r.borderVariant}`]:r.borderVariant,"table-borderless":r.borderless,"table-sm":r.small,"caption-top":r.captionTop}]),i=useItemHelper(),a=computed(()=>i.normaliseFields(r.fields,r.items)),o=computed(()=>[{"table-responsive":typeof r.responsive=="boolean"&&r.responsive,[`table-responsive-${r.responsive}`]:typeof r.responsive=="string"}]);return(s,l)=>t.responsive?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(o))},[createBaseVNode("table",{class:normalizeClass(unref(n))},[createBaseVNode("thead",null,[s.$slots["thead-top"]?renderSlot(s.$slots,"thead-top",{key:0}):createCommentVNode("",!0),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key,scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle},u.thAttr),[s.$slots["head("+u.key+")"]?renderSlot(s.$slots,"head("+u.key+")",{key:0,label:u.label}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],16,_hoisted_1$2$1))),128))]),s.$slots["thead-sub"]?(openBlock(),createElementBlock("tr",_hoisted_2$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("td",{key:u.key,scope:"col",class:normalizeClass([u.class,u.thClass,u.variant?`table-${u.variant}`:""])},[s.$slots["thead-sub"]?renderSlot(s.$slots,"thead-sub",mergeProps({key:0,items:unref(a)},u)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],2))),128))])):createCommentVNode("",!0)]),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.items,u=>(openBlock(),createElementBlock("tr",{class:normalizeClass([u._rowVariant?`table-${u._rowVariant}`:null])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),(c,d)=>(openBlock(),createElementBlock("td",mergeProps({key:c.key},c.tdAttr,{class:[c.class,c.tdClass,c.variant?`table-${c.variant}`:"",(u==null?void 0:u._cellVariants)&&(u==null?void 0:u._cellVariants[c.key])?`table-${u==null?void 0:u._cellVariants[c.key]}`:""]}),[s.$slots["cell("+c.key+")"]?renderSlot(s.$slots,"cell("+c.key+")",{key:0,value:u[c.key],index:d,item:u,items:t.items}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u[c.key]),1)],64))],16))),128))],2))),256))]),t.footClone?(openBlock(),createElementBlock("tfoot",_hoisted_3$a,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key},u.thAttr,{scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle}),toDisplayString(u.label),17,_hoisted_4))),128))])])):createCommentVNode("",!0),s.$slots["table-caption"]?(openBlock(),createElementBlock("caption",_hoisted_5,[renderSlot(s.$slots,"table-caption")])):t.caption?(openBlock(),createElementBlock("caption",_hoisted_6,toDisplayString(t.caption),1)):createCommentVNode("",!0)],2)],2)):(openBlock(),createElementBlock("table",{key:1,class:normalizeClass(unref(n))},[createBaseVNode("thead",null,[s.$slots["thead-top"]?renderSlot(s.$slots,"thead-top",{key:0}):createCommentVNode("",!0),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key,scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle},u.thAttr),[s.$slots["head("+u.key+")"]?renderSlot(s.$slots,"head("+u.key+")",{key:0,label:u.label}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],16,_hoisted_7))),128))]),s.$slots["thead-sub"]?(openBlock(),createElementBlock("tr",_hoisted_8,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("td",{key:u.key,scope:"col",class:normalizeClass([u.class,u.thClass,u.variant?`table-${u.variant}`:""])},[s.$slots["thead-sub"]?renderSlot(s.$slots,"thead-sub",mergeProps({key:0,items:unref(a)},u)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u.label),1)],64))],2))),128))])):createCommentVNode("",!0)]),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.items,u=>(openBlock(),createElementBlock("tr",{class:normalizeClass([u._rowVariant?`table-${u._rowVariant}`:null])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),(c,d)=>(openBlock(),createElementBlock("td",mergeProps({key:c.key},c.tdAttr,{class:[c.class,c.tdClass,c.variant?`table-${c.variant}`:"",(u==null?void 0:u._cellVariants)&&(u==null?void 0:u._cellVariants[c.key])?`table-${u==null?void 0:u._cellVariants[c.key]}`:""]}),[s.$slots["cell("+c.key+")"]?renderSlot(s.$slots,"cell("+c.key+")",{key:0,value:u[c.key],index:d,item:u,items:t.items}):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString(u[c.key]),1)],64))],16))),128))],2))),256))]),t.footClone?(openBlock(),createElementBlock("tfoot",_hoisted_9,[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(a),u=>(openBlock(),createElementBlock("th",mergeProps({key:u.key},u.thAttr,{scope:"col",class:[u.class,u.thClass,u.variant?`table-${u.variant}`:""],title:u.headerTitle,abbr:u.headerAbbr,style:u.thStyle}),toDisplayString(u.label),17,_hoisted_10))),128))])])):createCommentVNode("",!0),s.$slots["table-caption"]?(openBlock(),createElementBlock("caption",_hoisted_11,[renderSlot(s.$slots,"table-caption")])):t.caption?(openBlock(),createElementBlock("caption",_hoisted_12,toDisplayString(t.caption),1)):createCommentVNode("",!0)],2))}}),_sfc_main$6$1=defineComponent({__name:"BTbody",props:{headVariant:{type:Boolean,default:!1}},setup(t){const r=t,n=computed(()=>({[`thead-${r.headVariant}`]:r.headVariant}));return(i,a)=>(openBlock(),createElementBlock("tbody",{role:"rowgroup",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),_hoisted_1$1$1=["scope","colspan","rowspan","data-label"],_hoisted_2$1={key:0},_sfc_main$5$1=defineComponent({__name:"BTd",props:{colspan:{type:[String,Number]},rowspan:{type:[String,Number]},stackedHeading:{type:String},stickyColumn:{type:Boolean,default:!1},variant:{type:String}},setup(t){const r=t,n=computed(()=>({[`table-${r.variant}`]:r.variant,"b-table-sticky-column":r.stickyColumn,"table-b-table-default":r.stickyColumn&&!r.variant})),i=computed(()=>r.colspan?"colspan":r.rowspan?"rowspan":"col");return(a,o)=>(openBlock(),createElementBlock("td",{role:"cell",scope:unref(i),class:normalizeClass(unref(n)),colspan:t.colspan,rowspan:t.rowspan,"data-label":t.stackedHeading},[t.stackedHeading?(openBlock(),createElementBlock("div",_hoisted_2$1,[renderSlot(a.$slots,"default")])):renderSlot(a.$slots,"default",{key:1})],10,_hoisted_1$1$1))}}),_sfc_main$4$1=defineComponent({__name:"BTfoot",props:{footVariant:null},setup(t){const r=t,n=computed(()=>({[`table-${r.footVariant}`]:r.footVariant}));return(i,a)=>(openBlock(),createElementBlock("tfoot",{role:"rowgroup",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),_hoisted_1$K=["scope","colspan","rowspan","data-label"],_hoisted_2$o={key:0},_sfc_main$3$1=defineComponent({__name:"BTh",props:{colspan:{type:[String,Number]},rowspan:{type:[String,Number]},stackedHeading:{type:String},stickyColumn:{type:Boolean,default:!1},variant:{type:String}},setup(t){const r=t,n=computed(()=>({[`table-${r.variant}`]:r.variant,"b-table-sticky-column":r.stickyColumn,"table-b-table-default":r.stickyColumn&&!r.variant})),i=computed(()=>r.colspan?"colspan":r.rowspan?"rowspan":"col");return(a,o)=>(openBlock(),createElementBlock("th",{role:"columnheader",scope:unref(i),class:normalizeClass(unref(n)),colspan:t.colspan,rowspan:t.rowspan,"data-label":t.stackedHeading},[t.stackedHeading?(openBlock(),createElementBlock("div",_hoisted_2$o,[renderSlot(a.$slots,"default")])):renderSlot(a.$slots,"default",{key:1})],10,_hoisted_1$K))}}),_sfc_main$2$1=defineComponent({__name:"BThead",props:{headVariant:null},setup(t){const r=t,n=computed(()=>({[`table-${r.headVariant}`]:r.headVariant}));return(i,a)=>(openBlock(),createElementBlock("thead",{role:"rowgroup",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),_sfc_main$1$1=defineComponent({__name:"BTr",props:{variant:null},setup(t){const r=t,n=computed(()=>({[`table-${r.variant}`]:r.variant}));return(i,a)=>(openBlock(),createElementBlock("tr",{role:"row",class:normalizeClass(unref(n))},[renderSlot(i.$slots,"default")],2))}}),SLOT_NAME_TOAST_TITLE="toast-title",MIN_DURATION=1e3,_sfc_main$1q=defineComponent({name:"BToast",props:{...BLINK_PROPS,delay:{type:Number,default:5e3},bodyClass:{type:String},body:{type:[Object,String]},headerClass:{type:String},headerTag:{type:String,default:"div"},animation:{type:Boolean,default:!0},id:{type:String},isStatus:{type:Boolean,default:!1},autoHide:{type:Boolean,default:!0},noCloseButton:{type:Boolean,default:!1},noFade:{type:Boolean,default:!1},noHoverPause:{type:Boolean,default:!1},solid:{type:Boolean,default:!1},static:{type:Boolean,default:!1},title:{type:String},modelValue:{type:Boolean,default:!1},toastClass:{type:Array},variant:{type:String}},emits:["destroyed","update:modelValue"],setup(t,{emit:r,slots:n}){const i=ref(!1),a=ref(!1),o=ref(!1),s=computed(()=>({[`b-toast-${t.variant}`]:t.variant,show:o.value||i.value}));let l,u,c;const d=()=>{typeof l!="undefined"&&(clearTimeout(l),l=void 0)},v=computed(()=>Math.max(toInteger(t.delay,0),MIN_DURATION)),I=()=>{t.modelValue&&(u=c=0,d(),a.value=!0,requestAF(()=>{o.value=!1}))},$=()=>{d(),r("update:modelValue",!0),u=c=0,a.value=!1,nextTick(()=>{requestAF(()=>{o.value=!0})})},O=()=>{if(!t.autoHide||t.noHoverPause||!l||c)return;const q=Date.now()-u;q>0&&(d(),c=Math.max(v.value-q,MIN_DURATION))},R=()=>{(!t.autoHide||t.noHoverPause||!c)&&(c=u=0),M()};watch(()=>t.modelValue,q=>{q?$():I()});const M=()=>{d(),t.autoHide&&(l=setTimeout(I,c||v.value),u=Date.now(),c=0)},N=()=>{i.value=!0,r("update:modelValue",!0)},V=()=>{i.value=!1,M()},G=()=>{i.value=!0},Y=()=>{i.value=!1,c=u=0,r("update:modelValue",!1)};onUnmounted(()=>{d(),t.autoHide&&r("destroyed",t.id)}),onMounted(()=>{nextTick(()=>{t.modelValue&&requestAF(()=>{$()})})});const X=()=>{nextTick(()=>{requestAF(()=>{I()})})};return()=>{const q=()=>{const Z=[],ee=normalizeSlot(SLOT_NAME_TOAST_TITLE,{hide:I},n);ee?Z.push(h(ee)):t.title&&Z.push(h("strong",{class:"me-auto"},t.title)),!t.noCloseButton&&Z.length!==0&&Z.push(h(_sfc_main$11,{class:["btn-close"],onClick:()=>{I()}}));const ne=[];if(Z.length>0&&ne.push(h(t.headerTag,{class:"toast-header"},{default:()=>Z})),normalizeSlot("default",{hide:I},n)||t.body){const J=h(isLink(t)?"b-link":"div",{class:["toast-body",t.bodyClass],onClick:isLink(t)?{click:X}:{}},normalizeSlot("default",{hide:I},n)||t.body);ne.push(J)}return h("div",{class:["toast",t.toastClass,s.value],tabindex:"0"},ne)};return h("div",{class:["b-toast"],id:t.id,role:a.value?null:t.isStatus?"status":"alert","aria-live":a.value?null:t.isStatus?"polite":"assertive","aria-atomic":a.value?null:"true",onmouseenter:O,onmouseleave:R},[h(_sfc_main$m,{noFade:t.noFade,onAfterEnter:V,onBeforeEnter:N,onAfterLeave:Y,onBeforeLeave:G},()=>[o.value?q():""])])}}});var Components={BAccordion:_sfc_main$1p,BAccordionItem:_sfc_main$1n,BAlert:_sfc_main$1m,BAvatar:_sfc_main$1k,BAvatarGroup:_sfc_main$1l,BBadge,BBreadcrumb:_sfc_main$1g,BBreadcrumbItem,BButton,BButtonGroup:_sfc_main$1e,BButtonToolbar:_sfc_main$1d,BCard:_sfc_main$1c,BCardBody:_sfc_main$19,BCardFooter:_sfc_main$18,BCardGroup:_sfc_main$17,BCardHeader:_sfc_main$16,BCardImg:_sfc_main$15,BCardSubTitle:_sfc_main$1a,BCardText,BCardTitle:_sfc_main$1b,BCarousel:_sfc_main$13,BCarouselSlide:_sfc_main$12,BCloseButton:_sfc_main$11,BCol,BCollapse:_sfc_main$1o,BContainer:_sfc_main$_,BDropdown:_sfc_main$Z,BDropdownDivider:_sfc_main$Y,BDropdownForm,BDropdownGroup:_sfc_main$W,BDropdownHeader,BDropdownItem:_sfc_main$U,BDropdownItemButton:_sfc_main$T,BDropdownText,BForm:_sfc_main$R,BFormCheckbox:_sfc_main$L,BFormCheckboxGroup:_sfc_main$K,BFormFloatingLabel:_sfc_main$Q,BFormGroup:_sfc_main$J,BFormInput,BFormInvalidFeedback:_sfc_main$P,BFormRadio:_sfc_main$H,BFormRadioGroup:_sfc_main$G,BFormRow:_sfc_main$O,BFormSelect:_sfc_main$D,BFormSelectOption:_sfc_main$F,BFormSelectOptionGroup:_sfc_main$E,BFormText:_sfc_main$N,BFormTextarea,BFormTag:_sfc_main$C,BFormTags:_sfc_main$B,BFormValidFeedback:_sfc_main$M,BImg:_sfc_main$z,BInputGroup:_sfc_main$y,BInputGroupAddon:_sfc_main$w,BInputGroupAppend:_sfc_main$v,BInputGroupPrepend:_sfc_main$u,BInputGroupText:_sfc_main$x,BLink,BListGroup:_sfc_main$t,BListGroupItem:_sfc_main$s,BModal:_sfc_main$r,BNav:_sfc_main$q,BNavItem:_sfc_main$p,BNavItemDropdown:_sfc_main$o,BOffcanvas:_sfc_main$n,BOverlay:_sfc_main$l,BPagination:_sfc_main$k,BPopover:_sfc_main$j,BProgress:_sfc_main$h,BProgressBar:_sfc_main$i,BRow,BSkeleton:_sfc_main$f,BSkeletonIcon:_sfc_main$e,BSkeletonTable:_sfc_main$c,BSkeletonWrapper:_sfc_main$b$1,BSpinner:_sfc_main$a$1,BTab:_sfc_main$8$1,BTable:_sfc_main$7$1,BTableSimple:_sfc_main$d,BTbody:_sfc_main$6$1,BTd:_sfc_main$5$1,BTfoot:_sfc_main$4$1,BTh:_sfc_main$3$1,BThead:_sfc_main$2$1,BTr:_sfc_main$1$1,BToast:_sfc_main$1q,BToaster:_sfc_main$$,BToastContainer:_sfc_main$$,BTabs:_sfc_main$9$1,BTransition:_sfc_main$m,BToastPlugin},BModal={mounted(t,r){let n=r.value;Object.keys(r.modifiers).length>0&&([n]=Object.keys(r.modifiers)),t.setAttribute("data-bs-toggle","modal"),t.setAttribute("data-bs-target",`#${n}`)}};const BPopover={mounted(t,r){let n="right";const i=[];r.modifiers.left?n="left":r.modifiers.right?n="right":r.modifiers.bottom?n="bottom":r.modifiers.top&&(n="top"),r.modifiers.manual?i.push("manual"):(r.modifiers.click&&i.push("click"),r.modifiers.hover&&i.push("hover"),r.modifiers.focus&&i.push("focus")),t.setAttribute("data-bs-toggle","popover"),new Popover(t,{trigger:i.length===0?"click":i.join(" "),placement:n,content:r.value})},unmounted(t){const r=Popover.getInstance(t);r==null||r.dispose()}};function resolveTrigger(t){if(t.manual)return"manual";const r=[];return t.click&&r.push("click"),t.hover&&r.push("hover"),t.focus&&r.push("focus"),r.length>0?r.join(" "):"hover focus"}function resolvePlacement(t){return t.left?"left":t.right?"right":t.bottom?"bottom":"top"}function resolveDelay(t){return t!=null&&t.delay?t.delay:0}const BTooltip={beforeMount(t,r){t.setAttribute("data-bs-toggle","tooltip");const n=/<("[^"]*"|'[^']*'|[^'">])*>/.test(t.title),i=resolveTrigger(r.modifiers),a=resolvePlacement(r.modifiers),o=resolveDelay(r.value),s=t.getAttribute("title");new Tooltip(t,{trigger:i,placement:a,delay:o,html:n}),s&&t.setAttribute("data-bs-original-title",s)},updated(t){const r=t.getAttribute("title"),n=t.getAttribute("data-bs-original-title"),i=Tooltip.getInstance(t);t.removeAttribute("title"),r&&r!==n&&(i==null||i.setContent({".tooltip-inner":r}),t.setAttribute("data-bs-original-title",r))},unmounted(t){const r=Tooltip.getInstance(t);r==null||r.dispose()}},observerInstances=new Map;function destroy(t){if(observerInstances.has(t)){const r=observerInstances.get(t);r&&r.stop&&r.stop(),observerInstances.delete(t)}}function bind$2(t,r){const n={margin:"0px",once:!1,callback:r.value};Object.keys(r.modifiers).forEach(a=>{Number.isInteger(a)?n.margin=`${a}px`:a.toLowerCase()==="once"&&(n.once=!0)}),destroy(t);const i=new VisibilityObserver(t,n.margin,n.once,n.callback,r.instance);observerInstances.set(t,i)}const BVisible={beforeMount(t,r){bind$2(t,r)},updated(t,r){bind$2(t,r)},unmounted(t){destroy(t)}};class VisibilityObserver{constructor(r,n,i,a,o){this.element=r,this.margin=n,this.once=i,this.callback=a,this.instance=o,this.createObserver()}createObserver(){if(this.observer&&this.stop(),!(this.doneOnce||typeof this.callback!="function")){try{this.observer=new IntersectionObserver(this.handler.bind(this),{root:null,rootMargin:this.margin,threshold:0})}catch{console.error("Intersection Observer not supported"),this.doneOnce=!0,this.observer=void 0,this.callback(null);return}this.instance.$nextTick(()=>{this.observer&&this.observer.observe(this.element)})}}handler(r){const[n]=r,i=Boolean(n.isIntersecting||n.intersectionRatio>0);i!==this.visible&&(this.visible=i,this.callback(i),this.once&&this.visible&&(this.doneOnce=!0,this.stop()))}stop(){this.observer&&this.observer.disconnect(),this.observer=null}}var focus={mounted(t,r){r.value!==!1&&t.focus()}},Directives={BModal,BPopover,BToggle,BTooltip,BVisible,focus};const plugin={install(t,r={}){Object.entries(Components).forEach(([n,i])=>{t.component(n,i)}),Object.entries(Directives).forEach(([n,i])=>{t.directive(n,i)}),createBreadcrumb(t)}},variables=reactive({}),progressbars=reactive({}),images=reactive({}),logs=reactive({}),lineCharts=reactive({});var ProgressBarRow_vue_vue_type_style_index_0_scoped_true_lang="",_export_sfc=(t,r)=>{const n=t.__vccOpts||t;for(const[i,a]of r)n[i]=a;return n};const _hoisted_1$4={scope:"row"},_sfc_main$b=defineComponent({__name:"ProgressBarRow",props:{k:{}},setup(t,{expose:r}){let n=ref(null),i=null,a=+new Date;const o=ref("warning"),s=t;let l=null;function u(){var R;return+new Date-a>1e4?"warning":((R=i==null?void 0:i.value)!=null?R:null)!==null?$.value>(l!=null?l:0)?"success":$.value<(l!=null?l:0)?"danger":"warning":"warning"}function c(){o.value=u(),setTimeout(c,1e4)}function d(){var O;i=n.value,n.value=progressbars[s.k],l=(O=i==null?void 0:i.value)!=null?O:0,a=+new Date}onMounted(()=>{d(),setTimeout(c,2e3)});const v=computed(()=>{var O;return(O=n.value)==null?void 0:O.total}),I=computed(()=>{var O,R;return(R=(O=n.value)==null?void 0:O.name)!=null?R:""}),$=computed(()=>{var O,R;return(R=(O=n.value)==null?void 0:O.value)!=null?R:0});return r({update:d}),(O,R)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("th",_hoisted_1$4,toDisplayString(I.value),1),createBaseVNode("td",null,[createVNode(unref(_sfc_main$h),{striped:"",animated:"",style:{height:"30px"}},{default:withCtx(()=>[createVNode(unref(_sfc_main$i),{value:$.value,variant:o.value,max:v.value},{default:withCtx(()=>[createBaseVNode("span",null,[createBaseVNode("strong",null,toDisplayString($.value)+" / "+toDisplayString(v.value),1)])]),_:1},8,["value","variant","max"])]),_:1})])],64))}});var ProgressBarRow=_export_sfc(_sfc_main$b,[["__scopeId","data-v-5ff3baf4"]]);const _hoisted_1$3={class:"table table-striped table-hover"},_sfc_main$a=defineComponent({__name:"ProgressBarTable",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[a[1]||(a[1]=createBaseVNode("h6",{class:"display-6"},"ProgressBars",-1)),createBaseVNode("table",_hoisted_1$3,[a[0]||(a[0]=createBaseVNode("thead",null,[createBaseVNode("tr",null,[createBaseVNode("th",{scope:"col",style:{width:"200px"}},"Name"),createBaseVNode("th",{scope:"col"})])],-1)),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(progressbars)),o=>(openBlock(),createElementBlock("tr",{key:o,class:"table-secondary"},[createVNode(ProgressBarRow,{k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"])]))),128))])])],64))}}),_hoisted_1$2={scope:"row"},_sfc_main$9=defineComponent({__name:"VariableRow",props:{k:{}},setup(t,{expose:r}){const n=t,i=ref(""),a=ref("");let o=null;function s(){o=variables[n.k],i.value=o.name,a.value=o.value}return onMounted(()=>{s()}),r({update:s}),(l,u)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("th",_hoisted_1$2,toDisplayString(i.value),1),createBaseVNode("td",null,toDisplayString(a.value),1)],64))}}),_hoisted_1$1={class:"table table-striped table-hover"},_sfc_main$8=defineComponent({__name:"VariableTable",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[a[1]||(a[1]=createBaseVNode("h6",{class:"display-6"},"Variables",-1)),createBaseVNode("table",_hoisted_1$1,[a[0]||(a[0]=createBaseVNode("thead",null,[createBaseVNode("tr",null,[createBaseVNode("th",{scope:"col",style:{width:"200px"}},"Name"),createBaseVNode("th",{scope:"col"},"Value")])],-1)),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(variables)),o=>(openBlock(),createElementBlock("tr",{key:o},[createVNode(_sfc_main$9,{k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"])]))),128))])])],64))}});var ImageCard_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$7=defineComponent({__name:"ImageCard",props:{k:{}},setup(t,{expose:r}){const n=t,i=ref("");function a(){i.value=images[n.k].value}return onMounted(()=>a()),r({update:a}),(o,s)=>(openBlock(),createBlock(unref(_sfc_main$1c),{"img-src":i.value,"img-alt":"NULL",class:"image-card m-1","img-top":""},{default:withCtx(()=>[createVNode(unref(_sfc_main$1b),null,{default:withCtx(()=>[createTextVNode(toDisplayString(t.k),1)]),_:1})]),_:1},8,["img-src"]))}});var ImageCard=_export_sfc(_sfc_main$7,[["__scopeId","data-v-53a10700"]]);const _sfc_main$6=defineComponent({__name:"ImageSection",setup(__props,{expose:__expose}){const subs=new Map;__expose({subs});function imageGroups(){const groups=[{}];let index=0,group_ind=0;for(const[k,image]of Object.entries(images))index!==4?(groups[group_ind][k]=image,index++):(index=1,group_ind++,eval(`groups.push({${k}: image})`));return groups}return(t,r)=>(openBlock(),createElementBlock(Fragment,null,[r[0]||(r[0]=createBaseVNode("h6",{class:"display-6"},"Images",-1)),createVNode(unref(_sfc_main$1c),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.entries(imageGroups()),([n,i])=>(openBlock(),createBlock(unref(_sfc_main$17),{key:n},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(i),a=>(openBlock(),createBlock(ImageCard,{key:a,k:a,ref_for:!0,ref:o=>unref(subs).set(a,o)},null,8,["k"]))),128))]),_:2},1024))),128))]),_:1})],64))}}),_sfc_main$5=defineComponent({__name:"LoggerCard",props:{k:{}},setup(t,{expose:r}){const n=t,i=ref(logs[n.k].value);function a(){i.value=logs[n.k].value}return r({update:a}),(o,s)=>(openBlock(),createBlock(unref(_sfc_main$1c),null,{default:withCtx(()=>[createVNode(unref(_sfc_main$1c),{title:t.k},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(i.value,l=>(openBlock(),createBlock(unref(BCardText),{key:l},{default:withCtx(()=>[createTextVNode(toDisplayString(l),1)]),_:2},1024))),128))]),_:1},8,["title"])]),_:1}))}}),_sfc_main$4=defineComponent({__name:"LoggerSection",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[a[0]||(a[0]=createBaseVNode("h6",{class:"display-6"},"Logs",-1)),(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(logs)),o=>(openBlock(),createBlock(_sfc_main$5,{key:o,k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"]))),128))],64))}});/*! *****************************************************************************
109
+ Copyright (c) Microsoft Corporation.
110
+
111
+ Permission to use, copy, modify, and/or distribute this software for any
112
+ purpose with or without fee is hereby granted.
113
+
114
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
115
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
116
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
117
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
118
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
119
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
120
+ PERFORMANCE OF THIS SOFTWARE.
121
+ ***************************************************************************** */var extendStatics=function(t,r){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},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)}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:!env.hasGlobalWindow||"Deno"in window?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect(t,r){var n=r.browser,i=t.match(/Firefox\/([\d.]+)/),a=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),a&&(n.ie=!0,n.version=a[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),s&&(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 l=document.documentElement.style;r.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),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 i=String.fromCharCode(n+32),a=(t.charCodeAt(n)-OFFSET)/SCALE;r[i]=a}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,i){if(!t){var a=platformApi.createCanvas();t=a&&a.getContext("2d")}if(t)return r!==i&&(r=t.font=i||DEFAULT_FONT),t.measureText(n);n=n||"",i=i||DEFAULT_FONT;var o=/((?:\d+)?\.?\d*)px/.exec(i),s=o&&+o[1]||DEFAULT_FONT_SIZE,l=0;if(i.indexOf("mono")>=0)l=s*n.length;else for(var u=0;u<n.length;u++){var c=DEFAULT_TEXT_WIDTH_MAP[n[u]];l+=c==null?s:c*s}return{width:l}}}(),loadImage:function(t,r,n){var i=new Image;return i.onload=r,i.onerror=n,i.src=t,i}},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$2(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 i=0,a=t.length;i<a;i++)r[i]=clone$2(t[i])}}else if(TYPED_ARRAY[n]){if(!isPrimitive(t)){var o=t.constructor;if(o.from)r=o.from(t);else{r=new o(t.length);for(var i=0,a=t.length;i<a;i++)r[i]=t[i]}}}else if(!BUILTIN_OBJECT[n]&&!isPrimitive(t)&&!isDom(t)){r={};for(var s in t)t.hasOwnProperty(s)&&s!==protoKey&&(r[s]=clone$2(t[s]))}return r}function merge(t,r,n){if(!isObject$2(r)||!isObject$2(t))return n?clone$2(r):t;for(var i in r)if(r.hasOwnProperty(i)&&i!==protoKey){var a=t[i],o=r[i];isObject$2(o)&&isObject$2(a)&&!isArray(o)&&!isArray(a)&&!isDom(o)&&!isDom(a)&&!isBuiltInObject(o)&&!isBuiltInObject(a)&&!isPrimitive(o)&&!isPrimitive(a)?merge(a,o,n):(n||!(i in t))&&(t[i]=clone$2(r[i]))}return t}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 i=keys(r),a=0,o=i.length;a<o;a++){var s=i[a];(n?r[s]!=null:t[s]==null)&&(t[s]=r[s])}return t}function indexOf(t,r){if(t){if(t.indexOf)return t.indexOf(r);for(var n=0,i=t.length;n<i;n++)if(t[n]===r)return n}return-1}function inherits(t,r){var n=t.prototype;function i(){}i.prototype=r.prototype,t.prototype=new i;for(var a in n)n.hasOwnProperty(a)&&(t.prototype[a]=n[a]);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 i=Object.getOwnPropertyNames(r),a=0;a<i.length;a++){var o=i[a];o!=="constructor"&&(n?r[o]!=null:t[o]==null)&&(t[o]=r[o])}else defaults(t,r,n)}function isArrayLike(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function each$4(t,r,n){if(!!(t&&r))if(t.forEach&&t.forEach===nativeForEach)t.forEach(r,n);else if(t.length===+t.length)for(var i=0,a=t.length;i<a;i++)r.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&r.call(n,t[o],o,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 i=[],a=0,o=t.length;a<o;a++)i.push(r.call(n,t[a],a,t));return i}function reduce(t,r,n,i){if(!!(t&&r)){for(var a=0,o=t.length;a<o;a++)n=r.call(i,n,t[a],a,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 i=[],a=0,o=t.length;a<o;a++)r.call(n,t[a],a,t)&&i.push(t[a]);return i}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=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];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(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$2(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 eqNaN(t){return t!==t}function retrieve(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n=0,i=t.length;n<i;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(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 i in n)n.hasOwnProperty(i)&&r(n[i],i)},t}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function t(r){var n=isArray(r);this.data=maybeNativeMap();var i=this;r instanceof t?r.each(a):r&&each$4(r,a);function a(o,s){n?i.set(o,s):i.set(s,o)}}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(i,a){r.call(n,i,a)})},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),i=0;i<t.length;i++)n[i]=t[i];for(var a=t.length,i=0;i<r.length;i++)n[i+a]=r[i];return n}function createObject(t,r){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}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;function create$1(t,r){return t==null&&(t=0),r==null&&(r=0),[t,r]}function clone$1(t){return[t[0],t[1]]}function add(t,r,n){return t[0]=r[0]+n[0],t[1]=r[1]+n[1],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))}function lenSquare(t){return t[0]*t[0]+t[1]*t[1]}function scale$2(t,r,n){return t[0]=r[0]*n,t[1]=r[1]*n,t}function normalize$1(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 applyTransform$1(t,r,n){var i=r[0],a=r[1];return t[0]=n[0]*i+n[2]*a+n[4],t[1]=n[1]*i+n[3]*a+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 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 i=r.offsetX,a=r.offsetY,o=i-this._x,s=a-this._y;this._x=i,this._y=a,n.drift(o,s,r),this.handler.dispatchToElement(new Param(n,r),"drag",r.event);var l=this.handler.findHover(i,a,n).target,u=this._dropTarget;this._dropTarget=l,n!==l&&(u&&l!==u&&this.handler.dispatchToElement(new Param(u,r),"dragleave",r.event),l&&l!==u&&this.handler.dispatchToElement(new Param(l,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,i,a){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(a=i,i=n,n=null),!i||!r)return this;var s=this._$eventProcessor;n!=null&&s&&s.normalizeQuery&&(n=s.normalizeQuery(n)),o[r]||(o[r]=[]);for(var l=0;l<o[r].length;l++)if(o[r][l].h===i)return this;var u={h:i,query:n,ctx:a||this,callAtLast:i.zrEventfulCallAtLast},c=o[r].length-1,d=o[r][c];return d&&d.callAtLast?o[r].splice(c,0,u):o[r].push(u),this},t.prototype.isSilent=function(r){var n=this._$handlers;return!n||!n[r]||!n[r].length},t.prototype.off=function(r,n){var i=this._$handlers;if(!i)return this;if(!r)return this._$handlers={},this;if(n){if(i[r]){for(var a=[],o=0,s=i[r].length;o<s;o++)i[r][o].h!==n&&a.push(i[r][o]);i[r]=a}i[r]&&i[r].length===0&&delete i[r]}else delete i[r];return this},t.prototype.trigger=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[r],o=this._$eventProcessor;if(a)for(var s=n.length,l=a.length,u=0;u<l;u++){var c=a[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(r,c.query)))switch(s){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,n[0]);break;case 2:c.h.call(c.ctx,n[0],n[1]);break;default:c.h.apply(c.ctx,n);break}}return o&&o.afterTrigger&&o.afterTrigger(r),this},t.prototype.triggerWithContext=function(r){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];if(!this._$handlers)return this;var a=this._$handlers[r],o=this._$eventProcessor;if(a)for(var s=n.length,l=n[s-1],u=a.length,c=0;c<u;c++){var d=a[c];if(!(o&&o.filter&&d.query!=null&&!o.filter(r,d.query)))switch(s){case 0:d.h.call(l);break;case 1:d.h.call(l,n[0]);break;case 2:d.h.call(l,n[0],n[1]);break;default:d.h.apply(l,n.slice(1,s-1));break}}return o&&o.afterTrigger&&o.afterTrigger(r),this},t}(),Eventful$1=Eventful,LN2=Math.log(2);function determinant(t,r,n,i,a,o){var s=i+"-"+a,l=t.length;if(o.hasOwnProperty(s))return o[s];if(r===1){var u=Math.round(Math.log((1<<l)-1&~a)/LN2);return t[n][u]}for(var c=i|1<<n,d=n+1;i&1<<d;)d++;for(var v=0,I=0,$=0;I<l;I++){var O=1<<I;O&a||(v+=($%2?-1:1)*t[n][I]*determinant(t,r-1,d,c,a|O,o),$++)}return o[s]=v,v}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]]],i={},a=determinant(n,8,0,0,0,i);if(a!==0){for(var o=[],s=0;s<8;s++)for(var l=0;l<8;l++)o[l]==null&&(o[l]=0),o[l]+=((s+l)%2?-1:1)*determinant(n,7,s===0?1:0,1<<s,1<<l,i)/a*r[s];return function(u,c,d){var v=c*o[6]+d*o[7]+1;u[0]=(c*o[0]+d*o[1]+o[2])/v,u[1]=(c*o[3]+d*o[4]+o[5])/v}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord(t,r,n,i,a){return transformCoordWithViewport(_calcOut$1,r,i,a,!0)&&transformCoordWithViewport(t,n,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport(t,r,n,i,a){if(r.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(r)){var o=r[EVENT_SAVED_PROP]||(r[EVENT_SAVED_PROP]={}),s=prepareCoordMarkers(r,o),l=preparePointerTransformer(s,o,a);if(l)return l(t,n,i),!0}return!1}function prepareCoordMarkers(t,r){var n=r.markers;if(n)return n;n=r.markers=[];for(var i=["left","right"],a=["top","bottom"],o=0;o<4;o++){var s=document.createElement("div"),l=s.style,u=o%2,c=(o>>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[u]+":0",a[c]+":0",i[1-u]+":auto",a[1-c]+":auto",""].join("!important;"),t.appendChild(s),n.push(s)}return n}function preparePointerTransformer(t,r,n){for(var i=n?"invTrans":"trans",a=r[i],o=r.srcCoords,s=[],l=[],u=!0,c=0;c<4;c++){var d=t[c].getBoundingClientRect(),v=2*c,I=d.left,$=d.top;s.push(I,$),u=u&&o&&I===o[v]&&$===o[v+1],l.push(t[c].offsetLeft,t[c].offsetTop)}return u&&a?a:(r.srcCoords=s,r[i]=n?buildTransformer(l,s):buildTransformer(s,l))}function isCanvasEl(t){return t.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};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,i){return n=n||{},i?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 i=r.clientX,a=r.clientY;if(isCanvasEl(t)){var o=t.getBoundingClientRect();n.zrX=i-o.left,n.zrY=a-o.top;return}else if(transformCoordWithViewport(_calcOut,t,i,a)){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 i=r.type,a=i&&i.indexOf("touch")>=0;if(a){var s=i!=="touchend"?r.targetTouches[0]:r.changedTouches[0];s&&clientToLocal(t,s,r,n)}else{clientToLocal(t,r,r,n);var o=getWheelDeltaMayPolyfill(r);r.zrDelta=o?o/120:-(r.detail||0)/3}var l=r.button;return r.which==null&&l!==void 0&&MOUSE_EVENT_REG.test(r.type)&&(r.which=l&1?1:l&2?3:l&4?2:0),r}function getWheelDeltaMayPolyfill(t){var r=t.wheelDelta;if(r)return r;var n=t.deltaX,i=t.deltaY;if(n==null||i==null)return r;var a=Math.abs(i!==0?i:n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*a*o}function addEventListener(t,r,n,i){t.addEventListener(r,n,i)}function removeEventListener(t,r,n,i){t.removeEventListener(r,n,i)}var stop=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0},GestureMgr=function(){function t(){this._track=[]}return t.prototype.recognize=function(r,n,i){return this._doTrack(r,n,i),this._recognize(r)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(r,n,i){var a=r.touches;if(!!a){for(var o={points:[],touches:[],target:n,event:r},s=0,l=a.length;s<l;s++){var u=a[s],c=clientToLocal(i,u,{});o.points.push([c.zrX,c.zrY]),o.touches.push(u)}this._track.push(o)}},t.prototype._recognize=function(r){for(var n in recognizers)if(recognizers.hasOwnProperty(n)){var i=recognizers[n](this._track,r);if(i)return i}},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(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 i=(t[n-1]||{}).points,a=(t[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var o=dist(i)/dist(a);!isFinite(o)&&(o=1),r.pinchScale=o;var s=center(i);return r.pinchX=s[0],r.pinchY=s[1],{type:"pinch",target:t[0].target,event:r}}}}};function create(){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 i=r[0]*n[0]+r[2]*n[1],a=r[1]*n[0]+r[3]*n[1],o=r[0]*n[2]+r[2]*n[3],s=r[1]*n[2]+r[3]*n[3],l=r[0]*n[4]+r[2]*n[5]+r[4],u=r[1]*n[4]+r[3]*n[5]+r[5];return t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=l,t[5]=u,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,i){i===void 0&&(i=[0,0]);var a=r[0],o=r[2],s=r[4],l=r[1],u=r[3],c=r[5],d=Math.sin(n),v=Math.cos(n);return t[0]=a*v+l*d,t[1]=-a*d+l*v,t[2]=o*v+u*d,t[3]=-o*d+v*u,t[4]=v*(s-i[0])+d*(c-i[1])+i[0],t[5]=v*(c-i[1])-d*(s-i[0])+i[1],t}function scale$1(t,r,n){var i=n[0],a=n[1];return t[0]=r[0]*i,t[1]=r[1]*a,t[2]=r[2]*i,t[3]=r[3]*a,t[4]=r[4]*i,t[5]=r[5]*a,t}function invert(t,r){var n=r[0],i=r[2],a=r[4],o=r[1],s=r[3],l=r[5],u=n*s-o*i;return u?(u=1/u,t[0]=s*u,t[1]=-o*u,t[2]=-i*u,t[3]=n*u,t[4]=(i*l-s*a)*u,t[5]=(o*a-n*l)*u,t):null}var 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,i=this.y-r.y;return Math.sqrt(n*n+i*i)},t.prototype.distanceSquare=function(r){var n=this.x-r.x,i=this.y-r.y;return n*n+i*i},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,i=this.y;return this.x=r[0]*n+r[2]*i+r[4],this.y=r[1]*n+r[3]*i+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,i){r.x=n,r.y=i},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,i){r.x=n.x+i.x,r.y=n.y+i.y},t.sub=function(r,n,i){r.x=n.x-i.x,r.y=n.y-i.y},t.scale=function(r,n,i){r.x=n.x*i,r.y=n.y*i},t.scaleAndAdd=function(r,n,i,a){r.x=n.x+i.x*a,r.y=n.y+i.y*a},t.lerp=function(r,n,i,a){var o=1-a;r.x=o*n.x+a*i.x,r.y=o*n.y+a*i.y},t}(),Point$1=Point,mathMin$5=Math.min,mathMax$5=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,i,a){i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),this.x=r,this.y=n,this.width=i,this.height=a}return t.prototype.union=function(r){var n=mathMin$5(r.x,this.x),i=mathMin$5(r.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$5(r.x+r.width,this.x+this.width)-n:this.width=r.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$5(r.y+r.height,this.y+this.height)-i:this.height=r.height,this.x=n,this.y=i},t.prototype.applyTransform=function(r){t.applyTransform(this,this,r)},t.prototype.calculateTransform=function(r){var n=this,i=r.width/n.width,a=r.height/n.height,o=create();return translate(o,o,[-n.x,-n.y]),scale$1(o,o,[i,a]),translate(o,o,[r.x,r.y]),o},t.prototype.intersect=function(r,n){if(!r)return!1;r instanceof t||(r=t.create(r));var i=this,a=i.x,o=i.x+i.width,s=i.y,l=i.y+i.height,u=r.x,c=r.x+r.width,d=r.y,v=r.y+r.height,I=!(o<u||c<a||l<d||v<s);if(n){var $=1/0,O=0,R=Math.abs(o-u),M=Math.abs(c-a),N=Math.abs(l-d),V=Math.abs(v-s),G=Math.min(R,M),Y=Math.min(N,V);o<u||c<a?G>O&&(O=G,R<M?Point$1.set(maxTv$1,-R,0):Point$1.set(maxTv$1,M,0)):G<$&&($=G,R<M?Point$1.set(minTv$1,R,0):Point$1.set(minTv$1,-M,0)),l<d||v<s?Y>O&&(O=Y,N<V?Point$1.set(maxTv$1,0,-N):Point$1.set(maxTv$1,0,V)):G<$&&($=G,N<V?Point$1.set(minTv$1,0,N):Point$1.set(minTv$1,0,-V))}return n&&Point$1.copy(n,I?minTv$1:maxTv$1),I},t.prototype.contain=function(r,n){var i=this;return r>=i.x&&r<=i.x+i.width&&n>=i.y&&n<=i.y+i.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,i){if(!i){r!==n&&t.copy(r,n);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var a=i[0],o=i[3],s=i[4],l=i[5];r.x=n.x*a+s,r.y=n.y*o+l,r.width=n.width*a,r.height=n.height*o,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(i),rt.transform(i),rb.transform(i),lb.transform(i),r.x=mathMin$5(lt.x,rb.x,lb.x,rt.x),r.y=mathMin$5(lt.y,rb.y,lb.y,rt.y);var u=mathMax$5(lt.x,rb.x,lb.x,rt.x),c=mathMax$5(lt.y,rb.y,lb.y,rt.y);r.width=u-r.x,r.height=c-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,i,a,o,s){var l=t.call(this)||this;return l._hovered=new HoveredResult(0,0),l.storage=n,l.painter=i,l.painterRoot=o,l._pointerSize=s,a=a||new EmptyProxy,l.proxy=null,l.setHandlerProxy(a),l._draggingMgr=new Draggable$1(l),l}return r.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(each$4(handlerNames,function(i){n.on&&n.on(i,this[i],this)},this),n.handler=this),this.proxy=n},r.prototype.mousemove=function(n){var i=n.zrX,a=n.zrY,o=isOutsideBoundary(this,i,a),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var u=this._hovered=o?new HoveredResult(i,a):this.findHover(i,a),c=u.target,d=this.proxy;d.setCursor&&d.setCursor(c?c.cursor:"default"),l&&c!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(u,"mousemove",n),c&&c!==l&&this.dispatchToElement(u,"mouseover",n)},r.prototype.mouseout=function(n){var i=n.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},r.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},r.prototype.dispatch=function(n,i){var a=this[n];a&&a.call(this,i)},r.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},r.prototype.setCursorStyle=function(n){var i=this.proxy;i.setCursor&&i.setCursor(n)},r.prototype.dispatchToElement=function(n,i,a){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var s="on"+i,l=makeEventPacket(i,n,a);o&&(o[s]&&(l.cancelBubble=!!o[s].call(o,l)),o.trigger(i,l),o=o.__hostTarget?o.__hostTarget:o.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(i,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(u){typeof u[s]=="function"&&u[s].call(u,l),u.trigger&&u.trigger(i,l)}))}},r.prototype.findHover=function(n,i,a){var o=this.storage.getDisplayList(),s=new HoveredResult(n,i);if(setHoverTarget(o,s,n,i,a),this._pointerSize&&!s.target){for(var l=[],u=this._pointerSize,c=u/2,d=new BoundingRect$1(n-c,i-c,u,u),v=o.length-1;v>=0;v--){var I=o[v];I!==a&&!I.ignore&&!I.ignoreCoarsePointer&&(!I.parent||!I.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(I.getBoundingRect()),I.transform&&tmpRect$1.applyTransform(I.transform),tmpRect$1.intersect(d)&&l.push(I))}if(l.length)for(var $=4,O=Math.PI/12,R=Math.PI*2,M=0;M<c;M+=$)for(var N=0;N<R;N+=O){var V=n+M*Math.cos(N),G=i+M*Math.sin(N);if(setHoverTarget(l,s,V,G,a),s.target)return s}}return s},r.prototype.processGesture=function(n,i){this._gestureMgr||(this._gestureMgr=new GestureMgr);var a=this._gestureMgr;i==="start"&&a.clear();var o=a.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(i==="end"&&a.clear(),o){var s=o.type;n.gestureEvent=s;var l=new HoveredResult;l.target=o.target,this.dispatchToElement(l,s,o.event)}},r}(Eventful$1);each$4(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Handler.prototype[t]=function(r){var n=r.zrX,i=r.zrY,a=isOutsideBoundary(this,n,i),o,s;if((t!=="mouseup"||!a)&&(o=this.findHover(n,i),s=o.target),t==="mousedown")this._downEl=s,this._downPoint=[r.zrX,r.zrY],this._upEl=s;else if(t==="mouseup")this._upEl=s;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(o,t,r)}});function isHover(t,r,n){if(t[t.rectHover?"rectContain":"contain"](r,n)){for(var i=t,a=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var s=i.getClipPath();if(s&&!s.contain(r,n))return!1}i.silent&&(a=!0);var l=i.__hostTarget;i=l||i.parent}return a?SILENT:!0}return!1}function setHoverTarget(t,r,n,i,a){for(var o=t.length-1;o>=0;o--){var s=t[o],l=void 0;if(s!==a&&!s.ignore&&(l=isHover(s,n,i))&&(!r.topTarget&&(r.topTarget=s),l!==SILENT)){r.target=s;break}}}function isOutsideBoundary(t,r,n){var i=t.painter;return r<0||r>i.getWidth()||n<0||n>i.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,i){var a=r+1;if(a===n)return 1;if(i(t[a++],t[r])<0){for(;a<n&&i(t[a],t[a-1])<0;)a++;reverseRun(t,r,a)}else for(;a<n&&i(t[a],t[a-1])>=0;)a++;return a-r}function reverseRun(t,r,n){for(n--;r<n;){var i=t[r];t[r++]=t[n],t[n--]=i}}function binaryInsertionSort(t,r,n,i,a){for(i===r&&i++;i<n;i++){for(var o=t[i],s=r,l=i,u;s<l;)u=s+l>>>1,a(o,t[u])<0?l=u:s=u+1;var c=i-s;switch(c){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;c>0;)t[s+c]=t[s+c-1],c--}t[s]=o}}function gallopLeft(t,r,n,i,a,o){var s=0,l=0,u=1;if(o(t,r[n+a])>0){for(l=i-a;u<l&&o(t,r[n+a+u])>0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l),s+=a,u+=a}else{for(l=a+1;u<l&&o(t,r[n+a-u])<=0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l);var c=s;s=a-u,u=a-c}for(s++;s<u;){var d=s+(u-s>>>1);o(t,r[n+d])>0?s=d+1:u=d}return u}function gallopRight(t,r,n,i,a,o){var s=0,l=0,u=1;if(o(t,r[n+a])<0){for(l=a+1;u<l&&o(t,r[n+a-u])<0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l);var c=s;s=a-u,u=a-c}else{for(l=i-a;u<l&&o(t,r[n+a+u])>=0;)s=u,u=(u<<1)+1,u<=0&&(u=l);u>l&&(u=l),s+=a,u+=a}for(s++;s<u;){var d=s+(u-s>>>1);o(t,r[n+d])<0?u=d:s=d+1}return u}function TimSort(t,r){var n=DEFAULT_MIN_GALLOPING,i,a,o=0,s=[];i=[],a=[];function l($,O){i[o]=$,a[o]=O,o+=1}function u(){for(;o>1;){var $=o-2;if($>=1&&a[$-1]<=a[$]+a[$+1]||$>=2&&a[$-2]<=a[$]+a[$-1])a[$-1]<a[$+1]&&$--;else if(a[$]>a[$+1])break;d($)}}function c(){for(;o>1;){var $=o-2;$>0&&a[$-1]<a[$+1]&&$--,d($)}}function d($){var O=i[$],R=a[$],M=i[$+1],N=a[$+1];a[$]=R+N,$===o-3&&(i[$+1]=i[$+2],a[$+1]=a[$+2]),o--;var V=gallopRight(t[M],t,O,R,0,r);O+=V,R-=V,R!==0&&(N=gallopLeft(t[O+R-1],t,M,N,N-1,r),N!==0&&(R<=N?v(O,R,M,N):I(O,R,M,N)))}function v($,O,R,M){var N=0;for(N=0;N<O;N++)s[N]=t[$+N];var V=0,G=R,Y=$;if(t[Y++]=t[G++],--M===0){for(N=0;N<O;N++)t[Y+N]=s[V+N];return}if(O===1){for(N=0;N<M;N++)t[Y+N]=t[G+N];t[Y+M]=s[V];return}for(var X=n,q,Z,ee;;){q=0,Z=0,ee=!1;do if(r(t[G],s[V])<0){if(t[Y++]=t[G++],Z++,q=0,--M===0){ee=!0;break}}else if(t[Y++]=s[V++],q++,Z=0,--O===1){ee=!0;break}while((q|Z)<X);if(ee)break;do{if(q=gallopRight(t[G],s,V,O,0,r),q!==0){for(N=0;N<q;N++)t[Y+N]=s[V+N];if(Y+=q,V+=q,O-=q,O<=1){ee=!0;break}}if(t[Y++]=t[G++],--M===0){ee=!0;break}if(Z=gallopLeft(s[V],t,G,M,0,r),Z!==0){for(N=0;N<Z;N++)t[Y+N]=t[G+N];if(Y+=Z,G+=Z,M-=Z,M===0){ee=!0;break}}if(t[Y++]=s[V++],--O===1){ee=!0;break}X--}while(q>=DEFAULT_MIN_GALLOPING||Z>=DEFAULT_MIN_GALLOPING);if(ee)break;X<0&&(X=0),X+=2}if(n=X,n<1&&(n=1),O===1){for(N=0;N<M;N++)t[Y+N]=t[G+N];t[Y+M]=s[V]}else{if(O===0)throw new Error;for(N=0;N<O;N++)t[Y+N]=s[V+N]}}function I($,O,R,M){var N=0;for(N=0;N<M;N++)s[N]=t[R+N];var V=$+O-1,G=M-1,Y=R+M-1,X=0,q=0;if(t[Y--]=t[V--],--O===0){for(X=Y-(M-1),N=0;N<M;N++)t[X+N]=s[N];return}if(M===1){for(Y-=O,V-=O,q=Y+1,X=V+1,N=O-1;N>=0;N--)t[q+N]=t[X+N];t[Y]=s[G];return}for(var Z=n;;){var ee=0,ne=0,J=!1;do if(r(s[G],t[V])<0){if(t[Y--]=t[V--],ee++,ne=0,--O===0){J=!0;break}}else if(t[Y--]=s[G--],ne++,ee=0,--M===1){J=!0;break}while((ee|ne)<Z);if(J)break;do{if(ee=O-gallopRight(s[G],t,$,O,O-1,r),ee!==0){for(Y-=ee,V-=ee,O-=ee,q=Y+1,X=V+1,N=ee-1;N>=0;N--)t[q+N]=t[X+N];if(O===0){J=!0;break}}if(t[Y--]=s[G--],--M===1){J=!0;break}if(ne=M-gallopLeft(t[V],s,0,M,M-1,r),ne!==0){for(Y-=ne,G-=ne,M-=ne,q=Y+1,X=G+1,N=0;N<ne;N++)t[q+N]=s[X+N];if(M<=1){J=!0;break}}if(t[Y--]=t[V--],--O===0){J=!0;break}Z--}while(ee>=DEFAULT_MIN_GALLOPING||ne>=DEFAULT_MIN_GALLOPING);if(J)break;Z<0&&(Z=0),Z+=2}if(n=Z,n<1&&(n=1),M===1){for(Y-=O,V-=O,q=Y+1,X=V+1,N=O-1;N>=0;N--)t[q+N]=t[X+N];t[Y]=s[G]}else{if(M===0)throw new Error;for(X=Y-(M-1),N=0;N<M;N++)t[X+N]=s[N]}}return{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function sort(t,r,n,i){n||(n=0),i||(i=t.length);var a=i-n;if(!(a<2)){var o=0;if(a<DEFAULT_MIN_MERGE){o=makeAscendingRun(t,n,i,r),binaryInsertionSort(t,n,i,n+o,r);return}var s=TimSort(t,r),l=minRunLength(a);do{if(o=makeAscendingRun(t,n,i,r),o<l){var u=a;u>l&&(u=l),binaryInsertionSort(t,n,n+u,n+o,r),o=u}s.pushRun(n,o),s.mergeRuns(),a-=o,n+=o}while(a!==0);s.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 i=0;i<this._roots.length;i++)this._roots[i].traverse(r,n)},t.prototype.getDisplayList=function(r,n){n=n||!1;var i=this._displayList;return(r||!i.length)&&this.updateDisplayList(n),i},t.prototype.updateDisplayList=function(r){this._displayListLen=0;for(var n=this._roots,i=this._displayList,a=0,o=n.length;a<o;a++)this._updateAndAddDisplayable(n[a],null,r);i.length=this._displayListLen,sort(i,shapeCompareFunc)},t.prototype._updateAndAddDisplayable=function(r,n,i){if(!(r.ignore&&!i)){r.beforeUpdate(),r.update(),r.afterUpdate();var a=r.getClipPath();if(r.ignoreClip)n=null;else if(a){n?n=n.slice():n=[];for(var o=a,s=r;o;)o.parent=s,o.updateTransform(),n.push(o),s=o,o=o.getClipPath()}if(r.childrenRef){for(var l=r.childrenRef(),u=0;u<l.length;u++){var c=l[u];r.__dirty&&(c.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(c,n,i)}r.__dirty=0}else{var d=r;n&&n.length?d.__clipPaths=n:d.__clipPaths&&d.__clipPaths.length>0&&(d.__clipPaths=[]),isNaN(d.z)&&(logInvalidZError(),d.z=0),isNaN(d.z2)&&(logInvalidZError(),d.z2=0),isNaN(d.zlevel)&&(logInvalidZError(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var v=r.getDecalElement&&r.getDecalElement();v&&this._updateAndAddDisplayable(v,n,i);var I=r.getTextGuideLine();I&&this._updateAndAddDisplayable(I,n,i);var $=r.getTextContent();$&&this._updateAndAddDisplayable($,n,i)}},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,i=r.length;n<i;n++)this.delRoot(r[n]);return}var a=indexOf(this._roots,r);a>=0&&this._roots.splice(a,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$2;requestAnimationFrame$2=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$3=requestAnimationFrame$2,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,i=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=i/4):r=i*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/i)))},elasticOut:function(t){var r,n=.1,i=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=i/4):r=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-r)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var r,n=.1,i=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,r=i/4):r=i*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)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/i)*.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$1=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$2=1e-8,EPSILON_NUMERIC=1e-4,THREE_SQRT=mathSqrt$3(3),ONE_THIRD=1/3,_v0=create$1(),_v1=create$1(),_v2=create$1();function isAroundZero(t){return t>-EPSILON$2&&t<EPSILON$2}function isNotAroundZero$1(t){return t>EPSILON$2||t<-EPSILON$2}function cubicAt(t,r,n,i,a){var o=1-a;return o*o*(o*t+3*a*r)+a*a*(a*i+3*o*n)}function cubicDerivativeAt(t,r,n,i,a){var o=1-a;return 3*(((r-t)*o+2*(n-r)*a)*o+(i-n)*a*a)}function cubicRootAt(t,r,n,i,a,o){var s=i+3*(r-n)-t,l=3*(n-r*2+t),u=3*(r-t),c=t-a,d=l*l-3*s*u,v=l*u-9*s*c,I=u*u-3*l*c,$=0;if(isAroundZero(d)&&isAroundZero(v))if(isAroundZero(l))o[0]=0;else{var O=-u/l;O>=0&&O<=1&&(o[$++]=O)}else{var R=v*v-4*d*I;if(isAroundZero(R)){var M=v/d,O=-l/s+M,N=-M/2;O>=0&&O<=1&&(o[$++]=O),N>=0&&N<=1&&(o[$++]=N)}else if(R>0){var V=mathSqrt$3(R),G=d*l+1.5*s*(-v+V),Y=d*l+1.5*s*(-v-V);G<0?G=-mathPow$1(-G,ONE_THIRD):G=mathPow$1(G,ONE_THIRD),Y<0?Y=-mathPow$1(-Y,ONE_THIRD):Y=mathPow$1(Y,ONE_THIRD);var O=(-l-(G+Y))/(3*s);O>=0&&O<=1&&(o[$++]=O)}else{var X=(2*d*l-3*s*v)/(2*mathSqrt$3(d*d*d)),q=Math.acos(X)/3,Z=mathSqrt$3(d),ee=Math.cos(q),O=(-l-2*Z*ee)/(3*s),N=(-l+Z*(ee+THREE_SQRT*Math.sin(q)))/(3*s),ne=(-l+Z*(ee-THREE_SQRT*Math.sin(q)))/(3*s);O>=0&&O<=1&&(o[$++]=O),N>=0&&N<=1&&(o[$++]=N),ne>=0&&ne<=1&&(o[$++]=ne)}}return $}function cubicExtrema(t,r,n,i,a){var o=6*n-12*r+6*t,s=9*r+3*i-3*t-9*n,l=3*r-3*t,u=0;if(isAroundZero(s)){if(isNotAroundZero$1(o)){var c=-l/o;c>=0&&c<=1&&(a[u++]=c)}}else{var d=o*o-4*s*l;if(isAroundZero(d))a[0]=-o/(2*s);else if(d>0){var v=mathSqrt$3(d),c=(-o+v)/(2*s),I=(-o-v)/(2*s);c>=0&&c<=1&&(a[u++]=c),I>=0&&I<=1&&(a[u++]=I)}}return u}function cubicSubdivide(t,r,n,i,a,o){var s=(r-t)*a+t,l=(n-r)*a+r,u=(i-n)*a+n,c=(l-s)*a+s,d=(u-l)*a+l,v=(d-c)*a+c;o[0]=t,o[1]=s,o[2]=c,o[3]=v,o[4]=v,o[5]=d,o[6]=u,o[7]=i}function cubicProjectPoint(t,r,n,i,a,o,s,l,u,c,d){var v,I=.005,$=1/0,O,R,M,N;_v0[0]=u,_v0[1]=c;for(var V=0;V<1;V+=.05)_v1[0]=cubicAt(t,n,a,s,V),_v1[1]=cubicAt(r,i,o,l,V),M=distSquare(_v0,_v1),M<$&&(v=V,$=M);$=1/0;for(var G=0;G<32&&!(I<EPSILON_NUMERIC);G++)O=v-I,R=v+I,_v1[0]=cubicAt(t,n,a,s,O),_v1[1]=cubicAt(r,i,o,l,O),M=distSquare(_v1,_v0),O>=0&&M<$?(v=O,$=M):(_v2[0]=cubicAt(t,n,a,s,R),_v2[1]=cubicAt(r,i,o,l,R),N=distSquare(_v2,_v0),R<=1&&N<$?(v=R,$=N):I*=.5);return d&&(d[0]=cubicAt(t,n,a,s,v),d[1]=cubicAt(r,i,o,l,v)),mathSqrt$3($)}function cubicLength(t,r,n,i,a,o,s,l,u){for(var c=t,d=r,v=0,I=1/u,$=1;$<=u;$++){var O=$*I,R=cubicAt(t,n,a,s,O),M=cubicAt(r,i,o,l,O),N=R-c,V=M-d;v+=Math.sqrt(N*N+V*V),c=R,d=M}return v}function quadraticAt(t,r,n,i){var a=1-i;return a*(a*t+2*i*r)+i*i*n}function quadraticDerivativeAt(t,r,n,i){return 2*((1-i)*(r-t)+i*(n-r))}function quadraticRootAt(t,r,n,i,a){var o=t-2*r+n,s=2*(r-t),l=t-i,u=0;if(isAroundZero(o)){if(isNotAroundZero$1(s)){var c=-l/s;c>=0&&c<=1&&(a[u++]=c)}}else{var d=s*s-4*o*l;if(isAroundZero(d)){var c=-s/(2*o);c>=0&&c<=1&&(a[u++]=c)}else if(d>0){var v=mathSqrt$3(d),c=(-s+v)/(2*o),I=(-s-v)/(2*o);c>=0&&c<=1&&(a[u++]=c),I>=0&&I<=1&&(a[u++]=I)}}return u}function quadraticExtremum(t,r,n){var i=t+n-2*r;return i===0?.5:(t-r)/i}function quadraticSubdivide(t,r,n,i,a){var o=(r-t)*i+t,s=(n-r)*i+r,l=(s-o)*i+o;a[0]=t,a[1]=o,a[2]=l,a[3]=l,a[4]=s,a[5]=n}function quadraticProjectPoint(t,r,n,i,a,o,s,l,u){var c,d=.005,v=1/0;_v0[0]=s,_v0[1]=l;for(var I=0;I<1;I+=.05){_v1[0]=quadraticAt(t,n,a,I),_v1[1]=quadraticAt(r,i,o,I);var $=distSquare(_v0,_v1);$<v&&(c=I,v=$)}v=1/0;for(var O=0;O<32&&!(d<EPSILON_NUMERIC);O++){var R=c-d,M=c+d;_v1[0]=quadraticAt(t,n,a,R),_v1[1]=quadraticAt(r,i,o,R);var $=distSquare(_v1,_v0);if(R>=0&&$<v)c=R,v=$;else{_v2[0]=quadraticAt(t,n,a,M),_v2[1]=quadraticAt(r,i,o,M);var N=distSquare(_v2,_v0);M<=1&&N<v?(c=M,v=N):d*=.5}}return u&&(u[0]=quadraticAt(t,n,a,c),u[1]=quadraticAt(r,i,o,c)),mathSqrt$3(v)}function quadraticLength(t,r,n,i,a,o,s){for(var l=t,u=r,c=0,d=1/s,v=1;v<=s;v++){var I=v*d,$=quadraticAt(t,n,a,I),O=quadraticAt(r,i,o,I),R=$-l,M=O-u;c+=Math.sqrt(R*R+M*M),l=$,u=O}return c}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(t){var r=t&&regexp.exec(t);if(r){var n=r[1].split(","),i=+trim(n[0]),a=+trim(n[1]),o=+trim(n[2]),s=+trim(n[3]);if(isNaN(i+a+o+s))return;var l=[];return function(u){return u<=0?0:u>=1?1:cubicRootAt(0,i,o,1,u,l)&&cubicAt(0,a,s,1,l[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 i=this._life,a=r-this._startTime-this._pausedTime,o=a/i;o<0&&(o=0),o=Math.min(o,1);var s=this.easingFunc,l=s?s(o):o;if(this.onframe(l),o===1)if(this.loop){var u=a%i;this._startTime=r-u,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,i=r.next;n?n.next=i:this.head=i,i?i.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 i=this._list,a=this._map,o=null;if(a[r]==null){var s=i.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var u=i.head;i.remove(u),delete a[u.key],o=u.value,this._lastRemovedEntry=u}l?l.value=n:l=new Entry(n),l.key=r,i.insertEntry(l),a[r]=l}return o},t.prototype.get=function(r){var n=this._map[r],i=this._list;if(n!=null)return n!==i.tail&&(i.remove(n),i.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 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,i,a){return t[0]=r,t[1]=n,t[2]=i,t[3]=a,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&&copyRgba(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 i=t.replace(/ /g,"").toLowerCase();if(i in kCSSColorTable)return copyRgba(r,kCSSColorTable[i]),putToCache(t,r),r;var a=i.length;if(i.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(i.slice(1,4),16);if(!(o>=0&&o<=4095)){setRgba(r,0,0,0,1);return}return setRgba(r,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(i.slice(4),16)/15:1),putToCache(t,r),r}else if(a===7||a===9){var o=parseInt(i.slice(1,7),16);if(!(o>=0&&o<=16777215)){setRgba(r,0,0,0,1);return}return setRgba(r,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(i.slice(7),16)/255:1),putToCache(t,r),r}return}var s=i.indexOf("("),l=i.indexOf(")");if(s!==-1&&l+1===a){var u=i.substr(0,s),c=i.substr(s+1,l-(s+1)).split(","),d=1;switch(u){case"rgba":if(c.length!==4)return c.length===3?setRgba(r,+c[0],+c[1],+c[2],1):setRgba(r,0,0,0,1);d=parseCssFloat(c.pop());case"rgb":if(c.length>=3)return setRgba(r,parseCssInt(c[0]),parseCssInt(c[1]),parseCssInt(c[2]),c.length===3?d:parseCssFloat(c[3])),putToCache(t,r),r;setRgba(r,0,0,0,1);return;case"hsla":if(c.length!==4){setRgba(r,0,0,0,1);return}return c[3]=parseCssFloat(c[3]),hsla2rgba(c,r),putToCache(t,r),r;case"hsl":if(c.length!==3){setRgba(r,0,0,0,1);return}return hsla2rgba(c,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,i=parseCssFloat(t[1]),a=parseCssFloat(t[2]),o=a<=.5?a*(i+1):a+i-a*i,s=a*2-o;return r=r||[],setRgba(r,clampCssByte(cssHueToRgb(s,o,n+1/3)*255),clampCssByte(cssHueToRgb(s,o,n)*255),clampCssByte(cssHueToRgb(s,o,n-1/3)*255),1),t.length===4&&(r[3]=t[3]),r}function lift(t,r){var n=parse(t);if(n){for(var i=0;i<3;i++)r<0?n[i]=n[i]*(1-r)|0:n[i]=(255-n[i])*r+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return stringify(n,n.length===4?"rgba":"rgb")}}function lerp(t,r,n){if(!(!(r&&r.length)||!(t>=0&&t<=1))){var i=t*(r.length-1),a=Math.floor(i),o=Math.ceil(i),s=parse(r[a]),l=parse(r[o]),u=i-a,c=stringify([clampCssByte(lerpNumber(s[0],l[0],u)),clampCssByte(lerpNumber(s[1],l[1],u)),clampCssByte(lerpNumber(s[2],l[2],u)),clampCssFloat(lerpNumber(s[3],l[3],u))],"rgba");return n?{color:c,leftIndex:a,rightIndex:o,value:i}:c}}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}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(i){return{offset:i.offset,color:lift(i.color,-.1)}}),n}return t}function isLinearGradient(t){return t.type==="linear"}function isRadialGradient(t){return t.type==="radial"}(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}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1(t,r,n){return(r-t)*n+t}function interpolate1DArray(t,r,n,i){for(var a=r.length,o=0;o<a;o++)t[o]=interpolateNumber$1(r[o],n[o],i);return t}function interpolate2DArray(t,r,n,i){for(var a=r.length,o=a&&r[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<o;l++)t[s][l]=interpolateNumber$1(r[s][l],n[s][l],i)}return t}function add1DArray(t,r,n,i){for(var a=r.length,o=0;o<a;o++)t[o]=r[o]+n[o]*i;return t}function add2DArray(t,r,n,i){for(var a=r.length,o=a&&r[0].length,s=0;s<a;s++){t[s]||(t[s]=[]);for(var l=0;l<o;l++)t[s][l]=r[s][l]+n[s][l]*i}return t}function fillColorStops(t,r){for(var n=t.length,i=r.length,a=n>i?r:t,o=Math.min(n,i),s=a[o-1]||{color:[0,0,0,0],offset:0},l=o;l<Math.max(n,i);l++)a.push({offset:s.offset,color:s.color.slice()})}function fillArray(t,r,n){var i=t,a=r;if(!(!i.push||!a.push)){var o=i.length,s=a.length;if(o!==s){var l=o>s;if(l)i.length=s;else for(var u=o;u<s;u++)i.push(n===1?a[u]:arraySlice.call(a[u]))}for(var c=i[0]&&i[0].length,u=0;u<i.length;u++)if(n===1)isNaN(i[u])&&(i[u]=a[u]);else for(var d=0;d<c;d++)isNaN(i[u][d])&&(i[u][d]=a[u][d])}}function cloneValue(t){if(isArrayLike(t)){var r=t.length;if(isArrayLike(t[0])){for(var n=[],i=0;i<r;i++)n.push(arraySlice.call(t[i]));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,i){this._needsSort=!0;var a=this.keyframes,o=a.length,s=!1,l=VALUE_TYPE_UNKOWN,u=n;if(isArrayLike(n)){var c=guessArrayDim(n);l=c,(c===1&&!isNumber(n[0])||c===2&&!isNumber(n[0][0]))&&(s=!0)}else if(isNumber(n)&&!eqNaN(n))l=VALUE_TYPE_NUMBER;else if(isString(n))if(!isNaN(+n))l=VALUE_TYPE_NUMBER;else{var d=parse(n);d&&(u=d,l=VALUE_TYPE_COLOR)}else if(isGradientObject(n)){var v=extend({},u);v.colorStops=map$1(n.colorStops,function($){return{offset:$.offset,color:parse($.color)}}),isLinearGradient(n)?l=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(n)&&(l=VALUE_TYPE_RADIAL_GRADIENT),u=v}o===0?this.valType=l:(l!==this.valType||l===VALUE_TYPE_UNKOWN)&&(s=!0),this.discrete=this.discrete||s;var I={time:r,value:u,rawValue:n,percent:0};return i&&(I.easing=i,I.easingFunc=isFunction(i)?i:easingFuncs$1[i]||createCubicEasingFunc(i)),a.push(I),I},t.prototype.prepare=function(r,n){var i=this.keyframes;this._needsSort&&i.sort(function(R,M){return R.time-M.time});for(var a=this.valType,o=i.length,s=i[o-1],l=this.discrete,u=isArrayValueType(a),c=isGradientValueType(a),d=0;d<o;d++){var v=i[d],I=v.value,$=s.value;v.percent=v.time/r,l||(u&&d!==o-1?fillArray(I,$,a):c&&fillColorStops(I.colorStops,$.colorStops))}if(!l&&a!==VALUE_TYPE_RADIAL_GRADIENT&&n&&this.needsAnimate()&&n.needsAnimate()&&a===n.valType&&!n._finished){this._additiveTrack=n;for(var O=i[0].value,d=0;d<o;d++)a===VALUE_TYPE_NUMBER?i[d].additiveValue=i[d].value-O:a===VALUE_TYPE_COLOR?i[d].additiveValue=add1DArray([],i[d].value,O,-1):isArrayValueType(a)&&(i[d].additiveValue=a===VALUE_TYPE_1D_ARRAY?add1DArray([],i[d].value,O,-1):add2DArray([],i[d].value,O,-1))}},t.prototype.step=function(r,n){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,a=i?"additiveValue":"value",o=this.valType,s=this.keyframes,l=s.length,u=this.propName,c=o===VALUE_TYPE_COLOR,d,v=this._lastFr,I=Math.min,$,O;if(l===1)$=O=s[0];else{if(n<0)d=0;else if(n<this._lastFrP){var R=I(v+1,l-1);for(d=R;d>=0&&!(s[d].percent<=n);d--);d=I(d,l-2)}else{for(d=v;d<l&&!(s[d].percent>n);d++);d=I(d-1,l-2)}O=s[d+1],$=s[d]}if(!!($&&O)){this._lastFr=d,this._lastFrP=n;var M=O.percent-$.percent,N=M===0?1:I((n-$.percent)/M,1);O.easingFunc&&(N=O.easingFunc(N));var V=i?this._additiveValue:c?tmpRgba:r[u];if((isArrayValueType(o)||c)&&!V&&(V=this._additiveValue=[]),this.discrete)r[u]=N<1?$.rawValue:O.rawValue;else if(isArrayValueType(o))o===VALUE_TYPE_1D_ARRAY?interpolate1DArray(V,$[a],O[a],N):interpolate2DArray(V,$[a],O[a],N);else if(isGradientValueType(o)){var G=$[a],Y=O[a],X=o===VALUE_TYPE_LINEAR_GRADIENT;r[u]={type:X?"linear":"radial",x:interpolateNumber$1(G.x,Y.x,N),y:interpolateNumber$1(G.y,Y.y,N),colorStops:map$1(G.colorStops,function(Z,ee){var ne=Y.colorStops[ee];return{offset:interpolateNumber$1(Z.offset,ne.offset,N),color:rgba2String(interpolate1DArray([],Z.color,ne.color,N))}}),global:Y.global},X?(r[u].x2=interpolateNumber$1(G.x2,Y.x2,N),r[u].y2=interpolateNumber$1(G.y2,Y.y2,N)):r[u].r=interpolateNumber$1(G.r,Y.r,N)}else if(c)interpolate1DArray(V,$[a],O[a],N),i||(r[u]=rgba2String(V));else{var q=interpolateNumber$1($[a],O[a],N);i?this._additiveValue=q:r[u]=q}i&&this._addToTarget(r)}}},t.prototype._addToTarget=function(r){var n=this.valType,i=this.propName,a=this._additiveValue;n===VALUE_TYPE_NUMBER?r[i]=r[i]+a:n===VALUE_TYPE_COLOR?(parse(r[i],tmpRgba),add1DArray(tmpRgba,tmpRgba,a,1),r[i]=rgba2String(tmpRgba)):n===VALUE_TYPE_1D_ARRAY?add1DArray(r[i],r[i],a,1):n===VALUE_TYPE_2D_ARRAY&&add2DArray(r[i],r[i],a,1)},t}(),Animator=function(){function t(r,n,i,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=r,this._loop=n,n&&a){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,this._allowDiscrete=i}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,i){return this.whenWithKeys(r,n,keys(n),i)},t.prototype.whenWithKeys=function(r,n,i,a){for(var o=this._tracks,s=0;s<i.length;s++){var l=i[s],u=o[l];if(!u){u=o[l]=new Track(l);var c=void 0,d=this._getAdditiveTrack(l);if(d){var v=d.keyframes,I=v[v.length-1];c=I&&I.value,d.valType===VALUE_TYPE_COLOR&&c&&(c=rgba2String(c))}else c=this._target[l];if(c==null)continue;r>0&&u.addKeyframe(0,cloneValue(c),a),this._trackKeys.push(l)}u.addKeyframe(r,cloneValue(n[l]),a)}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,i=0;i<n;i++)r[i].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 i=0;i<n.length;i++)n[i].call(this)},t.prototype._setTracksFinished=function(){for(var r=this._tracks,n=this._trackKeys,i=0;i<n.length;i++)r[n[i]].setFinished()},t.prototype._getAdditiveTrack=function(r){var n,i=this._additiveAnimators;if(i)for(var a=0;a<i.length;a++){var o=i[a].getTrack(r);o&&(n=o)}return n},t.prototype.start=function(r){if(!(this._started>0)){this._started=1;for(var n=this,i=[],a=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var s=this._trackKeys[o],l=this._tracks[s],u=this._getAdditiveTrack(s),c=l.keyframes,d=c.length;if(l.prepare(a,u),l.needsAnimate())if(!this._allowDiscrete&&l.discrete){var v=c[d-1];v&&(n._target[l.propName]=v.rawValue),l.setFinished()}else i.push(l)}if(i.length||this._force){var I=new Clip$1({life:a,loop:this._loop,delay:this._delay||0,onframe:function($){n._started=2;var O=n._additiveAnimators;if(O){for(var R=!1,M=0;M<O.length;M++)if(O[M]._clip){R=!0;break}R||(n._additiveAnimators=null)}for(var M=0;M<i.length;M++)i[M].step(n._target,$);var N=n._onframeCbs;if(N)for(var M=0;M<N.length;M++)N[M](n._target,$)},ondestroy:function(){n._doneCallback()}});this._clip=I,this.animation&&this.animation.addClip(I),r&&I.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 i=this._tracks,a=this._trackKeys,o=0;o<r.length;o++){var s=i[r[o]];s&&!s.isFinished()&&(n?s.step(this._target,1):this._started===1&&s.step(this._target,0),s.setFinished())}for(var l=!0,o=0;o<a.length;o++)if(!i[a[o]].isFinished()){l=!1;break}return l&&this._abortedCallback(),l},t.prototype.saveTo=function(r,n,i){if(!!r){n=n||this._trackKeys;for(var a=0;a<n.length;a++){var o=n[a],s=this._tracks[o];if(!(!s||s.isFinished())){var l=s.keyframes,u=l[i?0:l.length-1];u&&(r[o]=cloneValue(u.rawValue))}}}},t.prototype.__changeFinalValue=function(r,n){n=n||keys(r);for(var i=0;i<n.length;i++){var a=n[i],o=this._tracks[a];if(!!o){var s=o.keyframes;if(s.length>1){var l=s.pop();o.addKeyframe(l.time,r[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}(),Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(t){__extends(r,t);function r(n){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,n=n||{},i.stage=n.stage||{},i}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 i=n.getClip();i&&this.addClip(i)},r.prototype.removeClip=function(n){if(!!n.animation){var i=n.prev,a=n.next;i?i.next=a:this._head=a,a?a.prev=i:this._tail=i,n.next=n.prev=n.animation=null}},r.prototype.removeAnimator=function(n){var i=n.getClip();i&&this.removeClip(i),n.animation=null},r.prototype.update=function(n){for(var i=getTime()-this._pausedTime,a=i-this._time,o=this._head;o;){var s=o.next,l=o.step(i,a);l&&(o.ondestroy(),this.removeClip(o)),o=s}this._time=i,n||(this.trigger("frame",a),this.stage.update&&this.stage.update())},r.prototype._startLoop=function(){var n=this;this._running=!0;function i(){n._running&&(requestAnimationFrame$3(i),!n._paused&&n.update())}requestAnimationFrame$3(i)},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 i=n.next;n.prev=n.next=n.animation=null,n=i}this._head=this._tail=null},r.prototype.isFinished=function(){return this._head==null},r.prototype.animate=function(n,i){i=i||{},this.start();var a=new Animator$1(n,i.loop);return this.addAnimator(a),a},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},i=map$1(t,function(a){var o=a.replace("mouse","pointer");return n.hasOwnProperty(o)?o:a});return{mouse:t,touch:r,pointer:i}}(),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,i=!1;n&&n.nodeType!==9&&!(i=n.domBelongToZr||n!==r&&n===t.painterRoot);)n=n.parentNode;return i}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$4(["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$4(localNativeListenerNames.pointer,function(i){mountSingleDOMEventListener(r,i,function(a){n[i].call(t,a)})}):(env$1.touchEventsSupported&&each$4(localNativeListenerNames.touch,function(i){mountSingleDOMEventListener(r,i,function(a){n[i].call(t,a),setTouchTimer(r)})}),each$4(localNativeListenerNames.mouse,function(i){mountSingleDOMEventListener(r,i,function(a){a=getNativeEvent(a),r.touching||n[i].call(t,a)})}))}function mountGlobalDOMEventListeners(t,r){env$1.pointerEventsSupported?each$4(globalNativeListenerNames.pointer,n):env$1.touchEventsSupported||each$4(globalNativeListenerNames.mouse,n);function n(i){function a(o){o=getNativeEvent(o),isLocalEl(t,o.target)||(o=normalizeGlobalEvent(t,o),r.domHandlers[i].call(t,o))}mountSingleDOMEventListener(r,i,a,{capture:!0})}}function mountSingleDOMEventListener(t,r,n,i){t.mounted[r]=n,t.listenerOpts[r]=i,addEventListener(t.domTarget,r,n,i)}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,i){var a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=n,a.painterRoot=i,a._localHandlerScope=new DOMHandlerScope(n,localDOMHandlers),globalEventSupported&&(a._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(a,a._localHandlerScope),a}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 i=this._globalHandlerScope;n?mountGlobalDOMEventListeners(this,i):unmountDOMEventListeners(i)}},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=dpr,DARK_MODE_THRESHOLD=.4,DARK_LABEL_COLOR="#333",LIGHT_LABEL_COLOR="#ccc",LIGHTER_LABEL_COLOR="#eee",mIdentity=identity,EPSILON$1=5e-5;function isNotAroundZero(t){return t>EPSILON$1||t<-EPSILON$1}var scaleTmp=[],tmpTransform=[],originTransform=create(),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(),i=this.transform;if(!(n||r)){i&&(mIdentity(i),this.invTransform=null);return}i=i||create(),n?this.getLocalTransform(i):mIdentity(i),r&&(n?mul(i,r,i):copy(i,r)),this.transform=i,this._resolveGlobalScaleRatio(i)},t.prototype._resolveGlobalScaleRatio=function(r){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(scaleTmp);var i=scaleTmp[0]<0?-1:1,a=scaleTmp[1]<0?-1:1,o=((scaleTmp[0]-i)*n+i)/scaleTmp[0]||0,s=((scaleTmp[1]-a)*n+a)/scaleTmp[1]||0;r[0]*=o,r[1]*=o,r[2]*=s,r[3]*=s}this.invTransform=this.invTransform||create(),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],i=r[2]*r[2]+r[3]*r[3],a=Math.atan2(r[1],r[0]),o=Math.PI/2+a-Math.atan2(r[3],r[2]);i=Math.sqrt(i)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-a,this.x=+r[4],this.y=+r[5],this.scaleX=n,this.scaleY=i,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(!!this.transform){var r=this.parent,n=this.transform;r&&r.transform&&(r.invTransform=r.invTransform||create(),mul(tmpTransform,r.invTransform,n),n=tmpTransform);var i=this.originX,a=this.originY;(i||a)&&(originTransform[4]=i,originTransform[5]=a,mul(tmpTransform,n,originTransform),tmpTransform[4]-=i,tmpTransform[5]-=a,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 i=[r,n],a=this.invTransform;return a&&applyTransform$1(i,i,a),i},t.prototype.transformCoordToGlobal=function(r,n){var i=[r,n],a=this.transform;return a&&applyTransform$1(i,i,a),i},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 i=r.originX||0,a=r.originY||0,o=r.scaleX,s=r.scaleY,l=r.anchorX,u=r.anchorY,c=r.rotation||0,d=r.x,v=r.y,I=r.skewX?Math.tan(r.skewX):0,$=r.skewY?Math.tan(-r.skewY):0;if(i||a||l||u){var O=i+l,R=a+u;n[4]=-O*o-I*R*s,n[5]=-R*s-$*O*o}else n[4]=n[5]=0;return n[0]=o,n[3]=s,n[1]=$*o,n[2]=I*s,c&&rotate(n,n,c),n[4]+=i+d,n[5]+=a+v,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 i=TRANSFORMABLE_PROPS[n];t[i]=r[i]}}var textWidthCache={};function getWidth(t,r){r=r||DEFAULT_FONT;var n=textWidthCache[r];n||(n=textWidthCache[r]=new LRU$1(500));var i=n.get(t);return i==null&&(i=platformApi.measureText(t,r).width,n.put(t,i)),i}function innerGetBoundingRect(t,r,n,i){var a=getWidth(t,r),o=getLineHeight(r),s=adjustTextX(0,a,n),l=adjustTextY(0,o,i),u=new BoundingRect$1(s,l,a,o);return u}function getBoundingRect(t,r,n,i){var a=((t||"")+"").split(`
122
+ `),o=a.length;if(o===1)return innerGetBoundingRect(a[0],r,n,i);for(var s=new BoundingRect$1(0,0,0,0),l=0;l<a.length;l++){var u=innerGetBoundingRect(a[l],r,n,i);l===0?s.copy(u):s.union(u)}return s}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 i=r.position||"inside",a=r.distance!=null?r.distance:5,o=n.height,s=n.width,l=o/2,u=n.x,c=n.y,d="left",v="top";if(i instanceof Array)u+=parsePercent$1(i[0],n.width),c+=parsePercent$1(i[1],n.height),d=null,v=null;else switch(i){case"left":u-=a,c+=l,d="right",v="middle";break;case"right":u+=a+s,c+=l,v="middle";break;case"top":u+=s/2,c-=a,d="center",v="bottom";break;case"bottom":u+=s/2,c+=o+a,d="center";break;case"inside":u+=s/2,c+=l,d="center",v="middle";break;case"insideLeft":u+=a,c+=l,v="middle";break;case"insideRight":u+=s-a,c+=l,d="right",v="middle";break;case"insideTop":u+=s/2,c+=a,d="center";break;case"insideBottom":u+=s/2,c+=o-a,d="center",v="bottom";break;case"insideTopLeft":u+=a,c+=a;break;case"insideTopRight":u+=s-a,c+=a,d="right";break;case"insideBottomLeft":u+=a,c+=o-a,v="bottom";break;case"insideBottomRight":u+=s-a,c+=o-a,d="right",v="bottom";break}return t=t||{},t.x=u,t.y=c,t.align=d,t.verticalAlign=v,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,i){switch(this.draggable){case"horizontal":n=0;break;case"vertical":r=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=r,a[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 i=this.textConfig,a=i.local,o=n.innerTransformable,s=void 0,l=void 0,u=!1;o.parent=a?this:null;var c=!1;if(o.copyTransform(n),i.position!=null){var d=tmpBoundingRect;i.layoutRect?d.copy(i.layoutRect):d.copy(this.getBoundingRect()),a||d.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,i,d):calculateTextPosition(tmpTextPosCalcRes,i,d),o.x=tmpTextPosCalcRes.x,o.y=tmpTextPosCalcRes.y,s=tmpTextPosCalcRes.align,l=tmpTextPosCalcRes.verticalAlign;var v=i.origin;if(v&&i.rotation!=null){var I=void 0,$=void 0;v==="center"?(I=d.width*.5,$=d.height*.5):(I=parsePercent$1(v[0],d.width),$=parsePercent$1(v[1],d.height)),c=!0,o.originX=-o.x+I+(a?0:d.x),o.originY=-o.y+$+(a?0:d.y)}}i.rotation!=null&&(o.rotation=i.rotation);var O=i.offset;O&&(o.x+=O[0],o.y+=O[1],c||(o.originX=-O[0],o.originY=-O[1]));var R=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,M=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),N=void 0,V=void 0,G=void 0;R&&this.canBeInsideText()?(N=i.insideFill,V=i.insideStroke,(N==null||N==="auto")&&(N=this.getInsideTextFill()),(V==null||V==="auto")&&(V=this.getInsideTextStroke(N),G=!0)):(N=i.outsideFill,V=i.outsideStroke,(N==null||N==="auto")&&(N=this.getOutsideFill()),(V==null||V==="auto")&&(V=this.getOutsideStroke(N),G=!0)),N=N||"#000",(N!==M.fill||V!==M.stroke||G!==M.autoStroke||s!==M.align||l!==M.verticalAlign)&&(u=!0,M.fill=N,M.stroke=V,M.autoStroke=G,M.align=s,M.verticalAlign=l,n.setDefaultTextStyle(M)),n.__dirty|=REDRAW_BIT,u&&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(),i=typeof n=="string"&&parse(n);i||(i=[255,255,255,1]);for(var a=i[3],o=this.__zr.isDarkMode(),s=0;s<3;s++)i[s]=i[s]*a+(o?0:255)*(1-a);return i[3]=1,stringify(i,"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$2(r))for(var i=r,a=keys(i),o=0;o<a.length;o++){var s=a[o];this.attrKV(s,r[s])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(r){this._innerSaveToNormal(r);for(var n=this._normalState,i=0;i<this.animators.length;i++){var a=this.animators[i],o=a.__fromStateTransition;if(!(a.getLoop()||o&&o!==PRESERVED_NORMAL_STATE)){var s=a.targetName,l=s?n[s]:n;a.saveTo(l)}}},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,i){for(var a=0;a<i.length;a++){var o=i[a];r[o]!=null&&!(o in n)&&(n[o]=this[o])}},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,i,a){var o=r===PRESERVED_NORMAL_STATE,s=this.hasState();if(!(!s&&o)){var l=this.currentStates,u=this.stateTransition;if(!(indexOf(l,r)>=0&&(n||l.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(r)),c||(c=this.states&&this.states[r]),!c&&!o){logError("State "+r+" not exists.");return}o||this.saveCurrentToNormalState(c);var d=!!(c&&c.hoverLayer||a);d&&this._toggleHoverLayerFlag(!0),this._applyStateObj(r,c,this._normalState,n,!i&&!this.__inHover&&u&&u.duration>0,u);var v=this._textContent,I=this._textGuide;return v&&v.useState(r,n,i,d),I&&I.useState(r,n,i,d),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(r):this.currentStates=[r],this._updateAnimationTargets(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),c}}},t.prototype.useStates=function(r,n,i){if(!r.length)this.clearStates();else{var a=[],o=this.currentStates,s=r.length,l=s===o.length;if(l){for(var u=0;u<s;u++)if(r[u]!==o[u]){l=!1;break}}if(l)return;for(var u=0;u<s;u++){var c=r[u],d=void 0;this.stateProxy&&(d=this.stateProxy(c,r)),d||(d=this.states[c]),d&&a.push(d)}var v=a[s-1],I=!!(v&&v.hoverLayer||i);I&&this._toggleHoverLayerFlag(!0);var $=this._mergeStates(a),O=this.stateTransition;this.saveCurrentToNormalState($),this._applyStateObj(r.join(","),$,this._normalState,!1,!n&&!this.__inHover&&O&&O.duration>0,O);var R=this._textContent,M=this._textGuide;R&&R.useStates(r,n,I),M&&M.useStates(r,n,I),this._updateAnimationTargets(),this.currentStates=r.slice(),this.markRedraw(),!I&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},t.prototype.isSilent=function(){for(var r=this.silent,n=this.parent;!r&&n;){if(n.silent){r=!0;break}n=n.parent}return r},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 i=this.currentStates.slice();i.splice(n,1),this.useStates(i)}},t.prototype.replaceState=function(r,n,i){var a=this.currentStates.slice(),o=indexOf(a,r),s=indexOf(a,n)>=0;o>=0?s?a.splice(o,1):a[o]=n:i&&!s&&a.push(n),this.useStates(a)},t.prototype.toggleState=function(r,n){n?this.useState(r,!0):this.removeState(r)},t.prototype._mergeStates=function(r){for(var n={},i,a=0;a<r.length;a++){var o=r[a];extend(n,o),o.textConfig&&(i=i||{},extend(i,o.textConfig))}return i&&(n.textConfig=i),n},t.prototype._applyStateObj=function(r,n,i,a,o,s){var l=!(n&&a);n&&n.textConfig?(this.textConfig=extend({},a?this.textConfig:i.textConfig),extend(this.textConfig,n.textConfig)):l&&i.textConfig&&(this.textConfig=i.textConfig);for(var u={},c=!1,d=0;d<PRIMARY_STATES_KEYS$1.length;d++){var v=PRIMARY_STATES_KEYS$1[d],I=o&&DEFAULT_ANIMATABLE_MAP[v];n&&n[v]!=null?I?(c=!0,u[v]=n[v]):this[v]=n[v]:l&&i[v]!=null&&(I?(c=!0,u[v]=i[v]):this[v]=i[v])}if(!o)for(var d=0;d<this.animators.length;d++){var $=this.animators[d],O=$.targetName;$.getLoop()||$.__changeFinalValue(O?(n||i)[O]:n||i)}c&&this._transitionState(r,u,s)},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,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,i=this._textGuide;n&&(n.__inHover=r),i&&(i.__inHover=r)},t.prototype.addSelfToZr=function(r){if(this.__zr!==r){this.__zr=r;var n=this.animators;if(n)for(var i=0;i<n.length;i++)r.animation.addAnimator(n[i]);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 i=0;i<n.length;i++)r.animation.removeAnimator(n[i]);this._clipPath&&this._clipPath.removeSelfFromZr(r),this._textContent&&this._textContent.removeSelfFromZr(r),this._textGuide&&this._textGuide.removeSelfFromZr(r)}},t.prototype.animate=function(r,n,i){var a=r?this[r]:this,o=new Animator$1(a,n,i);return r&&(o.targetName=r),this.addAnimator(o,r),o},t.prototype.addAnimator=function(r,n){var i=this.__zr,a=this;r.during(function(){a.updateDuringAnimation(n)}).done(function(){var o=a.animators,s=indexOf(o,r);s>=0&&o.splice(s,1)}),this.animators.push(r),i&&i.animation.addAnimator(r),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(r){this.markRedraw()},t.prototype.stopAnimation=function(r,n){for(var i=this.animators,a=i.length,o=[],s=0;s<a;s++){var l=i[s];!r||r===l.scope?l.stop(n):o.push(l)}return this.animators=o,this},t.prototype.animateTo=function(r,n,i){animateTo(this,r,n,i)},t.prototype.animateFrom=function(r,n,i){animateTo(this,r,n,i,!0)},t.prototype._transitionState=function(r,n,i,a){for(var o=animateTo(this,n,i,a),s=0;s<o.length;s++)o[s].__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(i,a,o,s){Object.defineProperty(r,i,{get:function(){if(!this[a]){var u=this[a]=[];l(this,u)}return this[a]},set:function(u){this[o]=u[0],this[s]=u[1],this[a]=u,l(this,u)}});function l(u,c){Object.defineProperty(c,0,{get:function(){return u[o]},set:function(d){u[o]=d}}),Object.defineProperty(c,1,{get:function(){return u[s]},set:function(d){u[s]=d}})}}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);function animateTo(t,r,n,i,a){n=n||{};var o=[];animateToShallow(t,"",t,r,n,i,o,a);var s=o.length,l=!1,u=n.done,c=n.aborted,d=function(){l=!0,s--,s<=0&&(l?u&&u():c&&c())},v=function(){s--,s<=0&&(l?u&&u():c&&c())};s||u&&u(),o.length>0&&n.during&&o[0].during(function(O,R){n.during(R)});for(var I=0;I<o.length;I++){var $=o[I];d&&$.done(d),v&&$.aborted(v),n.force&&$.duration(n.duration),$.start(n.easing)}return o}function copyArrShallow(t,r,n){for(var i=0;i<n;i++)t[i]=r[i]}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 i=r[n].length;t[n].length!==i&&(t[n]=new r[n].constructor(i),copyArrShallow(t[n],r[n],i))}else{var a=r[n],o=t[n],s=a.length;if(is2DArray(a))for(var l=a[0].length,u=0;u<s;u++)o[u]?copyArrShallow(o[u],a[u],l):o[u]=Array.prototype.slice.call(a[u]);else copyArrShallow(o,a,s);o.length=a.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 i=0;i<n;i++)if(t[i]!==r[i])return!1;return!0}function animateToShallow(t,r,n,i,a,o,s,l){for(var u=keys(i),c=a.duration,d=a.delay,v=a.additive,I=a.setToFinal,$=!isObject$2(o),O=t.animators,R=[],M=0;M<u.length;M++){var N=u[M],V=i[N];if(V!=null&&n[N]!=null&&($||o[N]))if(isObject$2(V)&&!isArrayLike(V)&&!isGradientObject(V)){if(r){l||(n[N]=V,t.updateDuringAnimation(r));continue}animateToShallow(t,N,n[N],V,a,o&&o[N],s,l)}else R.push(N);else l||(n[N]=V,t.updateDuringAnimation(r),R.push(N))}var G=R.length;if(!v&&G)for(var Y=0;Y<O.length;Y++){var X=O[Y];if(X.targetName===r){var q=X.stopTracks(R);if(q){var Z=indexOf(O,X);O.splice(Z,1)}}}if(a.force||(R=filter(R,function(te){return!isValueSame(i[te],n[te])}),G=R.length),G>0||a.force&&!s.length){var ee=void 0,ne=void 0,J=void 0;if(l){ne={},I&&(ee={});for(var Y=0;Y<G;Y++){var N=R[Y];ne[N]=n[N],I?ee[N]=i[N]:n[N]=i[N]}}else if(I){J={};for(var Y=0;Y<G;Y++){var N=R[Y];J[N]=cloneValue(n[N]),copyValue(n,i,N)}}var X=new Animator$1(n,!1,!1,v?filter(O,function(Q){return Q.targetName===r}):null);X.targetName=r,a.scope&&(X.scope=a.scope),I&&ee&&X.whenWithKeys(0,ee,R),J&&X.whenWithKeys(0,J,R),X.whenWithKeys(c==null?500:c,l?ne:i,R).delay(d||0),t.addAnimator(X,r),s.push(X)}}var Element$2=Element$1,Group$2=function(t){__extends(r,t);function r(n){var i=t.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(n),i}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 i=this._children,a=0;a<i.length;a++)if(i[a].name===n)return i[a]},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,i){if(n&&n!==this&&n.parent!==this&&i&&i.parent===this){var a=this._children,o=a.indexOf(i);o>=0&&(a.splice(o,0,n),this._doAdd(n))}return this},r.prototype.replace=function(n,i){var a=indexOf(this._children,n);return a>=0&&this.replaceAt(i,a),this},r.prototype.replaceAt=function(n,i){var a=this._children,o=a[i];if(n&&n!==this&&n.parent!==this&&n!==o){a[i]=n,o.parent=null;var s=this.__zr;s&&o.removeSelfFromZr(s),this._doAdd(n)}return this},r.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var i=this.__zr;i&&i!==n.__zr&&n.addSelfToZr(i),i&&i.refresh()},r.prototype.remove=function(n){var i=this.__zr,a=this._children,o=indexOf(a,n);return o<0?this:(a.splice(o,1),n.parent=null,i&&n.removeSelfFromZr(i),i&&i.refresh(),this)},r.prototype.removeAll=function(){for(var n=this._children,i=this.__zr,a=0;a<n.length;a++){var o=n[a];i&&o.removeSelfFromZr(i),o.parent=null}return n.length=0,this},r.prototype.eachChild=function(n,i){for(var a=this._children,o=0;o<a.length;o++){var s=a[o];n.call(i,s,o)}return this},r.prototype.traverse=function(n,i){for(var a=0;a<this._children.length;a++){var o=this._children[a],s=n.call(i,o);o.isGroup&&!s&&o.traverse(n,i)}return this},r.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.addSelfToZr(n)}},r.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var i=0;i<this._children.length;i++){var a=this._children[i];a.removeSelfFromZr(n)}},r.prototype.getBoundingRect=function(n){for(var i=new BoundingRect$1(0,0,0,0),a=n||this._children,o=[],s=null,l=0;l<a.length;l++){var u=a[l];if(!(u.ignore||u.invisible)){var c=u.getBoundingRect(),d=u.getLocalTransform(o);d?(BoundingRect$1.applyTransform(i,c,d),s=s||i.clone(),s.union(i)):(s=s||c.clone(),s.union(c))}}return s||i},r}(Element$2);Group$2.prototype.type="group";var Group$3=Group$2;/*!
123
+ * ZRender, a high performance 2d drawing library.
124
+ *
125
+ * Copyright (c) 2013, Baidu Inc.
126
+ * All rights reserved.
127
+ *
128
+ * LICENSE
129
+ * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
130
+ */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,i=r.length,a=0;a<i;a++)n+=lum(r[a].color,1);return n/=i,n<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function t(r,n,i){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=n,this.id=r;var o=new Storage$1,s=i.renderer||"canvas";painterCtors[s]||(s=keys(painterCtors)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var l=new painterCtors[s](n,o,i,r),u=i.ssr||l.ssrOnly;this.storage=o,this.painter=l;var c=!env$1.node&&!env$1.worker&&!u?new HandlerProxy(l.getViewportRoot(),l.root):null,d=i.useCoarsePointer,v=d==null||d==="auto"?env$1.touchEventsSupported:!!d,I=44,$;v&&($=retrieve2(i.pointerSize,I)),this.handler=new Handler$1(o,l,c,l.root,$),this.animation=new Animation$1({stage:{update:u?null:function(){return a._flush(!0)}}}),u||this.animation.start()}return t.prototype.add=function(r){this._disposed||!r||(this.storage.addRoot(r),r.addSelfToZr(this),this.refresh())},t.prototype.remove=function(r){this._disposed||!r||(this.storage.delRoot(r),r.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(r,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(r,n),this.refresh())},t.prototype.setBackgroundColor=function(r){this._disposed||(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){this._disposed||(r||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(r){var n,i=getTime();this._needsRefresh&&(n=!0,this.refreshImmediately(r)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var a=getTime();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:a-i})):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._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(r){this._disposed||(r=r||{},this.painter.resize(r.width,r.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(r){this._disposed||this.handler.setCursorStyle(r)},t.prototype.findHover=function(r,n){if(!this._disposed)return this.handler.findHover(r,n)},t.prototype.on=function(r,n,i){return this._disposed||this.handler.on(r,n,i),this},t.prototype.off=function(r,n){this._disposed||this.handler.off(r,n)},t.prototype.trigger=function(r,n){this._disposed||this.handler.trigger(r,n)},t.prototype.clear=function(){if(!this._disposed){for(var r=this.storage.getRoots(),n=0;n<r.length;n++)r[n]instanceof Group$3&&r[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,delInstance(this.id))},t}();function init$1(t,r){var n=new ZRender(guid(),t,r);return instances$1[n.id]=n,n}function registerPainter(t,r){painterCtors[t]=r}var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim(t){return t.replace(/^\s+|\s+$/g,"")}function linearMap(t,r,n,i){var a=r[0],o=r[1],s=n[0],l=n[1],u=o-a,c=l-s;if(u===0)return c===0?s:(s+l)/2;if(i)if(u>0){if(t<=a)return s;if(t>=o)return l}else{if(t>=a)return s;if(t<=o)return l}else{if(t===a)return s;if(t===o)return l}return(t-a)/u*c+s}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$1(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 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"),i=n>0?+r.slice(n+1):0,a=n>0?n:r.length,o=r.indexOf("."),s=o<0?0:a-1-o;return Math.max(0,s-i)}function getPixelPrecision(t,r){var n=Math.log,i=Math.LN10,a=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(r[1]-r[0]))/i),s=Math.min(Math.max(-a+o,0),20);return isFinite(s)?s:20}function addSafe(t,r){var n=Math.max(getPrecision(t),getPrecision(r)),i=t+r;return n>ROUND_SUPPORTED_PRECISION_MAX?i:round$1(i,n)}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),i=Math.pow(10,n),a=t/i,o;return r?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,t=o*i,n>=-20?+t.toFixed(n<0?-n:0):t}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)}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 i=0,a=n.length;i<a;i++){var o=n[i];!t.emphasis[r].hasOwnProperty(o)&&t[r].hasOwnProperty(o)&&(t.emphasis[r][o]=t[r][o])}}}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$2(t)&&!isArray(t)&&!(t instanceof Date)?t.value:t}function isDataItemOption(t){return isObject$2(t)&&!(t instanceof Array)}function mappingToExists(t,r,n){var i=n==="normalMerge",a=n==="replaceMerge",o=n==="replaceAll";t=t||[],r=(r||[]).slice();var s=createHashMap();each$4(r,function(u,c){if(!isObject$2(u)){r[c]=null;return}});var l=prepareResult(t,s,n);return(i||a)&&mappingById(l,t,s,r),i&&mappingByName(l,r),i||a?mappingByIndex(l,r,a):o&&mappingInReplaceAllMode(l,r),makeIdAndName(l),l}function prepareResult(t,r,n){var i=[];if(n==="replaceAll")return i;for(var a=0;a<t.length;a++){var o=t[a];o&&o.id!=null&&r.set(o.id,a),i.push({existing:n==="replaceMerge"||isComponentIdInternal(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return i}function mappingById(t,r,n,i){each$4(i,function(a,o){if(!(!a||a.id==null)){var s=makeComparableKey(a.id),l=n.get(s);if(l!=null){var u=t[l];assert(!u.newOption,'Duplicated option on id "'+s+'".'),u.newOption=a,u.existing=r[l],i[o]=null}}})}function mappingByName(t,r){each$4(r,function(n,i){if(!(!n||n.name==null))for(var a=0;a<t.length;a++){var o=t[a].existing;if(!t[a].newOption&&o&&(o.id==null||n.id==null)&&!isComponentIdInternal(n)&&!isComponentIdInternal(o)&&keyExistAndEqual("name",o,n)){t[a].newOption=n,r[i]=null;return}}})}function mappingByIndex(t,r,n){each$4(r,function(i){if(!!i){for(var a,o=0;(a=t[o])&&(a.newOption||isComponentIdInternal(a.existing)||a.existing&&i.id!=null&&!keyExistAndEqual("id",i,a.existing));)o++;a?(a.newOption=i,a.brandNew=n):t.push({newOption:i,brandNew:n,existing:null,keyInfo:null}),o++}})}function mappingInReplaceAllMode(t,r){each$4(r,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName(t){var r=createHashMap();each$4(t,function(n){var i=n.existing;i&&r.set(i.id,n)}),each$4(t,function(n){var i=n.newOption;assert(!i||i.id==null||!r.get(i.id)||r.get(i.id)===n,"id duplicates: "+(i&&i.id)),i&&i.id!=null&&r.set(i.id,n),!n.keyInfo&&(n.keyInfo={})}),each$4(t,function(n,i){var a=n.existing,o=n.newOption,s=n.keyInfo;if(!!isObject$2(o)){if(s.name=o.name!=null?makeComparableKey(o.name):a?a.name:DUMMY_COMPONENT_NAME_PREFIX+i,a)s.id=makeComparableKey(a.id);else if(o.id!=null)s.id=makeComparableKey(o.id);else{var l=0;do s.id="\0"+s.name+"\0"+l++;while(r.get(s.id))}r.set(s.id,n)}})}function keyExistAndEqual(t,r,n){var i=convertOptionIdName(r[t],null),a=convertOptionIdName(n[t],null);return i!=null&&a!=null&&i===a}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 setComponentTypeToKeyInfo(t,r,n){each$4(t,function(i){var a=i.newOption;isObject$2(a)&&(i.keyInfo.mainType=r,i.keyInfo.subType=determineSubType(r,a,i.existing,n))})}function determineSubType(t,r,n,i){var a=r.type?r.type:n?n.subType:i.determineSubType(t,r);return a}function queryDataIndex(t,r){if(r.dataIndexInside!=null)return r.dataIndexInside;if(r.dataIndex!=null)return isArray(r.dataIndex)?map$1(r.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(r.dataIndex);if(r.name!=null)return isArray(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(t,r,n){var i=preParseFinder(r,n),a=i.mainTypeSpecified,o=i.queryOptionMap,s=i.others,l=s,u=n?n.defaultMainType:null;return!a&&u&&o.set(u,{}),o.each(function(c,d){var v=queryReferringComponents(t,d,c,{useDefault:u===d,enableAll:n&&n.enableAll!=null?n.enableAll:!0,enableNone:n&&n.enableNone!=null?n.enableNone:!0});l[d+"Models"]=v.models,l[d+"Model"]=v.models[0]}),l}function preParseFinder(t,r){var n;if(isString(t)){var i={};i[t+"Index"]=0,n=i}else n=t;var a=createHashMap(),o={},s=!1;return each$4(n,function(l,u){if(u==="dataIndex"||u==="dataIndexInside"){o[u]=l;return}var c=u.match(/^(\w+)(Index|Id|Name)$/)||[],d=c[1],v=(c[2]||"").toLowerCase();if(!(!d||!v||r&&r.includeMainTypes&&indexOf(r.includeMainTypes,d)<0)){s=s||!!d;var I=a.get(d)||a.set(d,{});I[v]=l}}),{mainTypeSpecified:s,queryOptionMap:a,others:o}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1};function queryReferringComponents(t,r,n,i){i=i||SINGLE_REFERRING;var a=n.index,o=n.id,s=n.name,l={models:null,specified:a!=null||o!=null||s!=null};if(!l.specified){var u=void 0;return l.models=i.useDefault&&(u=t.getComponent(r))?[u]:[],l}return a==="none"||a===!1?(assert(i.enableNone,'`"none"` or `false` is not a valid value on index option.'),l.models=[],l):(a==="all"&&(assert(i.enableAll,'`"all"` is not a valid value on index option.'),a=o=s=null),l.models=t.queryComponents({mainType:r,index:a,id:o,name:s}),l)}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 interpolateRawValues(t,r,n,i,a){var o=r==null||r==="auto";if(i==null)return i;if(isNumber(i)){var s=interpolateNumber(n||0,i,a);return round$1(s,o?Math.max(getPrecision(n||0),getPrecision(i)):r)}else{if(isString(i))return a<1?n:i;for(var l=[],u=n,c=i,d=Math.max(u?u.length:0,c.length),v=0;v<d;++v){var I=t.getDimensionInfo(v);if(I&&I.type==="ordinal")l[v]=(a<1&&u?u:c)[v];else{var $=u&&u[v]?u[v]:0,O=c[v],s=interpolateNumber($,O,a);l[v]=round$1(s,o?Math.max(getPrecision($),getPrecision(O)):r)}}return l}}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 i=this,a;return isESClass(i)?a=function(o){__extends(s,o);function s(){return o.apply(this,arguments)||this}return s}(i):(a=function(){(n.$constructor||i).apply(this,arguments)},inherits(a,this)),extend(a.prototype,n),a[IS_EXTENDED_CLASS]=!0,a.extend=this.extend,a.superCall=superCall,a.superApply=superApply,a.superClass=i,a}}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=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];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(i){var a=i.type||i.prototype.type;if(a){checkClassType(a),i.prototype.type=a;var o=parseClassType(a);if(!o.sub)r[o.main]=i;else if(o.sub!==IS_CONTAINER){var s=n(o);s[o.sub]=i}}return i},t.getClass=function(i,a,o){var s=r[i];if(s&&s[IS_CONTAINER]&&(s=a?s[a]:null),o&&!s)throw new Error(a?"Component "+i+"."+(a||"")+" is used but not imported.":i+".type should be specified.");return s},t.getClassesByMainType=function(i){var a=parseClassType(i),o=[],s=r[a.main];return s&&s[IS_CONTAINER]?each$4(s,function(l,u){u!==IS_CONTAINER&&o.push(l)}):o.push(s),o},t.hasClass=function(i){var a=parseClassType(i);return!!r[a.main]},t.getAllClassMainTypes=function(){var i=[];return each$4(r,function(a,o){i.push(o)}),i},t.hasSubTypes=function(i){var a=parseClassType(i),o=r[a.main];return o&&o[IS_CONTAINER]};function n(i){var a=r[i.main];return(!a||!a[IS_CONTAINER])&&(a=r[i.main]={},a[IS_CONTAINER]=!0),a}}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(i,a,o){for(var s={},l=0;l<t.length;l++){var u=t[l][1];if(!(a&&indexOf(a,u)>=0||o&&indexOf(o,u)<0)){var c=i.getShallow(u,r);c!=null&&(s[t[l][0]]=c)}}return s}}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,i,a){if(t)if(typeof t=="string"){if(r&&r.__zrImageSrc===t||!n)return r;var o=globalImageCache.get(t),s={hostEl:n,cb:i,cbPayload:a};return o?(r=o.image,!isImageReady(r)&&o.pending.push(s)):(r=platformApi.loadImage(t,imageOnLoad,imageOnLoad),r.__zrImageSrc=t,globalImageCache.put(t,r.__cachedImgObj={image:r,pending:[s]})),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],i=n.cb;i&&i(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 truncateText2(t,r,n,i,a,o){if(!n){t.text="",t.isTruncated=!1;return}var s=(r+"").split(`
131
+ `);o=prepareTruncateOptions(n,i,a,o);for(var l=!1,u={},c=0,d=s.length;c<d;c++)truncateSingleLine(u,s[c],o),s[c]=u.textLine,l=l||u.isTruncated;t.text=s.join(`
132
+ `),t.isTruncated=l}function prepareTruncateOptions(t,r,n,i){i=i||{};var a=extend({},i);a.font=r,n=retrieve2(n,"..."),a.maxIterations=retrieve2(i.maxIterations,2);var o=a.minChar=retrieve2(i.minChar,0);a.cnCharWidth=getWidth("\u56FD",r);var s=a.ascCharWidth=getWidth("a",r);a.placeholder=retrieve2(i.placeholder,"");for(var l=t=Math.max(0,t-1),u=0;u<o&&l>=s;u++)l-=s;var c=getWidth(n,r);return c>l&&(n="",c=0),l=t-c,a.ellipsis=n,a.ellipsisWidth=c,a.contentWidth=l,a.containerWidth=t,a}function truncateSingleLine(t,r,n){var i=n.containerWidth,a=n.font,o=n.contentWidth;if(!i){t.textLine="",t.isTruncated=!1;return}var s=getWidth(r,a);if(s<=i){t.textLine=r,t.isTruncated=!1;return}for(var l=0;;l++){if(s<=o||l>=n.maxIterations){r+=n.ellipsis;break}var u=l===0?estimateLength(r,o,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(r.length*o/s):0;r=r.substr(0,u),s=getWidth(r,a)}r===""&&(r=n.placeholder),t.textLine=r,t.isTruncated=!0}function estimateLength(t,r,n,i){for(var a=0,o=0,s=t.length;o<s&&a<r;o++){var l=t.charCodeAt(o);a+=0<=l&&l<=127?n:i}return o}function parsePlainText(t,r){t!=null&&(t+="");var n=r.overflow,i=r.padding,a=r.font,o=n==="truncate",s=getLineHeight(a),l=retrieve2(r.lineHeight,s),u=!!r.backgroundColor,c=r.lineOverflow==="truncate",d=!1,v=r.width,I;v!=null&&(n==="break"||n==="breakAll")?I=t?wrapText(t,r.font,v,n==="breakAll",0).lines:[]:I=t?t.split(`
133
+ `):[];var $=I.length*l,O=retrieve2(r.height,$);if($>O&&c){var R=Math.floor(O/l);d=d||I.length>R,I=I.slice(0,R)}if(t&&o&&v!=null)for(var M=prepareTruncateOptions(v,a,r.ellipsis,{minChar:r.truncateMinChar,placeholder:r.placeholder}),N={},V=0;V<I.length;V++)truncateSingleLine(N,I[V],M),I[V]=N.textLine,d=d||N.isTruncated;for(var G=O,Y=0,V=0;V<I.length;V++)Y=Math.max(getWidth(I[V],a),Y);v==null&&(v=Y);var X=Y;return i&&(G+=i[0]+i[2],X+=i[1]+i[3],v+=i[1]+i[3]),u&&(X=v),{lines:I,height:O,outerWidth:X,outerHeight:G,lineHeight:l,calculatedLineHeight:s,contentWidth:Y,contentHeight:$,width:v,isTruncated:d}}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=[],this.isTruncated=!1}return t}();function parseRichText(t,r){var n=new RichTextContentBlock;if(t!=null&&(t+=""),!t)return n;for(var i=r.width,a=r.height,o=r.overflow,s=(o==="break"||o==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:o==="breakAll"}:null,l=STYLE_REG.lastIndex=0,u;(u=STYLE_REG.exec(t))!=null;){var c=u.index;c>l&&pushTokens(n,t.substring(l,c),r,s),pushTokens(n,u[2],r,s,u[1]),l=STYLE_REG.lastIndex}l<t.length&&pushTokens(n,t.substring(l,t.length),r,s);var d=[],v=0,I=0,$=r.padding,O=o==="truncate",R=r.lineOverflow==="truncate",M={};function N(Be,Ie,me){Be.width=Ie,Be.lineHeight=me,v+=me,I=Math.max(I,Ie)}e:for(var V=0;V<n.lines.length;V++){for(var G=n.lines[V],Y=0,X=0,q=0;q<G.tokens.length;q++){var Z=G.tokens[q],ee=Z.styleName&&r.rich[Z.styleName]||{},ne=Z.textPadding=ee.padding,J=ne?ne[1]+ne[3]:0,te=Z.font=ee.font||r.font;Z.contentHeight=getLineHeight(te);var Q=retrieve2(ee.height,Z.contentHeight);if(Z.innerHeight=Q,ne&&(Q+=ne[0]+ne[2]),Z.height=Q,Z.lineHeight=retrieve3(ee.lineHeight,r.lineHeight,Q),Z.align=ee&&ee.align||r.align,Z.verticalAlign=ee&&ee.verticalAlign||"middle",R&&a!=null&&v+Z.lineHeight>a){var oe=n.lines.length;q>0?(G.tokens=G.tokens.slice(0,q),N(G,X,Y),n.lines=n.lines.slice(0,V+1)):n.lines=n.lines.slice(0,V),n.isTruncated=n.isTruncated||n.lines.length<oe;break e}var ue=ee.width,fe=ue==null||ue==="auto";if(typeof ue=="string"&&ue.charAt(ue.length-1)==="%")Z.percentWidth=ue,d.push(Z),Z.contentWidth=getWidth(Z.text,te);else{if(fe){var de=ee.backgroundColor,ye=de&&de.image;ye&&(ye=findExistImage(ye),isImageReady(ye)&&(Z.width=Math.max(Z.width,ye.width*Q/ye.height)))}var ge=O&&i!=null?i-X:null;ge!=null&&ge<Z.width?!fe||ge<J?(Z.text="",Z.width=Z.contentWidth=0):(truncateText2(M,Z.text,ge-J,te,r.ellipsis,{minChar:r.truncateMinChar}),Z.text=M.text,n.isTruncated=n.isTruncated||M.isTruncated,Z.width=Z.contentWidth=getWidth(Z.text,te)):Z.contentWidth=getWidth(Z.text,te)}Z.width+=J,X+=Z.width,ee&&(Y=Math.max(Y,Z.lineHeight))}N(G,X,Y)}n.outerWidth=n.width=retrieve2(i,I),n.outerHeight=n.height=retrieve2(a,v),n.contentHeight=v,n.contentWidth=I,$&&(n.outerWidth+=$[1]+$[3],n.outerHeight+=$[0]+$[2]);for(var V=0;V<d.length;V++){var Z=d[V],Te=Z.percentWidth;Z.width=parseInt(Te,10)/100*n.width}return n}function pushTokens(t,r,n,i,a){var o=r==="",s=a&&n.rich[a]||{},l=t.lines,u=s.font||n.font,c=!1,d,v;if(i){var I=s.padding,$=I?I[1]+I[3]:0;if(s.width!=null&&s.width!=="auto"){var O=parsePercent$1(s.width,i.width)+$;l.length>0&&O+i.accumWidth>i.width&&(d=r.split(`
134
+ `),c=!0),i.accumWidth=O}else{var R=wrapText(r,u,i.width,i.breakAll,i.accumWidth);i.accumWidth=R.accumWidth+$,v=R.linesWidths,d=R.lines}}else d=r.split(`
135
+ `);for(var M=0;M<d.length;M++){var N=d[M],V=new RichTextToken;if(V.styleName=a,V.text=N,V.isLineHolder=!N&&!o,typeof s.width=="number"?V.width=s.width:V.width=v?v[M]:getWidth(N,u),!M&&!c){var G=(l[l.length-1]||(l[0]=new RichTextLine)).tokens,Y=G.length;Y===1&&G[0].isLineHolder?G[0]=V:(N||!Y||o)&&G.push(V)}else l.push(new RichTextLine([V]))}}function isAlphabeticLetter(t){var r=t.charCodeAt(0);return r>=32&&r<=591||r>=880&&r<=4351||r>=4608&&r<=5119||r>=7680&&r<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(t,r){return t[r]=!0,t},{});function isWordBreakChar(t){return isAlphabeticLetter(t)?!!breakCharMap[t]:!0}function wrapText(t,r,n,i,a){for(var o=[],s=[],l="",u="",c=0,d=0,v=0;v<t.length;v++){var I=t.charAt(v);if(I===`
136
+ `){u&&(l+=u,d+=c),o.push(l),s.push(d),l="",u="",c=0,d=0;continue}var $=getWidth(I,r),O=i?!1:!isWordBreakChar(I);if(o.length?d+$>n:a+d+$>n){d?(l||u)&&(O?(l||(l=u,u="",c=0,d=c),o.push(l),s.push(d-c),u+=I,c+=$,l="",d=c):(u&&(l+=u,u="",c=0),o.push(l),s.push(d),l=I,d=$)):O?(o.push(u),s.push(c),u=I,c=$):(o.push(I),s.push($));continue}d+=$,O?(u+=I,c+=$):(u&&(l+=u,u="",c=0),l+=I)}return!o.length&&!l&&(l=t,u="",c=0),u&&(l+=u),l&&(o.push(l),s.push(d)),o.length===1&&(d+=a),{accumWidth:d,lines:o,linesWidths:s}}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 i=keys(n),a=0;a<i.length;a++){var o=i[a];o==="style"?this.useStyle(n[o]):t.prototype.attrKV.call(this,o,n[o])}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,i,a,o){var s=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,n,i)||s&&!s[0]&&!s[3])return!1;if(a&&this.__clipPaths){for(var l=0;l<this.__clipPaths.length;++l)if(this.__clipPaths[l].isZeroArea())return!1}if(o&&this.parent)for(var u=this.parent;u;){if(u.ignore)return!1;u=u.parent}return!0},r.prototype.contain=function(n,i){return this.rectContain(n,i)},r.prototype.traverse=function(n,i){n.call(i,this)},r.prototype.rectContain=function(n,i){var a=this.transformCoordToLocal(n,i),o=this.getBoundingRect();return o.contain(a[0],a[1])},r.prototype.getPaintRect=function(){var n=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,a=this.getBoundingRect(),o=this.style,s=o.shadowBlur||0,l=o.shadowOffsetX||0,u=o.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),i?BoundingRect$1.applyTransform(n,a,i):n.copy(a),(s||l||u)&&(n.width+=s*2+Math.abs(l),n.height+=s*2+Math.abs(u),n.x=Math.min(n.x,n.x+l-s),n.y=Math.min(n.y,n.y+u-s));var c=this.dirtyRectTolerance;n.isZero()||(n.x=Math.floor(n.x-c),n.y=Math.floor(n.y-c),n.width=Math.ceil(n.width+1+c*2),n.height=Math.ceil(n.height+1+c*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,i){n!=="style"?t.prototype.attrKV.call(this,n,i):this.style?this.setStyle(i):this.useStyle(i)},r.prototype.setStyle=function(n,i){return typeof n=="string"?this.style[n]=i: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 i=this._normalState;n.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(n,i,PRIMARY_STATES_KEYS)},r.prototype._applyStateObj=function(n,i,a,o,s,l){t.prototype._applyStateObj.call(this,n,i,a,o,s,l);var u=!(i&&o),c;if(i&&i.style?s?o?c=i.style:(c=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(c,i.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(c,i.style)):u&&(c=a.style),c)if(s){var d=this.style;if(this.style=this.createStyle(u?{}:d),u)for(var v=keys(d),I=0;I<v.length;I++){var $=v[I];$ in c&&(c[$]=c[$],this.style[$]=d[$])}for(var O=keys(c),I=0;I<O.length;I++){var $=O[I];this.style[$]=this.style[$]}this._transitionState(n,{style:c},l,this.getAnimationStyleProps())}else this.useStyle(c);for(var R=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,I=0;I<R.length;I++){var $=R[I];i&&i[$]!=null?this[$]=i[$]:u&&a[$]!=null&&(this[$]=a[$])}},r.prototype._mergeStates=function(n){for(var i=t.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var s=n[o];s.style&&(a=a||{},this._mergeStyle(a,s.style))}return a&&(i.style=a),i},r.prototype._mergeStyle=function(n,i){return extend(n,i),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$4=Math.min,mathMax$4=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$5=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine(t,r,n,i,a,o){a[0]=mathMin$4(t,n),a[1]=mathMin$4(r,i),o[0]=mathMax$4(t,n),o[1]=mathMax$4(r,i)}var xDim=[],yDim=[];function fromCubic(t,r,n,i,a,o,s,l,u,c){var d=cubicExtrema,v=cubicAt,I=d(t,n,a,s,xDim);u[0]=1/0,u[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var $=0;$<I;$++){var O=v(t,n,a,s,xDim[$]);u[0]=mathMin$4(O,u[0]),c[0]=mathMax$4(O,c[0])}I=d(r,i,o,l,yDim);for(var $=0;$<I;$++){var R=v(r,i,o,l,yDim[$]);u[1]=mathMin$4(R,u[1]),c[1]=mathMax$4(R,c[1])}u[0]=mathMin$4(t,u[0]),c[0]=mathMax$4(t,c[0]),u[0]=mathMin$4(s,u[0]),c[0]=mathMax$4(s,c[0]),u[1]=mathMin$4(r,u[1]),c[1]=mathMax$4(r,c[1]),u[1]=mathMin$4(l,u[1]),c[1]=mathMax$4(l,c[1])}function fromQuadratic(t,r,n,i,a,o,s,l){var u=quadraticExtremum,c=quadraticAt,d=mathMax$4(mathMin$4(u(t,n,a),1),0),v=mathMax$4(mathMin$4(u(r,i,o),1),0),I=c(t,n,a,d),$=c(r,i,o,v);s[0]=mathMin$4(t,a,I),s[1]=mathMin$4(r,o,$),l[0]=mathMax$4(t,a,I),l[1]=mathMax$4(r,o,$)}function fromArc(t,r,n,i,a,o,s,l,u){var c=min$1,d=max$1,v=Math.abs(a-o);if(v%PI2$5<1e-4&&v>1e-4){l[0]=t-n,l[1]=r-i,u[0]=t+n,u[1]=r+i;return}if(start[0]=mathCos$3(a)*n+t,start[1]=mathSin$3(a)*i+r,end[0]=mathCos$3(o)*n+t,end[1]=mathSin$3(o)*i+r,c(l,start,end),d(u,start,end),a=a%PI2$5,a<0&&(a=a+PI2$5),o=o%PI2$5,o<0&&(o=o+PI2$5),a>o&&!s?o+=PI2$5:a<o&&s&&(a+=PI2$5),s){var I=o;o=a,a=I}for(var $=0;$<o;$+=Math.PI/2)$>a&&(extremity[0]=mathCos$3($)*n+t,extremity[1]=mathSin$3($)*i+r,c(l,extremity,l),d(u,extremity,u))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$3=Math.min,mathMax$3=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$4=PI$4*2,hasTypedArray=typeof Float32Array!="undefined",tmpAngles=[];function modPI2(t){var r=Math.round(t/PI$4*1e8)/1e8;return r%2*PI$4}function normalizeArcAngles(t,r){var n=modPI2(t[0]);n<0&&(n+=PI2$4);var i=n-t[0],a=t[1];a+=i,!r&&a-n>=PI2$4?a=n+PI2$4:r&&n-a>=PI2$4?a=n-PI2$4:!r&&n>a?a=n+(PI2$4-modPI2(n-a)):r&&n<a&&(a=n-(PI2$4-modPI2(a-n))),t[0]=n,t[1]=a}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,i){i=i||0,i>0&&(this._ux=mathAbs$1(i/devicePixelRatio/r)||0,this._uy=mathAbs$1(i/devicePixelRatio/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$2.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 i=mathAbs$1(r-this._xi),a=mathAbs$1(n-this._yi),o=i>this._ux||a>this._uy;if(this.addData(CMD$2.L,r,n),this._ctx&&o&&this._ctx.lineTo(r,n),o)this._xi=r,this._yi=n,this._pendingPtDist=0;else{var s=i*i+a*a;s>this._pendingPtDist&&(this._pendingPtX=r,this._pendingPtY=n,this._pendingPtDist=s)}return this},t.prototype.bezierCurveTo=function(r,n,i,a,o,s){return this._drawPendingPt(),this.addData(CMD$2.C,r,n,i,a,o,s),this._ctx&&this._ctx.bezierCurveTo(r,n,i,a,o,s),this._xi=o,this._yi=s,this},t.prototype.quadraticCurveTo=function(r,n,i,a){return this._drawPendingPt(),this.addData(CMD$2.Q,r,n,i,a),this._ctx&&this._ctx.quadraticCurveTo(r,n,i,a),this._xi=i,this._yi=a,this},t.prototype.arc=function(r,n,i,a,o,s){this._drawPendingPt(),tmpAngles[0]=a,tmpAngles[1]=o,normalizeArcAngles(tmpAngles,s),a=tmpAngles[0],o=tmpAngles[1];var l=o-a;return this.addData(CMD$2.A,r,n,i,i,a,l,0,s?0:1),this._ctx&&this._ctx.arc(r,n,i,a,o,s),this._xi=mathCos$2(o)*i+r,this._yi=mathSin$2(o)*i+n,this},t.prototype.arcTo=function(r,n,i,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(r,n,i,a,o),this},t.prototype.rect=function(r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(r,n,i,a),this.addData(CMD$2.R,r,n,i,a),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var r=this._ctx,n=this._x0,i=this._y0;return r&&r.closePath(),this._xi=n,this._yi=i,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 i=0;i<n;i++)this.data[i]=r[i];this._len=n},t.prototype.appendPath=function(r){r instanceof Array||(r=[r]);for(var n=r.length,i=0,a=this._len,o=0;o<n;o++)i+=r[o].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+i));for(var o=0;o<n;o++)for(var s=r[o].data,l=0;l<s.length;l++)this.data[a++]=s[l];this._len=a},t.prototype.addData=function(r,n,i,a,o,s,l,u,c){if(!!this._saveData){var d=this.data;this._len+arguments.length>d.length&&(this._expandData(),d=this.data);for(var v=0;v<arguments.length;v++)d[this._len++]=arguments[v]}},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,i=0,a=0,o=0,s;for(s=0;s<this._len;){var l=r[s++],u=s===1;switch(u&&(n=r[s],i=r[s+1],a=n,o=i),l){case CMD$2.M:n=a=r[s++],i=o=r[s++],min2[0]=a,min2[1]=o,max2[0]=a,max2[1]=o;break;case CMD$2.L:fromLine(n,i,r[s],r[s+1],min2,max2),n=r[s++],i=r[s++];break;case CMD$2.C:fromCubic(n,i,r[s++],r[s++],r[s++],r[s++],r[s],r[s+1],min2,max2),n=r[s++],i=r[s++];break;case CMD$2.Q:fromQuadratic(n,i,r[s++],r[s++],r[s],r[s+1],min2,max2),n=r[s++],i=r[s++];break;case CMD$2.A:var c=r[s++],d=r[s++],v=r[s++],I=r[s++],$=r[s++],O=r[s++]+$;s+=1;var R=!r[s++];u&&(a=mathCos$2($)*v+c,o=mathSin$2($)*I+d),fromArc(c,d,v,I,$,O,R,min2,max2),n=mathCos$2(O)*v+c,i=mathSin$2(O)*I+d;break;case CMD$2.R:a=n=r[s++],o=i=r[s++];var M=r[s++],N=r[s++];fromLine(a,o,a+M,o+N,min2,max2);break;case CMD$2.Z:n=a,i=o;break}min$1(min,min,min2),max$1(max,max,max2)}return s===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,i=this._ux,a=this._uy,o=0,s=0,l=0,u=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,d=0,v=0,I=0;I<n;){var $=r[I++],O=I===1;O&&(o=r[I],s=r[I+1],l=o,u=s);var R=-1;switch($){case CMD$2.M:o=l=r[I++],s=u=r[I++];break;case CMD$2.L:{var M=r[I++],N=r[I++],V=M-o,G=N-s;(mathAbs$1(V)>i||mathAbs$1(G)>a||I===n-1)&&(R=Math.sqrt(V*V+G*G),o=M,s=N);break}case CMD$2.C:{var Y=r[I++],X=r[I++],M=r[I++],N=r[I++],q=r[I++],Z=r[I++];R=cubicLength(o,s,Y,X,M,N,q,Z,10),o=q,s=Z;break}case CMD$2.Q:{var Y=r[I++],X=r[I++],M=r[I++],N=r[I++];R=quadraticLength(o,s,Y,X,M,N,10),o=M,s=N;break}case CMD$2.A:var ee=r[I++],ne=r[I++],J=r[I++],te=r[I++],Q=r[I++],oe=r[I++],ue=oe+Q;I+=1,O&&(l=mathCos$2(Q)*J+ee,u=mathSin$2(Q)*te+ne),R=mathMax$3(J,te)*mathMin$3(PI2$4,Math.abs(oe)),o=mathCos$2(ue)*J+ee,s=mathSin$2(ue)*te+ne;break;case CMD$2.R:{l=o=r[I++],u=s=r[I++];var fe=r[I++],de=r[I++];R=fe*2+de*2;break}case CMD$2.Z:{var V=l-o,G=u-s;R=Math.sqrt(V*V+G*G),o=l,s=u;break}}R>=0&&(c[v++]=R,d+=R)}return this._pathLen=d,d},t.prototype.rebuildPath=function(r,n){var i=this.data,a=this._ux,o=this._uy,s=this._len,l,u,c,d,v,I,$=n<1,O,R,M=0,N=0,V,G=0,Y,X;if($&&(this._pathSegLen||this._calculateLength(),O=this._pathSegLen,R=this._pathLen,V=n*R,!V))return;e:for(var q=0;q<s;){var Z=i[q++],ee=q===1;switch(ee&&(c=i[q],d=i[q+1],l=c,u=d),Z!==CMD$2.L&&G>0&&(r.lineTo(Y,X),G=0),Z){case CMD$2.M:l=c=i[q++],u=d=i[q++],r.moveTo(c,d);break;case CMD$2.L:{v=i[q++],I=i[q++];var ne=mathAbs$1(v-c),J=mathAbs$1(I-d);if(ne>a||J>o){if($){var te=O[N++];if(M+te>V){var Q=(V-M)/te;r.lineTo(c*(1-Q)+v*Q,d*(1-Q)+I*Q);break e}M+=te}r.lineTo(v,I),c=v,d=I,G=0}else{var oe=ne*ne+J*J;oe>G&&(Y=v,X=I,G=oe)}break}case CMD$2.C:{var ue=i[q++],fe=i[q++],de=i[q++],ye=i[q++],ge=i[q++],Te=i[q++];if($){var te=O[N++];if(M+te>V){var Q=(V-M)/te;cubicSubdivide(c,ue,de,ge,Q,tmpOutX),cubicSubdivide(d,fe,ye,Te,Q,tmpOutY),r.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}M+=te}r.bezierCurveTo(ue,fe,de,ye,ge,Te),c=ge,d=Te;break}case CMD$2.Q:{var ue=i[q++],fe=i[q++],de=i[q++],ye=i[q++];if($){var te=O[N++];if(M+te>V){var Q=(V-M)/te;quadraticSubdivide(c,ue,de,Q,tmpOutX),quadraticSubdivide(d,fe,ye,Q,tmpOutY),r.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}M+=te}r.quadraticCurveTo(ue,fe,de,ye),c=de,d=ye;break}case CMD$2.A:var Be=i[q++],Ie=i[q++],me=i[q++],De=i[q++],Ve=i[q++],Ue=i[q++],Ze=i[q++],ft=!i[q++],at=me>De?me:De,dt=mathAbs$1(me-De)>.001,Le=Ve+Ue,Me=!1;if($){var te=O[N++];M+te>V&&(Le=Ve+Ue*(V-M)/te,Me=!0),M+=te}if(dt&&r.ellipse?r.ellipse(Be,Ie,me,De,Ze,Ve,Le,ft):r.arc(Be,Ie,at,Ve,Le,ft),Me)break e;ee&&(l=mathCos$2(Ve)*me+Be,u=mathSin$2(Ve)*De+Ie),c=mathCos$2(Le)*me+Be,d=mathSin$2(Le)*De+Ie;break;case CMD$2.R:l=c=i[q],u=d=i[q+1],v=i[q++],I=i[q++];var ke=i[q++],se=i[q++];if($){var te=O[N++];if(M+te>V){var ae=V-M;r.moveTo(v,I),r.lineTo(v+mathMin$3(ae,ke),I),ae-=ke,ae>0&&r.lineTo(v+ke,I+mathMin$3(ae,se)),ae-=se,ae>0&&r.lineTo(v+mathMax$3(ke-ae,0),I+se),ae-=ke,ae>0&&r.lineTo(v,I+mathMax$3(se-ae,0));break e}M+=te}r.rect(v,I,ke,se);break;case CMD$2.Z:if($){var te=O[N++];if(M+te>V){var Q=(V-M)/te;r.lineTo(c*(1-Q)+l*Q,d*(1-Q)+u*Q);break e}M+=te}r.closePath(),c=l,d=u}}},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$2,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,i,a,o,s){if(a===0)return!1;var l=a,u=0,c=t;if(s>r+l&&s>i+l||s<r-l&&s<i-l||o>t+l&&o>n+l||o<t-l&&o<n-l)return!1;if(t!==n)u=(r-i)/(t-n),c=(t*i-n*r)/(t-n);else return Math.abs(o-t)<=l/2;var d=u*o-s+c,v=d*d/(u*u+1);return v<=l/2*l/2}function containStroke$3(t,r,n,i,a,o,s,l,u,c,d){if(u===0)return!1;var v=u;if(d>r+v&&d>i+v&&d>o+v&&d>l+v||d<r-v&&d<i-v&&d<o-v&&d<l-v||c>t+v&&c>n+v&&c>a+v&&c>s+v||c<t-v&&c<n-v&&c<a-v&&c<s-v)return!1;var I=cubicProjectPoint(t,r,n,i,a,o,s,l,c,d,null);return I<=v/2}function containStroke$2(t,r,n,i,a,o,s,l,u){if(s===0)return!1;var c=s;if(u>r+c&&u>i+c&&u>o+c||u<r-c&&u<i-c&&u<o-c||l>t+c&&l>n+c&&l>a+c||l<t-c&&l<n-c&&l<a-c)return!1;var d=quadraticProjectPoint(t,r,n,i,a,o,l,u,null);return d<=c/2}var PI2$3=Math.PI*2;function normalizeRadian(t){return t%=PI2$3,t<0&&(t+=PI2$3),t}var PI2$2=Math.PI*2;function containStroke$1(t,r,n,i,a,o,s,l,u){if(s===0)return!1;var c=s;l-=t,u-=r;var d=Math.sqrt(l*l+u*u);if(d-c>n||d+c<n)return!1;if(Math.abs(i-a)%PI2$2<1e-4)return!0;if(o){var v=i;i=normalizeRadian(a),a=normalizeRadian(v)}else i=normalizeRadian(i),a=normalizeRadian(a);i>a&&(a+=PI2$2);var I=Math.atan2(u,l);return I<0&&(I+=PI2$2),I>=i&&I<=a||I+PI2$2>=i&&I+PI2$2<=a}function windingLine(t,r,n,i,a,o){if(o>r&&o>i||o<r&&o<i||i===r)return 0;var s=(o-r)/(i-r),l=i<r?1:-1;(s===1||s===0)&&(l=i<r?.5:-.5);var u=s*(n-t)+t;return u===a?1/0:u>a?l:0}var CMD$1=PathProxy$1.CMD,PI2$1=Math.PI*2,EPSILON=1e-4;function isAroundEqual(t,r){return Math.abs(t-r)<EPSILON}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,i,a,o,s,l,u,c){if(c>r&&c>i&&c>o&&c>l||c<r&&c<i&&c<o&&c<l)return 0;var d=cubicRootAt(r,i,o,l,c,roots);if(d===0)return 0;for(var v=0,I=-1,$=void 0,O=void 0,R=0;R<d;R++){var M=roots[R],N=M===0||M===1?.5:1,V=cubicAt(t,n,a,s,M);V<u||(I<0&&(I=cubicExtrema(r,i,o,l,extrema),extrema[1]<extrema[0]&&I>1&&swapExtrema(),$=cubicAt(r,i,o,l,extrema[0]),I>1&&(O=cubicAt(r,i,o,l,extrema[1]))),I===2?M<extrema[0]?v+=$<r?N:-N:M<extrema[1]?v+=O<$?N:-N:v+=l<O?N:-N:M<extrema[0]?v+=$<r?N:-N:v+=l<$?N:-N)}return v}function windingQuadratic(t,r,n,i,a,o,s,l){if(l>r&&l>i&&l>o||l<r&&l<i&&l<o)return 0;var u=quadraticRootAt(r,i,o,l,roots);if(u===0)return 0;var c=quadraticExtremum(r,i,o);if(c>=0&&c<=1){for(var d=0,v=quadraticAt(r,i,o,c),I=0;I<u;I++){var $=roots[I]===0||roots[I]===1?.5:1,O=quadraticAt(t,n,a,roots[I]);O<s||(roots[I]<c?d+=v<r?$:-$:d+=o<v?$:-$)}return d}else{var $=roots[0]===0||roots[0]===1?.5:1,O=quadraticAt(t,n,a,roots[0]);return O<s?0:o<r?$:-$}}function windingArc(t,r,n,i,a,o,s,l){if(l-=r,l>n||l<-n)return 0;var u=Math.sqrt(n*n-l*l);roots[0]=-u,roots[1]=u;var c=Math.abs(i-a);if(c<1e-4)return 0;if(c>=PI2$1-1e-4){i=0,a=PI2$1;var d=o?1:-1;return s>=roots[0]+t&&s<=roots[1]+t?d:0}if(i>a){var v=i;i=a,a=v}i<0&&(i+=PI2$1,a+=PI2$1);for(var I=0,$=0;$<2;$++){var O=roots[$];if(O+t>s){var R=Math.atan2(l,O),d=o?1:-1;R<0&&(R=PI2$1+R),(R>=i&&R<=a||R+PI2$1>=i&&R+PI2$1<=a)&&(R>Math.PI/2&&R<Math.PI*1.5&&(d=-d),I+=d)}}return I}function containPath(t,r,n,i,a){for(var o=t.data,s=t.len(),l=0,u=0,c=0,d=0,v=0,I,$,O=0;O<s;){var R=o[O++],M=O===1;switch(R===CMD$1.M&&O>1&&(n||(l+=windingLine(u,c,d,v,i,a))),M&&(u=o[O],c=o[O+1],d=u,v=c),R){case CMD$1.M:d=o[O++],v=o[O++],u=d,c=v;break;case CMD$1.L:if(n){if(containStroke$4(u,c,o[O],o[O+1],r,i,a))return!0}else l+=windingLine(u,c,o[O],o[O+1],i,a)||0;u=o[O++],c=o[O++];break;case CMD$1.C:if(n){if(containStroke$3(u,c,o[O++],o[O++],o[O++],o[O++],o[O],o[O+1],r,i,a))return!0}else l+=windingCubic(u,c,o[O++],o[O++],o[O++],o[O++],o[O],o[O+1],i,a)||0;u=o[O++],c=o[O++];break;case CMD$1.Q:if(n){if(containStroke$2(u,c,o[O++],o[O++],o[O],o[O+1],r,i,a))return!0}else l+=windingQuadratic(u,c,o[O++],o[O++],o[O],o[O+1],i,a)||0;u=o[O++],c=o[O++];break;case CMD$1.A:var N=o[O++],V=o[O++],G=o[O++],Y=o[O++],X=o[O++],q=o[O++];O+=1;var Z=!!(1-o[O++]);I=Math.cos(X)*G+N,$=Math.sin(X)*Y+V,M?(d=I,v=$):l+=windingLine(u,c,I,$,i,a);var ee=(i-N)*Y/G+N;if(n){if(containStroke$1(N,V,Y,X,X+q,Z,r,ee,a))return!0}else l+=windingArc(N,V,Y,X,X+q,Z,ee,a);u=Math.cos(X+q)*G+N,c=Math.sin(X+q)*Y+V;break;case CMD$1.R:d=u=o[O++],v=c=o[O++];var ne=o[O++],J=o[O++];if(I=d+ne,$=v+J,n){if(containStroke$4(d,v,I,v,r,i,a)||containStroke$4(I,v,I,$,r,i,a)||containStroke$4(I,$,d,$,r,i,a)||containStroke$4(d,$,d,v,r,i,a))return!0}else l+=windingLine(I,v,I,$,i,a),l+=windingLine(d,$,d,v,i,a);break;case CMD$1.Z:if(n){if(containStroke$4(u,c,d,v,r,i,a))return!0}else l+=windingLine(u,c,d,v,i,a);u=d,c=v;break}}return!n&&!isAroundEqual(c,v)&&(l+=windingLine(u,c,d,v,i,a)||0),l!==0}function contain$1(t,r,n){return containPath(t,0,!1,r,n)}function containStroke(t,r,n,i){return containPath(t,r,!0,n,i)}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 i=this.style;if(i.decal){var a=this._decalEl=this._decalEl||new r;a.buildPath===r.prototype.buildPath&&(a.buildPath=function(u){n.buildPath(u,n.shape)}),a.silent=!0;var o=a.style;for(var s in i)o[s]!==i[s]&&(o[s]=i[s]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var l=0;l<pathCopyParams.length;++l)a[pathCopyParams[l]]=this[pathCopyParams[l]];a.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},r.prototype.getDecalElement=function(){return this._decalEl},r.prototype._init=function(n){var i=keys(n);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var o=0;o<i.length;o++){var s=i[o],l=n[s];s==="style"?this.style?extend(this.style,l):this.useStyle(l):s==="shape"?extend(this.shape,l):t.prototype.attrKV.call(this,s,l)}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 i=lum(n,0);return i>.5?DARK_LABEL_COLOR:i>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(n)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},r.prototype.getInsideTextStroke=function(n){var i=this.style.fill;if(isString(i)){var a=this.__zr,o=!!(a&&a.isDarkMode()),s=lum(n,0)<DARK_MODE_THRESHOLD;if(o===s)return i}},r.prototype.buildPath=function(n,i,a){},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,i=n.stroke;return!(i==null||i==="none"||!(n.lineWidth>0))},r.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="none"},r.prototype.getBoundingRect=function(){var n=this._rect,i=this.style,a=!n;if(a){var o=!1;this.path||(o=!0,this.createPathProxy());var s=this.path;(o||this.__dirty&SHAPE_CHANGED_BIT)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),n=s.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||a){l.copy(n);var u=i.strokeNoScale?this.getLineScale():1,c=i.lineWidth;if(!this.hasFill()){var d=this.strokeContainThreshold;c=Math.max(c,d==null?4:d)}u>1e-10&&(l.width+=c/u,l.height+=c/u,l.x-=c/u/2,l.y-=c/u/2)}return l}return n},r.prototype.contain=function(n,i){var a=this.transformCoordToLocal(n,i),o=this.getBoundingRect(),s=this.style;if(n=a[0],i=a[1],o.contain(n,i)){var l=this.path;if(this.hasStroke()){var u=s.lineWidth,c=s.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(u=Math.max(u,this.strokeContainThreshold)),containStroke(l,u/c,n,i)))return!0}if(this.hasFill())return contain$1(l,n,i)}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,i){n==="shape"?this.setShape(i):t.prototype.attrKV.call(this,n,i)},r.prototype.setShape=function(n,i){var a=this.shape;return a||(a=this.shape={}),typeof n=="string"?a[n]=i:extend(a,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 i=this._normalState;n.shape&&!i.shape&&(i.shape=extend({},this.shape))},r.prototype._applyStateObj=function(n,i,a,o,s,l){t.prototype._applyStateObj.call(this,n,i,a,o,s,l);var u=!(i&&o),c;if(i&&i.shape?s?o?c=i.shape:(c=extend({},a.shape),extend(c,i.shape)):(c=extend({},o?this.shape:a.shape),extend(c,i.shape)):u&&(c=a.shape),c)if(s){this.shape=extend({},this.shape);for(var d={},v=keys(c),I=0;I<v.length;I++){var $=v[I];typeof c[$]=="object"?this.shape[$]=c[$]:d[$]=c[$]}this._transitionState(n,{shape:d},l)}else this.shape=c,this.dirtyShape()},r.prototype._mergeStates=function(n){for(var i=t.prototype._mergeStates.call(this,n),a,o=0;o<n.length;o++){var s=n[o];s.shape&&(a=a||{},this._mergeStyle(a,s.shape))}return a&&(i.shape=a),i},r.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},r.prototype.isZeroArea=function(){return!1},r.extend=function(n){var i=function(o){__extends(s,o);function s(l){var u=o.call(this,l)||this;return n.init&&n.init.call(u,l),u}return s.prototype.getDefaultStyle=function(){return clone$2(n.style)},s.prototype.getDefaultShape=function(){return clone$2(n.shape)},s}(r);for(var a in n)typeof n[a]=="function"&&(i.prototype[a]=n[a]);return i},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,i=n.stroke;return i!=null&&i!=="none"&&n.lineWidth>0},r.prototype.hasFill=function(){var n=this.style,i=n.fill;return i!=null&&i!=="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 i=n.text;i!=null?i+="":i="";var a=getBoundingRect(i,n.font,n.textAlign,n.textBaseline);if(a.x+=n.x||0,a.y+=n.y||0,this.hasStroke()){var o=n.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}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(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 i=this.style,a=i[n];if(a!=null)return a;var o=isImageLike(i.image)?i.image:this.__image;if(!o)return 0;var s=n==="width"?"height":"width",l=i[s];return l==null?o[n]:o[n]/o[s]*l},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,i=r.y,a=r.width,o=r.height,s=r.r,l,u,c,d;a<0&&(n=n+a,a=-a),o<0&&(i=i+o,o=-o),typeof s=="number"?l=u=c=d=s:s instanceof Array?s.length===1?l=u=c=d=s[0]:s.length===2?(l=c=s[0],u=d=s[1]):s.length===3?(l=s[0],u=d=s[1],c=s[2]):(l=s[0],u=s[1],c=s[2],d=s[3]):l=u=c=d=0;var v;l+u>a&&(v=l+u,l*=a/v,u*=a/v),c+d>a&&(v=c+d,c*=a/v,d*=a/v),u+c>o&&(v=u+c,u*=o/v,c*=o/v),l+d>o&&(v=l+d,l*=o/v,d*=o/v),t.moveTo(n+l,i),t.lineTo(n+a-u,i),u!==0&&t.arc(n+a-u,i+u,u,-Math.PI/2,0),t.lineTo(n+a,i+o-c),c!==0&&t.arc(n+a-c,i+o-c,c,0,Math.PI/2),t.lineTo(n+d,i+o),d!==0&&t.arc(n+d,i+o-d,d,Math.PI/2,Math.PI),t.lineTo(n,i+l),l!==0&&t.arc(n+l,i+l,l,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(t,r,n){if(!!r){var i=r.x1,a=r.x2,o=r.y1,s=r.y2;t.x1=i,t.x2=a,t.y1=o,t.y2=s;var l=n&&n.lineWidth;return l&&(round(i*2)===round(a*2)&&(t.x1=t.x2=subPixelOptimize$1(i,l,!0)),round(o*2)===round(s*2)&&(t.y1=t.y2=subPixelOptimize$1(o,l,!0))),t}}function subPixelOptimizeRect$1(t,r,n){if(!!r){var i=r.x,a=r.y,o=r.width,s=r.height;t.x=i,t.y=a,t.width=o,t.height=s;var l=n&&n.lineWidth;return l&&(t.x=subPixelOptimize$1(i,l,!0),t.y=subPixelOptimize$1(a,l,!0),t.width=Math.max(subPixelOptimize$1(i+o,l,!1)-t.x,o===0?0:1),t.height=Math.max(subPixelOptimize$1(a+s,l,!1)-t.y,s===0?0:1)),t}}function subPixelOptimize$1(t,r,n){if(!r)return t;var i=round(t*2);return(i+round(r))%2===0?i/2:(i+(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=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,i){var a,o,s,l;if(this.subPixelOptimize){var u=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,i,this.style);a=u.x,o=u.y,s=u.width,l=u.height,u.r=i.r,i=u}else a=i.x,o=i.y,s=i.width,l=i.height;i.r?buildPath$2(n,i):n.rect(a,o,s,l)},r.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},r}(Path$1);Rect.prototype.type="rect";var Rect$1=Rect,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 i=t.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=DEFAULT_RICH_TEXT_COLOR,i.attr(n),i}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 i=this._children[n];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.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 i=this.innerTransformable;return i?i.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 i=0;i<this._children.length;i++)this._children[i].__zr=n},r.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},r.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new BoundingRect$1(0,0,0,0),i=this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s],u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(n.copy(u),n.applyTransform(c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}this._rect=o||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,i){if(!i)return n;var a=i.rich,o=n.rich||a&&{};return extend(n,i),a&&o?(this._mergeRich(o,a),n.rich=o):o&&(n.rich=o),n},r.prototype._mergeRich=function(n,i){for(var a=keys(i),o=0;o<a.length;o++){var s=a[o];n[s]=n[s]||{},extend(n[s],i[s])}},r.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},r.prototype._getOrCreateChild=function(n){var i=this._children[this._childCursor];return(!i||!(i instanceof n))&&(i=new n),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},r.prototype._updatePlainTexts=function(){var n=this.style,i=n.font||DEFAULT_FONT,a=n.padding,o=getStyleText(n),s=parsePlainText(o,n),l=needDrawBackground(n),u=!!n.backgroundColor,c=s.outerHeight,d=s.outerWidth,v=s.contentWidth,I=s.lines,$=s.lineHeight,O=this._defaultStyle;this.isTruncated=!!s.isTruncated;var R=n.x||0,M=n.y||0,N=n.align||O.align||"left",V=n.verticalAlign||O.verticalAlign||"top",G=R,Y=adjustTextY(M,s.contentHeight,V);if(l||a){var X=adjustTextX(R,d,N),q=adjustTextY(M,c,V);l&&this._renderBackground(n,n,X,q,d,c)}Y+=$/2,a&&(G=getTextXForPadding(R,N,a),V==="top"?Y+=a[0]:V==="bottom"&&(Y-=a[2]));for(var Z=0,ee=!1,ne=getFill("fill"in n?n.fill:(ee=!0,O.fill)),J=getStroke("stroke"in n?n.stroke:!u&&(!O.autoStroke||ee)?(Z=DEFAULT_STROKE_LINE_WIDTH,O.stroke):null),te=n.textShadowBlur>0,Q=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),oe=s.calculatedLineHeight,ue=0;ue<I.length;ue++){var fe=this._getOrCreateChild(TSpan$1),de=fe.createStyle();fe.useStyle(de),de.text=I[ue],de.x=G,de.y=Y,N&&(de.textAlign=N),de.textBaseline="middle",de.opacity=n.opacity,de.strokeFirst=!0,te&&(de.shadowBlur=n.textShadowBlur||0,de.shadowColor=n.textShadowColor||"transparent",de.shadowOffsetX=n.textShadowOffsetX||0,de.shadowOffsetY=n.textShadowOffsetY||0),de.stroke=J,de.fill=ne,J&&(de.lineWidth=n.lineWidth||Z,de.lineDash=n.lineDash,de.lineDashOffset=n.lineDashOffset||0),de.font=i,setSeparateFont(de,n),Y+=$,Q&&fe.setBoundingRect(new BoundingRect$1(adjustTextX(de.x,v,de.textAlign),adjustTextY(de.y,oe,de.textBaseline),v,oe))}},r.prototype._updateRichTexts=function(){var n=this.style,i=getStyleText(n),a=parseRichText(i,n),o=a.width,s=a.outerWidth,l=a.outerHeight,u=n.padding,c=n.x||0,d=n.y||0,v=this._defaultStyle,I=n.align||v.align,$=n.verticalAlign||v.verticalAlign;this.isTruncated=!!a.isTruncated;var O=adjustTextX(c,s,I),R=adjustTextY(d,l,$),M=O,N=R;u&&(M+=u[3],N+=u[0]);var V=M+o;needDrawBackground(n)&&this._renderBackground(n,n,O,R,s,l);for(var G=!!n.backgroundColor,Y=0;Y<a.lines.length;Y++){for(var X=a.lines[Y],q=X.tokens,Z=q.length,ee=X.lineHeight,ne=X.width,J=0,te=M,Q=V,oe=Z-1,ue=void 0;J<Z&&(ue=q[J],!ue.align||ue.align==="left");)this._placeToken(ue,n,ee,N,te,"left",G),ne-=ue.width,te+=ue.width,J++;for(;oe>=0&&(ue=q[oe],ue.align==="right");)this._placeToken(ue,n,ee,N,Q,"right",G),ne-=ue.width,Q-=ue.width,oe--;for(te+=(o-(te-M)-(V-Q)-ne)/2;J<=oe;)ue=q[J],this._placeToken(ue,n,ee,N,te+ue.width/2,"center",G),te+=ue.width,J++;N+=ee}},r.prototype._placeToken=function(n,i,a,o,s,l,u){var c=i.rich[n.styleName]||{};c.text=n.text;var d=n.verticalAlign,v=o+a/2;d==="top"?v=o+n.height/2:d==="bottom"&&(v=o+a-n.height/2);var I=!n.isLineHolder&&needDrawBackground(c);I&&this._renderBackground(c,i,l==="right"?s-n.width:l==="center"?s-n.width/2:s,v-n.height/2,n.width,n.height);var $=!!c.backgroundColor,O=n.textPadding;O&&(s=getTextXForPadding(s,l,O),v-=n.height/2-O[0]-n.innerHeight/2);var R=this._getOrCreateChild(TSpan$1),M=R.createStyle();R.useStyle(M);var N=this._defaultStyle,V=!1,G=0,Y=getFill("fill"in c?c.fill:"fill"in i?i.fill:(V=!0,N.fill)),X=getStroke("stroke"in c?c.stroke:"stroke"in i?i.stroke:!$&&!u&&(!N.autoStroke||V)?(G=DEFAULT_STROKE_LINE_WIDTH,N.stroke):null),q=c.textShadowBlur>0||i.textShadowBlur>0;M.text=n.text,M.x=s,M.y=v,q&&(M.shadowBlur=c.textShadowBlur||i.textShadowBlur||0,M.shadowColor=c.textShadowColor||i.textShadowColor||"transparent",M.shadowOffsetX=c.textShadowOffsetX||i.textShadowOffsetX||0,M.shadowOffsetY=c.textShadowOffsetY||i.textShadowOffsetY||0),M.textAlign=l,M.textBaseline="middle",M.font=n.font||DEFAULT_FONT,M.opacity=retrieve3(c.opacity,i.opacity,1),setSeparateFont(M,c),X&&(M.lineWidth=retrieve3(c.lineWidth,i.lineWidth,G),M.lineDash=retrieve2(c.lineDash,i.lineDash),M.lineDashOffset=i.lineDashOffset||0,M.stroke=X),Y&&(M.fill=Y);var Z=n.contentWidth,ee=n.contentHeight;R.setBoundingRect(new BoundingRect$1(adjustTextX(M.x,Z,M.textAlign),adjustTextY(M.y,ee,M.textBaseline),Z,ee))},r.prototype._renderBackground=function(n,i,a,o,s,l){var u=n.backgroundColor,c=n.borderWidth,d=n.borderColor,v=u&&u.image,I=u&&!v,$=n.borderRadius,O=this,R,M;if(I||n.lineHeight||c&&d){R=this._getOrCreateChild(Rect$1),R.useStyle(R.createStyle()),R.style.fill=null;var N=R.shape;N.x=a,N.y=o,N.width=s,N.height=l,N.r=$,R.dirtyShape()}if(I){var V=R.style;V.fill=u||null,V.fillOpacity=retrieve2(n.fillOpacity,1)}else if(v){M=this._getOrCreateChild(ZRImage$1),M.onload=function(){O.dirtyStyle()};var G=M.style;G.image=u.image,G.x=a,G.y=o,G.width=s,G.height=l}if(c&&d){var V=R.style;V.lineWidth=c,V.stroke=d,V.strokeOpacity=retrieve2(n.strokeOpacity,1),V.lineDash=n.borderDash,V.lineDashOffset=n.borderDashOffset||0,R.strokeContainThreshold=0,R.hasFill()&&R.hasStroke()&&(V.strokeFirst=!0,V.lineWidth*=2)}var Y=(R||M).style;Y.shadowBlur=n.shadowBlur||0,Y.shadowColor=n.shadowColor||"transparent",Y.shadowOffsetX=n.shadowOffsetX||0,Y.shadowOffsetY=n.shadowOffsetY||0,Y.opacity=retrieve3(n.opacity,i.opacity,1)},r.makeFont=function(n){var i="";return hasSeparateFont(n)&&(i=[n.fontStyle,n.fontWeight,parseFontSize(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),i&&trim(i)||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 i=FONT_PARTS[n],a=r[i];a!=null&&(t[i]=a)}}function hasSeparateFont(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function normalizeTextStyle(t){return normalizeStyle(t),each$4(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 i=t.padding;i&&(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,i){if(i){var a=getECData(i);a.dataIndex=n,a.dataType=r,a.seriesIndex=t,a.ssrType="chart",i.type==="group"&&i.traverse(function(o){var s=getECData(o);s.seriesIndex=t,s.dataIndex=n,s.dataType=r,s.ssrType="chart"})}},_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"}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(i){updateElementState(i,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,i){for(var a=t.style,o={},s=0;s<r.length;s++){var l=r[s],u=a[l];o[l]=u==null?i&&i[l]:u}for(var s=0;s<t.animators.length;s++){var c=t.animators[s];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName==="style"&&c.saveTo(o,r)}return o}function createEmphasisDefaultState(t,r,n,i){var a=n&&indexOf(n,"select")>=0,o=!1;if(t instanceof Path$1){var s=getSavedStates(t),l=a&&s.selectFill||s.normalFill,u=a&&s.selectStroke||s.normalStroke;if(hasFillOrStroke(l)||hasFillOrStroke(u)){i=i||{};var c=i.style||{};c.fill==="inherit"?(o=!0,i=extend({},i),c=extend({},c),c.fill=l):!hasFillOrStroke(c.fill)&&hasFillOrStroke(l)?(o=!0,i=extend({},i),c=extend({},c),c.fill=liftColor(l)):!hasFillOrStroke(c.stroke)&&hasFillOrStroke(u)&&(o||(i=extend({},i),c=extend({},c)),c.stroke=liftColor(u)),i.style=c}}if(i&&i.z2==null){o||(i=extend({},i));var d=t.z2EmphasisLift;i.z2=t.z2+(d!=null?d:Z2_EMPHASIS_LIFT)}return i}function createSelectDefaultState(t,r,n){if(n&&n.z2==null){n=extend({},n);var i=t.z2SelectLift;n.z2=t.z2+(i!=null?i:Z2_SELECT_LIFT)}return n}function createBlurDefaultState(t,r,n){var i=indexOf(t.currentStates,r)>=0,a=t.style.opacity,o=i?null:getFromStateStyle(t,["opacity"],r,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=extend({},n),s=extend({opacity:i?a:o.opacity*.1},s),n.style=s),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=[],i=[];r.eachComponent(function(a,o){var s=getComponentStates(o),l=a==="series",u=l?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!l&&i.push(u),s.isBlured&&(u.group.traverse(function(c){singleLeaveBlur(c)}),l&&n.push(o)),s.isBlured=!1}),each$4(i,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(n,!1,r)})}function blurSeries(t,r,n,i){var a=i.getModel();n=n||"coordinateSystem";function o(c,d){for(var v=0;v<d.length;v++){var I=c.getItemGraphicEl(d[v]);I&&leaveBlur(I)}}if(t!=null&&!(!r||r==="none")){var s=a.getSeriesByIndex(t),l=s.coordinateSystem;l&&l.master&&(l=l.master);var u=[];a.eachSeries(function(c){var d=s===c,v=c.coordinateSystem;v&&v.master&&(v=v.master);var I=v&&l?v===l:d;if(!(n==="series"&&!d||n==="coordinateSystem"&&!I||r==="series"&&d)){var $=i.getViewOfSeriesModel(c);if($.group.traverse(function(M){M.__highByOuter&&d&&r==="self"||singleEnterBlur(M)}),isArrayLike(r))o(c.getData(),r);else if(isObject$2(r))for(var O=keys(r),R=0;R<O.length;R++)o(c.getData(O[R]),r[O[R]]);u.push(c),getComponentStates(c).isBlured=!0}}),a.eachComponent(function(c,d){if(c!=="series"){var v=i.getViewOfComponentModel(d);v&&v.toggleBlurSeries&&v.toggleBlurSeries(u,!0,a)}})}}function blurComponent(t,r,n){if(!(t==null||r==null)){var i=n.getModel().getComponent(t,r);if(!!i){getComponentStates(i).isBlured=!0;var a=n.getViewOfComponentModel(i);!a||!a.focusBlurEnabled||a.group.traverse(function(o){singleEnterBlur(o)})}}}function blurSeriesFromHighlightPayload(t,r,n){var i=t.seriesIndex,a=t.getData(r.dataType);if(!!a){var o=queryDataIndex(a,r);o=(isArray(o)?o[0]:o)||0;var s=a.getItemGraphicEl(o);if(!s)for(var l=a.count(),u=0;!s&&u<l;)s=a.getItemGraphicEl(u++);if(s){var c=getECData(s);blurSeries(i,c.focus,c.blurScope,n)}else{var d=t.get(["emphasis","focus"]),v=t.get(["emphasis","blurScope"]);d!=null&&blurSeries(i,d,v,n)}}}function findComponentHighDownDispatchers(t,r,n,i){var a={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||r==null||n==null)return a;var o=i.getModel().getComponent(t,r);if(!o)return a;var s=i.getViewOfComponentModel(o);if(!s||!s.findHighDownDispatchers)return a;for(var l=s.findHighDownDispatchers(n),u,c=0;c<l.length;c++)if(getECData(l[c]).focus==="self"){u=!0;break}return{focusSelf:u,dispatchers:l}}function handleGlobalMouseOverForHighDown(t,r,n){var i=getECData(t),a=findComponentHighDownDispatchers(i.componentMainType,i.componentIndex,i.componentHighDownName,n),o=a.dispatchers,s=a.focusSelf;o?(s&&blurComponent(i.componentMainType,i.componentIndex,n),each$4(o,function(l){return enterEmphasisWhenMouseOver(l,r)})):(blurSeries(i.seriesIndex,i.focus,i.blurScope,n),i.focus==="self"&&blurComponent(i.componentMainType,i.componentIndex,n),enterEmphasisWhenMouseOver(t,r))}function handleGlobalMouseOutForHighDown(t,r,n){allLeaveBlur(n);var i=getECData(t),a=findComponentHighDownDispatchers(i.componentMainType,i.componentIndex,i.componentHighDownName,n).dispatchers;a?each$4(a,function(o){return leaveEmphasisWhenMouseOut(o,r)}):leaveEmphasisWhenMouseOut(t,r)}function toggleSelectionFromPayload(t,r,n){if(!!isSelectChangePayload(r)){var i=r.dataType,a=t.getData(i),o=queryDataIndex(a,r);isArray(o)||(o=[o]),t[r.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":r.type===SELECT_ACTION_TYPE?"select":"unselect"](o,i)}}function updateSeriesElementSelection(t){var r=t.getAllData();each$4(r,function(n){var i=n.data,a=n.type;i.eachItemGraphicEl(function(o,s){t.isSelected(s,a)?enterSelect(o):leaveSelect(o)})})}function getAllSelectedIndices(t){var r=[];return t.eachSeries(function(n){var i=n.getAllData();each$4(i,function(a){a.data;var o=a.type,s=n.getSelectedDataIndices();if(s.length>0){var l={dataIndex:s,seriesIndex:n.seriesIndex};o!=null&&(l.dataType=o),r.push(l)}})}),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,i){i?disableHoverEmphasis(t):enableHoverEmphasis(t,r,n)}function enableHoverFocus(t,r,n){var i=getECData(t);r!=null?(i.focus=r,i.blurScope=n):i.focus&&(i.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(t,r,n,i){n=n||"itemStyle";for(var a=0;a<OTHER_STATES.length;a++){var o=OTHER_STATES[a],s=r.getModel([o,n]),l=t.ensureState(o);l.style=i?i(s):s[defaultStyleGetterMap[n]]()}}function setAsHighDownDispatcher(t,r){var n=r===!1,i=t;t.highDownSilentOnTouch&&(i.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||i.__highDownDispatcher)&&(i.__highByOuter=i.__highByOuter||0,i.__highDownDispatcher=!n)}function isHighDownDispatcher(t){return!!(t&&t.__highDownDispatcher)}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=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath(t,r){if(!!r){var n=t.data,i=t.len(),a,o,s,l,u,c,d=CMD.M,v=CMD.C,I=CMD.L,$=CMD.R,O=CMD.A,R=CMD.Q;for(s=0,l=0;s<i;){switch(a=n[s++],l=s,o=0,a){case d:o=1;break;case I:o=1;break;case v:o=3;break;case R:o=2;break;case O:var M=r[4],N=r[5],V=mathSqrt$2(r[0]*r[0]+r[1]*r[1]),G=mathSqrt$2(r[2]*r[2]+r[3]*r[3]),Y=mathAtan2(-r[1]/G,r[0]/V);n[s]*=V,n[s++]+=M,n[s]*=G,n[s++]+=N,n[s++]*=V,n[s++]*=G,n[s++]+=Y,n[s++]+=Y,s+=2,l=s;break;case $:c[0]=n[s++],c[1]=n[s++],applyTransform$1(c,c,r),n[l++]=c[0],n[l++]=c[1],c[0]+=n[s++],c[1]+=n[s++],applyTransform$1(c,c,r),n[l++]=c[0],n[l++]=c[1]}for(u=0;u<o;u++){var X=points[u];X[0]=n[s++],X[1]=n[s++],applyTransform$1(X,X,r),n[l++]=X[0],n[l++]=X[1]}}t.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=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,i,a,o,s,l,u,c,d){var v=u*(PI$3/180),I=mathCos$1(v)*(t-n)/2+mathSin$1(v)*(r-i)/2,$=-1*mathSin$1(v)*(t-n)/2+mathCos$1(v)*(r-i)/2,O=I*I/(s*s)+$*$/(l*l);O>1&&(s*=mathSqrt$1(O),l*=mathSqrt$1(O));var R=(a===o?-1:1)*mathSqrt$1((s*s*(l*l)-s*s*($*$)-l*l*(I*I))/(s*s*($*$)+l*l*(I*I)))||0,M=R*s*$/l,N=R*-l*I/s,V=(t+n)/2+mathCos$1(v)*M-mathSin$1(v)*N,G=(r+i)/2+mathSin$1(v)*M+mathCos$1(v)*N,Y=vAngle([1,0],[(I-M)/s,($-N)/l]),X=[(I-M)/s,($-N)/l],q=[(-1*I-M)/s,(-1*$-N)/l],Z=vAngle(X,q);if(vRatio(X,q)<=-1&&(Z=PI$3),vRatio(X,q)>=1&&(Z=0),Z<0){var ee=Math.round(Z/PI$3*1e6)/1e6;Z=PI$3*2+ee%2*PI$3}d.addData(c,V,G,s,l,Y,Z,v,o)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(t){var r=new PathProxy$1;if(!t)return r;var n=0,i=0,a=n,o=i,s,l=PathProxy$1.CMD,u=t.match(commandReg);if(!u)return r;for(var c=0;c<u.length;c++){for(var d=u[c],v=d.charAt(0),I=void 0,$=d.match(numberReg)||[],O=$.length,R=0;R<O;R++)$[R]=parseFloat($[R]);for(var M=0;M<O;){var N=void 0,V=void 0,G=void 0,Y=void 0,X=void 0,q=void 0,Z=void 0,ee=n,ne=i,J=void 0,te=void 0;switch(v){case"l":n+=$[M++],i+=$[M++],I=l.L,r.addData(I,n,i);break;case"L":n=$[M++],i=$[M++],I=l.L,r.addData(I,n,i);break;case"m":n+=$[M++],i+=$[M++],I=l.M,r.addData(I,n,i),a=n,o=i,v="l";break;case"M":n=$[M++],i=$[M++],I=l.M,r.addData(I,n,i),a=n,o=i,v="L";break;case"h":n+=$[M++],I=l.L,r.addData(I,n,i);break;case"H":n=$[M++],I=l.L,r.addData(I,n,i);break;case"v":i+=$[M++],I=l.L,r.addData(I,n,i);break;case"V":i=$[M++],I=l.L,r.addData(I,n,i);break;case"C":I=l.C,r.addData(I,$[M++],$[M++],$[M++],$[M++],$[M++],$[M++]),n=$[M-2],i=$[M-1];break;case"c":I=l.C,r.addData(I,$[M++]+n,$[M++]+i,$[M++]+n,$[M++]+i,$[M++]+n,$[M++]+i),n+=$[M-2],i+=$[M-1];break;case"S":N=n,V=i,J=r.len(),te=r.data,s===l.C&&(N+=n-te[J-4],V+=i-te[J-3]),I=l.C,ee=$[M++],ne=$[M++],n=$[M++],i=$[M++],r.addData(I,N,V,ee,ne,n,i);break;case"s":N=n,V=i,J=r.len(),te=r.data,s===l.C&&(N+=n-te[J-4],V+=i-te[J-3]),I=l.C,ee=n+$[M++],ne=i+$[M++],n+=$[M++],i+=$[M++],r.addData(I,N,V,ee,ne,n,i);break;case"Q":ee=$[M++],ne=$[M++],n=$[M++],i=$[M++],I=l.Q,r.addData(I,ee,ne,n,i);break;case"q":ee=$[M++]+n,ne=$[M++]+i,n+=$[M++],i+=$[M++],I=l.Q,r.addData(I,ee,ne,n,i);break;case"T":N=n,V=i,J=r.len(),te=r.data,s===l.Q&&(N+=n-te[J-4],V+=i-te[J-3]),n=$[M++],i=$[M++],I=l.Q,r.addData(I,N,V,n,i);break;case"t":N=n,V=i,J=r.len(),te=r.data,s===l.Q&&(N+=n-te[J-4],V+=i-te[J-3]),n+=$[M++],i+=$[M++],I=l.Q,r.addData(I,N,V,n,i);break;case"A":G=$[M++],Y=$[M++],X=$[M++],q=$[M++],Z=$[M++],ee=n,ne=i,n=$[M++],i=$[M++],I=l.A,processArc(ee,ne,n,i,q,Z,G,Y,X,I,r);break;case"a":G=$[M++],Y=$[M++],X=$[M++],q=$[M++],Z=$[M++],ee=n,ne=i,n+=$[M++],i+=$[M++],I=l.A,processArc(ee,ne,n,i,q,Z,G,Y,X,I,r);break}}(v==="z"||v==="Z")&&(I=l.Z,r.addData(I),n=a,i=o),s=I}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),i=extend({},r);return i.buildPath=function(a){if(isPathProxy(a)){a.setData(n.data);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=a;n.rebuildPath(o,1)}},i.applyTransform=function(a){transformPath(n,a),this.dirtyShape()},i}function createFromString(t,r){return new SVGPath(createPathOptions(t,r))}function extendFromString(t,r){var n=createPathOptions(t,r),i=function(a){__extends(o,a);function o(s){var l=a.call(this,s)||this;return l.applyTransform=n.applyTransform,l.buildPath=n.buildPath,l}return o}(SVGPath);return i}function mergePath$1(t,r){for(var n=[],i=t.length,a=0;a<i;a++){var o=t[a];n.push(o.getUpdatedPathProxy(!0))}var s=new Path$1(r);return s.createPathProxy(),s.buildPath=function(l){if(isPathProxy(l)){l.appendPath(n);var u=l.getContext();u&&l.rebuildPath(u,1)}},s}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,i){n.moveTo(i.cx+i.r,i.cy),n.arc(i.cx,i.cy,i.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,i){var a=.5522848,o=i.cx,s=i.cy,l=i.rx,u=i.ry,c=l*a,d=u*a;n.moveTo(o-l,s),n.bezierCurveTo(o-l,s-d,o-c,s-u,o,s-u),n.bezierCurveTo(o+c,s-u,o+l,s-d,o+l,s),n.bezierCurveTo(o+l,s+d,o+c,s+u,o,s+u),n.bezierCurveTo(o-c,s+u,o-l,s+d,o-l,s),n.closePath()},r}(Path$1);Ellipse.prototype.type="ellipse";var Ellipse$1=Ellipse,PI$2=Math.PI,PI2=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$2=Math.max,mathMin$2=Math.min,e=1e-4;function intersect(t,r,n,i,a,o,s,l){var u=n-t,c=i-r,d=s-a,v=l-o,I=v*u-d*c;if(!(I*I<e))return I=(d*(r-o)-v*(t-a))/I,[t+I*u,r+I*c]}function computeCornerTangents(t,r,n,i,a,o,s){var l=t-n,u=r-i,c=(s?o:-o)/mathSqrt(l*l+u*u),d=c*u,v=-c*l,I=t+d,$=r+v,O=n+d,R=i+v,M=(I+O)/2,N=($+R)/2,V=O-I,G=R-$,Y=V*V+G*G,X=a-o,q=I*R-O*$,Z=(G<0?-1:1)*mathSqrt(mathMax$2(0,X*X*Y-q*q)),ee=(q*G-V*Z)/Y,ne=(-q*V-G*Z)/Y,J=(q*G+V*Z)/Y,te=(-q*V+G*Z)/Y,Q=ee-M,oe=ne-N,ue=J-M,fe=te-N;return Q*Q+oe*oe>ue*ue+fe*fe&&(ee=J,ne=te),{cx:ee,cy:ne,x0:-d,y0:-v,x1:ee*(a/X-1),y1:ne*(a/X-1)}}function normalizeCornerRadius(t){var r;if(isArray(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,i=mathMax$2(r.r,0),a=mathMax$2(r.r0||0,0),o=i>0,s=a>0;if(!(!o&&!s)){if(o||(i=a,a=0),a>i){var l=i;i=a,a=l}var u=r.startAngle,c=r.endAngle;if(!(isNaN(u)||isNaN(c))){var d=r.cx,v=r.cy,I=!!r.clockwise,$=mathAbs(c-u),O=$>PI2&&$%PI2;if(O>e&&($=O),!(i>e))t.moveTo(d,v);else if($>PI2-e)t.moveTo(d+i*mathCos(u),v+i*mathSin(u)),t.arc(d,v,i,u,c,!I),a>e&&(t.moveTo(d+a*mathCos(c),v+a*mathSin(c)),t.arc(d,v,a,c,u,I));else{var R=void 0,M=void 0,N=void 0,V=void 0,G=void 0,Y=void 0,X=void 0,q=void 0,Z=void 0,ee=void 0,ne=void 0,J=void 0,te=void 0,Q=void 0,oe=void 0,ue=void 0,fe=i*mathCos(u),de=i*mathSin(u),ye=a*mathCos(c),ge=a*mathSin(c),Te=$>e;if(Te){var Be=r.cornerRadius;Be&&(n=normalizeCornerRadius(Be),R=n[0],M=n[1],N=n[2],V=n[3]);var Ie=mathAbs(i-a)/2;if(G=mathMin$2(Ie,N),Y=mathMin$2(Ie,V),X=mathMin$2(Ie,R),q=mathMin$2(Ie,M),ne=Z=mathMax$2(G,Y),J=ee=mathMax$2(X,q),(Z>e||ee>e)&&(te=i*mathCos(c),Q=i*mathSin(c),oe=a*mathCos(u),ue=a*mathSin(u),$<PI$2)){var me=intersect(fe,de,oe,ue,te,Q,ye,ge);if(me){var De=fe-me[0],Ve=de-me[1],Ue=te-me[0],Ze=Q-me[1],ft=1/mathSin(mathACos((De*Ue+Ve*Ze)/(mathSqrt(De*De+Ve*Ve)*mathSqrt(Ue*Ue+Ze*Ze)))/2),at=mathSqrt(me[0]*me[0]+me[1]*me[1]);ne=mathMin$2(Z,(i-at)/(ft+1)),J=mathMin$2(ee,(a-at)/(ft-1))}}}if(!Te)t.moveTo(d+fe,v+de);else if(ne>e){var dt=mathMin$2(N,ne),Le=mathMin$2(V,ne),Me=computeCornerTangents(oe,ue,fe,de,i,dt,I),ke=computeCornerTangents(te,Q,ye,ge,i,Le,I);t.moveTo(d+Me.cx+Me.x0,v+Me.cy+Me.y0),ne<Z&&dt===Le?t.arc(d+Me.cx,v+Me.cy,ne,mathATan2(Me.y0,Me.x0),mathATan2(ke.y0,ke.x0),!I):(dt>0&&t.arc(d+Me.cx,v+Me.cy,dt,mathATan2(Me.y0,Me.x0),mathATan2(Me.y1,Me.x1),!I),t.arc(d,v,i,mathATan2(Me.cy+Me.y1,Me.cx+Me.x1),mathATan2(ke.cy+ke.y1,ke.cx+ke.x1),!I),Le>0&&t.arc(d+ke.cx,v+ke.cy,Le,mathATan2(ke.y1,ke.x1),mathATan2(ke.y0,ke.x0),!I))}else t.moveTo(d+fe,v+de),t.arc(d,v,i,u,c,!I);if(!(a>e)||!Te)t.lineTo(d+ye,v+ge);else if(J>e){var dt=mathMin$2(R,J),Le=mathMin$2(M,J),Me=computeCornerTangents(ye,ge,te,Q,a,-Le,I),ke=computeCornerTangents(fe,de,oe,ue,a,-dt,I);t.lineTo(d+Me.cx+Me.x0,v+Me.cy+Me.y0),J<ee&&dt===Le?t.arc(d+Me.cx,v+Me.cy,J,mathATan2(Me.y0,Me.x0),mathATan2(ke.y0,ke.x0),!I):(Le>0&&t.arc(d+Me.cx,v+Me.cy,Le,mathATan2(Me.y0,Me.x0),mathATan2(Me.y1,Me.x1),!I),t.arc(d,v,a,mathATan2(Me.cy+Me.y1,Me.cx+Me.x1),mathATan2(ke.cy+ke.y1,ke.cx+ke.x1),I),dt>0&&t.arc(d+ke.cx,v+ke.cy,dt,mathATan2(ke.y1,ke.x1),mathATan2(ke.y0,ke.x0),!I))}else t.lineTo(d+ye,v+ge),t.arc(d,v,a,c,u,I)}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,i){buildPath$1(n,i)},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,i){var a=i.cx,o=i.cy,s=Math.PI*2;n.moveTo(a+i.r,o),n.arc(a,o,i.r,0,s,!1),n.moveTo(a+i.r0,o),n.arc(a,o,i.r0,0,s,!0)},r}(Path$1);Ring.prototype.type="ring";var Ring$1=Ring;function smoothBezier(t,r,n,i){var a=[],o=[],s=[],l=[],u,c,d,v;if(i){d=[1/0,1/0],v=[-1/0,-1/0];for(var I=0,$=t.length;I<$;I++)min$1(d,d,t[I]),max$1(v,v,t[I]);min$1(d,d,i[0]),max$1(v,v,i[1])}for(var I=0,$=t.length;I<$;I++){var O=t[I];if(n)u=t[I?I-1:$-1],c=t[(I+1)%$];else if(I===0||I===$-1){a.push(clone$1(t[I]));continue}else u=t[I-1],c=t[I+1];sub(o,c,u),scale$2(o,o,r);var R=distance(O,u),M=distance(O,c),N=R+M;N!==0&&(R/=N,M/=N),scale$2(s,o,-R),scale$2(l,o,M);var V=add([],O,s),G=add([],O,l);i&&(max$1(V,V,d),min$1(V,V,v),max$1(G,G,d),min$1(G,G,v)),a.push(V),a.push(G)}return n&&a.push(a.shift()),a}function buildPath(t,r,n){var i=r.smooth,a=r.points;if(a&&a.length>=2){if(i){var o=smoothBezier(a,i,n,r.smoothConstraint);t.moveTo(a[0][0],a[0][1]);for(var s=a.length,l=0;l<(n?s:s-1);l++){var u=o[l*2],c=o[l*2+1],d=a[(l+1)%s];t.bezierCurveTo(u[0],u[1],c[0],c[1],d[0],d[1])}}else{t.moveTo(a[0][0],a[0][1]);for(var l=1,v=a.length;l<v;l++)t.lineTo(a[l][0],a[l][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,i){buildPath(n,i,!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=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,i){buildPath(n,i,!1)},r}(Path$1);Polyline.prototype.type="polyline";var Polyline$1=Polyline,subPixelOptimizeOutputShape={},LineShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Line=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,i){var a,o,s,l;if(this.subPixelOptimize){var u=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,i,this.style);a=u.x1,o=u.y1,s=u.x2,l=u.y2}else a=i.x1,o=i.y1,s=i.x2,l=i.y2;var c=i.percent;c!==0&&(n.moveTo(a,o),c<1&&(s=a*(1-c)+s*c,l=o*(1-c)+l*c),n.lineTo(s,l))},r.prototype.pointAt=function(n){var i=this.shape;return[i.x1*(1-n)+i.x2*n,i.y1*(1-n)+i.y2*n]},r}(Path$1);Line.prototype.type="line";var Line$1=Line,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 i=t.cpx2,a=t.cpy2;return i!=null||a!=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)(t.x1,t.cpx1,t.x2,r),(n?quadraticDerivativeAt:quadraticAt)(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,i){var a=i.x1,o=i.y1,s=i.x2,l=i.y2,u=i.cpx1,c=i.cpy1,d=i.cpx2,v=i.cpy2,I=i.percent;I!==0&&(n.moveTo(a,o),d==null||v==null?(I<1&&(quadraticSubdivide(a,u,s,I,out),u=out[1],s=out[2],quadraticSubdivide(o,c,l,I,out),c=out[1],l=out[2]),n.quadraticCurveTo(u,c,s,l)):(I<1&&(cubicSubdivide(a,u,d,s,I,out),u=out[1],d=out[2],s=out[3],cubicSubdivide(o,c,v,l,I,out),c=out[1],v=out[2],l=out[3]),n.bezierCurveTo(u,c,d,v,s,l)))},r.prototype.pointAt=function(n){return someVectorAt(this.shape,n,!1)},r.prototype.tangentAt=function(n){var i=someVectorAt(this.shape,n,!0);return normalize$1(i,i)},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,i){var a=i.cx,o=i.cy,s=Math.max(i.r,0),l=i.startAngle,u=i.endAngle,c=i.clockwise,d=Math.cos(l),v=Math.sin(l);n.moveTo(d*s+a,v*s+o),n.arc(a,o,s,l,u,!c)},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,i=this.shapeChanged(),a=0;a<n.length;a++)i=i||n[a].shapeChanged();i&&this.dirtyShape()},r.prototype.beforeBrush=function(){this._updatePathDirty();for(var n=this.shape.paths||[],i=this.getGlobalScale(),a=0;a<n.length;a++)n[a].path||n[a].createPathProxy(),n[a].path.setScale(i[0],i[1],n[a].segmentIgnoreThreshold)},r.prototype.buildPath=function(n,i){for(var a=i.paths||[],o=0;o<a.length;o++)a[o].buildPath(n,a[o].shape,!0)},r.prototype.afterBrush=function(){for(var n=this.shape.paths||[],i=0;i<n.length;i++)n[i].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,i,a,o,s,l){var u=t.call(this,s)||this;return u.x=n==null?0:n,u.y=i==null?0:i,u.x2=a==null?1:a,u.y2=o==null?0:o,u.type="linear",u.global=l||!1,u}return r}(Gradient$1),LinearGradient$1=LinearGradient,RadialGradient=function(t){__extends(r,t);function r(n,i,a,o,s){var l=t.call(this,o)||this;return l.x=n==null?.5:n,l.y=i==null?.5:i,l.r=a==null?.5:a,l.type="radial",l.global=s||!1,l}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 i=0;i<4;i++)this._corners[i]=new Point$1;for(var i=0;i<2;i++)this._axes[i]=new Point$1;r&&this.fromBoundingRect(r,n)}return t.prototype.fromBoundingRect=function(r,n){var i=this._corners,a=this._axes,o=r.x,s=r.y,l=o+r.width,u=s+r.height;if(i[0].set(o,s),i[1].set(l,s),i[2].set(l,u),i[3].set(o,u),n)for(var c=0;c<4;c++)i[c].transform(n);Point$1.sub(a[0],i[1],i[0]),Point$1.sub(a[1],i[3],i[0]),a[0].normalize(),a[1].normalize();for(var c=0;c<2;c++)this._origin[c]=a[c].dot(i[0])},t.prototype.intersect=function(r,n){var i=!0,a=!n;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,r,minTv,maxTv,a,1)&&(i=!1,a)||!this._intersectCheckOneSide(r,this,minTv,maxTv,a,-1)&&(i=!1,a)||a||Point$1.copy(n,i?minTv:maxTv),i},t.prototype._intersectCheckOneSide=function(r,n,i,a,o,s){for(var l=!0,u=0;u<2;u++){var c=this._axes[u];if(this._getProjMinMaxOnAxis(u,r._corners,extent),this._getProjMinMaxOnAxis(u,n._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(l=!1,o)return l;var d=Math.abs(extent2[0]-extent[1]),v=Math.abs(extent[0]-extent2[1]);Math.min(d,v)>a.len()&&(d<v?Point$1.scale(a,c,-d*s):Point$1.scale(a,c,v*s))}else if(i){var d=Math.abs(extent2[0]-extent[1]),v=Math.abs(extent[0]-extent2[1]);Math.min(d,v)<i.len()&&(d<v?Point$1.scale(i,c,d*s):Point$1.scale(i,c,-v*s))}}return l},t.prototype._getProjMinMaxOnAxis=function(r,n,i){for(var a=this._axes[r],o=this._origin,s=n[0].dot(a)+o[r],l=s,u=s,c=1;c<n.length;c++){var d=n[c].dot(a)+o[r];l=Math.min(d,l),u=Math.max(d,u)}i[0]=l,i[1]=u},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,i){n.call(i,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,i){i?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},r.prototype.addDisplayables=function(n,i){i=i||!1;for(var a=0;a<n.length;a++)this.addDisplayable(n[a],i)},r.prototype.getDisplayables=function(){return this._displayables},r.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},r.prototype.eachPendingDisplayable=function(n){for(var i=this._cursor;i<this._displayables.length;i++)n&&n(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)n&&n(this._temporaryDisplayables[i])},r.prototype.update=function(){this.updateTransform();for(var n=this._cursor;n<this._displayables.length;n++){var i=this._displayables[n];i.parent=this,i.update(),i.parent=null}for(var n=0;n<this._temporaryDisplayables.length;n++){var i=this._temporaryDisplayables[n];i.parent=this,i.update(),i.parent=null}},r.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new BoundingRect$1(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var a=this._displayables[i],o=a.getBoundingRect().clone();a.needLocalTransform()&&o.applyTransform(a.getLocalTransform(m)),n.union(o)}this._rect=n}return this._rect},r.prototype.contain=function(n,i){var a=this.transformCoordToLocal(n,i),o=this.getBoundingRect();if(o.contain(a[0],a[1]))for(var s=0;s<this._displayables.length;s++){var l=this._displayables[s];if(l.contain(n,i))return!0}return!1},r}(Displayable$1),IncrementalDisplayable$1=IncrementalDisplayable,transitionStore=makeInner();function getAnimationConfig(t,r,n,i,a){var o;if(r&&r.ecModel){var s=r.ecModel.getUpdatePayload();o=s&&s.animation}var l=r&&r.isAnimationEnabled(),u=t==="update";if(l){var c=void 0,d=void 0,v=void 0;i?(c=retrieve2(i.duration,200),d=retrieve2(i.easing,"cubicOut"),v=0):(c=r.getShallow(u?"animationDurationUpdate":"animationDuration"),d=r.getShallow(u?"animationEasingUpdate":"animationEasing"),v=r.getShallow(u?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(d=o.easing),o.delay!=null&&(v=o.delay)),isFunction(v)&&(v=v(n,a)),isFunction(c)&&(c=c(n));var I={duration:c||0,delay:v,easing:d};return I}else return null}function animateOrSetProps(t,r,n,i,a,o,s){var l=!1,u;isFunction(a)?(s=o,o=a,a=null):isObject$2(a)&&(o=a.cb,s=a.during,l=a.isFrom,u=a.removeOpt,a=a.dataIndex);var c=t==="leave";c||r.stopAnimation("leave");var d=getAnimationConfig(t,i,a,c?u||{}:null,i&&i.getAnimationDelayParams?i.getAnimationDelayParams(r,a):null);if(d&&d.duration>0){var v=d.duration,I=d.delay,$=d.easing,O={duration:v,delay:I||0,easing:$,done:o,force:!!o||!!s,setToFinal:!c,scope:t,during:s};l?r.animateFrom(n,O):r.animateTo(n,O)}else r.stopAnimation(),!l&&r.attr(n),s&&s(1),o&&o()}function updateProps$1(t,r,n,i,a,o){animateOrSetProps("update",t,r,n,i,a,o)}function initProps(t,r,n,i,a,o){animateOrSetProps("enter",t,r,n,i,a,o)}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,i,a,o){isElementRemoved(t)||animateOrSetProps("leave",t,r,n,i,a,o)}function fadeOutDisplayable(t,r,n,i){t.removeTextContent(),t.removeTextGuideLine(),removeElement(t,{style:{opacity:0}},r,n,i)}function removeElementWithFadeOut(t,r,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(a){a.isGroup||fadeOutDisplayable(a,r,n,i)}):fadeOutDisplayable(t,r,n,i)}function saveOldStyle(t){transitionStore(t).oldStyle=t.style}var mathMax$1=Math.max,mathMin$1=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,i){var a=createFromString(t,r);return n&&(i==="center"&&(n=centerGraphic(n,a.getBoundingRect())),resizePath(a,n)),a}function makeImage(t,r,n){var i=new ZRImage$1({style:{image:t,x:r.x,y:r.y,width:r.width,height:r.height},onload:function(a){if(n==="center"){var o={width:a.width,height:a.height};i.setStyle(centerGraphic(r,o))}}});return i}function centerGraphic(t,r){var n=r.width/r.height,i=t.height*n,a;i<=t.width?a=t.height:(i=t.width,a=i/n);var o=t.x+t.width/2,s=t.y+t.height/2;return{x:o-i/2,y:s-a/2,width:i,height:a}}var mergePath=mergePath$1;function resizePath(t,r){if(!!t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(r);t.applyTransform(i)}}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(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.getLocalTransform(r)),n&&(r=invert([],r)),applyTransform$1([],t,r)}function transformDirection(t,r,n){var i=r[4]===0||r[5]===0||r[0]===0?1:Math.abs(2*r[4]/r[0]),a=r[4]===0||r[5]===0||r[2]===0?1:Math.abs(2*r[4]/r[2]),o=[t==="left"?-i:t==="right"?i:0,t==="top"?-a:t==="bottom"?a:0];return o=applyTransform(o,r,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function isNotGroup(t){return!t.isGroup}function isPath(t){return t.shape!=null}function groupTransition(t,r,n){if(!t||!r)return;function i(s){var l={};return s.traverse(function(u){isNotGroup(u)&&u.anid&&(l[u.anid]=u)}),l}function a(s){var l={x:s.x,y:s.y,rotation:s.rotation};return isPath(s)&&(l.shape=extend({},s.shape)),l}var o=i(t);r.traverse(function(s){if(isNotGroup(s)&&s.anid){var l=o[s.anid];if(l){var u=a(s);s.attr(a(l)),updateProps$1(s,u,n,getECData(s).dataIndex)}}})}function clipPointsByRect(t,r){return map$1(t,function(n){var i=n[0];i=mathMax$1(i,r.x),i=mathMin$1(i,r.x+r.width);var a=n[1];return a=mathMax$1(a,r.y),a=mathMin$1(a,r.y+r.height),[i,a]})}function clipRectByRect(t,r){var n=mathMax$1(t.x,r.x),i=mathMin$1(t.x+t.width,r.x+r.width),a=mathMax$1(t.y,r.y),o=mathMin$1(t.y+t.height,r.y+r.height);if(i>=n&&o>=a)return{x:n,y:a,width:i-n,height:o-a}}function createIcon(t,r,n){var i=extend({rectHover:!0},r),a=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(a.image=t.slice(8),defaults(a,n),new ZRImage$1(i)):makePath(t.replace("path://",""),i,n,"center")}function linePolygonIntersect(t,r,n,i,a){for(var o=0,s=a[a.length-1];o<a.length;o++){var l=a[o];if(lineLineIntersect(t,r,n,i,l[0],l[1],s[0],s[1]))return!0;s=l}}function lineLineIntersect(t,r,n,i,a,o,s,l){var u=n-t,c=i-r,d=s-a,v=l-o,I=crossProduct2d(d,v,u,c);if(nearZero(I))return!1;var $=t-a,O=r-o,R=crossProduct2d($,O,u,c)/I;if(R<0||R>1)return!1;var M=crossProduct2d($,O,d,v)/I;return!(M<0||M>1)}function crossProduct2d(t,r,n,i){return t*i-n*r}function nearZero(t){return t<=1e-6&&t>=-1e-6}function setTooltipConfig(t){var r=t.itemTooltipOption,n=t.componentModel,i=t.itemName,a=isString(r)?{formatter:r}:r,o=n.mainType,s=n.componentIndex,l={componentType:o,name:i,$vars:["name"]};l[o+"Index"]=s;var u=t.formatterParamsExtra;u&&each$4(keys(u),function(d){hasOwn(l,d)||(l[d]=u[d],l.$vars.push(d))});var c=getECData(t.el);c.componentMainType=o,c.componentIndex=s,c.tooltipConfig={name:i,option:defaults({content:i,encodeHTMLContent:!0,formatterParams:l},a)}}function traverseElement(t,r){var n;t.isGroup&&(n=r(t)),n||t.traverse(r)}function traverseElements(t,r){if(t)if(isArray(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$1);registerShape("rect",Rect$1);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);var graphic=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,applyTransform,transformDirection,groupTransition,clipPointsByRect,clipRectByRect,createIcon,linePolygonIntersect,lineLineIntersect,setTooltipConfig,traverseElements,Group:Group$3,Image:ZRImage$1,Text:ZRText$1,Circle:Circle$1,Ellipse:Ellipse$1,Sector:Sector$1,Ring:Ring$1,Polygon:Polygon$1,Polyline:Polyline$1,Rect:Rect$1,Line:Line$1,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 i=SPECIAL_STATES[n],a=r[i],o=t.ensureState(i);o.style=o.style||{},o.style.text=a}var s=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:r.normal}),t.useStates(s,!0)}function getLabelText(t,r,n){var i=t.labelFetcher,a=t.labelDataIndex,o=t.labelDimIndex,s=r.normal,l;i&&(l=i.getFormattedLabel(a,"normal",null,o,s&&s.get("formatter"),n!=null?{interpolatedValue:n}:null)),l==null&&(l=isFunction(t.defaultText)?t.defaultText(a,t,n):t.defaultText);for(var u={normal:l},c=0;c<SPECIAL_STATES.length;c++){var d=SPECIAL_STATES[c],v=r[d];u[d]=retrieve2(i?i.getFormattedLabel(a,d,null,o,v&&v.get("formatter")):null,l)}return u}function setLabelStyle(t,r,n,i){n=n||EMPTY_OBJ;for(var a=t instanceof ZRText$1,o=!1,s=0;s<DISPLAY_STATES.length;s++){var l=r[DISPLAY_STATES[s]];if(l&&l.getShallow("show")){o=!0;break}}var u=a?t:t.getTextContent();if(o){a||(u||(u=new ZRText$1,t.setTextContent(u)),t.stateProxy&&(u.stateProxy=t.stateProxy));var c=getLabelText(n,r),d=r.normal,v=!!d.getShallow("show"),I=createTextStyle(d,i&&i.normal,n,!1,!a);I.text=c.normal,a||t.setTextConfig(createTextConfig(d,n,!1));for(var s=0;s<SPECIAL_STATES.length;s++){var $=SPECIAL_STATES[s],l=r[$];if(l){var O=u.ensureState($),R=!!retrieve2(l.getShallow("show"),v);if(R!==v&&(O.ignore=!R),O.style=createTextStyle(l,i&&i[$],n,!0,!a),O.style.text=c[$],!a){var M=t.ensureState($);M.textConfig=createTextConfig(l,n,!0)}}}u.silent=!!d.getShallow("silent"),u.style.x!=null&&(I.x=u.style.x),u.style.y!=null&&(I.y=u.style.y),u.ignore=!v,u.useStyle(I),u.dirty(),n.enableTextSetter&&(labelInner(u).setLabelText=function(N){var V=getLabelText(n,r,N);setLabelText(u,V)})}else u&&(u.ignore=!0);t.dirty()}function getLabelStatesModels(t,r){r=r||"label";for(var n={normal:t.getModel(r)},i=0;i<SPECIAL_STATES.length;i++){var a=SPECIAL_STATES[i];n[a]=t.getModel([a,r])}return n}function createTextStyle(t,r,n,i,a){var o={};return setTextStyleCommon(o,t,n,i,a),r&&extend(o,r),o}function createTextConfig(t,r,n){r=r||{};var i={},a,o=t.getShallow("rotate"),s=retrieve2(t.getShallow("distance"),n?null:5),l=t.getShallow("offset");return a=t.getShallow("position")||(n?null:"inside"),a==="outside"&&(a=r.defaultOutsidePosition||"top"),a!=null&&(i.position=a),l!=null&&(i.offset=l),o!=null&&(o*=Math.PI/180,i.rotation=o),s!=null&&(i.distance=s),i.outsideFill=t.get("color")==="inherit"?r.inheritColor||null:"auto",i}function setTextStyleCommon(t,r,n,i,a){n=n||EMPTY_OBJ;var o=r.ecModel,s=o&&o.option.textStyle,l=getRichItemNames(r),u;if(l){u={};for(var c in l)if(l.hasOwnProperty(c)){var d=r.getModel(["rich",c]);setTokenTextStyle(u[c]={},d,s,n,i,a,!1,!0)}}u&&(t.rich=u);var v=r.get("overflow");v&&(t.overflow=v);var I=r.get("minMargin");I!=null&&(t.margin=I),setTokenTextStyle(t,r,s,n,i,a,!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 i=keys(n),a=0;a<i.length;a++){var o=i[a];r[o]=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","ellipsis"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle(t,r,n,i,a,o,s,l){n=!a&&n||EMPTY_OBJ;var u=i&&i.inheritColor,c=r.getShallow("color"),d=r.getShallow("textBorderColor"),v=retrieve2(r.getShallow("opacity"),n.opacity);(c==="inherit"||c==="auto")&&(u?c=u:c=null),(d==="inherit"||d==="auto")&&(u?d=u:d=null),o||(c=c||n.color,d=d||n.textBorderColor),c!=null&&(t.fill=c),d!=null&&(t.stroke=d);var I=retrieve2(r.getShallow("textBorderWidth"),n.textBorderWidth);I!=null&&(t.lineWidth=I);var $=retrieve2(r.getShallow("textBorderType"),n.textBorderType);$!=null&&(t.lineDash=$);var O=retrieve2(r.getShallow("textBorderDashOffset"),n.textBorderDashOffset);O!=null&&(t.lineDashOffset=O),!a&&v==null&&!l&&(v=i&&i.defaultOpacity),v!=null&&(t.opacity=v),!a&&!o&&t.fill==null&&i.inheritColor&&(t.fill=i.inheritColor);for(var R=0;R<TEXT_PROPS_WITH_GLOBAL.length;R++){var M=TEXT_PROPS_WITH_GLOBAL[R],N=retrieve2(r.getShallow(M),n[M]);N!=null&&(t[M]=N)}for(var R=0;R<TEXT_PROPS_SELF.length;R++){var M=TEXT_PROPS_SELF[R],N=r.getShallow(M);N!=null&&(t[M]=N)}if(t.verticalAlign==null){var V=r.getShallow("baseline");V!=null&&(t.verticalAlign=V)}if(!s||!i.disableBox){for(var R=0;R<TEXT_PROPS_BOX.length;R++){var M=TEXT_PROPS_BOX[R],N=r.getShallow(M);N!=null&&(t[M]=N)}var G=r.getShallow("borderType");G!=null&&(t.borderDash=G),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&u&&(t.backgroundColor=u),(t.borderColor==="auto"||t.borderColor==="inherit")&&u&&(t.borderColor=u)}}function getFont(t,r){var n=r&&r.getModel("textStyle");return trim([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(),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")},i=0;i<textStyleParams.length;i++)n[textStyleParams[i]]=this.getShallow(textStyleParams[i]);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,i){this.parentModel=n,this.ecModel=i,this.option=r}return t.prototype.init=function(r,n,i){},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 i=this.option,a=i==null?i:i[r];if(a==null&&!n){var o=this.parentModel;o&&(a=o.getShallow(r))}return a},t.prototype.getModel=function(r,n){var i=r!=null,a=i?this.parsePath(r):null,o=i?this._doGet(a):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new t(o,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$2(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 i=this.option;if(!r)return i;for(var a=0;a<r.length&&!(!!r[a]&&(i=i&&typeof i=="object"?i[r[a]]:null,i==null));a++);return i==null&&n&&(i=n._doGet(this.resolveParentPath(r),n.parentModel)),i},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,i){var a=parseClassType(n);r[a.main]=i},t.determineSubType=function(n,i){var a=i.type;if(!a){var o=parseClassType(n).main;t.hasSubTypes(n)&&r[o]&&(a=r[o](i))}return a}}function enableTopologicalTravel(t,r){t.topologicalTravel=function(o,s,l,u){if(!o.length)return;var c=n(s),d=c.graph,v=c.noEntryList,I={};for(each$4(o,function(V){I[V]=!0});v.length;){var $=v.pop(),O=d[$],R=!!I[$];R&&(l.call(u,$,O.originalDeps.slice()),delete I[$]),each$4(O.successor,R?N:M)}each$4(I,function(){var V="";throw new Error(V)});function M(V){d[V].entryCount--,d[V].entryCount===0&&v.push(V)}function N(V){I[V]=!0,M(V)}};function n(o){var s={},l=[];return each$4(o,function(u){var c=i(s,u),d=c.originalDeps=r(u),v=a(d,o);c.entryCount=v.length,c.entryCount===0&&l.push(u),each$4(v,function(I){indexOf(c.predecessor,I)<0&&c.predecessor.push(I);var $=i(s,I);indexOf($.successor,I)<0&&$.successor.push(u)})}),{graph:s,noEntryList:l}}function i(o,s){return o[s]||(o[s]={predecessor:[],successor:[]}),o[s]}function a(o,s){var l=[];return each$4(o,function(u){indexOf(s,u)>=0&&l.push(u)}),l}}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",custom:"Custom chart",chart:"Chart"}},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",custom:"\u81EA\u5B9A\u4E49\u56FE\u8868",chart:"\u56FE\u8868"}},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||DEFAULT_LOCALE).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$2(r):merge(clone$2(r),clone$2(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$2(t),clone$2(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(t,r,n,i){var a=parseDate(t),o=a[fullYearGetterName(n)](),s=a[monthGetterName(n)]()+1,l=Math.floor((s-1)/3)+1,u=a[dateGetterName(n)](),c=a["get"+(n?"UTC":"")+"Day"](),d=a[hoursGetterName(n)](),v=(d-1)%12+1,I=a[minutesGetterName(n)](),$=a[secondsGetterName(n)](),O=a[millisecondsGetterName(n)](),R=d>=12?"pm":"am",M=R.toUpperCase(),N=i instanceof Model$1?i:getLocaleModel(i||SYSTEM_LANG)||getDefaultLocaleModel(),V=N.getModel("time"),G=V.get("month"),Y=V.get("monthAbbr"),X=V.get("dayOfWeek"),q=V.get("dayOfWeekAbbr");return(r||"").replace(/{a}/g,R+"").replace(/{A}/g,M+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,pad(o%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,G[s-1]).replace(/{MMM}/g,Y[s-1]).replace(/{MM}/g,pad(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,pad(u,2)).replace(/{d}/g,u+"").replace(/{eeee}/g,X[c]).replace(/{ee}/g,q[c]).replace(/{e}/g,c+"").replace(/{HH}/g,pad(d,2)).replace(/{H}/g,d+"").replace(/{hh}/g,pad(v+"",2)).replace(/{h}/g,v+"").replace(/{mm}/g,pad(I,2)).replace(/{m}/g,I+"").replace(/{ss}/g,pad($,2)).replace(/{s}/g,$+"").replace(/{SSS}/g,pad(O,3)).replace(/{S}/g,O+"")}function leveledFormat(t,r,n,i,a){var o=null;if(isString(n))o=n;else if(isFunction(n))o=n(t.value,r,{level:t.level});else{var s=extend({},defaultLeveledFormatter);if(t.level>0)for(var l=0;l<primaryTimeUnits.length;++l)s[primaryTimeUnits[l]]="{primary|"+s[primaryTimeUnits[l]]+"}";var u=n?n.inherit===!1?n:defaults(n,s):s,c=getUnitFromValue(t.value,a);if(u[c])o=u[c];else if(u.inherit){for(var d=timeUnits.indexOf(c),l=d-1;l>=0;--l)if(u[c]){o=u[c];break}o=o||s.none}if(isArray(o)){var v=t.level==null?0:t.level>=0?t.level:o.length+t.level;v=Math.min(v,o.length-1),o=o[v]}}return format(new Date(t.value),o,a,i)}function getUnitFromValue(t,r){var n=parseDate(t),i=n[monthGetterName(r)]()+1,a=n[dateGetterName(r)](),o=n[hoursGetterName(r)](),s=n[minutesGetterName(r)](),l=n[secondsGetterName(r)](),u=n[millisecondsGetterName(r)](),c=u===0,d=c&&l===0,v=d&&s===0,I=v&&o===0,$=I&&a===1,O=$&&i===1;return O?"year":$?"month":I?"day":v?"hour":d?"minute":c?"second":"millisecond"}function getUnitValue(t,r,n){var i=isNumber(t)?parseDate(t):t;switch(r=r||getUnitFromValue(t,n),r){case"year":return i[fullYearGetterName(n)]();case"half-year":return i[monthGetterName(n)]()>=6?1:0;case"quarter":return Math.floor((i[monthGetterName(n)]()+1)/4);case"month":return i[monthGetterName(n)]();case"day":return i[dateGetterName(n)]();case"half-day":return i[hoursGetterName(n)]()/24;case"hour":return i[hoursGetterName(n)]();case"minute":return i[minutesGetterName(n)]();case"second":return i[secondsGetterName(n)]();case"millisecond":return i[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 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,i){return i.toUpperCase()}),r&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(t,r,n){var i="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(d){return d&&trim(d)?d:"-"}function o(d){return!!(d!=null&&!isNaN(d)&&isFinite(d))}var s=r==="time",l=t instanceof Date;if(s||l){var u=s?parseDate(t):t;if(isNaN(+u)){if(l)return"-"}else return format(u,i,n)}if(r==="ordinal")return isStringSafe(t)?a(t):isNumber(t)&&o(t)?t+"":"-";var c=numericToNumber(t);return o(c)?addCommas(c):isStringSafe(t)?a(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(r)||(r=[r]);var i=r.length;if(!i)return"";for(var a=r[0].$vars||[],o=0;o<a.length;o++){var s=TPL_VAR_ALIAS[o];t=t.replace(wrapVar(s),wrapVar(s,0))}for(var l=0;l<i;l++)for(var u=0;u<a.length;u++){var c=r[l][a[u]];t=t.replace(wrapVar(TPL_VAR_ALIAS[u],l),n?encodeHTML(c):c)}return t}function getTooltipMarker(t,r){var n=isString(t)?{color:t,extraCssText:r}:t||{},i=n.color,a=n.type;r=n.extraCssText;var o=n.renderMode||"html";if(!i)return"";if(o==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+encodeHTML(i)+";"+(r||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(i)+";"+(r||"")+'"></span>';var s=n.markerId||"markerX";return{renderMode:o,content:"{"+s+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}}function convertToColorString(t,r){return r=r||"transparent",isString(t)?t:isObject$2(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$3=each$4,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(t,r,n,i,a){var o=0,s=0;i==null&&(i=1/0),a==null&&(a=1/0);var l=0;r.eachChild(function(u,c){var d=u.getBoundingRect(),v=r.childAt(c+1),I=v&&v.getBoundingRect(),$,O;if(t==="horizontal"){var R=d.width+(I?-I.x+d.x:0);$=o+R,$>i||u.newline?(o=0,$=R,s+=l+n,l=d.height):l=Math.max(l,d.height)}else{var M=d.height+(I?-I.y+d.y:0);O=s+M,O>a||u.newline?(o+=l+n,s=0,O=M,l=d.width):l=Math.max(l,d.width)}u.newline||(u.x=o,u.y=s,u.markRedraw(),t==="horizontal"?o=$+n:s=O+n)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(t,r,n){n=normalizeCssArray(n||0);var i=r.width,a=r.height,o=parsePercent(t.left,i),s=parsePercent(t.top,a),l=parsePercent(t.right,i),u=parsePercent(t.bottom,a),c=parsePercent(t.width,i),d=parsePercent(t.height,a),v=n[2]+n[0],I=n[1]+n[3],$=t.aspect;switch(isNaN(c)&&(c=i-l-I-o),isNaN(d)&&(d=a-u-v-s),$!=null&&(isNaN(c)&&isNaN(d)&&($>i/a?c=i*.8:d=a*.8),isNaN(c)&&(c=$*d),isNaN(d)&&(d=c/$)),isNaN(o)&&(o=i-l-c-I),isNaN(s)&&(s=a-u-d-v),t.left||t.right){case"center":o=i/2-c/2-n[3];break;case"right":o=i-c-I;break}switch(t.top||t.bottom){case"middle":case"center":s=a/2-d/2-n[0];break;case"bottom":s=a-d-v;break}o=o||0,s=s||0,isNaN(c)&&(c=i-I-o-(l||0)),isNaN(d)&&(d=a-v-s-(u||0));var O=new BoundingRect$1(o+n[3],s+n[0],c,d);return O.margin=n,O}function fetchLayoutMode(t){var r=t.layoutMode||t.constructor.layoutMode;return isObject$2(r)?r:r?{type:r}:null}function mergeLayoutParam(t,r,n){var i=n&&n.ignoreSize;!isArray(i)&&(i=[i,i]);var a=s(HV_NAMES[0],0),o=s(HV_NAMES[1],1);c(HV_NAMES[0],t,a),c(HV_NAMES[1],t,o);function s(d,v){var I={},$=0,O={},R=0,M=2;if(each$3(d,function(G){O[G]=t[G]}),each$3(d,function(G){l(r,G)&&(I[G]=O[G]=r[G]),u(I,G)&&$++,u(O,G)&&R++}),i[v])return u(r,d[1])?O[d[2]]=null:u(r,d[2])&&(O[d[1]]=null),O;if(R===M||!$)return O;if($>=M)return I;for(var N=0;N<d.length;N++){var V=d[N];if(!l(I,V)&&l(t,V)){I[V]=t[V];break}}return I}function l(d,v){return d.hasOwnProperty(v)}function u(d,v){return d[v]!=null&&d[v]!=="auto"}function c(d,v,I){each$3(d,function($){v[$]=I[$]})}}function getLayoutParams(t){return copyLayoutParams({},t)}function copyLayoutParams(t,r){return r&&t&&each$3(LOCATION_PARAMS,function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t}var inner$9=makeInner(),ComponentModel=function(t){__extends(r,t);function r(n,i,a){var o=t.call(this,n,i,a)||this;return o.uid=getUID("ec_cpt_model"),o}return r.prototype.init=function(n,i,a){this.mergeDefaultAndTheme(n,a)},r.prototype.mergeDefaultAndTheme=function(n,i){var a=fetchLayoutMode(this),o=a?getLayoutParams(n):{},s=i.getTheme();merge(n,s.get(this.mainType)),merge(n,this.getDefaultOption()),a&&mergeLayoutParam(n,o,a)},r.prototype.mergeOption=function(n,i){merge(this.option,n,!0);var a=fetchLayoutMode(this);a&&mergeLayoutParam(this.option,n,a)},r.prototype.optionUpdated=function(n,i){},r.prototype.getDefaultOption=function(){var n=this.constructor;if(!isExtendedClass(n))return n.defaultOption;var i=inner$9(this);if(!i.defaultOption){for(var a=[],o=n;o;){var s=o.prototype.defaultOption;s&&a.push(s),o=o.superClass}for(var l={},u=a.length-1;u>=0;u--)l=merge(l,a[u],!0);i.defaultOption=l}return i.defaultOption},r.prototype.getReferringComponents=function(n,i){var a=n+"Index",o=n+"Id";return queryReferringComponents(this.ecModel,n,{index:this.get(a,!0),id:this.get(o,!0)},i)},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$4(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","itemChildGroupId","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 i={},a=querySeriesUpstreamDatasetModel(r);if(!a||!t)return i;var o=[],s=[],l=r.ecModel,u=innerGlobalModel(l).datasetMap,c=a.uid+"_"+n.seriesLayoutBy,d,v;t=t.slice(),each$4(t,function(R,M){var N=isObject$2(R)?R:t[M]={name:R};N.type==="ordinal"&&d==null&&(d=M,v=O(N)),i[N.name]=[]});var I=u.get(c)||u.set(c,{categoryWayDim:v,valueWayDim:0});each$4(t,function(R,M){var N=R.name,V=O(R);if(d==null){var G=I.valueWayDim;$(i[N],G,V),$(s,G,V),I.valueWayDim+=V}else if(d===M)$(i[N],0,V),$(o,0,V);else{var G=I.categoryWayDim;$(i[N],G,V),$(s,G,V),I.categoryWayDim+=V}});function $(R,M,N){for(var V=0;V<N;V++)R.push(M+V)}function O(R){var M=R.dimsDef;return M?M.length:1}return o.length&&(i.itemName=o),s.length&&(i.seriesName=s),i}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,i,a,o){var s,l=5;if(isTypedArray(t))return BE_ORDINAL.Not;var u,c;if(i){var d=i[o];isObject$2(d)?(u=d.name,c=d.type):isString(d)&&(u=d)}if(c!=null)return c==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(r===SOURCE_FORMAT_ARRAY_ROWS){var v=t;if(n===SERIES_LAYOUT_BY_ROW){for(var I=v[o],$=0;$<(I||[]).length&&$<l;$++)if((s=Y(I[a+$]))!=null)return s}else for(var $=0;$<v.length&&$<l;$++){var O=v[a+$];if(O&&(s=Y(O[o]))!=null)return s}}else if(r===SOURCE_FORMAT_OBJECT_ROWS){var R=t;if(!u)return BE_ORDINAL.Not;for(var $=0;$<R.length&&$<l;$++){var M=R[$];if(M&&(s=Y(M[u]))!=null)return s}}else if(r===SOURCE_FORMAT_KEYED_COLUMNS){var N=t;if(!u)return BE_ORDINAL.Not;var I=N[u];if(!I||isTypedArray(I))return BE_ORDINAL.Not;for(var $=0;$<I.length&&$<l;$++)if((s=Y(I[$]))!=null)return s}else if(r===SOURCE_FORMAT_ORIGINAL)for(var V=t,$=0;$<V.length&&$<l;$++){var M=V[$],G=getDataItemValue(M);if(!isArray(G))return BE_ORDINAL.Not;if((s=Y(G[o]))!=null)return s}function Y(X){var q=isString(X);if(X!=null&&Number.isFinite(Number(X))&&X!=="")return q?BE_ORDINAL.Might:BE_ORDINAL.Not;if(q&&X!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function concatInternalOptions(t,r,n){var i=internalOptionCreatorMap.get(r);if(!i)return n;var a=i(t);return a?n.concat(a):n}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function t(){}return t.prototype.getColorFromPalette=function(r,n,i){var a=normalizeToArray(this.get("color",!0)),o=this.get("colorLayer",!0);return getFromPalette(this,innerColor,a,o,r,n,i)},t.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},t}();function getNearestPalette(t,r){for(var n=t.length,i=0;i<n;i++)if(t[i].length>r)return t[i];return t[n-1]}function getFromPalette(t,r,n,i,a,o,s){o=o||t;var l=r(o),u=l.paletteIdx||0,c=l.paletteNameMap=l.paletteNameMap||{};if(c.hasOwnProperty(a))return c[a];var d=s==null||!i?n:getNearestPalette(i,s);if(d=d||n,!(!d||!d.length)){var v=d[u];return a&&(c[a]=v),l.paletteIdx=(u+1)%d.length,v}}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(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(n,i,a,o,s,l){o=o||{},this.option=null,this._theme=new Model$1(o),this._locale=new Model$1(s),this._optionManager=l},r.prototype.setOption=function(n,i,a){var o=normalizeSetOptionInput(i);this._optionManager.setOption(n,a,o),this._resetOption(null,o)},r.prototype.resetOption=function(n,i){return this._resetOption(n,normalizeSetOptionInput(i))},r.prototype._resetOption=function(n,i){var a=!1,o=this._optionManager;if(!n||n==="recreate"){var s=o.mountOption(n==="recreate");!this.option||n==="recreate"?initBase(this,s):(this.restoreData(),this._mergeOption(s,i)),a=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=o.getTimelineOption(this);l&&(a=!0,this._mergeOption(l,i))}if(!n||n==="recreate"||n==="media"){var u=o.getMediaOption(this);u.length&&each$4(u,function(c){a=!0,this._mergeOption(c,i)},this)}return a},r.prototype.mergeOption=function(n){this._mergeOption(n,null)},r.prototype._mergeOption=function(n,i){var a=this.option,o=this._componentsMap,s=this._componentsCount,l=[],u=createHashMap(),c=i&&i.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$4(n,function(v,I){v!=null&&(ComponentModel$1.hasClass(I)?I&&(l.push(I),u.set(I,!0)):a[I]=a[I]==null?clone$2(v):merge(a[I],v,!0))}),c&&c.each(function(v,I){ComponentModel$1.hasClass(I)&&!u.get(I)&&(l.push(I),u.set(I,!0))}),ComponentModel$1.topologicalTravel(l,ComponentModel$1.getAllClassMainTypes(),d,this);function d(v){var I=concatInternalOptions(this,v,normalizeToArray(n[v])),$=o.get(v),O=$?c&&c.get(v)?"replaceMerge":"normalMerge":"replaceAll",R=mappingToExists($,I,O);setComponentTypeToKeyInfo(R,v,ComponentModel$1),a[v]=null,o.set(v,null),s.set(v,0);var M=[],N=[],V=0,G;each$4(R,function(Y,X){var q=Y.existing,Z=Y.newOption;if(!Z)q&&(q.mergeOption({},this),q.optionUpdated({},!1));else{var ee=v==="series",ne=ComponentModel$1.getClass(v,Y.keyInfo.subType,!ee);if(!ne)return;if(v==="tooltip"){if(G)return;G=!0}if(q&&q.constructor===ne)q.name=Y.keyInfo.name,q.mergeOption(Z,this),q.optionUpdated(Z,!1);else{var J=extend({componentIndex:X},Y.keyInfo);q=new ne(Z,this,this,J),extend(q,J),Y.brandNew&&(q.__requireNewView=!0),q.init(Z,this,this),q.optionUpdated(null,!0)}}q?(M.push(q.option),N.push(q),V++):(M.push(void 0),N.push(void 0))},this),a[v]=M,o.set(v,N),s.set(v,V),v==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},r.prototype.getOption=function(){var n=clone$2(this.option);return each$4(n,function(i,a){if(ComponentModel$1.hasClass(a)){for(var o=normalizeToArray(i),s=o.length,l=!1,u=s-1;u>=0;u--)o[u]&&!isComponentIdInternal(o[u])?l=!0:(o[u]=null,!l&&s--);o.length=s,n[a]=o}}),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,i){var a=this._componentsMap.get(n);if(a){var o=a[i||0];if(o)return o;if(i==null){for(var s=0;s<a.length;s++)if(a[s])return a[s]}}},r.prototype.queryComponents=function(n){var i=n.mainType;if(!i)return[];var a=n.index,o=n.id,s=n.name,l=this._componentsMap.get(i);if(!l||!l.length)return[];var u;return a!=null?(u=[],each$4(normalizeToArray(a),function(c){l[c]&&u.push(l[c])})):o!=null?u=queryByIdOrName("id",o,l):s!=null?u=queryByIdOrName("name",s,l):u=filter(l,function(c){return!!c}),filterBySubType(u,n)},r.prototype.findComponents=function(n){var i=n.query,a=n.mainType,o=l(i),s=o?this.queryComponents(o):filter(this._componentsMap.get(a),function(c){return!!c});return u(filterBySubType(s,n));function l(c){var d=a+"Index",v=a+"Id",I=a+"Name";return c&&(c[d]!=null||c[v]!=null||c[I]!=null)?{mainType:a,index:c[d],id:c[v],name:c[I]}:null}function u(c){return n.filter?filter(c,n.filter):c}},r.prototype.eachComponent=function(n,i,a){var o=this._componentsMap;if(isFunction(n)){var s=i,l=n;o.each(function(v,I){for(var $=0;v&&$<v.length;$++){var O=v[$];O&&l.call(s,I,O,O.componentIndex)}})}else for(var u=isString(n)?o.get(n):isObject$2(n)?this.findComponents(n):null,c=0;u&&c<u.length;c++){var d=u[c];d&&i.call(a,d,d.componentIndex)}},r.prototype.getSeriesByName=function(n){var i=convertOptionIdName(n,null);return filter(this._componentsMap.get("series"),function(a){return!!a&&i!=null&&a.name===i})},r.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},r.prototype.getSeriesByType=function(n){return filter(this._componentsMap.get("series"),function(i){return!!i&&i.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,i){assertSeriesInitialized(this),each$4(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];n.call(i,o,a)},this)},r.prototype.eachRawSeries=function(n,i){each$4(this._componentsMap.get("series"),function(a){a&&n.call(i,a,a.componentIndex)})},r.prototype.eachSeriesByType=function(n,i,a){assertSeriesInitialized(this),each$4(this._seriesIndices,function(o){var s=this._componentsMap.get("series")[o];s.subType===n&&i.call(a,s,o)},this)},r.prototype.eachRawSeriesByType=function(n,i,a){return each$4(this.getSeriesByType(n),i,a)},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,i){assertSeriesInitialized(this);var a=[];each$4(this._seriesIndices,function(o){var s=this._componentsMap.get("series")[o];n.call(i,s,o)&&a.push(o)},this),this._seriesIndices=a,this._seriesIndicesMap=createHashMap(a)},r.prototype.restoreData=function(n){reCreateSeriesIndices(this);var i=this._componentsMap,a=[];i.each(function(o,s){ComponentModel$1.hasClass(s)&&a.push(s)}),ComponentModel$1.topologicalTravel(a,ComponentModel$1.getAllClassMainTypes(),function(o){each$4(i.get(o),function(s){s&&(o!=="series"||!isNotTargetSeries(s,n))&&s.restoreData()})})},r.internalField=function(){reCreateSeriesIndices=function(n){var i=n._seriesIndices=[];each$4(n._componentsMap.get("series"),function(a){a&&i.push(a.componentIndex)}),n._seriesIndicesMap=createHashMap(i)},assertSeriesInitialized=function(n){},initBase=function(n,i){n.option={},n.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,n._componentsMap=createHashMap({series:[]}),n._componentsCount=createHashMap();var a=i.aria;isObject$2(a)&&a.enabled==null&&(a.enabled=!0),mergeTheme(i,n._theme.option),merge(i,globalDefault,!1),n._mergeOption(i,null)}}(),r}(Model$1);function isNotTargetSeries(t,r){if(r){var n=r.seriesIndex,i=r.seriesId,a=r.seriesName;return n!=null&&t.componentIndex!==n||i!=null&&t.id!==i||a!=null&&t.name!==a}}function mergeTheme(t,r){var n=t.color&&!t.colorLayer;each$4(r,function(i,a){a==="colorLayer"&&n||ComponentModel$1.hasClass(a)||(typeof i=="object"?t[a]=t[a]?merge(t[a],i,!1):clone$2(i):t[a]==null&&(t[a]=i))})}function queryByIdOrName(t,r,n){if(isArray(r)){var i=createHashMap();return each$4(r,function(o){if(o!=null){var s=convertOptionIdName(o,null);s!=null&&i.set(o,!0)}}),filter(n,function(o){return o&&i.get(o[t])})}else{var a=convertOptionIdName(r,null);return filter(n,function(o){return o&&a!=null&&o[t]===a})}}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$4(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$4(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 i=[];each$4(coordinateSystemCreators,function(a,o){var s=a.create(r,n);i=i.concat(s||[])}),this._coordinateSystems=i},t.prototype.update=function(r,n){each$4(this._coordinateSystems,function(i){i.update&&i.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,i){r&&(each$4(normalizeToArray(r.series),function(s){s&&s.data&&isTypedArray(s.data)&&setAsPrimitive(s.data)}),each$4(normalizeToArray(r.dataset),function(s){s&&s.source&&isTypedArray(s.source)&&setAsPrimitive(s.source)})),r=clone$2(r);var a=this._optionBackup,o=parseRawOption(r,n,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},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$2(r?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(r){var n,i=this._timelineOptions;if(i.length){var a=r.getComponent("timeline");a&&(n=clone$2(i[a.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(r){var n=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],l=[];if(!a.length&&!o)return l;for(var u=0,c=a.length;u<c;u++)applyMediaQuery(a[u].query,n,i)&&s.push(u);return!s.length&&o&&(s=[-1]),s.length&&!indicesEquals(s,this._currentMediaIndices)&&(l=map$1(s,function(d){return clone$2(d===-1?o.option:a[d].option)})),this._currentMediaIndices=s,l},t}();function parseRawOption(t,r,n){var i=[],a,o,s=t.baseOption,l=t.timeline,u=t.options,c=t.media,d=!!t.media,v=!!(u||l||s&&s.timeline);s?(o=s,o.timeline||(o.timeline=l)):((v||d)&&(t.options=t.media=null),o=t),d&&isArray(c)&&each$4(c,function($){$&&$.option&&($.query?i.push($):a||(a=$))}),I(o),each$4(u,function($){return I($)}),each$4(i,function($){return I($.option)});function I($){each$4(r,function(O){O($,n)})}return{baseOption:o,timelineOptions:u||[],mediaDefault:a,mediaList:i}}function applyMediaQuery(t,r,n){var i={width:r,height:n,aspectratio:r/n},a=!0;return each$4(t,function(o,s){var l=s.match(QUERY_REG);if(!(!l||!l[1]||!l[2])){var u=l[1],c=l[2].toLowerCase();compare(i[c],o,u)||(a=!1)}}),a}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$2=each$4,isObject$1=isObject$2,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle(t){var r=t&&t.itemStyle;if(!!r)for(var n=0,i=POSSIBLE_STYLES.length;n<i;n++){var a=POSSIBLE_STYLES[n],o=r.normal,s=r.emphasis;o&&o[a]&&(t[a]=t[a]||{},t[a].normal?merge(t[a].normal,o[a]):t[a].normal=o[a],o[a]=null),s&&s[a]&&(t[a]=t[a]||{},t[a].emphasis?merge(t[a].emphasis,s[a]):t[a].emphasis=s[a],s[a]=null)}}function convertNormalEmphasis(t,r,n){if(t&&t[r]&&(t[r].normal||t[r].emphasis)){var i=t[r].normal,a=t[r].emphasis;i&&(n?(t[r].normal=t[r].emphasis=null,defaults(t[r],i)):t[r]=i),a&&(t.emphasis=t.emphasis||{},t.emphasis[r]=a,a.focus&&(t.emphasis.focus=a.focus),a.blurScope&&(t.emphasis.blurScope=a.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$1(t)&&t[r],i=isObject$1(n)&&n.textStyle;if(i)for(var a=0,o=TEXT_STYLE_OPTIONS.length;a<o;a++){var s=TEXT_STYLE_OPTIONS[a];i.hasOwnProperty(s)&&(n[s]=i[s])}}function compatEC3CommonStyles(t){t&&(removeEC3NormalStatus(t),compatTextStyle(t,"label"),t.emphasis&&compatTextStyle(t.emphasis,"label"))}function processSeries(t){if(!!isObject$1(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 i=t.markArea;i&&compatEC3CommonStyles(i);var a=t.data;if(t.type==="graph"){a=a||t.nodes;var o=t.links||t.edges;if(o&&!isTypedArray(o))for(var s=0;s<o.length;s++)compatEC3CommonStyles(o[s]);each$4(t.categories,function(c){removeEC3NormalStatus(c)})}if(a&&!isTypedArray(a))for(var s=0;s<a.length;s++)compatEC3CommonStyles(a[s]);if(r=t.markPoint,r&&r.data)for(var l=r.data,s=0;s<l.length;s++)compatEC3CommonStyles(l[s]);if(n=t.markLine,n&&n.data)for(var u=n.data,s=0;s<u.length;s++)isArray(u[s])?(compatEC3CommonStyles(u[s][0]),compatEC3CommonStyles(u[s][1])):compatEC3CommonStyles(u[s]);t.type==="gauge"?(compatTextStyle(t,"axisLabel"),compatTextStyle(t,"title"),compatTextStyle(t,"detail")):t.type==="treemap"?(convertNormalEmphasis(t.breadcrumb,"itemStyle"),each$4(t.levels,function(c){removeEC3NormalStatus(c)})):t.type==="tree"&&removeEC3NormalStatus(t.leaves)}}function toArr(t){return isArray(t)?t:t?[t]:[]}function toObj(t){return(isArray(t)?t[0]:t)||{}}function globalCompatStyle(t,r){each$2(toArr(t.series),function(i){isObject$1(i)&&processSeries(i)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];r&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$2(n,function(i){each$2(toArr(t[i]),function(a){a&&(compatTextStyle(a,"axisLabel"),compatTextStyle(a.axisPointer,"label"))})}),each$2(toArr(t.parallel),function(i){var a=i&&i.parallelAxisDefault;compatTextStyle(a,"axisLabel"),compatTextStyle(a&&a.axisPointer,"label")}),each$2(toArr(t.calendar),function(i){convertNormalEmphasis(i,"itemStyle"),compatTextStyle(i,"dayLabel"),compatTextStyle(i,"monthLabel"),compatTextStyle(i,"yearLabel")}),each$2(toArr(t.radar),function(i){compatTextStyle(i,"name"),i.name&&i.axisName==null&&(i.axisName=i.name,delete i.name),i.nameGap!=null&&i.axisNameGap==null&&(i.axisNameGap=i.nameGap,delete i.nameGap)}),each$2(toArr(t.geo),function(i){isObject$1(i)&&(compatEC3CommonStyles(i),each$2(toArr(i.regions),function(a){compatEC3CommonStyles(a)}))}),each$2(toArr(t.timeline),function(i){compatEC3CommonStyles(i),convertNormalEmphasis(i,"label"),convertNormalEmphasis(i,"itemStyle"),convertNormalEmphasis(i,"controlStyle",!0);var a=i.data;isArray(a)&&each$4(a,function(o){isObject$2(o)&&(convertNormalEmphasis(o,"label"),convertNormalEmphasis(o,"itemStyle"))})}),each$2(toArr(t.toolbox),function(i){convertNormalEmphasis(i,"iconStyle"),each$2(i.feature,function(a){convertNormalEmphasis(a,"iconStyle")})}),compatTextStyle(toObj(t.axisPointer),"label"),compatTextStyle(toObj(t.tooltip).axisPointer,"label")}function get(t,r){for(var n=r.split(","),i=t,a=0;a<n.length&&(i=i&&i[n[a]],i!=null);a++);return i}function set(t,r,n,i){for(var a=r.split(","),o=t,s,l=0;l<a.length-1;l++)s=a[l],o[s]==null&&(o[s]={}),o=o[s];(i||o[a[l]]==null)&&(o[a[l]]=n)}function compatLayoutProperties(t){t&&each$4(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 i=BAR_ITEM_STYLE_MAP[n][1],a=BAR_ITEM_STYLE_MAP[n][0];r[i]!=null&&(r[a]=r[i])}}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$4(t.series,function(n){if(!!isObject$2(n)){var i=n.type;if(i==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow);else if(i==="pie"||i==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise),compatPieLabel(n.label);var a=n.data;if(a&&!isTypedArray(a))for(var o=0;o<a.length;o++)compatPieLabel(a[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(n.emphasis.scaleSize=n.hoverOffset))}else if(i==="gauge"){var s=get(n,"pointer.color");s!=null&&set(n,"itemStyle.color",s)}else if(i==="bar"){compatBarItemStyle(n),compatBarItemStyle(n.backgroundStyle),compatBarItemStyle(n.emphasis);var a=n.data;if(a&&!isTypedArray(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&(compatBarItemStyle(a[o]),compatBarItemStyle(a[o]&&a[o].emphasis))}else if(i==="sunburst"){var l=n.highlightPolicy;l&&(n.emphasis=n.emphasis||{},n.emphasis.focus||(n.emphasis.focus=l)),compatSunburstState(n),traverseTree(n.data,compatSunburstState)}else i==="graph"||i==="sankey"?compatGraphFocus(n):i==="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$4(COMPATITABLE_COMPONENTS,function(n){var i=t[n];i&&(isArray(i)||(i=[i]),each$4(i,function(a){compatLayoutProperties(a)}))})}function dataStack(t){var r=createHashMap();t.eachSeries(function(n){var i=n.get("stack");if(i){var a=r.get(i)||r.set(i,[]),o=n.getData(),s={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:n};if(!s.stackedDimension||!(s.isStackedByIndex||s.stackedByDimension))return;a.length&&o.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(s)}}),r.each(calculateStack)}function calculateStack(t){each$4(t,function(r,n){var i=[],a=[NaN,NaN],o=[r.stackResultDimension,r.stackedOverDimension],s=r.data,l=r.isStackedByIndex,u=r.seriesModel.get("stackStrategy")||"samesign";s.modify(o,function(c,d,v){var I=s.get(r.stackedDimension,v);if(isNaN(I))return a;var $,O;l?O=s.getRawIndex(v):$=s.get(r.stackedByDimension,v);for(var R=NaN,M=n-1;M>=0;M--){var N=t[M];if(l||(O=N.data.rawIndexOf(N.stackedByDimension,$)),O>=0){var V=N.data.getByRawIndex(N.stackResultDimension,O);if(u==="all"||u==="positive"&&V>0||u==="negative"&&V<0||u==="samesign"&&I>=0&&V>0||u==="samesign"&&I<=0&&V<0){I=addSafe(I,V),R=V;break}}}return i[0]=I,i[1]=R,i})})}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 i=0;i<n.length;i++){var a=n[i];a.type==null&&guessOrdinal(this,i)===BE_ORDINAL.Must&&(a.type="ordinal")}}return t}();function isSourceInstance(t){return t instanceof SourceImpl}function createSource(t,r,n){n=n||detectSourceFormat(t);var i=r.seriesLayoutBy,a=determineSourceDimensions(t,n,i,r.sourceHeader,r.dimensions),o=new SourceImpl({data:t,sourceFormat:n,seriesLayoutBy:i,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:clone$2(r)});return o}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$2(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(t)){t.length===0&&(r=SOURCE_FORMAT_ARRAY_ROWS);for(var n=0,i=t.length;n<i;n++){var a=t[n];if(a!=null){if(isArray(a)||isTypedArray(a)){r=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$2(a)){r=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$2(t)){for(var o in t)if(hasOwn(t,o)&&isArrayLike(t[o])){r=SOURCE_FORMAT_KEYED_COLUMNS;break}}return r}function determineSourceDimensions(t,r,n,i,a){var o,s;if(!t)return{dimensionsDefine:normalizeDimensionsOption(a),startIndex:s,dimensionsDetectedCount:o};if(r===SOURCE_FORMAT_ARRAY_ROWS){var l=t;i==="auto"||i==null?arrayRowsTravelFirst(function(c){c!=null&&c!=="-"&&(isString(c)?s==null&&(s=1):s=0)},n,l,10):s=isNumber(i)?i:i?1:0,!a&&s===1&&(a=[],arrayRowsTravelFirst(function(c,d){a[d]=c!=null?c+"":""},n,l,1/0)),o=a?a.length:n===SERIES_LAYOUT_BY_ROW?l.length:l[0]?l[0].length:null}else if(r===SOURCE_FORMAT_OBJECT_ROWS)a||(a=objectRowsCollectDimensions(t));else if(r===SOURCE_FORMAT_KEYED_COLUMNS)a||(a=[],each$4(t,function(c,d){a.push(d)}));else if(r===SOURCE_FORMAT_ORIGINAL){var u=getDataItemValue(t[0]);o=isArray(u)&&u.length||1}return{startIndex:s,dimensionsDefine:normalizeDimensionsOption(a),dimensionsDetectedCount:o}}function objectRowsCollectDimensions(t){for(var r=0,n;r<t.length&&!(n=t[r++]););if(n)return keys(n)}function normalizeDimensionsOption(t){if(!!t){var r=createHashMap();return map$1(t,function(n,i){n=isObject$2(n)?n:{name:n};var a={name:n.name,displayName:n.displayName,type:n.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var o=r.get(a.name);return o?a.name+="-"+o.count++:r.set(a.name,{count:1}),a})}}function arrayRowsTravelFirst(t,r,n,i){if(r===SERIES_LAYOUT_BY_ROW)for(var a=0;a<n.length&&a<i;a++)t(n[a]?n[a][0]:null,a);else for(var o=n[0]||[],a=0;a<o.length&&a<i;a++)t(o[a],a)}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 i=isSourceInstance(r)?r:createSourceFromSeriesDataOption(r);this._source=i;var a=this._data=i.data;i.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=n,this._data=a),mountMethods(this,a,i)}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(s,l,u){var c=u.sourceFormat,d=u.seriesLayoutBy,v=u.startIndex,I=u.dimensionsDefine,$=providerMethods[getMethodMapKey(c,d)];if(extend(s,$),c===SOURCE_FORMAT_TYPED_ARRAY)s.getItem=n,s.count=a,s.fillStorage=i;else{var O=getRawSourceItemGetter(c,d);s.getItem=bind$1(O,null,l,v,I);var R=getRawSourceDataCounter(c,d);s.count=bind$1(R,null,l,v,I)}};var n=function(s,l){s=s-this._offset,l=l||[];for(var u=this._data,c=this._dimSize,d=c*s,v=0;v<c;v++)l[v]=u[d+v];return l},i=function(s,l,u,c){for(var d=this._data,v=this._dimSize,I=0;I<v;I++){for(var $=c[I],O=$[0]==null?1/0:$[0],R=$[1]==null?-1/0:$[1],M=l-s,N=u[I],V=0;V<M;V++){var G=d[V*v+I];N[s+V]=G,G<O&&(O=G),G>R&&(R=G)}$[0]=O,$[1]=R}},a=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(r={},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:o},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:o},r[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(s){var l=this._data;each$4(s,function(u,c){for(var d=l[c]||(l[c]=[]),v=0;v<(u||[]).length;v++)d.push(u[v])})}},r[SOURCE_FORMAT_ORIGINAL]={appendData:o},r[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},r);function o(s){for(var l=0;l<s.length;l++)this._data.push(s[l])}}(),t}(),getItemSimply=function(t,r,n,i){return t[i]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function(t,r,n,i){return t[i+r]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function(t,r,n,i,a){i+=r;for(var o=a||[],s=t,l=0;l<s.length;l++){var u=s[l];o[l]=u?u[i]:null}return o},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function(t,r,n,i,a){for(var o=a||[],s=0;s<n.length;s++){var l=n[s].name,u=t[l];o[s]=u?u[i]:null}return o},_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 i=t[0];return i?Math.max(0,i.length-r):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function(t,r,n){var i=n[0].name,a=t[i];return a?a.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 i=getDataItemValue(t);return i instanceof Array?i[r]:i},_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 i=t.getRawDataItem(r);if(i!=null){var a=t.getStore(),o=a.getSource().sourceFormat;if(n!=null){var s=t.getDimensionIndex(n),l=a.getDimensionProperty(s);return getRawSourceValueGetter(o)(i,s,l)}else{var u=i;return o===SOURCE_FORMAT_ORIGINAL&&(u=getDataItemValue(i)),u}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function t(){}return t.prototype.getDataParams=function(r,n){var i=this.getData(n),a=this.getRawValue(r,n),o=i.getRawIndex(r),s=i.getName(r),l=i.getRawDataItem(r),u=i.getItemVisual(r,"style"),c=u&&u[i.getItemVisual(r,"drawType")||"fill"],d=u&&u.stroke,v=this.mainType,I=v==="series",$=i.userOutput&&i.userOutput.get();return{componentType:v,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:I?this.subType:null,seriesIndex:this.seriesIndex,seriesId:I?this.id:null,seriesName:I?this.name:null,name:s,dataIndex:o,data:l,dataType:n,value:a,color:c,borderColor:d,dimensionNames:$?$.fullDimensions:null,encode:$?$.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(r,n,i,a,o,s){n=n||"normal";var l=this.getData(i),u=this.getDataParams(r,i);if(s&&(u.value=s.interpolatedValue),a!=null&&isArray(u.value)&&(u.value=u.value[a]),!o){var c=l.getItemModel(r);o=c.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(isFunction(o))return u.status=n,u.dimensionIndex=a,o(u);if(isString(o)){var d=formatTpl(o,u);return d.replace(DIMENSION_LABEL_REG,function(v,I){var $=I.length,O=I;O.charAt(0)==="["&&O.charAt($-1)==="]"&&(O=+O.slice(1,$-1));var R=retrieveRawValue(l,r,O);if(s&&isArray(s.interpolatedValue)){var M=l.getDimensionIndex(O);M>=0&&(R=s.interpolatedValue[M])}return R!=null?R+"":""})}},t.prototype.getRawValue=function(r,n){return retrieveRawValue(this.getData(n),r)},t.prototype.formatTooltip=function(r,n,i){},t}();function normalizeTooltipFormatResult(t){var r,n;return isObject$2(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,i=r&&r.skip;if(this._dirty&&n){var a=this.context;a.data=a.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!i&&(o=this._plan(this.context));var s=d(this._modBy),l=this._modDataCount||0,u=d(r&&r.modBy),c=r&&r.modDataCount||0;(s!==u||l!==c)&&(o="reset");function d(V){return!(V>=1)&&(V=1),V}var v;(this._dirty||o==="reset")&&(this._dirty=!1,v=this._doReset(i)),this._modBy=u,this._modDataCount=c;var I=r&&r.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var $=this._dueIndex,O=Math.min(I!=null?this._dueIndex+I:1/0,this._dueEnd);if(!i&&(v||$<O)){var R=this._progress;if(isArray(R))for(var M=0;M<R.length;M++)this._doProgress(R[M],$,O,u,c);else this._doProgress(R,$,O,u,c)}this._dueIndex=O;var N=this._settedOutputEnd!=null?this._settedOutputEnd:O;this._outputDueEnd=N}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,i,a,o){iterator.reset(n,i,a,o),this._callingProgress=r,this._callingProgress({start:n,end:i,count:i-n,next:iterator.next},this.context)},t.prototype._doReset=function(r){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,i;!r&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(i=n.forceFirstProgress,n=n.progress),isArray(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),i},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,i,a,o={reset:function(u,c,d,v){r=u,t=c,n=d,i=v,a=Math.ceil(i/n),o.next=n>1&&i>0?l:s}};return o;function s(){return r<t?r++:null}function l(){var u=r%a*n+Math.ceil(r/a),c=r>=t?null:u<i?u:r;return r++,c}}();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:Number(t))}createHashMap({number:function(t){return parseFloat(t)},time:function(t){return+parseDate(t)},trim:function(t){return isString(t)?trim(t):t}});var SortOrderComparator=function(){function t(r,n){var i=r==="desc";this._resultLT=i?1:-1,n==null&&(n=i?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(r,n){var i=isNumber(r)?r:numericToNumber(r),a=isNumber(n)?n:numericToNumber(n),o=isNaN(i),s=isNaN(a);if(o&&(i=this._incomparable),s&&(a=this._incomparable),o&&s){var l=isString(r),u=isString(n);l&&(i=u?r:0),u&&(a=l?n:0)}return i<a?this._resultLT:i>a?-this._resultLT:0},t}(),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,i=t.data,a=n.sourceFormat=t.sourceFormat,o=t.startIndex,s="";t.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(s);var l=[],u={},c=t.dimensionsDefine;if(c)each$4(c,function(R,M){var N=R.name,V={index:M,name:N,displayName:R.displayName};if(l.push(V),N!=null){var G="";hasOwn(u,N)&&throwError(G),u[N]=V}});else for(var d=0;d<t.dimensionsDetectedCount;d++)l.push({index:d});var v=getRawSourceItemGetter(a,SERIES_LAYOUT_BY_COLUMN);r.__isBuiltIn&&(n.getRawDataItem=function(R){return v(i,o,l,R)},n.getRawData=bind$1(getRawData,null,t)),n.cloneRawData=bind$1(cloneRawData,null,t);var I=getRawSourceDataCounter(a,SERIES_LAYOUT_BY_COLUMN);n.count=bind$1(I,null,i,o,l);var $=getRawSourceValueGetter(a);n.retrieveValue=function(R,M){var N=v(i,o,l,R);return O(N,M)};var O=n.retrieveValueFromItem=function(R,M){if(R!=null){var N=l[M];if(N)return $(R,M,N.name)}};return n.getDimensionInfo=bind$1(getDimensionInfo,null,l,u),n.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,l),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 i="";throwError(i)}if(r===SOURCE_FORMAT_ARRAY_ROWS){for(var a=[],o=0,s=n.length;o<s;o++)a.push(n[o].slice());return a}else if(r===SOURCE_FORMAT_OBJECT_ROWS){for(var a=[],o=0,s=n.length;o<s;o++)a.push(extend({},n[o]));return a}}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$2(t)}var externalTransformMap=createHashMap();function registerExternalTransform(t){t=clone$2(t);var r=t.type,n="";r||throwError(n);var i=r.split(":");i.length!==2&&throwError(n);var a=!1;i[0]==="echarts"&&(r=i[1],a=!0),t.__isBuiltIn=a,externalTransformMap.set(r,t)}function applyDataTransform(t,r,n){var i=normalizeToArray(t),a=i.length,o="";a||throwError(o);for(var s=0,l=a;s<l;s++){var u=i[s];r=applySingleDataTransform(u,r),s!==l-1&&(r.length=Math.max(r.length,1))}return r}function applySingleDataTransform(t,r,n,i){var a="";r.length||throwError(a),isObject$2(t)||throwError(a);var o=t.type,s=externalTransformMap.get(o);s||throwError(a);var l=map$1(r,function(c){return createExternalSource(c,s)}),u=normalizeToArray(s.transform({upstream:l[0],upstreamList:l,config:clone$2(t.config)}));return map$1(u,function(c,d){var v="";isObject$2(c)||throwError(v),c.data||throwError(v);var I=detectSourceFormat(c.data);isSupportedSourceFormat(I)||throwError(v);var $,O=r[0];if(O&&d===0&&!c.dimensions){var R=O.startIndex;R&&(c.data=O.data.slice(0,R).concat(c.data)),$={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:R,dimensions:O.metaRawOption.dimensions}}else $={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:c.dimensions};return createSource(c.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,i,a){var o=dataCtors[n||"float"];if(a){var s=t[r],l=s&&s.length;if(l!==i){for(var u=new o(i),c=0;c<l;c++)u[c]=s[c];t[r]=u}}else t[r]=new o(i)}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,i){this._provider=r,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=r.getSource(),o=this.defaultDimValueGetter=defaultDimValueGetters[a.sourceFormat];this._dimValueGetter=i||o,this._rawExtent=[],shouldRetrieveDataByName(a),this._dimensions=map$1(n,function(s){return{type:s.type,property:s.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 i=this._calcDimNameToIdx,a=this._dimensions,o=i.get(r);if(o!=null){if(a[o].type===n)return o}else o=a.length;return a[o]={type:n},i.set(r,o),this._chunks[o]=new dataCtors[n||"float"](this._rawCount),this._rawExtent[o]=getInitialExtent(),o},t.prototype.collectOrdinalMeta=function(r,n){var i=this._chunks[r],a=this._dimensions[r],o=this._rawExtent,s=a.ordinalOffset||0,l=i.length;s===0&&(o[r]=getInitialExtent());for(var u=o[r],c=s;c<l;c++){var d=i[c]=n.parseAndCollect(i[c]);isNaN(d)||(u[0]=Math.min(d,u[0]),u[1]=Math.max(d,u[1]))}a.ordinalMeta=n,a.ordinalOffset=l,a.type="ordinal"},t.prototype.getOrdinalMeta=function(r){var n=this._dimensions[r],i=n.ordinalMeta;return i},t.prototype.getDimensionProperty=function(r){var n=this._dimensions[r];return n&&n.property},t.prototype.appendData=function(r){var n=this._provider,i=this.count();n.appendData(r);var a=n.count();return n.persistent||(a+=i),i<a&&this._initDataFromProvider(i,a,!0),[i,a]},t.prototype.appendValues=function(r,n){for(var i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,l=this.count(),u=l+Math.max(r.length,n||0),c=0;c<o;c++){var d=a[c];prepareStore(i,c,d.type,u,!0)}for(var v=[],I=l;I<u;I++)for(var $=I-l,O=0;O<o;O++){var d=a[O],R=defaultDimValueGetters.arrayRows.call(this,r[$]||v,d.property,$,O);i[O][I]=R;var M=s[O];R<M[0]&&(M[0]=R),R>M[1]&&(M[1]=R)}return this._rawCount=this._count=u,{start:l,end:u}},t.prototype._initDataFromProvider=function(r,n,i){for(var a=this._provider,o=this._chunks,s=this._dimensions,l=s.length,u=this._rawExtent,c=map$1(s,function(V){return V.property}),d=0;d<l;d++){var v=s[d];u[d]||(u[d]=getInitialExtent()),prepareStore(o,d,v.type,n,i)}if(a.fillStorage)a.fillStorage(r,n,o,u);else for(var I=[],$=r;$<n;$++){I=a.getItem($,I);for(var O=0;O<l;O++){var R=o[O],M=this._dimValueGetter(I,c[O],$,O);R[$]=M;var N=u[O];M<N[0]&&(N[0]=M),M>N[1]&&(N[1]=M)}}!a.persistent&&a.clean&&a.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 i=this._chunks[r];return i?i[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(r,n){var i=[],a=[];if(n==null){n=r,r=[];for(var o=0;o<this._dimensions.length;o++)a.push(o)}else a=r;for(var o=0,s=a.length;o<s;o++)i.push(this.get(a[o],n));return i},t.prototype.getByRawIndex=function(r,n){if(!(n>=0&&n<this._rawCount))return NaN;var i=this._chunks[r];return i?i[n]:NaN},t.prototype.getSum=function(r){var n=this._chunks[r],i=0;if(n)for(var a=0,o=this.count();a<o;a++){var s=this.get(r,a);isNaN(s)||(i+=s)}return i},t.prototype.getMedian=function(r){var n=[];this.each([r],function(o){isNaN(o)||n.push(o)});var i=n.sort(function(o,s){return o-s}),a=this.count();return a===0?0:a%2===1?i[(a-1)/2]:(i[a/2]+i[a/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,i=n[r];if(i!=null&&i<this._count&&i===r)return r;for(var a=0,o=this._count-1;a<=o;){var s=(a+o)/2|0;if(n[s]<r)a=s+1;else if(n[s]>r)o=s-1;else return s}return-1},t.prototype.indicesOfNearest=function(r,n,i){var a=this._chunks,o=a[r],s=[];if(!o)return s;i==null&&(i=1/0);for(var l=1/0,u=-1,c=0,d=0,v=this.count();d<v;d++){var I=this.getRawIndex(d),$=n-o[I],O=Math.abs($);O<=i&&((O<l||O===l&&$>=0&&u<0)&&(l=O,u=$,c=0),$===u&&(s[c++]=d))}return s.length=c,s},t.prototype.getIndices=function(){var r,n=this._indices;if(n){var i=n.constructor,a=this._count;if(i===Array){r=new i(a);for(var o=0;o<a;o++)r[o]=n[o]}else r=new i(n.buffer,0,a)}else{var i=getIndicesCtor(this._rawCount);r=new i(this.count());for(var o=0;o<r.length;o++)r[o]=o}return r},t.prototype.filter=function(r,n){if(!this._count)return this;for(var i=this.clone(),a=i.count(),o=getIndicesCtor(i._rawCount),s=new o(a),l=[],u=r.length,c=0,d=r[0],v=i._chunks,I=0;I<a;I++){var $=void 0,O=i.getRawIndex(I);if(u===0)$=n(I);else if(u===1){var R=v[d][O];$=n(R,I)}else{for(var M=0;M<u;M++)l[M]=v[r[M]][O];l[M]=I,$=n.apply(null,l)}$&&(s[c++]=O)}return c<a&&(i._indices=s),i._count=c,i._extent=[],i._updateGetRawIdx(),i},t.prototype.selectRange=function(r){var n=this.clone(),i=n._count;if(!i)return this;var a=keys(r),o=a.length;if(!o)return this;var s=n.count(),l=getIndicesCtor(n._rawCount),u=new l(s),c=0,d=a[0],v=r[d][0],I=r[d][1],$=n._chunks,O=!1;if(!n._indices){var R=0;if(o===1){for(var M=$[a[0]],N=0;N<i;N++){var V=M[N];(V>=v&&V<=I||isNaN(V))&&(u[c++]=R),R++}O=!0}else if(o===2){for(var M=$[a[0]],G=$[a[1]],Y=r[a[1]][0],X=r[a[1]][1],N=0;N<i;N++){var V=M[N],q=G[N];(V>=v&&V<=I||isNaN(V))&&(q>=Y&&q<=X||isNaN(q))&&(u[c++]=R),R++}O=!0}}if(!O)if(o===1)for(var N=0;N<s;N++){var Z=n.getRawIndex(N),V=$[a[0]][Z];(V>=v&&V<=I||isNaN(V))&&(u[c++]=Z)}else for(var N=0;N<s;N++){for(var ee=!0,Z=n.getRawIndex(N),ne=0;ne<o;ne++){var J=a[ne],V=$[J][Z];(V<r[J][0]||V>r[J][1])&&(ee=!1)}ee&&(u[c++]=n.getRawIndex(N))}return c<s&&(n._indices=u),n._count=c,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(r,n){var i=this.clone(r);return this._updateDims(i,r,n),i},t.prototype.modify=function(r,n){this._updateDims(this,r,n)},t.prototype._updateDims=function(r,n,i){for(var a=r._chunks,o=[],s=n.length,l=r.count(),u=[],c=r._rawExtent,d=0;d<n.length;d++)c[n[d]]=getInitialExtent();for(var v=0;v<l;v++){for(var I=r.getRawIndex(v),$=0;$<s;$++)u[$]=a[n[$]][I];u[s]=v;var O=i&&i.apply(null,u);if(O!=null){typeof O!="object"&&(o[0]=O,O=o);for(var d=0;d<O.length;d++){var R=n[d],M=O[d],N=c[R],V=a[R];V&&(V[I]=M),M<N[0]&&(N[0]=M),M>N[1]&&(N[1]=M)}}}},t.prototype.lttbDownSample=function(r,n){var i=this.clone([r],!0),a=i._chunks,o=a[r],s=this.count(),l=0,u=Math.floor(1/n),c=this.getRawIndex(0),d,v,I,$=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(s/u)+2)*2,s));$[l++]=c;for(var O=1;O<s-1;O+=u){for(var R=Math.min(O+u,s-1),M=Math.min(O+u*2,s),N=(M+R)/2,V=0,G=R;G<M;G++){var Y=this.getRawIndex(G),X=o[Y];isNaN(X)||(V+=X)}V/=M-R;var q=O,Z=Math.min(O+u,s),ee=O-1,ne=o[c];d=-1,I=q;for(var J=-1,te=0,G=q;G<Z;G++){var Y=this.getRawIndex(G),X=o[Y];if(isNaN(X)){te++,J<0&&(J=Y);continue}v=Math.abs((ee-N)*(X-ne)-(ee-G)*(V-ne)),v>d&&(d=v,I=Y)}te>0&&te<Z-q&&($[l++]=Math.min(J,I),I=Math.max(J,I)),$[l++]=I,c=I}return $[l++]=this.getRawIndex(s-1),i._count=l,i._indices=$,i.getRawIndex=this._getRawIdx,i},t.prototype.minmaxDownSample=function(r,n){for(var i=this.clone([r],!0),a=i._chunks,o=Math.floor(1/n),s=a[r],l=this.count(),u=new(getIndicesCtor(this._rawCount))(Math.ceil(l/o)*2),c=0,d=0;d<l;d+=o){var v=d,I=s[this.getRawIndex(v)],$=d,O=s[this.getRawIndex($)],R=o;d+o>l&&(R=l-d);for(var M=0;M<R;M++){var N=this.getRawIndex(d+M),V=s[N];V<I&&(I=V,v=d+M),V>O&&(O=V,$=d+M)}var G=this.getRawIndex(v),Y=this.getRawIndex($);v<$?(u[c++]=G,u[c++]=Y):(u[c++]=Y,u[c++]=G)}return i._count=c,i._indices=u,i._updateGetRawIdx(),i},t.prototype.downSample=function(r,n,i,a){for(var o=this.clone([r],!0),s=o._chunks,l=[],u=Math.floor(1/n),c=s[r],d=this.count(),v=o._rawExtent[r]=getInitialExtent(),I=new(getIndicesCtor(this._rawCount))(Math.ceil(d/u)),$=0,O=0;O<d;O+=u){u>d-O&&(u=d-O,l.length=u);for(var R=0;R<u;R++){var M=this.getRawIndex(O+R);l[R]=c[M]}var N=i(l),V=this.getRawIndex(Math.min(O+a(l,N)||0,d-1));c[V]=N,N<v[0]&&(v[0]=N),N>v[1]&&(v[1]=N),I[$++]=V}return o._count=$,o._indices=I,o._updateGetRawIdx(),o},t.prototype.each=function(r,n){if(!!this._count)for(var i=r.length,a=this._chunks,o=0,s=this.count();o<s;o++){var l=this.getRawIndex(o);switch(i){case 0:n(o);break;case 1:n(a[r[0]][l],o);break;case 2:n(a[r[0]][l],a[r[1]][l],o);break;default:for(var u=0,c=[];u<i;u++)c[u]=a[r[u]][l];c[u]=o,n.apply(null,c)}}},t.prototype.getDataExtent=function(r){var n=this._chunks[r],i=getInitialExtent();if(!n)return i;var a=this.count(),o=!this._indices,s;if(o)return this._rawExtent[r].slice();if(s=this._extent[r],s)return s.slice();s=i;for(var l=s[0],u=s[1],c=0;c<a;c++){var d=this.getRawIndex(c),v=n[d];v<l&&(l=v),v>u&&(u=v)}return s=[l,u],this._extent[r]=s,s},t.prototype.getRawDataItem=function(r){var n=this.getRawIndex(r);if(this._provider.persistent)return this._provider.getItem(n);for(var i=[],a=this._chunks,o=0;o<a.length;o++)i.push(a[o][n]);return i},t.prototype.clone=function(r,n){var i=new t,a=this._chunks,o=r&&reduce(r,function(l,u){return l[u]=!0,l},{});if(o)for(var s=0;s<a.length;s++)i._chunks[s]=o[s]?cloneChunk(a[s]):a[s];else i._chunks=a;return this._copyCommonProps(i),n||(i._indices=this._cloneIndices()),i._updateGetRawIdx(),i},t.prototype._copyCommonProps=function(r){r._count=this._count,r._rawCount=this._rawCount,r._provider=this._provider,r._dimensions=this._dimensions,r._extent=clone$2(this._extent),r._rawExtent=clone$2(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var r=this._indices.constructor,n=void 0;if(r===Array){var i=this._indices.length;n=new r(i);for(var a=0;a<i;a++)n[a]=this._indices[a]}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,i,a,o){return parseDataValue(n[o],this._dimensions[o])}defaultDimValueGetters={arrayRows:r,objectRows:function(n,i,a,o){return parseDataValue(n[i],this._dimensions[o])},keyedColumns:r,original:function(n,i,a,o){var s=n&&(n.value==null?n:n.value);return parseDataValue(s instanceof Array?s[o]:s,this._dimensions[o])},typedArray:function(n,i,a,o){return n[o]}}}(),t}(),DataStore$1=DataStore,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(),i=!!n.length,a,o;if(isSeries(r)){var s=r,l=void 0,u=void 0,c=void 0;if(i){var d=n[0];d.prepareSource(),c=d.getSource(),l=c.data,u=c.sourceFormat,o=[d._getVersionSign()]}else l=s.get("data",!0),u=isTypedArray(l)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,o=[];var v=this._getSourceMetaRawOption()||{},I=c&&c.metaRawOption||{},$=retrieve2(v.seriesLayoutBy,I.seriesLayoutBy)||null,O=retrieve2(v.sourceHeader,I.sourceHeader),R=retrieve2(v.dimensions,I.dimensions),M=$!==I.seriesLayoutBy||!!O!=!!I.sourceHeader||R;a=M?[createSource(l,{seriesLayoutBy:$,sourceHeader:O,dimensions:R},u)]:[]}else{var N=r;if(i){var V=this._applyTransform(n);a=V.sourceList,o=V.upstreamSignList}else{var G=N.get("source",!0);a=[createSource(G,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(a,o)},t.prototype._applyTransform=function(r){var n=this._sourceHost,i=n.get("transform",!0),a=n.get("fromTransformResult",!0);if(a!=null){var o="";r.length!==1&&doThrow(o)}var s,l=[],u=[];return each$4(r,function(c){c.prepareSource();var d=c.getSource(a||0),v="";a!=null&&!d&&doThrow(v),l.push(d),u.push(c._getVersionSign())}),i?s=applyDataTransform(i,l,{datasetIndex:n.componentIndex}):a!=null&&(s=[cloneSourceShallow(l[0])]),{sourceList:s,upstreamSignList:u}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var r=this._getUpstreamSourceManagers(),n=0;n<r.length;n++){var i=r[n];if(i._isDirty()||this._upstreamSignList[n]!==i._getVersionSign())return!0}},t.prototype.getSource=function(r){r=r||0;var n=this._sourceList[r];if(!n){var i=this._getUpstreamSourceManagers();return i[0]&&i[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,i){var a=0,o=this._storeList,s=o[a];s||(s=o[a]={});var l=s[i];if(!l){var u=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&u?l=u._innerGetDataStore(r,n,i):(l=new DataStore$1,l.initData(new DefaultDataProvider(n,r.length),r)),s[i]=l}return l},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(i){return i.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var r=this._sourceHost,n,i,a;if(isSeries(r))n=r.get("seriesLayoutBy",!0),i=r.get("sourceHeader",!0),a=r.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=r;n=o.get("seriesLayoutBy",!0),i=o.get("sourceHeader",!0),a=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:i,dimensions:a}},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 getTooltipLineHeight(t){var r=t.lineHeight;return r==null?TOOLTIP_LINE_HEIGHT_CSS:"line-height:"+encodeHTML(r+"")+"px"}function getTooltipTextStyle(t,r){var n=t.color||"#6e7079",i=t.fontSize||12,a=t.fontWeight||"400",o=t.color||"#464646",s=t.fontSize||14,l=t.fontWeight||"900";return r==="html"?{nameStyle:"font-size:"+encodeHTML(i+"")+"px;color:"+encodeHTML(n)+";font-weight:"+encodeHTML(a+""),valueStyle:"font-size:"+encodeHTML(s+"")+"px;color:"+encodeHTML(o)+";font-weight:"+encodeHTML(l+"")}:{nameStyle:{fontSize:i,fill:n,fontWeight:a},valueStyle:{fontSize:s,fill:o,fontWeight:l}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
137
+ `,`
138
+
139
+ `,`
140
+
141
+
142
+ `];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,i=n>1||n>0&&!t.noHeader;return each$4(t.blocks,function(a){var o=getBlockGapLevel(a);o>=r&&(r=o+ +(i&&(!o||isSectionFragment(a)&&!a.noHeader)))}),r}return 0}function buildSection(t,r,n,i){var a=r.noHeader,o=getGap(getBlockGapLevel(r)),s=[],l=r.blocks||[];assert(!l||isArray(l)),l=l||[];var u=t.orderMode;if(r.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(c,u)){var d=new SortOrderComparator(c[u],null);l.sort(function(R,M){return d.evaluate(R.sortParam,M.sortParam)})}else u==="seriesDesc"&&l.reverse()}each$4(l,function(R,M){var N=r.valueFormatter,V=getBuilder(R)(N?extend(extend({},t),{valueFormatter:N}):t,R,M>0?o.html:0,i);V!=null&&s.push(V)});var v=t.renderMode==="richText"?s.join(o.richText):wrapBlockHTML(i,s.join(""),a?n:o.html);if(a)return v;var I=makeValueReadable(r.header,"ordinal",t.useUTC),$=getTooltipTextStyle(i,t.renderMode).nameStyle,O=getTooltipLineHeight(i);return t.renderMode==="richText"?wrapInlineNameRichText(t,I,$)+o.richText+v:wrapBlockHTML(i,'<div style="'+$+";"+O+';">'+encodeHTML(I)+"</div>"+v,n)}function buildNameValue(t,r,n,i){var a=t.renderMode,o=r.noName,s=r.noValue,l=!r.markerType,u=r.name,c=t.useUTC,d=r.valueFormatter||t.valueFormatter||function(Y){return Y=isArray(Y)?Y:[Y],map$1(Y,function(X,q){return makeValueReadable(X,isArray($)?$[q]:$,c)})};if(!(o&&s)){var v=l?"":t.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",a),I=o?"":makeValueReadable(u,"ordinal",c),$=r.valueType,O=s?[]:d(r.value,r.dataIndex),R=!l||!o,M=!l&&o,N=getTooltipTextStyle(i,a),V=N.nameStyle,G=N.valueStyle;return a==="richText"?(l?"":v)+(o?"":wrapInlineNameRichText(t,I,V))+(s?"":wrapInlineValueRichText(t,O,R,M,G)):wrapBlockHTML(i,(l?"":v)+(o?"":wrapInlineNameHTML(I,!l,V))+(s?"":wrapInlineValueHTML(O,R,M,G)),n)}}function buildTooltipMarkup(t,r,n,i,a,o){if(!!t){var s=getBuilder(t),l={useUTC:a,renderMode:n,orderMode:i,markupStyleCreator:r,valueFormatter:t.valueFormatter};return s(l,t,0,o)}}function getGap(t){return{html:HTML_GAPS[t],richText:RICH_TEXT_GAPS[t]}}function wrapBlockHTML(t,r,n){var i='<div style="clear:both"></div>',a="margin: "+n+"px 0 0",o=getTooltipLineHeight(t);return'<div style="'+a+";"+o+';">'+r+i+"</div>"}function wrapInlineNameHTML(t,r,n){var i=r?"margin-left:2px":"";return'<span style="'+n+";"+i+'">'+encodeHTML(t)+"</span>"}function wrapInlineValueHTML(t,r,n,i){var a=n?"10px":"20px",o=r?"float:right;margin-left:"+a:"";return t=isArray(t)?t:[t],'<span style="'+o+";"+i+'">'+map$1(t,function(s){return encodeHTML(s)}).join("&nbsp;&nbsp;")+"</span>"}function wrapInlineNameRichText(t,r,n){return t.markupStyleCreator.wrapRichTextStyle(r,n)}function wrapInlineValueRichText(t,r,n,i,a){var o=[a],s=i?10:20;return n&&o.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(isArray(r)?r.join(" "):r,o)}function retrieveVisualColorForTooltipMarker(t,r){var n=t.getData().getItemVisual(r,"style"),i=n[t.visualDrawType];return convertToColorString(i)}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,i){var a=i==="richText"?this._generateStyleName():null,o=getTooltipMarker({color:n,type:r,renderMode:i,markerId:a});return isString(o)?o:(this.richTextStyles[a]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(r,n){var i={};isArray(n)?each$4(n,function(o){return extend(i,o)}):extend(i,n);var a=this._generateStyleName();return this.richTextStyles[a]=i,"{"+a+"|"+r+"}"},t}();function defaultSeriesFormatTooltip(t){var r=t.series,n=t.dataIndex,i=t.multipleSeries,a=r.getData(),o=a.mapDimensionsAll("defaultedTooltip"),s=o.length,l=r.getRawValue(n),u=isArray(l),c=retrieveVisualColorForTooltipMarker(r,n),d,v,I,$;if(s>1||u&&!s){var O=formatTooltipArrayValue(l,r,n,o,c);d=O.inlineValues,v=O.inlineValueTypes,I=O.blocks,$=O.inlineValues[0]}else if(s){var R=a.getDimensionInfo(o[0]);$=d=retrieveRawValue(a,n,o[0]),v=R.type}else $=d=u?l[0]:l;var M=isNameSpecified(r),N=M&&r.name||"",V=a.getName(n),G=i?N:V;return createTooltipMarkup("section",{header:N,noHeader:i||!M,sortParam:$,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:c,name:G,noName:!trim(G),value:d,valueType:v,dataIndex:n})].concat(I||[])})}function formatTooltipArrayValue(t,r,n,i,a){var o=r.getData(),s=reduce(t,function(v,I,$){var O=o.getDimensionInfo($);return v=v||O&&O.tooltip!==!1&&O.displayName!=null},!1),l=[],u=[],c=[];i.length?each$4(i,function(v){d(retrieveRawValue(o,n,v),v)}):each$4(t,d);function d(v,I){var $=o.getDimensionInfo(I);!$||$.otherDims.tooltip===!1||(s?c.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:a,name:$.displayName,value:v,valueType:$.type})):(l.push(v),u.push($.type)))}return{inlineValues:l,inlineValueTypes:u,blocks:c}}var inner$8=makeInner();function getSelectionKey(t,r){return t.getName(r)||t.getId(r)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return r.prototype.init=function(n,i,a){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,a);var o=inner$8(this).sourceManager=new SourceManager(this);o.prepareSource();var s=this.getInitialData(n,a);wrapData(s,this),this.dataTask.context.data=s,inner$8(this).dataBeforeProcessed=s,autoSeriesName(this),this._initSelectedMapFromData(s)},r.prototype.mergeDefaultAndTheme=function(n,i){var a=fetchLayoutMode(this),o=a?getLayoutParams(n):{},s=this.subType;ComponentModel$1.hasClass(s)&&(s+="Series"),merge(n,i.getTheme().get(this.subType)),merge(n,this.getDefaultOption()),defaultEmphasis(n,"label",["show"]),this.fillDataTextStyle(n.data),a&&mergeLayoutParam(n,o,a)},r.prototype.mergeOption=function(n,i){n=merge(this.option,n,!0),this.fillDataTextStyle(n.data);var a=fetchLayoutMode(this);a&&mergeLayoutParam(this.option,n,a);var o=inner$8(this).sourceManager;o.dirty(),o.prepareSource();var s=this.getInitialData(n,i);wrapData(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,inner$8(this).dataBeforeProcessed=s,autoSeriesName(this),this._initSelectedMapFromData(s)},r.prototype.fillDataTextStyle=function(n){if(n&&!isTypedArray(n))for(var i=["show"],a=0;a<n.length;a++)n[a]&&n[a].label&&defaultEmphasis(n[a],"label",i)},r.prototype.getInitialData=function(n,i){},r.prototype.appendData=function(n){var i=this.getRawData();i.appendData(n.data)},r.prototype.getData=function(n){var i=getCurrentTask(this);if(i){var a=i.context.data;return n==null||!a.getLinkedData?a:a.getLinkedData(n)}else return inner$8(this).data},r.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},r.prototype.setData=function(n){var i=getCurrentTask(this);if(i){var a=i.context;a.outputData=n,i!==this.dataTask&&(a.data=n)}inner$8(this).data=n},r.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return createHashMap(n)},r.prototype.getSourceManager=function(){return inner$8(this).sourceManager},r.prototype.getSource=function(){return this.getSourceManager().getSource()},r.prototype.getRawData=function(){return inner$8(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,i,a){return defaultSeriesFormatTooltip({series:this,dataIndex:n,multipleSeries:i})},r.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(env$1.node&&!(n&&n.ssr))return!1;var i=this.getShallow("animation");return i&&this.getData().count()>this.getShallow("animationThreshold")&&(i=!1),!!i},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function(n,i,a){var o=this.ecModel,s=PaletteMixin.prototype.getColorFromPalette.call(this,n,i,a);return s||(s=o.getColorFromPalette(n,i,a)),s},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,i){this._innerSelect(this.getData(i),n)},r.prototype.unselect=function(n,i){var a=this.option.selectedMap;if(!!a){var o=this.option.selectedMode,s=this.getData(i);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l<n.length;l++){var u=n[l],c=getSelectionKey(s,u);a[c]=!1,this._selectedDataIndicesMap[c]=-1}}},r.prototype.toggleSelect=function(n,i){for(var a=[],o=0;o<n.length;o++)a[0]=n[o],this.isSelected(n[o],i)?this.unselect(a,i):this.select(a,i)},r.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,i=keys(n),a=[],o=0;o<i.length;o++){var s=n[i[o]];s>=0&&a.push(s)}return a},r.prototype.isSelected=function(n,i){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(i);return(a==="all"||a[getSelectionKey(o,n)])&&!o.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,i){var a,o,s=this.option,l=s.selectedMode,u=i.length;if(!(!l||!u)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){isObject$2(s.selectedMap)||(s.selectedMap={});for(var c=s.selectedMap,d=0;d<u;d++){var v=i[d],I=getSelectionKey(n,v);c[I]=!0,this._selectedDataIndicesMap[I]=n.getRawIndex(v)}}else if(l==="single"||l===!0){var $=i[u-1],I=getSelectionKey(n,$);s.selectedMap=(a={},a[I]=!0,a),this._selectedDataIndicesMap=(o={},o[I]=n.getRawIndex($),o)}}},r.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var i=[];n.hasItemOption&&n.each(function(a){var o=n.getRawDataItem(a);o&&o.selected&&i.push(a)}),i.length>0&&this._innerSelect(n,i)}},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"),i=[];return each$4(n,function(a){var o=r.getDimensionInfo(a);o.displayName&&i.push(o.displayName)}),i.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$4(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 i=n.currentTask;if(i){var a=i.agentStubMap;a&&(i=a.get(t.uid))}return i}}var SeriesModel$1=SeriesModel,ComponentView=function(){function t(){this.group=new Group$3,this.uid=getUID("viewComponent")}return t.prototype.init=function(r,n){},t.prototype.render=function(r,n,i,a){},t.prototype.dispose=function(r,n){},t.prototype.updateView=function(r,n,i,a){},t.prototype.updateLayout=function(r,n,i,a){},t.prototype.updateVisual=function(r,n,i,a){},t.prototype.toggleBlurSeries=function(r,n,i){},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),i=r.pipelineContext,a=!!n.large,o=!!n.progressiveRender,s=n.large=!!(i&&i.large),l=n.progressiveRender=!!(i&&i.progressiveRender);return(a!==s||o!==l)&&"reset"}}var inner$7=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function t(){this.group=new Group$3,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,i,a){},t.prototype.highlight=function(r,n,i,a){var o=r.getData(a&&a.dataType);!o||toggleHighlight(o,a,"emphasis")},t.prototype.downplay=function(r,n,i,a){var o=r.getData(a&&a.dataType);!o||toggleHighlight(o,a,"normal")},t.prototype.remove=function(r,n){this.group.removeAll()},t.prototype.dispose=function(r,n){},t.prototype.updateView=function(r,n,i,a){this.render(r,n,i,a)},t.prototype.updateLayout=function(r,n,i,a){this.render(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.render(r,n,i,a)},t.prototype.eachRendered=function(r){traverseElements(this.group,r)},t.markUpdateMethod=function(r,n){inner$7(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 i=queryDataIndex(t,r),a=r&&r.highlightKey!=null?getHighlightDigit(r.highlightKey):null;i!=null?each$4(normalizeToArray(i),function(o){elSetState(t.getItemGraphicEl(o),n,a)}):t.eachItemGraphicEl(function(o){elSetState(o,n,a)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(t){return renderPlanner(t.model)}function renderTaskReset(t){var r=t.model,n=t.ecModel,i=t.api,a=t.payload,o=r.pipelineContext.progressiveRender,s=t.view,l=a&&inner$7(a).updateMethod,u=o?"incrementalPrepareRender":l&&s[l]?l:"render";return u!=="render"&&s[u](r,n,i,a),progressMethodMap[u]}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 i,a=0,o=0,s=null,l,u,c,d;r=r||0;function v(){o=new Date().getTime(),s=null,t.apply(u,c||[])}var I=function(){for(var $=[],O=0;O<arguments.length;O++)$[O]=arguments[O];i=new Date().getTime(),u=this,c=$;var R=d||r,M=d||n;d=null,l=i-(M?a:o)-R,clearTimeout(s),M?s=setTimeout(v,R):l>=0?v():s=setTimeout(v,-l),a=i};return I.clear=function(){s&&(clearTimeout(s),s=null)},I.debounceNextCall=function($){d=$},I}function createOrUpdate(t,r,n,i){var a=t[r];if(!!a){var o=a[ORIGIN_METHOD]||a,s=a[THROTTLE_TYPE],l=a[RATE];if(l!==n||s!==i){if(n==null||!i)return t[r]=o;a=t[r]=throttle(o,n,i==="debounce"),a[ORIGIN_METHOD]=o,a[THROTTLE_TYPE]=i,a[RATE]=n}return a}}function clear(t,r){var n=t[r];n&&n[ORIGIN_METHOD]&&(n.clear&&n.clear(),t[r]=n[ORIGIN_METHOD])}var inner$6=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(),i=t.visualStyleAccessPath||"itemStyle",a=t.getModel(i),o=getStyleMapper(t,i),s=o(a),l=a.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var u=getDefaultColorKey(t,i),c=s[u],d=isFunction(c)?c:null,v=s.fill==="auto"||s.stroke==="auto";if(!s[u]||d||v){var I=t.getColorFromPalette(t.name,null,r.getSeriesCount());s[u]||(s[u]=I,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||isFunction(s.fill)?I:s.fill,s.stroke=s.stroke==="auto"||isFunction(s.stroke)?I:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",u),!r.isSeriesFiltered(t)&&d)return n.setVisual("colorFromPalette",!1),{dataEach:function($,O){var R=t.getDataParams(O),M=extend({},s);M[u]=d(R),$.setItemVisual(O,"style",M)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!(t.ignoreStyleOnData||r.isSeriesFiltered(t))){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",a=getStyleMapper(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var u=s.getRawDataItem(l);if(u&&u[i]){sharedModel.option=u[i];var c=a(sharedModel),d=s.ensureUniqueItemVisual(l,"style");extend(d,c),sharedModel.option.decal&&(s.setItemVisual(l,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),o in c&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(t){var r=createHashMap();t.eachSeries(function(n){var i=n.getColorBy();if(!n.isColorBySeries()){var a=n.type+"-"+i,o=r.get(a);o||(o={},r.set(a,o)),inner$6(n).scope=o}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var i=n.getRawData(),a={},o=n.getData(),s=inner$6(n).scope,l=n.visualStyleAccessPath||"itemStyle",u=getDefaultColorKey(n,l);o.each(function(c){var d=o.getRawIndex(c);a[d]=c}),i.each(function(c){var d=a[c],v=o.getItemVisual(d,"colorFromPalette");if(v){var I=o.ensureUniqueItemVisual(d,"style"),$=i.getName(c)||c+"",O=i.count();I[u]=n.getColorFromPalette($,s,O)}})}})}},PI$1=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$3,i=new Rect$1({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4});n.add(i);var a=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}),o=new Rect$1({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});n.add(o);var s;return r.showSpinner&&(s=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=a.getBoundingRect().width,u=r.showSpinner?r.spinnerRadius:0,c=(t.getWidth()-u*2-(r.showSpinner&&l?10:0)-l)/2-(r.showSpinner&&l?0:5+l/2)+(r.showSpinner?0:l/2)+(l?0:u),d=t.getHeight()/2;r.showSpinner&&s.setShape({cx:c,cy:d}),o.setShape({x:c-u,y:d-u,width:u*2,height:u*2}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Scheduler=function(){function t(r,n,i,a){this._stageTaskMap=createHashMap(),this.ecInstance=r,this.api=n,i=this._dataProcessorHandlers=i.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=i.concat(a)}return t.prototype.restoreData=function(r,n){r.restoreData(n),this._stageTaskMap.each(function(i){var a=i.overallTask;a&&a.dirty()})},t.prototype.getPerformArgs=function(r,n){if(!!r.__pipeline){var i=this._pipelineMap.get(r.__pipeline.id),a=i.context,o=!n&&i.progressiveEnabled&&(!a||a.progressiveRender)&&r.__idxInPipeline>i.blockIndex,s=o?i.step:null,l=a&&a.modDataCount,u=l!=null?Math.ceil(l/s):null;return{step:s,modBy:u,modDataCount:l}}},t.prototype.getPipeline=function(r){return this._pipelineMap.get(r)},t.prototype.updateStreamModes=function(r,n){var i=this._pipelineMap.get(r.uid),a=r.getData(),o=a.count(),s=i.progressiveEnabled&&n.incrementalPrepareRender&&o>=i.threshold,l=r.get("large")&&o>=r.get("largeThreshold"),u=r.get("progressiveChunkMode")==="mod"?o:null;r.pipelineContext=i.context={progressiveRender:s,modDataCount:u,large:l}},t.prototype.restorePipelines=function(r){var n=this,i=n._pipelineMap=createHashMap();r.eachSeries(function(a){var o=a.getProgressive(),s=a.uid;i.set(s,{id:s,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),n._pipe(a,a.dataTask)})},t.prototype.prepareStageTasks=function(){var r=this._stageTaskMap,n=this.api.getModel(),i=this.api;each$4(this._allHandlers,function(a){var o=r.get(a.uid)||r.set(a.uid,{}),s="";assert(!(a.reset&&a.overallReset),s),a.reset&&this._createSeriesStageTask(a,o,n,i),a.overallReset&&this._createOverallStageTask(a,o,n,i)},this)},t.prototype.prepareView=function(r,n,i,a){var o=r.renderTask,s=o.context;s.model=n,s.ecModel=i,s.api=a,o.__block=!r.incrementalPrepareRender,this._pipe(n,o)},t.prototype.performDataProcessorTasks=function(r,n){this._performStageTasks(this._dataProcessorHandlers,r,n,{block:!0})},t.prototype.performVisualTasks=function(r,n,i){this._performStageTasks(this._visualHandlers,r,n,i)},t.prototype._performStageTasks=function(r,n,i,a){a=a||{};var o=!1,s=this;each$4(r,function(u,c){if(!(a.visualType&&a.visualType!==u.visualType)){var d=s._stageTaskMap.get(u.uid),v=d.seriesTaskMap,I=d.overallTask;if(I){var $,O=I.agentStubMap;O.each(function(M){l(a,M)&&(M.dirty(),$=!0)}),$&&I.dirty(),s.updatePayload(I,i);var R=s.getPerformArgs(I,a.block);O.each(function(M){M.perform(R)}),I.perform(R)&&(o=!0)}else v&&v.each(function(M,N){l(a,M)&&M.dirty();var V=s.getPerformArgs(M,a.block);V.skip=!u.performRawSeries&&n.isSeriesFiltered(M.context.model),s.updatePayload(M,i),M.perform(V)&&(o=!0)})}});function l(u,c){return u.setDirty&&(!u.dirtyMap||u.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(r){var n;r.eachSeries(function(i){n=i.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,i,a){var o=this,s=n.seriesTaskMap,l=n.seriesTaskMap=createHashMap(),u=r.seriesType,c=r.getTargetSeries;r.createOnAllSeries?i.eachRawSeries(d):u?i.eachRawSeriesByType(u,d):c&&c(i,a).each(d);function d(v){var I=v.uid,$=l.set(I,s&&s.get(I)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));$.context={model:v,ecModel:i,api:a,useClearVisual:r.isVisual&&!r.isLayout,plan:r.plan,reset:r.reset,scheduler:o},o._pipe(v,$)}},t.prototype._createOverallStageTask=function(r,n,i,a){var o=this,s=n.overallTask=n.overallTask||createTask({reset:overallTaskReset});s.context={ecModel:i,api:a,overallReset:r.overallReset,scheduler:o};var l=s.agentStubMap,u=s.agentStubMap=createHashMap(),c=r.seriesType,d=r.getTargetSeries,v=!0,I=!1,$="";assert(!r.createOnAllSeries,$),c?i.eachRawSeriesByType(c,O):d?d(i,a).each(O):(v=!1,each$4(i.getSeries(),O));function O(R){var M=R.uid,N=u.set(M,l&&l.get(M)||(I=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));N.context={model:R,overallProgress:v},N.agent=s,N.__block=v,o._pipe(R,N)}I&&s.dirty()},t.prototype._pipe=function(r,n){var i=r.uid,a=this._pipelineMap.get(i);!a.head&&(a.head=n),a.tail&&a.tail.pipe(n),a.tail=n,n.__idxInPipeline=a.count++,n.__pipeline=a},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,i){return makeSeriesTaskProgress(i)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(t){return function(r,n){var i=n.data,a=n.resetDefines[t];if(a&&a.dataEach)for(var o=r.start;o<r.end;o++)a.dataEach(i,o);else a&&a.progress&&a.progress(r,i)}}function seriesTaskCount(t){return t.data.count()}function detectSeriseType(t){seriesType=null;try{t(ecModelMock,apiMock)}catch{}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},pageTextStyle:{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={},i={},a={};if(isString(r)){var o=parseClassType(r);n.mainType=o.main||null,n.subType=o.sub||null}else{var s=["Index","Name","Id"],l={name:1,dataIndex:1,dataType:1};each$4(r,function(u,c){for(var d=!1,v=0;v<s.length;v++){var I=s[v],$=c.lastIndexOf(I);if($>0&&$===c.length-I.length){var O=c.slice(0,$);O!=="data"&&(n.mainType=O,n[I.toLowerCase()]=u,d=!0)}}l.hasOwnProperty(c)&&(i[c]=u,d=!0),d||(a[c]=u)})}return{cptQuery:n,dataQuery:i,otherQuery:a}},t.prototype.filter=function(r,n){var i=this.eventInfo;if(!i)return!0;var a=i.targetEl,o=i.packedEvent,s=i.model,l=i.view;if(!s||!l)return!0;var u=n.cptQuery,c=n.dataQuery;return d(u,s,"mainType")&&d(u,s,"subType")&&d(u,s,"index","componentIndex")&&d(u,s,"name")&&d(u,s,"id")&&d(c,o,"name")&&d(c,o,"dataIndex")&&d(c,o,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(r,n.otherQuery,a,o));function d(v,I,$,O){return v[$]==null||I[O||$]===v[$]}},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 i={},a={},o=!1,s=0;s<SYMBOL_PROPS_WITH_CB.length;s++){var l=SYMBOL_PROPS_WITH_CB[s],u=t.get(l);isFunction(u)?(o=!0,a[l]=u):i[l]=u}if(i.symbol=i.symbol||t.defaultSymbol,n.setVisual(extend({legendIcon:t.legendIcon||i.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},i)),r.isSeriesFiltered(t))return;var c=keys(a);function d(v,I){for(var $=t.getRawValue(I),O=t.getDataParams(I),R=0;R<c.length;R++){var M=c[R];v.setItemVisual(I,M,a[M]($,O))}}return{dataEach:o?d:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!t.hasSymbolVisual||r.isSeriesFiltered(t))return;var n=t.getData();function i(a,o){for(var s=a.getItemModel(o),l=0;l<SYMBOL_PROPS.length;l++){var u=SYMBOL_PROPS[l],c=s.getShallow(u,!0);c!=null&&a.setItemVisual(o,u,c)}}return{dataEach:n.hasItemOption?i:null}}};function getItemVisualFromData(t,r,n){switch(n){case"color":var i=t.getItemVisual(r,"style");return i[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 handleSeriesLegacySelectEvents(t,r,n,i,a){var o=t+r;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(s){for(var l=s.seriesIndex,u=s.option.selectedMap,c=a.selected,d=0;d<c.length;d++)if(c[d].seriesIndex===l){var v=s.getData(),I=queryDataIndex(v,a.fromActionPayload);n.trigger(o,{type:o,seriesId:s.id,name:isArray(I)?v.getName(I[0]):v.getName(I),selected:isString(u)?u:extend({},u)})}})}function handleLegacySelectEvents(t,r,n){t.on("selectchanged",function(i){var a=n.getModel();i.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",r,a,i),handleSeriesLegacySelectEvents("pie","selectchanged",r,a,i)):i.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",r,a,i),handleSeriesLegacySelectEvents("pie","selected",r,a,i)):i.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",r,a,i),handleSeriesLegacySelectEvents("pie","unselected",r,a,i))})}function findEventDispatcher(t,r,n){for(var i;t&&!(r(t)&&(i=t,n));)t=t.__hostTarget||t.parent;return i}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 i=this._guard(r);return supportDefineProperty?Object.defineProperty(i,this._id,{value:n,enumerable:!1,configurable:!0}):i[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,i=r.cy,a=r.width/2,o=r.height/2;t.moveTo(n,i-o),t.lineTo(n+a,i+o),t.lineTo(n-a,i+o),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,i=r.cy,a=r.width/2,o=r.height/2;t.moveTo(n,i-o),t.lineTo(n+a,i),t.lineTo(n,i+o),t.lineTo(n-a,i),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,i=r.y,a=r.width/5*3,o=Math.max(a,r.height),s=a/2,l=s*s/(o-s),u=i-o+s+l,c=Math.asin(l/s),d=Math.cos(c)*s,v=Math.sin(c),I=Math.cos(c),$=s*.6,O=s*.7;t.moveTo(n-d,u+l),t.arc(n,u,s,Math.PI-c,Math.PI*2+c),t.bezierCurveTo(n+d-v*$,u+l+I*$,n,i-O,n,i),t.bezierCurveTo(n,i-O,n-d+v*$,u+l+I*$,n-d,u+l),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,i=r.width,a=r.x,o=r.y,s=i/3*2;t.moveTo(a,o),t.lineTo(a+s,o+n),t.lineTo(a,o+n/4*3),t.lineTo(a-s,o+n),t.lineTo(a,o),t.closePath()}}),symbolCtors={line:Line$1,rect:Rect$1,roundRect:Rect$1,square:Rect$1,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function(t,r,n,i,a){a.x1=t,a.y1=r+i/2,a.x2=t+n,a.y2=r+i/2},rect:function(t,r,n,i,a){a.x=t,a.y=r,a.width=n,a.height=i},roundRect:function(t,r,n,i,a){a.x=t,a.y=r,a.width=n,a.height=i,a.r=Math.min(n,i)/4},square:function(t,r,n,i,a){var o=Math.min(n,i);a.x=t,a.y=r,a.width=o,a.height=o},circle:function(t,r,n,i,a){a.cx=t+n/2,a.cy=r+i/2,a.r=Math.min(n,i)/2},diamond:function(t,r,n,i,a){a.cx=t+n/2,a.cy=r+i/2,a.width=n,a.height=i},pin:function(t,r,n,i,a){a.x=t+n/2,a.y=r+i/2,a.width=n,a.height=i},arrow:function(t,r,n,i,a){a.x=t+n/2,a.y=r+i/2,a.width=n,a.height=i},triangle:function(t,r,n,i,a){a.cx=t+n/2,a.cy=r+i/2,a.width=n,a.height=i}},symbolBuildProxies={};each$4(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 i=calculateTextPosition(t,r,n),a=this.shape;return a&&a.symbolType==="pin"&&r.position==="inside"&&(i.y=n.y+n.height*.4),i},buildPath:function(t,r,n){var i=r.symbolType;if(i!=="none"){var a=symbolBuildProxies[i];a||(i="rect",a=symbolBuildProxies[i]),symbolShapeMakers[i](r.x,r.y,r.width,r.height,a.shape),a.buildPath(t,a.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(t,r,n,i,a,o,s){var l=t.indexOf("empty")===0;l&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var u;return t.indexOf("image://")===0?u=makeImage(t.slice(8),new BoundingRect$1(r,n,i,a),s?"center":"cover"):t.indexOf("path://")===0?u=makePath(t.slice(7),{},new BoundingRect$1(r,n,i,a),s?"center":"cover"):u=new SymbolClz$1({shape:{symbolType:t,x:r,y:n,width:i,height:a}}),u.__isEmptyBrush=l,u.setColor=symbolPathSetColor,o&&u.setColor(o),u}function normalizeSymbolSize(t){return isArray(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function normalizeSymbolOffset(t,r){if(t!=null)return isArray(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 i=r.x==null?0:r.x,a=r.x2==null?1:r.x2,o=r.y==null?0:r.y,s=r.y2==null?0:r.y2;r.global||(i=i*n.width+n.x,a=a*n.width+n.x,o=o*n.height+n.y,s=s*n.height+n.y),i=isSafeNum(i)?i:0,a=isSafeNum(a)?a:1,o=isSafeNum(o)?o:0,s=isSafeNum(s)?s:0;var l=t.createLinearGradient(i,o,a,s);return l}function createRadialGradient(t,r,n){var i=n.width,a=n.height,o=Math.min(i,a),s=r.x==null?.5:r.x,l=r.y==null?.5:r.y,u=r.r==null?.5:r.r;r.global||(s=s*i+n.x,l=l*a+n.y,u=u*o),s=isSafeNum(s)?s:.5,l=isSafeNum(l)?l:.5,u=u>=0&&isSafeNum(u)?u:.5;var c=t.createRadialGradient(s,l,0,s,l,u);return c}function getCanvasGradient(t,r,n){for(var i=r.type==="radial"?createRadialGradient(t,r,n):createLinearGradient(t,r,n),a=r.colorStops,o=0;o<a.length;o++)i.addColorStop(a[o].offset,a[o].color);return i}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(t,r,n){var i=["width","height"][r],a=["clientWidth","clientHeight"][r],o=["paddingLeft","paddingTop"][r],s=["paddingRight","paddingBottom"][r];if(n[i]!=null&&n[i]!=="auto")return parseFloat(n[i]);var l=document.defaultView.getComputedStyle(t);return(t[a]||parseInt10(l[i])||parseInt10(t.style[i]))-(parseInt10(l[o])||0)-(parseInt10(l[s])||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(t)?t:null}function getLineDash(t){var r=t.style,n=r.lineDash&&r.lineWidth>0&&normalizeLineDash(r.lineDash,r.lineWidth),i=r.lineDashOffset;if(n){var a=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&a!==1&&(n=map$1(n,function(o){return o/a}),i/=a)}return[n,i]}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 i=createOrUpdateImage(r.image,r.__image,n);if(isImageReady(i)){var a=t.createPattern(i,r.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(r.x||0,r.y||0),o.rotateSelf(0,0,(r.rotation||0)*RADIAN_TO_DEGREE),o.scaleSelf(r.scaleX||1,r.scaleY||1),a.setTransform(o)}return a}}function brushPath(t,r,n,i){var a,o=styleHasStroke(n),s=styleHasFill(n),l=n.strokePercent,u=l<1,c=!r.path;(!r.silent||u)&&c&&r.createPathProxy();var d=r.path||pathProxyForDraw,v=r.__dirty;if(!i){var I=n.fill,$=n.stroke,O=s&&!!I.colorStops,R=o&&!!$.colorStops,M=s&&!!I.image,N=o&&!!$.image,V=void 0,G=void 0,Y=void 0,X=void 0,q=void 0;(O||R)&&(q=r.getBoundingRect()),O&&(V=v?getCanvasGradient(t,I,q):r.__canvasFillGradient,r.__canvasFillGradient=V),R&&(G=v?getCanvasGradient(t,$,q):r.__canvasStrokeGradient,r.__canvasStrokeGradient=G),M&&(Y=v||!r.__canvasFillPattern?createCanvasPattern(t,I,r):r.__canvasFillPattern,r.__canvasFillPattern=Y),N&&(X=v||!r.__canvasStrokePattern?createCanvasPattern(t,$,r):r.__canvasStrokePattern,r.__canvasStrokePattern=Y),O?t.fillStyle=V:M&&(Y?t.fillStyle=Y:s=!1),R?t.strokeStyle=G:N&&(X?t.strokeStyle=X:o=!1)}var Z=r.getGlobalScale();d.setScale(Z[0],Z[1],r.segmentIgnoreThreshold);var ee,ne;t.setLineDash&&n.lineDash&&(a=getLineDash(r),ee=a[0],ne=a[1]);var J=!0;(c||v&SHAPE_CHANGED_BIT)&&(d.setDPR(t.dpr),u?d.setContext(null):(d.setContext(t),J=!1),d.reset(),r.buildPath(d,r.shape,i),d.toStatic(),r.pathUpdated()),J&&d.rebuildPath(t,u?l:1),ee&&(t.setLineDash(ee),t.lineDashOffset=ne),i||(n.strokeFirst?(o&&doStrokePath(t,n),s&&doFillPath(t,n)):(s&&doFillPath(t,n),o&&doStrokePath(t,n))),ee&&t.setLineDash([])}function brushImage(t,r,n){var i=r.__image=createOrUpdateImage(n.image,r.__image,r,r.onload);if(!(!i||!isImageReady(i))){var a=n.x||0,o=n.y||0,s=r.getWidth(),l=r.getHeight(),u=i.width/i.height;if(s==null&&l!=null?s=l*u:l==null&&s!=null?l=s/u:s==null&&l==null&&(s=i.width,l=i.height),n.sWidth&&n.sHeight){var c=n.sx||0,d=n.sy||0;t.drawImage(i,c,d,n.sWidth,n.sHeight,a,o,s,l)}else if(n.sx&&n.sy){var c=n.sx,d=n.sy,v=s-c,I=l-d;t.drawImage(i,c,d,v,I,a,o,s,l)}else t.drawImage(i,a,o,s,l)}}function brushText(t,r,n){var i,a=n.text;if(a!=null&&(a+=""),a){t.font=n.font||DEFAULT_FONT,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,s=void 0;t.setLineDash&&n.lineDash&&(i=getLineDash(r),o=i[0],s=i[1]),o&&(t.setLineDash(o),t.lineDashOffset=s),n.strokeFirst?(styleHasStroke(n)&&t.strokeText(a,n.x,n.y),styleHasFill(n)&&t.fillText(a,n.x,n.y)):(styleHasFill(n)&&t.fillText(a,n.x,n.y),styleHasStroke(n)&&t.strokeText(a,n.x,n.y)),o&&t.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(t,r,n,i,a){var o=!1;if(!i&&(n=n||{},r===n))return!1;if(i||r.opacity!==n.opacity){flushPathDrawn(t,a),o=!0;var s=Math.max(Math.min(r.opacity,1),0);t.globalAlpha=isNaN(s)?DEFAULT_COMMON_STYLE.opacity:s}(i||r.blend!==n.blend)&&(o||(flushPathDrawn(t,a),o=!0),t.globalCompositeOperation=r.blend||DEFAULT_COMMON_STYLE.blend);for(var l=0;l<SHADOW_NUMBER_PROPS.length;l++){var u=SHADOW_NUMBER_PROPS[l];(i||r[u]!==n[u])&&(o||(flushPathDrawn(t,a),o=!0),t[u]=t.dpr*(r[u]||0))}return(i||r.shadowColor!==n.shadowColor)&&(o||(flushPathDrawn(t,a),o=!0),t.shadowColor=r.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),o}function bindPathAndTextCommonStyle(t,r,n,i,a){var o=getStyle(r,a.inHover),s=i?null:n&&getStyle(n,a.inHover)||{};if(o===s)return!1;var l=bindCommonProps(t,o,s,i,a);if((i||o.fill!==s.fill)&&(l||(flushPathDrawn(t,a),l=!0),isValidStrokeFillStyle(o.fill)&&(t.fillStyle=o.fill)),(i||o.stroke!==s.stroke)&&(l||(flushPathDrawn(t,a),l=!0),isValidStrokeFillStyle(o.stroke)&&(t.strokeStyle=o.stroke)),(i||o.opacity!==s.opacity)&&(l||(flushPathDrawn(t,a),l=!0),t.globalAlpha=o.opacity==null?1:o.opacity),r.hasStroke()){var u=o.lineWidth,c=u/(o.strokeNoScale&&r.getLineScale?r.getLineScale():1);t.lineWidth!==c&&(l||(flushPathDrawn(t,a),l=!0),t.lineWidth=c)}for(var d=0;d<STROKE_PROPS.length;d++){var v=STROKE_PROPS[d],I=v[0];(i||o[I]!==s[I])&&(l||(flushPathDrawn(t,a),l=!0),t[I]=o[I]||v[1])}return l}function bindImageStyle(t,r,n,i,a){return bindCommonProps(t,getStyle(r,a.inHover),n&&getStyle(n,a.inHover),i,a)}function setContextTransform(t,r){var n=r.transform,i=t.dpr||1;n?t.setTransform(i*n[0],i*n[1],i*n[2],i*n[3],i*n[4],i*n[5]):t.setTransform(i,0,0,i,0,0)}function updateClipStatus(t,r,n){for(var i=!1,a=0;a<t.length;a++){var o=t[a];i=i||o.isZeroArea(),setContextTransform(r,o),r.beginPath(),o.buildPath(r,o.shape),r.clip()}n.allClipped=i}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(t,r,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush(t,r,n,i){var a=r.transform;if(!r.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){r.__dirty&=~REDRAW_BIT,r.__isRendered=!1;return}var o=r.__clipPaths,s=n.prevElClipPaths,l=!1,u=!1;if((!s||isClipPathChanged(o,s))&&(s&&s.length&&(flushPathDrawn(t,n),t.restore(),u=l=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(flushPathDrawn(t,n),t.save(),updateClipStatus(o,t,n),l=!0),n.prevElClipPaths=o),n.allClipped){r.__isRendered=!1;return}r.beforeBrush&&r.beforeBrush(),r.innerBeforeBrush();var c=n.prevEl;c||(u=l=!0);var d=r instanceof Path$1&&r.autoBatch&&canPathBatch(r.style);l||isTransformChanged(a,c.transform)?(flushPathDrawn(t,n),setContextTransform(t,r)):d||flushPathDrawn(t,n);var v=getStyle(r,n.inHover);r instanceof Path$1?(n.lastDrawType!==DRAW_TYPE_PATH&&(u=!0,n.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle(t,r,c,u,n),(!d||!n.batchFill&&!n.batchStroke)&&t.beginPath(),brushPath(t,r,v,d),d&&(n.batchFill=v.fill||"",n.batchStroke=v.stroke||"")):r instanceof TSpan$1?(n.lastDrawType!==DRAW_TYPE_TEXT&&(u=!0,n.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle(t,r,c,u,n),brushText(t,r,v)):r instanceof ZRImage$1?(n.lastDrawType!==DRAW_TYPE_IMAGE&&(u=!0,n.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle(t,r,c,u,n),brushImage(t,r,v)):r.getTemporalDisplayables&&(n.lastDrawType!==DRAW_TYPE_INCREMENTAL&&(u=!0,n.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental(t,r,n)),d&&i&&flushPathDrawn(t,n),r.innerAfterBrush(),r.afterBrush&&r.afterBrush(),n.prevEl=r,r.__dirty=0,r.__isRendered=!0}function brushIncremental(t,r,n){var i=r.getDisplayables(),a=r.getTemporalDisplayables();t.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},s,l;for(s=r.getCursor(),l=i.length;s<l;s++){var u=i[s];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),brush(t,u,o,s===l-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),o.prevEl=u}for(var c=0,d=a.length;c<d;c++){var u=a[c];u.beforeBrush&&u.beforeBrush(),u.innerBeforeBrush(),brush(t,u,o,c===d-1),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),o.prevEl=u}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(),i=r.getZr(),a=i.painter.type==="svg";t.dirty&&decalMap.delete(t);var o=decalMap.get(t);if(o)return o;var s=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});s.backgroundColor==="none"&&(s.backgroundColor=null);var l={repeat:"repeat"};return u(l),l.rotation=s.rotation,l.scaleX=l.scaleY=a?1:1/n,decalMap.set(t,l),t.dirty=!1,l;function u(c){for(var d=[n],v=!0,I=0;I<decalKeys.length;++I){var $=s[decalKeys[I]];if($!=null&&!isArray($)&&!isString($)&&!isNumber($)&&typeof $!="boolean"){v=!1;break}d.push($)}var O;if(v){O=d.join(",")+(a?"-svg":"");var R=decalCache.get(O);R&&(a?c.svgElement=R:c.image=R)}var M=normalizeDashArrayX(s.dashArrayX),N=normalizeDashArrayY(s.dashArrayY),V=normalizeSymbolArray(s.symbol),G=getLineBlockLengthX(M),Y=getLineBlockLengthY(N),X=!a&&platformApi.createCanvas(),q=a&&{tag:"g",attrs:{},key:"dcl",children:[]},Z=ne(),ee;X&&(X.width=Z.width*n,X.height=Z.height*n,ee=X.getContext("2d")),J(),v&&decalCache.put(O,X||q),c.image=X,c.svgElement=q,c.svgWidth=Z.width,c.svgHeight=Z.height;function ne(){for(var te=1,Q=0,oe=G.length;Q<oe;++Q)te=getLeastCommonMultiple(te,G[Q]);for(var ue=1,Q=0,oe=V.length;Q<oe;++Q)ue=getLeastCommonMultiple(ue,V[Q].length);te*=ue;var fe=Y*G.length*V.length;return{width:Math.max(1,Math.min(te,s.maxTileWidth)),height:Math.max(1,Math.min(fe,s.maxTileHeight))}}function J(){ee&&(ee.clearRect(0,0,X.width,X.height),s.backgroundColor&&(ee.fillStyle=s.backgroundColor,ee.fillRect(0,0,X.width,X.height)));for(var te=0,Q=0;Q<N.length;++Q)te+=N[Q];if(te<=0)return;for(var oe=-Y,ue=0,fe=0,de=0;oe<Z.height;){if(ue%2===0){for(var ye=fe/2%V.length,ge=0,Te=0,Be=0;ge<Z.width*2;){for(var Ie=0,Q=0;Q<M[de].length;++Q)Ie+=M[de][Q];if(Ie<=0)break;if(Te%2===0){var me=(1-s.symbolSize)*.5,De=ge+M[de][Te]*me,Ve=oe+N[ue]*me,Ue=M[de][Te]*s.symbolSize,Ze=N[ue]*s.symbolSize,ft=Be/2%V[ye].length;at(De,Ve,Ue,Ze,V[ye][ft])}ge+=M[de][Te],++Be,++Te,Te===M[de].length&&(Te=0)}++de,de===M.length&&(de=0)}oe+=N[ue],++fe,++ue,ue===N.length&&(ue=0)}function at(dt,Le,Me,ke,se){var ae=a?1:n,ve=createSymbol(se,dt*ae,Le*ae,Me*ae,ke*ae,s.color,s.symbolKeepAspect);if(a){var Ce=i.painter.renderOneToVNode(ve);Ce&&q.children.push(Ce)}else brushSingle(ee,ve)}}}}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 i=[],n=0;n<t.length;++n)isString(t[n])?i.push([t[n]]):i.push(t[n]);return i}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,i=0;i<t.length;++i)if(!isNumber(t[i])){n=!1;break}if(n)return normalizeDashArrayX([t]);for(var a=[],i=0;i<t.length;++i)if(isNumber(t[i])){var r=Math.ceil(t[i]);a.push([r,r])}else{var r=map$1(t[i],function(l){return Math.ceil(l)});r.length%2===1?a.push(r.concat(r)):a.push(r)}return a}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(i){return Math.ceil(i)});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 i=n.getData();i.hasItemVisual()&&i.each(function(s){var l=i.getItemVisual(s,"decal");if(l){var u=i.ensureUniqueItemVisual(s,"style");u.decal=createOrUpdatePatternFromDecal(l,r)}});var a=i.getVisual("decal");if(a){var o=i.getVisual("style");o.decal=createOrUpdatePatternFromDecal(a,r)}}})}var lifecycle=new Eventful$1,lifecycle$1=lifecycle,implsStore={};function registerImpl(t,r){implsStore[t]=r}function getImpl(t){return implsStore[t]}var 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(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(r,t);function r(n,i,a){var o=t.call(this,new ECEventProcessor)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},isString(i)&&(i=themeStorage[i]),o._dom=n;var s="canvas",l="auto",u=!1;a.ssr;var c=o._zr=init$1(n,{renderer:a.renderer||s,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:retrieve2(a.useDirtyRect,u),useCoarsePointer:retrieve2(a.useCoarsePointer,l),pointerSize:a.pointerSize});o._ssr=a.ssr,o._throttledZrFlush=throttle(bind$1(c.flush,c),17),i=clone$2(i),i&&globalBackwardCompat(i,!0),o._theme=i,o._locale=createLocaleObject(a.locale||SYSTEM_LANG),o._coordSysMgr=new CoordinateSystem;var d=o._api=createExtensionAPI(o);function v(I,$){return I.__prio-$.__prio}return sort(visualFuncs,v),sort(dataProcessorFuncs,v),o._scheduler=new Scheduler$1(o,d,dataProcessorFuncs,visualFuncs),o._messageCenter=new MessageCenter,o._initEvents(),o.resize=bind$1(o.resize,o),c.animation.on("frame",o._onframe,o),bindRenderedEvent(c,o),bindMouseEvent(c,o),setAsPrimitive(o),o}return r.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var n=this._scheduler;if(this[PENDING_UPDATE]){var i=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch(u){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,u}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,i),triggerUpdatedEvent.call(this,i)}else if(n.unfinished){var a=TEST_FRAME_REMAIN_TIME,o=this._model,s=this._api;n.unfinished=!1;do{var l=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),updateStreamModes(this,o),n.performVisualTasks(o),renderSeries(this,this._model,s,"remain",{}),a-=+new Date-l}while(a>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,i,a){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var o,s,l;if(isObject$2(i)&&(a=i.lazyUpdate,o=i.silent,s=i.replaceMerge,l=i.transition,i=i.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||i){var u=new OptionManager$1(this._api),c=this._theme,d=this._model=new GlobalModel$1;d.scheduler=this._scheduler,d.ssr=this._ssr,d.init(null,null,null,c,this._locale,u)}this._model.setOption(n,{replaceMerge:s},optionPreprocessorFuncs);var v={seriesTransition:l,optionChanged:!0};if(a)this[PENDING_UPDATE]={silent:o,updateParams:v},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare(this),updateMethods.update.call(this,null,v)}catch(I){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,I}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,o),triggerUpdatedEvent.call(this,o)}}},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 i=this._zr.painter;return i.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},r.prototype.renderToSVGString=function(n){n=n||{};var i=this._zr.painter;return i.renderToString({useViewBox:n.useViewBox})},r.prototype.getSvgDataURL=function(){if(!!env$1.svgSupported){var n=this._zr,i=n.storage.getDisplayList();return each$4(i,function(a){a.stopAnimation(null,!0)}),n.painter.toDataURL()}},r.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var i=n.excludeComponents,a=this._model,o=[],s=this;each$4(i,function(u){a.eachComponent({mainType:u},function(c){var d=s._componentsMap[c.__viewId];d.group.ignore||(o.push(d),d.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return each$4(o,function(u){u.group.ignore=!1}),l},r.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var i=n.type==="svg",a=this.group,o=Math.min,s=Math.max,l=1/0;if(connectedGroups[a]){var u=l,c=l,d=-l,v=-l,I=[],$=n&&n.pixelRatio||this.getDevicePixelRatio();each$4(instances,function(G,Y){if(G.group===a){var X=i?G.getZr().painter.getSvgDom().innerHTML:G.renderToCanvas(clone$2(n)),q=G.getDom().getBoundingClientRect();u=o(q.left,u),c=o(q.top,c),d=s(q.right,d),v=s(q.bottom,v),I.push({dom:X,left:q.left,top:q.top})}}),u*=$,c*=$,d*=$,v*=$;var O=d-u,R=v-c,M=platformApi.createCanvas(),N=init$1(M,{renderer:i?"svg":"canvas"});if(N.resize({width:O,height:R}),i){var V="";return each$4(I,function(G){var Y=G.left-u,X=G.top-c;V+='<g transform="translate('+Y+","+X+')">'+G.dom+"</g>"}),N.painter.getSvgRoot().innerHTML=V,n.connectedBackgroundColor&&N.painter.setBackgroundColor(n.connectedBackgroundColor),N.refreshImmediately(),N.painter.toDataURL()}else return n.connectedBackgroundColor&&N.add(new Rect$1({shape:{x:0,y:0,width:O,height:R},style:{fill:n.connectedBackgroundColor}})),each$4(I,function(G){var Y=new ZRImage$1({style:{x:G.left*$-u,y:G.top*$-c,image:G.dom}});N.add(Y)}),N.refreshImmediately(),M.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},r.prototype.convertToPixel=function(n,i){return doConvertPixel(this,"convertToPixel",n,i)},r.prototype.convertFromPixel=function(n,i){return doConvertPixel(this,"convertFromPixel",n,i)},r.prototype.containPixel=function(n,i){if(this._disposed){this.id;return}var a=this._model,o,s=parseFinder(a,n);return each$4(s,function(l,u){u.indexOf("Models")>=0&&each$4(l,function(c){var d=c.coordinateSystem;if(d&&d.containPoint)o=o||!!d.containPoint(i);else if(u==="seriesModels"){var v=this._chartsMap[c.__viewId];v&&v.containPoint&&(o=o||v.containPoint(i,c))}},this)},this),!!o},r.prototype.getVisual=function(n,i){var a=this._model,o=parseFinder(a,n,{defaultMainType:"series"}),s=o.seriesModel,l=s.getData(),u=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?l.indexOfRawIndex(o.dataIndex):null;return u!=null?getItemVisualFromData(l,u,i):getVisualFromData(l,i)},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$4(MOUSE_EVENT_NAMES,function(i){var a=function(o){var s=n.getModel(),l=o.target,u,c=i==="globalout";if(c?u={}:l&&findEventDispatcher(l,function(O){var R=getECData(O);if(R&&R.dataIndex!=null){var M=R.dataModel||s.getSeriesByIndex(R.seriesIndex);return u=M&&M.getDataParams(R.dataIndex,R.dataType,l)||{},!0}else if(R.eventData)return u=extend({},R.eventData),!0},!0),u){var d=u.componentType,v=u.componentIndex;(d==="markLine"||d==="markPoint"||d==="markArea")&&(d="series",v=u.seriesIndex);var I=d&&v!=null&&s.getComponent(d,v),$=I&&n[I.mainType==="series"?"_chartsMap":"_componentsMap"][I.__viewId];u.event=o,u.type=i,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:I,view:$},n.trigger(i,u)}};a.zrEventfulCallAtLast=!0,n._zr.on(i,a,n)}),each$4(eventActionMap,function(i,a){n._messageCenter.on(a,function(o){this.trigger(a,o)},n)}),each$4(["selectchanged"],function(i){n._messageCenter.on(i,function(a){this.trigger(i,a)},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 i=this,a=i._api,o=i._model;each$4(i._componentsViews,function(s){s.dispose(o,a)}),each$4(i._chartsViews,function(s){s.dispose(o,a)}),i._zr.dispose(),i._dom=i._model=i._chartsMap=i._componentsMap=i._chartsViews=i._componentsViews=i._scheduler=i._api=i._zr=i._throttledZrFlush=i._theme=i._coordSysMgr=i._messageCenter=null,delete instances[i.id]},r.prototype.resize=function(n){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(n);var i=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!i){var a=i.resetOption("media"),o=n&&n.silent;this[PENDING_UPDATE]&&(o==null&&(o=this[PENDING_UPDATE].silent),a=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{a&&prepare(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},n&&n.animation)})}catch(s){throw this[IN_MAIN_PROCESS_KEY]=!1,s}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,o),triggerUpdatedEvent.call(this,o)}}},r.prototype.showLoading=function(n,i){if(this._disposed){this.id;return}if(isObject$2(n)&&(i=n,n=""),n=n||"default",this.hideLoading(),!!loadingEffects[n]){var a=loadingEffects[n](this._api,i),o=this._zr;this._loadingFX=a,o.add(a)}},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 i=extend({},n);return i.type=eventActionMap[n.type],i},r.prototype.dispatchAction=function(n,i){if(this._disposed){this.id;return}if(isObject$2(i)||(i={silent:!!i}),!!actions[n.type]&&!!this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(n);return}var a=i.silent;doDispatchAction.call(this,n,a);var o=i.flush;o?this._zr.flush():o!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,a),triggerUpdatedEvent.call(this,a)}},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 i=n.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(i);o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},r.internalField=function(){prepare=function(v){var I=v._scheduler;I.restorePipelines(v._model),I.prepareStageTasks(),prepareView(v,!0),prepareView(v,!1),I.plan()},prepareView=function(v,I){for(var $=v._model,O=v._scheduler,R=I?v._componentsViews:v._chartsViews,M=I?v._componentsMap:v._chartsMap,N=v._zr,V=v._api,G=0;G<R.length;G++)R[G].__alive=!1;I?$.eachComponent(function(q,Z){q!=="series"&&Y(Z)}):$.eachSeries(Y);function Y(q){var Z=q.__requireNewView;q.__requireNewView=!1;var ee="_ec_"+q.id+"_"+q.type,ne=!Z&&M[ee];if(!ne){var J=parseClassType(q.type),te=I?ComponentView$1.getClass(J.main,J.sub):ChartView$1.getClass(J.sub);ne=new te,ne.init($,V),M[ee]=ne,R.push(ne),N.add(ne.group)}q.__viewId=ne.__id=ee,ne.__alive=!0,ne.__model=q,ne.group.__ecComponentInfo={mainType:q.mainType,index:q.componentIndex},!I&&O.prepareView(ne,q,$,V)}for(var G=0;G<R.length;){var X=R[G];X.__alive?G++:(!I&&X.renderTask.dispose(),N.remove(X.group),X.dispose($,V),R.splice(G,1),M[X.__id]===X&&delete M[X.__id],X.__id=X.group.__ecComponentInfo=null)}},updateDirectly=function(v,I,$,O,R){var M=v._model;if(M.setUpdatePayload($),!O){each$4([].concat(v._componentsViews).concat(v._chartsViews),X);return}var N={};N[O+"Id"]=$[O+"Id"],N[O+"Index"]=$[O+"Index"],N[O+"Name"]=$[O+"Name"];var V={mainType:O,query:N};R&&(V.subType=R);var G=$.excludeSeriesId,Y;G!=null&&(Y=createHashMap(),each$4(normalizeToArray(G),function(q){var Z=convertOptionIdName(q,null);Z!=null&&Y.set(Z,!0)})),M&&M.eachComponent(V,function(q){var Z=Y&&Y.get(q.id)!=null;if(!Z)if(isHighDownPayload($))if(q instanceof SeriesModel$1)$.type===HIGHLIGHT_ACTION_TYPE&&!$.notBlur&&!q.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload(q,$,v._api);else{var ee=findComponentHighDownDispatchers(q.mainType,q.componentIndex,$.name,v._api),ne=ee.focusSelf,J=ee.dispatchers;$.type===HIGHLIGHT_ACTION_TYPE&&ne&&!$.notBlur&&blurComponent(q.mainType,q.componentIndex,v._api),J&&each$4(J,function(te){$.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(te):leaveEmphasis(te)})}else isSelectChangePayload($)&&q instanceof SeriesModel$1&&(toggleSelectionFromPayload(q,$,v._api),updateSeriesElementSelection(q),markStatusToUpdate(v))},v),M&&M.eachComponent(V,function(q){var Z=Y&&Y.get(q.id)!=null;Z||X(v[O==="series"?"_chartsMap":"_componentsMap"][q.__viewId])},v);function X(q){q&&q.__alive&&q[I]&&q[I](q.__model,M,v._api,$)}},updateMethods={prepareAndUpdate:function(v){prepare(this),updateMethods.update.call(this,v,{optionChanged:v.newOption!=null})},update:function(v,I){var $=this._model,O=this._api,R=this._zr,M=this._coordSysMgr,N=this._scheduler;if(!!$){$.setUpdatePayload(v),N.restoreData($,v),N.performSeriesTasks($),M.create($,O),N.performDataProcessorTasks($,v),updateStreamModes(this,$),M.update($,O),n($),N.performVisualTasks($,v),render(this,$,O,v,I);var V=$.get("backgroundColor")||"transparent",G=$.get("darkMode");R.setBackgroundColor(V),G!=null&&G!=="auto"&&R.setDarkMode(G),lifecycle$1.trigger("afterupdate",$,O)}},updateTransform:function(v){var I=this,$=this._model,O=this._api;if(!!$){$.setUpdatePayload(v);var R=[];$.eachComponent(function(N,V){if(N!=="series"){var G=I.getViewOfComponentModel(V);if(G&&G.__alive)if(G.updateTransform){var Y=G.updateTransform(V,$,O,v);Y&&Y.update&&R.push(G)}else R.push(G)}});var M=createHashMap();$.eachSeries(function(N){var V=I._chartsMap[N.__viewId];if(V.updateTransform){var G=V.updateTransform(N,$,O,v);G&&G.update&&M.set(N.uid,1)}else M.set(N.uid,1)}),n($),this._scheduler.performVisualTasks($,v,{setDirty:!0,dirtyMap:M}),renderSeries(this,$,O,v,{},M),lifecycle$1.trigger("afterupdate",$,O)}},updateView:function(v){var I=this._model;!I||(I.setUpdatePayload(v),ChartView$1.markUpdateMethod(v,"updateView"),n(I),this._scheduler.performVisualTasks(I,v,{setDirty:!0}),render(this,I,this._api,v,{}),lifecycle$1.trigger("afterupdate",I,this._api))},updateVisual:function(v){var I=this,$=this._model;!$||($.setUpdatePayload(v),$.eachSeries(function(O){O.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(v,"updateVisual"),n($),this._scheduler.performVisualTasks($,v,{visualType:"visual",setDirty:!0}),$.eachComponent(function(O,R){if(O!=="series"){var M=I.getViewOfComponentModel(R);M&&M.__alive&&M.updateVisual(R,$,I._api,v)}}),$.eachSeries(function(O){var R=I._chartsMap[O.__viewId];R.updateVisual(O,$,I._api,v)}),lifecycle$1.trigger("afterupdate",$,this._api))},updateLayout:function(v){updateMethods.update.call(this,v)}},doConvertPixel=function(v,I,$,O){if(v._disposed){v.id;return}for(var R=v._model,M=v._coordSysMgr.getCoordinateSystems(),N,V=parseFinder(R,$),G=0;G<M.length;G++){var Y=M[G];if(Y[I]&&(N=Y[I](R,V,O))!=null)return N}},updateStreamModes=function(v,I){var $=v._chartsMap,O=v._scheduler;I.eachSeries(function(R){O.updateStreamModes(R,$[R.__viewId])})},doDispatchAction=function(v,I){var $=this,O=this.getModel(),R=v.type,M=v.escapeConnect,N=actions[R],V=N.actionInfo,G=(V.update||"update").split(":"),Y=G.pop(),X=G[0]!=null&&parseClassType(G[0]);this[IN_MAIN_PROCESS_KEY]=!0;var q=[v],Z=!1;v.batch&&(Z=!0,q=map$1(v.batch,function(ue){return ue=defaults(extend({},ue),v),ue.batch=null,ue}));var ee=[],ne,J=isSelectChangePayload(v),te=isHighDownPayload(v);if(te&&allLeaveBlur(this._api),each$4(q,function(ue){if(ne=N.action(ue,$._model,$._api),ne=ne||extend({},ue),ne.type=V.event||ne.type,ee.push(ne),te){var fe=preParseFinder(v),de=fe.queryOptionMap,ye=fe.mainTypeSpecified,ge=ye?de.keys()[0]:"series";updateDirectly($,Y,ue,ge),markStatusToUpdate($)}else J?(updateDirectly($,Y,ue,"series"),markStatusToUpdate($)):X&&updateDirectly($,Y,ue,X.main,X.sub)}),Y!=="none"&&!te&&!J&&!X)try{this[PENDING_UPDATE]?(prepare(this),updateMethods.update.call(this,v),this[PENDING_UPDATE]=null):updateMethods[Y].call(this,v)}catch(ue){throw this[IN_MAIN_PROCESS_KEY]=!1,ue}if(Z?ne={type:V.event||R,escapeConnect:M,batch:ee}:ne=ee[0],this[IN_MAIN_PROCESS_KEY]=!1,!I){var Q=this._messageCenter;if(Q.trigger(ne.type,ne),J){var oe={type:"selectchanged",escapeConnect:M,selected:getAllSelectedIndices(O),isFromClick:v.isFromClick||!1,fromAction:v.type,fromActionPayload:v};Q.trigger(oe.type,oe)}}},flushPendingActions=function(v){for(var I=this._pendingActions;I.length;){var $=I.shift();doDispatchAction.call(this,$,v)}},triggerUpdatedEvent=function(v){!v&&this.trigger("updated")},bindRenderedEvent=function(v,I){v.on("rendered",function($){I.trigger("rendered",$),v.animation.isFinished()&&!I[PENDING_UPDATE]&&!I._scheduler.unfinished&&!I._pendingActions.length&&I.trigger("finished")})},bindMouseEvent=function(v,I){v.on("mouseover",function($){var O=$.target,R=findEventDispatcher(O,isHighDownDispatcher);R&&(handleGlobalMouseOverForHighDown(R,$,I._api),markStatusToUpdate(I))}).on("mouseout",function($){var O=$.target,R=findEventDispatcher(O,isHighDownDispatcher);R&&(handleGlobalMouseOutForHighDown(R,$,I._api),markStatusToUpdate(I))}).on("click",function($){var O=$.target,R=findEventDispatcher(O,function(V){return getECData(V).dataIndex!=null},!0);if(R){var M=R.selected?"unselect":"select",N=getECData(R);I._api.dispatchAction({type:M,dataType:N.dataType,dataIndexInside:N.dataIndex,seriesIndex:N.seriesIndex,isFromClick:!0})}})};function n(v){v.clearColorPalette(),v.eachSeries(function(I){I.clearColorPalette()})}function i(v){var I=[],$=[],O=!1;if(v.eachComponent(function(V,G){var Y=G.get("zlevel")||0,X=G.get("z")||0,q=G.getZLevelKey();O=O||!!q,(V==="series"?$:I).push({zlevel:Y,z:X,idx:G.componentIndex,type:V,key:q})}),O){var R=I.concat($),M,N;sort(R,function(V,G){return V.zlevel===G.zlevel?V.z-G.z:V.zlevel-G.zlevel}),each$4(R,function(V){var G=v.getComponent(V.type,V.idx),Y=V.zlevel,X=V.key;M!=null&&(Y=Math.max(M,Y)),X?(Y===M&&X!==N&&Y++,N=X):N&&(Y===M&&Y++,N=""),M=Y,G.setZLevel(Y)})}}render=function(v,I,$,O,R){i(I),renderComponents(v,I,$,O,R),each$4(v._chartsViews,function(M){M.__alive=!1}),renderSeries(v,I,$,O,R),each$4(v._chartsViews,function(M){M.__alive||M.remove(I,$)})},renderComponents=function(v,I,$,O,R,M){each$4(M||v._componentsViews,function(N){var V=N.__model;c(V,N),N.render(V,I,$,O),l(V,N),d(V,N)})},renderSeries=function(v,I,$,O,R,M){var N=v._scheduler;R=extend(R||{},{updatedSeries:I.getSeries()}),lifecycle$1.trigger("series:beforeupdate",I,$,R);var V=!1;I.eachSeries(function(G){var Y=v._chartsMap[G.__viewId];Y.__alive=!0;var X=Y.renderTask;N.updatePayload(X,O),c(G,Y),M&&M.get(G.uid)&&X.dirty(),X.perform(N.getPerformArgs(X))&&(V=!0),Y.group.silent=!!G.get("silent"),s(G,Y),updateSeriesElementSelection(G)}),N.unfinished=V||N.unfinished,lifecycle$1.trigger("series:layoutlabels",I,$,R),lifecycle$1.trigger("series:transition",I,$,R),I.eachSeries(function(G){var Y=v._chartsMap[G.__viewId];l(G,Y),d(G,Y)}),o(v,I),lifecycle$1.trigger("series:afterupdate",I,$,R)},markStatusToUpdate=function(v){v[STATUS_NEEDS_UPDATE_KEY]=!0,v.getZr().wakeUp()},applyChangedStates=function(v){!v[STATUS_NEEDS_UPDATE_KEY]||(v.getZr().storage.traverse(function(I){isElementRemoved(I)||a(I)}),v[STATUS_NEEDS_UPDATE_KEY]=!1)};function a(v){for(var I=[],$=v.currentStates,O=0;O<$.length;O++){var R=$[O];R==="emphasis"||R==="blur"||R==="select"||I.push(R)}v.selected&&v.states.select&&I.push("select"),v.hoverState===HOVER_STATE_EMPHASIS&&v.states.emphasis?I.push("emphasis"):v.hoverState===HOVER_STATE_BLUR&&v.states.blur&&I.push("blur"),v.useStates(I)}function o(v,I){var $=v._zr,O=$.storage,R=0;O.traverse(function(M){M.isGroup||R++}),R>I.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&I.eachSeries(function(M){if(!M.preventUsingHoverLayer){var N=v._chartsMap[M.__viewId];N.__alive&&N.eachRendered(function(V){V.states.emphasis&&(V.states.emphasis.hoverLayer=!0)})}})}function s(v,I){var $=v.get("blendMode")||null;I.eachRendered(function(O){O.isGroup||(O.style.blend=$)})}function l(v,I){if(!v.preventAutoZ){var $=v.get("z")||0,O=v.get("zlevel")||0;I.eachRendered(function(R){return u(R,$,O,-1/0),!0})}}function u(v,I,$,O){var R=v.getTextContent(),M=v.getTextGuideLine(),N=v.isGroup;if(N)for(var V=v.childrenRef(),G=0;G<V.length;G++)O=Math.max(u(V[G],I,$,O),O);else v.z=I,v.zlevel=$,O=Math.max(v.z2,O);if(R&&(R.z=I,R.zlevel=$,isFinite(O)&&(R.z2=O+2)),M){var Y=v.textGuideLineConfig;M.z=I,M.zlevel=$,isFinite(O)&&(M.z2=O+(Y&&Y.showAbove?1:-1))}return O}function c(v,I){I.eachRendered(function($){if(!isElementRemoved($)){var O=$.getTextContent(),R=$.getTextGuideLine();$.stateTransition&&($.stateTransition=null),O&&O.stateTransition&&(O.stateTransition=null),R&&R.stateTransition&&(R.stateTransition=null),$.hasState()?($.prevStates=$.currentStates,$.clearStates()):$.prevStates&&($.prevStates=null)}})}function d(v,I){var $=v.getModel("stateAnimation"),O=v.isAnimationEnabled(),R=$.get("duration"),M=R>0?{duration:R,delay:$.get("delay"),easing:$.get("easing")}:null;I.eachRendered(function(N){if(N.states&&N.states.emphasis){if(isElementRemoved(N))return;if(N instanceof Path$1&&savePathStates(N),N.__dirty){var V=N.prevStates;V&&N.useStates(V)}if(O){N.stateTransition=M;var G=N.getTextContent(),Y=N.getTextGuideLine();G&&(G.stateTransition=M),Y&&(Y.stateTransition=M)}N.__dirty&&a(N)}})}createExtensionAPI=function(v){return new(function(I){__extends($,I);function $(){return I!==null&&I.apply(this,arguments)||this}return $.prototype.getCoordinateSystems=function(){return v._coordSysMgr.getCoordinateSystems()},$.prototype.getComponentByElement=function(O){for(;O;){var R=O.__ecComponentInfo;if(R!=null)return v._model.getComponent(R.mainType,R.index);O=O.parent}},$.prototype.enterEmphasis=function(O,R){enterEmphasis(O,R),markStatusToUpdate(v)},$.prototype.leaveEmphasis=function(O,R){leaveEmphasis(O,R),markStatusToUpdate(v)},$.prototype.enterBlur=function(O){enterBlur(O),markStatusToUpdate(v)},$.prototype.leaveBlur=function(O){leaveBlur(O),markStatusToUpdate(v)},$.prototype.enterSelect=function(O){enterSelect(O),markStatusToUpdate(v)},$.prototype.leaveSelect=function(O){leaveSelect(O),markStatusToUpdate(v)},$.prototype.getModel=function(){return v.getModel()},$.prototype.getViewOfComponentModel=function(O){return v.getViewOfComponentModel(O)},$.prototype.getViewOfSeriesModel=function(O){return v.getViewOfSeriesModel(O)},$}(ExtensionAPI$1))(v)},enableConnect=function(v){function I($,O){for(var R=0;R<$.length;R++){var M=$[R];M[CONNECT_STATUS_KEY]=O}}each$4(eventActionMap,function($,O){v._messageCenter.on(O,function(R){if(connectedGroups[v.group]&&v[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(R&&R.escapeConnect)return;var M=v.makeActionFromEvent(R),N=[];each$4(instances,function(V){V!==v&&V.group===v.group&&N.push(V)}),I(N,CONNECT_STATUS_PENDING),each$4(N,function(V){V[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&V.dispatchAction(M)}),I(N,CONNECT_STATUS_UPDATED)}})})}}(),r}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function(t,r,n){var i=this;function a(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];r&&r.apply&&r.apply(this,o),i.off(t,a)}this.on.call(this,t,a,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,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init(t,r,n){var i=!(n&&n.ssr);if(i){var a=getInstanceByDom(t);if(a)return a}var o=new ECharts(t,r,n);return o.id="ec_"+idBase++,instances[o.id]=o,i&&setAttribute(t,DOM_ATTRIBUTE_KEY,o.id),enableConnect(o),lifecycle$1.trigger("afterinit",o),o}function getInstanceByDom(t){return instances[getAttribute(t,DOM_ATTRIBUTE_KEY)]}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 i=isObject$2(t)?t.type:[t,t={event:r}][0];t.event=(t.event||i).toLowerCase(),r=t.event,!eventActionMap[r]&&(assert(ACTION_REG.test(i)&&ACTION_REG.test(r)),actions[i]||(actions[i]={action:n,actionInfo:t}),eventActionMap[r]=i)}function registerCoordinateSystem(t,r){CoordinateSystem.register(t,r)}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,i,a){if((isFunction(r)||isObject$2(r))&&(n=r,r=i),!(indexOf(registeredTasks,n)>=0)){registeredTasks.push(n);var o=Scheduler$1.wrapStageHandler(n,a);o.__prio=r,o.__raw=n,t.push(o)}}function registerLoading(t,r){loadingEffects[t]=r}function registerMap(t,r,n){var i=getImpl("registerMap");i&&i(t,r,n)}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);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);function dataIndexMapValueLength(t){return t==null?0:t.length||1}function defaultKeyGetter(t){return t}var DataDiffer=function(){function t(r,n,i,a,o,s){this._old=r,this._new=n,this._oldKeyGetter=i||defaultKeyGetter,this._newKeyGetter=a||defaultKeyGetter,this.context=o,this._diffModeMultiple=s==="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,i={},a=new Array(r.length),o=new Array(n.length);this._initIndexMap(r,null,a,"_oldKeyGetter"),this._initIndexMap(n,i,o,"_newKeyGetter");for(var s=0;s<r.length;s++){var l=a[s],u=i[l],c=dataIndexMapValueLength(u);if(c>1){var d=u.shift();u.length===1&&(i[l]=u[0]),this._update&&this._update(d,s)}else c===1?(i[l]=null,this._update&&this._update(u,s)):this._remove&&this._remove(s)}this._performRestAdd(o,i)},t.prototype._executeMultiple=function(){var r=this._old,n=this._new,i={},a={},o=[],s=[];this._initIndexMap(r,i,o,"_oldKeyGetter"),this._initIndexMap(n,a,s,"_newKeyGetter");for(var l=0;l<o.length;l++){var u=o[l],c=i[u],d=a[u],v=dataIndexMapValueLength(c),I=dataIndexMapValueLength(d);if(v>1&&I===1)this._updateManyToOne&&this._updateManyToOne(d,c),a[u]=null;else if(v===1&&I>1)this._updateOneToMany&&this._updateOneToMany(d,c),a[u]=null;else if(v===1&&I===1)this._update&&this._update(d,c),a[u]=null;else if(v>1&&I>1)this._updateManyToMany&&this._updateManyToMany(d,c),a[u]=null;else if(v>1)for(var $=0;$<v;$++)this._remove&&this._remove(c[$]);else this._remove&&this._remove(c)}this._performRestAdd(s,a)},t.prototype._performRestAdd=function(r,n){for(var i=0;i<r.length;i++){var a=r[i],o=n[a],s=dataIndexMapValueLength(o);if(s>1)for(var l=0;l<s;l++)this._add&&this._add(o[l]);else s===1&&this._add&&this._add(o);n[a]=null}},t.prototype._initIndexMap=function(r,n,i,a){for(var o=this._diffModeMultiple,s=0;s<r.length;s++){var l="_ec_"+this[a](r[s],s);if(o||(i[s]=l),!!n){var u=n[l],c=dataIndexMapValueLength(u);c===0?(n[l]=s,o&&i.push(l)):c===1?n[l]=[u,s]:u.push(s)}}},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={},i=n.encode={},a=createHashMap(),o=[],s=[],l={};each$4(t.dimensions,function(I){var $=t.getDimensionInfo(I),O=$.coordDim;if(O){var R=$.coordDimIndex;getOrCreateEncodeArr(i,O)[R]=I,$.isExtraCoord||(a.set(O,1),mayLabelDimType($.type)&&(o[0]=I),getOrCreateEncodeArr(l,O)[R]=t.getDimensionIndex($.name)),$.defaultTooltip&&s.push(I)}VISUAL_DIMENSIONS.each(function(M,N){var V=getOrCreateEncodeArr(i,N),G=$.otherDims[N];G!=null&&G!==!1&&(V[G]=$.name)})});var u=[],c={};a.each(function(I,$){var O=i[$];c[$]=O[0],u=u.concat(O)}),n.dataDimsOnCoord=u,n.dataDimIndicesOnCoord=map$1(u,function(I){return t.getDimensionInfo(I).storeDimIndex}),n.encodeFirstDimNotExtra=c;var d=i.label;d&&d.length&&(o=d.slice());var v=i.tooltip;return v&&v.length?s=v.slice():s.length||(s=o.slice()),i.defaultedLabel=o,i.defaultedTooltip=s,n.userOutput=new DimensionUserOuput(l,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$5=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),i=!shouldOmitUnusedDimensions(r),a="",o=[],s=0,l=0;s<r;s++){var u=void 0,c=void 0,d=void 0,v=this.dimensions[l];if(v&&v.storeDimIndex===s)u=n?v.name:null,c=v.type,d=v.ordinalMeta,l++;else{var I=this.getSourceDimension(s);I&&(u=n?I.name:null,c=I.type)}o.push({property:u,type:c,ordinalMeta:d}),n&&u!=null&&(!v||!v.isCalculationCoord)&&(a+=i?u.replace(/\`/g,"`1").replace(/\$/g,"`2"):u),a+="$",a+=dimTypeShort[c]||"f",d&&(a+=d.uid),a+="$"}var $=this.source,O=[$.seriesLayoutBy,$.startIndex,a].join("$$");return{dimensions:o,hash:O}},t.prototype.makeOutputDimensionNames=function(){for(var r=[],n=0,i=0;n<this._fullDimCount;n++){var a=void 0,o=this.dimensions[i];if(o&&o.storeDimIndex===n)o.isCalculationCoord||(a=o.name),i++;else{var s=this.getSourceDimension(n);s&&(a=s.name)}r.push(a)}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 i=t[n],a=isObject$2(i)?i.name:i;a!=null&&r.get(a)==null&&r.set(a,n)}return r}function ensureSourceDimNameMap(t){var r=inner$5(t);return r.dimNameMap||(r.dimNameMap=createDimNameMap(t.dimensionsDefine))}function shouldOmitUnusedDimensions(t){return t>30}var isObject=isObject$2,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","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var i,a=!1;isSeriesDataSchema(r)?(i=r.dimensions,this._dimOmitted=r.isDimensionOmitted(),this._schema=r):(a=!0,i=r),i=i||["x","y"];for(var o={},s=[],l={},u=!1,c={},d=0;d<i.length;d++){var v=i[d],I=isString(v)?new SeriesDimensionDefine$1({name:v}):v instanceof SeriesDimensionDefine$1?v:new SeriesDimensionDefine$1(v),$=I.name;I.type=I.type||"float",I.coordDim||(I.coordDim=$,I.coordDimIndex=0);var O=I.otherDims=I.otherDims||{};s.push($),o[$]=I,c[$]!=null&&(u=!0),I.createInvertedIndices&&(l[$]=[]),O.itemName===0&&(this._nameDimIdx=d),O.itemId===0&&(this._idDimIdx=d),a&&(I.storeDimIndex=d)}if(this.dimensions=s,this._dimInfos=o,this._initGetDimensionInfo(u),this.hostModel=n,this._invertedIndicesMap=l,this._dimOmitted){var R=this._dimIdxToName=createHashMap();each$4(s,function(M){R.set(o[M].storeDimIndex,M)})}}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 i=this._dimIdxToName.get(n);if(i!=null)return i;var a=this._schema.getSourceDimension(n);if(a)return a.name},t.prototype.getDimensionIndex=function(r){var n=this._recognizeDimIndex(r);if(n!=null)return n;if(r==null)return-1;var i=this._getDimInfo(r);return i?i.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(i){return n.hasOwnProperty(i)?n[i]:void 0}:function(i){return n[i]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(r,n){var i=this._dimSummary;if(n==null)return i.encodeFirstDimNotExtra[r];var a=i.encode[r];return a?a[n]:null},t.prototype.mapDimensionsAll=function(r){var n=this._dimSummary,i=n.encode[r];return(i||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(r,n,i){var a=this,o;if(r instanceof DataStore$1&&(o=r),!o){var s=this.dimensions,l=isSourceInstance(r)||isArrayLike(r)?new DefaultDataProvider(r,s.length):r;o=new DataStore$1;var u=map(s,function(c){return{type:a._dimInfos[c].type,property:c}});o.initData(l,u,i)}this._store=o,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.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 i=this._store.appendValues(r,n&&n.length),a=i.start,o=i.end,s=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var l=a;l<o;l++){var u=l-a;this._nameList[l]=n[u],s&&makeIdFromName(this,l)}},t.prototype._updateOrdinalMeta=function(){for(var r=this._store,n=this.dimensions,i=0;i<n.length;i++){var a=this._dimInfos[n[i]];a.ordinalMeta&&r.collectOrdinalMeta(a.storeDimIndex,a.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 i=this._store,a=i.getProvider();this._updateOrdinalMeta();var o=this._nameList,s=this._idList,l=a.getSource().sourceFormat,u=l===SOURCE_FORMAT_ORIGINAL;if(u&&!a.pure)for(var c=[],d=r;d<n;d++){var v=a.getItem(d,c);if(!this.hasItemOption&&isDataItemOption(v)&&(this.hasItemOption=!0),v){var I=v.name;o[d]==null&&I!=null&&(o[d]=convertOptionIdName(I,null));var $=v.id;s[d]==null&&$!=null&&(s[d]=convertOptionIdName($,null))}}if(this._shouldMakeIdFromName())for(var d=r;d<n;d++)makeIdFromName(this,d);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(r)?extend(this._calculationInfo,r):this._calculationInfo[r]=n},t.prototype.getName=function(r){var n=this.getRawIndex(r),i=this._nameList[n];return i==null&&this._nameDimIdx!=null&&(i=getIdNameFromStore(this,this._nameDimIdx,n)),i==null&&(i=""),i},t.prototype._getCategory=function(r,n){var i=this._store.get(r,n),a=this._store.getOrdinalMeta(r);return a?a.categories[i]:i},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 i=this._store,a=this._dimInfos[r];if(a)return i.get(a.storeDimIndex,n)},t.prototype.getByRawIndex=function(r,n){var i=this._store,a=this._dimInfos[r];if(a)return i.getByRawIndex(a.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 i=this,a=this._store;return isArray(r)?a.getValues(map(r,function(o){return i._getStoreDimIndex(o)}),n):a.getValues(r)},t.prototype.hasValue=function(r){for(var n=this._dimSummary.dataDimIndicesOnCoord,i=0,a=n.length;i<a;i++)if(isNaN(this._store.get(n[i],r)))return!1;return!0},t.prototype.indexOfName=function(r){for(var n=0,i=this._store.count();n<i;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 i=r&&this._invertedIndicesMap[r],a=i&&i[n];return a==null||isNaN(a)?INDEX_NOT_FOUND:a},t.prototype.indicesOfNearest=function(r,n,i){return this._store.indicesOfNearest(this._getStoreDimIndex(r),n,i)},t.prototype.each=function(r,n,i){isFunction(r)&&(i=n,n=r,r=[]);var a=i||this,o=map(normalizeDimensions(r),this._getStoreDimIndex,this);this._store.each(o,a?bind$1(n,a):n)},t.prototype.filterSelf=function(r,n,i){isFunction(r)&&(i=n,n=r,r=[]);var a=i||this,o=map(normalizeDimensions(r),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?bind$1(n,a):n),this},t.prototype.selectRange=function(r){var n=this,i={},a=keys(r);return each$4(a,function(o){var s=n._getStoreDimIndex(o);i[s]=r[o]}),this._store=this._store.selectRange(i),this},t.prototype.mapArray=function(r,n,i){isFunction(r)&&(i=n,n=r,r=[]),i=i||this;var a=[];return this.each(r,function(){a.push(n&&n.apply(this,arguments))},i),a},t.prototype.map=function(r,n,i,a){var o=i||a||this,s=map(normalizeDimensions(r),this._getStoreDimIndex,this),l=cloneListForMapAndSample(this);return l._store=this._store.map(s,o?bind$1(n,o):n),l},t.prototype.modify=function(r,n,i,a){var o=i||a||this,s=map(normalizeDimensions(r),this._getStoreDimIndex,this);this._store.modify(s,o?bind$1(n,o):n)},t.prototype.downSample=function(r,n,i,a){var o=cloneListForMapAndSample(this);return o._store=this._store.downSample(this._getStoreDimIndex(r),n,i,a),o},t.prototype.minmaxDownSample=function(r,n){var i=cloneListForMapAndSample(this);return i._store=this._store.minmaxDownSample(this._getStoreDimIndex(r),n),i},t.prototype.lttbDownSample=function(r,n){var i=cloneListForMapAndSample(this);return i._store=this._store.lttbDownSample(this._getStoreDimIndex(r),n),i},t.prototype.getRawDataItem=function(r){return this._store.getRawDataItem(r)},t.prototype.getItemModel=function(r){var n=this.hostModel,i=this.getRawDataItem(r);return new Model$1(i,n,n&&n.ecModel)},t.prototype.diff=function(r){var n=this;return new DataDiffer$1(r?r.getStore().getIndices():[],this.getStore().getIndices(),function(i){return getId(r,i)},function(i){return getId(n,i)})},t.prototype.getVisual=function(r){var n=this._visual;return n&&n[r]},t.prototype.setVisual=function(r,n){this._visual=this._visual||{},isObject(r)?extend(this._visual,r):this._visual[r]=n},t.prototype.getItemVisual=function(r,n){var i=this._itemVisuals[r],a=i&&i[n];return a==null?this.getVisual(n):a},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(r,n){var i=this._itemVisuals,a=i[r];a||(a=i[r]={});var o=a[n];return o==null&&(o=this.getVisual(n),isArray(o)?o=o.slice():isObject(o)&&(o=extend({},o)),a[n]=o),o},t.prototype.setItemVisual=function(r,n,i){var a=this._itemVisuals[r]||{};this._itemVisuals[r]=a,isObject(n)?extend(a,n):a[n]=i},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(r,n){isObject(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,i){this._itemLayouts[r]=i?extend(this._itemLayouts[r]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(r,n){var i=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(i,this.dataType,r,n),this._graphicEls[r]=n},t.prototype.getItemGraphicEl=function(r){return this._graphicEls[r]},t.prototype.eachItemGraphicEl=function(r,n){each$4(this._graphicEls,function(i,a){i&&r&&r.call(n,i,a)})},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 i=this[r];!isFunction(i)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(r),this[r]=function(){var a=i.apply(this,arguments);return n.apply(this,[a].concat(slice(arguments)))})},t.internalField=function(){prepareInvertedIndex=function(r){var n=r._invertedIndicesMap;each$4(n,function(i,a){var o=r._dimInfos[a],s=o.ordinalMeta,l=r._store;if(s){i=n[a]=new CtorInt32Array(s.categories.length);for(var u=0;u<i.length;u++)i[u]=INDEX_NOT_FOUND;for(var u=0;u<l.count();u++)i[l.get(o.storeDimIndex,u)]=u}})},getIdNameFromStore=function(r,n,i){return convertOptionIdName(r._getCategory(n,i),null)},getId=function(r,n){var i=r._idList[n];return i==null&&r._idDimIdx!=null&&(i=getIdNameFromStore(r,r._idDimIdx,n)),i==null&&(i=ID_PREFIX+n),i},normalizeDimensions=function(r){return isArray(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$4(TRANSFERABLE_PROPERTIES.concat(n.__wrappedMethods||[]),function(i){n.hasOwnProperty(i)&&(r[i]=n[i])}),r.__wrappedMethods=n.__wrappedMethods,each$4(CLONE_PROPERTIES,function(i){r[i]=clone$2(n[i])}),r._calculationInfo=extend({},n._calculationInfo)},makeIdFromName=function(r,n){var i=r._nameList,a=r._idList,o=r._nameDimIdx,s=r._idDimIdx,l=i[n],u=a[n];if(l==null&&o!=null&&(i[n]=l=getIdNameFromStore(r,o,n)),u==null&&s!=null&&(a[n]=u=getIdNameFromStore(r,s,n)),u==null&&l!=null){var c=r._nameRepeatCount,d=c[l]=(c[l]||0)+1;u=l,d>1&&(u+="__ec__"+d),a[n]=u}}}(),t}(),SeriesData$1=SeriesData;function prepareSeriesDataSchema(t,r){isSourceInstance(t)||(t=createSourceFromSeriesDataOption(t)),r=r||{};var n=r.coordDimensions||[],i=r.dimensionsDefine||t.dimensionsDefine||[],a=createHashMap(),o=[],s=getDimCount(t,n,i,r.dimensionsCount),l=r.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(s),u=i===t.dimensionsDefine,c=u?ensureSourceDimNameMap(t):createDimNameMap(i),d=r.encodeDefine;!d&&r.encodeDefaulter&&(d=r.encodeDefaulter(t,s));for(var v=createHashMap(d),I=new CtorInt32Array$1(s),$=0;$<I.length;$++)I[$]=-1;function O(ne){var J=I[ne];if(J<0){var te=i[ne],Q=isObject$2(te)?te:{name:te},oe=new SeriesDimensionDefine$1,ue=Q.name;ue!=null&&c.get(ue)!=null&&(oe.name=oe.displayName=ue),Q.type!=null&&(oe.type=Q.type),Q.displayName!=null&&(oe.displayName=Q.displayName);var fe=o.length;return I[ne]=fe,oe.storeDimIndex=ne,o.push(oe),oe}return o[J]}if(!l)for(var $=0;$<s;$++)O($);v.each(function(ne,J){var te=normalizeToArray(ne).slice();if(te.length===1&&!isString(te[0])&&te[0]<0){v.set(J,!1);return}var Q=v.set(J,[]);each$4(te,function(oe,ue){var fe=isString(oe)?c.get(oe):oe;fe!=null&&fe<s&&(Q[ue]=fe,M(O(fe),J,ue))})});var R=0;each$4(n,function(ne){var J,te,Q,oe;if(isString(ne))J=ne,oe={};else{oe=ne,J=oe.name;var ue=oe.ordinalMeta;oe.ordinalMeta=null,oe=extend({},oe),oe.ordinalMeta=ue,te=oe.dimsDef,Q=oe.otherDims,oe.name=oe.coordDim=oe.coordDimIndex=oe.dimsDef=oe.otherDims=null}var fe=v.get(J);if(fe!==!1){if(fe=normalizeToArray(fe),!fe.length)for(var de=0;de<(te&&te.length||1);de++){for(;R<s&&O(R).coordDim!=null;)R++;R<s&&fe.push(R++)}each$4(fe,function(ye,ge){var Te=O(ye);if(u&&oe.type!=null&&(Te.type=oe.type),M(defaults(Te,oe),J,ge),Te.name==null&&te){var Be=te[ge];!isObject$2(Be)&&(Be={name:Be}),Te.name=Te.displayName=Be.name,Te.defaultTooltip=Be.defaultTooltip}Q&&defaults(Te.otherDims,Q)})}});function M(ne,J,te){VISUAL_DIMENSIONS.get(J)!=null?ne.otherDims[J]=te:(ne.coordDim=J,ne.coordDimIndex=te,a.set(J,!0))}var N=r.generateCoord,V=r.generateCoordCount,G=V!=null;V=N?V||1:0;var Y=N||"value";function X(ne){ne.name==null&&(ne.name=ne.coordDim)}if(l)each$4(o,function(ne){X(ne)}),o.sort(function(ne,J){return ne.storeDimIndex-J.storeDimIndex});else for(var q=0;q<s;q++){var Z=O(q),ee=Z.coordDim;ee==null&&(Z.coordDim=genCoordDimName(Y,a,G),Z.coordDimIndex=0,(!N||V<=0)&&(Z.isExtraCoord=!0),V--),X(Z),Z.type==null&&(guessOrdinal(t,q)===BE_ORDINAL.Must||Z.isExtraCoord&&(Z.otherDims.itemName!=null||Z.otherDims.seriesName!=null))&&(Z.type="ordinal")}return removeDuplication(o),new SeriesDataSchema({source:t,dimensions:o,fullDimensionCount:s,dimensionOmitted:l})}function removeDuplication(t){for(var r=createHashMap(),n=0;n<t.length;n++){var i=t[n],a=i.name,o=r.get(a)||0;o>0&&(i.name=a+(o-1)),o++,r.set(a,o)}}function getDimCount(t,r,n,i){var a=Math.max(t.dimensionsDetectedCount||1,r.length,n.length,i||0);return each$4(r,function(o){var s;isObject$2(o)&&(s=o.dimsDef)&&(a=Math.max(a,s.length))}),a}function genCoordDimName(t,r,n){if(n||r.hasKey(t)){for(var i=0;r.hasKey(t+i);)i++;t+=i}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),i=fetchers[r];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}var fetchers={cartesian2d:function(t,r,n,i){var a=t.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],o=t.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["x","y"],n.set("x",a),n.set("y",o),isCategory(a)&&(i.set("x",a),r.firstCategoryDimIndex=0),isCategory(o)&&(i.set("y",o),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},singleAxis:function(t,r,n,i){var a=t.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["single"],n.set("single",a),isCategory(a)&&(i.set("single",a),r.firstCategoryDimIndex=0)},polar:function(t,r,n,i){var a=t.getReferringComponents("polar",SINGLE_REFERRING).models[0],o=a.findAxisModel("radiusAxis"),s=a.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",s),isCategory(o)&&(i.set("radius",o),r.firstCategoryDimIndex=0),isCategory(s)&&(i.set("angle",s),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},geo:function(t,r,n,i){r.coordSysDims=["lng","lat"]},parallel:function(t,r,n,i){var a=t.ecModel,o=a.getComponent("parallel",t.get("parallelIndex")),s=r.coordSysDims=o.dimensions.slice();each$4(o.parallelAxisIndex,function(l,u){var c=a.getComponent("parallelAxis",l),d=s[u];n.set(d,c),isCategory(c)&&(i.set(d,c),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=u))})}};function isCategory(t){return t.get("type")==="category"}function enableDataStack(t,r,n){n=n||{};var i=n.byIndex,a=n.stackedCoordDimension,o,s,l;isLegacyDimensionsInput(r)?o=r:(s=r.schema,o=s.dimensions,l=r.store);var u=!!(t&&t.get("stack")),c,d,v,I;if(each$4(o,function(V,G){isString(V)&&(o[G]=V={name:V}),u&&!V.isExtraCoord&&(!i&&!c&&V.ordinalMeta&&(c=V),!d&&V.type!=="ordinal"&&V.type!=="time"&&(!a||a===V.coordDim)&&(d=V))}),d&&!i&&!c&&(i=!0),d){v="__\0ecstackresult_"+t.id,I="__\0ecstackedover_"+t.id,c&&(c.createInvertedIndices=!0);var $=d.coordDim,O=d.type,R=0;each$4(o,function(V){V.coordDim===$&&R++});var M={name:v,coordDim:$,coordDimIndex:R,type:O,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},N={name:I,coordDim:I,coordDimIndex:R+1,type:O,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};s?(l&&(M.storeDimIndex=l.ensureCalculationDimension(I,O),N.storeDimIndex=l.ensureCalculationDimension(v,O)),s.appendCalculationDimension(M),s.appendCalculationDimension(N)):(o.push(M),o.push(N))}return{stackedDimension:d&&d.name,stackedByDimension:c&&c.name,isStackedByIndex:i,stackedOverDimension:I,stackResultDimension:v}}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"),i=CoordinateSystem.get(n),a;return r&&r.coordSysDims&&(a=map$1(r.coordSysDims,function(o){var s={name:o},l=r.axisMap.get(o);if(l){var u=l.get("type");s.type=getDimensionTypeByAxis(u)}return s})),a||(a=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),a}function injectOrdinalMeta(t,r,n){var i,a;return n&&each$4(t,function(o,s){var l=o.coordDim,u=n.categoryAxisMap.get(l);u&&(i==null&&(i=s),o.ordinalMeta=u.getOrdinalMeta(),r&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&i!=null&&(t[i].otherDims.itemName=0),i}function createSeriesData(t,r,n){n=n||{};var i=r.getSourceManager(),a,o=!1;t?(o=!0,a=createSourceFromSeriesDataOption(t)):(a=i.getSource(),o=a.sourceFormat===SOURCE_FORMAT_ORIGINAL);var s=getCoordSysInfoBySeries(r),l=getCoordSysDimDefs(r,s),u=n.useEncodeDefaulter,c=isFunction(u)?u:u?curry$1(makeSeriesEncodeForAxisCoordSys,l,r):null,d={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:r.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},v=prepareSeriesDataSchema(a,d),I=injectOrdinalMeta(v.dimensions,n.createInvertedIndices,s),$=o?null:i.getSharedDataStore(v),O=enableDataStack(r,{schema:v,store:$}),R=new SeriesData$1(v,r);R.setCalculationInfo(O);var M=I!=null&&isNeedCompleteOrdinalData(a)?function(N,V,G,Y){return Y===I?G:this.defaultDimValueGetter(N,V,G,Y)}:null;return R.hasItemOption=!1,R.initData(o?a:$,null,M),R}function isNeedCompleteOrdinalData(t){if(t.sourceFormat===SOURCE_FORMAT_ORIGINAL){var r=firstDataNotNull(t.data||[]);return!isArray(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 i=this._extent;isNaN(r)||(i[0]=r),isNaN(n)||(i[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,i=n.data,a=i&&map$1(i,getName);return new t({categories:a,needCollect:!a,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(r){return this._getOrCreateMap().get(r)},t.prototype.parseAndCollect=function(r){var n,i=this._needCollect;if(!isString(r)&&!i)return r;if(i&&!this._deduplication)return n=this.categories.length,this.categories[n]=r,n;var a=this._getOrCreateMap();return n=a.get(r),n==null&&(i?(n=this.categories.length,this.categories[n]=r,a.set(r,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},t}();function getName(t){return isObject$2(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,i){var a={},o=t[1]-t[0],s=a.interval=nice(o/r,!0);n!=null&&s<n&&(s=a.interval=n),i!=null&&s>i&&(s=a.interval=i);var l=a.intervalPrecision=getIntervalPrecision(s),u=a.niceTickExtent=[round$1(Math.ceil(t[0]/s)*s,l),round$1(Math.floor(t[1]/s)*s,l)];return fixExtent(u,t),a}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$1(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(t,r){return t>=r[0]&&t<=r[1]}function normalize(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(r,t);function r(n){var i=t.call(this,n)||this;i.type="ordinal";var a=i.getSetting("ordinalMeta");return a||(a=new OrdinalMeta$1({})),isArray(a)&&(a=new OrdinalMeta$1({categories:map$1(a,function(o){return isObject$2(o)?o.value:o})})),i._ordinalMeta=a,i._extent=i.getSetting("extent")||[0,a.categories.length-1],i}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(n,this._extent)&&this._ordinalMeta.categories[n]!=null},r.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),normalize(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=[],i=this._extent,a=i[0];a<=i[1];)n.push({value:a}),a++;return n},r.prototype.getMinorTicks=function(n){},r.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var i=n.ordinalNumbers,a=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,u=Math.min(l,i.length);s<u;++s){var c=i[s];a[s]=c,o[c]=s}for(var d=0;s<l;++s){for(;o[d]!=null;)d++;a.push(d),o[d]=s}},r.prototype._getTickNumber=function(n){var i=this._ticksByOrdinalNumber;return i&&n>=0&&n<i.length?i[n]:n},r.prototype.getRawOrdinalNumber=function(n){var i=this._ordinalNumbersByTick;return i&&n>=0&&n<i.length?i[n]:n},r.prototype.getLabel=function(n){if(!this.isBlank()){var i=this.getRawOrdinalNumber(n.value),a=this._ordinalMeta.categories[i];return a==null?"":a+""}},r.prototype.count=function(){return this._extent[1]-this._extent[0]+1},r.prototype.unionExtentFromData=function(n,i){this.unionExtent(n.getApproximateExtent(i))},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$1,IntervalScale=function(t){__extends(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(n,this._extent)},r.prototype.normalize=function(n){return normalize(n,this._extent)},r.prototype.scale=function(n){return scale(n,this._extent)},r.prototype.setExtent=function(n,i){var a=this._extent;isNaN(n)||(a[0]=parseFloat(n)),isNaN(i)||(a[1]=parseFloat(i))},r.prototype.unionExtent=function(n){var i=this._extent;n[0]<i[0]&&(i[0]=n[0]),n[1]>i[1]&&(i[1]=n[1]),this.setExtent(i[0],i[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 i=this._interval,a=this._extent,o=this._niceExtent,s=this._intervalPrecision,l=[];if(!i)return l;var u=1e4;a[0]<o[0]&&(n?l.push({value:roundNumber(o[0]-i,s)}):l.push({value:a[0]}));for(var c=o[0];c<=o[1]&&(l.push({value:c}),c=roundNumber(c+i,s),c!==l[l.length-1].value);)if(l.length>u)return[];var d=l.length?l[l.length-1].value:o[1];return a[1]>d&&(n?l.push({value:roundNumber(d+i,s)}):l.push({value:a[1]})),l},r.prototype.getMinorTicks=function(n){for(var i=this.getTicks(!0),a=[],o=this.getExtent(),s=1;s<i.length;s++){for(var l=i[s],u=i[s-1],c=0,d=[],v=l.value-u.value,I=v/n;c<n-1;){var $=roundNumber(u.value+(c+1)*I);$>o[0]&&$<o[1]&&d.push($),c++}a.push(d)}return a},r.prototype.getLabel=function(n,i){if(n==null)return"";var a=i&&i.precision;a==null?a=getPrecision(n.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=roundNumber(n.value,a,!0);return addCommas(o)},r.prototype.calcNiceTicks=function(n,i,a){n=n||5;var o=this._extent,s=o[1]-o[0];if(!!isFinite(s)){s<0&&(s=-s,o.reverse());var l=intervalScaleNiceTicks(o,n,i,a);this._intervalPrecision=l.intervalPrecision,this._interval=l.interval,this._niceExtent=l.niceTickExtent}},r.prototype.calcNiceExtent=function(n){var i=this._extent;if(i[0]===i[1])if(i[0]!==0){var a=Math.abs(i[0]);n.fixMax||(i[1]+=a/2),i[0]-=a/2}else i[1]=1;var o=i[1]-i[0];isFinite(o)||(i[0]=0,i[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var s=this._interval;n.fixMin||(i[0]=roundNumber(Math.floor(i[0]/s)*s)),n.fixMax||(i[1]=roundNumber(Math.ceil(i[1]/s)*s))},r.prototype.setNiceExtent=function(n,i){this._niceExtent=[n,i]},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(t)?supportFloat32Array?new Float32Array(t):t:new Float32ArrayCtor(t)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId(t){return t.get("stack")||STACK_PREFIX+t.seriesIndex}function getAxisKey(t){return t.dim+t.index}function prepareLayoutBarSeries(t,r){var n=[];return r.eachSeriesByType(t,function(i){isOnCartesian(i)&&n.push(i)}),n}function getValueAxesMinGaps(t){var r={};each$4(t,function(u){var c=u.coordinateSystem,d=c.getBaseAxis();if(!(d.type!=="time"&&d.type!=="value"))for(var v=u.getData(),I=d.dim+"_"+d.index,$=v.getDimensionIndex(v.mapDimension(d.dim)),O=v.getStore(),R=0,M=O.count();R<M;++R){var N=O.get($,R);r[I]?r[I].push(N):r[I]=[N]}});var n={};for(var i in r)if(r.hasOwnProperty(i)){var a=r[i];if(a){a.sort(function(u,c){return u-c});for(var o=null,s=1;s<a.length;++s){var l=a[s]-a[s-1];l>0&&(o=o===null?l:Math.min(o,l))}n[i]=o}}return n}function makeColumnLayout(t){var r=getValueAxesMinGaps(t),n=[];return each$4(t,function(i){var a=i.coordinateSystem,o=a.getBaseAxis(),s=o.getExtent(),l;if(o.type==="category")l=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var u=o.dim+"_"+o.index,c=r[u],d=Math.abs(s[1]-s[0]),v=o.scale.getExtent(),I=Math.abs(v[1]-v[0]);l=c?d/I*c:d}else{var $=i.getData();l=Math.abs(s[1]-s[0])/$.count()}var O=parsePercent(i.get("barWidth"),l),R=parsePercent(i.get("barMaxWidth"),l),M=parsePercent(i.get("barMinWidth")||(isInLargeMode(i)?.5:1),l),N=i.get("barGap"),V=i.get("barCategoryGap");n.push({bandWidth:l,barWidth:O,barMaxWidth:R,barMinWidth:M,barGap:N,barCategoryGap:V,axisKey:getAxisKey(o),stackId:getSeriesStackId(i)})}),doCalBarWidthAndOffset(n)}function doCalBarWidthAndOffset(t){var r={};each$4(t,function(i,a){var o=i.axisKey,s=i.bandWidth,l=r[o]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},u=l.stacks;r[o]=l;var c=i.stackId;u[c]||l.autoWidthCount++,u[c]=u[c]||{width:0,maxWidth:0};var d=i.barWidth;d&&!u[c].width&&(u[c].width=d,d=Math.min(l.remainedWidth,d),l.remainedWidth-=d);var v=i.barMaxWidth;v&&(u[c].maxWidth=v);var I=i.barMinWidth;I&&(u[c].minWidth=I);var $=i.barGap;$!=null&&(l.gap=$);var O=i.barCategoryGap;O!=null&&(l.categoryGap=O)});var n={};return each$4(r,function(i,a){n[a]={};var o=i.stacks,s=i.bandWidth,l=i.categoryGap;if(l==null){var u=keys(o).length;l=Math.max(35-u*4,15)+"%"}var c=parsePercent(l,s),d=parsePercent(i.gap,1),v=i.remainedWidth,I=i.autoWidthCount,$=(v-c)/(I+(I-1)*d);$=Math.max($,0),each$4(o,function(N){var V=N.maxWidth,G=N.minWidth;if(N.width){var Y=N.width;V&&(Y=Math.min(Y,V)),G&&(Y=Math.max(Y,G)),N.width=Y,v-=Y+d*Y,I--}else{var Y=$;V&&V<Y&&(Y=Math.min(V,v)),G&&G>Y&&(Y=G),Y!==$&&(N.width=Y,v-=Y+d*Y,I--)}}),$=(v-c)/(I+(I-1)*d),$=Math.max($,0);var O=0,R;each$4(o,function(N,V){N.width||(N.width=$),R=N,O+=N.width*(1+d)}),R&&(O-=R.width*d);var M=-O/2;each$4(o,function(N,V){n[a][V]=n[a][V]||{bandWidth:s,offset:M,width:N.width},M+=N.width*(1+d)})}),n}function retrieveColumnLayout(t,r,n){if(t&&r){var i=t[getAxisKey(r)];return i!=null&&n!=null?i[getSeriesStackId(n)]:i}}function isOnCartesian(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function isInLargeMode(t){return t.pipelineContext&&t.pipelineContext.large}var bisect=function(t,r,n,i){for(;n<i;){var a=n+i>>>1;t[a][1]<r?n=a+1:i=a}return n},TimeScale=function(t){__extends(r,t);function r(n){var i=t.call(this,n)||this;return i.type="time",i}return r.prototype.getLabel=function(n){var i=this.getSetting("useUTC");return format(n.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,i,this.getSetting("locale"))},r.prototype.getFormattedLabel=function(n,i,a){var o=this.getSetting("useUTC"),s=this.getSetting("locale");return leveledFormat(n,i,a,s,o)},r.prototype.getTicks=function(){var n=this._interval,i=this._extent,a=[];if(!n)return a;a.push({value:i[0],level:0});var o=this.getSetting("useUTC"),s=getIntervalTicks(this._minLevelUnit,this._approxInterval,o,i);return a=a.concat(s),a.push({value:i[1],level:0}),a},r.prototype.calcNiceExtent=function(n){var i=this._extent;if(i[0]===i[1]&&(i[0]-=ONE_DAY,i[1]+=ONE_DAY),i[1]===-1/0&&i[0]===1/0){var a=new Date;i[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),i[0]=i[1]-ONE_DAY}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},r.prototype.calcNiceTicks=function(n,i,a){n=n||10;var o=this._extent,s=o[1]-o[0];this._approxInterval=s/n,i!=null&&this._approxInterval<i&&(this._approxInterval=i),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var l=scaleIntervals.length,u=Math.min(bisect(scaleIntervals,this._approxInterval,0,l),l-1);this._interval=scaleIntervals[u][1],this._minLevelUnit=scaleIntervals[Math.max(u-1,0)][0]},r.prototype.parse=function(n){return isNumber(n)?n:+parseDate(n)},r.prototype.contain=function(n){return contain(this.parse(n),this._extent)},r.prototype.normalize=function(n){return normalize(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,i){var a=parseDate(r),o=parseDate(n),s=function(O){return getUnitValue(a,O,i)===getUnitValue(o,O,i)},l=function(){return s("year")},u=function(){return l()&&s("month")},c=function(){return u()&&s("day")},d=function(){return c()&&s("hour")},v=function(){return d()&&s("minute")},I=function(){return v()&&s("second")},$=function(){return I()&&s("millisecond")};switch(t){case"year":return l();case"month":return u();case"day":return c();case"hour":return d();case"minute":return v();case"second":return I();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 i=new Date(t);switch(getPrimaryTimeUnit(r)){case"year":case"month":i[monthSetterName(n)](0);case"day":i[dateSetterName(n)](1);case"hour":i[hoursSetterName(n)](0);case"minute":i[minutesSetterName(n)](0);case"second":i[secondsSetterName(n)](0),i[millisecondsSetterName(n)](0)}return i.getTime()}function getIntervalTicks(t,r,n,i){var a=1e4,o=timeUnits,s=0;function l(J,te,Q,oe,ue,fe,de){for(var ye=new Date(te),ge=te,Te=ye[oe]();ge<Q&&ge<=i[1];)de.push({value:ge}),Te+=J,ye[ue](Te),ge=ye.getTime();de.push({value:ge,notAdd:!0})}function u(J,te,Q){var oe=[],ue=!te.length;if(!isUnitValueSame(getPrimaryTimeUnit(J),i[0],i[1],n)){ue&&(te=[{value:getFirstTimestampOfUnit(new Date(i[0]),J,n)},{value:i[1]}]);for(var fe=0;fe<te.length-1;fe++){var de=te[fe].value,ye=te[fe+1].value;if(de!==ye){var ge=void 0,Te=void 0,Be=void 0,Ie=!1;switch(J){case"year":ge=Math.max(1,Math.round(r/ONE_DAY/365)),Te=fullYearGetterName(n),Be=fullYearSetterName(n);break;case"half-year":case"quarter":case"month":ge=getMonthInterval(r),Te=monthGetterName(n),Be=monthSetterName(n);break;case"week":case"half-week":case"day":ge=getDateInterval(r),Te=dateGetterName(n),Be=dateSetterName(n),Ie=!0;break;case"half-day":case"quarter-day":case"hour":ge=getHourInterval(r),Te=hoursGetterName(n),Be=hoursSetterName(n);break;case"minute":ge=getMinutesAndSecondsInterval(r,!0),Te=minutesGetterName(n),Be=minutesSetterName(n);break;case"second":ge=getMinutesAndSecondsInterval(r,!1),Te=secondsGetterName(n),Be=secondsSetterName(n);break;case"millisecond":ge=getMillisecondsInterval(r),Te=millisecondsGetterName(n),Be=millisecondsSetterName(n);break}l(ge,de,ye,Te,Be,Ie,oe),J==="year"&&Q.length>1&&fe===0&&Q.unshift({value:Q[0].value-ge})}}for(var fe=0;fe<oe.length;fe++)Q.push(oe[fe]);return oe}}for(var c=[],d=[],v=0,I=0,$=0;$<o.length&&s++<a;++$){var O=getPrimaryTimeUnit(o[$]);if(!!isPrimaryTimeUnit(o[$])){u(o[$],c[c.length-1]||[],d);var R=o[$+1]?getPrimaryTimeUnit(o[$+1]):null;if(O!==R){if(d.length){I=v,d.sort(function(J,te){return J.value-te.value});for(var M=[],N=0;N<d.length;++N){var V=d[N].value;(N===0||d[N-1].value!==V)&&(M.push(d[N]),V>=i[0]&&V<=i[1]&&v++)}var G=(i[1]-i[0])/r;if(v>G*1.5&&I>G/1.5||(c.push(M),v>G||t===o[$]))break}d=[]}}}for(var Y=filter(map$1(c,function(J){return filter(J,function(te){return te.value>=i[0]&&te.value<=i[1]&&!te.notAdd})}),function(J){return J.length>0}),X=[],q=Y.length-1,$=0;$<Y.length;++$)for(var Z=Y[$],ee=0;ee<Z.length;++ee)X.push({value:Z[ee].value,level:q-$});X.sort(function(J,te){return J.value-te.value});for(var ne=[],$=0;$<X.length;++$)($===0||X[$].value!==X[$-1].value)&&ne.push(X[$]);return ne}Scale$1.registerClass(TimeScale);var TimeScale$1=TimeScale,scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow=Math.pow,mathLog$1=Math.log,LogScale=function(t){__extends(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 i=this._originalScale,a=this._extent,o=i.getExtent(),s=intervalScaleProto.getTicks.call(this,n);return map$1(s,function(l){var u=l.value,c=round$1(mathPow(this.base,u));return c=u===a[0]&&this._fixMin?fixRoundingError(c,o[0]):c,c=u===a[1]&&this._fixMax?fixRoundingError(c,o[1]):c,{value:c}},this)},r.prototype.setExtent=function(n,i){var a=mathLog$1(this.base);n=mathLog$1(Math.max(0,n))/a,i=mathLog$1(Math.max(0,i))/a,intervalScaleProto.setExtent.call(this,n,i)},r.prototype.getExtent=function(){var n=this.base,i=scaleProto.getExtent.call(this);i[0]=mathPow(n,i[0]),i[1]=mathPow(n,i[1]);var a=this._originalScale,o=a.getExtent();return this._fixMin&&(i[0]=fixRoundingError(i[0],o[0])),this._fixMax&&(i[1]=fixRoundingError(i[1],o[1])),i},r.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var i=this.base;n[0]=mathLog$1(n[0])/mathLog$1(i),n[1]=mathLog$1(n[1])/mathLog$1(i),scaleProto.unionExtent.call(this,n)},r.prototype.unionExtentFromData=function(n,i){this.unionExtent(n.getApproximateExtent(i))},r.prototype.calcNiceTicks=function(n){n=n||10;var i=this._extent,a=i[1]-i[0];if(!(a===1/0||a<=0)){var o=quantity(a),s=n/a*o;for(s<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var l=[round$1(mathCeil(i[0]/o)*o),round$1(mathFloor(i[1]/o)*o)];this._interval=o,this._niceExtent=l}},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(n,this._extent)},r.prototype.normalize=function(n){return n=mathLog$1(n)/mathLog$1(this.base),normalize(n,this._extent)},r.prototype.scale=function(n){return n=scale(n,this._extent),mathPow(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,i){this._prepareParams(r,n,i)}return t.prototype._prepareParams=function(r,n,i){i[1]<i[0]&&(i=[NaN,NaN]),this._dataMin=i[0],this._dataMax=i[1];var a=this._isOrdinal=r.type==="ordinal";this._needCrossZero=r.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var s=this._modelMinRaw=o;isFunction(s)?this._modelMinNum=parseAxisModelMinMax(r,s({min:i[0],max:i[1]})):s!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(r,s));var l=this._modelMaxRaw=n.get("max",!0);if(isFunction(l)?this._modelMaxNum=parseAxisModelMinMax(r,l({min:i[0],max:i[1]})):l!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(r,l)),a)this._axisDataLen=n.getCategories().length;else{var u=n.get("boundaryGap"),c=isArray(u)?u:[u||0,u||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1(c[0],1),parsePercent$1(c[1],1)]}},t.prototype.calculate=function(){var r=this._isOrdinal,n=this._dataMin,i=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,s=r?null:i-n||Math.abs(n),l=this._modelMinRaw==="dataMin"?n:this._modelMinNum,u=this._modelMaxRaw==="dataMax"?i:this._modelMaxNum,c=l!=null,d=u!=null;l==null&&(l=r?a?0:NaN:n-o[0]*s),u==null&&(u=r?a?a-1:NaN:i+o[1]*s),(l==null||!isFinite(l))&&(l=NaN),(u==null||!isFinite(u))&&(u=NaN);var v=eqNaN(l)||eqNaN(u)||r&&!a;this._needCrossZero&&(l>0&&u>0&&!c&&(l=0),l<0&&u<0&&!d&&(u=0));var I=this._determinedMin,$=this._determinedMax;return I!=null&&(l=I,c=!0),$!=null&&(u=$,d=!0),{min:l,max:u,minFixed:c,maxFixed:d,isBlank:v}},t.prototype.modifyDataMinMax=function(r,n){this[DATA_MIN_MAX_ATTR[r]]=n},t.prototype.setDeterminedMinMax=function(r,n){var i=DETERMINED_MIN_MAX_ATTR[r];this[i]=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 i=t.rawExtentInfo;return i||(i=new ScaleRawExtentInfo(t,r,n),t.rawExtentInfo=i,i)}function parseAxisModelMinMax(t,r){return r==null?null:eqNaN(r)?NaN:t.parse(r)}function getScaleExtent(t,r){var n=t.type,i=ensureScaleRawExtentInfo(t,r,t.getExtent()).calculate();t.setBlank(i.isBlank);var a=i.min,o=i.max,s=r.ecModel;if(s&&n==="time"){var l=prepareLayoutBarSeries("bar",s),u=!1;if(each$4(l,function(v){u=u||v.getBaseAxis()===r.axis}),u){var c=makeColumnLayout(l),d=adjustScaleForOverflow(a,o,r,c);a=d.min,o=d.max}}return{extent:[a,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function adjustScaleForOverflow(t,r,n,i){var a=n.axis.getExtent(),o=Math.abs(a[1]-a[0]),s=retrieveColumnLayout(i,n.axis);if(s===void 0)return{min:t,max:r};var l=1/0;each$4(s,function($){l=Math.min($.offset,l)});var u=-1/0;each$4(s,function($){u=Math.max($.offset+$.width,u)}),l=Math.abs(l),u=Math.abs(u);var c=l+u,d=r-t,v=1-(l+u)/o,I=d/v-d;return r+=I*(u/c),t-=I*(l/c),{min:t,max:r}}function niceScaleExtent(t,r){var n=r,i=getScaleExtent(t,n),a=i.extent,o=n.get("splitNumber");t instanceof LogScale$1&&(t.base=n.get("logBase"));var s=t.type,l=n.get("interval"),u=s==="interval"||s==="time";t.setExtent(a[0],a[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:u?n.get("minInterval"):null,maxInterval:u?n.get("maxInterval"):null}),l!=null&&t.setInterval&&t.setInterval(l)}function createScaleByModel(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],i=r[1];return!(n>0&&i>0||n<0&&i<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(i){return function(a,o){return t.scale.getFormattedLabel(a,o,i)}}(r):isString(r)?function(i){return function(a){var o=t.scale.getLabel(a),s=i.replace("{value}",o!=null?o:"");return s}}(r):isFunction(r)?function(i){return function(a,o){return n!=null&&(o=a.value-n),i(getAxisRawValue(t,a),o,a.level!=null?{level:a.level}:null)}}(r):function(i){return t.scale.getLabel(i)}}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 i,a,o=n.getExtent();n instanceof OrdinalScale$1?a=n.count():(i=n.getTicks(),a=i.length);var s=t.getLabelModel(),l=makeLabelFormatter(t),u,c=1;a>40&&(c=Math.ceil(a/40));for(var d=0;d<a;d+=c){var v=i?i[d]:{value:o[0]+d},I=l(v,d),$=s.getTextRect(I),O=rotateTextRect($,s.get("rotate")||0);u?u.union(O):u=O}return u}}function rotateTextRect(t,r){var n=r*Math.PI/180,i=t.width,a=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(a*Math.sin(n)),s=i*Math.abs(Math.sin(n))+Math.abs(a*Math.cos(n)),l=new BoundingRect$1(t.x,t.y,o,s);return l}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$4(t.mapDimensionsAll(r),function(i){n[getStackedDimension(t,i)]=!0}),keys(n)}var AxisModelCommonMixin=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var r=this.option;return!r.scale},t.prototype.getCoordSysModel=function(){},t}(),extensions=[],extensionRegisters={registerPreprocessor,registerProcessor,registerPostInit,registerPostUpdate,registerUpdateLifecycle,registerAction,registerCoordinateSystem,registerLayout,registerVisual,registerTransform,registerLoading,registerMap,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(t)){each$4(t,function(r){use(r)});return}indexOf(extensions,t)>=0||(extensions.push(t),isFunction(t)&&(t={install:t}),t.install(extensionRegisters))}var inner$4=makeInner();function tickValuesToNumbers(t,r){var n=map$1(r,function(i){return t.scale.parse(i)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function createAxisLabels(t){var r=t.getLabelModel().get("customValues");if(r){var n=makeLabelFormatter(t),i=t.scale.getExtent(),a=tickValuesToNumbers(t,r),o=filter(a,function(s){return s>=i[0]&&s<=i[1]});return{labels:map$1(o,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:t.scale.getLabel(l),tickValue:s}})}}return t.type==="category"?makeCategoryLabels(t):makeRealNumberLabels(t)}function createAxisTicks(t,r){var n=t.getTickModel().get("customValues");if(n){var i=t.scale.getExtent(),a=tickValuesToNumbers(t,n);return{ticks:filter(a,function(o){return o>=i[0]&&o<=i[1]})}}return t.type==="category"?makeCategoryTicks(t,r):{ticks:map$1(t.scale.getTicks(),function(o){return o.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"),i=getOptionCategoryInterval(r),a=listCacheGet(n,i);if(a)return a;var o,s;return isFunction(i)?o=makeLabelsByCustomizedCategoryInterval(t,i):(s=i==="auto"?makeAutoCategoryInterval(t):i,o=makeLabelsByNumericCategoryInterval(t,s)),listCacheSet(n,i,{labels:o,labelCategoryInterval:s})}function makeCategoryTicks(t,r){var n=getListCache(t,"ticks"),i=getOptionCategoryInterval(r),a=listCacheGet(n,i);if(a)return a;var o,s;if((!r.get("show")||t.scale.isBlank())&&(o=[]),isFunction(i))o=makeLabelsByCustomizedCategoryInterval(t,i,!0);else if(i==="auto"){var l=makeCategoryLabelsActually(t,t.getLabelModel());s=l.labelCategoryInterval,o=map$1(l.labels,function(u){return u.tickValue})}else s=i,o=makeLabelsByNumericCategoryInterval(t,s,!0);return listCacheSet(n,i,{ticks:o,tickCategoryInterval:s})}function makeRealNumberLabels(t){var r=t.scale.getTicks(),n=makeLabelFormatter(t);return{labels:map$1(r,function(i,a){return{level:i.level,formattedLabel:n(i,a),rawLabel:t.scale.getLabel(i),tickValue:i.value}})}}function getListCache(t,r){return inner$4(t)[r]||(inner$4(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$4(t).autoInterval;return r!=null?r:inner$4(t).autoInterval=t.calculateCategoryInterval()}function calculateCategoryInterval(t){var r=fetchAutoCategoryIntervalCalculationParams(t),n=makeLabelFormatter(t),i=(r.axisRotate-r.labelRotate)/180*Math.PI,a=t.scale,o=a.getExtent(),s=a.count();if(o[1]-o[0]<1)return 0;var l=1;s>40&&(l=Math.max(1,Math.floor(s/40)));for(var u=o[0],c=t.dataToCoord(u+1)-t.dataToCoord(u),d=Math.abs(c*Math.cos(i)),v=Math.abs(c*Math.sin(i)),I=0,$=0;u<=o[1];u+=l){var O=0,R=0,M=getBoundingRect(n({value:u}),r.font,"center","top");O=M.width*1.3,R=M.height*1.3,I=Math.max(I,O,7),$=Math.max($,R,7)}var N=I/d,V=$/v;isNaN(N)&&(N=1/0),isNaN(V)&&(V=1/0);var G=Math.max(0,Math.floor(Math.min(N,V))),Y=inner$4(t.model),X=t.getExtent(),q=Y.lastAutoInterval,Z=Y.lastTickCount;return q!=null&&Z!=null&&Math.abs(q-G)<=1&&Math.abs(Z-s)<=1&&q>G&&Y.axisExtent0===X[0]&&Y.axisExtent1===X[1]?G=q:(Y.lastTickCount=s,Y.lastAutoInterval=G,Y.axisExtent0=X[0],Y.axisExtent1=X[1]),G}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 i=makeLabelFormatter(t),a=t.scale,o=a.getExtent(),s=t.getLabelModel(),l=[],u=Math.max((r||0)+1,1),c=o[0],d=a.count();c!==0&&u>1&&d/u>2&&(c=Math.round(Math.ceil(c/u)*u));var v=shouldShowAllLabels(t),I=s.get("showMinLabel")||v,$=s.get("showMaxLabel")||v;I&&c!==o[0]&&R(o[0]);for(var O=c;O<=o[1];O+=u)R(O);$&&O-u!==o[1]&&R(o[1]);function R(M){var N={value:M};l.push(n?M:{formattedLabel:i(N),rawLabel:a.getLabel(N),tickValue:M})}return l}function makeLabelsByCustomizedCategoryInterval(t,r,n){var i=t.scale,a=makeLabelFormatter(t),o=[];return each$4(i.getTicks(),function(s){var l=i.getLabel(s),u=s.value;r(s.value,l)&&o.push(n?u:{formattedLabel:a(s),rawLabel:l,tickValue:u})}),o}var NORMALIZED_EXTENT=[0,1],Axis=function(){function t(r,n,i){this.onBand=!1,this.inverse=!1,this.dim=r,this.scale=n,this._extent=i||[0,0]}return t.prototype.contain=function(r){var n=this._extent,i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return r>=i&&r<=a},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 i=this._extent;i[0]=r,i[1]=n},t.prototype.dataToCoord=function(r,n){var i=this._extent,a=this.scale;return r=a.normalize(r),this.onBand&&a.type==="ordinal"&&(i=i.slice(),fixExtentWithBands(i,a.count())),linearMap(r,NORMALIZED_EXTENT,i,n)},t.prototype.coordToData=function(r,n){var i=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(i=i.slice(),fixExtentWithBands(i,a.count()));var o=linearMap(r,i,NORMALIZED_EXTENT,n);return this.scale.scale(o)},t.prototype.pointToData=function(r,n){},t.prototype.getTicksCoords=function(r){r=r||{};var n=r.tickModel||this.getTickModel(),i=createAxisTicks(this,n),a=i.ticks,o=map$1(a,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return fixOnBandTicksCoords(this,o,s,r.clamp),o},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 i=this.scale.getMinorTicks(n),a=map$1(i,function(o){return map$1(o,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return a},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(),i=n[1]-n[0]+(this.onBand?1:0);i===0&&(i=1);var a=Math.abs(r[1]-r[0]);return Math.abs(a)/i},t.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},t}();function fixExtentWithBands(t,r){var n=t[1]-t[0],i=r,a=n/i/2;t[0]+=a,t[1]-=a}function fixOnBandTicksCoords(t,r,n,i){var a=r.length;if(!t.onBand||n||!a)return;var o=t.getExtent(),s,l;if(a===1)r[0].coord=o[0],s=r[1]={coord:o[1],tickValue:r[0].tickValue};else{var u=r[a-1].tickValue-r[0].tickValue,c=(r[a-1].coord-r[0].coord)/u;each$4(r,function($){$.coord-=c/2});var d=t.scale.getExtent();l=1+d[1]-r[a-1].tickValue,s={coord:r[a-1].coord+c*l,tickValue:d[1]+1},r.push(s)}var v=o[0]>o[1];I(r[0].coord,o[0])&&(i?r[0].coord=o[0]:r.shift()),i&&I(o[0],r[0].coord)&&r.unshift({coord:o[0]}),I(o[1],s.coord)&&(i?s.coord=o[1]:r.pop()),i&&I(s.coord,o[1])&&r.push({coord:o[1]});function I($,O){return $=round$1($),O=round$1(O),v?$>O:$<O}}var Axis$1=Axis;function prepareLayoutList(t){for(var r=[],n=0;n<t.length;n++){var i=t[n];if(!i.defaultAttr.ignore){var a=i.label,o=a.getComputedTransform(),s=a.getBoundingRect(),l=!o||o[1]<1e-5&&o[2]<1e-5,u=a.style.margin||0,c=s.clone();c.applyTransform(o),c.x-=u/2,c.y-=u/2,c.width+=u,c.height+=u;var d=l?new OrientedBoundingRect$1(s,o):null;r.push({label:a,labelLine:i.labelLine,rect:c,localRect:s,obb:d,priority:i.priority,defaultAttr:i.defaultAttr,layoutOption:i.computedLayoutOption,axisAligned:l,transform:o})}}return r}function hideOverlap(t){var r=[];t.sort(function(R,M){return M.priority-R.priority});var n=new BoundingRect$1(0,0,0,0);function i(R){if(!R.ignore){var M=R.ensureState("emphasis");M.ignore==null&&(M.ignore=!1)}R.ignore=!0}for(var a=0;a<t.length;a++){var o=t[a],s=o.axisAligned,l=o.localRect,u=o.transform,c=o.label,d=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var v=o.obb,I=!1,$=0;$<r.length;$++){var O=r[$];if(!!n.intersect(O.rect)){if(s&&O.axisAligned){I=!0;break}if(O.obb||(O.obb=new OrientedBoundingRect$1(O.localRect,O.transform)),v||(v=new OrientedBoundingRect$1(l,u)),v.intersect(O.obb)){I=!0;break}}}I?(i(c),d&&i(d)):(c.attr("ignore",o.defaultAttr.ignore),d&&d.attr("ignore",o.defaultAttr.labelGuideIgnore),r.push(o))}}function createDom(t,r,n){var i=platformApi.createCanvas(),a=r.getWidth(),o=r.getHeight(),s=i.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=a+"px",s.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=a*n,i.height=o*n,i}var Layer=function(t){__extends(r,t);function r(n,i,a){var o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var s;a=a||devicePixelRatio,typeof n=="string"?s=createDom(n,i,a):isObject$2(n)&&(s=n,n=s.id),o.id=n,o.dom=s;var l=s.style;return l&&(disableUserSelect(s),s.onselectstart=function(){return!1},l.padding="0",l.margin="0",l.borderWidth="0"),o.painter=i,o.dpr=a,o}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,i,a,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var s=[],l=this.maxRepaintRectCount,u=!1,c=new BoundingRect$1(0,0,0,0);function d(V){if(!(!V.isFinite()||V.isZero()))if(s.length===0){var G=new BoundingRect$1(0,0,0,0);G.copy(V),s.push(G)}else{for(var Y=!1,X=1/0,q=0,Z=0;Z<s.length;++Z){var ee=s[Z];if(ee.intersect(V)){var ne=new BoundingRect$1(0,0,0,0);ne.copy(ee),ne.union(V),s[Z]=ne,Y=!0;break}else if(u){c.copy(V),c.union(ee);var J=V.width*V.height,te=ee.width*ee.height,Q=c.width*c.height,oe=Q-J-te;oe<X&&(X=oe,q=Z)}}if(u&&(s[q].union(V),Y=!0),!Y){var G=new BoundingRect$1(0,0,0,0);G.copy(V),s.push(G)}u||(u=s.length>=l)}}for(var v=this.__startIndex;v<this.__endIndex;++v){var I=n[v];if(I){var $=I.shouldBePainted(a,o,!0,!0),O=I.__isRendered&&(I.__dirty&REDRAW_BIT||!$)?I.getPrevPaintRect():null;O&&d(O);var R=$&&(I.__dirty&REDRAW_BIT||!I.__isRendered)?I.getPaintRect():null;R&&d(R)}}for(var v=this.__prevStartIndex;v<this.__prevEndIndex;++v){var I=i[v],$=I&&I.shouldBePainted(a,o,!0,!0);if(I&&(!$||!I.__zr)&&I.__isRendered){var O=I.getPrevPaintRect();O&&d(O)}}var M;do{M=!1;for(var v=0;v<s.length;){if(s[v].isZero()){s.splice(v,1);continue}for(var N=v+1;N<s.length;)s[v].intersect(s[N])?(M=!0,s[v].union(s[N]),s.splice(N,1)):N++;v++}}while(M);return this._paintRects=s,s},r.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},r.prototype.resize=function(n,i){var a=this.dpr,o=this.dom,s=o.style,l=this.domBack;s&&(s.width=n+"px",s.height=i+"px"),o.width=n*a,o.height=i*a,l&&(l.width=n*a,l.height=i*a,a!==1&&this.ctxBack.scale(a,a))},r.prototype.clear=function(n,i,a){var o=this.dom,s=this.ctx,l=o.width,u=o.height;i=i||this.clearColor;var c=this.motionBlur&&!n,d=this.lastFrameAlpha,v=this.dpr,I=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,l/v,u/v));var $=this.domBack;function O(R,M,N,V){if(s.clearRect(R,M,N,V),i&&i!=="transparent"){var G=void 0;if(isGradientObject(i)){var Y=i.global||i.__width===N&&i.__height===V;G=Y&&i.__canvasGradient||getCanvasGradient(s,i,{x:0,y:0,width:N,height:V}),i.__canvasGradient=G,i.__width=N,i.__height=V}else isImagePatternObject(i)&&(i.scaleX=i.scaleX||v,i.scaleY=i.scaleY||v,G=createCanvasPattern(s,i,{dirty:function(){I.setUnpainted(),I.painter.refresh()}}));s.save(),s.fillStyle=G||i,s.fillRect(R,M,N,V),s.restore()}c&&(s.save(),s.globalAlpha=d,s.drawImage($,R,M,N,V),s.restore())}!a||c?O(0,0,l,u):a.length&&each$4(a,function(R){O(R.x*v,R.y*v,R.width*v,R.height*v)})},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,i,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!r.nodeName||r.nodeName.toUpperCase()==="CANVAS";this._opts=i=extend({},i||{}),this.dpr=i.devicePixelRatio||devicePixelRatio,this._singleCanvas=o,this.root=r;var s=r.style;s&&(disableUserSelect(r),r.innerHTML=""),this.storage=n;var l=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(o){var d=r,v=d.width,I=d.height;i.width!=null&&(v=i.width),i.height!=null&&(I=i.height),this.dpr=i.devicePixelRatio||1,d.width=v*this.dpr,d.height=I*this.dpr,this._width=v,this._height=I;var $=new Layer$1(d,this,this.dpr);$.__builtin__=!0,$.initContext(),u[CANVAS_ZLEVEL]=$,$.zlevel=CANVAS_ZLEVEL,l.push(CANVAS_ZLEVEL),this._domRoot=r}else{this._width=getSize(r,0,i),this._height=getSize(r,1,i);var c=this._domRoot=createRoot(this._width,this._height);r.appendChild(c)}}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),i=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,i,r,this._redrawId);for(var o=0;o<a.length;o++){var s=a[o],l=this._layers[s];if(!l.__builtin__&&l.refresh){var u=o===0?this._backgroundColor:null;l.refresh(u)}}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,i=this._hoverlayer;if(i&&i.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,s=0;s<n;s++){var l=r[s];l.__inHover&&(i||(i=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),o||(o=i.ctx,o.save()),brush(o,l,a,s===n-1))}o&&o.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,i,a){if(this._redrawId===a){i=i||!1,this._updateLayerStatus(r);var o=this._doPaintList(r,n,i),s=o.finished,l=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),l&&this._paintHoverList(r),s)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var u=this;requestAnimationFrame$3(function(){u._paintList(r,n,i,a)})}}},t.prototype._compositeManually=function(){var r=this.getLayer(CANVAS_ZLEVEL).ctx,n=this._domRoot.width,i=this._domRoot.height;r.clearRect(0,0,n,i),this.eachBuiltinLayer(function(a){a.virtual&&r.drawImage(a.dom,0,0,n,i)})},t.prototype._doPaintList=function(r,n,i){for(var a=this,o=[],s=this._opts.useDirtyRect,l=0;l<this._zlevelList.length;l++){var u=this._zlevelList[l],c=this._layers[u];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||i)&&o.push(c)}for(var d=!0,v=!1,I=function(R){var M=o[R],N=M.ctx,V=s&&M.createRepaintRects(r,n,$._width,$._height),G=i?M.__startIndex:M.__drawIndex,Y=!i&&M.incremental&&Date.now,X=Y&&Date.now(),q=M.zlevel===$._zlevelList[0]?$._backgroundColor:null;if(M.__startIndex===M.__endIndex)M.clear(!1,q,V);else if(G===M.__startIndex){var Z=r[G];(!Z.incremental||!Z.notClear||i)&&M.clear(!1,q,V)}G===-1&&(console.error("For some unknown reason. drawIndex is -1"),G=M.__startIndex);var ee,ne=function(oe){var ue={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(ee=G;ee<M.__endIndex;ee++){var fe=r[ee];if(fe.__inHover&&(v=!0),a._doPaintEl(fe,M,s,oe,ue,ee===M.__endIndex-1),Y){var de=Date.now()-X;if(de>15)break}}ue.prevElClipPaths&&N.restore()};if(V)if(V.length===0)ee=M.__endIndex;else for(var J=$.dpr,te=0;te<V.length;++te){var Q=V[te];N.save(),N.beginPath(),N.rect(Q.x*J,Q.y*J,Q.width*J,Q.height*J),N.clip(),ne(Q),N.restore()}else N.save(),ne(),N.restore();M.__drawIndex=ee,M.__drawIndex<M.__endIndex&&(d=!1)},$=this,O=0;O<o.length;O++)I(O);return env$1.wxa&&each$4(this._layers,function(R){R&&R.ctx&&R.ctx.draw&&R.ctx.draw()}),{finished:d,needsRefreshHover:v}},t.prototype._doPaintEl=function(r,n,i,a,o,s){var l=n.ctx;if(i){var u=r.getPaintRect();(!a||u&&u.intersect(a))&&(brush(l,r,o,s),r.setPrevPaintRect(u))}else brush(l,r,o,s)},t.prototype.getLayer=function(r,n){this._singleCanvas&&!this._needsManuallyCompositing&&(r=CANVAS_ZLEVEL);var i=this._layers[r];return i||(i=new Layer$1("zr_"+r,this,this.dpr),i.zlevel=r,i.__builtin__=!0,this._layerConfig[r]?merge(i,this._layerConfig[r],!0):this._layerConfig[r-EL_AFTER_INCREMENTAL_INC]&&merge(i,this._layerConfig[r-EL_AFTER_INCREMENTAL_INC],!0),n&&(i.virtual=n),this.insertLayer(r,i),i.initContext()),i},t.prototype.insertLayer=function(r,n){var i=this._layers,a=this._zlevelList,o=a.length,s=this._domRoot,l=null,u=-1;if(!i[r]&&!!isLayerValid(n)){if(o>0&&r>a[0]){for(u=0;u<o-1&&!(a[u]<r&&a[u+1]>r);u++);l=i[a[u]]}if(a.splice(u+1,0,r),i[r]=n,!n.virtual)if(l){var c=l.dom;c.nextSibling?s.insertBefore(n.dom,c.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},t.prototype.eachLayer=function(r,n){for(var i=this._zlevelList,a=0;a<i.length;a++){var o=i[a];r.call(n,this._layers[o],o)}},t.prototype.eachBuiltinLayer=function(r,n){for(var i=this._zlevelList,a=0;a<i.length;a++){var o=i[a],s=this._layers[o];s.__builtin__&&r.call(n,s,o)}},t.prototype.eachOtherLayer=function(r,n){for(var i=this._zlevelList,a=0;a<i.length;a++){var o=i[a],s=this._layers[o];s.__builtin__||r.call(n,s,o)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(r){this.eachBuiltinLayer(function(v,I){v.__dirty=v.__used=!1});function n(v){o&&(o.__endIndex!==v&&(o.__dirty=!0),o.__endIndex=v)}if(this._singleCanvas)for(var i=1;i<r.length;i++){var a=r[i];if(a.zlevel!==r[i-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var o=null,s=0,l,u;for(u=0;u<r.length;u++){var a=r[u],c=a.zlevel,d=void 0;l!==c&&(l=c,s=0),a.incremental?(d=this.getLayer(c+INCREMENTAL_INC,this._needsManuallyCompositing),d.incremental=!0,s=1):d=this.getLayer(c+(s>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),d.__builtin__||logError("ZLevel "+c+" has been used by unkown layer "+d.id),d!==o&&(d.__used=!0,d.__startIndex!==u&&(d.__dirty=!0),d.__startIndex=u,d.incremental?d.__drawIndex=-1:d.__drawIndex=u,n(u),o=d),a.__dirty&REDRAW_BIT&&!a.__inHover&&(d.__dirty=!0,d.incremental&&d.__drawIndex<0&&(d.__drawIndex=u))}n(u),this.eachBuiltinLayer(function(v,I){!v.__used&&v.getElementCount()>0&&(v.__dirty=!0,v.__startIndex=v.__endIndex=v.__drawIndex=0),v.__dirty&&v.__drawIndex<0&&(v.__drawIndex=v.__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$4(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(r,n){if(n){var i=this._layerConfig;i[r]?merge(i[r],n,!0):i[r]=n;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===r||o===r+EL_AFTER_INCREMENTAL_INC){var s=this._layers[o];merge(s,i[r],!0)}}}},t.prototype.delLayer=function(r){var n=this._layers,i=this._zlevelList,a=n[r];!a||(a.dom.parentNode.removeChild(a.dom),delete n[r],i.splice(indexOf(i,r),1))},t.prototype.resize=function(r,n){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var a=this._opts,o=this.root;if(r!=null&&(a.width=r),n!=null&&(a.height=n),r=getSize(o,0,a),n=getSize(o,1,a),i.style.display="",this._width!==r||n!==this._height){i.style.width=r+"px",i.style.height=n+"px";for(var s in this._layers)this._layers.hasOwnProperty(s)&&this._layers[s].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 i=n.ctx;if(r.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,o=n.dom.height;this.eachLayer(function(v){v.__builtin__?i.drawImage(v.dom,0,0,a,o):v.renderToCanvas&&(i.save(),v.renderToCanvas(i),i.restore())})}else for(var s={inHover:!1,viewWidth:this._width,viewHeight:this._height},l=this.storage.getDisplayList(!0),u=0,c=l.length;u<c;u++){var d=l[u];brush(i,d,s,u===c-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}(),CanvasPainter$1=CanvasPainter;function install$a(t){t.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function(t){__extends(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 i=new Group$3,a=createSymbol("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);i.add(a),a.setStyle(n.lineStyle);var o=this.getData().getVisual("symbol"),s=this.getData().getVisual("symbolRotate"),l=o==="none"?"circle":o,u=n.itemHeight*.8,c=createSymbol(l,(n.itemWidth-u)/2,(n.itemHeight-u)/2,u,u,n.itemStyle.fill);i.add(c),c.setStyle(n.itemStyle);var d=n.iconRotate==="inherit"?s:n.iconRotate||0;return c.rotation=d*Math.PI/180,c.setOrigin([n.itemWidth/2,n.itemHeight/2]),l.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),i},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"),i=n.length;if(i===1){var a=retrieveRawValue(t,r,n[0]);return a!=null?a+"":null}else if(i){for(var o=[],s=0;s<n.length;s++)o.push(retrieveRawValue(t,r,n[s]));return o.join(" ")}}function getDefaultInterpolatedLabel(t,r){var n=t.mapDimensionsAll("defaultedLabel");if(!isArray(r))return r+"";for(var i=[],a=0;a<n.length;a++){var o=t.getDimensionIndex(n[a]);o>=0&&i.push(r[o])}return i.join(" ")}var Symbol$1=function(t){__extends(r,t);function r(n,i,a,o){var s=t.call(this)||this;return s.updateData(n,i,a,o),s}return r.prototype._createSymbol=function(n,i,a,o,s){this.removeAll();var l=createSymbol(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),l.drift=driftSymbol,this._symbolType=n,this.add(l)},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,i){var a=this.childAt(0);a.zlevel=n,a.z=i},r.prototype.setDraggable=function(n,i){var a=this.childAt(0);a.draggable=n,a.cursor=!i&&n?"move":a.cursor},r.prototype.updateData=function(n,i,a,o){this.silent=!1;var s=n.getItemVisual(i,"symbol")||"circle",l=n.hostModel,u=r.getSymbolSize(n,i),c=s!==this._symbolType,d=o&&o.disableAnimation;if(c){var v=n.getItemVisual(i,"symbolKeepAspect");this._createSymbol(s,n,i,u,v)}else{var I=this.childAt(0);I.silent=!1;var $={scaleX:u[0]/2,scaleY:u[1]/2};d?I.attr($):updateProps$1(I,$,l,i),saveOldStyle(I)}if(this._updateCommon(n,i,u,a,o),c){var I=this.childAt(0);if(!d){var $={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:I.style.opacity}};I.scaleX=I.scaleY=0,I.style.opacity=0,initProps(I,$,l,i)}}d&&this.childAt(0).stopAnimation("leave")},r.prototype._updateCommon=function(n,i,a,o,s){var l=this.childAt(0),u=n.hostModel,c,d,v,I,$,O,R,M,N;if(o&&(c=o.emphasisItemStyle,d=o.blurItemStyle,v=o.selectItemStyle,I=o.focus,$=o.blurScope,R=o.labelStatesModels,M=o.hoverScale,N=o.cursorStyle,O=o.emphasisDisabled),!o||n.hasItemOption){var V=o&&o.itemModel?o.itemModel:n.getItemModel(i),G=V.getModel("emphasis");c=G.getModel("itemStyle").getItemStyle(),v=V.getModel(["select","itemStyle"]).getItemStyle(),d=V.getModel(["blur","itemStyle"]).getItemStyle(),I=G.get("focus"),$=G.get("blurScope"),O=G.get("disabled"),R=getLabelStatesModels(V),M=G.getShallow("scale"),N=V.getShallow("cursor")}var Y=n.getItemVisual(i,"symbolRotate");l.attr("rotation",(Y||0)*Math.PI/180||0);var X=normalizeSymbolOffset(n.getItemVisual(i,"symbolOffset"),a);X&&(l.x=X[0],l.y=X[1]),N&&l.attr("cursor",N);var q=n.getItemVisual(i,"style"),Z=q.fill;if(l instanceof ZRImage$1){var ee=l.style;l.useStyle(extend({image:ee.image,x:ee.x,y:ee.y,width:ee.width,height:ee.height},q))}else l.__isEmptyBrush?l.useStyle(extend({},q)):l.useStyle(q),l.style.decal=null,l.setColor(Z,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var ne=n.getItemVisual(i,"liftZ"),J=this._z2;ne!=null?J==null&&(this._z2=l.z2,l.z2+=ne):J!=null&&(l.z2=J,this._z2=null);var te=s&&s.useNameLabel;setLabelStyle(l,R,{labelFetcher:u,labelDataIndex:i,defaultText:Q,inheritColor:Z,defaultOpacity:q.opacity});function Q(fe){return te?n.getName(fe):getDefaultLabel(n,fe)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var oe=l.ensureState("emphasis");oe.style=c,l.ensureState("select").style=v,l.ensureState("blur").style=d;var ue=M==null||M===!0?Math.max(1.1,3/this._sizeY):isFinite(M)&&M>0?+M:1;oe.scaleX=this._sizeX*ue,oe.scaleY=this._sizeY*ue,this.setSymbolScale(1),toggleHoverEmphasis(this,I,$,O)},r.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},r.prototype.fadeOut=function(n,i,a){var o=this.childAt(0),s=getECData(this).dataIndex,l=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var u=o.getTextContent();u&&removeElement(u,{style:{opacity:0}},i,{dataIndex:s,removeOpt:l,cb:function(){o.removeTextContent()}})}else o.removeTextContent();removeElement(o,{style:{opacity:0},scaleX:0,scaleY:0},i,{dataIndex:s,cb:n,removeOpt:l})},r.getSymbolSize=function(n,i){return normalizeSymbolSize(n.getItemVisual(i,"symbolSize"))},r}(Group$3);function driftSymbol(t,r){this.parent.drift(t,r)}var SymbolClz=Symbol$1;function symbolNeedsDraw(t,r,n,i){return r&&!isNaN(r[0])&&!isNaN(r[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(r[0],r[1]))&&t.getItemVisual(n,"symbol")!=="none"}function normalizeUpdateOpt(t){return t!=null&&!isObject$2(t)&&(t={isIgnore:t}),t||{}}function makeSeriesScope(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$3,this._SymbolCtor=r||SymbolClz}return t.prototype.updateData=function(r,n){this._progressiveEls=null,n=normalizeUpdateOpt(n);var i=this.group,a=r.hostModel,o=this._data,s=this._SymbolCtor,l=n.disableAnimation,u=makeSeriesScope(r),c={disableAnimation:l},d=n.getSymbolPoint||function(v){return r.getItemLayout(v)};o||i.removeAll(),r.diff(o).add(function(v){var I=d(v);if(symbolNeedsDraw(r,I,v,n)){var $=new s(r,v,u,c);$.setPosition(I),r.setItemGraphicEl(v,$),i.add($)}}).update(function(v,I){var $=o.getItemGraphicEl(I),O=d(v);if(!symbolNeedsDraw(r,O,v,n)){i.remove($);return}var R=r.getItemVisual(v,"symbol")||"circle",M=$&&$.getSymbolType&&$.getSymbolType();if(!$||M&&M!==R)i.remove($),$=new s(r,v,u,c),$.setPosition(O);else{$.updateData(r,v,u,c);var N={x:O[0],y:O[1]};l?$.attr(N):updateProps$1($,N,a)}i.add($),r.setItemGraphicEl(v,$)}).remove(function(v){var I=o.getItemGraphicEl(v);I&&I.fadeOut(function(){i.remove(I)},a)}).execute(),this._getSymbolPoint=d,this._data=r},t.prototype.updateLayout=function(){var r=this,n=this._data;n&&n.eachItemGraphicEl(function(i,a){var o=r._getSymbolPoint(a);i.setPosition(o),i.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(r){this._seriesScope=makeSeriesScope(r),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(r,n,i){this._progressiveEls=[],i=normalizeUpdateOpt(i);function a(u){u.isGroup||(u.incremental=!0,u.ensureState("emphasis").hoverLayer=!0)}for(var o=r.start;o<r.end;o++){var s=n.getItemLayout(o);if(symbolNeedsDraw(n,s,o,i)){var l=new this._SymbolCtor(n,o,this._seriesScope);l.traverse(a),l.setPosition(s),this.group.add(l),n.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},t.prototype.eachRendered=function(r){traverseElements(this._progressiveEls||this.group,r)},t.prototype.remove=function(r){var n=this.group,i=this._data;i&&r?i.eachItemGraphicEl(function(a){a.fadeOut(function(){n.remove(a)},i.hostModel)}):n.removeAll()},t}(),SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo(t,r,n){var i=t.getBaseAxis(),a=t.getOtherAxis(i),o=getValueStart(a,n),s=i.dim,l=a.dim,u=r.mapDimension(l),c=r.mapDimension(s),d=l==="x"||l==="radius"?1:0,v=map$1(t.dimensions,function(O){return r.mapDimension(O)}),I=!1,$=r.getCalculationInfo("stackResultDimension");return isDimensionStacked(r,v[0])&&(I=!0,v[0]=$),isDimensionStacked(r,v[1])&&(I=!0,v[1]=$),{dataDimsForPoint:v,valueStart:o,valueAxisDim:l,baseAxisDim:s,stacked:!!I,valueDim:u,baseDim:c,baseDataOffset:d,stackedOverDimension:r.getCalculationInfo("stackedOverDimension")}}function getValueStart(t,r){var n=0,i=t.scale.getExtent();return r==="start"?n=i[0]:r==="end"?n=i[1]:isNumber(r)&&!isNaN(r)?n=r:i[0]>0?n=i[0]:i[1]<0&&(n=i[1]),n}function getStackedOnPoint(t,r,n,i){var a=NaN;t.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(a)&&(a=t.valueStart);var o=t.baseDataOffset,s=[];return s[o]=n.get(t.baseDim,i),s[1-o]=a,r.dataToPoint(s)}function diffData(t,r){var n=[];return r.diff(t).add(function(i){n.push({cmd:"+",idx:i})}).update(function(i,a){n.push({cmd:"=",idx:a,idx1:i})}).remove(function(i){n.push({cmd:"-",idx:i})}).execute(),n}function lineAnimationDiff(t,r,n,i,a,o,s,l){for(var u=diffData(t,r),c=[],d=[],v=[],I=[],$=[],O=[],R=[],M=prepareDataCoordInfo(a,r,s),N=t.getLayout("points")||[],V=r.getLayout("points")||[],G=0;G<u.length;G++){var Y=u[G],X=!0,q=void 0,Z=void 0;switch(Y.cmd){case"=":q=Y.idx*2,Z=Y.idx1*2;var ee=N[q],ne=N[q+1],J=V[Z],te=V[Z+1];(isNaN(ee)||isNaN(ne))&&(ee=J,ne=te),c.push(ee,ne),d.push(J,te),v.push(n[q],n[q+1]),I.push(i[Z],i[Z+1]),R.push(r.getRawIndex(Y.idx1));break;case"+":var Q=Y.idx,oe=M.dataDimsForPoint,ue=a.dataToPoint([r.get(oe[0],Q),r.get(oe[1],Q)]);Z=Q*2,c.push(ue[0],ue[1]),d.push(V[Z],V[Z+1]);var fe=getStackedOnPoint(M,a,r,Q);v.push(fe[0],fe[1]),I.push(i[Z],i[Z+1]),R.push(r.getRawIndex(Q));break;case"-":X=!1}X&&($.push(Y),O.push(O.length))}O.sort(function(Ue,Ze){return R[Ue]-R[Ze]});for(var de=c.length,ye=createFloat32Array(de),ge=createFloat32Array(de),Te=createFloat32Array(de),Be=createFloat32Array(de),Ie=[],G=0;G<O.length;G++){var me=O[G],De=G*2,Ve=me*2;ye[De]=c[Ve],ye[De+1]=c[Ve+1],ge[De]=d[Ve],ge[De+1]=d[Ve+1],Te[De]=v[Ve],Te[De+1]=v[Ve+1],Be[De]=I[Ve],Be[De+1]=I[Ve+1],Ie[G]=$[me]}return{current:ye,next:ge,stackedOnCurrent:Te,stackedOnNext:Be,status:Ie}}var mathMin=Math.min,mathMax=Math.max;function isPointNull$1(t,r){return isNaN(t)||isNaN(r)}function drawSegment(t,r,n,i,a,o,s,l,u){for(var c,d,v,I,$,O,R=n,M=0;M<i;M++){var N=r[R*2],V=r[R*2+1];if(R>=a||R<0)break;if(isPointNull$1(N,V)){if(u){R+=o;continue}break}if(R===n)t[o>0?"moveTo":"lineTo"](N,V),v=N,I=V;else{var G=N-c,Y=V-d;if(G*G+Y*Y<.5){R+=o;continue}if(s>0){for(var X=R+o,q=r[X*2],Z=r[X*2+1];q===N&&Z===V&&M<i;)M++,X+=o,R+=o,q=r[X*2],Z=r[X*2+1],N=r[R*2],V=r[R*2+1],G=N-c,Y=V-d;var ee=M+1;if(u)for(;isPointNull$1(q,Z)&&ee<i;)ee++,X+=o,q=r[X*2],Z=r[X*2+1];var ne=.5,J=0,te=0,Q=void 0,oe=void 0;if(ee>=i||isPointNull$1(q,Z))$=N,O=V;else{J=q-c,te=Z-d;var ue=N-c,fe=q-N,de=V-d,ye=Z-V,ge=void 0,Te=void 0;if(l==="x"){ge=Math.abs(ue),Te=Math.abs(fe);var Be=J>0?1:-1;$=N-Be*ge*s,O=V,Q=N+Be*Te*s,oe=V}else if(l==="y"){ge=Math.abs(de),Te=Math.abs(ye);var Ie=te>0?1:-1;$=N,O=V-Ie*ge*s,Q=N,oe=V+Ie*Te*s}else ge=Math.sqrt(ue*ue+de*de),Te=Math.sqrt(fe*fe+ye*ye),ne=Te/(Te+ge),$=N-J*s*(1-ne),O=V-te*s*(1-ne),Q=N+J*s*ne,oe=V+te*s*ne,Q=mathMin(Q,mathMax(q,N)),oe=mathMin(oe,mathMax(Z,V)),Q=mathMax(Q,mathMin(q,N)),oe=mathMax(oe,mathMin(Z,V)),J=Q-N,te=oe-V,$=N-J*ge/Te,O=V-te*ge/Te,$=mathMin($,mathMax(c,N)),O=mathMin(O,mathMax(d,V)),$=mathMax($,mathMin(c,N)),O=mathMax(O,mathMin(d,V)),J=N-$,te=V-O,Q=N+J*Te/ge,oe=V+te*Te/ge}t.bezierCurveTo(v,I,$,O,N,V),v=Q,I=oe}else t.lineTo(N,V)}c=N,d=V,R+=o}return M}var ECPolylineShape=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ECPolyline=function(t){__extends(r,t);function r(n){var i=t.call(this,n)||this;return i.type="ec-polyline",i}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ECPolylineShape},r.prototype.buildPath=function(n,i){var a=i.points,o=0,s=a.length/2;if(i.connectNulls){for(;s>0&&isPointNull$1(a[s*2-2],a[s*2-1]);s--);for(;o<s&&isPointNull$1(a[o*2],a[o*2+1]);o++);}for(;o<s;)o+=drawSegment(n,a,o,s,s,1,i.smooth,i.smoothMonotone,i.connectNulls)+1},r.prototype.getPointOn=function(n,i){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,o=a.data,s=PathProxy$1.CMD,l,u,c=i==="x",d=[],v=0;v<o.length;){var I=o[v++],$=void 0,O=void 0,R=void 0,M=void 0,N=void 0,V=void 0,G=void 0;switch(I){case s.M:l=o[v++],u=o[v++];break;case s.L:if($=o[v++],O=o[v++],G=c?(n-l)/($-l):(n-u)/(O-u),G<=1&&G>=0){var Y=c?(O-u)*G+u:($-l)*G+l;return c?[n,Y]:[Y,n]}l=$,u=O;break;case s.C:$=o[v++],O=o[v++],R=o[v++],M=o[v++],N=o[v++],V=o[v++];var X=c?cubicRootAt(l,$,R,N,n,d):cubicRootAt(u,O,M,V,n,d);if(X>0)for(var q=0;q<X;q++){var Z=d[q];if(Z<=1&&Z>=0){var Y=c?cubicAt(u,O,M,V,Z):cubicAt(l,$,R,N,Z);return c?[n,Y]:[Y,n]}}l=N,u=V;break}}},r}(Path$1),ECPolygonShape=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(ECPolylineShape),ECPolygon=function(t){__extends(r,t);function r(n){var i=t.call(this,n)||this;return i.type="ec-polygon",i}return r.prototype.getDefaultShape=function(){return new ECPolygonShape},r.prototype.buildPath=function(n,i){var a=i.points,o=i.stackedOnPoints,s=0,l=a.length/2,u=i.smoothMonotone;if(i.connectNulls){for(;l>0&&isPointNull$1(a[l*2-2],a[l*2-1]);l--);for(;s<l&&isPointNull$1(a[s*2],a[s*2+1]);s++);}for(;s<l;){var c=drawSegment(n,a,s,l,l,1,i.smooth,u,i.connectNulls);drawSegment(n,o,s+c-1,c,l,-1,i.stackedOnSmooth,u,i.connectNulls),s+=c+1,n.closePath()}},r}(Path$1);function createGridClipPath(t,r,n,i,a){var o=t.getArea(),s=o.x,l=o.y,u=o.width,c=o.height,d=n.get(["lineStyle","width"])||0;s-=d/2,l-=d/2,u+=d,c+=d,u=Math.ceil(u),s!==Math.floor(s)&&(s=Math.floor(s),u++);var v=new Rect$1({shape:{x:s,y:l,width:u,height:c}});if(r){var I=t.getBaseAxis(),$=I.isHorizontal(),O=I.inverse;$?(O&&(v.shape.x+=u),v.shape.width=0):(O||(v.shape.y+=c),v.shape.height=0);var R=isFunction(a)?function(M){a(M,v)}:null;initProps(v,{shape:{width:u,height:c,x:s,y:l}},n,null,i,R)}return v}function createPolarClipPath(t,r,n){var i=t.getArea(),a=round$1(i.r0,1),o=round$1(i.r,1),s=new Sector$1({shape:{cx:round$1(t.cx,1),cy:round$1(t.cy,1),r0:a,r:o,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}});if(r){var l=t.getBaseAxis().dim==="angle";l?s.shape.endAngle=i.startAngle:s.shape.r=a,initProps(s,{shape:{endAngle:i.endAngle,r:o}},n)}return s}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,i=-1/0,a=-1/0,o=0;o<t.length;){var s=t[o++],l=t[o++];isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i)),isNaN(l)||(n=Math.min(l,n),a=Math.max(l,a))}return[[r,n],[i,a]]}function getBoundingDiff(t,r){var n=bboxFromPoints(t),i=n[0],a=n[1],o=bboxFromPoints(r),s=o[0],l=o[1];return Math.max(Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]),Math.abs(a[0]-l[0]),Math.abs(a[1]-l[1]))}function getSmooth(t){return isNumber(t)?t:t?.5:0}function getStackedOnPoints(t,r,n){if(!n.valueDim)return[];for(var i=r.count(),a=createFloat32Array(i*2),o=0;o<i;o++){var s=getStackedOnPoint(n,t,r,o);a[o*2]=s[0],a[o*2+1]=s[1]}return a}function turnPointsIntoStep(t,r,n,i,a){var o=n.getBaseAxis(),s=o.dim==="x"||o.dim==="radius"?0:1,l=[],u=0,c=[],d=[],v=[],I=[];if(a){for(u=0;u<t.length;u+=2){var $=r||t;!isNaN($[u])&&!isNaN($[u+1])&&I.push(t[u],t[u+1])}t=I}for(u=0;u<t.length-2;u+=2)switch(v[0]=t[u+2],v[1]=t[u+3],d[0]=t[u],d[1]=t[u+1],l.push(d[0],d[1]),i){case"end":c[s]=v[s],c[1-s]=d[1-s],l.push(c[0],c[1]);break;case"middle":var O=(d[s]+v[s])/2,R=[];c[s]=R[s]=O,c[1-s]=d[1-s],R[1-s]=v[1-s],l.push(c[0],c[1]),l.push(R[0],R[1]);break;default:c[s]=d[s],c[1-s]=v[1-s],l.push(c[0],c[1])}return l.push(t[u++],t[u++]),l}function clipColorStops(t,r){var n=[],i=t.length,a,o;function s(d,v,I){var $=d.coord,O=(I-$)/(v.coord-$),R=lerp(O,[d.color,v.color]);return{coord:I,color:R}}for(var l=0;l<i;l++){var u=t[l],c=u.coord;if(c<0)a=u;else if(c>r){o?n.push(s(o,u,r)):a&&n.push(s(a,u,0),s(a,u,r));break}else a&&(n.push(s(a,u,0)),a=null),n.push(u),o=u}return n}function getVisualGradient(t,r,n){var i=t.getVisual("visualMeta");if(!(!i||!i.length||!t.count())&&r.type==="cartesian2d"){for(var a,o,s=i.length-1;s>=0;s--){var l=t.getDimensionInfo(i[s].dimension);if(a=l&&l.coordDim,a==="x"||a==="y"){o=i[s];break}}if(!!o){var u=r.getAxis(a),c=map$1(o.stops,function(G){return{coord:u.toGlobalCoord(u.dataToCoord(G.value)),color:G.color}}),d=c.length,v=o.outerColors.slice();d&&c[0].coord>c[d-1].coord&&(c.reverse(),v.reverse());var I=clipColorStops(c,a==="x"?n.getWidth():n.getHeight()),$=I.length;if(!$&&d)return c[0].coord<0?v[1]?v[1]:c[d-1].color:v[0]?v[0]:c[0].color;var O=10,R=I[0].coord-O,M=I[$-1].coord+O,N=M-R;if(N<.001)return"transparent";each$4(I,function(G){G.offset=(G.coord-R)/N}),I.push({offset:$?I[$-1].offset:.5,color:v[1]||"transparent"}),I.unshift({offset:$?I[0].offset:.5,color:v[0]||"transparent"});var V=new LinearGradient$1(0,0,0,0,I,!0);return V[a]=R,V[a+"2"]=M,V}}}function getIsIgnoreFunc(t,r,n){var i=t.get("showAllSymbol"),a=i==="auto";if(!(i&&!a)){var o=n.getAxesByScale("ordinal")[0];if(!!o&&!(a&&canShowAllSymbolForCategory(o,r))){var s=r.mapDimension(o.dim),l={};return each$4(o.getViewLabels(),function(u){var c=o.scale.getRawOrdinalNumber(u.tickValue);l[c]=1}),function(u){return!l.hasOwnProperty(r.get(s,u))}}}}function canShowAllSymbolForCategory(t,r){var n=t.getExtent(),i=Math.abs(n[1]-n[0])/t.scale.count();isNaN(i)&&(i=0);for(var a=r.count(),o=Math.max(1,Math.round(a/5)),s=0;s<a;s+=o)if(SymbolClz.getSymbolSize(r,s)[t.isHorizontal()?1:0]*1.5>i)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 i=t.length/2,a=n==="x"?0:1,o,s,l=0,u=-1,c=0;c<i;c++)if(s=t[c*2+a],!(isNaN(s)||isNaN(t[c*2+1-a]))){if(c===0){o=s;continue}if(o<=r&&s>=r||o>=r&&s<=r){u=c;break}l=c,o=s}return{range:[l,u],t:(r-o)/(s-o)}}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,i){if(isCoordinateSystemType(r,"cartesian2d")){var a=i.getModel("endLabel"),o=a.get("valueAnimation"),s=i.getData(),l={lastFrameIndex:0},u=anyStateShowEndLabel(i)?function($,O){t._endLabelOnDuring($,O,s,l,o,a,r)}:null,c=r.getBaseAxis().isHorizontal(),d=createGridClipPath(r,n,i,function(){var $=t._endLabel;$&&n&&l.originalX!=null&&$.attr({x:l.originalX,y:l.originalY})},u);if(!i.get("clip",!0)){var v=d.shape,I=Math.max(v.width,v.height);c?(v.y-=I,v.height+=I*2):(v.x-=I,v.width+=I*2)}return u&&u(1,d),d}else return createPolarClipPath(r,n,i)}function getEndLabelStateSpecified(t,r){var n=r.getBaseAxis(),i=n.isHorizontal(),a=n.inverse,o=i?a?"right":"left":"center",s=i?"middle":a?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||s}}}var LineView=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function(){var n=new Group$3,i=new SymbolDraw$1;this.group.add(i.group),this._symbolDraw=i,this._lineGroup=n,this._changePolyState=bind$1(this._changePolyState,this)},r.prototype.render=function(n,i,a){var o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),d=l.getLayout("points")||[],v=o.type==="polar",I=this._coordSys,$=this._symbolDraw,O=this._polyline,R=this._polygon,M=this._lineGroup,N=!i.ssr&&n.get("animation"),V=!c.isEmpty(),G=c.get("origin"),Y=prepareDataCoordInfo(o,l,G),X=V&&getStackedOnPoints(o,l,Y),q=n.get("showSymbol"),Z=n.get("connectNulls"),ee=q&&!v&&getIsIgnoreFunc(n,l,o),ne=this._data;ne&&ne.eachItemGraphicEl(function(Ue,Ze){Ue.__temp&&(s.remove(Ue),ne.setItemGraphicEl(Ze,null))}),q||$.remove(),s.add(M);var J=v?!1:n.get("step"),te;o&&o.getArea&&n.get("clip",!0)&&(te=o.getArea(),te.width!=null?(te.x-=.1,te.y-=.1,te.width+=.2,te.height+=.2):te.r0&&(te.r0-=.5,te.r+=.5)),this._clipShapeForSymbol=te;var Q=getVisualGradient(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(O&&I.type===o.type&&J===this._step))q&&$.updateData(l,{isIgnore:ee,clipShape:te,disableAnimation:!0,getSymbolPoint:function(Ue){return[d[Ue*2],d[Ue*2+1]]}}),N&&this._initSymbolLabelAnimation(l,o,te),J&&(X&&(X=turnPointsIntoStep(X,d,o,J,Z)),d=turnPointsIntoStep(d,null,o,J,Z)),O=this._newPolyline(d),V?R=this._newPolygon(d,X):R&&(M.remove(R),R=this._polygon=null),v||this._initOrUpdateEndLabel(n,o,convertToColorString(Q)),M.setClipPath(createLineClipPath(this,o,!0,n));else{V&&!R?R=this._newPolygon(d,X):R&&!V&&(M.remove(R),R=this._polygon=null),v||this._initOrUpdateEndLabel(n,o,convertToColorString(Q));var oe=M.getClipPath();if(oe){var ue=createLineClipPath(this,o,!1,n);initProps(oe,{shape:ue.shape},n)}else M.setClipPath(createLineClipPath(this,o,!0,n));q&&$.updateData(l,{isIgnore:ee,clipShape:te,disableAnimation:!0,getSymbolPoint:function(Ue){return[d[Ue*2],d[Ue*2+1]]}}),(!isPointsSame(this._stackedOnPoints,X)||!isPointsSame(this._points,d))&&(N?this._doUpdateAnimation(l,X,o,a,J,G,Z):(J&&(X&&(X=turnPointsIntoStep(X,d,o,J,Z)),d=turnPointsIntoStep(d,null,o,J,Z)),O.setShape({points:d}),R&&R.setShape({points:d,stackedOnPoints:X})))}var fe=n.getModel("emphasis"),de=fe.get("focus"),ye=fe.get("blurScope"),ge=fe.get("disabled");if(O.useStyle(defaults(u.getLineStyle(),{fill:"none",stroke:Q,lineJoin:"bevel"})),setStatesStylesFromModel(O,n,"lineStyle"),O.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var Te=O.getState("emphasis").style;Te.lineWidth=+O.style.lineWidth+1}getECData(O).seriesIndex=n.seriesIndex,toggleHoverEmphasis(O,de,ye,ge);var Be=getSmooth(n.get("smooth")),Ie=n.get("smoothMonotone");if(O.setShape({smooth:Be,smoothMonotone:Ie,connectNulls:Z}),R){var me=l.getCalculationInfo("stackedOnSeries"),De=0;R.useStyle(defaults(c.getAreaStyle(),{fill:Q,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),me&&(De=getSmooth(me.get("smooth"))),R.setShape({smooth:Be,stackedOnSmooth:De,smoothMonotone:Ie,connectNulls:Z}),setStatesStylesFromModel(R,n,"areaStyle"),getECData(R).seriesIndex=n.seriesIndex,toggleHoverEmphasis(R,de,ye,ge)}var Ve=this._changePolyState;l.eachItemGraphicEl(function(Ue){Ue&&(Ue.onHoverStateChange=Ve)}),this._polyline.onHoverStateChange=Ve,this._data=l,this._coordSys=o,this._stackedOnPoints=X,this._points=d,this._step=J,this._valueOrigin=G,n.get("triggerLineEvent")&&(this.packEventData(n,O),R&&this.packEventData(n,R))},r.prototype.packEventData=function(n,i){getECData(i).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},r.prototype.highlight=function(n,i,a,o){var s=n.getData(),l=queryDataIndex(s,o);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var u=s.getLayout("points"),c=s.getItemGraphicEl(l);if(!c){var d=u[l*2],v=u[l*2+1];if(isNaN(d)||isNaN(v)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(d,v))return;var I=n.get("zlevel")||0,$=n.get("z")||0;c=new SymbolClz(s,l),c.x=d,c.y=v,c.setZ(I,$);var O=c.getSymbolPath().getTextContent();O&&(O.zlevel=I,O.z=$,O.z2=this._polyline.z2+1),c.__temp=!0,s.setItemGraphicEl(l,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else ChartView$1.prototype.highlight.call(this,n,i,a,o)},r.prototype.downplay=function(n,i,a,o){var s=n.getData(),l=queryDataIndex(s,o);if(this._changePolyState("normal"),l!=null&&l>=0){var u=s.getItemGraphicEl(l);u&&(u.__temp?(s.setItemGraphicEl(l,null),this.group.remove(u)):u.downplay())}else ChartView$1.prototype.downplay.call(this,n,i,a,o)},r.prototype._changePolyState=function(n){var i=this._polygon;setStatesFlag(this._polyline,n),i&&setStatesFlag(i,n)},r.prototype._newPolyline=function(n){var i=this._polyline;return i&&this._lineGroup.remove(i),i=new ECPolyline({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(i),this._polyline=i,i},r.prototype._newPolygon=function(n,i){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new ECPolygon({shape:{points:n,stackedOnPoints:i},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},r.prototype._initSymbolLabelAnimation=function(n,i,a){var o,s,l=i.getBaseAxis(),u=l.inverse;i.type==="cartesian2d"?(o=l.isHorizontal(),s=!1):i.type==="polar"&&(o=l.dim==="angle",s=!0);var c=n.hostModel,d=c.get("animationDuration");isFunction(d)&&(d=d(null));var v=c.get("animationDelay")||0,I=isFunction(v)?v(null):v;n.eachItemGraphicEl(function($,O){var R=$;if(R){var M=[$.x,$.y],N=void 0,V=void 0,G=void 0;if(a)if(s){var Y=a,X=i.pointToCoord(M);o?(N=Y.startAngle,V=Y.endAngle,G=-X[1]/180*Math.PI):(N=Y.r0,V=Y.r,G=X[0])}else{var q=a;o?(N=q.x,V=q.x+q.width,G=$.x):(N=q.y+q.height,V=q.y,G=$.y)}var Z=V===N?0:(G-N)/(V-N);u&&(Z=1-Z);var ee=isFunction(v)?v(O):d*Z+I,ne=R.getSymbolPath(),J=ne.getTextContent();R.attr({scaleX:0,scaleY:0}),R.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:ee}),J&&J.animateFrom({style:{opacity:0}},{duration:300,delay:ee}),ne.disableLabelAnimation=!0}})},r.prototype._initOrUpdateEndLabel=function(n,i,a){var o=n.getModel("endLabel");if(anyStateShowEndLabel(n)){var s=n.getData(),l=this._polyline,u=s.getLayout("points");if(!u){l.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new ZRText$1({z2:200}),c.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var d=getLastIndexNotNull(u);d>=0&&(setLabelStyle(l,getLabelStatesModels(n,"endLabel"),{inheritColor:a,labelFetcher:n,labelDataIndex:d,defaultText:function(v,I,$){return $!=null?getDefaultInterpolatedLabel(s,$):getDefaultLabel(s,v)},enableTextSetter:!0},getEndLabelStateSpecified(o,i)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},r.prototype._endLabelOnDuring=function(n,i,a,o,s,l,u){var c=this._endLabel,d=this._polyline;if(c){n<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var v=a.getLayout("points"),I=a.hostModel,$=I.get("connectNulls"),O=l.get("precision"),R=l.get("distance")||0,M=u.getBaseAxis(),N=M.isHorizontal(),V=M.inverse,G=i.shape,Y=V?N?G.x:G.y+G.height:N?G.x+G.width:G.y,X=(N?R:0)*(V?-1:1),q=(N?0:-R)*(V?-1:1),Z=N?"x":"y",ee=getIndexRange(v,Y,Z),ne=ee.range,J=ne[1]-ne[0],te=void 0;if(J>=1){if(J>1&&!$){var Q=getPointAtIndex(v,ne[0]);c.attr({x:Q[0]+X,y:Q[1]+q}),s&&(te=I.getRawValue(ne[0]))}else{var Q=d.getPointOn(Y,Z);Q&&c.attr({x:Q[0]+X,y:Q[1]+q});var oe=I.getRawValue(ne[0]),ue=I.getRawValue(ne[1]);s&&(te=interpolateRawValues(a,O,oe,ue,ee.t))}o.lastFrameIndex=ne[0]}else{var fe=n===1||o.lastFrameIndex>0?ne[0]:0,Q=getPointAtIndex(v,fe);s&&(te=I.getRawValue(fe)),c.attr({x:Q[0]+X,y:Q[1]+q})}if(s){var de=labelInner(c);typeof de.setLabelText=="function"&&de.setLabelText(te)}}},r.prototype._doUpdateAnimation=function(n,i,a,o,s,l,u){var c=this._polyline,d=this._polygon,v=n.hostModel,I=lineAnimationDiff(this._data,n,this._stackedOnPoints,i,this._coordSys,a,this._valueOrigin),$=I.current,O=I.stackedOnCurrent,R=I.next,M=I.stackedOnNext;if(s&&(O=turnPointsIntoStep(I.stackedOnCurrent,I.current,a,s,u),$=turnPointsIntoStep(I.current,null,a,s,u),M=turnPointsIntoStep(I.stackedOnNext,I.next,a,s,u),R=turnPointsIntoStep(I.next,null,a,s,u)),getBoundingDiff($,R)>3e3||d&&getBoundingDiff(O,M)>3e3){c.stopAnimation(),c.setShape({points:R}),d&&(d.stopAnimation(),d.setShape({points:R,stackedOnPoints:M}));return}c.shape.__points=I.current,c.shape.points=$;var N={shape:{points:R}};I.current!==$&&(N.shape.__points=I.next),c.stopAnimation(),updateProps$1(c,N,v),d&&(d.setShape({points:$,stackedOnPoints:O}),d.stopAnimation(),updateProps$1(d,{shape:{stackedOnPoints:M}},v),c.shape.points!==d.shape.points&&(d.shape.points=c.shape.points));for(var V=[],G=I.status,Y=0;Y<G.length;Y++){var X=G[Y].cmd;if(X==="="){var q=n.getItemGraphicEl(G[Y].idx1);q&&V.push({el:q,ptIdx:Y})}}c.animators&&c.animators.length&&c.animators[0].during(function(){d&&d.dirtyShape();for(var Z=c.shape.__points,ee=0;ee<V.length;ee++){var ne=V[ee].el,J=V[ee].ptIdx*2;ne.x=Z[J],ne.y=Z[J+1],ne.markRedraw()}})},r.prototype.remove=function(n){var i=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(o,s){o.__temp&&(i.remove(o),a.setItemGraphicEl(s,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 i=n.getData(),a=n.coordinateSystem,o=n.pipelineContext,s=r||o.large;if(!!a){var l=map$1(a.dimensions,function($){return i.mapDimension($)}).slice(0,2),u=l.length,c=i.getCalculationInfo("stackResultDimension");isDimensionStacked(i,l[0])&&(l[0]=c),isDimensionStacked(i,l[1])&&(l[1]=c);var d=i.getStore(),v=i.getDimensionIndex(l[0]),I=i.getDimensionIndex(l[1]);return u&&{progress:function($,O){for(var R=$.end-$.start,M=s&&createFloat32Array(R*u),N=[],V=[],G=$.start,Y=0;G<$.end;G++){var X=void 0;if(u===1){var q=d.get(v,G);X=a.dataToPoint(q,null,V)}else N[0]=d.get(v,G),N[1]=d.get(I,G),X=a.dataToPoint(N,null,V);s?(M[Y++]=X[0],M[Y++]=X[1]):O.setItemLayout(G,X.slice())}s&&O.setLayout("points",M)}}}}}}var samplers={average:function(t){for(var r=0,n=0,i=0;i<t.length;i++)isNaN(t[i])||(r+=t[i],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,i){var a=r.getData(),o=r.get("sampling"),s=r.coordinateSystem,l=a.count();if(l>10&&s.type==="cartesian2d"&&o){var u=s.getBaseAxis(),c=s.getOtherAxis(u),d=u.getExtent(),v=i.getDevicePixelRatio(),I=Math.abs(d[1]-d[0])*(v||1),$=Math.round(l/I);if(isFinite($)&&$>1){o==="lttb"?r.setData(a.lttbDownSample(a.mapDimension(c.dim),1/$)):o==="minmax"&&r.setData(a.minmaxDownSample(a.mapDimension(c.dim),1/$));var O=void 0;isString(o)?O=samplers[o]:isFunction(o)&&(O=o),O&&r.setData(a.downSample(a.mapDimension(c.dim),1/$,O,indexSampler))}}}}}function install$9(t){t.registerChartView(LineView$1),t.registerSeriesModel(LineSeries),t.registerLayout(pointsLayout("line",!0)),t.registerVisual({seriesType:"line",reset:function(r){var n=r.getData(),i=r.getModel("lineStyle").getLineStyle();i&&!i.stroke&&(i.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",i)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var GridModel=function(t){__extends(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(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={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,showMinLine:!0,showMaxLine:!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),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),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,i){each$4(AXIS_TYPES,function(a,o){var s=merge(merge({},axisDefault[o],!0),i,!0),l=function(u){__extends(c,u);function c(){var d=u!==null&&u.apply(this,arguments)||this;return d.type=r+"Axis."+o,d}return c.prototype.mergeDefaultAndTheme=function(d,v){var I=fetchLayoutMode(this),$=I?getLayoutParams(d):{},O=v.getTheme();merge(d,O.get(o+"Axis")),merge(d,this.getDefaultOption()),d.type=getAxisType(d),I&&mergeLayoutParam(d,$,I)},c.prototype.optionUpdated=function(){var d=this.option;d.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},c.prototype.getCategories=function(d){var v=this.option;if(v.type==="category")return d?v.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=r+"Axis."+o,c.defaultOption=s,c}(n);t.registerComponentModel(l)}),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(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,i=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(n)||!canCalculateAffineTransform(i))){var a=n.getExtent(),o=i.getExtent(),s=this.dataToPoint([a[0],o[0]]),l=this.dataToPoint([a[1],o[1]]),u=a[1]-a[0],c=o[1]-o[0];if(!(!u||!c)){var d=(l[0]-s[0])/u,v=(l[1]-s[1])/c,I=s[0]-a[0]*d,$=s[1]-o[0]*v,O=this._transform=[d,0,0,v,I,$];this._invTransform=invert([],O)}}},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},r.prototype.containPoint=function(n){var i=this.getAxis("x"),a=this.getAxis("y");return i.contain(i.toLocalCoord(n[0]))&&a.contain(a.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,i){var a=this.dataToPoint(n),o=this.dataToPoint(i),s=this.getArea(),l=new BoundingRect$1(a[0],a[1],o[0]-a[0],o[1]-a[1]);return s.intersect(l)},r.prototype.dataToPoint=function(n,i,a){a=a||[];var o=n[0],s=n[1];if(this._transform&&o!=null&&isFinite(o)&&s!=null&&isFinite(s))return applyTransform$1(a,n,this._transform);var l=this.getAxis("x"),u=this.getAxis("y");return a[0]=l.toGlobalCoord(l.dataToCoord(o,i)),a[1]=u.toGlobalCoord(u.dataToCoord(s,i)),a},r.prototype.clampData=function(n,i){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,s=a.getExtent(),l=o.getExtent(),u=a.parse(n[0]),c=o.parse(n[1]);return i=i||[],i[0]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),i[1]=Math.min(Math.max(Math.min(l[0],l[1]),c),Math.max(l[0],l[1])),i},r.prototype.pointToData=function(n,i){var a=[];if(this._invTransform)return applyTransform$1(a,n,this._invTransform);var o=this.getAxis("x"),s=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(n[0]),i),a[1]=s.coordToData(s.toLocalCoord(n[1]),i),a},r.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},r.prototype.getArea=function(n){n=n||0;var i=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),o=Math.min(i[0],i[1])-n,s=Math.min(a[0],a[1])-n,l=Math.max(i[0],i[1])-o+n,u=Math.max(a[0],a[1])-s+n;return new BoundingRect$1(o,s,l,u)},r}(Cartesian$1),Axis2D=function(t){__extends(r,t);function r(n,i,a,o,s){var l=t.call(this,n,i,a)||this;return l.index=0,l.type=o||"value",l.position=s||"bottom",l}return r.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},r.prototype.getGlobalExtent=function(n){var i=this.getExtent();return i[0]=this.toGlobalCoord(i[0]),i[1]=this.toGlobalCoord(i[1]),n&&i[0]>i[1]&&i.reverse(),i},r.prototype.pointToData=function(n,i){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),i)},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(t,r,n){n=n||{};var i=t.coordinateSystem,a=r.axis,o={},s=a.getAxesOnZeroOf()[0],l=a.position,u=s?"onZero":l,c=a.dim,d=i.getRect(),v=[d.x,d.x+d.width,d.y,d.y+d.height],I={left:0,right:1,top:0,bottom:1,onZero:2},$=r.get("offset")||0,O=c==="x"?[v[2]-$,v[3]+$]:[v[0]-$,v[1]+$];if(s){var R=s.toGlobalCoord(s.dataToCoord(0));O[I.onZero]=Math.max(Math.min(R,O[1]),O[0])}o.position=[c==="y"?O[I[u]]:v[0],c==="x"?O[I[u]]:v[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var M={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=M[l],o.labelOffset=s?O[I[l]]-O[I.onZero]:0,r.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),retrieve(n.labelInside,r.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var N=r.get(["axisLabel","rotate"]);return o.labelRotate=u==="top"?-N:N,o.z2=1,o}function isCartesian2DSeries(t){return t.get("coordinateSystem")==="cartesian2d"}function findAxisModels(t){var r={xAxisModel:null,yAxisModel:null};return each$4(r,function(n,i){var a=i.replace(/Model$/,""),o=t.getReferringComponents(a,SINGLE_REFERRING).models[0];r[i]=o}),r}var mathLog=Math.log;function alignScaleTicks(t,r,n){var i=IntervalScale$1.prototype,a=i.getTicks.call(n),o=i.getTicks.call(n,!0),s=a.length-1,l=i.getInterval.call(n),u=getScaleExtent(t,r),c=u.extent,d=u.fixMin,v=u.fixMax;if(t.type==="log"){var I=mathLog(t.base);c=[mathLog(c[0])/I,mathLog(c[1])/I]}t.setExtent(c[0],c[1]),t.calcNiceExtent({splitNumber:s,fixMin:d,fixMax:v});var $=i.getExtent.call(t);d&&(c[0]=$[0]),v&&(c[1]=$[1]);var O=i.getInterval.call(t),R=c[0],M=c[1];if(d&&v)O=(M-R)/s;else if(d)for(M=c[0]+O*s;M<c[1]&&isFinite(M)&&isFinite(c[1]);)O=increaseInterval(O),M=c[0]+O*s;else if(v)for(R=c[1]-O*s;R>c[0]&&isFinite(R)&&isFinite(c[0]);)O=increaseInterval(O),R=c[1]-O*s;else{var N=t.getTicks().length-1;N>s&&(O=increaseInterval(O));var V=O*s;M=Math.ceil(c[1]/O)*O,R=round$1(M-V),R<0&&c[0]>=0?(R=0,M=round$1(V)):M>0&&c[1]<=0&&(M=0,R=-round$1(V))}var G=(a[0].value-o[0].value)/l,Y=(a[s].value-o[s].value)/l;i.setExtent.call(t,R+O*G,M+O*Y),i.setInterval.call(t,O),(G||Y)&&i.setNiceExtent.call(t,R+O,M-O)}var Grid=function(){function t(r,n,i){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(r,n,i),this.model=r}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(r,n){var i=this._axesMap;this._updateScale(r,this.model);function a(s){var l,u=keys(s),c=u.length;if(!!c){for(var d=[],v=c-1;v>=0;v--){var I=+u[v],$=s[I],O=$.model,R=$.scale;isIntervalOrLogScale(R)&&O.get("alignTicks")&&O.get("interval")==null?d.push($):(niceScaleExtent(R,O),isIntervalOrLogScale(R)&&(l=$))}d.length&&(l||(l=d.pop(),niceScaleExtent(l.scale,l.model)),each$4(d,function(M){alignScaleTicks(M.scale,M.model,l.scale)}))}}a(i.x),a(i.y);var o={};each$4(i.x,function(s){fixAxisOnZero(i,"y",s,o)}),each$4(i.y,function(s){fixAxisOnZero(i,"x",s,o)}),this.resize(this.model,n)},t.prototype.resize=function(r,n,i){var a=r.getBoxLayoutParams(),o=!i&&r.get("containLabel"),s=getLayoutRect(a,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;u(),o&&(each$4(l,function(c){if(!c.model.get(["axisLabel","inside"])){var d=estimateLabelUnionRect(c);if(d){var v=c.isHorizontal()?"height":"width",I=c.model.get(["axisLabel","margin"]);s[v]-=d[v]+I,c.position==="top"?s.y+=d.height+I:c.position==="left"&&(s.x+=d.width+I)}}}),u()),each$4(this._coordsList,function(c){c.calcAffineTransform()});function u(){each$4(l,function(c){var d=c.isHorizontal(),v=d?[0,s.width]:[0,s.height],I=c.inverse?1:0;c.setExtent(v[I],v[1-I]),updateAxisTransform(c,d?s.x:s.y)})}},t.prototype.getAxis=function(r,n){var i=this._axesMap[r];if(i!=null)return i[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(r,n){if(r!=null&&n!=null){var i="x"+r+"y"+n;return this._coordsMap[i]}isObject$2(r)&&(n=r.yAxisIndex,r=r.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===r||o[a].getAxis("y").index===n)return o[a]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(r,n,i){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.dataToPoint(i):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(i)):null},t.prototype.convertFromPixel=function(r,n,i){var a=this._findConvertTarget(n);return a.cartesian?a.cartesian.pointToData(i):a.axis?a.axis.coordToData(a.axis.toLocalCoord(i)):null},t.prototype._findConvertTarget=function(r){var n=r.seriesModel,i=r.xAxisModel||n&&n.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],a=r.yAxisModel||n&&n.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],o=r.gridModel,s=this._coordsList,l,u;if(n)l=n.coordinateSystem,indexOf(s,l)<0&&(l=null);else if(i&&a)l=this.getCartesian(i.componentIndex,a.componentIndex);else if(i)u=this.getAxis("x",i.componentIndex);else if(a)u=this.getAxis("y",a.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(l=this._coordsList[0])}return{cartesian:l,axis:u}},t.prototype.containPoint=function(r){var n=this._coordsList[0];if(n)return n.containPoint(r)},t.prototype._initCartesian=function(r,n,i){var a=this,o=this,s={left:!1,right:!1,top:!1,bottom:!1},l={x:{},y:{}},u={x:0,y:0};if(n.eachComponent("xAxis",c("x"),this),n.eachComponent("yAxis",c("y"),this),!u.x||!u.y){this._axesMap={},this._axesList=[];return}this._axesMap=l,each$4(l.x,function(d,v){each$4(l.y,function(I,$){var O="x"+v+"y"+$,R=new Cartesian2D(O);R.master=a,R.model=r,a._coordsMap[O]=R,a._coordsList.push(R),R.addAxis(d),R.addAxis(I)})});function c(d){return function(v,I){if(!!isAxisUsedInTheGrid(v,r)){var $=v.get("position");d==="x"?$!=="top"&&$!=="bottom"&&($=s.bottom?"top":"bottom"):$!=="left"&&$!=="right"&&($=s.left?"right":"left"),s[$]=!0;var O=new Axis2D$1(d,createScaleByModel(v),[0,0],v.get("type"),$),R=O.type==="category";O.onBand=R&&v.get("boundaryGap"),O.inverse=v.get("inverse"),v.axis=O,O.model=v,O.grid=o,O.index=I,o._axesList.push(O),l[d][I]=O,u[d]++}}}},t.prototype._updateScale=function(r,n){each$4(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),r.eachSeries(function(a){if(isCartesian2DSeries(a)){var o=findAxisModels(a),s=o.xAxisModel,l=o.yAxisModel;if(!isAxisUsedInTheGrid(s,n)||!isAxisUsedInTheGrid(l,n))return;var u=this.getCartesian(s.componentIndex,l.componentIndex),c=a.getData(),d=u.getAxis("x"),v=u.getAxis("y");i(c,d),i(c,v)}},this);function i(a,o){each$4(getDataDimensionsOnAxis(a,o.dim),function(s){o.scale.unionExtentFromData(a,s)})}},t.prototype.getTooltipAxes=function(r){var n=[],i=[];return each$4(this.getCartesians(),function(a){var o=r!=null&&r!=="auto"?a.getAxis(r):a.getBaseAxis(),s=a.getOtherAxis(o);indexOf(n,o)<0&&n.push(o),indexOf(i,s)<0&&i.push(s)}),{baseAxes:n,otherAxes:i}},t.create=function(r,n){var i=[];return r.eachComponent("grid",function(a,o){var s=new t(a,r,n);s.name="grid_"+o,s.resize(a,n,!0),a.coordinateSystem=s,i.push(s)}),r.eachSeries(function(a){if(!!isCartesian2DSeries(a)){var o=findAxisModels(a),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),c=u.coordinateSystem;a.coordinateSystem=c.getCartesian(s.componentIndex,l.componentIndex)}}),i},t.dimensions=cartesian2DDimensions,t}();function isAxisUsedInTheGrid(t,r){return t.getCoordSysModel()===r}function fixAxisOnZero(t,r,n,i){n.getAxesOnZeroOf=function(){return o?[o]:[]};var a=t[r],o,s=n.model,l=s.get(["axisLine","onZero"]),u=s.get(["axisLine","onZeroAxisIndex"]);if(!l)return;if(u!=null)canOnZeroToAxis(a[u])&&(o=a[u]);else for(var c in a)if(a.hasOwnProperty(c)&&canOnZeroToAxis(a[c])&&!i[d(a[c])]){o=a[c];break}o&&(i[d(o)]=!0);function d(v){return v.dim+"_"+v.index}}function canOnZeroToAxis(t){return t&&t.type!=="category"&&t.type!=="time"&&ifAxisCrossZero(t)}function updateAxisTransform(t,r){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(a){return a+r}:function(a){return i-a+r},t.toLocalCoord=t.dim==="x"?function(a){return a-r}:function(a){return i-a+r}}var Grid$1=Grid,PI=Math.PI,AxisBuilder=function(){function t(r,n){this.group=new Group$3,this.opt=n,this.axisModel=r,defaults(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var i=new Group$3({x:n.position[0],y:n.position[1],rotation:n.rotation});i.updateTransform(),this._transformGroup=i}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,i){var a=remRadian(n-r),o,s;return isRadianAroundZero(a)?(s=i>0?"top":"bottom",o="center"):isRadianAroundZero(a-PI)?(s=i>0?"bottom":"top",o="center"):(s="middle",a>0&&a<PI?o=i>0?"right":"left":o=i>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:s}},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,i){var a=r.get(["axisLine","show"]);if(a==="auto"&&t.handleAutoShown&&(a=t.handleAutoShown("axisLine")),!!a){var o=r.axis.getExtent(),s=i.transform,l=[o[0],0],u=[o[1],0],c=l[0]>u[0];s&&(applyTransform$1(l,l,s),applyTransform$1(u,u,s));var d=extend({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),v=new Line$1({shape:{x1:l[0],y1:l[1],x2:u[0],y2:u[1]},style:d,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(v.shape,v.style.lineWidth),v.anid="line",n.add(v);var I=r.get(["axisLine","symbol"]);if(I!=null){var $=r.get(["axisLine","symbolSize"]);isString(I)&&(I=[I,I]),(isString($)||isNumber($))&&($=[$,$]);var O=normalizeSymbolOffset(r.get(["axisLine","symbolOffset"])||0,$),R=$[0],M=$[1];each$4([{rotate:t.rotation+Math.PI/2,offset:O[0],r:0},{rotate:t.rotation-Math.PI/2,offset:O[1],r:Math.sqrt((l[0]-u[0])*(l[0]-u[0])+(l[1]-u[1])*(l[1]-u[1]))}],function(N,V){if(I[V]!=="none"&&I[V]!=null){var G=createSymbol(I[V],-R/2,-M/2,R,M,d.stroke,!0),Y=N.r+N.offset,X=c?u:l;G.attr({rotation:N.rotate,x:X[0]+Y*Math.cos(t.rotation),y:X[1]-Y*Math.sin(t.rotation),silent:!0,z2:11}),n.add(G)}})}}},axisTickLabel:function(t,r,n,i){var a=buildAxisMajorTicks(n,i,r,t),o=buildAxisLabel(n,i,r,t);if(fixMinMaxLabelShow(r,o,a),buildAxisMinorTicks(n,i,r,t.tickDirection),r.get(["axisLabel","hideOverlap"])){var s=prepareLayoutList(map$1(o,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));hideOverlap(s)}},axisName:function(t,r,n,i){var a=retrieve(t.axisName,r.get("name"));if(!!a){var o=r.get("nameLocation"),s=t.nameDirection,l=r.getModel("nameTextStyle"),u=r.get("nameGap")||0,c=r.axis.getExtent(),d=c[0]>c[1]?-1:1,v=[o==="start"?c[0]-d*u:o==="end"?c[1]+d*u:(c[0]+c[1])/2,isNameLocationCenter(o)?t.labelOffset+s*u:0],I,$=r.get("nameRotate");$!=null&&($=$*PI/180);var O;isNameLocationCenter(o)?I=AxisBuilder.innerTextLayout(t.rotation,$!=null?$:t.rotation,s):(I=endTextLayout(t.rotation,o,$||0,c),O=t.axisNameAvailableWidth,O!=null&&(O=Math.abs(O/Math.sin(I.rotation)),!isFinite(O)&&(O=null)));var R=l.getFont(),M=r.get("nameTruncate",!0)||{},N=M.ellipsis,V=retrieve(t.nameTruncateMaxWidth,M.maxWidth,O),G=new ZRText$1({x:v[0],y:v[1],rotation:I.rotation,silent:AxisBuilder.isLabelSilent(r),style:createTextStyle(l,{text:a,font:R,overflow:"truncate",width:V,ellipsis:N,fill:l.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:l.get("align")||I.textAlign,verticalAlign:l.get("verticalAlign")||I.textVerticalAlign}),z2:1});if(setTooltipConfig({el:G,componentModel:r,itemName:a}),G.__fullText=a,G.anid="name",r.get("triggerEvent")){var Y=AxisBuilder.makeAxisEventDataBase(r);Y.targetType="axisName",Y.name=a,getECData(G).eventData=Y}i.add(G),G.updateTransform(),n.add(G),G.decomposeTransform()}}};function endTextLayout(t,r,n,i){var a=remRadian(n-t),o,s,l=i[0]>i[1],u=r==="start"&&!l||r!=="start"&&l;return isRadianAroundZero(a-PI/2)?(s=u?"bottom":"top",o="center"):isRadianAroundZero(a-PI*1.5)?(s=u?"top":"bottom",o="center"):(s="middle",a<PI*1.5&&a>PI/2?o=u?"left":"right":o=u?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:s}}function fixMinMaxLabelShow(t,r,n){if(!shouldShowAllLabels(t.axis)){var i=t.get(["axisLabel","showMinLabel"]),a=t.get(["axisLabel","showMaxLabel"]);r=r||[],n=n||[];var o=r[0],s=r[1],l=r[r.length-1],u=r[r.length-2],c=n[0],d=n[1],v=n[n.length-1],I=n[n.length-2];i===!1?(ignoreEl(o),ignoreEl(c)):isTwoLabelOverlapped(o,s)&&(i?(ignoreEl(s),ignoreEl(d)):(ignoreEl(o),ignoreEl(c))),a===!1?(ignoreEl(l),ignoreEl(v)):isTwoLabelOverlapped(u,l)&&(a?(ignoreEl(u),ignoreEl(I)):(ignoreEl(l),ignoreEl(v)))}}function ignoreEl(t){t&&(t.ignore=!0)}function isTwoLabelOverlapped(t,r){var n=t&&t.getBoundingRect().clone(),i=r&&r.getBoundingRect().clone();if(!(!n||!i)){var a=identity([]);return rotate(a,a,-t.rotation),n.applyTransform(mul([],a,t.getLocalTransform())),i.applyTransform(mul([],a,r.getLocalTransform())),n.intersect(i)}}function isNameLocationCenter(t){return t==="middle"||t==="center"}function createTicks(t,r,n,i,a){for(var o=[],s=[],l=[],u=0;u<t.length;u++){var c=t[u].coord;s[0]=c,s[1]=0,l[0]=c,l[1]=n,r&&(applyTransform$1(s,s,r),applyTransform$1(l,l,r));var d=new Line$1({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:i,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(d.shape,d.style.lineWidth),d.anid=a+"_"+t[u].tickValue,o.push(d)}return o}function buildAxisMajorTicks(t,r,n,i){var a=n.axis,o=n.getModel("axisTick"),s=o.get("show");if(s==="auto"&&i.handleAutoShown&&(s=i.handleAutoShown("axisTick")),!(!s||a.scale.isBlank())){for(var l=o.getModel("lineStyle"),u=i.tickDirection*o.get("length"),c=a.getTicksCoords(),d=createTicks(c,r.transform,u,defaults(l.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),v=0;v<d.length;v++)t.add(d[v]);return d}}function buildAxisMinorTicks(t,r,n,i){var a=n.axis,o=n.getModel("minorTick");if(!(!o.get("show")||a.scale.isBlank())){var s=a.getMinorTicksCoords();if(!!s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=defaults(l.getLineStyle(),defaults(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),d=0;d<s.length;d++)for(var v=createTicks(s[d],r.transform,u,c,"minorticks_"+d),I=0;I<v.length;I++)t.add(v[I])}}function buildAxisLabel(t,r,n,i){var a=n.axis,o=retrieve(i.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||a.scale.isBlank())){var s=n.getModel("axisLabel"),l=s.get("margin"),u=a.getViewLabels(),c=(retrieve(i.labelRotate,s.get("rotate"))||0)*PI/180,d=AxisBuilder.innerTextLayout(i.rotation,c,i.labelDirection),v=n.getCategories&&n.getCategories(!0),I=[],$=AxisBuilder.isLabelSilent(n),O=n.get("triggerEvent");return each$4(u,function(R,M){var N=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(R.tickValue):R.tickValue,V=R.formattedLabel,G=R.rawLabel,Y=s;if(v&&v[N]){var X=v[N];isObject$2(X)&&X.textStyle&&(Y=new Model$1(X.textStyle,s,n.ecModel))}var q=Y.getTextColor()||n.get(["axisLine","lineStyle","color"]),Z=a.dataToCoord(N),ee=Y.getShallow("align",!0)||d.textAlign,ne=retrieve2(Y.getShallow("alignMinLabel",!0),ee),J=retrieve2(Y.getShallow("alignMaxLabel",!0),ee),te=Y.getShallow("verticalAlign",!0)||Y.getShallow("baseline",!0)||d.textVerticalAlign,Q=retrieve2(Y.getShallow("verticalAlignMinLabel",!0),te),oe=retrieve2(Y.getShallow("verticalAlignMaxLabel",!0),te),ue=new ZRText$1({x:Z,y:i.labelOffset+i.labelDirection*l,rotation:d.rotation,silent:$,z2:10+(R.level||0),style:createTextStyle(Y,{text:V,align:M===0?ne:M===u.length-1?J:ee,verticalAlign:M===0?Q:M===u.length-1?oe:te,fill:isFunction(q)?q(a.type==="category"?G:a.type==="value"?N+"":N,M):q})});if(ue.anid="label_"+N,setTooltipConfig({el:ue,componentModel:n,itemName:V,formatterParamsExtra:{isTruncated:function(){return ue.isTruncated},value:G,tickIndex:M}}),O){var fe=AxisBuilder.makeAxisEventDataBase(n);fe.targetType="axisLabel",fe.value=G,fe.tickIndex=M,a.type==="category"&&(fe.dataIndex=N),getECData(ue).eventData=fe}r.add(ue),ue.updateTransform(),I.push(ue),t.add(ue),ue.decomposeTransform()}),I}}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 i=r.getComponent("tooltip"),a=r.getComponent("axisPointer"),o=a.get("link",!0)||[],s=[];each$4(n.getCoordinateSystems(),function(l){if(!l.axisPointerEnabled)return;var u=makeKey(l.model),c=t.coordSysAxesInfo[u]={};t.coordSysMap[u]=l;var d=l.model,v=d.getModel("tooltip",i);if(each$4(l.getAxes(),curry$1(R,!1,null)),l.getTooltipAxes&&i&&v.get("show")){var I=v.get("trigger")==="axis",$=v.get(["axisPointer","type"])==="cross",O=l.getTooltipAxes(v.get(["axisPointer","axis"]));(I||$)&&each$4(O.baseAxes,curry$1(R,$?"cross":!0,I)),$&&each$4(O.otherAxes,curry$1(R,"cross",!1))}function R(M,N,V){var G=V.model.getModel("axisPointer",a),Y=G.get("show");if(!(!Y||Y==="auto"&&!M&&!isHandleTrigger(G))){N==null&&(N=G.get("triggerTooltip")),G=M?makeAxisPointerModel(V,v,a,r,M,N):G;var X=G.get("snap"),q=G.get("triggerEmphasis"),Z=makeKey(V.model),ee=N||X||V.type==="category",ne=t.axesInfo[Z]={key:Z,axis:V,coordSys:l,axisPointerModel:G,triggerTooltip:N,triggerEmphasis:q,involveSeries:ee,snap:X,useHandle:isHandleTrigger(G),seriesModels:[],linkGroup:null};c[Z]=ne,t.seriesInvolved=t.seriesInvolved||ee;var J=getLinkGroupIndex(o,V);if(J!=null){var te=s[J]||(s[J]={axesInfo:{}});te.axesInfo[Z]=ne,te.mapper=o[J].mapper,ne.linkGroup=te}}}})}function makeAxisPointerModel(t,r,n,i,a,o){var s=r.getModel("axisPointer"),l=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],u={};each$4(l,function(I){u[I]=clone$2(s.get(I))}),u.snap=t.type!=="category"&&!!o,s.get("type")==="cross"&&(u.type="line");var c=u.label||(u.label={});if(c.show==null&&(c.show=!1),a==="cross"){var d=s.get(["label","show"]);if(c.show=d!=null?d:!0,!o){var v=u.lineStyle=s.get("crossStyle");v&&defaults(c,v.textStyle)}}return t.model.getModel("axisPointer",new Model$1(u,n,i))}function collectSeriesInfo(t,r){r.eachSeries(function(n){var i=n.coordinateSystem,a=n.get(["tooltip","trigger"],!0),o=n.get(["tooltip","show"],!0);!i||a==="none"||a===!1||a==="item"||o===!1||n.get(["axisPointer","show"],!0)===!1||each$4(t.coordSysAxesInfo[makeKey(i.model)],function(s){var l=s.axis;i.getAxis(l.dim)===l&&(s.seriesModels.push(n),s.seriesDataCount==null&&(s.seriesDataCount=0),s.seriesDataCount+=n.getData().count())})})}function getLinkGroupIndex(t,r){for(var n=r.model,i=r.dim,a=0;a<t.length;a++){var o=t[a]||{};if(checkPropInLink(o[i+"AxisId"],n.id)||checkPropInLink(o[i+"AxisIndex"],n.componentIndex)||checkPropInLink(o[i+"AxisName"],n.name))return a}}function checkPropInLink(t,r){return t==="all"||isArray(t)&&indexOf(t,r)>=0||t===r}function fixValue(t){var r=getAxisInfo(t);if(!!r){var n=r.axisPointerModel,i=r.axis.scale,a=n.option,o=n.get("status"),s=n.get("value");s!=null&&(s=i.parse(s));var l=isHandleTrigger(n);o==null&&(a.status=l?"show":"hide");var u=i.getExtent().slice();u[0]>u[1]&&u.reverse(),(s==null||s>u[1])&&(s=u[1]),s<u[0]&&(s=u[0]),a.value=s,l&&(a.status=r.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo(t){var r=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return r&&r.axesInfo[makeKey(t)]}function getAxisPointerModel(t){var r=getAxisInfo(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(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,i,a,o){this.axisPointerClass&&fixValue(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,a,!0)},r.prototype.updateAxisPointer=function(n,i,a,o){this._doUpdateAxisPointerClass(n,a,!1)},r.prototype.remove=function(n,i){var a=this._axisPointer;a&&a.remove(i)},r.prototype.dispose=function(n,i){this._disposeAxisPointer(i),t.prototype.dispose.apply(this,arguments)},r.prototype._doUpdateAxisPointerClass=function(n,i,a){var o=r.getAxisPointerClass(this.axisPointerClass);if(!!o){var s=getAxisPointerModel(n);s?(this._axisPointer||(this._axisPointer=new o)).render(n,s,i,a):this._disposeAxisPointer(i)}},r.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},r.registerAxisPointerClass=function(n,i){axisPointerClazz[n]=i},r.getAxisPointerClass=function(n){return n&&axisPointerClazz[n]},r.type="axis",r}(ComponentView$1),AxisView$1=AxisView,inner$3=makeInner();function rectCoordAxisBuildSplitArea(t,r,n,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=i.coordinateSystem.getRect(),c=a.getTicksCoords({tickModel:o,clamp:!0});if(!!c.length){var d=l.length,v=inner$3(t).splitAreaColors,I=createHashMap(),$=0;if(v)for(var O=0;O<c.length;O++){var R=v.get(c[O].tickValue);if(R!=null){$=(R+(d-1)*O)%d;break}}var M=a.toGlobalCoord(c[0].coord),N=s.getAreaStyle();l=isArray(l)?l:[l];for(var O=1;O<c.length;O++){var V=a.toGlobalCoord(c[O].coord),G=void 0,Y=void 0,X=void 0,q=void 0;a.isHorizontal()?(G=M,Y=u.y,X=V-G,q=u.height,M=G+X):(G=u.x,Y=M,X=u.width,q=V-Y,M=Y+q);var Z=c[O-1].tickValue;Z!=null&&I.set(Z,$),r.add(new Rect$1({anid:Z!=null?"area_"+Z:null,shape:{x:G,y:Y,width:X,height:q},style:defaults({fill:l[$]},N),autoBatch:!0,silent:!0})),$=($+1)%d}inner$3(t).splitAreaColors=I}}}function rectCoordAxisHandleRemove(t){inner$3(t).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function(t){__extends(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,i,a,o){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!n.get("show")){var l=n.getCoordSysModel(),u=layout(l,n),c=new AxisBuilder$1(n,extend({handleAutoShown:function(v){for(var I=l.coordinateSystem.getCartesians(),$=0;$<I.length;$++)if(isIntervalOrLogScale(I[$].getOtherAxis(n.axis).scale))return!0;return!1}},u));each$4(axisBuilderAttrs,c.add,c),this._axisGroup.add(c.getGroup()),each$4(selfBuilderAttrs,function(v){n.get([v,"show"])&&axisElementBuilders[v](this,this._axisGroup,n,l)},this);var d=o&&o.type==="changeAxisOrder"&&o.isInitSort;d||groupTransition(s,this._axisGroup,n),t.prototype.render.call(this,n,i,a,o)}},r.prototype.remove=function(){rectCoordAxisHandleRemove(this)},r.type="cartesianAxis",r}(AxisView$1),axisElementBuilders={splitLine:function(t,r,n,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=isArray(l)?l:[l];for(var d=i.coordinateSystem.getRect(),v=a.isHorizontal(),I=0,$=a.getTicksCoords({tickModel:o}),O=[],R=[],M=s.getLineStyle(),N=0;N<$.length;N++){var V=a.toGlobalCoord($[N].coord);if(!(N===0&&!u||N===$.length-1&&!c)){var G=$[N].tickValue;v?(O[0]=V,O[1]=d.y,R[0]=V,R[1]=d.y+d.height):(O[0]=d.x,O[1]=V,R[0]=d.x+d.width,R[1]=V);var Y=I++%l.length,X=new Line$1({anid:G!=null?"line_"+G:null,autoBatch:!0,shape:{x1:O[0],y1:O[1],x2:R[0],y2:R[1]},style:defaults({stroke:l[Y]},M),silent:!0});subPixelOptimizeLine(X.shape,M.lineWidth),r.add(X)}}}},minorSplitLine:function(t,r,n,i){var a=n.axis,o=n.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=i.coordinateSystem.getRect(),u=a.isHorizontal(),c=a.getMinorTicksCoords();if(!!c.length)for(var d=[],v=[],I=s.getLineStyle(),$=0;$<c.length;$++)for(var O=0;O<c[$].length;O++){var R=a.toGlobalCoord(c[$][O].coord);u?(d[0]=R,d[1]=l.y,v[0]=R,v[1]=l.y+l.height):(d[0]=l.x,d[1]=R,v[0]=l.x+l.width,v[1]=R);var M=new Line$1({anid:"minor_line_"+c[$][O].tickValue,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:v[0],y2:v[1]},style:I,silent:!0});subPixelOptimizeLine(M.shape,I.lineWidth),r.add(M)}},splitArea:function(t,r,n,i){rectCoordAxisBuildSplitArea(t,r,n,i)}},CartesianXAxisView=function(t){__extends(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(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(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return r.prototype.render=function(n,i){this.group.removeAll(),n.get("show")&&this.group.add(new Rect$1({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$8(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={})})}var inner$2=makeInner(),clone=clone$2,bind=bind$1,BaseAxisPointer=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(r,n,i,a){var o=n.get("value"),s=n.get("status");if(this._axisModel=r,this._axisPointerModel=n,this._api=i,!(!a&&this._lastValue===o&&this._lastStatus===s)){this._lastValue=o,this._lastStatus=s;var l=this._group,u=this._handle;if(!s||s==="hide"){l&&l.hide(),u&&u.hide();return}l&&l.show(),u&&u.show();var c={};this.makeElOption(c,o,r,n,i);var d=c.graphicKey;d!==this._lastGraphicKey&&this.clear(i),this._lastGraphicKey=d;var v=this._moveAnimation=this.determineAnimation(r,n);if(!l)l=this._group=new Group$3,this.createPointerEl(l,c,r,n),this.createLabelEl(l,c,r,n),i.getZr().add(l);else{var I=curry$1(updateProps,n,v);this.updatePointerEl(l,c,I),this.updateLabelEl(l,c,I,n)}updateMandatoryProps(l,n,!0),this._renderHandle(o)}},t.prototype.remove=function(r){this.clear(r)},t.prototype.dispose=function(r){this.clear(r)},t.prototype.determineAnimation=function(r,n){var i=n.get("animation"),a=r.axis,o=a.type==="category",s=n.get("snap");if(!s&&!o)return!1;if(i==="auto"||i==null){var l=this.animationThreshold;if(o&&a.getBandWidth()>l)return!0;if(s){var u=getAxisInfo(r).seriesDataCount,c=a.getExtent();return Math.abs(c[0]-c[1])/u>l}return!1}return i===!0},t.prototype.makeElOption=function(r,n,i,a,o){},t.prototype.createPointerEl=function(r,n,i,a){var o=n.pointer;if(o){var s=inner$2(r).pointerEl=new graphic[o.type](clone(n.pointer));r.add(s)}},t.prototype.createLabelEl=function(r,n,i,a){if(n.label){var o=inner$2(r).labelEl=new ZRText$1(clone(n.label));r.add(o),updateLabelShowHide(o,a)}},t.prototype.updatePointerEl=function(r,n,i){var a=inner$2(r).pointerEl;a&&n.pointer&&(a.setStyle(n.pointer.style),i(a,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(r,n,i,a){var o=inner$2(r).labelEl;o&&(o.setStyle(n.label.style),i(o,{x:n.label.x,y:n.label.y}),updateLabelShowHide(o,a))},t.prototype._renderHandle=function(r){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,i=this._api.getZr(),a=this._handle,o=n.getModel("handle"),s=n.get("status");if(!o.get("show")||!s||s==="hide"){a&&i.remove(a),this._handle=null;return}var l;this._handle||(l=!0,a=this._handle=createIcon(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){stop(c.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),i.add(a)),updateMandatoryProps(a,n,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var u=o.get("size");isArray(u)||(u=[u,u]),a.scaleX=u[0]/2,a.scaleY=u[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(r,l)}},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 i=this._handle;if(!!i){this._dragging=!0;var a=this.updateHandleTransform(getHandleTransProps(i),[r,n],this._axisModel,this._axisPointerModel);this._payloadInfo=a,i.stopAnimation(),i.attr(getHandleTransProps(a)),inner$2(i).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var r=this._handle;if(!!r){var n=this._payloadInfo,i=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:i.axis.dim,axisIndex:i.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(),i=this._group,a=this._handle;n&&i&&(this._lastGraphicKey=null,i&&n.remove(i),a&&n.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),clear(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(r,n,i){return i=i||0,{x:r[i],y:r[1-i],width:n[i],height:n[1-i]}},t}();function updateProps(t,r,n,i){propsEqual(inner$2(n).lastProp,i)||(inner$2(n).lastProp=i,r?updateProps$1(n,i,t):(n.stopAnimation(),n.attr(i)))}function propsEqual(t,r){if(isObject$2(t)&&isObject$2(r)){var n=!0;return each$4(r,function(i,a){n=n&&propsEqual(t[a],i)}),!!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 i=r.get("z"),a=r.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(i!=null&&(o.z=i),a!=null&&(o.zlevel=a),o.silent=n)})}var BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(t){var r=t.get("type"),n=t.getModel(r+"Style"),i;return r==="line"?(i=n.getLineStyle(),i.fill=null):r==="shadow"&&(i=n.getAreaStyle(),i.stroke=null),i}function buildLabelElOption(t,r,n,i,a){var o=n.get("value"),s=getValueLabel(o,r.axis,r.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),u=normalizeCssArray(l.get("padding")||0),c=l.getFont(),d=getBoundingRect(s,c),v=a.position,I=d.width+u[1]+u[3],$=d.height+u[0]+u[2],O=a.align;O==="right"&&(v[0]-=I),O==="center"&&(v[0]-=I/2);var R=a.verticalAlign;R==="bottom"&&(v[1]-=$),R==="middle"&&(v[1]-=$/2),confineInContainer(v,I,$,i);var M=l.get("backgroundColor");(!M||M==="auto")&&(M=r.get(["axisLine","lineStyle","color"])),t.label={x:v[0],y:v[1],style:createTextStyle(l,{text:s,font:c,fill:l.getTextColor(),padding:u,backgroundColor:M}),z2:10}}function confineInContainer(t,r,n,i){var a=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+r,a)-r,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function getValueLabel(t,r,n,i,a){t=r.scale.parse(t);var o=r.scale.getLabel({value:t},{precision:a.precision}),s=a.formatter;if(s){var l={value:getAxisRawValue(r,{value:t}),axisDimension:r.dim,axisIndex:r.index,seriesData:[]};each$4(i,function(u){var c=n.getSeriesByIndex(u.seriesIndex),d=u.dataIndexInside,v=c&&c.getDataParams(d);v&&l.seriesData.push(v)}),isString(s)?o=s.replace("{value}",o):isFunction(s)&&(o=s(l))}return o}function getTransformedPosition(t,r,n){var i=create();return rotate(i,i,n.rotation),translate(i,i,n.position),applyTransform([t.dataToCoord(r),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function buildCartesianSingleLabelElOption(t,r,n,i,a,o){var s=AxisBuilder$1.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=a.get(["label","margin"]),buildLabelElOption(r,i,a,o,{position:getTransformedPosition(i.axis,t,n),align:s.textAlign,verticalAlign:s.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]}}var CartesianAxisPointer=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.makeElOption=function(n,i,a,o,s){var l=a.axis,u=l.grid,c=o.get("type"),d=getCartesian(u,l).getOtherAxis(l).getGlobalExtent(),v=l.toGlobalCoord(l.dataToCoord(i,!0));if(c&&c!=="none"){var I=buildElStyle(o),$=pointerShapeBuilder[c](l,v,d);$.style=I,n.graphicKey=$.type,n.pointer=$}var O=layout(u.model,a);buildCartesianSingleLabelElOption(i,n,O,a,o,s)},r.prototype.getHandleTransform=function(n,i,a){var o=layout(i.axis.grid.model,i,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var s=getTransformedPosition(i.axis,n,o);return{x:s[0],y:s[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},r.prototype.updateHandleTransform=function(n,i,a,o){var s=a.axis,l=s.grid,u=s.getGlobalExtent(!0),c=getCartesian(l,s).getOtherAxis(s).getGlobalExtent(),d=s.dim==="x"?0:1,v=[n.x,n.y];v[d]+=i[d],v[d]=Math.min(u[1],v[d]),v[d]=Math.max(u[0],v[d]);var I=(c[1]+c[0])/2,$=[I,I];$[d]=v[d];var O=[{verticalAlign:"middle"},{align:"center"}];return{x:v[0],y:v[1],rotation:n.rotation,cursorPoint:$,tooltipOption:O[d]}},r}(BaseAxisPointer$1);function getCartesian(t,r){var n={};return n[r.dim+"AxisIndex"]=r.index,t.getCartesian(n)}var pointerShapeBuilder={line:function(t,r,n){var i=makeLineShape([r,n[0]],[r,n[1]],getAxisDimIndex(t));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(t,r,n){var i=Math.max(1,t.getBandWidth()),a=n[1]-n[0];return{type:"Rect",shape:makeRectShape([r-i/2,n[0]],[i,a],getAxisDimIndex(t))}}};function getAxisDimIndex(t){return t.dim==="x"?0:1}var CartesianAxisPointer$1=CartesianAxisPointer,AxisPointerModel=function(t){__extends(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,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},r}(ComponentModel$1),AxisPointerModel$1=AxisPointerModel,inner$1=makeInner(),each$1=each$4;function register(t,r,n){if(!env$1.node){var i=r.getZr();inner$1(i).records||(inner$1(i).records={}),initGlobalListeners(i,r);var a=inner$1(i).records[t]||(inner$1(i).records[t]={});a.handler=n}}function initGlobalListeners(t,r){if(inner$1(t).initialized)return;inner$1(t).initialized=!0,n("click",curry$1(doEnter,"click")),n("mousemove",curry$1(doEnter,"mousemove")),n("globalout",onLeave);function n(i,a){t.on(i,function(o){var s=makeDispatchAction$1(r);each$1(inner$1(t).records,function(l){l&&a(l,o,s.dispatchAction)}),dispatchTooltipFinally(s.pendings,r)})}}function dispatchTooltipFinally(t,r){var n=t.showTip.length,i=t.hideTip.length,a;n?a=t.showTip[n-1]:i&&(a=t.hideTip[i-1]),a&&(a.dispatchAction=null,r.dispatchAction(a))}function onLeave(t,r,n){t.handler("leave",null,n)}function doEnter(t,r,n,i){r.handler(t,n,i)}function makeDispatchAction$1(t){var r={showTip:[],hideTip:[]},n=function(i){var a=r[i.type];a?a.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:r}}function unregister(t,r){if(!env$1.node){var n=r.getZr(),i=(inner$1(n).records||{})[t];i&&(inner$1(n).records[t]=null)}}var AxisPointerView=function(t){__extends(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,i,a){var o=i.getComponent("tooltip"),s=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";register("axisPointer",a,function(l,u,c){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&c({type:"updateAxisPointer",currTrigger:l,x:u&&u.offsetX,y:u&&u.offsetY})})},r.prototype.remove=function(n,i){unregister("axisPointer",i)},r.prototype.dispose=function(n,i){unregister("axisPointer",i)},r.type="axisPointer",r}(ComponentView$1),AxisPointerView$1=AxisPointerView;function findPointFromSeries(t,r){var n=[],i=t.seriesIndex,a;if(i==null||!(a=r.getSeriesByIndex(i)))return{point:[]};var o=a.getData(),s=queryDataIndex(o,t);if(s==null||s<0||isArray(s))return{point:[]};var l=o.getItemGraphicEl(s),u=a.coordinateSystem;if(a.getTooltipPosition)n=a.getTooltipPosition(s)||[];else if(u&&u.dataToPoint)if(t.isStacked){var c=u.getBaseAxis(),d=u.getOtherAxis(c),v=d.dim,I=c.dim,$=v==="x"||v==="radius"?1:0,O=o.mapDimension(I),R=[];R[$]=o.get(O,s),R[1-$]=o.get(o.getCalculationInfo("stackResultDimension"),s),n=u.dataToPoint(R)||[]}else n=u.dataToPoint(o.getValues(map$1(u.dimensions,function(N){return o.mapDimension(N)}),s))||[];else if(l){var M=l.getBoundingRect().clone();M.applyTransform(l.transform),n=[M.x+M.width/2,M.y+M.height/2]}return{point:n,el:l}}var inner=makeInner();function axisTrigger(t,r,n){var i=t.currTrigger,a=[t.x,t.y],o=t,s=t.dispatchAction||bind$1(n.dispatchAction,n),l=r.getComponent("axisPointer").coordSysAxesInfo;if(!!l){illegalPoint(a)&&(a=findPointFromSeries({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},r).point);var u=illegalPoint(a),c=o.axesInfo,d=l.axesInfo,v=i==="leave"||illegalPoint(a),I={},$={},O={list:[],map:{}},R={showPointer:curry$1(showPointer,$),showTooltip:curry$1(showTooltip,O)};each$4(l.coordSysMap,function(N,V){var G=u||N.containPoint(a);each$4(l.coordSysAxesInfo[V],function(Y,X){var q=Y.axis,Z=findInputAxisInfo(c,Y);if(!v&&G&&(!c||Z)){var ee=Z&&Z.value;ee==null&&!u&&(ee=q.pointToData(a)),ee!=null&&processOnAxis(Y,ee,R,!1,I)}})});var M={};return each$4(d,function(N,V){var G=N.linkGroup;G&&!$[V]&&each$4(G.axesInfo,function(Y,X){var q=$[X];if(Y!==N&&q){var Z=q.value;G.mapper&&(Z=N.axis.scale.parse(G.mapper(Z,makeMapperParam(Y),makeMapperParam(N)))),M[N.key]=Z}})}),each$4(M,function(N,V){processOnAxis(d[V],N,R,!0,I)}),updateModelActually($,d,I),dispatchTooltipActually(O,a,t,s),dispatchHighDownActually(d,s,n),I}}function processOnAxis(t,r,n,i,a){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(r))){if(!t.involveSeries){n.showPointer(t,r);return}var s=buildPayloadsBySeries(r,t),l=s.payloadBatch,u=s.snapToValue;l[0]&&a.seriesIndex==null&&extend(a,l[0]),!i&&t.snap&&o.containData(u)&&u!=null&&(r=u),n.showPointer(t,r,l),n.showTooltip(t,s,u)}}function buildPayloadsBySeries(t,r){var n=r.axis,i=n.dim,a=t,o=[],s=Number.MAX_VALUE,l=-1;return each$4(r.seriesModels,function(u,c){var d=u.getData().mapDimensionsAll(i),v,I;if(u.getAxisTooltipData){var $=u.getAxisTooltipData(d,t,n);I=$.dataIndices,v=$.nestestValue}else{if(I=u.getData().indicesOfNearest(d[0],t,n.type==="category"?.5:null),!I.length)return;v=u.getData().get(d[0],I[0])}if(!(v==null||!isFinite(v))){var O=t-v,R=Math.abs(O);R<=s&&((R<s||O>=0&&l<0)&&(s=R,l=O,a=v,o.length=0),each$4(I,function(M){o.push({seriesIndex:u.seriesIndex,dataIndexInside:M,dataIndex:u.getData().getRawIndex(M)})}))}}),{payloadBatch:o,snapToValue:a}}function showPointer(t,r,n,i){t[r.key]={value:n,payloadBatch:i}}function showTooltip(t,r,n,i){var a=n.payloadBatch,o=r.axis,s=o.model,l=r.axisPointerModel;if(!(!r.triggerTooltip||!a.length)){var u=r.coordSys.model,c=makeKey(u),d=t.map[c];d||(d=t.map[c]={coordSysId:u.id,coordSysIndex:u.componentIndex,coordSysType:u.type,coordSysMainType:u.mainType,dataByAxis:[]},t.list.push(d)),d.dataByAxis.push({axisDim:o.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:i,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function updateModelActually(t,r,n){var i=n.axesInfo=[];each$4(r,function(a,o){var s=a.axisPointerModel.option,l=t[o];l?(!a.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!a.useHandle&&(s.status="hide"),s.status==="show"&&i.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:s.value})})}function dispatchTooltipActually(t,r,n,i){if(illegalPoint(r)||!t.list.length){i({type:"hideTip"});return}var a=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:r[0],y:r[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:t.list})}function dispatchHighDownActually(t,r,n){var i=n.getZr(),a="axisPointerLastHighlights",o=inner(i)[a]||{},s=inner(i)[a]={};each$4(t,function(c,d){var v=c.axisPointerModel.option;v.status==="show"&&c.triggerEmphasis&&each$4(v.seriesDataIndices,function(I){var $=I.seriesIndex+" | "+I.dataIndex;s[$]=I})});var l=[],u=[];each$4(o,function(c,d){!s[d]&&u.push(c)}),each$4(s,function(c,d){!o[d]&&l.push(c)}),u.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:u}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function findInputAxisInfo(t,r){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(r.axis.dim===i.axisDim&&r.axis.model.componentIndex===i.axisIndex)return i}}function makeMapperParam(t){var r=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=r.componentIndex,n.axisName=n[i+"AxisName"]=r.name,n.axisId=n[i+"AxisId"]=r.id,n}function illegalPoint(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function install$7(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(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$6(t){use(install$8),use(install$7)}function makeBackground(t,r){var n=normalizeCssArray(r.get("padding")),i=r.getItemStyle(["color","opacity"]);return i.fill=r.get("backgroundColor"),t=new Rect$1({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:i,silent:!0,z2:-1}),t}var TooltipModel=function(t){__extends(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,i=t.length;n<i;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$2(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 i=t.get("backgroundColor"),a=t.get("borderWidth");r=convertToColorString(r);var o=mirrorPos(n),s=Math.max(Math.round(a)*1.5,6),l="",u=CSS_TRANSFORM_VENDOR+":",c;indexOf(["left","right"],o)>-1?(l+="top:50%",u+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(l+="left:50%",u+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var d=c*Math.PI/180,v=s+a,I=v*Math.abs(Math.cos(d))+v*Math.abs(Math.sin(d)),$=Math.round(((I-Math.SQRT2*a)/2+Math.SQRT2*a-(I-v)/2)*100)/100;l+=";"+o+":-"+$+"px";var O=r+" solid "+a+"px;",R=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+u+";","border-bottom:"+O,"border-right:"+O,"background-color:"+i+";"];return'<div style="'+R.join("")+'"></div>'}function assembleTransition(t,r){var n="cubic-bezier(0.23,1,0.32,1)",i=" "+t/2+"s "+n,a="opacity"+i+",visibility"+i;return r||(i=" "+t+"s "+n,a+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+i:",left"+i+",top"+i),CSS_TRANSITION_VENDOR+":"+a}function assembleTransform(t,r,n){var i=t.toFixed(0)+"px",a=r.toFixed(0)+"px";if(!env$1.transformSupported)return n?"top:"+a+";left:"+i+";":[["top",a],["left",i]];var o=env$1.transform3dSupported,s="translate"+(o?"3d":"")+"("+i+","+a+(o?",0":"")+")";return n?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+s+";":[["top",0],["left",0],[TRANSFORM_VENDOR,s]]}function assembleFont(t){var r=[],n=t.get("fontSize"),i=t.getTextColor();i&&r.push("color:"+i),r.push("font:"+t.getFont());var a=retrieve2(t.get("lineHeight"),Math.round(n*3/2));n&&r.push("line-height:"+a+"px");var o=t.get("textShadowColor"),s=t.get("textShadowBlur")||0,l=t.get("textShadowOffsetX")||0,u=t.get("textShadowOffsetY")||0;return o&&s&&r.push("text-shadow:"+l+"px "+u+"px "+s+"px "+o),each$4(["decoration","align"],function(c){var d=t.get(c);d&&r.push("text-"+c+":"+d)}),r.join(";")}function assembleCssText(t,r,n){var i=[],a=t.get("transitionDuration"),o=t.get("backgroundColor"),s=t.get("shadowBlur"),l=t.get("shadowColor"),u=t.get("shadowOffsetX"),c=t.get("shadowOffsetY"),d=t.getModel("textStyle"),v=getPaddingFromTooltipModel(t,"html"),I=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+I),r&&a&&i.push(assembleTransition(a,n)),o&&i.push("background-color:"+o),each$4(["width","color","radius"],function($){var O="border-"+$,R=toCamelCase(O),M=t.get(R);M!=null&&i.push(O+":"+M+($==="color"?"":"px"))}),i.push(assembleFont(d)),v!=null&&i.push("padding:"+normalizeCssArray(v).join("px ")+"px"),i.join(";")+";"}function makeStyleCoord$1(t,r,n,i,a){var o=r&&r.painter;if(n){var s=o&&o.getViewportRoot();s&&transformLocalCoord(t,s,n,i,a)}else{t[0]=i,t[1]=a;var l=o&&o.getViewportRootOffset();l&&(t[0]+=l.offsetLeft,t[1]+=l.offsetTop)}t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipHTMLContent=function(){function t(r,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,env$1.wxa)return null;var i=document.createElement("div");i.domBelongToZr=!0,this.el=i;var a=this._zr=r.getZr(),o=n.appendTo,s=o&&(isString(o)?document.querySelector(o):isDom(o)?o:isFunction(o)&&o(r.getDom()));makeStyleCoord$1(this._styleCoord,a,s,r.getWidth()/2,r.getHeight()/2),(s||r.getDom()).appendChild(i),this._api=r,this._container=s;var l=this;i.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},i.onmousemove=function(u){if(u=u||window.event,!l._enterable){var c=a.handler,d=a.painter.getViewportRoot();normalizeEvent(d,u,!0),c.dispatch("mousemove",u)}},i.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return t.prototype.update=function(r){if(!this._container){var n=this._api.getDom(),i=getComputedStyle$2(n,"position"),a=n.style;a.position!=="absolute"&&i!=="absolute"&&(a.position="relative")}var o=r.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=r.get("className")||""},t.prototype.show=function(r,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var i=this.el,a=i.style,o=this._styleCoord;i.innerHTML?a.cssText=gCssText+assembleCssText(r,!this._firstShow,this._longHide)+assembleTransform(o[0],o[1],!0)+("border-color:"+convertToColorString(n)+";")+(r.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(r,n,i,a,o){var s=this.el;if(r==null){s.innerHTML="";return}var l="";if(isString(o)&&i.get("trigger")==="item"&&!shouldTooltipConfine(i)&&(l=assembleArrow(i,a,o)),isString(r))s.innerHTML=r+l;else if(r){s.innerHTML="",isArray(r)||(r=[r]);for(var u=0;u<r.length;u++)isDom(r[u])&&r[u].parentNode!==s&&s.appendChild(r[u]);if(l&&s.childNodes.length){var c=document.createElement("div");c.innerHTML=l,s.appendChild(c)}}},t.prototype.setEnterable=function(r){this._enterable=r},t.prototype.getSize=function(){var r=this.el;return r?[r.offsetWidth,r.offsetHeight]:[0,0]},t.prototype.moveTo=function(r,n){if(!!this.el){var i=this._styleCoord;if(makeStyleCoord$1(i,this._zr,this._container,r,n),i[0]!=null&&i[1]!=null){var a=this.el.style,o=assembleTransform(i[0],i[1]);each$4(o,function(s){a[s[0]]=s[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)&&!this._alwaysShowContent&&(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(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el.parentNode;r&&r.removeChild(this.el),this.el=this._container=null},t}(),TooltipHTMLContent$1=TooltipHTMLContent,TooltipRichContent=function(){function t(r){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,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(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(r,n,i,a,o){var s=this;isObject$2(r)&&throwError(""),this.el&&this._zr.remove(this.el);var l=i.getModel("textStyle");this.el=new ZRText$1({style:{rich:n.richTextStyles,text:r,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:l.get("textShadowColor"),fill:i.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(i,"richText"),verticalAlign:"top",align:"left"},z:i.get("z")}),each$4(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){s.el.style[c]=i.get(c)}),each$4(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){s.el.style[c]=l.get(c)||0}),this._zr.add(this.el);var u=this;this.el.on("mouseover",function(){u._enterable&&(clearTimeout(u._hideTimeout),u._show=!0),u._inContent=!0}),this.el.on("mouseout",function(){u._enterable&&u._show&&u.hideLater(u._hideDelay),u._inContent=!1})},t.prototype.setEnterable=function(r){this._enterable=r},t.prototype.getSize=function(){var r=this.el,n=this.el.getBoundingRect(),i=calcShadowOuterSize(r.style);return[n.width+i.left+i.right,n.height+i.top+i.bottom]},t.prototype.moveTo=function(r,n){var i=this.el;if(i){var a=this._styleCoord;makeStyleCoord(a,this._zr,r,n),r=a[0],n=a[1];var o=i.style,s=mathMaxWith0(o.borderWidth||0),l=calcShadowOuterSize(o);i.x=r+s+l.left,i.y=n+s+l.top,i.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)&&!this._alwaysShowContent&&(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),i=mathMaxWith0(t.shadowOffsetY||0);return{left:mathMaxWith0(r-n),right:mathMaxWith0(r+n),top:mathMaxWith0(r-i),bottom:mathMaxWith0(r+i)}}function makeStyleCoord(t,r,n,i){t[0]=n,t[1]=i,t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipRichContent$1=TooltipRichContent,proxyRect=new Rect$1({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function(t){__extends(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,i){if(!(env$1.node||!i.getDom())){var a=n.getComponent("tooltip"),o=this._renderMode=getTooltipRenderMode(a.get("renderMode"));this._tooltipContent=o==="richText"?new TooltipRichContent$1(i):new TooltipHTMLContent$1(i,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},r.prototype.render=function(n,i,a){if(!(env$1.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=i,this._api=a;var o=this._tooltipContent;o.update(n),o.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear(this,"_updatePosition")}},r.prototype._initGlobalListener=function(){var n=this._tooltipModel,i=n.get("triggerOn");register("itemTooltip",this._api,bind$1(function(a,o,s){i!=="none"&&(i.indexOf(a)>=0?this._tryShow(o,s):a==="leave"&&this._hide(s))},this))},r.prototype._keepShow=function(){var n=this._tooltipModel,i=this._ecModel,a=this._api,o=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&s.manuallyShowTip(n,i,a,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},r.prototype.manuallyShowTip=function(n,i,a,o){if(!(o.from===this.uid||env$1.node||!a.getDom())){var s=makeDispatchAction(o,a);this._ticket="";var l=o.dataByCoordSys,u=findComponentReference(o,i,a);if(u){var c=u.el.getBoundingRect().clone();c.applyTransform(u.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:u.el,position:o.position,positionDefault:"bottom"},s)}else if(o.tooltip&&o.x!=null&&o.y!=null){var d=proxyRect;d.x=o.x,d.y=o.y,d.update(),getECData(d).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:d},s)}else if(l)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:l,tooltipOption:o.tooltipOption},s);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(n,i,a,o))return;var v=findPointFromSeries(o,i),I=v.point[0],$=v.point[1];I!=null&&$!=null&&this._tryShow({offsetX:I,offsetY:$,target:v.el,position:o.position,positionDefault:"bottom"},s)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},s))}},r.prototype.manuallyHideTip=function(n,i,a,o){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(makeDispatchAction(o,a))},r.prototype._manuallyAxisShowTip=function(n,i,a,o){var s=o.seriesIndex,l=o.dataIndex,u=i.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||u==null)){var c=i.getSeriesByIndex(s);if(!!c){var d=c.getData(),v=buildTooltipModel([d.getItemModel(l),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(v.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:o.position}),!0}}},r.prototype._tryShow=function(n,i){var a=n.target,o=this._tooltipModel;if(!!o){this._lastX=n.offsetX,this._lastY=n.offsetY;var s=n.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,n);else if(a){var l=getECData(a);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var u,c;findEventDispatcher(a,function(d){if(getECData(d).dataIndex!=null)return u=d,!0;if(getECData(d).tooltipConfig!=null)return c=d,!0},!0),u?this._showSeriesItemTooltip(n,u,i):c?this._showComponentItemTooltip(n,c,i):this._hide(i)}else this._lastDataByCoordSys=null,this._hide(i)}},r.prototype._showOrMove=function(n,i){var a=n.get("showDelay");i=bind$1(i,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(i,a):i()},r.prototype._showAxisTooltip=function(n,i){var a=this._ecModel,o=this._tooltipModel,s=[i.offsetX,i.offsetY],l=buildTooltipModel([i.tooltipOption],o),u=this._renderMode,c=[],d=createTooltipMarkup("section",{blocks:[],noHeader:!0}),v=[],I=new TooltipMarkupStyleCreator;each$4(n,function(V){each$4(V.dataByAxis,function(G){var Y=a.getComponent(G.axisDim+"Axis",G.axisIndex),X=G.value;if(!(!Y||X==null)){var q=getValueLabel(X,Y.axis,a,G.seriesDataIndices,G.valueLabelOpt),Z=createTooltipMarkup("section",{header:q,noHeader:!trim(q),sortBlocks:!0,blocks:[]});d.blocks.push(Z),each$4(G.seriesDataIndices,function(ee){var ne=a.getSeriesByIndex(ee.seriesIndex),J=ee.dataIndexInside,te=ne.getDataParams(J);if(!(te.dataIndex<0)){te.axisDim=G.axisDim,te.axisIndex=G.axisIndex,te.axisType=G.axisType,te.axisId=G.axisId,te.axisValue=getAxisRawValue(Y.axis,{value:X}),te.axisValueLabel=q,te.marker=I.makeTooltipMarker("item",convertToColorString(te.color),u);var Q=normalizeTooltipFormatResult(ne.formatTooltip(J,!0,null)),oe=Q.frag;if(oe){var ue=buildTooltipModel([ne],o).get("valueFormatter");Z.blocks.push(ue?extend({valueFormatter:ue},oe):oe)}Q.text&&v.push(Q.text),c.push(te)}})}})}),d.blocks.reverse(),v.reverse();var $=i.position,O=l.get("order"),R=buildTooltipMarkup(d,I,u,O,a.get("useUTC"),l.get("textStyle"));R&&v.unshift(R);var M=u==="richText"?`
143
+
144
+ `:"<br/>",N=v.join(M);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,c)?this._updatePosition(l,$,s[0],s[1],this._tooltipContent,c):this._showTooltipContent(l,N,c,Math.random()+"",s[0],s[1],$,null,I)})},r.prototype._showSeriesItemTooltip=function(n,i,a){var o=this._ecModel,s=getECData(i),l=s.seriesIndex,u=o.getSeriesByIndex(l),c=s.dataModel||u,d=s.dataIndex,v=s.dataType,I=c.getData(v),$=this._renderMode,O=n.positionDefault,R=buildTooltipModel([I.getItemModel(d),c,u&&(u.coordinateSystem||{}).model],this._tooltipModel,O?{position:O}:null),M=R.get("trigger");if(!(M!=null&&M!=="item")){var N=c.getDataParams(d,v),V=new TooltipMarkupStyleCreator;N.marker=V.makeTooltipMarker("item",convertToColorString(N.color),$);var G=normalizeTooltipFormatResult(c.formatTooltip(d,!1,v)),Y=R.get("order"),X=R.get("valueFormatter"),q=G.frag,Z=q?buildTooltipMarkup(X?extend({valueFormatter:X},q):q,V,$,Y,o.get("useUTC"),R.get("textStyle")):G.text,ee="item_"+c.name+"_"+d;this._showOrMove(R,function(){this._showTooltipContent(R,Z,N,ee,n.offsetX,n.offsetY,n.position,n.target,V)}),a({type:"showTip",dataIndexInside:d,dataIndex:I.getRawIndex(d),seriesIndex:l,from:this.uid})}},r.prototype._showComponentItemTooltip=function(n,i,a){var o=this._renderMode==="html",s=getECData(i),l=s.tooltipConfig,u=l.option||{},c=u.encodeHTMLContent;if(isString(u)){var d=u;u={content:d,formatter:d},c=!0}c&&o&&u.content&&(u=clone$2(u),u.content=encodeHTML(u.content));var v=[u],I=this._ecModel.getComponent(s.componentMainType,s.componentIndex);I&&v.push(I),v.push({formatter:u.content});var $=n.positionDefault,O=buildTooltipModel(v,this._tooltipModel,$?{position:$}:null),R=O.get("content"),M=Math.random()+"",N=new TooltipMarkupStyleCreator;this._showOrMove(O,function(){var V=clone$2(O.get("formatterParams")||{});this._showTooltipContent(O,R,V,M,n.offsetX,n.offsetY,n.position,i,N)}),a({type:"showTip",from:this.uid})},r.prototype._showTooltipContent=function(n,i,a,o,s,l,u,c,d){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var v=this._tooltipContent;v.setEnterable(n.get("enterable"));var I=n.get("formatter");u=u||n.get("position");var $=i,O=this._getNearestPoint([s,l],a,n.get("trigger"),n.get("borderColor")),R=O.color;if(I)if(isString(I)){var M=n.ecModel.get("useUTC"),N=isArray(a)?a[0]:a,V=N&&N.axisType&&N.axisType.indexOf("time")>=0;$=I,V&&($=format(N.axisValue,$,M)),$=formatTpl($,a,!0)}else if(isFunction(I)){var G=bind$1(function(Y,X){Y===this._ticket&&(v.setContent(X,d,n,R,u),this._updatePosition(n,u,s,l,v,a,c))},this);this._ticket=o,$=I(a,o,G)}else $=I;v.setContent($,d,n,R,u),v.show(n,R),this._updatePosition(n,u,s,l,v,a,c)}},r.prototype._getNearestPoint=function(n,i,a,o){if(a==="axis"||isArray(i))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!isArray(i))return{color:o||i.color||i.borderColor}},r.prototype._updatePosition=function(n,i,a,o,s,l,u){var c=this._api.getWidth(),d=this._api.getHeight();i=i||n.get("position");var v=s.getSize(),I=n.get("align"),$=n.get("verticalAlign"),O=u&&u.getBoundingRect().clone();if(u&&O.applyTransform(u.transform),isFunction(i)&&(i=i([a,o],l,s.el,O,{viewSize:[c,d],contentSize:v.slice()})),isArray(i))a=parsePercent(i[0],c),o=parsePercent(i[1],d);else if(isObject$2(i)){var R=i;R.width=v[0],R.height=v[1];var M=getLayoutRect(R,{width:c,height:d});a=M.x,o=M.y,I=null,$=null}else if(isString(i)&&u){var N=calcTooltipPosition(i,O,v,n.get("borderWidth"));a=N[0],o=N[1]}else{var N=refixTooltipPosition(a,o,s,c,d,I?null:20,$?null:20);a=N[0],o=N[1]}if(I&&(a-=isCenterAlign(I)?v[0]/2:I==="right"?v[0]:0),$&&(o-=isCenterAlign($)?v[1]/2:$==="bottom"?v[1]:0),shouldTooltipConfine(n)){var N=confineTooltipPosition(a,o,s,c,d);a=N[0],o=N[1]}s.moveTo(a,o)},r.prototype._updateContentNotChangedOnAxis=function(n,i){var a=this._lastDataByCoordSys,o=this._cbParamsList,s=!!a&&a.length===n.length;return s&&each$4(a,function(l,u){var c=l.dataByAxis||[],d=n[u]||{},v=d.dataByAxis||[];s=s&&c.length===v.length,s&&each$4(c,function(I,$){var O=v[$]||{},R=I.seriesDataIndices||[],M=O.seriesDataIndices||[];s=s&&I.value===O.value&&I.axisType===O.axisType&&I.axisId===O.axisId&&R.length===M.length,s&&each$4(R,function(N,V){var G=M[V];s=s&&N.seriesIndex===G.seriesIndex&&N.dataIndex===G.dataIndex}),o&&each$4(I.seriesDataIndices,function(N){var V=N.seriesIndex,G=i[V],Y=o[V];G&&Y&&Y.data!==G.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=i,!!s},r.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},r.prototype.dispose=function(n,i){env$1.node||!i.getDom()||(clear(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",i))},r.type="tooltip",r}(ComponentView$1);function buildTooltipModel(t,r,n){var i=r.ecModel,a;n?(a=new Model$1(n,i,i),a=new Model$1(r.option,a,i)):a=r;for(var o=t.length-1;o>=0;o--){var s=t[o];s&&(s instanceof Model$1&&(s=s.get("tooltip",!0)),isString(s)&&(s={formatter:s}),s&&(a=new Model$1(s,a,i)))}return a}function makeDispatchAction(t,r){return t.dispatchAction||bind$1(r.dispatchAction,r)}function refixTooltipPosition(t,r,n,i,a,o,s){var l=n.getSize(),u=l[0],c=l[1];return o!=null&&(t+u+o+2>i?t-=u+o:t+=o),s!=null&&(r+c+s>a?r-=c+s:r+=s),[t,r]}function confineTooltipPosition(t,r,n,i,a){var o=n.getSize(),s=o[0],l=o[1];return t=Math.min(t+s,i)-s,r=Math.min(r+l,a)-l,t=Math.max(t,0),r=Math.max(r,0),[t,r]}function calcTooltipPosition(t,r,n,i){var a=n[0],o=n[1],s=Math.ceil(Math.SQRT2*i)+8,l=0,u=0,c=r.width,d=r.height;switch(t){case"inside":l=r.x+c/2-a/2,u=r.y+d/2-o/2;break;case"top":l=r.x+c/2-a/2,u=r.y-o-s;break;case"bottom":l=r.x+c/2-a/2,u=r.y+d+s;break;case"left":l=r.x-a-s,u=r.y+d/2-o/2;break;case"right":l=r.x+c+s,u=r.y+d/2-o/2}return[l,u]}function isCenterAlign(t){return t==="center"||t==="middle"}function findComponentReference(t,r,n){var i=preParseFinder(t).queryOptionMap,a=i.keys()[0];if(!(!a||a==="series")){var o=queryReferringComponents(r,a,i.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),s=o.models[0];if(!!s){var l=n.getViewOfComponentModel(s),u;if(l.group.traverse(function(c){var d=getECData(c).tooltipConfig;if(d&&d.name===t.name)return u=c,!0}),u)return{componentMainType:a,componentIndex:s.componentIndex,el:u}}}}var TooltipView$1=TooltipView;function install$5(t){use(install$7),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 TitleModel=function(t){__extends(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(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,i,a){if(this.group.removeAll(),!!n.get("show")){var o=this.group,s=n.getModel("textStyle"),l=n.getModel("subtextStyle"),u=n.get("textAlign"),c=retrieve2(n.get("textBaseline"),n.get("textVerticalAlign")),d=new ZRText$1({style:createTextStyle(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),v=d.getBoundingRect(),I=n.get("subtext"),$=new ZRText$1({style:createTextStyle(l,{text:I,fill:l.getTextColor(),y:v.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),O=n.get("link"),R=n.get("sublink"),M=n.get("triggerEvent",!0);d.silent=!O&&!M,$.silent=!R&&!M,O&&d.on("click",function(){windowOpen(O,"_"+n.get("target"))}),R&&$.on("click",function(){windowOpen(R,"_"+n.get("subtarget"))}),getECData(d).eventData=getECData($).eventData=M?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(d),I&&o.add($);var N=o.getBoundingRect(),V=n.getBoxLayoutParams();V.width=N.width,V.height=N.height;var G=getLayoutRect(V,{width:a.getWidth(),height:a.getHeight()},n.get("padding"));u||(u=n.get("left")||n.get("right"),u==="middle"&&(u="center"),u==="right"?G.x+=G.width:u==="center"&&(G.x+=G.width/2)),c||(c=n.get("top")||n.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?G.y+=G.height:c==="middle"&&(G.y+=G.height/2),c=c||"top"),o.x=G.x,o.y=G.y,o.markRedraw();var Y={align:u,verticalAlign:c};d.setStyle(Y),$.setStyle(Y),N=o.getBoundingRect();var X=G.margin,q=n.getItemStyle(["color","opacity"]);q.fill=n.get("backgroundColor");var Z=new Rect$1({shape:{x:N.x-X[3],y:N.y-X[0],width:N.width+X[1]+X[3],height:N.height+X[0]+X[2],r:n.get("borderRadius")},style:q,subPixelOptimize:!0,silent:!0});o.add(Z)}},r.type="title",r}(ComponentView$1);function install$4(t){t.registerComponentModel(TitleModel),t.registerComponentView(TitleView)}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(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,i,a){this.mergeDefaultAndTheme(n,a),n.selected=n.selected||{},this._updateSelector(n)},r.prototype.mergeOption=function(n,i){t.prototype.mergeOption.call(this,n,i),this._updateSelector(n)},r.prototype._updateSelector=function(n){var i=n.selector,a=this.ecModel;i===!0&&(i=n.selector=["all","inverse"]),isArray(i)&&each$4(i,function(o,s){isString(o)&&(o={type:o}),i[s]=merge(o,getDefaultSelectorOptions(a,o.type))})},r.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var i=!1,a=0;a<n.length;a++){var o=n[a].get("name");if(this.isSelected(o)){this.select(o),i=!0;break}}!i&&this.select(n[0].get("name"))}},r.prototype._updateData=function(n){var i=[],a=[];n.eachRawSeries(function(u){var c=u.name;a.push(c);var d;if(u.legendVisualProvider){var v=u.legendVisualProvider,I=v.getAllNames();n.isSeriesFiltered(u)||(a=a.concat(I)),I.length?i=i.concat(I):d=!0}else d=!0;d&&isNameSpecified(u)&&i.push(u.name)}),this._availableNames=a;var o=this.get("data")||i,s=createHashMap(),l=map$1(o,function(u){return(isString(u)||isNumber(u))&&(u={name:u}),s.get(u.name)?null:(s.set(u.name,!0),new Model$1(u,this,this.ecModel))},this);this._data=filter(l,function(u){return!!u})},r.prototype.getData=function(){return this._data},r.prototype.select=function(n){var i=this.option.selected,a=this.get("selectedMode");if(a==="single"){var o=this._data;each$4(o,function(s){i[s.get("name")]=!1})}i[n]=!0},r.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},r.prototype.toggleSelected=function(n){var i=this.option.selected;i.hasOwnProperty(n)||(i[n]=!0),this[i[n]?"unSelect":"select"](n)},r.prototype.allSelect=function(){var n=this._data,i=this.option.selected;each$4(n,function(a){i[a.get("name",!0)]=!0})},r.prototype.inverseSelect=function(){var n=this._data,i=this.option.selected;each$4(n,function(a){var o=a.get("name",!0);i.hasOwnProperty(o)||(i[o]=!0),i[o]=!i[o]})},r.prototype.isSelected=function(n){var i=this.option.selected;return!(i.hasOwnProperty(n)&&!i[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=each$4,Group$1=Group$3,LegendView=function(t){__extends(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,i,a){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var u=n.get("selector",!0),c=n.get("selectorPosition",!0);u&&(!c||c==="auto")&&(c=l==="horizontal"?"end":"start"),this.renderInner(s,n,i,a,u,l,c);var d=n.getBoxLayoutParams(),v={width:a.getWidth(),height:a.getHeight()},I=n.get("padding"),$=getLayoutRect(d,v,I),O=this.layoutInner(n,s,$,o,u,c),R=getLayoutRect(defaults({width:O.width,height:O.height},d),v,I);this.group.x=R.x-O.x,this.group.y=R.y-O.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(O,n))}},r.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},r.prototype.renderInner=function(n,i,a,o,s,l,u){var c=this.getContentGroup(),d=createHashMap(),v=i.get("selectedMode"),I=[];a.eachRawSeries(function($){!$.get("legendHoverLink")&&I.push($.id)}),each(i.getData(),function($,O){var R=$.get("name");if(!this.newlineDisabled&&(R===""||R===`
145
+ `)){var M=new Group$1;M.newline=!0,c.add(M);return}var N=a.getSeriesByName(R)[0];if(!d.get(R))if(N){var V=N.getData(),G=V.getVisual("legendLineStyle")||{},Y=V.getVisual("legendIcon"),X=V.getVisual("style"),q=this._createItem(N,R,O,$,i,n,G,X,Y,v,o);q.on("click",curry(dispatchSelectAction,R,null,o,I)).on("mouseover",curry(dispatchHighlightAction,N.name,null,o,I)).on("mouseout",curry(dispatchDownplayAction,N.name,null,o,I)),a.ssr&&q.eachChild(function(Z){var ee=getECData(Z);ee.seriesIndex=N.seriesIndex,ee.dataIndex=O,ee.ssrType="legend"}),d.set(R,!0)}else a.eachRawSeries(function(Z){if(!d.get(R)&&Z.legendVisualProvider){var ee=Z.legendVisualProvider;if(!ee.containName(R))return;var ne=ee.indexOfName(R),J=ee.getItemVisual(ne,"style"),te=ee.getItemVisual(ne,"legendIcon"),Q=parse(J.fill);Q&&Q[3]===0&&(Q[3]=.2,J=extend(extend({},J),{fill:stringify(Q,"rgba")}));var oe=this._createItem(Z,R,O,$,i,n,{},J,te,v,o);oe.on("click",curry(dispatchSelectAction,null,R,o,I)).on("mouseover",curry(dispatchHighlightAction,null,R,o,I)).on("mouseout",curry(dispatchDownplayAction,null,R,o,I)),a.ssr&&oe.eachChild(function(ue){var fe=getECData(ue);fe.seriesIndex=Z.seriesIndex,fe.dataIndex=O,fe.ssrType="legend"}),d.set(R,!0)}},this)},this),s&&this._createSelector(s,i,o,l,u)},r.prototype._createSelector=function(n,i,a,o,s){var l=this.getSelectorGroup();each(n,function(c){var d=c.type,v=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:d==="all"?"legendAllSelect":"legendInverseSelect",legendId:i.id})}});l.add(v);var I=i.getModel("selectorLabel"),$=i.getModel(["emphasis","selectorLabel"]);setLabelStyle(v,{normal:I,emphasis:$},{defaultText:c.title}),enableHoverEmphasis(v)})},r.prototype._createItem=function(n,i,a,o,s,l,u,c,d,v,I){var $=n.visualDrawType,O=s.get("itemWidth"),R=s.get("itemHeight"),M=s.isSelected(i),N=o.get("symbolRotate"),V=o.get("symbolKeepAspect"),G=o.get("icon");d=G||d||"roundRect";var Y=getLegendStyle(d,o,u,c,$,M,I),X=new Group$1,q=o.getModel("textStyle");if(isFunction(n.getLegendIcon)&&(!G||G==="inherit"))X.add(n.getLegendIcon({itemWidth:O,itemHeight:R,icon:d,iconRotate:N,itemStyle:Y.itemStyle,lineStyle:Y.lineStyle,symbolKeepAspect:V}));else{var Z=G==="inherit"&&n.getData().getVisual("symbol")?N==="inherit"?n.getData().getVisual("symbolRotate"):N:0;X.add(getDefaultLegendIcon({itemWidth:O,itemHeight:R,icon:d,iconRotate:Z,itemStyle:Y.itemStyle,lineStyle:Y.lineStyle,symbolKeepAspect:V}))}var ee=l==="left"?O+5:-5,ne=l,J=s.get("formatter"),te=i;isString(J)&&J?te=J.replace("{name}",i!=null?i:""):isFunction(J)&&(te=J(i));var Q=M?q.getTextColor():o.get("inactiveColor");X.add(new ZRText$1({style:createTextStyle(q,{text:te,x:ee,y:R/2,fill:Q,align:ne,verticalAlign:"middle"},{inheritColor:Q})}));var oe=new Rect$1({shape:X.getBoundingRect(),style:{fill:"transparent"}}),ue=o.getModel("tooltip");return ue.get("show")&&setTooltipConfig({el:oe,componentModel:s,itemName:i,itemTooltipOption:ue.option}),X.add(oe),X.eachChild(function(fe){fe.silent=!0}),oe.silent=!v,this.getContentGroup().add(X),enableHoverEmphasis(X),X.__legendDataIndex=a,X},r.prototype.layoutInner=function(n,i,a,o,s,l){var u=this.getContentGroup(),c=this.getSelectorGroup();box(n.get("orient"),u,n.get("itemGap"),a.width,a.height);var d=u.getBoundingRect(),v=[-d.x,-d.y];if(c.markRedraw(),u.markRedraw(),s){box("horizontal",c,n.get("selectorItemGap",!0));var I=c.getBoundingRect(),$=[-I.x,-I.y],O=n.get("selectorButtonGap",!0),R=n.getOrient().index,M=R===0?"width":"height",N=R===0?"height":"width",V=R===0?"y":"x";l==="end"?$[R]+=d[M]+O:v[R]+=I[M]+O,$[1-R]+=d[N]/2-I[N]/2,c.x=$[0],c.y=$[1],u.x=v[0],u.y=v[1];var G={x:0,y:0};return G[M]=d[M]+O+I[M],G[N]=Math.max(d[N],I[N]),G[V]=Math.min(0,I[V]+$[1-R]),G}else return u.x=v[0],u.y=v[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,i,a,o,s){function l(M,N){M.lineWidth==="auto"&&(M.lineWidth=N.lineWidth>0?2:0),each(M,function(V,G){M[G]==="inherit"&&(M[G]=N[G])})}var u=r.getModel("itemStyle"),c=u.getItemStyle(),d=t.lastIndexOf("empty",0)===0?"fill":"stroke",v=u.getShallow("decal");c.decal=!v||v==="inherit"?i.decal:createOrUpdatePatternFromDecal(v,s),c.fill==="inherit"&&(c.fill=i[a]),c.stroke==="inherit"&&(c.stroke=i[d]),c.opacity==="inherit"&&(c.opacity=(a==="fill"?i:n).opacity),l(c,i);var I=r.getModel("lineStyle"),$=I.getLineStyle();if(l($,n),c.fill==="auto"&&(c.fill=i.fill),c.stroke==="auto"&&(c.stroke=i.fill),$.stroke==="auto"&&($.stroke=i.fill),!o){var O=r.get("inactiveBorderWidth"),R=c[d];c.lineWidth=O==="auto"?i.lineWidth>0&&R?2:0:c.lineWidth,c.fill=r.get("inactiveColor"),c.stroke=r.get("inactiveBorderColor"),$.stroke=I.get("inactiveColor"),$.lineWidth=I.get("inactiveWidth")}return{itemStyle:c,lineStyle:$}}function getDefaultLegendIcon(t){var r=t.icon||"roundRect",n=createSymbol(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,i){dispatchDownplayAction(t,r,n,i),n.dispatchAction({type:"legendToggleSelect",name:t!=null?t:r}),dispatchHighlightAction(t,r,n,i)}function isUseHoverLayer(t){for(var r=t.getZr().storage.getDisplayList(),n,i=0,a=r.length;i<a&&!(n=r[i].states.emphasis);)i++;return n&&n.hoverLayer}function dispatchHighlightAction(t,r,n,i){isUseHoverLayer(n)||n.dispatchAction({type:"highlight",seriesName:t,name:r,excludeSeriesId:i})}function dispatchDownplayAction(t,r,n,i){isUseHoverLayer(n)||n.dispatchAction({type:"downplay",seriesName:t,name:r,excludeSeriesId:i})}var LegendView$1=LegendView;function legendFilter(t){var r=t.findComponents({mainType:"legend"});r&&r.length&&t.filterSeries(function(n){for(var i=0;i<r.length;i++)if(!r[i].isSelected(n.name))return!1;return!0})}function legendSelectActionHandler(t,r,n){var i=t==="allSelect"||t==="inverseSelect",a={},o=[];n.eachComponent({mainType:"legend",query:r},function(l){i?l[t]():l[t](r.name),makeSelectedMap(l,a),o.push(l.componentIndex)});var s={};return n.eachComponent("legend",function(l){each$4(a,function(u,c){l[u?"select":"unSelect"](c)}),makeSelectedMap(l,s)}),i?{selected:s,legendIndex:o}:{name:r.name,selected:s}}function makeSelectedMap(t,r){var n=r||{};return each$4(t.getData(),function(i){var a=i.get("name");if(!(a===`
146
+ `||a==="")){var o=t.isSelected(a);hasOwn(n,a)?n[a]=n[a]&&o:n[a]=o}}),n}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$3(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(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,i,a){var o=getLayoutParams(n);t.prototype.init.call(this,n,i,a),mergeAndNormalizeLayoutParams(this,n,o)},r.prototype.mergeOption=function(n,i){t.prototype.mergeOption.call(this,n,i),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 i=t.getOrient(),a=[1,1];a[i.index]=0,mergeLayoutParam(r,n,{type:"box",ignoreSize:!!a})}var ScrollableLegendModel$1=ScrollableLegendModel,Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function(t){__extends(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,i,a,o,s,l,u){var c=this;t.prototype.renderInner.call(this,n,i,a,o,s,l,u);var d=this._controllerGroup,v=i.get("pageIconSize",!0),I=isArray(v)?v:[v,v];O("pagePrev",0);var $=i.getModel("pageTextStyle");d.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:$.getTextColor(),font:$.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),O("pageNext",1);function O(R,M){var N=R+"DataIndex",V=createIcon(i.get("pageIcons",!0)[i.getOrient().name][M],{onclick:bind$1(c._pageGo,c,N,i,o)},{x:-I[0]/2,y:-I[1]/2,width:I[0],height:I[1]});V.name=R,d.add(V)}},r.prototype.layoutInner=function(n,i,a,o,s,l){var u=this.getSelectorGroup(),c=n.getOrient().index,d=WH[c],v=XY[c],I=WH[1-c],$=XY[1-c];s&&box("horizontal",u,n.get("selectorItemGap",!0));var O=n.get("selectorButtonGap",!0),R=u.getBoundingRect(),M=[-R.x,-R.y],N=clone$2(a);s&&(N[d]=a[d]-R[d]-O);var V=this._layoutContentAndController(n,o,N,c,d,I,$,v);if(s){if(l==="end")M[c]+=V[d]+O;else{var G=R[d]+O;M[c]-=G,V[v]-=G}V[d]+=R[d]+O,M[1-c]+=V[$]+V[I]/2-R[I]/2,V[I]=Math.max(V[I],R[I]),V[$]=Math.min(V[$],R[$]+M[1-c]),u.x=M[0],u.y=M[1],u.markRedraw()}return V},r.prototype._layoutContentAndController=function(n,i,a,o,s,l,u,c){var d=this.getContentGroup(),v=this._containerGroup,I=this._controllerGroup;box(n.get("orient"),d,n.get("itemGap"),o?a.width:null,o?null:a.height),box("horizontal",I,n.get("pageButtonItemGap",!0));var $=d.getBoundingRect(),O=I.getBoundingRect(),R=this._showController=$[s]>a[s],M=[-$.x,-$.y];i||(M[o]=d[c]);var N=[0,0],V=[-O.x,-O.y],G=retrieve2(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(R){var Y=n.get("pageButtonPosition",!0);Y==="end"?V[o]+=a[s]-O[s]:N[o]+=O[s]+G}V[1-o]+=$[l]/2-O[l]/2,d.setPosition(M),v.setPosition(N),I.setPosition(V);var X={x:0,y:0};if(X[s]=R?a[s]:$[s],X[l]=Math.max($[l],O[l]),X[u]=Math.min(0,O[u]+V[1-o]),v.__rectSize=a[s],R){var q={x:0,y:0};q[s]=Math.max(a[s]-O[s]-G,0),q[l]=X[l],v.setClipPath(new Rect$1({shape:q})),v.__rectSize=q[s]}else I.eachChild(function(ee){ee.attr({invisible:!0,silent:!0})});var Z=this._getPageInfo(n);return Z.pageIndex!=null&&updateProps$1(d,{x:Z.contentPosition[0],y:Z.contentPosition[1]},R?n:null),this._updatePageInfoView(n,Z),X},r.prototype._pageGo=function(n,i,a){var o=this._getPageInfo(i)[n];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:i.id})},r.prototype._updatePageInfoView=function(n,i){var a=this._controllerGroup;each$4(["pagePrev","pageNext"],function(d){var v=d+"DataIndex",I=i[v]!=null,$=a.childOfName(d);$&&($.setStyle("fill",I?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),$.cursor=I?"pointer":"default")});var o=a.childOfName("pageText"),s=n.get("pageFormatter"),l=i.pageIndex,u=l!=null?l+1:0,c=i.pageCount;o&&s&&o.setStyle("text",isString(s)?s.replace("{current}",u==null?"":u+"").replace("{total}",c==null?"":c+""):s({current:u,total:c}))},r.prototype._getPageInfo=function(n){var i=n.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,s=n.getOrient().index,l=WH[s],u=XY[s],c=this._findTargetItemIndex(i),d=a.children(),v=d[c],I=d.length,$=I?1:0,O={contentPosition:[a.x,a.y],pageCount:$,pageIndex:$-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!v)return O;var R=Y(v);O.contentPosition[s]=-R.s;for(var M=c+1,N=R,V=R,G=null;M<=I;++M)G=Y(d[M]),(!G&&V.e>N.s+o||G&&!X(G,N.s))&&(V.i>N.i?N=V:N=G,N&&(O.pageNextDataIndex==null&&(O.pageNextDataIndex=N.i),++O.pageCount)),V=G;for(var M=c-1,N=R,V=R,G=null;M>=-1;--M)G=Y(d[M]),(!G||!X(V,G.s))&&N.i<V.i&&(V=N,O.pagePrevDataIndex==null&&(O.pagePrevDataIndex=N.i),++O.pageCount,++O.pageIndex),N=G;return O;function Y(q){if(q){var Z=q.getBoundingRect(),ee=Z[u]+q[u];return{s:ee,e:ee+Z[l],i:q.__legendDataIndex}}}function X(q,Z){return q.e>=Z&&q.s<=Z+o}},r.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var i,a=this.getContentGroup(),o;return a.eachChild(function(s,l){var u=s.__legendDataIndex;o==null&&u!=null&&(o=l),u===n&&(i=l)}),i!=null?i:o},r.type="legend.scroll",r}(LegendView$1),ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(t){t.registerAction("legendScroll","legendscroll",function(r,n){var i=r.scrollDataIndex;i!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:r},function(a){a.setScrollDataIndex(i)})})}function install$2(t){use(install$3),t.registerComponentModel(ScrollableLegendModel$1),t.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(t)}function install$1(t){use(install$3),use(install$2)}var DatasetModel=function(t){__extends(r,t);function r(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return r.prototype.init=function(n,i,a){t.prototype.init.call(this,n,i,a),this._sourceManager=new SourceManager(this),disableTransformOptionMerge(this)},r.prototype.mergeOption=function(n,i){t.prototype.mergeOption.call(this,n,i),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(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 raf=null;function requestAnimationFrame$1(t){return raf||(raf=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(r){return setTimeout(r,16)}).bind(window)),raf(t)}var caf=null;function cancelAnimationFrame(t){caf||(caf=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(r){clearTimeout(r)}).bind(window)),caf(t)}function createStyles(t){var r=document.createElement("style");return r.styleSheet?r.styleSheet.cssText=t:r.appendChild(document.createTextNode(t)),(document.querySelector("head")||document.body).appendChild(r),r}function createElement(t,r){r===void 0&&(r={});var n=document.createElement(t);return Object.keys(r).forEach(function(i){n[i]=r[i]}),n}function getComputedStyle$1(t,r,n){var i=window.getComputedStyle(t,n||null)||{display:"none"};return i[r]}function getRenderInfo(t){if(!document.documentElement.contains(t))return{detached:!0,rendered:!1};for(var r=t;r!==document;){if(getComputedStyle$1(r,"display")==="none")return{detached:!1,rendered:!1};r=r.parentNode}return{detached:!1,rendered:!0}}var css_248z='.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}',total=0,style=null;function addListener(t,r){t.__resize_mutation_handler__||(t.__resize_mutation_handler__=handleMutation.bind(t));var n=t.__resize_listeners__;if(!n){if(t.__resize_listeners__=[],window.ResizeObserver){var i=t.offsetWidth,a=t.offsetHeight,o=new ResizeObserver(function(){!t.__resize_observer_triggered__&&(t.__resize_observer_triggered__=!0,t.offsetWidth===i&&t.offsetHeight===a)||runCallbacks(t)}),s=getRenderInfo(t),l=s.detached,u=s.rendered;t.__resize_observer_triggered__=l===!1&&u===!1,t.__resize_observer__=o,o.observe(t)}else if(t.attachEvent&&t.addEventListener)t.__resize_legacy_resize_handler__=function(){runCallbacks(t)},t.attachEvent("onresize",t.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);else if(total||(style=createStyles(css_248z)),initTriggers(t),t.__resize_rendered__=getRenderInfo(t).rendered,window.MutationObserver){var c=new MutationObserver(t.__resize_mutation_handler__);c.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),t.__resize_mutation_observer__=c}}t.__resize_listeners__.push(r),total++}function removeListener(t,r){var n=t.__resize_listeners__;if(!!n){if(r&&n.splice(n.indexOf(r),1),!n.length||!r){if(t.detachEvent&&t.removeEventListener){t.detachEvent("onresize",t.__resize_legacy_resize_handler__),document.removeEventListener("DOMSubtreeModified",t.__resize_mutation_handler__);return}t.__resize_observer__?(t.__resize_observer__.unobserve(t),t.__resize_observer__.disconnect(),t.__resize_observer__=null):(t.__resize_mutation_observer__&&(t.__resize_mutation_observer__.disconnect(),t.__resize_mutation_observer__=null),t.removeEventListener("scroll",handleScroll),t.removeChild(t.__resize_triggers__.triggers),t.__resize_triggers__=null),t.__resize_listeners__=null}!--total&&style&&style.parentNode.removeChild(style)}}function getUpdatedSize(t){var r=t.__resize_last__,n=r.width,i=r.height,a=t.offsetWidth,o=t.offsetHeight;return a!==n||o!==i?{width:a,height:o}:null}function handleMutation(){var t=getRenderInfo(this),r=t.rendered,n=t.detached;r!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(resetTriggers(this),this.addEventListener("scroll",handleScroll,!0)),this.__resize_rendered__=r,runCallbacks(this))}function handleScroll(){var t=this;resetTriggers(this),this.__resize_raf__&&cancelAnimationFrame(this.__resize_raf__),this.__resize_raf__=requestAnimationFrame$1(function(){var r=getUpdatedSize(t);r&&(t.__resize_last__=r,runCallbacks(t))})}function runCallbacks(t){!t||!t.__resize_listeners__||t.__resize_listeners__.forEach(function(r){r.call(t,t)})}function initTriggers(t){var r=getComputedStyle$1(t,"position");(!r||r==="static")&&(t.style.position="relative"),t.__resize_old_position__=r,t.__resize_last__={};var n=createElement("div",{className:"resize-triggers"}),i=createElement("div",{className:"resize-expand-trigger"}),a=createElement("div"),o=createElement("div",{className:"resize-contract-trigger"});i.appendChild(a),n.appendChild(i),n.appendChild(o),t.appendChild(n),t.__resize_triggers__={triggers:n,expand:i,expandChild:a,contract:o},resetTriggers(t),t.addEventListener("scroll",handleScroll,!0),t.__resize_last__={width:t.offsetWidth,height:t.offsetHeight}}function resetTriggers(t){var r=t.__resize_triggers__,n=r.expand,i=r.expandChild,a=r.contract,o=a.scrollWidth,s=a.scrollHeight,l=n.offsetWidth,u=n.offsetHeight,c=n.scrollWidth,d=n.scrollHeight;a.scrollLeft=o,a.scrollTop=s,i.style.width=l+1+"px",i.style.height=u+1+"px",n.scrollLeft=c,n.scrollTop=d}var b=function(){return b=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++)for(var a in r=arguments[n])Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a]);return t},b.apply(this,arguments)};var y=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function E(t){return r=Object.create(null),y.forEach(function(n){r[n]=function(i){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];if(!t.value)throw new Error("ECharts is not initialized yet.");return t.value[i].apply(t.value,a)}}(n)}),r;var r}var _$1={autoresize:[Boolean,Object]},x=/^on[^a-z]/,j=function(t){return x.test(t)};function w(t,r){var n=isRef(t)?unref(t):t;return n&&typeof n=="object"&&"value"in n?n.value||r:n||r}var A="ecLoadingOptions",L={loading:Boolean,loadingOptions:Object},z=null,C="x-vue-echarts",T=[],S=[];(function(t,r){if(t&&typeof document!="undefined"){var n,i=r.prepend===!0?"prepend":"append",a=r.singleTag===!0,o=typeof r.container=="string"?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(a){var s=T.indexOf(o);s===-1&&(s=T.push(o)-1,S[s]={}),n=S[s]&&S[s][i]?S[s][i]:S[s][i]=l()}else n=l();t.charCodeAt(0)===65279&&(t=t.substring(1)),n.styleSheet?n.styleSheet.cssText+=t:n.appendChild(document.createTextNode(t))}function l(){var u=document.createElement("style");if(u.setAttribute("type","text/css"),r.attributes)for(var c=Object.keys(r.attributes),d=0;d<c.length;d++)u.setAttribute(c[d],r.attributes[c[d]]);var v=i==="prepend"?"afterbegin":"beforeend";return o.insertAdjacentElement(v,u),u}})(`x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}
147
+ .vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}
148
+ `,{});var U=function(){if(z!=null)return z;if(typeof HTMLElement=="undefined"||typeof customElements=="undefined")return z=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
149
+ __dispose = null;
150
+
151
+ disconnectedCallback() {
152
+ if (this.__dispose) {
153
+ this.__dispose();
154
+ this.__dispose = null;
155
+ }
156
+ }
157
+ }
158
+
159
+ if (customElements.get(tag) == null) {
160
+ customElements.define(tag, EChartsElement);
161
+ }
162
+ `)(C)}catch{return z=!1}return z=!0}(),D="ecTheme",k="ecInitOptions",B="ecUpdateOptions",P=/(^&?~?!?)native:/,H=defineComponent({name:"echarts",props:b(b({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},_$1),L),emits:{},inheritAttrs:!1,setup:function(t,r){var n=r.attrs,i=shallowRef(),a=shallowRef(),o=shallowRef(),s=shallowRef(),l=inject(D,null),u=inject(k,null),c=inject(B,null),d=toRefs(t),v=d.autoresize,I=d.manualUpdate,$=d.loading,O=d.loadingOptions,R=computed(function(){return s.value||t.option||null}),M=computed(function(){return t.theme||w(l,{})}),N=computed(function(){return t.initOptions||w(u,{})}),V=computed(function(){return t.updateOptions||w(c,{})}),G=computed(function(){return function(te){var Q={};for(var oe in te)j(oe)||(Q[oe]=te[oe]);return Q}(n)}),Y={},X=getCurrentInstance().proxy.$listeners,q={};function Z(te){if(a.value){var Q=o.value=init(a.value,M.value,N.value);t.group&&(Q.group=t.group),Object.keys(q).forEach(function(ue){var fe=q[ue];if(fe){var de=ue.toLowerCase();de.charAt(0)==="~"&&(de=de.substring(1),fe.__once__=!0);var ye=Q;if(de.indexOf("zr:")===0&&(ye=Q.getZr(),de=de.substring(3)),fe.__once__){delete fe.__once__;var ge=fe;fe=function(){for(var Te=[],Be=0;Be<arguments.length;Be++)Te[Be]=arguments[Be];ge.apply(void 0,Te),ye.off(de,fe)}}ye.on(de,fe)}}),v.value?nextTick(function(){Q&&!Q.isDisposed()&&Q.resize(),oe()}):oe()}function oe(){var ue=te||R.value;ue&&Q.setOption(ue,V.value)}}function ee(){o.value&&(o.value.dispose(),o.value=void 0)}X?Object.keys(X).forEach(function(te){P.test(te)?Y[te.replace(P,"$1")]=X[te]:q[te]=X[te]}):Object.keys(n).filter(function(te){return j(te)}).forEach(function(te){var Q=te.charAt(2).toLowerCase()+te.slice(3);if(Q.indexOf("native:")!==0)Q.substring(Q.length-4)==="Once"&&(Q="~".concat(Q.substring(0,Q.length-4))),q[Q]=n[te];else{var oe="on".concat(Q.charAt(7).toUpperCase()).concat(Q.slice(8));Y[oe]=n[te]}});var ne=null;watch(I,function(te){typeof ne=="function"&&(ne(),ne=null),te||(ne=watch(function(){return t.option},function(Q,oe){Q&&(o.value?o.value.setOption(Q,b({notMerge:Q!==oe},V.value)):Z())},{deep:!0}))},{immediate:!0}),watch([M,N],function(){ee(),Z()},{deep:!0}),watchEffect(function(){t.group&&o.value&&(o.value.group=t.group)});var J=E(o);return function(te,Q,oe){var ue=inject(A,{}),fe=computed(function(){return b(b({},w(ue,{})),oe==null?void 0:oe.value)});watchEffect(function(){var de=te.value;de&&(Q.value?de.showLoading(fe.value):de.hideLoading())})}(o,$,O),function(te,Q,oe){var ue=null;watch([oe,te,Q],function(fe,de,ye){var ge=fe[0],Te=fe[1],Be=fe[2];if(ge&&Te&&Be){var Ie=Be===!0?{}:Be,me=Ie.throttle,De=me===void 0?100:me,Ve=Ie.onResize,Ue=function(){Te.resize(),Ve==null||Ve()};ue=De?throttle(Ue,De):Ue,addListener(ge,ue)}ye(function(){ge&&ue&&removeListener(ge,ue)})})}(o,v,a),onMounted(function(){Z()}),onBeforeUnmount(function(){U&&i.value?i.value.__dispose=ee:ee()}),b({chart:o,root:i,inner:a,setOption:function(te,Q){t.manualUpdate&&(s.value=te),o.value?o.value.setOption(te,Q||{}):Z(te)},nonEventAttrs:G,nativeListeners:Y},J)},render:function(){var t=b(b({},this.nonEventAttrs),this.nativeListeners);return t.ref="root",t.class=t.class?["echarts"].concat(t.class):"echarts",h(C,t,[h("div",{ref:"inner",class:"vue-echarts-inner"})])}}),LineChartCard_vue_vue_type_style_index_0_scoped_true_lang="";const _sfc_main$3=defineComponent({__name:"LineChartCard",props:{k:{}},setup(t,{expose:r}){use([install$a,install$9,install$4,install$5,install$1,install$6,install]);const n=t,i=ref({});let a=lineCharts[n.k];function o(){a=lineCharts[n.k],i.value=s(a)}onMounted(()=>{o()}),r({update:o});function s(l){const u=new Map;l.value.forEach(V=>{var G;u.has(V.label)||u.set(V.label,[]),(G=u.get(V.label))==null||G.push({x:V.x,y:V.y})});const c=Array.from(u.entries()),d=c.map(V=>V[0]),v={text:l.name,left:"center"},I={trigger:"axis",axisPointer:{type:"line"},formatter:V=>{let[G,Y]=V[0].data;return`${l.x_label}: ${Math.round(G*1e4)/1e4}<br/>${l.y_label}: ${Math.round(Y*1e4)/1e4}`}},$={orient:"vertical",left:"left",data:d},O={},R={min:"dataMin"},M=c.map(([V,G])=>({name:V,source:G.map(Y=>[Y.x,Y.y]),dimensions:[l.x_label,l.y_label],encode:{x:l.x_label,y:l.y_label,tooltip:[l.x_label,l.y_label]}})),N=d.map((V,G)=>({type:"line",name:V,datasetIndex:G}));return{title:v,tooltip:I,legend:$,xAxis:O,yAxis:R,dataset:M,series:N}}return(l,u)=>(openBlock(),createBlock(unref(_sfc_main$1c),{class:"w-25",style:{"max-width":"500px"}},{default:withCtx(()=>[createVNode(unref(H),{class:"chart",option:i.value},null,8,["option"])]),_:1}))}});var LineChartCard=_export_sfc(_sfc_main$3,[["__scopeId","data-v-619ce90e"]]);const _sfc_main$2=defineComponent({__name:"PlotSection",setup(t,{expose:r}){const n=new Map;return r({subs:n}),(i,a)=>(openBlock(),createElementBlock(Fragment,null,[a[0]||(a[0]=createBaseVNode("h6",{class:"display-6"},"Plots",-1)),createVNode(unref(_sfc_main$17),null,{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(Object.keys(unref(lineCharts)),o=>(openBlock(),createBlock(LineChartCard,{key:o,k:o,ref_for:!0,ref:s=>unref(n).set(o,s)},null,8,["k"]))),128))]),_:1})],64))}});var lodash={exports:{}};/**
163
+ * @license
164
+ * Lodash <https://lodash.com/>
165
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
166
+ * Released under MIT license <https://lodash.com/license>
167
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
168
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
169
+ */(function(t,r){(function(){var n,i="4.17.21",a=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",c=500,d="__lodash_placeholder__",v=1,I=2,$=4,O=1,R=2,M=1,N=2,V=4,G=8,Y=16,X=32,q=64,Z=128,ee=256,ne=512,J=30,te="...",Q=800,oe=16,ue=1,fe=2,de=3,ye=1/0,ge=9007199254740991,Te=17976931348623157e292,Be=0/0,Ie=4294967295,me=Ie-1,De=Ie>>>1,Ve=[["ary",Z],["bind",M],["bindKey",N],["curry",G],["curryRight",Y],["flip",ne],["partial",X],["partialRight",q],["rearg",ee]],Ue="[object Arguments]",Ze="[object Array]",ft="[object AsyncFunction]",at="[object Boolean]",dt="[object Date]",Le="[object DOMException]",Me="[object Error]",ke="[object Function]",se="[object GeneratorFunction]",ae="[object Map]",ve="[object Number]",Ce="[object Null]",be="[object Object]",xe="[object Promise]",Re="[object Proxy]",Pe="[object RegExp]",Oe="[object Set]",we="[object String]",We="[object Symbol]",Ne="[object Undefined]",ze="[object WeakMap]",qe="[object WeakSet]",Je="[object ArrayBuffer]",st="[object DataView]",ht="[object Float32Array]",$t="[object Float64Array]",At="[object Int8Array]",Bt="[object Int16Array]",Ot="[object Int32Array]",dr="[object Uint8Array]",Vr="[object Uint8ClampedArray]",Pt="[object Uint16Array]",Vt="[object Uint32Array]",mn=/\b__p \+= '';/g,_n=/\b(__p \+=) '' \+/g,Xs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ba=/&(?:amp|lt|gt|quot|#39);/g,Sa=/[&<>"']/g,Zs=RegExp(ba.source),Js=RegExp(Sa.source),Qs=/<%-([\s\S]+?)%>/g,el=/<%([\s\S]+?)%>/g,Ta=/<%=([\s\S]+?)%>/g,tl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rl=/^\w*$/,nl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,si=/[\\^$.*+?()[\]{}|]/g,il=RegExp(si.source),li=/^\s+/,al=/\s/,ol=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,sl=/\{\n\/\* \[wrapped with (.+)\] \*/,ll=/,? & /,ul=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cl=/[()=,{}\[\]\/\s]/,fl=/\\(\\)?/g,dl=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ca=/\w*$/,hl=/^[-+]0x[0-9a-f]+$/i,pl=/^0b[01]+$/i,vl=/^\[object .+?Constructor\]$/,gl=/^0o[0-7]+$/i,ml=/^(?:0|[1-9]\d*)$/,_l=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yn=/($^)/,yl=/['\n\r\u2028\u2029\\]/g,bn="\\ud800-\\udfff",bl="\\u0300-\\u036f",Sl="\\ufe20-\\ufe2f",Tl="\\u20d0-\\u20ff",Ea=bl+Sl+Tl,Aa="\\u2700-\\u27bf",xa="a-z\\xdf-\\xf6\\xf8-\\xff",Cl="\\xac\\xb1\\xd7\\xf7",El="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Al="\\u2000-\\u206f",xl=" \\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",wa="A-Z\\xc0-\\xd6\\xd8-\\xde",$a="\\ufe0e\\ufe0f",Ia=Cl+El+Al+xl,ui="['\u2019]",wl="["+bn+"]",Oa="["+Ia+"]",Sn="["+Ea+"]",Pa="\\d+",$l="["+Aa+"]",Da="["+xa+"]",Ra="[^"+bn+Ia+Pa+Aa+xa+wa+"]",ci="\\ud83c[\\udffb-\\udfff]",Il="(?:"+Sn+"|"+ci+")",Ma="[^"+bn+"]",fi="(?:\\ud83c[\\udde6-\\uddff]){2}",di="[\\ud800-\\udbff][\\udc00-\\udfff]",Hr="["+wa+"]",La="\\u200d",Ba="(?:"+Da+"|"+Ra+")",Ol="(?:"+Hr+"|"+Ra+")",ka="(?:"+ui+"(?:d|ll|m|re|s|t|ve))?",Na="(?:"+ui+"(?:D|LL|M|RE|S|T|VE))?",Fa=Il+"?",Va="["+$a+"]?",Pl="(?:"+La+"(?:"+[Ma,fi,di].join("|")+")"+Va+Fa+")*",Dl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Rl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ha=Va+Fa+Pl,Ml="(?:"+[$l,fi,di].join("|")+")"+Ha,Ll="(?:"+[Ma+Sn+"?",Sn,fi,di,wl].join("|")+")",Bl=RegExp(ui,"g"),kl=RegExp(Sn,"g"),hi=RegExp(ci+"(?="+ci+")|"+Ll+Ha,"g"),Nl=RegExp([Hr+"?"+Da+"+"+ka+"(?="+[Oa,Hr,"$"].join("|")+")",Ol+"+"+Na+"(?="+[Oa,Hr+Ba,"$"].join("|")+")",Hr+"?"+Ba+"+"+ka,Hr+"+"+Na,Rl,Dl,Pa,Ml].join("|"),"g"),Fl=RegExp("["+La+bn+Ea+$a+"]"),Vl=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Hl=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],zl=-1,yt={};yt[ht]=yt[$t]=yt[At]=yt[Bt]=yt[Ot]=yt[dr]=yt[Vr]=yt[Pt]=yt[Vt]=!0,yt[Ue]=yt[Ze]=yt[Je]=yt[at]=yt[st]=yt[dt]=yt[Me]=yt[ke]=yt[ae]=yt[ve]=yt[be]=yt[Pe]=yt[Oe]=yt[we]=yt[ze]=!1;var _t={};_t[Ue]=_t[Ze]=_t[Je]=_t[st]=_t[at]=_t[dt]=_t[ht]=_t[$t]=_t[At]=_t[Bt]=_t[Ot]=_t[ae]=_t[ve]=_t[be]=_t[Pe]=_t[Oe]=_t[we]=_t[We]=_t[dr]=_t[Vr]=_t[Pt]=_t[Vt]=!0,_t[Me]=_t[ke]=_t[ze]=!1;var Ul={\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"},Gl={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Wl={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Yl={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ql=parseFloat,Kl=parseInt,za=typeof commonjsGlobal=="object"&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,jl=typeof self=="object"&&self&&self.Object===Object&&self,Dt=za||jl||Function("return this")(),pi=r&&!r.nodeType&&r,Pr=pi&&!0&&t&&!t.nodeType&&t,Ua=Pr&&Pr.exports===pi,vi=Ua&&za.process,Zt=function(){try{var he=Pr&&Pr.require&&Pr.require("util").types;return he||vi&&vi.binding&&vi.binding("util")}catch{}}(),Ga=Zt&&Zt.isArrayBuffer,Wa=Zt&&Zt.isDate,Ya=Zt&&Zt.isMap,qa=Zt&&Zt.isRegExp,Ka=Zt&&Zt.isSet,ja=Zt&&Zt.isTypedArray;function Wt(he,Se,_e){switch(_e.length){case 0:return he.call(Se);case 1:return he.call(Se,_e[0]);case 2:return he.call(Se,_e[0],_e[1]);case 3:return he.call(Se,_e[0],_e[1],_e[2])}return he.apply(Se,_e)}function Xl(he,Se,_e,He){for(var Xe=-1,pt=he==null?0:he.length;++Xe<pt;){var xt=he[Xe];Se(He,xt,_e(xt),he)}return He}function Jt(he,Se){for(var _e=-1,He=he==null?0:he.length;++_e<He&&Se(he[_e],_e,he)!==!1;);return he}function Zl(he,Se){for(var _e=he==null?0:he.length;_e--&&Se(he[_e],_e,he)!==!1;);return he}function Xa(he,Se){for(var _e=-1,He=he==null?0:he.length;++_e<He;)if(!Se(he[_e],_e,he))return!1;return!0}function Tr(he,Se){for(var _e=-1,He=he==null?0:he.length,Xe=0,pt=[];++_e<He;){var xt=he[_e];Se(xt,_e,he)&&(pt[Xe++]=xt)}return pt}function Tn(he,Se){var _e=he==null?0:he.length;return!!_e&&zr(he,Se,0)>-1}function gi(he,Se,_e){for(var He=-1,Xe=he==null?0:he.length;++He<Xe;)if(_e(Se,he[He]))return!0;return!1}function bt(he,Se){for(var _e=-1,He=he==null?0:he.length,Xe=Array(He);++_e<He;)Xe[_e]=Se(he[_e],_e,he);return Xe}function Cr(he,Se){for(var _e=-1,He=Se.length,Xe=he.length;++_e<He;)he[Xe+_e]=Se[_e];return he}function mi(he,Se,_e,He){var Xe=-1,pt=he==null?0:he.length;for(He&&pt&&(_e=he[++Xe]);++Xe<pt;)_e=Se(_e,he[Xe],Xe,he);return _e}function Jl(he,Se,_e,He){var Xe=he==null?0:he.length;for(He&&Xe&&(_e=he[--Xe]);Xe--;)_e=Se(_e,he[Xe],Xe,he);return _e}function _i(he,Se){for(var _e=-1,He=he==null?0:he.length;++_e<He;)if(Se(he[_e],_e,he))return!0;return!1}var Ql=yi("length");function eu(he){return he.split("")}function tu(he){return he.match(ul)||[]}function Za(he,Se,_e){var He;return _e(he,function(Xe,pt,xt){if(Se(Xe,pt,xt))return He=pt,!1}),He}function Cn(he,Se,_e,He){for(var Xe=he.length,pt=_e+(He?1:-1);He?pt--:++pt<Xe;)if(Se(he[pt],pt,he))return pt;return-1}function zr(he,Se,_e){return Se===Se?hu(he,Se,_e):Cn(he,Ja,_e)}function ru(he,Se,_e,He){for(var Xe=_e-1,pt=he.length;++Xe<pt;)if(He(he[Xe],Se))return Xe;return-1}function Ja(he){return he!==he}function Qa(he,Se){var _e=he==null?0:he.length;return _e?Si(he,Se)/_e:Be}function yi(he){return function(Se){return Se==null?n:Se[he]}}function bi(he){return function(Se){return he==null?n:he[Se]}}function eo(he,Se,_e,He,Xe){return Xe(he,function(pt,xt,mt){_e=He?(He=!1,pt):Se(_e,pt,xt,mt)}),_e}function nu(he,Se){var _e=he.length;for(he.sort(Se);_e--;)he[_e]=he[_e].value;return he}function Si(he,Se){for(var _e,He=-1,Xe=he.length;++He<Xe;){var pt=Se(he[He]);pt!==n&&(_e=_e===n?pt:_e+pt)}return _e}function Ti(he,Se){for(var _e=-1,He=Array(he);++_e<he;)He[_e]=Se(_e);return He}function iu(he,Se){return bt(Se,function(_e){return[_e,he[_e]]})}function to(he){return he&&he.slice(0,ao(he)+1).replace(li,"")}function Yt(he){return function(Se){return he(Se)}}function Ci(he,Se){return bt(Se,function(_e){return he[_e]})}function tn(he,Se){return he.has(Se)}function ro(he,Se){for(var _e=-1,He=he.length;++_e<He&&zr(Se,he[_e],0)>-1;);return _e}function no(he,Se){for(var _e=he.length;_e--&&zr(Se,he[_e],0)>-1;);return _e}function au(he,Se){for(var _e=he.length,He=0;_e--;)he[_e]===Se&&++He;return He}var ou=bi(Ul),su=bi(Gl);function lu(he){return"\\"+Yl[he]}function uu(he,Se){return he==null?n:he[Se]}function Ur(he){return Fl.test(he)}function cu(he){return Vl.test(he)}function fu(he){for(var Se,_e=[];!(Se=he.next()).done;)_e.push(Se.value);return _e}function Ei(he){var Se=-1,_e=Array(he.size);return he.forEach(function(He,Xe){_e[++Se]=[Xe,He]}),_e}function io(he,Se){return function(_e){return he(Se(_e))}}function Er(he,Se){for(var _e=-1,He=he.length,Xe=0,pt=[];++_e<He;){var xt=he[_e];(xt===Se||xt===d)&&(he[_e]=d,pt[Xe++]=_e)}return pt}function En(he){var Se=-1,_e=Array(he.size);return he.forEach(function(He){_e[++Se]=He}),_e}function du(he){var Se=-1,_e=Array(he.size);return he.forEach(function(He){_e[++Se]=[He,He]}),_e}function hu(he,Se,_e){for(var He=_e-1,Xe=he.length;++He<Xe;)if(he[He]===Se)return He;return-1}function pu(he,Se,_e){for(var He=_e+1;He--;)if(he[He]===Se)return He;return He}function Gr(he){return Ur(he)?gu(he):Ql(he)}function ar(he){return Ur(he)?mu(he):eu(he)}function ao(he){for(var Se=he.length;Se--&&al.test(he.charAt(Se)););return Se}var vu=bi(Wl);function gu(he){for(var Se=hi.lastIndex=0;hi.test(he);)++Se;return Se}function mu(he){return he.match(hi)||[]}function _u(he){return he.match(Nl)||[]}var yu=function he(Se){Se=Se==null?Dt:Wr.defaults(Dt.Object(),Se,Wr.pick(Dt,Hl));var _e=Se.Array,He=Se.Date,Xe=Se.Error,pt=Se.Function,xt=Se.Math,mt=Se.Object,Ai=Se.RegExp,bu=Se.String,Qt=Se.TypeError,An=_e.prototype,Su=pt.prototype,Yr=mt.prototype,xn=Se["__core-js_shared__"],wn=Su.toString,gt=Yr.hasOwnProperty,Tu=0,oo=function(){var f=/[^.]+$/.exec(xn&&xn.keys&&xn.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""}(),$n=Yr.toString,Cu=wn.call(mt),Eu=Dt._,Au=Ai("^"+wn.call(gt).replace(si,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),In=Ua?Se.Buffer:n,Ar=Se.Symbol,On=Se.Uint8Array,so=In?In.allocUnsafe:n,Pn=io(mt.getPrototypeOf,mt),lo=mt.create,uo=Yr.propertyIsEnumerable,Dn=An.splice,co=Ar?Ar.isConcatSpreadable:n,rn=Ar?Ar.iterator:n,Dr=Ar?Ar.toStringTag:n,Rn=function(){try{var f=kr(mt,"defineProperty");return f({},"",{}),f}catch{}}(),xu=Se.clearTimeout!==Dt.clearTimeout&&Se.clearTimeout,wu=He&&He.now!==Dt.Date.now&&He.now,$u=Se.setTimeout!==Dt.setTimeout&&Se.setTimeout,Mn=xt.ceil,Ln=xt.floor,xi=mt.getOwnPropertySymbols,Iu=In?In.isBuffer:n,fo=Se.isFinite,Ou=An.join,Pu=io(mt.keys,mt),wt=xt.max,Mt=xt.min,Du=He.now,Ru=Se.parseInt,ho=xt.random,Mu=An.reverse,wi=kr(Se,"DataView"),nn=kr(Se,"Map"),$i=kr(Se,"Promise"),qr=kr(Se,"Set"),an=kr(Se,"WeakMap"),on=kr(mt,"create"),Bn=an&&new an,Kr={},Lu=Nr(wi),Bu=Nr(nn),ku=Nr($i),Nu=Nr(qr),Fu=Nr(an),kn=Ar?Ar.prototype:n,sn=kn?kn.valueOf:n,po=kn?kn.toString:n;function re(f){if(Tt(f)&&!Qe(f)&&!(f instanceof ut)){if(f instanceof er)return f;if(gt.call(f,"__wrapped__"))return vs(f)}return new er(f)}var jr=function(){function f(){}return function(g){if(!St(g))return{};if(lo)return lo(g);f.prototype=g;var F=new f;return f.prototype=n,F}}();function Nn(){}function er(f,g){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!g,this.__index__=0,this.__values__=n}re.templateSettings={escape:Qs,evaluate:el,interpolate:Ta,variable:"",imports:{_:re}},re.prototype=Nn.prototype,re.prototype.constructor=re,er.prototype=jr(Nn.prototype),er.prototype.constructor=er;function ut(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ie,this.__views__=[]}function Vu(){var f=new ut(this.__wrapped__);return f.__actions__=Ht(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ht(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ht(this.__views__),f}function Hu(){if(this.__filtered__){var f=new ut(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}function zu(){var f=this.__wrapped__.value(),g=this.__dir__,F=Qe(f),W=g<0,K=F?f.length:0,ie=tf(0,K,this.__views__),le=ie.start,ce=ie.end,pe=ce-le,Ee=W?ce:le-1,Ae=this.__iteratees__,$e=Ae.length,Fe=0,Ge=Mt(pe,this.__takeCount__);if(!F||!W&&K==pe&&Ge==pe)return No(f,this.__actions__);var Ke=[];e:for(;pe--&&Fe<Ge;){Ee+=g;for(var nt=-1,je=f[Ee];++nt<$e;){var ot=Ae[nt],ct=ot.iteratee,jt=ot.type,Ft=ct(je);if(jt==fe)je=Ft;else if(!Ft){if(jt==ue)continue e;break e}}Ke[Fe++]=je}return Ke}ut.prototype=jr(Nn.prototype),ut.prototype.constructor=ut;function Rr(f){var g=-1,F=f==null?0:f.length;for(this.clear();++g<F;){var W=f[g];this.set(W[0],W[1])}}function Uu(){this.__data__=on?on(null):{},this.size=0}function Gu(f){var g=this.has(f)&&delete this.__data__[f];return this.size-=g?1:0,g}function Wu(f){var g=this.__data__;if(on){var F=g[f];return F===u?n:F}return gt.call(g,f)?g[f]:n}function Yu(f){var g=this.__data__;return on?g[f]!==n:gt.call(g,f)}function qu(f,g){var F=this.__data__;return this.size+=this.has(f)?0:1,F[f]=on&&g===n?u:g,this}Rr.prototype.clear=Uu,Rr.prototype.delete=Gu,Rr.prototype.get=Wu,Rr.prototype.has=Yu,Rr.prototype.set=qu;function hr(f){var g=-1,F=f==null?0:f.length;for(this.clear();++g<F;){var W=f[g];this.set(W[0],W[1])}}function Ku(){this.__data__=[],this.size=0}function ju(f){var g=this.__data__,F=Fn(g,f);if(F<0)return!1;var W=g.length-1;return F==W?g.pop():Dn.call(g,F,1),--this.size,!0}function Xu(f){var g=this.__data__,F=Fn(g,f);return F<0?n:g[F][1]}function Zu(f){return Fn(this.__data__,f)>-1}function Ju(f,g){var F=this.__data__,W=Fn(F,f);return W<0?(++this.size,F.push([f,g])):F[W][1]=g,this}hr.prototype.clear=Ku,hr.prototype.delete=ju,hr.prototype.get=Xu,hr.prototype.has=Zu,hr.prototype.set=Ju;function pr(f){var g=-1,F=f==null?0:f.length;for(this.clear();++g<F;){var W=f[g];this.set(W[0],W[1])}}function Qu(){this.size=0,this.__data__={hash:new Rr,map:new(nn||hr),string:new Rr}}function ec(f){var g=Zn(this,f).delete(f);return this.size-=g?1:0,g}function tc(f){return Zn(this,f).get(f)}function rc(f){return Zn(this,f).has(f)}function nc(f,g){var F=Zn(this,f),W=F.size;return F.set(f,g),this.size+=F.size==W?0:1,this}pr.prototype.clear=Qu,pr.prototype.delete=ec,pr.prototype.get=tc,pr.prototype.has=rc,pr.prototype.set=nc;function Mr(f){var g=-1,F=f==null?0:f.length;for(this.__data__=new pr;++g<F;)this.add(f[g])}function ic(f){return this.__data__.set(f,u),this}function ac(f){return this.__data__.has(f)}Mr.prototype.add=Mr.prototype.push=ic,Mr.prototype.has=ac;function or(f){var g=this.__data__=new hr(f);this.size=g.size}function oc(){this.__data__=new hr,this.size=0}function sc(f){var g=this.__data__,F=g.delete(f);return this.size=g.size,F}function lc(f){return this.__data__.get(f)}function uc(f){return this.__data__.has(f)}function cc(f,g){var F=this.__data__;if(F instanceof hr){var W=F.__data__;if(!nn||W.length<a-1)return W.push([f,g]),this.size=++F.size,this;F=this.__data__=new pr(W)}return F.set(f,g),this.size=F.size,this}or.prototype.clear=oc,or.prototype.delete=sc,or.prototype.get=lc,or.prototype.has=uc,or.prototype.set=cc;function vo(f,g){var F=Qe(f),W=!F&&Fr(f),K=!F&&!W&&Or(f),ie=!F&&!W&&!K&&Qr(f),le=F||W||K||ie,ce=le?Ti(f.length,bu):[],pe=ce.length;for(var Ee in f)(g||gt.call(f,Ee))&&!(le&&(Ee=="length"||K&&(Ee=="offset"||Ee=="parent")||ie&&(Ee=="buffer"||Ee=="byteLength"||Ee=="byteOffset")||_r(Ee,pe)))&&ce.push(Ee);return ce}function go(f){var g=f.length;return g?f[Fi(0,g-1)]:n}function fc(f,g){return Jn(Ht(f),Lr(g,0,f.length))}function dc(f){return Jn(Ht(f))}function Ii(f,g,F){(F!==n&&!sr(f[g],F)||F===n&&!(g in f))&&vr(f,g,F)}function ln(f,g,F){var W=f[g];(!(gt.call(f,g)&&sr(W,F))||F===n&&!(g in f))&&vr(f,g,F)}function Fn(f,g){for(var F=f.length;F--;)if(sr(f[F][0],g))return F;return-1}function hc(f,g,F,W){return xr(f,function(K,ie,le){g(W,K,F(K),le)}),W}function mo(f,g){return f&&cr(g,It(g),f)}function pc(f,g){return f&&cr(g,Ut(g),f)}function vr(f,g,F){g=="__proto__"&&Rn?Rn(f,g,{configurable:!0,enumerable:!0,value:F,writable:!0}):f[g]=F}function Oi(f,g){for(var F=-1,W=g.length,K=_e(W),ie=f==null;++F<W;)K[F]=ie?n:ca(f,g[F]);return K}function Lr(f,g,F){return f===f&&(F!==n&&(f=f<=F?f:F),g!==n&&(f=f>=g?f:g)),f}function tr(f,g,F,W,K,ie){var le,ce=g&v,pe=g&I,Ee=g&$;if(F&&(le=K?F(f,W,K,ie):F(f)),le!==n)return le;if(!St(f))return f;var Ae=Qe(f);if(Ae){if(le=nf(f),!ce)return Ht(f,le)}else{var $e=Lt(f),Fe=$e==ke||$e==se;if(Or(f))return Ho(f,ce);if($e==be||$e==Ue||Fe&&!K){if(le=pe||Fe?{}:os(f),!ce)return pe?Yc(f,pc(le,f)):Wc(f,mo(le,f))}else{if(!_t[$e])return K?f:{};le=af(f,$e,ce)}}ie||(ie=new or);var Ge=ie.get(f);if(Ge)return Ge;ie.set(f,le),Ls(f)?f.forEach(function(je){le.add(tr(je,g,F,je,f,ie))}):Rs(f)&&f.forEach(function(je,ot){le.set(ot,tr(je,g,F,ot,f,ie))});var Ke=Ee?pe?Xi:ji:pe?Ut:It,nt=Ae?n:Ke(f);return Jt(nt||f,function(je,ot){nt&&(ot=je,je=f[ot]),ln(le,ot,tr(je,g,F,ot,f,ie))}),le}function vc(f){var g=It(f);return function(F){return _o(F,f,g)}}function _o(f,g,F){var W=F.length;if(f==null)return!W;for(f=mt(f);W--;){var K=F[W],ie=g[K],le=f[K];if(le===n&&!(K in f)||!ie(le))return!1}return!0}function yo(f,g,F){if(typeof f!="function")throw new Qt(s);return vn(function(){f.apply(n,F)},g)}function un(f,g,F,W){var K=-1,ie=Tn,le=!0,ce=f.length,pe=[],Ee=g.length;if(!ce)return pe;F&&(g=bt(g,Yt(F))),W?(ie=gi,le=!1):g.length>=a&&(ie=tn,le=!1,g=new Mr(g));e:for(;++K<ce;){var Ae=f[K],$e=F==null?Ae:F(Ae);if(Ae=W||Ae!==0?Ae:0,le&&$e===$e){for(var Fe=Ee;Fe--;)if(g[Fe]===$e)continue e;pe.push(Ae)}else ie(g,$e,W)||pe.push(Ae)}return pe}var xr=Yo(ur),bo=Yo(Di,!0);function gc(f,g){var F=!0;return xr(f,function(W,K,ie){return F=!!g(W,K,ie),F}),F}function Vn(f,g,F){for(var W=-1,K=f.length;++W<K;){var ie=f[W],le=g(ie);if(le!=null&&(ce===n?le===le&&!Kt(le):F(le,ce)))var ce=le,pe=ie}return pe}function mc(f,g,F,W){var K=f.length;for(F=et(F),F<0&&(F=-F>K?0:K+F),W=W===n||W>K?K:et(W),W<0&&(W+=K),W=F>W?0:ks(W);F<W;)f[F++]=g;return f}function So(f,g){var F=[];return xr(f,function(W,K,ie){g(W,K,ie)&&F.push(W)}),F}function Rt(f,g,F,W,K){var ie=-1,le=f.length;for(F||(F=sf),K||(K=[]);++ie<le;){var ce=f[ie];g>0&&F(ce)?g>1?Rt(ce,g-1,F,W,K):Cr(K,ce):W||(K[K.length]=ce)}return K}var Pi=qo(),To=qo(!0);function ur(f,g){return f&&Pi(f,g,It)}function Di(f,g){return f&&To(f,g,It)}function Hn(f,g){return Tr(g,function(F){return yr(f[F])})}function Br(f,g){g=$r(g,f);for(var F=0,W=g.length;f!=null&&F<W;)f=f[fr(g[F++])];return F&&F==W?f:n}function Co(f,g,F){var W=g(f);return Qe(f)?W:Cr(W,F(f))}function kt(f){return f==null?f===n?Ne:Ce:Dr&&Dr in mt(f)?ef(f):pf(f)}function Ri(f,g){return f>g}function yc(f,g){return f!=null&&gt.call(f,g)}function bc(f,g){return f!=null&&g in mt(f)}function Sc(f,g,F){return f>=Mt(g,F)&&f<wt(g,F)}function Mi(f,g,F){for(var W=F?gi:Tn,K=f[0].length,ie=f.length,le=ie,ce=_e(ie),pe=1/0,Ee=[];le--;){var Ae=f[le];le&&g&&(Ae=bt(Ae,Yt(g))),pe=Mt(Ae.length,pe),ce[le]=!F&&(g||K>=120&&Ae.length>=120)?new Mr(le&&Ae):n}Ae=f[0];var $e=-1,Fe=ce[0];e:for(;++$e<K&&Ee.length<pe;){var Ge=Ae[$e],Ke=g?g(Ge):Ge;if(Ge=F||Ge!==0?Ge:0,!(Fe?tn(Fe,Ke):W(Ee,Ke,F))){for(le=ie;--le;){var nt=ce[le];if(!(nt?tn(nt,Ke):W(f[le],Ke,F)))continue e}Fe&&Fe.push(Ke),Ee.push(Ge)}}return Ee}function Tc(f,g,F,W){return ur(f,function(K,ie,le){g(W,F(K),ie,le)}),W}function cn(f,g,F){g=$r(g,f),f=cs(f,g);var W=f==null?f:f[fr(nr(g))];return W==null?n:Wt(W,f,F)}function Eo(f){return Tt(f)&&kt(f)==Ue}function Cc(f){return Tt(f)&&kt(f)==Je}function Ec(f){return Tt(f)&&kt(f)==dt}function fn(f,g,F,W,K){return f===g?!0:f==null||g==null||!Tt(f)&&!Tt(g)?f!==f&&g!==g:Ac(f,g,F,W,fn,K)}function Ac(f,g,F,W,K,ie){var le=Qe(f),ce=Qe(g),pe=le?Ze:Lt(f),Ee=ce?Ze:Lt(g);pe=pe==Ue?be:pe,Ee=Ee==Ue?be:Ee;var Ae=pe==be,$e=Ee==be,Fe=pe==Ee;if(Fe&&Or(f)){if(!Or(g))return!1;le=!0,Ae=!1}if(Fe&&!Ae)return ie||(ie=new or),le||Qr(f)?ns(f,g,F,W,K,ie):Jc(f,g,pe,F,W,K,ie);if(!(F&O)){var Ge=Ae&&gt.call(f,"__wrapped__"),Ke=$e&&gt.call(g,"__wrapped__");if(Ge||Ke){var nt=Ge?f.value():f,je=Ke?g.value():g;return ie||(ie=new or),K(nt,je,F,W,ie)}}return Fe?(ie||(ie=new or),Qc(f,g,F,W,K,ie)):!1}function xc(f){return Tt(f)&&Lt(f)==ae}function Li(f,g,F,W){var K=F.length,ie=K,le=!W;if(f==null)return!ie;for(f=mt(f);K--;){var ce=F[K];if(le&&ce[2]?ce[1]!==f[ce[0]]:!(ce[0]in f))return!1}for(;++K<ie;){ce=F[K];var pe=ce[0],Ee=f[pe],Ae=ce[1];if(le&&ce[2]){if(Ee===n&&!(pe in f))return!1}else{var $e=new or;if(W)var Fe=W(Ee,Ae,pe,f,g,$e);if(!(Fe===n?fn(Ae,Ee,O|R,W,$e):Fe))return!1}}return!0}function Ao(f){if(!St(f)||uf(f))return!1;var g=yr(f)?Au:vl;return g.test(Nr(f))}function wc(f){return Tt(f)&&kt(f)==Pe}function $c(f){return Tt(f)&&Lt(f)==Oe}function Ic(f){return Tt(f)&&ii(f.length)&&!!yt[kt(f)]}function xo(f){return typeof f=="function"?f:f==null?Gt:typeof f=="object"?Qe(f)?Io(f[0],f[1]):$o(f):Ks(f)}function Bi(f){if(!pn(f))return Pu(f);var g=[];for(var F in mt(f))gt.call(f,F)&&F!="constructor"&&g.push(F);return g}function Oc(f){if(!St(f))return hf(f);var g=pn(f),F=[];for(var W in f)W=="constructor"&&(g||!gt.call(f,W))||F.push(W);return F}function ki(f,g){return f<g}function wo(f,g){var F=-1,W=zt(f)?_e(f.length):[];return xr(f,function(K,ie,le){W[++F]=g(K,ie,le)}),W}function $o(f){var g=Ji(f);return g.length==1&&g[0][2]?ls(g[0][0],g[0][1]):function(F){return F===f||Li(F,f,g)}}function Io(f,g){return ea(f)&&ss(g)?ls(fr(f),g):function(F){var W=ca(F,f);return W===n&&W===g?fa(F,f):fn(g,W,O|R)}}function zn(f,g,F,W,K){f!==g&&Pi(g,function(ie,le){if(K||(K=new or),St(ie))Pc(f,g,le,F,zn,W,K);else{var ce=W?W(ra(f,le),ie,le+"",f,g,K):n;ce===n&&(ce=ie),Ii(f,le,ce)}},Ut)}function Pc(f,g,F,W,K,ie,le){var ce=ra(f,F),pe=ra(g,F),Ee=le.get(pe);if(Ee){Ii(f,F,Ee);return}var Ae=ie?ie(ce,pe,F+"",f,g,le):n,$e=Ae===n;if($e){var Fe=Qe(pe),Ge=!Fe&&Or(pe),Ke=!Fe&&!Ge&&Qr(pe);Ae=pe,Fe||Ge||Ke?Qe(ce)?Ae=ce:Ct(ce)?Ae=Ht(ce):Ge?($e=!1,Ae=Ho(pe,!0)):Ke?($e=!1,Ae=zo(pe,!0)):Ae=[]:gn(pe)||Fr(pe)?(Ae=ce,Fr(ce)?Ae=Ns(ce):(!St(ce)||yr(ce))&&(Ae=os(pe))):$e=!1}$e&&(le.set(pe,Ae),K(Ae,pe,W,ie,le),le.delete(pe)),Ii(f,F,Ae)}function Oo(f,g){var F=f.length;if(!!F)return g+=g<0?F:0,_r(g,F)?f[g]:n}function Po(f,g,F){g.length?g=bt(g,function(ie){return Qe(ie)?function(le){return Br(le,ie.length===1?ie[0]:ie)}:ie}):g=[Gt];var W=-1;g=bt(g,Yt(Ye()));var K=wo(f,function(ie,le,ce){var pe=bt(g,function(Ee){return Ee(ie)});return{criteria:pe,index:++W,value:ie}});return nu(K,function(ie,le){return Gc(ie,le,F)})}function Dc(f,g){return Do(f,g,function(F,W){return fa(f,W)})}function Do(f,g,F){for(var W=-1,K=g.length,ie={};++W<K;){var le=g[W],ce=Br(f,le);F(ce,le)&&dn(ie,$r(le,f),ce)}return ie}function Rc(f){return function(g){return Br(g,f)}}function Ni(f,g,F,W){var K=W?ru:zr,ie=-1,le=g.length,ce=f;for(f===g&&(g=Ht(g)),F&&(ce=bt(f,Yt(F)));++ie<le;)for(var pe=0,Ee=g[ie],Ae=F?F(Ee):Ee;(pe=K(ce,Ae,pe,W))>-1;)ce!==f&&Dn.call(ce,pe,1),Dn.call(f,pe,1);return f}function Ro(f,g){for(var F=f?g.length:0,W=F-1;F--;){var K=g[F];if(F==W||K!==ie){var ie=K;_r(K)?Dn.call(f,K,1):zi(f,K)}}return f}function Fi(f,g){return f+Ln(ho()*(g-f+1))}function Mc(f,g,F,W){for(var K=-1,ie=wt(Mn((g-f)/(F||1)),0),le=_e(ie);ie--;)le[W?ie:++K]=f,f+=F;return le}function Vi(f,g){var F="";if(!f||g<1||g>ge)return F;do g%2&&(F+=f),g=Ln(g/2),g&&(f+=f);while(g);return F}function it(f,g){return na(us(f,g,Gt),f+"")}function Lc(f){return go(en(f))}function Bc(f,g){var F=en(f);return Jn(F,Lr(g,0,F.length))}function dn(f,g,F,W){if(!St(f))return f;g=$r(g,f);for(var K=-1,ie=g.length,le=ie-1,ce=f;ce!=null&&++K<ie;){var pe=fr(g[K]),Ee=F;if(pe==="__proto__"||pe==="constructor"||pe==="prototype")return f;if(K!=le){var Ae=ce[pe];Ee=W?W(Ae,pe,ce):n,Ee===n&&(Ee=St(Ae)?Ae:_r(g[K+1])?[]:{})}ln(ce,pe,Ee),ce=ce[pe]}return f}var Mo=Bn?function(f,g){return Bn.set(f,g),f}:Gt,kc=Rn?function(f,g){return Rn(f,"toString",{configurable:!0,enumerable:!1,value:ha(g),writable:!0})}:Gt;function Nc(f){return Jn(en(f))}function rr(f,g,F){var W=-1,K=f.length;g<0&&(g=-g>K?0:K+g),F=F>K?K:F,F<0&&(F+=K),K=g>F?0:F-g>>>0,g>>>=0;for(var ie=_e(K);++W<K;)ie[W]=f[W+g];return ie}function Fc(f,g){var F;return xr(f,function(W,K,ie){return F=g(W,K,ie),!F}),!!F}function Un(f,g,F){var W=0,K=f==null?W:f.length;if(typeof g=="number"&&g===g&&K<=De){for(;W<K;){var ie=W+K>>>1,le=f[ie];le!==null&&!Kt(le)&&(F?le<=g:le<g)?W=ie+1:K=ie}return K}return Hi(f,g,Gt,F)}function Hi(f,g,F,W){var K=0,ie=f==null?0:f.length;if(ie===0)return 0;g=F(g);for(var le=g!==g,ce=g===null,pe=Kt(g),Ee=g===n;K<ie;){var Ae=Ln((K+ie)/2),$e=F(f[Ae]),Fe=$e!==n,Ge=$e===null,Ke=$e===$e,nt=Kt($e);if(le)var je=W||Ke;else Ee?je=Ke&&(W||Fe):ce?je=Ke&&Fe&&(W||!Ge):pe?je=Ke&&Fe&&!Ge&&(W||!nt):Ge||nt?je=!1:je=W?$e<=g:$e<g;je?K=Ae+1:ie=Ae}return Mt(ie,me)}function Lo(f,g){for(var F=-1,W=f.length,K=0,ie=[];++F<W;){var le=f[F],ce=g?g(le):le;if(!F||!sr(ce,pe)){var pe=ce;ie[K++]=le===0?0:le}}return ie}function Bo(f){return typeof f=="number"?f:Kt(f)?Be:+f}function qt(f){if(typeof f=="string")return f;if(Qe(f))return bt(f,qt)+"";if(Kt(f))return po?po.call(f):"";var g=f+"";return g=="0"&&1/f==-ye?"-0":g}function wr(f,g,F){var W=-1,K=Tn,ie=f.length,le=!0,ce=[],pe=ce;if(F)le=!1,K=gi;else if(ie>=a){var Ee=g?null:Xc(f);if(Ee)return En(Ee);le=!1,K=tn,pe=new Mr}else pe=g?[]:ce;e:for(;++W<ie;){var Ae=f[W],$e=g?g(Ae):Ae;if(Ae=F||Ae!==0?Ae:0,le&&$e===$e){for(var Fe=pe.length;Fe--;)if(pe[Fe]===$e)continue e;g&&pe.push($e),ce.push(Ae)}else K(pe,$e,F)||(pe!==ce&&pe.push($e),ce.push(Ae))}return ce}function zi(f,g){return g=$r(g,f),f=cs(f,g),f==null||delete f[fr(nr(g))]}function ko(f,g,F,W){return dn(f,g,F(Br(f,g)),W)}function Gn(f,g,F,W){for(var K=f.length,ie=W?K:-1;(W?ie--:++ie<K)&&g(f[ie],ie,f););return F?rr(f,W?0:ie,W?ie+1:K):rr(f,W?ie+1:0,W?K:ie)}function No(f,g){var F=f;return F instanceof ut&&(F=F.value()),mi(g,function(W,K){return K.func.apply(K.thisArg,Cr([W],K.args))},F)}function Ui(f,g,F){var W=f.length;if(W<2)return W?wr(f[0]):[];for(var K=-1,ie=_e(W);++K<W;)for(var le=f[K],ce=-1;++ce<W;)ce!=K&&(ie[K]=un(ie[K]||le,f[ce],g,F));return wr(Rt(ie,1),g,F)}function Fo(f,g,F){for(var W=-1,K=f.length,ie=g.length,le={};++W<K;){var ce=W<ie?g[W]:n;F(le,f[W],ce)}return le}function Gi(f){return Ct(f)?f:[]}function Wi(f){return typeof f=="function"?f:Gt}function $r(f,g){return Qe(f)?f:ea(f,g)?[f]:ps(vt(f))}var Vc=it;function Ir(f,g,F){var W=f.length;return F=F===n?W:F,!g&&F>=W?f:rr(f,g,F)}var Vo=xu||function(f){return Dt.clearTimeout(f)};function Ho(f,g){if(g)return f.slice();var F=f.length,W=so?so(F):new f.constructor(F);return f.copy(W),W}function Yi(f){var g=new f.constructor(f.byteLength);return new On(g).set(new On(f)),g}function Hc(f,g){var F=g?Yi(f.buffer):f.buffer;return new f.constructor(F,f.byteOffset,f.byteLength)}function zc(f){var g=new f.constructor(f.source,Ca.exec(f));return g.lastIndex=f.lastIndex,g}function Uc(f){return sn?mt(sn.call(f)):{}}function zo(f,g){var F=g?Yi(f.buffer):f.buffer;return new f.constructor(F,f.byteOffset,f.length)}function Uo(f,g){if(f!==g){var F=f!==n,W=f===null,K=f===f,ie=Kt(f),le=g!==n,ce=g===null,pe=g===g,Ee=Kt(g);if(!ce&&!Ee&&!ie&&f>g||ie&&le&&pe&&!ce&&!Ee||W&&le&&pe||!F&&pe||!K)return 1;if(!W&&!ie&&!Ee&&f<g||Ee&&F&&K&&!W&&!ie||ce&&F&&K||!le&&K||!pe)return-1}return 0}function Gc(f,g,F){for(var W=-1,K=f.criteria,ie=g.criteria,le=K.length,ce=F.length;++W<le;){var pe=Uo(K[W],ie[W]);if(pe){if(W>=ce)return pe;var Ee=F[W];return pe*(Ee=="desc"?-1:1)}}return f.index-g.index}function Go(f,g,F,W){for(var K=-1,ie=f.length,le=F.length,ce=-1,pe=g.length,Ee=wt(ie-le,0),Ae=_e(pe+Ee),$e=!W;++ce<pe;)Ae[ce]=g[ce];for(;++K<le;)($e||K<ie)&&(Ae[F[K]]=f[K]);for(;Ee--;)Ae[ce++]=f[K++];return Ae}function Wo(f,g,F,W){for(var K=-1,ie=f.length,le=-1,ce=F.length,pe=-1,Ee=g.length,Ae=wt(ie-ce,0),$e=_e(Ae+Ee),Fe=!W;++K<Ae;)$e[K]=f[K];for(var Ge=K;++pe<Ee;)$e[Ge+pe]=g[pe];for(;++le<ce;)(Fe||K<ie)&&($e[Ge+F[le]]=f[K++]);return $e}function Ht(f,g){var F=-1,W=f.length;for(g||(g=_e(W));++F<W;)g[F]=f[F];return g}function cr(f,g,F,W){var K=!F;F||(F={});for(var ie=-1,le=g.length;++ie<le;){var ce=g[ie],pe=W?W(F[ce],f[ce],ce,F,f):n;pe===n&&(pe=f[ce]),K?vr(F,ce,pe):ln(F,ce,pe)}return F}function Wc(f,g){return cr(f,Qi(f),g)}function Yc(f,g){return cr(f,is(f),g)}function Wn(f,g){return function(F,W){var K=Qe(F)?Xl:hc,ie=g?g():{};return K(F,f,Ye(W,2),ie)}}function Xr(f){return it(function(g,F){var W=-1,K=F.length,ie=K>1?F[K-1]:n,le=K>2?F[2]:n;for(ie=f.length>3&&typeof ie=="function"?(K--,ie):n,le&&Nt(F[0],F[1],le)&&(ie=K<3?n:ie,K=1),g=mt(g);++W<K;){var ce=F[W];ce&&f(g,ce,W,ie)}return g})}function Yo(f,g){return function(F,W){if(F==null)return F;if(!zt(F))return f(F,W);for(var K=F.length,ie=g?K:-1,le=mt(F);(g?ie--:++ie<K)&&W(le[ie],ie,le)!==!1;);return F}}function qo(f){return function(g,F,W){for(var K=-1,ie=mt(g),le=W(g),ce=le.length;ce--;){var pe=le[f?ce:++K];if(F(ie[pe],pe,ie)===!1)break}return g}}function qc(f,g,F){var W=g&M,K=hn(f);function ie(){var le=this&&this!==Dt&&this instanceof ie?K:f;return le.apply(W?F:this,arguments)}return ie}function Ko(f){return function(g){g=vt(g);var F=Ur(g)?ar(g):n,W=F?F[0]:g.charAt(0),K=F?Ir(F,1).join(""):g.slice(1);return W[f]()+K}}function Zr(f){return function(g){return mi(Ys(Ws(g).replace(Bl,"")),f,"")}}function hn(f){return function(){var g=arguments;switch(g.length){case 0:return new f;case 1:return new f(g[0]);case 2:return new f(g[0],g[1]);case 3:return new f(g[0],g[1],g[2]);case 4:return new f(g[0],g[1],g[2],g[3]);case 5:return new f(g[0],g[1],g[2],g[3],g[4]);case 6:return new f(g[0],g[1],g[2],g[3],g[4],g[5]);case 7:return new f(g[0],g[1],g[2],g[3],g[4],g[5],g[6])}var F=jr(f.prototype),W=f.apply(F,g);return St(W)?W:F}}function Kc(f,g,F){var W=hn(f);function K(){for(var ie=arguments.length,le=_e(ie),ce=ie,pe=Jr(K);ce--;)le[ce]=arguments[ce];var Ee=ie<3&&le[0]!==pe&&le[ie-1]!==pe?[]:Er(le,pe);if(ie-=Ee.length,ie<F)return Qo(f,g,Yn,K.placeholder,n,le,Ee,n,n,F-ie);var Ae=this&&this!==Dt&&this instanceof K?W:f;return Wt(Ae,this,le)}return K}function jo(f){return function(g,F,W){var K=mt(g);if(!zt(g)){var ie=Ye(F,3);g=It(g),F=function(ce){return ie(K[ce],ce,K)}}var le=f(g,F,W);return le>-1?K[ie?g[le]:le]:n}}function Xo(f){return mr(function(g){var F=g.length,W=F,K=er.prototype.thru;for(f&&g.reverse();W--;){var ie=g[W];if(typeof ie!="function")throw new Qt(s);if(K&&!le&&Xn(ie)=="wrapper")var le=new er([],!0)}for(W=le?W:F;++W<F;){ie=g[W];var ce=Xn(ie),pe=ce=="wrapper"?Zi(ie):n;pe&&ta(pe[0])&&pe[1]==(Z|G|X|ee)&&!pe[4].length&&pe[9]==1?le=le[Xn(pe[0])].apply(le,pe[3]):le=ie.length==1&&ta(ie)?le[ce]():le.thru(ie)}return function(){var Ee=arguments,Ae=Ee[0];if(le&&Ee.length==1&&Qe(Ae))return le.plant(Ae).value();for(var $e=0,Fe=F?g[$e].apply(this,Ee):Ae;++$e<F;)Fe=g[$e].call(this,Fe);return Fe}})}function Yn(f,g,F,W,K,ie,le,ce,pe,Ee){var Ae=g&Z,$e=g&M,Fe=g&N,Ge=g&(G|Y),Ke=g&ne,nt=Fe?n:hn(f);function je(){for(var ot=arguments.length,ct=_e(ot),jt=ot;jt--;)ct[jt]=arguments[jt];if(Ge)var Ft=Jr(je),Xt=au(ct,Ft);if(W&&(ct=Go(ct,W,K,Ge)),ie&&(ct=Wo(ct,ie,le,Ge)),ot-=Xt,Ge&&ot<Ee){var Et=Er(ct,Ft);return Qo(f,g,Yn,je.placeholder,F,ct,Et,ce,pe,Ee-ot)}var lr=$e?F:this,Sr=Fe?lr[f]:f;return ot=ct.length,ce?ct=vf(ct,ce):Ke&&ot>1&&ct.reverse(),Ae&&pe<ot&&(ct.length=pe),this&&this!==Dt&&this instanceof je&&(Sr=nt||hn(Sr)),Sr.apply(lr,ct)}return je}function Zo(f,g){return function(F,W){return Tc(F,f,g(W),{})}}function qn(f,g){return function(F,W){var K;if(F===n&&W===n)return g;if(F!==n&&(K=F),W!==n){if(K===n)return W;typeof F=="string"||typeof W=="string"?(F=qt(F),W=qt(W)):(F=Bo(F),W=Bo(W)),K=f(F,W)}return K}}function qi(f){return mr(function(g){return g=bt(g,Yt(Ye())),it(function(F){var W=this;return f(g,function(K){return Wt(K,W,F)})})})}function Kn(f,g){g=g===n?" ":qt(g);var F=g.length;if(F<2)return F?Vi(g,f):g;var W=Vi(g,Mn(f/Gr(g)));return Ur(g)?Ir(ar(W),0,f).join(""):W.slice(0,f)}function jc(f,g,F,W){var K=g&M,ie=hn(f);function le(){for(var ce=-1,pe=arguments.length,Ee=-1,Ae=W.length,$e=_e(Ae+pe),Fe=this&&this!==Dt&&this instanceof le?ie:f;++Ee<Ae;)$e[Ee]=W[Ee];for(;pe--;)$e[Ee++]=arguments[++ce];return Wt(Fe,K?F:this,$e)}return le}function Jo(f){return function(g,F,W){return W&&typeof W!="number"&&Nt(g,F,W)&&(F=W=n),g=br(g),F===n?(F=g,g=0):F=br(F),W=W===n?g<F?1:-1:br(W),Mc(g,F,W,f)}}function jn(f){return function(g,F){return typeof g=="string"&&typeof F=="string"||(g=ir(g),F=ir(F)),f(g,F)}}function Qo(f,g,F,W,K,ie,le,ce,pe,Ee){var Ae=g&G,$e=Ae?le:n,Fe=Ae?n:le,Ge=Ae?ie:n,Ke=Ae?n:ie;g|=Ae?X:q,g&=~(Ae?q:X),g&V||(g&=~(M|N));var nt=[f,g,K,Ge,$e,Ke,Fe,ce,pe,Ee],je=F.apply(n,nt);return ta(f)&&fs(je,nt),je.placeholder=W,ds(je,f,g)}function Ki(f){var g=xt[f];return function(F,W){if(F=ir(F),W=W==null?0:Mt(et(W),292),W&&fo(F)){var K=(vt(F)+"e").split("e"),ie=g(K[0]+"e"+(+K[1]+W));return K=(vt(ie)+"e").split("e"),+(K[0]+"e"+(+K[1]-W))}return g(F)}}var Xc=qr&&1/En(new qr([,-0]))[1]==ye?function(f){return new qr(f)}:ga;function es(f){return function(g){var F=Lt(g);return F==ae?Ei(g):F==Oe?du(g):iu(g,f(g))}}function gr(f,g,F,W,K,ie,le,ce){var pe=g&N;if(!pe&&typeof f!="function")throw new Qt(s);var Ee=W?W.length:0;if(Ee||(g&=~(X|q),W=K=n),le=le===n?le:wt(et(le),0),ce=ce===n?ce:et(ce),Ee-=K?K.length:0,g&q){var Ae=W,$e=K;W=K=n}var Fe=pe?n:Zi(f),Ge=[f,g,F,W,K,Ae,$e,ie,le,ce];if(Fe&&df(Ge,Fe),f=Ge[0],g=Ge[1],F=Ge[2],W=Ge[3],K=Ge[4],ce=Ge[9]=Ge[9]===n?pe?0:f.length:wt(Ge[9]-Ee,0),!ce&&g&(G|Y)&&(g&=~(G|Y)),!g||g==M)var Ke=qc(f,g,F);else g==G||g==Y?Ke=Kc(f,g,ce):(g==X||g==(M|X))&&!K.length?Ke=jc(f,g,F,W):Ke=Yn.apply(n,Ge);var nt=Fe?Mo:fs;return ds(nt(Ke,Ge),f,g)}function ts(f,g,F,W){return f===n||sr(f,Yr[F])&&!gt.call(W,F)?g:f}function rs(f,g,F,W,K,ie){return St(f)&&St(g)&&(ie.set(g,f),zn(f,g,n,rs,ie),ie.delete(g)),f}function Zc(f){return gn(f)?n:f}function ns(f,g,F,W,K,ie){var le=F&O,ce=f.length,pe=g.length;if(ce!=pe&&!(le&&pe>ce))return!1;var Ee=ie.get(f),Ae=ie.get(g);if(Ee&&Ae)return Ee==g&&Ae==f;var $e=-1,Fe=!0,Ge=F&R?new Mr:n;for(ie.set(f,g),ie.set(g,f);++$e<ce;){var Ke=f[$e],nt=g[$e];if(W)var je=le?W(nt,Ke,$e,g,f,ie):W(Ke,nt,$e,f,g,ie);if(je!==n){if(je)continue;Fe=!1;break}if(Ge){if(!_i(g,function(ot,ct){if(!tn(Ge,ct)&&(Ke===ot||K(Ke,ot,F,W,ie)))return Ge.push(ct)})){Fe=!1;break}}else if(!(Ke===nt||K(Ke,nt,F,W,ie))){Fe=!1;break}}return ie.delete(f),ie.delete(g),Fe}function Jc(f,g,F,W,K,ie,le){switch(F){case st:if(f.byteLength!=g.byteLength||f.byteOffset!=g.byteOffset)return!1;f=f.buffer,g=g.buffer;case Je:return!(f.byteLength!=g.byteLength||!ie(new On(f),new On(g)));case at:case dt:case ve:return sr(+f,+g);case Me:return f.name==g.name&&f.message==g.message;case Pe:case we:return f==g+"";case ae:var ce=Ei;case Oe:var pe=W&O;if(ce||(ce=En),f.size!=g.size&&!pe)return!1;var Ee=le.get(f);if(Ee)return Ee==g;W|=R,le.set(f,g);var Ae=ns(ce(f),ce(g),W,K,ie,le);return le.delete(f),Ae;case We:if(sn)return sn.call(f)==sn.call(g)}return!1}function Qc(f,g,F,W,K,ie){var le=F&O,ce=ji(f),pe=ce.length,Ee=ji(g),Ae=Ee.length;if(pe!=Ae&&!le)return!1;for(var $e=pe;$e--;){var Fe=ce[$e];if(!(le?Fe in g:gt.call(g,Fe)))return!1}var Ge=ie.get(f),Ke=ie.get(g);if(Ge&&Ke)return Ge==g&&Ke==f;var nt=!0;ie.set(f,g),ie.set(g,f);for(var je=le;++$e<pe;){Fe=ce[$e];var ot=f[Fe],ct=g[Fe];if(W)var jt=le?W(ct,ot,Fe,g,f,ie):W(ot,ct,Fe,f,g,ie);if(!(jt===n?ot===ct||K(ot,ct,F,W,ie):jt)){nt=!1;break}je||(je=Fe=="constructor")}if(nt&&!je){var Ft=f.constructor,Xt=g.constructor;Ft!=Xt&&"constructor"in f&&"constructor"in g&&!(typeof Ft=="function"&&Ft instanceof Ft&&typeof Xt=="function"&&Xt instanceof Xt)&&(nt=!1)}return ie.delete(f),ie.delete(g),nt}function mr(f){return na(us(f,n,_s),f+"")}function ji(f){return Co(f,It,Qi)}function Xi(f){return Co(f,Ut,is)}var Zi=Bn?function(f){return Bn.get(f)}:ga;function Xn(f){for(var g=f.name+"",F=Kr[g],W=gt.call(Kr,g)?F.length:0;W--;){var K=F[W],ie=K.func;if(ie==null||ie==f)return K.name}return g}function Jr(f){var g=gt.call(re,"placeholder")?re:f;return g.placeholder}function Ye(){var f=re.iteratee||pa;return f=f===pa?xo:f,arguments.length?f(arguments[0],arguments[1]):f}function Zn(f,g){var F=f.__data__;return lf(g)?F[typeof g=="string"?"string":"hash"]:F.map}function Ji(f){for(var g=It(f),F=g.length;F--;){var W=g[F],K=f[W];g[F]=[W,K,ss(K)]}return g}function kr(f,g){var F=uu(f,g);return Ao(F)?F:n}function ef(f){var g=gt.call(f,Dr),F=f[Dr];try{f[Dr]=n;var W=!0}catch{}var K=$n.call(f);return W&&(g?f[Dr]=F:delete f[Dr]),K}var Qi=xi?function(f){return f==null?[]:(f=mt(f),Tr(xi(f),function(g){return uo.call(f,g)}))}:ma,is=xi?function(f){for(var g=[];f;)Cr(g,Qi(f)),f=Pn(f);return g}:ma,Lt=kt;(wi&&Lt(new wi(new ArrayBuffer(1)))!=st||nn&&Lt(new nn)!=ae||$i&&Lt($i.resolve())!=xe||qr&&Lt(new qr)!=Oe||an&&Lt(new an)!=ze)&&(Lt=function(f){var g=kt(f),F=g==be?f.constructor:n,W=F?Nr(F):"";if(W)switch(W){case Lu:return st;case Bu:return ae;case ku:return xe;case Nu:return Oe;case Fu:return ze}return g});function tf(f,g,F){for(var W=-1,K=F.length;++W<K;){var ie=F[W],le=ie.size;switch(ie.type){case"drop":f+=le;break;case"dropRight":g-=le;break;case"take":g=Mt(g,f+le);break;case"takeRight":f=wt(f,g-le);break}}return{start:f,end:g}}function rf(f){var g=f.match(sl);return g?g[1].split(ll):[]}function as(f,g,F){g=$r(g,f);for(var W=-1,K=g.length,ie=!1;++W<K;){var le=fr(g[W]);if(!(ie=f!=null&&F(f,le)))break;f=f[le]}return ie||++W!=K?ie:(K=f==null?0:f.length,!!K&&ii(K)&&_r(le,K)&&(Qe(f)||Fr(f)))}function nf(f){var g=f.length,F=new f.constructor(g);return g&&typeof f[0]=="string"&&gt.call(f,"index")&&(F.index=f.index,F.input=f.input),F}function os(f){return typeof f.constructor=="function"&&!pn(f)?jr(Pn(f)):{}}function af(f,g,F){var W=f.constructor;switch(g){case Je:return Yi(f);case at:case dt:return new W(+f);case st:return Hc(f,F);case ht:case $t:case At:case Bt:case Ot:case dr:case Vr:case Pt:case Vt:return zo(f,F);case ae:return new W;case ve:case we:return new W(f);case Pe:return zc(f);case Oe:return new W;case We:return Uc(f)}}function of(f,g){var F=g.length;if(!F)return f;var W=F-1;return g[W]=(F>1?"& ":"")+g[W],g=g.join(F>2?", ":" "),f.replace(ol,`{
170
+ /* [wrapped with `+g+`] */
171
+ `)}function sf(f){return Qe(f)||Fr(f)||!!(co&&f&&f[co])}function _r(f,g){var F=typeof f;return g=g==null?ge:g,!!g&&(F=="number"||F!="symbol"&&ml.test(f))&&f>-1&&f%1==0&&f<g}function Nt(f,g,F){if(!St(F))return!1;var W=typeof g;return(W=="number"?zt(F)&&_r(g,F.length):W=="string"&&g in F)?sr(F[g],f):!1}function ea(f,g){if(Qe(f))return!1;var F=typeof f;return F=="number"||F=="symbol"||F=="boolean"||f==null||Kt(f)?!0:rl.test(f)||!tl.test(f)||g!=null&&f in mt(g)}function lf(f){var g=typeof f;return g=="string"||g=="number"||g=="symbol"||g=="boolean"?f!=="__proto__":f===null}function ta(f){var g=Xn(f),F=re[g];if(typeof F!="function"||!(g in ut.prototype))return!1;if(f===F)return!0;var W=Zi(F);return!!W&&f===W[0]}function uf(f){return!!oo&&oo in f}var cf=xn?yr:ya;function pn(f){var g=f&&f.constructor,F=typeof g=="function"&&g.prototype||Yr;return f===F}function ss(f){return f===f&&!St(f)}function ls(f,g){return function(F){return F==null?!1:F[f]===g&&(g!==n||f in mt(F))}}function ff(f){var g=ri(f,function(W){return F.size===c&&F.clear(),W}),F=g.cache;return g}function df(f,g){var F=f[1],W=g[1],K=F|W,ie=K<(M|N|Z),le=W==Z&&F==G||W==Z&&F==ee&&f[7].length<=g[8]||W==(Z|ee)&&g[7].length<=g[8]&&F==G;if(!(ie||le))return f;W&M&&(f[2]=g[2],K|=F&M?0:V);var ce=g[3];if(ce){var pe=f[3];f[3]=pe?Go(pe,ce,g[4]):ce,f[4]=pe?Er(f[3],d):g[4]}return ce=g[5],ce&&(pe=f[5],f[5]=pe?Wo(pe,ce,g[6]):ce,f[6]=pe?Er(f[5],d):g[6]),ce=g[7],ce&&(f[7]=ce),W&Z&&(f[8]=f[8]==null?g[8]:Mt(f[8],g[8])),f[9]==null&&(f[9]=g[9]),f[0]=g[0],f[1]=K,f}function hf(f){var g=[];if(f!=null)for(var F in mt(f))g.push(F);return g}function pf(f){return $n.call(f)}function us(f,g,F){return g=wt(g===n?f.length-1:g,0),function(){for(var W=arguments,K=-1,ie=wt(W.length-g,0),le=_e(ie);++K<ie;)le[K]=W[g+K];K=-1;for(var ce=_e(g+1);++K<g;)ce[K]=W[K];return ce[g]=F(le),Wt(f,this,ce)}}function cs(f,g){return g.length<2?f:Br(f,rr(g,0,-1))}function vf(f,g){for(var F=f.length,W=Mt(g.length,F),K=Ht(f);W--;){var ie=g[W];f[W]=_r(ie,F)?K[ie]:n}return f}function ra(f,g){if(!(g==="constructor"&&typeof f[g]=="function")&&g!="__proto__")return f[g]}var fs=hs(Mo),vn=$u||function(f,g){return Dt.setTimeout(f,g)},na=hs(kc);function ds(f,g,F){var W=g+"";return na(f,of(W,gf(rf(W),F)))}function hs(f){var g=0,F=0;return function(){var W=Du(),K=oe-(W-F);if(F=W,K>0){if(++g>=Q)return arguments[0]}else g=0;return f.apply(n,arguments)}}function Jn(f,g){var F=-1,W=f.length,K=W-1;for(g=g===n?W:g;++F<g;){var ie=Fi(F,K),le=f[ie];f[ie]=f[F],f[F]=le}return f.length=g,f}var ps=ff(function(f){var g=[];return f.charCodeAt(0)===46&&g.push(""),f.replace(nl,function(F,W,K,ie){g.push(K?ie.replace(fl,"$1"):W||F)}),g});function fr(f){if(typeof f=="string"||Kt(f))return f;var g=f+"";return g=="0"&&1/f==-ye?"-0":g}function Nr(f){if(f!=null){try{return wn.call(f)}catch{}try{return f+""}catch{}}return""}function gf(f,g){return Jt(Ve,function(F){var W="_."+F[0];g&F[1]&&!Tn(f,W)&&f.push(W)}),f.sort()}function vs(f){if(f instanceof ut)return f.clone();var g=new er(f.__wrapped__,f.__chain__);return g.__actions__=Ht(f.__actions__),g.__index__=f.__index__,g.__values__=f.__values__,g}function mf(f,g,F){(F?Nt(f,g,F):g===n)?g=1:g=wt(et(g),0);var W=f==null?0:f.length;if(!W||g<1)return[];for(var K=0,ie=0,le=_e(Mn(W/g));K<W;)le[ie++]=rr(f,K,K+=g);return le}function _f(f){for(var g=-1,F=f==null?0:f.length,W=0,K=[];++g<F;){var ie=f[g];ie&&(K[W++]=ie)}return K}function yf(){var f=arguments.length;if(!f)return[];for(var g=_e(f-1),F=arguments[0],W=f;W--;)g[W-1]=arguments[W];return Cr(Qe(F)?Ht(F):[F],Rt(g,1))}var bf=it(function(f,g){return Ct(f)?un(f,Rt(g,1,Ct,!0)):[]}),Sf=it(function(f,g){var F=nr(g);return Ct(F)&&(F=n),Ct(f)?un(f,Rt(g,1,Ct,!0),Ye(F,2)):[]}),Tf=it(function(f,g){var F=nr(g);return Ct(F)&&(F=n),Ct(f)?un(f,Rt(g,1,Ct,!0),n,F):[]});function Cf(f,g,F){var W=f==null?0:f.length;return W?(g=F||g===n?1:et(g),rr(f,g<0?0:g,W)):[]}function Ef(f,g,F){var W=f==null?0:f.length;return W?(g=F||g===n?1:et(g),g=W-g,rr(f,0,g<0?0:g)):[]}function Af(f,g){return f&&f.length?Gn(f,Ye(g,3),!0,!0):[]}function xf(f,g){return f&&f.length?Gn(f,Ye(g,3),!0):[]}function wf(f,g,F,W){var K=f==null?0:f.length;return K?(F&&typeof F!="number"&&Nt(f,g,F)&&(F=0,W=K),mc(f,g,F,W)):[]}function gs(f,g,F){var W=f==null?0:f.length;if(!W)return-1;var K=F==null?0:et(F);return K<0&&(K=wt(W+K,0)),Cn(f,Ye(g,3),K)}function ms(f,g,F){var W=f==null?0:f.length;if(!W)return-1;var K=W-1;return F!==n&&(K=et(F),K=F<0?wt(W+K,0):Mt(K,W-1)),Cn(f,Ye(g,3),K,!0)}function _s(f){var g=f==null?0:f.length;return g?Rt(f,1):[]}function $f(f){var g=f==null?0:f.length;return g?Rt(f,ye):[]}function If(f,g){var F=f==null?0:f.length;return F?(g=g===n?1:et(g),Rt(f,g)):[]}function Of(f){for(var g=-1,F=f==null?0:f.length,W={};++g<F;){var K=f[g];W[K[0]]=K[1]}return W}function ys(f){return f&&f.length?f[0]:n}function Pf(f,g,F){var W=f==null?0:f.length;if(!W)return-1;var K=F==null?0:et(F);return K<0&&(K=wt(W+K,0)),zr(f,g,K)}function Df(f){var g=f==null?0:f.length;return g?rr(f,0,-1):[]}var Rf=it(function(f){var g=bt(f,Gi);return g.length&&g[0]===f[0]?Mi(g):[]}),Mf=it(function(f){var g=nr(f),F=bt(f,Gi);return g===nr(F)?g=n:F.pop(),F.length&&F[0]===f[0]?Mi(F,Ye(g,2)):[]}),Lf=it(function(f){var g=nr(f),F=bt(f,Gi);return g=typeof g=="function"?g:n,g&&F.pop(),F.length&&F[0]===f[0]?Mi(F,n,g):[]});function Bf(f,g){return f==null?"":Ou.call(f,g)}function nr(f){var g=f==null?0:f.length;return g?f[g-1]:n}function kf(f,g,F){var W=f==null?0:f.length;if(!W)return-1;var K=W;return F!==n&&(K=et(F),K=K<0?wt(W+K,0):Mt(K,W-1)),g===g?pu(f,g,K):Cn(f,Ja,K,!0)}function Nf(f,g){return f&&f.length?Oo(f,et(g)):n}var Ff=it(bs);function bs(f,g){return f&&f.length&&g&&g.length?Ni(f,g):f}function Vf(f,g,F){return f&&f.length&&g&&g.length?Ni(f,g,Ye(F,2)):f}function Hf(f,g,F){return f&&f.length&&g&&g.length?Ni(f,g,n,F):f}var zf=mr(function(f,g){var F=f==null?0:f.length,W=Oi(f,g);return Ro(f,bt(g,function(K){return _r(K,F)?+K:K}).sort(Uo)),W});function Uf(f,g){var F=[];if(!(f&&f.length))return F;var W=-1,K=[],ie=f.length;for(g=Ye(g,3);++W<ie;){var le=f[W];g(le,W,f)&&(F.push(le),K.push(W))}return Ro(f,K),F}function ia(f){return f==null?f:Mu.call(f)}function Gf(f,g,F){var W=f==null?0:f.length;return W?(F&&typeof F!="number"&&Nt(f,g,F)?(g=0,F=W):(g=g==null?0:et(g),F=F===n?W:et(F)),rr(f,g,F)):[]}function Wf(f,g){return Un(f,g)}function Yf(f,g,F){return Hi(f,g,Ye(F,2))}function qf(f,g){var F=f==null?0:f.length;if(F){var W=Un(f,g);if(W<F&&sr(f[W],g))return W}return-1}function Kf(f,g){return Un(f,g,!0)}function jf(f,g,F){return Hi(f,g,Ye(F,2),!0)}function Xf(f,g){var F=f==null?0:f.length;if(F){var W=Un(f,g,!0)-1;if(sr(f[W],g))return W}return-1}function Zf(f){return f&&f.length?Lo(f):[]}function Jf(f,g){return f&&f.length?Lo(f,Ye(g,2)):[]}function Qf(f){var g=f==null?0:f.length;return g?rr(f,1,g):[]}function ed(f,g,F){return f&&f.length?(g=F||g===n?1:et(g),rr(f,0,g<0?0:g)):[]}function td(f,g,F){var W=f==null?0:f.length;return W?(g=F||g===n?1:et(g),g=W-g,rr(f,g<0?0:g,W)):[]}function rd(f,g){return f&&f.length?Gn(f,Ye(g,3),!1,!0):[]}function nd(f,g){return f&&f.length?Gn(f,Ye(g,3)):[]}var id=it(function(f){return wr(Rt(f,1,Ct,!0))}),ad=it(function(f){var g=nr(f);return Ct(g)&&(g=n),wr(Rt(f,1,Ct,!0),Ye(g,2))}),od=it(function(f){var g=nr(f);return g=typeof g=="function"?g:n,wr(Rt(f,1,Ct,!0),n,g)});function sd(f){return f&&f.length?wr(f):[]}function ld(f,g){return f&&f.length?wr(f,Ye(g,2)):[]}function ud(f,g){return g=typeof g=="function"?g:n,f&&f.length?wr(f,n,g):[]}function aa(f){if(!(f&&f.length))return[];var g=0;return f=Tr(f,function(F){if(Ct(F))return g=wt(F.length,g),!0}),Ti(g,function(F){return bt(f,yi(F))})}function Ss(f,g){if(!(f&&f.length))return[];var F=aa(f);return g==null?F:bt(F,function(W){return Wt(g,n,W)})}var cd=it(function(f,g){return Ct(f)?un(f,g):[]}),fd=it(function(f){return Ui(Tr(f,Ct))}),dd=it(function(f){var g=nr(f);return Ct(g)&&(g=n),Ui(Tr(f,Ct),Ye(g,2))}),hd=it(function(f){var g=nr(f);return g=typeof g=="function"?g:n,Ui(Tr(f,Ct),n,g)}),pd=it(aa);function vd(f,g){return Fo(f||[],g||[],ln)}function gd(f,g){return Fo(f||[],g||[],dn)}var md=it(function(f){var g=f.length,F=g>1?f[g-1]:n;return F=typeof F=="function"?(f.pop(),F):n,Ss(f,F)});function Ts(f){var g=re(f);return g.__chain__=!0,g}function _d(f,g){return g(f),f}function Qn(f,g){return g(f)}var yd=mr(function(f){var g=f.length,F=g?f[0]:0,W=this.__wrapped__,K=function(ie){return Oi(ie,f)};return g>1||this.__actions__.length||!(W instanceof ut)||!_r(F)?this.thru(K):(W=W.slice(F,+F+(g?1:0)),W.__actions__.push({func:Qn,args:[K],thisArg:n}),new er(W,this.__chain__).thru(function(ie){return g&&!ie.length&&ie.push(n),ie}))});function bd(){return Ts(this)}function Sd(){return new er(this.value(),this.__chain__)}function Td(){this.__values__===n&&(this.__values__=Bs(this.value()));var f=this.__index__>=this.__values__.length,g=f?n:this.__values__[this.__index__++];return{done:f,value:g}}function Cd(){return this}function Ed(f){for(var g,F=this;F instanceof Nn;){var W=vs(F);W.__index__=0,W.__values__=n,g?K.__wrapped__=W:g=W;var K=W;F=F.__wrapped__}return K.__wrapped__=f,g}function Ad(){var f=this.__wrapped__;if(f instanceof ut){var g=f;return this.__actions__.length&&(g=new ut(this)),g=g.reverse(),g.__actions__.push({func:Qn,args:[ia],thisArg:n}),new er(g,this.__chain__)}return this.thru(ia)}function xd(){return No(this.__wrapped__,this.__actions__)}var wd=Wn(function(f,g,F){gt.call(f,F)?++f[F]:vr(f,F,1)});function $d(f,g,F){var W=Qe(f)?Xa:gc;return F&&Nt(f,g,F)&&(g=n),W(f,Ye(g,3))}function Id(f,g){var F=Qe(f)?Tr:So;return F(f,Ye(g,3))}var Od=jo(gs),Pd=jo(ms);function Dd(f,g){return Rt(ei(f,g),1)}function Rd(f,g){return Rt(ei(f,g),ye)}function Md(f,g,F){return F=F===n?1:et(F),Rt(ei(f,g),F)}function Cs(f,g){var F=Qe(f)?Jt:xr;return F(f,Ye(g,3))}function Es(f,g){var F=Qe(f)?Zl:bo;return F(f,Ye(g,3))}var Ld=Wn(function(f,g,F){gt.call(f,F)?f[F].push(g):vr(f,F,[g])});function Bd(f,g,F,W){f=zt(f)?f:en(f),F=F&&!W?et(F):0;var K=f.length;return F<0&&(F=wt(K+F,0)),ai(f)?F<=K&&f.indexOf(g,F)>-1:!!K&&zr(f,g,F)>-1}var kd=it(function(f,g,F){var W=-1,K=typeof g=="function",ie=zt(f)?_e(f.length):[];return xr(f,function(le){ie[++W]=K?Wt(g,le,F):cn(le,g,F)}),ie}),Nd=Wn(function(f,g,F){vr(f,F,g)});function ei(f,g){var F=Qe(f)?bt:wo;return F(f,Ye(g,3))}function Fd(f,g,F,W){return f==null?[]:(Qe(g)||(g=g==null?[]:[g]),F=W?n:F,Qe(F)||(F=F==null?[]:[F]),Po(f,g,F))}var Vd=Wn(function(f,g,F){f[F?0:1].push(g)},function(){return[[],[]]});function Hd(f,g,F){var W=Qe(f)?mi:eo,K=arguments.length<3;return W(f,Ye(g,4),F,K,xr)}function zd(f,g,F){var W=Qe(f)?Jl:eo,K=arguments.length<3;return W(f,Ye(g,4),F,K,bo)}function Ud(f,g){var F=Qe(f)?Tr:So;return F(f,ni(Ye(g,3)))}function Gd(f){var g=Qe(f)?go:Lc;return g(f)}function Wd(f,g,F){(F?Nt(f,g,F):g===n)?g=1:g=et(g);var W=Qe(f)?fc:Bc;return W(f,g)}function Yd(f){var g=Qe(f)?dc:Nc;return g(f)}function qd(f){if(f==null)return 0;if(zt(f))return ai(f)?Gr(f):f.length;var g=Lt(f);return g==ae||g==Oe?f.size:Bi(f).length}function Kd(f,g,F){var W=Qe(f)?_i:Fc;return F&&Nt(f,g,F)&&(g=n),W(f,Ye(g,3))}var jd=it(function(f,g){if(f==null)return[];var F=g.length;return F>1&&Nt(f,g[0],g[1])?g=[]:F>2&&Nt(g[0],g[1],g[2])&&(g=[g[0]]),Po(f,Rt(g,1),[])}),ti=wu||function(){return Dt.Date.now()};function Xd(f,g){if(typeof g!="function")throw new Qt(s);return f=et(f),function(){if(--f<1)return g.apply(this,arguments)}}function As(f,g,F){return g=F?n:g,g=f&&g==null?f.length:g,gr(f,Z,n,n,n,n,g)}function xs(f,g){var F;if(typeof g!="function")throw new Qt(s);return f=et(f),function(){return--f>0&&(F=g.apply(this,arguments)),f<=1&&(g=n),F}}var oa=it(function(f,g,F){var W=M;if(F.length){var K=Er(F,Jr(oa));W|=X}return gr(f,W,g,F,K)}),ws=it(function(f,g,F){var W=M|N;if(F.length){var K=Er(F,Jr(ws));W|=X}return gr(g,W,f,F,K)});function $s(f,g,F){g=F?n:g;var W=gr(f,G,n,n,n,n,n,g);return W.placeholder=$s.placeholder,W}function Is(f,g,F){g=F?n:g;var W=gr(f,Y,n,n,n,n,n,g);return W.placeholder=Is.placeholder,W}function Os(f,g,F){var W,K,ie,le,ce,pe,Ee=0,Ae=!1,$e=!1,Fe=!0;if(typeof f!="function")throw new Qt(s);g=ir(g)||0,St(F)&&(Ae=!!F.leading,$e="maxWait"in F,ie=$e?wt(ir(F.maxWait)||0,g):ie,Fe="trailing"in F?!!F.trailing:Fe);function Ge(Et){var lr=W,Sr=K;return W=K=n,Ee=Et,le=f.apply(Sr,lr),le}function Ke(Et){return Ee=Et,ce=vn(ot,g),Ae?Ge(Et):le}function nt(Et){var lr=Et-pe,Sr=Et-Ee,js=g-lr;return $e?Mt(js,ie-Sr):js}function je(Et){var lr=Et-pe,Sr=Et-Ee;return pe===n||lr>=g||lr<0||$e&&Sr>=ie}function ot(){var Et=ti();if(je(Et))return ct(Et);ce=vn(ot,nt(Et))}function ct(Et){return ce=n,Fe&&W?Ge(Et):(W=K=n,le)}function jt(){ce!==n&&Vo(ce),Ee=0,W=pe=K=ce=n}function Ft(){return ce===n?le:ct(ti())}function Xt(){var Et=ti(),lr=je(Et);if(W=arguments,K=this,pe=Et,lr){if(ce===n)return Ke(pe);if($e)return Vo(ce),ce=vn(ot,g),Ge(pe)}return ce===n&&(ce=vn(ot,g)),le}return Xt.cancel=jt,Xt.flush=Ft,Xt}var Zd=it(function(f,g){return yo(f,1,g)}),Jd=it(function(f,g,F){return yo(f,ir(g)||0,F)});function Qd(f){return gr(f,ne)}function ri(f,g){if(typeof f!="function"||g!=null&&typeof g!="function")throw new Qt(s);var F=function(){var W=arguments,K=g?g.apply(this,W):W[0],ie=F.cache;if(ie.has(K))return ie.get(K);var le=f.apply(this,W);return F.cache=ie.set(K,le)||ie,le};return F.cache=new(ri.Cache||pr),F}ri.Cache=pr;function ni(f){if(typeof f!="function")throw new Qt(s);return function(){var g=arguments;switch(g.length){case 0:return!f.call(this);case 1:return!f.call(this,g[0]);case 2:return!f.call(this,g[0],g[1]);case 3:return!f.call(this,g[0],g[1],g[2])}return!f.apply(this,g)}}function eh(f){return xs(2,f)}var th=Vc(function(f,g){g=g.length==1&&Qe(g[0])?bt(g[0],Yt(Ye())):bt(Rt(g,1),Yt(Ye()));var F=g.length;return it(function(W){for(var K=-1,ie=Mt(W.length,F);++K<ie;)W[K]=g[K].call(this,W[K]);return Wt(f,this,W)})}),sa=it(function(f,g){var F=Er(g,Jr(sa));return gr(f,X,n,g,F)}),Ps=it(function(f,g){var F=Er(g,Jr(Ps));return gr(f,q,n,g,F)}),rh=mr(function(f,g){return gr(f,ee,n,n,n,g)});function nh(f,g){if(typeof f!="function")throw new Qt(s);return g=g===n?g:et(g),it(f,g)}function ih(f,g){if(typeof f!="function")throw new Qt(s);return g=g==null?0:wt(et(g),0),it(function(F){var W=F[g],K=Ir(F,0,g);return W&&Cr(K,W),Wt(f,this,K)})}function ah(f,g,F){var W=!0,K=!0;if(typeof f!="function")throw new Qt(s);return St(F)&&(W="leading"in F?!!F.leading:W,K="trailing"in F?!!F.trailing:K),Os(f,g,{leading:W,maxWait:g,trailing:K})}function oh(f){return As(f,1)}function sh(f,g){return sa(Wi(g),f)}function lh(){if(!arguments.length)return[];var f=arguments[0];return Qe(f)?f:[f]}function uh(f){return tr(f,$)}function ch(f,g){return g=typeof g=="function"?g:n,tr(f,$,g)}function fh(f){return tr(f,v|$)}function dh(f,g){return g=typeof g=="function"?g:n,tr(f,v|$,g)}function hh(f,g){return g==null||_o(f,g,It(g))}function sr(f,g){return f===g||f!==f&&g!==g}var ph=jn(Ri),vh=jn(function(f,g){return f>=g}),Fr=Eo(function(){return arguments}())?Eo:function(f){return Tt(f)&&gt.call(f,"callee")&&!uo.call(f,"callee")},Qe=_e.isArray,gh=Ga?Yt(Ga):Cc;function zt(f){return f!=null&&ii(f.length)&&!yr(f)}function Ct(f){return Tt(f)&&zt(f)}function mh(f){return f===!0||f===!1||Tt(f)&&kt(f)==at}var Or=Iu||ya,_h=Wa?Yt(Wa):Ec;function yh(f){return Tt(f)&&f.nodeType===1&&!gn(f)}function bh(f){if(f==null)return!0;if(zt(f)&&(Qe(f)||typeof f=="string"||typeof f.splice=="function"||Or(f)||Qr(f)||Fr(f)))return!f.length;var g=Lt(f);if(g==ae||g==Oe)return!f.size;if(pn(f))return!Bi(f).length;for(var F in f)if(gt.call(f,F))return!1;return!0}function Sh(f,g){return fn(f,g)}function Th(f,g,F){F=typeof F=="function"?F:n;var W=F?F(f,g):n;return W===n?fn(f,g,n,F):!!W}function la(f){if(!Tt(f))return!1;var g=kt(f);return g==Me||g==Le||typeof f.message=="string"&&typeof f.name=="string"&&!gn(f)}function Ch(f){return typeof f=="number"&&fo(f)}function yr(f){if(!St(f))return!1;var g=kt(f);return g==ke||g==se||g==ft||g==Re}function Ds(f){return typeof f=="number"&&f==et(f)}function ii(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ge}function St(f){var g=typeof f;return f!=null&&(g=="object"||g=="function")}function Tt(f){return f!=null&&typeof f=="object"}var Rs=Ya?Yt(Ya):xc;function Eh(f,g){return f===g||Li(f,g,Ji(g))}function Ah(f,g,F){return F=typeof F=="function"?F:n,Li(f,g,Ji(g),F)}function xh(f){return Ms(f)&&f!=+f}function wh(f){if(cf(f))throw new Xe(o);return Ao(f)}function $h(f){return f===null}function Ih(f){return f==null}function Ms(f){return typeof f=="number"||Tt(f)&&kt(f)==ve}function gn(f){if(!Tt(f)||kt(f)!=be)return!1;var g=Pn(f);if(g===null)return!0;var F=gt.call(g,"constructor")&&g.constructor;return typeof F=="function"&&F instanceof F&&wn.call(F)==Cu}var ua=qa?Yt(qa):wc;function Oh(f){return Ds(f)&&f>=-ge&&f<=ge}var Ls=Ka?Yt(Ka):$c;function ai(f){return typeof f=="string"||!Qe(f)&&Tt(f)&&kt(f)==we}function Kt(f){return typeof f=="symbol"||Tt(f)&&kt(f)==We}var Qr=ja?Yt(ja):Ic;function Ph(f){return f===n}function Dh(f){return Tt(f)&&Lt(f)==ze}function Rh(f){return Tt(f)&&kt(f)==qe}var Mh=jn(ki),Lh=jn(function(f,g){return f<=g});function Bs(f){if(!f)return[];if(zt(f))return ai(f)?ar(f):Ht(f);if(rn&&f[rn])return fu(f[rn]());var g=Lt(f),F=g==ae?Ei:g==Oe?En:en;return F(f)}function br(f){if(!f)return f===0?f:0;if(f=ir(f),f===ye||f===-ye){var g=f<0?-1:1;return g*Te}return f===f?f:0}function et(f){var g=br(f),F=g%1;return g===g?F?g-F:g:0}function ks(f){return f?Lr(et(f),0,Ie):0}function ir(f){if(typeof f=="number")return f;if(Kt(f))return Be;if(St(f)){var g=typeof f.valueOf=="function"?f.valueOf():f;f=St(g)?g+"":g}if(typeof f!="string")return f===0?f:+f;f=to(f);var F=pl.test(f);return F||gl.test(f)?Kl(f.slice(2),F?2:8):hl.test(f)?Be:+f}function Ns(f){return cr(f,Ut(f))}function Bh(f){return f?Lr(et(f),-ge,ge):f===0?f:0}function vt(f){return f==null?"":qt(f)}var kh=Xr(function(f,g){if(pn(g)||zt(g)){cr(g,It(g),f);return}for(var F in g)gt.call(g,F)&&ln(f,F,g[F])}),Fs=Xr(function(f,g){cr(g,Ut(g),f)}),oi=Xr(function(f,g,F,W){cr(g,Ut(g),f,W)}),Nh=Xr(function(f,g,F,W){cr(g,It(g),f,W)}),Fh=mr(Oi);function Vh(f,g){var F=jr(f);return g==null?F:mo(F,g)}var Hh=it(function(f,g){f=mt(f);var F=-1,W=g.length,K=W>2?g[2]:n;for(K&&Nt(g[0],g[1],K)&&(W=1);++F<W;)for(var ie=g[F],le=Ut(ie),ce=-1,pe=le.length;++ce<pe;){var Ee=le[ce],Ae=f[Ee];(Ae===n||sr(Ae,Yr[Ee])&&!gt.call(f,Ee))&&(f[Ee]=ie[Ee])}return f}),zh=it(function(f){return f.push(n,rs),Wt(Vs,n,f)});function Uh(f,g){return Za(f,Ye(g,3),ur)}function Gh(f,g){return Za(f,Ye(g,3),Di)}function Wh(f,g){return f==null?f:Pi(f,Ye(g,3),Ut)}function Yh(f,g){return f==null?f:To(f,Ye(g,3),Ut)}function qh(f,g){return f&&ur(f,Ye(g,3))}function Kh(f,g){return f&&Di(f,Ye(g,3))}function jh(f){return f==null?[]:Hn(f,It(f))}function Xh(f){return f==null?[]:Hn(f,Ut(f))}function ca(f,g,F){var W=f==null?n:Br(f,g);return W===n?F:W}function Zh(f,g){return f!=null&&as(f,g,yc)}function fa(f,g){return f!=null&&as(f,g,bc)}var Jh=Zo(function(f,g,F){g!=null&&typeof g.toString!="function"&&(g=$n.call(g)),f[g]=F},ha(Gt)),Qh=Zo(function(f,g,F){g!=null&&typeof g.toString!="function"&&(g=$n.call(g)),gt.call(f,g)?f[g].push(F):f[g]=[F]},Ye),ep=it(cn);function It(f){return zt(f)?vo(f):Bi(f)}function Ut(f){return zt(f)?vo(f,!0):Oc(f)}function tp(f,g){var F={};return g=Ye(g,3),ur(f,function(W,K,ie){vr(F,g(W,K,ie),W)}),F}function rp(f,g){var F={};return g=Ye(g,3),ur(f,function(W,K,ie){vr(F,K,g(W,K,ie))}),F}var np=Xr(function(f,g,F){zn(f,g,F)}),Vs=Xr(function(f,g,F,W){zn(f,g,F,W)}),ip=mr(function(f,g){var F={};if(f==null)return F;var W=!1;g=bt(g,function(ie){return ie=$r(ie,f),W||(W=ie.length>1),ie}),cr(f,Xi(f),F),W&&(F=tr(F,v|I|$,Zc));for(var K=g.length;K--;)zi(F,g[K]);return F});function ap(f,g){return Hs(f,ni(Ye(g)))}var op=mr(function(f,g){return f==null?{}:Dc(f,g)});function Hs(f,g){if(f==null)return{};var F=bt(Xi(f),function(W){return[W]});return g=Ye(g),Do(f,F,function(W,K){return g(W,K[0])})}function sp(f,g,F){g=$r(g,f);var W=-1,K=g.length;for(K||(K=1,f=n);++W<K;){var ie=f==null?n:f[fr(g[W])];ie===n&&(W=K,ie=F),f=yr(ie)?ie.call(f):ie}return f}function lp(f,g,F){return f==null?f:dn(f,g,F)}function up(f,g,F,W){return W=typeof W=="function"?W:n,f==null?f:dn(f,g,F,W)}var zs=es(It),Us=es(Ut);function cp(f,g,F){var W=Qe(f),K=W||Or(f)||Qr(f);if(g=Ye(g,4),F==null){var ie=f&&f.constructor;K?F=W?new ie:[]:St(f)?F=yr(ie)?jr(Pn(f)):{}:F={}}return(K?Jt:ur)(f,function(le,ce,pe){return g(F,le,ce,pe)}),F}function fp(f,g){return f==null?!0:zi(f,g)}function dp(f,g,F){return f==null?f:ko(f,g,Wi(F))}function hp(f,g,F,W){return W=typeof W=="function"?W:n,f==null?f:ko(f,g,Wi(F),W)}function en(f){return f==null?[]:Ci(f,It(f))}function pp(f){return f==null?[]:Ci(f,Ut(f))}function vp(f,g,F){return F===n&&(F=g,g=n),F!==n&&(F=ir(F),F=F===F?F:0),g!==n&&(g=ir(g),g=g===g?g:0),Lr(ir(f),g,F)}function gp(f,g,F){return g=br(g),F===n?(F=g,g=0):F=br(F),f=ir(f),Sc(f,g,F)}function mp(f,g,F){if(F&&typeof F!="boolean"&&Nt(f,g,F)&&(g=F=n),F===n&&(typeof g=="boolean"?(F=g,g=n):typeof f=="boolean"&&(F=f,f=n)),f===n&&g===n?(f=0,g=1):(f=br(f),g===n?(g=f,f=0):g=br(g)),f>g){var W=f;f=g,g=W}if(F||f%1||g%1){var K=ho();return Mt(f+K*(g-f+ql("1e-"+((K+"").length-1))),g)}return Fi(f,g)}var _p=Zr(function(f,g,F){return g=g.toLowerCase(),f+(F?Gs(g):g)});function Gs(f){return da(vt(f).toLowerCase())}function Ws(f){return f=vt(f),f&&f.replace(_l,ou).replace(kl,"")}function yp(f,g,F){f=vt(f),g=qt(g);var W=f.length;F=F===n?W:Lr(et(F),0,W);var K=F;return F-=g.length,F>=0&&f.slice(F,K)==g}function bp(f){return f=vt(f),f&&Js.test(f)?f.replace(Sa,su):f}function Sp(f){return f=vt(f),f&&il.test(f)?f.replace(si,"\\$&"):f}var Tp=Zr(function(f,g,F){return f+(F?"-":"")+g.toLowerCase()}),Cp=Zr(function(f,g,F){return f+(F?" ":"")+g.toLowerCase()}),Ep=Ko("toLowerCase");function Ap(f,g,F){f=vt(f),g=et(g);var W=g?Gr(f):0;if(!g||W>=g)return f;var K=(g-W)/2;return Kn(Ln(K),F)+f+Kn(Mn(K),F)}function xp(f,g,F){f=vt(f),g=et(g);var W=g?Gr(f):0;return g&&W<g?f+Kn(g-W,F):f}function wp(f,g,F){f=vt(f),g=et(g);var W=g?Gr(f):0;return g&&W<g?Kn(g-W,F)+f:f}function $p(f,g,F){return F||g==null?g=0:g&&(g=+g),Ru(vt(f).replace(li,""),g||0)}function Ip(f,g,F){return(F?Nt(f,g,F):g===n)?g=1:g=et(g),Vi(vt(f),g)}function Op(){var f=arguments,g=vt(f[0]);return f.length<3?g:g.replace(f[1],f[2])}var Pp=Zr(function(f,g,F){return f+(F?"_":"")+g.toLowerCase()});function Dp(f,g,F){return F&&typeof F!="number"&&Nt(f,g,F)&&(g=F=n),F=F===n?Ie:F>>>0,F?(f=vt(f),f&&(typeof g=="string"||g!=null&&!ua(g))&&(g=qt(g),!g&&Ur(f))?Ir(ar(f),0,F):f.split(g,F)):[]}var Rp=Zr(function(f,g,F){return f+(F?" ":"")+da(g)});function Mp(f,g,F){return f=vt(f),F=F==null?0:Lr(et(F),0,f.length),g=qt(g),f.slice(F,F+g.length)==g}function Lp(f,g,F){var W=re.templateSettings;F&&Nt(f,g,F)&&(g=n),f=vt(f),g=oi({},g,W,ts);var K=oi({},g.imports,W.imports,ts),ie=It(K),le=Ci(K,ie),ce,pe,Ee=0,Ae=g.interpolate||yn,$e="__p += '",Fe=Ai((g.escape||yn).source+"|"+Ae.source+"|"+(Ae===Ta?dl:yn).source+"|"+(g.evaluate||yn).source+"|$","g"),Ge="//# sourceURL="+(gt.call(g,"sourceURL")?(g.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++zl+"]")+`
172
+ `;f.replace(Fe,function(je,ot,ct,jt,Ft,Xt){return ct||(ct=jt),$e+=f.slice(Ee,Xt).replace(yl,lu),ot&&(ce=!0,$e+=`' +
173
+ __e(`+ot+`) +
174
+ '`),Ft&&(pe=!0,$e+=`';
175
+ `+Ft+`;
176
+ __p += '`),ct&&($e+=`' +
177
+ ((__t = (`+ct+`)) == null ? '' : __t) +
178
+ '`),Ee=Xt+je.length,je}),$e+=`';
179
+ `;var Ke=gt.call(g,"variable")&&g.variable;if(!Ke)$e=`with (obj) {
180
+ `+$e+`
181
+ }
182
+ `;else if(cl.test(Ke))throw new Xe(l);$e=(pe?$e.replace(mn,""):$e).replace(_n,"$1").replace(Xs,"$1;"),$e="function("+(Ke||"obj")+`) {
183
+ `+(Ke?"":`obj || (obj = {});
184
+ `)+"var __t, __p = ''"+(ce?", __e = _.escape":"")+(pe?`, __j = Array.prototype.join;
185
+ function print() { __p += __j.call(arguments, '') }
186
+ `:`;
187
+ `)+$e+`return __p
188
+ }`;var nt=qs(function(){return pt(ie,Ge+"return "+$e).apply(n,le)});if(nt.source=$e,la(nt))throw nt;return nt}function Bp(f){return vt(f).toLowerCase()}function kp(f){return vt(f).toUpperCase()}function Np(f,g,F){if(f=vt(f),f&&(F||g===n))return to(f);if(!f||!(g=qt(g)))return f;var W=ar(f),K=ar(g),ie=ro(W,K),le=no(W,K)+1;return Ir(W,ie,le).join("")}function Fp(f,g,F){if(f=vt(f),f&&(F||g===n))return f.slice(0,ao(f)+1);if(!f||!(g=qt(g)))return f;var W=ar(f),K=no(W,ar(g))+1;return Ir(W,0,K).join("")}function Vp(f,g,F){if(f=vt(f),f&&(F||g===n))return f.replace(li,"");if(!f||!(g=qt(g)))return f;var W=ar(f),K=ro(W,ar(g));return Ir(W,K).join("")}function Hp(f,g){var F=J,W=te;if(St(g)){var K="separator"in g?g.separator:K;F="length"in g?et(g.length):F,W="omission"in g?qt(g.omission):W}f=vt(f);var ie=f.length;if(Ur(f)){var le=ar(f);ie=le.length}if(F>=ie)return f;var ce=F-Gr(W);if(ce<1)return W;var pe=le?Ir(le,0,ce).join(""):f.slice(0,ce);if(K===n)return pe+W;if(le&&(ce+=pe.length-ce),ua(K)){if(f.slice(ce).search(K)){var Ee,Ae=pe;for(K.global||(K=Ai(K.source,vt(Ca.exec(K))+"g")),K.lastIndex=0;Ee=K.exec(Ae);)var $e=Ee.index;pe=pe.slice(0,$e===n?ce:$e)}}else if(f.indexOf(qt(K),ce)!=ce){var Fe=pe.lastIndexOf(K);Fe>-1&&(pe=pe.slice(0,Fe))}return pe+W}function zp(f){return f=vt(f),f&&Zs.test(f)?f.replace(ba,vu):f}var Up=Zr(function(f,g,F){return f+(F?" ":"")+g.toUpperCase()}),da=Ko("toUpperCase");function Ys(f,g,F){return f=vt(f),g=F?n:g,g===n?cu(f)?_u(f):tu(f):f.match(g)||[]}var qs=it(function(f,g){try{return Wt(f,n,g)}catch(F){return la(F)?F:new Xe(F)}}),Gp=mr(function(f,g){return Jt(g,function(F){F=fr(F),vr(f,F,oa(f[F],f))}),f});function Wp(f){var g=f==null?0:f.length,F=Ye();return f=g?bt(f,function(W){if(typeof W[1]!="function")throw new Qt(s);return[F(W[0]),W[1]]}):[],it(function(W){for(var K=-1;++K<g;){var ie=f[K];if(Wt(ie[0],this,W))return Wt(ie[1],this,W)}})}function Yp(f){return vc(tr(f,v))}function ha(f){return function(){return f}}function qp(f,g){return f==null||f!==f?g:f}var Kp=Xo(),jp=Xo(!0);function Gt(f){return f}function pa(f){return xo(typeof f=="function"?f:tr(f,v))}function Xp(f){return $o(tr(f,v))}function Zp(f,g){return Io(f,tr(g,v))}var Jp=it(function(f,g){return function(F){return cn(F,f,g)}}),Qp=it(function(f,g){return function(F){return cn(f,F,g)}});function va(f,g,F){var W=It(g),K=Hn(g,W);F==null&&!(St(g)&&(K.length||!W.length))&&(F=g,g=f,f=this,K=Hn(g,It(g)));var ie=!(St(F)&&"chain"in F)||!!F.chain,le=yr(f);return Jt(K,function(ce){var pe=g[ce];f[ce]=pe,le&&(f.prototype[ce]=function(){var Ee=this.__chain__;if(ie||Ee){var Ae=f(this.__wrapped__),$e=Ae.__actions__=Ht(this.__actions__);return $e.push({func:pe,args:arguments,thisArg:f}),Ae.__chain__=Ee,Ae}return pe.apply(f,Cr([this.value()],arguments))})}),f}function ev(){return Dt._===this&&(Dt._=Eu),this}function ga(){}function tv(f){return f=et(f),it(function(g){return Oo(g,f)})}var rv=qi(bt),nv=qi(Xa),iv=qi(_i);function Ks(f){return ea(f)?yi(fr(f)):Rc(f)}function av(f){return function(g){return f==null?n:Br(f,g)}}var ov=Jo(),sv=Jo(!0);function ma(){return[]}function ya(){return!1}function lv(){return{}}function uv(){return""}function cv(){return!0}function fv(f,g){if(f=et(f),f<1||f>ge)return[];var F=Ie,W=Mt(f,Ie);g=Ye(g),f-=Ie;for(var K=Ti(W,g);++F<f;)g(F);return K}function dv(f){return Qe(f)?bt(f,fr):Kt(f)?[f]:Ht(ps(vt(f)))}function hv(f){var g=++Tu;return vt(f)+g}var pv=qn(function(f,g){return f+g},0),vv=Ki("ceil"),gv=qn(function(f,g){return f/g},1),mv=Ki("floor");function _v(f){return f&&f.length?Vn(f,Gt,Ri):n}function yv(f,g){return f&&f.length?Vn(f,Ye(g,2),Ri):n}function bv(f){return Qa(f,Gt)}function Sv(f,g){return Qa(f,Ye(g,2))}function Tv(f){return f&&f.length?Vn(f,Gt,ki):n}function Cv(f,g){return f&&f.length?Vn(f,Ye(g,2),ki):n}var Ev=qn(function(f,g){return f*g},1),Av=Ki("round"),xv=qn(function(f,g){return f-g},0);function wv(f){return f&&f.length?Si(f,Gt):0}function $v(f,g){return f&&f.length?Si(f,Ye(g,2)):0}return re.after=Xd,re.ary=As,re.assign=kh,re.assignIn=Fs,re.assignInWith=oi,re.assignWith=Nh,re.at=Fh,re.before=xs,re.bind=oa,re.bindAll=Gp,re.bindKey=ws,re.castArray=lh,re.chain=Ts,re.chunk=mf,re.compact=_f,re.concat=yf,re.cond=Wp,re.conforms=Yp,re.constant=ha,re.countBy=wd,re.create=Vh,re.curry=$s,re.curryRight=Is,re.debounce=Os,re.defaults=Hh,re.defaultsDeep=zh,re.defer=Zd,re.delay=Jd,re.difference=bf,re.differenceBy=Sf,re.differenceWith=Tf,re.drop=Cf,re.dropRight=Ef,re.dropRightWhile=Af,re.dropWhile=xf,re.fill=wf,re.filter=Id,re.flatMap=Dd,re.flatMapDeep=Rd,re.flatMapDepth=Md,re.flatten=_s,re.flattenDeep=$f,re.flattenDepth=If,re.flip=Qd,re.flow=Kp,re.flowRight=jp,re.fromPairs=Of,re.functions=jh,re.functionsIn=Xh,re.groupBy=Ld,re.initial=Df,re.intersection=Rf,re.intersectionBy=Mf,re.intersectionWith=Lf,re.invert=Jh,re.invertBy=Qh,re.invokeMap=kd,re.iteratee=pa,re.keyBy=Nd,re.keys=It,re.keysIn=Ut,re.map=ei,re.mapKeys=tp,re.mapValues=rp,re.matches=Xp,re.matchesProperty=Zp,re.memoize=ri,re.merge=np,re.mergeWith=Vs,re.method=Jp,re.methodOf=Qp,re.mixin=va,re.negate=ni,re.nthArg=tv,re.omit=ip,re.omitBy=ap,re.once=eh,re.orderBy=Fd,re.over=rv,re.overArgs=th,re.overEvery=nv,re.overSome=iv,re.partial=sa,re.partialRight=Ps,re.partition=Vd,re.pick=op,re.pickBy=Hs,re.property=Ks,re.propertyOf=av,re.pull=Ff,re.pullAll=bs,re.pullAllBy=Vf,re.pullAllWith=Hf,re.pullAt=zf,re.range=ov,re.rangeRight=sv,re.rearg=rh,re.reject=Ud,re.remove=Uf,re.rest=nh,re.reverse=ia,re.sampleSize=Wd,re.set=lp,re.setWith=up,re.shuffle=Yd,re.slice=Gf,re.sortBy=jd,re.sortedUniq=Zf,re.sortedUniqBy=Jf,re.split=Dp,re.spread=ih,re.tail=Qf,re.take=ed,re.takeRight=td,re.takeRightWhile=rd,re.takeWhile=nd,re.tap=_d,re.throttle=ah,re.thru=Qn,re.toArray=Bs,re.toPairs=zs,re.toPairsIn=Us,re.toPath=dv,re.toPlainObject=Ns,re.transform=cp,re.unary=oh,re.union=id,re.unionBy=ad,re.unionWith=od,re.uniq=sd,re.uniqBy=ld,re.uniqWith=ud,re.unset=fp,re.unzip=aa,re.unzipWith=Ss,re.update=dp,re.updateWith=hp,re.values=en,re.valuesIn=pp,re.without=cd,re.words=Ys,re.wrap=sh,re.xor=fd,re.xorBy=dd,re.xorWith=hd,re.zip=pd,re.zipObject=vd,re.zipObjectDeep=gd,re.zipWith=md,re.entries=zs,re.entriesIn=Us,re.extend=Fs,re.extendWith=oi,va(re,re),re.add=pv,re.attempt=qs,re.camelCase=_p,re.capitalize=Gs,re.ceil=vv,re.clamp=vp,re.clone=uh,re.cloneDeep=fh,re.cloneDeepWith=dh,re.cloneWith=ch,re.conformsTo=hh,re.deburr=Ws,re.defaultTo=qp,re.divide=gv,re.endsWith=yp,re.eq=sr,re.escape=bp,re.escapeRegExp=Sp,re.every=$d,re.find=Od,re.findIndex=gs,re.findKey=Uh,re.findLast=Pd,re.findLastIndex=ms,re.findLastKey=Gh,re.floor=mv,re.forEach=Cs,re.forEachRight=Es,re.forIn=Wh,re.forInRight=Yh,re.forOwn=qh,re.forOwnRight=Kh,re.get=ca,re.gt=ph,re.gte=vh,re.has=Zh,re.hasIn=fa,re.head=ys,re.identity=Gt,re.includes=Bd,re.indexOf=Pf,re.inRange=gp,re.invoke=ep,re.isArguments=Fr,re.isArray=Qe,re.isArrayBuffer=gh,re.isArrayLike=zt,re.isArrayLikeObject=Ct,re.isBoolean=mh,re.isBuffer=Or,re.isDate=_h,re.isElement=yh,re.isEmpty=bh,re.isEqual=Sh,re.isEqualWith=Th,re.isError=la,re.isFinite=Ch,re.isFunction=yr,re.isInteger=Ds,re.isLength=ii,re.isMap=Rs,re.isMatch=Eh,re.isMatchWith=Ah,re.isNaN=xh,re.isNative=wh,re.isNil=Ih,re.isNull=$h,re.isNumber=Ms,re.isObject=St,re.isObjectLike=Tt,re.isPlainObject=gn,re.isRegExp=ua,re.isSafeInteger=Oh,re.isSet=Ls,re.isString=ai,re.isSymbol=Kt,re.isTypedArray=Qr,re.isUndefined=Ph,re.isWeakMap=Dh,re.isWeakSet=Rh,re.join=Bf,re.kebabCase=Tp,re.last=nr,re.lastIndexOf=kf,re.lowerCase=Cp,re.lowerFirst=Ep,re.lt=Mh,re.lte=Lh,re.max=_v,re.maxBy=yv,re.mean=bv,re.meanBy=Sv,re.min=Tv,re.minBy=Cv,re.stubArray=ma,re.stubFalse=ya,re.stubObject=lv,re.stubString=uv,re.stubTrue=cv,re.multiply=Ev,re.nth=Nf,re.noConflict=ev,re.noop=ga,re.now=ti,re.pad=Ap,re.padEnd=xp,re.padStart=wp,re.parseInt=$p,re.random=mp,re.reduce=Hd,re.reduceRight=zd,re.repeat=Ip,re.replace=Op,re.result=sp,re.round=Av,re.runInContext=he,re.sample=Gd,re.size=qd,re.snakeCase=Pp,re.some=Kd,re.sortedIndex=Wf,re.sortedIndexBy=Yf,re.sortedIndexOf=qf,re.sortedLastIndex=Kf,re.sortedLastIndexBy=jf,re.sortedLastIndexOf=Xf,re.startCase=Rp,re.startsWith=Mp,re.subtract=xv,re.sum=wv,re.sumBy=$v,re.template=Lp,re.times=fv,re.toFinite=br,re.toInteger=et,re.toLength=ks,re.toLower=Bp,re.toNumber=ir,re.toSafeInteger=Bh,re.toString=vt,re.toUpper=kp,re.trim=Np,re.trimEnd=Fp,re.trimStart=Vp,re.truncate=Hp,re.unescape=zp,re.uniqueId=hv,re.upperCase=Up,re.upperFirst=da,re.each=Cs,re.eachRight=Es,re.first=ys,va(re,function(){var f={};return ur(re,function(g,F){gt.call(re.prototype,F)||(f[F]=g)}),f}(),{chain:!1}),re.VERSION=i,Jt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){re[f].placeholder=re}),Jt(["drop","take"],function(f,g){ut.prototype[f]=function(F){F=F===n?1:wt(et(F),0);var W=this.__filtered__&&!g?new ut(this):this.clone();return W.__filtered__?W.__takeCount__=Mt(F,W.__takeCount__):W.__views__.push({size:Mt(F,Ie),type:f+(W.__dir__<0?"Right":"")}),W},ut.prototype[f+"Right"]=function(F){return this.reverse()[f](F).reverse()}}),Jt(["filter","map","takeWhile"],function(f,g){var F=g+1,W=F==ue||F==de;ut.prototype[f]=function(K){var ie=this.clone();return ie.__iteratees__.push({iteratee:Ye(K,3),type:F}),ie.__filtered__=ie.__filtered__||W,ie}}),Jt(["head","last"],function(f,g){var F="take"+(g?"Right":"");ut.prototype[f]=function(){return this[F](1).value()[0]}}),Jt(["initial","tail"],function(f,g){var F="drop"+(g?"":"Right");ut.prototype[f]=function(){return this.__filtered__?new ut(this):this[F](1)}}),ut.prototype.compact=function(){return this.filter(Gt)},ut.prototype.find=function(f){return this.filter(f).head()},ut.prototype.findLast=function(f){return this.reverse().find(f)},ut.prototype.invokeMap=it(function(f,g){return typeof f=="function"?new ut(this):this.map(function(F){return cn(F,f,g)})}),ut.prototype.reject=function(f){return this.filter(ni(Ye(f)))},ut.prototype.slice=function(f,g){f=et(f);var F=this;return F.__filtered__&&(f>0||g<0)?new ut(F):(f<0?F=F.takeRight(-f):f&&(F=F.drop(f)),g!==n&&(g=et(g),F=g<0?F.dropRight(-g):F.take(g-f)),F)},ut.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},ut.prototype.toArray=function(){return this.take(Ie)},ur(ut.prototype,function(f,g){var F=/^(?:filter|find|map|reject)|While$/.test(g),W=/^(?:head|last)$/.test(g),K=re[W?"take"+(g=="last"?"Right":""):g],ie=W||/^find/.test(g);!K||(re.prototype[g]=function(){var le=this.__wrapped__,ce=W?[1]:arguments,pe=le instanceof ut,Ee=ce[0],Ae=pe||Qe(le),$e=function(ot){var ct=K.apply(re,Cr([ot],ce));return W&&Fe?ct[0]:ct};Ae&&F&&typeof Ee=="function"&&Ee.length!=1&&(pe=Ae=!1);var Fe=this.__chain__,Ge=!!this.__actions__.length,Ke=ie&&!Fe,nt=pe&&!Ge;if(!ie&&Ae){le=nt?le:new ut(this);var je=f.apply(le,ce);return je.__actions__.push({func:Qn,args:[$e],thisArg:n}),new er(je,Fe)}return Ke&&nt?f.apply(this,ce):(je=this.thru($e),Ke?W?je.value()[0]:je.value():je)})}),Jt(["pop","push","shift","sort","splice","unshift"],function(f){var g=An[f],F=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",W=/^(?:pop|shift)$/.test(f);re.prototype[f]=function(){var K=arguments;if(W&&!this.__chain__){var ie=this.value();return g.apply(Qe(ie)?ie:[],K)}return this[F](function(le){return g.apply(Qe(le)?le:[],K)})}}),ur(ut.prototype,function(f,g){var F=re[g];if(F){var W=F.name+"";gt.call(Kr,W)||(Kr[W]=[]),Kr[W].push({name:g,func:F})}}),Kr[Yn(n,N).name]=[{name:"wrapper",func:n}],ut.prototype.clone=Vu,ut.prototype.reverse=Hu,ut.prototype.value=zu,re.prototype.at=yd,re.prototype.chain=bd,re.prototype.commit=Sd,re.prototype.next=Td,re.prototype.plant=Ed,re.prototype.reverse=Ad,re.prototype.toJSON=re.prototype.valueOf=re.prototype.value=xd,re.prototype.first=re.prototype.head,rn&&(re.prototype[rn]=Cd),re},Wr=yu();Pr?((Pr.exports=Wr)._=Wr,pi._=Wr):Dt._=Wr}).call(commonjsGlobal)})(lodash,lodash.exports);var _=lodash.exports;const _hoisted_1={class:"display-2"},_hoisted_2={class:"row mb-3"},_hoisted_3={class:"col-sm-10",style:{width:"200px"}},_sfc_main$1=defineComponent({__name:"MainView",setup(t){const r=ref(5e3),n=ref(""),i=ref(null),a=ref(null),o=ref(null),s=ref(null),l=ref(null);function u(d="no-cache"){fetch("/data.json",{cache:d}).then(v=>v.json()).then(v=>{const I=[];function $(O,R){const M=R[O.name];M===void 0?R[O.name]=O:_.isEqual(M==null?void 0:M.value,O.value)||(R[O.name]=O,I.push({type:O.type,name:O.name}))}n.value=v.view,v.data.forEach(O=>{O.type==="Variable"?$(O,variables):O.type==="ProgressBar"?$(O,progressbars):O.type==="Image"?$(O,images):O.type==="Logger"?$(O,logs):O.type==="LineChart"&&$(O,lineCharts)}),I.forEach(({type:O,name:R})=>{var M,N,V,G,Y,X,q,Z,ee,ne;O=="ProgressBar"?(N=(M=i.value)==null?void 0:M.subs.get(R))==null||N.update():O=="Variable"?(G=(V=a.value)==null?void 0:V.subs.get(R))==null||G.update():O=="Image"?(X=(Y=o.value)==null?void 0:Y.subs.get(R))==null||X.update():O=="Logger"?(Z=(q=s.value)==null?void 0:q.subs.get(R))==null||Z.update():O=="LineChart"&&((ne=(ee=l.value)==null?void 0:ee.subs.get(R))==null||ne.update())}),setTimeout(u,Math.max(100,r.value))}).catch(()=>{setTimeout(()=>u("reload"),Math.max(100,r.value))})}onMounted(()=>u());function c(){return Object.keys(lineCharts).length}return(d,v)=>(openBlock(),createElementBlock(Fragment,null,[createBaseVNode("h2",_hoisted_1,"Tensorneko Web Watcher::"+toDisplayString(n.value),1),createBaseVNode("div",_hoisted_2,[v[1]||(v[1]=createBaseVNode("label",{class:"col-sm-2 col-form-label",style:{width:"200px"}},"Update Rate (ms)",-1)),createBaseVNode("div",_hoisted_3,[withDirectives(createBaseVNode("input",{type:"number",class:"form-control",placeholder:"1000","onUpdate:modelValue":v[0]||(v[0]=I=>r.value=I)},null,512),[[vModelText,r.value]])])]),Object.keys(unref(progressbars)).length>0?(openBlock(),createBlock(_sfc_main$a,{key:0,ref_key:"progressbar",ref:i},null,512)):createCommentVNode("",!0),Object.keys(unref(variables)).length>0?(openBlock(),createBlock(_sfc_main$8,{key:1,ref_key:"variable",ref:a},null,512)):createCommentVNode("",!0),c()>0?(openBlock(),createBlock(_sfc_main$2,{key:2,ref_key:"plot",ref:l},null,512)):createCommentVNode("",!0),Object.keys(unref(images)).length>0?(openBlock(),createBlock(_sfc_main$6,{key:3,ref_key:"image",ref:o},null,512)):createCommentVNode("",!0),Object.keys(unref(logs)).length>0?(openBlock(),createBlock(_sfc_main$4,{key:4,ref_key:"logger",ref:s},null,512)):createCommentVNode("",!0)],64))}});var App_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({__name:"App",setup(t){return(r,n)=>(openBlock(),createBlock(_sfc_main$1))}});var bootstrap="",bootstrapVue3="";const app=createApp(_sfc_main);app.use(plugin);app.mount("#app");