vue-pure-admin/dist/static/js/index-0dd8d5e4.js
2023-05-11 20:53:36 +08:00

159 lines
2.4 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var zi=Object.defineProperty;var Hi=($,oe,ae)=>oe in $?zi($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae;var ao=($,oe,ae)=>(Hi($,typeof oe!="symbol"?oe+"":oe,ae),ae);(function(){const oe=document.createElement("link").relList;if(oe&&oe.supports&&oe.supports("modulepreload"))return;for(const le of document.querySelectorAll('link[rel="modulepreload"]'))ie(le);new MutationObserver(le=>{for(const pe of le)if(pe.type==="childList")for(const _e of pe.addedNodes)_e.tagName==="LINK"&&_e.rel==="modulepreload"&&ie(_e)}).observe(document,{childList:!0,subtree:!0});function ae(le){const pe={};return le.integrity&&(pe.integrity=le.integrity),le.referrerPolicy&&(pe.referrerPolicy=le.referrerPolicy),le.crossOrigin==="use-credentials"?pe.credentials="include":le.crossOrigin==="anonymous"?pe.credentials="omit":pe.credentials="same-origin",pe}function ie(le){if(le.ep)return;le.ep=!0;const pe=ae(le);fetch(le.href,pe)}})();function makeMap($,oe){const ae=Object.create(null),ie=$.split(",");for(let le=0;le<ie.length;le++)ae[ie[le]]=!0;return oe?le=>!!ae[le.toLowerCase()]:le=>!!ae[le]}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=$=>onRE.test($),isModelListener=$=>$.startsWith("onUpdate:"),extend$2=Object.assign,remove=($,oe)=>{const ae=$.indexOf(oe);ae>-1&&$.splice(ae,1)},hasOwnProperty$g=Object.prototype.hasOwnProperty,hasOwn$4=($,oe)=>hasOwnProperty$g.call($,oe),isArray$c=Array.isArray,isMap$3=$=>toTypeString$1($)==="[object Map]",isSet$3=$=>toTypeString$1($)==="[object Set]",isDate$3=$=>toTypeString$1($)==="[object Date]",isRegExp$5=$=>toTypeString$1($)==="[object RegExp]",isFunction$5=$=>typeof $=="function",isString$7=$=>typeof $=="string",isSymbol$2=$=>typeof $=="symbol",isObject$8=$=>$!==null&&typeof $=="object",isPromise=$=>isObject$8($)&&isFunction$5($.then)&&isFunction$5($.catch),objectToString$3=Object.prototype.toString,toTypeString$1=$=>objectToString$3.call($),toRawType=$=>toTypeString$1($).slice(8,-1),isPlainObject$4=$=>toTypeString$1($)==="[object Object]",isIntegerKey=$=>isString$7($)&&$!=="NaN"&&$[0]!=="-"&&""+parseInt($,10)===$,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=$=>{const oe=Object.create(null);return ae=>oe[ae]||(oe[ae]=$(ae))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction($=>$.replace(camelizeRE,(oe,ae)=>ae?ae.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction($=>$.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction($=>$.charAt(0).toUpperCase()+$.slice(1)),toHandlerKey=cacheStringFunction($=>$?`on${capitalize$2($)}`:""),hasChanged=($,oe)=>!Object.is($,oe),invokeArrayFns=($,oe)=>{for(let ae=0;ae<$.length;ae++)$[ae](oe)},def=($,oe,ae)=>{Object.defineProperty($,oe,{configurable:!0,enumerable:!1,value:ae})},looseToNumber=$=>{const oe=parseFloat($);return isNaN(oe)?$:oe},toNumber$1=$=>{const oe=isString$7($)?Number($):NaN;return isNaN(oe)?$:oe};let _globalThis;const getGlobalThis=()=>_globalThis||(_globalThis=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),GLOBALS_WHITE_LISTED="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",isGloballyWhitelisted=makeMap(GLOBALS_WHITE_LISTED);function normalizeStyle$1($){if(isArray$c($)){const oe={};for(let ae=0;ae<$.length;ae++){const ie=$[ae],le=isString$7(ie)?parseStringStyle(ie):normalizeStyle$1(ie);if(le)for(const pe in le)oe[pe]=le[pe]}return oe}else{if(isString$7($))return $;if(isObject$8($))return $}}const listDelimiterRE=/;(?![^(]*\))/g,propertyDelimiterRE=/:([^]+)/,styleCommentRE=new RegExp("\\/\\*.*?\\*\\/","gs");function parseStringStyle($){const oe={};return $.replace(styleCommentRE,"").split(listDelimiterRE).forEach(ae=>{if(ae){const ie=ae.split(propertyDelimiterRE);ie.length>1&&(oe[ie[0].trim()]=ie[1].trim())}}),oe}function normalizeClass($){let oe="";if(isString$7($))oe=$;else if(isArray$c($))for(let ae=0;ae<$.length;ae++){const ie=normalizeClass($[ae]);ie&&(oe+=ie+" ")}else if(isObject$8($))for(const ae in $)$[ae]&&(oe+=ae+" ");return oe.trim()}function normalizeProps($){if(!$)return null;let{class:oe,style:ae}=$;return oe&&!isString$7(oe)&&($.class=normalizeClass(oe)),ae&&($.style=normalizeStyle$1(ae)),$}const specialBooleanAttrs="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",isSpecialBooleanAttr=makeMap(specialBooleanAttrs);function includeBooleanAttr($){return!!$||$===""}function looseCompareArrays($,oe){if($.length!==oe.length)return!1;let ae=!0;for(let ie=0;ae&&ie<$.length;ie++)ae=looseEqual($[ie],oe[ie]);return ae}function looseEqual($,oe){if($===oe)return!0;let ae=isDate$3($),ie=isDate$3(oe);if(ae||ie)return ae&&ie?$.getTime()===oe.getTime():!1;if(ae=isSymbol$2($),ie=isSymbol$2(oe),ae||ie)return $===oe;if(ae=isArray$c($),ie=isArray$c(oe),ae||ie)return ae&&ie?looseCompareArrays($,oe):!1;if(ae=isObject$8($),ie=isObject$8(oe),ae||ie){if(!ae||!ie)return!1;const le=Object.keys($).length,pe=Object.keys(oe).length;if(le!==pe)return!1;for(const _e in $){const Ce=$.hasOwnProperty(_e),$e=oe.hasOwnProperty(_e);if(Ce&&!$e||!Ce&&$e||!looseEqual($[_e],oe[_e]))return!1}}return String($)===String(oe)}function looseIndexOf($,oe){return $.findIndex(ae=>looseEqual(ae,oe))}const toDisplayString$1=$=>isString$7($)?$:$==null?"":isArray$c($)||isObject$8($)&&($.toString===objectToString$3||!isFunction$5($.toString))?JSON.stringify($,replacer,2):String($),replacer=($,oe)=>oe&&oe.__v_isRef?replacer($,oe.value):isMap$3(oe)?{[`Map(${oe.size})`]:[...oe.entries()].reduce((ae,[ie,le])=>(ae[`${ie} =>`]=le,ae),{})}:isSet$3(oe)?{[`Set(${oe.size})`]:[...oe.values()]}:isObject$8(oe)&&!isArray$c(oe)&&!isPlainObject$4(oe)?String(oe):oe;let activeEffectScope;class EffectScope{constructor(oe=!1){this.detached=oe,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!oe&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(oe){if(this._active){const ae=activeEffectScope;try{return activeEffectScope=this,oe()}finally{activeEffectScope=ae}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(oe){if(this._active){let ae,ie;for(ae=0,ie=this.effects.length;ae<ie;ae++)this.effects[ae].stop();for(ae=0,ie=this.cleanups.length;ae<ie;ae++)this.cleanups[ae]();if(this.scopes)for(ae=0,ie=this.scopes.length;ae<ie;ae++)this.scopes[ae].stop(!0);if(!this.detached&&this.parent&&!oe){const le=this.parent.scopes.pop();le&&le!==this&&(this.parent.scopes[this.index]=le,le.index=this.index)}this.parent=void 0,this._active=!1}}}function effectScope($){return new EffectScope($)}function recordEffectScope($,oe=activeEffectScope){oe&&oe.active&&oe.effects.push($)}function getCurrentScope(){return activeEffectScope}function onScopeDispose($){activeEffectScope&&activeEffectScope.cleanups.push($)}const createDep=$=>{const oe=new Set($);return oe.w=0,oe.n=0,oe},wasTracked=$=>($.w&trackOpBit)>0,newTracked=$=>($.n&trackOpBit)>0,initDepMarkers=({deps:$})=>{if($.length)for(let oe=0;oe<$.length;oe++)$[oe].w|=trackOpBit},finalizeDepMarkers=$=>{const{deps:oe}=$;if(oe.length){let ae=0;for(let ie=0;ie<oe.length;ie++){const le=oe[ie];wasTracked(le)&&!newTracked(le)?le.delete($):oe[ae++]=le,le.w&=~trackOpBit,le.n&=~trackOpBit}oe.length=ae}},targetMap=new WeakMap;let effectTrackDepth=0,trackOpBit=1;const maxMarkerBits=30;let activeEffect;const ITERATE_KEY=Symbol(""),MAP_KEY_ITERATE_KEY=Symbol("");class ReactiveEffect{constructor(oe,ae=null,ie){this.fn=oe,this.scheduler=ae,this.active=!0,this.deps=[],this.parent=void 0,recordEffectScope(this,ie)}run(){if(!this.active)return this.fn();let oe=activeEffect,ae=shouldTrack;for(;oe;){if(oe===this)return;oe=oe.parent}try{return this.parent=activeEffect,activeEffect=this,shouldTrack=!0,trackOpBit=1<<++effectTrackDepth,effectTrackDepth<=maxMarkerBits?initDepMarkers(this):cleanupEffect(this),this.fn()}finally{effectTrackDepth<=maxMarkerBits&&finalizeDepMarkers(this),trackOpBit=1<<--effectTrackDepth,activeEffect=this.parent,shouldTrack=ae,this.parent=void 0,this.deferStop&&this.stop()}}stop(){activeEffect===this?this.deferStop=!0:this.active&&(cleanupEffect(this),this.onStop&&this.onStop(),this.active=!1)}}function cleanupEffect($){const{deps:oe}=$;if(oe.length){for(let ae=0;ae<oe.length;ae++)oe[ae].delete($);oe.length=0}}function effect($,oe){$.effect&&($=$.effect.fn);const ae=new ReactiveEffect($);oe&&(extend$2(ae,oe),oe.scope&&recordEffectScope(ae,oe.scope)),(!oe||!oe.lazy)&&ae.run();const ie=ae.run.bind(ae);return ie.effect=ae,ie}function stop$1($){$.effect.stop()}let shouldTrack=!0;const trackStack=[];function pauseTracking(){trackStack.push(shouldTrack),shouldTrack=!1}function resetTracking(){const $=trackStack.pop();shouldTrack=$===void 0?!0:$}function track($,oe,ae){if(shouldTrack&&activeEffect){let ie=targetMap.get($);ie||targetMap.set($,ie=new Map);let le=ie.get(ae);le||ie.set(ae,le=createDep()),trackEffects(le)}}function trackEffects($,oe){let ae=!1;effectTrackDepth<=maxMarkerBits?newTracked($)||($.n|=trackOpBit,ae=!wasTracked($)):ae=!$.has(activeEffect),ae&&($.add(activeEffect),activeEffect.deps.push($))}function trigger$2($,oe,ae,ie,le,pe){const _e=targetMap.get($);if(!_e)return;let Ce=[];if(oe==="clear")Ce=[..._e.values()];else if(ae==="length"&&isArray$c($)){const $e=Number(ie);_e.forEach((xe,Ie)=>{(Ie==="length"||Ie>=$e)&&Ce.push(xe)})}else switch(ae!==void 0&&Ce.push(_e.get(ae)),oe){case"add":isArray$c($)?isIntegerKey(ae)&&Ce.push(_e.get("length")):(Ce.push(_e.get(ITERATE_KEY)),isMap$3($)&&Ce.push(_e.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c($)||(Ce.push(_e.get(ITERATE_KEY)),isMap$3($)&&Ce.push(_e.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$3($)&&Ce.push(_e.get(ITERATE_KEY));break}if(Ce.length===1)Ce[0]&&triggerEffects(Ce[0]);else{const $e=[];for(const xe of Ce)xe&&$e.push(...xe);triggerEffects(createDep($e))}}function triggerEffects($,oe){const ae=isArray$c($)?$:[...$];for(const ie of ae)ie.computed&&triggerEffect(ie);for(const ie of ae)ie.computed||triggerEffect(ie)}function triggerEffect($,oe){($!==activeEffect||$.allowRecurse)&&($.scheduler?$.scheduler():$.run())}function getDepFromReactive($,oe){var ae;return(ae=targetMap.get($))==null?void 0:ae.get(oe)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter($=>$!=="arguments"&&$!=="caller").map($=>Symbol[$]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const $={};return["includes","indexOf","lastIndexOf"].forEach(oe=>{$[oe]=function(...ae){const ie=toRaw(this);for(let pe=0,_e=this.length;pe<_e;pe++)track(ie,"get",pe+"");const le=ie[oe](...ae);return le===-1||le===!1?ie[oe](...ae.map(toRaw)):le}}),["push","pop","shift","unshift","splice"].forEach(oe=>{$[oe]=function(...ae){pauseTracking();const ie=toRaw(this)[oe].apply(this,ae);return resetTracking(),ie}}),$}function hasOwnProperty$f($){const oe=toRaw(this);return track(oe,"has",$),oe.hasOwnProperty($)}function createGetter($=!1,oe=!1){return function(ie,le,pe){if(le==="__v_isReactive")return!$;if(le==="__v_isReadonly")return $;if(le==="__v_isShallow")return oe;if(le==="__v_raw"&&pe===($?oe?shallowReadonlyMap:readonlyMap:oe?shallowReactiveMap:reactiveMap).get(ie))return ie;const _e=isArray$c(ie);if(!$){if(_e&&hasOwn$4(arrayInstrumentations,le))return Reflect.get(arrayInstrumentations,le,pe);if(le==="hasOwnProperty")return hasOwnProperty$f}const Ce=Reflect.get(ie,le,pe);return(isSymbol$2(le)?builtInSymbols.has(le):isNonTrackableKeys(le))||($||track(ie,"get",le),oe)?Ce:isRef(Ce)?_e&&isIntegerKey(le)?Ce:Ce.value:isObject$8(Ce)?$?readonly(Ce):reactive(Ce):Ce}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter($=!1){return function(ae,ie,le,pe){let _e=ae[ie];if(isReadonly(_e)&&isRef(_e)&&!isRef(le))return!1;if(!$&&(!isShallow(le)&&!isReadonly(le)&&(_e=toRaw(_e),le=toRaw(le)),!isArray$c(ae)&&isRef(_e)&&!isRef(le)))return _e.value=le,!0;const Ce=isArray$c(ae)&&isIntegerKey(ie)?Number(ie)<ae.length:hasOwn$4(ae,ie),$e=Reflect.set(ae,ie,le,pe);return ae===toRaw(pe)&&(Ce?hasChanged(le,_e)&&trigger$2(ae,"set",ie,le):trigger$2(ae,"add",ie,le)),$e}}function deleteProperty($,oe){const ae=hasOwn$4($,oe);$[oe];const ie=Reflect.deleteProperty($,oe);return ie&&ae&&trigger$2($,"delete",oe,void 0),ie}function has$1$1($,oe){const ae=Reflect.has($,oe);return(!isSymbol$2(oe)||!builtInSymbols.has(oe))&&track($,"has",oe),ae}function ownKeys($){return track($,"iterate",isArray$c($)?"length":ITERATE_KEY),Reflect.ownKeys($)}const mutableHandlers={get:get$1$1,set:set$1$1,deleteProperty,has:has$1$1,ownKeys},readonlyHandlers={get:readonlyGet,set($,oe){return!0},deleteProperty($,oe){return!0}},shallowReactiveHandlers=extend$2({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend$2({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=$=>$,getProto$1=$=>Reflect.getPrototypeOf($);function get$2($,oe,ae=!1,ie=!1){$=$.__v_raw;const le=toRaw($),pe=toRaw(oe);ae||(oe!==pe&&track(le,"get",oe),track(le,"get",pe));const{has:_e}=getProto$1(le),Ce=ie?toShallow:ae?toReadonly:toReactive;if(_e.call(le,oe))return Ce($.get(oe));if(_e.call(le,pe))return Ce($.get(pe));$!==le&&$.get(oe)}function has$5($,oe=!1){const ae=this.__v_raw,ie=toRaw(ae),le=toRaw($);return oe||($!==le&&track(ie,"has",$),track(ie,"has",le)),$===le?ae.has($):ae.has($)||ae.has(le)}function size($,oe=!1){return $=$.__v_raw,!oe&&track(toRaw($),"iterate",ITERATE_KEY),Reflect.get($,"size",$)}function add$1($){$=toRaw($);const oe=toRaw(this);return getProto$1(oe).has.call(oe,$)||(oe.add($),trigger$2(oe,"add",$,$)),this}function set$4($,oe){oe=toRaw(oe);const ae=toRaw(this),{has:ie,get:le}=getProto$1(ae);let pe=ie.call(ae,$);pe||($=toRaw($),pe=ie.call(ae,$));const _e=le.call(ae,$);return ae.set($,oe),pe?hasChanged(oe,_e)&&trigger$2(ae,"set",$,oe):trigger$2(ae,"add",$,oe),this}function deleteEntry($){const oe=toRaw(this),{has:ae,get:ie}=getProto$1(oe);let le=ae.call(oe,$);le||($=toRaw($),le=ae.call(oe,$)),ie&&ie.call(oe,$);const pe=oe.delete($);return le&&trigger$2(oe,"delete",$,void 0),pe}function clear$2(){const $=toRaw(this),oe=$.size!==0,ae=$.clear();return oe&&trigger$2($,"clear",void 0,void 0),ae}function createForEach($,oe){return function(ie,le){const pe=this,_e=pe.__v_raw,Ce=toRaw(_e),$e=oe?toShallow:$?toReadonly:toReactive;return!$&&track(Ce,"iterate",ITERATE_KEY),_e.forEach((xe,Ie)=>ie.call(le,$e(xe),$e(Ie),pe))}}function createIterableMethod($,oe,ae){return function(...ie){const le=this.__v_raw,pe=toRaw(le),_e=isMap$3(pe),Ce=$==="entries"||$===Symbol.iterator&&_e,$e=$==="keys"&&_e,xe=le[$](...ie),Ie=ae?toShallow:oe?toReadonly:toReactive;return!oe&&track(pe,"iterate",$e?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:Ne,done:Fe}=xe.next();return Fe?{value:Ne,done:Fe}:{value:Ce?[Ie(Ne[0]),Ie(Ne[1])]:Ie(Ne),done:Fe}},[Symbol.iterator](){return this}}}}function createReadonlyMethod($){return function(...oe){return $==="delete"?!1:this}}function createInstrumentations(){const $={get(pe){return get$2(this,pe)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!1)},oe={get(pe){return get$2(this,pe,!1,!0)},get size(){return size(this)},has:has$5,add:add$1,set:set$4,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!0)},ae={get(pe){return get$2(this,pe,!0)},get size(){return size(this,!0)},has(pe){return has$5.call(this,pe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},ie={get(pe){return get$2(this,pe,!0,!0)},get size(){return size(this,!0)},has(pe){return has$5.call(this,pe,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(pe=>{$[pe]=createIterableMethod(pe,!1,!1),ae[pe]=createIterableMethod(pe,!0,!1),oe[pe]=createIterableMethod(pe,!1,!0),ie[pe]=createIterableMethod(pe,!0,!0)}),[$,ae,oe,ie]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter($,oe){const ae=oe?$?shallowReadonlyInstrumentations:shallowInstrumentations:$?readonlyInstrumentations:mutableInstrumentations;return(ie,le,pe)=>le==="__v_isReactive"?!$:le==="__v_isReadonly"?$:le==="__v_raw"?ie:Reflect.get(hasOwn$4(ae,le)&&le in ie?ae:ie,le,pe)}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($){switch($){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType($){return $.__v_skip||!Object.isExtensible($)?0:targetTypeMap(toRawType($))}function reactive($){return isReadonly($)?$:createReactiveObject($,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive($){return createReactiveObject($,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly($){return createReactiveObject($,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly($){return createReactiveObject($,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject($,oe,ae,ie,le){if(!isObject$8($)||$.__v_raw&&!(oe&&$.__v_isReactive))return $;const pe=le.get($);if(pe)return pe;const _e=getTargetType($);if(_e===0)return $;const Ce=new Proxy($,_e===2?ie:ae);return le.set($,Ce),Ce}function isReactive($){return isReadonly($)?isReactive($.__v_raw):!!($&&$.__v_isReactive)}function isReadonly($){return!!($&&$.__v_isReadonly)}function isShallow($){return!!($&&$.__v_isShallow)}function isProxy($){return isReactive($)||isReadonly($)}function toRaw($){const oe=$&&$.__v_raw;return oe?toRaw(oe):$}function markRaw($){return def($,"__v_skip",!0),$}const toReactive=$=>isObject$8($)?reactive($):$,toReadonly=$=>isObject$8($)?readonly($):$;function trackRefValue($){shouldTrack&&activeEffect&&($=toRaw($),trackEffects($.dep||($.dep=createDep())))}function triggerRefValue($,oe){$=toRaw($);const ae=$.dep;ae&&triggerEffects(ae)}function isRef($){return!!($&&$.__v_isRef===!0)}function ref($){return createRef($,!1)}function shallowRef($){return createRef($,!0)}function createRef($,oe){return isRef($)?$:new RefImpl($,oe)}class RefImpl{constructor(oe,ae){this.__v_isShallow=ae,this.dep=void 0,this.__v_isRef=!0,this._rawValue=ae?oe:toRaw(oe),this._value=ae?oe:toReactive(oe)}get value(){return trackRefValue(this),this._value}set value(oe){const ae=this.__v_isShallow||isShallow(oe)||isReadonly(oe);oe=ae?oe:toRaw(oe),hasChanged(oe,this._rawValue)&&(this._rawValue=oe,this._value=ae?oe:toReactive(oe),triggerRefValue(this))}}function triggerRef($){triggerRefValue($)}function unref($){return isRef($)?$.value:$}function toValue$1($){return isFunction$5($)?$():unref($)}const shallowUnwrapHandlers={get:($,oe,ae)=>unref(Reflect.get($,oe,ae)),set:($,oe,ae,ie)=>{const le=$[oe];return isRef(le)&&!isRef(ae)?(le.value=ae,!0):Reflect.set($,oe,ae,ie)}};function proxyRefs($){return isReactive($)?$:new Proxy($,shallowUnwrapHandlers)}class CustomRefImpl{constructor(oe){this.dep=void 0,this.__v_isRef=!0;const{get:ae,set:ie}=oe(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=ae,this._set=ie}get value(){return this._get()}set value(oe){this._set(oe)}}function customRef($){return new CustomRefImpl($)}function toRefs($){const oe=isArray$c($)?new Array($.length):{};for(const ae in $)oe[ae]=propertyToRef($,ae);return oe}class ObjectRefImpl{constructor(oe,ae,ie){this._object=oe,this._key=ae,this._defaultValue=ie,this.__v_isRef=!0}get value(){const oe=this._object[this._key];return oe===void 0?this._defaultValue:oe}set value(oe){this._object[this._key]=oe}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(oe){this._getter=oe,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef$1($,oe,ae){return isRef($)?$:isFunction$5($)?new GetterRefImpl($):isObject$8($)&&arguments.length>1?propertyToRef($,oe,ae):ref($)}function propertyToRef($,oe,ae){const ie=$[oe];return isRef(ie)?ie:new ObjectRefImpl($,oe,ae)}class ComputedRefImpl{constructor(oe,ae,ie,le){this._setter=ae,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(oe,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!le,this.__v_isReadonly=ie}get value(){const oe=toRaw(this);return trackRefValue(oe),(oe._dirty||!oe._cacheable)&&(oe._dirty=!1,oe._value=oe.effect.run()),oe._value}set value(oe){this._setter(oe)}}function computed$1($,oe,ae=!1){let ie,le;const pe=isFunction$5($);return pe?(ie=$,le=NOOP):(ie=$.get,le=$.set),new ComputedRefImpl(ie,le,pe||!le,ae)}function warn$2($,...oe){}function assertNumber($,oe){}function callWithErrorHandling($,oe,ae,ie){let le;try{le=ie?$(...ie):$()}catch(pe){handleError(pe,oe,ae)}return le}function callWithAsyncErrorHandling($,oe,ae,ie){if(isFunction$5($)){const pe=callWithErrorHandling($,oe,ae,ie);return pe&&isPromise(pe)&&pe.catch(_e=>{handleError(_e,oe,ae)}),pe}const le=[];for(let pe=0;pe<$.length;pe++)le.push(callWithAsyncErrorHandling($[pe],oe,ae,ie));return le}function handleError($,oe,ae,ie=!0){const le=oe?oe.vnode:null;if(oe){let pe=oe.parent;const _e=oe.proxy,Ce=ae;for(;pe;){const xe=pe.ec;if(xe){for(let Ie=0;Ie<xe.length;Ie++)if(xe[Ie]($,_e,Ce)===!1)return}pe=pe.parent}const $e=oe.appContext.config.errorHandler;if($e){callWithErrorHandling($e,null,10,[$,_e,Ce]);return}}logError$1($,ae,le,ie)}function logError$1($,oe,ae,ie=!0){console.error($)}let isFlushing=!1,isFlushPending=!1;const queue=[];let flushIndex=0;const pendingPostFlushCbs=[];let activePostFlushCbs=null,postFlushIndex=0;const resolvedPromise=Promise.resolve();let currentFlushPromise=null;function nextTick($){const oe=currentFlushPromise||resolvedPromise;return $?oe.then(this?$.bind(this):$):oe}function findInsertionIndex($){let oe=flushIndex+1,ae=queue.length;for(;oe<ae;){const ie=oe+ae>>>1;getId$1(queue[ie])<$?oe=ie+1:ae=ie}return oe}function queueJob($){(!queue.length||!queue.includes($,isFlushing&&$.allowRecurse?flushIndex+1:flushIndex))&&($.id==null?queue.push($):queue.splice(findInsertionIndex($.id),0,$),queueFlush())}function queueFlush(){!isFlushing&&!isFlushPending&&(isFlushPending=!0,currentFlushPromise=resolvedPromise.then(flushJobs))}function invalidateJob($){const oe=queue.indexOf($);oe>flushIndex&&queue.splice(oe,1)}function queuePostFlushCb($){isArray$c($)?pendingPostFlushCbs.push(...$):(!activePostFlushCbs||!activePostFlushCbs.includes($,$.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push($),queueFlush()}function flushPreFlushCbs($,oe=isFlushing?flushIndex+1:0){for(;oe<queue.length;oe++){const ae=queue[oe];ae&&ae.pre&&(queue.splice(oe,1),oe--,ae())}}function flushPostFlushCbs($){if(pendingPostFlushCbs.length){const oe=[...new Set(pendingPostFlushCbs)];if(pendingPostFlushCbs.length=0,activePostFlushCbs){activePostFlushCbs.push(...oe);return}for(activePostFlushCbs=oe,activePostFlushCbs.sort((ae,ie)=>getId$1(ae)-getId$1(ie)),postFlushIndex=0;postFlushIndex<activePostFlushCbs.length;postFlushIndex++)activePostFlushCbs[postFlushIndex]();activePostFlushCbs=null,postFlushIndex=0}}const getId$1=$=>$.id==null?1/0:$.id,comparator=($,oe)=>{const ae=getId$1($)-getId$1(oe);if(ae===0){if($.pre&&!oe.pre)return-1;if(oe.pre&&!$.pre)return 1}return ae};function flushJobs($){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const oe=NOOP;try{for(flushIndex=0;flushIndex<queue.length;flushIndex++){const ae=queue[flushIndex];ae&&ae.active!==!1&&callWithErrorHandling(ae,null,14)}}finally{flushIndex=0,queue.length=0,flushPostFlushCbs(),isFlushing=!1,currentFlushPromise=null,(queue.length||pendingPostFlushCbs.length)&&flushJobs()}}let devtools,buffer=[];function setDevtoolsHook($,oe){var ae,ie;devtools=$,devtools?(devtools.enabled=!0,buffer.forEach(({event:le,args:pe})=>devtools.emit(le,...pe)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((ie=(ae=window.navigator)==null?void 0:ae.userAgent)!=null&&ie.includes("jsdom"))?((oe.__VUE_DEVTOOLS_HOOK_REPLAY__=oe.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(pe=>{setDevtoolsHook(pe,oe)}),setTimeout(()=>{devtools||(oe.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit($,oe,...ae){if($.isUnmounted)return;const ie=$.vnode.props||EMPTY_OBJ$1;let le=ae;const pe=oe.startsWith("update:"),_e=pe&&oe.slice(7);if(_e&&_e in ie){const Ie=`${_e==="modelValue"?"model":_e}Modifiers`,{number:Ne,trim:Fe}=ie[Ie]||EMPTY_OBJ$1;Fe&&(le=ae.map(ze=>isString$7(ze)?ze.trim():ze)),Ne&&(le=ae.map(looseToNumber))}let Ce,$e=ie[Ce=toHandlerKey(oe)]||ie[Ce=toHandlerKey(camelize(oe))];!$e&&pe&&($e=ie[Ce=toHandlerKey(hyphenate(oe))]),$e&&callWithAsyncErrorHandling($e,$,6,le);const xe=ie[Ce+"Once"];if(xe){if(!$.emitted)$.emitted={};else if($.emitted[Ce])return;$.emitted[Ce]=!0,callWithAsyncErrorHandling(xe,$,6,le)}}function normalizeEmitsOptions($,oe,ae=!1){const ie=oe.emitsCache,le=ie.get($);if(le!==void 0)return le;const pe=$.emits;let _e={},Ce=!1;if(!isFunction$5($)){const $e=xe=>{const Ie=normalizeEmitsOptions(xe,oe,!0);Ie&&(Ce=!0,extend$2(_e,Ie))};!ae&&oe.mixins.length&&oe.mixins.forEach($e),$.extends&&$e($.extends),$.mixins&&$.mixins.forEach($e)}return!pe&&!Ce?(isObject$8($)&&ie.set($,null),null):(isArray$c(pe)?pe.forEach($e=>_e[$e]=null):extend$2(_e,pe),isObject$8($)&&ie.set($,_e),_e)}function isEmitListener($,oe){return!$||!isOn(oe)?!1:(oe=oe.slice(2).replace(/Once$/,""),hasOwn$4($,oe[0].toLowerCase()+oe.slice(1))||hasOwn$4($,hyphenate(oe))||hasOwn$4($,oe))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance($){const oe=currentRenderingInstance;return currentRenderingInstance=$,currentScopeId=$&&$.type.__scopeId||null,oe}function pushScopeId($){currentScopeId=$}function popScopeId(){currentScopeId=null}const withScopeId=$=>withCtx;function withCtx($,oe=currentRenderingInstance,ae){if(!oe||$._n)return $;const ie=(...le)=>{ie._d&&setBlockTracking(-1);const pe=setCurrentRenderingInstance(oe);let _e;try{_e=$(...le)}finally{setCurrentRenderingInstance(pe),ie._d&&setBlockTracking(1)}return _e};return ie._n=!0,ie._c=!0,ie._d=!0,ie}function markAttrsAccessed(){}function renderComponentRoot($){const{type:oe,vnode:ae,proxy:ie,withProxy:le,props:pe,propsOptions:[_e],slots:Ce,attrs:$e,emit:xe,render:Ie,renderCache:Ne,data:Fe,setupState:ze,ctx:At,inheritAttrs:Lt}=$;let hn,vn;const _n=setCurrentRenderingInstance($);try{if(ae.shapeFlag&4){const Cn=le||ie;hn=normalizeVNode(Ie.call(Cn,Cn,Ne,pe,ze,Fe,At)),vn=$e}else{const Cn=oe;hn=normalizeVNode(Cn.length>1?Cn(pe,{attrs:$e,slots:Ce,emit:xe}):Cn(pe,null)),vn=oe.props?$e:getFunctionalFallthrough($e)}}catch(Cn){blockStack.length=0,handleError(Cn,$,1),hn=createVNode(Comment)}let bn=hn;if(vn&&Lt!==!1){const Cn=Object.keys(vn),{shapeFlag:En}=bn;Cn.length&&En&7&&(_e&&Cn.some(isModelListener)&&(vn=filterModelListeners(vn,_e)),bn=cloneVNode(bn,vn))}return ae.dirs&&(bn=cloneVNode(bn),bn.dirs=bn.dirs?bn.dirs.concat(ae.dirs):ae.dirs),ae.transition&&(bn.transition=ae.transition),hn=bn,setCurrentRenderingInstance(_n),hn}function filterSingleRoot($){let oe;for(let ae=0;ae<$.length;ae++){const ie=$[ae];if(isVNode$1(ie)){if(ie.type!==Comment||ie.children==="v-if"){if(oe)return;oe=ie}}else return}return oe}const getFunctionalFallthrough=$=>{let oe;for(const ae in $)(ae==="class"||ae==="style"||isOn(ae))&&((oe||(oe={}))[ae]=$[ae]);return oe},filterModelListeners=($,oe)=>{const ae={};for(const ie in $)(!isModelListener(ie)||!(ie.slice(9)in oe))&&(ae[ie]=$[ie]);return ae};function shouldUpdateComponent($,oe,ae){const{props:ie,children:le,component:pe}=$,{props:_e,children:Ce,patchFlag:$e}=oe,xe=pe.emitsOptions;if(oe.dirs||oe.transition)return!0;if(ae&&$e>=0){if($e&1024)return!0;if($e&16)return ie?hasPropsChanged(ie,_e,xe):!!_e;if($e&8){const Ie=oe.dynamicProps;for(let Ne=0;Ne<Ie.length;Ne++){const Fe=Ie[Ne];if(_e[Fe]!==ie[Fe]&&!isEmitListener(xe,Fe))return!0}}}else return(le||Ce)&&(!Ce||!Ce.$stable)?!0:ie===_e?!1:ie?_e?hasPropsChanged(ie,_e,xe):!0:!!_e;return!1}function hasPropsChanged($,oe,ae){const ie=Object.keys(oe);if(ie.length!==Object.keys($).length)return!0;for(let le=0;le<ie.length;le++){const pe=ie[le];if(oe[pe]!==$[pe]&&!isEmitListener(ae,pe))return!0}return!1}function updateHOCHostEl({vnode:$,parent:oe},ae){for(;oe&&oe.subTree===$;)($=oe.vnode).el=ae,oe=oe.parent}const isSuspense=$=>$.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process($,oe,ae,ie,le,pe,_e,Ce,$e,xe){$==null?mountSuspense(oe,ae,ie,le,pe,_e,Ce,$e,xe):patchSuspense($,oe,ae,ie,le,_e,Ce,$e,xe)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1($,oe){const ae=$.props&&$.props[oe];isFunction$5(ae)&&ae()}function mountSuspense($,oe,ae,ie,le,pe,_e,Ce,$e){const{p:xe,o:{createElement:Ie}}=$e,Ne=Ie("div"),Fe=$.suspense=createSuspenseBoundary($,le,ie,oe,Ne,ae,pe,_e,Ce,$e);xe(null,Fe.pendingBranch=$.ssContent,Ne,null,ie,Fe,pe,_e),Fe.deps>0?(triggerEvent$1($,"onPending"),triggerEvent$1($,"onFallback"),xe(null,$.ssFallback,oe,ae,ie,null,pe,_e),setActiveBranch(Fe,$.ssFallback)):Fe.resolve(!1,!0)}function patchSuspense($,oe,ae,ie,le,pe,_e,Ce,{p:$e,um:xe,o:{createElement:Ie}}){const Ne=oe.suspense=$.suspense;Ne.vnode=oe,oe.el=$.el;const Fe=oe.ssContent,ze=oe.ssFallback,{activeBranch:At,pendingBranch:Lt,isInFallback:hn,isHydrating:vn}=Ne;if(Lt)Ne.pendingBranch=Fe,isSameVNodeType(Fe,Lt)?($e(Lt,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0?Ne.resolve():hn&&($e(At,ze,ae,ie,le,null,pe,_e,Ce),setActiveBranch(Ne,ze))):(Ne.pendingId++,vn?(Ne.isHydrating=!1,Ne.activeBranch=Lt):xe(Lt,le,Ne),Ne.deps=0,Ne.effects.length=0,Ne.hiddenContainer=Ie("div"),hn?($e(null,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0?Ne.resolve():($e(At,ze,ae,ie,le,null,pe,_e,Ce),setActiveBranch(Ne,ze))):At&&isSameVNodeType(Fe,At)?($e(At,Fe,ae,ie,le,Ne,pe,_e,Ce),Ne.resolve(!0)):($e(null,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0&&Ne.resolve()));else if(At&&isSameVNodeType(Fe,At))$e(At,Fe,ae,ie,le,Ne,pe,_e,Ce),setActiveBranch(Ne,Fe);else if(triggerEvent$1(oe,"onPending"),Ne.pendingBranch=Fe,Ne.pendingId++,$e(null,Fe,Ne.hiddenContainer,null,le,Ne,pe,_e,Ce),Ne.deps<=0)Ne.resolve();else{const{timeout:_n,pendingId:bn}=Ne;_n>0?setTimeout(()=>{Ne.pendingId===bn&&Ne.fallback(ze)},_n):_n===0&&Ne.fallback(ze)}}function createSuspenseBoundary($,oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie=!1){const{p:Ne,m:Fe,um:ze,n:At,o:{parentNode:Lt,remove:hn}}=xe;let vn;const _n=isVNodeSuspensible($);_n&&oe!=null&&oe.pendingBranch&&(vn=oe.pendingId,oe.deps++);const bn=$.props?toNumber$1($.props.timeout):void 0,Cn={vnode:$,parent:oe,parentComponent:ae,isSVG:_e,container:ie,hiddenContainer:le,anchor:pe,deps:0,pendingId:0,timeout:typeof bn=="number"?bn:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:Ie,isUnmounted:!1,effects:[],resolve(En=!1,$n=!1){const{vnode:wn,activeBranch:Tn,pendingBranch:xn,pendingId:kn,effects:An,parentComponent:On,container:Nn}=Cn;if(Cn.isHydrating)Cn.isHydrating=!1;else if(!En){const Bn=Tn&&xn.transition&&xn.transition.mode==="out-in";Bn&&(Tn.transition.afterLeave=()=>{kn===Cn.pendingId&&Fe(xn,Nn,Mn,0)});let{anchor:Mn}=Cn;Tn&&(Mn=At(Tn),ze(Tn,On,Cn,!0)),Bn||Fe(xn,Nn,Mn,0)}setActiveBranch(Cn,xn),Cn.pendingBranch=null,Cn.isInFallback=!1;let Rn=Cn.parent,zn=!1;for(;Rn;){if(Rn.pendingBranch){Rn.effects.push(...An),zn=!0;break}Rn=Rn.parent}zn||queuePostFlushCb(An),Cn.effects=[],_n&&oe&&oe.pendingBranch&&vn===oe.pendingId&&(oe.deps--,oe.deps===0&&!$n&&oe.resolve()),triggerEvent$1(wn,"onResolve")},fallback(En){if(!Cn.pendingBranch)return;const{vnode:$n,activeBranch:wn,parentComponent:Tn,container:xn,isSVG:kn}=Cn;triggerEvent$1($n,"onFallback");const An=At(wn),On=()=>{Cn.isInFallback&&(Ne(null,En,xn,An,Tn,null,kn,Ce,$e),setActiveBranch(Cn,En))},Nn=En.transition&&En.transition.mode==="out-in";Nn&&(wn.transition.afterLeave=On),Cn.isInFallback=!0,ze(wn,Tn,null,!0),Nn||On()},move(En,$n,wn){Cn.activeBranch&&Fe(Cn.activeBranch,En,$n,wn),Cn.container=En},next(){return Cn.activeBranch&&At(Cn.activeBranch)},registerDep(En,$n){const wn=!!Cn.pendingBranch;wn&&Cn.deps++;const Tn=En.vnode.el;En.asyncDep.catch(xn=>{handleError(xn,En,0)}).then(xn=>{if(En.isUnmounted||Cn.isUnmounted||Cn.pendingId!==En.suspenseId)return;En.asyncResolved=!0;const{vnode:kn}=En;handleSetupResult(En,xn,!1),Tn&&(kn.el=Tn);const An=!Tn&&En.subTree.el;$n(En,kn,Lt(Tn||En.subTree.el),Tn?null:At(En.subTree),Cn,_e,$e),An&&hn(An),updateHOCHostEl(En,kn.el),wn&&--Cn.deps===0&&Cn.resolve()})},unmount(En,$n){Cn.isUnmounted=!0,Cn.activeBranch&&ze(Cn.activeBranch,ae,En,$n),Cn.pendingBranch&&ze(Cn.pendingBranch,ae,En,$n)}};return Cn}function hydrateSuspense($,oe,ae,ie,le,pe,_e,Ce,$e){const xe=oe.suspense=createSuspenseBoundary(oe,ie,ae,$.parentNode,document.createElement("div"),null,le,pe,_e,Ce,!0),Ie=$e($,xe.pendingBranch=oe.ssContent,ae,xe,pe,_e);return xe.deps===0&&xe.resolve(!1,!0),Ie}function normalizeSuspenseChildren($){const{shapeFlag:oe,children:ae}=$,ie=oe&32;$.ssContent=normalizeSuspenseSlot(ie?ae.default:ae),$.ssFallback=ie?normalizeSuspenseSlot(ae.fallback):createVNode(Comment)}function normalizeSuspenseSlot($){let oe;if(isFunction$5($)){const ae=isBlockTreeEnabled&&$._c;ae&&($._d=!1,openBlock()),$=$(),ae&&($._d=!0,oe=currentBlock,closeBlock())}return isArray$c($)&&($=filterSingleRoot($)),$=normalizeVNode($),oe&&!$.dynamicChildren&&($.dynamicChildren=oe.filter(ae=>ae!==$)),$}function queueEffectWithSuspense($,oe){oe&&oe.pendingBranch?isArray$c($)?oe.effects.push(...$):oe.effects.push($):queuePostFlushCb($)}function setActiveBranch($,oe){$.activeBranch=oe;const{vnode:ae,parentComponent:ie}=$,le=ae.el=oe.el;ie&&ie.subTree===ae&&(ie.vnode.el=le,updateHOCHostEl(ie,le))}function isVNodeSuspensible($){var oe;return((oe=$.props)==null?void 0:oe.suspensible)!=null&&$.props.suspensible!==!1}function watchEffect($,oe){return doWatch($,null,oe)}function watchPostEffect($,oe){return doWatch($,null,{flush:"post"})}function watchSyncEffect($,oe){return doWatch($,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch($,oe,ae){return doWatch($,oe,ae)}function doWatch($,oe,{immediate:ae,deep:ie,flush:le,onTrack:pe,onTrigger:_e}=EMPTY_OBJ$1){var Ce;const $e=getCurrentScope()===((Ce=currentInstance)==null?void 0:Ce.scope)?currentInstance:null;let xe,Ie=!1,Ne=!1;if(isRef($)?(xe=()=>$.value,Ie=isShallow($)):isReactive($)?(xe=()=>$,ie=!0):isArray$c($)?(Ne=!0,Ie=$.some(Cn=>isReactive(Cn)||isShallow(Cn)),xe=()=>$.map(Cn=>{if(isRef(Cn))return Cn.value;if(isReactive(Cn))return traverse(Cn);if(isFunction$5(Cn))return callWithErrorHandling(Cn,$e,2)})):isFunction$5($)?oe?xe=()=>callWithErrorHandling($,$e,2):xe=()=>{if(!($e&&$e.isUnmounted))return Fe&&Fe(),callWithAsyncErrorHandling($,$e,3,[ze])}:xe=NOOP,oe&&ie){const Cn=xe;xe=()=>traverse(Cn())}let Fe,ze=Cn=>{Fe=_n.onStop=()=>{callWithErrorHandling(Cn,$e,4)}},At;if(isInSSRComponentSetup)if(ze=NOOP,oe?ae&&callWithAsyncErrorHandling(oe,$e,3,[xe(),Ne?[]:void 0,ze]):xe(),le==="sync"){const Cn=useSSRContext();At=Cn.__watcherHandles||(Cn.__watcherHandles=[])}else return NOOP;let Lt=Ne?new Array($.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const hn=()=>{if(_n.active)if(oe){const Cn=_n.run();(ie||Ie||(Ne?Cn.some((En,$n)=>hasChanged(En,Lt[$n])):hasChanged(Cn,Lt)))&&(Fe&&Fe(),callWithAsyncErrorHandling(oe,$e,3,[Cn,Lt===INITIAL_WATCHER_VALUE?void 0:Ne&&Lt[0]===INITIAL_WATCHER_VALUE?[]:Lt,ze]),Lt=Cn)}else _n.run()};hn.allowRecurse=!!oe;let vn;le==="sync"?vn=hn:le==="post"?vn=()=>queuePostRenderEffect(hn,$e&&$e.suspense):(hn.pre=!0,$e&&(hn.id=$e.uid),vn=()=>queueJob(hn));const _n=new ReactiveEffect(xe,vn);oe?ae?hn():Lt=_n.run():le==="post"?queuePostRenderEffect(_n.run.bind(_n),$e&&$e.suspense):_n.run();const bn=()=>{_n.stop(),$e&&$e.scope&&remove($e.scope.effects,_n)};return At&&At.push(bn),bn}function instanceWatch($,oe,ae){const ie=this.proxy,le=isString$7($)?$.includes(".")?createPathGetter(ie,$):()=>ie[$]:$.bind(ie,ie);let pe;isFunction$5(oe)?pe=oe:(pe=oe.handler,ae=oe);const _e=currentInstance;setCurrentInstance(this);const Ce=doWatch(le,pe.bind(ie),ae);return _e?setCurrentInstance(_e):unsetCurrentInstance(),Ce}function createPathGetter($,oe){const ae=oe.split(".");return()=>{let ie=$;for(let le=0;le<ae.length&&ie;le++)ie=ie[ae[le]];return ie}}function traverse($,oe){if(!isObject$8($)||$.__v_skip||(oe=oe||new Set,oe.has($)))return $;if(oe.add($),isRef($))traverse($.value,oe);else if(isArray$c($))for(let ae=0;ae<$.length;ae++)traverse($[ae],oe);else if(isSet$3($)||isMap$3($))$.forEach(ae=>{traverse(ae,oe)});else if(isPlainObject$4($))for(const ae in $)traverse($[ae],oe);return $}function withDirectives($,oe){const ae=currentRenderingInstance;if(ae===null)return $;const ie=getExposeProxy(ae)||ae.proxy,le=$.dirs||($.dirs=[]);for(let pe=0;pe<oe.length;pe++){let[_e,Ce,$e,xe=EMPTY_OBJ$1]=oe[pe];_e&&(isFunction$5(_e)&&(_e={mounted:_e,updated:_e}),_e.deep&&traverse(Ce),le.push({dir:_e,instance:ie,value:Ce,oldValue:void 0,arg:$e,modifiers:xe}))}return $}function invokeDirectiveHook($,oe,ae,ie){const le=$.dirs,pe=oe&&oe.dirs;for(let _e=0;_e<le.length;_e++){const Ce=le[_e];pe&&(Ce.oldValue=pe[_e].value);let $e=Ce.dir[ie];$e&&(pauseTracking(),callWithAsyncErrorHandling($e,ae,8,[$.el,Ce,$,oe]),resetTracking())}}function useTransitionState(){const $={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return onMounted(()=>{$.isMounted=!0}),onBeforeUnmount(()=>{$.isUnmounting=!0}),$}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},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup($,{slots:oe}){const ae=getCurrentInstance(),ie=useTransitionState();let le;return()=>{const pe=oe.default&&getTransitionRawChildren(oe.default(),!0);if(!pe||!pe.length)return;let _e=pe[0];if(pe.length>1){for(const Lt of pe)if(Lt.type!==Comment){_e=Lt;break}}const Ce=toRaw($),{mode:$e}=Ce;if(ie.isLeaving)return emptyPlaceholder(_e);const xe=getKeepAliveChild(_e);if(!xe)return emptyPlaceholder(_e);const Ie=resolveTransitionHooks(xe,Ce,ie,ae);setTransitionHooks(xe,Ie);const Ne=ae.subTree,Fe=Ne&&getKeepAliveChild(Ne);let ze=!1;const{getTransitionKey:At}=xe.type;if(At){const Lt=At();le===void 0?le=Lt:Lt!==le&&(le=Lt,ze=!0)}if(Fe&&Fe.type!==Comment&&(!isSameVNodeType(xe,Fe)||ze)){const Lt=resolveTransitionHooks(Fe,Ce,ie,ae);if(setTransitionHooks(Fe,Lt),$e==="out-in")return ie.isLeaving=!0,Lt.afterLeave=()=>{ie.isLeaving=!1,ae.update.active!==!1&&ae.update()},emptyPlaceholder(_e);$e==="in-out"&&xe.type!==Comment&&(Lt.delayLeave=(hn,vn,_n)=>{const bn=getLeavingNodesForType(ie,Fe);bn[String(Fe.key)]=Fe,hn._leaveCb=()=>{vn(),hn._leaveCb=void 0,delete Ie.delayedLeave},Ie.delayedLeave=_n})}return _e}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType($,oe){const{leavingVNodes:ae}=$;let ie=ae.get(oe.type);return ie||(ie=Object.create(null),ae.set(oe.type,ie)),ie}function resolveTransitionHooks($,oe,ae,ie){const{appear:le,mode:pe,persisted:_e=!1,onBeforeEnter:Ce,onEnter:$e,onAfterEnter:xe,onEnterCancelled:Ie,onBeforeLeave:Ne,onLeave:Fe,onAfterLeave:ze,onLeaveCancelled:At,onBeforeAppear:Lt,onAppear:hn,onAfterAppear:vn,onAppearCancelled:_n}=oe,bn=String($.key),Cn=getLeavingNodesForType(ae,$),En=(Tn,xn)=>{Tn&&callWithAsyncErrorHandling(Tn,ie,9,xn)},$n=(Tn,xn)=>{const kn=xn[1];En(Tn,xn),isArray$c(Tn)?Tn.every(An=>An.length<=1)&&kn():Tn.length<=1&&kn()},wn={mode:pe,persisted:_e,beforeEnter(Tn){let xn=Ce;if(!ae.isMounted)if(le)xn=Lt||Ce;else return;Tn._leaveCb&&Tn._leaveCb(!0);const kn=Cn[bn];kn&&isSameVNodeType($,kn)&&kn.el._leaveCb&&kn.el._leaveCb(),En(xn,[Tn])},enter(Tn){let xn=$e,kn=xe,An=Ie;if(!ae.isMounted)if(le)xn=hn||$e,kn=vn||xe,An=_n||Ie;else return;let On=!1;const Nn=Tn._enterCb=Rn=>{On||(On=!0,Rn?En(An,[Tn]):En(kn,[Tn]),wn.delayedLeave&&wn.delayedLeave(),Tn._enterCb=void 0)};xn?$n(xn,[Tn,Nn]):Nn()},leave(Tn,xn){const kn=String($.key);if(Tn._enterCb&&Tn._enterCb(!0),ae.isUnmounting)return xn();En(Ne,[Tn]);let An=!1;const On=Tn._leaveCb=Nn=>{An||(An=!0,xn(),Nn?En(At,[Tn]):En(ze,[Tn]),Tn._leaveCb=void 0,Cn[kn]===$&&delete Cn[kn])};Cn[kn]=$,Fe?$n(Fe,[Tn,On]):On()},clone(Tn){return resolveTransitionHooks(Tn,oe,ae,ie)}};return wn}function emptyPlaceholder($){if(isKeepAlive($))return $=cloneVNode($),$.children=null,$}function getKeepAliveChild($){return isKeepAlive($)?$.children?$.children[0]:void 0:$}function setTransitionHooks($,oe){$.shapeFlag&6&&$.component?setTransitionHooks($.component.subTree,oe):$.shapeFlag&128?($.ssContent.transition=oe.clone($.ssContent),$.ssFallback.transition=oe.clone($.ssFallback)):$.transition=oe}function getTransitionRawChildren($,oe=!1,ae){let ie=[],le=0;for(let pe=0;pe<$.length;pe++){let _e=$[pe];const Ce=ae==null?_e.key:String(ae)+String(_e.key!=null?_e.key:pe);_e.type===Fragment?(_e.patchFlag&128&&le++,ie=ie.concat(getTransitionRawChildren(_e.children,oe,Ce))):(oe||_e.type!==Comment)&&ie.push(Ce!=null?cloneVNode(_e,{key:Ce}):_e)}if(le>1)for(let pe=0;pe<ie.length;pe++)ie[pe].patchFlag=-2;return ie}function defineComponent($,oe){return isFunction$5($)?(()=>extend$2({name:$.name},oe,{setup:$}))():$}const isAsyncWrapper=$=>!!$.type.__asyncLoader;function defineAsyncComponent($){isFunction$5($)&&($={loader:$});const{loader:oe,loadingComponent:ae,errorComponent:ie,delay:le=200,timeout:pe,suspensible:_e=!0,onError:Ce}=$;let $e=null,xe,Ie=0;const Ne=()=>(Ie++,$e=null,Fe()),Fe=()=>{let ze;return $e||(ze=$e=oe().catch(At=>{if(At=At instanceof Error?At:new Error(String(At)),Ce)return new Promise((Lt,hn)=>{Ce(At,()=>Lt(Ne()),()=>hn(At),Ie+1)});throw At}).then(At=>ze!==$e&&$e?$e:(At&&(At.__esModule||At[Symbol.toStringTag]==="Module")&&(At=At.default),xe=At,At)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:Fe,get __asyncResolved(){return xe},setup(){const ze=currentInstance;if(xe)return()=>createInnerComp(xe,ze);const At=_n=>{$e=null,handleError(_n,ze,13,!ie)};if(_e&&ze.suspense||isInSSRComponentSetup)return Fe().then(_n=>()=>createInnerComp(_n,ze)).catch(_n=>(At(_n),()=>ie?createVNode(ie,{error:_n}):null));const Lt=ref(!1),hn=ref(),vn=ref(!!le);return le&&setTimeout(()=>{vn.value=!1},le),pe!=null&&setTimeout(()=>{if(!Lt.value&&!hn.value){const _n=new Error(`Async component timed out after ${pe}ms.`);At(_n),hn.value=_n}},pe),Fe().then(()=>{Lt.value=!0,ze.parent&&isKeepAlive(ze.parent.vnode)&&queueJob(ze.parent.update)}).catch(_n=>{At(_n),hn.value=_n}),()=>{if(Lt.value&&xe)return createInnerComp(xe,ze);if(hn.value&&ie)return createVNode(ie,{error:hn.value});if(ae&&!vn.value)return createVNode(ae)}}})}function createInnerComp($,oe){const{ref:ae,props:ie,children:le,ce:pe}=oe.vnode,_e=createVNode($,ie,le);return _e.ref=ae,_e.ce=pe,delete oe.vnode.ce,_e}const isKeepAlive=$=>$.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup($,{slots:oe}){const ae=getCurrentInstance(),ie=ae.ctx;if(!ie.renderer)return()=>{const _n=oe.default&&oe.default();return _n&&_n.length===1?_n[0]:_n};const le=new Map,pe=new Set;let _e=null;const Ce=ae.suspense,{renderer:{p:$e,m:xe,um:Ie,o:{createElement:Ne}}}=ie,Fe=Ne("div");ie.activate=(_n,bn,Cn,En,$n)=>{const wn=_n.component;xe(_n,bn,Cn,0,Ce),$e(wn.vnode,_n,bn,Cn,wn,Ce,En,_n.slotScopeIds,$n),queuePostRenderEffect(()=>{wn.isDeactivated=!1,wn.a&&invokeArrayFns(wn.a);const Tn=_n.props&&_n.props.onVnodeMounted;Tn&&invokeVNodeHook(Tn,wn.parent,_n)},Ce)},ie.deactivate=_n=>{const bn=_n.component;xe(_n,Fe,null,1,Ce),queuePostRenderEffect(()=>{bn.da&&invokeArrayFns(bn.da);const Cn=_n.props&&_n.props.onVnodeUnmounted;Cn&&invokeVNodeHook(Cn,bn.parent,_n),bn.isDeactivated=!0},Ce)};function ze(_n){resetShapeFlag(_n),Ie(_n,ae,Ce,!0)}function At(_n){le.forEach((bn,Cn)=>{const En=getComponentName(bn.type);En&&(!_n||!_n(En))&&Lt(Cn)})}function Lt(_n){const bn=le.get(_n);!_e||!isSameVNodeType(bn,_e)?ze(bn):_e&&resetShapeFlag(_e),le.delete(_n),pe.delete(_n)}watch(()=>[$.include,$.exclude],([_n,bn])=>{_n&&At(Cn=>matches(_n,Cn)),bn&&At(Cn=>!matches(bn,Cn))},{flush:"post",deep:!0});let hn=null;const vn=()=>{hn!=null&&le.set(hn,getInnerChild(ae.subTree))};return onMounted(vn),onUpdated(vn),onBeforeUnmount(()=>{le.forEach(_n=>{const{subTree:bn,suspense:Cn}=ae,En=getInnerChild(bn);if(_n.type===En.type&&_n.key===En.key){resetShapeFlag(En);const $n=En.component.da;$n&&queuePostRenderEffect($n,Cn);return}ze(_n)})}),()=>{if(hn=null,!oe.default)return null;const _n=oe.default(),bn=_n[0];if(_n.length>1)return _e=null,_n;if(!isVNode$1(bn)||!(bn.shapeFlag&4)&&!(bn.shapeFlag&128))return _e=null,bn;let Cn=getInnerChild(bn);const En=Cn.type,$n=getComponentName(isAsyncWrapper(Cn)?Cn.type.__asyncResolved||{}:En),{include:wn,exclude:Tn,max:xn}=$;if(wn&&(!$n||!matches(wn,$n))||Tn&&$n&&matches(Tn,$n))return _e=Cn,bn;const kn=Cn.key==null?En:Cn.key,An=le.get(kn);return Cn.el&&(Cn=cloneVNode(Cn),bn.shapeFlag&128&&(bn.ssContent=Cn)),hn=kn,An?(Cn.el=An.el,Cn.component=An.component,Cn.transition&&setTransitionHooks(Cn,Cn.transition),Cn.shapeFlag|=512,pe.delete(kn),pe.add(kn)):(pe.add(kn),xn&&pe.size>parseInt(xn,10)&&Lt(pe.values().next().value)),Cn.shapeFlag|=256,_e=Cn,isSuspense(bn.type)?bn:Cn}}},KeepAlive=KeepAliveImpl;function matches($,oe){return isArray$c($)?$.some(ae=>matches(ae,oe)):isString$7($)?$.split(",").includes(oe):isRegExp$5($)?$.test(oe):!1}function onActivated($,oe){registerKeepAliveHook($,"a",oe)}function onDeactivated($,oe){registerKeepAliveHook($,"da",oe)}function registerKeepAliveHook($,oe,ae=currentInstance){const ie=$.__wdc||($.__wdc=()=>{let le=ae;for(;le;){if(le.isDeactivated)return;le=le.parent}return $()});if(injectHook(oe,ie,ae),ae){let le=ae.parent;for(;le&&le.parent;)isKeepAlive(le.parent.vnode)&&injectToKeepAliveRoot(ie,oe,ae,le),le=le.parent}}function injectToKeepAliveRoot($,oe,ae,ie){const le=injectHook(oe,$,ie,!0);onUnmounted(()=>{remove(ie[oe],le)},ae)}function resetShapeFlag($){$.shapeFlag&=-257,$.shapeFlag&=-513}function getInnerChild($){return $.shapeFlag&128?$.ssContent:$}function injectHook($,oe,ae=currentInstance,ie=!1){if(ae){const le=ae[$]||(ae[$]=[]),pe=oe.__weh||(oe.__weh=(..._e)=>{if(ae.isUnmounted)return;pauseTracking(),setCurrentInstance(ae);const Ce=callWithAsyncErrorHandling(oe,ae,$,_e);return unsetCurrentInstance(),resetTracking(),Ce});return ie?le.unshift(pe):le.push(pe),pe}}const createHook=$=>(oe,ae=currentInstance)=>(!isInSSRComponentSetup||$==="sp")&&injectHook($,(...ie)=>oe(...ie),ae),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($,oe=currentInstance){injectHook("ec",$,oe)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent($,oe){return resolveAsset(COMPONENTS,$,!0,oe)||$}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent($){return isString$7($)?resolveAsset(COMPONENTS,$,!1)||$:$||NULL_DYNAMIC_COMPONENT}function resolveDirective($){return resolveAsset(DIRECTIVES,$)}function resolveAsset($,oe,ae=!0,ie=!1){const le=currentRenderingInstance||currentInstance;if(le){const pe=le.type;if($===COMPONENTS){const Ce=getComponentName(pe,!1);if(Ce&&(Ce===oe||Ce===camelize(oe)||Ce===capitalize$2(camelize(oe))))return pe}const _e=resolve(le[$]||pe[$],oe)||resolve(le.appContext[$],oe);return!_e&&ie?pe:_e}}function resolve($,oe){return $&&($[oe]||$[camelize(oe)]||$[capitalize$2(camelize(oe))])}function renderList($,oe,ae,ie){let le;const pe=ae&&ae[ie];if(isArray$c($)||isString$7($)){le=new Array($.length);for(let _e=0,Ce=$.length;_e<Ce;_e++)le[_e]=oe($[_e],_e,void 0,pe&&pe[_e])}else if(typeof $=="number"){le=new Array($);for(let _e=0;_e<$;_e++)le[_e]=oe(_e+1,_e,void 0,pe&&pe[_e])}else if(isObject$8($))if($[Symbol.iterator])le=Array.from($,(_e,Ce)=>oe(_e,Ce,void 0,pe&&pe[Ce]));else{const _e=Object.keys($);le=new Array(_e.length);for(let Ce=0,$e=_e.length;Ce<$e;Ce++){const xe=_e[Ce];le[Ce]=oe($[xe],xe,Ce,pe&&pe[Ce])}}else le=[];return ae&&(ae[ie]=le),le}function createSlots($,oe){for(let ae=0;ae<oe.length;ae++){const ie=oe[ae];if(isArray$c(ie))for(let le=0;le<ie.length;le++)$[ie[le].name]=ie[le].fn;else ie&&($[ie.name]=ie.key?(...le)=>{const pe=ie.fn(...le);return pe&&(pe.key=ie.key),pe}:ie.fn)}return $}function renderSlot($,oe,ae={},ie,le){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&&currentRenderingInstance.parent.isCE)return oe!=="default"&&(ae.name=oe),createVNode("slot",ae,ie&&ie());let pe=$[oe];pe&&pe._c&&(pe._d=!1),openBlock();const _e=pe&&ensureValidVNode(pe(ae)),Ce=createBlock(Fragment,{key:ae.key||_e&&_e.key||`_${oe}`},_e||(ie?ie():[]),_e&&$._===1?64:-2);return!le&&Ce.scopeId&&(Ce.slotScopeIds=[Ce.scopeId+"-s"]),pe&&pe._c&&(pe._d=!0),Ce}function ensureValidVNode($){return $.some(oe=>isVNode$1(oe)?!(oe.type===Comment||oe.type===Fragment&&!ensureValidVNode(oe.children)):!0)?$:null}function toHandlers($,oe){const ae={};for(const ie in $)ae[oe&&/[A-Z]/.test(ie)?`on:${ie}`:toHandlerKey(ie)]=$[ie];return ae}const getPublicInstance=$=>$?isStatefulComponent($)?getExposeProxy($)||$.proxy:getPublicInstance($.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:$=>$,$el:$=>$.vnode.el,$data:$=>$.data,$props:$=>$.props,$attrs:$=>$.attrs,$slots:$=>$.slots,$refs:$=>$.refs,$parent:$=>getPublicInstance($.parent),$root:$=>getPublicInstance($.root),$emit:$=>$.emit,$options:$=>resolveMergedOptions($),$forceUpdate:$=>$.f||($.f=()=>queueJob($.update)),$nextTick:$=>$.n||($.n=nextTick.bind($.proxy)),$watch:$=>instanceWatch.bind($)}),hasSetupBinding=($,oe)=>$!==EMPTY_OBJ$1&&!$.__isScriptSetup&&hasOwn$4($,oe),PublicInstanceProxyHandlers={get({_:$},oe){const{ctx:ae,setupState:ie,data:le,props:pe,accessCache:_e,type:Ce,appContext:$e}=$;let xe;if(oe[0]!=="$"){const ze=_e[oe];if(ze!==void 0)switch(ze){case 1:return ie[oe];case 2:return le[oe];case 4:return ae[oe];case 3:return pe[oe]}else{if(hasSetupBinding(ie,oe))return _e[oe]=1,ie[oe];if(le!==EMPTY_OBJ$1&&hasOwn$4(le,oe))return _e[oe]=2,le[oe];if((xe=$.propsOptions[0])&&hasOwn$4(xe,oe))return _e[oe]=3,pe[oe];if(ae!==EMPTY_OBJ$1&&hasOwn$4(ae,oe))return _e[oe]=4,ae[oe];shouldCacheAccess&&(_e[oe]=0)}}const Ie=publicPropertiesMap[oe];let Ne,Fe;if(Ie)return oe==="$attrs"&&track($,"get",oe),Ie($);if((Ne=Ce.__cssModules)&&(Ne=Ne[oe]))return Ne;if(ae!==EMPTY_OBJ$1&&hasOwn$4(ae,oe))return _e[oe]=4,ae[oe];if(Fe=$e.config.globalProperties,hasOwn$4(Fe,oe))return Fe[oe]},set({_:$},oe,ae){const{data:ie,setupState:le,ctx:pe}=$;return hasSetupBinding(le,oe)?(le[oe]=ae,!0):ie!==EMPTY_OBJ$1&&hasOwn$4(ie,oe)?(ie[oe]=ae,!0):hasOwn$4($.props,oe)||oe[0]==="$"&&oe.slice(1)in $?!1:(pe[oe]=ae,!0)},has({_:{data:$,setupState:oe,accessCache:ae,ctx:ie,appContext:le,propsOptions:pe}},_e){let Ce;return!!ae[_e]||$!==EMPTY_OBJ$1&&hasOwn$4($,_e)||hasSetupBinding(oe,_e)||(Ce=pe[0])&&hasOwn$4(Ce,_e)||hasOwn$4(ie,_e)||hasOwn$4(publicPropertiesMap,_e)||hasOwn$4(le.config.globalProperties,_e)},defineProperty($,oe,ae){return ae.get!=null?$._.accessCache[oe]=0:hasOwn$4(ae,"value")&&this.set($,oe,ae.value,null),Reflect.defineProperty($,oe,ae)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get($,oe){if(oe!==Symbol.unscopables)return PublicInstanceProxyHandlers.get($,oe,$)},has($,oe){return oe[0]!=="_"&&!isGloballyWhitelisted(oe)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose($){}function defineOptions($){}function defineSlots(){return null}function defineModel(){}function withDefaults($,oe){return null}function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function useModel($,oe,ae){const ie=getCurrentInstance();if(ae&&ae.local){const le=ref($[oe]);return watch(()=>$[oe],pe=>le.value=pe),watch(le,pe=>{pe!==$[oe]&&ie.emit(`update:${oe}`,pe)}),le}else return{__v_isRef:!0,get value(){return $[oe]},set value(le){ie.emit(`update:${oe}`,le)}}}function getContext(){const $=getCurrentInstance();return $.setupContext||($.setupContext=createSetupContext($))}function normalizePropsOrEmits($){return isArray$c($)?$.reduce((oe,ae)=>(oe[ae]=null,oe),{}):$}function mergeDefaults($,oe){const ae=normalizePropsOrEmits($);for(const ie in oe){if(ie.startsWith("__skip"))continue;let le=ae[ie];le?isArray$c(le)||isFunction$5(le)?le=ae[ie]={type:le,default:oe[ie]}:le.default=oe[ie]:le===null&&(le=ae[ie]={default:oe[ie]}),le&&oe[`__skip_${ie}`]&&(le.skipFactory=!0)}return ae}function mergeModels($,oe){return!$||!oe?$||oe:isArray$c($)&&isArray$c(oe)?$.concat(oe):extend$2({},normalizePropsOrEmits($),normalizePropsOrEmits(oe))}function createPropsRestProxy($,oe){const ae={};for(const ie in $)oe.includes(ie)||Object.defineProperty(ae,ie,{enumerable:!0,get:()=>$[ie]});return ae}function withAsyncContext($){const oe=getCurrentInstance();let ae=$();return unsetCurrentInstance(),isPromise(ae)&&(ae=ae.catch(ie=>{throw setCurrentInstance(oe),ie})),[ae,()=>setCurrentInstance(oe)]}let shouldCacheAccess=!0;function applyOptions($){const oe=resolveMergedOptions($),ae=$.proxy,ie=$.ctx;shouldCacheAccess=!1,oe.beforeCreate&&callHook$1(oe.beforeCreate,$,"bc");const{data:le,computed:pe,methods:_e,watch:Ce,provide:$e,inject:xe,created:Ie,beforeMount:Ne,mounted:Fe,beforeUpdate:ze,updated:At,activated:Lt,deactivated:hn,beforeDestroy:vn,beforeUnmount:_n,destroyed:bn,unmounted:Cn,render:En,renderTracked:$n,renderTriggered:wn,errorCaptured:Tn,serverPrefetch:xn,expose:kn,inheritAttrs:An,components:On,directives:Nn,filters:Rn}=oe;if(xe&&resolveInjections(xe,ie,null),_e)for(const Mn in _e){const Fn=_e[Mn];isFunction$5(Fn)&&(ie[Mn]=Fn.bind(ae))}if(le){const Mn=le.call(ae,ae);isObject$8(Mn)&&($.data=reactive(Mn))}if(shouldCacheAccess=!0,pe)for(const Mn in pe){const Fn=pe[Mn],Vn=isFunction$5(Fn)?Fn.bind(ae,ae):isFunction$5(Fn.get)?Fn.get.bind(ae,ae):NOOP,jn=!isFunction$5(Fn)&&isFunction$5(Fn.set)?Fn.set.bind(ae):NOOP,Zn=computed({get:Vn,set:jn});Object.defineProperty(ie,Mn,{enumerable:!0,configurable:!0,get:()=>Zn.value,set:Gn=>Zn.value=Gn})}if(Ce)for(const Mn in Ce)createWatcher(Ce[Mn],ie,ae,Mn);if($e){const Mn=isFunction$5($e)?$e.call(ae):$e;Reflect.ownKeys(Mn).forEach(Fn=>{provide(Fn,Mn[Fn])})}Ie&&callHook$1(Ie,$,"c");function Bn(Mn,Fn){isArray$c(Fn)?Fn.forEach(Vn=>Mn(Vn.bind(ae))):Fn&&Mn(Fn.bind(ae))}if(Bn(onBeforeMount,Ne),Bn(onMounted,Fe),Bn(onBeforeUpdate,ze),Bn(onUpdated,At),Bn(onActivated,Lt),Bn(onDeactivated,hn),Bn(onErrorCaptured,Tn),Bn(onRenderTracked,$n),Bn(onRenderTriggered,wn),Bn(onBeforeUnmount,_n),Bn(onUnmounted,Cn),Bn(onServerPrefetch,xn),isArray$c(kn))if(kn.length){const Mn=$.exposed||($.exposed={});kn.forEach(Fn=>{Object.defineProperty(Mn,Fn,{get:()=>ae[Fn],set:Vn=>ae[Fn]=Vn})})}else $.exposed||($.exposed={});En&&$.render===NOOP&&($.render=En),An!=null&&($.inheritAttrs=An),On&&($.components=On),Nn&&($.directives=Nn)}function resolveInjections($,oe,ae=NOOP){isArray$c($)&&($=normalizeInject($));for(const ie in $){const le=$[ie];let pe;isObject$8(le)?"default"in le?pe=inject(le.from||ie,le.default,!0):pe=inject(le.from||ie):pe=inject(le),isRef(pe)?Object.defineProperty(oe,ie,{enumerable:!0,configurable:!0,get:()=>pe.value,set:_e=>pe.value=_e}):oe[ie]=pe}}function callHook$1($,oe,ae){callWithAsyncErrorHandling(isArray$c($)?$.map(ie=>ie.bind(oe.proxy)):$.bind(oe.proxy),oe,ae)}function createWatcher($,oe,ae,ie){const le=ie.includes(".")?createPathGetter(ae,ie):()=>ae[ie];if(isString$7($)){const pe=oe[$];isFunction$5(pe)&&watch(le,pe)}else if(isFunction$5($))watch(le,$.bind(ae));else if(isObject$8($))if(isArray$c($))$.forEach(pe=>createWatcher(pe,oe,ae,ie));else{const pe=isFunction$5($.handler)?$.handler.bind(ae):oe[$.handler];isFunction$5(pe)&&watch(le,pe,$)}}function resolveMergedOptions($){const oe=$.type,{mixins:ae,extends:ie}=oe,{mixins:le,optionsCache:pe,config:{optionMergeStrategies:_e}}=$.appContext,Ce=pe.get(oe);let $e;return Ce?$e=Ce:!le.length&&!ae&&!ie?$e=oe:($e={},le.length&&le.forEach(xe=>mergeOptions$2($e,xe,_e,!0)),mergeOptions$2($e,oe,_e)),isObject$8(oe)&&pe.set(oe,$e),$e}function mergeOptions$2($,oe,ae,ie=!1){const{mixins:le,extends:pe}=oe;pe&&mergeOptions$2($,pe,ae,!0),le&&le.forEach(_e=>mergeOptions$2($,_e,ae,!0));for(const _e in oe)if(!(ie&&_e==="expose")){const Ce=internalOptionMergeStrats[_e]||ae&&ae[_e];$[_e]=Ce?Ce($[_e],oe[_e]):oe[_e]}return $}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($,oe){return oe?$?function(){return extend$2(isFunction$5($)?$.call(this,this):$,isFunction$5(oe)?oe.call(this,this):oe)}:oe:$}function mergeInject($,oe){return mergeObjectOptions(normalizeInject($),normalizeInject(oe))}function normalizeInject($){if(isArray$c($)){const oe={};for(let ae=0;ae<$.length;ae++)oe[$[ae]]=$[ae];return oe}return $}function mergeAsArray($,oe){return $?[...new Set([].concat($,oe))]:oe}function mergeObjectOptions($,oe){return $?extend$2(Object.create(null),$,oe):oe}function mergeEmitsOrPropsOptions($,oe){return $?isArray$c($)&&isArray$c(oe)?[...new Set([...$,...oe])]:extend$2(Object.create(null),normalizePropsOrEmits($),normalizePropsOrEmits(oe??{})):oe}function mergeWatchOptions($,oe){if(!$)return oe;if(!oe)return $;const ae=extend$2(Object.create(null),$);for(const ie in oe)ae[ie]=mergeAsArray($[ie],oe[ie]);return ae}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($,oe){return function(ie,le=null){isFunction$5(ie)||(ie=extend$2({},ie)),le!=null&&!isObject$8(le)&&(le=null);const pe=createAppContext(),_e=new Set;let Ce=!1;const $e=pe.app={_uid:uid$1++,_component:ie,_props:le,_container:null,_context:pe,_instance:null,version:version$3,get config(){return pe.config},set config(xe){},use(xe,...Ie){return _e.has(xe)||(xe&&isFunction$5(xe.install)?(_e.add(xe),xe.install($e,...Ie)):isFunction$5(xe)&&(_e.add(xe),xe($e,...Ie))),$e},mixin(xe){return pe.mixins.includes(xe)||pe.mixins.push(xe),$e},component(xe,Ie){return Ie?(pe.components[xe]=Ie,$e):pe.components[xe]},directive(xe,Ie){return Ie?(pe.directives[xe]=Ie,$e):pe.directives[xe]},mount(xe,Ie,Ne){if(!Ce){const Fe=createVNode(ie,le);return Fe.appContext=pe,Ie&&oe?oe(Fe,xe):$(Fe,xe,Ne),Ce=!0,$e._container=xe,xe.__vue_app__=$e,getExposeProxy(Fe.component)||Fe.component.proxy}},unmount(){Ce&&($(null,$e._container),delete $e._container.__vue_app__)},provide(xe,Ie){return pe.provides[xe]=Ie,$e},runWithContext(xe){currentApp=$e;try{return xe()}finally{currentApp=null}}};return $e}}let currentApp=null;function provide($,oe){if(currentInstance){let ae=currentInstance.provides;const ie=currentInstance.parent&&currentInstance.parent.provides;ie===ae&&(ae=currentInstance.provides=Object.create(ie)),ae[$]=oe}}function inject($,oe,ae=!1){const ie=currentInstance||currentRenderingInstance;if(ie||currentApp){const le=ie?ie.parent==null?ie.vnode.appContext&&ie.vnode.appContext.provides:ie.parent.provides:currentApp._context.provides;if(le&&$ in le)return le[$];if(arguments.length>1)return ae&&isFunction$5(oe)?oe.call(ie&&ie.proxy):oe}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps$1($,oe,ae,ie=!1){const le={},pe={};def(pe,InternalObjectKey,1),$.propsDefaults=Object.create(null),setFullProps($,oe,le,pe);for(const _e in $.propsOptions[0])_e in le||(le[_e]=void 0);ae?$.props=ie?le:shallowReactive(le):$.type.props?$.props=le:$.props=pe,$.attrs=pe}function updateProps$2($,oe,ae,ie){const{props:le,attrs:pe,vnode:{patchFlag:_e}}=$,Ce=toRaw(le),[$e]=$.propsOptions;let xe=!1;if((ie||_e>0)&&!(_e&16)){if(_e&8){const Ie=$.vnode.dynamicProps;for(let Ne=0;Ne<Ie.length;Ne++){let Fe=Ie[Ne];if(isEmitListener($.emitsOptions,Fe))continue;const ze=oe[Fe];if($e)if(hasOwn$4(pe,Fe))ze!==pe[Fe]&&(pe[Fe]=ze,xe=!0);else{const At=camelize(Fe);le[At]=resolvePropValue($e,Ce,At,ze,$,!1)}else ze!==pe[Fe]&&(pe[Fe]=ze,xe=!0)}}}else{setFullProps($,oe,le,pe)&&(xe=!0);let Ie;for(const Ne in Ce)(!oe||!hasOwn$4(oe,Ne)&&((Ie=hyphenate(Ne))===Ne||!hasOwn$4(oe,Ie)))&&($e?ae&&(ae[Ne]!==void 0||ae[Ie]!==void 0)&&(le[Ne]=resolvePropValue($e,Ce,Ne,void 0,$,!0)):delete le[Ne]);if(pe!==Ce)for(const Ne in pe)(!oe||!hasOwn$4(oe,Ne))&&(delete pe[Ne],xe=!0)}xe&&trigger$2($,"set","$attrs")}function setFullProps($,oe,ae,ie){const[le,pe]=$.propsOptions;let _e=!1,Ce;if(oe)for(let $e in oe){if(isReservedProp($e))continue;const xe=oe[$e];let Ie;le&&hasOwn$4(le,Ie=camelize($e))?!pe||!pe.includes(Ie)?ae[Ie]=xe:(Ce||(Ce={}))[Ie]=xe:isEmitListener($.emitsOptions,$e)||(!($e in ie)||xe!==ie[$e])&&(ie[$e]=xe,_e=!0)}if(pe){const $e=toRaw(ae),xe=Ce||EMPTY_OBJ$1;for(let Ie=0;Ie<pe.length;Ie++){const Ne=pe[Ie];ae[Ne]=resolvePropValue(le,$e,Ne,xe[Ne],$,!hasOwn$4(xe,Ne))}}return _e}function resolvePropValue($,oe,ae,ie,le,pe){const _e=$[ae];if(_e!=null){const Ce=hasOwn$4(_e,"default");if(Ce&&ie===void 0){const $e=_e.default;if(_e.type!==Function&&!_e.skipFactory&&isFunction$5($e)){const{propsDefaults:xe}=le;ae in xe?ie=xe[ae]:(setCurrentInstance(le),ie=xe[ae]=$e.call(null,oe),unsetCurrentInstance())}else ie=$e}_e[0]&&(pe&&!Ce?ie=!1:_e[1]&&(ie===""||ie===hyphenate(ae))&&(ie=!0))}return ie}function normalizePropsOptions($,oe,ae=!1){const ie=oe.propsCache,le=ie.get($);if(le)return le;const pe=$.props,_e={},Ce=[];let $e=!1;if(!isFunction$5($)){const Ie=Ne=>{$e=!0;const[Fe,ze]=normalizePropsOptions(Ne,oe,!0);extend$2(_e,Fe),ze&&Ce.push(...ze)};!ae&&oe.mixins.length&&oe.mixins.forEach(Ie),$.extends&&Ie($.extends),$.mixins&&$.mixins.forEach(Ie)}if(!pe&&!$e)return isObject$8($)&&ie.set($,EMPTY_ARR),EMPTY_ARR;if(isArray$c(pe))for(let Ie=0;Ie<pe.length;Ie++){const Ne=camelize(pe[Ie]);validatePropName(Ne)&&(_e[Ne]=EMPTY_OBJ$1)}else if(pe)for(const Ie in pe){const Ne=camelize(Ie);if(validatePropName(Ne)){const Fe=pe[Ie],ze=_e[Ne]=isArray$c(Fe)||isFunction$5(Fe)?{type:Fe}:extend$2({},Fe);if(ze){const At=getTypeIndex(Boolean,ze.type),Lt=getTypeIndex(String,ze.type);ze[0]=At>-1,ze[1]=Lt<0||At<Lt,(At>-1||hasOwn$4(ze,"default"))&&Ce.push(Ne)}}}const xe=[_e,Ce];return isObject$8($)&&ie.set($,xe),xe}function validatePropName($){return $[0]!=="$"}function getType($){const oe=$&&$.toString().match(/^\s*(function|class) (\w+)/);return oe?oe[2]:$===null?"null":""}function isSameType($,oe){return getType($)===getType(oe)}function getTypeIndex($,oe){return isArray$c(oe)?oe.findIndex(ae=>isSameType(ae,$)):isFunction$5(oe)&&isSameType(oe,$)?0:-1}const isInternalKey=$=>$[0]==="_"||$==="$stable",normalizeSlotValue=$=>isArray$c($)?$.map(normalizeVNode):[normalizeVNode($)],normalizeSlot$1=($,oe,ae)=>{if(oe._n)return oe;const ie=withCtx((...le)=>normalizeSlotValue(oe(...le)),ae);return ie._c=!1,ie},normalizeObjectSlots=($,oe,ae)=>{const ie=$._ctx;for(const le in $){if(isInternalKey(le))continue;const pe=$[le];if(isFunction$5(pe))oe[le]=normalizeSlot$1(le,pe,ie);else if(pe!=null){const _e=normalizeSlotValue(pe);oe[le]=()=>_e}}},normalizeVNodeSlots=($,oe)=>{const ae=normalizeSlotValue(oe);$.slots.default=()=>ae},initSlots=($,oe)=>{if($.vnode.shapeFlag&32){const ae=oe._;ae?($.slots=toRaw(oe),def(oe,"_",ae)):normalizeObjectSlots(oe,$.slots={})}else $.slots={},oe&&normalizeVNodeSlots($,oe);def($.slots,InternalObjectKey,1)},updateSlots=($,oe,ae)=>{const{vnode:ie,slots:le}=$;let pe=!0,_e=EMPTY_OBJ$1;if(ie.shapeFlag&32){const Ce=oe._;Ce?ae&&Ce===1?pe=!1:(extend$2(le,oe),!ae&&Ce===1&&delete le._):(pe=!oe.$stable,normalizeObjectSlots(oe,le)),_e=oe}else oe&&(normalizeVNodeSlots($,oe),_e={default:1});if(pe)for(const Ce in le)!isInternalKey(Ce)&&!(Ce in _e)&&delete le[Ce]};function setRef($,oe,ae,ie,le=!1){if(isArray$c($)){$.forEach((Fe,ze)=>setRef(Fe,oe&&(isArray$c(oe)?oe[ze]:oe),ae,ie,le));return}if(isAsyncWrapper(ie)&&!le)return;const pe=ie.shapeFlag&4?getExposeProxy(ie.component)||ie.component.proxy:ie.el,_e=le?null:pe,{i:Ce,r:$e}=$,xe=oe&&oe.r,Ie=Ce.refs===EMPTY_OBJ$1?Ce.refs={}:Ce.refs,Ne=Ce.setupState;if(xe!=null&&xe!==$e&&(isString$7(xe)?(Ie[xe]=null,hasOwn$4(Ne,xe)&&(Ne[xe]=null)):isRef(xe)&&(xe.value=null)),isFunction$5($e))callWithErrorHandling($e,Ce,12,[_e,Ie]);else{const Fe=isString$7($e),ze=isRef($e);if(Fe||ze){const At=()=>{if($.f){const Lt=Fe?hasOwn$4(Ne,$e)?Ne[$e]:Ie[$e]:$e.value;le?isArray$c(Lt)&&remove(Lt,pe):isArray$c(Lt)?Lt.includes(pe)||Lt.push(pe):Fe?(Ie[$e]=[pe],hasOwn$4(Ne,$e)&&(Ne[$e]=Ie[$e])):($e.value=[pe],$.k&&(Ie[$.k]=$e.value))}else Fe?(Ie[$e]=_e,hasOwn$4(Ne,$e)&&(Ne[$e]=_e)):ze&&($e.value=_e,$.k&&(Ie[$.k]=_e))};_e?(At.id=-1,queuePostRenderEffect(At,ae)):At()}}}let hasMismatch=!1;const isSVGContainer=$=>/svg/.test($.namespaceURI)&&$.tagName!=="foreignObject",isComment$1=$=>$.nodeType===8;function createHydrationFunctions($){const{mt:oe,p:ae,o:{patchProp:ie,createText:le,nextSibling:pe,parentNode:_e,remove:Ce,insert:$e,createComment:xe}}=$,Ie=(vn,_n)=>{if(!_n.hasChildNodes()){ae(null,vn,_n),flushPostFlushCbs(),_n._vnode=vn;return}hasMismatch=!1,Ne(_n.firstChild,vn,null,null,null),flushPostFlushCbs(),_n._vnode=vn,hasMismatch&&console.error("Hydration completed but contains mismatches.")},Ne=(vn,_n,bn,Cn,En,$n=!1)=>{const wn=isComment$1(vn)&&vn.data==="[",Tn=()=>Lt(vn,_n,bn,Cn,En,wn),{type:xn,ref:kn,shapeFlag:An,patchFlag:On}=_n;let Nn=vn.nodeType;_n.el=vn,On===-2&&($n=!1,_n.dynamicChildren=null);let Rn=null;switch(xn){case Text$1:Nn!==3?_n.children===""?($e(_n.el=le(""),_e(vn),vn),Rn=vn):Rn=Tn():(vn.data!==_n.children&&(hasMismatch=!0,vn.data=_n.children),Rn=pe(vn));break;case Comment:Nn!==8||wn?Rn=Tn():Rn=pe(vn);break;case Static:if(wn&&(vn=pe(vn),Nn=vn.nodeType),Nn===1||Nn===3){Rn=vn;const zn=!_n.children.length;for(let Bn=0;Bn<_n.staticCount;Bn++)zn&&(_n.children+=Rn.nodeType===1?Rn.outerHTML:Rn.data),Bn===_n.staticCount-1&&(_n.anchor=Rn),Rn=pe(Rn);return wn?pe(Rn):Rn}else Tn();break;case Fragment:wn?Rn=At(vn,_n,bn,Cn,En,$n):Rn=Tn();break;default:if(An&1)Nn!==1||_n.type.toLowerCase()!==vn.tagName.toLowerCase()?Rn=Tn():Rn=Fe(vn,_n,bn,Cn,En,$n);else if(An&6){_n.slotScopeIds=En;const zn=_e(vn);if(oe(_n,zn,null,bn,Cn,isSVGContainer(zn),$n),Rn=wn?hn(vn):pe(vn),Rn&&isComment$1(Rn)&&Rn.data==="teleport end"&&(Rn=pe(Rn)),isAsyncWrapper(_n)){let Bn;wn?(Bn=createVNode(Fragment),Bn.anchor=Rn?Rn.previousSibling:zn.lastChild):Bn=vn.nodeType===3?createTextVNode(""):createVNode("div"),Bn.el=vn,_n.component.subTree=Bn}}else An&64?Nn!==8?Rn=Tn():Rn=_n.type.hydrate(vn,_n,bn,Cn,En,$n,$,ze):An&128&&(Rn=_n.type.hydrate(vn,_n,bn,Cn,isSVGContainer(_e(vn)),En,$n,$,Ne))}return kn!=null&&setRef(kn,null,Cn,_n),Rn},Fe=(vn,_n,bn,Cn,En,$n)=>{$n=$n||!!_n.dynamicChildren;const{type:wn,props:Tn,patchFlag:xn,shapeFlag:kn,dirs:An}=_n,On=wn==="input"&&An||wn==="option";if(On||xn!==-1){if(An&&invokeDirectiveHook(_n,null,bn,"created"),Tn)if(On||!$n||xn&48)for(const Rn in Tn)(On&&Rn.endsWith("value")||isOn(Rn)&&!isReservedProp(Rn))&&ie(vn,Rn,null,Tn[Rn],!1,void 0,bn);else Tn.onClick&&ie(vn,"onClick",null,Tn.onClick,!1,void 0,bn);let Nn;if((Nn=Tn&&Tn.onVnodeBeforeMount)&&invokeVNodeHook(Nn,bn,_n),An&&invokeDirectiveHook(_n,null,bn,"beforeMount"),((Nn=Tn&&Tn.onVnodeMounted)||An)&&queueEffectWithSuspense(()=>{Nn&&invokeVNodeHook(Nn,bn,_n),An&&invokeDirectiveHook(_n,null,bn,"mounted")},Cn),kn&16&&!(Tn&&(Tn.innerHTML||Tn.textContent))){let Rn=ze(vn.firstChild,_n,vn,bn,Cn,En,$n);for(;Rn;){hasMismatch=!0;const zn=Rn;Rn=Rn.nextSibling,Ce(zn)}}else kn&8&&vn.textContent!==_n.children&&(hasMismatch=!0,vn.textContent=_n.children)}return vn.nextSibling},ze=(vn,_n,bn,Cn,En,$n,wn)=>{wn=wn||!!_n.dynamicChildren;const Tn=_n.children,xn=Tn.length;for(let kn=0;kn<xn;kn++){const An=wn?Tn[kn]:Tn[kn]=normalizeVNode(Tn[kn]);if(vn)vn=Ne(vn,An,Cn,En,$n,wn);else{if(An.type===Text$1&&!An.children)continue;hasMismatch=!0,ae(null,An,bn,null,Cn,En,isSVGContainer(bn),$n)}}return vn},At=(vn,_n,bn,Cn,En,$n)=>{const{slotScopeIds:wn}=_n;wn&&(En=En?En.concat(wn):wn);const Tn=_e(vn),xn=ze(pe(vn),_n,Tn,bn,Cn,En,$n);return xn&&isComment$1(xn)&&xn.data==="]"?pe(_n.anchor=xn):(hasMismatch=!0,$e(_n.anchor=xe("]"),Tn,xn),xn)},Lt=(vn,_n,bn,Cn,En,$n)=>{if(hasMismatch=!0,_n.el=null,$n){const xn=hn(vn);for(;;){const kn=pe(vn);if(kn&&kn!==xn)Ce(kn);else break}}const wn=pe(vn),Tn=_e(vn);return Ce(vn),ae(null,_n,Tn,wn,bn,Cn,isSVGContainer(Tn),En),wn},hn=vn=>{let _n=0;for(;vn;)if(vn=pe(vn),vn&&isComment$1(vn)&&(vn.data==="["&&_n++,vn.data==="]")){if(_n===0)return pe(vn);_n--}return vn};return[Ie,Ne]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer($){return baseCreateRenderer($)}function createHydrationRenderer($){return baseCreateRenderer($,createHydrationFunctions)}function baseCreateRenderer($,oe){const ae=getGlobalThis();ae.__VUE__=!0;const{insert:ie,remove:le,patchProp:pe,createElement:_e,createText:Ce,createComment:$e,setText:xe,setElementText:Ie,parentNode:Ne,nextSibling:Fe,setScopeId:ze=NOOP,insertStaticContent:At}=$,Lt=(Un,tr,ur,_r=null,Er=null,sr=null,Pr=!1,Sr=null,kr=!!tr.dynamicChildren)=>{if(Un===tr)return;Un&&!isSameVNodeType(Un,tr)&&(_r=rr(Un),Gn(Un,Er,sr,!0),Un=null),tr.patchFlag===-2&&(kr=!1,tr.dynamicChildren=null);const{type:mr,ref:lr,shapeFlag:hr}=tr;switch(mr){case Text$1:hn(Un,tr,ur,_r);break;case Comment:vn(Un,tr,ur,_r);break;case Static:Un==null&&_n(tr,ur,_r,Pr);break;case Fragment:On(Un,tr,ur,_r,Er,sr,Pr,Sr,kr);break;default:hr&1?En(Un,tr,ur,_r,Er,sr,Pr,Sr,kr):hr&6?Nn(Un,tr,ur,_r,Er,sr,Pr,Sr,kr):(hr&64||hr&128)&&mr.process(Un,tr,ur,_r,Er,sr,Pr,Sr,kr,Yn)}lr!=null&&Er&&setRef(lr,Un&&Un.ref,sr,tr||Un,!tr)},hn=(Un,tr,ur,_r)=>{if(Un==null)ie(tr.el=Ce(tr.children),ur,_r);else{const Er=tr.el=Un.el;tr.children!==Un.children&&xe(Er,tr.children)}},vn=(Un,tr,ur,_r)=>{Un==null?ie(tr.el=$e(tr.children||""),ur,_r):tr.el=Un.el},_n=(Un,tr,ur,_r)=>{[Un.el,Un.anchor]=At(Un.children,tr,ur,_r,Un.el,Un.anchor)},bn=({el:Un,anchor:tr},ur,_r)=>{let Er;for(;Un&&Un!==tr;)Er=Fe(Un),ie(Un,ur,_r),Un=Er;ie(tr,ur,_r)},Cn=({el:Un,anchor:tr})=>{let ur;for(;Un&&Un!==tr;)ur=Fe(Un),le(Un),Un=ur;le(tr)},En=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{Pr=Pr||tr.type==="svg",Un==null?$n(tr,ur,_r,Er,sr,Pr,Sr,kr):xn(Un,tr,Er,sr,Pr,Sr,kr)},$n=(Un,tr,ur,_r,Er,sr,Pr,Sr)=>{let kr,mr;const{type:lr,props:hr,shapeFlag:gr,transition:Or,dirs:Lr}=Un;if(kr=Un.el=_e(Un.type,sr,hr&&hr.is,hr),gr&8?Ie(kr,Un.children):gr&16&&Tn(Un.children,kr,null,_r,Er,sr&&lr!=="foreignObject",Pr,Sr),Lr&&invokeDirectiveHook(Un,null,_r,"created"),wn(kr,Un,Un.scopeId,Pr,_r),hr){for(const Rr in hr)Rr!=="value"&&!isReservedProp(Rr)&&pe(kr,Rr,null,hr[Rr],sr,Un.children,_r,Er,er);"value"in hr&&pe(kr,"value",null,hr.value),(mr=hr.onVnodeBeforeMount)&&invokeVNodeHook(mr,_r,Un)}Lr&&invokeDirectiveHook(Un,null,_r,"beforeMount");const Vr=(!Er||Er&&!Er.pendingBranch)&&Or&&!Or.persisted;Vr&&Or.beforeEnter(kr),ie(kr,tr,ur),((mr=hr&&hr.onVnodeMounted)||Vr||Lr)&&queuePostRenderEffect(()=>{mr&&invokeVNodeHook(mr,_r,Un),Vr&&Or.enter(kr),Lr&&invokeDirectiveHook(Un,null,_r,"mounted")},Er)},wn=(Un,tr,ur,_r,Er)=>{if(ur&&ze(Un,ur),_r)for(let sr=0;sr<_r.length;sr++)ze(Un,_r[sr]);if(Er){let sr=Er.subTree;if(tr===sr){const Pr=Er.vnode;wn(Un,Pr,Pr.scopeId,Pr.slotScopeIds,Er.parent)}}},Tn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr=0)=>{for(let mr=kr;mr<Un.length;mr++){const lr=Un[mr]=Sr?cloneIfMounted(Un[mr]):normalizeVNode(Un[mr]);Lt(null,lr,tr,ur,_r,Er,sr,Pr,Sr)}},xn=(Un,tr,ur,_r,Er,sr,Pr)=>{const Sr=tr.el=Un.el;let{patchFlag:kr,dynamicChildren:mr,dirs:lr}=tr;kr|=Un.patchFlag&16;const hr=Un.props||EMPTY_OBJ$1,gr=tr.props||EMPTY_OBJ$1;let Or;ur&&toggleRecurse(ur,!1),(Or=gr.onVnodeBeforeUpdate)&&invokeVNodeHook(Or,ur,tr,Un),lr&&invokeDirectiveHook(tr,Un,ur,"beforeUpdate"),ur&&toggleRecurse(ur,!0);const Lr=Er&&tr.type!=="foreignObject";if(mr?kn(Un.dynamicChildren,mr,Sr,ur,_r,Lr,sr):Pr||Fn(Un,tr,Sr,null,ur,_r,Lr,sr,!1),kr>0){if(kr&16)An(Sr,tr,hr,gr,ur,_r,Er);else if(kr&2&&hr.class!==gr.class&&pe(Sr,"class",null,gr.class,Er),kr&4&&pe(Sr,"style",hr.style,gr.style,Er),kr&8){const Vr=tr.dynamicProps;for(let Rr=0;Rr<Vr.length;Rr++){const $r=Vr[Rr],Tr=hr[$r],dr=gr[$r];(dr!==Tr||$r==="value")&&pe(Sr,$r,Tr,dr,Er,Un.children,ur,_r,er)}}kr&1&&Un.children!==tr.children&&Ie(Sr,tr.children)}else!Pr&&mr==null&&An(Sr,tr,hr,gr,ur,_r,Er);((Or=gr.onVnodeUpdated)||lr)&&queuePostRenderEffect(()=>{Or&&invokeVNodeHook(Or,ur,tr,Un),lr&&invokeDirectiveHook(tr,Un,ur,"updated")},_r)},kn=(Un,tr,ur,_r,Er,sr,Pr)=>{for(let Sr=0;Sr<tr.length;Sr++){const kr=Un[Sr],mr=tr[Sr],lr=kr.el&&(kr.type===Fragment||!isSameVNodeType(kr,mr)||kr.shapeFlag&70)?Ne(kr.el):ur;Lt(kr,mr,lr,null,_r,Er,sr,Pr,!0)}},An=(Un,tr,ur,_r,Er,sr,Pr)=>{if(ur!==_r){if(ur!==EMPTY_OBJ$1)for(const Sr in ur)!isReservedProp(Sr)&&!(Sr in _r)&&pe(Un,Sr,ur[Sr],null,Pr,tr.children,Er,sr,er);for(const Sr in _r){if(isReservedProp(Sr))continue;const kr=_r[Sr],mr=ur[Sr];kr!==mr&&Sr!=="value"&&pe(Un,Sr,mr,kr,Pr,tr.children,Er,sr,er)}"value"in _r&&pe(Un,"value",ur.value,_r.value)}},On=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{const mr=tr.el=Un?Un.el:Ce(""),lr=tr.anchor=Un?Un.anchor:Ce("");let{patchFlag:hr,dynamicChildren:gr,slotScopeIds:Or}=tr;Or&&(Sr=Sr?Sr.concat(Or):Or),Un==null?(ie(mr,ur,_r),ie(lr,ur,_r),Tn(tr.children,ur,lr,Er,sr,Pr,Sr,kr)):hr>0&&hr&64&&gr&&Un.dynamicChildren?(kn(Un.dynamicChildren,gr,ur,Er,sr,Pr,Sr),(tr.key!=null||Er&&tr===Er.subTree)&&traverseStaticChildren(Un,tr,!0)):Fn(Un,tr,ur,lr,Er,sr,Pr,Sr,kr)},Nn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{tr.slotScopeIds=Sr,Un==null?tr.shapeFlag&512?Er.ctx.activate(tr,ur,_r,Pr,kr):Rn(tr,ur,_r,Er,sr,Pr,kr):zn(Un,tr,kr)},Rn=(Un,tr,ur,_r,Er,sr,Pr)=>{const Sr=Un.component=createComponentInstance(Un,_r,Er);if(isKeepAlive(Un)&&(Sr.ctx.renderer=Yn),setupComponent(Sr),Sr.asyncDep){if(Er&&Er.registerDep(Sr,Bn),!Un.el){const kr=Sr.subTree=createVNode(Comment);vn(null,kr,tr,ur)}return}Bn(Sr,Un,tr,ur,Er,sr,Pr)},zn=(Un,tr,ur)=>{const _r=tr.component=Un.component;if(shouldUpdateComponent(Un,tr,ur))if(_r.asyncDep&&!_r.asyncResolved){Mn(_r,tr,ur);return}else _r.next=tr,invalidateJob(_r.update),_r.update();else tr.el=Un.el,_r.vnode=tr},Bn=(Un,tr,ur,_r,Er,sr,Pr)=>{const Sr=()=>{if(Un.isMounted){let{next:lr,bu:hr,u:gr,parent:Or,vnode:Lr}=Un,Vr=lr,Rr;toggleRecurse(Un,!1),lr?(lr.el=Lr.el,Mn(Un,lr,Pr)):lr=Lr,hr&&invokeArrayFns(hr),(Rr=lr.props&&lr.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Rr,Or,lr,Lr),toggleRecurse(Un,!0);const $r=renderComponentRoot(Un),Tr=Un.subTree;Un.subTree=$r,Lt(Tr,$r,Ne(Tr.el),rr(Tr),Un,Er,sr),lr.el=$r.el,Vr===null&&updateHOCHostEl(Un,$r.el),gr&&queuePostRenderEffect(gr,Er),(Rr=lr.props&&lr.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Rr,Or,lr,Lr),Er)}else{let lr;const{el:hr,props:gr}=tr,{bm:Or,m:Lr,parent:Vr}=Un,Rr=isAsyncWrapper(tr);if(toggleRecurse(Un,!1),Or&&invokeArrayFns(Or),!Rr&&(lr=gr&&gr.onVnodeBeforeMount)&&invokeVNodeHook(lr,Vr,tr),toggleRecurse(Un,!0),hr&&pr){const $r=()=>{Un.subTree=renderComponentRoot(Un),pr(hr,Un.subTree,Un,Er,null)};Rr?tr.type.__asyncLoader().then(()=>!Un.isUnmounted&&$r()):$r()}else{const $r=Un.subTree=renderComponentRoot(Un);Lt(null,$r,ur,_r,Un,Er,sr),tr.el=$r.el}if(Lr&&queuePostRenderEffect(Lr,Er),!Rr&&(lr=gr&&gr.onVnodeMounted)){const $r=tr;queuePostRenderEffect(()=>invokeVNodeHook(lr,Vr,$r),Er)}(tr.shapeFlag&256||Vr&&isAsyncWrapper(Vr.vnode)&&Vr.vnode.shapeFlag&256)&&Un.a&&queuePostRenderEffect(Un.a,Er),Un.isMounted=!0,tr=ur=_r=null}},kr=Un.effect=new ReactiveEffect(Sr,()=>queueJob(mr),Un.scope),mr=Un.update=()=>kr.run();mr.id=Un.uid,toggleRecurse(Un,!0),mr()},Mn=(Un,tr,ur)=>{tr.component=Un;const _r=Un.vnode.props;Un.vnode=tr,Un.next=null,updateProps$2(Un,tr.props,_r,ur),updateSlots(Un,tr.children,ur),pauseTracking(),flushPreFlushCbs(),resetTracking()},Fn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr=!1)=>{const mr=Un&&Un.children,lr=Un?Un.shapeFlag:0,hr=tr.children,{patchFlag:gr,shapeFlag:Or}=tr;if(gr>0){if(gr&128){jn(mr,hr,ur,_r,Er,sr,Pr,Sr,kr);return}else if(gr&256){Vn(mr,hr,ur,_r,Er,sr,Pr,Sr,kr);return}}Or&8?(lr&16&&er(mr,Er,sr),hr!==mr&&Ie(ur,hr)):lr&16?Or&16?jn(mr,hr,ur,_r,Er,sr,Pr,Sr,kr):er(mr,Er,sr,!0):(lr&8&&Ie(ur,""),Or&16&&Tn(hr,ur,_r,Er,sr,Pr,Sr,kr))},Vn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{Un=Un||EMPTY_ARR,tr=tr||EMPTY_ARR;const mr=Un.length,lr=tr.length,hr=Math.min(mr,lr);let gr;for(gr=0;gr<hr;gr++){const Or=tr[gr]=kr?cloneIfMounted(tr[gr]):normalizeVNode(tr[gr]);Lt(Un[gr],Or,ur,null,Er,sr,Pr,Sr,kr)}mr>lr?er(Un,Er,sr,!0,!1,hr):Tn(tr,ur,_r,Er,sr,Pr,Sr,kr,hr)},jn=(Un,tr,ur,_r,Er,sr,Pr,Sr,kr)=>{let mr=0;const lr=tr.length;let hr=Un.length-1,gr=lr-1;for(;mr<=hr&&mr<=gr;){const Or=Un[mr],Lr=tr[mr]=kr?cloneIfMounted(tr[mr]):normalizeVNode(tr[mr]);if(isSameVNodeType(Or,Lr))Lt(Or,Lr,ur,null,Er,sr,Pr,Sr,kr);else break;mr++}for(;mr<=hr&&mr<=gr;){const Or=Un[hr],Lr=tr[gr]=kr?cloneIfMounted(tr[gr]):normalizeVNode(tr[gr]);if(isSameVNodeType(Or,Lr))Lt(Or,Lr,ur,null,Er,sr,Pr,Sr,kr);else break;hr--,gr--}if(mr>hr){if(mr<=gr){const Or=gr+1,Lr=Or<lr?tr[Or].el:_r;for(;mr<=gr;)Lt(null,tr[mr]=kr?cloneIfMounted(tr[mr]):normalizeVNode(tr[mr]),ur,Lr,Er,sr,Pr,Sr,kr),mr++}}else if(mr>gr)for(;mr<=hr;)Gn(Un[mr],Er,sr,!0),mr++;else{const Or=mr,Lr=mr,Vr=new Map;for(mr=Lr;mr<=gr;mr++){const Ir=tr[mr]=kr?cloneIfMounted(tr[mr]):normalizeVNode(tr[mr]);Ir.key!=null&&Vr.set(Ir.key,mr)}let Rr,$r=0;const Tr=gr-Lr+1;let dr=!1,Jn=0;const ir=new Array(Tr);for(mr=0;mr<Tr;mr++)ir[mr]=0;for(mr=Or;mr<=hr;mr++){const Ir=Un[mr];if($r>=Tr){Gn(Ir,Er,sr,!0);continue}let Hr;if(Ir.key!=null)Hr=Vr.get(Ir.key);else for(Rr=Lr;Rr<=gr;Rr++)if(ir[Rr-Lr]===0&&isSameVNodeType(Ir,tr[Rr])){Hr=Rr;break}Hr===void 0?Gn(Ir,Er,sr,!0):(ir[Hr-Lr]=mr+1,Hr>=Jn?Jn=Hr:dr=!0,Lt(Ir,tr[Hr],ur,null,Er,sr,Pr,Sr,kr),$r++)}const xr=dr?getSequence(ir):EMPTY_ARR;for(Rr=xr.length-1,mr=Tr-1;mr>=0;mr--){const Ir=Lr+mr,Hr=tr[Ir],Cr=Ir+1<lr?tr[Ir+1].el:_r;ir[mr]===0?Lt(null,Hr,ur,Cr,Er,sr,Pr,Sr,kr):dr&&(Rr<0||mr!==xr[Rr]?Zn(Hr,ur,Cr,2):Rr--)}}},Zn=(Un,tr,ur,_r,Er=null)=>{const{el:sr,type:Pr,transition:Sr,children:kr,shapeFlag:mr}=Un;if(mr&6){Zn(Un.component.subTree,tr,ur,_r);return}if(mr&128){Un.suspense.move(tr,ur,_r);return}if(mr&64){Pr.move(Un,tr,ur,Yn);return}if(Pr===Fragment){ie(sr,tr,ur);for(let hr=0;hr<kr.length;hr++)Zn(kr[hr],tr,ur,_r);ie(Un.anchor,tr,ur);return}if(Pr===Static){bn(Un,tr,ur);return}if(_r!==2&&mr&1&&Sr)if(_r===0)Sr.beforeEnter(sr),ie(sr,tr,ur),queuePostRenderEffect(()=>Sr.enter(sr),Er);else{const{leave:hr,delayLeave:gr,afterLeave:Or}=Sr,Lr=()=>ie(sr,tr,ur),Vr=()=>{hr(sr,()=>{Lr(),Or&&Or()})};gr?gr(sr,Lr,Vr):Vr()}else ie(sr,tr,ur)},Gn=(Un,tr,ur,_r=!1,Er=!1)=>{const{type:sr,props:Pr,ref:Sr,children:kr,dynamicChildren:mr,shapeFlag:lr,patchFlag:hr,dirs:gr}=Un;if(Sr!=null&&setRef(Sr,null,ur,Un,!0),lr&256){tr.ctx.deactivate(Un);return}const Or=lr&1&&gr,Lr=!isAsyncWrapper(Un);let Vr;if(Lr&&(Vr=Pr&&Pr.onVnodeBeforeUnmount)&&invokeVNodeHook(Vr,tr,Un),lr&6)nr(Un.component,ur,_r);else{if(lr&128){Un.suspense.unmount(ur,_r);return}Or&&invokeDirectiveHook(Un,null,tr,"beforeUnmount"),lr&64?Un.type.remove(Un,tr,ur,Er,Yn,_r):mr&&(sr!==Fragment||hr>0&&hr&64)?er(mr,tr,ur,!1,!0):(sr===Fragment&&hr&384||!Er&&lr&16)&&er(kr,tr,ur),_r&&Xn(Un)}(Lr&&(Vr=Pr&&Pr.onVnodeUnmounted)||Or)&&queuePostRenderEffect(()=>{Vr&&invokeVNodeHook(Vr,tr,Un),Or&&invokeDirectiveHook(Un,null,tr,"unmounted")},ur)},Xn=Un=>{const{type:tr,el:ur,anchor:_r,transition:Er}=Un;if(tr===Fragment){cr(ur,_r);return}if(tr===Static){Cn(Un);return}const sr=()=>{le(ur),Er&&!Er.persisted&&Er.afterLeave&&Er.afterLeave()};if(Un.shapeFlag&1&&Er&&!Er.persisted){const{leave:Pr,delayLeave:Sr}=Er,kr=()=>Pr(ur,sr);Sr?Sr(Un.el,sr,kr):kr()}else sr()},cr=(Un,tr)=>{let ur;for(;Un!==tr;)ur=Fe(Un),le(Un),Un=ur;le(tr)},nr=(Un,tr,ur)=>{const{bum:_r,scope:Er,update:sr,subTree:Pr,um:Sr}=Un;_r&&invokeArrayFns(_r),Er.stop(),sr&&(sr.active=!1,Gn(Pr,Un,tr,ur)),Sr&&queuePostRenderEffect(Sr,tr),queuePostRenderEffect(()=>{Un.isUnmounted=!0},tr),tr&&tr.pendingBranch&&!tr.isUnmounted&&Un.asyncDep&&!Un.asyncResolved&&Un.suspenseId===tr.pendingId&&(tr.deps--,tr.deps===0&&tr.resolve())},er=(Un,tr,ur,_r=!1,Er=!1,sr=0)=>{for(let Pr=sr;Pr<Un.length;Pr++)Gn(Un[Pr],tr,ur,_r,Er)},rr=Un=>Un.shapeFlag&6?rr(Un.component.subTree):Un.shapeFlag&128?Un.suspense.next():Fe(Un.anchor||Un.el),qn=(Un,tr,ur)=>{Un==null?tr._vnode&&Gn(tr._vnode,null,null,!0):Lt(tr._vnode||null,Un,tr,null,null,null,ur),flushPreFlushCbs(),flushPostFlushCbs(),tr._vnode=Un},Yn={p:Lt,um:Gn,m:Zn,r:Xn,mt:Rn,mc:Tn,pc:Fn,pbc:kn,n:rr,o:$};let ar,pr;return oe&&([ar,pr]=oe(Yn)),{render:qn,hydrate:ar,createApp:createAppAPI(qn,ar)}}function toggleRecurse({effect:$,update:oe},ae){$.allowRecurse=oe.allowRecurse=ae}function traverseStaticChildren($,oe,ae=!1){const ie=$.children,le=oe.children;if(isArray$c(ie)&&isArray$c(le))for(let pe=0;pe<ie.length;pe++){const _e=ie[pe];let Ce=le[pe];Ce.shapeFlag&1&&!Ce.dynamicChildren&&((Ce.patchFlag<=0||Ce.patchFlag===32)&&(Ce=le[pe]=cloneIfMounted(le[pe]),Ce.el=_e.el),ae||traverseStaticChildren(_e,Ce)),Ce.type===Text$1&&(Ce.el=_e.el)}}function getSequence($){const oe=$.slice(),ae=[0];let ie,le,pe,_e,Ce;const $e=$.length;for(ie=0;ie<$e;ie++){const xe=$[ie];if(xe!==0){if(le=ae[ae.length-1],$[le]<xe){oe[ie]=le,ae.push(ie);continue}for(pe=0,_e=ae.length-1;pe<_e;)Ce=pe+_e>>1,$[ae[Ce]]<xe?pe=Ce+1:_e=Ce;xe<$[ae[pe]]&&(pe>0&&(oe[ie]=ae[pe-1]),ae[pe]=ie)}}for(pe=ae.length,_e=ae[pe-1];pe-- >0;)ae[pe]=_e,_e=oe[_e];return ae}const isTeleport=$=>$.__isTeleport,isTeleportDisabled=$=>$&&($.disabled||$.disabled===""),isTargetSVG=$=>typeof SVGElement<"u"&&$ instanceof SVGElement,resolveTarget=($,oe)=>{const ae=$&&$.to;return isString$7(ae)?oe?oe(ae):null:ae},TeleportImpl={__isTeleport:!0,process($,oe,ae,ie,le,pe,_e,Ce,$e,xe){const{mc:Ie,pc:Ne,pbc:Fe,o:{insert:ze,querySelector:At,createText:Lt,createComment:hn}}=xe,vn=isTeleportDisabled(oe.props);let{shapeFlag:_n,children:bn,dynamicChildren:Cn}=oe;if($==null){const En=oe.el=Lt(""),$n=oe.anchor=Lt("");ze(En,ae,ie),ze($n,ae,ie);const wn=oe.target=resolveTarget(oe.props,At),Tn=oe.targetAnchor=Lt("");wn&&(ze(Tn,wn),_e=_e||isTargetSVG(wn));const xn=(kn,An)=>{_n&16&&Ie(bn,kn,An,le,pe,_e,Ce,$e)};vn?xn(ae,$n):wn&&xn(wn,Tn)}else{oe.el=$.el;const En=oe.anchor=$.anchor,$n=oe.target=$.target,wn=oe.targetAnchor=$.targetAnchor,Tn=isTeleportDisabled($.props),xn=Tn?ae:$n,kn=Tn?En:wn;if(_e=_e||isTargetSVG($n),Cn?(Fe($.dynamicChildren,Cn,xn,le,pe,_e,Ce),traverseStaticChildren($,oe,!0)):$e||Ne($,oe,xn,kn,le,pe,_e,Ce,!1),vn)Tn||moveTeleport(oe,ae,En,xe,1);else if((oe.props&&oe.props.to)!==($.props&&$.props.to)){const An=oe.target=resolveTarget(oe.props,At);An&&moveTeleport(oe,An,null,xe,0)}else Tn&&moveTeleport(oe,$n,wn,xe,1)}updateCssVars(oe)},remove($,oe,ae,ie,{um:le,o:{remove:pe}},_e){const{shapeFlag:Ce,children:$e,anchor:xe,targetAnchor:Ie,target:Ne,props:Fe}=$;if(Ne&&pe(Ie),(_e||!isTeleportDisabled(Fe))&&(pe(xe),Ce&16))for(let ze=0;ze<$e.length;ze++){const At=$e[ze];le(At,oe,ae,!0,!!At.dynamicChildren)}},move:moveTeleport,hydrate:hydrateTeleport};function moveTeleport($,oe,ae,{o:{insert:ie},m:le},pe=2){pe===0&&ie($.targetAnchor,oe,ae);const{el:_e,anchor:Ce,shapeFlag:$e,children:xe,props:Ie}=$,Ne=pe===2;if(Ne&&ie(_e,oe,ae),(!Ne||isTeleportDisabled(Ie))&&$e&16)for(let Fe=0;Fe<xe.length;Fe++)le(xe[Fe],oe,ae,2);Ne&&ie(Ce,oe,ae)}function hydrateTeleport($,oe,ae,ie,le,pe,{o:{nextSibling:_e,parentNode:Ce,querySelector:$e}},xe){const Ie=oe.target=resolveTarget(oe.props,$e);if(Ie){const Ne=Ie._lpa||Ie.firstChild;if(oe.shapeFlag&16)if(isTeleportDisabled(oe.props))oe.anchor=xe(_e($),oe,Ce($),ae,ie,le,pe),oe.targetAnchor=Ne;else{oe.anchor=_e($);let Fe=Ne;for(;Fe;)if(Fe=_e(Fe),Fe&&Fe.nodeType===8&&Fe.data==="teleport anchor"){oe.targetAnchor=Fe,Ie._lpa=oe.targetAnchor&&_e(oe.targetAnchor);break}xe(Ne,oe,Ie,ae,ie,le,pe)}updateCssVars(oe)}return oe.anchor&&_e(oe.anchor)}const Teleport=TeleportImpl;function updateCssVars($){const oe=$.ctx;if(oe&&oe.ut){let ae=$.children[0].el;for(;ae!==$.targetAnchor;)ae.nodeType===1&&ae.setAttribute("data-v-owner",oe.uid),ae=ae.nextSibling;oe.ut()}}const Fragment=Symbol.for("v-fgt"),Text$1=Symbol.for("v-txt"),Comment=Symbol.for("v-cmt"),Static=Symbol.for("v-stc"),blockStack=[];let currentBlock=null;function openBlock($=!1){blockStack.push(currentBlock=$?null:[])}function closeBlock(){blockStack.pop(),currentBlock=blockStack[blockStack.length-1]||null}let isBlockTreeEnabled=1;function setBlockTracking($){isBlockTreeEnabled+=$}function setupBlock($){return $.dynamicChildren=isBlockTreeEnabled>0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&&currentBlock&&currentBlock.push($),$}function createElementBlock($,oe,ae,ie,le,pe){return setupBlock(createBaseVNode($,oe,ae,ie,le,pe,!0))}function createBlock($,oe,ae,ie,le){return setupBlock(createVNode($,oe,ae,ie,le,!0))}function isVNode$1($){return $?$.__v_isVNode===!0:!1}function isSameVNodeType($,oe){return $.type===oe.type&&$.key===oe.key}function transformVNodeArgs($){}const InternalObjectKey="__vInternal",normalizeKey=({key:$})=>$??null,normalizeRef=({ref:$,ref_key:oe,ref_for:ae})=>(typeof $=="number"&&($=""+$),$!=null?isString$7($)||isRef($)||isFunction$5($)?{i:currentRenderingInstance,r:$,k:oe,f:!!ae}:$:null);function createBaseVNode($,oe=null,ae=null,ie=0,le=null,pe=$===Fragment?0:1,_e=!1,Ce=!1){const $e={__v_isVNode:!0,__v_skip:!0,type:$,props:oe,key:oe&&normalizeKey(oe),ref:oe&&normalizeRef(oe),scopeId:currentScopeId,slotScopeIds:null,children:ae,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:pe,patchFlag:ie,dynamicProps:le,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return Ce?(normalizeChildren($e,ae),pe&128&&$.normalize($e)):ae&&($e.shapeFlag|=isString$7(ae)?8:16),isBlockTreeEnabled>0&&!_e&&currentBlock&&($e.patchFlag>0||pe&6)&&$e.patchFlag!==32&&currentBlock.push($e),$e}const createVNode=_createVNode;function _createVNode($,oe=null,ae=null,ie=0,le=null,pe=!1){if((!$||$===NULL_DYNAMIC_COMPONENT)&&($=Comment),isVNode$1($)){const Ce=cloneVNode($,oe,!0);return ae&&normalizeChildren(Ce,ae),isBlockTreeEnabled>0&&!pe&&currentBlock&&(Ce.shapeFlag&6?currentBlock[currentBlock.indexOf($)]=Ce:currentBlock.push(Ce)),Ce.patchFlag|=-2,Ce}if(isClassComponent($)&&($=$.__vccOpts),oe){oe=guardReactiveProps(oe);let{class:Ce,style:$e}=oe;Ce&&!isString$7(Ce)&&(oe.class=normalizeClass(Ce)),isObject$8($e)&&(isProxy($e)&&!isArray$c($e)&&($e=extend$2({},$e)),oe.style=normalizeStyle$1($e))}const _e=isString$7($)?1:isSuspense($)?128:isTeleport($)?64:isObject$8($)?4:isFunction$5($)?2:0;return createBaseVNode($,oe,ae,ie,le,_e,pe,!0)}function guardReactiveProps($){return $?isProxy($)||InternalObjectKey in $?extend$2({},$):$:null}function cloneVNode($,oe,ae=!1){const{props:ie,ref:le,patchFlag:pe,children:_e}=$,Ce=oe?mergeProps(ie||{},oe):ie;return{__v_isVNode:!0,__v_skip:!0,type:$.type,props:Ce,key:Ce&&normalizeKey(Ce),ref:oe&&oe.ref?ae&&le?isArray$c(le)?le.concat(normalizeRef(oe)):[le,normalizeRef(oe)]:normalizeRef(oe):le,scopeId:$.scopeId,slotScopeIds:$.slotScopeIds,children:_e,target:$.target,targetAnchor:$.targetAnchor,staticCount:$.staticCount,shapeFlag:$.shapeFlag,patchFlag:oe&&$.type!==Fragment?pe===-1?16:pe|16:pe,dynamicProps:$.dynamicProps,dynamicChildren:$.dynamicChildren,appContext:$.appContext,dirs:$.dirs,transition:$.transition,component:$.component,suspense:$.suspense,ssContent:$.ssContent&&cloneVNode($.ssContent),ssFallback:$.ssFallback&&cloneVNode($.ssFallback),el:$.el,anchor:$.anchor,ctx:$.ctx,ce:$.ce}}function createTextVNode($=" ",oe=0){return createVNode(Text$1,null,$,oe)}function createStaticVNode($,oe){const ae=createVNode(Static,null,$);return ae.staticCount=oe,ae}function createCommentVNode($="",oe=!1){return oe?(openBlock(),createBlock(Comment,null,$)):createVNode(Comment,null,$)}function normalizeVNode($){return $==null||typeof $=="boolean"?createVNode(Comment):isArray$c($)?createVNode(Fragment,null,$.slice()):typeof $=="object"?cloneIfMounted($):createVNode(Text$1,null,String($))}function cloneIfMounted($){return $.el===null&&$.patchFlag!==-1||$.memo?$:cloneVNode($)}function normalizeChildren($,oe){let ae=0;const{shapeFlag:ie}=$;if(oe==null)oe=null;else if(isArray$c(oe))ae=16;else if(typeof oe=="object")if(ie&65){const le=oe.default;le&&(le._c&&(le._d=!1),normalizeChildren($,le()),le._c&&(le._d=!0));return}else{ae=32;const le=oe._;!le&&!(InternalObjectKey in oe)?oe._ctx=currentRenderingInstance:le===3&&currentRenderingInstance&&(currentRenderingInstance.slots._===1?oe._=1:(oe._=2,$.patchFlag|=1024))}else isFunction$5(oe)?(oe={default:oe,_ctx:currentRenderingInstance},ae=32):(oe=String(oe),ie&64?(ae=16,oe=[createTextVNode(oe)]):ae=8);$.children=oe,$.shapeFlag|=ae}function mergeProps(...$){const oe={};for(let ae=0;ae<$.length;ae++){const ie=$[ae];for(const le in ie)if(le==="class")oe.class!==ie.class&&(oe.class=normalizeClass([oe.class,ie.class]));else if(le==="style")oe.style=normalizeStyle$1([oe.style,ie.style]);else if(isOn(le)){const pe=oe[le],_e=ie[le];_e&&pe!==_e&&!(isArray$c(pe)&&pe.includes(_e))&&(oe[le]=pe?[].concat(pe,_e):_e)}else le!==""&&(oe[le]=ie[le])}return oe}function invokeVNodeHook($,oe,ae,ie=null){callWithAsyncErrorHandling($,oe,7,[ae,ie])}const emptyAppContext=createAppContext();let uid$2=0;function createComponentInstance($,oe,ae){const ie=$.type,le=(oe?oe.appContext:$.appContext)||emptyAppContext,pe={uid:uid$2++,vnode:$,type:ie,parent:oe,appContext:le,root:null,next:null,subTree:null,effect:null,update:null,scope:new EffectScope(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:oe?oe.provides:Object.create(le.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:normalizePropsOptions(ie,le),emitsOptions:normalizeEmitsOptions(ie,le),emit:null,emitted:null,propsDefaults:EMPTY_OBJ$1,inheritAttrs:ie.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,attrsProxy:null,slotsProxy:null,suspense:ae,suspenseId:ae?ae.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 pe.ctx={_:pe},pe.root=oe?oe.root:pe,pe.emit=emit.bind(null,pe),$.ce&&$.ce(pe),pe}let currentInstance=null;const getCurrentInstance=()=>currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push($=>currentInstance=$),internalSetCurrentInstance=$=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(oe=>oe($)):globalCurrentInstanceSetters[0]($)};const setCurrentInstance=$=>{internalSetCurrentInstance($),$.scope.on()},unsetCurrentInstance=()=>{currentInstance&&currentInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent($){return $.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent($,oe=!1){isInSSRComponentSetup=oe;const{props:ae,children:ie}=$.vnode,le=isStatefulComponent($);initProps$1($,ae,le,oe),initSlots($,ie);const pe=le?setupStatefulComponent($,oe):void 0;return isInSSRComponentSetup=!1,pe}function setupStatefulComponent($,oe){const ae=$.type;$.accessCache=Object.create(null),$.proxy=markRaw(new Proxy($.ctx,PublicInstanceProxyHandlers));const{setup:ie}=ae;if(ie){const le=$.setupContext=ie.length>1?createSetupContext($):null;setCurrentInstance($),pauseTracking();const pe=callWithErrorHandling(ie,$,0,[$.props,le]);if(resetTracking(),unsetCurrentInstance(),isPromise(pe)){if(pe.then(unsetCurrentInstance,unsetCurrentInstance),oe)return pe.then(_e=>{handleSetupResult($,_e,oe)}).catch(_e=>{handleError(_e,$,0)});$.asyncDep=pe}else handleSetupResult($,pe,oe)}else finishComponentSetup($,oe)}function handleSetupResult($,oe,ae){isFunction$5(oe)?$.type.__ssrInlineRender?$.ssrRender=oe:$.render=oe:isObject$8(oe)&&($.setupState=proxyRefs(oe)),finishComponentSetup($,ae)}let compile$1,installWithProxy;function registerRuntimeCompiler($){compile$1=$,installWithProxy=oe=>{oe.render._rc&&(oe.withProxy=new Proxy(oe.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup($,oe,ae){const ie=$.type;if(!$.render){if(!oe&&compile$1&&!ie.render){const le=ie.template||resolveMergedOptions($).template;if(le){const{isCustomElement:pe,compilerOptions:_e}=$.appContext.config,{delimiters:Ce,compilerOptions:$e}=ie,xe=extend$2(extend$2({isCustomElement:pe,delimiters:Ce},_e),$e);ie.render=compile$1(le,xe)}}$.render=ie.render||NOOP,installWithProxy&&installWithProxy($)}setCurrentInstance($),pauseTracking(),applyOptions($),resetTracking(),unsetCurrentInstance()}function getAttrsProxy($){return $.attrsProxy||($.attrsProxy=new Proxy($.attrs,{get(oe,ae){return track($,"get","$attrs"),oe[ae]}}))}function createSetupContext($){const oe=ae=>{$.exposed=ae||{}};return{get attrs(){return getAttrsProxy($)},slots:$.slots,emit:$.emit,expose:oe}}function getExposeProxy($){if($.exposed)return $.exposeProxy||($.exposeProxy=new Proxy(proxyRefs(markRaw($.exposed)),{get(oe,ae){if(ae in oe)return oe[ae];if(ae in publicPropertiesMap)return publicPropertiesMap[ae]($)},has(oe,ae){return ae in oe||ae in publicPropertiesMap}}))}function getComponentName($,oe=!0){return isFunction$5($)?$.displayName||$.name:$.name||oe&&$.__name}function isClassComponent($){return isFunction$5($)&&"__vccOpts"in $}const computed=($,oe)=>computed$1($,oe,isInSSRComponentSetup);function h$3($,oe,ae){const ie=arguments.length;return ie===2?isObject$8(oe)&&!isArray$c(oe)?isVNode$1(oe)?createVNode($,null,[oe]):createVNode($,oe):createVNode($,null,oe):(ie>3?ae=Array.prototype.slice.call(arguments,2):ie===3&&isVNode$1(ae)&&(ae=[ae]),createVNode($,oe,ae))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo($,oe,ae,ie){const le=ae[ie];if(le&&isMemoSame(le,$))return le;const pe=oe();return pe.memo=$.slice(),ae[ie]=pe}function isMemoSame($,oe){const ae=$.memo;if(ae.length!=oe.length)return!1;for(let ie=0;ie<ae.length;ie++)if(hasChanged(ae[ie],oe[ie]))return!1;return isBlockTreeEnabled>0&&currentBlock&&currentBlock.push($),!0}const version$3="3.3.1",_ssrUtils={createComponentInstance,setupComponent,renderComponentRoot,setCurrentRenderingInstance,isVNode:isVNode$1,normalizeVNode},ssrUtils=_ssrUtils,resolveFilter=null,compatUtils=null,svgNS="http://www.w3.org/2000/svg",doc$1=typeof document<"u"?document:null,templateContainer=doc$1&&doc$1.createElement("template"),nodeOps={insert:($,oe,ae)=>{oe.insertBefore($,ae||null)},remove:$=>{const oe=$.parentNode;oe&&oe.removeChild($)},createElement:($,oe,ae,ie)=>{const le=oe?doc$1.createElementNS(svgNS,$):doc$1.createElement($,ae?{is:ae}:void 0);return $==="select"&&ie&&ie.multiple!=null&&le.setAttribute("multiple",ie.multiple),le},createText:$=>doc$1.createTextNode($),createComment:$=>doc$1.createComment($),setText:($,oe)=>{$.nodeValue=oe},setElementText:($,oe)=>{$.textContent=oe},parentNode:$=>$.parentNode,nextSibling:$=>$.nextSibling,querySelector:$=>doc$1.querySelector($),setScopeId($,oe){$.setAttribute(oe,"")},insertStaticContent($,oe,ae,ie,le,pe){const _e=ae?ae.previousSibling:oe.lastChild;if(le&&(le===pe||le.nextSibling))for(;oe.insertBefore(le.cloneNode(!0),ae),!(le===pe||!(le=le.nextSibling)););else{templateContainer.innerHTML=ie?`<svg>${$}</svg>`:$;const Ce=templateContainer.content;if(ie){const $e=Ce.firstChild;for(;$e.firstChild;)Ce.appendChild($e.firstChild);Ce.removeChild($e)}oe.insertBefore(Ce,ae)}return[_e?_e.nextSibling:oe.firstChild,ae?ae.previousSibling:oe.lastChild]}};function patchClass($,oe,ae){const ie=$._vtc;ie&&(oe=(oe?[oe,...ie]:[...ie]).join(" ")),oe==null?$.removeAttribute("class"):ae?$.setAttribute("class",oe):$.className=oe}function patchStyle($,oe,ae){const ie=$.style,le=isString$7(ae);if(ae&&!le){if(oe&&!isString$7(oe))for(const pe in oe)ae[pe]==null&&setStyle(ie,pe,"");for(const pe in ae)setStyle(ie,pe,ae[pe])}else{const pe=ie.display;le?oe!==ae&&(ie.cssText=ae):oe&&$.removeAttribute("style"),"_vod"in $&&(ie.display=pe)}}const importantRE=/\s*!important$/;function setStyle($,oe,ae){if(isArray$c(ae))ae.forEach(ie=>setStyle($,oe,ie));else if(ae==null&&(ae=""),oe.startsWith("--"))$.setProperty(oe,ae);else{const ie=autoPrefix($,oe);importantRE.test(ae)?$.setProperty(hyphenate(ie),ae.replace(importantRE,""),"important"):$[ie]=ae}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix($,oe){const ae=prefixCache[oe];if(ae)return ae;let ie=camelize(oe);if(ie!=="filter"&&ie in $)return prefixCache[oe]=ie;ie=capitalize$2(ie);for(let le=0;le<prefixes.length;le++){const pe=prefixes[le]+ie;if(pe in $)return prefixCache[oe]=pe}return oe}const xlinkNS="http://www.w3.org/1999/xlink";function patchAttr($,oe,ae,ie,le){if(ie&&oe.startsWith("xlink:"))ae==null?$.removeAttributeNS(xlinkNS,oe.slice(6,oe.length)):$.setAttributeNS(xlinkNS,oe,ae);else{const pe=isSpecialBooleanAttr(oe);ae==null||pe&&!includeBooleanAttr(ae)?$.removeAttribute(oe):$.setAttribute(oe,pe?"":ae)}}function patchDOMProp($,oe,ae,ie,le,pe,_e){if(oe==="innerHTML"||oe==="textContent"){ie&&_e(ie,le,pe),$[oe]=ae??"";return}const Ce=$.tagName;if(oe==="value"&&Ce!=="PROGRESS"&&!Ce.includes("-")){$._value=ae;const xe=Ce==="OPTION"?$.getAttribute("value"):$.value,Ie=ae??"";xe!==Ie&&($.value=Ie),ae==null&&$.removeAttribute(oe);return}let $e=!1;if(ae===""||ae==null){const xe=typeof $[oe];xe==="boolean"?ae=includeBooleanAttr(ae):ae==null&&xe==="string"?(ae="",$e=!0):xe==="number"&&(ae=0,$e=!0)}try{$[oe]=ae}catch{}$e&&$.removeAttribute(oe)}function addEventListener$1($,oe,ae,ie){$.addEventListener(oe,ae,ie)}function removeEventListener$1($,oe,ae,ie){$.removeEventListener(oe,ae,ie)}function patchEvent($,oe,ae,ie,le=null){const pe=$._vei||($._vei={}),_e=pe[oe];if(ie&&_e)_e.value=ie;else{const[Ce,$e]=parseName(oe);if(ie){const xe=pe[oe]=createInvoker(ie,le);addEventListener$1($,Ce,xe,$e)}else _e&&(removeEventListener$1($,Ce,_e,$e),pe[oe]=void 0)}}const optionsModifierRE=/(?:Once|Passive|Capture)$/;function parseName($){let oe;if(optionsModifierRE.test($)){oe={};let ie;for(;ie=$.match(optionsModifierRE);)$=$.slice(0,$.length-ie[0].length),oe[ie[0].toLowerCase()]=!0}return[$[2]===":"?$.slice(3):hyphenate($.slice(2)),oe]}let cachedNow=0;const p$3=Promise.resolve(),getNow=()=>cachedNow||(p$3.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker($,oe){const ae=ie=>{if(!ie._vts)ie._vts=Date.now();else if(ie._vts<=ae.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(ie,ae.value),oe,5,[ie])};return ae.value=$,ae.attached=getNow(),ae}function patchStopImmediatePropagation($,oe){if(isArray$c(oe)){const ae=$.stopImmediatePropagation;return $.stopImmediatePropagation=()=>{ae.call($),$._stopped=!0},oe.map(ie=>le=>!le._stopped&&ie&&ie(le))}else return oe}const nativeOnRE=/^on[a-z]/,patchProp=($,oe,ae,ie,le=!1,pe,_e,Ce,$e)=>{oe==="class"?patchClass($,ie,le):oe==="style"?patchStyle($,ae,ie):isOn(oe)?isModelListener(oe)||patchEvent($,oe,ae,ie,_e):(oe[0]==="."?(oe=oe.slice(1),!0):oe[0]==="^"?(oe=oe.slice(1),!1):shouldSetAsProp($,oe,ie,le))?patchDOMProp($,oe,ie,pe,_e,Ce,$e):(oe==="true-value"?$._trueValue=ie:oe==="false-value"&&($._falseValue=ie),patchAttr($,oe,ie,le))};function shouldSetAsProp($,oe,ae,ie){return ie?!!(oe==="innerHTML"||oe==="textContent"||oe in $&&nativeOnRE.test(oe)&&isFunction$5(ae)):oe==="spellcheck"||oe==="draggable"||oe==="translate"||oe==="form"||oe==="list"&&$.tagName==="INPUT"||oe==="type"&&$.tagName==="TEXTAREA"||nativeOnRE.test(oe)&&isString$7(ae)?!1:oe in $}function defineCustomElement($,oe){const ae=defineComponent($);class ie extends VueElement{constructor(pe){super(ae,pe,oe)}}return ie.def=ae,ie}const defineSSRCustomElement=$=>defineCustomElement($,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(oe,ae={},ie){super(),this._def=oe,this._props=ae,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&ie?ie(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,nextTick(()=>{this._connected||(render$4(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let ie=0;ie<this.attributes.length;ie++)this._setAttr(this.attributes[ie].name);new MutationObserver(ie=>{for(const le of ie)this._setAttr(le.attributeName)}).observe(this,{attributes:!0});const oe=(ie,le=!1)=>{const{props:pe,styles:_e}=ie;let Ce;if(pe&&!isArray$c(pe))for(const $e in pe){const xe=pe[$e];(xe===Number||xe&&xe.type===Number)&&($e in this._props&&(this._props[$e]=toNumber$1(this._props[$e])),(Ce||(Ce=Object.create(null)))[camelize($e)]=!0)}this._numberProps=Ce,le&&this._resolveProps(ie),this._applyStyles(_e),this._update()},ae=this._def.__asyncLoader;ae?ae().then(ie=>oe(ie,!0)):oe(this._def)}_resolveProps(oe){const{props:ae}=oe,ie=isArray$c(ae)?ae:Object.keys(ae||{});for(const le of Object.keys(this))le[0]!=="_"&&ie.includes(le)&&this._setProp(le,this[le],!0,!1);for(const le of ie.map(camelize))Object.defineProperty(this,le,{get(){return this._getProp(le)},set(pe){this._setProp(le,pe)}})}_setAttr(oe){let ae=this.getAttribute(oe);const ie=camelize(oe);this._numberProps&&this._numberProps[ie]&&(ae=toNumber$1(ae)),this._setProp(ie,ae,!1)}_getProp(oe){return this._props[oe]}_setProp(oe,ae,ie=!0,le=!0){ae!==this._props[oe]&&(this._props[oe]=ae,le&&this._instance&&this._update(),ie&&(ae===!0?this.setAttribute(hyphenate(oe),""):typeof ae=="string"||typeof ae=="number"?this.setAttribute(hyphenate(oe),ae+""):ae||this.removeAttribute(hyphenate(oe))))}_update(){render$4(this._createVNode(),this.shadowRoot)}_createVNode(){const oe=createVNode(this._def,extend$2({},this._props));return this._instance||(oe.ce=ae=>{this._instance=ae,ae.isCE=!0;const ie=(pe,_e)=>{this.dispatchEvent(new CustomEvent(pe,{detail:_e}))};ae.emit=(pe,..._e)=>{ie(pe,_e),hyphenate(pe)!==pe&&ie(hyphenate(pe),_e)};let le=this;for(;le=le&&(le.parentNode||le.host);)if(le instanceof VueElement){ae.parent=le._instance,ae.provides=le._instance.provides;break}}),oe}_applyStyles(oe){oe&&oe.forEach(ae=>{const ie=document.createElement("style");ie.textContent=ae,this.shadowRoot.appendChild(ie)})}}function useCssModule($="$style"){{const oe=getCurrentInstance();if(!oe)return EMPTY_OBJ$1;const ae=oe.type.__cssModules;if(!ae)return EMPTY_OBJ$1;const ie=ae[$];return ie||EMPTY_OBJ$1}}function useCssVars($){const oe=getCurrentInstance();if(!oe)return;const ae=oe.ut=(le=$(oe.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${oe.uid}"]`)).forEach(pe=>setVarsOnNode(pe,le))},ie=()=>{const le=$(oe.proxy);setVarsOnVNode(oe.subTree,le),ae(le)};watchPostEffect(ie),onMounted(()=>{const le=new MutationObserver(ie);le.observe(oe.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>le.disconnect())})}function setVarsOnVNode($,oe){if($.shapeFlag&128){const ae=$.suspense;$=ae.activeBranch,ae.pendingBranch&&!ae.isHydrating&&ae.effects.push(()=>{setVarsOnVNode(ae.activeBranch,oe)})}for(;$.component;)$=$.component.subTree;if($.shapeFlag&1&&$.el)setVarsOnNode($.el,oe);else if($.type===Fragment)$.children.forEach(ae=>setVarsOnVNode(ae,oe));else if($.type===Static){let{el:ae,anchor:ie}=$;for(;ae&&(setVarsOnNode(ae,oe),ae!==ie);)ae=ae.nextSibling}}function setVarsOnNode($,oe){if($.nodeType===1){const ae=$.style;for(const ie in oe)ae.setProperty(`--${ie}`,oe[ie])}}const TRANSITION="transition",ANIMATION="animation",Transition=($,{slots:oe})=>h$3(BaseTransition,resolveTransitionProps($),oe);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=($,oe=[])=>{isArray$c($)?$.forEach(ae=>ae(...oe)):$&&$(...oe)},hasExplicitCallback=$=>$?isArray$c($)?$.some(oe=>oe.length>1):$.length>1:!1;function resolveTransitionProps($){const oe={};for(const On in $)On in DOMTransitionPropsValidators||(oe[On]=$[On]);if($.css===!1)return oe;const{name:ae="v",type:ie,duration:le,enterFromClass:pe=`${ae}-enter-from`,enterActiveClass:_e=`${ae}-enter-active`,enterToClass:Ce=`${ae}-enter-to`,appearFromClass:$e=pe,appearActiveClass:xe=_e,appearToClass:Ie=Ce,leaveFromClass:Ne=`${ae}-leave-from`,leaveActiveClass:Fe=`${ae}-leave-active`,leaveToClass:ze=`${ae}-leave-to`}=$,At=normalizeDuration(le),Lt=At&&At[0],hn=At&&At[1],{onBeforeEnter:vn,onEnter:_n,onEnterCancelled:bn,onLeave:Cn,onLeaveCancelled:En,onBeforeAppear:$n=vn,onAppear:wn=_n,onAppearCancelled:Tn=bn}=oe,xn=(On,Nn,Rn)=>{removeTransitionClass(On,Nn?Ie:Ce),removeTransitionClass(On,Nn?xe:_e),Rn&&Rn()},kn=(On,Nn)=>{On._isLeaving=!1,removeTransitionClass(On,Ne),removeTransitionClass(On,ze),removeTransitionClass(On,Fe),Nn&&Nn()},An=On=>(Nn,Rn)=>{const zn=On?wn:_n,Bn=()=>xn(Nn,On,Rn);callHook(zn,[Nn,Bn]),nextFrame(()=>{removeTransitionClass(Nn,On?$e:pe),addTransitionClass(Nn,On?Ie:Ce),hasExplicitCallback(zn)||whenTransitionEnds(Nn,ie,Lt,Bn)})};return extend$2(oe,{onBeforeEnter(On){callHook(vn,[On]),addTransitionClass(On,pe),addTransitionClass(On,_e)},onBeforeAppear(On){callHook($n,[On]),addTransitionClass(On,$e),addTransitionClass(On,xe)},onEnter:An(!1),onAppear:An(!0),onLeave(On,Nn){On._isLeaving=!0;const Rn=()=>kn(On,Nn);addTransitionClass(On,Ne),forceReflow(),addTransitionClass(On,Fe),nextFrame(()=>{On._isLeaving&&(removeTransitionClass(On,Ne),addTransitionClass(On,ze),hasExplicitCallback(Cn)||whenTransitionEnds(On,ie,hn,Rn))}),callHook(Cn,[On,Rn])},onEnterCancelled(On){xn(On,!1),callHook(bn,[On])},onAppearCancelled(On){xn(On,!0),callHook(Tn,[On])},onLeaveCancelled(On){kn(On),callHook(En,[On])}})}function normalizeDuration($){if($==null)return null;if(isObject$8($))return[NumberOf($.enter),NumberOf($.leave)];{const oe=NumberOf($);return[oe,oe]}}function NumberOf($){return toNumber$1($)}function addTransitionClass($,oe){oe.split(/\s+/).forEach(ae=>ae&&$.classList.add(ae)),($._vtc||($._vtc=new Set)).add(oe)}function removeTransitionClass($,oe){oe.split(/\s+/).forEach(ie=>ie&&$.classList.remove(ie));const{_vtc:ae}=$;ae&&(ae.delete(oe),ae.size||($._vtc=void 0))}function nextFrame($){requestAnimationFrame(()=>{requestAnimationFrame($)})}let endId=0;function whenTransitionEnds($,oe,ae,ie){const le=$._endId=++endId,pe=()=>{le===$._endId&&ie()};if(ae)return setTimeout(pe,ae);const{type:_e,timeout:Ce,propCount:$e}=getTransitionInfo($,oe);if(!_e)return ie();const xe=_e+"end";let Ie=0;const Ne=()=>{$.removeEventListener(xe,Fe),pe()},Fe=ze=>{ze.target===$&&++Ie>=$e&&Ne()};setTimeout(()=>{Ie<$e&&Ne()},Ce+1),$.addEventListener(xe,Fe)}function getTransitionInfo($,oe){const ae=window.getComputedStyle($),ie=At=>(ae[At]||"").split(", "),le=ie(`${TRANSITION}Delay`),pe=ie(`${TRANSITION}Duration`),_e=getTimeout(le,pe),Ce=ie(`${ANIMATION}Delay`),$e=ie(`${ANIMATION}Duration`),xe=getTimeout(Ce,$e);let Ie=null,Ne=0,Fe=0;oe===TRANSITION?_e>0&&(Ie=TRANSITION,Ne=_e,Fe=pe.length):oe===ANIMATION?xe>0&&(Ie=ANIMATION,Ne=xe,Fe=$e.length):(Ne=Math.max(_e,xe),Ie=Ne>0?_e>xe?TRANSITION:ANIMATION:null,Fe=Ie?Ie===TRANSITION?pe.length:$e.length:0);const ze=Ie===TRANSITION&&/\b(transform|all)(,|$)/.test(ie(`${TRANSITION}Property`).toString());return{type:Ie,timeout:Ne,propCount:Fe,hasTransform:ze}}function getTimeout($,oe){for(;$.length<oe.length;)$=$.concat($);return Math.max(...oe.map((ae,ie)=>toMs(ae)+toMs($[ie])))}function toMs($){return Number($.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup($,{slots:oe}){const ae=getCurrentInstance(),ie=useTransitionState();let le,pe;return onUpdated(()=>{if(!le.length)return;const _e=$.moveClass||`${$.name||"v"}-move`;if(!hasCSSTransform(le[0].el,ae.vnode.el,_e))return;le.forEach(callPendingCbs),le.forEach(recordPosition);const Ce=le.filter(applyTranslation);forceReflow(),Ce.forEach($e=>{const xe=$e.el,Ie=xe.style;addTransitionClass(xe,_e),Ie.transform=Ie.webkitTransform=Ie.transitionDuration="";const Ne=xe._moveCb=Fe=>{Fe&&Fe.target!==xe||(!Fe||/transform$/.test(Fe.propertyName))&&(xe.removeEventListener("transitionend",Ne),xe._moveCb=null,removeTransitionClass(xe,_e))};xe.addEventListener("transitionend",Ne)})}),()=>{const _e=toRaw($),Ce=resolveTransitionProps(_e);let $e=_e.tag||Fragment;le=pe,pe=oe.default?getTransitionRawChildren(oe.default()):[];for(let xe=0;xe<pe.length;xe++){const Ie=pe[xe];Ie.key!=null&&setTransitionHooks(Ie,resolveTransitionHooks(Ie,Ce,ie,ae))}if(le)for(let xe=0;xe<le.length;xe++){const Ie=le[xe];setTransitionHooks(Ie,resolveTransitionHooks(Ie,Ce,ie,ae)),positionMap.set(Ie,Ie.el.getBoundingClientRect())}return createVNode($e,null,pe)}}},removeMode=$=>delete $.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs($){const oe=$.el;oe._moveCb&&oe._moveCb(),oe._enterCb&&oe._enterCb()}function recordPosition($){newPositionMap.set($,$.el.getBoundingClientRect())}function applyTranslation($){const oe=positionMap.get($),ae=newPositionMap.get($),ie=oe.left-ae.left,le=oe.top-ae.top;if(ie||le){const pe=$.el.style;return pe.transform=pe.webkitTransform=`translate(${ie}px,${le}px)`,pe.transitionDuration="0s",$}}function hasCSSTransform($,oe,ae){const ie=$.cloneNode();$._vtc&&$._vtc.forEach(_e=>{_e.split(/\s+/).forEach(Ce=>Ce&&ie.classList.remove(Ce))}),ae.split(/\s+/).forEach(_e=>_e&&ie.classList.add(_e)),ie.style.display="none";const le=oe.nodeType===1?oe:oe.parentNode;le.appendChild(ie);const{hasTransform:pe}=getTransitionInfo(ie);return le.removeChild(ie),pe}const getModelAssigner=$=>{const oe=$.props["onUpdate:modelValue"]||!1;return isArray$c(oe)?ae=>invokeArrayFns(oe,ae):oe};function onCompositionStart($){$.target.composing=!0}function onCompositionEnd($){const oe=$.target;oe.composing&&(oe.composing=!1,oe.dispatchEvent(new Event("input")))}const vModelText={created($,{modifiers:{lazy:oe,trim:ae,number:ie}},le){$._assign=getModelAssigner(le);const pe=ie||le.props&&le.props.type==="number";addEventListener$1($,oe?"change":"input",_e=>{if(_e.target.composing)return;let Ce=$.value;ae&&(Ce=Ce.trim()),pe&&(Ce=looseToNumber(Ce)),$._assign(Ce)}),ae&&addEventListener$1($,"change",()=>{$.value=$.value.trim()}),oe||(addEventListener$1($,"compositionstart",onCompositionStart),addEventListener$1($,"compositionend",onCompositionEnd),addEventListener$1($,"change",onCompositionEnd))},mounted($,{value:oe}){$.value=oe??""},beforeUpdate($,{value:oe,modifiers:{lazy:ae,trim:ie,number:le}},pe){if($._assign=getModelAssigner(pe),$.composing||document.activeElement===$&&$.type!=="range"&&(ae||ie&&$.value.trim()===oe||(le||$.type==="number")&&looseToNumber($.value)===oe))return;const _e=oe??"";$.value!==_e&&($.value=_e)}},vModelCheckbox={deep:!0,created($,oe,ae){$._assign=getModelAssigner(ae),addEventListener$1($,"change",()=>{const ie=$._modelValue,le=getValue$2($),pe=$.checked,_e=$._assign;if(isArray$c(ie)){const Ce=looseIndexOf(ie,le),$e=Ce!==-1;if(pe&&!$e)_e(ie.concat(le));else if(!pe&&$e){const xe=[...ie];xe.splice(Ce,1),_e(xe)}}else if(isSet$3(ie)){const Ce=new Set(ie);pe?Ce.add(le):Ce.delete(le),_e(Ce)}else _e(getCheckboxValue($,pe))})},mounted:setChecked,beforeUpdate($,oe,ae){$._assign=getModelAssigner(ae),setChecked($,oe,ae)}};function setChecked($,{value:oe,oldValue:ae},ie){$._modelValue=oe,isArray$c(oe)?$.checked=looseIndexOf(oe,ie.props.value)>-1:isSet$3(oe)?$.checked=oe.has(ie.props.value):oe!==ae&&($.checked=looseEqual(oe,getCheckboxValue($,!0)))}const vModelRadio={created($,{value:oe},ae){$.checked=looseEqual(oe,ae.props.value),$._assign=getModelAssigner(ae),addEventListener$1($,"change",()=>{$._assign(getValue$2($))})},beforeUpdate($,{value:oe,oldValue:ae},ie){$._assign=getModelAssigner(ie),oe!==ae&&($.checked=looseEqual(oe,ie.props.value))}},vModelSelect={deep:!0,created($,{value:oe,modifiers:{number:ae}},ie){const le=isSet$3(oe);addEventListener$1($,"change",()=>{const pe=Array.prototype.filter.call($.options,_e=>_e.selected).map(_e=>ae?looseToNumber(getValue$2(_e)):getValue$2(_e));$._assign($.multiple?le?new Set(pe):pe:pe[0])}),$._assign=getModelAssigner(ie)},mounted($,{value:oe}){setSelected($,oe)},beforeUpdate($,oe,ae){$._assign=getModelAssigner(ae)},updated($,{value:oe}){setSelected($,oe)}};function setSelected($,oe){const ae=$.multiple;if(!(ae&&!isArray$c(oe)&&!isSet$3(oe))){for(let ie=0,le=$.options.length;ie<le;ie++){const pe=$.options[ie],_e=getValue$2(pe);if(ae)isArray$c(oe)?pe.selected=looseIndexOf(oe,_e)>-1:pe.selected=oe.has(_e);else if(looseEqual(getValue$2(pe),oe)){$.selectedIndex!==ie&&($.selectedIndex=ie);return}}!ae&&$.selectedIndex!==-1&&($.selectedIndex=-1)}}function getValue$2($){return"_value"in $?$._value:$.value}function getCheckboxValue($,oe){const ae=oe?"_trueValue":"_falseValue";return ae in $?$[ae]:oe}const vModelDynamic={created($,oe,ae){callModelHook($,oe,ae,null,"created")},mounted($,oe,ae){callModelHook($,oe,ae,null,"mounted")},beforeUpdate($,oe,ae,ie){callModelHook($,oe,ae,ie,"beforeUpdate")},updated($,oe,ae,ie){callModelHook($,oe,ae,ie,"updated")}};function resolveDynamicModel($,oe){switch($){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(oe){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook($,oe,ae,ie,le){const _e=resolveDynamicModel($.tagName,ae.props&&ae.props.type)[le];_e&&_e($,oe,ae,ie)}function initVModelForSSR(){vModelText.getSSRProps=({value:$})=>({value:$}),vModelRadio.getSSRProps=({value:$},oe)=>{if(oe.props&&looseEqual(oe.props.value,$))return{checked:!0}},vModelCheckbox.getSSRProps=({value:$},oe)=>{if(isArray$c($)){if(oe.props&&looseIndexOf($,oe.props.value)>-1)return{checked:!0}}else if(isSet$3($)){if(oe.props&&$.has(oe.props.value))return{checked:!0}}else if($)return{checked:!0}},vModelDynamic.getSSRProps=($,oe)=>{if(typeof oe.type!="string")return;const ae=resolveDynamicModel(oe.type.toUpperCase(),oe.props&&oe.props.type);if(ae.getSSRProps)return ae.getSSRProps($,oe)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:$=>$.stopPropagation(),prevent:$=>$.preventDefault(),self:$=>$.target!==$.currentTarget,ctrl:$=>!$.ctrlKey,shift:$=>!$.shiftKey,alt:$=>!$.altKey,meta:$=>!$.metaKey,left:$=>"button"in $&&$.button!==0,middle:$=>"button"in $&&$.button!==1,right:$=>"button"in $&&$.button!==2,exact:($,oe)=>systemModifiers.some(ae=>$[`${ae}Key`]&&!oe.includes(ae))},withModifiers=($,oe)=>(ae,...ie)=>{for(let le=0;le<oe.length;le++){const pe=modifierGuards[oe[le]];if(pe&&pe(ae,oe))return}return $(ae,...ie)},keyNames={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},withKeys=($,oe)=>ae=>{if(!("key"in ae))return;const ie=hyphenate(ae.key);if(oe.some(le=>le===ie||keyNames[le]===ie))return $(ae)},vShow={beforeMount($,{value:oe},{transition:ae}){$._vod=$.style.display==="none"?"":$.style.display,ae&&oe?ae.beforeEnter($):setDisplay($,oe)},mounted($,{value:oe},{transition:ae}){ae&&oe&&ae.enter($)},updated($,{value:oe,oldValue:ae},{transition:ie}){!oe!=!ae&&(ie?oe?(ie.beforeEnter($),setDisplay($,!0),ie.enter($)):ie.leave($,()=>{setDisplay($,!1)}):setDisplay($,oe))},beforeUnmount($,{value:oe}){setDisplay($,oe)}};function setDisplay($,oe){$.style.display=oe?$._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:$})=>{if(!$)return{style:{display:"none"}}}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$4=(...$)=>{ensureRenderer().render(...$)},hydrate=(...$)=>{ensureHydrationRenderer().hydrate(...$)},createApp=(...$)=>{const oe=ensureRenderer().createApp(...$),{mount:ae}=oe;return oe.mount=ie=>{const le=normalizeContainer(ie);if(!le)return;const pe=oe._component;!isFunction$5(pe)&&!pe.render&&!pe.template&&(pe.template=le.innerHTML),le.innerHTML="";const _e=ae(le,!1,le instanceof SVGElement);return le instanceof Element&&(le.removeAttribute("v-cloak"),le.setAttribute("data-v-app","")),_e},oe},createSSRApp=(...$)=>{const oe=ensureHydrationRenderer().createApp(...$),{mount:ae}=oe;return oe.mount=ie=>{const le=normalizeContainer(ie);if(le)return ae(le,!0,le instanceof SVGElement)},oe};function normalizeContainer($){return isString$7($)?document.querySelector($):$}let ssrDirectiveInitialized=!1;const initDirectivesForSSR=()=>{ssrDirectiveInitialized||(ssrDirectiveInitialized=!0,initVModelForSSR(),initVShowForSSR())},compile=()=>{},vue_runtime_esmBundler=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition,BaseTransitionPropsValidators,Comment,EffectScope,Fragment,KeepAlive,ReactiveEffect,Static,Suspense,Teleport,Text:Text$1,Transition,TransitionGroup,VueElement,assertNumber,callWithAsyncErrorHandling,callWithErrorHandling,camelize,capitalize:capitalize$2,cloneVNode,compatUtils,compile,computed,createApp,createBlock,createCommentVNode,createElementBlock,createElementVNode:createBaseVNode,createHydrationRenderer,createPropsRestProxy,createRenderer,createSSRApp,createSlots,createStaticVNode,createTextVNode,createVNode,customRef,defineAsyncComponent,defineComponent,defineCustomElement,defineEmits,defineExpose,defineModel,defineOptions,defineProps,defineSSRCustomElement,defineSlots,get devtools(){return devtools},effect,effectScope,getCurrentInstance,getCurrentScope,getTransitionRawChildren,guardReactiveProps,h:h$3,handleError,hasInjectionContext,hydrate,initCustomFormatter,initDirectivesForSSR,inject,isMemoSame,isProxy,isReactive,isReadonly,isRef,isRuntimeOnly,isShallow,isVNode:isVNode$1,markRaw,mergeDefaults,mergeModels,mergeProps,nextTick,normalizeClass,normalizeProps,normalizeStyle:normalizeStyle$1,onActivated,onBeforeMount,onBeforeUnmount,onBeforeUpdate,onDeactivated,onErrorCaptured,onMounted,onRenderTracked,onRenderTriggered,onScopeDispose,onServerPrefetch,onUnmounted,onUpdated,openBlock,popScopeId,provide,proxyRefs,pushScopeId,queuePostFlushCb,reactive,readonly,ref,registerRuntimeCompiler,render:render$4,renderList,renderSlot,resolveComponent,resolveDirective,resolveDynamicComponent,resolveFilter,resolveTransitionHooks,setBlockTracking,setDevtoolsHook,setTransitionHooks,shallowReactive,shallowReadonly,shallowRef,ssrContextKey,ssrUtils,stop:stop$1,toDisplayString:toDisplayString$1,toHandlerKey,toHandlers,toRaw,toRef:toRef$1,toRefs,toValue:toValue$1,transformVNodeArgs,triggerRef,unref,useAttrs:useAttrs$1,useCssModule,useCssVars,useModel,useSSRContext,useSlots,useTransitionState,vModelCheckbox,vModelDynamic,vModelRadio,vModelSelect,vModelText,vShow,version:version$3,warn:warn$2,watch,watchEffect,watchPostEffect,watchSyncEffect,withAsyncContext,withCtx,withDefaults,withDirectives,withKeys,withMemo,withModifiers,withScopeId},Symbol.toStringTag,{value:"Module"})),FOCUSABLE_ELEMENT_SELECTORS='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',isVisible=$=>getComputedStyle($).position==="fixed"?!1:$.offsetParent!==null,obtainAllFocusableElements$1=$=>Array.from($.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(oe=>isFocusable(oe)&&isVisible(oe)),isFocusable=$=>{if($.tabIndex>0||$.tabIndex===0&&$.getAttribute("tabIndex")!==null)return!0;if($.disabled)return!1;switch($.nodeName){case"A":return!!$.href&&$.rel!=="ignore";case"INPUT":return!($.type==="hidden"||$.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function($,oe,...ae){let ie;oe.includes("mouse")||oe.includes("click")?ie="MouseEvents":oe.includes("key")?ie="KeyboardEvent":ie="HTMLEvents";const le=document.createEvent(ie);return le.initEvent(oe,...ae),$.dispatchEvent(le),$},isLeaf=$=>!$.getAttribute("aria-owns"),getSibling=($,oe,ae)=>{const{parentNode:ie}=$;if(!ie)return null;const le=ie.querySelectorAll(ae),pe=Array.prototype.indexOf.call(le,$);return le[pe+oe]||null},focusNode=$=>{$&&($.focus(),!isLeaf($)&&$.click())},composeEventHandlers=($,oe,{checkForDefaultPrevented:ae=!0}={})=>le=>{const pe=$==null?void 0:$(le);if(ae===!1||!pe)return oe==null?void 0:oe(le)},whenMouse=$=>oe=>oe.pointerType==="mouse"?$(oe):void 0;var isVue2=!1;function set$3($,oe,ae){return Array.isArray($)?($.length=Math.max($.length,oe),$.splice(oe,1,ae),ae):($[oe]=ae,ae)}function del($,oe){if(Array.isArray($)){$.splice(oe,1);return}delete $[oe]}var __defProp$9=Object.defineProperty,__defProps$6=Object.defineProperties,__getOwnPropDescs$6=Object.getOwnPropertyDescriptors,__getOwnPropSymbols$b=Object.getOwnPropertySymbols,__hasOwnProp$b=Object.prototype.hasOwnProperty,__propIsEnum$b=Object.prototype.propertyIsEnumerable,__defNormalProp$9=($,oe,ae)=>oe in $?__defProp$9($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae,__spreadValues$9=($,oe)=>{for(var ae in oe||(oe={}))__hasOwnProp$b.call(oe,ae)&&__defNormalProp$9($,ae,oe[ae]);if(__getOwnPropSymbols$b)for(var ae of __getOwnPropSymbols$b(oe))__propIsEnum$b.call(oe,ae)&&__defNormalProp$9($,ae,oe[ae]);return $},__spreadProps$6=($,oe)=>__defProps$6($,__getOwnPropDescs$6(oe));function computedEager($,oe){var ae;const ie=shallowRef();return watchEffect(()=>{ie.value=$()},__spreadProps$6(__spreadValues$9({},oe),{flush:(ae=oe==null?void 0:oe.flush)!=null?ae:"sync"})),readonly(ie)}var _a$2;const isClient$2=typeof window<"u",isDef=$=>typeof $<"u",isFunction$4=$=>typeof $=="function",isString$6=$=>typeof $=="string",noop$7=()=>{},isIOS$1=isClient$2&&((_a$2=window==null?void 0:window.navigator)==null?void 0:_a$2.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref($){return typeof $=="function"?$():unref($)}function createFilterWrapper$1($,oe){function ae(...ie){return new Promise((le,pe)=>{Promise.resolve($(()=>oe.apply(this,ie),{fn:oe,thisArg:this,args:ie})).then(le).catch(pe)})}return ae}function debounceFilter$1($,oe={}){let ae,ie,le=noop$7;const pe=Ce=>{clearTimeout(Ce),le(),le=noop$7};return Ce=>{const $e=resolveUnref($),xe=resolveUnref(oe.maxWait);return ae&&pe(ae),$e<=0||xe!==void 0&&xe<=0?(ie&&(pe(ie),ie=null),Promise.resolve(Ce())):new Promise((Ie,Ne)=>{le=oe.rejectOnCancel?Ne:Ie,xe&&!ie&&(ie=setTimeout(()=>{ae&&pe(ae),ie=null,Ie(Ce())},xe)),ae=setTimeout(()=>{ie&&pe(ie),ie=null,Ie(Ce())},$e)})}}function throttleFilter($,oe=!0,ae=!0,ie=!1){let le=0,pe,_e=!0,Ce=noop$7,$e;const xe=()=>{pe&&(clearTimeout(pe),pe=void 0,Ce(),Ce=noop$7)};return Ne=>{const Fe=resolveUnref($),ze=Date.now()-le,At=()=>$e=Ne();return xe(),Fe<=0?(le=Date.now(),At()):(ze>Fe&&(ae||!_e)?(le=Date.now(),At()):oe&&($e=new Promise((Lt,hn)=>{Ce=ie?hn:Lt,pe=setTimeout(()=>{le=Date.now(),_e=!0,Lt(At()),xe()},Math.max(0,Fe-ze))})),!ae&&!pe&&(pe=setTimeout(()=>_e=!0,Fe)),_e=!1,$e)}}function identity$2($){return $}function tryOnScopeDispose$2($){return getCurrentScope()?(onScopeDispose($),!0):!1}function useDebounceFn$1($,oe=200,ae={}){return createFilterWrapper$1(debounceFilter$1(oe,ae),$)}function refDebounced($,oe=200,ae={}){const ie=ref($.value),le=useDebounceFn$1(()=>{ie.value=$.value},oe,ae);return watch($,()=>le()),ie}function useThrottleFn($,oe=200,ae=!1,ie=!0,le=!1){return createFilterWrapper$1(throttleFilter(oe,ae,ie,le),$)}function tryOnMounted$1($,oe=!0){getCurrentInstance()?onMounted($):oe?$():nextTick($)}function useTimeoutFn$1($,oe,ae={}){const{immediate:ie=!0}=ae,le=ref(!1);let pe=null;function _e(){pe&&(clearTimeout(pe),pe=null)}function Ce(){le.value=!1,_e()}function $e(...xe){_e(),le.value=!0,pe=setTimeout(()=>{le.value=!1,pe=null,$(...xe)},resolveUnref(oe))}return ie&&(le.value=!0,isClient$2&&$e()),tryOnScopeDispose$2(Ce),{isPending:readonly(le),start:$e,stop:Ce}}function unrefElement$1($){var oe;const ae=resolveUnref($);return(oe=ae==null?void 0:ae.$el)!=null?oe:ae}const defaultWindow$1=isClient$2?window:void 0,defaultDocument=isClient$2?window.document:void 0;function useEventListener$1(...$){let oe,ae,ie,le;if(isString$6($[0])||Array.isArray($[0])?([ae,ie,le]=$,oe=defaultWindow$1):[oe,ae,ie,le]=$,!oe)return noop$7;Array.isArray(ae)||(ae=[ae]),Array.isArray(ie)||(ie=[ie]);const pe=[],_e=()=>{pe.forEach(Ie=>Ie()),pe.length=0},Ce=(Ie,Ne,Fe,ze)=>(Ie.addEventListener(Ne,Fe,ze),()=>Ie.removeEventListener(Ne,Fe,ze)),$e=watch(()=>[unrefElement$1(oe),resolveUnref(le)],([Ie,Ne])=>{_e(),Ie&&pe.push(...ae.flatMap(Fe=>ie.map(ze=>Ce(Ie,Fe,ze,Ne))))},{immediate:!0,flush:"post"}),xe=()=>{$e(),_e()};return tryOnScopeDispose$2(xe),xe}let _iOSWorkaround=!1;function onClickOutside($,oe,ae={}){const{window:ie=defaultWindow$1,ignore:le=[],capture:pe=!0,detectIframe:_e=!1}=ae;if(!ie)return;isIOS$1&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(ie.document.body.children).forEach(Fe=>Fe.addEventListener("click",noop$7)));let Ce=!0;const $e=Fe=>le.some(ze=>{if(typeof ze=="string")return Array.from(ie.document.querySelectorAll(ze)).some(At=>At===Fe.target||Fe.composedPath().includes(At));{const At=unrefElement$1(ze);return At&&(Fe.target===At||Fe.composedPath().includes(At))}}),Ie=[useEventListener$1(ie,"click",Fe=>{const ze=unrefElement$1($);if(!(!ze||ze===Fe.target||Fe.composedPath().includes(ze))){if(Fe.detail===0&&(Ce=!$e(Fe)),!Ce){Ce=!0;return}oe(Fe)}},{passive:!0,capture:pe}),useEventListener$1(ie,"pointerdown",Fe=>{const ze=unrefElement$1($);ze&&(Ce=!Fe.composedPath().includes(ze)&&!$e(Fe))},{passive:!0}),_e&&useEventListener$1(ie,"blur",Fe=>{var ze;const At=unrefElement$1($);((ze=ie.document.activeElement)==null?void 0:ze.tagName)==="IFRAME"&&!(At!=null&&At.contains(ie.document.activeElement))&&oe(Fe)})].filter(Boolean);return()=>Ie.forEach(Fe=>Fe())}function useSupported($,oe=!1){const ae=ref(),ie=()=>ae.value=!!$();return ie(),tryOnMounted$1(ie,oe),ae}function cloneFnJSON($){return JSON.parse(JSON.stringify($))}const _global$2=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey$1="__vueuse_ssr_handlers__";_global$2[globalKey$1]=_global$2[globalKey$1]||{};function useCssVar($,oe,{window:ae=defaultWindow$1,initialValue:ie=""}={}){const le=ref(ie),pe=computed(()=>{var _e;return unrefElement$1(oe)||((_e=ae==null?void 0:ae.document)==null?void 0:_e.documentElement)});return watch([pe,()=>resolveUnref($)],([_e,Ce])=>{var $e;if(_e&&ae){const xe=($e=ae.getComputedStyle(_e).getPropertyValue(Ce))==null?void 0:$e.trim();le.value=xe||ie}},{immediate:!0}),watch(le,_e=>{var Ce;(Ce=pe.value)!=null&&Ce.style&&pe.value.style.setProperty(resolveUnref($),_e)}),le}function useDocumentVisibility({document:$=defaultDocument}={}){if(!$)return ref("visible");const oe=ref($.visibilityState);return useEventListener$1($,"visibilitychange",()=>{oe.value=$.visibilityState}),oe}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=($,oe)=>{var ae={};for(var ie in $)__hasOwnProp$g.call($,ie)&&oe.indexOf(ie)<0&&(ae[ie]=$[ie]);if($!=null&&__getOwnPropSymbols$g)for(var ie of __getOwnPropSymbols$g($))oe.indexOf(ie)<0&&__propIsEnum$g.call($,ie)&&(ae[ie]=$[ie]);return ae};function useResizeObserver($,oe,ae={}){const ie=ae,{window:le=defaultWindow$1}=ie,pe=__objRest$2(ie,["window"]);let _e;const Ce=useSupported(()=>le&&"ResizeObserver"in le),$e=()=>{_e&&(_e.disconnect(),_e=void 0)},xe=watch(()=>unrefElement$1($),Ne=>{$e(),Ce.value&&le&&Ne&&(_e=new ResizeObserver(oe),_e.observe(Ne,pe))},{immediate:!0,flush:"post"}),Ie=()=>{$e(),xe()};return tryOnScopeDispose$2(Ie),{isSupported:Ce,stop:Ie}}function useElementBounding($,oe={}){const{reset:ae=!0,windowResize:ie=!0,windowScroll:le=!0,immediate:pe=!0}=oe,_e=ref(0),Ce=ref(0),$e=ref(0),xe=ref(0),Ie=ref(0),Ne=ref(0),Fe=ref(0),ze=ref(0);function At(){const Lt=unrefElement$1($);if(!Lt){ae&&(_e.value=0,Ce.value=0,$e.value=0,xe.value=0,Ie.value=0,Ne.value=0,Fe.value=0,ze.value=0);return}const hn=Lt.getBoundingClientRect();_e.value=hn.height,Ce.value=hn.bottom,$e.value=hn.left,xe.value=hn.right,Ie.value=hn.top,Ne.value=hn.width,Fe.value=hn.x,ze.value=hn.y}return useResizeObserver($,At),watch(()=>unrefElement$1($),Lt=>!Lt&&At()),le&&useEventListener$1("scroll",At,{capture:!0,passive:!0}),ie&&useEventListener$1("resize",At,{passive:!0}),tryOnMounted$1(()=>{pe&&At()}),{height:_e,bottom:Ce,left:$e,right:xe,top:Ie,width:Ne,x:Fe,y:ze,update:At}}var SwipeDirection$1;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection$1||(SwipeDirection$1={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=($,oe,ae)=>oe in $?__defProp($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae,__spreadValues=($,oe)=>{for(var ae in oe||(oe={}))__hasOwnProp.call(oe,ae)&&__defNormalProp($,ae,oe[ae]);if(__getOwnPropSymbols)for(var ae of __getOwnPropSymbols(oe))__propIsEnum.call(oe,ae)&&__defNormalProp($,ae,oe[ae]);return $};const _TransitionPresets={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};__spreadValues({linear:identity$2},_TransitionPresets);function useVModel($,oe,ae,ie={}){var le,pe,_e;const{clone:Ce=!1,passive:$e=!1,eventName:xe,deep:Ie=!1,defaultValue:Ne}=ie,Fe=getCurrentInstance(),ze=ae||(Fe==null?void 0:Fe.emit)||((le=Fe==null?void 0:Fe.$emit)==null?void 0:le.bind(Fe))||((_e=(pe=Fe==null?void 0:Fe.proxy)==null?void 0:pe.$emit)==null?void 0:_e.bind(Fe==null?void 0:Fe.proxy));let At=xe;oe||(oe="modelValue"),At=xe||At||`update:${oe.toString()}`;const Lt=vn=>Ce?isFunction$4(Ce)?Ce(vn):cloneFnJSON(vn):vn,hn=()=>isDef($[oe])?Lt($[oe]):Ne;if($e){const vn=hn(),_n=ref(vn);return watch(()=>$[oe],bn=>_n.value=Lt(bn)),watch(_n,bn=>{(bn!==$[oe]||Ie)&&ze(At,bn)},{deep:Ie}),_n}else return computed({get(){return hn()},set(vn){ze(At,vn)}})}function useWindowFocus({window:$=defaultWindow$1}={}){if(!$)return ref(!1);const oe=ref($.document.hasFocus());return useEventListener$1($,"blur",()=>{oe.value=!1}),useEventListener$1($,"focus",()=>{oe.value=!0}),oe}function useWindowSize($={}){const{window:oe=defaultWindow$1,initialWidth:ae=1/0,initialHeight:ie=1/0,listenOrientation:le=!0,includeScrollbar:pe=!0}=$,_e=ref(ae),Ce=ref(ie),$e=()=>{oe&&(pe?(_e.value=oe.innerWidth,Ce.value=oe.innerHeight):(_e.value=oe.document.documentElement.clientWidth,Ce.value=oe.document.documentElement.clientHeight))};return $e(),tryOnMounted$1($e),useEventListener$1("resize",$e,{passive:!0}),le&&useEventListener$1("orientationchange",$e,{passive:!0}),{width:_e,height:Ce}}const isFirefox=()=>isClient$2&&/firefox/i.test(window.navigator.userAgent),isInContainer=($,oe)=>{if(!isClient$2||!$||!oe)return!1;const ae=$.getBoundingClientRect();let ie;return oe instanceof Element?ie=oe.getBoundingClientRect():ie={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},ae.top<ie.bottom&&ae.bottom>ie.top&&ae.right>ie.left&&ae.left<ie.right},getOffsetTop=$=>{let oe=0,ae=$;for(;ae;)oe+=ae.offsetTop,ae=ae.offsetParent;return oe},getOffsetTopDistance=($,oe)=>Math.abs(getOffsetTop($)-getOffsetTop(oe)),getClientXY=$=>{let oe,ae;return $.type==="touchend"?(ae=$.changedTouches[0].clientY,oe=$.changedTouches[0].clientX):$.type.startsWith("touch")?(ae=$.touches[0].clientY,oe=$.touches[0].clientX):(ae=$.clientY,oe=$.clientX),{clientX:oe,clientY:ae}};var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol$2=root$1.Symbol;const Symbol$3=Symbol$2;var objectProto$f=Object.prototype,hasOwnProperty$e=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag($){var oe=hasOwnProperty$e.call($,symToStringTag$1),ae=$[symToStringTag$1];try{$[symToStringTag$1]=void 0;var ie=!0}catch{}var le=nativeObjectToString$1.call($);return ie&&(oe?$[symToStringTag$1]=ae:delete $[symToStringTag$1]),le}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$2($){return nativeObjectToString.call($)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag($){return $==null?$===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object($)?getRawTag($):objectToString$2($)}function isObjectLike($){return $!=null&&typeof $=="object"}var symbolTag$3="[object Symbol]";function isSymbol$1($){return typeof $=="symbol"||isObjectLike($)&&baseGetTag($)==symbolTag$3}function arrayMap($,oe){for(var ae=-1,ie=$==null?0:$.length,le=Array(ie);++ae<ie;)le[ae]=oe($[ae],ae,$);return le}var isArray$a=Array.isArray;const isArray$b=isArray$a;var INFINITY$3=1/0,symbolProto$2=Symbol$3?Symbol$3.prototype:void 0,symbolToString=symbolProto$2?symbolProto$2.toString:void 0;function baseToString($){if(typeof $=="string")return $;if(isArray$b($))return arrayMap($,baseToString)+"";if(isSymbol$1($))return symbolToString?symbolToString.call($):"";var oe=$+"";return oe=="0"&&1/$==-INFINITY$3?"-0":oe}var reWhitespace=/\s/;function trimmedEndIndex($){for(var oe=$.length;oe--&&reWhitespace.test($.charAt(oe)););return oe}var reTrimStart=/^\s+/;function baseTrim($){return $&&$.slice(0,trimmedEndIndex($)+1).replace(reTrimStart,"")}function isObject$7($){var oe=typeof $;return $!=null&&(oe=="object"||oe=="function")}var NAN=0/0,reIsBadHex=/^[-+]0x[0-9a-f]+$/i,reIsBinary=/^0b[01]+$/i,reIsOctal=/^0o[0-7]+$/i,freeParseInt=parseInt;function toNumber($){if(typeof $=="number")return $;if(isSymbol$1($))return NAN;if(isObject$7($)){var oe=typeof $.valueOf=="function"?$.valueOf():$;$=isObject$7(oe)?oe+"":oe}if(typeof $!="string")return $===0?$:+$;$=baseTrim($);var ae=reIsBinary.test($);return ae||reIsOctal.test($)?freeParseInt($.slice(2),ae?2:8):reIsBadHex.test($)?NAN:+$}function identity$1($){return $}var asyncTag="[object AsyncFunction]",funcTag$2="[object Function]",genTag$1="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction$3($){if(!isObject$7($))return!1;var oe=baseGetTag($);return oe==funcTag$2||oe==genTag$1||oe==asyncTag||oe==proxyTag}var coreJsData=root$1["__core-js_shared__"];const coreJsData$1=coreJsData;var maskSrcKey=function(){var $=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||"");return $?"Symbol(src)_1."+$:""}();function isMasked($){return!!maskSrcKey&&maskSrcKey in $}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource($){if($!=null){try{return funcToString$2.call($)}catch{}try{return $+""}catch{}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$d=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$d=objectProto$d.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$d).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative($){if(!isObject$7($)||isMasked($))return!1;var oe=isFunction$3($)?reIsNative:reIsHostCtor;return oe.test(toSource($))}function getValue$1($,oe){return $==null?void 0:$[oe]}function getNative($,oe){var ae=getValue$1($,oe);return baseIsNative(ae)?ae:void 0}var WeakMap$3=getNative(root$1,"WeakMap");const WeakMap$4=WeakMap$3;var objectCreate=Object.create,baseCreate=function(){function $(){}return function(oe){if(!isObject$7(oe))return{};if(objectCreate)return objectCreate(oe);$.prototype=oe;var ae=new $;return $.prototype=void 0,ae}}();const baseCreate$1=baseCreate;function apply$1($,oe,ae){switch(ae.length){case 0:return $.call(oe);case 1:return $.call(oe,ae[0]);case 2:return $.call(oe,ae[0],ae[1]);case 3:return $.call(oe,ae[0],ae[1],ae[2])}return $.apply(oe,ae)}function noop$6(){}function copyArray($,oe){var ae=-1,ie=$.length;for(oe||(oe=Array(ie));++ae<ie;)oe[ae]=$[ae];return oe}var HOT_COUNT=800,HOT_SPAN=16,nativeNow=Date.now;function shortOut($){var oe=0,ae=0;return function(){var ie=nativeNow(),le=HOT_SPAN-(ie-ae);if(ae=ie,le>0){if(++oe>=HOT_COUNT)return arguments[0]}else oe=0;return $.apply(void 0,arguments)}}function constant($){return function(){return $}}var defineProperty=function(){try{var $=getNative(Object,"defineProperty");return $({},"",{}),$}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function($,oe){return defineProperty$1($,"toString",{configurable:!0,enumerable:!1,value:constant(oe),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach($,oe){for(var ae=-1,ie=$==null?0:$.length;++ae<ie&&oe($[ae],ae,$)!==!1;);return $}function baseFindIndex($,oe,ae,ie){for(var le=$.length,pe=ae+(ie?1:-1);ie?pe--:++pe<le;)if(oe($[pe],pe,$))return pe;return-1}function baseIsNaN($){return $!==$}function strictIndexOf($,oe,ae){for(var ie=ae-1,le=$.length;++ie<le;)if($[ie]===oe)return ie;return-1}function baseIndexOf($,oe,ae){return oe===oe?strictIndexOf($,oe,ae):baseFindIndex($,baseIsNaN,ae)}function arrayIncludes($,oe){var ae=$==null?0:$.length;return!!ae&&baseIndexOf($,oe,0)>-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex($,oe){var ae=typeof $;return oe=oe??MAX_SAFE_INTEGER$2,!!oe&&(ae=="number"||ae!="symbol"&&reIsUint.test($))&&$>-1&&$%1==0&&$<oe}function baseAssignValue($,oe,ae){oe=="__proto__"&&defineProperty$1?defineProperty$1($,oe,{configurable:!0,enumerable:!0,value:ae,writable:!0}):$[oe]=ae}function eq($,oe){return $===oe||$!==$&&oe!==oe}var objectProto$c=Object.prototype,hasOwnProperty$c=objectProto$c.hasOwnProperty;function assignValue($,oe,ae){var ie=$[oe];(!(hasOwnProperty$c.call($,oe)&&eq(ie,ae))||ae===void 0&&!(oe in $))&&baseAssignValue($,oe,ae)}function copyObject($,oe,ae,ie){var le=!ae;ae||(ae={});for(var pe=-1,_e=oe.length;++pe<_e;){var Ce=oe[pe],$e=ie?ie(ae[Ce],$[Ce],Ce,ae,$):void 0;$e===void 0&&($e=$[Ce]),le?baseAssignValue(ae,Ce,$e):assignValue(ae,Ce,$e)}return ae}var nativeMax$1=Math.max;function overRest($,oe,ae){return oe=nativeMax$1(oe===void 0?$.length-1:oe,0),function(){for(var ie=arguments,le=-1,pe=nativeMax$1(ie.length-oe,0),_e=Array(pe);++le<pe;)_e[le]=ie[oe+le];le=-1;for(var Ce=Array(oe+1);++le<oe;)Ce[le]=ie[le];return Ce[oe]=ae(_e),apply$1($,this,Ce)}}function baseRest($,oe){return setToString$1(overRest($,oe,identity$1),$+"")}var MAX_SAFE_INTEGER$1=9007199254740991;function isLength($){return typeof $=="number"&&$>-1&&$%1==0&&$<=MAX_SAFE_INTEGER$1}function isArrayLike$1($){return $!=null&&isLength($.length)&&!isFunction$3($)}function isIterateeCall($,oe,ae){if(!isObject$7(ae))return!1;var ie=typeof oe;return(ie=="number"?isArrayLike$1(ae)&&isIndex(oe,ae.length):ie=="string"&&oe in ae)?eq(ae[oe],$):!1}function createAssigner($){return baseRest(function(oe,ae){var ie=-1,le=ae.length,pe=le>1?ae[le-1]:void 0,_e=le>2?ae[2]:void 0;for(pe=$.length>3&&typeof pe=="function"?(le--,pe):void 0,_e&&isIterateeCall(ae[0],ae[1],_e)&&(pe=le<3?void 0:pe,le=1),oe=Object(oe);++ie<le;){var Ce=ae[ie];Ce&&$(oe,Ce,ie,pe)}return oe})}var objectProto$b=Object.prototype;function isPrototype($){var oe=$&&$.constructor,ae=typeof oe=="function"&&oe.prototype||objectProto$b;return $===ae}function baseTimes($,oe){for(var ae=-1,ie=Array($);++ae<$;)ie[ae]=oe(ae);return ie}var argsTag$3="[object Arguments]";function baseIsArguments($){return isObjectLike($)&&baseGetTag($)==argsTag$3}var objectProto$a=Object.prototype,hasOwnProperty$b=objectProto$a.hasOwnProperty,propertyIsEnumerable$1=objectProto$a.propertyIsEnumerable,isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function($){return isObjectLike($)&&hasOwnProperty$b.call($,"callee")&&!propertyIsEnumerable$1.call($,"callee")};const isArguments$1=isArguments;function stubFalse(){return!1}var freeExports$2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$2=freeExports$2&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$2=freeModule$2&&freeModule$2.exports===freeExports$2,Buffer$2=moduleExports$2?root$1.Buffer:void 0,nativeIsBuffer=Buffer$2?Buffer$2.isBuffer:void 0,isBuffer$2=nativeIsBuffer||stubFalse;const isBuffer$3=isBuffer$2;var argsTag$2="[object Arguments]",arrayTag$2="[object Array]",boolTag$3="[object Boolean]",dateTag$3="[object Date]",errorTag$2="[object Error]",funcTag$1="[object Function]",mapTag$5="[object Map]",numberTag$3="[object Number]",objectTag$4="[object Object]",regexpTag$3="[object RegExp]",setTag$5="[object Set]",stringTag$3="[object String]",weakMapTag$2="[object WeakMap]",arrayBufferTag$3="[object ArrayBuffer]",dataViewTag$4="[object DataView]",float32Tag$2="[object Float32Array]",float64Tag$2="[object Float64Array]",int8Tag$2="[object Int8Array]",int16Tag$2="[object Int16Array]",int32Tag$2="[object Int32Array]",uint8Tag$2="[object Uint8Array]",uint8ClampedTag$2="[object Uint8ClampedArray]",uint16Tag$2="[object Uint16Array]",uint32Tag$2="[object Uint32Array]",typedArrayTags={};typedArrayTags[float32Tag$2]=typedArrayTags[float64Tag$2]=typedArrayTags[int8Tag$2]=typedArrayTags[int16Tag$2]=typedArrayTags[int32Tag$2]=typedArrayTags[uint8Tag$2]=typedArrayTags[uint8ClampedTag$2]=typedArrayTags[uint16Tag$2]=typedArrayTags[uint32Tag$2]=!0;typedArrayTags[argsTag$2]=typedArrayTags[arrayTag$2]=typedArrayTags[arrayBufferTag$3]=typedArrayTags[boolTag$3]=typedArrayTags[dataViewTag$4]=typedArrayTags[dateTag$3]=typedArrayTags[errorTag$2]=typedArrayTags[funcTag$1]=typedArrayTags[mapTag$5]=typedArrayTags[numberTag$3]=typedArrayTags[objectTag$4]=typedArrayTags[regexpTag$3]=typedArrayTags[setTag$5]=typedArrayTags[stringTag$3]=typedArrayTags[weakMapTag$2]=!1;function baseIsTypedArray($){return isObjectLike($)&&isLength($.length)&&!!typedArrayTags[baseGetTag($)]}function baseUnary($){return function(oe){return $(oe)}}var freeExports$1=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule$1=freeExports$1&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports$1=freeModule$1&&freeModule$1.exports===freeExports$1,freeProcess=moduleExports$1&&freeGlobal$1.process,nodeUtil=function(){try{var $=freeModule$1&&freeModule$1.require&&freeModule$1.require("util").types;return $||freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch{}}();const nodeUtil$1=nodeUtil;var nodeIsTypedArray=nodeUtil$1&&nodeUtil$1.isTypedArray,isTypedArray$2=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;const isTypedArray$3=isTypedArray$2;var objectProto$9=Object.prototype,hasOwnProperty$a=objectProto$9.hasOwnProperty;function arrayLikeKeys($,oe){var ae=isArray$b($),ie=!ae&&isArguments$1($),le=!ae&&!ie&&isBuffer$3($),pe=!ae&&!ie&&!le&&isTypedArray$3($),_e=ae||ie||le||pe,Ce=_e?baseTimes($.length,String):[],$e=Ce.length;for(var xe in $)(oe||hasOwnProperty$a.call($,xe))&&!(_e&&(xe=="length"||le&&(xe=="offset"||xe=="parent")||pe&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||isIndex(xe,$e)))&&Ce.push(xe);return Ce}function overArg($,oe){return function(ae){return $(oe(ae))}}var nativeKeys=overArg(Object.keys,Object);const nativeKeys$1=nativeKeys;var objectProto$8=Object.prototype,hasOwnProperty$9=objectProto$8.hasOwnProperty;function baseKeys($){if(!isPrototype($))return nativeKeys$1($);var oe=[];for(var ae in Object($))hasOwnProperty$9.call($,ae)&&ae!="constructor"&&oe.push(ae);return oe}function keys$1($){return isArrayLike$1($)?arrayLikeKeys($):baseKeys($)}function nativeKeysIn($){var oe=[];if($!=null)for(var ae in Object($))oe.push(ae);return oe}var objectProto$7=Object.prototype,hasOwnProperty$8=objectProto$7.hasOwnProperty;function baseKeysIn($){if(!isObject$7($))return nativeKeysIn($);var oe=isPrototype($),ae=[];for(var ie in $)ie=="constructor"&&(oe||!hasOwnProperty$8.call($,ie))||ae.push(ie);return ae}function keysIn($){return isArrayLike$1($)?arrayLikeKeys($,!0):baseKeysIn($)}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey($,oe){if(isArray$b($))return!1;var ae=typeof $;return ae=="number"||ae=="symbol"||ae=="boolean"||$==null||isSymbol$1($)?!0:reIsPlainProp.test($)||!reIsDeepProp.test($)||oe!=null&&$ in Object(oe)}var nativeCreate=getNative(Object,"create");const nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete($){var oe=this.has($)&&delete this.__data__[$];return this.size-=oe?1:0,oe}var HASH_UNDEFINED$2="__lodash_hash_undefined__",objectProto$6=Object.prototype,hasOwnProperty$7=objectProto$6.hasOwnProperty;function hashGet($){var oe=this.__data__;if(nativeCreate$1){var ae=oe[$];return ae===HASH_UNDEFINED$2?void 0:ae}return hasOwnProperty$7.call(oe,$)?oe[$]:void 0}var objectProto$5=Object.prototype,hasOwnProperty$6=objectProto$5.hasOwnProperty;function hashHas($){var oe=this.__data__;return nativeCreate$1?oe[$]!==void 0:hasOwnProperty$6.call(oe,$)}var HASH_UNDEFINED$1="__lodash_hash_undefined__";function hashSet($,oe){var ae=this.__data__;return this.size+=this.has($)?0:1,ae[$]=nativeCreate$1&&oe===void 0?HASH_UNDEFINED$1:oe,this}function Hash($){var oe=-1,ae=$==null?0:$.length;for(this.clear();++oe<ae;){var ie=$[oe];this.set(ie[0],ie[1])}}Hash.prototype.clear=hashClear;Hash.prototype.delete=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function listCacheClear(){this.__data__=[],this.size=0}function assocIndexOf($,oe){for(var ae=$.length;ae--;)if(eq($[ae][0],oe))return ae;return-1}var arrayProto$1=Array.prototype,splice=arrayProto$1.splice;function listCacheDelete($){var oe=this.__data__,ae=assocIndexOf(oe,$);if(ae<0)return!1;var ie=oe.length-1;return ae==ie?oe.pop():splice.call(oe,ae,1),--this.size,!0}function listCacheGet$1($){var oe=this.__data__,ae=assocIndexOf(oe,$);return ae<0?void 0:oe[ae][1]}function listCacheHas($){return assocIndexOf(this.__data__,$)>-1}function listCacheSet$1($,oe){var ae=this.__data__,ie=assocIndexOf(ae,$);return ie<0?(++this.size,ae.push([$,oe])):ae[ie][1]=oe,this}function ListCache($){var oe=-1,ae=$==null?0:$.length;for(this.clear();++oe<ae;){var ie=$[oe];this.set(ie[0],ie[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype.delete=listCacheDelete;ListCache.prototype.get=listCacheGet$1;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet$1;var Map$1=getNative(root$1,"Map");const Map$2=Map$1;function mapCacheClear(){this.size=0,this.__data__={hash:new Hash,map:new(Map$2||ListCache),string:new Hash}}function isKeyable($){var oe=typeof $;return oe=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?$!=="__proto__":$===null}function getMapData($,oe){var ae=$.__data__;return isKeyable(oe)?ae[typeof oe=="string"?"string":"hash"]:ae.map}function mapCacheDelete($){var oe=getMapData(this,$).delete($);return this.size-=oe?1:0,oe}function mapCacheGet($){return getMapData(this,$).get($)}function mapCacheHas($){return getMapData(this,$).has($)}function mapCacheSet($,oe){var ae=getMapData(this,$),ie=ae.size;return ae.set($,oe),this.size+=ae.size==ie?0:1,this}function MapCache($){var oe=-1,ae=$==null?0:$.length;for(this.clear();++oe<ae;){var ie=$[oe];this.set(ie[0],ie[1])}}MapCache.prototype.clear=mapCacheClear;MapCache.prototype.delete=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;var FUNC_ERROR_TEXT$2="Expected a function";function memoize($,oe){if(typeof $!="function"||oe!=null&&typeof oe!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var ae=function(){var ie=arguments,le=oe?oe.apply(this,ie):ie[0],pe=ae.cache;if(pe.has(le))return pe.get(le);var _e=$.apply(this,ie);return ae.cache=pe.set(le,_e)||pe,_e};return ae.cache=new(memoize.Cache||MapCache),ae}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped($){var oe=memoize($,function(ie){return ae.size===MAX_MEMOIZE_SIZE&&ae.clear(),ie}),ae=oe.cache;return oe}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$1=memoizeCapped(function($){var oe=[];return $.charCodeAt(0)===46&&oe.push(""),$.replace(rePropName$1,function(ae,ie,le,pe){oe.push(le?pe.replace(reEscapeChar$1,"$1"):ie||ae)}),oe});const stringToPath$2=stringToPath$1;function toString$2($){return $==null?"":baseToString($)}function castPath($,oe){return isArray$b($)?$:isKey($,oe)?[$]:stringToPath$2(toString$2($))}var INFINITY$2=1/0;function toKey($){if(typeof $=="string"||isSymbol$1($))return $;var oe=$+"";return oe=="0"&&1/$==-INFINITY$2?"-0":oe}function baseGet($,oe){oe=castPath(oe,$);for(var ae=0,ie=oe.length;$!=null&&ae<ie;)$=$[toKey(oe[ae++])];return ae&&ae==ie?$:void 0}function get$1($,oe,ae){var ie=$==null?void 0:baseGet($,oe);return ie===void 0?ae:ie}function arrayPush($,oe){for(var ae=-1,ie=oe.length,le=$.length;++ae<ie;)$[le+ae]=oe[ae];return $}var spreadableSymbol=Symbol$3?Symbol$3.isConcatSpreadable:void 0;function isFlattenable($){return isArray$b($)||isArguments$1($)||!!(spreadableSymbol&&$&&$[spreadableSymbol])}function baseFlatten($,oe,ae,ie,le){var pe=-1,_e=$.length;for(ae||(ae=isFlattenable),le||(le=[]);++pe<_e;){var Ce=$[pe];oe>0&&ae(Ce)?oe>1?baseFlatten(Ce,oe-1,ae,ie,le):arrayPush(le,Ce):ie||(le[le.length]=Ce)}return le}function flatten($){var oe=$==null?0:$.length;return oe?baseFlatten($,1):[]}function flatRest($){return setToString$1(overRest($,void 0,flatten),$+"")}var getPrototype=overArg(Object.getPrototypeOf,Object);const getPrototype$1=getPrototype;var objectTag$3="[object Object]",funcProto=Function.prototype,objectProto$4=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$5=objectProto$4.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$3($){if(!isObjectLike($)||baseGetTag($)!=objectTag$3)return!1;var oe=getPrototype$1($);if(oe===null)return!0;var ae=hasOwnProperty$5.call(oe,"constructor")&&oe.constructor;return typeof ae=="function"&&ae instanceof ae&&funcToString.call(ae)==objectCtorString}function castArray$1(){if(!arguments.length)return[];var $=arguments[0];return isArray$b($)?$:[$]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete($){var oe=this.__data__,ae=oe.delete($);return this.size=oe.size,ae}function stackGet($){return this.__data__.get($)}function stackHas($){return this.__data__.has($)}var LARGE_ARRAY_SIZE$1=200;function stackSet($,oe){var ae=this.__data__;if(ae instanceof ListCache){var ie=ae.__data__;if(!Map$2||ie.length<LARGE_ARRAY_SIZE$1-1)return ie.push([$,oe]),this.size=++ae.size,this;ae=this.__data__=new MapCache(ie)}return ae.set($,oe),this.size=ae.size,this}function Stack($){var oe=this.__data__=new ListCache($);this.size=oe.size}Stack.prototype.clear=stackClear;Stack.prototype.delete=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;function baseAssign($,oe){return $&&copyObject(oe,keys$1(oe),$)}function baseAssignIn($,oe){return $&&copyObject(oe,keysIn(oe),$)}var freeExports=typeof exports=="object"&&exports&&!exports.nodeType&&exports,freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module,moduleExports=freeModule&&freeModule.exports===freeExports,Buffer$1=moduleExports?root$1.Buffer:void 0,allocUnsafe=Buffer$1?Buffer$1.allocUnsafe:void 0;function cloneBuffer($,oe){if(oe)return $.slice();var ae=$.length,ie=allocUnsafe?allocUnsafe(ae):new $.constructor(ae);return $.copy(ie),ie}function arrayFilter($,oe){for(var ae=-1,ie=$==null?0:$.length,le=0,pe=[];++ae<ie;){var _e=$[ae];oe(_e,ae,$)&&(pe[le++]=_e)}return pe}function stubArray(){return[]}var objectProto$3=Object.prototype,propertyIsEnumerable=objectProto$3.propertyIsEnumerable,nativeGetSymbols$1=Object.getOwnPropertySymbols,getSymbols=nativeGetSymbols$1?function($){return $==null?[]:($=Object($),arrayFilter(nativeGetSymbols$1($),function(oe){return propertyIsEnumerable.call($,oe)}))}:stubArray;const getSymbols$1=getSymbols;function copySymbols($,oe){return copyObject($,getSymbols$1($),oe)}var nativeGetSymbols=Object.getOwnPropertySymbols,getSymbolsIn=nativeGetSymbols?function($){for(var oe=[];$;)arrayPush(oe,getSymbols$1($)),$=getPrototype$1($);return oe}:stubArray;const getSymbolsIn$1=getSymbolsIn;function copySymbolsIn($,oe){return copyObject($,getSymbolsIn$1($),oe)}function baseGetAllKeys($,oe,ae){var ie=oe($);return isArray$b($)?ie:arrayPush(ie,ae($))}function getAllKeys($){return baseGetAllKeys($,keys$1,getSymbols$1)}function getAllKeysIn($){return baseGetAllKeys($,keysIn,getSymbolsIn$1)}var DataView$3=getNative(root$1,"DataView");const DataView$4=DataView$3;var Promise$1=getNative(root$1,"Promise");const Promise$2=Promise$1;var Set$1=getNative(root$1,"Set");const Set$2=Set$1;var mapTag$4="[object Map]",objectTag$2="[object Object]",promiseTag="[object Promise]",setTag$4="[object Set]",weakMapTag$1="[object WeakMap]",dataViewTag$3="[object DataView]",dataViewCtorString=toSource(DataView$4),mapCtorString=toSource(Map$2),promiseCtorString=toSource(Promise$2),setCtorString=toSource(Set$2),weakMapCtorString=toSource(WeakMap$4),getTag=baseGetTag;(DataView$4&&getTag(new DataView$4(new ArrayBuffer(1)))!=dataViewTag$3||Map$2&&getTag(new Map$2)!=mapTag$4||Promise$2&&getTag(Promise$2.resolve())!=promiseTag||Set$2&&getTag(new Set$2)!=setTag$4||WeakMap$4&&getTag(new WeakMap$4)!=weakMapTag$1)&&(getTag=function($){var oe=baseGetTag($),ae=oe==objectTag$2?$.constructor:void 0,ie=ae?toSource(ae):"";if(ie)switch(ie){case dataViewCtorString:return dataViewTag$3;case mapCtorString:return mapTag$4;case promiseCtorString:return promiseTag;case setCtorString:return setTag$4;case weakMapCtorString:return weakMapTag$1}return oe});const getTag$1=getTag;var objectProto$2=Object.prototype,hasOwnProperty$4=objectProto$2.hasOwnProperty;function initCloneArray($){var oe=$.length,ae=new $.constructor(oe);return oe&&typeof $[0]=="string"&&hasOwnProperty$4.call($,"index")&&(ae.index=$.index,ae.input=$.input),ae}var Uint8Array$1=root$1.Uint8Array;const Uint8Array$2=Uint8Array$1;function cloneArrayBuffer($){var oe=new $.constructor($.byteLength);return new Uint8Array$2(oe).set(new Uint8Array$2($)),oe}function cloneDataView($,oe){var ae=oe?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(ae,$.byteOffset,$.byteLength)}var reFlags=/\w*$/;function cloneRegExp($){var oe=new $.constructor($.source,reFlags.exec($));return oe.lastIndex=$.lastIndex,oe}var symbolProto$1=Symbol$3?Symbol$3.prototype:void 0,symbolValueOf$1=symbolProto$1?symbolProto$1.valueOf:void 0;function cloneSymbol($){return symbolValueOf$1?Object(symbolValueOf$1.call($)):{}}function cloneTypedArray($,oe){var ae=oe?cloneArrayBuffer($.buffer):$.buffer;return new $.constructor(ae,$.byteOffset,$.length)}var boolTag$2="[object Boolean]",dateTag$2="[object Date]",mapTag$3="[object Map]",numberTag$2="[object Number]",regexpTag$2="[object RegExp]",setTag$3="[object Set]",stringTag$2="[object String]",symbolTag$2="[object Symbol]",arrayBufferTag$2="[object ArrayBuffer]",dataViewTag$2="[object DataView]",float32Tag$1="[object Float32Array]",float64Tag$1="[object Float64Array]",int8Tag$1="[object Int8Array]",int16Tag$1="[object Int16Array]",int32Tag$1="[object Int32Array]",uint8Tag$1="[object Uint8Array]",uint8ClampedTag$1="[object Uint8ClampedArray]",uint16Tag$1="[object Uint16Array]",uint32Tag$1="[object Uint32Array]";function initCloneByTag($,oe,ae){var ie=$.constructor;switch(oe){case arrayBufferTag$2:return cloneArrayBuffer($);case boolTag$2:case dateTag$2:return new ie(+$);case dataViewTag$2:return cloneDataView($,ae);case float32Tag$1:case float64Tag$1:case int8Tag$1:case int16Tag$1:case int32Tag$1:case uint8Tag$1:case uint8ClampedTag$1:case uint16Tag$1:case uint32Tag$1:return cloneTypedArray($,ae);case mapTag$3:return new ie;case numberTag$2:case stringTag$2:return new ie($);case regexpTag$2:return cloneRegExp($);case setTag$3:return new ie;case symbolTag$2:return cloneSymbol($)}}function initCloneObject($){return typeof $.constructor=="function"&&!isPrototype($)?baseCreate$1(getPrototype$1($)):{}}var mapTag$2="[object Map]";function baseIsMap($){return isObjectLike($)&&getTag$1($)==mapTag$2}var nodeIsMap=nodeUtil$1&&nodeUtil$1.isMap,isMap$1=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;const isMap$2=isMap$1;var setTag$2="[object Set]";function baseIsSet($){return isObjectLike($)&&getTag$1($)==setTag$2}var nodeIsSet=nodeUtil$1&&nodeUtil$1.isSet,isSet$1=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;const isSet$2=isSet$1;var CLONE_DEEP_FLAG$1=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG$2=4,argsTag$1="[object Arguments]",arrayTag$1="[object Array]",boolTag$1="[object Boolean]",dateTag$1="[object Date]",errorTag$1="[object Error]",funcTag="[object Function]",genTag="[object GeneratorFunction]",mapTag$1="[object Map]",numberTag$1="[object Number]",objectTag$1="[object Object]",regexpTag$1="[object RegExp]",setTag$1="[object Set]",stringTag$1="[object String]",symbolTag$1="[object Symbol]",weakMapTag="[object WeakMap]",arrayBufferTag$1="[object ArrayBuffer]",dataViewTag$1="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]",cloneableTags={};cloneableTags[argsTag$1]=cloneableTags[arrayTag$1]=cloneableTags[arrayBufferTag$1]=cloneableTags[dataViewTag$1]=cloneableTags[boolTag$1]=cloneableTags[dateTag$1]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag$1]=cloneableTags[numberTag$1]=cloneableTags[objectTag$1]=cloneableTags[regexpTag$1]=cloneableTags[setTag$1]=cloneableTags[stringTag$1]=cloneableTags[symbolTag$1]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=!0;cloneableTags[errorTag$1]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=!1;function baseClone($,oe,ae,ie,le,pe){var _e,Ce=oe&CLONE_DEEP_FLAG$1,$e=oe&CLONE_FLAT_FLAG,xe=oe&CLONE_SYMBOLS_FLAG$2;if(ae&&(_e=le?ae($,ie,le,pe):ae($)),_e!==void 0)return _e;if(!isObject$7($))return $;var Ie=isArray$b($);if(Ie){if(_e=initCloneArray($),!Ce)return copyArray($,_e)}else{var Ne=getTag$1($),Fe=Ne==funcTag||Ne==genTag;if(isBuffer$3($))return cloneBuffer($,Ce);if(Ne==objectTag$1||Ne==argsTag$1||Fe&&!le){if(_e=$e||Fe?{}:initCloneObject($),!Ce)return $e?copySymbolsIn($,baseAssignIn(_e,$)):copySymbols($,baseAssign(_e,$))}else{if(!cloneableTags[Ne])return le?$:{};_e=initCloneByTag($,Ne,Ce)}}pe||(pe=new Stack);var ze=pe.get($);if(ze)return ze;pe.set($,_e),isSet$2($)?$.forEach(function(hn){_e.add(baseClone(hn,oe,ae,hn,$,pe))}):isMap$2($)&&$.forEach(function(hn,vn){_e.set(vn,baseClone(hn,oe,ae,vn,$,pe))});var At=xe?$e?getAllKeysIn:getAllKeys:$e?keysIn:keys$1,Lt=Ie?void 0:At($);return arrayEach(Lt||$,function(hn,vn){Lt&&(vn=hn,hn=$[vn]),assignValue(_e,vn,baseClone(hn,oe,ae,vn,$,pe))}),_e}var CLONE_SYMBOLS_FLAG$1=4;function clone$4($){return baseClone($,CLONE_SYMBOLS_FLAG$1)}var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;function cloneDeep($){return baseClone($,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG)}var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd($){return this.__data__.set($,HASH_UNDEFINED),this}function setCacheHas($){return this.__data__.has($)}function SetCache($){var oe=-1,ae=$==null?0:$.length;for(this.__data__=new MapCache;++oe<ae;)this.add($[oe])}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function arraySome($,oe){for(var ae=-1,ie=$==null?0:$.length;++ae<ie;)if(oe($[ae],ae,$))return!0;return!1}function cacheHas($,oe){return $.has(oe)}var COMPARE_PARTIAL_FLAG$5=1,COMPARE_UNORDERED_FLAG$3=2;function equalArrays($,oe,ae,ie,le,pe){var _e=ae&COMPARE_PARTIAL_FLAG$5,Ce=$.length,$e=oe.length;if(Ce!=$e&&!(_e&&$e>Ce))return!1;var xe=pe.get($),Ie=pe.get(oe);if(xe&&Ie)return xe==oe&&Ie==$;var Ne=-1,Fe=!0,ze=ae&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(pe.set($,oe),pe.set(oe,$);++Ne<Ce;){var At=$[Ne],Lt=oe[Ne];if(ie)var hn=_e?ie(Lt,At,Ne,oe,$,pe):ie(At,Lt,Ne,$,oe,pe);if(hn!==void 0){if(hn)continue;Fe=!1;break}if(ze){if(!arraySome(oe,function(vn,_n){if(!cacheHas(ze,_n)&&(At===vn||le(At,vn,ae,ie,pe)))return ze.push(_n)})){Fe=!1;break}}else if(!(At===Lt||le(At,Lt,ae,ie,pe))){Fe=!1;break}}return pe.delete($),pe.delete(oe),Fe}function mapToArray($){var oe=-1,ae=Array($.size);return $.forEach(function(ie,le){ae[++oe]=[le,ie]}),ae}function setToArray($){var oe=-1,ae=Array($.size);return $.forEach(function(ie){ae[++oe]=ie}),ae}var COMPARE_PARTIAL_FLAG$4=1,COMPARE_UNORDERED_FLAG$2=2,boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]",arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",symbolProto=Symbol$3?Symbol$3.prototype:void 0,symbolValueOf=symbolProto?symbolProto.valueOf:void 0;function equalByTag($,oe,ae,ie,le,pe,_e){switch(ae){case dataViewTag:if($.byteLength!=oe.byteLength||$.byteOffset!=oe.byteOffset)return!1;$=$.buffer,oe=oe.buffer;case arrayBufferTag:return!($.byteLength!=oe.byteLength||!pe(new Uint8Array$2($),new Uint8Array$2(oe)));case boolTag:case dateTag:case numberTag:return eq(+$,+oe);case errorTag:return $.name==oe.name&&$.message==oe.message;case regexpTag:case stringTag:return $==oe+"";case mapTag:var Ce=mapToArray;case setTag:var $e=ie&COMPARE_PARTIAL_FLAG$4;if(Ce||(Ce=setToArray),$.size!=oe.size&&!$e)return!1;var xe=_e.get($);if(xe)return xe==oe;ie|=COMPARE_UNORDERED_FLAG$2,_e.set($,oe);var Ie=equalArrays(Ce($),Ce(oe),ie,le,pe,_e);return _e.delete($),Ie;case symbolTag:if(symbolValueOf)return symbolValueOf.call($)==symbolValueOf.call(oe)}return!1}var COMPARE_PARTIAL_FLAG$3=1,objectProto$1=Object.prototype,hasOwnProperty$3=objectProto$1.hasOwnProperty;function equalObjects($,oe,ae,ie,le,pe){var _e=ae&COMPARE_PARTIAL_FLAG$3,Ce=getAllKeys($),$e=Ce.length,xe=getAllKeys(oe),Ie=xe.length;if($e!=Ie&&!_e)return!1;for(var Ne=$e;Ne--;){var Fe=Ce[Ne];if(!(_e?Fe in oe:hasOwnProperty$3.call(oe,Fe)))return!1}var ze=pe.get($),At=pe.get(oe);if(ze&&At)return ze==oe&&At==$;var Lt=!0;pe.set($,oe),pe.set(oe,$);for(var hn=_e;++Ne<$e;){Fe=Ce[Ne];var vn=$[Fe],_n=oe[Fe];if(ie)var bn=_e?ie(_n,vn,Fe,oe,$,pe):ie(vn,_n,Fe,$,oe,pe);if(!(bn===void 0?vn===_n||le(vn,_n,ae,ie,pe):bn)){Lt=!1;break}hn||(hn=Fe=="constructor")}if(Lt&&!hn){var Cn=$.constructor,En=oe.constructor;Cn!=En&&"constructor"in $&&"constructor"in oe&&!(typeof Cn=="function"&&Cn instanceof Cn&&typeof En=="function"&&En instanceof En)&&(Lt=!1)}return pe.delete($),pe.delete(oe),Lt}var COMPARE_PARTIAL_FLAG$2=1,argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]",objectProto=Object.prototype,hasOwnProperty$2=objectProto.hasOwnProperty;function baseIsEqualDeep($,oe,ae,ie,le,pe){var _e=isArray$b($),Ce=isArray$b(oe),$e=_e?arrayTag:getTag$1($),xe=Ce?arrayTag:getTag$1(oe);$e=$e==argsTag?objectTag:$e,xe=xe==argsTag?objectTag:xe;var Ie=$e==objectTag,Ne=xe==objectTag,Fe=$e==xe;if(Fe&&isBuffer$3($)){if(!isBuffer$3(oe))return!1;_e=!0,Ie=!1}if(Fe&&!Ie)return pe||(pe=new Stack),_e||isTypedArray$3($)?equalArrays($,oe,ae,ie,le,pe):equalByTag($,oe,$e,ae,ie,le,pe);if(!(ae&COMPARE_PARTIAL_FLAG$2)){var ze=Ie&&hasOwnProperty$2.call($,"__wrapped__"),At=Ne&&hasOwnProperty$2.call(oe,"__wrapped__");if(ze||At){var Lt=ze?$.value():$,hn=At?oe.value():oe;return pe||(pe=new Stack),le(Lt,hn,ae,ie,pe)}}return Fe?(pe||(pe=new Stack),equalObjects($,oe,ae,ie,le,pe)):!1}function baseIsEqual($,oe,ae,ie,le){return $===oe?!0:$==null||oe==null||!isObjectLike($)&&!isObjectLike(oe)?$!==$&&oe!==oe:baseIsEqualDeep($,oe,ae,ie,baseIsEqual,le)}var COMPARE_PARTIAL_FLAG$1=1,COMPARE_UNORDERED_FLAG$1=2;function baseIsMatch($,oe,ae,ie){var le=ae.length,pe=le,_e=!ie;if($==null)return!pe;for($=Object($);le--;){var Ce=ae[le];if(_e&&Ce[2]?Ce[1]!==$[Ce[0]]:!(Ce[0]in $))return!1}for(;++le<pe;){Ce=ae[le];var $e=Ce[0],xe=$[$e],Ie=Ce[1];if(_e&&Ce[2]){if(xe===void 0&&!($e in $))return!1}else{var Ne=new Stack;if(ie)var Fe=ie(xe,Ie,$e,$,oe,Ne);if(!(Fe===void 0?baseIsEqual(Ie,xe,COMPARE_PARTIAL_FLAG$1|COMPARE_UNORDERED_FLAG$1,ie,Ne):Fe))return!1}}return!0}function isStrictComparable($){return $===$&&!isObject$7($)}function getMatchData($){for(var oe=keys$1($),ae=oe.length;ae--;){var ie=oe[ae],le=$[ie];oe[ae]=[ie,le,isStrictComparable(le)]}return oe}function matchesStrictComparable($,oe){return function(ae){return ae==null?!1:ae[$]===oe&&(oe!==void 0||$ in Object(ae))}}function baseMatches($){var oe=getMatchData($);return oe.length==1&&oe[0][2]?matchesStrictComparable(oe[0][0],oe[0][1]):function(ae){return ae===$||baseIsMatch(ae,$,oe)}}function baseHasIn($,oe){return $!=null&&oe in Object($)}function hasPath($,oe,ae){oe=castPath(oe,$);for(var ie=-1,le=oe.length,pe=!1;++ie<le;){var _e=toKey(oe[ie]);if(!(pe=$!=null&&ae($,_e)))break;$=$[_e]}return pe||++ie!=le?pe:(le=$==null?0:$.length,!!le&&isLength(le)&&isIndex(_e,le)&&(isArray$b($)||isArguments$1($)))}function hasIn($,oe){return $!=null&&hasPath($,oe,baseHasIn)}var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty($,oe){return isKey($)&&isStrictComparable(oe)?matchesStrictComparable(toKey($),oe):function(ae){var ie=get$1(ae,$);return ie===void 0&&ie===oe?hasIn(ae,$):baseIsEqual(oe,ie,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}function baseProperty($){return function(oe){return oe==null?void 0:oe[$]}}function basePropertyDeep($){return function(oe){return baseGet(oe,$)}}function property($){return isKey($)?baseProperty(toKey($)):basePropertyDeep($)}function baseIteratee($){return typeof $=="function"?$:$==null?identity$1:typeof $=="object"?isArray$b($)?baseMatchesProperty($[0],$[1]):baseMatches($):property($)}function createBaseFor($){return function(oe,ae,ie){for(var le=-1,pe=Object(oe),_e=ie(oe),Ce=_e.length;Ce--;){var $e=_e[$?Ce:++le];if(ae(pe[$e],$e,pe)===!1)break}return oe}}var baseFor=createBaseFor();const baseFor$1=baseFor;function baseForOwn($,oe){return $&&baseFor$1($,oe,keys$1)}function createBaseEach($,oe){return function(ae,ie){if(ae==null)return ae;if(!isArrayLike$1(ae))return $(ae,ie);for(var le=ae.length,pe=oe?le:-1,_e=Object(ae);(oe?pe--:++pe<le)&&ie(_e[pe],pe,_e)!==!1;);return ae}}var baseEach=createBaseEach(baseForOwn);const baseEach$1=baseEach;var now=function(){return root$1.Date.now()};const now$1=now;var FUNC_ERROR_TEXT$1="Expected a function",nativeMax=Math.max,nativeMin=Math.min;function debounce($,oe,ae){var ie,le,pe,_e,Ce,$e,xe=0,Ie=!1,Ne=!1,Fe=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT$1);oe=toNumber(oe)||0,isObject$7(ae)&&(Ie=!!ae.leading,Ne="maxWait"in ae,pe=Ne?nativeMax(toNumber(ae.maxWait)||0,oe):pe,Fe="trailing"in ae?!!ae.trailing:Fe);function ze($n){var wn=ie,Tn=le;return ie=le=void 0,xe=$n,_e=$.apply(Tn,wn),_e}function At($n){return xe=$n,Ce=setTimeout(vn,oe),Ie?ze($n):_e}function Lt($n){var wn=$n-$e,Tn=$n-xe,xn=oe-wn;return Ne?nativeMin(xn,pe-Tn):xn}function hn($n){var wn=$n-$e,Tn=$n-xe;return $e===void 0||wn>=oe||wn<0||Ne&&Tn>=pe}function vn(){var $n=now$1();if(hn($n))return _n($n);Ce=setTimeout(vn,Lt($n))}function _n($n){return Ce=void 0,Fe&&ie?ze($n):(ie=le=void 0,_e)}function bn(){Ce!==void 0&&clearTimeout(Ce),xe=0,ie=$e=le=Ce=void 0}function Cn(){return Ce===void 0?_e:_n(now$1())}function En(){var $n=now$1(),wn=hn($n);if(ie=arguments,le=this,$e=$n,wn){if(Ce===void 0)return At($e);if(Ne)return clearTimeout(Ce),Ce=setTimeout(vn,oe),ze($e)}return Ce===void 0&&(Ce=setTimeout(vn,oe)),_e}return En.cancel=bn,En.flush=Cn,En}function assignMergeValue($,oe,ae){(ae!==void 0&&!eq($[oe],ae)||ae===void 0&&!(oe in $))&&baseAssignValue($,oe,ae)}function isArrayLikeObject($){return isObjectLike($)&&isArrayLike$1($)}function safeGet($,oe){if(!(oe==="constructor"&&typeof $[oe]=="function")&&oe!="__proto__")return $[oe]}function toPlainObject($){return copyObject($,keysIn($))}function baseMergeDeep($,oe,ae,ie,le,pe,_e){var Ce=safeGet($,ae),$e=safeGet(oe,ae),xe=_e.get($e);if(xe){assignMergeValue($,ae,xe);return}var Ie=pe?pe(Ce,$e,ae+"",$,oe,_e):void 0,Ne=Ie===void 0;if(Ne){var Fe=isArray$b($e),ze=!Fe&&isBuffer$3($e),At=!Fe&&!ze&&isTypedArray$3($e);Ie=$e,Fe||ze||At?isArray$b(Ce)?Ie=Ce:isArrayLikeObject(Ce)?Ie=copyArray(Ce):ze?(Ne=!1,Ie=cloneBuffer($e,!0)):At?(Ne=!1,Ie=cloneTypedArray($e,!0)):Ie=[]:isPlainObject$3($e)||isArguments$1($e)?(Ie=Ce,isArguments$1(Ce)?Ie=toPlainObject(Ce):(!isObject$7(Ce)||isFunction$3(Ce))&&(Ie=initCloneObject($e))):Ne=!1}Ne&&(_e.set($e,Ie),le(Ie,$e,ie,pe,_e),_e.delete($e)),assignMergeValue($,ae,Ie)}function baseMerge($,oe,ae,ie,le){$!==oe&&baseFor$1(oe,function(pe,_e){if(le||(le=new Stack),isObject$7(pe))baseMergeDeep($,oe,_e,ae,baseMerge,ie,le);else{var Ce=ie?ie(safeGet($,_e),pe,_e+"",$,oe,le):void 0;Ce===void 0&&(Ce=pe),assignMergeValue($,_e,Ce)}},keysIn)}function arrayIncludesWith($,oe,ae){for(var ie=-1,le=$==null?0:$.length;++ie<le;)if(ae(oe,$[ie]))return!0;return!1}function baseMap($,oe){var ae=-1,ie=isArrayLike$1($)?Array($.length):[];return baseEach$1($,function(le,pe,_e){ie[++ae]=oe(le,pe,_e)}),ie}function map$3($,oe){var ae=isArray$b($)?arrayMap:baseMap;return ae($,baseIteratee(oe))}function flatMap($,oe){return baseFlatten(map$3($,oe),1)}var INFINITY$1=1/0;function flattenDeep($){var oe=$==null?0:$.length;return oe?baseFlatten($,INFINITY$1):[]}function fromPairs($){for(var oe=-1,ae=$==null?0:$.length,ie={};++oe<ae;){var le=$[oe];ie[le[0]]=le[1]}return ie}function isEqual$1($,oe){return baseIsEqual($,oe)}function isNil($){return $==null}function isUndefined$2($){return $===void 0}var merge$3=createAssigner(function($,oe,ae){baseMerge($,oe,ae)});const merge$4=merge$3;function baseSet($,oe,ae,ie){if(!isObject$7($))return $;oe=castPath(oe,$);for(var le=-1,pe=oe.length,_e=pe-1,Ce=$;Ce!=null&&++le<pe;){var $e=toKey(oe[le]),xe=ae;if($e==="__proto__"||$e==="constructor"||$e==="prototype")return $;if(le!=_e){var Ie=Ce[$e];xe=ie?ie(Ie,$e,Ce):void 0,xe===void 0&&(xe=isObject$7(Ie)?Ie:isIndex(oe[le+1])?[]:{})}assignValue(Ce,$e,xe),Ce=Ce[$e]}return $}function basePickBy($,oe,ae){for(var ie=-1,le=oe.length,pe={};++ie<le;){var _e=oe[ie],Ce=baseGet($,_e);ae(Ce,_e)&&baseSet(pe,castPath(_e,$),Ce)}return pe}function basePick($,oe){return basePickBy($,oe,function(ae,ie){return hasIn($,ie)})}var pick=flatRest(function($,oe){return $==null?{}:basePick($,oe)});const pick$1=pick;function set$2($,oe,ae){return $==null?$:baseSet($,oe,ae)}var FUNC_ERROR_TEXT="Expected a function";function throttle$1($,oe,ae){var ie=!0,le=!0;if(typeof $!="function")throw new TypeError(FUNC_ERROR_TEXT);return isObject$7(ae)&&(ie="leading"in ae?!!ae.leading:ie,le="trailing"in ae?!!ae.trailing:le),debounce($,oe,{leading:ie,maxWait:oe,trailing:le})}var INFINITY=1/0,createSet=Set$2&&1/setToArray(new Set$2([,-0]))[1]==INFINITY?function($){return new Set$2($)}:noop$6;const createSet$1=createSet;var LARGE_ARRAY_SIZE=200;function baseUniq($,oe,ae){var ie=-1,le=arrayIncludes,pe=$.length,_e=!0,Ce=[],$e=Ce;if(ae)_e=!1,le=arrayIncludesWith;else if(pe>=LARGE_ARRAY_SIZE){var xe=oe?null:createSet$1($);if(xe)return setToArray(xe);_e=!1,le=cacheHas,$e=new SetCache}else $e=oe?[]:Ce;e:for(;++ie<pe;){var Ie=$[ie],Ne=oe?oe(Ie):Ie;if(Ie=ae||Ie!==0?Ie:0,_e&&Ne===Ne){for(var Fe=$e.length;Fe--;)if($e[Fe]===Ne)continue e;oe&&$e.push(Ne),Ce.push(Ie)}else le($e,Ne,ae)||($e!==Ce&&$e.push(Ne),Ce.push(Ie))}return Ce}var union=baseRest(function($){return baseUniq(baseFlatten($,1,isArrayLikeObject,!0))});const union$1=union,isUndefined$1=$=>$===void 0,isBoolean$3=$=>typeof $=="boolean",isNumber$5=$=>typeof $=="number",isEmpty=$=>!$&&$!==0||isArray$c($)&&$.length===0||isObject$8($)&&!Object.keys($).length,isElement$2=$=>typeof Element>"u"?!1:$ instanceof Element,isPropAbsent=$=>isNil($),isStringNumber=$=>isString$7($)?!Number.isNaN(Number($)):!1,escapeStringRegexp=($="")=>$.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize$1=$=>capitalize$2($),keysOf=$=>Object.keys($),entriesOf=$=>Object.entries($),getProp=($,oe,ae)=>({get value(){return get$1($,oe,ae)},set value(ie){set$2($,oe,ie)}});class ElementPlusError extends Error{constructor(oe){super(oe),this.name="ElementPlusError"}}function throwError$1($,oe){throw new ElementPlusError(`[${$}] ${oe}`)}function debugWarn($,oe){}const classNameToArray=($="")=>$.split(" ").filter(oe=>!!oe.trim()),hasClass=($,oe)=>{if(!$||!oe)return!1;if(oe.includes(" "))throw new Error("className should not contain space.");return $.classList.contains(oe)},addClass=($,oe)=>{!$||!oe.trim()||$.classList.add(...classNameToArray(oe))},removeClass=($,oe)=>{!$||!oe.trim()||$.classList.remove(...classNameToArray(oe))},getStyle$1=($,oe)=>{var ae;if(!isClient$2||!$||!oe)return"";let ie=camelize(oe);ie==="float"&&(ie="cssFloat");try{const le=$.style[ie];if(le)return le;const pe=(ae=document.defaultView)==null?void 0:ae.getComputedStyle($,"");return pe?pe[ie]:""}catch{return $.style[ie]}};function addUnit($,oe="px"){if(!$)return"";if(isNumber$5($)||isStringNumber($))return`${$}${oe}`;if(isString$7($))return $}const isScroll=($,oe)=>{if(!isClient$2)return!1;const ae={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(oe)],ie=getStyle$1($,ae);return["scroll","auto","overlay"].some(le=>ie.includes(le))},getScrollContainer=($,oe)=>{if(!isClient$2)return;let ae=$;for(;ae;){if([window,document,document.documentElement].includes(ae))return window;if(isScroll(ae,oe))return ae;ae=ae.parentNode}return ae};let scrollBarWidth;const getScrollBarWidth=$=>{var oe;if(!isClient$2)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const ae=document.createElement("div");ae.className=`${$}-scrollbar__wrap`,ae.style.visibility="hidden",ae.style.width="100px",ae.style.position="absolute",ae.style.top="-9999px",document.body.appendChild(ae);const ie=ae.offsetWidth;ae.style.overflow="scroll";const le=document.createElement("div");le.style.width="100%",ae.appendChild(le);const pe=le.offsetWidth;return(oe=ae.parentNode)==null||oe.removeChild(ae),scrollBarWidth=ie-pe,scrollBarWidth};function scrollIntoView($,oe){if(!isClient$2)return;if(!oe){$.scrollTop=0;return}const ae=[];let ie=oe.offsetParent;for(;ie!==null&&$!==ie&&$.contains(ie);)ae.push(ie),ie=ie.offsetParent;const le=oe.offsetTop+ae.reduce(($e,xe)=>$e+xe.offsetTop,0),pe=le+oe.offsetHeight,_e=$.scrollTop,Ce=_e+$.clientHeight;le<_e?$.scrollTop=le:pe>Ce&&($.scrollTop=pe-$.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=($,oe)=>{let ae=$.__vccOpts||$;for(let[ie,le]of oe)ae[ie]=le;return ae},arrow_down_vue_vue_type_script_lang_default={name:"ArrowDown"},_hoisted_16$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_26=createBaseVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"},null,-1),_hoisted_36=[_hoisted_26];function _sfc_render6($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_16$1,_hoisted_36)}var arrow_down_default=export_helper_default(arrow_down_vue_vue_type_script_lang_default,[["render",_sfc_render6],["__file","arrow-down.vue"]]),arrow_left_vue_vue_type_script_lang_default={name:"ArrowLeft"},_hoisted_18$1={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_28=createBaseVNode("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_38=[_hoisted_28];function _sfc_render8($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_18$1,_hoisted_38)}var arrow_left_default=export_helper_default(arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render8],["__file","arrow-left.vue"]]),arrow_right_vue_vue_type_script_lang_default={name:"ArrowRight"},_hoisted_110={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_210=createBaseVNode("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"},null,-1),_hoisted_310=[_hoisted_210];function _sfc_render10($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_110,_hoisted_310)}var arrow_right_default=export_helper_default(arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render10],["__file","arrow-right.vue"]]),arrow_up_vue_vue_type_script_lang_default={name:"ArrowUp"},_hoisted_112={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_212=createBaseVNode("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0z"},null,-1),_hoisted_312=[_hoisted_212];function _sfc_render12($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_112,_hoisted_312)}var arrow_up_default=export_helper_default(arrow_up_vue_vue_type_script_lang_default,[["render",_sfc_render12],["__file","arrow-up.vue"]]),back_vue_vue_type_script_lang_default={name:"Back"},_hoisted_114={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_214=createBaseVNode("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),_hoisted_314=createBaseVNode("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312L237.248 512z"},null,-1),_hoisted_44=[_hoisted_214,_hoisted_314];function _sfc_render14($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_114,_hoisted_44)}var back_default=export_helper_default(back_vue_vue_type_script_lang_default,[["render",_sfc_render14],["__file","back.vue"]]),calendar_vue_vue_type_script_lang_default={name:"Calendar"},_hoisted_129={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_229=createBaseVNode("path",{fill:"currentColor",d:"M128 384v512h768V192H768v32a32 32 0 1 1-64 0v-32H320v32a32 32 0 0 1-64 0v-32H128v128h768v64H128zm192-256h384V96a32 32 0 1 1 64 0v32h160a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h160V96a32 32 0 0 1 64 0v32zm-32 384h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 0 1 0 64h-64a32 32 0 0 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm192-192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64zm0 192h64a32 32 0 1 1 0 64h-64a32 32 0 1 1 0-64z"},null,-1),_hoisted_328=[_hoisted_229];function _sfc_render29($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_129,_hoisted_328)}var calendar_default=export_helper_default(calendar_vue_vue_type_script_lang_default,[["render",_sfc_render29],["__file","calendar.vue"]]),caret_right_vue_vue_type_script_lang_default={name:"CaretRight"},_hoisted_134={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_234=createBaseVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"},null,-1),_hoisted_333=[_hoisted_234];function _sfc_render34($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_134,_hoisted_333)}var caret_right_default=export_helper_default(caret_right_vue_vue_type_script_lang_default,[["render",_sfc_render34],["__file","caret-right.vue"]]),caret_top_vue_vue_type_script_lang_default={name:"CaretTop"},_hoisted_135={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_235=createBaseVNode("path",{fill:"currentColor",d:"M512 320 192 704h639.936z"},null,-1),_hoisted_334=[_hoisted_235];function _sfc_render35($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_135,_hoisted_334)}var caret_top_default=export_helper_default(caret_top_vue_vue_type_script_lang_default,[["render",_sfc_render35],["__file","caret-top.vue"]]),check_vue_vue_type_script_lang_default={name:"Check"},_hoisted_143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_243=createBaseVNode("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"},null,-1),_hoisted_342=[_hoisted_243];function _sfc_render43($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_143,_hoisted_342)}var check_default=export_helper_default(check_vue_vue_type_script_lang_default,[["render",_sfc_render43],["__file","check.vue"]]),circle_check_filled_vue_vue_type_script_lang_default={name:"CircleCheckFilled"},_hoisted_148={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_248=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_347=[_hoisted_248];function _sfc_render48($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_148,_hoisted_347)}var circle_check_filled_default=export_helper_default(circle_check_filled_vue_vue_type_script_lang_default,[["render",_sfc_render48],["__file","circle-check-filled.vue"]]),circle_check_vue_vue_type_script_lang_default={name:"CircleCheck"},_hoisted_149={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_249=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_348=createBaseVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"},null,-1),_hoisted_415=[_hoisted_249,_hoisted_348];function _sfc_render49($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_149,_hoisted_415)}var circle_check_default=export_helper_default(circle_check_vue_vue_type_script_lang_default,[["render",_sfc_render49],["__file","circle-check.vue"]]),circle_close_filled_vue_vue_type_script_lang_default={name:"CircleCloseFilled"},_hoisted_150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_250=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336L512 457.664z"},null,-1),_hoisted_349=[_hoisted_250];function _sfc_render50($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_150,_hoisted_349)}var circle_close_filled_default=export_helper_default(circle_close_filled_vue_vue_type_script_lang_default,[["render",_sfc_render50],["__file","circle-close-filled.vue"]]),circle_close_vue_vue_type_script_lang_default={name:"CircleClose"},_hoisted_151={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_251=createBaseVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248L466.752 512z"},null,-1),_hoisted_350=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_416=[_hoisted_251,_hoisted_350];function _sfc_render51($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_151,_hoisted_416)}var circle_close_default=export_helper_default(circle_close_vue_vue_type_script_lang_default,[["render",_sfc_render51],["__file","circle-close.vue"]]),clock_vue_vue_type_script_lang_default={name:"Clock"},_hoisted_154={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_254=createBaseVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),_hoisted_353=createBaseVNode("path",{fill:"currentColor",d:"M480 256a32 32 0 0 1 32 32v256a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32z"},null,-1),_hoisted_418=createBaseVNode("path",{fill:"currentColor",d:"M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"},null,-1),_hoisted_56=[_hoisted_254,_hoisted_353,_hoisted_418];function _sfc_render54($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_154,_hoisted_56)}var clock_default=export_helper_default(clock_vue_vue_type_script_lang_default,[["render",_sfc_render54],["__file","clock.vue"]]),close_vue_vue_type_script_lang_default={name:"Close"},_hoisted_156={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_256=createBaseVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"},null,-1),_hoisted_355=[_hoisted_256];function _sfc_render56($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_156,_hoisted_355)}var close_default=export_helper_default(close_vue_vue_type_script_lang_default,[["render",_sfc_render56],["__file","close.vue"]]),d_arrow_left_vue_vue_type_script_lang_default={name:"DArrowLeft"},_hoisted_172={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_272=createBaseVNode("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"},null,-1),_hoisted_371=[_hoisted_272];function _sfc_render72($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_172,_hoisted_371)}var d_arrow_left_default=export_helper_default(d_arrow_left_vue_vue_type_script_lang_default,[["render",_sfc_render72],["__file","d-arrow-left.vue"]]),d_arrow_right_vue_vue_type_script_lang_default={name:"DArrowRight"},_hoisted_173={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_273=createBaseVNode("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),_hoisted_372=[_hoisted_273];function _sfc_render73($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_173,_hoisted_372)}var d_arrow_right_default=export_helper_default(d_arrow_right_vue_vue_type_script_lang_default,[["render",_sfc_render73],["__file","d-arrow-right.vue"]]),delete_vue_vue_type_script_lang_default={name:"Delete"},_hoisted_180={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_280=createBaseVNode("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),_hoisted_379=[_hoisted_280];function _sfc_render80($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_180,_hoisted_379)}var delete_default=export_helper_default(delete_vue_vue_type_script_lang_default,[["render",_sfc_render80],["__file","delete.vue"]]),document_vue_vue_type_script_lang_default={name:"Document"},_hoisted_190={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_290=createBaseVNode("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),_hoisted_389=[_hoisted_290];function _sfc_render90($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_190,_hoisted_389)}var document_default=export_helper_default(document_vue_vue_type_script_lang_default,[["render",_sfc_render90],["__file","document.vue"]]),full_screen_vue_vue_type_script_lang_default={name:"FullScreen"},_hoisted_1118={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2118=createBaseVNode("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),_hoisted_3117=[_hoisted_2118];function _sfc_render118($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1118,_hoisted_3117)}var full_screen_default=export_helper_default(full_screen_vue_vue_type_script_lang_default,[["render",_sfc_render118],["__file","full-screen.vue"]]),hide_vue_vue_type_script_lang_default={name:"Hide"},_hoisted_1133={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2133=createBaseVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"},null,-1),_hoisted_3132=createBaseVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"},null,-1),_hoisted_438=[_hoisted_2133,_hoisted_3132];function _sfc_render133($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1133,_hoisted_438)}var hide_default=export_helper_default(hide_vue_vue_type_script_lang_default,[["render",_sfc_render133],["__file","hide.vue"]]),info_filled_vue_vue_type_script_lang_default={name:"InfoFilled"},_hoisted_1143={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2143=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"},null,-1),_hoisted_3142=[_hoisted_2143];function _sfc_render143($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1143,_hoisted_3142)}var info_filled_default=export_helper_default(info_filled_vue_vue_type_script_lang_default,[["render",_sfc_render143],["__file","info-filled.vue"]]),loading_vue_vue_type_script_lang_default={name:"Loading"},_hoisted_1150={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2150=createBaseVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0zm-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"},null,-1),_hoisted_3149=[_hoisted_2150];function _sfc_render150($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1150,_hoisted_3149)}var loading_default=export_helper_default(loading_vue_vue_type_script_lang_default,[["render",_sfc_render150],["__file","loading.vue"]]),minus_vue_vue_type_script_lang_default={name:"Minus"},_hoisted_1169={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2169=createBaseVNode("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),_hoisted_3168=[_hoisted_2169];function _sfc_render169($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1169,_hoisted_3168)}var minus_default=export_helper_default(minus_vue_vue_type_script_lang_default,[["render",_sfc_render169],["__file","minus.vue"]]),more_filled_vue_vue_type_script_lang_default={name:"MoreFilled"},_hoisted_1174={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2174=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_hoisted_3173=[_hoisted_2174];function _sfc_render174($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1174,_hoisted_3173)}var more_filled_default=export_helper_default(more_filled_vue_vue_type_script_lang_default,[["render",_sfc_render174],["__file","more-filled.vue"]]),more_vue_vue_type_script_lang_default={name:"More"},_hoisted_1175={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2175=createBaseVNode("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),_hoisted_3174=[_hoisted_2175];function _sfc_render175($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1175,_hoisted_3174)}var more_default=export_helper_default(more_vue_vue_type_script_lang_default,[["render",_sfc_render175],["__file","more.vue"]]),picture_filled_vue_vue_type_script_lang_default={name:"PictureFilled"},_hoisted_1195={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2195=createBaseVNode("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32H96zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),_hoisted_3194=[_hoisted_2195];function _sfc_render195($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1195,_hoisted_3194)}var picture_filled_default=export_helper_default(picture_filled_vue_vue_type_script_lang_default,[["render",_sfc_render195],["__file","picture-filled.vue"]]),plus_vue_vue_type_script_lang_default={name:"Plus"},_hoisted_1201={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2201=createBaseVNode("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64h352z"},null,-1),_hoisted_3200=[_hoisted_2201];function _sfc_render201($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1201,_hoisted_3200)}var plus_default=export_helper_default(plus_vue_vue_type_script_lang_default,[["render",_sfc_render201],["__file","plus.vue"]]),question_filled_vue_vue_type_script_lang_default={name:"QuestionFilled"},_hoisted_1211={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2211=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"},null,-1),_hoisted_3210=[_hoisted_2211];function _sfc_render211($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1211,_hoisted_3210)}var question_filled_default=export_helper_default(question_filled_vue_vue_type_script_lang_default,[["render",_sfc_render211],["__file","question-filled.vue"]]),refresh_left_vue_vue_type_script_lang_default={name:"RefreshLeft"},_hoisted_1215={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2215=createBaseVNode("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"},null,-1),_hoisted_3214=[_hoisted_2215];function _sfc_render215($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1215,_hoisted_3214)}var refresh_left_default=export_helper_default(refresh_left_vue_vue_type_script_lang_default,[["render",_sfc_render215],["__file","refresh-left.vue"]]),refresh_right_vue_vue_type_script_lang_default={name:"RefreshRight"},_hoisted_1216={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2216=createBaseVNode("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88z"},null,-1),_hoisted_3215=[_hoisted_2216];function _sfc_render216($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1216,_hoisted_3215)}var refresh_right_default=export_helper_default(refresh_right_vue_vue_type_script_lang_default,[["render",_sfc_render216],["__file","refresh-right.vue"]]),scale_to_original_vue_vue_type_script_lang_default={name:"ScaleToOriginal"},_hoisted_1222={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2222=createBaseVNode("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),_hoisted_3221=[_hoisted_2222];function _sfc_render222($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1222,_hoisted_3221)}var scale_to_original_default=export_helper_default(scale_to_original_vue_vue_type_script_lang_default,[["render",_sfc_render222],["__file","scale-to-original.vue"]]),search_vue_vue_type_script_lang_default={name:"Search"},_hoisted_1225={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2225=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704z"},null,-1),_hoisted_3224=[_hoisted_2225];function _sfc_render225($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1225,_hoisted_3224)}var search_default=export_helper_default(search_vue_vue_type_script_lang_default,[["render",_sfc_render225],["__file","search.vue"]]),sort_down_vue_vue_type_script_lang_default={name:"SortDown"},_hoisted_1242={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2242=createBaseVNode("path",{fill:"currentColor",d:"M576 96v709.568L333.312 562.816A32 32 0 1 0 288 608l297.408 297.344A32 32 0 0 0 640 882.688V96a32 32 0 0 0-64 0z"},null,-1),_hoisted_3241=[_hoisted_2242];function _sfc_render242($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1242,_hoisted_3241)}var sort_down_default=export_helper_default(sort_down_vue_vue_type_script_lang_default,[["render",_sfc_render242],["__file","sort-down.vue"]]),sort_up_vue_vue_type_script_lang_default={name:"SortUp"},_hoisted_1243={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2243=createBaseVNode("path",{fill:"currentColor",d:"M384 141.248V928a32 32 0 1 0 64 0V218.56l242.688 242.688A32 32 0 1 0 736 416L438.592 118.656A32 32 0 0 0 384 141.248z"},null,-1),_hoisted_3242=[_hoisted_2243];function _sfc_render243($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1243,_hoisted_3242)}var sort_up_default=export_helper_default(sort_up_vue_vue_type_script_lang_default,[["render",_sfc_render243],["__file","sort-up.vue"]]),star_filled_vue_vue_type_script_lang_default={name:"StarFilled"},_hoisted_1246={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2246=createBaseVNode("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72z"},null,-1),_hoisted_3245=[_hoisted_2246];function _sfc_render246($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1246,_hoisted_3245)}var star_filled_default=export_helper_default(star_filled_vue_vue_type_script_lang_default,[["render",_sfc_render246],["__file","star-filled.vue"]]),star_vue_vue_type_script_lang_default={name:"Star"},_hoisted_1247={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2247=createBaseVNode("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72L512 747.84zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"},null,-1),_hoisted_3246=[_hoisted_2247];function _sfc_render247($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1247,_hoisted_3246)}var star_default=export_helper_default(star_vue_vue_type_script_lang_default,[["render",_sfc_render247],["__file","star.vue"]]),success_filled_vue_vue_type_script_lang_default={name:"SuccessFilled"},_hoisted_1249={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2249=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),_hoisted_3248=[_hoisted_2249];function _sfc_render249($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1249,_hoisted_3248)}var success_filled_default=export_helper_default(success_filled_vue_vue_type_script_lang_default,[["render",_sfc_render249],["__file","success-filled.vue"]]),view_vue_vue_type_script_lang_default={name:"View"},_hoisted_1283={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2283=createBaseVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),_hoisted_3282=[_hoisted_2283];function _sfc_render283($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1283,_hoisted_3282)}var view_default=export_helper_default(view_vue_vue_type_script_lang_default,[["render",_sfc_render283],["__file","view.vue"]]),warning_filled_vue_vue_type_script_lang_default={name:"WarningFilled"},_hoisted_1287={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2287=createBaseVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),_hoisted_3286=[_hoisted_2287];function _sfc_render287($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1287,_hoisted_3286)}var warning_filled_default=export_helper_default(warning_filled_vue_vue_type_script_lang_default,[["render",_sfc_render287],["__file","warning-filled.vue"]]),zoom_in_vue_vue_type_script_lang_default={name:"ZoomIn"},_hoisted_1292={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2292=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zm-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64h96z"},null,-1),_hoisted_3291=[_hoisted_2292];function _sfc_render292($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1292,_hoisted_3291)}var zoom_in_default=export_helper_default(zoom_in_vue_vue_type_script_lang_default,[["render",_sfc_render292],["__file","zoom-in.vue"]]),zoom_out_vue_vue_type_script_lang_default={name:"ZoomOut"},_hoisted_1293={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},_hoisted_2293=createBaseVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),_hoisted_3292=[_hoisted_2293];function _sfc_render293($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("svg",_hoisted_1293,_hoisted_3292)}var zoom_out_default=export_helper_default(zoom_out_vue_vue_type_script_lang_default,[["render",_sfc_render293],["__file","zoom-out.vue"]]);const epPropKey="__epPropKey",definePropType=$=>$,isEpProp=$=>isObject$8($)&&!!$[epPropKey],buildProp=($,oe)=>{if(!isObject$8($)||isEpProp($))return $;const{values:ae,required:ie,default:le,type:pe,validator:_e}=$,$e={type:pe,required:!!ie,validator:ae||_e?xe=>{let Ie=!1,Ne=[];if(ae&&(Ne=Array.from(ae),hasOwn$4($,"default")&&Ne.push(le),Ie||(Ie=Ne.includes(xe))),_e&&(Ie||(Ie=_e(xe))),!Ie&&Ne.length>0){const Fe=[...new Set(Ne)].map(ze=>JSON.stringify(ze)).join(", ");warn$2(`Invalid prop: validation failed${oe?` for prop "${oe}"`:""}. Expected one of [${Fe}], got value ${JSON.stringify(xe)}.`)}return Ie}:void 0,[epPropKey]:!0};return hasOwn$4($,"default")&&($e.default=le),$e},buildProps=$=>fromPairs(Object.entries($).map(([oe,ae])=>[oe,buildProp(ae,oe)])),iconPropType=definePropType([String,Object,Function]),CloseComponents={Close:close_default},TypeComponents={Close:close_default,SuccessFilled:success_filled_default,InfoFilled:info_filled_default,WarningFilled:warning_filled_default,CircleCloseFilled:circle_close_filled_default},TypeComponentsMap={success:success_filled_default,warning:warning_filled_default,error:circle_close_filled_default,info:info_filled_default},ValidateComponentsMap={validating:loading_default,success:circle_check_default,error:circle_close_default},withInstall=($,oe)=>{if($.install=ae=>{for(const ie of[$,...Object.values(oe??{})])ae.component(ie.name,ie)},oe)for(const[ae,ie]of Object.entries(oe))$[ae]=ie;return $},withInstallFunction=($,oe)=>($.install=ae=>{$._context=ae._context,ae.config.globalProperties[oe]=$},$),withInstallDirective=($,oe)=>($.install=ae=>{ae.directive(oe,$)},$),withNoopInstall=$=>($.install=NOOP,$),composeRefs=(...$)=>oe=>{$.forEach(ae=>{isFunction$5(ae)?ae(oe):ae.value=oe})},EVENT_CODE={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},datePickTypes=["year","month","date","dates","week","datetime","datetimerange","daterange","monthrange"],WEEK_DAYS=["sun","mon","tue","wed","thu","fri","sat"],UPDATE_MODEL_EVENT="update:modelValue",CHANGE_EVENT="change",INPUT_EVENT="input",INSTALLED_KEY=Symbol("INSTALLED_KEY"),componentSizes=["","default","small","large"],componentSizeMap={large:40,default:32,small:24},getComponentSize=$=>componentSizeMap[$||"default"],isValidComponentSize=$=>["",...componentSizes].includes($);var PatchFlags=($=>($[$.TEXT=1]="TEXT",$[$.CLASS=2]="CLASS",$[$.STYLE=4]="STYLE",$[$.PROPS=8]="PROPS",$[$.FULL_PROPS=16]="FULL_PROPS",$[$.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",$[$.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",$[$.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",$[$.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",$[$.NEED_PATCH=512]="NEED_PATCH",$[$.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",$[$.HOISTED=-1]="HOISTED",$[$.BAIL=-2]="BAIL",$))(PatchFlags||{});function isFragment($){return isVNode$1($)&&$.type===Fragment}function isComment($){return isVNode$1($)&&$.type===Comment}function isValidElementNode($){return isVNode$1($)&&!isFragment($)&&!isComment($)}const getNormalizedProps=$=>{if(!isVNode$1($))return{};const oe=$.props||{},ae=(isVNode$1($.type)?$.type.props:void 0)||{},ie={};return Object.keys(ae).forEach(le=>{hasOwn$4(ae[le],"default")&&(ie[le]=ae[le].default)}),Object.keys(oe).forEach(le=>{ie[camelize(le)]=oe[le]}),ie},ensureOnlyChild=$=>{if(!isArray$c($)||$.length>1)throw new Error("expect to receive a single Vue element child");return $[0]},flattedChildren=$=>{const oe=isArray$c($)?$:[$],ae=[];return oe.forEach(ie=>{var le;isArray$c(ie)?ae.push(...flattedChildren(ie)):isVNode$1(ie)&&isArray$c(ie.children)?ae.push(...flattedChildren(ie.children)):(ae.push(ie),isVNode$1(ie)&&((le=ie.component)!=null&&le.subTree)&&ae.push(...flattedChildren(ie.component.subTree)))}),ae},unique=$=>[...new Set($)],castArray=$=>!$&&$!==0?[]:Array.isArray($)?$:[$],isKorean=$=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test($),rAF=$=>isClient$2?window.requestAnimationFrame($):setTimeout($,16),cAF=$=>isClient$2?window.cancelAnimationFrame($):clearTimeout($),generateId=()=>Math.floor(Math.random()*1e4),mutable=$=>$,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=($={})=>{const{excludeListeners:oe=!1,excludeKeys:ae}=$,ie=computed(()=>((ae==null?void 0:ae.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),le=getCurrentInstance();return computed(le?()=>{var pe;return fromPairs(Object.entries((pe=le.proxy)==null?void 0:pe.$attrs).filter(([_e])=>!ie.value.includes(_e)&&!(oe&&LISTENER_PREFIX.test(_e))))}:()=>({}))},useDeprecated=({from:$,replacement:oe,scope:ae,version:ie,ref:le,type:pe="API"},_e)=>{watch(()=>unref(_e),Ce=>{},{immediate:!0})},useDraggable=($,oe,ae)=>{let ie={offsetX:0,offsetY:0};const le=Ce=>{const $e=Ce.clientX,xe=Ce.clientY,{offsetX:Ie,offsetY:Ne}=ie,Fe=$.value.getBoundingClientRect(),ze=Fe.left,At=Fe.top,Lt=Fe.width,hn=Fe.height,vn=document.documentElement.clientWidth,_n=document.documentElement.clientHeight,bn=-ze+Ie,Cn=-At+Ne,En=vn-ze-Lt+Ie,$n=_n-At-hn+Ne,wn=xn=>{const kn=Math.min(Math.max(Ie+xn.clientX-$e,bn),En),An=Math.min(Math.max(Ne+xn.clientY-xe,Cn),$n);ie={offsetX:kn,offsetY:An},$.value.style.transform=`translate(${addUnit(kn)}, ${addUnit(An)})`},Tn=()=>{document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",Tn)};document.addEventListener("mousemove",wn),document.addEventListener("mouseup",Tn)},pe=()=>{oe.value&&$.value&&oe.value.addEventListener("mousedown",le)},_e=()=>{oe.value&&$.value&&oe.value.removeEventListener("mousedown",le)};onMounted(()=>{watchEffect(()=>{ae.value?pe():_e()})}),onBeforeUnmount(()=>{_e()})},useFocus=$=>({focus:()=>{var oe,ae;(ae=(oe=$.value)==null?void 0:oe.focus)==null||ae.call(oe)}});var English={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};const buildTranslator=$=>(oe,ae)=>translate$2(oe,ae,unref($)),translate$2=($,oe,ae)=>get$1(ae,$,$).replace(/\{(\w+)\}/g,(ie,le)=>{var pe;return`${(pe=oe==null?void 0:oe[le])!=null?pe:`{${le}}`}`}),buildLocaleContext=$=>{const oe=computed(()=>unref($).name),ae=isRef($)?$:ref($);return{lang:oe,locale:ae,t:buildTranslator($)}},localeContextKey=Symbol("localeContextKey"),useLocale=$=>{const oe=$||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>oe.value||English))},defaultNamespace="el",statePrefix="is-",_bem=($,oe,ae,ie,le)=>{let pe=`${$}-${oe}`;return ae&&(pe+=`-${ae}`),ie&&(pe+=`__${ie}`),le&&(pe+=`--${le}`),pe},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=$=>{const oe=$||inject(namespaceContextKey,ref(defaultNamespace));return computed(()=>unref(oe)||defaultNamespace)},useNamespace=($,oe)=>{const ae=useGetDerivedNamespace(oe);return{namespace:ae,b:(Lt="")=>_bem(ae.value,$,Lt,"",""),e:Lt=>Lt?_bem(ae.value,$,"",Lt,""):"",m:Lt=>Lt?_bem(ae.value,$,"","",Lt):"",be:(Lt,hn)=>Lt&&hn?_bem(ae.value,$,Lt,hn,""):"",em:(Lt,hn)=>Lt&&hn?_bem(ae.value,$,"",Lt,hn):"",bm:(Lt,hn)=>Lt&&hn?_bem(ae.value,$,Lt,"",hn):"",bem:(Lt,hn,vn)=>Lt&&hn&&vn?_bem(ae.value,$,Lt,hn,vn):"",is:(Lt,...hn)=>{const vn=hn.length>=1?hn[0]:!0;return Lt&&vn?`${statePrefix}${Lt}`:""},cssVar:Lt=>{const hn={};for(const vn in Lt)Lt[vn]&&(hn[`--${ae.value}-${vn}`]=Lt[vn]);return hn},cssVarName:Lt=>`--${ae.value}-${Lt}`,cssVarBlock:Lt=>{const hn={};for(const vn in Lt)Lt[vn]&&(hn[`--${ae.value}-${$}-${vn}`]=Lt[vn]);return hn},cssVarBlockName:Lt=>`--${ae.value}-${$}-${Lt}`}},useLockscreen=($,oe={})=>{isRef($)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const ae=oe.ns||useNamespace("popup"),ie=computed$1(()=>ae.bm("parent","hidden"));if(!isClient$2||hasClass(document.body,ie.value))return;let le=0,pe=!1,_e="0";const Ce=()=>{setTimeout(()=>{removeClass(document==null?void 0:document.body,ie.value),pe&&document&&(document.body.style.width=_e)},200)};watch($,$e=>{if(!$e){Ce();return}pe=!hasClass(document.body,ie.value),pe&&(_e=document.body.style.width),le=getScrollBarWidth(ae.namespace.value);const xe=document.documentElement.clientHeight<document.body.scrollHeight,Ie=getStyle$1(document.body,"overflowY");le>0&&(xe||Ie==="scroll")&&pe&&(document.body.style.width=`calc(100% - ${le}px)`),addClass(document.body,ie.value)}),onScopeDispose(()=>Ce())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=$=>{const oe=`update:${$}`,ae=`onUpdate:${$}`,ie=[oe],le={[$]:_prop,[ae]:_event};return{useModelToggle:({indicator:_e,toggleReason:Ce,shouldHideWhenRouteChanges:$e,shouldProceed:xe,onShow:Ie,onHide:Ne})=>{const Fe=getCurrentInstance(),{emit:ze}=Fe,At=Fe.props,Lt=computed(()=>isFunction$5(At[ae])),hn=computed(()=>At[$]===null),vn=wn=>{_e.value!==!0&&(_e.value=!0,Ce&&(Ce.value=wn),isFunction$5(Ie)&&Ie(wn))},_n=wn=>{_e.value!==!1&&(_e.value=!1,Ce&&(Ce.value=wn),isFunction$5(Ne)&&Ne(wn))},bn=wn=>{if(At.disabled===!0||isFunction$5(xe)&&!xe())return;const Tn=Lt.value&&isClient$2;Tn&&ze(oe,!0),(hn.value||!Tn)&&vn(wn)},Cn=wn=>{if(At.disabled===!0||!isClient$2)return;const Tn=Lt.value&&isClient$2;Tn&&ze(oe,!1),(hn.value||!Tn)&&_n(wn)},En=wn=>{isBoolean$3(wn)&&(At.disabled&&wn?Lt.value&&ze(oe,!1):_e.value!==wn&&(wn?vn():_n()))},$n=()=>{_e.value?Cn():bn()};return watch(()=>At[$],En),$e&&Fe.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...Fe.proxy.$route}),()=>{$e.value&&_e.value&&Cn()}),onMounted(()=>{En(At[$])}),{hide:Cn,show:bn,toggle:$n,hasUpdateHandler:Lt}},useModelToggleProps:le,useModelToggleEmits:ie}};createModelToggleComposable("modelValue");const useProp=$=>{const oe=getCurrentInstance();return computed(()=>{var ae,ie;return(ie=(ae=oe==null?void 0:oe.proxy)==null?void 0:ae.$props)==null?void 0:ie[$]})};var E$2="top",R$1="bottom",W$1="right",P$3="left",me$1="auto",G$1=[E$2,R$1,W$1,P$3],U$2="start",J$2="end",Xe$1="clippingParents",je="viewport",K$2="popper",Ye="reference",De=G$1.reduce(function($,oe){return $.concat([oe+"-"+U$2,oe+"-"+J$2])},[]),Ee=[].concat(G$1,[me$1]).reduce(function($,oe){return $.concat([oe,oe+"-"+U$2,oe+"-"+J$2])},[]),Ge="beforeRead",Je$1="read",Ke$1="afterRead",Qe="beforeMain",Ze="main",et$1="afterMain",tt$1="beforeWrite",nt="write",rt$2="afterWrite",ot$1=[Ge,Je$1,Ke$1,Qe,Ze,et$1,tt$1,nt,rt$2];function C$1($){return $?($.nodeName||"").toLowerCase():null}function H$3($){if($==null)return window;if($.toString()!=="[object Window]"){var oe=$.ownerDocument;return oe&&oe.defaultView||window}return $}function Q$1($){var oe=H$3($).Element;return $ instanceof oe||$ instanceof Element}function B($){var oe=H$3($).HTMLElement;return $ instanceof oe||$ instanceof HTMLElement}function Pe($){if(typeof ShadowRoot>"u")return!1;var oe=H$3($).ShadowRoot;return $ instanceof oe||$ instanceof ShadowRoot}function Mt$1($){var oe=$.state;Object.keys(oe.elements).forEach(function(ae){var ie=oe.styles[ae]||{},le=oe.attributes[ae]||{},pe=oe.elements[ae];!B(pe)||!C$1(pe)||(Object.assign(pe.style,ie),Object.keys(le).forEach(function(_e){var Ce=le[_e];Ce===!1?pe.removeAttribute(_e):pe.setAttribute(_e,Ce===!0?"":Ce)}))})}function Rt$1($){var oe=$.state,ae={popper:{position:oe.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(oe.elements.popper.style,ae.popper),oe.styles=ae,oe.elements.arrow&&Object.assign(oe.elements.arrow.style,ae.arrow),function(){Object.keys(oe.elements).forEach(function(ie){var le=oe.elements[ie],pe=oe.attributes[ie]||{},_e=Object.keys(oe.styles.hasOwnProperty(ie)?oe.styles[ie]:ae[ie]),Ce=_e.reduce(function($e,xe){return $e[xe]="",$e},{});!B(le)||!C$1(le)||(Object.assign(le.style,Ce),Object.keys(pe).forEach(function($e){le.removeAttribute($e)}))})}}var Ae$1={name:"applyStyles",enabled:!0,phase:"write",fn:Mt$1,effect:Rt$1,requires:["computeStyles"]};function q$1($){return $.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee$1($,oe){oe===void 0&&(oe=!1);var ae=$.getBoundingClientRect(),ie=1,le=1;if(B($)&&oe){var pe=$.offsetHeight,_e=$.offsetWidth;_e>0&&(ie=Z(ae.width)/_e||1),pe>0&&(le=Z(ae.height)/pe||1)}return{width:ae.width/ie,height:ae.height/le,top:ae.top/le,right:ae.right/ie,bottom:ae.bottom/le,left:ae.left/ie,x:ae.left/ie,y:ae.top/le}}function ke($){var oe=ee$1($),ae=$.offsetWidth,ie=$.offsetHeight;return Math.abs(oe.width-ae)<=1&&(ae=oe.width),Math.abs(oe.height-ie)<=1&&(ie=oe.height),{x:$.offsetLeft,y:$.offsetTop,width:ae,height:ie}}function it$1($,oe){var ae=oe.getRootNode&&oe.getRootNode();if($.contains(oe))return!0;if(ae&&Pe(ae)){var ie=oe;do{if(ie&&$.isSameNode(ie))return!0;ie=ie.parentNode||ie.host}while(ie)}return!1}function N$2($){return H$3($).getComputedStyle($)}function Wt$1($){return["table","td","th"].indexOf(C$1($))>=0}function I$2($){return((Q$1($)?$.ownerDocument:$.document)||window.document).documentElement}function ge$1($){return C$1($)==="html"?$:$.assignedSlot||$.parentNode||(Pe($)?$.host:null)||I$2($)}function at$1($){return!B($)||N$2($).position==="fixed"?null:$.offsetParent}function Bt$1($){var oe=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,ae=navigator.userAgent.indexOf("Trident")!==-1;if(ae&&B($)){var ie=N$2($);if(ie.position==="fixed")return null}var le=ge$1($);for(Pe(le)&&(le=le.host);B(le)&&["html","body"].indexOf(C$1(le))<0;){var pe=N$2(le);if(pe.transform!=="none"||pe.perspective!=="none"||pe.contain==="paint"||["transform","perspective"].indexOf(pe.willChange)!==-1||oe&&pe.willChange==="filter"||oe&&pe.filter&&pe.filter!=="none")return le;le=le.parentNode}return null}function se$1($){for(var oe=H$3($),ae=at$1($);ae&&Wt$1(ae)&&N$2(ae).position==="static";)ae=at$1(ae);return ae&&(C$1(ae)==="html"||C$1(ae)==="body"&&N$2(ae).position==="static")?oe:ae||Bt$1($)||oe}function Le($){return["top","bottom"].indexOf($)>=0?"x":"y"}function fe$1($,oe,ae){return X$1($,ve(oe,ae))}function St($,oe,ae){var ie=fe$1($,oe,ae);return ie>ae?ae:ie}function st(){return{top:0,right:0,bottom:0,left:0}}function ft$1($){return Object.assign({},st(),$)}function ct($,oe){return oe.reduce(function(ae,ie){return ae[ie]=$,ae},{})}var Tt$1=function($,oe){return $=typeof $=="function"?$(Object.assign({},oe.rects,{placement:oe.placement})):$,ft$1(typeof $!="number"?$:ct($,G$1))};function Ht$1($){var oe,ae=$.state,ie=$.name,le=$.options,pe=ae.elements.arrow,_e=ae.modifiersData.popperOffsets,Ce=q$1(ae.placement),$e=Le(Ce),xe=[P$3,W$1].indexOf(Ce)>=0,Ie=xe?"height":"width";if(!(!pe||!_e)){var Ne=Tt$1(le.padding,ae),Fe=ke(pe),ze=$e==="y"?E$2:P$3,At=$e==="y"?R$1:W$1,Lt=ae.rects.reference[Ie]+ae.rects.reference[$e]-_e[$e]-ae.rects.popper[Ie],hn=_e[$e]-ae.rects.reference[$e],vn=se$1(pe),_n=vn?$e==="y"?vn.clientHeight||0:vn.clientWidth||0:0,bn=Lt/2-hn/2,Cn=Ne[ze],En=_n-Fe[Ie]-Ne[At],$n=_n/2-Fe[Ie]/2+bn,wn=fe$1(Cn,$n,En),Tn=$e;ae.modifiersData[ie]=(oe={},oe[Tn]=wn,oe.centerOffset=wn-$n,oe)}}function Ct$1($){var oe=$.state,ae=$.options,ie=ae.element,le=ie===void 0?"[data-popper-arrow]":ie;le!=null&&(typeof le=="string"&&(le=oe.elements.popper.querySelector(le),!le)||!it$1(oe.elements.popper,le)||(oe.elements.arrow=le))}var pt$1={name:"arrow",enabled:!0,phase:"main",fn:Ht$1,effect:Ct$1,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te($){return $.split("-")[1]}var qt$1={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt($){var oe=$.x,ae=$.y,ie=window,le=ie.devicePixelRatio||1;return{x:Z(oe*le)/le||0,y:Z(ae*le)/le||0}}function ut$1($){var oe,ae=$.popper,ie=$.popperRect,le=$.placement,pe=$.variation,_e=$.offsets,Ce=$.position,$e=$.gpuAcceleration,xe=$.adaptive,Ie=$.roundOffsets,Ne=$.isFixed,Fe=_e.x,ze=Fe===void 0?0:Fe,At=_e.y,Lt=At===void 0?0:At,hn=typeof Ie=="function"?Ie({x:ze,y:Lt}):{x:ze,y:Lt};ze=hn.x,Lt=hn.y;var vn=_e.hasOwnProperty("x"),_n=_e.hasOwnProperty("y"),bn=P$3,Cn=E$2,En=window;if(xe){var $n=se$1(ae),wn="clientHeight",Tn="clientWidth";if($n===H$3(ae)&&($n=I$2(ae),N$2($n).position!=="static"&&Ce==="absolute"&&(wn="scrollHeight",Tn="scrollWidth")),$n=$n,le===E$2||(le===P$3||le===W$1)&&pe===J$2){Cn=R$1;var xn=Ne&&$n===En&&En.visualViewport?En.visualViewport.height:$n[wn];Lt-=xn-ie.height,Lt*=$e?1:-1}if(le===P$3||(le===E$2||le===R$1)&&pe===J$2){bn=W$1;var kn=Ne&&$n===En&&En.visualViewport?En.visualViewport.width:$n[Tn];ze-=kn-ie.width,ze*=$e?1:-1}}var An=Object.assign({position:Ce},xe&&qt$1),On=Ie===!0?Vt({x:ze,y:Lt}):{x:ze,y:Lt};if(ze=On.x,Lt=On.y,$e){var Nn;return Object.assign({},An,(Nn={},Nn[Cn]=_n?"0":"",Nn[bn]=vn?"0":"",Nn.transform=(En.devicePixelRatio||1)<=1?"translate("+ze+"px, "+Lt+"px)":"translate3d("+ze+"px, "+Lt+"px, 0)",Nn))}return Object.assign({},An,(oe={},oe[Cn]=_n?Lt+"px":"",oe[bn]=vn?ze+"px":"",oe.transform="",oe))}function Nt$1($){var oe=$.state,ae=$.options,ie=ae.gpuAcceleration,le=ie===void 0?!0:ie,pe=ae.adaptive,_e=pe===void 0?!0:pe,Ce=ae.roundOffsets,$e=Ce===void 0?!0:Ce,xe={placement:q$1(oe.placement),variation:te(oe.placement),popper:oe.elements.popper,popperRect:oe.rects.popper,gpuAcceleration:le,isFixed:oe.options.strategy==="fixed"};oe.modifiersData.popperOffsets!=null&&(oe.styles.popper=Object.assign({},oe.styles.popper,ut$1(Object.assign({},xe,{offsets:oe.modifiersData.popperOffsets,position:oe.options.strategy,adaptive:_e,roundOffsets:$e})))),oe.modifiersData.arrow!=null&&(oe.styles.arrow=Object.assign({},oe.styles.arrow,ut$1(Object.assign({},xe,{offsets:oe.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:$e})))),oe.attributes.popper=Object.assign({},oe.attributes.popper,{"data-popper-placement":oe.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt$1,data:{}},ye$1={passive:!0};function It$1($){var oe=$.state,ae=$.instance,ie=$.options,le=ie.scroll,pe=le===void 0?!0:le,_e=ie.resize,Ce=_e===void 0?!0:_e,$e=H$3(oe.elements.popper),xe=[].concat(oe.scrollParents.reference,oe.scrollParents.popper);return pe&&xe.forEach(function(Ie){Ie.addEventListener("scroll",ae.update,ye$1)}),Ce&&$e.addEventListener("resize",ae.update,ye$1),function(){pe&&xe.forEach(function(Ie){Ie.removeEventListener("scroll",ae.update,ye$1)}),Ce&&$e.removeEventListener("resize",ae.update,ye$1)}}var Re={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:It$1,data:{}},_t$1={left:"right",right:"left",bottom:"top",top:"bottom"};function be$1($){return $.replace(/left|right|bottom|top/g,function(oe){return _t$1[oe]})}var zt$1={start:"end",end:"start"};function lt$2($){return $.replace(/start|end/g,function(oe){return zt$1[oe]})}function We($){var oe=H$3($),ae=oe.pageXOffset,ie=oe.pageYOffset;return{scrollLeft:ae,scrollTop:ie}}function Be$1($){return ee$1(I$2($)).left+We($).scrollLeft}function Ft($){var oe=H$3($),ae=I$2($),ie=oe.visualViewport,le=ae.clientWidth,pe=ae.clientHeight,_e=0,Ce=0;return ie&&(le=ie.width,pe=ie.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(_e=ie.offsetLeft,Ce=ie.offsetTop)),{width:le,height:pe,x:_e+Be$1($),y:Ce}}function Ut$1($){var oe,ae=I$2($),ie=We($),le=(oe=$.ownerDocument)==null?void 0:oe.body,pe=X$1(ae.scrollWidth,ae.clientWidth,le?le.scrollWidth:0,le?le.clientWidth:0),_e=X$1(ae.scrollHeight,ae.clientHeight,le?le.scrollHeight:0,le?le.clientHeight:0),Ce=-ie.scrollLeft+Be$1($),$e=-ie.scrollTop;return N$2(le||ae).direction==="rtl"&&(Ce+=X$1(ae.clientWidth,le?le.clientWidth:0)-pe),{width:pe,height:_e,x:Ce,y:$e}}function Se$1($){var oe=N$2($),ae=oe.overflow,ie=oe.overflowX,le=oe.overflowY;return/auto|scroll|overlay|hidden/.test(ae+le+ie)}function dt$1($){return["html","body","#document"].indexOf(C$1($))>=0?$.ownerDocument.body:B($)&&Se$1($)?$:dt$1(ge$1($))}function ce$1($,oe){var ae;oe===void 0&&(oe=[]);var ie=dt$1($),le=ie===((ae=$.ownerDocument)==null?void 0:ae.body),pe=H$3(ie),_e=le?[pe].concat(pe.visualViewport||[],Se$1(ie)?ie:[]):ie,Ce=oe.concat(_e);return le?Ce:Ce.concat(ce$1(ge$1(_e)))}function Te($){return Object.assign({},$,{left:$.x,top:$.y,right:$.x+$.width,bottom:$.y+$.height})}function Xt$1($){var oe=ee$1($);return oe.top=oe.top+$.clientTop,oe.left=oe.left+$.clientLeft,oe.bottom=oe.top+$.clientHeight,oe.right=oe.left+$.clientWidth,oe.width=$.clientWidth,oe.height=$.clientHeight,oe.x=oe.left,oe.y=oe.top,oe}function ht($,oe){return oe===je?Te(Ft($)):Q$1(oe)?Xt$1(oe):Te(Ut$1(I$2($)))}function Yt($){var oe=ce$1(ge$1($)),ae=["absolute","fixed"].indexOf(N$2($).position)>=0,ie=ae&&B($)?se$1($):$;return Q$1(ie)?oe.filter(function(le){return Q$1(le)&&it$1(le,ie)&&C$1(le)!=="body"}):[]}function Gt($,oe,ae){var ie=oe==="clippingParents"?Yt($):[].concat(oe),le=[].concat(ie,[ae]),pe=le[0],_e=le.reduce(function(Ce,$e){var xe=ht($,$e);return Ce.top=X$1(xe.top,Ce.top),Ce.right=ve(xe.right,Ce.right),Ce.bottom=ve(xe.bottom,Ce.bottom),Ce.left=X$1(xe.left,Ce.left),Ce},ht($,pe));return _e.width=_e.right-_e.left,_e.height=_e.bottom-_e.top,_e.x=_e.left,_e.y=_e.top,_e}function mt($){var oe=$.reference,ae=$.element,ie=$.placement,le=ie?q$1(ie):null,pe=ie?te(ie):null,_e=oe.x+oe.width/2-ae.width/2,Ce=oe.y+oe.height/2-ae.height/2,$e;switch(le){case E$2:$e={x:_e,y:oe.y-ae.height};break;case R$1:$e={x:_e,y:oe.y+oe.height};break;case W$1:$e={x:oe.x+oe.width,y:Ce};break;case P$3:$e={x:oe.x-ae.width,y:Ce};break;default:$e={x:oe.x,y:oe.y}}var xe=le?Le(le):null;if(xe!=null){var Ie=xe==="y"?"height":"width";switch(pe){case U$2:$e[xe]=$e[xe]-(oe[Ie]/2-ae[Ie]/2);break;case J$2:$e[xe]=$e[xe]+(oe[Ie]/2-ae[Ie]/2);break}}return $e}function ne$1($,oe){oe===void 0&&(oe={});var ae=oe,ie=ae.placement,le=ie===void 0?$.placement:ie,pe=ae.boundary,_e=pe===void 0?Xe$1:pe,Ce=ae.rootBoundary,$e=Ce===void 0?je:Ce,xe=ae.elementContext,Ie=xe===void 0?K$2:xe,Ne=ae.altBoundary,Fe=Ne===void 0?!1:Ne,ze=ae.padding,At=ze===void 0?0:ze,Lt=ft$1(typeof At!="number"?At:ct(At,G$1)),hn=Ie===K$2?Ye:K$2,vn=$.rects.popper,_n=$.elements[Fe?hn:Ie],bn=Gt(Q$1(_n)?_n:_n.contextElement||I$2($.elements.popper),_e,$e),Cn=ee$1($.elements.reference),En=mt({reference:Cn,element:vn,strategy:"absolute",placement:le}),$n=Te(Object.assign({},vn,En)),wn=Ie===K$2?$n:Cn,Tn={top:bn.top-wn.top+Lt.top,bottom:wn.bottom-bn.bottom+Lt.bottom,left:bn.left-wn.left+Lt.left,right:wn.right-bn.right+Lt.right},xn=$.modifiersData.offset;if(Ie===K$2&&xn){var kn=xn[le];Object.keys(Tn).forEach(function(An){var On=[W$1,R$1].indexOf(An)>=0?1:-1,Nn=[E$2,R$1].indexOf(An)>=0?"y":"x";Tn[An]+=kn[Nn]*On})}return Tn}function Jt($,oe){oe===void 0&&(oe={});var ae=oe,ie=ae.placement,le=ae.boundary,pe=ae.rootBoundary,_e=ae.padding,Ce=ae.flipVariations,$e=ae.allowedAutoPlacements,xe=$e===void 0?Ee:$e,Ie=te(ie),Ne=Ie?Ce?De:De.filter(function(At){return te(At)===Ie}):G$1,Fe=Ne.filter(function(At){return xe.indexOf(At)>=0});Fe.length===0&&(Fe=Ne);var ze=Fe.reduce(function(At,Lt){return At[Lt]=ne$1($,{placement:Lt,boundary:le,rootBoundary:pe,padding:_e})[q$1(Lt)],At},{});return Object.keys(ze).sort(function(At,Lt){return ze[At]-ze[Lt]})}function Kt($){if(q$1($)===me$1)return[];var oe=be$1($);return[lt$2($),oe,lt$2(oe)]}function Qt($){var oe=$.state,ae=$.options,ie=$.name;if(!oe.modifiersData[ie]._skip){for(var le=ae.mainAxis,pe=le===void 0?!0:le,_e=ae.altAxis,Ce=_e===void 0?!0:_e,$e=ae.fallbackPlacements,xe=ae.padding,Ie=ae.boundary,Ne=ae.rootBoundary,Fe=ae.altBoundary,ze=ae.flipVariations,At=ze===void 0?!0:ze,Lt=ae.allowedAutoPlacements,hn=oe.options.placement,vn=q$1(hn),_n=vn===hn,bn=$e||(_n||!At?[be$1(hn)]:Kt(hn)),Cn=[hn].concat(bn).reduce(function(cr,nr){return cr.concat(q$1(nr)===me$1?Jt(oe,{placement:nr,boundary:Ie,rootBoundary:Ne,padding:xe,flipVariations:At,allowedAutoPlacements:Lt}):nr)},[]),En=oe.rects.reference,$n=oe.rects.popper,wn=new Map,Tn=!0,xn=Cn[0],kn=0;kn<Cn.length;kn++){var An=Cn[kn],On=q$1(An),Nn=te(An)===U$2,Rn=[E$2,R$1].indexOf(On)>=0,zn=Rn?"width":"height",Bn=ne$1(oe,{placement:An,boundary:Ie,rootBoundary:Ne,altBoundary:Fe,padding:xe}),Mn=Rn?Nn?W$1:P$3:Nn?R$1:E$2;En[zn]>$n[zn]&&(Mn=be$1(Mn));var Fn=be$1(Mn),Vn=[];if(pe&&Vn.push(Bn[On]<=0),Ce&&Vn.push(Bn[Mn]<=0,Bn[Fn]<=0),Vn.every(function(cr){return cr})){xn=An,Tn=!1;break}wn.set(An,Vn)}if(Tn)for(var jn=At?3:1,Zn=function(cr){var nr=Cn.find(function(er){var rr=wn.get(er);if(rr)return rr.slice(0,cr).every(function(qn){return qn})});if(nr)return xn=nr,"break"},Gn=jn;Gn>0;Gn--){var Xn=Zn(Gn);if(Xn==="break")break}oe.placement!==xn&&(oe.modifiersData[ie]._skip=!0,oe.placement=xn,oe.reset=!0)}}var vt={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt($,oe,ae){return ae===void 0&&(ae={x:0,y:0}),{top:$.top-oe.height-ae.y,right:$.right-oe.width+ae.x,bottom:$.bottom-oe.height+ae.y,left:$.left-oe.width-ae.x}}function yt($){return[E$2,W$1,R$1,P$3].some(function(oe){return $[oe]>=0})}function Zt($){var oe=$.state,ae=$.name,ie=oe.rects.reference,le=oe.rects.popper,pe=oe.modifiersData.preventOverflow,_e=ne$1(oe,{elementContext:"reference"}),Ce=ne$1(oe,{altBoundary:!0}),$e=gt(_e,ie),xe=gt(Ce,le,pe),Ie=yt($e),Ne=yt(xe);oe.modifiersData[ae]={referenceClippingOffsets:$e,popperEscapeOffsets:xe,isReferenceHidden:Ie,hasPopperEscaped:Ne},oe.attributes.popper=Object.assign({},oe.attributes.popper,{"data-popper-reference-hidden":Ie,"data-popper-escaped":Ne})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt};function en$1($,oe,ae){var ie=q$1($),le=[P$3,E$2].indexOf(ie)>=0?-1:1,pe=typeof ae=="function"?ae(Object.assign({},oe,{placement:$})):ae,_e=pe[0],Ce=pe[1];return _e=_e||0,Ce=(Ce||0)*le,[P$3,W$1].indexOf(ie)>=0?{x:Ce,y:_e}:{x:_e,y:Ce}}function tn$1($){var oe=$.state,ae=$.options,ie=$.name,le=ae.offset,pe=le===void 0?[0,0]:le,_e=Ee.reduce(function(Ie,Ne){return Ie[Ne]=en$1(Ne,oe.rects,pe),Ie},{}),Ce=_e[oe.placement],$e=Ce.x,xe=Ce.y;oe.modifiersData.popperOffsets!=null&&(oe.modifiersData.popperOffsets.x+=$e,oe.modifiersData.popperOffsets.y+=xe),oe.modifiersData[ie]=_e}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn$1};function nn($){var oe=$.state,ae=$.name;oe.modifiersData[ae]=mt({reference:oe.rects.reference,element:oe.rects.popper,strategy:"absolute",placement:oe.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn,data:{}};function rn($){return $==="x"?"y":"x"}function on($){var oe=$.state,ae=$.options,ie=$.name,le=ae.mainAxis,pe=le===void 0?!0:le,_e=ae.altAxis,Ce=_e===void 0?!1:_e,$e=ae.boundary,xe=ae.rootBoundary,Ie=ae.altBoundary,Ne=ae.padding,Fe=ae.tether,ze=Fe===void 0?!0:Fe,At=ae.tetherOffset,Lt=At===void 0?0:At,hn=ne$1(oe,{boundary:$e,rootBoundary:xe,padding:Ne,altBoundary:Ie}),vn=q$1(oe.placement),_n=te(oe.placement),bn=!_n,Cn=Le(vn),En=rn(Cn),$n=oe.modifiersData.popperOffsets,wn=oe.rects.reference,Tn=oe.rects.popper,xn=typeof Lt=="function"?Lt(Object.assign({},oe.rects,{placement:oe.placement})):Lt,kn=typeof xn=="number"?{mainAxis:xn,altAxis:xn}:Object.assign({mainAxis:0,altAxis:0},xn),An=oe.modifiersData.offset?oe.modifiersData.offset[oe.placement]:null,On={x:0,y:0};if($n){if(pe){var Nn,Rn=Cn==="y"?E$2:P$3,zn=Cn==="y"?R$1:W$1,Bn=Cn==="y"?"height":"width",Mn=$n[Cn],Fn=Mn+hn[Rn],Vn=Mn-hn[zn],jn=ze?-Tn[Bn]/2:0,Zn=_n===U$2?wn[Bn]:Tn[Bn],Gn=_n===U$2?-Tn[Bn]:-wn[Bn],Xn=oe.elements.arrow,cr=ze&&Xn?ke(Xn):{width:0,height:0},nr=oe.modifiersData["arrow#persistent"]?oe.modifiersData["arrow#persistent"].padding:st(),er=nr[Rn],rr=nr[zn],qn=fe$1(0,wn[Bn],cr[Bn]),Yn=bn?wn[Bn]/2-jn-qn-er-kn.mainAxis:Zn-qn-er-kn.mainAxis,ar=bn?-wn[Bn]/2+jn+qn+rr+kn.mainAxis:Gn+qn+rr+kn.mainAxis,pr=oe.elements.arrow&&se$1(oe.elements.arrow),Un=pr?Cn==="y"?pr.clientTop||0:pr.clientLeft||0:0,tr=(Nn=An==null?void 0:An[Cn])!=null?Nn:0,ur=Mn+Yn-tr-Un,_r=Mn+ar-tr,Er=fe$1(ze?ve(Fn,ur):Fn,Mn,ze?X$1(Vn,_r):Vn);$n[Cn]=Er,On[Cn]=Er-Mn}if(Ce){var sr,Pr=Cn==="x"?E$2:P$3,Sr=Cn==="x"?R$1:W$1,kr=$n[En],mr=En==="y"?"height":"width",lr=kr+hn[Pr],hr=kr-hn[Sr],gr=[E$2,P$3].indexOf(vn)!==-1,Or=(sr=An==null?void 0:An[En])!=null?sr:0,Lr=gr?lr:kr-wn[mr]-Tn[mr]-Or+kn.altAxis,Vr=gr?kr+wn[mr]+Tn[mr]-Or-kn.altAxis:hr,Rr=ze&&gr?St(Lr,kr,Vr):fe$1(ze?Lr:lr,kr,ze?Vr:hr);$n[En]=Rr,On[En]=Rr-kr}oe.modifiersData[ie]=On}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function an($){return{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}}function sn($){return $===H$3($)||!B($)?We($):an($)}function fn($){var oe=$.getBoundingClientRect(),ae=Z(oe.width)/$.offsetWidth||1,ie=Z(oe.height)/$.offsetHeight||1;return ae!==1||ie!==1}function cn($,oe,ae){ae===void 0&&(ae=!1);var ie=B(oe),le=B(oe)&&fn(oe),pe=I$2(oe),_e=ee$1($,le),Ce={scrollLeft:0,scrollTop:0},$e={x:0,y:0};return(ie||!ie&&!ae)&&((C$1(oe)!=="body"||Se$1(pe))&&(Ce=sn(oe)),B(oe)?($e=ee$1(oe,!0),$e.x+=oe.clientLeft,$e.y+=oe.clientTop):pe&&($e.x=Be$1(pe))),{x:_e.left+Ce.scrollLeft-$e.x,y:_e.top+Ce.scrollTop-$e.y,width:_e.width,height:_e.height}}function pn($){var oe=new Map,ae=new Set,ie=[];$.forEach(function(pe){oe.set(pe.name,pe)});function le(pe){ae.add(pe.name);var _e=[].concat(pe.requires||[],pe.requiresIfExists||[]);_e.forEach(function(Ce){if(!ae.has(Ce)){var $e=oe.get(Ce);$e&&le($e)}}),ie.push(pe)}return $.forEach(function(pe){ae.has(pe.name)||le(pe)}),ie}function un($){var oe=pn($);return ot$1.reduce(function(ae,ie){return ae.concat(oe.filter(function(le){return le.phase===ie}))},[])}function ln($){var oe;return function(){return oe||(oe=new Promise(function(ae){Promise.resolve().then(function(){oe=void 0,ae($())})})),oe}}function dn($){var oe=$.reduce(function(ae,ie){var le=ae[ie.name];return ae[ie.name]=le?Object.assign({},le,ie,{options:Object.assign({},le.options,ie.options),data:Object.assign({},le.data,ie.data)}):ie,ae},{});return Object.keys(oe).map(function(ae){return oe[ae]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t$2(){for(var $=arguments.length,oe=new Array($),ae=0;ae<$;ae++)oe[ae]=arguments[ae];return!oe.some(function(ie){return!(ie&&typeof ie.getBoundingClientRect=="function")})}function we($){$===void 0&&($={});var oe=$,ae=oe.defaultModifiers,ie=ae===void 0?[]:ae,le=oe.defaultOptions,pe=le===void 0?Ot:le;return function(_e,Ce,$e){$e===void 0&&($e=pe);var xe={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ot,pe),modifiersData:{},elements:{reference:_e,popper:Ce},attributes:{},styles:{}},Ie=[],Ne=!1,Fe={state:xe,setOptions:function(Lt){var hn=typeof Lt=="function"?Lt(xe.options):Lt;At(),xe.options=Object.assign({},pe,xe.options,hn),xe.scrollParents={reference:Q$1(_e)?ce$1(_e):_e.contextElement?ce$1(_e.contextElement):[],popper:ce$1(Ce)};var vn=un(dn([].concat(ie,xe.options.modifiers)));return xe.orderedModifiers=vn.filter(function(_n){return _n.enabled}),ze(),Fe.update()},forceUpdate:function(){if(!Ne){var Lt=xe.elements,hn=Lt.reference,vn=Lt.popper;if($t$2(hn,vn)){xe.rects={reference:cn(hn,se$1(vn),xe.options.strategy==="fixed"),popper:ke(vn)},xe.reset=!1,xe.placement=xe.options.placement,xe.orderedModifiers.forEach(function(Tn){return xe.modifiersData[Tn.name]=Object.assign({},Tn.data)});for(var _n=0;_n<xe.orderedModifiers.length;_n++){if(xe.reset===!0){xe.reset=!1,_n=-1;continue}var bn=xe.orderedModifiers[_n],Cn=bn.fn,En=bn.options,$n=En===void 0?{}:En,wn=bn.name;typeof Cn=="function"&&(xe=Cn({state:xe,options:$n,name:wn,instance:Fe})||xe)}}}},update:ln(function(){return new Promise(function(Lt){Fe.forceUpdate(),Lt(xe)})}),destroy:function(){At(),Ne=!0}};if(!$t$2(_e,Ce))return Fe;Fe.setOptions($e).then(function(Lt){!Ne&&$e.onFirstUpdate&&$e.onFirstUpdate(Lt)});function ze(){xe.orderedModifiers.forEach(function(Lt){var hn=Lt.name,vn=Lt.options,_n=vn===void 0?{}:vn,bn=Lt.effect;if(typeof bn=="function"){var Cn=bn({state:xe,name:hn,instance:Fe,options:_n}),En=function(){};Ie.push(Cn||En)}})}function At(){Ie.forEach(function(Lt){return Lt()}),Ie=[]}return Fe}}we();var mn=[Re,He,Me,Ae$1];we({defaultModifiers:mn});var gn=[Re,He,Me,Ae$1,wt,vt,xt,pt$1,bt],yn=we({defaultModifiers:gn});const usePopper=($,oe,ae={})=>{const ie={name:"updateState",enabled:!0,phase:"write",fn:({state:$e})=>{const xe=deriveState($e);Object.assign(_e.value,xe)},requires:["computeStyles"]},le=computed(()=>{const{onFirstUpdate:$e,placement:xe,strategy:Ie,modifiers:Ne}=unref(ae);return{onFirstUpdate:$e,placement:xe||"bottom",strategy:Ie||"absolute",modifiers:[...Ne||[],ie,{name:"applyStyles",enabled:!1}]}}),pe=shallowRef(),_e=ref({styles:{popper:{position:unref(le).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),Ce=()=>{pe.value&&(pe.value.destroy(),pe.value=void 0)};return watch(le,$e=>{const xe=unref(pe);xe&&xe.setOptions($e)},{deep:!0}),watch([$,oe],([$e,xe])=>{Ce(),!(!$e||!xe)&&(pe.value=yn($e,xe,unref(le)))}),onBeforeUnmount(()=>{Ce()}),{state:computed(()=>{var $e;return{...(($e=unref(pe))==null?void 0:$e.state)||{}}}),styles:computed(()=>unref(_e).styles),attributes:computed(()=>unref(_e).attributes),update:()=>{var $e;return($e=unref(pe))==null?void 0:$e.update()},forceUpdate:()=>{var $e;return($e=unref(pe))==null?void 0:$e.forceUpdate()},instanceRef:computed(()=>unref(pe))}};function deriveState($){const oe=Object.keys($.elements),ae=fromPairs(oe.map(le=>[le,$.styles[le]||{}])),ie=fromPairs(oe.map(le=>[le,$.attributes[le]]));return{styles:ae,attributes:ie}}const useRestoreActive=($,oe)=>{let ae;watch(()=>$.value,ie=>{var le,pe;ie?(ae=document.activeElement,isRef(oe)&&((pe=(le=oe.value).focus)==null||pe.call(le))):ae.focus()})},useSameTarget=$=>{if(!$)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let oe=!1,ae=!1;return{onClick:_e=>{oe&&ae&&$(_e),oe=ae=!1},onMousedown:_e=>{oe=_e.target===_e.currentTarget},onMouseup:_e=>{ae=_e.target===_e.currentTarget}}},useThrottleRender=($,oe=0)=>{if(oe===0)return $;const ae=ref(!1);let ie=0;const le=()=>{ie&&clearTimeout(ie),ie=window.setTimeout(()=>{ae.value=$.value},oe)};return onMounted(le),watch(()=>$.value,pe=>{pe?le():ae.value=pe}),ae};function useTimeout(){let $;const oe=(ie,le)=>{ae(),$=window.setTimeout(ie,le)},ae=()=>window.clearTimeout($);return tryOnScopeDispose$2(()=>ae()),{registerTimeout:oe,cancelTimeout:ae}}const defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=$=>{const oe=useIdInjection(),ae=useGetDerivedNamespace();return computed(()=>unref($)||`${ae.value}-id-${oe.prefix}-${oe.current++}`)};let registeredEscapeHandlers=[];const cachedHandler=$=>{const oe=$;oe.key===EVENT_CODE.esc&&registeredEscapeHandlers.forEach(ae=>ae(oe))},useEscapeKeydown=$=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient$2&&registeredEscapeHandlers.push($)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(oe=>oe!==$),registeredEscapeHandlers.length===0&&isClient$2&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const usePopperContainerId=()=>{const $=useGetDerivedNamespace(),oe=useIdInjection(),ae=computed(()=>`${$.value}-popper-container-${oe.prefix}`),ie=computed(()=>`#${ae.value}`);return{id:ae,selector:ie}},createContainer=$=>{const oe=document.createElement("div");return oe.id=$,document.body.appendChild(oe),oe},usePopperContainer=()=>{const{id:$,selector:oe}=usePopperContainerId();return onBeforeMount(()=>{isClient$2&&!cachedContainer&&!document.body.querySelector(oe.value)&&(cachedContainer=createContainer($.value))}),{id:$,selector:oe}},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:$,hideAfter:oe,autoClose:ae,open:ie,close:le})=>{const{registerTimeout:pe}=useTimeout(),{registerTimeout:_e,cancelTimeout:Ce}=useTimeout();return{onOpen:Ie=>{pe(()=>{ie(Ie);const Ne=unref(ae);isNumber$5(Ne)&&Ne>0&&_e(()=>{le(Ie)},Ne)},unref($))},onClose:Ie=>{Ce(),pe(()=>{le(Ie)},unref(oe))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=$=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:ae=>{$.value=ae}})},useForwardRefDirective=$=>({mounted(oe){$(oe)},updated(oe){$(oe)},unmounted(){$(null)}}),zIndex=ref(0),defaultInitialZIndex=2e3,zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=$=>{const oe=$||inject(zIndexContextKey,void 0),ae=computed(()=>{const pe=unref(oe);return isNumber$5(pe)?pe:defaultInitialZIndex}),ie=computed(()=>ae.value+zIndex.value);return{initialZIndex:ae,currentZIndex:ie,nextZIndex:()=>(zIndex.value++,ie.value)}};function t($){return $.split("-")[1]}function e$1($){return $==="y"?"height":"width"}function n$2($){return $.split("-")[0]}function o$2($){return["top","bottom"].includes(n$2($))?"x":"y"}function i$2($,oe,ae){let{reference:ie,floating:le}=$;const pe=ie.x+ie.width/2-le.width/2,_e=ie.y+ie.height/2-le.height/2,Ce=o$2(oe),$e=e$1(Ce),xe=ie[$e]/2-le[$e]/2,Ie=Ce==="x";let Ne;switch(n$2(oe)){case"top":Ne={x:pe,y:ie.y-le.height};break;case"bottom":Ne={x:pe,y:ie.y+ie.height};break;case"right":Ne={x:ie.x+ie.width,y:_e};break;case"left":Ne={x:ie.x-le.width,y:_e};break;default:Ne={x:ie.x,y:ie.y}}switch(t(oe)){case"start":Ne[Ce]-=xe*(ae&&Ie?-1:1);break;case"end":Ne[Ce]+=xe*(ae&&Ie?-1:1)}return Ne}const r$1=async($,oe,ae)=>{const{placement:ie="bottom",strategy:le="absolute",middleware:pe=[],platform:_e}=ae,Ce=pe.filter(Boolean),$e=await(_e.isRTL==null?void 0:_e.isRTL(oe));let xe=await _e.getElementRects({reference:$,floating:oe,strategy:le}),{x:Ie,y:Ne}=i$2(xe,ie,$e),Fe=ie,ze={},At=0;for(let Lt=0;Lt<Ce.length;Lt++){const{name:hn,fn:vn}=Ce[Lt],{x:_n,y:bn,data:Cn,reset:En}=await vn({x:Ie,y:Ne,initialPlacement:ie,placement:Fe,strategy:le,middlewareData:ze,rects:xe,platform:_e,elements:{reference:$,floating:oe}});Ie=_n??Ie,Ne=bn??Ne,ze={...ze,[hn]:{...ze[hn],...Cn}},En&&At<=50&&(At++,typeof En=="object"&&(En.placement&&(Fe=En.placement),En.rects&&(xe=En.rects===!0?await _e.getElementRects({reference:$,floating:oe,strategy:le}):En.rects),{x:Ie,y:Ne}=i$2(xe,Fe,$e)),Lt=-1)}return{x:Ie,y:Ne,placement:Fe,strategy:le,middlewareData:ze}};function a$3($){return typeof $!="number"?function(oe){return{top:0,right:0,bottom:0,left:0,...oe}}($):{top:$,right:$,bottom:$,left:$}}function l$2($){return{...$,top:$.y,left:$.x,right:$.x+$.width,bottom:$.y+$.height}}const c$4=Math.min,f$3=Math.max;function m$5($,oe,ae){return f$3($,c$4(oe,ae))}const u$3=$=>({name:"arrow",options:$,async fn(oe){const{element:ae,padding:ie=0}=$||{},{x:le,y:pe,placement:_e,rects:Ce,platform:$e,elements:xe}=oe;if(ae==null)return{};const Ie=a$3(ie),Ne={x:le,y:pe},Fe=o$2(_e),ze=e$1(Fe),At=await $e.getDimensions(ae),Lt=Fe==="y",hn=Lt?"top":"left",vn=Lt?"bottom":"right",_n=Lt?"clientHeight":"clientWidth",bn=Ce.reference[ze]+Ce.reference[Fe]-Ne[Fe]-Ce.floating[ze],Cn=Ne[Fe]-Ce.reference[Fe],En=await($e.getOffsetParent==null?void 0:$e.getOffsetParent(ae));let $n=En?En[_n]:0;$n&&await($e.isElement==null?void 0:$e.isElement(En))||($n=xe.floating[_n]||Ce.floating[ze]);const wn=bn/2-Cn/2,Tn=Ie[hn],xn=$n-At[ze]-Ie[vn],kn=$n/2-At[ze]/2+wn,An=m$5(Tn,kn,xn),On=t(_e)!=null&&kn!=An&&Ce.reference[ze]/2-(kn<Tn?Ie[hn]:Ie[vn])-At[ze]/2<0;return{[Fe]:Ne[Fe]-(On?kn<Tn?Tn-kn:xn-kn:0),data:{[Fe]:An,centerOffset:kn-An}}}}),g$2=["top","right","bottom","left"];g$2.reduce(($,oe)=>$.concat(oe,oe+"-start",oe+"-end"),[]);const D$4=function($){return $===void 0&&($=0),{name:"offset",options:$,async fn(oe){const{x:ae,y:ie}=oe,le=await async function(pe,_e){const{placement:Ce,platform:$e,elements:xe}=pe,Ie=await($e.isRTL==null?void 0:$e.isRTL(xe.floating)),Ne=n$2(Ce),Fe=t(Ce),ze=o$2(Ce)==="x",At=["left","top"].includes(Ne)?-1:1,Lt=Ie&&ze?-1:1,hn=typeof _e=="function"?_e(pe):_e;let{mainAxis:vn,crossAxis:_n,alignmentAxis:bn}=typeof hn=="number"?{mainAxis:hn,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...hn};return Fe&&typeof bn=="number"&&(_n=Fe==="end"?-1*bn:bn),ze?{x:_n*Lt,y:vn*At}:{x:vn*At,y:_n*Lt}}(oe,$);return{x:ae+le.x,y:ie+le.y,data:le}}}};function n$1($){var oe;return((oe=$.ownerDocument)==null?void 0:oe.defaultView)||window}function o$1($){return n$1($).getComputedStyle($)}function i$1($){return $ instanceof n$1($).Node}function r($){return i$1($)?($.nodeName||"").toLowerCase():""}let l$1;function c$3(){if(l$1)return l$1;const $=navigator.userAgentData;return $&&Array.isArray($.brands)?(l$1=$.brands.map(oe=>oe.brand+"/"+oe.version).join(" "),l$1):navigator.userAgent}function s$1($){return $ instanceof n$1($).HTMLElement}function f$2($){return $ instanceof n$1($).Element}function u$2($){return typeof ShadowRoot>"u"?!1:$ instanceof n$1($).ShadowRoot||$ instanceof ShadowRoot}function a$2($){const{overflow:oe,overflowX:ae,overflowY:ie,display:le}=o$1($);return/auto|scroll|overlay|hidden|clip/.test(oe+ie+ae)&&!["inline","contents"].includes(le)}function d$2($){return["table","td","th"].includes(r($))}function h$2($){const oe=/firefox/i.test(c$3()),ae=o$1($),ie=ae.backdropFilter||ae.WebkitBackdropFilter;return ae.transform!=="none"||ae.perspective!=="none"||!!ie&&ie!=="none"||oe&&ae.willChange==="filter"||oe&&!!ae.filter&&ae.filter!=="none"||["transform","perspective"].some(le=>ae.willChange.includes(le))||["paint","layout","strict","content"].some(le=>{const pe=ae.contain;return pe!=null&&pe.includes(le)})}function p$2(){return/^((?!chrome|android).)*safari/i.test(c$3())}function g$1($){return["html","body","#document"].includes(r($))}const m$4=Math.min,y$1=Math.max,x$1=Math.round;function w$1($){const oe=o$1($);let ae=parseFloat(oe.width),ie=parseFloat(oe.height);const le=s$1($),pe=le?$.offsetWidth:ae,_e=le?$.offsetHeight:ie,Ce=x$1(ae)!==pe||x$1(ie)!==_e;return Ce&&(ae=pe,ie=_e),{width:ae,height:ie,fallback:Ce}}function v$1($){return f$2($)?$:$.contextElement}const b$2={x:1,y:1};function L$2($){const oe=v$1($);if(!s$1(oe))return b$2;const ae=oe.getBoundingClientRect(),{width:ie,height:le,fallback:pe}=w$1(oe);let _e=(pe?x$1(ae.width):ae.width)/ie,Ce=(pe?x$1(ae.height):ae.height)/le;return _e&&Number.isFinite(_e)||(_e=1),Ce&&Number.isFinite(Ce)||(Ce=1),{x:_e,y:Ce}}function E$1($,oe,ae,ie){var le,pe;oe===void 0&&(oe=!1),ae===void 0&&(ae=!1);const _e=$.getBoundingClientRect(),Ce=v$1($);let $e=b$2;oe&&(ie?f$2(ie)&&($e=L$2(ie)):$e=L$2($));const xe=Ce?n$1(Ce):window,Ie=p$2()&&ae;let Ne=(_e.left+(Ie&&((le=xe.visualViewport)==null?void 0:le.offsetLeft)||0))/$e.x,Fe=(_e.top+(Ie&&((pe=xe.visualViewport)==null?void 0:pe.offsetTop)||0))/$e.y,ze=_e.width/$e.x,At=_e.height/$e.y;if(Ce){const Lt=n$1(Ce),hn=ie&&f$2(ie)?n$1(ie):ie;let vn=Lt.frameElement;for(;vn&&ie&&hn!==Lt;){const _n=L$2(vn),bn=vn.getBoundingClientRect(),Cn=getComputedStyle(vn);bn.x+=(vn.clientLeft+parseFloat(Cn.paddingLeft))*_n.x,bn.y+=(vn.clientTop+parseFloat(Cn.paddingTop))*_n.y,Ne*=_n.x,Fe*=_n.y,ze*=_n.x,At*=_n.y,Ne+=bn.x,Fe+=bn.y,vn=n$1(vn).frameElement}}return l$2({width:ze,height:At,x:Ne,y:Fe})}function T$2($){return((i$1($)?$.ownerDocument:$.document)||window.document).documentElement}function R($){return f$2($)?{scrollLeft:$.scrollLeft,scrollTop:$.scrollTop}:{scrollLeft:$.pageXOffset,scrollTop:$.pageYOffset}}function C($){return E$1(T$2($)).left+R($).scrollLeft}function F$1($){if(r($)==="html")return $;const oe=$.assignedSlot||$.parentNode||u$2($)&&$.host||T$2($);return u$2(oe)?oe.host:oe}function W($){const oe=F$1($);return g$1(oe)?oe.ownerDocument.body:s$1(oe)&&a$2(oe)?oe:W(oe)}function D$3($,oe){var ae;oe===void 0&&(oe=[]);const ie=W($),le=ie===((ae=$.ownerDocument)==null?void 0:ae.body),pe=n$1(ie);return le?oe.concat(pe,pe.visualViewport||[],a$2(ie)?ie:[]):oe.concat(ie,D$3(ie))}function S$2($,oe,ae){let ie;if(oe==="viewport")ie=function(_e,Ce){const $e=n$1(_e),xe=T$2(_e),Ie=$e.visualViewport;let Ne=xe.clientWidth,Fe=xe.clientHeight,ze=0,At=0;if(Ie){Ne=Ie.width,Fe=Ie.height;const Lt=p$2();(!Lt||Lt&&Ce==="fixed")&&(ze=Ie.offsetLeft,At=Ie.offsetTop)}return{width:Ne,height:Fe,x:ze,y:At}}($,ae);else if(oe==="document")ie=function(_e){const Ce=T$2(_e),$e=R(_e),xe=_e.ownerDocument.body,Ie=y$1(Ce.scrollWidth,Ce.clientWidth,xe.scrollWidth,xe.clientWidth),Ne=y$1(Ce.scrollHeight,Ce.clientHeight,xe.scrollHeight,xe.clientHeight);let Fe=-$e.scrollLeft+C(_e);const ze=-$e.scrollTop;return o$1(xe).direction==="rtl"&&(Fe+=y$1(Ce.clientWidth,xe.clientWidth)-Ie),{width:Ie,height:Ne,x:Fe,y:ze}}(T$2($));else if(f$2(oe))ie=function(_e,Ce){const $e=E$1(_e,!0,Ce==="fixed"),xe=$e.top+_e.clientTop,Ie=$e.left+_e.clientLeft,Ne=s$1(_e)?L$2(_e):{x:1,y:1};return{width:_e.clientWidth*Ne.x,height:_e.clientHeight*Ne.y,x:Ie*Ne.x,y:xe*Ne.y}}(oe,ae);else{const _e={...oe};if(p$2()){var le,pe;const Ce=n$1($);_e.x-=((le=Ce.visualViewport)==null?void 0:le.offsetLeft)||0,_e.y-=((pe=Ce.visualViewport)==null?void 0:pe.offsetTop)||0}ie=_e}return l$2(ie)}function A$1($,oe){return s$1($)&&o$1($).position!=="fixed"?oe?oe($):$.offsetParent:null}function H$2($,oe){const ae=n$1($);if(!s$1($))return ae;let ie=A$1($,oe);for(;ie&&d$2(ie)&&o$1(ie).position==="static";)ie=A$1(ie,oe);return ie&&(r(ie)==="html"||r(ie)==="body"&&o$1(ie).position==="static"&&!h$2(ie))?ae:ie||function(le){let pe=F$1(le);for(;s$1(pe)&&!g$1(pe);){if(h$2(pe))return pe;pe=F$1(pe)}return null}($)||ae}function V($,oe,ae){const ie=s$1(oe),le=T$2(oe),pe=E$1($,!0,ae==="fixed",oe);let _e={scrollLeft:0,scrollTop:0};const Ce={x:0,y:0};if(ie||!ie&&ae!=="fixed")if((r(oe)!=="body"||a$2(le))&&(_e=R(oe)),s$1(oe)){const $e=E$1(oe,!0);Ce.x=$e.x+oe.clientLeft,Ce.y=$e.y+oe.clientTop}else le&&(Ce.x=C(le));return{x:pe.left+_e.scrollLeft-Ce.x,y:pe.top+_e.scrollTop-Ce.y,width:pe.width,height:pe.height}}const O$2={getClippingRect:function($){let{element:oe,boundary:ae,rootBoundary:ie,strategy:le}=$;const pe=ae==="clippingAncestors"?function(xe,Ie){const Ne=Ie.get(xe);if(Ne)return Ne;let Fe=D$3(xe).filter(hn=>f$2(hn)&&r(hn)!=="body"),ze=null;const At=o$1(xe).position==="fixed";let Lt=At?F$1(xe):xe;for(;f$2(Lt)&&!g$1(Lt);){const hn=o$1(Lt),vn=h$2(Lt);hn.position==="fixed"&&(ze=null),(At?vn||ze:vn||hn.position!=="static"||!ze||!["absolute","fixed"].includes(ze.position))?ze=hn:Fe=Fe.filter(_n=>_n!==Lt),Lt=F$1(Lt)}return Ie.set(xe,Fe),Fe}(oe,this._c):[].concat(ae),_e=[...pe,ie],Ce=_e[0],$e=_e.reduce((xe,Ie)=>{const Ne=S$2(oe,Ie,le);return xe.top=y$1(Ne.top,xe.top),xe.right=m$4(Ne.right,xe.right),xe.bottom=m$4(Ne.bottom,xe.bottom),xe.left=y$1(Ne.left,xe.left),xe},S$2(oe,Ce,le));return{width:$e.right-$e.left,height:$e.bottom-$e.top,x:$e.left,y:$e.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function($){let{rect:oe,offsetParent:ae,strategy:ie}=$;const le=s$1(ae),pe=T$2(ae);if(ae===pe)return oe;let _e={scrollLeft:0,scrollTop:0},Ce={x:1,y:1};const $e={x:0,y:0};if((le||!le&&ie!=="fixed")&&((r(ae)!=="body"||a$2(pe))&&(_e=R(ae)),s$1(ae))){const xe=E$1(ae);Ce=L$2(ae),$e.x=xe.x+ae.clientLeft,$e.y=xe.y+ae.clientTop}return{width:oe.width*Ce.x,height:oe.height*Ce.y,x:oe.x*Ce.x-_e.scrollLeft*Ce.x+$e.x,y:oe.y*Ce.y-_e.scrollTop*Ce.y+$e.y}},isElement:f$2,getDimensions:function($){return w$1($)},getOffsetParent:H$2,getDocumentElement:T$2,getScale:L$2,async getElementRects($){let{reference:oe,floating:ae,strategy:ie}=$;const le=this.getOffsetParent||H$2,pe=this.getDimensions;return{reference:V(oe,await le(ae),ie),floating:{x:0,y:0,...await pe(ae)}}},getClientRects:$=>Array.from($.getClientRects()),isRTL:$=>o$1($).direction==="rtl"},z=($,oe,ae)=>{const ie=new Map,le={platform:O$2,...ae},pe={...le.platform,_c:ie};return r$1($,oe,{...le,platform:pe})};buildProps({});const unrefReference=$=>{if(!isClient$2)return;if(!$)return $;const oe=unrefElement$1($);return oe||(isRef($)?oe:$)},useFloating=({middleware:$,placement:oe,strategy:ae})=>{const ie=ref(),le=ref(),pe=ref(),_e=ref(),Ce=ref({}),$e={x:pe,y:_e,placement:oe,strategy:ae,middlewareData:Ce},xe=async()=>{if(!isClient$2)return;const Ie=unrefReference(ie),Ne=unrefElement$1(le);if(!Ie||!Ne)return;const Fe=await z(Ie,Ne,{placement:unref(oe),strategy:unref(ae),middleware:unref($)});keysOf($e).forEach(ze=>{$e[ze].value=Fe[ze]})};return onMounted(()=>{watchEffect(()=>{xe()})}),{...$e,update:xe,referenceRef:ie,contentRef:le}},arrowMiddleware=({arrowRef:$,padding:oe})=>({name:"arrow",options:{element:$,padding:oe},fn(ae){const ie=unref($);return ie?u$3({element:ie,padding:oe}).fn(ae):{}}});function useCursor($){const oe=ref();function ae(){if($.value==null)return;const{selectionStart:le,selectionEnd:pe,value:_e}=$.value;if(le==null||pe==null)return;const Ce=_e.slice(0,Math.max(0,le)),$e=_e.slice(Math.max(0,pe));oe.value={selectionStart:le,selectionEnd:pe,value:_e,beforeTxt:Ce,afterTxt:$e}}function ie(){if($.value==null||oe.value==null)return;const{value:le}=$.value,{beforeTxt:pe,afterTxt:_e,selectionStart:Ce}=oe.value;if(pe==null||_e==null||Ce==null)return;let $e=le.length;if(le.endsWith(_e))$e=le.length-_e.length;else if(le.startsWith(pe))$e=pe.length;else{const xe=pe[Ce-1],Ie=le.indexOf(xe,Ce-1);Ie!==-1&&($e=Ie+1)}$.value.setSelectionRange($e,$e)}return[ae,ie]}const getOrderedChildren=($,oe,ae)=>flattedChildren($.subTree).filter(pe=>{var _e;return isVNode$1(pe)&&((_e=pe.type)==null?void 0:_e.name)===oe&&!!pe.component}).map(pe=>pe.component.uid).map(pe=>ae[pe]).filter(pe=>!!pe),useOrderedChildren=($,oe)=>{const ae={},ie=shallowRef([]);return{children:ie,addChild:_e=>{ae[_e.uid]=_e,ie.value=getOrderedChildren($,oe,ae)},removeChild:_e=>{delete ae[_e],ie.value=ie.value.filter(Ce=>Ce.uid!==_e)}}},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const $=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref($.size)||"")},configProviderContextKey=Symbol(),globalConfig=ref();function useGlobalConfig($,oe=void 0){const ae=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return $?computed(()=>{var ie,le;return(le=(ie=ae.value)==null?void 0:ie[$])!=null?le:oe}):ae}function useGlobalComponentSettings($,oe){const ae=useGlobalConfig(),ie=useNamespace($,computed(()=>{var Ce;return((Ce=ae.value)==null?void 0:Ce.namespace)||defaultNamespace})),le=useLocale(computed(()=>{var Ce;return(Ce=ae.value)==null?void 0:Ce.locale})),pe=useZIndex(computed(()=>{var Ce;return((Ce=ae.value)==null?void 0:Ce.zIndex)||defaultInitialZIndex})),_e=computed(()=>{var Ce;return unref(oe)||((Ce=ae.value)==null?void 0:Ce.size)||""});return provideGlobalConfig(computed(()=>unref(ae)||{})),{ns:ie,locale:le,zIndex:pe,size:_e}}const provideGlobalConfig=($,oe,ae=!1)=>{var ie;const le=!!getCurrentInstance(),pe=le?useGlobalConfig():void 0,_e=(ie=oe==null?void 0:oe.provide)!=null?ie:le?provide:void 0;if(!_e)return;const Ce=computed(()=>{const $e=unref($);return pe!=null&&pe.value?mergeConfig$1(pe.value,$e):$e});return _e(configProviderContextKey,Ce),_e(localeContextKey,computed(()=>Ce.value.locale)),_e(namespaceContextKey,computed(()=>Ce.value.namespace)),_e(zIndexContextKey,computed(()=>Ce.value.zIndex)),_e(SIZE_INJECTION_KEY,{size:computed(()=>Ce.value.size||"")}),(ae||!globalConfig.value)&&(globalConfig.value=Ce.value),Ce},mergeConfig$1=($,oe)=>{var ae;const ie=[...new Set([...keysOf($),...keysOf(oe)])],le={};for(const pe of ie)le[pe]=(ae=oe[pe])!=null?ae:$[pe];return le},configProviderProps=buildProps({a11y:{type:Boolean,default:!0},locale:{type:definePropType(Object)},size:useSizeProp,button:{type:definePropType(Object)},experimentalFeatures:{type:definePropType(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:definePropType(Object)},zIndex:Number,namespace:{type:String,default:"el"}}),messageConfig={},ConfigProvider=defineComponent({name:"ElConfigProvider",props:configProviderProps,setup($,{slots:oe}){watch(()=>$.message,ie=>{Object.assign(messageConfig,ie??{})},{immediate:!0,deep:!0});const ae=provideGlobalConfig($);return()=>renderSlot(oe,"default",{config:ae==null?void 0:ae.value})}}),ElConfigProvider=withInstall(ConfigProvider),version$2="2.3.4",makeInstaller=($=[])=>({version:version$2,install:(ae,ie)=>{ae[INSTALLED_KEY]||(ae[INSTALLED_KEY]=!0,$.forEach(le=>ae.use(le)),ie&&provideGlobalConfig(ie,ae,!0))}}),affixProps=buildProps({zIndex:{type:definePropType([Number,String]),default:100},target:{type:String,default:""},offset:{type:Number,default:0},position:{type:String,values:["top","bottom"],default:"top"}}),affixEmits={scroll:({scrollTop:$,fixed:oe})=>isNumber$5($)&&isBoolean$3(oe),[CHANGE_EVENT]:$=>isBoolean$3($)};var _export_sfc$1=($,oe)=>{const ae=$.__vccOpts||$;for(const[ie,le]of oe)ae[ie]=le;return ae};const COMPONENT_NAME$n="ElAffix",__default__$1C=defineComponent({name:COMPONENT_NAME$n}),_sfc_main$2k=defineComponent({...__default__$1C,props:affixProps,emits:affixEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("affix"),pe=shallowRef(),_e=shallowRef(),Ce=shallowRef(),{height:$e}=useWindowSize(),{height:xe,width:Ie,top:Ne,bottom:Fe,update:ze}=useElementBounding(_e,{windowScroll:!1}),At=useElementBounding(pe),Lt=ref(!1),hn=ref(0),vn=ref(0),_n=computed(()=>({height:Lt.value?`${xe.value}px`:"",width:Lt.value?`${Ie.value}px`:""})),bn=computed(()=>{if(!Lt.value)return{};const $n=ie.offset?addUnit(ie.offset):0;return{height:`${xe.value}px`,width:`${Ie.value}px`,top:ie.position==="top"?$n:"",bottom:ie.position==="bottom"?$n:"",transform:vn.value?`translateY(${vn.value}px)`:"",zIndex:ie.zIndex}}),Cn=()=>{if(Ce.value)if(hn.value=Ce.value instanceof Window?document.documentElement.scrollTop:Ce.value.scrollTop||0,ie.position==="top")if(ie.target){const $n=At.bottom.value-ie.offset-xe.value;Lt.value=ie.offset>Ne.value&&At.bottom.value>0,vn.value=$n<0?$n:0}else Lt.value=ie.offset>Ne.value;else if(ie.target){const $n=$e.value-At.top.value-ie.offset-xe.value;Lt.value=$e.value-ie.offset<Fe.value&&$e.value>At.top.value,vn.value=$n<0?-$n:0}else Lt.value=$e.value-ie.offset<Fe.value},En=()=>{ze(),ae("scroll",{scrollTop:hn.value,fixed:Lt.value})};return watch(Lt,$n=>ae("change",$n)),onMounted(()=>{var $n;ie.target?(pe.value=($n=document.querySelector(ie.target))!=null?$n:void 0,pe.value||throwError$1(COMPONENT_NAME$n,`Target is not existed: ${ie.target}`)):pe.value=document.documentElement,Ce.value=getScrollContainer(_e.value,!0),ze()}),useEventListener$1(Ce,"scroll",En),watchEffect(Cn),oe({update:Cn,updateRoot:ze}),($n,wn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:_e,class:normalizeClass(unref(le).b()),style:normalizeStyle$1(unref(_n))},[createBaseVNode("div",{class:normalizeClass({[unref(le).m("fixed")]:Lt.value}),style:normalizeStyle$1(unref(bn))},[renderSlot($n.$slots,"default")],6)],6))}});var Affix=_export_sfc$1(_sfc_main$2k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/affix/src/affix.vue"]]);const ElAffix=withInstall(Affix),iconProps=buildProps({size:{type:definePropType([Number,String])},color:{type:String}}),__default__$1B=defineComponent({name:"ElIcon",inheritAttrs:!1}),_sfc_main$2j=defineComponent({...__default__$1B,props:iconProps,setup($){const oe=$,ae=useNamespace("icon"),ie=computed(()=>{const{size:le,color:pe}=oe;return!le&&!pe?{}:{fontSize:isUndefined$1(le)?void 0:addUnit(le),"--color":pe}});return(le,pe)=>(openBlock(),createElementBlock("i",mergeProps({class:unref(ae).b(),style:unref(ie)},le.$attrs),[renderSlot(le.$slots,"default")],16))}});var Icon$2=_export_sfc$1(_sfc_main$2j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const ElIcon=withInstall(Icon$2),alertEffects=["light","dark"],alertProps=buildProps({title:{type:String,default:""},description:{type:String,default:""},type:{type:String,values:keysOf(TypeComponentsMap),default:"info"},closable:{type:Boolean,default:!0},closeText:{type:String,default:""},showIcon:Boolean,center:Boolean,effect:{type:String,values:alertEffects,default:"light"}}),alertEmits={close:$=>$ instanceof MouseEvent},__default__$1A=defineComponent({name:"ElAlert"}),_sfc_main$2i=defineComponent({...__default__$1A,props:alertProps,emits:alertEmits,setup($,{emit:oe}){const ae=$,{Close:ie}=TypeComponents,le=useSlots(),pe=useNamespace("alert"),_e=ref(!0),Ce=computed(()=>TypeComponentsMap[ae.type]),$e=computed(()=>[pe.e("icon"),{[pe.is("big")]:!!ae.description||!!le.default}]),xe=computed(()=>({[pe.is("bold")]:ae.description||le.default})),Ie=Ne=>{_e.value=!1,oe("close",Ne)};return(Ne,Fe)=>(openBlock(),createBlock(Transition,{name:unref(pe).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(pe).b(),unref(pe).m(Ne.type),unref(pe).is("center",Ne.center),unref(pe).is(Ne.effect)]),role:"alert"},[Ne.showIcon&&unref(Ce)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($e))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ce))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).e("content"))},[Ne.title||Ne.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(pe).e("title"),unref(xe)])},[renderSlot(Ne.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ne.title),1)])],2)):createCommentVNode("v-if",!0),Ne.$slots.default||Ne.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(pe).e("description"))},[renderSlot(Ne.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ne.description),1)])],2)):createCommentVNode("v-if",!0),Ne.closable?(openBlock(),createElementBlock(Fragment,{key:2},[Ne.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(pe).e("close-btn"),unref(pe).is("customed")]),onClick:Ie},toDisplayString$1(Ne.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(pe).e("close-btn")),onClick:Ie},{default:withCtx(()=>[createVNode(unref(ie))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,_e.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc$1(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/alert/src/alert.vue"]]);const ElAlert=withInstall(Alert),formContextKey=Symbol("formContextKey"),formItemContextKey=Symbol("formItemContextKey"),useFormSize=($,oe={})=>{const ae=ref(void 0),ie=oe.prop?ae:useProp("size"),le=oe.global?ae:useGlobalSize(),pe=oe.form?{size:void 0}:inject(formContextKey,void 0),_e=oe.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>ie.value||unref($)||(_e==null?void 0:_e.size)||(pe==null?void 0:pe.size)||le.value||"")},useFormDisabled=$=>{const oe=useProp("disabled"),ae=inject(formContextKey,void 0);return computed(()=>oe.value||unref($)||(ae==null?void 0:ae.disabled)||!1)},useFormItem=()=>{const $=inject(formContextKey,void 0),oe=inject(formItemContextKey,void 0);return{form:$,formItem:oe}},useFormItemInputId=($,{formItemContext:oe,disableIdGeneration:ae,disableIdManagement:ie})=>{ae||(ae=ref(!1)),ie||(ie=ref(!1));const le=ref();let pe;const _e=computed(()=>{var Ce;return!!(!$.label&&oe&&oe.inputIds&&((Ce=oe.inputIds)==null?void 0:Ce.length)<=1)});return onMounted(()=>{pe=watch([toRef$1($,"id"),ae],([Ce,$e])=>{const xe=Ce??($e?void 0:useId().value);xe!==le.value&&(oe!=null&&oe.removeInputId&&(le.value&&oe.removeInputId(le.value),!(ie!=null&&ie.value)&&!$e&&xe&&oe.addInputId(xe)),le.value=xe)},{immediate:!0})}),onUnmounted(()=>{pe&&pe(),oe!=null&&oe.removeInputId&&le.value&&oe.removeInputId(le.value)}),{isLabeledByFormItem:_e,inputId:le}},formMetaProps=buildProps({size:{type:String,values:componentSizes},disabled:Boolean}),formProps=buildProps({...formMetaProps,model:Object,rules:{type:definePropType(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),formEmits={validate:($,oe,ae)=>(isArray$c($)||isString$7($))&&isBoolean$3(oe)&&isString$7(ae)};function useFormLabelWidth(){const $=ref([]),oe=computed(()=>{if(!$.value.length)return"0";const pe=Math.max(...$.value);return pe?`${pe}px`:""});function ae(pe){const _e=$.value.indexOf(pe);return _e===-1&&oe.value,_e}function ie(pe,_e){if(pe&&_e){const Ce=ae(_e);$.value.splice(Ce,1,pe)}else pe&&$.value.push(pe)}function le(pe){const _e=ae(pe);_e>-1&&$.value.splice(_e,1)}return{autoLabelWidth:oe,registerLabelWidth:ie,deregisterLabelWidth:le}}const filterFields=($,oe)=>{const ae=castArray$1(oe);return ae.length>0?$.filter(ie=>ie.prop&&ae.includes(ie.prop)):$},COMPONENT_NAME$m="ElForm",__default__$1z=defineComponent({name:COMPONENT_NAME$m}),_sfc_main$2h=defineComponent({...__default__$1z,props:formProps,emits:formEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=[],pe=useFormSize(),_e=useNamespace("form"),Ce=computed(()=>{const{labelPosition:_n,inline:bn}=ie;return[_e.b(),_e.m(pe.value||"default"),{[_e.m(`label-${_n}`)]:_n,[_e.m("inline")]:bn}]}),$e=_n=>{le.push(_n)},xe=_n=>{_n.prop&&le.splice(le.indexOf(_n),1)},Ie=(_n=[])=>{ie.model&&filterFields(le,_n).forEach(bn=>bn.resetField())},Ne=(_n=[])=>{filterFields(le,_n).forEach(bn=>bn.clearValidate())},Fe=computed(()=>!!ie.model),ze=_n=>{if(le.length===0)return[];const bn=filterFields(le,_n);return bn.length?bn:[]},At=async _n=>hn(void 0,_n),Lt=async(_n=[])=>{if(!Fe.value)return!1;const bn=ze(_n);if(bn.length===0)return!0;let Cn={};for(const En of bn)try{await En.validate("")}catch($n){Cn={...Cn,...$n}}return Object.keys(Cn).length===0?!0:Promise.reject(Cn)},hn=async(_n=[],bn)=>{const Cn=!isFunction$5(bn);try{const En=await Lt(_n);return En===!0&&(bn==null||bn(En)),En}catch(En){if(En instanceof Error)throw En;const $n=En;return ie.scrollToError&&vn(Object.keys($n)[0]),bn==null||bn(!1,$n),Cn&&Promise.reject($n)}},vn=_n=>{var bn;const Cn=filterFields(le,_n)[0];Cn&&((bn=Cn.$el)==null||bn.scrollIntoView(ie.scrollIntoViewOptions))};return watch(()=>ie.rules,()=>{ie.validateOnRuleChange&&At().catch(_n=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(ie),emit:ae,resetFields:Ie,clearValidate:Ne,validateField:hn,addField:$e,removeField:xe,...useFormLabelWidth()})),oe({validate:At,validateField:hn,resetFields:Ie,clearValidate:Ne,scrollToField:vn}),(_n,bn)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(Ce))},[renderSlot(_n.$slots,"default")],2))}});var Form=_export_sfc$1(_sfc_main$2h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function($){for(var oe=1;oe<arguments.length;oe++){var ae=arguments[oe];for(var ie in ae)Object.prototype.hasOwnProperty.call(ae,ie)&&($[ie]=ae[ie])}return $},_extends.apply(this,arguments)}function _inheritsLoose($,oe){$.prototype=Object.create(oe.prototype),$.prototype.constructor=$,_setPrototypeOf($,oe)}function _getPrototypeOf($){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(ae){return ae.__proto__||Object.getPrototypeOf(ae)},_getPrototypeOf($)}function _setPrototypeOf($,oe){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ie,le){return ie.__proto__=le,ie},_setPrototypeOf($,oe)}function _isNativeReflectConstruct(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function _construct($,oe,ae){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(le,pe,_e){var Ce=[null];Ce.push.apply(Ce,pe);var $e=Function.bind.apply(le,Ce),xe=new $e;return _e&&_setPrototypeOf(xe,_e.prototype),xe},_construct.apply(null,arguments)}function _isNativeFunction($){return Function.toString.call($).indexOf("[native code]")!==-1}function _wrapNativeSuper($){var oe=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(ie){if(ie===null||!_isNativeFunction(ie))return ie;if(typeof ie!="function")throw new TypeError("Super expression must either be null or a function");if(typeof oe<"u"){if(oe.has(ie))return oe.get(ie);oe.set(ie,le)}function le(){return _construct(ie,arguments,_getPrototypeOf(this).constructor)}return le.prototype=Object.create(ie.prototype,{constructor:{value:le,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(le,ie)},_wrapNativeSuper($)}var formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u"&&process.env;function convertFieldsError($){if(!$||!$.length)return null;var oe={};return $.forEach(function(ae){var ie=ae.field;oe[ie]=oe[ie]||[],oe[ie].push(ae)}),oe}function format$2($){for(var oe=arguments.length,ae=new Array(oe>1?oe-1:0),ie=1;ie<oe;ie++)ae[ie-1]=arguments[ie];var le=0,pe=ae.length;if(typeof $=="function")return $.apply(null,ae);if(typeof $=="string"){var _e=$.replace(formatRegExp,function(Ce){if(Ce==="%%")return"%";if(le>=pe)return Ce;switch(Ce){case"%s":return String(ae[le++]);case"%d":return Number(ae[le++]);case"%j":try{return JSON.stringify(ae[le++])}catch{return"[Circular]"}break;default:return Ce}});return _e}return $}function isNativeStringType($){return $==="string"||$==="url"||$==="hex"||$==="email"||$==="date"||$==="pattern"}function isEmptyValue($,oe){return!!($==null||oe==="array"&&Array.isArray($)&&!$.length||isNativeStringType(oe)&&typeof $=="string"&&!$)}function asyncParallelArray($,oe,ae){var ie=[],le=0,pe=$.length;function _e(Ce){ie.push.apply(ie,Ce||[]),le++,le===pe&&ae(ie)}$.forEach(function(Ce){oe(Ce,_e)})}function asyncSerialArray($,oe,ae){var ie=0,le=$.length;function pe(_e){if(_e&&_e.length){ae(_e);return}var Ce=ie;ie=ie+1,Ce<le?oe($[Ce],pe):ae([])}pe([])}function flattenObjArr($){var oe=[];return Object.keys($).forEach(function(ae){oe.push.apply(oe,$[ae]||[])}),oe}var AsyncValidationError=function($){_inheritsLoose(oe,$);function oe(ae,ie){var le;return le=$.call(this,"Async Validation Error")||this,le.errors=ae,le.fields=ie,le}return oe}(_wrapNativeSuper(Error));function asyncMap($,oe,ae,ie,le){if(oe.first){var pe=new Promise(function(Fe,ze){var At=function(vn){return ie(vn),vn.length?ze(new AsyncValidationError(vn,convertFieldsError(vn))):Fe(le)},Lt=flattenObjArr($);asyncSerialArray(Lt,ae,At)});return pe.catch(function(Fe){return Fe}),pe}var _e=oe.firstFields===!0?Object.keys($):oe.firstFields||[],Ce=Object.keys($),$e=Ce.length,xe=0,Ie=[],Ne=new Promise(function(Fe,ze){var At=function(hn){if(Ie.push.apply(Ie,hn),xe++,xe===$e)return ie(Ie),Ie.length?ze(new AsyncValidationError(Ie,convertFieldsError(Ie))):Fe(le)};Ce.length||(ie(Ie),Fe(le)),Ce.forEach(function(Lt){var hn=$[Lt];_e.indexOf(Lt)!==-1?asyncSerialArray(hn,ae,At):asyncParallelArray(hn,ae,At)})});return Ne.catch(function(Fe){return Fe}),Ne}function isErrorObj($){return!!($&&$.message!==void 0)}function getValue($,oe){for(var ae=$,ie=0;ie<oe.length;ie++){if(ae==null)return ae;ae=ae[oe[ie]]}return ae}function complementError($,oe){return function(ae){var ie;return $.fullFields?ie=getValue(oe,$.fullFields):ie=oe[ae.field||$.fullField],isErrorObj(ae)?(ae.field=ae.field||$.fullField,ae.fieldValue=ie,ae):{message:typeof ae=="function"?ae():ae,fieldValue:ie,field:ae.field||$.fullField}}}function deepMerge($,oe){if(oe){for(var ae in oe)if(oe.hasOwnProperty(ae)){var ie=oe[ae];typeof ie=="object"&&typeof $[ae]=="object"?$[ae]=_extends({},$[ae],ie):$[ae]=ie}}return $}var required$1=function(oe,ae,ie,le,pe,_e){oe.required&&(!ie.hasOwnProperty(oe.field)||isEmptyValue(ae,_e||oe.type))&&le.push(format$2(pe.messages.required,oe.fullField))},whitespace=function(oe,ae,ie,le,pe){(/^\s+$/.test(ae)||ae==="")&&le.push(format$2(pe.messages.whitespace,oe.fullField))},urlReg,getUrlRegex=function(){if(urlReg)return urlReg;var $="[a-fA-F\\d:]",oe=function(Cn){return Cn&&Cn.includeBoundaries?"(?:(?<=\\s|^)(?="+$+")|(?<="+$+")(?=\\s|$))":""},ae="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",ie="[a-fA-F\\d]{1,4}",le=(`
(?:
(?:`+ie+":){7}(?:"+ie+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+ie+":){6}(?:"+ae+"|:"+ie+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+ie+":){5}(?::"+ae+"|(?::"+ie+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+ie+":){4}(?:(?::"+ie+"){0,1}:"+ae+"|(?::"+ie+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+ie+":){3}(?:(?::"+ie+"){0,2}:"+ae+"|(?::"+ie+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+ie+":){2}(?:(?::"+ie+"){0,3}:"+ae+"|(?::"+ie+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+ie+":){1}(?:(?::"+ie+"){0,4}:"+ae+"|(?::"+ie+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+ie+"){0,5}:"+ae+"|(?::"+ie+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),pe=new RegExp("(?:^"+ae+"$)|(?:^"+le+"$)"),_e=new RegExp("^"+ae+"$"),Ce=new RegExp("^"+le+"$"),$e=function(Cn){return Cn&&Cn.exact?pe:new RegExp("(?:"+oe(Cn)+ae+oe(Cn)+")|(?:"+oe(Cn)+le+oe(Cn)+")","g")};$e.v4=function(bn){return bn&&bn.exact?_e:new RegExp(""+oe(bn)+ae+oe(bn),"g")},$e.v6=function(bn){return bn&&bn.exact?Ce:new RegExp(""+oe(bn)+le+oe(bn),"g")};var xe="(?:(?:[a-z]+:)?//)",Ie="(?:\\S+(?::\\S*)?@)?",Ne=$e.v4().source,Fe=$e.v6().source,ze="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",At="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",Lt="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",hn="(?::\\d{2,5})?",vn='(?:[/?#][^\\s"]*)?',_n="(?:"+xe+"|www\\.)"+Ie+"(?:localhost|"+Ne+"|"+Fe+"|"+ze+At+Lt+")"+hn+vn;return urlReg=new RegExp("(?:^"+_n+"$)","i"),urlReg},pattern$2={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},types$1={integer:function(oe){return types$1.number(oe)&&parseInt(oe,10)===oe},float:function(oe){return types$1.number(oe)&&!types$1.integer(oe)},array:function(oe){return Array.isArray(oe)},regexp:function(oe){if(oe instanceof RegExp)return!0;try{return!!new RegExp(oe)}catch{return!1}},date:function(oe){return typeof oe.getTime=="function"&&typeof oe.getMonth=="function"&&typeof oe.getYear=="function"&&!isNaN(oe.getTime())},number:function(oe){return isNaN(oe)?!1:typeof oe=="number"},object:function(oe){return typeof oe=="object"&&!types$1.array(oe)},method:function(oe){return typeof oe=="function"},email:function(oe){return typeof oe=="string"&&oe.length<=320&&!!oe.match(pattern$2.email)},url:function(oe){return typeof oe=="string"&&oe.length<=2048&&!!oe.match(getUrlRegex())},hex:function(oe){return typeof oe=="string"&&!!oe.match(pattern$2.hex)}},type$1=function(oe,ae,ie,le,pe){if(oe.required&&ae===void 0){required$1(oe,ae,ie,le,pe);return}var _e=["integer","float","array","regexp","object","method","email","number","date","url","hex"],Ce=oe.type;_e.indexOf(Ce)>-1?types$1[Ce](ae)||le.push(format$2(pe.messages.types[Ce],oe.fullField,oe.type)):Ce&&typeof ae!==oe.type&&le.push(format$2(pe.messages.types[Ce],oe.fullField,oe.type))},range=function(oe,ae,ie,le,pe){var _e=typeof oe.len=="number",Ce=typeof oe.min=="number",$e=typeof oe.max=="number",xe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ie=ae,Ne=null,Fe=typeof ae=="number",ze=typeof ae=="string",At=Array.isArray(ae);if(Fe?Ne="number":ze?Ne="string":At&&(Ne="array"),!Ne)return!1;At&&(Ie=ae.length),ze&&(Ie=ae.replace(xe,"_").length),_e?Ie!==oe.len&&le.push(format$2(pe.messages[Ne].len,oe.fullField,oe.len)):Ce&&!$e&&Ie<oe.min?le.push(format$2(pe.messages[Ne].min,oe.fullField,oe.min)):$e&&!Ce&&Ie>oe.max?le.push(format$2(pe.messages[Ne].max,oe.fullField,oe.max)):Ce&&$e&&(Ie<oe.min||Ie>oe.max)&&le.push(format$2(pe.messages[Ne].range,oe.fullField,oe.min,oe.max))},ENUM$1="enum",enumerable$1=function(oe,ae,ie,le,pe){oe[ENUM$1]=Array.isArray(oe[ENUM$1])?oe[ENUM$1]:[],oe[ENUM$1].indexOf(ae)===-1&&le.push(format$2(pe.messages[ENUM$1],oe.fullField,oe[ENUM$1].join(", ")))},pattern$1=function(oe,ae,ie,le,pe){if(oe.pattern){if(oe.pattern instanceof RegExp)oe.pattern.lastIndex=0,oe.pattern.test(ae)||le.push(format$2(pe.messages.pattern.mismatch,oe.fullField,ae,oe.pattern));else if(typeof oe.pattern=="string"){var _e=new RegExp(oe.pattern);_e.test(ae)||le.push(format$2(pe.messages.pattern.mismatch,oe.fullField,ae,oe.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae,"string")&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe,"string"),isEmptyValue(ae,"string")||(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe),rules.pattern(oe,ae,le,_e,pe),oe.whitespace===!0&&rules.whitespace(oe,ae,le,_e,pe))}ie(_e)},method=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules.type(oe,ae,le,_e,pe)}ie(_e)},number$3=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(ae===""&&(ae=void 0),isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},_boolean=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules.type(oe,ae,le,_e,pe)}ie(_e)},regexp$1=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),isEmptyValue(ae)||rules.type(oe,ae,le,_e,pe)}ie(_e)},integer=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},floatFn=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},array=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(ae==null&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe,"array"),ae!=null&&(rules.type(oe,ae,le,_e,pe),rules.range(oe,ae,le,_e,pe))}ie(_e)},object$1=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules.type(oe,ae,le,_e,pe)}ie(_e)},ENUM="enum",enumerable=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),ae!==void 0&&rules[ENUM](oe,ae,le,_e,pe)}ie(_e)},pattern=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae,"string")&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe),isEmptyValue(ae,"string")||rules.pattern(oe,ae,le,_e,pe)}ie(_e)},date$1=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae,"date")&&!oe.required)return ie();if(rules.required(oe,ae,le,_e,pe),!isEmptyValue(ae,"date")){var $e;ae instanceof Date?$e=ae:$e=new Date(ae),rules.type(oe,$e,le,_e,pe),$e&&rules.range(oe,$e.getTime(),le,_e,pe)}}ie(_e)},required=function(oe,ae,ie,le,pe){var _e=[],Ce=Array.isArray(ae)?"array":typeof ae;rules.required(oe,ae,le,_e,pe,Ce),ie(_e)},type=function(oe,ae,ie,le,pe){var _e=oe.type,Ce=[],$e=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if($e){if(isEmptyValue(ae,_e)&&!oe.required)return ie();rules.required(oe,ae,le,Ce,pe,_e),isEmptyValue(ae,_e)||rules.type(oe,ae,le,Ce,pe)}ie(Ce)},any=function(oe,ae,ie,le,pe){var _e=[],Ce=oe.required||!oe.required&&le.hasOwnProperty(oe.field);if(Ce){if(isEmptyValue(ae)&&!oe.required)return ie();rules.required(oe,ae,le,_e,pe)}ie(_e)},validators$2={string,method,number:number$3,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object:object$1,enum:enumerable,pattern,date:date$1,url:type,hex:type,email:type,required,any};function newMessages(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var oe=JSON.parse(JSON.stringify(this));return oe.clone=this.clone,oe}}}var messages=newMessages(),Schema=function(){function $(ae){this.rules=null,this._messages=messages,this.define(ae)}var oe=$.prototype;return oe.define=function(ie){var le=this;if(!ie)throw new Error("Cannot configure a schema with no rules");if(typeof ie!="object"||Array.isArray(ie))throw new Error("Rules must be an object");this.rules={},Object.keys(ie).forEach(function(pe){var _e=ie[pe];le.rules[pe]=Array.isArray(_e)?_e:[_e]})},oe.messages=function(ie){return ie&&(this._messages=deepMerge(newMessages(),ie)),this._messages},oe.validate=function(ie,le,pe){var _e=this;le===void 0&&(le={}),pe===void 0&&(pe=function(){});var Ce=ie,$e=le,xe=pe;if(typeof $e=="function"&&(xe=$e,$e={}),!this.rules||Object.keys(this.rules).length===0)return xe&&xe(null,Ce),Promise.resolve(Ce);function Ie(Lt){var hn=[],vn={};function _n(Cn){if(Array.isArray(Cn)){var En;hn=(En=hn).concat.apply(En,Cn)}else hn.push(Cn)}for(var bn=0;bn<Lt.length;bn++)_n(Lt[bn]);hn.length?(vn=convertFieldsError(hn),xe(hn,vn)):xe(null,Ce)}if($e.messages){var Ne=this.messages();Ne===messages&&(Ne=newMessages()),deepMerge(Ne,$e.messages),$e.messages=Ne}else $e.messages=this.messages();var Fe={},ze=$e.keys||Object.keys(this.rules);ze.forEach(function(Lt){var hn=_e.rules[Lt],vn=Ce[Lt];hn.forEach(function(_n){var bn=_n;typeof bn.transform=="function"&&(Ce===ie&&(Ce=_extends({},Ce)),vn=Ce[Lt]=bn.transform(vn)),typeof bn=="function"?bn={validator:bn}:bn=_extends({},bn),bn.validator=_e.getValidationMethod(bn),bn.validator&&(bn.field=Lt,bn.fullField=bn.fullField||Lt,bn.type=_e.getType(bn),Fe[Lt]=Fe[Lt]||[],Fe[Lt].push({rule:bn,value:vn,source:Ce,field:Lt}))})});var At={};return asyncMap(Fe,$e,function(Lt,hn){var vn=Lt.rule,_n=(vn.type==="object"||vn.type==="array")&&(typeof vn.fields=="object"||typeof vn.defaultField=="object");_n=_n&&(vn.required||!vn.required&&Lt.value),vn.field=Lt.field;function bn($n,wn){return _extends({},wn,{fullField:vn.fullField+"."+$n,fullFields:vn.fullFields?[].concat(vn.fullFields,[$n]):[$n]})}function Cn($n){$n===void 0&&($n=[]);var wn=Array.isArray($n)?$n:[$n];!$e.suppressWarning&&wn.length&&$.warning("async-validator:",wn),wn.length&&vn.message!==void 0&&(wn=[].concat(vn.message));var Tn=wn.map(complementError(vn,Ce));if($e.first&&Tn.length)return At[vn.field]=1,hn(Tn);if(!_n)hn(Tn);else{if(vn.required&&!Lt.value)return vn.message!==void 0?Tn=[].concat(vn.message).map(complementError(vn,Ce)):$e.error&&(Tn=[$e.error(vn,format$2($e.messages.required,vn.field))]),hn(Tn);var xn={};vn.defaultField&&Object.keys(Lt.value).map(function(On){xn[On]=vn.defaultField}),xn=_extends({},xn,Lt.rule.fields);var kn={};Object.keys(xn).forEach(function(On){var Nn=xn[On],Rn=Array.isArray(Nn)?Nn:[Nn];kn[On]=Rn.map(bn.bind(null,On))});var An=new $(kn);An.messages($e.messages),Lt.rule.options&&(Lt.rule.options.messages=$e.messages,Lt.rule.options.error=$e.error),An.validate(Lt.value,Lt.rule.options||$e,function(On){var Nn=[];Tn&&Tn.length&&Nn.push.apply(Nn,Tn),On&&On.length&&Nn.push.apply(Nn,On),hn(Nn.length?Nn:null)})}}var En;if(vn.asyncValidator)En=vn.asyncValidator(vn,Lt.value,Cn,Lt.source,$e);else if(vn.validator){try{En=vn.validator(vn,Lt.value,Cn,Lt.source,$e)}catch($n){console.error==null||console.error($n),$e.suppressValidatorError||setTimeout(function(){throw $n},0),Cn($n.message)}En===!0?Cn():En===!1?Cn(typeof vn.message=="function"?vn.message(vn.fullField||vn.field):vn.message||(vn.fullField||vn.field)+" fails"):En instanceof Array?Cn(En):En instanceof Error&&Cn(En.message)}En&&En.then&&En.then(function(){return Cn()},function($n){return Cn($n)})},function(Lt){Ie(Lt)},Ce)},oe.getType=function(ie){if(ie.type===void 0&&ie.pattern instanceof RegExp&&(ie.type="pattern"),typeof ie.validator!="function"&&ie.type&&!validators$2.hasOwnProperty(ie.type))throw new Error(format$2("Unknown rule type %s",ie.type));return ie.type||"string"},oe.getValidationMethod=function(ie){if(typeof ie.validator=="function")return ie.validator;var le=Object.keys(ie),pe=le.indexOf("message");return pe!==-1&&le.splice(pe,1),le.length===1&&le[0]==="required"?validators$2.required:validators$2[this.getType(ie)]||void 0},$}();Schema.register=function(oe,ae){if(typeof ae!="function")throw new Error("Cannot register a validator by type, validator is not a function");validators$2[oe]=ae};Schema.warning=warning$1;Schema.messages=messages;Schema.validators=validators$2;const formItemValidateStates=["","error","validating","success"],formItemProps=buildProps({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:definePropType([String,Array])},required:{type:Boolean,default:void 0},rules:{type:definePropType([Object,Array])},error:String,validateStatus:{type:String,values:formItemValidateStates},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:componentSizes}}),COMPONENT_NAME$l="ElLabelWrap";var FormLabelWrap=defineComponent({name:COMPONENT_NAME$l,props:{isAutoWidth:Boolean,updateAll:Boolean},setup($,{slots:oe}){const ae=inject(formContextKey,void 0),ie=inject(formItemContextKey);ie||throwError$1(COMPONENT_NAME$l,"usage: <el-form-item><label-wrap /></el-form-item>");const le=useNamespace("form"),pe=ref(),_e=ref(0),Ce=()=>{var Ie;if((Ie=pe.value)!=null&&Ie.firstElementChild){const Ne=window.getComputedStyle(pe.value.firstElementChild).width;return Math.ceil(Number.parseFloat(Ne))}else return 0},$e=(Ie="update")=>{nextTick(()=>{oe.default&&$.isAutoWidth&&(Ie==="update"?_e.value=Ce():Ie==="remove"&&(ae==null||ae.deregisterLabelWidth(_e.value)))})},xe=()=>$e("update");return onMounted(()=>{xe()}),onBeforeUnmount(()=>{$e("remove")}),onUpdated(()=>xe()),watch(_e,(Ie,Ne)=>{$.updateAll&&(ae==null||ae.registerLabelWidth(Ie,Ne))}),useResizeObserver(computed(()=>{var Ie,Ne;return(Ne=(Ie=pe.value)==null?void 0:Ie.firstElementChild)!=null?Ne:null}),xe),()=>{var Ie,Ne;if(!oe)return null;const{isAutoWidth:Fe}=$;if(Fe){const ze=ae==null?void 0:ae.autoLabelWidth,At=ie==null?void 0:ie.hasLabel,Lt={};if(At&&ze&&ze!=="auto"){const hn=Math.max(0,Number.parseInt(ze,10)-_e.value),vn=ae.labelPosition==="left"?"marginRight":"marginLeft";hn&&(Lt[vn]=`${hn}px`)}return createVNode("div",{ref:pe,class:[le.be("item","label-wrap")],style:Lt},[(Ie=oe.default)==null?void 0:Ie.call(oe)])}else return createVNode(Fragment,{ref:pe},[(Ne=oe.default)==null?void 0:Ne.call(oe)])}}});const _hoisted_1$14=["role","aria-labelledby"],__default__$1y=defineComponent({name:"ElFormItem"}),_sfc_main$2g=defineComponent({...__default__$1y,props:formItemProps,setup($,{expose:oe}){const ae=$,ie=useSlots(),le=inject(formContextKey,void 0),pe=inject(formItemContextKey,void 0),_e=useFormSize(void 0,{formItem:!1}),Ce=useNamespace("form-item"),$e=useId().value,xe=ref([]),Ie=ref(""),Ne=refDebounced(Ie,100),Fe=ref(""),ze=ref();let At,Lt=!1;const hn=computed(()=>{if((le==null?void 0:le.labelPosition)==="top")return{};const rr=addUnit(ae.labelWidth||(le==null?void 0:le.labelWidth)||"");return rr?{width:rr}:{}}),vn=computed(()=>{if((le==null?void 0:le.labelPosition)==="top"||le!=null&&le.inline)return{};if(!ae.label&&!ae.labelWidth&&xn)return{};const rr=addUnit(ae.labelWidth||(le==null?void 0:le.labelWidth)||"");return!ae.label&&!ie.label?{marginLeft:rr}:{}}),_n=computed(()=>[Ce.b(),Ce.m(_e.value),Ce.is("error",Ie.value==="error"),Ce.is("validating",Ie.value==="validating"),Ce.is("success",Ie.value==="success"),Ce.is("required",Rn.value||ae.required),Ce.is("no-asterisk",le==null?void 0:le.hideRequiredAsterisk),(le==null?void 0:le.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[Ce.m("feedback")]:le==null?void 0:le.statusIcon}]),bn=computed(()=>isBoolean$3(ae.inlineMessage)?ae.inlineMessage:(le==null?void 0:le.inlineMessage)||!1),Cn=computed(()=>[Ce.e("error"),{[Ce.em("error","inline")]:bn.value}]),En=computed(()=>ae.prop?isString$7(ae.prop)?ae.prop:ae.prop.join("."):""),$n=computed(()=>!!(ae.label||ie.label)),wn=computed(()=>ae.for||xe.value.length===1?xe.value[0]:void 0),Tn=computed(()=>!wn.value&&$n.value),xn=!!pe,kn=computed(()=>{const rr=le==null?void 0:le.model;if(!(!rr||!ae.prop))return getProp(rr,ae.prop).value}),An=computed(()=>{const{required:rr}=ae,qn=[];ae.rules&&qn.push(...castArray$1(ae.rules));const Yn=le==null?void 0:le.rules;if(Yn&&ae.prop){const ar=getProp(Yn,ae.prop).value;ar&&qn.push(...castArray$1(ar))}if(rr!==void 0){const ar=qn.map((pr,Un)=>[pr,Un]).filter(([pr])=>Object.keys(pr).includes("required"));if(ar.length>0)for(const[pr,Un]of ar)pr.required!==rr&&(qn[Un]={...pr,required:rr});else qn.push({required:rr})}return qn}),On=computed(()=>An.value.length>0),Nn=rr=>An.value.filter(Yn=>!Yn.trigger||!rr?!0:Array.isArray(Yn.trigger)?Yn.trigger.includes(rr):Yn.trigger===rr).map(({trigger:Yn,...ar})=>ar),Rn=computed(()=>An.value.some(rr=>rr.required)),zn=computed(()=>{var rr;return Ne.value==="error"&&ae.showMessage&&((rr=le==null?void 0:le.showMessage)!=null?rr:!0)}),Bn=computed(()=>`${ae.label||""}${(le==null?void 0:le.labelSuffix)||""}`),Mn=rr=>{Ie.value=rr},Fn=rr=>{var qn,Yn;const{errors:ar,fields:pr}=rr;(!ar||!pr)&&console.error(rr),Mn("error"),Fe.value=ar?(Yn=(qn=ar==null?void 0:ar[0])==null?void 0:qn.message)!=null?Yn:`${ae.prop} is required`:"",le==null||le.emit("validate",ae.prop,!1,Fe.value)},Vn=()=>{Mn("success"),le==null||le.emit("validate",ae.prop,!0,"")},jn=async rr=>{const qn=En.value;return new Schema({[qn]:rr}).validate({[qn]:kn.value},{firstFields:!0}).then(()=>(Vn(),!0)).catch(ar=>(Fn(ar),Promise.reject(ar)))},Zn=async(rr,qn)=>{if(Lt||!ae.prop)return!1;const Yn=isFunction$5(qn);if(!On.value)return qn==null||qn(!1),!1;const ar=Nn(rr);return ar.length===0?(qn==null||qn(!0),!0):(Mn("validating"),jn(ar).then(()=>(qn==null||qn(!0),!0)).catch(pr=>{const{fields:Un}=pr;return qn==null||qn(!1,Un),Yn?!1:Promise.reject(Un)}))},Gn=()=>{Mn(""),Fe.value="",Lt=!1},Xn=async()=>{const rr=le==null?void 0:le.model;if(!rr||!ae.prop)return;const qn=getProp(rr,ae.prop);Lt=!0,qn.value=clone$4(At),await nextTick(),Gn(),Lt=!1},cr=rr=>{xe.value.includes(rr)||xe.value.push(rr)},nr=rr=>{xe.value=xe.value.filter(qn=>qn!==rr)};watch(()=>ae.error,rr=>{Fe.value=rr||"",Mn(rr?"error":"")},{immediate:!0}),watch(()=>ae.validateStatus,rr=>Mn(rr||""));const er=reactive({...toRefs(ae),$el:ze,size:_e,validateState:Ie,labelId:$e,inputIds:xe,isGroup:Tn,hasLabel:$n,addInputId:cr,removeInputId:nr,resetField:Xn,clearValidate:Gn,validate:Zn});return provide(formItemContextKey,er),onMounted(()=>{ae.prop&&(le==null||le.addField(er),At=clone$4(kn.value))}),onBeforeUnmount(()=>{le==null||le.removeField(er)}),oe({size:_e,validateMessage:Fe,validateState:Ie,validate:Zn,clearValidate:Gn,resetField:Xn}),(rr,qn)=>{var Yn;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:ze,class:normalizeClass(unref(_n)),role:unref(Tn)?"group":void 0,"aria-labelledby":unref(Tn)?unref($e):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(hn).width==="auto","update-all":((Yn=unref(le))==null?void 0:Yn.labelWidth)==="auto"},{default:withCtx(()=>[unref($n)?(openBlock(),createBlock(resolveDynamicComponent(unref(wn)?"label":"div"),{key:0,id:unref($e),for:unref(wn),class:normalizeClass(unref(Ce).e("label")),style:normalizeStyle$1(unref(hn))},{default:withCtx(()=>[renderSlot(rr.$slots,"label",{label:unref(Bn)},()=>[createTextVNode(toDisplayString$1(unref(Bn)),1)])]),_:3},8,["id","for","class","style"])):createCommentVNode("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("content")),style:normalizeStyle$1(unref(vn))},[renderSlot(rr.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(Ce).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(zn)?renderSlot(rr.$slots,"error",{key:0,error:Fe.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(Cn))},toDisplayString$1(Fe.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$14)}}});var FormItem=_export_sfc$1(_sfc_main$2g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const ElForm=withInstall(Form,{FormItem}),ElFormItem=withNoopInstall(FormItem);let hiddenTextarea;const HIDDEN_STYLE=`
height:0 !important;
visibility:hidden !important;
${isFirefox()?"":"overflow:hidden !important;"}
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,CONTEXT_STYLE=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function calculateNodeStyling($){const oe=window.getComputedStyle($),ae=oe.getPropertyValue("box-sizing"),ie=Number.parseFloat(oe.getPropertyValue("padding-bottom"))+Number.parseFloat(oe.getPropertyValue("padding-top")),le=Number.parseFloat(oe.getPropertyValue("border-bottom-width"))+Number.parseFloat(oe.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(_e=>`${_e}:${oe.getPropertyValue(_e)}`).join(";"),paddingSize:ie,borderSize:le,boxSizing:ae}}function calcTextareaHeight($,oe=1,ae){var ie;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:le,borderSize:pe,boxSizing:_e,contextStyle:Ce}=calculateNodeStyling($);hiddenTextarea.setAttribute("style",`${Ce};${HIDDEN_STYLE}`),hiddenTextarea.value=$.value||$.placeholder||"";let $e=hiddenTextarea.scrollHeight;const xe={};_e==="border-box"?$e=$e+pe:_e==="content-box"&&($e=$e-le),hiddenTextarea.value="";const Ie=hiddenTextarea.scrollHeight-le;if(isNumber$5(oe)){let Ne=Ie*oe;_e==="border-box"&&(Ne=Ne+le+pe),$e=Math.max(Ne,$e),xe.minHeight=`${Ne}px`}if(isNumber$5(ae)){let Ne=Ie*ae;_e==="border-box"&&(Ne=Ne+le+pe),$e=Math.min(Ne,$e)}return xe.height=`${$e}px`,(ie=hiddenTextarea.parentNode)==null||ie.removeChild(hiddenTextarea),hiddenTextarea=void 0,xe}const inputProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:definePropType([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:definePropType([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:iconPropType},prefixIcon:{type:iconPropType},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:definePropType([Object,Array,String]),default:()=>mutable({})}}),inputEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($),input:$=>isString$7($),change:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,mouseleave:$=>$ instanceof MouseEvent,mouseenter:$=>$ instanceof MouseEvent,keydown:$=>$ instanceof Event,compositionstart:$=>$ instanceof CompositionEvent,compositionupdate:$=>$ instanceof CompositionEvent,compositionend:$=>$ instanceof CompositionEvent},_hoisted_1$13=["role"],_hoisted_2$H=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form"],_hoisted_3$m=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form"],__default__$1x=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main$2f=defineComponent({...__default__$1x,props:inputProps,emits:inputEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useAttrs$1(),pe=useSlots(),_e=computed(()=>{const gr={};return ie.containerRole==="combobox"&&(gr["aria-haspopup"]=le["aria-haspopup"],gr["aria-owns"]=le["aria-owns"],gr["aria-expanded"]=le["aria-expanded"]),gr}),Ce=computed(()=>[ie.type==="textarea"?hn.b():Lt.b(),Lt.m(ze.value),Lt.is("disabled",At.value),Lt.is("exceed",Zn.value),{[Lt.b("group")]:pe.prepend||pe.append,[Lt.bm("group","append")]:pe.append,[Lt.bm("group","prepend")]:pe.prepend,[Lt.m("prefix")]:pe.prefix||ie.prefixIcon,[Lt.m("suffix")]:pe.suffix||ie.suffixIcon||ie.clearable||ie.showPassword,[Lt.bm("suffix","password-clear")]:Mn.value&&Fn.value},le.class]),$e=computed(()=>[Lt.e("wrapper"),Lt.is("focus",bn.value)]),xe=useAttrs({excludeKeys:computed(()=>Object.keys(_e.value))}),{form:Ie,formItem:Ne}=useFormItem(),{inputId:Fe}=useFormItemInputId(ie,{formItemContext:Ne}),ze=useFormSize(),At=useFormDisabled(),Lt=useNamespace("input"),hn=useNamespace("textarea"),vn=shallowRef(),_n=shallowRef(),bn=ref(!1),Cn=ref(!1),En=ref(!1),$n=ref(!1),wn=ref(),Tn=shallowRef(ie.inputStyle),xn=computed(()=>vn.value||_n.value),kn=computed(()=>{var gr;return(gr=Ie==null?void 0:Ie.statusIcon)!=null?gr:!1}),An=computed(()=>(Ne==null?void 0:Ne.validateState)||""),On=computed(()=>An.value&&ValidateComponentsMap[An.value]),Nn=computed(()=>$n.value?view_default:hide_default),Rn=computed(()=>[le.style,ie.inputStyle]),zn=computed(()=>[ie.inputStyle,Tn.value,{resize:ie.resize}]),Bn=computed(()=>isNil(ie.modelValue)?"":String(ie.modelValue)),Mn=computed(()=>ie.clearable&&!At.value&&!ie.readonly&&!!Bn.value&&(bn.value||Cn.value)),Fn=computed(()=>ie.showPassword&&!At.value&&!ie.readonly&&!!Bn.value&&(!!Bn.value||bn.value)),Vn=computed(()=>ie.showWordLimit&&!!xe.value.maxlength&&(ie.type==="text"||ie.type==="textarea")&&!At.value&&!ie.readonly&&!ie.showPassword),jn=computed(()=>Bn.value.length),Zn=computed(()=>!!Vn.value&&jn.value>Number(xe.value.maxlength)),Gn=computed(()=>!!pe.suffix||!!ie.suffixIcon||Mn.value||ie.showPassword||Vn.value||!!An.value&&kn.value),[Xn,cr]=useCursor(vn);useResizeObserver(_n,gr=>{if(rr(),!Vn.value||ie.resize!=="both")return;const Or=gr[0],{width:Lr}=Or.contentRect;wn.value={right:`calc(100% - ${Lr+15+6}px)`}});const nr=()=>{const{type:gr,autosize:Or}=ie;if(!(!isClient$2||gr!=="textarea"||!_n.value))if(Or){const Lr=isObject$8(Or)?Or.minRows:void 0,Vr=isObject$8(Or)?Or.maxRows:void 0,Rr=calcTextareaHeight(_n.value,Lr,Vr);Tn.value={overflowY:"hidden",...Rr},nextTick(()=>{_n.value.offsetHeight,Tn.value=Rr})}else Tn.value={minHeight:calcTextareaHeight(_n.value).minHeight}},rr=(gr=>{let Or=!1;return()=>{var Lr;if(Or||!ie.autosize)return;((Lr=_n.value)==null?void 0:Lr.offsetParent)===null||(gr(),Or=!0)}})(nr),qn=()=>{const gr=xn.value;!gr||gr.value===Bn.value||(gr.value=Bn.value)},Yn=async gr=>{Xn();let{value:Or}=gr.target;if(ie.formatter&&(Or=ie.parser?ie.parser(Or):Or,Or=ie.formatter(Or)),!En.value){if(Or===Bn.value){qn();return}ae(UPDATE_MODEL_EVENT,Or),ae("input",Or),await nextTick(),qn(),cr()}},ar=gr=>{ae("change",gr.target.value)},pr=gr=>{ae("compositionstart",gr),En.value=!0},Un=gr=>{var Or;ae("compositionupdate",gr);const Lr=(Or=gr.target)==null?void 0:Or.value,Vr=Lr[Lr.length-1]||"";En.value=!isKorean(Vr)},tr=gr=>{ae("compositionend",gr),En.value&&(En.value=!1,Yn(gr))},ur=()=>{$n.value=!$n.value,_r()},_r=async()=>{var gr;await nextTick(),(gr=xn.value)==null||gr.focus()},Er=()=>{var gr;return(gr=xn.value)==null?void 0:gr.blur()},sr=gr=>{bn.value=!0,ae("focus",gr)},Pr=gr=>{var Or;bn.value=!1,ae("blur",gr),ie.validateEvent&&((Or=Ne==null?void 0:Ne.validate)==null||Or.call(Ne,"blur").catch(Lr=>void 0))},Sr=gr=>{Cn.value=!1,ae("mouseleave",gr)},kr=gr=>{Cn.value=!0,ae("mouseenter",gr)},mr=gr=>{ae("keydown",gr)},lr=()=>{var gr;(gr=xn.value)==null||gr.select()},hr=()=>{ae(UPDATE_MODEL_EVENT,""),ae("change",""),ae("clear"),ae("input","")};return watch(()=>ie.modelValue,()=>{var gr;nextTick(()=>nr()),ie.validateEvent&&((gr=Ne==null?void 0:Ne.validate)==null||gr.call(Ne,"change").catch(Or=>void 0))}),watch(Bn,()=>qn()),watch(()=>ie.type,async()=>{await nextTick(),qn(),nr()}),onMounted(()=>{!ie.formatter&&ie.parser,qn(),nextTick(nr)}),oe({input:vn,textarea:_n,ref:xn,textareaStyle:zn,autosize:toRef$1(ie,"autosize"),focus:_r,blur:Er,select:lr,clear:hr,resizeTextarea:nr}),(gr,Or)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(_e),{class:unref(Ce),style:unref(Rn),role:gr.containerRole,onMouseenter:kr,onMouseleave:Sr}),[createCommentVNode(" input "),gr.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),gr.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Lt).be("group","prepend"))},[renderSlot(gr.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($e))},[createCommentVNode(" prefix slot "),gr.$slots.prefix||gr.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Lt).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("prefix-inner")),onClick:_r},[renderSlot(gr.$slots,"prefix"),gr.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Lt).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(gr.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("input",mergeProps({id:unref(Fe),ref_key:"input",ref:vn,class:unref(Lt).e("inner")},unref(xe),{type:gr.showPassword?$n.value?"text":"password":gr.type,disabled:unref(At),formatter:gr.formatter,parser:gr.parser,readonly:gr.readonly,autocomplete:gr.autocomplete,tabindex:gr.tabindex,"aria-label":gr.label,placeholder:gr.placeholder,style:gr.inputStyle,form:ie.form,onCompositionstart:pr,onCompositionupdate:Un,onCompositionend:tr,onInput:Yn,onFocus:sr,onBlur:Pr,onChange:ar,onKeydown:mr}),null,16,_hoisted_2$H),createCommentVNode(" suffix slot "),unref(Gn)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Lt).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("suffix-inner")),onClick:_r},[!unref(Mn)||!unref(Fn)||!unref(Vn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(gr.$slots,"suffix"),gr.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Lt).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(gr.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(Mn)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:hr},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Fn)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("password")]),onClick:ur},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Nn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Vn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(Lt).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(Lt).e("count-inner"))},toDisplayString$1(unref(jn))+" / "+toDisplayString$1(unref(xe).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(An)&&unref(On)&&unref(kn)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(Lt).e("icon"),unref(Lt).e("validateIcon"),unref(Lt).is("loading",unref(An)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(On))))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)):createCommentVNode("v-if",!0)],2),createCommentVNode(" append slot "),gr.$slots.append?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(Lt).be("group","append"))},[renderSlot(gr.$slots,"append")],2)):createCommentVNode("v-if",!0)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" textarea "),createBaseVNode("textarea",mergeProps({id:unref(Fe),ref_key:"textarea",ref:_n,class:unref(hn).e("inner")},unref(xe),{tabindex:gr.tabindex,disabled:unref(At),readonly:gr.readonly,autocomplete:gr.autocomplete,style:unref(zn),"aria-label":gr.label,placeholder:gr.placeholder,form:ie.form,onCompositionstart:pr,onCompositionupdate:Un,onCompositionend:tr,onInput:Yn,onFocus:sr,onBlur:Pr,onChange:ar,onKeydown:mr}),null,16,_hoisted_3$m),unref(Vn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1(wn.value),class:normalizeClass(unref(Lt).e("count"))},toDisplayString$1(unref(jn))+" / "+toDisplayString$1(unref(xe).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$13)),[[vShow,gr.type!=="hidden"]])}});var Input=_export_sfc$1(_sfc_main$2f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const ElInput=withInstall(Input),GAP=4,BAR_MAP={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},renderThumbStyle$1=({move:$,size:oe,bar:ae})=>({[ae.size]:oe,transform:`translate${ae.axis}(${$}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$k="Thumb",_sfc_main$2e=defineComponent({__name:"thumb",props:thumbProps,setup($){const oe=$,ae=inject(scrollbarContextKey),ie=useNamespace("scrollbar");ae||throwError$1(COMPONENT_NAME$k,"can not inject scrollbar context");const le=ref(),pe=ref(),_e=ref({}),Ce=ref(!1);let $e=!1,xe=!1,Ie=isClient$2?document.onselectstart:null;const Ne=computed(()=>BAR_MAP[oe.vertical?"vertical":"horizontal"]),Fe=computed(()=>renderThumbStyle$1({size:oe.size,move:oe.move,bar:Ne.value})),ze=computed(()=>le.value[Ne.value.offset]**2/ae.wrapElement[Ne.value.scrollSize]/oe.ratio/pe.value[Ne.value.offset]),At=$n=>{var wn;if($n.stopPropagation(),$n.ctrlKey||[1,2].includes($n.button))return;(wn=window.getSelection())==null||wn.removeAllRanges(),hn($n);const Tn=$n.currentTarget;Tn&&(_e.value[Ne.value.axis]=Tn[Ne.value.offset]-($n[Ne.value.client]-Tn.getBoundingClientRect()[Ne.value.direction]))},Lt=$n=>{if(!pe.value||!le.value||!ae.wrapElement)return;const wn=Math.abs($n.target.getBoundingClientRect()[Ne.value.direction]-$n[Ne.value.client]),Tn=pe.value[Ne.value.offset]/2,xn=(wn-Tn)*100*ze.value/le.value[Ne.value.offset];ae.wrapElement[Ne.value.scroll]=xn*ae.wrapElement[Ne.value.scrollSize]/100},hn=$n=>{$n.stopImmediatePropagation(),$e=!0,document.addEventListener("mousemove",vn),document.addEventListener("mouseup",_n),Ie=document.onselectstart,document.onselectstart=()=>!1},vn=$n=>{if(!le.value||!pe.value||$e===!1)return;const wn=_e.value[Ne.value.axis];if(!wn)return;const Tn=(le.value.getBoundingClientRect()[Ne.value.direction]-$n[Ne.value.client])*-1,xn=pe.value[Ne.value.offset]-wn,kn=(Tn-xn)*100*ze.value/le.value[Ne.value.offset];ae.wrapElement[Ne.value.scroll]=kn*ae.wrapElement[Ne.value.scrollSize]/100},_n=()=>{$e=!1,_e.value[Ne.value.axis]=0,document.removeEventListener("mousemove",vn),document.removeEventListener("mouseup",_n),En(),xe&&(Ce.value=!1)},bn=()=>{xe=!1,Ce.value=!!oe.size},Cn=()=>{xe=!0,Ce.value=$e};onBeforeUnmount(()=>{En(),document.removeEventListener("mouseup",_n)});const En=()=>{document.onselectstart!==Ie&&(document.onselectstart=Ie)};return useEventListener$1(toRef$1(ae,"scrollbarElement"),"mousemove",bn),useEventListener$1(toRef$1(ae,"scrollbarElement"),"mouseleave",Cn),($n,wn)=>(openBlock(),createBlock(Transition,{name:unref(ie).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:le,class:normalizeClass([unref(ie).e("bar"),unref(ie).is(unref(Ne).key)]),onMousedown:Lt},[createBaseVNode("div",{ref_key:"thumb",ref:pe,class:normalizeClass(unref(ie).e("thumb")),style:normalizeStyle$1(unref(Fe)),onMousedown:At},null,38)],34),[[vShow,$n.always||Ce.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc$1(_sfc_main$2e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const barProps=buildProps({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),_sfc_main$2d=defineComponent({__name:"bar",props:barProps,setup($,{expose:oe}){const ae=$,ie=ref(0),le=ref(0);return oe({handleScroll:_e=>{if(_e){const Ce=_e.offsetHeight-GAP,$e=_e.offsetWidth-GAP;le.value=_e.scrollTop*100/Ce*ae.ratioY,ie.value=_e.scrollLeft*100/$e*ae.ratioX}}}),(_e,Ce)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:ie.value,ratio:_e.ratioX,size:_e.width,always:_e.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:le.value,ratio:_e.ratioY,size:_e.height,vertical:"",always:_e.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc$1(_sfc_main$2d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const scrollbarProps=buildProps({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:definePropType([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20}}),scrollbarEmits={scroll:({scrollTop:$,scrollLeft:oe})=>[$,oe].every(isNumber$5)},COMPONENT_NAME$j="ElScrollbar",__default__$1w=defineComponent({name:COMPONENT_NAME$j}),_sfc_main$2c=defineComponent({...__default__$1w,props:scrollbarProps,emits:scrollbarEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("scrollbar");let pe,_e;const Ce=ref(),$e=ref(),xe=ref(),Ie=ref("0"),Ne=ref("0"),Fe=ref(),ze=ref(1),At=ref(1),Lt=computed(()=>{const wn={};return ie.height&&(wn.height=addUnit(ie.height)),ie.maxHeight&&(wn.maxHeight=addUnit(ie.maxHeight)),[ie.wrapStyle,wn]}),hn=computed(()=>[ie.wrapClass,le.e("wrap"),{[le.em("wrap","hidden-default")]:!ie.native}]),vn=computed(()=>[le.e("view"),ie.viewClass]),_n=()=>{var wn;$e.value&&((wn=Fe.value)==null||wn.handleScroll($e.value),ae("scroll",{scrollTop:$e.value.scrollTop,scrollLeft:$e.value.scrollLeft}))};function bn(wn,Tn){isObject$8(wn)?$e.value.scrollTo(wn):isNumber$5(wn)&&isNumber$5(Tn)&&$e.value.scrollTo(wn,Tn)}const Cn=wn=>{isNumber$5(wn)&&($e.value.scrollTop=wn)},En=wn=>{isNumber$5(wn)&&($e.value.scrollLeft=wn)},$n=()=>{if(!$e.value)return;const wn=$e.value.offsetHeight-GAP,Tn=$e.value.offsetWidth-GAP,xn=wn**2/$e.value.scrollHeight,kn=Tn**2/$e.value.scrollWidth,An=Math.max(xn,ie.minSize),On=Math.max(kn,ie.minSize);ze.value=xn/(wn-xn)/(An/(wn-An)),At.value=kn/(Tn-kn)/(On/(Tn-On)),Ne.value=An+GAP<wn?`${An}px`:"",Ie.value=On+GAP<Tn?`${On}px`:""};return watch(()=>ie.noresize,wn=>{wn?(pe==null||pe(),_e==null||_e()):({stop:pe}=useResizeObserver(xe,$n),_e=useEventListener$1("resize",$n))},{immediate:!0}),watch(()=>[ie.maxHeight,ie.height],()=>{ie.native||nextTick(()=>{var wn;$n(),$e.value&&((wn=Fe.value)==null||wn.handleScroll($e.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:Ce,wrapElement:$e})),onMounted(()=>{ie.native||nextTick(()=>{$n()})}),onUpdated(()=>$n()),oe({wrapRef:$e,update:$n,scrollTo:bn,setScrollTop:Cn,setScrollLeft:En,handleScroll:_n}),(wn,Tn)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:Ce,class:normalizeClass(unref(le).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:$e,class:normalizeClass(unref(hn)),style:normalizeStyle$1(unref(Lt)),onScroll:_n},[(openBlock(),createBlock(resolveDynamicComponent(wn.tag),{ref_key:"resizeRef",ref:xe,class:normalizeClass(unref(vn)),style:normalizeStyle$1(wn.viewStyle)},{default:withCtx(()=>[renderSlot(wn.$slots,"default")]),_:3},8,["class","style"]))],38),wn.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:Fe,height:Ne.value,width:Ie.value,always:wn.always,"ratio-x":At.value,"ratio-y":ze.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Scrollbar=_export_sfc$1(_sfc_main$2c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const ElScrollbar=withInstall(Scrollbar),POPPER_INJECTION_KEY=Symbol("popper"),POPPER_CONTENT_INJECTION_KEY=Symbol("popperContent"),roleTypes=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],popperProps=buildProps({role:{type:String,values:roleTypes,default:"tooltip"}}),__default__$1v=defineComponent({name:"ElPopper",inheritAttrs:!1}),_sfc_main$2b=defineComponent({...__default__$1v,props:popperProps,setup($,{expose:oe}){const ae=$,ie=ref(),le=ref(),pe=ref(),_e=ref(),Ce=computed(()=>ae.role),$e={triggerRef:ie,popperInstanceRef:le,contentRef:pe,referenceRef:_e,role:Ce};return oe($e),provide(POPPER_INJECTION_KEY,$e),(xe,Ie)=>renderSlot(xe.$slots,"default")}});var Popper=_export_sfc$1(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const popperArrowProps=buildProps({arrowOffset:{type:Number,default:5}}),__default__$1u=defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),_sfc_main$2a=defineComponent({...__default__$1u,props:popperArrowProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("popper"),{arrowOffset:le,arrowRef:pe,arrowStyle:_e}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>ae.arrowOffset,Ce=>{le.value=Ce}),onBeforeUnmount(()=>{pe.value=void 0}),oe({arrowRef:pe}),(Ce,$e)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:pe,class:normalizeClass(unref(ie).e("arrow")),style:normalizeStyle$1(unref(_e)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc$1(_sfc_main$2a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup($,{slots:oe,attrs:ae}){var ie;const le=inject(FORWARD_REF_INJECTION_KEY),pe=useForwardRefDirective((ie=le==null?void 0:le.setForwardRef)!=null?ie:NOOP);return()=>{var _e;const Ce=(_e=oe.default)==null?void 0:_e.call(oe,ae);if(!Ce||Ce.length>1)return null;const $e=findFirstLegitChild(Ce);return $e?withDirectives(cloneVNode($e,ae),[[pe]]):null}}});function findFirstLegitChild($){if(!$)return null;const oe=$;for(const ae of oe){if(isObject$8(ae))switch(ae.type){case Comment:continue;case Text$1:case"svg":return wrapTextContent(ae);case Fragment:return findFirstLegitChild(ae.children);default:return ae}return wrapTextContent(ae)}return null}function wrapTextContent($){const oe=useNamespace("only-child");return createVNode("span",{class:oe.e("content")},[$])}const popperTriggerProps=buildProps({virtualRef:{type:definePropType(Object)},virtualTriggering:Boolean,onMouseenter:{type:definePropType(Function)},onMouseleave:{type:definePropType(Function)},onClick:{type:definePropType(Function)},onKeydown:{type:definePropType(Function)},onFocus:{type:definePropType(Function)},onBlur:{type:definePropType(Function)},onContextmenu:{type:definePropType(Function)},id:String,open:Boolean}),__default__$1t=defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),_sfc_main$29=defineComponent({...__default__$1t,props:popperTriggerProps,setup($,{expose:oe}){const ae=$,{role:ie,triggerRef:le}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(le);const pe=computed(()=>Ce.value?ae.id:void 0),_e=computed(()=>{if(ie&&ie.value==="tooltip")return ae.open&&ae.id?ae.id:void 0}),Ce=computed(()=>{if(ie&&ie.value!=="tooltip")return ie.value}),$e=computed(()=>Ce.value?`${ae.open}`:void 0);let xe;return onMounted(()=>{watch(()=>ae.virtualRef,Ie=>{Ie&&(le.value=unrefElement$1(Ie))},{immediate:!0}),watch(le,(Ie,Ne)=>{xe==null||xe(),xe=void 0,isElement$2(Ie)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(Fe=>{var ze;const At=ae[Fe];At&&(Ie.addEventListener(Fe.slice(2).toLowerCase(),At),(ze=Ne==null?void 0:Ne.removeEventListener)==null||ze.call(Ne,Fe.slice(2).toLowerCase(),At))}),xe=watch([pe,_e,Ce,$e],Fe=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((ze,At)=>{isNil(Fe[At])?Ie.removeAttribute(ze):Ie.setAttribute(ze,Fe[At])})},{immediate:!0})),isElement$2(Ne)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(Fe=>Ne.removeAttribute(Fe))},{immediate:!0})}),onBeforeUnmount(()=>{xe==null||xe(),xe=void 0}),oe({triggerRef:le}),(Ie,Ne)=>Ie.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},Ie.$attrs,{"aria-controls":unref(pe),"aria-describedby":unref(_e),"aria-expanded":unref($e),"aria-haspopup":unref(Ce)}),{default:withCtx(()=>[renderSlot(Ie.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc$1(_sfc_main$29,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]);const FOCUS_AFTER_TRAPPED="focus-trap.focus-after-trapped",FOCUS_AFTER_RELEASED="focus-trap.focus-after-released",FOCUSOUT_PREVENTED="focus-trap.focusout-prevented",FOCUS_AFTER_TRAPPED_OPTS={cancelable:!0,bubbles:!1},FOCUSOUT_PREVENTED_OPTS={cancelable:!0,bubbles:!1},ON_TRAP_FOCUS_EVT="focusAfterTrapped",ON_RELEASE_FOCUS_EVT="focusAfterReleased",FOCUS_TRAP_INJECTION_KEY=Symbol("elFocusTrap"),focusReason=ref(),lastUserFocusTimestamp=ref(0),lastAutomatedFocusTimestamp=ref(0);let focusReasonUserCount=0;const obtainAllFocusableElements=$=>{const oe=[],ae=document.createTreeWalker($,NodeFilter.SHOW_ELEMENT,{acceptNode:ie=>{const le=ie.tagName==="INPUT"&&ie.type==="hidden";return ie.disabled||ie.hidden||le?NodeFilter.FILTER_SKIP:ie.tabIndex>=0||ie===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;ae.nextNode();)oe.push(ae.currentNode);return oe},getVisibleElement=($,oe)=>{for(const ae of $)if(!isHidden(ae,oe))return ae},isHidden=($,oe)=>{if(getComputedStyle($).visibility==="hidden")return!0;for(;$;){if(oe&&$===oe)return!1;if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1},getEdges=$=>{const oe=obtainAllFocusableElements($),ae=getVisibleElement(oe,$),ie=getVisibleElement(oe.reverse(),$);return[ae,ie]},isSelectable=$=>$ instanceof HTMLInputElement&&"select"in $,tryFocus=($,oe)=>{if($&&$.focus){const ae=document.activeElement;$.focus({preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),$!==ae&&isSelectable($)&&oe&&$.select()}};function removeFromStack($,oe){const ae=[...$],ie=$.indexOf(oe);return ie!==-1&&ae.splice(ie,1),ae}const createFocusableStack=()=>{let $=[];return{push:ie=>{const le=$[0];le&&ie!==le&&le.pause(),$=removeFromStack($,ie),$.unshift(ie)},remove:ie=>{var le,pe;$=removeFromStack($,ie),(pe=(le=$[0])==null?void 0:le.resume)==null||pe.call(le)}}},focusFirstDescendant=($,oe=!1)=>{const ae=document.activeElement;for(const ie of $)if(tryFocus(ie,oe),document.activeElement!==ae)return},focusableStack=createFocusableStack(),isFocusCausedByUserEvent=()=>lastUserFocusTimestamp.value>lastAutomatedFocusTimestamp.value,notifyFocusReasonPointer=()=>{focusReason.value="pointer",lastUserFocusTimestamp.value=window.performance.now()},notifyFocusReasonKeydown=()=>{focusReason.value="keyboard",lastUserFocusTimestamp.value=window.performance.now()},useFocusReason=()=>(onMounted(()=>{focusReasonUserCount===0&&(document.addEventListener("mousedown",notifyFocusReasonPointer),document.addEventListener("touchstart",notifyFocusReasonPointer),document.addEventListener("keydown",notifyFocusReasonKeydown)),focusReasonUserCount++}),onBeforeUnmount(()=>{focusReasonUserCount--,focusReasonUserCount<=0&&(document.removeEventListener("mousedown",notifyFocusReasonPointer),document.removeEventListener("touchstart",notifyFocusReasonPointer),document.removeEventListener("keydown",notifyFocusReasonKeydown))}),{focusReason,lastUserFocusTimestamp,lastAutomatedFocusTimestamp}),createFocusOutPreventedEvent=$=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:$}),_sfc_main$28=defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ON_TRAP_FOCUS_EVT,ON_RELEASE_FOCUS_EVT,"focusin","focusout","focusout-prevented","release-requested"],setup($,{emit:oe}){const ae=ref();let ie,le;const{focusReason:pe}=useFocusReason();useEscapeKeydown(At=>{$.trapped&&!_e.paused&&oe("release-requested",At)});const _e={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},Ce=At=>{if(!$.loop&&!$.trapped||_e.paused)return;const{key:Lt,altKey:hn,ctrlKey:vn,metaKey:_n,currentTarget:bn,shiftKey:Cn}=At,{loop:En}=$,$n=Lt===EVENT_CODE.tab&&!hn&&!vn&&!_n,wn=document.activeElement;if($n&&wn){const Tn=bn,[xn,kn]=getEdges(Tn);if(xn&&kn){if(!Cn&&wn===kn){const On=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",On),On.defaultPrevented||(At.preventDefault(),En&&tryFocus(xn,!0))}else if(Cn&&[xn,Tn].includes(wn)){const On=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",On),On.defaultPrevented||(At.preventDefault(),En&&tryFocus(kn,!0))}}else if(wn===Tn){const On=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",On),On.defaultPrevented||At.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:ae,onKeydown:Ce}),watch(()=>$.focusTrapEl,At=>{At&&(ae.value=At)},{immediate:!0}),watch([ae],([At],[Lt])=>{At&&(At.addEventListener("keydown",Ce),At.addEventListener("focusin",Ie),At.addEventListener("focusout",Ne)),Lt&&(Lt.removeEventListener("keydown",Ce),Lt.removeEventListener("focusin",Ie),Lt.removeEventListener("focusout",Ne))});const $e=At=>{oe(ON_TRAP_FOCUS_EVT,At)},xe=At=>oe(ON_RELEASE_FOCUS_EVT,At),Ie=At=>{const Lt=unref(ae);if(!Lt)return;const hn=At.target,vn=At.relatedTarget,_n=hn&&Lt.contains(hn);$.trapped||vn&&Lt.contains(vn)||(ie=vn),_n&&oe("focusin",At),!_e.paused&&$.trapped&&(_n?le=hn:tryFocus(le,!0))},Ne=At=>{const Lt=unref(ae);if(!(_e.paused||!Lt))if($.trapped){const hn=At.relatedTarget;!isNil(hn)&&!Lt.contains(hn)&&setTimeout(()=>{if(!_e.paused&&$.trapped){const vn=createFocusOutPreventedEvent({focusReason:pe.value});oe("focusout-prevented",vn),vn.defaultPrevented||tryFocus(le,!0)}},0)}else{const hn=At.target;hn&&Lt.contains(hn)||oe("focusout",At)}};async function Fe(){await nextTick();const At=unref(ae);if(At){focusableStack.push(_e);const Lt=At.contains(document.activeElement)?ie:document.activeElement;if(ie=Lt,!At.contains(Lt)){const vn=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);At.addEventListener(FOCUS_AFTER_TRAPPED,$e),At.dispatchEvent(vn),vn.defaultPrevented||nextTick(()=>{let _n=$.focusStartEl;isString$7(_n)||(tryFocus(_n),document.activeElement!==_n&&(_n="first")),_n==="first"&&focusFirstDescendant(obtainAllFocusableElements(At),!0),(document.activeElement===Lt||_n==="container")&&tryFocus(At)})}}}function ze(){const At=unref(ae);if(At){At.removeEventListener(FOCUS_AFTER_TRAPPED,$e);const Lt=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:pe.value}});At.addEventListener(FOCUS_AFTER_RELEASED,xe),At.dispatchEvent(Lt),!Lt.defaultPrevented&&(pe.value=="keyboard"||!isFocusCausedByUserEvent()||At.contains(document.activeElement))&&tryFocus(ie??document.body),At.removeEventListener(FOCUS_AFTER_RELEASED,$e),focusableStack.remove(_e)}}return onMounted(()=>{$.trapped&&Fe(),watch(()=>$.trapped,At=>{At?Fe():ze()})}),onBeforeUnmount(()=>{$.trapped&&ze()}),{onKeydown:Ce}}});function _sfc_render$w($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default",{handleKeydown:$.onKeydown})}var ElFocusTrap=_export_sfc$1(_sfc_main$28,[["render",_sfc_render$w],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const POSITIONING_STRATEGIES=["fixed","absolute"],popperCoreConfigProps=buildProps({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:definePropType(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Ee,default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},strategy:{type:String,values:POSITIONING_STRATEGIES,default:"absolute"}}),popperContentProps=buildProps({...popperCoreConfigProps,id:String,style:{type:definePropType([String,Array,Object])},className:{type:definePropType([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:definePropType([String,Array,Object])},popperStyle:{type:definePropType([String,Array,Object])},referenceEl:{type:definePropType(Object)},triggerTargetEl:{type:definePropType(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),popperContentEmits={mouseenter:$=>$ instanceof MouseEvent,mouseleave:$=>$ instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},buildPopperOptions=($,oe=[])=>{const{placement:ae,strategy:ie,popperOptions:le}=$,pe={placement:ae,strategy:ie,...le,modifiers:[...genModifiers($),...oe]};return deriveExtraModifiers(pe,le==null?void 0:le.modifiers),pe},unwrapMeasurableEl=$=>{if(isClient$2)return unrefElement$1($)};function genModifiers($){const{offset:oe,gpuAcceleration:ae,fallbackPlacements:ie}=$;return[{name:"offset",options:{offset:[0,oe??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:ie}},{name:"computeStyles",options:{gpuAcceleration:ae}}]}function deriveExtraModifiers($,oe){oe&&($.modifiers=[...$.modifiers,...oe??[]])}const DEFAULT_ARROW_OFFSET=0,usePopperContent=$=>{const{popperInstanceRef:oe,contentRef:ae,triggerRef:ie,role:le}=inject(POPPER_INJECTION_KEY,void 0),pe=ref(),_e=ref(),Ce=computed(()=>({name:"eventListeners",enabled:!!$.visible})),$e=computed(()=>{var vn;const _n=unref(pe),bn=(vn=unref(_e))!=null?vn:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(_n),options:{element:_n,padding:bn}}}),xe=computed(()=>({onFirstUpdate:()=>{At()},...buildPopperOptions($,[unref($e),unref(Ce)])})),Ie=computed(()=>unwrapMeasurableEl($.referenceEl)||unref(ie)),{attributes:Ne,state:Fe,styles:ze,update:At,forceUpdate:Lt,instanceRef:hn}=usePopper(Ie,ae,xe);return watch(hn,vn=>oe.value=vn),onMounted(()=>{watch(()=>{var vn;return(vn=unref(Ie))==null?void 0:vn.getBoundingClientRect()},()=>{At()})}),{attributes:Ne,arrowRef:pe,contentRef:ae,instanceRef:hn,state:Fe,styles:ze,role:le,forceUpdate:Lt,update:At}},usePopperContentDOM=($,{attributes:oe,styles:ae,role:ie})=>{const{nextZIndex:le}=useZIndex(),pe=useNamespace("popper"),_e=computed(()=>unref(oe).popper),Ce=ref($.zIndex||le()),$e=computed(()=>[pe.b(),pe.is("pure",$.pure),pe.is($.effect),$.popperClass]),xe=computed(()=>[{zIndex:unref(Ce)},$.popperStyle||{},unref(ae).popper]),Ie=computed(()=>ie.value==="dialog"?"false":void 0),Ne=computed(()=>unref(ae).arrow||{});return{ariaModal:Ie,arrowStyle:Ne,contentAttrs:_e,contentClass:$e,contentStyle:xe,contentZIndex:Ce,updateZIndex:()=>{Ce.value=$.zIndex||le()}}},usePopperContentFocusTrap=($,oe)=>{const ae=ref(!1),ie=ref();return{focusStartRef:ie,trapped:ae,onFocusAfterReleased:xe=>{var Ie;((Ie=xe.detail)==null?void 0:Ie.focusReason)!=="pointer"&&(ie.value="first",oe("blur"))},onFocusAfterTrapped:()=>{oe("focus")},onFocusInTrap:xe=>{$.visible&&!ae.value&&(xe.target&&(ie.value=xe.target),ae.value=!0)},onFocusoutPrevented:xe=>{$.trapping||(xe.detail.focusReason==="pointer"&&xe.preventDefault(),ae.value=!1)},onReleaseRequested:()=>{ae.value=!1,oe("close")}}},__default__$1s=defineComponent({name:"ElPopperContent"}),_sfc_main$27=defineComponent({...__default__$1s,props:popperContentProps,emits:popperContentEmits,setup($,{expose:oe,emit:ae}){const ie=$,{focusStartRef:le,trapped:pe,onFocusAfterReleased:_e,onFocusAfterTrapped:Ce,onFocusInTrap:$e,onFocusoutPrevented:xe,onReleaseRequested:Ie}=usePopperContentFocusTrap(ie,ae),{attributes:Ne,arrowRef:Fe,contentRef:ze,styles:At,instanceRef:Lt,role:hn,update:vn}=usePopperContent(ie),{ariaModal:_n,arrowStyle:bn,contentAttrs:Cn,contentClass:En,contentStyle:$n,updateZIndex:wn}=usePopperContentDOM(ie,{styles:At,attributes:Ne,role:hn}),Tn=inject(formItemContextKey,void 0),xn=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:bn,arrowRef:Fe,arrowOffset:xn}),Tn&&(Tn.addInputId||Tn.removeInputId)&&provide(formItemContextKey,{...Tn,addInputId:NOOP,removeInputId:NOOP});let kn;const An=(Nn=!0)=>{vn(),Nn&&wn()},On=()=>{An(!1),ie.visible&&ie.focusOnShow?pe.value=!0:ie.visible===!1&&(pe.value=!1)};return onMounted(()=>{watch(()=>ie.triggerTargetEl,(Nn,Rn)=>{kn==null||kn(),kn=void 0;const zn=unref(Nn||ze.value),Bn=unref(Rn||ze.value);isElement$2(zn)&&(kn=watch([hn,()=>ie.ariaLabel,_n,()=>ie.id],Mn=>{["role","aria-label","aria-modal","id"].forEach((Fn,Vn)=>{isNil(Mn[Vn])?zn.removeAttribute(Fn):zn.setAttribute(Fn,Mn[Vn])})},{immediate:!0})),Bn!==zn&&isElement$2(Bn)&&["role","aria-label","aria-modal","id"].forEach(Mn=>{Bn.removeAttribute(Mn)})},{immediate:!0}),watch(()=>ie.visible,On,{immediate:!0})}),onBeforeUnmount(()=>{kn==null||kn(),kn=void 0}),oe({popperContentRef:ze,popperInstanceRef:Lt,updatePopper:An,contentStyle:$n}),(Nn,Rn)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:ze},unref(Cn),{style:unref($n),class:unref(En),tabindex:"-1",onMouseenter:Rn[0]||(Rn[0]=zn=>Nn.$emit("mouseenter",zn)),onMouseleave:Rn[1]||(Rn[1]=zn=>Nn.$emit("mouseleave",zn))}),[createVNode(unref(ElFocusTrap),{trapped:unref(pe),"trap-on-focus-in":!0,"focus-trap-el":unref(ze),"focus-start-el":unref(le),onFocusAfterTrapped:unref(Ce),onFocusAfterReleased:unref(_e),onFocusin:unref($e),onFocusoutPrevented:unref(xe),onReleaseRequested:unref(Ie)},{default:withCtx(()=>[renderSlot(Nn.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ElPopperContent=_export_sfc$1(_sfc_main$27,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const ElPopper=withInstall(Popper),TOOLTIP_INJECTION_KEY=Symbol("elTooltip"),useTooltipContentProps=buildProps({...useDelayedToggleProps,...popperContentProps,appendTo:{type:definePropType([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:definePropType(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean}),useTooltipTriggerProps=buildProps({...popperTriggerProps,disabled:Boolean,trigger:{type:definePropType([String,Array]),default:"hover"},triggerKeys:{type:definePropType(Array),default:()=>[EVENT_CODE.enter,EVENT_CODE.space]}}),{useModelToggleProps:useTooltipModelToggleProps,useModelToggleEmits:useTooltipModelToggleEmits,useModelToggle:useTooltipModelToggle}=createModelToggleComposable("visible"),useTooltipProps=buildProps({...popperProps,...useTooltipModelToggleProps,...useTooltipContentProps,...useTooltipTriggerProps,...popperArrowProps,showArrow:{type:Boolean,default:!0}}),tooltipEmits=[...useTooltipModelToggleEmits,"before-show","before-hide","show","hide","open","close"],isTriggerType=($,oe)=>isArray$c($)?$.includes(oe):$===oe,whenTrigger=($,oe,ae)=>ie=>{isTriggerType(unref($),oe)&&ae(ie)},__default__$1r=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$26=defineComponent({...__default__$1r,props:useTooltipTriggerProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("tooltip"),{controlled:le,id:pe,open:_e,onOpen:Ce,onClose:$e,onToggle:xe}=inject(TOOLTIP_INJECTION_KEY,void 0),Ie=ref(null),Ne=()=>{if(unref(le)||ae.disabled)return!0},Fe=toRef$1(ae,"trigger"),ze=composeEventHandlers(Ne,whenTrigger(Fe,"hover",Ce)),At=composeEventHandlers(Ne,whenTrigger(Fe,"hover",$e)),Lt=composeEventHandlers(Ne,whenTrigger(Fe,"click",Cn=>{Cn.button===0&&xe(Cn)})),hn=composeEventHandlers(Ne,whenTrigger(Fe,"focus",Ce)),vn=composeEventHandlers(Ne,whenTrigger(Fe,"focus",$e)),_n=composeEventHandlers(Ne,whenTrigger(Fe,"contextmenu",Cn=>{Cn.preventDefault(),xe(Cn)})),bn=composeEventHandlers(Ne,Cn=>{const{code:En}=Cn;ae.triggerKeys.includes(En)&&(Cn.preventDefault(),xe(Cn))});return oe({triggerRef:Ie}),(Cn,En)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(pe),"virtual-ref":Cn.virtualRef,open:unref(_e),"virtual-triggering":Cn.virtualTriggering,class:normalizeClass(unref(ie).e("trigger")),onBlur:unref(vn),onClick:unref(Lt),onContextmenu:unref(_n),onFocus:unref(hn),onMouseenter:unref(ze),onMouseleave:unref(At),onKeydown:unref(bn)},{default:withCtx(()=>[renderSlot(Cn.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var ElTooltipTrigger=_export_sfc$1(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const __default__$1q=defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),_sfc_main$25=defineComponent({...__default__$1q,props:useTooltipContentProps,setup($,{expose:oe}){const ae=$,{selector:ie}=usePopperContainerId(),le=useNamespace("tooltip"),pe=ref(null),_e=ref(!1),{controlled:Ce,id:$e,open:xe,trigger:Ie,onClose:Ne,onOpen:Fe,onShow:ze,onHide:At,onBeforeShow:Lt,onBeforeHide:hn}=inject(TOOLTIP_INJECTION_KEY,void 0),vn=computed(()=>ae.transition||`${le.namespace.value}-fade-in-linear`),_n=computed(()=>ae.persistent);onBeforeUnmount(()=>{_e.value=!0});const bn=computed(()=>unref(_n)?!0:unref(xe)),Cn=computed(()=>ae.disabled?!1:unref(xe)),En=computed(()=>ae.appendTo||ie.value),$n=computed(()=>{var Mn;return(Mn=ae.style)!=null?Mn:{}}),wn=computed(()=>!unref(xe)),Tn=()=>{At()},xn=()=>{if(unref(Ce))return!0},kn=composeEventHandlers(xn,()=>{ae.enterable&&unref(Ie)==="hover"&&Fe()}),An=composeEventHandlers(xn,()=>{unref(Ie)==="hover"&&Ne()}),On=()=>{var Mn,Fn;(Fn=(Mn=pe.value)==null?void 0:Mn.updatePopper)==null||Fn.call(Mn),Lt==null||Lt()},Nn=()=>{hn==null||hn()},Rn=()=>{ze(),Bn=onClickOutside(computed(()=>{var Mn;return(Mn=pe.value)==null?void 0:Mn.popperContentRef}),()=>{if(unref(Ce))return;unref(Ie)!=="hover"&&Ne()})},zn=()=>{ae.virtualTriggering||Ne()};let Bn;return watch(()=>unref(xe),Mn=>{Mn||Bn==null||Bn()},{flush:"post"}),watch(()=>ae.content,()=>{var Mn,Fn;(Fn=(Mn=pe.value)==null?void 0:Mn.updatePopper)==null||Fn.call(Mn)}),oe({contentRef:pe}),(Mn,Fn)=>(openBlock(),createBlock(Teleport,{disabled:!Mn.teleported,to:unref(En)},[createVNode(Transition,{name:unref(vn),onAfterLeave:Tn,onBeforeEnter:On,onAfterEnter:Rn,onBeforeLeave:Nn},{default:withCtx(()=>[unref(bn)?withDirectives((openBlock(),createBlock(unref(ElPopperContent),mergeProps({key:0,id:unref($e),ref_key:"contentRef",ref:pe},Mn.$attrs,{"aria-label":Mn.ariaLabel,"aria-hidden":unref(wn),"boundaries-padding":Mn.boundariesPadding,"fallback-placements":Mn.fallbackPlacements,"gpu-acceleration":Mn.gpuAcceleration,offset:Mn.offset,placement:Mn.placement,"popper-options":Mn.popperOptions,strategy:Mn.strategy,effect:Mn.effect,enterable:Mn.enterable,pure:Mn.pure,"popper-class":Mn.popperClass,"popper-style":[Mn.popperStyle,unref($n)],"reference-el":Mn.referenceEl,"trigger-target-el":Mn.triggerTargetEl,visible:unref(Cn),"z-index":Mn.zIndex,onMouseenter:unref(kn),onMouseleave:unref(An),onBlur:zn,onClose:unref(Ne)}),{default:withCtx(()=>[_e.value?createCommentVNode("v-if",!0):renderSlot(Mn.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[vShow,unref(Cn)]]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ElTooltipContent=_export_sfc$1(_sfc_main$25,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const _hoisted_1$12=["innerHTML"],_hoisted_2$G={key:1},__default__$1p=defineComponent({name:"ElTooltip"}),_sfc_main$24=defineComponent({...__default__$1p,props:useTooltipProps,emits:tooltipEmits,setup($,{expose:oe,emit:ae}){const ie=$;usePopperContainer();const le=useId(),pe=ref(),_e=ref(),Ce=()=>{var vn;const _n=unref(pe);_n&&((vn=_n.popperInstanceRef)==null||vn.update())},$e=ref(!1),xe=ref(),{show:Ie,hide:Ne,hasUpdateHandler:Fe}=useTooltipModelToggle({indicator:$e,toggleReason:xe}),{onOpen:ze,onClose:At}=useDelayedToggle({showAfter:toRef$1(ie,"showAfter"),hideAfter:toRef$1(ie,"hideAfter"),autoClose:toRef$1(ie,"autoClose"),open:Ie,close:Ne}),Lt=computed(()=>isBoolean$3(ie.visible)&&!Fe.value);provide(TOOLTIP_INJECTION_KEY,{controlled:Lt,id:le,open:readonly($e),trigger:toRef$1(ie,"trigger"),onOpen:vn=>{ze(vn)},onClose:vn=>{At(vn)},onToggle:vn=>{unref($e)?At(vn):ze(vn)},onShow:()=>{ae("show",xe.value)},onHide:()=>{ae("hide",xe.value)},onBeforeShow:()=>{ae("before-show",xe.value)},onBeforeHide:()=>{ae("before-hide",xe.value)},updatePopper:Ce}),watch(()=>ie.disabled,vn=>{vn&&$e.value&&($e.value=!1)});const hn=()=>{var vn,_n;const bn=(_n=(vn=_e.value)==null?void 0:vn.contentRef)==null?void 0:_n.popperContentRef;return bn&&bn.contains(document.activeElement)};return onDeactivated(()=>$e.value&&Ne()),oe({popperRef:pe,contentRef:_e,isFocusInsideContent:hn,updatePopper:Ce,onOpen:ze,onClose:At,hide:Ne}),(vn,_n)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:pe,role:vn.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:vn.disabled,trigger:vn.trigger,"trigger-keys":vn.triggerKeys,"virtual-ref":vn.virtualRef,"virtual-triggering":vn.virtualTriggering},{default:withCtx(()=>[vn.$slots.default?renderSlot(vn.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:_e,"aria-label":vn.ariaLabel,"boundaries-padding":vn.boundariesPadding,content:vn.content,disabled:vn.disabled,effect:vn.effect,enterable:vn.enterable,"fallback-placements":vn.fallbackPlacements,"hide-after":vn.hideAfter,"gpu-acceleration":vn.gpuAcceleration,offset:vn.offset,persistent:vn.persistent,"popper-class":vn.popperClass,"popper-style":vn.popperStyle,placement:vn.placement,"popper-options":vn.popperOptions,pure:vn.pure,"raw-content":vn.rawContent,"reference-el":vn.referenceEl,"trigger-target-el":vn.triggerTargetEl,"show-after":vn.showAfter,strategy:vn.strategy,teleported:vn.teleported,transition:vn.transition,"virtual-triggering":vn.virtualTriggering,"z-index":vn.zIndex,"append-to":vn.appendTo},{default:withCtx(()=>[renderSlot(vn.$slots,"content",{},()=>[vn.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:vn.content},null,8,_hoisted_1$12)):(openBlock(),createElementBlock("span",_hoisted_2$G,toDisplayString$1(vn.content),1))]),vn.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0,"arrow-offset":vn.arrowOffset},null,8,["arrow-offset"])):createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var Tooltip=_export_sfc$1(_sfc_main$24,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const ElTooltip=withInstall(Tooltip),autocompleteProps=buildProps({valueKey:{type:String,default:"value"},modelValue:{type:[String,Number],default:""},debounce:{type:Number,default:300},placement:{type:definePropType(String),values:["top","top-start","top-end","bottom","bottom-start","bottom-end"],default:"bottom-start"},fetchSuggestions:{type:definePropType([Function,Array]),default:NOOP},popperClass:{type:String,default:""},triggerOnFocus:{type:Boolean,default:!0},selectWhenUnmatched:{type:Boolean,default:!1},hideLoading:{type:Boolean,default:!1},label:{type:String},teleported:useTooltipContentProps.teleported,highlightFirstItem:{type:Boolean,default:!1},fitInputWidth:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},name:String}),autocompleteEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($),[INPUT_EVENT]:$=>isString$7($),[CHANGE_EVENT]:$=>isString$7($),focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,clear:()=>!0,select:$=>isObject$8($)},_hoisted_1$11=["aria-expanded","aria-owns"],_hoisted_2$F={key:0},_hoisted_3$l=["id","aria-selected","onClick"],COMPONENT_NAME$i="ElAutocomplete",__default__$1o=defineComponent({name:COMPONENT_NAME$i,inheritAttrs:!1}),_sfc_main$23=defineComponent({...__default__$1o,props:autocompleteProps,emits:autocompleteEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useAttrs(),pe=useAttrs$1(),_e=useFormDisabled(),Ce=useNamespace("autocomplete"),$e=ref(),xe=ref(),Ie=ref(),Ne=ref();let Fe=!1,ze=!1;const At=ref([]),Lt=ref(-1),hn=ref(""),vn=ref(!1),_n=ref(!1),bn=ref(!1),Cn=computed(()=>Ce.b(String(generateId()))),En=computed(()=>pe.style),$n=computed(()=>(At.value.length>0||bn.value)&&vn.value),wn=computed(()=>!ie.hideLoading&&bn.value),Tn=computed(()=>$e.value?Array.from($e.value.$el.querySelectorAll("input")):[]),xn=async()=>{await nextTick(),$n.value&&(hn.value=`${$e.value.$el.offsetWidth}px`)},kn=()=>{Lt.value=-1},On=debounce(async er=>{if(_n.value)return;const rr=qn=>{bn.value=!1,!_n.value&&(isArray$c(qn)?(At.value=qn,Lt.value=ie.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$i,"autocomplete suggestions must be an array"))};if(bn.value=!0,isArray$c(ie.fetchSuggestions))rr(ie.fetchSuggestions);else{const qn=await ie.fetchSuggestions(er,rr);isArray$c(qn)&&rr(qn)}},ie.debounce),Nn=er=>{const rr=!!er;if(ae(INPUT_EVENT,er),ae(UPDATE_MODEL_EVENT,er),_n.value=!1,vn.value||(vn.value=rr),!ie.triggerOnFocus&&!er){_n.value=!0,At.value=[];return}On(er)},Rn=er=>{var rr;_e.value||(((rr=er.target)==null?void 0:rr.tagName)!=="INPUT"||Tn.value.includes(document.activeElement))&&(vn.value=!0)},zn=er=>{ae(CHANGE_EVENT,er)},Bn=er=>{ze?ze=!1:(vn.value=!0,ae("focus",er),ie.triggerOnFocus&&!Fe&&On(String(ie.modelValue)))},Mn=er=>{setTimeout(()=>{var rr;if((rr=Ie.value)!=null&&rr.isFocusInsideContent()){ze=!0;return}vn.value&&Zn(),ae("blur",er)})},Fn=()=>{vn.value=!1,ae(UPDATE_MODEL_EVENT,""),ae("clear")},Vn=async()=>{$n.value&&Lt.value>=0&&Lt.value<At.value.length?cr(At.value[Lt.value]):ie.selectWhenUnmatched&&(ae("select",{value:ie.modelValue}),At.value=[],Lt.value=-1)},jn=er=>{$n.value&&(er.preventDefault(),er.stopPropagation(),Zn())},Zn=()=>{vn.value=!1},Gn=()=>{var er;(er=$e.value)==null||er.focus()},Xn=()=>{var er;(er=$e.value)==null||er.blur()},cr=async er=>{ae(INPUT_EVENT,er[ie.valueKey]),ae(UPDATE_MODEL_EVENT,er[ie.valueKey]),ae("select",er),At.value=[],Lt.value=-1},nr=er=>{if(!$n.value||bn.value)return;if(er<0){Lt.value=-1;return}er>=At.value.length&&(er=At.value.length-1);const rr=xe.value.querySelector(`.${Ce.be("suggestion","wrap")}`),Yn=rr.querySelectorAll(`.${Ce.be("suggestion","list")} li`)[er],ar=rr.scrollTop,{offsetTop:pr,scrollHeight:Un}=Yn;pr+Un>ar+rr.clientHeight&&(rr.scrollTop+=Un),pr<ar&&(rr.scrollTop-=Un),Lt.value=er,$e.value.ref.setAttribute("aria-activedescendant",`${Cn.value}-item-${Lt.value}`)};return onClickOutside(Ne,()=>{$n.value&&Zn()}),onMounted(()=>{$e.value.ref.setAttribute("role","textbox"),$e.value.ref.setAttribute("aria-autocomplete","list"),$e.value.ref.setAttribute("aria-controls","id"),$e.value.ref.setAttribute("aria-activedescendant",`${Cn.value}-item-${Lt.value}`),Fe=$e.value.ref.hasAttribute("readonly")}),oe({highlightedIndex:Lt,activated:vn,loading:bn,inputRef:$e,popperRef:Ie,suggestions:At,handleSelect:cr,handleKeyEnter:Vn,focus:Gn,blur:Xn,close:Zn,highlight:nr}),(er,rr)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:Ie,visible:unref($n),placement:er.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(Ce).e("popper"),er.popperClass],teleported:er.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(Ce).namespace.value}-zoom-in-top`,persistent:"",onBeforeShow:xn,onHide:kn},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:xe,class:normalizeClass([unref(Ce).b("suggestion"),unref(Ce).is("loading",unref(wn))]),style:normalizeStyle$1({[er.fitInputWidth?"width":"minWidth"]:hn.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(Cn),tag:"ul","wrap-class":unref(Ce).be("suggestion","wrap"),"view-class":unref(Ce).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref(wn)?(openBlock(),createElementBlock("li",_hoisted_2$F,[createVNode(unref(ElIcon),{class:normalizeClass(unref(Ce).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(At.value,(qn,Yn)=>(openBlock(),createElementBlock("li",{id:`${unref(Cn)}-item-${Yn}`,key:Yn,class:normalizeClass({highlighted:Lt.value===Yn}),role:"option","aria-selected":Lt.value===Yn,onClick:ar=>cr(qn)},[renderSlot(er.$slots,"default",{item:qn},()=>[createTextVNode(toDisplayString$1(qn[er.valueKey]),1)])],10,_hoisted_3$l))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:Ne,class:normalizeClass([unref(Ce).b(),er.$attrs.class]),style:normalizeStyle$1(unref(En)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref($n),"aria-owns":unref(Cn)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:$e},unref(le),{clearable:er.clearable,disabled:unref(_e),name:er.name,"model-value":er.modelValue,onInput:Nn,onChange:zn,onFocus:Bn,onBlur:Mn,onClear:Fn,onKeydown:[rr[0]||(rr[0]=withKeys(withModifiers(qn=>nr(Lt.value-1),["prevent"]),["up"])),rr[1]||(rr[1]=withKeys(withModifiers(qn=>nr(Lt.value+1),["prevent"]),["down"])),withKeys(Vn,["enter"]),withKeys(Zn,["tab"]),withKeys(jn,["esc"])],onMousedown:Rn}),createSlots({_:2},[er.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(er.$slots,"prepend")])}:void 0,er.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(er.$slots,"append")])}:void 0,er.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(er.$slots,"prefix")])}:void 0,er.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(er.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,_hoisted_1$11)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Autocomplete=_export_sfc$1(_sfc_main$23,[["__file","/home/runner/work/element-plus/element-plus/packages/components/autocomplete/src/autocomplete.vue"]]);const ElAutocomplete=withInstall(Autocomplete),avatarProps=buildProps({size:{type:[Number,String],values:componentSizes,default:"",validator:$=>isNumber$5($)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:iconPropType},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:definePropType(String),default:"cover"}}),avatarEmits={error:$=>$ instanceof Event},_hoisted_1$10=["src","alt","srcset"],__default__$1n=defineComponent({name:"ElAvatar"}),_sfc_main$22=defineComponent({...__default__$1n,props:avatarProps,emits:avatarEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("avatar"),le=ref(!1),pe=computed(()=>{const{size:xe,icon:Ie,shape:Ne}=ae,Fe=[ie.b()];return isString$7(xe)&&Fe.push(ie.m(xe)),Ie&&Fe.push(ie.m("icon")),Ne&&Fe.push(ie.m(Ne)),Fe}),_e=computed(()=>{const{size:xe}=ae;return isNumber$5(xe)?ie.cssVarBlock({size:addUnit(xe)||""}):void 0}),Ce=computed(()=>({objectFit:ae.fit}));watch(()=>ae.src,()=>le.value=!1);function $e(xe){le.value=!0,oe("error",xe)}return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(_e))},[(xe.src||xe.srcSet)&&!le.value?(openBlock(),createElementBlock("img",{key:0,src:xe.src,alt:xe.alt,srcset:xe.srcSet,style:normalizeStyle$1(unref(Ce)),onError:$e},null,44,_hoisted_1$10)):xe.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(xe.icon)))]),_:1})):renderSlot(xe.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc$1(_sfc_main$22,[["__file","/home/runner/work/element-plus/element-plus/packages/components/avatar/src/avatar.vue"]]);const ElAvatar=withInstall(Avatar),backtopProps={visibilityHeight:{type:Number,default:200},target:{type:String,default:""},right:{type:Number,default:40},bottom:{type:Number,default:40}},backtopEmits={click:$=>$ instanceof MouseEvent},useBackTop=($,oe,ae)=>{const ie=shallowRef(),le=shallowRef(),pe=ref(!1),_e=()=>{ie.value&&(pe.value=ie.value.scrollTop>=$.visibilityHeight)},Ce=xe=>{var Ie;(Ie=ie.value)==null||Ie.scrollTo({top:0,behavior:"smooth"}),oe("click",xe)},$e=useThrottleFn(_e,300,!0);return useEventListener$1(le,"scroll",$e),onMounted(()=>{var xe;le.value=document,ie.value=document.documentElement,$.target&&(ie.value=(xe=document.querySelector($.target))!=null?xe:void 0,ie.value||throwError$1(ae,`target does not exist: ${$.target}`),le.value=ie.value)}),{visible:pe,handleClick:Ce}},COMPONENT_NAME$h="ElBacktop",__default__$1m=defineComponent({name:COMPONENT_NAME$h}),_sfc_main$21=defineComponent({...__default__$1m,props:backtopProps,emits:backtopEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("backtop"),{handleClick:le,visible:pe}=useBackTop(ae,oe,COMPONENT_NAME$h),_e=computed(()=>({right:`${ae.right}px`,bottom:`${ae.bottom}px`}));return(Ce,$e)=>(openBlock(),createBlock(Transition,{name:`${unref(ie).namespace.value}-fade-in`},{default:withCtx(()=>[unref(pe)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(unref(_e)),class:normalizeClass(unref(ie).b()),onClick:$e[0]||($e[0]=withModifiers((...xe)=>unref(le)&&unref(le)(...xe),["stop"]))},[renderSlot(Ce.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(ie).e("icon"))},{default:withCtx(()=>[createVNode(unref(caret_top_default))]),_:1},8,["class"])])],6)):createCommentVNode("v-if",!0)]),_:3},8,["name"]))}});var Backtop=_export_sfc$1(_sfc_main$21,[["__file","/home/runner/work/element-plus/element-plus/packages/components/backtop/src/backtop.vue"]]);const ElBacktop=withInstall(Backtop),badgeProps=buildProps({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),_hoisted_1$$=["textContent"],__default__$1l=defineComponent({name:"ElBadge"}),_sfc_main$20=defineComponent({...__default__$1l,props:badgeProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("badge"),le=computed(()=>ae.isDot?"":isNumber$5(ae.value)&&isNumber$5(ae.max)?ae.max<ae.value?`${ae.max}+`:`${ae.value}`:`${ae.value}`);return oe({content:le}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[renderSlot(pe.$slots,"default"),createVNode(Transition,{name:`${unref(ie).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(ie).e("content"),unref(ie).em("content",pe.type),unref(ie).is("fixed",!!pe.$slots.default),unref(ie).is("dot",pe.isDot)]),textContent:toDisplayString$1(unref(le))},null,10,_hoisted_1$$),[[vShow,!pe.hidden&&(unref(le)||pe.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc$1(_sfc_main$20,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const ElBadge=withInstall(Badge),breadcrumbKey=Symbol("breadcrumbKey"),breadcrumbProps=buildProps({separator:{type:String,default:"/"},separatorIcon:{type:iconPropType}}),__default__$1k=defineComponent({name:"ElBreadcrumb"}),_sfc_main$1$=defineComponent({...__default__$1k,props:breadcrumbProps,setup($){const oe=$,ae=useNamespace("breadcrumb"),ie=ref();return provide(breadcrumbKey,oe),onMounted(()=>{const le=ie.value.querySelectorAll(`.${ae.e("item")}`);le.length&&le[le.length-1].setAttribute("aria-current","page")}),(le,pe)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:ie,class:normalizeClass(unref(ae).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot(le.$slots,"default")],2))}});var Breadcrumb=_export_sfc$1(_sfc_main$1$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb.vue"]]);const breadcrumbItemProps=buildProps({to:{type:definePropType([String,Object]),default:""},replace:{type:Boolean,default:!1}}),__default__$1j=defineComponent({name:"ElBreadcrumbItem"}),_sfc_main$1_=defineComponent({...__default__$1j,props:breadcrumbItemProps,setup($){const oe=$,ae=getCurrentInstance(),ie=inject(breadcrumbKey,void 0),le=useNamespace("breadcrumb"),{separator:pe,separatorIcon:_e}=toRefs(ie),Ce=ae.appContext.config.globalProperties.$router,$e=ref(),xe=()=>{!oe.to||!Ce||(oe.replace?Ce.replace(oe.to):Ce.push(oe.to))};return(Ie,Ne)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:$e,class:normalizeClass([unref(le).e("inner"),unref(le).is("link",!!Ie.to)]),role:"link",onClick:xe},[renderSlot(Ie.$slots,"default")],2),unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(le).e("separator")),role:"presentation"},toDisplayString$1(unref(pe)),3))],2))}});var BreadcrumbItem=_export_sfc$1(_sfc_main$1_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/breadcrumb/src/breadcrumb-item.vue"]]);const ElBreadcrumb=withInstall(Breadcrumb,{BreadcrumbItem}),ElBreadcrumbItem=withNoopInstall(BreadcrumbItem),buttonGroupContextKey=Symbol("buttonGroupContextKey"),useButton=($,oe)=>{useDeprecated({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},computed(()=>$.type==="text"));const ae=inject(buttonGroupContextKey,void 0),ie=useGlobalConfig("button"),{form:le}=useFormItem(),pe=useFormSize(computed(()=>ae==null?void 0:ae.size)),_e=useFormDisabled(),Ce=ref(),$e=useSlots(),xe=computed(()=>$.type||(ae==null?void 0:ae.type)||""),Ie=computed(()=>{var At,Lt,hn;return(hn=(Lt=$.autoInsertSpace)!=null?Lt:(At=ie.value)==null?void 0:At.autoInsertSpace)!=null?hn:!1}),Ne=computed(()=>$.tag==="button"?{ariaDisabled:_e.value||$.loading,disabled:_e.value||$.loading,autofocus:$.autofocus,type:$.nativeType}:{}),Fe=computed(()=>{var At;const Lt=(At=$e.default)==null?void 0:At.call($e);if(Ie.value&&(Lt==null?void 0:Lt.length)===1){const hn=Lt[0];if((hn==null?void 0:hn.type)===Text$1){const vn=hn.children;return/^\p{Unified_Ideograph}{2}$/u.test(vn.trim())}}return!1});return{_disabled:_e,_size:pe,_type:xe,_ref:Ce,_props:Ne,shouldAddSpace:Fe,handleClick:At=>{$.nativeType==="reset"&&(le==null||le.resetFields()),oe("click",At)}}},buttonTypes=["default","primary","success","warning","info","danger","text",""],buttonNativeTypes=["button","submit","reset"],buttonProps=buildProps({size:useSizeProp,disabled:Boolean,type:{type:String,values:buttonTypes,default:""},icon:{type:iconPropType},nativeType:{type:String,values:buttonNativeTypes,default:"button"},loading:Boolean,loadingIcon:{type:iconPropType,default:()=>loading_default},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:definePropType([String,Object]),default:"button"}}),buttonEmits={click:$=>$ instanceof MouseEvent};function bound01$1($,oe){isOnePointZero$1($)&&($="100%");var ae=isPercentage$1($);return $=oe===360?$:Math.min(oe,Math.max(0,parseFloat($))),ae&&($=parseInt(String($*oe),10)/100),Math.abs($-oe)<1e-6?1:(oe===360?$=($<0?$%oe+oe:$%oe)/parseFloat(String(oe)):$=$%oe/parseFloat(String(oe)),$)}function clamp01($){return Math.min(1,Math.max(0,$))}function isOnePointZero$1($){return typeof $=="string"&&$.indexOf(".")!==-1&&parseFloat($)===1}function isPercentage$1($){return typeof $=="string"&&$.indexOf("%")!==-1}function boundAlpha($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function convertToPercentage($){return $<=1?"".concat(Number($)*100,"%"):$}function pad2($){return $.length===1?"0"+$:String($)}function rgbToRgb($,oe,ae){return{r:bound01$1($,255)*255,g:bound01$1(oe,255)*255,b:bound01$1(ae,255)*255}}function rgbToHsl($,oe,ae){$=bound01$1($,255),oe=bound01$1(oe,255),ae=bound01$1(ae,255);var ie=Math.max($,oe,ae),le=Math.min($,oe,ae),pe=0,_e=0,Ce=(ie+le)/2;if(ie===le)_e=0,pe=0;else{var $e=ie-le;switch(_e=Ce>.5?$e/(2-ie-le):$e/(ie+le),ie){case $:pe=(oe-ae)/$e+(oe<ae?6:0);break;case oe:pe=(ae-$)/$e+2;break;case ae:pe=($-oe)/$e+4;break}pe/=6}return{h:pe,s:_e,l:Ce}}function hue2rgb($,oe,ae){return ae<0&&(ae+=1),ae>1&&(ae-=1),ae<1/6?$+(oe-$)*(6*ae):ae<1/2?oe:ae<2/3?$+(oe-$)*(2/3-ae)*6:$}function hslToRgb($,oe,ae){var ie,le,pe;if($=bound01$1($,360),oe=bound01$1(oe,100),ae=bound01$1(ae,100),oe===0)le=ae,pe=ae,ie=ae;else{var _e=ae<.5?ae*(1+oe):ae+oe-ae*oe,Ce=2*ae-_e;ie=hue2rgb(Ce,_e,$+1/3),le=hue2rgb(Ce,_e,$),pe=hue2rgb(Ce,_e,$-1/3)}return{r:ie*255,g:le*255,b:pe*255}}function rgbToHsv($,oe,ae){$=bound01$1($,255),oe=bound01$1(oe,255),ae=bound01$1(ae,255);var ie=Math.max($,oe,ae),le=Math.min($,oe,ae),pe=0,_e=ie,Ce=ie-le,$e=ie===0?0:Ce/ie;if(ie===le)pe=0;else{switch(ie){case $:pe=(oe-ae)/Ce+(oe<ae?6:0);break;case oe:pe=(ae-$)/Ce+2;break;case ae:pe=($-oe)/Ce+4;break}pe/=6}return{h:pe,s:$e,v:_e}}function hsvToRgb($,oe,ae){$=bound01$1($,360)*6,oe=bound01$1(oe,100),ae=bound01$1(ae,100);var ie=Math.floor($),le=$-ie,pe=ae*(1-oe),_e=ae*(1-le*oe),Ce=ae*(1-(1-le)*oe),$e=ie%6,xe=[ae,_e,pe,pe,Ce,ae][$e],Ie=[Ce,ae,ae,_e,pe,pe][$e],Ne=[pe,pe,Ce,ae,ae,_e][$e];return{r:xe*255,g:Ie*255,b:Ne*255}}function rgbToHex($,oe,ae,ie){var le=[pad2(Math.round($).toString(16)),pad2(Math.round(oe).toString(16)),pad2(Math.round(ae).toString(16))];return ie&&le[0].startsWith(le[0].charAt(1))&&le[1].startsWith(le[1].charAt(1))&&le[2].startsWith(le[2].charAt(1))?le[0].charAt(0)+le[1].charAt(0)+le[2].charAt(0):le.join("")}function rgbaToHex($,oe,ae,ie,le){var pe=[pad2(Math.round($).toString(16)),pad2(Math.round(oe).toString(16)),pad2(Math.round(ae).toString(16)),pad2(convertDecimalToHex(ie))];return le&&pe[0].startsWith(pe[0].charAt(1))&&pe[1].startsWith(pe[1].charAt(1))&&pe[2].startsWith(pe[2].charAt(1))&&pe[3].startsWith(pe[3].charAt(1))?pe[0].charAt(0)+pe[1].charAt(0)+pe[2].charAt(0)+pe[3].charAt(0):pe.join("")}function convertDecimalToHex($){return Math.round(parseFloat($)*255).toString(16)}function convertHexToDecimal($){return parseIntFromHex($)/255}function parseIntFromHex($){return parseInt($,16)}function numberInputToObject($){return{r:$>>16,g:($&65280)>>8,b:$&255}}var names={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function inputToRGB($){var oe={r:0,g:0,b:0},ae=1,ie=null,le=null,pe=null,_e=!1,Ce=!1;return typeof $=="string"&&($=stringInputToObject($)),typeof $=="object"&&(isValidCSSUnit($.r)&&isValidCSSUnit($.g)&&isValidCSSUnit($.b)?(oe=rgbToRgb($.r,$.g,$.b),_e=!0,Ce=String($.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.v)?(ie=convertToPercentage($.s),le=convertToPercentage($.v),oe=hsvToRgb($.h,ie,le),_e=!0,Ce="hsv"):isValidCSSUnit($.h)&&isValidCSSUnit($.s)&&isValidCSSUnit($.l)&&(ie=convertToPercentage($.s),pe=convertToPercentage($.l),oe=hslToRgb($.h,ie,pe),_e=!0,Ce="hsl"),Object.prototype.hasOwnProperty.call($,"a")&&(ae=$.a)),ae=boundAlpha(ae),{ok:_e,format:$.format||Ce,r:Math.min(255,Math.max(oe.r,0)),g:Math.min(255,Math.max(oe.g,0)),b:Math.min(255,Math.max(oe.b,0)),a:ae}}var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:".concat(CSS_NUMBER,")|(?:").concat(CSS_INTEGER,")"),PERMISSIVE_MATCH3="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),PERMISSIVE_MATCH4="[\\s|\\(]+(".concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")[,|\\s]+(").concat(CSS_UNIT,")\\s*\\)?"),matchers={CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function stringInputToObject($){if($=$.trim().toLowerCase(),$.length===0)return!1;var oe=!1;if(names[$])$=names[$],oe=!0;else if($==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var ae=matchers.rgb.exec($);return ae?{r:ae[1],g:ae[2],b:ae[3]}:(ae=matchers.rgba.exec($),ae?{r:ae[1],g:ae[2],b:ae[3],a:ae[4]}:(ae=matchers.hsl.exec($),ae?{h:ae[1],s:ae[2],l:ae[3]}:(ae=matchers.hsla.exec($),ae?{h:ae[1],s:ae[2],l:ae[3],a:ae[4]}:(ae=matchers.hsv.exec($),ae?{h:ae[1],s:ae[2],v:ae[3]}:(ae=matchers.hsva.exec($),ae?{h:ae[1],s:ae[2],v:ae[3],a:ae[4]}:(ae=matchers.hex8.exec($),ae?{r:parseIntFromHex(ae[1]),g:parseIntFromHex(ae[2]),b:parseIntFromHex(ae[3]),a:convertHexToDecimal(ae[4]),format:oe?"name":"hex8"}:(ae=matchers.hex6.exec($),ae?{r:parseIntFromHex(ae[1]),g:parseIntFromHex(ae[2]),b:parseIntFromHex(ae[3]),format:oe?"name":"hex"}:(ae=matchers.hex4.exec($),ae?{r:parseIntFromHex(ae[1]+ae[1]),g:parseIntFromHex(ae[2]+ae[2]),b:parseIntFromHex(ae[3]+ae[3]),a:convertHexToDecimal(ae[4]+ae[4]),format:oe?"name":"hex8"}:(ae=matchers.hex3.exec($),ae?{r:parseIntFromHex(ae[1]+ae[1]),g:parseIntFromHex(ae[2]+ae[2]),b:parseIntFromHex(ae[3]+ae[3]),format:oe?"name":"hex"}:!1)))))))))}function isValidCSSUnit($){return!!matchers.CSS_UNIT.exec(String($))}var TinyColor=function(){function $(oe,ae){oe===void 0&&(oe=""),ae===void 0&&(ae={});var ie;if(oe instanceof $)return oe;typeof oe=="number"&&(oe=numberInputToObject(oe)),this.originalInput=oe;var le=inputToRGB(oe);this.originalInput=oe,this.r=le.r,this.g=le.g,this.b=le.b,this.a=le.a,this.roundA=Math.round(100*this.a)/100,this.format=(ie=ae.format)!==null&&ie!==void 0?ie:le.format,this.gradientType=ae.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=le.ok}return $.prototype.isDark=function(){return this.getBrightness()<128},$.prototype.isLight=function(){return!this.isDark()},$.prototype.getBrightness=function(){var oe=this.toRgb();return(oe.r*299+oe.g*587+oe.b*114)/1e3},$.prototype.getLuminance=function(){var oe=this.toRgb(),ae,ie,le,pe=oe.r/255,_e=oe.g/255,Ce=oe.b/255;return pe<=.03928?ae=pe/12.92:ae=Math.pow((pe+.055)/1.055,2.4),_e<=.03928?ie=_e/12.92:ie=Math.pow((_e+.055)/1.055,2.4),Ce<=.03928?le=Ce/12.92:le=Math.pow((Ce+.055)/1.055,2.4),.2126*ae+.7152*ie+.0722*le},$.prototype.getAlpha=function(){return this.a},$.prototype.setAlpha=function(oe){return this.a=boundAlpha(oe),this.roundA=Math.round(100*this.a)/100,this},$.prototype.isMonochrome=function(){var oe=this.toHsl().s;return oe===0},$.prototype.toHsv=function(){var oe=rgbToHsv(this.r,this.g,this.b);return{h:oe.h*360,s:oe.s,v:oe.v,a:this.a}},$.prototype.toHsvString=function(){var oe=rgbToHsv(this.r,this.g,this.b),ae=Math.round(oe.h*360),ie=Math.round(oe.s*100),le=Math.round(oe.v*100);return this.a===1?"hsv(".concat(ae,", ").concat(ie,"%, ").concat(le,"%)"):"hsva(".concat(ae,", ").concat(ie,"%, ").concat(le,"%, ").concat(this.roundA,")")},$.prototype.toHsl=function(){var oe=rgbToHsl(this.r,this.g,this.b);return{h:oe.h*360,s:oe.s,l:oe.l,a:this.a}},$.prototype.toHslString=function(){var oe=rgbToHsl(this.r,this.g,this.b),ae=Math.round(oe.h*360),ie=Math.round(oe.s*100),le=Math.round(oe.l*100);return this.a===1?"hsl(".concat(ae,", ").concat(ie,"%, ").concat(le,"%)"):"hsla(".concat(ae,", ").concat(ie,"%, ").concat(le,"%, ").concat(this.roundA,")")},$.prototype.toHex=function(oe){return oe===void 0&&(oe=!1),rgbToHex(this.r,this.g,this.b,oe)},$.prototype.toHexString=function(oe){return oe===void 0&&(oe=!1),"#"+this.toHex(oe)},$.prototype.toHex8=function(oe){return oe===void 0&&(oe=!1),rgbaToHex(this.r,this.g,this.b,this.a,oe)},$.prototype.toHex8String=function(oe){return oe===void 0&&(oe=!1),"#"+this.toHex8(oe)},$.prototype.toHexShortString=function(oe){return oe===void 0&&(oe=!1),this.a===1?this.toHexString(oe):this.toHex8String(oe)},$.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},$.prototype.toRgbString=function(){var oe=Math.round(this.r),ae=Math.round(this.g),ie=Math.round(this.b);return this.a===1?"rgb(".concat(oe,", ").concat(ae,", ").concat(ie,")"):"rgba(".concat(oe,", ").concat(ae,", ").concat(ie,", ").concat(this.roundA,")")},$.prototype.toPercentageRgb=function(){var oe=function(ae){return"".concat(Math.round(bound01$1(ae,255)*100),"%")};return{r:oe(this.r),g:oe(this.g),b:oe(this.b),a:this.a}},$.prototype.toPercentageRgbString=function(){var oe=function(ae){return Math.round(bound01$1(ae,255)*100)};return this.a===1?"rgb(".concat(oe(this.r),"%, ").concat(oe(this.g),"%, ").concat(oe(this.b),"%)"):"rgba(".concat(oe(this.r),"%, ").concat(oe(this.g),"%, ").concat(oe(this.b),"%, ").concat(this.roundA,")")},$.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var oe="#"+rgbToHex(this.r,this.g,this.b,!1),ae=0,ie=Object.entries(names);ae<ie.length;ae++){var le=ie[ae],pe=le[0],_e=le[1];if(oe===_e)return pe}return!1},$.prototype.toString=function(oe){var ae=!!oe;oe=oe??this.format;var ie=!1,le=this.a<1&&this.a>=0,pe=!ae&&le&&(oe.startsWith("hex")||oe==="name");return pe?oe==="name"&&this.a===0?this.toName():this.toRgbString():(oe==="rgb"&&(ie=this.toRgbString()),oe==="prgb"&&(ie=this.toPercentageRgbString()),(oe==="hex"||oe==="hex6")&&(ie=this.toHexString()),oe==="hex3"&&(ie=this.toHexString(!0)),oe==="hex4"&&(ie=this.toHex8String(!0)),oe==="hex8"&&(ie=this.toHex8String()),oe==="name"&&(ie=this.toName()),oe==="hsl"&&(ie=this.toHslString()),oe==="hsv"&&(ie=this.toHsvString()),ie||this.toHexString())},$.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},$.prototype.clone=function(){return new $(this.toString())},$.prototype.lighten=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.l+=oe/100,ae.l=clamp01(ae.l),new $(ae)},$.prototype.brighten=function(oe){oe===void 0&&(oe=10);var ae=this.toRgb();return ae.r=Math.max(0,Math.min(255,ae.r-Math.round(255*-(oe/100)))),ae.g=Math.max(0,Math.min(255,ae.g-Math.round(255*-(oe/100)))),ae.b=Math.max(0,Math.min(255,ae.b-Math.round(255*-(oe/100)))),new $(ae)},$.prototype.darken=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.l-=oe/100,ae.l=clamp01(ae.l),new $(ae)},$.prototype.tint=function(oe){return oe===void 0&&(oe=10),this.mix("white",oe)},$.prototype.shade=function(oe){return oe===void 0&&(oe=10),this.mix("black",oe)},$.prototype.desaturate=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.s-=oe/100,ae.s=clamp01(ae.s),new $(ae)},$.prototype.saturate=function(oe){oe===void 0&&(oe=10);var ae=this.toHsl();return ae.s+=oe/100,ae.s=clamp01(ae.s),new $(ae)},$.prototype.greyscale=function(){return this.desaturate(100)},$.prototype.spin=function(oe){var ae=this.toHsl(),ie=(ae.h+oe)%360;return ae.h=ie<0?360+ie:ie,new $(ae)},$.prototype.mix=function(oe,ae){ae===void 0&&(ae=50);var ie=this.toRgb(),le=new $(oe).toRgb(),pe=ae/100,_e={r:(le.r-ie.r)*pe+ie.r,g:(le.g-ie.g)*pe+ie.g,b:(le.b-ie.b)*pe+ie.b,a:(le.a-ie.a)*pe+ie.a};return new $(_e)},$.prototype.analogous=function(oe,ae){oe===void 0&&(oe=6),ae===void 0&&(ae=30);var ie=this.toHsl(),le=360/ae,pe=[this];for(ie.h=(ie.h-(le*oe>>1)+720)%360;--oe;)ie.h=(ie.h+le)%360,pe.push(new $(ie));return pe},$.prototype.complement=function(){var oe=this.toHsl();return oe.h=(oe.h+180)%360,new $(oe)},$.prototype.monochromatic=function(oe){oe===void 0&&(oe=6);for(var ae=this.toHsv(),ie=ae.h,le=ae.s,pe=ae.v,_e=[],Ce=1/oe;oe--;)_e.push(new $({h:ie,s:le,v:pe})),pe=(pe+Ce)%1;return _e},$.prototype.splitcomplement=function(){var oe=this.toHsl(),ae=oe.h;return[this,new $({h:(ae+72)%360,s:oe.s,l:oe.l}),new $({h:(ae+216)%360,s:oe.s,l:oe.l})]},$.prototype.onBackground=function(oe){var ae=this.toRgb(),ie=new $(oe).toRgb(),le=ae.a+ie.a*(1-ae.a);return new $({r:(ae.r*ae.a+ie.r*ie.a*(1-ae.a))/le,g:(ae.g*ae.a+ie.g*ie.a*(1-ae.a))/le,b:(ae.b*ae.a+ie.b*ie.a*(1-ae.a))/le,a:le})},$.prototype.triad=function(){return this.polyad(3)},$.prototype.tetrad=function(){return this.polyad(4)},$.prototype.polyad=function(oe){for(var ae=this.toHsl(),ie=ae.h,le=[this],pe=360/oe,_e=1;_e<oe;_e++)le.push(new $({h:(ie+_e*pe)%360,s:ae.s,l:ae.l}));return le},$.prototype.equals=function(oe){return this.toRgbString()===new $(oe).toRgbString()},$}();function darken($,oe=20){return $.mix("#141414",oe).toString()}function useButtonCustomStyle($){const oe=useFormDisabled(),ae=useNamespace("button");return computed(()=>{let ie={};const le=$.color;if(le){const pe=new TinyColor(le),_e=$.dark?pe.tint(20).toString():darken(pe,20);if($.plain)ie=ae.cssVarBlock({"bg-color":$.dark?darken(pe,90):pe.tint(90).toString(),"text-color":le,"border-color":$.dark?darken(pe,50):pe.tint(50).toString(),"hover-text-color":`var(${ae.cssVarName("color-white")})`,"hover-bg-color":le,"hover-border-color":le,"active-bg-color":_e,"active-text-color":`var(${ae.cssVarName("color-white")})`,"active-border-color":_e}),oe.value&&(ie[ae.cssVarBlockName("disabled-bg-color")]=$.dark?darken(pe,90):pe.tint(90).toString(),ie[ae.cssVarBlockName("disabled-text-color")]=$.dark?darken(pe,50):pe.tint(50).toString(),ie[ae.cssVarBlockName("disabled-border-color")]=$.dark?darken(pe,80):pe.tint(80).toString());else{const Ce=$.dark?darken(pe,30):pe.tint(30).toString(),$e=pe.isDark()?`var(${ae.cssVarName("color-white")})`:`var(${ae.cssVarName("color-black")})`;if(ie=ae.cssVarBlock({"bg-color":le,"text-color":$e,"border-color":le,"hover-bg-color":Ce,"hover-text-color":$e,"hover-border-color":Ce,"active-bg-color":_e,"active-border-color":_e}),oe.value){const xe=$.dark?darken(pe,50):pe.tint(50).toString();ie[ae.cssVarBlockName("disabled-bg-color")]=xe,ie[ae.cssVarBlockName("disabled-text-color")]=$.dark?"rgba(255, 255, 255, 0.5)":`var(${ae.cssVarName("color-white")})`,ie[ae.cssVarBlockName("disabled-border-color")]=xe}}}return ie})}const __default__$1i=defineComponent({name:"ElButton"}),_sfc_main$1Z=defineComponent({...__default__$1i,props:buttonProps,emits:buttonEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useButtonCustomStyle(ie),pe=useNamespace("button"),{_ref:_e,_size:Ce,_type:$e,_disabled:xe,_props:Ie,shouldAddSpace:Ne,handleClick:Fe}=useButton(ie,ae);return oe({ref:_e,size:Ce,type:$e,disabled:xe,shouldAddSpace:Ne}),(ze,At)=>(openBlock(),createBlock(resolveDynamicComponent(ze.tag),mergeProps({ref_key:"_ref",ref:_e},unref(Ie),{class:[unref(pe).b(),unref(pe).m(unref($e)),unref(pe).m(unref(Ce)),unref(pe).is("disabled",unref(xe)),unref(pe).is("loading",ze.loading),unref(pe).is("plain",ze.plain),unref(pe).is("round",ze.round),unref(pe).is("circle",ze.circle),unref(pe).is("text",ze.text),unref(pe).is("link",ze.link),unref(pe).is("has-bg",ze.bg)],style:unref(le),onClick:unref(Fe)}),{default:withCtx(()=>[ze.loading?(openBlock(),createElementBlock(Fragment,{key:0},[ze.$slots.loading?renderSlot(ze.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(pe).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ze.loadingIcon)))]),_:1},8,["class"]))],64)):ze.icon||ze.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[ze.icon?(openBlock(),createBlock(resolveDynamicComponent(ze.icon),{key:0})):renderSlot(ze.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),ze.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(pe).em("text","expand")]:unref(Ne)})},[renderSlot(ze.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc$1(_sfc_main$1Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const buttonGroupProps={size:buttonProps.size,type:buttonProps.type},__default__$1h=defineComponent({name:"ElButtonGroup"}),_sfc_main$1Y=defineComponent({...__default__$1h,props:buttonGroupProps,setup($){const oe=$;provide(buttonGroupContextKey,reactive({size:toRef$1(oe,"size"),type:toRef$1(oe,"type")}));const ae=useNamespace("button");return(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref(ae).b("group")}`)},[renderSlot(ie.$slots,"default")],2))}});var ButtonGroup=_export_sfc$1(_sfc_main$1Y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ElButton=withInstall(Button,{ButtonGroup}),ElButtonGroup$1=withNoopInstall(ButtonGroup);var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs($){return $&&$.__esModule&&Object.prototype.hasOwnProperty.call($,"default")?$.default:$}function getAugmentedNamespace($){if($.__esModule)return $;var oe=$.default;if(typeof oe=="function"){var ae=function ie(){if(this instanceof ie){var le=[null];le.push.apply(le,arguments);var pe=Function.bind.apply(oe,le);return new pe}return oe.apply(this,arguments)};ae.prototype=oe.prototype}else ae={};return Object.defineProperty(ae,"__esModule",{value:!0}),Object.keys($).forEach(function(ie){var le=Object.getOwnPropertyDescriptor($,ie);Object.defineProperty(ae,ie,le.get?le:{enumerable:!0,get:function(){return $[ie]}})}),ae}var dayjs_min={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){var ae=1e3,ie=6e4,le=36e5,pe="millisecond",_e="second",Ce="minute",$e="hour",xe="day",Ie="week",Ne="month",Fe="quarter",ze="year",At="date",Lt="Invalid Date",hn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_n={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(Nn){var Rn=["th","st","nd","rd"],zn=Nn%100;return"["+Nn+(Rn[(zn-20)%10]||Rn[zn]||Rn[0])+"]"}},bn=function(Nn,Rn,zn){var Bn=String(Nn);return!Bn||Bn.length>=Rn?Nn:""+Array(Rn+1-Bn.length).join(zn)+Nn},Cn={s:bn,z:function(Nn){var Rn=-Nn.utcOffset(),zn=Math.abs(Rn),Bn=Math.floor(zn/60),Mn=zn%60;return(Rn<=0?"+":"-")+bn(Bn,2,"0")+":"+bn(Mn,2,"0")},m:function Nn(Rn,zn){if(Rn.date()<zn.date())return-Nn(zn,Rn);var Bn=12*(zn.year()-Rn.year())+(zn.month()-Rn.month()),Mn=Rn.clone().add(Bn,Ne),Fn=zn-Mn<0,Vn=Rn.clone().add(Bn+(Fn?-1:1),Ne);return+(-(Bn+(zn-Mn)/(Fn?Mn-Vn:Vn-Mn))||0)},a:function(Nn){return Nn<0?Math.ceil(Nn)||0:Math.floor(Nn)},p:function(Nn){return{M:Ne,y:ze,w:Ie,d:xe,D:At,h:$e,m:Ce,s:_e,ms:pe,Q:Fe}[Nn]||String(Nn||"").toLowerCase().replace(/s$/,"")},u:function(Nn){return Nn===void 0}},En="en",$n={};$n[En]=_n;var wn=function(Nn){return Nn instanceof An},Tn=function Nn(Rn,zn,Bn){var Mn;if(!Rn)return En;if(typeof Rn=="string"){var Fn=Rn.toLowerCase();$n[Fn]&&(Mn=Fn),zn&&($n[Fn]=zn,Mn=Fn);var Vn=Rn.split("-");if(!Mn&&Vn.length>1)return Nn(Vn[0])}else{var jn=Rn.name;$n[jn]=Rn,Mn=jn}return!Bn&&Mn&&(En=Mn),Mn||!Bn&&En},xn=function(Nn,Rn){if(wn(Nn))return Nn.clone();var zn=typeof Rn=="object"?Rn:{};return zn.date=Nn,zn.args=arguments,new An(zn)},kn=Cn;kn.l=Tn,kn.i=wn,kn.w=function(Nn,Rn){return xn(Nn,{locale:Rn.$L,utc:Rn.$u,x:Rn.$x,$offset:Rn.$offset})};var An=function(){function Nn(zn){this.$L=Tn(zn.locale,null,!0),this.parse(zn)}var Rn=Nn.prototype;return Rn.parse=function(zn){this.$d=function(Bn){var Mn=Bn.date,Fn=Bn.utc;if(Mn===null)return new Date(NaN);if(kn.u(Mn))return new Date;if(Mn instanceof Date)return new Date(Mn);if(typeof Mn=="string"&&!/Z$/i.test(Mn)){var Vn=Mn.match(hn);if(Vn){var jn=Vn[2]-1||0,Zn=(Vn[7]||"0").substring(0,3);return Fn?new Date(Date.UTC(Vn[1],jn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,Zn)):new Date(Vn[1],jn,Vn[3]||1,Vn[4]||0,Vn[5]||0,Vn[6]||0,Zn)}}return new Date(Mn)}(zn),this.$x=zn.x||{},this.init()},Rn.init=function(){var zn=this.$d;this.$y=zn.getFullYear(),this.$M=zn.getMonth(),this.$D=zn.getDate(),this.$W=zn.getDay(),this.$H=zn.getHours(),this.$m=zn.getMinutes(),this.$s=zn.getSeconds(),this.$ms=zn.getMilliseconds()},Rn.$utils=function(){return kn},Rn.isValid=function(){return this.$d.toString()!==Lt},Rn.isSame=function(zn,Bn){var Mn=xn(zn);return this.startOf(Bn)<=Mn&&Mn<=this.endOf(Bn)},Rn.isAfter=function(zn,Bn){return xn(zn)<this.startOf(Bn)},Rn.isBefore=function(zn,Bn){return this.endOf(Bn)<xn(zn)},Rn.$g=function(zn,Bn,Mn){return kn.u(zn)?this[Bn]:this.set(Mn,zn)},Rn.unix=function(){return Math.floor(this.valueOf()/1e3)},Rn.valueOf=function(){return this.$d.getTime()},Rn.startOf=function(zn,Bn){var Mn=this,Fn=!!kn.u(Bn)||Bn,Vn=kn.p(zn),jn=function(qn,Yn){var ar=kn.w(Mn.$u?Date.UTC(Mn.$y,Yn,qn):new Date(Mn.$y,Yn,qn),Mn);return Fn?ar:ar.endOf(xe)},Zn=function(qn,Yn){return kn.w(Mn.toDate()[qn].apply(Mn.toDate("s"),(Fn?[0,0,0,0]:[23,59,59,999]).slice(Yn)),Mn)},Gn=this.$W,Xn=this.$M,cr=this.$D,nr="set"+(this.$u?"UTC":"");switch(Vn){case ze:return Fn?jn(1,0):jn(31,11);case Ne:return Fn?jn(1,Xn):jn(0,Xn+1);case Ie:var er=this.$locale().weekStart||0,rr=(Gn<er?Gn+7:Gn)-er;return jn(Fn?cr-rr:cr+(6-rr),Xn);case xe:case At:return Zn(nr+"Hours",0);case $e:return Zn(nr+"Minutes",1);case Ce:return Zn(nr+"Seconds",2);case _e:return Zn(nr+"Milliseconds",3);default:return this.clone()}},Rn.endOf=function(zn){return this.startOf(zn,!1)},Rn.$set=function(zn,Bn){var Mn,Fn=kn.p(zn),Vn="set"+(this.$u?"UTC":""),jn=(Mn={},Mn[xe]=Vn+"Date",Mn[At]=Vn+"Date",Mn[Ne]=Vn+"Month",Mn[ze]=Vn+"FullYear",Mn[$e]=Vn+"Hours",Mn[Ce]=Vn+"Minutes",Mn[_e]=Vn+"Seconds",Mn[pe]=Vn+"Milliseconds",Mn)[Fn],Zn=Fn===xe?this.$D+(Bn-this.$W):Bn;if(Fn===Ne||Fn===ze){var Gn=this.clone().set(At,1);Gn.$d[jn](Zn),Gn.init(),this.$d=Gn.set(At,Math.min(this.$D,Gn.daysInMonth())).$d}else jn&&this.$d[jn](Zn);return this.init(),this},Rn.set=function(zn,Bn){return this.clone().$set(zn,Bn)},Rn.get=function(zn){return this[kn.p(zn)]()},Rn.add=function(zn,Bn){var Mn,Fn=this;zn=Number(zn);var Vn=kn.p(Bn),jn=function(Xn){var cr=xn(Fn);return kn.w(cr.date(cr.date()+Math.round(Xn*zn)),Fn)};if(Vn===Ne)return this.set(Ne,this.$M+zn);if(Vn===ze)return this.set(ze,this.$y+zn);if(Vn===xe)return jn(1);if(Vn===Ie)return jn(7);var Zn=(Mn={},Mn[Ce]=ie,Mn[$e]=le,Mn[_e]=ae,Mn)[Vn]||1,Gn=this.$d.getTime()+zn*Zn;return kn.w(Gn,this)},Rn.subtract=function(zn,Bn){return this.add(-1*zn,Bn)},Rn.format=function(zn){var Bn=this,Mn=this.$locale();if(!this.isValid())return Mn.invalidDate||Lt;var Fn=zn||"YYYY-MM-DDTHH:mm:ssZ",Vn=kn.z(this),jn=this.$H,Zn=this.$m,Gn=this.$M,Xn=Mn.weekdays,cr=Mn.months,nr=function(Yn,ar,pr,Un){return Yn&&(Yn[ar]||Yn(Bn,Fn))||pr[ar].slice(0,Un)},er=function(Yn){return kn.s(jn%12||12,Yn,"0")},rr=Mn.meridiem||function(Yn,ar,pr){var Un=Yn<12?"AM":"PM";return pr?Un.toLowerCase():Un},qn={YY:String(this.$y).slice(-2),YYYY:this.$y,M:Gn+1,MM:kn.s(Gn+1,2,"0"),MMM:nr(Mn.monthsShort,Gn,cr,3),MMMM:nr(cr,Gn),D:this.$D,DD:kn.s(this.$D,2,"0"),d:String(this.$W),dd:nr(Mn.weekdaysMin,this.$W,Xn,2),ddd:nr(Mn.weekdaysShort,this.$W,Xn,3),dddd:Xn[this.$W],H:String(jn),HH:kn.s(jn,2,"0"),h:er(1),hh:er(2),a:rr(jn,Zn,!0),A:rr(jn,Zn,!1),m:String(Zn),mm:kn.s(Zn,2,"0"),s:String(this.$s),ss:kn.s(this.$s,2,"0"),SSS:kn.s(this.$ms,3,"0"),Z:Vn};return Fn.replace(vn,function(Yn,ar){return ar||qn[Yn]||Vn.replace(":","")})},Rn.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Rn.diff=function(zn,Bn,Mn){var Fn,Vn=kn.p(Bn),jn=xn(zn),Zn=(jn.utcOffset()-this.utcOffset())*ie,Gn=this-jn,Xn=kn.m(this,jn);return Xn=(Fn={},Fn[ze]=Xn/12,Fn[Ne]=Xn,Fn[Fe]=Xn/3,Fn[Ie]=(Gn-Zn)/6048e5,Fn[xe]=(Gn-Zn)/864e5,Fn[$e]=Gn/le,Fn[Ce]=Gn/ie,Fn[_e]=Gn/ae,Fn)[Vn]||Gn,Mn?Xn:kn.a(Xn)},Rn.daysInMonth=function(){return this.endOf(Ne).$D},Rn.$locale=function(){return $n[this.$L]},Rn.locale=function(zn,Bn){if(!zn)return this.$L;var Mn=this.clone(),Fn=Tn(zn,Bn,!0);return Fn&&(Mn.$L=Fn),Mn},Rn.clone=function(){return kn.w(this.$d,this)},Rn.toDate=function(){return new Date(this.valueOf())},Rn.toJSON=function(){return this.isValid()?this.toISOString():null},Rn.toISOString=function(){return this.$d.toISOString()},Rn.toString=function(){return this.$d.toUTCString()},Nn}(),On=An.prototype;return xn.prototype=On,[["$ms",pe],["$s",_e],["$m",Ce],["$H",$e],["$W",xe],["$M",Ne],["$y",ze],["$D",At]].forEach(function(Nn){On[Nn[1]]=function(Rn){return this.$g(Rn,Nn[0],Nn[1])}}),xn.extend=function(Nn,Rn){return Nn.$i||(Nn(Rn,An,xn),Nn.$i=!0),xn},xn.locale=Tn,xn.isDayjs=wn,xn.unix=function(Nn){return xn(1e3*Nn)},xn.en=$n[En],xn.Ls=$n,xn.p={},xn})})(dayjs_min);var dayjs_minExports=dayjs_min.exports;const dayjs=getDefaultExportFromCjs(dayjs_minExports);var customParseFormat$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){var ae={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},ie=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,le=/\d\d/,pe=/\d\d?/,_e=/\d*[^-_:/,()\s\d]+/,Ce={},$e=function(Lt){return(Lt=+Lt)+(Lt>68?1900:2e3)},xe=function(Lt){return function(hn){this[Lt]=+hn}},Ie=[/[+-]\d\d:?(\d\d)?|Z/,function(Lt){(this.zone||(this.zone={})).offset=function(hn){if(!hn||hn==="Z")return 0;var vn=hn.match(/([+-]|\d\d)/g),_n=60*vn[1]+(+vn[2]||0);return _n===0?0:vn[0]==="+"?-_n:_n}(Lt)}],Ne=function(Lt){var hn=Ce[Lt];return hn&&(hn.indexOf?hn:hn.s.concat(hn.f))},Fe=function(Lt,hn){var vn,_n=Ce.meridiem;if(_n){for(var bn=1;bn<=24;bn+=1)if(Lt.indexOf(_n(bn,0,hn))>-1){vn=bn>12;break}}else vn=Lt===(hn?"pm":"PM");return vn},ze={A:[_e,function(Lt){this.afternoon=Fe(Lt,!1)}],a:[_e,function(Lt){this.afternoon=Fe(Lt,!0)}],S:[/\d/,function(Lt){this.milliseconds=100*+Lt}],SS:[le,function(Lt){this.milliseconds=10*+Lt}],SSS:[/\d{3}/,function(Lt){this.milliseconds=+Lt}],s:[pe,xe("seconds")],ss:[pe,xe("seconds")],m:[pe,xe("minutes")],mm:[pe,xe("minutes")],H:[pe,xe("hours")],h:[pe,xe("hours")],HH:[pe,xe("hours")],hh:[pe,xe("hours")],D:[pe,xe("day")],DD:[le,xe("day")],Do:[_e,function(Lt){var hn=Ce.ordinal,vn=Lt.match(/\d+/);if(this.day=vn[0],hn)for(var _n=1;_n<=31;_n+=1)hn(_n).replace(/\[|\]/g,"")===Lt&&(this.day=_n)}],M:[pe,xe("month")],MM:[le,xe("month")],MMM:[_e,function(Lt){var hn=Ne("months"),vn=(Ne("monthsShort")||hn.map(function(_n){return _n.slice(0,3)})).indexOf(Lt)+1;if(vn<1)throw new Error;this.month=vn%12||vn}],MMMM:[_e,function(Lt){var hn=Ne("months").indexOf(Lt)+1;if(hn<1)throw new Error;this.month=hn%12||hn}],Y:[/[+-]?\d+/,xe("year")],YY:[le,function(Lt){this.year=$e(Lt)}],YYYY:[/\d{4}/,xe("year")],Z:Ie,ZZ:Ie};function At(Lt){var hn,vn;hn=Lt,vn=Ce&&Ce.formats;for(var _n=(Lt=hn.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(xn,kn,An){var On=An&&An.toUpperCase();return kn||vn[An]||ae[An]||vn[On].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Nn,Rn,zn){return Rn||zn.slice(1)})})).match(ie),bn=_n.length,Cn=0;Cn<bn;Cn+=1){var En=_n[Cn],$n=ze[En],wn=$n&&$n[0],Tn=$n&&$n[1];_n[Cn]=Tn?{regex:wn,parser:Tn}:En.replace(/^\[|\]$/g,"")}return function(xn){for(var kn={},An=0,On=0;An<bn;An+=1){var Nn=_n[An];if(typeof Nn=="string")On+=Nn.length;else{var Rn=Nn.regex,zn=Nn.parser,Bn=xn.slice(On),Mn=Rn.exec(Bn)[0];zn.call(kn,Mn),xn=xn.replace(Mn,"")}}return function(Fn){var Vn=Fn.afternoon;if(Vn!==void 0){var jn=Fn.hours;Vn?jn<12&&(Fn.hours+=12):jn===12&&(Fn.hours=0),delete Fn.afternoon}}(kn),kn}}return function(Lt,hn,vn){vn.p.customParseFormat=!0,Lt&&Lt.parseTwoDigitYear&&($e=Lt.parseTwoDigitYear);var _n=hn.prototype,bn=_n.parse;_n.parse=function(Cn){var En=Cn.date,$n=Cn.utc,wn=Cn.args;this.$u=$n;var Tn=wn[1];if(typeof Tn=="string"){var xn=wn[2]===!0,kn=wn[3]===!0,An=xn||kn,On=wn[2];kn&&(On=wn[2]),Ce=this.$locale(),!xn&&On&&(Ce=vn.Ls[On]),this.$d=function(Bn,Mn,Fn){try{if(["x","X"].indexOf(Mn)>-1)return new Date((Mn==="X"?1e3:1)*Bn);var Vn=At(Mn)(Bn),jn=Vn.year,Zn=Vn.month,Gn=Vn.day,Xn=Vn.hours,cr=Vn.minutes,nr=Vn.seconds,er=Vn.milliseconds,rr=Vn.zone,qn=new Date,Yn=Gn||(jn||Zn?1:qn.getDate()),ar=jn||qn.getFullYear(),pr=0;jn&&!Zn||(pr=Zn>0?Zn-1:qn.getMonth());var Un=Xn||0,tr=cr||0,ur=nr||0,_r=er||0;return rr?new Date(Date.UTC(ar,pr,Yn,Un,tr,ur,_r+60*rr.offset*1e3)):Fn?new Date(Date.UTC(ar,pr,Yn,Un,tr,ur,_r)):new Date(ar,pr,Yn,Un,tr,ur,_r)}catch{return new Date("")}}(En,Tn,$n),this.init(),On&&On!==!0&&(this.$L=this.locale(On).$L),An&&En!=this.format(Tn)&&(this.$d=new Date("")),Ce={}}else if(Tn instanceof Array)for(var Nn=Tn.length,Rn=1;Rn<=Nn;Rn+=1){wn[1]=Tn[Rn-1];var zn=vn.apply(this,wn);if(zn.isValid()){this.$d=zn.$d,this.$L=zn.$L,this.init();break}Rn===Nn&&(this.$d=new Date(""))}else bn.call(this,Cn)}}})})(customParseFormat$1);var customParseFormatExports=customParseFormat$1.exports;const customParseFormat=getDefaultExportFromCjs(customParseFormatExports),timeUnits$2=["hours","minutes","seconds"],DEFAULT_FORMATS_TIME="HH:mm:ss",DEFAULT_FORMATS_DATE="YYYY-MM-DD",DEFAULT_FORMATS_DATEPICKER={date:DEFAULT_FORMATS_DATE,dates:DEFAULT_FORMATS_DATE,week:"gggg[w]ww",year:"YYYY",month:"YYYY-MM",datetime:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`,monthrange:"YYYY-MM",daterange:DEFAULT_FORMATS_DATE,datetimerange:`${DEFAULT_FORMATS_DATE} ${DEFAULT_FORMATS_TIME}`},buildTimeList=($,oe)=>[$>0?$-1:void 0,$,$<oe?$+1:void 0],rangeArr=$=>Array.from(Array.from({length:$}).keys()),extractDateFormat=$=>$.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=$=>$.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function($,oe){const ae=isDate$3($),ie=isDate$3(oe);return ae&&ie?$.getTime()===oe.getTime():!ae&&!ie?$===oe:!1},valueEquals=function($,oe){const ae=isArray$c($),ie=isArray$c(oe);return ae&&ie?$.length!==oe.length?!1:$.every((le,pe)=>dateEquals(le,oe[pe])):!ae&&!ie?dateEquals($,oe):!1},parseDate$1=function($,oe,ae){const ie=isEmpty(oe)||oe==="x"?dayjs($).locale(ae):dayjs($,oe).locale(ae);return ie.isValid()?ie:void 0},formatter=function($,oe,ae){return isEmpty(oe)?$:oe==="x"?+$:dayjs($).locale(ae).format(oe)},makeList=($,oe)=>{var ae;const ie=[],le=oe==null?void 0:oe();for(let pe=0;pe<$;pe++)ie.push((ae=le==null?void 0:le.includes(pe))!=null?ae:!1);return ie},disabledTimeListsProps=buildProps({disabledHours:{type:definePropType(Function)},disabledMinutes:{type:definePropType(Function)},disabledSeconds:{type:definePropType(Function)}}),timePanelSharedProps=buildProps({visible:Boolean,actualVisible:{type:Boolean,default:void 0},format:{type:String,default:""}}),timePickerDefaultProps=buildProps({id:{type:definePropType([Array,String])},name:{type:definePropType([Array,String]),default:""},popperClass:{type:String,default:""},format:String,valueFormat:String,type:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:definePropType([String,Object]),default:circle_close_default},editable:{type:Boolean,default:!0},prefixIcon:{type:definePropType([String,Object]),default:""},size:useSizeProp,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},popperOptions:{type:definePropType(Object),default:()=>({})},modelValue:{type:definePropType([Date,Array,String,Number]),default:""},rangeSeparator:{type:String,default:"-"},startPlaceholder:String,endPlaceholder:String,defaultValue:{type:definePropType([Date,Array])},defaultTime:{type:definePropType([Date,Array])},isRange:{type:Boolean,default:!1},...disabledTimeListsProps,disabledDate:{type:Function},cellClassName:{type:Function},shortcuts:{type:Array,default:()=>[]},arrowControl:{type:Boolean,default:!1},label:{type:String,default:void 0},tabindex:{type:definePropType([String,Number]),default:0},validateEvent:{type:Boolean,default:!0},unlinkPanels:Boolean}),_hoisted_1$_=["id","name","placeholder","value","disabled","readonly"],_hoisted_2$E=["id","name","placeholder","value","disabled","readonly"],__default__$1g=defineComponent({name:"Picker"}),_sfc_main$1X=defineComponent({...__default__$1g,props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup($,{expose:oe,emit:ae}){const ie=$,{lang:le}=useLocale(),pe=useNamespace("date"),_e=useNamespace("input"),Ce=useNamespace("range"),{form:$e,formItem:xe}=useFormItem(),Ie=inject("ElPopperOptions",{}),Ne=ref(),Fe=ref(),ze=ref(!1),At=ref(!1),Lt=ref(null);let hn=!1,vn=!1;watch(ze,Jn=>{Jn?nextTick(()=>{Jn&&(Lt.value=ie.modelValue)}):(sr.value=null,nextTick(()=>{_n(ie.modelValue)}))});const _n=(Jn,ir)=>{(ir||!valueEquals(Jn,Lt.value))&&(ae("change",Jn),ie.validateEvent&&(xe==null||xe.validate("change").catch(xr=>void 0)))},bn=Jn=>{if(!valueEquals(ie.modelValue,Jn)){let ir;isArray$c(Jn)?ir=Jn.map(xr=>formatter(xr,ie.valueFormat,le.value)):Jn&&(ir=formatter(Jn,ie.valueFormat,le.value)),ae("update:modelValue",Jn&&ir,le.value)}},Cn=Jn=>{ae("keydown",Jn)},En=computed(()=>{if(Fe.value){const Jn=tr.value?Fe.value:Fe.value.$el;return Array.from(Jn.querySelectorAll("input"))}return[]}),$n=(Jn,ir,xr)=>{const Ir=En.value;Ir.length&&(!xr||xr==="min"?(Ir[0].setSelectionRange(Jn,ir),Ir[0].focus()):xr==="max"&&(Ir[1].setSelectionRange(Jn,ir),Ir[1].focus()))},wn=()=>{zn(!0,!0),nextTick(()=>{vn=!1})},Tn=(Jn="",ir=!1)=>{ir||(vn=!0),ze.value=ir;let xr;isArray$c(Jn)?xr=Jn.map(Ir=>Ir.toDate()):xr=Jn&&Jn.toDate(),sr.value=null,bn(xr)},xn=()=>{At.value=!0},kn=()=>{ae("visible-change",!0)},An=Jn=>{(Jn==null?void 0:Jn.key)===EVENT_CODE.esc&&zn(!0,!0)},On=()=>{At.value=!1,ze.value=!1,vn=!1,ae("visible-change",!1)},Nn=()=>{ze.value=!0},Rn=()=>{ze.value=!1},zn=(Jn=!0,ir=!1)=>{vn=ir;const[xr,Ir]=unref(En);let Hr=xr;!Jn&&tr.value&&(Hr=Ir),Hr&&Hr.focus()},Bn=Jn=>{ie.readonly||Vn.value||ze.value||vn||(ze.value=!0,ae("focus",Jn))};let Mn;const Fn=Jn=>{const ir=async()=>{setTimeout(()=>{var xr;Mn===ir&&(!((xr=Ne.value)!=null&&xr.isFocusInsideContent()&&!hn)&&En.value.filter(Ir=>Ir.contains(document.activeElement)).length===0&&(Pr(),ze.value=!1,ae("blur",Jn),ie.validateEvent&&(xe==null||xe.validate("blur").catch(Ir=>void 0))),hn=!1)},0)};Mn=ir,ir()},Vn=computed(()=>ie.disabled||($e==null?void 0:$e.disabled)),jn=computed(()=>{let Jn;if(qn.value?Rr.value.getDefaultValue&&(Jn=Rr.value.getDefaultValue()):isArray$c(ie.modelValue)?Jn=ie.modelValue.map(ir=>parseDate$1(ir,ie.valueFormat,le.value)):Jn=parseDate$1(ie.modelValue,ie.valueFormat,le.value),Rr.value.getRangeAvailableTime){const ir=Rr.value.getRangeAvailableTime(Jn);isEqual$1(ir,Jn)||(Jn=ir,bn(isArray$c(Jn)?Jn.map(xr=>xr.toDate()):Jn.toDate()))}return isArray$c(Jn)&&Jn.some(ir=>!ir)&&(Jn=[]),Jn}),Zn=computed(()=>{if(!Rr.value.panelReady)return"";const Jn=kr(jn.value);return isArray$c(sr.value)?[sr.value[0]||Jn&&Jn[0]||"",sr.value[1]||Jn&&Jn[1]||""]:sr.value!==null?sr.value:!Xn.value&&qn.value||!ze.value&&qn.value?"":Jn?cr.value?Jn.join(", "):Jn:""}),Gn=computed(()=>ie.type.includes("time")),Xn=computed(()=>ie.type.startsWith("time")),cr=computed(()=>ie.type==="dates"),nr=computed(()=>ie.prefixIcon||(Gn.value?clock_default:calendar_default)),er=ref(!1),rr=Jn=>{ie.readonly||Vn.value||er.value&&(Jn.stopPropagation(),wn(),bn(null),_n(null,!0),er.value=!1,ze.value=!1,Rr.value.handleClear&&Rr.value.handleClear())},qn=computed(()=>{const{modelValue:Jn}=ie;return!Jn||isArray$c(Jn)&&!Jn.filter(Boolean).length}),Yn=async Jn=>{var ir;ie.readonly||Vn.value||(((ir=Jn.target)==null?void 0:ir.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(ze.value=!0)},ar=()=>{ie.readonly||Vn.value||!qn.value&&ie.clearable&&(er.value=!0)},pr=()=>{er.value=!1},Un=Jn=>{var ir;ie.readonly||Vn.value||(((ir=Jn.touches[0].target)==null?void 0:ir.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(ze.value=!0)},tr=computed(()=>ie.type.includes("range")),ur=useFormSize(),_r=computed(()=>{var Jn,ir;return(ir=(Jn=unref(Ne))==null?void 0:Jn.popperRef)==null?void 0:ir.contentRef}),Er=computed(()=>{var Jn;return unref(tr)?unref(Fe):(Jn=unref(Fe))==null?void 0:Jn.$el});onClickOutside(Er,Jn=>{const ir=unref(_r),xr=unref(Er);ir&&(Jn.target===ir||Jn.composedPath().includes(ir))||Jn.target===xr||Jn.composedPath().includes(xr)||(ze.value=!1)});const sr=ref(null),Pr=()=>{if(sr.value){const Jn=Sr(Zn.value);Jn&&mr(Jn)&&(bn(isArray$c(Jn)?Jn.map(ir=>ir.toDate()):Jn.toDate()),sr.value=null)}sr.value===""&&(bn(null),_n(null),sr.value=null)},Sr=Jn=>Jn?Rr.value.parseUserInput(Jn):null,kr=Jn=>Jn?Rr.value.formatToString(Jn):null,mr=Jn=>Rr.value.isValidValue(Jn),lr=async Jn=>{if(ie.readonly||Vn.value)return;const{code:ir}=Jn;if(Cn(Jn),ir===EVENT_CODE.esc){ze.value===!0&&(ze.value=!1,Jn.preventDefault(),Jn.stopPropagation());return}if(ir===EVENT_CODE.down&&(Rr.value.handleFocusPicker&&(Jn.preventDefault(),Jn.stopPropagation()),ze.value===!1&&(ze.value=!0,await nextTick()),Rr.value.handleFocusPicker)){Rr.value.handleFocusPicker();return}if(ir===EVENT_CODE.tab){hn=!0;return}if(ir===EVENT_CODE.enter||ir===EVENT_CODE.numpadEnter){(sr.value===null||sr.value===""||mr(Sr(Zn.value)))&&(Pr(),ze.value=!1),Jn.stopPropagation();return}if(sr.value){Jn.stopPropagation();return}Rr.value.handleKeydownInput&&Rr.value.handleKeydownInput(Jn)},hr=Jn=>{sr.value=Jn,ze.value||(ze.value=!0)},gr=Jn=>{const ir=Jn.target;sr.value?sr.value=[ir.value,sr.value[1]]:sr.value=[ir.value,null]},Or=Jn=>{const ir=Jn.target;sr.value?sr.value=[sr.value[0],ir.value]:sr.value=[null,ir.value]},Lr=()=>{var Jn;const ir=sr.value,xr=Sr(ir&&ir[0]),Ir=unref(jn);if(xr&&xr.isValid()){sr.value=[kr(xr),((Jn=Zn.value)==null?void 0:Jn[1])||null];const Hr=[xr,Ir&&(Ir[1]||null)];mr(Hr)&&(bn(Hr),sr.value=null)}},Vr=()=>{var Jn;const ir=unref(sr),xr=Sr(ir&&ir[1]),Ir=unref(jn);if(xr&&xr.isValid()){sr.value=[((Jn=unref(Zn))==null?void 0:Jn[0])||null,kr(xr)];const Hr=[Ir&&Ir[0],xr];mr(Hr)&&(bn(Hr),sr.value=null)}},Rr=ref({}),$r=Jn=>{Rr.value[Jn[0]]=Jn[1],Rr.value.panelReady=!0},Tr=Jn=>{ae("calendar-change",Jn)},dr=(Jn,ir,xr)=>{ae("panel-change",Jn,ir,xr)};return provide("EP_PICKER_BASE",{props:ie}),oe({focus:zn,handleFocusInput:Bn,handleBlurInput:Fn,handleOpen:Nn,handleClose:Rn,onPick:Tn}),(Jn,ir)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:Ne,visible:ze.value,effect:"light",pure:"",trigger:"click"},Jn.$attrs,{role:"dialog",teleported:"",transition:`${unref(pe).namespace.value}-zoom-in-top`,"popper-class":[`${unref(pe).namespace.value}-picker__popper`,Jn.popperClass],"popper-options":unref(Ie),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:xn,onShow:kn,onHide:On}),{default:withCtx(()=>[unref(tr)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:Fe,class:normalizeClass([unref(pe).b("editor"),unref(pe).bm("editor",Jn.type),unref(_e).e("wrapper"),unref(pe).is("disabled",unref(Vn)),unref(pe).is("active",ze.value),unref(Ce).b("editor"),unref(ur)?unref(Ce).bm("editor",unref(ur)):"",Jn.$attrs.class]),style:normalizeStyle$1(Jn.$attrs.style),onClick:Bn,onMouseenter:ar,onMouseleave:pr,onTouchstart:Un,onKeydown:lr},[unref(nr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(_e).e("icon"),unref(Ce).e("icon")]),onMousedown:withModifiers(Yn,["prevent"]),onTouchstart:Un},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(nr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:Jn.id&&Jn.id[0],autocomplete:"off",name:Jn.name&&Jn.name[0],placeholder:Jn.startPlaceholder,value:unref(Zn)&&unref(Zn)[0],disabled:unref(Vn),readonly:!Jn.editable||Jn.readonly,class:normalizeClass(unref(Ce).b("input")),onMousedown:Yn,onInput:gr,onChange:Lr,onFocus:Bn,onBlur:Fn},null,42,_hoisted_1$_),renderSlot(Jn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(Ce).b("separator"))},toDisplayString$1(Jn.rangeSeparator),3)]),createBaseVNode("input",{id:Jn.id&&Jn.id[1],autocomplete:"off",name:Jn.name&&Jn.name[1],placeholder:Jn.endPlaceholder,value:unref(Zn)&&unref(Zn)[1],disabled:unref(Vn),readonly:!Jn.editable||Jn.readonly,class:normalizeClass(unref(Ce).b("input")),onMousedown:Yn,onFocus:Bn,onBlur:Fn,onInput:Or,onChange:Vr},null,42,_hoisted_2$E),Jn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(_e).e("icon"),unref(Ce).e("close-icon"),{[unref(Ce).e("close-icon--hidden")]:!er.value}]),onClick:rr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jn.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:Jn.id,ref_key:"inputRef",ref:Fe,"container-role":"combobox","model-value":unref(Zn),name:Jn.name,size:unref(ur),disabled:unref(Vn),placeholder:Jn.placeholder,class:normalizeClass([unref(pe).b("editor"),unref(pe).bm("editor",Jn.type),Jn.$attrs.class]),style:normalizeStyle$1(Jn.$attrs.style),readonly:!Jn.editable||Jn.readonly||unref(cr)||Jn.type==="week",label:Jn.label,tabindex:Jn.tabindex,"validate-event":!1,onInput:hr,onFocus:Bn,onBlur:Fn,onKeydown:lr,onChange:Pr,onMousedown:Yn,onMouseenter:ar,onMouseleave:pr,onTouchstart:Un,onClick:ir[0]||(ir[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(nr)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(_e).e("icon")),onMousedown:withModifiers(Yn,["prevent"]),onTouchstart:Un},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(nr))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[er.value&&Jn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(_e).e("icon")} clear-icon`),onClick:withModifiers(rr,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Jn.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:1},8,["id","model-value","name","size","disabled","placeholder","class","style","readonly","label","tabindex","onKeydown"]))]),content:withCtx(()=>[renderSlot(Jn.$slots,"default",{visible:ze.value,actualVisible:At.value,parsedValue:unref(jn),format:Jn.format,unlinkPanels:Jn.unlinkPanels,type:Jn.type,defaultValue:Jn.defaultValue,onPick:Tn,onSelectRange:$n,onSetPickerOption:$r,onCalendarChange:Tr,onPanelChange:dr,onKeydown:An,onMousedown:ir[1]||(ir[1]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var CommonPicker=_export_sfc$1(_sfc_main$1X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/common/picker.vue"]]);const panelTimePickerProps=buildProps({...timePanelSharedProps,datetimeRole:String,parsedValue:{type:definePropType(Object)}}),useTimePanel=({getAvailableHours:$,getAvailableMinutes:oe,getAvailableSeconds:ae})=>{const ie=(_e,Ce,$e,xe)=>{const Ie={hour:$,minute:oe,second:ae};let Ne=_e;return["hour","minute","second"].forEach(Fe=>{if(Ie[Fe]){let ze;const At=Ie[Fe];switch(Fe){case"minute":{ze=At(Ne.hour(),Ce,xe);break}case"second":{ze=At(Ne.hour(),Ne.minute(),Ce,xe);break}default:{ze=At(Ce,xe);break}}if(ze!=null&&ze.length&&!ze.includes(Ne[Fe]())){const Lt=$e?0:ze.length-1;Ne=Ne[Fe](ze[Lt])}}}),Ne},le={};return{timePickerOptions:le,getAvailableTime:ie,onSetOption:([_e,Ce])=>{le[_e]=Ce}}},makeAvailableArr=$=>{const oe=(ie,le)=>ie||le,ae=ie=>ie!==!0;return $.map(oe).filter(ae)},getTimeLists=($,oe,ae)=>({getHoursList:(_e,Ce)=>makeList(24,$&&(()=>$==null?void 0:$(_e,Ce))),getMinutesList:(_e,Ce,$e)=>makeList(60,oe&&(()=>oe==null?void 0:oe(_e,Ce,$e))),getSecondsList:(_e,Ce,$e,xe)=>makeList(60,ae&&(()=>ae==null?void 0:ae(_e,Ce,$e,xe)))}),buildAvailableTimeSlotGetter=($,oe,ae)=>{const{getHoursList:ie,getMinutesList:le,getSecondsList:pe}=getTimeLists($,oe,ae);return{getAvailableHours:(xe,Ie)=>makeAvailableArr(ie(xe,Ie)),getAvailableMinutes:(xe,Ie,Ne)=>makeAvailableArr(le(xe,Ie,Ne)),getAvailableSeconds:(xe,Ie,Ne,Fe)=>makeAvailableArr(pe(xe,Ie,Ne,Fe))}},useOldValue=$=>{const oe=ref($.parsedValue);return watch(()=>$.visible,ae=>{ae||(oe.value=$.parsedValue)}),oe},nodeList=new Map;let startClick;isClient$2&&(document.addEventListener("mousedown",$=>startClick=$),document.addEventListener("mouseup",$=>{for(const oe of nodeList.values())for(const{documentHandler:ae}of oe)ae($,startClick)}));function createDocumentHandler($,oe){let ae=[];return Array.isArray(oe.arg)?ae=oe.arg:isElement$2(oe.arg)&&ae.push(oe.arg),function(ie,le){const pe=oe.instance.popperRef,_e=ie.target,Ce=le==null?void 0:le.target,$e=!oe||!oe.instance,xe=!_e||!Ce,Ie=$.contains(_e)||$.contains(Ce),Ne=$===_e,Fe=ae.length&&ae.some(At=>At==null?void 0:At.contains(_e))||ae.length&&ae.includes(Ce),ze=pe&&(pe.contains(_e)||pe.contains(Ce));$e||xe||Ie||Ne||Fe||ze||oe.value(ie,le)}}const ClickOutside={beforeMount($,oe){nodeList.has($)||nodeList.set($,[]),nodeList.get($).push({documentHandler:createDocumentHandler($,oe),bindingFn:oe.value})},updated($,oe){nodeList.has($)||nodeList.set($,[]);const ae=nodeList.get($),ie=ae.findIndex(pe=>pe.bindingFn===oe.oldValue),le={documentHandler:createDocumentHandler($,oe),bindingFn:oe.value};ie>=0?ae.splice(ie,1,le):ae.push(le)},unmounted($){nodeList.delete($)}},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount($,oe){const ae=oe.value,{interval:ie=REPEAT_INTERVAL,delay:le=REPEAT_DELAY}=isFunction$5(ae)?{}:ae;let pe,_e;const Ce=()=>isFunction$5(ae)?ae():ae.handler(),$e=()=>{_e&&(clearTimeout(_e),_e=void 0),pe&&(clearInterval(pe),pe=void 0)};$.addEventListener("mousedown",xe=>{xe.button===0&&($e(),Ce(),document.addEventListener("mouseup",()=>$e(),{once:!0}),_e=setTimeout(()=>{pe=setInterval(()=>{Ce()},ie)},le))})}},FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=$=>{if(FOCUS_STACK.length===0)return;const oe=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(oe.length>0&&$.code===EVENT_CODE.tab){if(oe.length===1){$.preventDefault(),document.activeElement!==oe[0]&&oe[0].focus();return}const ae=$.shiftKey,ie=$.target===oe[0],le=$.target===oe[oe.length-1];ie&&ae&&($.preventDefault(),oe[oe.length-1].focus()),le&&!ae&&($.preventDefault(),oe[0].focus())}},TrapFocus={beforeMount($){$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($),FOCUS_STACK.push($),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated($){nextTick(()=>{$[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1($)})},unmounted(){FOCUS_STACK.shift(),FOCUS_STACK.length===0&&document.removeEventListener("keydown",FOCUS_HANDLER)}};var v=!1,o,f$1,s,u$1,d$1,N$1,l,p$1,m$3,w,D$2,x,E,M$1,F;function a$1(){if(!v){v=!0;var $=navigator.userAgent,oe=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec($),ae=/(Mac OS X)|(Windows)|(Linux)/.exec($);if(x=/\b(iPhone|iP[ao]d)/.exec($),E=/\b(iP[ao]d)/.exec($),w=/Android/i.exec($),M$1=/FBAN\/\w+;/i.exec($),F=/Mobile/i.exec($),D$2=!!/Win64/.exec($),oe){o=oe[1]?parseFloat(oe[1]):oe[5]?parseFloat(oe[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var ie=/(?:Trident\/(\d+.\d+))/.exec($);N$1=ie?parseFloat(ie[1])+4:o,f$1=oe[2]?parseFloat(oe[2]):NaN,s=oe[3]?parseFloat(oe[3]):NaN,u$1=oe[4]?parseFloat(oe[4]):NaN,u$1?(oe=/(?:Chrome\/(\d+\.\d+))/.exec($),d$1=oe&&oe[1]?parseFloat(oe[1]):NaN):d$1=NaN}else o=f$1=s=d$1=u$1=NaN;if(ae){if(ae[1]){var le=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec($);l=le?parseFloat(le[1].replace("_",".")):!0}else l=!1;p$1=!!ae[2],m$3=!!ae[3]}else l=p$1=m$3=!1}}var _$2={ie:function(){return a$1()||o},ieCompatibilityMode:function(){return a$1()||N$1>o},ie64:function(){return _$2.ie()&&D$2},firefox:function(){return a$1()||f$1},opera:function(){return a$1()||s},webkit:function(){return a$1()||u$1},safari:function(){return _$2.webkit()},chrome:function(){return a$1()||d$1},windows:function(){return a$1()||p$1},osx:function(){return a$1()||l},linux:function(){return a$1()||m$3},iphone:function(){return a$1()||x},mobile:function(){return a$1()||x||E||w||F},nativeApp:function(){return a$1()||M$1},android:function(){return a$1()||w},ipad:function(){return a$1()||E}},A=_$2,c$2=!!(typeof window<"u"&&window.document&&window.document.createElement),U$1={canUseDOM:c$2,canUseWorkers:typeof Worker<"u",canUseEventListeners:c$2&&!!(window.addEventListener||window.attachEvent),canUseViewport:c$2&&!!window.screen,isInWorker:!c$2},h$1=U$1,X;h$1.canUseDOM&&(X=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);function S$1($,oe){if(!h$1.canUseDOM||oe&&!("addEventListener"in document))return!1;var ae="on"+$,ie=ae in document;if(!ie){var le=document.createElement("div");le.setAttribute(ae,"return;"),ie=typeof le[ae]=="function"}return!ie&&X&&$==="wheel"&&(ie=document.implementation.hasFeature("Events.wheel","3.0")),ie}var b$1=S$1,O$1=10,I$1=40,P$2=800;function T$1($){var oe=0,ae=0,ie=0,le=0;return"detail"in $&&(ae=$.detail),"wheelDelta"in $&&(ae=-$.wheelDelta/120),"wheelDeltaY"in $&&(ae=-$.wheelDeltaY/120),"wheelDeltaX"in $&&(oe=-$.wheelDeltaX/120),"axis"in $&&$.axis===$.HORIZONTAL_AXIS&&(oe=ae,ae=0),ie=oe*O$1,le=ae*O$1,"deltaY"in $&&(le=$.deltaY),"deltaX"in $&&(ie=$.deltaX),(ie||le)&&$.deltaMode&&($.deltaMode==1?(ie*=I$1,le*=I$1):(ie*=P$2,le*=P$2)),ie&&!oe&&(oe=ie<1?-1:1),le&&!ae&&(ae=le<1?-1:1),{spinX:oe,spinY:ae,pixelX:ie,pixelY:le}}T$1.getEventType=function(){return A.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y=T$1;/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @param {?boolean} capture Check if the capture phase is supported.
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/const mousewheel=function($,oe){if($&&$.addEventListener){const ae=function(ie){const le=Y(ie);oe&&Reflect.apply(oe,this,[ie,le])};$.addEventListener("wheel",ae,{passive:!0})}},Mousewheel={beforeMount($,oe){mousewheel($,oe.value)}},basicTimeSpinnerProps=buildProps({role:{type:String,required:!0},spinnerDate:{type:definePropType(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:definePropType(String),default:""},...disabledTimeListsProps}),_hoisted_1$Z=["onClick"],_hoisted_2$D=["onMouseenter"],_sfc_main$1W=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:["change","select-range","set-option"],setup($,{emit:oe}){const ae=$,ie=useNamespace("time"),{getHoursList:le,getMinutesList:pe,getSecondsList:_e}=getTimeLists(ae.disabledHours,ae.disabledMinutes,ae.disabledSeconds);let Ce=!1;const $e=ref(),xe=ref(),Ie=ref(),Ne=ref(),Fe={hours:xe,minutes:Ie,seconds:Ne},ze=computed(()=>ae.showSeconds?timeUnits$2:timeUnits$2.slice(0,2)),At=computed(()=>{const{spinnerDate:Vn}=ae,jn=Vn.hour(),Zn=Vn.minute(),Gn=Vn.second();return{hours:jn,minutes:Zn,seconds:Gn}}),Lt=computed(()=>{const{hours:Vn,minutes:jn}=unref(At);return{hours:le(ae.role),minutes:pe(Vn,ae.role),seconds:_e(Vn,jn,ae.role)}}),hn=computed(()=>{const{hours:Vn,minutes:jn,seconds:Zn}=unref(At);return{hours:buildTimeList(Vn,23),minutes:buildTimeList(jn,59),seconds:buildTimeList(Zn,59)}}),vn=debounce(Vn=>{Ce=!1,Cn(Vn)},200),_n=Vn=>{if(!!!ae.amPmMode)return"";const Zn=ae.amPmMode==="A";let Gn=Vn<12?" am":" pm";return Zn&&(Gn=Gn.toUpperCase()),Gn},bn=Vn=>{let jn;switch(Vn){case"hours":jn=[0,2];break;case"minutes":jn=[3,5];break;case"seconds":jn=[6,8];break}const[Zn,Gn]=jn;oe("select-range",Zn,Gn),$e.value=Vn},Cn=Vn=>{wn(Vn,unref(At)[Vn])},En=()=>{Cn("hours"),Cn("minutes"),Cn("seconds")},$n=Vn=>Vn.querySelector(`.${ie.namespace.value}-scrollbar__wrap`),wn=(Vn,jn)=>{if(ae.arrowControl)return;const Zn=unref(Fe[Vn]);Zn&&Zn.$el&&($n(Zn.$el).scrollTop=Math.max(0,jn*Tn(Vn)))},Tn=Vn=>{const jn=unref(Fe[Vn]);return(jn==null?void 0:jn.$el.querySelector("li").offsetHeight)||0},xn=()=>{An(1)},kn=()=>{An(-1)},An=Vn=>{$e.value||bn("hours");const jn=$e.value,Zn=unref(At)[jn],Gn=$e.value==="hours"?24:60,Xn=On(jn,Zn,Vn,Gn);Nn(jn,Xn),wn(jn,Xn),nextTick(()=>bn(jn))},On=(Vn,jn,Zn,Gn)=>{let Xn=(jn+Zn+Gn)%Gn;const cr=unref(Lt)[Vn];for(;cr[Xn]&&Xn!==jn;)Xn=(Xn+Zn+Gn)%Gn;return Xn},Nn=(Vn,jn)=>{if(unref(Lt)[Vn][jn])return;const{hours:Xn,minutes:cr,seconds:nr}=unref(At);let er;switch(Vn){case"hours":er=ae.spinnerDate.hour(jn).minute(cr).second(nr);break;case"minutes":er=ae.spinnerDate.hour(Xn).minute(jn).second(nr);break;case"seconds":er=ae.spinnerDate.hour(Xn).minute(cr).second(jn);break}oe("change",er)},Rn=(Vn,{value:jn,disabled:Zn})=>{Zn||(Nn(Vn,jn),bn(Vn),wn(Vn,jn))},zn=Vn=>{Ce=!0,vn(Vn);const jn=Math.min(Math.round(($n(unref(Fe[Vn]).$el).scrollTop-(Bn(Vn)*.5-10)/Tn(Vn)+3)/Tn(Vn)),Vn==="hours"?23:59);Nn(Vn,jn)},Bn=Vn=>unref(Fe[Vn]).$el.offsetHeight,Mn=()=>{const Vn=jn=>{const Zn=unref(Fe[jn]);Zn&&Zn.$el&&($n(Zn.$el).onscroll=()=>{zn(jn)})};Vn("hours"),Vn("minutes"),Vn("seconds")};onMounted(()=>{nextTick(()=>{!ae.arrowControl&&Mn(),En(),ae.role==="start"&&bn("hours")})});const Fn=(Vn,jn)=>{Fe[jn].value=Vn};return oe("set-option",[`${ae.role}_scrollDown`,An]),oe("set-option",[`${ae.role}_emitSelectRange`,bn]),watch(()=>ae.spinnerDate,()=>{Ce||En()}),(Vn,jn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b("spinner"),{"has-seconds":Vn.showSeconds}])},[Vn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(ze),Zn=>(openBlock(),createBlock(unref(ElScrollbar),{key:Zn,ref_for:!0,ref:Gn=>Fn(Gn,Zn),class:normalizeClass(unref(ie).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(ie).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Gn=>bn(Zn),onMousemove:Gn=>Cn(Zn)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Lt)[Zn],(Gn,Xn)=>(openBlock(),createElementBlock("li",{key:Xn,class:normalizeClass([unref(ie).be("spinner","item"),unref(ie).is("active",Xn===unref(At)[Zn]),unref(ie).is("disabled",Gn)]),onClick:cr=>Rn(Zn,{value:Xn,disabled:Gn})},[Zn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Vn.amPmMode?Xn%12||12:Xn)).slice(-2))+toDisplayString$1(_n(Xn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Xn).slice(-2)),1)],64))],10,_hoisted_1$Z))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),Vn.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(ze),Zn=>(openBlock(),createElementBlock("div",{key:Zn,class:normalizeClass([unref(ie).be("spinner","wrapper"),unref(ie).is("arrow")]),onMouseenter:Gn=>bn(Zn)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(ie).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),kn]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(ie).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),xn]]),createBaseVNode("ul",{class:normalizeClass(unref(ie).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(hn)[Zn],(Gn,Xn)=>(openBlock(),createElementBlock("li",{key:Xn,class:normalizeClass([unref(ie).be("spinner","item"),unref(ie).is("active",Gn===unref(At)[Zn]),unref(ie).is("disabled",unref(Lt)[Zn][Gn])])},[typeof Gn=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[Zn==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Vn.amPmMode?Gn%12||12:Gn)).slice(-2))+toDisplayString$1(_n(Gn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Gn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$D))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc$1(_sfc_main$1W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1V=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup($,{emit:oe}){const ae=$,ie=inject("EP_PICKER_BASE"),{arrowControl:le,disabledHours:pe,disabledMinutes:_e,disabledSeconds:Ce,defaultValue:$e}=ie.props,{getAvailableHours:xe,getAvailableMinutes:Ie,getAvailableSeconds:Ne}=buildAvailableTimeSlotGetter(pe,_e,Ce),Fe=useNamespace("time"),{t:ze,lang:At}=useLocale(),Lt=ref([0,2]),hn=useOldValue(ae),vn=computed(()=>isUndefined$1(ae.actualVisible)?`${Fe.namespace.value}-zoom-in-top`:""),_n=computed(()=>ae.format.includes("ss")),bn=computed(()=>ae.format.includes("A")?"A":ae.format.includes("a")?"a":""),Cn=Fn=>{const Vn=dayjs(Fn).locale(At.value),jn=Rn(Vn);return Vn.isSame(jn)},En=()=>{oe("pick",hn.value,!1)},$n=(Fn=!1,Vn=!1)=>{Vn||oe("pick",ae.parsedValue,Fn)},wn=Fn=>{if(!ae.visible)return;const Vn=Rn(Fn).millisecond(0);oe("pick",Vn,!0)},Tn=(Fn,Vn)=>{oe("select-range",Fn,Vn),Lt.value=[Fn,Vn]},xn=Fn=>{const Vn=[0,3].concat(_n.value?[6]:[]),jn=["hours","minutes"].concat(_n.value?["seconds"]:[]),Gn=(Vn.indexOf(Lt.value[0])+Fn+Vn.length)%Vn.length;An.start_emitSelectRange(jn[Gn])},kn=Fn=>{const Vn=Fn.code,{left:jn,right:Zn,up:Gn,down:Xn}=EVENT_CODE;if([jn,Zn].includes(Vn)){xn(Vn===jn?-1:1),Fn.preventDefault();return}if([Gn,Xn].includes(Vn)){const cr=Vn===Gn?-1:1;An.start_scrollDown(cr),Fn.preventDefault();return}},{timePickerOptions:An,onSetOption:On,getAvailableTime:Nn}=useTimePanel({getAvailableHours:xe,getAvailableMinutes:Ie,getAvailableSeconds:Ne}),Rn=Fn=>Nn(Fn,ae.datetimeRole||"",!0),zn=Fn=>Fn?dayjs(Fn,ae.format).locale(At.value):null,Bn=Fn=>Fn?Fn.format(ae.format):null,Mn=()=>dayjs($e).locale(At.value);return oe("set-picker-option",["isValidValue",Cn]),oe("set-picker-option",["formatToString",Bn]),oe("set-picker-option",["parseUserInput",zn]),oe("set-picker-option",["handleKeydownInput",kn]),oe("set-picker-option",["getRangeAvailableTime",Rn]),oe("set-picker-option",["getDefaultValue",Mn]),(Fn,Vn)=>(openBlock(),createBlock(Transition,{name:unref(vn)},{default:withCtx(()=>[Fn.actualVisible||Fn.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Fe).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref(Fe).be("panel","content"),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Fn.datetimeRole||"start","arrow-control":unref(le),"show-seconds":unref(_n),"am-pm-mode":unref(bn),"spinner-date":Fn.parsedValue,"disabled-hours":unref(pe),"disabled-minutes":unref(_e),"disabled-seconds":unref(Ce),onChange:wn,onSetOption:unref(On),onSelectRange:Tn},null,8,["role","arrow-control","show-seconds","am-pm-mode","spinner-date","disabled-hours","disabled-minutes","disabled-seconds","onSetOption"])],2),createBaseVNode("div",{class:normalizeClass(unref(Fe).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).be("panel","btn"),"cancel"]),onClick:En},toDisplayString$1(unref(ze)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Fe).be("panel","btn"),"confirm"]),onClick:Vn[0]||(Vn[0]=jn=>$n())},toDisplayString$1(unref(ze)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc$1(_sfc_main$1V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-pick.vue"]]);const panelTimeRangeProps=buildProps({...timePanelSharedProps,parsedValue:{type:definePropType(Array)}}),_hoisted_1$Y=["disabled"],_sfc_main$1U=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup($,{emit:oe}){const ae=$,ie=(Yn,ar)=>{const pr=[];for(let Un=Yn;Un<=ar;Un++)pr.push(Un);return pr},{t:le,lang:pe}=useLocale(),_e=useNamespace("time"),Ce=useNamespace("picker"),$e=inject("EP_PICKER_BASE"),{arrowControl:xe,disabledHours:Ie,disabledMinutes:Ne,disabledSeconds:Fe,defaultValue:ze}=$e.props,At=computed(()=>ae.parsedValue[0]),Lt=computed(()=>ae.parsedValue[1]),hn=useOldValue(ae),vn=()=>{oe("pick",hn.value,!1)},_n=computed(()=>ae.format.includes("ss")),bn=computed(()=>ae.format.includes("A")?"A":ae.format.includes("a")?"a":""),Cn=(Yn=!1)=>{oe("pick",[At.value,Lt.value],Yn)},En=Yn=>{Tn(Yn.millisecond(0),Lt.value)},$n=Yn=>{Tn(At.value,Yn.millisecond(0))},wn=Yn=>{const ar=Yn.map(Un=>dayjs(Un).locale(pe.value)),pr=Vn(ar);return ar[0].isSame(pr[0])&&ar[1].isSame(pr[1])},Tn=(Yn,ar)=>{oe("pick",[Yn,ar],!0)},xn=computed(()=>At.value>Lt.value),kn=ref([0,2]),An=(Yn,ar)=>{oe("select-range",Yn,ar,"min"),kn.value=[Yn,ar]},On=computed(()=>_n.value?11:8),Nn=(Yn,ar)=>{oe("select-range",Yn,ar,"max");const pr=unref(On);kn.value=[Yn+pr,ar+pr]},Rn=Yn=>{const ar=_n.value?[0,3,6,11,14,17]:[0,3,8,11],pr=["hours","minutes"].concat(_n.value?["seconds"]:[]),tr=(ar.indexOf(kn.value[0])+Yn+ar.length)%ar.length,ur=ar.length/2;tr<ur?Xn.start_emitSelectRange(pr[tr]):Xn.end_emitSelectRange(pr[tr-ur])},zn=Yn=>{const ar=Yn.code,{left:pr,right:Un,up:tr,down:ur}=EVENT_CODE;if([pr,Un].includes(ar)){Rn(ar===pr?-1:1),Yn.preventDefault();return}if([tr,ur].includes(ar)){const _r=ar===tr?-1:1,Er=kn.value[0]<On.value?"start":"end";Xn[`${Er}_scrollDown`](_r),Yn.preventDefault();return}},Bn=(Yn,ar)=>{const pr=Ie?Ie(Yn):[],Un=Yn==="start",ur=(ar||(Un?Lt.value:At.value)).hour(),_r=Un?ie(ur+1,23):ie(0,ur-1);return union$1(pr,_r)},Mn=(Yn,ar,pr)=>{const Un=Ne?Ne(Yn,ar):[],tr=ar==="start",ur=pr||(tr?Lt.value:At.value),_r=ur.hour();if(Yn!==_r)return Un;const Er=ur.minute(),sr=tr?ie(Er+1,59):ie(0,Er-1);return union$1(Un,sr)},Fn=(Yn,ar,pr,Un)=>{const tr=Fe?Fe(Yn,ar,pr):[],ur=pr==="start",_r=Un||(ur?Lt.value:At.value),Er=_r.hour(),sr=_r.minute();if(Yn!==Er||ar!==sr)return tr;const Pr=_r.second(),Sr=ur?ie(Pr+1,59):ie(0,Pr-1);return union$1(tr,Sr)},Vn=([Yn,ar])=>[cr(Yn,"start",!0,ar),cr(ar,"end",!1,Yn)],{getAvailableHours:jn,getAvailableMinutes:Zn,getAvailableSeconds:Gn}=buildAvailableTimeSlotGetter(Bn,Mn,Fn),{timePickerOptions:Xn,getAvailableTime:cr,onSetOption:nr}=useTimePanel({getAvailableHours:jn,getAvailableMinutes:Zn,getAvailableSeconds:Gn}),er=Yn=>Yn?isArray$c(Yn)?Yn.map(ar=>dayjs(ar,ae.format).locale(pe.value)):dayjs(Yn,ae.format).locale(pe.value):null,rr=Yn=>Yn?isArray$c(Yn)?Yn.map(ar=>ar.format(ae.format)):Yn.format(ae.format):null,qn=()=>{if(isArray$c(ze))return ze.map(ar=>dayjs(ar).locale(pe.value));const Yn=dayjs(ze).locale(pe.value);return[Yn,Yn.add(60,"m")]};return oe("set-picker-option",["formatToString",rr]),oe("set-picker-option",["parseUserInput",er]),oe("set-picker-option",["isValidValue",wn]),oe("set-picker-option",["handleKeydownInput",zn]),oe("set-picker-option",["getDefaultValue",qn]),oe("set-picker-option",["getRangeAvailableTime",Vn]),(Yn,ar)=>Yn.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(_e).b("range-picker"),unref(Ce).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","header"))},toDisplayString$1(unref(le)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass([unref(_e).be("range-picker","body"),unref(_e).be("panel","content"),unref(_e).is("arrow",unref(xe)),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(_n),"am-pm-mode":unref(bn),"arrow-control":unref(xe),"spinner-date":unref(At),"disabled-hours":Bn,"disabled-minutes":Mn,"disabled-seconds":Fn,onChange:En,onSetOption:unref(nr),onSelectRange:An},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(_e).be("range-picker","header"))},toDisplayString$1(unref(le)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass([unref(_e).be("range-picker","body"),unref(_e).be("panel","content"),unref(_e).is("arrow",unref(xe)),{"has-seconds":unref(_n)}])},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(_n),"am-pm-mode":unref(bn),"arrow-control":unref(xe),"spinner-date":unref(Lt),"disabled-hours":Bn,"disabled-minutes":Mn,"disabled-seconds":Fn,onChange:$n,onSetOption:unref(nr),onSelectRange:Nn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(_e).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(_e).be("panel","btn"),"cancel"]),onClick:ar[0]||(ar[0]=pr=>vn())},toDisplayString$1(unref(le)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_e).be("panel","btn"),"confirm"]),disabled:unref(xn),onClick:ar[1]||(ar[1]=pr=>Cn())},toDisplayString$1(unref(le)("el.datepicker.confirm")),11,_hoisted_1$Y)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc$1(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/panel-time-range.vue"]]);dayjs.extend(customParseFormat);var TimePicker=defineComponent({name:"ElTimePicker",install:null,props:{...timePickerDefaultProps,isRange:{type:Boolean,default:!1}},emits:["update:modelValue"],setup($,oe){const ae=ref(),[ie,le]=$.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],pe=_e=>oe.emit("update:modelValue",_e);return provide("ElPopperOptions",$.popperOptions),oe.expose({focus:_e=>{var Ce;(Ce=ae.value)==null||Ce.handleFocusInput(_e)},blur:_e=>{var Ce;(Ce=ae.value)==null||Ce.handleBlurInput(_e)},handleOpen:()=>{var _e;(_e=ae.value)==null||_e.handleOpen()},handleClose:()=>{var _e;(_e=ae.value)==null||_e.handleClose()}}),()=>{var _e;const Ce=(_e=$.format)!=null?_e:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps($,{ref:ae,type:ie,format:Ce,"onUpdate:modelValue":pe}),{default:$e=>createVNode(le,$e,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=$=>{$.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=($,oe)=>{const ae=$.subtract(1,"month").endOf("month").date();return rangeArr(oe).map((ie,le)=>ae-(oe-le-1))},getMonthDays=$=>{const oe=$.daysInMonth();return rangeArr(oe).map((ae,ie)=>ie+1)},toNestedArr=$=>rangeArr($.length/7).map(oe=>{const ae=oe*7;return $.slice(ae,ae+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:$=>isObject$8($)};var localeData$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie,le){var pe=ie.prototype,_e=function(Ne){return Ne&&(Ne.indexOf?Ne:Ne.s)},Ce=function(Ne,Fe,ze,At,Lt){var hn=Ne.name?Ne:Ne.$locale(),vn=_e(hn[Fe]),_n=_e(hn[ze]),bn=vn||_n.map(function(En){return En.slice(0,At)});if(!Lt)return bn;var Cn=hn.weekStart;return bn.map(function(En,$n){return bn[($n+(Cn||0))%7]})},$e=function(){return le.Ls[le.locale()]},xe=function(Ne,Fe){return Ne.formats[Fe]||function(ze){return ze.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(At,Lt,hn){return Lt||hn.slice(1)})}(Ne.formats[Fe.toUpperCase()])},Ie=function(){var Ne=this;return{months:function(Fe){return Fe?Fe.format("MMMM"):Ce(Ne,"months")},monthsShort:function(Fe){return Fe?Fe.format("MMM"):Ce(Ne,"monthsShort","months",3)},firstDayOfWeek:function(){return Ne.$locale().weekStart||0},weekdays:function(Fe){return Fe?Fe.format("dddd"):Ce(Ne,"weekdays")},weekdaysMin:function(Fe){return Fe?Fe.format("dd"):Ce(Ne,"weekdaysMin","weekdays",2)},weekdaysShort:function(Fe){return Fe?Fe.format("ddd"):Ce(Ne,"weekdaysShort","weekdays",3)},longDateFormat:function(Fe){return xe(Ne.$locale(),Fe)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};pe.localeData=function(){return Ie.bind(this)()},le.localeData=function(){var Ne=$e();return{firstDayOfWeek:function(){return Ne.weekStart||0},weekdays:function(){return le.weekdays()},weekdaysShort:function(){return le.weekdaysShort()},weekdaysMin:function(){return le.weekdaysMin()},months:function(){return le.months()},monthsShort:function(){return le.monthsShort()},longDateFormat:function(Fe){return xe(Ne,Fe)},meridiem:Ne.meridiem,ordinal:Ne.ordinal}},le.months=function(){return Ce($e(),"months")},le.monthsShort=function(){return Ce($e(),"monthsShort","months",3)},le.weekdays=function(Ne){return Ce($e(),"weekdays",null,null,Ne)},le.weekdaysShort=function(Ne){return Ce($e(),"weekdaysShort","weekdays",3,Ne)},le.weekdaysMin=function(Ne){return Ce($e(),"weekdaysMin","weekdays",2,Ne)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),useDateTable=($,oe)=>{dayjs.extend(localeData);const ae=dayjs.localeData().firstDayOfWeek(),{t:ie,lang:le}=useLocale(),pe=dayjs().locale(le.value),_e=computed(()=>!!$.range&&!!$.range.length),Ce=computed(()=>{let Fe=[];if(_e.value){const[ze,At]=$.range,Lt=rangeArr(At.date()-ze.date()+1).map(_n=>({text:ze.date()+_n,type:"current"}));let hn=Lt.length%7;hn=hn===0?0:7-hn;const vn=rangeArr(hn).map((_n,bn)=>({text:bn+1,type:"next"}));Fe=Lt.concat(vn)}else{const ze=$.date.startOf("month").day(),At=getPrevMonthLastDays($.date,(ze-ae+7)%7).map(_n=>({text:_n,type:"prev"})),Lt=getMonthDays($.date).map(_n=>({text:_n,type:"current"}));Fe=[...At,...Lt];const hn=7-(Fe.length%7||7),vn=rangeArr(hn).map((_n,bn)=>({text:bn+1,type:"next"}));Fe=Fe.concat(vn)}return toNestedArr(Fe)}),$e=computed(()=>{const Fe=ae;return Fe===0?WEEK_DAYS.map(ze=>ie(`el.datepicker.weeks.${ze}`)):WEEK_DAYS.slice(Fe).concat(WEEK_DAYS.slice(0,Fe)).map(ze=>ie(`el.datepicker.weeks.${ze}`))}),xe=(Fe,ze)=>{switch(ze){case"prev":return $.date.startOf("month").subtract(1,"month").date(Fe);case"next":return $.date.startOf("month").add(1,"month").date(Fe);case"current":return $.date.date(Fe)}};return{now:pe,isInRange:_e,rows:Ce,weekDays:$e,getFormattedDate:xe,handlePickDay:({text:Fe,type:ze})=>{const At=xe(Fe,ze);oe("pick",At)},getSlotData:({text:Fe,type:ze})=>{const At=xe(Fe,ze);return{isSelected:At.isSame($.selectedDay),type:`${ze}-month`,day:At.format("YYYY-MM-DD"),date:At.toDate()}}}},_hoisted_1$X={key:0},_hoisted_2$C=["onClick"],__default__$1f=defineComponent({name:"DateTable"}),_sfc_main$1T=defineComponent({...__default__$1f,props:dateTableProps,emits:dateTableEmits,setup($,{expose:oe,emit:ae}){const ie=$,{isInRange:le,now:pe,rows:_e,weekDays:Ce,getFormattedDate:$e,handlePickDay:xe,getSlotData:Ie}=useDateTable(ie,ae),Ne=useNamespace("calendar-table"),Fe=useNamespace("calendar-day"),ze=({text:At,type:Lt})=>{const hn=[Lt];if(Lt==="current"){const vn=$e(At,Lt);vn.isSame(ie.selectedDay,"day")&&hn.push(Fe.is("selected")),vn.isSame(pe,"day")&&hn.push(Fe.is("today"))}return hn};return oe({getFormattedDate:$e}),(At,Lt)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(Ne).b(),unref(Ne).is("range",unref(le))]),cellspacing:"0",cellpadding:"0"},[At.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$X,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ce),hn=>(openBlock(),createElementBlock("th",{key:hn},toDisplayString$1(hn),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(_e),(hn,vn)=>(openBlock(),createElementBlock("tr",{key:vn,class:normalizeClass({[unref(Ne).e("row")]:!0,[unref(Ne).em("row","hide-border")]:vn===0&&At.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(hn,(_n,bn)=>(openBlock(),createElementBlock("td",{key:bn,class:normalizeClass(ze(_n)),onClick:Cn=>unref(xe)(_n)},[createBaseVNode("div",{class:normalizeClass(unref(Fe).b())},[renderSlot(At.$slots,"date-cell",{data:unref(Ie)(_n)},()=>[createBaseVNode("span",null,toDisplayString$1(_n.text),1)])],2)],10,_hoisted_2$C))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc$1(_sfc_main$1T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const adjacentMonth=($,oe)=>{const ae=$.endOf("month"),ie=oe.startOf("month"),pe=ae.isSame(ie,"week")?ie.add(1,"week"):ie;return[[$,ae],[pe.startOf("week"),oe]]},threeConsecutiveMonth=($,oe)=>{const ae=$.endOf("month"),ie=$.add(1,"month").startOf("month"),le=ae.isSame(ie,"week")?ie.add(1,"week"):ie,pe=le.endOf("month"),_e=oe.startOf("month"),Ce=pe.isSame(_e,"week")?_e.add(1,"week"):_e;return[[$,ae],[le.startOf("week"),pe],[Ce.startOf("week"),oe]]},useCalendar=($,oe,ae)=>{const ie=useSlots(),{lang:le}=useLocale(),pe=ref(),_e=dayjs().locale(le.value),Ce=computed({get(){return $.modelValue?xe.value:pe.value},set(vn){if(!vn)return;pe.value=vn;const _n=vn.toDate();oe(INPUT_EVENT,_n),oe(UPDATE_MODEL_EVENT,_n)}}),$e=computed(()=>{if(!$.range)return[];const vn=$.range.map(Cn=>dayjs(Cn).locale(le.value)),[_n,bn]=vn;return _n.isAfter(bn)?[]:_n.isSame(bn,"month")?At(_n,bn):_n.add(1,"month").month()!==bn.month()?[]:At(_n,bn)}),xe=computed(()=>$.modelValue?dayjs($.modelValue).locale(le.value):Ce.value||($e.value.length?$e.value[0][0]:_e)),Ie=computed(()=>xe.value.subtract(1,"month").date(1)),Ne=computed(()=>xe.value.add(1,"month").date(1)),Fe=computed(()=>xe.value.subtract(1,"year").date(1)),ze=computed(()=>xe.value.add(1,"year").date(1)),At=(vn,_n)=>{const bn=vn.startOf("week"),Cn=_n.endOf("week"),En=bn.get("month"),$n=Cn.get("month");return En===$n?[[bn,Cn]]:(En+1)%12===$n?adjacentMonth(bn,Cn):En+2===$n||(En+1)%11===$n?threeConsecutiveMonth(bn,Cn):[]},Lt=vn=>{Ce.value=vn},hn=vn=>{const bn={"prev-month":Ie.value,"next-month":Ne.value,"prev-year":Fe.value,"next-year":ze.value,today:_e}[vn];bn.isSame(xe.value,"day")||Lt(bn)};return useDeprecated({from:'"dateCell"',replacement:'"date-cell"',scope:"ElCalendar",version:"2.3.0",ref:"https://element-plus.org/en-US/component/calendar.html#slots",type:"Slot"},computed(()=>!!ie.dateCell)),{calculateValidatedDateRange:At,date:xe,realSelectedDay:Ce,pickDay:Lt,selectDate:hn,validatedRange:$e}},isValidRange$1=$=>isArray$c($)&&$.length===2&&$.every(oe=>isDate$3(oe)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1}}),calendarEmits={[UPDATE_MODEL_EVENT]:$=>isDate$3($),[INPUT_EVENT]:$=>isDate$3($)},COMPONENT_NAME$g="ElCalendar",__default__$1e=defineComponent({name:COMPONENT_NAME$g}),_sfc_main$1S=defineComponent({...__default__$1e,props:calendarProps,emits:calendarEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("calendar"),{calculateValidatedDateRange:pe,date:_e,pickDay:Ce,realSelectedDay:$e,selectDate:xe,validatedRange:Ie}=useCalendar(ie,ae),{t:Ne}=useLocale(),Fe=computed(()=>{const ze=`el.datepicker.month${_e.value.format("M")}`;return`${_e.value.year()} ${Ne("el.datepicker.year")} ${Ne(ze)}`});return oe({selectedDay:$e,pickDay:Ce,selectDate:xe,calculateValidatedDateRange:pe}),(ze,At)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le).b())},[createBaseVNode("div",{class:normalizeClass(unref(le).e("header"))},[renderSlot(ze.$slots,"header",{date:unref(Fe)},()=>[createBaseVNode("div",{class:normalizeClass(unref(le).e("title"))},toDisplayString$1(unref(Fe)),3),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:At[0]||(At[0]=Lt=>unref(xe)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:At[1]||(At[1]=Lt=>unref(xe)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:At[2]||(At[2]=Lt=>unref(xe)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(Ie).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("body"))},[createVNode(DateTable$1,{date:unref(_e),"selected-day":unref($e),onPick:unref(Ce)},createSlots({_:2},[ze.$slots["date-cell"]||ze.$slots.dateCell?{name:"date-cell",fn:withCtx(Lt=>[ze.$slots["date-cell"]?renderSlot(ze.$slots,"date-cell",normalizeProps(mergeProps({key:0},Lt))):renderSlot(ze.$slots,"dateCell",normalizeProps(mergeProps({key:1},Lt)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(Lt,hn)=>(openBlock(),createBlock(DateTable$1,{key:hn,date:Lt[0],"selected-day":unref($e),range:Lt,"hide-header":hn!==0,onPick:unref(Ce)},createSlots({_:2},[ze.$slots["date-cell"]||ze.$slots.dateCell?{name:"date-cell",fn:withCtx(vn=>[ze.$slots["date-cell"]?renderSlot(ze.$slots,"date-cell",normalizeProps(mergeProps({key:0},vn))):renderSlot(ze.$slots,"dateCell",normalizeProps(mergeProps({key:1},vn)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Calendar=_export_sfc$1(_sfc_main$1S,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/calendar.vue"]]);const ElCalendar=withInstall(Calendar),cardProps=buildProps({header:{type:String,default:""},bodyStyle:{type:definePropType([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),__default__$1d=defineComponent({name:"ElCard"}),_sfc_main$1R=defineComponent({...__default__$1d,props:cardProps,setup($){const oe=useNamespace("card");return(ae,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(oe).is(`${ae.shadow}-shadow`)])},[ae.$slots.header||ae.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("header"))},[renderSlot(ae.$slots,"header",{},()=>[createTextVNode(toDisplayString$1(ae.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("body")),style:normalizeStyle$1(ae.bodyStyle)},[renderSlot(ae.$slots,"default")],6)],2))}});var Card=_export_sfc$1(_sfc_main$1R,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const ElCard=withInstall(Card),carouselProps=buildProps({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),carouselEmits={change:($,oe)=>[$,oe].every(isNumber$5)},carouselContextKey=Symbol("carouselContextKey"),THROTTLE_TIME=300,useCarousel=($,oe,ae)=>{const{children:ie,addChild:le,removeChild:pe}=useOrderedChildren(getCurrentInstance(),"ElCarouselItem"),_e=ref(-1),Ce=ref(null),$e=ref(!1),xe=ref(),Ie=computed(()=>$.arrow!=="never"&&!unref(ze)),Ne=computed(()=>ie.value.some(Bn=>Bn.props.label.toString().length>0)),Fe=computed(()=>$.type==="card"),ze=computed(()=>$.direction==="vertical"),At=throttle$1(Bn=>{bn(Bn)},THROTTLE_TIME,{trailing:!0}),Lt=throttle$1(Bn=>{An(Bn)},THROTTLE_TIME);function hn(){Ce.value&&(clearInterval(Ce.value),Ce.value=null)}function vn(){$.interval<=0||!$.autoplay||Ce.value||(Ce.value=setInterval(()=>_n(),$.interval))}const _n=()=>{_e.value<ie.value.length-1?_e.value=_e.value+1:$.loop&&(_e.value=0)};function bn(Bn){if(isString$7(Bn)){const Vn=ie.value.filter(jn=>jn.props.name===Bn);Vn.length>0&&(Bn=ie.value.indexOf(Vn[0]))}if(Bn=Number(Bn),Number.isNaN(Bn)||Bn!==Math.floor(Bn))return;const Mn=ie.value.length,Fn=_e.value;Bn<0?_e.value=$.loop?Mn-1:0:Bn>=Mn?_e.value=$.loop?0:Mn-1:_e.value=Bn,Fn===_e.value&&Cn(Fn),Rn()}function Cn(Bn){ie.value.forEach((Mn,Fn)=>{Mn.translateItem(Fn,_e.value,Bn)})}function En(Bn,Mn){var Fn,Vn,jn,Zn;const Gn=unref(ie),Xn=Gn.length;if(Xn===0||!Bn.states.inStage)return!1;const cr=Mn+1,nr=Mn-1,er=Xn-1,rr=Gn[er].states.active,qn=Gn[0].states.active,Yn=(Vn=(Fn=Gn[cr])==null?void 0:Fn.states)==null?void 0:Vn.active,ar=(Zn=(jn=Gn[nr])==null?void 0:jn.states)==null?void 0:Zn.active;return Mn===er&&qn||Yn?"left":Mn===0&&rr||ar?"right":!1}function $n(){$e.value=!0,$.pauseOnHover&&hn()}function wn(){$e.value=!1,vn()}function Tn(Bn){unref(ze)||ie.value.forEach((Mn,Fn)=>{Bn===En(Mn,Fn)&&(Mn.states.hover=!0)})}function xn(){unref(ze)||ie.value.forEach(Bn=>{Bn.states.hover=!1})}function kn(Bn){_e.value=Bn}function An(Bn){$.trigger==="hover"&&Bn!==_e.value&&(_e.value=Bn)}function On(){bn(_e.value-1)}function Nn(){bn(_e.value+1)}function Rn(){hn(),vn()}watch(()=>_e.value,(Bn,Mn)=>{Cn(Mn),Mn>-1&&oe("change",Bn,Mn)}),watch(()=>$.autoplay,Bn=>{Bn?vn():hn()}),watch(()=>$.loop,()=>{bn(_e.value)}),watch(()=>$.interval,()=>{Rn()}),watch(()=>ie.value,()=>{ie.value.length>0&&bn($.initialIndex)});const zn=shallowRef();return onMounted(()=>{zn.value=useResizeObserver(xe.value,()=>{Cn()}),vn()}),onBeforeUnmount(()=>{hn(),xe.value&&zn.value&&zn.value.stop()}),provide(carouselContextKey,{root:xe,isCardType:Fe,isVertical:ze,items:ie,loop:$.loop,addItem:le,removeItem:pe,setActiveItem:bn}),{root:xe,activeIndex:_e,arrowDisplay:Ie,hasLabel:Ne,hover:$e,isCardType:Fe,items:ie,handleButtonEnter:Tn,handleButtonLeave:xn,handleIndicatorClick:kn,handleMouseEnter:$n,handleMouseLeave:wn,setActiveItem:bn,prev:On,next:Nn,throttledArrowClick:At,throttledIndicatorHover:Lt}},_hoisted_1$W=["onMouseenter","onClick"],_hoisted_2$B={key:0},COMPONENT_NAME$f="ElCarousel",__default__$1c=defineComponent({name:COMPONENT_NAME$f}),_sfc_main$1Q=defineComponent({...__default__$1c,props:carouselProps,emits:carouselEmits,setup($,{expose:oe,emit:ae}){const ie=$,{root:le,activeIndex:pe,arrowDisplay:_e,hasLabel:Ce,hover:$e,isCardType:xe,items:Ie,handleButtonEnter:Ne,handleButtonLeave:Fe,handleIndicatorClick:ze,handleMouseEnter:At,handleMouseLeave:Lt,setActiveItem:hn,prev:vn,next:_n,throttledArrowClick:bn,throttledIndicatorHover:Cn}=useCarousel(ie,ae),En=useNamespace("carousel"),$n=computed(()=>{const Tn=[En.b(),En.m(ie.direction)];return unref(xe)&&Tn.push(En.m("card")),Tn}),wn=computed(()=>{const Tn=[En.e("indicators"),En.em("indicators",ie.direction)];return unref(Ce)&&Tn.push(En.em("indicators","labels")),(ie.indicatorPosition==="outside"||unref(xe))&&Tn.push(En.em("indicators","outside")),Tn});return oe({setActiveItem:hn,prev:vn,next:_n}),(Tn,xn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:le,class:normalizeClass(unref($n)),onMouseenter:xn[6]||(xn[6]=withModifiers((...kn)=>unref(At)&&unref(At)(...kn),["stop"])),onMouseleave:xn[7]||(xn[7]=withModifiers((...kn)=>unref(Lt)&&unref(Lt)(...kn),["stop"]))},[createBaseVNode("div",{class:normalizeClass(unref(En).e("container")),style:normalizeStyle$1({height:Tn.height})},[unref(_e)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(En).e("arrow"),unref(En).em("arrow","left")]),onMouseenter:xn[0]||(xn[0]=kn=>unref(Ne)("left")),onMouseleave:xn[1]||(xn[1]=(...kn)=>unref(Fe)&&unref(Fe)(...kn)),onClick:xn[2]||(xn[2]=withModifiers(kn=>unref(bn)(unref(pe)-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],34),[[vShow,(Tn.arrow==="always"||unref($e))&&(ie.loop||unref(pe)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(_e)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(En).e("arrow"),unref(En).em("arrow","right")]),onMouseenter:xn[3]||(xn[3]=kn=>unref(Ne)("right")),onMouseleave:xn[4]||(xn[4]=(...kn)=>unref(Fe)&&unref(Fe)(...kn)),onClick:xn[5]||(xn[5]=withModifiers(kn=>unref(bn)(unref(pe)+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],34),[[vShow,(Tn.arrow==="always"||unref($e))&&(ie.loop||unref(pe)<unref(Ie).length-1)]])]),_:1})):createCommentVNode("v-if",!0),renderSlot(Tn.$slots,"default")],6),Tn.indicatorPosition!=="none"?(openBlock(),createElementBlock("ul",{key:0,class:normalizeClass(unref(wn))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(kn,An)=>(openBlock(),createElementBlock("li",{key:An,class:normalizeClass([unref(En).e("indicator"),unref(En).em("indicator",Tn.direction),unref(En).is("active",An===unref(pe))]),onMouseenter:On=>unref(Cn)(An),onClick:withModifiers(On=>unref(ze)(An),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(En).e("button"))},[unref(Ce)?(openBlock(),createElementBlock("span",_hoisted_2$B,toDisplayString$1(kn.props.label),1)):createCommentVNode("v-if",!0)],2)],42,_hoisted_1$W))),128))],2)):createCommentVNode("v-if",!0)],34))}});var Carousel=_export_sfc$1(_sfc_main$1Q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const carouselItemProps=buildProps({name:{type:String,default:""},label:{type:[String,Number],default:""}}),useCarouselItem=($,oe)=>{const ae=inject(carouselContextKey),ie=getCurrentInstance(),le=.83,pe=ref(!1),_e=ref(0),Ce=ref(1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Ne=ref(!1),{isCardType:Fe,isVertical:ze}=ae;function At(bn,Cn,En){const $n=En-1,wn=Cn-1,Tn=Cn+1,xn=En/2;return Cn===0&&bn===$n?-1:Cn===$n&&bn===0?En:bn<wn&&Cn-bn>=xn?En+1:bn>Tn&&bn-Cn>=xn?-2:bn}function Lt(bn,Cn){var En;const $n=((En=ae.root.value)==null?void 0:En.offsetWidth)||0;return Ie.value?$n*((2-le)*(bn-Cn)+1)/4:bn<Cn?-(1+le)*$n/4:(3+le)*$n/4}function hn(bn,Cn,En){const $n=ae.root.value;return $n?((En?$n.offsetHeight:$n.offsetWidth)||0)*(bn-Cn):0}const vn=(bn,Cn,En)=>{var $n;const wn=unref(Fe),Tn=($n=ae.items.value.length)!=null?$n:Number.NaN,xn=bn===Cn;!wn&&!isUndefined$1(En)&&(Ne.value=xn||bn===En),!xn&&Tn>2&&ae.loop&&(bn=At(bn,Cn,Tn));const kn=unref(ze);$e.value=xn,wn?(Ie.value=Math.round(Math.abs(bn-Cn))<=1,_e.value=Lt(bn,Cn),Ce.value=unref($e)?1:le):_e.value=hn(bn,Cn,kn),xe.value=!0};function _n(){if(ae&&unref(Fe)){const bn=ae.items.value.findIndex(({uid:Cn})=>Cn===ie.uid);ae.setActiveItem(bn)}}return onMounted(()=>{ae.addItem({props:$,states:reactive({hover:pe,translate:_e,scale:Ce,active:$e,ready:xe,inStage:Ie,animating:Ne}),uid:ie.uid,translateItem:vn})}),onUnmounted(()=>{ae.removeItem(ie.uid)}),{active:$e,animating:Ne,hover:pe,inStage:Ie,isVertical:ze,translate:_e,isCardType:Fe,scale:Ce,ready:xe,handleItemClick:_n}},__default__$1b=defineComponent({name:"ElCarouselItem"}),_sfc_main$1P=defineComponent({...__default__$1b,props:carouselItemProps,setup($){const oe=$,ae=useNamespace("carousel"),{active:ie,animating:le,hover:pe,inStage:_e,isVertical:Ce,translate:$e,isCardType:xe,scale:Ie,ready:Ne,handleItemClick:Fe}=useCarouselItem(oe),ze=computed(()=>{const Lt=`${`translate${unref(Ce)?"Y":"X"}`}(${unref($e)}px)`,hn=`scale(${unref(Ie)})`;return{transform:[Lt,hn].join(" ")}});return(At,Lt)=>withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).e("item"),unref(ae).is("active",unref(ie)),unref(ae).is("in-stage",unref(_e)),unref(ae).is("hover",unref(pe)),unref(ae).is("animating",unref(le)),{[unref(ae).em("item","card")]:unref(xe)}]),style:normalizeStyle$1(unref(ze)),onClick:Lt[0]||(Lt[0]=(...hn)=>unref(Fe)&&unref(Fe)(...hn))},[unref(xe)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("mask"))},null,2)),[[vShow,!unref(ie)]]):createCommentVNode("v-if",!0),renderSlot(At.$slots,"default")],6)),[[vShow,unref(Ne)]])}});var CarouselItem=_export_sfc$1(_sfc_main$1P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const ElCarousel=withInstall(Carousel,{CarouselItem}),ElCarouselItem=withNoopInstall(CarouselItem),checkboxProps={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object]},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:useSizeProp,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0}},checkboxEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),change:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:$,isChecked:oe})=>{const ae=inject(checkboxGroupContextKey,void 0),ie=computed(()=>{var pe,_e;const Ce=(pe=ae==null?void 0:ae.max)==null?void 0:pe.value,$e=(_e=ae==null?void 0:ae.min)==null?void 0:_e.value;return!isUndefined$1(Ce)&&$.value.length>=Ce&&!oe.value||!isUndefined$1($e)&&$.value.length<=$e&&oe.value});return{isDisabled:useFormDisabled(computed(()=>(ae==null?void 0:ae.disabled.value)||ie.value)),isLimitDisabled:ie}},useCheckboxEvent=($,{model:oe,isLimitExceeded:ae,hasOwnLabel:ie,isDisabled:le,isLabeledByFormItem:pe})=>{const _e=inject(checkboxGroupContextKey,void 0),{formItem:Ce}=useFormItem(),{emit:$e}=getCurrentInstance();function xe(At){var Lt,hn;return At===$.trueLabel||At===!0?(Lt=$.trueLabel)!=null?Lt:!0:(hn=$.falseLabel)!=null?hn:!1}function Ie(At,Lt){$e("change",xe(At),Lt)}function Ne(At){if(ae.value)return;const Lt=At.target;$e("change",xe(Lt.checked),At)}async function Fe(At){ae.value||!ie.value&&!le.value&&pe.value&&(At.composedPath().some(vn=>vn.tagName==="LABEL")||(oe.value=xe([!1,$.falseLabel].includes(oe.value)),await nextTick(),Ie(oe.value,At)))}const ze=computed(()=>(_e==null?void 0:_e.validateEvent)||$.validateEvent);return watch(()=>$.modelValue,()=>{ze.value&&(Ce==null||Ce.validate("change").catch(At=>void 0))}),{handleChange:Ne,onClickRoot:Fe}},useCheckboxModel=$=>{const oe=ref(!1),{emit:ae}=getCurrentInstance(),ie=inject(checkboxGroupContextKey,void 0),le=computed(()=>isUndefined$1(ie)===!1),pe=ref(!1);return{model:computed({get(){var Ce,$e;return le.value?(Ce=ie==null?void 0:ie.modelValue)==null?void 0:Ce.value:($e=$.modelValue)!=null?$e:oe.value},set(Ce){var $e,xe;le.value&&isArray$c(Ce)?(pe.value=(($e=ie==null?void 0:ie.max)==null?void 0:$e.value)!==void 0&&Ce.length>(ie==null?void 0:ie.max.value),pe.value===!1&&((xe=ie==null?void 0:ie.changeEvent)==null||xe.call(ie,Ce))):(ae(UPDATE_MODEL_EVENT,Ce),oe.value=Ce)}}),isGroup:le,isLimitExceeded:pe}},useCheckboxStatus=($,oe,{model:ae})=>{const ie=inject(checkboxGroupContextKey,void 0),le=ref(!1),pe=computed(()=>{const xe=ae.value;return isBoolean$3(xe)?xe:isArray$c(xe)?isObject$8($.label)?xe.map(toRaw).some(Ie=>isEqual$1(Ie,$.label)):xe.map(toRaw).includes($.label):xe!=null?xe===$.trueLabel:!!xe}),_e=useFormSize(computed(()=>{var xe;return(xe=ie==null?void 0:ie.size)==null?void 0:xe.value}),{prop:!0}),Ce=useFormSize(computed(()=>{var xe;return(xe=ie==null?void 0:ie.size)==null?void 0:xe.value})),$e=computed(()=>!!(oe.default||$.label));return{checkboxButtonSize:_e,isChecked:pe,isFocused:le,checkboxSize:Ce,hasOwnLabel:$e}},setStoreValue=($,{model:oe})=>{function ae(){isArray$c(oe.value)&&!oe.value.includes($.label)?oe.value.push($.label):oe.value=$.trueLabel||!0}$.checked&&ae()},useCheckbox=($,oe)=>{const{formItem:ae}=useFormItem(),{model:ie,isGroup:le,isLimitExceeded:pe}=useCheckboxModel($),{isFocused:_e,isChecked:Ce,checkboxButtonSize:$e,checkboxSize:xe,hasOwnLabel:Ie}=useCheckboxStatus($,oe,{model:ie}),{isDisabled:Ne}=useCheckboxDisabled({model:ie,isChecked:Ce}),{inputId:Fe,isLabeledByFormItem:ze}=useFormItemInputId($,{formItemContext:ae,disableIdGeneration:Ie,disableIdManagement:le}),{handleChange:At,onClickRoot:Lt}=useCheckboxEvent($,{model:ie,isLimitExceeded:pe,hasOwnLabel:Ie,isDisabled:Ne,isLabeledByFormItem:ze});return setStoreValue($,{model:ie}),{inputId:Fe,isLabeledByFormItem:ze,isChecked:Ce,isDisabled:Ne,isFocused:_e,checkboxButtonSize:$e,checkboxSize:xe,hasOwnLabel:Ie,model:ie,handleChange:At,onClickRoot:Lt}},_hoisted_1$V=["tabindex","role","aria-checked"],_hoisted_2$A=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$k=["id","aria-hidden","disabled","value","name","tabindex"],__default__$1a=defineComponent({name:"ElCheckbox"}),_sfc_main$1O=defineComponent({...__default__$1a,props:checkboxProps,emits:checkboxEmits,setup($){const oe=$,ae=useSlots(),{inputId:ie,isLabeledByFormItem:le,isChecked:pe,isDisabled:_e,isFocused:Ce,checkboxSize:$e,hasOwnLabel:xe,model:Ie,handleChange:Ne,onClickRoot:Fe}=useCheckbox(oe,ae),ze=useNamespace("checkbox"),At=computed(()=>[ze.b(),ze.m($e.value),ze.is("disabled",_e.value),ze.is("bordered",oe.border),ze.is("checked",pe.value)]),Lt=computed(()=>[ze.e("input"),ze.is("disabled",_e.value),ze.is("checked",pe.value),ze.is("indeterminate",oe.indeterminate),ze.is("focus",Ce.value)]);return(hn,vn)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(xe)&&unref(le)?"span":"label"),{class:normalizeClass(unref(At)),"aria-controls":hn.indeterminate?hn.controls:null,onClick:unref(Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(Lt)),tabindex:hn.indeterminate?0:void 0,role:hn.indeterminate?"checkbox":void 0,"aria-checked":hn.indeterminate?"mixed":void 0},[hn.trueLabel||hn.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(ie),"onUpdate:modelValue":vn[0]||(vn[0]=_n=>isRef(Ie)?Ie.value=_n:null),class:normalizeClass(unref(ze).e("original")),type:"checkbox","aria-hidden":hn.indeterminate?"true":"false",name:hn.name,tabindex:hn.tabindex,disabled:unref(_e),"true-value":hn.trueLabel,"false-value":hn.falseLabel,onChange:vn[1]||(vn[1]=(..._n)=>unref(Ne)&&unref(Ne)(..._n)),onFocus:vn[2]||(vn[2]=_n=>Ce.value=!0),onBlur:vn[3]||(vn[3]=_n=>Ce.value=!1)},null,42,_hoisted_2$A)),[[vModelCheckbox,unref(Ie)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(ie),"onUpdate:modelValue":vn[4]||(vn[4]=_n=>isRef(Ie)?Ie.value=_n:null),class:normalizeClass(unref(ze).e("original")),type:"checkbox","aria-hidden":hn.indeterminate?"true":"false",disabled:unref(_e),value:hn.label,name:hn.name,tabindex:hn.tabindex,onChange:vn[5]||(vn[5]=(..._n)=>unref(Ne)&&unref(Ne)(..._n)),onFocus:vn[6]||(vn[6]=_n=>Ce.value=!0),onBlur:vn[7]||(vn[7]=_n=>Ce.value=!1)},null,42,_hoisted_3$k)),[[vModelCheckbox,unref(Ie)]]),createBaseVNode("span",{class:normalizeClass(unref(ze).e("inner"))},null,2)],10,_hoisted_1$V),unref(xe)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ze).e("label"))},[renderSlot(hn.$slots,"default"),hn.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(hn.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Checkbox=_export_sfc$1(_sfc_main$1O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$U=["name","tabindex","disabled","true-value","false-value"],_hoisted_2$z=["name","tabindex","disabled","value"],__default__$19=defineComponent({name:"ElCheckboxButton"}),_sfc_main$1N=defineComponent({...__default__$19,props:checkboxProps,emits:checkboxEmits,setup($){const oe=$,ae=useSlots(),{isFocused:ie,isChecked:le,isDisabled:pe,checkboxButtonSize:_e,model:Ce,handleChange:$e}=useCheckbox(oe,ae),xe=inject(checkboxGroupContextKey,void 0),Ie=useNamespace("checkbox"),Ne=computed(()=>{var ze,At,Lt,hn;const vn=(At=(ze=xe==null?void 0:xe.fill)==null?void 0:ze.value)!=null?At:"";return{backgroundColor:vn,borderColor:vn,color:(hn=(Lt=xe==null?void 0:xe.textColor)==null?void 0:Lt.value)!=null?hn:"",boxShadow:vn?`-1px 0 0 0 ${vn}`:void 0}}),Fe=computed(()=>[Ie.b("button"),Ie.bm("button",_e.value),Ie.is("disabled",pe.value),Ie.is("checked",le.value),Ie.is("focus",ie.value)]);return(ze,At)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref(Fe))},[ze.trueLabel||ze.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":At[0]||(At[0]=Lt=>isRef(Ce)?Ce.value=Lt:null),class:normalizeClass(unref(Ie).be("button","original")),type:"checkbox",name:ze.name,tabindex:ze.tabindex,disabled:unref(pe),"true-value":ze.trueLabel,"false-value":ze.falseLabel,onChange:At[1]||(At[1]=(...Lt)=>unref($e)&&unref($e)(...Lt)),onFocus:At[2]||(At[2]=Lt=>ie.value=!0),onBlur:At[3]||(At[3]=Lt=>ie.value=!1)},null,42,_hoisted_1$U)),[[vModelCheckbox,unref(Ce)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":At[4]||(At[4]=Lt=>isRef(Ce)?Ce.value=Lt:null),class:normalizeClass(unref(Ie).be("button","original")),type:"checkbox",name:ze.name,tabindex:ze.tabindex,disabled:unref(pe),value:ze.label,onChange:At[5]||(At[5]=(...Lt)=>unref($e)&&unref($e)(...Lt)),onFocus:At[6]||(At[6]=Lt=>ie.value=!0),onBlur:At[7]||(At[7]=Lt=>ie.value=!1)},null,42,_hoisted_2$z)),[[vModelCheckbox,unref(Ce)]]),ze.$slots.default||ze.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(Ie).be("button","inner")),style:normalizeStyle$1(unref(le)?unref(Ne):void 0)},[renderSlot(ze.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(ze.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc$1(_sfc_main$1N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-button.vue"]]);const checkboxGroupProps=buildProps({modelValue:{type:definePropType(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:useSizeProp,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0}}),checkboxGroupEmits={[UPDATE_MODEL_EVENT]:$=>isArray$c($),change:$=>isArray$c($)},__default__$18=defineComponent({name:"ElCheckboxGroup"}),_sfc_main$1M=defineComponent({...__default__$18,props:checkboxGroupProps,emits:checkboxGroupEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("checkbox"),{formItem:le}=useFormItem(),{inputId:pe,isLabeledByFormItem:_e}=useFormItemInputId(ae,{formItemContext:le}),Ce=async xe=>{oe(UPDATE_MODEL_EVENT,xe),await nextTick(),oe("change",xe)},$e=computed({get(){return ae.modelValue},set(xe){Ce(xe)}});return provide(checkboxGroupContextKey,{...pick$1(toRefs(ae),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:$e,changeEvent:Ce}),watch(()=>ae.modelValue,()=>{ae.validateEvent&&(le==null||le.validate("change").catch(xe=>void 0))}),(xe,Ie)=>{var Ne;return openBlock(),createBlock(resolveDynamicComponent(xe.tag),{id:unref(pe),class:normalizeClass(unref(ie).b("group")),role:"group","aria-label":unref(_e)?void 0:xe.label||"checkbox-group","aria-labelledby":unref(_e)?(Ne=unref(le))==null?void 0:Ne.labelId:void 0},{default:withCtx(()=>[renderSlot(xe.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc$1(_sfc_main$1M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox-group.vue"]]);const ElCheckbox=withInstall(Checkbox,{CheckboxButton,CheckboxGroup}),ElCheckboxButton=withNoopInstall(CheckboxButton),ElCheckboxGroup$1=withNoopInstall(CheckboxGroup),radioPropsBase=buildProps({size:useSizeProp,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),radioProps=buildProps({...radioPropsBase,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),radioEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($),[CHANGE_EVENT]:$=>isString$7($)||isNumber$5($)||isBoolean$3($)},radioGroupKey=Symbol("radioGroupKey"),useRadio=($,oe)=>{const ae=ref(),ie=inject(radioGroupKey,void 0),le=computed(()=>!!ie),pe=computed({get(){return le.value?ie.modelValue:$.modelValue},set(Ie){le.value?ie.changeEvent(Ie):oe&&oe(UPDATE_MODEL_EVENT,Ie),ae.value.checked=$.modelValue===$.label}}),_e=useFormSize(computed(()=>ie==null?void 0:ie.size)),Ce=useFormDisabled(computed(()=>ie==null?void 0:ie.disabled)),$e=ref(!1),xe=computed(()=>Ce.value||le.value&&pe.value!==$.label?-1:0);return{radioRef:ae,isGroup:le,radioGroup:ie,focus:$e,size:_e,disabled:Ce,tabIndex:xe,modelValue:pe}},_hoisted_1$T=["value","name","disabled"],__default__$17=defineComponent({name:"ElRadio"}),_sfc_main$1L=defineComponent({...__default__$17,props:radioProps,emits:radioEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("radio"),{radioRef:le,radioGroup:pe,focus:_e,size:Ce,disabled:$e,modelValue:xe}=useRadio(ae,oe);function Ie(){nextTick(()=>oe("change",xe.value))}return(Ne,Fe)=>{var ze;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ie).b(),unref(ie).is("disabled",unref($e)),unref(ie).is("focus",unref(_e)),unref(ie).is("bordered",Ne.border),unref(ie).is("checked",unref(xe)===Ne.label),unref(ie).m(unref(Ce))])},[createBaseVNode("span",{class:normalizeClass([unref(ie).e("input"),unref(ie).is("disabled",unref($e)),unref(ie).is("checked",unref(xe)===Ne.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:le,"onUpdate:modelValue":Fe[0]||(Fe[0]=At=>isRef(xe)?xe.value=At:null),class:normalizeClass(unref(ie).e("original")),value:Ne.label,name:Ne.name||((ze=unref(pe))==null?void 0:ze.name),disabled:unref($e),type:"radio",onFocus:Fe[1]||(Fe[1]=At=>_e.value=!0),onBlur:Fe[2]||(Fe[2]=At=>_e.value=!1),onChange:Ie},null,42,_hoisted_1$T),[[vModelRadio,unref(xe)]]),createBaseVNode("span",{class:normalizeClass(unref(ie).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(ie).e("label")),onKeydown:Fe[3]||(Fe[3]=withModifiers(()=>{},["stop"]))},[renderSlot(Ne.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ne.label),1)])],34)],2)}}});var Radio=_export_sfc$1(_sfc_main$1L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase,name:{type:String,default:""}}),_hoisted_1$S=["value","name","disabled"],__default__$16=defineComponent({name:"ElRadioButton"}),_sfc_main$1K=defineComponent({...__default__$16,props:radioButtonProps,setup($){const oe=$,ae=useNamespace("radio"),{radioRef:ie,focus:le,size:pe,disabled:_e,modelValue:Ce,radioGroup:$e}=useRadio(oe),xe=computed(()=>({backgroundColor:($e==null?void 0:$e.fill)||"",borderColor:($e==null?void 0:$e.fill)||"",boxShadow:$e!=null&&$e.fill?`-1px 0 0 0 ${$e.fill}`:"",color:($e==null?void 0:$e.textColor)||""}));return(Ie,Ne)=>{var Fe;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(ae).b("button"),unref(ae).is("active",unref(Ce)===Ie.label),unref(ae).is("disabled",unref(_e)),unref(ae).is("focus",unref(le)),unref(ae).bm("button",unref(pe))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:ie,"onUpdate:modelValue":Ne[0]||(Ne[0]=ze=>isRef(Ce)?Ce.value=ze:null),class:normalizeClass(unref(ae).be("button","original-radio")),value:Ie.label,type:"radio",name:Ie.name||((Fe=unref($e))==null?void 0:Fe.name),disabled:unref(_e),onFocus:Ne[1]||(Ne[1]=ze=>le.value=!0),onBlur:Ne[2]||(Ne[2]=ze=>le.value=!1)},null,42,_hoisted_1$S),[[vModelRadio,unref(Ce)]]),createBaseVNode("span",{class:normalizeClass(unref(ae).be("button","inner")),style:normalizeStyle$1(unref(Ce)===Ie.label?unref(xe):{}),onKeydown:Ne[3]||(Ne[3]=withModifiers(()=>{},["stop"]))},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.label),1)])],38)],2)}}});var RadioButton=_export_sfc$1(_sfc_main$1K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const radioGroupProps=buildProps({id:{type:String,default:void 0},size:useSizeProp,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),radioGroupEmits=radioEmits,_hoisted_1$R=["id","aria-label","aria-labelledby"],__default__$15=defineComponent({name:"ElRadioGroup"}),_sfc_main$1J=defineComponent({...__default__$15,props:radioGroupProps,emits:radioGroupEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("radio"),le=useId(),pe=ref(),{formItem:_e}=useFormItem(),{inputId:Ce,isLabeledByFormItem:$e}=useFormItemInputId(ae,{formItemContext:_e}),xe=Ne=>{oe(UPDATE_MODEL_EVENT,Ne),nextTick(()=>oe("change",Ne))};onMounted(()=>{const Ne=pe.value.querySelectorAll("[type=radio]"),Fe=Ne[0];!Array.from(Ne).some(ze=>ze.checked)&&Fe&&(Fe.tabIndex=0)});const Ie=computed(()=>ae.name||le.value);return provide(radioGroupKey,reactive({...toRefs(ae),changeEvent:xe,name:Ie})),watch(()=>ae.modelValue,()=>{ae.validateEvent&&(_e==null||_e.validate("change").catch(Ne=>void 0))}),(Ne,Fe)=>(openBlock(),createElementBlock("div",{id:unref(Ce),ref_key:"radioGroupRef",ref:pe,class:normalizeClass(unref(ie).b("group")),role:"radiogroup","aria-label":unref($e)?void 0:Ne.label||"radio-group","aria-labelledby":unref($e)?unref(_e).labelId:void 0},[renderSlot(Ne.$slots,"default")],10,_hoisted_1$R))}});var RadioGroup=_export_sfc$1(_sfc_main$1J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);const ElRadio=withInstall(Radio,{RadioButton,RadioGroup}),ElRadioGroup=withNoopInstall(RadioGroup),ElRadioButton=withNoopInstall(RadioButton);var NodeContent$1=defineComponent({name:"NodeContent",setup(){return{ns:useNamespace("cascader-node")}},render(){const{ns:$}=this,{node:oe,panel:ae}=this.$parent,{data:ie,label:le}=oe,{renderLabelFn:pe}=ae;return h$3("span",{class:$.e("label")},pe?pe({node:oe,data:ie}):le)}});const CASCADER_PANEL_INJECTION_KEY=Symbol(),_sfc_main$1I=defineComponent({name:"ElCascaderNode",components:{ElCheckbox,ElRadio,NodeContent:NodeContent$1,ElIcon,Check:check_default,Loading:loading_default,ArrowRight:arrow_right_default},props:{node:{type:Object,required:!0},menuId:String},emits:["expand"],setup($,{emit:oe}){const ae=inject(CASCADER_PANEL_INJECTION_KEY),ie=useNamespace("cascader-node"),le=computed(()=>ae.isHoverMenu),pe=computed(()=>ae.config.multiple),_e=computed(()=>ae.config.checkStrictly),Ce=computed(()=>{var $n;return($n=ae.checkedNodes[0])==null?void 0:$n.uid}),$e=computed(()=>$.node.isDisabled),xe=computed(()=>$.node.isLeaf),Ie=computed(()=>_e.value&&!xe.value||!$e.value),Ne=computed(()=>ze(ae.expandingNode)),Fe=computed(()=>_e.value&&ae.checkedNodes.some(ze)),ze=$n=>{var wn;const{level:Tn,uid:xn}=$.node;return((wn=$n==null?void 0:$n.pathNodes[Tn-1])==null?void 0:wn.uid)===xn},At=()=>{Ne.value||ae.expandNode($.node)},Lt=$n=>{const{node:wn}=$;$n!==wn.checked&&ae.handleCheckChange(wn,$n)},hn=()=>{ae.lazyLoad($.node,()=>{xe.value||At()})},vn=$n=>{le.value&&(_n(),!xe.value&&oe("expand",$n))},_n=()=>{const{node:$n}=$;!Ie.value||$n.loading||($n.loaded?At():hn())},bn=()=>{le.value&&!xe.value||(xe.value&&!$e.value&&!_e.value&&!pe.value?En(!0):_n())},Cn=$n=>{_e.value?(Lt($n),$.node.loaded&&At()):En($n)},En=$n=>{$.node.loaded?(Lt($n),!_e.value&&At()):hn()};return{panel:ae,isHoverMenu:le,multiple:pe,checkStrictly:_e,checkedNodeId:Ce,isDisabled:$e,isLeaf:xe,expandable:Ie,inExpandingPath:Ne,inCheckedPath:Fe,ns:ie,handleHoverExpand:vn,handleExpand:_n,handleClick:bn,handleCheck:En,handleSelectCheck:Cn}}}),_hoisted_1$Q=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$y=createBaseVNode("span",null,null,-1);function _sfc_render$v($,oe,ae,ie,le,pe){const _e=resolveComponent("el-checkbox"),Ce=resolveComponent("el-radio"),$e=resolveComponent("check"),xe=resolveComponent("el-icon"),Ie=resolveComponent("node-content"),Ne=resolveComponent("loading"),Fe=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${$.menuId}-${$.node.uid}`,role:"menuitem","aria-haspopup":!$.isLeaf,"aria-owns":$.isLeaf?null:$.menuId,"aria-expanded":$.inExpandingPath,tabindex:$.expandable?-1:void 0,class:normalizeClass([$.ns.b(),$.ns.is("selectable",$.checkStrictly),$.ns.is("active",$.node.checked),$.ns.is("disabled",!$.expandable),$.inExpandingPath&&"in-active-path",$.inCheckedPath&&"in-checked-path"]),onMouseenter:oe[2]||(oe[2]=(...ze)=>$.handleHoverExpand&&$.handleHoverExpand(...ze)),onFocus:oe[3]||(oe[3]=(...ze)=>$.handleHoverExpand&&$.handleHoverExpand(...ze)),onClick:oe[4]||(oe[4]=(...ze)=>$.handleClick&&$.handleClick(...ze))},[createCommentVNode(" prefix "),$.multiple?(openBlock(),createBlock(_e,{key:0,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:$.isDisabled,onClick:oe[0]||(oe[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":$.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):$.checkStrictly?(openBlock(),createBlock(Ce,{key:1,"model-value":$.checkedNodeId,label:$.node.uid,disabled:$.isDisabled,"onUpdate:modelValue":$.handleSelectCheck,onClick:oe[1]||(oe[1]=withModifiers(()=>{},["stop"]))},{default:withCtx(()=>[createCommentVNode(`
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),_hoisted_2$y]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):$.isLeaf&&$.node.checked?(openBlock(),createBlock(xe,{key:2,class:normalizeClass($.ns.e("prefix"))},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(Ie),createCommentVNode(" postfix "),$.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[$.node.loading?(openBlock(),createBlock(xe,{key:0,class:normalizeClass([$.ns.is("loading"),$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Ne)]),_:1},8,["class"])):(openBlock(),createBlock(xe,{key:1,class:normalizeClass(["arrow-right",$.ns.e("postfix")])},{default:withCtx(()=>[createVNode(Fe)]),_:1},8,["class"]))],64))],42,_hoisted_1$Q)}var ElCascaderNode=_export_sfc$1(_sfc_main$1I,[["render",_sfc_render$v],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$1H=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup($){const oe=getCurrentInstance(),ae=useNamespace("cascader-menu"),{t:ie}=useLocale(),le=generateId();let pe=null,_e=null;const Ce=inject(CASCADER_PANEL_INJECTION_KEY),$e=ref(null),xe=computed(()=>!$.nodes.length),Ie=computed(()=>!Ce.initialLoaded),Ne=computed(()=>`cascader-menu-${le}-${$.index}`),Fe=hn=>{pe=hn.target},ze=hn=>{if(!(!Ce.isHoverMenu||!pe||!$e.value))if(pe.contains(hn.target)){At();const vn=oe.vnode.el,{left:_n}=vn.getBoundingClientRect(),{offsetWidth:bn,offsetHeight:Cn}=vn,En=hn.clientX-_n,$n=pe.offsetTop,wn=$n+pe.offsetHeight;$e.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${En} ${$n} L${bn} 0 V${$n} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${En} ${wn} L${bn} ${Cn} V${wn} Z" />
`}else _e||(_e=window.setTimeout(Lt,Ce.config.hoverThreshold))},At=()=>{_e&&(clearTimeout(_e),_e=null)},Lt=()=>{$e.value&&($e.value.innerHTML="",At())};return{ns:ae,panel:Ce,hoverZone:$e,isEmpty:xe,isLoading:Ie,menuId:Ne,t:ie,handleExpand:Fe,handleMouseMove:ze,clearHoverZone:Lt}}});function _sfc_render$u($,oe,ae,ie,le,pe){const _e=resolveComponent("el-cascader-node"),Ce=resolveComponent("loading"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-scrollbar");return openBlock(),createBlock(xe,{key:$.menuId,tag:"ul",role:"menu",class:normalizeClass($.ns.b()),"wrap-class":$.ns.e("wrap"),"view-class":[$.ns.e("list"),$.ns.is("empty",$.isEmpty)],onMousemove:$.handleMouseMove,onMouseleave:$.clearHoverZone},{default:withCtx(()=>{var Ie;return[(openBlock(!0),createElementBlock(Fragment,null,renderList($.nodes,Ne=>(openBlock(),createBlock(_e,{key:Ne.uid,node:Ne,"menu-id":$.menuId,onExpand:$.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),$.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-text"))},[createVNode($e,{size:"14",class:normalizeClass($.ns.is("loading"))},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString$1($.t("el.cascader.loading")),1)],2)):$.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1($.t("el.cascader.noData")),3)):(Ie=$.panel)!=null&&Ie.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass($.ns.e("hover-zone"))},null,2)):createCommentVNode("v-if",!0)]}),_:1},8,["class","wrap-class","view-class","onMousemove","onMouseleave"])}var ElCascaderMenu=_export_sfc$1(_sfc_main$1H,[["render",_sfc_render$u],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uid=0;const calculatePathNodes=$=>{const oe=[$];let{parent:ae}=$;for(;ae;)oe.unshift(ae),ae=ae.parent;return oe};let Node$1=class _o{constructor(oe,ae,ie,le=!1){this.data=oe,this.config=ae,this.parent=ie,this.root=le,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:pe,label:_e,children:Ce}=ae,$e=oe[Ce],xe=calculatePathNodes(this);this.level=le?0:ie?ie.level+1:1,this.value=oe[pe],this.label=oe[_e],this.pathNodes=xe,this.pathValues=xe.map(Ie=>Ie.value),this.pathLabels=xe.map(Ie=>Ie.label),this.childrenData=$e,this.children=($e||[]).map(Ie=>new _o(Ie,ae,this)),this.loaded=!ae.lazy||this.isLeaf||!isEmpty($e)}get isDisabled(){const{data:oe,parent:ae,config:ie}=this,{disabled:le,checkStrictly:pe}=ie;return(isFunction$5(le)?le(oe,this):!!oe[le])||!pe&&(ae==null?void 0:ae.isDisabled)}get isLeaf(){const{data:oe,config:ae,childrenData:ie,loaded:le}=this,{lazy:pe,leaf:_e}=ae,Ce=isFunction$5(_e)?_e(oe,this):oe[_e];return isUndefined$1(Ce)?pe&&!le?!1:!(Array.isArray(ie)&&ie.length):!!Ce}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(oe){const{childrenData:ae,children:ie}=this,le=new _o(oe,this.config,this);return Array.isArray(ae)?ae.push(oe):this.childrenData=[oe],ie.push(le),le}calcText(oe,ae){const ie=oe?this.pathLabels.join(ae):this.label;return this.text=ie,ie}broadcast(oe,...ae){const ie=`onParent${capitalize$1(oe)}`;this.children.forEach(le=>{le&&(le.broadcast(oe,...ae),le[ie]&&le[ie](...ae))})}emit(oe,...ae){const{parent:ie}=this,le=`onChild${capitalize$1(oe)}`;ie&&(ie[le]&&ie[le](...ae),ie.emit(oe,...ae))}onParentCheck(oe){this.isDisabled||this.setCheckState(oe)}onChildCheck(){const{children:oe}=this,ae=oe.filter(le=>!le.isDisabled),ie=ae.length?ae.every(le=>le.checked):!1;this.setCheckState(ie)}setCheckState(oe){const ae=this.children.length,ie=this.children.reduce((le,pe)=>{const _e=pe.checked?1:pe.indeterminate?.5:0;return le+_e},0);this.checked=this.loaded&&this.children.filter(le=>!le.isDisabled).every(le=>le.loaded&&le.checked)&&oe,this.indeterminate=this.loaded&&ie!==ae&&ie>0}doCheck(oe){if(this.checked===oe)return;const{checkStrictly:ae,multiple:ie}=this.config;ae||!ie?this.checked=oe:(this.broadcast("check",oe),this.setCheckState(oe),this.emit("check"))}};const flatNodes=($,oe)=>$.reduce((ae,ie)=>(ie.isLeaf?ae.push(ie):(!oe&&ae.push(ie),ae=ae.concat(flatNodes(ie.children,oe))),ae),[]);class Store{constructor(oe,ae){this.config=ae;const ie=(oe||[]).map(le=>new Node$1(le,this.config));this.nodes=ie,this.allNodes=flatNodes(ie,!1),this.leafNodes=flatNodes(ie,!0)}getNodes(){return this.nodes}getFlattedNodes(oe){return oe?this.leafNodes:this.allNodes}appendNode(oe,ae){const ie=ae?ae.appendChild(oe):new Node$1(oe,this.config);ae||this.nodes.push(ie),this.allNodes.push(ie),ie.isLeaf&&this.leafNodes.push(ie)}appendNodes(oe,ae){oe.forEach(ie=>this.appendNode(ie,ae))}getNodeByValue(oe,ae=!1){return!oe&&oe!==0?null:this.getFlattedNodes(ae).find(le=>isEqual$1(le.value,oe)||isEqual$1(le.pathValues,oe))||null}getSameNode(oe){return oe&&this.getFlattedNodes(!1).find(({value:ie,level:le})=>isEqual$1(oe.value,ie)&&oe.level===le)||null}}const CommonProps=buildProps({modelValue:{type:definePropType([Number,String,Array])},options:{type:definePropType(Array),default:()=>[]},props:{type:definePropType(Object),default:()=>({})}}),DefaultProps={expandTrigger:"click",multiple:!1,checkStrictly:!1,emitPath:!0,lazy:!1,lazyLoad:NOOP,value:"value",label:"label",children:"children",leaf:"leaf",disabled:"disabled",hoverThreshold:500},useCascaderConfig=$=>computed(()=>({...DefaultProps,...$.props})),getMenuIndex=$=>{if(!$)return 0;const oe=$.id.split("-");return Number(oe[oe.length-2])},checkNode=$=>{if(!$)return;const oe=$.querySelector("input");oe?oe.click():isLeaf($)&&$.click()},sortByOriginalOrder=($,oe)=>{const ae=oe.slice(0),ie=ae.map(pe=>pe.uid),le=$.reduce((pe,_e)=>{const Ce=ie.indexOf(_e.uid);return Ce>-1&&(pe.push(_e),ae.splice(Ce,1),ie.splice(Ce,1)),pe},[]);return le.push(...ae),le},_sfc_main$1G=defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu},props:{...CommonProps,border:{type:Boolean,default:!0},renderLabel:Function},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"close","expand-change"],setup($,{emit:oe,slots:ae}){let ie=!1;const le=useNamespace("cascader"),pe=useCascaderConfig($);let _e=null;const Ce=ref(!0),$e=ref([]),xe=ref(null),Ie=ref([]),Ne=ref(null),Fe=ref([]),ze=computed(()=>pe.value.expandTrigger==="hover"),At=computed(()=>$.renderLabel||ae.default),Lt=()=>{const{options:On}=$,Nn=pe.value;ie=!1,_e=new Store(On,Nn),Ie.value=[_e.getNodes()],Nn.lazy&&isEmpty($.options)?(Ce.value=!1,hn(void 0,Rn=>{Rn&&(_e=new Store(Rn,Nn),Ie.value=[_e.getNodes()]),Ce.value=!0,Tn(!1,!0)})):Tn(!1,!0)},hn=(On,Nn)=>{const Rn=pe.value;On=On||new Node$1({},Rn,void 0,!0),On.loading=!0;const zn=Bn=>{const Mn=On,Fn=Mn.root?null:Mn;Bn&&(_e==null||_e.appendNodes(Bn,Fn)),Mn.loading=!1,Mn.loaded=!0,Mn.childrenData=Mn.childrenData||[],Nn&&Nn(Bn)};Rn.lazyLoad(On,zn)},vn=(On,Nn)=>{var Rn;const{level:zn}=On,Bn=Ie.value.slice(0,zn);let Mn;On.isLeaf?Mn=On.pathNodes[zn-2]:(Mn=On,Bn.push(On.children)),((Rn=Ne.value)==null?void 0:Rn.uid)!==(Mn==null?void 0:Mn.uid)&&(Ne.value=On,Ie.value=Bn,!Nn&&oe("expand-change",(On==null?void 0:On.pathValues)||[]))},_n=(On,Nn,Rn=!0)=>{const{checkStrictly:zn,multiple:Bn}=pe.value,Mn=Fe.value[0];ie=!0,!Bn&&(Mn==null||Mn.doCheck(!1)),On.doCheck(Nn),wn(),Rn&&!Bn&&!zn&&oe("close"),!Rn&&!Bn&&!zn&&bn(On)},bn=On=>{On&&(On=On.parent,bn(On),On&&vn(On))},Cn=On=>_e==null?void 0:_e.getFlattedNodes(On),En=On=>{var Nn;return(Nn=Cn(On))==null?void 0:Nn.filter(Rn=>Rn.checked!==!1)},$n=()=>{Fe.value.forEach(On=>On.doCheck(!1)),wn(),Ie.value=Ie.value.slice(0,1),Ne.value=null,oe("expand-change",[])},wn=()=>{var On;const{checkStrictly:Nn,multiple:Rn}=pe.value,zn=Fe.value,Bn=En(!Nn),Mn=sortByOriginalOrder(zn,Bn),Fn=Mn.map(Vn=>Vn.valueByOption);Fe.value=Mn,xe.value=Rn?Fn:(On=Fn[0])!=null?On:null},Tn=(On=!1,Nn=!1)=>{const{modelValue:Rn}=$,{lazy:zn,multiple:Bn,checkStrictly:Mn}=pe.value,Fn=!Mn;if(!(!Ce.value||ie||!Nn&&isEqual$1(Rn,xe.value)))if(zn&&!On){const jn=unique(flattenDeep(castArray(Rn))).map(Zn=>_e==null?void 0:_e.getNodeByValue(Zn)).filter(Zn=>!!Zn&&!Zn.loaded&&!Zn.loading);jn.length?jn.forEach(Zn=>{hn(Zn,()=>Tn(!1,Nn))}):Tn(!0,Nn)}else{const Vn=Bn?castArray(Rn):[Rn],jn=unique(Vn.map(Zn=>_e==null?void 0:_e.getNodeByValue(Zn,Fn)));xn(jn,Nn),xe.value=cloneDeep(Rn)}},xn=(On,Nn=!0)=>{const{checkStrictly:Rn}=pe.value,zn=Fe.value,Bn=On.filter(Vn=>!!Vn&&(Rn||Vn.isLeaf)),Mn=_e==null?void 0:_e.getSameNode(Ne.value),Fn=Nn&&Mn||Bn[0];Fn?Fn.pathNodes.forEach(Vn=>vn(Vn,!0)):Ne.value=null,zn.forEach(Vn=>Vn.doCheck(!1)),Bn.forEach(Vn=>Vn.doCheck(!0)),Fe.value=Bn,nextTick(kn)},kn=()=>{isClient$2&&$e.value.forEach(On=>{const Nn=On==null?void 0:On.$el;if(Nn){const Rn=Nn.querySelector(`.${le.namespace.value}-scrollbar__wrap`),zn=Nn.querySelector(`.${le.b("node")}.${le.is("active")}`)||Nn.querySelector(`.${le.b("node")}.in-active-path`);scrollIntoView(Rn,zn)}})},An=On=>{const Nn=On.target,{code:Rn}=On;switch(Rn){case EVENT_CODE.up:case EVENT_CODE.down:{On.preventDefault();const zn=Rn===EVENT_CODE.up?-1:1;focusNode(getSibling(Nn,zn,`.${le.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{On.preventDefault();const zn=$e.value[getMenuIndex(Nn)-1],Bn=zn==null?void 0:zn.$el.querySelector(`.${le.b("node")}[aria-expanded="true"]`);focusNode(Bn);break}case EVENT_CODE.right:{On.preventDefault();const zn=$e.value[getMenuIndex(Nn)+1],Bn=zn==null?void 0:zn.$el.querySelector(`.${le.b("node")}[tabindex="-1"]`);focusNode(Bn);break}case EVENT_CODE.enter:checkNode(Nn);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:pe,expandingNode:Ne,checkedNodes:Fe,isHoverMenu:ze,initialLoaded:Ce,renderLabelFn:At,lazyLoad:hn,expandNode:vn,handleCheckChange:_n})),watch([pe,()=>$.options],Lt,{deep:!0,immediate:!0}),watch(()=>$.modelValue,()=>{ie=!1,Tn()},{deep:!0}),watch(()=>xe.value,On=>{isEqual$1(On,$.modelValue)||(oe(UPDATE_MODEL_EVENT,On),oe(CHANGE_EVENT,On))}),onBeforeUpdate(()=>$e.value=[]),onMounted(()=>!isEmpty($.modelValue)&&Tn()),{ns:le,menuList:$e,menus:Ie,checkedNodes:Fe,handleKeyDown:An,handleCheckChange:_n,getFlattedNodes:Cn,getCheckedNodes:En,clearCheckedNodes:$n,calculateCheckedValue:wn,scrollToExpandingNode:kn}}});function _sfc_render$t($,oe,ae,ie,le,pe){const _e=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("panel"),$.ns.is("bordered",$.border)]),onKeydown:oe[0]||(oe[0]=(...Ce)=>$.handleKeyDown&&$.handleKeyDown(...Ce))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.menus,(Ce,$e)=>(openBlock(),createBlock(_e,{key:$e,ref_for:!0,ref:xe=>$.menuList[$e]=xe,index:$e,nodes:[...Ce]},null,8,["index","nodes"]))),128))],34)}var CascaderPanel=_export_sfc$1(_sfc_main$1G,[["render",_sfc_render$t],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);CascaderPanel.install=$=>{$.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:$=>$ instanceof MouseEvent,click:$=>$ instanceof MouseEvent},__default__$14=defineComponent({name:"ElTag"}),_sfc_main$1F=defineComponent({...__default__$14,props:tagProps,emits:tagEmits,setup($,{emit:oe}){const ae=$,ie=useFormSize(),le=useNamespace("tag"),pe=computed(()=>{const{type:$e,hit:xe,effect:Ie,closable:Ne,round:Fe}=ae;return[le.b(),le.is("closable",Ne),le.m($e),le.m(ie.value),le.m(Ie),le.is("hit",xe),le.is("round",Fe)]}),_e=$e=>{oe("close",$e)},Ce=$e=>{oe("click",$e)};return($e,xe)=>$e.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(pe)),style:normalizeStyle$1({backgroundColor:$e.color}),onClick:Ce},[createBaseVNode("span",{class:normalizeClass(unref(le).e("content"))},[renderSlot($e.$slots,"default")],2),$e.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("close")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(le).namespace.value}-zoom-in-center`,appear:""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(pe)),style:normalizeStyle$1({backgroundColor:$e.color}),onClick:Ce},[createBaseVNode("span",{class:normalizeClass(unref(le).e("content"))},[renderSlot($e.$slots,"default")],2),$e.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("close")),onClick:withModifiers(_e,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var Tag=_export_sfc$1(_sfc_main$1F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const ElTag=withInstall(Tag),cascaderProps=buildProps({...CommonProps,size:useSizeProp,placeholder:String,disabled:Boolean,clearable:Boolean,filterable:Boolean,filterMethod:{type:definePropType(Function),default:($,oe)=>$.text.includes(oe)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},debounce:{type:Number,default:300},beforeFilter:{type:definePropType(Function),default:()=>!0},popperClass:{type:String,default:""},teleported:useTooltipContentProps.teleported,tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0}}),cascaderEmits={[UPDATE_MODEL_EVENT]:$=>!!$||$===null,[CHANGE_EVENT]:$=>!!$||$===null,focus:$=>$ instanceof FocusEvent,blur:$=>$ instanceof FocusEvent,visibleChange:$=>isBoolean$3($),expandChange:$=>!!$,removeTag:$=>!!$},_hoisted_1$P={key:0},_hoisted_2$x=["placeholder","onKeydown"],_hoisted_3$j=["onClick"],COMPONENT_NAME$e="ElCascader",__default__$13=defineComponent({name:COMPONENT_NAME$e}),_sfc_main$1E=defineComponent({...__default__$13,props:cascaderProps,emits:cascaderEmits,setup($,{expose:oe,emit:ae}){const ie=$,le={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:dr})=>{const{modifiersData:Jn,placement:ir}=dr;["right","left","bottom","top"].includes(ir)||(Jn.arrow.x=35)},requires:["arrow"]}]},pe=useAttrs$1();let _e=0,Ce=0;const $e=useNamespace("cascader"),xe=useNamespace("input"),{t:Ie}=useLocale(),{form:Ne,formItem:Fe}=useFormItem(),ze=ref(null),At=ref(null),Lt=ref(null),hn=ref(null),vn=ref(null),_n=ref(!1),bn=ref(!1),Cn=ref(!1),En=ref(!1),$n=ref(""),wn=ref(""),Tn=ref([]),xn=ref([]),kn=ref([]),An=ref(!1),On=computed(()=>pe.style),Nn=computed(()=>ie.disabled||(Ne==null?void 0:Ne.disabled)),Rn=computed(()=>ie.placeholder||Ie("el.cascader.placeholder")),zn=computed(()=>wn.value||Tn.value.length>0||An.value?"":Rn.value),Bn=useFormSize(),Mn=computed(()=>["small"].includes(Bn.value)?"small":"default"),Fn=computed(()=>!!ie.props.multiple),Vn=computed(()=>!ie.filterable||Fn.value),jn=computed(()=>Fn.value?wn.value:$n.value),Zn=computed(()=>{var dr;return((dr=hn.value)==null?void 0:dr.checkedNodes)||[]}),Gn=computed(()=>!ie.clearable||Nn.value||Cn.value||!bn.value?!1:!!Zn.value.length),Xn=computed(()=>{const{showAllLevels:dr,separator:Jn}=ie,ir=Zn.value;return ir.length?Fn.value?"":ir[0].calcText(dr,Jn):""}),cr=computed({get(){return cloneDeep(ie.modelValue)},set(dr){ae(UPDATE_MODEL_EVENT,dr),ae(CHANGE_EVENT,dr),ie.validateEvent&&(Fe==null||Fe.validate("change").catch(Jn=>void 0))}}),nr=computed(()=>[$e.b(),$e.m(Bn.value),$e.is("disabled",Nn.value),pe.class]),er=computed(()=>[xe.e("icon"),"icon-arrow-down",$e.is("reverse",_n.value)]),rr=computed(()=>$e.is("focus",_n.value||En.value)),qn=computed(()=>{var dr,Jn;return(Jn=(dr=ze.value)==null?void 0:dr.popperRef)==null?void 0:Jn.contentRef}),Yn=dr=>{var Jn,ir,xr;Nn.value||(dr=dr??!_n.value,dr!==_n.value&&(_n.value=dr,(ir=(Jn=At.value)==null?void 0:Jn.input)==null||ir.setAttribute("aria-expanded",`${dr}`),dr?(ar(),nextTick((xr=hn.value)==null?void 0:xr.scrollToExpandingNode)):ie.filterable&&hr(),ae("visibleChange",dr)))},ar=()=>{nextTick(()=>{var dr;(dr=ze.value)==null||dr.updatePopper()})},pr=()=>{Cn.value=!1},Un=dr=>{const{showAllLevels:Jn,separator:ir}=ie;return{node:dr,key:dr.uid,text:dr.calcText(Jn,ir),hitState:!1,closable:!Nn.value&&!dr.isDisabled,isCollapseTag:!1}},tr=dr=>{var Jn;const ir=dr.node;ir.doCheck(!1),(Jn=hn.value)==null||Jn.calculateCheckedValue(),ae("removeTag",ir.valueByOption)},ur=()=>{if(!Fn.value)return;const dr=Zn.value,Jn=[],ir=[];if(dr.forEach(xr=>ir.push(Un(xr))),xn.value=ir,dr.length){const[xr,...Ir]=dr,Hr=Ir.length;Jn.push(Un(xr)),Hr&&(ie.collapseTags?Jn.push({key:-1,text:`+ ${Hr}`,closable:!1,isCollapseTag:!0}):Ir.forEach(Cr=>Jn.push(Un(Cr))))}Tn.value=Jn},_r=()=>{var dr,Jn;const{filterMethod:ir,showAllLevels:xr,separator:Ir}=ie,Hr=(Jn=(dr=hn.value)==null?void 0:dr.getFlattedNodes(!ie.props.checkStrictly))==null?void 0:Jn.filter(Cr=>Cr.isDisabled?!1:(Cr.calcText(xr,Ir),ir(Cr,jn.value)));Fn.value&&(Tn.value.forEach(Cr=>{Cr.hitState=!1}),xn.value.forEach(Cr=>{Cr.hitState=!1})),Cn.value=!0,kn.value=Hr,ar()},Er=()=>{var dr;let Jn;Cn.value&&vn.value?Jn=vn.value.$el.querySelector(`.${$e.e("suggestion-item")}`):Jn=(dr=hn.value)==null?void 0:dr.$el.querySelector(`.${$e.b("node")}[tabindex="-1"]`),Jn&&(Jn.focus(),!Cn.value&&Jn.click())},sr=()=>{var dr,Jn;const ir=(dr=At.value)==null?void 0:dr.input,xr=Lt.value,Ir=(Jn=vn.value)==null?void 0:Jn.$el;if(!(!isClient$2||!ir)){if(Ir){const Hr=Ir.querySelector(`.${$e.e("suggestion-list")}`);Hr.style.minWidth=`${ir.offsetWidth}px`}if(xr){const{offsetHeight:Hr}=xr,Cr=Tn.value.length>0?`${Math.max(Hr+6,_e)}px`:`${_e}px`;ir.style.height=Cr,ar()}}},Pr=dr=>{var Jn;return(Jn=hn.value)==null?void 0:Jn.getCheckedNodes(dr)},Sr=dr=>{ar(),ae("expandChange",dr)},kr=dr=>{var Jn;const ir=(Jn=dr.target)==null?void 0:Jn.value;if(dr.type==="compositionend")An.value=!1,nextTick(()=>Tr(ir));else{const xr=ir[ir.length-1]||"";An.value=!isKorean(xr)}},mr=dr=>{if(!An.value)switch(dr.code){case EVENT_CODE.enter:Yn();break;case EVENT_CODE.down:Yn(!0),nextTick(Er),dr.preventDefault();break;case EVENT_CODE.esc:_n.value===!0&&(dr.preventDefault(),dr.stopPropagation(),Yn(!1));break;case EVENT_CODE.tab:Yn(!1);break}},lr=()=>{var dr;(dr=hn.value)==null||dr.clearCheckedNodes(),!_n.value&&ie.filterable&&hr(),Yn(!1)},hr=()=>{const{value:dr}=Xn;$n.value=dr,wn.value=dr},gr=dr=>{var Jn,ir;const{checked:xr}=dr;Fn.value?(Jn=hn.value)==null||Jn.handleCheckChange(dr,!xr,!1):(!xr&&((ir=hn.value)==null||ir.handleCheckChange(dr,!0,!1)),Yn(!1))},Or=dr=>{const Jn=dr.target,{code:ir}=dr;switch(ir){case EVENT_CODE.up:case EVENT_CODE.down:{const xr=ir===EVENT_CODE.up?-1:1;focusNode(getSibling(Jn,xr,`.${$e.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:Jn.click();break}},Lr=()=>{const dr=Tn.value,Jn=dr[dr.length-1];Ce=wn.value?0:Ce+1,!(!Jn||!Ce||ie.collapseTags&&dr.length>1)&&(Jn.hitState?tr(Jn):Jn.hitState=!0)},Vr=dr=>{const Jn=dr.target,ir=$e.e("search-input");Jn.className===ir&&(En.value=!0),ae("focus",dr)},Rr=dr=>{En.value=!1,ae("blur",dr)},$r=debounce(()=>{const{value:dr}=jn;if(!dr)return;const Jn=ie.beforeFilter(dr);isPromise(Jn)?Jn.then(_r).catch(()=>{}):Jn!==!1?_r():pr()},ie.debounce),Tr=(dr,Jn)=>{!_n.value&&Yn(!0),!(Jn!=null&&Jn.isComposing)&&(dr?$r():pr())};return watch(Cn,ar),watch([Zn,Nn],ur),watch(Tn,()=>{nextTick(()=>sr())}),watch(Xn,hr,{immediate:!0}),onMounted(()=>{const dr=At.value.input,Jn=Number.parseFloat(useCssVar(xe.cssVarName("input-height"),dr).value)-2;_e=dr.offsetHeight||Jn,useResizeObserver(dr,sr)}),oe({getCheckedNodes:Pr,cascaderPanelRef:hn,togglePopperVisible:Yn,contentRef:qn}),(dr,Jn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:ze,visible:_n.value,teleported:dr.teleported,"popper-class":[unref($e).e("dropdown"),dr.popperClass],"popper-options":le,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${unref($e).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:pr},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(unref(nr)),style:normalizeStyle$1(unref(On)),onClick:Jn[5]||(Jn[5]=()=>Yn(unref(Vn)?void 0:!0)),onKeydown:mr,onMouseenter:Jn[6]||(Jn[6]=ir=>bn.value=!0),onMouseleave:Jn[7]||(Jn[7]=ir=>bn.value=!1)},[createVNode(unref(ElInput),{ref_key:"input",ref:At,modelValue:$n.value,"onUpdate:modelValue":Jn[1]||(Jn[1]=ir=>$n.value=ir),placeholder:unref(zn),readonly:unref(Vn),disabled:unref(Nn),"validate-event":!1,size:unref(Bn),class:normalizeClass(unref(rr)),tabindex:unref(Fn)&&dr.filterable&&!unref(Nn)?-1:void 0,onCompositionstart:kr,onCompositionupdate:kr,onCompositionend:kr,onFocus:Vr,onBlur:Rr,onInput:Tr},{suffix:withCtx(()=>[unref(Gn)?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref(xe).e("icon"),"icon-circle-close"]),onClick:withModifiers(lr,["stop"])},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onClick"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(unref(er)),onClick:Jn[0]||(Jn[0]=withModifiers(ir=>Yn(),["stop"]))},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),unref(Fn)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:Lt,class:normalizeClass(unref($e).e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Tn.value,ir=>(openBlock(),createBlock(unref(ElTag),{key:ir.key,type:dr.tagType,size:unref(Mn),hit:ir.hitState,closable:ir.closable,"disable-transitions":"",onClose:xr=>tr(ir)},{default:withCtx(()=>[ir.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$P,toDisplayString$1(ir.text),1)):(openBlock(),createBlock(unref(ElTooltip),{key:1,disabled:_n.value||!dr.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(ir.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref($e).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(xn.value.slice(1),(xr,Ir)=>(openBlock(),createElementBlock("div",{key:Ir,class:normalizeClass(unref($e).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:xr.key,class:"in-tooltip",type:dr.tagType,size:unref(Mn),hit:xr.hitState,closable:xr.closable,"disable-transitions":"",onClose:Hr=>tr(xr)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(xr.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),dr.filterable&&!unref(Nn)?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Jn[2]||(Jn[2]=ir=>wn.value=ir),type:"text",class:normalizeClass(unref($e).e("search-input")),placeholder:unref(Xn)?"":unref(Rn),onInput:Jn[3]||(Jn[3]=ir=>Tr(wn.value,ir)),onClick:Jn[4]||(Jn[4]=withModifiers(ir=>Yn(!0),["stop"])),onKeydown:withKeys(Lr,["delete"]),onCompositionstart:kr,onCompositionupdate:kr,onCompositionend:kr,onFocus:Vr,onBlur:Rr},null,42,_hoisted_2$x)),[[vModelText,wn.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),()=>Yn(!1),unref(qn)]])]),content:withCtx(()=>[withDirectives(createVNode(unref(_CascaderPanel),{ref_key:"cascaderPanelRef",ref:hn,modelValue:unref(cr),"onUpdate:modelValue":Jn[8]||(Jn[8]=ir=>isRef(cr)?cr.value=ir:null),options:dr.options,props:ie.props,border:!1,"render-label":dr.$slots.default,onExpandChange:Sr,onClose:Jn[9]||(Jn[9]=ir=>dr.$nextTick(()=>Yn(!1)))},null,8,["modelValue","options","props","render-label"]),[[vShow,!Cn.value]]),dr.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:0,ref_key:"suggestionPanel",ref:vn,tag:"ul",class:normalizeClass(unref($e).e("suggestion-panel")),"view-class":unref($e).e("suggestion-list"),onKeydown:Or},{default:withCtx(()=>[kn.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(kn.value,ir=>(openBlock(),createElementBlock("li",{key:ir.uid,class:normalizeClass([unref($e).e("suggestion-item"),unref($e).is("checked",ir.checked)]),tabindex:-1,onClick:xr=>gr(ir)},[createBaseVNode("span",null,toDisplayString$1(ir.text),1),ir.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$j))),128)):renderSlot(dr.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref($e).e("empty-text"))},toDisplayString$1(unref(Ie)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,Cn.value]]):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Cascader=_export_sfc$1(_sfc_main$1E,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Cascader.install=$=>{$.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":$=>isBoolean$3($),[CHANGE_EVENT]:$=>isBoolean$3($)},__default__$12=defineComponent({name:"ElCheckTag"}),_sfc_main$1D=defineComponent({...__default__$12,props:checkTagProps,emits:checkTagEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("check-tag"),le=()=>{const pe=!ae.checked;oe(CHANGE_EVENT,pe),oe("update:checked",pe)};return(pe,_e)=>(openBlock(),createElementBlock("span",{class:normalizeClass([unref(ie).b(),unref(ie).is("checked",pe.checked)]),onClick:le},[renderSlot(pe.$slots,"default")],2))}});var CheckTag=_export_sfc$1(_sfc_main$1D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/check-tag/src/check-tag.vue"]]);const ElCheckTag=withInstall(CheckTag),rowContextKey=Symbol("rowContextKey"),RowJustify=["start","center","end","space-around","space-between","space-evenly"],RowAlign=["top","middle","bottom"],rowProps=buildProps({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:RowJustify,default:"start"},align:{type:String,values:RowAlign,default:"top"}}),__default__$11=defineComponent({name:"ElRow"}),_sfc_main$1C=defineComponent({...__default__$11,props:rowProps,setup($){const oe=$,ae=useNamespace("row"),ie=computed(()=>oe.gutter);provide(rowContextKey,{gutter:ie});const le=computed(()=>{const _e={};return oe.gutter&&(_e.marginRight=_e.marginLeft=`-${oe.gutter/2}px`),_e}),pe=computed(()=>[ae.b(),ae.is(`justify-${oe.justify}`,oe.justify!=="start"),ae.is(`align-${oe.align}`,oe.align!=="top")]);return(_e,Ce)=>(openBlock(),createBlock(resolveDynamicComponent(_e.tag),{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(le))},{default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},8,["class","style"]))}});var Row=_export_sfc$1(_sfc_main$1C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const ElRow=withInstall(Row),colProps=buildProps({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:definePropType([Number,Object]),default:()=>mutable({})},sm:{type:definePropType([Number,Object]),default:()=>mutable({})},md:{type:definePropType([Number,Object]),default:()=>mutable({})},lg:{type:definePropType([Number,Object]),default:()=>mutable({})},xl:{type:definePropType([Number,Object]),default:()=>mutable({})}}),__default__$10=defineComponent({name:"ElCol"}),_sfc_main$1B=defineComponent({...__default__$10,props:colProps,setup($){const oe=$,{gutter:ae}=inject(rowContextKey,{gutter:computed(()=>0)}),ie=useNamespace("col"),le=computed(()=>{const _e={};return ae.value&&(_e.paddingLeft=_e.paddingRight=`${ae.value/2}px`),_e}),pe=computed(()=>{const _e=[];return["span","offset","pull","push"].forEach(xe=>{const Ie=oe[xe];isNumber$5(Ie)&&(xe==="span"?_e.push(ie.b(`${oe[xe]}`)):Ie>0&&_e.push(ie.b(`${xe}-${oe[xe]}`)))}),["xs","sm","md","lg","xl"].forEach(xe=>{isNumber$5(oe[xe])?_e.push(ie.b(`${xe}-${oe[xe]}`)):isObject$8(oe[xe])&&Object.entries(oe[xe]).forEach(([Ie,Ne])=>{_e.push(Ie!=="span"?ie.b(`${xe}-${Ie}-${Ne}`):ie.b(`${xe}-${Ne}`))})}),ae.value&&_e.push(ie.is("guttered")),[ie.b(),_e]});return(_e,Ce)=>(openBlock(),createBlock(resolveDynamicComponent(_e.tag),{class:normalizeClass(unref(pe)),style:normalizeStyle$1(unref(le))},{default:withCtx(()=>[renderSlot(_e.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc$1(_sfc_main$1B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=$=>typeof isNumber$5($),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),useCollapse=($,oe)=>{const ae=ref(castArray$1($.modelValue)),ie=pe=>{ae.value=pe;const _e=$.accordion?ae.value[0]:ae.value;oe(UPDATE_MODEL_EVENT,_e),oe(CHANGE_EVENT,_e)},le=pe=>{if($.accordion)ie([ae.value[0]===pe?"":pe]);else{const _e=[...ae.value],Ce=_e.indexOf(pe);Ce>-1?_e.splice(Ce,1):_e.push(pe),ie(_e)}};return watch(()=>$.modelValue,()=>ae.value=castArray$1($.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:ae,handleItemClick:le}),{activeNames:ae,setActiveNames:ie}},useCollapseDOM=()=>{const $=useNamespace("collapse");return{rootKls:computed(()=>$.b())}},__default__$$=defineComponent({name:"ElCollapse"}),_sfc_main$1A=defineComponent({...__default__$$,props:collapseProps,emits:collapseEmits,setup($,{expose:oe,emit:ae}){const ie=$,{activeNames:le,setActiveNames:pe}=useCollapse(ie,ae),{rootKls:_e}=useCollapseDOM();return oe({activeNames:le,setActiveNames:pe}),(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e)),role:"tablist","aria-multiselectable":"true"},[renderSlot(Ce.$slots,"default")],2))}});var Collapse=_export_sfc$1(_sfc_main$1A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const __default__$_=defineComponent({name:"ElCollapseTransition"}),_sfc_main$1z=defineComponent({...__default__$_,setup($){const oe=useNamespace("collapse-transition"),ae={beforeEnter(ie){ie.dataset||(ie.dataset={}),ie.dataset.oldPaddingTop=ie.style.paddingTop,ie.dataset.oldPaddingBottom=ie.style.paddingBottom,ie.style.maxHeight=0,ie.style.paddingTop=0,ie.style.paddingBottom=0},enter(ie){ie.dataset.oldOverflow=ie.style.overflow,ie.scrollHeight!==0?(ie.style.maxHeight=`${ie.scrollHeight}px`,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom):(ie.style.maxHeight=0,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom),ie.style.overflow="hidden"},afterEnter(ie){ie.style.maxHeight="",ie.style.overflow=ie.dataset.oldOverflow},beforeLeave(ie){ie.dataset||(ie.dataset={}),ie.dataset.oldPaddingTop=ie.style.paddingTop,ie.dataset.oldPaddingBottom=ie.style.paddingBottom,ie.dataset.oldOverflow=ie.style.overflow,ie.style.maxHeight=`${ie.scrollHeight}px`,ie.style.overflow="hidden"},leave(ie){ie.scrollHeight!==0&&(ie.style.maxHeight=0,ie.style.paddingTop=0,ie.style.paddingBottom=0)},afterLeave(ie){ie.style.maxHeight="",ie.style.overflow=ie.dataset.oldOverflow,ie.style.paddingTop=ie.dataset.oldPaddingTop,ie.style.paddingBottom=ie.dataset.oldPaddingBottom}};return(ie,le)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(oe).b()},toHandlers(ae)),{default:withCtx(()=>[renderSlot(ie.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc$1(_sfc_main$1z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CollapseTransition.install=$=>{$.component(CollapseTransition.name,CollapseTransition)};const _CollapseTransition=CollapseTransition,ElCollapseTransition=_CollapseTransition,collapseItemProps=buildProps({title:{type:String,default:""},name:{type:definePropType([String,Number]),default:()=>generateId()},disabled:Boolean}),useCollapseItem=$=>{const oe=inject(collapseContextKey),ae=ref(!1),ie=ref(!1),le=ref(generateId()),pe=computed(()=>oe==null?void 0:oe.activeNames.value.includes($.name));return{focusing:ae,id:le,isActive:pe,handleFocus:()=>{setTimeout(()=>{ie.value?ie.value=!1:ae.value=!0},50)},handleHeaderClick:()=>{$.disabled||(oe==null||oe.handleItemClick($.name),ae.value=!1,ie.value=!0)},handleEnterClick:()=>{oe==null||oe.handleItemClick($.name)}}},useCollapseItemDOM=($,{focusing:oe,isActive:ae,id:ie})=>{const le=useNamespace("collapse"),pe=computed(()=>[le.b("item"),le.is("active",unref(ae)),le.is("disabled",$.disabled)]),_e=computed(()=>[le.be("item","header"),le.is("active",unref(ae)),{focusing:unref(oe)&&!$.disabled}]),Ce=computed(()=>[le.be("item","arrow"),le.is("active",unref(ae))]),$e=computed(()=>le.be("item","wrap")),xe=computed(()=>le.be("item","content")),Ie=computed(()=>le.b(`content-${unref(ie)}`)),Ne=computed(()=>le.b(`head-${unref(ie)}`));return{arrowKls:Ce,headKls:_e,rootKls:pe,itemWrapperKls:$e,itemContentKls:xe,scopedContentId:Ie,scopedHeadId:Ne}},_hoisted_1$O=["aria-expanded","aria-controls","aria-describedby"],_hoisted_2$w=["id","tabindex"],_hoisted_3$i=["id","aria-hidden","aria-labelledby"],__default__$Z=defineComponent({name:"ElCollapseItem"}),_sfc_main$1y=defineComponent({...__default__$Z,props:collapseItemProps,setup($,{expose:oe}){const ae=$,{focusing:ie,id:le,isActive:pe,handleFocus:_e,handleHeaderClick:Ce,handleEnterClick:$e}=useCollapseItem(ae),{arrowKls:xe,headKls:Ie,rootKls:Ne,itemWrapperKls:Fe,itemContentKls:ze,scopedContentId:At,scopedHeadId:Lt}=useCollapseItemDOM(ae,{focusing:ie,isActive:pe,id:le});return oe({isActive:pe}),(hn,vn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ne))},[createBaseVNode("div",{role:"tab","aria-expanded":unref(pe),"aria-controls":unref(At),"aria-describedby":unref(At)},[createBaseVNode("div",{id:unref(Lt),class:normalizeClass(unref(Ie)),role:"button",tabindex:hn.disabled?-1:0,onClick:vn[0]||(vn[0]=(..._n)=>unref(Ce)&&unref(Ce)(..._n)),onKeypress:vn[1]||(vn[1]=withKeys(withModifiers((..._n)=>unref($e)&&unref($e)(..._n),["stop","prevent"]),["space","enter"])),onFocus:vn[2]||(vn[2]=(..._n)=>unref(_e)&&unref(_e)(..._n)),onBlur:vn[3]||(vn[3]=_n=>ie.value=!1)},[renderSlot(hn.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(hn.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass(unref(xe))},{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1},8,["class"])],42,_hoisted_2$w)],8,_hoisted_1$O),createVNode(unref(_CollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(At),class:normalizeClass(unref(Fe)),role:"tabpanel","aria-hidden":!unref(pe),"aria-labelledby":unref(Lt)},[createBaseVNode("div",{class:normalizeClass(unref(ze))},[renderSlot(hn.$slots,"default")],2)],10,_hoisted_3$i),[[vShow,unref(pe)]])]),_:3})],2))}});var CollapseItem=_export_sfc$1(_sfc_main$1y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const ElCollapse=withInstall(Collapse,{CollapseItem}),ElCollapseItem=withNoopInstall(CollapseItem),alphaSliderProps=buildProps({color:{type:definePropType(Object),required:!0},vertical:{type:Boolean,default:!1}});let isDragging=!1;function draggable($,oe){if(!isClient$2)return;const ae=function(pe){var _e;(_e=oe.drag)==null||_e.call(oe,pe)},ie=function(pe){var _e;document.removeEventListener("mousemove",ae),document.removeEventListener("mouseup",ie),document.removeEventListener("touchmove",ae),document.removeEventListener("touchend",ie),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(_e=oe.end)==null||_e.call(oe,pe)},le=function(pe){var _e;isDragging||(pe.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",ae),document.addEventListener("mouseup",ie),document.addEventListener("touchmove",ae),document.addEventListener("touchend",ie),isDragging=!0,(_e=oe.start)==null||_e.call(oe,pe))};$.addEventListener("mousedown",le),$.addEventListener("touchstart",le)}const useAlphaSlider=$=>{const oe=getCurrentInstance(),ae=shallowRef(),ie=shallowRef();function le(_e){_e.target!==ae.value&&pe(_e)}function pe(_e){if(!ie.value||!ae.value)return;const $e=oe.vnode.el.getBoundingClientRect(),{clientX:xe,clientY:Ie}=getClientXY(_e);if($.vertical){let Ne=Ie-$e.top;Ne=Math.max(ae.value.offsetHeight/2,Ne),Ne=Math.min(Ne,$e.height-ae.value.offsetHeight/2),$.color.set("alpha",Math.round((Ne-ae.value.offsetHeight/2)/($e.height-ae.value.offsetHeight)*100))}else{let Ne=xe-$e.left;Ne=Math.max(ae.value.offsetWidth/2,Ne),Ne=Math.min(Ne,$e.width-ae.value.offsetWidth/2),$.color.set("alpha",Math.round((Ne-ae.value.offsetWidth/2)/($e.width-ae.value.offsetWidth)*100))}}return{thumb:ae,bar:ie,handleDrag:pe,handleClick:le}},useAlphaSliderDOM=($,{bar:oe,thumb:ae,handleDrag:ie})=>{const le=getCurrentInstance(),pe=useNamespace("color-alpha-slider"),_e=ref(0),Ce=ref(0),$e=ref();function xe(){if(!ae.value||$.vertical)return 0;const _n=le.vnode.el,bn=$.color.get("alpha");return _n?Math.round(bn*(_n.offsetWidth-ae.value.offsetWidth/2)/100):0}function Ie(){if(!ae.value)return 0;const _n=le.vnode.el;if(!$.vertical)return 0;const bn=$.color.get("alpha");return _n?Math.round(bn*(_n.offsetHeight-ae.value.offsetHeight/2)/100):0}function Ne(){if($.color&&$.color.value){const{r:_n,g:bn,b:Cn}=$.color.toRgb();return`linear-gradient(to right, rgba(${_n}, ${bn}, ${Cn}, 0) 0%, rgba(${_n}, ${bn}, ${Cn}, 1) 100%)`}return""}function Fe(){_e.value=xe(),Ce.value=Ie(),$e.value=Ne()}onMounted(()=>{if(!oe.value||!ae.value)return;const _n={drag:bn=>{ie(bn)},end:bn=>{ie(bn)}};draggable(oe.value,_n),draggable(ae.value,_n),Fe()}),watch(()=>$.color.get("alpha"),()=>Fe()),watch(()=>$.color.value,()=>Fe());const ze=computed(()=>[pe.b(),pe.is("vertical",$.vertical)]),At=computed(()=>pe.e("bar")),Lt=computed(()=>pe.e("thumb")),hn=computed(()=>({background:$e.value})),vn=computed(()=>({left:addUnit(_e.value),top:addUnit(Ce.value)}));return{rootKls:ze,barKls:At,barStyle:hn,thumbKls:Lt,thumbStyle:vn,update:Fe}},COMPONENT_NAME$d="ElColorAlphaSlider",__default__$Y=defineComponent({name:COMPONENT_NAME$d}),_sfc_main$1x=defineComponent({...__default__$Y,props:alphaSliderProps,setup($,{expose:oe}){const ae=$,{bar:ie,thumb:le,handleDrag:pe,handleClick:_e}=useAlphaSlider(ae),{rootKls:Ce,barKls:$e,barStyle:xe,thumbKls:Ie,thumbStyle:Ne,update:Fe}=useAlphaSliderDOM(ae,{bar:ie,thumb:le,handleDrag:pe});return oe({update:Fe,bar:ie,thumb:le}),(ze,At)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ce))},[createBaseVNode("div",{ref_key:"bar",ref:ie,class:normalizeClass(unref($e)),style:normalizeStyle$1(unref(xe)),onClick:At[0]||(At[0]=(...Lt)=>unref(_e)&&unref(_e)(...Lt))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:le,class:normalizeClass(unref(Ie)),style:normalizeStyle$1(unref(Ne))},null,6)],2))}});var AlphaSlider=_export_sfc$1(_sfc_main$1x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const _sfc_main$1w=defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup($){const oe=useNamespace("color-hue-slider"),ae=getCurrentInstance(),ie=ref(),le=ref(),pe=ref(0),_e=ref(0),Ce=computed(()=>$.color.get("hue"));watch(()=>Ce.value,()=>{Fe()});function $e(ze){ze.target!==ie.value&&xe(ze)}function xe(ze){if(!le.value||!ie.value)return;const Lt=ae.vnode.el.getBoundingClientRect(),{clientX:hn,clientY:vn}=getClientXY(ze);let _n;if($.vertical){let bn=vn-Lt.top;bn=Math.min(bn,Lt.height-ie.value.offsetHeight/2),bn=Math.max(ie.value.offsetHeight/2,bn),_n=Math.round((bn-ie.value.offsetHeight/2)/(Lt.height-ie.value.offsetHeight)*360)}else{let bn=hn-Lt.left;bn=Math.min(bn,Lt.width-ie.value.offsetWidth/2),bn=Math.max(ie.value.offsetWidth/2,bn),_n=Math.round((bn-ie.value.offsetWidth/2)/(Lt.width-ie.value.offsetWidth)*360)}$.color.set("hue",_n)}function Ie(){if(!ie.value)return 0;const ze=ae.vnode.el;if($.vertical)return 0;const At=$.color.get("hue");return ze?Math.round(At*(ze.offsetWidth-ie.value.offsetWidth/2)/360):0}function Ne(){if(!ie.value)return 0;const ze=ae.vnode.el;if(!$.vertical)return 0;const At=$.color.get("hue");return ze?Math.round(At*(ze.offsetHeight-ie.value.offsetHeight/2)/360):0}function Fe(){pe.value=Ie(),_e.value=Ne()}return onMounted(()=>{if(!le.value||!ie.value)return;const ze={drag:At=>{xe(At)},end:At=>{xe(At)}};draggable(le.value,ze),draggable(ie.value,ze),Fe()}),{bar:le,thumb:ie,thumbLeft:pe,thumbTop:_e,hueValue:Ce,handleClick:$e,update:Fe,ns:oe}}});function _sfc_render$s($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("vertical",$.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass($.ns.e("bar")),onClick:oe[0]||(oe[0]=(..._e)=>$.handleClick&&$.handleClick(..._e))},null,2),createBaseVNode("div",{ref:"thumb",class:normalizeClass($.ns.e("thumb")),style:normalizeStyle$1({left:$.thumbLeft+"px",top:$.thumbTop+"px"})},null,6)],2)}var HueSlider=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$s],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const colorPickerProps=buildProps({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:useSizeProp,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:{type:definePropType(Array)},validateEvent:{type:Boolean,default:!0}}),colorPickerEmits={[UPDATE_MODEL_EVENT]:$=>isString$7($)||isNil($),[CHANGE_EVENT]:$=>isString$7($)||isNil($),activeChange:$=>isString$7($)||isNil($)},colorPickerContextKey=Symbol("colorPickerContextKey"),hsv2hsl=function($,oe,ae){return[$,oe*ae/(($=(2-oe)*ae)<1?$:2-$)||0,$/2]},isOnePointZero=function($){return typeof $=="string"&&$.includes(".")&&Number.parseFloat($)===1},isPercentage=function($){return typeof $=="string"&&$.includes("%")},bound01=function($,oe){isOnePointZero($)&&($="100%");const ae=isPercentage($);return $=Math.min(oe,Math.max(0,Number.parseFloat(`${$}`))),ae&&($=Number.parseInt(`${$*oe}`,10)/100),Math.abs($-oe)<1e-6?1:$%oe/Number.parseFloat(oe)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=$=>{$=Math.min(Math.round($),255);const oe=Math.floor($/16),ae=$%16;return`${INT_HEX_MAP[oe]||oe}${INT_HEX_MAP[ae]||ae}`},toHex$1=function({r:$,g:oe,b:ae}){return Number.isNaN(+$)||Number.isNaN(+oe)||Number.isNaN(+ae)?"":`#${hexOne($)}${hexOne(oe)}${hexOne(ae)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function($){return $.length===2?(HEX_INT_MAP[$[0].toUpperCase()]||+$[0])*16+(HEX_INT_MAP[$[1].toUpperCase()]||+$[1]):HEX_INT_MAP[$[1].toUpperCase()]||+$[1]},hsl2hsv=function($,oe,ae){oe=oe/100,ae=ae/100;let ie=oe;const le=Math.max(ae,.01);ae*=2,oe*=ae<=1?ae:2-ae,ie*=le<=1?le:2-le;const pe=(ae+oe)/2,_e=ae===0?2*ie/(le+ie):2*oe/(ae+oe);return{h:$,s:_e*100,v:pe*100}},rgb2hsv=($,oe,ae)=>{$=bound01($,255),oe=bound01(oe,255),ae=bound01(ae,255);const ie=Math.max($,oe,ae),le=Math.min($,oe,ae);let pe;const _e=ie,Ce=ie-le,$e=ie===0?0:Ce/ie;if(ie===le)pe=0;else{switch(ie){case $:{pe=(oe-ae)/Ce+(oe<ae?6:0);break}case oe:{pe=(ae-$)/Ce+2;break}case ae:{pe=($-oe)/Ce+4;break}}pe/=6}return{h:pe*360,s:$e*100,v:_e*100}},hsv2rgb=function($,oe,ae){$=bound01($,360)*6,oe=bound01(oe,100),ae=bound01(ae,100);const ie=Math.floor($),le=$-ie,pe=ae*(1-oe),_e=ae*(1-le*oe),Ce=ae*(1-(1-le)*oe),$e=ie%6,xe=[ae,_e,pe,pe,Ce,ae][$e],Ie=[Ce,ae,ae,_e,pe,pe][$e],Ne=[pe,pe,Ce,ae,ae,_e][$e];return{r:Math.round(xe*255),g:Math.round(Ie*255),b:Math.round(Ne*255)}};class Color{constructor(oe={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const ae in oe)hasOwn$4(oe,ae)&&(this[ae]=oe[ae]);oe.value?this.fromString(oe.value):this.doOnChange()}set(oe,ae){if(arguments.length===1&&typeof oe=="object"){for(const ie in oe)hasOwn$4(oe,ie)&&this.set(ie,oe[ie]);return}this[`_${oe}`]=ae,this.doOnChange()}get(oe){return oe==="alpha"?Math.floor(this[`_${oe}`]):this[`_${oe}`]}toRgb(){return hsv2rgb(this._hue,this._saturation,this._value)}fromString(oe){if(!oe){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const ae=(ie,le,pe)=>{this._hue=Math.max(0,Math.min(360,ie)),this._saturation=Math.max(0,Math.min(100,le)),this._value=Math.max(0,Math.min(100,pe)),this.doOnChange()};if(oe.includes("hsl")){const ie=oe.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,pe)=>pe>2?Number.parseFloat(le):Number.parseInt(le,10));if(ie.length===4?this._alpha=Number.parseFloat(ie[3])*100:ie.length===3&&(this._alpha=100),ie.length>=3){const{h:le,s:pe,v:_e}=hsl2hsv(ie[0],ie[1],ie[2]);ae(le,pe,_e)}}else if(oe.includes("hsv")){const ie=oe.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,pe)=>pe>2?Number.parseFloat(le):Number.parseInt(le,10));ie.length===4?this._alpha=Number.parseFloat(ie[3])*100:ie.length===3&&(this._alpha=100),ie.length>=3&&ae(ie[0],ie[1],ie[2])}else if(oe.includes("rgb")){const ie=oe.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(le=>le!=="").map((le,pe)=>pe>2?Number.parseFloat(le):Number.parseInt(le,10));if(ie.length===4?this._alpha=Number.parseFloat(ie[3])*100:ie.length===3&&(this._alpha=100),ie.length>=3){const{h:le,s:pe,v:_e}=rgb2hsv(ie[0],ie[1],ie[2]);ae(le,pe,_e)}}else if(oe.includes("#")){const ie=oe.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(ie))return;let le,pe,_e;ie.length===3?(le=parseHexChannel(ie[0]+ie[0]),pe=parseHexChannel(ie[1]+ie[1]),_e=parseHexChannel(ie[2]+ie[2])):(ie.length===6||ie.length===8)&&(le=parseHexChannel(ie.slice(0,2)),pe=parseHexChannel(ie.slice(2,4)),_e=parseHexChannel(ie.slice(4,6))),ie.length===8?this._alpha=parseHexChannel(ie.slice(6))/255*100:(ie.length===3||ie.length===6)&&(this._alpha=100);const{h:Ce,s:$e,v:xe}=rgb2hsv(le,pe,_e);ae(Ce,$e,xe)}}compare(oe){return Math.abs(oe._hue-this._hue)<2&&Math.abs(oe._saturation-this._saturation)<1&&Math.abs(oe._value-this._value)<1&&Math.abs(oe._alpha-this._alpha)<1}doOnChange(){const{_hue:oe,_saturation:ae,_value:ie,_alpha:le,format:pe}=this;if(this.enableAlpha)switch(pe){case"hsl":{const _e=hsv2hsl(oe,ae/100,ie/100);this.value=`hsla(${oe}, ${Math.round(_e[1]*100)}%, ${Math.round(_e[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${oe}, ${Math.round(ae)}%, ${Math.round(ie)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex$1(hsv2rgb(oe,ae,ie))}${hexOne(le*255/100)}`;break}default:{const{r:_e,g:Ce,b:$e}=hsv2rgb(oe,ae,ie);this.value=`rgba(${_e}, ${Ce}, ${$e}, ${this.get("alpha")/100})`}}else switch(pe){case"hsl":{const _e=hsv2hsl(oe,ae/100,ie/100);this.value=`hsl(${oe}, ${Math.round(_e[1]*100)}%, ${Math.round(_e[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${oe}, ${Math.round(ae)}%, ${Math.round(ie)}%)`;break}case"rgb":{const{r:_e,g:Ce,b:$e}=hsv2rgb(oe,ae,ie);this.value=`rgb(${_e}, ${Ce}, ${$e})`;break}default:this.value=toHex$1(hsv2rgb(oe,ae,ie))}}}const _sfc_main$1v=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup($){const oe=useNamespace("color-predefine"),{currentColor:ae}=inject(colorPickerContextKey),ie=ref(pe($.colors,$.color));watch(()=>ae.value,_e=>{const Ce=new Color;Ce.fromString(_e),ie.value.forEach($e=>{$e.selected=Ce.compare($e)})}),watchEffect(()=>{ie.value=pe($.colors,$.color)});function le(_e){$.color.fromString($.colors[_e])}function pe(_e,Ce){return _e.map($e=>{const xe=new Color;return xe.enableAlpha=!0,xe.format="rgba",xe.fromString($e),xe.selected=xe.value===Ce.value,xe})}return{rgbaColors:ie,handleSelect:le,ns:oe}}}),_hoisted_1$N=["onClick"];function _sfc_render$r($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.rgbaColors,(_e,Ce)=>(openBlock(),createElementBlock("div",{key:$.colors[Ce],class:normalizeClass([$.ns.e("color-selector"),$.ns.is("alpha",_e._alpha<100),{selected:_e.selected}]),onClick:$e=>$.handleSelect(Ce)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:_e.value})},null,4)],10,_hoisted_1$N))),128))],2)],2)}var Predefine=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$r],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _sfc_main$1u=defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup($){const oe=useNamespace("color-svpanel"),ae=getCurrentInstance(),ie=ref(0),le=ref(0),pe=ref("hsl(0, 100%, 50%)"),_e=computed(()=>{const xe=$.color.get("hue"),Ie=$.color.get("value");return{hue:xe,value:Ie}});function Ce(){const xe=$.color.get("saturation"),Ie=$.color.get("value"),Ne=ae.vnode.el,{clientWidth:Fe,clientHeight:ze}=Ne;le.value=xe*Fe/100,ie.value=(100-Ie)*ze/100,pe.value=`hsl(${$.color.get("hue")}, 100%, 50%)`}function $e(xe){const Ne=ae.vnode.el.getBoundingClientRect(),{clientX:Fe,clientY:ze}=getClientXY(xe);let At=Fe-Ne.left,Lt=ze-Ne.top;At=Math.max(0,At),At=Math.min(At,Ne.width),Lt=Math.max(0,Lt),Lt=Math.min(Lt,Ne.height),le.value=At,ie.value=Lt,$.color.set({saturation:At/Ne.width*100,value:100-Lt/Ne.height*100})}return watch(()=>_e.value,()=>{Ce()}),onMounted(()=>{draggable(ae.vnode.el,{drag:xe=>{$e(xe)},end:xe=>{$e(xe)}}),Ce()}),{cursorTop:ie,cursorLeft:le,background:pe,colorValue:_e,handleDrag:$e,update:Ce,ns:oe}}}),_hoisted_1$M=createBaseVNode("div",null,null,-1),_hoisted_2$v=[_hoisted_1$M];function _sfc_render$q($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass($.ns.b()),style:normalizeStyle$1({backgroundColor:$.background})},[createBaseVNode("div",{class:normalizeClass($.ns.e("white"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("black"))},null,2),createBaseVNode("div",{class:normalizeClass($.ns.e("cursor")),style:normalizeStyle$1({top:$.cursorTop+"px",left:$.cursorLeft+"px"})},_hoisted_2$v,6)],6)}var SvPanel=_export_sfc$1(_sfc_main$1u,[["render",_sfc_render$q],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _hoisted_1$L=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],__default__$X=defineComponent({name:"ElColorPicker"}),_sfc_main$1t=defineComponent({...__default__$X,props:colorPickerProps,emits:colorPickerEmits,setup($,{expose:oe,emit:ae}){const ie=$,{t:le}=useLocale(),pe=useNamespace("color"),{formItem:_e}=useFormItem(),Ce=useFormSize(),$e=useFormDisabled(),{inputId:xe,isLabeledByFormItem:Ie}=useFormItemInputId(ie,{formItemContext:_e}),Ne=ref(),Fe=ref(),ze=ref(),At=ref();let Lt=!0;const hn=reactive(new Color({enableAlpha:ie.showAlpha,format:ie.colorFormat||"",value:ie.modelValue})),vn=ref(!1),_n=ref(!1),bn=ref(""),Cn=computed(()=>!ie.modelValue&&!_n.value?"transparent":xn(hn,ie.showAlpha)),En=computed(()=>!ie.modelValue&&!_n.value?"":hn.value),$n=computed(()=>Ie.value?void 0:ie.label||le("el.colorpicker.defaultLabel")),wn=computed(()=>Ie.value?_e==null?void 0:_e.labelId:void 0),Tn=computed(()=>[pe.b("picker"),pe.is("disabled",$e.value),pe.bm("picker",Ce.value)]);function xn(Vn,jn){if(!(Vn instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Zn,g:Gn,b:Xn}=Vn.toRgb();return jn?`rgba(${Zn}, ${Gn}, ${Xn}, ${Vn.get("alpha")/100})`:`rgb(${Zn}, ${Gn}, ${Xn})`}function kn(Vn){vn.value=Vn}const An=debounce(kn,100);function On(){$e.value||kn(!0)}function Nn(){An(!1),Rn()}function Rn(){nextTick(()=>{ie.modelValue?hn.fromString(ie.modelValue):(hn.value="",nextTick(()=>{_n.value=!1}))})}function zn(){$e.value||An(!vn.value)}function Bn(){hn.fromString(bn.value)}function Mn(){const Vn=hn.value;ae(UPDATE_MODEL_EVENT,Vn),ae("change",Vn),ie.validateEvent&&(_e==null||_e.validate("change").catch(jn=>void 0)),An(!1),nextTick(()=>{const jn=new Color({enableAlpha:ie.showAlpha,format:ie.colorFormat||"",value:ie.modelValue});hn.compare(jn)||Rn()})}function Fn(){An(!1),ae(UPDATE_MODEL_EVENT,null),ae("change",null),ie.modelValue!==null&&ie.validateEvent&&(_e==null||_e.validate("change").catch(Vn=>void 0)),Rn()}return onMounted(()=>{ie.modelValue&&(bn.value=En.value)}),watch(()=>ie.modelValue,Vn=>{Vn?Vn&&Vn!==hn.value&&(Lt=!1,hn.fromString(Vn)):_n.value=!1}),watch(()=>En.value,Vn=>{bn.value=Vn,Lt&&ae("activeChange",Vn),Lt=!0}),watch(()=>hn.value,()=>{!ie.modelValue&&!_n.value&&(_n.value=!0)}),watch(()=>vn.value,()=>{nextTick(()=>{var Vn,jn,Zn;(Vn=Ne.value)==null||Vn.update(),(jn=Fe.value)==null||jn.update(),(Zn=ze.value)==null||Zn.update()})}),provide(colorPickerContextKey,{currentColor:En}),oe({color:hn,show:On,hide:Nn}),(Vn,jn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:At,visible:vn.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(pe).be("picker","panel"),unref(pe).b("dropdown"),Vn.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${unref(pe).namespace.value}-zoom-in-top`,persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass(unref(pe).be("dropdown","main-wrapper"))},[createVNode(HueSlider,{ref_key:"hue",ref:Ne,class:"hue-slider",color:unref(hn),vertical:""},null,8,["color"]),createVNode(SvPanel,{ref:"svPanel",color:unref(hn)},null,8,["color"])],2),Vn.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alpha",ref:ze,color:unref(hn)},null,8,["color"])):createCommentVNode("v-if",!0),Vn.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine",color:unref(hn),colors:Vn.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).be("dropdown","value"))},[createVNode(unref(ElInput),{modelValue:bn.value,"onUpdate:modelValue":jn[0]||(jn[0]=Zn=>bn.value=Zn),"validate-event":!1,size:"small",onKeyup:withKeys(Bn,["enter"]),onBlur:Bn},null,8,["modelValue","onKeyup"])],2),createVNode(unref(ElButton),{class:normalizeClass(unref(pe).be("dropdown","link-btn")),text:"",size:"small",onClick:Fn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(le)("el.colorpicker.clear")),1)]),_:1},8,["class"]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(pe).be("dropdown","btn")),onClick:Mn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(le)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[unref(ClickOutside),Nn]])]),default:withCtx(()=>[createBaseVNode("div",{id:unref(xe),class:normalizeClass(unref(Tn)),role:"button","aria-label":unref($n),"aria-labelledby":unref(wn),"aria-description":unref(le)("el.colorpicker.description",{color:Vn.modelValue||""}),tabindex:Vn.tabindex,onKeydown:withKeys(zn,["enter"])},[unref($e)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(pe).be("picker","trigger")),onClick:zn},[createBaseVNode("span",{class:normalizeClass([unref(pe).be("picker","color"),unref(pe).is("alpha",Vn.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(pe).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:unref(Cn)})},[withDirectives(createVNode(unref(ElIcon),{class:normalizeClass([unref(pe).be("picker","icon"),unref(pe).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,Vn.modelValue||_n.value]]),!Vn.modelValue&&!_n.value?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(pe).be("picker","empty"),unref(pe).is("icon-close")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)],2)],2)],42,_hoisted_1$L)]),_:1},8,["visible","popper-class","transition"]))}});var ColorPicker=_export_sfc$1(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/color-picker.vue"]]);const ElColorPicker=withInstall(ColorPicker),__default__$W=defineComponent({name:"ElContainer"}),_sfc_main$1s=defineComponent({...__default__$W,props:{direction:{type:String}},setup($){const oe=$,ae=useSlots(),ie=useNamespace("container"),le=computed(()=>oe.direction==="vertical"?!0:oe.direction==="horizontal"?!1:ae&&ae.default?ae.default().some(_e=>{const Ce=_e.type.name;return Ce==="ElHeader"||Ce==="ElFooter"}):!1);return(pe,_e)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(ie).b(),unref(ie).is("vertical",unref(le))])},[renderSlot(pe.$slots,"default")],2))}});var Container=_export_sfc$1(_sfc_main$1s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const __default__$V=defineComponent({name:"ElAside"}),_sfc_main$1r=defineComponent({...__default__$V,props:{width:{type:String,default:null}},setup($){const oe=$,ae=useNamespace("aside"),ie=computed(()=>oe.width?ae.cssVarBlock({width:oe.width}):{});return(le,pe)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref(ae).b()),style:normalizeStyle$1(unref(ie))},[renderSlot(le.$slots,"default")],6))}});var Aside=_export_sfc$1(_sfc_main$1r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const __default__$U=defineComponent({name:"ElFooter"}),_sfc_main$1q=defineComponent({...__default__$U,props:{height:{type:String,default:null}},setup($){const oe=$,ae=useNamespace("footer"),ie=computed(()=>oe.height?ae.cssVarBlock({height:oe.height}):{});return(le,pe)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref(ae).b()),style:normalizeStyle$1(unref(ie))},[renderSlot(le.$slots,"default")],6))}});var Footer$2=_export_sfc$1(_sfc_main$1q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const __default__$T=defineComponent({name:"ElHeader"}),_sfc_main$1p=defineComponent({...__default__$T,props:{height:{type:String,default:null}},setup($){const oe=$,ae=useNamespace("header"),ie=computed(()=>oe.height?ae.cssVarBlock({height:oe.height}):{});return(le,pe)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref(ae).b()),style:normalizeStyle$1(unref(ie))},[renderSlot(le.$slots,"default")],6))}});var Header=_export_sfc$1(_sfc_main$1p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const __default__$S=defineComponent({name:"ElMain"}),_sfc_main$1o=defineComponent({...__default__$S,setup($){const oe=useNamespace("main");return(ae,ie)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(oe).b())},[renderSlot(ae.$slots,"default")],2))}});var Main=_export_sfc$1(_sfc_main$1o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/main.vue"]]);const ElContainer=withInstall(Container,{Aside,Footer:Footer$2,Header,Main}),ElAside=withNoopInstall(Aside),ElFooter=withNoopInstall(Footer$2),ElHeader=withNoopInstall(Header),ElMain=withNoopInstall(Main);var advancedFormat$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){var le=ie.prototype,pe=le.format;le.format=function(_e){var Ce=this,$e=this.$locale();if(!this.isValid())return pe.bind(this)(_e);var xe=this.$utils(),Ie=(_e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(Ne){switch(Ne){case"Q":return Math.ceil((Ce.$M+1)/3);case"Do":return $e.ordinal(Ce.$D);case"gggg":return Ce.weekYear();case"GGGG":return Ce.isoWeekYear();case"wo":return $e.ordinal(Ce.week(),"W");case"w":case"ww":return xe.s(Ce.week(),Ne==="w"?1:2,"0");case"W":case"WW":return xe.s(Ce.isoWeek(),Ne==="W"?1:2,"0");case"k":case"kk":return xe.s(String(Ce.$H===0?24:Ce.$H),Ne==="k"?1:2,"0");case"X":return Math.floor(Ce.$d.getTime()/1e3);case"x":return Ce.$d.getTime();case"z":return"["+Ce.offsetName()+"]";case"zzz":return"["+Ce.offsetName("long")+"]";default:return Ne}});return pe.bind(this)(Ie)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){var ae="week",ie="year";return function(le,pe,_e){var Ce=pe.prototype;Ce.week=function($e){if($e===void 0&&($e=null),$e!==null)return this.add(7*($e-this.week()),"day");var xe=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var Ie=_e(this).startOf(ie).add(1,ie).date(xe),Ne=_e(this).endOf(ae);if(Ie.isBefore(Ne))return 1}var Fe=_e(this).startOf(ie).date(xe).startOf(ae).subtract(1,"millisecond"),ze=this.diff(Fe,ae,!0);return ze<0?_e(this).startOf("week").week():Math.ceil(ze)},Ce.weeks=function($e){return $e===void 0&&($e=null),this.week($e)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){ie.prototype.weekYear=function(){var le=this.month(),pe=this.week(),_e=this.year();return pe===1&&le===11?_e+1:le===0&&pe>=52?_e-1:_e}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie,le){ie.prototype.dayOfYear=function(pe){var _e=Math.round((le(this).startOf("day")-le(this).startOf("year"))/864e5)+1;return pe==null?_e:this.add(pe-_e,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){ie.prototype.isSameOrAfter=function(le,pe){return this.isSame(le,pe)||this.isAfter(le,pe)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){return function(ae,ie){ie.prototype.isSameOrBefore=function(le,pe){return this.isSame(le,pe)||this.isBefore(le,pe)}}})})(isSameOrBefore$1);var isSameOrBeforeExports=isSameOrBefore$1.exports;const isSameOrBefore=getDefaultExportFromCjs(isSameOrBeforeExports),ROOT_PICKER_INJECTION_KEY=Symbol(),datePickerProps=buildProps({...timePickerDefaultProps,type:{type:definePropType(String),default:"date"}}),selectionModes=["date","dates","year","month","week","range"],datePickerSharedProps=buildProps({disabledDate:{type:definePropType(Function)},date:{type:definePropType(Object),required:!0},minDate:{type:definePropType(Object)},maxDate:{type:definePropType(Object)},parsedValue:{type:definePropType([Object,Array])},rangeState:{type:definePropType(Object),default:()=>({endDate:null,selecting:!1})}}),panelSharedProps=buildProps({type:{type:definePropType(String),required:!0,values:datePickTypes}}),panelRangeSharedProps=buildProps({unlinkPanels:Boolean,parsedValue:{type:definePropType(Array)}}),selectionModeWithDefault=$=>({type:String,values:selectionModes,default:$}),panelDatePickProps=buildProps({...panelSharedProps,parsedValue:{type:definePropType([Object,Array])},visible:{type:Boolean},format:{type:String,default:""}}),basicDateTableProps=buildProps({...datePickerSharedProps,cellClassName:{type:definePropType(Function)},showWeekNumber:Boolean,selectionMode:selectionModeWithDefault("date")}),isValidRange=$=>{if(!isArray$c($))return!1;const[oe,ae]=$;return dayjs.isDayjs(oe)&&dayjs.isDayjs(ae)&&oe.isSameOrBefore(ae)},getDefaultValue=($,{lang:oe,unit:ae,unlinkPanels:ie})=>{let le;if(isArray$c($)){let[pe,_e]=$.map(Ce=>dayjs(Ce).locale(oe));return ie||(_e=pe.add(1,ae)),[pe,_e]}else $?le=dayjs($):le=dayjs();return le=le.locale(oe),[le,le.add(1,ae)]},buildPickerTable=($,oe,{columnIndexOffset:ae,startDate:ie,nextEndDate:le,now:pe,unit:_e,relativeDateGetter:Ce,setCellMetadata:$e,setRowMetadata:xe})=>{for(let Ie=0;Ie<$.row;Ie++){const Ne=oe[Ie];for(let Fe=0;Fe<$.column;Fe++){let ze=Ne[Fe+ae];ze||(ze={row:Ie,column:Fe,type:"normal",inRange:!1,start:!1,end:!1});const At=Ie*$.column+Fe,Lt=Ce(At);ze.dayjs=Lt,ze.date=Lt.toDate(),ze.timestamp=Lt.valueOf(),ze.type="normal",ze.inRange=!!(ie&&Lt.isSameOrAfter(ie,_e)&&le&&Lt.isSameOrBefore(le,_e))||!!(ie&&Lt.isSameOrBefore(ie,_e)&&le&&Lt.isSameOrAfter(le,_e)),ie!=null&&ie.isSameOrAfter(le)?(ze.start=!!le&&Lt.isSame(le,_e),ze.end=ie&&Lt.isSame(ie,_e)):(ze.start=!!ie&&Lt.isSame(ie,_e),ze.end=!!le&&Lt.isSame(le,_e)),Lt.isSame(pe,_e)&&(ze.type="today"),$e==null||$e(ze,{rowIndex:Ie,columnIndex:Fe}),Ne[Fe+ae]=ze}xe==null||xe(Ne)}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup($){const oe=useNamespace("date-table-cell"),{slots:ae}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:ie}=$;if(ae.default){const le=ae.default(ie).filter(pe=>pe.patchFlag!==-2&&pe.type.toString()!=="Symbol(Comment)");if(le.length)return le}return createVNode("div",{class:oe.b()},[createVNode("span",{class:oe.e("text")},[ie==null?void 0:ie.text])])}}});const _hoisted_1$K=["aria-label","onMousedown"],_hoisted_2$u={key:0,scope:"col"},_hoisted_3$h=["aria-label"],_hoisted_4$c=["aria-current","aria-selected","tabindex"],_sfc_main$1n=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:["changerange","pick","select"],setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("date-table"),{t:pe,lang:_e}=useLocale(),Ce=ref(),$e=ref(),xe=ref(),Ie=ref(),Ne=ref([[],[],[],[],[],[]]);let Fe=!1;const ze=ie.date.$locale().weekStart||7,At=ie.date.locale("en").localeData().weekdaysShort().map(Gn=>Gn.toLowerCase()),Lt=computed(()=>ze>3?7-ze:-ze),hn=computed(()=>{const Gn=ie.date.startOf("month");return Gn.subtract(Gn.day()||7,"day")}),vn=computed(()=>At.concat(At).slice(ze,ze+7)),_n=computed(()=>flatten(Tn.value).some(Gn=>Gn.isCurrent)),bn=computed(()=>{const Gn=ie.date.startOf("month"),Xn=Gn.day()||7,cr=Gn.daysInMonth(),nr=Gn.subtract(1,"month").daysInMonth();return{startOfMonthDay:Xn,dateCountOfMonth:cr,dateCountOfLastMonth:nr}}),Cn=computed(()=>ie.selectionMode==="dates"?castArray(ie.parsedValue):[]),En=(Gn,{count:Xn,rowIndex:cr,columnIndex:nr})=>{const{startOfMonthDay:er,dateCountOfMonth:rr,dateCountOfLastMonth:qn}=unref(bn),Yn=unref(Lt);if(cr>=0&&cr<=1){const ar=er+Yn<0?7+er+Yn:er+Yn;if(nr+cr*7>=ar)return Gn.text=Xn,!0;Gn.text=qn-(ar-nr%7)+1+cr*7,Gn.type="prev-month"}else return Xn<=rr?Gn.text=Xn:(Gn.text=Xn-rr,Gn.type="next-month"),!0;return!1},$n=(Gn,{columnIndex:Xn,rowIndex:cr},nr)=>{const{disabledDate:er,cellClassName:rr}=ie,qn=unref(Cn),Yn=En(Gn,{count:nr,rowIndex:cr,columnIndex:Xn}),ar=Gn.dayjs.toDate();return Gn.selected=qn.find(pr=>pr.valueOf()===Gn.dayjs.valueOf()),Gn.isSelected=!!Gn.selected,Gn.isCurrent=An(Gn),Gn.disabled=er==null?void 0:er(ar),Gn.customClass=rr==null?void 0:rr(ar),Yn},wn=Gn=>{if(ie.selectionMode==="week"){const[Xn,cr]=ie.showWeekNumber?[1,7]:[0,6],nr=Zn(Gn[Xn+1]);Gn[Xn].inRange=nr,Gn[Xn].start=nr,Gn[cr].inRange=nr,Gn[cr].end=nr}},Tn=computed(()=>{const{minDate:Gn,maxDate:Xn,rangeState:cr,showWeekNumber:nr}=ie,er=Lt.value,rr=Ne.value,qn="day";let Yn=1;if(nr)for(let ar=0;ar<6;ar++)rr[ar][0]||(rr[ar][0]={type:"week",text:hn.value.add(ar*7+1,qn).week()});return buildPickerTable({row:6,column:7},rr,{startDate:Gn,columnIndexOffset:nr?1:0,nextEndDate:cr.endDate||Xn||cr.selecting&&Gn||null,now:dayjs().locale(unref(_e)).startOf(qn),unit:qn,relativeDateGetter:ar=>hn.value.add(ar-er,qn),setCellMetadata:(...ar)=>{$n(...ar,Yn)&&(Yn+=1)},setRowMetadata:wn}),rr});watch(()=>ie.date,async()=>{var Gn,Xn;(Gn=Ce.value)!=null&&Gn.contains(document.activeElement)&&(await nextTick(),(Xn=$e.value)==null||Xn.focus())});const xn=async()=>{var Gn;(Gn=$e.value)==null||Gn.focus()},kn=(Gn="")=>["normal","today"].includes(Gn),An=Gn=>ie.selectionMode==="date"&&kn(Gn.type)&&On(Gn,ie.parsedValue),On=(Gn,Xn)=>Xn?dayjs(Xn).locale(_e.value).isSame(ie.date.date(Number(Gn.text)),"day"):!1,Nn=Gn=>{const Xn=[];return kn(Gn.type)&&!Gn.disabled?(Xn.push("available"),Gn.type==="today"&&Xn.push("today")):Xn.push(Gn.type),An(Gn)&&Xn.push("current"),Gn.inRange&&(kn(Gn.type)||ie.selectionMode==="week")&&(Xn.push("in-range"),Gn.start&&Xn.push("start-date"),Gn.end&&Xn.push("end-date")),Gn.disabled&&Xn.push("disabled"),Gn.selected&&Xn.push("selected"),Gn.customClass&&Xn.push(Gn.customClass),Xn.join(" ")},Rn=(Gn,Xn)=>{const cr=Gn*7+(Xn-(ie.showWeekNumber?1:0))-Lt.value;return hn.value.add(cr,"day")},zn=Gn=>{var Xn;if(!ie.rangeState.selecting)return;let cr=Gn.target;if(cr.tagName==="SPAN"&&(cr=(Xn=cr.parentNode)==null?void 0:Xn.parentNode),cr.tagName==="DIV"&&(cr=cr.parentNode),cr.tagName!=="TD")return;const nr=cr.parentNode.rowIndex-1,er=cr.cellIndex;Tn.value[nr][er].disabled||(nr!==xe.value||er!==Ie.value)&&(xe.value=nr,Ie.value=er,ae("changerange",{selecting:!0,endDate:Rn(nr,er)}))},Bn=Gn=>!_n.value&&(Gn==null?void 0:Gn.text)===1&&Gn.type==="normal"||Gn.isCurrent,Mn=Gn=>{Fe||_n.value||ie.selectionMode!=="date"||jn(Gn,!0)},Fn=Gn=>{Gn.target.closest("td")&&(Fe=!0)},Vn=Gn=>{Gn.target.closest("td")&&(Fe=!1)},jn=(Gn,Xn=!1)=>{const cr=Gn.target.closest("td");if(!cr)return;const nr=cr.parentNode.rowIndex-1,er=cr.cellIndex,rr=Tn.value[nr][er];if(rr.disabled||rr.type==="week")return;const qn=Rn(nr,er);if(ie.selectionMode==="range")!ie.rangeState.selecting||!ie.minDate?(ae("pick",{minDate:qn,maxDate:null}),ae("select",!0)):(qn>=ie.minDate?ae("pick",{minDate:ie.minDate,maxDate:qn}):ae("pick",{minDate:qn,maxDate:ie.minDate}),ae("select",!1));else if(ie.selectionMode==="date")ae("pick",qn,Xn);else if(ie.selectionMode==="week"){const Yn=qn.week(),ar=`${qn.year()}w${Yn}`;ae("pick",{year:qn.year(),week:Yn,value:ar,date:qn.startOf("week")})}else if(ie.selectionMode==="dates"){const Yn=rr.selected?castArray(ie.parsedValue).filter(ar=>(ar==null?void 0:ar.valueOf())!==qn.valueOf()):castArray(ie.parsedValue).concat([qn]);ae("pick",Yn)}},Zn=Gn=>{if(ie.selectionMode!=="week")return!1;let Xn=ie.date.startOf("day");if(Gn.type==="prev-month"&&(Xn=Xn.subtract(1,"month")),Gn.type==="next-month"&&(Xn=Xn.add(1,"month")),Xn=Xn.date(Number.parseInt(Gn.text,10)),ie.parsedValue&&!Array.isArray(ie.parsedValue)){const cr=(ie.parsedValue.day()-ze+7)%7-1;return ie.parsedValue.subtract(cr,"day").isSame(Xn,"day")}return!1};return oe({focus:xn}),(Gn,Xn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(pe)("el.datepicker.dateTablePrompt"),cellspacing:"0",cellpadding:"0",class:normalizeClass([unref(le).b(),{"is-week-mode":Gn.selectionMode==="week"}]),onClick:jn,onMousemove:zn,onMousedown:withModifiers(Fn,["prevent"]),onMouseup:Vn},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:Ce},[createBaseVNode("tr",null,[Gn.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$u,toDisplayString$1(unref(pe)("el.datepicker.week")),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(vn),(cr,nr)=>(openBlock(),createElementBlock("th",{key:nr,scope:"col","aria-label":unref(pe)("el.datepicker.weeksFull."+cr)},toDisplayString$1(unref(pe)("el.datepicker.weeks."+cr)),9,_hoisted_3$h))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Tn),(cr,nr)=>(openBlock(),createElementBlock("tr",{key:nr,class:normalizeClass([unref(le).e("row"),{current:Zn(cr[1])}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList(cr,(er,rr)=>(openBlock(),createElementBlock("td",{key:`${nr}.${rr}`,ref_for:!0,ref:qn=>Bn(er)&&($e.value=qn),class:normalizeClass(Nn(er)),"aria-current":er.isCurrent?"date":void 0,"aria-selected":er.isCurrent,tabindex:Bn(er)?0:-1,onFocus:Mn},[createVNode(unref(ElDatePickerCell),{cell:er},null,8,["cell"])],42,_hoisted_4$c))),128))],2))),128))],512)],42,_hoisted_1$K))}});var DateTable=_export_sfc$1(_sfc_main$1n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-date-table.vue"]]);const basicMonthTableProps=buildProps({...datePickerSharedProps,selectionMode:selectionModeWithDefault("month")}),_hoisted_1$J=["aria-label"],_hoisted_2$t=["aria-selected","aria-label","tabindex","onKeydown"],_hoisted_3$g={class:"cell"},_sfc_main$1m=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup($,{expose:oe,emit:ae}){const ie=$,le=(Cn,En,$n)=>{const wn=dayjs().locale($n).startOf("month").month(En).year(Cn),Tn=wn.daysInMonth();return rangeArr(Tn).map(xn=>wn.add(xn,"day").toDate())},pe=useNamespace("month-table"),{t:_e,lang:Ce}=useLocale(),$e=ref(),xe=ref(),Ie=ref(ie.date.locale("en").localeData().monthsShort().map(Cn=>Cn.toLowerCase())),Ne=ref([[],[],[]]),Fe=ref(),ze=ref(),At=computed(()=>{var Cn,En;const $n=Ne.value,wn=dayjs().locale(Ce.value).startOf("month");for(let Tn=0;Tn<3;Tn++){const xn=$n[Tn];for(let kn=0;kn<4;kn++){const An=xn[kn]||(xn[kn]={row:Tn,column:kn,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});An.type="normal";const On=Tn*4+kn,Nn=ie.date.startOf("year").month(On),Rn=ie.rangeState.endDate||ie.maxDate||ie.rangeState.selecting&&ie.minDate||null;An.inRange=!!(ie.minDate&&Nn.isSameOrAfter(ie.minDate,"month")&&Rn&&Nn.isSameOrBefore(Rn,"month"))||!!(ie.minDate&&Nn.isSameOrBefore(ie.minDate,"month")&&Rn&&Nn.isSameOrAfter(Rn,"month")),(Cn=ie.minDate)!=null&&Cn.isSameOrAfter(Rn)?(An.start=!!(Rn&&Nn.isSame(Rn,"month")),An.end=ie.minDate&&Nn.isSame(ie.minDate,"month")):(An.start=!!(ie.minDate&&Nn.isSame(ie.minDate,"month")),An.end=!!(Rn&&Nn.isSame(Rn,"month"))),wn.isSame(Nn)&&(An.type="today"),An.text=On,An.disabled=((En=ie.disabledDate)==null?void 0:En.call(ie,Nn.toDate()))||!1}}return $n}),Lt=()=>{var Cn;(Cn=xe.value)==null||Cn.focus()},hn=Cn=>{const En={},$n=ie.date.year(),wn=new Date,Tn=Cn.text;return En.disabled=ie.disabledDate?le($n,Tn,Ce.value).every(ie.disabledDate):!1,En.current=castArray(ie.parsedValue).findIndex(xn=>dayjs.isDayjs(xn)&&xn.year()===$n&&xn.month()===Tn)>=0,En.today=wn.getFullYear()===$n&&wn.getMonth()===Tn,Cn.inRange&&(En["in-range"]=!0,Cn.start&&(En["start-date"]=!0),Cn.end&&(En["end-date"]=!0)),En},vn=Cn=>{const En=ie.date.year(),$n=Cn.text;return castArray(ie.date).findIndex(wn=>wn.year()===En&&wn.month()===$n)>=0},_n=Cn=>{var En;if(!ie.rangeState.selecting)return;let $n=Cn.target;if($n.tagName==="A"&&($n=(En=$n.parentNode)==null?void 0:En.parentNode),$n.tagName==="DIV"&&($n=$n.parentNode),$n.tagName!=="TD")return;const wn=$n.parentNode.rowIndex,Tn=$n.cellIndex;At.value[wn][Tn].disabled||(wn!==Fe.value||Tn!==ze.value)&&(Fe.value=wn,ze.value=Tn,ae("changerange",{selecting:!0,endDate:ie.date.startOf("year").month(wn*4+Tn)}))},bn=Cn=>{var En;const $n=(En=Cn.target)==null?void 0:En.closest("td");if(($n==null?void 0:$n.tagName)!=="TD"||hasClass($n,"disabled"))return;const wn=$n.cellIndex,xn=$n.parentNode.rowIndex*4+wn,kn=ie.date.startOf("year").month(xn);ie.selectionMode==="range"?ie.rangeState.selecting?(ie.minDate&&kn>=ie.minDate?ae("pick",{minDate:ie.minDate,maxDate:kn}):ae("pick",{minDate:kn,maxDate:ie.minDate}),ae("select",!1)):(ae("pick",{minDate:kn,maxDate:null}),ae("select",!0)):ae("pick",xn)};return watch(()=>ie.date,async()=>{var Cn,En;(Cn=$e.value)!=null&&Cn.contains(document.activeElement)&&(await nextTick(),(En=xe.value)==null||En.focus())}),oe({focus:Lt}),(Cn,En)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(_e)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(pe).b()),onClick:bn,onMousemove:_n},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:$e},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(At),($n,wn)=>(openBlock(),createElementBlock("tr",{key:wn},[(openBlock(!0),createElementBlock(Fragment,null,renderList($n,(Tn,xn)=>(openBlock(),createElementBlock("td",{key:xn,ref_for:!0,ref:kn=>vn(Tn)&&(xe.value=kn),class:normalizeClass(hn(Tn)),"aria-selected":`${vn(Tn)}`,"aria-label":unref(_e)(`el.datepicker.month${+Tn.text+1}`),tabindex:vn(Tn)?0:-1,onKeydown:[withKeys(withModifiers(bn,["prevent","stop"]),["space"]),withKeys(withModifiers(bn,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$g,toDisplayString$1(unref(_e)("el.datepicker.months."+Ie.value[Tn.text])),1)])],42,_hoisted_2$t))),128))]))),128))],512)],42,_hoisted_1$J))}});var MonthTable=_export_sfc$1(_sfc_main$1m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-month-table.vue"]]);const{date,disabledDate,parsedValue}=datePickerSharedProps,basicYearTableProps=buildProps({date,disabledDate,parsedValue}),_hoisted_1$I=["aria-label"],_hoisted_2$s=["aria-selected","tabindex","onKeydown"],_hoisted_3$f={class:"cell"},_hoisted_4$b={key:1},_sfc_main$1l=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup($,{expose:oe,emit:ae}){const ie=$,le=(Lt,hn)=>{const vn=dayjs(String(Lt)).locale(hn).startOf("year"),bn=vn.endOf("year").dayOfYear();return rangeArr(bn).map(Cn=>vn.add(Cn,"day").toDate())},pe=useNamespace("year-table"),{t:_e,lang:Ce}=useLocale(),$e=ref(),xe=ref(),Ie=computed(()=>Math.floor(ie.date.year()/10)*10),Ne=()=>{var Lt;(Lt=xe.value)==null||Lt.focus()},Fe=Lt=>{const hn={},vn=dayjs().locale(Ce.value);return hn.disabled=ie.disabledDate?le(Lt,Ce.value).every(ie.disabledDate):!1,hn.current=castArray(ie.parsedValue).findIndex(_n=>_n.year()===Lt)>=0,hn.today=vn.year()===Lt,hn},ze=Lt=>Lt===Ie.value&&ie.date.year()<Ie.value&&ie.date.year()>Ie.value+9||castArray(ie.date).findIndex(hn=>hn.year()===Lt)>=0,At=Lt=>{const vn=Lt.target.closest("td");if(vn&&vn.textContent){if(hasClass(vn,"disabled"))return;const _n=vn.textContent||vn.innerText;ae("pick",Number(_n))}};return watch(()=>ie.date,async()=>{var Lt,hn;(Lt=$e.value)!=null&&Lt.contains(document.activeElement)&&(await nextTick(),(hn=xe.value)==null||hn.focus())}),oe({focus:Ne}),(Lt,hn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(_e)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(pe).b()),onClick:At},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:$e},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(vn,_n)=>createBaseVNode("tr",{key:_n},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(bn,Cn)=>(openBlock(),createElementBlock(Fragment,{key:_n+"_"+Cn},[_n*4+Cn<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:En=>ze(unref(Ie)+_n*4+Cn)&&(xe.value=En),class:normalizeClass(["available",Fe(unref(Ie)+_n*4+Cn)]),"aria-selected":`${ze(unref(Ie)+_n*4+Cn)}`,tabindex:ze(unref(Ie)+_n*4+Cn)?0:-1,onKeydown:[withKeys(withModifiers(At,["prevent","stop"]),["space"]),withKeys(withModifiers(At,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$f,toDisplayString$1(unref(Ie)+_n*4+Cn),1)],42,_hoisted_2$s)):(openBlock(),createElementBlock("td",_hoisted_4$b))],64))),64))])),64))],512)],10,_hoisted_1$I))}});var YearTable=_export_sfc$1(_sfc_main$1l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$H=["onClick"],_hoisted_2$r=["aria-label"],_hoisted_3$e=["aria-label"],_hoisted_4$a=["aria-label"],_hoisted_5$7=["aria-label"],_sfc_main$1k=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup($,{emit:oe}){const ae=$,ie=($r,Tr,dr)=>!0,le=useNamespace("picker-panel"),pe=useNamespace("date-picker"),_e=useAttrs$1(),Ce=useSlots(),{t:$e,lang:xe}=useLocale(),Ie=inject("EP_PICKER_BASE"),Ne=inject(TOOLTIP_INJECTION_KEY),{shortcuts:Fe,disabledDate:ze,cellClassName:At,defaultTime:Lt,arrowControl:hn}=Ie.props,vn=toRef$1(Ie.props,"defaultValue"),_n=ref(),bn=ref(dayjs().locale(xe.value)),Cn=ref(!1),En=computed(()=>dayjs(Lt).locale(xe.value)),$n=computed(()=>bn.value.month()),wn=computed(()=>bn.value.year()),Tn=ref([]),xn=ref(null),kn=ref(null),An=$r=>Tn.value.length>0?ie($r,Tn.value,ae.format||"HH:mm:ss"):!0,On=$r=>Lt&&!Un.value&&!Cn.value?En.value.year($r.year()).month($r.month()).date($r.date()):er.value?$r.millisecond(0):$r.startOf("day"),Nn=($r,...Tr)=>{if(!$r)oe("pick",$r,...Tr);else if(isArray$c($r)){const dr=$r.map(On);oe("pick",dr,...Tr)}else oe("pick",On($r),...Tr);xn.value=null,kn.value=null,Cn.value=!1},Rn=($r,Tr)=>{if(jn.value==="date"){$r=$r;let dr=ae.parsedValue?ae.parsedValue.year($r.year()).month($r.month()).date($r.date()):$r;An(dr)||(dr=Tn.value[0][0].year($r.year()).month($r.month()).date($r.date())),bn.value=dr,Nn(dr,er.value||Tr)}else jn.value==="week"?Nn($r.date):jn.value==="dates"&&Nn($r,!0)},zn=$r=>{const Tr=$r?"add":"subtract";bn.value=bn.value[Tr](1,"month"),Rr("month")},Bn=$r=>{const Tr=bn.value,dr=$r?"add":"subtract";bn.value=Mn.value==="year"?Tr[dr](10,"year"):Tr[dr](1,"year"),Rr("year")},Mn=ref("date"),Fn=computed(()=>{const $r=$e("el.datepicker.year");if(Mn.value==="year"){const Tr=Math.floor(wn.value/10)*10;return $r?`${Tr} ${$r} - ${Tr+9} ${$r}`:`${Tr} - ${Tr+9}`}return`${wn.value} ${$r}`}),Vn=$r=>{const Tr=isFunction$5($r.value)?$r.value():$r.value;if(Tr){Nn(dayjs(Tr).locale(xe.value));return}$r.onClick&&$r.onClick({attrs:_e,slots:Ce,emit:oe})},jn=computed(()=>{const{type:$r}=ae;return["week","month","year","dates"].includes($r)?$r:"date"}),Zn=computed(()=>jn.value==="date"?Mn.value:jn.value),Gn=computed(()=>!!Fe.length),Xn=async $r=>{bn.value=bn.value.startOf("month").month($r),jn.value==="month"?Nn(bn.value,!1):(Mn.value="date",["month","year","date","week"].includes(jn.value)&&(Nn(bn.value,!0),await nextTick(),Or())),Rr("month")},cr=async $r=>{jn.value==="year"?(bn.value=bn.value.startOf("year").year($r),Nn(bn.value,!1)):(bn.value=bn.value.year($r),Mn.value="month",["month","year","date","week"].includes(jn.value)&&(Nn(bn.value,!0),await nextTick(),Or())),Rr("year")},nr=async $r=>{Mn.value=$r,await nextTick(),Or()},er=computed(()=>ae.type==="datetime"||ae.type==="datetimerange"),rr=computed(()=>er.value||jn.value==="dates"),qn=()=>{if(jn.value==="dates")Nn(ae.parsedValue);else{let $r=ae.parsedValue;if(!$r){const Tr=dayjs(Lt).locale(xe.value),dr=gr();$r=Tr.year(dr.year()).month(dr.month()).date(dr.date())}bn.value=$r,Nn($r)}},Yn=()=>{const Tr=dayjs().locale(xe.value).toDate();Cn.value=!0,(!ze||!ze(Tr))&&An(Tr)&&(bn.value=dayjs().locale(xe.value),Nn(bn.value))},ar=computed(()=>extractTimeFormat(ae.format)),pr=computed(()=>extractDateFormat(ae.format)),Un=computed(()=>{if(kn.value)return kn.value;if(!(!ae.parsedValue&&!vn.value))return(ae.parsedValue||bn.value).format(ar.value)}),tr=computed(()=>{if(xn.value)return xn.value;if(!(!ae.parsedValue&&!vn.value))return(ae.parsedValue||bn.value).format(pr.value)}),ur=ref(!1),_r=()=>{ur.value=!0},Er=()=>{ur.value=!1},sr=$r=>({hour:$r.hour(),minute:$r.minute(),second:$r.second(),year:$r.year(),month:$r.month(),date:$r.date()}),Pr=($r,Tr,dr)=>{const{hour:Jn,minute:ir,second:xr}=sr($r),Ir=ae.parsedValue?ae.parsedValue.hour(Jn).minute(ir).second(xr):$r;bn.value=Ir,Nn(bn.value,!0),dr||(ur.value=Tr)},Sr=$r=>{const Tr=dayjs($r,ar.value).locale(xe.value);if(Tr.isValid()&&An(Tr)){const{year:dr,month:Jn,date:ir}=sr(bn.value);bn.value=Tr.year(dr).month(Jn).date(ir),kn.value=null,ur.value=!1,Nn(bn.value,!0)}},kr=$r=>{const Tr=dayjs($r,pr.value).locale(xe.value);if(Tr.isValid()){if(ze&&ze(Tr.toDate()))return;const{hour:dr,minute:Jn,second:ir}=sr(bn.value);bn.value=Tr.hour(dr).minute(Jn).second(ir),xn.value=null,Nn(bn.value,!0)}},mr=$r=>dayjs.isDayjs($r)&&$r.isValid()&&(ze?!ze($r.toDate()):!0),lr=$r=>jn.value==="dates"?$r.map(Tr=>Tr.format(ae.format)):$r.format(ae.format),hr=$r=>dayjs($r,ae.format).locale(xe.value),gr=()=>{const $r=dayjs(vn.value).locale(xe.value);if(!vn.value){const Tr=En.value;return dayjs().hour(Tr.hour()).minute(Tr.minute()).second(Tr.second()).locale(xe.value)}return $r},Or=async()=>{var $r;["week","month","year","date"].includes(jn.value)&&(($r=_n.value)==null||$r.focus(),jn.value==="week"&&Vr(EVENT_CODE.down))},Lr=$r=>{const{code:Tr}=$r;[EVENT_CODE.up,EVENT_CODE.down,EVENT_CODE.left,EVENT_CODE.right,EVENT_CODE.home,EVENT_CODE.end,EVENT_CODE.pageUp,EVENT_CODE.pageDown].includes(Tr)&&(Vr(Tr),$r.stopPropagation(),$r.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(Tr)&&xn.value===null&&kn.value===null&&($r.preventDefault(),Nn(bn.value,!1))},Vr=$r=>{var Tr;const{up:dr,down:Jn,left:ir,right:xr,home:Ir,end:Hr,pageUp:Cr,pageDown:Mr}=EVENT_CODE,Ur={year:{[dr]:-4,[Jn]:4,[ir]:-1,[xr]:1,offset:(Wr,Xr)=>Wr.setFullYear(Wr.getFullYear()+Xr)},month:{[dr]:-4,[Jn]:4,[ir]:-1,[xr]:1,offset:(Wr,Xr)=>Wr.setMonth(Wr.getMonth()+Xr)},week:{[dr]:-1,[Jn]:1,[ir]:-1,[xr]:1,offset:(Wr,Xr)=>Wr.setDate(Wr.getDate()+Xr*7)},date:{[dr]:-7,[Jn]:7,[ir]:-1,[xr]:1,[Ir]:Wr=>-Wr.getDay(),[Hr]:Wr=>-Wr.getDay()+6,[Cr]:Wr=>-new Date(Wr.getFullYear(),Wr.getMonth(),0).getDate(),[Mr]:Wr=>new Date(Wr.getFullYear(),Wr.getMonth()+1,0).getDate(),offset:(Wr,Xr)=>Wr.setDate(Wr.getDate()+Xr)}},jr=bn.value.toDate();for(;Math.abs(bn.value.diff(jr,"year",!0))<1;){const Wr=Ur[Zn.value];if(!Wr)return;if(Wr.offset(jr,isFunction$5(Wr[$r])?Wr[$r](jr):(Tr=Wr[$r])!=null?Tr:0),ze&&ze(jr))break;const Xr=dayjs(jr).locale(xe.value);bn.value=Xr,oe("pick",Xr,!0);break}},Rr=$r=>{oe("panel-change",bn.value.toDate(),$r,Mn.value)};return watch(()=>jn.value,$r=>{if(["month","year"].includes($r)){Mn.value=$r;return}Mn.value="date"},{immediate:!0}),watch(()=>Mn.value,()=>{Ne==null||Ne.updatePopper()}),watch(()=>vn.value,$r=>{$r&&(bn.value=gr())},{immediate:!0}),watch(()=>ae.parsedValue,$r=>{if($r){if(jn.value==="dates"||Array.isArray($r))return;bn.value=$r}else bn.value=gr()},{immediate:!0}),oe("set-picker-option",["isValidValue",mr]),oe("set-picker-option",["formatToString",lr]),oe("set-picker-option",["parseUserInput",hr]),oe("set-picker-option",["handleFocusPicker",Or]),($r,Tr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(le).b(),unref(pe).b(),{"has-sidebar":$r.$slots.sidebar||unref(Gn),"has-time":unref(er)}])},[createBaseVNode("div",{class:normalizeClass(unref(le).e("body-wrapper"))},[renderSlot($r.$slots,"sidebar",{class:normalizeClass(unref(le).e("sidebar"))}),unref(Gn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),(dr,Jn)=>(openBlock(),createElementBlock("button",{key:Jn,type:"button",class:normalizeClass(unref(le).e("shortcut")),onClick:ir=>Vn(dr)},toDisplayString$1(dr.text),11,_hoisted_1$H))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("body"))},[unref(er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref($e)("el.datepicker.selectDate"),"model-value":unref(tr),size:"small","validate-event":!1,onInput:Tr[0]||(Tr[0]=dr=>xn.value=dr),onChange:kr},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(pe).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref($e)("el.datepicker.selectTime"),"model-value":unref(Un),size:"small","validate-event":!1,onFocus:_r,onInput:Tr[1]||(Tr[1]=dr=>kn.value=dr),onChange:Sr},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:ur.value,format:unref(ar),"time-arrow-control":unref(hn),"parsed-value":bn.value,onPick:Pr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),Er]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(pe).e("header"),(Mn.value==="year"||Mn.value==="month")&&unref(pe).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(pe).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(le).e("icon-btn")]),onClick:Tr[2]||(Tr[2]=dr=>Bn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_2$r),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.prevMonth"),class:normalizeClass([unref(le).e("icon-btn"),"arrow-left"]),onClick:Tr[3]||(Tr[3]=dr=>zn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$e),[[vShow,Mn.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(pe).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:Tr[4]||(Tr[4]=withKeys(dr=>nr("year"),["enter"])),onClick:Tr[5]||(Tr[5]=dr=>nr("year"))},toDisplayString$1(unref(Fn)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(pe).e("header-label"),{active:Mn.value==="month"}]),onKeydown:Tr[6]||(Tr[6]=withKeys(dr=>nr("month"),["enter"])),onClick:Tr[7]||(Tr[7]=dr=>nr("month"))},toDisplayString$1(unref($e)(`el.datepicker.month${unref($n)+1}`)),35),[[vShow,Mn.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(pe).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.nextMonth"),class:normalizeClass([unref(le).e("icon-btn"),"arrow-right"]),onClick:Tr[8]||(Tr[8]=dr=>zn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_4$a),[[vShow,Mn.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref($e)("el.datepicker.nextYear"),class:normalizeClass([unref(le).e("icon-btn"),"d-arrow-right"]),onClick:Tr[9]||(Tr[9]=dr=>Bn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_5$7)],2)],2),[[vShow,Mn.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref(le).e("content")),onKeydown:Lr},[Mn.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:_n,"selection-mode":unref(jn),date:bn.value,"parsed-value":$r.parsedValue,"disabled-date":unref(ze),"cell-class-name":unref(At),onPick:Rn},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",!0),Mn.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:_n,date:bn.value,"disabled-date":unref(ze),"parsed-value":$r.parsedValue,onPick:cr},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),Mn.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:_n,date:bn.value,"parsed-value":$r.parsedValue,"disabled-date":unref(ze),onPick:Xn},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",!0)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(le).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref(le).e("link-btn")),onClick:Yn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.now")),1)]),_:1},8,["class"]),[[vShow,unref(jn)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(le).e("link-btn")),onClick:qn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref($e)("el.datepicker.confirm")),1)]),_:1},8,["class"])],2),[[vShow,unref(rr)&&Mn.value==="date"]])],2))}});var DatePickPanel=_export_sfc$1(_sfc_main$1k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-pick.vue"]]);const panelDateRangeProps=buildProps({...panelSharedProps,...panelRangeSharedProps}),useShortcut=$=>{const{emit:oe}=getCurrentInstance(),ae=useAttrs$1(),ie=useSlots();return pe=>{const _e=isFunction$5(pe.value)?pe.value():pe.value;if(_e){oe("pick",[dayjs(_e[0]).locale($.value),dayjs(_e[1]).locale($.value)]);return}pe.onClick&&pe.onClick({attrs:ae,slots:ie,emit:oe})}},useRangePicker=($,{defaultValue:oe,leftDate:ae,rightDate:ie,unit:le,onParsedValueChanged:pe})=>{const{emit:_e}=getCurrentInstance(),{pickerNs:Ce}=inject(ROOT_PICKER_INJECTION_KEY),$e=useNamespace("date-range-picker"),{t:xe,lang:Ie}=useLocale(),Ne=useShortcut(Ie),Fe=ref(),ze=ref(),At=ref({endDate:null,selecting:!1}),Lt=bn=>{At.value=bn},hn=(bn=!1)=>{const Cn=unref(Fe),En=unref(ze);isValidRange([Cn,En])&&_e("pick",[Cn,En],bn)},vn=bn=>{At.value.selecting=bn,bn||(At.value.endDate=null)},_n=()=>{const[bn,Cn]=getDefaultValue(unref(oe),{lang:unref(Ie),unit:le,unlinkPanels:$.unlinkPanels});Fe.value=void 0,ze.value=void 0,ae.value=bn,ie.value=Cn};return watch(oe,bn=>{bn&&_n()},{immediate:!0}),watch(()=>$.parsedValue,bn=>{if(isArray$c(bn)&&bn.length===2){const[Cn,En]=bn;Fe.value=Cn,ae.value=Cn,ze.value=En,pe(unref(Fe),unref(ze))}else _n()},{immediate:!0}),{minDate:Fe,maxDate:ze,rangeState:At,lang:Ie,ppNs:Ce,drpNs:$e,handleChangeRange:Lt,handleRangeConfirm:hn,handleShortcutClick:Ne,onSelect:vn,t:xe}},_hoisted_1$G=["onClick"],_hoisted_2$q=["disabled"],_hoisted_3$d=["disabled"],_hoisted_4$9=["disabled"],_hoisted_5$6=["disabled"],unit$1="month",_sfc_main$1j=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change"],setup($,{emit:oe}){const ae=$,ie=inject("EP_PICKER_BASE"),{disabledDate:le,cellClassName:pe,format:_e,defaultTime:Ce,arrowControl:$e,clearable:xe}=ie.props,Ie=toRef$1(ie.props,"shortcuts"),Ne=toRef$1(ie.props,"defaultValue"),{lang:Fe}=useLocale(),ze=ref(dayjs().locale(Fe.value)),At=ref(dayjs().locale(Fe.value).add(1,unit$1)),{minDate:Lt,maxDate:hn,rangeState:vn,ppNs:_n,drpNs:bn,handleChangeRange:Cn,handleRangeConfirm:En,handleShortcutClick:$n,onSelect:wn,t:Tn}=useRangePicker(ae,{defaultValue:Ne,leftDate:ze,rightDate:At,unit:unit$1,onParsedValueChanged:Jn}),xn=ref({min:null,max:null}),kn=ref({min:null,max:null}),An=computed(()=>`${ze.value.year()} ${Tn("el.datepicker.year")} ${Tn(`el.datepicker.month${ze.value.month()+1}`)}`),On=computed(()=>`${At.value.year()} ${Tn("el.datepicker.year")} ${Tn(`el.datepicker.month${At.value.month()+1}`)}`),Nn=computed(()=>ze.value.year()),Rn=computed(()=>ze.value.month()),zn=computed(()=>At.value.year()),Bn=computed(()=>At.value.month()),Mn=computed(()=>!!Ie.value.length),Fn=computed(()=>xn.value.min!==null?xn.value.min:Lt.value?Lt.value.format(Xn.value):""),Vn=computed(()=>xn.value.max!==null?xn.value.max:hn.value||Lt.value?(hn.value||Lt.value).format(Xn.value):""),jn=computed(()=>kn.value.min!==null?kn.value.min:Lt.value?Lt.value.format(Gn.value):""),Zn=computed(()=>kn.value.max!==null?kn.value.max:hn.value||Lt.value?(hn.value||Lt.value).format(Gn.value):""),Gn=computed(()=>extractTimeFormat(_e)),Xn=computed(()=>extractDateFormat(_e)),cr=()=>{ze.value=ze.value.subtract(1,"year"),ae.unlinkPanels||(At.value=ze.value.add(1,"month")),Un("year")},nr=()=>{ze.value=ze.value.subtract(1,"month"),ae.unlinkPanels||(At.value=ze.value.add(1,"month")),Un("month")},er=()=>{ae.unlinkPanels?At.value=At.value.add(1,"year"):(ze.value=ze.value.add(1,"year"),At.value=ze.value.add(1,"month")),Un("year")},rr=()=>{ae.unlinkPanels?At.value=At.value.add(1,"month"):(ze.value=ze.value.add(1,"month"),At.value=ze.value.add(1,"month")),Un("month")},qn=()=>{ze.value=ze.value.add(1,"year"),Un("year")},Yn=()=>{ze.value=ze.value.add(1,"month"),Un("month")},ar=()=>{At.value=At.value.subtract(1,"year"),Un("year")},pr=()=>{At.value=At.value.subtract(1,"month"),Un("month")},Un=ir=>{oe("panel-change",[ze.value.toDate(),At.value.toDate()],ir)},tr=computed(()=>{const ir=(Rn.value+1)%12,xr=Rn.value+1>=12?1:0;return ae.unlinkPanels&&new Date(Nn.value+xr,ir)<new Date(zn.value,Bn.value)}),ur=computed(()=>ae.unlinkPanels&&zn.value*12+Bn.value-(Nn.value*12+Rn.value+1)>=12),_r=computed(()=>!(Lt.value&&hn.value&&!vn.value.selecting&&isValidRange([Lt.value,hn.value]))),Er=computed(()=>ae.type==="datetime"||ae.type==="datetimerange"),sr=(ir,xr)=>{if(ir)return Ce?dayjs(Ce[xr]||Ce).locale(Fe.value).year(ir.year()).month(ir.month()).date(ir.date()):ir},Pr=(ir,xr=!0)=>{const Ir=ir.minDate,Hr=ir.maxDate,Cr=sr(Ir,0),Mr=sr(Hr,1);hn.value===Mr&&Lt.value===Cr||(oe("calendar-change",[Ir.toDate(),Hr&&Hr.toDate()]),hn.value=Mr,Lt.value=Cr,!(!xr||Er.value)&&En())},Sr=ref(!1),kr=ref(!1),mr=()=>{Sr.value=!1},lr=()=>{kr.value=!1},hr=(ir,xr)=>{xn.value[xr]=ir;const Ir=dayjs(ir,Xn.value).locale(Fe.value);if(Ir.isValid()){if(le&&le(Ir.toDate()))return;xr==="min"?(ze.value=Ir,Lt.value=(Lt.value||ze.value).year(Ir.year()).month(Ir.month()).date(Ir.date()),ae.unlinkPanels||(At.value=Ir.add(1,"month"),hn.value=Lt.value.add(1,"month"))):(At.value=Ir,hn.value=(hn.value||At.value).year(Ir.year()).month(Ir.month()).date(Ir.date()),ae.unlinkPanels||(ze.value=Ir.subtract(1,"month"),Lt.value=hn.value.subtract(1,"month")))}},gr=(ir,xr)=>{xn.value[xr]=null},Or=(ir,xr)=>{kn.value[xr]=ir;const Ir=dayjs(ir,Gn.value).locale(Fe.value);Ir.isValid()&&(xr==="min"?(Sr.value=!0,Lt.value=(Lt.value||ze.value).hour(Ir.hour()).minute(Ir.minute()).second(Ir.second()),(!hn.value||hn.value.isBefore(Lt.value))&&(hn.value=Lt.value)):(kr.value=!0,hn.value=(hn.value||At.value).hour(Ir.hour()).minute(Ir.minute()).second(Ir.second()),At.value=hn.value,hn.value&&hn.value.isBefore(Lt.value)&&(Lt.value=hn.value)))},Lr=(ir,xr)=>{kn.value[xr]=null,xr==="min"?(ze.value=Lt.value,Sr.value=!1):(At.value=hn.value,kr.value=!1)},Vr=(ir,xr,Ir)=>{kn.value.min||(ir&&(ze.value=ir,Lt.value=(Lt.value||ze.value).hour(ir.hour()).minute(ir.minute()).second(ir.second())),Ir||(Sr.value=xr),(!hn.value||hn.value.isBefore(Lt.value))&&(hn.value=Lt.value,At.value=ir))},Rr=(ir,xr,Ir)=>{kn.value.max||(ir&&(At.value=ir,hn.value=(hn.value||At.value).hour(ir.hour()).minute(ir.minute()).second(ir.second())),Ir||(kr.value=xr),hn.value&&hn.value.isBefore(Lt.value)&&(Lt.value=hn.value))},$r=()=>{ze.value=getDefaultValue(unref(Ne),{lang:unref(Fe),unit:"month",unlinkPanels:ae.unlinkPanels})[0],At.value=ze.value.add(1,"month"),oe("pick",null)},Tr=ir=>isArray$c(ir)?ir.map(xr=>xr.format(_e)):ir.format(_e),dr=ir=>isArray$c(ir)?ir.map(xr=>dayjs(xr,_e).locale(Fe.value)):dayjs(ir,_e).locale(Fe.value);function Jn(ir,xr){if(ae.unlinkPanels&&xr){const Ir=(ir==null?void 0:ir.year())||0,Hr=(ir==null?void 0:ir.month())||0,Cr=xr.year(),Mr=xr.month();At.value=Ir===Cr&&Hr===Mr?xr.add(1,unit$1):xr}else At.value=ze.value.add(1,unit$1),xr&&(At.value=At.value.hour(xr.hour()).minute(xr.minute()).second(xr.second()))}return oe("set-picker-option",["isValidValue",isValidRange]),oe("set-picker-option",["parseUserInput",dr]),oe("set-picker-option",["formatToString",Tr]),oe("set-picker-option",["handleClear",$r]),(ir,xr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(_n).b(),unref(bn).b(),{"has-sidebar":ir.$slots.sidebar||unref(Mn),"has-time":unref(Er)}])},[createBaseVNode("div",{class:normalizeClass(unref(_n).e("body-wrapper"))},[renderSlot(ir.$slots,"sidebar",{class:normalizeClass(unref(_n).e("sidebar"))}),unref(Mn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_n).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),(Ir,Hr)=>(openBlock(),createElementBlock("button",{key:Hr,type:"button",class:normalizeClass(unref(_n).e("shortcut")),onClick:Cr=>unref($n)(Ir)},toDisplayString$1(Ir.text),11,_hoisted_1$G))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(_n).e("body"))},[unref(Er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(bn).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.startDate"),class:normalizeClass(unref(bn).e("editor")),"model-value":unref(Fn),"validate-event":!1,onInput:xr[0]||(xr[0]=Ir=>hr(Ir,"min")),onChange:xr[1]||(xr[1]=Ir=>gr(Ir,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.startTime"),"model-value":unref(jn),"validate-event":!1,onFocus:xr[2]||(xr[2]=Ir=>Sr.value=!0),onInput:xr[3]||(xr[3]=Ir=>Or(Ir,"min")),onChange:xr[4]||(xr[4]=Ir=>Lr(Ir,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:Sr.value,format:unref(Gn),"datetime-role":"start","time-arrow-control":unref($e),"parsed-value":ze.value,onPick:Vr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),mr]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(bn).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.endDate"),"model-value":unref(Vn),readonly:!unref(Lt),"validate-event":!1,onInput:xr[5]||(xr[5]=Ir=>hr(Ir,"max")),onChange:xr[6]||(xr[6]=Ir=>gr(Ir,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(bn).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(bn).e("editor")),disabled:unref(vn).selecting,placeholder:unref(Tn)("el.datepicker.endTime"),"model-value":unref(Zn),readonly:!unref(Lt),"validate-event":!1,onFocus:xr[7]||(xr[7]=Ir=>unref(Lt)&&(kr.value=!0)),onInput:xr[8]||(xr[8]=Ir=>Or(Ir,"max")),onChange:xr[9]||(xr[9]=Ir=>Lr(Ir,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:kr.value,format:unref(Gn),"time-arrow-control":unref($e),"parsed-value":At.value,onPick:Rr},null,8,["visible","format","time-arrow-control","parsed-value"])],2)),[[unref(ClickOutside),lr]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(_n).e("content"),unref(bn).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(bn).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"d-arrow-left"]),onClick:cr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"arrow-left"]),onClick:nr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(ur),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(ur)}],"d-arrow-right"]),onClick:qn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$q)):createCommentVNode("v-if",!0),ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(tr),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(tr)}],"arrow-right"]),onClick:Yn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_3$d)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(An)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:ze.value,"min-date":unref(Lt),"max-date":unref(hn),"range-state":unref(vn),"disabled-date":unref(le),"cell-class-name":unref(pe),onChangerange:unref(Cn),onPick:Pr,onSelect:unref(wn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(_n).e("content"),unref(bn).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(bn).e("header"))},[ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(ur),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(ur)}],"d-arrow-left"]),onClick:ar},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_4$9)):createCommentVNode("v-if",!0),ir.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(tr),class:normalizeClass([[unref(_n).e("icon-btn"),{"is-disabled":!unref(tr)}],"arrow-left"]),onClick:pr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_5$6)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"d-arrow-right"]),onClick:er},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("button",{type:"button",class:normalizeClass([unref(_n).e("icon-btn"),"arrow-right"]),onClick:rr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(On)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:At.value,"min-date":unref(Lt),"max-date":unref(hn),"range-state":unref(vn),"disabled-date":unref(le),"cell-class-name":unref(pe),onChangerange:unref(Cn),onPick:Pr,onSelect:unref(wn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(Er)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(_n).e("footer"))},[unref(xe)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(_n).e("link-btn")),onClick:$r},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Tn)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(_n).e("link-btn")),disabled:unref(_r),onClick:xr[10]||(xr[10]=Ir=>unref(En)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Tn)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc$1(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-date-range.vue"]]);const panelMonthRangeProps=buildProps({...panelRangeSharedProps}),panelMonthRangeEmits=["pick","set-picker-option"],useMonthRangeHeader=({unlinkPanels:$,leftDate:oe,rightDate:ae})=>{const{t:ie}=useLocale(),le=()=>{oe.value=oe.value.subtract(1,"year"),$.value||(ae.value=ae.value.subtract(1,"year"))},pe=()=>{$.value||(oe.value=oe.value.add(1,"year")),ae.value=ae.value.add(1,"year")},_e=()=>{oe.value=oe.value.add(1,"year")},Ce=()=>{ae.value=ae.value.subtract(1,"year")},$e=computed(()=>`${oe.value.year()} ${ie("el.datepicker.year")}`),xe=computed(()=>`${ae.value.year()} ${ie("el.datepicker.year")}`),Ie=computed(()=>oe.value.year()),Ne=computed(()=>ae.value.year()===oe.value.year()?oe.value.year()+1:ae.value.year());return{leftPrevYear:le,rightNextYear:pe,leftNextYear:_e,rightPrevYear:Ce,leftLabel:$e,rightLabel:xe,leftYear:Ie,rightYear:Ne}},_hoisted_1$F=["onClick"],_hoisted_2$p=["disabled"],_hoisted_3$c=["disabled"],unit="year",__default__$R=defineComponent({name:"DatePickerMonthRange"}),_sfc_main$1i=defineComponent({...__default__$R,props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup($,{emit:oe}){const ae=$,{lang:ie}=useLocale(),le=inject("EP_PICKER_BASE"),{shortcuts:pe,disabledDate:_e,format:Ce}=le.props,$e=toRef$1(le.props,"defaultValue"),xe=ref(dayjs().locale(ie.value)),Ie=ref(dayjs().locale(ie.value).add(1,unit)),{minDate:Ne,maxDate:Fe,rangeState:ze,ppNs:At,drpNs:Lt,handleChangeRange:hn,handleRangeConfirm:vn,handleShortcutClick:_n,onSelect:bn}=useRangePicker(ae,{defaultValue:$e,leftDate:xe,rightDate:Ie,unit,onParsedValueChanged:Bn}),Cn=computed(()=>!!pe.length),{leftPrevYear:En,rightNextYear:$n,leftNextYear:wn,rightPrevYear:Tn,leftLabel:xn,rightLabel:kn,leftYear:An,rightYear:On}=useMonthRangeHeader({unlinkPanels:toRef$1(ae,"unlinkPanels"),leftDate:xe,rightDate:Ie}),Nn=computed(()=>ae.unlinkPanels&&On.value>An.value+1),Rn=(Mn,Fn=!0)=>{const Vn=Mn.minDate,jn=Mn.maxDate;Fe.value===jn&&Ne.value===Vn||(Fe.value=jn,Ne.value=Vn,Fn&&vn())},zn=Mn=>Mn.map(Fn=>Fn.format(Ce));function Bn(Mn,Fn){if(ae.unlinkPanels&&Fn){const Vn=(Mn==null?void 0:Mn.year())||0,jn=Fn.year();Ie.value=Vn===jn?Fn.add(1,unit):Fn}else Ie.value=xe.value.add(1,unit)}return oe("set-picker-option",["formatToString",zn]),(Mn,Fn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(At).b(),unref(Lt).b(),{"has-sidebar":!!Mn.$slots.sidebar||unref(Cn)}])},[createBaseVNode("div",{class:normalizeClass(unref(At).e("body-wrapper"))},[renderSlot(Mn.$slots,"sidebar",{class:normalizeClass(unref(At).e("sidebar"))}),unref(Cn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(At).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),(Vn,jn)=>(openBlock(),createElementBlock("button",{key:jn,type:"button",class:normalizeClass(unref(At).e("shortcut")),onClick:Zn=>unref(_n)(Vn)},toDisplayString$1(Vn.text),11,_hoisted_1$F))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(At).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(At).e("content"),unref(Lt).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Lt).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"d-arrow-left"]),onClick:Fn[0]||(Fn[0]=(...Vn)=>unref(En)&&unref(En)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),Mn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Nn),class:normalizeClass([[unref(At).e("icon-btn"),{[unref(At).is("disabled")]:!unref(Nn)}],"d-arrow-right"]),onClick:Fn[1]||(Fn[1]=(...Vn)=>unref(wn)&&unref(wn)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$p)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(xn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:xe.value,"min-date":unref(Ne),"max-date":unref(Fe),"range-state":unref(ze),"disabled-date":unref(_e),onChangerange:unref(hn),onPick:Rn,onSelect:unref(bn)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(At).e("content"),unref(Lt).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Lt).e("header"))},[Mn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Nn),class:normalizeClass([[unref(At).e("icon-btn"),{"is-disabled":!unref(Nn)}],"d-arrow-left"]),onClick:Fn[2]||(Fn[2]=(...Vn)=>unref(Tn)&&unref(Tn)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_3$c)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(At).e("icon-btn"),"d-arrow-right"]),onClick:Fn[3]||(Fn[3]=(...Vn)=>unref($n)&&unref($n)(...Vn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref(kn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:Ie.value,"min-date":unref(Ne),"max-date":unref(Fe),"range-state":unref(ze),"disabled-date":unref(_e),onChangerange:unref(hn),onPick:Rn,onSelect:unref(bn)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc$1(_sfc_main$1i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const getPanel=function($){switch($){case"daterange":case"datetimerange":return DateRangePickPanel;case"monthrange":return MonthRangePickPanel;default:return DatePickPanel}};dayjs.extend(localeData);dayjs.extend(advancedFormat);dayjs.extend(customParseFormat);dayjs.extend(weekOfYear);dayjs.extend(weekYear);dayjs.extend(dayOfYear);dayjs.extend(isSameOrAfter);dayjs.extend(isSameOrBefore);var DatePicker=defineComponent({name:"ElDatePicker",install:null,props:datePickerProps,emits:["update:modelValue"],setup($,{expose:oe,emit:ae,slots:ie}){const le=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef$1($,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:ie,pickerNs:le});const pe=ref();oe({focus:($e=!0)=>{var xe;(xe=pe.value)==null||xe.focus($e)},handleOpen:()=>{var $e;($e=pe.value)==null||$e.handleOpen()},handleClose:()=>{var $e;($e=pe.value)==null||$e.handleClose()}});const Ce=$e=>{ae("update:modelValue",$e)};return()=>{var $e;const xe=($e=$.format)!=null?$e:DEFAULT_FORMATS_DATEPICKER[$.type]||DEFAULT_FORMATS_DATE,Ie=getPanel($.type);return createVNode(CommonPicker,mergeProps($,{format:xe,type:$.type,ref:pe,"onUpdate:modelValue":Ce}),{default:Ne=>createVNode(Ie,Ne,null),"range-separator":ie["range-separator"]})}}});const _DatePicker=DatePicker;_DatePicker.install=$=>{$.component(_DatePicker.name,_DatePicker)};const ElDatePicker=_DatePicker,descriptionsKey=Symbol("elDescriptions");var ElDescriptionsCell=defineComponent({name:"ElDescriptionsCell",props:{cell:{type:Object},tag:{type:String},type:{type:String}},setup(){return{descriptions:inject(descriptionsKey,{})}},render(){var $,oe,ae,ie,le,pe;const _e=getNormalizedProps(this.cell),{border:Ce,direction:$e}=this.descriptions,xe=$e==="vertical",Ie=((ae=(oe=($=this.cell)==null?void 0:$.children)==null?void 0:oe.label)==null?void 0:ae.call(oe))||_e.label,Ne=(pe=(le=(ie=this.cell)==null?void 0:ie.children)==null?void 0:le.default)==null?void 0:pe.call(le),Fe=_e.span,ze=_e.align?`is-${_e.align}`:"",At=_e.labelAlign?`is-${_e.labelAlign}`:ze,Lt=_e.className,hn=_e.labelClassName,vn={width:addUnit(_e.width),minWidth:addUnit(_e.minWidth)},_n=useNamespace("descriptions");switch(this.type){case"label":return h$3(this.tag,{style:vn,class:[_n.e("cell"),_n.e("label"),_n.is("bordered-label",Ce),_n.is("vertical-label",xe),At,hn],colSpan:xe?Fe:1},Ie);case"content":return h$3(this.tag,{style:vn,class:[_n.e("cell"),_n.e("content"),_n.is("bordered-content",Ce),_n.is("vertical-content",xe),ze,Lt],colSpan:xe?Fe:Fe*2-1},Ne);default:return h$3("td",{style:vn,class:[_n.e("cell"),ze],colSpan:Fe},[isNil(Ie)?void 0:h$3("span",{class:[_n.e("label"),hn]},Ie),h$3("span",{class:[_n.e("content"),Lt]},Ne)])}}});const descriptionsRowProps=buildProps({row:{type:Array,default:()=>[]}}),_hoisted_1$E={key:1},__default__$Q=defineComponent({name:"ElDescriptionsRow"}),_sfc_main$1h=defineComponent({...__default__$Q,props:descriptionsRowProps,setup($){const oe=inject(descriptionsKey,{});return(ae,ie)=>unref(oe).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ae.row,(le,pe)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${pe}`,cell:le,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ae.row,(le,pe)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${pe}`,cell:le,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$E,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ae.row,(le,pe)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${pe}`},[unref(oe).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(ElDescriptionsCell),{cell:le,tag:"td",type:"label"},null,8,["cell"]),createVNode(unref(ElDescriptionsCell),{cell:le,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:le,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc$1(_sfc_main$1h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);const descriptionProps=buildProps({border:{type:Boolean,default:!1},column:{type:Number,default:3},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},size:useSizeProp,title:{type:String,default:""},extra:{type:String,default:""}}),__default__$P=defineComponent({name:"ElDescriptions"}),_sfc_main$1g=defineComponent({...__default__$P,props:descriptionProps,setup($){const oe=$,ae=useNamespace("descriptions"),ie=useFormSize(),le=useSlots();provide(descriptionsKey,oe);const pe=computed(()=>[ae.b(),ae.m(ie.value)]),_e=($e,xe,Ie,Ne=!1)=>($e.props||($e.props={}),xe>Ie&&($e.props.span=Ie),Ne&&($e.props.span=xe),$e),Ce=()=>{var $e;const xe=flattedChildren(($e=le.default)==null?void 0:$e.call(le)).filter(At=>{var Lt;return((Lt=At==null?void 0:At.type)==null?void 0:Lt.name)==="ElDescriptionsItem"}),Ie=[];let Ne=[],Fe=oe.column,ze=0;return xe.forEach((At,Lt)=>{var hn;const vn=((hn=At.props)==null?void 0:hn.span)||1;if(Lt<xe.length-1&&(ze+=vn>Fe?Fe:vn),Lt===xe.length-1){const _n=oe.column-ze%oe.column;Ne.push(_e(At,_n,Fe,!0)),Ie.push(Ne);return}vn<Fe?(Fe-=vn,Ne.push(At)):(Ne.push(_e(At,vn,Fe)),Ie.push(Ne),Fe=oe.column,Ne=[])}),Ie};return($e,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe))},[$e.title||$e.extra||$e.$slots.title||$e.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("title"))},[renderSlot($e.$slots,"title",{},()=>[createTextVNode(toDisplayString$1($e.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref(ae).e("extra"))},[renderSlot($e.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1($e.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ae).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref(ae).e("table"),unref(ae).is("bordered",$e.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ce(),(Ie,Ne)=>(openBlock(),createBlock(ElDescriptionsRow,{key:Ne,row:Ie},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc$1(_sfc_main$1g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/description.vue"]]),DescriptionsItem=defineComponent({name:"ElDescriptionsItem",props:{label:{type:String,default:""},span:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},align:{type:String,default:"left"},labelAlign:{type:String,default:""},className:{type:String,default:""},labelClassName:{type:String,default:""}}});const ElDescriptions=withInstall(Descriptions,{DescriptionsItem}),ElDescriptionsItem=withNoopInstall(DescriptionsItem),overlayProps=buildProps({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:definePropType([String,Array,Object])},zIndex:{type:definePropType([String,Number])}}),overlayEmits={click:$=>$ instanceof MouseEvent},BLOCK="overlay";var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup($,{slots:oe,emit:ae}){const ie=useNamespace(BLOCK),le=$e=>{ae("click",$e)},{onClick:pe,onMousedown:_e,onMouseup:Ce}=useSameTarget($.customMaskEvent?void 0:le);return()=>$.mask?createVNode("div",{class:[ie.b(),$.overlayClass],style:{zIndex:$.zIndex},onClick:pe,onMousedown:_e,onMouseup:Ce},[renderSlot(oe,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$3("div",{class:$.overlayClass,style:{zIndex:$.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(oe,"default")])}});const ElOverlay=Overlay$1,dialogInjectionKey=Symbol("dialogInjectionKey"),dialogContentProps=buildProps({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:iconPropType},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),dialogContentEmits={close:()=>!0},_hoisted_1$D=["aria-label"],_hoisted_2$o=["id"],__default__$O=defineComponent({name:"ElDialogContent"}),_sfc_main$1f=defineComponent({...__default__$O,props:dialogContentProps,emits:dialogContentEmits,setup($){const oe=$,{t:ae}=useLocale(),{Close:ie}=CloseComponents,{dialogRef:le,headerRef:pe,bodyId:_e,ns:Ce,style:$e}=inject(dialogInjectionKey),{focusTrapRef:xe}=inject(FOCUS_TRAP_INJECTION_KEY),Ie=composeRefs(xe,le),Ne=computed(()=>oe.draggable);return useDraggable(le,pe,Ne),(Fe,ze)=>(openBlock(),createElementBlock("div",{ref:unref(Ie),class:normalizeClass([unref(Ce).b(),unref(Ce).is("fullscreen",Fe.fullscreen),unref(Ce).is("draggable",unref(Ne)),unref(Ce).is("align-center",Fe.alignCenter),{[unref(Ce).m("center")]:Fe.center},Fe.customClass]),style:normalizeStyle$1(unref($e)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:pe,class:normalizeClass(unref(Ce).e("header"))},[renderSlot(Fe.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading",class:normalizeClass(unref(Ce).e("title"))},toDisplayString$1(Fe.title),3)]),Fe.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref(ae)("el.dialog.close"),class:normalizeClass(unref(Ce).e("headerbtn")),type:"button",onClick:ze[0]||(ze[0]=At=>Fe.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(Ce).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.closeIcon||unref(ie))))]),_:1},8,["class"])],10,_hoisted_1$D)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(_e),class:normalizeClass(unref(Ce).e("body"))},[renderSlot(Fe.$slots,"default")],10,_hoisted_2$o),Fe.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(Ce).e("footer"))},[renderSlot(Fe.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc$1(_sfc_main$1f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:{type:Boolean,default:!1},beforeClose:{type:definePropType(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:$=>isBoolean$3($),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=($,oe)=>{const ie=getCurrentInstance().emit,{nextZIndex:le}=useZIndex();let pe="";const _e=useId(),Ce=useId(),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Ne=ref($.zIndex||le());let Fe,ze;const At=useGlobalConfig("namespace",defaultNamespace),Lt=computed(()=>{const Rn={},zn=`--${At.value}-dialog`;return $.fullscreen||($.top&&(Rn[`${zn}-margin-top`]=$.top),$.width&&(Rn[`${zn}-width`]=addUnit($.width))),Rn}),hn=computed(()=>$.alignCenter?{display:"flex"}:{});function vn(){ie("opened")}function _n(){ie("closed"),ie(UPDATE_MODEL_EVENT,!1),$.destroyOnClose&&(Ie.value=!1)}function bn(){ie("close")}function Cn(){ze==null||ze(),Fe==null||Fe(),$.openDelay&&$.openDelay>0?{stop:Fe}=useTimeoutFn$1(()=>Tn(),$.openDelay):Tn()}function En(){Fe==null||Fe(),ze==null||ze(),$.closeDelay&&$.closeDelay>0?{stop:ze}=useTimeoutFn$1(()=>xn(),$.closeDelay):xn()}function $n(){function Rn(zn){zn||(xe.value=!0,$e.value=!1)}$.beforeClose?$.beforeClose(Rn):En()}function wn(){$.closeOnClickModal&&$n()}function Tn(){isClient$2&&($e.value=!0)}function xn(){$e.value=!1}function kn(){ie("openAutoFocus")}function An(){ie("closeAutoFocus")}function On(Rn){var zn;((zn=Rn.detail)==null?void 0:zn.focusReason)==="pointer"&&Rn.preventDefault()}$.lockScroll&&useLockscreen($e);function Nn(){$.closeOnPressEscape&&$n()}return watch(()=>$.modelValue,Rn=>{Rn?(xe.value=!1,Cn(),Ie.value=!0,Ne.value=$.zIndex?Ne.value++:le(),nextTick(()=>{ie("open"),oe.value&&(oe.value.scrollTop=0)})):$e.value&&En()}),watch(()=>$.fullscreen,Rn=>{oe.value&&(Rn?(pe=oe.value.style.transform,oe.value.style.transform=""):oe.value.style.transform=pe)}),onMounted(()=>{$.modelValue&&($e.value=!0,Ie.value=!0,Cn())}),{afterEnter:vn,afterLeave:_n,beforeLeave:bn,handleClose:$n,onModalClick:wn,close:En,doClose:xn,onOpenAutoFocus:kn,onCloseAutoFocus:An,onCloseRequested:Nn,onFocusoutPrevented:On,titleId:_e,bodyId:Ce,closed:xe,style:Lt,overlayDialogStyle:hn,rendered:Ie,visible:$e,zIndex:Ne}},_hoisted_1$C=["aria-label","aria-labelledby","aria-describedby"],__default__$N=defineComponent({name:"ElDialog",inheritAttrs:!1}),_sfc_main$1e=defineComponent({...__default__$N,props:dialogProps,emits:dialogEmits,setup($,{expose:oe}){const ae=$,ie=useSlots();useDeprecated({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},computed(()=>!!ie.title)),useDeprecated({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},computed(()=>!!ae.customClass));const le=useNamespace("dialog"),pe=ref(),_e=ref(),Ce=ref(),{visible:$e,titleId:xe,bodyId:Ie,style:Ne,overlayDialogStyle:Fe,rendered:ze,zIndex:At,afterEnter:Lt,afterLeave:hn,beforeLeave:vn,handleClose:_n,onModalClick:bn,onOpenAutoFocus:Cn,onCloseAutoFocus:En,onCloseRequested:$n,onFocusoutPrevented:wn}=useDialog(ae,pe);provide(dialogInjectionKey,{dialogRef:pe,headerRef:_e,bodyId:Ie,ns:le,rendered:ze,style:Ne});const Tn=useSameTarget(bn),xn=computed(()=>ae.draggable&&!ae.fullscreen);return oe({visible:$e,dialogContentRef:Ce}),(kn,An)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!kn.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(Lt),onAfterLeave:unref(hn),onBeforeLeave:unref(vn),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:kn.modal,"overlay-class":kn.modalClass,"z-index":unref(At)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":kn.title||void 0,"aria-labelledby":kn.title?void 0:unref(xe),"aria-describedby":unref(Ie),class:normalizeClass(`${unref(le).namespace.value}-overlay-dialog`),style:normalizeStyle$1(unref(Fe)),onClick:An[0]||(An[0]=(...On)=>unref(Tn).onClick&&unref(Tn).onClick(...On)),onMousedown:An[1]||(An[1]=(...On)=>unref(Tn).onMousedown&&unref(Tn).onMousedown(...On)),onMouseup:An[2]||(An[2]=(...On)=>unref(Tn).onMouseup&&unref(Tn).onMouseup(...On))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref($e),"focus-start-el":"container",onFocusAfterTrapped:unref(Cn),onFocusAfterReleased:unref(En),onFocusoutPrevented:unref(wn),onReleaseRequested:unref($n)},{default:withCtx(()=>[unref(ze)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:Ce},kn.$attrs,{"custom-class":kn.customClass,center:kn.center,"align-center":kn.alignCenter,"close-icon":kn.closeIcon,draggable:unref(xn),fullscreen:kn.fullscreen,"show-close":kn.showClose,title:kn.title,onClose:unref(_n)}),createSlots({header:withCtx(()=>[kn.$slots.title?renderSlot(kn.$slots,"title",{key:1}):renderSlot(kn.$slots,"header",{key:0,close:unref(_n),titleId:unref(xe),titleClass:unref(le).e("title")})]),default:withCtx(()=>[renderSlot(kn.$slots,"default")]),_:2},[kn.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot(kn.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_hoisted_1$C)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref($e)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Dialog=_export_sfc$1(_sfc_main$1e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const ElDialog=withInstall(Dialog),dividerProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:definePropType(String),default:"solid"}}),__default__$M=defineComponent({name:"ElDivider"}),_sfc_main$1d=defineComponent({...__default__$M,props:dividerProps,setup($){const oe=$,ae=useNamespace("divider"),ie=computed(()=>ae.cssVar({"border-style":oe.borderStyle}));return(le,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ae).b(),unref(ae).m(le.direction)]),style:normalizeStyle$1(unref(ie)),role:"separator"},[le.$slots.default&&le.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(ae).e("text"),unref(ae).is(le.contentPosition)])},[renderSlot(le.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc$1(_sfc_main$1d,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const ElDivider=withInstall(Divider),drawerProps=buildProps({...dialogProps,direction:{type:String,default:"rtl",values:["ltr","rtl","ttb","btt"]},size:{type:[String,Number],default:"30%"},withHeader:{type:Boolean,default:!0},modalFade:{type:Boolean,default:!0}}),drawerEmits=dialogEmits,_sfc_main$1c=defineComponent({name:"ElDrawer",components:{ElOverlay,ElFocusTrap,ElIcon,Close:close_default},inheritAttrs:!1,props:drawerProps,emits:drawerEmits,setup($,{slots:oe}){useDeprecated({scope:"el-drawer",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/drawer.html#slots"},computed(()=>!!oe.title)),useDeprecated({scope:"el-drawer",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/drawer.html#attributes",type:"Attribute"},computed(()=>!!$.customClass));const ae=ref(),ie=ref(),le=useNamespace("drawer"),{t:pe}=useLocale(),_e=computed(()=>$.direction==="rtl"||$.direction==="ltr"),Ce=computed(()=>addUnit($.size));return{...useDialog($,ae),drawerRef:ae,focusStartRef:ie,isHorizontal:_e,drawerSize:Ce,ns:le,t:pe}}}),_hoisted_1$B=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$n=["id"],_hoisted_3$b=["aria-label"],_hoisted_4$8=["id"];function _sfc_render$p($,oe,ae,ie,le,pe){const _e=resolveComponent("close"),Ce=resolveComponent("el-icon"),$e=resolveComponent("el-focus-trap"),xe=resolveComponent("el-overlay");return openBlock(),createBlock(Teleport,{to:"body",disabled:!$.appendToBody},[createVNode(Transition,{name:$.ns.b("fade"),onAfterEnter:$.afterEnter,onAfterLeave:$.afterLeave,onBeforeLeave:$.beforeLeave,persisted:""},{default:withCtx(()=>[withDirectives(createVNode(xe,{mask:$.modal,"overlay-class":$.modalClass,"z-index":$.zIndex,onClick:$.onModalClick},{default:withCtx(()=>[createVNode($e,{loop:"",trapped:$.visible,"focus-trap-el":$.drawerRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":$.title||void 0,"aria-labelledby":$.title?void 0:$.titleId,"aria-describedby":$.bodyId},$.$attrs,{class:[$.ns.b(),$.direction,$.visible&&"open",$.customClass],style:$.isHorizontal?"width: "+$.drawerSize:"height: "+$.drawerSize,role:"dialog",onClick:oe[1]||(oe[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref:"focusStartRef",class:normalizeClass($.ns.e("sr-focus")),tabindex:"-1"},null,2),$.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass($.ns.e("header"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot($.$slots,"header",{key:0,close:$.handleClose,titleId:$.titleId,titleClass:$.ns.e("title")},()=>[$.$slots.title?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,id:$.titleId,role:"heading",class:normalizeClass($.ns.e("title"))},toDisplayString$1($.title),11,_hoisted_2$n))]),$.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":$.t("el.drawer.close"),class:normalizeClass($.ns.e("close-btn")),type:"button",onClick:oe[0]||(oe[0]=(...Ie)=>$.handleClose&&$.handleClose(...Ie))},[createVNode(Ce,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(_e)]),_:1},8,["class"])],10,_hoisted_3$b)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),$.rendered?(openBlock(),createElementBlock("div",{key:1,id:$.bodyId,class:normalizeClass($.ns.e("body"))},[renderSlot($.$slots,"default")],10,_hoisted_4$8)):createCommentVNode("v-if",!0),$.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("footer"))},[renderSlot($.$slots,"footer")],2)):createCommentVNode("v-if",!0)],16,_hoisted_1$B)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,$.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Drawer=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$p],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1b=defineComponent({inheritAttrs:!1});function _sfc_render$o($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default")}var Collection=_export_sfc$1(_sfc_main$1b,[["render",_sfc_render$o],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1a=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$n($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default")}var CollectionItem=_export_sfc$1(_sfc_main$1a,[["render",_sfc_render$n],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const COLLECTION_ITEM_SIGN="data-el-collection-item",createCollectionWithScope=$=>{const oe=`El${$}Collection`,ae=`${oe}Item`,ie=Symbol(oe),le=Symbol(ae),pe={...Collection,name:oe,setup(){const Ce=ref(null),$e=new Map;provide(ie,{itemMap:$e,getItems:()=>{const Ie=unref(Ce);if(!Ie)return[];const Ne=Array.from(Ie.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...$e.values()].sort((ze,At)=>Ne.indexOf(ze.ref)-Ne.indexOf(At.ref))},collectionRef:Ce})}},_e={...CollectionItem,name:ae,setup(Ce,{attrs:$e}){const xe=ref(null),Ie=inject(ie,void 0);provide(le,{collectionItemRef:xe}),onMounted(()=>{const Ne=unref(xe);Ne&&Ie.itemMap.set(Ne,{ref:Ne,...$e})}),onBeforeUnmount(()=>{const Ne=unref(xe);Ie.itemMap.delete(Ne)})}};return{COLLECTION_INJECTION_KEY:ie,COLLECTION_ITEM_INJECTION_KEY:le,ElCollection:pe,ElCollectionItem:_e}},rovingFocusGroupProps=buildProps({style:{type:definePropType([String,Array,Object])},currentTabId:{type:definePropType(String)},defaultCurrentTabId:String,loop:Boolean,dir:{type:String,values:["ltr","rtl"],default:"ltr"},orientation:{type:definePropType(String)},onBlur:Function,onFocus:Function,onMousedown:Function}),{ElCollection:ElCollection$1,ElCollectionItem:ElCollectionItem$1,COLLECTION_INJECTION_KEY:COLLECTION_INJECTION_KEY$1,COLLECTION_ITEM_INJECTION_KEY:COLLECTION_ITEM_INJECTION_KEY$1}=createCollectionWithScope("RovingFocusGroup"),ROVING_FOCUS_GROUP_INJECTION_KEY=Symbol("elRovingFocusGroup"),ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY=Symbol("elRovingFocusGroupItem"),MAP_KEY_TO_FOCUS_INTENT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"},getDirectionAwareKey=($,oe)=>{if(oe!=="rtl")return $;switch($){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return $}},getFocusIntent=($,oe,ae)=>{const ie=getDirectionAwareKey($.key,ae);if(!(oe==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(ie))&&!(oe==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(ie)))return MAP_KEY_TO_FOCUS_INTENT[ie]},reorderArray=($,oe)=>$.map((ae,ie)=>$[(ie+oe)%$.length]),focusFirst=$=>{const{activeElement:oe}=document;for(const ae of $)if(ae===oe||(ae.focus(),oe!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$19=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup($,{emit:oe}){var ae;const ie=ref((ae=$.currentTabId||$.defaultCurrentTabId)!=null?ae:null),le=ref(!1),pe=ref(!1),_e=ref(null),{getItems:Ce}=inject(COLLECTION_INJECTION_KEY$1,void 0),$e=computed(()=>[{outline:"none"},$.style]),xe=Lt=>{oe(CURRENT_TAB_ID_CHANGE_EVT,Lt)},Ie=()=>{le.value=!0},Ne=composeEventHandlers(Lt=>{var hn;(hn=$.onMousedown)==null||hn.call($,Lt)},()=>{pe.value=!0}),Fe=composeEventHandlers(Lt=>{var hn;(hn=$.onFocus)==null||hn.call($,Lt)},Lt=>{const hn=!unref(pe),{target:vn,currentTarget:_n}=Lt;if(vn===_n&&hn&&!unref(le)){const bn=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(_n==null||_n.dispatchEvent(bn),!bn.defaultPrevented){const Cn=Ce().filter(xn=>xn.focusable),En=Cn.find(xn=>xn.active),$n=Cn.find(xn=>xn.id===unref(ie)),Tn=[En,$n,...Cn].filter(Boolean).map(xn=>xn.ref);focusFirst(Tn)}}pe.value=!1}),ze=composeEventHandlers(Lt=>{var hn;(hn=$.onBlur)==null||hn.call($,Lt)},()=>{le.value=!1}),At=(...Lt)=>{oe("entryFocus",...Lt)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(ie),loop:toRef$1($,"loop"),tabIndex:computed(()=>unref(le)?-1:0),rovingFocusGroupRef:_e,rovingFocusGroupRootStyle:$e,orientation:toRef$1($,"orientation"),dir:toRef$1($,"dir"),onItemFocus:xe,onItemShiftTab:Ie,onBlur:ze,onFocus:Fe,onMousedown:Ne}),watch(()=>$.currentTabId,Lt=>{ie.value=Lt??null}),useEventListener$1(_e,ENTRY_FOCUS_EVT,At)}});function _sfc_render$m($,oe,ae,ie,le,pe){return renderSlot($.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc$1(_sfc_main$19,[["render",_sfc_render$m],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group-impl.vue"]]);const _sfc_main$18=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl}});function _sfc_render$l($,oe,ae,ie,le,pe){const _e=resolveComponent("el-roving-focus-group-impl"),Ce=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(Ce,null,{default:withCtx(()=>[createVNode(_e,normalizeProps(guardReactiveProps($.$attrs)),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc$1(_sfc_main$18,[["render",_sfc_render$l],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-group.vue"]]);const _sfc_main$17=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup($,{emit:oe}){const{currentTabbedId:ae,loop:ie,onItemFocus:le,onItemShiftTab:pe}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:_e}=inject(COLLECTION_INJECTION_KEY$1,void 0),Ce=useId(),$e=ref(null),xe=composeEventHandlers(ze=>{oe("mousedown",ze)},ze=>{$.focusable?le(unref(Ce)):ze.preventDefault()}),Ie=composeEventHandlers(ze=>{oe("focus",ze)},()=>{le(unref(Ce))}),Ne=composeEventHandlers(ze=>{oe("keydown",ze)},ze=>{const{key:At,shiftKey:Lt,target:hn,currentTarget:vn}=ze;if(At===EVENT_CODE.tab&&Lt){pe();return}if(hn!==vn)return;const _n=getFocusIntent(ze);if(_n){ze.preventDefault();let Cn=_e().filter(En=>En.focusable).map(En=>En.ref);switch(_n){case"last":{Cn.reverse();break}case"prev":case"next":{_n==="prev"&&Cn.reverse();const En=Cn.indexOf(vn);Cn=ie.value?reorderArray(Cn,En+1):Cn.slice(En+1);break}}nextTick(()=>{focusFirst(Cn)})}}),Fe=computed(()=>ae.value===unref(Ce));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:$e,tabIndex:computed(()=>unref(Fe)?0:-1),handleMousedown:xe,handleFocus:Ie,handleKeydown:Ne}),{id:Ce,handleKeydown:Ne,handleFocus:Ie,handleMousedown:xe}}});function _sfc_render$k($,oe,ae,ie,le,pe){const _e=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(_e,{id:$.id,focusable:$.focusable,active:$.active},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc$1(_sfc_main$17,[["render",_sfc_render$k],["__file","/home/runner/work/element-plus/element-plus/packages/components/roving-focus-group/src/roving-focus-item.vue"]]);const dropdownProps=buildProps({trigger:useTooltipTriggerProps.trigger,effect:{...useTooltipContentProps.effect,default:"light"},type:{type:definePropType(String)},placement:{type:definePropType(String),default:"bottom"},popperOptions:{type:definePropType(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:definePropType([Number,String]),default:0},maxHeight:{type:definePropType([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:definePropType(Object)},teleported:useTooltipContentProps.teleported}),dropdownItemProps=buildProps({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:iconPropType}}),dropdownMenuProps=buildProps({onKeydown:{type:definePropType(Function)}}),FIRST_KEYS=[EVENT_CODE.down,EVENT_CODE.pageDown,EVENT_CODE.home],LAST_KEYS=[EVENT_CODE.up,EVENT_CODE.pageUp,EVENT_CODE.end],FIRST_LAST_KEYS=[...FIRST_KEYS,...LAST_KEYS],{ElCollection,ElCollectionItem,COLLECTION_INJECTION_KEY,COLLECTION_ITEM_INJECTION_KEY}=createCollectionWithScope("Dropdown"),DROPDOWN_INJECTION_KEY=Symbol("elDropdown"),{ButtonGroup:ElButtonGroup}=ElButton,_sfc_main$16=defineComponent({name:"ElDropdown",components:{ElButton,ElButtonGroup,ElScrollbar,ElDropdownCollection:ElCollection,ElTooltip,ElRovingFocusGroup,ElOnlyChild:OnlyChild,ElIcon,ArrowDown:arrow_down_default},props:dropdownProps,emits:["visible-change","click","command"],setup($,{emit:oe}){const ae=getCurrentInstance(),ie=useNamespace("dropdown"),{t:le}=useLocale(),pe=ref(),_e=ref(),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),Ne=ref(!1),Fe=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],ze=computed(()=>({maxHeight:addUnit($.maxHeight)})),At=computed(()=>[ie.m(Cn.value)]),Lt=useId().value,hn=computed(()=>$.id||Lt);watch([pe,toRef$1($,"trigger")],([Bn,Mn],[Fn])=>{var Vn,jn,Zn;const Gn=isArray$c(Mn)?Mn:[Mn];(Vn=Fn==null?void 0:Fn.$el)!=null&&Vn.removeEventListener&&Fn.$el.removeEventListener("pointerenter",$n),(jn=Bn==null?void 0:Bn.$el)!=null&&jn.removeEventListener&&Bn.$el.removeEventListener("pointerenter",$n),(Zn=Bn==null?void 0:Bn.$el)!=null&&Zn.addEventListener&&Gn.includes("hover")&&Bn.$el.addEventListener("pointerenter",$n)},{immediate:!0}),onBeforeUnmount(()=>{var Bn,Mn;(Mn=(Bn=pe.value)==null?void 0:Bn.$el)!=null&&Mn.removeEventListener&&pe.value.$el.removeEventListener("pointerenter",$n)});function vn(){_n()}function _n(){var Bn;(Bn=Ce.value)==null||Bn.onClose()}function bn(){var Bn;(Bn=Ce.value)==null||Bn.onOpen()}const Cn=useFormSize();function En(...Bn){oe("command",...Bn)}function $n(){var Bn,Mn;(Mn=(Bn=pe.value)==null?void 0:Bn.$el)==null||Mn.focus()}function wn(){}function Tn(){const Bn=unref($e);Bn==null||Bn.focus(),Ie.value=null}function xn(Bn){Ie.value=Bn}function kn(Bn){Ne.value||(Bn.preventDefault(),Bn.stopImmediatePropagation())}function An(){oe("visible-change",!0)}function On(Bn){(Bn==null?void 0:Bn.type)==="keydown"&&$e.value.focus()}function Nn(){oe("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:$e,role:computed(()=>$.role),triggerId:hn,isUsingKeyboard:Ne,onItemEnter:wn,onItemLeave:Tn}),provide("elDropdown",{instance:ae,dropdownSize:Cn,handleClick:vn,commandHandler:En,trigger:toRef$1($,"trigger"),hideOnClick:toRef$1($,"hideOnClick")}),{t:le,ns:ie,scrollbar:xe,wrapStyle:ze,dropdownTriggerKls:At,dropdownSize:Cn,triggerId:hn,triggerKeys:Fe,currentTabId:Ie,handleCurrentTabIdChange:xn,handlerMainButtonClick:Bn=>{oe("click",Bn)},handleEntryFocus:kn,handleClose:_n,handleOpen:bn,handleBeforeShowTooltip:An,handleShowTooltip:On,handleBeforeHideTooltip:Nn,onFocusAfterTrapped:Bn=>{var Mn,Fn;Bn.preventDefault(),(Fn=(Mn=$e.value)==null?void 0:Mn.focus)==null||Fn.call(Mn,{preventScroll:!0})},popperRef:Ce,contentRef:$e,triggeringElementRef:pe,referenceElementRef:_e}}});function _sfc_render$j($,oe,ae,ie,le,pe){var _e;const Ce=resolveComponent("el-dropdown-collection"),$e=resolveComponent("el-roving-focus-group"),xe=resolveComponent("el-scrollbar"),Ie=resolveComponent("el-only-child"),Ne=resolveComponent("el-tooltip"),Fe=resolveComponent("el-button"),ze=resolveComponent("arrow-down"),At=resolveComponent("el-icon"),Lt=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b(),$.ns.is("disabled",$.disabled)])},[createVNode(Ne,{ref:"popperRef",role:$.role,effect:$.effect,"fallback-placements":["bottom","top"],"popper-options":$.popperOptions,"gpu-acceleration":!1,"hide-after":$.trigger==="hover"?$.hideTimeout:0,"manual-mode":!0,placement:$.placement,"popper-class":[$.ns.e("popper"),$.popperClass],"reference-element":(_e=$.referenceElementRef)==null?void 0:_e.$el,trigger:$.trigger,"trigger-keys":$.triggerKeys,"trigger-target-el":$.contentRef,"show-after":$.trigger==="hover"?$.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":$.triggeringElementRef,"virtual-triggering":$.splitButton,disabled:$.disabled,transition:`${$.ns.namespace.value}-zoom-in-top`,teleported:$.teleported,pure:"",persistent:"",onBeforeShow:$.handleBeforeShowTooltip,onShow:$.handleShowTooltip,onBeforeHide:$.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode(xe,{ref:"scrollbar","wrap-style":$.wrapStyle,tag:"div","view-class":$.ns.e("list")},{default:withCtx(()=>[createVNode($e,{loop:$.loop,"current-tab-id":$.currentTabId,orientation:"horizontal",onCurrentTabIdChange:$.handleCurrentTabIdChange,onEntryFocus:$.handleEntryFocus},{default:withCtx(()=>[createVNode(Ce,null,{default:withCtx(()=>[renderSlot($.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[$.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode(Ie,{id:$.triggerId,ref:"triggeringElementRef",role:"button",tabindex:$.tabindex},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["id","tabindex"])])}]),1032,["role","effect","popper-options","hide-after","placement","popper-class","reference-element","trigger","trigger-keys","trigger-target-el","show-after","virtual-ref","virtual-triggering","disabled","transition","teleported","onBeforeShow","onShow","onBeforeHide"]),$.splitButton?(openBlock(),createBlock(Lt,{key:0},{default:withCtx(()=>[createVNode(Fe,mergeProps({ref:"referenceElementRef"},$.buttonProps,{size:$.dropdownSize,type:$.type,disabled:$.disabled,tabindex:$.tabindex,onClick:$.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode(Fe,mergeProps({id:$.triggerId,ref:"triggeringElementRef"},$.buttonProps,{role:"button",size:$.dropdownSize,type:$.type,class:$.ns.e("caret-button"),disabled:$.disabled,tabindex:$.tabindex,"aria-label":$.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode(At,{class:normalizeClass($.ns.e("icon"))},{default:withCtx(()=>[createVNode(ze)]),_:1},8,["class"])]),_:1},16,["id","size","type","class","disabled","tabindex","aria-label"])]),_:3})):createCommentVNode("v-if",!0)],2)}var Dropdown=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$15=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup($,{emit:oe}){const ae=useNamespace("dropdown"),{role:ie}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:le}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:pe}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:_e,tabIndex:Ce,handleFocus:$e,handleKeydown:xe,handleMousedown:Ie}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),Ne=composeRefs(le,pe,_e),Fe=computed(()=>ie.value==="menu"?"menuitem":ie.value==="navigation"?"link":"button"),ze=composeEventHandlers(At=>{const{code:Lt}=At;if(Lt===EVENT_CODE.enter||Lt===EVENT_CODE.space)return At.preventDefault(),At.stopImmediatePropagation(),oe("clickimpl",At),!0},xe);return{ns:ae,itemRef:Ne,dataset:{[COLLECTION_ITEM_SIGN]:""},role:Fe,tabIndex:Ce,handleFocus:$e,handleKeydown:ze,handleMousedown:Ie}}}),_hoisted_1$A=["aria-disabled","tabindex","role"];function _sfc_render$i($,oe,ae,ie,le,pe){const _e=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[$.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:$.ns.bem("menu","item","divided")},$.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:$.itemRef},{...$.dataset,...$.$attrs},{"aria-disabled":$.disabled,class:[$.ns.be("menu","item"),$.ns.is("disabled",$.disabled)],tabindex:$.tabIndex,role:$.role,onClick:oe[0]||(oe[0]=Ce=>$.$emit("clickimpl",Ce)),onFocus:oe[1]||(oe[1]=(...Ce)=>$.handleFocus&&$.handleFocus(...Ce)),onKeydown:oe[2]||(oe[2]=withModifiers((...Ce)=>$.handleKeydown&&$.handleKeydown(...Ce),["self"])),onMousedown:oe[3]||(oe[3]=(...Ce)=>$.handleMousedown&&$.handleMousedown(...Ce)),onPointermove:oe[4]||(oe[4]=Ce=>$.$emit("pointermove",Ce)),onPointerleave:oe[5]||(oe[5]=Ce=>$.$emit("pointerleave",Ce))}),[$.icon?(openBlock(),createBlock(_e,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot($.$slots,"default")],16,_hoisted_1$A)],64)}var ElDropdownItemImpl=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const $=inject("elDropdown",{}),oe=computed(()=>$==null?void 0:$.dropdownSize);return{elDropdown:$,_elDropdownSize:oe}},_sfc_main$14=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup($,{emit:oe,attrs:ae}){const{elDropdown:ie}=useDropdown(),le=getCurrentInstance(),pe=ref(null),_e=computed(()=>{var ze,At;return(At=(ze=unref(pe))==null?void 0:ze.textContent)!=null?At:""}),{onItemEnter:Ce,onItemLeave:$e}=inject(DROPDOWN_INJECTION_KEY,void 0),xe=composeEventHandlers(ze=>(oe("pointermove",ze),ze.defaultPrevented),whenMouse(ze=>{if($.disabled){$e(ze);return}const At=ze.currentTarget;At===document.activeElement||At.contains(document.activeElement)||(Ce(ze),ze.defaultPrevented||At==null||At.focus())})),Ie=composeEventHandlers(ze=>(oe("pointerleave",ze),ze.defaultPrevented),whenMouse(ze=>{$e(ze)})),Ne=composeEventHandlers(ze=>{if(!$.disabled)return oe("click",ze),ze.type!=="keydown"&&ze.defaultPrevented},ze=>{var At,Lt,hn;if($.disabled){ze.stopImmediatePropagation();return}(At=ie==null?void 0:ie.hideOnClick)!=null&&At.value&&((Lt=ie.handleClick)==null||Lt.call(ie)),(hn=ie.commandHandler)==null||hn.call(ie,$.command,le,ze)}),Fe=computed(()=>({...$,...ae}));return{handleClick:Ne,handlePointerMove:xe,handlePointerLeave:Ie,textContent:_e,propsAndAttrs:Fe}}});function _sfc_render$h($,oe,ae,ie,le,pe){var _e;const Ce=resolveComponent("el-dropdown-item-impl"),$e=resolveComponent("el-roving-focus-item"),xe=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(xe,{disabled:$.disabled,"text-value":(_e=$.textValue)!=null?_e:$.textContent},{default:withCtx(()=>[createVNode($e,{focusable:!$.disabled},{default:withCtx(()=>[createVNode(Ce,mergeProps($.propsAndAttrs,{onPointerleave:$.handlePointerLeave,onPointermove:$.handlePointerMove,onClickimpl:$.handleClick}),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var DropdownItem=_export_sfc$1(_sfc_main$14,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$13=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup($){const oe=useNamespace("dropdown"),{_elDropdownSize:ae}=useDropdown(),ie=ae.value,{focusTrapRef:le,onKeydown:pe}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:_e,role:Ce,triggerId:$e}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:xe,getItems:Ie}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:Ne,rovingFocusGroupRootStyle:Fe,tabIndex:ze,onBlur:At,onFocus:Lt,onMousedown:hn}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:vn}=inject(COLLECTION_INJECTION_KEY$1,void 0),_n=computed(()=>[oe.b("menu"),oe.bm("menu",ie==null?void 0:ie.value)]),bn=composeRefs(_e,xe,le,Ne,vn),Cn=composeEventHandlers($n=>{var wn;(wn=$.onKeydown)==null||wn.call($,$n)},$n=>{const{currentTarget:wn,code:Tn,target:xn}=$n;if(wn.contains(xn),EVENT_CODE.tab===Tn&&$n.stopImmediatePropagation(),$n.preventDefault(),xn!==unref(_e)||!FIRST_LAST_KEYS.includes(Tn))return;const An=Ie().filter(On=>!On.disabled).map(On=>On.ref);LAST_KEYS.includes(Tn)&&An.reverse(),focusFirst(An)});return{size:ie,rovingFocusGroupRootStyle:Fe,tabIndex:ze,dropdownKls:_n,role:Ce,triggerId:$e,dropdownListWrapperRef:bn,handleKeydown:$n=>{Cn($n),pe($n)},onBlur:At,onFocus:Lt,onMousedown:hn}}}),_hoisted_1$z=["role","aria-labelledby"];function _sfc_render$g($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("ul",{ref:$.dropdownListWrapperRef,class:normalizeClass($.dropdownKls),style:normalizeStyle$1($.rovingFocusGroupRootStyle),tabindex:-1,role:$.role,"aria-labelledby":$.triggerId,onBlur:oe[0]||(oe[0]=(..._e)=>$.onBlur&&$.onBlur(..._e)),onFocus:oe[1]||(oe[1]=(..._e)=>$.onFocus&&$.onFocus(..._e)),onKeydown:oe[2]||(oe[2]=withModifiers((..._e)=>$.handleKeydown&&$.handleKeydown(..._e),["self"])),onMousedown:oe[3]||(oe[3]=withModifiers((..._e)=>$.onMousedown&&$.onMousedown(..._e),["self"]))},[renderSlot($.$slots,"default")],46,_hoisted_1$z)}var DropdownMenu=_export_sfc$1(_sfc_main$13,[["render",_sfc_render$g],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-menu.vue"]]);const ElDropdown=withInstall(Dropdown,{DropdownItem,DropdownMenu}),ElDropdownItem=withNoopInstall(DropdownItem),ElDropdownMenu=withNoopInstall(DropdownMenu),_hoisted_1$y={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},_hoisted_2$m=["id"],_hoisted_3$a=["stop-color"],_hoisted_4$7=["stop-color"],_hoisted_5$5=["id"],_hoisted_6$1=["stop-color"],_hoisted_7=["stop-color"],_hoisted_8=["id"],_hoisted_9={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},_hoisted_10={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},_hoisted_11={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},_hoisted_12=["fill"],_hoisted_13=["fill"],_hoisted_14={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},_hoisted_15=["fill"],_hoisted_16=["fill"],_hoisted_17=["fill"],_hoisted_18=["fill"],_hoisted_19=["fill"],_hoisted_20={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},_hoisted_21=["fill","xlink:href"],_hoisted_22=["fill","mask"],_hoisted_23=["fill"],__default__$L=defineComponent({name:"ImgEmpty"}),_sfc_main$12=defineComponent({...__default__$L,setup($){const oe=useNamespace("empty"),ae=useId();return(ie,le)=>(openBlock(),createElementBlock("svg",_hoisted_1$y,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref(ae)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$a),createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$7)],8,_hoisted_2$m),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref(ae)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$1),createBaseVNode("stop",{"stop-color":`var(${unref(oe).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$5),createBaseVNode("rect",{id:`path-3-${unref(ae)}`,x:"0",y:"0",width:"17",height:"36"},null,8,_hoisted_8)]),createBaseVNode("g",_hoisted_9,[createBaseVNode("g",_hoisted_10,[createBaseVNode("g",_hoisted_11,[createBaseVNode("path",{id:"Oval-Copy-2",d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${unref(oe).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${unref(oe).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,_hoisted_13),createBaseVNode("g",_hoisted_14,[createBaseVNode("polygon",{id:"Rectangle-Copy-10",fill:`var(${unref(oe).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,_hoisted_15),createBaseVNode("polygon",{id:"Rectangle-Copy-11",fill:`var(${unref(oe).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,_hoisted_16),createBaseVNode("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${unref(ae)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,_hoisted_17),createBaseVNode("polygon",{id:"Rectangle-Copy-13",fill:`var(${unref(oe).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,_hoisted_18)]),createBaseVNode("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${unref(ae)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{id:"Mask",fill:`var(${unref(oe).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref(ae)}`},null,8,_hoisted_21),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${unref(oe).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref(ae)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,_hoisted_22)]),createBaseVNode("polygon",{id:"Rectangle-Copy-18",fill:`var(${unref(oe).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,_hoisted_23)])])])]))}});var ImgEmpty=_export_sfc$1(_sfc_main$12,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const emptyProps=buildProps({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),_hoisted_1$x=["src"],_hoisted_2$l={key:1},__default__$K=defineComponent({name:"ElEmpty"}),_sfc_main$11=defineComponent({...__default__$K,props:emptyProps,setup($){const oe=$,{t:ae}=useLocale(),ie=useNamespace("empty"),le=computed(()=>oe.description||ae("el.table.emptyText")),pe=computed(()=>({width:addUnit(oe.imageSize)}));return(_e,Ce)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[createBaseVNode("div",{class:normalizeClass(unref(ie).e("image")),style:normalizeStyle$1(unref(pe))},[_e.image?(openBlock(),createElementBlock("img",{key:0,src:_e.image,ondragstart:"return false"},null,8,_hoisted_1$x)):renderSlot(_e.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(ie).e("description"))},[_e.$slots.description?renderSlot(_e.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$l,toDisplayString$1(unref(le)),1))],2),_e.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("bottom"))},[renderSlot(_e.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty=_export_sfc$1(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const ElEmpty=withInstall(Empty),imageViewerProps=buildProps({urlList:{type:definePropType(Array),default:()=>mutable([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageViewerEmits={close:()=>!0,switch:$=>isNumber$5($)},_hoisted_1$w=["src"],__default__$J=defineComponent({name:"ElImageViewer"}),_sfc_main$10=defineComponent({...__default__$J,props:imageViewerProps,emits:imageViewerEmits,setup($,{expose:oe,emit:ae}){const ie=$,le={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},{t:pe}=useLocale(),_e=useNamespace("image-viewer"),{nextZIndex:Ce}=useZIndex(),$e=ref(),xe=ref([]),Ie=effectScope(),Ne=ref(!0),Fe=ref(ie.initialIndex),ze=shallowRef(le.CONTAIN),At=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Lt=computed(()=>{const{urlList:Mn}=ie;return Mn.length<=1}),hn=computed(()=>Fe.value===0),vn=computed(()=>Fe.value===ie.urlList.length-1),_n=computed(()=>ie.urlList[Fe.value]),bn=computed(()=>{const{scale:Mn,deg:Fn,offsetX:Vn,offsetY:jn,enableTransition:Zn}=At.value;let Gn=Vn/Mn,Xn=jn/Mn;switch(Fn%360){case 90:case-270:[Gn,Xn]=[Xn,-Gn];break;case 180:case-180:[Gn,Xn]=[-Gn,-Xn];break;case 270:case-90:[Gn,Xn]=[-Xn,Gn];break}const cr={transform:`scale(${Mn}) rotate(${Fn}deg) translate(${Gn}px, ${Xn}px)`,transition:Zn?"transform .3s":""};return ze.value.name===le.CONTAIN.name&&(cr.maxWidth=cr.maxHeight="100%"),cr}),Cn=computed(()=>isNumber$5(ie.zIndex)?ie.zIndex:Ce());function En(){wn(),ae("close")}function $n(){const Mn=throttle$1(Vn=>{switch(Vn.code){case EVENT_CODE.esc:ie.closeOnPressEscape&&En();break;case EVENT_CODE.space:On();break;case EVENT_CODE.left:Rn();break;case EVENT_CODE.up:Bn("zoomIn");break;case EVENT_CODE.right:zn();break;case EVENT_CODE.down:Bn("zoomOut");break}}),Fn=throttle$1(Vn=>{const jn=Vn.deltaY||Vn.deltaX;Bn(jn<0?"zoomIn":"zoomOut",{zoomRate:ie.zoomRate,enableTransition:!1})});Ie.run(()=>{useEventListener$1(document,"keydown",Mn),useEventListener$1(document,"wheel",Fn)})}function wn(){Ie.stop()}function Tn(){Ne.value=!1}function xn(Mn){Ne.value=!1,Mn.target.alt=pe("el.image.error")}function kn(Mn){if(Ne.value||Mn.button!==0||!$e.value)return;At.value.enableTransition=!1;const{offsetX:Fn,offsetY:Vn}=At.value,jn=Mn.pageX,Zn=Mn.pageY,Gn=throttle$1(cr=>{At.value={...At.value,offsetX:Fn+cr.pageX-jn,offsetY:Vn+cr.pageY-Zn}}),Xn=useEventListener$1(document,"mousemove",Gn);useEventListener$1(document,"mouseup",()=>{Xn()}),Mn.preventDefault()}function An(){At.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function On(){if(Ne.value)return;const Mn=keysOf(le),Fn=Object.values(le),Vn=ze.value.name,Zn=(Fn.findIndex(Gn=>Gn.name===Vn)+1)%Mn.length;ze.value=le[Mn[Zn]],An()}function Nn(Mn){const Fn=ie.urlList.length;Fe.value=(Mn+Fn)%Fn}function Rn(){hn.value&&!ie.infinite||Nn(Fe.value-1)}function zn(){vn.value&&!ie.infinite||Nn(Fe.value+1)}function Bn(Mn,Fn={}){if(Ne.value)return;const{zoomRate:Vn,rotateDeg:jn,enableTransition:Zn}={zoomRate:ie.zoomRate,rotateDeg:90,enableTransition:!0,...Fn};switch(Mn){case"zoomOut":At.value.scale>.2&&(At.value.scale=Number.parseFloat((At.value.scale/Vn).toFixed(3)));break;case"zoomIn":At.value.scale<7&&(At.value.scale=Number.parseFloat((At.value.scale*Vn).toFixed(3)));break;case"clockwise":At.value.deg+=jn;break;case"anticlockwise":At.value.deg-=jn;break}At.value.enableTransition=Zn}return watch(_n,()=>{nextTick(()=>{const Mn=xe.value[0];Mn!=null&&Mn.complete||(Ne.value=!0)})}),watch(Fe,Mn=>{An(),ae("switch",Mn)}),onMounted(()=>{var Mn,Fn;$n(),(Fn=(Mn=$e.value)==null?void 0:Mn.focus)==null||Fn.call(Mn)}),oe({setActiveItem:Nn}),(Mn,Fn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!Mn.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:$e,tabindex:-1,class:normalizeClass(unref(_e).e("wrapper")),style:normalizeStyle$1({zIndex:unref(Cn)})},[createBaseVNode("div",{class:normalizeClass(unref(_e).e("mask")),onClick:Fn[0]||(Fn[0]=withModifiers(Vn=>Mn.hideOnClickModal&&En(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("close")]),onClick:En},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(Lt)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("prev"),unref(_e).is("disabled",!Mn.infinite&&unref(hn))]),onClick:Rn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("next"),unref(_e).is("disabled",!Mn.infinite&&unref(vn))]),onClick:zn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(_e).e("btn"),unref(_e).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(_e).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:Fn[1]||(Fn[1]=Vn=>Bn("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Fn[2]||(Fn[2]=Vn=>Bn("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(_e).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:On},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ze).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(_e).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Fn[3]||(Fn[3]=Vn=>Bn("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Fn[4]||(Fn[4]=Vn=>Bn("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(_e).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Mn.urlList,(Vn,jn)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:Zn=>xe.value[jn]=Zn,key:Vn,src:Vn,style:normalizeStyle$1(unref(bn)),class:normalizeClass(unref(_e).e("img")),onLoad:Tn,onError:xn,onMousedown:kn},null,46,_hoisted_1$w)),[[vShow,jn===Fe.value]])),128))],2),renderSlot(Mn.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var ImageViewer=_export_sfc$1(_sfc_main$10,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageEmits={load:$=>$ instanceof Event,error:$=>$ instanceof Event,switch:$=>isNumber$5($),close:()=>!0,show:()=>!0},_hoisted_1$v=["src","loading"],_hoisted_2$k={key:0},__default__$I=defineComponent({name:"ElImage",inheritAttrs:!1}),_sfc_main$$=defineComponent({...__default__$I,props:imageProps,emits:imageEmits,setup($,{emit:oe}){const ae=$;let ie="";const{t:le}=useLocale(),pe=useNamespace("image"),_e=useAttrs$1(),Ce=useAttrs(),$e=ref(),xe=ref(!1),Ie=ref(!0),Ne=ref(!1),Fe=ref(),ze=ref(),At=isClient$2&&"loading"in HTMLImageElement.prototype;let Lt,hn;const vn=computed(()=>_e.style),_n=computed(()=>{const{fit:Mn}=ae;return isClient$2&&Mn?{objectFit:Mn}:{}}),bn=computed(()=>{const{previewSrcList:Mn}=ae;return Array.isArray(Mn)&&Mn.length>0}),Cn=computed(()=>{const{previewSrcList:Mn,initialIndex:Fn}=ae;let Vn=Fn;return Fn>Mn.length-1&&(Vn=0),Vn}),En=computed(()=>ae.loading==="eager"?!1:!At&&ae.loading==="lazy"||ae.lazy),$n=()=>{isClient$2&&(Ie.value=!0,xe.value=!1,$e.value=ae.src)};function wn(Mn){Ie.value=!1,xe.value=!1,oe("load",Mn)}function Tn(Mn){Ie.value=!1,xe.value=!0,oe("error",Mn)}function xn(){isInContainer(Fe.value,ze.value)&&($n(),On())}const kn=useThrottleFn(xn,200);async function An(){var Mn;if(!isClient$2)return;await nextTick();const{scrollContainer:Fn}=ae;isElement$2(Fn)?ze.value=Fn:isString$7(Fn)&&Fn!==""?ze.value=(Mn=document.querySelector(Fn))!=null?Mn:void 0:Fe.value&&(ze.value=getScrollContainer(Fe.value)),ze.value&&(Lt=useEventListener$1(ze,"scroll",kn),setTimeout(()=>xn(),100))}function On(){!isClient$2||!ze.value||!kn||(Lt==null||Lt(),ze.value=void 0)}function Nn(Mn){if(Mn.ctrlKey){if(Mn.deltaY<0)return Mn.preventDefault(),!1;if(Mn.deltaY>0)return Mn.preventDefault(),!1}}function Rn(){bn.value&&(hn=useEventListener$1("wheel",Nn,{passive:!1}),ie=document.body.style.overflow,document.body.style.overflow="hidden",Ne.value=!0,oe("show"))}function zn(){hn==null||hn(),document.body.style.overflow=ie,Ne.value=!1,oe("close")}function Bn(Mn){oe("switch",Mn)}return watch(()=>ae.src,()=>{En.value?(Ie.value=!0,xe.value=!1,On(),An()):$n()}),onMounted(()=>{En.value?An():$n()}),(Mn,Fn)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:Fe,class:normalizeClass([unref(pe).b(),Mn.$attrs.class]),style:normalizeStyle$1(unref(vn))},[xe.value?renderSlot(Mn.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(pe).e("error"))},toDisplayString$1(unref(le)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[$e.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(Ce),{src:$e.value,loading:Mn.loading,style:unref(_n),class:[unref(pe).e("inner"),unref(bn)&&unref(pe).e("preview"),Ie.value&&unref(pe).is("loading")],onClick:Rn,onLoad:wn,onError:Tn}),null,16,_hoisted_1$v)):createCommentVNode("v-if",!0),Ie.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(pe).e("wrapper"))},[renderSlot(Mn.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(pe).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),unref(bn)?(openBlock(),createElementBlock(Fragment,{key:2},[Ne.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":Mn.zIndex,"initial-index":unref(Cn),infinite:Mn.infinite,"zoom-rate":Mn.zoomRate,"url-list":Mn.previewSrcList,"hide-on-click-modal":Mn.hideOnClickModal,teleported:Mn.previewTeleported,"close-on-press-escape":Mn.closeOnPressEscape,onClose:zn,onSwitch:Bn},{default:withCtx(()=>[Mn.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$k,[renderSlot(Mn.$slots,"viewer")])):createCommentVNode("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","zoom-rate","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0)],6))}});var Image$1=_export_sfc$1(_sfc_main$$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const ElImage=withInstall(Image$1),inputNumberProps=buildProps({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:useSizeProp,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:$=>$===null||isNumber$5($)||["min","max"].includes($),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:$=>$>=0&&$===Number.parseInt(`${$}`,10)},validateEvent:{type:Boolean,default:!0}}),inputNumberEmits={[CHANGE_EVENT]:($,oe)=>oe!==$,blur:$=>$ instanceof FocusEvent,focus:$=>$ instanceof FocusEvent,[INPUT_EVENT]:$=>isNumber$5($)||isNil($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)||isNil($)},_hoisted_1$u=["aria-label","onKeydown"],_hoisted_2$j=["aria-label","onKeydown"],__default__$H=defineComponent({name:"ElInputNumber"}),_sfc_main$_=defineComponent({...__default__$H,props:inputNumberProps,emits:inputNumberEmits,setup($,{expose:oe,emit:ae}){const ie=$,{t:le}=useLocale(),pe=useNamespace("input-number"),_e=ref(),Ce=reactive({currentValue:ie.modelValue,userInput:null}),{formItem:$e}=useFormItem(),xe=computed(()=>isNumber$5(ie.modelValue)&&ie.modelValue<=ie.min),Ie=computed(()=>isNumber$5(ie.modelValue)&&ie.modelValue>=ie.max),Ne=computed(()=>{const Nn=vn(ie.step);return isUndefined$1(ie.precision)?Math.max(vn(ie.modelValue),Nn):(Nn>ie.precision,ie.precision)}),Fe=computed(()=>ie.controls&&ie.controlsPosition==="right"),ze=useFormSize(),At=useFormDisabled(),Lt=computed(()=>{if(Ce.userInput!==null)return Ce.userInput;let Nn=Ce.currentValue;if(isNil(Nn))return"";if(isNumber$5(Nn)){if(Number.isNaN(Nn))return"";isUndefined$1(ie.precision)||(Nn=Nn.toFixed(ie.precision))}return Nn}),hn=(Nn,Rn)=>{if(isUndefined$1(Rn)&&(Rn=Ne.value),Rn===0)return Math.round(Nn);let zn=String(Nn);const Bn=zn.indexOf(".");if(Bn===-1||!zn.replace(".","").split("")[Bn+Rn])return Nn;const Vn=zn.length;return zn.charAt(Vn-1)==="5"&&(zn=`${zn.slice(0,Math.max(0,Vn-1))}6`),Number.parseFloat(Number(zn).toFixed(Rn))},vn=Nn=>{if(isNil(Nn))return 0;const Rn=Nn.toString(),zn=Rn.indexOf(".");let Bn=0;return zn!==-1&&(Bn=Rn.length-zn-1),Bn},_n=(Nn,Rn=1)=>isNumber$5(Nn)?hn(Nn+ie.step*Rn):Ce.currentValue,bn=()=>{if(ie.readonly||At.value||Ie.value)return;const Nn=Number(Lt.value)||0,Rn=_n(Nn);$n(Rn),ae(INPUT_EVENT,Ce.currentValue)},Cn=()=>{if(ie.readonly||At.value||xe.value)return;const Nn=Number(Lt.value)||0,Rn=_n(Nn,-1);$n(Rn),ae(INPUT_EVENT,Ce.currentValue)},En=(Nn,Rn)=>{const{max:zn,min:Bn,step:Mn,precision:Fn,stepStrictly:Vn,valueOnClear:jn}=ie;let Zn=Number(Nn);if(isNil(Nn)||Number.isNaN(Zn))return null;if(Nn===""){if(jn===null)return null;Zn=isString$7(jn)?{min:Bn,max:zn}[jn]:jn}return Vn&&(Zn=hn(Math.round(Zn/Mn)*Mn,Fn)),isUndefined$1(Fn)||(Zn=hn(Zn,Fn)),(Zn>zn||Zn<Bn)&&(Zn=Zn>zn?zn:Bn,Rn&&ae(UPDATE_MODEL_EVENT,Zn)),Zn},$n=(Nn,Rn=!0)=>{var zn;const Bn=Ce.currentValue,Mn=En(Nn);if(!Rn){ae(UPDATE_MODEL_EVENT,Mn);return}Bn!==Mn&&(Ce.userInput=null,ae(UPDATE_MODEL_EVENT,Mn),ae(CHANGE_EVENT,Mn,Bn),ie.validateEvent&&((zn=$e==null?void 0:$e.validate)==null||zn.call($e,"change").catch(Fn=>void 0)),Ce.currentValue=Mn)},wn=Nn=>{Ce.userInput=Nn;const Rn=Nn===""?null:Number(Nn);ae(INPUT_EVENT,Rn),$n(Rn,!1)},Tn=Nn=>{const Rn=Nn!==""?Number(Nn):"";(isNumber$5(Rn)&&!Number.isNaN(Rn)||Nn==="")&&$n(Rn),Ce.userInput=null},xn=()=>{var Nn,Rn;(Rn=(Nn=_e.value)==null?void 0:Nn.focus)==null||Rn.call(Nn)},kn=()=>{var Nn,Rn;(Rn=(Nn=_e.value)==null?void 0:Nn.blur)==null||Rn.call(Nn)},An=Nn=>{ae("focus",Nn)},On=Nn=>{var Rn;ae("blur",Nn),ie.validateEvent&&((Rn=$e==null?void 0:$e.validate)==null||Rn.call($e,"blur").catch(zn=>void 0))};return watch(()=>ie.modelValue,Nn=>{const Rn=En(Ce.userInput),zn=En(Nn,!0);!isNumber$5(Rn)&&(!Rn||Rn!==zn)&&(Ce.currentValue=zn,Ce.userInput=null)},{immediate:!0}),onMounted(()=>{var Nn;const{min:Rn,max:zn,modelValue:Bn}=ie,Mn=(Nn=_e.value)==null?void 0:Nn.input;if(Mn.setAttribute("role","spinbutton"),Number.isFinite(zn)?Mn.setAttribute("aria-valuemax",String(zn)):Mn.removeAttribute("aria-valuemax"),Number.isFinite(Rn)?Mn.setAttribute("aria-valuemin",String(Rn)):Mn.removeAttribute("aria-valuemin"),Mn.setAttribute("aria-valuenow",String(Ce.currentValue)),Mn.setAttribute("aria-disabled",String(At.value)),!isNumber$5(Bn)&&Bn!=null){let Fn=Number(Bn);Number.isNaN(Fn)&&(Fn=null),ae(UPDATE_MODEL_EVENT,Fn)}}),onUpdated(()=>{var Nn;const Rn=(Nn=_e.value)==null?void 0:Nn.input;Rn==null||Rn.setAttribute("aria-valuenow",`${Ce.currentValue}`)}),oe({focus:xn,blur:kn}),(Nn,Rn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(pe).b(),unref(pe).m(unref(ze)),unref(pe).is("disabled",unref(At)),unref(pe).is("without-controls",!Nn.controls),unref(pe).is("controls-right",unref(Fe))]),onDragstart:Rn[1]||(Rn[1]=withModifiers(()=>{},["prevent"]))},[Nn.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref(le)("el.inputNumber.decrease"),class:normalizeClass([unref(pe).e("decrease"),unref(pe).is("disabled",unref(xe))]),onKeydown:withKeys(Cn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Fe)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$u)),[[unref(vRepeatClick),Cn]]):createCommentVNode("v-if",!0),Nn.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref(le)("el.inputNumber.increase"),class:normalizeClass([unref(pe).e("increase"),unref(pe).is("disabled",unref(Ie))]),onKeydown:withKeys(bn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref(Fe)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$j)),[[unref(vRepeatClick),bn]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:Nn.id,ref_key:"input",ref:_e,type:"number",step:Nn.step,"model-value":unref(Lt),placeholder:Nn.placeholder,readonly:Nn.readonly,disabled:unref(At),size:unref(ze),max:Nn.max,min:Nn.min,name:Nn.name,label:Nn.label,"validate-event":!1,onWheel:Rn[0]||(Rn[0]=withModifiers(()=>{},["prevent"])),onKeydown:[withKeys(withModifiers(bn,["prevent"]),["up"]),withKeys(withModifiers(Cn,["prevent"]),["down"])],onBlur:On,onFocus:An,onInput:wn,onChange:Tn},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var InputNumber=_export_sfc$1(_sfc_main$_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const ElInputNumber=withInstall(InputNumber),linkProps=buildProps({type:{type:String,values:["primary","success","warning","info","danger","default"],default:"default"},underline:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},href:{type:String,default:""},icon:{type:iconPropType}}),linkEmits={click:$=>$ instanceof MouseEvent},_hoisted_1$t=["href"],__default__$G=defineComponent({name:"ElLink"}),_sfc_main$Z=defineComponent({...__default__$G,props:linkProps,emits:linkEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("link"),le=computed(()=>[ie.b(),ie.m(ae.type),ie.is("disabled",ae.disabled),ie.is("underline",ae.underline&&!ae.disabled)]);function pe(_e){ae.disabled||oe("click",_e)}return(_e,Ce)=>(openBlock(),createElementBlock("a",{class:normalizeClass(unref(le)),href:_e.disabled||!_e.href?void 0:_e.href,onClick:pe},[_e.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.icon)))]),_:1})):createCommentVNode("v-if",!0),_e.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ie).e("inner"))},[renderSlot(_e.$slots,"default")],2)):createCommentVNode("v-if",!0),_e.$slots.icon?renderSlot(_e.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$t))}});var Link=_export_sfc$1(_sfc_main$Z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);let SubMenu$1=class{constructor(oe,ae){this.parent=oe,this.domNode=ae,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(oe){oe===this.subMenuItems.length?oe=0:oe<0&&(oe=this.subMenuItems.length-1),this.subMenuItems[oe].focus(),this.subIndex=oe}addListeners(){const oe=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,ae=>{ae.addEventListener("keydown",ie=>{let le=!1;switch(ie.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),le=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),le=!0;break}case EVENT_CODE.tab:{triggerEvent(oe,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{le=!0,ie.currentTarget.click();break}}return le&&(ie.preventDefault(),ie.stopPropagation()),!1})})}},MenuItem$1=class{constructor(oe,ae){this.domNode=oe,this.submenu=null,this.submenu=null,this.init(ae)}init(oe){this.domNode.setAttribute("tabindex","0");const ae=this.domNode.querySelector(`.${oe}-menu`);ae&&(this.submenu=new SubMenu$1(this,ae)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",oe=>{let ae=!1;switch(oe.code){case EVENT_CODE.down:{triggerEvent(oe.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),ae=!0;break}case EVENT_CODE.up:{triggerEvent(oe.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),ae=!0;break}case EVENT_CODE.tab:{triggerEvent(oe.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{ae=!0,oe.currentTarget.click();break}}ae&&oe.preventDefault()})}},Menu$1=class{constructor(oe,ae){this.domNode=oe,this.init(ae)}init(oe){const ae=this.domNode.childNodes;Array.from(ae).forEach(ie=>{ie.nodeType===1&&new MenuItem$1(ie,oe)})}};const _sfc_main$Y=defineComponent({name:"ElMenuCollapseTransition",setup(){const $=useNamespace("menu");return{listeners:{onBeforeEnter:ae=>ae.style.opacity="0.2",onEnter(ae,ie){addClass(ae,`${$.namespace.value}-opacity-transition`),ae.style.opacity="1",ie()},onAfterEnter(ae){removeClass(ae,`${$.namespace.value}-opacity-transition`),ae.style.opacity=""},onBeforeLeave(ae){ae.dataset||(ae.dataset={}),hasClass(ae,$.m("collapse"))?(removeClass(ae,$.m("collapse")),ae.dataset.oldOverflow=ae.style.overflow,ae.dataset.scrollWidth=ae.clientWidth.toString(),addClass(ae,$.m("collapse"))):(addClass(ae,$.m("collapse")),ae.dataset.oldOverflow=ae.style.overflow,ae.dataset.scrollWidth=ae.clientWidth.toString(),removeClass(ae,$.m("collapse"))),ae.style.width=`${ae.scrollWidth}px`,ae.style.overflow="hidden"},onLeave(ae){addClass(ae,"horizontal-collapse-transition"),ae.style.width=`${ae.dataset.scrollWidth}px`}}}}});function _sfc_render$f($,oe,ae,ie,le,pe){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},$.listeners),{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},16)}var ElMenuCollapseTransition=_export_sfc$1(_sfc_main$Y,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu($,oe){const ae=computed(()=>{let le=$.parent;const pe=[oe.value];for(;le.type.name!=="ElMenu";)le.props.index&&pe.unshift(le.props.index),le=le.parent;return pe});return{parentMenu:computed(()=>{let le=$.parent;for(;le&&!["ElMenu","ElSubMenu"].includes(le.type.name);)le=le.parent;return le}),indexPath:ae}}function useMenuColor($){return computed(()=>{const ae=$.backgroundColor;return ae?new TinyColor(ae).shade(20).toString():""})}const useMenuCssVar=($,oe)=>{const ae=useNamespace("menu");return computed(()=>ae.cssVarBlock({"text-color":$.textColor||"","hover-text-color":$.textColor||"","bg-color":$.backgroundColor||"","hover-bg-color":useMenuColor($).value||"","active-color":$.activeTextColor||"",level:`${oe}`}))},subMenuProps=buildProps({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},teleported:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:iconPropType},expandOpenIcon:{type:iconPropType},collapseCloseIcon:{type:iconPropType},collapseOpenIcon:{type:iconPropType}}),COMPONENT_NAME$c="ElSubMenu";var SubMenu=defineComponent({name:COMPONENT_NAME$c,props:subMenuProps,setup($,{slots:oe,expose:ae}){useDeprecated({from:"popper-append-to-body",replacement:"teleported",scope:COMPONENT_NAME$c,version:"2.3.0",ref:"https://element-plus.org/en-US/component/menu.html#submenu-attributes"},computed(()=>$.popperAppendToBody!==void 0));const ie=getCurrentInstance(),{indexPath:le,parentMenu:pe}=useMenu(ie,computed(()=>$.index)),_e=useNamespace("menu"),Ce=useNamespace("sub-menu"),$e=inject("rootMenu");$e||throwError$1(COMPONENT_NAME$c,"can not inject root menu");const xe=inject(`subMenu:${pe.value.uid}`);xe||throwError$1(COMPONENT_NAME$c,"can not inject sub menu");const Ie=ref({}),Ne=ref({});let Fe;const ze=ref(!1),At=ref(),Lt=ref(null),hn=computed(()=>An.value==="horizontal"&&_n.value?"bottom-start":"right-start"),vn=computed(()=>An.value==="horizontal"&&_n.value||An.value==="vertical"&&!$e.props.collapse?$.expandCloseIcon&&$.expandOpenIcon?$n.value?$.expandOpenIcon:$.expandCloseIcon:arrow_down_default:$.collapseCloseIcon&&$.collapseOpenIcon?$n.value?$.collapseOpenIcon:$.collapseCloseIcon:arrow_right_default),_n=computed(()=>xe.level===0),bn=computed(()=>{var jn;const Zn=(jn=$.teleported)!=null?jn:$.popperAppendToBody;return Zn===void 0?_n.value:Zn}),Cn=computed(()=>$e.props.collapse?`${_e.namespace.value}-zoom-in-left`:`${_e.namespace.value}-zoom-in-top`),En=computed(()=>An.value==="horizontal"&&_n.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),$n=computed(()=>$e.openedMenus.includes($.index)),wn=computed(()=>{let jn=!1;return Object.values(Ie.value).forEach(Zn=>{Zn.active&&(jn=!0)}),Object.values(Ne.value).forEach(Zn=>{Zn.active&&(jn=!0)}),jn}),Tn=computed(()=>$e.props.backgroundColor||""),xn=computed(()=>$e.props.activeTextColor||""),kn=computed(()=>$e.props.textColor||""),An=computed(()=>$e.props.mode),On=reactive({index:$.index,indexPath:le,active:wn}),Nn=useMenuCssVar($e.props,xe.level+1),Rn=computed(()=>An.value!=="horizontal"?{color:kn.value}:{borderBottomColor:wn.value?$e.props.activeTextColor?xn.value:"":"transparent",color:wn.value?xn.value:kn.value}),zn=()=>{var jn,Zn,Gn;return(Gn=(Zn=(jn=Lt.value)==null?void 0:jn.popperRef)==null?void 0:Zn.popperInstanceRef)==null?void 0:Gn.destroy()},Bn=jn=>{jn||zn()},Mn=()=>{$e.props.menuTrigger==="hover"&&$e.props.mode==="horizontal"||$e.props.collapse&&$e.props.mode==="vertical"||$.disabled||$e.handleSubMenuClick({index:$.index,indexPath:le.value,active:wn.value})},Fn=(jn,Zn=$.showTimeout)=>{var Gn;jn.type!=="focus"&&($e.props.menuTrigger==="click"&&$e.props.mode==="horizontal"||!$e.props.collapse&&$e.props.mode==="vertical"||$.disabled||(xe.mouseInChild.value=!0,Fe==null||Fe(),{stop:Fe}=useTimeoutFn$1(()=>{$e.openMenu($.index,le.value)},Zn),bn.value&&((Gn=pe.value.vnode.el)==null||Gn.dispatchEvent(new MouseEvent("mouseenter")))))},Vn=(jn=!1)=>{var Zn,Gn;$e.props.menuTrigger==="click"&&$e.props.mode==="horizontal"||!$e.props.collapse&&$e.props.mode==="vertical"||(Fe==null||Fe(),xe.mouseInChild.value=!1,{stop:Fe}=useTimeoutFn$1(()=>!ze.value&&$e.closeMenu($.index,le.value),$.hideTimeout),bn.value&&jn&&((Zn=ie.parent)==null?void 0:Zn.type.name)==="ElSubMenu"&&((Gn=xe.handleMouseleave)==null||Gn.call(xe,!0)))};watch(()=>$e.props.collapse,jn=>Bn(!!jn));{const jn=Gn=>{Ne.value[Gn.index]=Gn},Zn=Gn=>{delete Ne.value[Gn.index]};provide(`subMenu:${ie.uid}`,{addSubMenu:jn,removeSubMenu:Zn,handleMouseleave:Vn,mouseInChild:ze,level:xe.level+1})}return ae({opened:$n}),onMounted(()=>{$e.addSubMenu(On),xe.addSubMenu(On)}),onBeforeUnmount(()=>{xe.removeSubMenu(On),$e.removeSubMenu(On)}),()=>{var jn;const Zn=[(jn=oe.title)==null?void 0:jn.call(oe),h$3(ElIcon,{class:Ce.e("icon-arrow"),style:{transform:$n.value?$.expandCloseIcon&&$.expandOpenIcon||$.collapseCloseIcon&&$.collapseOpenIcon&&$e.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$7(vn.value)?h$3(ie.appContext.components[vn.value]):h$3(vn.value)})],Gn=$e.isMenuPopup?h$3(ElTooltip,{ref:Lt,visible:$n.value,effect:"light",pure:!0,offset:$.popperOffset,showArrow:!1,persistent:!0,popperClass:$.popperClass,placement:hn.value,teleported:bn.value,fallbackPlacements:En.value,transition:Cn.value,gpuAcceleration:!1},{content:()=>{var Xn;return h$3("div",{class:[_e.m(An.value),_e.m("popup-container"),$.popperClass],onMouseenter:cr=>Fn(cr,100),onMouseleave:()=>Vn(!0),onFocus:cr=>Fn(cr,100)},[h$3("ul",{class:[_e.b(),_e.m("popup"),_e.m(`popup-${hn.value}`)],style:Nn.value},[(Xn=oe.default)==null?void 0:Xn.call(oe)])])},default:()=>h$3("div",{class:Ce.e("title"),style:[Rn.value,{backgroundColor:Tn.value}],onClick:Mn},Zn)}):h$3(Fragment,{},[h$3("div",{class:Ce.e("title"),style:[Rn.value,{backgroundColor:Tn.value}],ref:At,onClick:Mn},Zn),h$3(_CollapseTransition,{},{default:()=>{var Xn;return withDirectives(h$3("ul",{role:"menu",class:[_e.b(),_e.m("inline")],style:Nn.value},[(Xn=oe.default)==null?void 0:Xn.call(oe)]),[[vShow,$n.value]])}})]);return h$3("li",{class:[Ce.b(),Ce.is("active",wn.value),Ce.is("opened",$n.value),Ce.is("disabled",$.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:$n.value,onMouseenter:Fn,onMouseleave:()=>Vn(!0),onFocus:Fn},[Gn])}}});const menuProps=buildProps({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:definePropType(Array),default:()=>mutable([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperEffect:{type:String,values:["dark","light"],default:"dark"}}),checkIndexPath=$=>Array.isArray($)&&$.every(oe=>isString$7(oe)),menuEmits={close:($,oe)=>isString$7($)&&checkIndexPath(oe),open:($,oe)=>isString$7($)&&checkIndexPath(oe),select:($,oe,ae,ie)=>isString$7($)&&checkIndexPath(oe)&&isObject$8(ae)&&(ie===void 0||ie instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup($,{emit:oe,slots:ae,expose:ie}){const le=getCurrentInstance(),pe=le.appContext.config.globalProperties.$router,_e=ref(),Ce=useNamespace("menu"),$e=useNamespace("sub-menu"),xe=ref(-1),Ie=ref($.defaultOpeneds&&!$.collapse?$.defaultOpeneds.slice(0):[]),Ne=ref($.defaultActive),Fe=ref({}),ze=ref({}),At=computed(()=>$.mode==="horizontal"||$.mode==="vertical"&&$.collapse),Lt=()=>{const An=Ne.value&&Fe.value[Ne.value];if(!An||$.mode==="horizontal"||$.collapse)return;An.indexPath.forEach(Nn=>{const Rn=ze.value[Nn];Rn&&hn(Nn,Rn.indexPath)})},hn=(An,On)=>{Ie.value.includes(An)||($.uniqueOpened&&(Ie.value=Ie.value.filter(Nn=>On.includes(Nn))),Ie.value.push(An),oe("open",An,On))},vn=An=>{const On=Ie.value.indexOf(An);On!==-1&&Ie.value.splice(On,1)},_n=(An,On)=>{vn(An),oe("close",An,On)},bn=({index:An,indexPath:On})=>{Ie.value.includes(An)?_n(An,On):hn(An,On)},Cn=An=>{($.mode==="horizontal"||$.collapse)&&(Ie.value=[]);const{index:On,indexPath:Nn}=An;if(!(isNil(On)||isNil(Nn)))if($.router&&pe){const Rn=An.route||On,zn=pe.push(Rn).then(Bn=>(Bn||(Ne.value=On),Bn));oe("select",On,Nn,{index:On,indexPath:Nn,route:Rn},zn)}else Ne.value=On,oe("select",On,Nn,{index:On,indexPath:Nn})},En=An=>{const On=Fe.value,Nn=On[An]||Ne.value&&On[Ne.value]||On[$.defaultActive];Nn?Ne.value=Nn.index:Ne.value=An},$n=()=>{var An,On;if(!_e.value)return-1;const Nn=Array.from((On=(An=_e.value)==null?void 0:An.childNodes)!=null?On:[]).filter(jn=>jn.nodeName!=="#text"||jn.nodeValue),Rn=64,zn=Number.parseInt(getComputedStyle(_e.value).paddingLeft,10),Bn=Number.parseInt(getComputedStyle(_e.value).paddingRight,10),Mn=_e.value.clientWidth-zn-Bn;let Fn=0,Vn=0;return Nn.forEach((jn,Zn)=>{Fn+=jn.offsetWidth||0,Fn<=Mn-Rn&&(Vn=Zn+1)}),Vn===Nn.length?-1:Vn},wn=(An,On=33.34)=>{let Nn;return()=>{Nn&&clearTimeout(Nn),Nn=setTimeout(()=>{An()},On)}};let Tn=!0;const xn=()=>{const An=()=>{xe.value=-1,nextTick(()=>{xe.value=$n()})};Tn?An():wn(An)(),Tn=!1};watch(()=>$.defaultActive,An=>{Fe.value[An]||(Ne.value=""),En(An)}),watch(()=>$.collapse,An=>{An&&(Ie.value=[])}),watch(Fe.value,Lt);let kn;watchEffect(()=>{$.mode==="horizontal"&&$.ellipsis?kn=useResizeObserver(_e,xn).stop:kn==null||kn()});{const An=zn=>{ze.value[zn.index]=zn},On=zn=>{delete ze.value[zn.index]};provide("rootMenu",reactive({props:$,openedMenus:Ie,items:Fe,subMenus:ze,activeIndex:Ne,isMenuPopup:At,addMenuItem:zn=>{Fe.value[zn.index]=zn},removeMenuItem:zn=>{delete Fe.value[zn.index]},addSubMenu:An,removeSubMenu:On,openMenu:hn,closeMenu:_n,handleMenuItemClick:Cn,handleSubMenuClick:bn})),provide(`subMenu:${le.uid}`,{addSubMenu:An,removeSubMenu:On,mouseInChild:ref(!1),level:0})}return onMounted(()=>{$.mode==="horizontal"&&new Menu$1(le.vnode.el,Ce.namespace.value)}),ie({open:On=>{const{indexPath:Nn}=ze.value[On];Nn.forEach(Rn=>hn(Rn,Nn))},close:vn,handleResize:xn}),()=>{var An,On;let Nn=(On=(An=ae.default)==null?void 0:An.call(ae))!=null?On:[];const Rn=[];if($.mode==="horizontal"&&_e.value){const Mn=flattedChildren(Nn),Fn=xe.value===-1?Mn:Mn.slice(0,xe.value),Vn=xe.value===-1?[]:Mn.slice(xe.value);Vn!=null&&Vn.length&&$.ellipsis&&(Nn=Fn,Rn.push(h$3(SubMenu,{index:"sub-menu-more",class:$e.e("hide-arrow")},{title:()=>h$3(ElIcon,{class:$e.e("icon-more")},{default:()=>h$3(more_default)}),default:()=>Vn})))}const zn=useMenuCssVar($,0),Bn=h$3("ul",{key:String($.collapse),role:"menubar",ref:_e,style:zn.value,class:{[Ce.b()]:!0,[Ce.m($.mode)]:!0,[Ce.m("collapse")]:$.collapse}},[...Nn,...Rn]);return $.collapseTransition&&$.mode==="vertical"?h$3(ElMenuCollapseTransition,()=>Bn):Bn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:$=>isString$7($.index)&&Array.isArray($.indexPath)},COMPONENT_NAME$b="ElMenuItem",_sfc_main$X=defineComponent({name:COMPONENT_NAME$b,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup($,{emit:oe}){const ae=getCurrentInstance(),ie=inject("rootMenu"),le=useNamespace("menu"),pe=useNamespace("menu-item");ie||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const{parentMenu:_e,indexPath:Ce}=useMenu(ae,toRef$1($,"index")),$e=inject(`subMenu:${_e.value.uid}`);$e||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const xe=computed(()=>$.index===ie.activeIndex),Ie=reactive({index:$.index,indexPath:Ce,active:xe}),Ne=()=>{$.disabled||(ie.handleMenuItemClick({index:$.index,indexPath:Ce.value,route:$.route}),oe("click",Ie))};return onMounted(()=>{$e.addSubMenu(Ie),ie.addMenuItem(Ie)}),onBeforeUnmount(()=>{$e.removeSubMenu(Ie),ie.removeMenuItem(Ie)}),{parentMenu:_e,rootMenu:ie,active:xe,nsMenu:le,nsMenuItem:pe,handleClick:Ne}}});function _sfc_render$e($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([$.nsMenuItem.b(),$.nsMenuItem.is("active",$.active),$.nsMenuItem.is("disabled",$.disabled)]),role:"menuitem",tabindex:"-1",onClick:oe[0]||(oe[0]=(...Ce)=>$.handleClick&&$.handleClick(...Ce))},[$.parentMenu.type.name==="ElMenu"&&$.rootMenu.props.collapse&&$.$slots.title?(openBlock(),createBlock(_e,{key:0,effect:$.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot($.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsMenu.be("tooltip","trigger"))},[renderSlot($.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot($.$slots,"default"),renderSlot($.$slots,"title")],64))],2)}var MenuItem=_export_sfc$1(_sfc_main$X,[["render",_sfc_render$e],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const menuItemGroupProps={title:String},COMPONENT_NAME$a="ElMenuItemGroup",_sfc_main$W=defineComponent({name:COMPONENT_NAME$a,props:menuItemGroupProps,setup(){return{ns:useNamespace("menu-item-group")}}});function _sfc_render$d($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("li",{class:normalizeClass($.ns.b())},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.$slots.title?renderSlot($.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1($.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot($.$slots,"default")])],2)}var MenuItemGroup=_export_sfc$1(_sfc_main$W,[["render",_sfc_render$d],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const ElMenu=withInstall(Menu,{MenuItem,MenuItemGroup,SubMenu}),ElMenuItem=withNoopInstall(MenuItem),ElMenuItemGroup=withNoopInstall(MenuItemGroup),ElSubMenu=withNoopInstall(SubMenu),pageHeaderProps=buildProps({icon:{type:iconPropType,default:()=>back_default},title:String,content:{type:String,default:""}}),pageHeaderEmits={back:()=>!0},_hoisted_1$s=["aria-label"],__default__$F=defineComponent({name:"ElPageHeader"}),_sfc_main$V=defineComponent({...__default__$F,props:pageHeaderProps,emits:pageHeaderEmits,setup($,{emit:oe}){const ae=useSlots(),{t:ie}=useLocale(),le=useNamespace("page-header"),pe=computed(()=>[le.b(),{[le.m("has-breadcrumb")]:!!ae.breadcrumb,[le.m("has-extra")]:!!ae.extra,[le.is("contentful")]:!!ae.default}]);function _e(){oe("back")}return(Ce,$e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(pe))},[Ce.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("breadcrumb"))},[renderSlot(Ce.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("back")),role:"button",tabindex:"0",onClick:_e},[Ce.icon||Ce.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":Ce.title||unref(ie)("el.pageHeader.title"),class:normalizeClass(unref(le).e("icon"))},[renderSlot(Ce.$slots,"icon",{},()=>[Ce.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ce.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$s)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(le).e("title"))},[renderSlot(Ce.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ce.title||unref(ie)("el.pageHeader.title")),1)])],2)],2),createVNode(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(le).e("content"))},[renderSlot(Ce.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(Ce.content),1)])],2)],2),Ce.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(le).e("extra"))},[renderSlot(Ce.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),Ce.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(le).e("main"))},[renderSlot(Ce.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var PageHeader=_export_sfc$1(_sfc_main$V,[["__file","/home/runner/work/element-plus/element-plus/packages/components/page-header/src/page-header.vue"]]);const ElPageHeader=withInstall(PageHeader),elPaginationKey=Symbol("elPaginationKey"),paginationPrevProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:iconPropType}}),paginationPrevEmits={click:$=>$ instanceof MouseEvent},_hoisted_1$r=["disabled","aria-label","aria-disabled"],_hoisted_2$i={key:0},__default__$E=defineComponent({name:"ElPaginationPrev"}),_sfc_main$U=defineComponent({...__default__$E,props:paginationPrevProps,emits:paginationPrevEmits,setup($){const oe=$,{t:ae}=useLocale(),ie=computed(()=>oe.disabled||oe.currentPage<=1);return(le,pe)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(ie),"aria-label":le.prevText||unref(ae)("el.pagination.prev"),"aria-disabled":unref(ie),onClick:pe[0]||(pe[0]=_e=>le.$emit("click",_e))},[le.prevText?(openBlock(),createElementBlock("span",_hoisted_2$i,toDisplayString$1(le.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.prevIcon)))]),_:1}))],8,_hoisted_1$r))}});var Prev=_export_sfc$1(_sfc_main$U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const paginationNextProps=buildProps({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:iconPropType}}),_hoisted_1$q=["disabled","aria-label","aria-disabled"],_hoisted_2$h={key:0},__default__$D=defineComponent({name:"ElPaginationNext"}),_sfc_main$T=defineComponent({...__default__$D,props:paginationNextProps,emits:["click"],setup($){const oe=$,{t:ae}=useLocale(),ie=computed(()=>oe.disabled||oe.currentPage===oe.pageCount||oe.pageCount===0);return(le,pe)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(ie),"aria-label":le.nextText||unref(ae)("el.pagination.next"),"aria-disabled":unref(ie),onClick:pe[0]||(pe[0]=_e=>le.$emit("click",_e))},[le.nextText?(openBlock(),createElementBlock("span",_hoisted_2$h,toDisplayString$1(le.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.nextIcon)))]),_:1}))],8,_hoisted_1$q))}});var Next=_export_sfc$1(_sfc_main$T,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const selectGroupKey=Symbol("ElSelectGroup"),selectKey=Symbol("ElSelect");function useOption$1($,oe){const ae=inject(selectKey),ie=inject(selectGroupKey,{disabled:!1}),le=computed(()=>Object.prototype.toString.call($.value).toLowerCase()==="[object object]"),pe=computed(()=>ae.props.multiple?Ne(ae.props.modelValue,$.value):Fe($.value,ae.props.modelValue)),_e=computed(()=>{if(ae.props.multiple){const Lt=ae.props.modelValue||[];return!pe.value&&Lt.length>=ae.props.multipleLimit&&ae.props.multipleLimit>0}else return!1}),Ce=computed(()=>$.label||(le.value?"":$.value)),$e=computed(()=>$.value||$.label||""),xe=computed(()=>$.disabled||oe.groupDisabled||_e.value),Ie=getCurrentInstance(),Ne=(Lt=[],hn)=>{if(le.value){const vn=ae.props.valueKey;return Lt&&Lt.some(_n=>toRaw(get$1(_n,vn))===get$1(hn,vn))}else return Lt&&Lt.includes(hn)},Fe=(Lt,hn)=>{if(le.value){const{valueKey:vn}=ae.props;return get$1(Lt,vn)===get$1(hn,vn)}else return Lt===hn},ze=()=>{!$.disabled&&!ie.disabled&&(ae.hoverIndex=ae.optionsArray.indexOf(Ie.proxy))};watch(()=>Ce.value,()=>{!$.created&&!ae.props.remote&&ae.setSelected()}),watch(()=>$.value,(Lt,hn)=>{const{remote:vn,valueKey:_n}=ae.props;if(Object.is(Lt,hn)||(ae.onOptionDestroy(hn,Ie.proxy),ae.onOptionCreate(Ie.proxy)),!$.created&&!vn){if(_n&&typeof Lt=="object"&&typeof hn=="object"&&Lt[_n]===hn[_n])return;ae.setSelected()}}),watch(()=>ie.disabled,()=>{oe.groupDisabled=ie.disabled},{immediate:!0});const{queryChange:At}=toRaw(ae);return watch(At,Lt=>{const{query:hn}=unref(Lt),vn=new RegExp(escapeStringRegexp(hn),"i");oe.visible=vn.test(Ce.value)||$.created,oe.visible||ae.filteredOptionsCount--},{immediate:!0}),{select:ae,currentLabel:Ce,currentValue:$e,itemSelected:pe,isDisabled:xe,hoverItem:ze}}const _sfc_main$S=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup($){const oe=useNamespace("select"),ae=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:ie,itemSelected:le,isDisabled:pe,select:_e,hoverItem:Ce}=useOption$1($,ae),{visible:$e,hover:xe}=toRefs(ae),Ie=getCurrentInstance().proxy;_e.onOptionCreate(Ie),onBeforeUnmount(()=>{const Fe=Ie.value,{selected:ze}=_e,Lt=(_e.props.multiple?ze:[ze]).some(hn=>hn.value===Ie.value);nextTick(()=>{_e.cachedOptions.get(Fe)===Ie&&!Lt&&_e.cachedOptions.delete(Fe)}),_e.onOptionDestroy(Fe,Ie)});function Ne(){$.disabled!==!0&&ae.groupDisabled!==!0&&_e.handleOptionSelect(Ie,!0)}return{ns:oe,currentLabel:ie,itemSelected:le,isDisabled:pe,select:_e,hoverItem:Ce,visible:$e,hover:xe,selectOptionClick:Ne,states:ae}}});function _sfc_render$c($,oe,ae,ie,le,pe){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass([$.ns.be("dropdown","item"),$.ns.is("disabled",$.isDisabled),{selected:$.itemSelected,hover:$.hover}]),onMouseenter:oe[0]||(oe[0]=(..._e)=>$.hoverItem&&$.hoverItem(..._e)),onClick:oe[1]||(oe[1]=withModifiers((..._e)=>$.selectOptionClick&&$.selectOptionClick(..._e),["stop"]))},[renderSlot($.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString$1($.currentLabel),1)])],34)),[[vShow,$.visible]])}var Option=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _sfc_main$R=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const $=inject(selectKey),oe=useNamespace("select"),ae=computed(()=>$.props.popperClass),ie=computed(()=>$.props.multiple),le=computed(()=>$.props.fitInputWidth),pe=ref("");function _e(){var Ce;pe.value=`${(Ce=$.selectWrapper)==null?void 0:Ce.offsetWidth}px`}return onMounted(()=>{_e(),useResizeObserver($.selectWrapper,_e)}),{ns:oe,minWidth:pe,popperClass:ae,isMultiple:ie,isFitInputWidth:le}}});function _sfc_render$b($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("div",{class:normalizeClass([$.ns.b("dropdown"),$.ns.is("multiple",$.isMultiple),$.popperClass]),style:normalizeStyle$1({[$.isFitInputWidth?"width":"minWidth"]:$.minWidth})},[renderSlot($.$slots,"default")],6)}var ElSelectMenu$1=_export_sfc$1(_sfc_main$R,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates($){const{t:oe}=useLocale();return reactive({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:$.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:oe("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1,mouseEnter:!1})}const useSelect$2=($,oe,ae)=>{const{t:ie}=useLocale(),le=useNamespace("select");useDeprecated({from:"suffixTransition",replacement:"override style scheme",version:"2.3.0",scope:"props",ref:"https://element-plus.org/en-US/component/select.html#select-attributes"},computed(()=>$.suffixTransition===!1));const pe=ref(null),_e=ref(null),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=ref(null),Ne=ref(null),Fe=ref(-1),ze=shallowRef({query:""}),At=shallowRef(""),Lt=ref([]);let hn=0;const{form:vn,formItem:_n}=useFormItem(),bn=computed(()=>!$.filterable||$.multiple||!oe.visible),Cn=computed(()=>$.disabled||(vn==null?void 0:vn.disabled)),En=computed(()=>{const Cr=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:$.modelValue!==void 0&&$.modelValue!==null&&$.modelValue!=="";return $.clearable&&!Cn.value&&oe.inputHovering&&Cr}),$n=computed(()=>$.remote&&$.filterable&&!$.remoteShowSuffix?"":$.suffixIcon),wn=computed(()=>le.is("reverse",$n.value&&oe.visible&&$.suffixTransition)),Tn=computed(()=>$.remote?300:0),xn=computed(()=>$.loading?$.loadingText||ie("el.select.loading"):$.remote&&oe.query===""&&oe.options.size===0?!1:$.filterable&&oe.query&&oe.options.size>0&&oe.filteredOptionsCount===0?$.noMatchText||ie("el.select.noMatch"):oe.options.size===0?$.noDataText||ie("el.select.noData"):null),kn=computed(()=>{const Cr=Array.from(oe.options.values()),Mr=[];return Lt.value.forEach(Ur=>{const jr=Cr.findIndex(Wr=>Wr.currentLabel===Ur);jr>-1&&Mr.push(Cr[jr])}),Mr.length?Mr:Cr}),An=computed(()=>Array.from(oe.cachedOptions.values())),On=computed(()=>{const Cr=kn.value.filter(Mr=>!Mr.created).some(Mr=>Mr.currentLabel===oe.query);return $.filterable&&$.allowCreate&&oe.query!==""&&!Cr}),Nn=useFormSize(),Rn=computed(()=>["small"].includes(Nn.value)?"small":"default"),zn=computed({get(){return oe.visible&&xn.value!==!1},set(Cr){oe.visible=Cr}});watch([()=>Cn.value,()=>Nn.value,()=>vn==null?void 0:vn.size],()=>{nextTick(()=>{Bn()})}),watch(()=>$.placeholder,Cr=>{oe.cachedPlaceHolder=oe.currentPlaceholder=Cr}),watch(()=>$.modelValue,(Cr,Mr)=>{$.multiple&&(Bn(),Cr&&Cr.length>0||_e.value&&oe.query!==""?oe.currentPlaceholder="":oe.currentPlaceholder=oe.cachedPlaceHolder,$.filterable&&!$.reserveKeyword&&(oe.query="",Mn(oe.query))),jn(),$.filterable&&!$.multiple&&(oe.inputLength=20),!isEqual$1(Cr,Mr)&&$.validateEvent&&(_n==null||_n.validate("change").catch(Ur=>void 0))},{flush:"post",deep:!0}),watch(()=>oe.visible,Cr=>{var Mr,Ur,jr,Wr,Xr;Cr?((Ur=(Mr=$e.value)==null?void 0:Mr.updatePopper)==null||Ur.call(Mr),$.filterable&&(oe.filteredOptionsCount=oe.optionsCount,oe.query=$.remote?"":oe.selectedLabel,(Wr=(jr=Ce.value)==null?void 0:jr.focus)==null||Wr.call(jr),$.multiple?(Xr=_e.value)==null||Xr.focus():oe.selectedLabel&&(oe.currentPlaceholder=`${oe.selectedLabel}`,oe.selectedLabel=""),Mn(oe.query),!$.multiple&&!$.remote&&(ze.value.query="",triggerRef(ze),triggerRef(At)))):($.filterable&&(isFunction$5($.filterMethod)&&$.filterMethod(""),isFunction$5($.remoteMethod)&&$.remoteMethod("")),_e.value&&_e.value.blur(),oe.query="",oe.previousQuery=null,oe.selectedLabel="",oe.inputLength=20,oe.menuVisibleOnFocus=!1,Gn(),nextTick(()=>{_e.value&&_e.value.value===""&&oe.selected.length===0&&(oe.currentPlaceholder=oe.cachedPlaceHolder)}),$.multiple||(oe.selected&&($.filterable&&$.allowCreate&&oe.createdSelected&&oe.createdLabel?oe.selectedLabel=oe.createdLabel:oe.selectedLabel=oe.selected.currentLabel,$.filterable&&(oe.query=oe.selectedLabel)),$.filterable&&(oe.currentPlaceholder=oe.cachedPlaceHolder))),ae.emit("visible-change",Cr)}),watch(()=>oe.options.entries(),()=>{var Cr,Mr,Ur;if(!isClient$2)return;(Mr=(Cr=$e.value)==null?void 0:Cr.updatePopper)==null||Mr.call(Cr),$.multiple&&Bn();const jr=((Ur=Ie.value)==null?void 0:Ur.querySelectorAll("input"))||[];Array.from(jr).includes(document.activeElement)||jn(),$.defaultFirstOption&&($.filterable||$.remote)&&oe.filteredOptionsCount&&Vn()},{flush:"post"}),watch(()=>oe.hoverIndex,Cr=>{isNumber$5(Cr)&&Cr>-1?Fe.value=kn.value[Cr]||{}:Fe.value={},kn.value.forEach(Mr=>{Mr.hover=Fe.value===Mr})});const Bn=()=>{nextTick(()=>{var Cr,Mr;if(!pe.value)return;const Ur=pe.value.$el.querySelector("input");hn=hn||(Ur.clientHeight>0?Ur.clientHeight+2:0);const jr=xe.value,Wr=getComponentSize(Nn.value||(vn==null?void 0:vn.size)),Xr=Nn.value||Wr===hn||hn<=0?Wr:hn;!(Ur.offsetParent===null)&&(Ur.style.height=`${(oe.selected.length===0?Xr:Math.max(jr?jr.clientHeight+(jr.clientHeight>Xr?6:0):0,Xr))-2}px`),oe.tagInMultiLine=Number.parseFloat(Ur.style.height)>=Xr,oe.visible&&xn.value!==!1&&((Mr=(Cr=$e.value)==null?void 0:Cr.updatePopper)==null||Mr.call(Cr))})},Mn=async Cr=>{if(!(oe.previousQuery===Cr||oe.isOnComposition)){if(oe.previousQuery===null&&(isFunction$5($.filterMethod)||isFunction$5($.remoteMethod))){oe.previousQuery=Cr;return}oe.previousQuery=Cr,nextTick(()=>{var Mr,Ur;oe.visible&&((Ur=(Mr=$e.value)==null?void 0:Mr.updatePopper)==null||Ur.call(Mr))}),oe.hoverIndex=-1,$.multiple&&$.filterable&&nextTick(()=>{const Mr=_e.value.value.length*15+20;oe.inputLength=$.collapseTags?Math.min(50,Mr):Mr,Fn(),Bn()}),$.remote&&isFunction$5($.remoteMethod)?(oe.hoverIndex=-1,$.remoteMethod(Cr)):isFunction$5($.filterMethod)?($.filterMethod(Cr),triggerRef(At)):(oe.filteredOptionsCount=oe.optionsCount,ze.value.query=Cr,triggerRef(ze),triggerRef(At)),$.defaultFirstOption&&($.filterable||$.remote)&&oe.filteredOptionsCount&&(await nextTick(),Vn())}},Fn=()=>{oe.currentPlaceholder!==""&&(oe.currentPlaceholder=_e.value.value?"":oe.cachedPlaceHolder)},Vn=()=>{const Cr=kn.value.filter(jr=>jr.visible&&!jr.disabled&&!jr.states.groupDisabled),Mr=Cr.find(jr=>jr.created),Ur=Cr[0];oe.hoverIndex=tr(kn.value,Mr||Ur)},jn=()=>{var Cr;if($.multiple)oe.selectedLabel="";else{const Ur=Zn($.modelValue);(Cr=Ur.props)!=null&&Cr.created?(oe.createdLabel=Ur.props.value,oe.createdSelected=!0):oe.createdSelected=!1,oe.selectedLabel=Ur.currentLabel,oe.selected=Ur,$.filterable&&(oe.query=oe.selectedLabel);return}const Mr=[];Array.isArray($.modelValue)&&$.modelValue.forEach(Ur=>{Mr.push(Zn(Ur))}),oe.selected=Mr,nextTick(()=>{Bn()})},Zn=Cr=>{let Mr;const Ur=toRawType(Cr).toLowerCase()==="object",jr=toRawType(Cr).toLowerCase()==="null",Wr=toRawType(Cr).toLowerCase()==="undefined";for(let Ar=oe.cachedOptions.size-1;Ar>=0;Ar--){const Dr=An.value[Ar];if(Ur?get$1(Dr.value,$.valueKey)===get$1(Cr,$.valueKey):Dr.value===Cr){Mr={value:Cr,currentLabel:Dr.currentLabel,isDisabled:Dr.isDisabled};break}}if(Mr)return Mr;const Xr=Ur?Cr.label:!jr&&!Wr?Cr:"",Qr={value:Cr,currentLabel:Xr};return $.multiple&&(Qr.hitState=!1),Qr},Gn=()=>{setTimeout(()=>{const Cr=$.valueKey;$.multiple?oe.selected.length>0?oe.hoverIndex=Math.min.apply(null,oe.selected.map(Mr=>kn.value.findIndex(Ur=>get$1(Ur,Cr)===get$1(Mr,Cr)))):oe.hoverIndex=-1:oe.hoverIndex=kn.value.findIndex(Mr=>Tr(Mr)===Tr(oe.selected))},300)},Xn=()=>{var Cr,Mr;cr(),(Mr=(Cr=$e.value)==null?void 0:Cr.updatePopper)==null||Mr.call(Cr),$.multiple&&Bn()},cr=()=>{var Cr;oe.inputWidth=(Cr=pe.value)==null?void 0:Cr.$el.offsetWidth},nr=()=>{$.filterable&&oe.query!==oe.selectedLabel&&(oe.query=oe.selectedLabel,Mn(oe.query))},er=debounce(()=>{nr()},Tn.value),rr=debounce(Cr=>{Mn(Cr.target.value)},Tn.value),qn=Cr=>{isEqual$1($.modelValue,Cr)||ae.emit(CHANGE_EVENT,Cr)},Yn=Cr=>{if(Cr.code!==EVENT_CODE.delete){if(Cr.target.value.length<=0&&!Sr()){const Mr=$.modelValue.slice();Mr.pop(),ae.emit(UPDATE_MODEL_EVENT,Mr),qn(Mr)}Cr.target.value.length===1&&$.modelValue.length===0&&(oe.currentPlaceholder=oe.cachedPlaceHolder)}},ar=(Cr,Mr)=>{const Ur=oe.selected.indexOf(Mr);if(Ur>-1&&!Cn.value){const jr=$.modelValue.slice();jr.splice(Ur,1),ae.emit(UPDATE_MODEL_EVENT,jr),qn(jr),ae.emit("remove-tag",Mr.value)}Cr.stopPropagation()},pr=Cr=>{Cr.stopPropagation();const Mr=$.multiple?[]:"";if(!isString$7(Mr))for(const Ur of oe.selected)Ur.isDisabled&&Mr.push(Ur.value);ae.emit(UPDATE_MODEL_EVENT,Mr),qn(Mr),oe.hoverIndex=-1,oe.visible=!1,ae.emit("clear")},Un=(Cr,Mr)=>{var Ur;if($.multiple){const jr=($.modelValue||[]).slice(),Wr=tr(jr,Cr.value);Wr>-1?jr.splice(Wr,1):($.multipleLimit<=0||jr.length<$.multipleLimit)&&jr.push(Cr.value),ae.emit(UPDATE_MODEL_EVENT,jr),qn(jr),Cr.created&&(oe.query="",Mn(""),oe.inputLength=20),$.filterable&&((Ur=_e.value)==null||Ur.focus())}else ae.emit(UPDATE_MODEL_EVENT,Cr.value),qn(Cr.value),oe.visible=!1;oe.isSilentBlur=Mr,ur(),!oe.visible&&nextTick(()=>{_r(Cr)})},tr=(Cr=[],Mr)=>{if(!isObject$8(Mr))return Cr.indexOf(Mr);const Ur=$.valueKey;let jr=-1;return Cr.some((Wr,Xr)=>toRaw(get$1(Wr,Ur))===get$1(Mr,Ur)?(jr=Xr,!0):!1),jr},ur=()=>{oe.softFocus=!0;const Cr=_e.value||pe.value;Cr&&(Cr==null||Cr.focus())},_r=Cr=>{var Mr,Ur,jr,Wr,Xr;const Qr=Array.isArray(Cr)?Cr[0]:Cr;let Ar=null;if(Qr!=null&&Qr.value){const Dr=kn.value.filter(Yr=>Yr.value===Qr.value);Dr.length>0&&(Ar=Dr[0].$el)}if($e.value&&Ar){const Dr=(Wr=(jr=(Ur=(Mr=$e.value)==null?void 0:Mr.popperRef)==null?void 0:Ur.contentRef)==null?void 0:jr.querySelector)==null?void 0:Wr.call(jr,`.${le.be("dropdown","wrap")}`);Dr&&scrollIntoView(Dr,Ar)}(Xr=Ne.value)==null||Xr.handleScroll()},Er=Cr=>{oe.optionsCount++,oe.filteredOptionsCount++,oe.options.set(Cr.value,Cr),oe.cachedOptions.set(Cr.value,Cr)},sr=(Cr,Mr)=>{oe.options.get(Cr)===Mr&&(oe.optionsCount--,oe.filteredOptionsCount--,oe.options.delete(Cr))},Pr=Cr=>{Cr.code!==EVENT_CODE.backspace&&Sr(!1),oe.inputLength=_e.value.value.length*15+20,Bn()},Sr=Cr=>{if(!Array.isArray(oe.selected))return;const Mr=oe.selected[oe.selected.length-1];if(Mr)return Cr===!0||Cr===!1?(Mr.hitState=Cr,Cr):(Mr.hitState=!Mr.hitState,Mr.hitState)},kr=Cr=>{const Mr=Cr.target.value;if(Cr.type==="compositionend")oe.isOnComposition=!1,nextTick(()=>Mn(Mr));else{const Ur=Mr[Mr.length-1]||"";oe.isOnComposition=!isKorean(Ur)}},mr=()=>{nextTick(()=>_r(oe.selected))},lr=Cr=>{oe.softFocus?oe.softFocus=!1:(($.automaticDropdown||$.filterable)&&($.filterable&&!oe.visible&&(oe.menuVisibleOnFocus=!0),oe.visible=!0),ae.emit("focus",Cr))},hr=()=>{var Cr,Mr,Ur;oe.visible=!1,(Cr=pe.value)==null||Cr.blur(),(Ur=(Mr=Ce.value)==null?void 0:Mr.blur)==null||Ur.call(Mr)},gr=Cr=>{nextTick(()=>{oe.isSilentBlur?oe.isSilentBlur=!1:ae.emit("blur",Cr)}),oe.softFocus=!1},Or=Cr=>{pr(Cr)},Lr=()=>{oe.visible=!1},Vr=Cr=>{oe.visible&&(Cr.preventDefault(),Cr.stopPropagation(),oe.visible=!1)},Rr=Cr=>{var Mr;Cr&&!oe.mouseEnter||Cn.value||(oe.menuVisibleOnFocus?oe.menuVisibleOnFocus=!1:(!$e.value||!$e.value.isFocusInsideContent())&&(oe.visible=!oe.visible),oe.visible&&((Mr=_e.value||pe.value)==null||Mr.focus()))},$r=()=>{oe.visible?kn.value[oe.hoverIndex]&&Un(kn.value[oe.hoverIndex],void 0):Rr()},Tr=Cr=>isObject$8(Cr.value)?get$1(Cr.value,$.valueKey):Cr.value,dr=computed(()=>kn.value.filter(Cr=>Cr.visible).every(Cr=>Cr.disabled)),Jn=computed(()=>oe.selected.slice(0,$.maxCollapseTags)),ir=computed(()=>oe.selected.slice($.maxCollapseTags)),xr=Cr=>{if(!oe.visible){oe.visible=!0;return}if(!(oe.options.size===0||oe.filteredOptionsCount===0)&&!oe.isOnComposition&&!dr.value){Cr==="next"?(oe.hoverIndex++,oe.hoverIndex===oe.options.size&&(oe.hoverIndex=0)):Cr==="prev"&&(oe.hoverIndex--,oe.hoverIndex<0&&(oe.hoverIndex=oe.options.size-1));const Mr=kn.value[oe.hoverIndex];(Mr.disabled===!0||Mr.states.groupDisabled===!0||!Mr.visible)&&xr(Cr),nextTick(()=>_r(Fe.value))}};return{optionList:Lt,optionsArray:kn,selectSize:Nn,handleResize:Xn,debouncedOnInputChange:er,debouncedQueryChange:rr,deletePrevTag:Yn,deleteTag:ar,deleteSelected:pr,handleOptionSelect:Un,scrollToOption:_r,readonly:bn,resetInputHeight:Bn,showClose:En,iconComponent:$n,iconReverse:wn,showNewOption:On,collapseTagSize:Rn,setSelected:jn,managePlaceholder:Fn,selectDisabled:Cn,emptyText:xn,toggleLastOptionHitState:Sr,resetInputState:Pr,handleComposition:kr,onOptionCreate:Er,onOptionDestroy:sr,handleMenuEnter:mr,handleFocus:lr,blur:hr,handleBlur:gr,handleClearClick:Or,handleClose:Lr,handleKeydownEscape:Vr,toggleMenu:Rr,selectOption:$r,getValueKey:Tr,navigateOptions:xr,dropMenuVisible:zn,queryChange:ze,groupQueryChange:At,showTagList:Jn,collapseTagList:ir,reference:pe,input:_e,iOSInput:Ce,tooltipRef:$e,tags:xe,selectWrapper:Ie,scrollbar:Ne,handleMouseEnter:()=>{oe.mouseEnter=!0},handleMouseLeave:()=>{oe.mouseEnter=!1}}};var ElOptions=defineComponent({name:"ElOptions",emits:["update-options"],setup($,{slots:oe,emit:ae}){let ie=[];function le(pe,_e){if(pe.length!==_e.length)return!1;for(const[Ce]of pe.entries())if(pe[Ce]!=_e[Ce])return!1;return!0}return()=>{var pe,_e;const Ce=(pe=oe.default)==null?void 0:pe.call(oe),$e=[];function xe(Ie){Array.isArray(Ie)&&Ie.forEach(Ne=>{var Fe,ze,At,Lt;const hn=(Fe=(Ne==null?void 0:Ne.type)||{})==null?void 0:Fe.name;hn==="ElOptionGroup"?xe(!isString$7(Ne.children)&&!Array.isArray(Ne.children)&&isFunction$5((ze=Ne.children)==null?void 0:ze.default)?(At=Ne.children)==null?void 0:At.default():Ne.children):hn==="ElOption"?$e.push((Lt=Ne.props)==null?void 0:Lt.label):Array.isArray(Ne.children)&&xe(Ne.children)})}return Ce.length&&xe((_e=Ce[0])==null?void 0:_e.children),le($e,ie)||(ie=$e,ae("update-options",$e)),Ce}}});const COMPONENT_NAME$9="ElSelect",_sfc_main$Q=defineComponent({name:COMPONENT_NAME$9,componentName:COMPONENT_NAME$9,components:{ElInput,ElSelectMenu:ElSelectMenu$1,ElOption:Option,ElOptions,ElTag,ElScrollbar,ElTooltip,ElIcon},directives:{ClickOutside},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:isValidComponentSize},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod:Function,multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Ee,default:"bottom-start"}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,oe){const ae=useNamespace("select"),ie=useNamespace("input"),{t:le}=useLocale(),pe=useSelectStates($),{optionList:_e,optionsArray:Ce,selectSize:$e,readonly:xe,handleResize:Ie,collapseTagSize:Ne,debouncedOnInputChange:Fe,debouncedQueryChange:ze,deletePrevTag:At,deleteTag:Lt,deleteSelected:hn,handleOptionSelect:vn,scrollToOption:_n,setSelected:bn,resetInputHeight:Cn,managePlaceholder:En,showClose:$n,selectDisabled:wn,iconComponent:Tn,iconReverse:xn,showNewOption:kn,emptyText:An,toggleLastOptionHitState:On,resetInputState:Nn,handleComposition:Rn,onOptionCreate:zn,onOptionDestroy:Bn,handleMenuEnter:Mn,handleFocus:Fn,blur:Vn,handleBlur:jn,handleClearClick:Zn,handleClose:Gn,handleKeydownEscape:Xn,toggleMenu:cr,selectOption:nr,getValueKey:er,navigateOptions:rr,dropMenuVisible:qn,reference:Yn,input:ar,iOSInput:pr,tooltipRef:Un,tags:tr,selectWrapper:ur,scrollbar:_r,queryChange:Er,groupQueryChange:sr,handleMouseEnter:Pr,handleMouseLeave:Sr,showTagList:kr,collapseTagList:mr}=useSelect$2($,pe,oe),{focus:lr}=useFocus(Yn),{inputWidth:hr,selected:gr,inputLength:Or,filteredOptionsCount:Lr,visible:Vr,softFocus:Rr,selectedLabel:$r,hoverIndex:Tr,query:dr,inputHovering:Jn,currentPlaceholder:ir,menuVisibleOnFocus:xr,isOnComposition:Ir,isSilentBlur:Hr,options:Cr,cachedOptions:Mr,optionsCount:Ur,prefixWidth:jr,tagInMultiLine:Wr}=toRefs(pe),Xr=computed(()=>{const qr=[ae.b()],Fr=unref($e);return Fr&&qr.push(ae.m(Fr)),$.disabled&&qr.push(ae.m("disabled")),qr}),Qr=computed(()=>({maxWidth:`${unref(hr)-32}px`,width:"100%"})),Ar=computed(()=>({maxWidth:`${unref(hr)>123?unref(hr)-123:unref(hr)-75}px`}));provide(selectKey,reactive({props:$,options:Cr,optionsArray:Ce,cachedOptions:Mr,optionsCount:Ur,filteredOptionsCount:Lr,hoverIndex:Tr,handleOptionSelect:vn,onOptionCreate:zn,onOptionDestroy:Bn,selectWrapper:ur,selected:gr,setSelected:bn,queryChange:Er,groupQueryChange:sr})),onMounted(()=>{pe.cachedPlaceHolder=ir.value=$.placeholder||(()=>le("el.select.placeholder")),$.multiple&&Array.isArray($.modelValue)&&$.modelValue.length>0&&(ir.value=""),useResizeObserver(ur,Ie),$.remote&&$.multiple&&Cn(),nextTick(()=>{const qr=Yn.value&&Yn.value.$el;if(qr&&(hr.value=qr.getBoundingClientRect().width,oe.slots.prefix)){const Fr=qr.querySelector(`.${ie.e("prefix")}`);jr.value=Math.max(Fr.getBoundingClientRect().width+5,30)}}),bn()}),$.multiple&&!Array.isArray($.modelValue)&&oe.emit(UPDATE_MODEL_EVENT,[]),!$.multiple&&Array.isArray($.modelValue)&&oe.emit(UPDATE_MODEL_EVENT,"");const Dr=computed(()=>{var qr,Fr;return(Fr=(qr=Un.value)==null?void 0:qr.popperRef)==null?void 0:Fr.contentRef});return{isIOS:isIOS$1,onOptionsRendered:qr=>{_e.value=qr},tagInMultiLine:Wr,prefixWidth:jr,selectSize:$e,readonly:xe,handleResize:Ie,collapseTagSize:Ne,debouncedOnInputChange:Fe,debouncedQueryChange:ze,deletePrevTag:At,deleteTag:Lt,deleteSelected:hn,handleOptionSelect:vn,scrollToOption:_n,inputWidth:hr,selected:gr,inputLength:Or,filteredOptionsCount:Lr,visible:Vr,softFocus:Rr,selectedLabel:$r,hoverIndex:Tr,query:dr,inputHovering:Jn,currentPlaceholder:ir,menuVisibleOnFocus:xr,isOnComposition:Ir,isSilentBlur:Hr,options:Cr,resetInputHeight:Cn,managePlaceholder:En,showClose:$n,selectDisabled:wn,iconComponent:Tn,iconReverse:xn,showNewOption:kn,emptyText:An,toggleLastOptionHitState:On,resetInputState:Nn,handleComposition:Rn,handleMenuEnter:Mn,handleFocus:Fn,blur:Vn,handleBlur:jn,handleClearClick:Zn,handleClose:Gn,handleKeydownEscape:Xn,toggleMenu:cr,selectOption:nr,getValueKey:er,navigateOptions:rr,dropMenuVisible:qn,focus:lr,reference:Yn,input:ar,iOSInput:pr,tooltipRef:Un,popperPaneRef:Dr,tags:tr,selectWrapper:ur,scrollbar:_r,wrapperKls:Xr,selectTagsStyle:Qr,nsSelect:ae,tagTextStyle:Ar,handleMouseEnter:Pr,handleMouseLeave:Sr,showTagList:kr,collapseTagList:mr}}}),_hoisted_1$p=["disabled","autocomplete"],_hoisted_2$g=["disabled"],_hoisted_3$9={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$a($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tag"),Ce=resolveComponent("el-tooltip"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-input"),Ie=resolveComponent("el-option"),Ne=resolveComponent("el-options"),Fe=resolveComponent("el-scrollbar"),ze=resolveComponent("el-select-menu"),At=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass($.wrapperKls),onMouseenter:oe[21]||(oe[21]=(...Lt)=>$.handleMouseEnter&&$.handleMouseEnter(...Lt)),onMouseleave:oe[22]||(oe[22]=(...Lt)=>$.handleMouseLeave&&$.handleMouseLeave(...Lt)),onClick:oe[23]||(oe[23]=withModifiers((...Lt)=>$.toggleMenu&&$.toggleMenu(...Lt),["stop"]))},[createVNode(Ce,{ref:"tooltipRef",visible:$.dropMenuVisible,placement:$.placement,teleported:$.teleported,"popper-class":[$.nsSelect.e("popper"),$.popperClass],"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,pure:"",trigger:"click",transition:`${$.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:$.persistent,onShow:$.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",{class:"select-trigger",onMouseenter:oe[19]||(oe[19]=Lt=>$.inputHovering=!0),onMouseleave:oe[20]||(oe[20]=Lt=>$.inputHovering=!1)},[$.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",class:normalizeClass([$.nsSelect.e("tags"),$.nsSelect.is("disabled",$.selectDisabled)]),style:normalizeStyle$1($.selectTagsStyle)},[$.collapseTags&&$.selected.length?(openBlock(),createBlock(Transition,{key:0,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,Lt=>(openBlock(),createBlock(_e,{key:$.getValueKey(Lt),closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1($.tagTextStyle)},toDisplayString$1(Lt.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),$.selected.length>$.maxCollapseTags?(openBlock(),createBlock(_e,{key:0,closable:!1,size:$.collapseTagSize,type:$.tagType,"disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(Ce,{key:0,disabled:$.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:$.teleported},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,Lt=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Lt),class:normalizeClass($.nsSelect.e("collapse-tag"))},[createVNode(_e,{class:"in-tooltip",closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(Lt.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelect.e("tags-text"))},"+ "+toDisplayString$1($.selected.length-$.maxCollapseTags),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):createCommentVNode("v-if",!0),$.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:$.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass([$.nsSelect.b("tags-wrapper"),{"has-prefix":$.prefixWidth&&$.selected.length}])},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.selected,Lt=>(openBlock(),createBlock(_e,{key:$.getValueKey(Lt),closable:!$.selectDisabled&&!Lt.isDisabled,size:$.collapseTagSize,hit:Lt.hitState,type:$.tagType,"disable-transitions":"",onClose:hn=>$.deleteTag(hn,Lt)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:$.inputWidth-75+"px"})},toDisplayString$1(Lt.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),$.filterable?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":oe[0]||(oe[0]=Lt=>$.query=Lt),type:"text",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.is("disabled",$.selectDisabled)]),disabled:$.selectDisabled,autocomplete:$.autocomplete,style:normalizeStyle$1({marginLeft:$.prefixWidth&&!$.selected.length||$.tagInMultiLine?`${$.prefixWidth}px`:"",flexGrow:1,width:`${$.inputLength/($.inputWidth-32)}%`,maxWidth:`${$.inputWidth-42}px`}),onFocus:oe[1]||(oe[1]=(...Lt)=>$.handleFocus&&$.handleFocus(...Lt)),onBlur:oe[2]||(oe[2]=(...Lt)=>$.handleBlur&&$.handleBlur(...Lt)),onKeyup:oe[3]||(oe[3]=(...Lt)=>$.managePlaceholder&&$.managePlaceholder(...Lt)),onKeydown:[oe[4]||(oe[4]=(...Lt)=>$.resetInputState&&$.resetInputState(...Lt)),oe[5]||(oe[5]=withKeys(withModifiers(Lt=>$.navigateOptions("next"),["prevent"]),["down"])),oe[6]||(oe[6]=withKeys(withModifiers(Lt=>$.navigateOptions("prev"),["prevent"]),["up"])),oe[7]||(oe[7]=withKeys((...Lt)=>$.handleKeydownEscape&&$.handleKeydownEscape(...Lt),["esc"])),oe[8]||(oe[8]=withKeys(withModifiers((...Lt)=>$.selectOption&&$.selectOption(...Lt),["stop","prevent"]),["enter"])),oe[9]||(oe[9]=withKeys((...Lt)=>$.deletePrevTag&&$.deletePrevTag(...Lt),["delete"])),oe[10]||(oe[10]=withKeys(Lt=>$.visible=!1,["tab"]))],onCompositionstart:oe[11]||(oe[11]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onCompositionupdate:oe[12]||(oe[12]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onCompositionend:oe[13]||(oe[13]=(...Lt)=>$.handleComposition&&$.handleComposition(...Lt)),onInput:oe[14]||(oe[14]=(...Lt)=>$.debouncedQueryChange&&$.debouncedQueryChange(...Lt))},null,46,_hoisted_1$p)),[[vModelText,$.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),$.isIOS&&!$.multiple&&$.filterable&&$.readonly?(openBlock(),createElementBlock("input",{key:1,ref:"iOSInput",class:normalizeClass([$.nsSelect.e("input"),$.nsSelect.is($.selectSize),$.nsSelect.em("input","iOS")]),disabled:$.selectDisabled,type:"text"},null,10,_hoisted_2$g)):createCommentVNode("v-if",!0),createVNode(xe,{id:$.id,ref:"reference",modelValue:$.selectedLabel,"onUpdate:modelValue":oe[15]||(oe[15]=Lt=>$.selectedLabel=Lt),type:"text",placeholder:typeof $.currentPlaceholder=="function"?$.currentPlaceholder():$.currentPlaceholder,name:$.name,autocomplete:$.autocomplete,size:$.selectSize,disabled:$.selectDisabled,readonly:$.readonly,"validate-event":!1,class:normalizeClass([$.nsSelect.is("focus",$.visible)]),tabindex:$.multiple&&$.filterable?-1:void 0,onFocus:$.handleFocus,onBlur:$.handleBlur,onInput:$.debouncedOnInputChange,onPaste:$.debouncedOnInputChange,onCompositionstart:$.handleComposition,onCompositionupdate:$.handleComposition,onCompositionend:$.handleComposition,onKeydown:[oe[16]||(oe[16]=withKeys(withModifiers(Lt=>$.navigateOptions("next"),["stop","prevent"]),["down"])),oe[17]||(oe[17]=withKeys(withModifiers(Lt=>$.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers($.selectOption,["stop","prevent"]),["enter"]),withKeys($.handleKeydownEscape,["esc"]),oe[18]||(oe[18]=withKeys(Lt=>$.visible=!1,["tab"]))]},createSlots({suffix:withCtx(()=>[$.iconComponent&&!$.showClose?(openBlock(),createBlock($e,{key:0,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.showClose&&$.clearIcon?(openBlock(),createBlock($e,{key:1,class:normalizeClass([$.nsSelect.e("caret"),$.nsSelect.e("icon")]),onClick:$.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[$.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$9,[renderSlot($.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:withCtx(()=>[createVNode(ze,null,{default:withCtx(()=>[withDirectives(createVNode(Fe,{ref:"scrollbar",tag:"ul","wrap-class":$.nsSelect.be("dropdown","wrap"),"view-class":$.nsSelect.be("dropdown","list"),class:normalizeClass([$.nsSelect.is("empty",!$.allowCreate&&!!$.query&&$.filteredOptionsCount===0)])},{default:withCtx(()=>[$.showNewOption?(openBlock(),createBlock(Ie,{key:0,value:$.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode(Ne,{onUpdateOptions:$.onOptionsRendered},{default:withCtx(()=>[renderSlot($.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[vShow,$.options.size>0&&!$.loading]]),$.emptyText&&(!$.allowCreate||$.loading||$.allowCreate&&$.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[$.$slots.empty?renderSlot($.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass($.nsSelect.be("dropdown","empty"))},toDisplayString$1($.emptyText),3))],64)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[At,$.handleClose,$.popperPaneRef]])}var Select$1=_export_sfc$1(_sfc_main$Q,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const _sfc_main$P=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup($){const oe=useNamespace("select"),ae=ref(!0),ie=getCurrentInstance(),le=ref([]);provide(selectGroupKey,reactive({...toRefs($)}));const pe=inject(selectKey);onMounted(()=>{le.value=_e(ie.subTree)});const _e=$e=>{const xe=[];return Array.isArray($e.children)&&$e.children.forEach(Ie=>{var Ne;Ie.type&&Ie.type.name==="ElOption"&&Ie.component&&Ie.component.proxy?xe.push(Ie.component.proxy):(Ne=Ie.children)!=null&&Ne.length&&xe.push(..._e(Ie))}),xe},{groupQueryChange:Ce}=toRaw(pe);return watch(Ce,()=>{ae.value=le.value.some($e=>$e.visible===!0)},{flush:"post"}),{visible:ae,ns:oe}}});function _sfc_render$9($,oe,ae,ie,le,pe){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass($.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass($.ns.be("group","title"))},toDisplayString$1($.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass($.ns.b("group"))},[renderSlot($.$slots,"default")],2)])],2)),[[vShow,$.visible]])}var OptionGroup=_export_sfc$1(_sfc_main$P,[["render",_sfc_render$9],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const ElSelect=withInstall(Select$1,{Option,OptionGroup}),ElOption=withNoopInstall(Option),ElOptionGroup=withNoopInstall(OptionGroup),usePagination=()=>inject(elPaginationKey,{}),paginationSizesProps=buildProps({pageSize:{type:Number,required:!0},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,values:componentSizes}}),__default__$C=defineComponent({name:"ElPaginationSizes"}),_sfc_main$O=defineComponent({...__default__$C,props:paginationSizesProps,emits:["page-size-change"],setup($,{emit:oe}){const ae=$,{t:ie}=useLocale(),le=useNamespace("pagination"),pe=usePagination(),_e=ref(ae.pageSize);watch(()=>ae.pageSizes,(xe,Ie)=>{if(!isEqual$1(xe,Ie)&&Array.isArray(xe)){const Ne=xe.includes(ae.pageSize)?ae.pageSize:ae.pageSizes[0];oe("page-size-change",Ne)}}),watch(()=>ae.pageSize,xe=>{_e.value=xe});const Ce=computed(()=>ae.pageSizes);function $e(xe){var Ie;xe!==_e.value&&(_e.value=xe,(Ie=pe.handleSizeChange)==null||Ie.call(pe,Number(xe)))}return(xe,Ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(le).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":_e.value,disabled:xe.disabled,"popper-class":xe.popperClass,size:xe.size,"validate-event":!1,onChange:$e},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ce),Ne=>(openBlock(),createBlock(unref(ElOption),{key:Ne,value:Ne,label:Ne+unref(ie)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var Sizes=_export_sfc$1(_sfc_main$O,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const paginationJumperProps=buildProps({size:{type:String,values:componentSizes}}),_hoisted_1$o=["disabled"],__default__$B=defineComponent({name:"ElPaginationJumper"}),_sfc_main$N=defineComponent({...__default__$B,props:paginationJumperProps,setup($){const{t:oe}=useLocale(),ae=useNamespace("pagination"),{pageCount:ie,disabled:le,currentPage:pe,changeEvent:_e}=usePagination(),Ce=ref(),$e=computed(()=>{var Ne;return(Ne=Ce.value)!=null?Ne:pe==null?void 0:pe.value});function xe(Ne){Ce.value=Ne?+Ne:""}function Ie(Ne){Ne=Math.trunc(+Ne),_e==null||_e(Ne),Ce.value=void 0}return(Ne,Fe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ae).e("jump")),disabled:unref(le)},[createBaseVNode("span",{class:normalizeClass([unref(ae).e("goto")])},toDisplayString$1(unref(oe)("el.pagination.goto")),3),createVNode(unref(ElInput),{size:Ne.size,class:normalizeClass([unref(ae).e("editor"),unref(ae).is("in-pagination")]),min:1,max:unref(ie),disabled:unref(le),"model-value":unref($e),"validate-event":!1,label:unref(oe)("el.pagination.page"),type:"number","onUpdate:modelValue":xe,onChange:Ie},null,8,["size","class","max","disabled","model-value","label"]),createBaseVNode("span",{class:normalizeClass([unref(ae).e("classifier")])},toDisplayString$1(unref(oe)("el.pagination.pageClassifier")),3)],10,_hoisted_1$o))}});var Jumper=_export_sfc$1(_sfc_main$N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const paginationTotalProps=buildProps({total:{type:Number,default:1e3}}),_hoisted_1$n=["disabled"],__default__$A=defineComponent({name:"ElPaginationTotal"}),_sfc_main$M=defineComponent({...__default__$A,props:paginationTotalProps,setup($){const{t:oe}=useLocale(),ae=useNamespace("pagination"),{disabled:ie}=usePagination();return(le,pe)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ae).e("total")),disabled:unref(ie)},toDisplayString$1(unref(oe)("el.pagination.total",{total:le.total})),11,_hoisted_1$n))}});var Total=_export_sfc$1(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const paginationPagerProps=buildProps({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),_hoisted_1$m=["onKeyup"],_hoisted_2$f=["aria-current","aria-label","tabindex"],_hoisted_3$8=["tabindex","aria-label"],_hoisted_4$6=["aria-current","aria-label","tabindex"],_hoisted_5$4=["tabindex","aria-label"],_hoisted_6=["aria-current","aria-label","tabindex"],__default__$z=defineComponent({name:"ElPaginationPager"}),_sfc_main$L=defineComponent({...__default__$z,props:paginationPagerProps,emits:["change"],setup($,{emit:oe}){const ae=$,ie=useNamespace("pager"),le=useNamespace("icon"),{t:pe}=useLocale(),_e=ref(!1),Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=ref(!1),Ne=ref(!1),Fe=computed(()=>{const _n=ae.pagerCount,bn=(_n-1)/2,Cn=Number(ae.currentPage),En=Number(ae.pageCount);let $n=!1,wn=!1;En>_n&&(Cn>_n-bn&&($n=!0),Cn<En-bn&&(wn=!0));const Tn=[];if($n&&!wn){const xn=En-(_n-2);for(let kn=xn;kn<En;kn++)Tn.push(kn)}else if(!$n&&wn)for(let xn=2;xn<_n;xn++)Tn.push(xn);else if($n&&wn){const xn=Math.floor(_n/2)-1;for(let kn=Cn-xn;kn<=Cn+xn;kn++)Tn.push(kn)}else for(let xn=2;xn<En;xn++)Tn.push(xn);return Tn}),ze=computed(()=>ae.disabled?-1:0);watchEffect(()=>{const _n=(ae.pagerCount-1)/2;_e.value=!1,Ce.value=!1,ae.pageCount>ae.pagerCount&&(ae.currentPage>ae.pagerCount-_n&&(_e.value=!0),ae.currentPage<ae.pageCount-_n&&(Ce.value=!0))});function At(_n=!1){ae.disabled||(_n?$e.value=!0:xe.value=!0)}function Lt(_n=!1){_n?Ie.value=!0:Ne.value=!0}function hn(_n){const bn=_n.target;if(bn.tagName.toLowerCase()==="li"&&Array.from(bn.classList).includes("number")){const Cn=Number(bn.textContent);Cn!==ae.currentPage&&oe("change",Cn)}else bn.tagName.toLowerCase()==="li"&&Array.from(bn.classList).includes("more")&&vn(_n)}function vn(_n){const bn=_n.target;if(bn.tagName.toLowerCase()==="ul"||ae.disabled)return;let Cn=Number(bn.textContent);const En=ae.pageCount,$n=ae.currentPage,wn=ae.pagerCount-2;bn.className.includes("more")&&(bn.className.includes("quickprev")?Cn=$n-wn:bn.className.includes("quicknext")&&(Cn=$n+wn)),Number.isNaN(+Cn)||(Cn<1&&(Cn=1),Cn>En&&(Cn=En)),Cn!==$n&&oe("change",Cn)}return(_n,bn)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(ie).b()),onClick:vn,onKeyup:withKeys(hn,["enter"])},[_n.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(ie).is("active",_n.currentPage===1),unref(ie).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===1,"aria-label":unref(pe)("el.pagination.currentPage",{pager:1}),tabindex:unref(ze)}," 1 ",10,_hoisted_2$f)):createCommentVNode("v-if",!0),_e.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(["more","btn-quickprev",unref(le).b(),unref(ie).is("disabled",_n.disabled)]),tabindex:unref(ze),"aria-label":unref(pe)("el.pagination.prevPages",{pager:_n.pagerCount-2}),onMouseenter:bn[0]||(bn[0]=Cn=>At(!0)),onMouseleave:bn[1]||(bn[1]=Cn=>$e.value=!1),onFocus:bn[2]||(bn[2]=Cn=>Lt(!0)),onBlur:bn[3]||(bn[3]=Cn=>Ie.value=!1)},[($e.value||Ie.value)&&!_n.disabled?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_3$8)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe),Cn=>(openBlock(),createElementBlock("li",{key:Cn,class:normalizeClass([[unref(ie).is("active",_n.currentPage===Cn),unref(ie).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===Cn,"aria-label":unref(pe)("el.pagination.currentPage",{pager:Cn}),tabindex:unref(ze)},toDisplayString$1(Cn),11,_hoisted_4$6))),128)),Ce.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(["more","btn-quicknext",unref(le).b(),unref(ie).is("disabled",_n.disabled)]),tabindex:unref(ze),"aria-label":unref(pe)("el.pagination.nextPages",{pager:_n.pagerCount-2}),onMouseenter:bn[4]||(bn[4]=Cn=>At()),onMouseleave:bn[5]||(bn[5]=Cn=>xe.value=!1),onFocus:bn[6]||(bn[6]=Cn=>Lt()),onBlur:bn[7]||(bn[7]=Cn=>Ne.value=!1)},[(xe.value||Ne.value)&&!_n.disabled?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_5$4)):createCommentVNode("v-if",!0),_n.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(ie).is("active",_n.currentPage===_n.pageCount),unref(ie).is("disabled",_n.disabled)],"number"]),"aria-current":_n.currentPage===_n.pageCount,"aria-label":unref(pe)("el.pagination.currentPage",{pager:_n.pageCount}),tabindex:unref(ze)},toDisplayString$1(_n.pageCount),11,_hoisted_6)):createCommentVNode("v-if",!0)],42,_hoisted_1$m))}});var Pager=_export_sfc$1(_sfc_main$L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=$=>typeof $!="number",paginationProps=buildProps({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:$=>isNumber$5($)&&Math.trunc($)===$&&$>4&&$<22&&$%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:definePropType(Array),default:()=>mutable([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:iconPropType,default:()=>arrow_left_default},nextText:{type:String,default:""},nextIcon:{type:iconPropType,default:()=>arrow_right_default},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),paginationEmits={"update:current-page":$=>isNumber$5($),"update:page-size":$=>isNumber$5($),"size-change":$=>isNumber$5($),"current-change":$=>isNumber$5($),"prev-click":$=>isNumber$5($),"next-click":$=>isNumber$5($)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup($,{emit:oe,slots:ae}){const{t:ie}=useLocale(),le=useNamespace("pagination"),pe=getCurrentInstance().vnode.props||{},_e="onUpdate:currentPage"in pe||"onUpdate:current-page"in pe||"onCurrentChange"in pe,Ce="onUpdate:pageSize"in pe||"onUpdate:page-size"in pe||"onSizeChange"in pe,$e=computed(()=>{if(isAbsent($.total)&&isAbsent($.pageCount)||!isAbsent($.currentPage)&&!_e)return!1;if($.layout.includes("sizes")){if(isAbsent($.pageCount)){if(!isAbsent($.total)&&!isAbsent($.pageSize)&&!Ce)return!1}else if(!Ce)return!1}return!0}),xe=ref(isAbsent($.defaultPageSize)?10:$.defaultPageSize),Ie=ref(isAbsent($.defaultCurrentPage)?1:$.defaultCurrentPage),Ne=computed({get(){return isAbsent($.pageSize)?xe.value:$.pageSize},set(bn){isAbsent($.pageSize)&&(xe.value=bn),Ce&&(oe("update:page-size",bn),oe("size-change",bn))}}),Fe=computed(()=>{let bn=0;return isAbsent($.pageCount)?isAbsent($.total)||(bn=Math.max(1,Math.ceil($.total/Ne.value))):bn=$.pageCount,bn}),ze=computed({get(){return isAbsent($.currentPage)?Ie.value:$.currentPage},set(bn){let Cn=bn;bn<1?Cn=1:bn>Fe.value&&(Cn=Fe.value),isAbsent($.currentPage)&&(Ie.value=Cn),_e&&(oe("update:current-page",Cn),oe("current-change",Cn))}});watch(Fe,bn=>{ze.value>bn&&(ze.value=bn)});function At(bn){ze.value=bn}function Lt(bn){Ne.value=bn;const Cn=Fe.value;ze.value>Cn&&(ze.value=Cn)}function hn(){$.disabled||(ze.value-=1,oe("prev-click",ze.value))}function vn(){$.disabled||(ze.value+=1,oe("next-click",ze.value))}function _n(bn,Cn){bn&&(bn.props||(bn.props={}),bn.props.class=[bn.props.class,Cn].join(" "))}return provide(elPaginationKey,{pageCount:Fe,disabled:computed(()=>$.disabled),currentPage:ze,changeEvent:At,handleSizeChange:Lt}),()=>{var bn,Cn;if(!$e.value)return ie("el.pagination.deprecationWarning"),null;if(!$.layout||$.hideOnSinglePage&&Fe.value<=1)return null;const En=[],$n=[],wn=h$3("div",{class:le.e("rightwrapper")},$n),Tn={prev:h$3(Prev,{disabled:$.disabled,currentPage:ze.value,prevText:$.prevText,prevIcon:$.prevIcon,onClick:hn}),jumper:h$3(Jumper,{size:$.small?"small":"default"}),pager:h$3(Pager,{currentPage:ze.value,pageCount:Fe.value,pagerCount:$.pagerCount,onChange:At,disabled:$.disabled}),next:h$3(Next,{disabled:$.disabled,currentPage:ze.value,pageCount:Fe.value,nextText:$.nextText,nextIcon:$.nextIcon,onClick:vn}),sizes:h$3(Sizes,{pageSize:Ne.value,pageSizes:$.pageSizes,popperClass:$.popperClass,disabled:$.disabled,size:$.small?"small":"default"}),slot:(Cn=(bn=ae==null?void 0:ae.default)==null?void 0:bn.call(ae))!=null?Cn:null,total:h$3(Total,{total:isAbsent($.total)?0:$.total})},xn=$.layout.split(",").map(An=>An.trim());let kn=!1;return xn.forEach(An=>{if(An==="->"){kn=!0;return}kn?$n.push(Tn[An]):En.push(Tn[An])}),_n(En[0],le.is("first")),_n(En[En.length-1],le.is("last")),kn&&$n.length>0&&(_n($n[0],le.is("first")),_n($n[$n.length-1],le.is("last")),En.push(wn)),h$3("div",{class:[le.b(),le.is("background",$.background),{[le.m("small")]:$.small}]},En)}}});const ElPagination=withInstall(Pagination),popconfirmProps=buildProps({title:String,confirmButtonText:String,cancelButtonText:String,confirmButtonType:{type:String,values:buttonTypes,default:"primary"},cancelButtonType:{type:String,values:buttonTypes,default:"text"},icon:{type:iconPropType,default:()=>question_filled_default},iconColor:{type:String,default:"#f90"},hideIcon:{type:Boolean,default:!1},hideAfter:{type:Number,default:200},teleported:useTooltipContentProps.teleported,persistent:useTooltipContentProps.persistent,width:{type:[String,Number],default:150}}),popconfirmEmits={confirm:$=>$ instanceof MouseEvent,cancel:$=>$ instanceof MouseEvent},__default__$y=defineComponent({name:"ElPopconfirm"}),_sfc_main$K=defineComponent({...__default__$y,props:popconfirmProps,emits:popconfirmEmits,setup($,{emit:oe}){const ae=$,{t:ie}=useLocale(),le=useNamespace("popconfirm"),pe=ref(),_e=()=>{var Fe,ze;(ze=(Fe=pe.value)==null?void 0:Fe.onClose)==null||ze.call(Fe)},Ce=computed(()=>({width:addUnit(ae.width)})),$e=Fe=>{oe("confirm",Fe),_e()},xe=Fe=>{oe("cancel",Fe),_e()},Ie=computed(()=>ae.confirmButtonText||ie("el.popconfirm.confirmButtonText")),Ne=computed(()=>ae.cancelButtonText||ie("el.popconfirm.cancelButtonText"));return(Fe,ze)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:pe,trigger:"click",effect:"light"},Fe.$attrs,{"popper-class":`${unref(le).namespace.value}-popover`,"popper-style":unref(Ce),teleported:Fe.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":Fe.hideAfter,persistent:Fe.persistent}),{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(le).b())},[createBaseVNode("div",{class:normalizeClass(unref(le).e("main"))},[!Fe.hideIcon&&Fe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("icon")),style:normalizeStyle$1({color:Fe.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Fe.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1(Fe.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(le).e("action"))},[createVNode(unref(ElButton),{size:"small",type:Fe.cancelButtonType==="text"?"":Fe.cancelButtonType,text:Fe.cancelButtonType==="text",onClick:xe},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ne)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:Fe.confirmButtonType==="text"?"":Fe.confirmButtonType,text:Fe.confirmButtonType==="text",onClick:$e},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Ie)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[Fe.$slots.reference?renderSlot(Fe.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["popper-class","popper-style","teleported","hide-after","persistent"]))}});var Popconfirm=_export_sfc$1(_sfc_main$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popconfirm/src/popconfirm.vue"]]);const ElPopconfirm=withInstall(Popconfirm),popoverProps=buildProps({trigger:useTooltipTriggerProps.trigger,placement:dropdownProps.placement,disabled:useTooltipTriggerProps.disabled,visible:useTooltipContentProps.visible,transition:useTooltipContentProps.transition,popperOptions:dropdownProps.popperOptions,tabindex:dropdownProps.tabindex,content:useTooltipContentProps.content,popperStyle:useTooltipContentProps.popperStyle,popperClass:useTooltipContentProps.popperClass,enterable:{...useTooltipContentProps.enterable,default:!0},effect:{...useTooltipContentProps.effect,default:"light"},teleported:useTooltipContentProps.teleported,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),popoverEmits={"update:visible":$=>isBoolean$3($),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},updateEventKeyRaw="onUpdate:visible",__default__$x=defineComponent({name:"ElPopover"}),_sfc_main$J=defineComponent({...__default__$x,props:popoverProps,emits:popoverEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=computed(()=>ie[updateEventKeyRaw]),pe=useNamespace("popover"),_e=ref(),Ce=computed(()=>{var hn;return(hn=unref(_e))==null?void 0:hn.popperRef}),$e=computed(()=>[{width:addUnit(ie.width)},ie.popperStyle]),xe=computed(()=>[pe.b(),ie.popperClass,{[pe.m("plain")]:!!ie.content}]),Ie=computed(()=>ie.transition===`${pe.namespace.value}-fade-in-linear`),Ne=()=>{var hn;(hn=_e.value)==null||hn.hide()},Fe=()=>{ae("before-enter")},ze=()=>{ae("before-leave")},At=()=>{ae("after-enter")},Lt=()=>{ae("update:visible",!1),ae("after-leave")};return oe({popperRef:Ce,hide:Ne}),(hn,vn)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:_e},hn.$attrs,{trigger:hn.trigger,placement:hn.placement,disabled:hn.disabled,visible:hn.visible,transition:hn.transition,"popper-options":hn.popperOptions,tabindex:hn.tabindex,content:hn.content,offset:hn.offset,"show-after":hn.showAfter,"hide-after":hn.hideAfter,"auto-close":hn.autoClose,"show-arrow":hn.showArrow,"aria-label":hn.title,effect:hn.effect,enterable:hn.enterable,"popper-class":unref(xe),"popper-style":unref($e),teleported:hn.teleported,persistent:hn.persistent,"gpu-acceleration":unref(Ie),"onUpdate:visible":unref(le),onBeforeShow:Fe,onBeforeHide:ze,onShow:At,onHide:Lt}),{content:withCtx(()=>[hn.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(pe).e("title")),role:"title"},toDisplayString$1(hn.title),3)):createCommentVNode("v-if",!0),renderSlot(hn.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(hn.content),1)])]),default:withCtx(()=>[hn.$slots.reference?renderSlot(hn.$slots,"reference",{key:0}):createCommentVNode("v-if",!0)]),_:3},16,["trigger","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","persistent","gpu-acceleration","onUpdate:visible"]))}});var Popover=_export_sfc$1(_sfc_main$J,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=($,oe)=>{const ae=oe.arg||oe.value,ie=ae==null?void 0:ae.popperRef;ie&&(ie.triggerRef=$)};var PopoverDirective={mounted($,oe){attachEvents($,oe)},updated($,oe){attachEvents($,oe)}};const VPopover="popover",ElPopoverDirective=withInstallDirective(PopoverDirective,VPopover),ElPopover=withInstall(Popover,{directive:ElPopoverDirective}),progressProps=buildProps({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:$=>$>=0&&$<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:definePropType(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:definePropType([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:definePropType(Function),default:$=>`${$}%`}}),_hoisted_1$l=["aria-valuenow"],_hoisted_2$e={viewBox:"0 0 100 100"},_hoisted_3$7=["d","stroke","stroke-width"],_hoisted_4$5=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$3={key:0},__default__$w=defineComponent({name:"ElProgress"}),_sfc_main$I=defineComponent({...__default__$w,props:progressProps,setup($){const oe=$,ae={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},ie=useNamespace("progress"),le=computed(()=>({width:`${oe.percentage}%`,animationDuration:`${oe.duration}s`,backgroundColor:_n(oe.percentage)})),pe=computed(()=>(oe.strokeWidth/oe.width*100).toFixed(1)),_e=computed(()=>["circle","dashboard"].includes(oe.type)?Number.parseInt(`${50-Number.parseFloat(pe.value)/2}`,10):0),Ce=computed(()=>{const bn=_e.value,Cn=oe.type==="dashboard";return`
M 50 50
m 0 ${Cn?"":"-"}${bn}
a ${bn} ${bn} 0 1 1 0 ${Cn?"-":""}${bn*2}
a ${bn} ${bn} 0 1 1 0 ${Cn?"":"-"}${bn*2}
`}),$e=computed(()=>2*Math.PI*_e.value),xe=computed(()=>oe.type==="dashboard"?.75:1),Ie=computed(()=>`${-1*$e.value*(1-xe.value)/2}px`),Ne=computed(()=>({strokeDasharray:`${$e.value*xe.value}px, ${$e.value}px`,strokeDashoffset:Ie.value})),Fe=computed(()=>({strokeDasharray:`${$e.value*xe.value*(oe.percentage/100)}px, ${$e.value}px`,strokeDashoffset:Ie.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),ze=computed(()=>{let bn;return oe.color?bn=_n(oe.percentage):bn=ae[oe.status]||ae.default,bn}),At=computed(()=>oe.status==="warning"?warning_filled_default:oe.type==="line"?oe.status==="success"?circle_check_default:circle_close_default:oe.status==="success"?check_default:close_default),Lt=computed(()=>oe.type==="line"?12+oe.strokeWidth*.4:oe.width*.111111+2),hn=computed(()=>oe.format(oe.percentage));function vn(bn){const Cn=100/bn.length;return bn.map(($n,wn)=>isString$7($n)?{color:$n,percentage:(wn+1)*Cn}:$n).sort(($n,wn)=>$n.percentage-wn.percentage)}const _n=bn=>{var Cn;const{color:En}=oe;if(isFunction$5(En))return En(bn);if(isString$7(En))return En;{const $n=vn(En);for(const wn of $n)if(wn.percentage>bn)return wn.color;return(Cn=$n[$n.length-1])==null?void 0:Cn.color}};return(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(bn.type),unref(ie).is(bn.status),{[unref(ie).m("without-text")]:!bn.showText,[unref(ie).m("text-inside")]:bn.textInside}]),role:"progressbar","aria-valuenow":bn.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[bn.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(ie).be("bar","outer")),style:normalizeStyle$1({height:`${bn.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(ie).be("bar","inner"),{[unref(ie).bem("bar","inner","indeterminate")]:bn.indeterminate},{[unref(ie).bem("bar","inner","striped")]:bn.striped},{[unref(ie).bem("bar","inner","striped-flow")]:bn.stripedFlow}]),style:normalizeStyle$1(unref(le))},[(bn.showText||bn.$slots.default)&&bn.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).be("bar","innerText"))},[renderSlot(bn.$slots,"default",{percentage:bn.percentage},()=>[createBaseVNode("span",null,toDisplayString$1(unref(hn)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).b("circle")),style:normalizeStyle$1({height:`${bn.width}px`,width:`${bn.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$e,[createBaseVNode("path",{class:normalizeClass(unref(ie).be("circle","track")),d:unref(Ce),stroke:`var(${unref(ie).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":unref(pe),fill:"none",style:normalizeStyle$1(unref(Ne))},null,14,_hoisted_3$7),createBaseVNode("path",{class:normalizeClass(unref(ie).be("circle","path")),d:unref(Ce),stroke:unref(ze),fill:"none",opacity:bn.percentage?1:0,"stroke-linecap":bn.strokeLinecap,"stroke-width":unref(pe),style:normalizeStyle$1(unref(Fe))},null,14,_hoisted_4$5)]))],6)),(bn.showText||bn.$slots.default)&&!bn.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ie).e("text")),style:normalizeStyle$1({fontSize:`${unref(Lt)}px`})},[renderSlot(bn.$slots,"default",{percentage:bn.percentage},()=>[bn.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(At))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$3,toDisplayString$1(unref(hn)),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$l))}});var Progress=_export_sfc$1(_sfc_main$I,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const ElProgress=withInstall(Progress),rateProps=buildProps({modelValue:{type:Number,default:0},id:{type:String,default:void 0},lowThreshold:{type:Number,default:2},highThreshold:{type:Number,default:4},max:{type:Number,default:5},colors:{type:definePropType([Array,Object]),default:()=>mutable(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:definePropType([Array,Object]),default:()=>[star_filled_default,star_filled_default,star_filled_default]},voidIcon:{type:iconPropType,default:()=>star_default},disabledVoidIcon:{type:iconPropType,default:()=>star_filled_default},disabled:Boolean,allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:definePropType(Array),default:()=>mutable(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:useSizeProp,label:{type:String,default:void 0},clearable:{type:Boolean,default:!1}}),rateEmits={[CHANGE_EVENT]:$=>isNumber$5($),[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_hoisted_1$k=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$d=["onMousemove","onClick"],__default__$v=defineComponent({name:"ElRate"}),_sfc_main$H=defineComponent({...__default__$v,props:rateProps,emits:rateEmits,setup($,{expose:oe,emit:ae}){const ie=$;function le(Bn,Mn){const Fn=Zn=>isObject$8(Zn),Vn=Object.keys(Mn).map(Zn=>+Zn).filter(Zn=>{const Gn=Mn[Zn];return(Fn(Gn)?Gn.excluded:!1)?Bn<Zn:Bn<=Zn}).sort((Zn,Gn)=>Zn-Gn),jn=Mn[Vn[0]];return Fn(jn)&&jn.value||jn}const pe=inject(formContextKey,void 0),_e=inject(formItemContextKey,void 0),Ce=useFormSize(),$e=useNamespace("rate"),{inputId:xe,isLabeledByFormItem:Ie}=useFormItemInputId(ie,{formItemContext:_e}),Ne=ref(ie.modelValue),Fe=ref(-1),ze=ref(!0),At=computed(()=>[$e.b(),$e.m(Ce.value)]),Lt=computed(()=>ie.disabled||(pe==null?void 0:pe.disabled)),hn=computed(()=>$e.cssVarBlock({"void-color":ie.voidColor,"disabled-void-color":ie.disabledVoidColor,"fill-color":Cn.value})),vn=computed(()=>{let Bn="";return ie.showScore?Bn=ie.scoreTemplate.replace(/\{\s*value\s*\}/,Lt.value?`${ie.modelValue}`:`${Ne.value}`):ie.showText&&(Bn=ie.texts[Math.ceil(Ne.value)-1]),Bn}),_n=computed(()=>ie.modelValue*100-Math.floor(ie.modelValue)*100),bn=computed(()=>isArray$c(ie.colors)?{[ie.lowThreshold]:ie.colors[0],[ie.highThreshold]:{value:ie.colors[1],excluded:!0},[ie.max]:ie.colors[2]}:ie.colors),Cn=computed(()=>{const Bn=le(Ne.value,bn.value);return isObject$8(Bn)?"":Bn}),En=computed(()=>{let Bn="";return Lt.value?Bn=`${_n.value}%`:ie.allowHalf&&(Bn="50%"),{color:Cn.value,width:Bn}}),$n=computed(()=>{let Bn=isArray$c(ie.icons)?[...ie.icons]:{...ie.icons};return Bn=markRaw(Bn),isArray$c(Bn)?{[ie.lowThreshold]:Bn[0],[ie.highThreshold]:{value:Bn[1],excluded:!0},[ie.max]:Bn[2]}:Bn}),wn=computed(()=>le(ie.modelValue,$n.value)),Tn=computed(()=>Lt.value?isString$7(ie.disabledVoidIcon)?ie.disabledVoidIcon:markRaw(ie.disabledVoidIcon):isString$7(ie.voidIcon)?ie.voidIcon:markRaw(ie.voidIcon)),xn=computed(()=>le(Ne.value,$n.value));function kn(Bn){const Mn=Lt.value&&_n.value>0&&Bn-1<ie.modelValue&&Bn>ie.modelValue,Fn=ie.allowHalf&&ze.value&&Bn-.5<=Ne.value&&Bn>Ne.value;return Mn||Fn}function An(Bn){ie.clearable&&Bn===ie.modelValue&&(Bn=0),ae(UPDATE_MODEL_EVENT,Bn),ie.modelValue!==Bn&&ae("change",Bn)}function On(Bn){Lt.value||(ie.allowHalf&&ze.value?An(Ne.value):An(Bn))}function Nn(Bn){if(Lt.value)return;let Mn=Ne.value;const Fn=Bn.code;return Fn===EVENT_CODE.up||Fn===EVENT_CODE.right?(ie.allowHalf?Mn+=.5:Mn+=1,Bn.stopPropagation(),Bn.preventDefault()):(Fn===EVENT_CODE.left||Fn===EVENT_CODE.down)&&(ie.allowHalf?Mn-=.5:Mn-=1,Bn.stopPropagation(),Bn.preventDefault()),Mn=Mn<0?0:Mn,Mn=Mn>ie.max?ie.max:Mn,ae(UPDATE_MODEL_EVENT,Mn),ae("change",Mn),Mn}function Rn(Bn,Mn){if(!Lt.value){if(ie.allowHalf&&Mn){let Fn=Mn.target;hasClass(Fn,$e.e("item"))&&(Fn=Fn.querySelector(`.${$e.e("icon")}`)),(Fn.clientWidth===0||hasClass(Fn,$e.e("decimal")))&&(Fn=Fn.parentNode),ze.value=Mn.offsetX*2<=Fn.clientWidth,Ne.value=ze.value?Bn-.5:Bn}else Ne.value=Bn;Fe.value=Bn}}function zn(){Lt.value||(ie.allowHalf&&(ze.value=ie.modelValue!==Math.floor(ie.modelValue)),Ne.value=ie.modelValue,Fe.value=-1)}return watch(()=>ie.modelValue,Bn=>{Ne.value=Bn,ze.value=ie.modelValue!==Math.floor(ie.modelValue)}),ie.modelValue||ae(UPDATE_MODEL_EVENT,0),oe({setCurrentValue:Rn,resetCurrentValue:zn}),(Bn,Mn)=>{var Fn;return openBlock(),createElementBlock("div",{id:unref(xe),class:normalizeClass([unref(At),unref($e).is("disabled",unref(Lt))]),role:"slider","aria-label":unref(Ie)?void 0:Bn.label||"rating","aria-labelledby":unref(Ie)?(Fn=unref(_e))==null?void 0:Fn.labelId:void 0,"aria-valuenow":Ne.value,"aria-valuetext":unref(vn)||void 0,"aria-valuemin":"0","aria-valuemax":Bn.max,tabindex:"0",style:normalizeStyle$1(unref(hn)),onKeydown:Nn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.max,(Vn,jn)=>(openBlock(),createElementBlock("span",{key:jn,class:normalizeClass(unref($e).e("item")),onMousemove:Zn=>Rn(Vn,Zn),onMouseleave:zn,onClick:Zn=>On(Vn)},[createVNode(unref(ElIcon),{class:normalizeClass([unref($e).e("icon"),{hover:Fe.value===Vn},unref($e).is("active",Vn<=Ne.value)])},{default:withCtx(()=>[kn(Vn)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(xn)),null,null,512)),[[vShow,Vn<=Ne.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(Tn)),null,null,512)),[[vShow,!(Vn<=Ne.value)]])],64)),kn(Vn)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle$1(unref(En)),class:normalizeClass([unref($e).e("icon"),unref($e).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(wn))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$d))),128)),Bn.showText||Bn.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref($e).e("text"))},toDisplayString$1(unref(vn)),3)):createCommentVNode("v-if",!0)],46,_hoisted_1$k)}}});var Rate=_export_sfc$1(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/rate/src/rate.vue"]]);const ElRate=withInstall(Rate),IconMap={success:"icon-success",warning:"icon-warning",error:"icon-error",info:"icon-info"},IconComponentMap={[IconMap.success]:circle_check_filled_default,[IconMap.warning]:warning_filled_default,[IconMap.error]:circle_close_filled_default,[IconMap.info]:info_filled_default},resultProps=buildProps({title:{type:String,default:""},subTitle:{type:String,default:""},icon:{type:String,values:["success","warning","info","error"],default:"info"}}),__default__$u=defineComponent({name:"ElResult"}),_sfc_main$G=defineComponent({...__default__$u,props:resultProps,setup($){const oe=$,ae=useNamespace("result"),ie=computed(()=>{const le=oe.icon,pe=le&&IconMap[le]?IconMap[le]:"icon-info",_e=IconComponentMap[pe]||IconComponentMap["icon-info"];return{class:pe,component:_e}});return(le,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ae).b())},[createBaseVNode("div",{class:normalizeClass(unref(ae).e("icon"))},[renderSlot(le.$slots,"icon",{},()=>[unref(ie).component?(openBlock(),createBlock(resolveDynamicComponent(unref(ie).component),{key:0,class:normalizeClass(unref(ie).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),le.title||le.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("title"))},[renderSlot(le.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString$1(le.title),1)])],2)):createCommentVNode("v-if",!0),le.subTitle||le.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ae).e("subtitle"))},[renderSlot(le.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString$1(le.subTitle),1)])],2)):createCommentVNode("v-if",!0),le.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(ae).e("extra"))},[renderSlot(le.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc$1(_sfc_main$G,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result);var safeIsNaN=Number.isNaN||function(oe){return typeof oe=="number"&&oe!==oe};function isEqual($,oe){return!!($===oe||safeIsNaN($)&&safeIsNaN(oe))}function areInputsEqual($,oe){if($.length!==oe.length)return!1;for(var ae=0;ae<$.length;ae++)if(!isEqual($[ae],oe[ae]))return!1;return!0}function memoizeOne($,oe){oe===void 0&&(oe=areInputsEqual);var ae=null;function ie(){for(var le=[],pe=0;pe<arguments.length;pe++)le[pe]=arguments[pe];if(ae&&ae.lastThis===this&&oe(le,ae.lastArgs))return ae.lastResult;var _e=$.apply(this,le);return ae={lastResult:_e,lastArgs:le,lastThis:this},_e}return ie.clear=function(){ae=null},ie}const useCache=()=>{const oe=getCurrentInstance().proxy.$props;return computed(()=>{const ae=(ie,le,pe)=>({});return oe.perfMode?memoize(ae):memoizeOne(ae)})},DEFAULT_DYNAMIC_LIST_ITEM_SIZE=50,ITEM_RENDER_EVT="itemRendered",SCROLL_EVT="scroll",FORWARD="forward",BACKWARD="backward",AUTO_ALIGNMENT="auto",SMART_ALIGNMENT="smart",START_ALIGNMENT="start",CENTERED_ALIGNMENT="center",END_ALIGNMENT="end",HORIZONTAL$1="horizontal",VERTICAL$1="vertical",LTR="ltr",RTL="rtl",RTL_OFFSET_NAG="negative",RTL_OFFSET_POS_ASC="positive-ascending",RTL_OFFSET_POS_DESC="positive-descending",ScrollbarDirKey={[HORIZONTAL$1]:"left",[VERTICAL$1]:"top"},SCROLLBAR_MIN_SIZE=20,LayoutKeys={[HORIZONTAL$1]:"deltaX",[VERTICAL$1]:"deltaY"},useWheel=({atEndEdge:$,atStartEdge:oe,layout:ae},ie)=>{let le,pe=0;const _e=$e=>$e<0&&oe.value||$e>0&&$.value;return{hasReachedEdge:_e,onWheel:$e=>{cAF(le);const xe=$e[LayoutKeys[ae.value]];_e(pe)&&_e(pe+xe)||(pe+=xe,isFirefox()||$e.preventDefault(),le=rAF(()=>{ie(pe),pe=0}))}}},itemSize$1=buildProp({type:definePropType([Number,Function]),required:!0}),estimatedItemSize=buildProp({type:Number}),cache$1=buildProp({type:Number,default:2}),direction=buildProp({type:String,values:["ltr","rtl"],default:"ltr"}),initScrollOffset=buildProp({type:Number,default:0}),total=buildProp({type:Number,required:!0}),layout$3=buildProp({type:String,values:["horizontal","vertical"],default:VERTICAL$1}),virtualizedProps=buildProps({className:{type:String,default:""},containerElement:{type:definePropType([String,Object]),default:"div"},data:{type:definePropType(Array),default:()=>mutable([])},direction,height:{type:[String,Number],required:!0},innerElement:{type:[String,Object],default:"div"},style:{type:definePropType([Object,String,Array])},useIsScrolling:{type:Boolean,default:!1},width:{type:[Number,String],required:!1},perfMode:{type:Boolean,default:!0},scrollbarAlwaysOn:{type:Boolean,default:!1}}),virtualizedListProps=buildProps({cache:cache$1,estimatedItemSize,layout:layout$3,initScrollOffset,total,itemSize:itemSize$1,...virtualizedProps}),scrollbarSize={type:Number,default:6},startGap={type:Number,default:0},endGap={type:Number,default:2},virtualizedGridProps=buildProps({columnCache:cache$1,columnWidth:itemSize$1,estimatedColumnWidth:estimatedItemSize,estimatedRowHeight:estimatedItemSize,initScrollLeft:initScrollOffset,initScrollTop:initScrollOffset,itemKey:{type:definePropType(Function),default:({columnIndex:$,rowIndex:oe})=>`${oe}:${$}`},rowCache:cache$1,rowHeight:itemSize$1,totalColumn:total,totalRow:total,hScrollbarSize:scrollbarSize,vScrollbarSize:scrollbarSize,scrollbarStartGap:startGap,scrollbarEndGap:endGap,role:String,...virtualizedProps}),virtualizedScrollbarProps=buildProps({alwaysOn:Boolean,class:String,layout:layout$3,total,ratio:{type:Number,required:!0},clientSize:{type:Number,required:!0},scrollFrom:{type:Number,required:!0},scrollbarSize,startGap,endGap,visible:Boolean}),getScrollDir=($,oe)=>$<oe?FORWARD:BACKWARD,isHorizontal=$=>$===LTR||$===RTL||$===HORIZONTAL$1,isRTL=$=>$===RTL;let cachedRTLResult=null;function getRTLOffsetType($=!1){if(cachedRTLResult===null||$){const oe=document.createElement("div"),ae=oe.style;ae.width="50px",ae.height="50px",ae.overflow="scroll",ae.direction="rtl";const ie=document.createElement("div"),le=ie.style;return le.width="100px",le.height="100px",oe.appendChild(ie),document.body.appendChild(oe),oe.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(oe.scrollLeft=1,oe.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(oe),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:$,size:oe,bar:ae},ie){const le={},pe=`translate${ae.axis}(${$}px)`;return le[ae.size]=oe,le.transform=pe,le.msTransform=pe,le.webkitTransform=pe,ie==="horizontal"?le.height="100%":le.width="100%",le}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup($,{emit:oe}){const ae=computed(()=>$.startGap+$.endGap),ie=useNamespace("virtual-scrollbar"),le=useNamespace("scrollbar"),pe=ref(),_e=ref();let Ce=null,$e=null;const xe=reactive({isDragging:!1,traveled:0}),Ie=computed(()=>BAR_MAP[$.layout]),Ne=computed(()=>$.clientSize-unref(ae)),Fe=computed(()=>({position:"absolute",width:`${HORIZONTAL$1===$.layout?Ne.value:$.scrollbarSize}px`,height:`${HORIZONTAL$1===$.layout?$.scrollbarSize:Ne.value}px`,[ScrollbarDirKey[$.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),ze=computed(()=>{const $n=$.ratio,wn=$.clientSize;if($n>=100)return Number.POSITIVE_INFINITY;if($n>=50)return $n*wn/100;const Tn=wn/3;return Math.floor(Math.min(Math.max($n*wn,SCROLLBAR_MIN_SIZE),Tn))}),At=computed(()=>{if(!Number.isFinite(ze.value))return{display:"none"};const $n=`${ze.value}px`;return renderThumbStyle({bar:Ie.value,size:$n,move:xe.traveled},$.layout)}),Lt=computed(()=>Math.floor($.clientSize-ze.value-unref(ae))),hn=()=>{window.addEventListener("mousemove",Cn),window.addEventListener("mouseup",bn);const $n=unref(_e);$n&&($e=document.onselectstart,document.onselectstart=()=>!1,$n.addEventListener("touchmove",Cn),$n.addEventListener("touchend",bn))},vn=()=>{window.removeEventListener("mousemove",Cn),window.removeEventListener("mouseup",bn),document.onselectstart=$e,$e=null;const $n=unref(_e);$n&&($n.removeEventListener("touchmove",Cn),$n.removeEventListener("touchend",bn))},_n=$n=>{$n.stopImmediatePropagation(),!($n.ctrlKey||[1,2].includes($n.button))&&(xe.isDragging=!0,xe[Ie.value.axis]=$n.currentTarget[Ie.value.offset]-($n[Ie.value.client]-$n.currentTarget.getBoundingClientRect()[Ie.value.direction]),oe("start-move"),hn())},bn=()=>{xe.isDragging=!1,xe[Ie.value.axis]=0,oe("stop-move"),vn()},Cn=$n=>{const{isDragging:wn}=xe;if(!wn||!_e.value||!pe.value)return;const Tn=xe[Ie.value.axis];if(!Tn)return;cAF(Ce);const xn=(pe.value.getBoundingClientRect()[Ie.value.direction]-$n[Ie.value.client])*-1,kn=_e.value[Ie.value.offset]-Tn,An=xn-kn;Ce=rAF(()=>{xe.traveled=Math.max($.startGap,Math.min(An,Lt.value)),oe("scroll",An,Lt.value)})},En=$n=>{const wn=Math.abs($n.target.getBoundingClientRect()[Ie.value.direction]-$n[Ie.value.client]),Tn=_e.value[Ie.value.offset]/2,xn=wn-Tn;xe.traveled=Math.max(0,Math.min(xn,Lt.value)),oe("scroll",xn,Lt.value)};return watch(()=>$.scrollFrom,$n=>{xe.isDragging||(xe.traveled=Math.ceil($n*Lt.value))}),onBeforeUnmount(()=>{vn()}),()=>h$3("div",{role:"presentation",ref:pe,class:[ie.b(),$.class,($.alwaysOn||xe.isDragging)&&"always-on"],style:Fe.value,onMousedown:withModifiers(En,["stop","prevent"]),onTouchstartPrevent:_n},h$3("div",{ref:_e,class:le.e("thumb"),style:At.value,onMousedown:_n},[]))}}),createList$1=({name:$,getOffset:oe,getItemSize:ae,getItemOffset:ie,getEstimatedTotalSize:le,getStartIndexForOffset:pe,getStopIndexForStartIndex:_e,initCache:Ce,clearCache:$e,validateProps:xe})=>defineComponent({name:$??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Ie,{emit:Ne,expose:Fe}){xe(Ie);const ze=getCurrentInstance(),At=useNamespace("vl"),Lt=ref(Ce(Ie,ze)),hn=useCache(),vn=ref(),_n=ref(),bn=ref(),Cn=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$5(Ie.initScrollOffset)?Ie.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:Ie.scrollbarAlwaysOn}),En=computed(()=>{const{total:Xn,cache:cr}=Ie,{isScrolling:nr,scrollDir:er,scrollOffset:rr}=unref(Cn);if(Xn===0)return[0,0,0,0];const qn=pe(Ie,rr,unref(Lt)),Yn=_e(Ie,qn,rr,unref(Lt)),ar=!nr||er===BACKWARD?Math.max(1,cr):1,pr=!nr||er===FORWARD?Math.max(1,cr):1;return[Math.max(0,qn-ar),Math.max(0,Math.min(Xn-1,Yn+pr)),qn,Yn]}),$n=computed(()=>le(Ie,unref(Lt))),wn=computed(()=>isHorizontal(Ie.layout)),Tn=computed(()=>[{position:"relative",[`overflow-${wn.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Ie.direction,height:isNumber$5(Ie.height)?`${Ie.height}px`:Ie.height,width:isNumber$5(Ie.width)?`${Ie.width}px`:Ie.width},Ie.style]),xn=computed(()=>{const Xn=unref($n),cr=unref(wn);return{height:cr?"100%":`${Xn}px`,pointerEvents:unref(Cn).isScrolling?"none":void 0,width:cr?`${Xn}px`:"100%"}}),kn=computed(()=>wn.value?Ie.width:Ie.height),{onWheel:An}=useWheel({atStartEdge:computed(()=>Cn.value.scrollOffset<=0),atEndEdge:computed(()=>Cn.value.scrollOffset>=$n.value),layout:computed(()=>Ie.layout)},Xn=>{var cr,nr;(nr=(cr=bn.value).onMouseUp)==null||nr.call(cr),Mn(Math.min(Cn.value.scrollOffset+Xn,$n.value-kn.value))}),On=()=>{const{total:Xn}=Ie;if(Xn>0){const[rr,qn,Yn,ar]=unref(En);Ne(ITEM_RENDER_EVT,rr,qn,Yn,ar)}const{scrollDir:cr,scrollOffset:nr,updateRequested:er}=unref(Cn);Ne(SCROLL_EVT,cr,nr,er)},Nn=Xn=>{const{clientHeight:cr,scrollHeight:nr,scrollTop:er}=Xn.currentTarget,rr=unref(Cn);if(rr.scrollOffset===er)return;const qn=Math.max(0,Math.min(er,nr-cr));Cn.value={...rr,isScrolling:!0,scrollDir:getScrollDir(rr.scrollOffset,qn),scrollOffset:qn,updateRequested:!1},nextTick(jn)},Rn=Xn=>{const{clientWidth:cr,scrollLeft:nr,scrollWidth:er}=Xn.currentTarget,rr=unref(Cn);if(rr.scrollOffset===nr)return;const{direction:qn}=Ie;let Yn=nr;if(qn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Yn=-nr;break}case RTL_OFFSET_POS_DESC:{Yn=er-cr-nr;break}}Yn=Math.max(0,Math.min(Yn,er-cr)),Cn.value={...rr,isScrolling:!0,scrollDir:getScrollDir(rr.scrollOffset,Yn),scrollOffset:Yn,updateRequested:!1},nextTick(jn)},zn=Xn=>{unref(wn)?Rn(Xn):Nn(Xn),On()},Bn=(Xn,cr)=>{const nr=($n.value-kn.value)/cr*Xn;Mn(Math.min($n.value-kn.value,nr))},Mn=Xn=>{Xn=Math.max(Xn,0),Xn!==unref(Cn).scrollOffset&&(Cn.value={...unref(Cn),scrollOffset:Xn,scrollDir:getScrollDir(unref(Cn).scrollOffset,Xn),updateRequested:!0},nextTick(jn))},Fn=(Xn,cr=AUTO_ALIGNMENT)=>{const{scrollOffset:nr}=unref(Cn);Xn=Math.max(0,Math.min(Xn,Ie.total-1)),Mn(oe(Ie,Xn,cr,nr,unref(Lt)))},Vn=Xn=>{const{direction:cr,itemSize:nr,layout:er}=Ie,rr=hn.value($e&&nr,$e&&er,$e&&cr);let qn;if(hasOwn$4(rr,String(Xn)))qn=rr[Xn];else{const Yn=ie(Ie,Xn,unref(Lt)),ar=ae(Ie,Xn,unref(Lt)),pr=unref(wn),Un=cr===RTL,tr=pr?Yn:0;rr[Xn]=qn={position:"absolute",left:Un?void 0:`${tr}px`,right:Un?`${tr}px`:void 0,top:pr?0:`${Yn}px`,height:pr?"100%":`${ar}px`,width:pr?`${ar}px`:"100%"}}return qn},jn=()=>{Cn.value.isScrolling=!1,nextTick(()=>{hn.value(-1,null,null)})},Zn=()=>{const Xn=vn.value;Xn&&(Xn.scrollTop=0)};onMounted(()=>{if(!isClient$2)return;const{initScrollOffset:Xn}=Ie,cr=unref(vn);isNumber$5(Xn)&&cr&&(unref(wn)?cr.scrollLeft=Xn:cr.scrollTop=Xn),On()}),onUpdated(()=>{const{direction:Xn,layout:cr}=Ie,{scrollOffset:nr,updateRequested:er}=unref(Cn),rr=unref(vn);if(er&&rr)if(cr===HORIZONTAL$1)if(Xn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{rr.scrollLeft=-nr;break}case RTL_OFFSET_POS_ASC:{rr.scrollLeft=nr;break}default:{const{clientWidth:qn,scrollWidth:Yn}=rr;rr.scrollLeft=Yn-qn-nr;break}}else rr.scrollLeft=nr;else rr.scrollTop=nr});const Gn={ns:At,clientSize:kn,estimatedTotalSize:$n,windowStyle:Tn,windowRef:vn,innerRef:_n,innerStyle:xn,itemsToRender:En,scrollbarRef:bn,states:Cn,getItemStyle:Vn,onScroll:zn,onScrollbarScroll:Bn,onWheel:An,scrollTo:Mn,scrollToItem:Fn,resetScrollTop:Zn};return Fe({windowRef:vn,innerRef:_n,getItemStyleCache:hn,scrollTo:Mn,scrollToItem:Fn,resetScrollTop:Zn,states:Cn}),Gn},render(Ie){var Ne;const{$slots:Fe,className:ze,clientSize:At,containerElement:Lt,data:hn,getItemStyle:vn,innerElement:_n,itemsToRender:bn,innerStyle:Cn,layout:En,total:$n,onScroll:wn,onScrollbarScroll:Tn,onWheel:xn,states:kn,useIsScrolling:An,windowStyle:On,ns:Nn}=Ie,[Rn,zn]=bn,Bn=resolveDynamicComponent(Lt),Mn=resolveDynamicComponent(_n),Fn=[];if($n>0)for(let Gn=Rn;Gn<=zn;Gn++)Fn.push((Ne=Fe.default)==null?void 0:Ne.call(Fe,{data:hn,key:Gn,index:Gn,isScrolling:An?kn.isScrolling:void 0,style:vn(Gn)}));const Vn=[h$3(Mn,{style:Cn,ref:"innerRef"},isString$7(Mn)?Fn:{default:()=>Fn})],jn=h$3(ScrollBar,{ref:"scrollbarRef",clientSize:At,layout:En,onScroll:Tn,ratio:At*100/this.estimatedTotalSize,scrollFrom:kn.scrollOffset/(this.estimatedTotalSize-At),total:$n}),Zn=h$3(Bn,{class:[Nn.e("window"),ze],style:On,onScroll:wn,onWheel:xn,ref:"windowRef",key:0},isString$7(Bn)?[Vn]:{default:()=>[Vn]});return h$3("div",{key:0,class:[Nn.e("wrapper"),kn.scrollbarAlwaysOn?"always-on":""]},[Zn,jn])}}),FixedSizeList=createList$1({name:"ElFixedSizeList",getItemOffset:({itemSize:$},oe)=>oe*$,getItemSize:({itemSize:$})=>$,getEstimatedTotalSize:({total:$,itemSize:oe})=>oe*$,getOffset:({height:$,total:oe,itemSize:ae,layout:ie,width:le},pe,_e,Ce)=>{const $e=isHorizontal(ie)?le:$,xe=Math.max(0,oe*ae-$e),Ie=Math.min(xe,pe*ae),Ne=Math.max(0,(pe+1)*ae-$e);switch(_e===SMART_ALIGNMENT&&(Ce>=Ne-$e&&Ce<=Ie+$e?_e=AUTO_ALIGNMENT:_e=CENTERED_ALIGNMENT),_e){case START_ALIGNMENT:return Ie;case END_ALIGNMENT:return Ne;case CENTERED_ALIGNMENT:{const Fe=Math.round(Ne+(Ie-Ne)/2);return Fe<Math.ceil($e/2)?0:Fe>xe+Math.floor($e/2)?xe:Fe}case AUTO_ALIGNMENT:default:return Ce>=Ne&&Ce<=Ie?Ce:Ce<Ne?Ne:Ie}},getStartIndexForOffset:({total:$,itemSize:oe},ae)=>Math.max(0,Math.min($-1,Math.floor(ae/oe))),getStopIndexForStartIndex:({height:$,total:oe,itemSize:ae,layout:ie,width:le},pe,_e)=>{const Ce=pe*ae,$e=isHorizontal(ie)?le:$,xe=Math.ceil(($e+_e-Ce)/ae);return Math.max(0,Math.min(oe-1,pe+xe-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=($,oe,ae)=>{const{itemSize:ie}=$,{items:le,lastVisitedIndex:pe}=ae;if(oe>pe){let _e=0;if(pe>=0){const Ce=le[pe];_e=Ce.offset+Ce.size}for(let Ce=pe+1;Ce<=oe;Ce++){const $e=ie(Ce);le[Ce]={offset:_e,size:$e},_e+=$e}ae.lastVisitedIndex=oe}return le[oe]},findItem$1=($,oe,ae)=>{const{items:ie,lastVisitedIndex:le}=oe;return(le>0?ie[le].offset:0)>=ae?bs$1($,oe,0,le,ae):es$1($,oe,Math.max(0,le),ae)},bs$1=($,oe,ae,ie,le)=>{for(;ae<=ie;){const pe=ae+Math.floor((ie-ae)/2),_e=getItemFromCache$1($,pe,oe).offset;if(_e===le)return pe;_e<le?ae=pe+1:_e>le&&(ie=pe-1)}return Math.max(0,ae-1)},es$1=($,oe,ae,ie)=>{const{total:le}=$;let pe=1;for(;ae<le&&getItemFromCache$1($,ae,oe).offset<ie;)ae+=pe,pe*=2;return bs$1($,oe,Math.floor(ae/2),Math.min(ae,le-1),ie)},getEstimatedTotalSize=({total:$},{items:oe,estimatedItemSize:ae,lastVisitedIndex:ie})=>{let le=0;if(ie>=$&&(ie=$-1),ie>=0){const Ce=oe[ie];le=Ce.offset+Ce.size}const _e=($-ie-1)*ae;return le+_e},DynamicSizeList=createList$1({name:"ElDynamicSizeList",getItemOffset:($,oe,ae)=>getItemFromCache$1($,oe,ae).offset,getItemSize:($,oe,{items:ae})=>ae[oe].size,getEstimatedTotalSize,getOffset:($,oe,ae,ie,le)=>{const{height:pe,layout:_e,width:Ce}=$,$e=isHorizontal(_e)?Ce:pe,xe=getItemFromCache$1($,oe,le),Ie=getEstimatedTotalSize($,le),Ne=Math.max(0,Math.min(Ie-$e,xe.offset)),Fe=Math.max(0,xe.offset-$e+xe.size);switch(ae===SMART_ALIGNMENT&&(ie>=Fe-$e&&ie<=Ne+$e?ae=AUTO_ALIGNMENT:ae=CENTERED_ALIGNMENT),ae){case START_ALIGNMENT:return Ne;case END_ALIGNMENT:return Fe;case CENTERED_ALIGNMENT:return Math.round(Fe+(Ne-Fe)/2);case AUTO_ALIGNMENT:default:return ie>=Fe&&ie<=Ne?ie:ie<Fe?Fe:Ne}},getStartIndexForOffset:($,oe,ae)=>findItem$1($,ae,oe),getStopIndexForStartIndex:($,oe,ae,ie)=>{const{height:le,total:pe,layout:_e,width:Ce}=$,$e=isHorizontal(_e)?Ce:le,xe=getItemFromCache$1($,oe,ie),Ie=ae+$e;let Ne=xe.offset+xe.size,Fe=oe;for(;Fe<pe-1&&Ne<Ie;)Fe++,Ne+=getItemFromCache$1($,Fe,ie).size;return Fe},initCache({estimatedItemSize:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE},oe){const ae={items:{},estimatedItemSize:$,lastVisitedIndex:-1};return ae.clearCacheAfterIndex=(ie,le=!0)=>{var pe,_e;ae.lastVisitedIndex=Math.min(ae.lastVisitedIndex,ie-1),(pe=oe.exposed)==null||pe.getItemStyleCache(-1),le&&((_e=oe.proxy)==null||_e.$forceUpdate())},ae},clearCache:!1,validateProps:({itemSize:$})=>{}}),useGridWheel=({atXEndEdge:$,atXStartEdge:oe,atYEndEdge:ae,atYStartEdge:ie},le)=>{let pe=null,_e=0,Ce=0;const $e=(Ie,Ne)=>{const Fe=Ie<=0&&oe.value||Ie>=0&&$.value,ze=Ne<=0&&ie.value||Ne>=0&&ae.value;return Fe&&ze};return{hasReachedEdge:$e,onWheel:Ie=>{cAF(pe);let Ne=Ie.deltaX,Fe=Ie.deltaY;Math.abs(Ne)>Math.abs(Fe)?Fe=0:Ne=0,Ie.shiftKey&&Fe!==0&&(Ne=Fe,Fe=0),!($e(_e,Ce)&&$e(_e+Ne,Ce+Fe))&&(_e+=Ne,Ce+=Fe,Ie.preventDefault(),pe=rAF(()=>{le(_e,Ce),_e=0,Ce=0}))}}},createGrid=({name:$,clearCache:oe,getColumnPosition:ae,getColumnStartIndexForOffset:ie,getColumnStopIndexForStartIndex:le,getEstimatedTotalHeight:pe,getEstimatedTotalWidth:_e,getColumnOffset:Ce,getRowOffset:$e,getRowPosition:xe,getRowStartIndexForOffset:Ie,getRowStopIndexForStartIndex:Ne,initCache:Fe,injectToInstance:ze,validateProps:At})=>defineComponent({name:$??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Lt,{emit:hn,expose:vn,slots:_n}){const bn=useNamespace("vl");At(Lt);const Cn=getCurrentInstance(),En=ref(Fe(Lt,Cn));ze==null||ze(Cn,En);const $n=ref(),wn=ref(),Tn=ref(),xn=ref(null),kn=ref({isScrolling:!1,scrollLeft:isNumber$5(Lt.initScrollLeft)?Lt.initScrollLeft:0,scrollTop:isNumber$5(Lt.initScrollTop)?Lt.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),An=useCache(),On=computed(()=>Number.parseInt(`${Lt.height}`,10)),Nn=computed(()=>Number.parseInt(`${Lt.width}`,10)),Rn=computed(()=>{const{totalColumn:sr,totalRow:Pr,columnCache:Sr}=Lt,{isScrolling:kr,xAxisScrollDir:mr,scrollLeft:lr}=unref(kn);if(sr===0||Pr===0)return[0,0,0,0];const hr=ie(Lt,lr,unref(En)),gr=le(Lt,hr,lr,unref(En)),Or=!kr||mr===BACKWARD?Math.max(1,Sr):1,Lr=!kr||mr===FORWARD?Math.max(1,Sr):1;return[Math.max(0,hr-Or),Math.max(0,Math.min(sr-1,gr+Lr)),hr,gr]}),zn=computed(()=>{const{totalColumn:sr,totalRow:Pr,rowCache:Sr}=Lt,{isScrolling:kr,yAxisScrollDir:mr,scrollTop:lr}=unref(kn);if(sr===0||Pr===0)return[0,0,0,0];const hr=Ie(Lt,lr,unref(En)),gr=Ne(Lt,hr,lr,unref(En)),Or=!kr||mr===BACKWARD?Math.max(1,Sr):1,Lr=!kr||mr===FORWARD?Math.max(1,Sr):1;return[Math.max(0,hr-Or),Math.max(0,Math.min(Pr-1,gr+Lr)),hr,gr]}),Bn=computed(()=>pe(Lt,unref(En))),Mn=computed(()=>_e(Lt,unref(En))),Fn=computed(()=>{var sr;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Lt.direction,height:isNumber$5(Lt.height)?`${Lt.height}px`:Lt.height,width:isNumber$5(Lt.width)?`${Lt.width}px`:Lt.width},(sr=Lt.style)!=null?sr:{}]}),Vn=computed(()=>{const sr=`${unref(Mn)}px`;return{height:`${unref(Bn)}px`,pointerEvents:unref(kn).isScrolling?"none":void 0,width:sr}}),jn=()=>{const{totalColumn:sr,totalRow:Pr}=Lt;if(sr>0&&Pr>0){const[gr,Or,Lr,Vr]=unref(Rn),[Rr,$r,Tr,dr]=unref(zn);hn(ITEM_RENDER_EVT,{columnCacheStart:gr,columnCacheEnd:Or,rowCacheStart:Rr,rowCacheEnd:$r,columnVisibleStart:Lr,columnVisibleEnd:Vr,rowVisibleStart:Tr,rowVisibleEnd:dr})}const{scrollLeft:Sr,scrollTop:kr,updateRequested:mr,xAxisScrollDir:lr,yAxisScrollDir:hr}=unref(kn);hn(SCROLL_EVT,{xAxisScrollDir:lr,scrollLeft:Sr,yAxisScrollDir:hr,scrollTop:kr,updateRequested:mr})},Zn=sr=>{const{clientHeight:Pr,clientWidth:Sr,scrollHeight:kr,scrollLeft:mr,scrollTop:lr,scrollWidth:hr}=sr.currentTarget,gr=unref(kn);if(gr.scrollTop===lr&&gr.scrollLeft===mr)return;let Or=mr;if(isRTL(Lt.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:Or=-mr;break;case RTL_OFFSET_POS_DESC:Or=hr-Sr-mr;break}kn.value={...gr,isScrolling:!0,scrollLeft:Or,scrollTop:Math.max(0,Math.min(lr,kr-Pr)),updateRequested:!0,xAxisScrollDir:getScrollDir(gr.scrollLeft,Or),yAxisScrollDir:getScrollDir(gr.scrollTop,lr)},nextTick(()=>qn()),Yn(),jn()},Gn=(sr,Pr)=>{const Sr=unref(On),kr=(Bn.value-Sr)/Pr*sr;nr({scrollTop:Math.min(Bn.value-Sr,kr)})},Xn=(sr,Pr)=>{const Sr=unref(Nn),kr=(Mn.value-Sr)/Pr*sr;nr({scrollLeft:Math.min(Mn.value-Sr,kr)})},{onWheel:cr}=useGridWheel({atXStartEdge:computed(()=>kn.value.scrollLeft<=0),atXEndEdge:computed(()=>kn.value.scrollLeft>=Mn.value-unref(Nn)),atYStartEdge:computed(()=>kn.value.scrollTop<=0),atYEndEdge:computed(()=>kn.value.scrollTop>=Bn.value-unref(On))},(sr,Pr)=>{var Sr,kr,mr,lr;(kr=(Sr=wn.value)==null?void 0:Sr.onMouseUp)==null||kr.call(Sr),(lr=(mr=wn.value)==null?void 0:mr.onMouseUp)==null||lr.call(mr);const hr=unref(Nn),gr=unref(On);nr({scrollLeft:Math.min(kn.value.scrollLeft+sr,Mn.value-hr),scrollTop:Math.min(kn.value.scrollTop+Pr,Bn.value-gr)})}),nr=({scrollLeft:sr=kn.value.scrollLeft,scrollTop:Pr=kn.value.scrollTop})=>{sr=Math.max(sr,0),Pr=Math.max(Pr,0);const Sr=unref(kn);Pr===Sr.scrollTop&&sr===Sr.scrollLeft||(kn.value={...Sr,xAxisScrollDir:getScrollDir(Sr.scrollLeft,sr),yAxisScrollDir:getScrollDir(Sr.scrollTop,Pr),scrollLeft:sr,scrollTop:Pr,updateRequested:!0},nextTick(()=>qn()),Yn(),jn())},er=(sr=0,Pr=0,Sr=AUTO_ALIGNMENT)=>{const kr=unref(kn);Pr=Math.max(0,Math.min(Pr,Lt.totalColumn-1)),sr=Math.max(0,Math.min(sr,Lt.totalRow-1));const mr=getScrollBarWidth(bn.namespace.value),lr=unref(En),hr=pe(Lt,lr),gr=_e(Lt,lr);nr({scrollLeft:Ce(Lt,Pr,Sr,kr.scrollLeft,lr,gr>Lt.width?mr:0),scrollTop:$e(Lt,sr,Sr,kr.scrollTop,lr,hr>Lt.height?mr:0)})},rr=(sr,Pr)=>{const{columnWidth:Sr,direction:kr,rowHeight:mr}=Lt,lr=An.value(oe&&Sr,oe&&mr,oe&&kr),hr=`${sr},${Pr}`;if(hasOwn$4(lr,hr))return lr[hr];{const[,gr]=ae(Lt,Pr,unref(En)),Or=unref(En),Lr=isRTL(kr),[Vr,Rr]=xe(Lt,sr,Or),[$r]=ae(Lt,Pr,Or);return lr[hr]={position:"absolute",left:Lr?void 0:`${gr}px`,right:Lr?`${gr}px`:void 0,top:`${Rr}px`,height:`${Vr}px`,width:`${$r}px`},lr[hr]}},qn=()=>{kn.value.isScrolling=!1,nextTick(()=>{An.value(-1,null,null)})};onMounted(()=>{if(!isClient$2)return;const{initScrollLeft:sr,initScrollTop:Pr}=Lt,Sr=unref($n);Sr&&(isNumber$5(sr)&&(Sr.scrollLeft=sr),isNumber$5(Pr)&&(Sr.scrollTop=Pr)),jn()});const Yn=()=>{const{direction:sr}=Lt,{scrollLeft:Pr,scrollTop:Sr,updateRequested:kr}=unref(kn),mr=unref($n);if(kr&&mr){if(sr===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{mr.scrollLeft=-Pr;break}case RTL_OFFSET_POS_ASC:{mr.scrollLeft=Pr;break}default:{const{clientWidth:lr,scrollWidth:hr}=mr;mr.scrollLeft=hr-lr-Pr;break}}else mr.scrollLeft=Math.max(0,Pr);mr.scrollTop=Math.max(0,Sr)}},{resetAfterColumnIndex:ar,resetAfterRowIndex:pr,resetAfter:Un}=Cn.proxy;vn({windowRef:$n,innerRef:xn,getItemStyleCache:An,scrollTo:nr,scrollToItem:er,states:kn,resetAfterColumnIndex:ar,resetAfterRowIndex:pr,resetAfter:Un});const tr=()=>{const{scrollbarAlwaysOn:sr,scrollbarStartGap:Pr,scrollbarEndGap:Sr,totalColumn:kr,totalRow:mr}=Lt,lr=unref(Nn),hr=unref(On),gr=unref(Mn),Or=unref(Bn),{scrollLeft:Lr,scrollTop:Vr}=unref(kn),Rr=h$3(ScrollBar,{ref:wn,alwaysOn:sr,startGap:Pr,endGap:Sr,class:bn.e("horizontal"),clientSize:lr,layout:"horizontal",onScroll:Xn,ratio:lr*100/gr,scrollFrom:Lr/(gr-lr),total:mr,visible:!0}),$r=h$3(ScrollBar,{ref:Tn,alwaysOn:sr,startGap:Pr,endGap:Sr,class:bn.e("vertical"),clientSize:hr,layout:"vertical",onScroll:Gn,ratio:hr*100/Or,scrollFrom:Vr/(Or-hr),total:kr,visible:!0});return{horizontalScrollbar:Rr,verticalScrollbar:$r}},ur=()=>{var sr;const[Pr,Sr]=unref(Rn),[kr,mr]=unref(zn),{data:lr,totalColumn:hr,totalRow:gr,useIsScrolling:Or,itemKey:Lr}=Lt,Vr=[];if(gr>0&&hr>0)for(let Rr=kr;Rr<=mr;Rr++)for(let $r=Pr;$r<=Sr;$r++)Vr.push((sr=_n.default)==null?void 0:sr.call(_n,{columnIndex:$r,data:lr,key:Lr({columnIndex:$r,data:lr,rowIndex:Rr}),isScrolling:Or?unref(kn).isScrolling:void 0,style:rr(Rr,$r),rowIndex:Rr}));return Vr},_r=()=>{const sr=resolveDynamicComponent(Lt.innerElement),Pr=ur();return[h$3(sr,{style:unref(Vn),ref:xn},isString$7(sr)?Pr:{default:()=>Pr})]};return()=>{const sr=resolveDynamicComponent(Lt.containerElement),{horizontalScrollbar:Pr,verticalScrollbar:Sr}=tr(),kr=_r();return h$3("div",{key:0,class:bn.e("wrapper"),role:Lt.role},[h$3(sr,{class:Lt.className,style:unref(Fn),onScroll:Zn,onWheel:cr,ref:$n},isString$7(sr)?kr:{default:()=>kr}),Pr,Sr])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:$},oe)=>[$,oe*$],getRowPosition:({rowHeight:$},oe)=>[$,oe*$],getEstimatedTotalHeight:({totalRow:$,rowHeight:oe})=>oe*$,getEstimatedTotalWidth:({totalColumn:$,columnWidth:oe})=>oe*$,getColumnOffset:({totalColumn:$,columnWidth:oe,width:ae},ie,le,pe,_e,Ce)=>{ae=Number(ae);const $e=Math.max(0,$*oe-ae),xe=Math.min($e,ie*oe),Ie=Math.max(0,ie*oe-ae+Ce+oe);switch(le==="smart"&&(pe>=Ie-ae&&pe<=xe+ae?le=AUTO_ALIGNMENT:le=CENTERED_ALIGNMENT),le){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const Ne=Math.round(Ie+(xe-Ie)/2);return Ne<Math.ceil(ae/2)?0:Ne>$e+Math.floor(ae/2)?$e:Ne}case AUTO_ALIGNMENT:default:return pe>=Ie&&pe<=xe?pe:Ie>xe||pe<Ie?Ie:xe}},getRowOffset:({rowHeight:$,height:oe,totalRow:ae},ie,le,pe,_e,Ce)=>{oe=Number(oe);const $e=Math.max(0,ae*$-oe),xe=Math.min($e,ie*$),Ie=Math.max(0,ie*$-oe+Ce+$);switch(le===SMART_ALIGNMENT&&(pe>=Ie-oe&&pe<=xe+oe?le=AUTO_ALIGNMENT:le=CENTERED_ALIGNMENT),le){case START_ALIGNMENT:return xe;case END_ALIGNMENT:return Ie;case CENTERED_ALIGNMENT:{const Ne=Math.round(Ie+(xe-Ie)/2);return Ne<Math.ceil(oe/2)?0:Ne>$e+Math.floor(oe/2)?$e:Ne}case AUTO_ALIGNMENT:default:return pe>=Ie&&pe<=xe?pe:Ie>xe||pe<Ie?Ie:xe}},getColumnStartIndexForOffset:({columnWidth:$,totalColumn:oe},ae)=>Math.max(0,Math.min(oe-1,Math.floor(ae/$))),getColumnStopIndexForStartIndex:({columnWidth:$,totalColumn:oe,width:ae},ie,le)=>{const pe=ie*$,_e=Math.ceil((ae+le-pe)/$);return Math.max(0,Math.min(oe-1,ie+_e-1))},getRowStartIndexForOffset:({rowHeight:$,totalRow:oe},ae)=>Math.max(0,Math.min(oe-1,Math.floor(ae/$))),getRowStopIndexForStartIndex:({rowHeight:$,totalRow:oe,height:ae},ie,le)=>{const pe=ie*$,_e=Math.ceil((ae+le-pe)/$);return Math.max(0,Math.min(oe-1,ie+_e-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:$,rowHeight:oe})=>{}}),{max:max$2,min:min$2,floor}=Math,ACCESS_SIZER_KEY_MAP={column:"columnWidth",row:"rowHeight"},ACCESS_LAST_VISITED_KEY_MAP={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},getItemFromCache=($,oe,ae,ie)=>{const[le,pe,_e]=[ae[ie],$[ACCESS_SIZER_KEY_MAP[ie]],ae[ACCESS_LAST_VISITED_KEY_MAP[ie]]];if(oe>_e){let Ce=0;if(_e>=0){const $e=le[_e];Ce=$e.offset+$e.size}for(let $e=_e+1;$e<=oe;$e++){const xe=pe($e);le[$e]={offset:Ce,size:xe},Ce+=xe}ae[ACCESS_LAST_VISITED_KEY_MAP[ie]]=oe}return le[oe]},bs=($,oe,ae,ie,le,pe)=>{for(;ae<=ie;){const _e=ae+floor((ie-ae)/2),Ce=getItemFromCache($,_e,oe,pe).offset;if(Ce===le)return _e;Ce<le?ae=_e+1:ie=_e-1}return max$2(0,ae-1)},es=($,oe,ae,ie,le)=>{const pe=le==="column"?$.totalColumn:$.totalRow;let _e=1;for(;ae<pe&&getItemFromCache($,ae,oe,le).offset<ie;)ae+=_e,_e*=2;return bs($,oe,floor(ae/2),min$2(ae,pe-1),ie,le)},findItem=($,oe,ae,ie)=>{const[le,pe]=[oe[ie],oe[ACCESS_LAST_VISITED_KEY_MAP[ie]]];return(pe>0?le[pe].offset:0)>=ae?bs($,oe,0,pe,ae,ie):es($,oe,max$2(0,pe),ae,ie)},getEstimatedTotalHeight=({totalRow:$},{estimatedRowHeight:oe,lastVisitedRowIndex:ae,row:ie})=>{let le=0;if(ae>=$&&(ae=$-1),ae>=0){const Ce=ie[ae];le=Ce.offset+Ce.size}const _e=($-ae-1)*oe;return le+_e},getEstimatedTotalWidth=({totalColumn:$},{column:oe,estimatedColumnWidth:ae,lastVisitedColumnIndex:ie})=>{let le=0;if(ie>$&&(ie=$-1),ie>=0){const Ce=oe[ie];le=Ce.offset+Ce.size}const _e=($-ie-1)*ae;return le+_e},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=($,oe,ae,ie,le,pe,_e)=>{const[Ce,$e]=[pe==="row"?$.height:$.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[pe]],xe=getItemFromCache($,oe,le,pe),Ie=$e($,le),Ne=max$2(0,min$2(Ie-Ce,xe.offset)),Fe=max$2(0,xe.offset-Ce+_e+xe.size);switch(ae===SMART_ALIGNMENT&&(ie>=Fe-Ce&&ie<=Ne+Ce?ae=AUTO_ALIGNMENT:ae=CENTERED_ALIGNMENT),ae){case START_ALIGNMENT:return Ne;case END_ALIGNMENT:return Fe;case CENTERED_ALIGNMENT:return Math.round(Fe+(Ne-Fe)/2);case AUTO_ALIGNMENT:default:return ie>=Fe&&ie<=Ne?ie:Fe>Ne||ie<Fe?Fe:Ne}},DynamicSizeGrid=createGrid({name:"ElDynamicSizeGrid",getColumnPosition:($,oe,ae)=>{const ie=getItemFromCache($,oe,ae,"column");return[ie.size,ie.offset]},getRowPosition:($,oe,ae)=>{const ie=getItemFromCache($,oe,ae,"row");return[ie.size,ie.offset]},getColumnOffset:($,oe,ae,ie,le,pe)=>getOffset$1($,oe,ae,ie,le,"column",pe),getRowOffset:($,oe,ae,ie,le,pe)=>getOffset$1($,oe,ae,ie,le,"row",pe),getColumnStartIndexForOffset:($,oe,ae)=>findItem($,ae,oe,"column"),getColumnStopIndexForStartIndex:($,oe,ae,ie)=>{const le=getItemFromCache($,oe,ie,"column"),pe=ae+$.width;let _e=le.offset+le.size,Ce=oe;for(;Ce<$.totalColumn-1&&_e<pe;)Ce++,_e+=getItemFromCache($,oe,ie,"column").size;return Ce},getEstimatedTotalHeight,getEstimatedTotalWidth,getRowStartIndexForOffset:($,oe,ae)=>findItem($,ae,oe,"row"),getRowStopIndexForStartIndex:($,oe,ae,ie)=>{const{totalRow:le,height:pe}=$,_e=getItemFromCache($,oe,ie,"row"),Ce=ae+pe;let $e=_e.size+_e.offset,xe=oe;for(;xe<le-1&&$e<Ce;)xe++,$e+=getItemFromCache($,xe,ie,"row").size;return xe},injectToInstance:($,oe)=>{const ae=({columnIndex:pe,rowIndex:_e},Ce)=>{var $e,xe;Ce=isUndefined$1(Ce)?!0:Ce,isNumber$5(pe)&&(oe.value.lastVisitedColumnIndex=Math.min(oe.value.lastVisitedColumnIndex,pe-1)),isNumber$5(_e)&&(oe.value.lastVisitedRowIndex=Math.min(oe.value.lastVisitedRowIndex,_e-1)),($e=$.exposed)==null||$e.getItemStyleCache.value(-1,null,null),Ce&&((xe=$.proxy)==null||xe.$forceUpdate())},ie=(pe,_e)=>{ae({columnIndex:pe},_e)},le=(pe,_e)=>{ae({rowIndex:pe},_e)};Object.assign($.proxy,{resetAfterColumnIndex:ie,resetAfterRowIndex:le,resetAfter:ae})},initCache:({estimatedColumnWidth:$=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:oe=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:$,estimatedRowHeight:oe,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:$,rowHeight:oe})=>{}}),_sfc_main$F=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$8($,oe,ae,ie,le,pe){return $.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("group","title")),style:normalizeStyle$1([$.style,{lineHeight:`${$.height}px`}])},toDisplayString$1($.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.be("group","split")),style:normalizeStyle$1($.style)},[createBaseVNode("span",{class:normalizeClass($.ns.be("group","split-dash")),style:normalizeStyle$1({top:`${$.height/2}px`})},null,6)],6))}var GroupItem=_export_sfc$1(_sfc_main$F,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption($,{emit:oe}){return{hoverItem:()=>{$.disabled||oe("hover",$.index)},selectOptionClick:()=>{$.disabled||oe("select",$.item,$.index)}}}const SelectProps={allowCreate:Boolean,autocomplete:{type:String,default:"none"},automaticDropdown:Boolean,clearable:Boolean,clearIcon:{type:[String,Object],default:circle_close_default},effect:{type:String,default:"light"},collapseTags:Boolean,collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTags:{type:Number,default:1},defaultFirstOption:Boolean,disabled:Boolean,estimatedOptionHeight:{type:Number,default:void 0},filterable:Boolean,filterMethod:Function,height:{type:Number,default:170},itemHeight:{type:Number,default:34},id:String,loading:Boolean,loadingText:String,label:String,modelValue:[Array,String,Number,Boolean,Object],multiple:Boolean,multipleLimit:{type:Number,default:0},name:String,noDataText:String,noMatchText:String,remoteMethod:Function,reserveKeyword:{type:Boolean,default:!0},options:{type:Array,required:!0},placeholder:{type:String},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},popperClass:{type:String,default:""},popperOptions:{type:Object,default:()=>({})},remote:Boolean,size:{type:String,validator:isValidComponentSize},valueKey:{type:String,default:"value"},scrollbarAlwaysOn:{type:Boolean,default:!1},validateEvent:{type:Boolean,default:!0},placement:{type:definePropType(String),values:Ee,default:"bottom-start"}},OptionProps={data:Array,disabled:Boolean,hovering:Boolean,item:Object,index:Number,style:Object,selected:Boolean,created:Boolean},_sfc_main$E=defineComponent({props:OptionProps,emits:["select","hover"],setup($,{emit:oe}){const ae=useNamespace("select"),{hoverItem:ie,selectOptionClick:le}=useOption($,{emit:oe});return{ns:ae,hoverItem:ie,selectOptionClick:le}}}),_hoisted_1$j=["aria-selected"];function _sfc_render$7($,oe,ae,ie,le,pe){return openBlock(),createElementBlock("li",{"aria-selected":$.selected,style:normalizeStyle$1($.style),class:normalizeClass([$.ns.be("dropdown","option-item"),$.ns.is("selected",$.selected),$.ns.is("disabled",$.disabled),$.ns.is("created",$.created),{hover:$.hovering}]),onMouseenter:oe[0]||(oe[0]=(..._e)=>$.hoverItem&&$.hoverItem(..._e)),onClick:oe[1]||(oe[1]=withModifiers((..._e)=>$.selectOptionClick&&$.selectOptionClick(..._e),["stop"]))},[renderSlot($.$slots,"default",{item:$.item,index:$.index,disabled:$.disabled},()=>[createBaseVNode("span",null,toDisplayString$1($.item.label),1)])],46,_hoisted_1$j)}var OptionItem=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$7],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/option-item.vue"]]);const selectV2InjectionKey=Symbol("ElSelectV2Injection");var ElSelectMenu=defineComponent({name:"ElSelectDropdown",props:{data:{type:Array,required:!0},hoveringIndex:Number,width:Number},setup($,{slots:oe,expose:ae}){const ie=inject(selectV2InjectionKey),le=useNamespace("select"),pe=ref([]),_e=ref(),Ce=computed(()=>$.data.length);watch(()=>Ce.value,()=>{var Tn,xn;(xn=(Tn=ie.popper.value).updatePopper)==null||xn.call(Tn)});const $e=computed(()=>isUndefined$1(ie.props.estimatedOptionHeight)),xe=computed(()=>$e.value?{itemSize:ie.props.itemHeight}:{estimatedSize:ie.props.estimatedOptionHeight,itemSize:Tn=>pe.value[Tn]}),Ie=(Tn=[],xn)=>{const{props:{valueKey:kn}}=ie;return isObject$8(xn)?Tn&&Tn.some(An=>get$1(An,kn)===get$1(xn,kn)):Tn.includes(xn)},Ne=(Tn,xn)=>{if(isObject$8(xn)){const{valueKey:kn}=ie.props;return get$1(Tn,kn)===get$1(xn,kn)}else return Tn===xn},Fe=(Tn,xn)=>{const{valueKey:kn}=ie.props;return ie.props.multiple?Ie(Tn,get$1(xn,kn)):Ne(Tn,get$1(xn,kn))},ze=(Tn,xn)=>{const{disabled:kn,multiple:An,multipleLimit:On}=ie.props;return kn||!xn&&(An?On>0&&Tn.length>=On:!1)},At=Tn=>$.hoveringIndex===Tn;ae({listRef:_e,isSized:$e,isItemDisabled:ze,isItemHovering:At,isItemSelected:Fe,scrollToItem:Tn=>{const xn=_e.value;xn&&xn.scrollToItem(Tn)},resetScrollTop:()=>{const Tn=_e.value;Tn&&Tn.resetScrollTop()}});const vn=Tn=>{const{index:xn,data:kn,style:An}=Tn,On=unref($e),{itemSize:Nn,estimatedSize:Rn}=unref(xe),{modelValue:zn}=ie.props,{onSelect:Bn,onHover:Mn}=ie,Fn=kn[xn];if(Fn.type==="Group")return createVNode(GroupItem,{item:Fn,style:An,height:On?Nn:Rn},null);const Vn=Fe(zn,Fn),jn=ze(zn,Vn),Zn=At(xn);return createVNode(OptionItem,mergeProps(Tn,{selected:Vn,disabled:Fn.disabled||jn,created:!!Fn.created,hovering:Zn,item:Fn,onSelect:Bn,onHover:Mn}),{default:Gn=>{var Xn;return((Xn=oe.default)==null?void 0:Xn.call(oe,Gn))||createVNode("span",null,[Fn.label])}})},{onKeyboardNavigate:_n,onKeyboardSelect:bn}=ie,Cn=()=>{_n("forward")},En=()=>{_n("backward")},$n=()=>{ie.expanded=!1},wn=Tn=>{const{code:xn}=Tn,{tab:kn,esc:An,down:On,up:Nn,enter:Rn}=EVENT_CODE;switch(xn!==kn&&(Tn.preventDefault(),Tn.stopPropagation()),xn){case kn:case An:{$n();break}case On:{Cn();break}case Nn:{En();break}case Rn:{bn();break}}};return()=>{var Tn;const{data:xn,width:kn}=$,{height:An,multiple:On,scrollbarAlwaysOn:Nn}=ie.props;if(xn.length===0)return createVNode("div",{class:le.b("dropdown"),style:{width:`${kn}px`}},[(Tn=oe.empty)==null?void 0:Tn.call(oe)]);const Rn=unref($e)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[le.b("dropdown"),le.is("multiple",On)]},[createVNode(Rn,mergeProps({ref:_e},unref(xe),{className:le.be("dropdown","list"),scrollbarAlwaysOn:Nn,data:xn,height:An,width:kn,total:xn.length,onKeydown:wn}),{default:zn=>createVNode(vn,zn,null)})])}}});function useAllowCreate($,oe){const ae=ref(0),ie=ref(null),le=computed(()=>$.allowCreate&&$.filterable);function pe(Ie){const Ne=Fe=>Fe.value===Ie;return $.options&&$.options.some(Ne)||oe.createdOptions.some(Ne)}function _e(Ie){le.value&&($.multiple&&Ie.created?ae.value++:ie.value=Ie)}function Ce(Ie){if(le.value)if(Ie&&Ie.length>0&&!pe(Ie)){const Ne={value:Ie,label:Ie,created:!0,disabled:!1};oe.createdOptions.length>=ae.value?oe.createdOptions[ae.value]=Ne:oe.createdOptions.push(Ne)}else if($.multiple)oe.createdOptions.length=ae.value;else{const Ne=ie.value;oe.createdOptions.length=0,Ne&&Ne.created&&oe.createdOptions.push(Ne)}}function $e(Ie){if(!le.value||!Ie||!Ie.created||Ie.created&&$.reserveKeyword&&oe.inputValue===Ie.label)return;const Ne=oe.createdOptions.findIndex(Fe=>Fe.value===Ie.value);~Ne&&(oe.createdOptions.splice(Ne,1),ae.value--)}function xe(){le.value&&(oe.createdOptions.length=0,ae.value=0)}return{createNewOption:Ce,removeNewOption:$e,selectNewOption:_e,clearAllNewOption:xe}}const flattenOptions=$=>{const oe=[];return $.forEach(ae=>{isArray$c(ae.options)?(oe.push({label:ae.label,isTitle:!0,type:"Group"}),ae.options.forEach(ie=>{oe.push(ie)}),oe.push({type:"Group"})):oe.push(ae)}),oe};function useInput($){const oe=ref(!1);return{handleCompositionStart:()=>{oe.value=!0},handleCompositionUpdate:pe=>{const _e=pe.target.value,Ce=_e[_e.length-1]||"";oe.value=!isKorean(Ce)},handleCompositionEnd:pe=>{oe.value&&(oe.value=!1,isFunction$5($)&&$(pe))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=($,oe)=>{const{t:ae}=useLocale(),ie=useNamespace("select-v2"),le=useNamespace("input"),{form:pe,formItem:_e}=useFormItem(),Ce=reactive({inputValue:DEFAULT_INPUT_PLACEHOLDER,displayInputValue:DEFAULT_INPUT_PLACEHOLDER,calculatedWidth:0,cachedPlaceholder:"",cachedOptions:[],createdOptions:[],createdLabel:"",createdSelected:!1,currentPlaceholder:"",hoveringIndex:-1,comboBoxHovering:!1,isOnComposition:!1,isSilentBlur:!1,isComposing:!1,inputLength:20,selectWidth:200,initialInputHeight:0,previousQuery:null,previousValue:void 0,query:"",selectedLabel:"",softFocus:!1,tagInMultiLine:!1}),$e=ref(-1),xe=ref(-1),Ie=ref(null),Ne=ref(null),Fe=ref(null),ze=ref(null),At=ref(null),Lt=ref(null),hn=ref(null),vn=ref(!1),_n=computed(()=>$.disabled||(pe==null?void 0:pe.disabled)),bn=computed(()=>{const Ar=On.value.length*34;return Ar>$.height?$.height:Ar}),Cn=computed(()=>!isNil($.modelValue)),En=computed(()=>{const Ar=$.multiple?Array.isArray($.modelValue)&&$.modelValue.length>0:Cn.value;return $.clearable&&!_n.value&&Ce.comboBoxHovering&&Ar}),$n=computed(()=>$.remote&&$.filterable?"":arrow_up_default),wn=computed(()=>$n.value&&ie.is("reverse",vn.value)),Tn=computed(()=>(_e==null?void 0:_e.validateState)||""),xn=computed(()=>ValidateComponentsMap[Tn.value]),kn=computed(()=>$.remote?300:0),An=computed(()=>{const Ar=On.value;return $.loading?$.loadingText||ae("el.select.loading"):$.remote&&Ce.inputValue===""&&Ar.length===0?!1:$.filterable&&Ce.inputValue&&Ar.length>0?$.noMatchText||ae("el.select.noMatch"):Ar.length===0?$.noDataText||ae("el.select.noData"):null}),On=computed(()=>{const Ar=Dr=>{const Yr=Ce.inputValue,qr=new RegExp(escapeStringRegexp(Yr),"i");return Yr?qr.test(Dr.label||""):!0};return $.loading?[]:flattenOptions($.options.concat(Ce.createdOptions).map(Dr=>{if(isArray$c(Dr.options)){const Yr=Dr.options.filter(Ar);if(Yr.length>0)return{...Dr,options:Yr}}else if($.remote||Ar(Dr))return Dr;return null}).filter(Dr=>Dr!==null))}),Nn=computed(()=>On.value.every(Ar=>Ar.disabled)),Rn=useFormSize(),zn=computed(()=>Rn.value==="small"?"small":"default"),Bn=computed(()=>{const Ar=Lt.value,Dr=zn.value||"default",Yr=Ar?Number.parseInt(getComputedStyle(Ar).paddingLeft):0,qr=Ar?Number.parseInt(getComputedStyle(Ar).paddingRight):0;return Ce.selectWidth-qr-Yr-TAG_BASE_WIDTH[Dr]}),Mn=()=>{var Ar;xe.value=((Ar=At.value)==null?void 0:Ar.offsetWidth)||200},Fn=computed(()=>({width:`${Ce.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(Ce.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),Vn=computed(()=>isArray$c($.modelValue)?$.modelValue.length===0&&!Ce.displayInputValue:$.filterable?Ce.displayInputValue.length===0:!0),jn=computed(()=>{const Ar=$.placeholder||ae("el.select.placeholder");return $.multiple||isNil($.modelValue)?Ar:Ce.selectedLabel}),Zn=computed(()=>{var Ar,Dr;return(Dr=(Ar=ze.value)==null?void 0:Ar.popperRef)==null?void 0:Dr.contentRef}),Gn=computed(()=>{if($.multiple){const Ar=$.modelValue.length;if($.modelValue.length>0)return On.value.findIndex(Dr=>Dr.value===$.modelValue[Ar-1])}else if($.modelValue)return On.value.findIndex(Ar=>Ar.value===$.modelValue);return-1}),Xn=computed({get(){return vn.value&&An.value!==!1},set(Ar){vn.value=Ar}}),cr=computed(()=>Ce.cachedOptions.slice(0,$.maxCollapseTags)),nr=computed(()=>Ce.cachedOptions.slice($.maxCollapseTags)),{createNewOption:er,removeNewOption:rr,selectNewOption:qn,clearAllNewOption:Yn}=useAllowCreate($,Ce),{handleCompositionStart:ar,handleCompositionUpdate:pr,handleCompositionEnd:Un}=useInput(Ar=>Ur(Ar)),tr=()=>{var Ar,Dr,Yr;(Dr=(Ar=Ne.value)==null?void 0:Ar.focus)==null||Dr.call(Ar),(Yr=ze.value)==null||Yr.updatePopper()},ur=()=>{if(!$.automaticDropdown&&!_n.value)return Ce.isComposing&&(Ce.softFocus=!0),nextTick(()=>{var Ar,Dr;vn.value=!vn.value,(Dr=(Ar=Ne.value)==null?void 0:Ar.focus)==null||Dr.call(Ar)})},_r=()=>($.filterable&&Ce.inputValue!==Ce.selectedLabel&&(Ce.query=Ce.selectedLabel),sr(Ce.inputValue),nextTick(()=>{er(Ce.inputValue)})),Er=debounce(_r,kn.value),sr=Ar=>{Ce.previousQuery!==Ar&&(Ce.previousQuery=Ar,$.filterable&&isFunction$5($.filterMethod)?$.filterMethod(Ar):$.filterable&&$.remote&&isFunction$5($.remoteMethod)&&$.remoteMethod(Ar))},Pr=Ar=>{isEqual$1($.modelValue,Ar)||oe(CHANGE_EVENT,Ar)},Sr=Ar=>{oe(UPDATE_MODEL_EVENT,Ar),Pr(Ar),Ce.previousValue=Ar==null?void 0:Ar.toString()},kr=(Ar=[],Dr)=>{if(!isObject$8(Dr))return Ar.indexOf(Dr);const Yr=$.valueKey;let qr=-1;return Ar.some((Fr,eo)=>get$1(Fr,Yr)===get$1(Dr,Yr)?(qr=eo,!0):!1),qr},mr=Ar=>isObject$8(Ar)?get$1(Ar,$.valueKey):Ar,lr=Ar=>isObject$8(Ar)?Ar.label:Ar,hr=()=>nextTick(()=>{var Ar,Dr;if(!Ne.value)return;const Yr=Lt.value;At.value.height=Yr.offsetHeight,vn.value&&An.value!==!1&&((Dr=(Ar=ze.value)==null?void 0:Ar.updatePopper)==null||Dr.call(Ar))}),gr=()=>{var Ar,Dr;if(Or(),Mn(),(Dr=(Ar=ze.value)==null?void 0:Ar.updatePopper)==null||Dr.call(Ar),$.multiple)return hr()},Or=()=>{const Ar=Lt.value;Ar&&(Ce.selectWidth=Ar.getBoundingClientRect().width)},Lr=(Ar,Dr,Yr=!0)=>{var qr,Fr;if($.multiple){let eo=$.modelValue.slice();const ro=kr(eo,mr(Ar));ro>-1?(eo=[...eo.slice(0,ro),...eo.slice(ro+1)],Ce.cachedOptions.splice(ro,1),rr(Ar)):($.multipleLimit<=0||eo.length<$.multipleLimit)&&(eo=[...eo,mr(Ar)],Ce.cachedOptions.push(Ar),qn(Ar),Hr(Dr)),Sr(eo),Ar.created&&(Ce.query="",sr(""),Ce.inputLength=20),$.filterable&&!$.reserveKeyword&&((Fr=(qr=Ne.value).focus)==null||Fr.call(qr),ir("")),$.filterable&&(Ce.calculatedWidth=hn.value.getBoundingClientRect().width),hr(),Mr()}else $e.value=Dr,Ce.selectedLabel=Ar.label,Sr(mr(Ar)),vn.value=!1,Ce.isComposing=!1,Ce.isSilentBlur=Yr,qn(Ar),Ar.created||Yn(),Hr(Dr)},Vr=(Ar,Dr)=>{const{valueKey:Yr}=$,qr=$.modelValue.indexOf(get$1(Dr,Yr));if(qr>-1&&!_n.value){const Fr=[...$.modelValue.slice(0,qr),...$.modelValue.slice(qr+1)];return Ce.cachedOptions.splice(qr,1),Sr(Fr),oe("remove-tag",get$1(Dr,Yr)),Ce.softFocus=!0,rr(Dr),nextTick(tr)}Ar.stopPropagation()},Rr=Ar=>{const Dr=Ce.isComposing;Ce.isComposing=!0,Ce.softFocus?Ce.softFocus=!1:Dr||oe("focus",Ar)},$r=Ar=>(Ce.softFocus=!1,nextTick(()=>{var Dr,Yr;(Yr=(Dr=Ne.value)==null?void 0:Dr.blur)==null||Yr.call(Dr),hn.value&&(Ce.calculatedWidth=hn.value.getBoundingClientRect().width),Ce.isSilentBlur?Ce.isSilentBlur=!1:Ce.isComposing&&oe("blur",Ar),Ce.isComposing=!1})),Tr=()=>{Ce.displayInputValue.length>0?ir(""):vn.value=!1},dr=Ar=>{if(Ce.displayInputValue.length===0){Ar.preventDefault();const Dr=$.modelValue.slice();Dr.pop(),rr(Ce.cachedOptions.pop()),Sr(Dr)}},Jn=()=>{let Ar;return isArray$c($.modelValue)?Ar=[]:Ar=void 0,Ce.softFocus=!0,$.multiple?Ce.cachedOptions=[]:Ce.selectedLabel="",vn.value=!1,Sr(Ar),oe("clear"),Yn(),nextTick(tr)},ir=Ar=>{Ce.displayInputValue=Ar,Ce.inputValue=Ar},xr=(Ar,Dr=void 0)=>{const Yr=On.value;if(!["forward","backward"].includes(Ar)||_n.value||Yr.length<=0||Nn.value)return;if(!vn.value)return ur();Dr===void 0&&(Dr=Ce.hoveringIndex);let qr=-1;Ar==="forward"?(qr=Dr+1,qr>=Yr.length&&(qr=0)):Ar==="backward"&&(qr=Dr-1,(qr<0||qr>=Yr.length)&&(qr=Yr.length-1));const Fr=Yr[qr];if(Fr.disabled||Fr.type==="Group")return xr(Ar,qr);Hr(qr),Xr(qr)},Ir=()=>{if(vn.value)~Ce.hoveringIndex&&On.value[Ce.hoveringIndex]&&Lr(On.value[Ce.hoveringIndex],Ce.hoveringIndex,!1);else return ur()},Hr=Ar=>{Ce.hoveringIndex=Ar},Cr=()=>{Ce.hoveringIndex=-1},Mr=()=>{var Ar;const Dr=Ne.value;Dr&&((Ar=Dr.focus)==null||Ar.call(Dr))},Ur=Ar=>{const Dr=Ar.target.value;if(ir(Dr),Ce.displayInputValue.length>0&&!vn.value&&(vn.value=!0),Ce.calculatedWidth=hn.value.getBoundingClientRect().width,$.multiple&&hr(),$.remote)Er();else return _r()},jr=()=>(vn.value=!1,$r()),Wr=()=>(Ce.inputValue=Ce.displayInputValue,nextTick(()=>{~Gn.value&&(Hr(Gn.value),Xr(Ce.hoveringIndex))})),Xr=Ar=>{Fe.value.scrollToItem(Ar)},Qr=()=>{if(Cr(),$.multiple)if($.modelValue.length>0){let Ar=!1;Ce.cachedOptions.length=0,Ce.previousValue=$.modelValue.toString(),$.modelValue.forEach(Dr=>{const Yr=On.value.findIndex(qr=>mr(qr)===Dr);~Yr&&(Ce.cachedOptions.push(On.value[Yr]),Ar||Hr(Yr),Ar=!0)})}else Ce.cachedOptions=[],Ce.previousValue=void 0;else if(Cn.value){Ce.previousValue=$.modelValue;const Ar=On.value,Dr=Ar.findIndex(Yr=>mr(Yr)===mr($.modelValue));~Dr?(Ce.selectedLabel=Ar[Dr].label,Hr(Dr)):Ce.selectedLabel=`${$.modelValue}`}else Ce.selectedLabel="",Ce.previousValue=void 0;Yn(),Mn()};return watch(vn,Ar=>{var Dr,Yr;oe("visible-change",Ar),Ar?(Yr=(Dr=ze.value).update)==null||Yr.call(Dr):(Ce.displayInputValue="",Ce.previousQuery=null,er(""))}),watch(()=>$.modelValue,(Ar,Dr)=>{var Yr;(!Ar||Ar.toString()!==Ce.previousValue)&&Qr(),!isEqual$1(Ar,Dr)&&$.validateEvent&&((Yr=_e==null?void 0:_e.validate)==null||Yr.call(_e,"change").catch(qr=>void 0))},{deep:!0}),watch(()=>$.options,()=>{const Ar=Ne.value;(!Ar||Ar&&document.activeElement!==Ar)&&Qr()},{deep:!0}),watch(On,()=>nextTick(Fe.value.resetScrollTop)),watch(()=>Xn.value,Ar=>{Ar||Cr()}),onMounted(()=>{Qr()}),useResizeObserver(At,gr),{collapseTagSize:zn,currentPlaceholder:jn,expanded:vn,emptyText:An,popupHeight:bn,debounce:kn,filteredOptions:On,iconComponent:$n,iconReverse:wn,inputWrapperStyle:Fn,popperSize:xe,dropdownMenuVisible:Xn,hasModelValue:Cn,shouldShowPlaceholder:Vn,selectDisabled:_n,selectSize:Rn,showClearBtn:En,states:Ce,tagMaxWidth:Bn,nsSelectV2:ie,nsInput:le,calculatorRef:hn,controlRef:Ie,inputRef:Ne,menuRef:Fe,popper:ze,selectRef:At,selectionRef:Lt,popperRef:Zn,validateState:Tn,validateIcon:xn,showTagList:cr,collapseTagList:nr,debouncedOnInputChange:Er,deleteTag:Vr,getLabel:lr,getValueKey:mr,handleBlur:$r,handleClear:Jn,handleClickOutside:jr,handleDel:dr,handleEsc:Tr,handleFocus:Rr,handleMenuEnter:Wr,handleResize:gr,toggleMenu:ur,scrollTo:Xr,onInput:Ur,onKeyboardNavigate:xr,onKeyboardSelect:Ir,onSelect:Lr,onHover:Hr,onUpdateInputValue:ir,handleCompositionStart:ar,handleCompositionEnd:Un,handleCompositionUpdate:pr}},_sfc_main$D=defineComponent({name:"ElSelectV2",components:{ElSelectMenu,ElTag,ElTooltip,ElIcon},directives:{ClickOutside,ModelText:vModelText},props:SelectProps,emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup($,{emit:oe}){const ae=computed(()=>{const{modelValue:le,multiple:pe}=$,_e=pe?[]:void 0;return isArray$c(le)?pe?le:_e:pe?_e:le}),ie=useSelect$1(reactive({...toRefs($),modelValue:ae}),oe);return provide(selectV2InjectionKey,{props:reactive({...toRefs($),height:ie.popupHeight,modelValue:ae}),popper:ie.popper,onSelect:ie.onSelect,onHover:ie.onHover,onKeyboardNavigate:ie.onKeyboardNavigate,onKeyboardSelect:ie.onKeyboardSelect}),{...ie,modelValue:ae}}}),_hoisted_1$i={key:0},_hoisted_2$c=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],_hoisted_3$6=["textContent"],_hoisted_4$4=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],_hoisted_5$2=["textContent"];function _sfc_render$6($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tag"),Ce=resolveComponent("el-tooltip"),$e=resolveComponent("el-icon"),xe=resolveComponent("el-select-menu"),Ie=resolveDirective("model-text"),Ne=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([$.nsSelectV2.b(),$.nsSelectV2.m($.selectSize)]),onClick:oe[24]||(oe[24]=withModifiers((...Fe)=>$.toggleMenu&&$.toggleMenu(...Fe),["stop"])),onMouseenter:oe[25]||(oe[25]=Fe=>$.states.comboBoxHovering=!0),onMouseleave:oe[26]||(oe[26]=Fe=>$.states.comboBoxHovering=!1)},[createVNode(Ce,{ref:"popper",visible:$.dropdownMenuVisible,teleported:$.teleported,"popper-class":[$.nsSelectV2.e("popper"),$.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":$.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:$.effect,placement:$.placement,pure:"",transition:`${$.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:$.persistent,onBeforeShow:$.handleMenuEnter,onHide:oe[23]||(oe[23]=Fe=>$.states.inputValue=$.states.displayInputValue)},{default:withCtx(()=>[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([$.nsSelectV2.e("wrapper"),$.nsSelectV2.is("focused",$.states.isComposing||$.expanded),$.nsSelectV2.is("hovering",$.states.comboBoxHovering),$.nsSelectV2.is("filterable",$.filterable),$.nsSelectV2.is("disabled",$.selectDisabled)])},[$.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$i,[renderSlot($.$slots,"prefix")])):createCommentVNode("v-if",!0),$.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.nsSelectV2.e("selection"))},[$.collapseTags&&$.modelValue.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.showTagList,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!(Fe!=null&&Fe.disable),size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1(Fe==null?void 0:Fe.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selected-item"))},[$.modelValue.length>$.maxCollapseTags?(openBlock(),createBlock(_e,{key:0,closable:!1,size:$.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[$.collapseTagsTooltip?(openBlock(),createBlock(Ce,{key:0,disabled:$.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:$.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass($.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.collapseTagList,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!Fe.disabled,size:$.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Fe)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},"+ "+toDisplayString$1($.modelValue.length-$.maxCollapseTags),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)],64)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList($.states.cachedOptions,Fe=>(openBlock(),createElementBlock("div",{key:$.getValueKey(Fe),class:normalizeClass($.nsSelectV2.e("selected-item"))},[createVNode(_e,{closable:!$.selectDisabled&&!Fe.disabled,size:$.collapseTagSize,type:"info","disable-transitions":"",onClose:ze=>$.deleteTag(ze,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${$.tagMaxWidth}px`})},toDisplayString$1($.getLabel(Fe)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")]),style:normalizeStyle$1($.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef",autocomplete:$.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":$.expanded,"aria-labelledby":$.label,class:normalizeClass([$.nsSelectV2.is($.selectSize),$.nsSelectV2.e("combobox-input")]),disabled:$.disabled,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",name:$.name,unselectable:$.expanded?"on":void 0,"onUpdate:modelValue":oe[0]||(oe[0]=(...Fe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Fe)),onFocus:oe[1]||(oe[1]=(...Fe)=>$.handleFocus&&$.handleFocus(...Fe)),onBlur:oe[2]||(oe[2]=(...Fe)=>$.handleBlur&&$.handleBlur(...Fe)),onInput:oe[3]||(oe[3]=(...Fe)=>$.onInput&&$.onInput(...Fe)),onCompositionstart:oe[4]||(oe[4]=(...Fe)=>$.handleCompositionStart&&$.handleCompositionStart(...Fe)),onCompositionupdate:oe[5]||(oe[5]=(...Fe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Fe)),onCompositionend:oe[6]||(oe[6]=(...Fe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Fe)),onKeydown:[oe[7]||(oe[7]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),oe[8]||(oe[8]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),oe[9]||(oe[9]=withKeys(withModifiers((...Fe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Fe),["stop","prevent"]),["enter"])),oe[10]||(oe[10]=withKeys(withModifiers((...Fe)=>$.handleEsc&&$.handleEsc(...Fe),["stop","prevent"]),["esc"])),oe[11]||(oe[11]=withKeys(withModifiers((...Fe)=>$.handleDel&&$.handleDel(...Fe),["stop"]),["delete"]))]},null,42,_hoisted_2$c),[[Ie,$.states.displayInputValue]]),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass($.nsSelectV2.e("input-calculator")),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_3$6)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:$.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":$.label,"aria-expanded":$.expanded,autocapitalize:"off",autocomplete:$.autocomplete,class:normalizeClass($.nsSelectV2.e("combobox-input")),disabled:$.disabled,name:$.name,role:"combobox",readonly:!$.filterable,spellcheck:"false",type:"text",unselectable:$.expanded?"on":void 0,onCompositionstart:oe[12]||(oe[12]=(...Fe)=>$.handleCompositionStart&&$.handleCompositionStart(...Fe)),onCompositionupdate:oe[13]||(oe[13]=(...Fe)=>$.handleCompositionUpdate&&$.handleCompositionUpdate(...Fe)),onCompositionend:oe[14]||(oe[14]=(...Fe)=>$.handleCompositionEnd&&$.handleCompositionEnd(...Fe)),onFocus:oe[15]||(oe[15]=(...Fe)=>$.handleFocus&&$.handleFocus(...Fe)),onBlur:oe[16]||(oe[16]=(...Fe)=>$.handleBlur&&$.handleBlur(...Fe)),onInput:oe[17]||(oe[17]=(...Fe)=>$.onInput&&$.onInput(...Fe)),onKeydown:[oe[18]||(oe[18]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),oe[19]||(oe[19]=withKeys(withModifiers(Fe=>$.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),oe[20]||(oe[20]=withKeys(withModifiers((...Fe)=>$.onKeyboardSelect&&$.onKeyboardSelect(...Fe),["stop","prevent"]),["enter"])),oe[21]||(oe[21]=withKeys(withModifiers((...Fe)=>$.handleEsc&&$.handleEsc(...Fe),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":oe[22]||(oe[22]=(...Fe)=>$.onUpdateInputValue&&$.onUpdateInputValue(...Fe))},null,42,_hoisted_4$4),[[Ie,$.states.displayInputValue]])],2),$.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([$.nsSelectV2.e("selected-item"),$.nsSelectV2.e("input-calculator")]),textContent:toDisplayString$1($.states.displayInputValue)},null,10,_hoisted_5$2)):createCommentVNode("v-if",!0)],64)),$.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([$.nsSelectV2.e("placeholder"),$.nsSelectV2.is("transparent",$.multiple?$.modelValue.length===0:!$.hasModelValue)])},toDisplayString$1($.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass($.nsSelectV2.e("suffix"))},[$.iconComponent?withDirectives((openBlock(),createBlock($e,{key:0,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon"),$.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])),[[vShow,!$.showClearBtn]]):createCommentVNode("v-if",!0),$.showClearBtn&&$.clearIcon?(openBlock(),createBlock($e,{key:1,class:normalizeClass([$.nsSelectV2.e("caret"),$.nsInput.e("icon")]),onClick:withModifiers($.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.validateState&&$.validateIcon?(openBlock(),createBlock($e,{key:2,class:normalizeClass([$.nsInput.e("icon"),$.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]),content:withCtx(()=>[createVNode(xe,{ref:"menuRef",data:$.filteredOptions,width:$.popperSize,"hovering-index":$.states.hoveringIndex,"scrollbar-always-on":$.scrollbarAlwaysOn},{default:withCtx(Fe=>[renderSlot($.$slots,"default",normalizeProps(guardReactiveProps(Fe)))]),empty:withCtx(()=>[renderSlot($.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass($.nsSelectV2.e("empty"))},toDisplayString$1($.emptyText?$.emptyText:""),3)])]),_:3},8,["data","width","hovering-index","scrollbar-always-on"])]),_:3},8,["visible","teleported","popper-class","popper-options","effect","placement","transition","persistent","onBeforeShow"])],34)),[[Ne,$.handleClickOutside,$.popperRef]])}var Select=_export_sfc$1(_sfc_main$D,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Select.install=$=>{$.component(Select.name,Select)};const _Select=Select,ElSelectV2=_Select,skeletonProps=buildProps({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),skeletonItemProps=buildProps({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),__default__$t=defineComponent({name:"ElSkeletonItem"}),_sfc_main$C=defineComponent({...__default__$t,props:skeletonItemProps,setup($){const oe=useNamespace("skeleton");return(ae,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).e("item"),unref(oe).e(ae.variant)])},[ae.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc$1(_sfc_main$C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const __default__$s=defineComponent({name:"ElSkeleton"}),_sfc_main$B=defineComponent({...__default__$s,props:skeletonProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("skeleton"),le=useThrottleRender(toRef$1(ae,"loading"),ae.throttle);return oe({uiLoading:le}),(pe,_e)=>unref(le)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(ie).b(),unref(ie).is("animated",pe.animated)]},pe.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.count,Ce=>(openBlock(),createElementBlock(Fragment,{key:Ce},[pe.loading?renderSlot(pe.$slots,"template",{key:Ce},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(ie).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.rows,$e=>(openBlock(),createBlock(SkeletonItem,{key:$e,class:normalizeClass([unref(ie).e("paragraph"),unref(ie).is("last",$e===pe.rows&&pe.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(pe.$slots,"default",normalizeProps(mergeProps({key:1},pe.$attrs)))}});var Skeleton=_export_sfc$1(_sfc_main$B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ElSkeleton=withInstall(Skeleton,{SkeletonItem}),ElSkeletonItem=withNoopInstall(SkeletonItem),sliderContextKey=Symbol("sliderContextKey"),sliderProps=buildProps({modelValue:{type:definePropType([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:useSizeProp,inputSize:useSizeProp,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:definePropType(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:definePropType(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Ee,default:"top"},marks:{type:definePropType(Object)},validateEvent:{type:Boolean,default:!0}}),isValidValue$1=$=>isNumber$5($)||isArray$c($)&&$.every(isNumber$5),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},useLifecycle=($,oe,ae)=>{const ie=ref();return onMounted(async()=>{$.range?(Array.isArray($.modelValue)?(oe.firstValue=Math.max($.min,$.modelValue[0]),oe.secondValue=Math.min($.max,$.modelValue[1])):(oe.firstValue=$.min,oe.secondValue=$.max),oe.oldValue=[oe.firstValue,oe.secondValue]):(typeof $.modelValue!="number"||Number.isNaN($.modelValue)?oe.firstValue=$.min:oe.firstValue=Math.min($.max,Math.max($.min,$.modelValue)),oe.oldValue=oe.firstValue),useEventListener$1(window,"resize",ae),await nextTick(),ae()}),{sliderWrapper:ie}},useMarks=$=>computed(()=>$.marks?Object.keys($.marks).map(Number.parseFloat).sort((ae,ie)=>ae-ie).filter(ae=>ae<=$.max&&ae>=$.min).map(ae=>({point:ae,position:(ae-$.min)*100/($.max-$.min),mark:$.marks[ae]})):[]),useSlide=($,oe,ae)=>{const{form:ie,formItem:le}=useFormItem(),pe=shallowRef(),_e=ref(),Ce=ref(),$e={firstButton:_e,secondButton:Ce},xe=computed(()=>$.disabled||(ie==null?void 0:ie.disabled)||!1),Ie=computed(()=>Math.min(oe.firstValue,oe.secondValue)),Ne=computed(()=>Math.max(oe.firstValue,oe.secondValue)),Fe=computed(()=>$.range?`${100*(Ne.value-Ie.value)/($.max-$.min)}%`:`${100*(oe.firstValue-$.min)/($.max-$.min)}%`),ze=computed(()=>$.range?`${100*(Ie.value-$.min)/($.max-$.min)}%`:"0%"),At=computed(()=>$.vertical?{height:$.height}:{}),Lt=computed(()=>$.vertical?{height:Fe.value,bottom:ze.value}:{width:Fe.value,left:ze.value}),hn=()=>{pe.value&&(oe.sliderSize=pe.value[`client${$.vertical?"Height":"Width"}`])},vn=An=>{const On=$.min+An*($.max-$.min)/100;if(!$.range)return _e;let Nn;return Math.abs(Ie.value-On)<Math.abs(Ne.value-On)?Nn=oe.firstValue<oe.secondValue?"firstButton":"secondButton":Nn=oe.firstValue>oe.secondValue?"firstButton":"secondButton",$e[Nn]},_n=An=>{const On=vn(An);return On.value.setPosition(An),On},bn=An=>{oe.firstValue=An,En($.range?[Ie.value,Ne.value]:An)},Cn=An=>{oe.secondValue=An,$.range&&En([Ie.value,Ne.value])},En=An=>{ae(UPDATE_MODEL_EVENT,An),ae(INPUT_EVENT,An)},$n=async()=>{await nextTick(),ae(CHANGE_EVENT,$.range?[Ie.value,Ne.value]:$.modelValue)},wn=An=>{var On,Nn,Rn,zn,Bn,Mn;if(xe.value||oe.dragging)return;hn();let Fn=0;if($.vertical){const Vn=(Rn=(Nn=(On=An.touches)==null?void 0:On.item(0))==null?void 0:Nn.clientY)!=null?Rn:An.clientY;Fn=(pe.value.getBoundingClientRect().bottom-Vn)/oe.sliderSize*100}else{const Vn=(Mn=(Bn=(zn=An.touches)==null?void 0:zn.item(0))==null?void 0:Bn.clientX)!=null?Mn:An.clientX,jn=pe.value.getBoundingClientRect().left;Fn=(Vn-jn)/oe.sliderSize*100}if(!(Fn<0||Fn>100))return _n(Fn)};return{elFormItem:le,slider:pe,firstButton:_e,secondButton:Ce,sliderDisabled:xe,minValue:Ie,maxValue:Ne,runwayStyle:At,barStyle:Lt,resetSize:hn,setPosition:_n,emitChange:$n,onSliderWrapperPrevent:An=>{var On,Nn;((On=$e.firstButton.value)!=null&&On.dragging||(Nn=$e.secondButton.value)!=null&&Nn.dragging)&&An.preventDefault()},onSliderClick:An=>{wn(An)&&$n()},onSliderDown:async An=>{const On=wn(An);On&&(await nextTick(),On.value.onButtonDown(An))},setFirstValue:bn,setSecondValue:Cn}},{left,down,right,up,home:home$2,end:end$1,pageUp,pageDown}=EVENT_CODE,useTooltip=($,oe,ae)=>{const ie=ref(),le=ref(!1),pe=computed(()=>oe.value instanceof Function),_e=computed(()=>pe.value&&oe.value($.modelValue)||$.modelValue),Ce=debounce(()=>{ae.value&&(le.value=!0)},50),$e=debounce(()=>{ae.value&&(le.value=!1)},50);return{tooltip:ie,tooltipVisible:le,formatValue:_e,displayTooltip:Ce,hideTooltip:$e}},useSliderButton=($,oe,ae)=>{const{disabled:ie,min:le,max:pe,step:_e,showTooltip:Ce,precision:$e,sliderSize:xe,formatTooltip:Ie,emitChange:Ne,resetSize:Fe,updateDragging:ze}=inject(sliderContextKey),{tooltip:At,tooltipVisible:Lt,formatValue:hn,displayTooltip:vn,hideTooltip:_n}=useTooltip($,Ie,Ce),bn=ref(),Cn=computed(()=>`${($.modelValue-le.value)/(pe.value-le.value)*100}%`),En=computed(()=>$.vertical?{bottom:Cn.value}:{left:Cn.value}),$n=()=>{oe.hovering=!0,vn()},wn=()=>{oe.hovering=!1,oe.dragging||_n()},Tn=Gn=>{ie.value||(Gn.preventDefault(),Fn(Gn),window.addEventListener("mousemove",Vn),window.addEventListener("touchmove",Vn),window.addEventListener("mouseup",jn),window.addEventListener("touchend",jn),window.addEventListener("contextmenu",jn),bn.value.focus())},xn=Gn=>{ie.value||(oe.newPosition=Number.parseFloat(Cn.value)+Gn/(pe.value-le.value)*100,Zn(oe.newPosition),Ne())},kn=()=>{xn(-_e.value)},An=()=>{xn(_e.value)},On=()=>{xn(-_e.value*4)},Nn=()=>{xn(_e.value*4)},Rn=()=>{ie.value||(Zn(0),Ne())},zn=()=>{ie.value||(Zn(100),Ne())},Bn=Gn=>{let Xn=!0;[left,down].includes(Gn.key)?kn():[right,up].includes(Gn.key)?An():Gn.key===home$2?Rn():Gn.key===end$1?zn():Gn.key===pageDown?On():Gn.key===pageUp?Nn():Xn=!1,Xn&&Gn.preventDefault()},Mn=Gn=>{let Xn,cr;return Gn.type.startsWith("touch")?(cr=Gn.touches[0].clientY,Xn=Gn.touches[0].clientX):(cr=Gn.clientY,Xn=Gn.clientX),{clientX:Xn,clientY:cr}},Fn=Gn=>{oe.dragging=!0,oe.isClick=!0;const{clientX:Xn,clientY:cr}=Mn(Gn);$.vertical?oe.startY=cr:oe.startX=Xn,oe.startPosition=Number.parseFloat(Cn.value),oe.newPosition=oe.startPosition},Vn=Gn=>{if(oe.dragging){oe.isClick=!1,vn(),Fe();let Xn;const{clientX:cr,clientY:nr}=Mn(Gn);$.vertical?(oe.currentY=nr,Xn=(oe.startY-oe.currentY)/xe.value*100):(oe.currentX=cr,Xn=(oe.currentX-oe.startX)/xe.value*100),oe.newPosition=oe.startPosition+Xn,Zn(oe.newPosition)}},jn=()=>{oe.dragging&&(setTimeout(()=>{oe.dragging=!1,oe.hovering||_n(),oe.isClick||Zn(oe.newPosition),Ne()},0),window.removeEventListener("mousemove",Vn),window.removeEventListener("touchmove",Vn),window.removeEventListener("mouseup",jn),window.removeEventListener("touchend",jn),window.removeEventListener("contextmenu",jn))},Zn=async Gn=>{if(Gn===null||Number.isNaN(+Gn))return;Gn<0?Gn=0:Gn>100&&(Gn=100);const Xn=100/((pe.value-le.value)/_e.value);let nr=Math.round(Gn/Xn)*Xn*(pe.value-le.value)*.01+le.value;nr=Number.parseFloat(nr.toFixed($e.value)),nr!==$.modelValue&&ae(UPDATE_MODEL_EVENT,nr),!oe.dragging&&$.modelValue!==oe.oldValue&&(oe.oldValue=$.modelValue),await nextTick(),oe.dragging&&vn(),At.value.updatePopper()};return watch(()=>oe.dragging,Gn=>{ze(Gn)}),{disabled:ie,button:bn,tooltip:At,tooltipVisible:Lt,showTooltip:Ce,wrapperStyle:En,formatValue:hn,handleMouseEnter:$n,handleMouseLeave:wn,onButtonDown:Tn,onKeyDown:Bn,setPosition:Zn}},useStops=($,oe,ae,ie)=>({stops:computed(()=>{if(!$.showStops||$.min>$.max)return[];if($.step===0)return[];const _e=($.max-$.min)/$.step,Ce=100*$.step/($.max-$.min),$e=Array.from({length:_e-1}).map((xe,Ie)=>(Ie+1)*Ce);return $.range?$e.filter(xe=>xe<100*(ae.value-$.min)/($.max-$.min)||xe>100*(ie.value-$.min)/($.max-$.min)):$e.filter(xe=>xe>100*(oe.firstValue-$.min)/($.max-$.min))}),getStopStyle:_e=>$.vertical?{bottom:`${_e}%`}:{left:`${_e}%`}}),useWatch=($,oe,ae,ie,le,pe)=>{const _e=xe=>{le(UPDATE_MODEL_EVENT,xe),le(INPUT_EVENT,xe)},Ce=()=>$.range?![ae.value,ie.value].every((xe,Ie)=>xe===oe.oldValue[Ie]):$.modelValue!==oe.oldValue,$e=()=>{var xe,Ie;$.min>$.max&&throwError$1("Slider","min should not be greater than max.");const Ne=$.modelValue;$.range&&Array.isArray(Ne)?Ne[1]<$.min?_e([$.min,$.min]):Ne[0]>$.max?_e([$.max,$.max]):Ne[0]<$.min?_e([$.min,Ne[1]]):Ne[1]>$.max?_e([Ne[0],$.max]):(oe.firstValue=Ne[0],oe.secondValue=Ne[1],Ce()&&($.validateEvent&&((xe=pe==null?void 0:pe.validate)==null||xe.call(pe,"change").catch(Fe=>void 0)),oe.oldValue=Ne.slice())):!$.range&&typeof Ne=="number"&&!Number.isNaN(Ne)&&(Ne<$.min?_e($.min):Ne>$.max?_e($.max):(oe.firstValue=Ne,Ce()&&($.validateEvent&&((Ie=pe==null?void 0:pe.validate)==null||Ie.call(pe,"change").catch(Fe=>void 0)),oe.oldValue=Ne)))};$e(),watch(()=>oe.dragging,xe=>{xe||$e()}),watch(()=>$.modelValue,(xe,Ie)=>{oe.dragging||Array.isArray(xe)&&Array.isArray(Ie)&&xe.every((Ne,Fe)=>Ne===Ie[Fe])&&oe.firstValue===xe[0]&&oe.secondValue===xe[1]||$e()},{deep:!0}),watch(()=>[$.min,$.max],()=>{$e()})},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:$=>isNumber$5($)},_hoisted_1$h=["tabindex"],__default__$r=defineComponent({name:"ElSliderButton"}),_sfc_main$A=defineComponent({...__default__$r,props:sliderButtonProps,emits:sliderButtonEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("slider"),pe=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:ie.modelValue}),{disabled:_e,button:Ce,tooltip:$e,showTooltip:xe,tooltipVisible:Ie,wrapperStyle:Ne,formatValue:Fe,handleMouseEnter:ze,handleMouseLeave:At,onButtonDown:Lt,onKeyDown:hn,setPosition:vn}=useSliderButton(ie,pe,ae),{hovering:_n,dragging:bn}=toRefs(pe);return oe({onButtonDown:Lt,onKeyDown:hn,setPosition:vn,hovering:_n,dragging:bn}),(Cn,En)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:Ce,class:normalizeClass([unref(le).e("button-wrapper"),{hover:unref(_n),dragging:unref(bn)}]),style:normalizeStyle$1(unref(Ne)),tabindex:unref(_e)?-1:0,onMouseenter:En[0]||(En[0]=(...$n)=>unref(ze)&&unref(ze)(...$n)),onMouseleave:En[1]||(En[1]=(...$n)=>unref(At)&&unref(At)(...$n)),onMousedown:En[2]||(En[2]=(...$n)=>unref(Lt)&&unref(Lt)(...$n)),onTouchstart:En[3]||(En[3]=(...$n)=>unref(Lt)&&unref(Lt)(...$n)),onFocus:En[4]||(En[4]=(...$n)=>unref(ze)&&unref(ze)(...$n)),onBlur:En[5]||(En[5]=(...$n)=>unref(At)&&unref(At)(...$n)),onKeydown:En[6]||(En[6]=(...$n)=>unref(hn)&&unref(hn)(...$n))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:$e,visible:unref(Ie),placement:Cn.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":Cn.tooltipClass,disabled:!unref(xe),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(unref(Fe)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref(le).e("button"),{hover:unref(_n),dragging:unref(bn)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,_hoisted_1$h))}});var SliderButton=_export_sfc$1(_sfc_main$A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const sliderMarkerProps=buildProps({mark:{type:definePropType([String,Object]),default:void 0}});var SliderMarker=defineComponent({name:"ElSliderMarker",props:sliderMarkerProps,setup($){const oe=useNamespace("slider"),ae=computed(()=>isString$7($.mark)?$.mark:$.mark.label),ie=computed(()=>isString$7($.mark)?void 0:$.mark.style);return()=>h$3("div",{class:oe.e("marks-text"),style:ie.value},ae.value)}});const _hoisted_1$g=["id","role","aria-label","aria-labelledby"],_hoisted_2$b={key:1},__default__$q=defineComponent({name:"ElSlider"}),_sfc_main$z=defineComponent({...__default__$q,props:sliderProps,emits:sliderEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useNamespace("slider"),{t:pe}=useLocale(),_e=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:Ce,slider:$e,firstButton:xe,secondButton:Ie,sliderDisabled:Ne,minValue:Fe,maxValue:ze,runwayStyle:At,barStyle:Lt,resetSize:hn,emitChange:vn,onSliderWrapperPrevent:_n,onSliderClick:bn,onSliderDown:Cn,setFirstValue:En,setSecondValue:$n}=useSlide(ie,_e,ae),{stops:wn,getStopStyle:Tn}=useStops(ie,_e,Fe,ze),{inputId:xn,isLabeledByFormItem:kn}=useFormItemInputId(ie,{formItemContext:Ce}),An=useFormSize(),On=computed(()=>ie.inputSize||An.value),Nn=computed(()=>ie.label||pe("el.slider.defaultLabel",{min:ie.min,max:ie.max})),Rn=computed(()=>ie.range?ie.rangeStartLabel||pe("el.slider.defaultRangeStartLabel"):Nn.value),zn=computed(()=>ie.formatValueText?ie.formatValueText(Gn.value):`${Gn.value}`),Bn=computed(()=>ie.rangeEndLabel||pe("el.slider.defaultRangeEndLabel")),Mn=computed(()=>ie.formatValueText?ie.formatValueText(Xn.value):`${Xn.value}`),Fn=computed(()=>[le.b(),le.m(An.value),le.is("vertical",ie.vertical),{[le.m("with-input")]:ie.showInput}]),Vn=useMarks(ie);useWatch(ie,_e,Fe,ze,ae,Ce);const jn=computed(()=>{const er=[ie.min,ie.max,ie.step].map(rr=>{const qn=`${rr}`.split(".")[1];return qn?qn.length:0});return Math.max.apply(null,er)}),{sliderWrapper:Zn}=useLifecycle(ie,_e,hn),{firstValue:Gn,secondValue:Xn,sliderSize:cr}=toRefs(_e),nr=er=>{_e.dragging=er};return provide(sliderContextKey,{...toRefs(ie),sliderSize:cr,disabled:Ne,precision:jn,emitChange:vn,resetSize:hn,updateDragging:nr}),oe({onSliderClick:bn}),(er,rr)=>{var qn,Yn;return openBlock(),createElementBlock("div",{id:er.range?unref(xn):void 0,ref_key:"sliderWrapper",ref:Zn,class:normalizeClass(unref(Fn)),role:er.range?"group":void 0,"aria-label":er.range&&!unref(kn)?unref(Nn):void 0,"aria-labelledby":er.range&&unref(kn)?(qn=unref(Ce))==null?void 0:qn.labelId:void 0,onTouchstart:rr[2]||(rr[2]=(...ar)=>unref(_n)&&unref(_n)(...ar)),onTouchmove:rr[3]||(rr[3]=(...ar)=>unref(_n)&&unref(_n)(...ar))},[createBaseVNode("div",{ref_key:"slider",ref:$e,class:normalizeClass([unref(le).e("runway"),{"show-input":er.showInput&&!er.range},unref(le).is("disabled",unref(Ne))]),style:normalizeStyle$1(unref(At)),onMousedown:rr[0]||(rr[0]=(...ar)=>unref(Cn)&&unref(Cn)(...ar)),onTouchstart:rr[1]||(rr[1]=(...ar)=>unref(Cn)&&unref(Cn)(...ar))},[createBaseVNode("div",{class:normalizeClass(unref(le).e("bar")),style:normalizeStyle$1(unref(Lt))},null,6),createVNode(SliderButton,{id:er.range?void 0:unref(xn),ref_key:"firstButton",ref:xe,"model-value":unref(Gn),vertical:er.vertical,"tooltip-class":er.tooltipClass,placement:er.placement,role:"slider","aria-label":er.range||!unref(kn)?unref(Rn):void 0,"aria-labelledby":!er.range&&unref(kn)?(Yn=unref(Ce))==null?void 0:Yn.labelId:void 0,"aria-valuemin":er.min,"aria-valuemax":er.range?unref(Xn):er.max,"aria-valuenow":unref(Gn),"aria-valuetext":unref(zn),"aria-orientation":er.vertical?"vertical":"horizontal","aria-disabled":unref(Ne),"onUpdate:modelValue":unref(En)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),er.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:Ie,"model-value":unref(Xn),vertical:er.vertical,"tooltip-class":er.tooltipClass,placement:er.placement,role:"slider","aria-label":unref(Bn),"aria-valuemin":unref(Gn),"aria-valuemax":er.max,"aria-valuenow":unref(Xn),"aria-valuetext":unref(Mn),"aria-orientation":er.vertical?"vertical":"horizontal","aria-disabled":unref(Ne),"onUpdate:modelValue":unref($n)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):createCommentVNode("v-if",!0),er.showStops?(openBlock(),createElementBlock("div",_hoisted_2$b,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(wn),(ar,pr)=>(openBlock(),createElementBlock("div",{key:pr,class:normalizeClass(unref(le).e("stop")),style:normalizeStyle$1(unref(Tn)(ar))},null,6))),128))])):createCommentVNode("v-if",!0),unref(Vn).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Vn),(ar,pr)=>(openBlock(),createElementBlock("div",{key:pr,style:normalizeStyle$1(unref(Tn)(ar.position)),class:normalizeClass([unref(le).e("stop"),unref(le).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref(le).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Vn),(ar,pr)=>(openBlock(),createBlock(unref(SliderMarker),{key:pr,mark:ar.mark,style:normalizeStyle$1(unref(Tn)(ar.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),er.showInput&&!er.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Gn),class:normalizeClass(unref(le).e("input")),step:er.step,disabled:unref(Ne),controls:er.showInputControls,min:er.min,max:er.max,debounce:er.debounce,size:unref(On),"onUpdate:modelValue":unref(En),onChange:unref(vn)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],42,_hoisted_1$g)}}});var Slider=_export_sfc$1(_sfc_main$z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const ElSlider=withInstall(Slider),spaceItemProps=buildProps({prefixCls:{type:String}}),SpaceItem=defineComponent({name:"ElSpaceItem",props:spaceItemProps,setup($,{slots:oe}){const ae=useNamespace("space"),ie=computed(()=>`${$.prefixCls||ae.b()}__item`);return()=>h$3("div",{class:ie.value},renderSlot(oe,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace($){const oe=useNamespace("space"),ae=computed(()=>[oe.b(),oe.m($.direction),$.class]),ie=ref(0),le=ref(0),pe=computed(()=>{const Ce=$.wrap||$.fill?{flexWrap:"wrap",marginBottom:`-${le.value}px`}:{},$e={alignItems:$.alignment};return[Ce,$e,$.style]}),_e=computed(()=>{const Ce={paddingBottom:`${le.value}px`,marginRight:`${ie.value}px`},$e=$.fill?{flexGrow:1,minWidth:`${$.fillRatio}%`}:{};return[Ce,$e]});return watchEffect(()=>{const{size:Ce="small",wrap:$e,direction:xe,fill:Ie}=$;if(isArray$c(Ce)){const[Ne=0,Fe=0]=Ce;ie.value=Ne,le.value=Fe}else{let Ne;isNumber$5(Ce)?Ne=Ce:Ne=SIZE_MAP[Ce||"small"]||SIZE_MAP.small,($e||Ie)&&xe==="horizontal"?ie.value=le.value=Ne:xe==="horizontal"?(ie.value=Ne,le.value=0):(le.value=Ne,ie.value=0)}}),{classes:ae,containerStyle:pe,itemStyle:_e}}const spaceProps=buildProps({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},class:{type:definePropType([String,Object,Array]),default:""},style:{type:definePropType([String,Array,Object]),default:""},alignment:{type:definePropType(String),default:"center"},prefixCls:{type:String},spacer:{type:definePropType([Object,String,Number,Array]),default:null,validator:$=>isVNode$1($)||isNumber$5($)||isString$7($)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:$=>isNumber$5($)||isArray$c($)&&$.length===2&&$.every(isNumber$5)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup($,{slots:oe}){const{classes:ae,containerStyle:ie,itemStyle:le}=useSpace($);function pe(_e,Ce="",$e=[]){const{prefixCls:xe}=$;return _e.forEach((Ie,Ne)=>{isFragment(Ie)?isArray$c(Ie.children)&&Ie.children.forEach((Fe,ze)=>{isFragment(Fe)&&isArray$c(Fe.children)?pe(Fe.children,`${Ce+ze}-`,$e):$e.push(createVNode(SpaceItem,{style:le.value,prefixCls:xe,key:`nested-${Ce+ze}`},{default:()=>[Fe]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(Ie)&&$e.push(createVNode(SpaceItem,{style:le.value,prefixCls:xe,key:`LoopKey${Ce+Ne}`},{default:()=>[Ie]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),$e}return()=>{var _e;const{spacer:Ce,direction:$e}=$,xe=renderSlot(oe,"default",{key:0},()=>[]);if(((_e=xe.children)!=null?_e:[]).length===0)return null;if(isArray$c(xe.children)){let Ie=pe(xe.children);if(Ce){const Ne=Ie.length-1;Ie=Ie.reduce((Fe,ze,At)=>{const Lt=[...Fe,ze];return At!==Ne&&Lt.push(createVNode("span",{style:[le.value,$e==="vertical"?"width: 100%":null],key:At},[isVNode$1(Ce)?Ce:createTextVNode(Ce,PatchFlags.TEXT)],PatchFlags.STYLE)),Lt},[])}return createVNode("div",{class:ae.value,style:ie.value},Ie,PatchFlags.STYLE|PatchFlags.CLASS)}return xe.children}}}),ElSpace=withInstall(Space),statisticProps=buildProps({decimalSeparator:{type:String,default:"."},groupSeparator:{type:String,default:","},precision:{type:Number,default:0},formatter:Function,value:{type:definePropType([Number,Object]),default:0},prefix:String,suffix:String,title:String,valueStyle:{type:definePropType([String,Object,Array])}}),__default__$p=defineComponent({name:"ElStatistic"}),_sfc_main$y=defineComponent({...__default__$p,props:statisticProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("statistic"),le=computed(()=>{const{value:pe,formatter:_e,precision:Ce,decimalSeparator:$e,groupSeparator:xe}=ae;if(isFunction$5(_e))return _e(pe);if(!isNumber$5(pe))return pe;let[Ie,Ne=""]=String(pe).split(".");return Ne=Ne.padEnd(Ce,"0").slice(0,Ce>0?Ce:0),Ie=Ie.replace(/\B(?=(\d{3})+(?!\d))/g,xe),[Ie,Ne].join(Ne?$e:"")});return oe({displayValue:le}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie).b())},[pe.$slots.title||pe.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("head"))},[renderSlot(pe.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(pe.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content"))},[pe.$slots.prefix||pe.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("prefix"))},[renderSlot(pe.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString$1(pe.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(ie).e("number")),style:normalizeStyle$1(pe.valueStyle)},toDisplayString$1(unref(le)),7),pe.$slots.suffix||pe.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("suffix"))},[renderSlot(pe.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString$1(pe.suffix),1)])],2)):createCommentVNode("v-if",!0)],2)],2))}});var Statistic=_export_sfc$1(_sfc_main$y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/statistic/src/statistic.vue"]]);const ElStatistic=withInstall(Statistic),countdownProps=buildProps({format:{type:String,default:"HH:mm:ss"},prefix:String,suffix:String,title:String,value:{type:definePropType([Number,Object]),default:0},valueStyle:{type:definePropType([String,Object,Array])}}),countdownEmits={finish:()=>!0,[CHANGE_EVENT]:$=>isNumber$5($)},timeUnits$1=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]],getTime$1=$=>isNumber$5($)?new Date($).getTime():$.valueOf(),formatTime$2=($,oe)=>{let ae=$;const ie=/\[([^\]]*)]/g;return timeUnits$1.reduce((pe,[_e,Ce])=>{const $e=new RegExp(`${_e}+(?![^\\[\\]]*\\])`,"g");if($e.test(pe)){const xe=Math.floor(ae/Ce);return ae-=xe*Ce,pe.replace($e,Ie=>String(xe).padStart(Ie.length,"0"))}return pe},oe).replace(ie,"$1")},__default__$o=defineComponent({name:"ElCountdown"}),_sfc_main$x=defineComponent({...__default__$o,props:countdownProps,emits:countdownEmits,setup($,{expose:oe,emit:ae}){const ie=$;let le;const pe=ref(getTime$1(ie.value)-Date.now()),_e=computed(()=>formatTime$2(pe.value,ie.format)),Ce=Ie=>formatTime$2(Ie,ie.format),$e=()=>{le&&(cAF(le),le=void 0)},xe=()=>{const Ie=getTime$1(ie.value),Ne=()=>{let Fe=Ie-Date.now();ae("change",Fe),Fe<=0?(Fe=0,$e(),ae("finish")):le=rAF(Ne),pe.value=Fe};le=rAF(Ne)};return watch(()=>[ie.value,ie.format],()=>{$e(),xe()},{immediate:!0}),onBeforeUnmount(()=>{$e()}),oe({displayValue:_e}),(Ie,Ne)=>(openBlock(),createBlock(unref(ElStatistic),{value:pe.value,title:Ie.title,prefix:Ie.prefix,suffix:Ie.suffix,"value-style":Ie.valueStyle,formatter:Ce},createSlots({_:2},[renderList(Ie.$slots,(Fe,ze)=>({name:ze,fn:withCtx(()=>[renderSlot(Ie.$slots,ze)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Countdown=_export_sfc$1(_sfc_main$x,[["__file","/home/runner/work/element-plus/element-plus/packages/components/countdown/src/countdown.vue"]]);const ElCountdown=withInstall(Countdown),stepsProps=buildProps({space:{type:[Number,String],default:""},active:{type:Number,default:0},direction:{type:String,default:"horizontal",values:["horizontal","vertical"]},alignCenter:{type:Boolean},simple:{type:Boolean},finishStatus:{type:String,values:["wait","process","finish","error","success"],default:"finish"},processStatus:{type:String,values:["wait","process","finish","error","success"],default:"process"}}),stepsEmits={[CHANGE_EVENT]:($,oe)=>[$,oe].every(isNumber$5)},__default__$n=defineComponent({name:"ElSteps"}),_sfc_main$w=defineComponent({...__default__$n,props:stepsProps,emits:stepsEmits,setup($,{emit:oe}){const ae=$,ie=useNamespace("steps"),le=ref([]);return watch(le,()=>{le.value.forEach((pe,_e)=>{pe.setIndex(_e)})}),provide("ElSteps",{props:ae,steps:le}),watch(()=>ae.active,(pe,_e)=>{oe(CHANGE_EVENT,pe,_e)}),(pe,_e)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(pe.simple?"simple":pe.direction)])},[renderSlot(pe.$slots,"default")],2))}});var Steps=_export_sfc$1(_sfc_main$w,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/steps.vue"]]);const stepProps=buildProps({title:{type:String,default:""},icon:{type:iconPropType},description:{type:String,default:""},status:{type:String,values:["","wait","process","finish","error","success"],default:""}}),__default__$m=defineComponent({name:"ElStep"}),_sfc_main$v=defineComponent({...__default__$m,props:stepProps,setup($){const oe=$,ae=useNamespace("step"),ie=ref(-1),le=ref({}),pe=ref(""),_e=inject("ElSteps"),Ce=getCurrentInstance();onMounted(()=>{watch([()=>_e.props.active,()=>_e.props.processStatus,()=>_e.props.finishStatus],([En])=>{bn(En)},{immediate:!0})}),onBeforeUnmount(()=>{_e.steps.value=_e.steps.value.filter(En=>En.uid!==(Ce==null?void 0:Ce.uid))});const $e=computed(()=>oe.status||pe.value),xe=computed(()=>{const En=_e.steps.value[ie.value-1];return En?En.currentStatus:"wait"}),Ie=computed(()=>_e.props.alignCenter),Ne=computed(()=>_e.props.direction==="vertical"),Fe=computed(()=>_e.props.simple),ze=computed(()=>_e.steps.value.length),At=computed(()=>{var En;return((En=_e.steps.value[ze.value-1])==null?void 0:En.uid)===(Ce==null?void 0:Ce.uid)}),Lt=computed(()=>Fe.value?"":_e.props.space),hn=computed(()=>{const En={flexBasis:isNumber$5(Lt.value)?`${Lt.value}px`:Lt.value?Lt.value:`${100/(ze.value-(Ie.value?0:1))}%`};return Ne.value||At.value&&(En.maxWidth=`${100/ze.value}%`),En}),vn=En=>{ie.value=En},_n=En=>{const $n=En==="wait",wn={transitionDelay:`${$n?"-":""}${150*ie.value}ms`},Tn=En===_e.props.processStatus||$n?0:100;wn.borderWidth=Tn&&!Fe.value?"1px":0,wn[_e.props.direction==="vertical"?"height":"width"]=`${Tn}%`,le.value=wn},bn=En=>{En>ie.value?pe.value=_e.props.finishStatus:En===ie.value&&xe.value!=="error"?pe.value=_e.props.processStatus:pe.value="wait";const $n=_e.steps.value[ie.value-1];$n&&$n.calcProgress(pe.value)},Cn=reactive({uid:computed(()=>Ce==null?void 0:Ce.uid),currentStatus:$e,setIndex:vn,calcProgress:_n});return _e.steps.value=[..._e.steps.value,Cn],(En,$n)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(unref(hn)),class:normalizeClass([unref(ae).b(),unref(ae).is(unref(Fe)?"simple":unref(_e).props.direction),unref(ae).is("flex",unref(At)&&!unref(Lt)&&!unref(Ie)),unref(ae).is("center",unref(Ie)&&!unref(Ne)&&!unref(Fe))])},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref(ae).e("head"),unref(ae).is(unref($e))])},[unref(Fe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref(ae).e("line-inner")),style:normalizeStyle$1(le.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref(ae).e("icon"),unref(ae).is(En.icon||En.$slots.icon?"icon":"text")])},[renderSlot(En.$slots,"icon",{},()=>[En.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ae).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.icon)))]),_:1},8,["class"])):unref($e)==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(ae).e("icon-inner"),unref(ae).is("status")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):unref($e)==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(ae).e("icon-inner"),unref(ae).is("status")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):unref(Fe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref(ae).e("icon-inner"))},toDisplayString$1(ie.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref(ae).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref(ae).e("title"),unref(ae).is(unref($e))])},[renderSlot(En.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(En.title),1)])],2),unref(Fe)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ae).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(ae).e("description"),unref(ae).is(unref($e))])},[renderSlot(En.$slots,"description",{},()=>[createTextVNode(toDisplayString$1(En.description),1)])],2))],2)],6))}});var Step=_export_sfc$1(_sfc_main$v,[["__file","/home/runner/work/element-plus/element-plus/packages/components/steps/src/item.vue"]]);const ElSteps=withInstall(Steps,{Step}),ElStep=withNoopInstall(Step),switchProps=buildProps({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:iconPropType},inactiveIcon:{type:iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:definePropType(Function)},size:{type:String,validator:isValidComponentSize},tabindex:{type:[String,Number]}}),switchEmits={[UPDATE_MODEL_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[CHANGE_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($),[INPUT_EVENT]:$=>isBoolean$3($)||isString$7($)||isNumber$5($)},_hoisted_1$f=["onClick"],_hoisted_2$a=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],_hoisted_3$5=["aria-hidden"],_hoisted_4$3=["aria-hidden"],_hoisted_5$1=["aria-hidden"],COMPONENT_NAME$8="ElSwitch",__default__$l=defineComponent({name:COMPONENT_NAME$8}),_sfc_main$u=defineComponent({...__default__$l,props:switchProps,emits:switchEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=getCurrentInstance(),{formItem:pe}=useFormItem(),_e=useFormSize(),Ce=useNamespace("switch");useDeprecated({from:'"value"',replacement:'"model-value" or "v-model"',scope:COMPONENT_NAME$8,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},computed(()=>{var En;return!!((En=le.vnode.props)!=null&&En.value)}));const{inputId:$e}=useFormItemInputId(ie,{formItemContext:pe}),xe=useFormDisabled(computed(()=>ie.loading)),Ie=ref(ie.modelValue!==!1),Ne=ref(),Fe=ref(),ze=computed(()=>[Ce.b(),Ce.m(_e.value),Ce.is("disabled",xe.value),Ce.is("checked",hn.value)]),At=computed(()=>({width:addUnit(ie.width)}));watch(()=>ie.modelValue,()=>{Ie.value=!0}),watch(()=>ie.value,()=>{Ie.value=!1});const Lt=computed(()=>Ie.value?ie.modelValue:ie.value),hn=computed(()=>Lt.value===ie.activeValue);[ie.activeValue,ie.inactiveValue].includes(Lt.value)||(ae(UPDATE_MODEL_EVENT,ie.inactiveValue),ae(CHANGE_EVENT,ie.inactiveValue),ae(INPUT_EVENT,ie.inactiveValue)),watch(hn,En=>{var $n;Ne.value.checked=En,ie.validateEvent&&(($n=pe==null?void 0:pe.validate)==null||$n.call(pe,"change").catch(wn=>void 0))});const vn=()=>{const En=hn.value?ie.inactiveValue:ie.activeValue;ae(UPDATE_MODEL_EVENT,En),ae(CHANGE_EVENT,En),ae(INPUT_EVENT,En),nextTick(()=>{Ne.value.checked=hn.value})},_n=()=>{if(xe.value)return;const{beforeChange:En}=ie;if(!En){vn();return}const $n=En();[isPromise($n),isBoolean$3($n)].includes(!0)||throwError$1(COMPONENT_NAME$8,"beforeChange must return type `Promise<boolean>` or `boolean`"),isPromise($n)?$n.then(Tn=>{Tn&&vn()}).catch(Tn=>{}):$n&&vn()},bn=computed(()=>Ce.cssVarBlock({...ie.activeColor?{"on-color":ie.activeColor}:null,...ie.inactiveColor?{"off-color":ie.inactiveColor}:null,...ie.borderColor?{"border-color":ie.borderColor}:null})),Cn=()=>{var En,$n;($n=(En=Ne.value)==null?void 0:En.focus)==null||$n.call(En)};return onMounted(()=>{Ne.value.checked=hn.value}),oe({focus:Cn,checked:hn}),(En,$n)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ze)),style:normalizeStyle$1(unref(bn)),onClick:withModifiers(_n,["prevent"])},[createBaseVNode("input",{id:unref($e),ref_key:"input",ref:Ne,class:normalizeClass(unref(Ce).e("input")),type:"checkbox",role:"switch","aria-checked":unref(hn),"aria-disabled":unref(xe),name:En.name,"true-value":En.activeValue,"false-value":En.inactiveValue,disabled:unref(xe),tabindex:En.tabindex,onChange:vn,onKeydown:withKeys(_n,["enter"])},null,42,_hoisted_2$a),!En.inlinePrompt&&(En.inactiveIcon||En.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(Ce).e("label"),unref(Ce).em("label","left"),unref(Ce).is("active",!unref(hn))])},[En.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.inactiveIcon)))]),_:1})):createCommentVNode("v-if",!0),!En.inactiveIcon&&En.inactiveText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":unref(hn)},toDisplayString$1(En.inactiveText),9,_hoisted_3$5)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref_key:"core",ref:Fe,class:normalizeClass(unref(Ce).e("core")),style:normalizeStyle$1(unref(At))},[En.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ce).e("inner"))},[En.activeIcon||En.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce).is("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(hn)?En.activeIcon:En.inactiveIcon)))]),_:1},8,["class"])):En.activeText||En.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Ce).is("text")),"aria-hidden":!unref(hn)},toDisplayString$1(unref(hn)?En.activeText:En.inactiveText),11,_hoisted_4$3)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ce).e("action"))},[En.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Ce).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],6),!En.inlinePrompt&&(En.activeIcon||En.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass([unref(Ce).e("label"),unref(Ce).em("label","right"),unref(Ce).is("active",unref(hn))])},[En.activeIcon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.activeIcon)))]),_:1})):createCommentVNode("v-if",!0),!En.activeIcon&&En.activeText?(openBlock(),createElementBlock("span",{key:1,"aria-hidden":!unref(hn)},toDisplayString$1(En.activeText),9,_hoisted_5$1)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$f))}});var Switch=_export_sfc$1(_sfc_main$u,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const ElSwitch=withInstall(Switch);/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var matchHtmlRegExp=/["'&<>]/,escapeHtml_1=escapeHtml$1;function escapeHtml$1($){var oe=""+$,ae=matchHtmlRegExp.exec(oe);if(!ae)return oe;var ie,le="",pe=0,_e=0;for(pe=ae.index;pe<oe.length;pe++){switch(oe.charCodeAt(pe)){case 34:ie="&quot;";break;case 38:ie="&amp;";break;case 39:ie="&#39;";break;case 60:ie="&lt;";break;case 62:ie="&gt;";break;default:continue}_e!==pe&&(le+=oe.substring(_e,pe)),_e=pe+1,le+=ie}return _e!==pe?le+oe.substring(_e,pe):le}const escapeHtml$2=getDefaultExportFromCjs(escapeHtml_1),getCell=function($){var oe;return(oe=$.target)==null?void 0:oe.closest("td")},orderBy=function($,oe,ae,ie,le){if(!oe&&!ie&&(!le||Array.isArray(le)&&!le.length))return $;typeof ae=="string"?ae=ae==="descending"?-1:1:ae=ae&&ae<0?-1:1;const pe=ie?null:function(Ce,$e){return le?(Array.isArray(le)||(le=[le]),le.map(xe=>typeof xe=="string"?get$1(Ce,xe):xe(Ce,$e,$))):(oe!=="$key"&&isObject$8(Ce)&&"$value"in Ce&&(Ce=Ce.$value),[isObject$8(Ce)?get$1(Ce,oe):Ce])},_e=function(Ce,$e){if(ie)return ie(Ce.value,$e.value);for(let xe=0,Ie=Ce.key.length;xe<Ie;xe++){if(Ce.key[xe]<$e.key[xe])return-1;if(Ce.key[xe]>$e.key[xe])return 1}return 0};return $.map((Ce,$e)=>({value:Ce,index:$e,key:pe?pe(Ce,$e):null})).sort((Ce,$e)=>{let xe=_e(Ce,$e);return xe||(xe=Ce.index-$e.index),xe*+ae}).map(Ce=>Ce.value)},getColumnById=function($,oe){let ae=null;return $.columns.forEach(ie=>{ie.id===oe&&(ae=ie)}),ae},getColumnByKey=function($,oe){let ae=null;for(let ie=0;ie<$.columns.length;ie++){const le=$.columns[ie];if(le.columnKey===oe){ae=le;break}}return ae||throwError$1("ElTable",`No column matching with column-key: ${oe}`),ae},getColumnByCell=function($,oe,ae){const ie=(oe.className||"").match(new RegExp(`${ae}-table_[^\\s]+`,"gm"));return ie?getColumnById($,ie[0]):null},getRowIdentity=($,oe)=>{if(!$)throw new Error("Row is required when get row identity");if(typeof oe=="string"){if(!oe.includes("."))return`${$[oe]}`;const ae=oe.split(".");let ie=$;for(const le of ae)ie=ie[le];return`${ie}`}else if(typeof oe=="function")return oe.call(null,$)},getKeysMap=function($,oe){const ae={};return($||[]).forEach((ie,le)=>{ae[getRowIdentity(ie,oe)]={row:ie,index:le}}),ae};function mergeOptions$1($,oe){const ae={};let ie;for(ie in $)ae[ie]=$[ie];for(ie in oe)if(hasOwn$4(oe,ie)){const le=oe[ie];typeof le<"u"&&(ae[ie]=le)}return ae}function parseWidth($){return $===""||$!==void 0&&($=Number.parseInt($,10),Number.isNaN($)&&($="")),$}function parseMinWidth($){return $===""||$!==void 0&&($=parseWidth($),Number.isNaN($)&&($=80)),$}function parseHeight($){return typeof $=="number"?$:typeof $=="string"?/^\d+(?:px)?$/.test($)?Number.parseInt($,10):$:null}function compose(...$){return $.length===0?oe=>oe:$.length===1?$[0]:$.reduce((oe,ae)=>(...ie)=>oe(ae(...ie)))}function toggleRowStatus($,oe,ae){let ie=!1;const le=$.indexOf(oe),pe=le!==-1,_e=Ce=>{Ce==="add"?$.push(oe):$.splice(le,1),ie=!0,isArray$c(oe.children)&&oe.children.forEach($e=>{toggleRowStatus($,$e,ae??!pe)})};return isBoolean$3(ae)?ae&&!pe?_e("add"):!ae&&pe&&_e("remove"):_e(pe?"remove":"add"),ie}function walkTreeNode($,oe,ae="children",ie="hasChildren"){const le=_e=>!(Array.isArray(_e)&&_e.length);function pe(_e,Ce,$e){oe(_e,Ce,$e),Ce.forEach(xe=>{if(xe[ie]){oe(xe,null,$e+1);return}const Ie=xe[ae];le(Ie)||pe(xe,Ie,$e+1)})}$.forEach(_e=>{if(_e[ie]){oe(_e,null,0);return}const Ce=_e[ae];le(Ce)||pe(_e,Ce,0)})}let removePopper;function createTablePopper($,oe,ae,ie,le){le=merge$4({enterable:!0,showArrow:!0},le);const pe=$==null?void 0:$.dataset.prefix,_e=$==null?void 0:$.querySelector(`.${pe}-scrollbar__wrap`);function Ce(){const hn=le.effect==="light",vn=document.createElement("div");return vn.className=[`${pe}-popper`,hn?"is-light":"is-dark",le.popperClass||""].join(" "),ae=escapeHtml$2(ae),vn.innerHTML=ae,vn.style.zIndex=String(ie()),$==null||$.appendChild(vn),vn}function $e(){const hn=document.createElement("div");return hn.className=`${pe}-popper__arrow`,hn}function xe(){Ie&&Ie.update()}removePopper==null||removePopper(),removePopper=()=>{try{Ie&&Ie.destroy(),ze&&($==null||$.removeChild(ze)),oe.removeEventListener("mouseenter",Ne),oe.removeEventListener("mouseleave",Fe),_e==null||_e.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let Ie=null,Ne=xe,Fe=removePopper;le.enterable&&({onOpen:Ne,onClose:Fe}=useDelayedToggle({showAfter:le.showAfter,hideAfter:le.hideAfter,open:xe,close:removePopper}));const ze=Ce();ze.onmouseenter=Ne,ze.onmouseleave=Fe;const At=[];if(le.offset&&At.push({name:"offset",options:{offset:[0,le.offset]}}),le.showArrow){const hn=ze.appendChild($e());At.push({name:"arrow",options:{element:hn,padding:10}})}const Lt=le.popperOptions||{};return Ie=yn(oe,ze,{placement:le.placement||"top",strategy:"fixed",...Lt,modifiers:Lt.modifiers?At.concat(Lt.modifiers):At}),oe.addEventListener("mouseenter",Ne),oe.addEventListener("mouseleave",Fe),_e==null||_e.addEventListener("scroll",removePopper),Ie}function getCurrentColumns($){return $.children?flatMap($.children,getCurrentColumns):[$]}function getColSpan($,oe){return $+oe.colSpan}const isFixedColumn=($,oe,ae,ie)=>{let le=0,pe=$;const _e=ae.states.columns.value;if(ie){const $e=getCurrentColumns(ie[$]);le=_e.slice(0,_e.indexOf($e[0])).reduce(getColSpan,0),pe=le+$e.reduce(getColSpan,0)-1}else le=$;let Ce;switch(oe){case"left":pe<ae.states.fixedLeafColumnsLength.value&&(Ce="left");break;case"right":le>=_e.length-ae.states.rightFixedLeafColumnsLength.value&&(Ce="right");break;default:pe<ae.states.fixedLeafColumnsLength.value?Ce="left":le>=_e.length-ae.states.rightFixedLeafColumnsLength.value&&(Ce="right")}return Ce?{direction:Ce,start:le,after:pe}:{}},getFixedColumnsClass=($,oe,ae,ie,le,pe=0)=>{const _e=[],{direction:Ce,start:$e,after:xe}=isFixedColumn(oe,ae,ie,le);if(Ce){const Ie=Ce==="left";_e.push(`${$}-fixed-column--${Ce}`),Ie&&xe+pe===ie.states.fixedLeafColumnsLength.value-1?_e.push("is-last-column"):!Ie&&$e-pe===ie.states.columns.value.length-ie.states.rightFixedLeafColumnsLength.value&&_e.push("is-first-column")}return _e};function getOffset($,oe){return $+(oe.realWidth===null||Number.isNaN(oe.realWidth)?Number(oe.width):oe.realWidth)}const getFixedColumnOffset=($,oe,ae,ie)=>{const{direction:le,start:pe=0,after:_e=0}=isFixedColumn($,oe,ae,ie);if(!le)return;const Ce={},$e=le==="left",xe=ae.states.columns.value;return $e?Ce.left=xe.slice(0,pe).reduce(getOffset,0):Ce.right=xe.slice(_e+1).reverse().reduce(getOffset,0),Ce},ensurePosition=($,oe)=>{$&&(Number.isNaN($[oe])||($[oe]=`${$[oe]}px`))};function useExpand($){const oe=getCurrentInstance(),ae=ref(!1),ie=ref([]);return{updateExpandRows:()=>{const $e=$.data.value||[],xe=$.rowKey.value;if(ae.value)ie.value=$e.slice();else if(xe){const Ie=getKeysMap(ie.value,xe);ie.value=$e.reduce((Ne,Fe)=>{const ze=getRowIdentity(Fe,xe);return Ie[ze]&&Ne.push(Fe),Ne},[])}else ie.value=[]},toggleRowExpansion:($e,xe)=>{toggleRowStatus(ie.value,$e,xe)&&oe.emit("expand-change",$e,ie.value.slice())},setExpandRowKeys:$e=>{oe.store.assertRowKey();const xe=$.data.value||[],Ie=$.rowKey.value,Ne=getKeysMap(xe,Ie);ie.value=$e.reduce((Fe,ze)=>{const At=Ne[ze];return At&&Fe.push(At.row),Fe},[])},isRowExpanded:$e=>{const xe=$.rowKey.value;return xe?!!getKeysMap(ie.value,xe)[getRowIdentity($e,xe)]:ie.value.includes($e)},states:{expandRows:ie,defaultExpandAll:ae}}}function useCurrent($){const oe=getCurrentInstance(),ae=ref(null),ie=ref(null),le=xe=>{oe.store.assertRowKey(),ae.value=xe,_e(xe)},pe=()=>{ae.value=null},_e=xe=>{const{data:Ie,rowKey:Ne}=$;let Fe=null;Ne.value&&(Fe=(unref(Ie)||[]).find(ze=>getRowIdentity(ze,Ne.value)===xe)),ie.value=Fe,oe.emit("current-change",ie.value,null)};return{setCurrentRowKey:le,restoreCurrentRowKey:pe,setCurrentRowByKey:_e,updateCurrentRow:xe=>{const Ie=ie.value;if(xe&&xe!==Ie){ie.value=xe,oe.emit("current-change",ie.value,Ie);return}!xe&&Ie&&(ie.value=null,oe.emit("current-change",null,Ie))},updateCurrentRowData:()=>{const xe=$.rowKey.value,Ie=$.data.value||[],Ne=ie.value;if(!Ie.includes(Ne)&&Ne){if(xe){const Fe=getRowIdentity(Ne,xe);_e(Fe)}else ie.value=null;ie.value===null&&oe.emit("current-change",null,Ne)}else ae.value&&(_e(ae.value),pe())},states:{_currentRowKey:ae,currentRow:ie}}}function useTree$2($){const oe=ref([]),ae=ref({}),ie=ref(16),le=ref(!1),pe=ref({}),_e=ref("hasChildren"),Ce=ref("children"),$e=getCurrentInstance(),xe=computed(()=>{if(!$.rowKey.value)return{};const vn=$.data.value||[];return Ne(vn)}),Ie=computed(()=>{const vn=$.rowKey.value,_n=Object.keys(pe.value),bn={};return _n.length&&_n.forEach(Cn=>{if(pe.value[Cn].length){const En={children:[]};pe.value[Cn].forEach($n=>{const wn=getRowIdentity($n,vn);En.children.push(wn),$n[_e.value]&&!bn[wn]&&(bn[wn]={children:[]})}),bn[Cn]=En}}),bn}),Ne=vn=>{const _n=$.rowKey.value,bn={};return walkTreeNode(vn,(Cn,En,$n)=>{const wn=getRowIdentity(Cn,_n);Array.isArray(En)?bn[wn]={children:En.map(Tn=>getRowIdentity(Tn,_n)),level:$n}:le.value&&(bn[wn]={children:[],lazy:!0,level:$n})},Ce.value,_e.value),bn},Fe=(vn=!1,_n=(bn=>(bn=$e.store)==null?void 0:bn.states.defaultExpandAll.value)())=>{var bn;const Cn=xe.value,En=Ie.value,$n=Object.keys(Cn),wn={};if($n.length){const Tn=unref(ae),xn=[],kn=(On,Nn)=>{if(vn)return oe.value?_n||oe.value.includes(Nn):!!(_n||On!=null&&On.expanded);{const Rn=_n||oe.value&&oe.value.includes(Nn);return!!(On!=null&&On.expanded||Rn)}};$n.forEach(On=>{const Nn=Tn[On],Rn={...Cn[On]};if(Rn.expanded=kn(Nn,On),Rn.lazy){const{loaded:zn=!1,loading:Bn=!1}=Nn||{};Rn.loaded=!!zn,Rn.loading=!!Bn,xn.push(On)}wn[On]=Rn});const An=Object.keys(En);le.value&&An.length&&xn.length&&An.forEach(On=>{const Nn=Tn[On],Rn=En[On].children;if(xn.includes(On)){if(wn[On].children.length!==0)throw new Error("[ElTable]children must be an empty array.");wn[On].children=Rn}else{const{loaded:zn=!1,loading:Bn=!1}=Nn||{};wn[On]={lazy:!0,loaded:!!zn,loading:!!Bn,expanded:kn(Nn,On),children:Rn,level:""}}})}ae.value=wn,(bn=$e.store)==null||bn.updateTableScrollY()};watch(()=>oe.value,()=>{Fe(!0)}),watch(()=>xe.value,()=>{Fe()}),watch(()=>Ie.value,()=>{Fe()});const ze=vn=>{oe.value=vn,Fe()},At=(vn,_n)=>{$e.store.assertRowKey();const bn=$.rowKey.value,Cn=getRowIdentity(vn,bn),En=Cn&&ae.value[Cn];if(Cn&&En&&"expanded"in En){const $n=En.expanded;_n=typeof _n>"u"?!En.expanded:_n,ae.value[Cn].expanded=_n,$n!==_n&&$e.emit("expand-change",vn,_n),$e.store.updateTableScrollY()}},Lt=vn=>{$e.store.assertRowKey();const _n=$.rowKey.value,bn=getRowIdentity(vn,_n),Cn=ae.value[bn];le.value&&Cn&&"loaded"in Cn&&!Cn.loaded?hn(vn,bn,Cn):At(vn,void 0)},hn=(vn,_n,bn)=>{const{load:Cn}=$e.props;Cn&&!ae.value[_n].loaded&&(ae.value[_n].loading=!0,Cn(vn,bn,En=>{if(!Array.isArray(En))throw new TypeError("[ElTable] data must be an array");ae.value[_n].loading=!1,ae.value[_n].loaded=!0,ae.value[_n].expanded=!0,En.length&&(pe.value[_n]=En),$e.emit("expand-change",vn,!0)}))};return{loadData:hn,loadOrToggle:Lt,toggleTreeExpansion:At,updateTreeExpandKeys:ze,updateTreeData:Fe,normalize:Ne,states:{expandRowKeys:oe,treeData:ae,indent:ie,lazy:le,lazyTreeNodeMap:pe,lazyColumnIdentifier:_e,childrenColumnName:Ce}}}const sortData=($,oe)=>{const ae=oe.sortingColumn;return!ae||typeof ae.sortable=="string"?$:orderBy($,oe.sortProp,oe.sortOrder,ae.sortMethod,ae.sortBy)},doFlattenColumns=$=>{const oe=[];return $.forEach(ae=>{ae.children?oe.push.apply(oe,doFlattenColumns(ae.children)):oe.push(ae)}),oe};function useWatcher$1(){var $;const oe=getCurrentInstance(),{size:ae}=toRefs(($=oe.proxy)==null?void 0:$.$props),ie=ref(null),le=ref([]),pe=ref([]),_e=ref(!1),Ce=ref([]),$e=ref([]),xe=ref([]),Ie=ref([]),Ne=ref([]),Fe=ref([]),ze=ref([]),At=ref([]),Lt=[],hn=ref(0),vn=ref(0),_n=ref(0),bn=ref(!1),Cn=ref([]),En=ref(!1),$n=ref(!1),wn=ref(null),Tn=ref({}),xn=ref(null),kn=ref(null),An=ref(null),On=ref(null),Nn=ref(null);watch(le,()=>oe.state&&Mn(!1),{deep:!0});const Rn=()=>{if(!ie.value)throw new Error("[ElTable] prop row-key is required")},zn=Tr=>{var dr;(dr=Tr.children)==null||dr.forEach(Jn=>{Jn.fixed=Tr.fixed,zn(Jn)})},Bn=()=>{Ce.value.forEach(xr=>{zn(xr)}),Ie.value=Ce.value.filter(xr=>xr.fixed===!0||xr.fixed==="left"),Ne.value=Ce.value.filter(xr=>xr.fixed==="right"),Ie.value.length>0&&Ce.value[0]&&Ce.value[0].type==="selection"&&!Ce.value[0].fixed&&(Ce.value[0].fixed=!0,Ie.value.unshift(Ce.value[0]));const Tr=Ce.value.filter(xr=>!xr.fixed);$e.value=[].concat(Ie.value).concat(Tr).concat(Ne.value);const dr=doFlattenColumns(Tr),Jn=doFlattenColumns(Ie.value),ir=doFlattenColumns(Ne.value);hn.value=dr.length,vn.value=Jn.length,_n.value=ir.length,xe.value=[].concat(Jn).concat(dr).concat(ir),_e.value=Ie.value.length>0||Ne.value.length>0},Mn=(Tr,dr=!1)=>{Tr&&Bn(),dr?oe.state.doLayout():oe.state.debouncedUpdateLayout()},Fn=Tr=>Cn.value.includes(Tr),Vn=()=>{bn.value=!1,Cn.value.length&&(Cn.value=[],oe.emit("selection-change",[]))},jn=()=>{let Tr;if(ie.value){Tr=[];const dr=getKeysMap(Cn.value,ie.value),Jn=getKeysMap(le.value,ie.value);for(const ir in dr)hasOwn$4(dr,ir)&&!Jn[ir]&&Tr.push(dr[ir].row)}else Tr=Cn.value.filter(dr=>!le.value.includes(dr));if(Tr.length){const dr=Cn.value.filter(Jn=>!Tr.includes(Jn));Cn.value=dr,oe.emit("selection-change",dr.slice())}},Zn=()=>(Cn.value||[]).slice(),Gn=(Tr,dr=void 0,Jn=!0)=>{if(toggleRowStatus(Cn.value,Tr,dr)){const xr=(Cn.value||[]).slice();Jn&&oe.emit("select",xr,Tr),oe.emit("selection-change",xr)}},Xn=()=>{var Tr,dr;const Jn=$n.value?!bn.value:!(bn.value||Cn.value.length);bn.value=Jn;let ir=!1,xr=0;const Ir=(dr=(Tr=oe==null?void 0:oe.store)==null?void 0:Tr.states)==null?void 0:dr.rowKey.value;le.value.forEach((Hr,Cr)=>{const Mr=Cr+xr;wn.value?wn.value.call(null,Hr,Mr)&&toggleRowStatus(Cn.value,Hr,Jn)&&(ir=!0):toggleRowStatus(Cn.value,Hr,Jn)&&(ir=!0),xr+=er(getRowIdentity(Hr,Ir))}),ir&&oe.emit("selection-change",Cn.value?Cn.value.slice():[]),oe.emit("select-all",Cn.value)},cr=()=>{const Tr=getKeysMap(Cn.value,ie.value);le.value.forEach(dr=>{const Jn=getRowIdentity(dr,ie.value),ir=Tr[Jn];ir&&(Cn.value[ir.index]=dr)})},nr=()=>{var Tr,dr,Jn;if(((Tr=le.value)==null?void 0:Tr.length)===0){bn.value=!1;return}let ir;ie.value&&(ir=getKeysMap(Cn.value,ie.value));const xr=function(Mr){return ir?!!ir[getRowIdentity(Mr,ie.value)]:Cn.value.includes(Mr)};let Ir=!0,Hr=0,Cr=0;for(let Mr=0,Ur=(le.value||[]).length;Mr<Ur;Mr++){const jr=(Jn=(dr=oe==null?void 0:oe.store)==null?void 0:dr.states)==null?void 0:Jn.rowKey.value,Wr=Mr+Cr,Xr=le.value[Mr],Qr=wn.value&&wn.value.call(null,Xr,Wr);if(xr(Xr))Hr++;else if(!wn.value||Qr){Ir=!1;break}Cr+=er(getRowIdentity(Xr,jr))}Hr===0&&(Ir=!1),bn.value=Ir},er=Tr=>{var dr;if(!oe||!oe.store)return 0;const{treeData:Jn}=oe.store.states;let ir=0;const xr=(dr=Jn.value[Tr])==null?void 0:dr.children;return xr&&(ir+=xr.length,xr.forEach(Ir=>{ir+=er(Ir)})),ir},rr=(Tr,dr)=>{Array.isArray(Tr)||(Tr=[Tr]);const Jn={};return Tr.forEach(ir=>{Tn.value[ir.id]=dr,Jn[ir.columnKey||ir.id]=dr}),Jn},qn=(Tr,dr,Jn)=>{kn.value&&kn.value!==Tr&&(kn.value.order=null),kn.value=Tr,An.value=dr,On.value=Jn},Yn=()=>{let Tr=unref(pe);Object.keys(Tn.value).forEach(dr=>{const Jn=Tn.value[dr];if(!Jn||Jn.length===0)return;const ir=getColumnById({columns:xe.value},dr);ir&&ir.filterMethod&&(Tr=Tr.filter(xr=>Jn.some(Ir=>ir.filterMethod.call(null,Ir,xr,ir))))}),xn.value=Tr},ar=()=>{le.value=sortData(xn.value,{sortingColumn:kn.value,sortProp:An.value,sortOrder:On.value})},pr=(Tr=void 0)=>{Tr&&Tr.filter||Yn(),ar()},Un=Tr=>{const{tableHeaderRef:dr}=oe.refs;if(!dr)return;const Jn=Object.assign({},dr.filterPanels),ir=Object.keys(Jn);if(ir.length)if(typeof Tr=="string"&&(Tr=[Tr]),Array.isArray(Tr)){const xr=Tr.map(Ir=>getColumnByKey({columns:xe.value},Ir));ir.forEach(Ir=>{const Hr=xr.find(Cr=>Cr.id===Ir);Hr&&(Hr.filteredValue=[])}),oe.store.commit("filterChange",{column:xr,values:[],silent:!0,multi:!0})}else ir.forEach(xr=>{const Ir=xe.value.find(Hr=>Hr.id===xr);Ir&&(Ir.filteredValue=[])}),Tn.value={},oe.store.commit("filterChange",{column:{},values:[],silent:!0})},tr=()=>{kn.value&&(qn(null,null,null),oe.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:ur,toggleRowExpansion:_r,updateExpandRows:Er,states:sr,isRowExpanded:Pr}=useExpand({data:le,rowKey:ie}),{updateTreeExpandKeys:Sr,toggleTreeExpansion:kr,updateTreeData:mr,loadOrToggle:lr,states:hr}=useTree$2({data:le,rowKey:ie}),{updateCurrentRowData:gr,updateCurrentRow:Or,setCurrentRowKey:Lr,states:Vr}=useCurrent({data:le,rowKey:ie});return{assertRowKey:Rn,updateColumns:Bn,scheduleLayout:Mn,isSelected:Fn,clearSelection:Vn,cleanSelection:jn,getSelectionRows:Zn,toggleRowSelection:Gn,_toggleAllSelection:Xn,toggleAllSelection:null,updateSelectionByRowKey:cr,updateAllSelected:nr,updateFilters:rr,updateCurrentRow:Or,updateSort:qn,execFilter:Yn,execSort:ar,execQuery:pr,clearFilter:Un,clearSort:tr,toggleRowExpansion:_r,setExpandRowKeysAdapter:Tr=>{ur(Tr),Sr(Tr)},setCurrentRowKey:Lr,toggleRowExpansionAdapter:(Tr,dr)=>{xe.value.some(({type:ir})=>ir==="expand")?_r(Tr,dr):kr(Tr,dr)},isRowExpanded:Pr,updateExpandRows:Er,updateCurrentRowData:gr,loadOrToggle:lr,updateTreeData:mr,states:{tableSize:ae,rowKey:ie,data:le,_data:pe,isComplex:_e,_columns:Ce,originColumns:$e,columns:xe,fixedColumns:Ie,rightFixedColumns:Ne,leafColumns:Fe,fixedLeafColumns:ze,rightFixedLeafColumns:At,updateOrderFns:Lt,leafColumnsLength:hn,fixedLeafColumnsLength:vn,rightFixedLeafColumnsLength:_n,isAllSelected:bn,selection:Cn,reserveSelection:En,selectOnIndeterminate:$n,selectable:wn,filters:Tn,filteredData:xn,sortingColumn:kn,sortProp:An,sortOrder:On,hoverRow:Nn,...sr,...hr,...Vr}}}function replaceColumn($,oe){return $.map(ae=>{var ie;return ae.id===oe.id?oe:((ie=ae.children)!=null&&ie.length&&(ae.children=replaceColumn(ae.children,oe)),ae)})}function sortColumn($){$.forEach(oe=>{var ae,ie;oe.no=(ae=oe.getColumnIndex)==null?void 0:ae.call(oe),(ie=oe.children)!=null&&ie.length&&sortColumn(oe.children)}),$.sort((oe,ae)=>oe.no-ae.no)}function useStore(){const $=getCurrentInstance(),oe=useWatcher$1();return{ns:useNamespace("table"),...oe,mutations:{setData(_e,Ce){const $e=unref(_e._data)!==Ce;_e.data.value=Ce,_e._data.value=Ce,$.store.execQuery(),$.store.updateCurrentRowData(),$.store.updateExpandRows(),$.store.updateTreeData($.store.states.defaultExpandAll.value),unref(_e.reserveSelection)?($.store.assertRowKey(),$.store.updateSelectionByRowKey()):$e?$.store.clearSelection():$.store.cleanSelection(),$.store.updateAllSelected(),$.$ready&&$.store.scheduleLayout()},insertColumn(_e,Ce,$e,xe){const Ie=unref(_e._columns);let Ne=[];$e?($e&&!$e.children&&($e.children=[]),$e.children.push(Ce),Ne=replaceColumn(Ie,$e)):(Ie.push(Ce),Ne=Ie),sortColumn(Ne),_e._columns.value=Ne,_e.updateOrderFns.push(xe),Ce.type==="selection"&&(_e.selectable.value=Ce.selectable,_e.reserveSelection.value=Ce.reserveSelection),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},updateColumnOrder(_e,Ce){var $e;(($e=Ce.getColumnIndex)==null?void 0:$e.call(Ce))!==Ce.no&&(sortColumn(_e._columns.value),$.$ready&&$.store.updateColumns())},removeColumn(_e,Ce,$e,xe){const Ie=unref(_e._columns)||[];if($e)$e.children.splice($e.children.findIndex(Fe=>Fe.id===Ce.id),1),nextTick(()=>{var Fe;((Fe=$e.children)==null?void 0:Fe.length)===0&&delete $e.children}),_e._columns.value=replaceColumn(Ie,$e);else{const Fe=Ie.indexOf(Ce);Fe>-1&&(Ie.splice(Fe,1),_e._columns.value=Ie)}const Ne=_e.updateOrderFns.indexOf(xe);Ne>-1&&_e.updateOrderFns.splice(Ne,1),$.$ready&&($.store.updateColumns(),$.store.scheduleLayout())},sort(_e,Ce){const{prop:$e,order:xe,init:Ie}=Ce;if($e){const Ne=unref(_e.columns).find(Fe=>Fe.property===$e);Ne&&(Ne.order=xe,$.store.updateSort(Ne,$e,xe),$.store.commit("changeSortCondition",{init:Ie}))}},changeSortCondition(_e,Ce){const{sortingColumn:$e,sortProp:xe,sortOrder:Ie}=_e,Ne=unref($e),Fe=unref(xe),ze=unref(Ie);ze===null&&(_e.sortingColumn.value=null,_e.sortProp.value=null);const At={filter:!0};$.store.execQuery(At),(!Ce||!(Ce.silent||Ce.init))&&$.emit("sort-change",{column:Ne,prop:Fe,order:ze}),$.store.updateTableScrollY()},filterChange(_e,Ce){const{column:$e,values:xe,silent:Ie}=Ce,Ne=$.store.updateFilters($e,xe);$.store.execQuery(),Ie||$.emit("filter-change",Ne),$.store.updateTableScrollY()},toggleAllSelection(){$.store.toggleAllSelection()},rowSelectedChanged(_e,Ce){$.store.toggleRowSelection(Ce),$.store.updateAllSelected()},setHoverRow(_e,Ce){_e.hoverRow.value=Ce},setCurrentRow(_e,Ce){$.store.updateCurrentRow(Ce)}},commit:function(_e,...Ce){const $e=$.store.mutations;if($e[_e])$e[_e].apply($,[$.store.states].concat(Ce));else throw new Error(`Action not found: ${_e}`)},updateTableScrollY:function(){nextTick(()=>$.layout.updateScrollY.apply($.layout))}}}const InitialStateMap={rowKey:"rowKey",defaultExpandAll:"defaultExpandAll",selectOnIndeterminate:"selectOnIndeterminate",indent:"indent",lazy:"lazy",data:"data",["treeProps.hasChildren"]:{key:"lazyColumnIdentifier",default:"hasChildren"},["treeProps.children"]:{key:"childrenColumnName",default:"children"}};function createStore($,oe){if(!$)throw new Error("Table is required.");const ae=useStore();return ae.toggleAllSelection=debounce(ae._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(ie=>{handleValue(getArrKeysValue(oe,ie),ie,ae)}),proxyTableProps(ae,oe),ae}function proxyTableProps($,oe){Object.keys(InitialStateMap).forEach(ae=>{watch(()=>getArrKeysValue(oe,ae),ie=>{handleValue(ie,ae,$)})})}function handleValue($,oe,ae){let ie=$,le=InitialStateMap[oe];typeof InitialStateMap[oe]=="object"&&(le=le.key,ie=ie||InitialStateMap[oe].default),ae.states[le].value=ie}function getArrKeysValue($,oe){if(oe.includes(".")){const ae=oe.split(".");let ie=$;return ae.forEach(le=>{ie=ie[le]}),ie}else return $[oe]}class TableLayout{constructor(oe){this.observers=[],this.table=null,this.store=null,this.columns=[],this.fit=!0,this.showHeader=!0,this.height=ref(null),this.scrollX=ref(!1),this.scrollY=ref(!1),this.bodyWidth=ref(null),this.fixedWidth=ref(null),this.rightFixedWidth=ref(null),this.gutterWidth=0;for(const ae in oe)hasOwn$4(oe,ae)&&(isRef(this[ae])?this[ae].value=oe[ae]:this[ae]=oe[ae]);if(!this.table)throw new Error("Table is required for Table Layout");if(!this.store)throw new Error("Store is required for Table Layout")}updateScrollY(){if(this.height.value===null)return!1;const ae=this.table.refs.scrollBarRef;if(this.table.vnode.el&&(ae!=null&&ae.wrapRef)){let ie=!0;const le=this.scrollY.value;return ie=ae.wrapRef.scrollHeight>ae.wrapRef.clientHeight,this.scrollY.value=ie,le!==ie}return!1}setHeight(oe,ae="height"){if(!isClient$2)return;const ie=this.table.vnode.el;if(oe=parseHeight(oe),this.height.value=Number(oe),!ie&&(oe||oe===0))return nextTick(()=>this.setHeight(oe,ae));typeof oe=="number"?(ie.style[ae]=`${oe}px`,this.updateElsHeight()):typeof oe=="string"&&(ie.style[ae]=oe,this.updateElsHeight())}setMaxHeight(oe){this.setHeight(oe,"max-height")}getFlattenColumns(){const oe=[];return this.table.store.states.columns.value.forEach(ie=>{ie.isColumnGroup?oe.push.apply(oe,ie.columns):oe.push(ie)}),oe}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(oe){if(!oe)return!0;let ae=oe;for(;ae.tagName!=="DIV";){if(getComputedStyle(ae).display==="none")return!0;ae=ae.parentElement}return!1}updateColumnsWidth(){if(!isClient$2)return;const oe=this.fit,ae=this.table.vnode.el.clientWidth;let ie=0;const le=this.getFlattenColumns(),pe=le.filter($e=>typeof $e.width!="number");if(le.forEach($e=>{typeof $e.width=="number"&&$e.realWidth&&($e.realWidth=null)}),pe.length>0&&oe){if(le.forEach($e=>{ie+=Number($e.width||$e.minWidth||80)}),ie<=ae){this.scrollX.value=!1;const $e=ae-ie;if(pe.length===1)pe[0].realWidth=Number(pe[0].minWidth||80)+$e;else{const xe=pe.reduce((Fe,ze)=>Fe+Number(ze.minWidth||80),0),Ie=$e/xe;let Ne=0;pe.forEach((Fe,ze)=>{if(ze===0)return;const At=Math.floor(Number(Fe.minWidth||80)*Ie);Ne+=At,Fe.realWidth=Number(Fe.minWidth||80)+At}),pe[0].realWidth=Number(pe[0].minWidth||80)+$e-Ne}}else this.scrollX.value=!0,pe.forEach($e=>{$e.realWidth=Number($e.minWidth)});this.bodyWidth.value=Math.max(ie,ae),this.table.state.resizeState.value.width=this.bodyWidth.value}else le.forEach($e=>{!$e.width&&!$e.minWidth?$e.realWidth=80:$e.realWidth=Number($e.width||$e.minWidth),ie+=$e.realWidth}),this.scrollX.value=ie>ae,this.bodyWidth.value=ie;const _e=this.store.states.fixedColumns.value;if(_e.length>0){let $e=0;_e.forEach(xe=>{$e+=Number(xe.realWidth||xe.width)}),this.fixedWidth.value=$e}const Ce=this.store.states.rightFixedColumns.value;if(Ce.length>0){let $e=0;Ce.forEach(xe=>{$e+=Number(xe.realWidth||xe.width)}),this.rightFixedWidth.value=$e}this.notifyObservers("columns")}addObserver(oe){this.observers.push(oe)}removeObserver(oe){const ae=this.observers.indexOf(oe);ae!==-1&&this.observers.splice(ae,1)}notifyObservers(oe){this.observers.forEach(ie=>{var le,pe;switch(oe){case"columns":(le=ie.state)==null||le.onColumnsChange(this);break;case"scrollable":(pe=ie.state)==null||pe.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${oe}.`)}})}}const{CheckboxGroup:ElCheckboxGroup}=ElCheckbox,_sfc_main$t=defineComponent({name:"ElTableFilterPanel",components:{ElCheckbox,ElCheckboxGroup,ElScrollbar,ElTooltip,ElIcon,ArrowDown:arrow_down_default,ArrowUp:arrow_up_default},directives:{ClickOutside},props:{placement:{type:String,default:"bottom-start"},store:{type:Object},column:{type:Object},upDataColumn:{type:Function}},setup($){const oe=getCurrentInstance(),{t:ae}=useLocale(),ie=useNamespace("table-filter"),le=oe==null?void 0:oe.parent;le.filterPanels.value[$.column.id]||(le.filterPanels.value[$.column.id]=oe);const pe=ref(!1),_e=ref(null),Ce=computed(()=>$.column&&$.column.filters),$e=computed({get:()=>{var Cn;return(((Cn=$.column)==null?void 0:Cn.filteredValue)||[])[0]},set:Cn=>{xe.value&&(typeof Cn<"u"&&Cn!==null?xe.value.splice(0,1,Cn):xe.value.splice(0,1))}}),xe=computed({get(){return $.column?$.column.filteredValue||[]:[]},set(Cn){$.column&&$.upDataColumn("filteredValue",Cn)}}),Ie=computed(()=>$.column?$.column.filterMultiple:!0),Ne=Cn=>Cn.value===$e.value,Fe=()=>{pe.value=!1},ze=Cn=>{Cn.stopPropagation(),pe.value=!pe.value},At=()=>{pe.value=!1},Lt=()=>{_n(xe.value),Fe()},hn=()=>{xe.value=[],_n(xe.value),Fe()},vn=Cn=>{$e.value=Cn,_n(typeof Cn<"u"&&Cn!==null?xe.value:[]),Fe()},_n=Cn=>{$.store.commit("filterChange",{column:$.column,values:Cn}),$.store.updateAllSelected()};watch(pe,Cn=>{$.column&&$.upDataColumn("filterOpened",Cn)},{immediate:!0});const bn=computed(()=>{var Cn,En;return(En=(Cn=_e.value)==null?void 0:Cn.popperRef)==null?void 0:En.contentRef});return{tooltipVisible:pe,multiple:Ie,filteredValue:xe,filterValue:$e,filters:Ce,handleConfirm:Lt,handleReset:hn,handleSelect:vn,isActive:Ne,t:ae,ns:ie,showFilterPanel:ze,hideFilterPanel:At,popperPaneRef:bn,tooltip:_e}}}),_hoisted_1$e={key:0},_hoisted_2$9=["disabled"],_hoisted_3$4=["label","onClick"];function _sfc_render$5($,oe,ae,ie,le,pe){const _e=resolveComponent("el-checkbox"),Ce=resolveComponent("el-checkbox-group"),$e=resolveComponent("el-scrollbar"),xe=resolveComponent("arrow-up"),Ie=resolveComponent("arrow-down"),Ne=resolveComponent("el-icon"),Fe=resolveComponent("el-tooltip"),ze=resolveDirective("click-outside");return openBlock(),createBlock(Fe,{ref:"tooltip",visible:$.tooltipVisible,offset:0,placement:$.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":$.ns.b(),persistent:""},{content:withCtx(()=>[$.multiple?(openBlock(),createElementBlock("div",_hoisted_1$e,[createBaseVNode("div",{class:normalizeClass($.ns.e("content"))},[createVNode($e,{"wrap-class":$.ns.e("wrap")},{default:withCtx(()=>[createVNode(Ce,{modelValue:$.filteredValue,"onUpdate:modelValue":oe[0]||(oe[0]=At=>$.filteredValue=At),class:normalizeClass($.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,At=>(openBlock(),createBlock(_e,{key:At.value,label:At.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1(At.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass($.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[$.ns.is("disabled")]:$.filteredValue.length===0}),disabled:$.filteredValue.length===0,type:"button",onClick:oe[1]||(oe[1]=(...At)=>$.handleConfirm&&$.handleConfirm(...At))},toDisplayString$1($.t("el.table.confirmFilter")),11,_hoisted_2$9),createBaseVNode("button",{type:"button",onClick:oe[2]||(oe[2]=(...At)=>$.handleReset&&$.handleReset(...At))},toDisplayString$1($.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass($.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([$.ns.e("list-item"),{[$.ns.is("active")]:$.filterValue===void 0||$.filterValue===null}]),onClick:oe[3]||(oe[3]=At=>$.handleSelect(null))},toDisplayString$1($.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList($.filters,At=>(openBlock(),createElementBlock("li",{key:At.value,class:normalizeClass([$.ns.e("list-item"),$.ns.is("active",$.isActive(At))]),label:At.value,onClick:Lt=>$.handleSelect(At.value)},toDisplayString$1(At.text),11,_hoisted_3$4))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${$.ns.namespace.value}-table__column-filter-trigger`,`${$.ns.namespace.value}-none-outline`]),onClick:oe[4]||(oe[4]=(...At)=>$.showFilterPanel&&$.showFilterPanel(...At))},[createVNode(Ne,null,{default:withCtx(()=>[$.column.filterOpened?(openBlock(),createBlock(xe,{key:0})):(openBlock(),createBlock(Ie,{key:1}))]),_:1})],2)),[[ze,$.hideFilterPanel,$.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var FilterPanel=_export_sfc$1(_sfc_main$t,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver($){const oe=getCurrentInstance();onBeforeMount(()=>{ae.value.addObserver(oe)}),onMounted(()=>{ie(ae.value),le(ae.value)}),onUpdated(()=>{ie(ae.value),le(ae.value)}),onUnmounted(()=>{ae.value.removeObserver(oe)});const ae=computed(()=>{const pe=$.layout;if(!pe)throw new Error("Can not find table layout.");return pe}),ie=pe=>{var _e;const Ce=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("colgroup > col"))||[];if(!Ce.length)return;const $e=pe.getFlattenColumns(),xe={};$e.forEach(Ie=>{xe[Ie.id]=Ie});for(let Ie=0,Ne=Ce.length;Ie<Ne;Ie++){const Fe=Ce[Ie],ze=Fe.getAttribute("name"),At=xe[ze];At&&Fe.setAttribute("width",At.realWidth||At.width)}},le=pe=>{var _e,Ce;const $e=((_e=$.vnode.el)==null?void 0:_e.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let Ie=0,Ne=$e.length;Ie<Ne;Ie++)$e[Ie].setAttribute("width",pe.scrollY.value?pe.gutterWidth:"0");const xe=((Ce=$.vnode.el)==null?void 0:Ce.querySelectorAll("th.gutter"))||[];for(let Ie=0,Ne=xe.length;Ie<Ne;Ie++){const Fe=xe[Ie];Fe.style.width=pe.scrollY.value?`${pe.gutterWidth}px`:"0",Fe.style.display=pe.scrollY.value?"":"none"}};return{tableLayout:ae.value,onColumnsChange:ie,onScrollableChange:le}}const TABLE_INJECTION_KEY=Symbol("ElTable");function useEvent($,oe){const ae=getCurrentInstance(),ie=inject(TABLE_INJECTION_KEY),le=Lt=>{Lt.stopPropagation()},pe=(Lt,hn)=>{!hn.filters&&hn.sortable?At(Lt,hn,!1):hn.filterable&&!hn.sortable&&le(Lt),ie==null||ie.emit("header-click",hn,Lt)},_e=(Lt,hn)=>{ie==null||ie.emit("header-contextmenu",hn,Lt)},Ce=ref(null),$e=ref(!1),xe=ref({}),Ie=(Lt,hn)=>{if(isClient$2&&!(hn.children&&hn.children.length>0)&&Ce.value&&$.border){$e.value=!0;const vn=ie;oe("set-drag-visible",!0);const bn=(vn==null?void 0:vn.vnode.el).getBoundingClientRect().left,Cn=ae.vnode.el.querySelector(`th.${hn.id}`),En=Cn.getBoundingClientRect(),$n=En.left-bn+30;addClass(Cn,"noclick"),xe.value={startMouseLeft:Lt.clientX,startLeft:En.right-bn,startColumnLeft:En.left-bn,tableLeft:bn};const wn=vn==null?void 0:vn.refs.resizeProxy;wn.style.left=`${xe.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const Tn=kn=>{const An=kn.clientX-xe.value.startMouseLeft,On=xe.value.startLeft+An;wn.style.left=`${Math.max($n,On)}px`},xn=()=>{if($e.value){const{startColumnLeft:kn,startLeft:An}=xe.value,Nn=Number.parseInt(wn.style.left,10)-kn;hn.width=hn.realWidth=Nn,vn==null||vn.emit("header-dragend",hn.width,An-kn,hn,Lt),requestAnimationFrame(()=>{$.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",$e.value=!1,Ce.value=null,xe.value={},oe("set-drag-visible",!1)}document.removeEventListener("mousemove",Tn),document.removeEventListener("mouseup",xn),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(Cn,"noclick")},0)};document.addEventListener("mousemove",Tn),document.addEventListener("mouseup",xn)}},Ne=(Lt,hn)=>{var vn;if(hn.children&&hn.children.length>0)return;const _n=(vn=Lt.target)==null?void 0:vn.closest("th");if(!(!hn||!hn.resizable)&&!$e.value&&$.border){const bn=_n.getBoundingClientRect(),Cn=document.body.style;bn.width>12&&bn.right-Lt.pageX<8?(Cn.cursor="col-resize",hasClass(_n,"is-sortable")&&(_n.style.cursor="col-resize"),Ce.value=hn):$e.value||(Cn.cursor="",hasClass(_n,"is-sortable")&&(_n.style.cursor="pointer"),Ce.value=null)}},Fe=()=>{isClient$2&&(document.body.style.cursor="")},ze=({order:Lt,sortOrders:hn})=>{if(Lt==="")return hn[0];const vn=hn.indexOf(Lt||null);return hn[vn>hn.length-2?0:vn+1]},At=(Lt,hn,vn)=>{var _n;Lt.stopPropagation();const bn=hn.order===vn?null:vn||ze(hn),Cn=(_n=Lt.target)==null?void 0:_n.closest("th");if(Cn&&hasClass(Cn,"noclick")){removeClass(Cn,"noclick");return}if(!hn.sortable)return;const En=$.store.states;let $n=En.sortProp.value,wn;const Tn=En.sortingColumn.value;(Tn!==hn||Tn===hn&&Tn.order===null)&&(Tn&&(Tn.order=null),En.sortingColumn.value=hn,$n=hn.property),bn?wn=hn.order=bn:wn=hn.order=null,En.sortProp.value=$n,En.sortOrder.value=wn,ie==null||ie.store.commit("changeSortCondition")};return{handleHeaderClick:pe,handleHeaderContextMenu:_e,handleMouseDown:Ie,handleMouseMove:Ne,handleMouseOut:Fe,handleSortClick:At,handleFilterClick:le}}function useStyle$2($){const oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table");return{getHeaderRowStyle:Ce=>{const $e=oe==null?void 0:oe.props.headerRowStyle;return typeof $e=="function"?$e.call(null,{rowIndex:Ce}):$e},getHeaderRowClass:Ce=>{const $e=[],xe=oe==null?void 0:oe.props.headerRowClassName;return typeof xe=="string"?$e.push(xe):typeof xe=="function"&&$e.push(xe.call(null,{rowIndex:Ce})),$e.join(" ")},getHeaderCellStyle:(Ce,$e,xe,Ie)=>{var Ne;let Fe=(Ne=oe==null?void 0:oe.props.headerCellStyle)!=null?Ne:{};typeof Fe=="function"&&(Fe=Fe.call(null,{rowIndex:Ce,columnIndex:$e,row:xe,column:Ie}));const ze=getFixedColumnOffset($e,Ie.fixed,$.store,xe);return ensurePosition(ze,"left"),ensurePosition(ze,"right"),Object.assign({},Fe,ze)},getHeaderCellClass:(Ce,$e,xe,Ie)=>{const Ne=getFixedColumnsClass(ae.b(),$e,Ie.fixed,$.store,xe),Fe=[Ie.id,Ie.order,Ie.headerAlign,Ie.className,Ie.labelClassName,...Ne];Ie.children||Fe.push("is-leaf"),Ie.sortable&&Fe.push("is-sortable");const ze=oe==null?void 0:oe.props.headerCellClassName;return typeof ze=="string"?Fe.push(ze):typeof ze=="function"&&Fe.push(ze.call(null,{rowIndex:Ce,columnIndex:$e,row:xe,column:Ie})),Fe.push(ae.e("cell")),Fe.filter(At=>!!At).join(" ")}}}const getAllColumns=$=>{const oe=[];return $.forEach(ae=>{ae.children?(oe.push(ae),oe.push.apply(oe,getAllColumns(ae.children))):oe.push(ae)}),oe},convertToRows=$=>{let oe=1;const ae=(pe,_e)=>{if(_e&&(pe.level=_e.level+1,oe<pe.level&&(oe=pe.level)),pe.children){let Ce=0;pe.children.forEach($e=>{ae($e,pe),Ce+=$e.colSpan}),pe.colSpan=Ce}else pe.colSpan=1};$.forEach(pe=>{pe.level=1,ae(pe,void 0)});const ie=[];for(let pe=0;pe<oe;pe++)ie.push([]);return getAllColumns($).forEach(pe=>{pe.children?(pe.rowSpan=1,pe.children.forEach(_e=>_e.isSubColumn=!0)):pe.rowSpan=oe-pe.level+1,ie[pe.level-1].push(pe)}),ie};function useUtils$1($){const oe=inject(TABLE_INJECTION_KEY),ae=computed(()=>convertToRows($.store.states.originColumns.value));return{isGroup:computed(()=>{const pe=ae.value.length>1;return pe&&oe&&(oe.state.isGroup.value=!0),pe}),toggleAllSelection:pe=>{pe.stopPropagation(),oe==null||oe.store.commit("toggleAllSelection")},columnRows:ae}}var TableHeader=defineComponent({name:"ElTableHeader",components:{ElCheckbox},props:{fixed:{type:String,default:""},store:{required:!0,type:Object},border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup($,{emit:oe}){const ae=getCurrentInstance(),ie=inject(TABLE_INJECTION_KEY),le=useNamespace("table"),pe=ref({}),{onColumnsChange:_e,onScrollableChange:Ce}=useLayoutObserver(ie);onMounted(async()=>{await nextTick(),await nextTick();const{prop:$n,order:wn}=$.defaultSort;ie==null||ie.store.commit("sort",{prop:$n,order:wn,init:!0})});const{handleHeaderClick:$e,handleHeaderContextMenu:xe,handleMouseDown:Ie,handleMouseMove:Ne,handleMouseOut:Fe,handleSortClick:ze,handleFilterClick:At}=useEvent($,oe),{getHeaderRowStyle:Lt,getHeaderRowClass:hn,getHeaderCellStyle:vn,getHeaderCellClass:_n}=useStyle$2($),{isGroup:bn,toggleAllSelection:Cn,columnRows:En}=useUtils$1($);return ae.state={onColumnsChange:_e,onScrollableChange:Ce},ae.filterPanels=pe,{ns:le,filterPanels:pe,onColumnsChange:_e,onScrollableChange:Ce,columnRows:En,getHeaderRowClass:hn,getHeaderRowStyle:Lt,getHeaderCellClass:_n,getHeaderCellStyle:vn,handleHeaderClick:$e,handleHeaderContextMenu:xe,handleMouseDown:Ie,handleMouseMove:Ne,handleMouseOut:Fe,handleSortClick:ze,handleFilterClick:At,isGroup:bn,toggleAllSelection:Cn}},render(){const{ns:$,isGroup:oe,columnRows:ae,getHeaderCellStyle:ie,getHeaderCellClass:le,getHeaderRowClass:pe,getHeaderRowStyle:_e,handleHeaderClick:Ce,handleHeaderContextMenu:$e,handleMouseDown:xe,handleMouseMove:Ie,handleSortClick:Ne,handleMouseOut:Fe,store:ze,$parent:At}=this;let Lt=1;return h$3("thead",{class:{[$.is("group")]:oe}},ae.map((hn,vn)=>h$3("tr",{class:pe(vn),key:vn,style:_e(vn)},hn.map((_n,bn)=>(_n.rowSpan>Lt&&(Lt=_n.rowSpan),h$3("th",{class:le(vn,bn,hn,_n),colspan:_n.colSpan,key:`${_n.id}-thead`,rowspan:_n.rowSpan,style:ie(vn,bn,hn,_n),onClick:Cn=>Ce(Cn,_n),onContextmenu:Cn=>$e(Cn,_n),onMousedown:Cn=>xe(Cn,_n),onMousemove:Cn=>Ie(Cn,_n),onMouseout:Fe},[h$3("div",{class:["cell",_n.filteredValue&&_n.filteredValue.length>0?"highlight":""]},[_n.renderHeader?_n.renderHeader({column:_n,$index:bn,store:ze,_self:At}):_n.label,_n.sortable&&h$3("span",{onClick:Cn=>Ne(Cn,_n),class:"caret-wrapper"},[h$3("i",{onClick:Cn=>Ne(Cn,_n,"ascending"),class:"sort-caret ascending"}),h$3("i",{onClick:Cn=>Ne(Cn,_n,"descending"),class:"sort-caret descending"})]),_n.filterable&&h$3(FilterPanel,{store:ze,placement:_n.filterPlacement||"bottom-start",column:_n,upDataColumn:(Cn,En)=>{_n[Cn]=En}})])]))))))}});function useEvents($){const oe=inject(TABLE_INJECTION_KEY),ae=ref(""),ie=ref(h$3("div")),{nextZIndex:le}=useZIndex(),pe=(ze,At,Lt)=>{var hn;const vn=oe,_n=getCell(ze);let bn;const Cn=(hn=vn==null?void 0:vn.vnode.el)==null?void 0:hn.dataset.prefix;_n&&(bn=getColumnByCell({columns:$.store.states.columns.value},_n,Cn),bn&&(vn==null||vn.emit(`cell-${Lt}`,At,bn,_n,ze))),vn==null||vn.emit(`row-${Lt}`,At,bn,ze)},_e=(ze,At)=>{pe(ze,At,"dblclick")},Ce=(ze,At)=>{$.store.commit("setCurrentRow",At),pe(ze,At,"click")},$e=(ze,At)=>{pe(ze,At,"contextmenu")},xe=debounce(ze=>{$.store.commit("setHoverRow",ze)},30),Ie=debounce(()=>{$.store.commit("setHoverRow",null)},30);return{handleDoubleClick:_e,handleClick:Ce,handleContextMenu:$e,handleMouseEnter:xe,handleMouseLeave:Ie,handleCellMouseEnter:(ze,At,Lt)=>{var hn;const vn=oe,_n=getCell(ze),bn=(hn=vn==null?void 0:vn.vnode.el)==null?void 0:hn.dataset.prefix;if(_n){const Tn=getColumnByCell({columns:$.store.states.columns.value},_n,bn),xn=vn.hoverState={cell:_n,column:Tn,row:At};vn==null||vn.emit("cell-mouse-enter",xn.row,xn.column,xn.cell,ze)}if(!Lt)return;const Cn=ze.target.querySelector(".cell");if(!(hasClass(Cn,`${bn}-tooltip`)&&Cn.childNodes.length))return;const En=document.createRange();En.setStart(Cn,0),En.setEnd(Cn,Cn.childNodes.length);const $n=Math.round(En.getBoundingClientRect().width),wn=(Number.parseInt(getStyle$1(Cn,"paddingLeft"),10)||0)+(Number.parseInt(getStyle$1(Cn,"paddingRight"),10)||0);($n+wn>Cn.offsetWidth||Cn.scrollWidth>Cn.offsetWidth)&&createTablePopper(oe==null?void 0:oe.refs.tableWrapper,_n,_n.innerText||_n.textContent,le,Lt)},handleCellMouseLeave:ze=>{if(!getCell(ze))return;const Lt=oe==null?void 0:oe.hoverState;oe==null||oe.emit("cell-mouse-leave",Lt==null?void 0:Lt.row,Lt==null?void 0:Lt.column,Lt==null?void 0:Lt.cell,ze)},tooltipContent:ae,tooltipTrigger:ie}}function useStyles$1($){const oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table");return{getRowStyle:(xe,Ie)=>{const Ne=oe==null?void 0:oe.props.rowStyle;return typeof Ne=="function"?Ne.call(null,{row:xe,rowIndex:Ie}):Ne||null},getRowClass:(xe,Ie)=>{const Ne=[ae.e("row")];oe!=null&&oe.props.highlightCurrentRow&&xe===$.store.states.currentRow.value&&Ne.push("current-row"),$.stripe&&Ie%2===1&&Ne.push(ae.em("row","striped"));const Fe=oe==null?void 0:oe.props.rowClassName;return typeof Fe=="string"?Ne.push(Fe):typeof Fe=="function"&&Ne.push(Fe.call(null,{row:xe,rowIndex:Ie})),Ne},getCellStyle:(xe,Ie,Ne,Fe)=>{const ze=oe==null?void 0:oe.props.cellStyle;let At=ze??{};typeof ze=="function"&&(At=ze.call(null,{rowIndex:xe,columnIndex:Ie,row:Ne,column:Fe}));const Lt=getFixedColumnOffset(Ie,$==null?void 0:$.fixed,$.store);return ensurePosition(Lt,"left"),ensurePosition(Lt,"right"),Object.assign({},At,Lt)},getCellClass:(xe,Ie,Ne,Fe,ze)=>{const At=getFixedColumnsClass(ae.b(),Ie,$==null?void 0:$.fixed,$.store,void 0,ze),Lt=[Fe.id,Fe.align,Fe.className,...At],hn=oe==null?void 0:oe.props.cellClassName;return typeof hn=="string"?Lt.push(hn):typeof hn=="function"&&Lt.push(hn.call(null,{rowIndex:xe,columnIndex:Ie,row:Ne,column:Fe})),Lt.push(ae.e("cell")),Lt.filter(vn=>!!vn).join(" ")},getSpan:(xe,Ie,Ne,Fe)=>{let ze=1,At=1;const Lt=oe==null?void 0:oe.props.spanMethod;if(typeof Lt=="function"){const hn=Lt({row:xe,column:Ie,rowIndex:Ne,columnIndex:Fe});Array.isArray(hn)?(ze=hn[0],At=hn[1]):typeof hn=="object"&&(ze=hn.rowspan,At=hn.colspan)}return{rowspan:ze,colspan:At}},getColspanRealWidth:(xe,Ie,Ne)=>{if(Ie<1)return xe[Ne].realWidth;const Fe=xe.map(({realWidth:ze,width:At})=>ze||At).slice(Ne,Ne+Ie);return Number(Fe.reduce((ze,At)=>Number(ze)+Number(At),-1))}}}function useRender$1($){const oe=inject(TABLE_INJECTION_KEY),ae=useNamespace("table"),{handleDoubleClick:ie,handleClick:le,handleContextMenu:pe,handleMouseEnter:_e,handleMouseLeave:Ce,handleCellMouseEnter:$e,handleCellMouseLeave:xe,tooltipContent:Ie,tooltipTrigger:Ne}=useEvents($),{getRowStyle:Fe,getRowClass:ze,getCellStyle:At,getCellClass:Lt,getSpan:hn,getColspanRealWidth:vn}=useStyles$1($),_n=computed(()=>$.store.states.columns.value.findIndex(({type:wn})=>wn==="default")),bn=(wn,Tn)=>{const xn=oe.props.rowKey;return xn?getRowIdentity(wn,xn):Tn},Cn=(wn,Tn,xn,kn=!1)=>{const{tooltipEffect:An,tooltipOptions:On,store:Nn}=$,{indent:Rn,columns:zn}=Nn.states,Bn=ze(wn,Tn);let Mn=!0;return xn&&(Bn.push(ae.em("row",`level-${xn.level}`)),Mn=xn.display),h$3("tr",{style:[Mn?null:{display:"none"},Fe(wn,Tn)],class:Bn,key:bn(wn,Tn),onDblclick:Vn=>ie(Vn,wn),onClick:Vn=>le(Vn,wn),onContextmenu:Vn=>pe(Vn,wn),onMouseenter:()=>_e(Tn),onMouseleave:Ce},zn.value.map((Vn,jn)=>{const{rowspan:Zn,colspan:Gn}=hn(wn,Vn,Tn,jn);if(!Zn||!Gn)return null;const Xn={...Vn};Xn.realWidth=vn(zn.value,Gn,jn);const cr={store:$.store,_self:$.context||oe,column:Xn,row:wn,$index:Tn,cellIndex:jn,expanded:kn};jn===_n.value&&xn&&(cr.treeNode={indent:xn.level*Rn.value,level:xn.level},typeof xn.expanded=="boolean"&&(cr.treeNode.expanded=xn.expanded,"loading"in xn&&(cr.treeNode.loading=xn.loading),"noLazyChildren"in xn&&(cr.treeNode.noLazyChildren=xn.noLazyChildren)));const nr=`${Tn},${jn}`,er=Xn.columnKey||Xn.rawColumnKey||"",rr=En(jn,Vn,cr),qn=Vn.showOverflowTooltip&&merge$4({effect:An},On,Vn.showOverflowTooltip);return h$3("td",{style:At(Tn,jn,wn,Vn),class:Lt(Tn,jn,wn,Vn,Gn-1),key:`${er}${nr}`,rowspan:Zn,colspan:Gn,onMouseenter:Yn=>$e(Yn,wn,qn),onMouseleave:xe},[rr])}))},En=(wn,Tn,xn)=>Tn.renderCell(xn);return{wrappedRowRender:(wn,Tn)=>{const xn=$.store,{isRowExpanded:kn,assertRowKey:An}=xn,{treeData:On,lazyTreeNodeMap:Nn,childrenColumnName:Rn,rowKey:zn}=xn.states,Bn=xn.states.columns.value;if(Bn.some(({type:Fn})=>Fn==="expand")){const Fn=kn(wn),Vn=Cn(wn,Tn,void 0,Fn),jn=oe.renderExpanded;return Fn?jn?[[Vn,h$3("tr",{key:`expanded-row__${Vn.key}`},[h$3("td",{colspan:Bn.length,class:`${ae.e("cell")} ${ae.e("expanded-cell")}`},[jn({row:wn,$index:Tn,store:xn,expanded:Fn})])])]]:(console.error("[Element Error]renderExpanded is required."),Vn):[[Vn]]}else if(Object.keys(On.value).length){An();const Fn=getRowIdentity(wn,zn.value);let Vn=On.value[Fn],jn=null;Vn&&(jn={expanded:Vn.expanded,level:Vn.level,display:!0},typeof Vn.lazy=="boolean"&&(typeof Vn.loaded=="boolean"&&Vn.loaded&&(jn.noLazyChildren=!(Vn.children&&Vn.children.length)),jn.loading=Vn.loading));const Zn=[Cn(wn,Tn,jn)];if(Vn){let Gn=0;const Xn=(nr,er)=>{nr&&nr.length&&er&&nr.forEach(rr=>{const qn={display:er.display&&er.expanded,level:er.level+1,expanded:!1,noLazyChildren:!1,loading:!1},Yn=getRowIdentity(rr,zn.value);if(Yn==null)throw new Error("For nested data item, row-key is required.");if(Vn={...On.value[Yn]},Vn&&(qn.expanded=Vn.expanded,Vn.level=Vn.level||qn.level,Vn.display=!!(Vn.expanded&&qn.display),typeof Vn.lazy=="boolean"&&(typeof Vn.loaded=="boolean"&&Vn.loaded&&(qn.noLazyChildren=!(Vn.children&&Vn.children.length)),qn.loading=Vn.loading)),Gn++,Zn.push(Cn(rr,Tn+Gn,qn)),Vn){const ar=Nn.value[Yn]||rr[Rn.value];Xn(ar,Vn)}})};Vn.display=!0;const cr=Nn.value[Fn]||wn[Rn.value];Xn(cr,Vn)}return Zn}else return Cn(wn,Tn,void 0)},tooltipContent:Ie,tooltipTrigger:Ne}}const defaultProps$2={store:{required:!0,type:Object},stripe:Boolean,tooltipEffect:String,tooltipOptions:{type:Object},context:{default:()=>({}),type:Object},rowClassName:[String,Function],rowStyle:[Object,Function],fixed:{type:String,default:""},highlight:Boolean};var TableBody=defineComponent({name:"ElTableBody",props:defaultProps$2,setup($){const oe=getCurrentInstance(),ae=inject(TABLE_INJECTION_KEY),ie=useNamespace("table"),{wrappedRowRender:le,tooltipContent:pe,tooltipTrigger:_e}=useRender$1($),{onColumnsChange:Ce,onScrollableChange:$e}=useLayoutObserver(ae);return watch($.store.states.hoverRow,(xe,Ie)=>{if(!$.store.states.isComplex.value||!isClient$2)return;let Ne=window.requestAnimationFrame;Ne||(Ne=Fe=>window.setTimeout(Fe,16)),Ne(()=>{const Fe=oe==null?void 0:oe.vnode.el,ze=Array.from((Fe==null?void 0:Fe.children)||[]).filter(hn=>hn==null?void 0:hn.classList.contains(`${ie.e("row")}`)),At=ze[Ie],Lt=ze[xe];At&&removeClass(At,"hover-row"),Lt&&addClass(Lt,"hover-row")})}),onUnmounted(()=>{var xe;(xe=removePopper)==null||xe()}),{ns:ie,onColumnsChange:Ce,onScrollableChange:$e,wrappedRowRender:le,tooltipContent:pe,tooltipTrigger:_e}},render(){const{wrappedRowRender:$,store:oe}=this,ae=oe.states.data.value||[];return h$3("tbody",{},[ae.reduce((ie,le)=>ie.concat($(le,ie.length)),[])])}});function hColgroup($){const oe=$.tableLayout==="auto";let ae=$.columns||[];oe&&ae.every(le=>le.width===void 0)&&(ae=[]);const ie=le=>{const pe={key:`${$.tableLayout}_${le.id}`,style:{},name:void 0};return oe?pe.style={width:`${le.width}px`}:pe.name=le.id,pe};return h$3("colgroup",{},ae.map(le=>h$3("col",ie(le))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const $=inject(TABLE_INJECTION_KEY),oe=$==null?void 0:$.store,ae=computed(()=>oe.states.fixedLeafColumnsLength.value),ie=computed(()=>oe.states.rightFixedColumns.value.length),le=computed(()=>oe.states.columns.value.length),pe=computed(()=>oe.states.fixedColumns.value.length),_e=computed(()=>oe.states.rightFixedColumns.value.length);return{leftFixedLeafCount:ae,rightFixedLeafCount:ie,columnsCount:le,leftFixedCount:pe,rightFixedCount:_e,columns:oe.states.columns}}function useStyle$1($){const{columns:oe}=useMapState(),ae=useNamespace("table");return{getCellClasses:(pe,_e)=>{const Ce=pe[_e],$e=[ae.e("cell"),Ce.id,Ce.align,Ce.labelClassName,...getFixedColumnsClass(ae.b(),_e,Ce.fixed,$.store)];return Ce.className&&$e.push(Ce.className),Ce.children||$e.push(ae.is("leaf")),$e},getCellStyles:(pe,_e)=>{const Ce=getFixedColumnOffset(_e,pe.fixed,$.store);return ensurePosition(Ce,"left"),ensurePosition(Ce,"right"),Ce},columns:oe}}var TableFooter=defineComponent({name:"ElTableFooter",props:{fixed:{type:String,default:""},store:{required:!0,type:Object},summaryMethod:Function,sumText:String,border:Boolean,defaultSort:{type:Object,default:()=>({prop:"",order:""})}},setup($){const{getCellClasses:oe,getCellStyles:ae,columns:ie}=useStyle$1($);return{ns:useNamespace("table"),getCellClasses:oe,getCellStyles:ae,columns:ie}},render(){const{columns:$,getCellStyles:oe,getCellClasses:ae,summaryMethod:ie,sumText:le,ns:pe}=this,_e=this.store.states.data.value;let Ce=[];return ie?Ce=ie({columns:$,data:_e}):$.forEach(($e,xe)=>{if(xe===0){Ce[xe]=le;return}const Ie=_e.map(At=>Number(At[$e.property])),Ne=[];let Fe=!0;Ie.forEach(At=>{if(!Number.isNaN(+At)){Fe=!1;const Lt=`${At}`.split(".")[1];Ne.push(Lt?Lt.length:0)}});const ze=Math.max.apply(null,Ne);Fe?Ce[xe]="":Ce[xe]=Ie.reduce((At,Lt)=>{const hn=Number(Lt);return Number.isNaN(+hn)?At:Number.parseFloat((At+Lt).toFixed(Math.min(ze,20)))},0)}),h$3("table",{class:pe.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:$}),h$3("tbody",[h$3("tr",{},[...$.map(($e,xe)=>h$3("td",{key:xe,colspan:$e.colSpan,rowspan:$e.rowSpan,class:ae($,xe),style:oe($e,xe)},[h$3("div",{class:["cell",$e.labelClassName]},[Ce[xe]])]))])])])}});function useUtils($){return{setCurrentRow:Ie=>{$.commit("setCurrentRow",Ie)},getSelectionRows:()=>$.getSelectionRows(),toggleRowSelection:(Ie,Ne)=>{$.toggleRowSelection(Ie,Ne,!1),$.updateAllSelected()},clearSelection:()=>{$.clearSelection()},clearFilter:Ie=>{$.clearFilter(Ie)},toggleAllSelection:()=>{$.commit("toggleAllSelection")},toggleRowExpansion:(Ie,Ne)=>{$.toggleRowExpansionAdapter(Ie,Ne)},clearSort:()=>{$.clearSort()},sort:(Ie,Ne)=>{$.commit("sort",{prop:Ie,order:Ne})}}}function useStyle($,oe,ae,ie){const le=ref(!1),pe=ref(null),_e=ref(!1),Ce=Fn=>{_e.value=Fn},$e=ref({width:null,height:null,headerHeight:null}),xe=ref(!1),Ie={display:"inline-block",verticalAlign:"middle"},Ne=ref(),Fe=ref(0),ze=ref(0),At=ref(0),Lt=ref(0);watchEffect(()=>{oe.setHeight($.height)}),watchEffect(()=>{oe.setMaxHeight($.maxHeight)}),watch(()=>[$.currentRowKey,ae.states.rowKey],([Fn,Vn])=>{!unref(Vn)||!unref(Fn)||ae.setCurrentRowKey(`${Fn}`)},{immediate:!0}),watch(()=>$.data,Fn=>{ie.store.commit("setData",Fn)},{immediate:!0,deep:!0}),watchEffect(()=>{$.expandRowKeys&&ae.setExpandRowKeysAdapter($.expandRowKeys)});const hn=()=>{ie.store.commit("setHoverRow",null),ie.hoverState&&(ie.hoverState=null)},vn=(Fn,Vn)=>{const{pixelX:jn,pixelY:Zn}=Vn;Math.abs(jn)>=Math.abs(Zn)&&(ie.refs.bodyWrapper.scrollLeft+=Vn.pixelX/5)},_n=computed(()=>$.height||$.maxHeight||ae.states.fixedColumns.value.length>0||ae.states.rightFixedColumns.value.length>0),bn=computed(()=>({width:oe.bodyWidth.value?`${oe.bodyWidth.value}px`:""})),Cn=()=>{_n.value&&oe.updateElsHeight(),oe.updateColumnsWidth(),requestAnimationFrame(Tn)};onMounted(async()=>{await nextTick(),ae.updateColumns(),xn(),requestAnimationFrame(Cn);const Fn=ie.vnode.el,Vn=ie.refs.headerWrapper;$.flexible&&Fn&&Fn.parentElement&&(Fn.parentElement.style.minWidth="0"),$e.value={width:Ne.value=Fn.offsetWidth,height:Fn.offsetHeight,headerHeight:$.showHeader&&Vn?Vn.offsetHeight:null},ae.states.columns.value.forEach(jn=>{jn.filteredValue&&jn.filteredValue.length&&ie.store.commit("filterChange",{column:jn,values:jn.filteredValue,silent:!0})}),ie.$ready=!0});const En=(Fn,Vn)=>{if(!Fn)return;const jn=Array.from(Fn.classList).filter(Zn=>!Zn.startsWith("is-scrolling-"));jn.push(oe.scrollX.value?Vn:"is-scrolling-none"),Fn.className=jn.join(" ")},$n=Fn=>{const{tableWrapper:Vn}=ie.refs;En(Vn,Fn)},wn=Fn=>{const{tableWrapper:Vn}=ie.refs;return!!(Vn&&Vn.classList.contains(Fn))},Tn=function(){if(!ie.refs.scrollBarRef)return;if(!oe.scrollX.value){const nr="is-scrolling-none";wn(nr)||$n(nr);return}const Fn=ie.refs.scrollBarRef.wrapRef;if(!Fn)return;const{scrollLeft:Vn,offsetWidth:jn,scrollWidth:Zn}=Fn,{headerWrapper:Gn,footerWrapper:Xn}=ie.refs;Gn&&(Gn.scrollLeft=Vn),Xn&&(Xn.scrollLeft=Vn);const cr=Zn-jn-1;Vn>=cr?$n("is-scrolling-right"):$n(Vn===0?"is-scrolling-left":"is-scrolling-middle")},xn=()=>{ie.refs.scrollBarRef&&(ie.refs.scrollBarRef.wrapRef&&useEventListener$1(ie.refs.scrollBarRef.wrapRef,"scroll",Tn,{passive:!0}),$.fit?useResizeObserver(ie.vnode.el,kn):useEventListener$1(window,"resize",kn),useResizeObserver(ie.refs.bodyWrapper,()=>{var Fn,Vn;kn(),(Vn=(Fn=ie.refs)==null?void 0:Fn.scrollBarRef)==null||Vn.update()}))},kn=()=>{var Fn,Vn,jn;const Zn=ie.vnode.el;if(!ie.$ready||!Zn)return;let Gn=!1;const{width:Xn,height:cr,headerHeight:nr}=$e.value,er=Ne.value=Zn.offsetWidth;Xn!==er&&(Gn=!0);const rr=Zn.offsetHeight;($.height||_n.value)&&cr!==rr&&(Gn=!0);const qn=$.tableLayout==="fixed"?ie.refs.headerWrapper:(Fn=ie.refs.tableHeaderRef)==null?void 0:Fn.$el;$.showHeader&&(qn==null?void 0:qn.offsetHeight)!==nr&&(Gn=!0),Fe.value=((Vn=ie.refs.tableWrapper)==null?void 0:Vn.scrollHeight)||0,At.value=(qn==null?void 0:qn.scrollHeight)||0,Lt.value=((jn=ie.refs.footerWrapper)==null?void 0:jn.offsetHeight)||0,ze.value=Fe.value-At.value-Lt.value,Gn&&($e.value={width:er,height:rr,headerHeight:$.showHeader&&(qn==null?void 0:qn.offsetHeight)||0},Cn())},An=useFormSize(),On=computed(()=>{const{bodyWidth:Fn,scrollY:Vn,gutterWidth:jn}=oe;return Fn.value?`${Fn.value-(Vn.value?jn:0)}px`:""}),Nn=computed(()=>$.maxHeight?"fixed":$.tableLayout),Rn=computed(()=>{if($.data&&$.data.length)return null;let Fn="100%";$.height&&ze.value&&(Fn=`${ze.value}px`);const Vn=Ne.value;return{width:Vn?`${Vn}px`:"",height:Fn}}),zn=computed(()=>$.height?{height:Number.isNaN(Number($.height))?$.height:`${$.height}px`}:$.maxHeight?{maxHeight:Number.isNaN(Number($.maxHeight))?$.maxHeight:`${$.maxHeight}px`}:{}),Bn=computed(()=>{if($.height)return{height:"100%"};if($.maxHeight){if(Number.isNaN(Number($.maxHeight)))return{maxHeight:`calc(${$.maxHeight} - ${At.value+Lt.value}px)`};{const Fn=$.maxHeight;if(Fe.value>=Number(Fn))return{maxHeight:`${Fe.value-At.value-Lt.value}px`}}}return{}});return{isHidden:le,renderExpanded:pe,setDragVisible:Ce,isGroup:xe,handleMouseLeave:hn,handleHeaderFooterMousewheel:vn,tableSize:An,emptyBlockStyle:Rn,handleFixedMousewheel:(Fn,Vn)=>{const jn=ie.refs.bodyWrapper;if(Math.abs(Vn.spinY)>0){const Zn=jn.scrollTop;Vn.pixelY<0&&Zn!==0&&Fn.preventDefault(),Vn.pixelY>0&&jn.scrollHeight-jn.clientHeight>Zn&&Fn.preventDefault(),jn.scrollTop+=Math.ceil(Vn.pixelY/5)}else jn.scrollLeft+=Math.ceil(Vn.pixelX/5)},resizeProxyVisible:_e,bodyWidth:On,resizeState:$e,doLayout:Cn,tableBodyStyles:bn,tableLayout:Nn,scrollbarViewStyle:Ie,tableInnerStyle:zn,scrollbarStyle:Bn}}function useKeyRender($){const oe=ref(),ae=()=>{const le=$.vnode.el.querySelector(".hidden-columns"),pe={childList:!0,subtree:!0},_e=$.store.states.updateOrderFns;oe.value=new MutationObserver(()=>{_e.forEach(Ce=>Ce())}),oe.value.observe(le,pe)};onMounted(()=>{ae()}),onUnmounted(()=>{var ie;(ie=oe.value)==null||ie.disconnect()})}var defaultProps$1={data:{type:Array,default:()=>[]},size:useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const useScrollbar$1=()=>{const $=ref(),oe=(pe,_e)=>{const Ce=$.value;Ce&&Ce.scrollTo(pe,_e)},ae=(pe,_e)=>{const Ce=$.value;Ce&&isNumber$5(_e)&&["Top","Left"].includes(pe)&&Ce[`setScroll${pe}`](_e)};return{scrollBarRef:$,scrollTo:oe,setScrollTop:pe=>ae("Top",pe),setScrollLeft:pe=>ae("Left",pe)}};let tableIdSeed=1;const _sfc_main$s=defineComponent({name:"ElTable",directives:{Mousewheel},components:{TableHeader,TableBody,TableFooter,ElScrollbar,hColgroup},props:defaultProps$1,emits:["select","select-all","selection-change","cell-mouse-enter","cell-mouse-leave","cell-contextmenu","cell-click","cell-dblclick","row-click","row-contextmenu","row-dblclick","header-click","header-contextmenu","sort-change","filter-change","current-change","header-dragend","expand-change"],setup($){const{t:oe}=useLocale(),ae=useNamespace("table"),ie=getCurrentInstance();provide(TABLE_INJECTION_KEY,ie);const le=createStore(ie,$);ie.store=le;const pe=new TableLayout({store:ie.store,table:ie,fit:$.fit,showHeader:$.showHeader});ie.layout=pe;const _e=computed(()=>(le.states.data.value||[]).length===0),{setCurrentRow:Ce,getSelectionRows:$e,toggleRowSelection:xe,clearSelection:Ie,clearFilter:Ne,toggleAllSelection:Fe,toggleRowExpansion:ze,clearSort:At,sort:Lt}=useUtils(le),{isHidden:hn,renderExpanded:vn,setDragVisible:_n,isGroup:bn,handleMouseLeave:Cn,handleHeaderFooterMousewheel:En,tableSize:$n,emptyBlockStyle:wn,handleFixedMousewheel:Tn,resizeProxyVisible:xn,bodyWidth:kn,resizeState:An,doLayout:On,tableBodyStyles:Nn,tableLayout:Rn,scrollbarViewStyle:zn,tableInnerStyle:Bn,scrollbarStyle:Mn}=useStyle($,pe,le,ie),{scrollBarRef:Fn,scrollTo:Vn,setScrollLeft:jn,setScrollTop:Zn}=useScrollbar$1(),Gn=debounce(On,50),Xn=`${ae.namespace.value}-table_${tableIdSeed++}`;ie.tableId=Xn,ie.state={isGroup:bn,resizeState:An,doLayout:On,debouncedUpdateLayout:Gn};const cr=computed(()=>$.sumText||oe("el.table.sumText")),nr=computed(()=>$.emptyText||oe("el.table.emptyText"));return useKeyRender(ie),{ns:ae,layout:pe,store:le,handleHeaderFooterMousewheel:En,handleMouseLeave:Cn,tableId:Xn,tableSize:$n,isHidden:hn,isEmpty:_e,renderExpanded:vn,resizeProxyVisible:xn,resizeState:An,isGroup:bn,bodyWidth:kn,tableBodyStyles:Nn,emptyBlockStyle:wn,debouncedUpdateLayout:Gn,handleFixedMousewheel:Tn,setCurrentRow:Ce,getSelectionRows:$e,toggleRowSelection:xe,clearSelection:Ie,clearFilter:Ne,toggleAllSelection:Fe,toggleRowExpansion:ze,clearSort:At,doLayout:On,sort:Lt,t:oe,setDragVisible:_n,context:ie,computedSumText:cr,computedEmptyText:nr,tableLayout:Rn,scrollbarViewStyle:zn,tableInnerStyle:Bn,scrollbarStyle:Mn,scrollBarRef:Fn,scrollTo:Vn,setScrollLeft:jn,setScrollTop:Zn}}}),_hoisted_1$d=["data-prefix"],_hoisted_2$8={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$4($,oe,ae,ie,le,pe){const _e=resolveComponent("hColgroup"),Ce=resolveComponent("table-header"),$e=resolveComponent("table-body"),xe=resolveComponent("el-scrollbar"),Ie=resolveComponent("table-footer"),Ne=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[$.ns.m("fit")]:$.fit,[$.ns.m("striped")]:$.stripe,[$.ns.m("border")]:$.border||$.isGroup,[$.ns.m("hidden")]:$.isHidden,[$.ns.m("group")]:$.isGroup,[$.ns.m("fluid-height")]:$.maxHeight,[$.ns.m("scrollable-x")]:$.layout.scrollX.value,[$.ns.m("scrollable-y")]:$.layout.scrollY.value,[$.ns.m("enable-row-hover")]:!$.store.states.isComplex.value,[$.ns.m("enable-row-transition")]:($.store.states.data.value||[]).length!==0&&($.store.states.data.value||[]).length<100,"has-footer":$.showSummary},$.ns.m($.tableSize),$.className,$.ns.b(),$.ns.m(`layout-${$.tableLayout}`)]),style:normalizeStyle$1($.style),"data-prefix":$.ns.namespace.value,onMouseleave:oe[0]||(oe[0]=(...Fe)=>$.handleMouseLeave&&$.handleMouseLeave(...Fe))},[createBaseVNode("div",{class:normalizeClass($.ns.e("inner-wrapper")),style:normalizeStyle$1($.tableInnerStyle)},[createBaseVNode("div",_hoisted_2$8,[renderSlot($.$slots,"default")],512),$.showHeader&&$.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass($.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass($.ns.e("header")),style:normalizeStyle$1($.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(_e,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),createVNode(Ce,{ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[Ne,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass($.ns.e("body-wrapper"))},[createVNode(xe,{ref:"scrollBarRef","view-style":$.scrollbarViewStyle,"wrap-style":$.scrollbarStyle,always:$.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass($.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:$.bodyWidth,tableLayout:$.tableLayout})},[createVNode(_e,{columns:$.store.states.columns.value,"table-layout":$.tableLayout},null,8,["columns","table-layout"]),$.showHeader&&$.tableLayout==="auto"?(openBlock(),createBlock(Ce,{key:0,ref:"tableHeaderRef",border:$.border,"default-sort":$.defaultSort,store:$.store,onSetDragVisible:$.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode($e,{context:$.context,highlight:$.highlightCurrentRow,"row-class-name":$.rowClassName,"tooltip-effect":$.tooltipEffect,"tooltip-options":$.tooltipOptions,"row-style":$.rowStyle,store:$.store,stripe:$.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1($.emptyBlockStyle),class:normalizeClass($.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},[renderSlot($.$slots,"empty",{},()=>[createTextVNode(toDisplayString$1($.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),$.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass($.ns.e("append-wrapper"))},[renderSlot($.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),$.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass($.ns.e("footer-wrapper"))},[createVNode(Ie,{border:$.border,"default-sort":$.defaultSort,store:$.store,style:normalizeStyle$1($.tableBodyStyles),"sum-text":$.computedSumText,"summary-method":$.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!$.isEmpty],[Ne,$.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),$.border||$.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass($.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],6),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass($.ns.e("column-resize-proxy"))},null,2),[[vShow,$.resizeProxyVisible]])],46,_hoisted_1$d)}var Table=_export_sfc$1(_sfc_main$s,[["render",_sfc_render$4],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/table.vue"]]);const defaultClassNames={selection:"table-column--selection",expand:"table__expand-column"},cellStarts={default:{order:""},selection:{width:48,minWidth:48,realWidth:48,order:""},expand:{width:48,minWidth:48,realWidth:48,order:""},index:{width:48,minWidth:48,realWidth:48,order:""}},getDefaultClassName=$=>defaultClassNames[$]||"",cellForced={selection:{renderHeader({store:$}){function oe(){return $.states.data.value&&$.states.data.value.length===0}return h$3(ElCheckbox,{disabled:oe(),size:$.states.tableSize.value,indeterminate:$.states.selection.value.length>0&&!$.states.isAllSelected.value,"onUpdate:modelValue":$.toggleAllSelection,modelValue:$.states.isAllSelected.value})},renderCell({row:$,column:oe,store:ae,$index:ie}){return h$3(ElCheckbox,{disabled:oe.selectable?!oe.selectable.call(null,$,ie):!1,size:ae.states.tableSize.value,onChange:()=>{ae.commit("rowSelectedChanged",$)},onClick:le=>le.stopPropagation(),modelValue:ae.isSelected($)})},sortable:!1,resizable:!1},index:{renderHeader({column:$}){return $.label||"#"},renderCell({column:$,$index:oe}){let ae=oe+1;const ie=$.index;return typeof ie=="number"?ae=oe+ie:typeof ie=="function"&&(ae=ie(oe)),h$3("div",{},[ae])},sortable:!1},expand:{renderHeader({column:$}){return $.label||""},renderCell({row:$,store:oe,expanded:ae}){const{ns:ie}=oe,le=[ie.e("expand-icon")];return ae&&le.push(ie.em("expand-icon","expanded")),h$3("div",{class:le,onClick:function(_e){_e.stopPropagation(),oe.toggleRowExpansion($)}},{default:()=>[h$3(ElIcon,null,{default:()=>[h$3(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:$,column:oe,$index:ae}){var ie;const le=oe.property,pe=le&&getProp($,le).value;return oe&&oe.formatter?oe.formatter($,oe,pe,ae):((ie=pe==null?void 0:pe.toString)==null?void 0:ie.call(pe))||""}function treeCellPrefix({row:$,treeNode:oe,store:ae},ie=!1){const{ns:le}=ae;if(!oe)return ie?[h$3("span",{class:le.e("placeholder")})]:null;const pe=[],_e=function(Ce){Ce.stopPropagation(),!oe.loading&&ae.loadOrToggle($)};if(oe.indent&&pe.push(h$3("span",{class:le.e("indent"),style:{"padding-left":`${oe.indent}px`}})),typeof oe.expanded=="boolean"&&!oe.noLazyChildren){const Ce=[le.e("expand-icon"),oe.expanded?le.em("expand-icon","expanded"):""];let $e=arrow_right_default;oe.loading&&($e=loading_default),pe.push(h$3("div",{class:Ce,onClick:_e},{default:()=>[h$3(ElIcon,{class:{[le.is("loading")]:oe.loading}},{default:()=>[h$3($e)]})]}))}else pe.push(h$3("span",{class:le.e("placeholder")}));return pe}function getAllAliases($,oe){return $.reduce((ae,ie)=>(ae[ie]=ie,ae),oe)}function useWatcher($,oe){const ae=getCurrentInstance();return{registerComplexWatchers:()=>{const pe=["fixed"],_e={realWidth:"width",realMinWidth:"minWidth"},Ce=getAllAliases(pe,_e);Object.keys(Ce).forEach($e=>{const xe=_e[$e];hasOwn$4(oe,xe)&&watch(()=>oe[xe],Ie=>{let Ne=Ie;xe==="width"&&$e==="realWidth"&&(Ne=parseWidth(Ie)),xe==="minWidth"&&$e==="realMinWidth"&&(Ne=parseMinWidth(Ie)),ae.columnConfig.value[xe]=Ne,ae.columnConfig.value[$e]=Ne;const Fe=xe==="fixed";$.value.store.scheduleLayout(Fe)})})},registerNormalWatchers:()=>{const pe=["label","filters","filterMultiple","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],_e={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},Ce=getAllAliases(pe,_e);Object.keys(Ce).forEach($e=>{const xe=_e[$e];hasOwn$4(oe,xe)&&watch(()=>oe[xe],Ie=>{ae.columnConfig.value[$e]=Ie})})}}}function useRender($,oe,ae){const ie=getCurrentInstance(),le=ref(""),pe=ref(!1),_e=ref(),Ce=ref(),$e=useNamespace("table");watchEffect(()=>{_e.value=$.align?`is-${$.align}`:null,_e.value}),watchEffect(()=>{Ce.value=$.headerAlign?`is-${$.headerAlign}`:_e.value,Ce.value});const xe=computed(()=>{let Cn=ie.vnode.vParent||ie.parent;for(;Cn&&!Cn.tableId&&!Cn.columnId;)Cn=Cn.vnode.vParent||Cn.parent;return Cn}),Ie=computed(()=>{const{store:Cn}=ie.parent;if(!Cn)return!1;const{treeData:En}=Cn.states,$n=En.value;return $n&&Object.keys($n).length>0}),Ne=ref(parseWidth($.width)),Fe=ref(parseMinWidth($.minWidth)),ze=Cn=>(Ne.value&&(Cn.width=Ne.value),Fe.value&&(Cn.minWidth=Fe.value),!Ne.value&&Fe.value&&(Cn.width=void 0),Cn.minWidth||(Cn.minWidth=80),Cn.realWidth=Number(Cn.width===void 0?Cn.minWidth:Cn.width),Cn),At=Cn=>{const En=Cn.type,$n=cellForced[En]||{};Object.keys($n).forEach(Tn=>{const xn=$n[Tn];Tn!=="className"&&xn!==void 0&&(Cn[Tn]=xn)});const wn=getDefaultClassName(En);if(wn){const Tn=`${unref($e.namespace)}-${wn}`;Cn.className=Cn.className?`${Cn.className} ${Tn}`:Tn}return Cn},Lt=Cn=>{Array.isArray(Cn)?Cn.forEach($n=>En($n)):En(Cn);function En($n){var wn;((wn=$n==null?void 0:$n.type)==null?void 0:wn.name)==="ElTableColumn"&&($n.vParent=ie)}};return{columnId:le,realAlign:_e,isSubColumn:pe,realHeaderAlign:Ce,columnOrTableParent:xe,setColumnWidth:ze,setColumnForcedProps:At,setColumnRenders:Cn=>{$.renderHeader||Cn.type!=="selection"&&(Cn.renderHeader=$n=>{ie.columnConfig.value.label;const wn=oe.header;return wn?wn($n):Cn.label});let En=Cn.renderCell;return Cn.type==="expand"?(Cn.renderCell=$n=>h$3("div",{class:"cell"},[En($n)]),ae.value.renderExpanded=$n=>oe.default?oe.default($n):oe.default):(En=En||defaultRenderCell,Cn.renderCell=$n=>{let wn=null;if(oe.default){const Nn=oe.default($n);wn=Nn.some(Rn=>Rn.type!==Comment)?Nn:En($n)}else wn=En($n);const{columns:Tn}=ae.value.store.states,xn=Tn.value.findIndex(Nn=>Nn.type==="default"),kn=Ie.value&&$n.cellIndex===xn,An=treeCellPrefix($n,kn),On={class:"cell",style:{}};return Cn.showOverflowTooltip&&(On.class=`${On.class} ${unref($e.namespace)}-tooltip`,On.style={width:`${($n.column.realWidth||Number($n.column.width))-1}px`}),Lt(wn),h$3("div",On,[An,wn])}),Cn},getPropsData:(...Cn)=>Cn.reduce((En,$n)=>(Array.isArray($n)&&$n.forEach(wn=>{En[wn]=$[wn]}),En),{}),getColumnElIndex:(Cn,En)=>Array.prototype.indexOf.call(Cn,En),updateColumnOrder:()=>{ae.value.store.commit("updateColumnOrder",ie.columnConfig.value)}}}var defaultProps={type:{type:String,default:"default"},label:String,className:String,labelClassName:String,property:String,prop:String,width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},renderHeader:Function,sortable:{type:[Boolean,String],default:!1},sortMethod:Function,sortBy:[String,Function,Array],resizable:{type:Boolean,default:!0},columnKey:String,align:String,headerAlign:String,showOverflowTooltip:[Boolean,Object],fixed:[Boolean,String],formatter:Function,selectable:Function,reserveSelection:Boolean,filterMethod:Function,filteredValue:Array,filters:Array,filterPlacement:String,filterMultiple:{type:Boolean,default:!0},index:[Number,Function],sortOrders:{type:Array,default:()=>["ascending","descending",null],validator:$=>$.every(oe=>["ascending","descending",null].includes(oe))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup($,{slots:oe}){const ae=getCurrentInstance(),ie=ref({}),le=computed(()=>{let bn=ae.parent;for(;bn&&!bn.tableId;)bn=bn.parent;return bn}),{registerNormalWatchers:pe,registerComplexWatchers:_e}=useWatcher(le,$),{columnId:Ce,isSubColumn:$e,realHeaderAlign:xe,columnOrTableParent:Ie,setColumnWidth:Ne,setColumnForcedProps:Fe,setColumnRenders:ze,getPropsData:At,getColumnElIndex:Lt,realAlign:hn,updateColumnOrder:vn}=useRender($,oe,le),_n=Ie.value;Ce.value=`${_n.tableId||_n.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{$e.value=le.value!==_n;const bn=$.type||"default",Cn=$.sortable===""?!0:$.sortable,En={...cellStarts[bn],id:Ce.value,type:bn,property:$.prop||$.property,align:hn,headerAlign:xe,showOverflowTooltip:$.showOverflowTooltip,filterable:$.filters||$.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:Cn,index:$.index,rawColumnKey:ae.vnode.key};let kn=At(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);kn=mergeOptions$1(En,kn),kn=compose(ze,Ne,Fe)(kn),ie.value=kn,pe(),_e()}),onMounted(()=>{var bn;const Cn=Ie.value,En=$e.value?Cn.vnode.el.children:(bn=Cn.refs.hiddenColumns)==null?void 0:bn.children,$n=()=>Lt(En||[],ae.vnode.el);ie.value.getColumnIndex=$n,$n()>-1&&le.value.store.commit("insertColumn",ie.value,$e.value?Cn.columnConfig.value:null,vn)}),onBeforeUnmount(()=>{le.value.store.commit("removeColumn",ie.value,$e.value?_n.columnConfig.value:null,vn)}),ae.columnId=Ce.value,ae.columnConfig=ie},render(){var $,oe,ae;try{const ie=(oe=($=this.$slots).default)==null?void 0:oe.call($,{row:{},column:{},$index:-1}),le=[];if(Array.isArray(ie))for(const _e of ie)((ae=_e.type)==null?void 0:ae.name)==="ElTableColumn"||_e.shapeFlag&2?le.push(_e):_e.type===Fragment&&Array.isArray(_e.children)&&_e.children.forEach(Ce=>{(Ce==null?void 0:Ce.patchFlag)!==1024&&!isString$7(Ce==null?void 0:Ce.children)&&le.push(Ce)});return h$3("div",le)}catch{return h$3("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=($=>($.ASC="asc",$.DESC="desc",$))(SortOrder||{}),Alignment=($=>($.CENTER="center",$.RIGHT="right",$))(Alignment||{}),FixedDir=($=>($.LEFT="left",$.RIGHT="right",$))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=($,oe,ae)=>{var ie;const le={flexGrow:0,flexShrink:0,...ae?{}:{flexGrow:$.flexGrow||0,flexShrink:$.flexShrink||1}};ae||(le.flexShrink=1);const pe={...(ie=$.style)!=null?ie:{},...le,flexBasis:"auto",width:$.width};return oe||($.maxWidth&&(pe.maxWidth=$.maxWidth),$.minWidth&&(pe.minWidth=$.minWidth)),pe};function useColumns($,oe,ae){const ie=computed(()=>unref(oe).filter(Lt=>!Lt.hidden)),le=computed(()=>unref(ie).filter(Lt=>Lt.fixed==="left"||Lt.fixed===!0)),pe=computed(()=>unref(ie).filter(Lt=>Lt.fixed==="right")),_e=computed(()=>unref(ie).filter(Lt=>!Lt.fixed)),Ce=computed(()=>{const Lt=[];return unref(le).forEach(hn=>{Lt.push({...hn,placeholderSign})}),unref(_e).forEach(hn=>{Lt.push(hn)}),unref(pe).forEach(hn=>{Lt.push({...hn,placeholderSign})}),Lt}),$e=computed(()=>unref(le).length||unref(pe).length),xe=computed(()=>unref(oe).reduce((hn,vn)=>(hn[vn.key]=calcColumnStyle(vn,unref(ae),$.fixed),hn),{})),Ie=computed(()=>unref(ie).reduce((Lt,hn)=>Lt+hn.width,0)),Ne=Lt=>unref(oe).find(hn=>hn.key===Lt),Fe=Lt=>unref(xe)[Lt],ze=(Lt,hn)=>{Lt.width=hn};function At(Lt){var hn;const{key:vn}=Lt.currentTarget.dataset;if(!vn)return;const{sortState:_n,sortBy:bn}=$;let Cn=SortOrder.ASC;isObject$8(_n)?Cn=oppositeOrderMap[_n[vn]]:Cn=oppositeOrderMap[bn.order],(hn=$.onColumnSort)==null||hn.call($,{column:Ne(vn),key:vn,order:Cn})}return{columns:oe,columnsStyles:xe,columnsTotalWidth:Ie,fixedColumnsOnLeft:le,fixedColumnsOnRight:pe,hasFixedColumns:$e,mainColumns:Ce,normalColumns:_e,visibleColumns:ie,getColumn:Ne,getColumnStyle:Fe,updateColumnWidth:ze,onColumnSorted:At}}const useScrollbar=($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie,onMaybeEndReached:le})=>{const pe=ref({scrollLeft:0,scrollTop:0});function _e(ze){var At,Lt,hn;const{scrollTop:vn}=ze;(At=oe.value)==null||At.scrollTo(ze),(Lt=ae.value)==null||Lt.scrollToTop(vn),(hn=ie.value)==null||hn.scrollToTop(vn)}function Ce(ze){pe.value=ze,_e(ze)}function $e(ze){pe.value.scrollTop=ze,_e(unref(pe))}function xe(ze){var At,Lt;pe.value.scrollLeft=ze,(Lt=(At=oe.value)==null?void 0:At.scrollTo)==null||Lt.call(At,unref(pe))}function Ie(ze){var At;Ce(ze),(At=$.onScroll)==null||At.call($,ze)}function Ne({scrollTop:ze}){const{scrollTop:At}=unref(pe);ze!==At&&$e(ze)}function Fe(ze,At="auto"){var Lt;(Lt=oe.value)==null||Lt.scrollToRow(ze,At)}return watch(()=>unref(pe).scrollTop,(ze,At)=>{ze>At&&le()}),{scrollPos:pe,scrollTo:Ce,scrollToLeft:xe,scrollToTop:$e,scrollToRow:Fe,onScroll:Ie,onVerticalScroll:Ne}},useRow=($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie})=>{const le=getCurrentInstance(),{emit:pe}=le,_e=shallowRef(!1),Ce=shallowRef(null),$e=ref($.defaultExpandedRowKeys||[]),xe=ref(-1),Ie=shallowRef(null),Ne=ref({}),Fe=ref({}),ze=shallowRef({}),At=shallowRef({}),Lt=shallowRef({}),hn=computed(()=>isNumber$5($.estimatedRowHeight));function vn(Tn){var xn;(xn=$.onRowsRendered)==null||xn.call($,Tn),Tn.rowCacheEnd>unref(xe)&&(xe.value=Tn.rowCacheEnd)}function _n({hovered:Tn,rowKey:xn}){Ce.value=Tn?xn:null}function bn({expanded:Tn,rowData:xn,rowIndex:kn,rowKey:An}){var On,Nn;const Rn=[...unref($e)],zn=Rn.indexOf(An);Tn?zn===-1&&Rn.push(An):zn>-1&&Rn.splice(zn,1),$e.value=Rn,pe("update:expandedRowKeys",Rn),(On=$.onRowExpand)==null||On.call($,{expanded:Tn,rowData:xn,rowIndex:kn,rowKey:An}),(Nn=$.onExpandedRowsChange)==null||Nn.call($,Rn)}const Cn=debounce(()=>{var Tn,xn,kn,An;_e.value=!0,Ne.value={...unref(Ne),...unref(Fe)},En(unref(Ie),!1),Fe.value={},Ie.value=null,(Tn=oe.value)==null||Tn.forceUpdate(),(xn=ae.value)==null||xn.forceUpdate(),(kn=ie.value)==null||kn.forceUpdate(),(An=le.proxy)==null||An.$forceUpdate(),_e.value=!1},0);function En(Tn,xn=!1){unref(hn)&&[oe,ae,ie].forEach(kn=>{const An=unref(kn);An&&An.resetAfterRowIndex(Tn,xn)})}function $n(Tn,xn,kn){const An=unref(Ie);(An===null||An>kn)&&(Ie.value=kn),Fe.value[Tn]=xn}function wn({rowKey:Tn,height:xn,rowIndex:kn},An){An?An===FixedDir.RIGHT?Lt.value[Tn]=xn:ze.value[Tn]=xn:At.value[Tn]=xn;const On=Math.max(...[ze,Lt,At].map(Nn=>Nn.value[Tn]||0));unref(Ne)[Tn]!==On&&($n(Tn,On,kn),Cn())}return{hoveringRowKey:Ce,expandedRowKeys:$e,lastRenderedRowIndex:xe,isDynamic:hn,isResetting:_e,rowHeights:Ne,resetAfterIndex:En,onRowExpanded:bn,onRowHovered:_n,onRowsRendered:vn,onRowHeightChange:wn}},useData=($,{expandedRowKeys:oe,lastRenderedRowIndex:ae,resetAfterIndex:ie})=>{const le=ref({}),pe=computed(()=>{const Ce={},{data:$e,rowKey:xe}=$,Ie=unref(oe);if(!Ie||!Ie.length)return $e;const Ne=[],Fe=new Set;Ie.forEach(At=>Fe.add(At));let ze=$e.slice();for(ze.forEach(At=>Ce[At[xe]]=0);ze.length>0;){const At=ze.shift();Ne.push(At),Fe.has(At[xe])&&Array.isArray(At.children)&&At.children.length>0&&(ze=[...At.children,...ze],At.children.forEach(Lt=>Ce[Lt[xe]]=Ce[At[xe]]+1))}return le.value=Ce,Ne}),_e=computed(()=>{const{data:Ce,expandColumnKey:$e}=$;return $e?unref(pe):Ce});return watch(_e,(Ce,$e)=>{Ce!==$e&&(ae.value=-1,ie(0,!0))}),{data:_e,depthMap:le}},sumReducer=($,oe)=>$+oe,sum=$=>isArray$c($)?$.reduce(sumReducer,0):$,tryCall=($,oe,ae={})=>isFunction$5($)?$(oe):$??ae,enforceUnit=$=>(["width","maxWidth","minWidth","height"].forEach(oe=>{$[oe]=addUnit($[oe])}),$),componentToSlot=$=>isVNode$1($)?oe=>h$3($,oe):$,useStyles=($,{columnsTotalWidth:oe,data:ae,fixedColumnsOnLeft:ie,fixedColumnsOnRight:le})=>{const pe=computed(()=>{const{fixed:bn,width:Cn,vScrollbarSize:En}=$,$n=Cn-En;return bn?Math.max(Math.round(unref(oe)),$n):$n}),_e=computed(()=>unref(pe)+($.fixed?$.vScrollbarSize:0)),Ce=computed(()=>{const{height:bn=0,maxHeight:Cn=0,footerHeight:En,hScrollbarSize:$n}=$;if(Cn>0){const wn=unref(At),Tn=unref($e),kn=unref(ze)+wn+Tn+$n;return Math.min(kn,Cn-En)}return bn-En}),$e=computed(()=>{const{rowHeight:bn,estimatedRowHeight:Cn}=$,En=unref(ae);return isNumber$5(Cn)?En.length*Cn:En.length*bn}),xe=computed(()=>{const{maxHeight:bn}=$,Cn=unref(Ce);if(isNumber$5(bn)&&bn>0)return Cn;const En=unref($e)+unref(ze)+unref(At);return Math.min(Cn,En)}),Ie=bn=>bn.width,Ne=computed(()=>sum(unref(ie).map(Ie))),Fe=computed(()=>sum(unref(le).map(Ie))),ze=computed(()=>sum($.headerHeight)),At=computed(()=>{var bn;return(((bn=$.fixedData)==null?void 0:bn.length)||0)*$.rowHeight}),Lt=computed(()=>unref(Ce)-unref(ze)-unref(At)),hn=computed(()=>{const{style:bn={},height:Cn,width:En}=$;return enforceUnit({...bn,height:Cn,width:En})}),vn=computed(()=>enforceUnit({height:$.footerHeight})),_n=computed(()=>({top:addUnit(unref(ze)),bottom:addUnit($.footerHeight),width:addUnit($.width)}));return{bodyWidth:pe,fixedTableHeight:xe,mainTableHeight:Ce,leftTableWidth:Ne,rightTableWidth:Fe,headerWidth:_e,rowsHeight:$e,windowHeight:Lt,footerHeight:vn,emptyStyle:_n,rootStyle:hn,headerHeight:ze}},useAutoResize=$=>{const oe=ref(),ae=ref(0),ie=ref(0);let le;return onMounted(()=>{le=useResizeObserver(oe,([pe])=>{const{width:_e,height:Ce}=pe.contentRect,{paddingLeft:$e,paddingRight:xe,paddingTop:Ie,paddingBottom:Ne}=getComputedStyle(pe.target),Fe=Number.parseInt($e)||0,ze=Number.parseInt(xe)||0,At=Number.parseInt(Ie)||0,Lt=Number.parseInt(Ne)||0;ae.value=_e-Fe-ze,ie.value=Ce-At-Lt}).stop}),onBeforeUnmount(()=>{le==null||le()}),watch([ae,ie],([pe,_e])=>{var Ce;(Ce=$.onResize)==null||Ce.call($,{width:pe,height:_e})}),{sizer:oe,width:ae,height:ie}};function useTable($){const oe=ref(),ae=ref(),ie=ref(),{columns:le,columnsStyles:pe,columnsTotalWidth:_e,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e,hasFixedColumns:xe,mainColumns:Ie,onColumnSorted:Ne}=useColumns($,toRef$1($,"columns"),toRef$1($,"fixed")),{scrollTo:Fe,scrollToLeft:ze,scrollToTop:At,scrollToRow:Lt,onScroll:hn,onVerticalScroll:vn,scrollPos:_n}=useScrollbar($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie,onMaybeEndReached:Un}),{expandedRowKeys:bn,hoveringRowKey:Cn,lastRenderedRowIndex:En,isDynamic:$n,isResetting:wn,rowHeights:Tn,resetAfterIndex:xn,onRowExpanded:kn,onRowHeightChange:An,onRowHovered:On,onRowsRendered:Nn}=useRow($,{mainTableRef:oe,leftTableRef:ae,rightTableRef:ie}),{data:Rn,depthMap:zn}=useData($,{expandedRowKeys:bn,lastRenderedRowIndex:En,resetAfterIndex:xn}),{bodyWidth:Bn,fixedTableHeight:Mn,mainTableHeight:Fn,leftTableWidth:Vn,rightTableWidth:jn,headerWidth:Zn,rowsHeight:Gn,windowHeight:Xn,footerHeight:cr,emptyStyle:nr,rootStyle:er,headerHeight:rr}=useStyles($,{columnsTotalWidth:_e,data:Rn,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e}),qn=shallowRef(!1),Yn=ref(),ar=computed(()=>{const tr=unref(Rn).length===0;return isArray$c($.fixedData)?$.fixedData.length===0&&tr:tr});function pr(tr){const{estimatedRowHeight:ur,rowHeight:_r,rowKey:Er}=$;return ur?unref(Tn)[unref(Rn)[tr][Er]]||ur:_r}function Un(){const{onEndReached:tr}=$;if(!tr)return;const{scrollTop:ur}=unref(_n),_r=unref(Gn),Er=unref(Xn),sr=_r-(ur+Er)+$.hScrollbarSize;unref(En)>=0&&_r===ur+unref(Fn)-unref(rr)&&tr(sr)}return watch(()=>$.expandedRowKeys,tr=>bn.value=tr,{deep:!0}),{columns:le,containerRef:Yn,mainTableRef:oe,leftTableRef:ae,rightTableRef:ie,isDynamic:$n,isResetting:wn,isScrolling:qn,hoveringRowKey:Cn,hasFixedColumns:xe,columnsStyles:pe,columnsTotalWidth:_e,data:Rn,expandedRowKeys:bn,depthMap:zn,fixedColumnsOnLeft:Ce,fixedColumnsOnRight:$e,mainColumns:Ie,bodyWidth:Bn,emptyStyle:nr,rootStyle:er,headerWidth:Zn,footerHeight:cr,mainTableHeight:Fn,fixedTableHeight:Mn,leftTableWidth:Vn,rightTableWidth:jn,showEmpty:ar,getRowHeight:pr,onColumnSorted:Ne,onRowHovered:On,onRowExpanded:kn,onRowsRendered:Nn,onRowHeightChange:An,scrollTo:Fe,scrollToLeft:ze,scrollToTop:At,scrollToRow:Lt,onScroll:hn,onVerticalScroll:vn}}const TableV2InjectionKey=Symbol("tableV2"),classType=String,columns={type:definePropType(Array),required:!0},fixedDataType={type:definePropType(Array)},dataType={...fixedDataType,required:!0},expandColumnKey=String,expandKeys={type:definePropType(Array),default:()=>mutable([])},requiredNumber={type:Number,required:!0},rowKey={type:definePropType([String,Number,Symbol]),default:"id"},styleType={type:definePropType(Object)},tableV2RowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},depth:Number,expandColumnKey,estimatedRowHeight:{...virtualizedGridProps.estimatedRowHeight,default:void 0},isScrolling:Boolean,onRowExpand:{type:definePropType(Function)},onRowHover:{type:definePropType(Function)},onRowHeightChange:{type:definePropType(Function)},rowData:{type:definePropType(Object),required:!0},rowEventHandlers:{type:definePropType(Object)},rowIndex:{type:Number,required:!0},rowKey,style:{type:definePropType(Object)}}),requiredNumberType={type:Number,required:!0},tableV2HeaderProps=buildProps({class:String,columns,fixedHeaderData:{type:definePropType(Array)},headerData:{type:definePropType(Array),required:!0},headerHeight:{type:definePropType([Number,Array]),default:50},rowWidth:requiredNumberType,rowHeight:{type:Number,default:50},height:requiredNumberType,width:requiredNumberType}),tableV2GridProps=buildProps({columns,data:dataType,fixedData:fixedDataType,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,width:requiredNumber,height:requiredNumber,headerWidth:requiredNumber,headerHeight:tableV2HeaderProps.headerHeight,bodyWidth:requiredNumber,rowHeight:requiredNumber,cache:virtualizedListProps.cache,useIsScrolling:Boolean,scrollbarAlwaysOn:virtualizedGridProps.scrollbarAlwaysOn,scrollbarStartGap:virtualizedGridProps.scrollbarStartGap,scrollbarEndGap:virtualizedGridProps.scrollbarEndGap,class:classType,style:styleType,containerStyle:styleType,getRowHeight:{type:definePropType(Function),required:!0},rowKey:tableV2RowProps.rowKey,onRowsRendered:{type:definePropType(Function)},onScroll:{type:definePropType(Function)}}),tableV2Props=buildProps({cache:tableV2GridProps.cache,estimatedRowHeight:tableV2RowProps.estimatedRowHeight,rowKey,headerClass:{type:definePropType([String,Function])},headerProps:{type:definePropType([Object,Function])},headerCellProps:{type:definePropType([Object,Function])},headerHeight:tableV2HeaderProps.headerHeight,footerHeight:{type:Number,default:0},rowClass:{type:definePropType([String,Function])},rowProps:{type:definePropType([Object,Function])},rowHeight:{type:Number,default:50},cellProps:{type:definePropType([Object,Function])},columns,data:dataType,dataGetter:{type:definePropType(Function)},fixedData:fixedDataType,expandColumnKey:tableV2RowProps.expandColumnKey,expandedRowKeys:expandKeys,defaultExpandedRowKeys:expandKeys,class:classType,fixed:Boolean,style:{type:definePropType(Object)},width:requiredNumber,height:requiredNumber,maxHeight:Number,useIsScrolling:Boolean,indentSize:{type:Number,default:12},iconSize:{type:Number,default:12},hScrollbarSize:virtualizedGridProps.hScrollbarSize,vScrollbarSize:virtualizedGridProps.vScrollbarSize,scrollbarAlwaysOn:virtualizedScrollbarProps.alwaysOn,sortBy:{type:definePropType(Object),default:()=>({})},sortState:{type:definePropType(Object),default:void 0},onColumnSort:{type:definePropType(Function)},onExpandedRowsChange:{type:definePropType(Function)},onEndReached:{type:definePropType(Function)},onRowExpand:tableV2RowProps.onRowExpand,onScroll:tableV2GridProps.onScroll,onRowsRendered:tableV2GridProps.onRowsRendered,rowEventHandlers:tableV2RowProps.rowEventHandlers}),TableV2Cell=($,{slots:oe})=>{var ae;const{cellData:ie,style:le}=$,pe=((ae=ie==null?void 0:ie.toString)==null?void 0:ae.call(ie))||"";return createVNode("div",{class:$.class,title:pe,style:le},[oe.default?oe.default($):pe])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=($,{slots:oe})=>{var ae,ie;return oe.default?oe.default($):createVNode("div",{class:$.class,title:(ae=$.column)==null?void 0:ae.title},[(ie=$.column)==null?void 0:ie.title])};HeaderCell.displayName="ElTableV2HeaderCell";HeaderCell.inheritAttrs=!1;const tableV2HeaderRowProps=buildProps({class:String,columns,columnsStyles:{type:definePropType(Object),required:!0},headerIndex:Number,style:{type:definePropType(Object)}}),TableV2HeaderRow=defineComponent({name:"ElTableV2HeaderRow",props:tableV2HeaderRowProps,setup($,{slots:oe}){return()=>{const{columns:ae,columnsStyles:ie,headerIndex:le,style:pe}=$;let _e=ae.map((Ce,$e)=>oe.cell({columns:ae,column:Ce,columnIndex:$e,headerIndex:le,style:ie[Ce.key]}));return oe.header&&(_e=oe.header({cells:_e.map(Ce=>isArray$c(Ce)&&Ce.length===1?Ce[0]:Ce),columns:ae,headerIndex:le})),createVNode("div",{class:$.class,style:pe,role:"row"},[_e])}}}),COMPONENT_NAME$7="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$7,props:tableV2HeaderProps,setup($,{slots:oe,expose:ae}){const ie=useNamespace("table-v2"),le=ref(),pe=computed(()=>enforceUnit({width:$.width,height:$.height})),_e=computed(()=>enforceUnit({width:$.rowWidth,height:$.height})),Ce=computed(()=>castArray$1(unref($.headerHeight))),$e=Ne=>{const Fe=unref(le);nextTick(()=>{Fe!=null&&Fe.scroll&&Fe.scroll({left:Ne})})},xe=()=>{const Ne=ie.e("fixed-header-row"),{columns:Fe,fixedHeaderData:ze,rowHeight:At}=$;return ze==null?void 0:ze.map((Lt,hn)=>{var vn;const _n=enforceUnit({height:At,width:"100%"});return(vn=oe.fixed)==null?void 0:vn.call(oe,{class:Ne,columns:Fe,rowData:Lt,rowIndex:-(hn+1),style:_n})})},Ie=()=>{const Ne=ie.e("dynamic-header-row"),{columns:Fe}=$;return unref(Ce).map((ze,At)=>{var Lt;const hn=enforceUnit({width:"100%",height:ze});return(Lt=oe.dynamic)==null?void 0:Lt.call(oe,{class:Ne,columns:Fe,headerIndex:At,style:hn})})};return ae({scrollToLeft:$e}),()=>{if(!($.height<=0))return createVNode("div",{ref:le,class:$.class,style:unref(pe),role:"rowgroup"},[createVNode("div",{style:unref(_e),class:ie.e("header")},[Ie(),xe()])])}}}),useTableRow=$=>{const{isScrolling:oe}=inject(TableV2InjectionKey),ae=ref(!1),ie=ref(),le=computed(()=>isNumber$5($.estimatedRowHeight)&&$.rowIndex>=0),pe=($e=!1)=>{const xe=unref(ie);if(!xe)return;const{columns:Ie,onRowHeightChange:Ne,rowKey:Fe,rowIndex:ze,style:At}=$,{height:Lt}=xe.getBoundingClientRect();ae.value=!0,nextTick(()=>{if($e||Lt!==Number.parseInt(At.height)){const hn=Ie[0],vn=(hn==null?void 0:hn.placeholderSign)===placeholderSign;Ne==null||Ne({rowKey:Fe,height:Lt,rowIndex:ze},hn&&!vn&&hn.fixed)}})},_e=computed(()=>{const{rowData:$e,rowIndex:xe,rowKey:Ie,onRowHover:Ne}=$,Fe=$.rowEventHandlers||{},ze={};return Object.entries(Fe).forEach(([At,Lt])=>{isFunction$5(Lt)&&(ze[At]=hn=>{Lt({event:hn,rowData:$e,rowIndex:xe,rowKey:Ie})})}),Ne&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:At,hovered:Lt})=>{const hn=ze[At];ze[At]=vn=>{Ne({event:vn,hovered:Lt,rowData:$e,rowIndex:xe,rowKey:Ie}),hn==null||hn(vn)}}),ze}),Ce=$e=>{const{onRowExpand:xe,rowData:Ie,rowIndex:Ne,rowKey:Fe}=$;xe==null||xe({expanded:$e,rowData:Ie,rowIndex:Ne,rowKey:Fe})};return onMounted(()=>{unref(le)&&pe(!0)}),{isScrolling:oe,measurable:le,measured:ae,rowRef:ie,eventHandlers:_e,onExpand:Ce}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup($,{expose:oe,slots:ae,attrs:ie}){const{eventHandlers:le,isScrolling:pe,measurable:_e,measured:Ce,rowRef:$e,onExpand:xe}=useTableRow($);return oe({onExpand:xe}),()=>{const{columns:Ie,columnsStyles:Ne,expandColumnKey:Fe,depth:ze,rowData:At,rowIndex:Lt,style:hn}=$;let vn=Ie.map((_n,bn)=>{const Cn=isArray$c(At.children)&&At.children.length>0&&_n.key===Fe;return ae.cell({column:_n,columns:Ie,columnIndex:bn,depth:ze,style:Ne[_n.key],rowData:At,rowIndex:Lt,isScrolling:unref(pe),expandIconProps:Cn?{rowData:At,rowIndex:Lt,onExpand:xe}:void 0})});if(ae.row&&(vn=ae.row({cells:vn.map(_n=>isArray$c(_n)&&_n.length===1?_n[0]:_n),style:hn,columns:Ie,depth:ze,rowData:At,rowIndex:Lt,isScrolling:unref(pe)})),unref(_e)){const{height:_n,...bn}=hn||{},Cn=unref(Ce);return createVNode("div",mergeProps({ref:$e,class:$.class,style:Cn?hn:bn,role:"row"},ie,unref(le)),[vn])}return createVNode("div",mergeProps(ie,{ref:$e,class:$.class,style:hn,role:"row"},unref(le)),[vn])}}}),SortIcon=$=>{const{sortOrder:oe}=$;return createVNode(ElIcon,{size:14,class:$.class},{default:()=>[oe===SortOrder.ASC?createVNode(sort_up_default,null,null):createVNode(sort_down_default,null,null)]})},ExpandIcon=$=>{const{expanded:oe,expandable:ae,onExpand:ie,style:le,size:pe}=$,_e={onClick:ae?()=>ie(!oe):void 0,class:$.class};return createVNode(ElIcon,mergeProps(_e,{size:pe,style:le}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$5="ElTableV2Grid",useTableGrid=$=>{const oe=ref(),ae=ref(),ie=computed(()=>{const{data:Lt,rowHeight:hn,estimatedRowHeight:vn}=$;if(!vn)return Lt.length*hn}),le=computed(()=>{const{fixedData:Lt,rowHeight:hn}=$;return((Lt==null?void 0:Lt.length)||0)*hn}),pe=computed(()=>sum($.headerHeight)),_e=computed(()=>{const{height:Lt}=$;return Math.max(0,Lt-unref(pe)-unref(le))}),Ce=computed(()=>unref(pe)+unref(le)>0),$e=({data:Lt,rowIndex:hn})=>Lt[hn][$.rowKey];function xe({rowCacheStart:Lt,rowCacheEnd:hn,rowVisibleStart:vn,rowVisibleEnd:_n}){var bn;(bn=$.onRowsRendered)==null||bn.call($,{rowCacheStart:Lt,rowCacheEnd:hn,rowVisibleStart:vn,rowVisibleEnd:_n})}function Ie(Lt,hn){var vn;(vn=ae.value)==null||vn.resetAfterRowIndex(Lt,hn)}function Ne(Lt,hn){const vn=unref(oe),_n=unref(ae);!vn||!_n||(isObject$8(Lt)?(vn.scrollToLeft(Lt.scrollLeft),_n.scrollTo(Lt)):(vn.scrollToLeft(Lt),_n.scrollTo({scrollLeft:Lt,scrollTop:hn})))}function Fe(Lt){var hn;(hn=unref(ae))==null||hn.scrollTo({scrollTop:Lt})}function ze(Lt,hn){var vn;(vn=unref(ae))==null||vn.scrollToItem(Lt,1,hn)}function At(){var Lt,hn;(Lt=unref(ae))==null||Lt.$forceUpdate(),(hn=unref(oe))==null||hn.$forceUpdate()}return{bodyRef:ae,forceUpdate:At,fixedRowHeight:le,gridHeight:_e,hasHeader:Ce,headerHeight:pe,headerRef:oe,totalHeight:ie,itemKey:$e,onItemRendered:xe,resetAfterRowIndex:Ie,scrollTo:Ne,scrollToTop:Fe,scrollToRow:ze}},TableGrid=defineComponent({name:COMPONENT_NAME$5,props:tableV2GridProps,setup($,{slots:oe,expose:ae}){const{ns:ie}=inject(TableV2InjectionKey),{bodyRef:le,fixedRowHeight:pe,gridHeight:_e,hasHeader:Ce,headerRef:$e,headerHeight:xe,totalHeight:Ie,forceUpdate:Ne,itemKey:Fe,onItemRendered:ze,resetAfterRowIndex:At,scrollTo:Lt,scrollToTop:hn,scrollToRow:vn}=useTableGrid($);ae({forceUpdate:Ne,totalHeight:Ie,scrollTo:Lt,scrollToTop:hn,scrollToRow:vn,resetAfterRowIndex:At});const _n=()=>$.bodyWidth;return()=>{const{cache:bn,columns:Cn,data:En,fixedData:$n,useIsScrolling:wn,scrollbarAlwaysOn:Tn,scrollbarEndGap:xn,scrollbarStartGap:kn,style:An,rowHeight:On,bodyWidth:Nn,estimatedRowHeight:Rn,headerWidth:zn,height:Bn,width:Mn,getRowHeight:Fn,onScroll:Vn}=$,jn=isNumber$5(Rn),Zn=jn?DynamicSizeGrid:FixedSizeGrid,Gn=unref(xe);return createVNode("div",{role:"table",class:[ie.e("table"),$.class],style:An},[createVNode(Zn,{ref:le,data:En,useIsScrolling:wn,itemKey:Fe,columnCache:0,columnWidth:jn?_n:Nn,totalColumn:1,totalRow:En.length,rowCache:bn,rowHeight:jn?Fn:On,width:Mn,height:unref(_e),class:ie.e("body"),role:"rowgroup",scrollbarStartGap:kn,scrollbarEndGap:xn,scrollbarAlwaysOn:Tn,onScroll:Vn,onItemRendered:ze,perfMode:!1},{default:Xn=>{var cr;const nr=En[Xn.rowIndex];return(cr=oe.row)==null?void 0:cr.call(oe,{...Xn,columns:Cn,rowData:nr})}}),unref(Ce)&&createVNode(TableV2Header,{ref:$e,class:ie.e("header-wrapper"),columns:Cn,headerData:En,headerHeight:$.headerHeight,fixedHeaderData:$n,rowWidth:zn,rowHeight:On,width:Mn,height:Math.min(Gn+unref(pe),Bn)},{dynamic:oe.header,fixed:oe.row})])}}});function _isSlot$5($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const MainTable=($,{slots:oe})=>{const{mainTableRef:ae,...ie}=$;return createVNode(TableGrid,mergeProps({ref:ae},ie),_isSlot$5(oe)?oe:{default:()=>[oe]})};function _isSlot$4($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable$1=($,{slots:oe})=>{if(!$.columns.length)return;const{leftTableRef:ae,...ie}=$;return createVNode(TableGrid,mergeProps({ref:ae},ie),_isSlot$4(oe)?oe:{default:()=>[oe]})};function _isSlot$3($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const LeftTable=($,{slots:oe})=>{if(!$.columns.length)return;const{rightTableRef:ae,...ie}=$;return createVNode(TableGrid,mergeProps({ref:ae},ie),_isSlot$3(oe)?oe:{default:()=>[oe]})};function _isSlot$2($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const RowRenderer=($,{slots:oe})=>{const{columns:ae,columnsStyles:ie,depthMap:le,expandColumnKey:pe,expandedRowKeys:_e,estimatedRowHeight:Ce,hasFixedColumns:$e,hoveringRowKey:xe,rowData:Ie,rowIndex:Ne,style:Fe,isScrolling:ze,rowProps:At,rowClass:Lt,rowKey:hn,rowEventHandlers:vn,ns:_n,onRowHovered:bn,onRowExpanded:Cn}=$,En=tryCall(Lt,{columns:ae,rowData:Ie,rowIndex:Ne},""),$n=tryCall(At,{columns:ae,rowData:Ie,rowIndex:Ne}),wn=Ie[hn],Tn=le[wn]||0,xn=!!pe,kn=Ne<0,An=[_n.e("row"),En,{[_n.e(`row-depth-${Tn}`)]:xn&&Ne>=0,[_n.is("expanded")]:xn&&_e.includes(wn),[_n.is("hovered")]:!ze&&wn===xe,[_n.is("fixed")]:!Tn&&kn,[_n.is("customized")]:!!oe.row}],On=$e?bn:void 0,Nn={...$n,columns:ae,columnsStyles:ie,class:An,depth:Tn,expandColumnKey:pe,estimatedRowHeight:kn?void 0:Ce,isScrolling:ze,rowIndex:Ne,rowData:Ie,rowKey:wn,rowEventHandlers:vn,style:Fe};return createVNode(TableV2Row,mergeProps(Nn,{onRowHover:On,onRowExpand:Cn}),_isSlot$2(oe)?oe:{default:()=>[oe]})},CellRenderer=({columns:$,column:oe,columnIndex:ae,depth:ie,expandIconProps:le,isScrolling:pe,rowData:_e,rowIndex:Ce,style:$e,expandedRowKeys:xe,ns:Ie,cellProps:Ne,expandColumnKey:Fe,indentSize:ze,iconSize:At,rowKey:Lt},{slots:hn})=>{const vn=enforceUnit($e);if(oe.placeholderSign===placeholderSign)return createVNode("div",{class:Ie.em("row-cell","placeholder"),style:vn},null);const{cellRenderer:_n,dataKey:bn,dataGetter:Cn}=oe,$n=componentToSlot(_n)||hn.default||(Bn=>createVNode(TableV2Cell,Bn,null)),wn=isFunction$5(Cn)?Cn({columns:$,column:oe,columnIndex:ae,rowData:_e,rowIndex:Ce}):get$1(_e,bn??""),Tn=tryCall(Ne,{cellData:wn,columns:$,column:oe,columnIndex:ae,rowIndex:Ce,rowData:_e}),xn={class:Ie.e("cell-text"),columns:$,column:oe,columnIndex:ae,cellData:wn,isScrolling:pe,rowData:_e,rowIndex:Ce},kn=$n(xn),An=[Ie.e("row-cell"),oe.class,oe.align===Alignment.CENTER&&Ie.is("align-center"),oe.align===Alignment.RIGHT&&Ie.is("align-right")],On=Ce>=0&&oe.key===Fe,Nn=Ce>=0&&xe.includes(_e[Lt]);let Rn;const zn=`margin-inline-start: ${ie*ze}px;`;return On&&(isObject$8(le)?Rn=createVNode(ExpandIcon,mergeProps(le,{class:[Ie.e("expand-icon"),Ie.is("expanded",Nn)],size:At,expanded:Nn,style:zn,expandable:!0}),null):Rn=createVNode("div",{style:[zn,`width: ${At}px; height: ${At}px;`].join(" ")},null)),createVNode("div",mergeProps({class:An,style:vn},Tn,{role:"cell"}),[Rn,kn])};CellRenderer.inheritAttrs=!1;function _isSlot$1($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const HeaderRenderer=({columns:$,columnsStyles:oe,headerIndex:ae,style:ie,headerClass:le,headerProps:pe,ns:_e},{slots:Ce})=>{const $e={columns:$,headerIndex:ae},xe=[_e.e("header-row"),tryCall(le,$e,""),{[_e.is("customized")]:!!Ce.header}],Ie={...tryCall(pe,$e),columnsStyles:oe,class:xe,columns:$,headerIndex:ae,style:ie};return createVNode(TableV2HeaderRow,Ie,_isSlot$1(Ce)?Ce:{default:()=>[Ce]})},HeaderCellRenderer=($,{slots:oe})=>{const{column:ae,ns:ie,style:le,onColumnSorted:pe}=$,_e=enforceUnit(le);if(ae.placeholderSign===placeholderSign)return createVNode("div",{class:ie.em("header-row-cell","placeholder"),style:_e},null);const{headerCellRenderer:Ce,headerClass:$e,sortable:xe}=ae,Ie={...$,class:ie.e("header-cell-text")},Fe=(componentToSlot(Ce)||oe.default||(Cn=>createVNode(HeaderCell,Cn,null)))(Ie),{sortBy:ze,sortState:At,headerCellProps:Lt}=$;let hn,vn;if(At){const Cn=At[ae.key];hn=!!oppositeOrderMap[Cn],vn=hn?Cn:SortOrder.ASC}else hn=ae.key===ze.key,vn=hn?ze.order:SortOrder.ASC;const _n=[ie.e("header-cell"),tryCall($e,$,""),ae.align===Alignment.CENTER&&ie.is("align-center"),ae.align===Alignment.RIGHT&&ie.is("align-right"),xe&&ie.is("sortable")],bn={...tryCall(Lt,$),onClick:ae.sortable?pe:void 0,class:_n,style:_e,["data-key"]:ae.key};return createVNode("div",mergeProps(bn,{role:"columnheader"}),[Fe,xe&&createVNode(SortIcon,{class:[ie.e("sort-icon"),hn&&ie.is("sorting")],sortOrder:vn},null)])},Footer$1=($,{slots:oe})=>{var ae;return createVNode("div",{class:$.class,style:$.style},[(ae=oe.default)==null?void 0:ae.call(oe)])};Footer$1.displayName="ElTableV2Footer";const Footer=($,{slots:oe})=>createVNode("div",{class:$.class,style:$.style},[oe.default?oe.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=($,{slots:oe})=>{var ae;return createVNode("div",{class:$.class,style:$.style},[(ae=oe.default)==null?void 0:ae.call(oe)])};Overlay.displayName="ElTableV2Overlay";function _isSlot($){return typeof $=="function"||Object.prototype.toString.call($)==="[object Object]"&&!isVNode$1($)}const COMPONENT_NAME$4="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$4,props:tableV2Props,setup($,{slots:oe,expose:ae}){const ie=useNamespace("table-v2"),{columnsStyles:le,fixedColumnsOnLeft:pe,fixedColumnsOnRight:_e,mainColumns:Ce,mainTableHeight:$e,fixedTableHeight:xe,leftTableWidth:Ie,rightTableWidth:Ne,data:Fe,depthMap:ze,expandedRowKeys:At,hasFixedColumns:Lt,hoveringRowKey:hn,mainTableRef:vn,leftTableRef:_n,rightTableRef:bn,isDynamic:Cn,isResetting:En,isScrolling:$n,bodyWidth:wn,emptyStyle:Tn,rootStyle:xn,headerWidth:kn,footerHeight:An,showEmpty:On,scrollTo:Nn,scrollToLeft:Rn,scrollToTop:zn,scrollToRow:Bn,getRowHeight:Mn,onColumnSorted:Fn,onRowHeightChange:Vn,onRowHovered:jn,onRowExpanded:Zn,onRowsRendered:Gn,onScroll:Xn,onVerticalScroll:cr}=useTable($);return ae({scrollTo:Nn,scrollToLeft:Rn,scrollToTop:zn,scrollToRow:Bn}),provide(TableV2InjectionKey,{ns:ie,isResetting:En,hoveringRowKey:hn,isScrolling:$n}),()=>{const{cache:nr,cellProps:er,estimatedRowHeight:rr,expandColumnKey:qn,fixedData:Yn,headerHeight:ar,headerClass:pr,headerProps:Un,headerCellProps:tr,sortBy:ur,sortState:_r,rowHeight:Er,rowClass:sr,rowEventHandlers:Pr,rowKey:Sr,rowProps:kr,scrollbarAlwaysOn:mr,indentSize:lr,iconSize:hr,useIsScrolling:gr,vScrollbarSize:Or,width:Lr}=$,Vr=unref(Fe),Rr={cache:nr,class:ie.e("main"),columns:unref(Ce),data:Vr,fixedData:Yn,estimatedRowHeight:rr,bodyWidth:unref(wn),headerHeight:ar,headerWidth:unref(kn),height:unref($e),mainTableRef:vn,rowKey:Sr,rowHeight:Er,scrollbarAlwaysOn:mr,scrollbarStartGap:2,scrollbarEndGap:Or,useIsScrolling:gr,width:Lr,getRowHeight:Mn,onRowsRendered:Gn,onScroll:Xn},$r=unref(Ie),Tr=unref(xe),dr={cache:nr,class:ie.e("left"),columns:unref(pe),data:Vr,estimatedRowHeight:rr,leftTableRef:_n,rowHeight:Er,bodyWidth:$r,headerWidth:$r,headerHeight:ar,height:Tr,rowKey:Sr,scrollbarAlwaysOn:mr,scrollbarStartGap:2,scrollbarEndGap:Or,useIsScrolling:gr,width:$r,getRowHeight:Mn,onScroll:cr},ir=unref(Ne)+Or,xr={cache:nr,class:ie.e("right"),columns:unref(_e),data:Vr,estimatedRowHeight:rr,rightTableRef:bn,rowHeight:Er,bodyWidth:ir,headerWidth:ir,headerHeight:ar,height:Tr,rowKey:Sr,scrollbarAlwaysOn:mr,scrollbarStartGap:2,scrollbarEndGap:Or,width:ir,style:`--${unref(ie.namespace)}-table-scrollbar-size: ${Or}px`,useIsScrolling:gr,getRowHeight:Mn,onScroll:cr},Ir=unref(le),Hr={ns:ie,depthMap:unref(ze),columnsStyles:Ir,expandColumnKey:qn,expandedRowKeys:unref(At),estimatedRowHeight:rr,hasFixedColumns:unref(Lt),hoveringRowKey:unref(hn),rowProps:kr,rowClass:sr,rowKey:Sr,rowEventHandlers:Pr,onRowHovered:jn,onRowExpanded:Zn,onRowHeightChange:Vn},Cr={cellProps:er,expandColumnKey:qn,indentSize:lr,iconSize:hr,rowKey:Sr,expandedRowKeys:unref(At),ns:ie},Mr={ns:ie,headerClass:pr,headerProps:Un,columnsStyles:Ir},Ur={ns:ie,sortBy:ur,sortState:_r,headerCellProps:tr,onColumnSorted:Fn},jr={row:Qr=>createVNode(RowRenderer,mergeProps(Qr,Hr),{row:oe.row,cell:Ar=>{let Dr;return oe.cell?createVNode(CellRenderer,mergeProps(Ar,Cr,{style:Ir[Ar.column.key]}),_isSlot(Dr=oe.cell(Ar))?Dr:{default:()=>[Dr]}):createVNode(CellRenderer,mergeProps(Ar,Cr,{style:Ir[Ar.column.key]}),null)}}),header:Qr=>createVNode(HeaderRenderer,mergeProps(Qr,Mr),{header:oe.header,cell:Ar=>{let Dr;return oe["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(Ar,Ur,{style:Ir[Ar.column.key]}),_isSlot(Dr=oe["header-cell"](Ar))?Dr:{default:()=>[Dr]}):createVNode(HeaderCellRenderer,mergeProps(Ar,Ur,{style:Ir[Ar.column.key]}),null)}})},Wr=[$.class,ie.b(),ie.e("root"),{[ie.is("dynamic")]:unref(Cn)}],Xr={class:ie.e("footer"),style:unref(An)};return createVNode("div",{class:Wr,style:unref(xn)},[createVNode(MainTable,Rr,_isSlot(jr)?jr:{default:()=>[jr]}),createVNode(LeftTable$1,dr,_isSlot(jr)?jr:{default:()=>[jr]}),createVNode(LeftTable,xr,_isSlot(jr)?jr:{default:()=>[jr]}),oe.footer&&createVNode(Footer$1,Xr,{default:oe.footer}),unref(On)&&createVNode(Footer,{class:ie.e("empty"),style:unref(Tn)},{default:oe.empty}),oe.overlay&&createVNode(Overlay,{class:ie.e("overlay")},{default:oe.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup($,{slots:oe}){const ae=useNamespace("auto-resizer"),{height:ie,width:le,sizer:pe}=useAutoResize($),_e={width:"100%",height:"100%"};return()=>{var Ce;return createVNode("div",{ref:pe,class:ae.b(),style:_e},[(Ce=oe.default)==null?void 0:Ce.call(oe,{height:ie.value,width:le.value})])}}}),ElTableV2=withInstall(TableV2),ElAutoResizer=withInstall(AutoResizer),tabsRootContextKey=Symbol("tabsRootContextKey"),tabBarProps=buildProps({tabs:{type:definePropType(Array),default:()=>mutable([])}}),COMPONENT_NAME$3="ElTabBar",__default__$k=defineComponent({name:COMPONENT_NAME$3}),_sfc_main$r=defineComponent({...__default__$k,props:tabBarProps,setup($,{expose:oe}){const ae=$,ie=getCurrentInstance(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$3,"<el-tabs><el-tab-bar /></el-tabs>");const pe=useNamespace("tabs"),_e=ref(),Ce=ref(),$e=()=>{let Ie=0,Ne=0;const Fe=["top","bottom"].includes(le.props.tabPosition)?"width":"height",ze=Fe==="width"?"x":"y",At=ze==="x"?"left":"top";return ae.tabs.every(Lt=>{var hn,vn;const _n=(vn=(hn=ie.parent)==null?void 0:hn.refs)==null?void 0:vn[`tab-${Lt.uid}`];if(!_n)return!1;if(!Lt.active)return!0;Ie=_n[`offset${capitalize$1(At)}`],Ne=_n[`client${capitalize$1(Fe)}`];const bn=window.getComputedStyle(_n);return Fe==="width"&&(ae.tabs.length>1&&(Ne-=Number.parseFloat(bn.paddingLeft)+Number.parseFloat(bn.paddingRight)),Ie+=Number.parseFloat(bn.paddingLeft)),!1}),{[Fe]:`${Ne}px`,transform:`translate${capitalize$1(ze)}(${Ie}px)`}},xe=()=>Ce.value=$e();return watch(()=>ae.tabs,async()=>{await nextTick(),xe()},{immediate:!0}),useResizeObserver(_e,()=>xe()),oe({ref:_e,update:xe}),(Ie,Ne)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:_e,class:normalizeClass([unref(pe).e("active-bar"),unref(pe).is(unref(le).props.tabPosition)]),style:normalizeStyle$1(Ce.value)},null,6))}});var TabBar=_export_sfc$1(_sfc_main$r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const tabNavProps=buildProps({panes:{type:definePropType(Array),default:()=>mutable([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),tabNavEmits={tabClick:($,oe,ae)=>ae instanceof Event,tabRemove:($,oe)=>oe instanceof Event},COMPONENT_NAME$2="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$2,props:tabNavProps,emits:tabNavEmits,setup($,{expose:oe,emit:ae}){const ie=getCurrentInstance(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$2,"<el-tabs><tab-nav /></el-tabs>");const pe=useNamespace("tabs"),_e=useDocumentVisibility(),Ce=useWindowFocus(),$e=ref(),xe=ref(),Ie=ref(),Ne=ref(),Fe=ref(!1),ze=ref(0),At=ref(!1),Lt=ref(!0),hn=computed(()=>["top","bottom"].includes(le.props.tabPosition)?"width":"height"),vn=computed(()=>({transform:`translate${hn.value==="width"?"X":"Y"}(-${ze.value}px)`})),_n=()=>{if(!$e.value)return;const xn=$e.value[`offset${capitalize$1(hn.value)}`],kn=ze.value;if(!kn)return;const An=kn>xn?kn-xn:0;ze.value=An},bn=()=>{if(!$e.value||!xe.value)return;const xn=xe.value[`offset${capitalize$1(hn.value)}`],kn=$e.value[`offset${capitalize$1(hn.value)}`],An=ze.value;if(xn-An<=kn)return;const On=xn-An>kn*2?An+kn:xn-kn;ze.value=On},Cn=async()=>{const xn=xe.value;if(!Fe.value||!Ie.value||!$e.value||!xn)return;await nextTick();const kn=Ie.value.querySelector(".is-active");if(!kn)return;const An=$e.value,On=["top","bottom"].includes(le.props.tabPosition),Nn=kn.getBoundingClientRect(),Rn=An.getBoundingClientRect(),zn=On?xn.offsetWidth-Rn.width:xn.offsetHeight-Rn.height,Bn=ze.value;let Mn=Bn;On?(Nn.left<Rn.left&&(Mn=Bn-(Rn.left-Nn.left)),Nn.right>Rn.right&&(Mn=Bn+Nn.right-Rn.right)):(Nn.top<Rn.top&&(Mn=Bn-(Rn.top-Nn.top)),Nn.bottom>Rn.bottom&&(Mn=Bn+(Nn.bottom-Rn.bottom))),Mn=Math.max(Mn,0),ze.value=Math.min(Mn,zn)},En=()=>{var xn;if(!xe.value||!$e.value)return;$.stretch&&((xn=Ne.value)==null||xn.update());const kn=xe.value[`offset${capitalize$1(hn.value)}`],An=$e.value[`offset${capitalize$1(hn.value)}`],On=ze.value;An<kn?(Fe.value=Fe.value||{},Fe.value.prev=On,Fe.value.next=On+An<kn,kn-On<An&&(ze.value=kn-An)):(Fe.value=!1,On>0&&(ze.value=0))},$n=xn=>{const kn=xn.code,{up:An,down:On,left:Nn,right:Rn}=EVENT_CODE;if(![An,On,Nn,Rn].includes(kn))return;const zn=Array.from(xn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Bn=zn.indexOf(xn.target);let Mn;kn===Nn||kn===An?Bn===0?Mn=zn.length-1:Mn=Bn-1:Bn<zn.length-1?Mn=Bn+1:Mn=0,zn[Mn].focus({preventScroll:!0}),zn[Mn].click(),wn()},wn=()=>{Lt.value&&(At.value=!0)},Tn=()=>At.value=!1;return watch(_e,xn=>{xn==="hidden"?Lt.value=!1:xn==="visible"&&setTimeout(()=>Lt.value=!0,50)}),watch(Ce,xn=>{xn?setTimeout(()=>Lt.value=!0,50):Lt.value=!1}),useResizeObserver(Ie,En),onMounted(()=>setTimeout(()=>Cn(),0)),onUpdated(()=>En()),oe({scrollToActiveTab:Cn,removeFocus:Tn}),watch(()=>$.panes,()=>ie.update(),{flush:"post",deep:!0}),()=>{const xn=Fe.value?[createVNode("span",{class:[pe.e("nav-prev"),pe.is("disabled",!Fe.value.prev)],onClick:_n},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[pe.e("nav-next"),pe.is("disabled",!Fe.value.next)],onClick:bn},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,kn=$.panes.map((An,On)=>{var Nn,Rn,zn,Bn;const Mn=An.uid,Fn=An.props.disabled,Vn=(Rn=(Nn=An.props.name)!=null?Nn:An.index)!=null?Rn:`${On}`,jn=!Fn&&(An.isClosable||$.editable);An.index=`${On}`;const Zn=jn?createVNode(ElIcon,{class:"is-icon-close",onClick:cr=>ae("tabRemove",An,cr)},{default:()=>[createVNode(close_default,null,null)]}):null,Gn=((Bn=(zn=An.slots).label)==null?void 0:Bn.call(zn))||An.props.label,Xn=!Fn&&An.active?0:-1;return createVNode("div",{ref:`tab-${Mn}`,class:[pe.e("item"),pe.is(le.props.tabPosition),pe.is("active",An.active),pe.is("disabled",Fn),pe.is("closable",jn),pe.is("focus",At.value)],id:`tab-${Vn}`,key:`tab-${Mn}`,"aria-controls":`pane-${Vn}`,role:"tab","aria-selected":An.active,tabindex:Xn,onFocus:()=>wn(),onBlur:()=>Tn(),onClick:cr=>{Tn(),ae("tabClick",An,Vn,cr)},onKeydown:cr=>{jn&&(cr.code===EVENT_CODE.delete||cr.code===EVENT_CODE.backspace)&&ae("tabRemove",An,cr)}},[Gn,Zn])});return createVNode("div",{ref:Ie,class:[pe.e("nav-wrap"),pe.is("scrollable",!!Fe.value),pe.is(le.props.tabPosition)]},[xn,createVNode("div",{class:pe.e("nav-scroll"),ref:$e},[createVNode("div",{class:[pe.e("nav"),pe.is(le.props.tabPosition),pe.is("stretch",$.stretch&&["top","bottom"].includes(le.props.tabPosition))],ref:xe,style:vn.value,role:"tablist",onKeydown:$n},[$.type?null:createVNode(TabBar,{ref:Ne,tabs:[...$.panes]},null),kn])])])}}}),tabsProps=buildProps({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:definePropType(Function),default:()=>!0},stretch:Boolean}),isPaneName=$=>isString$7($)||isNumber$5($),tabsEmits={[UPDATE_MODEL_EVENT]:$=>isPaneName($),tabClick:($,oe)=>oe instanceof Event,tabChange:$=>isPaneName($),edit:($,oe)=>["remove","add"].includes(oe),tabRemove:$=>isPaneName($),tabAdd:()=>!0};var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup($,{emit:oe,slots:ae,expose:ie}){var le,pe;const _e=useNamespace("tabs"),{children:Ce,addChild:$e,removeChild:xe}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),Ie=ref(),Ne=ref((pe=(le=$.modelValue)!=null?le:$.activeName)!=null?pe:"0"),Fe=vn=>{Ne.value=vn,oe(UPDATE_MODEL_EVENT,vn),oe("tabChange",vn)},ze=async vn=>{var _n,bn,Cn;if(!(Ne.value===vn||isUndefined$1(vn)))try{await((_n=$.beforeLeave)==null?void 0:_n.call($,vn,Ne.value))!==!1&&(Fe(vn),(Cn=(bn=Ie.value)==null?void 0:bn.removeFocus)==null||Cn.call(bn))}catch{}},At=(vn,_n,bn)=>{vn.props.disabled||(ze(_n),oe("tabClick",vn,bn))},Lt=(vn,_n)=>{vn.props.disabled||isUndefined$1(vn.props.name)||(_n.stopPropagation(),oe("edit",vn.props.name,"remove"),oe("tabRemove",vn.props.name))},hn=()=>{oe("edit",void 0,"add"),oe("tabAdd")};return useDeprecated({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},computed(()=>!!$.activeName)),watch(()=>$.activeName,vn=>ze(vn)),watch(()=>$.modelValue,vn=>ze(vn)),watch(Ne,async()=>{var vn;await nextTick(),(vn=Ie.value)==null||vn.scrollToActiveTab()}),provide(tabsRootContextKey,{props:$,currentName:Ne,registerPane:$e,unregisterPane:xe}),ie({currentName:Ne}),()=>{const vn=$.editable||$.addable?createVNode("span",{class:_e.e("new-tab"),tabindex:"0",onClick:hn,onKeydown:Cn=>{Cn.code===EVENT_CODE.enter&&hn()}},[createVNode(ElIcon,{class:_e.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,_n=createVNode("div",{class:[_e.e("header"),_e.is($.tabPosition)]},[vn,createVNode(TabNav,{ref:Ie,currentName:Ne.value,editable:$.editable,type:$.type,panes:Ce.value,stretch:$.stretch,onTabClick:At,onTabRemove:Lt},null)]),bn=createVNode("div",{class:_e.e("content")},[renderSlot(ae,"default")]);return createVNode("div",{class:[_e.b(),_e.m($.tabPosition),{[_e.m("card")]:$.type==="card",[_e.m("border-card")]:$.type==="border-card"}]},[...$.tabPosition!=="bottom"?[_n,bn]:[bn,_n]])}}});const tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),_hoisted_1$c=["id","aria-hidden","aria-labelledby"],COMPONENT_NAME$1="ElTabPane",__default__$j=defineComponent({name:COMPONENT_NAME$1}),_sfc_main$q=defineComponent({...__default__$j,props:tabPaneProps,setup($){const oe=$,ae=getCurrentInstance(),ie=useSlots(),le=inject(tabsRootContextKey);le||throwError$1(COMPONENT_NAME$1,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const pe=useNamespace("tab-pane"),_e=ref(),Ce=computed(()=>oe.closable||le.props.closable),$e=computedEager(()=>{var ze;return le.currentName.value===((ze=oe.name)!=null?ze:_e.value)}),xe=ref($e.value),Ie=computed(()=>{var ze;return(ze=oe.name)!=null?ze:_e.value}),Ne=computedEager(()=>!oe.lazy||xe.value||$e.value);watch($e,ze=>{ze&&(xe.value=!0)});const Fe=reactive({uid:ae.uid,slots:ie,props:oe,paneName:Ie,active:$e,index:_e,isClosable:Ce});return onMounted(()=>{le.registerPane(Fe)}),onUnmounted(()=>{le.unregisterPane(Fe.uid)}),(ze,At)=>unref(Ne)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(Ie)}`,class:normalizeClass(unref(pe).b()),role:"tabpanel","aria-hidden":!unref($e),"aria-labelledby":`tab-${unref(Ie)}`},[renderSlot(ze.$slots,"default")],10,_hoisted_1$c)),[[vShow,unref($e)]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc$1(_sfc_main$q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const ElTabs=withInstall(Tabs,{TabPane}),ElTabPane=withNoopInstall(TabPane),textProps=buildProps({type:{type:String,values:["primary","success","info","warning","danger",""],default:""},size:{type:String,values:componentSizes,default:""},truncated:{type:Boolean},tag:{type:String,default:"span"}}),__default__$i=defineComponent({name:"ElText"}),_sfc_main$p=defineComponent({...__default__$i,props:textProps,setup($){const oe=$,ae=useFormSize(),ie=useNamespace("text"),le=computed(()=>[ie.b(),ie.m(oe.type),ie.m(ae.value),ie.is("truncated",oe.truncated)]);return(pe,_e)=>(openBlock(),createBlock(resolveDynamicComponent(pe.tag),{class:normalizeClass(unref(le))},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["class"]))}});var Text=_export_sfc$1(_sfc_main$p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/text/src/text.vue"]]);const ElText=withInstall(Text),timeSelectProps=buildProps({format:{type:String,default:"HH:mm"},modelValue:String,disabled:Boolean,editable:{type:Boolean,default:!0},effect:{type:String,default:"light"},clearable:{type:Boolean,default:!0},size:useSizeProp,placeholder:String,start:{type:String,default:"09:00"},end:{type:String,default:"18:00"},step:{type:String,default:"00:30"},minTime:String,maxTime:String,name:String,prefixIcon:{type:definePropType([String,Object]),default:()=>clock_default},clearIcon:{type:definePropType([String,Object]),default:()=>circle_close_default}}),parseTime=$=>{const oe=($||"").split(":");if(oe.length>=2){let ae=Number.parseInt(oe[0],10);const ie=Number.parseInt(oe[1],10),le=$.toUpperCase();return le.includes("AM")&&ae===12?ae=0:le.includes("PM")&&ae!==12&&(ae+=12),{hours:ae,minutes:ie}}return null},compareTime=($,oe)=>{const ae=parseTime($);if(!ae)return-1;const ie=parseTime(oe);if(!ie)return-1;const le=ae.minutes+ae.hours*60,pe=ie.minutes+ie.hours*60;return le===pe?0:le>pe?1:-1},padTime=$=>`${$}`.padStart(2,"0"),formatTime$1=$=>`${padTime($.hours)}:${padTime($.minutes)}`,nextTime=($,oe)=>{const ae=parseTime($);if(!ae)return"";const ie=parseTime(oe);if(!ie)return"";const le={hours:ae.hours,minutes:ae.minutes};return le.minutes+=ie.minutes,le.hours+=ie.hours,le.hours+=Math.floor(le.minutes/60),le.minutes=le.minutes%60,formatTime$1(le)},__default__$h=defineComponent({name:"ElTimeSelect"}),_sfc_main$o=defineComponent({...__default__$h,props:timeSelectProps,emits:["change","blur","focus","update:modelValue"],setup($,{expose:oe}){const ae=$;dayjs.extend(customParseFormat);const{Option:ie}=ElSelect,le=useNamespace("input"),pe=ref(),_e=useFormDisabled(),Ce=computed(()=>ae.modelValue),$e=computed(()=>{const hn=parseTime(ae.start);return hn?formatTime$1(hn):null}),xe=computed(()=>{const hn=parseTime(ae.end);return hn?formatTime$1(hn):null}),Ie=computed(()=>{const hn=parseTime(ae.step);return hn?formatTime$1(hn):null}),Ne=computed(()=>{const hn=parseTime(ae.minTime||"");return hn?formatTime$1(hn):null}),Fe=computed(()=>{const hn=parseTime(ae.maxTime||"");return hn?formatTime$1(hn):null}),ze=computed(()=>{const hn=[];if(ae.start&&ae.end&&ae.step){let vn=$e.value,_n;for(;vn&&xe.value&&compareTime(vn,xe.value)<=0;)_n=dayjs(vn,"HH:mm").format(ae.format),hn.push({value:_n,disabled:compareTime(vn,Ne.value||"-1:-1")<=0||compareTime(vn,Fe.value||"100:100")>=0}),vn=nextTime(vn,Ie.value)}return hn});return oe({blur:()=>{var hn,vn;(vn=(hn=pe.value)==null?void 0:hn.blur)==null||vn.call(hn)},focus:()=>{var hn,vn;(vn=(hn=pe.value)==null?void 0:hn.focus)==null||vn.call(hn)}}),(hn,vn)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:pe,"model-value":unref(Ce),disabled:unref(_e),clearable:hn.clearable,"clear-icon":hn.clearIcon,size:hn.size,effect:hn.effect,placeholder:hn.placeholder,"default-first-option":"",filterable:hn.editable,"onUpdate:modelValue":vn[0]||(vn[0]=_n=>hn.$emit("update:modelValue",_n)),onChange:vn[1]||(vn[1]=_n=>hn.$emit("change",_n)),onBlur:vn[2]||(vn[2]=_n=>hn.$emit("blur",_n)),onFocus:vn[3]||(vn[3]=_n=>hn.$emit("focus",_n))},{prefix:withCtx(()=>[hn.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(le).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(hn.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ze),_n=>(openBlock(),createBlock(unref(ie),{key:_n.value,label:_n.value,value:_n.value,disabled:_n.disabled},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","disabled","clearable","clear-icon","size","effect","placeholder","filterable"]))}});var TimeSelect=_export_sfc$1(_sfc_main$o,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);TimeSelect.install=$=>{$.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup($,{slots:oe}){const ae=useNamespace("timeline");return provide("timeline",oe),()=>h$3("ul",{class:[ae.b()]},[renderSlot(oe,"default")])}}),timelineItemProps=buildProps({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:iconPropType},hollow:{type:Boolean,default:!1}}),__default__$g=defineComponent({name:"ElTimelineItem"}),_sfc_main$n=defineComponent({...__default__$g,props:timelineItemProps,setup($){const oe=useNamespace("timeline-item");return(ae,ie)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref(oe).b(),{[unref(oe).e("center")]:ae.center}])},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("tail"))},null,2),ae.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("node"),unref(oe).em("node",ae.size||""),unref(oe).em("node",ae.type||""),unref(oe).is("hollow",ae.hollow)]),style:normalizeStyle$1({backgroundColor:ae.color})},[ae.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ae.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),ae.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).e("dot"))},[renderSlot(ae.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("wrapper"))},[!ae.hideTimestamp&&ae.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(oe).e("timestamp"),unref(oe).is("top")])},toDisplayString$1(ae.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content"))},[renderSlot(ae.$slots,"default")],2),!ae.hideTimestamp&&ae.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref(oe).e("timestamp"),unref(oe).is("bottom")])},toDisplayString$1(ae.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc$1(_sfc_main$n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);const ElTimeline=withInstall(Timeline,{TimelineItem}),ElTimelineItem=withNoopInstall(TimelineItem),tooltipV2CommonProps=buildProps({nowrap:Boolean});var TooltipV2Sides=($=>($.top="top",$.bottom="bottom",$.left="left",$.right="right",$))(TooltipV2Sides||{});const tooltipV2Sides=Object.values(TooltipV2Sides),tooltipV2ArrowProps=buildProps({width:{type:Number,default:10},height:{type:Number,default:10},style:{type:definePropType(Object),default:null}}),tooltipV2ArrowSpecialProps=buildProps({side:{type:definePropType(String),values:tooltipV2Sides,required:!0}}),tooltipV2Strategies=["absolute","fixed"],tooltipV2Placements=["top-start","top-end","top","bottom-start","bottom-end","bottom","left-start","left-end","left","right-start","right-end","right"],tooltipV2ContentProps=buildProps({ariaLabel:String,arrowPadding:{type:definePropType(Number),default:5},effect:{type:String,default:""},contentClass:String,placement:{type:definePropType(String),values:tooltipV2Placements,default:"bottom"},reference:{type:definePropType(Object),default:null},offset:{type:Number,default:8},strategy:{type:definePropType(String),values:tooltipV2Strategies,default:"absolute"},showArrow:{type:Boolean,default:!1}}),tooltipV2RootProps=buildProps({delayDuration:{type:Number,default:300},defaultOpen:Boolean,open:{type:Boolean,default:void 0},onOpenChange:{type:definePropType(Function)},"onUpdate:open":{type:definePropType(Function)}}),EventHandler={type:definePropType(Function)},tooltipV2TriggerProps=buildProps({onBlur:EventHandler,onClick:EventHandler,onFocus:EventHandler,onMouseDown:EventHandler,onMouseEnter:EventHandler,onMouseLeave:EventHandler}),tooltipV2Props=buildProps({...tooltipV2RootProps,...tooltipV2ArrowProps,...tooltipV2TriggerProps,...tooltipV2ContentProps,alwaysOn:Boolean,fullTransition:Boolean,transitionProps:{type:definePropType(Object),default:null},teleported:Boolean,to:{type:definePropType(String),default:"body"}}),tooltipV2RootKey=Symbol("tooltipV2"),tooltipV2ContentKey=Symbol("tooltipV2Content"),TOOLTIP_V2_OPEN="tooltip_v2.open",__default__$f=defineComponent({name:"ElTooltipV2Root"}),_sfc_main$m=defineComponent({...__default__$f,props:tooltipV2RootProps,setup($,{expose:oe}){const ae=$,ie=ref(ae.defaultOpen),le=ref(null),pe=computed({get:()=>isPropAbsent(ae.open)?ie.value:ae.open,set:hn=>{var vn;ie.value=hn,(vn=ae["onUpdate:open"])==null||vn.call(ae,hn)}}),_e=computed(()=>isNumber$5(ae.delayDuration)&&ae.delayDuration>0),{start:Ce,stop:$e}=useTimeoutFn$1(()=>{pe.value=!0},computed(()=>ae.delayDuration),{immediate:!1}),xe=useNamespace("tooltip-v2"),Ie=useId(),Ne=()=>{$e(),pe.value=!0},Fe=()=>{unref(_e)?Ce():Ne()},ze=Ne,At=()=>{$e(),pe.value=!1};return watch(pe,hn=>{var vn;hn&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),ze()),(vn=ae.onOpenChange)==null||vn.call(ae,hn)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,At)}),onBeforeUnmount(()=>{$e(),document.removeEventListener(TOOLTIP_V2_OPEN,At)}),provide(tooltipV2RootKey,{contentId:Ie,triggerRef:le,ns:xe,onClose:At,onDelayOpen:Fe,onOpen:ze}),oe({onOpen:ze,onClose:At}),(hn,vn)=>renderSlot(hn.$slots,"default",{open:unref(pe)})}});var TooltipV2Root=_export_sfc$1(_sfc_main$m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const __default__$e=defineComponent({name:"ElTooltipV2Arrow"}),_sfc_main$l=defineComponent({...__default__$e,props:{...tooltipV2ArrowProps,...tooltipV2ArrowSpecialProps},setup($){const oe=$,{ns:ae}=inject(tooltipV2RootKey),{arrowRef:ie}=inject(tooltipV2ContentKey),le=computed(()=>{const{style:pe,width:_e,height:Ce}=oe,$e=ae.namespace.value;return{[`--${$e}-tooltip-v2-arrow-width`]:`${_e}px`,[`--${$e}-tooltip-v2-arrow-height`]:`${Ce}px`,[`--${$e}-tooltip-v2-arrow-border-width`]:`${_e/2}px`,[`--${$e}-tooltip-v2-arrow-cover-width`]:_e/2-1,...pe||{}}});return(pe,_e)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:ie,style:normalizeStyle$1(unref(le)),class:normalizeClass(unref(ae).e("arrow"))},null,6))}});var TooltipV2Arrow=_export_sfc$1(_sfc_main$l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/arrow.vue"]]);const visualHiddenProps=buildProps({style:{type:definePropType([String,Object,Array]),default:()=>({})}}),__default__$d=defineComponent({name:"ElVisuallyHidden"}),_sfc_main$k=defineComponent({...__default__$d,props:visualHiddenProps,setup($){const oe=$,ae=computed(()=>[oe.style,{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}]);return(ie,le)=>(openBlock(),createElementBlock("span",mergeProps(ie.$attrs,{style:unref(ae)}),[renderSlot(ie.$slots,"default")],16))}});var ElVisuallyHidden=_export_sfc$1(_sfc_main$k,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const _hoisted_1$b=["data-side"],__default__$c=defineComponent({name:"ElTooltipV2Content"}),_sfc_main$j=defineComponent({...__default__$c,props:{...tooltipV2ContentProps,...tooltipV2CommonProps},setup($){const oe=$,{triggerRef:ae,contentId:ie}=inject(tooltipV2RootKey),le=ref(oe.placement),pe=ref(oe.strategy),_e=ref(null),{referenceRef:Ce,contentRef:$e,middlewareData:xe,x:Ie,y:Ne,update:Fe}=useFloating({placement:le,strategy:pe,middleware:computed(()=>{const bn=[D$4(oe.offset)];return oe.showArrow&&bn.push(arrowMiddleware({arrowRef:_e})),bn})}),ze=useZIndex().nextZIndex(),At=useNamespace("tooltip-v2"),Lt=computed(()=>le.value.split("-")[0]),hn=computed(()=>({position:unref(pe),top:`${unref(Ne)||0}px`,left:`${unref(Ie)||0}px`,zIndex:ze})),vn=computed(()=>{if(!oe.showArrow)return{};const{arrow:bn}=unref(xe);return{[`--${At.namespace.value}-tooltip-v2-arrow-x`]:`${bn==null?void 0:bn.x}px`||"",[`--${At.namespace.value}-tooltip-v2-arrow-y`]:`${bn==null?void 0:bn.y}px`||""}}),_n=computed(()=>[At.e("content"),At.is("dark",oe.effect==="dark"),At.is(unref(pe)),oe.contentClass]);return watch(_e,()=>Fe()),watch(()=>oe.placement,bn=>le.value=bn),onMounted(()=>{watch(()=>oe.reference||ae.value,bn=>{Ce.value=bn||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:_e}),(bn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:$e,style:normalizeStyle$1(unref(hn)),"data-tooltip-v2-root":""},[bn.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(Lt),class:normalizeClass(unref(_n))},[renderSlot(bn.$slots,"default",{contentStyle:unref(hn),contentClass:unref(_n)}),createVNode(unref(ElVisuallyHidden),{id:unref(ie),role:"tooltip"},{default:withCtx(()=>[bn.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(bn.ariaLabel),1)],64)):renderSlot(bn.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(bn.$slots,"arrow",{style:normalizeStyle$1(unref(vn)),side:unref(Lt)})],10,_hoisted_1$b))],4))}});var TooltipV2Content=_export_sfc$1(_sfc_main$j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/content.vue"]]);const forwardRefProps=buildProps({setRef:{type:definePropType(Function),required:!0},onlyChild:Boolean});var ForwardRef=defineComponent({props:forwardRefProps,setup($,{slots:oe}){const ae=ref(),ie=composeRefs(ae,le=>{le?$.setRef(le.nextElementSibling):$.setRef(null)});return()=>{var le;const[pe]=((le=oe.default)==null?void 0:le.call(oe))||[],_e=$.onlyChild?ensureOnlyChild(pe.children):pe.children;return createVNode(Fragment,{ref:ie},[_e])}}});const __default__$b=defineComponent({name:"ElTooltipV2Trigger"}),_sfc_main$i=defineComponent({...__default__$b,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup($){const oe=$,{onClose:ae,onOpen:ie,onDelayOpen:le,triggerRef:pe,contentId:_e}=inject(tooltipV2RootKey);let Ce=!1;const $e=_n=>{pe.value=_n},xe=()=>{Ce=!1},Ie=composeEventHandlers(oe.onMouseEnter,le),Ne=composeEventHandlers(oe.onMouseLeave,ae),Fe=composeEventHandlers(oe.onMouseDown,()=>{ae(),Ce=!0,document.addEventListener("mouseup",xe,{once:!0})}),ze=composeEventHandlers(oe.onFocus,()=>{Ce||ie()}),At=composeEventHandlers(oe.onBlur,ae),Lt=composeEventHandlers(oe.onClick,_n=>{_n.detail===0&&ae()}),hn={blur:At,click:Lt,focus:ze,mousedown:Fe,mouseenter:Ie,mouseleave:Ne},vn=(_n,bn,Cn)=>{_n&&Object.entries(bn).forEach(([En,$n])=>{_n[Cn](En,$n)})};return watch(pe,(_n,bn)=>{vn(_n,hn,"addEventListener"),vn(bn,hn,"removeEventListener"),_n&&_n.setAttribute("aria-describedby",_e.value)}),onBeforeUnmount(()=>{vn(pe.value,hn,"removeEventListener"),document.removeEventListener("mouseup",xe)}),(_n,bn)=>_n.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":$e,"only-child":""},{default:withCtx(()=>[renderSlot(_n.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:pe},_n.$attrs),[renderSlot(_n.$slots,"default")],16))}});var TooltipV2Trigger=_export_sfc$1(_sfc_main$i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const __default__$a=defineComponent({name:"ElTooltipV2"}),_sfc_main$h=defineComponent({...__default__$a,props:tooltipV2Props,setup($){const ae=toRefs($),ie=reactive(pick$1(ae,Object.keys(tooltipV2ArrowProps))),le=reactive(pick$1(ae,Object.keys(tooltipV2ContentProps))),pe=reactive(pick$1(ae,Object.keys(tooltipV2RootProps))),_e=reactive(pick$1(ae,Object.keys(tooltipV2TriggerProps)));return(Ce,$e)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(pe)),{default:withCtx(({open:xe})=>[createVNode(TooltipV2Trigger,mergeProps(_e,{nowrap:""}),{default:withCtx(()=>[renderSlot(Ce.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:Ce.to,disabled:!Ce.teleported},[Ce.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},Ce.transitionProps)),{default:withCtx(()=>[Ce.alwaysOn||xe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},le)),{arrow:withCtx(({style:Ie,side:Ne})=>[Ce.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ie,{style:Ie,side:Ne}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(Ce.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[Ce.alwaysOn||xe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},le)),{arrow:withCtx(({style:Ie,side:Ne})=>[Ce.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},ie,{style:Ie,side:Ne}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(Ce.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var TooltipV2=_export_sfc$1(_sfc_main$h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/tooltip.vue"]]);const ElTooltipV2=withInstall(TooltipV2),LEFT_CHECK_CHANGE_EVENT="left-check-change",RIGHT_CHECK_CHANGE_EVENT="right-check-change",transferProps=buildProps({data:{type:definePropType(Array),default:()=>[]},titles:{type:definePropType(Array),default:()=>[]},buttonTexts:{type:definePropType(Array),default:()=>[]},filterPlaceholder:String,filterMethod:{type:definePropType(Function)},leftDefaultChecked:{type:definePropType(Array),default:()=>[]},rightDefaultChecked:{type:definePropType(Array),default:()=>[]},renderContent:{type:definePropType(Function)},modelValue:{type:definePropType(Array),default:()=>[]},format:{type:definePropType(Object),default:()=>({})},filterable:Boolean,props:{type:definePropType(Object),default:()=>mutable({label:"label",key:"key",disabled:"disabled"})},targetOrder:{type:String,values:["original","push","unshift"],default:"original"},validateEvent:{type:Boolean,default:!0}}),transferCheckedChangeFn=($,oe)=>[$,oe].every(isArray$c)||isArray$c($)&&isNil(oe),transferEmits={[CHANGE_EVENT]:($,oe,ae)=>[$,ae].every(isArray$c)&&["left","right"].includes(oe),[UPDATE_MODEL_EVENT]:$=>isArray$c($),[LEFT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn,[RIGHT_CHECK_CHANGE_EVENT]:transferCheckedChangeFn},CHECKED_CHANGE_EVENT="checked-change",transferPanelProps=buildProps({data:transferProps.data,optionRender:{type:definePropType(Function)},placeholder:String,title:String,filterable:Boolean,format:transferProps.format,filterMethod:transferProps.filterMethod,defaultChecked:transferProps.leftDefaultChecked,props:transferProps.props}),transferPanelEmits={[CHECKED_CHANGE_EVENT]:transferCheckedChangeFn},usePropsAlias=$=>{const oe={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...oe,...$.props}))},useCheck$1=($,oe,ae)=>{const ie=usePropsAlias($),le=computed(()=>$.data.filter(Ie=>isFunction$5($.filterMethod)?$.filterMethod(oe.query,Ie):String(Ie[ie.value.label]||Ie[ie.value.key]).toLowerCase().includes(oe.query.toLowerCase()))),pe=computed(()=>le.value.filter(Ie=>!Ie[ie.value.disabled])),_e=computed(()=>{const Ie=oe.checked.length,Ne=$.data.length,{noChecked:Fe,hasChecked:ze}=$.format;return Fe&&ze?Ie>0?ze.replace(/\${checked}/g,Ie.toString()).replace(/\${total}/g,Ne.toString()):Fe.replace(/\${total}/g,Ne.toString()):`${Ie}/${Ne}`}),Ce=computed(()=>{const Ie=oe.checked.length;return Ie>0&&Ie<pe.value.length}),$e=()=>{const Ie=pe.value.map(Ne=>Ne[ie.value.key]);oe.allChecked=Ie.length>0&&Ie.every(Ne=>oe.checked.includes(Ne))},xe=Ie=>{oe.checked=Ie?pe.value.map(Ne=>Ne[ie.value.key]):[]};return watch(()=>oe.checked,(Ie,Ne)=>{if($e(),oe.checkChangeByUser){const Fe=Ie.concat(Ne).filter(ze=>!Ie.includes(ze)||!Ne.includes(ze));ae(CHECKED_CHANGE_EVENT,Ie,Fe)}else ae(CHECKED_CHANGE_EVENT,Ie),oe.checkChangeByUser=!0}),watch(pe,()=>{$e()}),watch(()=>$.data,()=>{const Ie=[],Ne=le.value.map(Fe=>Fe[ie.value.key]);oe.checked.forEach(Fe=>{Ne.includes(Fe)&&Ie.push(Fe)}),oe.checkChangeByUser=!1,oe.checked=Ie}),watch(()=>$.defaultChecked,(Ie,Ne)=>{if(Ne&&Ie.length===Ne.length&&Ie.every(At=>Ne.includes(At)))return;const Fe=[],ze=pe.value.map(At=>At[ie.value.key]);Ie.forEach(At=>{ze.includes(At)&&Fe.push(At)}),oe.checkChangeByUser=!1,oe.checked=Fe},{immediate:!0}),{filteredData:le,checkableData:pe,checkedSummary:_e,isIndeterminate:Ce,updateAllChecked:$e,handleAllCheckedChange:xe}},useCheckedChange=($,oe)=>({onSourceCheckedChange:(le,pe)=>{$.leftChecked=le,pe&&oe(LEFT_CHECK_CHANGE_EVENT,le,pe)},onTargetCheckedChange:(le,pe)=>{$.rightChecked=le,pe&&oe(RIGHT_CHECK_CHANGE_EVENT,le,pe)}}),useComputedData=$=>{const oe=usePropsAlias($),ae=computed(()=>$.data.reduce((pe,_e)=>(pe[_e[oe.value.key]]=_e)&&pe,{})),ie=computed(()=>$.data.filter(pe=>!$.modelValue.includes(pe[oe.value.key]))),le=computed(()=>$.targetOrder==="original"?$.data.filter(pe=>$.modelValue.includes(pe[oe.value.key])):$.modelValue.reduce((pe,_e)=>{const Ce=ae.value[_e];return Ce&&pe.push(Ce),pe},[]));return{sourceData:ie,targetData:le}},useMove=($,oe,ae)=>{const ie=usePropsAlias($),le=(Ce,$e,xe)=>{ae(UPDATE_MODEL_EVENT,Ce),ae(CHANGE_EVENT,Ce,$e,xe)};return{addToLeft:()=>{const Ce=$.modelValue.slice();oe.rightChecked.forEach($e=>{const xe=Ce.indexOf($e);xe>-1&&Ce.splice(xe,1)}),le(Ce,"left",oe.rightChecked)},addToRight:()=>{let Ce=$.modelValue.slice();const $e=$.data.filter(xe=>{const Ie=xe[ie.value.key];return oe.leftChecked.includes(Ie)&&!$.modelValue.includes(Ie)}).map(xe=>xe[ie.value.key]);Ce=$.targetOrder==="unshift"?$e.concat(Ce):Ce.concat($e),$.targetOrder==="original"&&(Ce=$.data.filter(xe=>Ce.includes(xe[ie.value.key])).map(xe=>xe[ie.value.key])),le(Ce,"right",oe.leftChecked)}}},__default__$9=defineComponent({name:"ElTransferPanel"}),_sfc_main$g=defineComponent({...__default__$9,props:transferPanelProps,emits:transferPanelEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useSlots(),pe=({option:bn})=>bn,{t:_e}=useLocale(),Ce=useNamespace("transfer"),$e=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),xe=usePropsAlias(ie),{filteredData:Ie,checkedSummary:Ne,isIndeterminate:Fe,handleAllCheckedChange:ze}=useCheck$1(ie,$e,ae),At=computed(()=>!isEmpty($e.query)&&isEmpty(Ie.value)),Lt=computed(()=>!isEmpty(le.default()[0].children)),{checked:hn,allChecked:vn,query:_n}=toRefs($e);return oe({query:_n}),(bn,Cn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ce).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(Ce).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(vn),"onUpdate:modelValue":Cn[0]||(Cn[0]=En=>isRef(vn)?vn.value=En:null),indeterminate:unref(Fe),"validate-event":!1,onChange:unref(ze)},{default:withCtx(()=>[createTextVNode(toDisplayString$1(bn.title)+" ",1),createBaseVNode("span",null,toDisplayString$1(unref(Ne)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(Ce).be("panel","body"),unref(Ce).is("with-footer",unref(Lt))])},[bn.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(_n),"onUpdate:modelValue":Cn[1]||(Cn[1]=En=>isRef(_n)?_n.value=En:null),class:normalizeClass(unref(Ce).be("panel","filter")),size:"default",placeholder:bn.placeholder,"prefix-icon":unref(search_default),clearable:"","validate-event":!1},null,8,["modelValue","class","placeholder","prefix-icon"])):createCommentVNode("v-if",!0),withDirectives(createVNode(unref(ElCheckboxGroup$1),{modelValue:unref(hn),"onUpdate:modelValue":Cn[2]||(Cn[2]=En=>isRef(hn)?hn.value=En:null),"validate-event":!1,class:normalizeClass([unref(Ce).is("filterable",bn.filterable),unref(Ce).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),En=>(openBlock(),createBlock(unref(ElCheckbox),{key:En[unref(xe).key],class:normalizeClass(unref(Ce).be("panel","item")),label:En[unref(xe).key],disabled:En[unref(xe).disabled],"validate-event":!1},{default:withCtx(()=>{var $n;return[createVNode(pe,{option:($n=bn.optionRender)==null?void 0:$n.call(bn,En)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(At)&&!unref(isEmpty)(bn.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(Ce).be("panel","empty"))},toDisplayString$1(unref(At)?unref(_e)("el.transfer.noMatch"):unref(_e)("el.transfer.noData")),3),[[vShow,unref(At)||unref(isEmpty)(bn.data)]])],2),unref(Lt)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(Ce).be("panel","footer"))},[renderSlot(bn.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc$1(_sfc_main$g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const _hoisted_1$a={key:0},_hoisted_2$7={key:0},__default__$8=defineComponent({name:"ElTransfer"}),_sfc_main$f=defineComponent({...__default__$8,props:transferProps,emits:transferEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useSlots(),{t:pe}=useLocale(),_e=useNamespace("transfer"),{formItem:Ce}=useFormItem(),$e=reactive({leftChecked:[],rightChecked:[]}),xe=usePropsAlias(ie),{sourceData:Ie,targetData:Ne}=useComputedData(ie),{onSourceCheckedChange:Fe,onTargetCheckedChange:ze}=useCheckedChange($e,ae),{addToLeft:At,addToRight:Lt}=useMove(ie,$e,ae),hn=ref(),vn=ref(),_n=Tn=>{switch(Tn){case"left":hn.value.query="";break;case"right":vn.value.query="";break}},bn=computed(()=>ie.buttonTexts.length===2),Cn=computed(()=>ie.titles[0]||pe("el.transfer.titles.0")),En=computed(()=>ie.titles[1]||pe("el.transfer.titles.1")),$n=computed(()=>ie.filterPlaceholder||pe("el.transfer.filterPlaceholder"));watch(()=>ie.modelValue,()=>{var Tn;ie.validateEvent&&((Tn=Ce==null?void 0:Ce.validate)==null||Tn.call(Ce,"change").catch(xn=>void 0))});const wn=computed(()=>Tn=>ie.renderContent?ie.renderContent(h$3,Tn):le.default?le.default({option:Tn}):h$3("span",Tn[xe.value.label]||Tn[xe.value.key]));return oe({clearQuery:_n,leftPanel:hn,rightPanel:vn}),(Tn,xn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:hn,data:unref(Ie),"option-render":unref(wn),placeholder:unref($n),title:unref(Cn),filterable:Tn.filterable,format:Tn.format,"filter-method":Tn.filterMethod,"default-checked":Tn.leftDefaultChecked,props:ie.props,onCheckedChange:unref(Fe)},{default:withCtx(()=>[renderSlot(Tn.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(_e).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(_e).e("button"),unref(_e).is("with-texts",unref(bn))]),disabled:unref(isEmpty)($e.rightChecked),onClick:unref(At)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(Tn.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$a,toDisplayString$1(Tn.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(_e).e("button"),unref(_e).is("with-texts",unref(bn))]),disabled:unref(isEmpty)($e.leftChecked),onClick:unref(Lt)},{default:withCtx(()=>[unref(isUndefined$1)(Tn.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$7,toDisplayString$1(Tn.buttonTexts[1]),1)),createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),_:1},8,["class","disabled","onClick"])],2),createVNode(TransferPanel,{ref_key:"rightPanel",ref:vn,data:unref(Ne),"option-render":unref(wn),placeholder:unref($n),filterable:Tn.filterable,format:Tn.format,"filter-method":Tn.filterMethod,title:unref(En),"default-checked":Tn.rightDefaultChecked,props:ie.props,onCheckedChange:unref(ze)},{default:withCtx(()=>[renderSlot(Tn.$slots,"right-footer")]),_:3},8,["data","option-render","placeholder","filterable","format","filter-method","title","default-checked","props","onCheckedChange"])],2))}});var Transfer=_export_sfc$1(_sfc_main$f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function($,oe){!oe||oe[NODE_KEY]||Object.defineProperty(oe,NODE_KEY,{value:$.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function($,oe){return $?oe[$]:oe[NODE_KEY]},handleCurrentChange=($,oe,ae)=>{const ie=$.value.currentNode;ae();const le=$.value.currentNode;ie!==le&&oe("current-change",le?le.data:null,le)},getChildState=$=>{let oe=!0,ae=!0,ie=!0;for(let le=0,pe=$.length;le<pe;le++){const _e=$[le];(_e.checked!==!0||_e.indeterminate)&&(oe=!1,_e.disabled||(ie=!1)),(_e.checked!==!1||_e.indeterminate)&&(ae=!1)}return{all:oe,none:ae,allWithoutDisable:ie,half:!oe&&!ae}},reInitChecked=function($){if($.childNodes.length===0||$.loading)return;const{all:oe,none:ae,half:ie}=getChildState($.childNodes);oe?($.checked=!0,$.indeterminate=!1):ie?($.checked=!1,$.indeterminate=!0):ae&&($.checked=!1,$.indeterminate=!1);const le=$.parent;!le||le.level===0||$.store.checkStrictly||reInitChecked(le)},getPropertyFromData=function($,oe){const ae=$.store.props,ie=$.data||{},le=ae[oe];if(typeof le=="function")return le(ie,$);if(typeof le=="string")return ie[le];if(typeof le>"u"){const pe=ie[oe];return pe===void 0?"":pe}};let nodeIdSeed=0;class Node{constructor(oe){this.id=nodeIdSeed++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const ae in oe)hasOwn$4(oe,ae)&&(this[ae]=oe[ae]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const oe=this.store;if(!oe)throw new Error("[Node]store is required!");oe.registerNode(this);const ae=oe.props;if(ae&&typeof ae.isLeaf<"u"){const pe=getPropertyFromData(this,"isLeaf");typeof pe=="boolean"&&(this.isLeafByUser=pe)}if(oe.lazy!==!0&&this.data?(this.setData(this.data),oe.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&oe.lazy&&oe.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const ie=oe.defaultExpandedKeys,le=oe.key;le&&ie&&ie.includes(this.key)&&this.expand(null,oe.autoExpandParent),le&&oe.currentNodeKey!==void 0&&this.key===oe.currentNodeKey&&(oe.currentNode=this,oe.currentNode.isCurrent=!0),oe.lazy&&oe._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(oe){Array.isArray(oe)||markNodeData(this,oe),this.data=oe,this.childNodes=[];let ae;this.level===0&&Array.isArray(this.data)?ae=this.data:ae=getPropertyFromData(this,"children")||[];for(let ie=0,le=ae.length;ie<le;ie++)this.insertChild({data:ae[ie]})}get label(){return getPropertyFromData(this,"label")}get key(){const oe=this.store.key;return this.data?this.data[oe]:null}get disabled(){return getPropertyFromData(this,"disabled")}get nextSibling(){const oe=this.parent;if(oe){const ae=oe.childNodes.indexOf(this);if(ae>-1)return oe.childNodes[ae+1]}return null}get previousSibling(){const oe=this.parent;if(oe){const ae=oe.childNodes.indexOf(this);if(ae>-1)return ae>0?oe.childNodes[ae-1]:null}return null}contains(oe,ae=!0){return(this.childNodes||[]).some(ie=>ie===oe||ae&&ie.contains(oe))}remove(){const oe=this.parent;oe&&oe.removeChild(this)}insertChild(oe,ae,ie){if(!oe)throw new Error("InsertChild error: child is required.");if(!(oe instanceof Node)){if(!ie){const le=this.getChildren(!0);le.includes(oe.data)||(typeof ae>"u"||ae<0?le.push(oe.data):le.splice(ae,0,oe.data))}Object.assign(oe,{parent:this,store:this.store}),oe=reactive(new Node(oe)),oe instanceof Node&&oe.initialize()}oe.level=this.level+1,typeof ae>"u"||ae<0?this.childNodes.push(oe):this.childNodes.splice(ae,0,oe),this.updateLeafState()}insertBefore(oe,ae){let ie;ae&&(ie=this.childNodes.indexOf(ae)),this.insertChild(oe,ie)}insertAfter(oe,ae){let ie;ae&&(ie=this.childNodes.indexOf(ae),ie!==-1&&(ie+=1)),this.insertChild(oe,ie)}removeChild(oe){const ae=this.getChildren()||[],ie=ae.indexOf(oe.data);ie>-1&&ae.splice(ie,1);const le=this.childNodes.indexOf(oe);le>-1&&(this.store&&this.store.deregisterNode(oe),oe.parent=null,this.childNodes.splice(le,1)),this.updateLeafState()}removeChildByData(oe){let ae=null;for(let ie=0;ie<this.childNodes.length;ie++)if(this.childNodes[ie].data===oe){ae=this.childNodes[ie];break}ae&&this.removeChild(ae)}expand(oe,ae){const ie=()=>{if(ae){let le=this.parent;for(;le.level>0;)le.expanded=!0,le=le.parent}this.expanded=!0,oe&&oe(),this.childNodes.forEach(le=>{le.canFocus=!0})};this.shouldLoadData()?this.loadData(le=>{Array.isArray(le)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),ie())}):ie()}doCreateChildren(oe,ae={}){oe.forEach(ie=>{this.insertChild(Object.assign({data:ie},ae),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(oe=>{oe.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const oe=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!oe||oe.length===0;return}this.isLeaf=!1}setChecked(oe,ae,ie,le){if(this.indeterminate=oe==="half",this.checked=oe===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:_e,allWithoutDisable:Ce}=getChildState(this.childNodes);!this.isLeaf&&!_e&&Ce&&(this.checked=!1,oe=!1);const $e=()=>{if(ae){const xe=this.childNodes;for(let Fe=0,ze=xe.length;Fe<ze;Fe++){const At=xe[Fe];le=le||oe!==!1;const Lt=At.disabled?At.checked:le;At.setChecked(Lt,ae,!0,le)}const{half:Ie,all:Ne}=getChildState(xe);Ne||(this.checked=Ne,this.indeterminate=Ie)}};if(this.shouldLoadData()){this.loadData(()=>{$e(),reInitChecked(this)},{checked:oe!==!1});return}else $e()}const pe=this.parent;!pe||pe.level===0||ie||reInitChecked(pe)}getChildren(oe=!1){if(this.level===0)return this.data;const ae=this.data;if(!ae)return null;const ie=this.store.props;let le="children";return ie&&(le=ie.children||"children"),ae[le]===void 0&&(ae[le]=null),oe&&!ae[le]&&(ae[le]=[]),ae[le]}updateChildren(){const oe=this.getChildren()||[],ae=this.childNodes.map(pe=>pe.data),ie={},le=[];oe.forEach((pe,_e)=>{const Ce=pe[NODE_KEY];!!Ce&&ae.findIndex(xe=>xe[NODE_KEY]===Ce)>=0?ie[Ce]={index:_e,data:pe}:le.push({index:_e,data:pe})}),this.store.lazy||ae.forEach(pe=>{ie[pe[NODE_KEY]]||this.removeChildByData(pe)}),le.forEach(({index:pe,data:_e})=>{this.insertChild({data:_e},pe)}),this.updateLeafState()}loadData(oe,ae={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(ae).length)){this.loading=!0;const ie=le=>{this.childNodes=[],this.doCreateChildren(le,ae),this.loaded=!0,this.loading=!1,this.updateLeafState(),oe&&oe.call(this,le)};this.store.load(this,ie)}else oe&&oe.call(this)}}class TreeStore{constructor(oe){this.currentNode=null,this.currentNodeKey=null;for(const ae in oe)hasOwn$4(oe,ae)&&(this[ae]=oe[ae]);this.nodesMap={}}initialize(){if(this.root=new Node({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const oe=this.load;oe(this.root,ae=>{this.root.doCreateChildren(ae),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(oe){const ae=this.filterNodeMethod,ie=this.lazy,le=function(pe){const _e=pe.root?pe.root.childNodes:pe.childNodes;if(_e.forEach(Ce=>{Ce.visible=ae.call(Ce,oe,Ce.data,Ce),le(Ce)}),!pe.visible&&_e.length){let Ce=!0;Ce=!_e.some($e=>$e.visible),pe.root?pe.root.visible=Ce===!1:pe.visible=Ce===!1}oe&&pe.visible&&!pe.isLeaf&&!ie&&pe.expand()};le(this)}setData(oe){oe!==this.root.data?(this.root.setData(oe),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(oe){if(oe instanceof Node)return oe;const ae=isObject$8(oe)?getNodeKey(this.key,oe):oe;return this.nodesMap[ae]||null}insertBefore(oe,ae){const ie=this.getNode(ae);ie.parent.insertBefore({data:oe},ie)}insertAfter(oe,ae){const ie=this.getNode(ae);ie.parent.insertAfter({data:oe},ie)}remove(oe){const ae=this.getNode(oe);ae&&ae.parent&&(ae===this.currentNode&&(this.currentNode=null),ae.parent.removeChild(ae))}append(oe,ae){const ie=ae?this.getNode(ae):this.root;ie&&ie.insertChild({data:oe})}_initDefaultCheckedNodes(){const oe=this.defaultCheckedKeys||[],ae=this.nodesMap;oe.forEach(ie=>{const le=ae[ie];le&&le.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(oe){(this.defaultCheckedKeys||[]).includes(oe.key)&&oe.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(oe){oe!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=oe,this._initDefaultCheckedNodes())}registerNode(oe){const ae=this.key;!oe||!oe.data||(ae?oe.key!==void 0&&(this.nodesMap[oe.key]=oe):this.nodesMap[oe.id]=oe)}deregisterNode(oe){!this.key||!oe||!oe.data||(oe.childNodes.forEach(ie=>{this.deregisterNode(ie)}),delete this.nodesMap[oe.key])}getCheckedNodes(oe=!1,ae=!1){const ie=[],le=function(pe){(pe.root?pe.root.childNodes:pe.childNodes).forEach(Ce=>{(Ce.checked||ae&&Ce.indeterminate)&&(!oe||oe&&Ce.isLeaf)&&ie.push(Ce.data),le(Ce)})};return le(this),ie}getCheckedKeys(oe=!1){return this.getCheckedNodes(oe).map(ae=>(ae||{})[this.key])}getHalfCheckedNodes(){const oe=[],ae=function(ie){(ie.root?ie.root.childNodes:ie.childNodes).forEach(pe=>{pe.indeterminate&&oe.push(pe.data),ae(pe)})};return ae(this),oe}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(oe=>(oe||{})[this.key])}_getAllNodes(){const oe=[],ae=this.nodesMap;for(const ie in ae)hasOwn$4(ae,ie)&&oe.push(ae[ie]);return oe}updateChildren(oe,ae){const ie=this.nodesMap[oe];if(!ie)return;const le=ie.childNodes;for(let pe=le.length-1;pe>=0;pe--){const _e=le[pe];this.remove(_e.data)}for(let pe=0,_e=ae.length;pe<_e;pe++){const Ce=ae[pe];this.append(Ce,ie.data)}}_setCheckedKeys(oe,ae=!1,ie){const le=this._getAllNodes().sort((Ce,$e)=>$e.level-Ce.level),pe=Object.create(null),_e=Object.keys(ie);le.forEach(Ce=>Ce.setChecked(!1,!1));for(let Ce=0,$e=le.length;Ce<$e;Ce++){const xe=le[Ce],Ie=xe.data[oe].toString();if(!_e.includes(Ie)){xe.checked&&!pe[Ie]&&xe.setChecked(!1,!1);continue}let Fe=xe.parent;for(;Fe&&Fe.level>0;)pe[Fe.data[oe]]=!0,Fe=Fe.parent;if(xe.isLeaf||this.checkStrictly){xe.setChecked(!0,!1);continue}if(xe.setChecked(!0,!0),ae){xe.setChecked(!1,!1);const ze=function(At){At.childNodes.forEach(hn=>{hn.isLeaf||hn.setChecked(!1,!1),ze(hn)})};ze(xe)}}}setCheckedNodes(oe,ae=!1){const ie=this.key,le={};oe.forEach(pe=>{le[(pe||{})[ie]]=!0}),this._setCheckedKeys(ie,ae,le)}setCheckedKeys(oe,ae=!1){this.defaultCheckedKeys=oe;const ie=this.key,le={};oe.forEach(pe=>{le[pe]=!0}),this._setCheckedKeys(ie,ae,le)}setDefaultExpandedKeys(oe){oe=oe||[],this.defaultExpandedKeys=oe,oe.forEach(ae=>{const ie=this.getNode(ae);ie&&ie.expand(null,this.autoExpandParent)})}setChecked(oe,ae,ie){const le=this.getNode(oe);le&&le.setChecked(!!ae,ie)}getCurrentNode(){return this.currentNode}setCurrentNode(oe){const ae=this.currentNode;ae&&(ae.isCurrent=!1),this.currentNode=oe,this.currentNode.isCurrent=!0}setUserCurrentNode(oe,ae=!0){const ie=oe[this.key],le=this.nodesMap[ie];this.setCurrentNode(le),ae&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(oe,ae=!0){if(oe==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const ie=this.getNode(oe);ie&&(this.setCurrentNode(ie),ae&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const _sfc_main$e=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup($){const oe=useNamespace("tree"),ae=inject("NodeInstance"),ie=inject("RootTree");return()=>{const le=$.node,{data:pe,store:_e}=le;return $.renderContent?$.renderContent(h$3,{_self:ae,node:le,data:pe,store:_e}):ie.ctx.slots.default?ie.ctx.slots.default({node:le,data:pe}):h$3("span",{class:oe.be("node","label")},[le.label])}}});var NodeContent=_export_sfc$1(_sfc_main$e,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast($){const oe=inject("TreeNodeMap",null),ae={treeNodeExpand:ie=>{$.node!==ie&&$.node.collapse()},children:[]};return oe&&oe.children.push(ae),provide("TreeNodeMap",ae),{broadcastExpanded:ie=>{if($.accordion)for(const le of ae.children)le.treeNodeExpand(ie)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:$,ctx:oe,el$:ae,dropIndicator$:ie,store:le}){const pe=useNamespace("tree"),_e=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:Ie,treeNode:Ne})=>{if(typeof $.allowDrag=="function"&&!$.allowDrag(Ne.node))return Ie.preventDefault(),!1;Ie.dataTransfer.effectAllowed="move";try{Ie.dataTransfer.setData("text/plain","")}catch{}_e.value.draggingNode=Ne,oe.emit("node-drag-start",Ne.node,Ie)},treeNodeDragOver:({event:Ie,treeNode:Ne})=>{const Fe=Ne,ze=_e.value.dropNode;ze&&ze!==Fe&&removeClass(ze.$el,pe.is("drop-inner"));const At=_e.value.draggingNode;if(!At||!Fe)return;let Lt=!0,hn=!0,vn=!0,_n=!0;typeof $.allowDrop=="function"&&(Lt=$.allowDrop(At.node,Fe.node,"prev"),_n=hn=$.allowDrop(At.node,Fe.node,"inner"),vn=$.allowDrop(At.node,Fe.node,"next")),Ie.dataTransfer.dropEffect=hn||Lt||vn?"move":"none",(Lt||hn||vn)&&ze!==Fe&&(ze&&oe.emit("node-drag-leave",At.node,ze.node,Ie),oe.emit("node-drag-enter",At.node,Fe.node,Ie)),(Lt||hn||vn)&&(_e.value.dropNode=Fe),Fe.node.nextSibling===At.node&&(vn=!1),Fe.node.previousSibling===At.node&&(Lt=!1),Fe.node.contains(At.node,!1)&&(hn=!1),(At.node===Fe.node||At.node.contains(Fe.node))&&(Lt=!1,hn=!1,vn=!1);const bn=Fe.$el.getBoundingClientRect(),Cn=ae.value.getBoundingClientRect();let En;const $n=Lt?hn?.25:vn?.45:1:-1,wn=vn?hn?.75:Lt?.55:0:1;let Tn=-9999;const xn=Ie.clientY-bn.top;xn<bn.height*$n?En="before":xn>bn.height*wn?En="after":hn?En="inner":En="none";const kn=Fe.$el.querySelector(`.${pe.be("node","expand-icon")}`).getBoundingClientRect(),An=ie.value;En==="before"?Tn=kn.top-Cn.top:En==="after"&&(Tn=kn.bottom-Cn.top),An.style.top=`${Tn}px`,An.style.left=`${kn.right-Cn.left}px`,En==="inner"?addClass(Fe.$el,pe.is("drop-inner")):removeClass(Fe.$el,pe.is("drop-inner")),_e.value.showDropIndicator=En==="before"||En==="after",_e.value.allowDrop=_e.value.showDropIndicator||_n,_e.value.dropType=En,oe.emit("node-drag-over",At.node,Fe.node,Ie)},treeNodeDragEnd:Ie=>{const{draggingNode:Ne,dropType:Fe,dropNode:ze}=_e.value;if(Ie.preventDefault(),Ie.dataTransfer.dropEffect="move",Ne&&ze){const At={data:Ne.node.data};Fe!=="none"&&Ne.node.remove(),Fe==="before"?ze.node.parent.insertBefore(At,ze.node):Fe==="after"?ze.node.parent.insertAfter(At,ze.node):Fe==="inner"&&ze.node.insertChild(At),Fe!=="none"&&le.value.registerNode(At),removeClass(ze.$el,pe.is("drop-inner")),oe.emit("node-drag-end",Ne.node,ze.node,Fe,Ie),Fe!=="none"&&oe.emit("node-drop",Ne.node,ze.node,Fe,Ie)}Ne&&!ze&&oe.emit("node-drag-end",Ne.node,null,Fe,Ie),_e.value.showDropIndicator=!1,_e.value.draggingNode=null,_e.value.dropNode=null,_e.value.allowDrop=!0}}),{dragState:_e}}const _sfc_main$d=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup($,oe){const ae=useNamespace("tree"),{broadcastExpanded:ie}=useNodeExpandEventBroadcast($),le=inject("RootTree"),pe=ref(!1),_e=ref(!1),Ce=ref(null),$e=ref(null),xe=ref(null),Ie=inject(dragEventsKey),Ne=getCurrentInstance();provide("NodeInstance",Ne),$.node.expanded&&(pe.value=!0,_e.value=!0);const Fe=le.props.children||"children";watch(()=>{const xn=$.node.data[Fe];return xn&&[...xn]},()=>{$.node.updateChildren()}),watch(()=>$.node.indeterminate,xn=>{Lt($.node.checked,xn)}),watch(()=>$.node.checked,xn=>{Lt(xn,$.node.indeterminate)}),watch(()=>$.node.expanded,xn=>{nextTick(()=>pe.value=xn),xn&&(_e.value=!0)});const ze=xn=>getNodeKey(le.props.nodeKey,xn.data),At=xn=>{const kn=$.props.class;if(!kn)return{};let An;if(isFunction$5(kn)){const{data:On}=xn;An=kn(On,xn)}else An=kn;return isString$7(An)?{[An]:!0}:An},Lt=(xn,kn)=>{(Ce.value!==xn||$e.value!==kn)&&le.ctx.emit("check-change",$.node.data,xn,kn),Ce.value=xn,$e.value=kn},hn=xn=>{handleCurrentChange(le.store,le.ctx.emit,()=>le.store.value.setCurrentNode($.node)),le.currentNode.value=$.node,le.props.expandOnClickNode&&_n(),le.props.checkOnClickNode&&!$.node.disabled&&bn(null,{target:{checked:!$.node.checked}}),le.ctx.emit("node-click",$.node.data,$.node,Ne,xn)},vn=xn=>{le.instance.vnode.props.onNodeContextmenu&&(xn.stopPropagation(),xn.preventDefault()),le.ctx.emit("node-contextmenu",xn,$.node.data,$.node,Ne)},_n=()=>{$.node.isLeaf||(pe.value?(le.ctx.emit("node-collapse",$.node.data,$.node,Ne),$.node.collapse()):($.node.expand(),oe.emit("node-expand",$.node.data,$.node,Ne)))},bn=(xn,kn)=>{$.node.setChecked(kn.target.checked,!le.props.checkStrictly),nextTick(()=>{const An=le.store.value;le.ctx.emit("check",$.node.data,{checkedNodes:An.getCheckedNodes(),checkedKeys:An.getCheckedKeys(),halfCheckedNodes:An.getHalfCheckedNodes(),halfCheckedKeys:An.getHalfCheckedKeys()})})};return{ns:ae,node$:xe,tree:le,expanded:pe,childNodeRendered:_e,oldChecked:Ce,oldIndeterminate:$e,getNodeKey:ze,getNodeClass:At,handleSelectChange:Lt,handleClick:hn,handleContextMenu:vn,handleExpandIconClick:_n,handleCheckChange:bn,handleChildNodeExpand:(xn,kn,An)=>{ie(kn),le.ctx.emit("node-expand",xn,kn,An)},handleDragStart:xn=>{le.props.draggable&&Ie.treeNodeDragStart({event:xn,treeNode:$})},handleDragOver:xn=>{xn.preventDefault(),le.props.draggable&&Ie.treeNodeDragOver({event:xn,treeNode:{$el:xe.value,node:$.node}})},handleDrop:xn=>{xn.preventDefault()},handleDragEnd:xn=>{le.props.draggable&&Ie.treeNodeDragEnd(xn)},CaretRight:caret_right_default}}}),_hoisted_1$9=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$6=["aria-expanded"];function _sfc_render$3($,oe,ae,ie,le,pe){const _e=resolveComponent("el-icon"),Ce=resolveComponent("el-checkbox"),$e=resolveComponent("loading"),xe=resolveComponent("node-content"),Ie=resolveComponent("el-tree-node"),Ne=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([$.ns.b("node"),$.ns.is("expanded",$.expanded),$.ns.is("current",$.node.isCurrent),$.ns.is("hidden",!$.node.visible),$.ns.is("focusable",!$.node.disabled),$.ns.is("checked",!$.node.disabled&&$.node.checked),$.getNodeClass($.node)]),role:"treeitem",tabindex:"-1","aria-expanded":$.expanded,"aria-disabled":$.node.disabled,"aria-checked":$.node.checked,draggable:$.tree.props.draggable,"data-key":$.getNodeKey($.node),onClick:oe[1]||(oe[1]=withModifiers((...Fe)=>$.handleClick&&$.handleClick(...Fe),["stop"])),onContextmenu:oe[2]||(oe[2]=(...Fe)=>$.handleContextMenu&&$.handleContextMenu(...Fe)),onDragstart:oe[3]||(oe[3]=withModifiers((...Fe)=>$.handleDragStart&&$.handleDragStart(...Fe),["stop"])),onDragover:oe[4]||(oe[4]=withModifiers((...Fe)=>$.handleDragOver&&$.handleDragOver(...Fe),["stop"])),onDragend:oe[5]||(oe[5]=withModifiers((...Fe)=>$.handleDragEnd&&$.handleDragEnd(...Fe),["stop"])),onDrop:oe[6]||(oe[6]=withModifiers((...Fe)=>$.handleDrop&&$.handleDrop(...Fe),["stop"]))},[createBaseVNode("div",{class:normalizeClass($.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:($.node.level-1)*$.tree.props.indent+"px"})},[$.tree.props.icon||$.CaretRight?(openBlock(),createBlock(_e,{key:0,class:normalizeClass([$.ns.be("node","expand-icon"),$.ns.is("leaf",$.node.isLeaf),{expanded:!$.node.isLeaf&&$.expanded}]),onClick:withModifiers($.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.tree.props.icon||$.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),$.showCheckbox?(openBlock(),createBlock(Ce,{key:1,"model-value":$.node.checked,indeterminate:$.node.indeterminate,disabled:!!$.node.disabled,onClick:oe[0]||(oe[0]=withModifiers(()=>{},["stop"])),onChange:$.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),$.node.loading?(openBlock(),createBlock(_e,{key:2,class:normalizeClass([$.ns.be("node","loading-icon"),$.ns.is("loading")])},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(xe,{node:$.node,"render-content":$.renderContent},null,8,["node","render-content"])],6),createVNode(Ne,null,{default:withCtx(()=>[!$.renderAfterExpand||$.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.be("node","children")),role:"group","aria-expanded":$.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.node.childNodes,Fe=>(openBlock(),createBlock(Ie,{key:$.getNodeKey(Fe),"render-content":$.renderContent,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,node:Fe,accordion:$.accordion,props:$.props,onNodeExpand:$.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$6)),[[vShow,$.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$9)),[[vShow,$.node.visible]])}var ElTreeNode$1=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:$},oe){const ae=useNamespace("tree"),ie=shallowRef([]),le=shallowRef([]);onMounted(()=>{_e()}),onUpdated(()=>{ie.value=Array.from($.value.querySelectorAll("[role=treeitem]")),le.value=Array.from($.value.querySelectorAll("input[type=checkbox]"))}),watch(le,Ce=>{Ce.forEach($e=>{$e.setAttribute("tabindex","-1")})}),useEventListener$1($,"keydown",Ce=>{const $e=Ce.target;if(!$e.className.includes(ae.b("node")))return;const xe=Ce.code;ie.value=Array.from($.value.querySelectorAll(`.${ae.is("focusable")}[role=treeitem]`));const Ie=ie.value.indexOf($e);let Ne;if([EVENT_CODE.up,EVENT_CODE.down].includes(xe)){if(Ce.preventDefault(),xe===EVENT_CODE.up){Ne=Ie===-1?0:Ie!==0?Ie-1:ie.value.length-1;const ze=Ne;for(;!oe.value.getNode(ie.value[Ne].dataset.key).canFocus;){if(Ne--,Ne===ze){Ne=-1;break}Ne<0&&(Ne=ie.value.length-1)}}else{Ne=Ie===-1?0:Ie<ie.value.length-1?Ie+1:0;const ze=Ne;for(;!oe.value.getNode(ie.value[Ne].dataset.key).canFocus;){if(Ne++,Ne===ze){Ne=-1;break}Ne>=ie.value.length&&(Ne=0)}}Ne!==-1&&ie.value[Ne].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(xe)&&(Ce.preventDefault(),$e.click());const Fe=$e.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes(xe)&&Fe&&(Ce.preventDefault(),Fe.click())});const _e=()=>{var Ce;ie.value=Array.from($.value.querySelectorAll(`.${ae.is("focusable")}[role=treeitem]`)),le.value=Array.from($.value.querySelectorAll("input[type=checkbox]"));const $e=$.value.querySelectorAll(`.${ae.is("checked")}[role=treeitem]`);if($e.length){$e[0].setAttribute("tabindex","0");return}(Ce=ie.value[0])==null||Ce.setAttribute("tabindex","0")}}const _sfc_main$c=defineComponent({name:"ElTree",components:{ElTreeNode:ElTreeNode$1},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:iconPropType}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup($,oe){const{t:ae}=useLocale(),ie=useNamespace("tree"),le=ref(new TreeStore({key:$.nodeKey,data:$.data,lazy:$.lazy,props:$.props,load:$.load,currentNodeKey:$.currentNodeKey,checkStrictly:$.checkStrictly,checkDescendants:$.checkDescendants,defaultCheckedKeys:$.defaultCheckedKeys,defaultExpandedKeys:$.defaultExpandedKeys,autoExpandParent:$.autoExpandParent,defaultExpandAll:$.defaultExpandAll,filterNodeMethod:$.filterNodeMethod}));le.value.initialize();const pe=ref(le.value.root),_e=ref(null),Ce=ref(null),$e=ref(null),{broadcastExpanded:xe}=useNodeExpandEventBroadcast($),{dragState:Ie}=useDragNodeHandler({props:$,ctx:oe,el$:Ce,dropIndicator$:$e,store:le});useKeydown({el$:Ce},le);const Ne=computed(()=>{const{childNodes:Mn}=pe.value;return!Mn||Mn.length===0||Mn.every(({visible:Fn})=>!Fn)});watch(()=>$.currentNodeKey,Mn=>{le.value.setCurrentNodeKey(Mn)}),watch(()=>$.defaultCheckedKeys,Mn=>{le.value.setDefaultCheckedKey(Mn)}),watch(()=>$.defaultExpandedKeys,Mn=>{le.value.setDefaultExpandedKeys(Mn)}),watch(()=>$.data,Mn=>{le.value.setData(Mn)},{deep:!0}),watch(()=>$.checkStrictly,Mn=>{le.value.checkStrictly=Mn});const Fe=Mn=>{if(!$.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");le.value.filter(Mn)},ze=Mn=>getNodeKey($.nodeKey,Mn.data),At=Mn=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Fn=le.value.getNode(Mn);if(!Fn)return[];const Vn=[Fn.data];let jn=Fn.parent;for(;jn&&jn!==pe.value;)Vn.push(jn.data),jn=jn.parent;return Vn.reverse()},Lt=(Mn,Fn)=>le.value.getCheckedNodes(Mn,Fn),hn=Mn=>le.value.getCheckedKeys(Mn),vn=()=>{const Mn=le.value.getCurrentNode();return Mn?Mn.data:null},_n=()=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const Mn=vn();return Mn?Mn[$.nodeKey]:null},bn=(Mn,Fn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");le.value.setCheckedNodes(Mn,Fn)},Cn=(Mn,Fn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");le.value.setCheckedKeys(Mn,Fn)},En=(Mn,Fn,Vn)=>{le.value.setChecked(Mn,Fn,Vn)},$n=()=>le.value.getHalfCheckedNodes(),wn=()=>le.value.getHalfCheckedKeys(),Tn=(Mn,Fn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");handleCurrentChange(le,oe.emit,()=>le.value.setUserCurrentNode(Mn,Fn))},xn=(Mn,Fn=!0)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");handleCurrentChange(le,oe.emit,()=>le.value.setCurrentNodeKey(Mn,Fn))},kn=Mn=>le.value.getNode(Mn),An=Mn=>{le.value.remove(Mn)},On=(Mn,Fn)=>{le.value.append(Mn,Fn)},Nn=(Mn,Fn)=>{le.value.insertBefore(Mn,Fn)},Rn=(Mn,Fn)=>{le.value.insertAfter(Mn,Fn)},zn=(Mn,Fn,Vn)=>{xe(Fn),oe.emit("node-expand",Mn,Fn,Vn)},Bn=(Mn,Fn)=>{if(!$.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");le.value.updateChildren(Mn,Fn)};return provide("RootTree",{ctx:oe,props:$,store:le,root:pe,currentNode:_e,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:ie,store:le,root:pe,currentNode:_e,dragState:Ie,el$:Ce,dropIndicator$:$e,isEmpty:Ne,filter:Fe,getNodeKey:ze,getNodePath:At,getCheckedNodes:Lt,getCheckedKeys:hn,getCurrentNode:vn,getCurrentKey:_n,setCheckedNodes:bn,setCheckedKeys:Cn,setChecked:En,getHalfCheckedNodes:$n,getHalfCheckedKeys:wn,setCurrentNode:Tn,setCurrentKey:xn,t:ae,getNode:kn,remove:An,append:On,insertBefore:Nn,insertAfter:Rn,handleNodeExpand:zn,updateKeyChildren:Bn}}});function _sfc_render$2($,oe,ae,ie,le,pe){const _e=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([$.ns.b(),$.ns.is("dragging",!!$.dragState.draggingNode),$.ns.is("drop-not-allow",!$.dragState.allowDrop),$.ns.is("drop-inner",$.dragState.dropType==="inner"),{[$.ns.m("highlight-current")]:$.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList($.root.childNodes,Ce=>(openBlock(),createBlock(_e,{key:$.getNodeKey(Ce),node:Ce,props:$.props,accordion:$.accordion,"render-after-expand":$.renderAfterExpand,"show-checkbox":$.showCheckbox,"render-content":$.renderContent,onNodeExpand:$.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),$.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass($.ns.e("empty-block"))},[renderSlot($.$slots,"empty",{},()=>{var Ce;return[createBaseVNode("span",{class:normalizeClass($.ns.e("empty-text"))},toDisplayString$1((Ce=$.emptyText)!=null?Ce:$.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass($.ns.e("drop-indicator"))},null,2),[[vShow,$.dragState.showDropIndicator]])],2)}var Tree=_export_sfc$1(_sfc_main$c,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Tree.install=$=>{$.component(Tree.name,Tree)};const _Tree=Tree,ElTree=_Tree,useSelect=($,{attrs:oe},{tree:ae,key:ie})=>{const le=useNamespace("tree-select"),pe={...pick$1(toRefs($),Object.keys(ElSelect.props)),...oe,valueKey:ie,popperClass:computed(()=>{const _e=[le.e("popper")];return $.popperClass&&_e.push($.popperClass),_e.join(" ")}),filterMethod:(_e="")=>{$.filterMethod&&$.filterMethod(_e),nextTick(()=>{var Ce;(Ce=ae.value)==null||Ce.filter(_e)})},onVisibleChange:_e=>{var Ce;(Ce=oe.onVisibleChange)==null||Ce.call(oe,_e),$.filterable&&_e&&pe.filterMethod()}};return pe},component=defineComponent({extends:ElOption,setup($,oe){const ae=ElOption.setup($,oe);delete ae.selectOptionClick;const ie=getCurrentInstance().proxy;return nextTick(()=>{ae.select.cachedOptions.get(ie.value)||ae.select.onOptionCreate(ie)}),ae},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue($){return $||$===0}function isValidArray($){return Array.isArray($)&&$.length}function toValidArray($){return Array.isArray($)?$:isValidValue($)?[$]:[]}function treeFind($,oe,ae,ie,le){for(let pe=0;pe<$.length;pe++){const _e=$[pe];if(oe(_e,pe,$,le))return ie?ie(_e,pe,$,le):_e;{const Ce=ae(_e);if(isValidArray(Ce)){const $e=treeFind(Ce,oe,ae,ie,_e);if($e)return $e}}}}function treeEach($,oe,ae,ie){for(let le=0;le<$.length;le++){const pe=$[le];oe(pe,le,$,ie);const _e=ae(pe);isValidArray(_e)&&treeEach(_e,oe,ae,pe)}}const useTree$1=($,{attrs:oe,slots:ae,emit:ie},{select:le,tree:pe,key:_e})=>{watch(()=>$.modelValue,()=>{$.showCheckbox&&nextTick(()=>{const Ne=pe.value;Ne&&!isEqual$1(Ne.getCheckedKeys(),toValidArray($.modelValue))&&Ne.setCheckedKeys(toValidArray($.modelValue))})},{immediate:!0,deep:!0});const Ce=computed(()=>({value:_e.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...$.props})),$e=(Ne,Fe)=>{var ze;const At=Ce.value[Ne];return isFunction$5(At)?At(Fe,(ze=pe.value)==null?void 0:ze.getNode($e("value",Fe))):Fe[At]},xe=toValidArray($.modelValue).map(Ne=>treeFind($.data||[],Fe=>$e("value",Fe)===Ne,Fe=>$e("children",Fe),(Fe,ze,At,Lt)=>Lt&&$e("value",Lt))).filter(Ne=>isValidValue(Ne)),Ie=computed(()=>{if(!$.renderAfterExpand&&!$.lazy)return[];const Ne=[];return treeEach($.data.concat($.cacheData),Fe=>{const ze=$e("value",Fe);Ne.push({value:ze,currentLabel:$e("label",Fe),isDisabled:$e("disabled",Fe)})},Fe=>$e("children",Fe)),Ne});return{...pick$1(toRefs($),Object.keys(_Tree.props)),...oe,nodeKey:_e,expandOnClickNode:computed(()=>!$.checkStrictly&&$.expandOnClickNode),defaultExpandedKeys:computed(()=>$.defaultExpandedKeys?$.defaultExpandedKeys.concat(xe):xe),renderContent:(Ne,{node:Fe,data:ze,store:At})=>Ne(component,{value:$e("value",ze),label:$e("label",ze),disabled:$e("disabled",ze)},$.renderContent?()=>$.renderContent(Ne,{node:Fe,data:ze,store:At}):ae.default?()=>ae.default({node:Fe,data:ze,store:At}):void 0),filterNodeMethod:(Ne,Fe,ze)=>{var At;return $.filterNodeMethod?$.filterNodeMethod(Ne,Fe,ze):Ne?(At=$e("label",Fe))==null?void 0:At.includes(Ne):!0},onNodeClick:(Ne,Fe,ze)=>{var At,Lt,hn;if((At=oe.onNodeClick)==null||At.call(oe,Ne,Fe,ze),!($.showCheckbox&&$.checkOnClickNode))if(!$.showCheckbox&&($.checkStrictly||Fe.isLeaf)){if(!$e("disabled",Ne)){const vn=(Lt=le.value)==null?void 0:Lt.options.get($e("value",Ne));(hn=le.value)==null||hn.handleOptionSelect(vn,!0)}}else $.expandOnClickNode&&ze.proxy.handleExpandIconClick()},onCheck:(Ne,Fe)=>{var ze;(ze=oe.onCheck)==null||ze.call(oe,Ne,Fe);const At=$e("value",Ne);if($.checkStrictly)ie(UPDATE_MODEL_EVENT,$.multiple?Fe.checkedKeys:Fe.checkedKeys.includes(At)?At:void 0);else if($.multiple)ie(UPDATE_MODEL_EVENT,pe.value.getCheckedKeys(!0));else{const Lt=treeFind([Ne],_n=>!isValidArray($e("children",_n))&&!$e("disabled",_n),_n=>$e("children",_n)),hn=Lt?$e("value",Lt):void 0,vn=isValidValue($.modelValue)&&!!treeFind([Ne],_n=>$e("value",_n)===$.modelValue,_n=>$e("children",_n));ie(UPDATE_MODEL_EVENT,hn===$.modelValue||vn?void 0:hn)}},cacheOptions:Ie}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup($){const oe=inject(selectKey);return watch(()=>$.data,()=>{var ae;$.data.forEach(le=>{oe.cachedOptions.has(le.value)||oe.cachedOptions.set(le.value,le)});const ie=((ae=oe.selectWrapper)==null?void 0:ae.querySelectorAll("input"))||[];Array.from(ie).includes(document.activeElement)||oe.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$b=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ElSelect.props,..._Tree.props,cacheData:{type:Array,default:()=>[]}},setup($,oe){const{slots:ae,expose:ie}=oe,le=ref(),pe=ref(),_e=computed(()=>$.nodeKey||$.valueKey||"value"),Ce=useSelect($,oe,{select:le,tree:pe,key:_e}),{cacheOptions:$e,...xe}=useTree$1($,oe,{select:le,tree:pe,key:_e}),Ie=reactive({});return ie(Ie),onMounted(()=>{Object.assign(Ie,{...pick$1(pe.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(le.value,["focus","blur"])})}),()=>h$3(ElSelect,reactive({...Ce,ref:Ne=>le.value=Ne}),{...ae,default:()=>[h$3(CacheOptions,{data:$e.value}),h$3(_Tree,reactive({...xe,ref:Ne=>pe.value=Ne}))]})}});var TreeSelect=_export_sfc$1(_sfc_main$b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);TreeSelect.install=$=>{$.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=($=>($.KEY="id",$.LABEL="label",$.CHILDREN="children",$.DISABLED="disabled",$))(TreeOptionsEnum||{}),SetOperationEnum=($=>($.ADD="add",$.DELETE="delete",$))(SetOperationEnum||{});const itemSize={type:Number,default:26},treeProps=buildProps({data:{type:definePropType(Array),default:()=>mutable([])},emptyText:{type:String},height:{type:Number,default:200},props:{type:definePropType(Object),default:()=>mutable({children:"children",label:"label",disabled:"disabled",value:"id"})},highlightCurrent:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},defaultCheckedKeys:{type:definePropType(Array),default:()=>mutable([])},checkStrictly:{type:Boolean,default:!1},defaultExpandedKeys:{type:definePropType(Array),default:()=>mutable([])},indent:{type:Number,default:16},itemSize,icon:{type:iconPropType},expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:{type:Boolean,default:!1},currentNodeKey:{type:definePropType([String,Number])},accordion:{type:Boolean,default:!1},filterMethod:{type:definePropType(Function)},perfMode:{type:Boolean,default:!0}}),treeNodeProps=buildProps({node:{type:definePropType(Object),default:()=>mutable(EMPTY_NODE)},expanded:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},current:{type:Boolean,default:!1},hiddenExpandIcon:{type:Boolean,default:!1},itemSize}),treeNodeContentProps=buildProps({node:{type:definePropType(Object),required:!0}}),NODE_CLICK="node-click",NODE_EXPAND="node-expand",NODE_COLLAPSE="node-collapse",CURRENT_CHANGE="current-change",NODE_CHECK="check",NODE_CHECK_CHANGE="check-change",NODE_CONTEXTMENU="node-contextmenu",treeEmits={[NODE_CLICK]:($,oe,ae)=>$&&oe&&ae,[NODE_EXPAND]:($,oe)=>$&&oe,[NODE_COLLAPSE]:($,oe)=>$&&oe,[CURRENT_CHANGE]:($,oe)=>$&&oe,[NODE_CHECK]:($,oe)=>$&&oe,[NODE_CHECK_CHANGE]:($,oe)=>$&&typeof oe=="boolean",[NODE_CONTEXTMENU]:($,oe,ae)=>$&&oe&&ae},treeNodeEmits={click:($,oe)=>!!($&&oe),toggle:$=>!!$,check:($,oe)=>$&&typeof oe=="boolean"};function useCheck($,oe){const ae=ref(new Set),ie=ref(new Set),{emit:le}=getCurrentInstance();watch([()=>oe.value,()=>$.defaultCheckedKeys],()=>nextTick(()=>{_n($.defaultCheckedKeys)}),{immediate:!0});const pe=()=>{if(!oe.value||!$.showCheckbox||$.checkStrictly)return;const{levelTreeNodeMap:bn,maxLevel:Cn}=oe.value,En=ae.value,$n=new Set;for(let wn=Cn-1;wn>=1;--wn){const Tn=bn.get(wn);Tn&&Tn.forEach(xn=>{const kn=xn.children;if(kn){let An=!0,On=!1;for(const Nn of kn){const Rn=Nn.key;if(En.has(Rn))On=!0;else if($n.has(Rn)){An=!1,On=!0;break}else An=!1}An?En.add(xn.key):On?($n.add(xn.key),En.delete(xn.key)):(En.delete(xn.key),$n.delete(xn.key))}})}ie.value=$n},_e=bn=>ae.value.has(bn.key),Ce=bn=>ie.value.has(bn.key),$e=(bn,Cn,En=!0)=>{const $n=ae.value,wn=(Tn,xn)=>{$n[xn?SetOperationEnum.ADD:SetOperationEnum.DELETE](Tn.key);const kn=Tn.children;!$.checkStrictly&&kn&&kn.forEach(An=>{An.disabled||wn(An,xn)})};wn(bn,Cn),pe(),En&&xe(bn,Cn)},xe=(bn,Cn)=>{const{checkedNodes:En,checkedKeys:$n}=At(),{halfCheckedNodes:wn,halfCheckedKeys:Tn}=Lt();le(NODE_CHECK,bn.data,{checkedKeys:$n,checkedNodes:En,halfCheckedKeys:Tn,halfCheckedNodes:wn}),le(NODE_CHECK_CHANGE,bn.data,Cn)};function Ie(bn=!1){return At(bn).checkedKeys}function Ne(bn=!1){return At(bn).checkedNodes}function Fe(){return Lt().halfCheckedKeys}function ze(){return Lt().halfCheckedNodes}function At(bn=!1){const Cn=[],En=[];if(oe!=null&&oe.value&&$.showCheckbox){const{treeNodeMap:$n}=oe.value;ae.value.forEach(wn=>{const Tn=$n.get(wn);Tn&&(!bn||bn&&Tn.isLeaf)&&(En.push(wn),Cn.push(Tn.data))})}return{checkedKeys:En,checkedNodes:Cn}}function Lt(){const bn=[],Cn=[];if(oe!=null&&oe.value&&$.showCheckbox){const{treeNodeMap:En}=oe.value;ie.value.forEach($n=>{const wn=En.get($n);wn&&(Cn.push($n),bn.push(wn.data))})}return{halfCheckedNodes:bn,halfCheckedKeys:Cn}}function hn(bn){ae.value.clear(),ie.value.clear(),_n(bn)}function vn(bn,Cn){if(oe!=null&&oe.value&&$.showCheckbox){const En=oe.value.treeNodeMap.get(bn);En&&$e(En,Cn,!1)}}function _n(bn){if(oe!=null&&oe.value){const{treeNodeMap:Cn}=oe.value;if($.showCheckbox&&Cn&&bn)for(const En of bn){const $n=Cn.get(En);$n&&!_e($n)&&$e($n,!0,!1)}}}return{updateCheckedKeys:pe,toggleCheckbox:$e,isChecked:_e,isIndeterminate:Ce,getCheckedKeys:Ie,getCheckedNodes:Ne,getHalfCheckedKeys:Fe,getHalfCheckedNodes:ze,setChecked:vn,setCheckedKeys:hn}}function useFilter($,oe){const ae=ref(new Set([])),ie=ref(new Set([])),le=computed(()=>isFunction$5($.filterMethod));function pe(Ce){var $e;if(!le.value)return;const xe=new Set,Ie=ie.value,Ne=ae.value,Fe=[],ze=(($e=oe.value)==null?void 0:$e.treeNodes)||[],At=$.filterMethod;Ne.clear();function Lt(hn){hn.forEach(vn=>{Fe.push(vn),At!=null&&At(Ce,vn.data)?Fe.forEach(bn=>{xe.add(bn.key)}):vn.isLeaf&&Ne.add(vn.key);const _n=vn.children;if(_n&&Lt(_n),!vn.isLeaf){if(!xe.has(vn.key))Ne.add(vn.key);else if(_n){let bn=!0;for(const Cn of _n)if(!Ne.has(Cn.key)){bn=!1;break}bn?Ie.add(vn.key):Ie.delete(vn.key)}}Fe.pop()})}return Lt(ze),xe}function _e(Ce){return ie.value.has(Ce.key)}return{hiddenExpandIconKeySet:ie,hiddenNodeKeySet:ae,doFilter:pe,isForceHiddenExpandIcon:_e}}function useTree($,oe){const ae=ref(new Set($.defaultExpandedKeys)),ie=ref(),le=shallowRef();watch(()=>$.currentNodeKey,qn=>{ie.value=qn},{immediate:!0}),watch(()=>$.data,qn=>{er(qn)},{immediate:!0});const{isIndeterminate:pe,isChecked:_e,toggleCheckbox:Ce,getCheckedKeys:$e,getCheckedNodes:xe,getHalfCheckedKeys:Ie,getHalfCheckedNodes:Ne,setChecked:Fe,setCheckedKeys:ze}=useCheck($,le),{doFilter:At,hiddenNodeKeySet:Lt,isForceHiddenExpandIcon:hn}=useFilter($,le),vn=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.value)||TreeOptionsEnum.KEY}),_n=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.children)||TreeOptionsEnum.CHILDREN}),bn=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.disabled)||TreeOptionsEnum.DISABLED}),Cn=computed(()=>{var qn;return((qn=$.props)==null?void 0:qn.label)||TreeOptionsEnum.LABEL}),En=computed(()=>{const qn=ae.value,Yn=Lt.value,ar=[],pr=le.value&&le.value.treeNodes||[];function Un(){const tr=[];for(let ur=pr.length-1;ur>=0;--ur)tr.push(pr[ur]);for(;tr.length;){const ur=tr.pop();if(ur&&(Yn.has(ur.key)||ar.push(ur),qn.has(ur.key))){const _r=ur.children;if(_r){const Er=_r.length;for(let sr=Er-1;sr>=0;--sr)tr.push(_r[sr])}}}}return Un(),ar}),$n=computed(()=>En.value.length>0);function wn(qn){const Yn=new Map,ar=new Map;let pr=1;function Un(ur,_r=1,Er=void 0){var sr;const Pr=[];for(const Sr of ur){const kr=kn(Sr),mr={level:_r,key:kr,data:Sr};mr.label=On(Sr),mr.parent=Er;const lr=xn(Sr);mr.disabled=An(Sr),mr.isLeaf=!lr||lr.length===0,lr&&lr.length&&(mr.children=Un(lr,_r+1,mr)),Pr.push(mr),Yn.set(kr,mr),ar.has(_r)||ar.set(_r,[]),(sr=ar.get(_r))==null||sr.push(mr)}return _r>pr&&(pr=_r),Pr}const tr=Un(qn);return{treeNodeMap:Yn,levelTreeNodeMap:ar,maxLevel:pr,treeNodes:tr}}function Tn(qn){const Yn=At(qn);Yn&&(ae.value=Yn)}function xn(qn){return qn[_n.value]}function kn(qn){return qn?qn[vn.value]:""}function An(qn){return qn[bn.value]}function On(qn){return qn[Cn.value]}function Nn(qn){ae.value.has(qn.key)?Vn(qn):Fn(qn)}function Rn(qn){ae.value=new Set(qn)}function zn(qn,Yn){oe(NODE_CLICK,qn.data,qn,Yn),Bn(qn),$.expandOnClickNode&&Nn(qn),$.showCheckbox&&$.checkOnClickNode&&!qn.disabled&&Ce(qn,!_e(qn),!0)}function Bn(qn){Gn(qn)||(ie.value=qn.key,oe(CURRENT_CHANGE,qn.data,qn))}function Mn(qn,Yn){Ce(qn,Yn)}function Fn(qn){const Yn=ae.value;if(le.value&&$.accordion){const{treeNodeMap:ar}=le.value;Yn.forEach(pr=>{const Un=ar.get(pr);qn&&qn.level===(Un==null?void 0:Un.level)&&Yn.delete(pr)})}Yn.add(qn.key),oe(NODE_EXPAND,qn.data,qn)}function Vn(qn){ae.value.delete(qn.key),oe(NODE_COLLAPSE,qn.data,qn)}function jn(qn){return ae.value.has(qn.key)}function Zn(qn){return!!qn.disabled}function Gn(qn){const Yn=ie.value;return!!Yn&&Yn===qn.key}function Xn(){var qn,Yn;if(ie.value)return(Yn=(qn=le.value)==null?void 0:qn.treeNodeMap.get(ie.value))==null?void 0:Yn.data}function cr(){return ie.value}function nr(qn){ie.value=qn}function er(qn){nextTick(()=>le.value=wn(qn))}function rr(qn){var Yn;const ar=isObject$8(qn)?kn(qn):qn;return(Yn=le.value)==null?void 0:Yn.treeNodeMap.get(ar)}return{tree:le,flattenTree:En,isNotEmpty:$n,getKey:kn,getChildren:xn,toggleExpand:Nn,toggleCheckbox:Ce,isExpanded:jn,isChecked:_e,isIndeterminate:pe,isDisabled:Zn,isCurrent:Gn,isForceHiddenExpandIcon:hn,handleNodeClick:zn,handleNodeCheck:Mn,getCurrentNode:Xn,getCurrentKey:cr,setCurrentKey:nr,getCheckedKeys:$e,getCheckedNodes:xe,getHalfCheckedKeys:Ie,getHalfCheckedNodes:Ne,setChecked:Fe,setCheckedKeys:ze,filter:Tn,setData:er,getNode:rr,expandNode:Fn,collapseNode:Vn,setExpandedKeys:Rn}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup($){const oe=inject(ROOT_TREE_INJECTION_KEY),ae=useNamespace("tree");return()=>{const ie=$.node,{data:le}=ie;return oe!=null&&oe.ctx.slots.default?oe.ctx.slots.default({node:ie,data:le}):h$3("span",{class:ae.be("node","label")},[ie==null?void 0:ie.label])}}});const _hoisted_1$8=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],__default__$7=defineComponent({name:"ElTreeNode"}),_sfc_main$a=defineComponent({...__default__$7,props:treeNodeProps,emits:treeNodeEmits,setup($,{emit:oe}){const ae=$,ie=inject(ROOT_TREE_INJECTION_KEY),le=useNamespace("tree"),pe=computed(()=>{var Ne;return(Ne=ie==null?void 0:ie.props.indent)!=null?Ne:16}),_e=computed(()=>{var Ne;return(Ne=ie==null?void 0:ie.props.icon)!=null?Ne:caret_right_default}),Ce=Ne=>{oe("click",ae.node,Ne)},$e=()=>{oe("toggle",ae.node)},xe=Ne=>{oe("check",ae.node,Ne)},Ie=Ne=>{var Fe,ze,At,Lt;(At=(ze=(Fe=ie==null?void 0:ie.instance)==null?void 0:Fe.vnode)==null?void 0:ze.props)!=null&&At.onNodeContextmenu&&(Ne.stopPropagation(),Ne.preventDefault()),ie==null||ie.ctx.emit(NODE_CONTEXTMENU,Ne,(Lt=ae.node)==null?void 0:Lt.data,ae.node)};return(Ne,Fe)=>{var ze,At,Lt;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref(le).b("node"),unref(le).is("expanded",Ne.expanded),unref(le).is("current",Ne.current),unref(le).is("focusable",!Ne.disabled),unref(le).is("checked",!Ne.disabled&&Ne.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":Ne.expanded,"aria-disabled":Ne.disabled,"aria-checked":Ne.checked,"data-key":(ze=Ne.node)==null?void 0:ze.key,onClick:withModifiers(Ce,["stop"]),onContextmenu:Ie},[createBaseVNode("div",{class:normalizeClass(unref(le).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(Ne.node.level-1)*unref(pe)}px`,height:Ne.itemSize+"px"})},[unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).is("leaf",!!((At=Ne.node)!=null&&At.isLeaf)),unref(le).is("hidden",Ne.hiddenExpandIcon),{expanded:!((Lt=Ne.node)!=null&&Lt.isLeaf)&&Ne.expanded},unref(le).be("node","expand-icon")]),onClick:withModifiers($e,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),Ne.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":Ne.checked,indeterminate:Ne.indeterminate,disabled:Ne.disabled,onChange:xe,onClick:Fe[0]||(Fe[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode(unref(ElNodeContent),{node:Ne.node},null,8,["node"])],6)],42,_hoisted_1$8)}}});var ElTreeNode=_export_sfc$1(_sfc_main$a,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const __default__$6=defineComponent({name:"ElTreeV2"}),_sfc_main$9=defineComponent({...__default__$6,props:treeProps,emits:treeEmits,setup($,{expose:oe,emit:ae}){const ie=$,le=useSlots(),pe=computed(()=>ie.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:ae,slots:le},props:ie,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:_e}=useLocale(),Ce=useNamespace("tree"),{flattenTree:$e,isNotEmpty:xe,toggleExpand:Ie,isExpanded:Ne,isIndeterminate:Fe,isChecked:ze,isDisabled:At,isCurrent:Lt,isForceHiddenExpandIcon:hn,handleNodeClick:vn,handleNodeCheck:_n,toggleCheckbox:bn,getCurrentNode:Cn,getCurrentKey:En,setCurrentKey:$n,getCheckedKeys:wn,getCheckedNodes:Tn,getHalfCheckedKeys:xn,getHalfCheckedNodes:kn,setChecked:An,setCheckedKeys:On,filter:Nn,setData:Rn,getNode:zn,expandNode:Bn,collapseNode:Mn,setExpandedKeys:Fn}=useTree(ie,ae);return oe({toggleCheckbox:bn,getCurrentNode:Cn,getCurrentKey:En,setCurrentKey:$n,getCheckedKeys:wn,getCheckedNodes:Tn,getHalfCheckedKeys:xn,getHalfCheckedNodes:kn,setChecked:An,setCheckedKeys:On,filter:Nn,setData:Rn,getNode:zn,expandNode:Bn,collapseNode:Mn,setExpandedKeys:Fn}),(Vn,jn)=>{var Zn;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ce).b(),{[unref(Ce).m("highlight-current")]:Vn.highlightCurrent}]),role:"tree"},[unref(xe)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,"class-name":unref(Ce).b("virtual-list"),data:unref($e),total:unref($e).length,height:Vn.height,"item-size":unref(pe),"perf-mode":Vn.perfMode},{default:withCtx(({data:Gn,index:Xn,style:cr})=>[(openBlock(),createBlock(ElTreeNode,{key:Gn[Xn].key,style:normalizeStyle$1(cr),node:Gn[Xn],expanded:unref(Ne)(Gn[Xn]),"show-checkbox":Vn.showCheckbox,checked:unref(ze)(Gn[Xn]),indeterminate:unref(Fe)(Gn[Xn]),"item-size":unref(pe),disabled:unref(At)(Gn[Xn]),current:unref(Lt)(Gn[Xn]),"hidden-expand-icon":unref(hn)(Gn[Xn]),onClick:unref(vn),onToggle:unref(Ie),onCheck:unref(_n)},null,8,["style","node","expanded","show-checkbox","checked","indeterminate","item-size","disabled","current","hidden-expand-icon","onClick","onToggle","onCheck"]))]),_:1},8,["class-name","data","total","height","item-size","perf-mode"])):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(Ce).e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(unref(Ce).e("empty-text"))},toDisplayString$1((Zn=Vn.emptyText)!=null?Zn:unref(_e)("el.tree.emptyText")),3)],2))],2)}}});var TreeV2=_export_sfc$1(_sfc_main$9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree.vue"]]);const ElTreeV2=withInstall(TreeV2),uploadContextKey=Symbol("uploadContextKey"),SCOPE$2="ElUpload";class UploadAjaxError extends Error{constructor(oe,ae,ie,le){super(oe),this.name="UploadAjaxError",this.status=ae,this.method=ie,this.url=le}}function getError($,oe,ae){let ie;return ae.response?ie=`${ae.response.error||ae.response}`:ae.responseText?ie=`${ae.responseText}`:ie=`fail to ${oe.method} ${$} ${ae.status}`,new UploadAjaxError(ie,ae.status,oe.method,$)}function getBody($){const oe=$.responseText||$.response;if(!oe)return oe;try{return JSON.parse(oe)}catch{return oe}}const ajaxUpload=$=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const oe=new XMLHttpRequest,ae=$.action;oe.upload&&oe.upload.addEventListener("progress",pe=>{const _e=pe;_e.percent=pe.total>0?pe.loaded/pe.total*100:0,$.onProgress(_e)});const ie=new FormData;if($.data)for(const[pe,_e]of Object.entries($.data))Array.isArray(_e)?ie.append(pe,..._e):ie.append(pe,_e);ie.append($.filename,$.file,$.file.name),oe.addEventListener("error",()=>{$.onError(getError(ae,$,oe))}),oe.addEventListener("load",()=>{if(oe.status<200||oe.status>=300)return $.onError(getError(ae,$,oe));$.onSuccess(getBody(oe))}),oe.open($.method,ae,!0),$.withCredentials&&"withCredentials"in oe&&(oe.withCredentials=!0);const le=$.headers||{};if(le instanceof Headers)le.forEach((pe,_e)=>oe.setRequestHeader(_e,pe));else for(const[pe,_e]of Object.entries(le))isNil(_e)||oe.setRequestHeader(pe,String(_e));return oe.send(ie),oe},uploadListTypes=["text","picture","picture-card"];let fileId=1;const genFileId=()=>Date.now()+fileId++,uploadBaseProps=buildProps({action:{type:String,default:"#"},headers:{type:definePropType(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>mutable({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:definePropType(Array),default:()=>mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:uploadListTypes,default:"text"},httpRequest:{type:definePropType(Function),default:ajaxUpload},disabled:Boolean,limit:Number}),uploadProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},beforeRemove:{type:definePropType(Function)},onRemove:{type:definePropType(Function),default:NOOP},onChange:{type:definePropType(Function),default:NOOP},onPreview:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),uploadListProps=buildProps({files:{type:definePropType(Array),default:()=>mutable([])},disabled:{type:Boolean,default:!1},handlePreview:{type:definePropType(Function),default:NOOP},listType:{type:String,values:uploadListTypes,default:"text"}}),uploadListEmits={remove:$=>!!$},_hoisted_1$7=["onKeydown"],_hoisted_2$5=["src"],_hoisted_3$3=["onClick"],_hoisted_4$2=["onClick"],_hoisted_5=["onClick"],__default__$5=defineComponent({name:"ElUploadList"}),_sfc_main$8=defineComponent({...__default__$5,props:uploadListProps,emits:uploadListEmits,setup($,{emit:oe}){const{t:ae}=useLocale(),ie=useNamespace("upload"),le=useNamespace("icon"),pe=useNamespace("list"),_e=useFormDisabled(),Ce=ref(!1),$e=xe=>{oe("remove",xe)};return(xe,Ie)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(ie).b("list"),unref(ie).bm("list",xe.listType),unref(ie).is("disabled",unref(_e))]),name:unref(pe).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(xe.files,Ne=>(openBlock(),createElementBlock("li",{key:Ne.uid||Ne.name,class:normalizeClass([unref(ie).be("list","item"),unref(ie).is(Ne.status),{focusing:Ce.value}]),tabindex:"0",onKeydown:withKeys(Fe=>!unref(_e)&&$e(Ne),["delete"]),onFocus:Ie[0]||(Ie[0]=Fe=>Ce.value=!0),onBlur:Ie[1]||(Ie[1]=Fe=>Ce.value=!1),onClick:Ie[2]||(Ie[2]=Fe=>Ce.value=!1)},[renderSlot(xe.$slots,"default",{file:Ne},()=>[xe.listType==="picture"||Ne.status!=="uploading"&&xe.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(ie).be("list","item-thumbnail")),src:Ne.url,alt:""},null,10,_hoisted_2$5)):createCommentVNode("v-if",!0),Ne.status==="uploading"||xe.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(ie).be("list","item-name")),onClick:withModifiers(Fe=>xe.handlePreview(Ne),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(ie).be("list","item-file-name"))},toDisplayString$1(Ne.name),3)],10,_hoisted_3$3),Ne.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:xe.listType==="picture-card"?"circle":"line","stroke-width":xe.listType==="picture-card"?6:2,percentage:Number(Ne.percentage),style:normalizeStyle$1(xe.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("label",{class:normalizeClass(unref(ie).be("list","item-status-label"))},[xe.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(le).m("upload-success"),unref(le).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(xe.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(le).m("upload-success"),unref(le).m("check")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(le).m("close")),onClick:Fe=>$e(Ne)},{default:withCtx(()=>[createVNode(unref(close_default))]),_:2},1032,["class","onClick"])),createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),createCommentVNode(" This is a bug which needs to be fixed "),createCommentVNode(" TODO: Fix the incorrect navigation interaction "),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(le).m("close-tip"))},toDisplayString$1(unref(ae)("el.upload.deleteTip")),3)),xe.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(ie).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(ie).be("list","item-preview")),onClick:Fe=>xe.handlePreview(Ne)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_4$2),unref(_e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ie).be("list","item-delete")),onClick:Fe=>$e(Ne)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(le).m("delete"))},{default:withCtx(()=>[createVNode(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_5))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$7))),128)),renderSlot(xe.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc$1(_sfc_main$8,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const uploadDraggerProps=buildProps({disabled:{type:Boolean,default:!1}}),uploadDraggerEmits={file:$=>isArray$c($)},_hoisted_1$6=["onDrop","onDragover"],COMPONENT_NAME="ElUploadDrag",__default__$4=defineComponent({name:COMPONENT_NAME}),_sfc_main$7=defineComponent({...__default__$4,props:uploadDraggerProps,emits:uploadDraggerEmits,setup($,{emit:oe}){const ae=inject(uploadContextKey);ae||throwError$1(COMPONENT_NAME,"usage: <el-upload><el-upload-dragger /></el-upload>");const ie=useNamespace("upload"),le=ref(!1),pe=useFormDisabled(),_e=$e=>{if(pe.value)return;le.value=!1,$e.stopPropagation();const xe=Array.from($e.dataTransfer.files),Ie=ae.accept.value;if(!Ie){oe("file",xe);return}const Ne=xe.filter(Fe=>{const{type:ze,name:At}=Fe,Lt=At.includes(".")?`.${At.split(".").pop()}`:"",hn=ze.replace(/\/.*$/,"");return Ie.split(",").map(vn=>vn.trim()).filter(vn=>vn).some(vn=>vn.startsWith(".")?Lt===vn:/\/\*$/.test(vn)?hn===vn.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(vn)?ze===vn:!1)});oe("file",Ne)},Ce=()=>{pe.value||(le.value=!0)};return($e,xe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b("dragger"),unref(ie).is("dragover",le.value)]),onDrop:withModifiers(_e,["prevent"]),onDragover:withModifiers(Ce,["prevent"]),onDragleave:xe[0]||(xe[0]=withModifiers(Ie=>le.value=!1,["prevent"]))},[renderSlot($e.$slots,"default")],42,_hoisted_1$6))}});var UploadDragger=_export_sfc$1(_sfc_main$7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const uploadContentProps=buildProps({...uploadBaseProps,beforeUpload:{type:definePropType(Function),default:NOOP},onRemove:{type:definePropType(Function),default:NOOP},onStart:{type:definePropType(Function),default:NOOP},onSuccess:{type:definePropType(Function),default:NOOP},onProgress:{type:definePropType(Function),default:NOOP},onError:{type:definePropType(Function),default:NOOP},onExceed:{type:definePropType(Function),default:NOOP}}),_hoisted_1$5=["onKeydown"],_hoisted_2$4=["name","multiple","accept"],__default__$3=defineComponent({name:"ElUploadContent",inheritAttrs:!1}),_sfc_main$6=defineComponent({...__default__$3,props:uploadContentProps,setup($,{expose:oe}){const ae=$,ie=useNamespace("upload"),le=useFormDisabled(),pe=shallowRef({}),_e=shallowRef(),Ce=At=>{if(At.length===0)return;const{autoUpload:Lt,limit:hn,fileList:vn,multiple:_n,onStart:bn,onExceed:Cn}=ae;if(hn&&vn.length+At.length>hn){Cn(At,vn);return}_n||(At=At.slice(0,1));for(const En of At){const $n=En;$n.uid=genFileId(),bn($n),Lt&&$e($n)}},$e=async At=>{if(_e.value.value="",!ae.beforeUpload)return xe(At);let Lt,hn={};try{const _n=ae.beforeUpload(At);hn=isObject$8(ae.data)?cloneDeep(ae.data):ae.data,Lt=await _n}catch{Lt=!1}if(Lt===!1){ae.onRemove(At);return}let vn=At;Lt instanceof Blob&&(Lt instanceof File?vn=Lt:vn=new File([Lt],At.name,{type:At.type})),xe(Object.assign(vn,{uid:At.uid}),hn)},xe=(At,Lt)=>{const{headers:hn,data:vn,method:_n,withCredentials:bn,name:Cn,action:En,onProgress:$n,onSuccess:wn,onError:Tn,httpRequest:xn}=ae,{uid:kn}=At,An={headers:hn||{},withCredentials:bn,file:At,data:Lt??vn,method:_n,filename:Cn,action:En,onProgress:Nn=>{$n(Nn,At)},onSuccess:Nn=>{wn(Nn,At),delete pe.value[kn]},onError:Nn=>{Tn(Nn,At),delete pe.value[kn]}},On=xn(An);pe.value[kn]=On,On instanceof Promise&&On.then(An.onSuccess,An.onError)},Ie=At=>{const Lt=At.target.files;Lt&&Ce(Array.from(Lt))},Ne=()=>{le.value||(_e.value.value="",_e.value.click())},Fe=()=>{Ne()};return oe({abort:At=>{entriesOf(pe.value).filter(At?([hn])=>String(At.uid)===hn:()=>!0).forEach(([hn,vn])=>{vn instanceof XMLHttpRequest&&vn.abort(),delete pe.value[hn]})},upload:$e}),(At,Lt)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(At.listType),unref(ie).is("drag",At.drag)]),tabindex:"0",onClick:Ne,onKeydown:withKeys(withModifiers(Fe,["self"]),["enter","space"])},[At.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(le),onFile:Ce},{default:withCtx(()=>[renderSlot(At.$slots,"default")]),_:3},8,["disabled"])):renderSlot(At.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:_e,class:normalizeClass(unref(ie).e("input")),name:At.name,multiple:At.multiple,accept:At.accept,type:"file",onChange:Ie,onClick:Lt[0]||(Lt[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$4)],42,_hoisted_1$5))}});var UploadContent=_export_sfc$1(_sfc_main$6,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeObjectURL=$=>{var oe;(oe=$.url)!=null&&oe.startsWith("blob:")&&URL.revokeObjectURL($.url)},useHandlers=($,oe)=>{const ae=useVModel($,"fileList",void 0,{passive:!0}),ie=Fe=>ae.value.find(ze=>ze.uid===Fe.uid);function le(Fe){var ze;(ze=oe.value)==null||ze.abort(Fe)}function pe(Fe=["ready","uploading","success","fail"]){ae.value=ae.value.filter(ze=>!Fe.includes(ze.status))}const _e=(Fe,ze)=>{const At=ie(ze);At&&(console.error(Fe),At.status="fail",ae.value.splice(ae.value.indexOf(At),1),$.onError(Fe,At,ae.value),$.onChange(At,ae.value))},Ce=(Fe,ze)=>{const At=ie(ze);At&&($.onProgress(Fe,At,ae.value),At.status="uploading",At.percentage=Math.round(Fe.percent))},$e=(Fe,ze)=>{const At=ie(ze);At&&(At.status="success",At.response=Fe,$.onSuccess(Fe,At,ae.value),$.onChange(At,ae.value))},xe=Fe=>{isNil(Fe.uid)&&(Fe.uid=genFileId());const ze={name:Fe.name,percentage:0,status:"ready",size:Fe.size,raw:Fe,uid:Fe.uid};if($.listType==="picture-card"||$.listType==="picture")try{ze.url=URL.createObjectURL(Fe)}catch(At){At.message,$.onError(At,ze,ae.value)}ae.value=[...ae.value,ze],$.onChange(ze,ae.value)},Ie=async Fe=>{const ze=Fe instanceof File?ie(Fe):Fe;ze||throwError$1(SCOPE$1,"file to be removed not found");const At=Lt=>{le(Lt);const hn=ae.value;hn.splice(hn.indexOf(Lt),1),$.onRemove(Lt,hn),revokeObjectURL(Lt)};$.beforeRemove?await $.beforeRemove(ze,ae.value)!==!1&&At(ze):At(ze)};function Ne(){ae.value.filter(({status:Fe})=>Fe==="ready").forEach(({raw:Fe})=>{var ze;return Fe&&((ze=oe.value)==null?void 0:ze.upload(Fe))})}return watch(()=>$.listType,Fe=>{Fe!=="picture-card"&&Fe!=="picture"||(ae.value=ae.value.map(ze=>{const{raw:At,url:Lt}=ze;if(!Lt&&At)try{ze.url=URL.createObjectURL(At)}catch(hn){$.onError(hn,ze,ae.value)}return ze}))}),watch(ae,Fe=>{for(const ze of Fe)ze.uid||(ze.uid=genFileId()),ze.status||(ze.status="success")},{immediate:!0,deep:!0}),{uploadFiles:ae,abort:le,clearFiles:pe,handleError:_e,handleProgress:Ce,handleStart:xe,handleSuccess:$e,handleRemove:Ie,submit:Ne}},__default__$2=defineComponent({name:"ElUpload"}),_sfc_main$5=defineComponent({...__default__$2,props:uploadProps,setup($,{expose:oe}){const ae=$,ie=useSlots(),le=useFormDisabled(),pe=shallowRef(),{abort:_e,submit:Ce,clearFiles:$e,uploadFiles:xe,handleStart:Ie,handleError:Ne,handleRemove:Fe,handleSuccess:ze,handleProgress:At}=useHandlers(ae,pe),Lt=computed(()=>ae.listType==="picture-card"),hn=computed(()=>({...ae,fileList:xe.value,onStart:Ie,onProgress:At,onSuccess:ze,onError:Ne,onRemove:Fe}));return onBeforeUnmount(()=>{xe.value.forEach(({url:vn})=>{vn!=null&&vn.startsWith("blob:")&&URL.revokeObjectURL(vn)})}),provide(uploadContextKey,{accept:toRef$1(ae,"accept")}),oe({abort:_e,submit:Ce,clearFiles:$e,handleStart:Ie,handleRemove:Fe}),(vn,_n)=>(openBlock(),createElementBlock("div",null,[unref(Lt)&&vn.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(le),"list-type":vn.listType,files:unref(xe),"handle-preview":vn.onPreview,onRemove:unref(Fe)},createSlots({append:withCtx(()=>[createVNode(UploadContent,mergeProps({ref_key:"uploadRef",ref:pe},unref(hn)),{default:withCtx(()=>[unref(ie).trigger?renderSlot(vn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ie).trigger&&unref(ie).default?renderSlot(vn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[vn.$slots.file?{name:"default",fn:withCtx(({file:bn})=>[renderSlot(vn.$slots,"file",{file:bn})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!unref(Lt)||unref(Lt)&&!vn.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:pe},unref(hn)),{default:withCtx(()=>[unref(ie).trigger?renderSlot(vn.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!unref(ie).trigger&&unref(ie).default?renderSlot(vn.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),vn.$slots.trigger?renderSlot(vn.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(vn.$slots,"tip"),!unref(Lt)&&vn.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(le),"list-type":vn.listType,files:unref(xe),"handle-preview":vn.onPreview,onRemove:unref(Fe)},createSlots({_:2},[vn.$slots.file?{name:"default",fn:withCtx(({file:bn})=>[renderSlot(vn.$slots,"file",{file:bn})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc$1(_sfc_main$5,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const ElUpload=withInstall(Upload);var Components=[ElAffix,ElAlert,ElAutocomplete,ElAutoResizer,ElAvatar,ElBacktop,ElBadge,ElBreadcrumb,ElBreadcrumbItem,ElButton,ElButtonGroup$1,ElCalendar,ElCard,ElCarousel,ElCarouselItem,ElCascader,ElCascaderPanel,ElCheckTag,ElCheckbox,ElCheckboxButton,ElCheckboxGroup$1,ElCol,ElCollapse,ElCollapseItem,ElCollapseTransition,ElColorPicker,ElConfigProvider,ElContainer,ElAside,ElFooter,ElHeader,ElMain,ElDatePicker,ElDescriptions,ElDescriptionsItem,ElDialog,ElDivider,ElDrawer,ElDropdown,ElDropdownItem,ElDropdownMenu,ElEmpty,ElForm,ElFormItem,ElIcon,ElImage,ElImageViewer,ElInput,ElInputNumber,ElLink,ElMenu,ElMenuItem,ElMenuItemGroup,ElSubMenu,ElPageHeader,ElPagination,ElPopconfirm,ElPopover,ElPopper,ElProgress,ElRadio,ElRadioButton,ElRadioGroup,ElRate,ElResult,ElRow,ElScrollbar,ElSelect,ElOption,ElOptionGroup,ElSelectV2,ElSkeleton,ElSkeletonItem,ElSlider,ElSpace,ElStatistic,ElCountdown,ElSteps,ElStep,ElSwitch,ElTable,ElTableColumn,ElTableV2,ElTabs,ElTabPane,ElTag,ElText,ElTimePicker,ElTimeSelect,ElTimeline,ElTimelineItem,ElTooltip,ElTooltipV2,ElTransfer,ElTree,ElTreeSelect,ElTreeV2,ElUpload];const SCOPE="ElInfiniteScroll",CHECK_INTERVAL=50,DEFAULT_DELAY=200,DEFAULT_DISTANCE=0,attributes={delay:{type:Number,default:DEFAULT_DELAY},distance:{type:Number,default:DEFAULT_DISTANCE},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0}},getScrollOptions=($,oe)=>Object.entries(attributes).reduce((ae,[ie,le])=>{var pe,_e;const{type:Ce,default:$e}=le,xe=$.getAttribute(`infinite-scroll-${ie}`);let Ie=(_e=(pe=oe[xe])!=null?pe:xe)!=null?_e:$e;return Ie=Ie==="false"?!1:Ie,Ie=Ce(Ie),ae[ie]=Number.isNaN(Ie)?$e:Ie,ae},{}),destroyObserver=$=>{const{observer:oe}=$[SCOPE];oe&&(oe.disconnect(),delete $[SCOPE].observer)},handleScroll=($,oe)=>{const{container:ae,containerEl:ie,instance:le,observer:pe,lastScrollTop:_e}=$[SCOPE],{disabled:Ce,distance:$e}=getScrollOptions($,le),{clientHeight:xe,scrollHeight:Ie,scrollTop:Ne}=ie,Fe=Ne-_e;if($[SCOPE].lastScrollTop=Ne,pe||Ce||Fe<0)return;let ze=!1;if(ae===$)ze=Ie-(xe+Ne)<=$e;else{const{clientTop:At,scrollHeight:Lt}=$,hn=getOffsetTopDistance($,ie);ze=Ne+xe>=hn+At+Lt-$e}ze&&oe.call(le)};function checkFull($,oe){const{containerEl:ae,instance:ie}=$[SCOPE],{disabled:le}=getScrollOptions($,ie);le||ae.clientHeight===0||(ae.scrollHeight<=ae.clientHeight?oe.call(ie):destroyObserver($))}const InfiniteScroll={async mounted($,oe){const{instance:ae,value:ie}=oe;isFunction$5(ie)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:le,immediate:pe}=getScrollOptions($,ae),_e=getScrollContainer($,!0),Ce=_e===window?document.documentElement:_e,$e=throttle$1(handleScroll.bind(null,$,ie),le);if(_e){if($[SCOPE]={instance:ae,container:_e,containerEl:Ce,delay:le,cb:ie,onScroll:$e,lastScrollTop:Ce.scrollTop},pe){const xe=new MutationObserver(throttle$1(checkFull.bind(null,$,ie),CHECK_INTERVAL));$[SCOPE].observer=xe,xe.observe($,{childList:!0,subtree:!0}),checkFull($,ie)}_e.addEventListener("scroll",$e)}},unmounted($){const{container:oe,onScroll:ae}=$[SCOPE];oe==null||oe.removeEventListener("scroll",ae),destroyObserver($)},async updated($){if(!$[SCOPE])await nextTick();else{const{containerEl:oe,cb:ae,observer:ie}=$[SCOPE];oe.clientHeight&&ie&&checkFull($,ae)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=$=>{$.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent($){let oe;const ae=ref(!1),ie=reactive({...$,originalPosition:"",originalOverflow:"",visible:!1});function le(Fe){ie.text=Fe}function pe(){const Fe=ie.parent,ze=Ne.ns;if(!Fe.vLoadingAddClassList){let At=Fe.getAttribute("loading-number");At=Number.parseInt(At)-1,At?Fe.setAttribute("loading-number",At.toString()):(removeClass(Fe,ze.bm("parent","relative")),Fe.removeAttribute("loading-number")),removeClass(Fe,ze.bm("parent","hidden"))}_e(),Ie.unmount()}function _e(){var Fe,ze;(ze=(Fe=Ne.$el)==null?void 0:Fe.parentNode)==null||ze.removeChild(Ne.$el)}function Ce(){var Fe;$.beforeClose&&!$.beforeClose()||(ae.value=!0,clearTimeout(oe),oe=window.setTimeout($e,400),ie.visible=!1,(Fe=$.closed)==null||Fe.call($))}function $e(){if(!ae.value)return;const Fe=ie.parent;ae.value=!1,Fe.vLoadingAddClassList=void 0,pe()}const xe=defineComponent({name:"ElLoading",setup(Fe,{expose:ze}){const{ns:At,zIndex:Lt}=useGlobalComponentSettings("loading");return ze({ns:At,zIndex:Lt}),()=>{const hn=ie.spinner||ie.svg,vn=h$3("svg",{class:"circular",viewBox:ie.svgViewBox?ie.svgViewBox:"0 0 50 50",...hn?{innerHTML:hn}:{}},[h$3("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),_n=ie.text?h$3("p",{class:At.b("text")},[ie.text]):void 0;return h$3(Transition,{name:At.b("fade"),onAfterLeave:$e},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:ie.background||""},class:[At.b("mask"),ie.customClass,ie.fullscreen?"is-fullscreen":""]},[h$3("div",{class:At.b("spinner")},[vn,_n])]),[[vShow,ie.visible]])])})}}}),Ie=createApp(xe),Ne=Ie.mount(document.createElement("div"));return{...toRefs(ie),setText:le,removeElLoadingChild:_e,close:Ce,handleAfterLeave:$e,vm:Ne,get $el(){return Ne.$el}}}let fullscreenInstance;const Loading=function($={}){if(!isClient$2)return;const oe=resolveOptions($);if(oe.fullscreen&&fullscreenInstance)return fullscreenInstance;const ae=createLoadingComponent({...oe,closed:()=>{var le;(le=oe.closed)==null||le.call(oe),oe.fullscreen&&(fullscreenInstance=void 0)}});addStyle(oe,oe.parent,ae),addClassList(oe,oe.parent,ae),oe.parent.vLoadingAddClassList=()=>addClassList(oe,oe.parent,ae);let ie=oe.parent.getAttribute("loading-number");return ie?ie=`${Number.parseInt(ie)+1}`:ie="1",oe.parent.setAttribute("loading-number",ie),oe.parent.appendChild(ae.$el),nextTick(()=>ae.visible.value=oe.visible),oe.fullscreen&&(fullscreenInstance=ae),ae},resolveOptions=$=>{var oe,ae,ie,le;let pe;return isString$7($.target)?pe=(oe=document.querySelector($.target))!=null?oe:document.body:pe=$.target||document.body,{parent:pe===document.body||$.body?document.body:pe,background:$.background||"",svg:$.svg||"",svgViewBox:$.svgViewBox||"",spinner:$.spinner||!1,text:$.text||"",fullscreen:pe===document.body&&((ae=$.fullscreen)!=null?ae:!0),lock:(ie=$.lock)!=null?ie:!1,customClass:$.customClass||"",visible:(le=$.visible)!=null?le:!0,target:pe}},addStyle=async($,oe,ae)=>{const{nextZIndex:ie}=ae.vm.zIndex,le={};if($.fullscreen)ae.originalPosition.value=getStyle$1(document.body,"position"),ae.originalOverflow.value=getStyle$1(document.body,"overflow"),le.zIndex=ie();else if($.parent===document.body){ae.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const pe of["top","left"]){const _e=pe==="top"?"scrollTop":"scrollLeft";le[pe]=`${$.target.getBoundingClientRect()[pe]+document.body[_e]+document.documentElement[_e]-Number.parseInt(getStyle$1(document.body,`margin-${pe}`),10)}px`}for(const pe of["height","width"])le[pe]=`${$.target.getBoundingClientRect()[pe]}px`}else ae.originalPosition.value=getStyle$1(oe,"position");for(const[pe,_e]of Object.entries(le))ae.$el.style[pe]=_e},addClassList=($,oe,ae)=>{const ie=ae.vm.ns;["absolute","fixed","sticky"].includes(ae.originalPosition.value)?removeClass(oe,ie.bm("parent","relative")):addClass(oe,ie.bm("parent","relative")),$.fullscreen&&$.lock?addClass(oe,ie.bm("parent","hidden")):removeClass(oe,ie.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance$1=($,oe)=>{var ae,ie,le,pe;const _e=oe.instance,Ce=Fe=>isObject$8(oe.value)?oe.value[Fe]:void 0,$e=Fe=>{const ze=isString$7(Fe)&&(_e==null?void 0:_e[Fe])||Fe;return ze&&ref(ze)},xe=Fe=>$e(Ce(Fe)||$.getAttribute(`element-loading-${hyphenate(Fe)}`)),Ie=(ae=Ce("fullscreen"))!=null?ae:oe.modifiers.fullscreen,Ne={text:xe("text"),svg:xe("svg"),svgViewBox:xe("svgViewBox"),spinner:xe("spinner"),background:xe("background"),customClass:xe("customClass"),fullscreen:Ie,target:(ie=Ce("target"))!=null?ie:Ie?void 0:$,body:(le=Ce("body"))!=null?le:oe.modifiers.body,lock:(pe=Ce("lock"))!=null?pe:oe.modifiers.lock};$[INSTANCE_KEY]={options:Ne,instance:Loading(Ne)}},updateOptions=($,oe)=>{for(const ae of Object.keys(oe))isRef(oe[ae])&&(oe[ae].value=$[ae])},vLoading={mounted($,oe){oe.value&&createInstance$1($,oe)},updated($,oe){const ae=$[INSTANCE_KEY];oe.oldValue!==oe.value&&(oe.value&&!oe.oldValue?createInstance$1($,oe):oe.value&&oe.oldValue?isObject$8(oe.value)&&updateOptions(oe.value,ae.options):ae==null||ae.instance.close())},unmounted($){var oe;(oe=$[INSTANCE_KEY])==null||oe.instance.close()}},ElLoading={install($){$.directive("loading",vLoading),$.config.globalProperties.$loading=Loading},directive:vLoading,service:Loading},messageTypes=["success","info","warning","error"],messageDefaults=mutable({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:isClient$2?document.body:void 0}),messageProps=buildProps({customClass:{type:String,default:messageDefaults.customClass},center:{type:Boolean,default:messageDefaults.center},dangerouslyUseHTMLString:{type:Boolean,default:messageDefaults.dangerouslyUseHTMLString},duration:{type:Number,default:messageDefaults.duration},icon:{type:iconPropType,default:messageDefaults.icon},id:{type:String,default:messageDefaults.id},message:{type:definePropType([String,Object,Function]),default:messageDefaults.message},onClose:{type:definePropType(Function),required:!1},showClose:{type:Boolean,default:messageDefaults.showClose},type:{type:String,values:messageTypes,default:messageDefaults.type},offset:{type:Number,default:messageDefaults.offset},zIndex:{type:Number,default:messageDefaults.zIndex},grouping:{type:Boolean,default:messageDefaults.grouping},repeatNum:{type:Number,default:messageDefaults.repeatNum}}),messageEmits={destroy:()=>!0},instances$2=shallowReactive([]),getInstance$1=$=>{const oe=instances$2.findIndex(le=>le.id===$),ae=instances$2[oe];let ie;return oe>0&&(ie=instances$2[oe-1]),{current:ae,prev:ie}},getLastOffset=$=>{const{prev:oe}=getInstance$1($);return oe?oe.vm.exposed.bottom.value:0},getOffsetOrSpace=($,oe)=>instances$2.findIndex(ie=>ie.id===$)>0?20:oe,_hoisted_1$4=["id"],_hoisted_2$3=["innerHTML"],__default__$1=defineComponent({name:"ElMessage"}),_sfc_main$4=defineComponent({...__default__$1,props:messageProps,emits:messageEmits,setup($,{expose:oe}){const ae=$,{Close:ie}=TypeComponents,{ns:le,zIndex:pe}=useGlobalComponentSettings("message"),{currentZIndex:_e,nextZIndex:Ce}=pe,$e=ref(),xe=ref(!1),Ie=ref(0);let Ne;const Fe=computed(()=>ae.type?ae.type==="error"?"danger":ae.type:"info"),ze=computed(()=>{const wn=ae.type;return{[le.bm("icon",wn)]:wn&&TypeComponentsMap[wn]}}),At=computed(()=>ae.icon||TypeComponentsMap[ae.type]||""),Lt=computed(()=>getLastOffset(ae.id)),hn=computed(()=>getOffsetOrSpace(ae.id,ae.offset)+Lt.value),vn=computed(()=>Ie.value+hn.value),_n=computed(()=>({top:`${hn.value}px`,zIndex:_e.value}));function bn(){ae.duration!==0&&({stop:Ne}=useTimeoutFn$1(()=>{En()},ae.duration))}function Cn(){Ne==null||Ne()}function En(){xe.value=!1}function $n({code:wn}){wn===EVENT_CODE.esc&&En()}return onMounted(()=>{bn(),Ce(),xe.value=!0}),watch(()=>ae.repeatNum,()=>{Cn(),bn()}),useEventListener$1(document,"keydown",$n),useResizeObserver($e,()=>{Ie.value=$e.value.getBoundingClientRect().height}),oe({visible:xe,bottom:vn,close:En}),(wn,Tn)=>(openBlock(),createBlock(Transition,{name:unref(le).b("fade"),onBeforeLeave:wn.onClose,onAfterLeave:Tn[0]||(Tn[0]=xn=>wn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:wn.id,ref_key:"messageRef",ref:$e,class:normalizeClass([unref(le).b(),{[unref(le).m(wn.type)]:wn.type&&!wn.icon},unref(le).is("center",wn.center),unref(le).is("closable",wn.showClose),wn.customClass]),style:normalizeStyle$1(unref(_n)),role:"alert",onMouseenter:Cn,onMouseleave:bn},[wn.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:wn.repeatNum,type:unref(Fe),class:normalizeClass(unref(le).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(At)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(le).e("icon"),unref(ze)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(At))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(wn.$slots,"default",{},()=>[wn.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{class:normalizeClass(unref(le).e("content")),innerHTML:wn.message},null,10,_hoisted_2$3)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(le).e("content"))},toDisplayString$1(wn.message),3))]),wn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(le).e("closeBtn")),onClick:withModifiers(En,["stop"])},{default:withCtx(()=>[createVNode(unref(ie))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$4),[[vShow,xe.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc$1(_sfc_main$4,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeOptions=$=>{const oe=!$||isString$7($)||isVNode$1($)||isFunction$5($)?{message:$}:$,ae={...messageDefaults,...oe};if(!ae.appendTo)ae.appendTo=document.body;else if(isString$7(ae.appendTo)){let ie=document.querySelector(ae.appendTo);isElement$2(ie)||(ie=document.body),ae.appendTo=ie}return ae},closeMessage=$=>{const oe=instances$2.indexOf($);if(oe===-1)return;instances$2.splice(oe,1);const{handler:ae}=$;ae.close()},createMessage=({appendTo:$,...oe},ae)=>{const ie=`message_${seed$1++}`,le=oe.onClose,pe=document.createElement("div"),_e={...oe,id:ie,onClose:()=>{le==null||le(),closeMessage(Ie)},onDestroy:()=>{render$4(null,pe)}},Ce=createVNode(MessageConstructor,_e,isFunction$5(_e.message)||isVNode$1(_e.message)?{default:isFunction$5(_e.message)?_e.message:()=>_e.message}:null);Ce.appContext=ae||message._context,render$4(Ce,pe),$.appendChild(pe.firstElementChild);const $e=Ce.component,Ie={id:ie,vnode:Ce,vm:$e,handler:{close:()=>{$e.exposed.visible.value=!1}},props:Ce.component.props};return Ie},message=($={},oe)=>{if(!isClient$2)return{close:()=>{}};if(isNumber$5(messageConfig.max)&&instances$2.length>=messageConfig.max)return{close:()=>{}};const ae=normalizeOptions($);if(ae.grouping&&instances$2.length){const le=instances$2.find(({vnode:pe})=>{var _e;return((_e=pe.props)==null?void 0:_e.message)===ae.message});if(le)return le.props.repeatNum+=1,le.props.type=ae.type,le.handler}const ie=createMessage(ae,oe);return instances$2.push(ie),ie.handler};messageTypes.forEach($=>{message[$]=(oe={},ae)=>{const ie=normalizeOptions(oe);return message({...ie,type:$},ae)}});function closeAll$1($){for(const oe of instances$2)(!$||$===oe.props.type)&&oe.handler.close()}message.closeAll=closeAll$1;message._context=null;const ElMessage=withInstallFunction(message,"$message"),_sfc_main$3=defineComponent({name:"ElMessageBox",directives:{TrapFocus},components:{ElButton,ElFocusTrap,ElInput,ElOverlay,ElIcon,...TypeComponents},inheritAttrs:!1,props:{buttonSize:{type:String,validator:isValidComponentSize},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup($,{emit:oe}){const{locale:ae,zIndex:ie,ns:le,size:pe}=useGlobalComponentSettings("message-box",computed(()=>$.buttonSize)),{t:_e}=ae,{nextZIndex:Ce}=ie,$e=ref(!1),xe=reactive({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:Ce()}),Ie=computed(()=>{const zn=xe.type;return{[le.bm("icon",zn)]:zn&&TypeComponentsMap[zn]}}),Ne=useId(),Fe=useId(),ze=computed(()=>xe.icon||TypeComponentsMap[xe.type]||""),At=computed(()=>!!xe.message),Lt=ref(),hn=ref(),vn=ref(),_n=ref(),bn=ref(),Cn=computed(()=>xe.confirmButtonClass);watch(()=>xe.inputValue,async zn=>{await nextTick(),$.boxType==="prompt"&&zn!==null&&An()},{immediate:!0}),watch(()=>$e.value,zn=>{var Bn,Mn;zn&&($.boxType!=="prompt"&&(xe.autofocus?vn.value=(Mn=(Bn=bn.value)==null?void 0:Bn.$el)!=null?Mn:Lt.value:vn.value=Lt.value),xe.zIndex=Ce()),$.boxType==="prompt"&&(zn?nextTick().then(()=>{var Fn;_n.value&&_n.value.$el&&(xe.autofocus?vn.value=(Fn=On())!=null?Fn:Lt.value:vn.value=Lt.value)}):(xe.editorErrorMessage="",xe.validateError=!1))});const En=computed(()=>$.draggable);useDraggable(Lt,hn,En),onMounted(async()=>{await nextTick(),$.closeOnHashChange&&window.addEventListener("hashchange",$n)}),onBeforeUnmount(()=>{$.closeOnHashChange&&window.removeEventListener("hashchange",$n)});function $n(){$e.value&&($e.value=!1,nextTick(()=>{xe.action&&oe("action",xe.action)}))}const wn=()=>{$.closeOnClickModal&&kn(xe.distinguishCancelAndClose?"close":"cancel")},Tn=useSameTarget(wn),xn=zn=>{if(xe.inputType!=="textarea")return zn.preventDefault(),kn("confirm")},kn=zn=>{var Bn;$.boxType==="prompt"&&zn==="confirm"&&!An()||(xe.action=zn,xe.beforeClose?(Bn=xe.beforeClose)==null||Bn.call(xe,zn,xe,$n):$n())},An=()=>{if($.boxType==="prompt"){const zn=xe.inputPattern;if(zn&&!zn.test(xe.inputValue||""))return xe.editorErrorMessage=xe.inputErrorMessage||_e("el.messagebox.error"),xe.validateError=!0,!1;const Bn=xe.inputValidator;if(typeof Bn=="function"){const Mn=Bn(xe.inputValue);if(Mn===!1)return xe.editorErrorMessage=xe.inputErrorMessage||_e("el.messagebox.error"),xe.validateError=!0,!1;if(typeof Mn=="string")return xe.editorErrorMessage=Mn,xe.validateError=!0,!1}}return xe.editorErrorMessage="",xe.validateError=!1,!0},On=()=>{const zn=_n.value.$refs;return zn.input||zn.textarea},Nn=()=>{kn("close")},Rn=()=>{$.closeOnPressEscape&&Nn()};return $.lockScroll&&useLockscreen($e),useRestoreActive($e),{...toRefs(xe),ns:le,overlayEvent:Tn,visible:$e,hasMessage:At,typeClass:Ie,contentId:Ne,inputId:Fe,btnSize:pe,iconComponent:ze,confirmButtonClasses:Cn,rootRef:Lt,focusStartRef:vn,headerRef:hn,inputRef:_n,confirmRef:bn,doClose:$n,handleClose:Nn,onCloseRequested:Rn,handleWrapperClick:wn,handleInputEnter:xn,handleAction:kn,t:_e}}}),_hoisted_1$3=["aria-label","aria-describedby"],_hoisted_2$2=["aria-label"],_hoisted_3$2=["id"];function _sfc_render$1($,oe,ae,ie,le,pe){const _e=resolveComponent("el-icon"),Ce=resolveComponent("close"),$e=resolveComponent("el-input"),xe=resolveComponent("el-button"),Ie=resolveComponent("el-focus-trap"),Ne=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:oe[11]||(oe[11]=Fe=>$.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(Ne,{"z-index":$.zIndex,"overlay-class":[$.ns.is("message-box"),$.modalClass],mask:$.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":$.title,"aria-modal":"true","aria-describedby":$.showInput?void 0:$.contentId,class:normalizeClass(`${$.ns.namespace.value}-overlay-message-box`),onClick:oe[8]||(oe[8]=(...Fe)=>$.overlayEvent.onClick&&$.overlayEvent.onClick(...Fe)),onMousedown:oe[9]||(oe[9]=(...Fe)=>$.overlayEvent.onMousedown&&$.overlayEvent.onMousedown(...Fe)),onMouseup:oe[10]||(oe[10]=(...Fe)=>$.overlayEvent.onMouseup&&$.overlayEvent.onMouseup(...Fe))},[createVNode(Ie,{loop:"",trapped:$.visible,"focus-trap-el":$.rootRef,"focus-start-el":$.focusStartRef,onReleaseRequested:$.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([$.ns.b(),$.customClass,$.ns.is("draggable",$.draggable),{[$.ns.m("center")]:$.center}]),style:normalizeStyle$1($.customStyle),tabindex:"-1",onClick:oe[7]||(oe[7]=withModifiers(()=>{},["stop"]))},[$.title!==null&&$.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass($.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("title"))},[$.iconComponent&&$.center?(openBlock(),createBlock(_e,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString$1($.title),1)],2),$.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass($.ns.e("headerbtn")),"aria-label":$.t("el.messagebox.close"),onClick:oe[0]||(oe[0]=Fe=>$.handleAction($.distinguishCancelAndClose?"close":"cancel")),onKeydown:oe[1]||(oe[1]=withKeys(withModifiers(Fe=>$.handleAction($.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(_e,{class:normalizeClass($.ns.e("close"))},{default:withCtx(()=>[createVNode(Ce)]),_:1},8,["class"])],42,_hoisted_2$2)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:$.contentId,class:normalizeClass($.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass($.ns.e("container"))},[$.iconComponent&&!$.center&&$.hasMessage?(openBlock(),createBlock(_e,{key:0,class:normalizeClass([$.ns.e("status"),$.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),$.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass($.ns.e("message"))},[renderSlot($.$slots,"default",{},()=>[$.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:1,for:$.showInput?$.inputId:void 0,innerHTML:$.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent($.showInput?"label":"p"),{key:0,for:$.showInput?$.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.dangerouslyUseHTMLString?"":$.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass($.ns.e("input"))},[createVNode($e,{id:$.inputId,ref:"inputRef",modelValue:$.inputValue,"onUpdate:modelValue":oe[2]||(oe[2]=Fe=>$.inputValue=Fe),type:$.inputType,placeholder:$.inputPlaceholder,"aria-invalid":$.validateError,class:normalizeClass({invalid:$.validateError}),onKeydown:withKeys($.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass($.ns.e("errormsg")),style:normalizeStyle$1({visibility:$.editorErrorMessage?"visible":"hidden"})},toDisplayString$1($.editorErrorMessage),7)],2),[[vShow,$.showInput]])],10,_hoisted_3$2),createBaseVNode("div",{class:normalizeClass($.ns.e("btns"))},[$.showCancelButton?(openBlock(),createBlock(xe,{key:0,loading:$.cancelButtonLoading,class:normalizeClass([$.cancelButtonClass]),round:$.roundButton,size:$.btnSize,onClick:oe[3]||(oe[3]=Fe=>$.handleAction("cancel")),onKeydown:oe[4]||(oe[4]=withKeys(withModifiers(Fe=>$.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.cancelButtonText||$.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode(xe,{ref:"confirmRef",type:"primary",loading:$.confirmButtonLoading,class:normalizeClass([$.confirmButtonClasses]),round:$.roundButton,disabled:$.confirmButtonDisabled,size:$.btnSize,onClick:oe[5]||(oe[5]=Fe=>$.handleAction("confirm")),onKeydown:oe[6]||(oe[6]=withKeys(withModifiers(Fe=>$.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1($.confirmButtonText||$.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,$.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$3)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,$.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$1(_sfc_main$3,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=$=>{let oe=document.body;return $.appendTo&&(isString$7($.appendTo)&&(oe=document.querySelector($.appendTo)),isElement$2($.appendTo)&&(oe=$.appendTo),isElement$2(oe)||(oe=document.body)),oe},initInstance=($,oe,ae=null)=>{const ie=createVNode(MessageBoxConstructor,$,isFunction$5($.message)||isVNode$1($.message)?{default:isFunction$5($.message)?$.message:()=>$.message}:null);return ie.appContext=ae,render$4(ie,oe),getAppendToElement($).appendChild(oe.firstElementChild),ie.component},genContainer=()=>document.createElement("div"),showMessage=($,oe)=>{const ae=genContainer();$.onVanish=()=>{render$4(null,ae),messageInstance.delete(le)},$.onAction=pe=>{const _e=messageInstance.get(le);let Ce;$.showInput?Ce={value:le.inputValue,action:pe}:Ce=pe,$.callback?$.callback(Ce,ie.proxy):pe==="cancel"||pe==="close"?$.distinguishCancelAndClose&&pe!=="cancel"?_e.reject("close"):_e.reject("cancel"):_e.resolve(Ce)};const ie=initInstance($,ae,oe),le=ie.proxy;for(const pe in $)hasOwn$4($,pe)&&!hasOwn$4(le.$props,pe)&&(le[pe]=$[pe]);return le.visible=!0,le};function MessageBox($,oe=null){if(!isClient$2)return Promise.reject();let ae;return isString$7($)||isVNode$1($)?$={message:$}:ae=$.callback,new Promise((ie,le)=>{const pe=showMessage($,oe??MessageBox._context);messageInstance.set(pe,{options:$,callback:ae,resolve:ie,reject:le})})}const MESSAGE_BOX_VARIANTS=["alert","confirm","prompt"],MESSAGE_BOX_DEFAULT_OPTS={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};MESSAGE_BOX_VARIANTS.forEach($=>{MessageBox[$]=messageBoxFactory($)});function messageBoxFactory($){return(oe,ae,ie,le)=>{let pe="";return isObject$8(ae)?(ie=ae,pe=""):isUndefined$1(ae)?pe="":pe=ae,MessageBox(Object.assign({title:pe,message:oe,type:"",...MESSAGE_BOX_DEFAULT_OPTS[$]},ie,{boxType:$}),le)}}MessageBox.close=()=>{messageInstance.forEach(($,oe)=>{oe.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=$=>{_MessageBox._context=$._context,$.config.globalProperties.$msgbox=_MessageBox,$.config.globalProperties.$messageBox=_MessageBox,$.config.globalProperties.$alert=_MessageBox.alert,$.config.globalProperties.$confirm=_MessageBox.confirm,$.config.globalProperties.$prompt=_MessageBox.prompt};const ElMessageBox=_MessageBox,notificationTypes=["success","info","warning","error"],notificationProps=buildProps({customClass:{type:String,default:""},dangerouslyUseHTMLString:{type:Boolean,default:!1},duration:{type:Number,default:4500},icon:{type:iconPropType},id:{type:String,default:""},message:{type:definePropType([String,Object]),default:""},offset:{type:Number,default:0},onClick:{type:definePropType(Function),default:()=>{}},onClose:{type:definePropType(Function),required:!0},position:{type:String,values:["top-right","top-left","bottom-right","bottom-left"],default:"top-right"},showClose:{type:Boolean,default:!0},title:{type:String,default:""},type:{type:String,values:[...notificationTypes,""],default:""},zIndex:{type:Number,default:0}}),notificationEmits={destroy:()=>!0},_hoisted_1$2=["id"],_hoisted_2$1=["textContent"],_hoisted_3$1={key:0},_hoisted_4$1=["innerHTML"],__default__=defineComponent({name:"ElNotification"}),_sfc_main$2=defineComponent({...__default__,props:notificationProps,emits:notificationEmits,setup($,{expose:oe}){const ae=$,{ns:ie,zIndex:le}=useGlobalComponentSettings("notification"),{nextZIndex:pe,currentZIndex:_e}=le,{Close:Ce}=CloseComponents,$e=ref(!1);let xe;const Ie=computed(()=>{const bn=ae.type;return bn&&TypeComponentsMap[ae.type]?ie.m(bn):""}),Ne=computed(()=>ae.type&&TypeComponentsMap[ae.type]||ae.icon),Fe=computed(()=>ae.position.endsWith("right")?"right":"left"),ze=computed(()=>ae.position.startsWith("top")?"top":"bottom"),At=computed(()=>({[ze.value]:`${ae.offset}px`,zIndex:_e.value}));function Lt(){ae.duration>0&&({stop:xe}=useTimeoutFn$1(()=>{$e.value&&vn()},ae.duration))}function hn(){xe==null||xe()}function vn(){$e.value=!1}function _n({code:bn}){bn===EVENT_CODE.delete||bn===EVENT_CODE.backspace?hn():bn===EVENT_CODE.esc?$e.value&&vn():Lt()}return onMounted(()=>{Lt(),pe(),$e.value=!0}),useEventListener$1(document,"keydown",_n),oe({visible:$e,close:vn}),(bn,Cn)=>(openBlock(),createBlock(Transition,{name:unref(ie).b("fade"),onBeforeLeave:bn.onClose,onAfterLeave:Cn[1]||(Cn[1]=En=>bn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:bn.id,class:normalizeClass([unref(ie).b(),bn.customClass,unref(Fe)]),style:normalizeStyle$1(unref(At)),role:"alert",onMouseenter:hn,onMouseleave:Lt,onClick:Cn[0]||(Cn[0]=(...En)=>bn.onClick&&bn.onClick(...En))},[unref(Ne)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ie).e("icon"),unref(Ie)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ne))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(ie).e("title")),textContent:toDisplayString$1(bn.title)},null,10,_hoisted_2$1),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(ie).e("content")),style:normalizeStyle$1(bn.title?void 0:{margin:0})},[renderSlot(bn.$slots,"default",{},()=>[bn.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:bn.message},null,8,_hoisted_4$1)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$1,toDisplayString$1(bn.message),1))])],6),[[vShow,bn.message]]),bn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ie).e("closeBtn")),onClick:withModifiers(vn,["stop"])},{default:withCtx(()=>[createVNode(unref(Ce))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$2),[[vShow,$e.value]])]),_:3},8,["name","onBeforeLeave"]))}});var NotificationConstructor=_export_sfc$1(_sfc_main$2,[["__file","/home/runner/work/element-plus/element-plus/packages/components/notification/src/notification.vue"]]);const notifications={"top-left":[],"top-right":[],"bottom-left":[],"bottom-right":[]},GAP_SIZE=16;let seed=1;const notify=function($={},oe=null){if(!isClient$2)return{close:()=>{}};(typeof $=="string"||isVNode$1($))&&($={message:$});const ae=$.position||"top-right";let ie=$.offset||0;notifications[ae].forEach(({vm:Ie})=>{var Ne;ie+=(((Ne=Ie.el)==null?void 0:Ne.offsetHeight)||0)+GAP_SIZE}),ie+=GAP_SIZE;const le=`notification_${seed++}`,pe=$.onClose,_e={...$,offset:ie,id:le,onClose:()=>{close(le,ae,pe)}};let Ce=document.body;isElement$2($.appendTo)?Ce=$.appendTo:isString$7($.appendTo)&&(Ce=document.querySelector($.appendTo)),isElement$2(Ce)||(Ce=document.body);const $e=document.createElement("div"),xe=createVNode(NotificationConstructor,_e,isVNode$1(_e.message)?{default:()=>_e.message}:null);return xe.appContext=oe??notify._context,xe.props.onDestroy=()=>{render$4(null,$e)},render$4(xe,$e),notifications[ae].push({vm:xe}),Ce.appendChild($e.firstElementChild),{close:()=>{xe.component.exposed.visible.value=!1}}};notificationTypes.forEach($=>{notify[$]=(oe={})=>((typeof oe=="string"||isVNode$1(oe))&&(oe={message:oe}),notify({...oe,type:$}))});function close($,oe,ae){const ie=notifications[oe],le=ie.findIndex(({vm:xe})=>{var Ie;return((Ie=xe.component)==null?void 0:Ie.props.id)===$});if(le===-1)return;const{vm:pe}=ie[le];if(!pe)return;ae==null||ae(pe);const _e=pe.el.offsetHeight,Ce=oe.split("-")[0];ie.splice(le,1);const $e=ie.length;if(!($e<1))for(let xe=le;xe<$e;xe++){const{el:Ie,component:Ne}=ie[xe].vm,Fe=Number.parseInt(Ie.style[Ce],10)-_e-GAP_SIZE;Ne.props.offset=Fe}}function closeAll(){for(const $ of Object.values(notifications))$.forEach(({vm:oe})=>{oe.component.exposed.visible.value=!1})}notify.closeAll=closeAll;notify._context=null;const ElNotification=withInstallFunction(notify,"$notify");var Plugins=[ElInfiniteScroll,ElLoading,ElMessage,ElMessageBox,ElNotification,ElPopoverDirective],installer=makeInstaller([...Components,...Plugins]),zhCn={};(function($){Object.defineProperty($,"__esModule",{value:!0});var oe={name:"zh-cn",el:{colorpicker:{confirm:"确定",clear:"清空"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"}}};$.default=oe})(zhCn);const zhLocale=getDefaultExportFromCjs(zhCn);var en={};(function($){Object.defineProperty($,"__esModule",{value:!0});var oe={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"}}};$.default=oe})(en);const enLocale=getDefaultExportFromCjs(en);var ot=Object.defineProperty,kt=Object.getOwnPropertyDescriptor,Rt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,$t$1=($,oe)=>{for(var ae in oe)ot($,ae,{get:oe[ae],enumerable:!0})},rt$1=($,oe,ae,ie)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let le of Rt(oe))!Dt.call($,le)&&le!==ae&&ot($,le,{get:()=>oe[le],enumerable:!(ie=kt(oe,le))||ie.enumerable});return $},G=($,oe,ae)=>(rt$1($,oe,"default"),ae&&rt$1(ae,oe,"default"));function it($){let oe=$.split(","),ae=oe[0].match(/:(.*?);/)[1],ie=window.atob(oe[1]),le=ie.length,pe=new Uint8Array(le);for(;le--;)pe[le]=ie.charCodeAt(le);return new Blob([pe],{type:ae})}function at($,oe,ae){return new Promise((ie,le)=>{let pe=document.createElement("CANVAS"),_e=pe.getContext("2d"),Ce=new Image;Ce.crossOrigin="",Ce.onload=function(){if(!pe||!_e)return le();pe.height=Ce.height,pe.width=Ce.width,_e.drawImage(Ce,0,0);let $e=pe.toDataURL(oe||"image/png",ae);pe=null,ie($e)},Ce.src=$})}var It=Object.prototype.toString;function L$1($,oe){return It.call($)===`[object ${oe}]`}function N($){return $!==null&&L$1($,"Object")}function k($){return typeof $<"u"}function lt$1($){return!k($)}function ft($){return $===null}function Pt($){return ft($)||lt$1($)}function Ut($){return J$1($)||S($)?$.length===0:$ instanceof Map||$ instanceof Set?$.size===0:N($)?Object.keys($).length===0:!1}function P$1($){return!!(Ut($)||Pt($))}function pt($){return L$1($,"Number")}function S($){return L$1($,"String")}function ut($){return typeof $=="function"}function Ae($){return L$1($,"Boolean")}function J$1($){return $&&Array.isArray($)}var K$1=typeof window>"u",Q=!K$1;function dt($){let oe="^((https|http|ftp|rtsp|mms)?://)(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-z_!~*'()-]+.)*([0-9a-z][0-9a-z-]{0,61})?[0-9a-z].[a-z]{2,6})(:[0-9]{1,4})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(oe,"ig").test($)}function Ue($){return/^[1](([3][0-9])|([4][0,1,4-9])|([5][0-3,5-9])|([6][2,5,6,7])|([7][0-8])|([8][0-9])|([9][0-3,5-9]))[0-9]{8}$/.test($)}function Be($){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test($)}var j$2=($,oe)=>!!($!=null&&$.className.match(new RegExp("(\\s|^)"+oe+"(\\s|$)"))),qe=($,oe,ae)=>{j$2($,oe)||($.className+=" "+oe),ae&&!j$2($,ae)&&($.className+=" "+ae)},Xe=($,oe,ae)=>{if(j$2($,oe)){let ie=new RegExp("(\\s|^)"+oe+"(\\s|$)");$.className=$.className.replace(ie," ").trim()}if(ae&&j$2($,ae)){let ie=new RegExp("(\\s|^)"+ae+"(\\s|$)");$.className=$.className.replace(ie," ").trim()}},Ve=($,oe,ae)=>{let ie=ae||document.body,{className:le}=ie,pe=le.replace(oe,"").trim().split(/\s+/).join(" ");ie.className=$?`${pe} ${oe}`:pe},Bt=Object.prototype.toString;function Nt($,oe){return $&&$.hasOwnProperty?$.hasOwnProperty(oe):!1}function jt($,oe,ae){if($)if($.forEach)$.forEach(oe,ae);else for(let ie=0,le=$.length;ie<le;ie++)oe.call(ae,$[ie],ie,$)}function Ht($,oe,ae){if($)for(let ie in $)Nt($,ie)&&oe.call(ae,$[ie],ie,$)}function tt($,oe){let ae=$.__proto__.constructor;return oe?new ae(oe):new ae}function H$1($,oe){return oe?et($,oe):$}function et($,oe){if($)switch(Bt.call($)){case"[object Object]":{let ae=Object.create($.__proto__);return Ht($,function(ie,le){ae[le]=H$1(ie,oe)}),ae}case"[object Date]":case"[object RegExp]":return tt($,$.valueOf());case"[object Array]":case"[object Arguments]":{let ae=[];return jt($,function(ie){ae.push(H$1(ie,oe))}),ae}case"[object Set]":{let ae=tt($);return ae.forEach(function(ie){ae.add(H$1(ie,oe))}),ae}case"[object Map]":{let ae=tt($);return ae.forEach(function(ie){ae.set(H$1(ie,oe))}),ae}}return $}function Je($,oe){return $&&et($,oe)}function Ke($){return $&&et($,!0)}var tn=$=>{let oe=($==null?void 0:$.type)??"rgb",ae=($==null?void 0:$.num)??0;if(ae===0)switch(oe){case"rgb":return window.crypto.getRandomValues(new Uint8Array(3)).toString();case"hex":return`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`;case"hsl":return[360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString()}else switch(oe){case"rgb":let ie=[];for(let _e=0;_e<ae;_e++)ie.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return ie;case"hex":let le=[];for(let _e=0;_e<ae;_e++)le.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return le;case"hsl":let pe=[];for(let _e=0;_e<ae;_e++)pe.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return pe}},D$1=($=20)=>new Promise(oe=>setTimeout(oe,$)),Et=($,oe=200,ae=!1)=>{let ie,le=oe,pe;return function(){ie&&clearTimeout(ie),ae?(ie||$.call(pe,...arguments),ie=setTimeout(()=>ie=null,le)):ie=setTimeout(()=>$.call(pe,...arguments),le)}},Sn=($,oe=1e3)=>{let ae;return function(){ae||(ae=setTimeout(()=>{$.call(void 0,...arguments),ae=null},oe))}},Ln=()=>{let $=navigator.userAgent.toLowerCase(),oe=$.match(/midp/i)=="midp",ae=$.match(/ucweb/i)=="ucweb",ie=$.match(/android/i)=="android",le=$.match(/iphone os/i)=="iphone os",pe=$.match(/windows ce/i)=="windows ce",_e=$.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",Ce=$.match(/windows mobile/i)=="windows mobile";return oe||ae||ie||le||pe||_e||Ce},Tt=($,oe="_blank")=>{let ae=document.createElement("a");ae.setAttribute("href",$),ae.setAttribute("target",oe),ae.setAttribute("rel","noreferrer noopener"),ae.setAttribute("id","external");let ie=document.getElementById("external");ie&&document.body.removeChild(ie),document.body.appendChild(ae),ae.click(),ae.remove()};function In($,oe,ae,ie){at($).then(le=>{zt(le,oe,ae,ie)})}function zt($,oe,ae,ie){let le=it($);_t(le,oe,ae,ie)}function _t($,oe,ae,ie){let le=typeof ie<"u"?[ie,$]:[$],pe=new Blob(le,{type:ae||"application/octet-stream"}),_e=window.URL.createObjectURL(pe),Ce=document.createElement("a");Ce.style.display="none",Ce.href=_e,Ce.setAttribute("download",oe),typeof Ce.download>"u"&&Ce.setAttribute("target","_blank"),document.body.appendChild(Ce),Ce.click(),document.body.removeChild(Ce),window.URL.revokeObjectURL(_e)}function Pn($,oe,ae="_self"){let ie=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,le=window.navigator.userAgent.toLowerCase().indexOf("safari")>-1;if(/(iP)/g.test(window.navigator.userAgent))return console.error("Your browser does not support download!"),!1;if(ie||le){let pe=document.createElement("a");if(pe.href=$,pe.target=ae,pe.download!==void 0&&(pe.download=oe||$.substring($.lastIndexOf("/")+1,$.length)),document.createEvent){let _e=document.createEvent("MouseEvents");return _e.initEvent("click",!0,!0),pe.dispatchEvent(_e),!0}}return $.indexOf("?")===-1&&($+="?download"),Tt($,ae),!0}function Wt($,oe){if(!$||!oe||$.length!==oe.length)return!1;for(let ae of Object.keys($))if(!Mt($[ae],oe[ae]))return!1;return!0}function qt($,oe){if(!$||!oe)return!1;let{length:ae}=$;if(ae!==oe.length)return!1;for(let ie=0;ie<ae;ie++)if(!Mt($[ie],oe[ie]))return!1;return!0}function Mt($,oe){let ae=Object.prototype.toString.call($);return ae!==Object.prototype.toString.call(oe)?!1:ae==="[object Object]"?Wt($,oe):ae==="[object Array]"?qt($,oe):ae==="[object Function]"?$===oe?!0:$.toString()===oe.toString():$===oe}var Hn=($,oe)=>{if($.install=ae=>{for(let ie of[$,...Object.values(oe??{})])ae.component(ie.name,ie)},oe)for(let[ae,ie]of Object.entries(oe))$[ae]=ie;return $},U=class{constructor($){ao(this,"storage");this.storage=$}setItem($,oe){P$1(this.storage)||this.storage.setItem($,JSON.stringify(oe))}getItem($){if(!P$1(this.storage))return JSON.parse(this.storage.getItem($))}removeItem($){P$1(this.storage)||this.storage.removeItem($)}clear(){P$1(this.storage)||this.storage.clear()}},q=class extends U{constructor($){super($)}},Kn=()=>Q?new q(window.localStorage):new q(""),Qn=()=>Q?new U(window.sessionStorage):new U("");function Xt($,oe){return S(oe)?$.substring(0,$.indexOf(oe)):""}function fr($){if(!dt($))return console.error(`${$}不符合超链接规范`),{};let oe=$.indexOf("?"),ae=$.slice(oe+1).split("&"),ie={};for(let le=0;le<ae.length;le++)ie[ae[le].split("=")[0]]=ae[le].split("=")[1];return ie}function br($,oe){return $.every(ae=>oe.some(ie=>ie===ae))}var yr=(...$)=>[...$].reduce((oe,ae)=>oe.filter(ie=>ae.includes(ie)));function wr($,oe){let ae=[];for(let ie of $)ie[oe]&&ae.push(ie[oe]);return Array.from(new Set(ae))}var i={};$t$1(i,{Vue:()=>vue_runtime_esmBundler});G(i,vue_runtime_esmBundler);var ee=["class","style"],ne=/^on[A-Z]/;function re($){return Object.keys($).map(oe=>[oe,$[oe]])}function vr($={}){let oe=(0,i.getCurrentInstance)();if(!oe)return{};let{excludeListeners:ae=!1,excludeKeys:ie=[]}=$,le=(0,i.shallowRef)({}),pe=ie.concat(ee);return oe.attrs=(0,i.reactive)(oe.attrs),(0,i.watchEffect)(()=>{let _e=re(oe.attrs).reduce((Ce,[$e,xe])=>(!pe.includes($e)&&!(ae&&ne.test($e))&&(Ce[$e]=xe),Ce),{});le.value=_e}),le}function O($){(0,i.getCurrentInstance)()&&(0,i.onUnmounted)($)}var Br=()=>{let $=(0,i.ref)(!1),oe,ae=()=>{$.value=document.documentElement.classList.contains("dark")};return O(()=>{oe.takeRecords(),oe.disconnect()}),(0,i.onBeforeMount)(()=>{ae(),oe=new MutationObserver(ae),oe.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:$}};function Ct(){let{appContext:{config:{globalProperties:$}}}=(0,i.getCurrentInstance)();return $}var Zr=($,oe)=>{let ae=(oe==null?void 0:oe.theme)??(0,i.ref)("default"),ie=(oe==null?void 0:oe.tooltipId)??"tooltipElement",le=Ct().$echarts,pe=null,_e=(0,i.ref)({}),Ce=(0,i.ref)(),$e=(0,i.computed)(()=>ae.value!=="dark"?_e.value:{backgroundColor:"transparent",..._e.value});function xe(xn){let kn=(0,i.unref)($);!kn||!(0,i.unref)(kn)||(pe=le.init(kn,xn))}function Ie(xn,...kn){var An;if(_e.value=xn,Ce.value=kn,((An=(0,i.unref)($))==null?void 0:An.offsetHeight)===0){D$1().then(()=>Ie((0,i.unref)($e),...kn));return}(0,i.nextTick)(()=>{D$1().then(()=>{!pe&&xe(ae.value),(xn.clear??!0)&&Ne(),pe==null||pe.setOption((0,i.unref)($e)),kn&&kn.map(On=>{(On==null?void 0:On.type)!=="zrender"&&typeof(On==null?void 0:On.callback)=="function"&&(pe==null||pe.on(On==null?void 0:On.name,On!=null&&On.query?On==null?void 0:On.query:"",Nn=>{On==null||On.callback(Nn)})),(On==null?void 0:On.type)==="zrender"&&typeof(On==null?void 0:On.callback)=="function"&&(pe==null||pe.getZr().on(On==null?void 0:On.name,Nn=>{Nn.target||(On==null||On.callback(Nn))}))}),xn!=null&&xn.addTooltip&&wn(xn.addTooltip)})})}function Ne(){pe&&pe.clear()}function Fe(){pe.resize()}function ze(xn){let kn=(xn==null?void 0:xn.type)??"default",An=(xn==null?void 0:xn.opts)??{};pe.showLoading(kn,An)}function At(){pe.hideLoading()}function Lt(xn){pe.appendData(xn)}function hn(){return pe.getWidth()}function vn(){return pe.getHeight()}function _n(){return pe||xe(ae.value),pe}function bn(){return pe.getDom()}function Cn(){return pe.getOption()}function En(xn){return pe.getDataURL(xn)}function $n(xn){return pe.getConnectedDataURL(xn)}function wn(xn){if(!xn)return;let kn=document.querySelector("html");if(!document.getElementById(ie)){let Nn=document.createElement("div");Nn.setAttribute("id",ie),Nn.style.display="block",kn.appendChild(Nn)}let An=document.querySelector(`#${ie}`),On=Nn=>{if((Nn==null?void 0:Nn.targetType)!=="axisLabel")return;let Rn=`
padding: 5px;
font-size: 12px;
display: inline;
border-radius: 4px;
position: absolute;
background-color: #303133;
z-index: 99999;color: #fff;
box-shadow: rgba(0, 0, 0, 0.3) 2px 2px 8px;
`;An.style.cssText=Rn,An.innerHTML=Nn==null?void 0:Nn.value,kn.onmousemove=zn=>{let Bn=zn.pageX-10,Mn=zn.pageY+15;An.style.top=Mn+"px",An.style.left=Bn+"px"}};pe==null||pe.on("mouseover",Nn=>{(xn==="x"&&Nn.componentType=="xAxis"||xn==="y"&&Nn.componentType=="yAxis"||xn.toString()==="true"&&Nn.componentType.includes("Axis"))&&On(Nn)}),pe==null||pe.on("mouseout",()=>{kn.onmousemove=null,An.style.cssText="display:none"})}(0,i.watch)(()=>ae.value,xn=>{pe&&(pe.dispose(),xe(xn),Ie(_e.value,...Ce.value))});function Tn(){var xn;!pe||D$1(((xn=_e.value)==null?void 0:xn.delay)??300).then(()=>{Fe()})}return(0,i.onMounted)(()=>{(0,i.nextTick)(()=>{window.addEventListener("resize",Tn)})}),O(()=>{var xn;window.removeEventListener("resize",Tn),pe&&(pe.dispose(),pe=null,(xn=document.querySelector(`#${ie}`))==null||xn.remove())}),{echarts:le,clear:Ne,resize:Fe,getDom:bn,getWidth:hn,getOption:Cn,getHeight:vn,addTooltip:wn,getDataURL:En,setOptions:Ie,appendData:Lt,getInstance:_n,showLoading:ze,hideLoading:At,getConnectedDataURL:$n}},se=Symbol("watermark-dom"),oo=($=(0,i.ref)(document.body))=>{let oe=se.toString(),ae=(0,i.shallowRef)(),ie=()=>{let Ne=(0,i.unref)(ae);ae.value=void 0;let Fe=(0,i.unref)($);!Fe||Ne&&Fe.removeChild(Ne)};function le(Ne,Fe){let ze=document.createElement("canvas"),At=(Fe==null?void 0:Fe.width)??250,Lt=(Fe==null?void 0:Fe.height)??100;Object.assign(ze,{width:At,height:Lt});let hn=ze.getContext("2d");if(hn){if(hn.rotate(((Fe==null?void 0:Fe.rotate)??-10*Math.PI)/120),hn.font=(Fe==null?void 0:Fe.font)??"15px Reggae One",(Fe==null?void 0:Fe.gradient)&&J$1(Fe==null?void 0:Fe.gradient)){let vn=hn.createLinearGradient(0,0,At,0);Fe==null||Fe.gradient.forEach(_n=>{vn.addColorStop(_n.value,_n.color)}),hn.fillStyle=vn}else hn.fillStyle=(Fe==null?void 0:Fe.fillStyle)??"rgba(0, 0, 0, 0.15)";if(hn.textAlign="left",hn.textBaseline="middle",Fe!=null&&Fe.globalAlpha&&(hn.globalAlpha=Fe.globalAlpha),Fe==null?void 0:Fe.shadowConfig){let{shadowConfig:vn}=Fe;hn.shadowBlur=vn[0],hn.shadowColor=(vn==null?void 0:vn[1])??"#000000",hn.shadowOffsetX=(vn==null?void 0:vn[2])??0,hn.shadowOffsetY=(vn==null?void 0:vn[3])??0}hn.fillText(Ne,At/((Fe==null?void 0:Fe.fillTextWidth)??20),Lt/((Fe==null?void 0:Fe.fillTextHeight)??2))}return ze.toDataURL("image/png")}function pe(Ne={}){let Fe=(0,i.unref)(ae);!Fe||(k(Ne.width)&&(Fe.style.width=`${Ne.width}px`),k(Ne.height)&&(Fe.style.height=`${Ne.height}px`),k(Ne.str)&&(Fe.style.background=`url(${le(Ne.str,Ne.attr)}) left top repeat`))}let _e=Et(()=>{let Ne=(0,i.unref)($);if(!Ne)return;let{clientHeight:Fe,clientWidth:ze}=Ne;pe({height:Fe,width:ze})}),Ce=(Ne,Fe)=>{var vn;if((0,i.unref)(ae))return pe({str:Ne,attr:Fe}),oe;let ze=document.createElement("div");ae.value=ze,ze.id=oe,ze.style.pointerEvents="none",ze.style.top="0px",ze.style.left="0px",ze.style.position="absolute",ze.style.zIndex=(Fe==null?void 0:Fe.zIndex)??"100000";let At=(0,i.unref)($);if(!At)return oe;let{clientHeight:Lt,clientWidth:hn}=At;return pe({str:Ne,width:hn,height:Lt,attr:Fe}),(vn=At==null?void 0:At.style)!=null&&vn.position||(At.style.position="relative"),At.appendChild(ze),oe};function $e(Ne,{str:Fe,attr:ze}){Ne[0].removedNodes[0]&&Ne[0].removedNodes[0].id===oe&&(ae.value=void 0,Ce(Fe,ze))}function xe(Ne,Fe){let ze={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(At=>$e(At,{str:Ne,attr:Fe})).observe((0,i.unref)($),ze)}function Ie(Ne,Fe){Ce(Ne,Fe),window.addEventListener("resize",_e),Fe!=null&&Fe.forever&&xe(Ne,Fe),(0,i.getCurrentInstance)()&&ie&&ie()}return O(()=>{window.removeEventListener("resize",_e)}),{clear:ie,setWatermark:Ie}};const _hoisted_1$1={key:1},_sfc_main$1=defineComponent({__name:"index",setup($){const oe=computed(()=>le=>{var pe;return((pe=le==null?void 0:le.footerButtons)==null?void 0:pe.length)>0?le.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:_e,index:Ce}})=>{const $e=()=>closeDialog(_e,Ce,{command:"cancel"});_e!=null&&_e.beforeCancel&&ut(_e==null?void 0:_e.beforeCancel)?_e.beforeCancel($e,{options:_e,index:Ce}):$e()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:_e,index:Ce}})=>{const $e=()=>closeDialog(_e,Ce,{command:"sure"});_e!=null&&_e.beforeSure&&ut(_e==null?void 0:_e.beforeSure)?_e.beforeSure($e,{options:_e,index:Ce}):$e()}}]});function ae(le,pe,_e){if(pe!=null&&pe[le]&&ut(pe==null?void 0:pe[le]))return pe==null?void 0:pe[le]({options:pe,index:_e})}function ie(le,pe,_e={command:"close"}){closeDialog(le,pe,_e),ae("close",le,pe)}return(le,pe)=>{const _e=resolveComponent("el-button"),Ce=resolveComponent("el-dialog");return openBlock(!0),createElementBlock(Fragment,null,renderList(unref(dialogStore),($e,xe)=>(openBlock(),createBlock(Ce,mergeProps({key:xe},$e,{modelValue:$e.visible,"onUpdate:modelValue":Ie=>$e.visible=Ie,onOpened:Ie=>ae("open",$e,xe),onClose:Ie=>ie($e,xe),onOpenAutoFocus:Ie=>ae("openAutoFocus",$e,xe),onCloseAutoFocus:Ie=>ae("closeAutoFocus",$e,xe)}),createSlots({default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($e.contentRenderer({options:$e,index:xe})),mergeProps($e==null?void 0:$e.props,{onClose:Ie=>ie($e,xe,Ie)}),null,16,["onClose"]))]),_:2},[$e!=null&&$e.headerRenderer?{name:"header",fn:withCtx(({close:Ie,titleId:Ne,titleClass:Fe})=>[(openBlock(),createBlock(resolveDynamicComponent($e==null?void 0:$e.headerRenderer({close:Ie,titleId:Ne,titleClass:Fe}))))]),key:"0"}:void 0,$e!=null&&$e.hideFooter?void 0:{name:"footer",fn:withCtx(()=>[$e!=null&&$e.footerRenderer?(openBlock(),createBlock(resolveDynamicComponent($e==null?void 0:$e.footerRenderer({options:$e,index:xe})),{key:0})):(openBlock(),createElementBlock("span",_hoisted_1$1,[(openBlock(!0),createElementBlock(Fragment,null,renderList(oe.value($e),(Ie,Ne)=>(openBlock(),createBlock(_e,mergeProps({key:Ne},Ie,{onClick:Fe=>Ie.btnClick({dialog:{options:$e,index:xe},button:{btn:Ie,index:Ne}})}),{default:withCtx(()=>[createTextVNode(toDisplayString$1(Ie==null?void 0:Ie.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","onOpened","onClose","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose$1($){return getCurrentScope()?(onScopeDispose($),!0):!1}function toValue($){return typeof $=="function"?$():unref($)}const isClient$1=typeof window<"u",noop$5=()=>{},isIOS=getIsIOS();function getIsIOS(){var $;return isClient$1&&(($=window==null?void 0:window.navigator)==null?void 0:$.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper($,oe){function ae(...ie){return new Promise((le,pe)=>{Promise.resolve($(()=>oe.apply(this,ie),{fn:oe,thisArg:this,args:ie})).then(le).catch(pe)})}return ae}function debounceFilter($,oe={}){let ae,ie,le=noop$5;const pe=Ce=>{clearTimeout(Ce),le(),le=noop$5};return Ce=>{const $e=toValue($),xe=toValue(oe.maxWait);return ae&&pe(ae),$e<=0||xe!==void 0&&xe<=0?(ie&&(pe(ie),ie=null),Promise.resolve(Ce())):new Promise((Ie,Ne)=>{le=oe.rejectOnCancel?Ne:Ie,xe&&!ie&&(ie=setTimeout(()=>{ae&&pe(ae),ie=null,Ie(Ce())},xe)),ae=setTimeout(()=>{ie&&pe(ie),ie=null,Ie(Ce())},$e)})}}function toRef(...$){if($.length!==1)return toRef$1(...$);const oe=$[0];return typeof oe=="function"?readonly(customRef(()=>({get:oe,set:noop$5}))):ref(oe)}function useDebounceFn($,oe=200,ae={}){return createFilterWrapper(debounceFilter(oe,ae),$)}function tryOnMounted($,oe=!0){getCurrentInstance()?onMounted($):oe?$():nextTick($)}function tryOnUnmounted$1($){getCurrentInstance()&&onUnmounted($)}function useIntervalFn($,oe=1e3,ae={}){const{immediate:ie=!0,immediateCallback:le=!1}=ae;let pe=null;const _e=ref(!1);function Ce(){pe&&(clearInterval(pe),pe=null)}function $e(){_e.value=!1,Ce()}function xe(){const Ie=toValue(oe);Ie<=0||(_e.value=!0,le&&$(),Ce(),pe=setInterval($,Ie))}if(ie&&isClient$1&&xe(),isRef(oe)||typeof oe=="function"){const Ie=watch(oe,()=>{_e.value&&isClient$1&&xe()});tryOnScopeDispose$1(Ie)}return tryOnScopeDispose$1($e),{isActive:_e,pause:$e,resume:xe}}function useTimeoutFn($,oe,ae={}){const{immediate:ie=!0}=ae,le=ref(!1);let pe=null;function _e(){pe&&(clearTimeout(pe),pe=null)}function Ce(){le.value=!1,_e()}function $e(...xe){_e(),le.value=!0,pe=setTimeout(()=>{le.value=!1,pe=null,$(...xe)},toValue(oe))}return ie&&(le.value=!0,isClient$1&&$e()),tryOnScopeDispose$1(Ce),{isPending:readonly(le),start:$e,stop:Ce}}const dialogStore=ref([]),addDialog=$=>{const oe=()=>dialogStore.value.push(Object.assign($,{visible:!0}));$!=null&&$.openDelay?useTimeoutFn(()=>{oe()},$.openDelay):oe()},closeDialog=($,oe,ae)=>{dialogStore.value.splice(oe,1),$.closeCallBack&&$.closeCallBack({options:$,index:oe,args:ae})},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=Hn(_sfc_main$1),_sfc_main=defineComponent({name:"app",components:{[ElConfigProvider.name]:ElConfigProvider,ReDialog},computed:{currentLocale(){var $;return(($=this.$storage.locale)==null?void 0:$.locale)==="zh"?zhLocale:enLocale}}}),_export_sfc=($,oe)=>{const ae=$.__vccOpts||$;for(const[ie,le]of oe)ae[ie]=le;return ae};function _sfc_render($,oe,ae,ie,le,pe){const _e=resolveComponent("router-view"),Ce=resolveComponent("ReDialog"),$e=resolveComponent("el-config-provider");return openBlock(),createBlock($e,{locale:$.currentLocale},{default:withCtx(()=>[createVNode(_e),createVNode(Ce)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function($){return"/vue-pure-admin/"+$},seen={},__vitePreload=function(oe,ae,ie){if(!ae||ae.length===0)return oe();const le=document.getElementsByTagName("link");return Promise.all(ae.map(pe=>{if(pe=assetsURL(pe),pe in seen)return;seen[pe]=!0;const _e=pe.endsWith(".css"),Ce=_e?'[rel="stylesheet"]':"";if(!!ie)for(let Ie=le.length-1;Ie>=0;Ie--){const Ne=le[Ie];if(Ne.href===pe&&(!_e||Ne.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${pe}"]${Ce}`))return;const xe=document.createElement("link");if(xe.rel=_e?"stylesheet":scriptRel,_e||(xe.as="script",xe.crossOrigin=""),xe.href=pe,document.head.appendChild(xe),_e)return new Promise((Ie,Ne)=>{xe.addEventListener("load",Ie),xe.addEventListener("error",()=>Ne(new Error(`Unable to preload CSS for ${pe}`)))})})).then(()=>oe())},resource$1={buttons:{hsLoginOut:$=>{const{normalize:oe}=$;return oe(["LoginOut"])},hsfullscreen:$=>{const{normalize:oe}=$;return oe(["FullScreen"])},hsexitfullscreen:$=>{const{normalize:oe}=$;return oe(["ExitFullscreen"])},hsrefreshRoute:$=>{const{normalize:oe}=$;return oe(["RefreshRoute"])},hslogin:$=>{const{normalize:oe}=$;return oe(["Login"])},hsadd:$=>{const{normalize:oe}=$;return oe(["Add"])},hsmark:$=>{const{normalize:oe}=$;return oe(["Mark/Cancel"])},hssave:$=>{const{normalize:oe}=$;return oe(["Save"])},hssearch:$=>{const{normalize:oe}=$;return oe(["Search"])},hsexpendAll:$=>{const{normalize:oe}=$;return oe(["Expand All"])},hscollapseAll:$=>{const{normalize:oe}=$;return oe(["Collapse All"])},hssystemSet:$=>{const{normalize:oe}=$;return oe(["Open ProjectConfig"])},hsdelete:$=>{const{normalize:oe}=$;return oe(["Delete"])},hsreload:$=>{const{normalize:oe}=$;return oe(["Reload"])},hscloseCurrentTab:$=>{const{normalize:oe}=$;return oe(["Close CurrentTab"])},hscloseLeftTabs:$=>{const{normalize:oe}=$;return oe(["Close LeftTabs"])},hscloseRightTabs:$=>{const{normalize:oe}=$;return oe(["Close RightTabs"])},hscloseOtherTabs:$=>{const{normalize:oe}=$;return oe(["Close OtherTabs"])},hscloseAllTabs:$=>{const{normalize:oe}=$;return oe(["Close AllTabs"])},hswholeFullScreen:$=>{const{normalize:oe}=$;return oe(["FullScreen"])},hswholeExitFullScreen:$=>{const{normalize:oe}=$;return oe(["ExitFull"])},hscontentFullScreen:$=>{const{normalize:oe}=$;return oe(["Content FullScreen"])},hscontentExitFullScreen:$=>{const{normalize:oe}=$;return oe(["Content ExitFullScreen"])}},menus:{hshome:$=>{const{normalize:oe}=$;return oe(["Home"])},hslogin:$=>{const{normalize:oe}=$;return oe(["Login"])},hsempty:$=>{const{normalize:oe}=$;return oe(["Empty Page"])},hssysManagement:$=>{const{normalize:oe}=$;return oe(["System Manage"])},hsUser:$=>{const{normalize:oe}=$;return oe(["User Manage"])},hsRole:$=>{const{normalize:oe}=$;return oe(["Role Manage"])},hsDept:$=>{const{normalize:oe}=$;return oe(["Dept Manage"])},hseditor:$=>{const{normalize:oe}=$;return oe(["Editor"])},hsabnormal:$=>{const{normalize:oe}=$;return oe(["Abnormal Page"])},hsfourZeroFour:$=>{const{normalize:oe}=$;return oe(["404"])},hsfourZeroOne:$=>{const{normalize:oe}=$;return oe(["403"])},hsFive:$=>{const{normalize:oe}=$;return oe(["500"])},hscomponents:$=>{const{normalize:oe}=$;return oe(["Components"])},hsdialog:$=>{const{normalize:oe}=$;return oe(["Dialog Components"])},hsmessage:$=>{const{normalize:oe}=$;return oe(["Message Tips Components"])},hsvideo:$=>{const{normalize:oe}=$;return oe(["Video Components"])},hsmap:$=>{const{normalize:oe}=$;return oe(["Map Components"])},hsdraggable:$=>{const{normalize:oe}=$;return oe(["Draggable Components"])},hssplitPane:$=>{const{normalize:oe}=$;return oe(["Split Pane"])},hsbutton:$=>{const{normalize:oe}=$;return oe(["Button Components"])},hscropping:$=>{const{normalize:oe}=$;return oe(["Picture Cropping"])},hscountTo:$=>{const{normalize:oe}=$;return oe(["Digital Animation"])},hsselector:$=>{const{normalize:oe}=$;return oe(["Selector Components"])},hsflowChart:$=>{const{normalize:oe}=$;return oe(["Flow Chart"])},hsseamless:$=>{const{normalize:oe}=$;return oe(["Seamless Scroll"])},hscontextmenu:$=>{const{normalize:oe}=$;return oe(["Context Menu"])},hstypeit:$=>{const{normalize:oe}=$;return oe(["Typeit Components"])},hsjsoneditor:$=>{const{normalize:oe}=$;return oe(["JSON Editor"])},hsmenus:$=>{const{normalize:oe}=$;return oe(["MultiLevel Menu"])},hsmenu1:$=>{const{normalize:oe}=$;return oe(["Menu1"])},"hsmenu1-1":$=>{const{normalize:oe}=$;return oe(["Menu1-1"])},"hsmenu1-2":$=>{const{normalize:oe}=$;return oe(["Menu1-2"])},"hsmenu1-2-1":$=>{const{normalize:oe}=$;return oe(["Menu1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:oe}=$;return oe(["Menu1-2-2"])},"hsmenu1-3":$=>{const{normalize:oe}=$;return oe(["Menu1-3"])},hsmenu2:$=>{const{normalize:oe}=$;return oe(["Menu2"])},permission:$=>{const{normalize:oe}=$;return oe(["Permission Manage"])},permissionPage:$=>{const{normalize:oe}=$;return oe(["Page Permission"])},permissionButton:$=>{const{normalize:oe}=$;return oe(["Button Permission"])},hstabs:$=>{const{normalize:oe}=$;return oe(["Tabs Operate"])},hsguide:$=>{const{normalize:oe}=$;return oe(["Guide"])},hsAble:$=>{const{normalize:oe}=$;return oe(["Able"])},hsMenuTree:$=>{const{normalize:oe}=$;return oe(["Menu Tree"])},hsWatermark:$=>{const{normalize:oe}=$;return oe(["Water Mark"])},hsPrint:$=>{const{normalize:oe}=$;return oe(["Print"])},hsDownload:$=>{const{normalize:oe}=$;return oe(["Download"])},hsExternalPage:$=>{const{normalize:oe}=$;return oe(["External Page"])},hsPureDocument:$=>{const{normalize:oe}=$;return oe(["Pure Doc(Embedded)"])},externalLink:$=>{const{normalize:oe}=$;return oe(["Pure Doc(External)"])},hsEpDocument:$=>{const{normalize:oe}=$;return oe(["Element Plus Doc(Embedded)"])},hsVueDocument:$=>{const{normalize:oe}=$;return oe(["Vue3 Doc(Embedded)"])},hsViteDocument:$=>{const{normalize:oe}=$;return oe(["Vite Doc(Embedded)"])},hsPiniaDocument:$=>{const{normalize:oe}=$;return oe(["Pinia Doc(Embedded)"])},hsRouterDocument:$=>{const{normalize:oe}=$;return oe(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:$=>{const{normalize:oe}=$;return oe(["Tailwindcss Doc(Embedded)"])},hsAbout:$=>{const{normalize:oe}=$;return oe(["About"])},hsResult:$=>{const{normalize:oe}=$;return oe(["Result Page"])},hsSuccess:$=>{const{normalize:oe}=$;return oe(["Success Page"])},hsFail:$=>{const{normalize:oe}=$;return oe(["Fail Page"])},hsIconSelect:$=>{const{normalize:oe}=$;return oe(["Icon Select"])},hsTimeline:$=>{const{normalize:oe}=$;return oe(["Time Line"])},hsLineTree:$=>{const{normalize:oe}=$;return oe(["LineTree"])},hsList:$=>{const{normalize:oe}=$;return oe(["List Page"])},hsListCard:$=>{const{normalize:oe}=$;return oe(["Card List Page"])},hsDebounce:$=>{const{normalize:oe}=$;return oe(["Debounce & Throttle"])},hsFormDesign:$=>{const{normalize:oe}=$;return oe(["Form Design"])},hsBarcode:$=>{const{normalize:oe}=$;return oe(["Barcode"])},hsQrcode:$=>{const{normalize:oe}=$;return oe(["Qrcode"])},hsCascader:$=>{const{normalize:oe}=$;return oe(["Area Cascader"])},hsSwiper:$=>{const{normalize:oe}=$;return oe(["Swiper Plugin"])},hsVirtualList:$=>{const{normalize:oe}=$;return oe(["Virtual List"])},hsPdf:$=>{const{normalize:oe}=$;return oe(["PDF Preview"])},hsExecl:$=>{const{normalize:oe}=$;return oe(["Export Excel"])},hsInfiniteScroll:$=>{const{normalize:oe}=$;return oe(["Table Infinite Scroll"])},hsdanmaku:$=>{const{normalize:oe}=$;return oe(["Danmaku Components"])},hsPureTableBase:$=>{const{normalize:oe}=$;return oe(["Base Usage"])},hsPureTableHigh:$=>{const{normalize:oe}=$;return oe(["High Usage"])},hsTree:$=>{const{normalize:oe}=$;return oe(["Big Data Tree"])},hsMenuoverflow:$=>{const{normalize:oe}=$;return oe(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:$=>{const{normalize:oe}=$;return oe(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:$=>{const{normalize:oe}=$;return oe(["Loading..."])}},login:{username:$=>{const{normalize:oe}=$;return oe(["Username"])},password:$=>{const{normalize:oe}=$;return oe(["Password"])},verifyCode:$=>{const{normalize:oe}=$;return oe(["VerifyCode"])},remember:$=>{const{normalize:oe}=$;return oe(["Remember Password"])},sure:$=>{const{normalize:oe}=$;return oe(["Sure Password"])},forget:$=>{const{normalize:oe}=$;return oe(["Forget Password?"])},login:$=>{const{normalize:oe}=$;return oe(["Login"])},thirdLogin:$=>{const{normalize:oe}=$;return oe(["Third Login"])},phoneLogin:$=>{const{normalize:oe}=$;return oe(["Phone Login"])},qRCodeLogin:$=>{const{normalize:oe}=$;return oe(["QRCode Login"])},register:$=>{const{normalize:oe}=$;return oe(["Register"])},weChatLogin:$=>{const{normalize:oe}=$;return oe(["WeChat Login"])},alipayLogin:$=>{const{normalize:oe}=$;return oe(["Alipay Login"])},qqLogin:$=>{const{normalize:oe}=$;return oe(["QQ Login"])},weiboLogin:$=>{const{normalize:oe}=$;return oe(["Weibo Login"])},phone:$=>{const{normalize:oe}=$;return oe(["Phone"])},smsVerifyCode:$=>{const{normalize:oe}=$;return oe(["SMS VerifyCode"])},back:$=>{const{normalize:oe}=$;return oe(["Back"])},test:$=>{const{normalize:oe}=$;return oe(["Mock Test"])},tip:$=>{const{normalize:oe}=$;return oe(['After scanning the code, click "Confirm" to complete the login'])},definite:$=>{const{normalize:oe}=$;return oe(["Definite"])},loginSuccess:$=>{const{normalize:oe}=$;return oe(["Login Success"])},registerSuccess:$=>{const{normalize:oe}=$;return oe(["Regist Success"])},tickPrivacy:$=>{const{normalize:oe}=$;return oe(["Please tick Privacy Policy"])},readAccept:$=>{const{normalize:oe}=$;return oe(["I have read it carefully and accept"])},privacyPolicy:$=>{const{normalize:oe}=$;return oe(["Privacy Policy"])},getVerifyCode:$=>{const{normalize:oe}=$;return oe(["Get VerifyCode"])},info:$=>{const{normalize:oe}=$;return oe(["Seconds"])},usernameReg:$=>{const{normalize:oe}=$;return oe(["Please enter username"])},passwordReg:$=>{const{normalize:oe}=$;return oe(["Please enter password"])},verifyCodeReg:$=>{const{normalize:oe}=$;return oe(["Please enter verify code"])},verifyCodeCorrectReg:$=>{const{normalize:oe}=$;return oe(["Please enter correct verify code"])},verifyCodeSixReg:$=>{const{normalize:oe}=$;return oe(["Please enter a 6-digit verify code"])},phoneReg:$=>{const{normalize:oe}=$;return oe(["Please enter the phone"])},phoneCorrectReg:$=>{const{normalize:oe}=$;return oe(["Please enter the correct phone number format"])},passwordRuleReg:$=>{const{normalize:oe}=$;return oe(["The password format should be any combination of 8-18 digits"])},passwordSureReg:$=>{const{normalize:oe}=$;return oe(["Please enter confirm password"])},passwordDifferentReg:$=>{const{normalize:oe}=$;return oe(["The two passwords do not match!"])},passwordUpdateReg:$=>{const{normalize:oe}=$;return oe(["Password has been updated"])}}},__vite_glob_0_0$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource$1},Symbol.toStringTag,{value:"Module"})),resource={buttons:{hsLoginOut:$=>{const{normalize:oe}=$;return oe(["退出系统"])},hsfullscreen:$=>{const{normalize:oe}=$;return oe(["全屏"])},hsexitfullscreen:$=>{const{normalize:oe}=$;return oe(["退出全屏"])},hsrefreshRoute:$=>{const{normalize:oe}=$;return oe(["刷新路由"])},hslogin:$=>{const{normalize:oe}=$;return oe(["登录"])},hsadd:$=>{const{normalize:oe}=$;return oe(["新增"])},hsmark:$=>{const{normalize:oe}=$;return oe(["标记/取消"])},hssave:$=>{const{normalize:oe}=$;return oe(["保存"])},hssearch:$=>{const{normalize:oe}=$;return oe(["搜索"])},hsexpendAll:$=>{const{normalize:oe}=$;return oe(["全部展开"])},hscollapseAll:$=>{const{normalize:oe}=$;return oe(["全部折叠"])},hssystemSet:$=>{const{normalize:oe}=$;return oe(["打开项目配置"])},hsdelete:$=>{const{normalize:oe}=$;return oe(["删除"])},hsreload:$=>{const{normalize:oe}=$;return oe(["重新加载"])},hscloseCurrentTab:$=>{const{normalize:oe}=$;return oe(["关闭当前标签页"])},hscloseLeftTabs:$=>{const{normalize:oe}=$;return oe(["关闭左侧标签页"])},hscloseRightTabs:$=>{const{normalize:oe}=$;return oe(["关闭右侧标签页"])},hscloseOtherTabs:$=>{const{normalize:oe}=$;return oe(["关闭其他标签页"])},hscloseAllTabs:$=>{const{normalize:oe}=$;return oe(["关闭全部标签页"])},hswholeFullScreen:$=>{const{normalize:oe}=$;return oe(["全屏"])},hswholeExitFullScreen:$=>{const{normalize:oe}=$;return oe(["退出全屏"])},hscontentFullScreen:$=>{const{normalize:oe}=$;return oe(["内容区全屏"])},hscontentExitFullScreen:$=>{const{normalize:oe}=$;return oe(["内容区退出全屏"])}},menus:{hshome:$=>{const{normalize:oe}=$;return oe(["首页"])},hslogin:$=>{const{normalize:oe}=$;return oe(["登录"])},hsempty:$=>{const{normalize:oe}=$;return oe(["无Layout页"])},hssysManagement:$=>{const{normalize:oe}=$;return oe(["系统管理"])},hsUser:$=>{const{normalize:oe}=$;return oe(["用户管理"])},hsRole:$=>{const{normalize:oe}=$;return oe(["角色管理"])},hsDept:$=>{const{normalize:oe}=$;return oe(["部门管理"])},hseditor:$=>{const{normalize:oe}=$;return oe(["编辑器"])},hsabnormal:$=>{const{normalize:oe}=$;return oe(["异常页面"])},hsfourZeroFour:$=>{const{normalize:oe}=$;return oe(["404"])},hsfourZeroOne:$=>{const{normalize:oe}=$;return oe(["403"])},hsFive:$=>{const{normalize:oe}=$;return oe(["500"])},hscomponents:$=>{const{normalize:oe}=$;return oe(["组件"])},hsdialog:$=>{const{normalize:oe}=$;return oe(["函数式弹框组件"])},hsmessage:$=>{const{normalize:oe}=$;return oe(["消息提示组件"])},hsvideo:$=>{const{normalize:oe}=$;return oe(["视频组件"])},hsmap:$=>{const{normalize:oe}=$;return oe(["地图组件"])},hsdraggable:$=>{const{normalize:oe}=$;return oe(["拖拽组件"])},hssplitPane:$=>{const{normalize:oe}=$;return oe(["切割面板"])},hsbutton:$=>{const{normalize:oe}=$;return oe(["按钮组件"])},hscropping:$=>{const{normalize:oe}=$;return oe(["图片裁剪"])},hscountTo:$=>{const{normalize:oe}=$;return oe(["数字动画"])},hsselector:$=>{const{normalize:oe}=$;return oe(["选择器组件"])},hsflowChart:$=>{const{normalize:oe}=$;return oe(["流程图"])},hsseamless:$=>{const{normalize:oe}=$;return oe(["无缝滚动"])},hscontextmenu:$=>{const{normalize:oe}=$;return oe(["右键菜单"])},hstypeit:$=>{const{normalize:oe}=$;return oe(["打字机组件"])},hsjsoneditor:$=>{const{normalize:oe}=$;return oe(["JSON编辑器"])},hsmenus:$=>{const{normalize:oe}=$;return oe(["多级菜单"])},hsmenu1:$=>{const{normalize:oe}=$;return oe(["菜单1"])},"hsmenu1-1":$=>{const{normalize:oe}=$;return oe(["菜单1-1"])},"hsmenu1-2":$=>{const{normalize:oe}=$;return oe(["菜单1-2"])},"hsmenu1-2-1":$=>{const{normalize:oe}=$;return oe(["菜单1-2-1"])},"hsmenu1-2-2":$=>{const{normalize:oe}=$;return oe(["菜单1-2-2"])},"hsmenu1-3":$=>{const{normalize:oe}=$;return oe(["菜单1-3"])},hsmenu2:$=>{const{normalize:oe}=$;return oe(["菜单2"])},permission:$=>{const{normalize:oe}=$;return oe(["权限管理"])},permissionPage:$=>{const{normalize:oe}=$;return oe(["页面权限"])},permissionButton:$=>{const{normalize:oe}=$;return oe(["按钮权限"])},hstabs:$=>{const{normalize:oe}=$;return oe(["标签页操作"])},hsguide:$=>{const{normalize:oe}=$;return oe(["引导页"])},hsAble:$=>{const{normalize:oe}=$;return oe(["功能"])},hsMenuTree:$=>{const{normalize:oe}=$;return oe(["菜单树结构"])},hsWatermark:$=>{const{normalize:oe}=$;return oe(["水印"])},hsPrint:$=>{const{normalize:oe}=$;return oe(["打印"])},hsDownload:$=>{const{normalize:oe}=$;return oe(["下载"])},hsExternalPage:$=>{const{normalize:oe}=$;return oe(["外部页面"])},hsPureDocument:$=>{const{normalize:oe}=$;return oe(["平台文档(内嵌)"])},externalLink:$=>{const{normalize:oe}=$;return oe(["平台文档(外链)"])},hsEpDocument:$=>{const{normalize:oe}=$;return oe(["Element Plus 文档(内嵌)"])},hsVueDocument:$=>{const{normalize:oe}=$;return oe(["Vue3 文档(内嵌)"])},hsViteDocument:$=>{const{normalize:oe}=$;return oe(["Vite 文档(内嵌)"])},hsPiniaDocument:$=>{const{normalize:oe}=$;return oe(["Pinia 文档(内嵌)"])},hsRouterDocument:$=>{const{normalize:oe}=$;return oe(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:$=>{const{normalize:oe}=$;return oe(["Tailwindcss 文档(内嵌)"])},hsAbout:$=>{const{normalize:oe}=$;return oe(["关于"])},hsResult:$=>{const{normalize:oe}=$;return oe(["结果页面"])},hsSuccess:$=>{const{normalize:oe}=$;return oe(["成功页面"])},hsFail:$=>{const{normalize:oe}=$;return oe(["失败页面"])},hsIconSelect:$=>{const{normalize:oe}=$;return oe(["图标选择器"])},hsTimeline:$=>{const{normalize:oe}=$;return oe(["时间线"])},hsLineTree:$=>{const{normalize:oe}=$;return oe(["树形连接线"])},hsList:$=>{const{normalize:oe}=$;return oe(["列表页"])},hsListCard:$=>{const{normalize:oe}=$;return oe(["卡片列表页"])},hsDebounce:$=>{const{normalize:oe}=$;return oe(["防抖节流"])},hsFormDesign:$=>{const{normalize:oe}=$;return oe(["表单设计器"])},hsBarcode:$=>{const{normalize:oe}=$;return oe(["条形码"])},hsQrcode:$=>{const{normalize:oe}=$;return oe(["二维码"])},hsCascader:$=>{const{normalize:oe}=$;return oe(["区域级联选择器"])},hsSwiper:$=>{const{normalize:oe}=$;return oe(["Swiper插件"])},hsVirtualList:$=>{const{normalize:oe}=$;return oe(["虚拟列表"])},hsPdf:$=>{const{normalize:oe}=$;return oe(["PDF预览"])},hsExecl:$=>{const{normalize:oe}=$;return oe(["导出Excel"])},hsInfiniteScroll:$=>{const{normalize:oe}=$;return oe(["表格无限滚动"])},hsdanmaku:$=>{const{normalize:oe}=$;return oe(["弹幕组件"])},hsPureTableBase:$=>{const{normalize:oe}=$;return oe(["基础用法23个示例"])},hsPureTableHigh:$=>{const{normalize:oe}=$;return oe(["高级用法10个示例"])},hsTree:$=>{const{normalize:oe}=$;return oe(["大数据树业务组件"])},hsMenuoverflow:$=>{const{normalize:oe}=$;return oe(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:$=>{const{normalize:oe}=$;return oe(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:$=>{const{normalize:oe}=$;return oe(["加载中..."])}},login:{username:$=>{const{normalize:oe}=$;return oe(["账号"])},password:$=>{const{normalize:oe}=$;return oe(["密码"])},verifyCode:$=>{const{normalize:oe}=$;return oe(["验证码"])},remember:$=>{const{normalize:oe}=$;return oe(["记住密码"])},sure:$=>{const{normalize:oe}=$;return oe(["确认密码"])},forget:$=>{const{normalize:oe}=$;return oe(["忘记密码?"])},login:$=>{const{normalize:oe}=$;return oe(["登录"])},thirdLogin:$=>{const{normalize:oe}=$;return oe(["第三方登录"])},phoneLogin:$=>{const{normalize:oe}=$;return oe(["手机登录"])},qRCodeLogin:$=>{const{normalize:oe}=$;return oe(["二维码登录"])},register:$=>{const{normalize:oe}=$;return oe(["注册"])},weChatLogin:$=>{const{normalize:oe}=$;return oe(["微信登录"])},alipayLogin:$=>{const{normalize:oe}=$;return oe(["支付宝登录"])},qqLogin:$=>{const{normalize:oe}=$;return oe(["QQ登录"])},weiboLogin:$=>{const{normalize:oe}=$;return oe(["微博登录"])},phone:$=>{const{normalize:oe}=$;return oe(["手机号码"])},smsVerifyCode:$=>{const{normalize:oe}=$;return oe(["短信验证码"])},back:$=>{const{normalize:oe}=$;return oe(["返回"])},test:$=>{const{normalize:oe}=$;return oe(["模拟测试"])},tip:$=>{const{normalize:oe}=$;return oe(['扫码后点击"确认",即可完成登录'])},definite:$=>{const{normalize:oe}=$;return oe(["确定"])},loginSuccess:$=>{const{normalize:oe}=$;return oe(["登录成功"])},registerSuccess:$=>{const{normalize:oe}=$;return oe(["注册成功"])},tickPrivacy:$=>{const{normalize:oe}=$;return oe(["请勾选隐私政策"])},readAccept:$=>{const{normalize:oe}=$;return oe(["我已仔细阅读并接受"])},privacyPolicy:$=>{const{normalize:oe}=$;return oe(["《隐私政策》"])},getVerifyCode:$=>{const{normalize:oe}=$;return oe(["获取验证码"])},info:$=>{const{normalize:oe}=$;return oe(["秒后重新获取"])},usernameReg:$=>{const{normalize:oe}=$;return oe(["请输入账号"])},passwordReg:$=>{const{normalize:oe}=$;return oe(["请输入密码"])},verifyCodeReg:$=>{const{normalize:oe}=$;return oe(["请输入验证码"])},verifyCodeCorrectReg:$=>{const{normalize:oe}=$;return oe(["请输入正确的验证码"])},verifyCodeSixReg:$=>{const{normalize:oe}=$;return oe(["请输入6位数字验证码"])},phoneReg:$=>{const{normalize:oe}=$;return oe(["请输入手机号码"])},phoneCorrectReg:$=>{const{normalize:oe}=$;return oe(["请输入正确的手机号码格式"])},passwordRuleReg:$=>{const{normalize:oe}=$;return oe(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:$=>{const{normalize:oe}=$;return oe(["请输入确认密码"])},passwordDifferentReg:$=>{const{normalize:oe}=$;return oe(["两次密码不一致!"])},passwordUpdateReg:$=>{const{normalize:oe}=$;return oe(["修改密码成功"])}}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource},Symbol.toStringTag,{value:"Module"}));/*!
* shared v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const inBrowser=typeof window<"u",hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",makeSymbol=$=>hasSymbol?Symbol($):$,generateFormatCacheKey=($,oe,ae)=>friendlyJSONstringify({l:$,k:oe,s:ae}),friendlyJSONstringify=$=>JSON.stringify($).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$4=$=>typeof $=="number"&&isFinite($),isDate$2=$=>toTypeString($)==="[object Date]",isRegExp$4=$=>toTypeString($)==="[object RegExp]",isEmptyObject=$=>isPlainObject$2($)&&Object.keys($).length===0;function warn$1($,oe){typeof console<"u"&&(console.warn("[intlify] "+$),oe&&console.warn(oe.stack))}const assign$4=Object.assign;function escapeHtml($){return $.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const hasOwnProperty$1=Object.prototype.hasOwnProperty;function hasOwn$3($,oe){return hasOwnProperty$1.call($,oe)}const isArray$9=Array.isArray,isFunction$2=$=>typeof $=="function",isString$5=$=>typeof $=="string",isBoolean$2=$=>typeof $=="boolean",isObject$6=$=>$!==null&&typeof $=="object",objectToString$1=Object.prototype.toString,toTypeString=$=>objectToString$1.call($),isPlainObject$2=$=>toTypeString($)==="[object Object]",toDisplayString=$=>$==null?"":isArray$9($)||isPlainObject$2($)&&$.toString===objectToString$1?JSON.stringify($,null,2):String($);/*!
* message-compiler v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const CompileErrorCodes={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function createCompileError($,oe,ae={}){const{domain:ie,messages:le,args:pe}=ae,_e=$,Ce=new SyntaxError(String(_e));return Ce.code=$,oe&&(Ce.location=oe),Ce.domain=ie,Ce}/*!
* core-base v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const pathStateMachine=[];pathStateMachine[0]={w:[0],i:[3,0],["["]:[4],o:[7]};pathStateMachine[1]={w:[1],["."]:[2],["["]:[4],o:[7]};pathStateMachine[2]={w:[2],i:[3,0],[0]:[3,0]};pathStateMachine[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};pathStateMachine[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};pathStateMachine[5]={["'"]:[4,0],o:8,l:[5,0]};pathStateMachine[6]={['"']:[4,0],o:8,l:[6,0]};const literalValueRE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function isLiteral($){return literalValueRE.test($)}function stripQuotes($){const oe=$.charCodeAt(0),ae=$.charCodeAt($.length-1);return oe===ae&&(oe===34||oe===39)?$.slice(1,-1):$}function getPathCharType($){if($==null)return"o";switch($.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return $;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath($){const oe=$.trim();return $.charAt(0)==="0"&&isNaN(parseInt($))?!1:isLiteral(oe)?stripQuotes(oe):"*"+oe}function parse$5($){const oe=[];let ae=-1,ie=0,le=0,pe,_e,Ce,$e,xe,Ie,Ne;const Fe=[];Fe[0]=()=>{_e===void 0?_e=Ce:_e+=Ce},Fe[1]=()=>{_e!==void 0&&(oe.push(_e),_e=void 0)},Fe[2]=()=>{Fe[0](),le++},Fe[3]=()=>{if(le>0)le--,ie=4,Fe[0]();else{if(le=0,_e===void 0||(_e=formatSubPath(_e),_e===!1))return!1;Fe[1]()}};function ze(){const At=$[ae+1];if(ie===5&&At==="'"||ie===6&&At==='"')return ae++,Ce="\\"+At,Fe[0](),!0}for(;ie!==null;)if(ae++,pe=$[ae],!(pe==="\\"&&ze())){if($e=getPathCharType(pe),Ne=pathStateMachine[ie],xe=Ne[$e]||Ne.l||8,xe===8||(ie=xe[0],xe[1]!==void 0&&(Ie=Fe[xe[1]],Ie&&(Ce=pe,Ie()===!1))))return;if(ie===7)return oe}}const cache=new Map;function resolveWithKeyValue($,oe){return isObject$6($)?$[oe]:null}function resolveValue($,oe){if(!isObject$6($))return null;let ae=cache.get(oe);if(ae||(ae=parse$5(oe),ae&&cache.set(oe,ae)),!ae)return null;const ie=ae.length;let le=$,pe=0;for(;pe<ie;){const _e=le[ae[pe]];if(_e===void 0)return null;le=_e,pe++}return le}const DEFAULT_MODIFIER=$=>$,DEFAULT_MESSAGE=$=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=$=>$.length===0?"":$.join(""),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault($,oe){return $=Math.abs($),oe===2?$?$>1?1:0:1:$?Math.min($,2):0}function getPluralIndex($){const oe=isNumber$4($.pluralIndex)?$.pluralIndex:-1;return $.named&&(isNumber$4($.named.count)||isNumber$4($.named.n))?isNumber$4($.named.count)?$.named.count:isNumber$4($.named.n)?$.named.n:oe:oe}function normalizeNamed($,oe){oe.count||(oe.count=$),oe.n||(oe.n=$)}function createMessageContext($={}){const oe=$.locale,ae=getPluralIndex($),ie=isObject$6($.pluralRules)&&isString$5(oe)&&isFunction$2($.pluralRules[oe])?$.pluralRules[oe]:pluralDefault,le=isObject$6($.pluralRules)&&isString$5(oe)&&isFunction$2($.pluralRules[oe])?pluralDefault:void 0,pe=vn=>vn[ie(ae,vn.length,le)],_e=$.list||[],Ce=vn=>_e[vn],$e=$.named||{};isNumber$4($.pluralIndex)&&normalizeNamed(ae,$e);const xe=vn=>$e[vn];function Ie(vn){const _n=isFunction$2($.messages)?$.messages(vn):isObject$6($.messages)?$.messages[vn]:!1;return _n||($.parent?$.parent.message(vn):DEFAULT_MESSAGE)}const Ne=vn=>$.modifiers?$.modifiers[vn]:DEFAULT_MODIFIER,Fe=isPlainObject$2($.processor)&&isFunction$2($.processor.normalize)?$.processor.normalize:DEFAULT_NORMALIZE,ze=isPlainObject$2($.processor)&&isFunction$2($.processor.interpolate)?$.processor.interpolate:DEFAULT_INTERPOLATE,At=isPlainObject$2($.processor)&&isString$5($.processor.type)?$.processor.type:DEFAULT_MESSAGE_DATA_TYPE,hn={list:Ce,named:xe,plural:pe,linked:(vn,..._n)=>{const[bn,Cn]=_n;let En="text",$n="";_n.length===1?isObject$6(bn)?($n=bn.modifier||$n,En=bn.type||En):isString$5(bn)&&($n=bn||$n):_n.length===2&&(isString$5(bn)&&($n=bn||$n),isString$5(Cn)&&(En=Cn||En));let wn=Ie(vn)(hn);return En==="vnode"&&isArray$9(wn)&&$n&&(wn=wn[0]),$n?Ne($n)(wn,En):wn},message:Ie,type:At,interpolate:ze,normalize:Fe};return hn}function fallbackWithSimple($,oe,ae){return[...new Set([ae,...isArray$9(oe)?oe:isObject$6(oe)?Object.keys(oe):isString$5(oe)?[oe]:[ae]])]}function fallbackWithLocaleChain($,oe,ae){const ie=isString$5(ae)?ae:DEFAULT_LOCALE$1,le=$;le.__localeChainCache||(le.__localeChainCache=new Map);let pe=le.__localeChainCache.get(ie);if(!pe){pe=[];let _e=[ae];for(;isArray$9(_e);)_e=appendBlockToChain(pe,_e,oe);const Ce=isArray$9(oe)||!isPlainObject$2(oe)?oe:oe.default?oe.default:null;_e=isString$5(Ce)?[Ce]:Ce,isArray$9(_e)&&appendBlockToChain(pe,_e,!1),le.__localeChainCache.set(ie,pe)}return pe}function appendBlockToChain($,oe,ae){let ie=!0;for(let le=0;le<oe.length&&isBoolean$2(ie);le++){const pe=oe[le];isString$5(pe)&&(ie=appendLocaleToChain($,oe[le],ae))}return ie}function appendLocaleToChain($,oe,ae){let ie;const le=oe.split("-");do{const pe=le.join("-");ie=appendItemToChain($,pe,ae),le.splice(-1,1)}while(le.length&&ie===!0);return ie}function appendItemToChain($,oe,ae){let ie=!1;if(!$.includes(oe)&&(ie=!0,oe)){ie=oe[oe.length-1]!=="!";const le=oe.replace(/!/g,"");$.push(le),(isArray$9(ae)||isPlainObject$2(ae))&&ae[le]&&(ie=ae[le])}return ie}const VERSION$2="9.2.2",NOT_REOSLVED=-1,DEFAULT_LOCALE$1="en-US",MISSING_RESOLVE_VALUE="",capitalize=$=>`${$.charAt(0).toLocaleUpperCase()}${$.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:($,oe)=>oe==="text"&&isString$5($)?$.toUpperCase():oe==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toUpperCase():$,lower:($,oe)=>oe==="text"&&isString$5($)?$.toLowerCase():oe==="vnode"&&isObject$6($)&&"__v_isVNode"in $?$.children.toLowerCase():$,capitalize:($,oe)=>oe==="text"&&isString$5($)?capitalize($):oe==="vnode"&&isObject$6($)&&"__v_isVNode"in $?capitalize($.children):$}}let _compiler,_resolver;function registerMessageResolver($){_resolver=$}let _fallbacker;function registerLocaleFallbacker($){_fallbacker=$}let _cid=0;function createCoreContext($={}){const oe=isString$5($.version)?$.version:VERSION$2,ae=isString$5($.locale)?$.locale:DEFAULT_LOCALE$1,ie=isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||isString$5($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:ae,le=isPlainObject$2($.messages)?$.messages:{[ae]:{}},pe=isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[ae]:{}},_e=isPlainObject$2($.numberFormats)?$.numberFormats:{[ae]:{}},Ce=assign$4({},$.modifiers||{},getDefaultLinkedModifiers()),$e=$.pluralRules||{},xe=isFunction$2($.missing)?$.missing:null,Ie=isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ne=isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Fe=!!$.fallbackFormat,ze=!!$.unresolving,At=isFunction$2($.postTranslation)?$.postTranslation:null,Lt=isPlainObject$2($.processor)?$.processor:null,hn=isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,vn=!!$.escapeParameter,_n=isFunction$2($.messageCompiler)?$.messageCompiler:_compiler,bn=isFunction$2($.messageResolver)?$.messageResolver:_resolver||resolveWithKeyValue,Cn=isFunction$2($.localeFallbacker)?$.localeFallbacker:_fallbacker||fallbackWithSimple,En=isObject$6($.fallbackContext)?$.fallbackContext:void 0,$n=isFunction$2($.onWarn)?$.onWarn:warn$1,wn=$,Tn=isObject$6(wn.__datetimeFormatters)?wn.__datetimeFormatters:new Map,xn=isObject$6(wn.__numberFormatters)?wn.__numberFormatters:new Map,kn=isObject$6(wn.__meta)?wn.__meta:{};_cid++;const An={version:oe,cid:_cid,locale:ae,fallbackLocale:ie,messages:le,modifiers:Ce,pluralRules:$e,missing:xe,missingWarn:Ie,fallbackWarn:Ne,fallbackFormat:Fe,unresolving:ze,postTranslation:At,processor:Lt,warnHtmlMessage:hn,escapeParameter:vn,messageCompiler:_n,messageResolver:bn,localeFallbacker:Cn,fallbackContext:En,onWarn:$n,__meta:kn};return An.datetimeFormats=pe,An.numberFormats=_e,An.__datetimeFormatters=Tn,An.__numberFormatters=xn,An}function handleMissing($,oe,ae,ie,le){const{missing:pe,onWarn:_e}=$;if(pe!==null){const Ce=pe($,ae,oe,le);return isString$5(Ce)?Ce:oe}else return oe}function updateFallbackLocale($,oe,ae){const ie=$;ie.__localeChainCache=new Map,$.localeFallbacker($,ae,oe)}let code$1=CompileErrorCodes.__EXTEND_POINT__;const inc$1=()=>++code$1,CoreErrorCodes={INVALID_ARGUMENT:code$1,INVALID_DATE_ARGUMENT:inc$1(),INVALID_ISO_DATE_ARGUMENT:inc$1(),__EXTEND_POINT__:inc$1()};function createCoreError($){return createCompileError($,null,void 0)}const NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=$=>isFunction$2($);function translate$1($,...oe){const{fallbackFormat:ae,postTranslation:ie,unresolving:le,messageCompiler:pe,fallbackLocale:_e,messages:Ce}=$,[$e,xe]=parseTranslateArgs(...oe),Ie=isBoolean$2(xe.missingWarn)?xe.missingWarn:$.missingWarn,Ne=isBoolean$2(xe.fallbackWarn)?xe.fallbackWarn:$.fallbackWarn,Fe=isBoolean$2(xe.escapeParameter)?xe.escapeParameter:$.escapeParameter,ze=!!xe.resolvedMessage,At=isString$5(xe.default)||isBoolean$2(xe.default)?isBoolean$2(xe.default)?pe?$e:()=>$e:xe.default:ae?pe?$e:()=>$e:"",Lt=ae||At!=="",hn=isString$5(xe.locale)?xe.locale:$.locale;Fe&&escapeParams(xe);let[vn,_n,bn]=ze?[$e,hn,Ce[hn]||{}]:resolveMessageFormat($,$e,hn,_e,Ne,Ie),Cn=vn,En=$e;if(!ze&&!(isString$5(Cn)||isMessageFunction(Cn))&&Lt&&(Cn=At,En=Cn),!ze&&(!(isString$5(Cn)||isMessageFunction(Cn))||!isString$5(_n)))return le?NOT_REOSLVED:$e;let $n=!1;const wn=()=>{$n=!0},Tn=isMessageFunction(Cn)?Cn:compileMessageFormat($,$e,_n,Cn,En,wn);if($n)return Cn;const xn=getMessageContextOptions($,_n,bn,xe),kn=createMessageContext(xn),An=evaluateMessage($,Tn,kn);return ie?ie(An,$e):An}function escapeParams($){isArray$9($.list)?$.list=$.list.map(oe=>isString$5(oe)?escapeHtml(oe):oe):isObject$6($.named)&&Object.keys($.named).forEach(oe=>{isString$5($.named[oe])&&($.named[oe]=escapeHtml($.named[oe]))})}function resolveMessageFormat($,oe,ae,ie,le,pe){const{messages:_e,onWarn:Ce,messageResolver:$e,localeFallbacker:xe}=$,Ie=xe($,ie,ae);let Ne={},Fe,ze=null;const At="translate";for(let Lt=0;Lt<Ie.length&&(Fe=Ie[Lt],Ne=_e[Fe]||{},(ze=$e(Ne,oe))===null&&(ze=Ne[oe]),!(isString$5(ze)||isFunction$2(ze)));Lt++){const hn=handleMissing($,oe,Fe,pe,At);hn!==oe&&(ze=hn)}return[ze,Fe,Ne]}function compileMessageFormat($,oe,ae,ie,le,pe){const{messageCompiler:_e,warnHtmlMessage:Ce}=$;if(isMessageFunction(ie)){const xe=ie;return xe.locale=xe.locale||ae,xe.key=xe.key||oe,xe}if(_e==null){const xe=()=>ie;return xe.locale=ae,xe.key=oe,xe}const $e=_e(ie,getCompileOptions($,ae,le,ie,Ce,pe));return $e.locale=ae,$e.key=oe,$e.source=ie,$e}function evaluateMessage($,oe,ae){return oe(ae)}function parseTranslateArgs(...$){const[oe,ae,ie]=$,le={};if(!isString$5(oe)&&!isNumber$4(oe)&&!isMessageFunction(oe))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const pe=isNumber$4(oe)?String(oe):(isMessageFunction(oe),oe);return isNumber$4(ae)?le.plural=ae:isString$5(ae)?le.default=ae:isPlainObject$2(ae)&&!isEmptyObject(ae)?le.named=ae:isArray$9(ae)&&(le.list=ae),isNumber$4(ie)?le.plural=ie:isString$5(ie)?le.default=ie:isPlainObject$2(ie)&&assign$4(le,ie),[pe,le]}function getCompileOptions($,oe,ae,ie,le,pe){return{warnHtmlMessage:le,onError:_e=>{throw pe&&pe(_e),_e},onCacheKey:_e=>generateFormatCacheKey(oe,ae,_e)}}function getMessageContextOptions($,oe,ae,ie){const{modifiers:le,pluralRules:pe,messageResolver:_e,fallbackLocale:Ce,fallbackWarn:$e,missingWarn:xe,fallbackContext:Ie}=$,Fe={locale:oe,modifiers:le,pluralRules:pe,messages:ze=>{let At=_e(ae,ze);if(At==null&&Ie){const[,,Lt]=resolveMessageFormat(Ie,ze,oe,Ce,$e,xe);At=_e(Lt,ze)}if(isString$5(At)){let Lt=!1;const vn=compileMessageFormat($,ze,oe,At,ze,()=>{Lt=!0});return Lt?NOOP_MESSAGE_FUNCTION:vn}else return isMessageFunction(At)?At:NOOP_MESSAGE_FUNCTION}};return $.processor&&(Fe.processor=$.processor),ie.list&&(Fe.list=ie.list),ie.named&&(Fe.named=ie.named),isNumber$4(ie.plural)&&(Fe.pluralIndex=ie.plural),Fe}function datetime($,...oe){const{datetimeFormats:ae,unresolving:ie,fallbackLocale:le,onWarn:pe,localeFallbacker:_e}=$,{__datetimeFormatters:Ce}=$,[$e,xe,Ie,Ne]=parseDateTimeArgs(...oe),Fe=isBoolean$2(Ie.missingWarn)?Ie.missingWarn:$.missingWarn;isBoolean$2(Ie.fallbackWarn)?Ie.fallbackWarn:$.fallbackWarn;const ze=!!Ie.part,At=isString$5(Ie.locale)?Ie.locale:$.locale,Lt=_e($,le,At);if(!isString$5($e)||$e==="")return new Intl.DateTimeFormat(At,Ne).format(xe);let hn={},vn,_n=null;const bn="datetime format";for(let $n=0;$n<Lt.length&&(vn=Lt[$n],hn=ae[vn]||{},_n=hn[$e],!isPlainObject$2(_n));$n++)handleMissing($,$e,vn,Fe,bn);if(!isPlainObject$2(_n)||!isString$5(vn))return ie?NOT_REOSLVED:$e;let Cn=`${vn}__${$e}`;isEmptyObject(Ne)||(Cn=`${Cn}__${JSON.stringify(Ne)}`);let En=Ce.get(Cn);return En||(En=new Intl.DateTimeFormat(vn,assign$4({},_n,Ne)),Ce.set(Cn,En)),ze?En.formatToParts(xe):En.format(xe)}const DATETIME_FORMAT_OPTIONS_KEYS=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function parseDateTimeArgs(...$){const[oe,ae,ie,le]=$,pe={};let _e={},Ce;if(isString$5(oe)){const $e=oe.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!$e)throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT);const xe=$e[3]?$e[3].trim().startsWith("T")?`${$e[1].trim()}${$e[3].trim()}`:`${$e[1].trim()}T${$e[3].trim()}`:$e[1].trim();Ce=new Date(xe);try{Ce.toISOString()}catch{throw createCoreError(CoreErrorCodes.INVALID_ISO_DATE_ARGUMENT)}}else if(isDate$2(oe)){if(isNaN(oe.getTime()))throw createCoreError(CoreErrorCodes.INVALID_DATE_ARGUMENT);Ce=oe}else if(isNumber$4(oe))Ce=oe;else throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);return isString$5(ae)?pe.key=ae:isPlainObject$2(ae)&&Object.keys(ae).forEach($e=>{DATETIME_FORMAT_OPTIONS_KEYS.includes($e)?_e[$e]=ae[$e]:pe[$e]=ae[$e]}),isString$5(ie)?pe.locale=ie:isPlainObject$2(ie)&&(_e=ie),isPlainObject$2(le)&&(_e=le),[pe.key||"",Ce,pe,_e]}function clearDateTimeFormat($,oe,ae){const ie=$;for(const le in ae){const pe=`${oe}__${le}`;ie.__datetimeFormatters.has(pe)&&ie.__datetimeFormatters.delete(pe)}}function number$2($,...oe){const{numberFormats:ae,unresolving:ie,fallbackLocale:le,onWarn:pe,localeFallbacker:_e}=$,{__numberFormatters:Ce}=$,[$e,xe,Ie,Ne]=parseNumberArgs(...oe),Fe=isBoolean$2(Ie.missingWarn)?Ie.missingWarn:$.missingWarn;isBoolean$2(Ie.fallbackWarn)?Ie.fallbackWarn:$.fallbackWarn;const ze=!!Ie.part,At=isString$5(Ie.locale)?Ie.locale:$.locale,Lt=_e($,le,At);if(!isString$5($e)||$e==="")return new Intl.NumberFormat(At,Ne).format(xe);let hn={},vn,_n=null;const bn="number format";for(let $n=0;$n<Lt.length&&(vn=Lt[$n],hn=ae[vn]||{},_n=hn[$e],!isPlainObject$2(_n));$n++)handleMissing($,$e,vn,Fe,bn);if(!isPlainObject$2(_n)||!isString$5(vn))return ie?NOT_REOSLVED:$e;let Cn=`${vn}__${$e}`;isEmptyObject(Ne)||(Cn=`${Cn}__${JSON.stringify(Ne)}`);let En=Ce.get(Cn);return En||(En=new Intl.NumberFormat(vn,assign$4({},_n,Ne)),Ce.set(Cn,En)),ze?En.formatToParts(xe):En.format(xe)}const NUMBER_FORMAT_OPTIONS_KEYS=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function parseNumberArgs(...$){const[oe,ae,ie,le]=$,pe={};let _e={};if(!isNumber$4(oe))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const Ce=oe;return isString$5(ae)?pe.key=ae:isPlainObject$2(ae)&&Object.keys(ae).forEach($e=>{NUMBER_FORMAT_OPTIONS_KEYS.includes($e)?_e[$e]=ae[$e]:pe[$e]=ae[$e]}),isString$5(ie)?pe.locale=ie:isPlainObject$2(ie)&&(_e=ie),isPlainObject$2(le)&&(_e=le),[pe.key||"",Ce,pe,_e]}function clearNumberFormat($,oe,ae){const ie=$;for(const le in ae){const pe=`${oe}__${le}`;ie.__numberFormatters.has(pe)&&ie.__numberFormatters.delete(pe)}}/*!
* vue-i18n v9.2.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const VERSION$1="9.2.2";let code=CompileErrorCodes.__EXTEND_POINT__;const inc=()=>++code,I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSLALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSLALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError($,...oe){return createCompileError($,null,void 0)}const TransrateVNodeSymbol=makeSymbol("__transrateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules");makeSymbol("__intlifyMeta");const InejctWithOption=makeSymbol("__injectWithOption");function handleFlatJson($){if(!isObject$6($))return $;for(const oe in $)if(hasOwn$3($,oe))if(!oe.includes("."))isObject$6($[oe])&&handleFlatJson($[oe]);else{const ae=oe.split("."),ie=ae.length-1;let le=$;for(let pe=0;pe<ie;pe++)ae[pe]in le||(le[ae[pe]]={}),le=le[ae[pe]];le[ae[ie]]=$[oe],delete $[oe],isObject$6(le[ae[ie]])&&handleFlatJson(le[ae[ie]])}return $}function getLocaleMessages($,oe){const{messages:ae,__i18n:ie,messageResolver:le,flatJson:pe}=oe,_e=isPlainObject$2(ae)?ae:isArray$9(ie)?{}:{[$]:{}};if(isArray$9(ie)&&ie.forEach(Ce=>{if("locale"in Ce&&"resource"in Ce){const{locale:$e,resource:xe}=Ce;$e?(_e[$e]=_e[$e]||{},deepCopy(xe,_e[$e])):deepCopy(xe,_e)}else isString$5(Ce)&&deepCopy(JSON.parse(Ce),_e)}),le==null&&pe)for(const Ce in _e)hasOwn$3(_e,Ce)&&handleFlatJson(_e[Ce]);return _e}const isNotObjectOrIsArray=$=>!isObject$6($)||isArray$9($);function deepCopy($,oe){if(isNotObjectOrIsArray($)||isNotObjectOrIsArray(oe))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const ae in $)hasOwn$3($,ae)&&(isNotObjectOrIsArray($[ae])||isNotObjectOrIsArray(oe[ae])?oe[ae]=$[ae]:deepCopy($[ae],oe[ae]))}function getComponentOptions($){return $.type}function adjustI18nResources($,oe,ae){let ie=isObject$6(oe.messages)?oe.messages:{};"__i18nGlobal"in ae&&(ie=getLocaleMessages($.locale.value,{messages:ie,__i18n:ae.__i18nGlobal}));const le=Object.keys(ie);le.length&&le.forEach(pe=>{$.mergeLocaleMessage(pe,ie[pe])});{if(isObject$6(oe.datetimeFormats)){const pe=Object.keys(oe.datetimeFormats);pe.length&&pe.forEach(_e=>{$.mergeDateTimeFormat(_e,oe.datetimeFormats[_e])})}if(isObject$6(oe.numberFormats)){const pe=Object.keys(oe.numberFormats);pe.length&&pe.forEach(_e=>{$.mergeNumberFormat(_e,oe.numberFormats[_e])})}}}function createTextNode($){return createVNode(Text$1,null,$,0)}let composerID=0;function defineCoreMissingHandler($){return(oe,ae,ie,le)=>$(ae,ie,getCurrentInstance()||void 0,le)}function createComposer($={},oe){const{__root:ae}=$,ie=ae===void 0;let le=isBoolean$2($.inheritLocale)?$.inheritLocale:!0;const pe=ref(ae&&le?ae.locale.value:isString$5($.locale)?$.locale:DEFAULT_LOCALE$1),_e=ref(ae&&le?ae.fallbackLocale.value:isString$5($.fallbackLocale)||isArray$9($.fallbackLocale)||isPlainObject$2($.fallbackLocale)||$.fallbackLocale===!1?$.fallbackLocale:pe.value),Ce=ref(getLocaleMessages(pe.value,$)),$e=ref(isPlainObject$2($.datetimeFormats)?$.datetimeFormats:{[pe.value]:{}}),xe=ref(isPlainObject$2($.numberFormats)?$.numberFormats:{[pe.value]:{}});let Ie=ae?ae.missingWarn:isBoolean$2($.missingWarn)||isRegExp$4($.missingWarn)?$.missingWarn:!0,Ne=ae?ae.fallbackWarn:isBoolean$2($.fallbackWarn)||isRegExp$4($.fallbackWarn)?$.fallbackWarn:!0,Fe=ae?ae.fallbackRoot:isBoolean$2($.fallbackRoot)?$.fallbackRoot:!0,ze=!!$.fallbackFormat,At=isFunction$2($.missing)?$.missing:null,Lt=isFunction$2($.missing)?defineCoreMissingHandler($.missing):null,hn=isFunction$2($.postTranslation)?$.postTranslation:null,vn=ae?ae.warnHtmlMessage:isBoolean$2($.warnHtmlMessage)?$.warnHtmlMessage:!0,_n=!!$.escapeParameter;const bn=ae?ae.modifiers:isPlainObject$2($.modifiers)?$.modifiers:{};let Cn=$.pluralRules||ae&&ae.pluralRules,En;En=(()=>{const lr={version:VERSION$1,locale:pe.value,fallbackLocale:_e.value,messages:Ce.value,modifiers:bn,pluralRules:Cn,missing:Lt===null?void 0:Lt,missingWarn:Ie,fallbackWarn:Ne,fallbackFormat:ze,unresolving:!0,postTranslation:hn===null?void 0:hn,warnHtmlMessage:vn,escapeParameter:_n,messageResolver:$.messageResolver,__meta:{framework:"vue"}};return lr.datetimeFormats=$e.value,lr.numberFormats=xe.value,lr.__datetimeFormatters=isPlainObject$2(En)?En.__datetimeFormatters:void 0,lr.__numberFormatters=isPlainObject$2(En)?En.__numberFormatters:void 0,createCoreContext(lr)})(),updateFallbackLocale(En,pe.value,_e.value);function wn(){return[pe.value,_e.value,Ce.value,$e.value,xe.value]}const Tn=computed({get:()=>pe.value,set:lr=>{pe.value=lr,En.locale=pe.value}}),xn=computed({get:()=>_e.value,set:lr=>{_e.value=lr,En.fallbackLocale=_e.value,updateFallbackLocale(En,pe.value,lr)}}),kn=computed(()=>Ce.value),An=computed(()=>$e.value),On=computed(()=>xe.value);function Nn(){return isFunction$2(hn)?hn:null}function Rn(lr){hn=lr,En.postTranslation=lr}function zn(){return At}function Bn(lr){lr!==null&&(Lt=defineCoreMissingHandler(lr)),At=lr,En.missing=Lt}const Mn=(lr,hr,gr,Or,Lr,Vr)=>{wn();let Rr;if(Rr=lr(En),isNumber$4(Rr)&&Rr===NOT_REOSLVED){const[$r,Tr]=hr();return ae&&Fe?Or(ae):Lr($r)}else{if(Vr(Rr))return Rr;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Fn(...lr){return Mn(hr=>Reflect.apply(translate$1,null,[hr,...lr]),()=>parseTranslateArgs(...lr),"translate",hr=>Reflect.apply(hr.t,hr,[...lr]),hr=>hr,hr=>isString$5(hr))}function Vn(...lr){const[hr,gr,Or]=lr;if(Or&&!isObject$6(Or))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Fn(hr,gr,assign$4({resolvedMessage:!0},Or||{}))}function jn(...lr){return Mn(hr=>Reflect.apply(datetime,null,[hr,...lr]),()=>parseDateTimeArgs(...lr),"datetime format",hr=>Reflect.apply(hr.d,hr,[...lr]),()=>MISSING_RESOLVE_VALUE,hr=>isString$5(hr))}function Zn(...lr){return Mn(hr=>Reflect.apply(number$2,null,[hr,...lr]),()=>parseNumberArgs(...lr),"number format",hr=>Reflect.apply(hr.n,hr,[...lr]),()=>MISSING_RESOLVE_VALUE,hr=>isString$5(hr))}function Gn(lr){return lr.map(hr=>isString$5(hr)||isNumber$4(hr)||isBoolean$2(hr)?createTextNode(String(hr)):hr)}const cr={normalize:Gn,interpolate:lr=>lr,type:"vnode"};function nr(...lr){return Mn(hr=>{let gr;const Or=hr;try{Or.processor=cr,gr=Reflect.apply(translate$1,null,[Or,...lr])}finally{Or.processor=null}return gr},()=>parseTranslateArgs(...lr),"translate",hr=>hr[TransrateVNodeSymbol](...lr),hr=>[createTextNode(hr)],hr=>isArray$9(hr))}function er(...lr){return Mn(hr=>Reflect.apply(number$2,null,[hr,...lr]),()=>parseNumberArgs(...lr),"number format",hr=>hr[NumberPartsSymbol](...lr),()=>[],hr=>isString$5(hr)||isArray$9(hr))}function rr(...lr){return Mn(hr=>Reflect.apply(datetime,null,[hr,...lr]),()=>parseDateTimeArgs(...lr),"datetime format",hr=>hr[DatetimePartsSymbol](...lr),()=>[],hr=>isString$5(hr)||isArray$9(hr))}function qn(lr){Cn=lr,En.pluralRules=Cn}function Yn(lr,hr){const gr=isString$5(hr)?hr:pe.value,Or=Un(gr);return En.messageResolver(Or,lr)!==null}function ar(lr){let hr=null;const gr=fallbackWithLocaleChain(En,_e.value,pe.value);for(let Or=0;Or<gr.length;Or++){const Lr=Ce.value[gr[Or]]||{},Vr=En.messageResolver(Lr,lr);if(Vr!=null){hr=Vr;break}}return hr}function pr(lr){const hr=ar(lr);return hr??(ae?ae.tm(lr)||{}:{})}function Un(lr){return Ce.value[lr]||{}}function tr(lr,hr){Ce.value[lr]=hr,En.messages=Ce.value}function ur(lr,hr){Ce.value[lr]=Ce.value[lr]||{},deepCopy(hr,Ce.value[lr]),En.messages=Ce.value}function _r(lr){return $e.value[lr]||{}}function Er(lr,hr){$e.value[lr]=hr,En.datetimeFormats=$e.value,clearDateTimeFormat(En,lr,hr)}function sr(lr,hr){$e.value[lr]=assign$4($e.value[lr]||{},hr),En.datetimeFormats=$e.value,clearDateTimeFormat(En,lr,hr)}function Pr(lr){return xe.value[lr]||{}}function Sr(lr,hr){xe.value[lr]=hr,En.numberFormats=xe.value,clearNumberFormat(En,lr,hr)}function kr(lr,hr){xe.value[lr]=assign$4(xe.value[lr]||{},hr),En.numberFormats=xe.value,clearNumberFormat(En,lr,hr)}composerID++,ae&&inBrowser&&(watch(ae.locale,lr=>{le&&(pe.value=lr,En.locale=lr,updateFallbackLocale(En,pe.value,_e.value))}),watch(ae.fallbackLocale,lr=>{le&&(_e.value=lr,En.fallbackLocale=lr,updateFallbackLocale(En,pe.value,_e.value))}));const mr={id:composerID,locale:Tn,fallbackLocale:xn,get inheritLocale(){return le},set inheritLocale(lr){le=lr,lr&&ae&&(pe.value=ae.locale.value,_e.value=ae.fallbackLocale.value,updateFallbackLocale(En,pe.value,_e.value))},get availableLocales(){return Object.keys(Ce.value).sort()},messages:kn,get modifiers(){return bn},get pluralRules(){return Cn||{}},get isGlobal(){return ie},get missingWarn(){return Ie},set missingWarn(lr){Ie=lr,En.missingWarn=Ie},get fallbackWarn(){return Ne},set fallbackWarn(lr){Ne=lr,En.fallbackWarn=Ne},get fallbackRoot(){return Fe},set fallbackRoot(lr){Fe=lr},get fallbackFormat(){return ze},set fallbackFormat(lr){ze=lr,En.fallbackFormat=ze},get warnHtmlMessage(){return vn},set warnHtmlMessage(lr){vn=lr,En.warnHtmlMessage=lr},get escapeParameter(){return _n},set escapeParameter(lr){_n=lr,En.escapeParameter=lr},t:Fn,getLocaleMessage:Un,setLocaleMessage:tr,mergeLocaleMessage:ur,getPostTranslationHandler:Nn,setPostTranslationHandler:Rn,getMissingHandler:zn,setMissingHandler:Bn,[SetPluralRulesSymbol]:qn};return mr.datetimeFormats=An,mr.numberFormats=On,mr.rt=Vn,mr.te=Yn,mr.tm=pr,mr.d=jn,mr.n=Zn,mr.getDateTimeFormat=_r,mr.setDateTimeFormat=Er,mr.mergeDateTimeFormat=sr,mr.getNumberFormat=Pr,mr.setNumberFormat=Sr,mr.mergeNumberFormat=kr,mr[InejctWithOption]=$.__injectWithOption,mr[TransrateVNodeSymbol]=nr,mr[DatetimePartsSymbol]=rr,mr[NumberPartsSymbol]=er,mr}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:$=>$==="parent"||$==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:$},oe){return oe.length===1&&oe[0]==="default"?($.default?$.default():[]).reduce((ie,le)=>ie=[...ie,...isArray$9(le.children)?le.children:[le]],[]):oe.reduce((ae,ie)=>{const le=$[ie];return le&&(ae[ie]=le()),ae},{})}function getFragmentableTag($){return Fragment}const Translation={name:"i18n-t",props:assign$4({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:$=>isNumber$4($)||!isNaN($)}},baseFormatProps),setup($,oe){const{slots:ae,attrs:ie}=oe,le=$.i18n||useI18n$1({useScope:$.scope,__useComponent:!0});return()=>{const pe=Object.keys(ae).filter(Ne=>Ne!=="_"),_e={};$.locale&&(_e.locale=$.locale),$.plural!==void 0&&(_e.plural=isString$5($.plural)?+$.plural:$.plural);const Ce=getInterpolateArg(oe,pe),$e=le[TransrateVNodeSymbol]($.keypath,Ce,_e),xe=assign$4({},ie),Ie=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(Ie,xe,$e)}}};function isVNode($){return isArray$9($)&&!isString$5($[0])}function renderFormatter($,oe,ae,ie){const{slots:le,attrs:pe}=oe;return()=>{const _e={part:!0};let Ce={};$.locale&&(_e.locale=$.locale),isString$5($.format)?_e.key=$.format:isObject$6($.format)&&(isString$5($.format.key)&&(_e.key=$.format.key),Ce=Object.keys($.format).reduce((Fe,ze)=>ae.includes(ze)?assign$4({},Fe,{[ze]:$.format[ze]}):Fe,{}));const $e=ie($.value,_e,Ce);let xe=[_e.key];isArray$9($e)?xe=$e.map((Fe,ze)=>{const At=le[Fe.type],Lt=At?At({[Fe.type]:Fe.value,index:ze,parts:$e}):[Fe.value];return isVNode(Lt)&&(Lt[0].key=`${Fe.type}-${ze}`),Lt}):isString$5($e)&&(xe=[$e]);const Ie=assign$4({},pe),Ne=isString$5($.tag)||isObject$6($.tag)?$.tag:getFragmentableTag();return h$3(Ne,Ie,xe)}}const NumberFormat={name:"i18n-n",props:assign$4({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,oe){const ae=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,oe,NUMBER_FORMAT_OPTIONS_KEYS,(...ie)=>ae[NumberPartsSymbol](...ie))}},DatetimeFormat={name:"i18n-d",props:assign$4({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup($,oe){const ae=$.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter($,oe,DATETIME_FORMAT_OPTIONS_KEYS,(...ie)=>ae[DatetimePartsSymbol](...ie))}};function getComposer$2($,oe){const ae=$;if($.mode==="composition")return ae.__getInstance(oe)||$.global;{const ie=ae.__getInstance(oe);return ie!=null?ie.__composer:$.global.__composer}}function vTDirective($){const oe=_e=>{const{instance:Ce,modifiers:$e,value:xe}=_e;if(!Ce||!Ce.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const Ie=getComposer$2($,Ce.$),Ne=parseValue(xe);return[Reflect.apply(Ie.t,Ie,[...makeParams(Ne)]),Ie]};return{created:(_e,Ce)=>{const[$e,xe]=oe(Ce);inBrowser&&$.global===xe&&(_e.__i18nWatcher=watch(xe.locale,()=>{Ce.instance&&Ce.instance.$forceUpdate()})),_e.__composer=xe,_e.textContent=$e},unmounted:_e=>{inBrowser&&_e.__i18nWatcher&&(_e.__i18nWatcher(),_e.__i18nWatcher=void 0,delete _e.__i18nWatcher),_e.__composer&&(_e.__composer=void 0,delete _e.__composer)},beforeUpdate:(_e,{value:Ce})=>{if(_e.__composer){const $e=_e.__composer,xe=parseValue(Ce);_e.textContent=Reflect.apply($e.t,$e,[...makeParams(xe)])}},getSSRProps:_e=>{const[Ce]=oe(_e);return{textContent:Ce}}}}function parseValue($){if(isString$5($))return{path:$};if(isPlainObject$2($)){if(!("path"in $))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return $}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams($){const{path:oe,locale:ae,args:ie,choice:le,plural:pe}=$,_e={},Ce=ie||{};return isString$5(ae)&&(_e.locale=ae),isNumber$4(le)&&(_e.plural=le),isNumber$4(pe)&&(_e.plural=pe),[oe,Ce,_e]}function apply($,oe,...ae){const ie=isPlainObject$2(ae[0])?ae[0]:{},le=!!ie.useI18nComponentName;(isBoolean$2(ie.globalInstall)?ie.globalInstall:!0)&&($.component(le?"i18n":Translation.name,Translation),$.component(NumberFormat.name,NumberFormat),$.component(DatetimeFormat.name,DatetimeFormat)),$.directive("t",vTDirective(oe))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n($={},oe){const ae=isBoolean$2($.globalInjection)?$.globalInjection:!0,ie=!0,le=new Map,[pe,_e]=createGlobal($),Ce=makeSymbol("");function $e(Ne){return le.get(Ne)||null}function xe(Ne,Fe){le.set(Ne,Fe)}function Ie(Ne){le.delete(Ne)}{const Ne={get mode(){return"composition"},get allowComposition(){return ie},async install(Fe,...ze){Fe.__VUE_I18N_SYMBOL__=Ce,Fe.provide(Fe.__VUE_I18N_SYMBOL__,Ne),ae&&injectGlobalFields(Fe,Ne.global),apply(Fe,Ne,...ze);const At=Fe.unmount;Fe.unmount=()=>{Ne.dispose(),At()}},get global(){return _e},dispose(){pe.stop()},__instances:le,__getInstance:$e,__setInstance:xe,__deleteInstance:Ie};return Ne}}function useI18n$1($={}){const oe=getCurrentInstance();if(oe==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!oe.isCE&&oe.appContext.app!=null&&!oe.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSLALLED);const ae=getI18nInstance(oe),ie=getGlobalComposer(ae),le=getComponentOptions(oe),pe=getScope($,le);if(pe==="global")return adjustI18nResources(ie,$,le),ie;if(pe==="parent"){let $e=getComposer(ae,oe,$.__useComponent);return $e==null&&($e=ie),$e}const _e=ae;let Ce=_e.__getInstance(oe);if(Ce==null){const $e=assign$4({},$);"__i18n"in le&&($e.__i18n=le.__i18n),ie&&($e.__root=ie),Ce=createComposer($e),setupLifeCycle(_e,oe),_e.__setInstance(oe,Ce)}return Ce}function createGlobal($,oe,ae){const ie=effectScope();{const le=ie.run(()=>createComposer($));if(le==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[ie,le]}}function getI18nInstance($){{const oe=inject($.isCE?I18nInjectionKey:$.appContext.app.__VUE_I18N_SYMBOL__);if(!oe)throw createI18nError($.isCE?I18nErrorCodes.NOT_INSLALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return oe}}function getScope($,oe){return isEmptyObject($)?"__i18n"in oe?"local":"global":$.useScope?$.useScope:"local"}function getGlobalComposer($){return $.mode==="composition"?$.global:$.global.__composer}function getComposer($,oe,ae=!1){let ie=null;const le=oe.root;let pe=oe.parent;for(;pe!=null;){const _e=$;if($.mode==="composition"&&(ie=_e.__getInstance(pe)),ie!=null||le===pe)break;pe=pe.parent}return ie}function setupLifeCycle($,oe,ae){onMounted(()=>{},oe),onUnmounted(()=>{$.__deleteInstance(oe)},oe)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm"];function injectGlobalFields($,oe){const ae=Object.create(null);globalExportProps.forEach(ie=>{const le=Object.getOwnPropertyDescriptor(oe,ie);if(!le)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const pe=isRef(le.value)?{get(){return le.value.value},set(_e){le.value.value=_e}}:{get(){return le.get&&le.get()}};Object.defineProperty(ae,ie,pe)}),$.config.globalProperties.$i18n=ae,globalExportMethods.forEach(ie=>{const le=Object.getOwnPropertyDescriptor(oe,ie);if(!le||!le.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty($.config.globalProperties,`$${ie}`,le)})}registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);function bind$4($,oe){return function(){return $.apply(oe,arguments)}}const{toString:toString$1}=Object.prototype,{getPrototypeOf}=Object,kindOf=($=>oe=>{const ae=toString$1.call(oe);return $[ae]||($[ae]=ae.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=$=>($=$.toLowerCase(),oe=>kindOf(oe)===$),typeOfTest=$=>oe=>typeof oe===$,{isArray:isArray$8}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1($){return $!==null&&!isUndefined($)&&$.constructor!==null&&!isUndefined($.constructor)&&isFunction$1($.constructor.isBuffer)&&$.constructor.isBuffer($)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView($){let oe;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?oe=ArrayBuffer.isView($):oe=$&&$.buffer&&isArrayBuffer($.buffer),oe}const isString$4=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$3=typeOfTest("number"),isObject$5=$=>$!==null&&typeof $=="object",isBoolean$1=$=>$===!0||$===!1,isPlainObject$1=$=>{if(kindOf($)!=="object")return!1;const oe=getPrototypeOf($);return(oe===null||oe===Object.prototype||Object.getPrototypeOf(oe)===null)&&!(Symbol.toStringTag in $)&&!(Symbol.iterator in $)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=$=>isObject$5($)&&isFunction$1($.pipe),isFormData=$=>{let oe;return $&&(typeof FormData=="function"&&$ instanceof FormData||isFunction$1($.append)&&((oe=kindOf($))==="formdata"||oe==="object"&&isFunction$1($.toString)&&$.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=$=>$.trim?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach$2($,oe,{allOwnKeys:ae=!1}={}){if($===null||typeof $>"u")return;let ie,le;if(typeof $!="object"&&($=[$]),isArray$8($))for(ie=0,le=$.length;ie<le;ie++)oe.call(null,$[ie],ie,$);else{const pe=ae?Object.getOwnPropertyNames($):Object.keys($),_e=pe.length;let Ce;for(ie=0;ie<_e;ie++)Ce=pe[ie],oe.call(null,$[Ce],Ce,$)}}function findKey($,oe){oe=oe.toLowerCase();const ae=Object.keys($);let ie=ae.length,le;for(;ie-- >0;)if(le=ae[ie],oe===le.toLowerCase())return le;return null}const _global$1=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=$=>!isUndefined($)&&$!==_global$1;function merge$2(){const{caseless:$}=isContextDefined(this)&&this||{},oe={},ae=(ie,le)=>{const pe=$&&findKey(oe,le)||le;isPlainObject$1(oe[pe])&&isPlainObject$1(ie)?oe[pe]=merge$2(oe[pe],ie):isPlainObject$1(ie)?oe[pe]=merge$2({},ie):isArray$8(ie)?oe[pe]=ie.slice():oe[pe]=ie};for(let ie=0,le=arguments.length;ie<le;ie++)arguments[ie]&&forEach$2(arguments[ie],ae);return oe}const extend$1=($,oe,ae,{allOwnKeys:ie}={})=>(forEach$2(oe,(le,pe)=>{ae&&isFunction$1(le)?$[pe]=bind$4(le,ae):$[pe]=le},{allOwnKeys:ie}),$),stripBOM=$=>($.charCodeAt(0)===65279&&($=$.slice(1)),$),inherits$1=($,oe,ae,ie)=>{$.prototype=Object.create(oe.prototype,ie),$.prototype.constructor=$,Object.defineProperty($,"super",{value:oe.prototype}),ae&&Object.assign($.prototype,ae)},toFlatObject=($,oe,ae,ie)=>{let le,pe,_e;const Ce={};if(oe=oe||{},$==null)return oe;do{for(le=Object.getOwnPropertyNames($),pe=le.length;pe-- >0;)_e=le[pe],(!ie||ie(_e,$,oe))&&!Ce[_e]&&(oe[_e]=$[_e],Ce[_e]=!0);$=ae!==!1&&getPrototypeOf($)}while($&&(!ae||ae($,oe))&&$!==Object.prototype);return oe},endsWith=($,oe,ae)=>{$=String($),(ae===void 0||ae>$.length)&&(ae=$.length),ae-=oe.length;const ie=$.indexOf(oe,ae);return ie!==-1&&ie===ae},toArray$1=$=>{if(!$)return null;if(isArray$8($))return $;let oe=$.length;if(!isNumber$3(oe))return null;const ae=new Array(oe);for(;oe-- >0;)ae[oe]=$[oe];return ae},isTypedArray$1=($=>oe=>$&&oe instanceof $)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=($,oe)=>{const ie=($&&$[Symbol.iterator]).call($);let le;for(;(le=ie.next())&&!le.done;){const pe=le.value;oe.call($,pe[0],pe[1])}},matchAll=($,oe)=>{let ae;const ie=[];for(;(ae=$.exec(oe))!==null;)ie.push(ae);return ie},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=$=>$.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(ae,ie,le){return ie.toUpperCase()+le}),hasOwnProperty=(({hasOwnProperty:$})=>(oe,ae)=>$.call(oe,ae))(Object.prototype),isRegExp$3=kindOfTest("RegExp"),reduceDescriptors=($,oe)=>{const ae=Object.getOwnPropertyDescriptors($),ie={};forEach$2(ae,(le,pe)=>{oe(le,pe,$)!==!1&&(ie[pe]=le)}),Object.defineProperties($,ie)},freezeMethods=$=>{reduceDescriptors($,(oe,ae)=>{if(isFunction$1($)&&["arguments","caller","callee"].indexOf(ae)!==-1)return!1;const ie=$[ae];if(isFunction$1(ie)){if(oe.enumerable=!1,"writable"in oe){oe.writable=!1;return}oe.set||(oe.set=()=>{throw Error("Can not rewrite read-only method '"+ae+"'")})}})},toObjectSet=($,oe)=>{const ae={},ie=le=>{le.forEach(pe=>{ae[pe]=!0})};return isArray$8($)?ie($):ie(String($).split(oe)),ae},noop$4=()=>{},toFiniteNumber=($,oe)=>($=+$,Number.isFinite($)?$:oe),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=($=16,oe=ALPHABET.ALPHA_DIGIT)=>{let ae="";const{length:ie}=oe;for(;$--;)ae+=oe[Math.random()*ie|0];return ae};function isSpecCompliantForm($){return!!($&&isFunction$1($.append)&&$[Symbol.toStringTag]==="FormData"&&$[Symbol.iterator])}const toJSONObject=$=>{const oe=new Array(10),ae=(ie,le)=>{if(isObject$5(ie)){if(oe.indexOf(ie)>=0)return;if(!("toJSON"in ie)){oe[le]=ie;const pe=isArray$8(ie)?[]:{};return forEach$2(ie,(_e,Ce)=>{const $e=ae(_e,le+1);!isUndefined($e)&&(pe[Ce]=$e)}),oe[le]=void 0,pe}}return ie};return ae($,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=$=>$&&(isObject$5($)||isFunction$1($))&&isFunction$1($.then)&&isFunction$1($.catch),utils$8={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$4,isNumber:isNumber$3,isBoolean:isBoolean$1,isObject:isObject$5,isPlainObject:isPlainObject$1,isUndefined,isDate:isDate$1,isFile,isBlob,isRegExp:isRegExp$3,isFunction:isFunction$1,isStream,isURLSearchParams,isTypedArray:isTypedArray$1,isFileList,forEach:forEach$2,merge:merge$2,extend:extend$1,trim:trim$2,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray:toArray$1,forEachEntry,matchAll,isHTMLForm,hasOwnProperty,hasOwnProp:hasOwnProperty,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$4,toFiniteNumber,findKey,global:_global$1,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError($,oe,ae,ie,le){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=$,this.name="AxiosError",oe&&(this.code=oe),ae&&(this.config=ae),ie&&(this.request=ie),le&&(this.response=le)}utils$8.inherits(AxiosError,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:utils$8.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const prototype$1=AxiosError.prototype,descriptors={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach($=>{descriptors[$]={value:$}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=($,oe,ae,ie,le,pe)=>{const _e=Object.create(prototype$1);return utils$8.toFlatObject($,_e,function($e){return $e!==Error.prototype},Ce=>Ce!=="isAxiosError"),AxiosError.call(_e,$.message,oe,ae,ie,le),_e.cause=$,_e.name=$.name,pe&&Object.assign(_e,pe),_e};const httpAdapter=null;function isVisitable($){return utils$8.isPlainObject($)||utils$8.isArray($)}function removeBrackets($){return utils$8.endsWith($,"[]")?$.slice(0,-2):$}function renderKey($,oe,ae){return $?$.concat(oe).map(function(le,pe){return le=removeBrackets(le),!ae&&pe?"["+le+"]":le}).join(ae?".":""):oe}function isFlatArray($){return utils$8.isArray($)&&!$.some(isVisitable)}const predicates=utils$8.toFlatObject(utils$8,{},null,function(oe){return/^is[A-Z]/.test(oe)});function toFormData($,oe,ae){if(!utils$8.isObject($))throw new TypeError("target must be an object");oe=oe||new FormData,ae=utils$8.toFlatObject(ae,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Lt,hn){return!utils$8.isUndefined(hn[Lt])});const ie=ae.metaTokens,le=ae.visitor||Ie,pe=ae.dots,_e=ae.indexes,$e=(ae.Blob||typeof Blob<"u"&&Blob)&&utils$8.isSpecCompliantForm(oe);if(!utils$8.isFunction(le))throw new TypeError("visitor must be a function");function xe(At){if(At===null)return"";if(utils$8.isDate(At))return At.toISOString();if(!$e&&utils$8.isBlob(At))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$8.isArrayBuffer(At)||utils$8.isTypedArray(At)?$e&&typeof Blob=="function"?new Blob([At]):Buffer.from(At):At}function Ie(At,Lt,hn){let vn=At;if(At&&!hn&&typeof At=="object"){if(utils$8.endsWith(Lt,"{}"))Lt=ie?Lt:Lt.slice(0,-2),At=JSON.stringify(At);else if(utils$8.isArray(At)&&isFlatArray(At)||(utils$8.isFileList(At)||utils$8.endsWith(Lt,"[]"))&&(vn=utils$8.toArray(At)))return Lt=removeBrackets(Lt),vn.forEach(function(bn,Cn){!(utils$8.isUndefined(bn)||bn===null)&&oe.append(_e===!0?renderKey([Lt],Cn,pe):_e===null?Lt:Lt+"[]",xe(bn))}),!1}return isVisitable(At)?!0:(oe.append(renderKey(hn,Lt,pe),xe(At)),!1)}const Ne=[],Fe=Object.assign(predicates,{defaultVisitor:Ie,convertValue:xe,isVisitable});function ze(At,Lt){if(!utils$8.isUndefined(At)){if(Ne.indexOf(At)!==-1)throw Error("Circular reference detected in "+Lt.join("."));Ne.push(At),utils$8.forEach(At,function(vn,_n){(!(utils$8.isUndefined(vn)||vn===null)&&le.call(oe,vn,utils$8.isString(_n)?_n.trim():_n,Lt,Fe))===!0&&ze(vn,Lt?Lt.concat(_n):[_n])}),Ne.pop()}}if(!utils$8.isObject($))throw new TypeError("data must be an object");return ze($),oe}function encode$2($){const oe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent($).replace(/[!'()~]|%20|%00/g,function(ie){return oe[ie]})}function AxiosURLSearchParams($,oe){this._pairs=[],$&&toFormData($,this,oe)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(oe,ae){this._pairs.push([oe,ae])};prototype.toString=function(oe){const ae=oe?function(ie){return oe.call(this,ie,encode$2)}:encode$2;return this._pairs.map(function(le){return ae(le[0])+"="+ae(le[1])},"").join("&")};function encode$1($){return encodeURIComponent($).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL($,oe,ae){if(!oe)return $;const ie=ae&&ae.encode||encode$1,le=ae&&ae.serialize;let pe;if(le?pe=le(oe,ae):pe=utils$8.isURLSearchParams(oe)?oe.toString():new AxiosURLSearchParams(oe,ae).toString(ie),pe){const _e=$.indexOf("#");_e!==-1&&($=$.slice(0,_e)),$+=($.indexOf("?")===-1?"?":"&")+pe}return $}class InterceptorManager{constructor(){this.handlers=[]}use(oe,ae,ie){return this.handlers.push({fulfilled:oe,rejected:ae,synchronous:ie?ie.synchronous:!1,runWhen:ie?ie.runWhen:null}),this.handlers.length-1}eject(oe){this.handlers[oe]&&(this.handlers[oe]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(oe){utils$8.forEach(this.handlers,function(ie){ie!==null&&oe(ie)})}}const InterceptorManager$1=InterceptorManager,transitionalDefaults={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},URLSearchParams$1=typeof URLSearchParams<"u"?URLSearchParams:AxiosURLSearchParams,FormData$1=typeof FormData<"u"?FormData:null,Blob$1=typeof Blob<"u"?Blob:null,isStandardBrowserEnv=(()=>{let $;return typeof navigator<"u"&&(($=navigator.product)==="ReactNative"||$==="NativeScript"||$==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),isStandardBrowserWebWorkerEnv=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),platform$1={isBrowser:!0,classes:{URLSearchParams:URLSearchParams$1,FormData:FormData$1,Blob:Blob$1},isStandardBrowserEnv,isStandardBrowserWebWorkerEnv,protocols:["http","https","file","blob","url","data"]};function toURLEncodedForm($,oe){return toFormData($,new platform$1.classes.URLSearchParams,Object.assign({visitor:function(ae,ie,le,pe){return platform$1.isNode&&utils$8.isBuffer(ae)?(this.append(ie,ae.toString("base64")),!1):pe.defaultVisitor.apply(this,arguments)}},oe))}function parsePropPath($){return utils$8.matchAll(/\w+|\[(\w*)]/g,$).map(oe=>oe[0]==="[]"?"":oe[1]||oe[0])}function arrayToObject$1($){const oe={},ae=Object.keys($);let ie;const le=ae.length;let pe;for(ie=0;ie<le;ie++)pe=ae[ie],oe[pe]=$[pe];return oe}function formDataToJSON($){function oe(ae,ie,le,pe){let _e=ae[pe++];const Ce=Number.isFinite(+_e),$e=pe>=ae.length;return _e=!_e&&utils$8.isArray(le)?le.length:_e,$e?(utils$8.hasOwnProp(le,_e)?le[_e]=[le[_e],ie]:le[_e]=ie,!Ce):((!le[_e]||!utils$8.isObject(le[_e]))&&(le[_e]=[]),oe(ae,ie,le[_e],pe)&&utils$8.isArray(le[_e])&&(le[_e]=arrayToObject$1(le[_e])),!Ce)}if(utils$8.isFormData($)&&utils$8.isFunction($.entries)){const ae={};return utils$8.forEachEntry($,(ie,le)=>{oe(parsePropPath(ie),le,ae,0)}),ae}return null}const DEFAULT_CONTENT_TYPE={"Content-Type":void 0};function stringifySafely($,oe,ae){if(utils$8.isString($))try{return(oe||JSON.parse)($),utils$8.trim($)}catch(ie){if(ie.name!=="SyntaxError")throw ie}return(ae||JSON.stringify)($)}const defaults$3={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(oe,ae){const ie=ae.getContentType()||"",le=ie.indexOf("application/json")>-1,pe=utils$8.isObject(oe);if(pe&&utils$8.isHTMLForm(oe)&&(oe=new FormData(oe)),utils$8.isFormData(oe))return le&&le?JSON.stringify(formDataToJSON(oe)):oe;if(utils$8.isArrayBuffer(oe)||utils$8.isBuffer(oe)||utils$8.isStream(oe)||utils$8.isFile(oe)||utils$8.isBlob(oe))return oe;if(utils$8.isArrayBufferView(oe))return oe.buffer;if(utils$8.isURLSearchParams(oe))return ae.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),oe.toString();let Ce;if(pe){if(ie.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(oe,this.formSerializer).toString();if((Ce=utils$8.isFileList(oe))||ie.indexOf("multipart/form-data")>-1){const $e=this.env&&this.env.FormData;return toFormData(Ce?{"files[]":oe}:oe,$e&&new $e,this.formSerializer)}}return pe||le?(ae.setContentType("application/json",!1),stringifySafely(oe)):oe}],transformResponse:[function(oe){const ae=this.transitional||defaults$3.transitional,ie=ae&&ae.forcedJSONParsing,le=this.responseType==="json";if(oe&&utils$8.isString(oe)&&(ie&&!this.responseType||le)){const _e=!(ae&&ae.silentJSONParsing)&&le;try{return JSON.parse(oe)}catch(Ce){if(_e)throw Ce.name==="SyntaxError"?AxiosError.from(Ce,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):Ce}}return oe}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:platform$1.classes.FormData,Blob:platform$1.classes.Blob},validateStatus:function(oe){return oe>=200&&oe<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};utils$8.forEach(["delete","get","head"],function(oe){defaults$3.headers[oe]={}});utils$8.forEach(["post","put","patch"],function(oe){defaults$3.headers[oe]=utils$8.merge(DEFAULT_CONTENT_TYPE)});const defaults$4=defaults$3,ignoreDuplicateOf=utils$8.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),parseHeaders=$=>{const oe={};let ae,ie,le;return $&&$.split(`
`).forEach(function(_e){le=_e.indexOf(":"),ae=_e.substring(0,le).trim().toLowerCase(),ie=_e.substring(le+1).trim(),!(!ae||oe[ae]&&ignoreDuplicateOf[ae])&&(ae==="set-cookie"?oe[ae]?oe[ae].push(ie):oe[ae]=[ie]:oe[ae]=oe[ae]?oe[ae]+", "+ie:ie)}),oe},$internals=Symbol("internals");function normalizeHeader($){return $&&String($).trim().toLowerCase()}function normalizeValue($){return $===!1||$==null?$:utils$8.isArray($)?$.map(normalizeValue):String($)}function parseTokens($){const oe=Object.create(null),ae=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let ie;for(;ie=ae.exec($);)oe[ie[1]]=ie[2];return oe}const isValidHeaderName=$=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test($.trim());function matchHeaderValue($,oe,ae,ie,le){if(utils$8.isFunction(ie))return ie.call(this,oe,ae);if(le&&(oe=ae),!!utils$8.isString(oe)){if(utils$8.isString(ie))return oe.indexOf(ie)!==-1;if(utils$8.isRegExp(ie))return ie.test(oe)}}function formatHeader($){return $.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(oe,ae,ie)=>ae.toUpperCase()+ie)}function buildAccessors($,oe){const ae=utils$8.toCamelCase(" "+oe);["get","set","has"].forEach(ie=>{Object.defineProperty($,ie+ae,{value:function(le,pe,_e){return this[ie].call(this,oe,le,pe,_e)},configurable:!0})})}class AxiosHeaders{constructor(oe){oe&&this.set(oe)}set(oe,ae,ie){const le=this;function pe(Ce,$e,xe){const Ie=normalizeHeader($e);if(!Ie)throw new Error("header name must be a non-empty string");const Ne=utils$8.findKey(le,Ie);(!Ne||le[Ne]===void 0||xe===!0||xe===void 0&&le[Ne]!==!1)&&(le[Ne||$e]=normalizeValue(Ce))}const _e=(Ce,$e)=>utils$8.forEach(Ce,(xe,Ie)=>pe(xe,Ie,$e));return utils$8.isPlainObject(oe)||oe instanceof this.constructor?_e(oe,ae):utils$8.isString(oe)&&(oe=oe.trim())&&!isValidHeaderName(oe)?_e(parseHeaders(oe),ae):oe!=null&&pe(ae,oe,ie),this}get(oe,ae){if(oe=normalizeHeader(oe),oe){const ie=utils$8.findKey(this,oe);if(ie){const le=this[ie];if(!ae)return le;if(ae===!0)return parseTokens(le);if(utils$8.isFunction(ae))return ae.call(this,le,ie);if(utils$8.isRegExp(ae))return ae.exec(le);throw new TypeError("parser must be boolean|regexp|function")}}}has(oe,ae){if(oe=normalizeHeader(oe),oe){const ie=utils$8.findKey(this,oe);return!!(ie&&this[ie]!==void 0&&(!ae||matchHeaderValue(this,this[ie],ie,ae)))}return!1}delete(oe,ae){const ie=this;let le=!1;function pe(_e){if(_e=normalizeHeader(_e),_e){const Ce=utils$8.findKey(ie,_e);Ce&&(!ae||matchHeaderValue(ie,ie[Ce],Ce,ae))&&(delete ie[Ce],le=!0)}}return utils$8.isArray(oe)?oe.forEach(pe):pe(oe),le}clear(oe){const ae=Object.keys(this);let ie=ae.length,le=!1;for(;ie--;){const pe=ae[ie];(!oe||matchHeaderValue(this,this[pe],pe,oe,!0))&&(delete this[pe],le=!0)}return le}normalize(oe){const ae=this,ie={};return utils$8.forEach(this,(le,pe)=>{const _e=utils$8.findKey(ie,pe);if(_e){ae[_e]=normalizeValue(le),delete ae[pe];return}const Ce=oe?formatHeader(pe):String(pe).trim();Ce!==pe&&delete ae[pe],ae[Ce]=normalizeValue(le),ie[Ce]=!0}),this}concat(...oe){return this.constructor.concat(this,...oe)}toJSON(oe){const ae=Object.create(null);return utils$8.forEach(this,(ie,le)=>{ie!=null&&ie!==!1&&(ae[le]=oe&&utils$8.isArray(ie)?ie.join(", "):ie)}),ae}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([oe,ae])=>oe+": "+ae).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(oe){return oe instanceof this?oe:new this(oe)}static concat(oe,...ae){const ie=new this(oe);return ae.forEach(le=>ie.set(le)),ie}static accessor(oe){const ie=(this[$internals]=this[$internals]={accessors:{}}).accessors,le=this.prototype;function pe(_e){const Ce=normalizeHeader(_e);ie[Ce]||(buildAccessors(le,_e),ie[Ce]=!0)}return utils$8.isArray(oe)?oe.forEach(pe):pe(oe),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$8.freezeMethods(AxiosHeaders.prototype);utils$8.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData($,oe){const ae=this||defaults$4,ie=oe||ae,le=AxiosHeaders$1.from(ie.headers);let pe=ie.data;return utils$8.forEach($,function(Ce){pe=Ce.call(ae,pe,le.normalize(),oe?oe.status:void 0)}),le.normalize(),pe}function isCancel($){return!!($&&$.__CANCEL__)}function CanceledError($,oe,ae){AxiosError.call(this,$??"canceled",AxiosError.ERR_CANCELED,oe,ae),this.name="CanceledError"}utils$8.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle($,oe,ae){const ie=ae.config.validateStatus;!ae.status||!ie||ie(ae.status)?$(ae):oe(new AxiosError("Request failed with status code "+ae.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(ae.status/100)-4],ae.config,ae.request,ae))}const cookies=platform$1.isStandardBrowserEnv?function(){return{write:function(ae,ie,le,pe,_e,Ce){const $e=[];$e.push(ae+"="+encodeURIComponent(ie)),utils$8.isNumber(le)&&$e.push("expires="+new Date(le).toGMTString()),utils$8.isString(pe)&&$e.push("path="+pe),utils$8.isString(_e)&&$e.push("domain="+_e),Ce===!0&&$e.push("secure"),document.cookie=$e.join("; ")},read:function(ae){const ie=document.cookie.match(new RegExp("(^|;\\s*)("+ae+")=([^;]*)"));return ie?decodeURIComponent(ie[3]):null},remove:function(ae){this.write(ae,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL($){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test($)}function combineURLs($,oe){return oe?$.replace(/\/+$/,"")+"/"+oe.replace(/^\/+/,""):$}function buildFullPath($,oe){return $&&!isAbsoluteURL(oe)?combineURLs($,oe):oe}const isURLSameOrigin=platform$1.isStandardBrowserEnv?function(){const oe=/(msie|trident)/i.test(navigator.userAgent),ae=document.createElement("a");let ie;function le(pe){let _e=pe;return oe&&(ae.setAttribute("href",_e),_e=ae.href),ae.setAttribute("href",_e),{href:ae.href,protocol:ae.protocol?ae.protocol.replace(/:$/,""):"",host:ae.host,search:ae.search?ae.search.replace(/^\?/,""):"",hash:ae.hash?ae.hash.replace(/^#/,""):"",hostname:ae.hostname,port:ae.port,pathname:ae.pathname.charAt(0)==="/"?ae.pathname:"/"+ae.pathname}}return ie=le(window.location.href),function(_e){const Ce=utils$8.isString(_e)?le(_e):_e;return Ce.protocol===ie.protocol&&Ce.host===ie.host}}():function(){return function(){return!0}}();function parseProtocol($){const oe=/^([-+\w]{1,25})(:?\/\/|:)/.exec($);return oe&&oe[1]||""}function speedometer($,oe){$=$||10;const ae=new Array($),ie=new Array($);let le=0,pe=0,_e;return oe=oe!==void 0?oe:1e3,function($e){const xe=Date.now(),Ie=ie[pe];_e||(_e=xe),ae[le]=$e,ie[le]=xe;let Ne=pe,Fe=0;for(;Ne!==le;)Fe+=ae[Ne++],Ne=Ne%$;if(le=(le+1)%$,le===pe&&(pe=(pe+1)%$),xe-_e<oe)return;const ze=Ie&&xe-Ie;return ze?Math.round(Fe*1e3/ze):void 0}}function progressEventReducer($,oe){let ae=0;const ie=speedometer(50,250);return le=>{const pe=le.loaded,_e=le.lengthComputable?le.total:void 0,Ce=pe-ae,$e=ie(Ce),xe=pe<=_e;ae=pe;const Ie={loaded:pe,total:_e,progress:_e?pe/_e:void 0,bytes:Ce,rate:$e||void 0,estimated:$e&&_e&&xe?(_e-pe)/$e:void 0,event:le};Ie[oe?"download":"upload"]=!0,$(Ie)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function($){return new Promise(function(ae,ie){let le=$.data;const pe=AxiosHeaders$1.from($.headers).normalize(),_e=$.responseType;let Ce;function $e(){$.cancelToken&&$.cancelToken.unsubscribe(Ce),$.signal&&$.signal.removeEventListener("abort",Ce)}utils$8.isFormData(le)&&(platform$1.isStandardBrowserEnv||platform$1.isStandardBrowserWebWorkerEnv?pe.setContentType(!1):pe.setContentType("multipart/form-data;",!1));let xe=new XMLHttpRequest;if($.auth){const ze=$.auth.username||"",At=$.auth.password?unescape(encodeURIComponent($.auth.password)):"";pe.set("Authorization","Basic "+btoa(ze+":"+At))}const Ie=buildFullPath($.baseURL,$.url);xe.open($.method.toUpperCase(),buildURL(Ie,$.params,$.paramsSerializer),!0),xe.timeout=$.timeout;function Ne(){if(!xe)return;const ze=AxiosHeaders$1.from("getAllResponseHeaders"in xe&&xe.getAllResponseHeaders()),Lt={data:!_e||_e==="text"||_e==="json"?xe.responseText:xe.response,status:xe.status,statusText:xe.statusText,headers:ze,config:$,request:xe};settle(function(vn){ae(vn),$e()},function(vn){ie(vn),$e()},Lt),xe=null}if("onloadend"in xe?xe.onloadend=Ne:xe.onreadystatechange=function(){!xe||xe.readyState!==4||xe.status===0&&!(xe.responseURL&&xe.responseURL.indexOf("file:")===0)||setTimeout(Ne)},xe.onabort=function(){xe&&(ie(new AxiosError("Request aborted",AxiosError.ECONNABORTED,$,xe)),xe=null)},xe.onerror=function(){ie(new AxiosError("Network Error",AxiosError.ERR_NETWORK,$,xe)),xe=null},xe.ontimeout=function(){let At=$.timeout?"timeout of "+$.timeout+"ms exceeded":"timeout exceeded";const Lt=$.transitional||transitionalDefaults;$.timeoutErrorMessage&&(At=$.timeoutErrorMessage),ie(new AxiosError(At,Lt.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,$,xe)),xe=null},platform$1.isStandardBrowserEnv){const ze=($.withCredentials||isURLSameOrigin(Ie))&&$.xsrfCookieName&&cookies.read($.xsrfCookieName);ze&&pe.set($.xsrfHeaderName,ze)}le===void 0&&pe.setContentType(null),"setRequestHeader"in xe&&utils$8.forEach(pe.toJSON(),function(At,Lt){xe.setRequestHeader(Lt,At)}),utils$8.isUndefined($.withCredentials)||(xe.withCredentials=!!$.withCredentials),_e&&_e!=="json"&&(xe.responseType=$.responseType),typeof $.onDownloadProgress=="function"&&xe.addEventListener("progress",progressEventReducer($.onDownloadProgress,!0)),typeof $.onUploadProgress=="function"&&xe.upload&&xe.upload.addEventListener("progress",progressEventReducer($.onUploadProgress)),($.cancelToken||$.signal)&&(Ce=ze=>{xe&&(ie(!ze||ze.type?new CanceledError(null,$,xe):ze),xe.abort(),xe=null)},$.cancelToken&&$.cancelToken.subscribe(Ce),$.signal&&($.signal.aborted?Ce():$.signal.addEventListener("abort",Ce)));const Fe=parseProtocol(Ie);if(Fe&&platform$1.protocols.indexOf(Fe)===-1){ie(new AxiosError("Unsupported protocol "+Fe+":",AxiosError.ERR_BAD_REQUEST,$));return}xe.send(le||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$8.forEach(knownAdapters,($,oe)=>{if($){try{Object.defineProperty($,"name",{value:oe})}catch{}Object.defineProperty($,"adapterName",{value:oe})}});const adapters={getAdapter:$=>{$=utils$8.isArray($)?$:[$];const{length:oe}=$;let ae,ie;for(let le=0;le<oe&&(ae=$[le],!(ie=utils$8.isString(ae)?knownAdapters[ae.toLowerCase()]:ae));le++);if(!ie)throw ie===!1?new AxiosError(`Adapter ${ae} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(utils$8.hasOwnProp(knownAdapters,ae)?`Adapter '${ae}' is not available in the build`:`Unknown adapter '${ae}'`);if(!utils$8.isFunction(ie))throw new TypeError("adapter is not a function");return ie},adapters:knownAdapters};function throwIfCancellationRequested($){if($.cancelToken&&$.cancelToken.throwIfRequested(),$.signal&&$.signal.aborted)throw new CanceledError(null,$)}function dispatchRequest($){return throwIfCancellationRequested($),$.headers=AxiosHeaders$1.from($.headers),$.data=transformData.call($,$.transformRequest),["post","put","patch"].indexOf($.method)!==-1&&$.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter($.adapter||defaults$4.adapter)($).then(function(ie){return throwIfCancellationRequested($),ie.data=transformData.call($,$.transformResponse,ie),ie.headers=AxiosHeaders$1.from(ie.headers),ie},function(ie){return isCancel(ie)||(throwIfCancellationRequested($),ie&&ie.response&&(ie.response.data=transformData.call($,$.transformResponse,ie.response),ie.response.headers=AxiosHeaders$1.from(ie.response.headers))),Promise.reject(ie)})}const headersToObject=$=>$ instanceof AxiosHeaders$1?$.toJSON():$;function mergeConfig($,oe){oe=oe||{};const ae={};function ie(xe,Ie,Ne){return utils$8.isPlainObject(xe)&&utils$8.isPlainObject(Ie)?utils$8.merge.call({caseless:Ne},xe,Ie):utils$8.isPlainObject(Ie)?utils$8.merge({},Ie):utils$8.isArray(Ie)?Ie.slice():Ie}function le(xe,Ie,Ne){if(utils$8.isUndefined(Ie)){if(!utils$8.isUndefined(xe))return ie(void 0,xe,Ne)}else return ie(xe,Ie,Ne)}function pe(xe,Ie){if(!utils$8.isUndefined(Ie))return ie(void 0,Ie)}function _e(xe,Ie){if(utils$8.isUndefined(Ie)){if(!utils$8.isUndefined(xe))return ie(void 0,xe)}else return ie(void 0,Ie)}function Ce(xe,Ie,Ne){if(Ne in oe)return ie(xe,Ie);if(Ne in $)return ie(void 0,xe)}const $e={url:pe,method:pe,data:pe,baseURL:_e,transformRequest:_e,transformResponse:_e,paramsSerializer:_e,timeout:_e,timeoutMessage:_e,withCredentials:_e,adapter:_e,responseType:_e,xsrfCookieName:_e,xsrfHeaderName:_e,onUploadProgress:_e,onDownloadProgress:_e,decompress:_e,maxContentLength:_e,maxBodyLength:_e,beforeRedirect:_e,transport:_e,httpAgent:_e,httpsAgent:_e,cancelToken:_e,socketPath:_e,responseEncoding:_e,validateStatus:Ce,headers:(xe,Ie)=>le(headersToObject(xe),headersToObject(Ie),!0)};return utils$8.forEach(Object.keys(Object.assign({},$,oe)),function(Ie){const Ne=$e[Ie]||le,Fe=Ne($[Ie],oe[Ie],Ie);utils$8.isUndefined(Fe)&&Ne!==Ce||(ae[Ie]=Fe)}),ae}const VERSION="1.4.0",validators$1={};["object","boolean","number","function","string","symbol"].forEach(($,oe)=>{validators$1[$]=function(ie){return typeof ie===$||"a"+(oe<1?"n ":" ")+$}});const deprecatedWarnings={};validators$1.transitional=function(oe,ae,ie){function le(pe,_e){return"[Axios v"+VERSION+"] Transitional option '"+pe+"'"+_e+(ie?". "+ie:"")}return(pe,_e,Ce)=>{if(oe===!1)throw new AxiosError(le(_e," has been removed"+(ae?" in "+ae:"")),AxiosError.ERR_DEPRECATED);return ae&&!deprecatedWarnings[_e]&&(deprecatedWarnings[_e]=!0,console.warn(le(_e," has been deprecated since v"+ae+" and will be removed in the near future"))),oe?oe(pe,_e,Ce):!0}};function assertOptions($,oe,ae){if(typeof $!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const ie=Object.keys($);let le=ie.length;for(;le-- >0;){const pe=ie[le],_e=oe[pe];if(_e){const Ce=$[pe],$e=Ce===void 0||_e(Ce,pe,$);if($e!==!0)throw new AxiosError("option "+pe+" must be "+$e,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(ae!==!0)throw new AxiosError("Unknown option "+pe,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(oe){this.defaults=oe,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(oe,ae){typeof oe=="string"?(ae=ae||{},ae.url=oe):ae=oe||{},ae=mergeConfig(this.defaults,ae);const{transitional:ie,paramsSerializer:le,headers:pe}=ae;ie!==void 0&&validator.assertOptions(ie,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),le!=null&&(utils$8.isFunction(le)?ae.paramsSerializer={serialize:le}:validator.assertOptions(le,{encode:validators.function,serialize:validators.function},!0)),ae.method=(ae.method||this.defaults.method||"get").toLowerCase();let _e;_e=pe&&utils$8.merge(pe.common,pe[ae.method]),_e&&utils$8.forEach(["delete","get","head","post","put","patch","common"],At=>{delete pe[At]}),ae.headers=AxiosHeaders$1.concat(_e,pe);const Ce=[];let $e=!0;this.interceptors.request.forEach(function(Lt){typeof Lt.runWhen=="function"&&Lt.runWhen(ae)===!1||($e=$e&&Lt.synchronous,Ce.unshift(Lt.fulfilled,Lt.rejected))});const xe=[];this.interceptors.response.forEach(function(Lt){xe.push(Lt.fulfilled,Lt.rejected)});let Ie,Ne=0,Fe;if(!$e){const At=[dispatchRequest.bind(this),void 0];for(At.unshift.apply(At,Ce),At.push.apply(At,xe),Fe=At.length,Ie=Promise.resolve(ae);Ne<Fe;)Ie=Ie.then(At[Ne++],At[Ne++]);return Ie}Fe=Ce.length;let ze=ae;for(Ne=0;Ne<Fe;){const At=Ce[Ne++],Lt=Ce[Ne++];try{ze=At(ze)}catch(hn){Lt.call(this,hn);break}}try{Ie=dispatchRequest.call(this,ze)}catch(At){return Promise.reject(At)}for(Ne=0,Fe=xe.length;Ne<Fe;)Ie=Ie.then(xe[Ne++],xe[Ne++]);return Ie}getUri(oe){oe=mergeConfig(this.defaults,oe);const ae=buildFullPath(oe.baseURL,oe.url);return buildURL(ae,oe.params,oe.paramsSerializer)}}utils$8.forEach(["delete","get","head","options"],function(oe){Axios.prototype[oe]=function(ae,ie){return this.request(mergeConfig(ie||{},{method:oe,url:ae,data:(ie||{}).data}))}});utils$8.forEach(["post","put","patch"],function(oe){function ae(ie){return function(pe,_e,Ce){return this.request(mergeConfig(Ce||{},{method:oe,headers:ie?{"Content-Type":"multipart/form-data"}:{},url:pe,data:_e}))}}Axios.prototype[oe]=ae(),Axios.prototype[oe+"Form"]=ae(!0)});const Axios$1=Axios;class CancelToken{constructor(oe){if(typeof oe!="function")throw new TypeError("executor must be a function.");let ae;this.promise=new Promise(function(pe){ae=pe});const ie=this;this.promise.then(le=>{if(!ie._listeners)return;let pe=ie._listeners.length;for(;pe-- >0;)ie._listeners[pe](le);ie._listeners=null}),this.promise.then=le=>{let pe;const _e=new Promise(Ce=>{ie.subscribe(Ce),pe=Ce}).then(le);return _e.cancel=function(){ie.unsubscribe(pe)},_e},oe(function(pe,_e,Ce){ie.reason||(ie.reason=new CanceledError(pe,_e,Ce),ae(ie.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(oe){if(this.reason){oe(this.reason);return}this._listeners?this._listeners.push(oe):this._listeners=[oe]}unsubscribe(oe){if(!this._listeners)return;const ae=this._listeners.indexOf(oe);ae!==-1&&this._listeners.splice(ae,1)}static source(){let oe;return{token:new CancelToken(function(le){oe=le}),cancel:oe}}}const CancelToken$1=CancelToken;function spread($){return function(ae){return $.apply(null,ae)}}function isAxiosError($){return utils$8.isObject($)&&$.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([$,oe])=>{HttpStatusCode[oe]=$});const HttpStatusCode$1=HttpStatusCode;function createInstance($){const oe=new Axios$1($),ae=bind$4(Axios$1.prototype.request,oe);return utils$8.extend(ae,Axios$1.prototype,oe,{allOwnKeys:!0}),utils$8.extend(ae,oe,null,{allOwnKeys:!0}),ae.create=function(le){return createInstance(mergeConfig($,le))},ae}const axios=createInstance(defaults$4);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(oe){return Promise.all(oe)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=$=>formDataToJSON(utils$8.isHTMLForm($)?new FormData($):$);axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios;let config={};const{VITE_PUBLIC_PATH}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},setConfig=$=>{config=Object.assign(config,$)},getConfig=$=>{if(typeof $=="string"){const oe=$.split(".");if(oe&&oe.length){let ae=config;return oe.forEach(ie=>{ae&&typeof ae[ie]<"u"?ae=ae[ie]:ae=null}),ae}}return config},getServerConfig=async $=>($.config.globalProperties.$config=getConfig(),axios$1({method:"get",url:`${VITE_PUBLIC_PATH}serverConfig.json`}).then(({data:oe})=>{let ae=$.config.globalProperties.$config;return $&&ae&&typeof oe=="object"&&(ae=Object.assign(ae,oe),$.config.globalProperties.$config=ae,setConfig(ae)),ae}).catch(()=>{throw"请在public文件夹下添加serverConfig.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n($="zh-CN"){return Object.fromEntries(Object.entries(Object.assign({"../../locales/en.yaml":__vite_glob_0_0$2,"../../locales/zh-CN.yaml":__vite_glob_0_1$2})).map(([oe,ae])=>[oe.match(/([A-Za-z0-9-_]+)\./i)[1],ae.default]))[$]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhLocale},en:{...siphonI18n("en"),...enLocale}};function transformI18n($=""){var ae;if(!$)return"";if(typeof $=="object"){const ie=i18n.global.locale;return $[ie==null?void 0:ie.value]}const oe=(ae=$.match(/(\S*)\./))==null?void 0:ae[1];return oe&&Object.keys(siphonI18n("zh-CN")).includes(oe)||!oe&&Object.keys(siphonI18n("zh-CN")).includes($)?i18n.global.t.call(i18n.global.locale,$):$}const $t=$=>$;var ea;const i18n=createI18n({legacy:!1,locale:((ea=Kn().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:ea.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n($){$.use(i18n)}const home$1=0,doc=1,utils$7=2,table$1=3,components$1=4,able$1=5,frame$1=6,nested$1=7,result$1=8,error$1=9,list$2=10,permission=11,system$1=12,tabs=13,formdesign$1=14,flowchart$1=15,ppt$1=16,editor$1=17,guide$1=18,menuoverflow$1=19,about$1=20,able={path:"/able",redirect:"/able/watermark",meta:{icon:"ubuntuFill",title:$t("menus.hsAble"),rank:able$1},children:[{path:"/able/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark-11783896.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print-ab6bd646.js"),["static/js/print-ab6bd646.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/app-9580cee8.js","static/css/print-8831c8b6.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download-82053b96.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select-1e86bdde.js"),["static/js/icon-select-1e86bdde.js","static/css/icon-select-f6ac52ad.css"]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline-3ea27185.js"),["static/js/timeline-3ea27185.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/css/timeline-0391e3d4.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree-a38122a5.js"),["static/js/menu-tree-a38122a5.js","static/js/hooks-62079556.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree-f3ff15d7.js"),["static/js/line-tree-f3ff15d7.js","static/css/line-tree-970a113a.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce-27797450.js"),["static/js/debounce-27797450.js","static/js/message-ac5811da.js"]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode-7cfa344e.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode-eb62c949.js"),["static/js/qrcode-eb62c949.js","static/js/message-ac5811da.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader-c5c3f147.js"),["static/js/cascader-c5c3f147.js","static/css/cascader-843853c0.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper-3eeb0cd1.js"),["static/js/swiper-3eeb0cd1.js","static/css/swiper-4182dcb7.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index-62aa1b91.js"),["static/js/index-62aa1b91.js","static/js/vertical-44eee916.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-0e874426.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf-8be0f9a8.js"),["static/js/pdf-8be0f9a8.js","static/js/vue.runtime.esm-bundler-c42d439d.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/execl",name:"Execl",component:()=>__vitePreload(()=>import("./execl-48f63f3f.js"),["static/js/execl-48f63f3f.js","static/js/xlsx-e927f539.js"]),meta:{title:$t("menus.hsExecl")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll-7fd0a6d1.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:able},Symbol.toStringTag,{value:"Module"})),about={path:"/about",redirect:"/about/index",meta:{title:$t("menus.hsAbout"),rank:about$1},children:[{path:"/about/index",name:"About",component:()=>__vitePreload(()=>import("./index-4a5b9d97.js"),["static/js/index-4a5b9d97.js","static/js/columns-ba8e4348.js","static/css/index-14544c94.css"]),meta:{title:$t("menus.hsAbout")}}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:about},Symbol.toStringTag,{value:"Module"})),components={path:"/components",redirect:"/components/video",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"Dialog",component:()=>__vitePreload(()=>import("./index-b21cf265.js"),["static/js/index-b21cf265.js","static/js/message-ac5811da.js","static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js"]),meta:{title:$t("menus.hsdialog"),extraIcon:"IF-pure-iconfont-new svg",transition:{enterTransition:"animate__fadeInLeft",leaveTransition:"animate__fadeOutRight"}}},{path:"/components/message",name:"Message",component:()=>__vitePreload(()=>import("./index-c7941fd5.js"),["static/js/index-c7941fd5.js","static/js/message-ac5811da.js","static/js/hooks-62079556.js","static/js/check-3815600c.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/video",name:"Video",component:()=>__vitePreload(()=>import("./index-7c86d1c0.js"),["static/js/index-7c86d1c0.js","static/js/hooks-62079556.js","static/css/index-11b4621f.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"Map",component:()=>__vitePreload(()=>import("./index-b93c607c.js"),["static/js/index-b93c607c.js","static/css/index-d504fa9c.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index-4e7937cc.js"),["static/js/index-4e7937cc.js","static/js/sortable.esm-679e0872.js","static/js/app-9580cee8.js","static/js/hooks-62079556.js","static/css/index-b2ddca14.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index-59ff87b7.js"),["static/js/index-59ff87b7.js","static/css/index-e0a7f2a0.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"Button",component:()=>__vitePreload(()=>import("./index-d79fa351.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index-159573b9.js"),["static/js/index-159573b9.js","static/css/index-fdfcfa11.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index-03a042a0.js"),["static/js/index-03a042a0.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index-9320116d.js"),["static/js/index-9320116d.js","static/css/index-ea4ab5c7.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index-1f4723fd.js"),["static/js/index-1f4723fd.js","static/js/index-95b65695.js","static/css/index-53a917f7.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index-04f26cf0.js"),["static/js/index-04f26cf0.js","static/js/basic-09712a8c.js","static/js/index.esm-04a1a156.js","static/css/basic-d842f1a0.css","static/js/menuGroup-03365b00.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-f234f67c.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index-10e75e7a.js"),["static/js/index-10e75e7a.js","static/js/index-24d2e7bb.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index-49272547.js"),["static/js/index-49272547.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index-41258481.js"),["static/js/index-41258481.js","static/css/index-14392f45.css"]),meta:{title:$t("menus.hsdanmaku")}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:components},Symbol.toStringTag,{value:"Module"})),editor={path:"/editor",redirect:"/editor/index",meta:{icon:"edit",title:$t("menus.hseditor"),rank:editor$1},children:[{path:"/editor/index",name:"Editor",component:()=>__vitePreload(()=>import("./index-a0fc3b02.js"),["static/js/index-a0fc3b02.js","static/js/hooks-62079556.js","static/js/edit-d219f0c6.js","static/css/index-f38a3df6.css"]),meta:{title:$t("menus.hseditor"),keepAlive:!0}}]},__vite_glob_0_3$1=Object.freeze(Object.defineProperty({__proto__:null,default:editor},Symbol.toStringTag,{value:"Module"})),error={path:"/error",redirect:"/error/403",meta:{icon:"informationLine",title:$t("menus.hsabnormal"),rank:error$1},children:[{path:"/error/403",name:"403",component:()=>__vitePreload(()=>import("./403-aace6d52.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404-4055428e.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500-68cbae6c.js"),[]),meta:{title:$t("menus.hsFive")}}]},__vite_glob_0_4$1=Object.freeze(Object.defineProperty({__proto__:null,default:error},Symbol.toStringTag,{value:"Module"})),flowchart={path:"/flowChart",redirect:"/flowChart/index",meta:{icon:"setUp",title:$t("menus.hsflowChart"),rank:flowchart$1},children:[{path:"/flowChart/index",name:"FlowChart",component:()=>__vitePreload(()=>import("./index-9a545244.js"),["static/js/index-9a545244.js","static/js/hooks-62079556.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.css"]),meta:{title:$t("menus.hsflowChart")}}]},__vite_glob_0_5$1=Object.freeze(Object.defineProperty({__proto__:null,default:flowchart},Symbol.toStringTag,{value:"Module"})),IFrame$4=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),formdesign={path:"/formDesign",redirect:"/formDesign/index",meta:{icon:"terminalWindowLine",title:$t("menus.hsFormDesign"),rank:formdesign$1},children:[{path:"/formDesign/index",name:"FormDesign",component:IFrame$4,meta:{title:$t("menus.hsFormDesign"),frameSrc:"https://haixin-fang.github.io/starfish-vue3-lowcode/playground/index.html#/"}}]},__vite_glob_0_6=Object.freeze(Object.defineProperty({__proto__:null,default:formdesign},Symbol.toStringTag,{value:"Module"})),guide={path:"/guide",redirect:"/guide/index",meta:{icon:"guide",title:$t("menus.hsguide"),rank:guide$1},children:[{path:"/guide/index",name:"Guide",component:()=>__vitePreload(()=>import("./index-a24a88b8.js"),["static/js/index-a24a88b8.js","static/css/index-38ef32bb.css"]),meta:{title:$t("menus.hsguide")}}]},__vite_glob_0_7=Object.freeze(Object.defineProperty({__proto__:null,default:guide},Symbol.toStringTag,{value:"Module"})),{VITE_HIDE_HOME:VITE_HIDE_HOME$2}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},Layout$1=()=>__vitePreload(()=>import("./index-2c9a69b7.js"),["static/js/index-2c9a69b7.js","static/js/menu-a4fe64fb.js","static/js/edit-d219f0c6.js","static/js/set-up-e6942411.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/hooks-62079556.js","static/js/index-95b65695.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/index-17881e6a.css"]),home={path:"/",name:"Home",component:Layout$1,redirect:"/welcome",meta:{icon:"homeFilled",title:$t("menus.hshome"),rank:home$1},children:[{path:"/welcome",name:"Welcome",component:()=>__vitePreload(()=>import("./index-5820af99.js"),["static/js/index-5820af99.js","static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js","static/js/app-9580cee8.js","static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/index-24d2e7bb.js","static/js/index-95b65695.js","static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js","static/js/columns-534bdbdc.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/css/index-e89363d8.css"]),meta:{title:$t("menus.hshome"),showLink:VITE_HIDE_HOME$2!=="true"}}]},__vite_glob_0_8=Object.freeze(Object.defineProperty({__proto__:null,default:home},Symbol.toStringTag,{value:"Module"})),list$1={path:"/list",redirect:"/list/card",meta:{icon:"listCheck",title:$t("menus.hsList"),rank:list$2},children:[{path:"/list/card",name:"ListCard",component:()=>__vitePreload(()=>import("./index-8c8a5e0e.js"),["static/js/index-8c8a5e0e.js","static/js/Card-514d8668.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-ac5811da.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js","static/js/hooks-62079556.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),meta:{icon:"card",title:$t("menus.hsListCard"),showParent:!0}}]},__vite_glob_0_9=Object.freeze(Object.defineProperty({__proto__:null,default:list$1},Symbol.toStringTag,{value:"Module"})),menuoverflow={path:"/menuoverflow",redirect:"/menuoverflow/index",meta:{title:$t("menus.hsMenuoverflow"),rank:menuoverflow$1},children:[{path:"/menuoverflow/index",name:"MenuOverflow",component:()=>__vitePreload(()=>import("./index-bcc6313c.js"),[]),meta:{title:$t("menus.hsChildMenuoverflow"),showParent:!0}}]},__vite_glob_0_10=Object.freeze(Object.defineProperty({__proto__:null,default:menuoverflow},Symbol.toStringTag,{value:"Module"})),nested={path:"/nested",redirect:"/nested/menu1/menu1-1",meta:{title:$t("menus.hsmenus"),icon:"histogram",rank:nested$1},children:[{path:"/nested/menu1",meta:{title:$t("menus.hsmenu1"),keepAlive:!0},redirect:"/nested/menu1/menu1-1",children:[{path:"/nested/menu1/menu1-1",component:()=>__vitePreload(()=>import("./index-54e3e3b4.js"),[]),name:"Menu1-1",meta:{title:$t("menus.hsmenu1-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2",redirect:"/nested/menu1/menu1-2/menu1-2-1",meta:{title:$t("menus.hsmenu1-2"),keepAlive:!0},children:[{path:"/nested/menu1/menu1-2/menu1-2-1",component:()=>__vitePreload(()=>import("./index-2b3bdafa.js"),[]),name:"Menu1-2-1",meta:{title:$t("menus.hsmenu1-2-1"),keepAlive:!0}},{path:"/nested/menu1/menu1-2/menu1-2-2",component:()=>__vitePreload(()=>import("./index-5f0193e2.js"),[]),name:"Menu1-2-2",meta:{title:$t("menus.hsmenu1-2-2"),keepAlive:!0,extraIcon:"IF-pure-iconfont-new svg"}}]},{path:"/nested/menu1/menu1-3",component:()=>__vitePreload(()=>import("./index-32849726.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index-7ba69997.js"),[]),meta:{title:$t("menus.hsmenu2"),keepAlive:!0}}]},__vite_glob_0_11=Object.freeze(Object.defineProperty({__proto__:null,default:nested},Symbol.toStringTag,{value:"Module"})),IFrame$3=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),ppt={path:"/ppt",redirect:"/ppt/index",meta:{icon:"ppt",title:"PPT",rank:ppt$1},children:[{path:"/ppt/index",name:"FramePpt",component:IFrame$3,meta:{title:"PPT",frameSrc:"https://pipipi-pikachu.github.io/PPTist/",frameLoading:!1}}]},__vite_glob_0_12=Object.freeze(Object.defineProperty({__proto__:null,default:ppt},Symbol.toStringTag,{value:"Module"})),_hoisted_1={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 1024"},_hoisted_2=createBaseVNode("path",{fill:"#FF5D50",d:"M428.698 107.315c-6.503 72.192-36.352 207.258-160.256 337.408 3.686-48.025-7.117-83.763-19.047-107.673-6.605-13.159-26.06-10.599-28.877 3.84-5.734 29.44-20.582 75.059-57.6 137.779-71.628 121.395-62.566 459.878 340.736 459.878S934.093 585.728 876.8 442.522c-37.376-93.44-93.952-152.525-128.82-182.324-11.417-9.779-29.132-1.945-29.593 13.056-.921 30.464-7.321 73.37-33.075 102.144-.666-52.787-38.144-208.384-202.445-296.857-23.296-12.544-51.763 2.457-54.17 28.774z"},null,-1),_hoisted_3=createBaseVNode("path",{fill:"#FFDF99",d:"M702.26 678.4c-4.2-45.056-60.673-166.554-212.634-246.426-10.599-5.58-23.092 3.124-21.504 15.002 6.246 46.848 12.953 140.493-24.064 184.73 4.044-40.397-18.125-73.83-36.66-94.31-8.396-9.217-23.552-4.66-25.497 7.68-3.533 22.322-12.851 56.268-36.557 97.945-42.086 74.035-86.989 188.672 124.57 294.656 10.956.563 22.17.87 33.74.87a617.97 617.97 0 0 0 32.717-.87C694.631 878.182 709.837 759.706 702.26 678.4z"},null,-1),_hoisted_4=[_hoisted_2,_hoisted_3];function render$3($,oe){return openBlock(),createElementBlock("svg",_hoisted_1,_hoisted_4)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),puredoc={path:"/pure-admin-doc",redirect:"/pure-admin-doc/index",meta:{icon:hot,title:"pure-admin-doc",rank:doc},children:[{path:"/pure-admin-doc/index",name:"FrameDoc",component:IFrame$2,meta:{title:"pure-admin-doc",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc/"}}]},__vite_glob_0_13=Object.freeze(Object.defineProperty({__proto__:null,default:puredoc},Symbol.toStringTag,{value:"Module"})),IFrame$1=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$7},children:[{path:"/pure-admin-utils/index",name:"FrameUtils",component:IFrame$1,meta:{title:"pure-admin-utils",frameSrc:"https://pure-admin-utils.netlify.app/"}}]},__vite_glob_0_14=Object.freeze(Object.defineProperty({__proto__:null,default:pureutils},Symbol.toStringTag,{value:"Module"})),result={path:"/result",redirect:"/result/success",meta:{icon:"checkboxCircleLine",title:$t("menus.hsResult"),rank:result$1},children:[{path:"/result/success",name:"Success",component:()=>__vitePreload(()=>import("./success-945d4baa.js"),["static/js/success-945d4baa.js","static/css/success-42084dfc.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail-faba5431.js"),["static/js/fail-faba5431.js","static/js/columns-4858870b.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),meta:{title:$t("menus.hsFail")}}]},__vite_glob_0_15=Object.freeze(Object.defineProperty({__proto__:null,default:result},Symbol.toStringTag,{value:"Module"})),table={path:"/pure-table",redirect:"/pure-table/index",meta:{icon:hot,title:"pure-admin-table",rank:table$1},children:[{path:"/pure-table/index",name:"PureTable",component:()=>__vitePreload(()=>import("./index-dfcdfd2f.js"),["static/js/index-dfcdfd2f.js","static/js/list-90b3344f.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js","static/css/index-c6b6432d.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high-25613d81.js"),["static/js/high-25613d81.js","static/js/list-18420425.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/index-95b65695.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js","static/css/high-5bc3f1f1.css"]),meta:{title:$t("menus.hsPureTableHigh")}}]},__vite_glob_0_16=Object.freeze(Object.defineProperty({__proto__:null,default:table},Symbol.toStringTag,{value:"Module"}));/*! js-cookie v3.0.5 | MIT */function assign$3($){for(var oe=1;oe<arguments.length;oe++){var ae=arguments[oe];for(var ie in ae)$[ie]=ae[ie]}return $}var defaultConverter={read:function($){return $[0]==='"'&&($=$.slice(1,-1)),$.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function($){return encodeURIComponent($).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function init$2($,oe){function ae(le,pe,_e){if(!(typeof document>"u")){_e=assign$3({},oe,_e),typeof _e.expires=="number"&&(_e.expires=new Date(Date.now()+_e.expires*864e5)),_e.expires&&(_e.expires=_e.expires.toUTCString()),le=encodeURIComponent(le).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var Ce="";for(var $e in _e)_e[$e]&&(Ce+="; "+$e,_e[$e]!==!0&&(Ce+="="+_e[$e].split(";")[0]));return document.cookie=le+"="+$.write(pe,le)+Ce}}function ie(le){if(!(typeof document>"u"||arguments.length&&!le)){for(var pe=document.cookie?document.cookie.split("; "):[],_e={},Ce=0;Ce<pe.length;Ce++){var $e=pe[Ce].split("="),xe=$e.slice(1).join("=");try{var Ie=decodeURIComponent($e[0]);if(_e[Ie]=$.read(xe,Ie),le===Ie)break}catch{}}return le?_e[le]:_e}}return Object.create({set:ae,get:ie,remove:function(le,pe){ae(le,"",assign$3({},pe,{expires:-1}))},withAttributes:function(le){return init$2(this.converter,assign$3({},this.attributes,le))},withConverter:function(le){return init$2(assign$3({},this.converter,le),this.attributes)}},{attributes:{value:Object.freeze(oe)},converter:{value:Object.freeze($)}})}var api=init$2(defaultConverter,{path:"/"});/*!
* pinia v2.0.36
* (c) 2023 Eduardo San Martin Morote
* @license MIT
*/let activePinia;const setActivePinia=$=>activePinia=$,piniaSymbol=Symbol();function isPlainObject($){return $&&typeof $=="object"&&Object.prototype.toString.call($)==="[object Object]"&&typeof $.toJSON!="function"}var MutationType;(function($){$.direct="direct",$.patchObject="patch object",$.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const $=effectScope(!0),oe=$.run(()=>ref({}));let ae=[],ie=[];const le=markRaw({install(pe){setActivePinia(le),le._a=pe,pe.provide(piniaSymbol,le),pe.config.globalProperties.$pinia=le,ie.forEach(_e=>ae.push(_e)),ie=[]},use(pe){return!this._a&&!isVue2?ie.push(pe):ae.push(pe),this},_p:ae,_a:null,_e:$,_s:new Map,state:oe});return le}const noop$3=()=>{};function addSubscription($,oe,ae,ie=noop$3){$.push(oe);const le=()=>{const pe=$.indexOf(oe);pe>-1&&($.splice(pe,1),ie())};return!ae&&getCurrentScope()&&onScopeDispose(le),le}function triggerSubscriptions($,...oe){$.slice().forEach(ae=>{ae(...oe)})}function mergeReactiveObjects($,oe){$ instanceof Map&&oe instanceof Map&&oe.forEach((ae,ie)=>$.set(ie,ae)),$ instanceof Set&&oe instanceof Set&&oe.forEach($.add,$);for(const ae in oe){if(!oe.hasOwnProperty(ae))continue;const ie=oe[ae],le=$[ae];isPlainObject(le)&&isPlainObject(ie)&&$.hasOwnProperty(ae)&&!isRef(ie)&&!isReactive(ie)?$[ae]=mergeReactiveObjects(le,ie):$[ae]=ie}return $}const skipHydrateSymbol=Symbol();function shouldHydrate($){return!isPlainObject($)||!$.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed($){return!!(isRef($)&&$.effect)}function createOptionsStore($,oe,ae,ie){const{state:le,actions:pe,getters:_e}=oe,Ce=ae.state.value[$];let $e;function xe(){Ce||(ae.state.value[$]=le?le():{});const Ie=toRefs(ae.state.value[$]);return assign$2(Ie,pe,Object.keys(_e||{}).reduce((Ne,Fe)=>(Ne[Fe]=markRaw(computed(()=>{setActivePinia(ae);const ze=ae._s.get($);return _e[Fe].call(ze,ze)})),Ne),{}))}return $e=createSetupStore($,xe,oe,ae,ie,!0),$e}function createSetupStore($,oe,ae={},ie,le,pe){let _e;const Ce=assign$2({actions:{}},ae),$e={deep:!0};let xe,Ie,Ne=markRaw([]),Fe=markRaw([]),ze;const At=ie.state.value[$];!pe&&!At&&(ie.state.value[$]={}),ref({});let Lt;function hn(wn){let Tn;xe=Ie=!1,typeof wn=="function"?(wn(ie.state.value[$]),Tn={type:MutationType.patchFunction,storeId:$,events:ze}):(mergeReactiveObjects(ie.state.value[$],wn),Tn={type:MutationType.patchObject,payload:wn,storeId:$,events:ze});const xn=Lt=Symbol();nextTick().then(()=>{Lt===xn&&(xe=!0)}),Ie=!0,triggerSubscriptions(Ne,Tn,ie.state.value[$])}const vn=pe?function(){const{state:Tn}=ae,xn=Tn?Tn():{};this.$patch(kn=>{assign$2(kn,xn)})}:noop$3;function _n(){_e.stop(),Ne=[],Fe=[],ie._s.delete($)}function bn(wn,Tn){return function(){setActivePinia(ie);const xn=Array.from(arguments),kn=[],An=[];function On(zn){kn.push(zn)}function Nn(zn){An.push(zn)}triggerSubscriptions(Fe,{args:xn,name:wn,store:En,after:On,onError:Nn});let Rn;try{Rn=Tn.apply(this&&this.$id===$?this:En,xn)}catch(zn){throw triggerSubscriptions(An,zn),zn}return Rn instanceof Promise?Rn.then(zn=>(triggerSubscriptions(kn,zn),zn)).catch(zn=>(triggerSubscriptions(An,zn),Promise.reject(zn))):(triggerSubscriptions(kn,Rn),Rn)}}const Cn={_p:ie,$id:$,$onAction:addSubscription.bind(null,Fe),$patch:hn,$reset:vn,$subscribe(wn,Tn={}){const xn=addSubscription(Ne,wn,Tn.detached,()=>kn()),kn=_e.run(()=>watch(()=>ie.state.value[$],An=>{(Tn.flush==="sync"?Ie:xe)&&wn({storeId:$,type:MutationType.direct,events:ze},An)},assign$2({},$e,Tn)));return xn},$dispose:_n},En=reactive(Cn);ie._s.set($,En);const $n=ie._e.run(()=>(_e=effectScope(),_e.run(()=>oe())));for(const wn in $n){const Tn=$n[wn];if(isRef(Tn)&&!isComputed(Tn)||isReactive(Tn))pe||(At&&shouldHydrate(Tn)&&(isRef(Tn)?Tn.value=At[wn]:mergeReactiveObjects(Tn,At[wn])),ie.state.value[$][wn]=Tn);else if(typeof Tn=="function"){const xn=bn(wn,Tn);$n[wn]=xn,Ce.actions[wn]=Tn}}return assign$2(En,$n),assign$2(toRaw(En),$n),Object.defineProperty(En,"$state",{get:()=>ie.state.value[$],set:wn=>{hn(Tn=>{assign$2(Tn,wn)})}}),ie._p.forEach(wn=>{assign$2(En,_e.run(()=>wn({store:En,app:ie._a,pinia:ie,options:Ce})))}),At&&pe&&ae.hydrate&&ae.hydrate(En.$state,At),xe=!0,Ie=!0,En}function defineStore($,oe,ae){let ie,le;const pe=typeof oe=="function";typeof $=="string"?(ie=$,le=pe?ae:oe):(le=$,ie=$.id);function _e(Ce,$e){const xe=getCurrentInstance();return Ce=Ce||xe&&inject(piniaSymbol,null),Ce&&setActivePinia(Ce),Ce=activePinia,Ce._s.has(ie)||(pe?createSetupStore(ie,oe,le,Ce):createOptionsStore(ie,le,Ce)),Ce._s.get(ie)}return _e.$id=ie,_e}function storeToRefs($){{$=toRaw($);const oe={};for(const ae in $){const ie=$[ae];(isRef(ie)||isReactive(ie))&&(oe[ae]=toRef$1($,ae))}return oe}}const store=createPinia();function setupStore($){$.use(store)}const{VITE_HIDE_HOME:VITE_HIDE_HOME$1}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1},routerArrays=VITE_HIDE_HOME$1==="false"?[{path:"/welcome",parentPath:"/",meta:{title:"menus.hshome",icon:"homeFilled"}}]:[];var shams=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var oe={},ae=Symbol("test"),ie=Object(ae);if(typeof ae=="string"||Object.prototype.toString.call(ae)!=="[object Symbol]"||Object.prototype.toString.call(ie)!=="[object Symbol]")return!1;var le=42;oe[ae]=le;for(ae in oe)return!1;if(typeof Object.keys=="function"&&Object.keys(oe).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(oe).length!==0)return!1;var pe=Object.getOwnPropertySymbols(oe);if(pe.length!==1||pe[0]!==ae||!Object.prototype.propertyIsEnumerable.call(oe,ae))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var _e=Object.getOwnPropertyDescriptor(oe,ae);if(_e.value!==le||_e.enumerable!==!0)return!1}return!0},origSymbol=typeof Symbol<"u"&&Symbol,hasSymbolSham=shams,hasSymbols$1=function(){return typeof origSymbol!="function"||typeof Symbol!="function"||typeof origSymbol("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:hasSymbolSham()},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(oe){var ae=this;if(typeof ae!="function"||toStr$1.call(ae)!==funcType)throw new TypeError(ERROR_MESSAGE+ae);for(var ie=slice$1.call(arguments,1),le,pe=function(){if(this instanceof le){var Ie=ae.apply(this,ie.concat(slice$1.call(arguments)));return Object(Ie)===Ie?Ie:this}else return ae.apply(oe,ie.concat(slice$1.call(arguments)))},_e=Math.max(0,ae.length-ie.length),Ce=[],$e=0;$e<_e;$e++)Ce.push("$"+$e);if(le=Function("binder","return function ("+Ce.join(",")+"){ return binder.apply(this,arguments); }")(pe),ae.prototype){var xe=function(){};xe.prototype=ae.prototype,le.prototype=new xe,xe.prototype=null}return le},implementation=implementation$1,functionBind=Function.prototype.bind||implementation,bind$3=functionBind,src=bind$3.call(Function.call,Object.prototype.hasOwnProperty),undefined$1,$SyntaxError=SyntaxError,$Function=Function,$TypeError$1=TypeError,getEvalledConstructor=function($){try{return $Function('"use strict"; return ('+$+").constructor;")()}catch{}},$gOPD=Object.getOwnPropertyDescriptor;if($gOPD)try{$gOPD({},"")}catch{$gOPD=null}var throwTypeError=function(){throw new $TypeError$1},ThrowTypeError=$gOPD?function(){try{return arguments.callee,throwTypeError}catch{try{return $gOPD(arguments,"callee").get}catch{return throwTypeError}}}():throwTypeError,hasSymbols=hasSymbols$1(),getProto=Object.getPrototypeOf||function($){return $.__proto__},needsEval={},TypedArray=typeof Uint8Array>"u"?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols?getProto([][Symbol.iterator]()):undefined$1,"%AsyncFromSyncIteratorPrototype%":undefined$1,"%AsyncFunction%":needsEval,"%AsyncGenerator%":needsEval,"%AsyncGeneratorFunction%":needsEval,"%AsyncIteratorPrototype%":needsEval,"%Atomics%":typeof Atomics>"u"?undefined$1:Atomics,"%BigInt%":typeof BigInt>"u"?undefined$1:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?undefined$1:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?undefined$1:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?undefined$1:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?undefined$1:Float32Array,"%Float64Array%":typeof Float64Array>"u"?undefined$1:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?undefined$1:FinalizationRegistry,"%Function%":$Function,"%GeneratorFunction%":needsEval,"%Int8Array%":typeof Int8Array>"u"?undefined$1:Int8Array,"%Int16Array%":typeof Int16Array>"u"?undefined$1:Int16Array,"%Int32Array%":typeof Int32Array>"u"?undefined$1:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":hasSymbols?getProto(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols?undefined$1:getProto(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?undefined$1:Promise,"%Proxy%":typeof Proxy>"u"?undefined$1:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?undefined$1:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?undefined$1:Set,"%SetIteratorPrototype%":typeof Set>"u"||!hasSymbols?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols?getProto(""[Symbol.iterator]()):undefined$1,"%Symbol%":hasSymbols?Symbol:undefined$1,"%SyntaxError%":$SyntaxError,"%ThrowTypeError%":ThrowTypeError,"%TypedArray%":TypedArray,"%TypeError%":$TypeError$1,"%Uint8Array%":typeof Uint8Array>"u"?undefined$1:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?undefined$1:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?undefined$1:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?undefined$1:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?undefined$1:WeakMap,"%WeakRef%":typeof WeakRef>"u"?undefined$1:WeakRef,"%WeakSet%":typeof WeakSet>"u"?undefined$1:WeakSet};try{null.error}catch($){var errorProto=getProto(getProto($));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function $(oe){var ae;if(oe==="%AsyncFunction%")ae=getEvalledConstructor("async function () {}");else if(oe==="%GeneratorFunction%")ae=getEvalledConstructor("function* () {}");else if(oe==="%AsyncGeneratorFunction%")ae=getEvalledConstructor("async function* () {}");else if(oe==="%AsyncGenerator%"){var ie=$("%AsyncGeneratorFunction%");ie&&(ae=ie.prototype)}else if(oe==="%AsyncIteratorPrototype%"){var le=$("%AsyncGenerator%");le&&(ae=getProto(le.prototype))}return INTRINSICS[oe]=ae,ae},LEGACY_ALIASES={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},bind$2=functionBind,hasOwn$2=src,$concat$1=bind$2.call(Function.call,Array.prototype.concat),$spliceApply=bind$2.call(Function.apply,Array.prototype.splice),$replace$1=bind$2.call(Function.call,String.prototype.replace),$strSlice=bind$2.call(Function.call,String.prototype.slice),$exec=bind$2.call(Function.call,RegExp.prototype.exec),rePropName=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,reEscapeChar=/\\(\\)?/g,stringToPath=function(oe){var ae=$strSlice(oe,0,1),ie=$strSlice(oe,-1);if(ae==="%"&&ie!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(ie==="%"&&ae!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var le=[];return $replace$1(oe,rePropName,function(pe,_e,Ce,$e){le[le.length]=Ce?$replace$1($e,reEscapeChar,"$1"):_e||pe}),le},getBaseIntrinsic=function(oe,ae){var ie=oe,le;if(hasOwn$2(LEGACY_ALIASES,ie)&&(le=LEGACY_ALIASES[ie],ie="%"+le[0]+"%"),hasOwn$2(INTRINSICS,ie)){var pe=INTRINSICS[ie];if(pe===needsEval&&(pe=doEval(ie)),typeof pe>"u"&&!ae)throw new $TypeError$1("intrinsic "+oe+" exists, but is not available. Please file an issue!");return{alias:le,name:ie,value:pe}}throw new $SyntaxError("intrinsic "+oe+" does not exist!")},getIntrinsic=function(oe,ae){if(typeof oe!="string"||oe.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof ae!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,oe)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var ie=stringToPath(oe),le=ie.length>0?ie[0]:"",pe=getBaseIntrinsic("%"+le+"%",ae),_e=pe.name,Ce=pe.value,$e=!1,xe=pe.alias;xe&&(le=xe[0],$spliceApply(ie,$concat$1([0,1],xe)));for(var Ie=1,Ne=!0;Ie<ie.length;Ie+=1){var Fe=ie[Ie],ze=$strSlice(Fe,0,1),At=$strSlice(Fe,-1);if((ze==='"'||ze==="'"||ze==="`"||At==='"'||At==="'"||At==="`")&&ze!==At)throw new $SyntaxError("property names with quotes must have matching quotes");if((Fe==="constructor"||!Ne)&&($e=!0),le+="."+Fe,_e="%"+le+"%",hasOwn$2(INTRINSICS,_e))Ce=INTRINSICS[_e];else if(Ce!=null){if(!(Fe in Ce)){if(!ae)throw new $TypeError$1("base intrinsic for "+oe+" exists, but the property is not available.");return}if($gOPD&&Ie+1>=ie.length){var Lt=$gOPD(Ce,Fe);Ne=!!Lt,Ne&&"get"in Lt&&!("originalValue"in Lt.get)?Ce=Lt.get:Ce=Ce[Fe]}else Ne=hasOwn$2(Ce,Fe),Ce=Ce[Fe];Ne&&!$e&&(INTRINSICS[_e]=Ce)}}return Ce},callBind$1={exports:{}};(function($){var oe=functionBind,ae=getIntrinsic,ie=ae("%Function.prototype.apply%"),le=ae("%Function.prototype.call%"),pe=ae("%Reflect.apply%",!0)||oe.call(le,ie),_e=ae("%Object.getOwnPropertyDescriptor%",!0),Ce=ae("%Object.defineProperty%",!0),$e=ae("%Math.max%");if(Ce)try{Ce({},"a",{value:1})}catch{Ce=null}$.exports=function(Ne){var Fe=pe(oe,le,arguments);if(_e&&Ce){var ze=_e(Fe,"length");ze.configurable&&Ce(Fe,"length",{value:1+$e(0,Ne.length-(arguments.length-1))})}return Fe};var xe=function(){return pe(oe,ie,arguments)};Ce?Ce($.exports,"apply",{value:xe}):$.exports.apply=xe})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(oe,ae){var ie=GetIntrinsic$1(oe,!!ae);return typeof ie=="function"&&$indexOf(oe,".prototype.")>-1?callBind(ie):ie};const __viteBrowserExternal={},__viteBrowserExternal$1=Object.freeze(Object.defineProperty({__proto__:null,default:__viteBrowserExternal},Symbol.toStringTag,{value:"Module"})),require$$0=getAugmentedNamespace(__viteBrowserExternal$1);var hasMap=typeof Map=="function"&&Map.prototype,mapSizeDescriptor=Object.getOwnPropertyDescriptor&&hasMap?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,mapSize=hasMap&&mapSizeDescriptor&&typeof mapSizeDescriptor.get=="function"?mapSizeDescriptor.get:null,mapForEach=hasMap&&Map.prototype.forEach,hasSet=typeof Set=="function"&&Set.prototype,setSizeDescriptor=Object.getOwnPropertyDescriptor&&hasSet?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,setSize=hasSet&&setSizeDescriptor&&typeof setSizeDescriptor.get=="function"?setSizeDescriptor.get:null,setForEach=hasSet&&Set.prototype.forEach,hasWeakMap=typeof WeakMap=="function"&&WeakMap.prototype,weakMapHas=hasWeakMap?WeakMap.prototype.has:null,hasWeakSet=typeof WeakSet=="function"&&WeakSet.prototype,weakSetHas=hasWeakSet?WeakSet.prototype.has:null,hasWeakRef=typeof WeakRef=="function"&&WeakRef.prototype,weakRefDeref=hasWeakRef?WeakRef.prototype.deref:null,booleanValueOf=Boolean.prototype.valueOf,objectToString=Object.prototype.toString,functionToString=Function.prototype.toString,$match=String.prototype.match,$slice=String.prototype.slice,$replace=String.prototype.replace,$toUpperCase=String.prototype.toUpperCase,$toLowerCase=String.prototype.toLowerCase,$test=RegExp.prototype.test,$concat=Array.prototype.concat,$join=Array.prototype.join,$arrSlice=Array.prototype.slice,$floor=Math.floor,bigIntValueOf=typeof BigInt=="function"?BigInt.prototype.valueOf:null,gOPS=Object.getOwnPropertySymbols,symToString=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,hasShammedSymbols=typeof Symbol=="function"&&typeof Symbol.iterator=="object",toStringTag=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===hasShammedSymbols||"symbol")?Symbol.toStringTag:null,isEnumerable=Object.prototype.propertyIsEnumerable,gPO=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function($){return $.__proto__}:null);function addNumericSeparator($,oe){if($===1/0||$===-1/0||$!==$||$&&$>-1e3&&$<1e3||$test.call(/e/,oe))return oe;var ae=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof $=="number"){var ie=$<0?-$floor(-$):$floor($);if(ie!==$){var le=String(ie),pe=$slice.call(oe,le.length+1);return $replace.call(le,ae,"$&_")+"."+$replace.call($replace.call(pe,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(oe,ae,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function $(oe,ae,ie,le){var pe=ae||{};if(has$4(pe,"quoteStyle")&&pe.quoteStyle!=="single"&&pe.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(pe,"maxStringLength")&&(typeof pe.maxStringLength=="number"?pe.maxStringLength<0&&pe.maxStringLength!==1/0:pe.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _e=has$4(pe,"customInspect")?pe.customInspect:!0;if(typeof _e!="boolean"&&_e!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(pe,"indent")&&pe.indent!==null&&pe.indent!==" "&&!(parseInt(pe.indent,10)===pe.indent&&pe.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(pe,"numericSeparator")&&typeof pe.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var Ce=pe.numericSeparator;if(typeof oe>"u")return"undefined";if(oe===null)return"null";if(typeof oe=="boolean")return oe?"true":"false";if(typeof oe=="string")return inspectString(oe,pe);if(typeof oe=="number"){if(oe===0)return 1/0/oe>0?"0":"-0";var $e=String(oe);return Ce?addNumericSeparator(oe,$e):$e}if(typeof oe=="bigint"){var xe=String(oe)+"n";return Ce?addNumericSeparator(oe,xe):xe}var Ie=typeof pe.depth>"u"?5:pe.depth;if(typeof ie>"u"&&(ie=0),ie>=Ie&&Ie>0&&typeof oe=="object")return isArray$7(oe)?"[Array]":"[Object]";var Ne=getIndent(pe,ie);if(typeof le>"u")le=[];else if(indexOf$1(le,oe)>=0)return"[Circular]";function Fe(Nn,Rn,zn){if(Rn&&(le=$arrSlice.call(le),le.push(Rn)),zn){var Bn={depth:pe.depth};return has$4(pe,"quoteStyle")&&(Bn.quoteStyle=pe.quoteStyle),$(Nn,Bn,ie+1,le)}return $(Nn,pe,ie+1,le)}if(typeof oe=="function"&&!isRegExp$2(oe)){var ze=nameOf(oe),At=arrObjKeys(oe,Fe);return"[Function"+(ze?": "+ze:" (anonymous)")+"]"+(At.length>0?" { "+$join.call(At,", ")+" }":"")}if(isSymbol(oe)){var Lt=hasShammedSymbols?$replace.call(String(oe),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(oe);return typeof oe=="object"&&!hasShammedSymbols?markBoxed(Lt):Lt}if(isElement$1(oe)){for(var hn="<"+$toLowerCase.call(String(oe.nodeName)),vn=oe.attributes||[],_n=0;_n<vn.length;_n++)hn+=" "+vn[_n].name+"="+wrapQuotes(quote(vn[_n].value),"double",pe);return hn+=">",oe.childNodes&&oe.childNodes.length&&(hn+="..."),hn+="</"+$toLowerCase.call(String(oe.nodeName))+">",hn}if(isArray$7(oe)){if(oe.length===0)return"[]";var bn=arrObjKeys(oe,Fe);return Ne&&!singleLineValues(bn)?"["+indentedJoin(bn,Ne)+"]":"[ "+$join.call(bn,", ")+" ]"}if(isError(oe)){var Cn=arrObjKeys(oe,Fe);return!("cause"in Error.prototype)&&"cause"in oe&&!isEnumerable.call(oe,"cause")?"{ ["+String(oe)+"] "+$join.call($concat.call("[cause]: "+Fe(oe.cause),Cn),", ")+" }":Cn.length===0?"["+String(oe)+"]":"{ ["+String(oe)+"] "+$join.call(Cn,", ")+" }"}if(typeof oe=="object"&&_e){if(inspectSymbol&&typeof oe[inspectSymbol]=="function"&&utilInspect)return utilInspect(oe,{depth:Ie-ie});if(_e!=="symbol"&&typeof oe.inspect=="function")return oe.inspect()}if(isMap(oe)){var En=[];return mapForEach&&mapForEach.call(oe,function(Nn,Rn){En.push(Fe(Rn,oe,!0)+" => "+Fe(Nn,oe))}),collectionOf("Map",mapSize.call(oe),En,Ne)}if(isSet(oe)){var $n=[];return setForEach&&setForEach.call(oe,function(Nn){$n.push(Fe(Nn,oe))}),collectionOf("Set",setSize.call(oe),$n,Ne)}if(isWeakMap(oe))return weakCollectionOf("WeakMap");if(isWeakSet(oe))return weakCollectionOf("WeakSet");if(isWeakRef(oe))return weakCollectionOf("WeakRef");if(isNumber$2(oe))return markBoxed(Fe(Number(oe)));if(isBigInt(oe))return markBoxed(Fe(bigIntValueOf.call(oe)));if(isBoolean(oe))return markBoxed(booleanValueOf.call(oe));if(isString$3(oe))return markBoxed(Fe(String(oe)));if(!isDate(oe)&&!isRegExp$2(oe)){var wn=arrObjKeys(oe,Fe),Tn=gPO?gPO(oe)===Object.prototype:oe instanceof Object||oe.constructor===Object,xn=oe instanceof Object?"":"null prototype",kn=!Tn&&toStringTag&&Object(oe)===oe&&toStringTag in oe?$slice.call(toStr(oe),8,-1):xn?"Object":"",An=Tn||typeof oe.constructor!="function"?"":oe.constructor.name?oe.constructor.name+" ":"",On=An+(kn||xn?"["+$join.call($concat.call([],kn||[],xn||[]),": ")+"] ":"");return wn.length===0?On+"{}":Ne?On+"{"+indentedJoin(wn,Ne)+"}":On+"{ "+$join.call(wn,", ")+" }"}return String(oe)};function wrapQuotes($,oe,ae){var ie=(ae.quoteStyle||oe)==="double"?'"':"'";return ie+$+ie}function quote($){return $replace.call(String($),/"/g,"&quot;")}function isArray$7($){return toStr($)==="[object Array]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isDate($){return toStr($)==="[object Date]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isRegExp$2($){return toStr($)==="[object RegExp]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isError($){return toStr($)==="[object Error]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isString$3($){return toStr($)==="[object String]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isNumber$2($){return toStr($)==="[object Number]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isBoolean($){return toStr($)==="[object Boolean]"&&(!toStringTag||!(typeof $=="object"&&toStringTag in $))}function isSymbol($){if(hasShammedSymbols)return $&&typeof $=="object"&&$ instanceof Symbol;if(typeof $=="symbol")return!0;if(!$||typeof $!="object"||!symToString)return!1;try{return symToString.call($),!0}catch{}return!1}function isBigInt($){if(!$||typeof $!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call($),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function($){return $ in this};function has$4($,oe){return hasOwn$1.call($,oe)}function toStr($){return objectToString.call($)}function nameOf($){if($.name)return $.name;var oe=$match.call(functionToString.call($),/^function\s*([\w$]+)/);return oe?oe[1]:null}function indexOf$1($,oe){if($.indexOf)return $.indexOf(oe);for(var ae=0,ie=$.length;ae<ie;ae++)if($[ae]===oe)return ae;return-1}function isMap($){if(!mapSize||!$||typeof $!="object")return!1;try{mapSize.call($);try{setSize.call($)}catch{return!0}return $ instanceof Map}catch{}return!1}function isWeakMap($){if(!weakMapHas||!$||typeof $!="object")return!1;try{weakMapHas.call($,weakMapHas);try{weakSetHas.call($,weakSetHas)}catch{return!0}return $ instanceof WeakMap}catch{}return!1}function isWeakRef($){if(!weakRefDeref||!$||typeof $!="object")return!1;try{return weakRefDeref.call($),!0}catch{}return!1}function isSet($){if(!setSize||!$||typeof $!="object")return!1;try{setSize.call($);try{mapSize.call($)}catch{return!0}return $ instanceof Set}catch{}return!1}function isWeakSet($){if(!weakSetHas||!$||typeof $!="object")return!1;try{weakSetHas.call($,weakSetHas);try{weakMapHas.call($,weakMapHas)}catch{return!0}return $ instanceof WeakSet}catch{}return!1}function isElement$1($){return!$||typeof $!="object"?!1:typeof HTMLElement<"u"&&$ instanceof HTMLElement?!0:typeof $.nodeName=="string"&&typeof $.getAttribute=="function"}function inspectString($,oe){if($.length>oe.maxStringLength){var ae=$.length-oe.maxStringLength,ie="... "+ae+" more character"+(ae>1?"s":"");return inspectString($slice.call($,0,oe.maxStringLength),oe)+ie}var le=$replace.call($replace.call($,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(le,"single",oe)}function lowbyte($){var oe=$.charCodeAt(0),ae={8:"b",9:"t",10:"n",12:"f",13:"r"}[oe];return ae?"\\"+ae:"\\x"+(oe<16?"0":"")+$toUpperCase.call(oe.toString(16))}function markBoxed($){return"Object("+$+")"}function weakCollectionOf($){return $+" { ? }"}function collectionOf($,oe,ae,ie){var le=ie?indentedJoin(ae,ie):$join.call(ae,", ");return $+" ("+oe+") {"+le+"}"}function singleLineValues($){for(var oe=0;oe<$.length;oe++)if(indexOf$1($[oe],`
`)>=0)return!1;return!0}function getIndent($,oe){var ae;if($.indent===" ")ae=" ";else if(typeof $.indent=="number"&&$.indent>0)ae=$join.call(Array($.indent+1)," ");else return null;return{base:ae,prev:$join.call(Array(oe+1),ae)}}function indentedJoin($,oe){if($.length===0)return"";var ae=`
`+oe.prev+oe.base;return ae+$join.call($,","+ae)+`
`+oe.prev}function arrObjKeys($,oe){var ae=isArray$7($),ie=[];if(ae){ie.length=$.length;for(var le=0;le<$.length;le++)ie[le]=has$4($,le)?oe($[le],$):""}var pe=typeof gOPS=="function"?gOPS($):[],_e;if(hasShammedSymbols){_e={};for(var Ce=0;Ce<pe.length;Ce++)_e["$"+pe[Ce]]=pe[Ce]}for(var $e in $)has$4($,$e)&&(ae&&String(Number($e))===$e&&$e<$.length||hasShammedSymbols&&_e["$"+$e]instanceof Symbol||($test.call(/[^\w$]/,$e)?ie.push(oe($e,$)+": "+oe($[$e],$)):ie.push($e+": "+oe($[$e],$))));if(typeof gOPS=="function")for(var xe=0;xe<pe.length;xe++)isEnumerable.call($,pe[xe])&&ie.push("["+oe(pe[xe])+"]: "+oe($[pe[xe]],$));return ie}var GetIntrinsic=getIntrinsic,callBound=callBound$1,inspect=objectInspect,$TypeError=GetIntrinsic("%TypeError%"),$WeakMap=GetIntrinsic("%WeakMap%",!0),$Map=GetIntrinsic("%Map%",!0),$weakMapGet=callBound("WeakMap.prototype.get",!0),$weakMapSet=callBound("WeakMap.prototype.set",!0),$weakMapHas=callBound("WeakMap.prototype.has",!0),$mapGet=callBound("Map.prototype.get",!0),$mapSet=callBound("Map.prototype.set",!0),$mapHas=callBound("Map.prototype.has",!0),listGetNode=function($,oe){for(var ae=$,ie;(ie=ae.next)!==null;ae=ie)if(ie.key===oe)return ae.next=ie.next,ie.next=$.next,$.next=ie,ie},listGet=function($,oe){var ae=listGetNode($,oe);return ae&&ae.value},listSet=function($,oe,ae){var ie=listGetNode($,oe);ie?ie.value=ae:$.next={key:oe,next:$.next,value:ae}},listHas=function($,oe){return!!listGetNode($,oe)},sideChannel=function(){var oe,ae,ie,le={assert:function(pe){if(!le.has(pe))throw new $TypeError("Side channel does not contain "+inspect(pe))},get:function(pe){if($WeakMap&&pe&&(typeof pe=="object"||typeof pe=="function")){if(oe)return $weakMapGet(oe,pe)}else if($Map){if(ae)return $mapGet(ae,pe)}else if(ie)return listGet(ie,pe)},has:function(pe){if($WeakMap&&pe&&(typeof pe=="object"||typeof pe=="function")){if(oe)return $weakMapHas(oe,pe)}else if($Map){if(ae)return $mapHas(ae,pe)}else if(ie)return listHas(ie,pe);return!1},set:function(pe,_e){$WeakMap&&pe&&(typeof pe=="object"||typeof pe=="function")?(oe||(oe=new $WeakMap),$weakMapSet(oe,pe,_e)):$Map?(ae||(ae=new $Map),$mapSet(ae,pe,_e)):(ie||(ie={key:{},next:null}),listSet(ie,pe,_e))}};return le},replace=String.prototype.replace,percentTwenties=/%20/g,Format={RFC1738:"RFC1738",RFC3986:"RFC3986"},formats$3={default:Format.RFC3986,formatters:{RFC1738:function($){return replace.call($,percentTwenties,"+")},RFC3986:function($){return String($)}},RFC1738:Format.RFC1738,RFC3986:Format.RFC3986},formats$2=formats$3,has$3=Object.prototype.hasOwnProperty,isArray$6=Array.isArray,hexTable=function(){for(var $=[],oe=0;oe<256;++oe)$.push("%"+((oe<16?"0":"")+oe.toString(16)).toUpperCase());return $}(),compactQueue=function(oe){for(;oe.length>1;){var ae=oe.pop(),ie=ae.obj[ae.prop];if(isArray$6(ie)){for(var le=[],pe=0;pe<ie.length;++pe)typeof ie[pe]<"u"&&le.push(ie[pe]);ae.obj[ae.prop]=le}}},arrayToObject=function(oe,ae){for(var ie=ae&&ae.plainObjects?Object.create(null):{},le=0;le<oe.length;++le)typeof oe[le]<"u"&&(ie[le]=oe[le]);return ie},merge$1=function $(oe,ae,ie){if(!ae)return oe;if(typeof ae!="object"){if(isArray$6(oe))oe.push(ae);else if(oe&&typeof oe=="object")(ie&&(ie.plainObjects||ie.allowPrototypes)||!has$3.call(Object.prototype,ae))&&(oe[ae]=!0);else return[oe,ae];return oe}if(!oe||typeof oe!="object")return[oe].concat(ae);var le=oe;return isArray$6(oe)&&!isArray$6(ae)&&(le=arrayToObject(oe,ie)),isArray$6(oe)&&isArray$6(ae)?(ae.forEach(function(pe,_e){if(has$3.call(oe,_e)){var Ce=oe[_e];Ce&&typeof Ce=="object"&&pe&&typeof pe=="object"?oe[_e]=$(Ce,pe,ie):oe.push(pe)}else oe[_e]=pe}),oe):Object.keys(ae).reduce(function(pe,_e){var Ce=ae[_e];return has$3.call(pe,_e)?pe[_e]=$(pe[_e],Ce,ie):pe[_e]=Ce,pe},le)},assign$1=function(oe,ae){return Object.keys(ae).reduce(function(ie,le){return ie[le]=ae[le],ie},oe)},decode$2=function($,oe,ae){var ie=$.replace(/\+/g," ");if(ae==="iso-8859-1")return ie.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(ie)}catch{return ie}},encode=function(oe,ae,ie,le,pe){if(oe.length===0)return oe;var _e=oe;if(typeof oe=="symbol"?_e=Symbol.prototype.toString.call(oe):typeof oe!="string"&&(_e=String(oe)),ie==="iso-8859-1")return escape(_e).replace(/%u[0-9a-f]{4}/gi,function(Ie){return"%26%23"+parseInt(Ie.slice(2),16)+"%3B"});for(var Ce="",$e=0;$e<_e.length;++$e){var xe=_e.charCodeAt($e);if(xe===45||xe===46||xe===95||xe===126||xe>=48&&xe<=57||xe>=65&&xe<=90||xe>=97&&xe<=122||pe===formats$2.RFC1738&&(xe===40||xe===41)){Ce+=_e.charAt($e);continue}if(xe<128){Ce=Ce+hexTable[xe];continue}if(xe<2048){Ce=Ce+(hexTable[192|xe>>6]+hexTable[128|xe&63]);continue}if(xe<55296||xe>=57344){Ce=Ce+(hexTable[224|xe>>12]+hexTable[128|xe>>6&63]+hexTable[128|xe&63]);continue}$e+=1,xe=65536+((xe&1023)<<10|_e.charCodeAt($e)&1023),Ce+=hexTable[240|xe>>18]+hexTable[128|xe>>12&63]+hexTable[128|xe>>6&63]+hexTable[128|xe&63]}return Ce},compact=function(oe){for(var ae=[{obj:{o:oe},prop:"o"}],ie=[],le=0;le<ae.length;++le)for(var pe=ae[le],_e=pe.obj[pe.prop],Ce=Object.keys(_e),$e=0;$e<Ce.length;++$e){var xe=Ce[$e],Ie=_e[xe];typeof Ie=="object"&&Ie!==null&&ie.indexOf(Ie)===-1&&(ae.push({obj:_e,prop:xe}),ie.push(Ie))}return compactQueue(ae),oe},isRegExp$1=function(oe){return Object.prototype.toString.call(oe)==="[object RegExp]"},isBuffer=function(oe){return!oe||typeof oe!="object"?!1:!!(oe.constructor&&oe.constructor.isBuffer&&oe.constructor.isBuffer(oe))},combine=function(oe,ae){return[].concat(oe,ae)},maybeMap=function(oe,ae){if(isArray$6(oe)){for(var ie=[],le=0;le<oe.length;le+=1)ie.push(ae(oe[le]));return ie}return ae(oe)},utils$6={arrayToObject,assign:assign$1,combine,compact,decode:decode$2,encode,isBuffer,isRegExp:isRegExp$1,maybeMap,merge:merge$1},getSideChannel=sideChannel,utils$5=utils$6,formats$1=formats$3,has$2=Object.prototype.hasOwnProperty,arrayPrefixGenerators={brackets:function(oe){return oe+"[]"},comma:"comma",indices:function(oe,ae){return oe+"["+ae+"]"},repeat:function(oe){return oe}},isArray$5=Array.isArray,push$1=Array.prototype.push,pushToArray=function($,oe){push$1.apply($,isArray$5(oe)?oe:[oe])},toISO=Date.prototype.toISOString,defaultFormat=formats$1.default,defaults$2={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:utils$5.encode,encodeValuesOnly:!1,format:defaultFormat,formatter:formats$1.formatters[defaultFormat],indices:!1,serializeDate:function(oe){return toISO.call(oe)},skipNulls:!1,strictNullHandling:!1},isNonNullishPrimitive=function(oe){return typeof oe=="string"||typeof oe=="number"||typeof oe=="boolean"||typeof oe=="symbol"||typeof oe=="bigint"},sentinel={},stringify$2=function $(oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie,Ne,Fe,ze,At,Lt,hn){for(var vn=oe,_n=hn,bn=0,Cn=!1;(_n=_n.get(sentinel))!==void 0&&!Cn;){var En=_n.get(oe);if(bn+=1,typeof En<"u"){if(En===bn)throw new RangeError("Cyclic object value");Cn=!0}typeof _n.get(sentinel)>"u"&&(bn=0)}if(typeof $e=="function"?vn=$e(ae,vn):vn instanceof Date?vn=Ne(vn):ie==="comma"&&isArray$5(vn)&&(vn=utils$5.maybeMap(vn,function(Bn){return Bn instanceof Date?Ne(Bn):Bn})),vn===null){if(pe)return Ce&&!At?Ce(ae,defaults$2.encoder,Lt,"key",Fe):ae;vn=""}if(isNonNullishPrimitive(vn)||utils$5.isBuffer(vn)){if(Ce){var $n=At?ae:Ce(ae,defaults$2.encoder,Lt,"key",Fe);return[ze($n)+"="+ze(Ce(vn,defaults$2.encoder,Lt,"value",Fe))]}return[ze(ae)+"="+ze(String(vn))]}var wn=[];if(typeof vn>"u")return wn;var Tn;if(ie==="comma"&&isArray$5(vn))At&&Ce&&(vn=utils$5.maybeMap(vn,Ce)),Tn=[{value:vn.length>0?vn.join(",")||null:void 0}];else if(isArray$5($e))Tn=$e;else{var xn=Object.keys(vn);Tn=xe?xn.sort(xe):xn}for(var kn=le&&isArray$5(vn)&&vn.length===1?ae+"[]":ae,An=0;An<Tn.length;++An){var On=Tn[An],Nn=typeof On=="object"&&typeof On.value<"u"?On.value:vn[On];if(!(_e&&Nn===null)){var Rn=isArray$5(vn)?typeof ie=="function"?ie(kn,On):kn:kn+(Ie?"."+On:"["+On+"]");hn.set(oe,bn);var zn=getSideChannel();zn.set(sentinel,hn),pushToArray(wn,$(Nn,Rn,ie,le,pe,_e,ie==="comma"&&At&&isArray$5(vn)?null:Ce,$e,xe,Ie,Ne,Fe,ze,At,Lt,zn))}}return wn},normalizeStringifyOptions=function(oe){if(!oe)return defaults$2;if(oe.encoder!==null&&typeof oe.encoder<"u"&&typeof oe.encoder!="function")throw new TypeError("Encoder has to be a function.");var ae=oe.charset||defaults$2.charset;if(typeof oe.charset<"u"&&oe.charset!=="utf-8"&&oe.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var ie=formats$1.default;if(typeof oe.format<"u"){if(!has$2.call(formats$1.formatters,oe.format))throw new TypeError("Unknown format option provided.");ie=oe.format}var le=formats$1.formatters[ie],pe=defaults$2.filter;return(typeof oe.filter=="function"||isArray$5(oe.filter))&&(pe=oe.filter),{addQueryPrefix:typeof oe.addQueryPrefix=="boolean"?oe.addQueryPrefix:defaults$2.addQueryPrefix,allowDots:typeof oe.allowDots>"u"?defaults$2.allowDots:!!oe.allowDots,charset:ae,charsetSentinel:typeof oe.charsetSentinel=="boolean"?oe.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof oe.delimiter>"u"?defaults$2.delimiter:oe.delimiter,encode:typeof oe.encode=="boolean"?oe.encode:defaults$2.encode,encoder:typeof oe.encoder=="function"?oe.encoder:defaults$2.encoder,encodeValuesOnly:typeof oe.encodeValuesOnly=="boolean"?oe.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:pe,format:ie,formatter:le,serializeDate:typeof oe.serializeDate=="function"?oe.serializeDate:defaults$2.serializeDate,skipNulls:typeof oe.skipNulls=="boolean"?oe.skipNulls:defaults$2.skipNulls,sort:typeof oe.sort=="function"?oe.sort:null,strictNullHandling:typeof oe.strictNullHandling=="boolean"?oe.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function($,oe){var ae=$,ie=normalizeStringifyOptions(oe),le,pe;typeof ie.filter=="function"?(pe=ie.filter,ae=pe("",ae)):isArray$5(ie.filter)&&(pe=ie.filter,le=pe);var _e=[];if(typeof ae!="object"||ae===null)return"";var Ce;oe&&oe.arrayFormat in arrayPrefixGenerators?Ce=oe.arrayFormat:oe&&"indices"in oe?Ce=oe.indices?"indices":"repeat":Ce="indices";var $e=arrayPrefixGenerators[Ce];if(oe&&"commaRoundTrip"in oe&&typeof oe.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var xe=$e==="comma"&&oe&&oe.commaRoundTrip;le||(le=Object.keys(ae)),ie.sort&&le.sort(ie.sort);for(var Ie=getSideChannel(),Ne=0;Ne<le.length;++Ne){var Fe=le[Ne];ie.skipNulls&&ae[Fe]===null||pushToArray(_e,stringify$2(ae[Fe],Fe,$e,xe,ie.strictNullHandling,ie.skipNulls,ie.encode?ie.encoder:null,ie.filter,ie.sort,ie.allowDots,ie.serializeDate,ie.format,ie.formatter,ie.encodeValuesOnly,ie.charset,Ie))}var ze=_e.join(ie.delimiter),At=ie.addQueryPrefix===!0?"?":"";return ie.charsetSentinel&&(ie.charset==="iso-8859-1"?At+="utf8=%26%2310003%3B&":At+="utf8=%E2%9C%93&"),ze.length>0?At+ze:""},utils$4=utils$6,has$1=Object.prototype.hasOwnProperty,isArray$4=Array.isArray,defaults$1={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:utils$4.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function($){return $.replace(/&#(\d+);/g,function(oe,ae){return String.fromCharCode(parseInt(ae,10))})},parseArrayValue=function($,oe){return $&&typeof $=="string"&&oe.comma&&$.indexOf(",")>-1?$.split(","):$},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(oe,ae){var ie={},le=ae.ignoreQueryPrefix?oe.replace(/^\?/,""):oe,pe=ae.parameterLimit===1/0?void 0:ae.parameterLimit,_e=le.split(ae.delimiter,pe),Ce=-1,$e,xe=ae.charset;if(ae.charsetSentinel)for($e=0;$e<_e.length;++$e)_e[$e].indexOf("utf8=")===0&&(_e[$e]===charsetSentinel?xe="utf-8":_e[$e]===isoSentinel&&(xe="iso-8859-1"),Ce=$e,$e=_e.length);for($e=0;$e<_e.length;++$e)if($e!==Ce){var Ie=_e[$e],Ne=Ie.indexOf("]="),Fe=Ne===-1?Ie.indexOf("="):Ne+1,ze,At;Fe===-1?(ze=ae.decoder(Ie,defaults$1.decoder,xe,"key"),At=ae.strictNullHandling?null:""):(ze=ae.decoder(Ie.slice(0,Fe),defaults$1.decoder,xe,"key"),At=utils$4.maybeMap(parseArrayValue(Ie.slice(Fe+1),ae),function(Lt){return ae.decoder(Lt,defaults$1.decoder,xe,"value")})),At&&ae.interpretNumericEntities&&xe==="iso-8859-1"&&(At=interpretNumericEntities(At)),Ie.indexOf("[]=")>-1&&(At=isArray$4(At)?[At]:At),has$1.call(ie,ze)?ie[ze]=utils$4.combine(ie[ze],At):ie[ze]=At}return ie},parseObject=function($,oe,ae,ie){for(var le=ie?oe:parseArrayValue(oe,ae),pe=$.length-1;pe>=0;--pe){var _e,Ce=$[pe];if(Ce==="[]"&&ae.parseArrays)_e=[].concat(le);else{_e=ae.plainObjects?Object.create(null):{};var $e=Ce.charAt(0)==="["&&Ce.charAt(Ce.length-1)==="]"?Ce.slice(1,-1):Ce,xe=parseInt($e,10);!ae.parseArrays&&$e===""?_e={0:le}:!isNaN(xe)&&Ce!==$e&&String(xe)===$e&&xe>=0&&ae.parseArrays&&xe<=ae.arrayLimit?(_e=[],_e[xe]=le):$e!=="__proto__"&&(_e[$e]=le)}le=_e}return le},parseKeys=function(oe,ae,ie,le){if(oe){var pe=ie.allowDots?oe.replace(/\.([^.[]+)/g,"[$1]"):oe,_e=/(\[[^[\]]*])/,Ce=/(\[[^[\]]*])/g,$e=ie.depth>0&&_e.exec(pe),xe=$e?pe.slice(0,$e.index):pe,Ie=[];if(xe){if(!ie.plainObjects&&has$1.call(Object.prototype,xe)&&!ie.allowPrototypes)return;Ie.push(xe)}for(var Ne=0;ie.depth>0&&($e=Ce.exec(pe))!==null&&Ne<ie.depth;){if(Ne+=1,!ie.plainObjects&&has$1.call(Object.prototype,$e[1].slice(1,-1))&&!ie.allowPrototypes)return;Ie.push($e[1])}return $e&&Ie.push("["+pe.slice($e.index)+"]"),parseObject(Ie,ae,ie,le)}},normalizeParseOptions=function(oe){if(!oe)return defaults$1;if(oe.decoder!==null&&oe.decoder!==void 0&&typeof oe.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof oe.charset<"u"&&oe.charset!=="utf-8"&&oe.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var ae=typeof oe.charset>"u"?defaults$1.charset:oe.charset;return{allowDots:typeof oe.allowDots>"u"?defaults$1.allowDots:!!oe.allowDots,allowPrototypes:typeof oe.allowPrototypes=="boolean"?oe.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof oe.allowSparse=="boolean"?oe.allowSparse:defaults$1.allowSparse,arrayLimit:typeof oe.arrayLimit=="number"?oe.arrayLimit:defaults$1.arrayLimit,charset:ae,charsetSentinel:typeof oe.charsetSentinel=="boolean"?oe.charsetSentinel:defaults$1.charsetSentinel,comma:typeof oe.comma=="boolean"?oe.comma:defaults$1.comma,decoder:typeof oe.decoder=="function"?oe.decoder:defaults$1.decoder,delimiter:typeof oe.delimiter=="string"||utils$4.isRegExp(oe.delimiter)?oe.delimiter:defaults$1.delimiter,depth:typeof oe.depth=="number"||oe.depth===!1?+oe.depth:defaults$1.depth,ignoreQueryPrefix:oe.ignoreQueryPrefix===!0,interpretNumericEntities:typeof oe.interpretNumericEntities=="boolean"?oe.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof oe.parameterLimit=="number"?oe.parameterLimit:defaults$1.parameterLimit,parseArrays:oe.parseArrays!==!1,plainObjects:typeof oe.plainObjects=="boolean"?oe.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof oe.strictNullHandling=="boolean"?oe.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function($,oe){var ae=normalizeParseOptions(oe);if($===""||$===null||typeof $>"u")return ae.plainObjects?Object.create(null):{};for(var ie=typeof $=="string"?parseValues($,ae):$,le=ae.plainObjects?Object.create(null):{},pe=Object.keys(ie),_e=0;_e<pe.length;++_e){var Ce=pe[_e],$e=parseKeys(Ce,ie[Ce],ae,typeof $=="string");le=utils$4.merge(le,$e,ae)}return ae.allowSparse===!0?le:utils$4.compact(le)},stringify$1=stringify_1,parse$3=parse$4,formats=formats$3,lib={formats,parse:parse$3,stringify:stringify$1},nprogress$1={exports:{}};/* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
* @license MIT */(function($,oe){(function(ae,ie){$.exports=ie()})(commonjsGlobal,function(){var ae={};ae.version="0.2.0";var ie=ae.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};ae.configure=function(At){var Lt,hn;for(Lt in At)hn=At[Lt],hn!==void 0&&At.hasOwnProperty(Lt)&&(ie[Lt]=hn);return this},ae.status=null,ae.set=function(At){var Lt=ae.isStarted();At=le(At,ie.minimum,1),ae.status=At===1?null:At;var hn=ae.render(!Lt),vn=hn.querySelector(ie.barSelector),_n=ie.speed,bn=ie.easing;return hn.offsetWidth,Ce(function(Cn){ie.positionUsing===""&&(ie.positionUsing=ae.getPositioningCSS()),$e(vn,_e(At,_n,bn)),At===1?($e(hn,{transition:"none",opacity:1}),hn.offsetWidth,setTimeout(function(){$e(hn,{transition:"all "+_n+"ms linear",opacity:0}),setTimeout(function(){ae.remove(),Cn()},_n)},_n)):setTimeout(Cn,_n)}),this},ae.isStarted=function(){return typeof ae.status=="number"},ae.start=function(){ae.status||ae.set(0);var At=function(){setTimeout(function(){ae.status&&(ae.trickle(),At())},ie.trickleSpeed)};return ie.trickle&&At(),this},ae.done=function(At){return!At&&!ae.status?this:ae.inc(.3+.5*Math.random()).set(1)},ae.inc=function(At){var Lt=ae.status;return Lt?(typeof At!="number"&&(At=(1-Lt)*le(Math.random()*Lt,.1,.95)),Lt=le(Lt+At,0,.994),ae.set(Lt)):ae.start()},ae.trickle=function(){return ae.inc(Math.random()*ie.trickleRate)},function(){var At=0,Lt=0;ae.promise=function(hn){return!hn||hn.state()==="resolved"?this:(Lt===0&&ae.start(),At++,Lt++,hn.always(function(){Lt--,Lt===0?(At=0,ae.done()):ae.set((At-Lt)/At)}),this)}}(),ae.render=function(At){if(ae.isRendered())return document.getElementById("nprogress");Ie(document.documentElement,"nprogress-busy");var Lt=document.createElement("div");Lt.id="nprogress",Lt.innerHTML=ie.template;var hn=Lt.querySelector(ie.barSelector),vn=At?"-100":pe(ae.status||0),_n=document.querySelector(ie.parent),bn;return $e(hn,{transition:"all 0 linear",transform:"translate3d("+vn+"%,0,0)"}),ie.showSpinner||(bn=Lt.querySelector(ie.spinnerSelector),bn&&ze(bn)),_n!=document.body&&Ie(_n,"nprogress-custom-parent"),_n.appendChild(Lt),Lt},ae.remove=function(){Ne(document.documentElement,"nprogress-busy"),Ne(document.querySelector(ie.parent),"nprogress-custom-parent");var At=document.getElementById("nprogress");At&&ze(At)},ae.isRendered=function(){return!!document.getElementById("nprogress")},ae.getPositioningCSS=function(){var At=document.body.style,Lt="WebkitTransform"in At?"Webkit":"MozTransform"in At?"Moz":"msTransform"in At?"ms":"OTransform"in At?"O":"";return Lt+"Perspective"in At?"translate3d":Lt+"Transform"in At?"translate":"margin"};function le(At,Lt,hn){return At<Lt?Lt:At>hn?hn:At}function pe(At){return(-1+At)*100}function _e(At,Lt,hn){var vn;return ie.positionUsing==="translate3d"?vn={transform:"translate3d("+pe(At)+"%,0,0)"}:ie.positionUsing==="translate"?vn={transform:"translate("+pe(At)+"%,0)"}:vn={"margin-left":pe(At)+"%"},vn.transition="all "+Lt+"ms "+hn,vn}var Ce=function(){var At=[];function Lt(){var hn=At.shift();hn&&hn(Lt)}return function(hn){At.push(hn),At.length==1&&Lt()}}(),$e=function(){var At=["Webkit","O","Moz","ms"],Lt={};function hn(Cn){return Cn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(En,$n){return $n.toUpperCase()})}function vn(Cn){var En=document.body.style;if(Cn in En)return Cn;for(var $n=At.length,wn=Cn.charAt(0).toUpperCase()+Cn.slice(1),Tn;$n--;)if(Tn=At[$n]+wn,Tn in En)return Tn;return Cn}function _n(Cn){return Cn=hn(Cn),Lt[Cn]||(Lt[Cn]=vn(Cn))}function bn(Cn,En,$n){En=_n(En),Cn.style[En]=$n}return function(Cn,En){var $n=arguments,wn,Tn;if($n.length==2)for(wn in En)Tn=En[wn],Tn!==void 0&&En.hasOwnProperty(wn)&&bn(Cn,wn,Tn);else bn(Cn,$n[1],$n[2])}}();function xe(At,Lt){var hn=typeof At=="string"?At:Fe(At);return hn.indexOf(" "+Lt+" ")>=0}function Ie(At,Lt){var hn=Fe(At),vn=hn+Lt;xe(hn,Lt)||(At.className=vn.substring(1))}function Ne(At,Lt){var hn=Fe(At),vn;xe(At,Lt)&&(vn=hn.replace(" "+Lt+" "," "),At.className=vn.substring(1,vn.length-1))}function Fe(At){return(" "+(At.className||"")+" ").replace(/\s+/gi," ")}function ze(At){At&&At.parentNode&&At.parentNode.removeChild(At)}return ae})})(nprogress$1);var nprogressExports=nprogress$1.exports;const NProgress=getDefaultExportFromCjs(nprogressExports),nprogress="";NProgress.configure({easing:"ease",speed:500,showSpinner:!1,trickleSpeed:200,minimum:.3});const defaultConfig$1={timeout:1e4,headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},paramsSerializer:{serialize:lib.stringify}},to=class{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(oe){return new Promise(ae=>{to.requests.push(ie=>{oe.headers.Authorization=formatToken(ie),ae(oe)})})}httpInterceptorsRequest(){to.axiosInstance.interceptors.request.use(async oe=>(NProgress.start(),typeof oe.beforeRequestCallback=="function"?(oe.beforeRequestCallback(oe),oe):to.initConfig.beforeRequestCallback?(to.initConfig.beforeRequestCallback(oe),oe):["/refreshToken","/login"].some(ie=>oe.url.indexOf(ie)>-1)?oe:new Promise(ie=>{const le=getToken();if(le){const pe=new Date().getTime();parseInt(le.expires)-pe<=0?(to.isRefreshing||(to.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:le.refreshToken}).then(Ce=>{const $e=Ce.data.accessToken;oe.headers.Authorization=formatToken($e),to.requests.forEach(xe=>xe($e)),to.requests=[]}).finally(()=>{to.isRefreshing=!1})),ie(to.retryOriginalRequest(oe))):(oe.headers.Authorization=formatToken(le.accessToken),ie(oe))}else ie(oe)})),oe=>Promise.reject(oe))}httpInterceptorsResponse(){to.axiosInstance.interceptors.response.use(ae=>{const ie=ae.config;return NProgress.done(),typeof ie.beforeResponseCallback=="function"?(ie.beforeResponseCallback(ae),ae.data):(to.initConfig.beforeResponseCallback&&to.initConfig.beforeResponseCallback(ae),ae.data)},ae=>{const ie=ae;return ie.isCancelRequest=axios$1.isCancel(ie),NProgress.done(),Promise.reject(ie)})}request(oe,ae,ie,le){const pe={method:oe,url:ae,...ie,...le};return new Promise((_e,Ce)=>{to.axiosInstance.request(pe).then($e=>{_e($e)}).catch($e=>{Ce($e)})})}post(oe,ae,ie){return this.request("post",oe,ae,ie)}get(oe,ae,ie){return this.request("get",oe,ae,ie)}};let PureHttp=to;ao(PureHttp,"requests",[]),ao(PureHttp,"isRefreshing",!1),ao(PureHttp,"initConfig",{}),ao(PureHttp,"axiosInstance",axios$1.create(defaultConfig$1));const http=new PureHttp,getLogin=$=>http.request("post","/login",{data:$}),refreshTokenApi=$=>http.request("post","/refreshToken",{data:$}),useMultiTagsStore=defineStore({id:"pure-multiTags",state:()=>{var $,oe;return{multiTags:($=Kn().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&$.multiTagsCache?Kn().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(oe=Kn().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:oe.multiTagsCache}},getters:{getMultiTagsCache($){return $.multiTagsCache}},actions:{multiTagsCacheChange($){this.multiTagsCache=$,$?Kn().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):Kn().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache($){this.getMultiTagsCache&&Kn().setItem(`${responsiveStorageNameSpace()}tags`,$)},handleTags($,oe,ae){var ie,le,pe,_e,Ce;switch($){case"equal":this.multiTags=oe,this.tagsCache(this.multiTags);break;case"push":{const $e=oe;if((ie=$e==null?void 0:$e.meta)!=null&&ie.hiddenTag||dt($e==null?void 0:$e.name)||((le=$e==null?void 0:$e.meta)==null?void 0:le.title.length)===0||Ae((pe=$e==null?void 0:$e.meta)==null?void 0:pe.showLink)&&!((_e=$e==null?void 0:$e.meta)!=null&&_e.showLink))return;const xe=$e.path,Ie=this.multiTags.some(At=>At.path===xe),Ne=this.multiTags.some(At=>Mt(At==null?void 0:At.query,$e==null?void 0:$e.query)),Fe=this.multiTags.some(At=>Mt(At==null?void 0:At.params,$e==null?void 0:$e.params));if(Ie&&Ne&&Fe)return;const ze=((Ce=$e==null?void 0:$e.meta)==null?void 0:Ce.dynamicLevel)??-1;if(ze>0&&this.multiTags.filter(At=>(At==null?void 0:At.path)===xe).length>=ze){const At=this.multiTags.findIndex(Lt=>(Lt==null?void 0:Lt.path)===xe);At!==-1&&this.multiTags.splice(At,1)}this.multiTags.push(oe),this.tagsCache(this.multiTags)}break;case"splice":if(ae)this.multiTags.splice(ae==null?void 0:ae.startIndex,ae==null?void 0:ae.length);else{const $e=this.multiTags.findIndex(xe=>xe.path===oe);if($e===-1)return;this.multiTags.splice($e,1)}return this.tagsCache(this.multiTags),this.multiTags;case"slice":return this.multiTags.slice(-1)}}}});function useMultiTagsStoreHook(){return useMultiTagsStore(store)}const useUserStore=defineStore({id:"pure-user",state:()=>{var $,oe;return{username:(($=Qn().getItem(sessionKey))==null?void 0:$.username)??"",roles:((oe=Qn().getItem(sessionKey))==null?void 0:oe.roles)??[],verifyCode:"",currentPage:0}},actions:{SET_USERNAME($){this.username=$},SET_ROLES($){this.roles=$},SET_VERIFYCODE($){this.verifyCode=$},SET_CURRENTPAGE($){this.currentPage=$},async loginByUsername($){return new Promise((oe,ae)=>{getLogin($).then(ie=>{ie&&(setToken(ie.data),oe(ie))}).catch(ie=>{ae(ie)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken($){return new Promise((oe,ae)=>{refreshTokenApi($).then(ie=>{ie&&(setToken(ie.data),oe(ie))}).catch(ie=>{ae(ie)})})}}});function useUserStoreHook(){return useUserStore(store)}const sessionKey="user-info",TokenKey="authorized-token";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):Qn().getItem(sessionKey)}function setToken($){var _e,Ce;let oe=0;const{accessToken:ae,refreshToken:ie}=$;oe=new Date($.expires).getTime();const le=JSON.stringify({accessToken:ae,expires:oe});oe>0?api.set(TokenKey,le,{expires:(oe-Date.now())/864e5}):api.set(TokenKey,le);function pe($e,xe){useUserStoreHook().SET_USERNAME($e),useUserStoreHook().SET_ROLES(xe),Qn().setItem(sessionKey,{refreshToken:ie,expires:oe,username:$e,roles:xe})}if($.username&&$.roles){const{username:$e,roles:xe}=$;pe($e,xe)}else{const $e=((_e=Qn().getItem(sessionKey))==null?void 0:_e.username)??"",xe=((Ce=Qn().getItem(sessionKey))==null?void 0:Ce.roles)??[];pe($e,xe)}}function removeToken(){api.remove(TokenKey),sessionStorage.clear()}const formatToken=$=>"Bearer "+$;(function(){const $=fr(location.href),oe=["username","roles","accessToken"],ae=oe.length;if(Object.keys($).length!==ae)return;let ie=[],le=0;for(;le<ae;)Object.keys($).includes(oe[le])&&ie.length<=ae?ie.push(oe[le]):ie=[],le++;if(ie.length===ae){removeToken(),setToken($),delete $.roles,delete $.accessToken;const pe=`${location.origin}${location.pathname}${Xt(location.hash,"?")}?${JSON.stringify($).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(pe)}else return})();/*!
* vue-router v4.1.6
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const isBrowser$1=typeof window<"u";function isESModule($){return $.__esModule||$[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams($,oe){const ae={};for(const ie in oe){const le=oe[ie];ae[ie]=isArray$3(le)?le.map($):$(le)}return ae}const noop$2=()=>{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=$=>$.replace(TRAILING_SLASH_RE,"");function parseURL($,oe,ae="/"){let ie,le={},pe="",_e="";const Ce=oe.indexOf("#");let $e=oe.indexOf("?");return Ce<$e&&Ce>=0&&($e=-1),$e>-1&&(ie=oe.slice(0,$e),pe=oe.slice($e+1,Ce>-1?Ce:oe.length),le=$(pe)),Ce>-1&&(ie=ie||oe.slice(0,Ce),_e=oe.slice(Ce,oe.length)),ie=resolveRelativePath(ie??oe,ae),{fullPath:ie+(pe&&"?")+pe+_e,path:ie,query:le,hash:_e}}function stringifyURL($,oe){const ae=oe.query?$(oe.query):"";return oe.path+(ae&&"?")+ae+(oe.hash||"")}function stripBase($,oe){return!oe||!$.toLowerCase().startsWith(oe.toLowerCase())?$:$.slice(oe.length)||"/"}function isSameRouteLocation($,oe,ae){const ie=oe.matched.length-1,le=ae.matched.length-1;return ie>-1&&ie===le&&isSameRouteRecord(oe.matched[ie],ae.matched[le])&&isSameRouteLocationParams(oe.params,ae.params)&&$(oe.query)===$(ae.query)&&oe.hash===ae.hash}function isSameRouteRecord($,oe){return($.aliasOf||$)===(oe.aliasOf||oe)}function isSameRouteLocationParams($,oe){if(Object.keys($).length!==Object.keys(oe).length)return!1;for(const ae in $)if(!isSameRouteLocationParamsValue($[ae],oe[ae]))return!1;return!0}function isSameRouteLocationParamsValue($,oe){return isArray$3($)?isEquivalentArray($,oe):isArray$3(oe)?isEquivalentArray(oe,$):$===oe}function isEquivalentArray($,oe){return isArray$3(oe)?$.length===oe.length&&$.every((ae,ie)=>ae===oe[ie]):$.length===1&&$[0]===oe}function resolveRelativePath($,oe){if($.startsWith("/"))return $;if(!$)return oe;const ae=oe.split("/"),ie=$.split("/");let le=ae.length-1,pe,_e;for(pe=0;pe<ie.length;pe++)if(_e=ie[pe],_e!==".")if(_e==="..")le>1&&le--;else break;return ae.slice(0,le).join("/")+"/"+ie.slice(pe-(pe===ie.length?1:0)).join("/")}var NavigationType;(function($){$.pop="pop",$.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function($){$.back="back",$.forward="forward",$.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase($){if(!$)if(isBrowser$1){const oe=document.querySelector("base");$=oe&&oe.getAttribute("href")||"/",$=$.replace(/^\w+:\/\/[^\/]+/,"")}else $="/";return $[0]!=="/"&&$[0]!=="#"&&($="/"+$),removeTrailingSlash($)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref($,oe){return $.replace(BEFORE_HASH_RE,"#")+oe}function getElementPosition($,oe){const ae=document.documentElement.getBoundingClientRect(),ie=$.getBoundingClientRect();return{behavior:oe.behavior,left:ie.left-ae.left-(oe.left||0),top:ie.top-ae.top-(oe.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition($){let oe;if("el"in $){const ae=$.el,ie=typeof ae=="string"&&ae.startsWith("#"),le=typeof ae=="string"?ie?document.getElementById(ae.slice(1)):document.querySelector(ae):ae;if(!le)return;oe=getElementPosition(le,$)}else oe=$;"scrollBehavior"in document.documentElement.style?window.scrollTo(oe):window.scrollTo(oe.left!=null?oe.left:window.pageXOffset,oe.top!=null?oe.top:window.pageYOffset)}function getScrollKey($,oe){return(history.state?history.state.position-oe:-1)+$}const scrollPositions=new Map;function saveScrollPosition($,oe){scrollPositions.set($,oe)}function getSavedScrollPosition($){const oe=scrollPositions.get($);return scrollPositions.delete($),oe}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation($,oe){const{pathname:ae,search:ie,hash:le}=oe,pe=$.indexOf("#");if(pe>-1){let Ce=le.includes($.slice(pe))?$.slice(pe).length:1,$e=le.slice(Ce);return $e[0]!=="/"&&($e="/"+$e),stripBase($e,"")}return stripBase(ae,$)+ie+le}function useHistoryListeners($,oe,ae,ie){let le=[],pe=[],_e=null;const Ce=({state:Fe})=>{const ze=createCurrentLocation($,location),At=ae.value,Lt=oe.value;let hn=0;if(Fe){if(ae.value=ze,oe.value=Fe,_e&&_e===At){_e=null;return}hn=Lt?Fe.position-Lt.position:0}else ie(ze);le.forEach(vn=>{vn(ae.value,At,{delta:hn,type:NavigationType.pop,direction:hn?hn>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function $e(){_e=ae.value}function xe(Fe){le.push(Fe);const ze=()=>{const At=le.indexOf(Fe);At>-1&&le.splice(At,1)};return pe.push(ze),ze}function Ie(){const{history:Fe}=window;Fe.state&&Fe.replaceState(assign({},Fe.state,{scroll:computeScrollPosition()}),"")}function Ne(){for(const Fe of pe)Fe();pe=[],window.removeEventListener("popstate",Ce),window.removeEventListener("beforeunload",Ie)}return window.addEventListener("popstate",Ce),window.addEventListener("beforeunload",Ie),{pauseListeners:$e,listen:xe,destroy:Ne}}function buildState($,oe,ae,ie=!1,le=!1){return{back:$,current:oe,forward:ae,replaced:ie,position:window.history.length,scroll:le?computeScrollPosition():null}}function useHistoryStateNavigation($){const{history:oe,location:ae}=window,ie={value:createCurrentLocation($,ae)},le={value:oe.state};le.value||pe(ie.value,{back:null,current:ie.value,forward:null,position:oe.length-1,replaced:!0,scroll:null},!0);function pe($e,xe,Ie){const Ne=$.indexOf("#"),Fe=Ne>-1?(ae.host&&document.querySelector("base")?$:$.slice(Ne))+$e:createBaseLocation()+$+$e;try{oe[Ie?"replaceState":"pushState"](xe,"",Fe),le.value=xe}catch(ze){console.error(ze),ae[Ie?"replace":"assign"](Fe)}}function _e($e,xe){const Ie=assign({},oe.state,buildState(le.value.back,$e,le.value.forward,!0),xe,{position:le.value.position});pe($e,Ie,!0),ie.value=$e}function Ce($e,xe){const Ie=assign({},le.value,oe.state,{forward:$e,scroll:computeScrollPosition()});pe(Ie.current,Ie,!0);const Ne=assign({},buildState(ie.value,$e,null),{position:Ie.position+1},xe);pe($e,Ne,!1),ie.value=$e}return{location:ie,state:le,push:Ce,replace:_e}}function createWebHistory($){$=normalizeBase($);const oe=useHistoryStateNavigation($),ae=useHistoryListeners($,oe.state,oe.location,oe.replace);function ie(pe,_e=!0){_e||ae.pauseListeners(),history.go(pe)}const le=assign({location:"",base:$,go:ie,createHref:createHref.bind(null,$)},oe,ae);return Object.defineProperty(le,"location",{enumerable:!0,get:()=>oe.location.value}),Object.defineProperty(le,"state",{enumerable:!0,get:()=>oe.state.value}),le}function createWebHashHistory($){return $=location.host?$||location.pathname+location.search:"",$.includes("#")||($+="#"),createWebHistory($)}function isRouteLocation($){return typeof $=="string"||$&&typeof $=="object"}function isRouteName($){return typeof $=="string"||typeof $=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function($){$[$.aborted=4]="aborted",$[$.cancelled=8]="cancelled",$[$.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError($,oe){return assign(new Error,{type:$,[NavigationFailureSymbol]:!0},oe)}function isNavigationFailure($,oe){return $ instanceof Error&&NavigationFailureSymbol in $&&(oe==null||!!($.type&oe))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser($,oe){const ae=assign({},BASE_PATH_PARSER_OPTIONS,oe),ie=[];let le=ae.start?"^":"";const pe=[];for(const xe of $){const Ie=xe.length?[]:[90];ae.strict&&!xe.length&&(le+="/");for(let Ne=0;Ne<xe.length;Ne++){const Fe=xe[Ne];let ze=40+(ae.sensitive?.25:0);if(Fe.type===0)Ne||(le+="/"),le+=Fe.value.replace(REGEX_CHARS_RE,"\\$&"),ze+=40;else if(Fe.type===1){const{value:At,repeatable:Lt,optional:hn,regexp:vn}=Fe;pe.push({name:At,repeatable:Lt,optional:hn});const _n=vn||BASE_PARAM_PATTERN;if(_n!==BASE_PARAM_PATTERN){ze+=10;try{new RegExp(`(${_n})`)}catch(Cn){throw new Error(`Invalid custom RegExp for param "${At}" (${_n}): `+Cn.message)}}let bn=Lt?`((?:${_n})(?:/(?:${_n}))*)`:`(${_n})`;Ne||(bn=hn&&xe.length<2?`(?:/${bn})`:"/"+bn),hn&&(bn+="?"),le+=bn,ze+=20,hn&&(ze+=-8),Lt&&(ze+=-20),_n===".*"&&(ze+=-50)}Ie.push(ze)}ie.push(Ie)}if(ae.strict&&ae.end){const xe=ie.length-1;ie[xe][ie[xe].length-1]+=.7000000000000001}ae.strict||(le+="/?"),ae.end?le+="$":ae.strict&&(le+="(?:/|$)");const _e=new RegExp(le,ae.sensitive?"":"i");function Ce(xe){const Ie=xe.match(_e),Ne={};if(!Ie)return null;for(let Fe=1;Fe<Ie.length;Fe++){const ze=Ie[Fe]||"",At=pe[Fe-1];Ne[At.name]=ze&&At.repeatable?ze.split("/"):ze}return Ne}function $e(xe){let Ie="",Ne=!1;for(const Fe of $){(!Ne||!Ie.endsWith("/"))&&(Ie+="/"),Ne=!1;for(const ze of Fe)if(ze.type===0)Ie+=ze.value;else if(ze.type===1){const{value:At,repeatable:Lt,optional:hn}=ze,vn=At in xe?xe[At]:"";if(isArray$3(vn)&&!Lt)throw new Error(`Provided param "${At}" is an array but it is not repeatable (* or + modifiers)`);const _n=isArray$3(vn)?vn.join("/"):vn;if(!_n)if(hn)Fe.length<2&&(Ie.endsWith("/")?Ie=Ie.slice(0,-1):Ne=!0);else throw new Error(`Missing required param "${At}"`);Ie+=_n}}return Ie||"/"}return{re:_e,score:ie,keys:pe,parse:Ce,stringify:$e}}function compareScoreArray($,oe){let ae=0;for(;ae<$.length&&ae<oe.length;){const ie=oe[ae]-$[ae];if(ie)return ie;ae++}return $.length<oe.length?$.length===1&&$[0]===40+40?-1:1:$.length>oe.length?oe.length===1&&oe[0]===40+40?1:-1:0}function comparePathParserScore($,oe){let ae=0;const ie=$.score,le=oe.score;for(;ae<ie.length&&ae<le.length;){const pe=compareScoreArray(ie[ae],le[ae]);if(pe)return pe;ae++}if(Math.abs(le.length-ie.length)===1){if(isLastScoreNegative(ie))return 1;if(isLastScoreNegative(le))return-1}return le.length-ie.length}function isLastScoreNegative($){const oe=$[$.length-1];return $.length>0&&oe[oe.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath($){if(!$)return[[]];if($==="/")return[[ROOT_TOKEN]];if(!$.startsWith("/"))throw new Error(`Invalid path "${$}"`);function oe(ze){throw new Error(`ERR (${ae})/"${xe}": ${ze}`)}let ae=0,ie=ae;const le=[];let pe;function _e(){pe&&le.push(pe),pe=[]}let Ce=0,$e,xe="",Ie="";function Ne(){xe&&(ae===0?pe.push({type:0,value:xe}):ae===1||ae===2||ae===3?(pe.length>1&&($e==="*"||$e==="+")&&oe(`A repeatable param (${xe}) must be alone in its segment. eg: '/:ids+.`),pe.push({type:1,value:xe,regexp:Ie,repeatable:$e==="*"||$e==="+",optional:$e==="*"||$e==="?"})):oe("Invalid state to consume buffer"),xe="")}function Fe(){xe+=$e}for(;Ce<$.length;){if($e=$[Ce++],$e==="\\"&&ae!==2){ie=ae,ae=4;continue}switch(ae){case 0:$e==="/"?(xe&&Ne(),_e()):$e===":"?(Ne(),ae=1):Fe();break;case 4:Fe(),ae=ie;break;case 1:$e==="("?ae=2:VALID_PARAM_RE.test($e)?Fe():(Ne(),ae=0,$e!=="*"&&$e!=="?"&&$e!=="+"&&Ce--);break;case 2:$e===")"?Ie[Ie.length-1]=="\\"?Ie=Ie.slice(0,-1)+$e:ae=3:Ie+=$e;break;case 3:Ne(),ae=0,$e!=="*"&&$e!=="?"&&$e!=="+"&&Ce--,Ie="";break;default:oe("Unknown state");break}}return ae===2&&oe(`Unfinished custom RegExp for param "${xe}"`),Ne(),_e(),le}function createRouteRecordMatcher($,oe,ae){const ie=tokensToParser(tokenizePath($.path),ae),le=assign(ie,{record:$,parent:oe,children:[],alias:[]});return oe&&!le.record.aliasOf==!oe.record.aliasOf&&oe.children.push(le),le}function createRouterMatcher($,oe){const ae=[],ie=new Map;oe=mergeOptions({strict:!1,end:!0,sensitive:!1},oe);function le(Ie){return ie.get(Ie)}function pe(Ie,Ne,Fe){const ze=!Fe,At=normalizeRouteRecord(Ie);At.aliasOf=Fe&&Fe.record;const Lt=mergeOptions(oe,Ie),hn=[At];if("alias"in Ie){const bn=typeof Ie.alias=="string"?[Ie.alias]:Ie.alias;for(const Cn of bn)hn.push(assign({},At,{components:Fe?Fe.record.components:At.components,path:Cn,aliasOf:Fe?Fe.record:At}))}let vn,_n;for(const bn of hn){const{path:Cn}=bn;if(Ne&&Cn[0]!=="/"){const En=Ne.record.path,$n=En[En.length-1]==="/"?"":"/";bn.path=Ne.record.path+(Cn&&$n+Cn)}if(vn=createRouteRecordMatcher(bn,Ne,Lt),Fe?Fe.alias.push(vn):(_n=_n||vn,_n!==vn&&_n.alias.push(vn),ze&&Ie.name&&!isAliasRecord(vn)&&_e(Ie.name)),At.children){const En=At.children;for(let $n=0;$n<En.length;$n++)pe(En[$n],vn,Fe&&Fe.children[$n])}Fe=Fe||vn,(vn.record.components&&Object.keys(vn.record.components).length||vn.record.name||vn.record.redirect)&&$e(vn)}return _n?()=>{_e(_n)}:noop$2}function _e(Ie){if(isRouteName(Ie)){const Ne=ie.get(Ie);Ne&&(ie.delete(Ie),ae.splice(ae.indexOf(Ne),1),Ne.children.forEach(_e),Ne.alias.forEach(_e))}else{const Ne=ae.indexOf(Ie);Ne>-1&&(ae.splice(Ne,1),Ie.record.name&&ie.delete(Ie.record.name),Ie.children.forEach(_e),Ie.alias.forEach(_e))}}function Ce(){return ae}function $e(Ie){let Ne=0;for(;Ne<ae.length&&comparePathParserScore(Ie,ae[Ne])>=0&&(Ie.record.path!==ae[Ne].record.path||!isRecordChildOf(Ie,ae[Ne]));)Ne++;ae.splice(Ne,0,Ie),Ie.record.name&&!isAliasRecord(Ie)&&ie.set(Ie.record.name,Ie)}function xe(Ie,Ne){let Fe,ze={},At,Lt;if("name"in Ie&&Ie.name){if(Fe=ie.get(Ie.name),!Fe)throw createRouterError(1,{location:Ie});Lt=Fe.record.name,ze=assign(paramsFromLocation(Ne.params,Fe.keys.filter(_n=>!_n.optional).map(_n=>_n.name)),Ie.params&&paramsFromLocation(Ie.params,Fe.keys.map(_n=>_n.name))),At=Fe.stringify(ze)}else if("path"in Ie)At=Ie.path,Fe=ae.find(_n=>_n.re.test(At)),Fe&&(ze=Fe.parse(At),Lt=Fe.record.name);else{if(Fe=Ne.name?ie.get(Ne.name):ae.find(_n=>_n.re.test(Ne.path)),!Fe)throw createRouterError(1,{location:Ie,currentLocation:Ne});Lt=Fe.record.name,ze=assign({},Ne.params,Ie.params),At=Fe.stringify(ze)}const hn=[];let vn=Fe;for(;vn;)hn.unshift(vn.record),vn=vn.parent;return{name:Lt,path:At,params:ze,matched:hn,meta:mergeMetaFields(hn)}}return $.forEach(Ie=>pe(Ie)),{addRoute:pe,resolve:xe,removeRoute:_e,getRoutes:Ce,getRecordMatcher:le}}function paramsFromLocation($,oe){const ae={};for(const ie of oe)ie in $&&(ae[ie]=$[ie]);return ae}function normalizeRouteRecord($){return{path:$.path,redirect:$.redirect,name:$.name,meta:$.meta||{},aliasOf:void 0,beforeEnter:$.beforeEnter,props:normalizeRecordProps($),children:$.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in $?$.components||null:$.component&&{default:$.component}}}function normalizeRecordProps($){const oe={},ae=$.props||!1;if("component"in $)oe.default=ae;else for(const ie in $.components)oe[ie]=typeof ae=="boolean"?ae:ae[ie];return oe}function isAliasRecord($){for(;$;){if($.record.aliasOf)return!0;$=$.parent}return!1}function mergeMetaFields($){return $.reduce((oe,ae)=>assign(oe,ae.meta),{})}function mergeOptions($,oe){const ae={};for(const ie in $)ae[ie]=ie in oe?oe[ie]:$[ie];return ae}function isRecordChildOf($,oe){return oe.children.some(ae=>ae===$||isRecordChildOf($,ae))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode($){return encodeURI(""+$).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash($){return commonEncode($).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue($){return commonEncode($).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey($){return encodeQueryValue($).replace(EQUAL_RE,"%3D")}function encodePath($){return commonEncode($).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam($){return $==null?"":encodePath($).replace(SLASH_RE,"%2F")}function decode$1($){try{return decodeURIComponent(""+$)}catch{}return""+$}function parseQuery($){const oe={};if($===""||$==="?")return oe;const ie=($[0]==="?"?$.slice(1):$).split("&");for(let le=0;le<ie.length;++le){const pe=ie[le].replace(PLUS_RE," "),_e=pe.indexOf("="),Ce=decode$1(_e<0?pe:pe.slice(0,_e)),$e=_e<0?null:decode$1(pe.slice(_e+1));if(Ce in oe){let xe=oe[Ce];isArray$3(xe)||(xe=oe[Ce]=[xe]),xe.push($e)}else oe[Ce]=$e}return oe}function stringifyQuery($){let oe="";for(let ae in $){const ie=$[ae];if(ae=encodeQueryKey(ae),ie==null){ie!==void 0&&(oe+=(oe.length?"&":"")+ae);continue}(isArray$3(ie)?ie.map(pe=>pe&&encodeQueryValue(pe)):[ie&&encodeQueryValue(ie)]).forEach(pe=>{pe!==void 0&&(oe+=(oe.length?"&":"")+ae,pe!=null&&(oe+="="+pe))})}return oe}function normalizeQuery($){const oe={};for(const ae in $){const ie=$[ae];ie!==void 0&&(oe[ae]=isArray$3(ie)?ie.map(le=>le==null?null:""+le):ie==null?ie:""+ie)}return oe}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let $=[];function oe(ie){return $.push(ie),()=>{const le=$.indexOf(ie);le>-1&&$.splice(le,1)}}function ae(){$=[]}return{add:oe,list:()=>$,reset:ae}}function guardToPromiseFn($,oe,ae,ie,le){const pe=ie&&(ie.enterCallbacks[le]=ie.enterCallbacks[le]||[]);return()=>new Promise((_e,Ce)=>{const $e=Ne=>{Ne===!1?Ce(createRouterError(4,{from:ae,to:oe})):Ne instanceof Error?Ce(Ne):isRouteLocation(Ne)?Ce(createRouterError(2,{from:oe,to:Ne})):(pe&&ie.enterCallbacks[le]===pe&&typeof Ne=="function"&&pe.push(Ne),_e())},xe=$.call(ie&&ie.instances[le],oe,ae,$e);let Ie=Promise.resolve(xe);$.length<3&&(Ie=Ie.then($e)),Ie.catch(Ne=>Ce(Ne))})}function extractComponentsGuards($,oe,ae,ie){const le=[];for(const pe of $)for(const _e in pe.components){let Ce=pe.components[_e];if(!(oe!=="beforeRouteEnter"&&!pe.instances[_e]))if(isRouteComponent(Ce)){const xe=(Ce.__vccOpts||Ce)[oe];xe&&le.push(guardToPromiseFn(xe,ae,ie,pe,_e))}else{let $e=Ce();le.push(()=>$e.then(xe=>{if(!xe)return Promise.reject(new Error(`Couldn't resolve component "${_e}" at "${pe.path}"`));const Ie=isESModule(xe)?xe.default:xe;pe.components[_e]=Ie;const Fe=(Ie.__vccOpts||Ie)[oe];return Fe&&guardToPromiseFn(Fe,ae,ie,pe,_e)()}))}}return le}function isRouteComponent($){return typeof $=="object"||"displayName"in $||"props"in $||"__vccOpts"in $}function useLink($){const oe=inject(routerKey),ae=inject(routeLocationKey),ie=computed(()=>oe.resolve(unref($.to))),le=computed(()=>{const{matched:$e}=ie.value,{length:xe}=$e,Ie=$e[xe-1],Ne=ae.matched;if(!Ie||!Ne.length)return-1;const Fe=Ne.findIndex(isSameRouteRecord.bind(null,Ie));if(Fe>-1)return Fe;const ze=getOriginalPath($e[xe-2]);return xe>1&&getOriginalPath(Ie)===ze&&Ne[Ne.length-1].path!==ze?Ne.findIndex(isSameRouteRecord.bind(null,$e[xe-2])):Fe}),pe=computed(()=>le.value>-1&&includesParams(ae.params,ie.value.params)),_e=computed(()=>le.value>-1&&le.value===ae.matched.length-1&&isSameRouteLocationParams(ae.params,ie.value.params));function Ce($e={}){return guardEvent($e)?oe[unref($.replace)?"replace":"push"](unref($.to)).catch(noop$2):Promise.resolve()}return{route:ie,href:computed(()=>ie.value.href),isActive:pe,isExactActive:_e,navigate:Ce}}const RouterLinkImpl=defineComponent({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink,setup($,{slots:oe}){const ae=reactive(useLink($)),{options:ie}=inject(routerKey),le=computed(()=>({[getLinkClass($.activeClass,ie.linkActiveClass,"router-link-active")]:ae.isActive,[getLinkClass($.exactActiveClass,ie.linkExactActiveClass,"router-link-exact-active")]:ae.isExactActive}));return()=>{const pe=oe.default&&oe.default(ae);return $.custom?pe:h$3("a",{"aria-current":ae.isExactActive?$.ariaCurrentValue:null,href:ae.href,onClick:ae.navigate,class:le.value},pe)}}}),RouterLink=RouterLinkImpl;function guardEvent($){if(!($.metaKey||$.altKey||$.ctrlKey||$.shiftKey)&&!$.defaultPrevented&&!($.button!==void 0&&$.button!==0)){if($.currentTarget&&$.currentTarget.getAttribute){const oe=$.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(oe))return}return $.preventDefault&&$.preventDefault(),!0}}function includesParams($,oe){for(const ae in oe){const ie=oe[ae],le=$[ae];if(typeof ie=="string"){if(ie!==le)return!1}else if(!isArray$3(le)||le.length!==ie.length||ie.some((pe,_e)=>pe!==le[_e]))return!1}return!0}function getOriginalPath($){return $?$.aliasOf?$.aliasOf.path:$.path:""}const getLinkClass=($,oe,ae)=>$??oe??ae,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup($,{attrs:oe,slots:ae}){const ie=inject(routerViewLocationKey),le=computed(()=>$.route||ie.value),pe=inject(viewDepthKey,0),_e=computed(()=>{let xe=unref(pe);const{matched:Ie}=le.value;let Ne;for(;(Ne=Ie[xe])&&!Ne.components;)xe++;return xe}),Ce=computed(()=>le.value.matched[_e.value]);provide(viewDepthKey,computed(()=>_e.value+1)),provide(matchedRouteKey,Ce),provide(routerViewLocationKey,le);const $e=ref();return watch(()=>[$e.value,Ce.value,$.name],([xe,Ie,Ne],[Fe,ze,At])=>{Ie&&(Ie.instances[Ne]=xe,ze&&ze!==Ie&&xe&&xe===Fe&&(Ie.leaveGuards.size||(Ie.leaveGuards=ze.leaveGuards),Ie.updateGuards.size||(Ie.updateGuards=ze.updateGuards))),xe&&Ie&&(!ze||!isSameRouteRecord(Ie,ze)||!Fe)&&(Ie.enterCallbacks[Ne]||[]).forEach(Lt=>Lt(xe))},{flush:"post"}),()=>{const xe=le.value,Ie=$.name,Ne=Ce.value,Fe=Ne&&Ne.components[Ie];if(!Fe)return normalizeSlot(ae.default,{Component:Fe,route:xe});const ze=Ne.props[Ie],At=ze?ze===!0?xe.params:typeof ze=="function"?ze(xe):ze:null,hn=h$3(Fe,assign({},At,oe,{onVnodeUnmounted:vn=>{vn.component.isUnmounted&&(Ne.instances[Ie]=null)},ref:$e}));return normalizeSlot(ae.default,{Component:hn,route:xe})||hn}}});function normalizeSlot($,oe){if(!$)return null;const ae=$(oe);return ae.length===1?ae[0]:ae}const RouterView=RouterViewImpl;function createRouter($){const oe=createRouterMatcher($.routes,$),ae=$.parseQuery||parseQuery,ie=$.stringifyQuery||stringifyQuery,le=$.history,pe=useCallbacks(),_e=useCallbacks(),Ce=useCallbacks(),$e=shallowRef(START_LOCATION_NORMALIZED);let xe=START_LOCATION_NORMALIZED;isBrowser$1&&$.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const Ie=applyToParams.bind(null,nr=>""+nr),Ne=applyToParams.bind(null,encodeParam),Fe=applyToParams.bind(null,decode$1);function ze(nr,er){let rr,qn;return isRouteName(nr)?(rr=oe.getRecordMatcher(nr),qn=er):qn=nr,oe.addRoute(qn,rr)}function At(nr){const er=oe.getRecordMatcher(nr);er&&oe.removeRoute(er)}function Lt(){return oe.getRoutes().map(nr=>nr.record)}function hn(nr){return!!oe.getRecordMatcher(nr)}function vn(nr,er){if(er=assign({},er||$e.value),typeof nr=="string"){const Un=parseURL(ae,nr,er.path),tr=oe.resolve({path:Un.path},er),ur=le.createHref(Un.fullPath);return assign(Un,tr,{params:Fe(tr.params),hash:decode$1(Un.hash),redirectedFrom:void 0,href:ur})}let rr;if("path"in nr)rr=assign({},nr,{path:parseURL(ae,nr.path,er.path).path});else{const Un=assign({},nr.params);for(const tr in Un)Un[tr]==null&&delete Un[tr];rr=assign({},nr,{params:Ne(nr.params)}),er.params=Ne(er.params)}const qn=oe.resolve(rr,er),Yn=nr.hash||"";qn.params=Ie(Fe(qn.params));const ar=stringifyURL(ie,assign({},nr,{hash:encodeHash(Yn),path:qn.path})),pr=le.createHref(ar);return assign({fullPath:ar,hash:Yn,query:ie===stringifyQuery?normalizeQuery(nr.query):nr.query||{}},qn,{redirectedFrom:void 0,href:pr})}function _n(nr){return typeof nr=="string"?parseURL(ae,nr,$e.value.path):assign({},nr)}function bn(nr,er){if(xe!==nr)return createRouterError(8,{from:er,to:nr})}function Cn(nr){return wn(nr)}function En(nr){return Cn(assign(_n(nr),{replace:!0}))}function $n(nr){const er=nr.matched[nr.matched.length-1];if(er&&er.redirect){const{redirect:rr}=er;let qn=typeof rr=="function"?rr(nr):rr;return typeof qn=="string"&&(qn=qn.includes("?")||qn.includes("#")?qn=_n(qn):{path:qn},qn.params={}),assign({query:nr.query,hash:nr.hash,params:"path"in qn?{}:nr.params},qn)}}function wn(nr,er){const rr=xe=vn(nr),qn=$e.value,Yn=nr.state,ar=nr.force,pr=nr.replace===!0,Un=$n(rr);if(Un)return wn(assign(_n(Un),{state:typeof Un=="object"?assign({},Yn,Un.state):Yn,force:ar,replace:pr}),er||rr);const tr=rr;tr.redirectedFrom=er;let ur;return!ar&&isSameRouteLocation(ie,qn,rr)&&(ur=createRouterError(16,{to:tr,from:qn}),jn(qn,qn,!0,!1)),(ur?Promise.resolve(ur):xn(tr,qn)).catch(_r=>isNavigationFailure(_r)?isNavigationFailure(_r,2)?_r:Vn(_r):Mn(_r,tr,qn)).then(_r=>{if(_r){if(isNavigationFailure(_r,2))return wn(assign({replace:pr},_n(_r.to),{state:typeof _r.to=="object"?assign({},Yn,_r.to.state):Yn,force:ar}),er||tr)}else _r=An(tr,qn,!0,pr,Yn);return kn(tr,qn,_r),_r})}function Tn(nr,er){const rr=bn(nr,er);return rr?Promise.reject(rr):Promise.resolve()}function xn(nr,er){let rr;const[qn,Yn,ar]=extractChangingRecords(nr,er);rr=extractComponentsGuards(qn.reverse(),"beforeRouteLeave",nr,er);for(const Un of qn)Un.leaveGuards.forEach(tr=>{rr.push(guardToPromiseFn(tr,nr,er))});const pr=Tn.bind(null,nr,er);return rr.push(pr),runGuardQueue(rr).then(()=>{rr=[];for(const Un of pe.list())rr.push(guardToPromiseFn(Un,nr,er));return rr.push(pr),runGuardQueue(rr)}).then(()=>{rr=extractComponentsGuards(Yn,"beforeRouteUpdate",nr,er);for(const Un of Yn)Un.updateGuards.forEach(tr=>{rr.push(guardToPromiseFn(tr,nr,er))});return rr.push(pr),runGuardQueue(rr)}).then(()=>{rr=[];for(const Un of nr.matched)if(Un.beforeEnter&&!er.matched.includes(Un))if(isArray$3(Un.beforeEnter))for(const tr of Un.beforeEnter)rr.push(guardToPromiseFn(tr,nr,er));else rr.push(guardToPromiseFn(Un.beforeEnter,nr,er));return rr.push(pr),runGuardQueue(rr)}).then(()=>(nr.matched.forEach(Un=>Un.enterCallbacks={}),rr=extractComponentsGuards(ar,"beforeRouteEnter",nr,er),rr.push(pr),runGuardQueue(rr))).then(()=>{rr=[];for(const Un of _e.list())rr.push(guardToPromiseFn(Un,nr,er));return rr.push(pr),runGuardQueue(rr)}).catch(Un=>isNavigationFailure(Un,8)?Un:Promise.reject(Un))}function kn(nr,er,rr){for(const qn of Ce.list())qn(nr,er,rr)}function An(nr,er,rr,qn,Yn){const ar=bn(nr,er);if(ar)return ar;const pr=er===START_LOCATION_NORMALIZED,Un=isBrowser$1?history.state:{};rr&&(qn||pr?le.replace(nr.fullPath,assign({scroll:pr&&Un&&Un.scroll},Yn)):le.push(nr.fullPath,Yn)),$e.value=nr,jn(nr,er,rr,pr),Vn()}let On;function Nn(){On||(On=le.listen((nr,er,rr)=>{if(!cr.listening)return;const qn=vn(nr),Yn=$n(qn);if(Yn){wn(assign(Yn,{replace:!0}),qn).catch(noop$2);return}xe=qn;const ar=$e.value;isBrowser$1&&saveScrollPosition(getScrollKey(ar.fullPath,rr.delta),computeScrollPosition()),xn(qn,ar).catch(pr=>isNavigationFailure(pr,12)?pr:isNavigationFailure(pr,2)?(wn(pr.to,qn).then(Un=>{isNavigationFailure(Un,20)&&!rr.delta&&rr.type===NavigationType.pop&&le.go(-1,!1)}).catch(noop$2),Promise.reject()):(rr.delta&&le.go(-rr.delta,!1),Mn(pr,qn,ar))).then(pr=>{pr=pr||An(qn,ar,!1),pr&&(rr.delta&&!isNavigationFailure(pr,8)?le.go(-rr.delta,!1):rr.type===NavigationType.pop&&isNavigationFailure(pr,20)&&le.go(-1,!1)),kn(qn,ar,pr)}).catch(noop$2)}))}let Rn=useCallbacks(),zn=useCallbacks(),Bn;function Mn(nr,er,rr){Vn(nr);const qn=zn.list();return qn.length?qn.forEach(Yn=>Yn(nr,er,rr)):console.error(nr),Promise.reject(nr)}function Fn(){return Bn&&$e.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((nr,er)=>{Rn.add([nr,er])})}function Vn(nr){return Bn||(Bn=!nr,Nn(),Rn.list().forEach(([er,rr])=>nr?rr(nr):er()),Rn.reset()),nr}function jn(nr,er,rr,qn){const{scrollBehavior:Yn}=$;if(!isBrowser$1||!Yn)return Promise.resolve();const ar=!rr&&getSavedScrollPosition(getScrollKey(nr.fullPath,0))||(qn||!rr)&&history.state&&history.state.scroll||null;return nextTick().then(()=>Yn(nr,er,ar)).then(pr=>pr&&scrollToPosition(pr)).catch(pr=>Mn(pr,nr,er))}const Zn=nr=>le.go(nr);let Gn;const Xn=new Set,cr={currentRoute:$e,listening:!0,addRoute:ze,removeRoute:At,hasRoute:hn,getRoutes:Lt,resolve:vn,options:$,push:Cn,replace:En,go:Zn,back:()=>Zn(-1),forward:()=>Zn(1),beforeEach:pe.add,beforeResolve:_e.add,afterEach:Ce.add,onError:zn.add,isReady:Fn,install(nr){const er=this;nr.component("RouterLink",RouterLink),nr.component("RouterView",RouterView),nr.config.globalProperties.$router=er,Object.defineProperty(nr.config.globalProperties,"$route",{enumerable:!0,get:()=>unref($e)}),isBrowser$1&&!Gn&&$e.value===START_LOCATION_NORMALIZED&&(Gn=!0,Cn(le.location).catch(Yn=>{}));const rr={};for(const Yn in START_LOCATION_NORMALIZED)rr[Yn]=computed(()=>$e.value[Yn]);nr.provide(routerKey,er),nr.provide(routeLocationKey,reactive(rr)),nr.provide(routerViewLocationKey,$e);const qn=nr.unmount;Xn.add(nr),nr.unmount=function(){Xn.delete(nr),Xn.size<1&&(xe=START_LOCATION_NORMALIZED,On&&On(),On=null,$e.value=START_LOCATION_NORMALIZED,Gn=!1,Bn=!1),qn()}}};return cr}function runGuardQueue($){return $.reduce((oe,ae)=>oe.then(()=>ae()),Promise.resolve())}function extractChangingRecords($,oe){const ae=[],ie=[],le=[],pe=Math.max(oe.matched.length,$.matched.length);for(let _e=0;_e<pe;_e++){const Ce=oe.matched[_e];Ce&&($.matched.find(xe=>isSameRouteRecord(xe,Ce))?ie.push(Ce):ae.push(Ce));const $e=$.matched[_e];$e&&(oe.matched.find(xe=>isSameRouteRecord(xe,$e))||le.push($e))}return[ae,ie,le]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const extractPathList=$=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];const oe=[];for(const ae of $)ae.children&&ae.children.length>0&&extractPathList(ae.children),oe.push(ae.uniqueId);return oe},deleteChildren=($,oe=[])=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const[ae,ie]of $.entries())ie.children&&ie.children.length===1&&delete ie.children,ie.id=ae,ie.parentId=oe.length?oe[oe.length-1]:null,ie.pathList=[...oe,ie.id],ie.uniqueId=ie.pathList.length>1?ie.pathList.join("-"):ie.pathList[0],ie.children&&ie.children.length>0&&deleteChildren(ie.children,ie.pathList);return $},buildHierarchyTree=($,oe=[])=>{if(!Array.isArray($))return console.warn("tree must be an array"),[];if(!$||$.length===0)return[];for(const[ae,ie]of $.entries())ie.id=ae,ie.parentId=oe.length?oe[oe.length-1]:null,ie.pathList=[...oe,ie.id],ie.children&&ie.children.length>0&&buildHierarchyTree(ie.children,ie.pathList);return $},getNodeByUniqueId=($,oe)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];const ae=$.find(le=>le.uniqueId===oe);if(ae)return ae;const ie=$.filter(le=>le.children).map(le=>le.children).flat(1);return getNodeByUniqueId(ie,oe)},appendFieldByUniqueId=($,oe,ae)=>{if(!Array.isArray($))return console.warn("menuTree must be an array"),[];if(!$||$.length===0)return[];for(const ie of $){const le=ie.children&&ie.children.length>0;ie.uniqueId===oe&&Object.prototype.toString.call(ae)==="[object Object]"&&Object.assign(ie,ae),le&&appendFieldByUniqueId(ie.children,oe,ae)}return $},handleTree=($,oe,ae,ie)=>{if(!Array.isArray($))return console.warn("data must be an array"),[];const le={id:oe||"id",parentId:ae||"parentId",childrenList:ie||"children"},pe={},_e={},Ce=[];for(const xe of $){const Ie=xe[le.parentId];pe[Ie]==null&&(pe[Ie]=[]),_e[xe[le.id]]=xe,pe[Ie].push(xe)}for(const xe of $){const Ie=xe[le.parentId];_e[Ie]==null&&Ce.push(xe)}for(const xe of Ce)$e(xe);function $e(xe){if(pe[xe[le.id]]!==null&&(xe[le.childrenList]=pe[xe[le.id]]),xe[le.childrenList])for(const Ie of xe[le.childrenList])$e(Ie)}return Ce},getAsyncRoutes=()=>http.request("get","/getAsyncRoutes"),IFrame=()=>__vitePreload(()=>import("./frameView-17abd35a.js"),["static/js/frameView-17abd35a.js","static/css/frameView-ed080731.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode-7cfa344e.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader-c5c3f147.js"),["static/js/cascader-c5c3f147.js","static/css/cascader-843853c0.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce-27797450.js"),["static/js/debounce-27797450.js","static/js/message-ac5811da.js"]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download-82053b96.js"),[]),"/src/views/able/execl.vue":()=>__vitePreload(()=>import("./execl-48f63f3f.js"),["static/js/execl-48f63f3f.js","static/js/xlsx-e927f539.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select-1e86bdde.js"),["static/js/icon-select-1e86bdde.js","static/css/icon-select-f6ac52ad.css"]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll-7fd0a6d1.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree-f3ff15d7.js"),["static/js/line-tree-f3ff15d7.js","static/css/line-tree-970a113a.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree-a38122a5.js"),["static/js/menu-tree-a38122a5.js","static/js/hooks-62079556.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf-8be0f9a8.js"),["static/js/pdf-8be0f9a8.js","static/js/vue.runtime.esm-bundler-c42d439d.js"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print-ab6bd646.js"),["static/js/print-ab6bd646.js","static/js/print-a6e42845.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/app-9580cee8.js","static/css/print-8831c8b6.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode-eb62c949.js"),["static/js/qrcode-eb62c949.js","static/js/message-ac5811da.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper-3eeb0cd1.js"),["static/js/swiper-3eeb0cd1.js","static/css/swiper-4182dcb7.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline-3ea27185.js"),["static/js/timeline-3ea27185.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/css/timeline-0391e3d4.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal-0e874426.js"),["static/js/horizontal-0e874426.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/horizontal-f9c9bac5.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index-62aa1b91.js"),["static/js/index-62aa1b91.js","static/js/vertical-44eee916.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/vertical-c0ec8bec.css","static/js/horizontal-0e874426.js","static/css/horizontal-f9c9bac5.css","static/css/index-bbe280a3.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical-44eee916.js"),["static/js/vertical-44eee916.js","static/js/vue-virtual-scroller.esm-490d869b.js","static/css/vertical-c0ec8bec.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark-11783896.js"),[]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns-ba8e4348.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index-4a5b9d97.js"),["static/js/index-4a5b9d97.js","static/js/columns-ba8e4348.js","static/css/index-14544c94.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index-d79fa351.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic-09712a8c.js"),["static/js/basic-09712a8c.js","static/js/index.esm-04a1a156.js","static/css/basic-d842f1a0.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-04f26cf0.js"),["static/js/index-04f26cf0.js","static/js/basic-09712a8c.js","static/js/index.esm-04a1a156.js","static/css/basic-d842f1a0.css","static/js/menuGroup-03365b00.js","static/css/menuGroup-1ac3332c.css","static/js/menuDynamic-f234f67c.js","static/css/menuDynamic-8e12a25c.css","static/css/index-5d2daf4d.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic-f234f67c.js"),["static/js/menuDynamic-f234f67c.js","static/js/index.esm-04a1a156.js","static/css/menuDynamic-8e12a25c.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup-03365b00.js"),["static/js/menuGroup-03365b00.js","static/js/index.esm-04a1a156.js","static/css/menuGroup-1ac3332c.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index-03a042a0.js"),["static/js/index-03a042a0.js","static/js/propTypes-c3354283.js","static/css/index-a129e600.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index-159573b9.js"),["static/js/index-159573b9.js","static/css/index-fdfcfa11.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index-41258481.js"),["static/js/index-41258481.js","static/css/index-14392f45.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form-c4e26200.js"),["static/js/form-c4e26200.js","static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index-b21cf265.js"),["static/js/index-b21cf265.js","static/js/message-ac5811da.js","static/js/form.vue_vue_type_script_setup_true_lang-e871bdbd.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index-4e7937cc.js"),["static/js/index-4e7937cc.js","static/js/sortable.esm-679e0872.js","static/js/app-9580cee8.js","static/js/hooks-62079556.js","static/css/index-b2ddca14.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index-49272547.js"),["static/js/index-49272547.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index-b93c607c.js"),["static/js/index-b93c607c.js","static/css/index-d504fa9c.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index-c7941fd5.js"),["static/js/index-c7941fd5.js","static/js/message-ac5811da.js","static/js/hooks-62079556.js","static/js/check-3815600c.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index-1f4723fd.js"),["static/js/index-1f4723fd.js","static/js/index-95b65695.js","static/css/index-53a917f7.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index-9320116d.js"),["static/js/index-9320116d.js","static/css/index-ea4ab5c7.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index-59ff87b7.js"),["static/js/index-59ff87b7.js","static/css/index-e0a7f2a0.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index-10e75e7a.js"),["static/js/index-10e75e7a.js","static/js/index-24d2e7bb.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index-7c86d1c0.js"),["static/js/index-7c86d1c0.js","static/js/hooks-62079556.js","static/css/index-11b4621f.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index-a0fc3b02.js"),["static/js/index-a0fc3b02.js","static/js/hooks-62079556.js","static/js/edit-d219f0c6.js","static/css/index-f38a3df6.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index-1e673eb0.js"),["static/js/index-1e673eb0.js","static/css/index-218e4ba3.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403-aace6d52.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404-4055428e.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500-68cbae6c.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index-9a545244.js"),["static/js/index-9a545244.js","static/js/hooks-62079556.js","static/js/styles-cf4bf16f.js","static/js/vue.runtime.esm-bundler-c42d439d.js","static/css/styles-670012e0.css","static/js/set-up-e6942411.js","static/css/index-6bd35e69.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index-a24a88b8.js"),["static/js/index-a24a88b8.js","static/css/index-38ef32bb.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card-514d8668.js"),["static/js/Card-514d8668.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm-8ed6f873.js"),["static/js/DialogForm-8ed6f873.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js","static/js/message-ac5811da.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index-8c8a5e0e.js"),["static/js/index-8c8a5e0e.js","static/js/Card-514d8668.js","static/js/more-2-fill-a666858a.js","static/css/Card-6b1295ac.css","static/js/message-ac5811da.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang-27dd14b2.js","static/js/hooks-62079556.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone-9b362354.js"),["static/js/phone-9b362354.js","static/js/phone.vue_vue_type_script_setup_true_lang-434cabb8.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode-8e6fa10c.js"),["static/js/qrCode-8e6fa10c.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-14b58f53.js","static/js/motion-8d1b992b.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist-4094a63f.js"),["static/js/regist-4094a63f.js","static/js/regist.vue_vue_type_script_setup_true_lang-8e834687.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/hooks-62079556.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update-5989ca5a.js"),["static/js/update-5989ca5a.js","static/js/update.vue_vue_type_script_setup_true_lang-2c86fdf0.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/hooks-62079556.js","static/js/lock-fill-34b71c6c.js","static/js/iphone-bcaa848c.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index-86e35936.js"),["static/js/index-86e35936.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/phone.vue_vue_type_script_setup_true_lang-434cabb8.js","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/js/index-24d2e7bb.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-14b58f53.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-8e834687.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-2c86fdf0.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index-bcc6313c.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index-54e3e3b4.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index-2b3bdafa.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index-5f0193e2.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index-32849726.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index-7ba69997.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index-68e6cf05.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index-ef352e72.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base-d29aa544.js"),["static/js/base-d29aa544.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border-e0f7cd9d.js"),["static/js/border-e0f7cd9d.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns-39bf1e5b.js"),["static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index-3bc4724e.js"),["static/js/index-3bc4724e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex-b5e8ed2f.js"),["static/js/customIndex-b5e8ed2f.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand-88bf21af.js"),["static/js/expand-88bf21af.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters-73e71ffe.js"),["static/js/filters-73e71ffe.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn-26d38edf.js"),["static/js/fixColumn-26d38edf.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader-7b66ac91.js"),["static/js/fixHeader-7b66ac91.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight-8db64373.js"),["static/js/fluidHeight-8db64373.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader-88104433.js"),["static/js/groupHeader-88104433.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns-75cd3c72.js"),["static/js/columns-75cd3c72.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index-e4e3402a.js"),["static/js/index-e4e3402a.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/message-ac5811da.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview-4dc4fa68.js"),["static/js/imgPreview-4dc4fa68.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout-fdf6a375.js"),["static/js/layout-fdf6a375.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list-90b3344f.js"),["static/js/list-90b3344f.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge-109ffa89.js"),["static/js/merge-109ffa89.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice-c5fd1518.js"),["static/js/multipleChoice-c5fd1518.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp-72426afc.js"),["static/js/nestProp-72426afc.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio-43e7c06f.js"),["static/js/radio-43e7c06f.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable-12882810.js"),["static/js/sortable-12882810.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status-d9184a7d.js"),["static/js/status-d9184a7d.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/js/data-7bb4b374.js","static/css/status-3db11369.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe-30d40381.js"),["static/js/stripe-30d40381.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/data-7bb4b374.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow-3ef42bb0.js"),["static/js/totalRow-3ef42bb0.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree-b4a3bbde.js"),["static/js/tree-b4a3bbde.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high-25613d81.js"),["static/js/high-25613d81.js","static/js/list-18420425.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/index-95b65695.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js","static/css/high-5bc3f1f1.css"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns-f5c5c5b8.js"),["static/js/columns-f5c5c5b8.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index-6cb6f2c7.js"),["static/js/index-6cb6f2c7.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns-9df0a0b6.js"),["static/js/columns-9df0a0b6.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index-a8023d07.js"),["static/js/index-a8023d07.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns-2721478e.js"),["static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index-8a1a3626.js"),["static/js/index-8a1a3626.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns-7cd72d5c.js"),["static/js/columns-7cd72d5c.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/index-95b65695.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index-9d51f22a.js"),["static/js/index-9d51f22a.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/index-95b65695.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns-df5d4455.js"),["static/js/columns-df5d4455.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index-fe860b62.js"),["static/js/index-fe860b62.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/data-4845d266.js","static/js/message-ac5811da.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js"]),"/src/views/pure-table/high/execl/columns.tsx":()=>__vitePreload(()=>import("./columns-5f812485.js"),["static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/execl/index.vue":()=>__vitePreload(()=>import("./index-36aff547.js"),["static/js/index-36aff547.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/data-4845d266.js","static/js/message-ac5811da.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list-18420425.js"),["static/js/list-18420425.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-d5647728.js","static/js/columns-2721478e.js","static/js/sortable.esm-679e0872.js","static/js/index.vue_vue_type_script_setup_true_lang-07f5e3b9.js","static/js/columns-9df0a0b6.js","static/js/index.vue_vue_type_script_setup_true_lang-316dae94.js","static/js/columns-f5c5c5b8.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-b2941bf3.js","static/js/columns-5f812485.js","static/js/xlsx-e927f539.js","static/js/index.vue_vue_type_script_setup_true_lang-376130a5.js","static/js/columns-df5d4455.js","static/js/edit-pen-37b5ced2.js","static/js/check-3815600c.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/index.vue_vue_type_script_setup_true_lang-fa1f2931.js","static/js/columns-7cd72d5c.js","static/js/index-95b65695.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns-bbf3abe3.js"),["static/js/columns-bbf3abe3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index-32adabbc.js"),["static/js/index-32adabbc.js","static/js/index.vue_vue_type_script_setup_true_lang-80e8a030.js","static/js/columns-bbf3abe3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns-58fb2122.js"),["static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index-6a61427f.js"),["static/js/index-6a61427f.js","static/js/index.vue_vue_type_script_setup_true_lang-22762134.js","static/js/columns-58fb2122.js","static/js/print-a6e42845.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index-4d64ed58.js"),["static/js/index-4d64ed58.js","static/js/index.vue_vue_type_script_setup_true_lang-e40cdb80.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/message-ac5811da.js","static/js/data-4845d266.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns-7628a2c7.js"),["static/js/columns-7628a2c7.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index-0bcb1434.js"),["static/js/index-0bcb1434.js","static/js/index.vue_vue_type_script_setup_true_lang-c6a3d999.js","static/js/columns-7628a2c7.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns-3d7dbff3.js"),["static/js/columns-3d7dbff3.js","static/js/message-ac5811da.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index-e44afdd4.js"),["static/js/index-e44afdd4.js","static/js/index.vue_vue_type_script_setup_true_lang-f3b36626.js","static/js/columns-3d7dbff3.js","static/js/message-ac5811da.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns-c20796e3.js"),["static/js/columns-c20796e3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index-7be406e1.js"),["static/js/index-7be406e1.js","static/js/index.vue_vue_type_script_setup_true_lang-f7bd604c.js","static/js/columns-c20796e3.js","static/js/data-4845d266.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index-dfcdfd2f.js"),["static/js/index-dfcdfd2f.js","static/js/list-90b3344f.js","static/js/base.vue_vue_type_script_setup_true_lang-fc0b0c63.js","static/js/data-7bb4b374.js","static/js/stripe.vue_vue_type_script_setup_true_lang-9b1733b5.js","static/js/border.vue_vue_type_script_setup_true_lang-61cc9adb.js","static/js/status.vue_vue_type_style_index_0_lang-b71c06dd.js","static/css/status-3db11369.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang-c5d733cd.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang-5b704527.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang-88785cb7.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang-4a87b79d.js","static/js/radio.vue_vue_type_script_setup_true_lang-3d02b222.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang-cf211278.js","static/js/sortable.vue_vue_type_script_setup_true_lang-8fb6878f.js","static/js/filters.vue_vue_type_script_setup_true_lang-4819fc0e.js","static/js/index.vue_vue_type_script_setup_true_lang-b3e381b1.js","static/js/columns-39bf1e5b.js","static/js/message-ac5811da.js","static/js/index.vue_vue_type_script_setup_true_lang-0429dccb.js","static/js/columns-75cd3c72.js","static/js/expand.vue_vue_type_script_setup_true_lang-72453caf.js","static/js/tree.vue_vue_type_script_setup_true_lang-d55e7056.js","static/js/totalRow.vue_vue_type_script_setup_true_lang-4312dd4f.js","static/js/merge.vue_vue_type_script_setup_true_lang-a510a2fc.js","static/js/customIndex.vue_vue_type_script_setup_true_lang-e3c9b231.js","static/js/layout.vue_vue_type_script_setup_true_lang-d00641f6.js","static/js/nestProp.vue_vue_type_script_setup_true_lang-628ba7d1.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang-bcaea8a2.js","static/css/index-c6b6432d.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns-4858870b.js"),["static/js/columns-4858870b.js","static/js/arrow-right-s-line-2977cc7e.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail-faba5431.js"),["static/js/fail-faba5431.js","static/js/columns-4858870b.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/fail-8c7d12a4.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success-945d4baa.js"),["static/js/success-945d4baa.js","static/css/success-42084dfc.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form-81ec7fbb.js"),["static/js/form-81ec7fbb.js","static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js"]),"/src/views/system/dept/hook.tsx":()=>__vitePreload(()=>import("./hook-dbd437de.js"),["static/js/hook-dbd437de.js","static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index-59b6ef2b.js"),["static/js/index-59b6ef2b.js","static/js/hook-dbd437de.js","static/js/form.vue_vue_type_script_setup_true_lang-26a36b44.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js","static/js/refresh-43caf749.js","static/js/epTheme-ec99570c.js","static/js/sortable.esm-679e0872.js","static/js/hooks-62079556.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/add-circle-line-a03ff6bd.js"]),"/src/views/system/role/hook.tsx":()=>__vitePreload(()=>import("./hook-2b5b194c.js"),["static/js/hook-2b5b194c.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index-cd4ccea0.js"),["static/js/index-cd4ccea0.js","static/js/hook-2b5b194c.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js","static/js/refresh-43caf749.js","static/js/epTheme-ec99570c.js","static/js/sortable.esm-679e0872.js","static/js/hooks-62079556.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/search-cc37b371.js","static/js/menu-a4fe64fb.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-9f62158a.css"]),"/src/views/system/user/hook.tsx":()=>__vitePreload(()=>import("./hook-4e63e5b1.js"),["static/js/hook-4e63e5b1.js","static/js/message-ac5811da.js","static/js/system-5c5ef8e0.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index-cd1a5b58.js"),["static/js/index-cd1a5b58.js","static/js/tree-a0484b07.js","static/js/system-5c5ef8e0.js","static/js/hooks-62079556.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css","static/js/hook-4e63e5b1.js","static/js/message-ac5811da.js","static/js/refresh-43caf749.js","static/js/epTheme-ec99570c.js","static/js/sortable.esm-679e0872.js","static/js/admin-line-92b9acda.js","static/js/more-filled-c44d3178.js","static/js/edit-pen-37b5ced2.js","static/js/add-circle-line-a03ff6bd.js","static/css/index-7734e749.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree-a0484b07.js"),["static/js/tree-a0484b07.js","static/js/system-5c5ef8e0.js","static/js/hooks-62079556.js","static/js/git-branch-line-aa4cb38f.js","static/js/search-cc37b371.js","static/js/more-2-fill-a666858a.js","static/js/office-building-cc7a1721.js","static/css/tree-12381322.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index-6c22368c.js"),["static/js/index-6c22368c.js","static/js/hooks-65e1ad34.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail-1e5eb068.js"),["static/js/params-detail-1e5eb068.js","static/js/hooks-65e1ad34.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail-493cb769.js"),["static/js/query-detail-493cb769.js","static/js/hooks-65e1ad34.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar-e89b7a26.js"),["static/js/Bar-e89b7a26.js","static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js","static/js/app-9580cee8.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github-9cae51b2.js"),["static/js/Github-9cae51b2.js","static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js","static/js/columns-534bdbdc.js","static/js/index-24d2e7bb.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line-3d037804.js"),["static/js/Line-3d037804.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/app-9580cee8.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie-c23b2db7.js"),["static/js/Pie-c23b2db7.js","static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js","static/js/app-9580cee8.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns-534bdbdc.js"),["static/js/columns-534bdbdc.js","static/js/index-24d2e7bb.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index-5820af99.js"),["static/js/index-5820af99.js","static/js/Bar.vue_vue_type_script_setup_true_lang-41902aae.js","static/js/app-9580cee8.js","static/js/Pie.vue_vue_type_script_setup_true_lang-2dbb1c8a.js","static/js/Line.vue_vue_type_script_setup_true_lang-c9d17410.js","static/js/index-24d2e7bb.js","static/js/index-95b65695.js","static/js/Github.vue_vue_type_script_setup_true_lang-465cd287.js","static/js/columns-534bdbdc.js","static/js/office-building-cc7a1721.js","static/js/iphone-bcaa848c.js","static/js/user-3-fill-70ba8c19.js","static/js/index-3bb45c48.js","static/css/index-18417f34.css","static/css/index-e89363d8.css"])});function handRank($){const{name:oe,path:ae,parentId:ie,meta:le}=$;return P$1(ie)?!!(P$1(le==null?void 0:le.rank)||(le==null?void 0:le.rank)===0&&oe!=="Home"&&ae!=="/"):!1}function ascending($){return $.forEach((oe,ae)=>{handRank(oe)&&(oe.meta.rank=ae+2)}),$.sort((oe,ae)=>(oe==null?void 0:oe.meta.rank)-(ae==null?void 0:ae.meta.rank))}function filterTree($){const oe=Ke($).filter(ae=>{var ie;return((ie=ae.meta)==null?void 0:ie.showLink)!==!1});return oe.forEach(ae=>ae.children&&(ae.children=filterTree(ae.children))),oe}function filterChildrenTree($){const oe=Ke($).filter(ae=>{var ie;return((ie=ae==null?void 0:ae.children)==null?void 0:ie.length)!==0});return oe.forEach(ae=>ae.children&&(ae.children=filterTree(ae.children))),oe}function isOneOfArray($,oe){return Array.isArray($)&&Array.isArray(oe)?yr($,oe).length>0:!0}function filterNoPermissionTree($){var ie;const oe=((ie=Qn().getItem(sessionKey))==null?void 0:ie.roles)??[],ae=Ke($).filter(le=>{var pe;return isOneOfArray((pe=le.meta)==null?void 0:pe.roles,oe)});return ae.forEach(le=>le.children&&(le.children=filterNoPermissionTree(le.children))),filterChildrenTree(ae)}function getParentPaths($,oe,ae="path"){function ie(le,pe,_e){for(let Ce=0;Ce<le.length;Ce++){const $e=le[Ce];if($e[ae]===pe)return _e;if(!(!$e.children||!$e.children.length)){if(_e.push($e.path),ie($e.children,pe,_e).length)return _e;_e.pop()}}return[]}return ie(oe,$,[])}function findRouteByPath($,oe){let ae=oe.find(ie=>ie.path==$);if(ae)return isProxy(ae)?toRaw(ae):ae;for(let ie=0;ie<oe.length;ie++)if(oe[ie].children instanceof Array&&oe[ie].children.length>0&&(ae=findRouteByPath($,oe[ie].children),ae))return isProxy(ae)?toRaw(ae):ae;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes($){$.length===0||formatFlatteningRoutes(addAsyncRoutes($)).map(oe=>{if(router.options.routes[0].children.findIndex(ae=>ae.path===oe.path)===-1){router.options.routes[0].children.push(oe),ascending(router.options.routes[0].children),router.hasRoute(oe==null?void 0:oe.name)||router.addRoute(oe);const ae=router.getRoutes().find(ie=>ie.path==="/");router.addRoute(ae)}}),usePermissionStoreHook().handleWholeMenus($),addPathMatch()}function initRouter(){var $;if(($=getConfig())!=null&&$.CachingAsyncRoutes){const oe="async-routes",ae=Qn().getItem(oe);return ae&&(ae==null?void 0:ae.length)>0?new Promise(ie=>{handleAsyncRoutes(ae),ie(router)}):new Promise(ie=>{getAsyncRoutes().then(({data:le})=>{handleAsyncRoutes(Ke(le)),Qn().setItem(oe,le),ie(router)})})}else return new Promise(oe=>{getAsyncRoutes().then(({data:ae})=>{handleAsyncRoutes(Ke(ae)),oe(router)})})}function formatFlatteningRoutes($){if($.length===0)return $;let oe=buildHierarchyTree($);for(let ae=0;ae<oe.length;ae++)oe[ae].children&&(oe=oe.slice(0,ae+1).concat(oe[ae].children,oe.slice(ae+1)));return oe}function formatTwoStageRoutes($){if($.length===0)return $;const oe=[];return $.forEach(ae=>{var ie;ae.path==="/"?oe.push({component:ae.component,name:ae.name,path:ae.path,redirect:ae.redirect,meta:ae.meta,children:[]}):(ie=oe[0])==null||ie.children.push({...ae})}),oe}function handleAliveRoute({name:$},oe){switch(oe){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:$});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:$});break;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",name:$});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:$}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:$})},100)}}function addAsyncRoutes($){if(!$||!$.length)return;const oe=Object.keys(modulesRoutes);return $.forEach(ae=>{var ie;if(ae.meta.backstage=!0,ae!=null&&ae.children&&ae.children.length&&!ae.redirect&&(ae.redirect=ae.children[0].path),ae!=null&&ae.children&&ae.children.length&&!ae.name&&(ae.name=ae.children[0].name+"Parent"),(ie=ae.meta)!=null&&ie.frameSrc)ae.component=IFrame;else{const le=ae!=null&&ae.component?oe.findIndex(pe=>pe.includes(ae.component)):oe.findIndex(pe=>pe.includes(ae.path));ae.component=modulesRoutes[oe[le]]}ae!=null&&ae.children&&ae.children.length&&addAsyncRoutes(ae.children)}),$}function getHistoryMode($){const oe=$.split(","),ae=oe[0],ie=oe[1];if(oe.length===1){if(ae==="hash")return createWebHashHistory("");if(ae==="h5")return createWebHistory("")}else if(oe.length===2){if(ae==="hash")return createWebHashHistory(ie);if(ae==="h5")return createWebHistory(ie)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth($){if(!$)return!1;const oe=getAuths();return oe?!!(S($)?oe.includes($):br($,oe)):!1}function getTopMenu($=!1){var ae;const oe=(ae=usePermissionStoreHook().wholeMenus[0])==null?void 0:ae.children[0];return $&&useMultiTagsStoreHook().handleTags("push",oe),oe}const usePermissionStore=defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus($){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat($))))},cacheOperate({mode:$,name:oe}){const ae=this.cachePageList.findIndex(ie=>ie===oe);switch($){case"refresh":this.cachePageList=this.cachePageList.filter(ie=>ie!==oe);break;case"add":this.cachePageList.push(oe);break;case"delete":ae!==-1&&this.cachePageList.splice(ae,1);break}(()=>{let ie=this.cachePageList.length;const le=wr(useMultiTagsStoreHook().multiTags,"name");for(;ie>0;)le.findIndex(pe=>pe===this.cachePageList[ie-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[ie-1]),1),ie--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const Layout=()=>__vitePreload(()=>import("./index-2c9a69b7.js"),["static/js/index-2c9a69b7.js","static/js/menu-a4fe64fb.js","static/js/edit-d219f0c6.js","static/js/set-up-e6942411.js","static/js/admin-line-92b9acda.js","static/js/git-branch-line-aa4cb38f.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/hooks-62079556.js","static/js/index-95b65695.js","static/js/search-cc37b371.js","static/js/check-3815600c.js","static/js/refresh-right-6177e75c.js","static/js/arrow-right-s-line-2977cc7e.js","static/css/index-17881e6a.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index-86e35936.js"),["static/js/index-86e35936.js","static/js/motion-8d1b992b.js","static/js/message-ac5811da.js","static/js/verifyCode-5a2fb2bf.js","static/js/phone.vue_vue_type_script_setup_true_lang-434cabb8.js","static/js/hooks-62079556.js","static/js/iphone-bcaa848c.js","static/js/index-24d2e7bb.js","static/js/qrCode.vue_vue_type_script_setup_true_lang-14b58f53.js","static/js/index-639cd49d.js","static/js/propTypes-c3354283.js","static/js/refresh-right-6177e75c.js","static/css/index-1a1bea52.css","static/js/regist.vue_vue_type_script_setup_true_lang-8e834687.js","static/js/lock-fill-34b71c6c.js","static/js/user-3-fill-70ba8c19.js","static/js/update.vue_vue_type_script_setup_true_lang-2c86fdf0.js","static/js/dark-8da7fda0.js","static/js/app-9580cee8.js","static/js/epTheme-ec99570c.js","static/js/check-3815600c.js","static/css/index-90a3ebb5.css"]),meta:{title:$t("menus.hslogin"),showLink:!1,rank:101}},{path:"/redirect",component:Layout,meta:{title:$t("status.hsLoad"),showLink:!1,rank:102},children:[{path:"/redirect/:path(.*)",name:"Redirect",component:()=>__vitePreload(()=>import("./redirect-483f1a7b.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index-1e673eb0.js"),["static/js/index-1e673eb0.js","static/css/index-218e4ba3.css"]),meta:{title:$t("menus.hsempty"),showLink:!1,rank:103}}],modules$1=Object.assign({"./modules/able.ts":__vite_glob_0_0$1,"./modules/about.ts":__vite_glob_0_1$1,"./modules/components.ts":__vite_glob_0_2$1,"./modules/editor.ts":__vite_glob_0_3$1,"./modules/error.ts":__vite_glob_0_4$1,"./modules/flowchart.ts":__vite_glob_0_5$1,"./modules/formdesign.ts":__vite_glob_0_6,"./modules/guide.ts":__vite_glob_0_7,"./modules/home.ts":__vite_glob_0_8,"./modules/list.ts":__vite_glob_0_9,"./modules/menuoverflow.ts":__vite_glob_0_10,"./modules/nested.ts":__vite_glob_0_11,"./modules/ppt.ts":__vite_glob_0_12,"./modules/puredoc.ts":__vite_glob_0_13,"./modules/pureutils.ts":__vite_glob_0_14,"./modules/result.ts":__vite_glob_0_15,"./modules/table.ts":__vite_glob_0_16}),routes=[];Object.keys(modules$1).forEach($=>{routes.push(modules$1[$].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))),constantMenus=ascending(routes).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map($=>remainingRouter[$].path),router=createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior($,oe,ae){return new Promise(ie=>{if(ae)return ae;if(oe.meta.saveSrollTop){const le=document.documentElement.scrollTop||document.body.scrollTop;ie({left:0,top:le})}})}});function resetRouter(){router.getRoutes().forEach($=>{const{name:oe,meta:ae}=$;oe&&router.hasRoute(oe)&&(ae!=null&&ae.backstage)&&(router.removeRoute(oe),router.options.routes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes)))))}),usePermissionStoreHook().clearAllCachePage()}const whiteList=["/login"],{VITE_HIDE_HOME}={VITE_PORT:"8848",VITE_HIDE_HOME:"false",VITE_PUBLIC_PATH:"/vue-pure-admin/",VITE_ROUTER_HISTORY:"hash",VITE_CDN:"false",VITE_COMPRESSION:"none",BASE_URL:"/vue-pure-admin/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};router.beforeEach(($,oe,ae)=>{var _e,Ce,$e;(_e=$.meta)!=null&&_e.keepAlive&&(handleAliveRoute($,"add"),(oe.name===void 0||oe.name==="Redirect")&&handleAliveRoute($));const ie=Qn().getItem(sessionKey);NProgress.start();const le=dt($==null?void 0:$.name);le||$.matched.some(xe=>{if(!xe.meta.title)return"";const Ie=getConfig().Title;Ie?document.title=`${transformI18n(xe.meta.title)} | ${Ie}`:document.title=transformI18n(xe.meta.title)});function pe(){whiteList.includes($.fullPath)?ae(oe.fullPath):ae()}ie?((Ce=$.meta)!=null&&Ce.roles&&!isOneOfArray(($e=$.meta)==null?void 0:$e.roles,ie==null?void 0:ie.roles)&&ae({path:"/error/403"}),VITE_HIDE_HOME==="true"&&$.fullPath==="/welcome"&&ae({path:"/error/404"}),oe!=null&&oe.name?le?(Tt($==null?void 0:$.name),NProgress.done()):pe():(usePermissionStoreHook().wholeMenus.length===0&&$.path!=="/login"&&initRouter().then(xe=>{var Ie;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:Ne}=$,Fe=findRouteByPath(Ne,xe.options.routes[0].children);getTopMenu(!0),Fe&&((Ie=Fe.meta)!=null&&Ie.title)&&useMultiTagsStoreHook().handleTags("push",{path:Fe.path,name:Fe.name,meta:Fe.meta})}xe.push($.fullPath)}),pe())):$.path!=="/login"?whiteList.indexOf($.path)!==-1?ae():ae({path:"/login"}):ae()});router.afterEach(()=>{NProgress.done()});var _a$1;const isClient=typeof window<"u",toString=Object.prototype.toString,isNumber$1=$=>typeof $=="number",isString$2=$=>typeof $=="string",isObject$4=$=>toString.call($)==="[object Object]",noop$1=()=>{};isClient&&((_a$1=window==null?void 0:window.navigator)!=null&&_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function tryOnScopeDispose($){return getCurrentScope()?(onScopeDispose($),!0):!1}function tryOnUnmounted($){getCurrentInstance()&&onUnmounted($)}function unrefElement($){var oe;const ae=unref($);return(oe=ae==null?void 0:ae.$el)!=null?oe:ae}const defaultWindow=isClient?window:void 0;function useEventListener(...$){let oe,ae,ie,le;if(isString$2($[0])?([ae,ie,le]=$,oe=defaultWindow):[oe,ae,ie,le]=$,!oe)return noop$1;let pe=noop$1;const _e=watch(()=>unrefElement(oe),$e=>{pe(),$e&&($e.addEventListener(ae,ie,le),pe=()=>{$e.removeEventListener(ae,ie,le),pe=noop$1})},{immediate:!0,flush:"post"}),Ce=()=>{_e(),pe()};return tryOnScopeDispose(Ce),Ce}const _global=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global[globalKey]=_global[globalKey]||{};function useIntersectionObserver($,oe,ae={}){const{root:ie,rootMargin:le="0px",threshold:pe=.1,window:_e=defaultWindow}=ae,Ce=_e&&"IntersectionObserver"in _e;let $e=noop$1;const xe=Ce?watch(()=>({el:unrefElement($),root:unrefElement(ie)}),({el:Ne,root:Fe})=>{if($e(),!Ne)return;const ze=new IntersectionObserver(oe,{root:Fe,rootMargin:le,threshold:pe});ze.observe(Ne),$e=()=>{ze.disconnect(),$e=noop$1}},{immediate:!0,flush:"post"}):noop$1,Ie=()=>{$e(),xe()};return tryOnScopeDispose(Ie),{isSupported:Ce,stop:Ie}}var SwipeDirection;(function($){$.UP="UP",$.RIGHT="RIGHT",$.DOWN="DOWN",$.LEFT="LEFT",$.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));const defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?$=>window.requestAnimationFrame($):$=>setTimeout(()=>$(getCurrentTime()),defaultTimestep);function createRenderStep($){let oe=[],ae=[],ie=0,le=!1,pe=!1;const _e=new WeakSet,Ce={schedule:($e,xe=!1,Ie=!1)=>{const Ne=Ie&&le,Fe=Ne?oe:ae;return xe&&_e.add($e),Fe.indexOf($e)===-1&&(Fe.push($e),Ne&&le&&(ie=oe.length)),$e},cancel:$e=>{const xe=ae.indexOf($e);xe!==-1&&ae.splice(xe,1),_e.delete($e)},process:$e=>{if(le){pe=!0;return}if(le=!0,[oe,ae]=[ae,oe],ae.length=0,ie=oe.length,ie)for(let xe=0;xe<ie;xe++){const Ie=oe[xe];Ie($e),_e.has(Ie)&&(Ce.schedule(Ie),$())}le=!1,pe&&(pe=!1,Ce.process($e))}};return Ce}const maxElapsed=40;let useDefaultElapsed=!0,runNextFrame=!1,isProcessing=!1;const frame={delta:0,timestamp:0},stepsOrder=["read","update","preRender","render","postRender"],steps=stepsOrder.reduce(($,oe)=>($[oe]=createRenderStep(()=>runNextFrame=!0),$),{}),sync=stepsOrder.reduce(($,oe)=>{const ae=steps[oe];return $[oe]=(ie,le=!1,pe=!1)=>(runNextFrame||startLoop(),ae.schedule(ie,le,pe)),$},{}),cancelSync=stepsOrder.reduce(($,oe)=>($[oe]=steps[oe].cancel,$),{});stepsOrder.reduce(($,oe)=>($[oe]=()=>steps[oe].process(frame),$),{});const processStep=$=>steps[$].process(frame),processFrame=$=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min($-frame.timestamp,maxElapsed),1),frame.timestamp=$,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest($,oe){var ae={};for(var ie in $)Object.prototype.hasOwnProperty.call($,ie)&&oe.indexOf(ie)<0&&(ae[ie]=$[ie]);if($!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,ie=Object.getOwnPropertySymbols($);le<ie.length;le++)oe.indexOf(ie[le])<0&&Object.prototype.propertyIsEnumerable.call($,ie[le])&&(ae[ie[le]]=$[ie[le]]);return ae}var warning=function(){},invariant=function(){};const clamp$2=($,oe,ae)=>Math.min(Math.max(ae,$),oe),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:$=800,bounce:oe=.25,velocity:ae=0,mass:ie=1}){let le,pe;warning($<=maxDuration*1e3);let _e=1-oe;_e=clamp$2(minDamping,maxDamping,_e),$=clamp$2(minDuration,maxDuration,$/1e3),_e<1?(le=xe=>{const Ie=xe*_e,Ne=Ie*$,Fe=Ie-ae,ze=calcAngularFreq(xe,_e),At=Math.exp(-Ne);return safeMin-Fe/ze*At},pe=xe=>{const Ne=xe*_e*$,Fe=Ne*ae+ae,ze=Math.pow(_e,2)*Math.pow(xe,2)*$,At=Math.exp(-Ne),Lt=calcAngularFreq(Math.pow(xe,2),_e);return(-le(xe)+safeMin>0?-1:1)*((Fe-ze)*At)/Lt}):(le=xe=>{const Ie=Math.exp(-xe*$),Ne=(xe-ae)*$+1;return-safeMin+Ie*Ne},pe=xe=>{const Ie=Math.exp(-xe*$),Ne=(ae-xe)*($*$);return Ie*Ne});const Ce=5/$,$e=approximateRoot(le,pe,Ce);if($=$*1e3,isNaN($e))return{stiffness:100,damping:10,duration:$};{const xe=Math.pow($e,2)*ie;return{stiffness:xe,damping:_e*2*Math.sqrt(ie*xe),duration:$}}}const rootIterations=12;function approximateRoot($,oe,ae){let ie=ae;for(let le=1;le<rootIterations;le++)ie=ie-$(ie)/oe(ie);return ie}function calcAngularFreq($,oe){return $*Math.sqrt(1-oe*oe)}const durationKeys=["duration","bounce"],physicsKeys=["stiffness","damping","mass"];function isSpringType($,oe){return oe.some(ae=>$[ae]!==void 0)}function getSpringOptions($){let oe=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},$);if(!isSpringType($,physicsKeys)&&isSpringType($,durationKeys)){const ae=findSpring($);oe=Object.assign(Object.assign(Object.assign({},oe),ae),{velocity:0,mass:1}),oe.isResolvedFromDuration=!0}return oe}function spring($){var{from:oe=0,to:ae=1,restSpeed:ie=2,restDelta:le}=$,pe=__rest($,["from","to","restSpeed","restDelta"]);const _e={done:!1,value:oe};let{stiffness:Ce,damping:$e,mass:xe,velocity:Ie,duration:Ne,isResolvedFromDuration:Fe}=getSpringOptions(pe),ze=zero,At=zero;function Lt(){const hn=Ie?-(Ie/1e3):0,vn=ae-oe,_n=$e/(2*Math.sqrt(Ce*xe)),bn=Math.sqrt(Ce/xe)/1e3;if(le===void 0&&(le=Math.min(Math.abs(ae-oe)/100,.4)),_n<1){const Cn=calcAngularFreq(bn,_n);ze=En=>{const $n=Math.exp(-_n*bn*En);return ae-$n*((hn+_n*bn*vn)/Cn*Math.sin(Cn*En)+vn*Math.cos(Cn*En))},At=En=>{const $n=Math.exp(-_n*bn*En);return _n*bn*$n*(Math.sin(Cn*En)*(hn+_n*bn*vn)/Cn+vn*Math.cos(Cn*En))-$n*(Math.cos(Cn*En)*(hn+_n*bn*vn)-Cn*vn*Math.sin(Cn*En))}}else if(_n===1)ze=Cn=>ae-Math.exp(-bn*Cn)*(vn+(hn+bn*vn)*Cn);else{const Cn=bn*Math.sqrt(_n*_n-1);ze=En=>{const $n=Math.exp(-_n*bn*En),wn=Math.min(Cn*En,300);return ae-$n*((hn+_n*bn*vn)*Math.sinh(wn)+Cn*vn*Math.cosh(wn))/Cn}}}return Lt(),{next:hn=>{const vn=ze(hn);if(Fe)_e.done=hn>=Ne;else{const _n=At(hn)*1e3,bn=Math.abs(_n)<=ie,Cn=Math.abs(ae-vn)<=le;_e.done=bn&&Cn}return _e.value=_e.done?ae:vn,_e},flipTarget:()=>{Ie=-Ie,[oe,ae]=[ae,oe],Lt()}}}spring.needsInterpolation=($,oe)=>typeof $=="string"||typeof oe=="string";const zero=$=>0,progress=($,oe,ae)=>{const ie=oe-$;return ie===0?1:(ae-$)/ie},mix=($,oe,ae)=>-ae*$+ae*oe+$,clamp$1=($,oe)=>ae=>Math.max(Math.min(ae,oe),$),sanitize=$=>$%1?Number($.toFixed(5)):$,floatRegex=/(-)?([\d]*\.?[\d])+/g,colorRegex=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,singleColorRegex=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function isString$1($){return typeof $=="string"}const number$1={test:$=>typeof $=="number",parse:parseFloat,transform:$=>$},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=$=>({test:oe=>isString$1(oe)&&oe.endsWith($)&&oe.split(" ").length===1,parse:parseFloat,transform:oe=>`${oe}${$}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:$=>percent.parse($)/100,transform:$=>percent.transform($*100)}),isColorString=($,oe)=>ae=>!!(isString$1(ae)&&singleColorRegex.test(ae)&&ae.startsWith($)||oe&&Object.prototype.hasOwnProperty.call(ae,oe)),splitColor=($,oe,ae)=>ie=>{if(!isString$1(ie))return ie;const[le,pe,_e,Ce]=ie.match(floatRegex);return{[$]:parseFloat(le),[oe]:parseFloat(pe),[ae]:parseFloat(_e),alpha:Ce!==void 0?parseFloat(Ce):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:$,saturation:oe,lightness:ae,alpha:ie=1})=>"hsla("+Math.round($)+", "+percent.transform(sanitize(oe))+", "+percent.transform(sanitize(ae))+", "+sanitize(alpha.transform(ie))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:$=>Math.round(clampRgbUnit($))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:$,green:oe,blue:ae,alpha:ie=1})=>"rgba("+rgbUnit.transform($)+", "+rgbUnit.transform(oe)+", "+rgbUnit.transform(ae)+", "+sanitize(alpha.transform(ie))+")"};function parseHex($){let oe="",ae="",ie="",le="";return $.length>5?(oe=$.substr(1,2),ae=$.substr(3,2),ie=$.substr(5,2),le=$.substr(7,2)):(oe=$.substr(1,1),ae=$.substr(2,1),ie=$.substr(3,1),le=$.substr(4,1),oe+=oe,ae+=ae,ie+=ie,le+=le),{red:parseInt(oe,16),green:parseInt(ae,16),blue:parseInt(ie,16),alpha:le?parseInt(le,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:$=>rgba.test($)||hex.test($)||hsla.test($),parse:$=>rgba.test($)?rgba.parse($):hsla.test($)?hsla.parse($):hex.parse($),transform:$=>isString$1($)?$:$.hasOwnProperty("red")?rgba.transform($):hsla.transform($)},colorToken="${c}",numberToken="${n}";function test($){var oe,ae,ie,le;return isNaN($)&&isString$1($)&&((ae=(oe=$.match(floatRegex))===null||oe===void 0?void 0:oe.length)!==null&&ae!==void 0?ae:0)+((le=(ie=$.match(colorRegex))===null||ie===void 0?void 0:ie.length)!==null&&le!==void 0?le:0)>0}function analyse$1($){typeof $=="number"&&($=`${$}`);const oe=[];let ae=0;const ie=$.match(colorRegex);ie&&(ae=ie.length,$=$.replace(colorRegex,colorToken),oe.push(...ie.map(color$1.parse)));const le=$.match(floatRegex);return le&&($=$.replace(floatRegex,numberToken),oe.push(...le.map(number$1.parse))),{values:oe,numColors:ae,tokenised:$}}function parse$2($){return analyse$1($).values}function createTransformer($){const{values:oe,numColors:ae,tokenised:ie}=analyse$1($),le=oe.length;return pe=>{let _e=ie;for(let Ce=0;Ce<le;Ce++)_e=_e.replace(Ce<ae?colorToken:numberToken,Ce<ae?color$1.transform(pe[Ce]):sanitize(pe[Ce]));return _e}}const convertNumbersToZero=$=>typeof $=="number"?0:$;function getAnimatableNone$1($){const oe=parse$2($);return createTransformer($)(oe.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter($){let[oe,ae]=$.slice(0,-1).split("(");if(oe==="drop-shadow")return $;const[ie]=ae.match(floatRegex)||[];if(!ie)return $;const le=ae.replace(ie,"");let pe=maxDefaults.has(oe)?1:0;return ie!==ae&&(pe*=100),oe+"("+pe+le+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:$=>{const oe=$.match(functionRegex);return oe?oe.map(applyDefaultFilter).join(" "):$}});function hueToRgb($,oe,ae){return ae<0&&(ae+=1),ae>1&&(ae-=1),ae<1/6?$+(oe-$)*6*ae:ae<1/2?oe:ae<2/3?$+(oe-$)*(2/3-ae)*6:$}function hslaToRgba({hue:$,saturation:oe,lightness:ae,alpha:ie}){$/=360,oe/=100,ae/=100;let le=0,pe=0,_e=0;if(!oe)le=pe=_e=ae;else{const Ce=ae<.5?ae*(1+oe):ae+oe-ae*oe,$e=2*ae-Ce;le=hueToRgb($e,Ce,$+1/3),pe=hueToRgb($e,Ce,$),_e=hueToRgb($e,Ce,$-1/3)}return{red:Math.round(le*255),green:Math.round(pe*255),blue:Math.round(_e*255),alpha:ie}}const mixLinearColor=($,oe,ae)=>{const ie=$*$,le=oe*oe;return Math.sqrt(Math.max(0,ae*(le-ie)+ie))},colorTypes=[hex,rgba,hsla],getColorType=$=>colorTypes.find(oe=>oe.test($)),mixColor=($,oe)=>{let ae=getColorType($),ie=getColorType(oe),le=ae.parse($),pe=ie.parse(oe);ae===hsla&&(le=hslaToRgba(le),ae=rgba),ie===hsla&&(pe=hslaToRgba(pe),ie=rgba);const _e=Object.assign({},le);return Ce=>{for(const $e in _e)$e!=="alpha"&&(_e[$e]=mixLinearColor(le[$e],pe[$e],Ce));return _e.alpha=mix(le.alpha,pe.alpha,Ce),ae.transform(_e)}},isNum=$=>typeof $=="number",combineFunctions=($,oe)=>ae=>oe($(ae)),pipe=(...$)=>$.reduce(combineFunctions);function getMixer($,oe){return isNum($)?ae=>mix($,oe,ae):color$1.test($)?mixColor($,oe):mixComplex($,oe)}const mixArray=($,oe)=>{const ae=[...$],ie=ae.length,le=$.map((pe,_e)=>getMixer(pe,oe[_e]));return pe=>{for(let _e=0;_e<ie;_e++)ae[_e]=le[_e](pe);return ae}},mixObject=($,oe)=>{const ae=Object.assign(Object.assign({},$),oe),ie={};for(const le in ae)$[le]!==void 0&&oe[le]!==void 0&&(ie[le]=getMixer($[le],oe[le]));return le=>{for(const pe in ie)ae[pe]=ie[pe](le);return ae}};function analyse($){const oe=complex.parse($),ae=oe.length;let ie=0,le=0,pe=0;for(let _e=0;_e<ae;_e++)ie||typeof oe[_e]=="number"?ie++:oe[_e].hue!==void 0?pe++:le++;return{parsed:oe,numNumbers:ie,numRGB:le,numHSL:pe}}const mixComplex=($,oe)=>{const ae=complex.createTransformer(oe),ie=analyse($),le=analyse(oe);return ie.numHSL===le.numHSL&&ie.numRGB===le.numRGB&&ie.numNumbers>=le.numNumbers?pipe(mixArray(ie.parsed,le.parsed),ae):_e=>`${_e>0?oe:$}`},mixNumber=($,oe)=>ae=>mix($,oe,ae);function detectMixerFactory($){if(typeof $=="number")return mixNumber;if(typeof $=="string")return color$1.test($)?mixColor:mixComplex;if(Array.isArray($))return mixArray;if(typeof $=="object")return mixObject}function createMixers($,oe,ae){const ie=[],le=ae||detectMixerFactory($[0]),pe=$.length-1;for(let _e=0;_e<pe;_e++){let Ce=le($[_e],$[_e+1]);if(oe){const $e=Array.isArray(oe)?oe[_e]:oe;Ce=pipe($e,Ce)}ie.push(Ce)}return ie}function fastInterpolate([$,oe],[ae]){return ie=>ae(progress($,oe,ie))}function slowInterpolate($,oe){const ae=$.length,ie=ae-1;return le=>{let pe=0,_e=!1;if(le<=$[0]?_e=!0:le>=$[ie]&&(pe=ie-1,_e=!0),!_e){let $e=1;for(;$e<ae&&!($[$e]>le||$e===ie);$e++);pe=$e-1}const Ce=progress($[pe],$[pe+1],le);return oe[pe](Ce)}}function interpolate($,oe,{clamp:ae=!0,ease:ie,mixer:le}={}){const pe=$.length;invariant(pe===oe.length),invariant(!ie||!Array.isArray(ie)||ie.length===pe-1),$[0]>$[pe-1]&&($=[].concat($),oe=[].concat(oe),$.reverse(),oe.reverse());const _e=createMixers(oe,ie,le),Ce=pe===2?fastInterpolate($,_e):slowInterpolate($,_e);return ae?$e=>Ce(clamp$2($[0],$[pe-1],$e)):Ce}const reverseEasing=$=>oe=>1-$(1-oe),mirrorEasing=$=>oe=>oe<=.5?$(2*oe)/2:(2-$(2*(1-oe)))/2,createExpoIn=$=>oe=>Math.pow(oe,$),createBackIn=$=>oe=>oe*oe*(($+1)*oe-$),createAnticipate=$=>{const oe=createBackIn($);return ae=>(ae*=2)<1?.5*oe(ae):.5*(2-Math.pow(2,-10*(ae-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=$=>$,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=$=>1-Math.sin(Math.acos($)),circOut=reverseEasing(circIn),circInOut=mirrorEasing(circOut),backIn=createBackIn(DEFAULT_OVERSHOOT_STRENGTH),backOut=reverseEasing(backIn),backInOut=mirrorEasing(backIn),anticipate=createAnticipate(DEFAULT_OVERSHOOT_STRENGTH),ca=4356/361,cb=35442/1805,cc=16061/1805,bounceOut=$=>{if($===1||$===0)return $;const oe=$*$;return $<BOUNCE_FIRST_THRESHOLD?7.5625*oe:$<BOUNCE_SECOND_THRESHOLD?9.075*oe-9.9*$+3.4:$<BOUNCE_THIRD_THRESHOLD?ca*oe-cb*$+cc:10.8*$*$-20.52*$+10.72},bounceIn=reverseEasing(bounceOut),bounceInOut=$=>$<.5?.5*(1-bounceOut(1-$*2)):.5*bounceOut($*2-1)+.5;function defaultEasing($,oe){return $.map(()=>oe||easeInOut).splice(0,$.length-1)}function defaultOffset($){const oe=$.length;return $.map((ae,ie)=>ie!==0?ie/(oe-1):0)}function convertOffsetToTimes($,oe){return $.map(ae=>ae*oe)}function keyframes$1({from:$=0,to:oe=1,ease:ae,offset:ie,duration:le=300}){const pe={done:!1,value:$},_e=Array.isArray(oe)?oe:[$,oe],Ce=convertOffsetToTimes(ie&&ie.length===_e.length?ie:defaultOffset(_e),le);function $e(){return interpolate(Ce,_e,{ease:Array.isArray(ae)?ae:defaultEasing(_e,ae)})}let xe=$e();return{next:Ie=>(pe.value=xe(Ie),pe.done=Ie>=le,pe),flipTarget:()=>{_e.reverse(),xe=$e()}}}function decay({velocity:$=0,from:oe=0,power:ae=.8,timeConstant:ie=350,restDelta:le=.5,modifyTarget:pe}){const _e={done:!1,value:oe};let Ce=ae*$;const $e=oe+Ce,xe=pe===void 0?$e:pe($e);return xe!==$e&&(Ce=xe-oe),{next:Ie=>{const Ne=-Ce*Math.exp(-Ie/ie);return _e.done=!(Ne>le||Ne<-le),_e.value=_e.done?xe:xe+Ne,_e},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions($){if(Array.isArray($.to))return keyframes$1;if(types[$.type])return types[$.type];const oe=new Set(Object.keys($));return oe.has("ease")||oe.has("duration")&&!oe.has("dampingRatio")?keyframes$1:oe.has("dampingRatio")||oe.has("stiffness")||oe.has("mass")||oe.has("damping")||oe.has("restSpeed")||oe.has("restDelta")?spring:keyframes$1}function loopElapsed($,oe,ae=0){return $-oe-ae}function reverseElapsed($,oe,ae=0,ie=!0){return ie?loopElapsed(oe+-$,oe,ae):oe-($-oe)+ae}function hasRepeatDelayElapsed($,oe,ae,ie){return ie?$>=oe+ae:$<=-ae}const framesync=$=>{const oe=({delta:ae})=>$(ae);return{start:()=>sync.update(oe,!0),stop:()=>cancelSync.update(oe)}};function animate($){var oe,ae,{from:ie,autoplay:le=!0,driver:pe=framesync,elapsed:_e=0,repeat:Ce=0,repeatType:$e="loop",repeatDelay:xe=0,onPlay:Ie,onStop:Ne,onComplete:Fe,onRepeat:ze,onUpdate:At}=$,Lt=__rest($,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:hn}=Lt,vn,_n=0,bn=Lt.duration,Cn,En=!1,$n=!0,wn;const Tn=detectAnimationFromOptions(Lt);!((ae=(oe=Tn).needsInterpolation)===null||ae===void 0)&&ae.call(oe,ie,hn)&&(wn=interpolate([0,100],[ie,hn],{clamp:!1}),ie=0,hn=100);const xn=Tn(Object.assign(Object.assign({},Lt),{from:ie,to:hn}));function kn(){_n++,$e==="reverse"?($n=_n%2===0,_e=reverseElapsed(_e,bn,xe,$n)):(_e=loopElapsed(_e,bn,xe),$e==="mirror"&&xn.flipTarget()),En=!1,ze&&ze()}function An(){vn.stop(),Fe&&Fe()}function On(Rn){if($n||(Rn=-Rn),_e+=Rn,!En){const zn=xn.next(Math.max(0,_e));Cn=zn.value,wn&&(Cn=wn(Cn)),En=$n?zn.done:_e<=0}At==null||At(Cn),En&&(_n===0&&(bn??(bn=_e)),_n<Ce?hasRepeatDelayElapsed(_e,bn,xe,$n)&&kn():An())}function Nn(){Ie==null||Ie(),vn=pe(On),vn.start()}return le&&Nn(),{stop:()=>{Ne==null||Ne(),vn.stop()}}}function velocityPerSecond($,oe){return oe?$*(1e3/oe):0}function inertia({from:$=0,velocity:oe=0,min:ae,max:ie,power:le=.8,timeConstant:pe=750,bounceStiffness:_e=500,bounceDamping:Ce=10,restDelta:$e=1,modifyTarget:xe,driver:Ie,onUpdate:Ne,onComplete:Fe,onStop:ze}){let At;function Lt(bn){return ae!==void 0&&bn<ae||ie!==void 0&&bn>ie}function hn(bn){return ae===void 0?ie:ie===void 0||Math.abs(ae-bn)<Math.abs(ie-bn)?ae:ie}function vn(bn){At==null||At.stop(),At=animate(Object.assign(Object.assign({},bn),{driver:Ie,onUpdate:Cn=>{var En;Ne==null||Ne(Cn),(En=bn.onUpdate)===null||En===void 0||En.call(bn,Cn)},onComplete:Fe,onStop:ze}))}function _n(bn){vn(Object.assign({type:"spring",stiffness:_e,damping:Ce,restDelta:$e},bn))}if(Lt($))_n({from:$,velocity:oe,to:hn($)});else{let bn=le*oe+$;typeof xe<"u"&&(bn=xe(bn));const Cn=hn(bn),En=Cn===ae?-1:1;let $n,wn;const Tn=xn=>{$n=wn,wn=xn,oe=velocityPerSecond(xn-$n,getFrameData().delta),(En===1&&xn>Cn||En===-1&&xn<Cn)&&_n({from:xn,to:Cn,velocity:oe})};vn({type:"decay",from:$,velocity:oe,timeConstant:pe,power:le,restDelta:$e,modifyTarget:xe,onUpdate:Lt(bn)?Tn:void 0})}return{stop:()=>At==null?void 0:At.stop()}}const a=($,oe)=>1-3*oe+3*$,b=($,oe)=>3*oe-6*$,c$1=$=>3*$,calcBezier=($,oe,ae)=>((a(oe,ae)*$+b(oe,ae))*$+c$1(oe))*$,getSlope=($,oe,ae)=>3*a(oe,ae)*$*$+2*b(oe,ae)*$+c$1(oe),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide($,oe,ae,ie,le){let pe,_e,Ce=0;do _e=oe+(ae-oe)/2,pe=calcBezier(_e,ie,le)-$,pe>0?ae=_e:oe=_e;while(Math.abs(pe)>subdivisionPrecision&&++Ce<subdivisionMaxIterations);return _e}const newtonIterations=8,newtonMinSlope=.001;function newtonRaphsonIterate($,oe,ae,ie){for(let le=0;le<newtonIterations;++le){const pe=getSlope(oe,ae,ie);if(pe===0)return oe;const _e=calcBezier(oe,ae,ie)-$;oe-=_e/pe}return oe}const kSplineTableSize=11,kSampleStepSize=1/(kSplineTableSize-1);function cubicBezier($,oe,ae,ie){if($===oe&&ae===ie)return linear;const le=new Float32Array(kSplineTableSize);for(let _e=0;_e<kSplineTableSize;++_e)le[_e]=calcBezier(_e*kSampleStepSize,$,ae);function pe(_e){let Ce=0,$e=1;const xe=kSplineTableSize-1;for(;$e!==xe&&le[$e]<=_e;++$e)Ce+=kSampleStepSize;--$e;const Ie=(_e-le[$e])/(le[$e+1]-le[$e]),Ne=Ce+Ie*kSampleStepSize,Fe=getSlope(Ne,$,ae);return Fe>=newtonMinSlope?newtonRaphsonIterate(_e,Ne,$,ae):Fe===0?Ne:binarySubdivide(_e,Ce,Ce+kSampleStepSize,$,ae)}return _e=>_e===0||_e===1?_e:calcBezier(pe(_e),oe,ie)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(oe){return this.subscriptions.add(oe),()=>this.subscriptions.delete(oe)}notify(oe,ae,ie){if(this.subscriptions.size)for(const le of this.subscriptions)le(oe,ae,ie)}clear(){this.subscriptions.clear()}}const isFloat=$=>!isNaN(parseFloat($));class MotionValue{constructor(oe){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=ae=>{this.prev=this.current,this.current=ae;const{delta:ie,timestamp:le}=getFrameData();this.lastUpdated!==le&&(this.timeDelta=ie,this.lastUpdated=le),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:ae})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),ae!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=oe,this.canTrackVelocity=isFloat(this.current)}onChange(oe){return this.updateSubscribers.add(oe)}clearListeners(){this.updateSubscribers.clear()}set(oe){this.updateAndNotify(oe)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(oe){return this.stop(),new Promise(ae=>{const{stop:ie}=oe(ae);this.stopAnimation=ie}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.stop()}}function getMotionValue($){return new MotionValue($)}const{isArray:isArray$2}=Array;function useMotionValues(){const $=ref({}),oe=ie=>{const le=pe=>{$.value[pe]&&($.value[pe].stop(),$.value[pe].destroy(),del($.value,pe))};ie?isArray$2(ie)?ie.forEach(le):le(ie):Object.keys($.value).forEach(le)},ae=(ie,le,pe)=>{if($.value[ie])return $.value[ie];const _e=getMotionValue(le);return _e.onChange(Ce=>{set$3(pe,ie,Ce)}),set$3($.value,ie,_e),_e};return tryOnUnmounted(oe),{motionValues:$,get:ae,stop:oe}}const isKeyframesTarget=$=>Array.isArray($),underDampedSpring=()=>({type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}),criticallyDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}),overDampedSpring=$=>({type:"spring",stiffness:550,damping:$===0?100:30,restDelta:.01,restSpeed:10}),linearTween=()=>({type:"keyframes",ease:"linear",duration:300}),keyframes=$=>({type:"keyframes",duration:800,values:$}),defaultTransitions={default:overDampedSpring,x:underDampedSpring,y:underDampedSpring,z:underDampedSpring,rotate:underDampedSpring,rotateX:underDampedSpring,rotateY:underDampedSpring,rotateZ:underDampedSpring,scaleX:criticallyDampedSpring,scaleY:criticallyDampedSpring,scale:criticallyDampedSpring,backgroundColor:linearTween,color:linearTween,opacity:linearTween},getDefaultTransition=($,oe)=>{let ae;return isKeyframesTarget(oe)?ae=keyframes:ae=defaultTransitions[$]||defaultTransitions.default,{to:oe,...ae(oe)}},int={...number$1,transform:Math.round},valueTypes={color:color$1,backgroundColor:color$1,outlineColor:color$1,fill:color$1,stroke:color$1,borderColor:color$1,borderTopColor:color$1,borderRightColor:color$1,borderBottomColor:color$1,borderLeftColor:color$1,borderWidth:px,borderTopWidth:px,borderRightWidth:px,borderBottomWidth:px,borderLeftWidth:px,borderRadius:px,radius:px,borderTopLeftRadius:px,borderTopRightRadius:px,borderBottomRightRadius:px,borderBottomLeftRadius:px,width:px,maxWidth:px,height:px,maxHeight:px,size:px,top:px,right:px,bottom:px,left:px,padding:px,paddingTop:px,paddingRight:px,paddingBottom:px,paddingLeft:px,margin:px,marginTop:px,marginRight:px,marginBottom:px,marginLeft:px,rotate:degrees,rotateX:degrees,rotateY:degrees,rotateZ:degrees,scale:scale$3,scaleX:scale$3,scaleY:scale$3,scaleZ:scale$3,skew:degrees,skewX:degrees,skewY:degrees,distance:px,translateX:px,translateY:px,translateZ:px,x:px,y:px,z:px,perspective:px,transformPerspective:px,opacity:alpha,originX:progressPercentage,originY:progressPercentage,originZ:px,zIndex:int,filter:filter$1,WebkitFilter:filter$1,fillOpacity:alpha,strokeOpacity:alpha,numOctaves:int},getValueType=$=>valueTypes[$],getValueAsType=($,oe)=>oe&&typeof $=="number"&&oe.transform?oe.transform($):$;function getAnimatableNone($,oe){let ae=getValueType($);return ae!==filter$1&&(ae=complex),ae.getAnimatableNone?ae.getAnimatableNone(oe):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut},easingDefinitionToFunction=$=>{if(Array.isArray($)){const[oe,ae,ie,le]=$;return cubicBezier(oe,ae,ie,le)}else if(typeof $=="string")return easingLookup[$];return $},isEasingArray=$=>Array.isArray($)&&typeof $[0]!="number",isAnimatable=($,oe)=>$==="zIndex"?!1:!!(typeof oe=="number"||Array.isArray(oe)||typeof oe=="string"&&complex.test(oe)&&!oe.startsWith("url("));function hydrateKeyframes($){return Array.isArray($.to)&&$.to[0]===null&&($.to=[...$.to],$.to[0]=$.from),$}function convertTransitionToAnimationOptions({ease:$,times:oe,delay:ae,...ie}){const le={...ie};return oe&&(le.offset=oe),$&&(le.ease=isEasingArray($)?$.map(easingDefinitionToFunction):easingDefinitionToFunction($)),ae&&(le.elapsed=-ae),le}function getPopmotionAnimationOptions($,oe,ae){return Array.isArray(oe.to)&&($.duration||($.duration=800)),hydrateKeyframes(oe),isTransitionDefined($)||($={...$,...getDefaultTransition(ae,oe.to)}),{...oe,...convertTransitionToAnimationOptions($)}}function isTransitionDefined({delay:$,repeat:oe,repeatType:ae,repeatDelay:ie,from:le,...pe}){return!!Object.keys(pe).length}function getValueTransition($,oe){return $[oe]||$.default||$}function getAnimation($,oe,ae,ie,le){const pe=getValueTransition(ie,$);let _e=pe.from===null||pe.from===void 0?oe.get():pe.from;const Ce=isAnimatable($,ae);_e==="none"&&Ce&&typeof ae=="string"&&(_e=getAnimatableNone($,ae));const $e=isAnimatable($,_e);function xe(Ne){const Fe={from:_e,to:ae,velocity:ie.velocity?ie.velocity:oe.getVelocity(),onUpdate:ze=>oe.set(ze)};return pe.type==="inertia"||pe.type==="decay"?inertia({...Fe,...pe}):animate({...getPopmotionAnimationOptions(pe,Fe,$),onUpdate:ze=>{Fe.onUpdate(ze),pe.onUpdate&&pe.onUpdate(ze)},onComplete:()=>{ie.onComplete&&ie.onComplete(),le&&le(),Ne&&Ne()}})}function Ie(Ne){return oe.set(ae),ie.onComplete&&ie.onComplete(),le&&le(),Ne&&Ne(),{stop:()=>{}}}return!$e||!Ce||pe.type===!1?Ie:xe}function useMotionTransitions(){const{motionValues:$,stop:oe,get:ae}=useMotionValues();return{motionValues:$,stop:oe,push:(le,pe,_e,Ce={},$e)=>{const xe=_e[le],Ie=ae(le,xe,_e);if(Ce&&Ce.immediate){Ie.set(pe);return}const Ne=getAnimation(le,Ie,pe,Ce,$e);Ie.start(Ne)}}}function useMotionControls($,oe={},{motionValues:ae,push:ie,stop:le}=useMotionTransitions()){const pe=unref(oe),_e=ref(!1),Ce=watch(ae,Fe=>{_e.value=Object.values(Fe).filter(ze=>ze.isAnimating()).length>0},{immediate:!0,deep:!0}),$e=Fe=>{if(!pe||!pe[Fe])throw new Error(`The variant ${Fe} does not exist.`);return pe[Fe]},xe=Fe=>(typeof Fe=="string"&&(Fe=$e(Fe)),Promise.all(Object.entries(Fe).map(([ze,At])=>{if(ze!=="transition")return new Promise(Lt=>{ie(ze,At,$,Fe.transition||getDefaultTransition(ze,Fe[ze]),Lt)})}).filter(Boolean)));return{isAnimating:_e,apply:xe,set:Fe=>{const ze=isObject$4(Fe)?Fe:$e(Fe);Object.entries(ze).forEach(([At,Lt])=>{At!=="transition"&&ie(At,Lt,$,{immediate:!0})})},stopTransitions:()=>{Ce(),le()},leave:async Fe=>{let ze;if(pe&&(pe.leave&&(ze=pe.leave),!pe.leave&&pe.initial&&(ze=pe.initial)),!ze){Fe();return}await xe(ze),Fe()}}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:$,state:oe,variants:ae,apply:ie}){const le=unref(ae),pe=[],_e=(...At)=>{const Lt=useEventListener.apply(null,At);return pe.push(Lt),Lt},Ce=ref(!1),$e=ref(!1),xe=ref(!1),Ie=computed(()=>{let At=[];return le&&(le.hovered&&(At=[...At,...Object.keys(le.hovered)]),le.tapped&&(At=[...At,...Object.keys(le.tapped)]),le.focused&&(At=[...At,...Object.keys(le.focused)])),At}),Ne=computed(()=>{const At={};Object.assign(At,oe.value),Ce.value&&le.hovered&&Object.assign(At,le.hovered),$e.value&&le.tapped&&Object.assign(At,le.tapped),xe.value&&le.focused&&Object.assign(At,le.focused);for(const Lt in At)Ie.value.includes(Lt)||delete At[Lt];return At});le.hovered&&(_e($,"mouseenter",()=>{Ce.value=!0}),_e($,"mouseleave",()=>{Ce.value=!1,$e.value=!1}),_e($,"mouseout",()=>{Ce.value=!1,$e.value=!1})),le.tapped&&(supportsMouseEvents()&&(_e($,"mousedown",()=>{$e.value=!0}),_e($,"mouseup",()=>{$e.value=!1})),supportsPointerEvents()&&(_e($,"pointerdown",()=>{$e.value=!0}),_e($,"pointerup",()=>{$e.value=!1})),supportsTouchEvents()&&(_e($,"touchstart",()=>{$e.value=!0}),_e($,"touchend",()=>{$e.value=!1}))),le.focused&&(_e($,"focus",()=>{xe.value=!0}),_e($,"blur",()=>{xe.value=!1}));const Fe=watch(Ne,ie);return{stop:()=>{pe.forEach(At=>At()),Fe()}}}function registerLifeCycleHooks({set:$,target:oe,variants:ae,variant:ie}){const le=unref(ae);return{stop:watch(()=>oe,()=>{le&&(le.initial&&$("initial"),le.enter&&(ie.value="enter"))},{immediate:!0,flush:"pre"})}}function registerVariantsSync({state:$,apply:oe}){return{stop:watch($,ie=>{ie&&oe(ie)},{immediate:!0})}}function registerVisibilityHooks({target:$,variants:oe,variant:ae}){const ie=unref(oe);let le=noop$1;if(ie&&(ie.visible||ie.visibleOnce)){const{stop:pe}=useIntersectionObserver($,([{isIntersecting:_e}])=>{ie.visible?_e?ae.value="visible":ae.value="initial":ie.visibleOnce&&(_e?ae.value!=="visibleOnce"&&(ae.value="visibleOnce"):ae.value||(ae.value="initial"))});le=pe}return{stop:le}}function useMotionFeatures($,oe={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){const ae=ref([]);if(oe.lifeCycleHooks){const{stop:le}=registerLifeCycleHooks($);ae.value.push(le)}if(oe.syncVariants){const{stop:le}=registerVariantsSync($);ae.value.push(le)}if(oe.visibilityHooks){const{stop:le}=registerVisibilityHooks($);ae.value.push(le)}if(oe.eventListeners){const{stop:le}=registerEventListeners($);ae.value.push(le)}const ie=()=>ae.value.forEach(le=>le());return tryOnUnmounted(ie),{stop:ie}}function reactiveStyle($={}){const oe=reactive({...$}),ae=ref({});return watch(oe,()=>{const ie={};for(const[le,pe]of Object.entries(oe)){const _e=getValueType(le),Ce=getValueAsType(pe,_e);ie[le]=Ce}ae.value=ie},{immediate:!0,deep:!0}),{state:oe,style:ae}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach($=>{transformAxes.forEach(oe=>{const ae=$+oe;transformProps.push(ae)})});const transformPropSet=new Set(transformProps);function isTransformProp($){return transformPropSet.has($)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp($){return transformOriginProps.has($)}function splitValues($){const oe={},ae={};return Object.entries($).forEach(([ie,le])=>{isTransformProp(ie)||isTransformOriginProp(ie)?oe[ie]=le:ae[ie]=le}),{transform:oe,style:ae}}function useElementStyle($,oe){let ae,ie;const{state:le,style:pe}=reactiveStyle(),_e=watch(()=>unrefElement($),xe=>{if(xe){ie=xe;for(const Ie of Object.keys(valueTypes))xe.style[Ie]===null||xe.style[Ie]===""||isTransformProp(Ie)||isTransformOriginProp(Ie)||set$3(le,Ie,xe.style[Ie]);ae&&Object.entries(ae).forEach(([Ie,Ne])=>set$3(xe.style,Ie,Ne)),oe&&oe(le)}},{immediate:!0}),Ce=watch(pe,xe=>{if(!ie){ae=xe;return}for(const Ie in xe)set$3(ie.style,Ie,xe[Ie])},{immediate:!0});return{style:le,stop:()=>{ie=void 0,ae=void 0,_e(),Ce()}}}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform($={},oe=!0){const ae=reactive({...$}),ie=ref("");return watch(ae,le=>{let pe="",_e=!1;if(oe&&(le.x||le.y||le.z)){const Ce=[le.x||0,le.y||0,le.z||0].map(px.transform).join(",");pe+=`translate3d(${Ce}) `,_e=!0}for(const[Ce,$e]of Object.entries(le)){if(oe&&(Ce==="x"||Ce==="y"||Ce==="z"))continue;const xe=getValueType(Ce),Ie=getValueAsType($e,xe);pe+=`${translateAlias[Ce]||Ce}(${Ie}) `}oe&&!_e&&(pe+="translateZ(0px) "),ie.value=pe.trim()},{immediate:!0,deep:!0}),{state:ae,transform:ie}}function parseTransform($){const oe=$.trim().split(/\) |\)/);if(oe.length===1)return{};const ae=ie=>ie.endsWith("px")||ie.endsWith("deg")?parseFloat(ie):isNaN(Number(ie))?Number(ie):ie;return oe.reduce((ie,le)=>{if(!le)return ie;const[pe,_e]=le.split("("),$e=_e.split(",").map(Ie=>ae(Ie.endsWith(")")?Ie.replace(")",""):Ie.trim())),xe=$e.length===1?$e[0]:$e;return{...ie,[pe]:xe}},{})}function stateFromTransform($,oe){Object.entries(parseTransform(oe)).forEach(([ae,ie])=>{ie=parseFloat(ie);const le=["x","y","z"];if(ae==="translate3d"){if(ie===0){le.forEach(pe=>{set$3($,pe,0)});return}ie.forEach((pe,_e)=>{set$3($,le[_e],pe)});return}if(ae==="translateX"){set$3($,"x",ie);return}if(ae==="translateY"){set$3($,"y",ie);return}if(ae==="translateZ"){set$3($,"z",ie);return}set$3($,ae,ie)})}function useElementTransform($,oe){let ae,ie;const{state:le,transform:pe}=reactiveTransform(),_e=watch(()=>unrefElement($),xe=>{xe&&(ie=xe,xe.style.transform&&stateFromTransform(le,xe.style.transform),ae&&(xe.style.transform=ae),oe&&oe(le))},{immediate:!0}),Ce=watch(pe,xe=>{if(!ie){ae=xe;return}ie.style.transform=xe},{immediate:!0});return{transform:le,stop:()=>{ae=void 0,ie=void 0,_e(),Ce()}}}function useMotionProperties($,oe){const ae=reactive({}),ie=Ne=>{Object.entries(Ne).forEach(([Fe,ze])=>{set$3(ae,Fe,ze)})},{style:le,stop:pe}=useElementStyle($,ie),{transform:_e,stop:Ce}=useElementTransform($,ie),$e=watch(ae,Ne=>{Object.entries(Ne).forEach(([Fe,ze])=>{const At=isTransformProp(Fe)?_e:le;At[Fe]&&At[Fe]===ze||set$3(At,Fe,ze)})},{immediate:!0,deep:!0}),xe=watch(()=>unrefElement($),Ne=>{Ne&&oe&&ie(oe)},{immediate:!0});return{motionProperties:ae,style:le,transform:_e,stop:()=>{pe(),Ce(),$e(),xe()}}}function useMotionVariants($={}){const oe=unref($),ae=ref();return{state:computed(()=>{if(ae.value)return oe[ae.value]}),variant:ae}}function useMotion($,oe={},ae){const{motionProperties:ie,stop:le}=useMotionProperties($),{variant:pe,state:_e}=useMotionVariants(oe),Ce=useMotionControls(ie,oe),$e={target:$,variant:pe,variants:oe,state:_e,motionProperties:ie,...Ce,stop:(Ie=!1)=>{}},{stop:xe}=useMotionFeatures($e,ae);return $e.stop=(Ie=!1)=>{const Ne=()=>{$e.stopTransitions(),le(),xe()};if(!Ie&&oe.value&&oe.value.leave){const Fe=watch($e.isAnimating,ze=>{ze||(Fe(),Ne())})}else Ne()},tryOnUnmounted(()=>$e.stop()),$e}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"],resolveVariants=($,oe)=>{const ae=$.props?$.props:$.data&&$.data.attrs?$.data.attrs:{};ae&&(ae.variants&&isObject$4(ae.variants)&&(oe.value={...oe.value,...ae.variants}),directivePropsKeys.forEach(ie=>{if(ie==="delay"){if(ae&&ae[ie]&&isNumber$1(ae[ie])){const le=ae[ie];oe&&oe.value&&(oe.value.enter&&(oe.value.enter.transition||(oe.value.enter.transition={}),oe.value.enter.transition={...oe.value.enter.transition,delay:le}),oe.value.visible&&(oe.value.visible.transition||(oe.value.visible.transition={}),oe.value.visible.transition={...oe.value.visible.transition,delay:le}),oe.value.visibleOnce&&(oe.value.visibleOnce.transition||(oe.value.visibleOnce.transition={}),oe.value.visibleOnce.transition={...oe.value.visibleOnce.transition,delay:le}))}return}ie==="visible-once"&&(ie="visibleOnce"),ae&&ae[ie]&&isObject$4(ae[ie])&&(oe.value[ie]=ae[ie])}))},directive=$=>{const oe=(ie,le,pe)=>{const _e=le.value&&typeof le.value=="string"?le.value:pe.key;_e&&motionState[_e]&&motionState[_e].stop();const Ce=ref($||{});typeof le.value=="object"&&(Ce.value=le.value),resolveVariants(pe,Ce);const $e=useMotion(ie,Ce);ie.motionInstance=$e,_e&&set$3(motionState,_e,$e)},ae=ie=>{ie.motionInstance&&ie.motionInstance.stop()};return{created:oe,unmounted:ae,bind:oe,unbind:ae,getSSRProps(ie,le){const{initial:pe}=ie.value||le.props||{};if(!pe||Object.keys(pe).length===0)return;const{transform:_e,style:Ce}=splitValues(pe),{transform:$e}=reactiveTransform(_e),{style:xe}=reactiveStyle(Ce);return $e.value&&(xe.value.transform=$e.value),{style:xe.value}}}},fade={initial:{opacity:0},enter:{opacity:1}},fadeVisible={initial:{opacity:0},visible:{opacity:1}},fadeVisibleOnce={initial:{opacity:0},visibleOnce:{opacity:1}},pop$1={initial:{scale:0,opacity:0},enter:{scale:1,opacity:1}},popVisible={initial:{scale:0,opacity:0},visible:{scale:1,opacity:1}},popVisibleOnce={initial:{scale:0,opacity:0},visibleOnce:{scale:1,opacity:1}},rollLeft={initial:{x:-100,rotate:90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleLeft={initial:{x:-100,rotate:90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceLeft={initial:{x:-100,rotate:90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollRight={initial:{x:100,rotate:-90,opacity:0},enter:{x:0,rotate:0,opacity:1}},rollVisibleRight={initial:{x:100,rotate:-90,opacity:0},visible:{x:0,rotate:0,opacity:1}},rollVisibleOnceRight={initial:{x:100,rotate:-90,opacity:0},visibleOnce:{x:0,rotate:0,opacity:1}},rollTop={initial:{y:-100,rotate:-90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleTop={initial:{y:-100,rotate:-90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceTop={initial:{y:-100,rotate:-90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},rollBottom={initial:{y:100,rotate:90,opacity:0},enter:{y:0,rotate:0,opacity:1}},rollVisibleBottom={initial:{y:100,rotate:90,opacity:0},visible:{y:0,rotate:0,opacity:1}},rollVisibleOnceBottom={initial:{y:100,rotate:90,opacity:0},visibleOnce:{y:0,rotate:0,opacity:1}},slideLeft={initial:{x:-100,opacity:0},enter:{x:0,opacity:1}},slideVisibleLeft={initial:{x:-100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceLeft={initial:{x:-100,opacity:0},visibleOnce:{x:0,opacity:1}},slideRight={initial:{x:100,opacity:0},enter:{x:0,opacity:1}},slideVisibleRight={initial:{x:100,opacity:0},visible:{x:0,opacity:1}},slideVisibleOnceRight={initial:{x:100,opacity:0},visibleOnce:{x:0,opacity:1}},slideTop={initial:{y:-100,opacity:0},enter:{y:0,opacity:1}},slideVisibleTop={initial:{y:-100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceTop={initial:{y:-100,opacity:0},visibleOnce:{y:0,opacity:1}},slideBottom={initial:{y:100,opacity:0},enter:{y:0,opacity:1}},slideVisibleBottom={initial:{y:100,opacity:0},visible:{y:0,opacity:1}},slideVisibleOnceBottom={initial:{y:100,opacity:0},visibleOnce:{y:0,opacity:1}},presets={__proto__:null,fade,fadeVisible,fadeVisibleOnce,pop:pop$1,popVisible,popVisibleOnce,rollBottom,rollLeft,rollRight,rollTop,rollVisibleBottom,rollVisibleLeft,rollVisibleRight,rollVisibleTop,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleRight,slideVisibleTop,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop};function slugify($){const oe="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",ae="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",ie=new RegExp(oe.split("").join("|"),"g");return $.toString().replace(/[A-Z]/g,le=>`-${le}`).toLowerCase().replace(/\s+/g,"-").replace(ie,le=>ae.charAt(oe.indexOf(le))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install($,oe){if($.directive("motion",directive()),!oe||oe&&!oe.excludePresets)for(const ae in presets){const ie=presets[ae];$.directive(`motion-${slugify(ae)}`,directive(ie))}if(oe&&oe.directives)for(const ae in oe.directives){const ie=oe.directives[ae];!ie.initial&&__DEV__&&console.warn(`Your directive v-motion-${ae} is missing initial variant!`),$.directive(`motion-${ae}`,directive(ie))}}};/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var extendStatics=function($,oe){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,ie){ae.__proto__=ie}||function(ae,ie){for(var le in ie)Object.prototype.hasOwnProperty.call(ie,le)&&(ae[le]=ie[le])},extendStatics($,oe)};function __extends($,oe){if(typeof oe!="function"&&oe!==null)throw new TypeError("Class extends value "+String(oe)+" is not a constructor or null");extendStatics($,oe);function ae(){this.constructor=$}$.prototype=oe===null?Object.create(oe):(ae.prototype=oe.prototype,new ae)}var Browser=function(){function $(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return $}(),Env=function(){function $(){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<"u"}return $}(),env=new Env;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(env.wxa=!0,env.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?env.worker=!0:typeof navigator>"u"?(env.node=!0,env.svgSupported=!0):detect(navigator.userAgent,env);function detect($,oe){var ae=oe.browser,ie=$.match(/Firefox\/([\d.]+)/),le=$.match(/MSIE\s([\d.]+)/)||$.match(/Trident\/.+?rv:(([\d.]+))/),pe=$.match(/Edge?\/([\d.]+)/),_e=/micromessenger/i.test($);ie&&(ae.firefox=!0,ae.version=ie[1]),le&&(ae.ie=!0,ae.version=le[1]),pe&&(ae.edge=!0,ae.version=pe[1],ae.newEdge=+pe[1].split(".")[0]>18),_e&&(ae.weChat=!0),oe.svgSupported=typeof SVGRect<"u",oe.touchEventsSupported="ontouchstart"in window&&!ae.ie&&!ae.edge,oe.pointerEventsSupported="onpointerdown"in window&&(ae.edge||ae.ie&&+ae.version>=11),oe.domSupported=typeof document<"u";var Ce=document.documentElement.style;oe.transform3dSupported=(ae.ie&&"transition"in Ce||ae.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in Ce)&&!("OTransition"in Ce),oe.transformSupported=oe.transform3dSupported||ae.ie&&+ae.version>=9}const env$1=env;var 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($){var oe={};if(typeof JSON>"u")return oe;for(var ae=0;ae<$.length;ae++){var ie=String.fromCharCode(ae+32),le=($.charCodeAt(ae)-OFFSET)/SCALE;oe[ie]=le}return oe}var DEFAULT_TEXT_WIDTH_MAP=getTextWidthMap(defaultWidthMapStr),platformApi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var $,oe;return function(ae,ie){if(!$){var le=platformApi.createCanvas();$=le&&le.getContext("2d")}if($)return oe!==ie&&(oe=$.font=ie||DEFAULT_FONT),$.measureText(ae);ae=ae||"",ie=ie||DEFAULT_FONT;var pe=/(\d+)px/.exec(ie),_e=pe&&+pe[1]||DEFAULT_FONT_SIZE,Ce=0;if(ie.indexOf("mono")>=0)Ce=_e*ae.length;else for(var $e=0;$e<ae.length;$e++){var xe=DEFAULT_TEXT_WIDTH_MAP[ae[$e]];Ce+=xe==null?_e:xe*_e}return{width:Ce}}}(),loadImage:function($,oe,ae){var ie=new Image;return ie.onload=oe,ie.onerror=ae,ie.src=$,ie}};function setPlatformAPI($){for(var oe in platformApi)$[oe]&&(platformApi[oe]=$[oe])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function($,oe){return $["[object "+oe+"]"]=!0,$},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function($,oe){return $["[object "+oe+"Array]"]=!0,$},{}),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 $=[],oe=0;oe<arguments.length;oe++)$[oe]=arguments[oe];typeof console<"u"&&console.error.apply(console,$)}function clone$3($){if($==null||typeof $!="object")return $;var oe=$,ae=objToString.call($);if(ae==="[object Array]"){if(!isPrimitive($)){oe=[];for(var ie=0,le=$.length;ie<le;ie++)oe[ie]=clone$3($[ie])}}else if(TYPED_ARRAY[ae]){if(!isPrimitive($)){var pe=$.constructor;if(pe.from)oe=pe.from($);else{oe=new pe($.length);for(var ie=0,le=$.length;ie<le;ie++)oe[ie]=$[ie]}}}else if(!BUILTIN_OBJECT[ae]&&!isPrimitive($)&&!isDom($)){oe={};for(var _e in $)$.hasOwnProperty(_e)&&_e!==protoKey&&(oe[_e]=clone$3($[_e]))}return oe}function merge($,oe,ae){if(!isObject$3(oe)||!isObject$3($))return ae?clone$3(oe):$;for(var ie in oe)if(oe.hasOwnProperty(ie)&&ie!==protoKey){var le=$[ie],pe=oe[ie];isObject$3(pe)&&isObject$3(le)&&!isArray$1(pe)&&!isArray$1(le)&&!isDom(pe)&&!isDom(le)&&!isBuiltInObject(pe)&&!isBuiltInObject(le)&&!isPrimitive(pe)&&!isPrimitive(le)?merge(le,pe,ae):(ae||!(ie in $))&&($[ie]=clone$3(oe[ie]))}return $}function mergeAll($,oe){for(var ae=$[0],ie=1,le=$.length;ie<le;ie++)ae=merge(ae,$[ie],oe);return ae}function extend($,oe){if(Object.assign)Object.assign($,oe);else for(var ae in oe)oe.hasOwnProperty(ae)&&ae!==protoKey&&($[ae]=oe[ae]);return $}function defaults($,oe,ae){for(var ie=keys(oe),le=0;le<ie.length;le++){var pe=ie[le];(ae?oe[pe]!=null:$[pe]==null)&&($[pe]=oe[pe])}return $}var createCanvas=platformApi.createCanvas;function indexOf($,oe){if($){if($.indexOf)return $.indexOf(oe);for(var ae=0,ie=$.length;ae<ie;ae++)if($[ae]===oe)return ae}return-1}function inherits($,oe){var ae=$.prototype;function ie(){}ie.prototype=oe.prototype,$.prototype=new ie;for(var le in ae)ae.hasOwnProperty(le)&&($.prototype[le]=ae[le]);$.prototype.constructor=$,$.superClass=oe}function mixin($,oe,ae){if($="prototype"in $?$.prototype:$,oe="prototype"in oe?oe.prototype:oe,Object.getOwnPropertyNames)for(var ie=Object.getOwnPropertyNames(oe),le=0;le<ie.length;le++){var pe=ie[le];pe!=="constructor"&&(ae?oe[pe]!=null:$[pe]==null)&&($[pe]=oe[pe])}else defaults($,oe,ae)}function isArrayLike($){return!$||typeof $=="string"?!1:typeof $.length=="number"}function each$c($,oe,ae){if($&&oe)if($.forEach&&$.forEach===nativeForEach)$.forEach(oe,ae);else if($.length===+$.length)for(var ie=0,le=$.length;ie<le;ie++)oe.call(ae,$[ie],ie,$);else for(var pe in $)$.hasOwnProperty(pe)&&oe.call(ae,$[pe],pe,$)}function map$2($,oe,ae){if(!$)return[];if(!oe)return slice($);if($.map&&$.map===nativeMap)return $.map(oe,ae);for(var ie=[],le=0,pe=$.length;le<pe;le++)ie.push(oe.call(ae,$[le],le,$));return ie}function reduce($,oe,ae,ie){if($&&oe){for(var le=0,pe=$.length;le<pe;le++)ae=oe.call(ie,ae,$[le],le,$);return ae}}function filter($,oe,ae){if(!$)return[];if(!oe)return slice($);if($.filter&&$.filter===nativeFilter)return $.filter(oe,ae);for(var ie=[],le=0,pe=$.length;le<pe;le++)oe.call(ae,$[le],le,$)&&ie.push($[le]);return ie}function find($,oe,ae){if($&&oe){for(var ie=0,le=$.length;ie<le;ie++)if(oe.call(ae,$[ie],ie,$))return $[ie]}}function keys($){if(!$)return[];if(Object.keys)return Object.keys($);var oe=[];for(var ae in $)$.hasOwnProperty(ae)&&oe.push(ae);return oe}function bindPolyfill($,oe){for(var ae=[],ie=2;ie<arguments.length;ie++)ae[ie-2]=arguments[ie];return function(){return $.apply(oe,ae.concat(nativeSlice.call(arguments)))}}var bind$1=protoFunction&&isFunction(protoFunction.bind)?protoFunction.call.bind(protoFunction.bind):bindPolyfill;function curry$1($){for(var oe=[],ae=1;ae<arguments.length;ae++)oe[ae-1]=arguments[ae];return function(){return $.apply(this,oe.concat(nativeSlice.call(arguments)))}}function isArray$1($){return Array.isArray?Array.isArray($):objToString.call($)==="[object Array]"}function isFunction($){return typeof $=="function"}function isString($){return typeof $=="string"}function isStringSafe($){return objToString.call($)==="[object String]"}function isNumber($){return typeof $=="number"}function isObject$3($){var oe=typeof $;return oe==="function"||!!$&&oe==="object"}function isBuiltInObject($){return!!BUILTIN_OBJECT[objToString.call($)]}function isTypedArray($){return!!TYPED_ARRAY[objToString.call($)]}function isDom($){return typeof $=="object"&&typeof $.nodeType=="number"&&typeof $.ownerDocument=="object"}function isGradientObject($){return $.colorStops!=null}function isImagePatternObject($){return $.image!=null}function isRegExp($){return objToString.call($)==="[object RegExp]"}function eqNaN($){return $!==$}function retrieve(){for(var $=[],oe=0;oe<arguments.length;oe++)$[oe]=arguments[oe];for(var ae=0,ie=$.length;ae<ie;ae++)if($[ae]!=null)return $[ae]}function retrieve2($,oe){return $??oe}function retrieve3($,oe,ae){return $??oe??ae}function slice($){for(var oe=[],ae=1;ae<arguments.length;ae++)oe[ae-1]=arguments[ae];return nativeSlice.apply($,oe)}function normalizeCssArray$1($){if(typeof $=="number")return[$,$,$,$];var oe=$.length;return oe===2?[$[0],$[1],$[0],$[1]]:oe===3?[$[0],$[1],$[2],$[1]]:$}function assert($,oe){if(!$)throw new Error(oe)}function trim$1($){return $==null?null:typeof $.trim=="function"?$.trim():$.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var primitiveKey="__ec_primitive__";function setAsPrimitive($){$[primitiveKey]=!0}function isPrimitive($){return $[primitiveKey]}var MapPolyfill=function(){function $(){this.data={}}return $.prototype.delete=function(oe){var ae=this.has(oe);return ae&&delete this.data[oe],ae},$.prototype.has=function(oe){return this.data.hasOwnProperty(oe)},$.prototype.get=function(oe){return this.data[oe]},$.prototype.set=function(oe,ae){return this.data[oe]=ae,this},$.prototype.keys=function(){return keys(this.data)},$.prototype.forEach=function(oe){var ae=this.data;for(var ie in ae)ae.hasOwnProperty(ie)&&oe(ae[ie],ie)},$}(),isNativeMapSupported=typeof Map=="function";function maybeNativeMap(){return isNativeMapSupported?new Map:new MapPolyfill}var HashMap=function(){function $(oe){var ae=isArray$1(oe);this.data=maybeNativeMap();var ie=this;oe instanceof $?oe.each(le):oe&&each$c(oe,le);function le(pe,_e){ae?ie.set(pe,_e):ie.set(_e,pe)}}return $.prototype.hasKey=function(oe){return this.data.has(oe)},$.prototype.get=function(oe){return this.data.get(oe)},$.prototype.set=function(oe,ae){return this.data.set(oe,ae),ae},$.prototype.each=function(oe,ae){this.data.forEach(function(ie,le){oe.call(ae,ie,le)})},$.prototype.keys=function(){var oe=this.data.keys();return isNativeMapSupported?Array.from(oe):oe},$.prototype.removeKey=function(oe){this.data.delete(oe)},$}();function createHashMap($){return new HashMap($)}function concatArray($,oe){for(var ae=new $.constructor($.length+oe.length),ie=0;ie<$.length;ie++)ae[ie]=$[ie];for(var le=$.length,ie=0;ie<oe.length;ie++)ae[ie+le]=oe[ie];return ae}function createObject($,oe){var ae;if(Object.create)ae=Object.create($);else{var ie=function(){};ie.prototype=$,ae=new ie}return oe&&extend(ae,oe),ae}function disableUserSelect($){var oe=$.style;oe.webkitUserSelect="none",oe.userSelect="none",oe.webkitTapHighlightColor="rgba(0,0,0,0)",oe["-webkit-touch-callout"]="none"}function hasOwn($,oe){return $.hasOwnProperty(oe)}function noop(){}var RADIAN_TO_DEGREE=180/Math.PI;const util$1=Object.freeze(Object.defineProperty({__proto__:null,HashMap,RADIAN_TO_DEGREE,assert,bind:bind$1,clone:clone$3,concatArray,createCanvas,createHashMap,createObject,curry:curry$1,defaults,disableUserSelect,each:each$c,eqNaN,extend,filter,find,guid,hasOwn,indexOf,inherits,isArray:isArray$1,isArrayLike,isBuiltInObject,isDom,isFunction,isGradientObject,isImagePatternObject,isNumber,isObject:isObject$3,isPrimitive,isRegExp,isString,isStringSafe,isTypedArray,keys,logError,map:map$2,merge,mergeAll,mixin,noop,normalizeCssArray:normalizeCssArray$1,reduce,retrieve,retrieve2,retrieve3,setAsPrimitive,slice,trim:trim$1},Symbol.toStringTag,{value:"Module"}));function create$1($,oe){return $==null&&($=0),oe==null&&(oe=0),[$,oe]}function copy$1($,oe){return $[0]=oe[0],$[1]=oe[1],$}function clone$2($){return[$[0],$[1]]}function set$1($,oe,ae){return $[0]=oe,$[1]=ae,$}function add($,oe,ae){return $[0]=oe[0]+ae[0],$[1]=oe[1]+ae[1],$}function scaleAndAdd($,oe,ae,ie){return $[0]=oe[0]+ae[0]*ie,$[1]=oe[1]+ae[1]*ie,$}function sub($,oe,ae){return $[0]=oe[0]-ae[0],$[1]=oe[1]-ae[1],$}function len($){return Math.sqrt(lenSquare($))}var length=len;function lenSquare($){return $[0]*$[0]+$[1]*$[1]}var lengthSquare=lenSquare;function mul$1($,oe,ae){return $[0]=oe[0]*ae[0],$[1]=oe[1]*ae[1],$}function div($,oe,ae){return $[0]=oe[0]/ae[0],$[1]=oe[1]/ae[1],$}function dot($,oe){return $[0]*oe[0]+$[1]*oe[1]}function scale$2($,oe,ae){return $[0]=oe[0]*ae,$[1]=oe[1]*ae,$}function normalize$1($,oe){var ae=len(oe);return ae===0?($[0]=0,$[1]=0):($[0]=oe[0]/ae,$[1]=oe[1]/ae),$}function distance($,oe){return Math.sqrt(($[0]-oe[0])*($[0]-oe[0])+($[1]-oe[1])*($[1]-oe[1]))}var dist$1=distance;function distanceSquare($,oe){return($[0]-oe[0])*($[0]-oe[0])+($[1]-oe[1])*($[1]-oe[1])}var distSquare=distanceSquare;function negate($,oe){return $[0]=-oe[0],$[1]=-oe[1],$}function lerp$1($,oe,ae,ie){return $[0]=oe[0]+ie*(ae[0]-oe[0]),$[1]=oe[1]+ie*(ae[1]-oe[1]),$}function applyTransform$1($,oe,ae){var ie=oe[0],le=oe[1];return $[0]=ae[0]*ie+ae[2]*le+ae[4],$[1]=ae[1]*ie+ae[3]*le+ae[5],$}function min$1($,oe,ae){return $[0]=Math.min(oe[0],ae[0]),$[1]=Math.min(oe[1],ae[1]),$}function max$1($,oe,ae){return $[0]=Math.max(oe[0],ae[0]),$[1]=Math.max(oe[1],ae[1]),$}const vector=Object.freeze(Object.defineProperty({__proto__:null,add,applyTransform:applyTransform$1,clone:clone$2,copy:copy$1,create:create$1,dist:dist$1,distSquare,distance,distanceSquare,div,dot,len,lenSquare,length,lengthSquare,lerp:lerp$1,max:max$1,min:min$1,mul:mul$1,negate,normalize:normalize$1,scale:scale$2,scaleAndAdd,set:set$1,sub},Symbol.toStringTag,{value:"Module"}));var Param=function(){function $(oe,ae){this.target=oe,this.topTarget=ae&&ae.topTarget}return $}(),Draggable=function(){function $(oe){this.handler=oe,oe.on("mousedown",this._dragStart,this),oe.on("mousemove",this._drag,this),oe.on("mouseup",this._dragEnd,this)}return $.prototype._dragStart=function(oe){for(var ae=oe.target;ae&&!ae.draggable;)ae=ae.parent||ae.__hostTarget;ae&&(this._draggingTarget=ae,ae.dragging=!0,this._x=oe.offsetX,this._y=oe.offsetY,this.handler.dispatchToElement(new Param(ae,oe),"dragstart",oe.event))},$.prototype._drag=function(oe){var ae=this._draggingTarget;if(ae){var ie=oe.offsetX,le=oe.offsetY,pe=ie-this._x,_e=le-this._y;this._x=ie,this._y=le,ae.drift(pe,_e,oe),this.handler.dispatchToElement(new Param(ae,oe),"drag",oe.event);var Ce=this.handler.findHover(ie,le,ae).target,$e=this._dropTarget;this._dropTarget=Ce,ae!==Ce&&($e&&Ce!==$e&&this.handler.dispatchToElement(new Param($e,oe),"dragleave",oe.event),Ce&&Ce!==$e&&this.handler.dispatchToElement(new Param(Ce,oe),"dragenter",oe.event))}},$.prototype._dragEnd=function(oe){var ae=this._draggingTarget;ae&&(ae.dragging=!1),this.handler.dispatchToElement(new Param(ae,oe),"dragend",oe.event),this._dropTarget&&this.handler.dispatchToElement(new Param(this._dropTarget,oe),"drop",oe.event),this._draggingTarget=null,this._dropTarget=null},$}();const Draggable$1=Draggable;var Eventful=function(){function $(oe){oe&&(this._$eventProcessor=oe)}return $.prototype.on=function(oe,ae,ie,le){this._$handlers||(this._$handlers={});var pe=this._$handlers;if(typeof ae=="function"&&(le=ie,ie=ae,ae=null),!ie||!oe)return this;var _e=this._$eventProcessor;ae!=null&&_e&&_e.normalizeQuery&&(ae=_e.normalizeQuery(ae)),pe[oe]||(pe[oe]=[]);for(var Ce=0;Ce<pe[oe].length;Ce++)if(pe[oe][Ce].h===ie)return this;var $e={h:ie,query:ae,ctx:le||this,callAtLast:ie.zrEventfulCallAtLast},xe=pe[oe].length-1,Ie=pe[oe][xe];return Ie&&Ie.callAtLast?pe[oe].splice(xe,0,$e):pe[oe].push($e),this},$.prototype.isSilent=function(oe){var ae=this._$handlers;return!ae||!ae[oe]||!ae[oe].length},$.prototype.off=function(oe,ae){var ie=this._$handlers;if(!ie)return this;if(!oe)return this._$handlers={},this;if(ae){if(ie[oe]){for(var le=[],pe=0,_e=ie[oe].length;pe<_e;pe++)ie[oe][pe].h!==ae&&le.push(ie[oe][pe]);ie[oe]=le}ie[oe]&&ie[oe].length===0&&delete ie[oe]}else delete ie[oe];return this},$.prototype.trigger=function(oe){for(var ae=[],ie=1;ie<arguments.length;ie++)ae[ie-1]=arguments[ie];if(!this._$handlers)return this;var le=this._$handlers[oe],pe=this._$eventProcessor;if(le)for(var _e=ae.length,Ce=le.length,$e=0;$e<Ce;$e++){var xe=le[$e];if(!(pe&&pe.filter&&xe.query!=null&&!pe.filter(oe,xe.query)))switch(_e){case 0:xe.h.call(xe.ctx);break;case 1:xe.h.call(xe.ctx,ae[0]);break;case 2:xe.h.call(xe.ctx,ae[0],ae[1]);break;default:xe.h.apply(xe.ctx,ae);break}}return pe&&pe.afterTrigger&&pe.afterTrigger(oe),this},$.prototype.triggerWithContext=function(oe){for(var ae=[],ie=1;ie<arguments.length;ie++)ae[ie-1]=arguments[ie];if(!this._$handlers)return this;var le=this._$handlers[oe],pe=this._$eventProcessor;if(le)for(var _e=ae.length,Ce=ae[_e-1],$e=le.length,xe=0;xe<$e;xe++){var Ie=le[xe];if(!(pe&&pe.filter&&Ie.query!=null&&!pe.filter(oe,Ie.query)))switch(_e){case 0:Ie.h.call(Ce);break;case 1:Ie.h.call(Ce,ae[0]);break;case 2:Ie.h.call(Ce,ae[0],ae[1]);break;default:Ie.h.apply(Ce,ae.slice(1,_e-1));break}}return pe&&pe.afterTrigger&&pe.afterTrigger(oe),this},$}();const Eventful$1=Eventful;var LN2=Math.log(2);function determinant($,oe,ae,ie,le,pe){var _e=ie+"-"+le,Ce=$.length;if(pe.hasOwnProperty(_e))return pe[_e];if(oe===1){var $e=Math.round(Math.log((1<<Ce)-1&~le)/LN2);return $[ae][$e]}for(var xe=ie|1<<ae,Ie=ae+1;ie&1<<Ie;)Ie++;for(var Ne=0,Fe=0,ze=0;Fe<Ce;Fe++){var At=1<<Fe;At&le||(Ne+=(ze%2?-1:1)*$[ae][Fe]*determinant($,oe-1,Ie,xe,le|At,pe),ze++)}return pe[_e]=Ne,Ne}function buildTransformer($,oe){var ae=[[$[0],$[1],1,0,0,0,-oe[0]*$[0],-oe[0]*$[1]],[0,0,0,$[0],$[1],1,-oe[1]*$[0],-oe[1]*$[1]],[$[2],$[3],1,0,0,0,-oe[2]*$[2],-oe[2]*$[3]],[0,0,0,$[2],$[3],1,-oe[3]*$[2],-oe[3]*$[3]],[$[4],$[5],1,0,0,0,-oe[4]*$[4],-oe[4]*$[5]],[0,0,0,$[4],$[5],1,-oe[5]*$[4],-oe[5]*$[5]],[$[6],$[7],1,0,0,0,-oe[6]*$[6],-oe[6]*$[7]],[0,0,0,$[6],$[7],1,-oe[7]*$[6],-oe[7]*$[7]]],ie={},le=determinant(ae,8,0,0,0,ie);if(le!==0){for(var pe=[],_e=0;_e<8;_e++)for(var Ce=0;Ce<8;Ce++)pe[Ce]==null&&(pe[Ce]=0),pe[Ce]+=((_e+Ce)%2?-1:1)*determinant(ae,7,_e===0?1:0,1<<_e,1<<Ce,ie)/le*oe[_e];return function($e,xe,Ie){var Ne=xe*pe[6]+Ie*pe[7]+1;$e[0]=(xe*pe[0]+Ie*pe[1]+pe[2])/Ne,$e[1]=(xe*pe[3]+Ie*pe[4]+pe[5])/Ne}}}var EVENT_SAVED_PROP="___zrEVENTSAVED",_calcOut$1=[];function transformLocalCoord($,oe,ae,ie,le){return transformCoordWithViewport(_calcOut$1,oe,ie,le,!0)&&transformCoordWithViewport($,ae,_calcOut$1[0],_calcOut$1[1])}function transformCoordWithViewport($,oe,ae,ie,le){if(oe.getBoundingClientRect&&env$1.domSupported&&!isCanvasEl(oe)){var pe=oe[EVENT_SAVED_PROP]||(oe[EVENT_SAVED_PROP]={}),_e=prepareCoordMarkers(oe,pe),Ce=preparePointerTransformer(_e,pe,le);if(Ce)return Ce($,ae,ie),!0}return!1}function prepareCoordMarkers($,oe){var ae=oe.markers;if(ae)return ae;ae=oe.markers=[];for(var ie=["left","right"],le=["top","bottom"],pe=0;pe<4;pe++){var _e=document.createElement("div"),Ce=_e.style,$e=pe%2,xe=(pe>>1)%2;Ce.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",ie[$e]+":0",le[xe]+":0",ie[1-$e]+":auto",le[1-xe]+":auto",""].join("!important;"),$.appendChild(_e),ae.push(_e)}return ae}function preparePointerTransformer($,oe,ae){for(var ie=ae?"invTrans":"trans",le=oe[ie],pe=oe.srcCoords,_e=[],Ce=[],$e=!0,xe=0;xe<4;xe++){var Ie=$[xe].getBoundingClientRect(),Ne=2*xe,Fe=Ie.left,ze=Ie.top;_e.push(Fe,ze),$e=$e&&pe&&Fe===pe[Ne]&&ze===pe[Ne+1],Ce.push($[xe].offsetLeft,$[xe].offsetTop)}return $e&&le?le:(oe.srcCoords=_e,oe[ie]=ae?buildTransformer(Ce,_e):buildTransformer(_e,Ce))}function isCanvasEl($){return $.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function encodeHTML($){return $==null?"":($+"").replace(replaceReg,function(oe,ae){return replaceMap[ae]})}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($,oe,ae,ie){return ae=ae||{},ie?calculateZrXY($,oe,ae):firefoxNotSupportOffsetXY&&oe.layerX!=null&&oe.layerX!==oe.offsetX?(ae.zrX=oe.layerX,ae.zrY=oe.layerY):oe.offsetX!=null?(ae.zrX=oe.offsetX,ae.zrY=oe.offsetY):calculateZrXY($,oe,ae),ae}function calculateZrXY($,oe,ae){if(env$1.domSupported&&$.getBoundingClientRect){var ie=oe.clientX,le=oe.clientY;if(isCanvasEl($)){var pe=$.getBoundingClientRect();ae.zrX=ie-pe.left,ae.zrY=le-pe.top;return}else if(transformCoordWithViewport(_calcOut,$,ie,le)){ae.zrX=_calcOut[0],ae.zrY=_calcOut[1];return}}ae.zrX=ae.zrY=0}function getNativeEvent($){return $||window.event}function normalizeEvent($,oe,ae){if(oe=getNativeEvent(oe),oe.zrX!=null)return oe;var ie=oe.type,le=ie&&ie.indexOf("touch")>=0;if(le){var _e=ie!=="touchend"?oe.targetTouches[0]:oe.changedTouches[0];_e&&clientToLocal($,_e,oe,ae)}else{clientToLocal($,oe,oe,ae);var pe=getWheelDeltaMayPolyfill(oe);oe.zrDelta=pe?pe/120:-(oe.detail||0)/3}var Ce=oe.button;return oe.which==null&&Ce!==void 0&&MOUSE_EVENT_REG.test(oe.type)&&(oe.which=Ce&1?1:Ce&2?3:Ce&4?2:0),oe}function getWheelDeltaMayPolyfill($){var oe=$.wheelDelta;if(oe)return oe;var ae=$.deltaX,ie=$.deltaY;if(ae==null||ie==null)return oe;var le=Math.abs(ie!==0?ie:ae),pe=ie>0?-1:ie<0?1:ae>0?-1:1;return 3*le*pe}function addEventListener($,oe,ae,ie){$.addEventListener(oe,ae,ie)}function removeEventListener($,oe,ae,ie){$.removeEventListener(oe,ae,ie)}var stop=function($){$.preventDefault(),$.stopPropagation(),$.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown($){return $.which===2||$.which===3}var GestureMgr=function(){function $(){this._track=[]}return $.prototype.recognize=function(oe,ae,ie){return this._doTrack(oe,ae,ie),this._recognize(oe)},$.prototype.clear=function(){return this._track.length=0,this},$.prototype._doTrack=function(oe,ae,ie){var le=oe.touches;if(le){for(var pe={points:[],touches:[],target:ae,event:oe},_e=0,Ce=le.length;_e<Ce;_e++){var $e=le[_e],xe=clientToLocal(ie,$e,{});pe.points.push([xe.zrX,xe.zrY]),pe.touches.push($e)}this._track.push(pe)}},$.prototype._recognize=function(oe){for(var ae in recognizers)if(recognizers.hasOwnProperty(ae)){var ie=recognizers[ae](this._track,oe);if(ie)return ie}},$}();function dist($){var oe=$[1][0]-$[0][0],ae=$[1][1]-$[0][1];return Math.sqrt(oe*oe+ae*ae)}function center($){return[($[0][0]+$[1][0])/2,($[0][1]+$[1][1])/2]}var recognizers={pinch:function($,oe){var ae=$.length;if(ae){var ie=($[ae-1]||{}).points,le=($[ae-2]||{}).points||ie;if(le&&le.length>1&&ie&&ie.length>1){var pe=dist(ie)/dist(le);!isFinite(pe)&&(pe=1),oe.pinchScale=pe;var _e=center(ie);return oe.pinchX=_e[0],oe.pinchY=_e[1],{type:"pinch",target:$[0].target,event:oe}}}}};function create(){return[1,0,0,1,0,0]}function identity($){return $[0]=1,$[1]=0,$[2]=0,$[3]=1,$[4]=0,$[5]=0,$}function copy($,oe){return $[0]=oe[0],$[1]=oe[1],$[2]=oe[2],$[3]=oe[3],$[4]=oe[4],$[5]=oe[5],$}function mul($,oe,ae){var ie=oe[0]*ae[0]+oe[2]*ae[1],le=oe[1]*ae[0]+oe[3]*ae[1],pe=oe[0]*ae[2]+oe[2]*ae[3],_e=oe[1]*ae[2]+oe[3]*ae[3],Ce=oe[0]*ae[4]+oe[2]*ae[5]+oe[4],$e=oe[1]*ae[4]+oe[3]*ae[5]+oe[5];return $[0]=ie,$[1]=le,$[2]=pe,$[3]=_e,$[4]=Ce,$[5]=$e,$}function translate($,oe,ae){return $[0]=oe[0],$[1]=oe[1],$[2]=oe[2],$[3]=oe[3],$[4]=oe[4]+ae[0],$[5]=oe[5]+ae[1],$}function rotate($,oe,ae){var ie=oe[0],le=oe[2],pe=oe[4],_e=oe[1],Ce=oe[3],$e=oe[5],xe=Math.sin(ae),Ie=Math.cos(ae);return $[0]=ie*Ie+_e*xe,$[1]=-ie*xe+_e*Ie,$[2]=le*Ie+Ce*xe,$[3]=-le*xe+Ie*Ce,$[4]=Ie*pe+xe*$e,$[5]=Ie*$e-xe*pe,$}function scale$1($,oe,ae){var ie=ae[0],le=ae[1];return $[0]=oe[0]*ie,$[1]=oe[1]*le,$[2]=oe[2]*ie,$[3]=oe[3]*le,$[4]=oe[4]*ie,$[5]=oe[5]*le,$}function invert($,oe){var ae=oe[0],ie=oe[2],le=oe[4],pe=oe[1],_e=oe[3],Ce=oe[5],$e=ae*_e-pe*ie;return $e?($e=1/$e,$[0]=_e*$e,$[1]=-pe*$e,$[2]=-ie*$e,$[3]=ae*$e,$[4]=(ie*Ce-_e*le)*$e,$[5]=(pe*le-ae*Ce)*$e,$):null}function clone$1($){var oe=create();return copy(oe,$),oe}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function $(oe,ae){this.x=oe||0,this.y=ae||0}return $.prototype.copy=function(oe){return this.x=oe.x,this.y=oe.y,this},$.prototype.clone=function(){return new $(this.x,this.y)},$.prototype.set=function(oe,ae){return this.x=oe,this.y=ae,this},$.prototype.equal=function(oe){return oe.x===this.x&&oe.y===this.y},$.prototype.add=function(oe){return this.x+=oe.x,this.y+=oe.y,this},$.prototype.scale=function(oe){this.x*=oe,this.y*=oe},$.prototype.scaleAndAdd=function(oe,ae){this.x+=oe.x*ae,this.y+=oe.y*ae},$.prototype.sub=function(oe){return this.x-=oe.x,this.y-=oe.y,this},$.prototype.dot=function(oe){return this.x*oe.x+this.y*oe.y},$.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},$.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},$.prototype.normalize=function(){var oe=this.len();return this.x/=oe,this.y/=oe,this},$.prototype.distance=function(oe){var ae=this.x-oe.x,ie=this.y-oe.y;return Math.sqrt(ae*ae+ie*ie)},$.prototype.distanceSquare=function(oe){var ae=this.x-oe.x,ie=this.y-oe.y;return ae*ae+ie*ie},$.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},$.prototype.transform=function(oe){if(oe){var ae=this.x,ie=this.y;return this.x=oe[0]*ae+oe[2]*ie+oe[4],this.y=oe[1]*ae+oe[3]*ie+oe[5],this}},$.prototype.toArray=function(oe){return oe[0]=this.x,oe[1]=this.y,oe},$.prototype.fromArray=function(oe){this.x=oe[0],this.y=oe[1]},$.set=function(oe,ae,ie){oe.x=ae,oe.y=ie},$.copy=function(oe,ae){oe.x=ae.x,oe.y=ae.y},$.len=function(oe){return Math.sqrt(oe.x*oe.x+oe.y*oe.y)},$.lenSquare=function(oe){return oe.x*oe.x+oe.y*oe.y},$.dot=function(oe,ae){return oe.x*ae.x+oe.y*ae.y},$.add=function(oe,ae,ie){oe.x=ae.x+ie.x,oe.y=ae.y+ie.y},$.sub=function(oe,ae,ie){oe.x=ae.x-ie.x,oe.y=ae.y-ie.y},$.scale=function(oe,ae,ie){oe.x=ae.x*ie,oe.y=ae.y*ie},$.scaleAndAdd=function(oe,ae,ie,le){oe.x=ae.x+ie.x*le,oe.y=ae.y+ie.y*le},$.lerp=function(oe,ae,ie,le){var pe=1-le;oe.x=pe*ae.x+le*ie.x,oe.y=pe*ae.y+le*ie.y},$}();const Point$1=Point;var mathMin$8=Math.min,mathMax$8=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 $(oe,ae,ie,le){ie<0&&(oe=oe+ie,ie=-ie),le<0&&(ae=ae+le,le=-le),this.x=oe,this.y=ae,this.width=ie,this.height=le}return $.prototype.union=function(oe){var ae=mathMin$8(oe.x,this.x),ie=mathMin$8(oe.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(oe.x+oe.width,this.x+this.width)-ae:this.width=oe.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(oe.y+oe.height,this.y+this.height)-ie:this.height=oe.height,this.x=ae,this.y=ie},$.prototype.applyTransform=function(oe){$.applyTransform(this,this,oe)},$.prototype.calculateTransform=function(oe){var ae=this,ie=oe.width/ae.width,le=oe.height/ae.height,pe=create();return translate(pe,pe,[-ae.x,-ae.y]),scale$1(pe,pe,[ie,le]),translate(pe,pe,[oe.x,oe.y]),pe},$.prototype.intersect=function(oe,ae){if(!oe)return!1;oe instanceof $||(oe=$.create(oe));var ie=this,le=ie.x,pe=ie.x+ie.width,_e=ie.y,Ce=ie.y+ie.height,$e=oe.x,xe=oe.x+oe.width,Ie=oe.y,Ne=oe.y+oe.height,Fe=!(pe<$e||xe<le||Ce<Ie||Ne<_e);if(ae){var ze=1/0,At=0,Lt=Math.abs(pe-$e),hn=Math.abs(xe-le),vn=Math.abs(Ce-Ie),_n=Math.abs(Ne-_e),bn=Math.min(Lt,hn),Cn=Math.min(vn,_n);pe<$e||xe<le?bn>At&&(At=bn,Lt<hn?Point$1.set(maxTv$1,-Lt,0):Point$1.set(maxTv$1,hn,0)):bn<ze&&(ze=bn,Lt<hn?Point$1.set(minTv$1,Lt,0):Point$1.set(minTv$1,-hn,0)),Ce<Ie||Ne<_e?Cn>At&&(At=Cn,vn<_n?Point$1.set(maxTv$1,0,-vn):Point$1.set(maxTv$1,0,_n)):bn<ze&&(ze=bn,vn<_n?Point$1.set(minTv$1,0,vn):Point$1.set(minTv$1,0,-_n))}return ae&&Point$1.copy(ae,Fe?minTv$1:maxTv$1),Fe},$.prototype.contain=function(oe,ae){var ie=this;return oe>=ie.x&&oe<=ie.x+ie.width&&ae>=ie.y&&ae<=ie.y+ie.height},$.prototype.clone=function(){return new $(this.x,this.y,this.width,this.height)},$.prototype.copy=function(oe){$.copy(this,oe)},$.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},$.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},$.prototype.isZero=function(){return this.width===0||this.height===0},$.create=function(oe){return new $(oe.x,oe.y,oe.width,oe.height)},$.copy=function(oe,ae){oe.x=ae.x,oe.y=ae.y,oe.width=ae.width,oe.height=ae.height},$.applyTransform=function(oe,ae,ie){if(!ie){oe!==ae&&$.copy(oe,ae);return}if(ie[1]<1e-5&&ie[1]>-1e-5&&ie[2]<1e-5&&ie[2]>-1e-5){var le=ie[0],pe=ie[3],_e=ie[4],Ce=ie[5];oe.x=ae.x*le+_e,oe.y=ae.y*pe+Ce,oe.width=ae.width*le,oe.height=ae.height*pe,oe.width<0&&(oe.x+=oe.width,oe.width=-oe.width),oe.height<0&&(oe.y+=oe.height,oe.height=-oe.height);return}lt.x=lb.x=ae.x,lt.y=rt.y=ae.y,rb.x=rt.x=ae.x+ae.width,rb.y=lb.y=ae.y+ae.height,lt.transform(ie),rt.transform(ie),rb.transform(ie),lb.transform(ie),oe.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),oe.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var $e=mathMax$8(lt.x,rb.x,lb.x,rt.x),xe=mathMax$8(lt.y,rb.y,lb.y,rt.y);oe.width=$e-oe.x,oe.height=xe-oe.y},$}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket($,oe,ae){return{type:$,event:ae,target:oe.target,topTarget:oe.topTarget,cancelBubble:!1,offsetX:ae.zrX,offsetY:ae.zrY,gestureEvent:ae.gestureEvent,pinchX:ae.pinchX,pinchY:ae.pinchY,pinchScale:ae.pinchScale,wheelDelta:ae.zrDelta,zrByTouch:ae.zrByTouch,which:ae.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.handler=null,ae}return oe.prototype.dispose=function(){},oe.prototype.setCursor=function(){},oe}(Eventful$1),HoveredResult=function(){function $(oe,ae){this.x=oe,this.y=ae}return $}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function($){__extends(oe,$);function oe(ae,ie,le,pe,_e){var Ce=$.call(this)||this;return Ce._hovered=new HoveredResult(0,0),Ce.storage=ae,Ce.painter=ie,Ce.painterRoot=pe,Ce._pointerSize=_e,le=le||new EmptyProxy,Ce.proxy=null,Ce.setHandlerProxy(le),Ce._draggingMgr=new Draggable$1(Ce),Ce}return oe.prototype.setHandlerProxy=function(ae){this.proxy&&this.proxy.dispose(),ae&&(each$c(handlerNames,function(ie){ae.on&&ae.on(ie,this[ie],this)},this),ae.handler=this),this.proxy=ae},oe.prototype.mousemove=function(ae){var ie=ae.zrX,le=ae.zrY,pe=isOutsideBoundary(this,ie,le),_e=this._hovered,Ce=_e.target;Ce&&!Ce.__zr&&(_e=this.findHover(_e.x,_e.y),Ce=_e.target);var $e=this._hovered=pe?new HoveredResult(ie,le):this.findHover(ie,le),xe=$e.target,Ie=this.proxy;Ie.setCursor&&Ie.setCursor(xe?xe.cursor:"default"),Ce&&xe!==Ce&&this.dispatchToElement(_e,"mouseout",ae),this.dispatchToElement($e,"mousemove",ae),xe&&xe!==Ce&&this.dispatchToElement($e,"mouseover",ae)},oe.prototype.mouseout=function(ae){var ie=ae.zrEventControl;ie!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",ae),ie!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:ae})},oe.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},oe.prototype.dispatch=function(ae,ie){var le=this[ae];le&&le.call(this,ie)},oe.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},oe.prototype.setCursorStyle=function(ae){var ie=this.proxy;ie.setCursor&&ie.setCursor(ae)},oe.prototype.dispatchToElement=function(ae,ie,le){ae=ae||{};var pe=ae.target;if(!(pe&&pe.silent)){for(var _e="on"+ie,Ce=makeEventPacket(ie,ae,le);pe&&(pe[_e]&&(Ce.cancelBubble=!!pe[_e].call(pe,Ce)),pe.trigger(ie,Ce),pe=pe.__hostTarget?pe.__hostTarget:pe.parent,!Ce.cancelBubble););Ce.cancelBubble||(this.trigger(ie,Ce),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function($e){typeof $e[_e]=="function"&&$e[_e].call($e,Ce),$e.trigger&&$e.trigger(ie,Ce)}))}},oe.prototype.findHover=function(ae,ie,le){var pe=this.storage.getDisplayList(),_e=new HoveredResult(ae,ie);if(setHoverTarget(pe,_e,ae,ie,le),this._pointerSize&&!_e.target){for(var Ce=[],$e=this._pointerSize,xe=$e/2,Ie=new BoundingRect$1(ae-xe,ie-xe,$e,$e),Ne=pe.length-1;Ne>=0;Ne--){var Fe=pe[Ne];Fe!==le&&!Fe.ignore&&!Fe.ignoreCoarsePointer&&(!Fe.parent||!Fe.parent.ignoreCoarsePointer)&&(tmpRect$1.copy(Fe.getBoundingRect()),Fe.transform&&tmpRect$1.applyTransform(Fe.transform),tmpRect$1.intersect(Ie)&&Ce.push(Fe))}if(Ce.length)for(var ze=4,At=Math.PI/12,Lt=Math.PI*2,hn=0;hn<xe;hn+=ze)for(var vn=0;vn<Lt;vn+=At){var _n=ae+hn*Math.cos(vn),bn=ie+hn*Math.sin(vn);if(setHoverTarget(Ce,_e,_n,bn,le),_e.target)return _e}}return _e},oe.prototype.processGesture=function(ae,ie){this._gestureMgr||(this._gestureMgr=new GestureMgr);var le=this._gestureMgr;ie==="start"&&le.clear();var pe=le.recognize(ae,this.findHover(ae.zrX,ae.zrY,null).target,this.proxy.dom);if(ie==="end"&&le.clear(),pe){var _e=pe.type;ae.gestureEvent=_e;var Ce=new HoveredResult;Ce.target=pe.target,this.dispatchToElement(Ce,_e,pe.event)}},oe}(Eventful$1);each$c(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function($){Handler.prototype[$]=function(oe){var ae=oe.zrX,ie=oe.zrY,le=isOutsideBoundary(this,ae,ie),pe,_e;if(($!=="mouseup"||!le)&&(pe=this.findHover(ae,ie),_e=pe.target),$==="mousedown")this._downEl=_e,this._downPoint=[oe.zrX,oe.zrY],this._upEl=_e;else if($==="mouseup")this._upEl=_e;else if($==="click"){if(this._downEl!==this._upEl||!this._downPoint||dist$1(this._downPoint,[oe.zrX,oe.zrY])>4)return;this._downPoint=null}this.dispatchToElement(pe,$,oe)}});function isHover($,oe,ae){if($[$.rectHover?"rectContain":"contain"](oe,ae)){for(var ie=$,le=void 0,pe=!1;ie;){if(ie.ignoreClip&&(pe=!0),!pe){var _e=ie.getClipPath();if(_e&&!_e.contain(oe,ae))return!1;ie.silent&&(le=!0)}var Ce=ie.__hostTarget;ie=Ce||ie.parent}return le?SILENT:!0}return!1}function setHoverTarget($,oe,ae,ie,le){for(var pe=$.length-1;pe>=0;pe--){var _e=$[pe],Ce=void 0;if(_e!==le&&!_e.ignore&&(Ce=isHover(_e,ae,ie))&&(!oe.topTarget&&(oe.topTarget=_e),Ce!==SILENT)){oe.target=_e;break}}}function isOutsideBoundary($,oe,ae){var ie=$.painter;return oe<0||oe>ie.getWidth()||ae<0||ae>ie.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength($){for(var oe=0;$>=DEFAULT_MIN_MERGE;)oe|=$&1,$>>=1;return $+oe}function makeAscendingRun($,oe,ae,ie){var le=oe+1;if(le===ae)return 1;if(ie($[le++],$[oe])<0){for(;le<ae&&ie($[le],$[le-1])<0;)le++;reverseRun($,oe,le)}else for(;le<ae&&ie($[le],$[le-1])>=0;)le++;return le-oe}function reverseRun($,oe,ae){for(ae--;oe<ae;){var ie=$[oe];$[oe++]=$[ae],$[ae--]=ie}}function binaryInsertionSort($,oe,ae,ie,le){for(ie===oe&&ie++;ie<ae;ie++){for(var pe=$[ie],_e=oe,Ce=ie,$e;_e<Ce;)$e=_e+Ce>>>1,le(pe,$[$e])<0?Ce=$e:_e=$e+1;var xe=ie-_e;switch(xe){case 3:$[_e+3]=$[_e+2];case 2:$[_e+2]=$[_e+1];case 1:$[_e+1]=$[_e];break;default:for(;xe>0;)$[_e+xe]=$[_e+xe-1],xe--}$[_e]=pe}}function gallopLeft($,oe,ae,ie,le,pe){var _e=0,Ce=0,$e=1;if(pe($,oe[ae+le])>0){for(Ce=ie-le;$e<Ce&&pe($,oe[ae+le+$e])>0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce),_e+=le,$e+=le}else{for(Ce=le+1;$e<Ce&&pe($,oe[ae+le-$e])<=0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce);var xe=_e;_e=le-$e,$e=le-xe}for(_e++;_e<$e;){var Ie=_e+($e-_e>>>1);pe($,oe[ae+Ie])>0?_e=Ie+1:$e=Ie}return $e}function gallopRight($,oe,ae,ie,le,pe){var _e=0,Ce=0,$e=1;if(pe($,oe[ae+le])<0){for(Ce=le+1;$e<Ce&&pe($,oe[ae+le-$e])<0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce);var xe=_e;_e=le-$e,$e=le-xe}else{for(Ce=ie-le;$e<Ce&&pe($,oe[ae+le+$e])>=0;)_e=$e,$e=($e<<1)+1,$e<=0&&($e=Ce);$e>Ce&&($e=Ce),_e+=le,$e+=le}for(_e++;_e<$e;){var Ie=_e+($e-_e>>>1);pe($,oe[ae+Ie])<0?$e=Ie:_e=Ie+1}return $e}function TimSort($,oe){var ae=DEFAULT_MIN_GALLOPING,ie,le,pe=0;$.length;var _e=[];ie=[],le=[];function Ce(ze,At){ie[pe]=ze,le[pe]=At,pe+=1}function $e(){for(;pe>1;){var ze=pe-2;if(ze>=1&&le[ze-1]<=le[ze]+le[ze+1]||ze>=2&&le[ze-2]<=le[ze]+le[ze-1])le[ze-1]<le[ze+1]&&ze--;else if(le[ze]>le[ze+1])break;Ie(ze)}}function xe(){for(;pe>1;){var ze=pe-2;ze>0&&le[ze-1]<le[ze+1]&&ze--,Ie(ze)}}function Ie(ze){var At=ie[ze],Lt=le[ze],hn=ie[ze+1],vn=le[ze+1];le[ze]=Lt+vn,ze===pe-3&&(ie[ze+1]=ie[ze+2],le[ze+1]=le[ze+2]),pe--;var _n=gallopRight($[hn],$,At,Lt,0,oe);At+=_n,Lt-=_n,Lt!==0&&(vn=gallopLeft($[At+Lt-1],$,hn,vn,vn-1,oe),vn!==0&&(Lt<=vn?Ne(At,Lt,hn,vn):Fe(At,Lt,hn,vn)))}function Ne(ze,At,Lt,hn){var vn=0;for(vn=0;vn<At;vn++)_e[vn]=$[ze+vn];var _n=0,bn=Lt,Cn=ze;if($[Cn++]=$[bn++],--hn===0){for(vn=0;vn<At;vn++)$[Cn+vn]=_e[_n+vn];return}if(At===1){for(vn=0;vn<hn;vn++)$[Cn+vn]=$[bn+vn];$[Cn+hn]=_e[_n];return}for(var En=ae,$n,wn,Tn;;){$n=0,wn=0,Tn=!1;do if(oe($[bn],_e[_n])<0){if($[Cn++]=$[bn++],wn++,$n=0,--hn===0){Tn=!0;break}}else if($[Cn++]=_e[_n++],$n++,wn=0,--At===1){Tn=!0;break}while(($n|wn)<En);if(Tn)break;do{if($n=gallopRight($[bn],_e,_n,At,0,oe),$n!==0){for(vn=0;vn<$n;vn++)$[Cn+vn]=_e[_n+vn];if(Cn+=$n,_n+=$n,At-=$n,At<=1){Tn=!0;break}}if($[Cn++]=$[bn++],--hn===0){Tn=!0;break}if(wn=gallopLeft(_e[_n],$,bn,hn,0,oe),wn!==0){for(vn=0;vn<wn;vn++)$[Cn+vn]=$[bn+vn];if(Cn+=wn,bn+=wn,hn-=wn,hn===0){Tn=!0;break}}if($[Cn++]=_e[_n++],--At===1){Tn=!0;break}En--}while($n>=DEFAULT_MIN_GALLOPING||wn>=DEFAULT_MIN_GALLOPING);if(Tn)break;En<0&&(En=0),En+=2}if(ae=En,ae<1&&(ae=1),At===1){for(vn=0;vn<hn;vn++)$[Cn+vn]=$[bn+vn];$[Cn+hn]=_e[_n]}else{if(At===0)throw new Error;for(vn=0;vn<At;vn++)$[Cn+vn]=_e[_n+vn]}}function Fe(ze,At,Lt,hn){var vn=0;for(vn=0;vn<hn;vn++)_e[vn]=$[Lt+vn];var _n=ze+At-1,bn=hn-1,Cn=Lt+hn-1,En=0,$n=0;if($[Cn--]=$[_n--],--At===0){for(En=Cn-(hn-1),vn=0;vn<hn;vn++)$[En+vn]=_e[vn];return}if(hn===1){for(Cn-=At,_n-=At,$n=Cn+1,En=_n+1,vn=At-1;vn>=0;vn--)$[$n+vn]=$[En+vn];$[Cn]=_e[bn];return}for(var wn=ae;;){var Tn=0,xn=0,kn=!1;do if(oe(_e[bn],$[_n])<0){if($[Cn--]=$[_n--],Tn++,xn=0,--At===0){kn=!0;break}}else if($[Cn--]=_e[bn--],xn++,Tn=0,--hn===1){kn=!0;break}while((Tn|xn)<wn);if(kn)break;do{if(Tn=At-gallopRight(_e[bn],$,ze,At,At-1,oe),Tn!==0){for(Cn-=Tn,_n-=Tn,At-=Tn,$n=Cn+1,En=_n+1,vn=Tn-1;vn>=0;vn--)$[$n+vn]=$[En+vn];if(At===0){kn=!0;break}}if($[Cn--]=_e[bn--],--hn===1){kn=!0;break}if(xn=hn-gallopLeft($[_n],_e,0,hn,hn-1,oe),xn!==0){for(Cn-=xn,bn-=xn,hn-=xn,$n=Cn+1,En=bn+1,vn=0;vn<xn;vn++)$[$n+vn]=_e[En+vn];if(hn<=1){kn=!0;break}}if($[Cn--]=$[_n--],--At===0){kn=!0;break}wn--}while(Tn>=DEFAULT_MIN_GALLOPING||xn>=DEFAULT_MIN_GALLOPING);if(kn)break;wn<0&&(wn=0),wn+=2}if(ae=wn,ae<1&&(ae=1),hn===1){for(Cn-=At,_n-=At,$n=Cn+1,En=_n+1,vn=At-1;vn>=0;vn--)$[$n+vn]=$[En+vn];$[Cn]=_e[bn]}else{if(hn===0)throw new Error;for(En=Cn-(hn-1),vn=0;vn<hn;vn++)$[En+vn]=_e[vn]}}return{mergeRuns:$e,forceMergeRuns:xe,pushRun:Ce}}function sort($,oe,ae,ie){ae||(ae=0),ie||(ie=$.length);var le=ie-ae;if(!(le<2)){var pe=0;if(le<DEFAULT_MIN_MERGE){pe=makeAscendingRun($,ae,ie,oe),binaryInsertionSort($,ae,ie,ae+pe,oe);return}var _e=TimSort($,oe),Ce=minRunLength(le);do{if(pe=makeAscendingRun($,ae,ie,oe),pe<Ce){var $e=le;$e>Ce&&($e=Ce),binaryInsertionSort($,ae,ae+$e,ae+pe,oe),pe=$e}_e.pushRun(ae,pe),_e.mergeRuns(),le-=pe,ae+=pe}while(le!==0);_e.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($,oe){return $.zlevel===oe.zlevel?$.z===oe.z?$.z2-oe.z2:$.z-oe.z:$.zlevel-oe.zlevel}var Storage=function(){function $(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return $.prototype.traverse=function(oe,ae){for(var ie=0;ie<this._roots.length;ie++)this._roots[ie].traverse(oe,ae)},$.prototype.getDisplayList=function(oe,ae){ae=ae||!1;var ie=this._displayList;return(oe||!ie.length)&&this.updateDisplayList(ae),ie},$.prototype.updateDisplayList=function(oe){this._displayListLen=0;for(var ae=this._roots,ie=this._displayList,le=0,pe=ae.length;le<pe;le++)this._updateAndAddDisplayable(ae[le],null,oe);ie.length=this._displayListLen,sort(ie,shapeCompareFunc)},$.prototype._updateAndAddDisplayable=function(oe,ae,ie){if(!(oe.ignore&&!ie)){oe.beforeUpdate(),oe.update(),oe.afterUpdate();var le=oe.getClipPath();if(oe.ignoreClip)ae=null;else if(le){ae?ae=ae.slice():ae=[];for(var pe=le,_e=oe;pe;)pe.parent=_e,pe.updateTransform(),ae.push(pe),_e=pe,pe=pe.getClipPath()}if(oe.childrenRef){for(var Ce=oe.childrenRef(),$e=0;$e<Ce.length;$e++){var xe=Ce[$e];oe.__dirty&&(xe.__dirty|=REDRAW_BIT),this._updateAndAddDisplayable(xe,ae,ie)}oe.__dirty=0}else{var Ie=oe;ae&&ae.length?Ie.__clipPaths=ae:Ie.__clipPaths&&Ie.__clipPaths.length>0&&(Ie.__clipPaths=[]),isNaN(Ie.z)&&(logInvalidZError(),Ie.z=0),isNaN(Ie.z2)&&(logInvalidZError(),Ie.z2=0),isNaN(Ie.zlevel)&&(logInvalidZError(),Ie.zlevel=0),this._displayList[this._displayListLen++]=Ie}var Ne=oe.getDecalElement&&oe.getDecalElement();Ne&&this._updateAndAddDisplayable(Ne,ae,ie);var Fe=oe.getTextGuideLine();Fe&&this._updateAndAddDisplayable(Fe,ae,ie);var ze=oe.getTextContent();ze&&this._updateAndAddDisplayable(ze,ae,ie)}},$.prototype.addRoot=function(oe){oe.__zr&&oe.__zr.storage===this||this._roots.push(oe)},$.prototype.delRoot=function(oe){if(oe instanceof Array){for(var ae=0,ie=oe.length;ae<ie;ae++)this.delRoot(oe[ae]);return}var le=indexOf(this._roots,oe);le>=0&&this._roots.splice(le,1)},$.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},$.prototype.getRoots=function(){return this._roots},$.prototype.dispose=function(){this._displayList=null,this._roots=null},$}();const Storage$1=Storage;var requestAnimationFrame$1;requestAnimationFrame$1=env$1.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function($){return setTimeout($,16)};const requestAnimationFrame$2=requestAnimationFrame$1;var easingFuncs={linear:function($){return $},quadraticIn:function($){return $*$},quadraticOut:function($){return $*(2-$)},quadraticInOut:function($){return($*=2)<1?.5*$*$:-.5*(--$*($-2)-1)},cubicIn:function($){return $*$*$},cubicOut:function($){return--$*$*$+1},cubicInOut:function($){return($*=2)<1?.5*$*$*$:.5*(($-=2)*$*$+2)},quarticIn:function($){return $*$*$*$},quarticOut:function($){return 1- --$*$*$*$},quarticInOut:function($){return($*=2)<1?.5*$*$*$*$:-.5*(($-=2)*$*$*$-2)},quinticIn:function($){return $*$*$*$*$},quinticOut:function($){return--$*$*$*$*$+1},quinticInOut:function($){return($*=2)<1?.5*$*$*$*$*$:.5*(($-=2)*$*$*$*$+2)},sinusoidalIn:function($){return 1-Math.cos($*Math.PI/2)},sinusoidalOut:function($){return Math.sin($*Math.PI/2)},sinusoidalInOut:function($){return .5*(1-Math.cos(Math.PI*$))},exponentialIn:function($){return $===0?0:Math.pow(1024,$-1)},exponentialOut:function($){return $===1?1:1-Math.pow(2,-10*$)},exponentialInOut:function($){return $===0?0:$===1?1:($*=2)<1?.5*Math.pow(1024,$-1):.5*(-Math.pow(2,-10*($-1))+2)},circularIn:function($){return 1-Math.sqrt(1-$*$)},circularOut:function($){return Math.sqrt(1- --$*$)},circularInOut:function($){return($*=2)<1?-.5*(Math.sqrt(1-$*$)-1):.5*(Math.sqrt(1-($-=2)*$)+1)},elasticIn:function($){var oe,ae=.1,ie=.4;return $===0?0:$===1?1:(!ae||ae<1?(ae=1,oe=ie/4):oe=ie*Math.asin(1/ae)/(2*Math.PI),-(ae*Math.pow(2,10*($-=1))*Math.sin(($-oe)*(2*Math.PI)/ie)))},elasticOut:function($){var oe,ae=.1,ie=.4;return $===0?0:$===1?1:(!ae||ae<1?(ae=1,oe=ie/4):oe=ie*Math.asin(1/ae)/(2*Math.PI),ae*Math.pow(2,-10*$)*Math.sin(($-oe)*(2*Math.PI)/ie)+1)},elasticInOut:function($){var oe,ae=.1,ie=.4;return $===0?0:$===1?1:(!ae||ae<1?(ae=1,oe=ie/4):oe=ie*Math.asin(1/ae)/(2*Math.PI),($*=2)<1?-.5*(ae*Math.pow(2,10*($-=1))*Math.sin(($-oe)*(2*Math.PI)/ie)):ae*Math.pow(2,-10*($-=1))*Math.sin(($-oe)*(2*Math.PI)/ie)*.5+1)},backIn:function($){var oe=1.70158;return $*$*((oe+1)*$-oe)},backOut:function($){var oe=1.70158;return--$*$*((oe+1)*$+oe)+1},backInOut:function($){var oe=2.5949095;return($*=2)<1?.5*($*$*((oe+1)*$-oe)):.5*(($-=2)*$*((oe+1)*$+oe)+2)},bounceIn:function($){return 1-easingFuncs.bounceOut(1-$)},bounceOut:function($){return $<1/2.75?7.5625*$*$:$<2/2.75?7.5625*($-=1.5/2.75)*$+.75:$<2.5/2.75?7.5625*($-=2.25/2.75)*$+.9375:7.5625*($-=2.625/2.75)*$+.984375},bounceInOut:function($){return $<.5?easingFuncs.bounceIn($*2)*.5:easingFuncs.bounceOut($*2-1)*.5+.5}};const easingFuncs$1=easingFuncs;var mathPow$2=Math.pow,mathSqrt$3=Math.sqrt,EPSILON$3=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($){return $>-EPSILON$3&&$<EPSILON$3}function isNotAroundZero$1($){return $>EPSILON$3||$<-EPSILON$3}function cubicAt($,oe,ae,ie,le){var pe=1-le;return pe*pe*(pe*$+3*le*oe)+le*le*(le*ie+3*pe*ae)}function cubicDerivativeAt($,oe,ae,ie,le){var pe=1-le;return 3*(((oe-$)*pe+2*(ae-oe)*le)*pe+(ie-ae)*le*le)}function cubicRootAt($,oe,ae,ie,le,pe){var _e=ie+3*(oe-ae)-$,Ce=3*(ae-oe*2+$),$e=3*(oe-$),xe=$-le,Ie=Ce*Ce-3*_e*$e,Ne=Ce*$e-9*_e*xe,Fe=$e*$e-3*Ce*xe,ze=0;if(isAroundZero(Ie)&&isAroundZero(Ne))if(isAroundZero(Ce))pe[0]=0;else{var At=-$e/Ce;At>=0&&At<=1&&(pe[ze++]=At)}else{var Lt=Ne*Ne-4*Ie*Fe;if(isAroundZero(Lt)){var hn=Ne/Ie,At=-Ce/_e+hn,vn=-hn/2;At>=0&&At<=1&&(pe[ze++]=At),vn>=0&&vn<=1&&(pe[ze++]=vn)}else if(Lt>0){var _n=mathSqrt$3(Lt),bn=Ie*Ce+1.5*_e*(-Ne+_n),Cn=Ie*Ce+1.5*_e*(-Ne-_n);bn<0?bn=-mathPow$2(-bn,ONE_THIRD):bn=mathPow$2(bn,ONE_THIRD),Cn<0?Cn=-mathPow$2(-Cn,ONE_THIRD):Cn=mathPow$2(Cn,ONE_THIRD);var At=(-Ce-(bn+Cn))/(3*_e);At>=0&&At<=1&&(pe[ze++]=At)}else{var En=(2*Ie*Ce-3*_e*Ne)/(2*mathSqrt$3(Ie*Ie*Ie)),$n=Math.acos(En)/3,wn=mathSqrt$3(Ie),Tn=Math.cos($n),At=(-Ce-2*wn*Tn)/(3*_e),vn=(-Ce+wn*(Tn+THREE_SQRT*Math.sin($n)))/(3*_e),xn=(-Ce+wn*(Tn-THREE_SQRT*Math.sin($n)))/(3*_e);At>=0&&At<=1&&(pe[ze++]=At),vn>=0&&vn<=1&&(pe[ze++]=vn),xn>=0&&xn<=1&&(pe[ze++]=xn)}}return ze}function cubicExtrema($,oe,ae,ie,le){var pe=6*ae-12*oe+6*$,_e=9*oe+3*ie-3*$-9*ae,Ce=3*oe-3*$,$e=0;if(isAroundZero(_e)){if(isNotAroundZero$1(pe)){var xe=-Ce/pe;xe>=0&&xe<=1&&(le[$e++]=xe)}}else{var Ie=pe*pe-4*_e*Ce;if(isAroundZero(Ie))le[0]=-pe/(2*_e);else if(Ie>0){var Ne=mathSqrt$3(Ie),xe=(-pe+Ne)/(2*_e),Fe=(-pe-Ne)/(2*_e);xe>=0&&xe<=1&&(le[$e++]=xe),Fe>=0&&Fe<=1&&(le[$e++]=Fe)}}return $e}function cubicSubdivide($,oe,ae,ie,le,pe){var _e=(oe-$)*le+$,Ce=(ae-oe)*le+oe,$e=(ie-ae)*le+ae,xe=(Ce-_e)*le+_e,Ie=($e-Ce)*le+Ce,Ne=(Ie-xe)*le+xe;pe[0]=$,pe[1]=_e,pe[2]=xe,pe[3]=Ne,pe[4]=Ne,pe[5]=Ie,pe[6]=$e,pe[7]=ie}function cubicProjectPoint($,oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie){var Ne,Fe=.005,ze=1/0,At,Lt,hn,vn;_v0[0]=$e,_v0[1]=xe;for(var _n=0;_n<1;_n+=.05)_v1[0]=cubicAt($,ae,le,_e,_n),_v1[1]=cubicAt(oe,ie,pe,Ce,_n),hn=distSquare(_v0,_v1),hn<ze&&(Ne=_n,ze=hn);ze=1/0;for(var bn=0;bn<32&&!(Fe<EPSILON_NUMERIC);bn++)At=Ne-Fe,Lt=Ne+Fe,_v1[0]=cubicAt($,ae,le,_e,At),_v1[1]=cubicAt(oe,ie,pe,Ce,At),hn=distSquare(_v1,_v0),At>=0&&hn<ze?(Ne=At,ze=hn):(_v2[0]=cubicAt($,ae,le,_e,Lt),_v2[1]=cubicAt(oe,ie,pe,Ce,Lt),vn=distSquare(_v2,_v0),Lt<=1&&vn<ze?(Ne=Lt,ze=vn):Fe*=.5);return Ie&&(Ie[0]=cubicAt($,ae,le,_e,Ne),Ie[1]=cubicAt(oe,ie,pe,Ce,Ne)),mathSqrt$3(ze)}function cubicLength($,oe,ae,ie,le,pe,_e,Ce,$e){for(var xe=$,Ie=oe,Ne=0,Fe=1/$e,ze=1;ze<=$e;ze++){var At=ze*Fe,Lt=cubicAt($,ae,le,_e,At),hn=cubicAt(oe,ie,pe,Ce,At),vn=Lt-xe,_n=hn-Ie;Ne+=Math.sqrt(vn*vn+_n*_n),xe=Lt,Ie=hn}return Ne}function quadraticAt($,oe,ae,ie){var le=1-ie;return le*(le*$+2*ie*oe)+ie*ie*ae}function quadraticDerivativeAt($,oe,ae,ie){return 2*((1-ie)*(oe-$)+ie*(ae-oe))}function quadraticRootAt($,oe,ae,ie,le){var pe=$-2*oe+ae,_e=2*(oe-$),Ce=$-ie,$e=0;if(isAroundZero(pe)){if(isNotAroundZero$1(_e)){var xe=-Ce/_e;xe>=0&&xe<=1&&(le[$e++]=xe)}}else{var Ie=_e*_e-4*pe*Ce;if(isAroundZero(Ie)){var xe=-_e/(2*pe);xe>=0&&xe<=1&&(le[$e++]=xe)}else if(Ie>0){var Ne=mathSqrt$3(Ie),xe=(-_e+Ne)/(2*pe),Fe=(-_e-Ne)/(2*pe);xe>=0&&xe<=1&&(le[$e++]=xe),Fe>=0&&Fe<=1&&(le[$e++]=Fe)}}return $e}function quadraticExtremum($,oe,ae){var ie=$+ae-2*oe;return ie===0?.5:($-oe)/ie}function quadraticSubdivide($,oe,ae,ie,le){var pe=(oe-$)*ie+$,_e=(ae-oe)*ie+oe,Ce=(_e-pe)*ie+pe;le[0]=$,le[1]=pe,le[2]=Ce,le[3]=Ce,le[4]=_e,le[5]=ae}function quadraticProjectPoint($,oe,ae,ie,le,pe,_e,Ce,$e){var xe,Ie=.005,Ne=1/0;_v0[0]=_e,_v0[1]=Ce;for(var Fe=0;Fe<1;Fe+=.05){_v1[0]=quadraticAt($,ae,le,Fe),_v1[1]=quadraticAt(oe,ie,pe,Fe);var ze=distSquare(_v0,_v1);ze<Ne&&(xe=Fe,Ne=ze)}Ne=1/0;for(var At=0;At<32&&!(Ie<EPSILON_NUMERIC);At++){var Lt=xe-Ie,hn=xe+Ie;_v1[0]=quadraticAt($,ae,le,Lt),_v1[1]=quadraticAt(oe,ie,pe,Lt);var ze=distSquare(_v1,_v0);if(Lt>=0&&ze<Ne)xe=Lt,Ne=ze;else{_v2[0]=quadraticAt($,ae,le,hn),_v2[1]=quadraticAt(oe,ie,pe,hn);var vn=distSquare(_v2,_v0);hn<=1&&vn<Ne?(xe=hn,Ne=vn):Ie*=.5}}return $e&&($e[0]=quadraticAt($,ae,le,xe),$e[1]=quadraticAt(oe,ie,pe,xe)),mathSqrt$3(Ne)}function quadraticLength($,oe,ae,ie,le,pe,_e){for(var Ce=$,$e=oe,xe=0,Ie=1/_e,Ne=1;Ne<=_e;Ne++){var Fe=Ne*Ie,ze=quadraticAt($,ae,le,Fe),At=quadraticAt(oe,ie,pe,Fe),Lt=ze-Ce,hn=At-$e;xe+=Math.sqrt(Lt*Lt+hn*hn),Ce=ze,$e=At}return xe}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc($){var oe=$&&regexp.exec($);if(oe){var ae=oe[1].split(","),ie=+trim$1(ae[0]),le=+trim$1(ae[1]),pe=+trim$1(ae[2]),_e=+trim$1(ae[3]);if(isNaN(ie+le+pe+_e))return;var Ce=[];return function($e){return $e<=0?0:$e>=1?1:cubicRootAt(0,ie,pe,1,$e,Ce)&&cubicAt(0,le,_e,1,Ce[0])}}}var Clip=function(){function $(oe){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=oe.life||1e3,this._delay=oe.delay||0,this.loop=oe.loop||!1,this.onframe=oe.onframe||noop,this.ondestroy=oe.ondestroy||noop,this.onrestart=oe.onrestart||noop,oe.easing&&this.setEasing(oe.easing)}return $.prototype.step=function(oe,ae){if(this._inited||(this._startTime=oe+this._delay,this._inited=!0),this._paused){this._pausedTime+=ae;return}var ie=this._life,le=oe-this._startTime-this._pausedTime,pe=le/ie;pe<0&&(pe=0),pe=Math.min(pe,1);var _e=this.easingFunc,Ce=_e?_e(pe):pe;if(this.onframe(Ce),pe===1)if(this.loop){var $e=le%ie;this._startTime=oe-$e,this._pausedTime=0,this.onrestart()}else return!0;return!1},$.prototype.pause=function(){this._paused=!0},$.prototype.resume=function(){this._paused=!1},$.prototype.setEasing=function(oe){this.easing=oe,this.easingFunc=isFunction(oe)?oe:easingFuncs$1[oe]||createCubicEasingFunc(oe)},$}();const Clip$1=Clip;var Entry=function(){function $(oe){this.value=oe}return $}(),LinkedList=function(){function $(){this._len=0}return $.prototype.insert=function(oe){var ae=new Entry(oe);return this.insertEntry(ae),ae},$.prototype.insertEntry=function(oe){this.head?(this.tail.next=oe,oe.prev=this.tail,oe.next=null,this.tail=oe):this.head=this.tail=oe,this._len++},$.prototype.remove=function(oe){var ae=oe.prev,ie=oe.next;ae?ae.next=ie:this.head=ie,ie?ie.prev=ae:this.tail=ae,oe.next=oe.prev=null,this._len--},$.prototype.len=function(){return this._len},$.prototype.clear=function(){this.head=this.tail=null,this._len=0},$}(),LRU=function(){function $(oe){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=oe}return $.prototype.put=function(oe,ae){var ie=this._list,le=this._map,pe=null;if(le[oe]==null){var _e=ie.len(),Ce=this._lastRemovedEntry;if(_e>=this._maxSize&&_e>0){var $e=ie.head;ie.remove($e),delete le[$e.key],pe=$e.value,this._lastRemovedEntry=$e}Ce?Ce.value=ae:Ce=new Entry(ae),Ce.key=oe,ie.insertEntry(Ce),le[oe]=Ce}return pe},$.prototype.get=function(oe){var ae=this._map[oe],ie=this._list;if(ae!=null)return ae!==ie.tail&&(ie.remove(ae),ie.insertEntry(ae)),ae.value},$.prototype.clear=function(){this._list.clear(),this._map={}},$.prototype.len=function(){return this._list.len()},$}();const LRU$1=LRU;var 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($){return $=Math.round($),$<0?0:$>255?255:$}function clampCssAngle($){return $=Math.round($),$<0?0:$>360?360:$}function clampCssFloat($){return $<0?0:$>1?1:$}function parseCssInt($){var oe=$;return oe.length&&oe.charAt(oe.length-1)==="%"?clampCssByte(parseFloat(oe)/100*255):clampCssByte(parseInt(oe,10))}function parseCssFloat($){var oe=$;return oe.length&&oe.charAt(oe.length-1)==="%"?clampCssFloat(parseFloat(oe)/100):clampCssFloat(parseFloat(oe))}function cssHueToRgb($,oe,ae){return ae<0?ae+=1:ae>1&&(ae-=1),ae*6<1?$+(oe-$)*ae*6:ae*2<1?oe:ae*3<2?$+(oe-$)*(2/3-ae)*6:$}function lerpNumber($,oe,ae){return $+(oe-$)*ae}function setRgba($,oe,ae,ie,le){return $[0]=oe,$[1]=ae,$[2]=ie,$[3]=le,$}function copyRgba($,oe){return $[0]=oe[0],$[1]=oe[1],$[2]=oe[2],$[3]=oe[3],$}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache($,oe){lastRemovedArr&&copyRgba(lastRemovedArr,oe),lastRemovedArr=colorCache.put($,lastRemovedArr||oe.slice())}function parse$1($,oe){if($){oe=oe||[];var ae=colorCache.get($);if(ae)return copyRgba(oe,ae);$=$+"";var ie=$.replace(/ /g,"").toLowerCase();if(ie in kCSSColorTable)return copyRgba(oe,kCSSColorTable[ie]),putToCache($,oe),oe;var le=ie.length;if(ie.charAt(0)==="#"){if(le===4||le===5){var pe=parseInt(ie.slice(1,4),16);if(!(pe>=0&&pe<=4095)){setRgba(oe,0,0,0,1);return}return setRgba(oe,(pe&3840)>>4|(pe&3840)>>8,pe&240|(pe&240)>>4,pe&15|(pe&15)<<4,le===5?parseInt(ie.slice(4),16)/15:1),putToCache($,oe),oe}else if(le===7||le===9){var pe=parseInt(ie.slice(1,7),16);if(!(pe>=0&&pe<=16777215)){setRgba(oe,0,0,0,1);return}return setRgba(oe,(pe&16711680)>>16,(pe&65280)>>8,pe&255,le===9?parseInt(ie.slice(7),16)/255:1),putToCache($,oe),oe}return}var _e=ie.indexOf("("),Ce=ie.indexOf(")");if(_e!==-1&&Ce+1===le){var $e=ie.substr(0,_e),xe=ie.substr(_e+1,Ce-(_e+1)).split(","),Ie=1;switch($e){case"rgba":if(xe.length!==4)return xe.length===3?setRgba(oe,+xe[0],+xe[1],+xe[2],1):setRgba(oe,0,0,0,1);Ie=parseCssFloat(xe.pop());case"rgb":if(xe.length>=3)return setRgba(oe,parseCssInt(xe[0]),parseCssInt(xe[1]),parseCssInt(xe[2]),xe.length===3?Ie:parseCssFloat(xe[3])),putToCache($,oe),oe;setRgba(oe,0,0,0,1);return;case"hsla":if(xe.length!==4){setRgba(oe,0,0,0,1);return}return xe[3]=parseCssFloat(xe[3]),hsla2rgba(xe,oe),putToCache($,oe),oe;case"hsl":if(xe.length!==3){setRgba(oe,0,0,0,1);return}return hsla2rgba(xe,oe),putToCache($,oe),oe;default:return}}setRgba(oe,0,0,0,1)}}function hsla2rgba($,oe){var ae=(parseFloat($[0])%360+360)%360/360,ie=parseCssFloat($[1]),le=parseCssFloat($[2]),pe=le<=.5?le*(ie+1):le+ie-le*ie,_e=le*2-pe;return oe=oe||[],setRgba(oe,clampCssByte(cssHueToRgb(_e,pe,ae+1/3)*255),clampCssByte(cssHueToRgb(_e,pe,ae)*255),clampCssByte(cssHueToRgb(_e,pe,ae-1/3)*255),1),$.length===4&&(oe[3]=$[3]),oe}function rgba2hsla($){if($){var oe=$[0]/255,ae=$[1]/255,ie=$[2]/255,le=Math.min(oe,ae,ie),pe=Math.max(oe,ae,ie),_e=pe-le,Ce=(pe+le)/2,$e,xe;if(_e===0)$e=0,xe=0;else{Ce<.5?xe=_e/(pe+le):xe=_e/(2-pe-le);var Ie=((pe-oe)/6+_e/2)/_e,Ne=((pe-ae)/6+_e/2)/_e,Fe=((pe-ie)/6+_e/2)/_e;oe===pe?$e=Fe-Ne:ae===pe?$e=1/3+Ie-Fe:ie===pe&&($e=2/3+Ne-Ie),$e<0&&($e+=1),$e>1&&($e-=1)}var ze=[$e*360,xe,Ce];return $[3]!=null&&ze.push($[3]),ze}}function lift($,oe){var ae=parse$1($);if(ae){for(var ie=0;ie<3;ie++)oe<0?ae[ie]=ae[ie]*(1-oe)|0:ae[ie]=(255-ae[ie])*oe+ae[ie]|0,ae[ie]>255?ae[ie]=255:ae[ie]<0&&(ae[ie]=0);return stringify(ae,ae.length===4?"rgba":"rgb")}}function toHex($){var oe=parse$1($);if(oe)return((1<<24)+(oe[0]<<16)+(oe[1]<<8)+ +oe[2]).toString(16).slice(1)}function fastLerp($,oe,ae){if(!(!(oe&&oe.length)||!($>=0&&$<=1))){ae=ae||[];var ie=$*(oe.length-1),le=Math.floor(ie),pe=Math.ceil(ie),_e=oe[le],Ce=oe[pe],$e=ie-le;return ae[0]=clampCssByte(lerpNumber(_e[0],Ce[0],$e)),ae[1]=clampCssByte(lerpNumber(_e[1],Ce[1],$e)),ae[2]=clampCssByte(lerpNumber(_e[2],Ce[2],$e)),ae[3]=clampCssFloat(lerpNumber(_e[3],Ce[3],$e)),ae}}var fastMapToColor=fastLerp;function lerp($,oe,ae){if(!(!(oe&&oe.length)||!($>=0&&$<=1))){var ie=$*(oe.length-1),le=Math.floor(ie),pe=Math.ceil(ie),_e=parse$1(oe[le]),Ce=parse$1(oe[pe]),$e=ie-le,xe=stringify([clampCssByte(lerpNumber(_e[0],Ce[0],$e)),clampCssByte(lerpNumber(_e[1],Ce[1],$e)),clampCssByte(lerpNumber(_e[2],Ce[2],$e)),clampCssFloat(lerpNumber(_e[3],Ce[3],$e))],"rgba");return ae?{color:xe,leftIndex:le,rightIndex:pe,value:ie}:xe}}var mapToColor=lerp;function modifyHSL($,oe,ae,ie){var le=parse$1($);if($)return le=rgba2hsla(le),oe!=null&&(le[0]=clampCssAngle(oe)),ae!=null&&(le[1]=parseCssFloat(ae)),ie!=null&&(le[2]=parseCssFloat(ie)),stringify(hsla2rgba(le),"rgba")}function modifyAlpha($,oe){var ae=parse$1($);if(ae&&oe!=null)return ae[3]=clampCssFloat(oe),stringify(ae,"rgba")}function stringify($,oe){if(!(!$||!$.length)){var ae=$[0]+","+$[1]+","+$[2];return(oe==="rgba"||oe==="hsva"||oe==="hsla")&&(ae+=","+$[3]),oe+"("+ae+")"}}function lum($,oe){var ae=parse$1($);return ae?(.299*ae[0]+.587*ae[1]+.114*ae[2])*ae[3]/255+(1-ae[3])*oe:0}function random(){return stringify([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}const color=Object.freeze(Object.defineProperty({__proto__:null,fastLerp,fastMapToColor,lerp,lift,lum,mapToColor,modifyAlpha,modifyHSL,parse:parse$1,random,stringify,toHex},Symbol.toStringTag,{value:"Module"}));function isLinearGradient($){return $.type==="linear"}function isRadialGradient($){return $.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function($){return window.btoa(unescape(encodeURIComponent($)))}:typeof Buffer<"u"?function($){return Buffer.from($).toString("base64")}:function($){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1($,oe,ae){return(oe-$)*ae+$}function interpolate1DArray($,oe,ae,ie){for(var le=oe.length,pe=0;pe<le;pe++)$[pe]=interpolateNumber$1(oe[pe],ae[pe],ie);return $}function interpolate2DArray($,oe,ae,ie){for(var le=oe.length,pe=le&&oe[0].length,_e=0;_e<le;_e++){$[_e]||($[_e]=[]);for(var Ce=0;Ce<pe;Ce++)$[_e][Ce]=interpolateNumber$1(oe[_e][Ce],ae[_e][Ce],ie)}return $}function add1DArray($,oe,ae,ie){for(var le=oe.length,pe=0;pe<le;pe++)$[pe]=oe[pe]+ae[pe]*ie;return $}function add2DArray($,oe,ae,ie){for(var le=oe.length,pe=le&&oe[0].length,_e=0;_e<le;_e++){$[_e]||($[_e]=[]);for(var Ce=0;Ce<pe;Ce++)$[_e][Ce]=oe[_e][Ce]+ae[_e][Ce]*ie}return $}function fillColorStops($,oe){for(var ae=$.length,ie=oe.length,le=ae>ie?oe:$,pe=Math.min(ae,ie),_e=le[pe-1]||{color:[0,0,0,0],offset:0},Ce=pe;Ce<Math.max(ae,ie);Ce++)le.push({offset:_e.offset,color:_e.color.slice()})}function fillArray($,oe,ae){var ie=$,le=oe;if(!(!ie.push||!le.push)){var pe=ie.length,_e=le.length;if(pe!==_e){var Ce=pe>_e;if(Ce)ie.length=_e;else for(var $e=pe;$e<_e;$e++)ie.push(ae===1?le[$e]:arraySlice.call(le[$e]))}for(var xe=ie[0]&&ie[0].length,$e=0;$e<ie.length;$e++)if(ae===1)isNaN(ie[$e])&&(ie[$e]=le[$e]);else for(var Ie=0;Ie<xe;Ie++)isNaN(ie[$e][Ie])&&(ie[$e][Ie]=le[$e][Ie])}}function cloneValue($){if(isArrayLike($)){var oe=$.length;if(isArrayLike($[0])){for(var ae=[],ie=0;ie<oe;ie++)ae.push(arraySlice.call($[ie]));return ae}return arraySlice.call($)}return $}function rgba2String($){return $[0]=Math.floor($[0])||0,$[1]=Math.floor($[1])||0,$[2]=Math.floor($[2])||0,$[3]=$[3]==null?1:$[3],"rgba("+$.join(",")+")"}function guessArrayDim($){return isArrayLike($&&$[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($){return $===VALUE_TYPE_LINEAR_GRADIENT||$===VALUE_TYPE_RADIAL_GRADIENT}function isArrayValueType($){return $===VALUE_TYPE_1D_ARRAY||$===VALUE_TYPE_2D_ARRAY}var tmpRgba=[0,0,0,0],Track=function(){function $(oe){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=oe}return $.prototype.isFinished=function(){return this._finished},$.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},$.prototype.needsAnimate=function(){return this.keyframes.length>=1},$.prototype.getAdditiveTrack=function(){return this._additiveTrack},$.prototype.addKeyframe=function(oe,ae,ie){this._needsSort=!0;var le=this.keyframes,pe=le.length,_e=!1,Ce=VALUE_TYPE_UNKOWN,$e=ae;if(isArrayLike(ae)){var xe=guessArrayDim(ae);Ce=xe,(xe===1&&!isNumber(ae[0])||xe===2&&!isNumber(ae[0][0]))&&(_e=!0)}else if(isNumber(ae)&&!eqNaN(ae))Ce=VALUE_TYPE_NUMBER;else if(isString(ae))if(!isNaN(+ae))Ce=VALUE_TYPE_NUMBER;else{var Ie=parse$1(ae);Ie&&($e=Ie,Ce=VALUE_TYPE_COLOR)}else if(isGradientObject(ae)){var Ne=extend({},$e);Ne.colorStops=map$2(ae.colorStops,function(ze){return{offset:ze.offset,color:parse$1(ze.color)}}),isLinearGradient(ae)?Ce=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient(ae)&&(Ce=VALUE_TYPE_RADIAL_GRADIENT),$e=Ne}pe===0?this.valType=Ce:(Ce!==this.valType||Ce===VALUE_TYPE_UNKOWN)&&(_e=!0),this.discrete=this.discrete||_e;var Fe={time:oe,value:$e,rawValue:ae,percent:0};return ie&&(Fe.easing=ie,Fe.easingFunc=isFunction(ie)?ie:easingFuncs$1[ie]||createCubicEasingFunc(ie)),le.push(Fe),Fe},$.prototype.prepare=function(oe,ae){var ie=this.keyframes;this._needsSort&&ie.sort(function(Lt,hn){return Lt.time-hn.time});for(var le=this.valType,pe=ie.length,_e=ie[pe-1],Ce=this.discrete,$e=isArrayValueType(le),xe=isGradientValueType(le),Ie=0;Ie<pe;Ie++){var Ne=ie[Ie],Fe=Ne.value,ze=_e.value;Ne.percent=Ne.time/oe,Ce||($e&&Ie!==pe-1?fillArray(Fe,ze,le):xe&&fillColorStops(Fe.colorStops,ze.colorStops))}if(!Ce&&le!==VALUE_TYPE_RADIAL_GRADIENT&&ae&&this.needsAnimate()&&ae.needsAnimate()&&le===ae.valType&&!ae._finished){this._additiveTrack=ae;for(var At=ie[0].value,Ie=0;Ie<pe;Ie++)le===VALUE_TYPE_NUMBER?ie[Ie].additiveValue=ie[Ie].value-At:le===VALUE_TYPE_COLOR?ie[Ie].additiveValue=add1DArray([],ie[Ie].value,At,-1):isArrayValueType(le)&&(ie[Ie].additiveValue=le===VALUE_TYPE_1D_ARRAY?add1DArray([],ie[Ie].value,At,-1):add2DArray([],ie[Ie].value,At,-1))}},$.prototype.step=function(oe,ae){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var ie=this._additiveTrack!=null,le=ie?"additiveValue":"value",pe=this.valType,_e=this.keyframes,Ce=_e.length,$e=this.propName,xe=pe===VALUE_TYPE_COLOR,Ie,Ne=this._lastFr,Fe=Math.min,ze,At;if(Ce===1)ze=At=_e[0];else{if(ae<0)Ie=0;else if(ae<this._lastFrP){var Lt=Fe(Ne+1,Ce-1);for(Ie=Lt;Ie>=0&&!(_e[Ie].percent<=ae);Ie--);Ie=Fe(Ie,Ce-2)}else{for(Ie=Ne;Ie<Ce&&!(_e[Ie].percent>ae);Ie++);Ie=Fe(Ie-1,Ce-2)}At=_e[Ie+1],ze=_e[Ie]}if(ze&&At){this._lastFr=Ie,this._lastFrP=ae;var hn=At.percent-ze.percent,vn=hn===0?1:Fe((ae-ze.percent)/hn,1);At.easingFunc&&(vn=At.easingFunc(vn));var _n=ie?this._additiveValue:xe?tmpRgba:oe[$e];if((isArrayValueType(pe)||xe)&&!_n&&(_n=this._additiveValue=[]),this.discrete)oe[$e]=vn<1?ze.rawValue:At.rawValue;else if(isArrayValueType(pe))pe===VALUE_TYPE_1D_ARRAY?interpolate1DArray(_n,ze[le],At[le],vn):interpolate2DArray(_n,ze[le],At[le],vn);else if(isGradientValueType(pe)){var bn=ze[le],Cn=At[le],En=pe===VALUE_TYPE_LINEAR_GRADIENT;oe[$e]={type:En?"linear":"radial",x:interpolateNumber$1(bn.x,Cn.x,vn),y:interpolateNumber$1(bn.y,Cn.y,vn),colorStops:map$2(bn.colorStops,function(wn,Tn){var xn=Cn.colorStops[Tn];return{offset:interpolateNumber$1(wn.offset,xn.offset,vn),color:rgba2String(interpolate1DArray([],wn.color,xn.color,vn))}}),global:Cn.global},En?(oe[$e].x2=interpolateNumber$1(bn.x2,Cn.x2,vn),oe[$e].y2=interpolateNumber$1(bn.y2,Cn.y2,vn)):oe[$e].r=interpolateNumber$1(bn.r,Cn.r,vn)}else if(xe)interpolate1DArray(_n,ze[le],At[le],vn),ie||(oe[$e]=rgba2String(_n));else{var $n=interpolateNumber$1(ze[le],At[le],vn);ie?this._additiveValue=$n:oe[$e]=$n}ie&&this._addToTarget(oe)}}},$.prototype._addToTarget=function(oe){var ae=this.valType,ie=this.propName,le=this._additiveValue;ae===VALUE_TYPE_NUMBER?oe[ie]=oe[ie]+le:ae===VALUE_TYPE_COLOR?(parse$1(oe[ie],tmpRgba),add1DArray(tmpRgba,tmpRgba,le,1),oe[ie]=rgba2String(tmpRgba)):ae===VALUE_TYPE_1D_ARRAY?add1DArray(oe[ie],oe[ie],le,1):ae===VALUE_TYPE_2D_ARRAY&&add2DArray(oe[ie],oe[ie],le,1)},$}(),Animator=function(){function $(oe,ae,ie,le){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=oe,this._loop=ae,ae&&le){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=le,this._allowDiscrete=ie}return $.prototype.getMaxTime=function(){return this._maxTime},$.prototype.getDelay=function(){return this._delay},$.prototype.getLoop=function(){return this._loop},$.prototype.getTarget=function(){return this._target},$.prototype.changeTarget=function(oe){this._target=oe},$.prototype.when=function(oe,ae,ie){return this.whenWithKeys(oe,ae,keys(ae),ie)},$.prototype.whenWithKeys=function(oe,ae,ie,le){for(var pe=this._tracks,_e=0;_e<ie.length;_e++){var Ce=ie[_e],$e=pe[Ce];if(!$e){$e=pe[Ce]=new Track(Ce);var xe=void 0,Ie=this._getAdditiveTrack(Ce);if(Ie){var Ne=Ie.keyframes,Fe=Ne[Ne.length-1];xe=Fe&&Fe.value,Ie.valType===VALUE_TYPE_COLOR&&xe&&(xe=rgba2String(xe))}else xe=this._target[Ce];if(xe==null)continue;oe>0&&$e.addKeyframe(0,cloneValue(xe),le),this._trackKeys.push(Ce)}$e.addKeyframe(oe,cloneValue(ae[Ce]),le)}return this._maxTime=Math.max(this._maxTime,oe),this},$.prototype.pause=function(){this._clip.pause(),this._paused=!0},$.prototype.resume=function(){this._clip.resume(),this._paused=!1},$.prototype.isPaused=function(){return!!this._paused},$.prototype.duration=function(oe){return this._maxTime=oe,this._force=!0,this},$.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var oe=this._doneCbs;if(oe)for(var ae=oe.length,ie=0;ie<ae;ie++)oe[ie].call(this)},$.prototype._abortedCallback=function(){this._setTracksFinished();var oe=this.animation,ae=this._abortedCbs;if(oe&&oe.removeClip(this._clip),this._clip=null,ae)for(var ie=0;ie<ae.length;ie++)ae[ie].call(this)},$.prototype._setTracksFinished=function(){for(var oe=this._tracks,ae=this._trackKeys,ie=0;ie<ae.length;ie++)oe[ae[ie]].setFinished()},$.prototype._getAdditiveTrack=function(oe){var ae,ie=this._additiveAnimators;if(ie)for(var le=0;le<ie.length;le++){var pe=ie[le].getTrack(oe);pe&&(ae=pe)}return ae},$.prototype.start=function(oe){if(!(this._started>0)){this._started=1;for(var ae=this,ie=[],le=this._maxTime||0,pe=0;pe<this._trackKeys.length;pe++){var _e=this._trackKeys[pe],Ce=this._tracks[_e],$e=this._getAdditiveTrack(_e),xe=Ce.keyframes,Ie=xe.length;if(Ce.prepare(le,$e),Ce.needsAnimate())if(!this._allowDiscrete&&Ce.discrete){var Ne=xe[Ie-1];Ne&&(ae._target[Ce.propName]=Ne.rawValue),Ce.setFinished()}else ie.push(Ce)}if(ie.length||this._force){var Fe=new Clip$1({life:le,loop:this._loop,delay:this._delay||0,onframe:function(ze){ae._started=2;var At=ae._additiveAnimators;if(At){for(var Lt=!1,hn=0;hn<At.length;hn++)if(At[hn]._clip){Lt=!0;break}Lt||(ae._additiveAnimators=null)}for(var hn=0;hn<ie.length;hn++)ie[hn].step(ae._target,ze);var vn=ae._onframeCbs;if(vn)for(var hn=0;hn<vn.length;hn++)vn[hn](ae._target,ze)},ondestroy:function(){ae._doneCallback()}});this._clip=Fe,this.animation&&this.animation.addClip(Fe),oe&&Fe.setEasing(oe)}else this._doneCallback();return this}},$.prototype.stop=function(oe){if(this._clip){var ae=this._clip;oe&&ae.onframe(1),this._abortedCallback()}},$.prototype.delay=function(oe){return this._delay=oe,this},$.prototype.during=function(oe){return oe&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(oe)),this},$.prototype.done=function(oe){return oe&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(oe)),this},$.prototype.aborted=function(oe){return oe&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(oe)),this},$.prototype.getClip=function(){return this._clip},$.prototype.getTrack=function(oe){return this._tracks[oe]},$.prototype.getTracks=function(){var oe=this;return map$2(this._trackKeys,function(ae){return oe._tracks[ae]})},$.prototype.stopTracks=function(oe,ae){if(!oe.length||!this._clip)return!0;for(var ie=this._tracks,le=this._trackKeys,pe=0;pe<oe.length;pe++){var _e=ie[oe[pe]];_e&&!_e.isFinished()&&(ae?_e.step(this._target,1):this._started===1&&_e.step(this._target,0),_e.setFinished())}for(var Ce=!0,pe=0;pe<le.length;pe++)if(!ie[le[pe]].isFinished()){Ce=!1;break}return Ce&&this._abortedCallback(),Ce},$.prototype.saveTo=function(oe,ae,ie){if(oe){ae=ae||this._trackKeys;for(var le=0;le<ae.length;le++){var pe=ae[le],_e=this._tracks[pe];if(!(!_e||_e.isFinished())){var Ce=_e.keyframes,$e=Ce[ie?0:Ce.length-1];$e&&(oe[pe]=cloneValue($e.rawValue))}}}},$.prototype.__changeFinalValue=function(oe,ae){ae=ae||keys(oe);for(var ie=0;ie<ae.length;ie++){var le=ae[ie],pe=this._tracks[le];if(pe){var _e=pe.keyframes;if(_e.length>1){var Ce=_e.pop();pe.addKeyframe(Ce.time,oe[le]),pe.prepare(this._maxTime,pe.getAdditiveTrack())}}}},$}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;return ie._running=!1,ie._time=0,ie._pausedTime=0,ie._pauseStart=0,ie._paused=!1,ae=ae||{},ie.stage=ae.stage||{},ie}return oe.prototype.addClip=function(ae){ae.animation&&this.removeClip(ae),this._head?(this._tail.next=ae,ae.prev=this._tail,ae.next=null,this._tail=ae):this._head=this._tail=ae,ae.animation=this},oe.prototype.addAnimator=function(ae){ae.animation=this;var ie=ae.getClip();ie&&this.addClip(ie)},oe.prototype.removeClip=function(ae){if(ae.animation){var ie=ae.prev,le=ae.next;ie?ie.next=le:this._head=le,le?le.prev=ie:this._tail=ie,ae.next=ae.prev=ae.animation=null}},oe.prototype.removeAnimator=function(ae){var ie=ae.getClip();ie&&this.removeClip(ie),ae.animation=null},oe.prototype.update=function(ae){for(var ie=getTime()-this._pausedTime,le=ie-this._time,pe=this._head;pe;){var _e=pe.next,Ce=pe.step(ie,le);Ce&&(pe.ondestroy(),this.removeClip(pe)),pe=_e}this._time=ie,ae||(this.trigger("frame",le),this.stage.update&&this.stage.update())},oe.prototype._startLoop=function(){var ae=this;this._running=!0;function ie(){ae._running&&(requestAnimationFrame$2(ie),!ae._paused&&ae.update())}requestAnimationFrame$2(ie)},oe.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},oe.prototype.stop=function(){this._running=!1},oe.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},oe.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},oe.prototype.clear=function(){for(var ae=this._head;ae;){var ie=ae.next;ae.prev=ae.next=ae.animation=null,ae=ie}this._head=this._tail=null},oe.prototype.isFinished=function(){return this._head==null},oe.prototype.animate=function(ae,ie){ie=ie||{},this.start();var le=new Animator$1(ae,ie.loop);return this.addAnimator(le),le},oe}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var $=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],oe=["touchstart","touchend","touchmove"],ae={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},ie=map$2($,function(le){var pe=le.replace("mouse","pointer");return ae.hasOwnProperty(pe)?pe:le});return{mouse:$,touch:oe,pointer:ie}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch($){var oe=$.pointerType;return oe==="pen"||oe==="touch"}function setTouchTimer($){$.touching=!0,$.touchTimer!=null&&(clearTimeout($.touchTimer),$.touchTimer=null),$.touchTimer=setTimeout(function(){$.touching=!1,$.touchTimer=null},700)}function markTouch($){$&&($.zrByTouch=!0)}function normalizeGlobalEvent($,oe){return normalizeEvent($.dom,new FakeGlobalEvent($,oe),!0)}function isLocalEl($,oe){for(var ae=oe,ie=!1;ae&&ae.nodeType!==9&&!(ie=ae.domBelongToZr||ae!==oe&&ae===$.painterRoot);)ae=ae.parentNode;return ie}var FakeGlobalEvent=function(){function $(oe,ae){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=ae.type,this.target=this.currentTarget=oe.dom,this.pointerType=ae.pointerType,this.clientX=ae.clientX,this.clientY=ae.clientY}return $}(),localDOMHandlers={mousedown:function($){$=normalizeEvent(this.dom,$),this.__mayPointerCapture=[$.zrX,$.zrY],this.trigger("mousedown",$)},mousemove:function($){$=normalizeEvent(this.dom,$);var oe=this.__mayPointerCapture;oe&&($.zrX!==oe[0]||$.zrY!==oe[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",$)},mouseup:function($){$=normalizeEvent(this.dom,$),this.__togglePointerCapture(!1),this.trigger("mouseup",$)},mouseout:function($){$=normalizeEvent(this.dom,$);var oe=$.toElement||$.relatedTarget;isLocalEl(this,oe)||(this.__pointerCapturing&&($.zrEventControl="no_globalout"),this.trigger("mouseout",$))},wheel:function($){wheelEventSupported=!0,$=normalizeEvent(this.dom,$),this.trigger("mousewheel",$)},mousewheel:function($){wheelEventSupported||($=normalizeEvent(this.dom,$),this.trigger("mousewheel",$))},touchstart:function($){$=normalizeEvent(this.dom,$),markTouch($),this.__lastTouchMoment=new Date,this.handler.processGesture($,"start"),localDOMHandlers.mousemove.call(this,$),localDOMHandlers.mousedown.call(this,$)},touchmove:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"change"),localDOMHandlers.mousemove.call(this,$)},touchend:function($){$=normalizeEvent(this.dom,$),markTouch($),this.handler.processGesture($,"end"),localDOMHandlers.mouseup.call(this,$),+new Date-+this.__lastTouchMoment<TOUCH_CLICK_DELAY&&localDOMHandlers.click.call(this,$)},pointerdown:function($){localDOMHandlers.mousedown.call(this,$)},pointermove:function($){isPointerFromTouch($)||localDOMHandlers.mousemove.call(this,$)},pointerup:function($){localDOMHandlers.mouseup.call(this,$)},pointerout:function($){isPointerFromTouch($)||localDOMHandlers.mouseout.call(this,$)}};each$c(["click","dblclick","contextmenu"],function($){localDOMHandlers[$]=function(oe){oe=normalizeEvent(this.dom,oe),this.trigger($,oe)}});var globalDOMHandlers={pointermove:function($){isPointerFromTouch($)||globalDOMHandlers.mousemove.call(this,$)},pointerup:function($){globalDOMHandlers.mouseup.call(this,$)},mousemove:function($){this.trigger("mousemove",$)},mouseup:function($){var oe=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",$),oe&&($.zrEventControl="only_globalout",this.trigger("mouseout",$))}};function mountLocalDOMEventListeners($,oe){var ae=oe.domHandlers;env$1.pointerEventsSupported?each$c(localNativeListenerNames.pointer,function(ie){mountSingleDOMEventListener(oe,ie,function(le){ae[ie].call($,le)})}):(env$1.touchEventsSupported&&each$c(localNativeListenerNames.touch,function(ie){mountSingleDOMEventListener(oe,ie,function(le){ae[ie].call($,le),setTouchTimer(oe)})}),each$c(localNativeListenerNames.mouse,function(ie){mountSingleDOMEventListener(oe,ie,function(le){le=getNativeEvent(le),oe.touching||ae[ie].call($,le)})}))}function mountGlobalDOMEventListeners($,oe){env$1.pointerEventsSupported?each$c(globalNativeListenerNames.pointer,ae):env$1.touchEventsSupported||each$c(globalNativeListenerNames.mouse,ae);function ae(ie){function le(pe){pe=getNativeEvent(pe),isLocalEl($,pe.target)||(pe=normalizeGlobalEvent($,pe),oe.domHandlers[ie].call($,pe))}mountSingleDOMEventListener(oe,ie,le,{capture:!0})}}function mountSingleDOMEventListener($,oe,ae,ie){$.mounted[oe]=ae,$.listenerOpts[oe]=ie,addEventListener($.domTarget,oe,ae,ie)}function unmountDOMEventListeners($){var oe=$.mounted;for(var ae in oe)oe.hasOwnProperty(ae)&&removeEventListener($.domTarget,ae,oe[ae],$.listenerOpts[ae]);$.mounted={}}var DOMHandlerScope=function(){function $(oe,ae){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=oe,this.domHandlers=ae}return $}(),HandlerDomProxy=function($){__extends(oe,$);function oe(ae,ie){var le=$.call(this)||this;return le.__pointerCapturing=!1,le.dom=ae,le.painterRoot=ie,le._localHandlerScope=new DOMHandlerScope(ae,localDOMHandlers),globalEventSupported&&(le._globalHandlerScope=new DOMHandlerScope(document,globalDOMHandlers)),mountLocalDOMEventListeners(le,le._localHandlerScope),le}return oe.prototype.dispose=function(){unmountDOMEventListeners(this._localHandlerScope),globalEventSupported&&unmountDOMEventListeners(this._globalHandlerScope)},oe.prototype.setCursor=function(ae){this.dom.style&&(this.dom.style.cursor=ae||"default")},oe.prototype.__togglePointerCapture=function(ae){if(this.__mayPointerCapture=null,globalEventSupported&&+this.__pointerCapturing^+ae){this.__pointerCapturing=ae;var ie=this._globalHandlerScope;ae?mountGlobalDOMEventListeners(this,ie):unmountDOMEventListeners(ie)}},oe}(Eventful$1);const HandlerProxy=HandlerDomProxy;var 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$2=5e-5;function isNotAroundZero($){return $>EPSILON$2||$<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function $(){}return $.prototype.getLocalTransform=function(oe){return $.getLocalTransform(this,oe)},$.prototype.setPosition=function(oe){this.x=oe[0],this.y=oe[1]},$.prototype.setScale=function(oe){this.scaleX=oe[0],this.scaleY=oe[1]},$.prototype.setSkew=function(oe){this.skewX=oe[0],this.skewY=oe[1]},$.prototype.setOrigin=function(oe){this.originX=oe[0],this.originY=oe[1]},$.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)},$.prototype.updateTransform=function(){var oe=this.parent&&this.parent.transform,ae=this.needLocalTransform(),ie=this.transform;if(!(ae||oe)){ie&&mIdentity(ie);return}ie=ie||create(),ae?this.getLocalTransform(ie):mIdentity(ie),oe&&(ae?mul(ie,oe,ie):copy(ie,oe)),this.transform=ie,this._resolveGlobalScaleRatio(ie)},$.prototype._resolveGlobalScaleRatio=function(oe){var ae=this.globalScaleRatio;if(ae!=null&&ae!==1){this.getGlobalScale(scaleTmp);var ie=scaleTmp[0]<0?-1:1,le=scaleTmp[1]<0?-1:1,pe=((scaleTmp[0]-ie)*ae+ie)/scaleTmp[0]||0,_e=((scaleTmp[1]-le)*ae+le)/scaleTmp[1]||0;oe[0]*=pe,oe[1]*=pe,oe[2]*=_e,oe[3]*=_e}this.invTransform=this.invTransform||create(),invert(this.invTransform,oe)},$.prototype.getComputedTransform=function(){for(var oe=this,ae=[];oe;)ae.push(oe),oe=oe.parent;for(;oe=ae.pop();)oe.updateTransform();return this.transform},$.prototype.setLocalTransform=function(oe){if(oe){var ae=oe[0]*oe[0]+oe[1]*oe[1],ie=oe[2]*oe[2]+oe[3]*oe[3],le=Math.atan2(oe[1],oe[0]),pe=Math.PI/2+le-Math.atan2(oe[3],oe[2]);ie=Math.sqrt(ie)*Math.cos(pe),ae=Math.sqrt(ae),this.skewX=pe,this.skewY=0,this.rotation=-le,this.x=+oe[4],this.y=+oe[5],this.scaleX=ae,this.scaleY=ie,this.originX=0,this.originY=0}},$.prototype.decomposeTransform=function(){if(this.transform){var oe=this.parent,ae=this.transform;oe&&oe.transform&&(mul(tmpTransform,oe.invTransform,ae),ae=tmpTransform);var ie=this.originX,le=this.originY;(ie||le)&&(originTransform[4]=ie,originTransform[5]=le,mul(tmpTransform,ae,originTransform),tmpTransform[4]-=ie,tmpTransform[5]-=le,ae=tmpTransform),this.setLocalTransform(ae)}},$.prototype.getGlobalScale=function(oe){var ae=this.transform;return oe=oe||[],ae?(oe[0]=Math.sqrt(ae[0]*ae[0]+ae[1]*ae[1]),oe[1]=Math.sqrt(ae[2]*ae[2]+ae[3]*ae[3]),ae[0]<0&&(oe[0]=-oe[0]),ae[3]<0&&(oe[1]=-oe[1]),oe):(oe[0]=1,oe[1]=1,oe)},$.prototype.transformCoordToLocal=function(oe,ae){var ie=[oe,ae],le=this.invTransform;return le&&applyTransform$1(ie,ie,le),ie},$.prototype.transformCoordToGlobal=function(oe,ae){var ie=[oe,ae],le=this.transform;return le&&applyTransform$1(ie,ie,le),ie},$.prototype.getLineScale=function(){var oe=this.transform;return oe&&abs(oe[0]-1)>1e-10&&abs(oe[3]-1)>1e-10?Math.sqrt(abs(oe[0]*oe[3]-oe[2]*oe[1])):1},$.prototype.copyTransform=function(oe){copyTransform(this,oe)},$.getLocalTransform=function(oe,ae){ae=ae||[];var ie=oe.originX||0,le=oe.originY||0,pe=oe.scaleX,_e=oe.scaleY,Ce=oe.anchorX,$e=oe.anchorY,xe=oe.rotation||0,Ie=oe.x,Ne=oe.y,Fe=oe.skewX?Math.tan(oe.skewX):0,ze=oe.skewY?Math.tan(-oe.skewY):0;if(ie||le||Ce||$e){var At=ie+Ce,Lt=le+$e;ae[4]=-At*pe-Fe*Lt*_e,ae[5]=-Lt*_e-ze*At*pe}else ae[4]=ae[5]=0;return ae[0]=pe,ae[3]=_e,ae[1]=ze*pe,ae[2]=Fe*_e,xe&&rotate(ae,ae,xe),ae[4]+=ie+Ie,ae[5]+=le+Ne,ae},$.initDefaultProps=function(){var oe=$.prototype;oe.scaleX=oe.scaleY=oe.globalScaleRatio=1,oe.x=oe.y=oe.originX=oe.originY=oe.skewX=oe.skewY=oe.rotation=oe.anchorX=oe.anchorY=0}(),$}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform($,oe){for(var ae=0;ae<TRANSFORMABLE_PROPS.length;ae++){var ie=TRANSFORMABLE_PROPS[ae];$[ie]=oe[ie]}}const Transformable$1=Transformable;var textWidthCache={};function getWidth($,oe){oe=oe||DEFAULT_FONT;var ae=textWidthCache[oe];ae||(ae=textWidthCache[oe]=new LRU$1(500));var ie=ae.get($);return ie==null&&(ie=platformApi.measureText($,oe).width,ae.put($,ie)),ie}function innerGetBoundingRect($,oe,ae,ie){var le=getWidth($,oe),pe=getLineHeight(oe),_e=adjustTextX(0,le,ae),Ce=adjustTextY(0,pe,ie),$e=new BoundingRect$1(_e,Ce,le,pe);return $e}function getBoundingRect($,oe,ae,ie){var le=(($||"")+"").split(`
`),pe=le.length;if(pe===1)return innerGetBoundingRect(le[0],oe,ae,ie);for(var _e=new BoundingRect$1(0,0,0,0),Ce=0;Ce<le.length;Ce++){var $e=innerGetBoundingRect(le[Ce],oe,ae,ie);Ce===0?_e.copy($e):_e.union($e)}return _e}function adjustTextX($,oe,ae){return ae==="right"?$-=oe:ae==="center"&&($-=oe/2),$}function adjustTextY($,oe,ae){return ae==="middle"?$-=oe/2:ae==="bottom"&&($-=oe),$}function getLineHeight($){return getWidth("国",$)}function parsePercent$1($,oe){return typeof $=="string"?$.lastIndexOf("%")>=0?parseFloat($)/100*oe:parseFloat($):$}function calculateTextPosition($,oe,ae){var ie=oe.position||"inside",le=oe.distance!=null?oe.distance:5,pe=ae.height,_e=ae.width,Ce=pe/2,$e=ae.x,xe=ae.y,Ie="left",Ne="top";if(ie instanceof Array)$e+=parsePercent$1(ie[0],ae.width),xe+=parsePercent$1(ie[1],ae.height),Ie=null,Ne=null;else switch(ie){case"left":$e-=le,xe+=Ce,Ie="right",Ne="middle";break;case"right":$e+=le+_e,xe+=Ce,Ne="middle";break;case"top":$e+=_e/2,xe-=le,Ie="center",Ne="bottom";break;case"bottom":$e+=_e/2,xe+=pe+le,Ie="center";break;case"inside":$e+=_e/2,xe+=Ce,Ie="center",Ne="middle";break;case"insideLeft":$e+=le,xe+=Ce,Ne="middle";break;case"insideRight":$e+=_e-le,xe+=Ce,Ie="right",Ne="middle";break;case"insideTop":$e+=_e/2,xe+=le,Ie="center";break;case"insideBottom":$e+=_e/2,xe+=pe-le,Ie="center",Ne="bottom";break;case"insideTopLeft":$e+=le,xe+=le;break;case"insideTopRight":$e+=_e-le,xe+=le,Ie="right";break;case"insideBottomLeft":$e+=le,xe+=pe-le,Ne="bottom";break;case"insideBottomRight":$e+=_e-le,xe+=pe-le,Ie="right",Ne="bottom";break}return $=$||{},$.x=$e,$.y=xe,$.align=Ie,$.verticalAlign=Ne,$}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function($,oe){return $[oe]=!0,$},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function $(oe){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(oe)}return $.prototype._init=function(oe){this.attr(oe)},$.prototype.drift=function(oe,ae,ie){switch(this.draggable){case"horizontal":ae=0;break;case"vertical":oe=0;break}var le=this.transform;le||(le=this.transform=[1,0,0,1,0,0]),le[4]+=oe,le[5]+=ae,this.decomposeTransform(),this.markRedraw()},$.prototype.beforeUpdate=function(){},$.prototype.afterUpdate=function(){},$.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},$.prototype.updateInnerText=function(oe){var ae=this._textContent;if(ae&&(!ae.ignore||oe)){this.textConfig||(this.textConfig={});var ie=this.textConfig,le=ie.local,pe=ae.innerTransformable,_e=void 0,Ce=void 0,$e=!1;pe.parent=le?this:null;var xe=!1;if(pe.copyTransform(ae),ie.position!=null){var Ie=tmpBoundingRect;ie.layoutRect?Ie.copy(ie.layoutRect):Ie.copy(this.getBoundingRect()),le||Ie.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,ie,Ie):calculateTextPosition(tmpTextPosCalcRes,ie,Ie),pe.x=tmpTextPosCalcRes.x,pe.y=tmpTextPosCalcRes.y,_e=tmpTextPosCalcRes.align,Ce=tmpTextPosCalcRes.verticalAlign;var Ne=ie.origin;if(Ne&&ie.rotation!=null){var Fe=void 0,ze=void 0;Ne==="center"?(Fe=Ie.width*.5,ze=Ie.height*.5):(Fe=parsePercent$1(Ne[0],Ie.width),ze=parsePercent$1(Ne[1],Ie.height)),xe=!0,pe.originX=-pe.x+Fe+(le?0:Ie.x),pe.originY=-pe.y+ze+(le?0:Ie.y)}}ie.rotation!=null&&(pe.rotation=ie.rotation);var At=ie.offset;At&&(pe.x+=At[0],pe.y+=At[1],xe||(pe.originX=-At[0],pe.originY=-At[1]));var Lt=ie.inside==null?typeof ie.position=="string"&&ie.position.indexOf("inside")>=0:ie.inside,hn=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),vn=void 0,_n=void 0,bn=void 0;Lt&&this.canBeInsideText()?(vn=ie.insideFill,_n=ie.insideStroke,(vn==null||vn==="auto")&&(vn=this.getInsideTextFill()),(_n==null||_n==="auto")&&(_n=this.getInsideTextStroke(vn),bn=!0)):(vn=ie.outsideFill,_n=ie.outsideStroke,(vn==null||vn==="auto")&&(vn=this.getOutsideFill()),(_n==null||_n==="auto")&&(_n=this.getOutsideStroke(vn),bn=!0)),vn=vn||"#000",(vn!==hn.fill||_n!==hn.stroke||bn!==hn.autoStroke||_e!==hn.align||Ce!==hn.verticalAlign)&&($e=!0,hn.fill=vn,hn.stroke=_n,hn.autoStroke=bn,hn.align=_e,hn.verticalAlign=Ce,ae.setDefaultTextStyle(hn)),ae.__dirty|=REDRAW_BIT,$e&&ae.dirtyStyle(!0)}},$.prototype.canBeInsideText=function(){return!0},$.prototype.getInsideTextFill=function(){return"#fff"},$.prototype.getInsideTextStroke=function(oe){return"#000"},$.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},$.prototype.getOutsideStroke=function(oe){var ae=this.__zr&&this.__zr.getBackgroundColor(),ie=typeof ae=="string"&&parse$1(ae);ie||(ie=[255,255,255,1]);for(var le=ie[3],pe=this.__zr.isDarkMode(),_e=0;_e<3;_e++)ie[_e]=ie[_e]*le+(pe?0:255)*(1-le);return ie[3]=1,stringify(ie,"rgba")},$.prototype.traverse=function(oe,ae){},$.prototype.attrKV=function(oe,ae){oe==="textConfig"?this.setTextConfig(ae):oe==="textContent"?this.setTextContent(ae):oe==="clipPath"?this.setClipPath(ae):oe==="extra"?(this.extra=this.extra||{},extend(this.extra,ae)):this[oe]=ae},$.prototype.hide=function(){this.ignore=!0,this.markRedraw()},$.prototype.show=function(){this.ignore=!1,this.markRedraw()},$.prototype.attr=function(oe,ae){if(typeof oe=="string")this.attrKV(oe,ae);else if(isObject$3(oe))for(var ie=oe,le=keys(ie),pe=0;pe<le.length;pe++){var _e=le[pe];this.attrKV(_e,oe[_e])}return this.markRedraw(),this},$.prototype.saveCurrentToNormalState=function(oe){this._innerSaveToNormal(oe);for(var ae=this._normalState,ie=0;ie<this.animators.length;ie++){var le=this.animators[ie],pe=le.__fromStateTransition;if(!(le.getLoop()||pe&&pe!==PRESERVED_NORMAL_STATE)){var _e=le.targetName,Ce=_e?ae[_e]:ae;le.saveTo(Ce)}}},$.prototype._innerSaveToNormal=function(oe){var ae=this._normalState;ae||(ae=this._normalState={}),oe.textConfig&&!ae.textConfig&&(ae.textConfig=this.textConfig),this._savePrimaryToNormal(oe,ae,PRIMARY_STATES_KEYS$1)},$.prototype._savePrimaryToNormal=function(oe,ae,ie){for(var le=0;le<ie.length;le++){var pe=ie[le];oe[pe]!=null&&!(pe in ae)&&(ae[pe]=this[pe])}},$.prototype.hasState=function(){return this.currentStates.length>0},$.prototype.getState=function(oe){return this.states[oe]},$.prototype.ensureState=function(oe){var ae=this.states;return ae[oe]||(ae[oe]={}),ae[oe]},$.prototype.clearStates=function(oe){this.useState(PRESERVED_NORMAL_STATE,!1,oe)},$.prototype.useState=function(oe,ae,ie,le){var pe=oe===PRESERVED_NORMAL_STATE,_e=this.hasState();if(!(!_e&&pe)){var Ce=this.currentStates,$e=this.stateTransition;if(!(indexOf(Ce,oe)>=0&&(ae||Ce.length===1))){var xe;if(this.stateProxy&&!pe&&(xe=this.stateProxy(oe)),xe||(xe=this.states&&this.states[oe]),!xe&&!pe){logError("State "+oe+" not exists.");return}pe||this.saveCurrentToNormalState(xe);var Ie=!!(xe&&xe.hoverLayer||le);Ie&&this._toggleHoverLayerFlag(!0),this._applyStateObj(oe,xe,this._normalState,ae,!ie&&!this.__inHover&&$e&&$e.duration>0,$e);var Ne=this._textContent,Fe=this._textGuide;return Ne&&Ne.useState(oe,ae,ie,Ie),Fe&&Fe.useState(oe,ae,ie,Ie),pe?(this.currentStates=[],this._normalState={}):ae?this.currentStates.push(oe):this.currentStates=[oe],this._updateAnimationTargets(),this.markRedraw(),!Ie&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),xe}}},$.prototype.useStates=function(oe,ae,ie){if(!oe.length)this.clearStates();else{var le=[],pe=this.currentStates,_e=oe.length,Ce=_e===pe.length;if(Ce){for(var $e=0;$e<_e;$e++)if(oe[$e]!==pe[$e]){Ce=!1;break}}if(Ce)return;for(var $e=0;$e<_e;$e++){var xe=oe[$e],Ie=void 0;this.stateProxy&&(Ie=this.stateProxy(xe,oe)),Ie||(Ie=this.states[xe]),Ie&&le.push(Ie)}var Ne=le[_e-1],Fe=!!(Ne&&Ne.hoverLayer||ie);Fe&&this._toggleHoverLayerFlag(!0);var ze=this._mergeStates(le),At=this.stateTransition;this.saveCurrentToNormalState(ze),this._applyStateObj(oe.join(","),ze,this._normalState,!1,!ae&&!this.__inHover&&At&&At.duration>0,At);var Lt=this._textContent,hn=this._textGuide;Lt&&Lt.useStates(oe,ae,Fe),hn&&hn.useStates(oe,ae,Fe),this._updateAnimationTargets(),this.currentStates=oe.slice(),this.markRedraw(),!Fe&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},$.prototype._updateAnimationTargets=function(){for(var oe=0;oe<this.animators.length;oe++){var ae=this.animators[oe];ae.targetName&&ae.changeTarget(this[ae.targetName])}},$.prototype.removeState=function(oe){var ae=indexOf(this.currentStates,oe);if(ae>=0){var ie=this.currentStates.slice();ie.splice(ae,1),this.useStates(ie)}},$.prototype.replaceState=function(oe,ae,ie){var le=this.currentStates.slice(),pe=indexOf(le,oe),_e=indexOf(le,ae)>=0;pe>=0?_e?le.splice(pe,1):le[pe]=ae:ie&&!_e&&le.push(ae),this.useStates(le)},$.prototype.toggleState=function(oe,ae){ae?this.useState(oe,!0):this.removeState(oe)},$.prototype._mergeStates=function(oe){for(var ae={},ie,le=0;le<oe.length;le++){var pe=oe[le];extend(ae,pe),pe.textConfig&&(ie=ie||{},extend(ie,pe.textConfig))}return ie&&(ae.textConfig=ie),ae},$.prototype._applyStateObj=function(oe,ae,ie,le,pe,_e){var Ce=!(ae&&le);ae&&ae.textConfig?(this.textConfig=extend({},le?this.textConfig:ie.textConfig),extend(this.textConfig,ae.textConfig)):Ce&&ie.textConfig&&(this.textConfig=ie.textConfig);for(var $e={},xe=!1,Ie=0;Ie<PRIMARY_STATES_KEYS$1.length;Ie++){var Ne=PRIMARY_STATES_KEYS$1[Ie],Fe=pe&&DEFAULT_ANIMATABLE_MAP[Ne];ae&&ae[Ne]!=null?Fe?(xe=!0,$e[Ne]=ae[Ne]):this[Ne]=ae[Ne]:Ce&&ie[Ne]!=null&&(Fe?(xe=!0,$e[Ne]=ie[Ne]):this[Ne]=ie[Ne])}if(!pe)for(var Ie=0;Ie<this.animators.length;Ie++){var ze=this.animators[Ie],At=ze.targetName;ze.getLoop()||ze.__changeFinalValue(At?(ae||ie)[At]:ae||ie)}xe&&this._transitionState(oe,$e,_e)},$.prototype._attachComponent=function(oe){if(!(oe.__zr&&!oe.__hostTarget)&&oe!==this){var ae=this.__zr;ae&&oe.addSelfToZr(ae),oe.__zr=ae,oe.__hostTarget=this}},$.prototype._detachComponent=function(oe){oe.__zr&&oe.removeSelfFromZr(oe.__zr),oe.__zr=null,oe.__hostTarget=null},$.prototype.getClipPath=function(){return this._clipPath},$.prototype.setClipPath=function(oe){this._clipPath&&this._clipPath!==oe&&this.removeClipPath(),this._attachComponent(oe),this._clipPath=oe,this.markRedraw()},$.prototype.removeClipPath=function(){var oe=this._clipPath;oe&&(this._detachComponent(oe),this._clipPath=null,this.markRedraw())},$.prototype.getTextContent=function(){return this._textContent},$.prototype.setTextContent=function(oe){var ae=this._textContent;ae!==oe&&(ae&&ae!==oe&&this.removeTextContent(),oe.innerTransformable=new Transformable$1,this._attachComponent(oe),this._textContent=oe,this.markRedraw())},$.prototype.setTextConfig=function(oe){this.textConfig||(this.textConfig={}),extend(this.textConfig,oe),this.markRedraw()},$.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},$.prototype.removeTextContent=function(){var oe=this._textContent;oe&&(oe.innerTransformable=null,this._detachComponent(oe),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},$.prototype.getTextGuideLine=function(){return this._textGuide},$.prototype.setTextGuideLine=function(oe){this._textGuide&&this._textGuide!==oe&&this.removeTextGuideLine(),this._attachComponent(oe),this._textGuide=oe,this.markRedraw()},$.prototype.removeTextGuideLine=function(){var oe=this._textGuide;oe&&(this._detachComponent(oe),this._textGuide=null,this.markRedraw())},$.prototype.markRedraw=function(){this.__dirty|=REDRAW_BIT;var oe=this.__zr;oe&&(this.__inHover?oe.refreshHover():oe.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},$.prototype.dirty=function(){this.markRedraw()},$.prototype._toggleHoverLayerFlag=function(oe){this.__inHover=oe;var ae=this._textContent,ie=this._textGuide;ae&&(ae.__inHover=oe),ie&&(ie.__inHover=oe)},$.prototype.addSelfToZr=function(oe){if(this.__zr!==oe){this.__zr=oe;var ae=this.animators;if(ae)for(var ie=0;ie<ae.length;ie++)oe.animation.addAnimator(ae[ie]);this._clipPath&&this._clipPath.addSelfToZr(oe),this._textContent&&this._textContent.addSelfToZr(oe),this._textGuide&&this._textGuide.addSelfToZr(oe)}},$.prototype.removeSelfFromZr=function(oe){if(this.__zr){this.__zr=null;var ae=this.animators;if(ae)for(var ie=0;ie<ae.length;ie++)oe.animation.removeAnimator(ae[ie]);this._clipPath&&this._clipPath.removeSelfFromZr(oe),this._textContent&&this._textContent.removeSelfFromZr(oe),this._textGuide&&this._textGuide.removeSelfFromZr(oe)}},$.prototype.animate=function(oe,ae,ie){var le=oe?this[oe]:this,pe=new Animator$1(le,ae,ie);return oe&&(pe.targetName=oe),this.addAnimator(pe,oe),pe},$.prototype.addAnimator=function(oe,ae){var ie=this.__zr,le=this;oe.during(function(){le.updateDuringAnimation(ae)}).done(function(){var pe=le.animators,_e=indexOf(pe,oe);_e>=0&&pe.splice(_e,1)}),this.animators.push(oe),ie&&ie.animation.addAnimator(oe),ie&&ie.wakeUp()},$.prototype.updateDuringAnimation=function(oe){this.markRedraw()},$.prototype.stopAnimation=function(oe,ae){for(var ie=this.animators,le=ie.length,pe=[],_e=0;_e<le;_e++){var Ce=ie[_e];!oe||oe===Ce.scope?Ce.stop(ae):pe.push(Ce)}return this.animators=pe,this},$.prototype.animateTo=function(oe,ae,ie){animateTo(this,oe,ae,ie)},$.prototype.animateFrom=function(oe,ae,ie){animateTo(this,oe,ae,ie,!0)},$.prototype._transitionState=function(oe,ae,ie,le){for(var pe=animateTo(this,ae,ie,le),_e=0;_e<pe.length;_e++)pe[_e].__fromStateTransition=oe},$.prototype.getBoundingRect=function(){return null},$.prototype.getPaintRect=function(){return null},$.initDefaultProps=function(){var oe=$.prototype;oe.type="element",oe.name="",oe.ignore=oe.silent=oe.isGroup=oe.draggable=oe.dragging=oe.ignoreClip=oe.__inHover=!1,oe.__dirty=REDRAW_BIT;function ae(ie,le,pe,_e){Object.defineProperty(oe,ie,{get:function(){if(!this[le]){var $e=this[le]=[];Ce(this,$e)}return this[le]},set:function($e){this[pe]=$e[0],this[_e]=$e[1],this[le]=$e,Ce(this,$e)}});function Ce($e,xe){Object.defineProperty(xe,0,{get:function(){return $e[pe]},set:function(Ie){$e[pe]=Ie}}),Object.defineProperty(xe,1,{get:function(){return $e[_e]},set:function(Ie){$e[_e]=Ie}})}}Object.defineProperty&&(ae("position","_legacyPos","x","y"),ae("scale","_legacyScale","scaleX","scaleY"),ae("origin","_legacyOrigin","originX","originY"))}(),$}();mixin(Element$1,Eventful$1);mixin(Element$1,Transformable$1);function animateTo($,oe,ae,ie,le){ae=ae||{};var pe=[];animateToShallow($,"",$,oe,ae,ie,pe,le);var _e=pe.length,Ce=!1,$e=ae.done,xe=ae.aborted,Ie=function(){Ce=!0,_e--,_e<=0&&(Ce?$e&&$e():xe&&xe())},Ne=function(){_e--,_e<=0&&(Ce?$e&&$e():xe&&xe())};_e||$e&&$e(),pe.length>0&&ae.during&&pe[0].during(function(At,Lt){ae.during(Lt)});for(var Fe=0;Fe<pe.length;Fe++){var ze=pe[Fe];Ie&&ze.done(Ie),Ne&&ze.aborted(Ne),ae.force&&ze.duration(ae.duration),ze.start(ae.easing)}return pe}function copyArrShallow($,oe,ae){for(var ie=0;ie<ae;ie++)$[ie]=oe[ie]}function is2DArray($){return isArrayLike($[0])}function copyValue($,oe,ae){if(isArrayLike(oe[ae]))if(isArrayLike($[ae])||($[ae]=[]),isTypedArray(oe[ae])){var ie=oe[ae].length;$[ae].length!==ie&&($[ae]=new oe[ae].constructor(ie),copyArrShallow($[ae],oe[ae],ie))}else{var le=oe[ae],pe=$[ae],_e=le.length;if(is2DArray(le))for(var Ce=le[0].length,$e=0;$e<_e;$e++)pe[$e]?copyArrShallow(pe[$e],le[$e],Ce):pe[$e]=Array.prototype.slice.call(le[$e]);else copyArrShallow(pe,le,_e);pe.length=le.length}else $[ae]=oe[ae]}function isValueSame($,oe){return $===oe||isArrayLike($)&&isArrayLike(oe)&&is1DArraySame($,oe)}function is1DArraySame($,oe){var ae=$.length;if(ae!==oe.length)return!1;for(var ie=0;ie<ae;ie++)if($[ie]!==oe[ie])return!1;return!0}function animateToShallow($,oe,ae,ie,le,pe,_e,Ce){for(var $e=keys(ie),xe=le.duration,Ie=le.delay,Ne=le.additive,Fe=le.setToFinal,ze=!isObject$3(pe),At=$.animators,Lt=[],hn=0;hn<$e.length;hn++){var vn=$e[hn],_n=ie[vn];if(_n!=null&&ae[vn]!=null&&(ze||pe[vn]))if(isObject$3(_n)&&!isArrayLike(_n)&&!isGradientObject(_n)){if(oe){Ce||(ae[vn]=_n,$.updateDuringAnimation(oe));continue}animateToShallow($,vn,ae[vn],_n,le,pe&&pe[vn],_e,Ce)}else Lt.push(vn);else Ce||(ae[vn]=_n,$.updateDuringAnimation(oe),Lt.push(vn))}var bn=Lt.length;if(!Ne&&bn)for(var Cn=0;Cn<At.length;Cn++){var En=At[Cn];if(En.targetName===oe){var $n=En.stopTracks(Lt);if($n){var wn=indexOf(At,En);At.splice(wn,1)}}}if(le.force||(Lt=filter(Lt,function(An){return!isValueSame(ie[An],ae[An])}),bn=Lt.length),bn>0||le.force&&!_e.length){var Tn=void 0,xn=void 0,kn=void 0;if(Ce){xn={},Fe&&(Tn={});for(var Cn=0;Cn<bn;Cn++){var vn=Lt[Cn];xn[vn]=ae[vn],Fe?Tn[vn]=ie[vn]:ae[vn]=ie[vn]}}else if(Fe){kn={};for(var Cn=0;Cn<bn;Cn++){var vn=Lt[Cn];kn[vn]=cloneValue(ae[vn]),copyValue(ae,ie,vn)}}var En=new Animator$1(ae,!1,!1,Ne?filter(At,function(On){return On.targetName===oe}):null);En.targetName=oe,le.scope&&(En.scope=le.scope),Fe&&Tn&&En.whenWithKeys(0,Tn,Lt),kn&&En.whenWithKeys(0,kn,Lt),En.whenWithKeys(xe??500,Ce?xn:ie,Lt).delay(Ie||0),$.addAnimator(En,oe),_e.push(En)}}const Element$2=Element$1;var Group$2=function($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;return ie.isGroup=!0,ie._children=[],ie.attr(ae),ie}return oe.prototype.childrenRef=function(){return this._children},oe.prototype.children=function(){return this._children.slice()},oe.prototype.childAt=function(ae){return this._children[ae]},oe.prototype.childOfName=function(ae){for(var ie=this._children,le=0;le<ie.length;le++)if(ie[le].name===ae)return ie[le]},oe.prototype.childCount=function(){return this._children.length},oe.prototype.add=function(ae){return ae&&ae!==this&&ae.parent!==this&&(this._children.push(ae),this._doAdd(ae)),this},oe.prototype.addBefore=function(ae,ie){if(ae&&ae!==this&&ae.parent!==this&&ie&&ie.parent===this){var le=this._children,pe=le.indexOf(ie);pe>=0&&(le.splice(pe,0,ae),this._doAdd(ae))}return this},oe.prototype.replace=function(ae,ie){var le=indexOf(this._children,ae);return le>=0&&this.replaceAt(ie,le),this},oe.prototype.replaceAt=function(ae,ie){var le=this._children,pe=le[ie];if(ae&&ae!==this&&ae.parent!==this&&ae!==pe){le[ie]=ae,pe.parent=null;var _e=this.__zr;_e&&pe.removeSelfFromZr(_e),this._doAdd(ae)}return this},oe.prototype._doAdd=function(ae){ae.parent&&ae.parent.remove(ae),ae.parent=this;var ie=this.__zr;ie&&ie!==ae.__zr&&ae.addSelfToZr(ie),ie&&ie.refresh()},oe.prototype.remove=function(ae){var ie=this.__zr,le=this._children,pe=indexOf(le,ae);return pe<0?this:(le.splice(pe,1),ae.parent=null,ie&&ae.removeSelfFromZr(ie),ie&&ie.refresh(),this)},oe.prototype.removeAll=function(){for(var ae=this._children,ie=this.__zr,le=0;le<ae.length;le++){var pe=ae[le];ie&&pe.removeSelfFromZr(ie),pe.parent=null}return ae.length=0,this},oe.prototype.eachChild=function(ae,ie){for(var le=this._children,pe=0;pe<le.length;pe++){var _e=le[pe];ae.call(ie,_e,pe)}return this},oe.prototype.traverse=function(ae,ie){for(var le=0;le<this._children.length;le++){var pe=this._children[le],_e=ae.call(ie,pe);pe.isGroup&&!_e&&pe.traverse(ae,ie)}return this},oe.prototype.addSelfToZr=function(ae){$.prototype.addSelfToZr.call(this,ae);for(var ie=0;ie<this._children.length;ie++){var le=this._children[ie];le.addSelfToZr(ae)}},oe.prototype.removeSelfFromZr=function(ae){$.prototype.removeSelfFromZr.call(this,ae);for(var ie=0;ie<this._children.length;ie++){var le=this._children[ie];le.removeSelfFromZr(ae)}},oe.prototype.getBoundingRect=function(ae){for(var ie=new BoundingRect$1(0,0,0,0),le=ae||this._children,pe=[],_e=null,Ce=0;Ce<le.length;Ce++){var $e=le[Ce];if(!($e.ignore||$e.invisible)){var xe=$e.getBoundingRect(),Ie=$e.getLocalTransform(pe);Ie?(BoundingRect$1.applyTransform(ie,xe,Ie),_e=_e||ie.clone(),_e.union(ie)):(_e=_e||xe.clone(),_e.union(xe))}}return _e||ie},oe}(Element$2);Group$2.prototype.type="group";const Group$3=Group$2;/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var painterCtors={},instances$1={};function delInstance($){delete instances$1[$]}function isDarkMode($){if(!$)return!1;if(typeof $=="string")return lum($,1)<DARK_MODE_THRESHOLD;if($.colorStops){for(var oe=$.colorStops,ae=0,ie=oe.length,le=0;le<ie;le++)ae+=lum(oe[le].color,1);return ae/=ie,ae<DARK_MODE_THRESHOLD}return!1}var ZRender=function(){function $(oe,ae,ie){var le=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,ie=ie||{},this.dom=ae,this.id=oe;var pe=new Storage$1,_e=ie.renderer||"canvas";painterCtors[_e]||(_e=keys(painterCtors)[0]),ie.useDirtyRect=ie.useDirtyRect==null?!1:ie.useDirtyRect;var Ce=new painterCtors[_e](ae,pe,ie,oe),$e=ie.ssr||Ce.ssrOnly;this.storage=pe,this.painter=Ce;var xe=!env$1.node&&!env$1.worker&&!$e?new HandlerProxy(Ce.getViewportRoot(),Ce.root):null,Ie=ie.useCoarsePointer,Ne=Ie==null||Ie==="auto"?env$1.touchEventsSupported:!!Ie,Fe=44,ze;Ne&&(ze=retrieve2(ie.pointerSize,Fe)),this.handler=new Handler$1(pe,Ce,xe,Ce.root,ze),this.animation=new Animation$1({stage:{update:$e?null:function(){return le._flush(!0)}}}),$e||this.animation.start()}return $.prototype.add=function(oe){oe&&(this.storage.addRoot(oe),oe.addSelfToZr(this),this.refresh())},$.prototype.remove=function(oe){oe&&(this.storage.delRoot(oe),oe.removeSelfFromZr(this),this.refresh())},$.prototype.configLayer=function(oe,ae){this.painter.configLayer&&this.painter.configLayer(oe,ae),this.refresh()},$.prototype.setBackgroundColor=function(oe){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(oe),this.refresh(),this._backgroundColor=oe,this._darkMode=isDarkMode(oe)},$.prototype.getBackgroundColor=function(){return this._backgroundColor},$.prototype.setDarkMode=function(oe){this._darkMode=oe},$.prototype.isDarkMode=function(){return this._darkMode},$.prototype.refreshImmediately=function(oe){oe||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},$.prototype.refresh=function(){this._needsRefresh=!0,this.animation.start()},$.prototype.flush=function(){this._flush(!1)},$.prototype._flush=function(oe){var ae,ie=getTime();this._needsRefresh&&(ae=!0,this.refreshImmediately(oe)),this._needsRefreshHover&&(ae=!0,this.refreshHoverImmediately());var le=getTime();ae?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:le-ie})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},$.prototype.setSleepAfterStill=function(oe){this._sleepAfterStill=oe},$.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},$.prototype.refreshHover=function(){this._needsRefreshHover=!0},$.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},$.prototype.resize=function(oe){oe=oe||{},this.painter.resize(oe.width,oe.height),this.handler.resize()},$.prototype.clearAnimation=function(){this.animation.clear()},$.prototype.getWidth=function(){return this.painter.getWidth()},$.prototype.getHeight=function(){return this.painter.getHeight()},$.prototype.setCursorStyle=function(oe){this.handler.setCursorStyle(oe)},$.prototype.findHover=function(oe,ae){return this.handler.findHover(oe,ae)},$.prototype.on=function(oe,ae,ie){return this.handler.on(oe,ae,ie),this},$.prototype.off=function(oe,ae){this.handler.off(oe,ae)},$.prototype.trigger=function(oe,ae){this.handler.trigger(oe,ae)},$.prototype.clear=function(){for(var oe=this.storage.getRoots(),ae=0;ae<oe.length;ae++)oe[ae]instanceof Group$3&&oe[ae].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()},$.prototype.dispose=function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,delInstance(this.id)},$}();function init$1($,oe){var ae=new ZRender(guid(),$,oe);return instances$1[ae.id]=ae,ae}function dispose$1($){$.dispose()}function disposeAll(){for(var $ in instances$1)instances$1.hasOwnProperty($)&&instances$1[$].dispose();instances$1={}}function getInstance($){return instances$1[$]}function registerPainter($,oe){painterCtors[$]=oe}var version$1="5.4.3";const zrender=Object.freeze(Object.defineProperty({__proto__:null,dispose:dispose$1,disposeAll,getInstance,init:init$1,registerPainter,version:version$1},Symbol.toStringTag,{value:"Module"}));var RADIAN_EPSILON=1e-4,ROUND_SUPPORTED_PRECISION_MAX=20;function _trim($){return $.replace(/^\s+|\s+$/g,"")}function linearMap$2($,oe,ae,ie){var le=oe[0],pe=oe[1],_e=ae[0],Ce=ae[1],$e=pe-le,xe=Ce-_e;if($e===0)return xe===0?_e:(_e+Ce)/2;if(ie)if($e>0){if($<=le)return _e;if($>=pe)return Ce}else{if($>=le)return _e;if($<=pe)return Ce}else{if($===le)return _e;if($===pe)return Ce}return($-le)/$e*xe+_e}function parsePercent($,oe){switch($){case"center":case"middle":$="50%";break;case"left":case"top":$="0%";break;case"right":case"bottom":$="100%";break}return isString($)?_trim($).match(/%$/)?parseFloat($)/100*oe:parseFloat($):$==null?NaN:+$}function round$1($,oe,ae){return oe==null&&(oe=10),oe=Math.min(Math.max(0,oe),ROUND_SUPPORTED_PRECISION_MAX),$=(+$).toFixed(oe),ae?$:+$}function asc$2($){return $.sort(function(oe,ae){return oe-ae}),$}function getPrecision($){if($=+$,isNaN($))return 0;if($>1e-14){for(var oe=1,ae=0;ae<15;ae++,oe*=10)if(Math.round($*oe)/oe===$)return ae}return getPrecisionSafe($)}function getPrecisionSafe($){var oe=$.toString().toLowerCase(),ae=oe.indexOf("e"),ie=ae>0?+oe.slice(ae+1):0,le=ae>0?ae:oe.length,pe=oe.indexOf("."),_e=pe<0?0:le-1-pe;return Math.max(0,_e-ie)}function getPixelPrecision($,oe){var ae=Math.log,ie=Math.LN10,le=Math.floor(ae($[1]-$[0])/ie),pe=Math.round(ae(Math.abs(oe[1]-oe[0]))/ie),_e=Math.min(Math.max(-le+pe,0),20);return isFinite(_e)?_e:20}function getPercentWithPrecision($,oe,ae){if(!$[oe])return 0;var ie=getPercentSeats($,ae);return ie[oe]||0}function getPercentSeats($,oe){var ae=reduce($,function(ze,At){return ze+(isNaN(At)?0:At)},0);if(ae===0)return[];for(var ie=Math.pow(10,oe),le=map$2($,function(ze){return(isNaN(ze)?0:ze)/ae*ie*100}),pe=ie*100,_e=map$2(le,function(ze){return Math.floor(ze)}),Ce=reduce(_e,function(ze,At){return ze+At},0),$e=map$2(le,function(ze,At){return ze-_e[At]});Ce<pe;){for(var xe=Number.NEGATIVE_INFINITY,Ie=null,Ne=0,Fe=$e.length;Ne<Fe;++Ne)$e[Ne]>xe&&(xe=$e[Ne],Ie=Ne);++_e[Ie],$e[Ie]=0,++Ce}return map$2(_e,function(ze){return ze/ie})}function addSafe($,oe){var ae=Math.max(getPrecision($),getPrecision(oe)),ie=$+oe;return ae>ROUND_SUPPORTED_PRECISION_MAX?ie:round$1(ie,ae)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian($){var oe=Math.PI*2;return($%oe+oe)%oe}function isRadianAroundZero($){return $>-RADIAN_EPSILON&&$<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($){if($ instanceof Date)return $;if(isString($)){var oe=TIME_REG.exec($);if(!oe)return new Date(NaN);if(oe[8]){var ae=+oe[4]||0;return oe[8].toUpperCase()!=="Z"&&(ae-=+oe[8].slice(0,3)),new Date(Date.UTC(+oe[1],+(oe[2]||1)-1,+oe[3]||1,ae,+(oe[5]||0),+oe[6]||0,oe[7]?+oe[7].substring(0,3):0))}else return new Date(+oe[1],+(oe[2]||1)-1,+oe[3]||1,+oe[4]||0,+(oe[5]||0),+oe[6]||0,oe[7]?+oe[7].substring(0,3):0)}else if($==null)return new Date(NaN);return new Date(Math.round($))}function quantity($){return Math.pow(10,quantityExponent($))}function quantityExponent($){if($===0)return 0;var oe=Math.floor(Math.log($)/Math.LN10);return $/Math.pow(10,oe)>=10&&oe++,oe}function nice($,oe){var ae=quantityExponent($),ie=Math.pow(10,ae),le=$/ie,pe;return oe?le<1.5?pe=1:le<2.5?pe=2:le<4?pe=3:le<7?pe=5:pe=10:le<1?pe=1:le<2?pe=2:le<3?pe=3:le<5?pe=5:pe=10,$=pe*ie,ae>=-20?+$.toFixed(ae<0?-ae:0):$}function quantile($,oe){var ae=($.length-1)*oe+1,ie=Math.floor(ae),le=+$[ie-1],pe=ae-ie;return pe?le+pe*($[ie]-le):le}function reformIntervals($){$.sort(function($e,xe){return Ce($e,xe,0)?-1:1});for(var oe=-1/0,ae=1,ie=0;ie<$.length;){for(var le=$[ie].interval,pe=$[ie].close,_e=0;_e<2;_e++)le[_e]<=oe&&(le[_e]=oe,pe[_e]=_e?1:1-ae),oe=le[_e],ae=pe[_e];le[0]===le[1]&&pe[0]*pe[1]!==1?$.splice(ie,1):ie++}return $;function Ce($e,xe,Ie){return $e.interval[Ie]<xe.interval[Ie]||$e.interval[Ie]===xe.interval[Ie]&&($e.close[Ie]-xe.close[Ie]===(Ie?-1:1)||!Ie&&Ce($e,xe,1))}}function numericToNumber($){var oe=parseFloat($);return oe==$&&(oe!==0||!isString($)||$.indexOf("x")<=0)?oe:NaN}function isNumeric($){return!isNaN(numericToNumber($))}function getRandomIdBase(){return Math.round(Math.random()*9)}function getGreatestCommonDividor($,oe){return oe===0?$:getGreatestCommonDividor(oe,$%oe)}function getLeastCommonMultiple($,oe){return $==null?oe:oe==null?$:$*oe/getGreatestCommonDividor($,oe)}var ECHARTS_PREFIX="[ECharts] ",storedLogs={},hasConsole=typeof console<"u"&&console.warn&&console.log;function outputLog($,oe,ae){if(hasConsole){if(ae){if(storedLogs[oe])return;storedLogs[oe]=!0}console[$](ECHARTS_PREFIX+oe)}}function warn($,oe){outputLog("warn",$,oe)}function throwError($){throw new Error($)}function interpolateNumber($,oe,ae){return(oe-$)*ae+$}var DUMMY_COMPONENT_NAME_PREFIX="series\0",INTERNAL_COMPONENT_ID_PREFIX="\0_ec_\0";function normalizeToArray($){return $ instanceof Array?$:$==null?[]:[$]}function defaultEmphasis($,oe,ae){if($){$[oe]=$[oe]||{},$.emphasis=$.emphasis||{},$.emphasis[oe]=$.emphasis[oe]||{};for(var ie=0,le=ae.length;ie<le;ie++){var pe=ae[ie];!$.emphasis[oe].hasOwnProperty(pe)&&$[oe].hasOwnProperty(pe)&&($.emphasis[oe][pe]=$[oe][pe])}}}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($){return isObject$3($)&&!isArray$1($)&&!($ instanceof Date)?$.value:$}function isDataItemOption($){return isObject$3($)&&!($ instanceof Array)}function mappingToExists($,oe,ae){var ie=ae==="normalMerge",le=ae==="replaceMerge",pe=ae==="replaceAll";$=$||[],oe=(oe||[]).slice();var _e=createHashMap();each$c(oe,function($e,xe){if(!isObject$3($e)){oe[xe]=null;return}});var Ce=prepareResult($,_e,ae);return(ie||le)&&mappingById(Ce,$,_e,oe),ie&&mappingByName(Ce,oe),ie||le?mappingByIndex(Ce,oe,le):pe&&mappingInReplaceAllMode(Ce,oe),makeIdAndName(Ce),Ce}function prepareResult($,oe,ae){var ie=[];if(ae==="replaceAll")return ie;for(var le=0;le<$.length;le++){var pe=$[le];pe&&pe.id!=null&&oe.set(pe.id,le),ie.push({existing:ae==="replaceMerge"||isComponentIdInternal(pe)?null:pe,newOption:null,keyInfo:null,brandNew:null})}return ie}function mappingById($,oe,ae,ie){each$c(ie,function(le,pe){if(!(!le||le.id==null)){var _e=makeComparableKey(le.id),Ce=ae.get(_e);if(Ce!=null){var $e=$[Ce];assert(!$e.newOption,'Duplicated option on id "'+_e+'".'),$e.newOption=le,$e.existing=oe[Ce],ie[pe]=null}}})}function mappingByName($,oe){each$c(oe,function(ae,ie){if(!(!ae||ae.name==null))for(var le=0;le<$.length;le++){var pe=$[le].existing;if(!$[le].newOption&&pe&&(pe.id==null||ae.id==null)&&!isComponentIdInternal(ae)&&!isComponentIdInternal(pe)&&keyExistAndEqual("name",pe,ae)){$[le].newOption=ae,oe[ie]=null;return}}})}function mappingByIndex($,oe,ae){each$c(oe,function(ie){if(ie){for(var le,pe=0;(le=$[pe])&&(le.newOption||isComponentIdInternal(le.existing)||le.existing&&ie.id!=null&&!keyExistAndEqual("id",ie,le.existing));)pe++;le?(le.newOption=ie,le.brandNew=ae):$.push({newOption:ie,brandNew:ae,existing:null,keyInfo:null}),pe++}})}function mappingInReplaceAllMode($,oe){each$c(oe,function(ae){$.push({newOption:ae,brandNew:!0,existing:null,keyInfo:null})})}function makeIdAndName($){var oe=createHashMap();each$c($,function(ae){var ie=ae.existing;ie&&oe.set(ie.id,ae)}),each$c($,function(ae){var ie=ae.newOption;assert(!ie||ie.id==null||!oe.get(ie.id)||oe.get(ie.id)===ae,"id duplicates: "+(ie&&ie.id)),ie&&ie.id!=null&&oe.set(ie.id,ae),!ae.keyInfo&&(ae.keyInfo={})}),each$c($,function(ae,ie){var le=ae.existing,pe=ae.newOption,_e=ae.keyInfo;if(isObject$3(pe)){if(_e.name=pe.name!=null?makeComparableKey(pe.name):le?le.name:DUMMY_COMPONENT_NAME_PREFIX+ie,le)_e.id=makeComparableKey(le.id);else if(pe.id!=null)_e.id=makeComparableKey(pe.id);else{var Ce=0;do _e.id="\0"+_e.name+"\0"+Ce++;while(oe.get(_e.id))}oe.set(_e.id,ae)}})}function keyExistAndEqual($,oe,ae){var ie=convertOptionIdName(oe[$],null),le=convertOptionIdName(ae[$],null);return ie!=null&&le!=null&&ie===le}function makeComparableKey($){return convertOptionIdName($,"")}function convertOptionIdName($,oe){return $==null?oe:isString($)?$:isNumber($)||isStringSafe($)?$+"":oe}function isNameSpecified($){var oe=$.name;return!!(oe&&oe.indexOf(DUMMY_COMPONENT_NAME_PREFIX))}function isComponentIdInternal($){return $&&$.id!=null&&makeComparableKey($.id).indexOf(INTERNAL_COMPONENT_ID_PREFIX)===0}function makeInternalComponentId($){return INTERNAL_COMPONENT_ID_PREFIX+$}function setComponentTypeToKeyInfo($,oe,ae){each$c($,function(ie){var le=ie.newOption;isObject$3(le)&&(ie.keyInfo.mainType=oe,ie.keyInfo.subType=determineSubType(oe,le,ie.existing,ae))})}function determineSubType($,oe,ae,ie){var le=oe.type?oe.type:ae?ae.subType:ie.determineSubType($,oe);return le}function compressBatches($,oe){var ae={},ie={};return le($||[],ae),le(oe||[],ie,ae),[pe(ae),pe(ie)];function le(_e,Ce,$e){for(var xe=0,Ie=_e.length;xe<Ie;xe++){var Ne=convertOptionIdName(_e[xe].seriesId,null);if(Ne==null)return;for(var Fe=normalizeToArray(_e[xe].dataIndex),ze=$e&&$e[Ne],At=0,Lt=Fe.length;At<Lt;At++){var hn=Fe[At];ze&&ze[hn]?ze[hn]=null:(Ce[Ne]||(Ce[Ne]={}))[hn]=1}}}function pe(_e,Ce){var $e=[];for(var xe in _e)if(_e.hasOwnProperty(xe)&&_e[xe]!=null)if(Ce)$e.push(+xe);else{var Ie=pe(_e[xe],!0);Ie.length&&$e.push({seriesId:xe,dataIndex:Ie})}return $e}}function queryDataIndex($,oe){if(oe.dataIndexInside!=null)return oe.dataIndexInside;if(oe.dataIndex!=null)return isArray$1(oe.dataIndex)?map$2(oe.dataIndex,function(ae){return $.indexOfRawIndex(ae)}):$.indexOfRawIndex(oe.dataIndex);if(oe.name!=null)return isArray$1(oe.name)?map$2(oe.name,function(ae){return $.indexOfName(ae)}):$.indexOfName(oe.name)}function makeInner(){var $="__ec_inner_"+innerUniqueIndex++;return function(oe){return oe[$]||(oe[$]={})}}var innerUniqueIndex=getRandomIdBase();function parseFinder$1($,oe,ae){var ie=preParseFinder(oe,ae),le=ie.mainTypeSpecified,pe=ie.queryOptionMap,_e=ie.others,Ce=_e,$e=ae?ae.defaultMainType:null;return!le&&$e&&pe.set($e,{}),pe.each(function(xe,Ie){var Ne=queryReferringComponents($,Ie,xe,{useDefault:$e===Ie,enableAll:ae&&ae.enableAll!=null?ae.enableAll:!0,enableNone:ae&&ae.enableNone!=null?ae.enableNone:!0});Ce[Ie+"Models"]=Ne.models,Ce[Ie+"Model"]=Ne.models[0]}),Ce}function preParseFinder($,oe){var ae;if(isString($)){var ie={};ie[$+"Index"]=0,ae=ie}else ae=$;var le=createHashMap(),pe={},_e=!1;return each$c(ae,function(Ce,$e){if($e==="dataIndex"||$e==="dataIndexInside"){pe[$e]=Ce;return}var xe=$e.match(/^(\w+)(Index|Id|Name)$/)||[],Ie=xe[1],Ne=(xe[2]||"").toLowerCase();if(!(!Ie||!Ne||oe&&oe.includeMainTypes&&indexOf(oe.includeMainTypes,Ie)<0)){_e=_e||!!Ie;var Fe=le.get(Ie)||le.set(Ie,{});Fe[Ne]=Ce}}),{mainTypeSpecified:_e,queryOptionMap:le,others:pe}}var SINGLE_REFERRING={useDefault:!0,enableAll:!1,enableNone:!1},MULTIPLE_REFERRING={useDefault:!1,enableAll:!0,enableNone:!0};function queryReferringComponents($,oe,ae,ie){ie=ie||SINGLE_REFERRING;var le=ae.index,pe=ae.id,_e=ae.name,Ce={models:null,specified:le!=null||pe!=null||_e!=null};if(!Ce.specified){var $e=void 0;return Ce.models=ie.useDefault&&($e=$.getComponent(oe))?[$e]:[],Ce}return le==="none"||le===!1?(assert(ie.enableNone,'`"none"` or `false` is not a valid value on index option.'),Ce.models=[],Ce):(le==="all"&&(assert(ie.enableAll,'`"all"` is not a valid value on index option.'),le=pe=_e=null),Ce.models=$.queryComponents({mainType:oe,index:le,id:pe,name:_e}),Ce)}function setAttribute($,oe,ae){$.setAttribute?$.setAttribute(oe,ae):$[oe]=ae}function getAttribute($,oe){return $.getAttribute?$.getAttribute(oe):$[oe]}function getTooltipRenderMode($){return $==="auto"?env$1.domSupported?"html":"richText":$||"html"}function interpolateRawValues($,oe,ae,ie,le){var pe=oe==null||oe==="auto";if(ie==null)return ie;if(isNumber(ie)){var _e=interpolateNumber(ae||0,ie,le);return round$1(_e,pe?Math.max(getPrecision(ae||0),getPrecision(ie)):oe)}else{if(isString(ie))return le<1?ae:ie;for(var Ce=[],$e=ae,xe=ie,Ie=Math.max($e?$e.length:0,xe.length),Ne=0;Ne<Ie;++Ne){var Fe=$.getDimensionInfo(Ne);if(Fe&&Fe.type==="ordinal")Ce[Ne]=(le<1&&$e?$e:xe)[Ne];else{var ze=$e&&$e[Ne]?$e[Ne]:0,At=xe[Ne],_e=interpolateNumber(ze,At,le);Ce[Ne]=round$1(_e,pe?Math.max(getPrecision(ze),getPrecision(At)):oe)}}return Ce}}var TYPE_DELIMITER=".",IS_CONTAINER="___EC__COMPONENT__CONTAINER___",IS_EXTENDED_CLASS="___EC__EXTENDED_CLASS___";function parseClassType($){var oe={main:"",sub:""};if($){var ae=$.split(TYPE_DELIMITER);oe.main=ae[0]||"",oe.sub=ae[1]||""}return oe}function checkClassType($){assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test($),'componentType "'+$+'" illegal')}function isExtendedClass($){return!!($&&$[IS_EXTENDED_CLASS])}function enableClassExtend($,oe){$.$constructor=$,$.extend=function(ae){var ie=this,le;return isESClass(ie)?le=function(pe){__extends(_e,pe);function _e(){return pe.apply(this,arguments)||this}return _e}(ie):(le=function(){(ae.$constructor||ie).apply(this,arguments)},inherits(le,this)),extend(le.prototype,ae),le[IS_EXTENDED_CLASS]=!0,le.extend=this.extend,le.superCall=superCall,le.superApply=superApply,le.superClass=ie,le}}function isESClass($){return isFunction($)&&/^class\s/.test(Function.prototype.toString.call($))}function mountExtend($,oe){$.extend=oe.extend}var classBase=Math.round(Math.random()*10);function enableClassCheck($){var oe=["__\0is_clz",classBase++].join("_");$.prototype[oe]=!0,$.isInstance=function(ae){return!!(ae&&ae[oe])}}function superCall($,oe){for(var ae=[],ie=2;ie<arguments.length;ie++)ae[ie-2]=arguments[ie];return this.superClass.prototype[oe].apply($,ae)}function superApply($,oe,ae){return this.superClass.prototype[oe].apply($,ae)}function enableClassManagement($){var oe={};$.registerClass=function(ie){var le=ie.type||ie.prototype.type;if(le){checkClassType(le),ie.prototype.type=le;var pe=parseClassType(le);if(!pe.sub)oe[pe.main]=ie;else if(pe.sub!==IS_CONTAINER){var _e=ae(pe);_e[pe.sub]=ie}}return ie},$.getClass=function(ie,le,pe){var _e=oe[ie];if(_e&&_e[IS_CONTAINER]&&(_e=le?_e[le]:null),pe&&!_e)throw new Error(le?"Component "+ie+"."+(le||"")+" is used but not imported.":ie+".type should be specified.");return _e},$.getClassesByMainType=function(ie){var le=parseClassType(ie),pe=[],_e=oe[le.main];return _e&&_e[IS_CONTAINER]?each$c(_e,function(Ce,$e){$e!==IS_CONTAINER&&pe.push(Ce)}):pe.push(_e),pe},$.hasClass=function(ie){var le=parseClassType(ie);return!!oe[le.main]},$.getAllClassMainTypes=function(){var ie=[];return each$c(oe,function(le,pe){ie.push(pe)}),ie},$.hasSubTypes=function(ie){var le=parseClassType(ie),pe=oe[le.main];return pe&&pe[IS_CONTAINER]};function ae(ie){var le=oe[ie.main];return(!le||!le[IS_CONTAINER])&&(le=oe[ie.main]={},le[IS_CONTAINER]=!0),le}}function makeStyleMapper($,oe){for(var ae=0;ae<$.length;ae++)$[ae][1]||($[ae][1]=$[ae][0]);return oe=oe||!1,function(ie,le,pe){for(var _e={},Ce=0;Ce<$.length;Ce++){var $e=$[Ce][1];if(!(le&&indexOf(le,$e)>=0||pe&&indexOf(pe,$e)<0)){var xe=ie.getShallow($e,oe);xe!=null&&(_e[$[Ce][0]]=xe)}}return _e}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function $(){}return $.prototype.getAreaStyle=function(oe,ae){return getAreaStyle(this,oe,ae)},$}(),globalImageCache=new LRU$1(50);function findExistImage($){if(typeof $=="string"){var oe=globalImageCache.get($);return oe&&oe.image}else return $}function createOrUpdateImage($,oe,ae,ie,le){if($)if(typeof $=="string"){if(oe&&oe.__zrImageSrc===$||!ae)return oe;var pe=globalImageCache.get($),_e={hostEl:ae,cb:ie,cbPayload:le};return pe?(oe=pe.image,!isImageReady(oe)&&pe.pending.push(_e)):(oe=platformApi.loadImage($,imageOnLoad,imageOnLoad),oe.__zrImageSrc=$,globalImageCache.put($,oe.__cachedImgObj={image:oe,pending:[_e]})),oe}else return $;else return oe}function imageOnLoad(){var $=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var oe=0;oe<$.pending.length;oe++){var ae=$.pending[oe],ie=ae.cb;ie&&ie(this,ae.cbPayload),ae.hostEl.dirty()}$.pending.length=0}function isImageReady($){return $&&$.width&&$.height}var STYLE_REG=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function truncateText($,oe,ae,ie,le){if(!oe)return"";var pe=($+"").split(`
`);le=prepareTruncateOptions(oe,ae,ie,le);for(var _e=0,Ce=pe.length;_e<Ce;_e++)pe[_e]=truncateSingleLine(pe[_e],le);return pe.join(`
`)}function prepareTruncateOptions($,oe,ae,ie){ie=ie||{};var le=extend({},ie);le.font=oe,ae=retrieve2(ae,"..."),le.maxIterations=retrieve2(ie.maxIterations,2);var pe=le.minChar=retrieve2(ie.minChar,0);le.cnCharWidth=getWidth("国",oe);var _e=le.ascCharWidth=getWidth("a",oe);le.placeholder=retrieve2(ie.placeholder,"");for(var Ce=$=Math.max(0,$-1),$e=0;$e<pe&&Ce>=_e;$e++)Ce-=_e;var xe=getWidth(ae,oe);return xe>Ce&&(ae="",xe=0),Ce=$-xe,le.ellipsis=ae,le.ellipsisWidth=xe,le.contentWidth=Ce,le.containerWidth=$,le}function truncateSingleLine($,oe){var ae=oe.containerWidth,ie=oe.font,le=oe.contentWidth;if(!ae)return"";var pe=getWidth($,ie);if(pe<=ae)return $;for(var _e=0;;_e++){if(pe<=le||_e>=oe.maxIterations){$+=oe.ellipsis;break}var Ce=_e===0?estimateLength($,le,oe.ascCharWidth,oe.cnCharWidth):pe>0?Math.floor($.length*le/pe):0;$=$.substr(0,Ce),pe=getWidth($,ie)}return $===""&&($=oe.placeholder),$}function estimateLength($,oe,ae,ie){for(var le=0,pe=0,_e=$.length;pe<_e&&le<oe;pe++){var Ce=$.charCodeAt(pe);le+=0<=Ce&&Ce<=127?ae:ie}return pe}function parsePlainText($,oe){$!=null&&($+="");var ae=oe.overflow,ie=oe.padding,le=oe.font,pe=ae==="truncate",_e=getLineHeight(le),Ce=retrieve2(oe.lineHeight,_e),$e=!!oe.backgroundColor,xe=oe.lineOverflow==="truncate",Ie=oe.width,Ne;Ie!=null&&(ae==="break"||ae==="breakAll")?Ne=$?wrapText($,oe.font,Ie,ae==="breakAll",0).lines:[]:Ne=$?$.split(`
`):[];var Fe=Ne.length*Ce,ze=retrieve2(oe.height,Fe);if(Fe>ze&&xe){var At=Math.floor(ze/Ce);Ne=Ne.slice(0,At)}if($&&pe&&Ie!=null)for(var Lt=prepareTruncateOptions(Ie,le,oe.ellipsis,{minChar:oe.truncateMinChar,placeholder:oe.placeholder}),hn=0;hn<Ne.length;hn++)Ne[hn]=truncateSingleLine(Ne[hn],Lt);for(var vn=ze,_n=0,hn=0;hn<Ne.length;hn++)_n=Math.max(getWidth(Ne[hn],le),_n);Ie==null&&(Ie=_n);var bn=_n;return ie&&(vn+=ie[0]+ie[2],bn+=ie[1]+ie[3],Ie+=ie[1]+ie[3]),$e&&(bn=Ie),{lines:Ne,height:ze,outerWidth:bn,outerHeight:vn,lineHeight:Ce,calculatedLineHeight:_e,contentWidth:_n,contentHeight:Fe,width:Ie}}var RichTextToken=function(){function $(){}return $}(),RichTextLine=function(){function $(oe){this.tokens=[],oe&&(this.tokens=oe)}return $}(),RichTextContentBlock=function(){function $(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return $}();function parseRichText($,oe){var ae=new RichTextContentBlock;if($!=null&&($+=""),!$)return ae;for(var ie=oe.width,le=oe.height,pe=oe.overflow,_e=(pe==="break"||pe==="breakAll")&&ie!=null?{width:ie,accumWidth:0,breakAll:pe==="breakAll"}:null,Ce=STYLE_REG.lastIndex=0,$e;($e=STYLE_REG.exec($))!=null;){var xe=$e.index;xe>Ce&&pushTokens(ae,$.substring(Ce,xe),oe,_e),pushTokens(ae,$e[2],oe,_e,$e[1]),Ce=STYLE_REG.lastIndex}Ce<$.length&&pushTokens(ae,$.substring(Ce,$.length),oe,_e);var Ie=[],Ne=0,Fe=0,ze=oe.padding,At=pe==="truncate",Lt=oe.lineOverflow==="truncate";function hn(Fn,Vn,jn){Fn.width=Vn,Fn.lineHeight=jn,Ne+=jn,Fe=Math.max(Fe,Vn)}e:for(var vn=0;vn<ae.lines.length;vn++){for(var _n=ae.lines[vn],bn=0,Cn=0,En=0;En<_n.tokens.length;En++){var $n=_n.tokens[En],wn=$n.styleName&&oe.rich[$n.styleName]||{},Tn=$n.textPadding=wn.padding,xn=Tn?Tn[1]+Tn[3]:0,kn=$n.font=wn.font||oe.font;$n.contentHeight=getLineHeight(kn);var An=retrieve2(wn.height,$n.contentHeight);if($n.innerHeight=An,Tn&&(An+=Tn[0]+Tn[2]),$n.height=An,$n.lineHeight=retrieve3(wn.lineHeight,oe.lineHeight,An),$n.align=wn&&wn.align||oe.align,$n.verticalAlign=wn&&wn.verticalAlign||"middle",Lt&&le!=null&&Ne+$n.lineHeight>le){En>0?(_n.tokens=_n.tokens.slice(0,En),hn(_n,Cn,bn),ae.lines=ae.lines.slice(0,vn+1)):ae.lines=ae.lines.slice(0,vn);break e}var On=wn.width,Nn=On==null||On==="auto";if(typeof On=="string"&&On.charAt(On.length-1)==="%")$n.percentWidth=On,Ie.push($n),$n.contentWidth=getWidth($n.text,kn);else{if(Nn){var Rn=wn.backgroundColor,zn=Rn&&Rn.image;zn&&(zn=findExistImage(zn),isImageReady(zn)&&($n.width=Math.max($n.width,zn.width*An/zn.height)))}var Bn=At&&ie!=null?ie-Cn:null;Bn!=null&&Bn<$n.width?!Nn||Bn<xn?($n.text="",$n.width=$n.contentWidth=0):($n.text=truncateText($n.text,Bn-xn,kn,oe.ellipsis,{minChar:oe.truncateMinChar}),$n.width=$n.contentWidth=getWidth($n.text,kn)):$n.contentWidth=getWidth($n.text,kn)}$n.width+=xn,Cn+=$n.width,wn&&(bn=Math.max(bn,$n.lineHeight))}hn(_n,Cn,bn)}ae.outerWidth=ae.width=retrieve2(ie,Fe),ae.outerHeight=ae.height=retrieve2(le,Ne),ae.contentHeight=Ne,ae.contentWidth=Fe,ze&&(ae.outerWidth+=ze[1]+ze[3],ae.outerHeight+=ze[0]+ze[2]);for(var vn=0;vn<Ie.length;vn++){var $n=Ie[vn],Mn=$n.percentWidth;$n.width=parseInt(Mn,10)/100*ae.width}return ae}function pushTokens($,oe,ae,ie,le){var pe=oe==="",_e=le&&ae.rich[le]||{},Ce=$.lines,$e=_e.font||ae.font,xe=!1,Ie,Ne;if(ie){var Fe=_e.padding,ze=Fe?Fe[1]+Fe[3]:0;if(_e.width!=null&&_e.width!=="auto"){var At=parsePercent$1(_e.width,ie.width)+ze;Ce.length>0&&At+ie.accumWidth>ie.width&&(Ie=oe.split(`
`),xe=!0),ie.accumWidth=At}else{var Lt=wrapText(oe,$e,ie.width,ie.breakAll,ie.accumWidth);ie.accumWidth=Lt.accumWidth+ze,Ne=Lt.linesWidths,Ie=Lt.lines}}else Ie=oe.split(`
`);for(var hn=0;hn<Ie.length;hn++){var vn=Ie[hn],_n=new RichTextToken;if(_n.styleName=le,_n.text=vn,_n.isLineHolder=!vn&&!pe,typeof _e.width=="number"?_n.width=_e.width:_n.width=Ne?Ne[hn]:getWidth(vn,$e),!hn&&!xe){var bn=(Ce[Ce.length-1]||(Ce[0]=new RichTextLine)).tokens,Cn=bn.length;Cn===1&&bn[0].isLineHolder?bn[0]=_n:(vn||!Cn||pe)&&bn.push(_n)}else Ce.push(new RichTextLine([_n]))}}function isAlphabeticLetter($){var oe=$.charCodeAt(0);return oe>=32&&oe<=591||oe>=880&&oe<=4351||oe>=4608&&oe<=5119||oe>=7680&&oe<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function($,oe){return $[oe]=!0,$},{});function isWordBreakChar($){return isAlphabeticLetter($)?!!breakCharMap[$]:!0}function wrapText($,oe,ae,ie,le){for(var pe=[],_e=[],Ce="",$e="",xe=0,Ie=0,Ne=0;Ne<$.length;Ne++){var Fe=$.charAt(Ne);if(Fe===`
`){$e&&(Ce+=$e,Ie+=xe),pe.push(Ce),_e.push(Ie),Ce="",$e="",xe=0,Ie=0;continue}var ze=getWidth(Fe,oe),At=ie?!1:!isWordBreakChar(Fe);if(pe.length?Ie+ze>ae:le+Ie+ze>ae){Ie?(Ce||$e)&&(At?(Ce||(Ce=$e,$e="",xe=0,Ie=xe),pe.push(Ce),_e.push(Ie-xe),$e+=Fe,xe+=ze,Ce="",Ie=xe):($e&&(Ce+=$e,$e="",xe=0),pe.push(Ce),_e.push(Ie),Ce=Fe,Ie=ze)):At?(pe.push($e),_e.push(xe),$e=Fe,xe=ze):(pe.push(Fe),_e.push(ze));continue}Ie+=ze,At?($e+=Fe,xe+=ze):($e&&(Ce+=$e,$e="",xe=0),Ce+=Fe)}return!pe.length&&!Ce&&(Ce=$,$e="",xe=0),$e&&(Ce+=$e),Ce&&(pe.push(Ce),_e.push(Ie)),pe.length===1&&(Ie+=le),{accumWidth:Ie,lines:pe,linesWidths:_e}}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($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype._init=function(ae){for(var ie=keys(ae),le=0;le<ie.length;le++){var pe=ie[le];pe==="style"?this.useStyle(ae[pe]):$.prototype.attrKV.call(this,pe,ae[pe])}this.style||this.useStyle({})},oe.prototype.beforeBrush=function(){},oe.prototype.afterBrush=function(){},oe.prototype.innerBeforeBrush=function(){},oe.prototype.innerAfterBrush=function(){},oe.prototype.shouldBePainted=function(ae,ie,le,pe){var _e=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&isDisplayableCulled(this,ae,ie)||_e&&!_e[0]&&!_e[3])return!1;if(le&&this.__clipPaths){for(var Ce=0;Ce<this.__clipPaths.length;++Ce)if(this.__clipPaths[Ce].isZeroArea())return!1}if(pe&&this.parent)for(var $e=this.parent;$e;){if($e.ignore)return!1;$e=$e.parent}return!0},oe.prototype.contain=function(ae,ie){return this.rectContain(ae,ie)},oe.prototype.traverse=function(ae,ie){ae.call(ie,this)},oe.prototype.rectContain=function(ae,ie){var le=this.transformCoordToLocal(ae,ie),pe=this.getBoundingRect();return pe.contain(le[0],le[1])},oe.prototype.getPaintRect=function(){var ae=this._paintRect;if(!this._paintRect||this.__dirty){var ie=this.transform,le=this.getBoundingRect(),pe=this.style,_e=pe.shadowBlur||0,Ce=pe.shadowOffsetX||0,$e=pe.shadowOffsetY||0;ae=this._paintRect||(this._paintRect=new BoundingRect$1(0,0,0,0)),ie?BoundingRect$1.applyTransform(ae,le,ie):ae.copy(le),(_e||Ce||$e)&&(ae.width+=_e*2+Math.abs(Ce),ae.height+=_e*2+Math.abs($e),ae.x=Math.min(ae.x,ae.x+Ce-_e),ae.y=Math.min(ae.y,ae.y+$e-_e));var xe=this.dirtyRectTolerance;ae.isZero()||(ae.x=Math.floor(ae.x-xe),ae.y=Math.floor(ae.y-xe),ae.width=Math.ceil(ae.width+1+xe*2),ae.height=Math.ceil(ae.height+1+xe*2))}return ae},oe.prototype.setPrevPaintRect=function(ae){ae?(this._prevPaintRect=this._prevPaintRect||new BoundingRect$1(0,0,0,0),this._prevPaintRect.copy(ae)):this._prevPaintRect=null},oe.prototype.getPrevPaintRect=function(){return this._prevPaintRect},oe.prototype.animateStyle=function(ae){return this.animate("style",ae)},oe.prototype.updateDuringAnimation=function(ae){ae==="style"?this.dirtyStyle():this.markRedraw()},oe.prototype.attrKV=function(ae,ie){ae!=="style"?$.prototype.attrKV.call(this,ae,ie):this.style?this.setStyle(ie):this.useStyle(ie)},oe.prototype.setStyle=function(ae,ie){return typeof ae=="string"?this.style[ae]=ie:extend(this.style,ae),this.dirtyStyle(),this},oe.prototype.dirtyStyle=function(ae){ae||this.markRedraw(),this.__dirty|=STYLE_CHANGED_BIT,this._rect&&(this._rect=null)},oe.prototype.dirty=function(){this.dirtyStyle()},oe.prototype.styleChanged=function(){return!!(this.__dirty&STYLE_CHANGED_BIT)},oe.prototype.styleUpdated=function(){this.__dirty&=~STYLE_CHANGED_BIT},oe.prototype.createStyle=function(ae){return createObject(DEFAULT_COMMON_STYLE,ae)},oe.prototype.useStyle=function(ae){ae[STYLE_MAGIC_KEY]||(ae=this.createStyle(ae)),this.__inHover?this.__hoverStyle=ae:this.style=ae,this.dirtyStyle()},oe.prototype.isStyleObject=function(ae){return ae[STYLE_MAGIC_KEY]},oe.prototype._innerSaveToNormal=function(ae){$.prototype._innerSaveToNormal.call(this,ae);var ie=this._normalState;ae.style&&!ie.style&&(ie.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(ae,ie,PRIMARY_STATES_KEYS)},oe.prototype._applyStateObj=function(ae,ie,le,pe,_e,Ce){$.prototype._applyStateObj.call(this,ae,ie,le,pe,_e,Ce);var $e=!(ie&&pe),xe;if(ie&&ie.style?_e?pe?xe=ie.style:(xe=this._mergeStyle(this.createStyle(),le.style),this._mergeStyle(xe,ie.style)):(xe=this._mergeStyle(this.createStyle(),pe?this.style:le.style),this._mergeStyle(xe,ie.style)):$e&&(xe=le.style),xe)if(_e){var Ie=this.style;if(this.style=this.createStyle($e?{}:Ie),$e)for(var Ne=keys(Ie),Fe=0;Fe<Ne.length;Fe++){var ze=Ne[Fe];ze in xe&&(xe[ze]=xe[ze],this.style[ze]=Ie[ze])}for(var At=keys(xe),Fe=0;Fe<At.length;Fe++){var ze=At[Fe];this.style[ze]=this.style[ze]}this._transitionState(ae,{style:xe},Ce,this.getAnimationStyleProps())}else this.useStyle(xe);for(var Lt=this.__inHover?PRIMARY_STATES_KEYS_IN_HOVER_LAYER:PRIMARY_STATES_KEYS,Fe=0;Fe<Lt.length;Fe++){var ze=Lt[Fe];ie&&ie[ze]!=null?this[ze]=ie[ze]:$e&&le[ze]!=null&&(this[ze]=le[ze])}},oe.prototype._mergeStates=function(ae){for(var ie=$.prototype._mergeStates.call(this,ae),le,pe=0;pe<ae.length;pe++){var _e=ae[pe];_e.style&&(le=le||{},this._mergeStyle(le,_e.style))}return le&&(ie.style=le),ie},oe.prototype._mergeStyle=function(ae,ie){return extend(ae,ie),ae},oe.prototype.getAnimationStyleProps=function(){return DEFAULT_COMMON_ANIMATION_PROPS},oe.initDefaultProps=function(){var ae=oe.prototype;ae.type="displayable",ae.invisible=!1,ae.z=0,ae.z2=0,ae.zlevel=0,ae.culling=!1,ae.cursor="pointer",ae.rectHover=!1,ae.incremental=!1,ae._rect=null,ae.dirtyRectTolerance=0,ae.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT}(),oe}(Element$2),tmpRect=new BoundingRect$1(0,0,0,0),viewRect=new BoundingRect$1(0,0,0,0);function isDisplayableCulled($,oe,ae){return tmpRect.copy($.getBoundingRect()),$.transform&&tmpRect.applyTransform($.transform),viewRect.width=oe,viewRect.height=ae,!tmpRect.intersect(viewRect)}const Displayable$1=Displayable;var mathMin$7=Math.min,mathMax$7=Math.max,mathSin$3=Math.sin,mathCos$3=Math.cos,PI2$6=Math.PI*2,start=create$1(),end=create$1(),extremity=create$1();function fromLine($,oe,ae,ie,le,pe){le[0]=mathMin$7($,ae),le[1]=mathMin$7(oe,ie),pe[0]=mathMax$7($,ae),pe[1]=mathMax$7(oe,ie)}var xDim=[],yDim=[];function fromCubic($,oe,ae,ie,le,pe,_e,Ce,$e,xe){var Ie=cubicExtrema,Ne=cubicAt,Fe=Ie($,ae,le,_e,xDim);$e[0]=1/0,$e[1]=1/0,xe[0]=-1/0,xe[1]=-1/0;for(var ze=0;ze<Fe;ze++){var At=Ne($,ae,le,_e,xDim[ze]);$e[0]=mathMin$7(At,$e[0]),xe[0]=mathMax$7(At,xe[0])}Fe=Ie(oe,ie,pe,Ce,yDim);for(var ze=0;ze<Fe;ze++){var Lt=Ne(oe,ie,pe,Ce,yDim[ze]);$e[1]=mathMin$7(Lt,$e[1]),xe[1]=mathMax$7(Lt,xe[1])}$e[0]=mathMin$7($,$e[0]),xe[0]=mathMax$7($,xe[0]),$e[0]=mathMin$7(_e,$e[0]),xe[0]=mathMax$7(_e,xe[0]),$e[1]=mathMin$7(oe,$e[1]),xe[1]=mathMax$7(oe,xe[1]),$e[1]=mathMin$7(Ce,$e[1]),xe[1]=mathMax$7(Ce,xe[1])}function fromQuadratic($,oe,ae,ie,le,pe,_e,Ce){var $e=quadraticExtremum,xe=quadraticAt,Ie=mathMax$7(mathMin$7($e($,ae,le),1),0),Ne=mathMax$7(mathMin$7($e(oe,ie,pe),1),0),Fe=xe($,ae,le,Ie),ze=xe(oe,ie,pe,Ne);_e[0]=mathMin$7($,le,Fe),_e[1]=mathMin$7(oe,pe,ze),Ce[0]=mathMax$7($,le,Fe),Ce[1]=mathMax$7(oe,pe,ze)}function fromArc($,oe,ae,ie,le,pe,_e,Ce,$e){var xe=min$1,Ie=max$1,Ne=Math.abs(le-pe);if(Ne%PI2$6<1e-4&&Ne>1e-4){Ce[0]=$-ae,Ce[1]=oe-ie,$e[0]=$+ae,$e[1]=oe+ie;return}if(start[0]=mathCos$3(le)*ae+$,start[1]=mathSin$3(le)*ie+oe,end[0]=mathCos$3(pe)*ae+$,end[1]=mathSin$3(pe)*ie+oe,xe(Ce,start,end),Ie($e,start,end),le=le%PI2$6,le<0&&(le=le+PI2$6),pe=pe%PI2$6,pe<0&&(pe=pe+PI2$6),le>pe&&!_e?pe+=PI2$6:le<pe&&_e&&(le+=PI2$6),_e){var Fe=pe;pe=le,le=Fe}for(var ze=0;ze<pe;ze+=Math.PI/2)ze>le&&(extremity[0]=mathCos$3(ze)*ae+$,extremity[1]=mathSin$3(ze)*ie+oe,xe(Ce,extremity,Ce),Ie($e,extremity,$e))}var CMD$2={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},tmpOutX=[],tmpOutY=[],min=[],max=[],min2=[],max2=[],mathMin$6=Math.min,mathMax$6=Math.max,mathCos$2=Math.cos,mathSin$2=Math.sin,mathAbs$1=Math.abs,PI$4=Math.PI,PI2$5=PI$4*2,hasTypedArray=typeof Float32Array<"u",tmpAngles=[];function modPI2($){var oe=Math.round($/PI$4*1e8)/1e8;return oe%2*PI$4}function normalizeArcAngles($,oe){var ae=modPI2($[0]);ae<0&&(ae+=PI2$5);var ie=ae-$[0],le=$[1];le+=ie,!oe&&le-ae>=PI2$5?le=ae+PI2$5:oe&&ae-le>=PI2$5?le=ae-PI2$5:!oe&&ae>le?le=ae+(PI2$5-modPI2(ae-le)):oe&&ae<le&&(le=ae-(PI2$5-modPI2(le-ae))),$[0]=ae,$[1]=le}var PathProxy=function(){function $(oe){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,oe&&(this._saveData=!1),this._saveData&&(this.data=[])}return $.prototype.increaseVersion=function(){this._version++},$.prototype.getVersion=function(){return this._version},$.prototype.setScale=function(oe,ae,ie){ie=ie||0,ie>0&&(this._ux=mathAbs$1(ie/devicePixelRatio/oe)||0,this._uy=mathAbs$1(ie/devicePixelRatio/ae)||0)},$.prototype.setDPR=function(oe){this.dpr=oe},$.prototype.setContext=function(oe){this._ctx=oe},$.prototype.getContext=function(){return this._ctx},$.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},$.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},$.prototype.moveTo=function(oe,ae){return this._drawPendingPt(),this.addData(CMD$2.M,oe,ae),this._ctx&&this._ctx.moveTo(oe,ae),this._x0=oe,this._y0=ae,this._xi=oe,this._yi=ae,this},$.prototype.lineTo=function(oe,ae){var ie=mathAbs$1(oe-this._xi),le=mathAbs$1(ae-this._yi),pe=ie>this._ux||le>this._uy;if(this.addData(CMD$2.L,oe,ae),this._ctx&&pe&&this._ctx.lineTo(oe,ae),pe)this._xi=oe,this._yi=ae,this._pendingPtDist=0;else{var _e=ie*ie+le*le;_e>this._pendingPtDist&&(this._pendingPtX=oe,this._pendingPtY=ae,this._pendingPtDist=_e)}return this},$.prototype.bezierCurveTo=function(oe,ae,ie,le,pe,_e){return this._drawPendingPt(),this.addData(CMD$2.C,oe,ae,ie,le,pe,_e),this._ctx&&this._ctx.bezierCurveTo(oe,ae,ie,le,pe,_e),this._xi=pe,this._yi=_e,this},$.prototype.quadraticCurveTo=function(oe,ae,ie,le){return this._drawPendingPt(),this.addData(CMD$2.Q,oe,ae,ie,le),this._ctx&&this._ctx.quadraticCurveTo(oe,ae,ie,le),this._xi=ie,this._yi=le,this},$.prototype.arc=function(oe,ae,ie,le,pe,_e){this._drawPendingPt(),tmpAngles[0]=le,tmpAngles[1]=pe,normalizeArcAngles(tmpAngles,_e),le=tmpAngles[0],pe=tmpAngles[1];var Ce=pe-le;return this.addData(CMD$2.A,oe,ae,ie,ie,le,Ce,0,_e?0:1),this._ctx&&this._ctx.arc(oe,ae,ie,le,pe,_e),this._xi=mathCos$2(pe)*ie+oe,this._yi=mathSin$2(pe)*ie+ae,this},$.prototype.arcTo=function(oe,ae,ie,le,pe){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(oe,ae,ie,le,pe),this},$.prototype.rect=function(oe,ae,ie,le){return this._drawPendingPt(),this._ctx&&this._ctx.rect(oe,ae,ie,le),this.addData(CMD$2.R,oe,ae,ie,le),this},$.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var oe=this._ctx,ae=this._x0,ie=this._y0;return oe&&oe.closePath(),this._xi=ae,this._yi=ie,this},$.prototype.fill=function(oe){oe&&oe.fill(),this.toStatic()},$.prototype.stroke=function(oe){oe&&oe.stroke(),this.toStatic()},$.prototype.len=function(){return this._len},$.prototype.setData=function(oe){var ae=oe.length;!(this.data&&this.data.length===ae)&&hasTypedArray&&(this.data=new Float32Array(ae));for(var ie=0;ie<ae;ie++)this.data[ie]=oe[ie];this._len=ae},$.prototype.appendPath=function(oe){oe instanceof Array||(oe=[oe]);for(var ae=oe.length,ie=0,le=this._len,pe=0;pe<ae;pe++)ie+=oe[pe].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(le+ie));for(var pe=0;pe<ae;pe++)for(var _e=oe[pe].data,Ce=0;Ce<_e.length;Ce++)this.data[le++]=_e[Ce];this._len=le},$.prototype.addData=function(oe,ae,ie,le,pe,_e,Ce,$e,xe){if(this._saveData){var Ie=this.data;this._len+arguments.length>Ie.length&&(this._expandData(),Ie=this.data);for(var Ne=0;Ne<arguments.length;Ne++)Ie[this._len++]=arguments[Ne]}},$.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},$.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var oe=[],ae=0;ae<this._len;ae++)oe[ae]=this.data[ae];this.data=oe}},$.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var oe=this.data;oe instanceof Array&&(oe.length=this._len,hasTypedArray&&this._len>11&&(this.data=new Float32Array(oe)))}},$.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 oe=this.data,ae=0,ie=0,le=0,pe=0,_e;for(_e=0;_e<this._len;){var Ce=oe[_e++],$e=_e===1;switch($e&&(ae=oe[_e],ie=oe[_e+1],le=ae,pe=ie),Ce){case CMD$2.M:ae=le=oe[_e++],ie=pe=oe[_e++],min2[0]=le,min2[1]=pe,max2[0]=le,max2[1]=pe;break;case CMD$2.L:fromLine(ae,ie,oe[_e],oe[_e+1],min2,max2),ae=oe[_e++],ie=oe[_e++];break;case CMD$2.C:fromCubic(ae,ie,oe[_e++],oe[_e++],oe[_e++],oe[_e++],oe[_e],oe[_e+1],min2,max2),ae=oe[_e++],ie=oe[_e++];break;case CMD$2.Q:fromQuadratic(ae,ie,oe[_e++],oe[_e++],oe[_e],oe[_e+1],min2,max2),ae=oe[_e++],ie=oe[_e++];break;case CMD$2.A:var xe=oe[_e++],Ie=oe[_e++],Ne=oe[_e++],Fe=oe[_e++],ze=oe[_e++],At=oe[_e++]+ze;_e+=1;var Lt=!oe[_e++];$e&&(le=mathCos$2(ze)*Ne+xe,pe=mathSin$2(ze)*Fe+Ie),fromArc(xe,Ie,Ne,Fe,ze,At,Lt,min2,max2),ae=mathCos$2(At)*Ne+xe,ie=mathSin$2(At)*Fe+Ie;break;case CMD$2.R:le=ae=oe[_e++],pe=ie=oe[_e++];var hn=oe[_e++],vn=oe[_e++];fromLine(le,pe,le+hn,pe+vn,min2,max2);break;case CMD$2.Z:ae=le,ie=pe;break}min$1(min,min,min2),max$1(max,max,max2)}return _e===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])},$.prototype._calculateLength=function(){var oe=this.data,ae=this._len,ie=this._ux,le=this._uy,pe=0,_e=0,Ce=0,$e=0;this._pathSegLen||(this._pathSegLen=[]);for(var xe=this._pathSegLen,Ie=0,Ne=0,Fe=0;Fe<ae;){var ze=oe[Fe++],At=Fe===1;At&&(pe=oe[Fe],_e=oe[Fe+1],Ce=pe,$e=_e);var Lt=-1;switch(ze){case CMD$2.M:pe=Ce=oe[Fe++],_e=$e=oe[Fe++];break;case CMD$2.L:{var hn=oe[Fe++],vn=oe[Fe++],_n=hn-pe,bn=vn-_e;(mathAbs$1(_n)>ie||mathAbs$1(bn)>le||Fe===ae-1)&&(Lt=Math.sqrt(_n*_n+bn*bn),pe=hn,_e=vn);break}case CMD$2.C:{var Cn=oe[Fe++],En=oe[Fe++],hn=oe[Fe++],vn=oe[Fe++],$n=oe[Fe++],wn=oe[Fe++];Lt=cubicLength(pe,_e,Cn,En,hn,vn,$n,wn,10),pe=$n,_e=wn;break}case CMD$2.Q:{var Cn=oe[Fe++],En=oe[Fe++],hn=oe[Fe++],vn=oe[Fe++];Lt=quadraticLength(pe,_e,Cn,En,hn,vn,10),pe=hn,_e=vn;break}case CMD$2.A:var Tn=oe[Fe++],xn=oe[Fe++],kn=oe[Fe++],An=oe[Fe++],On=oe[Fe++],Nn=oe[Fe++],Rn=Nn+On;Fe+=1,oe[Fe++],At&&(Ce=mathCos$2(On)*kn+Tn,$e=mathSin$2(On)*An+xn),Lt=mathMax$6(kn,An)*mathMin$6(PI2$5,Math.abs(Nn)),pe=mathCos$2(Rn)*kn+Tn,_e=mathSin$2(Rn)*An+xn;break;case CMD$2.R:{Ce=pe=oe[Fe++],$e=_e=oe[Fe++];var zn=oe[Fe++],Bn=oe[Fe++];Lt=zn*2+Bn*2;break}case CMD$2.Z:{var _n=Ce-pe,bn=$e-_e;Lt=Math.sqrt(_n*_n+bn*bn),pe=Ce,_e=$e;break}}Lt>=0&&(xe[Ne++]=Lt,Ie+=Lt)}return this._pathLen=Ie,Ie},$.prototype.rebuildPath=function(oe,ae){var ie=this.data,le=this._ux,pe=this._uy,_e=this._len,Ce,$e,xe,Ie,Ne,Fe,ze=ae<1,At,Lt,hn=0,vn=0,_n,bn=0,Cn,En;if(!(ze&&(this._pathSegLen||this._calculateLength(),At=this._pathSegLen,Lt=this._pathLen,_n=ae*Lt,!_n)))e:for(var $n=0;$n<_e;){var wn=ie[$n++],Tn=$n===1;switch(Tn&&(xe=ie[$n],Ie=ie[$n+1],Ce=xe,$e=Ie),wn!==CMD$2.L&&bn>0&&(oe.lineTo(Cn,En),bn=0),wn){case CMD$2.M:Ce=xe=ie[$n++],$e=Ie=ie[$n++],oe.moveTo(xe,Ie);break;case CMD$2.L:{Ne=ie[$n++],Fe=ie[$n++];var xn=mathAbs$1(Ne-xe),kn=mathAbs$1(Fe-Ie);if(xn>le||kn>pe){if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;oe.lineTo(xe*(1-On)+Ne*On,Ie*(1-On)+Fe*On);break e}hn+=An}oe.lineTo(Ne,Fe),xe=Ne,Ie=Fe,bn=0}else{var Nn=xn*xn+kn*kn;Nn>bn&&(Cn=Ne,En=Fe,bn=Nn)}break}case CMD$2.C:{var Rn=ie[$n++],zn=ie[$n++],Bn=ie[$n++],Mn=ie[$n++],Fn=ie[$n++],Vn=ie[$n++];if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;cubicSubdivide(xe,Rn,Bn,Fn,On,tmpOutX),cubicSubdivide(Ie,zn,Mn,Vn,On,tmpOutY),oe.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}hn+=An}oe.bezierCurveTo(Rn,zn,Bn,Mn,Fn,Vn),xe=Fn,Ie=Vn;break}case CMD$2.Q:{var Rn=ie[$n++],zn=ie[$n++],Bn=ie[$n++],Mn=ie[$n++];if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;quadraticSubdivide(xe,Rn,Bn,On,tmpOutX),quadraticSubdivide(Ie,zn,Mn,On,tmpOutY),oe.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}hn+=An}oe.quadraticCurveTo(Rn,zn,Bn,Mn),xe=Bn,Ie=Mn;break}case CMD$2.A:var jn=ie[$n++],Zn=ie[$n++],Gn=ie[$n++],Xn=ie[$n++],cr=ie[$n++],nr=ie[$n++],er=ie[$n++],rr=!ie[$n++],qn=Gn>Xn?Gn:Xn,Yn=mathAbs$1(Gn-Xn)>.001,ar=cr+nr,pr=!1;if(ze){var An=At[vn++];hn+An>_n&&(ar=cr+nr*(_n-hn)/An,pr=!0),hn+=An}if(Yn&&oe.ellipse?oe.ellipse(jn,Zn,Gn,Xn,er,cr,ar,rr):oe.arc(jn,Zn,qn,cr,ar,rr),pr)break e;Tn&&(Ce=mathCos$2(cr)*Gn+jn,$e=mathSin$2(cr)*Xn+Zn),xe=mathCos$2(ar)*Gn+jn,Ie=mathSin$2(ar)*Xn+Zn;break;case CMD$2.R:Ce=xe=ie[$n],$e=Ie=ie[$n+1],Ne=ie[$n++],Fe=ie[$n++];var Un=ie[$n++],tr=ie[$n++];if(ze){var An=At[vn++];if(hn+An>_n){var ur=_n-hn;oe.moveTo(Ne,Fe),oe.lineTo(Ne+mathMin$6(ur,Un),Fe),ur-=Un,ur>0&&oe.lineTo(Ne+Un,Fe+mathMin$6(ur,tr)),ur-=tr,ur>0&&oe.lineTo(Ne+mathMax$6(Un-ur,0),Fe+tr),ur-=Un,ur>0&&oe.lineTo(Ne,Fe+mathMax$6(tr-ur,0));break e}hn+=An}oe.rect(Ne,Fe,Un,tr);break;case CMD$2.Z:if(ze){var An=At[vn++];if(hn+An>_n){var On=(_n-hn)/An;oe.lineTo(xe*(1-On)+Ce*On,Ie*(1-On)+$e*On);break e}hn+=An}oe.closePath(),xe=Ce,Ie=$e}}},$.prototype.clone=function(){var oe=new $,ae=this.data;return oe.data=ae.slice?ae.slice():Array.prototype.slice.call(ae),oe._len=this._len,oe},$.CMD=CMD$2,$.initDefaultProps=function(){var oe=$.prototype;oe._saveData=!0,oe._ux=0,oe._uy=0,oe._pendingPtDist=0,oe._version=0}(),$}();const PathProxy$1=PathProxy;function containStroke$4($,oe,ae,ie,le,pe,_e){if(le===0)return!1;var Ce=le,$e=0,xe=$;if(_e>oe+Ce&&_e>ie+Ce||_e<oe-Ce&&_e<ie-Ce||pe>$+Ce&&pe>ae+Ce||pe<$-Ce&&pe<ae-Ce)return!1;if($!==ae)$e=(oe-ie)/($-ae),xe=($*ie-ae*oe)/($-ae);else return Math.abs(pe-$)<=Ce/2;var Ie=$e*pe-_e+xe,Ne=Ie*Ie/($e*$e+1);return Ne<=Ce/2*Ce/2}function containStroke$3($,oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie){if($e===0)return!1;var Ne=$e;if(Ie>oe+Ne&&Ie>ie+Ne&&Ie>pe+Ne&&Ie>Ce+Ne||Ie<oe-Ne&&Ie<ie-Ne&&Ie<pe-Ne&&Ie<Ce-Ne||xe>$+Ne&&xe>ae+Ne&&xe>le+Ne&&xe>_e+Ne||xe<$-Ne&&xe<ae-Ne&&xe<le-Ne&&xe<_e-Ne)return!1;var Fe=cubicProjectPoint($,oe,ae,ie,le,pe,_e,Ce,xe,Ie,null);return Fe<=Ne/2}function containStroke$2($,oe,ae,ie,le,pe,_e,Ce,$e){if(_e===0)return!1;var xe=_e;if($e>oe+xe&&$e>ie+xe&&$e>pe+xe||$e<oe-xe&&$e<ie-xe&&$e<pe-xe||Ce>$+xe&&Ce>ae+xe&&Ce>le+xe||Ce<$-xe&&Ce<ae-xe&&Ce<le-xe)return!1;var Ie=quadraticProjectPoint($,oe,ae,ie,le,pe,Ce,$e,null);return Ie<=xe/2}var PI2$4=Math.PI*2;function normalizeRadian($){return $%=PI2$4,$<0&&($+=PI2$4),$}var PI2$3=Math.PI*2;function containStroke$1($,oe,ae,ie,le,pe,_e,Ce,$e){if(_e===0)return!1;var xe=_e;Ce-=$,$e-=oe;var Ie=Math.sqrt(Ce*Ce+$e*$e);if(Ie-xe>ae||Ie+xe<ae)return!1;if(Math.abs(ie-le)%PI2$3<1e-4)return!0;if(pe){var Ne=ie;ie=normalizeRadian(le),le=normalizeRadian(Ne)}else ie=normalizeRadian(ie),le=normalizeRadian(le);ie>le&&(le+=PI2$3);var Fe=Math.atan2($e,Ce);return Fe<0&&(Fe+=PI2$3),Fe>=ie&&Fe<=le||Fe+PI2$3>=ie&&Fe+PI2$3<=le}function windingLine($,oe,ae,ie,le,pe){if(pe>oe&&pe>ie||pe<oe&&pe<ie||ie===oe)return 0;var _e=(pe-oe)/(ie-oe),Ce=ie<oe?1:-1;(_e===1||_e===0)&&(Ce=ie<oe?.5:-.5);var $e=_e*(ae-$)+$;return $e===le?1/0:$e>le?Ce:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1($,oe){return Math.abs($-oe)<EPSILON$1}var roots=[-1,-1,-1],extrema=[-1,-1];function swapExtrema(){var $=extrema[0];extrema[0]=extrema[1],extrema[1]=$}function windingCubic($,oe,ae,ie,le,pe,_e,Ce,$e,xe){if(xe>oe&&xe>ie&&xe>pe&&xe>Ce||xe<oe&&xe<ie&&xe<pe&&xe<Ce)return 0;var Ie=cubicRootAt(oe,ie,pe,Ce,xe,roots);if(Ie===0)return 0;for(var Ne=0,Fe=-1,ze=void 0,At=void 0,Lt=0;Lt<Ie;Lt++){var hn=roots[Lt],vn=hn===0||hn===1?.5:1,_n=cubicAt($,ae,le,_e,hn);_n<$e||(Fe<0&&(Fe=cubicExtrema(oe,ie,pe,Ce,extrema),extrema[1]<extrema[0]&&Fe>1&&swapExtrema(),ze=cubicAt(oe,ie,pe,Ce,extrema[0]),Fe>1&&(At=cubicAt(oe,ie,pe,Ce,extrema[1]))),Fe===2?hn<extrema[0]?Ne+=ze<oe?vn:-vn:hn<extrema[1]?Ne+=At<ze?vn:-vn:Ne+=Ce<At?vn:-vn:hn<extrema[0]?Ne+=ze<oe?vn:-vn:Ne+=Ce<ze?vn:-vn)}return Ne}function windingQuadratic($,oe,ae,ie,le,pe,_e,Ce){if(Ce>oe&&Ce>ie&&Ce>pe||Ce<oe&&Ce<ie&&Ce<pe)return 0;var $e=quadraticRootAt(oe,ie,pe,Ce,roots);if($e===0)return 0;var xe=quadraticExtremum(oe,ie,pe);if(xe>=0&&xe<=1){for(var Ie=0,Ne=quadraticAt(oe,ie,pe,xe),Fe=0;Fe<$e;Fe++){var ze=roots[Fe]===0||roots[Fe]===1?.5:1,At=quadraticAt($,ae,le,roots[Fe]);At<_e||(roots[Fe]<xe?Ie+=Ne<oe?ze:-ze:Ie+=pe<Ne?ze:-ze)}return Ie}else{var ze=roots[0]===0||roots[0]===1?.5:1,At=quadraticAt($,ae,le,roots[0]);return At<_e?0:pe<oe?ze:-ze}}function windingArc($,oe,ae,ie,le,pe,_e,Ce){if(Ce-=oe,Ce>ae||Ce<-ae)return 0;var $e=Math.sqrt(ae*ae-Ce*Ce);roots[0]=-$e,roots[1]=$e;var xe=Math.abs(ie-le);if(xe<1e-4)return 0;if(xe>=PI2$2-1e-4){ie=0,le=PI2$2;var Ie=pe?1:-1;return _e>=roots[0]+$&&_e<=roots[1]+$?Ie:0}if(ie>le){var Ne=ie;ie=le,le=Ne}ie<0&&(ie+=PI2$2,le+=PI2$2);for(var Fe=0,ze=0;ze<2;ze++){var At=roots[ze];if(At+$>_e){var Lt=Math.atan2(Ce,At),Ie=pe?1:-1;Lt<0&&(Lt=PI2$2+Lt),(Lt>=ie&&Lt<=le||Lt+PI2$2>=ie&&Lt+PI2$2<=le)&&(Lt>Math.PI/2&&Lt<Math.PI*1.5&&(Ie=-Ie),Fe+=Ie)}}return Fe}function containPath($,oe,ae,ie,le){for(var pe=$.data,_e=$.len(),Ce=0,$e=0,xe=0,Ie=0,Ne=0,Fe,ze,At=0;At<_e;){var Lt=pe[At++],hn=At===1;switch(Lt===CMD$1.M&&At>1&&(ae||(Ce+=windingLine($e,xe,Ie,Ne,ie,le))),hn&&($e=pe[At],xe=pe[At+1],Ie=$e,Ne=xe),Lt){case CMD$1.M:Ie=pe[At++],Ne=pe[At++],$e=Ie,xe=Ne;break;case CMD$1.L:if(ae){if(containStroke$4($e,xe,pe[At],pe[At+1],oe,ie,le))return!0}else Ce+=windingLine($e,xe,pe[At],pe[At+1],ie,le)||0;$e=pe[At++],xe=pe[At++];break;case CMD$1.C:if(ae){if(containStroke$3($e,xe,pe[At++],pe[At++],pe[At++],pe[At++],pe[At],pe[At+1],oe,ie,le))return!0}else Ce+=windingCubic($e,xe,pe[At++],pe[At++],pe[At++],pe[At++],pe[At],pe[At+1],ie,le)||0;$e=pe[At++],xe=pe[At++];break;case CMD$1.Q:if(ae){if(containStroke$2($e,xe,pe[At++],pe[At++],pe[At],pe[At+1],oe,ie,le))return!0}else Ce+=windingQuadratic($e,xe,pe[At++],pe[At++],pe[At],pe[At+1],ie,le)||0;$e=pe[At++],xe=pe[At++];break;case CMD$1.A:var vn=pe[At++],_n=pe[At++],bn=pe[At++],Cn=pe[At++],En=pe[At++],$n=pe[At++];At+=1;var wn=!!(1-pe[At++]);Fe=Math.cos(En)*bn+vn,ze=Math.sin(En)*Cn+_n,hn?(Ie=Fe,Ne=ze):Ce+=windingLine($e,xe,Fe,ze,ie,le);var Tn=(ie-vn)*Cn/bn+vn;if(ae){if(containStroke$1(vn,_n,Cn,En,En+$n,wn,oe,Tn,le))return!0}else Ce+=windingArc(vn,_n,Cn,En,En+$n,wn,Tn,le);$e=Math.cos(En+$n)*bn+vn,xe=Math.sin(En+$n)*Cn+_n;break;case CMD$1.R:Ie=$e=pe[At++],Ne=xe=pe[At++];var xn=pe[At++],kn=pe[At++];if(Fe=Ie+xn,ze=Ne+kn,ae){if(containStroke$4(Ie,Ne,Fe,Ne,oe,ie,le)||containStroke$4(Fe,Ne,Fe,ze,oe,ie,le)||containStroke$4(Fe,ze,Ie,ze,oe,ie,le)||containStroke$4(Ie,ze,Ie,Ne,oe,ie,le))return!0}else Ce+=windingLine(Fe,Ne,Fe,ze,ie,le),Ce+=windingLine(Ie,ze,Ie,Ne,ie,le);break;case CMD$1.Z:if(ae){if(containStroke$4($e,xe,Ie,Ne,oe,ie,le))return!0}else Ce+=windingLine($e,xe,Ie,Ne,ie,le);$e=Ie,xe=Ne;break}}return!ae&&!isAroundEqual$1(xe,Ne)&&(Ce+=windingLine($e,xe,Ie,Ne,ie,le)||0),Ce!==0}function contain$2($,oe,ae){return containPath($,0,!1,oe,ae)}function containStroke($,oe,ae,ie){return containPath($,oe,!0,ae,ie)}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($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.update=function(){var ae=this;$.prototype.update.call(this);var ie=this.style;if(ie.decal){var le=this._decalEl=this._decalEl||new oe;le.buildPath===oe.prototype.buildPath&&(le.buildPath=function($e){ae.buildPath($e,ae.shape)}),le.silent=!0;var pe=le.style;for(var _e in ie)pe[_e]!==ie[_e]&&(pe[_e]=ie[_e]);pe.fill=ie.fill?ie.decal:null,pe.decal=null,pe.shadowColor=null,ie.strokeFirst&&(pe.stroke=null);for(var Ce=0;Ce<pathCopyParams.length;++Ce)le[pathCopyParams[Ce]]=this[pathCopyParams[Ce]];le.__dirty|=REDRAW_BIT}else this._decalEl&&(this._decalEl=null)},oe.prototype.getDecalElement=function(){return this._decalEl},oe.prototype._init=function(ae){var ie=keys(ae);this.shape=this.getDefaultShape();var le=this.getDefaultStyle();le&&this.useStyle(le);for(var pe=0;pe<ie.length;pe++){var _e=ie[pe],Ce=ae[_e];_e==="style"?this.style?extend(this.style,Ce):this.useStyle(Ce):_e==="shape"?extend(this.shape,Ce):$.prototype.attrKV.call(this,_e,Ce)}this.style||this.useStyle({})},oe.prototype.getDefaultStyle=function(){return null},oe.prototype.getDefaultShape=function(){return{}},oe.prototype.canBeInsideText=function(){return this.hasFill()},oe.prototype.getInsideTextFill=function(){var ae=this.style.fill;if(ae!=="none"){if(isString(ae)){var ie=lum(ae,0);return ie>.5?DARK_LABEL_COLOR:ie>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if(ae)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},oe.prototype.getInsideTextStroke=function(ae){var ie=this.style.fill;if(isString(ie)){var le=this.__zr,pe=!!(le&&le.isDarkMode()),_e=lum(ae,0)<DARK_MODE_THRESHOLD;if(pe===_e)return ie}},oe.prototype.buildPath=function(ae,ie,le){},oe.prototype.pathUpdated=function(){this.__dirty&=~SHAPE_CHANGED_BIT},oe.prototype.getUpdatedPathProxy=function(ae){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,ae),this.path},oe.prototype.createPathProxy=function(){this.path=new PathProxy$1(!1)},oe.prototype.hasStroke=function(){var ae=this.style,ie=ae.stroke;return!(ie==null||ie==="none"||!(ae.lineWidth>0))},oe.prototype.hasFill=function(){var ae=this.style,ie=ae.fill;return ie!=null&&ie!=="none"},oe.prototype.getBoundingRect=function(){var ae=this._rect,ie=this.style,le=!ae;if(le){var pe=!1;this.path||(pe=!0,this.createPathProxy());var _e=this.path;(pe||this.__dirty&SHAPE_CHANGED_BIT)&&(_e.beginPath(),this.buildPath(_e,this.shape,!1),this.pathUpdated()),ae=_e.getBoundingRect()}if(this._rect=ae,this.hasStroke()&&this.path&&this.path.len()>0){var Ce=this._rectStroke||(this._rectStroke=ae.clone());if(this.__dirty||le){Ce.copy(ae);var $e=ie.strokeNoScale?this.getLineScale():1,xe=ie.lineWidth;if(!this.hasFill()){var Ie=this.strokeContainThreshold;xe=Math.max(xe,Ie??4)}$e>1e-10&&(Ce.width+=xe/$e,Ce.height+=xe/$e,Ce.x-=xe/$e/2,Ce.y-=xe/$e/2)}return Ce}return ae},oe.prototype.contain=function(ae,ie){var le=this.transformCoordToLocal(ae,ie),pe=this.getBoundingRect(),_e=this.style;if(ae=le[0],ie=le[1],pe.contain(ae,ie)){var Ce=this.path;if(this.hasStroke()){var $e=_e.lineWidth,xe=_e.strokeNoScale?this.getLineScale():1;if(xe>1e-10&&(this.hasFill()||($e=Math.max($e,this.strokeContainThreshold)),containStroke(Ce,$e/xe,ae,ie)))return!0}if(this.hasFill())return contain$2(Ce,ae,ie)}return!1},oe.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},oe.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},oe.prototype.animateShape=function(ae){return this.animate("shape",ae)},oe.prototype.updateDuringAnimation=function(ae){ae==="style"?this.dirtyStyle():ae==="shape"?this.dirtyShape():this.markRedraw()},oe.prototype.attrKV=function(ae,ie){ae==="shape"?this.setShape(ie):$.prototype.attrKV.call(this,ae,ie)},oe.prototype.setShape=function(ae,ie){var le=this.shape;return le||(le=this.shape={}),typeof ae=="string"?le[ae]=ie:extend(le,ae),this.dirtyShape(),this},oe.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},oe.prototype.createStyle=function(ae){return createObject(DEFAULT_PATH_STYLE,ae)},oe.prototype._innerSaveToNormal=function(ae){$.prototype._innerSaveToNormal.call(this,ae);var ie=this._normalState;ae.shape&&!ie.shape&&(ie.shape=extend({},this.shape))},oe.prototype._applyStateObj=function(ae,ie,le,pe,_e,Ce){$.prototype._applyStateObj.call(this,ae,ie,le,pe,_e,Ce);var $e=!(ie&&pe),xe;if(ie&&ie.shape?_e?pe?xe=ie.shape:(xe=extend({},le.shape),extend(xe,ie.shape)):(xe=extend({},pe?this.shape:le.shape),extend(xe,ie.shape)):$e&&(xe=le.shape),xe)if(_e){this.shape=extend({},this.shape);for(var Ie={},Ne=keys(xe),Fe=0;Fe<Ne.length;Fe++){var ze=Ne[Fe];typeof xe[ze]=="object"?this.shape[ze]=xe[ze]:Ie[ze]=xe[ze]}this._transitionState(ae,{shape:Ie},Ce)}else this.shape=xe,this.dirtyShape()},oe.prototype._mergeStates=function(ae){for(var ie=$.prototype._mergeStates.call(this,ae),le,pe=0;pe<ae.length;pe++){var _e=ae[pe];_e.shape&&(le=le||{},this._mergeStyle(le,_e.shape))}return le&&(ie.shape=le),ie},oe.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},oe.prototype.isZeroArea=function(){return!1},oe.extend=function(ae){var ie=function(pe){__extends(_e,pe);function _e(Ce){var $e=pe.call(this,Ce)||this;return ae.init&&ae.init.call($e,Ce),$e}return _e.prototype.getDefaultStyle=function(){return clone$3(ae.style)},_e.prototype.getDefaultShape=function(){return clone$3(ae.shape)},_e}(oe);for(var le in ae)typeof ae[le]=="function"&&(ie.prototype[le]=ae[le]);return ie},oe.initDefaultProps=function(){var ae=oe.prototype;ae.type="path",ae.strokeContainThreshold=5,ae.segmentIgnoreThreshold=0,ae.subPixelOptimize=!1,ae.autoBatch=!1,ae.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),oe}(Displayable$1);const Path$1=Path;var DEFAULT_TSPAN_STYLE=defaults({strokeFirst:!0,font:DEFAULT_FONT,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},DEFAULT_PATH_STYLE),TSpan=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.hasStroke=function(){var ae=this.style,ie=ae.stroke;return ie!=null&&ie!=="none"&&ae.lineWidth>0},oe.prototype.hasFill=function(){var ae=this.style,ie=ae.fill;return ie!=null&&ie!=="none"},oe.prototype.createStyle=function(ae){return createObject(DEFAULT_TSPAN_STYLE,ae)},oe.prototype.setBoundingRect=function(ae){this._rect=ae},oe.prototype.getBoundingRect=function(){var ae=this.style;if(!this._rect){var ie=ae.text;ie!=null?ie+="":ie="";var le=getBoundingRect(ie,ae.font,ae.textAlign,ae.textBaseline);if(le.x+=ae.x||0,le.y+=ae.y||0,this.hasStroke()){var pe=ae.lineWidth;le.x-=pe/2,le.y-=pe/2,le.width+=pe,le.height+=pe}this._rect=le}return this._rect},oe.initDefaultProps=function(){var ae=oe.prototype;ae.dirtyRectTolerance=10}(),oe}(Displayable$1);TSpan.prototype.type="tspan";const TSpan$1=TSpan;var 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($){return!!($&&typeof $!="string"&&$.width&&$.height)}var ZRImage=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.createStyle=function(ae){return createObject(DEFAULT_IMAGE_STYLE,ae)},oe.prototype._getSize=function(ae){var ie=this.style,le=ie[ae];if(le!=null)return le;var pe=isImageLike(ie.image)?ie.image:this.__image;if(!pe)return 0;var _e=ae==="width"?"height":"width",Ce=ie[_e];return Ce==null?pe[ae]:pe[ae]/pe[_e]*Ce},oe.prototype.getWidth=function(){return this._getSize("width")},oe.prototype.getHeight=function(){return this._getSize("height")},oe.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},oe.prototype.getBoundingRect=function(){var ae=this.style;return this._rect||(this._rect=new BoundingRect$1(ae.x||0,ae.y||0,this.getWidth(),this.getHeight())),this._rect},oe}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2($,oe){var ae=oe.x,ie=oe.y,le=oe.width,pe=oe.height,_e=oe.r,Ce,$e,xe,Ie;le<0&&(ae=ae+le,le=-le),pe<0&&(ie=ie+pe,pe=-pe),typeof _e=="number"?Ce=$e=xe=Ie=_e:_e instanceof Array?_e.length===1?Ce=$e=xe=Ie=_e[0]:_e.length===2?(Ce=xe=_e[0],$e=Ie=_e[1]):_e.length===3?(Ce=_e[0],$e=Ie=_e[1],xe=_e[2]):(Ce=_e[0],$e=_e[1],xe=_e[2],Ie=_e[3]):Ce=$e=xe=Ie=0;var Ne;Ce+$e>le&&(Ne=Ce+$e,Ce*=le/Ne,$e*=le/Ne),xe+Ie>le&&(Ne=xe+Ie,xe*=le/Ne,Ie*=le/Ne),$e+xe>pe&&(Ne=$e+xe,$e*=pe/Ne,xe*=pe/Ne),Ce+Ie>pe&&(Ne=Ce+Ie,Ce*=pe/Ne,Ie*=pe/Ne),$.moveTo(ae+Ce,ie),$.lineTo(ae+le-$e,ie),$e!==0&&$.arc(ae+le-$e,ie+$e,$e,-Math.PI/2,0),$.lineTo(ae+le,ie+pe-xe),xe!==0&&$.arc(ae+le-xe,ie+pe-xe,xe,0,Math.PI/2),$.lineTo(ae+Ie,ie+pe),Ie!==0&&$.arc(ae+Ie,ie+pe-Ie,Ie,Math.PI/2,Math.PI),$.lineTo(ae,ie+Ce),Ce!==0&&$.arc(ae+Ce,ie+Ce,Ce,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1($,oe,ae){if(oe){var ie=oe.x1,le=oe.x2,pe=oe.y1,_e=oe.y2;$.x1=ie,$.x2=le,$.y1=pe,$.y2=_e;var Ce=ae&&ae.lineWidth;return Ce&&(round(ie*2)===round(le*2)&&($.x1=$.x2=subPixelOptimize$1(ie,Ce,!0)),round(pe*2)===round(_e*2)&&($.y1=$.y2=subPixelOptimize$1(pe,Ce,!0))),$}}function subPixelOptimizeRect$1($,oe,ae){if(oe){var ie=oe.x,le=oe.y,pe=oe.width,_e=oe.height;$.x=ie,$.y=le,$.width=pe,$.height=_e;var Ce=ae&&ae.lineWidth;return Ce&&($.x=subPixelOptimize$1(ie,Ce,!0),$.y=subPixelOptimize$1(le,Ce,!0),$.width=Math.max(subPixelOptimize$1(ie+pe,Ce,!1)-$.x,pe===0?0:1),$.height=Math.max(subPixelOptimize$1(le+_e,Ce,!1)-$.y,_e===0?0:1)),$}}function subPixelOptimize$1($,oe,ae){if(!oe)return $;var ie=round($*2);return(ie+round(oe))%2===0?ie/2:(ie+(ae?1:-1))/2}var RectShape=function(){function $(){this.x=0,this.y=0,this.width=0,this.height=0}return $}(),subPixelOptimizeOutputShape$1={},Rect$1=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new RectShape},oe.prototype.buildPath=function(ae,ie){var le,pe,_e,Ce;if(this.subPixelOptimize){var $e=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,ie,this.style);le=$e.x,pe=$e.y,_e=$e.width,Ce=$e.height,$e.r=ie.r,ie=$e}else le=ie.x,pe=ie.y,_e=ie.width,Ce=ie.height;ie.r?buildPath$2(ae,ie):ae.rect(le,pe,_e,Ce)},oe.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},oe}(Path$1);Rect$1.prototype.type="rect";const Rect$2=Rect$1;var 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($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;return ie.type="text",ie._children=[],ie._defaultStyle=DEFAULT_RICH_TEXT_COLOR,ie.attr(ae),ie}return oe.prototype.childrenRef=function(){return this._children},oe.prototype.update=function(){$.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var ae=0;ae<this._children.length;ae++){var ie=this._children[ae];ie.zlevel=this.zlevel,ie.z=this.z,ie.z2=this.z2,ie.culling=this.culling,ie.cursor=this.cursor,ie.invisible=this.invisible}},oe.prototype.updateTransform=function(){var ae=this.innerTransformable;ae?(ae.updateTransform(),ae.transform&&(this.transform=ae.transform)):$.prototype.updateTransform.call(this)},oe.prototype.getLocalTransform=function(ae){var ie=this.innerTransformable;return ie?ie.getLocalTransform(ae):$.prototype.getLocalTransform.call(this,ae)},oe.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),$.prototype.getComputedTransform.call(this)},oe.prototype._updateSubTexts=function(){this._childCursor=0,normalizeTextStyle(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},oe.prototype.addSelfToZr=function(ae){$.prototype.addSelfToZr.call(this,ae);for(var ie=0;ie<this._children.length;ie++)this._children[ie].__zr=ae},oe.prototype.removeSelfFromZr=function(ae){$.prototype.removeSelfFromZr.call(this,ae);for(var ie=0;ie<this._children.length;ie++)this._children[ie].__zr=null},oe.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var ae=new BoundingRect$1(0,0,0,0),ie=this._children,le=[],pe=null,_e=0;_e<ie.length;_e++){var Ce=ie[_e],$e=Ce.getBoundingRect(),xe=Ce.getLocalTransform(le);xe?(ae.copy($e),ae.applyTransform(xe),pe=pe||ae.clone(),pe.union(ae)):(pe=pe||$e.clone(),pe.union($e))}this._rect=pe||ae}return this._rect},oe.prototype.setDefaultTextStyle=function(ae){this._defaultStyle=ae||DEFAULT_RICH_TEXT_COLOR},oe.prototype.setTextContent=function(ae){},oe.prototype._mergeStyle=function(ae,ie){if(!ie)return ae;var le=ie.rich,pe=ae.rich||le&&{};return extend(ae,ie),le&&pe?(this._mergeRich(pe,le),ae.rich=pe):pe&&(ae.rich=pe),ae},oe.prototype._mergeRich=function(ae,ie){for(var le=keys(ie),pe=0;pe<le.length;pe++){var _e=le[pe];ae[_e]=ae[_e]||{},extend(ae[_e],ie[_e])}},oe.prototype.getAnimationStyleProps=function(){return DEFAULT_TEXT_ANIMATION_PROPS},oe.prototype._getOrCreateChild=function(ae){var ie=this._children[this._childCursor];return(!ie||!(ie instanceof ae))&&(ie=new ae),this._children[this._childCursor++]=ie,ie.__zr=this.__zr,ie.parent=this,ie},oe.prototype._updatePlainTexts=function(){var ae=this.style,ie=ae.font||DEFAULT_FONT,le=ae.padding,pe=getStyleText(ae),_e=parsePlainText(pe,ae),Ce=needDrawBackground(ae),$e=!!ae.backgroundColor,xe=_e.outerHeight,Ie=_e.outerWidth,Ne=_e.contentWidth,Fe=_e.lines,ze=_e.lineHeight,At=this._defaultStyle,Lt=ae.x||0,hn=ae.y||0,vn=ae.align||At.align||"left",_n=ae.verticalAlign||At.verticalAlign||"top",bn=Lt,Cn=adjustTextY(hn,_e.contentHeight,_n);if(Ce||le){var En=adjustTextX(Lt,Ie,vn),$n=adjustTextY(hn,xe,_n);Ce&&this._renderBackground(ae,ae,En,$n,Ie,xe)}Cn+=ze/2,le&&(bn=getTextXForPadding(Lt,vn,le),_n==="top"?Cn+=le[0]:_n==="bottom"&&(Cn-=le[2]));for(var wn=0,Tn=!1,xn=getFill("fill"in ae?ae.fill:(Tn=!0,At.fill)),kn=getStroke("stroke"in ae?ae.stroke:!$e&&(!At.autoStroke||Tn)?(wn=DEFAULT_STROKE_LINE_WIDTH,At.stroke):null),An=ae.textShadowBlur>0,On=ae.width!=null&&(ae.overflow==="truncate"||ae.overflow==="break"||ae.overflow==="breakAll"),Nn=_e.calculatedLineHeight,Rn=0;Rn<Fe.length;Rn++){var zn=this._getOrCreateChild(TSpan$1),Bn=zn.createStyle();zn.useStyle(Bn),Bn.text=Fe[Rn],Bn.x=bn,Bn.y=Cn,vn&&(Bn.textAlign=vn),Bn.textBaseline="middle",Bn.opacity=ae.opacity,Bn.strokeFirst=!0,An&&(Bn.shadowBlur=ae.textShadowBlur||0,Bn.shadowColor=ae.textShadowColor||"transparent",Bn.shadowOffsetX=ae.textShadowOffsetX||0,Bn.shadowOffsetY=ae.textShadowOffsetY||0),Bn.stroke=kn,Bn.fill=xn,kn&&(Bn.lineWidth=ae.lineWidth||wn,Bn.lineDash=ae.lineDash,Bn.lineDashOffset=ae.lineDashOffset||0),Bn.font=ie,setSeparateFont(Bn,ae),Cn+=ze,On&&zn.setBoundingRect(new BoundingRect$1(adjustTextX(Bn.x,ae.width,Bn.textAlign),adjustTextY(Bn.y,Nn,Bn.textBaseline),Ne,Nn))}},oe.prototype._updateRichTexts=function(){var ae=this.style,ie=getStyleText(ae),le=parseRichText(ie,ae),pe=le.width,_e=le.outerWidth,Ce=le.outerHeight,$e=ae.padding,xe=ae.x||0,Ie=ae.y||0,Ne=this._defaultStyle,Fe=ae.align||Ne.align,ze=ae.verticalAlign||Ne.verticalAlign,At=adjustTextX(xe,_e,Fe),Lt=adjustTextY(Ie,Ce,ze),hn=At,vn=Lt;$e&&(hn+=$e[3],vn+=$e[0]);var _n=hn+pe;needDrawBackground(ae)&&this._renderBackground(ae,ae,At,Lt,_e,Ce);for(var bn=!!ae.backgroundColor,Cn=0;Cn<le.lines.length;Cn++){for(var En=le.lines[Cn],$n=En.tokens,wn=$n.length,Tn=En.lineHeight,xn=En.width,kn=0,An=hn,On=_n,Nn=wn-1,Rn=void 0;kn<wn&&(Rn=$n[kn],!Rn.align||Rn.align==="left");)this._placeToken(Rn,ae,Tn,vn,An,"left",bn),xn-=Rn.width,An+=Rn.width,kn++;for(;Nn>=0&&(Rn=$n[Nn],Rn.align==="right");)this._placeToken(Rn,ae,Tn,vn,On,"right",bn),xn-=Rn.width,On-=Rn.width,Nn--;for(An+=(pe-(An-hn)-(_n-On)-xn)/2;kn<=Nn;)Rn=$n[kn],this._placeToken(Rn,ae,Tn,vn,An+Rn.width/2,"center",bn),An+=Rn.width,kn++;vn+=Tn}},oe.prototype._placeToken=function(ae,ie,le,pe,_e,Ce,$e){var xe=ie.rich[ae.styleName]||{};xe.text=ae.text;var Ie=ae.verticalAlign,Ne=pe+le/2;Ie==="top"?Ne=pe+ae.height/2:Ie==="bottom"&&(Ne=pe+le-ae.height/2);var Fe=!ae.isLineHolder&&needDrawBackground(xe);Fe&&this._renderBackground(xe,ie,Ce==="right"?_e-ae.width:Ce==="center"?_e-ae.width/2:_e,Ne-ae.height/2,ae.width,ae.height);var ze=!!xe.backgroundColor,At=ae.textPadding;At&&(_e=getTextXForPadding(_e,Ce,At),Ne-=ae.height/2-At[0]-ae.innerHeight/2);var Lt=this._getOrCreateChild(TSpan$1),hn=Lt.createStyle();Lt.useStyle(hn);var vn=this._defaultStyle,_n=!1,bn=0,Cn=getFill("fill"in xe?xe.fill:"fill"in ie?ie.fill:(_n=!0,vn.fill)),En=getStroke("stroke"in xe?xe.stroke:"stroke"in ie?ie.stroke:!ze&&!$e&&(!vn.autoStroke||_n)?(bn=DEFAULT_STROKE_LINE_WIDTH,vn.stroke):null),$n=xe.textShadowBlur>0||ie.textShadowBlur>0;hn.text=ae.text,hn.x=_e,hn.y=Ne,$n&&(hn.shadowBlur=xe.textShadowBlur||ie.textShadowBlur||0,hn.shadowColor=xe.textShadowColor||ie.textShadowColor||"transparent",hn.shadowOffsetX=xe.textShadowOffsetX||ie.textShadowOffsetX||0,hn.shadowOffsetY=xe.textShadowOffsetY||ie.textShadowOffsetY||0),hn.textAlign=Ce,hn.textBaseline="middle",hn.font=ae.font||DEFAULT_FONT,hn.opacity=retrieve3(xe.opacity,ie.opacity,1),setSeparateFont(hn,xe),En&&(hn.lineWidth=retrieve3(xe.lineWidth,ie.lineWidth,bn),hn.lineDash=retrieve2(xe.lineDash,ie.lineDash),hn.lineDashOffset=ie.lineDashOffset||0,hn.stroke=En),Cn&&(hn.fill=Cn);var wn=ae.contentWidth,Tn=ae.contentHeight;Lt.setBoundingRect(new BoundingRect$1(adjustTextX(hn.x,wn,hn.textAlign),adjustTextY(hn.y,Tn,hn.textBaseline),wn,Tn))},oe.prototype._renderBackground=function(ae,ie,le,pe,_e,Ce){var $e=ae.backgroundColor,xe=ae.borderWidth,Ie=ae.borderColor,Ne=$e&&$e.image,Fe=$e&&!Ne,ze=ae.borderRadius,At=this,Lt,hn;if(Fe||ae.lineHeight||xe&&Ie){Lt=this._getOrCreateChild(Rect$2),Lt.useStyle(Lt.createStyle()),Lt.style.fill=null;var vn=Lt.shape;vn.x=le,vn.y=pe,vn.width=_e,vn.height=Ce,vn.r=ze,Lt.dirtyShape()}if(Fe){var _n=Lt.style;_n.fill=$e||null,_n.fillOpacity=retrieve2(ae.fillOpacity,1)}else if(Ne){hn=this._getOrCreateChild(ZRImage$1),hn.onload=function(){At.dirtyStyle()};var bn=hn.style;bn.image=$e.image,bn.x=le,bn.y=pe,bn.width=_e,bn.height=Ce}if(xe&&Ie){var _n=Lt.style;_n.lineWidth=xe,_n.stroke=Ie,_n.strokeOpacity=retrieve2(ae.strokeOpacity,1),_n.lineDash=ae.borderDash,_n.lineDashOffset=ae.borderDashOffset||0,Lt.strokeContainThreshold=0,Lt.hasFill()&&Lt.hasStroke()&&(_n.strokeFirst=!0,_n.lineWidth*=2)}var Cn=(Lt||hn).style;Cn.shadowBlur=ae.shadowBlur||0,Cn.shadowColor=ae.shadowColor||"transparent",Cn.shadowOffsetX=ae.shadowOffsetX||0,Cn.shadowOffsetY=ae.shadowOffsetY||0,Cn.opacity=retrieve3(ae.opacity,ie.opacity,1)},oe.makeFont=function(ae){var ie="";return hasSeparateFont(ae)&&(ie=[ae.fontStyle,ae.fontWeight,parseFontSize(ae.fontSize),ae.fontFamily||"sans-serif"].join(" ")),ie&&trim$1(ie)||ae.textFont||ae.font},oe}(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($){return typeof $=="string"&&($.indexOf("px")!==-1||$.indexOf("rem")!==-1||$.indexOf("em")!==-1)?$:isNaN(+$)?DEFAULT_FONT_SIZE+"px":$+"px"}function setSeparateFont($,oe){for(var ae=0;ae<FONT_PARTS.length;ae++){var ie=FONT_PARTS[ae],le=oe[ie];le!=null&&($[ie]=le)}}function hasSeparateFont($){return $.fontSize!=null||$.fontFamily||$.fontWeight}function normalizeTextStyle($){return normalizeStyle($),each$c($.rich,normalizeStyle),$}function normalizeStyle($){if($){$.font=ZRText.makeFont($);var oe=$.align;oe==="middle"&&(oe="center"),$.align=oe==null||VALID_TEXT_ALIGN[oe]?oe:"left";var ae=$.verticalAlign;ae==="center"&&(ae="middle"),$.verticalAlign=ae==null||VALID_TEXT_VERTICAL_ALIGN[ae]?ae:"top";var ie=$.padding;ie&&($.padding=normalizeCssArray$1($.padding))}}function getStroke($,oe){return $==null||oe<=0||$==="transparent"||$==="none"?null:$.image||$.colorStops?"#000":$}function getFill($){return $==null||$==="none"?null:$.image||$.colorStops?"#000":$}function getTextXForPadding($,oe,ae){return oe==="right"?$-ae[1]:oe==="center"?$+ae[3]/2-ae[1]/2:$+ae[3]}function getStyleText($){var oe=$.text;return oe!=null&&(oe+=""),oe}function needDrawBackground($){return!!($.backgroundColor||$.lineHeight||$.borderWidth&&$.borderColor)}const ZRText$1=ZRText;var getECData=makeInner(),setCommonECData=function($,oe,ae,ie){if(ie){var le=getECData(ie);le.dataIndex=ae,le.dataType=oe,le.seriesIndex=$,ie.type==="group"&&ie.traverse(function(pe){var _e=getECData(pe);_e.seriesIndex=$,_e.dataIndex=ae,_e.dataType=oe})}},_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($){return $!=null&&$!=="none"}var liftedColorCache=new LRU$1(100);function liftColor($){if(isString($)){var oe=liftedColorCache.get($);return oe||(oe=lift($,-.1),liftedColorCache.put($,oe)),oe}else if(isGradientObject($)){var ae=extend({},$);return ae.colorStops=map$2($.colorStops,function(ie){return{offset:ie.offset,color:lift(ie.color,-.1)}}),ae}return $}function doChangeHoverState($,oe,ae){$.onHoverStateChange&&($.hoverState||0)!==ae&&$.onHoverStateChange(oe),$.hoverState=ae}function singleEnterEmphasis($){doChangeHoverState($,"emphasis",HOVER_STATE_EMPHASIS)}function singleLeaveEmphasis($){$.hoverState===HOVER_STATE_EMPHASIS&&doChangeHoverState($,"normal",HOVER_STATE_NORMAL)}function singleEnterBlur($){doChangeHoverState($,"blur",HOVER_STATE_BLUR)}function singleLeaveBlur($){$.hoverState===HOVER_STATE_BLUR&&doChangeHoverState($,"normal",HOVER_STATE_NORMAL)}function singleEnterSelect($){$.selected=!0}function singleLeaveSelect($){$.selected=!1}function updateElementState($,oe,ae){oe($,ae)}function traverseUpdateState($,oe,ae){updateElementState($,oe,ae),$.isGroup&&$.traverse(function(ie){updateElementState(ie,oe,ae)})}function setStatesFlag($,oe){switch(oe){case"emphasis":$.hoverState=HOVER_STATE_EMPHASIS;break;case"normal":$.hoverState=HOVER_STATE_NORMAL;break;case"blur":$.hoverState=HOVER_STATE_BLUR;break;case"select":$.selected=!0}}function getFromStateStyle($,oe,ae,ie){for(var le=$.style,pe={},_e=0;_e<oe.length;_e++){var Ce=oe[_e],$e=le[Ce];pe[Ce]=$e??(ie&&ie[Ce])}for(var _e=0;_e<$.animators.length;_e++){var xe=$.animators[_e];xe.__fromStateTransition&&xe.__fromStateTransition.indexOf(ae)<0&&xe.targetName==="style"&&xe.saveTo(pe,oe)}return pe}function createEmphasisDefaultState($,oe,ae,ie){var le=ae&&indexOf(ae,"select")>=0,pe=!1;if($ instanceof Path$1){var _e=getSavedStates($),Ce=le&&_e.selectFill||_e.normalFill,$e=le&&_e.selectStroke||_e.normalStroke;if(hasFillOrStroke(Ce)||hasFillOrStroke($e)){ie=ie||{};var xe=ie.style||{};xe.fill==="inherit"?(pe=!0,ie=extend({},ie),xe=extend({},xe),xe.fill=Ce):!hasFillOrStroke(xe.fill)&&hasFillOrStroke(Ce)?(pe=!0,ie=extend({},ie),xe=extend({},xe),xe.fill=liftColor(Ce)):!hasFillOrStroke(xe.stroke)&&hasFillOrStroke($e)&&(pe||(ie=extend({},ie),xe=extend({},xe)),xe.stroke=liftColor($e)),ie.style=xe}}if(ie&&ie.z2==null){pe||(ie=extend({},ie));var Ie=$.z2EmphasisLift;ie.z2=$.z2+(Ie??Z2_EMPHASIS_LIFT)}return ie}function createSelectDefaultState($,oe,ae){if(ae&&ae.z2==null){ae=extend({},ae);var ie=$.z2SelectLift;ae.z2=$.z2+(ie??Z2_SELECT_LIFT)}return ae}function createBlurDefaultState($,oe,ae){var ie=indexOf($.currentStates,oe)>=0,le=$.style.opacity,pe=ie?null:getFromStateStyle($,["opacity"],oe,{opacity:1});ae=ae||{};var _e=ae.style||{};return _e.opacity==null&&(ae=extend({},ae),_e=extend({opacity:ie?le:pe.opacity*.1},_e),ae.style=_e),ae}function elementStateProxy($,oe){var ae=this.states[$];if(this.style){if($==="emphasis")return createEmphasisDefaultState(this,$,oe,ae);if($==="blur")return createBlurDefaultState(this,$,ae);if($==="select")return createSelectDefaultState(this,$,ae)}return ae}function setDefaultStateProxy($){$.stateProxy=elementStateProxy;var oe=$.getTextContent(),ae=$.getTextGuideLine();oe&&(oe.stateProxy=elementStateProxy),ae&&(ae.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver($,oe){!shouldSilent($,oe)&&!$.__highByOuter&&traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut($,oe){!shouldSilent($,oe)&&!$.__highByOuter&&traverseUpdateState($,singleLeaveEmphasis)}function enterEmphasis($,oe){$.__highByOuter|=1<<(oe||0),traverseUpdateState($,singleEnterEmphasis)}function leaveEmphasis($,oe){!($.__highByOuter&=~(1<<(oe||0)))&&traverseUpdateState($,singleLeaveEmphasis)}function enterBlur($){traverseUpdateState($,singleEnterBlur)}function leaveBlur($){traverseUpdateState($,singleLeaveBlur)}function enterSelect($){traverseUpdateState($,singleEnterSelect)}function leaveSelect($){traverseUpdateState($,singleLeaveSelect)}function shouldSilent($,oe){return $.__highDownSilentOnTouch&&oe.zrByTouch}function allLeaveBlur($){var oe=$.getModel(),ae=[],ie=[];oe.eachComponent(function(le,pe){var _e=getComponentStates(pe),Ce=le==="series",$e=Ce?$.getViewOfSeriesModel(pe):$.getViewOfComponentModel(pe);!Ce&&ie.push($e),_e.isBlured&&($e.group.traverse(function(xe){singleLeaveBlur(xe)}),Ce&&ae.push(pe)),_e.isBlured=!1}),each$c(ie,function(le){le&&le.toggleBlurSeries&&le.toggleBlurSeries(ae,!1,oe)})}function blurSeries($,oe,ae,ie){var le=ie.getModel();ae=ae||"coordinateSystem";function pe(xe,Ie){for(var Ne=0;Ne<Ie.length;Ne++){var Fe=xe.getItemGraphicEl(Ie[Ne]);Fe&&leaveBlur(Fe)}}if($!=null&&!(!oe||oe==="none")){var _e=le.getSeriesByIndex($),Ce=_e.coordinateSystem;Ce&&Ce.master&&(Ce=Ce.master);var $e=[];le.eachSeries(function(xe){var Ie=_e===xe,Ne=xe.coordinateSystem;Ne&&Ne.master&&(Ne=Ne.master);var Fe=Ne&&Ce?Ne===Ce:Ie;if(!(ae==="series"&&!Ie||ae==="coordinateSystem"&&!Fe||oe==="series"&&Ie)){var ze=ie.getViewOfSeriesModel(xe);if(ze.group.traverse(function(hn){singleEnterBlur(hn)}),isArrayLike(oe))pe(xe.getData(),oe);else if(isObject$3(oe))for(var At=keys(oe),Lt=0;Lt<At.length;Lt++)pe(xe.getData(At[Lt]),oe[At[Lt]]);$e.push(xe),getComponentStates(xe).isBlured=!0}}),le.eachComponent(function(xe,Ie){if(xe!=="series"){var Ne=ie.getViewOfComponentModel(Ie);Ne&&Ne.toggleBlurSeries&&Ne.toggleBlurSeries($e,!0,le)}})}}function blurComponent($,oe,ae){if(!($==null||oe==null)){var ie=ae.getModel().getComponent($,oe);if(ie){getComponentStates(ie).isBlured=!0;var le=ae.getViewOfComponentModel(ie);!le||!le.focusBlurEnabled||le.group.traverse(function(pe){singleEnterBlur(pe)})}}}function blurSeriesFromHighlightPayload($,oe,ae){var ie=$.seriesIndex,le=$.getData(oe.dataType);if(le){var pe=queryDataIndex(le,oe);pe=(isArray$1(pe)?pe[0]:pe)||0;var _e=le.getItemGraphicEl(pe);if(!_e)for(var Ce=le.count(),$e=0;!_e&&$e<Ce;)_e=le.getItemGraphicEl($e++);if(_e){var xe=getECData(_e);blurSeries(ie,xe.focus,xe.blurScope,ae)}else{var Ie=$.get(["emphasis","focus"]),Ne=$.get(["emphasis","blurScope"]);Ie!=null&&blurSeries(ie,Ie,Ne,ae)}}}function findComponentHighDownDispatchers($,oe,ae,ie){var le={focusSelf:!1,dispatchers:null};if($==null||$==="series"||oe==null||ae==null)return le;var pe=ie.getModel().getComponent($,oe);if(!pe)return le;var _e=ie.getViewOfComponentModel(pe);if(!_e||!_e.findHighDownDispatchers)return le;for(var Ce=_e.findHighDownDispatchers(ae),$e,xe=0;xe<Ce.length;xe++)if(getECData(Ce[xe]).focus==="self"){$e=!0;break}return{focusSelf:$e,dispatchers:Ce}}function handleGlobalMouseOverForHighDown($,oe,ae){var ie=getECData($),le=findComponentHighDownDispatchers(ie.componentMainType,ie.componentIndex,ie.componentHighDownName,ae),pe=le.dispatchers,_e=le.focusSelf;pe?(_e&&blurComponent(ie.componentMainType,ie.componentIndex,ae),each$c(pe,function(Ce){return enterEmphasisWhenMouseOver(Ce,oe)})):(blurSeries(ie.seriesIndex,ie.focus,ie.blurScope,ae),ie.focus==="self"&&blurComponent(ie.componentMainType,ie.componentIndex,ae),enterEmphasisWhenMouseOver($,oe))}function handleGlobalMouseOutForHighDown($,oe,ae){allLeaveBlur(ae);var ie=getECData($),le=findComponentHighDownDispatchers(ie.componentMainType,ie.componentIndex,ie.componentHighDownName,ae).dispatchers;le?each$c(le,function(pe){return leaveEmphasisWhenMouseOut(pe,oe)}):leaveEmphasisWhenMouseOut($,oe)}function toggleSelectionFromPayload($,oe,ae){if(isSelectChangePayload(oe)){var ie=oe.dataType,le=$.getData(ie),pe=queryDataIndex(le,oe);isArray$1(pe)||(pe=[pe]),$[oe.type===TOGGLE_SELECT_ACTION_TYPE?"toggleSelect":oe.type===SELECT_ACTION_TYPE?"select":"unselect"](pe,ie)}}function updateSeriesElementSelection($){var oe=$.getAllData();each$c(oe,function(ae){var ie=ae.data,le=ae.type;ie.eachItemGraphicEl(function(pe,_e){$.isSelected(_e,le)?enterSelect(pe):leaveSelect(pe)})})}function getAllSelectedIndices($){var oe=[];return $.eachSeries(function(ae){var ie=ae.getAllData();each$c(ie,function(le){le.data;var pe=le.type,_e=ae.getSelectedDataIndices();if(_e.length>0){var Ce={dataIndex:_e,seriesIndex:ae.seriesIndex};pe!=null&&(Ce.dataType=pe),oe.push(Ce)}})}),oe}function enableHoverEmphasis($,oe,ae){setAsHighDownDispatcher($,!0),traverseUpdateState($,setDefaultStateProxy),enableHoverFocus($,oe,ae)}function disableHoverEmphasis($){setAsHighDownDispatcher($,!1)}function toggleHoverEmphasis($,oe,ae,ie){ie?disableHoverEmphasis($):enableHoverEmphasis($,oe,ae)}function enableHoverFocus($,oe,ae){var ie=getECData($);oe!=null?(ie.focus=oe,ie.blurScope=ae):ie.focus&&(ie.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel($,oe,ae,ie){ae=ae||"itemStyle";for(var le=0;le<OTHER_STATES.length;le++){var pe=OTHER_STATES[le],_e=oe.getModel([pe,ae]),Ce=$.ensureState(pe);Ce.style=ie?ie(_e):_e[defaultStyleGetterMap[ae]]()}}function setAsHighDownDispatcher($,oe){var ae=oe===!1,ie=$;$.highDownSilentOnTouch&&(ie.__highDownSilentOnTouch=$.highDownSilentOnTouch),(!ae||ie.__highDownDispatcher)&&(ie.__highByOuter=ie.__highByOuter||0,ie.__highDownDispatcher=!ae)}function isHighDownDispatcher($){return!!($&&$.__highDownDispatcher)}function getHighlightDigit($){var oe=_highlightKeyMap[$];return oe==null&&_highlightNextDigit<=32&&(oe=_highlightKeyMap[$]=_highlightNextDigit++),oe}function isSelectChangePayload($){var oe=$.type;return oe===SELECT_ACTION_TYPE||oe===UNSELECT_ACTION_TYPE||oe===TOGGLE_SELECT_ACTION_TYPE}function isHighDownPayload($){var oe=$.type;return oe===HIGHLIGHT_ACTION_TYPE||oe===DOWNPLAY_ACTION_TYPE}function savePathStates($){var oe=getSavedStates($);oe.normalFill=$.style.fill,oe.normalStroke=$.style.stroke;var ae=$.states.select||{};oe.selectFill=ae.style&&ae.style.fill||null,oe.selectStroke=ae.style&&ae.style.stroke||null}var CMD=PathProxy$1.CMD,points=[[],[],[]],mathSqrt$2=Math.sqrt,mathAtan2=Math.atan2;function transformPath($,oe){if(oe){var ae=$.data,ie=$.len(),le,pe,_e,Ce,$e,xe,Ie=CMD.M,Ne=CMD.C,Fe=CMD.L,ze=CMD.R,At=CMD.A,Lt=CMD.Q;for(_e=0,Ce=0;_e<ie;){switch(le=ae[_e++],Ce=_e,pe=0,le){case Ie:pe=1;break;case Fe:pe=1;break;case Ne:pe=3;break;case Lt:pe=2;break;case At:var hn=oe[4],vn=oe[5],_n=mathSqrt$2(oe[0]*oe[0]+oe[1]*oe[1]),bn=mathSqrt$2(oe[2]*oe[2]+oe[3]*oe[3]),Cn=mathAtan2(-oe[1]/bn,oe[0]/_n);ae[_e]*=_n,ae[_e++]+=hn,ae[_e]*=bn,ae[_e++]+=vn,ae[_e++]*=_n,ae[_e++]*=bn,ae[_e++]+=Cn,ae[_e++]+=Cn,_e+=2,Ce=_e;break;case ze:xe[0]=ae[_e++],xe[1]=ae[_e++],applyTransform$1(xe,xe,oe),ae[Ce++]=xe[0],ae[Ce++]=xe[1],xe[0]+=ae[_e++],xe[1]+=ae[_e++],applyTransform$1(xe,xe,oe),ae[Ce++]=xe[0],ae[Ce++]=xe[1]}for($e=0;$e<pe;$e++){var En=points[$e];En[0]=ae[_e++],En[1]=ae[_e++],applyTransform$1(En,En,oe),ae[Ce++]=En[0],ae[Ce++]=En[1]}}$.increaseVersion()}}var mathSqrt$1=Math.sqrt,mathSin$1=Math.sin,mathCos$1=Math.cos,PI$3=Math.PI;function vMag($){return Math.sqrt($[0]*$[0]+$[1]*$[1])}function vRatio($,oe){return($[0]*oe[0]+$[1]*oe[1])/(vMag($)*vMag(oe))}function vAngle($,oe){return($[0]*oe[1]<$[1]*oe[0]?-1:1)*Math.acos(vRatio($,oe))}function processArc($,oe,ae,ie,le,pe,_e,Ce,$e,xe,Ie){var Ne=$e*(PI$3/180),Fe=mathCos$1(Ne)*($-ae)/2+mathSin$1(Ne)*(oe-ie)/2,ze=-1*mathSin$1(Ne)*($-ae)/2+mathCos$1(Ne)*(oe-ie)/2,At=Fe*Fe/(_e*_e)+ze*ze/(Ce*Ce);At>1&&(_e*=mathSqrt$1(At),Ce*=mathSqrt$1(At));var Lt=(le===pe?-1:1)*mathSqrt$1((_e*_e*(Ce*Ce)-_e*_e*(ze*ze)-Ce*Ce*(Fe*Fe))/(_e*_e*(ze*ze)+Ce*Ce*(Fe*Fe)))||0,hn=Lt*_e*ze/Ce,vn=Lt*-Ce*Fe/_e,_n=($+ae)/2+mathCos$1(Ne)*hn-mathSin$1(Ne)*vn,bn=(oe+ie)/2+mathSin$1(Ne)*hn+mathCos$1(Ne)*vn,Cn=vAngle([1,0],[(Fe-hn)/_e,(ze-vn)/Ce]),En=[(Fe-hn)/_e,(ze-vn)/Ce],$n=[(-1*Fe-hn)/_e,(-1*ze-vn)/Ce],wn=vAngle(En,$n);if(vRatio(En,$n)<=-1&&(wn=PI$3),vRatio(En,$n)>=1&&(wn=0),wn<0){var Tn=Math.round(wn/PI$3*1e6)/1e6;wn=PI$3*2+Tn%2*PI$3}Ie.addData(xe,_n,bn,_e,Ce,Cn,wn,Ne,pe)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString($){var oe=new PathProxy$1;if(!$)return oe;var ae=0,ie=0,le=ae,pe=ie,_e,Ce=PathProxy$1.CMD,$e=$.match(commandReg);if(!$e)return oe;for(var xe=0;xe<$e.length;xe++){for(var Ie=$e[xe],Ne=Ie.charAt(0),Fe=void 0,ze=Ie.match(numberReg)||[],At=ze.length,Lt=0;Lt<At;Lt++)ze[Lt]=parseFloat(ze[Lt]);for(var hn=0;hn<At;){var vn=void 0,_n=void 0,bn=void 0,Cn=void 0,En=void 0,$n=void 0,wn=void 0,Tn=ae,xn=ie,kn=void 0,An=void 0;switch(Ne){case"l":ae+=ze[hn++],ie+=ze[hn++],Fe=Ce.L,oe.addData(Fe,ae,ie);break;case"L":ae=ze[hn++],ie=ze[hn++],Fe=Ce.L,oe.addData(Fe,ae,ie);break;case"m":ae+=ze[hn++],ie+=ze[hn++],Fe=Ce.M,oe.addData(Fe,ae,ie),le=ae,pe=ie,Ne="l";break;case"M":ae=ze[hn++],ie=ze[hn++],Fe=Ce.M,oe.addData(Fe,ae,ie),le=ae,pe=ie,Ne="L";break;case"h":ae+=ze[hn++],Fe=Ce.L,oe.addData(Fe,ae,ie);break;case"H":ae=ze[hn++],Fe=Ce.L,oe.addData(Fe,ae,ie);break;case"v":ie+=ze[hn++],Fe=Ce.L,oe.addData(Fe,ae,ie);break;case"V":ie=ze[hn++],Fe=Ce.L,oe.addData(Fe,ae,ie);break;case"C":Fe=Ce.C,oe.addData(Fe,ze[hn++],ze[hn++],ze[hn++],ze[hn++],ze[hn++],ze[hn++]),ae=ze[hn-2],ie=ze[hn-1];break;case"c":Fe=Ce.C,oe.addData(Fe,ze[hn++]+ae,ze[hn++]+ie,ze[hn++]+ae,ze[hn++]+ie,ze[hn++]+ae,ze[hn++]+ie),ae+=ze[hn-2],ie+=ze[hn-1];break;case"S":vn=ae,_n=ie,kn=oe.len(),An=oe.data,_e===Ce.C&&(vn+=ae-An[kn-4],_n+=ie-An[kn-3]),Fe=Ce.C,Tn=ze[hn++],xn=ze[hn++],ae=ze[hn++],ie=ze[hn++],oe.addData(Fe,vn,_n,Tn,xn,ae,ie);break;case"s":vn=ae,_n=ie,kn=oe.len(),An=oe.data,_e===Ce.C&&(vn+=ae-An[kn-4],_n+=ie-An[kn-3]),Fe=Ce.C,Tn=ae+ze[hn++],xn=ie+ze[hn++],ae+=ze[hn++],ie+=ze[hn++],oe.addData(Fe,vn,_n,Tn,xn,ae,ie);break;case"Q":Tn=ze[hn++],xn=ze[hn++],ae=ze[hn++],ie=ze[hn++],Fe=Ce.Q,oe.addData(Fe,Tn,xn,ae,ie);break;case"q":Tn=ze[hn++]+ae,xn=ze[hn++]+ie,ae+=ze[hn++],ie+=ze[hn++],Fe=Ce.Q,oe.addData(Fe,Tn,xn,ae,ie);break;case"T":vn=ae,_n=ie,kn=oe.len(),An=oe.data,_e===Ce.Q&&(vn+=ae-An[kn-4],_n+=ie-An[kn-3]),ae=ze[hn++],ie=ze[hn++],Fe=Ce.Q,oe.addData(Fe,vn,_n,ae,ie);break;case"t":vn=ae,_n=ie,kn=oe.len(),An=oe.data,_e===Ce.Q&&(vn+=ae-An[kn-4],_n+=ie-An[kn-3]),ae+=ze[hn++],ie+=ze[hn++],Fe=Ce.Q,oe.addData(Fe,vn,_n,ae,ie);break;case"A":bn=ze[hn++],Cn=ze[hn++],En=ze[hn++],$n=ze[hn++],wn=ze[hn++],Tn=ae,xn=ie,ae=ze[hn++],ie=ze[hn++],Fe=Ce.A,processArc(Tn,xn,ae,ie,$n,wn,bn,Cn,En,Fe,oe);break;case"a":bn=ze[hn++],Cn=ze[hn++],En=ze[hn++],$n=ze[hn++],wn=ze[hn++],Tn=ae,xn=ie,ae+=ze[hn++],ie+=ze[hn++],Fe=Ce.A,processArc(Tn,xn,ae,ie,$n,wn,bn,Cn,En,Fe,oe);break}}(Ne==="z"||Ne==="Z")&&(Fe=Ce.Z,oe.addData(Fe),ae=le,ie=pe),_e=Fe}return oe.toStatic(),oe}var SVGPath=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.applyTransform=function(ae){},oe}(Path$1);function isPathProxy($){return $.setData!=null}function createPathOptions($,oe){var ae=createPathProxyFromString($),ie=extend({},oe);return ie.buildPath=function(le){if(isPathProxy(le)){le.setData(ae.data);var pe=le.getContext();pe&&le.rebuildPath(pe,1)}else{var pe=le;ae.rebuildPath(pe,1)}},ie.applyTransform=function(le){transformPath(ae,le),this.dirtyShape()},ie}function createFromString($,oe){return new SVGPath(createPathOptions($,oe))}function extendFromString($,oe){var ae=createPathOptions($,oe),ie=function(le){__extends(pe,le);function pe(_e){var Ce=le.call(this,_e)||this;return Ce.applyTransform=ae.applyTransform,Ce.buildPath=ae.buildPath,Ce}return pe}(SVGPath);return ie}function mergePath$1($,oe){for(var ae=[],ie=$.length,le=0;le<ie;le++){var pe=$[le];ae.push(pe.getUpdatedPathProxy(!0))}var _e=new Path$1(oe);return _e.createPathProxy(),_e.buildPath=function(Ce){if(isPathProxy(Ce)){Ce.appendPath(ae);var $e=Ce.getContext();$e&&Ce.rebuildPath($e,1)}},_e}var CircleShape=function(){function $(){this.cx=0,this.cy=0,this.r=0}return $}(),Circle=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new CircleShape},oe.prototype.buildPath=function(ae,ie){ae.moveTo(ie.cx+ie.r,ie.cy),ae.arc(ie.cx,ie.cy,ie.r,0,Math.PI*2)},oe}(Path$1);Circle.prototype.type="circle";const Circle$1=Circle;var EllipseShape=function(){function $(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return $}(),Ellipse=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new EllipseShape},oe.prototype.buildPath=function(ae,ie){var le=.5522848,pe=ie.cx,_e=ie.cy,Ce=ie.rx,$e=ie.ry,xe=Ce*le,Ie=$e*le;ae.moveTo(pe-Ce,_e),ae.bezierCurveTo(pe-Ce,_e-Ie,pe-xe,_e-$e,pe,_e-$e),ae.bezierCurveTo(pe+xe,_e-$e,pe+Ce,_e-Ie,pe+Ce,_e),ae.bezierCurveTo(pe+Ce,_e+Ie,pe+xe,_e+$e,pe,_e+$e),ae.bezierCurveTo(pe-xe,_e+$e,pe-Ce,_e+Ie,pe-Ce,_e),ae.closePath()},oe}(Path$1);Ellipse.prototype.type="ellipse";const Ellipse$1=Ellipse;var PI$2=Math.PI,PI2$1=PI$2*2,mathSin=Math.sin,mathCos=Math.cos,mathACos=Math.acos,mathATan2=Math.atan2,mathAbs=Math.abs,mathSqrt=Math.sqrt,mathMax$5=Math.max,mathMin$5=Math.min,e=1e-4;function intersect($,oe,ae,ie,le,pe,_e,Ce){var $e=ae-$,xe=ie-oe,Ie=_e-le,Ne=Ce-pe,Fe=Ne*$e-Ie*xe;if(!(Fe*Fe<e))return Fe=(Ie*(oe-pe)-Ne*($-le))/Fe,[$+Fe*$e,oe+Fe*xe]}function computeCornerTangents($,oe,ae,ie,le,pe,_e){var Ce=$-ae,$e=oe-ie,xe=(_e?pe:-pe)/mathSqrt(Ce*Ce+$e*$e),Ie=xe*$e,Ne=-xe*Ce,Fe=$+Ie,ze=oe+Ne,At=ae+Ie,Lt=ie+Ne,hn=(Fe+At)/2,vn=(ze+Lt)/2,_n=At-Fe,bn=Lt-ze,Cn=_n*_n+bn*bn,En=le-pe,$n=Fe*Lt-At*ze,wn=(bn<0?-1:1)*mathSqrt(mathMax$5(0,En*En*Cn-$n*$n)),Tn=($n*bn-_n*wn)/Cn,xn=(-$n*_n-bn*wn)/Cn,kn=($n*bn+_n*wn)/Cn,An=(-$n*_n+bn*wn)/Cn,On=Tn-hn,Nn=xn-vn,Rn=kn-hn,zn=An-vn;return On*On+Nn*Nn>Rn*Rn+zn*zn&&(Tn=kn,xn=An),{cx:Tn,cy:xn,x0:-Ie,y0:-Ne,x1:Tn*(le/En-1),y1:xn*(le/En-1)}}function normalizeCornerRadius($){var oe;if(isArray$1($)){var ae=$.length;if(!ae)return $;ae===1?oe=[$[0],$[0],0,0]:ae===2?oe=[$[0],$[0],$[1],$[1]]:ae===3?oe=$.concat($[2]):oe=$}else oe=[$,$,$,$];return oe}function buildPath$1($,oe){var ae,ie=mathMax$5(oe.r,0),le=mathMax$5(oe.r0||0,0),pe=ie>0,_e=le>0;if(!(!pe&&!_e)){if(pe||(ie=le,le=0),le>ie){var Ce=ie;ie=le,le=Ce}var $e=oe.startAngle,xe=oe.endAngle;if(!(isNaN($e)||isNaN(xe))){var Ie=oe.cx,Ne=oe.cy,Fe=!!oe.clockwise,ze=mathAbs(xe-$e),At=ze>PI2$1&&ze%PI2$1;if(At>e&&(ze=At),!(ie>e))$.moveTo(Ie,Ne);else if(ze>PI2$1-e)$.moveTo(Ie+ie*mathCos($e),Ne+ie*mathSin($e)),$.arc(Ie,Ne,ie,$e,xe,!Fe),le>e&&($.moveTo(Ie+le*mathCos(xe),Ne+le*mathSin(xe)),$.arc(Ie,Ne,le,xe,$e,Fe));else{var Lt=void 0,hn=void 0,vn=void 0,_n=void 0,bn=void 0,Cn=void 0,En=void 0,$n=void 0,wn=void 0,Tn=void 0,xn=void 0,kn=void 0,An=void 0,On=void 0,Nn=void 0,Rn=void 0,zn=ie*mathCos($e),Bn=ie*mathSin($e),Mn=le*mathCos(xe),Fn=le*mathSin(xe),Vn=ze>e;if(Vn){var jn=oe.cornerRadius;jn&&(ae=normalizeCornerRadius(jn),Lt=ae[0],hn=ae[1],vn=ae[2],_n=ae[3]);var Zn=mathAbs(ie-le)/2;if(bn=mathMin$5(Zn,vn),Cn=mathMin$5(Zn,_n),En=mathMin$5(Zn,Lt),$n=mathMin$5(Zn,hn),xn=wn=mathMax$5(bn,Cn),kn=Tn=mathMax$5(En,$n),(wn>e||Tn>e)&&(An=ie*mathCos(xe),On=ie*mathSin(xe),Nn=le*mathCos($e),Rn=le*mathSin($e),ze<PI$2)){var Gn=intersect(zn,Bn,Nn,Rn,An,On,Mn,Fn);if(Gn){var Xn=zn-Gn[0],cr=Bn-Gn[1],nr=An-Gn[0],er=On-Gn[1],rr=1/mathSin(mathACos((Xn*nr+cr*er)/(mathSqrt(Xn*Xn+cr*cr)*mathSqrt(nr*nr+er*er)))/2),qn=mathSqrt(Gn[0]*Gn[0]+Gn[1]*Gn[1]);xn=mathMin$5(wn,(ie-qn)/(rr+1)),kn=mathMin$5(Tn,(le-qn)/(rr-1))}}}if(!Vn)$.moveTo(Ie+zn,Ne+Bn);else if(xn>e){var Yn=mathMin$5(vn,xn),ar=mathMin$5(_n,xn),pr=computeCornerTangents(Nn,Rn,zn,Bn,ie,Yn,Fe),Un=computeCornerTangents(An,On,Mn,Fn,ie,ar,Fe);$.moveTo(Ie+pr.cx+pr.x0,Ne+pr.cy+pr.y0),xn<wn&&Yn===ar?$.arc(Ie+pr.cx,Ne+pr.cy,xn,mathATan2(pr.y0,pr.x0),mathATan2(Un.y0,Un.x0),!Fe):(Yn>0&&$.arc(Ie+pr.cx,Ne+pr.cy,Yn,mathATan2(pr.y0,pr.x0),mathATan2(pr.y1,pr.x1),!Fe),$.arc(Ie,Ne,ie,mathATan2(pr.cy+pr.y1,pr.cx+pr.x1),mathATan2(Un.cy+Un.y1,Un.cx+Un.x1),!Fe),ar>0&&$.arc(Ie+Un.cx,Ne+Un.cy,ar,mathATan2(Un.y1,Un.x1),mathATan2(Un.y0,Un.x0),!Fe))}else $.moveTo(Ie+zn,Ne+Bn),$.arc(Ie,Ne,ie,$e,xe,!Fe);if(!(le>e)||!Vn)$.lineTo(Ie+Mn,Ne+Fn);else if(kn>e){var Yn=mathMin$5(Lt,kn),ar=mathMin$5(hn,kn),pr=computeCornerTangents(Mn,Fn,An,On,le,-ar,Fe),Un=computeCornerTangents(zn,Bn,Nn,Rn,le,-Yn,Fe);$.lineTo(Ie+pr.cx+pr.x0,Ne+pr.cy+pr.y0),kn<Tn&&Yn===ar?$.arc(Ie+pr.cx,Ne+pr.cy,kn,mathATan2(pr.y0,pr.x0),mathATan2(Un.y0,Un.x0),!Fe):(ar>0&&$.arc(Ie+pr.cx,Ne+pr.cy,ar,mathATan2(pr.y0,pr.x0),mathATan2(pr.y1,pr.x1),!Fe),$.arc(Ie,Ne,le,mathATan2(pr.cy+pr.y1,pr.cx+pr.x1),mathATan2(Un.cy+Un.y1,Un.cx+Un.x1),Fe),Yn>0&&$.arc(Ie+Un.cx,Ne+Un.cy,Yn,mathATan2(Un.y1,Un.x1),mathATan2(Un.y0,Un.x0),!Fe))}else $.lineTo(Ie+Mn,Ne+Fn),$.arc(Ie,Ne,le,xe,$e,Fe)}$.closePath()}}}var SectorShape=function(){function $(){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 $}(),Sector=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new SectorShape},oe.prototype.buildPath=function(ae,ie){buildPath$1(ae,ie)},oe.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},oe}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function $(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return $}(),Ring=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new RingShape},oe.prototype.buildPath=function(ae,ie){var le=ie.cx,pe=ie.cy,_e=Math.PI*2;ae.moveTo(le+ie.r,pe),ae.arc(le,pe,ie.r,0,_e,!1),ae.moveTo(le+ie.r0,pe),ae.arc(le,pe,ie.r0,0,_e,!0)},oe}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier($,oe,ae,ie){var le=[],pe=[],_e=[],Ce=[],$e,xe,Ie,Ne;if(ie){Ie=[1/0,1/0],Ne=[-1/0,-1/0];for(var Fe=0,ze=$.length;Fe<ze;Fe++)min$1(Ie,Ie,$[Fe]),max$1(Ne,Ne,$[Fe]);min$1(Ie,Ie,ie[0]),max$1(Ne,Ne,ie[1])}for(var Fe=0,ze=$.length;Fe<ze;Fe++){var At=$[Fe];if(ae)$e=$[Fe?Fe-1:ze-1],xe=$[(Fe+1)%ze];else if(Fe===0||Fe===ze-1){le.push(clone$2($[Fe]));continue}else $e=$[Fe-1],xe=$[Fe+1];sub(pe,xe,$e),scale$2(pe,pe,oe);var Lt=distance(At,$e),hn=distance(At,xe),vn=Lt+hn;vn!==0&&(Lt/=vn,hn/=vn),scale$2(_e,pe,-Lt),scale$2(Ce,pe,hn);var _n=add([],At,_e),bn=add([],At,Ce);ie&&(max$1(_n,_n,Ie),min$1(_n,_n,Ne),max$1(bn,bn,Ie),min$1(bn,bn,Ne)),le.push(_n),le.push(bn)}return ae&&le.push(le.shift()),le}function buildPath($,oe,ae){var ie=oe.smooth,le=oe.points;if(le&&le.length>=2){if(ie){var pe=smoothBezier(le,ie,ae,oe.smoothConstraint);$.moveTo(le[0][0],le[0][1]);for(var _e=le.length,Ce=0;Ce<(ae?_e:_e-1);Ce++){var $e=pe[Ce*2],xe=pe[Ce*2+1],Ie=le[(Ce+1)%_e];$.bezierCurveTo($e[0],$e[1],xe[0],xe[1],Ie[0],Ie[1])}}else{$.moveTo(le[0][0],le[0][1]);for(var Ce=1,Ne=le.length;Ce<Ne;Ce++)$.lineTo(le[Ce][0],le[Ce][1])}ae&&$.closePath()}}var PolygonShape=function(){function $(){this.points=null,this.smooth=0,this.smoothConstraint=null}return $}(),Polygon=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultShape=function(){return new PolygonShape},oe.prototype.buildPath=function(ae,ie){buildPath(ae,ie,!0)},oe}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function $(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return $}(),Polyline=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oe.prototype.getDefaultShape=function(){return new PolylineShape},oe.prototype.buildPath=function(ae,ie){buildPath(ae,ie,!1)},oe}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function $(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return $}(),Line=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oe.prototype.getDefaultShape=function(){return new LineShape},oe.prototype.buildPath=function(ae,ie){var le,pe,_e,Ce;if(this.subPixelOptimize){var $e=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,ie,this.style);le=$e.x1,pe=$e.y1,_e=$e.x2,Ce=$e.y2}else le=ie.x1,pe=ie.y1,_e=ie.x2,Ce=ie.y2;var xe=ie.percent;xe!==0&&(ae.moveTo(le,pe),xe<1&&(_e=le*(1-xe)+_e*xe,Ce=pe*(1-xe)+Ce*xe),ae.lineTo(_e,Ce))},oe.prototype.pointAt=function(ae){var ie=this.shape;return[ie.x1*(1-ae)+ie.x2*ae,ie.y1*(1-ae)+ie.y2*ae]},oe}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function $(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return $}();function someVectorAt($,oe,ae){var ie=$.cpx2,le=$.cpy2;return ie!=null||le!=null?[(ae?cubicDerivativeAt:cubicAt)($.x1,$.cpx1,$.cpx2,$.x2,oe),(ae?cubicDerivativeAt:cubicAt)($.y1,$.cpy1,$.cpy2,$.y2,oe)]:[(ae?quadraticDerivativeAt:quadraticAt)($.x1,$.cpx1,$.x2,oe),(ae?quadraticDerivativeAt:quadraticAt)($.y1,$.cpy1,$.y2,oe)]}var BezierCurve=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oe.prototype.getDefaultShape=function(){return new BezierCurveShape},oe.prototype.buildPath=function(ae,ie){var le=ie.x1,pe=ie.y1,_e=ie.x2,Ce=ie.y2,$e=ie.cpx1,xe=ie.cpy1,Ie=ie.cpx2,Ne=ie.cpy2,Fe=ie.percent;Fe!==0&&(ae.moveTo(le,pe),Ie==null||Ne==null?(Fe<1&&(quadraticSubdivide(le,$e,_e,Fe,out),$e=out[1],_e=out[2],quadraticSubdivide(pe,xe,Ce,Fe,out),xe=out[1],Ce=out[2]),ae.quadraticCurveTo($e,xe,_e,Ce)):(Fe<1&&(cubicSubdivide(le,$e,Ie,_e,Fe,out),$e=out[1],Ie=out[2],_e=out[3],cubicSubdivide(pe,xe,Ne,Ce,Fe,out),xe=out[1],Ne=out[2],Ce=out[3]),ae.bezierCurveTo($e,xe,Ie,Ne,_e,Ce)))},oe.prototype.pointAt=function(ae){return someVectorAt(this.shape,ae,!1)},oe.prototype.tangentAt=function(ae){var ie=someVectorAt(this.shape,ae,!0);return normalize$1(ie,ie)},oe}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function $(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return $}(),Arc=function($){__extends(oe,$);function oe(ae){return $.call(this,ae)||this}return oe.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oe.prototype.getDefaultShape=function(){return new ArcShape},oe.prototype.buildPath=function(ae,ie){var le=ie.cx,pe=ie.cy,_e=Math.max(ie.r,0),Ce=ie.startAngle,$e=ie.endAngle,xe=ie.clockwise,Ie=Math.cos(Ce),Ne=Math.sin(Ce);ae.moveTo(Ie*_e+le,Ne*_e+pe),ae.arc(le,pe,_e,Ce,$e,!xe)},oe}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="compound",ae}return oe.prototype._updatePathDirty=function(){for(var ae=this.shape.paths,ie=this.shapeChanged(),le=0;le<ae.length;le++)ie=ie||ae[le].shapeChanged();ie&&this.dirtyShape()},oe.prototype.beforeBrush=function(){this._updatePathDirty();for(var ae=this.shape.paths||[],ie=this.getGlobalScale(),le=0;le<ae.length;le++)ae[le].path||ae[le].createPathProxy(),ae[le].path.setScale(ie[0],ie[1],ae[le].segmentIgnoreThreshold)},oe.prototype.buildPath=function(ae,ie){for(var le=ie.paths||[],pe=0;pe<le.length;pe++)le[pe].buildPath(ae,le[pe].shape,!0)},oe.prototype.afterBrush=function(){for(var ae=this.shape.paths||[],ie=0;ie<ae.length;ie++)ae[ie].pathUpdated()},oe.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Path$1.prototype.getBoundingRect.call(this)},oe}(Path$1);const CompoundPath$1=CompoundPath;var Gradient=function(){function $(oe){this.colorStops=oe||[]}return $.prototype.addColorStop=function(oe,ae){this.colorStops.push({offset:oe,color:ae})},$}();const Gradient$1=Gradient;var LinearGradient=function($){__extends(oe,$);function oe(ae,ie,le,pe,_e,Ce){var $e=$.call(this,_e)||this;return $e.x=ae??0,$e.y=ie??0,$e.x2=le??1,$e.y2=pe??0,$e.type="linear",$e.global=Ce||!1,$e}return oe}(Gradient$1);const LinearGradient$1=LinearGradient;var RadialGradient=function($){__extends(oe,$);function oe(ae,ie,le,pe,_e){var Ce=$.call(this,pe)||this;return Ce.x=ae??.5,Ce.y=ie??.5,Ce.r=le??.5,Ce.type="radial",Ce.global=_e||!1,Ce}return oe}(Gradient$1);const RadialGradient$1=RadialGradient;var extent=[0,0],extent2=[0,0],minTv=new Point$1,maxTv=new Point$1,OrientedBoundingRect=function(){function $(oe,ae){this._corners=[],this._axes=[],this._origin=[0,0];for(var ie=0;ie<4;ie++)this._corners[ie]=new Point$1;for(var ie=0;ie<2;ie++)this._axes[ie]=new Point$1;oe&&this.fromBoundingRect(oe,ae)}return $.prototype.fromBoundingRect=function(oe,ae){var ie=this._corners,le=this._axes,pe=oe.x,_e=oe.y,Ce=pe+oe.width,$e=_e+oe.height;if(ie[0].set(pe,_e),ie[1].set(Ce,_e),ie[2].set(Ce,$e),ie[3].set(pe,$e),ae)for(var xe=0;xe<4;xe++)ie[xe].transform(ae);Point$1.sub(le[0],ie[1],ie[0]),Point$1.sub(le[1],ie[3],ie[0]),le[0].normalize(),le[1].normalize();for(var xe=0;xe<2;xe++)this._origin[xe]=le[xe].dot(ie[0])},$.prototype.intersect=function(oe,ae){var ie=!0,le=!ae;return minTv.set(1/0,1/0),maxTv.set(0,0),!this._intersectCheckOneSide(this,oe,minTv,maxTv,le,1)&&(ie=!1,le)||!this._intersectCheckOneSide(oe,this,minTv,maxTv,le,-1)&&(ie=!1,le)||le||Point$1.copy(ae,ie?minTv:maxTv),ie},$.prototype._intersectCheckOneSide=function(oe,ae,ie,le,pe,_e){for(var Ce=!0,$e=0;$e<2;$e++){var xe=this._axes[$e];if(this._getProjMinMaxOnAxis($e,oe._corners,extent),this._getProjMinMaxOnAxis($e,ae._corners,extent2),extent[1]<extent2[0]||extent[0]>extent2[1]){if(Ce=!1,pe)return Ce;var Ie=Math.abs(extent2[0]-extent[1]),Ne=Math.abs(extent[0]-extent2[1]);Math.min(Ie,Ne)>le.len()&&(Ie<Ne?Point$1.scale(le,xe,-Ie*_e):Point$1.scale(le,xe,Ne*_e))}else if(ie){var Ie=Math.abs(extent2[0]-extent[1]),Ne=Math.abs(extent[0]-extent2[1]);Math.min(Ie,Ne)<ie.len()&&(Ie<Ne?Point$1.scale(ie,xe,Ie*_e):Point$1.scale(ie,xe,-Ne*_e))}}return Ce},$.prototype._getProjMinMaxOnAxis=function(oe,ae,ie){for(var le=this._axes[oe],pe=this._origin,_e=ae[0].dot(le)+pe[oe],Ce=_e,$e=_e,xe=1;xe<ae.length;xe++){var Ie=ae[xe].dot(le)+pe[oe];Ce=Math.min(Ie,Ce),$e=Math.max(Ie,$e)}ie[0]=Ce,ie[1]=$e},$}();const OrientedBoundingRect$1=OrientedBoundingRect;var m$2=[],IncrementalDisplayable=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.notClear=!0,ae.incremental=!0,ae._displayables=[],ae._temporaryDisplayables=[],ae._cursor=0,ae}return oe.prototype.traverse=function(ae,ie){ae.call(ie,this)},oe.prototype.useStyle=function(){this.style={}},oe.prototype.getCursor=function(){return this._cursor},oe.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},oe.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},oe.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},oe.prototype.addDisplayable=function(ae,ie){ie?this._temporaryDisplayables.push(ae):this._displayables.push(ae),this.markRedraw()},oe.prototype.addDisplayables=function(ae,ie){ie=ie||!1;for(var le=0;le<ae.length;le++)this.addDisplayable(ae[le],ie)},oe.prototype.getDisplayables=function(){return this._displayables},oe.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},oe.prototype.eachPendingDisplayable=function(ae){for(var ie=this._cursor;ie<this._displayables.length;ie++)ae&&ae(this._displayables[ie]);for(var ie=0;ie<this._temporaryDisplayables.length;ie++)ae&&ae(this._temporaryDisplayables[ie])},oe.prototype.update=function(){this.updateTransform();for(var ae=this._cursor;ae<this._displayables.length;ae++){var ie=this._displayables[ae];ie.parent=this,ie.update(),ie.parent=null}for(var ae=0;ae<this._temporaryDisplayables.length;ae++){var ie=this._temporaryDisplayables[ae];ie.parent=this,ie.update(),ie.parent=null}},oe.prototype.getBoundingRect=function(){if(!this._rect){for(var ae=new BoundingRect$1(1/0,1/0,-1/0,-1/0),ie=0;ie<this._displayables.length;ie++){var le=this._displayables[ie],pe=le.getBoundingRect().clone();le.needLocalTransform()&&pe.applyTransform(le.getLocalTransform(m$2)),ae.union(pe)}this._rect=ae}return this._rect},oe.prototype.contain=function(ae,ie){var le=this.transformCoordToLocal(ae,ie),pe=this.getBoundingRect();if(pe.contain(le[0],le[1]))for(var _e=0;_e<this._displayables.length;_e++){var Ce=this._displayables[_e];if(Ce.contain(ae,ie))return!0}return!1},oe}(Displayable$1);const IncrementalDisplayable$1=IncrementalDisplayable;var transitionStore=makeInner();function getAnimationConfig($,oe,ae,ie,le){var pe;if(oe&&oe.ecModel){var _e=oe.ecModel.getUpdatePayload();pe=_e&&_e.animation}var Ce=oe&&oe.isAnimationEnabled(),$e=$==="update";if(Ce){var xe=void 0,Ie=void 0,Ne=void 0;ie?(xe=retrieve2(ie.duration,200),Ie=retrieve2(ie.easing,"cubicOut"),Ne=0):(xe=oe.getShallow($e?"animationDurationUpdate":"animationDuration"),Ie=oe.getShallow($e?"animationEasingUpdate":"animationEasing"),Ne=oe.getShallow($e?"animationDelayUpdate":"animationDelay")),pe&&(pe.duration!=null&&(xe=pe.duration),pe.easing!=null&&(Ie=pe.easing),pe.delay!=null&&(Ne=pe.delay)),isFunction(Ne)&&(Ne=Ne(ae,le)),isFunction(xe)&&(xe=xe(ae));var Fe={duration:xe||0,delay:Ne,easing:Ie};return Fe}else return null}function animateOrSetProps($,oe,ae,ie,le,pe,_e){var Ce=!1,$e;isFunction(le)?(_e=pe,pe=le,le=null):isObject$3(le)&&(pe=le.cb,_e=le.during,Ce=le.isFrom,$e=le.removeOpt,le=le.dataIndex);var xe=$==="leave";xe||oe.stopAnimation("leave");var Ie=getAnimationConfig($,ie,le,xe?$e||{}:null,ie&&ie.getAnimationDelayParams?ie.getAnimationDelayParams(oe,le):null);if(Ie&&Ie.duration>0){var Ne=Ie.duration,Fe=Ie.delay,ze=Ie.easing,At={duration:Ne,delay:Fe||0,easing:ze,done:pe,force:!!pe||!!_e,setToFinal:!xe,scope:$,during:_e};Ce?oe.animateFrom(ae,At):oe.animateTo(ae,At)}else oe.stopAnimation(),!Ce&&oe.attr(ae),_e&&_e(1),pe&&pe()}function updateProps$1($,oe,ae,ie,le,pe){animateOrSetProps("update",$,oe,ae,ie,le,pe)}function initProps($,oe,ae,ie,le,pe){animateOrSetProps("enter",$,oe,ae,ie,le,pe)}function isElementRemoved($){if(!$.__zr)return!0;for(var oe=0;oe<$.animators.length;oe++){var ae=$.animators[oe];if(ae.scope==="leave")return!0}return!1}function removeElement($,oe,ae,ie,le,pe){isElementRemoved($)||animateOrSetProps("leave",$,oe,ae,ie,le,pe)}function fadeOutDisplayable($,oe,ae,ie){$.removeTextContent(),$.removeTextGuideLine(),removeElement($,{style:{opacity:0}},oe,ae,ie)}function removeElementWithFadeOut($,oe,ae){function ie(){$.parent&&$.parent.remove($)}$.isGroup?$.traverse(function(le){le.isGroup||fadeOutDisplayable(le,oe,ae,ie)}):fadeOutDisplayable($,oe,ae,ie)}function saveOldStyle($){transitionStore($).oldStyle=$.style}var mathMax$4=Math.max,mathMin$4=Math.min,_customShapeMap={};function extendShape($){return Path$1.extend($)}var extendPathFromString=extendFromString;function extendPath($,oe){return extendPathFromString($,oe)}function registerShape($,oe){_customShapeMap[$]=oe}function getShapeClass($){if(_customShapeMap.hasOwnProperty($))return _customShapeMap[$]}function makePath($,oe,ae,ie){var le=createFromString($,oe);return ae&&(ie==="center"&&(ae=centerGraphic(ae,le.getBoundingRect())),resizePath(le,ae)),le}function makeImage($,oe,ae){var ie=new ZRImage$1({style:{image:$,x:oe.x,y:oe.y,width:oe.width,height:oe.height},onload:function(le){if(ae==="center"){var pe={width:le.width,height:le.height};ie.setStyle(centerGraphic(oe,pe))}}});return ie}function centerGraphic($,oe){var ae=oe.width/oe.height,ie=$.height*ae,le;ie<=$.width?le=$.height:(ie=$.width,le=ie/ae);var pe=$.x+$.width/2,_e=$.y+$.height/2;return{x:pe-ie/2,y:_e-le/2,width:ie,height:le}}var mergePath=mergePath$1;function resizePath($,oe){if($.applyTransform){var ae=$.getBoundingRect(),ie=ae.calculateTransform(oe);$.applyTransform(ie)}}function subPixelOptimizeLine($,oe){return subPixelOptimizeLine$1($,$,{lineWidth:oe}),$}function subPixelOptimizeRect($){return subPixelOptimizeRect$1($.shape,$.shape,$.style),$}var subPixelOptimize=subPixelOptimize$1;function getTransform$1($,oe){for(var ae=identity([]);$&&$!==oe;)mul(ae,$.getLocalTransform(),ae),$=$.parent;return ae}function applyTransform($,oe,ae){return oe&&!isArrayLike(oe)&&(oe=Transformable$1.getLocalTransform(oe)),ae&&(oe=invert([],oe)),applyTransform$1([],$,oe)}function transformDirection($,oe,ae){var ie=oe[4]===0||oe[5]===0||oe[0]===0?1:Math.abs(2*oe[4]/oe[0]),le=oe[4]===0||oe[5]===0||oe[2]===0?1:Math.abs(2*oe[4]/oe[2]),pe=[$==="left"?-ie:$==="right"?ie:0,$==="top"?-le:$==="bottom"?le:0];return pe=applyTransform(pe,oe,ae),Math.abs(pe[0])>Math.abs(pe[1])?pe[0]>0?"right":"left":pe[1]>0?"bottom":"top"}function isNotGroup($){return!$.isGroup}function isPath($){return $.shape!=null}function groupTransition($,oe,ae){if(!$||!oe)return;function ie(_e){var Ce={};return _e.traverse(function($e){isNotGroup($e)&&$e.anid&&(Ce[$e.anid]=$e)}),Ce}function le(_e){var Ce={x:_e.x,y:_e.y,rotation:_e.rotation};return isPath(_e)&&(Ce.shape=extend({},_e.shape)),Ce}var pe=ie($);oe.traverse(function(_e){if(isNotGroup(_e)&&_e.anid){var Ce=pe[_e.anid];if(Ce){var $e=le(_e);_e.attr(le(Ce)),updateProps$1(_e,$e,ae,getECData(_e).dataIndex)}}})}function clipPointsByRect($,oe){return map$2($,function(ae){var ie=ae[0];ie=mathMax$4(ie,oe.x),ie=mathMin$4(ie,oe.x+oe.width);var le=ae[1];return le=mathMax$4(le,oe.y),le=mathMin$4(le,oe.y+oe.height),[ie,le]})}function clipRectByRect($,oe){var ae=mathMax$4($.x,oe.x),ie=mathMin$4($.x+$.width,oe.x+oe.width),le=mathMax$4($.y,oe.y),pe=mathMin$4($.y+$.height,oe.y+oe.height);if(ie>=ae&&pe>=le)return{x:ae,y:le,width:ie-ae,height:pe-le}}function createIcon($,oe,ae){var ie=extend({rectHover:!0},oe),le=ie.style={strokeNoScale:!0};if(ae=ae||{x:-1,y:-1,width:2,height:2},$)return $.indexOf("image://")===0?(le.image=$.slice(8),defaults(le,ae),new ZRImage$1(ie)):makePath($.replace("path://",""),ie,ae,"center")}function linePolygonIntersect($,oe,ae,ie,le){for(var pe=0,_e=le[le.length-1];pe<le.length;pe++){var Ce=le[pe];if(lineLineIntersect($,oe,ae,ie,Ce[0],Ce[1],_e[0],_e[1]))return!0;_e=Ce}}function lineLineIntersect($,oe,ae,ie,le,pe,_e,Ce){var $e=ae-$,xe=ie-oe,Ie=_e-le,Ne=Ce-pe,Fe=crossProduct2d(Ie,Ne,$e,xe);if(nearZero(Fe))return!1;var ze=$-le,At=oe-pe,Lt=crossProduct2d(ze,At,$e,xe)/Fe;if(Lt<0||Lt>1)return!1;var hn=crossProduct2d(ze,At,Ie,Ne)/Fe;return!(hn<0||hn>1)}function crossProduct2d($,oe,ae,ie){return $*ie-ae*oe}function nearZero($){return $<=1e-6&&$>=-1e-6}function setTooltipConfig($){var oe=$.itemTooltipOption,ae=$.componentModel,ie=$.itemName,le=isString(oe)?{formatter:oe}:oe,pe=ae.mainType,_e=ae.componentIndex,Ce={componentType:pe,name:ie,$vars:["name"]};Ce[pe+"Index"]=_e;var $e=$.formatterParamsExtra;$e&&each$c(keys($e),function(Ie){hasOwn(Ce,Ie)||(Ce[Ie]=$e[Ie],Ce.$vars.push(Ie))});var xe=getECData($.el);xe.componentMainType=pe,xe.componentIndex=_e,xe.tooltipConfig={name:ie,option:defaults({content:ie,formatterParams:Ce},le)}}function traverseElement($,oe){var ae;$.isGroup&&(ae=oe($)),ae||$.traverse(oe)}function traverseElements($,oe){if($)if(isArray$1($))for(var ae=0;ae<$.length;ae++)traverseElement($[ae],oe);else traverseElement($,oe)}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$2);registerShape("line",Line$1);registerShape("bezierCurve",BezierCurve$1);registerShape("arc",Arc$1);const graphic$1=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,OrientedBoundingRect:OrientedBoundingRect$1,Path:Path$1,Point:Point$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,applyTransform,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,groupTransition,initProps,isElementRemoved,lineLineIntersect,linePolygonIntersect,makeImage,makePath,mergePath,registerShape,removeElement,removeElementWithFadeOut,resizePath,setTooltipConfig,subPixelOptimize,subPixelOptimizeLine,subPixelOptimizeRect,transformDirection,traverseElements,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"}));var EMPTY_OBJ={};function setLabelText($,oe){for(var ae=0;ae<SPECIAL_STATES.length;ae++){var ie=SPECIAL_STATES[ae],le=oe[ie],pe=$.ensureState(ie);pe.style=pe.style||{},pe.style.text=le}var _e=$.currentStates.slice();$.clearStates(!0),$.setStyle({text:oe.normal}),$.useStates(_e,!0)}function getLabelText($,oe,ae){var ie=$.labelFetcher,le=$.labelDataIndex,pe=$.labelDimIndex,_e=oe.normal,Ce;ie&&(Ce=ie.getFormattedLabel(le,"normal",null,pe,_e&&_e.get("formatter"),ae!=null?{interpolatedValue:ae}:null)),Ce==null&&(Ce=isFunction($.defaultText)?$.defaultText(le,$,ae):$.defaultText);for(var $e={normal:Ce},xe=0;xe<SPECIAL_STATES.length;xe++){var Ie=SPECIAL_STATES[xe],Ne=oe[Ie];$e[Ie]=retrieve2(ie?ie.getFormattedLabel(le,Ie,null,pe,Ne&&Ne.get("formatter")):null,Ce)}return $e}function setLabelStyle($,oe,ae,ie){ae=ae||EMPTY_OBJ;for(var le=$ instanceof ZRText$1,pe=!1,_e=0;_e<DISPLAY_STATES.length;_e++){var Ce=oe[DISPLAY_STATES[_e]];if(Ce&&Ce.getShallow("show")){pe=!0;break}}var $e=le?$:$.getTextContent();if(pe){le||($e||($e=new ZRText$1,$.setTextContent($e)),$.stateProxy&&($e.stateProxy=$.stateProxy));var xe=getLabelText(ae,oe),Ie=oe.normal,Ne=!!Ie.getShallow("show"),Fe=createTextStyle$1(Ie,ie&&ie.normal,ae,!1,!le);Fe.text=xe.normal,le||$.setTextConfig(createTextConfig(Ie,ae,!1));for(var _e=0;_e<SPECIAL_STATES.length;_e++){var ze=SPECIAL_STATES[_e],Ce=oe[ze];if(Ce){var At=$e.ensureState(ze),Lt=!!retrieve2(Ce.getShallow("show"),Ne);if(Lt!==Ne&&(At.ignore=!Lt),At.style=createTextStyle$1(Ce,ie&&ie[ze],ae,!0,!le),At.style.text=xe[ze],!le){var hn=$.ensureState(ze);hn.textConfig=createTextConfig(Ce,ae,!0)}}}$e.silent=!!Ie.getShallow("silent"),$e.style.x!=null&&(Fe.x=$e.style.x),$e.style.y!=null&&(Fe.y=$e.style.y),$e.ignore=!Ne,$e.useStyle(Fe),$e.dirty(),ae.enableTextSetter&&(labelInner($e).setLabelText=function(vn){var _n=getLabelText(ae,oe,vn);setLabelText($e,_n)})}else $e&&($e.ignore=!0);$.dirty()}function getLabelStatesModels($,oe){oe=oe||"label";for(var ae={normal:$.getModel(oe)},ie=0;ie<SPECIAL_STATES.length;ie++){var le=SPECIAL_STATES[ie];ae[le]=$.getModel([le,oe])}return ae}function createTextStyle$1($,oe,ae,ie,le){var pe={};return setTextStyleCommon(pe,$,ae,ie,le),oe&&extend(pe,oe),pe}function createTextConfig($,oe,ae){oe=oe||{};var ie={},le,pe=$.getShallow("rotate"),_e=retrieve2($.getShallow("distance"),ae?null:5),Ce=$.getShallow("offset");return le=$.getShallow("position")||(ae?null:"inside"),le==="outside"&&(le=oe.defaultOutsidePosition||"top"),le!=null&&(ie.position=le),Ce!=null&&(ie.offset=Ce),pe!=null&&(pe*=Math.PI/180,ie.rotation=pe),_e!=null&&(ie.distance=_e),ie.outsideFill=$.get("color")==="inherit"?oe.inheritColor||null:"auto",ie}function setTextStyleCommon($,oe,ae,ie,le){ae=ae||EMPTY_OBJ;var pe=oe.ecModel,_e=pe&&pe.option.textStyle,Ce=getRichItemNames(oe),$e;if(Ce){$e={};for(var xe in Ce)if(Ce.hasOwnProperty(xe)){var Ie=oe.getModel(["rich",xe]);setTokenTextStyle($e[xe]={},Ie,_e,ae,ie,le,!1,!0)}}$e&&($.rich=$e);var Ne=oe.get("overflow");Ne&&($.overflow=Ne);var Fe=oe.get("minMargin");Fe!=null&&($.margin=Fe),setTokenTextStyle($,oe,_e,ae,ie,le,!0,!1)}function getRichItemNames($){for(var oe;$&&$!==$.ecModel;){var ae=($.option||EMPTY_OBJ).rich;if(ae){oe=oe||{};for(var ie=keys(ae),le=0;le<ie.length;le++){var pe=ie[le];oe[pe]=1}}$=$.parentModel}return oe}var TEXT_PROPS_WITH_GLOBAL=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],TEXT_PROPS_SELF=["align","lineHeight","width","height","tag","verticalAlign"],TEXT_PROPS_BOX=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function setTokenTextStyle($,oe,ae,ie,le,pe,_e,Ce){ae=!le&&ae||EMPTY_OBJ;var $e=ie&&ie.inheritColor,xe=oe.getShallow("color"),Ie=oe.getShallow("textBorderColor"),Ne=retrieve2(oe.getShallow("opacity"),ae.opacity);(xe==="inherit"||xe==="auto")&&($e?xe=$e:xe=null),(Ie==="inherit"||Ie==="auto")&&($e?Ie=$e:Ie=null),pe||(xe=xe||ae.color,Ie=Ie||ae.textBorderColor),xe!=null&&($.fill=xe),Ie!=null&&($.stroke=Ie);var Fe=retrieve2(oe.getShallow("textBorderWidth"),ae.textBorderWidth);Fe!=null&&($.lineWidth=Fe);var ze=retrieve2(oe.getShallow("textBorderType"),ae.textBorderType);ze!=null&&($.lineDash=ze);var At=retrieve2(oe.getShallow("textBorderDashOffset"),ae.textBorderDashOffset);At!=null&&($.lineDashOffset=At),!le&&Ne==null&&!Ce&&(Ne=ie&&ie.defaultOpacity),Ne!=null&&($.opacity=Ne),!le&&!pe&&$.fill==null&&ie.inheritColor&&($.fill=ie.inheritColor);for(var Lt=0;Lt<TEXT_PROPS_WITH_GLOBAL.length;Lt++){var hn=TEXT_PROPS_WITH_GLOBAL[Lt],vn=retrieve2(oe.getShallow(hn),ae[hn]);vn!=null&&($[hn]=vn)}for(var Lt=0;Lt<TEXT_PROPS_SELF.length;Lt++){var hn=TEXT_PROPS_SELF[Lt],vn=oe.getShallow(hn);vn!=null&&($[hn]=vn)}if($.verticalAlign==null){var _n=oe.getShallow("baseline");_n!=null&&($.verticalAlign=_n)}if(!_e||!ie.disableBox){for(var Lt=0;Lt<TEXT_PROPS_BOX.length;Lt++){var hn=TEXT_PROPS_BOX[Lt],vn=oe.getShallow(hn);vn!=null&&($[hn]=vn)}var bn=oe.getShallow("borderType");bn!=null&&($.borderDash=bn),($.backgroundColor==="auto"||$.backgroundColor==="inherit")&&$e&&($.backgroundColor=$e),($.borderColor==="auto"||$.borderColor==="inherit")&&$e&&($.borderColor=$e)}}function getFont($,oe){var ae=oe&&oe.getModel("textStyle");return trim$1([$.fontStyle||ae&&ae.getShallow("fontStyle")||"",$.fontWeight||ae&&ae.getShallow("fontWeight")||"",($.fontSize||ae&&ae.getShallow("fontSize")||12)+"px",$.fontFamily||ae&&ae.getShallow("fontFamily")||"sans-serif"].join(" "))}var labelInner=makeInner();function setLabelValueAnimation($,oe,ae,ie){if($){var le=labelInner($);le.prevValue=le.value,le.value=ae;var pe=oe.normal;le.valueAnimation=pe.get("valueAnimation"),le.valueAnimation&&(le.precision=pe.get("precision"),le.defaultInterpolatedText=ie,le.statesModels=oe)}}var PATH_COLOR=["textStyle","color"],textStyleParams=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tmpText=new ZRText$1,TextStyleMixin=function(){function $(){}return $.prototype.getTextColor=function(oe){var ae=this.ecModel;return this.getShallow("color")||(!oe&&ae?ae.get(PATH_COLOR):null)},$.prototype.getFont=function(){return getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},$.prototype.getTextRect=function(oe){for(var ae={text:oe,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},ie=0;ie<textStyleParams.length;ie++)ae[textStyleParams[ie]]=this.getShallow(textStyleParams[ie]);return tmpText.useStyle(ae),tmpText.update(),tmpText.getBoundingRect()},$}();const TextStyleMixin$1=TextStyleMixin;var 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 $(){}return $.prototype.getLineStyle=function(oe){return getLineStyle(this,oe)},$}(),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 $(){}return $.prototype.getItemStyle=function(oe,ae){return getItemStyle(this,oe,ae)},$}(),Model=function(){function $(oe,ae,ie){this.parentModel=ae,this.ecModel=ie,this.option=oe}return $.prototype.init=function(oe,ae,ie){},$.prototype.mergeOption=function(oe,ae){merge(this.option,oe,!0)},$.prototype.get=function(oe,ae){return oe==null?this.option:this._doGet(this.parsePath(oe),!ae&&this.parentModel)},$.prototype.getShallow=function(oe,ae){var ie=this.option,le=ie==null?ie:ie[oe];if(le==null&&!ae){var pe=this.parentModel;pe&&(le=pe.getShallow(oe))}return le},$.prototype.getModel=function(oe,ae){var ie=oe!=null,le=ie?this.parsePath(oe):null,pe=ie?this._doGet(le):this.option;return ae=ae||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(le)),new $(pe,ae,this.ecModel)},$.prototype.isEmpty=function(){return this.option==null},$.prototype.restoreData=function(){},$.prototype.clone=function(){var oe=this.constructor;return new oe(clone$3(this.option))},$.prototype.parsePath=function(oe){return typeof oe=="string"?oe.split("."):oe},$.prototype.resolveParentPath=function(oe){return oe},$.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()}},$.prototype._doGet=function(oe,ae){var ie=this.option;if(!oe)return ie;for(var le=0;le<oe.length&&!(oe[le]&&(ie=ie&&typeof ie=="object"?ie[oe[le]]:null,ie==null));le++);return ie==null&&ae&&(ie=ae._doGet(this.resolveParentPath(oe),ae.parentModel)),ie},$}();enableClassExtend(Model);enableClassCheck(Model);mixin(Model,LineStyleMixin);mixin(Model,ItemStyleMixin);mixin(Model,AreaStyleMixin);mixin(Model,TextStyleMixin$1);const Model$1=Model;var base=Math.round(Math.random()*10);function getUID($){return[$||"",base++].join("_")}function enableSubTypeDefaulter($){var oe={};$.registerSubTypeDefaulter=function(ae,ie){var le=parseClassType(ae);oe[le.main]=ie},$.determineSubType=function(ae,ie){var le=ie.type;if(!le){var pe=parseClassType(ae).main;$.hasSubTypes(ae)&&oe[pe]&&(le=oe[pe](ie))}return le}}function enableTopologicalTravel($,oe){$.topologicalTravel=function(pe,_e,Ce,$e){if(!pe.length)return;var xe=ae(_e),Ie=xe.graph,Ne=xe.noEntryList,Fe={};for(each$c(pe,function(_n){Fe[_n]=!0});Ne.length;){var ze=Ne.pop(),At=Ie[ze],Lt=!!Fe[ze];Lt&&(Ce.call($e,ze,At.originalDeps.slice()),delete Fe[ze]),each$c(At.successor,Lt?vn:hn)}each$c(Fe,function(){var _n="";throw new Error(_n)});function hn(_n){Ie[_n].entryCount--,Ie[_n].entryCount===0&&Ne.push(_n)}function vn(_n){Fe[_n]=!0,hn(_n)}};function ae(pe){var _e={},Ce=[];return each$c(pe,function($e){var xe=ie(_e,$e),Ie=xe.originalDeps=oe($e),Ne=le(Ie,pe);xe.entryCount=Ne.length,xe.entryCount===0&&Ce.push($e),each$c(Ne,function(Fe){indexOf(xe.predecessor,Fe)<0&&xe.predecessor.push(Fe);var ze=ie(_e,Fe);indexOf(ze.successor,Fe)<0&&ze.successor.push($e)})}),{graph:_e,noEntryList:Ce}}function ie(pe,_e){return pe[_e]||(pe[_e]={predecessor:[],successor:[]}),pe[_e]}function le(pe,_e){var Ce=[];return each$c(pe,function($e){indexOf(_e,$e)>=0&&Ce.push($e)}),Ce}}function inheritDefaultOption($,oe){return merge(merge({},$,!0),oe,!0)}const langEN={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},langZH={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType}",withoutName:"第{seriesId}个系列是一个{seriesType}",separator:{middle:"",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:"",end:""}}}};var LOCALE_ZH="ZH",LOCALE_EN="EN",DEFAULT_LOCALE=LOCALE_EN,localeStorage={},localeModels={},SYSTEM_LANG=env$1.domSupported?function(){var $=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return $.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale($,oe){$=$.toUpperCase(),localeModels[$]=new Model$1(oe),localeStorage[$]=oe}function createLocaleObject($){if(isString($)){var oe=localeStorage[$.toUpperCase()]||{};return $===LOCALE_ZH||$===LOCALE_EN?clone$3(oe):merge(clone$3(oe),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3($),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel($){return localeModels[$]}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($,oe){return $+="","0000".substr(0,oe-$.length)+$}function getPrimaryTimeUnit($){switch($){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return $}}function isPrimaryTimeUnit($){return $===getPrimaryTimeUnit($)}function getDefaultFormatPrecisionOfInterval($){switch($){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1($,oe,ae,ie){var le=parseDate($),pe=le[fullYearGetterName(ae)](),_e=le[monthGetterName(ae)]()+1,Ce=Math.floor((_e-1)/3)+1,$e=le[dateGetterName(ae)](),xe=le["get"+(ae?"UTC":"")+"Day"](),Ie=le[hoursGetterName(ae)](),Ne=(Ie-1)%12+1,Fe=le[minutesGetterName(ae)](),ze=le[secondsGetterName(ae)](),At=le[millisecondsGetterName(ae)](),Lt=ie instanceof Model$1?ie:getLocaleModel(ie||SYSTEM_LANG)||getDefaultLocaleModel(),hn=Lt.getModel("time"),vn=hn.get("month"),_n=hn.get("monthAbbr"),bn=hn.get("dayOfWeek"),Cn=hn.get("dayOfWeekAbbr");return(oe||"").replace(/{yyyy}/g,pe+"").replace(/{yy}/g,pe%100+"").replace(/{Q}/g,Ce+"").replace(/{MMMM}/g,vn[_e-1]).replace(/{MMM}/g,_n[_e-1]).replace(/{MM}/g,pad(_e,2)).replace(/{M}/g,_e+"").replace(/{dd}/g,pad($e,2)).replace(/{d}/g,$e+"").replace(/{eeee}/g,bn[xe]).replace(/{ee}/g,Cn[xe]).replace(/{e}/g,xe+"").replace(/{HH}/g,pad(Ie,2)).replace(/{H}/g,Ie+"").replace(/{hh}/g,pad(Ne+"",2)).replace(/{h}/g,Ne+"").replace(/{mm}/g,pad(Fe,2)).replace(/{m}/g,Fe+"").replace(/{ss}/g,pad(ze,2)).replace(/{s}/g,ze+"").replace(/{SSS}/g,pad(At,3)).replace(/{S}/g,At+"")}function leveledFormat($,oe,ae,ie,le){var pe=null;if(isString(ae))pe=ae;else if(isFunction(ae))pe=ae($.value,oe,{level:$.level});else{var _e=extend({},defaultLeveledFormatter);if($.level>0)for(var Ce=0;Ce<primaryTimeUnits.length;++Ce)_e[primaryTimeUnits[Ce]]="{primary|"+_e[primaryTimeUnits[Ce]]+"}";var $e=ae?ae.inherit===!1?ae:defaults(ae,_e):_e,xe=getUnitFromValue($.value,le);if($e[xe])pe=$e[xe];else if($e.inherit){for(var Ie=timeUnits.indexOf(xe),Ce=Ie-1;Ce>=0;--Ce)if($e[xe]){pe=$e[xe];break}pe=pe||_e.none}if(isArray$1(pe)){var Ne=$.level==null?0:$.level>=0?$.level:pe.length+$.level;Ne=Math.min(Ne,pe.length-1),pe=pe[Ne]}}return format$1(new Date($.value),pe,le,ie)}function getUnitFromValue($,oe){var ae=parseDate($),ie=ae[monthGetterName(oe)]()+1,le=ae[dateGetterName(oe)](),pe=ae[hoursGetterName(oe)](),_e=ae[minutesGetterName(oe)](),Ce=ae[secondsGetterName(oe)](),$e=ae[millisecondsGetterName(oe)](),xe=$e===0,Ie=xe&&Ce===0,Ne=Ie&&_e===0,Fe=Ne&&pe===0,ze=Fe&&le===1,At=ze&&ie===1;return At?"year":ze?"month":Fe?"day":Ne?"hour":Ie?"minute":xe?"second":"millisecond"}function getUnitValue($,oe,ae){var ie=isNumber($)?parseDate($):$;switch(oe=oe||getUnitFromValue($,ae),oe){case"year":return ie[fullYearGetterName(ae)]();case"half-year":return ie[monthGetterName(ae)]()>=6?1:0;case"quarter":return Math.floor((ie[monthGetterName(ae)]()+1)/4);case"month":return ie[monthGetterName(ae)]();case"day":return ie[dateGetterName(ae)]();case"half-day":return ie[hoursGetterName(ae)]()/24;case"hour":return ie[hoursGetterName(ae)]();case"minute":return ie[minutesGetterName(ae)]();case"second":return ie[secondsGetterName(ae)]();case"millisecond":return ie[millisecondsGetterName(ae)]()}}function fullYearGetterName($){return $?"getUTCFullYear":"getFullYear"}function monthGetterName($){return $?"getUTCMonth":"getMonth"}function dateGetterName($){return $?"getUTCDate":"getDate"}function hoursGetterName($){return $?"getUTCHours":"getHours"}function minutesGetterName($){return $?"getUTCMinutes":"getMinutes"}function secondsGetterName($){return $?"getUTCSeconds":"getSeconds"}function millisecondsGetterName($){return $?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName($){return $?"setUTCFullYear":"setFullYear"}function monthSetterName($){return $?"setUTCMonth":"setMonth"}function dateSetterName($){return $?"setUTCDate":"setDate"}function hoursSetterName($){return $?"setUTCHours":"setHours"}function minutesSetterName($){return $?"setUTCMinutes":"setMinutes"}function secondsSetterName($){return $?"setUTCSeconds":"setSeconds"}function millisecondsSetterName($){return $?"setUTCMilliseconds":"setMilliseconds"}function getTextRect($,oe,ae,ie,le,pe,_e,Ce){var $e=new ZRText$1({style:{text:$,font:oe,align:ae,verticalAlign:ie,padding:le,rich:pe,overflow:_e?"truncate":null,lineHeight:Ce}});return $e.getBoundingRect()}function addCommas($){if(!isNumeric($))return isString($)?$:"-";var oe=($+"").split(".");return oe[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(oe.length>1?"."+oe[1]:"")}function toCamelCase($,oe){return $=($||"").toLowerCase().replace(/-(.)/g,function(ae,ie){return ie.toUpperCase()}),oe&&$&&($=$.charAt(0).toUpperCase()+$.slice(1)),$}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable($,oe,ae){var ie="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function le(Ie){return Ie&&trim$1(Ie)?Ie:"-"}function pe(Ie){return!!(Ie!=null&&!isNaN(Ie)&&isFinite(Ie))}var _e=oe==="time",Ce=$ instanceof Date;if(_e||Ce){var $e=_e?parseDate($):$;if(isNaN(+$e)){if(Ce)return"-"}else return format$1($e,ie,ae)}if(oe==="ordinal")return isStringSafe($)?le($):isNumber($)&&pe($)?$+"":"-";var xe=numericToNumber($);return pe(xe)?addCommas(xe):isStringSafe($)?le($):typeof $=="boolean"?$+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function($,oe){return"{"+$+(oe??"")+"}"};function formatTpl($,oe,ae){isArray$1(oe)||(oe=[oe]);var ie=oe.length;if(!ie)return"";for(var le=oe[0].$vars||[],pe=0;pe<le.length;pe++){var _e=TPL_VAR_ALIAS[pe];$=$.replace(wrapVar(_e),wrapVar(_e,0))}for(var Ce=0;Ce<ie;Ce++)for(var $e=0;$e<le.length;$e++){var xe=oe[Ce][le[$e]];$=$.replace(wrapVar(TPL_VAR_ALIAS[$e],Ce),ae?encodeHTML(xe):xe)}return $}function getTooltipMarker($,oe){var ae=isString($)?{color:$,extraCssText:oe}:$||{},ie=ae.color,le=ae.type;oe=ae.extraCssText;var pe=ae.renderMode||"html";if(!ie)return"";if(pe==="html")return le==="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(ie)+";"+(oe||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+encodeHTML(ie)+";"+(oe||"")+'"></span>';var _e=ae.markerId||"markerX";return{renderMode:pe,content:"{"+_e+"|} ",style:le==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:ie}:{width:10,height:10,borderRadius:5,backgroundColor:ie}}}function formatTime($,oe,ae){($==="week"||$==="month"||$==="quarter"||$==="half-year"||$==="year")&&($=`MM-dd
yyyy`);var ie=parseDate(oe),le=ae?"getUTC":"get",pe=ie[le+"FullYear"](),_e=ie[le+"Month"]()+1,Ce=ie[le+"Date"](),$e=ie[le+"Hours"](),xe=ie[le+"Minutes"](),Ie=ie[le+"Seconds"](),Ne=ie[le+"Milliseconds"]();return $=$.replace("MM",pad(_e,2)).replace("M",_e).replace("yyyy",pe).replace("yy",pad(pe%100+"",2)).replace("dd",pad(Ce,2)).replace("d",Ce).replace("hh",pad($e,2)).replace("h",$e).replace("mm",pad(xe,2)).replace("m",xe).replace("ss",pad(Ie,2)).replace("s",Ie).replace("SSS",pad(Ne,3)),$}function capitalFirst($){return $&&$.charAt(0).toUpperCase()+$.substr(1)}function convertToColorString($,oe){return oe=oe||"transparent",isString($)?$:isObject$3($)&&$.colorStops&&($.colorStops[0]||{}).color||oe}function windowOpen($,oe){if(oe==="_blank"||oe==="blank"){var ae=window.open();ae.opener=null,ae.location.href=$}else window.open($,oe)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout($,oe,ae,ie,le){var pe=0,_e=0;ie==null&&(ie=1/0),le==null&&(le=1/0);var Ce=0;oe.eachChild(function($e,xe){var Ie=$e.getBoundingRect(),Ne=oe.childAt(xe+1),Fe=Ne&&Ne.getBoundingRect(),ze,At;if($==="horizontal"){var Lt=Ie.width+(Fe?-Fe.x+Ie.x:0);ze=pe+Lt,ze>ie||$e.newline?(pe=0,ze=Lt,_e+=Ce+ae,Ce=Ie.height):Ce=Math.max(Ce,Ie.height)}else{var hn=Ie.height+(Fe?-Fe.y+Ie.y:0);At=_e+hn,At>le||$e.newline?(pe+=Ce+ae,_e=0,At=hn,Ce=Ie.width):Ce=Math.max(Ce,Ie.width)}$e.newline||($e.x=pe,$e.y=_e,$e.markRedraw(),$==="horizontal"?pe=ze+ae:_e=At+ae)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect($,oe,ae){ae=normalizeCssArray(ae||0);var ie=oe.width,le=oe.height,pe=parsePercent($.left,ie),_e=parsePercent($.top,le),Ce=parsePercent($.right,ie),$e=parsePercent($.bottom,le),xe=parsePercent($.width,ie),Ie=parsePercent($.height,le),Ne=ae[2]+ae[0],Fe=ae[1]+ae[3],ze=$.aspect;switch(isNaN(xe)&&(xe=ie-Ce-Fe-pe),isNaN(Ie)&&(Ie=le-$e-Ne-_e),ze!=null&&(isNaN(xe)&&isNaN(Ie)&&(ze>ie/le?xe=ie*.8:Ie=le*.8),isNaN(xe)&&(xe=ze*Ie),isNaN(Ie)&&(Ie=xe/ze)),isNaN(pe)&&(pe=ie-Ce-xe-Fe),isNaN(_e)&&(_e=le-$e-Ie-Ne),$.left||$.right){case"center":pe=ie/2-xe/2-ae[3];break;case"right":pe=ie-xe-Fe;break}switch($.top||$.bottom){case"middle":case"center":_e=le/2-Ie/2-ae[0];break;case"bottom":_e=le-Ie-Ne;break}pe=pe||0,_e=_e||0,isNaN(xe)&&(xe=ie-Fe-pe-(Ce||0)),isNaN(Ie)&&(Ie=le-Ne-_e-($e||0));var At=new BoundingRect$1(pe+ae[3],_e+ae[0],xe,Ie);return At.margin=ae,At}function positionElement($,oe,ae,ie,le,pe){var _e=!le||!le.hv||le.hv[0],Ce=!le||!le.hv||le.hv[1],$e=le&&le.boundingMode||"all";if(pe=pe||$,pe.x=$.x,pe.y=$.y,!_e&&!Ce)return!1;var xe;if($e==="raw")xe=$.type==="group"?new BoundingRect$1(0,0,+oe.width||0,+oe.height||0):$.getBoundingRect();else if(xe=$.getBoundingRect(),$.needLocalTransform()){var Ie=$.getLocalTransform();xe=xe.clone(),xe.applyTransform(Ie)}var Ne=getLayoutRect(defaults({width:xe.width,height:xe.height},oe),ae,ie),Fe=_e?Ne.x-xe.x:0,ze=Ce?Ne.y-xe.y:0;return $e==="raw"?(pe.x=Fe,pe.y=ze):(pe.x+=Fe,pe.y+=ze),pe===$&&$.markRedraw(),!0}function fetchLayoutMode($){var oe=$.layoutMode||$.constructor.layoutMode;return isObject$3(oe)?oe:oe?{type:oe}:null}function mergeLayoutParam($,oe,ae){var ie=ae&&ae.ignoreSize;!isArray$1(ie)&&(ie=[ie,ie]);var le=_e(HV_NAMES[0],0),pe=_e(HV_NAMES[1],1);xe(HV_NAMES[0],$,le),xe(HV_NAMES[1],$,pe);function _e(Ie,Ne){var Fe={},ze=0,At={},Lt=0,hn=2;if(each$b(Ie,function(bn){At[bn]=$[bn]}),each$b(Ie,function(bn){Ce(oe,bn)&&(Fe[bn]=At[bn]=oe[bn]),$e(Fe,bn)&&ze++,$e(At,bn)&&Lt++}),ie[Ne])return $e(oe,Ie[1])?At[Ie[2]]=null:$e(oe,Ie[2])&&(At[Ie[1]]=null),At;if(Lt===hn||!ze)return At;if(ze>=hn)return Fe;for(var vn=0;vn<Ie.length;vn++){var _n=Ie[vn];if(!Ce(Fe,_n)&&Ce($,_n)){Fe[_n]=$[_n];break}}return Fe}function Ce(Ie,Ne){return Ie.hasOwnProperty(Ne)}function $e(Ie,Ne){return Ie[Ne]!=null&&Ie[Ne]!=="auto"}function xe(Ie,Ne,Fe){each$b(Ie,function(ze){Ne[ze]=Fe[ze]})}}function getLayoutParams($){return copyLayoutParams({},$)}function copyLayoutParams($,oe){return oe&&$&&each$b(LOCATION_PARAMS,function(ae){oe.hasOwnProperty(ae)&&($[ae]=oe[ae])}),$}var inner$c=makeInner(),ComponentModel=function($){__extends(oe,$);function oe(ae,ie,le){var pe=$.call(this,ae,ie,le)||this;return pe.uid=getUID("ec_cpt_model"),pe}return oe.prototype.init=function(ae,ie,le){this.mergeDefaultAndTheme(ae,le)},oe.prototype.mergeDefaultAndTheme=function(ae,ie){var le=fetchLayoutMode(this),pe=le?getLayoutParams(ae):{},_e=ie.getTheme();merge(ae,_e.get(this.mainType)),merge(ae,this.getDefaultOption()),le&&mergeLayoutParam(ae,pe,le)},oe.prototype.mergeOption=function(ae,ie){merge(this.option,ae,!0);var le=fetchLayoutMode(this);le&&mergeLayoutParam(this.option,ae,le)},oe.prototype.optionUpdated=function(ae,ie){},oe.prototype.getDefaultOption=function(){var ae=this.constructor;if(!isExtendedClass(ae))return ae.defaultOption;var ie=inner$c(this);if(!ie.defaultOption){for(var le=[],pe=ae;pe;){var _e=pe.prototype.defaultOption;_e&&le.push(_e),pe=pe.superClass}for(var Ce={},$e=le.length-1;$e>=0;$e--)Ce=merge(Ce,le[$e],!0);ie.defaultOption=Ce}return ie.defaultOption},oe.prototype.getReferringComponents=function(ae,ie){var le=ae+"Index",pe=ae+"Id";return queryReferringComponents(this.ecModel,ae,{index:this.get(le,!0),id:this.get(pe,!0)},ie)},oe.prototype.getBoxLayoutParams=function(){var ae=this;return{left:ae.get("left"),top:ae.get("top"),right:ae.get("right"),bottom:ae.get("bottom"),width:ae.get("width"),height:ae.get("height")}},oe.prototype.getZLevelKey=function(){return""},oe.prototype.setZLevel=function(ae){this.option.zlevel=ae},oe.protoInitialize=function(){var ae=oe.prototype;ae.type="component",ae.id="",ae.name="",ae.mainType="",ae.subType="",ae.componentIndex=0}(),oe}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies($){var oe=[];return each$c(ComponentModel.getClassesByMainType($),function(ae){oe=oe.concat(ae.dependencies||ae.prototype.dependencies||[])}),oe=map$2(oe,function(ae){return parseClassType(ae).main}),$!=="dataset"&&indexOf(oe,"dataset")<=0&&oe.unshift("dataset"),oe}const ComponentModel$1=ComponentModel;var platform="";typeof navigator<"u"&&(platform=navigator.platform||"");var decalColor="rgba(0, 0, 0, 0.2)";const 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};var VISUAL_DIMENSIONS=createHashMap(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),SOURCE_FORMAT_ORIGINAL="original",SOURCE_FORMAT_ARRAY_ROWS="arrayRows",SOURCE_FORMAT_OBJECT_ROWS="objectRows",SOURCE_FORMAT_KEYED_COLUMNS="keyedColumns",SOURCE_FORMAT_TYPED_ARRAY="typedArray",SOURCE_FORMAT_UNKNOWN="unknown",SERIES_LAYOUT_BY_COLUMN="column",SERIES_LAYOUT_BY_ROW="row",BE_ORDINAL={Must:1,Might:2,Not:3},innerGlobalModel=makeInner();function resetSourceDefaulter($){innerGlobalModel($).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys($,oe,ae){var ie={},le=querySeriesUpstreamDatasetModel(oe);if(!le||!$)return ie;var pe=[],_e=[],Ce=oe.ecModel,$e=innerGlobalModel(Ce).datasetMap,xe=le.uid+"_"+ae.seriesLayoutBy,Ie,Ne;$=$.slice(),each$c($,function(Lt,hn){var vn=isObject$3(Lt)?Lt:$[hn]={name:Lt};vn.type==="ordinal"&&Ie==null&&(Ie=hn,Ne=At(vn)),ie[vn.name]=[]});var Fe=$e.get(xe)||$e.set(xe,{categoryWayDim:Ne,valueWayDim:0});each$c($,function(Lt,hn){var vn=Lt.name,_n=At(Lt);if(Ie==null){var bn=Fe.valueWayDim;ze(ie[vn],bn,_n),ze(_e,bn,_n),Fe.valueWayDim+=_n}else if(Ie===hn)ze(ie[vn],0,_n),ze(pe,0,_n);else{var bn=Fe.categoryWayDim;ze(ie[vn],bn,_n),ze(_e,bn,_n),Fe.categoryWayDim+=_n}});function ze(Lt,hn,vn){for(var _n=0;_n<vn;_n++)Lt.push(hn+_n)}function At(Lt){var hn=Lt.dimsDef;return hn?hn.length:1}return pe.length&&(ie.itemName=pe),_e.length&&(ie.seriesName=_e),ie}function makeSeriesEncodeForNameBased($,oe,ae){var ie={},le=querySeriesUpstreamDatasetModel($);if(!le)return ie;var pe=oe.sourceFormat,_e=oe.dimensionsDefine,Ce;(pe===SOURCE_FORMAT_OBJECT_ROWS||pe===SOURCE_FORMAT_KEYED_COLUMNS)&&each$c(_e,function(Ie,Ne){(isObject$3(Ie)?Ie.name:Ie)==="name"&&(Ce=Ne)});var $e=function(){for(var Ie={},Ne={},Fe=[],ze=0,At=Math.min(5,ae);ze<At;ze++){var Lt=doGuessOrdinal(oe.data,pe,oe.seriesLayoutBy,_e,oe.startIndex,ze);Fe.push(Lt);var hn=Lt===BE_ORDINAL.Not;if(hn&&Ie.v==null&&ze!==Ce&&(Ie.v=ze),(Ie.n==null||Ie.n===Ie.v||!hn&&Fe[Ie.n]===BE_ORDINAL.Not)&&(Ie.n=ze),vn(Ie)&&Fe[Ie.n]!==BE_ORDINAL.Not)return Ie;hn||(Lt===BE_ORDINAL.Might&&Ne.v==null&&ze!==Ce&&(Ne.v=ze),(Ne.n==null||Ne.n===Ne.v)&&(Ne.n=ze))}function vn(_n){return _n.v!=null&&_n.n!=null}return vn(Ie)?Ie:vn(Ne)?Ne:null}();if($e){ie.value=[$e.v];var xe=Ce??$e.n;ie.itemName=[xe],ie.seriesName=[xe]}return ie}function querySeriesUpstreamDatasetModel($){var oe=$.get("data",!0);if(!oe)return queryReferringComponents($.ecModel,"dataset",{index:$.get("datasetIndex",!0),id:$.get("datasetId",!0)},SINGLE_REFERRING).models[0]}function queryDatasetUpstreamDatasetModels($){return!$.get("transform",!0)&&!$.get("fromTransformResult",!0)?[]:queryReferringComponents($.ecModel,"dataset",{index:$.get("fromDatasetIndex",!0),id:$.get("fromDatasetId",!0)},SINGLE_REFERRING).models}function guessOrdinal($,oe){return doGuessOrdinal($.data,$.sourceFormat,$.seriesLayoutBy,$.dimensionsDefine,$.startIndex,oe)}function doGuessOrdinal($,oe,ae,ie,le,pe){var _e,Ce=5;if(isTypedArray($))return BE_ORDINAL.Not;var $e,xe;if(ie){var Ie=ie[pe];isObject$3(Ie)?($e=Ie.name,xe=Ie.type):isString(Ie)&&($e=Ie)}if(xe!=null)return xe==="ordinal"?BE_ORDINAL.Must:BE_ORDINAL.Not;if(oe===SOURCE_FORMAT_ARRAY_ROWS){var Ne=$;if(ae===SERIES_LAYOUT_BY_ROW){for(var Fe=Ne[pe],ze=0;ze<(Fe||[]).length&&ze<Ce;ze++)if((_e=Cn(Fe[le+ze]))!=null)return _e}else for(var ze=0;ze<Ne.length&&ze<Ce;ze++){var At=Ne[le+ze];if(At&&(_e=Cn(At[pe]))!=null)return _e}}else if(oe===SOURCE_FORMAT_OBJECT_ROWS){var Lt=$;if(!$e)return BE_ORDINAL.Not;for(var ze=0;ze<Lt.length&&ze<Ce;ze++){var hn=Lt[ze];if(hn&&(_e=Cn(hn[$e]))!=null)return _e}}else if(oe===SOURCE_FORMAT_KEYED_COLUMNS){var vn=$;if(!$e)return BE_ORDINAL.Not;var Fe=vn[$e];if(!Fe||isTypedArray(Fe))return BE_ORDINAL.Not;for(var ze=0;ze<Fe.length&&ze<Ce;ze++)if((_e=Cn(Fe[ze]))!=null)return _e}else if(oe===SOURCE_FORMAT_ORIGINAL)for(var _n=$,ze=0;ze<_n.length&&ze<Ce;ze++){var hn=_n[ze],bn=getDataItemValue(hn);if(!isArray$1(bn))return BE_ORDINAL.Not;if((_e=Cn(bn[pe]))!=null)return _e}function Cn(En){var $n=isString(En);if(En!=null&&isFinite(En)&&En!=="")return $n?BE_ORDINAL.Might:BE_ORDINAL.Not;if($n&&En!=="-")return BE_ORDINAL.Must}return BE_ORDINAL.Not}var internalOptionCreatorMap=createHashMap();function registerInternalOptionCreator($,oe){assert(internalOptionCreatorMap.get($)==null&&oe),internalOptionCreatorMap.set($,oe)}function concatInternalOptions($,oe,ae){var ie=internalOptionCreatorMap.get(oe);if(!ie)return ae;var le=ie($);return le?ae.concat(le):ae}var innerColor=makeInner();makeInner();var PaletteMixin=function(){function $(){}return $.prototype.getColorFromPalette=function(oe,ae,ie){var le=normalizeToArray(this.get("color",!0)),pe=this.get("colorLayer",!0);return getFromPalette(this,innerColor,le,pe,oe,ae,ie)},$.prototype.clearColorPalette=function(){clearPalette(this,innerColor)},$}();function getNearestPalette($,oe){for(var ae=$.length,ie=0;ie<ae;ie++)if($[ie].length>oe)return $[ie];return $[ae-1]}function getFromPalette($,oe,ae,ie,le,pe,_e){pe=pe||$;var Ce=oe(pe),$e=Ce.paletteIdx||0,xe=Ce.paletteNameMap=Ce.paletteNameMap||{};if(xe.hasOwnProperty(le))return xe[le];var Ie=_e==null||!ie?ae:getNearestPalette(ie,_e);if(Ie=Ie||ae,!(!Ie||!Ie.length)){var Ne=Ie[$e];return le&&(xe[le]=Ne),Ce.paletteIdx=($e+1)%Ie.length,Ne}}function clearPalette($,oe){oe($).paletteIdx=0,oe($).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.init=function(ae,ie,le,pe,_e,Ce){pe=pe||{},this.option=null,this._theme=new Model$1(pe),this._locale=new Model$1(_e),this._optionManager=Ce},oe.prototype.setOption=function(ae,ie,le){var pe=normalizeSetOptionInput(ie);this._optionManager.setOption(ae,le,pe),this._resetOption(null,pe)},oe.prototype.resetOption=function(ae,ie){return this._resetOption(ae,normalizeSetOptionInput(ie))},oe.prototype._resetOption=function(ae,ie){var le=!1,pe=this._optionManager;if(!ae||ae==="recreate"){var _e=pe.mountOption(ae==="recreate");!this.option||ae==="recreate"?initBase(this,_e):(this.restoreData(),this._mergeOption(_e,ie)),le=!0}if((ae==="timeline"||ae==="media")&&this.restoreData(),!ae||ae==="recreate"||ae==="timeline"){var Ce=pe.getTimelineOption(this);Ce&&(le=!0,this._mergeOption(Ce,ie))}if(!ae||ae==="recreate"||ae==="media"){var $e=pe.getMediaOption(this);$e.length&&each$c($e,function(xe){le=!0,this._mergeOption(xe,ie)},this)}return le},oe.prototype.mergeOption=function(ae){this._mergeOption(ae,null)},oe.prototype._mergeOption=function(ae,ie){var le=this.option,pe=this._componentsMap,_e=this._componentsCount,Ce=[],$e=createHashMap(),xe=ie&&ie.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c(ae,function(Ne,Fe){Ne!=null&&(ComponentModel$1.hasClass(Fe)?Fe&&(Ce.push(Fe),$e.set(Fe,!0)):le[Fe]=le[Fe]==null?clone$3(Ne):merge(le[Fe],Ne,!0))}),xe&&xe.each(function(Ne,Fe){ComponentModel$1.hasClass(Fe)&&!$e.get(Fe)&&(Ce.push(Fe),$e.set(Fe,!0))}),ComponentModel$1.topologicalTravel(Ce,ComponentModel$1.getAllClassMainTypes(),Ie,this);function Ie(Ne){var Fe=concatInternalOptions(this,Ne,normalizeToArray(ae[Ne])),ze=pe.get(Ne),At=ze?xe&&xe.get(Ne)?"replaceMerge":"normalMerge":"replaceAll",Lt=mappingToExists(ze,Fe,At);setComponentTypeToKeyInfo(Lt,Ne,ComponentModel$1),le[Ne]=null,pe.set(Ne,null),_e.set(Ne,0);var hn=[],vn=[],_n=0,bn;each$c(Lt,function(Cn,En){var $n=Cn.existing,wn=Cn.newOption;if(!wn)$n&&($n.mergeOption({},this),$n.optionUpdated({},!1));else{var Tn=Ne==="series",xn=ComponentModel$1.getClass(Ne,Cn.keyInfo.subType,!Tn);if(!xn)return;if(Ne==="tooltip"){if(bn)return;bn=!0}if($n&&$n.constructor===xn)$n.name=Cn.keyInfo.name,$n.mergeOption(wn,this),$n.optionUpdated(wn,!1);else{var kn=extend({componentIndex:En},Cn.keyInfo);$n=new xn(wn,this,this,kn),extend($n,kn),Cn.brandNew&&($n.__requireNewView=!0),$n.init(wn,this,this),$n.optionUpdated(null,!0)}}$n?(hn.push($n.option),vn.push($n),_n++):(hn.push(void 0),vn.push(void 0))},this),le[Ne]=hn,pe.set(Ne,vn),_e.set(Ne,_n),Ne==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},oe.prototype.getOption=function(){var ae=clone$3(this.option);return each$c(ae,function(ie,le){if(ComponentModel$1.hasClass(le)){for(var pe=normalizeToArray(ie),_e=pe.length,Ce=!1,$e=_e-1;$e>=0;$e--)pe[$e]&&!isComponentIdInternal(pe[$e])?Ce=!0:(pe[$e]=null,!Ce&&_e--);pe.length=_e,ae[le]=pe}}),delete ae[OPTION_INNER_KEY],ae},oe.prototype.getTheme=function(){return this._theme},oe.prototype.getLocaleModel=function(){return this._locale},oe.prototype.setUpdatePayload=function(ae){this._payload=ae},oe.prototype.getUpdatePayload=function(){return this._payload},oe.prototype.getComponent=function(ae,ie){var le=this._componentsMap.get(ae);if(le){var pe=le[ie||0];if(pe)return pe;if(ie==null){for(var _e=0;_e<le.length;_e++)if(le[_e])return le[_e]}}},oe.prototype.queryComponents=function(ae){var ie=ae.mainType;if(!ie)return[];var le=ae.index,pe=ae.id,_e=ae.name,Ce=this._componentsMap.get(ie);if(!Ce||!Ce.length)return[];var $e;return le!=null?($e=[],each$c(normalizeToArray(le),function(xe){Ce[xe]&&$e.push(Ce[xe])})):pe!=null?$e=queryByIdOrName("id",pe,Ce):_e!=null?$e=queryByIdOrName("name",_e,Ce):$e=filter(Ce,function(xe){return!!xe}),filterBySubType($e,ae)},oe.prototype.findComponents=function(ae){var ie=ae.query,le=ae.mainType,pe=Ce(ie),_e=pe?this.queryComponents(pe):filter(this._componentsMap.get(le),function(xe){return!!xe});return $e(filterBySubType(_e,ae));function Ce(xe){var Ie=le+"Index",Ne=le+"Id",Fe=le+"Name";return xe&&(xe[Ie]!=null||xe[Ne]!=null||xe[Fe]!=null)?{mainType:le,index:xe[Ie],id:xe[Ne],name:xe[Fe]}:null}function $e(xe){return ae.filter?filter(xe,ae.filter):xe}},oe.prototype.eachComponent=function(ae,ie,le){var pe=this._componentsMap;if(isFunction(ae)){var _e=ie,Ce=ae;pe.each(function(Ne,Fe){for(var ze=0;Ne&&ze<Ne.length;ze++){var At=Ne[ze];At&&Ce.call(_e,Fe,At,At.componentIndex)}})}else for(var $e=isString(ae)?pe.get(ae):isObject$3(ae)?this.findComponents(ae):null,xe=0;$e&&xe<$e.length;xe++){var Ie=$e[xe];Ie&&ie.call(le,Ie,Ie.componentIndex)}},oe.prototype.getSeriesByName=function(ae){var ie=convertOptionIdName(ae,null);return filter(this._componentsMap.get("series"),function(le){return!!le&&ie!=null&&le.name===ie})},oe.prototype.getSeriesByIndex=function(ae){return this._componentsMap.get("series")[ae]},oe.prototype.getSeriesByType=function(ae){return filter(this._componentsMap.get("series"),function(ie){return!!ie&&ie.subType===ae})},oe.prototype.getSeries=function(){return filter(this._componentsMap.get("series"),function(ae){return!!ae})},oe.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},oe.prototype.eachSeries=function(ae,ie){assertSeriesInitialized(this),each$c(this._seriesIndices,function(le){var pe=this._componentsMap.get("series")[le];ae.call(ie,pe,le)},this)},oe.prototype.eachRawSeries=function(ae,ie){each$c(this._componentsMap.get("series"),function(le){le&&ae.call(ie,le,le.componentIndex)})},oe.prototype.eachSeriesByType=function(ae,ie,le){assertSeriesInitialized(this),each$c(this._seriesIndices,function(pe){var _e=this._componentsMap.get("series")[pe];_e.subType===ae&&ie.call(le,_e,pe)},this)},oe.prototype.eachRawSeriesByType=function(ae,ie,le){return each$c(this.getSeriesByType(ae),ie,le)},oe.prototype.isSeriesFiltered=function(ae){return assertSeriesInitialized(this),this._seriesIndicesMap.get(ae.componentIndex)==null},oe.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},oe.prototype.filterSeries=function(ae,ie){assertSeriesInitialized(this);var le=[];each$c(this._seriesIndices,function(pe){var _e=this._componentsMap.get("series")[pe];ae.call(ie,_e,pe)&&le.push(pe)},this),this._seriesIndices=le,this._seriesIndicesMap=createHashMap(le)},oe.prototype.restoreData=function(ae){reCreateSeriesIndices(this);var ie=this._componentsMap,le=[];ie.each(function(pe,_e){ComponentModel$1.hasClass(_e)&&le.push(_e)}),ComponentModel$1.topologicalTravel(le,ComponentModel$1.getAllClassMainTypes(),function(pe){each$c(ie.get(pe),function(_e){_e&&(pe!=="series"||!isNotTargetSeries(_e,ae))&&_e.restoreData()})})},oe.internalField=function(){reCreateSeriesIndices=function(ae){var ie=ae._seriesIndices=[];each$c(ae._componentsMap.get("series"),function(le){le&&ie.push(le.componentIndex)}),ae._seriesIndicesMap=createHashMap(ie)},assertSeriesInitialized=function(ae){},initBase=function(ae,ie){ae.option={},ae.option[OPTION_INNER_KEY]=OPTION_INNER_VALUE,ae._componentsMap=createHashMap({series:[]}),ae._componentsCount=createHashMap();var le=ie.aria;isObject$3(le)&&le.enabled==null&&(le.enabled=!0),mergeTheme(ie,ae._theme.option),merge(ie,globalDefault,!1),ae._mergeOption(ie,null)}}(),oe}(Model$1);function isNotTargetSeries($,oe){if(oe){var ae=oe.seriesIndex,ie=oe.seriesId,le=oe.seriesName;return ae!=null&&$.componentIndex!==ae||ie!=null&&$.id!==ie||le!=null&&$.name!==le}}function mergeTheme($,oe){var ae=$.color&&!$.colorLayer;each$c(oe,function(ie,le){le==="colorLayer"&&ae||ComponentModel$1.hasClass(le)||(typeof ie=="object"?$[le]=$[le]?merge($[le],ie,!1):clone$3(ie):$[le]==null&&($[le]=ie))})}function queryByIdOrName($,oe,ae){if(isArray$1(oe)){var ie=createHashMap();return each$c(oe,function(pe){if(pe!=null){var _e=convertOptionIdName(pe,null);_e!=null&&ie.set(pe,!0)}}),filter(ae,function(pe){return pe&&ie.get(pe[$])})}else{var le=convertOptionIdName(oe,null);return filter(ae,function(pe){return pe&&le!=null&&pe[$]===le})}}function filterBySubType($,oe){return oe.hasOwnProperty("subType")?filter($,function(ae){return ae&&ae.subType===oe.subType}):$}function normalizeSetOptionInput($){var oe=createHashMap();return $&&each$c(normalizeToArray($.replaceMerge),function(ae){oe.set(ae,!0)}),{replaceMergeMainTypeMap:oe}}mixin(GlobalModel,PaletteMixin);const GlobalModel$1=GlobalModel;var availableMethods=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],ExtensionAPI=function(){function $(oe){each$c(availableMethods,function(ae){this[ae]=bind$1(oe[ae],oe)},this)}return $}();const ExtensionAPI$1=ExtensionAPI;var coordinateSystemCreators={},CoordinateSystemManager=function(){function $(){this._coordinateSystems=[]}return $.prototype.create=function(oe,ae){var ie=[];each$c(coordinateSystemCreators,function(le,pe){var _e=le.create(oe,ae);ie=ie.concat(_e||[])}),this._coordinateSystems=ie},$.prototype.update=function(oe,ae){each$c(this._coordinateSystems,function(ie){ie.update&&ie.update(oe,ae)})},$.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},$.register=function(oe,ae){coordinateSystemCreators[oe]=ae},$.get=function(oe){return coordinateSystemCreators[oe]},$}();const CoordinateSystem=CoordinateSystemManager;var QUERY_REG=/^(min|max)?(.+)$/,OptionManager=function(){function $(oe){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=oe}return $.prototype.setOption=function(oe,ae,ie){oe&&(each$c(normalizeToArray(oe.series),function(_e){_e&&_e.data&&isTypedArray(_e.data)&&setAsPrimitive(_e.data)}),each$c(normalizeToArray(oe.dataset),function(_e){_e&&_e.source&&isTypedArray(_e.source)&&setAsPrimitive(_e.source)})),oe=clone$3(oe);var le=this._optionBackup,pe=parseRawOption(oe,ae,!le);this._newBaseOption=pe.baseOption,le?(pe.timelineOptions.length&&(le.timelineOptions=pe.timelineOptions),pe.mediaList.length&&(le.mediaList=pe.mediaList),pe.mediaDefault&&(le.mediaDefault=pe.mediaDefault)):this._optionBackup=pe},$.prototype.mountOption=function(oe){var ae=this._optionBackup;return this._timelineOptions=ae.timelineOptions,this._mediaList=ae.mediaList,this._mediaDefault=ae.mediaDefault,this._currentMediaIndices=[],clone$3(oe?ae.baseOption:this._newBaseOption)},$.prototype.getTimelineOption=function(oe){var ae,ie=this._timelineOptions;if(ie.length){var le=oe.getComponent("timeline");le&&(ae=clone$3(ie[le.getCurrentIndex()]))}return ae},$.prototype.getMediaOption=function(oe){var ae=this._api.getWidth(),ie=this._api.getHeight(),le=this._mediaList,pe=this._mediaDefault,_e=[],Ce=[];if(!le.length&&!pe)return Ce;for(var $e=0,xe=le.length;$e<xe;$e++)applyMediaQuery(le[$e].query,ae,ie)&&_e.push($e);return!_e.length&&pe&&(_e=[-1]),_e.length&&!indicesEquals(_e,this._currentMediaIndices)&&(Ce=map$2(_e,function(Ie){return clone$3(Ie===-1?pe.option:le[Ie].option)})),this._currentMediaIndices=_e,Ce},$}();function parseRawOption($,oe,ae){var ie=[],le,pe,_e=$.baseOption,Ce=$.timeline,$e=$.options,xe=$.media,Ie=!!$.media,Ne=!!($e||Ce||_e&&_e.timeline);_e?(pe=_e,pe.timeline||(pe.timeline=Ce)):((Ne||Ie)&&($.options=$.media=null),pe=$),Ie&&isArray$1(xe)&&each$c(xe,function(ze){ze&&ze.option&&(ze.query?ie.push(ze):le||(le=ze))}),Fe(pe),each$c($e,function(ze){return Fe(ze)}),each$c(ie,function(ze){return Fe(ze.option)});function Fe(ze){each$c(oe,function(At){At(ze,ae)})}return{baseOption:pe,timelineOptions:$e||[],mediaDefault:le,mediaList:ie}}function applyMediaQuery($,oe,ae){var ie={width:oe,height:ae,aspectratio:oe/ae},le=!0;return each$c($,function(pe,_e){var Ce=_e.match(QUERY_REG);if(!(!Ce||!Ce[1]||!Ce[2])){var $e=Ce[1],xe=Ce[2].toLowerCase();compare(ie[xe],pe,$e)||(le=!1)}}),le}function compare($,oe,ae){return ae==="min"?$>=oe:ae==="max"?$<=oe:$===oe}function indicesEquals($,oe){return $.join(",")===oe.join(",")}const OptionManager$1=OptionManager;var each$a=each$c,isObject$2=isObject$3,POSSIBLE_STYLES=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function compatEC2ItemStyle($){var oe=$&&$.itemStyle;if(oe)for(var ae=0,ie=POSSIBLE_STYLES.length;ae<ie;ae++){var le=POSSIBLE_STYLES[ae],pe=oe.normal,_e=oe.emphasis;pe&&pe[le]&&($[le]=$[le]||{},$[le].normal?merge($[le].normal,pe[le]):$[le].normal=pe[le],pe[le]=null),_e&&_e[le]&&($[le]=$[le]||{},$[le].emphasis?merge($[le].emphasis,_e[le]):$[le].emphasis=_e[le],_e[le]=null)}}function convertNormalEmphasis($,oe,ae){if($&&$[oe]&&($[oe].normal||$[oe].emphasis)){var ie=$[oe].normal,le=$[oe].emphasis;ie&&(ae?($[oe].normal=$[oe].emphasis=null,defaults($[oe],ie)):$[oe]=ie),le&&($.emphasis=$.emphasis||{},$.emphasis[oe]=le,le.focus&&($.emphasis.focus=le.focus),le.blurScope&&($.emphasis.blurScope=le.blurScope))}}function removeEC3NormalStatus($){convertNormalEmphasis($,"itemStyle"),convertNormalEmphasis($,"lineStyle"),convertNormalEmphasis($,"areaStyle"),convertNormalEmphasis($,"label"),convertNormalEmphasis($,"labelLine"),convertNormalEmphasis($,"upperLabel"),convertNormalEmphasis($,"edgeLabel")}function compatTextStyle($,oe){var ae=isObject$2($)&&$[oe],ie=isObject$2(ae)&&ae.textStyle;if(ie)for(var le=0,pe=TEXT_STYLE_OPTIONS.length;le<pe;le++){var _e=TEXT_STYLE_OPTIONS[le];ie.hasOwnProperty(_e)&&(ae[_e]=ie[_e])}}function compatEC3CommonStyles($){$&&(removeEC3NormalStatus($),compatTextStyle($,"label"),$.emphasis&&compatTextStyle($.emphasis,"label"))}function processSeries($){if(isObject$2($)){compatEC2ItemStyle($),removeEC3NormalStatus($),compatTextStyle($,"label"),compatTextStyle($,"upperLabel"),compatTextStyle($,"edgeLabel"),$.emphasis&&(compatTextStyle($.emphasis,"label"),compatTextStyle($.emphasis,"upperLabel"),compatTextStyle($.emphasis,"edgeLabel"));var oe=$.markPoint;oe&&(compatEC2ItemStyle(oe),compatEC3CommonStyles(oe));var ae=$.markLine;ae&&(compatEC2ItemStyle(ae),compatEC3CommonStyles(ae));var ie=$.markArea;ie&&compatEC3CommonStyles(ie);var le=$.data;if($.type==="graph"){le=le||$.nodes;var pe=$.links||$.edges;if(pe&&!isTypedArray(pe))for(var _e=0;_e<pe.length;_e++)compatEC3CommonStyles(pe[_e]);each$c($.categories,function(xe){removeEC3NormalStatus(xe)})}if(le&&!isTypedArray(le))for(var _e=0;_e<le.length;_e++)compatEC3CommonStyles(le[_e]);if(oe=$.markPoint,oe&&oe.data)for(var Ce=oe.data,_e=0;_e<Ce.length;_e++)compatEC3CommonStyles(Ce[_e]);if(ae=$.markLine,ae&&ae.data)for(var $e=ae.data,_e=0;_e<$e.length;_e++)isArray$1($e[_e])?(compatEC3CommonStyles($e[_e][0]),compatEC3CommonStyles($e[_e][1])):compatEC3CommonStyles($e[_e]);$.type==="gauge"?(compatTextStyle($,"axisLabel"),compatTextStyle($,"title"),compatTextStyle($,"detail")):$.type==="treemap"?(convertNormalEmphasis($.breadcrumb,"itemStyle"),each$c($.levels,function(xe){removeEC3NormalStatus(xe)})):$.type==="tree"&&removeEC3NormalStatus($.leaves)}}function toArr($){return isArray$1($)?$:$?[$]:[]}function toObj($){return(isArray$1($)?$[0]:$)||{}}function globalCompatStyle($,oe){each$a(toArr($.series),function(ie){isObject$2(ie)&&processSeries(ie)});var ae=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];oe&&ae.push("valueAxis","categoryAxis","logAxis","timeAxis"),each$a(ae,function(ie){each$a(toArr($[ie]),function(le){le&&(compatTextStyle(le,"axisLabel"),compatTextStyle(le.axisPointer,"label"))})}),each$a(toArr($.parallel),function(ie){var le=ie&&ie.parallelAxisDefault;compatTextStyle(le,"axisLabel"),compatTextStyle(le&&le.axisPointer,"label")}),each$a(toArr($.calendar),function(ie){convertNormalEmphasis(ie,"itemStyle"),compatTextStyle(ie,"dayLabel"),compatTextStyle(ie,"monthLabel"),compatTextStyle(ie,"yearLabel")}),each$a(toArr($.radar),function(ie){compatTextStyle(ie,"name"),ie.name&&ie.axisName==null&&(ie.axisName=ie.name,delete ie.name),ie.nameGap!=null&&ie.axisNameGap==null&&(ie.axisNameGap=ie.nameGap,delete ie.nameGap)}),each$a(toArr($.geo),function(ie){isObject$2(ie)&&(compatEC3CommonStyles(ie),each$a(toArr(ie.regions),function(le){compatEC3CommonStyles(le)}))}),each$a(toArr($.timeline),function(ie){compatEC3CommonStyles(ie),convertNormalEmphasis(ie,"label"),convertNormalEmphasis(ie,"itemStyle"),convertNormalEmphasis(ie,"controlStyle",!0);var le=ie.data;isArray$1(le)&&each$c(le,function(pe){isObject$3(pe)&&(convertNormalEmphasis(pe,"label"),convertNormalEmphasis(pe,"itemStyle"))})}),each$a(toArr($.toolbox),function(ie){convertNormalEmphasis(ie,"iconStyle"),each$a(ie.feature,function(le){convertNormalEmphasis(le,"iconStyle")})}),compatTextStyle(toObj($.axisPointer),"label"),compatTextStyle(toObj($.tooltip).axisPointer,"label")}function get($,oe){for(var ae=oe.split(","),ie=$,le=0;le<ae.length&&(ie=ie&&ie[ae[le]],ie!=null);le++);return ie}function set($,oe,ae,ie){for(var le=oe.split(","),pe=$,_e,Ce=0;Ce<le.length-1;Ce++)_e=le[Ce],pe[_e]==null&&(pe[_e]={}),pe=pe[_e];(ie||pe[le[Ce]]==null)&&(pe[le[Ce]]=ae)}function compatLayoutProperties($){$&&each$c(LAYOUT_PROPERTIES,function(oe){oe[0]in $&&!(oe[1]in $)&&($[oe[1]]=$[oe[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($){var oe=$&&$.itemStyle;if(oe)for(var ae=0;ae<BAR_ITEM_STYLE_MAP.length;ae++){var ie=BAR_ITEM_STYLE_MAP[ae][1],le=BAR_ITEM_STYLE_MAP[ae][0];oe[ie]!=null&&(oe[le]=oe[ie])}}function compatPieLabel($){$&&$.alignTo==="edge"&&$.margin!=null&&$.edgeDistance==null&&($.edgeDistance=$.margin)}function compatSunburstState($){$&&$.downplay&&!$.blur&&($.blur=$.downplay)}function compatGraphFocus($){$&&$.focusNodeAdjacency!=null&&($.emphasis=$.emphasis||{},$.emphasis.focus==null&&($.emphasis.focus="adjacency"))}function traverseTree($,oe){if($)for(var ae=0;ae<$.length;ae++)oe($[ae]),$[ae]&&traverseTree($[ae].children,oe)}function globalBackwardCompat($,oe){globalCompatStyle($,oe),$.series=normalizeToArray($.series),each$c($.series,function(ae){if(isObject$3(ae)){var ie=ae.type;if(ie==="line")ae.clipOverflow!=null&&(ae.clip=ae.clipOverflow);else if(ie==="pie"||ie==="gauge"){ae.clockWise!=null&&(ae.clockwise=ae.clockWise),compatPieLabel(ae.label);var le=ae.data;if(le&&!isTypedArray(le))for(var pe=0;pe<le.length;pe++)compatPieLabel(le[pe]);ae.hoverOffset!=null&&(ae.emphasis=ae.emphasis||{},(ae.emphasis.scaleSize=null)&&(ae.emphasis.scaleSize=ae.hoverOffset))}else if(ie==="gauge"){var _e=get(ae,"pointer.color");_e!=null&&set(ae,"itemStyle.color",_e)}else if(ie==="bar"){compatBarItemStyle(ae),compatBarItemStyle(ae.backgroundStyle),compatBarItemStyle(ae.emphasis);var le=ae.data;if(le&&!isTypedArray(le))for(var pe=0;pe<le.length;pe++)typeof le[pe]=="object"&&(compatBarItemStyle(le[pe]),compatBarItemStyle(le[pe]&&le[pe].emphasis))}else if(ie==="sunburst"){var Ce=ae.highlightPolicy;Ce&&(ae.emphasis=ae.emphasis||{},ae.emphasis.focus||(ae.emphasis.focus=Ce)),compatSunburstState(ae),traverseTree(ae.data,compatSunburstState)}else ie==="graph"||ie==="sankey"?compatGraphFocus(ae):ie==="map"&&(ae.mapType&&!ae.map&&(ae.map=ae.mapType),ae.mapLocation&&defaults(ae,ae.mapLocation));ae.hoverAnimation!=null&&(ae.emphasis=ae.emphasis||{},ae.emphasis&&ae.emphasis.scale==null&&(ae.emphasis.scale=ae.hoverAnimation)),compatLayoutProperties(ae)}}),$.dataRange&&($.visualMap=$.dataRange),each$c(COMPATITABLE_COMPONENTS,function(ae){var ie=$[ae];ie&&(isArray$1(ie)||(ie=[ie]),each$c(ie,function(le){compatLayoutProperties(le)}))})}function dataStack$1($){var oe=createHashMap();$.eachSeries(function(ae){var ie=ae.get("stack");if(ie){var le=oe.get(ie)||oe.set(ie,[]),pe=ae.getData(),_e={stackResultDimension:pe.getCalculationInfo("stackResultDimension"),stackedOverDimension:pe.getCalculationInfo("stackedOverDimension"),stackedDimension:pe.getCalculationInfo("stackedDimension"),stackedByDimension:pe.getCalculationInfo("stackedByDimension"),isStackedByIndex:pe.getCalculationInfo("isStackedByIndex"),data:pe,seriesModel:ae};if(!_e.stackedDimension||!(_e.isStackedByIndex||_e.stackedByDimension))return;le.length&&pe.setCalculationInfo("stackedOnSeries",le[le.length-1].seriesModel),le.push(_e)}}),oe.each(calculateStack)}function calculateStack($){each$c($,function(oe,ae){var ie=[],le=[NaN,NaN],pe=[oe.stackResultDimension,oe.stackedOverDimension],_e=oe.data,Ce=oe.isStackedByIndex,$e=oe.seriesModel.get("stackStrategy")||"samesign";_e.modify(pe,function(xe,Ie,Ne){var Fe=_e.get(oe.stackedDimension,Ne);if(isNaN(Fe))return le;var ze,At;Ce?At=_e.getRawIndex(Ne):ze=_e.get(oe.stackedByDimension,Ne);for(var Lt=NaN,hn=ae-1;hn>=0;hn--){var vn=$[hn];if(Ce||(At=vn.data.rawIndexOf(vn.stackedByDimension,ze)),At>=0){var _n=vn.data.getByRawIndex(vn.stackResultDimension,At);if($e==="all"||$e==="positive"&&_n>0||$e==="negative"&&_n<0||$e==="samesign"&&Fe>=0&&_n>0||$e==="samesign"&&Fe<=0&&_n<0){Fe=addSafe(Fe,_n),Lt=_n;break}}}return ie[0]=Fe,ie[1]=Lt,ie})})}var SourceImpl=function(){function $(oe){this.data=oe.data||(oe.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=oe.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=oe.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=oe.startIndex||0,this.dimensionsDetectedCount=oe.dimensionsDetectedCount,this.metaRawOption=oe.metaRawOption;var ae=this.dimensionsDefine=oe.dimensionsDefine;if(ae)for(var ie=0;ie<ae.length;ie++){var le=ae[ie];le.type==null&&guessOrdinal(this,ie)===BE_ORDINAL.Must&&(le.type="ordinal")}}return $}();function isSourceInstance($){return $ instanceof SourceImpl}function createSource($,oe,ae){ae=ae||detectSourceFormat($);var ie=oe.seriesLayoutBy,le=determineSourceDimensions($,ae,ie,oe.sourceHeader,oe.dimensions),pe=new SourceImpl({data:$,sourceFormat:ae,seriesLayoutBy:ie,dimensionsDefine:le.dimensionsDefine,startIndex:le.startIndex,dimensionsDetectedCount:le.dimensionsDetectedCount,metaRawOption:clone$3(oe)});return pe}function createSourceFromSeriesDataOption($){return new SourceImpl({data:$,sourceFormat:isTypedArray($)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow($){return new SourceImpl({data:$.data,sourceFormat:$.sourceFormat,seriesLayoutBy:$.seriesLayoutBy,dimensionsDefine:clone$3($.dimensionsDefine),startIndex:$.startIndex,dimensionsDetectedCount:$.dimensionsDetectedCount})}function detectSourceFormat($){var oe=SOURCE_FORMAT_UNKNOWN;if(isTypedArray($))oe=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1($)){$.length===0&&(oe=SOURCE_FORMAT_ARRAY_ROWS);for(var ae=0,ie=$.length;ae<ie;ae++){var le=$[ae];if(le!=null){if(isArray$1(le)){oe=SOURCE_FORMAT_ARRAY_ROWS;break}else if(isObject$3(le)){oe=SOURCE_FORMAT_OBJECT_ROWS;break}}}}else if(isObject$3($)){for(var pe in $)if(hasOwn($,pe)&&isArrayLike($[pe])){oe=SOURCE_FORMAT_KEYED_COLUMNS;break}}return oe}function determineSourceDimensions($,oe,ae,ie,le){var pe,_e;if(!$)return{dimensionsDefine:normalizeDimensionsOption(le),startIndex:_e,dimensionsDetectedCount:pe};if(oe===SOURCE_FORMAT_ARRAY_ROWS){var Ce=$;ie==="auto"||ie==null?arrayRowsTravelFirst(function(xe){xe!=null&&xe!=="-"&&(isString(xe)?_e==null&&(_e=1):_e=0)},ae,Ce,10):_e=isNumber(ie)?ie:ie?1:0,!le&&_e===1&&(le=[],arrayRowsTravelFirst(function(xe,Ie){le[Ie]=xe!=null?xe+"":""},ae,Ce,1/0)),pe=le?le.length:ae===SERIES_LAYOUT_BY_ROW?Ce.length:Ce[0]?Ce[0].length:null}else if(oe===SOURCE_FORMAT_OBJECT_ROWS)le||(le=objectRowsCollectDimensions($));else if(oe===SOURCE_FORMAT_KEYED_COLUMNS)le||(le=[],each$c($,function(xe,Ie){le.push(Ie)}));else if(oe===SOURCE_FORMAT_ORIGINAL){var $e=getDataItemValue($[0]);pe=isArray$1($e)&&$e.length||1}return{startIndex:_e,dimensionsDefine:normalizeDimensionsOption(le),dimensionsDetectedCount:pe}}function objectRowsCollectDimensions($){for(var oe=0,ae;oe<$.length&&!(ae=$[oe++]););if(ae)return keys(ae)}function normalizeDimensionsOption($){if($){var oe=createHashMap();return map$2($,function(ae,ie){ae=isObject$3(ae)?ae:{name:ae};var le={name:ae.name,displayName:ae.displayName,type:ae.type};if(le.name==null)return le;le.name+="",le.displayName==null&&(le.displayName=le.name);var pe=oe.get(le.name);return pe?le.name+="-"+pe.count++:oe.set(le.name,{count:1}),le})}}function arrayRowsTravelFirst($,oe,ae,ie){if(oe===SERIES_LAYOUT_BY_ROW)for(var le=0;le<ae.length&&le<ie;le++)$(ae[le]?ae[le][0]:null,le);else for(var pe=ae[0]||[],le=0;le<pe.length&&le<ie;le++)$(pe[le],le)}function shouldRetrieveDataByName($){var oe=$.sourceFormat;return oe===SOURCE_FORMAT_OBJECT_ROWS||oe===SOURCE_FORMAT_KEYED_COLUMNS}var _a,_b,_c,providerMethods,mountMethods,DefaultDataProvider=function(){function $(oe,ae){var ie=isSourceInstance(oe)?oe:createSourceFromSeriesDataOption(oe);this._source=ie;var le=this._data=ie.data;ie.sourceFormat===SOURCE_FORMAT_TYPED_ARRAY&&(this._offset=0,this._dimSize=ae,this._data=le),mountMethods(this,le,ie)}return $.prototype.getSource=function(){return this._source},$.prototype.count=function(){return 0},$.prototype.getItem=function(oe,ae){},$.prototype.appendData=function(oe){},$.prototype.clean=function(){},$.protoInitialize=function(){var oe=$.prototype;oe.pure=!1,oe.persistent=!0}(),$.internalField=function(){var oe;mountMethods=function(_e,Ce,$e){var xe=$e.sourceFormat,Ie=$e.seriesLayoutBy,Ne=$e.startIndex,Fe=$e.dimensionsDefine,ze=providerMethods[getMethodMapKey(xe,Ie)];if(extend(_e,ze),xe===SOURCE_FORMAT_TYPED_ARRAY)_e.getItem=ae,_e.count=le,_e.fillStorage=ie;else{var At=getRawSourceItemGetter(xe,Ie);_e.getItem=bind$1(At,null,Ce,Ne,Fe);var Lt=getRawSourceDataCounter(xe,Ie);_e.count=bind$1(Lt,null,Ce,Ne,Fe)}};var ae=function(_e,Ce){_e=_e-this._offset,Ce=Ce||[];for(var $e=this._data,xe=this._dimSize,Ie=xe*_e,Ne=0;Ne<xe;Ne++)Ce[Ne]=$e[Ie+Ne];return Ce},ie=function(_e,Ce,$e,xe){for(var Ie=this._data,Ne=this._dimSize,Fe=0;Fe<Ne;Fe++){for(var ze=xe[Fe],At=ze[0]==null?1/0:ze[0],Lt=ze[1]==null?-1/0:ze[1],hn=Ce-_e,vn=$e[Fe],_n=0;_n<hn;_n++){var bn=Ie[_n*Ne+Fe];vn[_e+_n]=bn,bn<At&&(At=bn),bn>Lt&&(Lt=bn)}ze[0]=At,ze[1]=Lt}},le=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(oe={},oe[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:pe},oe[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},oe[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:pe},oe[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(_e){var Ce=this._data;each$c(_e,function($e,xe){for(var Ie=Ce[xe]||(Ce[xe]=[]),Ne=0;Ne<($e||[]).length;Ne++)Ie.push($e[Ne])})}},oe[SOURCE_FORMAT_ORIGINAL]={appendData:pe},oe[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(_e){this._data=_e},clean:function(){this._offset+=this.count(),this._data=null}},oe);function pe(_e){for(var Ce=0;Ce<_e.length;Ce++)this._data.push(_e[Ce])}}(),$}(),getItemSimply=function($,oe,ae,ie){return $[ie]},rawSourceItemGetterMap=(_a={},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,oe,ae,ie){return $[ie+oe]},_a[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,oe,ae,ie,le){ie+=oe;for(var pe=le||[],_e=$,Ce=0;Ce<_e.length;Ce++){var $e=_e[Ce];pe[Ce]=$e?$e[ie]:null}return pe},_a[SOURCE_FORMAT_OBJECT_ROWS]=getItemSimply,_a[SOURCE_FORMAT_KEYED_COLUMNS]=function($,oe,ae,ie,le){for(var pe=le||[],_e=0;_e<ae.length;_e++){var Ce=ae[_e].name,$e=$[Ce];pe[_e]=$e?$e[ie]:null}return pe},_a[SOURCE_FORMAT_ORIGINAL]=getItemSimply,_a);function getRawSourceItemGetter($,oe){var ae=rawSourceItemGetterMap[getMethodMapKey($,oe)];return ae}var countSimply=function($,oe,ae){return $.length},rawSourceDataCounterMap=(_b={},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]=function($,oe,ae){return Math.max(0,$.length-oe)},_b[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]=function($,oe,ae){var ie=$[0];return ie?Math.max(0,ie.length-oe):0},_b[SOURCE_FORMAT_OBJECT_ROWS]=countSimply,_b[SOURCE_FORMAT_KEYED_COLUMNS]=function($,oe,ae){var ie=ae[0].name,le=$[ie];return le?le.length:0},_b[SOURCE_FORMAT_ORIGINAL]=countSimply,_b);function getRawSourceDataCounter($,oe){var ae=rawSourceDataCounterMap[getMethodMapKey($,oe)];return ae}var getRawValueSimply=function($,oe,ae){return $[oe]},rawSourceValueGetterMap=(_c={},_c[SOURCE_FORMAT_ARRAY_ROWS]=getRawValueSimply,_c[SOURCE_FORMAT_OBJECT_ROWS]=function($,oe,ae){return $[ae]},_c[SOURCE_FORMAT_KEYED_COLUMNS]=getRawValueSimply,_c[SOURCE_FORMAT_ORIGINAL]=function($,oe,ae){var ie=getDataItemValue($);return ie instanceof Array?ie[oe]:ie},_c[SOURCE_FORMAT_TYPED_ARRAY]=getRawValueSimply,_c);function getRawSourceValueGetter($){var oe=rawSourceValueGetterMap[$];return oe}function getMethodMapKey($,oe){return $===SOURCE_FORMAT_ARRAY_ROWS?$+"_"+oe:$}function retrieveRawValue($,oe,ae){if($){var ie=$.getRawDataItem(oe);if(ie!=null){var le=$.getStore(),pe=le.getSource().sourceFormat;if(ae!=null){var _e=$.getDimensionIndex(ae),Ce=le.getDimensionProperty(_e);return getRawSourceValueGetter(pe)(ie,_e,Ce)}else{var $e=ie;return pe===SOURCE_FORMAT_ORIGINAL&&($e=getDataItemValue(ie)),$e}}}}var DIMENSION_LABEL_REG=/\{@(.+?)\}/g,DataFormatMixin=function(){function $(){}return $.prototype.getDataParams=function(oe,ae){var ie=this.getData(ae),le=this.getRawValue(oe,ae),pe=ie.getRawIndex(oe),_e=ie.getName(oe),Ce=ie.getRawDataItem(oe),$e=ie.getItemVisual(oe,"style"),xe=$e&&$e[ie.getItemVisual(oe,"drawType")||"fill"],Ie=$e&&$e.stroke,Ne=this.mainType,Fe=Ne==="series",ze=ie.userOutput&&ie.userOutput.get();return{componentType:Ne,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:Fe?this.subType:null,seriesIndex:this.seriesIndex,seriesId:Fe?this.id:null,seriesName:Fe?this.name:null,name:_e,dataIndex:pe,data:Ce,dataType:ae,value:le,color:xe,borderColor:Ie,dimensionNames:ze?ze.fullDimensions:null,encode:ze?ze.encode:null,$vars:["seriesName","name","value"]}},$.prototype.getFormattedLabel=function(oe,ae,ie,le,pe,_e){ae=ae||"normal";var Ce=this.getData(ie),$e=this.getDataParams(oe,ie);if(_e&&($e.value=_e.interpolatedValue),le!=null&&isArray$1($e.value)&&($e.value=$e.value[le]),!pe){var xe=Ce.getItemModel(oe);pe=xe.get(ae==="normal"?["label","formatter"]:[ae,"label","formatter"])}if(isFunction(pe))return $e.status=ae,$e.dimensionIndex=le,pe($e);if(isString(pe)){var Ie=formatTpl(pe,$e);return Ie.replace(DIMENSION_LABEL_REG,function(Ne,Fe){var ze=Fe.length,At=Fe;At.charAt(0)==="["&&At.charAt(ze-1)==="]"&&(At=+At.slice(1,ze-1));var Lt=retrieveRawValue(Ce,oe,At);if(_e&&isArray$1(_e.interpolatedValue)){var hn=Ce.getDimensionIndex(At);hn>=0&&(Lt=_e.interpolatedValue[hn])}return Lt!=null?Lt+"":""})}},$.prototype.getRawValue=function(oe,ae){return retrieveRawValue(this.getData(ae),oe)},$.prototype.formatTooltip=function(oe,ae,ie){},$}();function normalizeTooltipFormatResult($){var oe,ae;return isObject$3($)?$.type&&(ae=$):oe=$,{text:oe,frag:ae}}function createTask($){return new Task($)}var Task=function(){function $(oe){oe=oe||{},this._reset=oe.reset,this._plan=oe.plan,this._count=oe.count,this._onDirty=oe.onDirty,this._dirty=!0}return $.prototype.perform=function(oe){var ae=this._upstream,ie=oe&&oe.skip;if(this._dirty&&ae){var le=this.context;le.data=le.outputData=ae.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var pe;this._plan&&!ie&&(pe=this._plan(this.context));var _e=Ie(this._modBy),Ce=this._modDataCount||0,$e=Ie(oe&&oe.modBy),xe=oe&&oe.modDataCount||0;(_e!==$e||Ce!==xe)&&(pe="reset");function Ie(_n){return!(_n>=1)&&(_n=1),_n}var Ne;(this._dirty||pe==="reset")&&(this._dirty=!1,Ne=this._doReset(ie)),this._modBy=$e,this._modDataCount=xe;var Fe=oe&&oe.step;if(ae?this._dueEnd=ae._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var ze=this._dueIndex,At=Math.min(Fe!=null?this._dueIndex+Fe:1/0,this._dueEnd);if(!ie&&(Ne||ze<At)){var Lt=this._progress;if(isArray$1(Lt))for(var hn=0;hn<Lt.length;hn++)this._doProgress(Lt[hn],ze,At,$e,xe);else this._doProgress(Lt,ze,At,$e,xe)}this._dueIndex=At;var vn=this._settedOutputEnd!=null?this._settedOutputEnd:At;this._outputDueEnd=vn}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},$.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},$.prototype._doProgress=function(oe,ae,ie,le,pe){iterator.reset(ae,ie,le,pe),this._callingProgress=oe,this._callingProgress({start:ae,end:ie,count:ie-ae,next:iterator.next},this.context)},$.prototype._doReset=function(oe){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var ae,ie;!oe&&this._reset&&(ae=this._reset(this.context),ae&&ae.progress&&(ie=ae.forceFirstProgress,ae=ae.progress),isArray$1(ae)&&!ae.length&&(ae=null)),this._progress=ae,this._modBy=this._modDataCount=null;var le=this._downstream;return le&&le.dirty(),ie},$.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},$.prototype.pipe=function(oe){(this._downstream!==oe||this._dirty)&&(this._downstream=oe,oe._upstream=this,oe.dirty())},$.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},$.prototype.getUpstream=function(){return this._upstream},$.prototype.getDownstream=function(){return this._downstream},$.prototype.setOutputEnd=function(oe){this._outputDueEnd=this._settedOutputEnd=oe},$}(),iterator=function(){var $,oe,ae,ie,le,pe={reset:function($e,xe,Ie,Ne){oe=$e,$=xe,ae=Ie,ie=Ne,le=Math.ceil(ie/ae),pe.next=ae>1&&ie>0?Ce:_e}};return pe;function _e(){return oe<$?oe++:null}function Ce(){var $e=oe%le*ae+Math.ceil(oe/le),xe=oe>=$?null:$e<ie?$e:oe;return oe++,xe}}();function parseDataValue($,oe){var ae=oe&&oe.type;return ae==="ordinal"?$:(ae==="time"&&!isNumber($)&&$!=null&&$!=="-"&&($=+parseDate($)),$==null||$===""?NaN:+$)}createHashMap({number:function($){return parseFloat($)},time:function($){return+parseDate($)},trim:function($){return isString($)?trim$1($):$}});var SortOrderComparator=function(){function $(oe,ae){var ie=oe==="desc";this._resultLT=ie?1:-1,ae==null&&(ae=ie?"min":"max"),this._incomparable=ae==="min"?-1/0:1/0}return $.prototype.evaluate=function(oe,ae){var ie=isNumber(oe)?oe:numericToNumber(oe),le=isNumber(ae)?ae:numericToNumber(ae),pe=isNaN(ie),_e=isNaN(le);if(pe&&(ie=this._incomparable),_e&&(le=this._incomparable),pe&&_e){var Ce=isString(oe),$e=isString(ae);Ce&&(ie=$e?oe:0),$e&&(le=Ce?ae:0)}return ie<le?this._resultLT:ie>le?-this._resultLT:0},$}(),ExternalSource=function(){function $(){}return $.prototype.getRawData=function(){throw new Error("not supported")},$.prototype.getRawDataItem=function(oe){throw new Error("not supported")},$.prototype.cloneRawData=function(){},$.prototype.getDimensionInfo=function(oe){},$.prototype.cloneAllDimensionInfo=function(){},$.prototype.count=function(){},$.prototype.retrieveValue=function(oe,ae){},$.prototype.retrieveValueFromItem=function(oe,ae){},$.prototype.convertValue=function(oe,ae){return parseDataValue(oe,ae)},$}();function createExternalSource($,oe){var ae=new ExternalSource,ie=$.data,le=ae.sourceFormat=$.sourceFormat,pe=$.startIndex,_e="";$.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(_e);var Ce=[],$e={},xe=$.dimensionsDefine;if(xe)each$c(xe,function(Lt,hn){var vn=Lt.name,_n={index:hn,name:vn,displayName:Lt.displayName};if(Ce.push(_n),vn!=null){var bn="";hasOwn($e,vn)&&throwError(bn),$e[vn]=_n}});else for(var Ie=0;Ie<$.dimensionsDetectedCount;Ie++)Ce.push({index:Ie});var Ne=getRawSourceItemGetter(le,SERIES_LAYOUT_BY_COLUMN);oe.__isBuiltIn&&(ae.getRawDataItem=function(Lt){return Ne(ie,pe,Ce,Lt)},ae.getRawData=bind$1(getRawData,null,$)),ae.cloneRawData=bind$1(cloneRawData,null,$);var Fe=getRawSourceDataCounter(le,SERIES_LAYOUT_BY_COLUMN);ae.count=bind$1(Fe,null,ie,pe,Ce);var ze=getRawSourceValueGetter(le);ae.retrieveValue=function(Lt,hn){var vn=Ne(ie,pe,Ce,Lt);return At(vn,hn)};var At=ae.retrieveValueFromItem=function(Lt,hn){if(Lt!=null){var vn=Ce[hn];if(vn)return ze(Lt,hn,vn.name)}};return ae.getDimensionInfo=bind$1(getDimensionInfo,null,Ce,$e),ae.cloneAllDimensionInfo=bind$1(cloneAllDimensionInfo,null,Ce),ae}function getRawData($){var oe=$.sourceFormat;if(!isSupportedSourceFormat(oe)){var ae="";throwError(ae)}return $.data}function cloneRawData($){var oe=$.sourceFormat,ae=$.data;if(!isSupportedSourceFormat(oe)){var ie="";throwError(ie)}if(oe===SOURCE_FORMAT_ARRAY_ROWS){for(var le=[],pe=0,_e=ae.length;pe<_e;pe++)le.push(ae[pe].slice());return le}else if(oe===SOURCE_FORMAT_OBJECT_ROWS){for(var le=[],pe=0,_e=ae.length;pe<_e;pe++)le.push(extend({},ae[pe]));return le}}function getDimensionInfo($,oe,ae){if(ae!=null){if(isNumber(ae)||!isNaN(ae)&&!hasOwn(oe,ae))return $[ae];if(hasOwn(oe,ae))return oe[ae]}}function cloneAllDimensionInfo($){return clone$3($)}var externalTransformMap=createHashMap();function registerExternalTransform($){$=clone$3($);var oe=$.type,ae="";oe||throwError(ae);var ie=oe.split(":");ie.length!==2&&throwError(ae);var le=!1;ie[0]==="echarts"&&(oe=ie[1],le=!0),$.__isBuiltIn=le,externalTransformMap.set(oe,$)}function applyDataTransform($,oe,ae){var ie=normalizeToArray($),le=ie.length,pe="";le||throwError(pe);for(var _e=0,Ce=le;_e<Ce;_e++){var $e=ie[_e];oe=applySingleDataTransform($e,oe),_e!==Ce-1&&(oe.length=Math.max(oe.length,1))}return oe}function applySingleDataTransform($,oe,ae,ie){var le="";oe.length||throwError(le),isObject$3($)||throwError(le);var pe=$.type,_e=externalTransformMap.get(pe);_e||throwError(le);var Ce=map$2(oe,function(xe){return createExternalSource(xe,_e)}),$e=normalizeToArray(_e.transform({upstream:Ce[0],upstreamList:Ce,config:clone$3($.config)}));return map$2($e,function(xe,Ie){var Ne="";isObject$3(xe)||throwError(Ne),xe.data||throwError(Ne);var Fe=detectSourceFormat(xe.data);isSupportedSourceFormat(Fe)||throwError(Ne);var ze,At=oe[0];if(At&&Ie===0&&!xe.dimensions){var Lt=At.startIndex;Lt&&(xe.data=At.data.slice(0,Lt).concat(xe.data)),ze={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:Lt,dimensions:At.metaRawOption.dimensions}}else ze={seriesLayoutBy:SERIES_LAYOUT_BY_COLUMN,sourceHeader:0,dimensions:xe.dimensions};return createSource(xe.data,ze,null)})}function isSupportedSourceFormat($){return $===SOURCE_FORMAT_ARRAY_ROWS||$===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($){return $>65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk($){var oe=$.constructor;return oe===Array?$.slice():new oe($)}function prepareStore($,oe,ae,ie,le){var pe=dataCtors[ae||"float"];if(le){var _e=$[oe],Ce=_e&&_e.length;if(Ce!==ie){for(var $e=new pe(ie),xe=0;xe<Ce;xe++)$e[xe]=_e[xe];$[oe]=$e}}else $[oe]=new pe(ie)}var DataStore=function(){function $(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=createHashMap()}return $.prototype.initData=function(oe,ae,ie){this._provider=oe,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var le=oe.getSource(),pe=this.defaultDimValueGetter=defaultDimValueGetters[le.sourceFormat];this._dimValueGetter=ie||pe,this._rawExtent=[],shouldRetrieveDataByName(le),this._dimensions=map$2(ae,function(_e){return{type:_e.type,property:_e.property}}),this._initDataFromProvider(0,oe.count())},$.prototype.getProvider=function(){return this._provider},$.prototype.getSource=function(){return this._provider.getSource()},$.prototype.ensureCalculationDimension=function(oe,ae){var ie=this._calcDimNameToIdx,le=this._dimensions,pe=ie.get(oe);if(pe!=null){if(le[pe].type===ae)return pe}else pe=le.length;return le[pe]={type:ae},ie.set(oe,pe),this._chunks[pe]=new dataCtors[ae||"float"](this._rawCount),this._rawExtent[pe]=getInitialExtent(),pe},$.prototype.collectOrdinalMeta=function(oe,ae){var ie=this._chunks[oe],le=this._dimensions[oe],pe=this._rawExtent,_e=le.ordinalOffset||0,Ce=ie.length;_e===0&&(pe[oe]=getInitialExtent());for(var $e=pe[oe],xe=_e;xe<Ce;xe++){var Ie=ie[xe]=ae.parseAndCollect(ie[xe]);isNaN(Ie)||($e[0]=Math.min(Ie,$e[0]),$e[1]=Math.max(Ie,$e[1]))}le.ordinalMeta=ae,le.ordinalOffset=Ce,le.type="ordinal"},$.prototype.getOrdinalMeta=function(oe){var ae=this._dimensions[oe],ie=ae.ordinalMeta;return ie},$.prototype.getDimensionProperty=function(oe){var ae=this._dimensions[oe];return ae&&ae.property},$.prototype.appendData=function(oe){var ae=this._provider,ie=this.count();ae.appendData(oe);var le=ae.count();return ae.persistent||(le+=ie),ie<le&&this._initDataFromProvider(ie,le,!0),[ie,le]},$.prototype.appendValues=function(oe,ae){for(var ie=this._chunks,le=this._dimensions,pe=le.length,_e=this._rawExtent,Ce=this.count(),$e=Ce+Math.max(oe.length,ae||0),xe=0;xe<pe;xe++){var Ie=le[xe];prepareStore(ie,xe,Ie.type,$e,!0)}for(var Ne=[],Fe=Ce;Fe<$e;Fe++)for(var ze=Fe-Ce,At=0;At<pe;At++){var Ie=le[At],Lt=defaultDimValueGetters.arrayRows.call(this,oe[ze]||Ne,Ie.property,ze,At);ie[At][Fe]=Lt;var hn=_e[At];Lt<hn[0]&&(hn[0]=Lt),Lt>hn[1]&&(hn[1]=Lt)}return this._rawCount=this._count=$e,{start:Ce,end:$e}},$.prototype._initDataFromProvider=function(oe,ae,ie){for(var le=this._provider,pe=this._chunks,_e=this._dimensions,Ce=_e.length,$e=this._rawExtent,xe=map$2(_e,function(_n){return _n.property}),Ie=0;Ie<Ce;Ie++){var Ne=_e[Ie];$e[Ie]||($e[Ie]=getInitialExtent()),prepareStore(pe,Ie,Ne.type,ae,ie)}if(le.fillStorage)le.fillStorage(oe,ae,pe,$e);else for(var Fe=[],ze=oe;ze<ae;ze++){Fe=le.getItem(ze,Fe);for(var At=0;At<Ce;At++){var Lt=pe[At],hn=this._dimValueGetter(Fe,xe[At],ze,At);Lt[ze]=hn;var vn=$e[At];hn<vn[0]&&(vn[0]=hn),hn>vn[1]&&(vn[1]=hn)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=ae,this._extent=[]},$.prototype.count=function(){return this._count},$.prototype.get=function(oe,ae){if(!(ae>=0&&ae<this._count))return NaN;var ie=this._chunks[oe];return ie?ie[this.getRawIndex(ae)]:NaN},$.prototype.getValues=function(oe,ae){var ie=[],le=[];if(ae==null){ae=oe,oe=[];for(var pe=0;pe<this._dimensions.length;pe++)le.push(pe)}else le=oe;for(var pe=0,_e=le.length;pe<_e;pe++)ie.push(this.get(le[pe],ae));return ie},$.prototype.getByRawIndex=function(oe,ae){if(!(ae>=0&&ae<this._rawCount))return NaN;var ie=this._chunks[oe];return ie?ie[ae]:NaN},$.prototype.getSum=function(oe){var ae=this._chunks[oe],ie=0;if(ae)for(var le=0,pe=this.count();le<pe;le++){var _e=this.get(oe,le);isNaN(_e)||(ie+=_e)}return ie},$.prototype.getMedian=function(oe){var ae=[];this.each([oe],function(pe){isNaN(pe)||ae.push(pe)});var ie=ae.sort(function(pe,_e){return pe-_e}),le=this.count();return le===0?0:le%2===1?ie[(le-1)/2]:(ie[le/2]+ie[le/2-1])/2},$.prototype.indexOfRawIndex=function(oe){if(oe>=this._rawCount||oe<0)return-1;if(!this._indices)return oe;var ae=this._indices,ie=ae[oe];if(ie!=null&&ie<this._count&&ie===oe)return oe;for(var le=0,pe=this._count-1;le<=pe;){var _e=(le+pe)/2|0;if(ae[_e]<oe)le=_e+1;else if(ae[_e]>oe)pe=_e-1;else return _e}return-1},$.prototype.indicesOfNearest=function(oe,ae,ie){var le=this._chunks,pe=le[oe],_e=[];if(!pe)return _e;ie==null&&(ie=1/0);for(var Ce=1/0,$e=-1,xe=0,Ie=0,Ne=this.count();Ie<Ne;Ie++){var Fe=this.getRawIndex(Ie),ze=ae-pe[Fe],At=Math.abs(ze);At<=ie&&((At<Ce||At===Ce&&ze>=0&&$e<0)&&(Ce=At,$e=ze,xe=0),ze===$e&&(_e[xe++]=Ie))}return _e.length=xe,_e},$.prototype.getIndices=function(){var oe,ae=this._indices;if(ae){var ie=ae.constructor,le=this._count;if(ie===Array){oe=new ie(le);for(var pe=0;pe<le;pe++)oe[pe]=ae[pe]}else oe=new ie(ae.buffer,0,le)}else{var ie=getIndicesCtor(this._rawCount);oe=new ie(this.count());for(var pe=0;pe<oe.length;pe++)oe[pe]=pe}return oe},$.prototype.filter=function(oe,ae){if(!this._count)return this;for(var ie=this.clone(),le=ie.count(),pe=getIndicesCtor(ie._rawCount),_e=new pe(le),Ce=[],$e=oe.length,xe=0,Ie=oe[0],Ne=ie._chunks,Fe=0;Fe<le;Fe++){var ze=void 0,At=ie.getRawIndex(Fe);if($e===0)ze=ae(Fe);else if($e===1){var Lt=Ne[Ie][At];ze=ae(Lt,Fe)}else{for(var hn=0;hn<$e;hn++)Ce[hn]=Ne[oe[hn]][At];Ce[hn]=Fe,ze=ae.apply(null,Ce)}ze&&(_e[xe++]=At)}return xe<le&&(ie._indices=_e),ie._count=xe,ie._extent=[],ie._updateGetRawIdx(),ie},$.prototype.selectRange=function(oe){var ae=this.clone(),ie=ae._count;if(!ie)return this;var le=keys(oe),pe=le.length;if(!pe)return this;var _e=ae.count(),Ce=getIndicesCtor(ae._rawCount),$e=new Ce(_e),xe=0,Ie=le[0],Ne=oe[Ie][0],Fe=oe[Ie][1],ze=ae._chunks,At=!1;if(!ae._indices){var Lt=0;if(pe===1){for(var hn=ze[le[0]],vn=0;vn<ie;vn++){var _n=hn[vn];(_n>=Ne&&_n<=Fe||isNaN(_n))&&($e[xe++]=Lt),Lt++}At=!0}else if(pe===2){for(var hn=ze[le[0]],bn=ze[le[1]],Cn=oe[le[1]][0],En=oe[le[1]][1],vn=0;vn<ie;vn++){var _n=hn[vn],$n=bn[vn];(_n>=Ne&&_n<=Fe||isNaN(_n))&&($n>=Cn&&$n<=En||isNaN($n))&&($e[xe++]=Lt),Lt++}At=!0}}if(!At)if(pe===1)for(var vn=0;vn<_e;vn++){var wn=ae.getRawIndex(vn),_n=ze[le[0]][wn];(_n>=Ne&&_n<=Fe||isNaN(_n))&&($e[xe++]=wn)}else for(var vn=0;vn<_e;vn++){for(var Tn=!0,wn=ae.getRawIndex(vn),xn=0;xn<pe;xn++){var kn=le[xn],_n=ze[kn][wn];(_n<oe[kn][0]||_n>oe[kn][1])&&(Tn=!1)}Tn&&($e[xe++]=ae.getRawIndex(vn))}return xe<_e&&(ae._indices=$e),ae._count=xe,ae._extent=[],ae._updateGetRawIdx(),ae},$.prototype.map=function(oe,ae){var ie=this.clone(oe);return this._updateDims(ie,oe,ae),ie},$.prototype.modify=function(oe,ae){this._updateDims(this,oe,ae)},$.prototype._updateDims=function(oe,ae,ie){for(var le=oe._chunks,pe=[],_e=ae.length,Ce=oe.count(),$e=[],xe=oe._rawExtent,Ie=0;Ie<ae.length;Ie++)xe[ae[Ie]]=getInitialExtent();for(var Ne=0;Ne<Ce;Ne++){for(var Fe=oe.getRawIndex(Ne),ze=0;ze<_e;ze++)$e[ze]=le[ae[ze]][Fe];$e[_e]=Ne;var At=ie&&ie.apply(null,$e);if(At!=null){typeof At!="object"&&(pe[0]=At,At=pe);for(var Ie=0;Ie<At.length;Ie++){var Lt=ae[Ie],hn=At[Ie],vn=xe[Lt],_n=le[Lt];_n&&(_n[Fe]=hn),hn<vn[0]&&(vn[0]=hn),hn>vn[1]&&(vn[1]=hn)}}}},$.prototype.lttbDownSample=function(oe,ae){var ie=this.clone([oe],!0),le=ie._chunks,pe=le[oe],_e=this.count(),Ce=0,$e=Math.floor(1/ae),xe=this.getRawIndex(0),Ie,Ne,Fe,ze=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(_e/$e)+2)*2,_e));ze[Ce++]=xe;for(var At=1;At<_e-1;At+=$e){for(var Lt=Math.min(At+$e,_e-1),hn=Math.min(At+$e*2,_e),vn=(hn+Lt)/2,_n=0,bn=Lt;bn<hn;bn++){var Cn=this.getRawIndex(bn),En=pe[Cn];isNaN(En)||(_n+=En)}_n/=hn-Lt;var $n=At,wn=Math.min(At+$e,_e),Tn=At-1,xn=pe[xe];Ie=-1,Fe=$n;for(var kn=-1,An=0,bn=$n;bn<wn;bn++){var Cn=this.getRawIndex(bn),En=pe[Cn];if(isNaN(En)){An++,kn<0&&(kn=Cn);continue}Ne=Math.abs((Tn-vn)*(En-xn)-(Tn-bn)*(_n-xn)),Ne>Ie&&(Ie=Ne,Fe=Cn)}An>0&&An<wn-$n&&(ze[Ce++]=Math.min(kn,Fe),Fe=Math.max(kn,Fe)),ze[Ce++]=Fe,xe=Fe}return ze[Ce++]=this.getRawIndex(_e-1),ie._count=Ce,ie._indices=ze,ie.getRawIndex=this._getRawIdx,ie},$.prototype.downSample=function(oe,ae,ie,le){for(var pe=this.clone([oe],!0),_e=pe._chunks,Ce=[],$e=Math.floor(1/ae),xe=_e[oe],Ie=this.count(),Ne=pe._rawExtent[oe]=getInitialExtent(),Fe=new(getIndicesCtor(this._rawCount))(Math.ceil(Ie/$e)),ze=0,At=0;At<Ie;At+=$e){$e>Ie-At&&($e=Ie-At,Ce.length=$e);for(var Lt=0;Lt<$e;Lt++){var hn=this.getRawIndex(At+Lt);Ce[Lt]=xe[hn]}var vn=ie(Ce),_n=this.getRawIndex(Math.min(At+le(Ce,vn)||0,Ie-1));xe[_n]=vn,vn<Ne[0]&&(Ne[0]=vn),vn>Ne[1]&&(Ne[1]=vn),Fe[ze++]=_n}return pe._count=ze,pe._indices=Fe,pe._updateGetRawIdx(),pe},$.prototype.each=function(oe,ae){if(this._count)for(var ie=oe.length,le=this._chunks,pe=0,_e=this.count();pe<_e;pe++){var Ce=this.getRawIndex(pe);switch(ie){case 0:ae(pe);break;case 1:ae(le[oe[0]][Ce],pe);break;case 2:ae(le[oe[0]][Ce],le[oe[1]][Ce],pe);break;default:for(var $e=0,xe=[];$e<ie;$e++)xe[$e]=le[oe[$e]][Ce];xe[$e]=pe,ae.apply(null,xe)}}},$.prototype.getDataExtent=function(oe){var ae=this._chunks[oe],ie=getInitialExtent();if(!ae)return ie;var le=this.count(),pe=!this._indices,_e;if(pe)return this._rawExtent[oe].slice();if(_e=this._extent[oe],_e)return _e.slice();_e=ie;for(var Ce=_e[0],$e=_e[1],xe=0;xe<le;xe++){var Ie=this.getRawIndex(xe),Ne=ae[Ie];Ne<Ce&&(Ce=Ne),Ne>$e&&($e=Ne)}return _e=[Ce,$e],this._extent[oe]=_e,_e},$.prototype.getRawDataItem=function(oe){var ae=this.getRawIndex(oe);if(this._provider.persistent)return this._provider.getItem(ae);for(var ie=[],le=this._chunks,pe=0;pe<le.length;pe++)ie.push(le[pe][ae]);return ie},$.prototype.clone=function(oe,ae){var ie=new $,le=this._chunks,pe=oe&&reduce(oe,function(Ce,$e){return Ce[$e]=!0,Ce},{});if(pe)for(var _e=0;_e<le.length;_e++)ie._chunks[_e]=pe[_e]?cloneChunk(le[_e]):le[_e];else ie._chunks=le;return this._copyCommonProps(ie),ae||(ie._indices=this._cloneIndices()),ie._updateGetRawIdx(),ie},$.prototype._copyCommonProps=function(oe){oe._count=this._count,oe._rawCount=this._rawCount,oe._provider=this._provider,oe._dimensions=this._dimensions,oe._extent=clone$3(this._extent),oe._rawExtent=clone$3(this._rawExtent)},$.prototype._cloneIndices=function(){if(this._indices){var oe=this._indices.constructor,ae=void 0;if(oe===Array){var ie=this._indices.length;ae=new oe(ie);for(var le=0;le<ie;le++)ae[le]=this._indices[le]}else ae=new oe(this._indices);return ae}return null},$.prototype._getRawIdxIdentity=function(oe){return oe},$.prototype._getRawIdx=function(oe){return oe<this._count&&oe>=0?this._indices[oe]:-1},$.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},$.internalField=function(){function oe(ae,ie,le,pe){return parseDataValue(ae[pe],this._dimensions[pe])}defaultDimValueGetters={arrayRows:oe,objectRows:function(ae,ie,le,pe){return parseDataValue(ae[ie],this._dimensions[pe])},keyedColumns:oe,original:function(ae,ie,le,pe){var _e=ae&&(ae.value==null?ae:ae.value);return parseDataValue(_e instanceof Array?_e[pe]:_e,this._dimensions[pe])},typedArray:function(ae,ie,le,pe){return ae[pe]}}}(),$}();const DataStore$1=DataStore;var SourceManager=function(){function $(oe){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=oe}return $.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},$.prototype._setLocalSource=function(oe,ae){this._sourceList=oe,this._upstreamSignList=ae,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},$.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},$.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},$.prototype._createSource=function(){this._setLocalSource([],[]);var oe=this._sourceHost,ae=this._getUpstreamSourceManagers(),ie=!!ae.length,le,pe;if(isSeries(oe)){var _e=oe,Ce=void 0,$e=void 0,xe=void 0;if(ie){var Ie=ae[0];Ie.prepareSource(),xe=Ie.getSource(),Ce=xe.data,$e=xe.sourceFormat,pe=[Ie._getVersionSign()]}else Ce=_e.get("data",!0),$e=isTypedArray(Ce)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,pe=[];var Ne=this._getSourceMetaRawOption()||{},Fe=xe&&xe.metaRawOption||{},ze=retrieve2(Ne.seriesLayoutBy,Fe.seriesLayoutBy)||null,At=retrieve2(Ne.sourceHeader,Fe.sourceHeader),Lt=retrieve2(Ne.dimensions,Fe.dimensions),hn=ze!==Fe.seriesLayoutBy||!!At!=!!Fe.sourceHeader||Lt;le=hn?[createSource(Ce,{seriesLayoutBy:ze,sourceHeader:At,dimensions:Lt},$e)]:[]}else{var vn=oe;if(ie){var _n=this._applyTransform(ae);le=_n.sourceList,pe=_n.upstreamSignList}else{var bn=vn.get("source",!0);le=[createSource(bn,this._getSourceMetaRawOption(),null)],pe=[]}}this._setLocalSource(le,pe)},$.prototype._applyTransform=function(oe){var ae=this._sourceHost,ie=ae.get("transform",!0),le=ae.get("fromTransformResult",!0);if(le!=null){var pe="";oe.length!==1&&doThrow(pe)}var _e,Ce=[],$e=[];return each$c(oe,function(xe){xe.prepareSource();var Ie=xe.getSource(le||0),Ne="";le!=null&&!Ie&&doThrow(Ne),Ce.push(Ie),$e.push(xe._getVersionSign())}),ie?_e=applyDataTransform(ie,Ce,{datasetIndex:ae.componentIndex}):le!=null&&(_e=[cloneSourceShallow(Ce[0])]),{sourceList:_e,upstreamSignList:$e}},$.prototype._isDirty=function(){if(this._dirty)return!0;for(var oe=this._getUpstreamSourceManagers(),ae=0;ae<oe.length;ae++){var ie=oe[ae];if(ie._isDirty()||this._upstreamSignList[ae]!==ie._getVersionSign())return!0}},$.prototype.getSource=function(oe){oe=oe||0;var ae=this._sourceList[oe];if(!ae){var ie=this._getUpstreamSourceManagers();return ie[0]&&ie[0].getSource(oe)}return ae},$.prototype.getSharedDataStore=function(oe){var ae=oe.makeStoreSchema();return this._innerGetDataStore(ae.dimensions,oe.source,ae.hash)},$.prototype._innerGetDataStore=function(oe,ae,ie){var le=0,pe=this._storeList,_e=pe[le];_e||(_e=pe[le]={});var Ce=_e[ie];if(!Ce){var $e=this._getUpstreamSourceManagers()[0];isSeries(this._sourceHost)&&$e?Ce=$e._innerGetDataStore(oe,ae,ie):(Ce=new DataStore$1,Ce.initData(new DefaultDataProvider(ae,oe.length),oe)),_e[ie]=Ce}return Ce},$.prototype._getUpstreamSourceManagers=function(){var oe=this._sourceHost;if(isSeries(oe)){var ae=querySeriesUpstreamDatasetModel(oe);return ae?[ae.getSourceManager()]:[]}else return map$2(queryDatasetUpstreamDatasetModels(oe),function(ie){return ie.getSourceManager()})},$.prototype._getSourceMetaRawOption=function(){var oe=this._sourceHost,ae,ie,le;if(isSeries(oe))ae=oe.get("seriesLayoutBy",!0),ie=oe.get("sourceHeader",!0),le=oe.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var pe=oe;ae=pe.get("seriesLayoutBy",!0),ie=pe.get("sourceHeader",!0),le=pe.get("dimensions",!0)}return{seriesLayoutBy:ae,sourceHeader:ie,dimensions:le}},$}();function isSeries($){return $.mainType==="series"}function doThrow($){throw new Error($)}var TOOLTIP_LINE_HEIGHT_CSS="line-height:1";function getTooltipTextStyle($,oe){var ae=$.color||"#6e7079",ie=$.fontSize||12,le=$.fontWeight||"400",pe=$.color||"#464646",_e=$.fontSize||14,Ce=$.fontWeight||"900";return oe==="html"?{nameStyle:"font-size:"+encodeHTML(ie+"")+"px;color:"+encodeHTML(ae)+";font-weight:"+encodeHTML(le+""),valueStyle:"font-size:"+encodeHTML(_e+"")+"px;color:"+encodeHTML(pe)+";font-weight:"+encodeHTML(Ce+"")}:{nameStyle:{fontSize:ie,fill:ae,fontWeight:le},valueStyle:{fontSize:_e,fill:pe,fontWeight:Ce}}}var HTML_GAPS=[0,10,20,30],RICH_TEXT_GAPS=["",`
`,`
`,`
`];function createTooltipMarkup($,oe){return oe.type=$,oe}function isSectionFragment($){return $.type==="section"}function getBuilder($){return isSectionFragment($)?buildSection:buildNameValue}function getBlockGapLevel($){if(isSectionFragment($)){var oe=0,ae=$.blocks.length,ie=ae>1||ae>0&&!$.noHeader;return each$c($.blocks,function(le){var pe=getBlockGapLevel(le);pe>=oe&&(oe=pe+ +(ie&&(!pe||isSectionFragment(le)&&!le.noHeader)))}),oe}return 0}function buildSection($,oe,ae,ie){var le=oe.noHeader,pe=getGap(getBlockGapLevel(oe)),_e=[],Ce=oe.blocks||[];assert(!Ce||isArray$1(Ce)),Ce=Ce||[];var $e=$.orderMode;if(oe.sortBlocks&&$e){Ce=Ce.slice();var xe={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(xe,$e)){var Ie=new SortOrderComparator(xe[$e],null);Ce.sort(function(At,Lt){return Ie.evaluate(At.sortParam,Lt.sortParam)})}else $e==="seriesDesc"&&Ce.reverse()}each$c(Ce,function(At,Lt){var hn=oe.valueFormatter,vn=getBuilder(At)(hn?extend(extend({},$),{valueFormatter:hn}):$,At,Lt>0?pe.html:0,ie);vn!=null&&_e.push(vn)});var Ne=$.renderMode==="richText"?_e.join(pe.richText):wrapBlockHTML(_e.join(""),le?ae:pe.html);if(le)return Ne;var Fe=makeValueReadable(oe.header,"ordinal",$.useUTC),ze=getTooltipTextStyle(ie,$.renderMode).nameStyle;return $.renderMode==="richText"?wrapInlineNameRichText($,Fe,ze)+pe.richText+Ne:wrapBlockHTML('<div style="'+ze+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+encodeHTML(Fe)+"</div>"+Ne,ae)}function buildNameValue($,oe,ae,ie){var le=$.renderMode,pe=oe.noName,_e=oe.noValue,Ce=!oe.markerType,$e=oe.name,xe=$.useUTC,Ie=oe.valueFormatter||$.valueFormatter||function(Cn){return Cn=isArray$1(Cn)?Cn:[Cn],map$2(Cn,function(En,$n){return makeValueReadable(En,isArray$1(ze)?ze[$n]:ze,xe)})};if(!(pe&&_e)){var Ne=Ce?"":$.markupStyleCreator.makeTooltipMarker(oe.markerType,oe.markerColor||"#333",le),Fe=pe?"":makeValueReadable($e,"ordinal",xe),ze=oe.valueType,At=_e?[]:Ie(oe.value),Lt=!Ce||!pe,hn=!Ce&&pe,vn=getTooltipTextStyle(ie,le),_n=vn.nameStyle,bn=vn.valueStyle;return le==="richText"?(Ce?"":Ne)+(pe?"":wrapInlineNameRichText($,Fe,_n))+(_e?"":wrapInlineValueRichText($,At,Lt,hn,bn)):wrapBlockHTML((Ce?"":Ne)+(pe?"":wrapInlineNameHTML(Fe,!Ce,_n))+(_e?"":wrapInlineValueHTML(At,Lt,hn,bn)),ae)}}function buildTooltipMarkup($,oe,ae,ie,le,pe){if($){var _e=getBuilder($),Ce={useUTC:le,renderMode:ae,orderMode:ie,markupStyleCreator:oe,valueFormatter:$.valueFormatter};return _e(Ce,$,0,pe)}}function getGap($){return{html:HTML_GAPS[$],richText:RICH_TEXT_GAPS[$]}}function wrapBlockHTML($,oe){var ae='<div style="clear:both"></div>',ie="margin: "+oe+"px 0 0";return'<div style="'+ie+";"+TOOLTIP_LINE_HEIGHT_CSS+';">'+$+ae+"</div>"}function wrapInlineNameHTML($,oe,ae){var ie=oe?"margin-left:2px":"";return'<span style="'+ae+";"+ie+'">'+encodeHTML($)+"</span>"}function wrapInlineValueHTML($,oe,ae,ie){var le=ae?"10px":"20px",pe=oe?"float:right;margin-left:"+le:"";return $=isArray$1($)?$:[$],'<span style="'+pe+";"+ie+'">'+map$2($,function(_e){return encodeHTML(_e)}).join("&nbsp;&nbsp;")+"</span>"}function wrapInlineNameRichText($,oe,ae){return $.markupStyleCreator.wrapRichTextStyle(oe,ae)}function wrapInlineValueRichText($,oe,ae,ie,le){var pe=[le],_e=ie?10:20;return ae&&pe.push({padding:[0,0,0,_e],align:"right"}),$.markupStyleCreator.wrapRichTextStyle(isArray$1(oe)?oe.join(" "):oe,pe)}function retrieveVisualColorForTooltipMarker($,oe){var ae=$.getData().getItemVisual(oe,"style"),ie=ae[$.visualDrawType];return convertToColorString(ie)}function getPaddingFromTooltipModel($,oe){var ae=$.get("padding");return ae??(oe==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function $(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return $.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},$.prototype.makeTooltipMarker=function(oe,ae,ie){var le=ie==="richText"?this._generateStyleName():null,pe=getTooltipMarker({color:ae,type:oe,renderMode:ie,markerId:le});return isString(pe)?pe:(this.richTextStyles[le]=pe.style,pe.content)},$.prototype.wrapRichTextStyle=function(oe,ae){var ie={};isArray$1(ae)?each$c(ae,function(pe){return extend(ie,pe)}):extend(ie,ae);var le=this._generateStyleName();return this.richTextStyles[le]=ie,"{"+le+"|"+oe+"}"},$}();function defaultSeriesFormatTooltip($){var oe=$.series,ae=$.dataIndex,ie=$.multipleSeries,le=oe.getData(),pe=le.mapDimensionsAll("defaultedTooltip"),_e=pe.length,Ce=oe.getRawValue(ae),$e=isArray$1(Ce),xe=retrieveVisualColorForTooltipMarker(oe,ae),Ie,Ne,Fe,ze;if(_e>1||$e&&!_e){var At=formatTooltipArrayValue(Ce,oe,ae,pe,xe);Ie=At.inlineValues,Ne=At.inlineValueTypes,Fe=At.blocks,ze=At.inlineValues[0]}else if(_e){var Lt=le.getDimensionInfo(pe[0]);ze=Ie=retrieveRawValue(le,ae,pe[0]),Ne=Lt.type}else ze=Ie=$e?Ce[0]:Ce;var hn=isNameSpecified(oe),vn=hn&&oe.name||"",_n=le.getName(ae),bn=ie?vn:_n;return createTooltipMarkup("section",{header:vn,noHeader:ie||!hn,sortParam:ze,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:xe,name:bn,noName:!trim$1(bn),value:Ie,valueType:Ne})].concat(Fe||[])})}function formatTooltipArrayValue($,oe,ae,ie,le){var pe=oe.getData(),_e=reduce($,function(Ne,Fe,ze){var At=pe.getDimensionInfo(ze);return Ne=Ne||At&&At.tooltip!==!1&&At.displayName!=null},!1),Ce=[],$e=[],xe=[];ie.length?each$c(ie,function(Ne){Ie(retrieveRawValue(pe,ae,Ne),Ne)}):each$c($,Ie);function Ie(Ne,Fe){var ze=pe.getDimensionInfo(Fe);!ze||ze.otherDims.tooltip===!1||(_e?xe.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:le,name:ze.displayName,value:Ne,valueType:ze.type})):(Ce.push(Ne),$e.push(ze.type)))}return{inlineValues:Ce,inlineValueTypes:$e,blocks:xe}}var inner$b=makeInner();function getSelectionKey($,oe){return $.getName(oe)||$.getId(oe)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae._selectedDataIndicesMap={},ae}return oe.prototype.init=function(ae,ie,le){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(ae,le);var pe=inner$b(this).sourceManager=new SourceManager(this);pe.prepareSource();var _e=this.getInitialData(ae,le);wrapData(_e,this),this.dataTask.context.data=_e,inner$b(this).dataBeforeProcessed=_e,autoSeriesName(this),this._initSelectedMapFromData(_e)},oe.prototype.mergeDefaultAndTheme=function(ae,ie){var le=fetchLayoutMode(this),pe=le?getLayoutParams(ae):{},_e=this.subType;ComponentModel$1.hasClass(_e)&&(_e+="Series"),merge(ae,ie.getTheme().get(this.subType)),merge(ae,this.getDefaultOption()),defaultEmphasis(ae,"label",["show"]),this.fillDataTextStyle(ae.data),le&&mergeLayoutParam(ae,pe,le)},oe.prototype.mergeOption=function(ae,ie){ae=merge(this.option,ae,!0),this.fillDataTextStyle(ae.data);var le=fetchLayoutMode(this);le&&mergeLayoutParam(this.option,ae,le);var pe=inner$b(this).sourceManager;pe.dirty(),pe.prepareSource();var _e=this.getInitialData(ae,ie);wrapData(_e,this),this.dataTask.dirty(),this.dataTask.context.data=_e,inner$b(this).dataBeforeProcessed=_e,autoSeriesName(this),this._initSelectedMapFromData(_e)},oe.prototype.fillDataTextStyle=function(ae){if(ae&&!isTypedArray(ae))for(var ie=["show"],le=0;le<ae.length;le++)ae[le]&&ae[le].label&&defaultEmphasis(ae[le],"label",ie)},oe.prototype.getInitialData=function(ae,ie){},oe.prototype.appendData=function(ae){var ie=this.getRawData();ie.appendData(ae.data)},oe.prototype.getData=function(ae){var ie=getCurrentTask(this);if(ie){var le=ie.context.data;return ae==null?le:le.getLinkedData(ae)}else return inner$b(this).data},oe.prototype.getAllData=function(){var ae=this.getData();return ae&&ae.getLinkedDataAll?ae.getLinkedDataAll():[{data:ae}]},oe.prototype.setData=function(ae){var ie=getCurrentTask(this);if(ie){var le=ie.context;le.outputData=ae,ie!==this.dataTask&&(le.data=ae)}inner$b(this).data=ae},oe.prototype.getEncode=function(){var ae=this.get("encode",!0);if(ae)return createHashMap(ae)},oe.prototype.getSourceManager=function(){return inner$b(this).sourceManager},oe.prototype.getSource=function(){return this.getSourceManager().getSource()},oe.prototype.getRawData=function(){return inner$b(this).dataBeforeProcessed},oe.prototype.getColorBy=function(){var ae=this.get("colorBy");return ae||"series"},oe.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},oe.prototype.getBaseAxis=function(){var ae=this.coordinateSystem;return ae&&ae.getBaseAxis&&ae.getBaseAxis()},oe.prototype.formatTooltip=function(ae,ie,le){return defaultSeriesFormatTooltip({series:this,dataIndex:ae,multipleSeries:ie})},oe.prototype.isAnimationEnabled=function(){var ae=this.ecModel;if(env$1.node&&!(ae&&ae.ssr))return!1;var ie=this.getShallow("animation");return ie&&this.getData().count()>this.getShallow("animationThreshold")&&(ie=!1),!!ie},oe.prototype.restoreData=function(){this.dataTask.dirty()},oe.prototype.getColorFromPalette=function(ae,ie,le){var pe=this.ecModel,_e=PaletteMixin.prototype.getColorFromPalette.call(this,ae,ie,le);return _e||(_e=pe.getColorFromPalette(ae,ie,le)),_e},oe.prototype.coordDimToDataDim=function(ae){return this.getRawData().mapDimensionsAll(ae)},oe.prototype.getProgressive=function(){return this.get("progressive")},oe.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},oe.prototype.select=function(ae,ie){this._innerSelect(this.getData(ie),ae)},oe.prototype.unselect=function(ae,ie){var le=this.option.selectedMap;if(le){var pe=this.option.selectedMode,_e=this.getData(ie);if(pe==="series"||le==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var Ce=0;Ce<ae.length;Ce++){var $e=ae[Ce],xe=getSelectionKey(_e,$e);le[xe]=!1,this._selectedDataIndicesMap[xe]=-1}}},oe.prototype.toggleSelect=function(ae,ie){for(var le=[],pe=0;pe<ae.length;pe++)le[0]=ae[pe],this.isSelected(ae[pe],ie)?this.unselect(le,ie):this.select(le,ie)},oe.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var ae=this._selectedDataIndicesMap,ie=keys(ae),le=[],pe=0;pe<ie.length;pe++){var _e=ae[ie[pe]];_e>=0&&le.push(_e)}return le},oe.prototype.isSelected=function(ae,ie){var le=this.option.selectedMap;if(!le)return!1;var pe=this.getData(ie);return(le==="all"||le[getSelectionKey(pe,ae)])&&!pe.getItemModel(ae).get(["select","disabled"])},oe.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var ae=this.option.universalTransition;return ae?ae===!0?!0:ae&&ae.enabled:!1},oe.prototype._innerSelect=function(ae,ie){var le,pe,_e=this.option,Ce=_e.selectedMode,$e=ie.length;if(!(!Ce||!$e)){if(Ce==="series")_e.selectedMap="all";else if(Ce==="multiple"){isObject$3(_e.selectedMap)||(_e.selectedMap={});for(var xe=_e.selectedMap,Ie=0;Ie<$e;Ie++){var Ne=ie[Ie],Fe=getSelectionKey(ae,Ne);xe[Fe]=!0,this._selectedDataIndicesMap[Fe]=ae.getRawIndex(Ne)}}else if(Ce==="single"||Ce===!0){var ze=ie[$e-1],Fe=getSelectionKey(ae,ze);_e.selectedMap=(le={},le[Fe]=!0,le),this._selectedDataIndicesMap=(pe={},pe[Fe]=ae.getRawIndex(ze),pe)}}},oe.prototype._initSelectedMapFromData=function(ae){if(!this.option.selectedMap){var ie=[];ae.hasItemOption&&ae.each(function(le){var pe=ae.getRawDataItem(le);pe&&pe.selected&&ie.push(le)}),ie.length>0&&this._innerSelect(ae,ie)}},oe.registerClass=function(ae){return ComponentModel$1.registerClass(ae)},oe.protoInitialize=function(){var ae=oe.prototype;ae.type="series.__base__",ae.seriesIndex=0,ae.ignoreStyleOnData=!1,ae.hasSymbolVisual=!1,ae.defaultSymbol="circle",ae.visualStyleAccessPath="itemStyle",ae.visualDrawType="fill"}(),oe}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName($){var oe=$.name;isNameSpecified($)||($.name=getSeriesAutoName($)||oe)}function getSeriesAutoName($){var oe=$.getRawData(),ae=oe.mapDimensionsAll("seriesName"),ie=[];return each$c(ae,function(le){var pe=oe.getDimensionInfo(le);pe.displayName&&ie.push(pe.displayName)}),ie.join(" ")}function dataTaskCount($){return $.model.getRawData().count()}function dataTaskReset($){var oe=$.model;return oe.setData(oe.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress($,oe){oe.outputData&&$.end>oe.outputData.count()&&oe.model.getRawData().cloneShallow(oe.outputData)}function wrapData($,oe){each$c(concatArray($.CHANGABLE_METHODS,$.DOWNSAMPLE_METHODS),function(ae){$.wrapMethod(ae,curry$1(onDataChange,oe))})}function onDataChange($,oe){var ae=getCurrentTask($);return ae&&ae.setOutputEnd((oe||this).count()),oe}function getCurrentTask($){var oe=($.ecModel||{}).scheduler,ae=oe&&oe.getPipeline($.uid);if(ae){var ie=ae.currentTask;if(ie){var le=ie.agentStubMap;le&&(ie=le.get($.uid))}return ie}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewComponent")}return $.prototype.init=function(oe,ae){},$.prototype.render=function(oe,ae,ie,le){},$.prototype.dispose=function(oe,ae){},$.prototype.updateView=function(oe,ae,ie,le){},$.prototype.updateLayout=function(oe,ae,ie,le){},$.prototype.updateVisual=function(oe,ae,ie,le){},$.prototype.toggleBlurSeries=function(oe,ae,ie){},$.prototype.eachRendered=function(oe){var ae=this.group;ae&&ae.traverse(oe)},$}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var $=makeInner();return function(oe){var ae=$(oe),ie=oe.pipelineContext,le=!!ae.large,pe=!!ae.progressiveRender,_e=ae.large=!!(ie&&ie.large),Ce=ae.progressiveRender=!!(ie&&ie.progressiveRender);return(le!==_e||pe!==Ce)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function $(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return $.prototype.init=function(oe,ae){},$.prototype.render=function(oe,ae,ie,le){},$.prototype.highlight=function(oe,ae,ie,le){var pe=oe.getData(le&&le.dataType);pe&&toggleHighlight(pe,le,"emphasis")},$.prototype.downplay=function(oe,ae,ie,le){var pe=oe.getData(le&&le.dataType);pe&&toggleHighlight(pe,le,"normal")},$.prototype.remove=function(oe,ae){this.group.removeAll()},$.prototype.dispose=function(oe,ae){},$.prototype.updateView=function(oe,ae,ie,le){this.render(oe,ae,ie,le)},$.prototype.updateLayout=function(oe,ae,ie,le){this.render(oe,ae,ie,le)},$.prototype.updateVisual=function(oe,ae,ie,le){this.render(oe,ae,ie,le)},$.prototype.eachRendered=function(oe){traverseElements(this.group,oe)},$.markUpdateMethod=function(oe,ae){inner$a(oe).updateMethod=ae},$.protoInitialize=function(){var oe=$.prototype;oe.type="chart"}(),$}();function elSetState($,oe,ae){$&&isHighDownDispatcher($)&&(oe==="emphasis"?enterEmphasis:leaveEmphasis)($,ae)}function toggleHighlight($,oe,ae){var ie=queryDataIndex($,oe),le=oe&&oe.highlightKey!=null?getHighlightDigit(oe.highlightKey):null;ie!=null?each$c(normalizeToArray(ie),function(pe){elSetState($.getItemGraphicEl(pe),ae,le)}):$.eachItemGraphicEl(function(pe){elSetState(pe,ae,le)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan($){return renderPlanner($.model)}function renderTaskReset($){var oe=$.model,ae=$.ecModel,ie=$.api,le=$.payload,pe=oe.pipelineContext.progressiveRender,_e=$.view,Ce=le&&inner$a(le).updateMethod,$e=pe?"incrementalPrepareRender":Ce&&_e[Ce]?Ce:"render";return $e!=="render"&&_e[$e](oe,ae,ie,le),progressMethodMap[$e]}var progressMethodMap={incrementalPrepareRender:{progress:function($,oe){oe.view.incrementalRender($,oe.model,oe.ecModel,oe.api,oe.payload)}},render:{forceFirstProgress:!0,progress:function($,oe){oe.view.render(oe.model,oe.ecModel,oe.api,oe.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle($,oe,ae){var ie,le=0,pe=0,_e=null,Ce,$e,xe,Ie;oe=oe||0;function Ne(){pe=new Date().getTime(),_e=null,$.apply($e,xe||[])}var Fe=function(){for(var ze=[],At=0;At<arguments.length;At++)ze[At]=arguments[At];ie=new Date().getTime(),$e=this,xe=ze;var Lt=Ie||oe,hn=Ie||ae;Ie=null,Ce=ie-(hn?le:pe)-Lt,clearTimeout(_e),hn?_e=setTimeout(Ne,Lt):Ce>=0?Ne():_e=setTimeout(Ne,-Ce),le=ie};return Fe.clear=function(){_e&&(clearTimeout(_e),_e=null)},Fe.debounceNextCall=function(ze){Ie=ze},Fe}function createOrUpdate($,oe,ae,ie){var le=$[oe];if(le){var pe=le[ORIGIN_METHOD]||le,_e=le[THROTTLE_TYPE],Ce=le[RATE];if(Ce!==ae||_e!==ie){if(ae==null||!ie)return $[oe]=pe;le=$[oe]=throttle(pe,ae,ie==="debounce"),le[ORIGIN_METHOD]=pe,le[THROTTLE_TYPE]=ie,le[RATE]=ae}return le}}function clear$1($,oe){var ae=$[oe];ae&&ae[ORIGIN_METHOD]&&(ae.clear&&ae.clear(),$[oe]=ae[ORIGIN_METHOD])}var inner$9=makeInner(),defaultStyleMappers={itemStyle:makeStyleMapper(ITEM_STYLE_KEY_MAP,!0),lineStyle:makeStyleMapper(LINE_STYLE_KEY_MAP,!0)},defaultColorKey={lineStyle:"stroke",itemStyle:"fill"};function getStyleMapper($,oe){var ae=$.visualStyleMapper||defaultStyleMappers[oe];return ae||(console.warn("Unknown style type '"+oe+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey($,oe){var ae=$.visualDrawType||defaultColorKey[oe];return ae||(console.warn("Unknown style type '"+oe+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,oe){var ae=$.getData(),ie=$.visualStyleAccessPath||"itemStyle",le=$.getModel(ie),pe=getStyleMapper($,ie),_e=pe(le),Ce=le.getShallow("decal");Ce&&(ae.setVisual("decal",Ce),Ce.dirty=!0);var $e=getDefaultColorKey($,ie),xe=_e[$e],Ie=isFunction(xe)?xe:null,Ne=_e.fill==="auto"||_e.stroke==="auto";if(!_e[$e]||Ie||Ne){var Fe=$.getColorFromPalette($.name,null,oe.getSeriesCount());_e[$e]||(_e[$e]=Fe,ae.setVisual("colorFromPalette",!0)),_e.fill=_e.fill==="auto"||isFunction(_e.fill)?Fe:_e.fill,_e.stroke=_e.stroke==="auto"||isFunction(_e.stroke)?Fe:_e.stroke}if(ae.setVisual("style",_e),ae.setVisual("drawType",$e),!oe.isSeriesFiltered($)&&Ie)return ae.setVisual("colorFromPalette",!1),{dataEach:function(ze,At){var Lt=$.getDataParams(At),hn=extend({},_e);hn[$e]=Ie(Lt),ze.setItemVisual(At,"style",hn)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,oe){if(!($.ignoreStyleOnData||oe.isSeriesFiltered($))){var ae=$.getData(),ie=$.visualStyleAccessPath||"itemStyle",le=getStyleMapper($,ie),pe=ae.getVisual("drawType");return{dataEach:ae.hasItemOption?function(_e,Ce){var $e=_e.getRawDataItem(Ce);if($e&&$e[ie]){sharedModel.option=$e[ie];var xe=le(sharedModel),Ie=_e.ensureUniqueItemVisual(Ce,"style");extend(Ie,xe),sharedModel.option.decal&&(_e.setItemVisual(Ce,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),pe in xe&&_e.setItemVisual(Ce,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function($){var oe=createHashMap();$.eachSeries(function(ae){var ie=ae.getColorBy();if(!ae.isColorBySeries()){var le=ae.type+"-"+ie,pe=oe.get(le);pe||(pe={},oe.set(le,pe)),inner$9(ae).scope=pe}}),$.eachSeries(function(ae){if(!(ae.isColorBySeries()||$.isSeriesFiltered(ae))){var ie=ae.getRawData(),le={},pe=ae.getData(),_e=inner$9(ae).scope,Ce=ae.visualStyleAccessPath||"itemStyle",$e=getDefaultColorKey(ae,Ce);pe.each(function(xe){var Ie=pe.getRawIndex(xe);le[Ie]=xe}),ie.each(function(xe){var Ie=le[xe],Ne=pe.getItemVisual(Ie,"colorFromPalette");if(Ne){var Fe=pe.ensureUniqueItemVisual(Ie,"style"),ze=ie.getName(xe)||xe+"",At=ie.count();Fe[$e]=ae.getColorFromPalette(ze,_e,At)}})}})}},PI$1=Math.PI;function defaultLoading($,oe){oe=oe||{},defaults(oe,{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 ae=new Group$3,ie=new Rect$2({style:{fill:oe.maskColor},zlevel:oe.zlevel,z:1e4});ae.add(ie);var le=new ZRText$1({style:{text:oe.text,fill:oe.textColor,fontSize:oe.fontSize,fontWeight:oe.fontWeight,fontStyle:oe.fontStyle,fontFamily:oe.fontFamily},zlevel:oe.zlevel,z:10001}),pe=new Rect$2({style:{fill:"none"},textContent:le,textConfig:{position:"right",distance:10},zlevel:oe.zlevel,z:10001});ae.add(pe);var _e;return oe.showSpinner&&(_e=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:oe.spinnerRadius},style:{stroke:oe.color,lineCap:"round",lineWidth:oe.lineWidth},zlevel:oe.zlevel,z:10001}),_e.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),_e.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),ae.add(_e)),ae.resize=function(){var Ce=le.getBoundingRect().width,$e=oe.showSpinner?oe.spinnerRadius:0,xe=($.getWidth()-$e*2-(oe.showSpinner&&Ce?10:0)-Ce)/2-(oe.showSpinner&&Ce?0:5+Ce/2)+(oe.showSpinner?0:Ce/2)+(Ce?0:$e),Ie=$.getHeight()/2;oe.showSpinner&&_e.setShape({cx:xe,cy:Ie}),pe.setShape({x:xe-$e,y:Ie-$e,width:$e*2,height:$e*2}),ie.setShape({x:0,y:0,width:$.getWidth(),height:$.getHeight()})},ae.resize(),ae}var Scheduler=function(){function $(oe,ae,ie,le){this._stageTaskMap=createHashMap(),this.ecInstance=oe,this.api=ae,ie=this._dataProcessorHandlers=ie.slice(),le=this._visualHandlers=le.slice(),this._allHandlers=ie.concat(le)}return $.prototype.restoreData=function(oe,ae){oe.restoreData(ae),this._stageTaskMap.each(function(ie){var le=ie.overallTask;le&&le.dirty()})},$.prototype.getPerformArgs=function(oe,ae){if(oe.__pipeline){var ie=this._pipelineMap.get(oe.__pipeline.id),le=ie.context,pe=!ae&&ie.progressiveEnabled&&(!le||le.progressiveRender)&&oe.__idxInPipeline>ie.blockIndex,_e=pe?ie.step:null,Ce=le&&le.modDataCount,$e=Ce!=null?Math.ceil(Ce/_e):null;return{step:_e,modBy:$e,modDataCount:Ce}}},$.prototype.getPipeline=function(oe){return this._pipelineMap.get(oe)},$.prototype.updateStreamModes=function(oe,ae){var ie=this._pipelineMap.get(oe.uid),le=oe.getData(),pe=le.count(),_e=ie.progressiveEnabled&&ae.incrementalPrepareRender&&pe>=ie.threshold,Ce=oe.get("large")&&pe>=oe.get("largeThreshold"),$e=oe.get("progressiveChunkMode")==="mod"?pe:null;oe.pipelineContext=ie.context={progressiveRender:_e,modDataCount:$e,large:Ce}},$.prototype.restorePipelines=function(oe){var ae=this,ie=ae._pipelineMap=createHashMap();oe.eachSeries(function(le){var pe=le.getProgressive(),_e=le.uid;ie.set(_e,{id:_e,head:null,tail:null,threshold:le.getProgressiveThreshold(),progressiveEnabled:pe&&!(le.preventIncremental&&le.preventIncremental()),blockIndex:-1,step:Math.round(pe||700),count:0}),ae._pipe(le,le.dataTask)})},$.prototype.prepareStageTasks=function(){var oe=this._stageTaskMap,ae=this.api.getModel(),ie=this.api;each$c(this._allHandlers,function(le){var pe=oe.get(le.uid)||oe.set(le.uid,{}),_e="";assert(!(le.reset&&le.overallReset),_e),le.reset&&this._createSeriesStageTask(le,pe,ae,ie),le.overallReset&&this._createOverallStageTask(le,pe,ae,ie)},this)},$.prototype.prepareView=function(oe,ae,ie,le){var pe=oe.renderTask,_e=pe.context;_e.model=ae,_e.ecModel=ie,_e.api=le,pe.__block=!oe.incrementalPrepareRender,this._pipe(ae,pe)},$.prototype.performDataProcessorTasks=function(oe,ae){this._performStageTasks(this._dataProcessorHandlers,oe,ae,{block:!0})},$.prototype.performVisualTasks=function(oe,ae,ie){this._performStageTasks(this._visualHandlers,oe,ae,ie)},$.prototype._performStageTasks=function(oe,ae,ie,le){le=le||{};var pe=!1,_e=this;each$c(oe,function($e,xe){if(!(le.visualType&&le.visualType!==$e.visualType)){var Ie=_e._stageTaskMap.get($e.uid),Ne=Ie.seriesTaskMap,Fe=Ie.overallTask;if(Fe){var ze,At=Fe.agentStubMap;At.each(function(hn){Ce(le,hn)&&(hn.dirty(),ze=!0)}),ze&&Fe.dirty(),_e.updatePayload(Fe,ie);var Lt=_e.getPerformArgs(Fe,le.block);At.each(function(hn){hn.perform(Lt)}),Fe.perform(Lt)&&(pe=!0)}else Ne&&Ne.each(function(hn,vn){Ce(le,hn)&&hn.dirty();var _n=_e.getPerformArgs(hn,le.block);_n.skip=!$e.performRawSeries&&ae.isSeriesFiltered(hn.context.model),_e.updatePayload(hn,ie),hn.perform(_n)&&(pe=!0)})}});function Ce($e,xe){return $e.setDirty&&(!$e.dirtyMap||$e.dirtyMap.get(xe.__pipeline.id))}this.unfinished=pe||this.unfinished},$.prototype.performSeriesTasks=function(oe){var ae;oe.eachSeries(function(ie){ae=ie.dataTask.perform()||ae}),this.unfinished=ae||this.unfinished},$.prototype.plan=function(){this._pipelineMap.each(function(oe){var ae=oe.tail;do{if(ae.__block){oe.blockIndex=ae.__idxInPipeline;break}ae=ae.getUpstream()}while(ae)})},$.prototype.updatePayload=function(oe,ae){ae!=="remain"&&(oe.context.payload=ae)},$.prototype._createSeriesStageTask=function(oe,ae,ie,le){var pe=this,_e=ae.seriesTaskMap,Ce=ae.seriesTaskMap=createHashMap(),$e=oe.seriesType,xe=oe.getTargetSeries;oe.createOnAllSeries?ie.eachRawSeries(Ie):$e?ie.eachRawSeriesByType($e,Ie):xe&&xe(ie,le).each(Ie);function Ie(Ne){var Fe=Ne.uid,ze=Ce.set(Fe,_e&&_e.get(Fe)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));ze.context={model:Ne,ecModel:ie,api:le,useClearVisual:oe.isVisual&&!oe.isLayout,plan:oe.plan,reset:oe.reset,scheduler:pe},pe._pipe(Ne,ze)}},$.prototype._createOverallStageTask=function(oe,ae,ie,le){var pe=this,_e=ae.overallTask=ae.overallTask||createTask({reset:overallTaskReset});_e.context={ecModel:ie,api:le,overallReset:oe.overallReset,scheduler:pe};var Ce=_e.agentStubMap,$e=_e.agentStubMap=createHashMap(),xe=oe.seriesType,Ie=oe.getTargetSeries,Ne=!0,Fe=!1,ze="";assert(!oe.createOnAllSeries,ze),xe?ie.eachRawSeriesByType(xe,At):Ie?Ie(ie,le).each(At):(Ne=!1,each$c(ie.getSeries(),At));function At(Lt){var hn=Lt.uid,vn=$e.set(hn,Ce&&Ce.get(hn)||(Fe=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));vn.context={model:Lt,overallProgress:Ne},vn.agent=_e,vn.__block=Ne,pe._pipe(Lt,vn)}Fe&&_e.dirty()},$.prototype._pipe=function(oe,ae){var ie=oe.uid,le=this._pipelineMap.get(ie);!le.head&&(le.head=ae),le.tail&&le.tail.pipe(ae),le.tail=ae,ae.__idxInPipeline=le.count++,ae.__pipeline=le},$.wrapStageHandler=function(oe,ae){return isFunction(oe)&&(oe={overallReset:oe,seriesType:detectSeriseType(oe)}),oe.uid=getUID("stageHandler"),ae&&(oe.visualType=ae),oe},$}();function overallTaskReset($){$.overallReset($.ecModel,$.api,$.payload)}function stubReset($){return $.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan($){return $.plan?$.plan($.model,$.ecModel,$.api,$.payload):null}function seriesTaskReset($){$.useClearVisual&&$.data.clearAllVisual();var oe=$.resetDefines=normalizeToArray($.reset($.model,$.ecModel,$.api,$.payload));return oe.length>1?map$2(oe,function(ae,ie){return makeSeriesTaskProgress(ie)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress($){return function(oe,ae){var ie=ae.data,le=ae.resetDefines[$];if(le&&le.dataEach)for(var pe=oe.start;pe<oe.end;pe++)le.dataEach(ie,pe);else le&&le.progress&&le.progress(oe,ie)}}function seriesTaskCount($){return $.data.count()}function detectSeriseType($){seriesType=null;try{$(ecModelMock,apiMock)}catch{}return seriesType}var ecModelMock={},apiMock={},seriesType;mockMethods(ecModelMock,GlobalModel$1);mockMethods(apiMock,ExtensionAPI$1);ecModelMock.eachSeriesByType=ecModelMock.eachRawSeriesByType=function($){seriesType=$};ecModelMock.eachComponent=function($){$.mainType==="series"&&$.subType&&(seriesType=$.subType)};function mockMethods($,oe){for(var ae in oe.prototype)$[ae]=noop}const Scheduler$1=Scheduler;var colorAll=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const lightTheme={color:colorAll,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],colorAll]};var contrastColor="#B9B8CE",backgroundColor="#100C2A",axisCommon=function(){return{axisLine:{lineStyle:{color:contrastColor}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},colorPalette=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],theme={darkMode:!0,color:colorPalette,backgroundColor,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:contrastColor}},textStyle:{color:contrastColor},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:contrastColor}},dataZoom:{borderColor:"#71708A",textStyle:{color:contrastColor},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:contrastColor}},timeline:{lineStyle:{color:contrastColor},label:{color:contrastColor},controlStyle:{color:contrastColor,borderColor:contrastColor}},calendar:{itemStyle:{color:backgroundColor},dayLabel:{color:contrastColor},monthLabel:{color:contrastColor},yearLabel:{color:contrastColor}},timeAxis:axisCommon(),logAxis:axisCommon(),valueAxis:axisCommon(),categoryAxis:axisCommon(),line:{symbol:"circle"},graph:{color:colorPalette},gauge:{title:{color:contrastColor},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:contrastColor},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};theme.categoryAxis.splitLine.show=!1;const darkTheme=theme;var ECEventProcessor=function(){function $(){}return $.prototype.normalizeQuery=function(oe){var ae={},ie={},le={};if(isString(oe)){var pe=parseClassType(oe);ae.mainType=pe.main||null,ae.subType=pe.sub||null}else{var _e=["Index","Name","Id"],Ce={name:1,dataIndex:1,dataType:1};each$c(oe,function($e,xe){for(var Ie=!1,Ne=0;Ne<_e.length;Ne++){var Fe=_e[Ne],ze=xe.lastIndexOf(Fe);if(ze>0&&ze===xe.length-Fe.length){var At=xe.slice(0,ze);At!=="data"&&(ae.mainType=At,ae[Fe.toLowerCase()]=$e,Ie=!0)}}Ce.hasOwnProperty(xe)&&(ie[xe]=$e,Ie=!0),Ie||(le[xe]=$e)})}return{cptQuery:ae,dataQuery:ie,otherQuery:le}},$.prototype.filter=function(oe,ae){var ie=this.eventInfo;if(!ie)return!0;var le=ie.targetEl,pe=ie.packedEvent,_e=ie.model,Ce=ie.view;if(!_e||!Ce)return!0;var $e=ae.cptQuery,xe=ae.dataQuery;return Ie($e,_e,"mainType")&&Ie($e,_e,"subType")&&Ie($e,_e,"index","componentIndex")&&Ie($e,_e,"name")&&Ie($e,_e,"id")&&Ie(xe,pe,"name")&&Ie(xe,pe,"dataIndex")&&Ie(xe,pe,"dataType")&&(!Ce.filterForExposedEvent||Ce.filterForExposedEvent(oe,ae.otherQuery,le,pe));function Ie(Ne,Fe,ze,At){return Ne[ze]==null||Fe[At||ze]===Ne[ze]}},$.prototype.afterTrigger=function(){this.eventInfo=null},$}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,oe){var ae=$.getData();if($.legendIcon&&ae.setVisual("legendIcon",$.legendIcon),!$.hasSymbolVisual)return;for(var ie={},le={},pe=!1,_e=0;_e<SYMBOL_PROPS_WITH_CB.length;_e++){var Ce=SYMBOL_PROPS_WITH_CB[_e],$e=$.get(Ce);isFunction($e)?(pe=!0,le[Ce]=$e):ie[Ce]=$e}if(ie.symbol=ie.symbol||$.defaultSymbol,ae.setVisual(extend({legendIcon:$.legendIcon||ie.symbol,symbolKeepAspect:$.get("symbolKeepAspect")},ie)),oe.isSeriesFiltered($))return;var xe=keys(le);function Ie(Ne,Fe){for(var ze=$.getRawValue(Fe),At=$.getDataParams(Fe),Lt=0;Lt<xe.length;Lt++){var hn=xe[Lt];Ne.setItemVisual(Fe,hn,le[hn](ze,At))}}return{dataEach:pe?Ie:null}}},dataSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function($,oe){if(!$.hasSymbolVisual||oe.isSeriesFiltered($))return;var ae=$.getData();function ie(le,pe){for(var _e=le.getItemModel(pe),Ce=0;Ce<SYMBOL_PROPS.length;Ce++){var $e=SYMBOL_PROPS[Ce],xe=_e.getShallow($e,!0);xe!=null&&le.setItemVisual(pe,$e,xe)}}return{dataEach:ae.hasItemOption?ie:null}}};function getItemVisualFromData($,oe,ae){switch(ae){case"color":var ie=$.getItemVisual(oe,"style");return ie[$.getVisual("drawType")];case"opacity":return $.getItemVisual(oe,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getItemVisual(oe,ae)}}function getVisualFromData($,oe){switch(oe){case"color":var ae=$.getVisual("style");return ae[$.getVisual("drawType")];case"opacity":return $.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return $.getVisual(oe)}}function setItemVisualFromData($,oe,ae,ie){switch(ae){case"color":var le=$.ensureUniqueItemVisual(oe,"style");le[$.getVisual("drawType")]=ie,$.setItemVisual(oe,"colorFromPalette",!1);break;case"opacity":$.ensureUniqueItemVisual(oe,"style").opacity=ie;break;case"symbol":case"symbolSize":case"liftZ":$.setItemVisual(oe,ae,ie);break}}function createLegacyDataSelectAction($,oe){function ae(ie,le){var pe=[];return ie.eachComponent({mainType:"series",subType:$,query:le},function(_e){pe.push(_e.seriesIndex)}),pe}each$c([[$+"ToggleSelect","toggleSelect"],[$+"Select","select"],[$+"UnSelect","unselect"]],function(ie){oe(ie[0],function(le,pe,_e){le=extend({},le),_e.dispatchAction(extend(le,{type:ie[1],seriesIndex:ae(pe,le)}))})})}function handleSeriesLegacySelectEvents($,oe,ae,ie,le){var pe=$+oe;ae.isSilent(pe)||ie.eachComponent({mainType:"series",subType:"pie"},function(_e){for(var Ce=_e.seriesIndex,$e=_e.option.selectedMap,xe=le.selected,Ie=0;Ie<xe.length;Ie++)if(xe[Ie].seriesIndex===Ce){var Ne=_e.getData(),Fe=queryDataIndex(Ne,le.fromActionPayload);ae.trigger(pe,{type:pe,seriesId:_e.id,name:isArray$1(Fe)?Ne.getName(Fe[0]):Ne.getName(Fe),selected:isString($e)?$e:extend({},$e)})}})}function handleLegacySelectEvents($,oe,ae){$.on("selectchanged",function(ie){var le=ae.getModel();ie.isFromClick?(handleSeriesLegacySelectEvents("map","selectchanged",oe,le,ie),handleSeriesLegacySelectEvents("pie","selectchanged",oe,le,ie)):ie.fromAction==="select"?(handleSeriesLegacySelectEvents("map","selected",oe,le,ie),handleSeriesLegacySelectEvents("pie","selected",oe,le,ie)):ie.fromAction==="unselect"&&(handleSeriesLegacySelectEvents("map","unselected",oe,le,ie),handleSeriesLegacySelectEvents("pie","unselected",oe,le,ie))})}function findEventDispatcher($,oe,ae){for(var ie;$&&!(oe($)&&(ie=$,ae));)$=$.__hostTarget||$.parent;return ie}var wmUniqueIndex=Math.round(Math.random()*9),supportDefineProperty=typeof Object.defineProperty=="function",WeakMap$1=function(){function $(){this._id="__ec_inner_"+wmUniqueIndex++}return $.prototype.get=function(oe){return this._guard(oe)[this._id]},$.prototype.set=function(oe,ae){var ie=this._guard(oe);return supportDefineProperty?Object.defineProperty(ie,this._id,{value:ae,enumerable:!1,configurable:!0}):ie[this._id]=ae,this},$.prototype.delete=function(oe){return this.has(oe)?(delete this._guard(oe)[this._id],!0):!1},$.prototype.has=function(oe){return!!this._guard(oe)[this._id]},$.prototype._guard=function(oe){if(oe!==Object(oe))throw TypeError("Value of WeakMap is not a non-null object.");return oe},$}();const WeakMap$2=WeakMap$1;var Triangle=Path$1.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function($,oe){var ae=oe.cx,ie=oe.cy,le=oe.width/2,pe=oe.height/2;$.moveTo(ae,ie-pe),$.lineTo(ae+le,ie+pe),$.lineTo(ae-le,ie+pe),$.closePath()}}),Diamond=Path$1.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function($,oe){var ae=oe.cx,ie=oe.cy,le=oe.width/2,pe=oe.height/2;$.moveTo(ae,ie-pe),$.lineTo(ae+le,ie),$.lineTo(ae,ie+pe),$.lineTo(ae-le,ie),$.closePath()}}),Pin=Path$1.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function($,oe){var ae=oe.x,ie=oe.y,le=oe.width/5*3,pe=Math.max(le,oe.height),_e=le/2,Ce=_e*_e/(pe-_e),$e=ie-pe+_e+Ce,xe=Math.asin(Ce/_e),Ie=Math.cos(xe)*_e,Ne=Math.sin(xe),Fe=Math.cos(xe),ze=_e*.6,At=_e*.7;$.moveTo(ae-Ie,$e+Ce),$.arc(ae,$e,_e,Math.PI-xe,Math.PI*2+xe),$.bezierCurveTo(ae+Ie-Ne*ze,$e+Ce+Fe*ze,ae,ie-At,ae,ie),$.bezierCurveTo(ae,ie-At,ae-Ie+Ne*ze,$e+Ce+Fe*ze,ae-Ie,$e+Ce),$.closePath()}}),Arrow=Path$1.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function($,oe){var ae=oe.height,ie=oe.width,le=oe.x,pe=oe.y,_e=ie/3*2;$.moveTo(le,pe),$.lineTo(le+_e,pe+ae),$.lineTo(le,pe+ae/4*3),$.lineTo(le-_e,pe+ae),$.lineTo(le,pe),$.closePath()}}),symbolCtors={line:Line$1,rect:Rect$2,roundRect:Rect$2,square:Rect$2,circle:Circle$1,diamond:Diamond,pin:Pin,arrow:Arrow,triangle:Triangle},symbolShapeMakers={line:function($,oe,ae,ie,le){le.x1=$,le.y1=oe+ie/2,le.x2=$+ae,le.y2=oe+ie/2},rect:function($,oe,ae,ie,le){le.x=$,le.y=oe,le.width=ae,le.height=ie},roundRect:function($,oe,ae,ie,le){le.x=$,le.y=oe,le.width=ae,le.height=ie,le.r=Math.min(ae,ie)/4},square:function($,oe,ae,ie,le){var pe=Math.min(ae,ie);le.x=$,le.y=oe,le.width=pe,le.height=pe},circle:function($,oe,ae,ie,le){le.cx=$+ae/2,le.cy=oe+ie/2,le.r=Math.min(ae,ie)/2},diamond:function($,oe,ae,ie,le){le.cx=$+ae/2,le.cy=oe+ie/2,le.width=ae,le.height=ie},pin:function($,oe,ae,ie,le){le.x=$+ae/2,le.y=oe+ie/2,le.width=ae,le.height=ie},arrow:function($,oe,ae,ie,le){le.x=$+ae/2,le.y=oe+ie/2,le.width=ae,le.height=ie},triangle:function($,oe,ae,ie,le){le.cx=$+ae/2,le.cy=oe+ie/2,le.width=ae,le.height=ie}},symbolBuildProxies={};each$c(symbolCtors,function($,oe){symbolBuildProxies[oe]=new $});var SymbolClz$1=Path$1.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function($,oe,ae){var ie=calculateTextPosition($,oe,ae),le=this.shape;return le&&le.symbolType==="pin"&&oe.position==="inside"&&(ie.y=ae.y+ae.height*.4),ie},buildPath:function($,oe,ae){var ie=oe.symbolType;if(ie!=="none"){var le=symbolBuildProxies[ie];le||(ie="rect",le=symbolBuildProxies[ie]),symbolShapeMakers[ie](oe.x,oe.y,oe.width,oe.height,le.shape),le.buildPath($,le.shape,ae)}}});function symbolPathSetColor($,oe){if(this.type!=="image"){var ae=this.style;this.__isEmptyBrush?(ae.stroke=$,ae.fill=oe||"#fff",ae.lineWidth=2):this.shape.symbolType==="line"?ae.stroke=$:ae.fill=$,this.markRedraw()}}function createSymbol($,oe,ae,ie,le,pe,_e){var Ce=$.indexOf("empty")===0;Ce&&($=$.substr(5,1).toLowerCase()+$.substr(6));var $e;return $.indexOf("image://")===0?$e=makeImage($.slice(8),new BoundingRect$1(oe,ae,ie,le),_e?"center":"cover"):$.indexOf("path://")===0?$e=makePath($.slice(7),{},new BoundingRect$1(oe,ae,ie,le),_e?"center":"cover"):$e=new SymbolClz$1({shape:{symbolType:$,x:oe,y:ae,width:ie,height:le}}),$e.__isEmptyBrush=Ce,$e.setColor=symbolPathSetColor,pe&&$e.setColor(pe),$e}function normalizeSymbolSize($){return isArray$1($)||($=[+$,+$]),[$[0]||0,$[1]||0]}function normalizeSymbolOffset($,oe){if($!=null)return isArray$1($)||($=[$,$]),[parsePercent($[0],oe[0])||0,parsePercent(retrieve2($[1],$[0]),oe[1])||0]}function isSafeNum($){return isFinite($)}function createLinearGradient($,oe,ae){var ie=oe.x==null?0:oe.x,le=oe.x2==null?1:oe.x2,pe=oe.y==null?0:oe.y,_e=oe.y2==null?0:oe.y2;oe.global||(ie=ie*ae.width+ae.x,le=le*ae.width+ae.x,pe=pe*ae.height+ae.y,_e=_e*ae.height+ae.y),ie=isSafeNum(ie)?ie:0,le=isSafeNum(le)?le:1,pe=isSafeNum(pe)?pe:0,_e=isSafeNum(_e)?_e:0;var Ce=$.createLinearGradient(ie,pe,le,_e);return Ce}function createRadialGradient($,oe,ae){var ie=ae.width,le=ae.height,pe=Math.min(ie,le),_e=oe.x==null?.5:oe.x,Ce=oe.y==null?.5:oe.y,$e=oe.r==null?.5:oe.r;oe.global||(_e=_e*ie+ae.x,Ce=Ce*le+ae.y,$e=$e*pe),_e=isSafeNum(_e)?_e:.5,Ce=isSafeNum(Ce)?Ce:.5,$e=$e>=0&&isSafeNum($e)?$e:.5;var xe=$.createRadialGradient(_e,Ce,0,_e,Ce,$e);return xe}function getCanvasGradient($,oe,ae){for(var ie=oe.type==="radial"?createRadialGradient($,oe,ae):createLinearGradient($,oe,ae),le=oe.colorStops,pe=0;pe<le.length;pe++)ie.addColorStop(le[pe].offset,le[pe].color);return ie}function isClipPathChanged($,oe){if($===oe||!$&&!oe)return!1;if(!$||!oe||$.length!==oe.length)return!0;for(var ae=0;ae<$.length;ae++)if($[ae]!==oe[ae])return!0;return!1}function parseInt10($){return parseInt($,10)}function getSize$1($,oe,ae){var ie=["width","height"][oe],le=["clientWidth","clientHeight"][oe],pe=["paddingLeft","paddingTop"][oe],_e=["paddingRight","paddingBottom"][oe];if(ae[ie]!=null&&ae[ie]!=="auto")return parseFloat(ae[ie]);var Ce=document.defaultView.getComputedStyle($);return($[le]||parseInt10(Ce[ie])||parseInt10($.style[ie]))-(parseInt10(Ce[pe])||0)-(parseInt10(Ce[_e])||0)|0}function normalizeLineDash($,oe){return!$||$==="solid"||!(oe>0)?null:$==="dashed"?[4*oe,2*oe]:$==="dotted"?[oe]:isNumber($)?[$]:isArray$1($)?$:null}function getLineDash($){var oe=$.style,ae=oe.lineDash&&oe.lineWidth>0&&normalizeLineDash(oe.lineDash,oe.lineWidth),ie=oe.lineDashOffset;if(ae){var le=oe.strokeNoScale&&$.getLineScale?$.getLineScale():1;le&&le!==1&&(ae=map$2(ae,function(pe){return pe/le}),ie/=le)}return[ae,ie]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke($){var oe=$.stroke;return!(oe==null||oe==="none"||!($.lineWidth>0))}function isValidStrokeFillStyle($){return typeof $=="string"&&$!=="none"}function styleHasFill($){var oe=$.fill;return oe!=null&&oe!=="none"}function doFillPath($,oe){if(oe.fillOpacity!=null&&oe.fillOpacity!==1){var ae=$.globalAlpha;$.globalAlpha=oe.fillOpacity*oe.opacity,$.fill(),$.globalAlpha=ae}else $.fill()}function doStrokePath($,oe){if(oe.strokeOpacity!=null&&oe.strokeOpacity!==1){var ae=$.globalAlpha;$.globalAlpha=oe.strokeOpacity*oe.opacity,$.stroke(),$.globalAlpha=ae}else $.stroke()}function createCanvasPattern($,oe,ae){var ie=createOrUpdateImage(oe.image,oe.__image,ae);if(isImageReady(ie)){var le=$.createPattern(ie,oe.repeat||"repeat");if(typeof DOMMatrix=="function"&&le&&le.setTransform){var pe=new DOMMatrix;pe.translateSelf(oe.x||0,oe.y||0),pe.rotateSelf(0,0,(oe.rotation||0)*RADIAN_TO_DEGREE),pe.scaleSelf(oe.scaleX||1,oe.scaleY||1),le.setTransform(pe)}return le}}function brushPath($,oe,ae,ie){var le,pe=styleHasStroke(ae),_e=styleHasFill(ae),Ce=ae.strokePercent,$e=Ce<1,xe=!oe.path;(!oe.silent||$e)&&xe&&oe.createPathProxy();var Ie=oe.path||pathProxyForDraw,Ne=oe.__dirty;if(!ie){var Fe=ae.fill,ze=ae.stroke,At=_e&&!!Fe.colorStops,Lt=pe&&!!ze.colorStops,hn=_e&&!!Fe.image,vn=pe&&!!ze.image,_n=void 0,bn=void 0,Cn=void 0,En=void 0,$n=void 0;(At||Lt)&&($n=oe.getBoundingRect()),At&&(_n=Ne?getCanvasGradient($,Fe,$n):oe.__canvasFillGradient,oe.__canvasFillGradient=_n),Lt&&(bn=Ne?getCanvasGradient($,ze,$n):oe.__canvasStrokeGradient,oe.__canvasStrokeGradient=bn),hn&&(Cn=Ne||!oe.__canvasFillPattern?createCanvasPattern($,Fe,oe):oe.__canvasFillPattern,oe.__canvasFillPattern=Cn),vn&&(En=Ne||!oe.__canvasStrokePattern?createCanvasPattern($,ze,oe):oe.__canvasStrokePattern,oe.__canvasStrokePattern=Cn),At?$.fillStyle=_n:hn&&(Cn?$.fillStyle=Cn:_e=!1),Lt?$.strokeStyle=bn:vn&&(En?$.strokeStyle=En:pe=!1)}var wn=oe.getGlobalScale();Ie.setScale(wn[0],wn[1],oe.segmentIgnoreThreshold);var Tn,xn;$.setLineDash&&ae.lineDash&&(le=getLineDash(oe),Tn=le[0],xn=le[1]);var kn=!0;(xe||Ne&SHAPE_CHANGED_BIT)&&(Ie.setDPR($.dpr),$e?Ie.setContext(null):(Ie.setContext($),kn=!1),Ie.reset(),oe.buildPath(Ie,oe.shape,ie),Ie.toStatic(),oe.pathUpdated()),kn&&Ie.rebuildPath($,$e?Ce:1),Tn&&($.setLineDash(Tn),$.lineDashOffset=xn),ie||(ae.strokeFirst?(pe&&doStrokePath($,ae),_e&&doFillPath($,ae)):(_e&&doFillPath($,ae),pe&&doStrokePath($,ae))),Tn&&$.setLineDash([])}function brushImage($,oe,ae){var ie=oe.__image=createOrUpdateImage(ae.image,oe.__image,oe,oe.onload);if(!(!ie||!isImageReady(ie))){var le=ae.x||0,pe=ae.y||0,_e=oe.getWidth(),Ce=oe.getHeight(),$e=ie.width/ie.height;if(_e==null&&Ce!=null?_e=Ce*$e:Ce==null&&_e!=null?Ce=_e/$e:_e==null&&Ce==null&&(_e=ie.width,Ce=ie.height),ae.sWidth&&ae.sHeight){var xe=ae.sx||0,Ie=ae.sy||0;$.drawImage(ie,xe,Ie,ae.sWidth,ae.sHeight,le,pe,_e,Ce)}else if(ae.sx&&ae.sy){var xe=ae.sx,Ie=ae.sy,Ne=_e-xe,Fe=Ce-Ie;$.drawImage(ie,xe,Ie,Ne,Fe,le,pe,_e,Ce)}else $.drawImage(ie,le,pe,_e,Ce)}}function brushText($,oe,ae){var ie,le=ae.text;if(le!=null&&(le+=""),le){$.font=ae.font||DEFAULT_FONT,$.textAlign=ae.textAlign,$.textBaseline=ae.textBaseline;var pe=void 0,_e=void 0;$.setLineDash&&ae.lineDash&&(ie=getLineDash(oe),pe=ie[0],_e=ie[1]),pe&&($.setLineDash(pe),$.lineDashOffset=_e),ae.strokeFirst?(styleHasStroke(ae)&&$.strokeText(le,ae.x,ae.y),styleHasFill(ae)&&$.fillText(le,ae.x,ae.y)):(styleHasFill(ae)&&$.fillText(le,ae.x,ae.y),styleHasStroke(ae)&&$.strokeText(le,ae.x,ae.y)),pe&&$.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps($,oe,ae,ie,le){var pe=!1;if(!ie&&(ae=ae||{},oe===ae))return!1;if(ie||oe.opacity!==ae.opacity){flushPathDrawn($,le),pe=!0;var _e=Math.max(Math.min(oe.opacity,1),0);$.globalAlpha=isNaN(_e)?DEFAULT_COMMON_STYLE.opacity:_e}(ie||oe.blend!==ae.blend)&&(pe||(flushPathDrawn($,le),pe=!0),$.globalCompositeOperation=oe.blend||DEFAULT_COMMON_STYLE.blend);for(var Ce=0;Ce<SHADOW_NUMBER_PROPS.length;Ce++){var $e=SHADOW_NUMBER_PROPS[Ce];(ie||oe[$e]!==ae[$e])&&(pe||(flushPathDrawn($,le),pe=!0),$[$e]=$.dpr*(oe[$e]||0))}return(ie||oe.shadowColor!==ae.shadowColor)&&(pe||(flushPathDrawn($,le),pe=!0),$.shadowColor=oe.shadowColor||DEFAULT_COMMON_STYLE.shadowColor),pe}function bindPathAndTextCommonStyle($,oe,ae,ie,le){var pe=getStyle(oe,le.inHover),_e=ie?null:ae&&getStyle(ae,le.inHover)||{};if(pe===_e)return!1;var Ce=bindCommonProps($,pe,_e,ie,le);if((ie||pe.fill!==_e.fill)&&(Ce||(flushPathDrawn($,le),Ce=!0),isValidStrokeFillStyle(pe.fill)&&($.fillStyle=pe.fill)),(ie||pe.stroke!==_e.stroke)&&(Ce||(flushPathDrawn($,le),Ce=!0),isValidStrokeFillStyle(pe.stroke)&&($.strokeStyle=pe.stroke)),(ie||pe.opacity!==_e.opacity)&&(Ce||(flushPathDrawn($,le),Ce=!0),$.globalAlpha=pe.opacity==null?1:pe.opacity),oe.hasStroke()){var $e=pe.lineWidth,xe=$e/(pe.strokeNoScale&&oe.getLineScale?oe.getLineScale():1);$.lineWidth!==xe&&(Ce||(flushPathDrawn($,le),Ce=!0),$.lineWidth=xe)}for(var Ie=0;Ie<STROKE_PROPS.length;Ie++){var Ne=STROKE_PROPS[Ie],Fe=Ne[0];(ie||pe[Fe]!==_e[Fe])&&(Ce||(flushPathDrawn($,le),Ce=!0),$[Fe]=pe[Fe]||Ne[1])}return Ce}function bindImageStyle($,oe,ae,ie,le){return bindCommonProps($,getStyle(oe,le.inHover),ae&&getStyle(ae,le.inHover),ie,le)}function setContextTransform($,oe){var ae=oe.transform,ie=$.dpr||1;ae?$.setTransform(ie*ae[0],ie*ae[1],ie*ae[2],ie*ae[3],ie*ae[4],ie*ae[5]):$.setTransform(ie,0,0,ie,0,0)}function updateClipStatus($,oe,ae){for(var ie=!1,le=0;le<$.length;le++){var pe=$[le];ie=ie||pe.isZeroArea(),setContextTransform(oe,pe),oe.beginPath(),pe.buildPath(oe,pe.shape),oe.clip()}ae.allClipped=ie}function isTransformChanged($,oe){return $&&oe?$[0]!==oe[0]||$[1]!==oe[1]||$[2]!==oe[2]||$[3]!==oe[3]||$[4]!==oe[4]||$[5]!==oe[5]:!(!$&&!oe)}var DRAW_TYPE_PATH=1,DRAW_TYPE_IMAGE=2,DRAW_TYPE_TEXT=3,DRAW_TYPE_INCREMENTAL=4;function canPathBatch($){var oe=styleHasFill($),ae=styleHasStroke($);return!($.lineDash||!(+oe^+ae)||oe&&typeof $.fill!="string"||ae&&typeof $.stroke!="string"||$.strokePercent<1||$.strokeOpacity<1||$.fillOpacity<1)}function flushPathDrawn($,oe){oe.batchFill&&$.fill(),oe.batchStroke&&$.stroke(),oe.batchFill="",oe.batchStroke=""}function getStyle($,oe){return oe&&$.__hoverStyle||$.style}function brushSingle($,oe){brush($,oe,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function brush($,oe,ae,ie){var le=oe.transform;if(!oe.shouldBePainted(ae.viewWidth,ae.viewHeight,!1,!1)){oe.__dirty&=~REDRAW_BIT,oe.__isRendered=!1;return}var pe=oe.__clipPaths,_e=ae.prevElClipPaths,Ce=!1,$e=!1;if((!_e||isClipPathChanged(pe,_e))&&(_e&&_e.length&&(flushPathDrawn($,ae),$.restore(),$e=Ce=!0,ae.prevElClipPaths=null,ae.allClipped=!1,ae.prevEl=null),pe&&pe.length&&(flushPathDrawn($,ae),$.save(),updateClipStatus(pe,$,ae),Ce=!0),ae.prevElClipPaths=pe),ae.allClipped){oe.__isRendered=!1;return}oe.beforeBrush&&oe.beforeBrush(),oe.innerBeforeBrush();var xe=ae.prevEl;xe||($e=Ce=!0);var Ie=oe instanceof Path$1&&oe.autoBatch&&canPathBatch(oe.style);Ce||isTransformChanged(le,xe.transform)?(flushPathDrawn($,ae),setContextTransform($,oe)):Ie||flushPathDrawn($,ae);var Ne=getStyle(oe,ae.inHover);oe instanceof Path$1?(ae.lastDrawType!==DRAW_TYPE_PATH&&($e=!0,ae.lastDrawType=DRAW_TYPE_PATH),bindPathAndTextCommonStyle($,oe,xe,$e,ae),(!Ie||!ae.batchFill&&!ae.batchStroke)&&$.beginPath(),brushPath($,oe,Ne,Ie),Ie&&(ae.batchFill=Ne.fill||"",ae.batchStroke=Ne.stroke||"")):oe instanceof TSpan$1?(ae.lastDrawType!==DRAW_TYPE_TEXT&&($e=!0,ae.lastDrawType=DRAW_TYPE_TEXT),bindPathAndTextCommonStyle($,oe,xe,$e,ae),brushText($,oe,Ne)):oe instanceof ZRImage$1?(ae.lastDrawType!==DRAW_TYPE_IMAGE&&($e=!0,ae.lastDrawType=DRAW_TYPE_IMAGE),bindImageStyle($,oe,xe,$e,ae),brushImage($,oe,Ne)):oe.getTemporalDisplayables&&(ae.lastDrawType!==DRAW_TYPE_INCREMENTAL&&($e=!0,ae.lastDrawType=DRAW_TYPE_INCREMENTAL),brushIncremental($,oe,ae)),Ie&&ie&&flushPathDrawn($,ae),oe.innerAfterBrush(),oe.afterBrush&&oe.afterBrush(),ae.prevEl=oe,oe.__dirty=0,oe.__isRendered=!0}function brushIncremental($,oe,ae){var ie=oe.getDisplayables(),le=oe.getTemporalDisplayables();$.save();var pe={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:ae.viewWidth,viewHeight:ae.viewHeight,inHover:ae.inHover},_e,Ce;for(_e=oe.getCursor(),Ce=ie.length;_e<Ce;_e++){var $e=ie[_e];$e.beforeBrush&&$e.beforeBrush(),$e.innerBeforeBrush(),brush($,$e,pe,_e===Ce-1),$e.innerAfterBrush(),$e.afterBrush&&$e.afterBrush(),pe.prevEl=$e}for(var xe=0,Ie=le.length;xe<Ie;xe++){var $e=le[xe];$e.beforeBrush&&$e.beforeBrush(),$e.innerBeforeBrush(),brush($,$e,pe,xe===Ie-1),$e.innerAfterBrush(),$e.afterBrush&&$e.afterBrush(),pe.prevEl=$e}oe.clearTemporalDisplayables(),oe.notClear=!0,$.restore()}var decalMap=new WeakMap$2,decalCache=new LRU$1(100),decalKeys=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function createOrUpdatePatternFromDecal($,oe){if($==="none")return null;var ae=oe.getDevicePixelRatio(),ie=oe.getZr(),le=ie.painter.type==="svg";$.dirty&&decalMap.delete($);var pe=decalMap.get($);if(pe)return pe;var _e=defaults($,{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});_e.backgroundColor==="none"&&(_e.backgroundColor=null);var Ce={repeat:"repeat"};return $e(Ce),Ce.rotation=_e.rotation,Ce.scaleX=Ce.scaleY=le?1:1/ae,decalMap.set($,Ce),$.dirty=!1,Ce;function $e(xe){for(var Ie=[ae],Ne=!0,Fe=0;Fe<decalKeys.length;++Fe){var ze=_e[decalKeys[Fe]];if(ze!=null&&!isArray$1(ze)&&!isString(ze)&&!isNumber(ze)&&typeof ze!="boolean"){Ne=!1;break}Ie.push(ze)}var At;if(Ne){At=Ie.join(",")+(le?"-svg":"");var Lt=decalCache.get(At);Lt&&(le?xe.svgElement=Lt:xe.image=Lt)}var hn=normalizeDashArrayX(_e.dashArrayX),vn=normalizeDashArrayY(_e.dashArrayY),_n=normalizeSymbolArray(_e.symbol),bn=getLineBlockLengthX(hn),Cn=getLineBlockLengthY(vn),En=!le&&platformApi.createCanvas(),$n=le&&{tag:"g",attrs:{},key:"dcl",children:[]},wn=xn(),Tn;En&&(En.width=wn.width*ae,En.height=wn.height*ae,Tn=En.getContext("2d")),kn(),Ne&&decalCache.put(At,En||$n),xe.image=En,xe.svgElement=$n,xe.svgWidth=wn.width,xe.svgHeight=wn.height;function xn(){for(var An=1,On=0,Nn=bn.length;On<Nn;++On)An=getLeastCommonMultiple(An,bn[On]);for(var Rn=1,On=0,Nn=_n.length;On<Nn;++On)Rn=getLeastCommonMultiple(Rn,_n[On].length);An*=Rn;var zn=Cn*bn.length*_n.length;return{width:Math.max(1,Math.min(An,_e.maxTileWidth)),height:Math.max(1,Math.min(zn,_e.maxTileHeight))}}function kn(){Tn&&(Tn.clearRect(0,0,En.width,En.height),_e.backgroundColor&&(Tn.fillStyle=_e.backgroundColor,Tn.fillRect(0,0,En.width,En.height)));for(var An=0,On=0;On<vn.length;++On)An+=vn[On];if(An<=0)return;for(var Nn=-Cn,Rn=0,zn=0,Bn=0;Nn<wn.height;){if(Rn%2===0){for(var Mn=zn/2%_n.length,Fn=0,Vn=0,jn=0;Fn<wn.width*2;){for(var Zn=0,On=0;On<hn[Bn].length;++On)Zn+=hn[Bn][On];if(Zn<=0)break;if(Vn%2===0){var Gn=(1-_e.symbolSize)*.5,Xn=Fn+hn[Bn][Vn]*Gn,cr=Nn+vn[Rn]*Gn,nr=hn[Bn][Vn]*_e.symbolSize,er=vn[Rn]*_e.symbolSize,rr=jn/2%_n[Mn].length;qn(Xn,cr,nr,er,_n[Mn][rr])}Fn+=hn[Bn][Vn],++jn,++Vn,Vn===hn[Bn].length&&(Vn=0)}++Bn,Bn===hn.length&&(Bn=0)}Nn+=vn[Rn],++zn,++Rn,Rn===vn.length&&(Rn=0)}function qn(Yn,ar,pr,Un,tr){var ur=le?1:ae,_r=createSymbol(tr,Yn*ur,ar*ur,pr*ur,Un*ur,_e.color,_e.symbolKeepAspect);if(le){var Er=ie.painter.renderOneToVNode(_r);Er&&$n.children.push(Er)}else brushSingle(Tn,_r)}}}}function normalizeSymbolArray($){if(!$||$.length===0)return[["rect"]];if(isString($))return[[$]];for(var oe=!0,ae=0;ae<$.length;++ae)if(!isString($[ae])){oe=!1;break}if(oe)return normalizeSymbolArray([$]);for(var ie=[],ae=0;ae<$.length;++ae)isString($[ae])?ie.push([$[ae]]):ie.push($[ae]);return ie}function normalizeDashArrayX($){if(!$||$.length===0)return[[0,0]];if(isNumber($)){var oe=Math.ceil($);return[[oe,oe]]}for(var ae=!0,ie=0;ie<$.length;++ie)if(!isNumber($[ie])){ae=!1;break}if(ae)return normalizeDashArrayX([$]);for(var le=[],ie=0;ie<$.length;++ie)if(isNumber($[ie])){var oe=Math.ceil($[ie]);le.push([oe,oe])}else{var oe=map$2($[ie],function(Ce){return Math.ceil(Ce)});oe.length%2===1?le.push(oe.concat(oe)):le.push(oe)}return le}function normalizeDashArrayY($){if(!$||typeof $=="object"&&$.length===0)return[0,0];if(isNumber($)){var oe=Math.ceil($);return[oe,oe]}var ae=map$2($,function(ie){return Math.ceil(ie)});return $.length%2?ae.concat(ae):ae}function getLineBlockLengthX($){return map$2($,function(oe){return getLineBlockLengthY(oe)})}function getLineBlockLengthY($){for(var oe=0,ae=0;ae<$.length;++ae)oe+=$[ae];return $.length%2===1?oe*2:oe}function decalVisual($,oe){$.eachRawSeries(function(ae){if(!$.isSeriesFiltered(ae)){var ie=ae.getData();ie.hasItemVisual()&&ie.each(function(_e){var Ce=ie.getItemVisual(_e,"decal");if(Ce){var $e=ie.ensureUniqueItemVisual(_e,"style");$e.decal=createOrUpdatePatternFromDecal(Ce,oe)}});var le=ie.getVisual("decal");if(le){var pe=ie.getVisual("style");pe.decal=createOrUpdatePatternFromDecal(le,oe)}}})}var lifecycle=new Eventful$1;const lifecycle$1=lifecycle;var implsStore={};function registerImpl($,oe){implsStore[$]=oe}function getImpl($){return implsStore[$]}var version="5.4.2",dependencies={zrender:"5.4.3"},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($){return function(){for(var oe=[],ae=0;ae<arguments.length;ae++)oe[ae]=arguments[ae];if(this.isDisposed()){this.id;return}return toLowercaseNameAndCallEventful(this,$,oe)}}function createRegisterEventWithLowercaseMessageCenter($){return function(){for(var oe=[],ae=0;ae<arguments.length;ae++)oe[ae]=arguments[ae];return toLowercaseNameAndCallEventful(this,$,oe)}}function toLowercaseNameAndCallEventful($,oe,ae){return ae[0]=ae[0]&&ae[0].toLowerCase(),Eventful$1.prototype[oe].apply($,ae)}var MessageCenter=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe}(Eventful$1),messageCenterProto=MessageCenter.prototype;messageCenterProto.on=createRegisterEventWithLowercaseMessageCenter("on");messageCenterProto.off=createRegisterEventWithLowercaseMessageCenter("off");var prepare$1,prepareView,updateDirectly,updateMethods,doConvertPixel,updateStreamModes,doDispatchAction,flushPendingActions,triggerUpdatedEvent,bindRenderedEvent,bindMouseEvent,render$2,renderComponents,renderSeries,createExtensionAPI,enableConnect,markStatusToUpdate,applyChangedStates,ECharts=function($){__extends(oe,$);function oe(ae,ie,le){var pe=$.call(this,new ECEventProcessor)||this;pe._chartsViews=[],pe._chartsMap={},pe._componentsViews=[],pe._componentsMap={},pe._pendingActions=[],le=le||{},isString(ie)&&(ie=themeStorage[ie]),pe._dom=ae;var _e="canvas",Ce="auto",$e=!1,xe=pe._zr=init$1(ae,{renderer:le.renderer||_e,devicePixelRatio:le.devicePixelRatio,width:le.width,height:le.height,ssr:le.ssr,useDirtyRect:retrieve2(le.useDirtyRect,$e),useCoarsePointer:retrieve2(le.useCoarsePointer,Ce),pointerSize:le.pointerSize});pe._ssr=le.ssr,pe._throttledZrFlush=throttle(bind$1(xe.flush,xe),17),ie=clone$3(ie),ie&&globalBackwardCompat(ie,!0),pe._theme=ie,pe._locale=createLocaleObject(le.locale||SYSTEM_LANG),pe._coordSysMgr=new CoordinateSystem;var Ie=pe._api=createExtensionAPI(pe);function Ne(Fe,ze){return Fe.__prio-ze.__prio}return sort(visualFuncs,Ne),sort(dataProcessorFuncs,Ne),pe._scheduler=new Scheduler$1(pe,Ie,dataProcessorFuncs,visualFuncs),pe._messageCenter=new MessageCenter,pe._initEvents(),pe.resize=bind$1(pe.resize,pe),xe.animation.on("frame",pe._onframe,pe),bindRenderedEvent(xe,pe),bindMouseEvent(xe,pe),setAsPrimitive(pe),pe}return oe.prototype._onframe=function(){if(!this._disposed){applyChangedStates(this);var ae=this._scheduler;if(this[PENDING_UPDATE]){var ie=this[PENDING_UPDATE].silent;this[IN_MAIN_PROCESS_KEY]=!0;try{prepare$1(this),updateMethods.update.call(this,null,this[PENDING_UPDATE].updateParams)}catch($e){throw this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,$e}this._zr.flush(),this[IN_MAIN_PROCESS_KEY]=!1,this[PENDING_UPDATE]=null,flushPendingActions.call(this,ie),triggerUpdatedEvent.call(this,ie)}else if(ae.unfinished){var le=TEST_FRAME_REMAIN_TIME,pe=this._model,_e=this._api;ae.unfinished=!1;do{var Ce=+new Date;ae.performSeriesTasks(pe),ae.performDataProcessorTasks(pe),updateStreamModes(this,pe),ae.performVisualTasks(pe),renderSeries(this,this._model,_e,"remain",{}),le-=+new Date-Ce}while(le>0&&ae.unfinished);ae.unfinished||this._zr.flush()}}},oe.prototype.getDom=function(){return this._dom},oe.prototype.getId=function(){return this.id},oe.prototype.getZr=function(){return this._zr},oe.prototype.isSSR=function(){return this._ssr},oe.prototype.setOption=function(ae,ie,le){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var pe,_e,Ce;if(isObject$3(ie)&&(le=ie.lazyUpdate,pe=ie.silent,_e=ie.replaceMerge,Ce=ie.transition,ie=ie.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||ie){var $e=new OptionManager$1(this._api),xe=this._theme,Ie=this._model=new GlobalModel$1;Ie.scheduler=this._scheduler,Ie.ssr=this._ssr,Ie.init(null,null,null,xe,this._locale,$e)}this._model.setOption(ae,{replaceMerge:_e},optionPreprocessorFuncs);var Ne={seriesTransition:Ce,optionChanged:!0};if(le)this[PENDING_UPDATE]={silent:pe,updateParams:Ne},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,Ne)}catch(Fe){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,Fe}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,pe),triggerUpdatedEvent.call(this,pe)}}},oe.prototype.setTheme=function(){},oe.prototype.getModel=function(){return this._model},oe.prototype.getOption=function(){return this._model&&this._model.getOption()},oe.prototype.getWidth=function(){return this._zr.getWidth()},oe.prototype.getHeight=function(){return this._zr.getHeight()},oe.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},oe.prototype.getRenderedCanvas=function(ae){return this.renderToCanvas(ae)},oe.prototype.renderToCanvas=function(ae){ae=ae||{};var ie=this._zr.painter;return ie.getRenderedCanvas({backgroundColor:ae.backgroundColor||this._model.get("backgroundColor"),pixelRatio:ae.pixelRatio||this.getDevicePixelRatio()})},oe.prototype.renderToSVGString=function(ae){ae=ae||{};var ie=this._zr.painter;return ie.renderToString({useViewBox:ae.useViewBox})},oe.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var ae=this._zr,ie=ae.storage.getDisplayList();return each$c(ie,function(le){le.stopAnimation(null,!0)}),ae.painter.toDataURL()}},oe.prototype.getDataURL=function(ae){if(this._disposed){this.id;return}ae=ae||{};var ie=ae.excludeComponents,le=this._model,pe=[],_e=this;each$c(ie,function($e){le.eachComponent({mainType:$e},function(xe){var Ie=_e._componentsMap[xe.__viewId];Ie.group.ignore||(pe.push(Ie),Ie.group.ignore=!0)})});var Ce=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(ae).toDataURL("image/"+(ae&&ae.type||"png"));return each$c(pe,function($e){$e.group.ignore=!1}),Ce},oe.prototype.getConnectedDataURL=function(ae){if(this._disposed){this.id;return}var ie=ae.type==="svg",le=this.group,pe=Math.min,_e=Math.max,Ce=1/0;if(connectedGroups[le]){var $e=Ce,xe=Ce,Ie=-Ce,Ne=-Ce,Fe=[],ze=ae&&ae.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(bn,Cn){if(bn.group===le){var En=ie?bn.getZr().painter.getSvgDom().innerHTML:bn.renderToCanvas(clone$3(ae)),$n=bn.getDom().getBoundingClientRect();$e=pe($n.left,$e),xe=pe($n.top,xe),Ie=_e($n.right,Ie),Ne=_e($n.bottom,Ne),Fe.push({dom:En,left:$n.left,top:$n.top})}}),$e*=ze,xe*=ze,Ie*=ze,Ne*=ze;var At=Ie-$e,Lt=Ne-xe,hn=platformApi.createCanvas(),vn=init$1(hn,{renderer:ie?"svg":"canvas"});if(vn.resize({width:At,height:Lt}),ie){var _n="";return each$c(Fe,function(bn){var Cn=bn.left-$e,En=bn.top-xe;_n+='<g transform="translate('+Cn+","+En+')">'+bn.dom+"</g>"}),vn.painter.getSvgRoot().innerHTML=_n,ae.connectedBackgroundColor&&vn.painter.setBackgroundColor(ae.connectedBackgroundColor),vn.refreshImmediately(),vn.painter.toDataURL()}else return ae.connectedBackgroundColor&&vn.add(new Rect$2({shape:{x:0,y:0,width:At,height:Lt},style:{fill:ae.connectedBackgroundColor}})),each$c(Fe,function(bn){var Cn=new ZRImage$1({style:{x:bn.left*ze-$e,y:bn.top*ze-xe,image:bn.dom}});vn.add(Cn)}),vn.refreshImmediately(),hn.toDataURL("image/"+(ae&&ae.type||"png"))}else return this.getDataURL(ae)},oe.prototype.convertToPixel=function(ae,ie){return doConvertPixel(this,"convertToPixel",ae,ie)},oe.prototype.convertFromPixel=function(ae,ie){return doConvertPixel(this,"convertFromPixel",ae,ie)},oe.prototype.containPixel=function(ae,ie){if(this._disposed){this.id;return}var le=this._model,pe,_e=parseFinder$1(le,ae);return each$c(_e,function(Ce,$e){$e.indexOf("Models")>=0&&each$c(Ce,function(xe){var Ie=xe.coordinateSystem;if(Ie&&Ie.containPoint)pe=pe||!!Ie.containPoint(ie);else if($e==="seriesModels"){var Ne=this._chartsMap[xe.__viewId];Ne&&Ne.containPoint&&(pe=pe||Ne.containPoint(ie,xe))}},this)},this),!!pe},oe.prototype.getVisual=function(ae,ie){var le=this._model,pe=parseFinder$1(le,ae,{defaultMainType:"series"}),_e=pe.seriesModel,Ce=_e.getData(),$e=pe.hasOwnProperty("dataIndexInside")?pe.dataIndexInside:pe.hasOwnProperty("dataIndex")?Ce.indexOfRawIndex(pe.dataIndex):null;return $e!=null?getItemVisualFromData(Ce,$e,ie):getVisualFromData(Ce,ie)},oe.prototype.getViewOfComponentModel=function(ae){return this._componentsMap[ae.__viewId]},oe.prototype.getViewOfSeriesModel=function(ae){return this._chartsMap[ae.__viewId]},oe.prototype._initEvents=function(){var ae=this;each$c(MOUSE_EVENT_NAMES,function(ie){var le=function(pe){var _e=ae.getModel(),Ce=pe.target,$e,xe=ie==="globalout";if(xe?$e={}:Ce&&findEventDispatcher(Ce,function(At){var Lt=getECData(At);if(Lt&&Lt.dataIndex!=null){var hn=Lt.dataModel||_e.getSeriesByIndex(Lt.seriesIndex);return $e=hn&&hn.getDataParams(Lt.dataIndex,Lt.dataType)||{},!0}else if(Lt.eventData)return $e=extend({},Lt.eventData),!0},!0),$e){var Ie=$e.componentType,Ne=$e.componentIndex;(Ie==="markLine"||Ie==="markPoint"||Ie==="markArea")&&(Ie="series",Ne=$e.seriesIndex);var Fe=Ie&&Ne!=null&&_e.getComponent(Ie,Ne),ze=Fe&&ae[Fe.mainType==="series"?"_chartsMap":"_componentsMap"][Fe.__viewId];$e.event=pe,$e.type=ie,ae._$eventProcessor.eventInfo={targetEl:Ce,packedEvent:$e,model:Fe,view:ze},ae.trigger(ie,$e)}};le.zrEventfulCallAtLast=!0,ae._zr.on(ie,le,ae)}),each$c(eventActionMap,function(ie,le){ae._messageCenter.on(le,function(pe){this.trigger(le,pe)},ae)}),each$c(["selectchanged"],function(ie){ae._messageCenter.on(ie,function(le){this.trigger(ie,le)},ae)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},oe.prototype.isDisposed=function(){return this._disposed},oe.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},oe.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var ae=this.getDom();ae&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var ie=this,le=ie._api,pe=ie._model;each$c(ie._componentsViews,function(_e){_e.dispose(pe,le)}),each$c(ie._chartsViews,function(_e){_e.dispose(pe,le)}),ie._zr.dispose(),ie._dom=ie._model=ie._chartsMap=ie._componentsMap=ie._chartsViews=ie._componentsViews=ie._scheduler=ie._api=ie._zr=ie._throttledZrFlush=ie._theme=ie._coordSysMgr=ie._messageCenter=null,delete instances[ie.id]},oe.prototype.resize=function(ae){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize(ae);var ie=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!ie){var le=ie.resetOption("media"),pe=ae&&ae.silent;this[PENDING_UPDATE]&&(pe==null&&(pe=this[PENDING_UPDATE].silent),le=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{le&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},ae&&ae.animation)})}catch(_e){throw this[IN_MAIN_PROCESS_KEY]=!1,_e}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,pe),triggerUpdatedEvent.call(this,pe)}}},oe.prototype.showLoading=function(ae,ie){if(this._disposed){this.id;return}if(isObject$3(ae)&&(ie=ae,ae=""),ae=ae||"default",this.hideLoading(),!!loadingEffects[ae]){var le=loadingEffects[ae](this._api,ie),pe=this._zr;this._loadingFX=le,pe.add(le)}},oe.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},oe.prototype.makeActionFromEvent=function(ae){var ie=extend({},ae);return ie.type=eventActionMap[ae.type],ie},oe.prototype.dispatchAction=function(ae,ie){if(this._disposed){this.id;return}if(isObject$3(ie)||(ie={silent:!!ie}),!!actions[ae.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push(ae);return}var le=ie.silent;doDispatchAction.call(this,ae,le);var pe=ie.flush;pe?this._zr.flush():pe!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,le),triggerUpdatedEvent.call(this,le)}},oe.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},oe.prototype.appendData=function(ae){if(this._disposed){this.id;return}var ie=ae.seriesIndex,le=this.getModel(),pe=le.getSeriesByIndex(ie);pe.appendData(ae),this._scheduler.unfinished=!0,this.getZr().wakeUp()},oe.internalField=function(){prepare$1=function(Ne){var Fe=Ne._scheduler;Fe.restorePipelines(Ne._model),Fe.prepareStageTasks(),prepareView(Ne,!0),prepareView(Ne,!1),Fe.plan()},prepareView=function(Ne,Fe){for(var ze=Ne._model,At=Ne._scheduler,Lt=Fe?Ne._componentsViews:Ne._chartsViews,hn=Fe?Ne._componentsMap:Ne._chartsMap,vn=Ne._zr,_n=Ne._api,bn=0;bn<Lt.length;bn++)Lt[bn].__alive=!1;Fe?ze.eachComponent(function($n,wn){$n!=="series"&&Cn(wn)}):ze.eachSeries(Cn);function Cn($n){var wn=$n.__requireNewView;$n.__requireNewView=!1;var Tn="_ec_"+$n.id+"_"+$n.type,xn=!wn&&hn[Tn];if(!xn){var kn=parseClassType($n.type),An=Fe?ComponentView$1.getClass(kn.main,kn.sub):ChartView$1.getClass(kn.sub);xn=new An,xn.init(ze,_n),hn[Tn]=xn,Lt.push(xn),vn.add(xn.group)}$n.__viewId=xn.__id=Tn,xn.__alive=!0,xn.__model=$n,xn.group.__ecComponentInfo={mainType:$n.mainType,index:$n.componentIndex},!Fe&&At.prepareView(xn,$n,ze,_n)}for(var bn=0;bn<Lt.length;){var En=Lt[bn];En.__alive?bn++:(!Fe&&En.renderTask.dispose(),vn.remove(En.group),En.dispose(ze,_n),Lt.splice(bn,1),hn[En.__id]===En&&delete hn[En.__id],En.__id=En.group.__ecComponentInfo=null)}},updateDirectly=function(Ne,Fe,ze,At,Lt){var hn=Ne._model;if(hn.setUpdatePayload(ze),!At){each$c([].concat(Ne._componentsViews).concat(Ne._chartsViews),En);return}var vn={};vn[At+"Id"]=ze[At+"Id"],vn[At+"Index"]=ze[At+"Index"],vn[At+"Name"]=ze[At+"Name"];var _n={mainType:At,query:vn};Lt&&(_n.subType=Lt);var bn=ze.excludeSeriesId,Cn;bn!=null&&(Cn=createHashMap(),each$c(normalizeToArray(bn),function($n){var wn=convertOptionIdName($n,null);wn!=null&&Cn.set(wn,!0)})),hn&&hn.eachComponent(_n,function($n){var wn=Cn&&Cn.get($n.id)!=null;if(!wn)if(isHighDownPayload(ze))if($n instanceof SeriesModel$1)ze.type===HIGHLIGHT_ACTION_TYPE&&!ze.notBlur&&!$n.get(["emphasis","disabled"])&&blurSeriesFromHighlightPayload($n,ze,Ne._api);else{var Tn=findComponentHighDownDispatchers($n.mainType,$n.componentIndex,ze.name,Ne._api),xn=Tn.focusSelf,kn=Tn.dispatchers;ze.type===HIGHLIGHT_ACTION_TYPE&&xn&&!ze.notBlur&&blurComponent($n.mainType,$n.componentIndex,Ne._api),kn&&each$c(kn,function(An){ze.type===HIGHLIGHT_ACTION_TYPE?enterEmphasis(An):leaveEmphasis(An)})}else isSelectChangePayload(ze)&&$n instanceof SeriesModel$1&&(toggleSelectionFromPayload($n,ze,Ne._api),updateSeriesElementSelection($n),markStatusToUpdate(Ne))},Ne),hn&&hn.eachComponent(_n,function($n){var wn=Cn&&Cn.get($n.id)!=null;wn||En(Ne[At==="series"?"_chartsMap":"_componentsMap"][$n.__viewId])},Ne);function En($n){$n&&$n.__alive&&$n[Fe]&&$n[Fe]($n.__model,hn,Ne._api,ze)}},updateMethods={prepareAndUpdate:function(Ne){prepare$1(this),updateMethods.update.call(this,Ne,{optionChanged:Ne.newOption!=null})},update:function(Ne,Fe){var ze=this._model,At=this._api,Lt=this._zr,hn=this._coordSysMgr,vn=this._scheduler;if(ze){ze.setUpdatePayload(Ne),vn.restoreData(ze,Ne),vn.performSeriesTasks(ze),hn.create(ze,At),vn.performDataProcessorTasks(ze,Ne),updateStreamModes(this,ze),hn.update(ze,At),ae(ze),vn.performVisualTasks(ze,Ne),render$2(this,ze,At,Ne,Fe);var _n=ze.get("backgroundColor")||"transparent",bn=ze.get("darkMode");Lt.setBackgroundColor(_n),bn!=null&&bn!=="auto"&&Lt.setDarkMode(bn),lifecycle$1.trigger("afterupdate",ze,At)}},updateTransform:function(Ne){var Fe=this,ze=this._model,At=this._api;if(ze){ze.setUpdatePayload(Ne);var Lt=[];ze.eachComponent(function(vn,_n){if(vn!=="series"){var bn=Fe.getViewOfComponentModel(_n);if(bn&&bn.__alive)if(bn.updateTransform){var Cn=bn.updateTransform(_n,ze,At,Ne);Cn&&Cn.update&&Lt.push(bn)}else Lt.push(bn)}});var hn=createHashMap();ze.eachSeries(function(vn){var _n=Fe._chartsMap[vn.__viewId];if(_n.updateTransform){var bn=_n.updateTransform(vn,ze,At,Ne);bn&&bn.update&&hn.set(vn.uid,1)}else hn.set(vn.uid,1)}),ae(ze),this._scheduler.performVisualTasks(ze,Ne,{setDirty:!0,dirtyMap:hn}),renderSeries(this,ze,At,Ne,{},hn),lifecycle$1.trigger("afterupdate",ze,At)}},updateView:function(Ne){var Fe=this._model;Fe&&(Fe.setUpdatePayload(Ne),ChartView$1.markUpdateMethod(Ne,"updateView"),ae(Fe),this._scheduler.performVisualTasks(Fe,Ne,{setDirty:!0}),render$2(this,Fe,this._api,Ne,{}),lifecycle$1.trigger("afterupdate",Fe,this._api))},updateVisual:function(Ne){var Fe=this,ze=this._model;ze&&(ze.setUpdatePayload(Ne),ze.eachSeries(function(At){At.getData().clearAllVisual()}),ChartView$1.markUpdateMethod(Ne,"updateVisual"),ae(ze),this._scheduler.performVisualTasks(ze,Ne,{visualType:"visual",setDirty:!0}),ze.eachComponent(function(At,Lt){if(At!=="series"){var hn=Fe.getViewOfComponentModel(Lt);hn&&hn.__alive&&hn.updateVisual(Lt,ze,Fe._api,Ne)}}),ze.eachSeries(function(At){var Lt=Fe._chartsMap[At.__viewId];Lt.updateVisual(At,ze,Fe._api,Ne)}),lifecycle$1.trigger("afterupdate",ze,this._api))},updateLayout:function(Ne){updateMethods.update.call(this,Ne)}},doConvertPixel=function(Ne,Fe,ze,At){if(Ne._disposed){Ne.id;return}for(var Lt=Ne._model,hn=Ne._coordSysMgr.getCoordinateSystems(),vn,_n=parseFinder$1(Lt,ze),bn=0;bn<hn.length;bn++){var Cn=hn[bn];if(Cn[Fe]&&(vn=Cn[Fe](Lt,_n,At))!=null)return vn}},updateStreamModes=function(Ne,Fe){var ze=Ne._chartsMap,At=Ne._scheduler;Fe.eachSeries(function(Lt){At.updateStreamModes(Lt,ze[Lt.__viewId])})},doDispatchAction=function(Ne,Fe){var ze=this,At=this.getModel(),Lt=Ne.type,hn=Ne.escapeConnect,vn=actions[Lt],_n=vn.actionInfo,bn=(_n.update||"update").split(":"),Cn=bn.pop(),En=bn[0]!=null&&parseClassType(bn[0]);this[IN_MAIN_PROCESS_KEY]=!0;var $n=[Ne],wn=!1;Ne.batch&&(wn=!0,$n=map$2(Ne.batch,function(Rn){return Rn=defaults(extend({},Rn),Ne),Rn.batch=null,Rn}));var Tn=[],xn,kn=isSelectChangePayload(Ne),An=isHighDownPayload(Ne);if(An&&allLeaveBlur(this._api),each$c($n,function(Rn){if(xn=vn.action(Rn,ze._model,ze._api),xn=xn||extend({},Rn),xn.type=_n.event||xn.type,Tn.push(xn),An){var zn=preParseFinder(Ne),Bn=zn.queryOptionMap,Mn=zn.mainTypeSpecified,Fn=Mn?Bn.keys()[0]:"series";updateDirectly(ze,Cn,Rn,Fn),markStatusToUpdate(ze)}else kn?(updateDirectly(ze,Cn,Rn,"series"),markStatusToUpdate(ze)):En&&updateDirectly(ze,Cn,Rn,En.main,En.sub)}),Cn!=="none"&&!An&&!kn&&!En)try{this[PENDING_UPDATE]?(prepare$1(this),updateMethods.update.call(this,Ne),this[PENDING_UPDATE]=null):updateMethods[Cn].call(this,Ne)}catch(Rn){throw this[IN_MAIN_PROCESS_KEY]=!1,Rn}if(wn?xn={type:_n.event||Lt,escapeConnect:hn,batch:Tn}:xn=Tn[0],this[IN_MAIN_PROCESS_KEY]=!1,!Fe){var On=this._messageCenter;if(On.trigger(xn.type,xn),kn){var Nn={type:"selectchanged",escapeConnect:hn,selected:getAllSelectedIndices(At),isFromClick:Ne.isFromClick||!1,fromAction:Ne.type,fromActionPayload:Ne};On.trigger(Nn.type,Nn)}}},flushPendingActions=function(Ne){for(var Fe=this._pendingActions;Fe.length;){var ze=Fe.shift();doDispatchAction.call(this,ze,Ne)}},triggerUpdatedEvent=function(Ne){!Ne&&this.trigger("updated")},bindRenderedEvent=function(Ne,Fe){Ne.on("rendered",function(ze){Fe.trigger("rendered",ze),Ne.animation.isFinished()&&!Fe[PENDING_UPDATE]&&!Fe._scheduler.unfinished&&!Fe._pendingActions.length&&Fe.trigger("finished")})},bindMouseEvent=function(Ne,Fe){Ne.on("mouseover",function(ze){var At=ze.target,Lt=findEventDispatcher(At,isHighDownDispatcher);Lt&&(handleGlobalMouseOverForHighDown(Lt,ze,Fe._api),markStatusToUpdate(Fe))}).on("mouseout",function(ze){var At=ze.target,Lt=findEventDispatcher(At,isHighDownDispatcher);Lt&&(handleGlobalMouseOutForHighDown(Lt,ze,Fe._api),markStatusToUpdate(Fe))}).on("click",function(ze){var At=ze.target,Lt=findEventDispatcher(At,function(_n){return getECData(_n).dataIndex!=null},!0);if(Lt){var hn=Lt.selected?"unselect":"select",vn=getECData(Lt);Fe._api.dispatchAction({type:hn,dataType:vn.dataType,dataIndexInside:vn.dataIndex,seriesIndex:vn.seriesIndex,isFromClick:!0})}})};function ae(Ne){Ne.clearColorPalette(),Ne.eachSeries(function(Fe){Fe.clearColorPalette()})}function ie(Ne){var Fe=[],ze=[],At=!1;if(Ne.eachComponent(function(_n,bn){var Cn=bn.get("zlevel")||0,En=bn.get("z")||0,$n=bn.getZLevelKey();At=At||!!$n,(_n==="series"?ze:Fe).push({zlevel:Cn,z:En,idx:bn.componentIndex,type:_n,key:$n})}),At){var Lt=Fe.concat(ze),hn,vn;sort(Lt,function(_n,bn){return _n.zlevel===bn.zlevel?_n.z-bn.z:_n.zlevel-bn.zlevel}),each$c(Lt,function(_n){var bn=Ne.getComponent(_n.type,_n.idx),Cn=_n.zlevel,En=_n.key;hn!=null&&(Cn=Math.max(hn,Cn)),En?(Cn===hn&&En!==vn&&Cn++,vn=En):vn&&(Cn===hn&&Cn++,vn=""),hn=Cn,bn.setZLevel(Cn)})}}render$2=function(Ne,Fe,ze,At,Lt){ie(Fe),renderComponents(Ne,Fe,ze,At,Lt),each$c(Ne._chartsViews,function(hn){hn.__alive=!1}),renderSeries(Ne,Fe,ze,At,Lt),each$c(Ne._chartsViews,function(hn){hn.__alive||hn.remove(Fe,ze)})},renderComponents=function(Ne,Fe,ze,At,Lt,hn){each$c(hn||Ne._componentsViews,function(vn){var _n=vn.__model;xe(_n,vn),vn.render(_n,Fe,ze,At),Ce(_n,vn),Ie(_n,vn)})},renderSeries=function(Ne,Fe,ze,At,Lt,hn){var vn=Ne._scheduler;Lt=extend(Lt||{},{updatedSeries:Fe.getSeries()}),lifecycle$1.trigger("series:beforeupdate",Fe,ze,Lt);var _n=!1;Fe.eachSeries(function(bn){var Cn=Ne._chartsMap[bn.__viewId];Cn.__alive=!0;var En=Cn.renderTask;vn.updatePayload(En,At),xe(bn,Cn),hn&&hn.get(bn.uid)&&En.dirty(),En.perform(vn.getPerformArgs(En))&&(_n=!0),Cn.group.silent=!!bn.get("silent"),_e(bn,Cn),updateSeriesElementSelection(bn)}),vn.unfinished=_n||vn.unfinished,lifecycle$1.trigger("series:layoutlabels",Fe,ze,Lt),lifecycle$1.trigger("series:transition",Fe,ze,Lt),Fe.eachSeries(function(bn){var Cn=Ne._chartsMap[bn.__viewId];Ce(bn,Cn),Ie(bn,Cn)}),pe(Ne,Fe),lifecycle$1.trigger("series:afterupdate",Fe,ze,Lt)},markStatusToUpdate=function(Ne){Ne[STATUS_NEEDS_UPDATE_KEY]=!0,Ne.getZr().wakeUp()},applyChangedStates=function(Ne){Ne[STATUS_NEEDS_UPDATE_KEY]&&(Ne.getZr().storage.traverse(function(Fe){isElementRemoved(Fe)||le(Fe)}),Ne[STATUS_NEEDS_UPDATE_KEY]=!1)};function le(Ne){for(var Fe=[],ze=Ne.currentStates,At=0;At<ze.length;At++){var Lt=ze[At];Lt==="emphasis"||Lt==="blur"||Lt==="select"||Fe.push(Lt)}Ne.selected&&Ne.states.select&&Fe.push("select"),Ne.hoverState===HOVER_STATE_EMPHASIS&&Ne.states.emphasis?Fe.push("emphasis"):Ne.hoverState===HOVER_STATE_BLUR&&Ne.states.blur&&Fe.push("blur"),Ne.useStates(Fe)}function pe(Ne,Fe){var ze=Ne._zr,At=ze.storage,Lt=0;At.traverse(function(hn){hn.isGroup||Lt++}),Lt>Fe.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&Fe.eachSeries(function(hn){if(!hn.preventUsingHoverLayer){var vn=Ne._chartsMap[hn.__viewId];vn.__alive&&vn.eachRendered(function(_n){_n.states.emphasis&&(_n.states.emphasis.hoverLayer=!0)})}})}function _e(Ne,Fe){var ze=Ne.get("blendMode")||null;Fe.eachRendered(function(At){At.isGroup||(At.style.blend=ze)})}function Ce(Ne,Fe){if(!Ne.preventAutoZ){var ze=Ne.get("z")||0,At=Ne.get("zlevel")||0;Fe.eachRendered(function(Lt){return $e(Lt,ze,At,-1/0),!0})}}function $e(Ne,Fe,ze,At){var Lt=Ne.getTextContent(),hn=Ne.getTextGuideLine(),vn=Ne.isGroup;if(vn)for(var _n=Ne.childrenRef(),bn=0;bn<_n.length;bn++)At=Math.max($e(_n[bn],Fe,ze,At),At);else Ne.z=Fe,Ne.zlevel=ze,At=Math.max(Ne.z2,At);if(Lt&&(Lt.z=Fe,Lt.zlevel=ze,isFinite(At)&&(Lt.z2=At+2)),hn){var Cn=Ne.textGuideLineConfig;hn.z=Fe,hn.zlevel=ze,isFinite(At)&&(hn.z2=At+(Cn&&Cn.showAbove?1:-1))}return At}function xe(Ne,Fe){Fe.eachRendered(function(ze){if(!isElementRemoved(ze)){var At=ze.getTextContent(),Lt=ze.getTextGuideLine();ze.stateTransition&&(ze.stateTransition=null),At&&At.stateTransition&&(At.stateTransition=null),Lt&&Lt.stateTransition&&(Lt.stateTransition=null),ze.hasState()?(ze.prevStates=ze.currentStates,ze.clearStates()):ze.prevStates&&(ze.prevStates=null)}})}function Ie(Ne,Fe){var ze=Ne.getModel("stateAnimation"),At=Ne.isAnimationEnabled(),Lt=ze.get("duration"),hn=Lt>0?{duration:Lt,delay:ze.get("delay"),easing:ze.get("easing")}:null;Fe.eachRendered(function(vn){if(vn.states&&vn.states.emphasis){if(isElementRemoved(vn))return;if(vn instanceof Path$1&&savePathStates(vn),vn.__dirty){var _n=vn.prevStates;_n&&vn.useStates(_n)}if(At){vn.stateTransition=hn;var bn=vn.getTextContent(),Cn=vn.getTextGuideLine();bn&&(bn.stateTransition=hn),Cn&&(Cn.stateTransition=hn)}vn.__dirty&&le(vn)}})}createExtensionAPI=function(Ne){return new(function(Fe){__extends(ze,Fe);function ze(){return Fe!==null&&Fe.apply(this,arguments)||this}return ze.prototype.getCoordinateSystems=function(){return Ne._coordSysMgr.getCoordinateSystems()},ze.prototype.getComponentByElement=function(At){for(;At;){var Lt=At.__ecComponentInfo;if(Lt!=null)return Ne._model.getComponent(Lt.mainType,Lt.index);At=At.parent}},ze.prototype.enterEmphasis=function(At,Lt){enterEmphasis(At,Lt),markStatusToUpdate(Ne)},ze.prototype.leaveEmphasis=function(At,Lt){leaveEmphasis(At,Lt),markStatusToUpdate(Ne)},ze.prototype.enterBlur=function(At){enterBlur(At),markStatusToUpdate(Ne)},ze.prototype.leaveBlur=function(At){leaveBlur(At),markStatusToUpdate(Ne)},ze.prototype.enterSelect=function(At){enterSelect(At),markStatusToUpdate(Ne)},ze.prototype.leaveSelect=function(At){leaveSelect(At),markStatusToUpdate(Ne)},ze.prototype.getModel=function(){return Ne.getModel()},ze.prototype.getViewOfComponentModel=function(At){return Ne.getViewOfComponentModel(At)},ze.prototype.getViewOfSeriesModel=function(At){return Ne.getViewOfSeriesModel(At)},ze}(ExtensionAPI$1))(Ne)},enableConnect=function(Ne){function Fe(ze,At){for(var Lt=0;Lt<ze.length;Lt++){var hn=ze[Lt];hn[CONNECT_STATUS_KEY]=At}}each$c(eventActionMap,function(ze,At){Ne._messageCenter.on(At,function(Lt){if(connectedGroups[Ne.group]&&Ne[CONNECT_STATUS_KEY]!==CONNECT_STATUS_PENDING){if(Lt&&Lt.escapeConnect)return;var hn=Ne.makeActionFromEvent(Lt),vn=[];each$c(instances,function(_n){_n!==Ne&&_n.group===Ne.group&&vn.push(_n)}),Fe(vn,CONNECT_STATUS_PENDING),each$c(vn,function(_n){_n[CONNECT_STATUS_KEY]!==CONNECT_STATUS_UPDATING&&_n.dispatchAction(hn)}),Fe(vn,CONNECT_STATUS_UPDATED)}})})}}(),oe}(Eventful$1),echartsProto=ECharts.prototype;echartsProto.on=createRegisterEventWithLowercaseECharts("on");echartsProto.off=createRegisterEventWithLowercaseECharts("off");echartsProto.one=function($,oe,ae){var ie=this;function le(){for(var pe=[],_e=0;_e<arguments.length;_e++)pe[_e]=arguments[_e];oe&&oe.apply&&oe.apply(this,pe),ie.off($,le)}this.on.call(this,$,le,ae)};var MOUSE_EVENT_NAMES=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function disposedWarning($){}var actions={},eventActionMap={},dataProcessorFuncs=[],optionPreprocessorFuncs=[],visualFuncs=[],themeStorage={},loadingEffects={},instances={},connectedGroups={},idBase=+new Date-0,groupIdBase=+new Date-0,DOM_ATTRIBUTE_KEY="_echarts_instance_";function init($,oe,ae){var ie=!(ae&&ae.ssr);if(ie){var le=getInstanceByDom($);if(le)return le}var pe=new ECharts($,oe,ae);return pe.id="ec_"+idBase++,instances[pe.id]=pe,ie&&setAttribute($,DOM_ATTRIBUTE_KEY,pe.id),enableConnect(pe),lifecycle$1.trigger("afterinit",pe),pe}function connect($){if(isArray$1($)){var oe=$;$=null,each$c(oe,function(ae){ae.group!=null&&($=ae.group)}),$=$||"g_"+groupIdBase++,each$c(oe,function(ae){ae.group=$})}return connectedGroups[$]=!0,$}function disConnect($){connectedGroups[$]=!1}var disconnect=disConnect;function dispose($){isString($)?$=instances[$]:$ instanceof ECharts||($=getInstanceByDom($)),$ instanceof ECharts&&!$.isDisposed()&&$.dispose()}function getInstanceByDom($){return instances[getAttribute($,DOM_ATTRIBUTE_KEY)]}function getInstanceById($){return instances[$]}function registerTheme($,oe){themeStorage[$]=oe}function registerPreprocessor($){indexOf(optionPreprocessorFuncs,$)<0&&optionPreprocessorFuncs.push($)}function registerProcessor($,oe){normalizeRegister(dataProcessorFuncs,$,oe,PRIORITY_PROCESSOR_DEFAULT)}function registerPostInit($){registerUpdateLifecycle("afterinit",$)}function registerPostUpdate($){registerUpdateLifecycle("afterupdate",$)}function registerUpdateLifecycle($,oe){lifecycle$1.on($,oe)}function registerAction($,oe,ae){isFunction(oe)&&(ae=oe,oe="");var ie=isObject$3($)?$.type:[$,$={event:oe}][0];$.event=($.event||ie).toLowerCase(),oe=$.event,!eventActionMap[oe]&&(assert(ACTION_REG.test(ie)&&ACTION_REG.test(oe)),actions[ie]||(actions[ie]={action:ae,actionInfo:$}),eventActionMap[oe]=ie)}function registerCoordinateSystem($,oe){CoordinateSystem.register($,oe)}function getCoordinateSystemDimensions($){var oe=CoordinateSystem.get($);if(oe)return oe.getDimensionsInfo?oe.getDimensionsInfo():oe.dimensions.slice()}function registerLayout($,oe){normalizeRegister(visualFuncs,$,oe,PRIORITY_VISUAL_LAYOUT,"layout")}function registerVisual($,oe){normalizeRegister(visualFuncs,$,oe,PRIORITY_VISUAL_CHART,"visual")}var registeredTasks=[];function normalizeRegister($,oe,ae,ie,le){if((isFunction(oe)||isObject$3(oe))&&(ae=oe,oe=ie),!(indexOf(registeredTasks,ae)>=0)){registeredTasks.push(ae);var pe=Scheduler$1.wrapStageHandler(ae,le);pe.__prio=oe,pe.__raw=ae,$.push(pe)}}function registerLoading($,oe){loadingEffects[$]=oe}function setCanvasCreator($){setPlatformAPI({createCanvas:$})}function registerMap($,oe,ae){var ie=getImpl("registerMap");ie&&ie($,oe,ae)}function getMap($){var oe=getImpl("getMap");return oe&&oe($)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength($){return $==null?0:$.length||1}function defaultKeyGetter($){return $}var DataDiffer=function(){function $(oe,ae,ie,le,pe,_e){this._old=oe,this._new=ae,this._oldKeyGetter=ie||defaultKeyGetter,this._newKeyGetter=le||defaultKeyGetter,this.context=pe,this._diffModeMultiple=_e==="multiple"}return $.prototype.add=function(oe){return this._add=oe,this},$.prototype.update=function(oe){return this._update=oe,this},$.prototype.updateManyToOne=function(oe){return this._updateManyToOne=oe,this},$.prototype.updateOneToMany=function(oe){return this._updateOneToMany=oe,this},$.prototype.updateManyToMany=function(oe){return this._updateManyToMany=oe,this},$.prototype.remove=function(oe){return this._remove=oe,this},$.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},$.prototype._executeOneToOne=function(){var oe=this._old,ae=this._new,ie={},le=new Array(oe.length),pe=new Array(ae.length);this._initIndexMap(oe,null,le,"_oldKeyGetter"),this._initIndexMap(ae,ie,pe,"_newKeyGetter");for(var _e=0;_e<oe.length;_e++){var Ce=le[_e],$e=ie[Ce],xe=dataIndexMapValueLength($e);if(xe>1){var Ie=$e.shift();$e.length===1&&(ie[Ce]=$e[0]),this._update&&this._update(Ie,_e)}else xe===1?(ie[Ce]=null,this._update&&this._update($e,_e)):this._remove&&this._remove(_e)}this._performRestAdd(pe,ie)},$.prototype._executeMultiple=function(){var oe=this._old,ae=this._new,ie={},le={},pe=[],_e=[];this._initIndexMap(oe,ie,pe,"_oldKeyGetter"),this._initIndexMap(ae,le,_e,"_newKeyGetter");for(var Ce=0;Ce<pe.length;Ce++){var $e=pe[Ce],xe=ie[$e],Ie=le[$e],Ne=dataIndexMapValueLength(xe),Fe=dataIndexMapValueLength(Ie);if(Ne>1&&Fe===1)this._updateManyToOne&&this._updateManyToOne(Ie,xe),le[$e]=null;else if(Ne===1&&Fe>1)this._updateOneToMany&&this._updateOneToMany(Ie,xe),le[$e]=null;else if(Ne===1&&Fe===1)this._update&&this._update(Ie,xe),le[$e]=null;else if(Ne>1&&Fe>1)this._updateManyToMany&&this._updateManyToMany(Ie,xe),le[$e]=null;else if(Ne>1)for(var ze=0;ze<Ne;ze++)this._remove&&this._remove(xe[ze]);else this._remove&&this._remove(xe)}this._performRestAdd(_e,le)},$.prototype._performRestAdd=function(oe,ae){for(var ie=0;ie<oe.length;ie++){var le=oe[ie],pe=ae[le],_e=dataIndexMapValueLength(pe);if(_e>1)for(var Ce=0;Ce<_e;Ce++)this._add&&this._add(pe[Ce]);else _e===1&&this._add&&this._add(pe);ae[le]=null}},$.prototype._initIndexMap=function(oe,ae,ie,le){for(var pe=this._diffModeMultiple,_e=0;_e<oe.length;_e++){var Ce="_ec_"+this[le](oe[_e],_e);if(pe||(ie[_e]=Ce),!!ae){var $e=ae[Ce],xe=dataIndexMapValueLength($e);xe===0?(ae[Ce]=_e,pe&&ie.push(Ce)):xe===1?ae[Ce]=[$e,_e]:$e.push(_e)}}},$}();const DataDiffer$1=DataDiffer;var DimensionUserOuput=function(){function $(oe,ae){this._encode=oe,this._schema=ae}return $.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},$.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},$}();function summarizeDimensions($,oe){var ae={},ie=ae.encode={},le=createHashMap(),pe=[],_e=[],Ce={};each$c($.dimensions,function(Fe){var ze=$.getDimensionInfo(Fe),At=ze.coordDim;if(At){var Lt=ze.coordDimIndex;getOrCreateEncodeArr(ie,At)[Lt]=Fe,ze.isExtraCoord||(le.set(At,1),mayLabelDimType(ze.type)&&(pe[0]=Fe),getOrCreateEncodeArr(Ce,At)[Lt]=$.getDimensionIndex(ze.name)),ze.defaultTooltip&&_e.push(Fe)}VISUAL_DIMENSIONS.each(function(hn,vn){var _n=getOrCreateEncodeArr(ie,vn),bn=ze.otherDims[vn];bn!=null&&bn!==!1&&(_n[bn]=ze.name)})});var $e=[],xe={};le.each(function(Fe,ze){var At=ie[ze];xe[ze]=At[0],$e=$e.concat(At)}),ae.dataDimsOnCoord=$e,ae.dataDimIndicesOnCoord=map$2($e,function(Fe){return $.getDimensionInfo(Fe).storeDimIndex}),ae.encodeFirstDimNotExtra=xe;var Ie=ie.label;Ie&&Ie.length&&(pe=Ie.slice());var Ne=ie.tooltip;return Ne&&Ne.length?_e=Ne.slice():_e.length||(_e=pe.slice()),ie.defaultedLabel=pe,ie.defaultedTooltip=_e,ae.userOutput=new DimensionUserOuput(Ce,oe),ae}function getOrCreateEncodeArr($,oe){return $.hasOwnProperty(oe)||($[oe]=[]),$[oe]}function getDimensionTypeByAxis($){return $==="category"?"ordinal":$==="time"?"time":"float"}function mayLabelDimType($){return!($==="ordinal"||$==="time")}var SeriesDimensionDefine=function(){function $(oe){this.otherDims={},oe!=null&&extend(this,oe)}return $}();const SeriesDimensionDefine$1=SeriesDimensionDefine;var inner$8=makeInner(),dimTypeShort={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},SeriesDataSchema=function(){function $(oe){this.dimensions=oe.dimensions,this._dimOmitted=oe.dimensionOmitted,this.source=oe.source,this._fullDimCount=oe.fullDimensionCount,this._updateDimOmitted(oe.dimensionOmitted)}return $.prototype.isDimensionOmitted=function(){return this._dimOmitted},$.prototype._updateDimOmitted=function(oe){this._dimOmitted=oe,oe&&(this._dimNameMap||(this._dimNameMap=ensureSourceDimNameMap(this.source)))},$.prototype.getSourceDimensionIndex=function(oe){return retrieve2(this._dimNameMap.get(oe),-1)},$.prototype.getSourceDimension=function(oe){var ae=this.source.dimensionsDefine;if(ae)return ae[oe]},$.prototype.makeStoreSchema=function(){for(var oe=this._fullDimCount,ae=shouldRetrieveDataByName(this.source),ie=!shouldOmitUnusedDimensions(oe),le="",pe=[],_e=0,Ce=0;_e<oe;_e++){var $e=void 0,xe=void 0,Ie=void 0,Ne=this.dimensions[Ce];if(Ne&&Ne.storeDimIndex===_e)$e=ae?Ne.name:null,xe=Ne.type,Ie=Ne.ordinalMeta,Ce++;else{var Fe=this.getSourceDimension(_e);Fe&&($e=ae?Fe.name:null,xe=Fe.type)}pe.push({property:$e,type:xe,ordinalMeta:Ie}),ae&&$e!=null&&(!Ne||!Ne.isCalculationCoord)&&(le+=ie?$e.replace(/\`/g,"`1").replace(/\$/g,"`2"):$e),le+="$",le+=dimTypeShort[xe]||"f",Ie&&(le+=Ie.uid),le+="$"}var ze=this.source,At=[ze.seriesLayoutBy,ze.startIndex,le].join("$$");return{dimensions:pe,hash:At}},$.prototype.makeOutputDimensionNames=function(){for(var oe=[],ae=0,ie=0;ae<this._fullDimCount;ae++){var le=void 0,pe=this.dimensions[ie];if(pe&&pe.storeDimIndex===ae)pe.isCalculationCoord||(le=pe.name),ie++;else{var _e=this.getSourceDimension(ae);_e&&(le=_e.name)}oe.push(le)}return oe},$.prototype.appendCalculationDimension=function(oe){this.dimensions.push(oe),oe.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},$}();function isSeriesDataSchema($){return $ instanceof SeriesDataSchema}function createDimNameMap($){for(var oe=createHashMap(),ae=0;ae<($||[]).length;ae++){var ie=$[ae],le=isObject$3(ie)?ie.name:ie;le!=null&&oe.get(le)==null&&oe.set(le,ae)}return oe}function ensureSourceDimNameMap($){var oe=inner$8($);return oe.dimNameMap||(oe.dimNameMap=createDimNameMap($.dimensionsDefine))}function shouldOmitUnusedDimensions($){return $>30}var isObject$1=isObject$3,map$1=map$2,CtorInt32Array=typeof Int32Array>"u"?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 $(oe,ae){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var ie,le=!1;isSeriesDataSchema(oe)?(ie=oe.dimensions,this._dimOmitted=oe.isDimensionOmitted(),this._schema=oe):(le=!0,ie=oe),ie=ie||["x","y"];for(var pe={},_e=[],Ce={},$e=!1,xe={},Ie=0;Ie<ie.length;Ie++){var Ne=ie[Ie],Fe=isString(Ne)?new SeriesDimensionDefine$1({name:Ne}):Ne instanceof SeriesDimensionDefine$1?Ne:new SeriesDimensionDefine$1(Ne),ze=Fe.name;Fe.type=Fe.type||"float",Fe.coordDim||(Fe.coordDim=ze,Fe.coordDimIndex=0);var At=Fe.otherDims=Fe.otherDims||{};_e.push(ze),pe[ze]=Fe,xe[ze]!=null&&($e=!0),Fe.createInvertedIndices&&(Ce[ze]=[]),At.itemName===0&&(this._nameDimIdx=Ie),At.itemId===0&&(this._idDimIdx=Ie),le&&(Fe.storeDimIndex=Ie)}if(this.dimensions=_e,this._dimInfos=pe,this._initGetDimensionInfo($e),this.hostModel=ae,this._invertedIndicesMap=Ce,this._dimOmitted){var Lt=this._dimIdxToName=createHashMap();each$c(_e,function(hn){Lt.set(pe[hn].storeDimIndex,hn)})}}return $.prototype.getDimension=function(oe){var ae=this._recognizeDimIndex(oe);if(ae==null)return oe;if(ae=oe,!this._dimOmitted)return this.dimensions[ae];var ie=this._dimIdxToName.get(ae);if(ie!=null)return ie;var le=this._schema.getSourceDimension(ae);if(le)return le.name},$.prototype.getDimensionIndex=function(oe){var ae=this._recognizeDimIndex(oe);if(ae!=null)return ae;if(oe==null)return-1;var ie=this._getDimInfo(oe);return ie?ie.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(oe):-1},$.prototype._recognizeDimIndex=function(oe){if(isNumber(oe)||oe!=null&&!isNaN(oe)&&!this._getDimInfo(oe)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(oe)<0))return+oe},$.prototype._getStoreDimIndex=function(oe){var ae=this.getDimensionIndex(oe);return ae},$.prototype.getDimensionInfo=function(oe){return this._getDimInfo(this.getDimension(oe))},$.prototype._initGetDimensionInfo=function(oe){var ae=this._dimInfos;this._getDimInfo=oe?function(ie){return ae.hasOwnProperty(ie)?ae[ie]:void 0}:function(ie){return ae[ie]}},$.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},$.prototype.mapDimension=function(oe,ae){var ie=this._dimSummary;if(ae==null)return ie.encodeFirstDimNotExtra[oe];var le=ie.encode[oe];return le?le[ae]:null},$.prototype.mapDimensionsAll=function(oe){var ae=this._dimSummary,ie=ae.encode[oe];return(ie||[]).slice()},$.prototype.getStore=function(){return this._store},$.prototype.initData=function(oe,ae,ie){var le=this,pe;if(oe instanceof DataStore$1&&(pe=oe),!pe){var _e=this.dimensions,Ce=isSourceInstance(oe)||isArrayLike(oe)?new DefaultDataProvider(oe,_e.length):oe;pe=new DataStore$1;var $e=map$1(_e,function(xe){return{type:le._dimInfos[xe].type,property:xe}});pe.initData(Ce,$e,ie)}this._store=pe,this._nameList=(ae||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,pe.count()),this._dimSummary=summarizeDimensions(this,this._schema),this.userOutput=this._dimSummary.userOutput},$.prototype.appendData=function(oe){var ae=this._store.appendData(oe);this._doInit(ae[0],ae[1])},$.prototype.appendValues=function(oe,ae){var ie=this._store.appendValues(oe,ae.length),le=ie.start,pe=ie.end,_e=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),ae)for(var Ce=le;Ce<pe;Ce++){var $e=Ce-le;this._nameList[Ce]=ae[$e],_e&&makeIdFromName(this,Ce)}},$.prototype._updateOrdinalMeta=function(){for(var oe=this._store,ae=this.dimensions,ie=0;ie<ae.length;ie++){var le=this._dimInfos[ae[ie]];le.ordinalMeta&&oe.collectOrdinalMeta(le.storeDimIndex,le.ordinalMeta)}},$.prototype._shouldMakeIdFromName=function(){var oe=this._store.getProvider();return this._idDimIdx==null&&oe.getSource().sourceFormat!==SOURCE_FORMAT_TYPED_ARRAY&&!oe.fillStorage},$.prototype._doInit=function(oe,ae){if(!(oe>=ae)){var ie=this._store,le=ie.getProvider();this._updateOrdinalMeta();var pe=this._nameList,_e=this._idList,Ce=le.getSource().sourceFormat,$e=Ce===SOURCE_FORMAT_ORIGINAL;if($e&&!le.pure)for(var xe=[],Ie=oe;Ie<ae;Ie++){var Ne=le.getItem(Ie,xe);if(!this.hasItemOption&&isDataItemOption(Ne)&&(this.hasItemOption=!0),Ne){var Fe=Ne.name;pe[Ie]==null&&Fe!=null&&(pe[Ie]=convertOptionIdName(Fe,null));var ze=Ne.id;_e[Ie]==null&&ze!=null&&(_e[Ie]=convertOptionIdName(ze,null))}}if(this._shouldMakeIdFromName())for(var Ie=oe;Ie<ae;Ie++)makeIdFromName(this,Ie);prepareInvertedIndex(this)}},$.prototype.getApproximateExtent=function(oe){return this._approximateExtent[oe]||this._store.getDataExtent(this._getStoreDimIndex(oe))},$.prototype.setApproximateExtent=function(oe,ae){ae=this.getDimension(ae),this._approximateExtent[ae]=oe.slice()},$.prototype.getCalculationInfo=function(oe){return this._calculationInfo[oe]},$.prototype.setCalculationInfo=function(oe,ae){isObject$1(oe)?extend(this._calculationInfo,oe):this._calculationInfo[oe]=ae},$.prototype.getName=function(oe){var ae=this.getRawIndex(oe),ie=this._nameList[ae];return ie==null&&this._nameDimIdx!=null&&(ie=getIdNameFromStore(this,this._nameDimIdx,ae)),ie==null&&(ie=""),ie},$.prototype._getCategory=function(oe,ae){var ie=this._store.get(oe,ae),le=this._store.getOrdinalMeta(oe);return le?le.categories[ie]:ie},$.prototype.getId=function(oe){return getId(this,this.getRawIndex(oe))},$.prototype.count=function(){return this._store.count()},$.prototype.get=function(oe,ae){var ie=this._store,le=this._dimInfos[oe];if(le)return ie.get(le.storeDimIndex,ae)},$.prototype.getByRawIndex=function(oe,ae){var ie=this._store,le=this._dimInfos[oe];if(le)return ie.getByRawIndex(le.storeDimIndex,ae)},$.prototype.getIndices=function(){return this._store.getIndices()},$.prototype.getDataExtent=function(oe){return this._store.getDataExtent(this._getStoreDimIndex(oe))},$.prototype.getSum=function(oe){return this._store.getSum(this._getStoreDimIndex(oe))},$.prototype.getMedian=function(oe){return this._store.getMedian(this._getStoreDimIndex(oe))},$.prototype.getValues=function(oe,ae){var ie=this,le=this._store;return isArray$1(oe)?le.getValues(map$1(oe,function(pe){return ie._getStoreDimIndex(pe)}),ae):le.getValues(oe)},$.prototype.hasValue=function(oe){for(var ae=this._dimSummary.dataDimIndicesOnCoord,ie=0,le=ae.length;ie<le;ie++)if(isNaN(this._store.get(ae[ie],oe)))return!1;return!0},$.prototype.indexOfName=function(oe){for(var ae=0,ie=this._store.count();ae<ie;ae++)if(this.getName(ae)===oe)return ae;return-1},$.prototype.getRawIndex=function(oe){return this._store.getRawIndex(oe)},$.prototype.indexOfRawIndex=function(oe){return this._store.indexOfRawIndex(oe)},$.prototype.rawIndexOf=function(oe,ae){var ie=oe&&this._invertedIndicesMap[oe],le=ie[ae];return le==null||isNaN(le)?INDEX_NOT_FOUND:le},$.prototype.indicesOfNearest=function(oe,ae,ie){return this._store.indicesOfNearest(this._getStoreDimIndex(oe),ae,ie)},$.prototype.each=function(oe,ae,ie){isFunction(oe)&&(ie=ae,ae=oe,oe=[]);var le=ie||this,pe=map$1(normalizeDimensions(oe),this._getStoreDimIndex,this);this._store.each(pe,le?bind$1(ae,le):ae)},$.prototype.filterSelf=function(oe,ae,ie){isFunction(oe)&&(ie=ae,ae=oe,oe=[]);var le=ie||this,pe=map$1(normalizeDimensions(oe),this._getStoreDimIndex,this);return this._store=this._store.filter(pe,le?bind$1(ae,le):ae),this},$.prototype.selectRange=function(oe){var ae=this,ie={},le=keys(oe);return each$c(le,function(pe){var _e=ae._getStoreDimIndex(pe);ie[_e]=oe[pe]}),this._store=this._store.selectRange(ie),this},$.prototype.mapArray=function(oe,ae,ie){isFunction(oe)&&(ie=ae,ae=oe,oe=[]),ie=ie||this;var le=[];return this.each(oe,function(){le.push(ae&&ae.apply(this,arguments))},ie),le},$.prototype.map=function(oe,ae,ie,le){var pe=ie||le||this,_e=map$1(normalizeDimensions(oe),this._getStoreDimIndex,this),Ce=cloneListForMapAndSample(this);return Ce._store=this._store.map(_e,pe?bind$1(ae,pe):ae),Ce},$.prototype.modify=function(oe,ae,ie,le){var pe=ie||le||this,_e=map$1(normalizeDimensions(oe),this._getStoreDimIndex,this);this._store.modify(_e,pe?bind$1(ae,pe):ae)},$.prototype.downSample=function(oe,ae,ie,le){var pe=cloneListForMapAndSample(this);return pe._store=this._store.downSample(this._getStoreDimIndex(oe),ae,ie,le),pe},$.prototype.lttbDownSample=function(oe,ae){var ie=cloneListForMapAndSample(this);return ie._store=this._store.lttbDownSample(this._getStoreDimIndex(oe),ae),ie},$.prototype.getRawDataItem=function(oe){return this._store.getRawDataItem(oe)},$.prototype.getItemModel=function(oe){var ae=this.hostModel,ie=this.getRawDataItem(oe);return new Model$1(ie,ae,ae&&ae.ecModel)},$.prototype.diff=function(oe){var ae=this;return new DataDiffer$1(oe?oe.getStore().getIndices():[],this.getStore().getIndices(),function(ie){return getId(oe,ie)},function(ie){return getId(ae,ie)})},$.prototype.getVisual=function(oe){var ae=this._visual;return ae&&ae[oe]},$.prototype.setVisual=function(oe,ae){this._visual=this._visual||{},isObject$1(oe)?extend(this._visual,oe):this._visual[oe]=ae},$.prototype.getItemVisual=function(oe,ae){var ie=this._itemVisuals[oe],le=ie&&ie[ae];return le??this.getVisual(ae)},$.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},$.prototype.ensureUniqueItemVisual=function(oe,ae){var ie=this._itemVisuals,le=ie[oe];le||(le=ie[oe]={});var pe=le[ae];return pe==null&&(pe=this.getVisual(ae),isArray$1(pe)?pe=pe.slice():isObject$1(pe)&&(pe=extend({},pe)),le[ae]=pe),pe},$.prototype.setItemVisual=function(oe,ae,ie){var le=this._itemVisuals[oe]||{};this._itemVisuals[oe]=le,isObject$1(ae)?extend(le,ae):le[ae]=ie},$.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},$.prototype.setLayout=function(oe,ae){isObject$1(oe)?extend(this._layout,oe):this._layout[oe]=ae},$.prototype.getLayout=function(oe){return this._layout[oe]},$.prototype.getItemLayout=function(oe){return this._itemLayouts[oe]},$.prototype.setItemLayout=function(oe,ae,ie){this._itemLayouts[oe]=ie?extend(this._itemLayouts[oe]||{},ae):ae},$.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},$.prototype.setItemGraphicEl=function(oe,ae){var ie=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(ie,this.dataType,oe,ae),this._graphicEls[oe]=ae},$.prototype.getItemGraphicEl=function(oe){return this._graphicEls[oe]},$.prototype.eachItemGraphicEl=function(oe,ae){each$c(this._graphicEls,function(ie,le){ie&&oe&&oe.call(ae,ie,le)})},$.prototype.cloneShallow=function(oe){return oe||(oe=new $(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(oe,this),oe._store=this._store,oe},$.prototype.wrapMethod=function(oe,ae){var ie=this[oe];isFunction(ie)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(oe),this[oe]=function(){var le=ie.apply(this,arguments);return ae.apply(this,[le].concat(slice(arguments)))})},$.internalField=function(){prepareInvertedIndex=function(oe){var ae=oe._invertedIndicesMap;each$c(ae,function(ie,le){var pe=oe._dimInfos[le],_e=pe.ordinalMeta,Ce=oe._store;if(_e){ie=ae[le]=new CtorInt32Array(_e.categories.length);for(var $e=0;$e<ie.length;$e++)ie[$e]=INDEX_NOT_FOUND;for(var $e=0;$e<Ce.count();$e++)ie[Ce.get(pe.storeDimIndex,$e)]=$e}})},getIdNameFromStore=function(oe,ae,ie){return convertOptionIdName(oe._getCategory(ae,ie),null)},getId=function(oe,ae){var ie=oe._idList[ae];return ie==null&&oe._idDimIdx!=null&&(ie=getIdNameFromStore(oe,oe._idDimIdx,ae)),ie==null&&(ie=ID_PREFIX+ae),ie},normalizeDimensions=function(oe){return isArray$1(oe)||(oe=oe!=null?[oe]:[]),oe},cloneListForMapAndSample=function(oe){var ae=new $(oe._schema?oe._schema:map$1(oe.dimensions,oe._getDimInfo,oe),oe.hostModel);return transferProperties(ae,oe),ae},transferProperties=function(oe,ae){each$c(TRANSFERABLE_PROPERTIES.concat(ae.__wrappedMethods||[]),function(ie){ae.hasOwnProperty(ie)&&(oe[ie]=ae[ie])}),oe.__wrappedMethods=ae.__wrappedMethods,each$c(CLONE_PROPERTIES,function(ie){oe[ie]=clone$3(ae[ie])}),oe._calculationInfo=extend({},ae._calculationInfo)},makeIdFromName=function(oe,ae){var ie=oe._nameList,le=oe._idList,pe=oe._nameDimIdx,_e=oe._idDimIdx,Ce=ie[ae],$e=le[ae];if(Ce==null&&pe!=null&&(ie[ae]=Ce=getIdNameFromStore(oe,pe,ae)),$e==null&&_e!=null&&(le[ae]=$e=getIdNameFromStore(oe,_e,ae)),$e==null&&Ce!=null){var xe=oe._nameRepeatCount,Ie=xe[Ce]=(xe[Ce]||0)+1;$e=Ce,Ie>1&&($e+="__ec__"+Ie),le[ae]=$e}}}(),$}();const SeriesData$1=SeriesData;function createDimensions($,oe){return prepareSeriesDataSchema($,oe).dimensions}function prepareSeriesDataSchema($,oe){isSourceInstance($)||($=createSourceFromSeriesDataOption($)),oe=oe||{};var ae=oe.coordDimensions||[],ie=oe.dimensionsDefine||$.dimensionsDefine||[],le=createHashMap(),pe=[],_e=getDimCount($,ae,ie,oe.dimensionsCount),Ce=oe.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(_e),$e=ie===$.dimensionsDefine,xe=$e?ensureSourceDimNameMap($):createDimNameMap(ie),Ie=oe.encodeDefine;!Ie&&oe.encodeDefaulter&&(Ie=oe.encodeDefaulter($,_e));for(var Ne=createHashMap(Ie),Fe=new CtorInt32Array$1(_e),ze=0;ze<Fe.length;ze++)Fe[ze]=-1;function At(xn){var kn=Fe[xn];if(kn<0){var An=ie[xn],On=isObject$3(An)?An:{name:An},Nn=new SeriesDimensionDefine$1,Rn=On.name;Rn!=null&&xe.get(Rn)!=null&&(Nn.name=Nn.displayName=Rn),On.type!=null&&(Nn.type=On.type),On.displayName!=null&&(Nn.displayName=On.displayName);var zn=pe.length;return Fe[xn]=zn,Nn.storeDimIndex=xn,pe.push(Nn),Nn}return pe[kn]}if(!Ce)for(var ze=0;ze<_e;ze++)At(ze);Ne.each(function(xn,kn){var An=normalizeToArray(xn).slice();if(An.length===1&&!isString(An[0])&&An[0]<0){Ne.set(kn,!1);return}var On=Ne.set(kn,[]);each$c(An,function(Nn,Rn){var zn=isString(Nn)?xe.get(Nn):Nn;zn!=null&&zn<_e&&(On[Rn]=zn,hn(At(zn),kn,Rn))})});var Lt=0;each$c(ae,function(xn){var kn,An,On,Nn;if(isString(xn))kn=xn,Nn={};else{Nn=xn,kn=Nn.name;var Rn=Nn.ordinalMeta;Nn.ordinalMeta=null,Nn=extend({},Nn),Nn.ordinalMeta=Rn,An=Nn.dimsDef,On=Nn.otherDims,Nn.name=Nn.coordDim=Nn.coordDimIndex=Nn.dimsDef=Nn.otherDims=null}var zn=Ne.get(kn);if(zn!==!1){if(zn=normalizeToArray(zn),!zn.length)for(var Bn=0;Bn<(An&&An.length||1);Bn++){for(;Lt<_e&&At(Lt).coordDim!=null;)Lt++;Lt<_e&&zn.push(Lt++)}each$c(zn,function(Mn,Fn){var Vn=At(Mn);if($e&&Nn.type!=null&&(Vn.type=Nn.type),hn(defaults(Vn,Nn),kn,Fn),Vn.name==null&&An){var jn=An[Fn];!isObject$3(jn)&&(jn={name:jn}),Vn.name=Vn.displayName=jn.name,Vn.defaultTooltip=jn.defaultTooltip}On&&defaults(Vn.otherDims,On)})}});function hn(xn,kn,An){VISUAL_DIMENSIONS.get(kn)!=null?xn.otherDims[kn]=An:(xn.coordDim=kn,xn.coordDimIndex=An,le.set(kn,!0))}var vn=oe.generateCoord,_n=oe.generateCoordCount,bn=_n!=null;_n=vn?_n||1:0;var Cn=vn||"value";function En(xn){xn.name==null&&(xn.name=xn.coordDim)}if(Ce)each$c(pe,function(xn){En(xn)}),pe.sort(function(xn,kn){return xn.storeDimIndex-kn.storeDimIndex});else for(var $n=0;$n<_e;$n++){var wn=At($n),Tn=wn.coordDim;Tn==null&&(wn.coordDim=genCoordDimName(Cn,le,bn),wn.coordDimIndex=0,(!vn||_n<=0)&&(wn.isExtraCoord=!0),_n--),En(wn),wn.type==null&&(guessOrdinal($,$n)===BE_ORDINAL.Must||wn.isExtraCoord&&(wn.otherDims.itemName!=null||wn.otherDims.seriesName!=null))&&(wn.type="ordinal")}return removeDuplication(pe),new SeriesDataSchema({source:$,dimensions:pe,fullDimensionCount:_e,dimensionOmitted:Ce})}function removeDuplication($){for(var oe=createHashMap(),ae=0;ae<$.length;ae++){var ie=$[ae],le=ie.name,pe=oe.get(le)||0;pe>0&&(ie.name=le+(pe-1)),pe++,oe.set(le,pe)}}function getDimCount($,oe,ae,ie){var le=Math.max($.dimensionsDetectedCount||1,oe.length,ae.length,ie||0);return each$c(oe,function(pe){var _e;isObject$3(pe)&&(_e=pe.dimsDef)&&(le=Math.max(le,_e.length))}),le}function genCoordDimName($,oe,ae){if(ae||oe.hasKey($)){for(var ie=0;oe.hasKey($+ie);)ie++;$+=ie}return oe.set($,!0),$}var CoordSysInfo=function(){function $(oe){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=oe}return $}();function getCoordSysInfoBySeries($){var oe=$.get("coordinateSystem"),ae=new CoordSysInfo(oe),ie=fetchers[oe];if(ie)return ie($,ae,ae.axisMap,ae.categoryAxisMap),ae}var fetchers={cartesian2d:function($,oe,ae,ie){var le=$.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],pe=$.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];oe.coordSysDims=["x","y"],ae.set("x",le),ae.set("y",pe),isCategory(le)&&(ie.set("x",le),oe.firstCategoryDimIndex=0),isCategory(pe)&&(ie.set("y",pe),oe.firstCategoryDimIndex==null&&(oe.firstCategoryDimIndex=1))},singleAxis:function($,oe,ae,ie){var le=$.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];oe.coordSysDims=["single"],ae.set("single",le),isCategory(le)&&(ie.set("single",le),oe.firstCategoryDimIndex=0)},polar:function($,oe,ae,ie){var le=$.getReferringComponents("polar",SINGLE_REFERRING).models[0],pe=le.findAxisModel("radiusAxis"),_e=le.findAxisModel("angleAxis");oe.coordSysDims=["radius","angle"],ae.set("radius",pe),ae.set("angle",_e),isCategory(pe)&&(ie.set("radius",pe),oe.firstCategoryDimIndex=0),isCategory(_e)&&(ie.set("angle",_e),oe.firstCategoryDimIndex==null&&(oe.firstCategoryDimIndex=1))},geo:function($,oe,ae,ie){oe.coordSysDims=["lng","lat"]},parallel:function($,oe,ae,ie){var le=$.ecModel,pe=le.getComponent("parallel",$.get("parallelIndex")),_e=oe.coordSysDims=pe.dimensions.slice();each$c(pe.parallelAxisIndex,function(Ce,$e){var xe=le.getComponent("parallelAxis",Ce),Ie=_e[$e];ae.set(Ie,xe),isCategory(xe)&&(ie.set(Ie,xe),oe.firstCategoryDimIndex==null&&(oe.firstCategoryDimIndex=$e))})}};function isCategory($){return $.get("type")==="category"}function enableDataStack($,oe,ae){ae=ae||{};var ie=ae.byIndex,le=ae.stackedCoordDimension,pe,_e,Ce;isLegacyDimensionsInput(oe)?pe=oe:(_e=oe.schema,pe=_e.dimensions,Ce=oe.store);var $e=!!($&&$.get("stack")),xe,Ie,Ne,Fe;if(each$c(pe,function(_n,bn){isString(_n)&&(pe[bn]=_n={name:_n}),$e&&!_n.isExtraCoord&&(!ie&&!xe&&_n.ordinalMeta&&(xe=_n),!Ie&&_n.type!=="ordinal"&&_n.type!=="time"&&(!le||le===_n.coordDim)&&(Ie=_n))}),Ie&&!ie&&!xe&&(ie=!0),Ie){Ne="__\0ecstackresult_"+$.id,Fe="__\0ecstackedover_"+$.id,xe&&(xe.createInvertedIndices=!0);var ze=Ie.coordDim,At=Ie.type,Lt=0;each$c(pe,function(_n){_n.coordDim===ze&&Lt++});var hn={name:Ne,coordDim:ze,coordDimIndex:Lt,type:At,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:pe.length},vn={name:Fe,coordDim:Fe,coordDimIndex:Lt+1,type:At,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:pe.length+1};_e?(Ce&&(hn.storeDimIndex=Ce.ensureCalculationDimension(Fe,At),vn.storeDimIndex=Ce.ensureCalculationDimension(Ne,At)),_e.appendCalculationDimension(hn),_e.appendCalculationDimension(vn)):(pe.push(hn),pe.push(vn))}return{stackedDimension:Ie&&Ie.name,stackedByDimension:xe&&xe.name,isStackedByIndex:ie,stackedOverDimension:Fe,stackResultDimension:Ne}}function isLegacyDimensionsInput($){return!isSeriesDataSchema($.schema)}function isDimensionStacked($,oe){return!!oe&&oe===$.getCalculationInfo("stackedDimension")}function getStackedDimension($,oe){return isDimensionStacked($,oe)?$.getCalculationInfo("stackResultDimension"):oe}function getCoordSysDimDefs($,oe){var ae=$.get("coordinateSystem"),ie=CoordinateSystem.get(ae),le;return oe&&oe.coordSysDims&&(le=map$2(oe.coordSysDims,function(pe){var _e={name:pe},Ce=oe.axisMap.get(pe);if(Ce){var $e=Ce.get("type");_e.type=getDimensionTypeByAxis($e)}return _e})),le||(le=ie&&(ie.getDimensionsInfo?ie.getDimensionsInfo():ie.dimensions.slice())||["x","y"]),le}function injectOrdinalMeta($,oe,ae){var ie,le;return ae&&each$c($,function(pe,_e){var Ce=pe.coordDim,$e=ae.categoryAxisMap.get(Ce);$e&&(ie==null&&(ie=_e),pe.ordinalMeta=$e.getOrdinalMeta(),oe&&(pe.createInvertedIndices=!0)),pe.otherDims.itemName!=null&&(le=!0)}),!le&&ie!=null&&($[ie].otherDims.itemName=0),ie}function createSeriesData($,oe,ae){ae=ae||{};var ie=oe.getSourceManager(),le,pe=!1;$?(pe=!0,le=createSourceFromSeriesDataOption($)):(le=ie.getSource(),pe=le.sourceFormat===SOURCE_FORMAT_ORIGINAL);var _e=getCoordSysInfoBySeries(oe),Ce=getCoordSysDimDefs(oe,_e),$e=ae.useEncodeDefaulter,xe=isFunction($e)?$e:$e?curry$1(makeSeriesEncodeForAxisCoordSys,Ce,oe):null,Ie={coordDimensions:Ce,generateCoord:ae.generateCoord,encodeDefine:oe.getEncode(),encodeDefaulter:xe,canOmitUnusedDimensions:!pe},Ne=prepareSeriesDataSchema(le,Ie),Fe=injectOrdinalMeta(Ne.dimensions,ae.createInvertedIndices,_e),ze=pe?null:ie.getSharedDataStore(Ne),At=enableDataStack(oe,{schema:Ne,store:ze}),Lt=new SeriesData$1(Ne,oe);Lt.setCalculationInfo(At);var hn=Fe!=null&&isNeedCompleteOrdinalData(le)?function(vn,_n,bn,Cn){return Cn===Fe?bn:this.defaultDimValueGetter(vn,_n,bn,Cn)}:null;return Lt.hasItemOption=!1,Lt.initData(pe?le:ze,null,hn),Lt}function isNeedCompleteOrdinalData($){if($.sourceFormat===SOURCE_FORMAT_ORIGINAL){var oe=firstDataNotNull($.data||[]);return!isArray$1(getDataItemValue(oe))}}function firstDataNotNull($){for(var oe=0;oe<$.length&&$[oe]==null;)oe++;return $[oe]}var Scale=function(){function $(oe){this._setting=oe||{},this._extent=[1/0,-1/0]}return $.prototype.getSetting=function(oe){return this._setting[oe]},$.prototype.unionExtent=function(oe){var ae=this._extent;oe[0]<ae[0]&&(ae[0]=oe[0]),oe[1]>ae[1]&&(ae[1]=oe[1])},$.prototype.unionExtentFromData=function(oe,ae){this.unionExtent(oe.getApproximateExtent(ae))},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.setExtent=function(oe,ae){var ie=this._extent;isNaN(oe)||(ie[0]=oe),isNaN(ae)||(ie[1]=ae)},$.prototype.isInExtentRange=function(oe){return this._extent[0]<=oe&&this._extent[1]>=oe},$.prototype.isBlank=function(){return this._isBlank},$.prototype.setBlank=function(oe){this._isBlank=oe},$}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function $(oe){this.categories=oe.categories||[],this._needCollect=oe.needCollect,this._deduplication=oe.deduplication,this.uid=++uidBase}return $.createByAxisModel=function(oe){var ae=oe.option,ie=ae.data,le=ie&&map$2(ie,getName);return new $({categories:le,needCollect:!le,deduplication:ae.dedplication!==!1})},$.prototype.getOrdinal=function(oe){return this._getOrCreateMap().get(oe)},$.prototype.parseAndCollect=function(oe){var ae,ie=this._needCollect;if(!isString(oe)&&!ie)return oe;if(ie&&!this._deduplication)return ae=this.categories.length,this.categories[ae]=oe,ae;var le=this._getOrCreateMap();return ae=le.get(oe),ae==null&&(ie?(ae=this.categories.length,this.categories[ae]=oe,le.set(oe,ae)):ae=NaN),ae},$.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},$}();function getName($){return isObject$3($)&&$.value!=null?$.value:$+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale($){return $.type==="interval"||$.type==="log"}function intervalScaleNiceTicks($,oe,ae,ie){var le={},pe=$[1]-$[0],_e=le.interval=nice(pe/oe,!0);ae!=null&&_e<ae&&(_e=le.interval=ae),ie!=null&&_e>ie&&(_e=le.interval=ie);var Ce=le.intervalPrecision=getIntervalPrecision(_e),$e=le.niceTickExtent=[round$1(Math.ceil($[0]/_e)*_e,Ce),round$1(Math.floor($[1]/_e)*_e,Ce)];return fixExtent($e,$),le}function increaseInterval($){var oe=Math.pow(10,quantityExponent($)),ae=$/oe;return ae?ae===2?ae=3:ae===3?ae=5:ae*=2:ae=1,round$1(ae*oe)}function getIntervalPrecision($){return getPrecision($)+2}function clamp($,oe,ae){$[oe]=Math.max(Math.min($[oe],ae[1]),ae[0])}function fixExtent($,oe){!isFinite($[0])&&($[0]=oe[0]),!isFinite($[1])&&($[1]=oe[1]),clamp($,0,oe),clamp($,1,oe),$[0]>$[1]&&($[0]=$[1])}function contain$1($,oe){return $>=oe[0]&&$<=oe[1]}function normalize($,oe){return oe[1]===oe[0]?.5:($-oe[0])/(oe[1]-oe[0])}function scale($,oe){return $*(oe[1]-oe[0])+oe[0]}var OrdinalScale=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;ie.type="ordinal";var le=ie.getSetting("ordinalMeta");return le||(le=new OrdinalMeta$1({})),isArray$1(le)&&(le=new OrdinalMeta$1({categories:map$2(le,function(pe){return isObject$3(pe)?pe.value:pe})})),ie._ordinalMeta=le,ie._extent=ie.getSetting("extent")||[0,le.categories.length-1],ie}return oe.prototype.parse=function(ae){return ae==null?NaN:isString(ae)?this._ordinalMeta.getOrdinal(ae):Math.round(ae)},oe.prototype.contain=function(ae){return ae=this.parse(ae),contain$1(ae,this._extent)&&this._ordinalMeta.categories[ae]!=null},oe.prototype.normalize=function(ae){return ae=this._getTickNumber(this.parse(ae)),normalize(ae,this._extent)},oe.prototype.scale=function(ae){return ae=Math.round(scale(ae,this._extent)),this.getRawOrdinalNumber(ae)},oe.prototype.getTicks=function(){for(var ae=[],ie=this._extent,le=ie[0];le<=ie[1];)ae.push({value:le}),le++;return ae},oe.prototype.getMinorTicks=function(ae){},oe.prototype.setSortInfo=function(ae){if(ae==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var ie=ae.ordinalNumbers,le=this._ordinalNumbersByTick=[],pe=this._ticksByOrdinalNumber=[],_e=0,Ce=this._ordinalMeta.categories.length,$e=Math.min(Ce,ie.length);_e<$e;++_e){var xe=ie[_e];le[_e]=xe,pe[xe]=_e}for(var Ie=0;_e<Ce;++_e){for(;pe[Ie]!=null;)Ie++;le.push(Ie),pe[Ie]=_e}},oe.prototype._getTickNumber=function(ae){var ie=this._ticksByOrdinalNumber;return ie&&ae>=0&&ae<ie.length?ie[ae]:ae},oe.prototype.getRawOrdinalNumber=function(ae){var ie=this._ordinalNumbersByTick;return ie&&ae>=0&&ae<ie.length?ie[ae]:ae},oe.prototype.getLabel=function(ae){if(!this.isBlank()){var ie=this.getRawOrdinalNumber(ae.value),le=this._ordinalMeta.categories[ie];return le==null?"":le+""}},oe.prototype.count=function(){return this._extent[1]-this._extent[0]+1},oe.prototype.unionExtentFromData=function(ae,ie){this.unionExtent(ae.getApproximateExtent(ie))},oe.prototype.isInExtentRange=function(ae){return ae=this._getTickNumber(ae),this._extent[0]<=ae&&this._extent[1]>=ae},oe.prototype.getOrdinalMeta=function(){return this._ordinalMeta},oe.prototype.calcNiceTicks=function(){},oe.prototype.calcNiceExtent=function(){},oe.type="ordinal",oe}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="interval",ae._interval=0,ae._intervalPrecision=2,ae}return oe.prototype.parse=function(ae){return ae},oe.prototype.contain=function(ae){return contain$1(ae,this._extent)},oe.prototype.normalize=function(ae){return normalize(ae,this._extent)},oe.prototype.scale=function(ae){return scale(ae,this._extent)},oe.prototype.setExtent=function(ae,ie){var le=this._extent;isNaN(ae)||(le[0]=parseFloat(ae)),isNaN(ie)||(le[1]=parseFloat(ie))},oe.prototype.unionExtent=function(ae){var ie=this._extent;ae[0]<ie[0]&&(ie[0]=ae[0]),ae[1]>ie[1]&&(ie[1]=ae[1]),this.setExtent(ie[0],ie[1])},oe.prototype.getInterval=function(){return this._interval},oe.prototype.setInterval=function(ae){this._interval=ae,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision(ae)},oe.prototype.getTicks=function(ae){var ie=this._interval,le=this._extent,pe=this._niceExtent,_e=this._intervalPrecision,Ce=[];if(!ie)return Ce;var $e=1e4;le[0]<pe[0]&&(ae?Ce.push({value:roundNumber(pe[0]-ie,_e)}):Ce.push({value:le[0]}));for(var xe=pe[0];xe<=pe[1]&&(Ce.push({value:xe}),xe=roundNumber(xe+ie,_e),xe!==Ce[Ce.length-1].value);)if(Ce.length>$e)return[];var Ie=Ce.length?Ce[Ce.length-1].value:pe[1];return le[1]>Ie&&(ae?Ce.push({value:roundNumber(Ie+ie,_e)}):Ce.push({value:le[1]})),Ce},oe.prototype.getMinorTicks=function(ae){for(var ie=this.getTicks(!0),le=[],pe=this.getExtent(),_e=1;_e<ie.length;_e++){for(var Ce=ie[_e],$e=ie[_e-1],xe=0,Ie=[],Ne=Ce.value-$e.value,Fe=Ne/ae;xe<ae-1;){var ze=roundNumber($e.value+(xe+1)*Fe);ze>pe[0]&&ze<pe[1]&&Ie.push(ze),xe++}le.push(Ie)}return le},oe.prototype.getLabel=function(ae,ie){if(ae==null)return"";var le=ie&&ie.precision;le==null?le=getPrecision(ae.value)||0:le==="auto"&&(le=this._intervalPrecision);var pe=roundNumber(ae.value,le,!0);return addCommas(pe)},oe.prototype.calcNiceTicks=function(ae,ie,le){ae=ae||5;var pe=this._extent,_e=pe[1]-pe[0];if(isFinite(_e)){_e<0&&(_e=-_e,pe.reverse());var Ce=intervalScaleNiceTicks(pe,ae,ie,le);this._intervalPrecision=Ce.intervalPrecision,this._interval=Ce.interval,this._niceExtent=Ce.niceTickExtent}},oe.prototype.calcNiceExtent=function(ae){var ie=this._extent;if(ie[0]===ie[1])if(ie[0]!==0){var le=Math.abs(ie[0]);ae.fixMax||(ie[1]+=le/2),ie[0]-=le/2}else ie[1]=1;var pe=ie[1]-ie[0];isFinite(pe)||(ie[0]=0,ie[1]=1),this.calcNiceTicks(ae.splitNumber,ae.minInterval,ae.maxInterval);var _e=this._interval;ae.fixMin||(ie[0]=roundNumber(Math.floor(ie[0]/_e)*_e)),ae.fixMax||(ie[1]=roundNumber(Math.ceil(ie[1]/_e)*_e))},oe.prototype.setNiceExtent=function(ae,ie){this._niceExtent=[ae,ie]},oe.type="interval",oe}(Scale$1);Scale$1.registerClass(IntervalScale);const IntervalScale$1=IntervalScale;var supportFloat32Array=typeof Float32Array<"u",Float32ArrayCtor=supportFloat32Array?Float32Array:Array;function createFloat32Array($){return isArray$1($)?supportFloat32Array?new Float32Array($):$:new Float32ArrayCtor($)}var STACK_PREFIX="__ec_stack_";function getSeriesStackId($){return $.get("stack")||STACK_PREFIX+$.seriesIndex}function getAxisKey($){return $.dim+$.index}function prepareLayoutBarSeries($,oe){var ae=[];return oe.eachSeriesByType($,function(ie){isOnCartesian(ie)&&ae.push(ie)}),ae}function getValueAxesMinGaps($){var oe={};each$c($,function($e){var xe=$e.coordinateSystem,Ie=xe.getBaseAxis();if(!(Ie.type!=="time"&&Ie.type!=="value"))for(var Ne=$e.getData(),Fe=Ie.dim+"_"+Ie.index,ze=Ne.getDimensionIndex(Ne.mapDimension(Ie.dim)),At=Ne.getStore(),Lt=0,hn=At.count();Lt<hn;++Lt){var vn=At.get(ze,Lt);oe[Fe]?oe[Fe].push(vn):oe[Fe]=[vn]}});var ae={};for(var ie in oe)if(oe.hasOwnProperty(ie)){var le=oe[ie];if(le){le.sort(function($e,xe){return $e-xe});for(var pe=null,_e=1;_e<le.length;++_e){var Ce=le[_e]-le[_e-1];Ce>0&&(pe=pe===null?Ce:Math.min(pe,Ce))}ae[ie]=pe}}return ae}function makeColumnLayout($){var oe=getValueAxesMinGaps($),ae=[];return each$c($,function(ie){var le=ie.coordinateSystem,pe=le.getBaseAxis(),_e=pe.getExtent(),Ce;if(pe.type==="category")Ce=pe.getBandWidth();else if(pe.type==="value"||pe.type==="time"){var $e=pe.dim+"_"+pe.index,xe=oe[$e],Ie=Math.abs(_e[1]-_e[0]),Ne=pe.scale.getExtent(),Fe=Math.abs(Ne[1]-Ne[0]);Ce=xe?Ie/Fe*xe:Ie}else{var ze=ie.getData();Ce=Math.abs(_e[1]-_e[0])/ze.count()}var At=parsePercent(ie.get("barWidth"),Ce),Lt=parsePercent(ie.get("barMaxWidth"),Ce),hn=parsePercent(ie.get("barMinWidth")||(isInLargeMode(ie)?.5:1),Ce),vn=ie.get("barGap"),_n=ie.get("barCategoryGap");ae.push({bandWidth:Ce,barWidth:At,barMaxWidth:Lt,barMinWidth:hn,barGap:vn,barCategoryGap:_n,axisKey:getAxisKey(pe),stackId:getSeriesStackId(ie)})}),doCalBarWidthAndOffset(ae)}function doCalBarWidthAndOffset($){var oe={};each$c($,function(ie,le){var pe=ie.axisKey,_e=ie.bandWidth,Ce=oe[pe]||{bandWidth:_e,remainedWidth:_e,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},$e=Ce.stacks;oe[pe]=Ce;var xe=ie.stackId;$e[xe]||Ce.autoWidthCount++,$e[xe]=$e[xe]||{width:0,maxWidth:0};var Ie=ie.barWidth;Ie&&!$e[xe].width&&($e[xe].width=Ie,Ie=Math.min(Ce.remainedWidth,Ie),Ce.remainedWidth-=Ie);var Ne=ie.barMaxWidth;Ne&&($e[xe].maxWidth=Ne);var Fe=ie.barMinWidth;Fe&&($e[xe].minWidth=Fe);var ze=ie.barGap;ze!=null&&(Ce.gap=ze);var At=ie.barCategoryGap;At!=null&&(Ce.categoryGap=At)});var ae={};return each$c(oe,function(ie,le){ae[le]={};var pe=ie.stacks,_e=ie.bandWidth,Ce=ie.categoryGap;if(Ce==null){var $e=keys(pe).length;Ce=Math.max(35-$e*4,15)+"%"}var xe=parsePercent(Ce,_e),Ie=parsePercent(ie.gap,1),Ne=ie.remainedWidth,Fe=ie.autoWidthCount,ze=(Ne-xe)/(Fe+(Fe-1)*Ie);ze=Math.max(ze,0),each$c(pe,function(vn){var _n=vn.maxWidth,bn=vn.minWidth;if(vn.width){var Cn=vn.width;_n&&(Cn=Math.min(Cn,_n)),bn&&(Cn=Math.max(Cn,bn)),vn.width=Cn,Ne-=Cn+Ie*Cn,Fe--}else{var Cn=ze;_n&&_n<Cn&&(Cn=Math.min(_n,Ne)),bn&&bn>Cn&&(Cn=bn),Cn!==ze&&(vn.width=Cn,Ne-=Cn+Ie*Cn,Fe--)}}),ze=(Ne-xe)/(Fe+(Fe-1)*Ie),ze=Math.max(ze,0);var At=0,Lt;each$c(pe,function(vn,_n){vn.width||(vn.width=ze),Lt=vn,At+=vn.width*(1+Ie)}),Lt&&(At-=Lt.width*Ie);var hn=-At/2;each$c(pe,function(vn,_n){ae[le][_n]=ae[le][_n]||{bandWidth:_e,offset:hn,width:vn.width},hn+=vn.width*(1+Ie)})}),ae}function retrieveColumnLayout($,oe,ae){if($&&oe){var ie=$[getAxisKey(oe)];return ie!=null&&ae!=null?ie[getSeriesStackId(ae)]:ie}}function layout$2($,oe){var ae=prepareLayoutBarSeries($,oe),ie=makeColumnLayout(ae);each$c(ae,function(le){var pe=le.getData(),_e=le.coordinateSystem,Ce=_e.getBaseAxis(),$e=getSeriesStackId(le),xe=ie[getAxisKey(Ce)][$e],Ie=xe.offset,Ne=xe.width;pe.setLayout({bandWidth:xe.bandWidth,offset:Ie,size:Ne})})}function createProgressiveLayout($){return{seriesType:$,plan:createRenderPlanner(),reset:function(oe){if(isOnCartesian(oe)){var ae=oe.getData(),ie=oe.coordinateSystem,le=ie.getBaseAxis(),pe=ie.getOtherAxis(le),_e=ae.getDimensionIndex(ae.mapDimension(pe.dim)),Ce=ae.getDimensionIndex(ae.mapDimension(le.dim)),$e=oe.get("showBackground",!0),xe=ae.mapDimension(pe.dim),Ie=ae.getCalculationInfo("stackResultDimension"),Ne=isDimensionStacked(ae,xe)&&!!ae.getCalculationInfo("stackedOnSeries"),Fe=pe.isHorizontal(),ze=getValueAxisStart(le,pe),At=isInLargeMode(oe),Lt=oe.get("barMinHeight")||0,hn=Ie&&ae.getDimensionIndex(Ie),vn=ae.getLayout("size"),_n=ae.getLayout("offset");return{progress:function(bn,Cn){for(var En=bn.count,$n=At&&createFloat32Array(En*3),wn=At&&$e&&createFloat32Array(En*3),Tn=At&&createFloat32Array(En),xn=ie.master.getRect(),kn=Fe?xn.width:xn.height,An,On=Cn.getStore(),Nn=0;(An=bn.next())!=null;){var Rn=On.get(Ne?hn:_e,An),zn=On.get(Ce,An),Bn=ze,Mn=void 0;Ne&&(Mn=+Rn-On.get(_e,An));var Fn=void 0,Vn=void 0,jn=void 0,Zn=void 0;if(Fe){var Gn=ie.dataToPoint([Rn,zn]);if(Ne){var Xn=ie.dataToPoint([Mn,zn]);Bn=Xn[0]}Fn=Bn,Vn=Gn[1]+_n,jn=Gn[0]-Bn,Zn=vn,Math.abs(jn)<Lt&&(jn=(jn<0?-1:1)*Lt)}else{var Gn=ie.dataToPoint([zn,Rn]);if(Ne){var Xn=ie.dataToPoint([zn,Mn]);Bn=Xn[1]}Fn=Gn[0]+_n,Vn=Bn,jn=vn,Zn=Gn[1]-Bn,Math.abs(Zn)<Lt&&(Zn=(Zn<=0?-1:1)*Lt)}At?($n[Nn]=Fn,$n[Nn+1]=Vn,$n[Nn+2]=Fe?jn:Zn,wn&&(wn[Nn]=Fe?xn.x:Fn,wn[Nn+1]=Fe?Vn:xn.y,wn[Nn+2]=kn),Tn[An]=An):Cn.setItemLayout(An,{x:Fn,y:Vn,width:jn,height:Zn}),Nn+=3}At&&Cn.setLayout({largePoints:$n,largeDataIndices:Tn,largeBackgroundPoints:wn,valueAxisHorizontal:Fe})}}}}}}function isOnCartesian($){return $.coordinateSystem&&$.coordinateSystem.type==="cartesian2d"}function isInLargeMode($){return $.pipelineContext&&$.pipelineContext.large}function getValueAxisStart($,oe){return oe.toGlobalCoord(oe.dataToCoord(oe.type==="log"?1:0))}var bisect=function($,oe,ae,ie){for(;ae<ie;){var le=ae+ie>>>1;$[le][1]<oe?ae=le+1:ie=le}return ae},TimeScale=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="time",ie}return oe.prototype.getLabel=function(ae){var ie=this.getSetting("useUTC");return format$1(ae.value,fullLeveledFormatter[getDefaultFormatPrecisionOfInterval(getPrimaryTimeUnit(this._minLevelUnit))]||fullLeveledFormatter.second,ie,this.getSetting("locale"))},oe.prototype.getFormattedLabel=function(ae,ie,le){var pe=this.getSetting("useUTC"),_e=this.getSetting("locale");return leveledFormat(ae,ie,le,_e,pe)},oe.prototype.getTicks=function(){var ae=this._interval,ie=this._extent,le=[];if(!ae)return le;le.push({value:ie[0],level:0});var pe=this.getSetting("useUTC"),_e=getIntervalTicks(this._minLevelUnit,this._approxInterval,pe,ie);return le=le.concat(_e),le.push({value:ie[1],level:0}),le},oe.prototype.calcNiceExtent=function(ae){var ie=this._extent;if(ie[0]===ie[1]&&(ie[0]-=ONE_DAY,ie[1]+=ONE_DAY),ie[1]===-1/0&&ie[0]===1/0){var le=new Date;ie[1]=+new Date(le.getFullYear(),le.getMonth(),le.getDate()),ie[0]=ie[1]-ONE_DAY}this.calcNiceTicks(ae.splitNumber,ae.minInterval,ae.maxInterval)},oe.prototype.calcNiceTicks=function(ae,ie,le){ae=ae||10;var pe=this._extent,_e=pe[1]-pe[0];this._approxInterval=_e/ae,ie!=null&&this._approxInterval<ie&&(this._approxInterval=ie),le!=null&&this._approxInterval>le&&(this._approxInterval=le);var Ce=scaleIntervals.length,$e=Math.min(bisect(scaleIntervals,this._approxInterval,0,Ce),Ce-1);this._interval=scaleIntervals[$e][1],this._minLevelUnit=scaleIntervals[Math.max($e-1,0)][0]},oe.prototype.parse=function(ae){return isNumber(ae)?ae:+parseDate(ae)},oe.prototype.contain=function(ae){return contain$1(this.parse(ae),this._extent)},oe.prototype.normalize=function(ae){return normalize(this.parse(ae),this._extent)},oe.prototype.scale=function(ae){return scale(ae,this._extent)},oe.type="time",oe}(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($,oe,ae,ie){var le=parseDate(oe),pe=parseDate(ae),_e=function(At){return getUnitValue(le,At,ie)===getUnitValue(pe,At,ie)},Ce=function(){return _e("year")},$e=function(){return Ce()&&_e("month")},xe=function(){return $e()&&_e("day")},Ie=function(){return xe()&&_e("hour")},Ne=function(){return Ie()&&_e("minute")},Fe=function(){return Ne()&&_e("second")},ze=function(){return Fe()&&_e("millisecond")};switch($){case"year":return Ce();case"month":return $e();case"day":return xe();case"hour":return Ie();case"minute":return Ne();case"second":return Fe();case"millisecond":return ze()}}function getDateInterval($,oe){return $/=ONE_DAY,$>16?16:$>7.5?7:$>3.5?4:$>1.5?2:1}function getMonthInterval($){var oe=30*ONE_DAY;return $/=oe,$>6?6:$>3?3:$>2?2:1}function getHourInterval($){return $/=ONE_HOUR,$>12?12:$>6?6:$>3.5?4:$>2?2:1}function getMinutesAndSecondsInterval($,oe){return $/=oe?ONE_MINUTE:ONE_SECOND,$>30?30:$>20?20:$>15?15:$>10?10:$>5?5:$>2?2:1}function getMillisecondsInterval($){return nice($,!0)}function getFirstTimestampOfUnit($,oe,ae){var ie=new Date($);switch(getPrimaryTimeUnit(oe)){case"year":case"month":ie[monthSetterName(ae)](0);case"day":ie[dateSetterName(ae)](1);case"hour":ie[hoursSetterName(ae)](0);case"minute":ie[minutesSetterName(ae)](0);case"second":ie[secondsSetterName(ae)](0),ie[millisecondsSetterName(ae)](0)}return ie.getTime()}function getIntervalTicks($,oe,ae,ie){var le=1e4,pe=timeUnits,_e=0;function Ce(kn,An,On,Nn,Rn,zn,Bn){for(var Mn=new Date(An),Fn=An,Vn=Mn[Nn]();Fn<On&&Fn<=ie[1];)Bn.push({value:Fn}),Vn+=kn,Mn[Rn](Vn),Fn=Mn.getTime();Bn.push({value:Fn,notAdd:!0})}function $e(kn,An,On){var Nn=[],Rn=!An.length;if(!isUnitValueSame(getPrimaryTimeUnit(kn),ie[0],ie[1],ae)){Rn&&(An=[{value:getFirstTimestampOfUnit(new Date(ie[0]),kn,ae)},{value:ie[1]}]);for(var zn=0;zn<An.length-1;zn++){var Bn=An[zn].value,Mn=An[zn+1].value;if(Bn!==Mn){var Fn=void 0,Vn=void 0,jn=void 0,Zn=!1;switch(kn){case"year":Fn=Math.max(1,Math.round(oe/ONE_DAY/365)),Vn=fullYearGetterName(ae),jn=fullYearSetterName(ae);break;case"half-year":case"quarter":case"month":Fn=getMonthInterval(oe),Vn=monthGetterName(ae),jn=monthSetterName(ae);break;case"week":case"half-week":case"day":Fn=getDateInterval(oe),Vn=dateGetterName(ae),jn=dateSetterName(ae),Zn=!0;break;case"half-day":case"quarter-day":case"hour":Fn=getHourInterval(oe),Vn=hoursGetterName(ae),jn=hoursSetterName(ae);break;case"minute":Fn=getMinutesAndSecondsInterval(oe,!0),Vn=minutesGetterName(ae),jn=minutesSetterName(ae);break;case"second":Fn=getMinutesAndSecondsInterval(oe,!1),Vn=secondsGetterName(ae),jn=secondsSetterName(ae);break;case"millisecond":Fn=getMillisecondsInterval(oe),Vn=millisecondsGetterName(ae),jn=millisecondsSetterName(ae);break}Ce(Fn,Bn,Mn,Vn,jn,Zn,Nn),kn==="year"&&On.length>1&&zn===0&&On.unshift({value:On[0].value-Fn})}}for(var zn=0;zn<Nn.length;zn++)On.push(Nn[zn]);return Nn}}for(var xe=[],Ie=[],Ne=0,Fe=0,ze=0;ze<pe.length&&_e++<le;++ze){var At=getPrimaryTimeUnit(pe[ze]);if(isPrimaryTimeUnit(pe[ze])){$e(pe[ze],xe[xe.length-1]||[],Ie);var Lt=pe[ze+1]?getPrimaryTimeUnit(pe[ze+1]):null;if(At!==Lt){if(Ie.length){Fe=Ne,Ie.sort(function(kn,An){return kn.value-An.value});for(var hn=[],vn=0;vn<Ie.length;++vn){var _n=Ie[vn].value;(vn===0||Ie[vn-1].value!==_n)&&(hn.push(Ie[vn]),_n>=ie[0]&&_n<=ie[1]&&Ne++)}var bn=(ie[1]-ie[0])/oe;if(Ne>bn*1.5&&Fe>bn/1.5||(xe.push(hn),Ne>bn||$===pe[ze]))break}Ie=[]}}}for(var Cn=filter(map$2(xe,function(kn){return filter(kn,function(An){return An.value>=ie[0]&&An.value<=ie[1]&&!An.notAdd})}),function(kn){return kn.length>0}),En=[],$n=Cn.length-1,ze=0;ze<Cn.length;++ze)for(var wn=Cn[ze],Tn=0;Tn<wn.length;++Tn)En.push({value:wn[Tn].value,level:$n-ze});En.sort(function(kn,An){return kn.value-An.value});for(var xn=[],ze=0;ze<En.length;++ze)(ze===0||En[ze].value!==En[ze-1].value)&&xn.push(En[ze]);return xn}Scale$1.registerClass(TimeScale);const TimeScale$1=TimeScale;var scaleProto=Scale$1.prototype,intervalScaleProto=IntervalScale$1.prototype,roundingErrorFix=round$1,mathFloor=Math.floor,mathCeil=Math.ceil,mathPow$1=Math.pow,mathLog$1=Math.log,LogScale=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="log",ae.base=10,ae._originalScale=new IntervalScale$1,ae._interval=0,ae}return oe.prototype.getTicks=function(ae){var ie=this._originalScale,le=this._extent,pe=ie.getExtent(),_e=intervalScaleProto.getTicks.call(this,ae);return map$2(_e,function(Ce){var $e=Ce.value,xe=round$1(mathPow$1(this.base,$e));return xe=$e===le[0]&&this._fixMin?fixRoundingError(xe,pe[0]):xe,xe=$e===le[1]&&this._fixMax?fixRoundingError(xe,pe[1]):xe,{value:xe}},this)},oe.prototype.setExtent=function(ae,ie){var le=mathLog$1(this.base);ae=mathLog$1(Math.max(0,ae))/le,ie=mathLog$1(Math.max(0,ie))/le,intervalScaleProto.setExtent.call(this,ae,ie)},oe.prototype.getExtent=function(){var ae=this.base,ie=scaleProto.getExtent.call(this);ie[0]=mathPow$1(ae,ie[0]),ie[1]=mathPow$1(ae,ie[1]);var le=this._originalScale,pe=le.getExtent();return this._fixMin&&(ie[0]=fixRoundingError(ie[0],pe[0])),this._fixMax&&(ie[1]=fixRoundingError(ie[1],pe[1])),ie},oe.prototype.unionExtent=function(ae){this._originalScale.unionExtent(ae);var ie=this.base;ae[0]=mathLog$1(ae[0])/mathLog$1(ie),ae[1]=mathLog$1(ae[1])/mathLog$1(ie),scaleProto.unionExtent.call(this,ae)},oe.prototype.unionExtentFromData=function(ae,ie){this.unionExtent(ae.getApproximateExtent(ie))},oe.prototype.calcNiceTicks=function(ae){ae=ae||10;var ie=this._extent,le=ie[1]-ie[0];if(!(le===1/0||le<=0)){var pe=quantity(le),_e=ae/le*pe;for(_e<=.5&&(pe*=10);!isNaN(pe)&&Math.abs(pe)<1&&Math.abs(pe)>0;)pe*=10;var Ce=[round$1(mathCeil(ie[0]/pe)*pe),round$1(mathFloor(ie[1]/pe)*pe)];this._interval=pe,this._niceExtent=Ce}},oe.prototype.calcNiceExtent=function(ae){intervalScaleProto.calcNiceExtent.call(this,ae),this._fixMin=ae.fixMin,this._fixMax=ae.fixMax},oe.prototype.parse=function(ae){return ae},oe.prototype.contain=function(ae){return ae=mathLog$1(ae)/mathLog$1(this.base),contain$1(ae,this._extent)},oe.prototype.normalize=function(ae){return ae=mathLog$1(ae)/mathLog$1(this.base),normalize(ae,this._extent)},oe.prototype.scale=function(ae){return ae=scale(ae,this._extent),mathPow$1(this.base,ae)},oe.type="log",oe}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError($,oe){return roundingErrorFix($,getPrecision(oe))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function $(oe,ae,ie){this._prepareParams(oe,ae,ie)}return $.prototype._prepareParams=function(oe,ae,ie){ie[1]<ie[0]&&(ie=[NaN,NaN]),this._dataMin=ie[0],this._dataMax=ie[1];var le=this._isOrdinal=oe.type==="ordinal";this._needCrossZero=oe.type==="interval"&&ae.getNeedCrossZero&&ae.getNeedCrossZero();var pe=this._modelMinRaw=ae.get("min",!0);isFunction(pe)?this._modelMinNum=parseAxisModelMinMax(oe,pe({min:ie[0],max:ie[1]})):pe!=="dataMin"&&(this._modelMinNum=parseAxisModelMinMax(oe,pe));var _e=this._modelMaxRaw=ae.get("max",!0);if(isFunction(_e)?this._modelMaxNum=parseAxisModelMinMax(oe,_e({min:ie[0],max:ie[1]})):_e!=="dataMax"&&(this._modelMaxNum=parseAxisModelMinMax(oe,_e)),le)this._axisDataLen=ae.getCategories().length;else{var Ce=ae.get("boundaryGap"),$e=isArray$1(Ce)?Ce:[Ce||0,Ce||0];typeof $e[0]=="boolean"||typeof $e[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[parsePercent$1($e[0],1),parsePercent$1($e[1],1)]}},$.prototype.calculate=function(){var oe=this._isOrdinal,ae=this._dataMin,ie=this._dataMax,le=this._axisDataLen,pe=this._boundaryGapInner,_e=oe?null:ie-ae||Math.abs(ae),Ce=this._modelMinRaw==="dataMin"?ae:this._modelMinNum,$e=this._modelMaxRaw==="dataMax"?ie:this._modelMaxNum,xe=Ce!=null,Ie=$e!=null;Ce==null&&(Ce=oe?le?0:NaN:ae-pe[0]*_e),$e==null&&($e=oe?le?le-1:NaN:ie+pe[1]*_e),(Ce==null||!isFinite(Ce))&&(Ce=NaN),($e==null||!isFinite($e))&&($e=NaN);var Ne=eqNaN(Ce)||eqNaN($e)||oe&&!le;this._needCrossZero&&(Ce>0&&$e>0&&!xe&&(Ce=0),Ce<0&&$e<0&&!Ie&&($e=0));var Fe=this._determinedMin,ze=this._determinedMax;return Fe!=null&&(Ce=Fe,xe=!0),ze!=null&&($e=ze,Ie=!0),{min:Ce,max:$e,minFixed:xe,maxFixed:Ie,isBlank:Ne}},$.prototype.modifyDataMinMax=function(oe,ae){this[DATA_MIN_MAX_ATTR[oe]]=ae},$.prototype.setDeterminedMinMax=function(oe,ae){var ie=DETERMINED_MIN_MAX_ATTR[oe];this[ie]=ae},$.prototype.freeze=function(){this.frozen=!0},$}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo($,oe,ae){var ie=$.rawExtentInfo;return ie||(ie=new ScaleRawExtentInfo($,oe,ae),$.rawExtentInfo=ie,ie)}function parseAxisModelMinMax($,oe){return oe==null?null:eqNaN(oe)?NaN:$.parse(oe)}function getScaleExtent($,oe){var ae=$.type,ie=ensureScaleRawExtentInfo($,oe,$.getExtent()).calculate();$.setBlank(ie.isBlank);var le=ie.min,pe=ie.max,_e=oe.ecModel;if(_e&&ae==="time"){var Ce=prepareLayoutBarSeries("bar",_e),$e=!1;if(each$c(Ce,function(Ne){$e=$e||Ne.getBaseAxis()===oe.axis}),$e){var xe=makeColumnLayout(Ce),Ie=adjustScaleForOverflow(le,pe,oe,xe);le=Ie.min,pe=Ie.max}}return{extent:[le,pe],fixMin:ie.minFixed,fixMax:ie.maxFixed}}function adjustScaleForOverflow($,oe,ae,ie){var le=ae.axis.getExtent(),pe=le[1]-le[0],_e=retrieveColumnLayout(ie,ae.axis);if(_e===void 0)return{min:$,max:oe};var Ce=1/0;each$c(_e,function(ze){Ce=Math.min(ze.offset,Ce)});var $e=-1/0;each$c(_e,function(ze){$e=Math.max(ze.offset+ze.width,$e)}),Ce=Math.abs(Ce),$e=Math.abs($e);var xe=Ce+$e,Ie=oe-$,Ne=1-(Ce+$e)/pe,Fe=Ie/Ne-Ie;return oe+=Fe*($e/xe),$-=Fe*(Ce/xe),{min:$,max:oe}}function niceScaleExtent($,oe){var ae=oe,ie=getScaleExtent($,ae),le=ie.extent,pe=ae.get("splitNumber");$ instanceof LogScale$1&&($.base=ae.get("logBase"));var _e=$.type,Ce=ae.get("interval"),$e=_e==="interval"||_e==="time";$.setExtent(le[0],le[1]),$.calcNiceExtent({splitNumber:pe,fixMin:ie.fixMin,fixMax:ie.fixMax,minInterval:$e?ae.get("minInterval"):null,maxInterval:$e?ae.get("maxInterval"):null}),Ce!=null&&$.setInterval&&$.setInterval(Ce)}function createScaleByModel($,oe){if(oe=oe||$.get("type"),oe)switch(oe){case"category":return new OrdinalScale$1({ordinalMeta:$.getOrdinalMeta?$.getOrdinalMeta():$.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:$.ecModel.getLocaleModel(),useUTC:$.ecModel.get("useUTC")});default:return new(Scale$1.getClass(oe)||IntervalScale$1)}}function ifAxisCrossZero($){var oe=$.scale.getExtent(),ae=oe[0],ie=oe[1];return!(ae>0&&ie>0||ae<0&&ie<0)}function makeLabelFormatter($){var oe=$.getLabelModel().get("formatter"),ae=$.type==="category"?$.scale.getExtent()[0]:null;return $.scale.type==="time"?function(ie){return function(le,pe){return $.scale.getFormattedLabel(le,pe,ie)}}(oe):isString(oe)?function(ie){return function(le){var pe=$.scale.getLabel(le),_e=ie.replace("{value}",pe??"");return _e}}(oe):isFunction(oe)?function(ie){return function(le,pe){return ae!=null&&(pe=le.value-ae),ie(getAxisRawValue($,le),pe,le.level!=null?{level:le.level}:null)}}(oe):function(ie){return $.scale.getLabel(ie)}}function getAxisRawValue($,oe){return $.type==="category"?$.scale.getLabel(oe):oe.value}function estimateLabelUnionRect($){var oe=$.model,ae=$.scale;if(!(!oe.get(["axisLabel","show"])||ae.isBlank())){var ie,le,pe=ae.getExtent();ae instanceof OrdinalScale$1?le=ae.count():(ie=ae.getTicks(),le=ie.length);var _e=$.getLabelModel(),Ce=makeLabelFormatter($),$e,xe=1;le>40&&(xe=Math.ceil(le/40));for(var Ie=0;Ie<le;Ie+=xe){var Ne=ie?ie[Ie]:{value:pe[0]+Ie},Fe=Ce(Ne,Ie),ze=_e.getTextRect(Fe),At=rotateTextRect(ze,_e.get("rotate")||0);$e?$e.union(At):$e=At}return $e}}function rotateTextRect($,oe){var ae=oe*Math.PI/180,ie=$.width,le=$.height,pe=ie*Math.abs(Math.cos(ae))+Math.abs(le*Math.sin(ae)),_e=ie*Math.abs(Math.sin(ae))+Math.abs(le*Math.cos(ae)),Ce=new BoundingRect$1($.x,$.y,pe,_e);return Ce}function getOptionCategoryInterval($){var oe=$.get("interval");return oe??"auto"}function shouldShowAllLabels($){return $.type==="category"&&getOptionCategoryInterval($.getLabelModel())===0}function getDataDimensionsOnAxis($,oe){var ae={};return each$c($.mapDimensionsAll(oe),function(ie){ae[getStackedDimension($,ie)]=!0}),keys(ae)}function unionAxisExtentFromData($,oe,ae){oe&&each$c(getDataDimensionsOnAxis(oe,ae),function(ie){var le=oe.getApproximateExtent(ie);le[0]<$[0]&&($[0]=le[0]),le[1]>$[1]&&($[1]=le[1])})}var AxisModelCommonMixin=function(){function $(){}return $.prototype.getNeedCrossZero=function(){var oe=this.option;return!oe.scale},$.prototype.getCoordSysModel=function(){},$}();function createList($){return createSeriesData(null,$)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale($,oe){var ae=oe;oe instanceof Model$1||(ae=new Model$1(oe));var ie=createScaleByModel(ae);return ie.setExtent($[0],$[1]),niceScaleExtent(ie,ae),ie}function mixinAxisModelCommonMethods($){mixin($,AxisModelCommonMixin)}function createTextStyle($,oe){return oe=oe||{},createTextStyle$1($,null,null,oe.state!=="normal")}const helper=Object.freeze(Object.defineProperty({__proto__:null,createDimensions,createList,createScale,createSymbol,createTextStyle,dataStack,enableHoverEmphasis,getECData,getLayoutRect,mixinAxisModelCommonMethods},Symbol.toStringTag,{value:"Module"}));var 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($){ComponentModel$1.registerClass($)},registerComponentView:function($){ComponentView$1.registerClass($)},registerSeriesModel:function($){SeriesModel$1.registerClass($)},registerChartView:function($){ChartView$1.registerClass($)},registerSubTypeDefaulter:function($,oe){ComponentModel$1.registerSubTypeDefaulter($,oe)},registerPainter:function($,oe){registerPainter($,oe)}};function use$1($){if(isArray$1($)){each$c($,function(oe){use$1(oe)});return}indexOf(extensions,$)>=0||(extensions.push($),isFunction($)&&($={install:$}),$.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual($,oe){return Math.abs($-oe)<EPSILON}function contain($,oe,ae){var ie=0,le=$[0];if(!le)return!1;for(var pe=1;pe<$.length;pe++){var _e=$[pe];ie+=windingLine(le[0],le[1],_e[0],_e[1],oe,ae),le=_e}var Ce=$[0];return(!isAroundEqual(le[0],Ce[0])||!isAroundEqual(le[1],Ce[1]))&&(ie+=windingLine(le[0],le[1],Ce[0],Ce[1],oe,ae)),ie!==0}var TMP_TRANSFORM=[];function transformPoints($,oe){for(var ae=0;ae<$.length;ae++)applyTransform$1($[ae],$[ae],oe)}function updateBBoxFromPoints($,oe,ae,ie){for(var le=0;le<$.length;le++){var pe=$[le];ie&&(pe=ie.project(pe)),pe&&isFinite(pe[0])&&isFinite(pe[1])&&(min$1(oe,oe,pe),max$1(ae,ae,pe))}}function centroid($){for(var oe=0,ae=0,ie=0,le=$.length,pe=$[le-1][0],_e=$[le-1][1],Ce=0;Ce<le;Ce++){var $e=$[Ce][0],xe=$[Ce][1],Ie=pe*xe-$e*_e;oe+=Ie,ae+=(pe+$e)*Ie,ie+=(_e+xe)*Ie,pe=$e,_e=xe}return oe?[ae/oe/3,ie/oe/3,oe]:[$[0][0]||0,$[0][1]||0]}var Region=function(){function $(oe){this.name=oe}return $.prototype.setCenter=function(oe){this._center=oe},$.prototype.getCenter=function(){var oe=this._center;return oe||(oe=this._center=this.calcCenter()),oe},$}(),GeoJSONPolygonGeometry=function(){function $(oe,ae){this.type="polygon",this.exterior=oe,this.interiors=ae}return $}(),GeoJSONLineStringGeometry=function(){function $(oe){this.type="linestring",this.points=oe}return $}(),GeoJSONRegion=function($){__extends(oe,$);function oe(ae,ie,le){var pe=$.call(this,ae)||this;return pe.type="geoJSON",pe.geometries=ie,pe._center=le&&[le[0],le[1]],pe}return oe.prototype.calcCenter=function(){for(var ae=this.geometries,ie,le=0,pe=0;pe<ae.length;pe++){var _e=ae[pe],Ce=_e.exterior,$e=Ce&&Ce.length;$e>le&&(ie=_e,le=$e)}if(ie)return centroid(ie.exterior);var xe=this.getBoundingRect();return[xe.x+xe.width/2,xe.y+xe.height/2]},oe.prototype.getBoundingRect=function(ae){var ie=this._rect;if(ie&&!ae)return ie;var le=[1/0,1/0],pe=[-1/0,-1/0],_e=this.geometries;return each$c(_e,function(Ce){Ce.type==="polygon"?updateBBoxFromPoints(Ce.exterior,le,pe,ae):each$c(Ce.points,function($e){updateBBoxFromPoints($e,le,pe,ae)})}),isFinite(le[0])&&isFinite(le[1])&&isFinite(pe[0])&&isFinite(pe[1])||(le[0]=le[1]=pe[0]=pe[1]=0),ie=new BoundingRect$1(le[0],le[1],pe[0]-le[0],pe[1]-le[1]),ae||(this._rect=ie),ie},oe.prototype.contain=function(ae){var ie=this.getBoundingRect(),le=this.geometries;if(!ie.contain(ae[0],ae[1]))return!1;e:for(var pe=0,_e=le.length;pe<_e;pe++){var Ce=le[pe];if(Ce.type==="polygon"){var $e=Ce.exterior,xe=Ce.interiors;if(contain($e,ae[0],ae[1])){for(var Ie=0;Ie<(xe?xe.length:0);Ie++)if(contain(xe[Ie],ae[0],ae[1]))continue e;return!0}}}return!1},oe.prototype.transformTo=function(ae,ie,le,pe){var _e=this.getBoundingRect(),Ce=_e.width/_e.height;le?pe||(pe=le/Ce):le=Ce*pe;for(var $e=new BoundingRect$1(ae,ie,le,pe),xe=_e.calculateTransform($e),Ie=this.geometries,Ne=0;Ne<Ie.length;Ne++){var Fe=Ie[Ne];Fe.type==="polygon"?(transformPoints(Fe.exterior,xe),each$c(Fe.interiors,function(ze){transformPoints(ze,xe)})):each$c(Fe.points,function(ze){transformPoints(ze,xe)})}_e=this._rect,_e.copy($e),this._center=[_e.x+_e.width/2,_e.y+_e.height/2]},oe.prototype.cloneShallow=function(ae){ae==null&&(ae=this.name);var ie=new oe(ae,this.geometries,this._center);return ie._rect=this._rect,ie.transformTo=null,ie},oe}(Region);(function($){__extends(oe,$);function oe(ae,ie){var le=$.call(this,ae)||this;return le.type="geoSVG",le._elOnlyForCalculate=ie,le}return oe.prototype.calcCenter=function(){for(var ae=this._elOnlyForCalculate,ie=ae.getBoundingRect(),le=[ie.x+ie.width/2,ie.y+ie.height/2],pe=identity(TMP_TRANSFORM),_e=ae;_e&&!_e.isGeoSVGGraphicRoot;)mul(pe,_e.getLocalTransform(),pe),_e=_e.parent;return invert(pe,pe),applyTransform$1(le,le,pe),le},oe})(Region);function decode($){if(!$.UTF8Encoding)return $;var oe=$,ae=oe.UTF8Scale;ae==null&&(ae=1024);var ie=oe.features;return each$c(ie,function(le){var pe=le.geometry,_e=pe.encodeOffsets,Ce=pe.coordinates;if(_e)switch(pe.type){case"LineString":pe.coordinates=decodeRing(Ce,_e,ae);break;case"Polygon":decodeRings(Ce,_e,ae);break;case"MultiLineString":decodeRings(Ce,_e,ae);break;case"MultiPolygon":each$c(Ce,function($e,xe){return decodeRings($e,_e[xe],ae)})}}),oe.UTF8Encoding=!1,oe}function decodeRings($,oe,ae){for(var ie=0;ie<$.length;ie++)$[ie]=decodeRing($[ie],oe[ie],ae)}function decodeRing($,oe,ae){for(var ie=[],le=oe[0],pe=oe[1],_e=0;_e<$.length;_e+=2){var Ce=$.charCodeAt(_e)-64,$e=$.charCodeAt(_e+1)-64;Ce=Ce>>1^-(Ce&1),$e=$e>>1^-($e&1),Ce+=le,$e+=pe,le=Ce,pe=$e,ie.push([Ce/ae,$e/ae])}return ie}function parseGeoJSON($,oe){return $=decode($),map$2(filter($.features,function(ae){return ae.geometry&&ae.properties&&ae.geometry.coordinates.length>0}),function(ae){var ie=ae.properties,le=ae.geometry,pe=[];switch(le.type){case"Polygon":var _e=le.coordinates;pe.push(new GeoJSONPolygonGeometry(_e[0],_e.slice(1)));break;case"MultiPolygon":each$c(le.coordinates,function($e){$e[0]&&pe.push(new GeoJSONPolygonGeometry($e[0],$e.slice(1)))});break;case"LineString":pe.push(new GeoJSONLineStringGeometry([le.coordinates]));break;case"MultiLineString":pe.push(new GeoJSONLineStringGeometry(le.coordinates))}var Ce=new GeoJSONRegion(ie[oe||"name"],pe,ie.cp);return Ce.properties=ie,Ce})}const number=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER,asc:asc$2,getPercentWithPrecision,getPixelPrecision,getPrecision,getPrecisionSafe,isNumeric,isRadianAroundZero,linearMap:linearMap$2,nice,numericToNumber,parseDate,quantile,quantity,quantityExponent,reformIntervals,remRadian,round:round$1},Symbol.toStringTag,{value:"Module"})),time=Object.freeze(Object.defineProperty({__proto__:null,format:format$1,parse:parseDate},Symbol.toStringTag,{value:"Module"})),graphic=Object.freeze(Object.defineProperty({__proto__:null,Arc:Arc$1,BezierCurve:BezierCurve$1,BoundingRect:BoundingRect$1,Circle:Circle$1,CompoundPath:CompoundPath$1,Ellipse:Ellipse$1,Group:Group$3,Image:ZRImage$1,IncrementalDisplayable:IncrementalDisplayable$1,Line:Line$1,LinearGradient:LinearGradient$1,Polygon:Polygon$1,Polyline:Polyline$1,RadialGradient:RadialGradient$1,Rect:Rect$2,Ring:Ring$1,Sector:Sector$1,Text:ZRText$1,clipPointsByRect,clipRectByRect,createIcon,extendPath,extendShape,getShapeClass,getTransform:getTransform$1,initProps,makeImage,makePath,mergePath,registerShape,resizePath,updateProps:updateProps$1},Symbol.toStringTag,{value:"Module"})),format=Object.freeze(Object.defineProperty({__proto__:null,addCommas,capitalFirst,encodeHTML,formatTime,formatTpl,getTextRect,getTooltipMarker,normalizeCssArray,toCamelCase,truncateText},Symbol.toStringTag,{value:"Module"})),util=Object.freeze(Object.defineProperty({__proto__:null,bind:bind$1,clone:clone$3,curry:curry$1,defaults,each:each$c,extend,filter,indexOf,inherits,isArray:isArray$1,isFunction,isObject:isObject$3,isString,map:map$2,merge,reduce},Symbol.toStringTag,{value:"Module"}));var inner$7=makeInner();function createAxisLabels($){return $.type==="category"?makeCategoryLabels($):makeRealNumberLabels($)}function createAxisTicks($,oe){return $.type==="category"?makeCategoryTicks($,oe):{ticks:map$2($.scale.getTicks(),function(ae){return ae.value})}}function makeCategoryLabels($){var oe=$.getLabelModel(),ae=makeCategoryLabelsActually($,oe);return!oe.get("show")||$.scale.isBlank()?{labels:[],labelCategoryInterval:ae.labelCategoryInterval}:ae}function makeCategoryLabelsActually($,oe){var ae=getListCache($,"labels"),ie=getOptionCategoryInterval(oe),le=listCacheGet(ae,ie);if(le)return le;var pe,_e;return isFunction(ie)?pe=makeLabelsByCustomizedCategoryInterval($,ie):(_e=ie==="auto"?makeAutoCategoryInterval($):ie,pe=makeLabelsByNumericCategoryInterval($,_e)),listCacheSet(ae,ie,{labels:pe,labelCategoryInterval:_e})}function makeCategoryTicks($,oe){var ae=getListCache($,"ticks"),ie=getOptionCategoryInterval(oe),le=listCacheGet(ae,ie);if(le)return le;var pe,_e;if((!oe.get("show")||$.scale.isBlank())&&(pe=[]),isFunction(ie))pe=makeLabelsByCustomizedCategoryInterval($,ie,!0);else if(ie==="auto"){var Ce=makeCategoryLabelsActually($,$.getLabelModel());_e=Ce.labelCategoryInterval,pe=map$2(Ce.labels,function($e){return $e.tickValue})}else _e=ie,pe=makeLabelsByNumericCategoryInterval($,_e,!0);return listCacheSet(ae,ie,{ticks:pe,tickCategoryInterval:_e})}function makeRealNumberLabels($){var oe=$.scale.getTicks(),ae=makeLabelFormatter($);return{labels:map$2(oe,function(ie,le){return{level:ie.level,formattedLabel:ae(ie,le),rawLabel:$.scale.getLabel(ie),tickValue:ie.value}})}}function getListCache($,oe){return inner$7($)[oe]||(inner$7($)[oe]=[])}function listCacheGet($,oe){for(var ae=0;ae<$.length;ae++)if($[ae].key===oe)return $[ae].value}function listCacheSet($,oe,ae){return $.push({key:oe,value:ae}),ae}function makeAutoCategoryInterval($){var oe=inner$7($).autoInterval;return oe??(inner$7($).autoInterval=$.calculateCategoryInterval())}function calculateCategoryInterval($){var oe=fetchAutoCategoryIntervalCalculationParams($),ae=makeLabelFormatter($),ie=(oe.axisRotate-oe.labelRotate)/180*Math.PI,le=$.scale,pe=le.getExtent(),_e=le.count();if(pe[1]-pe[0]<1)return 0;var Ce=1;_e>40&&(Ce=Math.max(1,Math.floor(_e/40)));for(var $e=pe[0],xe=$.dataToCoord($e+1)-$.dataToCoord($e),Ie=Math.abs(xe*Math.cos(ie)),Ne=Math.abs(xe*Math.sin(ie)),Fe=0,ze=0;$e<=pe[1];$e+=Ce){var At=0,Lt=0,hn=getBoundingRect(ae({value:$e}),oe.font,"center","top");At=hn.width*1.3,Lt=hn.height*1.3,Fe=Math.max(Fe,At,7),ze=Math.max(ze,Lt,7)}var vn=Fe/Ie,_n=ze/Ne;isNaN(vn)&&(vn=1/0),isNaN(_n)&&(_n=1/0);var bn=Math.max(0,Math.floor(Math.min(vn,_n))),Cn=inner$7($.model),En=$.getExtent(),$n=Cn.lastAutoInterval,wn=Cn.lastTickCount;return $n!=null&&wn!=null&&Math.abs($n-bn)<=1&&Math.abs(wn-_e)<=1&&$n>bn&&Cn.axisExtent0===En[0]&&Cn.axisExtent1===En[1]?bn=$n:(Cn.lastTickCount=_e,Cn.lastAutoInterval=bn,Cn.axisExtent0=En[0],Cn.axisExtent1=En[1]),bn}function fetchAutoCategoryIntervalCalculationParams($){var oe=$.getLabelModel();return{axisRotate:$.getRotate?$.getRotate():$.isHorizontal&&!$.isHorizontal()?90:0,labelRotate:oe.get("rotate")||0,font:oe.getFont()}}function makeLabelsByNumericCategoryInterval($,oe,ae){var ie=makeLabelFormatter($),le=$.scale,pe=le.getExtent(),_e=$.getLabelModel(),Ce=[],$e=Math.max((oe||0)+1,1),xe=pe[0],Ie=le.count();xe!==0&&$e>1&&Ie/$e>2&&(xe=Math.round(Math.ceil(xe/$e)*$e));var Ne=shouldShowAllLabels($),Fe=_e.get("showMinLabel")||Ne,ze=_e.get("showMaxLabel")||Ne;Fe&&xe!==pe[0]&&Lt(pe[0]);for(var At=xe;At<=pe[1];At+=$e)Lt(At);ze&&At-$e!==pe[1]&&Lt(pe[1]);function Lt(hn){var vn={value:hn};Ce.push(ae?hn:{formattedLabel:ie(vn),rawLabel:le.getLabel(vn),tickValue:hn})}return Ce}function makeLabelsByCustomizedCategoryInterval($,oe,ae){var ie=$.scale,le=makeLabelFormatter($),pe=[];return each$c(ie.getTicks(),function(_e){var Ce=ie.getLabel(_e),$e=_e.value;oe(_e.value,Ce)&&pe.push(ae?$e:{formattedLabel:le(_e),rawLabel:Ce,tickValue:$e})}),pe}var NORMALIZED_EXTENT=[0,1],Axis=function(){function $(oe,ae,ie){this.onBand=!1,this.inverse=!1,this.dim=oe,this.scale=ae,this._extent=ie||[0,0]}return $.prototype.contain=function(oe){var ae=this._extent,ie=Math.min(ae[0],ae[1]),le=Math.max(ae[0],ae[1]);return oe>=ie&&oe<=le},$.prototype.containData=function(oe){return this.scale.contain(oe)},$.prototype.getExtent=function(){return this._extent.slice()},$.prototype.getPixelPrecision=function(oe){return getPixelPrecision(oe||this.scale.getExtent(),this._extent)},$.prototype.setExtent=function(oe,ae){var ie=this._extent;ie[0]=oe,ie[1]=ae},$.prototype.dataToCoord=function(oe,ae){var ie=this._extent,le=this.scale;return oe=le.normalize(oe),this.onBand&&le.type==="ordinal"&&(ie=ie.slice(),fixExtentWithBands(ie,le.count())),linearMap$2(oe,NORMALIZED_EXTENT,ie,ae)},$.prototype.coordToData=function(oe,ae){var ie=this._extent,le=this.scale;this.onBand&&le.type==="ordinal"&&(ie=ie.slice(),fixExtentWithBands(ie,le.count()));var pe=linearMap$2(oe,ie,NORMALIZED_EXTENT,ae);return this.scale.scale(pe)},$.prototype.pointToData=function(oe,ae){},$.prototype.getTicksCoords=function(oe){oe=oe||{};var ae=oe.tickModel||this.getTickModel(),ie=createAxisTicks(this,ae),le=ie.ticks,pe=map$2(le,function(Ce){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(Ce):Ce),tickValue:Ce}},this),_e=ae.get("alignWithLabel");return fixOnBandTicksCoords(this,pe,_e,oe.clamp),pe},$.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var oe=this.model.getModel("minorTick"),ae=oe.get("splitNumber");ae>0&&ae<100||(ae=5);var ie=this.scale.getMinorTicks(ae),le=map$2(ie,function(pe){return map$2(pe,function(_e){return{coord:this.dataToCoord(_e),tickValue:_e}},this)},this);return le},$.prototype.getViewLabels=function(){return createAxisLabels(this).labels},$.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},$.prototype.getTickModel=function(){return this.model.getModel("axisTick")},$.prototype.getBandWidth=function(){var oe=this._extent,ae=this.scale.getExtent(),ie=ae[1]-ae[0]+(this.onBand?1:0);ie===0&&(ie=1);var le=Math.abs(oe[1]-oe[0]);return Math.abs(le)/ie},$.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},$}();function fixExtentWithBands($,oe){var ae=$[1]-$[0],ie=oe,le=ae/ie/2;$[0]+=le,$[1]-=le}function fixOnBandTicksCoords($,oe,ae,ie){var le=oe.length;if(!$.onBand||ae||!le)return;var pe=$.getExtent(),_e,Ce;if(le===1)oe[0].coord=pe[0],_e=oe[1]={coord:pe[0]};else{var $e=oe[le-1].tickValue-oe[0].tickValue,xe=(oe[le-1].coord-oe[0].coord)/$e;each$c(oe,function(ze){ze.coord-=xe/2});var Ie=$.scale.getExtent();Ce=1+Ie[1]-oe[le-1].tickValue,_e={coord:oe[le-1].coord+xe*Ce},oe.push(_e)}var Ne=pe[0]>pe[1];Fe(oe[0].coord,pe[0])&&(ie?oe[0].coord=pe[0]:oe.shift()),ie&&Fe(pe[0],oe[0].coord)&&oe.unshift({coord:pe[0]}),Fe(pe[1],_e.coord)&&(ie?_e.coord=pe[1]:oe.pop()),ie&&Fe(_e.coord,pe[1])&&oe.push({coord:pe[1]});function Fe(ze,At){return ze=round$1(ze),At=round$1(At),Ne?ze>At:ze<At}}const Axis$1=Axis;function extendComponentModel($){var oe=ComponentModel$1.extend($);return ComponentModel$1.registerClass(oe),oe}function extendComponentView($){var oe=ComponentView$1.extend($);return ComponentView$1.registerClass(oe),oe}function extendSeriesModel($){var oe=SeriesModel$1.extend($);return SeriesModel$1.registerClass(oe),oe}function extendChartView($){var oe=ChartView$1.extend($);return ChartView$1.registerClass(oe),oe}PathProxy$1.CMD;function projectPointToLine($,oe,ae,ie,le,pe,_e,Ce){var $e=le-$,xe=pe-oe,Ie=ae-$,Ne=ie-oe,Fe=Math.sqrt(Ie*Ie+Ne*Ne);Ie/=Fe,Ne/=Fe;var ze=$e*Ie+xe*Ne,At=ze/Fe;Ce&&(At=Math.min(Math.max(At,0),1)),At*=Fe;var Lt=_e[0]=$+At*Ie,hn=_e[1]=oe+At*Ne;return Math.sqrt((Lt-le)*(Lt-le)+(hn-pe)*(hn-pe))}var pt0=new Point$1,pt1=new Point$1,pt2=new Point$1,dir=new Point$1,dir2=new Point$1,tmpArr=[],tmpProjPoint=new Point$1;function limitTurnAngle($,oe){if(oe<=180&&oe>0){oe=oe/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var ae=dir.len(),ie=dir2.len();if(!(ae<.001||ie<.001)){dir.scale(1/ae),dir2.scale(1/ie);var le=dir.dot(dir2),pe=Math.cos(oe);if(pe<le){var _e=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr),tmpProjPoint.scaleAndAdd(dir2,_e/Math.tan(Math.PI-oe));var Ce=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(Ce))return;Ce<0?Point$1.copy(tmpProjPoint,pt1):Ce>1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray($[1])}}}}function limitSurfaceAngle($,oe,ae){if(ae<=180&&ae>0){ae=ae/180*Math.PI,pt0.fromArray($[0]),pt1.fromArray($[1]),pt2.fromArray($[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var ie=dir.len(),le=dir2.len();if(!(ie<.001||le<.001)){dir.scale(1/ie),dir2.scale(1/le);var pe=dir.dot(oe),_e=Math.cos(ae);if(pe<_e){var Ce=projectPointToLine(pt1.x,pt1.y,pt2.x,pt2.y,pt0.x,pt0.y,tmpArr,!1);tmpProjPoint.fromArray(tmpArr);var $e=Math.PI/2,xe=Math.acos(dir2.dot(oe)),Ie=$e+xe-ae;if(Ie>=$e)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,Ce/Math.tan(Math.PI/2-Ie));var Ne=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(Ne))return;Ne<0?Point$1.copy(tmpProjPoint,pt1):Ne>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray($[1])}}}}function setLabelLineState($,oe,ae,ie){var le=ae==="normal",pe=le?$:$.ensureState(ae);pe.ignore=oe;var _e=ie.get("smooth");_e&&_e===!0&&(_e=.3),pe.shape=pe.shape||{},_e>0&&(pe.shape.smooth=_e);var Ce=ie.getModel("lineStyle").getLineStyle();le?$.useStyle(Ce):pe.style=Ce}function buildLabelLinePath($,oe){var ae=oe.smooth,ie=oe.points;if(ie)if($.moveTo(ie[0][0],ie[0][1]),ae>0&&ie.length>=3){var le=dist$1(ie[0],ie[1]),pe=dist$1(ie[1],ie[2]);if(!le||!pe){$.lineTo(ie[1][0],ie[1][1]),$.lineTo(ie[2][0],ie[2][1]);return}var _e=Math.min(le,pe)*ae,Ce=lerp$1([],ie[1],ie[0],_e/le),$e=lerp$1([],ie[1],ie[2],_e/pe),xe=lerp$1([],Ce,$e,.5);$.bezierCurveTo(Ce[0],Ce[1],Ce[0],Ce[1],xe[0],xe[1]),$.bezierCurveTo($e[0],$e[1],$e[0],$e[1],ie[2][0],ie[2][1])}else for(var Ie=1;Ie<ie.length;Ie++)$.lineTo(ie[Ie][0],ie[Ie][1])}function setLabelLineStyle($,oe,ae){var ie=$.getTextGuideLine(),le=$.getTextContent();if(!le){ie&&$.removeTextGuideLine();return}for(var pe=oe.normal,_e=pe.get("show"),Ce=le.ignore,$e=0;$e<DISPLAY_STATES.length;$e++){var xe=DISPLAY_STATES[$e],Ie=oe[xe],Ne=xe==="normal";if(Ie){var Fe=Ie.get("show"),ze=Ne?Ce:retrieve2(le.states[xe]&&le.states[xe].ignore,Ce);if(ze||!retrieve2(Fe,_e)){var At=Ne?ie:ie&&ie.states[xe];At&&(At.ignore=!0);continue}ie||(ie=new Polyline$1,$.setTextGuideLine(ie),!Ne&&(Ce||!_e)&&setLabelLineState(ie,!0,"normal",oe.normal),$.stateProxy&&(ie.stateProxy=$.stateProxy)),setLabelLineState(ie,!1,xe,Ie)}}if(ie){defaults(ie.style,ae),ie.style.fill=null;var Lt=pe.get("showAbove"),hn=$.textGuideLineConfig=$.textGuideLineConfig||{};hn.showAbove=Lt||!1,ie.buildPath=buildLabelLinePath}}function getLabelLineStatesModels($,oe){oe=oe||"labelLine";for(var ae={normal:$.getModel(oe)},ie=0;ie<SPECIAL_STATES.length;ie++){var le=SPECIAL_STATES[ie];ae[le]=$.getModel([le,oe])}return ae}function prepareLayoutList($){for(var oe=[],ae=0;ae<$.length;ae++){var ie=$[ae];if(!ie.defaultAttr.ignore){var le=ie.label,pe=le.getComputedTransform(),_e=le.getBoundingRect(),Ce=!pe||pe[1]<1e-5&&pe[2]<1e-5,$e=le.style.margin||0,xe=_e.clone();xe.applyTransform(pe),xe.x-=$e/2,xe.y-=$e/2,xe.width+=$e,xe.height+=$e;var Ie=Ce?new OrientedBoundingRect$1(_e,pe):null;oe.push({label:le,labelLine:ie.labelLine,rect:xe,localRect:_e,obb:Ie,priority:ie.priority,defaultAttr:ie.defaultAttr,layoutOption:ie.computedLayoutOption,axisAligned:Ce,transform:pe})}}return oe}function shiftLayout($,oe,ae,ie,le,pe){var _e=$.length;if(_e<2)return;$.sort(function(Tn,xn){return Tn.rect[oe]-xn.rect[oe]});for(var Ce=0,$e,xe=!1,Ie=0,Ne=0;Ne<_e;Ne++){var Fe=$[Ne],ze=Fe.rect;$e=ze[oe]-Ce,$e<0&&(ze[oe]-=$e,Fe.label[oe]-=$e,xe=!0);var At=Math.max(-$e,0);Ie+=At,Ce=ze[oe]+ze[ae]}Ie>0&&pe&&En(-Ie/_e,0,_e);var Lt=$[0],hn=$[_e-1],vn,_n;bn(),vn<0&&$n(-vn,.8),_n<0&&$n(_n,.8),bn(),Cn(vn,_n,1),Cn(_n,vn,-1),bn(),vn<0&&wn(-vn),_n<0&&wn(_n);function bn(){vn=Lt.rect[oe]-ie,_n=le-hn.rect[oe]-hn.rect[ae]}function Cn(Tn,xn,kn){if(Tn<0){var An=Math.min(xn,-Tn);if(An>0){En(An*kn,0,_e);var On=An+Tn;On<0&&$n(-On*kn,1)}else $n(-Tn*kn,1)}}function En(Tn,xn,kn){Tn!==0&&(xe=!0);for(var An=xn;An<kn;An++){var On=$[An],Nn=On.rect;Nn[oe]+=Tn,On.label[oe]+=Tn}}function $n(Tn,xn){for(var kn=[],An=0,On=1;On<_e;On++){var Nn=$[On-1].rect,Rn=Math.max($[On].rect[oe]-Nn[oe]-Nn[ae],0);kn.push(Rn),An+=Rn}if(An){var zn=Math.min(Math.abs(Tn)/An,xn);if(Tn>0)for(var On=0;On<_e-1;On++){var Bn=kn[On]*zn;En(Bn,0,On+1)}else for(var On=_e-1;On>0;On--){var Bn=kn[On-1]*zn;En(-Bn,On,_e)}}}function wn(Tn){var xn=Tn<0?-1:1;Tn=Math.abs(Tn);for(var kn=Math.ceil(Tn/(_e-1)),An=0;An<_e-1;An++)if(xn>0?En(kn,0,An+1):En(-kn,_e-An-1,_e),Tn-=kn,Tn<=0)return}return xe}function shiftLayoutOnY($,oe,ae,ie){return shiftLayout($,"y","height",oe,ae,ie)}function hideOverlap($){var oe=[];$.sort(function(Lt,hn){return hn.priority-Lt.priority});var ae=new BoundingRect$1(0,0,0,0);function ie(Lt){if(!Lt.ignore){var hn=Lt.ensureState("emphasis");hn.ignore==null&&(hn.ignore=!1)}Lt.ignore=!0}for(var le=0;le<$.length;le++){var pe=$[le],_e=pe.axisAligned,Ce=pe.localRect,$e=pe.transform,xe=pe.label,Ie=pe.labelLine;ae.copy(pe.rect),ae.width-=.1,ae.height-=.1,ae.x+=.05,ae.y+=.05;for(var Ne=pe.obb,Fe=!1,ze=0;ze<oe.length;ze++){var At=oe[ze];if(ae.intersect(At.rect)){if(_e&&At.axisAligned){Fe=!0;break}if(At.obb||(At.obb=new OrientedBoundingRect$1(At.localRect,At.transform)),Ne||(Ne=new OrientedBoundingRect$1(Ce,$e)),Ne.intersect(At.obb)){Fe=!0;break}}}Fe?(ie(xe),Ie&&ie(Ie)):(xe.attr("ignore",pe.defaultAttr.ignore),Ie&&Ie.attr("ignore",pe.defaultAttr.labelGuideIgnore),oe.push(pe))}}const echarts=Object.freeze(Object.defineProperty({__proto__:null,Axis:Axis$1,ChartView:ChartView$1,ComponentModel:ComponentModel$1,ComponentView:ComponentView$1,List:SeriesData$1,Model:Model$1,PRIORITY,SeriesModel:SeriesModel$1,color,connect,dataTool,dependencies,disConnect,disconnect,dispose,env:env$1,extendChartView,extendComponentModel,extendComponentView,extendSeriesModel,format,getCoordinateSystemDimensions,getInstanceByDom,getInstanceById,getMap,graphic,helper,init,innerDrawElementOnCanvas:brushSingle,matrix,number,parseGeoJSON,parseGeoJson:parseGeoJSON,registerAction,registerCoordinateSystem,registerLayout,registerLoading,registerLocale,registerMap,registerPostInit,registerPostUpdate,registerPreprocessor,registerProcessor,registerTheme,registerTransform,registerUpdateLifecycle,registerVisual,setCanvasCreator,setPlatformAPI,throttle,time,use:use$1,util,vector,version,zrUtil:util$1,zrender},Symbol.toStringTag,{value:"Module"}));function createDom($,oe,ae){var ie=platformApi.createCanvas(),le=oe.getWidth(),pe=oe.getHeight(),_e=ie.style;return _e&&(_e.position="absolute",_e.left="0",_e.top="0",_e.width=le+"px",_e.height=pe+"px",ie.setAttribute("data-zr-dom-id",$)),ie.width=le*ae,ie.height=pe*ae,ie}var Layer=function($){__extends(oe,$);function oe(ae,ie,le){var pe=$.call(this)||this;pe.motionBlur=!1,pe.lastFrameAlpha=.7,pe.dpr=1,pe.virtual=!1,pe.config={},pe.incremental=!1,pe.zlevel=0,pe.maxRepaintRectCount=5,pe.__dirty=!0,pe.__firstTimePaint=!0,pe.__used=!1,pe.__drawIndex=0,pe.__startIndex=0,pe.__endIndex=0,pe.__prevStartIndex=null,pe.__prevEndIndex=null;var _e;le=le||devicePixelRatio,typeof ae=="string"?_e=createDom(ae,ie,le):isObject$3(ae)&&(_e=ae,ae=_e.id),pe.id=ae,pe.dom=_e;var Ce=_e.style;return Ce&&(disableUserSelect(_e),_e.onselectstart=function(){return!1},Ce.padding="0",Ce.margin="0",Ce.borderWidth="0"),pe.painter=ie,pe.dpr=le,pe}return oe.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},oe.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},oe.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},oe.prototype.setUnpainted=function(){this.__firstTimePaint=!0},oe.prototype.createBackBuffer=function(){var ae=this.dpr;this.domBack=createDom("back-"+this.id,this.painter,ae),this.ctxBack=this.domBack.getContext("2d"),ae!==1&&this.ctxBack.scale(ae,ae)},oe.prototype.createRepaintRects=function(ae,ie,le,pe){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var _e=[],Ce=this.maxRepaintRectCount,$e=!1,xe=new BoundingRect$1(0,0,0,0);function Ie(_n){if(!(!_n.isFinite()||_n.isZero()))if(_e.length===0){var bn=new BoundingRect$1(0,0,0,0);bn.copy(_n),_e.push(bn)}else{for(var Cn=!1,En=1/0,$n=0,wn=0;wn<_e.length;++wn){var Tn=_e[wn];if(Tn.intersect(_n)){var xn=new BoundingRect$1(0,0,0,0);xn.copy(Tn),xn.union(_n),_e[wn]=xn,Cn=!0;break}else if($e){xe.copy(_n),xe.union(Tn);var kn=_n.width*_n.height,An=Tn.width*Tn.height,On=xe.width*xe.height,Nn=On-kn-An;Nn<En&&(En=Nn,$n=wn)}}if($e&&(_e[$n].union(_n),Cn=!0),!Cn){var bn=new BoundingRect$1(0,0,0,0);bn.copy(_n),_e.push(bn)}$e||($e=_e.length>=Ce)}}for(var Ne=this.__startIndex;Ne<this.__endIndex;++Ne){var Fe=ae[Ne];if(Fe){var ze=Fe.shouldBePainted(le,pe,!0,!0),At=Fe.__isRendered&&(Fe.__dirty&REDRAW_BIT||!ze)?Fe.getPrevPaintRect():null;At&&Ie(At);var Lt=ze&&(Fe.__dirty&REDRAW_BIT||!Fe.__isRendered)?Fe.getPaintRect():null;Lt&&Ie(Lt)}}for(var Ne=this.__prevStartIndex;Ne<this.__prevEndIndex;++Ne){var Fe=ie[Ne],ze=Fe.shouldBePainted(le,pe,!0,!0);if(Fe&&(!ze||!Fe.__zr)&&Fe.__isRendered){var At=Fe.getPrevPaintRect();At&&Ie(At)}}var hn;do{hn=!1;for(var Ne=0;Ne<_e.length;){if(_e[Ne].isZero()){_e.splice(Ne,1);continue}for(var vn=Ne+1;vn<_e.length;)_e[Ne].intersect(_e[vn])?(hn=!0,_e[Ne].union(_e[vn]),_e.splice(vn,1)):vn++;Ne++}}while(hn);return this._paintRects=_e,_e},oe.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},oe.prototype.resize=function(ae,ie){var le=this.dpr,pe=this.dom,_e=pe.style,Ce=this.domBack;_e&&(_e.width=ae+"px",_e.height=ie+"px"),pe.width=ae*le,pe.height=ie*le,Ce&&(Ce.width=ae*le,Ce.height=ie*le,le!==1&&this.ctxBack.scale(le,le))},oe.prototype.clear=function(ae,ie,le){var pe=this.dom,_e=this.ctx,Ce=pe.width,$e=pe.height;ie=ie||this.clearColor;var xe=this.motionBlur&&!ae,Ie=this.lastFrameAlpha,Ne=this.dpr,Fe=this;xe&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(pe,0,0,Ce/Ne,$e/Ne));var ze=this.domBack;function At(Lt,hn,vn,_n){if(_e.clearRect(Lt,hn,vn,_n),ie&&ie!=="transparent"){var bn=void 0;if(isGradientObject(ie)){var Cn=ie.global||ie.__width===vn&&ie.__height===_n;bn=Cn&&ie.__canvasGradient||getCanvasGradient(_e,ie,{x:0,y:0,width:vn,height:_n}),ie.__canvasGradient=bn,ie.__width=vn,ie.__height=_n}else isImagePatternObject(ie)&&(ie.scaleX=ie.scaleX||Ne,ie.scaleY=ie.scaleY||Ne,bn=createCanvasPattern(_e,ie,{dirty:function(){Fe.setUnpainted(),Fe.__painter.refresh()}}));_e.save(),_e.fillStyle=bn||ie,_e.fillRect(Lt,hn,vn,_n),_e.restore()}xe&&(_e.save(),_e.globalAlpha=Ie,_e.drawImage(ze,Lt,hn,vn,_n),_e.restore())}!le||xe?At(0,0,Ce,$e):le.length&&each$c(le,function(Lt){At(Lt.x*Ne,Lt.y*Ne,Lt.width*Ne,Lt.height*Ne)})},oe}(Eventful$1);const Layer$1=Layer;var HOVER_LAYER_ZLEVEL=1e5,CANVAS_ZLEVEL=314159,EL_AFTER_INCREMENTAL_INC=.01,INCREMENTAL_INC=.001;function isLayerValid($){return $?$.__builtin__?!0:!(typeof $.resize!="function"||typeof $.refresh!="function"):!1}function createRoot($,oe){var ae=document.createElement("div");return ae.style.cssText=["position:relative","width:"+$+"px","height:"+oe+"px","padding:0","margin:0","border-width:0"].join(";")+";",ae}var CanvasPainter=function(){function $(oe,ae,ie,le){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var pe=!oe.nodeName||oe.nodeName.toUpperCase()==="CANVAS";this._opts=ie=extend({},ie||{}),this.dpr=ie.devicePixelRatio||devicePixelRatio,this._singleCanvas=pe,this.root=oe;var _e=oe.style;_e&&(disableUserSelect(oe),oe.innerHTML=""),this.storage=ae;var Ce=this._zlevelList;this._prevDisplayList=[];var $e=this._layers;if(pe){var Ie=oe,Ne=Ie.width,Fe=Ie.height;ie.width!=null&&(Ne=ie.width),ie.height!=null&&(Fe=ie.height),this.dpr=ie.devicePixelRatio||1,Ie.width=Ne*this.dpr,Ie.height=Fe*this.dpr,this._width=Ne,this._height=Fe;var ze=new Layer$1(Ie,this,this.dpr);ze.__builtin__=!0,ze.initContext(),$e[CANVAS_ZLEVEL]=ze,ze.zlevel=CANVAS_ZLEVEL,Ce.push(CANVAS_ZLEVEL),this._domRoot=oe}else{this._width=getSize$1(oe,0,ie),this._height=getSize$1(oe,1,ie);var xe=this._domRoot=createRoot(this._width,this._height);oe.appendChild(xe)}}return $.prototype.getType=function(){return"canvas"},$.prototype.isSingleCanvas=function(){return this._singleCanvas},$.prototype.getViewportRoot=function(){return this._domRoot},$.prototype.getViewportRootOffset=function(){var oe=this.getViewportRoot();if(oe)return{offsetLeft:oe.offsetLeft||0,offsetTop:oe.offsetTop||0}},$.prototype.refresh=function(oe){var ae=this.storage.getDisplayList(!0),ie=this._prevDisplayList,le=this._zlevelList;this._redrawId=Math.random(),this._paintList(ae,ie,oe,this._redrawId);for(var pe=0;pe<le.length;pe++){var _e=le[pe],Ce=this._layers[_e];if(!Ce.__builtin__&&Ce.refresh){var $e=pe===0?this._backgroundColor:null;Ce.refresh($e)}}return this._opts.useDirtyRect&&(this._prevDisplayList=ae.slice()),this},$.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},$.prototype._paintHoverList=function(oe){var ae=oe.length,ie=this._hoverlayer;if(ie&&ie.clear(),!!ae){for(var le={inHover:!0,viewWidth:this._width,viewHeight:this._height},pe,_e=0;_e<ae;_e++){var Ce=oe[_e];Ce.__inHover&&(ie||(ie=this._hoverlayer=this.getLayer(HOVER_LAYER_ZLEVEL)),pe||(pe=ie.ctx,pe.save()),brush(pe,Ce,le,_e===ae-1))}pe&&pe.restore()}},$.prototype.getHoverLayer=function(){return this.getLayer(HOVER_LAYER_ZLEVEL)},$.prototype.paintOne=function(oe,ae){brushSingle(oe,ae)},$.prototype._paintList=function(oe,ae,ie,le){if(this._redrawId===le){ie=ie||!1,this._updateLayerStatus(oe);var pe=this._doPaintList(oe,ae,ie),_e=pe.finished,Ce=pe.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),Ce&&this._paintHoverList(oe),_e)this.eachLayer(function(xe){xe.afterBrush&&xe.afterBrush()});else{var $e=this;requestAnimationFrame$2(function(){$e._paintList(oe,ae,ie,le)})}}},$.prototype._compositeManually=function(){var oe=this.getLayer(CANVAS_ZLEVEL).ctx,ae=this._domRoot.width,ie=this._domRoot.height;oe.clearRect(0,0,ae,ie),this.eachBuiltinLayer(function(le){le.virtual&&oe.drawImage(le.dom,0,0,ae,ie)})},$.prototype._doPaintList=function(oe,ae,ie){for(var le=this,pe=[],_e=this._opts.useDirtyRect,Ce=0;Ce<this._zlevelList.length;Ce++){var $e=this._zlevelList[Ce],xe=this._layers[$e];xe.__builtin__&&xe!==this._hoverlayer&&(xe.__dirty||ie)&&pe.push(xe)}for(var Ie=!0,Ne=!1,Fe=function(Lt){var hn=pe[Lt],vn=hn.ctx,_n=_e&&hn.createRepaintRects(oe,ae,ze._width,ze._height),bn=ie?hn.__startIndex:hn.__drawIndex,Cn=!ie&&hn.incremental&&Date.now,En=Cn&&Date.now(),$n=hn.zlevel===ze._zlevelList[0]?ze._backgroundColor:null;if(hn.__startIndex===hn.__endIndex)hn.clear(!1,$n,_n);else if(bn===hn.__startIndex){var wn=oe[bn];(!wn.incremental||!wn.notClear||ie)&&hn.clear(!1,$n,_n)}bn===-1&&(console.error("For some unknown reason. drawIndex is -1"),bn=hn.__startIndex);var Tn,xn=function(Nn){var Rn={inHover:!1,allClipped:!1,prevEl:null,viewWidth:le._width,viewHeight:le._height};for(Tn=bn;Tn<hn.__endIndex;Tn++){var zn=oe[Tn];if(zn.__inHover&&(Ne=!0),le._doPaintEl(zn,hn,_e,Nn,Rn,Tn===hn.__endIndex-1),Cn){var Bn=Date.now()-En;if(Bn>15)break}}Rn.prevElClipPaths&&vn.restore()};if(_n)if(_n.length===0)Tn=hn.__endIndex;else for(var kn=ze.dpr,An=0;An<_n.length;++An){var On=_n[An];vn.save(),vn.beginPath(),vn.rect(On.x*kn,On.y*kn,On.width*kn,On.height*kn),vn.clip(),xn(On),vn.restore()}else vn.save(),xn(),vn.restore();hn.__drawIndex=Tn,hn.__drawIndex<hn.__endIndex&&(Ie=!1)},ze=this,At=0;At<pe.length;At++)Fe(At);return env$1.wxa&&each$c(this._layers,function(Lt){Lt&&Lt.ctx&&Lt.ctx.draw&&Lt.ctx.draw()}),{finished:Ie,needsRefreshHover:Ne}},$.prototype._doPaintEl=function(oe,ae,ie,le,pe,_e){var Ce=ae.ctx;if(ie){var $e=oe.getPaintRect();(!le||$e&&$e.intersect(le))&&(brush(Ce,oe,pe,_e),oe.setPrevPaintRect($e))}else brush(Ce,oe,pe,_e)},$.prototype.getLayer=function(oe,ae){this._singleCanvas&&!this._needsManuallyCompositing&&(oe=CANVAS_ZLEVEL);var ie=this._layers[oe];return ie||(ie=new Layer$1("zr_"+oe,this,this.dpr),ie.zlevel=oe,ie.__builtin__=!0,this._layerConfig[oe]?merge(ie,this._layerConfig[oe],!0):this._layerConfig[oe-EL_AFTER_INCREMENTAL_INC]&&merge(ie,this._layerConfig[oe-EL_AFTER_INCREMENTAL_INC],!0),ae&&(ie.virtual=ae),this.insertLayer(oe,ie),ie.initContext()),ie},$.prototype.insertLayer=function(oe,ae){var ie=this._layers,le=this._zlevelList,pe=le.length,_e=this._domRoot,Ce=null,$e=-1;if(!ie[oe]&&isLayerValid(ae)){if(pe>0&&oe>le[0]){for($e=0;$e<pe-1&&!(le[$e]<oe&&le[$e+1]>oe);$e++);Ce=ie[le[$e]]}if(le.splice($e+1,0,oe),ie[oe]=ae,!ae.virtual)if(Ce){var xe=Ce.dom;xe.nextSibling?_e.insertBefore(ae.dom,xe.nextSibling):_e.appendChild(ae.dom)}else _e.firstChild?_e.insertBefore(ae.dom,_e.firstChild):_e.appendChild(ae.dom);ae.__painter=this}},$.prototype.eachLayer=function(oe,ae){for(var ie=this._zlevelList,le=0;le<ie.length;le++){var pe=ie[le];oe.call(ae,this._layers[pe],pe)}},$.prototype.eachBuiltinLayer=function(oe,ae){for(var ie=this._zlevelList,le=0;le<ie.length;le++){var pe=ie[le],_e=this._layers[pe];_e.__builtin__&&oe.call(ae,_e,pe)}},$.prototype.eachOtherLayer=function(oe,ae){for(var ie=this._zlevelList,le=0;le<ie.length;le++){var pe=ie[le],_e=this._layers[pe];_e.__builtin__||oe.call(ae,_e,pe)}},$.prototype.getLayers=function(){return this._layers},$.prototype._updateLayerStatus=function(oe){this.eachBuiltinLayer(function(Ne,Fe){Ne.__dirty=Ne.__used=!1});function ae(Ne){pe&&(pe.__endIndex!==Ne&&(pe.__dirty=!0),pe.__endIndex=Ne)}if(this._singleCanvas)for(var ie=1;ie<oe.length;ie++){var le=oe[ie];if(le.zlevel!==oe[ie-1].zlevel||le.incremental){this._needsManuallyCompositing=!0;break}}var pe=null,_e=0,Ce,$e;for($e=0;$e<oe.length;$e++){var le=oe[$e],xe=le.zlevel,Ie=void 0;Ce!==xe&&(Ce=xe,_e=0),le.incremental?(Ie=this.getLayer(xe+INCREMENTAL_INC,this._needsManuallyCompositing),Ie.incremental=!0,_e=1):Ie=this.getLayer(xe+(_e>0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),Ie.__builtin__||logError("ZLevel "+xe+" has been used by unkown layer "+Ie.id),Ie!==pe&&(Ie.__used=!0,Ie.__startIndex!==$e&&(Ie.__dirty=!0),Ie.__startIndex=$e,Ie.incremental?Ie.__drawIndex=-1:Ie.__drawIndex=$e,ae($e),pe=Ie),le.__dirty&REDRAW_BIT&&!le.__inHover&&(Ie.__dirty=!0,Ie.incremental&&Ie.__drawIndex<0&&(Ie.__drawIndex=$e))}ae($e),this.eachBuiltinLayer(function(Ne,Fe){!Ne.__used&&Ne.getElementCount()>0&&(Ne.__dirty=!0,Ne.__startIndex=Ne.__endIndex=Ne.__drawIndex=0),Ne.__dirty&&Ne.__drawIndex<0&&(Ne.__drawIndex=Ne.__startIndex)})},$.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},$.prototype._clearLayer=function(oe){oe.clear()},$.prototype.setBackgroundColor=function(oe){this._backgroundColor=oe,each$c(this._layers,function(ae){ae.setUnpainted()})},$.prototype.configLayer=function(oe,ae){if(ae){var ie=this._layerConfig;ie[oe]?merge(ie[oe],ae,!0):ie[oe]=ae;for(var le=0;le<this._zlevelList.length;le++){var pe=this._zlevelList[le];if(pe===oe||pe===oe+EL_AFTER_INCREMENTAL_INC){var _e=this._layers[pe];merge(_e,ie[oe],!0)}}}},$.prototype.delLayer=function(oe){var ae=this._layers,ie=this._zlevelList,le=ae[oe];le&&(le.dom.parentNode.removeChild(le.dom),delete ae[oe],ie.splice(indexOf(ie,oe),1))},$.prototype.resize=function(oe,ae){if(this._domRoot.style){var ie=this._domRoot;ie.style.display="none";var le=this._opts,pe=this.root;if(oe!=null&&(le.width=oe),ae!=null&&(le.height=ae),oe=getSize$1(pe,0,le),ae=getSize$1(pe,1,le),ie.style.display="",this._width!==oe||ae!==this._height){ie.style.width=oe+"px",ie.style.height=ae+"px";for(var _e in this._layers)this._layers.hasOwnProperty(_e)&&this._layers[_e].resize(oe,ae);this.refresh(!0)}this._width=oe,this._height=ae}else{if(oe==null||ae==null)return;this._width=oe,this._height=ae,this.getLayer(CANVAS_ZLEVEL).resize(oe,ae)}return this},$.prototype.clearLayer=function(oe){var ae=this._layers[oe];ae&&ae.clear()},$.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},$.prototype.getRenderedCanvas=function(oe){if(oe=oe||{},this._singleCanvas&&!this._compositeManually)return this._layers[CANVAS_ZLEVEL].dom;var ae=new Layer$1("image",this,oe.pixelRatio||this.dpr);ae.initContext(),ae.clear(!1,oe.backgroundColor||this._backgroundColor);var ie=ae.ctx;if(oe.pixelRatio<=this.dpr){this.refresh();var le=ae.dom.width,pe=ae.dom.height;this.eachLayer(function(Ne){Ne.__builtin__?ie.drawImage(Ne.dom,0,0,le,pe):Ne.renderToCanvas&&(ie.save(),Ne.renderToCanvas(ie),ie.restore())})}else for(var _e={inHover:!1,viewWidth:this._width,viewHeight:this._height},Ce=this.storage.getDisplayList(!0),$e=0,xe=Ce.length;$e<xe;$e++){var Ie=Ce[$e];brush(ie,Ie,_e,$e===xe-1)}return ae.dom},$.prototype.getWidth=function(){return this._width},$.prototype.getHeight=function(){return this._height},$}();const CanvasPainter$1=CanvasPainter;function install$k($){$.registerPainter("canvas",CanvasPainter$1)}var LineSeriesModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.hasSymbolVisual=!0,ae}return oe.prototype.getInitialData=function(ae){return createSeriesData(null,this,{useEncodeDefaulter:!0})},oe.prototype.getLegendIcon=function(ae){var ie=new Group$3,le=createSymbol("line",0,ae.itemHeight/2,ae.itemWidth,0,ae.lineStyle.stroke,!1);ie.add(le),le.setStyle(ae.lineStyle);var pe=this.getData().getVisual("symbol"),_e=this.getData().getVisual("symbolRotate"),Ce=pe==="none"?"circle":pe,$e=ae.itemHeight*.8,xe=createSymbol(Ce,(ae.itemWidth-$e)/2,(ae.itemHeight-$e)/2,$e,$e,ae.itemStyle.fill);ie.add(xe),xe.setStyle(ae.itemStyle);var Ie=ae.iconRotate==="inherit"?_e:ae.iconRotate||0;return xe.rotation=Ie*Math.PI/180,xe.setOrigin([ae.itemWidth/2,ae.itemHeight/2]),Ce.indexOf("empty")>-1&&(xe.style.stroke=xe.style.fill,xe.style.fill="#fff",xe.style.lineWidth=2),ie},oe.type="series.line",oe.dependencies=["grid","polar"],oe.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},oe}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel($,oe){var ae=$.mapDimensionsAll("defaultedLabel"),ie=ae.length;if(ie===1){var le=retrieveRawValue($,oe,ae[0]);return le!=null?le+"":null}else if(ie){for(var pe=[],_e=0;_e<ae.length;_e++)pe.push(retrieveRawValue($,oe,ae[_e]));return pe.join(" ")}}function getDefaultInterpolatedLabel($,oe){var ae=$.mapDimensionsAll("defaultedLabel");if(!isArray$1(oe))return oe+"";for(var ie=[],le=0;le<ae.length;le++){var pe=$.getDimensionIndex(ae[le]);pe>=0&&ie.push(oe[pe])}return ie.join(" ")}var Symbol$1=function($){__extends(oe,$);function oe(ae,ie,le,pe){var _e=$.call(this)||this;return _e.updateData(ae,ie,le,pe),_e}return oe.prototype._createSymbol=function(ae,ie,le,pe,_e){this.removeAll();var Ce=createSymbol(ae,-1,-1,2,2,null,_e);Ce.attr({z2:100,culling:!0,scaleX:pe[0]/2,scaleY:pe[1]/2}),Ce.drift=driftSymbol,this._symbolType=ae,this.add(Ce)},oe.prototype.stopSymbolAnimation=function(ae){this.childAt(0).stopAnimation(null,ae)},oe.prototype.getSymbolType=function(){return this._symbolType},oe.prototype.getSymbolPath=function(){return this.childAt(0)},oe.prototype.highlight=function(){enterEmphasis(this.childAt(0))},oe.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},oe.prototype.setZ=function(ae,ie){var le=this.childAt(0);le.zlevel=ae,le.z=ie},oe.prototype.setDraggable=function(ae,ie){var le=this.childAt(0);le.draggable=ae,le.cursor=!ie&&ae?"move":le.cursor},oe.prototype.updateData=function(ae,ie,le,pe){this.silent=!1;var _e=ae.getItemVisual(ie,"symbol")||"circle",Ce=ae.hostModel,$e=oe.getSymbolSize(ae,ie),xe=_e!==this._symbolType,Ie=pe&&pe.disableAnimation;if(xe){var Ne=ae.getItemVisual(ie,"symbolKeepAspect");this._createSymbol(_e,ae,ie,$e,Ne)}else{var Fe=this.childAt(0);Fe.silent=!1;var ze={scaleX:$e[0]/2,scaleY:$e[1]/2};Ie?Fe.attr(ze):updateProps$1(Fe,ze,Ce,ie),saveOldStyle(Fe)}if(this._updateCommon(ae,ie,$e,le,pe),xe){var Fe=this.childAt(0);if(!Ie){var ze={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:Fe.style.opacity}};Fe.scaleX=Fe.scaleY=0,Fe.style.opacity=0,initProps(Fe,ze,Ce,ie)}}Ie&&this.childAt(0).stopAnimation("leave")},oe.prototype._updateCommon=function(ae,ie,le,pe,_e){var Ce=this.childAt(0),$e=ae.hostModel,xe,Ie,Ne,Fe,ze,At,Lt,hn,vn;if(pe&&(xe=pe.emphasisItemStyle,Ie=pe.blurItemStyle,Ne=pe.selectItemStyle,Fe=pe.focus,ze=pe.blurScope,Lt=pe.labelStatesModels,hn=pe.hoverScale,vn=pe.cursorStyle,At=pe.emphasisDisabled),!pe||ae.hasItemOption){var _n=pe&&pe.itemModel?pe.itemModel:ae.getItemModel(ie),bn=_n.getModel("emphasis");xe=bn.getModel("itemStyle").getItemStyle(),Ne=_n.getModel(["select","itemStyle"]).getItemStyle(),Ie=_n.getModel(["blur","itemStyle"]).getItemStyle(),Fe=bn.get("focus"),ze=bn.get("blurScope"),At=bn.get("disabled"),Lt=getLabelStatesModels(_n),hn=bn.getShallow("scale"),vn=_n.getShallow("cursor")}var Cn=ae.getItemVisual(ie,"symbolRotate");Ce.attr("rotation",(Cn||0)*Math.PI/180||0);var En=normalizeSymbolOffset(ae.getItemVisual(ie,"symbolOffset"),le);En&&(Ce.x=En[0],Ce.y=En[1]),vn&&Ce.attr("cursor",vn);var $n=ae.getItemVisual(ie,"style"),wn=$n.fill;if(Ce instanceof ZRImage$1){var Tn=Ce.style;Ce.useStyle(extend({image:Tn.image,x:Tn.x,y:Tn.y,width:Tn.width,height:Tn.height},$n))}else Ce.__isEmptyBrush?Ce.useStyle(extend({},$n)):Ce.useStyle($n),Ce.style.decal=null,Ce.setColor(wn,_e&&_e.symbolInnerColor),Ce.style.strokeNoScale=!0;var xn=ae.getItemVisual(ie,"liftZ"),kn=this._z2;xn!=null?kn==null&&(this._z2=Ce.z2,Ce.z2+=xn):kn!=null&&(Ce.z2=kn,this._z2=null);var An=_e&&_e.useNameLabel;setLabelStyle(Ce,Lt,{labelFetcher:$e,labelDataIndex:ie,defaultText:On,inheritColor:wn,defaultOpacity:$n.opacity});function On(zn){return An?ae.getName(zn):getDefaultLabel(ae,zn)}this._sizeX=le[0]/2,this._sizeY=le[1]/2;var Nn=Ce.ensureState("emphasis");Nn.style=xe,Ce.ensureState("select").style=Ne,Ce.ensureState("blur").style=Ie;var Rn=hn==null||hn===!0?Math.max(1.1,3/this._sizeY):isFinite(hn)&&hn>0?+hn:1;Nn.scaleX=this._sizeX*Rn,Nn.scaleY=this._sizeY*Rn,this.setSymbolScale(1),toggleHoverEmphasis(this,Fe,ze,At)},oe.prototype.setSymbolScale=function(ae){this.scaleX=this.scaleY=ae},oe.prototype.fadeOut=function(ae,ie,le){var pe=this.childAt(0),_e=getECData(this).dataIndex,Ce=le&&le.animation;if(this.silent=pe.silent=!0,le&&le.fadeLabel){var $e=pe.getTextContent();$e&&removeElement($e,{style:{opacity:0}},ie,{dataIndex:_e,removeOpt:Ce,cb:function(){pe.removeTextContent()}})}else pe.removeTextContent();removeElement(pe,{style:{opacity:0},scaleX:0,scaleY:0},ie,{dataIndex:_e,cb:ae,removeOpt:Ce})},oe.getSymbolSize=function(ae,ie){return normalizeSymbolSize(ae.getItemVisual(ie,"symbolSize"))},oe}(Group$3);function driftSymbol($,oe){this.parent.drift($,oe)}const SymbolClz=Symbol$1;function symbolNeedsDraw($,oe,ae,ie){return oe&&!isNaN(oe[0])&&!isNaN(oe[1])&&!(ie.isIgnore&&ie.isIgnore(ae))&&!(ie.clipShape&&!ie.clipShape.contain(oe[0],oe[1]))&&$.getItemVisual(ae,"symbol")!=="none"}function normalizeUpdateOpt($){return $!=null&&!isObject$3($)&&($={isIgnore:$}),$||{}}function makeSeriesScope($){var oe=$.hostModel,ae=oe.getModel("emphasis");return{emphasisItemStyle:ae.getModel("itemStyle").getItemStyle(),blurItemStyle:oe.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:oe.getModel(["select","itemStyle"]).getItemStyle(),focus:ae.get("focus"),blurScope:ae.get("blurScope"),emphasisDisabled:ae.get("disabled"),hoverScale:ae.get("scale"),labelStatesModels:getLabelStatesModels(oe),cursorStyle:oe.get("cursor")}}var SymbolDraw=function(){function $(oe){this.group=new Group$3,this._SymbolCtor=oe||SymbolClz}return $.prototype.updateData=function(oe,ae){this._progressiveEls=null,ae=normalizeUpdateOpt(ae);var ie=this.group,le=oe.hostModel,pe=this._data,_e=this._SymbolCtor,Ce=ae.disableAnimation,$e=makeSeriesScope(oe),xe={disableAnimation:Ce},Ie=ae.getSymbolPoint||function(Ne){return oe.getItemLayout(Ne)};pe||ie.removeAll(),oe.diff(pe).add(function(Ne){var Fe=Ie(Ne);if(symbolNeedsDraw(oe,Fe,Ne,ae)){var ze=new _e(oe,Ne,$e,xe);ze.setPosition(Fe),oe.setItemGraphicEl(Ne,ze),ie.add(ze)}}).update(function(Ne,Fe){var ze=pe.getItemGraphicEl(Fe),At=Ie(Ne);if(!symbolNeedsDraw(oe,At,Ne,ae)){ie.remove(ze);return}var Lt=oe.getItemVisual(Ne,"symbol")||"circle",hn=ze&&ze.getSymbolType&&ze.getSymbolType();if(!ze||hn&&hn!==Lt)ie.remove(ze),ze=new _e(oe,Ne,$e,xe),ze.setPosition(At);else{ze.updateData(oe,Ne,$e,xe);var vn={x:At[0],y:At[1]};Ce?ze.attr(vn):updateProps$1(ze,vn,le)}ie.add(ze),oe.setItemGraphicEl(Ne,ze)}).remove(function(Ne){var Fe=pe.getItemGraphicEl(Ne);Fe&&Fe.fadeOut(function(){ie.remove(Fe)},le)}).execute(),this._getSymbolPoint=Ie,this._data=oe},$.prototype.updateLayout=function(){var oe=this,ae=this._data;ae&&ae.eachItemGraphicEl(function(ie,le){var pe=oe._getSymbolPoint(le);ie.setPosition(pe),ie.markRedraw()})},$.prototype.incrementalPrepareUpdate=function(oe){this._seriesScope=makeSeriesScope(oe),this._data=null,this.group.removeAll()},$.prototype.incrementalUpdate=function(oe,ae,ie){this._progressiveEls=[],ie=normalizeUpdateOpt(ie);function le($e){$e.isGroup||($e.incremental=!0,$e.ensureState("emphasis").hoverLayer=!0)}for(var pe=oe.start;pe<oe.end;pe++){var _e=ae.getItemLayout(pe);if(symbolNeedsDraw(ae,_e,pe,ie)){var Ce=new this._SymbolCtor(ae,pe,this._seriesScope);Ce.traverse(le),Ce.setPosition(_e),this.group.add(Ce),ae.setItemGraphicEl(pe,Ce),this._progressiveEls.push(Ce)}}},$.prototype.eachRendered=function(oe){traverseElements(this._progressiveEls||this.group,oe)},$.prototype.remove=function(oe){var ae=this.group,ie=this._data;ie&&oe?ie.eachItemGraphicEl(function(le){le.fadeOut(function(){ae.remove(le)},ie.hostModel)}):ae.removeAll()},$}();const SymbolDraw$1=SymbolDraw;function prepareDataCoordInfo($,oe,ae){var ie=$.getBaseAxis(),le=$.getOtherAxis(ie),pe=getValueStart(le,ae),_e=ie.dim,Ce=le.dim,$e=oe.mapDimension(Ce),xe=oe.mapDimension(_e),Ie=Ce==="x"||Ce==="radius"?1:0,Ne=map$2($.dimensions,function(At){return oe.mapDimension(At)}),Fe=!1,ze=oe.getCalculationInfo("stackResultDimension");return isDimensionStacked(oe,Ne[0])&&(Fe=!0,Ne[0]=ze),isDimensionStacked(oe,Ne[1])&&(Fe=!0,Ne[1]=ze),{dataDimsForPoint:Ne,valueStart:pe,valueAxisDim:Ce,baseAxisDim:_e,stacked:!!Fe,valueDim:$e,baseDim:xe,baseDataOffset:Ie,stackedOverDimension:oe.getCalculationInfo("stackedOverDimension")}}function getValueStart($,oe){var ae=0,ie=$.scale.getExtent();return oe==="start"?ae=ie[0]:oe==="end"?ae=ie[1]:isNumber(oe)&&!isNaN(oe)?ae=oe:ie[0]>0?ae=ie[0]:ie[1]<0&&(ae=ie[1]),ae}function getStackedOnPoint($,oe,ae,ie){var le=NaN;$.stacked&&(le=ae.get(ae.getCalculationInfo("stackedOverDimension"),ie)),isNaN(le)&&(le=$.valueStart);var pe=$.baseDataOffset,_e=[];return _e[pe]=ae.get($.baseDim,ie),_e[1-pe]=le,oe.dataToPoint(_e)}function diffData($,oe){var ae=[];return oe.diff($).add(function(ie){ae.push({cmd:"+",idx:ie})}).update(function(ie,le){ae.push({cmd:"=",idx:le,idx1:ie})}).remove(function(ie){ae.push({cmd:"-",idx:ie})}).execute(),ae}function lineAnimationDiff($,oe,ae,ie,le,pe,_e,Ce){for(var $e=diffData($,oe),xe=[],Ie=[],Ne=[],Fe=[],ze=[],At=[],Lt=[],hn=prepareDataCoordInfo(le,oe,_e),vn=$.getLayout("points")||[],_n=oe.getLayout("points")||[],bn=0;bn<$e.length;bn++){var Cn=$e[bn],En=!0,$n=void 0,wn=void 0;switch(Cn.cmd){case"=":$n=Cn.idx*2,wn=Cn.idx1*2;var Tn=vn[$n],xn=vn[$n+1],kn=_n[wn],An=_n[wn+1];(isNaN(Tn)||isNaN(xn))&&(Tn=kn,xn=An),xe.push(Tn,xn),Ie.push(kn,An),Ne.push(ae[$n],ae[$n+1]),Fe.push(ie[wn],ie[wn+1]),Lt.push(oe.getRawIndex(Cn.idx1));break;case"+":var On=Cn.idx,Nn=hn.dataDimsForPoint,Rn=le.dataToPoint([oe.get(Nn[0],On),oe.get(Nn[1],On)]);wn=On*2,xe.push(Rn[0],Rn[1]),Ie.push(_n[wn],_n[wn+1]);var zn=getStackedOnPoint(hn,le,oe,On);Ne.push(zn[0],zn[1]),Fe.push(ie[wn],ie[wn+1]),Lt.push(oe.getRawIndex(On));break;case"-":En=!1}En&&(ze.push(Cn),At.push(At.length))}At.sort(function(nr,er){return Lt[nr]-Lt[er]});for(var Bn=xe.length,Mn=createFloat32Array(Bn),Fn=createFloat32Array(Bn),Vn=createFloat32Array(Bn),jn=createFloat32Array(Bn),Zn=[],bn=0;bn<At.length;bn++){var Gn=At[bn],Xn=bn*2,cr=Gn*2;Mn[Xn]=xe[cr],Mn[Xn+1]=xe[cr+1],Fn[Xn]=Ie[cr],Fn[Xn+1]=Ie[cr+1],Vn[Xn]=Ne[cr],Vn[Xn+1]=Ne[cr+1],jn[Xn]=Fe[cr],jn[Xn+1]=Fe[cr+1],Zn[bn]=ze[Gn]}return{current:Mn,next:Fn,stackedOnCurrent:Vn,stackedOnNext:jn,status:Zn}}var mathMin$3=Math.min,mathMax$3=Math.max;function isPointNull$1($,oe){return isNaN($)||isNaN(oe)}function drawSegment($,oe,ae,ie,le,pe,_e,Ce,$e){for(var xe,Ie,Ne,Fe,ze,At,Lt=ae,hn=0;hn<ie;hn++){var vn=oe[Lt*2],_n=oe[Lt*2+1];if(Lt>=le||Lt<0)break;if(isPointNull$1(vn,_n)){if($e){Lt+=pe;continue}break}if(Lt===ae)$[pe>0?"moveTo":"lineTo"](vn,_n),Ne=vn,Fe=_n;else{var bn=vn-xe,Cn=_n-Ie;if(bn*bn+Cn*Cn<.5){Lt+=pe;continue}if(_e>0){for(var En=Lt+pe,$n=oe[En*2],wn=oe[En*2+1];$n===vn&&wn===_n&&hn<ie;)hn++,En+=pe,Lt+=pe,$n=oe[En*2],wn=oe[En*2+1],vn=oe[Lt*2],_n=oe[Lt*2+1],bn=vn-xe,Cn=_n-Ie;var Tn=hn+1;if($e)for(;isPointNull$1($n,wn)&&Tn<ie;)Tn++,En+=pe,$n=oe[En*2],wn=oe[En*2+1];var xn=.5,kn=0,An=0,On=void 0,Nn=void 0;if(Tn>=ie||isPointNull$1($n,wn))ze=vn,At=_n;else{kn=$n-xe,An=wn-Ie;var Rn=vn-xe,zn=$n-vn,Bn=_n-Ie,Mn=wn-_n,Fn=void 0,Vn=void 0;if(Ce==="x"){Fn=Math.abs(Rn),Vn=Math.abs(zn);var jn=kn>0?1:-1;ze=vn-jn*Fn*_e,At=_n,On=vn+jn*Vn*_e,Nn=_n}else if(Ce==="y"){Fn=Math.abs(Bn),Vn=Math.abs(Mn);var Zn=An>0?1:-1;ze=vn,At=_n-Zn*Fn*_e,On=vn,Nn=_n+Zn*Vn*_e}else Fn=Math.sqrt(Rn*Rn+Bn*Bn),Vn=Math.sqrt(zn*zn+Mn*Mn),xn=Vn/(Vn+Fn),ze=vn-kn*_e*(1-xn),At=_n-An*_e*(1-xn),On=vn+kn*_e*xn,Nn=_n+An*_e*xn,On=mathMin$3(On,mathMax$3($n,vn)),Nn=mathMin$3(Nn,mathMax$3(wn,_n)),On=mathMax$3(On,mathMin$3($n,vn)),Nn=mathMax$3(Nn,mathMin$3(wn,_n)),kn=On-vn,An=Nn-_n,ze=vn-kn*Fn/Vn,At=_n-An*Fn/Vn,ze=mathMin$3(ze,mathMax$3(xe,vn)),At=mathMin$3(At,mathMax$3(Ie,_n)),ze=mathMax$3(ze,mathMin$3(xe,vn)),At=mathMax$3(At,mathMin$3(Ie,_n)),kn=vn-ze,An=_n-At,On=vn+kn*Vn/Fn,Nn=_n+An*Vn/Fn}$.bezierCurveTo(Ne,Fe,ze,At,vn,_n),Ne=On,Fe=Nn}else $.lineTo(vn,_n)}xe=vn,Ie=_n,Lt+=pe}return hn}var ECPolylineShape=function(){function $(){this.smooth=0,this.smoothConstraint=!0}return $}(),ECPolyline=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="ec-polyline",ie}return oe.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},oe.prototype.getDefaultShape=function(){return new ECPolylineShape},oe.prototype.buildPath=function(ae,ie){var le=ie.points,pe=0,_e=le.length/2;if(ie.connectNulls){for(;_e>0&&isPointNull$1(le[_e*2-2],le[_e*2-1]);_e--);for(;pe<_e&&isPointNull$1(le[pe*2],le[pe*2+1]);pe++);}for(;pe<_e;)pe+=drawSegment(ae,le,pe,_e,_e,1,ie.smooth,ie.smoothMonotone,ie.connectNulls)+1},oe.prototype.getPointOn=function(ae,ie){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var le=this.path,pe=le.data,_e=PathProxy$1.CMD,Ce,$e,xe=ie==="x",Ie=[],Ne=0;Ne<pe.length;){var Fe=pe[Ne++],ze=void 0,At=void 0,Lt=void 0,hn=void 0,vn=void 0,_n=void 0,bn=void 0;switch(Fe){case _e.M:Ce=pe[Ne++],$e=pe[Ne++];break;case _e.L:if(ze=pe[Ne++],At=pe[Ne++],bn=xe?(ae-Ce)/(ze-Ce):(ae-$e)/(At-$e),bn<=1&&bn>=0){var Cn=xe?(At-$e)*bn+$e:(ze-Ce)*bn+Ce;return xe?[ae,Cn]:[Cn,ae]}Ce=ze,$e=At;break;case _e.C:ze=pe[Ne++],At=pe[Ne++],Lt=pe[Ne++],hn=pe[Ne++],vn=pe[Ne++],_n=pe[Ne++];var En=xe?cubicRootAt(Ce,ze,Lt,vn,ae,Ie):cubicRootAt($e,At,hn,_n,ae,Ie);if(En>0)for(var $n=0;$n<En;$n++){var wn=Ie[$n];if(wn<=1&&wn>=0){var Cn=xe?cubicAt($e,At,hn,_n,wn):cubicAt(Ce,ze,Lt,vn,wn);return xe?[ae,Cn]:[Cn,ae]}}Ce=vn,$e=_n;break}}},oe}(Path$1),ECPolygonShape=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe}(ECPolylineShape),ECPolygon=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="ec-polygon",ie}return oe.prototype.getDefaultShape=function(){return new ECPolygonShape},oe.prototype.buildPath=function(ae,ie){var le=ie.points,pe=ie.stackedOnPoints,_e=0,Ce=le.length/2,$e=ie.smoothMonotone;if(ie.connectNulls){for(;Ce>0&&isPointNull$1(le[Ce*2-2],le[Ce*2-1]);Ce--);for(;_e<Ce&&isPointNull$1(le[_e*2],le[_e*2+1]);_e++);}for(;_e<Ce;){var xe=drawSegment(ae,le,_e,Ce,Ce,1,ie.smooth,$e,ie.connectNulls);drawSegment(ae,pe,_e+xe-1,xe,Ce,-1,ie.stackedOnSmooth,$e,ie.connectNulls),_e+=xe+1,ae.closePath()}},oe}(Path$1);function createGridClipPath($,oe,ae,ie,le){var pe=$.getArea(),_e=pe.x,Ce=pe.y,$e=pe.width,xe=pe.height,Ie=ae.get(["lineStyle","width"])||2;_e-=Ie/2,Ce-=Ie/2,$e+=Ie,xe+=Ie,_e=Math.floor(_e),$e=Math.round($e);var Ne=new Rect$2({shape:{x:_e,y:Ce,width:$e,height:xe}});if(oe){var Fe=$.getBaseAxis(),ze=Fe.isHorizontal(),At=Fe.inverse;ze?(At&&(Ne.shape.x+=$e),Ne.shape.width=0):(At||(Ne.shape.y+=xe),Ne.shape.height=0);var Lt=isFunction(le)?function(hn){le(hn,Ne)}:null;initProps(Ne,{shape:{width:$e,height:xe,x:_e,y:Ce}},ae,null,ie,Lt)}return Ne}function createPolarClipPath($,oe,ae){var ie=$.getArea(),le=round$1(ie.r0,1),pe=round$1(ie.r,1),_e=new Sector$1({shape:{cx:round$1($.cx,1),cy:round$1($.cy,1),r0:le,r:pe,startAngle:ie.startAngle,endAngle:ie.endAngle,clockwise:ie.clockwise}});if(oe){var Ce=$.getBaseAxis().dim==="angle";Ce?_e.shape.endAngle=ie.startAngle:_e.shape.r=le,initProps(_e,{shape:{endAngle:ie.endAngle,r:pe}},ae)}return _e}function createClipPath($,oe,ae,ie,le){if($){if($.type==="polar")return createPolarClipPath($,oe,ae);if($.type==="cartesian2d")return createGridClipPath($,oe,ae,ie,le)}else return null;return null}function isCoordinateSystemType($,oe){return $.type===oe}function isPointsSame($,oe){if($.length===oe.length){for(var ae=0;ae<$.length;ae++)if($[ae]!==oe[ae])return;return!0}}function bboxFromPoints($){for(var oe=1/0,ae=1/0,ie=-1/0,le=-1/0,pe=0;pe<$.length;){var _e=$[pe++],Ce=$[pe++];isNaN(_e)||(oe=Math.min(_e,oe),ie=Math.max(_e,ie)),isNaN(Ce)||(ae=Math.min(Ce,ae),le=Math.max(Ce,le))}return[[oe,ae],[ie,le]]}function getBoundingDiff($,oe){var ae=bboxFromPoints($),ie=ae[0],le=ae[1],pe=bboxFromPoints(oe),_e=pe[0],Ce=pe[1];return Math.max(Math.abs(ie[0]-_e[0]),Math.abs(ie[1]-_e[1]),Math.abs(le[0]-Ce[0]),Math.abs(le[1]-Ce[1]))}function getSmooth($){return isNumber($)?$:$?.5:0}function getStackedOnPoints($,oe,ae){if(!ae.valueDim)return[];for(var ie=oe.count(),le=createFloat32Array(ie*2),pe=0;pe<ie;pe++){var _e=getStackedOnPoint(ae,$,oe,pe);le[pe*2]=_e[0],le[pe*2+1]=_e[1]}return le}function turnPointsIntoStep($,oe,ae,ie){var le=oe.getBaseAxis(),pe=le.dim==="x"||le.dim==="radius"?0:1,_e=[],Ce=0,$e=[],xe=[],Ie=[],Ne=[];if(ie){for(Ce=0;Ce<$.length;Ce+=2)!isNaN($[Ce])&&!isNaN($[Ce+1])&&Ne.push($[Ce],$[Ce+1]);$=Ne}for(Ce=0;Ce<$.length-2;Ce+=2)switch(Ie[0]=$[Ce+2],Ie[1]=$[Ce+3],xe[0]=$[Ce],xe[1]=$[Ce+1],_e.push(xe[0],xe[1]),ae){case"end":$e[pe]=Ie[pe],$e[1-pe]=xe[1-pe],_e.push($e[0],$e[1]);break;case"middle":var Fe=(xe[pe]+Ie[pe])/2,ze=[];$e[pe]=ze[pe]=Fe,$e[1-pe]=xe[1-pe],ze[1-pe]=Ie[1-pe],_e.push($e[0],$e[1]),_e.push(ze[0],ze[1]);break;default:$e[pe]=xe[pe],$e[1-pe]=Ie[1-pe],_e.push($e[0],$e[1])}return _e.push($[Ce++],$[Ce++]),_e}function clipColorStops($,oe){var ae=[],ie=$.length,le,pe;function _e(Ie,Ne,Fe){var ze=Ie.coord,At=(Fe-ze)/(Ne.coord-ze),Lt=lerp(At,[Ie.color,Ne.color]);return{coord:Fe,color:Lt}}for(var Ce=0;Ce<ie;Ce++){var $e=$[Ce],xe=$e.coord;if(xe<0)le=$e;else if(xe>oe){pe?ae.push(_e(pe,$e,oe)):le&&ae.push(_e(le,$e,0),_e(le,$e,oe));break}else le&&(ae.push(_e(le,$e,0)),le=null),ae.push($e),pe=$e}return ae}function getVisualGradient($,oe,ae){var ie=$.getVisual("visualMeta");if(!(!ie||!ie.length||!$.count())&&oe.type==="cartesian2d"){for(var le,pe,_e=ie.length-1;_e>=0;_e--){var Ce=$.getDimensionInfo(ie[_e].dimension);if(le=Ce&&Ce.coordDim,le==="x"||le==="y"){pe=ie[_e];break}}if(pe){var $e=oe.getAxis(le),xe=map$2(pe.stops,function(bn){return{coord:$e.toGlobalCoord($e.dataToCoord(bn.value)),color:bn.color}}),Ie=xe.length,Ne=pe.outerColors.slice();Ie&&xe[0].coord>xe[Ie-1].coord&&(xe.reverse(),Ne.reverse());var Fe=clipColorStops(xe,le==="x"?ae.getWidth():ae.getHeight()),ze=Fe.length;if(!ze&&Ie)return xe[0].coord<0?Ne[1]?Ne[1]:xe[Ie-1].color:Ne[0]?Ne[0]:xe[0].color;var At=10,Lt=Fe[0].coord-At,hn=Fe[ze-1].coord+At,vn=hn-Lt;if(vn<.001)return"transparent";each$c(Fe,function(bn){bn.offset=(bn.coord-Lt)/vn}),Fe.push({offset:ze?Fe[ze-1].offset:.5,color:Ne[1]||"transparent"}),Fe.unshift({offset:ze?Fe[0].offset:.5,color:Ne[0]||"transparent"});var _n=new LinearGradient$1(0,0,0,0,Fe,!0);return _n[le]=Lt,_n[le+"2"]=hn,_n}}}function getIsIgnoreFunc($,oe,ae){var ie=$.get("showAllSymbol"),le=ie==="auto";if(!(ie&&!le)){var pe=ae.getAxesByScale("ordinal")[0];if(pe&&!(le&&canShowAllSymbolForCategory(pe,oe))){var _e=oe.mapDimension(pe.dim),Ce={};return each$c(pe.getViewLabels(),function($e){var xe=pe.scale.getRawOrdinalNumber($e.tickValue);Ce[xe]=1}),function($e){return!Ce.hasOwnProperty(oe.get(_e,$e))}}}}function canShowAllSymbolForCategory($,oe){var ae=$.getExtent(),ie=Math.abs(ae[1]-ae[0])/$.scale.count();isNaN(ie)&&(ie=0);for(var le=oe.count(),pe=Math.max(1,Math.round(le/5)),_e=0;_e<le;_e+=pe)if(SymbolClz.getSymbolSize(oe,_e)[$.isHorizontal()?1:0]*1.5>ie)return!1;return!0}function isPointNull($,oe){return isNaN($)||isNaN(oe)}function getLastIndexNotNull($){for(var oe=$.length/2;oe>0&&isPointNull($[oe*2-2],$[oe*2-1]);oe--);return oe-1}function getPointAtIndex($,oe){return[$[oe*2],$[oe*2+1]]}function getIndexRange($,oe,ae){for(var ie=$.length/2,le=ae==="x"?0:1,pe,_e,Ce=0,$e=-1,xe=0;xe<ie;xe++)if(_e=$[xe*2+le],!(isNaN(_e)||isNaN($[xe*2+1-le]))){if(xe===0){pe=_e;continue}if(pe<=oe&&_e>=oe||pe>=oe&&_e<=oe){$e=xe;break}Ce=xe,pe=_e}return{range:[Ce,$e],t:(oe-pe)/(_e-pe)}}function anyStateShowEndLabel($){if($.get(["endLabel","show"]))return!0;for(var oe=0;oe<SPECIAL_STATES.length;oe++)if($.get([SPECIAL_STATES[oe],"endLabel","show"]))return!0;return!1}function createLineClipPath($,oe,ae,ie){if(isCoordinateSystemType(oe,"cartesian2d")){var le=ie.getModel("endLabel"),pe=le.get("valueAnimation"),_e=ie.getData(),Ce={lastFrameIndex:0},$e=anyStateShowEndLabel(ie)?function(ze,At){$._endLabelOnDuring(ze,At,_e,Ce,pe,le,oe)}:null,xe=oe.getBaseAxis().isHorizontal(),Ie=createGridClipPath(oe,ae,ie,function(){var ze=$._endLabel;ze&&ae&&Ce.originalX!=null&&ze.attr({x:Ce.originalX,y:Ce.originalY})},$e);if(!ie.get("clip",!0)){var Ne=Ie.shape,Fe=Math.max(Ne.width,Ne.height);xe?(Ne.y-=Fe,Ne.height+=Fe*2):(Ne.x-=Fe,Ne.width+=Fe*2)}return $e&&$e(1,Ie),Ie}else return createPolarClipPath(oe,ae,ie)}function getEndLabelStateSpecified($,oe){var ae=oe.getBaseAxis(),ie=ae.isHorizontal(),le=ae.inverse,pe=ie?le?"right":"left":"center",_e=ie?"middle":le?"top":"bottom";return{normal:{align:$.get("align")||pe,verticalAlign:$.get("verticalAlign")||_e}}}var LineView=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.init=function(){var ae=new Group$3,ie=new SymbolDraw$1;this.group.add(ie.group),this._symbolDraw=ie,this._lineGroup=ae},oe.prototype.render=function(ae,ie,le){var pe=this,_e=ae.coordinateSystem,Ce=this.group,$e=ae.getData(),xe=ae.getModel("lineStyle"),Ie=ae.getModel("areaStyle"),Ne=$e.getLayout("points")||[],Fe=_e.type==="polar",ze=this._coordSys,At=this._symbolDraw,Lt=this._polyline,hn=this._polygon,vn=this._lineGroup,_n=!ie.ssr&&ae.isAnimationEnabled(),bn=!Ie.isEmpty(),Cn=Ie.get("origin"),En=prepareDataCoordInfo(_e,$e,Cn),$n=bn&&getStackedOnPoints(_e,$e,En),wn=ae.get("showSymbol"),Tn=ae.get("connectNulls"),xn=wn&&!Fe&&getIsIgnoreFunc(ae,$e,_e),kn=this._data;kn&&kn.eachItemGraphicEl(function(er,rr){er.__temp&&(Ce.remove(er),kn.setItemGraphicEl(rr,null))}),wn||At.remove(),Ce.add(vn);var An=Fe?!1:ae.get("step"),On;_e&&_e.getArea&&ae.get("clip",!0)&&(On=_e.getArea(),On.width!=null?(On.x-=.1,On.y-=.1,On.width+=.2,On.height+=.2):On.r0&&(On.r0-=.5,On.r+=.5)),this._clipShapeForSymbol=On;var Nn=getVisualGradient($e,_e,le)||$e.getVisual("style")[$e.getVisual("drawType")];if(!(Lt&&ze.type===_e.type&&An===this._step))wn&&At.updateData($e,{isIgnore:xn,clipShape:On,disableAnimation:!0,getSymbolPoint:function(er){return[Ne[er*2],Ne[er*2+1]]}}),_n&&this._initSymbolLabelAnimation($e,_e,On),An&&(Ne=turnPointsIntoStep(Ne,_e,An,Tn),$n&&($n=turnPointsIntoStep($n,_e,An,Tn))),Lt=this._newPolyline(Ne),bn?hn=this._newPolygon(Ne,$n):hn&&(vn.remove(hn),hn=this._polygon=null),Fe||this._initOrUpdateEndLabel(ae,_e,convertToColorString(Nn)),vn.setClipPath(createLineClipPath(this,_e,!0,ae));else{bn&&!hn?hn=this._newPolygon(Ne,$n):hn&&!bn&&(vn.remove(hn),hn=this._polygon=null),Fe||this._initOrUpdateEndLabel(ae,_e,convertToColorString(Nn));var Rn=vn.getClipPath();if(Rn){var zn=createLineClipPath(this,_e,!1,ae);initProps(Rn,{shape:zn.shape},ae)}else vn.setClipPath(createLineClipPath(this,_e,!0,ae));wn&&At.updateData($e,{isIgnore:xn,clipShape:On,disableAnimation:!0,getSymbolPoint:function(er){return[Ne[er*2],Ne[er*2+1]]}}),(!isPointsSame(this._stackedOnPoints,$n)||!isPointsSame(this._points,Ne))&&(_n?this._doUpdateAnimation($e,$n,_e,le,An,Cn,Tn):(An&&(Ne=turnPointsIntoStep(Ne,_e,An,Tn),$n&&($n=turnPointsIntoStep($n,_e,An,Tn))),Lt.setShape({points:Ne}),hn&&hn.setShape({points:Ne,stackedOnPoints:$n})))}var Bn=ae.getModel("emphasis"),Mn=Bn.get("focus"),Fn=Bn.get("blurScope"),Vn=Bn.get("disabled");if(Lt.useStyle(defaults(xe.getLineStyle(),{fill:"none",stroke:Nn,lineJoin:"bevel"})),setStatesStylesFromModel(Lt,ae,"lineStyle"),Lt.style.lineWidth>0&&ae.get(["emphasis","lineStyle","width"])==="bolder"){var jn=Lt.getState("emphasis").style;jn.lineWidth=+Lt.style.lineWidth+1}getECData(Lt).seriesIndex=ae.seriesIndex,toggleHoverEmphasis(Lt,Mn,Fn,Vn);var Zn=getSmooth(ae.get("smooth")),Gn=ae.get("smoothMonotone");if(Lt.setShape({smooth:Zn,smoothMonotone:Gn,connectNulls:Tn}),hn){var Xn=$e.getCalculationInfo("stackedOnSeries"),cr=0;hn.useStyle(defaults(Ie.getAreaStyle(),{fill:Nn,opacity:.7,lineJoin:"bevel",decal:$e.getVisual("style").decal})),Xn&&(cr=getSmooth(Xn.get("smooth"))),hn.setShape({smooth:Zn,stackedOnSmooth:cr,smoothMonotone:Gn,connectNulls:Tn}),setStatesStylesFromModel(hn,ae,"areaStyle"),getECData(hn).seriesIndex=ae.seriesIndex,toggleHoverEmphasis(hn,Mn,Fn,Vn)}var nr=function(er){pe._changePolyState(er)};$e.eachItemGraphicEl(function(er){er&&(er.onHoverStateChange=nr)}),this._polyline.onHoverStateChange=nr,this._data=$e,this._coordSys=_e,this._stackedOnPoints=$n,this._points=Ne,this._step=An,this._valueOrigin=Cn,ae.get("triggerLineEvent")&&(this.packEventData(ae,Lt),hn&&this.packEventData(ae,hn))},oe.prototype.packEventData=function(ae,ie){getECData(ie).eventData={componentType:"series",componentSubType:"line",componentIndex:ae.componentIndex,seriesIndex:ae.seriesIndex,seriesName:ae.name,seriesType:"line"}},oe.prototype.highlight=function(ae,ie,le,pe){var _e=ae.getData(),Ce=queryDataIndex(_e,pe);if(this._changePolyState("emphasis"),!(Ce instanceof Array)&&Ce!=null&&Ce>=0){var $e=_e.getLayout("points"),xe=_e.getItemGraphicEl(Ce);if(!xe){var Ie=$e[Ce*2],Ne=$e[Ce*2+1];if(isNaN(Ie)||isNaN(Ne)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(Ie,Ne))return;var Fe=ae.get("zlevel")||0,ze=ae.get("z")||0;xe=new SymbolClz(_e,Ce),xe.x=Ie,xe.y=Ne,xe.setZ(Fe,ze);var At=xe.getSymbolPath().getTextContent();At&&(At.zlevel=Fe,At.z=ze,At.z2=this._polyline.z2+1),xe.__temp=!0,_e.setItemGraphicEl(Ce,xe),xe.stopSymbolAnimation(!0),this.group.add(xe)}xe.highlight()}else ChartView$1.prototype.highlight.call(this,ae,ie,le,pe)},oe.prototype.downplay=function(ae,ie,le,pe){var _e=ae.getData(),Ce=queryDataIndex(_e,pe);if(this._changePolyState("normal"),Ce!=null&&Ce>=0){var $e=_e.getItemGraphicEl(Ce);$e&&($e.__temp?(_e.setItemGraphicEl(Ce,null),this.group.remove($e)):$e.downplay())}else ChartView$1.prototype.downplay.call(this,ae,ie,le,pe)},oe.prototype._changePolyState=function(ae){var ie=this._polygon;setStatesFlag(this._polyline,ae),ie&&setStatesFlag(ie,ae)},oe.prototype._newPolyline=function(ae){var ie=this._polyline;return ie&&this._lineGroup.remove(ie),ie=new ECPolyline({shape:{points:ae},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(ie),this._polyline=ie,ie},oe.prototype._newPolygon=function(ae,ie){var le=this._polygon;return le&&this._lineGroup.remove(le),le=new ECPolygon({shape:{points:ae,stackedOnPoints:ie},segmentIgnoreThreshold:2}),this._lineGroup.add(le),this._polygon=le,le},oe.prototype._initSymbolLabelAnimation=function(ae,ie,le){var pe,_e,Ce=ie.getBaseAxis(),$e=Ce.inverse;ie.type==="cartesian2d"?(pe=Ce.isHorizontal(),_e=!1):ie.type==="polar"&&(pe=Ce.dim==="angle",_e=!0);var xe=ae.hostModel,Ie=xe.get("animationDuration");isFunction(Ie)&&(Ie=Ie(null));var Ne=xe.get("animationDelay")||0,Fe=isFunction(Ne)?Ne(null):Ne;ae.eachItemGraphicEl(function(ze,At){var Lt=ze;if(Lt){var hn=[ze.x,ze.y],vn=void 0,_n=void 0,bn=void 0;if(le)if(_e){var Cn=le,En=ie.pointToCoord(hn);pe?(vn=Cn.startAngle,_n=Cn.endAngle,bn=-En[1]/180*Math.PI):(vn=Cn.r0,_n=Cn.r,bn=En[0])}else{var $n=le;pe?(vn=$n.x,_n=$n.x+$n.width,bn=ze.x):(vn=$n.y+$n.height,_n=$n.y,bn=ze.y)}var wn=_n===vn?0:(bn-vn)/(_n-vn);$e&&(wn=1-wn);var Tn=isFunction(Ne)?Ne(At):Ie*wn+Fe,xn=Lt.getSymbolPath(),kn=xn.getTextContent();Lt.attr({scaleX:0,scaleY:0}),Lt.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:Tn}),kn&&kn.animateFrom({style:{opacity:0}},{duration:300,delay:Tn}),xn.disableLabelAnimation=!0}})},oe.prototype._initOrUpdateEndLabel=function(ae,ie,le){var pe=ae.getModel("endLabel");if(anyStateShowEndLabel(ae)){var _e=ae.getData(),Ce=this._polyline,$e=_e.getLayout("points");if(!$e){Ce.removeTextContent(),this._endLabel=null;return}var xe=this._endLabel;xe||(xe=this._endLabel=new ZRText$1({z2:200}),xe.ignoreClip=!0,Ce.setTextContent(this._endLabel),Ce.disableLabelAnimation=!0);var Ie=getLastIndexNotNull($e);Ie>=0&&(setLabelStyle(Ce,getLabelStatesModels(ae,"endLabel"),{inheritColor:le,labelFetcher:ae,labelDataIndex:Ie,defaultText:function(Ne,Fe,ze){return ze!=null?getDefaultInterpolatedLabel(_e,ze):getDefaultLabel(_e,Ne)},enableTextSetter:!0},getEndLabelStateSpecified(pe,ie)),Ce.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},oe.prototype._endLabelOnDuring=function(ae,ie,le,pe,_e,Ce,$e){var xe=this._endLabel,Ie=this._polyline;if(xe){ae<1&&pe.originalX==null&&(pe.originalX=xe.x,pe.originalY=xe.y);var Ne=le.getLayout("points"),Fe=le.hostModel,ze=Fe.get("connectNulls"),At=Ce.get("precision"),Lt=Ce.get("distance")||0,hn=$e.getBaseAxis(),vn=hn.isHorizontal(),_n=hn.inverse,bn=ie.shape,Cn=_n?vn?bn.x:bn.y+bn.height:vn?bn.x+bn.width:bn.y,En=(vn?Lt:0)*(_n?-1:1),$n=(vn?0:-Lt)*(_n?-1:1),wn=vn?"x":"y",Tn=getIndexRange(Ne,Cn,wn),xn=Tn.range,kn=xn[1]-xn[0],An=void 0;if(kn>=1){if(kn>1&&!ze){var On=getPointAtIndex(Ne,xn[0]);xe.attr({x:On[0]+En,y:On[1]+$n}),_e&&(An=Fe.getRawValue(xn[0]))}else{var On=Ie.getPointOn(Cn,wn);On&&xe.attr({x:On[0]+En,y:On[1]+$n});var Nn=Fe.getRawValue(xn[0]),Rn=Fe.getRawValue(xn[1]);_e&&(An=interpolateRawValues(le,At,Nn,Rn,Tn.t))}pe.lastFrameIndex=xn[0]}else{var zn=ae===1||pe.lastFrameIndex>0?xn[0]:0,On=getPointAtIndex(Ne,zn);_e&&(An=Fe.getRawValue(zn)),xe.attr({x:On[0]+En,y:On[1]+$n})}_e&&labelInner(xe).setLabelText(An)}},oe.prototype._doUpdateAnimation=function(ae,ie,le,pe,_e,Ce,$e){var xe=this._polyline,Ie=this._polygon,Ne=ae.hostModel,Fe=lineAnimationDiff(this._data,ae,this._stackedOnPoints,ie,this._coordSys,le,this._valueOrigin),ze=Fe.current,At=Fe.stackedOnCurrent,Lt=Fe.next,hn=Fe.stackedOnNext;if(_e&&(ze=turnPointsIntoStep(Fe.current,le,_e,$e),At=turnPointsIntoStep(Fe.stackedOnCurrent,le,_e,$e),Lt=turnPointsIntoStep(Fe.next,le,_e,$e),hn=turnPointsIntoStep(Fe.stackedOnNext,le,_e,$e)),getBoundingDiff(ze,Lt)>3e3||Ie&&getBoundingDiff(At,hn)>3e3){xe.stopAnimation(),xe.setShape({points:Lt}),Ie&&(Ie.stopAnimation(),Ie.setShape({points:Lt,stackedOnPoints:hn}));return}xe.shape.__points=Fe.current,xe.shape.points=ze;var vn={shape:{points:Lt}};Fe.current!==ze&&(vn.shape.__points=Fe.next),xe.stopAnimation(),updateProps$1(xe,vn,Ne),Ie&&(Ie.setShape({points:ze,stackedOnPoints:At}),Ie.stopAnimation(),updateProps$1(Ie,{shape:{stackedOnPoints:hn}},Ne),xe.shape.points!==Ie.shape.points&&(Ie.shape.points=xe.shape.points));for(var _n=[],bn=Fe.status,Cn=0;Cn<bn.length;Cn++){var En=bn[Cn].cmd;if(En==="="){var $n=ae.getItemGraphicEl(bn[Cn].idx1);$n&&_n.push({el:$n,ptIdx:Cn})}}xe.animators&&xe.animators.length&&xe.animators[0].during(function(){Ie&&Ie.dirtyShape();for(var wn=xe.shape.__points,Tn=0;Tn<_n.length;Tn++){var xn=_n[Tn].el,kn=_n[Tn].ptIdx*2;xn.x=wn[kn],xn.y=wn[kn+1],xn.markRedraw()}})},oe.prototype.remove=function(ae){var ie=this.group,le=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),le&&le.eachItemGraphicEl(function(pe,_e){pe.__temp&&(ie.remove(pe),le.setItemGraphicEl(_e,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},oe.type="line",oe}(ChartView$1);const LineView$1=LineView;function pointsLayout($,oe){return{seriesType:$,plan:createRenderPlanner(),reset:function(ae){var ie=ae.getData(),le=ae.coordinateSystem,pe=ae.pipelineContext,_e=oe||pe.large;if(le){var Ce=map$2(le.dimensions,function(ze){return ie.mapDimension(ze)}).slice(0,2),$e=Ce.length,xe=ie.getCalculationInfo("stackResultDimension");isDimensionStacked(ie,Ce[0])&&(Ce[0]=xe),isDimensionStacked(ie,Ce[1])&&(Ce[1]=xe);var Ie=ie.getStore(),Ne=ie.getDimensionIndex(Ce[0]),Fe=ie.getDimensionIndex(Ce[1]);return $e&&{progress:function(ze,At){for(var Lt=ze.end-ze.start,hn=_e&&createFloat32Array(Lt*$e),vn=[],_n=[],bn=ze.start,Cn=0;bn<ze.end;bn++){var En=void 0;if($e===1){var $n=Ie.get(Ne,bn);En=le.dataToPoint($n,null,_n)}else vn[0]=Ie.get(Ne,bn),vn[1]=Ie.get(Fe,bn),En=le.dataToPoint(vn,null,_n);_e?(hn[Cn++]=En[0],hn[Cn++]=En[1]):At.setItemLayout(bn,En.slice())}_e&&At.setLayout("points",hn)}}}}}}var samplers={average:function($){for(var oe=0,ae=0,ie=0;ie<$.length;ie++)isNaN($[ie])||(oe+=$[ie],ae++);return ae===0?NaN:oe/ae},sum:function($){for(var oe=0,ae=0;ae<$.length;ae++)oe+=$[ae]||0;return oe},max:function($){for(var oe=-1/0,ae=0;ae<$.length;ae++)$[ae]>oe&&(oe=$[ae]);return isFinite(oe)?oe:NaN},min:function($){for(var oe=1/0,ae=0;ae<$.length;ae++)$[ae]<oe&&(oe=$[ae]);return isFinite(oe)?oe:NaN},nearest:function($){return $[0]}},indexSampler=function($){return Math.round($.length/2)};function dataSample($){return{seriesType:$,reset:function(oe,ae,ie){var le=oe.getData(),pe=oe.get("sampling"),_e=oe.coordinateSystem,Ce=le.count();if(Ce>10&&_e.type==="cartesian2d"&&pe){var $e=_e.getBaseAxis(),xe=_e.getOtherAxis($e),Ie=$e.getExtent(),Ne=ie.getDevicePixelRatio(),Fe=Math.abs(Ie[1]-Ie[0])*(Ne||1),ze=Math.round(Ce/Fe);if(isFinite(ze)&&ze>1){pe==="lttb"&&oe.setData(le.lttbDownSample(le.mapDimension(xe.dim),1/ze));var At=void 0;isString(pe)?At=samplers[pe]:isFunction(pe)&&(At=pe),At&&oe.setData(le.downSample(le.mapDimension(xe.dim),1/ze,At,indexSampler))}}}}}function install$j($){$.registerChartView(LineView$1),$.registerSeriesModel(LineSeries),$.registerLayout(pointsLayout("line",!0)),$.registerVisual({seriesType:"line",reset:function(oe){var ae=oe.getData(),ie=oe.getModel("lineStyle").getLineStyle();ie&&!ie.stroke&&(ie.stroke=ae.getVisual("style").fill),ae.setVisual("legendLineStyle",ie)}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.getInitialData=function(ae,ie){return createSeriesData(null,this,{useEncodeDefaulter:!0})},oe.prototype.getMarkerPosition=function(ae,ie,le){var pe=this.coordinateSystem;if(pe&&pe.clampData){var _e=pe.clampData(ae),Ce=pe.dataToPoint(_e);if(le)each$c(pe.getAxes(),function(Fe,ze){if(Fe.type==="category"&&ie!=null){var At=Fe.getTicksCoords(),Lt=_e[ze],hn=ie[ze]==="x1"||ie[ze]==="y1";if(hn&&(Lt+=1),At.length<2)return;if(At.length===2){Ce[ze]=Fe.toGlobalCoord(Fe.getExtent()[hn?1:0]);return}for(var vn=void 0,_n=void 0,bn=1,Cn=0;Cn<At.length;Cn++){var En=At[Cn].coord,$n=Cn===At.length-1?At[Cn-1].tickValue+bn:At[Cn].tickValue;if($n===Lt){_n=En;break}else if($n<Lt)vn=En;else if(vn!=null&&$n>Lt){_n=(En+vn)/2;break}Cn===1&&(bn=$n-At[0].tickValue)}_n==null&&(vn?vn&&(_n=At[At.length-1].coord):_n=At[0].coord),Ce[ze]=Fe.toGlobalCoord(_n)}});else{var $e=this.getData(),xe=$e.getLayout("offset"),Ie=$e.getLayout("size"),Ne=pe.getBaseAxis().isHorizontal()?0:1;Ce[Ne]+=xe+Ie/2}return Ce}return[NaN,NaN]},oe.type="series.__base_bar__",oe.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},oe}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},oe.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},oe.prototype.getProgressiveThreshold=function(){var ae=this.get("progressiveThreshold"),ie=this.get("largeThreshold");return ie>ae&&(ae=ie),ae},oe.prototype.brushSelector=function(ae,ie,le){return le.rect(ie.getItemLayout(ae))},oe.type="series.bar",oe.dependencies=["grid","polar"],oe.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),oe}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function $(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return $}(),SausagePath=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="sausage",ie}return oe.prototype.getDefaultShape=function(){return new SausageShape},oe.prototype.buildPath=function(ae,ie){var le=ie.cx,pe=ie.cy,_e=Math.max(ie.r0||0,0),Ce=Math.max(ie.r,0),$e=(Ce-_e)*.5,xe=_e+$e,Ie=ie.startAngle,Ne=ie.endAngle,Fe=ie.clockwise,ze=Math.PI*2,At=Fe?Ne-Ie<ze:Ie-Ne<ze;At||(Ie=Ne-(Fe?ze:-ze));var Lt=Math.cos(Ie),hn=Math.sin(Ie),vn=Math.cos(Ne),_n=Math.sin(Ne);At?(ae.moveTo(Lt*_e+le,hn*_e+pe),ae.arc(Lt*xe+le,hn*xe+pe,$e,-Math.PI+Ie,Ie,!Fe)):ae.moveTo(Lt*Ce+le,hn*Ce+pe),ae.arc(le,pe,Ce,Ie,Ne,!Fe),ae.arc(vn*xe+le,_n*xe+pe,$e,Ne-Math.PI*2,Ne-Math.PI,!Fe),_e!==0&&ae.arc(le,pe,_e,Ne,Ie,Fe)},oe}(Path$1);const Sausage=SausagePath;function createSectorCalculateTextPosition($,oe){oe=oe||{};var ae=oe.isRoundCap;return function(ie,le,pe){var _e=le.position;if(!_e||_e instanceof Array)return calculateTextPosition(ie,le,pe);var Ce=$(_e),$e=le.distance!=null?le.distance:5,xe=this.shape,Ie=xe.cx,Ne=xe.cy,Fe=xe.r,ze=xe.r0,At=(Fe+ze)/2,Lt=xe.startAngle,hn=xe.endAngle,vn=(Lt+hn)/2,_n=ae?Math.abs(Fe-ze)/2:0,bn=Math.cos,Cn=Math.sin,En=Ie+Fe*bn(Lt),$n=Ne+Fe*Cn(Lt),wn="left",Tn="top";switch(Ce){case"startArc":En=Ie+(ze-$e)*bn(vn),$n=Ne+(ze-$e)*Cn(vn),wn="center",Tn="top";break;case"insideStartArc":En=Ie+(ze+$e)*bn(vn),$n=Ne+(ze+$e)*Cn(vn),wn="center",Tn="bottom";break;case"startAngle":En=Ie+At*bn(Lt)+adjustAngleDistanceX(Lt,$e+_n,!1),$n=Ne+At*Cn(Lt)+adjustAngleDistanceY(Lt,$e+_n,!1),wn="right",Tn="middle";break;case"insideStartAngle":En=Ie+At*bn(Lt)+adjustAngleDistanceX(Lt,-$e+_n,!1),$n=Ne+At*Cn(Lt)+adjustAngleDistanceY(Lt,-$e+_n,!1),wn="left",Tn="middle";break;case"middle":En=Ie+At*bn(vn),$n=Ne+At*Cn(vn),wn="center",Tn="middle";break;case"endArc":En=Ie+(Fe+$e)*bn(vn),$n=Ne+(Fe+$e)*Cn(vn),wn="center",Tn="bottom";break;case"insideEndArc":En=Ie+(Fe-$e)*bn(vn),$n=Ne+(Fe-$e)*Cn(vn),wn="center",Tn="top";break;case"endAngle":En=Ie+At*bn(hn)+adjustAngleDistanceX(hn,$e+_n,!0),$n=Ne+At*Cn(hn)+adjustAngleDistanceY(hn,$e+_n,!0),wn="left",Tn="middle";break;case"insideEndAngle":En=Ie+At*bn(hn)+adjustAngleDistanceX(hn,-$e+_n,!0),$n=Ne+At*Cn(hn)+adjustAngleDistanceY(hn,-$e+_n,!0),wn="right",Tn="middle";break;default:return calculateTextPosition(ie,le,pe)}return ie=ie||{},ie.x=En,ie.y=$n,ie.align=wn,ie.verticalAlign=Tn,ie}}function setSectorTextRotation($,oe,ae,ie){if(isNumber(ie)){$.setTextConfig({rotation:ie});return}else if(isArray$1(oe)){$.setTextConfig({rotation:0});return}var le=$.shape,pe=le.clockwise?le.startAngle:le.endAngle,_e=le.clockwise?le.endAngle:le.startAngle,Ce=(pe+_e)/2,$e,xe=ae(oe);switch(xe){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":$e=Ce;break;case"startAngle":case"insideStartAngle":$e=pe;break;case"endAngle":case"insideEndAngle":$e=_e;break;default:$.setTextConfig({rotation:0});return}var Ie=Math.PI*1.5-$e;xe==="middle"&&Ie>Math.PI/2&&Ie<Math.PI*1.5&&(Ie-=Math.PI),$.setTextConfig({rotation:Ie})}function adjustAngleDistanceX($,oe,ae){return oe*Math.sin($)*(ae?-1:1)}function adjustAngleDistanceY($,oe,ae){return oe*Math.cos($)*(ae?1:-1)}function getSectorCornerRadius($,oe,ae){var ie=$.get("borderRadius");if(ie==null)return ae?{cornerRadius:0}:null;isArray$1(ie)||(ie=[ie,ie,ie,ie]);var le=Math.abs(oe.r||0-oe.r0||0);return{cornerRadius:map$2(ie,function(pe){return parsePercent$1(pe,le)})}}var mathMax$2=Math.max,mathMin$2=Math.min;function getClipArea($,oe){var ae=$.getArea&&$.getArea();if(isCoordinateSystemType($,"cartesian2d")){var ie=$.getBaseAxis();if(ie.type!=="category"||!ie.onBand){var le=oe.getLayout("bandWidth");ie.isHorizontal()?(ae.x-=le,ae.width+=le*2):(ae.y-=le,ae.height+=le*2)}}return ae}var BarView=function($){__extends(oe,$);function oe(){var ae=$.call(this)||this;return ae.type=oe.type,ae._isFirstFrame=!0,ae}return oe.prototype.render=function(ae,ie,le,pe){this._model=ae,this._removeOnRenderedListener(le),this._updateDrawMode(ae);var _e=ae.get("coordinateSystem");(_e==="cartesian2d"||_e==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(ae,ie,le):this._renderNormal(ae,ie,le,pe))},oe.prototype.incrementalPrepareRender=function(ae){this._clear(),this._updateDrawMode(ae),this._updateLargeClip(ae)},oe.prototype.incrementalRender=function(ae,ie){this._progressiveEls=[],this._incrementalRenderLarge(ae,ie)},oe.prototype.eachRendered=function(ae){traverseElements(this._progressiveEls||this.group,ae)},oe.prototype._updateDrawMode=function(ae){var ie=ae.pipelineContext.large;(this._isLargeDraw==null||ie!==this._isLargeDraw)&&(this._isLargeDraw=ie,this._clear())},oe.prototype._renderNormal=function(ae,ie,le,pe){var _e=this.group,Ce=ae.getData(),$e=this._data,xe=ae.coordinateSystem,Ie=xe.getBaseAxis(),Ne;xe.type==="cartesian2d"?Ne=Ie.isHorizontal():xe.type==="polar"&&(Ne=Ie.dim==="angle");var Fe=ae.isAnimationEnabled()?ae:null,ze=shouldRealtimeSort(ae,xe);ze&&this._enableRealtimeSort(ze,Ce,le);var At=ae.get("clip",!0)||ze,Lt=getClipArea(xe,Ce);_e.removeClipPath();var hn=ae.get("roundCap",!0),vn=ae.get("showBackground",!0),_n=ae.getModel("backgroundStyle"),bn=_n.get("borderRadius")||0,Cn=[],En=this._backgroundEls,$n=pe&&pe.isInitSort,wn=pe&&pe.type==="changeAxisOrder";function Tn(An){var On=getLayout[xe.type](Ce,An),Nn=createBackgroundEl(xe,Ne,On);return Nn.useStyle(_n.getItemStyle()),xe.type==="cartesian2d"?Nn.setShape("r",bn):Nn.setShape("cornerRadius",bn),Cn[An]=Nn,Nn}Ce.diff($e).add(function(An){var On=Ce.getItemModel(An),Nn=getLayout[xe.type](Ce,An,On);if(vn&&Tn(An),!(!Ce.hasValue(An)||!isValidLayout[xe.type](Nn))){var Rn=!1;At&&(Rn=clip[xe.type](Lt,Nn));var zn=elementCreator[xe.type](ae,Ce,An,Nn,Ne,Fe,Ie.model,!1,hn);ze&&(zn.forceLabelAnimation=!0),updateStyle(zn,Ce,An,On,Nn,ae,Ne,xe.type==="polar"),$n?zn.attr({shape:Nn}):ze?updateRealtimeAnimation(ze,Fe,zn,Nn,An,Ne,!1,!1):initProps(zn,{shape:Nn},ae,An),Ce.setItemGraphicEl(An,zn),_e.add(zn),zn.ignore=Rn}}).update(function(An,On){var Nn=Ce.getItemModel(An),Rn=getLayout[xe.type](Ce,An,Nn);if(vn){var zn=void 0;En.length===0?zn=Tn(On):(zn=En[On],zn.useStyle(_n.getItemStyle()),xe.type==="cartesian2d"?zn.setShape("r",bn):zn.setShape("cornerRadius",bn),Cn[An]=zn);var Bn=getLayout[xe.type](Ce,An),Mn=createBackgroundShape(Ne,Bn,xe);updateProps$1(zn,{shape:Mn},Fe,An)}var Fn=$e.getItemGraphicEl(On);if(!Ce.hasValue(An)||!isValidLayout[xe.type](Rn)){_e.remove(Fn);return}var Vn=!1;if(At&&(Vn=clip[xe.type](Lt,Rn),Vn&&_e.remove(Fn)),Fn?saveOldStyle(Fn):Fn=elementCreator[xe.type](ae,Ce,An,Rn,Ne,Fe,Ie.model,!!Fn,hn),ze&&(Fn.forceLabelAnimation=!0),wn){var jn=Fn.getTextContent();if(jn){var Zn=labelInner(jn);Zn.prevValue!=null&&(Zn.prevValue=Zn.value)}}else updateStyle(Fn,Ce,An,Nn,Rn,ae,Ne,xe.type==="polar");$n?Fn.attr({shape:Rn}):ze?updateRealtimeAnimation(ze,Fe,Fn,Rn,An,Ne,!0,wn):updateProps$1(Fn,{shape:Rn},ae,An,null),Ce.setItemGraphicEl(An,Fn),Fn.ignore=Vn,_e.add(Fn)}).remove(function(An){var On=$e.getItemGraphicEl(An);On&&removeElementWithFadeOut(On,ae,An)}).execute();var xn=this._backgroundGroup||(this._backgroundGroup=new Group$3);xn.removeAll();for(var kn=0;kn<Cn.length;++kn)xn.add(Cn[kn]);_e.add(xn),this._backgroundEls=Cn,this._data=Ce},oe.prototype._renderLarge=function(ae,ie,le){this._clear(),createLarge(ae,this.group),this._updateLargeClip(ae)},oe.prototype._incrementalRenderLarge=function(ae,ie){this._removeBackground(),createLarge(ie,this.group,this._progressiveEls,!0)},oe.prototype._updateLargeClip=function(ae){var ie=ae.get("clip",!0)&&createClipPath(ae.coordinateSystem,!1,ae),le=this.group;ie?le.setClipPath(ie):le.removeClipPath()},oe.prototype._enableRealtimeSort=function(ae,ie,le){var pe=this;if(ie.count()){var _e=ae.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(ie,ae,le),this._isFirstFrame=!1;else{var Ce=function($e){var xe=ie.getItemGraphicEl($e),Ie=xe&&xe.shape;return Ie&&Math.abs(_e.isHorizontal()?Ie.height:Ie.width)||0};this._onRendered=function(){pe._updateSortWithinSameData(ie,Ce,_e,le)},le.getZr().on("rendered",this._onRendered)}}},oe.prototype._dataSort=function(ae,ie,le){var pe=[];return ae.each(ae.mapDimension(ie.dim),function(_e,Ce){var $e=le(Ce);$e=$e??NaN,pe.push({dataIndex:Ce,mappedValue:$e,ordinalNumber:_e})}),pe.sort(function(_e,Ce){return Ce.mappedValue-_e.mappedValue}),{ordinalNumbers:map$2(pe,function(_e){return _e.ordinalNumber})}},oe.prototype._isOrderChangedWithinSameData=function(ae,ie,le){for(var pe=le.scale,_e=ae.mapDimension(le.dim),Ce=Number.MAX_VALUE,$e=0,xe=pe.getOrdinalMeta().categories.length;$e<xe;++$e){var Ie=ae.rawIndexOf(_e,pe.getRawOrdinalNumber($e)),Ne=Ie<0?Number.MIN_VALUE:ie(ae.indexOfRawIndex(Ie));if(Ne>Ce)return!0;Ce=Ne}return!1},oe.prototype._isOrderDifferentInView=function(ae,ie){for(var le=ie.scale,pe=le.getExtent(),_e=Math.max(0,pe[0]),Ce=Math.min(pe[1],le.getOrdinalMeta().categories.length-1);_e<=Ce;++_e)if(ae.ordinalNumbers[_e]!==le.getRawOrdinalNumber(_e))return!0},oe.prototype._updateSortWithinSameData=function(ae,ie,le,pe){if(this._isOrderChangedWithinSameData(ae,ie,le)){var _e=this._dataSort(ae,le,ie);this._isOrderDifferentInView(_e,le)&&(this._removeOnRenderedListener(pe),pe.dispatchAction({type:"changeAxisOrder",componentType:le.dim+"Axis",axisId:le.index,sortInfo:_e}))}},oe.prototype._dispatchInitSort=function(ae,ie,le){var pe=ie.baseAxis,_e=this._dataSort(ae,pe,function(Ce){return ae.get(ae.mapDimension(ie.otherAxis.dim),Ce)});le.dispatchAction({type:"changeAxisOrder",componentType:pe.dim+"Axis",isInitSort:!0,axisId:pe.index,sortInfo:_e})},oe.prototype.remove=function(ae,ie){this._clear(this._model),this._removeOnRenderedListener(ie)},oe.prototype.dispose=function(ae,ie){this._removeOnRenderedListener(ie)},oe.prototype._removeOnRenderedListener=function(ae){this._onRendered&&(ae.getZr().off("rendered",this._onRendered),this._onRendered=null)},oe.prototype._clear=function(ae){var ie=this.group,le=this._data;ae&&ae.isAnimationEnabled()&&le&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],le.eachItemGraphicEl(function(pe){removeElementWithFadeOut(pe,ae,getECData(pe).dataIndex)})):ie.removeAll(),this._data=null,this._isFirstFrame=!0},oe.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},oe.type="bar",oe}(ChartView$1),clip={cartesian2d:function($,oe){var ae=oe.width<0?-1:1,ie=oe.height<0?-1:1;ae<0&&(oe.x+=oe.width,oe.width=-oe.width),ie<0&&(oe.y+=oe.height,oe.height=-oe.height);var le=$.x+$.width,pe=$.y+$.height,_e=mathMax$2(oe.x,$.x),Ce=mathMin$2(oe.x+oe.width,le),$e=mathMax$2(oe.y,$.y),xe=mathMin$2(oe.y+oe.height,pe),Ie=Ce<_e,Ne=xe<$e;return oe.x=Ie&&_e>le?Ce:_e,oe.y=Ne&&$e>pe?xe:$e,oe.width=Ie?0:Ce-_e,oe.height=Ne?0:xe-$e,ae<0&&(oe.x+=oe.width,oe.width=-oe.width),ie<0&&(oe.y+=oe.height,oe.height=-oe.height),Ie||Ne},polar:function($,oe){var ae=oe.r0<=oe.r?1:-1;if(ae<0){var ie=oe.r;oe.r=oe.r0,oe.r0=ie}var le=mathMin$2(oe.r,$.r),pe=mathMax$2(oe.r0,$.r0);oe.r=le,oe.r0=pe;var _e=le-pe<0;if(ae<0){var ie=oe.r;oe.r=oe.r0,oe.r0=ie}return _e}},elementCreator={cartesian2d:function($,oe,ae,ie,le,pe,_e,Ce,$e){var xe=new Rect$2({shape:extend({},ie),z2:1});if(xe.__dataIndex=ae,xe.name="item",pe){var Ie=xe.shape,Ne=le?"height":"width";Ie[Ne]=0}return xe},polar:function($,oe,ae,ie,le,pe,_e,Ce,$e){var xe=!le&&$e?Sausage:Sector$1,Ie=new xe({shape:ie,z2:1});Ie.name="item";var Ne=createPolarPositionMapping(le);if(Ie.calculateTextPosition=createSectorCalculateTextPosition(Ne,{isRoundCap:xe===Sausage}),pe){var Fe=Ie.shape,ze=le?"r":"endAngle",At={};Fe[ze]=le?ie.r0:ie.startAngle,At[ze]=ie[ze],(Ce?updateProps$1:initProps)(Ie,{shape:At},pe)}return Ie}};function shouldRealtimeSort($,oe){var ae=$.get("realtimeSort",!0),ie=oe.getBaseAxis();if(ae&&ie.type==="category"&&oe.type==="cartesian2d")return{baseAxis:ie,otherAxis:oe.getOtherAxis(ie)}}function updateRealtimeAnimation($,oe,ae,ie,le,pe,_e,Ce){var $e,xe;pe?(xe={x:ie.x,width:ie.width},$e={y:ie.y,height:ie.height}):(xe={y:ie.y,height:ie.height},$e={x:ie.x,width:ie.width}),Ce||(_e?updateProps$1:initProps)(ae,{shape:$e},oe,le,null);var Ie=oe?$.baseAxis.model:null;(_e?updateProps$1:initProps)(ae,{shape:xe},Ie,le)}function checkPropertiesNotValid($,oe){for(var ae=0;ae<oe.length;ae++)if(!isFinite($[oe[ae]]))return!0;return!1}var rectPropties=["x","y","width","height"],polarPropties=["cx","cy","r","startAngle","endAngle"],isValidLayout={cartesian2d:function($){return!checkPropertiesNotValid($,rectPropties)},polar:function($){return!checkPropertiesNotValid($,polarPropties)}},getLayout={cartesian2d:function($,oe,ae){var ie=$.getItemLayout(oe),le=ae?getLineWidth(ae,ie):0,pe=ie.width>0?1:-1,_e=ie.height>0?1:-1;return{x:ie.x+pe*le/2,y:ie.y+_e*le/2,width:ie.width-pe*le,height:ie.height-_e*le}},polar:function($,oe,ae){var ie=$.getItemLayout(oe);return{cx:ie.cx,cy:ie.cy,r0:ie.r0,r:ie.r,startAngle:ie.startAngle,endAngle:ie.endAngle,clockwise:ie.clockwise}}};function isZeroOnPolar($){return $.startAngle!=null&&$.endAngle!=null&&$.startAngle===$.endAngle}function createPolarPositionMapping($){return function(oe){var ae=oe?"Arc":"Angle";return function(ie){switch(ie){case"start":case"insideStart":case"end":case"insideEnd":return ie+ae;default:return ie}}}($)}function updateStyle($,oe,ae,ie,le,pe,_e,Ce){var $e=oe.getItemVisual(ae,"style");if(Ce){if(!pe.get("roundCap")){var Ie=$.shape,Ne=getSectorCornerRadius(ie.getModel("itemStyle"),Ie,!0);extend(Ie,Ne),$.setShape(Ie)}}else{var xe=ie.get(["itemStyle","borderRadius"])||0;$.setShape("r",xe)}$.useStyle($e);var Fe=ie.getShallow("cursor");Fe&&$.attr("cursor",Fe);var ze=Ce?_e?le.r>=le.r0?"endArc":"startArc":le.endAngle>=le.startAngle?"endAngle":"startAngle":_e?le.height>=0?"bottom":"top":le.width>=0?"right":"left",At=getLabelStatesModels(ie);setLabelStyle($,At,{labelFetcher:pe,labelDataIndex:ae,defaultText:getDefaultLabel(pe.getData(),ae),inheritColor:$e.fill,defaultOpacity:$e.opacity,defaultOutsidePosition:ze});var Lt=$.getTextContent();if(Ce&&Lt){var hn=ie.get(["label","position"]);$.textConfig.inside=hn==="middle"?!0:null,setSectorTextRotation($,hn==="outside"?ze:hn,createPolarPositionMapping(_e),ie.get(["label","rotate"]))}setLabelValueAnimation(Lt,At,pe.getRawValue(ae),function(_n){return getDefaultInterpolatedLabel(oe,_n)});var vn=ie.getModel(["emphasis"]);toggleHoverEmphasis($,vn.get("focus"),vn.get("blurScope"),vn.get("disabled")),setStatesStylesFromModel($,ie),isZeroOnPolar(le)&&($.style.fill="none",$.style.stroke="none",each$c($.states,function(_n){_n.style&&(_n.style.fill=_n.style.stroke="none")}))}function getLineWidth($,oe){var ae=$.get(["itemStyle","borderColor"]);if(!ae||ae==="none")return 0;var ie=$.get(["itemStyle","borderWidth"])||0,le=isNaN(oe.width)?Number.MAX_VALUE:Math.abs(oe.width),pe=isNaN(oe.height)?Number.MAX_VALUE:Math.abs(oe.height);return Math.min(ie,le,pe)}var LagePathShape=function(){function $(){}return $}(),LargePath=function($){__extends(oe,$);function oe(ae){var ie=$.call(this,ae)||this;return ie.type="largeBar",ie}return oe.prototype.getDefaultShape=function(){return new LagePathShape},oe.prototype.buildPath=function(ae,ie){for(var le=ie.points,pe=this.baseDimIdx,_e=1-this.baseDimIdx,Ce=[],$e=[],xe=this.barWidth,Ie=0;Ie<le.length;Ie+=3)$e[pe]=xe,$e[_e]=le[Ie+2],Ce[pe]=le[Ie+pe],Ce[_e]=le[Ie+_e],ae.rect(Ce[0],Ce[1],$e[0],$e[1])},oe}(Path$1);function createLarge($,oe,ae,ie){var le=$.getData(),pe=le.getLayout("valueAxisHorizontal")?1:0,_e=le.getLayout("largeDataIndices"),Ce=le.getLayout("size"),$e=$.getModel("backgroundStyle"),xe=le.getLayout("largeBackgroundPoints");if(xe){var Ie=new LargePath({shape:{points:xe},incremental:!!ie,silent:!0,z2:0});Ie.baseDimIdx=pe,Ie.largeDataIndices=_e,Ie.barWidth=Ce,Ie.useStyle($e.getItemStyle()),oe.add(Ie),ae&&ae.push(Ie)}var Ne=new LargePath({shape:{points:le.getLayout("largePoints")},incremental:!!ie,ignoreCoarsePointer:!0,z2:1});Ne.baseDimIdx=pe,Ne.largeDataIndices=_e,Ne.barWidth=Ce,oe.add(Ne),Ne.useStyle(le.getVisual("style")),getECData(Ne).seriesIndex=$.seriesIndex,$.get("silent")||(Ne.on("mousedown",largePathUpdateDataIndex),Ne.on("mousemove",largePathUpdateDataIndex)),ae&&ae.push(Ne)}var largePathUpdateDataIndex=throttle(function($){var oe=this,ae=largePathFindDataIndex(oe,$.offsetX,$.offsetY);getECData(oe).dataIndex=ae>=0?ae:null},30,!1);function largePathFindDataIndex($,oe,ae){for(var ie=$.baseDimIdx,le=1-ie,pe=$.shape.points,_e=$.largeDataIndices,Ce=[],$e=[],xe=$.barWidth,Ie=0,Ne=pe.length/3;Ie<Ne;Ie++){var Fe=Ie*3;if($e[ie]=xe,$e[le]=pe[Fe+2],Ce[ie]=pe[Fe+ie],Ce[le]=pe[Fe+le],$e[le]<0&&(Ce[le]+=$e[le],$e[le]=-$e[le]),oe>=Ce[0]&&oe<=Ce[0]+$e[0]&&ae>=Ce[1]&&ae<=Ce[1]+$e[1])return _e[Ie]}return-1}function createBackgroundShape($,oe,ae){if(isCoordinateSystemType(ae,"cartesian2d")){var ie=oe,le=ae.getArea();return{x:$?ie.x:le.x,y:$?le.y:ie.y,width:$?ie.width:le.width,height:$?le.height:ie.height}}else{var le=ae.getArea(),pe=oe;return{cx:le.cx,cy:le.cy,r0:$?le.r0:pe.r0,r:$?le.r:pe.r,startAngle:$?pe.startAngle:0,endAngle:$?pe.endAngle:Math.PI*2}}}function createBackgroundEl($,oe,ae){var ie=$.type==="polar"?Sector$1:Rect$2;return new ie({shape:createBackgroundShape(oe,ae,$),silent:!0,z2:0})}const BarView$1=BarView;function install$i($){$.registerChartView(BarView$1),$.registerSeriesModel(BarSeries),$.registerLayout($.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),$.registerLayout($.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),$.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(oe,ae){var ie=oe.componentType||"series";ae.eachComponent({mainType:ie,query:oe},function(le){oe.sortInfo&&le.axis.setCategorySortInfo(oe.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect($,oe){return getLayoutRect($.getBoxLayoutParams(),{width:oe.getWidth(),height:oe.getHeight()})}function getBasicPieLayout($,oe){var ae=getViewRect($,oe),ie=$.get("center"),le=$.get("radius");isArray$1(le)||(le=[0,le]);var pe=parsePercent(ae.width,oe.getWidth()),_e=parsePercent(ae.height,oe.getHeight()),Ce=Math.min(pe,_e),$e=parsePercent(le[0],Ce/2),xe=parsePercent(le[1],Ce/2),Ie,Ne,Fe=$.coordinateSystem;if(Fe){var ze=Fe.dataToPoint(ie);Ie=ze[0]||0,Ne=ze[1]||0}else isArray$1(ie)||(ie=[ie,ie]),Ie=parsePercent(ie[0],pe)+ae.x,Ne=parsePercent(ie[1],_e)+ae.y;return{cx:Ie,cy:Ne,r0:$e,r:xe}}function pieLayout($,oe,ae){oe.eachSeriesByType($,function(ie){var le=ie.getData(),pe=le.mapDimension("value"),_e=getViewRect(ie,ae),Ce=getBasicPieLayout(ie,ae),$e=Ce.cx,xe=Ce.cy,Ie=Ce.r,Ne=Ce.r0,Fe=-ie.get("startAngle")*RADIAN$1,ze=ie.get("minAngle")*RADIAN$1,At=0;le.each(pe,function(kn){!isNaN(kn)&&At++});var Lt=le.getSum(pe),hn=Math.PI/(Lt||At)*2,vn=ie.get("clockwise"),_n=ie.get("roseType"),bn=ie.get("stillShowZeroSum"),Cn=le.getDataExtent(pe);Cn[0]=0;var En=PI2,$n=0,wn=Fe,Tn=vn?1:-1;if(le.setLayout({viewRect:_e,r:Ie}),le.each(pe,function(kn,An){var On;if(isNaN(kn)){le.setItemLayout(An,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:vn,cx:$e,cy:xe,r0:Ne,r:_n?NaN:Ie});return}_n!=="area"?On=Lt===0&&bn?hn:kn*hn:On=PI2/At,On<ze?(On=ze,En-=ze):$n+=kn;var Nn=wn+Tn*On;le.setItemLayout(An,{angle:On,startAngle:wn,endAngle:Nn,clockwise:vn,cx:$e,cy:xe,r0:Ne,r:_n?linearMap$2(kn,Cn,[Ne,Ie]):Ie}),wn=Nn}),En<PI2&&At)if(En<=.001){var xn=PI2/At;le.each(pe,function(kn,An){if(!isNaN(kn)){var On=le.getItemLayout(An);On.angle=xn,On.startAngle=Fe+Tn*An*xn,On.endAngle=Fe+Tn*(An+1)*xn}})}else hn=En/$n,wn=Fe,le.each(pe,function(kn,An){if(!isNaN(kn)){var On=le.getItemLayout(An),Nn=On.angle===ze?ze:kn*hn;On.startAngle=wn,On.endAngle=wn+Tn*Nn,wn+=Tn*Nn}})})}function dataFilter($){return{seriesType:$,reset:function(oe,ae){var ie=ae.findComponents({mainType:"legend"});if(!(!ie||!ie.length)){var le=oe.getData();le.filterSelf(function(pe){for(var _e=le.getName(pe),Ce=0;Ce<ie.length;Ce++)if(!ie[Ce].isSelected(_e))return!1;return!0})}}}}var RADIAN=Math.PI/180;function adjustSingleSide($,oe,ae,ie,le,pe,_e,Ce,$e,xe){if($.length<2)return;function Ie(Lt){for(var hn=Lt.rB,vn=hn*hn,_n=0;_n<Lt.list.length;_n++){var bn=Lt.list[_n],Cn=Math.abs(bn.label.y-ae),En=ie+bn.len,$n=En*En,wn=Math.sqrt((1-Math.abs(Cn*Cn/vn))*$n),Tn=oe+(wn+bn.len2)*le,xn=Tn-bn.label.x,kn=bn.targetTextWidth-xn*le;constrainTextWidth(bn,kn,!0),bn.label.x=Tn}}function Ne(Lt){for(var hn={list:[],maxY:0},vn={list:[],maxY:0},_n=0;_n<Lt.length;_n++)if(Lt[_n].labelAlignTo==="none"){var bn=Lt[_n],Cn=bn.label.y>ae?vn:hn,En=Math.abs(bn.label.y-ae);if(En>=Cn.maxY){var $n=bn.label.x-oe-bn.len2*le,wn=ie+bn.len,Tn=Math.abs($n)<wn?Math.sqrt(En*En/(1-$n*$n/wn/wn)):wn;Cn.rB=Tn,Cn.maxY=En}Cn.list.push(bn)}Ie(hn),Ie(vn)}for(var Fe=$.length,ze=0;ze<Fe;ze++)if($[ze].position==="outer"&&$[ze].labelAlignTo==="labelLine"){var At=$[ze].label.x-xe;$[ze].linePoints[1][0]+=At,$[ze].label.x=xe}shiftLayoutOnY($,$e,$e+_e)&&Ne($)}function avoidOverlap($,oe,ae,ie,le,pe,_e,Ce){for(var $e=[],xe=[],Ie=Number.MAX_VALUE,Ne=-Number.MAX_VALUE,Fe=0;Fe<$.length;Fe++){var ze=$[Fe].label;isPositionCenter($[Fe])||(ze.x<oe?(Ie=Math.min(Ie,ze.x),$e.push($[Fe])):(Ne=Math.max(Ne,ze.x),xe.push($[Fe])))}for(var Fe=0;Fe<$.length;Fe++){var At=$[Fe];if(!isPositionCenter(At)&&At.linePoints){if(At.labelStyleWidth!=null)continue;var ze=At.label,Lt=At.linePoints,hn=void 0;At.labelAlignTo==="edge"?ze.x<oe?hn=Lt[2][0]-At.labelDistance-_e-At.edgeDistance:hn=_e+le-At.edgeDistance-Lt[2][0]-At.labelDistance:At.labelAlignTo==="labelLine"?ze.x<oe?hn=Ie-_e-At.bleedMargin:hn=_e+le-Ne-At.bleedMargin:ze.x<oe?hn=ze.x-_e-At.bleedMargin:hn=_e+le-ze.x-At.bleedMargin,At.targetTextWidth=hn,constrainTextWidth(At,hn)}}adjustSingleSide(xe,oe,ae,ie,1,le,pe,_e,Ce,Ne),adjustSingleSide($e,oe,ae,ie,-1,le,pe,_e,Ce,Ie);for(var Fe=0;Fe<$.length;Fe++){var At=$[Fe];if(!isPositionCenter(At)&&At.linePoints){var ze=At.label,Lt=At.linePoints,vn=At.labelAlignTo==="edge",_n=ze.style.padding,bn=_n?_n[1]+_n[3]:0,Cn=ze.style.backgroundColor?0:bn,En=At.rect.width+Cn,$n=Lt[1][0]-Lt[2][0];vn?ze.x<oe?Lt[2][0]=_e+At.edgeDistance+En+At.labelDistance:Lt[2][0]=_e+le-At.edgeDistance-En-At.labelDistance:(ze.x<oe?Lt[2][0]=ze.x+At.labelDistance:Lt[2][0]=ze.x-At.labelDistance,Lt[1][0]=Lt[2][0]+$n),Lt[1][1]=Lt[2][1]=ze.y}}}function constrainTextWidth($,oe,ae){if(ae===void 0&&(ae=!1),$.labelStyleWidth==null){var ie=$.label,le=ie.style,pe=$.rect,_e=le.backgroundColor,Ce=le.padding,$e=Ce?Ce[1]+Ce[3]:0,xe=le.overflow,Ie=pe.width+(_e?0:$e);if(oe<Ie||ae){var Ne=pe.height;if(xe&&xe.match("break")){ie.setStyle("backgroundColor",null),ie.setStyle("width",oe-$e);var Fe=ie.getBoundingRect();ie.setStyle("width",Math.ceil(Fe.width)),ie.setStyle("backgroundColor",_e)}else{var ze=oe-$e,At=oe<Ie?ze:ae?ze>$.unconstrainedWidth?null:ze:null;ie.setStyle("width",At)}var Lt=ie.getBoundingRect();pe.width=Lt.width;var hn=(ie.style.margin||0)+2.1;pe.height=Lt.height+hn,pe.y-=(pe.height-Ne)/2}}}function isPositionCenter($){return $.position==="center"}function pieLabelLayout($){var oe=$.getData(),ae=[],ie,le,pe=!1,_e=($.get("minShowLabelAngle")||0)*RADIAN,Ce=oe.getLayout("viewRect"),$e=oe.getLayout("r"),xe=Ce.width,Ie=Ce.x,Ne=Ce.y,Fe=Ce.height;function ze($n){$n.ignore=!0}function At($n){if(!$n.ignore)return!0;for(var wn in $n.states)if($n.states[wn].ignore===!1)return!0;return!1}oe.each(function($n){var wn=oe.getItemGraphicEl($n),Tn=wn.shape,xn=wn.getTextContent(),kn=wn.getTextGuideLine(),An=oe.getItemModel($n),On=An.getModel("label"),Nn=On.get("position")||An.get(["emphasis","label","position"]),Rn=On.get("distanceToLabelLine"),zn=On.get("alignTo"),Bn=parsePercent(On.get("edgeDistance"),xe),Mn=On.get("bleedMargin"),Fn=An.getModel("labelLine"),Vn=Fn.get("length");Vn=parsePercent(Vn,xe);var jn=Fn.get("length2");if(jn=parsePercent(jn,xe),Math.abs(Tn.endAngle-Tn.startAngle)<_e){each$c(xn.states,ze),xn.ignore=!0,kn&&(each$c(kn.states,ze),kn.ignore=!0);return}if(At(xn)){var Zn=(Tn.startAngle+Tn.endAngle)/2,Gn=Math.cos(Zn),Xn=Math.sin(Zn),cr,nr,er,rr;ie=Tn.cx,le=Tn.cy;var qn=Nn==="inside"||Nn==="inner";if(Nn==="center")cr=Tn.cx,nr=Tn.cy,rr="center";else{var Yn=(qn?(Tn.r+Tn.r0)/2*Gn:Tn.r*Gn)+ie,ar=(qn?(Tn.r+Tn.r0)/2*Xn:Tn.r*Xn)+le;if(cr=Yn+Gn*3,nr=ar+Xn*3,!qn){var pr=Yn+Gn*(Vn+$e-Tn.r),Un=ar+Xn*(Vn+$e-Tn.r),tr=pr+(Gn<0?-1:1)*jn,ur=Un;zn==="edge"?cr=Gn<0?Ie+Bn:Ie+xe-Bn:cr=tr+(Gn<0?-Rn:Rn),nr=ur,er=[[Yn,ar],[pr,Un],[tr,ur]]}rr=qn?"center":zn==="edge"?Gn>0?"right":"left":Gn>0?"left":"right"}var _r=Math.PI,Er=0,sr=On.get("rotate");if(isNumber(sr))Er=sr*(_r/180);else if(Nn==="center")Er=0;else if(sr==="radial"||sr===!0){var Pr=Gn<0?-Zn+_r:-Zn;Er=Pr}else if(sr==="tangential"&&Nn!=="outside"&&Nn!=="outer"){var Sr=Math.atan2(Gn,Xn);Sr<0&&(Sr=_r*2+Sr);var kr=Xn>0;kr&&(Sr=_r+Sr),Er=Sr-_r}if(pe=!!Er,xn.x=cr,xn.y=nr,xn.rotation=Er,xn.setStyle({verticalAlign:"middle"}),qn){xn.setStyle({align:rr});var hr=xn.states.select;hr&&(hr.x+=xn.x,hr.y+=xn.y)}else{var mr=xn.getBoundingRect().clone();mr.applyTransform(xn.getComputedTransform());var lr=(xn.style.margin||0)+2.1;mr.y-=lr/2,mr.height+=lr,ae.push({label:xn,labelLine:kn,position:Nn,len:Vn,len2:jn,minTurnAngle:Fn.get("minTurnAngle"),maxSurfaceAngle:Fn.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Gn,Xn),linePoints:er,textAlign:rr,labelDistance:Rn,labelAlignTo:zn,edgeDistance:Bn,bleedMargin:Mn,rect:mr,unconstrainedWidth:mr.width,labelStyleWidth:xn.style.width})}wn.setTextConfig({inside:qn})}}),!pe&&$.get("avoidLabelOverlap")&&avoidOverlap(ae,ie,le,$e,xe,Fe,Ie,Ne);for(var Lt=0;Lt<ae.length;Lt++){var hn=ae[Lt],vn=hn.label,_n=hn.labelLine,bn=isNaN(vn.x)||isNaN(vn.y);if(vn){vn.setStyle({align:hn.textAlign}),bn&&(each$c(vn.states,ze),vn.ignore=!0);var Cn=vn.states.select;Cn&&(Cn.x+=vn.x,Cn.y+=vn.y)}if(_n){var En=hn.linePoints;bn||!En?(each$c(_n.states,ze),_n.ignore=!0):(limitTurnAngle(En,hn.minTurnAngle),limitSurfaceAngle(En,hn.surfaceNormal,hn.maxSurfaceAngle),_n.setShape({points:En}),vn.__hostTarget.textGuideLineConfig={anchor:new Point$1(En[0][0],En[0][1])})}}}var PiePiece=function($){__extends(oe,$);function oe(ae,ie,le){var pe=$.call(this)||this;pe.z2=2;var _e=new ZRText$1;return pe.setTextContent(_e),pe.updateData(ae,ie,le,!0),pe}return oe.prototype.updateData=function(ae,ie,le,pe){var _e=this,Ce=ae.hostModel,$e=ae.getItemModel(ie),xe=$e.getModel("emphasis"),Ie=ae.getItemLayout(ie),Ne=extend(getSectorCornerRadius($e.getModel("itemStyle"),Ie,!0),Ie);if(isNaN(Ne.startAngle)){_e.setShape(Ne);return}if(pe){_e.setShape(Ne);var Fe=Ce.getShallow("animationType");Ce.ecModel.ssr?(initProps(_e,{scaleX:0,scaleY:0},Ce,{dataIndex:ie,isFrom:!0}),_e.originX=Ne.cx,_e.originY=Ne.cy):Fe==="scale"?(_e.shape.r=Ie.r0,initProps(_e,{shape:{r:Ie.r}},Ce,ie)):le!=null?(_e.setShape({startAngle:le,endAngle:le}),initProps(_e,{shape:{startAngle:Ie.startAngle,endAngle:Ie.endAngle}},Ce,ie)):(_e.shape.endAngle=Ie.startAngle,updateProps$1(_e,{shape:{endAngle:Ie.endAngle}},Ce,ie))}else saveOldStyle(_e),updateProps$1(_e,{shape:Ne},Ce,ie);_e.useStyle(ae.getItemVisual(ie,"style")),setStatesStylesFromModel(_e,$e);var ze=(Ie.startAngle+Ie.endAngle)/2,At=Ce.get("selectedOffset"),Lt=Math.cos(ze)*At,hn=Math.sin(ze)*At,vn=$e.getShallow("cursor");vn&&_e.attr("cursor",vn),this._updateLabel(Ce,ae,ie),_e.ensureState("emphasis").shape=extend({r:Ie.r+(xe.get("scale")&&xe.get("scaleSize")||0)},getSectorCornerRadius(xe.getModel("itemStyle"),Ie)),extend(_e.ensureState("select"),{x:Lt,y:hn,shape:getSectorCornerRadius($e.getModel(["select","itemStyle"]),Ie)}),extend(_e.ensureState("blur"),{shape:getSectorCornerRadius($e.getModel(["blur","itemStyle"]),Ie)});var _n=_e.getTextGuideLine(),bn=_e.getTextContent();_n&&extend(_n.ensureState("select"),{x:Lt,y:hn}),extend(bn.ensureState("select"),{x:Lt,y:hn}),toggleHoverEmphasis(this,xe.get("focus"),xe.get("blurScope"),xe.get("disabled"))},oe.prototype._updateLabel=function(ae,ie,le){var pe=this,_e=ie.getItemModel(le),Ce=_e.getModel("labelLine"),$e=ie.getItemVisual(le,"style"),xe=$e&&$e.fill,Ie=$e&&$e.opacity;setLabelStyle(pe,getLabelStatesModels(_e),{labelFetcher:ie.hostModel,labelDataIndex:le,inheritColor:xe,defaultOpacity:Ie,defaultText:ae.getFormattedLabel(le,"normal")||ie.getName(le)});var Ne=pe.getTextContent();pe.setTextConfig({position:null,rotation:null}),Ne.attr({z2:10});var Fe=ae.get(["label","position"]);if(Fe!=="outside"&&Fe!=="outer")pe.removeTextGuideLine();else{var ze=this.getTextGuideLine();ze||(ze=new Polyline$1,this.setTextGuideLine(ze)),setLabelLineStyle(this,getLabelLineStatesModels(_e),{stroke:xe,opacity:retrieve3(Ce.get(["lineStyle","opacity"]),Ie,1)})}},oe}(Sector$1),PieView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.ignoreLabelLineUpdate=!0,ae}return oe.prototype.render=function(ae,ie,le,pe){var _e=ae.getData(),Ce=this._data,$e=this.group,xe;if(!Ce&&_e.count()>0){for(var Ie=_e.getItemLayout(0),Ne=1;isNaN(Ie&&Ie.startAngle)&&Ne<_e.count();++Ne)Ie=_e.getItemLayout(Ne);Ie&&(xe=Ie.startAngle)}if(this._emptyCircleSector&&$e.remove(this._emptyCircleSector),_e.count()===0&&ae.get("showEmptyCircle")){var Fe=new Sector$1({shape:getBasicPieLayout(ae,le)});Fe.useStyle(ae.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=Fe,$e.add(Fe)}_e.diff(Ce).add(function(ze){var At=new PiePiece(_e,ze,xe);_e.setItemGraphicEl(ze,At),$e.add(At)}).update(function(ze,At){var Lt=Ce.getItemGraphicEl(At);Lt.updateData(_e,ze,xe),Lt.off("click"),$e.add(Lt),_e.setItemGraphicEl(ze,Lt)}).remove(function(ze){var At=Ce.getItemGraphicEl(ze);removeElementWithFadeOut(At,ae,ze)}).execute(),pieLabelLayout(ae),ae.get("animationTypeUpdate")!=="expansion"&&(this._data=_e)},oe.prototype.dispose=function(){},oe.prototype.containPoint=function(ae,ie){var le=ie.getData(),pe=le.getItemLayout(0);if(pe){var _e=ae[0]-pe.cx,Ce=ae[1]-pe.cy,$e=Math.sqrt(_e*_e+Ce*Ce);return $e<=pe.r&&$e>=pe.r0}},oe.type="pie",oe}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply($,oe,ae){oe=isArray$1(oe)&&{coordDimensions:oe}||extend({encodeDefine:$.getEncode()},oe);var ie=$.getSource(),le=prepareSeriesDataSchema(ie,oe).dimensions,pe=new SeriesData$1(le,$);return pe.initData(ie,ae),pe}var LegendVisualProvider=function(){function $(oe,ae){this._getDataWithEncodedVisual=oe,this._getRawData=ae}return $.prototype.getAllNames=function(){var oe=this._getRawData();return oe.mapArray(oe.getName)},$.prototype.containName=function(oe){var ae=this._getRawData();return ae.indexOfName(oe)>=0},$.prototype.indexOfName=function(oe){var ae=this._getDataWithEncodedVisual();return ae.indexOfName(oe)},$.prototype.getItemVisual=function(oe,ae){var ie=this._getDataWithEncodedVisual();return ie.getItemVisual(oe,ae)},$}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.init=function(ae){$.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine(ae)},oe.prototype.mergeOption=function(){$.prototype.mergeOption.apply(this,arguments)},oe.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},oe.prototype.getDataParams=function(ae){var ie=this.getData(),le=innerData(ie),pe=le.seats;if(!pe){var _e=[];ie.each(ie.mapDimension("value"),function($e){_e.push($e)}),pe=le.seats=getPercentSeats(_e,ie.hostModel.get("percentPrecision"))}var Ce=$.prototype.getDataParams.call(this,ae);return Ce.percent=pe[ae]||0,Ce.$vars.push("percent"),Ce},oe.prototype._defaultLabelLine=function(ae){defaultEmphasis(ae,"labelLine",["show"]);var ie=ae.labelLine,le=ae.emphasis.labelLine;ie.show=ie.show&&ae.label.show,le.show=le.show&&ae.emphasis.label.show},oe.type="series.pie",oe.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},oe}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter($){return{seriesType:$,reset:function(oe,ae){var ie=oe.getData();ie.filterSelf(function(le){var pe=ie.mapDimension("value"),_e=ie.get(pe,le);return!(isNumber(_e)&&!isNaN(_e)&&_e<0)})}}}function install$h($){$.registerChartView(PieView$1),$.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",$.registerAction),$.registerLayout(curry$1(pieLayout,"pie")),$.registerProcessor(dataFilter("pie")),$.registerProcessor(negativeDataFilter("pie"))}var GridModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.type="grid",oe.dependencies=["xAxis","yAxis"],oe.layoutMode="box",oe.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"},oe}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},oe.type="cartesian2dAxis",oe}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$1={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},categoryAxis=merge({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},defaultOption$1),valueAxis=merge({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},defaultOption$1),timeAxis=merge({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},valueAxis),logAxis=defaults({logBase:10},valueAxis);const axisDefault={category:categoryAxis,value:valueAxis,time:timeAxis,log:logAxis};var AXIS_TYPES={value:1,category:1,time:1,log:1};function axisModelCreator($,oe,ae,ie){each$c(AXIS_TYPES,function(le,pe){var _e=merge(merge({},axisDefault[pe],!0),ie,!0),Ce=function($e){__extends(xe,$e);function xe(){var Ie=$e!==null&&$e.apply(this,arguments)||this;return Ie.type=oe+"Axis."+pe,Ie}return xe.prototype.mergeDefaultAndTheme=function(Ie,Ne){var Fe=fetchLayoutMode(this),ze=Fe?getLayoutParams(Ie):{},At=Ne.getTheme();merge(Ie,At.get(pe+"Axis")),merge(Ie,this.getDefaultOption()),Ie.type=getAxisType(Ie),Fe&&mergeLayoutParam(Ie,ze,Fe)},xe.prototype.optionUpdated=function(){var Ie=this.option;Ie.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},xe.prototype.getCategories=function(Ie){var Ne=this.option;if(Ne.type==="category")return Ie?Ne.data:this.__ordinalMeta.categories},xe.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},xe.type=oe+"Axis."+pe,xe.defaultOption=_e,xe}(ae);$.registerComponentModel(Ce)}),$.registerSubTypeDefaulter(oe+"Axis",getAxisType)}function getAxisType($){return $.type||($.data?"category":"value")}var Cartesian=function(){function $(oe){this.type="cartesian",this._dimList=[],this._axes={},this.name=oe||""}return $.prototype.getAxis=function(oe){return this._axes[oe]},$.prototype.getAxes=function(){return map$2(this._dimList,function(oe){return this._axes[oe]},this)},$.prototype.getAxesByScale=function(oe){return oe=oe.toLowerCase(),filter(this.getAxes(),function(ae){return ae.scale.type===oe})},$.prototype.addAxis=function(oe){var ae=oe.dim;this._axes[ae]=oe,this._dimList.push(ae)},$}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform($){return $.type==="interval"||$.type==="time"}var Cartesian2D=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="cartesian2d",ae.dimensions=cartesian2DDimensions,ae}return oe.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var ae=this.getAxis("x").scale,ie=this.getAxis("y").scale;if(!(!canCalculateAffineTransform(ae)||!canCalculateAffineTransform(ie))){var le=ae.getExtent(),pe=ie.getExtent(),_e=this.dataToPoint([le[0],pe[0]]),Ce=this.dataToPoint([le[1],pe[1]]),$e=le[1]-le[0],xe=pe[1]-pe[0];if(!(!$e||!xe)){var Ie=(Ce[0]-_e[0])/$e,Ne=(Ce[1]-_e[1])/xe,Fe=_e[0]-le[0]*Ie,ze=_e[1]-pe[0]*Ne,At=this._transform=[Ie,0,0,Ne,Fe,ze];this._invTransform=invert([],At)}}},oe.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},oe.prototype.containPoint=function(ae){var ie=this.getAxis("x"),le=this.getAxis("y");return ie.contain(ie.toLocalCoord(ae[0]))&&le.contain(le.toLocalCoord(ae[1]))},oe.prototype.containData=function(ae){return this.getAxis("x").containData(ae[0])&&this.getAxis("y").containData(ae[1])},oe.prototype.containZone=function(ae,ie){var le=this.dataToPoint(ae),pe=this.dataToPoint(ie),_e=this.getArea(),Ce=new BoundingRect$1(le[0],le[1],pe[0]-le[0],pe[1]-le[1]);return _e.intersect(Ce)},oe.prototype.dataToPoint=function(ae,ie,le){le=le||[];var pe=ae[0],_e=ae[1];if(this._transform&&pe!=null&&isFinite(pe)&&_e!=null&&isFinite(_e))return applyTransform$1(le,ae,this._transform);var Ce=this.getAxis("x"),$e=this.getAxis("y");return le[0]=Ce.toGlobalCoord(Ce.dataToCoord(pe,ie)),le[1]=$e.toGlobalCoord($e.dataToCoord(_e,ie)),le},oe.prototype.clampData=function(ae,ie){var le=this.getAxis("x").scale,pe=this.getAxis("y").scale,_e=le.getExtent(),Ce=pe.getExtent(),$e=le.parse(ae[0]),xe=pe.parse(ae[1]);return ie=ie||[],ie[0]=Math.min(Math.max(Math.min(_e[0],_e[1]),$e),Math.max(_e[0],_e[1])),ie[1]=Math.min(Math.max(Math.min(Ce[0],Ce[1]),xe),Math.max(Ce[0],Ce[1])),ie},oe.prototype.pointToData=function(ae,ie){var le=[];if(this._invTransform)return applyTransform$1(le,ae,this._invTransform);var pe=this.getAxis("x"),_e=this.getAxis("y");return le[0]=pe.coordToData(pe.toLocalCoord(ae[0]),ie),le[1]=_e.coordToData(_e.toLocalCoord(ae[1]),ie),le},oe.prototype.getOtherAxis=function(ae){return this.getAxis(ae.dim==="x"?"y":"x")},oe.prototype.getArea=function(){var ae=this.getAxis("x").getGlobalExtent(),ie=this.getAxis("y").getGlobalExtent(),le=Math.min(ae[0],ae[1]),pe=Math.min(ie[0],ie[1]),_e=Math.max(ae[0],ae[1])-le,Ce=Math.max(ie[0],ie[1])-pe;return new BoundingRect$1(le,pe,_e,Ce)},oe}(Cartesian$1),Axis2D=function($){__extends(oe,$);function oe(ae,ie,le,pe,_e){var Ce=$.call(this,ae,ie,le)||this;return Ce.index=0,Ce.type=pe||"value",Ce.position=_e||"bottom",Ce}return oe.prototype.isHorizontal=function(){var ae=this.position;return ae==="top"||ae==="bottom"},oe.prototype.getGlobalExtent=function(ae){var ie=this.getExtent();return ie[0]=this.toGlobalCoord(ie[0]),ie[1]=this.toGlobalCoord(ie[1]),ae&&ie[0]>ie[1]&&ie.reverse(),ie},oe.prototype.pointToData=function(ae,ie){return this.coordToData(this.toLocalCoord(ae[this.dim==="x"?0:1]),ie)},oe.prototype.setCategorySortInfo=function(ae){if(this.type!=="category")return!1;this.model.option.categorySortInfo=ae,this.scale.setSortInfo(ae)},oe}(Axis$1);const Axis2D$1=Axis2D;function layout$1($,oe,ae){ae=ae||{};var ie=$.coordinateSystem,le=oe.axis,pe={},_e=le.getAxesOnZeroOf()[0],Ce=le.position,$e=_e?"onZero":Ce,xe=le.dim,Ie=ie.getRect(),Ne=[Ie.x,Ie.x+Ie.width,Ie.y,Ie.y+Ie.height],Fe={left:0,right:1,top:0,bottom:1,onZero:2},ze=oe.get("offset")||0,At=xe==="x"?[Ne[2]-ze,Ne[3]+ze]:[Ne[0]-ze,Ne[1]+ze];if(_e){var Lt=_e.toGlobalCoord(_e.dataToCoord(0));At[Fe.onZero]=Math.max(Math.min(Lt,At[1]),At[0])}pe.position=[xe==="y"?At[Fe[$e]]:Ne[0],xe==="x"?At[Fe[$e]]:Ne[3]],pe.rotation=Math.PI/2*(xe==="x"?0:1);var hn={top:-1,bottom:1,left:-1,right:1};pe.labelDirection=pe.tickDirection=pe.nameDirection=hn[Ce],pe.labelOffset=_e?At[Fe[Ce]]-At[Fe.onZero]:0,oe.get(["axisTick","inside"])&&(pe.tickDirection=-pe.tickDirection),retrieve(ae.labelInside,oe.get(["axisLabel","inside"]))&&(pe.labelDirection=-pe.labelDirection);var vn=oe.get(["axisLabel","rotate"]);return pe.labelRotate=$e==="top"?-vn:vn,pe.z2=1,pe}function isCartesian2DSeries($){return $.get("coordinateSystem")==="cartesian2d"}function findAxisModels($){var oe={xAxisModel:null,yAxisModel:null};return each$c(oe,function(ae,ie){var le=ie.replace(/Model$/,""),pe=$.getReferringComponents(le,SINGLE_REFERRING).models[0];oe[ie]=pe}),oe}var mathLog=Math.log;function alignScaleTicks($,oe,ae){var ie=IntervalScale$1.prototype,le=ie.getTicks.call(ae),pe=ie.getTicks.call(ae,!0),_e=le.length-1,Ce=ie.getInterval.call(ae),$e=getScaleExtent($,oe),xe=$e.extent,Ie=$e.fixMin,Ne=$e.fixMax;if($.type==="log"){var Fe=mathLog($.base);xe=[mathLog(xe[0])/Fe,mathLog(xe[1])/Fe]}$.setExtent(xe[0],xe[1]),$.calcNiceExtent({splitNumber:_e,fixMin:Ie,fixMax:Ne});var ze=ie.getExtent.call($);Ie&&(xe[0]=ze[0]),Ne&&(xe[1]=ze[1]);var At=ie.getInterval.call($),Lt=xe[0],hn=xe[1];if(Ie&&Ne)At=(hn-Lt)/_e;else if(Ie)for(hn=xe[0]+At*_e;hn<xe[1]&&isFinite(hn)&&isFinite(xe[1]);)At=increaseInterval(At),hn=xe[0]+At*_e;else if(Ne)for(Lt=xe[1]-At*_e;Lt>xe[0]&&isFinite(Lt)&&isFinite(xe[0]);)At=increaseInterval(At),Lt=xe[1]-At*_e;else{var vn=$.getTicks().length-1;vn>_e&&(At=increaseInterval(At));var _n=At*_e;hn=Math.ceil(xe[1]/At)*At,Lt=round$1(hn-_n),Lt<0&&xe[0]>=0?(Lt=0,hn=round$1(_n)):hn>0&&xe[1]<=0&&(hn=0,Lt=-round$1(_n))}var bn=(le[0].value-pe[0].value)/Ce,Cn=(le[_e].value-pe[_e].value)/Ce;ie.setExtent.call($,Lt+At*bn,hn+At*Cn),ie.setInterval.call($,At),(bn||Cn)&&ie.setNiceExtent.call($,Lt+At,hn-At)}var Grid=function(){function $(oe,ae,ie){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(oe,ae,ie),this.model=oe}return $.prototype.getRect=function(){return this._rect},$.prototype.update=function(oe,ae){var ie=this._axesMap;this._updateScale(oe,this.model);function le(_e){var Ce,$e=keys(_e),xe=$e.length;if(xe){for(var Ie=[],Ne=xe-1;Ne>=0;Ne--){var Fe=+$e[Ne],ze=_e[Fe],At=ze.model,Lt=ze.scale;isIntervalOrLogScale(Lt)&&At.get("alignTicks")&&At.get("interval")==null?Ie.push(ze):(niceScaleExtent(Lt,At),isIntervalOrLogScale(Lt)&&(Ce=ze))}Ie.length&&(Ce||(Ce=Ie.pop(),niceScaleExtent(Ce.scale,Ce.model)),each$c(Ie,function(hn){alignScaleTicks(hn.scale,hn.model,Ce.scale)}))}}le(ie.x),le(ie.y);var pe={};each$c(ie.x,function(_e){fixAxisOnZero(ie,"y",_e,pe)}),each$c(ie.y,function(_e){fixAxisOnZero(ie,"x",_e,pe)}),this.resize(this.model,ae)},$.prototype.resize=function(oe,ae,ie){var le=oe.getBoxLayoutParams(),pe=!ie&&oe.get("containLabel"),_e=getLayoutRect(le,{width:ae.getWidth(),height:ae.getHeight()});this._rect=_e;var Ce=this._axesList;$e(),pe&&(each$c(Ce,function(xe){if(!xe.model.get(["axisLabel","inside"])){var Ie=estimateLabelUnionRect(xe);if(Ie){var Ne=xe.isHorizontal()?"height":"width",Fe=xe.model.get(["axisLabel","margin"]);_e[Ne]-=Ie[Ne]+Fe,xe.position==="top"?_e.y+=Ie.height+Fe:xe.position==="left"&&(_e.x+=Ie.width+Fe)}}}),$e()),each$c(this._coordsList,function(xe){xe.calcAffineTransform()});function $e(){each$c(Ce,function(xe){var Ie=xe.isHorizontal(),Ne=Ie?[0,_e.width]:[0,_e.height],Fe=xe.inverse?1:0;xe.setExtent(Ne[Fe],Ne[1-Fe]),updateAxisTransform(xe,Ie?_e.x:_e.y)})}},$.prototype.getAxis=function(oe,ae){var ie=this._axesMap[oe];if(ie!=null)return ie[ae||0]},$.prototype.getAxes=function(){return this._axesList.slice()},$.prototype.getCartesian=function(oe,ae){if(oe!=null&&ae!=null){var ie="x"+oe+"y"+ae;return this._coordsMap[ie]}isObject$3(oe)&&(ae=oe.yAxisIndex,oe=oe.xAxisIndex);for(var le=0,pe=this._coordsList;le<pe.length;le++)if(pe[le].getAxis("x").index===oe||pe[le].getAxis("y").index===ae)return pe[le]},$.prototype.getCartesians=function(){return this._coordsList.slice()},$.prototype.convertToPixel=function(oe,ae,ie){var le=this._findConvertTarget(ae);return le.cartesian?le.cartesian.dataToPoint(ie):le.axis?le.axis.toGlobalCoord(le.axis.dataToCoord(ie)):null},$.prototype.convertFromPixel=function(oe,ae,ie){var le=this._findConvertTarget(ae);return le.cartesian?le.cartesian.pointToData(ie):le.axis?le.axis.coordToData(le.axis.toLocalCoord(ie)):null},$.prototype._findConvertTarget=function(oe){var ae=oe.seriesModel,ie=oe.xAxisModel||ae&&ae.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],le=oe.yAxisModel||ae&&ae.getReferringComponents("yAxis",SINGLE_REFERRING).models[0],pe=oe.gridModel,_e=this._coordsList,Ce,$e;if(ae)Ce=ae.coordinateSystem,indexOf(_e,Ce)<0&&(Ce=null);else if(ie&&le)Ce=this.getCartesian(ie.componentIndex,le.componentIndex);else if(ie)$e=this.getAxis("x",ie.componentIndex);else if(le)$e=this.getAxis("y",le.componentIndex);else if(pe){var xe=pe.coordinateSystem;xe===this&&(Ce=this._coordsList[0])}return{cartesian:Ce,axis:$e}},$.prototype.containPoint=function(oe){var ae=this._coordsList[0];if(ae)return ae.containPoint(oe)},$.prototype._initCartesian=function(oe,ae,ie){var le=this,pe=this,_e={left:!1,right:!1,top:!1,bottom:!1},Ce={x:{},y:{}},$e={x:0,y:0};if(ae.eachComponent("xAxis",xe("x"),this),ae.eachComponent("yAxis",xe("y"),this),!$e.x||!$e.y){this._axesMap={},this._axesList=[];return}this._axesMap=Ce,each$c(Ce.x,function(Ie,Ne){each$c(Ce.y,function(Fe,ze){var At="x"+Ne+"y"+ze,Lt=new Cartesian2D(At);Lt.master=le,Lt.model=oe,le._coordsMap[At]=Lt,le._coordsList.push(Lt),Lt.addAxis(Ie),Lt.addAxis(Fe)})});function xe(Ie){return function(Ne,Fe){if(isAxisUsedInTheGrid(Ne,oe)){var ze=Ne.get("position");Ie==="x"?ze!=="top"&&ze!=="bottom"&&(ze=_e.bottom?"top":"bottom"):ze!=="left"&&ze!=="right"&&(ze=_e.left?"right":"left"),_e[ze]=!0;var At=new Axis2D$1(Ie,createScaleByModel(Ne),[0,0],Ne.get("type"),ze),Lt=At.type==="category";At.onBand=Lt&&Ne.get("boundaryGap"),At.inverse=Ne.get("inverse"),Ne.axis=At,At.model=Ne,At.grid=pe,At.index=Fe,pe._axesList.push(At),Ce[Ie][Fe]=At,$e[Ie]++}}}},$.prototype._updateScale=function(oe,ae){each$c(this._axesList,function(le){if(le.scale.setExtent(1/0,-1/0),le.type==="category"){var pe=le.model.get("categorySortInfo");le.scale.setSortInfo(pe)}}),oe.eachSeries(function(le){if(isCartesian2DSeries(le)){var pe=findAxisModels(le),_e=pe.xAxisModel,Ce=pe.yAxisModel;if(!isAxisUsedInTheGrid(_e,ae)||!isAxisUsedInTheGrid(Ce,ae))return;var $e=this.getCartesian(_e.componentIndex,Ce.componentIndex),xe=le.getData(),Ie=$e.getAxis("x"),Ne=$e.getAxis("y");ie(xe,Ie),ie(xe,Ne)}},this);function ie(le,pe){each$c(getDataDimensionsOnAxis(le,pe.dim),function(_e){pe.scale.unionExtentFromData(le,_e)})}},$.prototype.getTooltipAxes=function(oe){var ae=[],ie=[];return each$c(this.getCartesians(),function(le){var pe=oe!=null&&oe!=="auto"?le.getAxis(oe):le.getBaseAxis(),_e=le.getOtherAxis(pe);indexOf(ae,pe)<0&&ae.push(pe),indexOf(ie,_e)<0&&ie.push(_e)}),{baseAxes:ae,otherAxes:ie}},$.create=function(oe,ae){var ie=[];return oe.eachComponent("grid",function(le,pe){var _e=new $(le,oe,ae);_e.name="grid_"+pe,_e.resize(le,ae,!0),le.coordinateSystem=_e,ie.push(_e)}),oe.eachSeries(function(le){if(isCartesian2DSeries(le)){var pe=findAxisModels(le),_e=pe.xAxisModel,Ce=pe.yAxisModel,$e=_e.getCoordSysModel(),xe=$e.coordinateSystem;le.coordinateSystem=xe.getCartesian(_e.componentIndex,Ce.componentIndex)}}),ie},$.dimensions=cartesian2DDimensions,$}();function isAxisUsedInTheGrid($,oe){return $.getCoordSysModel()===oe}function fixAxisOnZero($,oe,ae,ie){ae.getAxesOnZeroOf=function(){return pe?[pe]:[]};var le=$[oe],pe,_e=ae.model,Ce=_e.get(["axisLine","onZero"]),$e=_e.get(["axisLine","onZeroAxisIndex"]);if(!Ce)return;if($e!=null)canOnZeroToAxis(le[$e])&&(pe=le[$e]);else for(var xe in le)if(le.hasOwnProperty(xe)&&canOnZeroToAxis(le[xe])&&!ie[Ie(le[xe])]){pe=le[xe];break}pe&&(ie[Ie(pe)]=!0);function Ie(Ne){return Ne.dim+"_"+Ne.index}}function canOnZeroToAxis($){return $&&$.type!=="category"&&$.type!=="time"&&ifAxisCrossZero($)}function updateAxisTransform($,oe){var ae=$.getExtent(),ie=ae[0]+ae[1];$.toGlobalCoord=$.dim==="x"?function(le){return le+oe}:function(le){return ie-le+oe},$.toLocalCoord=$.dim==="x"?function(le){return le-oe}:function(le){return ie-le+oe}}const Grid$1=Grid;var PI=Math.PI,AxisBuilder=function(){function $(oe,ae){this.group=new Group$3,this.opt=ae,this.axisModel=oe,defaults(ae,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var ie=new Group$3({x:ae.position[0],y:ae.position[1],rotation:ae.rotation});ie.updateTransform(),this._transformGroup=ie}return $.prototype.hasBuilder=function(oe){return!!builders[oe]},$.prototype.add=function(oe){builders[oe](this.opt,this.axisModel,this.group,this._transformGroup)},$.prototype.getGroup=function(){return this.group},$.innerTextLayout=function(oe,ae,ie){var le=remRadian(ae-oe),pe,_e;return isRadianAroundZero(le)?(_e=ie>0?"top":"bottom",pe="center"):isRadianAroundZero(le-PI)?(_e=ie>0?"bottom":"top",pe="center"):(_e="middle",le>0&&le<PI?pe=ie>0?"right":"left":pe=ie>0?"left":"right"),{rotation:le,textAlign:pe,textVerticalAlign:_e}},$.makeAxisEventDataBase=function(oe){var ae={componentType:oe.mainType,componentIndex:oe.componentIndex};return ae[oe.mainType+"Index"]=oe.componentIndex,ae},$.isLabelSilent=function(oe){var ae=oe.get("tooltip");return oe.get("silent")||!(oe.get("triggerEvent")||ae&&ae.show)},$}(),builders={axisLine:function($,oe,ae,ie){var le=oe.get(["axisLine","show"]);if(le==="auto"&&$.handleAutoShown&&(le=$.handleAutoShown("axisLine")),!!le){var pe=oe.axis.getExtent(),_e=ie.transform,Ce=[pe[0],0],$e=[pe[1],0],xe=Ce[0]>$e[0];_e&&(applyTransform$1(Ce,Ce,_e),applyTransform$1($e,$e,_e));var Ie=extend({lineCap:"round"},oe.getModel(["axisLine","lineStyle"]).getLineStyle()),Ne=new Line$1({shape:{x1:Ce[0],y1:Ce[1],x2:$e[0],y2:$e[1]},style:Ie,strokeContainThreshold:$.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(Ne.shape,Ne.style.lineWidth),Ne.anid="line",ae.add(Ne);var Fe=oe.get(["axisLine","symbol"]);if(Fe!=null){var ze=oe.get(["axisLine","symbolSize"]);isString(Fe)&&(Fe=[Fe,Fe]),(isString(ze)||isNumber(ze))&&(ze=[ze,ze]);var At=normalizeSymbolOffset(oe.get(["axisLine","symbolOffset"])||0,ze),Lt=ze[0],hn=ze[1];each$c([{rotate:$.rotation+Math.PI/2,offset:At[0],r:0},{rotate:$.rotation-Math.PI/2,offset:At[1],r:Math.sqrt((Ce[0]-$e[0])*(Ce[0]-$e[0])+(Ce[1]-$e[1])*(Ce[1]-$e[1]))}],function(vn,_n){if(Fe[_n]!=="none"&&Fe[_n]!=null){var bn=createSymbol(Fe[_n],-Lt/2,-hn/2,Lt,hn,Ie.stroke,!0),Cn=vn.r+vn.offset,En=xe?$e:Ce;bn.attr({rotation:vn.rotate,x:En[0]+Cn*Math.cos($.rotation),y:En[1]-Cn*Math.sin($.rotation),silent:!0,z2:11}),ae.add(bn)}})}}},axisTickLabel:function($,oe,ae,ie){var le=buildAxisMajorTicks(ae,ie,oe,$),pe=buildAxisLabel(ae,ie,oe,$);if(fixMinMaxLabelShow(oe,pe,le),buildAxisMinorTicks(ae,ie,oe,$.tickDirection),oe.get(["axisLabel","hideOverlap"])){var _e=prepareLayoutList(map$2(pe,function(Ce){return{label:Ce,priority:Ce.z2,defaultAttr:{ignore:Ce.ignore}}}));hideOverlap(_e)}},axisName:function($,oe,ae,ie){var le=retrieve($.axisName,oe.get("name"));if(le){var pe=oe.get("nameLocation"),_e=$.nameDirection,Ce=oe.getModel("nameTextStyle"),$e=oe.get("nameGap")||0,xe=oe.axis.getExtent(),Ie=xe[0]>xe[1]?-1:1,Ne=[pe==="start"?xe[0]-Ie*$e:pe==="end"?xe[1]+Ie*$e:(xe[0]+xe[1])/2,isNameLocationCenter(pe)?$.labelOffset+_e*$e:0],Fe,ze=oe.get("nameRotate");ze!=null&&(ze=ze*PI/180);var At;isNameLocationCenter(pe)?Fe=AxisBuilder.innerTextLayout($.rotation,ze??$.rotation,_e):(Fe=endTextLayout($.rotation,pe,ze||0,xe),At=$.axisNameAvailableWidth,At!=null&&(At=Math.abs(At/Math.sin(Fe.rotation)),!isFinite(At)&&(At=null)));var Lt=Ce.getFont(),hn=oe.get("nameTruncate",!0)||{},vn=hn.ellipsis,_n=retrieve($.nameTruncateMaxWidth,hn.maxWidth,At),bn=new ZRText$1({x:Ne[0],y:Ne[1],rotation:Fe.rotation,silent:AxisBuilder.isLabelSilent(oe),style:createTextStyle$1(Ce,{text:le,font:Lt,overflow:"truncate",width:_n,ellipsis:vn,fill:Ce.getTextColor()||oe.get(["axisLine","lineStyle","color"]),align:Ce.get("align")||Fe.textAlign,verticalAlign:Ce.get("verticalAlign")||Fe.textVerticalAlign}),z2:1});if(setTooltipConfig({el:bn,componentModel:oe,itemName:le}),bn.__fullText=le,bn.anid="name",oe.get("triggerEvent")){var Cn=AxisBuilder.makeAxisEventDataBase(oe);Cn.targetType="axisName",Cn.name=le,getECData(bn).eventData=Cn}ie.add(bn),bn.updateTransform(),ae.add(bn),bn.decomposeTransform()}}};function endTextLayout($,oe,ae,ie){var le=remRadian(ae-$),pe,_e,Ce=ie[0]>ie[1],$e=oe==="start"&&!Ce||oe!=="start"&&Ce;return isRadianAroundZero(le-PI/2)?(_e=$e?"bottom":"top",pe="center"):isRadianAroundZero(le-PI*1.5)?(_e=$e?"top":"bottom",pe="center"):(_e="middle",le<PI*1.5&&le>PI/2?pe=$e?"left":"right":pe=$e?"right":"left"),{rotation:le,textAlign:pe,textVerticalAlign:_e}}function fixMinMaxLabelShow($,oe,ae){if(!shouldShowAllLabels($.axis)){var ie=$.get(["axisLabel","showMinLabel"]),le=$.get(["axisLabel","showMaxLabel"]);oe=oe||[],ae=ae||[];var pe=oe[0],_e=oe[1],Ce=oe[oe.length-1],$e=oe[oe.length-2],xe=ae[0],Ie=ae[1],Ne=ae[ae.length-1],Fe=ae[ae.length-2];ie===!1?(ignoreEl(pe),ignoreEl(xe)):isTwoLabelOverlapped(pe,_e)&&(ie?(ignoreEl(_e),ignoreEl(Ie)):(ignoreEl(pe),ignoreEl(xe))),le===!1?(ignoreEl(Ce),ignoreEl(Ne)):isTwoLabelOverlapped($e,Ce)&&(le?(ignoreEl($e),ignoreEl(Fe)):(ignoreEl(Ce),ignoreEl(Ne)))}}function ignoreEl($){$&&($.ignore=!0)}function isTwoLabelOverlapped($,oe){var ae=$&&$.getBoundingRect().clone(),ie=oe&&oe.getBoundingRect().clone();if(!(!ae||!ie)){var le=identity([]);return rotate(le,le,-$.rotation),ae.applyTransform(mul([],le,$.getLocalTransform())),ie.applyTransform(mul([],le,oe.getLocalTransform())),ae.intersect(ie)}}function isNameLocationCenter($){return $==="middle"||$==="center"}function createTicks($,oe,ae,ie,le){for(var pe=[],_e=[],Ce=[],$e=0;$e<$.length;$e++){var xe=$[$e].coord;_e[0]=xe,_e[1]=0,Ce[0]=xe,Ce[1]=ae,oe&&(applyTransform$1(_e,_e,oe),applyTransform$1(Ce,Ce,oe));var Ie=new Line$1({shape:{x1:_e[0],y1:_e[1],x2:Ce[0],y2:Ce[1]},style:ie,z2:2,autoBatch:!0,silent:!0});subPixelOptimizeLine(Ie.shape,Ie.style.lineWidth),Ie.anid=le+"_"+$[$e].tickValue,pe.push(Ie)}return pe}function buildAxisMajorTicks($,oe,ae,ie){var le=ae.axis,pe=ae.getModel("axisTick"),_e=pe.get("show");if(_e==="auto"&&ie.handleAutoShown&&(_e=ie.handleAutoShown("axisTick")),!(!_e||le.scale.isBlank())){for(var Ce=pe.getModel("lineStyle"),$e=ie.tickDirection*pe.get("length"),xe=le.getTicksCoords(),Ie=createTicks(xe,oe.transform,$e,defaults(Ce.getLineStyle(),{stroke:ae.get(["axisLine","lineStyle","color"])}),"ticks"),Ne=0;Ne<Ie.length;Ne++)$.add(Ie[Ne]);return Ie}}function buildAxisMinorTicks($,oe,ae,ie){var le=ae.axis,pe=ae.getModel("minorTick");if(!(!pe.get("show")||le.scale.isBlank())){var _e=le.getMinorTicksCoords();if(_e.length)for(var Ce=pe.getModel("lineStyle"),$e=ie*pe.get("length"),xe=defaults(Ce.getLineStyle(),defaults(ae.getModel("axisTick").getLineStyle(),{stroke:ae.get(["axisLine","lineStyle","color"])})),Ie=0;Ie<_e.length;Ie++)for(var Ne=createTicks(_e[Ie],oe.transform,$e,xe,"minorticks_"+Ie),Fe=0;Fe<Ne.length;Fe++)$.add(Ne[Fe])}}function buildAxisLabel($,oe,ae,ie){var le=ae.axis,pe=retrieve(ie.axisLabelShow,ae.get(["axisLabel","show"]));if(!(!pe||le.scale.isBlank())){var _e=ae.getModel("axisLabel"),Ce=_e.get("margin"),$e=le.getViewLabels(),xe=(retrieve(ie.labelRotate,_e.get("rotate"))||0)*PI/180,Ie=AxisBuilder.innerTextLayout(ie.rotation,xe,ie.labelDirection),Ne=ae.getCategories&&ae.getCategories(!0),Fe=[],ze=AxisBuilder.isLabelSilent(ae),At=ae.get("triggerEvent");return each$c($e,function(Lt,hn){var vn=le.scale.type==="ordinal"?le.scale.getRawOrdinalNumber(Lt.tickValue):Lt.tickValue,_n=Lt.formattedLabel,bn=Lt.rawLabel,Cn=_e;if(Ne&&Ne[vn]){var En=Ne[vn];isObject$3(En)&&En.textStyle&&(Cn=new Model$1(En.textStyle,_e,ae.ecModel))}var $n=Cn.getTextColor()||ae.get(["axisLine","lineStyle","color"]),wn=le.dataToCoord(vn),Tn=new ZRText$1({x:wn,y:ie.labelOffset+ie.labelDirection*Ce,rotation:Ie.rotation,silent:ze,z2:10+(Lt.level||0),style:createTextStyle$1(Cn,{text:_n,align:Cn.getShallow("align",!0)||Ie.textAlign,verticalAlign:Cn.getShallow("verticalAlign",!0)||Cn.getShallow("baseline",!0)||Ie.textVerticalAlign,fill:isFunction($n)?$n(le.type==="category"?bn:le.type==="value"?vn+"":vn,hn):$n})});if(Tn.anid="label_"+vn,At){var xn=AxisBuilder.makeAxisEventDataBase(ae);xn.targetType="axisLabel",xn.value=bn,xn.tickIndex=hn,le.type==="category"&&(xn.dataIndex=vn),getECData(Tn).eventData=xn}oe.add(Tn),Tn.updateTransform(),Fe.push(Tn),$.add(Tn),Tn.decomposeTransform()}),Fe}}const AxisBuilder$1=AxisBuilder;function collect($,oe){var ae={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return collectAxesInfo(ae,$,oe),ae.seriesInvolved&&collectSeriesInfo(ae,$),ae}function collectAxesInfo($,oe,ae){var ie=oe.getComponent("tooltip"),le=oe.getComponent("axisPointer"),pe=le.get("link",!0)||[],_e=[];each$c(ae.getCoordinateSystems(),function(Ce){if(!Ce.axisPointerEnabled)return;var $e=makeKey(Ce.model),xe=$.coordSysAxesInfo[$e]={};$.coordSysMap[$e]=Ce;var Ie=Ce.model,Ne=Ie.getModel("tooltip",ie);if(each$c(Ce.getAxes(),curry$1(Lt,!1,null)),Ce.getTooltipAxes&&ie&&Ne.get("show")){var Fe=Ne.get("trigger")==="axis",ze=Ne.get(["axisPointer","type"])==="cross",At=Ce.getTooltipAxes(Ne.get(["axisPointer","axis"]));(Fe||ze)&&each$c(At.baseAxes,curry$1(Lt,ze?"cross":!0,Fe)),ze&&each$c(At.otherAxes,curry$1(Lt,"cross",!1))}function Lt(hn,vn,_n){var bn=_n.model.getModel("axisPointer",le),Cn=bn.get("show");if(!(!Cn||Cn==="auto"&&!hn&&!isHandleTrigger(bn))){vn==null&&(vn=bn.get("triggerTooltip")),bn=hn?makeAxisPointerModel(_n,Ne,le,oe,hn,vn):bn;var En=bn.get("snap"),$n=makeKey(_n.model),wn=vn||En||_n.type==="category",Tn=$.axesInfo[$n]={key:$n,axis:_n,coordSys:Ce,axisPointerModel:bn,triggerTooltip:vn,involveSeries:wn,snap:En,useHandle:isHandleTrigger(bn),seriesModels:[],linkGroup:null};xe[$n]=Tn,$.seriesInvolved=$.seriesInvolved||wn;var xn=getLinkGroupIndex(pe,_n);if(xn!=null){var kn=_e[xn]||(_e[xn]={axesInfo:{}});kn.axesInfo[$n]=Tn,kn.mapper=pe[xn].mapper,Tn.linkGroup=kn}}}})}function makeAxisPointerModel($,oe,ae,ie,le,pe){var _e=oe.getModel("axisPointer"),Ce=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],$e={};each$c(Ce,function(Fe){$e[Fe]=clone$3(_e.get(Fe))}),$e.snap=$.type!=="category"&&!!pe,_e.get("type")==="cross"&&($e.type="line");var xe=$e.label||($e.label={});if(xe.show==null&&(xe.show=!1),le==="cross"){var Ie=_e.get(["label","show"]);if(xe.show=Ie??!0,!pe){var Ne=$e.lineStyle=_e.get("crossStyle");Ne&&defaults(xe,Ne.textStyle)}}return $.model.getModel("axisPointer",new Model$1($e,ae,ie))}function collectSeriesInfo($,oe){oe.eachSeries(function(ae){var ie=ae.coordinateSystem,le=ae.get(["tooltip","trigger"],!0),pe=ae.get(["tooltip","show"],!0);!ie||le==="none"||le===!1||le==="item"||pe===!1||ae.get(["axisPointer","show"],!0)===!1||each$c($.coordSysAxesInfo[makeKey(ie.model)],function(_e){var Ce=_e.axis;ie.getAxis(Ce.dim)===Ce&&(_e.seriesModels.push(ae),_e.seriesDataCount==null&&(_e.seriesDataCount=0),_e.seriesDataCount+=ae.getData().count())})})}function getLinkGroupIndex($,oe){for(var ae=oe.model,ie=oe.dim,le=0;le<$.length;le++){var pe=$[le]||{};if(checkPropInLink(pe[ie+"AxisId"],ae.id)||checkPropInLink(pe[ie+"AxisIndex"],ae.componentIndex)||checkPropInLink(pe[ie+"AxisName"],ae.name))return le}}function checkPropInLink($,oe){return $==="all"||isArray$1($)&&indexOf($,oe)>=0||$===oe}function fixValue($){var oe=getAxisInfo($);if(oe){var ae=oe.axisPointerModel,ie=oe.axis.scale,le=ae.option,pe=ae.get("status"),_e=ae.get("value");_e!=null&&(_e=ie.parse(_e));var Ce=isHandleTrigger(ae);pe==null&&(le.status=Ce?"show":"hide");var $e=ie.getExtent().slice();$e[0]>$e[1]&&$e.reverse(),(_e==null||_e>$e[1])&&(_e=$e[1]),_e<$e[0]&&(_e=$e[0]),le.value=_e,Ce&&(le.status=oe.axis.scale.isBlank()?"hide":"show")}}function getAxisInfo($){var oe=($.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return oe&&oe.axesInfo[makeKey($)]}function getAxisPointerModel($){var oe=getAxisInfo($);return oe&&oe.axisPointerModel}function isHandleTrigger($){return!!$.get(["handle","show"])}function makeKey($){return $.type+"||"+$.id}var axisPointerClazz={},AxisView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.render=function(ae,ie,le,pe){this.axisPointerClass&&fixValue(ae),$.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(ae,le,!0)},oe.prototype.updateAxisPointer=function(ae,ie,le,pe){this._doUpdateAxisPointerClass(ae,le,!1)},oe.prototype.remove=function(ae,ie){var le=this._axisPointer;le&&le.remove(ie)},oe.prototype.dispose=function(ae,ie){this._disposeAxisPointer(ie),$.prototype.dispose.apply(this,arguments)},oe.prototype._doUpdateAxisPointerClass=function(ae,ie,le){var pe=oe.getAxisPointerClass(this.axisPointerClass);if(pe){var _e=getAxisPointerModel(ae);_e?(this._axisPointer||(this._axisPointer=new pe)).render(ae,_e,ie,le):this._disposeAxisPointer(ie)}},oe.prototype._disposeAxisPointer=function(ae){this._axisPointer&&this._axisPointer.dispose(ae),this._axisPointer=null},oe.registerAxisPointerClass=function(ae,ie){axisPointerClazz[ae]=ie},oe.getAxisPointerClass=function(ae){return ae&&axisPointerClazz[ae]},oe.type="axis",oe}(ComponentView$1);const AxisView$1=AxisView;var inner$6=makeInner();function rectCoordAxisBuildSplitArea($,oe,ae,ie){var le=ae.axis;if(!le.scale.isBlank()){var pe=ae.getModel("splitArea"),_e=pe.getModel("areaStyle"),Ce=_e.get("color"),$e=ie.coordinateSystem.getRect(),xe=le.getTicksCoords({tickModel:pe,clamp:!0});if(xe.length){var Ie=Ce.length,Ne=inner$6($).splitAreaColors,Fe=createHashMap(),ze=0;if(Ne)for(var At=0;At<xe.length;At++){var Lt=Ne.get(xe[At].tickValue);if(Lt!=null){ze=(Lt+(Ie-1)*At)%Ie;break}}var hn=le.toGlobalCoord(xe[0].coord),vn=_e.getAreaStyle();Ce=isArray$1(Ce)?Ce:[Ce];for(var At=1;At<xe.length;At++){var _n=le.toGlobalCoord(xe[At].coord),bn=void 0,Cn=void 0,En=void 0,$n=void 0;le.isHorizontal()?(bn=hn,Cn=$e.y,En=_n-bn,$n=$e.height,hn=bn+En):(bn=$e.x,Cn=hn,En=$e.width,$n=_n-Cn,hn=Cn+$n);var wn=xe[At-1].tickValue;wn!=null&&Fe.set(wn,ze),oe.add(new Rect$2({anid:wn!=null?"area_"+wn:null,shape:{x:bn,y:Cn,width:En,height:$n},style:defaults({fill:Ce[ze]},vn),autoBatch:!0,silent:!0})),ze=(ze+1)%Ie}inner$6($).splitAreaColors=Fe}}}function rectCoordAxisHandleRemove($){inner$6($).splitAreaColors=null}var axisBuilderAttrs=["axisLine","axisTickLabel","axisName"],selfBuilderAttrs=["splitArea","splitLine","minorSplitLine"],CartesianAxisView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.axisPointerClass="CartesianAxisPointer",ae}return oe.prototype.render=function(ae,ie,le,pe){this.group.removeAll();var _e=this._axisGroup;if(this._axisGroup=new Group$3,this.group.add(this._axisGroup),!!ae.get("show")){var Ce=ae.getCoordSysModel(),$e=layout$1(Ce,ae),xe=new AxisBuilder$1(ae,extend({handleAutoShown:function(Ne){for(var Fe=Ce.coordinateSystem.getCartesians(),ze=0;ze<Fe.length;ze++)if(isIntervalOrLogScale(Fe[ze].getOtherAxis(ae.axis).scale))return!0;return!1}},$e));each$c(axisBuilderAttrs,xe.add,xe),this._axisGroup.add(xe.getGroup()),each$c(selfBuilderAttrs,function(Ne){ae.get([Ne,"show"])&&axisElementBuilders[Ne](this,this._axisGroup,ae,Ce)},this);var Ie=pe&&pe.type==="changeAxisOrder"&&pe.isInitSort;Ie||groupTransition(_e,this._axisGroup,ae),$.prototype.render.call(this,ae,ie,le,pe)}},oe.prototype.remove=function(){rectCoordAxisHandleRemove(this)},oe.type="cartesianAxis",oe}(AxisView$1),axisElementBuilders={splitLine:function($,oe,ae,ie){var le=ae.axis;if(!le.scale.isBlank()){var pe=ae.getModel("splitLine"),_e=pe.getModel("lineStyle"),Ce=_e.get("color");Ce=isArray$1(Ce)?Ce:[Ce];for(var $e=ie.coordinateSystem.getRect(),xe=le.isHorizontal(),Ie=0,Ne=le.getTicksCoords({tickModel:pe}),Fe=[],ze=[],At=_e.getLineStyle(),Lt=0;Lt<Ne.length;Lt++){var hn=le.toGlobalCoord(Ne[Lt].coord);xe?(Fe[0]=hn,Fe[1]=$e.y,ze[0]=hn,ze[1]=$e.y+$e.height):(Fe[0]=$e.x,Fe[1]=hn,ze[0]=$e.x+$e.width,ze[1]=hn);var vn=Ie++%Ce.length,_n=Ne[Lt].tickValue,bn=new Line$1({anid:_n!=null?"line_"+Ne[Lt].tickValue:null,autoBatch:!0,shape:{x1:Fe[0],y1:Fe[1],x2:ze[0],y2:ze[1]},style:defaults({stroke:Ce[vn]},At),silent:!0});subPixelOptimizeLine(bn.shape,At.lineWidth),oe.add(bn)}}},minorSplitLine:function($,oe,ae,ie){var le=ae.axis,pe=ae.getModel("minorSplitLine"),_e=pe.getModel("lineStyle"),Ce=ie.coordinateSystem.getRect(),$e=le.isHorizontal(),xe=le.getMinorTicksCoords();if(xe.length)for(var Ie=[],Ne=[],Fe=_e.getLineStyle(),ze=0;ze<xe.length;ze++)for(var At=0;At<xe[ze].length;At++){var Lt=le.toGlobalCoord(xe[ze][At].coord);$e?(Ie[0]=Lt,Ie[1]=Ce.y,Ne[0]=Lt,Ne[1]=Ce.y+Ce.height):(Ie[0]=Ce.x,Ie[1]=Lt,Ne[0]=Ce.x+Ce.width,Ne[1]=Lt);var hn=new Line$1({anid:"minor_line_"+xe[ze][At].tickValue,autoBatch:!0,shape:{x1:Ie[0],y1:Ie[1],x2:Ne[0],y2:Ne[1]},style:Fe,silent:!0});subPixelOptimizeLine(hn.shape,Fe.lineWidth),oe.add(hn)}},splitArea:function($,oe,ae,ie){rectCoordAxisBuildSplitArea($,oe,ae,ie)}},CartesianXAxisView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="xAxis",oe}(CartesianAxisView),CartesianYAxisView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=CartesianXAxisView.type,ae}return oe.type="yAxis",oe}(CartesianAxisView),GridView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="grid",ae}return oe.prototype.render=function(ae,ie){this.group.removeAll(),ae.get("show")&&this.group.add(new Rect$2({shape:ae.coordinateSystem.getRect(),style:defaults({fill:ae.get("backgroundColor")},ae.getItemStyle()),silent:!0,z2:-1}))},oe.type="grid",oe}(ComponentView$1),extraOption={offset:0};function install$g($){$.registerComponentView(GridView),$.registerComponentModel(GridModel$1),$.registerCoordinateSystem("cartesian2d",Grid$1),axisModelCreator($,"x",CartesianAxisModel,extraOption),axisModelCreator($,"y",CartesianAxisModel,extraOption),$.registerComponentView(CartesianXAxisView),$.registerComponentView(CartesianYAxisView),$.registerPreprocessor(function(oe){oe.xAxis&&oe.yAxis&&!oe.grid&&(oe.grid={})})}var ATTR="\0_ec_interaction_mutex";function take($,oe,ae){var ie=getStore($);ie[oe]=ae}function release($,oe,ae){var ie=getStore($),le=ie[oe];le===ae&&(ie[oe]=null)}function isTaken($,oe){return!!getStore($)[oe]}function getStore($){return $[ATTR]||($[ATTR]={})}registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},noop);var RoamController=function($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;ie._zr=ae;var le=bind$1(ie._mousedownHandler,ie),pe=bind$1(ie._mousemoveHandler,ie),_e=bind$1(ie._mouseupHandler,ie),Ce=bind$1(ie._mousewheelHandler,ie),$e=bind$1(ie._pinchHandler,ie);return ie.enable=function(xe,Ie){this.disable(),this._opt=defaults(clone$3(Ie)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),xe==null&&(xe=!0),(xe===!0||xe==="move"||xe==="pan")&&(ae.on("mousedown",le),ae.on("mousemove",pe),ae.on("mouseup",_e)),(xe===!0||xe==="scale"||xe==="zoom")&&(ae.on("mousewheel",Ce),ae.on("pinch",$e))},ie.disable=function(){ae.off("mousedown",le),ae.off("mousemove",pe),ae.off("mouseup",_e),ae.off("mousewheel",Ce),ae.off("pinch",$e)},ie}return oe.prototype.isDragging=function(){return this._dragging},oe.prototype.isPinching=function(){return this._pinching},oe.prototype.setPointerChecker=function(ae){this.pointerChecker=ae},oe.prototype.dispose=function(){this.disable()},oe.prototype._mousedownHandler=function(ae){if(!isMiddleOrRightButtonOnMouseUpDown(ae)){for(var ie=ae.target;ie;){if(ie.draggable)return;ie=ie.__hostTarget||ie.parent}var le=ae.offsetX,pe=ae.offsetY;this.pointerChecker&&this.pointerChecker(ae,le,pe)&&(this._x=le,this._y=pe,this._dragging=!0)}},oe.prototype._mousemoveHandler=function(ae){if(!(!this._dragging||!isAvailableBehavior("moveOnMouseMove",ae,this._opt)||ae.gestureEvent==="pinch"||isTaken(this._zr,"globalPan"))){var ie=ae.offsetX,le=ae.offsetY,pe=this._x,_e=this._y,Ce=ie-pe,$e=le-_e;this._x=ie,this._y=le,this._opt.preventDefaultMouseMove&&stop(ae.event),trigger$1(this,"pan","moveOnMouseMove",ae,{dx:Ce,dy:$e,oldX:pe,oldY:_e,newX:ie,newY:le,isAvailableBehavior:null})}},oe.prototype._mouseupHandler=function(ae){isMiddleOrRightButtonOnMouseUpDown(ae)||(this._dragging=!1)},oe.prototype._mousewheelHandler=function(ae){var ie=isAvailableBehavior("zoomOnMouseWheel",ae,this._opt),le=isAvailableBehavior("moveOnMouseWheel",ae,this._opt),pe=ae.wheelDelta,_e=Math.abs(pe),Ce=ae.offsetX,$e=ae.offsetY;if(!(pe===0||!ie&&!le)){if(ie){var xe=_e>3?1.4:_e>1?1.2:1.1,Ie=pe>0?xe:1/xe;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",ae,{scale:Ie,originX:Ce,originY:$e,isAvailableBehavior:null})}if(le){var Ne=Math.abs(pe),Fe=(pe>0?1:-1)*(Ne>3?.4:Ne>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",ae,{scrollDelta:Fe,originX:Ce,originY:$e,isAvailableBehavior:null})}}},oe.prototype._pinchHandler=function(ae){if(!isTaken(this._zr,"globalPan")){var ie=ae.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,ae,{scale:ie,originX:ae.pinchX,originY:ae.pinchY,isAvailableBehavior:null})}},oe}(Eventful$1);function checkPointerAndTrigger($,oe,ae,ie,le){$.pointerChecker&&$.pointerChecker(ie,le.originX,le.originY)&&(stop(ie.event),trigger$1($,oe,ae,ie,le))}function trigger$1($,oe,ae,ie,le){le.isAvailableBehavior=bind$1(isAvailableBehavior,null,ae,ie),$.trigger(oe,le)}function isAvailableBehavior($,oe,ae){var ie=ae[$];return!$||ie&&(!isString(ie)||oe.event[ie+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement($,oe,ae){var ie=oe.getComponentByElement($.topTarget),le=ie&&ie.coordinateSystem;return ie&&ie!==ae&&!IRRELEVANT_EXCLUDES.hasOwnProperty(ie.mainType)&&le&&le.model!==ae}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function $(oe){var ae=oe.mappingMethod,ie=oe.type,le=this.option=clone$3(oe);this.type=ie,this.mappingMethod=ae,this._normalizeData=normalizers[ae];var pe=$.visualHandlers[ie];this.applyVisual=pe.applyVisual,this.getColorMapper=pe.getColorMapper,this._normalizedToVisual=pe._normalizedToVisual[ae],ae==="piecewise"?(normalizeVisualRange(le),preprocessForPiecewise(le)):ae==="category"?le.categories?preprocessForSpecifiedCategory(le):normalizeVisualRange(le,!0):(assert(ae!=="linear"||le.dataExtent),normalizeVisualRange(le))}return $.prototype.mapValueToVisual=function(oe){var ae=this._normalizeData(oe);return this._normalizedToVisual(ae,oe)},$.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},$.listVisualTypes=function(){return keys($.visualHandlers)},$.isValidType=function(oe){return $.visualHandlers.hasOwnProperty(oe)},$.eachVisual=function(oe,ae,ie){isObject$3(oe)?each$c(oe,ae,ie):ae.call(ie,oe)},$.mapVisual=function(oe,ae,ie){var le,pe=isArray$1(oe)?[]:isObject$3(oe)?{}:(le=!0,null);return $.eachVisual(oe,function(_e,Ce){var $e=ae.call(ie,_e,Ce);le?pe=$e:pe[Ce]=$e}),pe},$.retrieveVisuals=function(oe){var ae={},ie;return oe&&each$9($.visualHandlers,function(le,pe){oe.hasOwnProperty(pe)&&(ae[pe]=oe[pe],ie=!0)}),ie?ae:null},$.prepareVisualTypes=function(oe){if(isArray$1(oe))oe=oe.slice();else if(isObject(oe)){var ae=[];each$9(oe,function(ie,le){ae.push(le)}),oe=ae}else return[];return oe.sort(function(ie,le){return le==="color"&&ie!=="color"&&ie.indexOf("color")===0?1:-1}),oe},$.dependsOn=function(oe,ae){return ae==="color"?!!(oe&&oe.indexOf(ae)===0):oe===ae},$.findPieceIndex=function(oe,ae,ie){for(var le,pe=1/0,_e=0,Ce=ae.length;_e<Ce;_e++){var $e=ae[_e].value;if($e!=null){if($e===oe||isString($e)&&$e===oe+"")return _e;ie&&Fe($e,_e)}}for(var _e=0,Ce=ae.length;_e<Ce;_e++){var xe=ae[_e],Ie=xe.interval,Ne=xe.close;if(Ie){if(Ie[0]===-1/0){if(littleThan(Ne[1],oe,Ie[1]))return _e}else if(Ie[1]===1/0){if(littleThan(Ne[0],Ie[0],oe))return _e}else if(littleThan(Ne[0],Ie[0],oe)&&littleThan(Ne[1],oe,Ie[1]))return _e;ie&&Fe(Ie[0],_e),ie&&Fe(Ie[1],_e)}}if(ie)return oe===1/0?ae.length-1:oe===-1/0?0:le;function Fe(ze,At){var Lt=Math.abs(ze-oe);Lt<pe&&(pe=Lt,le=At)}},$.visualHandlers={color:{applyVisual:makeApplyVisual("color"),getColorMapper:function(){var oe=this.option;return bind$1(oe.mappingMethod==="category"?function(ae,ie){return!ie&&(ae=this._normalizeData(ae)),doMapCategory.call(this,ae)}:function(ae,ie,le){var pe=!!le;return!ie&&(ae=this._normalizeData(ae)),le=fastLerp(ae,oe.parsedVisual,le),pe?le:stringify(le,"rgba")},this)},_normalizedToVisual:{linear:function(oe){return stringify(fastLerp(oe,this.option.parsedVisual),"rgba")},category:doMapCategory,piecewise:function(oe,ae){var ie=getSpecifiedVisual.call(this,ae);return ie==null&&(ie=stringify(fastLerp(oe,this.option.parsedVisual),"rgba")),ie},fixed:doMapFixed}},colorHue:makePartialColorVisualHandler(function(oe,ae){return modifyHSL(oe,ae)}),colorSaturation:makePartialColorVisualHandler(function(oe,ae){return modifyHSL(oe,null,ae)}),colorLightness:makePartialColorVisualHandler(function(oe,ae){return modifyHSL(oe,null,null,ae)}),colorAlpha:makePartialColorVisualHandler(function(oe,ae){return modifyAlpha(oe,ae)}),decal:{applyVisual:makeApplyVisual("decal"),_normalizedToVisual:{linear:null,category:doMapCategory,piecewise:null,fixed:null}},opacity:{applyVisual:makeApplyVisual("opacity"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])},liftZ:{applyVisual:makeApplyVisual("liftZ"),_normalizedToVisual:{linear:doMapFixed,category:doMapFixed,piecewise:doMapFixed,fixed:doMapFixed}},symbol:{applyVisual:function(oe,ae,ie){var le=this.mapValueToVisual(oe);ie("symbol",le)},_normalizedToVisual:{linear:doMapToArray,category:doMapCategory,piecewise:function(oe,ae){var ie=getSpecifiedVisual.call(this,ae);return ie==null&&(ie=doMapToArray.call(this,oe)),ie},fixed:doMapFixed}},symbolSize:{applyVisual:makeApplyVisual("symbolSize"),_normalizedToVisual:createNormalizedToNumericVisual([0,1])}},$}();function preprocessForPiecewise($){var oe=$.pieceList;$.hasSpecialVisual=!1,each$c(oe,function(ae,ie){ae.originIndex=ie,ae.visual!=null&&($.hasSpecialVisual=!0)})}function preprocessForSpecifiedCategory($){var oe=$.categories,ae=$.categoryMap={},ie=$.visual;if(each$9(oe,function(_e,Ce){ae[_e]=Ce}),!isArray$1(ie)){var le=[];isObject$3(ie)?each$9(ie,function(_e,Ce){var $e=ae[Ce];le[$e??CATEGORY_DEFAULT_VISUAL_INDEX]=_e}):le[CATEGORY_DEFAULT_VISUAL_INDEX]=ie,ie=setVisualToOption($,le)}for(var pe=oe.length-1;pe>=0;pe--)ie[pe]==null&&(delete ae[oe[pe]],oe.pop())}function normalizeVisualRange($,oe){var ae=$.visual,ie=[];isObject$3(ae)?each$9(ae,function(pe){ie.push(pe)}):ae!=null&&ie.push(ae);var le={color:1,symbol:1};!oe&&ie.length===1&&!le.hasOwnProperty($.type)&&(ie[1]=ie[0]),setVisualToOption($,ie)}function makePartialColorVisualHandler($){return{applyVisual:function(oe,ae,ie){var le=this.mapValueToVisual(oe);ie("color",$(ae("color"),le))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray($){var oe=this.option.visual;return oe[Math.round(linearMap$2($,[0,1],[0,oe.length-1],!0))]||{}}function makeApplyVisual($){return function(oe,ae,ie){ie($,this.mapValueToVisual(oe))}}function doMapCategory($){var oe=this.option.visual;return oe[this.option.loop&&$!==CATEGORY_DEFAULT_VISUAL_INDEX?$%oe.length:$]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual($){return{linear:function(oe){return linearMap$2(oe,$,this.option.visual,!0)},category:doMapCategory,piecewise:function(oe,ae){var ie=getSpecifiedVisual.call(this,ae);return ie==null&&(ie=linearMap$2(oe,$,this.option.visual,!0)),ie},fixed:doMapFixed}}function getSpecifiedVisual($){var oe=this.option,ae=oe.pieceList;if(oe.hasSpecialVisual){var ie=VisualMapping.findPieceIndex($,ae),le=ae[ie];if(le&&le.visual)return le.visual[this.type]}}function setVisualToOption($,oe){return $.visual=oe,$.type==="color"&&($.parsedVisual=map$2(oe,function(ae){var ie=parse$1(ae);return ie||[0,0,0,1]})),oe}var normalizers={linear:function($){return linearMap$2($,this.option.dataExtent,[0,1],!0)},piecewise:function($){var oe=this.option.pieceList,ae=VisualMapping.findPieceIndex($,oe,!0);if(ae!=null)return linearMap$2(ae,[0,oe.length-1],[0,1],!0)},category:function($){var oe=this.option.categories?this.option.categoryMap[$]:$;return oe??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan($,oe,ae){return $?oe<=ae:oe<ae}const VisualMapping$1=VisualMapping;function sliderMove($,oe,ae,ie,le,pe){$=$||0;var _e=ae[1]-ae[0];if(le!=null&&(le=restrict(le,[0,_e])),pe!=null&&(pe=Math.max(pe,le??0)),ie==="all"){var Ce=Math.abs(oe[1]-oe[0]);Ce=restrict(Ce,[0,_e]),le=pe=restrict(Ce,[le,pe]),ie=0}oe[0]=restrict(oe[0],ae),oe[1]=restrict(oe[1],ae);var $e=getSpanSign(oe,ie);oe[ie]+=$;var xe=le||0,Ie=ae.slice();$e.sign<0?Ie[0]+=xe:Ie[1]-=xe,oe[ie]=restrict(oe[ie],Ie);var Ne;return Ne=getSpanSign(oe,ie),le!=null&&(Ne.sign!==$e.sign||Ne.span<le)&&(oe[1-ie]=oe[ie]+$e.sign*le),Ne=getSpanSign(oe,ie),pe!=null&&Ne.span>pe&&(oe[1-ie]=oe[ie]+Ne.sign*pe),oe}function getSpanSign($,oe){var ae=$[oe]-$[1-oe];return{span:Math.abs(ae),sign:ae>0?-1:ae<0?1:oe?-1:1}}function restrict($,oe){return Math.min(oe[1]!=null?oe[1]:1/0,Math.max(oe[0]!=null?oe[0]:-1/0,$))}var BRUSH_PANEL_GLOBAL=!0,mathMin$1=Math.min,mathMax$1=Math.max,mathPow=Math.pow,COVER_Z=1e4,UNSELECT_THRESHOLD=6,MIN_RESIZE_LINE_WIDTH=6,MUTEX_RESOURCE_KEY="globalPan",DIRECTION_MAP={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},CURSOR_MAP={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},DEFAULT_BRUSH_OPT={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},baseUID=0,BrushController=function($){__extends(oe,$);function oe(ae){var ie=$.call(this)||this;return ie._track=[],ie._covers=[],ie._handlers={},ie._zr=ae,ie.group=new Group$3,ie._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(le,pe){this._handlers[pe]=bind$1(le,this)},ie),ie}return oe.prototype.enableBrush=function(ae){return this._brushType&&this._doDisableBrush(),ae.brushType&&this._doEnableBrush(ae),this},oe.prototype._doEnableBrush=function(ae){var ie=this._zr;this._enableGlobalPan||take(ie,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(le,pe){ie.on(pe,le)}),this._brushType=ae.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),ae,!0)},oe.prototype._doDisableBrush=function(){var ae=this._zr;release(ae,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(ie,le){ae.off(le,ie)}),this._brushType=this._brushOption=null},oe.prototype.setPanels=function(ae){if(ae&&ae.length){var ie=this._panels={};each$c(ae,function(le){ie[le.panelId]=clone$3(le)})}else this._panels=null;return this},oe.prototype.mount=function(ae){ae=ae||{},this._enableGlobalPan=ae.enableGlobalPan;var ie=this.group;return this._zr.add(ie),ie.attr({x:ae.x||0,y:ae.y||0,rotation:ae.rotation||0,scaleX:ae.scaleX||1,scaleY:ae.scaleY||1}),this._transform=ie.getLocalTransform(),this},oe.prototype.updateCovers=function(ae){ae=map$2(ae,function(Fe){return merge(clone$3(DEFAULT_BRUSH_OPT),Fe,!0)});var ie="\0-brush-index-",le=this._covers,pe=this._covers=[],_e=this,Ce=this._creatingCover;return new DataDiffer$1(le,ae,xe,$e).add(Ie).update(Ie).remove(Ne).execute(),this;function $e(Fe,ze){return(Fe.id!=null?Fe.id:ie+ze)+"-"+Fe.brushType}function xe(Fe,ze){return $e(Fe.__brushOption,ze)}function Ie(Fe,ze){var At=ae[Fe];if(ze!=null&&le[ze]===Ce)pe[Fe]=le[ze];else{var Lt=pe[Fe]=ze!=null?(le[ze].__brushOption=At,le[ze]):endCreating(_e,createCover(_e,At));updateCoverAfterCreation(_e,Lt)}}function Ne(Fe){le[Fe]!==Ce&&_e.group.remove(le[Fe])}},oe.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},oe.prototype.dispose=function(){this.unmount(),this.off()},oe}(Eventful$1);function createCover($,oe){var ae=coverRenderers[oe.brushType].createCover($,oe);return ae.__brushOption=oe,updateZ(ae,oe),$.group.add(ae),ae}function endCreating($,oe){var ae=getCoverRenderer(oe);return ae.endCreating&&(ae.endCreating($,oe),updateZ(oe,oe.__brushOption)),oe}function updateCoverShape($,oe){var ae=oe.__brushOption;getCoverRenderer(oe).updateCoverShape($,oe,ae.range,ae)}function updateZ($,oe){var ae=oe.z;ae==null&&(ae=COVER_Z),$.traverse(function(ie){ie.z=ae,ie.z2=ae})}function updateCoverAfterCreation($,oe){getCoverRenderer(oe).updateCommon($,oe),updateCoverShape($,oe)}function getCoverRenderer($){return coverRenderers[$.__brushOption.brushType]}function getPanelByPoint($,oe,ae){var ie=$._panels;if(!ie)return BRUSH_PANEL_GLOBAL;var le,pe=$._transform;return each$c(ie,function(_e){_e.isTargetByCursor(oe,ae,pe)&&(le=_e)}),le}function getPanelByCover($,oe){var ae=$._panels;if(!ae)return BRUSH_PANEL_GLOBAL;var ie=oe.__brushOption.panelId;return ie!=null?ae[ie]:BRUSH_PANEL_GLOBAL}function clearCovers($){var oe=$._covers,ae=oe.length;return each$c(oe,function(ie){$.group.remove(ie)},$),oe.length=0,!!ae}function trigger($,oe){var ae=map$2($._covers,function(ie){var le=ie.__brushOption,pe=clone$3(le.range);return{brushType:le.brushType,panelId:le.panelId,range:pe}});$.trigger("brush",{areas:ae,isEnd:!!oe.isEnd,removeOnClick:!!oe.removeOnClick})}function shouldShowCover($){var oe=$._track;if(!oe.length)return!1;var ae=oe[oe.length-1],ie=oe[0],le=ae[0]-ie[0],pe=ae[1]-ie[1],_e=mathPow(le*le+pe*pe,.5);return _e>UNSELECT_THRESHOLD}function getTrackEnds($){var oe=$.length-1;return oe<0&&(oe=0),[$[0],$[oe]]}function createBaseRectCover($,oe,ae,ie){var le=new Group$3;return le.add(new Rect$2({name:"main",style:makeStyle(ae),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,$,oe,le,["n","s","w","e"]),ondragend:curry$1(trigger,oe,{isEnd:!0})})),each$c(ie,function(pe){le.add(new Rect$2({name:pe.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,$,oe,le,pe),ondragend:curry$1(trigger,oe,{isEnd:!0})}))}),le}function updateBaseRect($,oe,ae,ie){var le=ie.brushStyle.lineWidth||0,pe=mathMax$1(le,MIN_RESIZE_LINE_WIDTH),_e=ae[0][0],Ce=ae[1][0],$e=_e-le/2,xe=Ce-le/2,Ie=ae[0][1],Ne=ae[1][1],Fe=Ie-pe+le/2,ze=Ne-pe+le/2,At=Ie-_e,Lt=Ne-Ce,hn=At+le,vn=Lt+le;updateRectShape($,oe,"main",_e,Ce,At,Lt),ie.transformable&&(updateRectShape($,oe,"w",$e,xe,pe,vn),updateRectShape($,oe,"e",Fe,xe,pe,vn),updateRectShape($,oe,"n",$e,xe,hn,pe),updateRectShape($,oe,"s",$e,ze,hn,pe),updateRectShape($,oe,"nw",$e,xe,pe,pe),updateRectShape($,oe,"ne",Fe,xe,pe,pe),updateRectShape($,oe,"sw",$e,ze,pe,pe),updateRectShape($,oe,"se",Fe,ze,pe,pe))}function updateCommon($,oe){var ae=oe.__brushOption,ie=ae.transformable,le=oe.childAt(0);le.useStyle(makeStyle(ae)),le.attr({silent:!ie,cursor:ie?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(pe){var _e=oe.childOfName(pe.join("")),Ce=pe.length===1?getGlobalDirection1($,pe[0]):getGlobalDirection2($,pe);_e&&_e.attr({silent:!ie,invisible:!ie,cursor:ie?CURSOR_MAP[Ce]+"-resize":null})})}function updateRectShape($,oe,ae,ie,le,pe,_e){var Ce=oe.childOfName(ae);Ce&&Ce.setShape(pointsToRect(clipByPanel($,oe,[[ie,le],[ie+pe,le+_e]])))}function makeStyle($){return defaults({strokeNoScale:!0},$.brushStyle)}function formatRectRange($,oe,ae,ie){var le=[mathMin$1($,ae),mathMin$1(oe,ie)],pe=[mathMax$1($,ae),mathMax$1(oe,ie)];return[[le[0],pe[0]],[le[1],pe[1]]]}function getTransform($){return getTransform$1($.group)}function getGlobalDirection1($,oe){var ae={w:"left",e:"right",n:"top",s:"bottom"},ie={left:"w",right:"e",top:"n",bottom:"s"},le=transformDirection(ae[oe],getTransform($));return ie[le]}function getGlobalDirection2($,oe){var ae=[getGlobalDirection1($,oe[0]),getGlobalDirection1($,oe[1])];return(ae[0]==="e"||ae[0]==="w")&&ae.reverse(),ae.join("")}function driftRect($,oe,ae,ie,le,pe){var _e=ae.__brushOption,Ce=$.toRectRange(_e.range),$e=toLocalDelta(oe,le,pe);each$c(ie,function(xe){var Ie=DIRECTION_MAP[xe];Ce[Ie[0]][Ie[1]]+=$e[Ie[0]]}),_e.range=$.fromRectRange(formatRectRange(Ce[0][0],Ce[1][0],Ce[0][1],Ce[1][1])),updateCoverAfterCreation(oe,ae),trigger(oe,{isEnd:!1})}function driftPolygon($,oe,ae,ie){var le=oe.__brushOption.range,pe=toLocalDelta($,ae,ie);each$c(le,function(_e){_e[0]+=pe[0],_e[1]+=pe[1]}),updateCoverAfterCreation($,oe),trigger($,{isEnd:!1})}function toLocalDelta($,oe,ae){var ie=$.group,le=ie.transformCoordToLocal(oe,ae),pe=ie.transformCoordToLocal(0,0);return[le[0]-pe[0],le[1]-pe[1]]}function clipByPanel($,oe,ae){var ie=getPanelByCover($,oe);return ie&&ie!==BRUSH_PANEL_GLOBAL?ie.clipPath(ae,$._transform):clone$3(ae)}function pointsToRect($){var oe=mathMin$1($[0][0],$[1][0]),ae=mathMin$1($[0][1],$[1][1]),ie=mathMax$1($[0][0],$[1][0]),le=mathMax$1($[0][1],$[1][1]);return{x:oe,y:ae,width:ie-oe,height:le-ae}}function resetCursor($,oe,ae){if(!(!$._brushType||isOutsideZrArea($,oe.offsetX,oe.offsetY))){var ie=$._zr,le=$._covers,pe=getPanelByPoint($,oe,ae);if(!$._dragging)for(var _e=0;_e<le.length;_e++){var Ce=le[_e].__brushOption;if(pe&&(pe===BRUSH_PANEL_GLOBAL||Ce.panelId===pe.panelId)&&coverRenderers[Ce.brushType].contain(le[_e],ae[0],ae[1]))return}pe&&ie.setCursorStyle("crosshair")}}function preventDefault($){var oe=$.event;oe.preventDefault&&oe.preventDefault()}function mainShapeContain($,oe,ae){return $.childOfName("main").contain(oe,ae)}function updateCoverByMouse($,oe,ae,ie){var le=$._creatingCover,pe=$._creatingPanel,_e=$._brushOption,Ce;if($._track.push(ae.slice()),shouldShowCover($)||le){if(pe&&!le){_e.brushMode==="single"&&clearCovers($);var $e=clone$3(_e);$e.brushType=determineBrushType($e.brushType,pe),$e.panelId=pe===BRUSH_PANEL_GLOBAL?null:pe.panelId,le=$._creatingCover=createCover($,$e),$._covers.push(le)}if(le){var xe=coverRenderers[determineBrushType($._brushType,pe)],Ie=le.__brushOption;Ie.range=xe.getCreatingRange(clipByPanel($,le,$._track)),ie&&(endCreating($,le),xe.updateCommon($,le)),updateCoverShape($,le),Ce={isEnd:ie}}}else ie&&_e.brushMode==="single"&&_e.removeOnClick&&getPanelByPoint($,oe,ae)&&clearCovers($)&&(Ce={isEnd:ie,removeOnClick:!0});return Ce}function determineBrushType($,oe){return $==="auto"?oe.defaultBrushType:$}var pointerHandlers={mousedown:function($){if(this._dragging)handleDragEnd(this,$);else if(!$.target||!$.target.draggable){preventDefault($);var oe=this.group.transformCoordToLocal($.offsetX,$.offsetY);this._creatingCover=null;var ae=this._creatingPanel=getPanelByPoint(this,$,oe);ae&&(this._dragging=!0,this._track=[oe.slice()])}},mousemove:function($){var oe=$.offsetX,ae=$.offsetY,ie=this.group.transformCoordToLocal(oe,ae);if(resetCursor(this,$,ie),this._dragging){preventDefault($);var le=updateCoverByMouse(this,$,ie,!1);le&&trigger(this,le)}},mouseup:function($){handleDragEnd(this,$)}};function handleDragEnd($,oe){if($._dragging){preventDefault(oe);var ae=oe.offsetX,ie=oe.offsetY,le=$.group.transformCoordToLocal(ae,ie),pe=updateCoverByMouse($,oe,le,!0);$._dragging=!1,$._track=[],$._creatingCover=null,pe&&trigger($,pe)}}function isOutsideZrArea($,oe,ae){var ie=$._zr;return oe<0||oe>ie.getWidth()||ae<0||ae>ie.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function($,oe){function ae(ie){return ie}return createBaseRectCover({toRectRange:ae,fromRectRange:ae},$,oe,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function($){var oe=getTrackEnds($);return formatRectRange(oe[1][0],oe[1][1],oe[0][0],oe[0][1])},updateCoverShape:function($,oe,ae,ie){updateBaseRect($,oe,ae,ie)},updateCommon,contain:mainShapeContain},polygon:{createCover:function($,oe){var ae=new Group$3;return ae.add(new Polyline$1({name:"main",style:makeStyle(oe),silent:!0})),ae},getCreatingRange:function($){return $},endCreating:function($,oe){oe.remove(oe.childAt(0)),oe.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,$,oe),ondragend:curry$1(trigger,$,{isEnd:!0})}))},updateCoverShape:function($,oe,ae,ie){oe.childAt(0).setShape({points:clipByPanel($,oe,ae)})},updateCommon,contain:mainShapeContain}};function getLineRenderer($){return{createCover:function(oe,ae){return createBaseRectCover({toRectRange:function(ie){var le=[ie,[0,100]];return $&&le.reverse(),le},fromRectRange:function(ie){return ie[$]}},oe,ae,[[["w"],["e"]],[["n"],["s"]]][$])},getCreatingRange:function(oe){var ae=getTrackEnds(oe),ie=mathMin$1(ae[0][$],ae[1][$]),le=mathMax$1(ae[0][$],ae[1][$]);return[ie,le]},updateCoverShape:function(oe,ae,ie,le){var pe,_e=getPanelByCover(oe,ae);if(_e!==BRUSH_PANEL_GLOBAL&&_e.getLinearBrushOtherExtent)pe=_e.getLinearBrushOtherExtent($);else{var Ce=oe._zr;pe=[0,[Ce.getWidth(),Ce.getHeight()][1-$]]}var $e=[ie,pe];$&&$e.reverse(),updateBaseRect(oe,ae,$e,le)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath($){return $=normalizeRect($),function(oe){return clipPointsByRect(oe,$)}}function makeLinearBrushOtherExtent($,oe){return $=normalizeRect($),function(ae){var ie=oe??ae,le=ie?$.width:$.height,pe=ie?$.x:$.y;return[pe,pe+(le||0)]}}function makeRectIsTargetByCursor($,oe,ae){var ie=normalizeRect($);return function(le,pe){return ie.contain(pe[0],pe[1])&&!onIrrelevantElement(le,oe,ae)}}function normalizeRect($){return BoundingRect$1.create($)}function isEC4CompatibleStyle($,oe,ae,ie){return $&&($.legacy||$.legacy!==!1&&!ae&&!ie&&oe!=="tspan"&&(oe==="text"||hasOwn($,"text")))}function convertFromEC4CompatibleStyle($,oe,ae){var ie=$,le,pe,_e;if(oe==="text")_e=ie;else{_e={},hasOwn(ie,"text")&&(_e.text=ie.text),hasOwn(ie,"rich")&&(_e.rich=ie.rich),hasOwn(ie,"textFill")&&(_e.fill=ie.textFill),hasOwn(ie,"textStroke")&&(_e.stroke=ie.textStroke),hasOwn(ie,"fontFamily")&&(_e.fontFamily=ie.fontFamily),hasOwn(ie,"fontSize")&&(_e.fontSize=ie.fontSize),hasOwn(ie,"fontStyle")&&(_e.fontStyle=ie.fontStyle),hasOwn(ie,"fontWeight")&&(_e.fontWeight=ie.fontWeight),pe={type:"text",style:_e,silent:!0},le={};var Ce=hasOwn(ie,"textPosition");ae?le.position=Ce?ie.textPosition:"inside":Ce&&(le.position=ie.textPosition),hasOwn(ie,"textPosition")&&(le.position=ie.textPosition),hasOwn(ie,"textOffset")&&(le.offset=ie.textOffset),hasOwn(ie,"textRotation")&&(le.rotation=ie.textRotation),hasOwn(ie,"textDistance")&&(le.distance=ie.textDistance)}return convertEC4CompatibleRichItem(_e,$),each$c(_e.rich,function($e){convertEC4CompatibleRichItem($e,$e)}),{textConfig:le,textContent:pe}}function convertEC4CompatibleRichItem($,oe){oe&&(oe.font=oe.textFont||oe.font,hasOwn(oe,"textStrokeWidth")&&($.lineWidth=oe.textStrokeWidth),hasOwn(oe,"textAlign")&&($.align=oe.textAlign),hasOwn(oe,"textVerticalAlign")&&($.verticalAlign=oe.textVerticalAlign),hasOwn(oe,"textLineHeight")&&($.lineHeight=oe.textLineHeight),hasOwn(oe,"textWidth")&&($.width=oe.textWidth),hasOwn(oe,"textHeight")&&($.height=oe.textHeight),hasOwn(oe,"textBackgroundColor")&&($.backgroundColor=oe.textBackgroundColor),hasOwn(oe,"textPadding")&&($.padding=oe.textPadding),hasOwn(oe,"textBorderColor")&&($.borderColor=oe.textBorderColor),hasOwn(oe,"textBorderWidth")&&($.borderWidth=oe.textBorderWidth),hasOwn(oe,"textBorderRadius")&&($.borderRadius=oe.textBorderRadius),hasOwn(oe,"textBoxShadowColor")&&($.shadowColor=oe.textBoxShadowColor),hasOwn(oe,"textBoxShadowBlur")&&($.shadowBlur=oe.textBoxShadowBlur),hasOwn(oe,"textBoxShadowOffsetX")&&($.shadowOffsetX=oe.textBoxShadowOffsetX),hasOwn(oe,"textBoxShadowOffsetY")&&($.shadowOffsetY=oe.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function($,oe){return $[oe]=1,$},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig($,oe,ae,ie,le){var pe=$+"Animation",_e=getAnimationConfig($,ie,le)||{},Ce=transitionInnerStore(oe).userDuring;return _e.duration>0&&(_e.during=Ce?bind$1(duringCall,{el:oe,userDuring:Ce}):null,_e.setToFinal=!0,_e.scope=$),extend(_e,ae[pe]),_e}function applyUpdateTransition($,oe,ae,ie){ie=ie||{};var le=ie.dataIndex,pe=ie.isInit,_e=ie.clearStyle,Ce=ae.isAnimationEnabled(),$e=transitionInnerStore($),xe=oe.style;$e.userDuring=oe.during;var Ie={},Ne={};if(prepareTransformAllPropsFinal($,oe,Ne),prepareShapeOrExtraAllPropsFinal("shape",oe,Ne),prepareShapeOrExtraAllPropsFinal("extra",oe,Ne),!pe&&Ce&&(prepareTransformTransitionFrom($,oe,Ie),prepareShapeOrExtraTransitionFrom("shape",$,oe,Ie),prepareShapeOrExtraTransitionFrom("extra",$,oe,Ie),prepareStyleTransitionFrom($,oe,xe,Ie)),Ne.style=xe,applyPropsDirectly($,Ne,_e),applyMiscProps($,oe),Ce)if(pe){var Fe={};each$c(ELEMENT_ANIMATABLE_PROPS,function(At){var Lt=At?oe[At]:oe;Lt&&Lt.enterFrom&&(At&&(Fe[At]=Fe[At]||{}),extend(At?Fe[At]:Fe,Lt.enterFrom))});var ze=getElementAnimationConfig("enter",$,oe,ae,le);ze.duration>0&&$.animateFrom(Fe,ze)}else applyPropsTransition($,oe,le||0,ae,Ie);updateLeaveTo($,oe),xe?$.dirty():$.markRedraw()}function updateLeaveTo($,oe){for(var ae=transitionInnerStore($).leaveToProps,ie=0;ie<ELEMENT_ANIMATABLE_PROPS.length;ie++){var le=ELEMENT_ANIMATABLE_PROPS[ie],pe=le?oe[le]:oe;pe&&pe.leaveTo&&(ae||(ae=transitionInnerStore($).leaveToProps={}),le&&(ae[le]=ae[le]||{}),extend(le?ae[le]:ae,pe.leaveTo))}}function applyLeaveTransition($,oe,ae,ie){if($){var le=$.parent,pe=transitionInnerStore($).leaveToProps;if(pe){var _e=getElementAnimationConfig("update",$,oe,ae,0);_e.done=function(){le.remove($),ie&&ie()},$.animateTo(pe,_e)}else le.remove($),ie&&ie()}}function isTransitionAll($){return $==="all"}function applyPropsDirectly($,oe,ae){var ie=oe.style;if(!$.isGroup&&ie){if(ae){$.useStyle({});for(var le=$.animators,pe=0;pe<le.length;pe++){var _e=le[pe];_e.targetName==="style"&&_e.changeTarget($.style)}}$.setStyle(ie)}oe&&(oe.style=null,oe&&$.attr(oe),oe.style=ie)}function applyPropsTransition($,oe,ae,ie,le){if(le){var pe=getElementAnimationConfig("update",$,oe,ie,ae);pe.duration>0&&$.animateFrom(le,pe)}}function applyMiscProps($,oe){hasOwn(oe,"silent")&&($.silent=oe.silent),hasOwn(oe,"ignore")&&($.ignore=oe.ignore),$ instanceof Displayable$1&&hasOwn(oe,"invisible")&&($.invisible=oe.invisible),$ instanceof Path$1&&hasOwn(oe,"autoBatch")&&($.autoBatch=oe.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function($,oe){return tmpDuringScope.el[$]=oe,this},getTransform:function($){return tmpDuringScope.el[$]},setShape:function($,oe){var ae=tmpDuringScope.el,ie=ae.shape||(ae.shape={});return ie[$]=oe,ae.dirtyShape&&ae.dirtyShape(),this},getShape:function($){var oe=tmpDuringScope.el.shape;if(oe)return oe[$]},setStyle:function($,oe){var ae=tmpDuringScope.el,ie=ae.style;return ie&&(ie[$]=oe,ae.dirtyStyle&&ae.dirtyStyle()),this},getStyle:function($){var oe=tmpDuringScope.el.style;if(oe)return oe[$]},setExtra:function($,oe){var ae=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return ae[$]=oe,this},getExtra:function($){var oe=tmpDuringScope.el.extra;if(oe)return oe[$]}};function duringCall(){var $=this,oe=$.el;if(oe){var ae=transitionInnerStore(oe).userDuring,ie=$.userDuring;if(ae!==ie){$.el=$.userDuring=null;return}tmpDuringScope.el=oe,ie(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom($,oe,ae,ie){var le=ae[$];if(le){var pe=oe[$],_e;if(pe){var Ce=ae.transition,$e=le.transition;if($e)if(!_e&&(_e=ie[$]={}),isTransitionAll($e))extend(_e,pe);else for(var xe=normalizeToArray($e),Ie=0;Ie<xe.length;Ie++){var Ne=xe[Ie],Fe=pe[Ne];_e[Ne]=Fe}else if(isTransitionAll(Ce)||indexOf(Ce,$)>=0){!_e&&(_e=ie[$]={});for(var ze=keys(pe),Ie=0;Ie<ze.length;Ie++){var Ne=ze[Ie],Fe=pe[Ne];isNonStyleTransitionEnabled(le[Ne],Fe)&&(_e[Ne]=Fe)}}}}}function prepareShapeOrExtraAllPropsFinal($,oe,ae){var ie=oe[$];if(ie)for(var le=ae[$]={},pe=keys(ie),_e=0;_e<pe.length;_e++){var Ce=pe[_e];le[Ce]=cloneValue(ie[Ce])}}function prepareTransformTransitionFrom($,oe,ae){for(var ie=oe.transition,le=isTransitionAll(ie)?TRANSFORMABLE_PROPS:normalizeToArray(ie||[]),pe=0;pe<le.length;pe++){var _e=le[pe];if(!(_e==="style"||_e==="shape"||_e==="extra")){var Ce=$[_e];ae[_e]=Ce}}}function prepareTransformAllPropsFinal($,oe,ae){for(var ie=0;ie<LEGACY_TRANSFORM_PROPS.length;ie++){var le=LEGACY_TRANSFORM_PROPS[ie],pe=LEGACY_TRANSFORM_PROPS_MAP[le],_e=oe[le];_e&&(ae[pe[0]]=_e[0],ae[pe[1]]=_e[1])}for(var ie=0;ie<TRANSFORMABLE_PROPS.length;ie++){var Ce=TRANSFORMABLE_PROPS[ie];oe[Ce]!=null&&(ae[Ce]=oe[Ce])}}function prepareStyleTransitionFrom($,oe,ae,ie){if(ae){var le=$.style,pe;if(le){var _e=ae.transition,Ce=oe.transition;if(_e&&!isTransitionAll(_e)){var $e=normalizeToArray(_e);!pe&&(pe=ie.style={});for(var xe=0;xe<$e.length;xe++){var Ie=$e[xe],Ne=le[Ie];pe[Ie]=Ne}}else if($.getAnimationStyleProps&&(isTransitionAll(Ce)||isTransitionAll(_e)||indexOf(Ce,"style")>=0)){var Fe=$.getAnimationStyleProps(),ze=Fe?Fe.style:null;if(ze){!pe&&(pe=ie.style={});for(var At=keys(ae),xe=0;xe<At.length;xe++){var Ie=At[xe];if(ze[Ie]){var Ne=le[Ie];pe[Ie]=Ne}}}}}}}function isNonStyleTransitionEnabled($,oe){return isArrayLike($)?$!==oe:$!=null&&isFinite($)}var getStateToRestore=makeInner(),KEYFRAME_EXCLUDE_KEYS=["percent","easing","shape","style","extra"];function stopPreviousKeyframeAnimationAndRestore($){$.stopAnimation("keyframe"),$.attr(getStateToRestore($))}function applyKeyframeAnimation($,oe,ae){if(!(!ae.isAnimationEnabled()||!oe)){if(isArray$1(oe)){each$c(oe,function(Ce){applyKeyframeAnimation($,Ce,ae)});return}var ie=oe.keyframes,le=oe.duration;if(ae&&le==null){var pe=getAnimationConfig("enter",ae,0);le=pe&&pe.duration}if(!(!ie||!le)){var _e=getStateToRestore($);each$c(ELEMENT_ANIMATABLE_PROPS,function(Ce){if(!(Ce&&!$[Ce])){var $e;ie.sort(function(xe,Ie){return xe.percent-Ie.percent}),each$c(ie,function(xe){var Ie=$.animators,Ne=Ce?xe[Ce]:xe;if(Ne){var Fe=keys(Ne);if(Ce||(Fe=filter(Fe,function(Lt){return indexOf(KEYFRAME_EXCLUDE_KEYS,Lt)<0})),!!Fe.length){$e||($e=$.animate(Ce,oe.loop,!0),$e.scope="keyframe");for(var ze=0;ze<Ie.length;ze++)Ie[ze]!==$e&&Ie[ze].targetName===$e.targetName&&Ie[ze].stopTracks(Fe);Ce&&(_e[Ce]=_e[Ce]||{});var At=Ce?_e[Ce]:_e;each$c(Fe,function(Lt){At[Lt]=((Ce?$[Ce]:$)||{})[Lt]}),$e.whenWithKeys(le*xe.percent,Ne,Fe,xe.easing)}}}),$e&&$e.delay(oe.delay||0).duration(le).start(oe.easing)}})}}}var inner$5=makeInner(),clone=clone$3,bind=bind$1,BaseAxisPointer=function(){function $(){this._dragging=!1,this.animationThreshold=15}return $.prototype.render=function(oe,ae,ie,le){var pe=ae.get("value"),_e=ae.get("status");if(this._axisModel=oe,this._axisPointerModel=ae,this._api=ie,!(!le&&this._lastValue===pe&&this._lastStatus===_e)){this._lastValue=pe,this._lastStatus=_e;var Ce=this._group,$e=this._handle;if(!_e||_e==="hide"){Ce&&Ce.hide(),$e&&$e.hide();return}Ce&&Ce.show(),$e&&$e.show();var xe={};this.makeElOption(xe,pe,oe,ae,ie);var Ie=xe.graphicKey;Ie!==this._lastGraphicKey&&this.clear(ie),this._lastGraphicKey=Ie;var Ne=this._moveAnimation=this.determineAnimation(oe,ae);if(!Ce)Ce=this._group=new Group$3,this.createPointerEl(Ce,xe,oe,ae),this.createLabelEl(Ce,xe,oe,ae),ie.getZr().add(Ce);else{var Fe=curry$1(updateProps,ae,Ne);this.updatePointerEl(Ce,xe,Fe),this.updateLabelEl(Ce,xe,Fe,ae)}updateMandatoryProps(Ce,ae,!0),this._renderHandle(pe)}},$.prototype.remove=function(oe){this.clear(oe)},$.prototype.dispose=function(oe){this.clear(oe)},$.prototype.determineAnimation=function(oe,ae){var ie=ae.get("animation"),le=oe.axis,pe=le.type==="category",_e=ae.get("snap");if(!_e&&!pe)return!1;if(ie==="auto"||ie==null){var Ce=this.animationThreshold;if(pe&&le.getBandWidth()>Ce)return!0;if(_e){var $e=getAxisInfo(oe).seriesDataCount,xe=le.getExtent();return Math.abs(xe[0]-xe[1])/$e>Ce}return!1}return ie===!0},$.prototype.makeElOption=function(oe,ae,ie,le,pe){},$.prototype.createPointerEl=function(oe,ae,ie,le){var pe=ae.pointer;if(pe){var _e=inner$5(oe).pointerEl=new graphic$1[pe.type](clone(ae.pointer));oe.add(_e)}},$.prototype.createLabelEl=function(oe,ae,ie,le){if(ae.label){var pe=inner$5(oe).labelEl=new ZRText$1(clone(ae.label));oe.add(pe),updateLabelShowHide(pe,le)}},$.prototype.updatePointerEl=function(oe,ae,ie){var le=inner$5(oe).pointerEl;le&&ae.pointer&&(le.setStyle(ae.pointer.style),ie(le,{shape:ae.pointer.shape}))},$.prototype.updateLabelEl=function(oe,ae,ie,le){var pe=inner$5(oe).labelEl;pe&&(pe.setStyle(ae.label.style),ie(pe,{x:ae.label.x,y:ae.label.y}),updateLabelShowHide(pe,le))},$.prototype._renderHandle=function(oe){if(!(this._dragging||!this.updateHandleTransform)){var ae=this._axisPointerModel,ie=this._api.getZr(),le=this._handle,pe=ae.getModel("handle"),_e=ae.get("status");if(!pe.get("show")||!_e||_e==="hide"){le&&ie.remove(le),this._handle=null;return}var Ce;this._handle||(Ce=!0,le=this._handle=createIcon(pe.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(xe){stop(xe.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),ie.add(le)),updateMandatoryProps(le,ae,!1),le.setStyle(pe.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var $e=pe.get("size");isArray$1($e)||($e=[$e,$e]),le.scaleX=$e[0]/2,le.scaleY=$e[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",pe.get("throttle")||0,"fixRate"),this._moveHandleToValue(oe,Ce)}},$.prototype._moveHandleToValue=function(oe,ae){updateProps(this._axisPointerModel,!ae&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(oe,this._axisModel,this._axisPointerModel)))},$.prototype._onHandleDragMove=function(oe,ae){var ie=this._handle;if(ie){this._dragging=!0;var le=this.updateHandleTransform(getHandleTransProps(ie),[oe,ae],this._axisModel,this._axisPointerModel);this._payloadInfo=le,ie.stopAnimation(),ie.attr(getHandleTransProps(le)),inner$5(ie).lastProp=null,this._doDispatchAxisPointer()}},$.prototype._doDispatchAxisPointer=function(){var oe=this._handle;if(oe){var ae=this._payloadInfo,ie=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:ae.cursorPoint[0],y:ae.cursorPoint[1],tooltipOption:ae.tooltipOption,axesInfo:[{axisDim:ie.axis.dim,axisIndex:ie.componentIndex}]})}},$.prototype._onHandleDragEnd=function(){this._dragging=!1;var oe=this._handle;if(oe){var ae=this._axisPointerModel.get("value");this._moveHandleToValue(ae),this._api.dispatchAction({type:"hideTip"})}},$.prototype.clear=function(oe){this._lastValue=null,this._lastStatus=null;var ae=oe.getZr(),ie=this._group,le=this._handle;ae&&ie&&(this._lastGraphicKey=null,ie&&ae.remove(ie),le&&ae.remove(le),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},$.prototype.doClear=function(){},$.prototype.buildLabel=function(oe,ae,ie){return ie=ie||0,{x:oe[ie],y:oe[1-ie],width:ae[ie],height:ae[1-ie]}},$}();function updateProps($,oe,ae,ie){propsEqual(inner$5(ae).lastProp,ie)||(inner$5(ae).lastProp=ie,oe?updateProps$1(ae,ie,$):(ae.stopAnimation(),ae.attr(ie)))}function propsEqual($,oe){if(isObject$3($)&&isObject$3(oe)){var ae=!0;return each$c(oe,function(ie,le){ae=ae&&propsEqual($[le],ie)}),!!ae}else return $===oe}function updateLabelShowHide($,oe){$[oe.get(["label","show"])?"show":"hide"]()}function getHandleTransProps($){return{x:$.x||0,y:$.y||0,rotation:$.rotation||0}}function updateMandatoryProps($,oe,ae){var ie=oe.get("z"),le=oe.get("zlevel");$&&$.traverse(function(pe){pe.type!=="group"&&(ie!=null&&(pe.z=ie),le!=null&&(pe.zlevel=le),pe.silent=ae)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle($){var oe=$.get("type"),ae=$.getModel(oe+"Style"),ie;return oe==="line"?(ie=ae.getLineStyle(),ie.fill=null):oe==="shadow"&&(ie=ae.getAreaStyle(),ie.stroke=null),ie}function buildLabelElOption($,oe,ae,ie,le){var pe=ae.get("value"),_e=getValueLabel(pe,oe.axis,oe.ecModel,ae.get("seriesDataIndices"),{precision:ae.get(["label","precision"]),formatter:ae.get(["label","formatter"])}),Ce=ae.getModel("label"),$e=normalizeCssArray(Ce.get("padding")||0),xe=Ce.getFont(),Ie=getBoundingRect(_e,xe),Ne=le.position,Fe=Ie.width+$e[1]+$e[3],ze=Ie.height+$e[0]+$e[2],At=le.align;At==="right"&&(Ne[0]-=Fe),At==="center"&&(Ne[0]-=Fe/2);var Lt=le.verticalAlign;Lt==="bottom"&&(Ne[1]-=ze),Lt==="middle"&&(Ne[1]-=ze/2),confineInContainer(Ne,Fe,ze,ie);var hn=Ce.get("backgroundColor");(!hn||hn==="auto")&&(hn=oe.get(["axisLine","lineStyle","color"])),$.label={x:Ne[0],y:Ne[1],style:createTextStyle$1(Ce,{text:_e,font:xe,fill:Ce.getTextColor(),padding:$e,backgroundColor:hn}),z2:10}}function confineInContainer($,oe,ae,ie){var le=ie.getWidth(),pe=ie.getHeight();$[0]=Math.min($[0]+oe,le)-oe,$[1]=Math.min($[1]+ae,pe)-ae,$[0]=Math.max($[0],0),$[1]=Math.max($[1],0)}function getValueLabel($,oe,ae,ie,le){$=oe.scale.parse($);var pe=oe.scale.getLabel({value:$},{precision:le.precision}),_e=le.formatter;if(_e){var Ce={value:getAxisRawValue(oe,{value:$}),axisDimension:oe.dim,axisIndex:oe.index,seriesData:[]};each$c(ie,function($e){var xe=ae.getSeriesByIndex($e.seriesIndex),Ie=$e.dataIndexInside,Ne=xe&&xe.getDataParams(Ie);Ne&&Ce.seriesData.push(Ne)}),isString(_e)?pe=_e.replace("{value}",pe):isFunction(_e)&&(pe=_e(Ce))}return pe}function getTransformedPosition($,oe,ae){var ie=create();return rotate(ie,ie,ae.rotation),translate(ie,ie,ae.position),applyTransform([$.dataToCoord(oe),(ae.labelOffset||0)+(ae.labelDirection||1)*(ae.labelMargin||0)],ie)}function buildCartesianSingleLabelElOption($,oe,ae,ie,le,pe){var _e=AxisBuilder$1.innerTextLayout(ae.rotation,0,ae.labelDirection);ae.labelMargin=le.get(["label","margin"]),buildLabelElOption(oe,ie,le,pe,{position:getTransformedPosition(ie.axis,$,ae),align:_e.textAlign,verticalAlign:_e.textVerticalAlign})}function makeLineShape($,oe,ae){return ae=ae||0,{x1:$[ae],y1:$[1-ae],x2:oe[ae],y2:oe[1-ae]}}function makeRectShape($,oe,ae){return ae=ae||0,{x:$[ae],y:$[1-ae],width:oe[ae],height:oe[1-ae]}}var CartesianAxisPointer=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.makeElOption=function(ae,ie,le,pe,_e){var Ce=le.axis,$e=Ce.grid,xe=pe.get("type"),Ie=getCartesian($e,Ce).getOtherAxis(Ce).getGlobalExtent(),Ne=Ce.toGlobalCoord(Ce.dataToCoord(ie,!0));if(xe&&xe!=="none"){var Fe=buildElStyle(pe),ze=pointerShapeBuilder[xe](Ce,Ne,Ie);ze.style=Fe,ae.graphicKey=ze.type,ae.pointer=ze}var At=layout$1($e.model,le);buildCartesianSingleLabelElOption(ie,ae,At,le,pe,_e)},oe.prototype.getHandleTransform=function(ae,ie,le){var pe=layout$1(ie.axis.grid.model,ie,{labelInside:!1});pe.labelMargin=le.get(["handle","margin"]);var _e=getTransformedPosition(ie.axis,ae,pe);return{x:_e[0],y:_e[1],rotation:pe.rotation+(pe.labelDirection<0?Math.PI:0)}},oe.prototype.updateHandleTransform=function(ae,ie,le,pe){var _e=le.axis,Ce=_e.grid,$e=_e.getGlobalExtent(!0),xe=getCartesian(Ce,_e).getOtherAxis(_e).getGlobalExtent(),Ie=_e.dim==="x"?0:1,Ne=[ae.x,ae.y];Ne[Ie]+=ie[Ie],Ne[Ie]=Math.min($e[1],Ne[Ie]),Ne[Ie]=Math.max($e[0],Ne[Ie]);var Fe=(xe[1]+xe[0])/2,ze=[Fe,Fe];ze[Ie]=Ne[Ie];var At=[{verticalAlign:"middle"},{align:"center"}];return{x:Ne[0],y:Ne[1],rotation:ae.rotation,cursorPoint:ze,tooltipOption:At[Ie]}},oe}(BaseAxisPointer$1);function getCartesian($,oe){var ae={};return ae[oe.dim+"AxisIndex"]=oe.index,$.getCartesian(ae)}var pointerShapeBuilder={line:function($,oe,ae){var ie=makeLineShape([oe,ae[0]],[oe,ae[1]],getAxisDimIndex($));return{type:"Line",subPixelOptimize:!0,shape:ie}},shadow:function($,oe,ae){var ie=Math.max(1,$.getBandWidth()),le=ae[1]-ae[0];return{type:"Rect",shape:makeRectShape([oe-ie/2,ae[0]],[ie,le],getAxisDimIndex($))}}};function getAxisDimIndex($){return $.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="axisPointer",oe.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},oe}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register($,oe,ae){if(!env$1.node){var ie=oe.getZr();inner$4(ie).records||(inner$4(ie).records={}),initGlobalListeners(ie,oe);var le=inner$4(ie).records[$]||(inner$4(ie).records[$]={});le.handler=ae}}function initGlobalListeners($,oe){if(inner$4($).initialized)return;inner$4($).initialized=!0,ae("click",curry$1(doEnter,"click")),ae("mousemove",curry$1(doEnter,"mousemove")),ae("globalout",onLeave);function ae(ie,le){$.on(ie,function(pe){var _e=makeDispatchAction$1(oe);each$8(inner$4($).records,function(Ce){Ce&&le(Ce,pe,_e.dispatchAction)}),dispatchTooltipFinally(_e.pendings,oe)})}}function dispatchTooltipFinally($,oe){var ae=$.showTip.length,ie=$.hideTip.length,le;ae?le=$.showTip[ae-1]:ie&&(le=$.hideTip[ie-1]),le&&(le.dispatchAction=null,oe.dispatchAction(le))}function onLeave($,oe,ae){$.handler("leave",null,ae)}function doEnter($,oe,ae,ie){oe.handler($,ae,ie)}function makeDispatchAction$1($){var oe={showTip:[],hideTip:[]},ae=function(ie){var le=oe[ie.type];le?le.push(ie):(ie.dispatchAction=ae,$.dispatchAction(ie))};return{dispatchAction:ae,pendings:oe}}function unregister($,oe){if(!env$1.node){var ae=oe.getZr(),ie=(inner$4(ae).records||{})[$];ie&&(inner$4(ae).records[$]=null)}}var AxisPointerView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.render=function(ae,ie,le){var pe=ie.getComponent("tooltip"),_e=ae.get("triggerOn")||pe&&pe.get("triggerOn")||"mousemove|click";register("axisPointer",le,function(Ce,$e,xe){_e!=="none"&&(Ce==="leave"||_e.indexOf(Ce)>=0)&&xe({type:"updateAxisPointer",currTrigger:Ce,x:$e&&$e.offsetX,y:$e&&$e.offsetY})})},oe.prototype.remove=function(ae,ie){unregister("axisPointer",ie)},oe.prototype.dispose=function(ae,ie){unregister("axisPointer",ie)},oe.type="axisPointer",oe}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries($,oe){var ae=[],ie=$.seriesIndex,le;if(ie==null||!(le=oe.getSeriesByIndex(ie)))return{point:[]};var pe=le.getData(),_e=queryDataIndex(pe,$);if(_e==null||_e<0||isArray$1(_e))return{point:[]};var Ce=pe.getItemGraphicEl(_e),$e=le.coordinateSystem;if(le.getTooltipPosition)ae=le.getTooltipPosition(_e)||[];else if($e&&$e.dataToPoint)if($.isStacked){var xe=$e.getBaseAxis(),Ie=$e.getOtherAxis(xe),Ne=Ie.dim,Fe=xe.dim,ze=Ne==="x"||Ne==="radius"?1:0,At=pe.mapDimension(Fe),Lt=[];Lt[ze]=pe.get(At,_e),Lt[1-ze]=pe.get(pe.getCalculationInfo("stackResultDimension"),_e),ae=$e.dataToPoint(Lt)||[]}else ae=$e.dataToPoint(pe.getValues(map$2($e.dimensions,function(vn){return pe.mapDimension(vn)}),_e))||[];else if(Ce){var hn=Ce.getBoundingRect().clone();hn.applyTransform(Ce.transform),ae=[hn.x+hn.width/2,hn.y+hn.height/2]}return{point:ae,el:Ce}}var inner$3=makeInner();function axisTrigger($,oe,ae){var ie=$.currTrigger,le=[$.x,$.y],pe=$,_e=$.dispatchAction||bind$1(ae.dispatchAction,ae),Ce=oe.getComponent("axisPointer").coordSysAxesInfo;if(Ce){illegalPoint(le)&&(le=findPointFromSeries({seriesIndex:pe.seriesIndex,dataIndex:pe.dataIndex},oe).point);var $e=illegalPoint(le),xe=pe.axesInfo,Ie=Ce.axesInfo,Ne=ie==="leave"||illegalPoint(le),Fe={},ze={},At={list:[],map:{}},Lt={showPointer:curry$1(showPointer,ze),showTooltip:curry$1(showTooltip,At)};each$c(Ce.coordSysMap,function(vn,_n){var bn=$e||vn.containPoint(le);each$c(Ce.coordSysAxesInfo[_n],function(Cn,En){var $n=Cn.axis,wn=findInputAxisInfo(xe,Cn);if(!Ne&&bn&&(!xe||wn)){var Tn=wn&&wn.value;Tn==null&&!$e&&(Tn=$n.pointToData(le)),Tn!=null&&processOnAxis(Cn,Tn,Lt,!1,Fe)}})});var hn={};return each$c(Ie,function(vn,_n){var bn=vn.linkGroup;bn&&!ze[_n]&&each$c(bn.axesInfo,function(Cn,En){var $n=ze[En];if(Cn!==vn&&$n){var wn=$n.value;bn.mapper&&(wn=vn.axis.scale.parse(bn.mapper(wn,makeMapperParam(Cn),makeMapperParam(vn)))),hn[vn.key]=wn}})}),each$c(hn,function(vn,_n){processOnAxis(Ie[_n],vn,Lt,!0,Fe)}),updateModelActually(ze,Ie,Fe),dispatchTooltipActually(At,le,$,_e),dispatchHighDownActually(Ie,_e,ae),Fe}}function processOnAxis($,oe,ae,ie,le){var pe=$.axis;if(!(pe.scale.isBlank()||!pe.containData(oe))){if(!$.involveSeries){ae.showPointer($,oe);return}var _e=buildPayloadsBySeries(oe,$),Ce=_e.payloadBatch,$e=_e.snapToValue;Ce[0]&&le.seriesIndex==null&&extend(le,Ce[0]),!ie&&$.snap&&pe.containData($e)&&$e!=null&&(oe=$e),ae.showPointer($,oe,Ce),ae.showTooltip($,_e,$e)}}function buildPayloadsBySeries($,oe){var ae=oe.axis,ie=ae.dim,le=$,pe=[],_e=Number.MAX_VALUE,Ce=-1;return each$c(oe.seriesModels,function($e,xe){var Ie=$e.getData().mapDimensionsAll(ie),Ne,Fe;if($e.getAxisTooltipData){var ze=$e.getAxisTooltipData(Ie,$,ae);Fe=ze.dataIndices,Ne=ze.nestestValue}else{if(Fe=$e.getData().indicesOfNearest(Ie[0],$,ae.type==="category"?.5:null),!Fe.length)return;Ne=$e.getData().get(Ie[0],Fe[0])}if(!(Ne==null||!isFinite(Ne))){var At=$-Ne,Lt=Math.abs(At);Lt<=_e&&((Lt<_e||At>=0&&Ce<0)&&(_e=Lt,Ce=At,le=Ne,pe.length=0),each$c(Fe,function(hn){pe.push({seriesIndex:$e.seriesIndex,dataIndexInside:hn,dataIndex:$e.getData().getRawIndex(hn)})}))}}),{payloadBatch:pe,snapToValue:le}}function showPointer($,oe,ae,ie){$[oe.key]={value:ae,payloadBatch:ie}}function showTooltip($,oe,ae,ie){var le=ae.payloadBatch,pe=oe.axis,_e=pe.model,Ce=oe.axisPointerModel;if(!(!oe.triggerTooltip||!le.length)){var $e=oe.coordSys.model,xe=makeKey($e),Ie=$.map[xe];Ie||(Ie=$.map[xe]={coordSysId:$e.id,coordSysIndex:$e.componentIndex,coordSysType:$e.type,coordSysMainType:$e.mainType,dataByAxis:[]},$.list.push(Ie)),Ie.dataByAxis.push({axisDim:pe.dim,axisIndex:_e.componentIndex,axisType:_e.type,axisId:_e.id,value:ie,valueLabelOpt:{precision:Ce.get(["label","precision"]),formatter:Ce.get(["label","formatter"])},seriesDataIndices:le.slice()})}}function updateModelActually($,oe,ae){var ie=ae.axesInfo=[];each$c(oe,function(le,pe){var _e=le.axisPointerModel.option,Ce=$[pe];Ce?(!le.useHandle&&(_e.status="show"),_e.value=Ce.value,_e.seriesDataIndices=(Ce.payloadBatch||[]).slice()):!le.useHandle&&(_e.status="hide"),_e.status==="show"&&ie.push({axisDim:le.axis.dim,axisIndex:le.axis.model.componentIndex,value:_e.value})})}function dispatchTooltipActually($,oe,ae,ie){if(illegalPoint(oe)||!$.list.length){ie({type:"hideTip"});return}var le=(($.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};ie({type:"showTip",escapeConnect:!0,x:oe[0],y:oe[1],tooltipOption:ae.tooltipOption,position:ae.position,dataIndexInside:le.dataIndexInside,dataIndex:le.dataIndex,seriesIndex:le.seriesIndex,dataByCoordSys:$.list})}function dispatchHighDownActually($,oe,ae){var ie=ae.getZr(),le="axisPointerLastHighlights",pe=inner$3(ie)[le]||{},_e=inner$3(ie)[le]={};each$c($,function(xe,Ie){var Ne=xe.axisPointerModel.option;Ne.status==="show"&&each$c(Ne.seriesDataIndices,function(Fe){var ze=Fe.seriesIndex+" | "+Fe.dataIndex;_e[ze]=Fe})});var Ce=[],$e=[];each$c(pe,function(xe,Ie){!_e[Ie]&&$e.push(xe)}),each$c(_e,function(xe,Ie){!pe[Ie]&&Ce.push(xe)}),$e.length&&ae.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:$e}),Ce.length&&ae.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:Ce})}function findInputAxisInfo($,oe){for(var ae=0;ae<($||[]).length;ae++){var ie=$[ae];if(oe.axis.dim===ie.axisDim&&oe.axis.model.componentIndex===ie.axisIndex)return ie}}function makeMapperParam($){var oe=$.axis.model,ae={},ie=ae.axisDim=$.axis.dim;return ae.axisIndex=ae[ie+"AxisIndex"]=oe.componentIndex,ae.axisName=ae[ie+"AxisName"]=oe.name,ae.axisId=ae[ie+"AxisId"]=oe.id,ae}function illegalPoint($){return!$||$[0]==null||isNaN($[0])||$[1]==null||isNaN($[1])}function install$f($){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),$.registerComponentModel(AxisPointerModel$1),$.registerComponentView(AxisPointerView$1),$.registerPreprocessor(function(oe){if(oe){(!oe.axisPointer||oe.axisPointer.length===0)&&(oe.axisPointer={});var ae=oe.axisPointer.link;ae&&!isArray$1(ae)&&(oe.axisPointer.link=[ae])}}),$.registerProcessor($.PRIORITY.PROCESSOR.STATISTIC,function(oe,ae){oe.getComponent("axisPointer").coordSysAxesInfo=collect(oe,ae)}),$.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e($){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption($,oe){var ae=$.existing;if(oe.id=$.keyInfo.id,!oe.type&&ae&&(oe.type=ae.type),oe.parentId==null){var ie=oe.parentOption;ie?oe.parentId=ie.id:ae&&(oe.parentId=ae.parentId)}oe.parentOption=null}function isSetLoc($,oe){var ae;return each$c(oe,function(ie){$[ie]!=null&&$[ie]!=="auto"&&(ae=!0)}),ae}function mergeNewElOptionToExist($,oe,ae){var ie=extend({},ae),le=$[oe],pe=ae.$action||"merge";pe==="merge"?le?(merge(le,ie,!0),mergeLayoutParam(le,ie,{ignoreSize:!0}),copyLayoutParams(ae,le),copyTransitionInfo(ae,le),copyTransitionInfo(ae,le,"shape"),copyTransitionInfo(ae,le,"style"),copyTransitionInfo(ae,le,"extra"),ae.clipPath=le.clipPath):$[oe]=ie:pe==="replace"?$[oe]=ie:pe==="remove"&&le&&($[oe]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo($,oe,ae){if(ae&&(!$[ae]&&oe[ae]&&($[ae]={}),$=$[ae],oe=oe[ae]),!(!$||!oe))for(var ie=ae?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,le=0;le<ie.length;le++){var pe=ie[le];$[pe]==null&&oe[pe]!=null&&($[pe]=oe[pe])}}function setLayoutInfoToExist($,oe){if($&&($.hv=oe.hv=[isSetLoc(oe,["left","right"]),isSetLoc(oe,["top","bottom"])],$.type==="group")){var ae=$,ie=oe;ae.width==null&&(ae.width=ie.width=0),ae.height==null&&(ae.height=ie.height=0)}}var GraphicComponentModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.preventAutoZ=!0,ae}return oe.prototype.mergeOption=function(ae,ie){var le=this.option.elements;this.option.elements=null,$.prototype.mergeOption.call(this,ae,ie),this.option.elements=le},oe.prototype.optionUpdated=function(ae,ie){var le=this.option,pe=(ie?le:ae).elements,_e=le.elements=ie?[]:le.elements,Ce=[];this._flatten(pe,Ce,null);var $e=mappingToExists(_e,Ce,"normalMerge"),xe=this._elOptionsToUpdate=[];each$c($e,function(Ie,Ne){var Fe=Ie.newOption;Fe&&(xe.push(Fe),setKeyInfoToNewElOption(Ie,Fe),mergeNewElOptionToExist(_e,Ne,Fe),setLayoutInfoToExist(_e[Ne],Fe))},this),le.elements=filter(_e,function(Ie){return Ie&&delete Ie.$action,Ie!=null})},oe.prototype._flatten=function(ae,ie,le){each$c(ae,function(pe){if(pe){le&&(pe.parentOption=le),ie.push(pe);var _e=pe.children;_e&&_e.length&&this._flatten(_e,ie,pe),delete pe.children}},this)},oe.prototype.useElOptionsToUpdate=function(){var ae=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,ae},oe.type="graphic",oe.defaultOption={elements:[]},oe}(ComponentModel$1),nonShapeGraphicElements={path:null,compoundPath:null,group:Group$3,image:ZRImage$1,text:ZRText$1},inner$2=makeInner(),GraphicComponentView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.init=function(){this._elMap=createHashMap()},oe.prototype.render=function(ae,ie,le){ae!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=ae,this._updateElements(ae),this._relocate(ae,le)},oe.prototype._updateElements=function(ae){var ie=ae.useElOptionsToUpdate();if(ie){var le=this._elMap,pe=this.group,_e=ae.get("z"),Ce=ae.get("zlevel");each$c(ie,function($e){var xe=convertOptionIdName($e.id,null),Ie=xe!=null?le.get(xe):null,Ne=convertOptionIdName($e.parentId,null),Fe=Ne!=null?le.get(Ne):pe,ze=$e.type,At=$e.style;ze==="text"&&At&&$e.hv&&$e.hv[1]&&(At.textVerticalAlign=At.textBaseline=At.verticalAlign=At.align=null);var Lt=$e.textContent,hn=$e.textConfig;if(At&&isEC4CompatibleStyle(At,ze,!!hn,!!Lt)){var vn=convertFromEC4CompatibleStyle(At,ze,!0);!hn&&vn.textConfig&&(hn=$e.textConfig=vn.textConfig),!Lt&&vn.textContent&&(Lt=vn.textContent)}var _n=getCleanedElOption($e),bn=$e.$action||"merge",Cn=bn==="merge",En=bn==="replace";if(Cn){var $n=!Ie,wn=Ie;$n?wn=createEl(xe,Fe,$e.type,le):(wn&&(inner$2(wn).isNew=!1),stopPreviousKeyframeAnimationAndRestore(wn)),wn&&(applyUpdateTransition(wn,_n,ae,{isInit:$n}),updateCommonAttrs(wn,$e,_e,Ce))}else if(En){removeEl(Ie,$e,le,ae);var Tn=createEl(xe,Fe,$e.type,le);Tn&&(applyUpdateTransition(Tn,_n,ae,{isInit:!0}),updateCommonAttrs(Tn,$e,_e,Ce))}else bn==="remove"&&(updateLeaveTo(Ie,$e),removeEl(Ie,$e,le,ae));var xn=le.get(xe);if(xn&&Lt)if(Cn){var kn=xn.getTextContent();kn?kn.attr(Lt):xn.setTextContent(new ZRText$1(Lt))}else En&&xn.setTextContent(new ZRText$1(Lt));if(xn){var An=$e.clipPath;if(An){var On=An.type,Nn=void 0,$n=!1;if(Cn){var Rn=xn.getClipPath();$n=!Rn||inner$2(Rn).type!==On,Nn=$n?newEl(On):Rn}else En&&($n=!0,Nn=newEl(On));xn.setClipPath(Nn),applyUpdateTransition(Nn,An,ae,{isInit:$n}),applyKeyframeAnimation(Nn,An.keyframeAnimation,ae)}var zn=inner$2(xn);xn.setTextConfig(hn),zn.option=$e,setEventData(xn,ae,$e),setTooltipConfig({el:xn,componentModel:ae,itemName:xn.name,itemTooltipOption:$e.tooltip}),applyKeyframeAnimation(xn,$e.keyframeAnimation,ae)}})}},oe.prototype._relocate=function(ae,ie){for(var le=ae.option.elements,pe=this.group,_e=this._elMap,Ce=ie.getWidth(),$e=ie.getHeight(),xe=["x","y"],Ie=0;Ie<le.length;Ie++){var Ne=le[Ie],Fe=convertOptionIdName(Ne.id,null),ze=Fe!=null?_e.get(Fe):null;if(!(!ze||!ze.isGroup)){var At=ze.parent,Lt=At===pe,hn=inner$2(ze),vn=inner$2(At);hn.width=parsePercent(hn.option.width,Lt?Ce:vn.width)||0,hn.height=parsePercent(hn.option.height,Lt?$e:vn.height)||0}}for(var Ie=le.length-1;Ie>=0;Ie--){var Ne=le[Ie],Fe=convertOptionIdName(Ne.id,null),ze=Fe!=null?_e.get(Fe):null;if(ze){var At=ze.parent,vn=inner$2(At),_n=At===pe?{width:Ce,height:$e}:{width:vn.width,height:vn.height},bn={},Cn=positionElement(ze,Ne,_n,null,{hv:Ne.hv,boundingMode:Ne.bounding},bn);if(!inner$2(ze).isNew&&Cn){for(var En=Ne.transition,$n={},wn=0;wn<xe.length;wn++){var Tn=xe[wn],xn=bn[Tn];En&&(isTransitionAll(En)||indexOf(En,Tn)>=0)?$n[Tn]=xn:ze[Tn]=xn}updateProps$1(ze,$n,ae,0)}else ze.attr(bn)}}},oe.prototype._clear=function(){var ae=this,ie=this._elMap;ie.each(function(le){removeEl(le,inner$2(le).option,ie,ae._lastGraphicModel)}),this._elMap=createHashMap()},oe.prototype.dispose=function(){this._clear()},oe.type="graphic",oe}(ComponentView$1);function newEl($){var oe=hasOwn(nonShapeGraphicElements,$)?nonShapeGraphicElements[$]:getShapeClass($),ae=new oe({});return inner$2(ae).type=$,ae}function createEl($,oe,ae,ie){var le=newEl(ae);return oe.add(le),ie.set($,le),inner$2(le).id=$,inner$2(le).isNew=!0,le}function removeEl($,oe,ae,ie){var le=$&&$.parent;le&&($.type==="group"&&$.traverse(function(pe){removeEl(pe,oe,ae,ie)}),applyLeaveTransition($,oe,ie),ae.removeKey(inner$2($).id))}function updateCommonAttrs($,oe,ae,ie){$.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",ie||0],["z",ae||0],["z2",0]],function(le){var pe=le[0];hasOwn(oe,pe)?$[pe]=retrieve2(oe[pe],le[1]):$[pe]==null&&($[pe]=le[1])}),each$c(keys(oe),function(le){if(le.indexOf("on")===0){var pe=oe[le];$[le]=isFunction(pe)?pe:null}}),hasOwn(oe,"draggable")&&($.draggable=oe.draggable),oe.name!=null&&($.name=oe.name),oe.id!=null&&($.id=oe.id)}function getCleanedElOption($){return $=extend({},$),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(oe){delete $[oe]}),$}function setEventData($,oe,ae){var ie=getECData($).eventData;!$.silent&&!$.ignore&&!ie&&(ie=getECData($).eventData={componentType:"graphic",componentIndex:oe.componentIndex,name:$.name}),ie&&(ie.info=ae.info)}function install$d($){$.registerComponentModel(GraphicComponentModel),$.registerComponentView(GraphicComponentView),$.registerPreprocessor(function(oe){var ae=oe.graphic;isArray$1(ae)?!ae[0]||!ae[0].elements?oe.graphic=[{elements:ae}]:oe.graphic=[oe.graphic[0]]:ae&&!ae.elements&&(oe.graphic=[{elements:[ae]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported($){var oe=$.get("coordinateSystem");return indexOf(SERIES_COORDS,oe)>=0}function getAxisMainType($){return $+"Axis"}function findEffectedDataZooms($,oe){var ae=createHashMap(),ie=[],le=createHashMap();$.eachComponent({mainType:"dataZoom",query:oe},function(Ie){le.get(Ie.uid)||Ce(Ie)});var pe;do pe=!1,$.eachComponent("dataZoom",_e);while(pe);function _e(Ie){!le.get(Ie.uid)&&$e(Ie)&&(Ce(Ie),pe=!0)}function Ce(Ie){le.set(Ie.uid,!0),ie.push(Ie),xe(Ie)}function $e(Ie){var Ne=!1;return Ie.eachTargetAxis(function(Fe,ze){var At=ae.get(Fe);At&&At[ze]&&(Ne=!0)}),Ne}function xe(Ie){Ie.eachTargetAxis(function(Ne,Fe){(ae.get(Ne)||ae.set(Ne,[]))[Fe]=!0})}return ie}function collectReferCoordSysModelInfo($){var oe=$.ecModel,ae={infoList:[],infoMap:createHashMap()};return $.eachTargetAxis(function(ie,le){var pe=oe.getComponent(getAxisMainType(ie),le);if(pe){var _e=pe.getCoordSysModel();if(_e){var Ce=_e.uid,$e=ae.infoMap.get(Ce);$e||($e={model:_e,axisModels:[]},ae.infoList.push($e),ae.infoMap.set(Ce,$e)),$e.axisModels.push(pe)}}}),ae}var DataZoomAxisInfo=function(){function $(){this.indexList=[],this.indexMap=[]}return $.prototype.add=function(oe){this.indexMap[oe]||(this.indexList.push(oe),this.indexMap[oe]=!0)},$}(),DataZoomModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae._autoThrottle=!0,ae._noTarget=!0,ae._rangePropMode=["percent","percent"],ae}return oe.prototype.init=function(ae,ie,le){var pe=retrieveRawOption(ae);this.settledOption=pe,this.mergeDefaultAndTheme(ae,le),this._doInit(pe)},oe.prototype.mergeOption=function(ae){var ie=retrieveRawOption(ae);merge(this.option,ae,!0),merge(this.settledOption,ie,!0),this._doInit(ie)},oe.prototype._doInit=function(ae){var ie=this.option;this._setDefaultThrottle(ae),this._updateRangeUse(ae);var le=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(pe,_e){this._rangePropMode[_e]==="value"&&(ie[pe[0]]=le[pe[0]]=null)},this),this._resetTarget()},oe.prototype._resetTarget=function(){var ae=this.get("orient",!0),ie=this._targetAxisInfoMap=createHashMap(),le=this._fillSpecifiedTargetAxis(ie);le?this._orient=ae||this._makeAutoOrientByTargetAxis():(this._orient=ae||"horizontal",this._fillAutoTargetAxisByOrient(ie,this._orient)),this._noTarget=!0,ie.each(function(pe){pe.indexList.length&&(this._noTarget=!1)},this)},oe.prototype._fillSpecifiedTargetAxis=function(ae){var ie=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(le){var pe=this.getReferringComponents(getAxisMainType(le),MULTIPLE_REFERRING);if(pe.specified){ie=!0;var _e=new DataZoomAxisInfo;each$c(pe.models,function(Ce){_e.add(Ce.componentIndex)}),ae.set(le,_e)}},this),ie},oe.prototype._fillAutoTargetAxisByOrient=function(ae,ie){var le=this.ecModel,pe=!0;if(pe){var _e=ie==="vertical"?"y":"x",Ce=le.findComponents({mainType:_e+"Axis"});$e(Ce,_e)}if(pe){var Ce=le.findComponents({mainType:"singleAxis",filter:function(Ie){return Ie.get("orient",!0)===ie}});$e(Ce,"single")}function $e(xe,Ie){var Ne=xe[0];if(Ne){var Fe=new DataZoomAxisInfo;if(Fe.add(Ne.componentIndex),ae.set(Ie,Fe),pe=!1,Ie==="x"||Ie==="y"){var ze=Ne.getReferringComponents("grid",SINGLE_REFERRING).models[0];ze&&each$c(xe,function(At){Ne.componentIndex!==At.componentIndex&&ze===At.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&Fe.add(At.componentIndex)})}}}pe&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(xe){if(pe){var Ie=le.findComponents({mainType:getAxisMainType(xe),filter:function(Fe){return Fe.get("type",!0)==="category"}});if(Ie[0]){var Ne=new DataZoomAxisInfo;Ne.add(Ie[0].componentIndex),ae.set(xe,Ne),pe=!1}}},this)},oe.prototype._makeAutoOrientByTargetAxis=function(){var ae;return this.eachTargetAxis(function(ie){!ae&&(ae=ie)},this),ae==="y"?"vertical":"horizontal"},oe.prototype._setDefaultThrottle=function(ae){if(ae.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var ie=this.ecModel.option;this.option.throttle=ie.animation&&ie.animationDurationUpdate>0?100:20}},oe.prototype._updateRangeUse=function(ae){var ie=this._rangePropMode,le=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(pe,_e){var Ce=ae[pe[0]]!=null,$e=ae[pe[1]]!=null;Ce&&!$e?ie[_e]="percent":!Ce&&$e?ie[_e]="value":le?ie[_e]=le[_e]:Ce&&(ie[_e]="percent")})},oe.prototype.noTarget=function(){return this._noTarget},oe.prototype.getFirstTargetAxisModel=function(){var ae;return this.eachTargetAxis(function(ie,le){ae==null&&(ae=this.ecModel.getComponent(getAxisMainType(ie),le))},this),ae},oe.prototype.eachTargetAxis=function(ae,ie){this._targetAxisInfoMap.each(function(le,pe){each$c(le.indexList,function(_e){ae.call(ie,pe,_e)})})},oe.prototype.getAxisProxy=function(ae,ie){var le=this.getAxisModel(ae,ie);if(le)return le.__dzAxisProxy},oe.prototype.getAxisModel=function(ae,ie){var le=this._targetAxisInfoMap.get(ae);if(le&&le.indexMap[ie])return this.ecModel.getComponent(getAxisMainType(ae),ie)},oe.prototype.setRawRange=function(ae){var ie=this.option,le=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(pe){(ae[pe[0]]!=null||ae[pe[1]]!=null)&&(ie[pe[0]]=le[pe[0]]=ae[pe[0]],ie[pe[1]]=le[pe[1]]=ae[pe[1]])},this),this._updateRangeUse(ae)},oe.prototype.setCalculatedRange=function(ae){var ie=this.option;each$c(["start","startValue","end","endValue"],function(le){ie[le]=ae[le]})},oe.prototype.getPercentRange=function(){var ae=this.findRepresentativeAxisProxy();if(ae)return ae.getDataPercentWindow()},oe.prototype.getValueRange=function(ae,ie){if(ae==null&&ie==null){var le=this.findRepresentativeAxisProxy();if(le)return le.getDataValueWindow()}else return this.getAxisProxy(ae,ie).getDataValueWindow()},oe.prototype.findRepresentativeAxisProxy=function(ae){if(ae)return ae.__dzAxisProxy;for(var ie,le=this._targetAxisInfoMap.keys(),pe=0;pe<le.length;pe++)for(var _e=le[pe],Ce=this._targetAxisInfoMap.get(_e),$e=0;$e<Ce.indexList.length;$e++){var xe=this.getAxisProxy(_e,Ce.indexList[$e]);if(xe.hostedBy(this))return xe;ie||(ie=xe)}return ie},oe.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},oe.prototype.getOrient=function(){return this._orient},oe.type="dataZoom",oe.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],oe.defaultOption={z:4,filterMode:"filter",start:0,end:100},oe}(ComponentModel$1);function retrieveRawOption($){var oe={};return each$c(["start","end","startValue","endValue","throttle"],function(ae){$.hasOwnProperty(ae)&&(oe[ae]=$[ae])}),oe}const DataZoomModel$1=DataZoomModel;var SelectDataZoomModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="dataZoom.select",oe}(DataZoomModel$1);const SelectZoomModel=SelectDataZoomModel;var DataZoomView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.render=function(ae,ie,le,pe){this.dataZoomModel=ae,this.ecModel=ie,this.api=le},oe.type="dataZoom",oe}(ComponentView$1);const DataZoomView$1=DataZoomView;var SelectDataZoomView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="dataZoom.select",oe}(DataZoomView$1);const SelectZoomView=SelectDataZoomView;var each$7=each$c,asc$1=asc$2,AxisProxy=function(){function $(oe,ae,ie,le){this._dimName=oe,this._axisIndex=ae,this.ecModel=le,this._dataZoomModel=ie}return $.prototype.hostedBy=function(oe){return this._dataZoomModel===oe},$.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},$.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},$.prototype.getTargetSeriesModels=function(){var oe=[];return this.ecModel.eachSeries(function(ae){if(isCoordSupported(ae)){var ie=getAxisMainType(this._dimName),le=ae.getReferringComponents(ie,SINGLE_REFERRING).models[0];le&&this._axisIndex===le.componentIndex&&oe.push(ae)}},this),oe},$.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},$.prototype.getMinMaxSpan=function(){return clone$3(this._minMaxSpan)},$.prototype.calculateDataWindow=function(oe){var ae=this._dataExtent,ie=this.getAxisModel(),le=ie.axis.scale,pe=this._dataZoomModel.getRangePropMode(),_e=[0,100],Ce=[],$e=[],xe;each$7(["start","end"],function(Fe,ze){var At=oe[Fe],Lt=oe[Fe+"Value"];pe[ze]==="percent"?(At==null&&(At=_e[ze]),Lt=le.parse(linearMap$2(At,_e,ae))):(xe=!0,Lt=Lt==null?ae[ze]:le.parse(Lt),At=linearMap$2(Lt,ae,_e)),$e[ze]=Lt==null||isNaN(Lt)?ae[ze]:Lt,Ce[ze]=At==null||isNaN(At)?_e[ze]:At}),asc$1($e),asc$1(Ce);var Ie=this._minMaxSpan;xe?Ne($e,Ce,ae,_e,!1):Ne(Ce,$e,_e,ae,!0);function Ne(Fe,ze,At,Lt,hn){var vn=hn?"Span":"ValueSpan";sliderMove(0,Fe,At,"all",Ie["min"+vn],Ie["max"+vn]);for(var _n=0;_n<2;_n++)ze[_n]=linearMap$2(Fe[_n],At,Lt,!0),hn&&(ze[_n]=le.parse(ze[_n]))}return{valueWindow:$e,percentWindow:Ce}},$.prototype.reset=function(oe){if(oe===this._dataZoomModel){var ae=this.getTargetSeriesModels();this._dataExtent=calculateDataExtent(this,this._dimName,ae),this._updateMinMaxSpan();var ie=this.calculateDataWindow(oe.settledOption);this._valueWindow=ie.valueWindow,this._percentWindow=ie.percentWindow,this._setAxisModel()}},$.prototype.filterData=function(oe,ae){if(oe!==this._dataZoomModel)return;var ie=this._dimName,le=this.getTargetSeriesModels(),pe=oe.get("filterMode"),_e=this._valueWindow;if(pe==="none")return;each$7(le,function($e){var xe=$e.getData(),Ie=xe.mapDimensionsAll(ie);if(Ie.length){if(pe==="weakFilter"){var Ne=xe.getStore(),Fe=map$2(Ie,function(ze){return xe.getDimensionIndex(ze)},xe);xe.filterSelf(function(ze){for(var At,Lt,hn,vn=0;vn<Ie.length;vn++){var _n=Ne.get(Fe[vn],ze),bn=!isNaN(_n),Cn=_n<_e[0],En=_n>_e[1];if(bn&&!Cn&&!En)return!0;bn&&(hn=!0),Cn&&(At=!0),En&&(Lt=!0)}return hn&&At&&Lt})}else each$7(Ie,function(ze){if(pe==="empty")$e.setData(xe=xe.map(ze,function(Lt){return Ce(Lt)?Lt:NaN}));else{var At={};At[ze]=_e,xe.selectRange(At)}});each$7(Ie,function(ze){xe.setApproximateExtent(_e,ze)})}});function Ce($e){return $e>=_e[0]&&$e<=_e[1]}},$.prototype._updateMinMaxSpan=function(){var oe=this._minMaxSpan={},ae=this._dataZoomModel,ie=this._dataExtent;each$7(["min","max"],function(le){var pe=ae.get(le+"Span"),_e=ae.get(le+"ValueSpan");_e!=null&&(_e=this.getAxisModel().axis.scale.parse(_e)),_e!=null?pe=linearMap$2(ie[0]+_e,ie,[0,100],!0):pe!=null&&(_e=linearMap$2(pe,[0,100],ie,!0)-ie[0]),oe[le+"Span"]=pe,oe[le+"ValueSpan"]=_e},this)},$.prototype._setAxisModel=function(){var oe=this.getAxisModel(),ae=this._percentWindow,ie=this._valueWindow;if(ae){var le=getPixelPrecision(ie,[0,500]);le=Math.min(le,20);var pe=oe.axis.scale.rawExtentInfo;ae[0]!==0&&pe.setDeterminedMinMax("min",+ie[0].toFixed(le)),ae[1]!==100&&pe.setDeterminedMinMax("max",+ie[1].toFixed(le)),pe.freeze()}},$}();function calculateDataExtent($,oe,ae){var ie=[1/0,-1/0];each$7(ae,function(_e){unionAxisExtentFromData(ie,_e.getData(),oe)});var le=$.getAxisModel(),pe=ensureScaleRawExtentInfo(le.axis.scale,le,ie).calculate();return[pe.min,pe.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function($){function oe(le){$.eachComponent("dataZoom",function(pe){pe.eachTargetAxis(function(_e,Ce){var $e=$.getComponent(getAxisMainType(_e),Ce);le(_e,Ce,$e,pe)})})}oe(function(le,pe,_e,Ce){_e.__dzAxisProxy=null});var ae=[];oe(function(le,pe,_e,Ce){_e.__dzAxisProxy||(_e.__dzAxisProxy=new AxisProxy$1(le,pe,Ce,$),ae.push(_e.__dzAxisProxy))});var ie=createHashMap();return each$c(ae,function(le){each$c(le.getTargetSeriesModels(),function(pe){ie.set(pe.uid,pe)})}),ie},overallReset:function($,oe){$.eachComponent("dataZoom",function(ae){ae.eachTargetAxis(function(ie,le){ae.getAxisProxy(ie,le).reset(ae)}),ae.eachTargetAxis(function(ie,le){ae.getAxisProxy(ie,le).filterData(ae,oe)})}),$.eachComponent("dataZoom",function(ae){var ie=ae.findRepresentativeAxisProxy();if(ie){var le=ie.getDataPercentWindow(),pe=ie.getDataValueWindow();ae.setCalculatedRange({start:le[0],end:le[1],startValue:pe[0],endValue:pe[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction($){$.registerAction("dataZoom",function(oe,ae){var ie=findEffectedDataZooms(ae,oe);each$c(ie,function(le){le.setRawRange({start:oe.start,end:oe.end,startValue:oe.startValue,endValue:oe.endValue})})})}var installed$1=!1;function installCommon$1($){installed$1||(installed$1=!0,$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction($),$.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c($){$.registerComponentModel(SelectZoomModel),$.registerComponentView(SelectZoomView),installCommon$1($)}var ToolboxFeature=function(){function $(){}return $}(),features={};function registerFeature($,oe){features[$]=oe}function getFeature($){return features[$]}var ToolboxModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.optionUpdated=function(){$.prototype.optionUpdated.apply(this,arguments);var ae=this.ecModel;each$c(this.option.feature,function(ie,le){var pe=getFeature(le);pe&&(pe.getDefaultOption&&(pe.defaultOption=pe.getDefaultOption(ae)),merge(ie,pe.defaultOption))})},oe.type="toolbox",oe.layoutMode={type:"box",ignoreSize:!0},oe.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},oe}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout($,oe,ae){var ie=oe.getBoxLayoutParams(),le=oe.get("padding"),pe={width:ae.getWidth(),height:ae.getHeight()},_e=getLayoutRect(ie,pe,le);box(oe.get("orient"),$,oe.get("itemGap"),_e.width,_e.height),positionElement($,ie,pe,le)}function makeBackground($,oe){var ae=normalizeCssArray(oe.get("padding")),ie=oe.getItemStyle(["color","opacity"]);return ie.fill=oe.get("backgroundColor"),$=new Rect$2({shape:{x:$.x-ae[3],y:$.y-ae[0],width:$.width+ae[1]+ae[3],height:$.height+ae[0]+ae[2],r:oe.get("borderRadius")},style:ie,silent:!0,z2:-1}),$}var ToolboxView=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.render=function(ae,ie,le,pe){var _e=this.group;if(_e.removeAll(),!ae.get("show"))return;var Ce=+ae.get("itemSize"),$e=ae.get("orient")==="vertical",xe=ae.get("feature")||{},Ie=this._features||(this._features={}),Ne=[];each$c(xe,function(At,Lt){Ne.push(Lt)}),new DataDiffer$1(this._featureNames||[],Ne).add(Fe).update(Fe).remove(curry$1(Fe,null)).execute(),this._featureNames=Ne;function Fe(At,Lt){var hn=Ne[At],vn=Ne[Lt],_n=xe[hn],bn=new Model$1(_n,ae,ae.ecModel),Cn;if(pe&&pe.newTitle!=null&&pe.featureName===hn&&(_n.title=pe.newTitle),hn&&!vn){if(isUserFeatureName(hn))Cn={onclick:bn.option.onclick,featureName:hn};else{var En=getFeature(hn);if(!En)return;Cn=new En}Ie[hn]=Cn}else if(Cn=Ie[vn],!Cn)return;Cn.uid=getUID("toolbox-feature"),Cn.model=bn,Cn.ecModel=ie,Cn.api=le;var $n=Cn instanceof ToolboxFeature;if(!hn&&vn){$n&&Cn.dispose&&Cn.dispose(ie,le);return}if(!bn.get("show")||$n&&Cn.unusable){$n&&Cn.remove&&Cn.remove(ie,le);return}ze(bn,Cn,hn),bn.setIconStatus=function(wn,Tn){var xn=this.option,kn=this.iconPaths;xn.iconStatus=xn.iconStatus||{},xn.iconStatus[wn]=Tn,kn[wn]&&(Tn==="emphasis"?enterEmphasis:leaveEmphasis)(kn[wn])},Cn instanceof ToolboxFeature&&Cn.render&&Cn.render(bn,ie,le,pe)}function ze(At,Lt,hn){var vn=At.getModel("iconStyle"),_n=At.getModel(["emphasis","iconStyle"]),bn=Lt instanceof ToolboxFeature&&Lt.getIcons?Lt.getIcons():At.get("icon"),Cn=At.get("title")||{},En,$n;isString(bn)?(En={},En[hn]=bn):En=bn,isString(Cn)?($n={},$n[hn]=Cn):$n=Cn;var wn=At.iconPaths={};each$c(En,function(Tn,xn){var kn=createIcon(Tn,{},{x:-Ce/2,y:-Ce/2,width:Ce,height:Ce});kn.setStyle(vn.getItemStyle());var An=kn.ensureState("emphasis");An.style=_n.getItemStyle();var On=new ZRText$1({style:{text:$n[xn],align:_n.get("textAlign"),borderRadius:_n.get("textBorderRadius"),padding:_n.get("textPadding"),fill:null},ignore:!0});kn.setTextContent(On),setTooltipConfig({el:kn,componentModel:ae,itemName:xn,formatterParamsExtra:{title:$n[xn]}}),kn.__title=$n[xn],kn.on("mouseover",function(){var Nn=_n.getItemStyle(),Rn=$e?ae.get("right")==null&&ae.get("left")!=="right"?"right":"left":ae.get("bottom")==null&&ae.get("top")!=="bottom"?"bottom":"top";On.setStyle({fill:_n.get("textFill")||Nn.fill||Nn.stroke||"#000",backgroundColor:_n.get("textBackgroundColor")}),kn.setTextConfig({position:_n.get("textPosition")||Rn}),On.ignore=!ae.get("showTitle"),le.enterEmphasis(this)}).on("mouseout",function(){At.get(["iconStatus",xn])!=="emphasis"&&le.leaveEmphasis(this),On.hide()}),(At.get(["iconStatus",xn])==="emphasis"?enterEmphasis:leaveEmphasis)(kn),_e.add(kn),kn.on("click",bind$1(Lt.onclick,Lt,ie,le,xn)),wn[xn]=kn})}layout(_e,ae,le),_e.add(makeBackground(_e.getBoundingRect(),ae)),$e||_e.eachChild(function(At){var Lt=At.__title,hn=At.ensureState("emphasis"),vn=hn.textConfig||(hn.textConfig={}),_n=At.getTextContent(),bn=_n&&_n.ensureState("emphasis");if(bn&&!isFunction(bn)&&Lt){var Cn=bn.style||(bn.style={}),En=getBoundingRect(Lt,ZRText$1.makeFont(Cn)),$n=At.x+_e.x,wn=At.y+_e.y+Ce,Tn=!1;wn+En.height>le.getHeight()&&(vn.position="top",Tn=!0);var xn=Tn?-5-En.height:Ce+10;$n+En.width/2>le.getWidth()?(vn.position=["100%",xn],Cn.align="right"):$n-En.width/2<0&&(vn.position=[0,xn],Cn.align="left")}})},oe.prototype.updateView=function(ae,ie,le,pe){each$c(this._features,function(_e){_e instanceof ToolboxFeature&&_e.updateView&&_e.updateView(_e.model,ie,le,pe)})},oe.prototype.remove=function(ae,ie){each$c(this._features,function(le){le instanceof ToolboxFeature&&le.remove&&le.remove(ae,ie)}),this.group.removeAll()},oe.prototype.dispose=function(ae,ie){each$c(this._features,function(le){le instanceof ToolboxFeature&&le.dispose&&le.dispose(ae,ie)})},oe.type="toolbox",oe}(ComponentView$1);function isUserFeatureName($){return $.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.onclick=function(ae,ie){var le=this.model,pe=le.get("name")||ae.get("title.0.text")||"echarts",_e=ie.getZr().painter.getType()==="svg",Ce=_e?"svg":le.get("type",!0)||"png",$e=ie.getConnectedDataURL({type:Ce,backgroundColor:le.get("backgroundColor",!0)||ae.get("backgroundColor")||"#fff",connectedBackgroundColor:le.get("connectedBackgroundColor"),excludeComponents:le.get("excludeComponents"),pixelRatio:le.get("pixelRatio")}),xe=env$1.browser;if(isFunction(MouseEvent)&&(xe.newEdge||!xe.ie&&!xe.edge)){var Ie=document.createElement("a");Ie.download=pe+"."+Ce,Ie.target="_blank",Ie.href=$e;var Ne=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});Ie.dispatchEvent(Ne)}else if(window.navigator.msSaveOrOpenBlob||_e){var Fe=$e.split(","),ze=Fe[0].indexOf("base64")>-1,At=_e?decodeURIComponent(Fe[1]):Fe[1];ze&&(At=window.atob(At));var Lt=pe+"."+Ce;if(window.navigator.msSaveOrOpenBlob){for(var hn=At.length,vn=new Uint8Array(hn);hn--;)vn[hn]=At.charCodeAt(hn);var _n=new Blob([vn]);window.navigator.msSaveOrOpenBlob(_n,Lt)}else{var bn=document.createElement("iframe");document.body.appendChild(bn);var Cn=bn.contentWindow,En=Cn.document;En.open("image/svg+xml","replace"),En.write(At),En.close(),Cn.focus(),En.execCommand("SaveAs",!0,Lt),document.body.removeChild(bn)}}else{var $n=le.get("lang"),wn='<body style="margin:0;"><img src="'+$e+'" style="max-width:100%;" title="'+($n&&$n[0]||"")+'" /></body>',Tn=window.open();Tn.document.write(wn),Tn.document.title=pe}},oe.getDefaultOption=function(ae){var ie={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:ae.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:ae.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return ie},oe}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.getIcons=function(){var ae=this.model,ie=ae.get("icon"),le={};return each$c(ae.get("type"),function(pe){ie[pe]&&(le[pe]=ie[pe])}),le},oe.getDefaultOption=function(ae){var ie={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:ae.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return ie},oe.prototype.onclick=function(ae,ie,le){var pe=this.model,_e=pe.get(["seriesIndex",le]);if(seriesOptGenreator[le]){var Ce={series:[]},$e=function(Ne){var Fe=Ne.subType,ze=Ne.id,At=seriesOptGenreator[le](Fe,ze,Ne,pe);At&&(defaults(At,Ne.option),Ce.series.push(At));var Lt=Ne.coordinateSystem;if(Lt&&Lt.type==="cartesian2d"&&(le==="line"||le==="bar")){var hn=Lt.getAxesByScale("ordinal")[0];if(hn){var vn=hn.dim,_n=vn+"Axis",bn=Ne.getReferringComponents(_n,SINGLE_REFERRING).models[0],Cn=bn.componentIndex;Ce[_n]=Ce[_n]||[];for(var En=0;En<=Cn;En++)Ce[_n][Cn]=Ce[_n][Cn]||{};Ce[_n][Cn].boundaryGap=le==="bar"}}};each$c(radioTypes,function(Ne){indexOf(Ne,le)>=0&&each$c(Ne,function(Fe){pe.setIconStatus(Fe,"normal")})}),pe.setIconStatus(le,"emphasis"),ae.eachComponent({mainType:"series",query:_e==null?null:{seriesIndex:_e}},$e);var xe,Ie=le;le==="stack"&&(xe=merge({stack:pe.option.title.tiled,tiled:pe.option.title.stack},pe.option.title),pe.get(["iconStatus",le])!=="emphasis"&&(Ie="tiled")),ie.dispatchAction({type:"changeMagicType",currentType:Ie,newOption:Ce,newTitle:xe,featureName:"magicType"})}},oe}(ToolboxFeature),seriesOptGenreator={line:function($,oe,ae,ie){if($==="bar")return merge({id:oe,type:"line",data:ae.get("data"),stack:ae.get("stack"),markPoint:ae.get("markPoint"),markLine:ae.get("markLine")},ie.get(["option","line"])||{},!0)},bar:function($,oe,ae,ie){if($==="line")return merge({id:oe,type:"bar",data:ae.get("data"),stack:ae.get("stack"),markPoint:ae.get("markPoint"),markLine:ae.get("markLine")},ie.get(["option","bar"])||{},!0)},stack:function($,oe,ae,ie){var le=ae.get("stack")===INNER_STACK_KEYWORD;if($==="line"||$==="bar")return ie.setIconStatus("stack",le?"normal":"emphasis"),merge({id:oe,stack:le?"":INNER_STACK_KEYWORD},ie.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function($,oe){oe.mergeOption($.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries($){var oe={},ae=[],ie=[];return $.eachRawSeries(function(le){var pe=le.coordinateSystem;if(pe&&(pe.type==="cartesian2d"||pe.type==="polar")){var _e=pe.getBaseAxis();if(_e.type==="category"){var Ce=_e.dim+"_"+_e.index;oe[Ce]||(oe[Ce]={categoryAxis:_e,valueAxis:pe.getOtherAxis(_e),series:[]},ie.push({axisDim:_e.dim,axisIndex:_e.index})),oe[Ce].series.push(le)}else ae.push(le)}else ae.push(le)}),{seriesGroupByCategoryAxis:oe,other:ae,meta:ie}}function assembleSeriesWithCategoryAxis($){var oe=[];return each$c($,function(ae,ie){var le=ae.categoryAxis,pe=ae.valueAxis,_e=pe.dim,Ce=[" "].concat(map$2(ae.series,function(ze){return ze.name})),$e=[le.model.getCategories()];each$c(ae.series,function(ze){var At=ze.getRawData();$e.push(ze.getRawData().mapArray(At.mapDimension(_e),function(Lt){return Lt}))});for(var xe=[Ce.join(ITEM_SPLITER)],Ie=0;Ie<$e[0].length;Ie++){for(var Ne=[],Fe=0;Fe<$e.length;Fe++)Ne.push($e[Fe][Ie]);xe.push(Ne.join(ITEM_SPLITER))}oe.push(xe.join(`
`))}),oe.join(`
`+BLOCK_SPLITER+`
`)}function assembleOtherSeries($){return map$2($,function(oe){var ae=oe.getRawData(),ie=[oe.name],le=[];return ae.each(ae.dimensions,function(){for(var pe=arguments.length,_e=arguments[pe-1],Ce=ae.getName(_e),$e=0;$e<pe-1;$e++)le[$e]=arguments[$e];ie.push((Ce?Ce+ITEM_SPLITER:"")+le.join(ITEM_SPLITER))}),ie.join(`
`)}).join(`
`+BLOCK_SPLITER+`
`)}function getContentFromModel($){var oe=groupSeries($);return{value:filter([assembleSeriesWithCategoryAxis(oe.seriesGroupByCategoryAxis),assembleOtherSeries(oe.other)],function(ae){return!!ae.replace(/[\n\t\s]/g,"")}).join(`
`+BLOCK_SPLITER+`
`),meta:oe.meta}}function trim($){return $.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function isTSVFormat($){var oe=$.slice(0,$.indexOf(`
`));if(oe.indexOf(ITEM_SPLITER)>=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents($){for(var oe=$.split(/\n+/g),ae=trim(oe.shift()).split(itemSplitRegex),ie=[],le=map$2(ae,function($e){return{name:$e,data:[]}}),pe=0;pe<oe.length;pe++){var _e=trim(oe[pe]).split(itemSplitRegex);ie.push(_e.shift());for(var Ce=0;Ce<_e.length;Ce++)le[Ce]&&(le[Ce].data[pe]=_e[Ce])}return{series:le,categories:ie}}function parseListContents($){for(var oe=$.split(/\n+/g),ae=trim(oe.shift()),ie=[],le=0;le<oe.length;le++){var pe=trim(oe[le]);if(pe){var _e=pe.split(itemSplitRegex),Ce="",$e=void 0,xe=!1;isNaN(_e[0])?(xe=!0,Ce=_e[0],_e=_e.slice(1),ie[le]={name:Ce,value:[]},$e=ie[le].value):$e=ie[le]=[];for(var Ie=0;Ie<_e.length;Ie++)$e.push(+_e[Ie]);$e.length===1&&(xe?ie[le].value=$e[0]:ie[le]=$e[0])}}return{name:ae,data:ie}}function parseContents($,oe){var ae=$.split(new RegExp(`
*`+BLOCK_SPLITER+`
*`,"g")),ie={series:[]};return each$c(ae,function(le,pe){if(isTSVFormat(le)){var _e=parseTSVContents(le),Ce=oe[pe],$e=Ce.axisDim+"Axis";Ce&&(ie[$e]=ie[$e]||[],ie[$e][Ce.axisIndex]={data:_e.categories},ie.series=ie.series.concat(_e.series))}else{var _e=parseListContents(le);ie.series.push(_e)}}),ie}var DataView$1=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.onclick=function(ae,ie){setTimeout(function(){ie.dispatchAction({type:"hideTip"})});var le=ie.getDom(),pe=this.model;this._dom&&le.removeChild(this._dom);var _e=document.createElement("div");_e.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",_e.style.backgroundColor=pe.get("backgroundColor")||"#fff";var Ce=document.createElement("h4"),$e=pe.get("lang")||[];Ce.innerHTML=$e[0]||pe.get("title"),Ce.style.cssText="margin:10px 20px",Ce.style.color=pe.get("textColor");var xe=document.createElement("div"),Ie=document.createElement("textarea");xe.style.cssText="overflow:auto";var Ne=pe.get("optionToContent"),Fe=pe.get("contentToOption"),ze=getContentFromModel(ae);if(isFunction(Ne)){var At=Ne(ie.getOption());isString(At)?xe.innerHTML=At:isDom(At)&&xe.appendChild(At)}else{Ie.readOnly=pe.get("readOnly");var Lt=Ie.style;Lt.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",Lt.color=pe.get("textColor"),Lt.borderColor=pe.get("textareaBorderColor"),Lt.backgroundColor=pe.get("textareaColor"),Ie.value=ze.value,xe.appendChild(Ie)}var hn=ze.meta,vn=document.createElement("div");vn.style.cssText="position:absolute;bottom:5px;left:0;right:0";var _n="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",bn=document.createElement("div"),Cn=document.createElement("div");_n+=";background-color:"+pe.get("buttonColor"),_n+=";color:"+pe.get("buttonTextColor");var En=this;function $n(){le.removeChild(_e),En._dom=null}addEventListener(bn,"click",$n),addEventListener(Cn,"click",function(){if(Fe==null&&Ne!=null||Fe!=null&&Ne==null){$n();return}var wn;try{isFunction(Fe)?wn=Fe(xe,ie.getOption()):wn=parseContents(Ie.value,hn)}catch(Tn){throw $n(),new Error("Data view format error "+Tn)}wn&&ie.dispatchAction({type:"changeDataView",newOption:wn}),$n()}),bn.innerHTML=$e[1],Cn.innerHTML=$e[2],Cn.style.cssText=bn.style.cssText=_n,!pe.get("readOnly")&&vn.appendChild(Cn),vn.appendChild(bn),_e.appendChild(Ce),_e.appendChild(xe),_e.appendChild(vn),xe.style.height=le.clientHeight-80+"px",le.appendChild(_e),this._dom=_e},oe.prototype.remove=function(ae,ie){this._dom&&ie.getDom().removeChild(this._dom)},oe.prototype.dispose=function(ae,ie){this.remove(ae,ie)},oe.getDefaultOption=function(ae){var ie={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:ae.getLocaleModel().get(["toolbox","dataView","title"]),lang:ae.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return ie},oe}(ToolboxFeature);function tryMergeDataOption($,oe){return map$2($,function(ae,ie){var le=oe&&oe[ie];if(isObject$3(le)&&!isArray$1(le)){var pe=isObject$3(ae)&&!isArray$1(ae);pe||(ae={value:ae});var _e=le.name!=null&&ae.name==null;return ae=defaults(ae,le),_e&&delete ae.name,ae}else return ae})}registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function($,oe){var ae=[];each$c($.newOption.series,function(ie){var le=oe.getSeriesByName(ie.name)[0];if(!le)ae.push(extend({type:"scatter"},ie));else{var pe=le.get("data");ae.push({name:ie.name,data:tryMergeDataOption(ie.data,pe)})}}),oe.mergeOption(defaults({series:ae},$.newOption))});const DataView$2=DataView$1;var each$6=each$c,inner$1=makeInner();function push($,oe){var ae=getStoreSnapshots($);each$6(oe,function(ie,le){for(var pe=ae.length-1;pe>=0;pe--){var _e=ae[pe];if(_e[le])break}if(pe<0){var Ce=$.queryComponents({mainType:"dataZoom",subType:"select",id:le})[0];if(Ce){var $e=Ce.getPercentRange();ae[0][le]={dataZoomId:le,start:$e[0],end:$e[1]}}}}),ae.push(oe)}function pop($){var oe=getStoreSnapshots($),ae=oe[oe.length-1];oe.length>1&&oe.pop();var ie={};return each$6(ae,function(le,pe){for(var _e=oe.length-1;_e>=0;_e--)if(le=oe[_e][pe],le){ie[pe]=le;break}}),ie}function clear($){inner$1($).snapshots=null}function count($){return getStoreSnapshots($).length}function getStoreSnapshots($){var oe=inner$1($);return oe.snapshots||(oe.snapshots=[{}]),oe.snapshots}var RestoreOption=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.onclick=function(ae,ie){clear(ae),ie.dispatchAction({type:"restore",from:this.uid})},oe.getDefaultOption=function(ae){var ie={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:ae.getLocaleModel().get(["toolbox","restore","title"])};return ie},oe}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function($,oe){oe.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function $(oe,ae,ie){var le=this;this._targetInfoList=[];var pe=parseFinder(ae,oe);each$c(targetInfoBuilders,function(_e,Ce){(!ie||!ie.include||indexOf(ie.include,Ce)>=0)&&_e(pe,le._targetInfoList)})}return $.prototype.setOutputRanges=function(oe,ae){return this.matchOutputRanges(oe,ae,function(ie,le,pe){if((ie.coordRanges||(ie.coordRanges=[])).push(le),!ie.coordRange){ie.coordRange=le;var _e=coordConvert[ie.brushType](0,pe,le);ie.__rangeOffset={offset:diffProcessor[ie.brushType](_e.values,ie.range,[1,1]),xyMinMax:_e.xyMinMax}}}),oe},$.prototype.matchOutputRanges=function(oe,ae,ie){each$c(oe,function(le){var pe=this.findTargetInfo(le,ae);pe&&pe!==!0&&each$c(pe.coordSyses,function(_e){var Ce=coordConvert[le.brushType](1,_e,le.range,!0);ie(le,Ce.values,_e,ae)})},this)},$.prototype.setInputRanges=function(oe,ae){each$c(oe,function(ie){var le=this.findTargetInfo(ie,ae);if(ie.range=ie.range||[],le&&le!==!0){ie.panelId=le.panelId;var pe=coordConvert[ie.brushType](0,le.coordSys,ie.coordRange),_e=ie.__rangeOffset;ie.range=_e?diffProcessor[ie.brushType](pe.values,_e.offset,getScales(pe.xyMinMax,_e.xyMinMax)):pe.values}},this)},$.prototype.makePanelOpts=function(oe,ae){return map$2(this._targetInfoList,function(ie){var le=ie.getPanelRect();return{panelId:ie.panelId,defaultBrushType:ae?ae(ie):null,clipPath:makeRectPanelClipPath(le),isTargetByCursor:makeRectIsTargetByCursor(le,oe,ie.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(le)}})},$.prototype.controlSeries=function(oe,ae,ie){var le=this.findTargetInfo(oe,ie);return le===!0||le&&indexOf(le.coordSyses,ae.coordinateSystem)>=0},$.prototype.findTargetInfo=function(oe,ae){for(var ie=this._targetInfoList,le=parseFinder(ae,oe),pe=0;pe<ie.length;pe++){var _e=ie[pe],Ce=oe.panelId;if(Ce){if(_e.panelId===Ce)return _e}else for(var $e=0;$e<targetInfoMatchers.length;$e++)if(targetInfoMatchers[$e](le,_e))return _e}return!0},$}();function formatMinMax($){return $[0]>$[1]&&$.reverse(),$}function parseFinder($,oe){return parseFinder$1($,oe,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function($,oe){var ae=$.xAxisModels,ie=$.yAxisModels,le=$.gridModels,pe=createHashMap(),_e={},Ce={};!ae&&!ie&&!le||(each$c(ae,function($e){var xe=$e.axis.grid.model;pe.set(xe.id,xe),_e[xe.id]=!0}),each$c(ie,function($e){var xe=$e.axis.grid.model;pe.set(xe.id,xe),Ce[xe.id]=!0}),each$c(le,function($e){pe.set($e.id,$e),_e[$e.id]=!0,Ce[$e.id]=!0}),pe.each(function($e){var xe=$e.coordinateSystem,Ie=[];each$c(xe.getCartesians(),function(Ne,Fe){(indexOf(ae,Ne.getAxis("x").model)>=0||indexOf(ie,Ne.getAxis("y").model)>=0)&&Ie.push(Ne)}),oe.push({panelId:"grid--"+$e.id,gridModel:$e,coordSysModel:$e,coordSys:Ie[0],coordSyses:Ie,getPanelRect:panelRectBuilders.grid,xAxisDeclared:_e[$e.id],yAxisDeclared:Ce[$e.id]})}))},geo:function($,oe){each$c($.geoModels,function(ae){var ie=ae.coordinateSystem;oe.push({panelId:"geo--"+ae.id,geoModel:ae,coordSysModel:ae,coordSys:ie,coordSyses:[ie],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function($,oe){var ae=$.xAxisModel,ie=$.yAxisModel,le=$.gridModel;return!le&&ae&&(le=ae.axis.grid.model),!le&&ie&&(le=ie.axis.grid.model),le&&le===oe.gridModel},function($,oe){var ae=$.geoModel;return ae&&ae===oe.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var $=this.coordSys,oe=$.getBoundingRect().clone();return oe.applyTransform(getTransform$1($)),oe}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function($,oe,ae,ie){var le=$?oe.pointToData([ae[0][0],ae[1][0]],ie):oe.dataToPoint([ae[0][0],ae[1][0]],ie),pe=$?oe.pointToData([ae[0][1],ae[1][1]],ie):oe.dataToPoint([ae[0][1],ae[1][1]],ie),_e=[formatMinMax([le[0],pe[0]]),formatMinMax([le[1],pe[1]])];return{values:_e,xyMinMax:_e}},polygon:function($,oe,ae,ie){var le=[[1/0,-1/0],[1/0,-1/0]],pe=map$2(ae,function(_e){var Ce=$?oe.pointToData(_e,ie):oe.dataToPoint(_e,ie);return le[0][0]=Math.min(le[0][0],Ce[0]),le[1][0]=Math.min(le[1][0],Ce[1]),le[0][1]=Math.max(le[0][1],Ce[0]),le[1][1]=Math.max(le[1][1],Ce[1]),Ce});return{values:pe,xyMinMax:le}}};function axisConvert($,oe,ae,ie){var le=ae.getAxis(["x","y"][$]),pe=formatMinMax(map$2([0,1],function(Ce){return oe?le.coordToData(le.toLocalCoord(ie[Ce]),!0):le.toGlobalCoord(le.dataToCoord(ie[Ce]))})),_e=[];return _e[$]=pe,_e[1-$]=[NaN,NaN],{values:pe,xyMinMax:_e}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function($,oe,ae){return[[$[0][0]-ae[0]*oe[0][0],$[0][1]-ae[0]*oe[0][1]],[$[1][0]-ae[1]*oe[1][0],$[1][1]-ae[1]*oe[1][1]]]},polygon:function($,oe,ae){return map$2($,function(ie,le){return[ie[0]-ae[0]*oe[le][0],ie[1]-ae[1]*oe[le][1]]})}};function axisDiffProcessor($,oe,ae,ie){return[oe[0]-ie[$]*ae[0],oe[1]-ie[$]*ae[1]]}function getScales($,oe){var ae=getSize($),ie=getSize(oe),le=[ae[0]/ie[0],ae[1]/ie[1]];return isNaN(le[0])&&(le[0]=1),isNaN(le[1])&&(le[1]=1),le}function getSize($){return $?[$[0][1]-$[0][0],$[1][1]-$[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function($){__extends(oe,$);function oe(){return $!==null&&$.apply(this,arguments)||this}return oe.prototype.render=function(ae,ie,le,pe){this._brushController||(this._brushController=new BrushController$1(le.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus(ae,ie,this,pe,le),updateBackBtnStatus(ae,ie)},oe.prototype.onclick=function(ae,ie,le){handlers[le].call(this)},oe.prototype.remove=function(ae,ie){this._brushController&&this._brushController.unmount()},oe.prototype.dispose=function(ae,ie){this._brushController&&this._brushController.dispose()},oe.prototype._onBrush=function(ae){var ie=ae.areas;if(!ae.isEnd||!ie.length)return;var le={},pe=this.ecModel;this._brushController.updateCovers([]);var _e=new BrushTargetManager$1(makeAxisFinder(this.model),pe,{include:["grid"]});_e.matchOutputRanges(ie,pe,function(xe,Ie,Ne){if(Ne.type==="cartesian2d"){var Fe=xe.brushType;Fe==="rect"?(Ce("x",Ne,Ie[0]),Ce("y",Ne,Ie[1])):Ce({lineX:"x",lineY:"y"}[Fe],Ne,Ie)}}),push(pe,le),this._dispatchZoomAction(le);function Ce(xe,Ie,Ne){var Fe=Ie.getAxis(xe),ze=Fe.model,At=$e(xe,ze,pe),Lt=At.findRepresentativeAxisProxy(ze).getMinMaxSpan();(Lt.minValueSpan!=null||Lt.maxValueSpan!=null)&&(Ne=sliderMove(0,Ne.slice(),Fe.scale.getExtent(),0,Lt.minValueSpan,Lt.maxValueSpan)),At&&(le[At.id]={dataZoomId:At.id,startValue:Ne[0],endValue:Ne[1]})}function $e(xe,Ie,Ne){var Fe;return Ne.eachComponent({mainType:"dataZoom",subType:"select"},function(ze){var At=ze.getAxisModel(xe,Ie.componentIndex);At&&(Fe=ze)}),Fe}},oe.prototype._dispatchZoomAction=function(ae){var ie=[];each$5(ae,function(le,pe){ie.push(clone$3(le))}),ie.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:ie})},oe.getDefaultOption=function(ae){var ie={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:ae.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return ie},oe}(ToolboxFeature),handlers={zoom:function(){var $=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:$})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder($){var oe={xAxisIndex:$.get("xAxisIndex",!0),yAxisIndex:$.get("yAxisIndex",!0),xAxisId:$.get("xAxisId",!0),yAxisId:$.get("yAxisId",!0)};return oe.xAxisIndex==null&&oe.xAxisId==null&&(oe.xAxisIndex="all"),oe.yAxisIndex==null&&oe.yAxisId==null&&(oe.yAxisIndex="all"),oe}function updateBackBtnStatus($,oe){$.setIconStatus("back",count(oe)>1?"emphasis":"normal")}function updateZoomBtnStatus($,oe,ae,ie,le){var pe=ae._isZoomActive;ie&&ie.type==="takeGlobalCursor"&&(pe=ie.key==="dataZoomSelect"?ie.dataZoomSelectActive:!1),ae._isZoomActive=pe,$.setIconStatus("zoom",pe?"emphasis":"normal");var _e=new BrushTargetManager$1(makeAxisFinder($),oe,{include:["grid"]}),Ce=_e.makePanelOpts(le,function($e){return $e.xAxisDeclared&&!$e.yAxisDeclared?"lineX":!$e.xAxisDeclared&&$e.yAxisDeclared?"lineY":"rect"});ae._brushController.setPanels(Ce).enableBrush(pe&&Ce.length?{brushType:"auto",brushStyle:$.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function($){var oe=$.getComponent("toolbox",0),ae=["feature","dataZoom"];if(!oe||oe.get(ae)==null)return;var ie=oe.getModel(ae),le=[],pe=makeAxisFinder(ie),_e=parseFinder$1($,pe);each$5(_e.xAxisModels,function($e){return Ce($e,"xAxis","xAxisIndex")}),each$5(_e.yAxisModels,function($e){return Ce($e,"yAxis","yAxisIndex")});function Ce($e,xe,Ie){var Ne=$e.componentIndex,Fe={type:"select",$fromToolbox:!0,filterMode:ie.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+xe+Ne};Fe[Ie]=Ne,le.push(Fe)}return le});const DataZoom=DataZoomFeature;function install$b($){$.registerComponentModel(ToolboxModel$1),$.registerComponentView(ToolboxView$1),registerFeature("saveAsImage",SaveAsImage$1),registerFeature("magicType",MagicType$1),registerFeature("dataView",DataView$2),registerFeature("dataZoom",DataZoom),registerFeature("restore",Restore),use$1(install$c)}var TooltipModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="tooltip",oe.dependencies=["axisPointer"],oe.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}},oe}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine($){var oe=$.get("confine");return oe!=null?!!oe:$.get("renderMode")==="richText"}function testStyle($){if(env$1.domSupported){for(var oe=document.documentElement.style,ae=0,ie=$.length;ae<ie;ae++)if($[ae]in oe)return $[ae]}}var TRANSFORM_VENDOR=testStyle(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION_VENDOR=testStyle(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function toCSSVendorPrefix($,oe){if(!$)return oe;oe=toCamelCase(oe,!0);var ae=$.indexOf(oe);return $=ae===-1?oe:"-"+$.slice(0,ae)+"-"+oe,$.toLowerCase()}function getComputedStyle$1($,oe){var ae=$.currentStyle||document.defaultView&&document.defaultView.getComputedStyle($);return ae?oe?ae[oe]:ae: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($){return $=$==="left"?"right":$==="right"?"left":$==="top"?"bottom":"top",$}function assembleArrow($,oe,ae){if(!isString(ae)||ae==="inside")return"";var ie=$.get("backgroundColor"),le=$.get("borderWidth");oe=convertToColorString(oe);var pe=mirrorPos(ae),_e=Math.max(Math.round(le)*1.5,6),Ce="",$e=CSS_TRANSFORM_VENDOR+":",xe;indexOf(["left","right"],pe)>-1?(Ce+="top:50%",$e+="translateY(-50%) rotate("+(xe=pe==="left"?-225:-45)+"deg)"):(Ce+="left:50%",$e+="translateX(-50%) rotate("+(xe=pe==="top"?225:45)+"deg)");var Ie=xe*Math.PI/180,Ne=_e+le,Fe=Ne*Math.abs(Math.cos(Ie))+Ne*Math.abs(Math.sin(Ie)),ze=Math.round(((Fe-Math.SQRT2*le)/2+Math.SQRT2*le-(Fe-Ne)/2)*100)/100;Ce+=";"+pe+":-"+ze+"px";var At=oe+" solid "+le+"px;",Lt=["position:absolute;width:"+_e+"px;height:"+_e+"px;z-index:-1;",Ce+";"+$e+";","border-bottom:"+At,"border-right:"+At,"background-color:"+ie+";"];return'<div style="'+Lt.join("")+'"></div>'}function assembleTransition($,oe){var ae="cubic-bezier(0.23,1,0.32,1)",ie=" "+$/2+"s "+ae,le="opacity"+ie+",visibility"+ie;return oe||(ie=" "+$+"s "+ae,le+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+ie:",left"+ie+",top"+ie),CSS_TRANSITION_VENDOR+":"+le}function assembleTransform($,oe,ae){var ie=$.toFixed(0)+"px",le=oe.toFixed(0)+"px";if(!env$1.transformSupported)return ae?"top:"+le+";left:"+ie+";":[["top",le],["left",ie]];var pe=env$1.transform3dSupported,_e="translate"+(pe?"3d":"")+"("+ie+","+le+(pe?",0":"")+")";return ae?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+_e+";":[["top",0],["left",0],[TRANSFORM_VENDOR,_e]]}function assembleFont($){var oe=[],ae=$.get("fontSize"),ie=$.getTextColor();ie&&oe.push("color:"+ie),oe.push("font:"+$.getFont()),ae&&oe.push("line-height:"+Math.round(ae*3/2)+"px");var le=$.get("textShadowColor"),pe=$.get("textShadowBlur")||0,_e=$.get("textShadowOffsetX")||0,Ce=$.get("textShadowOffsetY")||0;return le&&pe&&oe.push("text-shadow:"+_e+"px "+Ce+"px "+pe+"px "+le),each$c(["decoration","align"],function($e){var xe=$.get($e);xe&&oe.push("text-"+$e+":"+xe)}),oe.join(";")}function assembleCssText($,oe,ae){var ie=[],le=$.get("transitionDuration"),pe=$.get("backgroundColor"),_e=$.get("shadowBlur"),Ce=$.get("shadowColor"),$e=$.get("shadowOffsetX"),xe=$.get("shadowOffsetY"),Ie=$.getModel("textStyle"),Ne=getPaddingFromTooltipModel($,"html"),Fe=$e+"px "+xe+"px "+_e+"px "+Ce;return ie.push("box-shadow:"+Fe),oe&&le&&ie.push(assembleTransition(le,ae)),pe&&ie.push("background-color:"+pe),each$c(["width","color","radius"],function(ze){var At="border-"+ze,Lt=toCamelCase(At),hn=$.get(Lt);hn!=null&&ie.push(At+":"+hn+(ze==="color"?"":"px"))}),ie.push(assembleFont(Ie)),Ne!=null&&ie.push("padding:"+normalizeCssArray(Ne).join("px ")+"px"),ie.join(";")+";"}function makeStyleCoord$1($,oe,ae,ie,le){var pe=oe&&oe.painter;if(ae){var _e=pe&&pe.getViewportRoot();_e&&transformLocalCoord($,_e,document.body,ie,le)}else{$[0]=ie,$[1]=le;var Ce=pe&&pe.getViewportRootOffset();Ce&&($[0]+=Ce.offsetLeft,$[1]+=Ce.offsetTop)}$[2]=$[0]/oe.getWidth(),$[3]=$[1]/oe.getHeight()}var TooltipHTMLContent=function(){function $(oe,ae,ie){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 le=document.createElement("div");le.domBelongToZr=!0,this.el=le;var pe=this._zr=ae.getZr(),_e=this._appendToBody=ie&&ie.appendToBody;makeStyleCoord$1(this._styleCoord,pe,_e,ae.getWidth()/2,ae.getHeight()/2),_e?document.body.appendChild(le):oe.appendChild(le),this._container=oe;var Ce=this;le.onmouseenter=function(){Ce._enterable&&(clearTimeout(Ce._hideTimeout),Ce._show=!0),Ce._inContent=!0},le.onmousemove=function($e){if($e=$e||window.event,!Ce._enterable){var xe=pe.handler,Ie=pe.painter.getViewportRoot();normalizeEvent(Ie,$e,!0),xe.dispatch("mousemove",$e)}},le.onmouseleave=function(){Ce._inContent=!1,Ce._enterable&&Ce._show&&Ce.hideLater(Ce._hideDelay)}}return $.prototype.update=function(oe){var ae=this._container,ie=getComputedStyle$1(ae,"position"),le=ae.style;le.position!=="absolute"&&ie!=="absolute"&&(le.position="relative");var pe=oe.get("alwaysShowContent");pe&&this._moveIfResized(),this._alwaysShowContent=pe,this.el.className=oe.get("className")||""},$.prototype.show=function(oe,ae){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var ie=this.el,le=ie.style,pe=this._styleCoord;ie.innerHTML?le.cssText=gCssText+assembleCssText(oe,!this._firstShow,this._longHide)+assembleTransform(pe[0],pe[1],!0)+("border-color:"+convertToColorString(ae)+";")+(oe.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):le.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},$.prototype.setContent=function(oe,ae,ie,le,pe){var _e=this.el;if(oe==null){_e.innerHTML="";return}var Ce="";if(isString(pe)&&ie.get("trigger")==="item"&&!shouldTooltipConfine(ie)&&(Ce=assembleArrow(ie,le,pe)),isString(oe))_e.innerHTML=oe+Ce;else if(oe){_e.innerHTML="",isArray$1(oe)||(oe=[oe]);for(var $e=0;$e<oe.length;$e++)isDom(oe[$e])&&oe[$e].parentNode!==_e&&_e.appendChild(oe[$e]);if(Ce&&_e.childNodes.length){var xe=document.createElement("div");xe.innerHTML=Ce,_e.appendChild(xe)}}},$.prototype.setEnterable=function(oe){this._enterable=oe},$.prototype.getSize=function(){var oe=this.el;return[oe.offsetWidth,oe.offsetHeight]},$.prototype.moveTo=function(oe,ae){var ie=this._styleCoord;if(makeStyleCoord$1(ie,this._zr,this._appendToBody,oe,ae),ie[0]!=null&&ie[1]!=null){var le=this.el.style,pe=assembleTransform(ie[0],ie[1]);each$c(pe,function(_e){le[_e[0]]=_e[1]})}},$.prototype._moveIfResized=function(){var oe=this._styleCoord[2],ae=this._styleCoord[3];this.moveTo(oe*this._zr.getWidth(),ae*this._zr.getHeight())},$.prototype.hide=function(){var oe=this,ae=this.el.style;ae.visibility="hidden",ae.opacity="0",env$1.transform3dSupported&&(ae.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return oe._longHide=!0},500)},$.prototype.hideLater=function(oe){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(oe?(this._hideDelay=oe,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),oe)):this.hide())},$.prototype.isShow=function(){return this._show},$.prototype.dispose=function(){this.el.parentNode.removeChild(this.el)},$}();const TooltipHTMLContent$1=TooltipHTMLContent;var TooltipRichContent=function(){function $(oe){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=oe.getZr(),makeStyleCoord(this._styleCoord,this._zr,oe.getWidth()/2,oe.getHeight()/2)}return $.prototype.update=function(oe){var ae=oe.get("alwaysShowContent");ae&&this._moveIfResized(),this._alwaysShowContent=ae},$.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},$.prototype.setContent=function(oe,ae,ie,le,pe){var _e=this;isObject$3(oe)&&throwError(""),this.el&&this._zr.remove(this.el);var Ce=ie.getModel("textStyle");this.el=new ZRText$1({style:{rich:ae.richTextStyles,text:oe,lineHeight:22,borderWidth:1,borderColor:le,textShadowColor:Ce.get("textShadowColor"),fill:ie.get(["textStyle","color"]),padding:getPaddingFromTooltipModel(ie,"richText"),verticalAlign:"top",align:"left"},z:ie.get("z")}),each$c(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(xe){_e.el.style[xe]=ie.get(xe)}),each$c(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(xe){_e.el.style[xe]=Ce.get(xe)||0}),this._zr.add(this.el);var $e=this;this.el.on("mouseover",function(){$e._enterable&&(clearTimeout($e._hideTimeout),$e._show=!0),$e._inContent=!0}),this.el.on("mouseout",function(){$e._enterable&&$e._show&&$e.hideLater($e._hideDelay),$e._inContent=!1})},$.prototype.setEnterable=function(oe){this._enterable=oe},$.prototype.getSize=function(){var oe=this.el,ae=this.el.getBoundingRect(),ie=calcShadowOuterSize(oe.style);return[ae.width+ie.left+ie.right,ae.height+ie.top+ie.bottom]},$.prototype.moveTo=function(oe,ae){var ie=this.el;if(ie){var le=this._styleCoord;makeStyleCoord(le,this._zr,oe,ae),oe=le[0],ae=le[1];var pe=ie.style,_e=mathMaxWith0(pe.borderWidth||0),Ce=calcShadowOuterSize(pe);ie.x=oe+_e+Ce.left,ie.y=ae+_e+Ce.top,ie.markRedraw()}},$.prototype._moveIfResized=function(){var oe=this._styleCoord[2],ae=this._styleCoord[3];this.moveTo(oe*this._zr.getWidth(),ae*this._zr.getHeight())},$.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},$.prototype.hideLater=function(oe){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(oe?(this._hideDelay=oe,this._show=!1,this._hideTimeout=setTimeout(bind$1(this.hide,this),oe)):this.hide())},$.prototype.isShow=function(){return this._show},$.prototype.dispose=function(){this._zr.remove(this.el)},$}();function mathMaxWith0($){return Math.max(0,$)}function calcShadowOuterSize($){var oe=mathMaxWith0($.shadowBlur||0),ae=mathMaxWith0($.shadowOffsetX||0),ie=mathMaxWith0($.shadowOffsetY||0);return{left:mathMaxWith0(oe-ae),right:mathMaxWith0(oe+ae),top:mathMaxWith0(oe-ie),bottom:mathMaxWith0(oe+ie)}}function makeStyleCoord($,oe,ae,ie){$[0]=ae,$[1]=ie,$[2]=$[0]/oe.getWidth(),$[3]=$[1]/oe.getHeight()}const TooltipRichContent$1=TooltipRichContent;var proxyRect=new Rect$2({shape:{x:-1,y:-1,width:2,height:2}}),TooltipView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.init=function(ae,ie){if(!(env$1.node||!ie.getDom())){var le=ae.getComponent("tooltip"),pe=this._renderMode=getTooltipRenderMode(le.get("renderMode"));this._tooltipContent=pe==="richText"?new TooltipRichContent$1(ie):new TooltipHTMLContent$1(ie.getDom(),ie,{appendToBody:le.get("appendToBody",!0)})}},oe.prototype.render=function(ae,ie,le){if(!(env$1.node||!le.getDom())){this.group.removeAll(),this._tooltipModel=ae,this._ecModel=ie,this._api=le;var pe=this._tooltipContent;pe.update(ae),pe.setEnterable(ae.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&ae.get("transitionDuration")?createOrUpdate(this,"_updatePosition",50,"fixRate"):clear$1(this,"_updatePosition")}},oe.prototype._initGlobalListener=function(){var ae=this._tooltipModel,ie=ae.get("triggerOn");register("itemTooltip",this._api,bind$1(function(le,pe,_e){ie!=="none"&&(ie.indexOf(le)>=0?this._tryShow(pe,_e):le==="leave"&&this._hide(_e))},this))},oe.prototype._keepShow=function(){var ae=this._tooltipModel,ie=this._ecModel,le=this._api,pe=ae.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&pe!=="none"&&pe!=="click"){var _e=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!le.isDisposed()&&_e.manuallyShowTip(ae,ie,le,{x:_e._lastX,y:_e._lastY,dataByCoordSys:_e._lastDataByCoordSys})})}},oe.prototype.manuallyShowTip=function(ae,ie,le,pe){if(!(pe.from===this.uid||env$1.node||!le.getDom())){var _e=makeDispatchAction(pe,le);this._ticket="";var Ce=pe.dataByCoordSys,$e=findComponentReference(pe,ie,le);if($e){var xe=$e.el.getBoundingRect().clone();xe.applyTransform($e.el.transform),this._tryShow({offsetX:xe.x+xe.width/2,offsetY:xe.y+xe.height/2,target:$e.el,position:pe.position,positionDefault:"bottom"},_e)}else if(pe.tooltip&&pe.x!=null&&pe.y!=null){var Ie=proxyRect;Ie.x=pe.x,Ie.y=pe.y,Ie.update(),getECData(Ie).tooltipConfig={name:null,option:pe.tooltip},this._tryShow({offsetX:pe.x,offsetY:pe.y,target:Ie},_e)}else if(Ce)this._tryShow({offsetX:pe.x,offsetY:pe.y,position:pe.position,dataByCoordSys:Ce,tooltipOption:pe.tooltipOption},_e);else if(pe.seriesIndex!=null){if(this._manuallyAxisShowTip(ae,ie,le,pe))return;var Ne=findPointFromSeries(pe,ie),Fe=Ne.point[0],ze=Ne.point[1];Fe!=null&&ze!=null&&this._tryShow({offsetX:Fe,offsetY:ze,target:Ne.el,position:pe.position,positionDefault:"bottom"},_e)}else pe.x!=null&&pe.y!=null&&(le.dispatchAction({type:"updateAxisPointer",x:pe.x,y:pe.y}),this._tryShow({offsetX:pe.x,offsetY:pe.y,position:pe.position,target:le.getZr().findHover(pe.x,pe.y).target},_e))}},oe.prototype.manuallyHideTip=function(ae,ie,le,pe){var _e=this._tooltipContent;this._tooltipModel&&_e.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,pe.from!==this.uid&&this._hide(makeDispatchAction(pe,le))},oe.prototype._manuallyAxisShowTip=function(ae,ie,le,pe){var _e=pe.seriesIndex,Ce=pe.dataIndex,$e=ie.getComponent("axisPointer").coordSysAxesInfo;if(!(_e==null||Ce==null||$e==null)){var xe=ie.getSeriesByIndex(_e);if(xe){var Ie=xe.getData(),Ne=buildTooltipModel([Ie.getItemModel(Ce),xe,(xe.coordinateSystem||{}).model],this._tooltipModel);if(Ne.get("trigger")==="axis")return le.dispatchAction({type:"updateAxisPointer",seriesIndex:_e,dataIndex:Ce,position:pe.position}),!0}}},oe.prototype._tryShow=function(ae,ie){var le=ae.target,pe=this._tooltipModel;if(pe){this._lastX=ae.offsetX,this._lastY=ae.offsetY;var _e=ae.dataByCoordSys;if(_e&&_e.length)this._showAxisTooltip(_e,ae);else if(le){this._lastDataByCoordSys=null;var Ce,$e;findEventDispatcher(le,function(xe){if(getECData(xe).dataIndex!=null)return Ce=xe,!0;if(getECData(xe).tooltipConfig!=null)return $e=xe,!0},!0),Ce?this._showSeriesItemTooltip(ae,Ce,ie):$e?this._showComponentItemTooltip(ae,$e,ie):this._hide(ie)}else this._lastDataByCoordSys=null,this._hide(ie)}},oe.prototype._showOrMove=function(ae,ie){var le=ae.get("showDelay");ie=bind$1(ie,this),clearTimeout(this._showTimout),le>0?this._showTimout=setTimeout(ie,le):ie()},oe.prototype._showAxisTooltip=function(ae,ie){var le=this._ecModel,pe=this._tooltipModel,_e=[ie.offsetX,ie.offsetY],Ce=buildTooltipModel([ie.tooltipOption],pe),$e=this._renderMode,xe=[],Ie=createTooltipMarkup("section",{blocks:[],noHeader:!0}),Ne=[],Fe=new TooltipMarkupStyleCreator;each$c(ae,function(_n){each$c(_n.dataByAxis,function(bn){var Cn=le.getComponent(bn.axisDim+"Axis",bn.axisIndex),En=bn.value;if(!(!Cn||En==null)){var $n=getValueLabel(En,Cn.axis,le,bn.seriesDataIndices,bn.valueLabelOpt),wn=createTooltipMarkup("section",{header:$n,noHeader:!trim$1($n),sortBlocks:!0,blocks:[]});Ie.blocks.push(wn),each$c(bn.seriesDataIndices,function(Tn){var xn=le.getSeriesByIndex(Tn.seriesIndex),kn=Tn.dataIndexInside,An=xn.getDataParams(kn);if(!(An.dataIndex<0)){An.axisDim=bn.axisDim,An.axisIndex=bn.axisIndex,An.axisType=bn.axisType,An.axisId=bn.axisId,An.axisValue=getAxisRawValue(Cn.axis,{value:En}),An.axisValueLabel=$n,An.marker=Fe.makeTooltipMarker("item",convertToColorString(An.color),$e);var On=normalizeTooltipFormatResult(xn.formatTooltip(kn,!0,null)),Nn=On.frag;if(Nn){var Rn=buildTooltipModel([xn],pe).get("valueFormatter");wn.blocks.push(Rn?extend({valueFormatter:Rn},Nn):Nn)}On.text&&Ne.push(On.text),xe.push(An)}})}})}),Ie.blocks.reverse(),Ne.reverse();var ze=ie.position,At=Ce.get("order"),Lt=buildTooltipMarkup(Ie,Fe,$e,At,le.get("useUTC"),Ce.get("textStyle"));Lt&&Ne.unshift(Lt);var hn=$e==="richText"?`
`:"<br/>",vn=Ne.join(hn);this._showOrMove(Ce,function(){this._updateContentNotChangedOnAxis(ae,xe)?this._updatePosition(Ce,ze,_e[0],_e[1],this._tooltipContent,xe):this._showTooltipContent(Ce,vn,xe,Math.random()+"",_e[0],_e[1],ze,null,Fe)})},oe.prototype._showSeriesItemTooltip=function(ae,ie,le){var pe=this._ecModel,_e=getECData(ie),Ce=_e.seriesIndex,$e=pe.getSeriesByIndex(Ce),xe=_e.dataModel||$e,Ie=_e.dataIndex,Ne=_e.dataType,Fe=xe.getData(Ne),ze=this._renderMode,At=ae.positionDefault,Lt=buildTooltipModel([Fe.getItemModel(Ie),xe,$e&&($e.coordinateSystem||{}).model],this._tooltipModel,At?{position:At}:null),hn=Lt.get("trigger");if(!(hn!=null&&hn!=="item")){var vn=xe.getDataParams(Ie,Ne),_n=new TooltipMarkupStyleCreator;vn.marker=_n.makeTooltipMarker("item",convertToColorString(vn.color),ze);var bn=normalizeTooltipFormatResult(xe.formatTooltip(Ie,!1,Ne)),Cn=Lt.get("order"),En=Lt.get("valueFormatter"),$n=bn.frag,wn=$n?buildTooltipMarkup(En?extend({valueFormatter:En},$n):$n,_n,ze,Cn,pe.get("useUTC"),Lt.get("textStyle")):bn.text,Tn="item_"+xe.name+"_"+Ie;this._showOrMove(Lt,function(){this._showTooltipContent(Lt,wn,vn,Tn,ae.offsetX,ae.offsetY,ae.position,ae.target,_n)}),le({type:"showTip",dataIndexInside:Ie,dataIndex:Fe.getRawIndex(Ie),seriesIndex:Ce,from:this.uid})}},oe.prototype._showComponentItemTooltip=function(ae,ie,le){var pe=getECData(ie),_e=pe.tooltipConfig,Ce=_e.option||{};if(isString(Ce)){var $e=Ce;Ce={content:$e,formatter:$e}}var xe=[Ce],Ie=this._ecModel.getComponent(pe.componentMainType,pe.componentIndex);Ie&&xe.push(Ie),xe.push({formatter:Ce.content});var Ne=ae.positionDefault,Fe=buildTooltipModel(xe,this._tooltipModel,Ne?{position:Ne}:null),ze=Fe.get("content"),At=Math.random()+"",Lt=new TooltipMarkupStyleCreator;this._showOrMove(Fe,function(){var hn=clone$3(Fe.get("formatterParams")||{});this._showTooltipContent(Fe,ze,hn,At,ae.offsetX,ae.offsetY,ae.position,ie,Lt)}),le({type:"showTip",from:this.uid})},oe.prototype._showTooltipContent=function(ae,ie,le,pe,_e,Ce,$e,xe,Ie){if(this._ticket="",!(!ae.get("showContent")||!ae.get("show"))){var Ne=this._tooltipContent;Ne.setEnterable(ae.get("enterable"));var Fe=ae.get("formatter");$e=$e||ae.get("position");var ze=ie,At=this._getNearestPoint([_e,Ce],le,ae.get("trigger"),ae.get("borderColor")),Lt=At.color;if(Fe)if(isString(Fe)){var hn=ae.ecModel.get("useUTC"),vn=isArray$1(le)?le[0]:le,_n=vn&&vn.axisType&&vn.axisType.indexOf("time")>=0;ze=Fe,_n&&(ze=format$1(vn.axisValue,ze,hn)),ze=formatTpl(ze,le,!0)}else if(isFunction(Fe)){var bn=bind$1(function(Cn,En){Cn===this._ticket&&(Ne.setContent(En,Ie,ae,Lt,$e),this._updatePosition(ae,$e,_e,Ce,Ne,le,xe))},this);this._ticket=pe,ze=Fe(le,pe,bn)}else ze=Fe;Ne.setContent(ze,Ie,ae,Lt,$e),Ne.show(ae,Lt),this._updatePosition(ae,$e,_e,Ce,Ne,le,xe)}},oe.prototype._getNearestPoint=function(ae,ie,le,pe){if(le==="axis"||isArray$1(ie))return{color:pe||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(ie))return{color:pe||ie.color||ie.borderColor}},oe.prototype._updatePosition=function(ae,ie,le,pe,_e,Ce,$e){var xe=this._api.getWidth(),Ie=this._api.getHeight();ie=ie||ae.get("position");var Ne=_e.getSize(),Fe=ae.get("align"),ze=ae.get("verticalAlign"),At=$e&&$e.getBoundingRect().clone();if($e&&At.applyTransform($e.transform),isFunction(ie)&&(ie=ie([le,pe],Ce,_e.el,At,{viewSize:[xe,Ie],contentSize:Ne.slice()})),isArray$1(ie))le=parsePercent(ie[0],xe),pe=parsePercent(ie[1],Ie);else if(isObject$3(ie)){var Lt=ie;Lt.width=Ne[0],Lt.height=Ne[1];var hn=getLayoutRect(Lt,{width:xe,height:Ie});le=hn.x,pe=hn.y,Fe=null,ze=null}else if(isString(ie)&&$e){var vn=calcTooltipPosition(ie,At,Ne,ae.get("borderWidth"));le=vn[0],pe=vn[1]}else{var vn=refixTooltipPosition(le,pe,_e,xe,Ie,Fe?null:20,ze?null:20);le=vn[0],pe=vn[1]}if(Fe&&(le-=isCenterAlign(Fe)?Ne[0]/2:Fe==="right"?Ne[0]:0),ze&&(pe-=isCenterAlign(ze)?Ne[1]/2:ze==="bottom"?Ne[1]:0),shouldTooltipConfine(ae)){var vn=confineTooltipPosition(le,pe,_e,xe,Ie);le=vn[0],pe=vn[1]}_e.moveTo(le,pe)},oe.prototype._updateContentNotChangedOnAxis=function(ae,ie){var le=this._lastDataByCoordSys,pe=this._cbParamsList,_e=!!le&&le.length===ae.length;return _e&&each$c(le,function(Ce,$e){var xe=Ce.dataByAxis||[],Ie=ae[$e]||{},Ne=Ie.dataByAxis||[];_e=_e&&xe.length===Ne.length,_e&&each$c(xe,function(Fe,ze){var At=Ne[ze]||{},Lt=Fe.seriesDataIndices||[],hn=At.seriesDataIndices||[];_e=_e&&Fe.value===At.value&&Fe.axisType===At.axisType&&Fe.axisId===At.axisId&&Lt.length===hn.length,_e&&each$c(Lt,function(vn,_n){var bn=hn[_n];_e=_e&&vn.seriesIndex===bn.seriesIndex&&vn.dataIndex===bn.dataIndex}),pe&&each$c(Fe.seriesDataIndices,function(vn){var _n=vn.seriesIndex,bn=ie[_n],Cn=pe[_n];bn&&Cn&&Cn.data!==bn.data&&(_e=!1)})})}),this._lastDataByCoordSys=ae,this._cbParamsList=ie,!!_e},oe.prototype._hide=function(ae){this._lastDataByCoordSys=null,ae({type:"hideTip",from:this.uid})},oe.prototype.dispose=function(ae,ie){env$1.node||!ie.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",ie))},oe.type="tooltip",oe}(ComponentView$1);function buildTooltipModel($,oe,ae){var ie=oe.ecModel,le;ae?(le=new Model$1(ae,ie,ie),le=new Model$1(oe.option,le,ie)):le=oe;for(var pe=$.length-1;pe>=0;pe--){var _e=$[pe];_e&&(_e instanceof Model$1&&(_e=_e.get("tooltip",!0)),isString(_e)&&(_e={formatter:_e}),_e&&(le=new Model$1(_e,le,ie)))}return le}function makeDispatchAction($,oe){return $.dispatchAction||bind$1(oe.dispatchAction,oe)}function refixTooltipPosition($,oe,ae,ie,le,pe,_e){var Ce=ae.getSize(),$e=Ce[0],xe=Ce[1];return pe!=null&&($+$e+pe+2>ie?$-=$e+pe:$+=pe),_e!=null&&(oe+xe+_e>le?oe-=xe+_e:oe+=_e),[$,oe]}function confineTooltipPosition($,oe,ae,ie,le){var pe=ae.getSize(),_e=pe[0],Ce=pe[1];return $=Math.min($+_e,ie)-_e,oe=Math.min(oe+Ce,le)-Ce,$=Math.max($,0),oe=Math.max(oe,0),[$,oe]}function calcTooltipPosition($,oe,ae,ie){var le=ae[0],pe=ae[1],_e=Math.ceil(Math.SQRT2*ie)+8,Ce=0,$e=0,xe=oe.width,Ie=oe.height;switch($){case"inside":Ce=oe.x+xe/2-le/2,$e=oe.y+Ie/2-pe/2;break;case"top":Ce=oe.x+xe/2-le/2,$e=oe.y-pe-_e;break;case"bottom":Ce=oe.x+xe/2-le/2,$e=oe.y+Ie+_e;break;case"left":Ce=oe.x-le-_e,$e=oe.y+Ie/2-pe/2;break;case"right":Ce=oe.x+xe+_e,$e=oe.y+Ie/2-pe/2}return[Ce,$e]}function isCenterAlign($){return $==="center"||$==="middle"}function findComponentReference($,oe,ae){var ie=preParseFinder($).queryOptionMap,le=ie.keys()[0];if(!(!le||le==="series")){var pe=queryReferringComponents(oe,le,ie.get(le),{useDefault:!1,enableAll:!1,enableNone:!1}),_e=pe.models[0];if(_e){var Ce=ae.getViewOfComponentModel(_e),$e;if(Ce.group.traverse(function(xe){var Ie=getECData(xe).tooltipConfig;if(Ie&&Ie.name===$.name)return $e=xe,!0}),$e)return{componentMainType:le,componentIndex:_e.componentIndex,el:$e}}}}const TooltipView$1=TooltipView;function install$a($){use$1(install$f),$.registerComponentModel(TooltipModel$1),$.registerComponentView(TooltipView$1),$.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),$.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys($){if($){for(var oe in $)if($.hasOwnProperty(oe))return!0}}function createVisualMappings($,oe,ae){var ie={};return each$4(oe,function(pe){var _e=ie[pe]=le();each$4($[pe],function(Ce,$e){if(VisualMapping$1.isValidType($e)){var xe={type:$e,visual:Ce};ae&&ae(xe,pe),_e[$e]=new VisualMapping$1(xe),$e==="opacity"&&(xe=clone$3(xe),xe.type="colorAlpha",_e.__hidden.__alphaForOpacity=new VisualMapping$1(xe))}})}),ie;function le(){var pe=function(){};pe.prototype.__hidden=pe.prototype;var _e=new pe;return _e}}function replaceVisualOption($,oe,ae){var ie;each$c(ae,function(le){oe.hasOwnProperty(le)&&hasKeys(oe[le])&&(ie=!0)}),ie&&each$c(ae,function(le){oe.hasOwnProperty(le)&&hasKeys(oe[le])?$[le]=clone$3(oe[le]):delete $[le]})}function incrementalApplyVisual($,oe,ae,ie){var le={};return each$c($,function(pe){var _e=VisualMapping$1.prepareVisualTypes(oe[pe]);le[pe]=_e}),{progress:function(_e,Ce){var $e;ie!=null&&($e=Ce.getDimensionIndex(ie));function xe(En){return getItemVisualFromData(Ce,Ne,En)}function Ie(En,$n){setItemVisualFromData(Ce,Ne,En,$n)}for(var Ne,Fe=Ce.getStore();(Ne=_e.next())!=null;){var ze=Ce.getRawDataItem(Ne);if(!(ze&&ze.visualMap===!1))for(var At=ie!=null?Fe.get($e,Ne):Ne,Lt=ae(At),hn=oe[Lt],vn=le[Lt],_n=0,bn=vn.length;_n<bn;_n++){var Cn=vn[_n];hn[Cn]&&hn[Cn].applyVisual(At,xe,Ie)}}}}}var TitleModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.layoutMode={type:"box",ignoreSize:!0},ae}return oe.type="title",oe.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"}},oe}(ComponentModel$1),TitleView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.render=function(ae,ie,le){if(this.group.removeAll(),!!ae.get("show")){var pe=this.group,_e=ae.getModel("textStyle"),Ce=ae.getModel("subtextStyle"),$e=ae.get("textAlign"),xe=retrieve2(ae.get("textBaseline"),ae.get("textVerticalAlign")),Ie=new ZRText$1({style:createTextStyle$1(_e,{text:ae.get("text"),fill:_e.getTextColor()},{disableBox:!0}),z2:10}),Ne=Ie.getBoundingRect(),Fe=ae.get("subtext"),ze=new ZRText$1({style:createTextStyle$1(Ce,{text:Fe,fill:Ce.getTextColor(),y:Ne.height+ae.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),At=ae.get("link"),Lt=ae.get("sublink"),hn=ae.get("triggerEvent",!0);Ie.silent=!At&&!hn,ze.silent=!Lt&&!hn,At&&Ie.on("click",function(){windowOpen(At,"_"+ae.get("target"))}),Lt&&ze.on("click",function(){windowOpen(Lt,"_"+ae.get("subtarget"))}),getECData(Ie).eventData=getECData(ze).eventData=hn?{componentType:"title",componentIndex:ae.componentIndex}:null,pe.add(Ie),Fe&&pe.add(ze);var vn=pe.getBoundingRect(),_n=ae.getBoxLayoutParams();_n.width=vn.width,_n.height=vn.height;var bn=getLayoutRect(_n,{width:le.getWidth(),height:le.getHeight()},ae.get("padding"));$e||($e=ae.get("left")||ae.get("right"),$e==="middle"&&($e="center"),$e==="right"?bn.x+=bn.width:$e==="center"&&(bn.x+=bn.width/2)),xe||(xe=ae.get("top")||ae.get("bottom"),xe==="center"&&(xe="middle"),xe==="bottom"?bn.y+=bn.height:xe==="middle"&&(bn.y+=bn.height/2),xe=xe||"top"),pe.x=bn.x,pe.y=bn.y,pe.markRedraw();var Cn={align:$e,verticalAlign:xe};Ie.setStyle(Cn),ze.setStyle(Cn),vn=pe.getBoundingRect();var En=bn.margin,$n=ae.getItemStyle(["color","opacity"]);$n.fill=ae.get("backgroundColor");var wn=new Rect$2({shape:{x:vn.x-En[3],y:vn.y-En[0],width:vn.width+En[1]+En[3],height:vn.height+En[0]+En[2],r:ae.get("borderRadius")},style:$n,subPixelOptimize:!0,silent:!0});pe.add(wn)}},oe.type="title",oe}(ComponentView$1);function install$9($){$.registerComponentModel(TitleModel),$.registerComponentView(TitleView)}var getDefaultSelectorOptions=function($,oe){if(oe==="all")return{type:"all",title:$.getLocaleModel().get(["legend","selector","all"])};if(oe==="inverse")return{type:"inverse",title:$.getLocaleModel().get(["legend","selector","inverse"])}},LegendModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.layoutMode={type:"box",ignoreSize:!0},ae}return oe.prototype.init=function(ae,ie,le){this.mergeDefaultAndTheme(ae,le),ae.selected=ae.selected||{},this._updateSelector(ae)},oe.prototype.mergeOption=function(ae,ie){$.prototype.mergeOption.call(this,ae,ie),this._updateSelector(ae)},oe.prototype._updateSelector=function(ae){var ie=ae.selector,le=this.ecModel;ie===!0&&(ie=ae.selector=["all","inverse"]),isArray$1(ie)&&each$c(ie,function(pe,_e){isString(pe)&&(pe={type:pe}),ie[_e]=merge(pe,getDefaultSelectorOptions(le,pe.type))})},oe.prototype.optionUpdated=function(){this._updateData(this.ecModel);var ae=this._data;if(ae[0]&&this.get("selectedMode")==="single"){for(var ie=!1,le=0;le<ae.length;le++){var pe=ae[le].get("name");if(this.isSelected(pe)){this.select(pe),ie=!0;break}}!ie&&this.select(ae[0].get("name"))}},oe.prototype._updateData=function(ae){var ie=[],le=[];ae.eachRawSeries(function($e){var xe=$e.name;le.push(xe);var Ie;if($e.legendVisualProvider){var Ne=$e.legendVisualProvider,Fe=Ne.getAllNames();ae.isSeriesFiltered($e)||(le=le.concat(Fe)),Fe.length?ie=ie.concat(Fe):Ie=!0}else Ie=!0;Ie&&isNameSpecified($e)&&ie.push($e.name)}),this._availableNames=le;var pe=this.get("data")||ie,_e=createHashMap(),Ce=map$2(pe,function($e){return(isString($e)||isNumber($e))&&($e={name:$e}),_e.get($e.name)?null:(_e.set($e.name,!0),new Model$1($e,this,this.ecModel))},this);this._data=filter(Ce,function($e){return!!$e})},oe.prototype.getData=function(){return this._data},oe.prototype.select=function(ae){var ie=this.option.selected,le=this.get("selectedMode");if(le==="single"){var pe=this._data;each$c(pe,function(_e){ie[_e.get("name")]=!1})}ie[ae]=!0},oe.prototype.unSelect=function(ae){this.get("selectedMode")!=="single"&&(this.option.selected[ae]=!1)},oe.prototype.toggleSelected=function(ae){var ie=this.option.selected;ie.hasOwnProperty(ae)||(ie[ae]=!0),this[ie[ae]?"unSelect":"select"](ae)},oe.prototype.allSelect=function(){var ae=this._data,ie=this.option.selected;each$c(ae,function(le){ie[le.get("name",!0)]=!0})},oe.prototype.inverseSelect=function(){var ae=this._data,ie=this.option.selected;each$c(ae,function(le){var pe=le.get("name",!0);ie.hasOwnProperty(pe)||(ie[pe]=!0),ie[pe]=!ie[pe]})},oe.prototype.isSelected=function(ae){var ie=this.option.selected;return!(ie.hasOwnProperty(ae)&&!ie[ae])&&indexOf(this._availableNames,ae)>=0},oe.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},oe.type="legend.plain",oe.dependencies=["series"],oe.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}},oe}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.newlineDisabled=!1,ae}return oe.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},oe.prototype.getContentGroup=function(){return this._contentGroup},oe.prototype.getSelectorGroup=function(){return this._selectorGroup},oe.prototype.render=function(ae,ie,le){var pe=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!ae.get("show",!0)){var _e=ae.get("align"),Ce=ae.get("orient");(!_e||_e==="auto")&&(_e=ae.get("left")==="right"&&Ce==="vertical"?"right":"left");var $e=ae.get("selector",!0),xe=ae.get("selectorPosition",!0);$e&&(!xe||xe==="auto")&&(xe=Ce==="horizontal"?"end":"start"),this.renderInner(_e,ae,ie,le,$e,Ce,xe);var Ie=ae.getBoxLayoutParams(),Ne={width:le.getWidth(),height:le.getHeight()},Fe=ae.get("padding"),ze=getLayoutRect(Ie,Ne,Fe),At=this.layoutInner(ae,_e,ze,pe,$e,xe),Lt=getLayoutRect(defaults({width:At.width,height:At.height},Ie),Ne,Fe);this.group.x=Lt.x-At.x,this.group.y=Lt.y-At.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(At,ae))}},oe.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},oe.prototype.renderInner=function(ae,ie,le,pe,_e,Ce,$e){var xe=this.getContentGroup(),Ie=createHashMap(),Ne=ie.get("selectedMode"),Fe=[];le.eachRawSeries(function(ze){!ze.get("legendHoverLink")&&Fe.push(ze.id)}),each$3(ie.getData(),function(ze,At){var Lt=ze.get("name");if(!this.newlineDisabled&&(Lt===""||Lt===`
`)){var hn=new Group$1;hn.newline=!0,xe.add(hn);return}var vn=le.getSeriesByName(Lt)[0];if(!Ie.get(Lt))if(vn){var _n=vn.getData(),bn=_n.getVisual("legendLineStyle")||{},Cn=_n.getVisual("legendIcon"),En=_n.getVisual("style"),$n=this._createItem(vn,Lt,At,ze,ie,ae,bn,En,Cn,Ne,pe);$n.on("click",curry(dispatchSelectAction,Lt,null,pe,Fe)).on("mouseover",curry(dispatchHighlightAction,vn.name,null,pe,Fe)).on("mouseout",curry(dispatchDownplayAction,vn.name,null,pe,Fe)),Ie.set(Lt,!0)}else le.eachRawSeries(function(wn){if(!Ie.get(Lt)&&wn.legendVisualProvider){var Tn=wn.legendVisualProvider;if(!Tn.containName(Lt))return;var xn=Tn.indexOfName(Lt),kn=Tn.getItemVisual(xn,"style"),An=Tn.getItemVisual(xn,"legendIcon"),On=parse$1(kn.fill);On&&On[3]===0&&(On[3]=.2,kn=extend(extend({},kn),{fill:stringify(On,"rgba")}));var Nn=this._createItem(wn,Lt,At,ze,ie,ae,{},kn,An,Ne,pe);Nn.on("click",curry(dispatchSelectAction,null,Lt,pe,Fe)).on("mouseover",curry(dispatchHighlightAction,null,Lt,pe,Fe)).on("mouseout",curry(dispatchDownplayAction,null,Lt,pe,Fe)),Ie.set(Lt,!0)}},this)},this),_e&&this._createSelector(_e,ie,pe,Ce,$e)},oe.prototype._createSelector=function(ae,ie,le,pe,_e){var Ce=this.getSelectorGroup();each$3(ae,function(xe){var Ie=xe.type,Ne=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){le.dispatchAction({type:Ie==="all"?"legendAllSelect":"legendInverseSelect"})}});Ce.add(Ne);var Fe=ie.getModel("selectorLabel"),ze=ie.getModel(["emphasis","selectorLabel"]);setLabelStyle(Ne,{normal:Fe,emphasis:ze},{defaultText:xe.title}),enableHoverEmphasis(Ne)})},oe.prototype._createItem=function(ae,ie,le,pe,_e,Ce,$e,xe,Ie,Ne,Fe){var ze=ae.visualDrawType,At=_e.get("itemWidth"),Lt=_e.get("itemHeight"),hn=_e.isSelected(ie),vn=pe.get("symbolRotate"),_n=pe.get("symbolKeepAspect"),bn=pe.get("icon");Ie=bn||Ie||"roundRect";var Cn=getLegendStyle(Ie,pe,$e,xe,ze,hn,Fe),En=new Group$1,$n=pe.getModel("textStyle");if(isFunction(ae.getLegendIcon)&&(!bn||bn==="inherit"))En.add(ae.getLegendIcon({itemWidth:At,itemHeight:Lt,icon:Ie,iconRotate:vn,itemStyle:Cn.itemStyle,lineStyle:Cn.lineStyle,symbolKeepAspect:_n}));else{var wn=bn==="inherit"&&ae.getData().getVisual("symbol")?vn==="inherit"?ae.getData().getVisual("symbolRotate"):vn:0;En.add(getDefaultLegendIcon({itemWidth:At,itemHeight:Lt,icon:Ie,iconRotate:wn,itemStyle:Cn.itemStyle,lineStyle:Cn.lineStyle,symbolKeepAspect:_n}))}var Tn=Ce==="left"?At+5:-5,xn=Ce,kn=_e.get("formatter"),An=ie;isString(kn)&&kn?An=kn.replace("{name}",ie??""):isFunction(kn)&&(An=kn(ie));var On=pe.get("inactiveColor");En.add(new ZRText$1({style:createTextStyle$1($n,{text:An,x:Tn,y:Lt/2,fill:hn?$n.getTextColor():On,align:xn,verticalAlign:"middle"})}));var Nn=new Rect$2({shape:En.getBoundingRect(),invisible:!0}),Rn=pe.getModel("tooltip");return Rn.get("show")&&setTooltipConfig({el:Nn,componentModel:_e,itemName:ie,itemTooltipOption:Rn.option}),En.add(Nn),En.eachChild(function(zn){zn.silent=!0}),Nn.silent=!Ne,this.getContentGroup().add(En),enableHoverEmphasis(En),En.__legendDataIndex=le,En},oe.prototype.layoutInner=function(ae,ie,le,pe,_e,Ce){var $e=this.getContentGroup(),xe=this.getSelectorGroup();box(ae.get("orient"),$e,ae.get("itemGap"),le.width,le.height);var Ie=$e.getBoundingRect(),Ne=[-Ie.x,-Ie.y];if(xe.markRedraw(),$e.markRedraw(),_e){box("horizontal",xe,ae.get("selectorItemGap",!0));var Fe=xe.getBoundingRect(),ze=[-Fe.x,-Fe.y],At=ae.get("selectorButtonGap",!0),Lt=ae.getOrient().index,hn=Lt===0?"width":"height",vn=Lt===0?"height":"width",_n=Lt===0?"y":"x";Ce==="end"?ze[Lt]+=Ie[hn]+At:Ne[Lt]+=Fe[hn]+At,ze[1-Lt]+=Ie[vn]/2-Fe[vn]/2,xe.x=ze[0],xe.y=ze[1],$e.x=Ne[0],$e.y=Ne[1];var bn={x:0,y:0};return bn[hn]=Ie[hn]+At+Fe[hn],bn[vn]=Math.max(Ie[vn],Fe[vn]),bn[_n]=Math.min(0,Fe[_n]+ze[1-Lt]),bn}else return $e.x=Ne[0],$e.y=Ne[1],this.group.getBoundingRect()},oe.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},oe.type="legend.plain",oe}(ComponentView$1);function getLegendStyle($,oe,ae,ie,le,pe,_e){function Ce(hn,vn){hn.lineWidth==="auto"&&(hn.lineWidth=vn.lineWidth>0?2:0),each$3(hn,function(_n,bn){hn[bn]==="inherit"&&(hn[bn]=vn[bn])})}var $e=oe.getModel("itemStyle"),xe=$e.getItemStyle(),Ie=$.lastIndexOf("empty",0)===0?"fill":"stroke",Ne=$e.getShallow("decal");xe.decal=!Ne||Ne==="inherit"?ie.decal:createOrUpdatePatternFromDecal(Ne,_e),xe.fill==="inherit"&&(xe.fill=ie[le]),xe.stroke==="inherit"&&(xe.stroke=ie[Ie]),xe.opacity==="inherit"&&(xe.opacity=(le==="fill"?ie:ae).opacity),Ce(xe,ie);var Fe=oe.getModel("lineStyle"),ze=Fe.getLineStyle();if(Ce(ze,ae),xe.fill==="auto"&&(xe.fill=ie.fill),xe.stroke==="auto"&&(xe.stroke=ie.fill),ze.stroke==="auto"&&(ze.stroke=ie.fill),!pe){var At=oe.get("inactiveBorderWidth"),Lt=xe[Ie];xe.lineWidth=At==="auto"?ie.lineWidth>0&&Lt?2:0:xe.lineWidth,xe.fill=oe.get("inactiveColor"),xe.stroke=oe.get("inactiveBorderColor"),ze.stroke=Fe.get("inactiveColor"),ze.lineWidth=Fe.get("inactiveWidth")}return{itemStyle:xe,lineStyle:ze}}function getDefaultLegendIcon($){var oe=$.icon||"roundRect",ae=createSymbol(oe,0,0,$.itemWidth,$.itemHeight,$.itemStyle.fill,$.symbolKeepAspect);return ae.setStyle($.itemStyle),ae.rotation=($.iconRotate||0)*Math.PI/180,ae.setOrigin([$.itemWidth/2,$.itemHeight/2]),oe.indexOf("empty")>-1&&(ae.style.stroke=ae.style.fill,ae.style.fill="#fff",ae.style.lineWidth=2),ae}function dispatchSelectAction($,oe,ae,ie){dispatchDownplayAction($,oe,ae,ie),ae.dispatchAction({type:"legendToggleSelect",name:$??oe}),dispatchHighlightAction($,oe,ae,ie)}function isUseHoverLayer($){for(var oe=$.getZr().storage.getDisplayList(),ae,ie=0,le=oe.length;ie<le&&!(ae=oe[ie].states.emphasis);)ie++;return ae&&ae.hoverLayer}function dispatchHighlightAction($,oe,ae,ie){isUseHoverLayer(ae)||ae.dispatchAction({type:"highlight",seriesName:$,name:oe,excludeSeriesId:ie})}function dispatchDownplayAction($,oe,ae,ie){isUseHoverLayer(ae)||ae.dispatchAction({type:"downplay",seriesName:$,name:oe,excludeSeriesId:ie})}const LegendView$1=LegendView;function legendFilter($){var oe=$.findComponents({mainType:"legend"});oe&&oe.length&&$.filterSeries(function(ae){for(var ie=0;ie<oe.length;ie++)if(!oe[ie].isSelected(ae.name))return!1;return!0})}function legendSelectActionHandler($,oe,ae){var ie={},le=$==="toggleSelected",pe;return ae.eachComponent("legend",function(_e){le&&pe!=null?_e[pe?"select":"unSelect"](oe.name):$==="allSelect"||$==="inverseSelect"?_e[$]():(_e[$](oe.name),pe=_e.isSelected(oe.name));var Ce=_e.getData();each$c(Ce,function($e){var xe=$e.get("name");if(!(xe===`
`||xe==="")){var Ie=_e.isSelected(xe);ie.hasOwnProperty(xe)?ie[xe]=ie[xe]&&Ie:ie[xe]=Ie}})}),$==="allSelect"||$==="inverseSelect"?{selected:ie}:{name:oe.name,selected:ie}}function installLegendAction($){$.registerAction("legendToggleSelect","legendselectchanged",curry$1(legendSelectActionHandler,"toggleSelected")),$.registerAction("legendAllSelect","legendselectall",curry$1(legendSelectActionHandler,"allSelect")),$.registerAction("legendInverseSelect","legendinverseselect",curry$1(legendSelectActionHandler,"inverseSelect")),$.registerAction("legendSelect","legendselected",curry$1(legendSelectActionHandler,"select")),$.registerAction("legendUnSelect","legendunselected",curry$1(legendSelectActionHandler,"unSelect"))}function install$8($){$.registerComponentModel(LegendModel$1),$.registerComponentView(LegendView$1),$.registerProcessor($.PRIORITY.PROCESSOR.SERIES_FILTER,legendFilter),$.registerSubTypeDefaulter("legend",function(){return"plain"}),installLegendAction($)}var ScrollableLegendModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.setScrollDataIndex=function(ae){this.option.scrollDataIndex=ae},oe.prototype.init=function(ae,ie,le){var pe=getLayoutParams(ae);$.prototype.init.call(this,ae,ie,le),mergeAndNormalizeLayoutParams(this,ae,pe)},oe.prototype.mergeOption=function(ae,ie){$.prototype.mergeOption.call(this,ae,ie),mergeAndNormalizeLayoutParams(this,this.option,ae)},oe.type="legend.scroll",oe.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}),oe}(LegendModel$1);function mergeAndNormalizeLayoutParams($,oe,ae){var ie=$.getOrient(),le=[1,1];le[ie.index]=0,mergeLayoutParam(oe,ae,{type:"box",ignoreSize:!!le})}const ScrollableLegendModel$1=ScrollableLegendModel;var Group=Group$3,WH=["width","height"],XY=["x","y"],ScrollableLegendView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.newlineDisabled=!0,ae._currentIndex=0,ae}return oe.prototype.init=function(){$.prototype.init.call(this),this.group.add(this._containerGroup=new Group),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Group)},oe.prototype.resetInner=function(){$.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},oe.prototype.renderInner=function(ae,ie,le,pe,_e,Ce,$e){var xe=this;$.prototype.renderInner.call(this,ae,ie,le,pe,_e,Ce,$e);var Ie=this._controllerGroup,Ne=ie.get("pageIconSize",!0),Fe=isArray$1(Ne)?Ne:[Ne,Ne];At("pagePrev",0);var ze=ie.getModel("pageTextStyle");Ie.add(new ZRText$1({name:"pageText",style:{text:"xx/xx",fill:ze.getTextColor(),font:ze.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),At("pageNext",1);function At(Lt,hn){var vn=Lt+"DataIndex",_n=createIcon(ie.get("pageIcons",!0)[ie.getOrient().name][hn],{onclick:bind$1(xe._pageGo,xe,vn,ie,pe)},{x:-Fe[0]/2,y:-Fe[1]/2,width:Fe[0],height:Fe[1]});_n.name=Lt,Ie.add(_n)}},oe.prototype.layoutInner=function(ae,ie,le,pe,_e,Ce){var $e=this.getSelectorGroup(),xe=ae.getOrient().index,Ie=WH[xe],Ne=XY[xe],Fe=WH[1-xe],ze=XY[1-xe];_e&&box("horizontal",$e,ae.get("selectorItemGap",!0));var At=ae.get("selectorButtonGap",!0),Lt=$e.getBoundingRect(),hn=[-Lt.x,-Lt.y],vn=clone$3(le);_e&&(vn[Ie]=le[Ie]-Lt[Ie]-At);var _n=this._layoutContentAndController(ae,pe,vn,xe,Ie,Fe,ze,Ne);if(_e){if(Ce==="end")hn[xe]+=_n[Ie]+At;else{var bn=Lt[Ie]+At;hn[xe]-=bn,_n[Ne]-=bn}_n[Ie]+=Lt[Ie]+At,hn[1-xe]+=_n[ze]+_n[Fe]/2-Lt[Fe]/2,_n[Fe]=Math.max(_n[Fe],Lt[Fe]),_n[ze]=Math.min(_n[ze],Lt[ze]+hn[1-xe]),$e.x=hn[0],$e.y=hn[1],$e.markRedraw()}return _n},oe.prototype._layoutContentAndController=function(ae,ie,le,pe,_e,Ce,$e,xe){var Ie=this.getContentGroup(),Ne=this._containerGroup,Fe=this._controllerGroup;box(ae.get("orient"),Ie,ae.get("itemGap"),pe?le.width:null,pe?null:le.height),box("horizontal",Fe,ae.get("pageButtonItemGap",!0));var ze=Ie.getBoundingRect(),At=Fe.getBoundingRect(),Lt=this._showController=ze[_e]>le[_e],hn=[-ze.x,-ze.y];ie||(hn[pe]=Ie[xe]);var vn=[0,0],_n=[-At.x,-At.y],bn=retrieve2(ae.get("pageButtonGap",!0),ae.get("itemGap",!0));if(Lt){var Cn=ae.get("pageButtonPosition",!0);Cn==="end"?_n[pe]+=le[_e]-At[_e]:vn[pe]+=At[_e]+bn}_n[1-pe]+=ze[Ce]/2-At[Ce]/2,Ie.setPosition(hn),Ne.setPosition(vn),Fe.setPosition(_n);var En={x:0,y:0};if(En[_e]=Lt?le[_e]:ze[_e],En[Ce]=Math.max(ze[Ce],At[Ce]),En[$e]=Math.min(0,At[$e]+_n[1-pe]),Ne.__rectSize=le[_e],Lt){var $n={x:0,y:0};$n[_e]=Math.max(le[_e]-At[_e]-bn,0),$n[Ce]=En[Ce],Ne.setClipPath(new Rect$2({shape:$n})),Ne.__rectSize=$n[_e]}else Fe.eachChild(function(Tn){Tn.attr({invisible:!0,silent:!0})});var wn=this._getPageInfo(ae);return wn.pageIndex!=null&&updateProps$1(Ie,{x:wn.contentPosition[0],y:wn.contentPosition[1]},Lt?ae:null),this._updatePageInfoView(ae,wn),En},oe.prototype._pageGo=function(ae,ie,le){var pe=this._getPageInfo(ie)[ae];pe!=null&&le.dispatchAction({type:"legendScroll",scrollDataIndex:pe,legendId:ie.id})},oe.prototype._updatePageInfoView=function(ae,ie){var le=this._controllerGroup;each$c(["pagePrev","pageNext"],function(Ie){var Ne=Ie+"DataIndex",Fe=ie[Ne]!=null,ze=le.childOfName(Ie);ze&&(ze.setStyle("fill",Fe?ae.get("pageIconColor",!0):ae.get("pageIconInactiveColor",!0)),ze.cursor=Fe?"pointer":"default")});var pe=le.childOfName("pageText"),_e=ae.get("pageFormatter"),Ce=ie.pageIndex,$e=Ce!=null?Ce+1:0,xe=ie.pageCount;pe&&_e&&pe.setStyle("text",isString(_e)?_e.replace("{current}",$e==null?"":$e+"").replace("{total}",xe==null?"":xe+""):_e({current:$e,total:xe}))},oe.prototype._getPageInfo=function(ae){var ie=ae.get("scrollDataIndex",!0),le=this.getContentGroup(),pe=this._containerGroup.__rectSize,_e=ae.getOrient().index,Ce=WH[_e],$e=XY[_e],xe=this._findTargetItemIndex(ie),Ie=le.children(),Ne=Ie[xe],Fe=Ie.length,ze=Fe?1:0,At={contentPosition:[le.x,le.y],pageCount:ze,pageIndex:ze-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!Ne)return At;var Lt=Cn(Ne);At.contentPosition[_e]=-Lt.s;for(var hn=xe+1,vn=Lt,_n=Lt,bn=null;hn<=Fe;++hn)bn=Cn(Ie[hn]),(!bn&&_n.e>vn.s+pe||bn&&!En(bn,vn.s))&&(_n.i>vn.i?vn=_n:vn=bn,vn&&(At.pageNextDataIndex==null&&(At.pageNextDataIndex=vn.i),++At.pageCount)),_n=bn;for(var hn=xe-1,vn=Lt,_n=Lt,bn=null;hn>=-1;--hn)bn=Cn(Ie[hn]),(!bn||!En(_n,bn.s))&&vn.i<_n.i&&(_n=vn,At.pagePrevDataIndex==null&&(At.pagePrevDataIndex=vn.i),++At.pageCount,++At.pageIndex),vn=bn;return At;function Cn($n){if($n){var wn=$n.getBoundingRect(),Tn=wn[$e]+$n[$e];return{s:Tn,e:Tn+wn[Ce],i:$n.__legendDataIndex}}}function En($n,wn){return $n.e>=wn&&$n.s<=wn+pe}},oe.prototype._findTargetItemIndex=function(ae){if(!this._showController)return 0;var ie,le=this.getContentGroup(),pe;return le.eachChild(function(_e,Ce){var $e=_e.__legendDataIndex;pe==null&&$e!=null&&(pe=Ce),$e===ae&&(ie=Ce)}),ie??pe},oe.type="legend.scroll",oe}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction($){$.registerAction("legendScroll","legendscroll",function(oe,ae){var ie=oe.scrollDataIndex;ie!=null&&ae.eachComponent({mainType:"legend",subType:"scroll",query:oe},function(le){le.setScrollDataIndex(ie)})})}function install$7($){use$1(install$8),$.registerComponentModel(ScrollableLegendModel$1),$.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction($)}function install$6($){use$1(install$8),use$1(install$7)}var InsideZoomModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="dataZoom.inside",oe.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),oe}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord($,oe,ae){inner($).coordSysRecordMap.each(function(ie){var le=ie.dataZoomInfoMap.get(oe.uid);le&&(le.getRange=ae)})}function disposeCoordSysRecordIfNeeded($,oe){for(var ae=inner($).coordSysRecordMap,ie=ae.keys(),le=0;le<ie.length;le++){var pe=ie[le],_e=ae.get(pe),Ce=_e.dataZoomInfoMap;if(Ce){var $e=oe.uid,xe=Ce.get($e);xe&&(Ce.removeKey($e),Ce.keys().length||disposeCoordSysRecord(ae,_e))}}}function disposeCoordSysRecord($,oe){if(oe){$.removeKey(oe.model.uid);var ae=oe.controller;ae&&ae.dispose()}}function createCoordSysRecord($,oe){var ae={model:oe,containsPoint:curry$1(containsPoint,oe),dispatchAction:curry$1(dispatchAction,$),dataZoomInfoMap:null,controller:null},ie=ae.controller=new RoamController$1($.getZr());return each$c(["pan","zoom","scrollMove"],function(le){ie.on(le,function(pe){var _e=[];ae.dataZoomInfoMap.each(function(Ce){if(pe.isAvailableBehavior(Ce.model.option)){var $e=(Ce.getRange||{})[le],xe=$e&&$e(Ce.dzReferCoordSysInfo,ae.model.mainType,ae.controller,pe);!Ce.model.get("disabled",!0)&&xe&&_e.push({dataZoomId:Ce.model.id,start:xe[0],end:xe[1]})}}),_e.length&&ae.dispatchAction(_e)})}),ae}function dispatchAction($,oe){$.isDisposed()||$.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:oe})}function containsPoint($,oe,ae,ie){return $.coordinateSystem.containPoint([ae,ie])}function mergeControllerParams($){var oe,ae="type_",ie={type_true:2,type_move:1,type_false:0,type_undefined:-1},le=!0;return $.each(function(pe){var _e=pe.model,Ce=_e.get("disabled",!0)?!1:_e.get("zoomLock",!0)?"move":!0;ie[ae+Ce]>ie[ae+oe]&&(oe=Ce),le=le&&_e.get("preventDefaultMouseMove",!0)}),{controlType:oe,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!le}}}function installDataZoomRoamProcessor($){$.registerProcessor($.PRIORITY.PROCESSOR.FILTER,function(oe,ae){var ie=inner(ae),le=ie.coordSysRecordMap||(ie.coordSysRecordMap=createHashMap());le.each(function(pe){pe.dataZoomInfoMap=null}),oe.eachComponent({mainType:"dataZoom",subType:"inside"},function(pe){var _e=collectReferCoordSysModelInfo(pe);each$c(_e.infoList,function(Ce){var $e=Ce.model.uid,xe=le.get($e)||le.set($e,createCoordSysRecord(ae,Ce.model)),Ie=xe.dataZoomInfoMap||(xe.dataZoomInfoMap=createHashMap());Ie.set(pe.uid,{dzReferCoordSysInfo:Ce,model:pe,getRange:null})})}),le.each(function(pe){var _e=pe.controller,Ce,$e=pe.dataZoomInfoMap;if($e){var xe=$e.keys()[0];xe!=null&&(Ce=$e.get(xe))}if(!Ce){disposeCoordSysRecord(le,pe);return}var Ie=mergeControllerParams($e);_e.enable(Ie.controlType,Ie.opt),_e.setPointerChecker(pe.containsPoint),createOrUpdate(pe,"dispatchAction",Ce.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type="dataZoom.inside",ae}return oe.prototype.render=function(ae,ie,le){if($.prototype.render.apply(this,arguments),ae.noTarget()){this._clear();return}this.range=ae.getPercentRange(),setViewInfoToCoordSysRecord(le,ae,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},oe.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},oe.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},oe.type="dataZoom.inside",oe}(DataZoomView$1),getRangeHandlers={zoom:function($,oe,ae,ie){var le=this.range,pe=le.slice(),_e=$.axisModels[0];if(_e){var Ce=getDirectionInfo[oe](null,[ie.originX,ie.originY],_e,ae,$),$e=(Ce.signal>0?Ce.pixelStart+Ce.pixelLength-Ce.pixel:Ce.pixel-Ce.pixelStart)/Ce.pixelLength*(pe[1]-pe[0])+pe[0],xe=Math.max(1/ie.scale,0);pe[0]=(pe[0]-$e)*xe+$e,pe[1]=(pe[1]-$e)*xe+$e;var Ie=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,pe,[0,100],0,Ie.minSpan,Ie.maxSpan),this.range=pe,le[0]!==pe[0]||le[1]!==pe[1])return pe}},pan:makeMover(function($,oe,ae,ie,le,pe){var _e=getDirectionInfo[ie]([pe.oldX,pe.oldY],[pe.newX,pe.newY],oe,le,ae);return _e.signal*($[1]-$[0])*_e.pixel/_e.pixelLength}),scrollMove:makeMover(function($,oe,ae,ie,le,pe){var _e=getDirectionInfo[ie]([0,0],[pe.scrollDelta,pe.scrollDelta],oe,le,ae);return _e.signal*($[1]-$[0])*pe.scrollDelta})};function makeMover($){return function(oe,ae,ie,le){var pe=this.range,_e=pe.slice(),Ce=oe.axisModels[0];if(Ce){var $e=$(_e,Ce,oe,ae,ie,le);if(sliderMove($e,_e,[0,100],"all"),this.range=_e,pe[0]!==_e[0]||pe[1]!==_e[1])return _e}}}var getDirectionInfo={grid:function($,oe,ae,ie,le){var pe=ae.axis,_e={},Ce=le.model.coordinateSystem.getRect();return $=$||[0,0],pe.dim==="x"?(_e.pixel=oe[0]-$[0],_e.pixelLength=Ce.width,_e.pixelStart=Ce.x,_e.signal=pe.inverse?1:-1):(_e.pixel=oe[1]-$[1],_e.pixelLength=Ce.height,_e.pixelStart=Ce.y,_e.signal=pe.inverse?-1:1),_e},polar:function($,oe,ae,ie,le){var pe=ae.axis,_e={},Ce=le.model.coordinateSystem,$e=Ce.getRadiusAxis().getExtent(),xe=Ce.getAngleAxis().getExtent();return $=$?Ce.pointToCoord($):[0,0],oe=Ce.pointToCoord(oe),ae.mainType==="radiusAxis"?(_e.pixel=oe[0]-$[0],_e.pixelLength=$e[1]-$e[0],_e.pixelStart=$e[0],_e.signal=pe.inverse?1:-1):(_e.pixel=oe[1]-$[1],_e.pixelLength=xe[1]-xe[0],_e.pixelStart=xe[0],_e.signal=pe.inverse?-1:1),_e},singleAxis:function($,oe,ae,ie,le){var pe=ae.axis,_e=le.model.coordinateSystem.getRect(),Ce={};return $=$||[0,0],pe.orient==="horizontal"?(Ce.pixel=oe[0]-$[0],Ce.pixelLength=_e.width,Ce.pixelStart=_e.x,Ce.signal=pe.inverse?1:-1):(Ce.pixel=oe[1]-$[1],Ce.pixelLength=_e.height,Ce.pixelStart=_e.y,Ce.signal=pe.inverse?-1:1),Ce}};const InsideZoomView$1=InsideZoomView;function install$5($){installCommon$1($),$.registerComponentModel(InsideZoomModel$1),$.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor($)}var SliderZoomModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.type="dataZoom.slider",oe.layoutMode="box",oe.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),oe}(DataZoomModel$1);const SliderZoomModel$1=SliderZoomModel;var Rect=Rect$2,DEFAULT_LOCATION_EDGE_GAP=7,DEFAULT_FRAME_BORDER_WIDTH=1,DEFAULT_FILLER_SIZE=30,DEFAULT_MOVE_HANDLE_SIZE=7,HORIZONTAL="horizontal",VERTICAL="vertical",LABEL_GAP=5,SHOW_DATA_SHADOW_SERIES_TYPE=["line","bar","candlestick","scatter"],REALTIME_ANIMATION_CONFIG={easing:"cubicOut",duration:100,delay:0},SliderZoomView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae._displayables={},ae}return oe.prototype.init=function(ae,ie){this.api=ie,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},oe.prototype.render=function(ae,ie,le,pe){if($.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",ae.get("throttle"),"fixRate"),this._orient=ae.getOrient(),ae.get("show")===!1){this.group.removeAll();return}if(ae.noTarget()){this._clear(),this.group.removeAll();return}(!pe||pe.type!=="dataZoom"||pe.from!==this.uid)&&this._buildView(),this._updateView()},oe.prototype.dispose=function(){this._clear(),$.prototype.dispose.apply(this,arguments)},oe.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var ae=this.api.getZr();ae.off("mousemove",this._onBrush),ae.off("mouseup",this._onBrushEnd)},oe.prototype._buildView=function(){var ae=this.group;ae.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var ie=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),ae.add(ie),this._positionGroup()},oe.prototype._resetLocation=function(){var ae=this.dataZoomModel,ie=this.api,le=ae.get("brushSelect"),pe=le?DEFAULT_MOVE_HANDLE_SIZE:0,_e=this._findCoordRect(),Ce={width:ie.getWidth(),height:ie.getHeight()},$e=this._orient===HORIZONTAL?{right:Ce.width-_e.x-_e.width,top:Ce.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-pe,width:_e.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:_e.y,width:DEFAULT_FILLER_SIZE,height:_e.height},xe=getLayoutParams(ae.option);each$c(["right","top","width","height"],function(Ne){xe[Ne]==="ph"&&(xe[Ne]=$e[Ne])});var Ie=getLayoutRect(xe,Ce);this._location={x:Ie.x,y:Ie.y},this._size=[Ie.width,Ie.height],this._orient===VERTICAL&&this._size.reverse()},oe.prototype._positionGroup=function(){var ae=this.group,ie=this._location,le=this._orient,pe=this.dataZoomModel.getFirstTargetAxisModel(),_e=pe&&pe.get("inverse"),Ce=this._displayables.sliderGroup,$e=(this._dataShadowInfo||{}).otherAxisInverse;Ce.attr(le===HORIZONTAL&&!_e?{scaleY:$e?1:-1,scaleX:1}:le===HORIZONTAL&&_e?{scaleY:$e?1:-1,scaleX:-1}:le===VERTICAL&&!_e?{scaleY:$e?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:$e?-1:1,scaleX:-1,rotation:Math.PI/2});var xe=ae.getBoundingRect([Ce]);ae.x=ie.x-xe.x,ae.y=ie.y-xe.y,ae.markRedraw()},oe.prototype._getViewExtent=function(){return[0,this._size[0]]},oe.prototype._renderBackground=function(){var ae=this.dataZoomModel,ie=this._size,le=this._displayables.sliderGroup,pe=ae.get("brushSelect");le.add(new Rect({silent:!0,shape:{x:0,y:0,width:ie[0],height:ie[1]},style:{fill:ae.get("backgroundColor")},z2:-40}));var _e=new Rect({shape:{x:0,y:0,width:ie[0],height:ie[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),Ce=this.api.getZr();pe?(_e.on("mousedown",this._onBrushStart,this),_e.cursor="crosshair",Ce.on("mousemove",this._onBrush),Ce.on("mouseup",this._onBrushEnd)):(Ce.off("mousemove",this._onBrush),Ce.off("mouseup",this._onBrushEnd)),le.add(_e)},oe.prototype._renderDataShadow=function(){var ae=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!ae)return;var ie=this._size,le=this._shadowSize||[],pe=ae.series,_e=pe.getRawData(),Ce=pe.getShadowDim&&pe.getShadowDim(),$e=Ce&&_e.getDimensionInfo(Ce)?pe.getShadowDim():ae.otherDim;if($e==null)return;var xe=this._shadowPolygonPts,Ie=this._shadowPolylinePts;if(_e!==this._shadowData||$e!==this._shadowDim||ie[0]!==le[0]||ie[1]!==le[1]){var Ne=_e.getDataExtent($e),Fe=(Ne[1]-Ne[0])*.3;Ne=[Ne[0]-Fe,Ne[1]+Fe];var ze=[0,ie[1]],At=[0,ie[0]],Lt=[[ie[0],0],[0,0]],hn=[],vn=At[1]/(_e.count()-1),_n=0,bn=Math.round(_e.count()/ie[0]),Cn;_e.each([$e],function(xn,kn){if(bn>0&&kn%bn){_n+=vn;return}var An=xn==null||isNaN(xn)||xn==="",On=An?0:linearMap$2(xn,Ne,ze,!0);An&&!Cn&&kn?(Lt.push([Lt[Lt.length-1][0],0]),hn.push([hn[hn.length-1][0],0])):!An&&Cn&&(Lt.push([_n,0]),hn.push([_n,0])),Lt.push([_n,On]),hn.push([_n,On]),_n+=vn,Cn=An}),xe=this._shadowPolygonPts=Lt,Ie=this._shadowPolylinePts=hn}this._shadowData=_e,this._shadowDim=$e,this._shadowSize=[ie[0],ie[1]];var En=this.dataZoomModel;function $n(xn){var kn=En.getModel(xn?"selectedDataBackground":"dataBackground"),An=new Group$3,On=new Polygon$1({shape:{points:xe},segmentIgnoreThreshold:1,style:kn.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),Nn=new Polyline$1({shape:{points:Ie},segmentIgnoreThreshold:1,style:kn.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return An.add(On),An.add(Nn),An}for(var wn=0;wn<3;wn++){var Tn=$n(wn===1);this._displayables.sliderGroup.add(Tn),this._displayables.dataShadowSegs.push(Tn)}},oe.prototype._prepareDataShadowInfo=function(){var ae=this.dataZoomModel,ie=ae.get("showDataShadow");if(ie!==!1){var le,pe=this.ecModel;return ae.eachTargetAxis(function(_e,Ce){var $e=ae.getAxisProxy(_e,Ce).getTargetSeriesModels();each$c($e,function(xe){if(!le&&!(ie!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,xe.get("type"))<0)){var Ie=pe.getComponent(getAxisMainType(_e),Ce).axis,Ne=getOtherDim(_e),Fe,ze=xe.coordinateSystem;Ne!=null&&ze.getOtherAxis&&(Fe=ze.getOtherAxis(Ie).inverse),Ne=xe.getData().mapDimension(Ne),le={thisAxis:Ie,series:xe,thisDim:_e,otherDim:Ne,otherAxisInverse:Fe}}},this)},this),le}},oe.prototype._renderHandle=function(){var ae=this.group,ie=this._displayables,le=ie.handles=[null,null],pe=ie.handleLabels=[null,null],_e=this._displayables.sliderGroup,Ce=this._size,$e=this.dataZoomModel,xe=this.api,Ie=$e.get("borderRadius")||0,Ne=$e.get("brushSelect"),Fe=ie.filler=new Rect({silent:Ne,style:{fill:$e.get("fillerColor")},textConfig:{position:"inside"}});_e.add(Fe),_e.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:Ce[0],height:Ce[1],r:Ie},style:{stroke:$e.get("dataBackgroundColor")||$e.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(bn){var Cn=$e.get("handleIcon");!symbolBuildProxies[Cn]&&Cn.indexOf("path://")<0&&Cn.indexOf("image://")<0&&(Cn="path://"+Cn);var En=createSymbol(Cn,-1,0,2,2,null,!0);En.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,bn),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var $n=En.getBoundingRect(),wn=$e.get("handleSize");this._handleHeight=parsePercent(wn,this._size[1]),this._handleWidth=$n.width/$n.height*this._handleHeight,En.setStyle($e.getModel("handleStyle").getItemStyle()),En.style.strokeNoScale=!0,En.rectHover=!0,En.ensureState("emphasis").style=$e.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(En);var Tn=$e.get("handleColor");Tn!=null&&(En.style.fill=Tn),_e.add(le[bn]=En);var xn=$e.getModel("textStyle");ae.add(pe[bn]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(xn,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:xn.getTextColor(),font:xn.getFont()}),z2:10}))},this);var ze=Fe;if(Ne){var At=parsePercent($e.get("moveHandleSize"),Ce[1]),Lt=ie.moveHandle=new Rect$2({style:$e.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:Ce[1]-.5,height:At}}),hn=At*.8,vn=ie.moveHandleIcon=createSymbol($e.get("moveHandleIcon"),-hn/2,-hn/2,hn,hn,"#fff",!0);vn.silent=!0,vn.y=Ce[1]+At/2-.5,Lt.ensureState("emphasis").style=$e.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _n=Math.min(Ce[1]/2,Math.max(At,10));ze=ie.moveZone=new Rect$2({invisible:!0,shape:{y:Ce[1]-_n,height:At+_n}}),ze.on("mouseover",function(){xe.enterEmphasis(Lt)}).on("mouseout",function(){xe.leaveEmphasis(Lt)}),_e.add(Lt),_e.add(vn),_e.add(ze)}ze.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},oe.prototype._resetInterval=function(){var ae=this._range=this.dataZoomModel.getPercentRange(),ie=this._getViewExtent();this._handleEnds=[linearMap$2(ae[0],[0,100],ie,!0),linearMap$2(ae[1],[0,100],ie,!0)]},oe.prototype._updateInterval=function(ae,ie){var le=this.dataZoomModel,pe=this._handleEnds,_e=this._getViewExtent(),Ce=le.findRepresentativeAxisProxy().getMinMaxSpan(),$e=[0,100];sliderMove(ie,pe,_e,le.get("zoomLock")?"all":ae,Ce.minSpan!=null?linearMap$2(Ce.minSpan,$e,_e,!0):null,Ce.maxSpan!=null?linearMap$2(Ce.maxSpan,$e,_e,!0):null);var xe=this._range,Ie=this._range=asc$2([linearMap$2(pe[0],_e,$e,!0),linearMap$2(pe[1],_e,$e,!0)]);return!xe||xe[0]!==Ie[0]||xe[1]!==Ie[1]},oe.prototype._updateView=function(ae){var ie=this._displayables,le=this._handleEnds,pe=asc$2(le.slice()),_e=this._size;each$c([0,1],function(ze){var At=ie.handles[ze],Lt=this._handleHeight;At.attr({scaleX:Lt/2,scaleY:Lt/2,x:le[ze]+(ze?-1:1),y:_e[1]/2-Lt/2})},this),ie.filler.setShape({x:pe[0],y:0,width:pe[1]-pe[0],height:_e[1]});var Ce={x:pe[0],width:pe[1]-pe[0]};ie.moveHandle&&(ie.moveHandle.setShape(Ce),ie.moveZone.setShape(Ce),ie.moveZone.getBoundingRect(),ie.moveHandleIcon&&ie.moveHandleIcon.attr("x",Ce.x+Ce.width/2));for(var $e=ie.dataShadowSegs,xe=[0,pe[0],pe[1],_e[0]],Ie=0;Ie<$e.length;Ie++){var Ne=$e[Ie],Fe=Ne.getClipPath();Fe||(Fe=new Rect$2,Ne.setClipPath(Fe)),Fe.setShape({x:xe[Ie],y:0,width:xe[Ie+1]-xe[Ie],height:_e[1]})}this._updateDataInfo(ae)},oe.prototype._updateDataInfo=function(ae){var ie=this.dataZoomModel,le=this._displayables,pe=le.handleLabels,_e=this._orient,Ce=["",""];if(ie.get("showDetail")){var $e=ie.findRepresentativeAxisProxy();if($e){var xe=$e.getAxisModel().axis,Ie=this._range,Ne=ae?$e.calculateDataWindow({start:Ie[0],end:Ie[1]}).valueWindow:$e.getDataValueWindow();Ce=[this._formatLabel(Ne[0],xe),this._formatLabel(Ne[1],xe)]}}var Fe=asc$2(this._handleEnds.slice());ze.call(this,0),ze.call(this,1);function ze(At){var Lt=getTransform$1(le.handles[At].parent,this.group),hn=transformDirection(At===0?"right":"left",Lt),vn=this._handleWidth/2+LABEL_GAP,_n=applyTransform([Fe[At]+(At===0?-vn:vn),this._size[1]/2],Lt);pe[At].setStyle({x:_n[0],y:_n[1],verticalAlign:_e===HORIZONTAL?"middle":hn,align:_e===HORIZONTAL?hn:"center",text:Ce[At]})}},oe.prototype._formatLabel=function(ae,ie){var le=this.dataZoomModel,pe=le.get("labelFormatter"),_e=le.get("labelPrecision");(_e==null||_e==="auto")&&(_e=ie.getPixelPrecision());var Ce=ae==null||isNaN(ae)?"":ie.type==="category"||ie.type==="time"?ie.scale.getLabel({value:Math.round(ae)}):ae.toFixed(Math.min(_e,20));return isFunction(pe)?pe(ae,Ce):isString(pe)?pe.replace("{value}",Ce):Ce},oe.prototype._showDataInfo=function(ae){ae=this._dragging||ae;var ie=this._displayables,le=ie.handleLabels;le[0].attr("invisible",!ae),le[1].attr("invisible",!ae),ie.moveHandle&&this.api[ae?"enterEmphasis":"leaveEmphasis"](ie.moveHandle,1)},oe.prototype._onDragMove=function(ae,ie,le,pe){this._dragging=!0,stop(pe.event);var _e=this._displayables.sliderGroup.getLocalTransform(),Ce=applyTransform([ie,le],_e,!0),$e=this._updateInterval(ae,Ce[0]),xe=this.dataZoomModel.get("realtime");this._updateView(!xe),$e&&xe&&this._dispatchZoomAction(!0)},oe.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var ae=this.dataZoomModel.get("realtime");!ae&&this._dispatchZoomAction(!1)},oe.prototype._onClickPanel=function(ae){var ie=this._size,le=this._displayables.sliderGroup.transformCoordToLocal(ae.offsetX,ae.offsetY);if(!(le[0]<0||le[0]>ie[0]||le[1]<0||le[1]>ie[1])){var pe=this._handleEnds,_e=(pe[0]+pe[1])/2,Ce=this._updateInterval("all",le[0]-_e);this._updateView(),Ce&&this._dispatchZoomAction(!1)}},oe.prototype._onBrushStart=function(ae){var ie=ae.offsetX,le=ae.offsetY;this._brushStart=new Point$1(ie,le),this._brushing=!0,this._brushStartTime=+new Date},oe.prototype._onBrushEnd=function(ae){if(this._brushing){var ie=this._displayables.brushRect;if(this._brushing=!1,!!ie){ie.attr("ignore",!0);var le=ie.shape,pe=+new Date;if(!(pe-this._brushStartTime<200&&Math.abs(le.width)<5)){var _e=this._getViewExtent(),Ce=[0,100];this._range=asc$2([linearMap$2(le.x,_e,Ce,!0),linearMap$2(le.x+le.width,_e,Ce,!0)]),this._handleEnds=[le.x,le.x+le.width],this._updateView(),this._dispatchZoomAction(!1)}}}},oe.prototype._onBrush=function(ae){this._brushing&&(stop(ae.event),this._updateBrushRect(ae.offsetX,ae.offsetY))},oe.prototype._updateBrushRect=function(ae,ie){var le=this._displayables,pe=this.dataZoomModel,_e=le.brushRect;_e||(_e=le.brushRect=new Rect({silent:!0,style:pe.getModel("brushStyle").getItemStyle()}),le.sliderGroup.add(_e)),_e.attr("ignore",!1);var Ce=this._brushStart,$e=this._displayables.sliderGroup,xe=$e.transformCoordToLocal(ae,ie),Ie=$e.transformCoordToLocal(Ce.x,Ce.y),Ne=this._size;xe[0]=Math.max(Math.min(Ne[0],xe[0]),0),_e.setShape({x:Ie[0],y:0,width:xe[0]-Ie[0],height:Ne[1]})},oe.prototype._dispatchZoomAction=function(ae){var ie=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:ae?REALTIME_ANIMATION_CONFIG:null,start:ie[0],end:ie[1]})},oe.prototype._findCoordRect=function(){var ae,ie=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!ae&&ie.length){var le=ie[0].model.coordinateSystem;ae=le.getRect&&le.getRect()}if(!ae){var pe=this.api.getWidth(),_e=this.api.getHeight();ae={x:pe*.2,y:_e*.2,width:pe*.6,height:_e*.6}}return ae},oe.type="dataZoom.slider",oe}(DataZoomView$1);function getOtherDim($){var oe={x:"y",y:"x",radius:"angle",angle:"radius"};return oe[$]}function getCursor$1($){return $==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4($){$.registerComponentModel(SliderZoomModel$1),$.registerComponentView(SliderZoomView$1),installCommon$1($)}function install$3($){use$1(install$5),use$1(install$4)}var visualDefault={get:function($,oe,ae){var ie=clone$3((defaultOption[$]||{})[oe]);return ae&&isArray$1(ie)?ie[ie.length-1]:ie}},defaultOption={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const visualDefault$1=visualDefault;var mapVisual=VisualMapping$1.mapVisual,eachVisual=VisualMapping$1.eachVisual,isArray=isArray$1,each$2=each$c,asc=asc$2,linearMap$1=linearMap$2,VisualMapModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.stateList=["inRange","outOfRange"],ae.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],ae.layoutMode={type:"box",ignoreSize:!0},ae.dataBound=[-1/0,1/0],ae.targetVisuals={},ae.controllerVisuals={},ae}return oe.prototype.init=function(ae,ie,le){this.mergeDefaultAndTheme(ae,le)},oe.prototype.optionUpdated=function(ae,ie){var le=this.option;!ie&&replaceVisualOption(le,ae,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},oe.prototype.resetVisual=function(ae){var ie=this.stateList;ae=bind$1(ae,this),this.controllerVisuals=createVisualMappings(this.option.controller,ie,ae),this.targetVisuals=createVisualMappings(this.option.target,ie,ae)},oe.prototype.getItemSymbol=function(){return null},oe.prototype.getTargetSeriesIndices=function(){var ae=this.option.seriesIndex,ie=[];return ae==null||ae==="all"?this.ecModel.eachSeries(function(le,pe){ie.push(pe)}):ie=normalizeToArray(ae),ie},oe.prototype.eachTargetSeries=function(ae,ie){each$c(this.getTargetSeriesIndices(),function(le){var pe=this.ecModel.getSeriesByIndex(le);pe&&ae.call(ie,pe)},this)},oe.prototype.isTargetSeries=function(ae){var ie=!1;return this.eachTargetSeries(function(le){le===ae&&(ie=!0)}),ie},oe.prototype.formatValueText=function(ae,ie,le){var pe=this.option,_e=pe.precision,Ce=this.dataBound,$e=pe.formatter,xe;le=le||["<",">"],isArray$1(ae)&&(ae=ae.slice(),xe=!0);var Ie=ie?ae:xe?[Ne(ae[0]),Ne(ae[1])]:Ne(ae);if(isString($e))return $e.replace("{value}",xe?Ie[0]:Ie).replace("{value2}",xe?Ie[1]:Ie);if(isFunction($e))return xe?$e(ae[0],ae[1]):$e(ae);if(xe)return ae[0]===Ce[0]?le[0]+" "+Ie[1]:ae[1]===Ce[1]?le[1]+" "+Ie[0]:Ie[0]+" - "+Ie[1];return Ie;function Ne(Fe){return Fe===Ce[0]?"min":Fe===Ce[1]?"max":(+Fe).toFixed(Math.min(_e,20))}},oe.prototype.resetExtent=function(){var ae=this.option,ie=asc([ae.min,ae.max]);this._dataExtent=ie},oe.prototype.getDataDimensionIndex=function(ae){var ie=this.option.dimension;if(ie!=null)return ae.getDimensionIndex(ie);for(var le=ae.dimensions,pe=le.length-1;pe>=0;pe--){var _e=le[pe],Ce=ae.getDimensionInfo(_e);if(!Ce.isCalculationCoord)return Ce.storeDimIndex}},oe.prototype.getExtent=function(){return this._dataExtent.slice()},oe.prototype.completeVisualOption=function(){var ae=this.ecModel,ie=this.option,le={inRange:ie.inRange,outOfRange:ie.outOfRange},pe=ie.target||(ie.target={}),_e=ie.controller||(ie.controller={});merge(pe,le),merge(_e,le);var Ce=this.isCategory();$e.call(this,pe),$e.call(this,_e),xe.call(this,pe,"inRange","outOfRange"),Ie.call(this,_e);function $e(Ne){isArray(ie.color)&&!Ne.inRange&&(Ne.inRange={color:ie.color.slice().reverse()}),Ne.inRange=Ne.inRange||{color:ae.get("gradientColor")}}function xe(Ne,Fe,ze){var At=Ne[Fe],Lt=Ne[ze];At&&!Lt&&(Lt=Ne[ze]={},each$2(At,function(hn,vn){if(VisualMapping$1.isValidType(vn)){var _n=visualDefault$1.get(vn,"inactive",Ce);_n!=null&&(Lt[vn]=_n,vn==="color"&&!Lt.hasOwnProperty("opacity")&&!Lt.hasOwnProperty("colorAlpha")&&(Lt.opacity=[0,0]))}}))}function Ie(Ne){var Fe=(Ne.inRange||{}).symbol||(Ne.outOfRange||{}).symbol,ze=(Ne.inRange||{}).symbolSize||(Ne.outOfRange||{}).symbolSize,At=this.get("inactiveColor"),Lt=this.getItemSymbol(),hn=Lt||"roundRect";each$2(this.stateList,function(vn){var _n=this.itemSize,bn=Ne[vn];bn||(bn=Ne[vn]={color:Ce?At:[At]}),bn.symbol==null&&(bn.symbol=Fe&&clone$3(Fe)||(Ce?hn:[hn])),bn.symbolSize==null&&(bn.symbolSize=ze&&clone$3(ze)||(Ce?_n[0]:[_n[0],_n[0]])),bn.symbol=mapVisual(bn.symbol,function($n){return $n==="none"?hn:$n});var Cn=bn.symbolSize;if(Cn!=null){var En=-1/0;eachVisual(Cn,function($n){$n>En&&(En=$n)}),bn.symbolSize=mapVisual(Cn,function($n){return linearMap$1($n,[0,En],[0,_n[0]],!0)})}},this)}},oe.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},oe.prototype.isCategory=function(){return!!this.option.categories},oe.prototype.setSelected=function(ae){},oe.prototype.getSelected=function(){return null},oe.prototype.getValueState=function(ae){return null},oe.prototype.getVisualMeta=function(ae){return null},oe.type="visualMap",oe.dependencies=["series"],oe.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},oe}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.optionUpdated=function(ae,ie){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(le){le.mappingMethod="linear",le.dataExtent=this.getExtent()}),this._resetRange()},oe.prototype.resetItemSize=function(){$.prototype.resetItemSize.apply(this,arguments);var ae=this.itemSize;(ae[0]==null||isNaN(ae[0]))&&(ae[0]=DEFAULT_BAR_BOUND[0]),(ae[1]==null||isNaN(ae[1]))&&(ae[1]=DEFAULT_BAR_BOUND[1])},oe.prototype._resetRange=function(){var ae=this.getExtent(),ie=this.option.range;!ie||ie.auto?(ae.auto=1,this.option.range=ae):isArray$1(ie)&&(ie[0]>ie[1]&&ie.reverse(),ie[0]=Math.max(ie[0],ae[0]),ie[1]=Math.min(ie[1],ae[1]))},oe.prototype.completeVisualOption=function(){$.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function(ae){var ie=this.option.controller[ae].symbolSize;ie&&ie[0]!==ie[1]&&(ie[0]=ie[1]/3)},this)},oe.prototype.setSelected=function(ae){this.option.range=ae.slice(),this._resetRange()},oe.prototype.getSelected=function(){var ae=this.getExtent(),ie=asc$2((this.get("range")||[]).slice());return ie[0]>ae[1]&&(ie[0]=ae[1]),ie[1]>ae[1]&&(ie[1]=ae[1]),ie[0]<ae[0]&&(ie[0]=ae[0]),ie[1]<ae[0]&&(ie[1]=ae[0]),ie},oe.prototype.getValueState=function(ae){var ie=this.option.range,le=this.getExtent();return(ie[0]<=le[0]||ie[0]<=ae)&&(ie[1]>=le[1]||ae<=ie[1])?"inRange":"outOfRange"},oe.prototype.findTargetDataIndices=function(ae){var ie=[];return this.eachTargetSeries(function(le){var pe=[],_e=le.getData();_e.each(this.getDataDimensionIndex(_e),function(Ce,$e){ae[0]<=Ce&&Ce<=ae[1]&&pe.push($e)},this),ie.push({seriesId:le.id,dataIndex:pe})},this),ie},oe.prototype.getVisualMeta=function(ae){var ie=getColorStopValues(this,"outOfRange",this.getExtent()),le=getColorStopValues(this,"inRange",this.option.range.slice()),pe=[];function _e(ze,At){pe.push({value:ze,color:ae(ze,At)})}for(var Ce=0,$e=0,xe=le.length,Ie=ie.length;$e<Ie&&(!le.length||ie[$e]<=le[0]);$e++)ie[$e]<le[Ce]&&_e(ie[$e],"outOfRange");for(var Ne=1;Ce<xe;Ce++,Ne=0)Ne&&pe.length&&_e(le[Ce],"outOfRange"),_e(le[Ce],"inRange");for(var Ne=1;$e<Ie;$e++)(!le.length||le[le.length-1]<ie[$e])&&(Ne&&(pe.length&&_e(pe[pe.length-1].value,"outOfRange"),Ne=0),_e(ie[$e],"outOfRange"));var Fe=pe.length;return{stops:pe,outerColors:[Fe?pe[0].color:"transparent",Fe?pe[Fe-1].color:"transparent"]}},oe.type="visualMap.continuous",oe.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),oe}(VisualMapModel$1);function getColorStopValues($,oe,ae){if(ae[0]===ae[1])return ae.slice();for(var ie=200,le=(ae[1]-ae[0])/ie,pe=ae[0],_e=[],Ce=0;Ce<=ie&&pe<ae[1];Ce++)_e.push(pe),pe+=le;return _e.push(ae[1]),_e}const ContinuousModel$1=ContinuousModel;var VisualMapView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae.autoPositionValues={left:1,right:1,top:1,bottom:1},ae}return oe.prototype.init=function(ae,ie){this.ecModel=ae,this.api=ie},oe.prototype.render=function(ae,ie,le,pe){if(this.visualMapModel=ae,ae.get("show")===!1){this.group.removeAll();return}this.doRender(ae,ie,le,pe)},oe.prototype.renderBackground=function(ae){var ie=this.visualMapModel,le=normalizeCssArray(ie.get("padding")||0),pe=ae.getBoundingRect();ae.add(new Rect$2({z2:-1,silent:!0,shape:{x:pe.x-le[3],y:pe.y-le[0],width:pe.width+le[3]+le[1],height:pe.height+le[0]+le[2]},style:{fill:ie.get("backgroundColor"),stroke:ie.get("borderColor"),lineWidth:ie.get("borderWidth")}}))},oe.prototype.getControllerVisual=function(ae,ie,le){le=le||{};var pe=le.forceState,_e=this.visualMapModel,Ce={};if(ie==="color"){var $e=_e.get("contentColor");Ce.color=$e}function xe(ze){return Ce[ze]}function Ie(ze,At){Ce[ze]=At}var Ne=_e.controllerVisuals[pe||_e.getValueState(ae)],Fe=VisualMapping$1.prepareVisualTypes(Ne);return each$c(Fe,function(ze){var At=Ne[ze];le.convertOpacityToAlpha&&ze==="opacity"&&(ze="colorAlpha",At=Ne.__alphaForOpacity),VisualMapping$1.dependsOn(ze,ie)&&At&&At.applyVisual(ae,xe,Ie)}),Ce[ie]},oe.prototype.positionGroup=function(ae){var ie=this.visualMapModel,le=this.api;positionElement(ae,ie.getBoxLayoutParams(),{width:le.getWidth(),height:le.getHeight()})},oe.prototype.doRender=function(ae,ie,le,pe){},oe.type="visualMap",oe}(ComponentView$1);const VisualMapView$1=VisualMapView;var paramsSet=[["left","right","width"],["top","bottom","height"]];function getItemAlign($,oe,ae){var ie=$.option,le=ie.align;if(le!=null&&le!=="auto")return le;for(var pe={width:oe.getWidth(),height:oe.getHeight()},_e=ie.orient==="horizontal"?1:0,Ce=paramsSet[_e],$e=[0,null,10],xe={},Ie=0;Ie<3;Ie++)xe[paramsSet[1-_e][Ie]]=$e[Ie],xe[Ce[Ie]]=Ie===2?ae[0]:ie[Ce[Ie]];var Ne=[["x","width",3],["y","height",0]][_e],Fe=getLayoutRect(xe,pe,ie.padding);return Ce[(Fe.margin[Ne[2]]||0)+Fe[Ne[0]]+Fe[Ne[1]]*.5<pe[Ne[1]]*.5?0:1]}function makeHighDownBatch($,oe){return each$c($||[],function(ae){ae.dataIndex!=null&&(ae.dataIndexInside=ae.dataIndex,ae.dataIndex=null),ae.highlightKey="visualMap"+(oe?oe.componentIndex:"")}),$}var linearMap=linearMap$2,each$1=each$c,mathMin=Math.min,mathMax=Math.max,HOVER_LINK_SIZE=12,HOVER_LINK_OUT=6,ContinuousView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae._shapes={},ae._dataInterval=[],ae._handleEnds=[],ae._hoverLinkDataIndices=[],ae}return oe.prototype.doRender=function(ae,ie,le,pe){this._api=le,(!pe||pe.type!=="selectDataRange"||pe.from!==this.uid)&&this._buildView()},oe.prototype._buildView=function(){this.group.removeAll();var ae=this.visualMapModel,ie=this.group;this._orient=ae.get("orient"),this._useHandle=ae.get("calculable"),this._resetInterval(),this._renderBar(ie);var le=ae.get("text");this._renderEndsText(ie,le,0),this._renderEndsText(ie,le,1),this._updateView(!0),this.renderBackground(ie),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(ie)},oe.prototype._renderEndsText=function(ae,ie,le){if(ie){var pe=ie[1-le];pe=pe!=null?pe+"":"";var _e=this.visualMapModel,Ce=_e.get("textGap"),$e=_e.itemSize,xe=this._shapes.mainGroup,Ie=this._applyTransform([$e[0]/2,le===0?-Ce:$e[1]+Ce],xe),Ne=this._applyTransform(le===0?"bottom":"top",xe),Fe=this._orient,ze=this.visualMapModel.textStyleModel;this.group.add(new ZRText$1({style:createTextStyle$1(ze,{x:Ie[0],y:Ie[1],verticalAlign:Fe==="horizontal"?"middle":Ne,align:Fe==="horizontal"?Ne:"center",text:pe})}))}},oe.prototype._renderBar=function(ae){var ie=this.visualMapModel,le=this._shapes,pe=ie.itemSize,_e=this._orient,Ce=this._useHandle,$e=getItemAlign(ie,this.api,pe),xe=le.mainGroup=this._createBarGroup($e),Ie=new Group$3;xe.add(Ie),Ie.add(le.outOfRange=createPolygon()),Ie.add(le.inRange=createPolygon(null,Ce?getCursor(this._orient):null,bind$1(this._dragHandle,this,"all",!1),bind$1(this._dragHandle,this,"all",!0))),Ie.setClipPath(new Rect$2({shape:{x:0,y:0,width:pe[0],height:pe[1],r:3}}));var Ne=ie.textStyleModel.getTextRect("国"),Fe=mathMax(Ne.width,Ne.height);Ce&&(le.handleThumbs=[],le.handleLabels=[],le.handleLabelPoints=[],this._createHandle(ie,xe,0,pe,Fe,_e),this._createHandle(ie,xe,1,pe,Fe,_e)),this._createIndicator(ie,xe,pe,Fe,_e),ae.add(xe)},oe.prototype._createHandle=function(ae,ie,le,pe,_e,Ce){var $e=bind$1(this._dragHandle,this,le,!1),xe=bind$1(this._dragHandle,this,le,!0),Ie=parsePercent$1(ae.get("handleSize"),pe[0]),Ne=createSymbol(ae.get("handleIcon"),-Ie/2,-Ie/2,Ie,Ie,null,!0),Fe=getCursor(this._orient);Ne.attr({cursor:Fe,draggable:!0,drift:$e,ondragend:xe,onmousemove:function(vn){stop(vn.event)}}),Ne.x=pe[0]/2,Ne.useStyle(ae.getModel("handleStyle").getItemStyle()),Ne.setStyle({strokeNoScale:!0,strokeFirst:!0}),Ne.style.lineWidth*=2,Ne.ensureState("emphasis").style=ae.getModel(["emphasis","handleStyle"]).getItemStyle(),setAsHighDownDispatcher(Ne,!0),ie.add(Ne);var ze=this.visualMapModel.textStyleModel,At=new ZRText$1({cursor:Fe,draggable:!0,drift:$e,onmousemove:function(vn){stop(vn.event)},ondragend:xe,style:createTextStyle$1(ze,{x:0,y:0,text:""})});At.ensureState("blur").style={opacity:.1},At.stateTransition={duration:200},this.group.add(At);var Lt=[Ie,0],hn=this._shapes;hn.handleThumbs[le]=Ne,hn.handleLabelPoints[le]=Lt,hn.handleLabels[le]=At},oe.prototype._createIndicator=function(ae,ie,le,pe,_e){var Ce=parsePercent$1(ae.get("indicatorSize"),le[0]),$e=createSymbol(ae.get("indicatorIcon"),-Ce/2,-Ce/2,Ce,Ce,null,!0);$e.attr({cursor:"move",invisible:!0,silent:!0,x:le[0]/2});var xe=ae.getModel("indicatorStyle").getItemStyle();if($e instanceof ZRImage$1){var Ie=$e.style;$e.useStyle(extend({image:Ie.image,x:Ie.x,y:Ie.y,width:Ie.width,height:Ie.height},xe))}else $e.useStyle(xe);ie.add($e);var Ne=this.visualMapModel.textStyleModel,Fe=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(Ne,{x:0,y:0,text:""})});this.group.add(Fe);var ze=[(_e==="horizontal"?pe/2:HOVER_LINK_OUT)+le[0]/2,0],At=this._shapes;At.indicator=$e,At.indicatorLabel=Fe,At.indicatorLabelPoint=ze,this._firstShowIndicator=!0},oe.prototype._dragHandle=function(ae,ie,le,pe){if(this._useHandle){if(this._dragging=!ie,!ie){var _e=this._applyTransform([le,pe],this._shapes.mainGroup,!0);this._updateInterval(ae,_e[1]),this._hideIndicator(),this._updateView()}ie===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),ie?!this._hovering&&this._clearHoverLinkToSeries():useHoverLinkOnHandle(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[ae],!1)}},oe.prototype._resetInterval=function(){var ae=this.visualMapModel,ie=this._dataInterval=ae.getSelected(),le=ae.getExtent(),pe=[0,ae.itemSize[1]];this._handleEnds=[linearMap(ie[0],le,pe,!0),linearMap(ie[1],le,pe,!0)]},oe.prototype._updateInterval=function(ae,ie){ie=ie||0;var le=this.visualMapModel,pe=this._handleEnds,_e=[0,le.itemSize[1]];sliderMove(ie,pe,_e,ae,0);var Ce=le.getExtent();this._dataInterval=[linearMap(pe[0],_e,Ce,!0),linearMap(pe[1],_e,Ce,!0)]},oe.prototype._updateView=function(ae){var ie=this.visualMapModel,le=ie.getExtent(),pe=this._shapes,_e=[0,ie.itemSize[1]],Ce=ae?_e:this._handleEnds,$e=this._createBarVisual(this._dataInterval,le,Ce,"inRange"),xe=this._createBarVisual(le,le,_e,"outOfRange");pe.inRange.setStyle({fill:$e.barColor}).setShape("points",$e.barPoints),pe.outOfRange.setStyle({fill:xe.barColor}).setShape("points",xe.barPoints),this._updateHandle(Ce,$e)},oe.prototype._createBarVisual=function(ae,ie,le,pe){var _e={forceState:pe,convertOpacityToAlpha:!0},Ce=this._makeColorGradient(ae,_e),$e=[this.getControllerVisual(ae[0],"symbolSize",_e),this.getControllerVisual(ae[1],"symbolSize",_e)],xe=this._createBarPoints(le,$e);return{barColor:new LinearGradient$1(0,0,0,1,Ce),barPoints:xe,handlesColor:[Ce[0].color,Ce[Ce.length-1].color]}},oe.prototype._makeColorGradient=function(ae,ie){var le=100,pe=[],_e=(ae[1]-ae[0])/le;pe.push({color:this.getControllerVisual(ae[0],"color",ie),offset:0});for(var Ce=1;Ce<le;Ce++){var $e=ae[0]+_e*Ce;if($e>ae[1])break;pe.push({color:this.getControllerVisual($e,"color",ie),offset:Ce/le})}return pe.push({color:this.getControllerVisual(ae[1],"color",ie),offset:1}),pe},oe.prototype._createBarPoints=function(ae,ie){var le=this.visualMapModel.itemSize;return[[le[0]-ie[0],ae[0]],[le[0],ae[0]],[le[0],ae[1]],[le[0]-ie[1],ae[1]]]},oe.prototype._createBarGroup=function(ae){var ie=this._orient,le=this.visualMapModel.get("inverse");return new Group$3(ie==="horizontal"&&!le?{scaleX:ae==="bottom"?1:-1,rotation:Math.PI/2}:ie==="horizontal"&&le?{scaleX:ae==="bottom"?-1:1,rotation:-Math.PI/2}:ie==="vertical"&&!le?{scaleX:ae==="left"?1:-1,scaleY:-1}:{scaleX:ae==="left"?1:-1})},oe.prototype._updateHandle=function(ae,ie){if(this._useHandle){var le=this._shapes,pe=this.visualMapModel,_e=le.handleThumbs,Ce=le.handleLabels,$e=pe.itemSize,xe=pe.getExtent();each$1([0,1],function(Ie){var Ne=_e[Ie];Ne.setStyle("fill",ie.handlesColor[Ie]),Ne.y=ae[Ie];var Fe=linearMap(ae[Ie],[0,$e[1]],xe,!0),ze=this.getControllerVisual(Fe,"symbolSize");Ne.scaleX=Ne.scaleY=ze/$e[0],Ne.x=$e[0]-ze/2;var At=applyTransform(le.handleLabelPoints[Ie],getTransform$1(Ne,this.group));Ce[Ie].setStyle({x:At[0],y:At[1],text:pe.formatValueText(this._dataInterval[Ie]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",le.mainGroup):"center"})},this)}},oe.prototype._showIndicator=function(ae,ie,le,pe){var _e=this.visualMapModel,Ce=_e.getExtent(),$e=_e.itemSize,xe=[0,$e[1]],Ie=this._shapes,Ne=Ie.indicator;if(Ne){Ne.attr("invisible",!1);var Fe={convertOpacityToAlpha:!0},ze=this.getControllerVisual(ae,"color",Fe),At=this.getControllerVisual(ae,"symbolSize"),Lt=linearMap(ae,Ce,xe,!0),hn=$e[0]-At/2,vn={x:Ne.x,y:Ne.y};Ne.y=Lt,Ne.x=hn;var _n=applyTransform(Ie.indicatorLabelPoint,getTransform$1(Ne,this.group)),bn=Ie.indicatorLabel;bn.attr("invisible",!1);var Cn=this._applyTransform("left",Ie.mainGroup),En=this._orient,$n=En==="horizontal";bn.setStyle({text:(le||"")+_e.formatValueText(ie),verticalAlign:$n?Cn:"middle",align:$n?"center":Cn});var wn={x:hn,y:Lt,style:{fill:ze}},Tn={style:{x:_n[0],y:_n[1]}};if(_e.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var xn={duration:100,easing:"cubicInOut",additive:!0};Ne.x=vn.x,Ne.y=vn.y,Ne.animateTo(wn,xn),bn.animateTo(Tn,xn)}else Ne.attr(wn),bn.attr(Tn);this._firstShowIndicator=!1;var kn=this._shapes.handleLabels;if(kn)for(var An=0;An<kn.length;An++)this._api.enterBlur(kn[An])}},oe.prototype._enableHoverLinkToSeries=function(){var ae=this;this._shapes.mainGroup.on("mousemove",function(ie){if(ae._hovering=!0,!ae._dragging){var le=ae.visualMapModel.itemSize,pe=ae._applyTransform([ie.offsetX,ie.offsetY],ae._shapes.mainGroup,!0,!0);pe[1]=mathMin(mathMax(0,pe[1]),le[1]),ae._doHoverLinkToSeries(pe[1],0<=pe[0]&&pe[0]<=le[0])}}).on("mouseout",function(){ae._hovering=!1,!ae._dragging&&ae._clearHoverLinkToSeries()})},oe.prototype._enableHoverLinkFromSeries=function(){var ae=this.api.getZr();this.visualMapModel.option.hoverLink?(ae.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),ae.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},oe.prototype._doHoverLinkToSeries=function(ae,ie){var le=this.visualMapModel,pe=le.itemSize;if(le.option.hoverLink){var _e=[0,pe[1]],Ce=le.getExtent();ae=mathMin(mathMax(_e[0],ae),_e[1]);var $e=getHalfHoverLinkSize(le,Ce,_e),xe=[ae-$e,ae+$e],Ie=linearMap(ae,_e,Ce,!0),Ne=[linearMap(xe[0],_e,Ce,!0),linearMap(xe[1],_e,Ce,!0)];xe[0]<_e[0]&&(Ne[0]=-1/0),xe[1]>_e[1]&&(Ne[1]=1/0),ie&&(Ne[0]===-1/0?this._showIndicator(Ie,Ne[1],"< ",$e):Ne[1]===1/0?this._showIndicator(Ie,Ne[0],"> ",$e):this._showIndicator(Ie,Ie,"≈ ",$e));var Fe=this._hoverLinkDataIndices,ze=[];(ie||useHoverLinkOnHandle(le))&&(ze=this._hoverLinkDataIndices=le.findTargetDataIndices(Ne));var At=compressBatches(Fe,ze);this._dispatchHighDown("downplay",makeHighDownBatch(At[0],le)),this._dispatchHighDown("highlight",makeHighDownBatch(At[1],le))}},oe.prototype._hoverLinkFromSeriesMouseOver=function(ae){var ie;if(findEventDispatcher(ae.target,function($e){var xe=getECData($e);if(xe.dataIndex!=null)return ie=xe,!0},!0),!!ie){var le=this.ecModel.getSeriesByIndex(ie.seriesIndex),pe=this.visualMapModel;if(pe.isTargetSeries(le)){var _e=le.getData(ie.dataType),Ce=_e.getStore().get(pe.getDataDimensionIndex(_e),ie.dataIndex);isNaN(Ce)||this._showIndicator(Ce,Ce)}}},oe.prototype._hideIndicator=function(){var ae=this._shapes;ae.indicator&&ae.indicator.attr("invisible",!0),ae.indicatorLabel&&ae.indicatorLabel.attr("invisible",!0);var ie=this._shapes.handleLabels;if(ie)for(var le=0;le<ie.length;le++)this._api.leaveBlur(ie[le])},oe.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var ae=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",makeHighDownBatch(ae,this.visualMapModel)),ae.length=0},oe.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var ae=this.api.getZr();ae.off("mouseover",this._hoverLinkFromSeriesMouseOver),ae.off("mouseout",this._hideIndicator)},oe.prototype._applyTransform=function(ae,ie,le,pe){var _e=getTransform$1(ie,pe?null:this.group);return isArray$1(ae)?applyTransform(ae,_e,le):transformDirection(ae,_e,le)},oe.prototype._dispatchHighDown=function(ae,ie){ie&&ie.length&&this.api.dispatchAction({type:ae,batch:ie})},oe.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},oe.prototype.remove=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},oe.type="visualMap.continuous",oe}(VisualMapView$1);function createPolygon($,oe,ae,ie){return new Polygon$1({shape:{points:$},draggable:!!ae,cursor:oe,drift:ae,onmousemove:function(le){stop(le.event)},ondragend:ie})}function getHalfHoverLinkSize($,oe,ae){var ie=HOVER_LINK_SIZE/2,le=$.get("hoverLinkDataSize");return le&&(ie=linearMap(le,oe,ae,!0)/2),ie}function useHoverLinkOnHandle($){var oe=$.get("hoverLinkOnHandle");return!!(oe??$.get("realtime"))}function getCursor($){return $==="vertical"?"ns-resize":"ew-resize"}const ContinuousView$1=ContinuousView;var visualMapActionInfo={type:"selectDataRange",event:"dataRangeSelected",update:"update"},visualMapActionHander=function($,oe){oe.eachComponent({mainType:"visualMap",query:$},function(ae){ae.setSelected($.selected)})},visualMapEncodingHandlers=[{createOnAllSeries:!0,reset:function($,oe){var ae=[];return oe.eachComponent("visualMap",function(ie){var le=$.pipelineContext;!ie.isTargetSeries($)||le&&le.large||ae.push(incrementalApplyVisual(ie.stateList,ie.targetVisuals,bind$1(ie.getValueState,ie),ie.getDataDimensionIndex($.getData())))}),ae}},{createOnAllSeries:!0,reset:function($,oe){var ae=$.getData(),ie=[];oe.eachComponent("visualMap",function(le){if(le.isTargetSeries($)){var pe=le.getVisualMeta(bind$1(getColorVisual,null,$,le))||{stops:[],outerColors:[]},_e=le.getDataDimensionIndex(ae);_e>=0&&(pe.dimension=_e,ie.push(pe))}}),$.getData().setVisual("visualMeta",ie)}}];function getColorVisual($,oe,ae,ie){for(var le=oe.targetVisuals[ie],pe=VisualMapping$1.prepareVisualTypes(le),_e={color:getVisualFromData($.getData(),"color")},Ce=0,$e=pe.length;Ce<$e;Ce++){var xe=pe[Ce],Ie=le[xe==="opacity"?"__alphaForOpacity":xe];Ie&&Ie.applyVisual(ae,Ne,Fe)}return _e.color;function Ne(ze){return _e[ze]}function Fe(ze,At){_e[ze]=At}}var each=each$c;function visualMapPreprocessor($){var oe=$&&$.visualMap;isArray$1(oe)||(oe=oe?[oe]:[]),each(oe,function(ae){if(ae){has(ae,"splitList")&&!has(ae,"pieces")&&(ae.pieces=ae.splitList,delete ae.splitList);var ie=ae.pieces;ie&&isArray$1(ie)&&each(ie,function(le){isObject$3(le)&&(has(le,"start")&&!has(le,"min")&&(le.min=le.start),has(le,"end")&&!has(le,"max")&&(le.max=le.end))})}})}function has($,oe){return $&&$.hasOwnProperty&&$.hasOwnProperty(oe)}var installed=!1;function installCommon($){installed||(installed=!0,$.registerSubTypeDefaulter("visualMap",function(oe){return!oe.categories&&(!(oe.pieces?oe.pieces.length>0:oe.splitNumber>0)||oe.calculable)?"continuous":"piecewise"}),$.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(oe){$.registerVisual($.PRIORITY.VISUAL.COMPONENT,oe)}),$.registerPreprocessor(visualMapPreprocessor))}function install$2($){$.registerComponentModel(ContinuousModel$1),$.registerComponentView(ContinuousView$1),installCommon($)}var PiecewiseModel=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae._pieceList=[],ae}return oe.prototype.optionUpdated=function(ae,ie){$.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var le=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected(ae,ie);var pe=this.option.categories;this.resetVisual(function(_e,Ce){le==="categories"?(_e.mappingMethod="category",_e.categories=clone$3(pe)):(_e.dataExtent=this.getExtent(),_e.mappingMethod="piecewise",_e.pieceList=map$2(this._pieceList,function($e){return $e=clone$3($e),Ce!=="inRange"&&($e.visual=null),$e}))})},oe.prototype.completeVisualOption=function(){var ae=this.option,ie={},le=VisualMapping$1.listVisualTypes(),pe=this.isCategory();each$c(ae.pieces,function(Ce){each$c(le,function($e){Ce.hasOwnProperty($e)&&(ie[$e]=1)})}),each$c(ie,function(Ce,$e){var xe=!1;each$c(this.stateList,function(Ie){xe=xe||_e(ae,Ie,$e)||_e(ae.target,Ie,$e)},this),!xe&&each$c(this.stateList,function(Ie){(ae[Ie]||(ae[Ie]={}))[$e]=visualDefault$1.get($e,Ie==="inRange"?"active":"inactive",pe)})},this);function _e(Ce,$e,xe){return Ce&&Ce[$e]&&Ce[$e].hasOwnProperty(xe)}$.prototype.completeVisualOption.apply(this,arguments)},oe.prototype._resetSelected=function(ae,ie){var le=this.option,pe=this._pieceList,_e=(ie?le:ae).selected||{};if(le.selected=_e,each$c(pe,function($e,xe){var Ie=this.getSelectedMapKey($e);_e.hasOwnProperty(Ie)||(_e[Ie]=!0)},this),le.selectedMode==="single"){var Ce=!1;each$c(pe,function($e,xe){var Ie=this.getSelectedMapKey($e);_e[Ie]&&(Ce?_e[Ie]=!1:Ce=!0)},this)}},oe.prototype.getItemSymbol=function(){return this.get("itemSymbol")},oe.prototype.getSelectedMapKey=function(ae){return this._mode==="categories"?ae.value+"":ae.index+""},oe.prototype.getPieceList=function(){return this._pieceList},oe.prototype._determineMode=function(){var ae=this.option;return ae.pieces&&ae.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},oe.prototype.setSelected=function(ae){this.option.selected=clone$3(ae)},oe.prototype.getValueState=function(ae){var ie=VisualMapping$1.findPieceIndex(ae,this._pieceList);return ie!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[ie])]?"inRange":"outOfRange"},oe.prototype.findTargetDataIndices=function(ae){var ie=[],le=this._pieceList;return this.eachTargetSeries(function(pe){var _e=[],Ce=pe.getData();Ce.each(this.getDataDimensionIndex(Ce),function($e,xe){var Ie=VisualMapping$1.findPieceIndex($e,le);Ie===ae&&_e.push(xe)},this),ie.push({seriesId:pe.id,dataIndex:_e})},this),ie},oe.prototype.getRepresentValue=function(ae){var ie;if(this.isCategory())ie=ae.value;else if(ae.value!=null)ie=ae.value;else{var le=ae.interval||[];ie=le[0]===-1/0&&le[1]===1/0?0:(le[0]+le[1])/2}return ie},oe.prototype.getVisualMeta=function(ae){if(this.isCategory())return;var ie=[],le=["",""],pe=this;function _e(Ie,Ne){var Fe=pe.getRepresentValue({interval:Ie});Ne||(Ne=pe.getValueState(Fe));var ze=ae(Fe,Ne);Ie[0]===-1/0?le[0]=ze:Ie[1]===1/0?le[1]=ze:ie.push({value:Ie[0],color:ze},{value:Ie[1],color:ze})}var Ce=this._pieceList.slice();if(!Ce.length)Ce.push({interval:[-1/0,1/0]});else{var $e=Ce[0].interval[0];$e!==-1/0&&Ce.unshift({interval:[-1/0,$e]}),$e=Ce[Ce.length-1].interval[1],$e!==1/0&&Ce.push({interval:[$e,1/0]})}var xe=-1/0;return each$c(Ce,function(Ie){var Ne=Ie.interval;Ne&&(Ne[0]>xe&&_e([xe,Ne[0]],"outOfRange"),_e(Ne.slice()),xe=Ne[1])},this),{stops:ie,outerColors:le}},oe.type="visualMap.piecewise",oe.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),oe}(VisualMapModel$1),resetMethods={splitNumber:function($){var oe=this.option,ae=Math.min(oe.precision,20),ie=this.getExtent(),le=oe.splitNumber;le=Math.max(parseInt(le,10),1),oe.splitNumber=le;for(var pe=(ie[1]-ie[0])/le;+pe.toFixed(ae)!==pe&&ae<5;)ae++;oe.precision=ae,pe=+pe.toFixed(ae),oe.minOpen&&$.push({interval:[-1/0,ie[0]],close:[0,0]});for(var _e=0,Ce=ie[0];_e<le;Ce+=pe,_e++){var $e=_e===le-1?ie[1]:Ce+pe;$.push({interval:[Ce,$e],close:[1,1]})}oe.maxOpen&&$.push({interval:[ie[1],1/0],close:[0,0]}),reformIntervals($),each$c($,function(xe,Ie){xe.index=Ie,xe.text=this.formatValueText(xe.interval)},this)},categories:function($){var oe=this.option;each$c(oe.categories,function(ae){$.push({text:this.formatValueText(ae,!0),value:ae})},this),normalizeReverse(oe,$)},pieces:function($){var oe=this.option;each$c(oe.pieces,function(ae,ie){isObject$3(ae)||(ae={value:ae});var le={text:"",index:ie};if(ae.label!=null&&(le.text=ae.label),ae.hasOwnProperty("value")){var pe=le.value=ae.value;le.interval=[pe,pe],le.close=[1,1]}else{for(var _e=le.interval=[],Ce=le.close=[0,0],$e=[1,0,1],xe=[-1/0,1/0],Ie=[],Ne=0;Ne<2;Ne++){for(var Fe=[["gte","gt","min"],["lte","lt","max"]][Ne],ze=0;ze<3&&_e[Ne]==null;ze++)_e[Ne]=ae[Fe[ze]],Ce[Ne]=$e[ze],Ie[Ne]=ze===2;_e[Ne]==null&&(_e[Ne]=xe[Ne])}Ie[0]&&_e[1]===1/0&&(Ce[0]=0),Ie[1]&&_e[0]===-1/0&&(Ce[1]=0),_e[0]===_e[1]&&Ce[0]&&Ce[1]&&(le.value=_e[0])}le.visual=VisualMapping$1.retrieveVisuals(ae),$.push(le)},this),normalizeReverse(oe,$),reformIntervals($),each$c($,function(ae){var ie=ae.close,le=[["<","≤"][ie[1]],[">","≥"][ie[0]]];ae.text=ae.text||this.formatValueText(ae.value!=null?ae.value:ae.interval,!1,le)},this)}};function normalizeReverse($,oe){var ae=$.inverse;($.orient==="vertical"?!ae:ae)&&oe.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function($){__extends(oe,$);function oe(){var ae=$!==null&&$.apply(this,arguments)||this;return ae.type=oe.type,ae}return oe.prototype.doRender=function(){var ae=this.group;ae.removeAll();var ie=this.visualMapModel,le=ie.get("textGap"),pe=ie.textStyleModel,_e=pe.getFont(),Ce=pe.getTextColor(),$e=this._getItemAlign(),xe=ie.itemSize,Ie=this._getViewData(),Ne=Ie.endsText,Fe=retrieve(ie.get("showLabel",!0),!Ne);Ne&&this._renderEndsText(ae,Ne[0],xe,Fe,$e),each$c(Ie.viewPieceList,function(ze){var At=ze.piece,Lt=new Group$3;Lt.onclick=bind$1(this._onItemClick,this,At),this._enableHoverLink(Lt,ze.indexInModelPieceList);var hn=ie.getRepresentValue(At);if(this._createItemSymbol(Lt,hn,[0,0,xe[0],xe[1]]),Fe){var vn=this.visualMapModel.getValueState(hn);Lt.add(new ZRText$1({style:{x:$e==="right"?-le:xe[0]+le,y:xe[1]/2,text:At.text,verticalAlign:"middle",align:$e,font:_e,fill:Ce,opacity:vn==="outOfRange"?.5:1}}))}ae.add(Lt)},this),Ne&&this._renderEndsText(ae,Ne[1],xe,Fe,$e),box(ie.get("orient"),ae,ie.get("itemGap")),this.renderBackground(ae),this.positionGroup(ae)},oe.prototype._enableHoverLink=function(ae,ie){var le=this;ae.on("mouseover",function(){return pe("highlight")}).on("mouseout",function(){return pe("downplay")});var pe=function(_e){var Ce=le.visualMapModel;Ce.option.hoverLink&&le.api.dispatchAction({type:_e,batch:makeHighDownBatch(Ce.findTargetDataIndices(ie),Ce)})}},oe.prototype._getItemAlign=function(){var ae=this.visualMapModel,ie=ae.option;if(ie.orient==="vertical")return getItemAlign(ae,this.api,ae.itemSize);var le=ie.align;return(!le||le==="auto")&&(le="left"),le},oe.prototype._renderEndsText=function(ae,ie,le,pe,_e){if(ie){var Ce=new Group$3,$e=this.visualMapModel.textStyleModel;Ce.add(new ZRText$1({style:createTextStyle$1($e,{x:pe?_e==="right"?le[0]:0:le[0]/2,y:le[1]/2,verticalAlign:"middle",align:pe?_e:"center",text:ie})})),ae.add(Ce)}},oe.prototype._getViewData=function(){var ae=this.visualMapModel,ie=map$2(ae.getPieceList(),function(Ce,$e){return{piece:Ce,indexInModelPieceList:$e}}),le=ae.get("text"),pe=ae.get("orient"),_e=ae.get("inverse");return(pe==="horizontal"?_e:!_e)?ie.reverse():le&&(le=le.slice().reverse()),{viewPieceList:ie,endsText:le}},oe.prototype._createItemSymbol=function(ae,ie,le){ae.add(createSymbol(this.getControllerVisual(ie,"symbol"),le[0],le[1],le[2],le[3],this.getControllerVisual(ie,"color")))},oe.prototype._onItemClick=function(ae){var ie=this.visualMapModel,le=ie.option,pe=le.selectedMode;if(pe){var _e=clone$3(le.selected),Ce=ie.getSelectedMapKey(ae);pe==="single"||pe===!0?(_e[Ce]=!0,each$c(_e,function($e,xe){_e[xe]=xe===Ce})):_e[Ce]=!_e[Ce],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:_e})}},oe.type="visualMap.piecewise",oe}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1($){$.registerComponentModel(PiecewiseModel$1),$.registerComponentView(PiecewiseView),installCommon($)}function install($){use$1(install$2),use$1(install$1)}const{use}=echarts;use([install$h,install$i,install$j,install$k,install$e,install$9,install$6,install$d,install$b,install$a,install$3,install]);function useEcharts($){$.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$1=Object.prototype.hasOwnProperty,_$1=($,oe,ae)=>oe in $?p($,oe,{enumerable:!0,configurable:!0,writable:!0,value:ae}):$[oe]=ae,P=($,oe)=>{for(var ae in oe)p($,ae,{get:oe[ae],enumerable:!0})},y=($,oe,ae,ie)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let le of u(oe))!j$1.call($,le)&&le!==ae&&p($,le,{get:()=>oe[le],enumerable:!(ie=d(oe,le))||ie.enumerable});return $},m$1=($,oe,ae)=>(y($,oe,"default"),ae&&y(ae,oe,"default")),f=($,oe,ae)=>(_$1($,typeof oe!="symbol"?oe+"":oe,ae),ae),c={};P(c,{Vue:()=>vue_runtime_esmBundler});m$1(c,vue_runtime_esmBundler);var g=class{static install($,oe){let{nameSpace:ae=this._nameSpace,memory:ie}=oe;return ie&&this.clearAll(ae,ie),new g($,oe)}static clearAll($,oe){Object.keys(oe).forEach(ae=>{let ie=$+ae;Object.prototype.hasOwnProperty.call(window.localStorage,ie)&&window.localStorage.removeItem(ie)})}static get($){return JSON.parse(window.localStorage.getItem($))}static set($,oe){oe=typeof oe=="object"?JSON.stringify(oe):oe,window.localStorage.setItem($,oe)}static getData($,oe){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(oe,$)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(oe,$)))}constructor($,oe){let ae=g,{version:ie=3,nameSpace:le=ae._nameSpace,memory:pe}=oe,_e=xe=>le+xe,Ce=ie===3?(0,c.reactive)(pe):pe;Object.keys(Ce).length===0&&console.warn("key cannot be empty"),Object.keys(Ce).forEach(xe=>{let Ie=Ce[xe];ae.set(_e(xe),Ie),Reflect.defineProperty(Ce,xe,{get:()=>ae.get(_e(xe)),set:Ne=>ae.set(_e(xe),Ne),configurable:!0}),ie===2&&$.util.defineReactive(Ce,xe,Ce[xe])});let $e=ie===3?$.config.globalProperties:$.prototype;Reflect.defineProperty($e,"$storage",{get:()=>Ce})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",($,oe)=>`${$??g._nameSpace}${oe}`);const injectResponsiveStorage=($,oe)=>{const ae=responsiveStorageNameSpace(),ie=Object.assign({locale:n.getData("locale",ae)??{locale:oe.Locale??"zh"},layout:n.getData("layout",ae)??{layout:oe.Layout??"vertical",theme:oe.Theme??"default",darkMode:oe.DarkMode??!1,sidebarStatus:oe.SidebarStatus??!0,epThemeColor:oe.EpThemeColor??"#409EFF"},configure:n.getData("configure",ae)??{grey:oe.Grey??!1,weak:oe.Weak??!1,hideTabs:oe.HideTabs??!1,showLogo:oe.ShowLogo??!0,showModel:oe.ShowModel??"smart",multiTagsCache:oe.MultiTagsCache??!1}},oe.MultiTagsCache?{tags:n.getData("tags",ae)??routerArrays}:{});$.use(n,{nameSpace:ae,memory:ie})},ue=Object.prototype.hasOwnProperty,D=($,oe)=>ue.call($,oe),_=$=>$!==null&&typeof $=="object",de=(($,oe)=>{if(!_($)||_(ae=$)&&ae.__epPropKey)return $;var ae;const{values:ie,required:le,default:pe,type:_e,validator:Ce}=$,$e=ie||Ce?Ie=>{let Ne=!1,Fe=[];if(ie&&(Fe=Array.from(ie),D($,"default")&&Fe.push(pe),Ne||(Ne=Fe.includes(Ie))),Ce&&(Ne||(Ne=Ce(Ie))),!Ne&&Fe.length>0){const ze=[...new Set(Fe)].map(At=>JSON.stringify(At)).join(", ");warn$2(`Invalid prop: validation failed${oe?` for prop "${oe}"`:""}. Expected one of [${ze}], got value ${JSON.stringify(Ie)}.`)}return Ne}:void 0,xe={type:_e,required:!!le,validator:$e,__epPropKey:!0};return D($,"default")&&(xe.default=pe),xe})({type:String,values:["","default","small","large"],required:!1});var ce={data:{type:Array,default:()=>[]},size:de,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children"})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:{type:Boolean,default:!1},flexible:Boolean};const ge={key:{type:String||Number,default:"0"},columns:{type:Array,default:[]},loading:{type:Boolean,default:!1},loadingConfig:{type:Object,default:()=>{}},alignWhole:{type:String,default:"left"},headerAlign:{type:String,default:""},showOverflowTooltip:{type:Boolean,default:!1},rowHoverBgColor:{type:String,default:""},pagination:{type:Object,default:{total:0,pageSize:5,align:"right",background:!1,pageSizes:[5,10,15,20],layout:"total, sizes, prev, pager, next, jumper"}},paginationSmall:{type:Boolean,default:!1},...ce},H=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:$=>()=>createVNode(Fragment,null,[$.render($.params)])});var J=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,ye=Object.getOwnPropertyNames,me=Object.prototype.hasOwnProperty,K=($,oe,ae,ie)=>{if(oe&&typeof oe=="object"||typeof oe=="function")for(let le of ye(oe))!me.call($,le)&&le!==ae&&J($,le,{get:()=>oe[le],enumerable:!(ie=fe(oe,le))||ie.enumerable});return $},be=Object.prototype.toString;function M($){return typeof $=="function"}function he($){return function(oe,ae){return be.call(oe)===`[object ${ae}]`}($,"Boolean")}var h={};(($,oe)=>{for(var ae in oe)J($,ae,{get:oe[ae],enumerable:!0})})(h,{Vue:()=>vue_runtime_esmBundler}),K(h,vue_runtime_esmBundler,"default");var Oe=()=>{let $,oe=(0,h.ref)(!1),ae=()=>{oe.value=document.documentElement.classList.contains("dark")};return function(ie){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(ie)}(()=>{$.takeRecords(),$.disconnect()}),(0,h.onBeforeMount)(()=>{ae(),$=new MutationObserver(ae),$.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:oe}};const T=defineComponent({name:"PureTable",props:ge,emits:["page-size-change","page-current-change"],setup($,{slots:oe,attrs:ae,emit:ie,expose:le}){const{isDark:pe}=Oe(),_e=getCurrentInstance();function Ce(){var $n;return($n=_e==null?void 0:_e.proxy)==null?void 0:$n.$refs[`TableRef${$.key}`]}function $e(){return Ce().$refs}onMounted(()=>{nextTick(()=>{$.rowHoverBgColor&&$e().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",$.rowHoverBgColor,"important")})});const{columns:xe,loading:Ie,loadingConfig:Ne,alignWhole:Fe,headerAlign:ze,showOverflowTooltip:At,pagination:Lt}=toRefs($);let hn=computed(()=>{if(!unref(Ne))return;let{text:$n,spinner:wn,svg:Tn,viewBox:xn}=unref(Ne);return{"element-loading-text":$n,"element-loading-spinner":wn,"element-loading-svg":Tn,"element-loading-svg-view-box":xn}});const vn=computed(()=>{var $n,wn;if(unref(Ie))return{"element-loading-background":((wn=($n=unref(Ne))==null?void 0:$n.background)!=null?wn:pe.value)?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),_n=computed(()=>{var $n;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:unref(Lt).align==="left"?"flex-start":unref(Lt).align==="center"?"center":"flex-end"},($n=unref(Lt).style)!=null?$n:{})});let bn=unref(Lt)&&unref(Lt).currentPage&&unref(Lt).pageSize;const Cn=($n,wn)=>{const{cellRenderer:Tn,slot:xn,headerRenderer:kn,hide:An,children:On,prop:Nn,...Rn}=$n;if(M(An)&&An(ae))return An(ae);if(he(An)&&An)return An;const zn={default:Fn=>{var Vn;return Tn?createVNode(H,{render:Tn,params:Object.assign(Fn,{index:Fn.$index,props:$,attrs:ae})},null):xn?(Vn=oe==null?void 0:oe[xn])==null?void 0:Vn.call(oe,Object.assign(Fn,{index:Fn.$index,props:$,attrs:ae})):void 0}};let Bn=kn?{header:Fn=>createVNode(H,{render:kn,params:Object.assign(Fn,{index:Fn.$index,props:$,attrs:ae})},null),...zn}:zn;return(On==null?void 0:On.length)>0&&(Bn=On.map(Cn)),createVNode(ElTableColumn,mergeProps({key:wn},Rn,{prop:M(Nn)&&Nn(wn)?Nn(wn):Nn,align:$n!=null&&$n.align?$n.align:unref(Fe),headerAlign:$n!=null&&$n.headerAlign?$n.headerAlign:unref(ze),showOverflowTooltip:$n!=null&&$n.showOverflowTooltip?$n.showOverflowTooltip:unref(At)}),typeof(Mn=Bn)=="function"||Object.prototype.toString.call(Mn)==="[object Object]"&&!isVNode$1(Mn)?Bn:{default:()=>[Bn]});var Mn};le({getTableRef:Ce,getTableDoms:$e});let En=()=>{var $n,wn;return createVNode(Fragment,null,[createVNode(ElTable,mergeProps($,ae,{ref:`TableRef${$.key}`}),{default:()=>unref(xe).map(Cn),append:()=>oe.append&&oe.append(),empty:()=>oe.empty&&oe.empty()}),bn?createVNode(ElPagination,mergeProps(ae,{class:"pure-pagination",style:unref(_n)},unref(Lt),{small:$!=null&&$.paginationSmall?$==null?void 0:$.paginationSmall:!!unref(Lt).small&&unref(Lt).small,layout:($n=unref(Lt).layout)!=null?$n:"total, sizes, prev, pager, next, jumper",pageSizes:(wn=unref(Lt).pageSizes)!=null?wn:[5,10,15,20],onSizeChange:Tn=>(xn=>{unref(Lt).pageSize=xn,ie("page-size-change",xn)})(Tn),onCurrentChange:Tn=>(xn=>{unref(Lt).currentPage=xn,ie("page-current-change",xn)})(Tn)}),null):null])};return()=>withDirectives(createVNode("div",mergeProps({class:"pure-table",style:"width:100%"},unref(vn),unref(hn)),[En()]),[[resolveDirective("loading"),unref(Ie)]])}}),Se=Object.assign(T,{install:function($){$.component(T.name,T)}}),L={data:{type:Array,default:[]},columns:{type:Array,default:[]},loading:{type:Object,default:()=>({load:!1,text:"Loading...",svg:"",spinner:"",svgViewBox:"",background:""})},align:{type:String,default:"left"},labelAlign:{type:String,default:""},...ElDescriptions.props},j=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:$=>()=>createVNode(Fragment,null,[$.render($.params)])}),m=defineComponent({name:"PureDescriptions",props:L,setup($,{slots:oe,attrs:ae}){const{data:ie,columns:le,align:pe,labelAlign:_e,loading:Ce}=toRefs($),$e={title:()=>(oe==null?void 0:oe.title)&&oe.title({props:$,attrs:ae})},xe={extra:()=>(oe==null?void 0:oe.extra)&&oe.extra({props:$,attrs:ae})},Ie=oe!=null&&oe.title&&!(oe!=null&&oe.extra)?$e:oe!=null&&oe.extra&&!(oe!=null&&oe.title)?xe:oe!=null&&oe.title&&(oe!=null&&oe.extra)?Object.assign($e,xe):null;return()=>{var Ne;return withDirectives(createVNode(ElDescriptions,mergeProps($,ae,{"element-loading-text":(Ne=unref(Ce).text)!=null?Ne:"Loading...","element-loading-svg":unref(Ce).svg,"element-loading-spinner":unref(Ce).spinner,"element-loading-svg-view-box":unref(Ce).svgViewBox,"element-loading-background":unref(Ce).background}),{default:()=>[unref(le).map((Fe,ze)=>{let At=unref(ie).map(bn=>bn[Fe==null?void 0:Fe.prop]);const Lt={default:()=>{var bn;return Fe!=null&&Fe.cellRenderer?createVNode(j,{render:Fe.cellRenderer,params:{props:$,attrs:ae,index:ze,value:At[0]}},null):Fe!=null&&Fe.slot?(bn=oe==null?void 0:oe[Fe.slot])==null?void 0:bn.call(oe,{props:$,attrs:ae,index:ze,value:At[0]}):createVNode(Fragment,null,Fe!=null&&Fe.value?[unref(Fe.value)]:[At])}},hn=Fe!=null&&Fe.labelRenderer?{label:()=>createVNode(j,{render:Fe.labelRenderer,params:{props:$,attrs:ae,index:ze,value:At[0]}},null),...Lt}:Lt;return vn=Fe==null?void 0:Fe.hide,typeof vn=="function"&&(Fe!=null&&Fe.hide(ae))?Fe==null?void 0:Fe.hide(ae):createVNode(ElDescriptionsItem,mergeProps(Fe,{key:ze,align:Fe.align?Fe.align:unref(pe),labelAlign:Fe.labelAlign?Fe.labelAlign:unref(_e)}),typeof(_n=hn)=="function"||Object.prototype.toString.call(_n)==="[object Object]"&&!isVNode$1(_n)?hn:{default:()=>[hn]});var vn,_n})],...Ie}),[[resolveDirective("loading"),unref(Ce).load]])}}}),I=Object.assign(m,{install:function($){$.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='<svg><symbol id="pure-iconfont-tabs" viewBox="0 0 1024 1024"><path d="M400.43383789 497.82763673c4.20227051 3.95507813 6.50939942 9.64050293 6.26220703 15.40832519 0.32958983 5.85021973-2.05993653 11.53564453-6.26220703 15.40832519-4.36706543 3.87268067-10.1348877 5.93261719-15.90270996 5.6854248h-57.3486328v193.71643067c0.16479492 6.09741211-2.38952637 11.86523438-6.92138672 15.73791504-4.53186037 4.44946289-10.62927247 6.83898926-16.8914795 6.67419433-6.26220703 0.24719239-12.4420166-2.22473145-16.89147949-6.67419436-4.36706543-4.03747559-6.7565918-9.80529786-6.67419434-15.73791501v-193.6340332H222.78491211c-5.93261719 0.24719239-11.70043946-1.89514161-15.90270997-6.01501466-4.28466797-3.95507813-6.59179689-9.64050293-6.26220701-15.40832519-0.24719239-5.76782227 2.05993653-11.28845215 6.26220702-15.07873536 4.36706543-3.95507813 10.05249023-6.01501465 15.90270996-5.76782224h163.4765625c5.19104004 0 10.21728516 2.05993653 14.17236328 5.6854248z m177.73132325 57.76062011c4.28466797 4.20227051 6.59179689 10.05249023 6.34460448 16.14990234v156.47277832c0.24719239 5.93261719-2.05993653 11.70043946-6.34460449 15.73791504-3.95507813 4.36706543-9.64050293 6.83898926-15.57312011 6.67419433-5.85021973 0.08239747-11.45324708-2.22473145-15.57312013-6.34460449-3.95507813-4.28466797-6.26220703-9.8876953-6.26220703-15.73791504-14.83154297 16.06750489-35.34851075 25.37841797-57.01904297 25.87280274-16.23229981 0.24719239-32.05261231-4.36706543-45.7305908-13.1011963-14.17236327-8.81652833-25.70800781-21.50573731-33.20617677-36.58447265-15.90270997-33.28857422-15.90270997-72.18017578 0-105.46875 7.33337403-15.16113281 18.86901856-27.85034179 33.20617677-36.58447266 13.18359375-8.6517334 28.67431641-13.26599122 44.41223145-13.10119628 21.67053223-0.08239747 42.68188475 8.07495117 58.66699218 22.82409667-0.16479492-6.01501465 2.14233398-11.86523438 6.34460448-16.14990234 8.73413086-8.40454102 22.41210938-8.40454102 31.14624024 0l-0.41198731-0.65917969z m-50.42724611 139.0045166c19.85778809-26.03759766 19.85778809-62.29248047 0-88.33007813-9.47570801-11.78283692-23.81286622-18.37463379-38.80920409-17.79785156-14.7491455-0.41198731-28.92150879 6.09741211-38.15002442 17.79785156-9.97009278 12.35961914-15.24353028 28.01513673-14.91394043 44.00024414-0.49438477 16.06750489 4.69665529 31.80541991 14.58435058 44.32983399 9.55810548 11.45324708 23.73046875 17.88024903 38.47961427 17.46826172 14.91394043 0.32958983 29.08630372-6.09741211 38.8092041-17.46826172zM778.47338867 562.26245117c14.08996583 8.81652833 25.54321289 21.34094239 33.20617676 36.25488281 8.15734864 16.31469727 12.27722169 34.44213867 11.94763184 52.734375 0.32958983 18.37463379-3.7902832 36.58447265-11.94763184 53.06396485-7.41577148 15.07873536-18.95141602 27.76794434-33.20617676 36.58447266-13.18359375 8.73413086-28.67431641 13.26599122-44.41223144 13.10119629-11.45324708 0.16479492-22.82409669-2.38952637-33.20617676-7.41577149-9.55810548-4.11987305-18.20983887-10.05249023-25.54321289-17.46826171v2.30712889c0.16479492 5.93261719-2.05993653 11.70043946-6.17980957 15.98510744-4.11987305 4.20227051-9.80529786 6.59179689-15.73791506 6.5093994-5.85021973 0.24719239-11.53564453-2.05993653-15.5731201-6.34460449-4.28466797-4.20227051-6.59179689-10.05249023-6.26220704-16.14990233V499.80517578c-0.16479492-6.01501465 2.05993653-11.86523438 6.26220705-16.14990234 8.73413086-8.48693847 22.41210938-8.48693847 31.14624023 0 4.20227051 4.28466797 6.50939942 10.05249023 6.26220703 16.14990234v76.87683106c6.59179689-8.07495117 14.83154297-14.58435059 24.22485352-19.11621094 10.21728516-5.60302734 21.58813477-8.48693847 33.20617675-8.40454102 16.23229981-0.16479492 32.13500977 4.36706543 45.81298828 13.10119629z m-12.93640137 134.30786133c10.05249023-12.4420166 15.32592773-28.26232911 14.91394043-44.32983398 0.49438477-15.98510742-4.69665529-31.55822755-14.58435059-44.00024415-9.8876953-11.04125977-23.89526367-17.38586426-38.64440917-17.38586426s-28.75671387 6.3446045-38.64440918 17.38586426c-19.85778809 26.03759766-19.85778809 62.29248047 0 88.33007813 9.55810548 11.61804201 23.89526367 18.20983887 38.8092041 17.79785156 15.07873536-0.16479492 29.16870117-7.49816895 38.15002442-19.77539062v1.97753906zM673.5814209 299.00256347c-12.77160645 0-23.07128906-10.29968262-23.07128907-23.07128905V183.5637207c-0.08239747-6.59179689 0-13.10119629 0-19.6105957V154.31262207c0-12.77160645 10.29968262-23.07128906 23.07128906-23.07128906H820.16650391c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592773 9.31091309 9.31091309 14.66674805 21.42333983 15.32592773 34.44213868 0.08239747 0.57678223 0.08239747 1.15356445 0.08239746 1.73034667v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128906 23.07128906H673.5814209z m23.07128906-46.1425781h129.69360352v-69.29626467c0-1.64794922-0.65917969-3.21350098-1.81274415-4.44946289-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274414H696.65270999v75.5584717zM396.56115722 299.90893555c-12.77160645 0-23.07128906-10.29968262-23.07128905-23.07128908V155.13659668c0-12.68920898 10.29968262-22.98889161 22.9888916-23.07128906l175.83618164-0.90637207h0.08239746c14.00756836 0 27.10876465 5.43823242 37.07885742 15.32592774 9.8876953 9.97009278 15.32592773 23.07128906 15.32592775 37.07885741v93.27392579c0 12.77160645-10.29968262 23.07128906-23.07128907 23.07128906h-205.16967775z m23.07128907-46.22497559h159.0270996v-70.20263671c0-1.64794922-0.65917969-3.21350098-1.81274413-4.44946289-1.15356445-1.15356445-2.71911623-1.81274414-4.36706543-1.81274414l-152.84729005 0.74157713v75.72326662z" ></path><path d="M149.78076171 892.84106445c-14.25476075 0-27.60314942-5.52062989-37.65563964-15.40832519-10.05249023-9.97009278-15.57312012-23.15368653-15.57312012-37.16125488V183.72851562c0-29.00390624 23.89526367-52.56958007 53.22875978-52.56958007h139.25170897c14.25476075 0 27.60314942 5.43823242 37.65563966 15.40832519 10.05249023 9.8876953 15.57312012 23.15368653 15.57312011 37.16125489V323.30981445c0 1.64794922 0.65917969 3.21350098 1.89514162 4.44946289 1.23596192 1.15356445 2.80151367 1.81274414 4.44946288 1.81274414h525.61340332c14.25476075 0 27.60314942 5.43823242 37.65563964 15.4083252 10.05249023 9.8876953 15.57312012 23.07128906 15.57312012 37.16125488v458.12988281c0 14.08996583-5.52062989 27.27355958-15.57312012 37.16125489s-23.40087891 15.40832519-37.65563964 15.40832519H149.78076171z m6.34460451-709.11254882c-3.54309083 0-6.3446045 2.80151367-6.34460449 6.26220703v649.86877441c0 1.64794922 0.65917969 3.29589844 1.8951416 4.4494629 1.15356445 1.15356445 2.80151367 1.81274414 4.44946288 1.81274415h718.09387208c1.73034668 0 3.29589844-0.65917969 4.44946288-1.81274415 1.23596192-1.15356445 1.89514161-2.71911623 1.89514161-4.4494629V379.01049805c0-1.64794922-0.65917969-3.21350098-1.81274413-4.36706544-1.23596192-1.23596192-2.80151367-1.89514161-4.44946291-1.89514159h-525.69580077c-14.25476075 0-27.60314942-5.52062989-37.65563966-15.4083252-10.05249023-9.8876953-15.57312012-23.15368653-15.57312012-37.16125488V189.90832519c0-1.64794922-0.65917969-3.21350098-1.8951416-4.44946288-1.15356445-1.15356445-2.80151367-1.81274414-4.44946289-1.81274416H156.12536621z" ></path></symbol><symbol id="pure-iconfont-logo" viewBox="0 0 1024 1024"><path d="M410.558481 0.10861C410.558481 211.083075 109.682285 361.860579 109.682285 633.656511c0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527C711.407525 361.751969 410.558481 210.974465 410.558481 0.10861z" fill="#386BF3" ></path><path d="M613.468671 73.664572c0 211.055922-300.876197 361.914883-300.876196 633.547901 0 174.943176 134.703259 316.787527 300.876196 316.787527s300.876197-141.817198 300.876197-316.787527c-0.054305-271.633018-300.876197-422.491979-300.876197-633.547901z" fill="#C3D2FB" ></path><path d="M312.592475 707.212473c0-183.713414 137.635722-312.171612 226.72288-441.390078 81.701694 106.111739 172.119322 218.740063 172.119323 367.725506a309.755045 309.755045 0 0 1-291.074166 316.516003 323.114046 323.114046 0 0 1-107.768037-242.851431z" fill="#303F5B" ></path></symbol><symbol id="pure-iconfont-new" viewBox="0 0 1024 1024"><path d="M466.73632812 228.81640625l-33.31054687 255.41015625c34.36523438 20.21484375 78.31054688 42.62695313 131.22070313 62.2265625 55.1953125 20.47851563 105.1171875 32.43164063 145.54687499 39.46289063 127.44140625-161.27929688 147.39257813-224.38476563 141.59179688-215.59570313-10.45898438 15.99609375-62.05078125 20.390625-76.20117188 15.29296875-28.30078125-10.10742188-53.4375-37.52929688-65.30273437-81.29882813-14.85351563-54.66796875-43.50585938-50.53710938-94.5703125-21.35742187-58.88671875 33.48632813-121.46484375 4.39453125-148.97460938-54.140625z" fill="#FFFFFF" ></path><path d="M444.76367187 228.81640625c-3.77929688 28.828125-7.55859375 57.74414063-11.33789062 86.57226563l-17.9296875 137.37304687c-1.40625 10.45898438-2.72460938 21.00585938-4.13085937 31.46484375-0.96679688 7.3828125 4.83398438 15.46875 10.8984375 18.984375 69.78515625 40.86914063 145.63476563 71.98242188 224.12109374 91.66992188 19.16015625 4.83398438 38.49609375 8.87695313 57.91992188 12.30468749 7.20703125 1.23046875 16.34765625 0.703125 21.35742188-5.625C767.49804688 548.65039063 808.3671875 494.421875 843.34765625 436.58984375c7.91015625-13.09570313 15.55664063-26.3671875 22.1484375-40.16601563 2.4609375-5.09765625 4.74609375-10.37109375 6.85546875-15.64453125 1.31835938-3.33984375 2.37304688-7.11914063 2.28515625-10.72265625-0.43945313-12.04101563-9.4921875-22.32421875-22.06054688-22.32421875-8.4375 0-14.94140625 4.5703125-19.42382812 11.33789063-1.93359375 2.8125 3.33984375-3.42773438 1.58203125-2.109375-0.43945313 0.3515625-0.87890625 0.79101563-1.23046875 1.14257812-1.31835938 1.49414063-3.33984375 1.14257813 2.54882813-1.84570312-1.23046875 0.61523438-2.37304688 1.58203125-3.60351563 2.28515625-1.14257813 0.61523438-2.28515625 1.14257813-3.33984375 1.66992187-3.33984375 1.66992188 5.53710938-2.109375 1.93359375-0.87890625-0.61523438 0.17578125-1.14257813 0.43945313-1.7578125 0.61523438-3.07617188 1.0546875-6.24023438 1.93359375-9.40429688 2.72460937-3.33984375 0.79101563-6.76757813 1.40625-10.10742187 2.02148438-5.625 0.87890625 5.36132813-0.61523438-0.3515625 0.08789062-1.66992188 0.17578125-3.42773438 0.3515625-5.09765625 0.52734375-6.15234375 0.52734375-12.3046875 0.703125-18.45703125 0.26367188-2.28515625-0.17578125-7.03125-1.40625 1.40625 0.3515625-1.0546875-0.17578125-2.109375-0.3515625-3.1640625-0.61523438-0.703125-0.17578125-1.40625-0.3515625-2.109375-0.61523437-0.79101563-0.26367188-1.58203125-0.61523438-2.37304688-0.87890625-3.42773438-1.23046875 5.09765625 2.37304688 1.49414063 0.61523437-2.98828125-1.40625-5.88867188-2.8125-8.70117188-4.48242187-1.31835938-0.79101563-2.72460938-1.66992188-3.95507812-2.54882813l-2.63671875-1.84570312c-1.40625-1.0546875-3.69140625-3.69140625 1.0546875 0.79101562-2.37304688-2.28515625-5.09765625-4.30664063-7.47070313-6.59179687-2.98828125-2.98828125-5.44921875-6.59179688-8.52539062-9.4921875 0.17578125 0.17578125 3.33984375 4.48242188 1.23046875 1.58203125-0.61523438-0.79101563-1.23046875-1.66992188-1.7578125-2.4609375-1.0546875-1.49414063-2.109375-3.07617188-3.07617188-4.65820313-2.4609375-3.77929688-4.65820313-7.734375-6.67968749-11.77734375-0.87890625-1.7578125-1.7578125-3.60351563-2.63671875-5.44921875-0.17578125-0.43945313-0.3515625-0.79101563-0.52734375-1.23046875-0.96679688-2.19726563-0.703125-1.66992188 0.61523437 1.40625 0.08789063-0.3515625-0.96679688-2.54882813-1.0546875-2.63671875-1.7578125-4.48242188-3.25195313-9.140625-4.65820313-13.7109375-2.72460938-9.22851563-5.625-18.19335938-9.66796874-26.89453125-6.85546875-14.50195313-18.19335938-26.10351563-33.31054688-31.640625-13.18359375-4.83398438-28.38867188-3.07617188-41.484375 1.0546875-16.171875 5.09765625-30.84960938 13.44726563-45.61523438 21.4453125-2.02148438 1.0546875-3.95507813 2.109375-6.06445312 3.07617188-0.52734375 0.26367188-4.65820313 1.84570313-0.96679688 0.52734375 3.60351563-1.40625-0.43945313 0.17578125-0.96679687 0.3515625-3.95507813 1.49414063-7.99804688 2.8125-12.04101563 3.8671875-2.02148438 0.52734375-3.95507813 0.96679688-5.9765625 1.31835937-0.79101563 0.17578125-1.58203125 0.26367188-2.37304687 0.43945313-4.48242188 0.79101563 5.625-0.52734375 1.0546875-0.17578125-3.95507813 0.3515625-7.91015625 0.61523438-11.86523438 0.52734375-1.93359375 0-3.8671875-0.08789063-5.88867187-0.26367188-0.79101563-0.08789063-1.58203125-0.17578125-2.28515625-0.17578125-4.30664063-0.3515625 4.74609375 0.79101563 1.84570312 0.26367188-3.95507813-0.79101563-7.99804688-1.40625-11.86523437-2.54882813-3.515625-0.96679688-6.94335938-2.37304688-10.37109375-3.60351562-2.72460938-0.96679688 5.2734375 2.4609375 1.49414062 0.61523437-0.703125-0.3515625-1.40625-0.61523438-2.109375-0.96679687-2.109375-1.0546875-4.13085938-2.109375-6.24023437-3.25195313-3.07617188-1.7578125-6.06445313-3.69140625-8.96484375-5.71289062-0.96679688-0.703125-1.84570313-1.49414063-2.90039063-2.109375 0.26367188 0.17578125 4.30664063 3.515625 1.58203125 1.23046875-1.66992188-1.40625-3.42773438-2.8125-5.00976562-4.30664063-2.90039063-2.63671875-5.625-5.36132813-8.17382813-8.17382812-1.40625-1.49414063-2.72460938-3.07617188-4.04296875-4.65820313-0.52734375-0.61523438-0.96679688-1.40625-1.58203125-1.93359375 4.39453125 4.39453125 1.14257813 1.40625 0-0.08789062-4.921875-6.85546875-9.140625-14.0625-12.65625-21.70898438-4.921875-10.37109375-20.65429688-13.97460938-30.05859375-7.91015625-10.72265625 6.94335938-13.18359375 18.89648438-7.91015625 30.05859375 15.8203125 33.31054688 43.68164063 60.20507813 78.48632813 72.68554688 15.55664063 5.625 33.13476563 7.734375 49.5703125 5.80078125 9.58007813-1.14257813 18.984375-2.8125 28.125-6.15234375 9.66796875-3.515625 18.54492188-8.0859375 27.421875-13.0078125 6.85546875-3.77929688 14.23828125-8.52539063 21.70898437-10.8984375-0.08789063 0-5.44921875 2.19726563-2.28515625 0.96679688 0.79101563-0.3515625 1.58203125-0.61523438 2.4609375-0.96679688 1.40625-0.52734375 2.8125-1.0546875 4.30664063-1.58203125 2.90039063-0.96679688 5.88867188-1.84570313 8.96484375-2.54882813 1.40625-0.26367188 2.8125-0.43945313 4.21875-0.79101562-7.64648438 1.84570313-3.42773438 0.43945313-1.0546875 0.3515625 1.14257813-0.08789063 2.28515625-0.08789063 3.42773437 0 0.61523438 0 1.23046875 0.08789063 1.84570313 0.08789063 3.25195313 0.08789063-6.06445313-1.31835938-2.98828125-0.3515625 1.14257813 0.3515625 2.28515625 0.52734375 3.42773437 0.87890625 0.43945313 0.17578125 0.87890625 0.3515625 1.31835938 0.43945312 3.07617188 0.87890625-5.09765625-2.4609375-2.98828125-1.23046875 0.96679688 0.52734375 1.93359375 0.96679688 2.8125 1.49414063 0.52734375 0.3515625 0.96679688 0.703125 1.49414062 0.96679687 1.93359375 1.14257813-5.00976563-4.21875-2.109375-1.58203125 0.87890625 0.79101563 1.7578125 1.58203125 2.54882813 2.37304688 1.93359375 2.02148438 2.90039063 5.00976563-0.26367188-0.703125 1.49414063 2.63671875 3.42773438 5.00976563 4.83398438 7.73437499 0.79101563 1.49414063 1.40625 3.07617188 2.19726562 4.5703125-3.42773438-6.59179688-0.43945313-1.0546875 0.26367188 0.96679688 1.40625 3.95507813 2.63671875 8.0859375 3.77929687 12.12890625 5.09765625 18.10546875 12.83203125 36.12304688 23.90625 51.41601563 10.37109375 14.23828125 22.76367188 26.80664063 38.14453125 35.59570312 6.41601563 3.69140625 13.53515625 7.29492188 20.7421875 8.96484375 6.41601563 1.49414063 13.27148438 2.02148438 19.86328125 2.02148438 14.67773438 0.08789063 30.05859375-1.7578125 44.12109375-5.88867188 6.85546875-2.02148438 13.88671875-4.5703125 19.95117188-8.34960938 6.59179688-4.13085938 9.84375-8.4375 14.67773437-14.23828124-3.515625 4.21875-2.90039063 4.48242188-7.47070312 7.47070312-2.63671875 1.66992188-7.734375 3.1640625-10.98632813 2.98828125-1.84570313-0.52734375-3.69140625-0.96679688-5.53710937-1.49414063-5.88867188-0.61523438-10.37109375-3.69140625-13.359375-9.31640624-1.84570313-3.1640625-3.07617188-7.47070313-2.98828125-10.81054688 0-0.26367188 1.7578125-7.99804688 0.43945312-4.13085938-0.3515625 1.0546875-0.703125 2.109375-1.14257812 3.16406251-0.26367188 0.61523438-0.52734375 1.31835938-0.79101563 1.93359375-1.0546875 2.72460938 2.90039063-6.59179688 1.58203125-3.77929688-0.17578125 0.43945313-0.3515625 0.87890625-0.61523437 1.31835938-5.18554688 11.68945313-11.33789063 22.8515625-17.75390625 33.92578125-29.53125 51.15234375-64.59960938 99.140625-100.546875 145.81054687-0.703125 0.87890625-1.31835938 1.7578125-2.02148438 2.54882813-2.37304688 3.1640625 0 0 0.43945313-0.52734375-1.66992188 2.19726563-3.42773438 4.39453125-5.09765625 6.59179687-3.515625 4.5703125-7.11914063 9.05273438-10.63476563 13.53515625 7.11914063-1.84570313 14.23828125-3.77929688 21.35742188-5.625-36.82617188-6.50390625-73.125-15.46875-108.72070313-26.80664063-20.65429688-6.59179688-40.95703125-13.97460938-60.99609375-22.14843749-2.28515625-0.87890625-4.48242188-1.84570313-6.76757812-2.81250001-4.921875-2.02148438 3.1640625 1.40625 0.08789062 0l-3.69140625-1.58203125c-4.74609375-2.109375-9.58007813-4.21875-14.32617187-6.328125-8.61328125-3.8671875-17.13867188-7.99804688-25.6640625-12.12890624-17.49023438-8.61328125-34.62890625-17.9296875-51.41601563-27.77343751 3.60351563 6.328125 7.29492188 12.65625 10.8984375 18.98437501 3.77929688-28.828125 7.55859375-57.74414063 11.33789063-86.57226563l17.9296875-137.37304688c1.40625-10.45898438 2.72460938-21.00585938 4.13085937-31.46484374 0.703125-5.18554688-2.90039063-12.04101563-6.41601562-15.55664063-3.77929688-3.77929688-10.10742188-6.6796875-15.55664063-6.41601562-5.71289063 0.26367188-11.6015625 2.109375-15.55664062 6.41601562-4.04296875 4.65820313-5.44921875 9.4921875-6.24023438 15.64453125z" fill="#FFCB40" ></path><path d="M496.61914062 458.73828125c47.54882813 31.640625 101.07421875 54.75585938 156.70898438 67.58789063 11.16210938 2.54882813 24.34570313-3.42773438 27.0703125-15.38085938 2.54882813-11.25-3.33984375-24.2578125-15.38085938-27.0703125-13.18359375-3.07617188-26.27929688-6.6796875-39.19921874-10.8984375-6.41601563-2.109375-12.83203125-4.30664063-19.16015625-6.76757813-3.42773438-1.31835938-6.85546875-2.63671875-10.1953125-3.95507812-1.49414063-0.61523438-2.90039063-1.14257813-4.30664063-1.7578125-4.13085938-1.7578125 4.04296875 1.7578125-1.23046875-0.52734375-25.13671875-10.8984375-49.21875-24.08203125-72.0703125-39.28710938-9.58007813-6.41601563-24.69726563-2.19726563-30.05859375 7.91015625-5.88867188 11.07421875-2.37304688 23.29101563 7.82226563 30.14648438z" fill="#FFCB40" ></path><path d="M245.77929687 729.6171875v-72.50976563-115.04882812V515.515625c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703124 11.07421875 11.42578125 24.16992188 22.8515625 48.42773438 34.18945312 72.59765625 18.01757813 38.23242188 36.12304688 76.55273438 54.140625 114.78515625 4.21875 8.87695313 8.34960938 17.75390625 12.56835938 26.54296875 3.95507813 8.34960938 16.171875 12.91992188 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976563V541.8828125v-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421875-11.42578125-24.16992188-22.8515625-48.42773438-34.18945312-72.59765625-18.01757813-38.23242188-36.12304688-76.55273438-54.140625-114.78515625-4.21875-8.87695313-8.34960938-17.75390625-12.56835938-26.54296875-3.95507813-8.34960938-16.171875-12.91992188-24.78515624-10.10742188-9.22851563 2.98828125-16.171875 11.25-16.17187501 21.18164063v214.1015625c0 11.51367188 10.10742188 22.5 21.97265626 21.97265625 11.953125-0.52734375 21.97265625-9.66796875 21.97265624-21.97265625zM501.8046875 493.63085937H400.90625c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265626v211.55273437c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265625h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H400.90625l21.97265625 21.97265625v-71.27929688-114.16992187-26.10351563l-21.97265625 21.97265626h100.8984375c11.51367188 0 22.5-10.10742188 21.97265625-21.97265626-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265624z" fill="#4381FF" ></path><path d="M478.16210937 595.75976563c-25.75195313 0.17578125-51.50390625 0.43945313-77.25585937-1e-8-11.51367188-0.17578125-22.5 10.1953125-21.97265625 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.75195313 0.43945313 51.50390625 0.17578125 77.25585938 0 11.51367188-0.08789063 22.5-10.01953125 21.97265624-21.97265625-0.52734375-11.86523438-9.58007813-22.06054688-21.97265625-21.97265625zM553.57226563 515.60351563v214.10156249c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742187 18.72070313-31.20117188 37.44140625-62.40234375 56.25-93.69140626 2.63671875-4.48242188 5.36132813-8.87695313 7.99804687-13.359375h-37.96875c18.72070313 31.20117188 37.44140625 62.40234375 56.25 93.69140625 2.63671875 4.48242188 5.36132813 8.87695313 7.99804688 13.359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515624 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.17187501-21.18164063v-72.50976562-115.04882813-26.54296875c0-11.51367188-10.10742188-22.5-21.97265626-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265624 21.97265625v214.10156251c13.62304688-3.69140625 27.33398438-7.3828125 40.95703124-11.07421876-18.72070313-31.20117188-37.44140625-62.40234375-56.25-93.69140624-2.63671875-4.48242188-5.36132813-8.87695313-7.99804687-13.359375-8.52539063-14.23828125-29.44335938-14.23828125-37.96875 0-18.72070313 31.20117188-37.44140625 62.40234375-56.25 93.69140625-2.63671875 4.48242188-5.36132813 8.87695313-7.99804688 13.359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703126 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#4381FF" ></path><path d="M225.30078125 709.49023438v-72.50976563-115.04882813-26.54296874c-13.62304688 3.69140625-27.33398438 7.3828125-40.95703125 11.07421875 11.42578125 24.08203125 22.76367188 48.1640625 34.18945313 72.33398437 18.19335938 38.40820313 36.38671875 76.81640625 54.4921875 115.22460938 4.13085938 8.7890625 8.34960938 17.66601563 12.48046875 26.45507812 3.95507813 8.34960938 16.171875 12.91992188 24.78515625 10.10742187 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164062v-72.50976563-115.04882812V495.30078125c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-11.42578125-24.08203125-22.76367188-48.1640625-34.18945313-72.33398438-18.19335938-38.40820313-36.38671875-76.81640625-54.4921875-115.22460937-4.13085938-8.7890625-8.34960938-17.66601563-12.48046875-26.45507813-3.95507813-8.34960938-16.171875-12.91992188-24.78515625-10.10742187-9.22851563 2.98828125-16.171875 11.25-16.171875 21.18164063v214.10156249c0 11.51367188 10.10742188 22.5 21.97265625 21.97265626 11.86523438-0.52734375 21.97265625-9.66796875 21.97265625-21.97265625zM482.29296875 473.50390625H381.04296875c-11.86523438 0-21.97265625 10.10742188-21.97265625 21.97265625v211.55273438c0 11.86523438 10.10742188 21.97265625 21.97265625 21.97265624h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625H381.04296875l21.97265625 21.97265625v-71.27929687-114.16992188-26.10351562l-21.97265625 21.97265625h101.25c11.51367188 0 22.5-10.10742188 21.97265625-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625z" fill="#FF642E" ></path><path d="M458.5625 575.6328125c-25.83984375 0.17578125-51.76757813 0.43945313-77.60742188 0-11.51367188-0.17578125-22.5 10.1953125-21.97265624 21.97265625 0.52734375 12.04101563 9.66796875 21.796875 21.97265625 21.97265625 25.83984375 0.43945313 51.76757813 0.17578125 77.60742187 0 11.51367188-0.08789063 22.5-10.01953125 21.97265625-21.97265625-0.52734375-11.86523438-9.58007813-21.97265625-21.97265625-21.97265625zM534.32421875 495.4765625v214.1015625c0 9.31640625 6.76757813 19.07226563 16.171875 21.18164063 9.58007813 2.19726563 19.59960938-1.49414063 24.78515625-10.10742188 18.80859375-31.2890625 37.6171875-62.49023438 56.51367188-93.77929688 2.63671875-4.39453125 5.2734375-8.7890625 7.99804687-13.18359374h-37.96875c18.80859375 31.2890625 37.6171875 62.49023438 56.51367188 93.77929687 2.63671875 4.39453125 5.2734375 8.7890625 7.99804687 13.18359375 4.83398438 7.99804688 15.55664063 13.09570313 24.78515625 10.10742188 9.22851563-2.98828125 16.171875-11.25 16.171875-21.18164063v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625v214.1015625c13.62304688-3.69140625 27.33398438-7.3828125 40.95703125-11.07421875-18.80859375-31.2890625-37.6171875-62.49023438-56.51367188-93.77929688-2.63671875-4.39453125-5.2734375-8.7890625-7.99804687-13.18359374-8.52539063-14.23828125-29.35546875-14.23828125-37.96875 0-18.80859375 31.2890625-37.6171875 62.49023438-56.51367188 93.77929687-2.63671875 4.39453125-5.2734375 8.7890625-7.99804687 13.18359375 13.62304688 3.69140625 27.33398438 7.3828125 40.95703125 11.07421875v-72.50976563-115.04882812-26.54296875c0-11.51367188-10.10742188-22.5-21.97265625-21.97265625-11.86523438 0.52734375-21.97265625 9.66796875-21.97265625 21.97265625z" fill="#FF642E" ></path><path d="M629.0703125 793.77734375h74.8828125" fill="#FFFFFF" ></path><path d="M629.0703125 815.75h74.97070313c11.51367188 0 22.5-10.10742188 21.97265624-21.97265625-0.52734375-11.86523438-9.66796875-21.97265625-21.97265625-21.97265625h-74.97070312c-11.51367188 0-22.5 10.10742188-21.97265625 21.97265625 0.52734375 11.86523438 9.66796875 21.97265625 21.97265625 21.97265625z" fill="#FFCB40" ></path><path d="M552.16601563 793.77734375h5.71289062" fill="#FFFFFF" ></path><path d="M552.16601563 815.75h5.71289062c2.98828125 0.08789063 5.88867188-0.52734375 8.4375-1.93359375 2.72460938-0.87890625 5.09765625-2.37304688 7.03125-4.5703125 2.109375-2.02148438 3.69140625-4.30664063 4.5703125-7.03125 1.40625-2.63671875 2.02148438-5.44921875 1.93359375-8.4375l-0.79101562-5.80078125c-1.0546875-3.69140625-2.90039063-6.94335938-5.625-9.66796875-4.30664063-3.95507813-9.58007813-6.41601563-15.55664063-6.41601563h-5.71289062c-2.98828125-0.08789063-5.88867188 0.52734375-8.4375 1.93359376-2.72460938 0.87890625-5.09765625 2.37304688-7.03125 4.5703125-2.109375 2.02148438-3.69140625 4.30664063-4.5703125 7.03125-1.40625 2.63671875-2.02148438 5.44921875-1.93359375 8.43749999l0.79101562 5.80078126c1.0546875 3.69140625 2.90039063 6.94335938 5.625 9.66796874 4.30664063 3.95507813 9.58007813 6.41601563 15.55664063 6.41601563z" fill="#FFCB40" ></path></symbol></svg>',function($){var ae=(ae=document.getElementsByTagName("script"))[ae.length-1],oe=ae.getAttribute("data-injectcss"),ae=ae.getAttribute("data-disable-injectsvg");if(!ae){var ie,le,pe,_e,Ce,$e=function(Ne,Fe){Fe.parentNode.insertBefore(Ne,Fe)};if(oe&&!$.__iconfont__svg__cssinject__){$.__iconfont__svg__cssinject__=!0;try{document.write("<style>.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}</style>")}catch(Ne){console&&console.log(Ne)}}ie=function(){var Ne,Fe=document.createElement("div");Fe.innerHTML=$._iconfont_svg_string_2208059,(Fe=Fe.getElementsByTagName("svg")[0])&&(Fe.setAttribute("aria-hidden","true"),Fe.style.position="absolute",Fe.style.width=0,Fe.style.height=0,Fe.style.overflow="hidden",Fe=Fe,(Ne=document.body).firstChild?$e(Fe,Ne.firstChild):Ne.appendChild(Fe))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(ie,0):(le=function(){document.removeEventListener("DOMContentLoaded",le,!1),ie()},document.addEventListener("DOMContentLoaded",le,!1)):document.attachEvent&&(pe=ie,_e=$.document,Ce=!1,Ie(),_e.onreadystatechange=function(){_e.readyState=="complete"&&(_e.onreadystatechange=null,xe())})}function xe(){Ce||(Ce=!0,pe())}function Ie(){try{_e.documentElement.doScroll("left")}catch{return void setTimeout(Ie,50)}xe()}}(window);const iconfont="",auth$1={mounted($,oe){var ie;const{value:ae}=oe;if(ae)!hasAuth(ae)&&((ie=$.parentNode)==null||ie.removeChild($));else throw new Error(`need auths! Like v-auth="['btn.add','btn.edit']"`)}};var collectionUtils={exports:{}},utils$3=collectionUtils.exports={};utils$3.forEach=function($,oe){for(var ae=0;ae<$.length;ae++){var ie=oe($[ae]);if(ie)return ie}};var collectionUtilsExports=collectionUtils.exports,elementUtils=function($){var oe=$.stateHandler.getState;function ae(_e){var Ce=oe(_e);return Ce&&!!Ce.isDetectable}function ie(_e){oe(_e).isDetectable=!0}function le(_e){return!!oe(_e).busy}function pe(_e,Ce){oe(_e).busy=!!Ce}return{isDetectable:ae,markAsDetectable:ie,isBusy:le,markBusy:pe}},listenerHandler=function($){var oe={};function ae(_e){var Ce=$.get(_e);return Ce===void 0?[]:oe[Ce]||[]}function ie(_e,Ce){var $e=$.get(_e);oe[$e]||(oe[$e]=[]),oe[$e].push(Ce)}function le(_e,Ce){for(var $e=ae(_e),xe=0,Ie=$e.length;xe<Ie;++xe)if($e[xe]===Ce){$e.splice(xe,1);break}}function pe(_e){var Ce=ae(_e);Ce&&(Ce.length=0)}return{get:ae,add:ie,removeListener:le,removeAllListeners:pe}},idGenerator=function(){var $=1;function oe(){return $++}return{generate:oe}},idHandler=function($){var oe=$.idGenerator,ae=$.stateHandler.getState;function ie(pe){var _e=ae(pe);return _e&&_e.id!==void 0?_e.id:null}function le(pe){var _e=ae(pe);if(!_e)throw new Error("setId required the element to have a resize detection state.");var Ce=oe.generate();return _e.id=Ce,Ce}return{get:ie,set:le}},reporter=function($){function oe(){}var ae={log:oe,warn:oe,error:oe};if(!$&&window.console){var ie=function(le,pe){le[pe]=function(){var Ce=console[pe];if(Ce.apply)Ce.apply(console,arguments);else for(var $e=0;$e<arguments.length;$e++)Ce(arguments[$e])}};ie(ae,"log"),ie(ae,"warn"),ie(ae,"error")}return ae},browserDetector$2={exports:{}},detector=browserDetector$2.exports={};detector.isIE=function($){function oe(){var ie=navigator.userAgent.toLowerCase();return ie.indexOf("msie")!==-1||ie.indexOf("trident")!==-1||ie.indexOf(" edge/")!==-1}if(!oe())return!1;if(!$)return!0;var ae=function(){var ie,le=3,pe=document.createElement("div"),_e=pe.getElementsByTagName("i");do pe.innerHTML="<!--[if gt IE "+ ++le+"]><i></i><![endif]-->";while(_e[0]);return le>4?le:ie}();return $===ae};detector.isLegacyOpera=function(){return!!window.opera};var browserDetectorExports=browserDetector$2.exports,utils$2={exports:{}},utils$1=utils$2.exports={};utils$1.getOption=getOption$1;function getOption$1($,oe,ae){var ie=$[oe];return ie==null&&ae!==void 0?ae:ie}var utilsExports=utils$2.exports,utils=utilsExports,batchProcessor=function(oe){oe=oe||{};var ae=oe.reporter,ie=utils.getOption(oe,"async",!0),le=utils.getOption(oe,"auto",!0);le&&!ie&&(ae&&ae.warn("Invalid options combination. auto=true and async=false is invalid. Setting async=true."),ie=!0);var pe=Batch(),_e,Ce=!1;function $e(At,Lt){!Ce&&le&&ie&&pe.size()===0&&Ne(),pe.add(At,Lt)}function xe(){for(Ce=!0;pe.size();){var At=pe;pe=Batch(),At.process()}Ce=!1}function Ie(At){Ce||(At===void 0&&(At=ie),_e&&(Fe(_e),_e=null),At?Ne():xe())}function Ne(){_e=ze(xe)}function Fe(At){var Lt=clearTimeout;return Lt(At)}function ze(At){var Lt=function(hn){return setTimeout(hn,0)};return Lt(At)}return{add:$e,force:Ie}};function Batch(){var $={},oe=0,ae=0,ie=0;function le(Ce,$e){$e||($e=Ce,Ce=0),Ce>ae?ae=Ce:Ce<ie&&(ie=Ce),$[Ce]||($[Ce]=[]),$[Ce].push($e),oe++}function pe(){for(var Ce=ie;Ce<=ae;Ce++)for(var $e=$[Ce],xe=0;xe<$e.length;xe++){var Ie=$e[xe];Ie()}}function _e(){return oe}return{add:le,process:pe,size:_e}}var prop="_erd";function initState($){return $[prop]={},getState($)}function getState($){return $[prop]}function cleanState($){delete $[prop]}var stateHandler$1={initState,getState,cleanState},browserDetector$1=browserDetectorExports,object=function($){$=$||{};var oe=$.reporter,ae=$.batchProcessor,ie=$.stateHandler.getState;if(!oe)throw new Error("Missing required dependency: reporter.");function le(xe,Ie){function Ne(){Ie(xe)}if(browserDetector$1.isIE(8))ie(xe).object={proxy:Ne},xe.attachEvent("onresize",Ne);else{var Fe=Ce(xe);if(!Fe)throw new Error("Element is not detectable by this strategy.");Fe.contentDocument.defaultView.addEventListener("resize",Ne)}}function pe(xe){var Ie=$.important?" !important; ":"; ";return(xe.join(Ie)+Ie).trim()}function _e(xe,Ie,Ne){Ne||(Ne=Ie,Ie=xe,xe=null),xe=xe||{},xe.debug;function Fe(ze,At){var Lt=pe(["display: block","position: absolute","top: 0","left: 0","width: 100%","height: 100%","border: none","padding: 0","margin: 0","opacity: 0","z-index: -1000","pointer-events: none"]),hn=!1,vn=window.getComputedStyle(ze),_n=ze.offsetWidth,bn=ze.offsetHeight;ie(ze).startSize={width:_n,height:bn};function Cn(){function En(){if(vn.position==="static"){ze.style.setProperty("position","relative",xe.important?"important":"");var Tn=function(xn,kn,An,On){function Nn(zn){return zn.replace(/[^-\d\.]/g,"")}var Rn=An[On];Rn!=="auto"&&Nn(Rn)!=="0"&&(xn.warn("An element that is positioned static has style."+On+"="+Rn+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+On+" will be set to 0. Element: ",kn),kn.style.setProperty(On,"0",xe.important?"important":""))};Tn(oe,ze,vn,"top"),Tn(oe,ze,vn,"right"),Tn(oe,ze,vn,"bottom"),Tn(oe,ze,vn,"left")}}function $n(){hn||En();function Tn(kn,An){if(!kn.contentDocument){var On=ie(kn);On.checkForObjectDocumentTimeoutId&&window.clearTimeout(On.checkForObjectDocumentTimeoutId),On.checkForObjectDocumentTimeoutId=setTimeout(function(){On.checkForObjectDocumentTimeoutId=0,Tn(kn,An)},100);return}An(kn.contentDocument)}var xn=this;Tn(xn,function(An){At(ze)})}vn.position!==""&&(En(),hn=!0);var wn=document.createElement("object");wn.style.cssText=Lt,wn.tabIndex=-1,wn.type="text/html",wn.setAttribute("aria-hidden","true"),wn.onload=$n,browserDetector$1.isIE()||(wn.data="about:blank"),ie(ze)&&(ze.appendChild(wn),ie(ze).object=wn,browserDetector$1.isIE()&&(wn.data="about:blank"))}ae?ae.add(Cn):Cn()}browserDetector$1.isIE(8)?Ne(Ie):Fe(Ie,Ne)}function Ce(xe){return ie(xe).object}function $e(xe){if(ie(xe)){var Ie=Ce(xe);Ie&&(browserDetector$1.isIE(8)?xe.detachEvent("onresize",Ie.proxy):xe.removeChild(Ie),ie(xe).checkForObjectDocumentTimeoutId&&window.clearTimeout(ie(xe).checkForObjectDocumentTimeoutId),delete ie(xe).object)}}return{makeDetectable:_e,addListener:le,uninstall:$e}},forEach$1=collectionUtilsExports.forEach,scroll=function($){$=$||{};var oe=$.reporter,ae=$.batchProcessor,ie=$.stateHandler.getState;$.stateHandler.hasState;var le=$.idHandler;if(!ae)throw new Error("Missing required dependency: batchProcessor");if(!oe)throw new Error("Missing required dependency: reporter.");var pe=Ie(),_e="erd_scroll_detection_scrollbar_style",Ce="erd_scroll_detection_container";function $e(Cn){Ne(Cn,_e,Ce)}$e(window.document);function xe(Cn){var En=$.important?" !important; ":"; ";return(Cn.join(En)+En).trim()}function Ie(){var Cn=500,En=500,$n=document.createElement("div");$n.style.cssText=xe(["position: absolute","width: "+Cn*2+"px","height: "+En*2+"px","visibility: hidden","margin: 0","padding: 0"]);var wn=document.createElement("div");wn.style.cssText=xe(["position: absolute","width: "+Cn+"px","height: "+En+"px","overflow: scroll","visibility: none","top: "+-Cn*3+"px","left: "+-En*3+"px","visibility: hidden","margin: 0","padding: 0"]),wn.appendChild($n),document.body.insertBefore(wn,document.body.firstChild);var Tn=Cn-wn.clientWidth,xn=En-wn.clientHeight;return document.body.removeChild(wn),{width:Tn,height:xn}}function Ne(Cn,En,$n){function wn(An,On){On=On||function(Rn){Cn.head.appendChild(Rn)};var Nn=Cn.createElement("style");return Nn.innerHTML=An,Nn.id=En,On(Nn),Nn}if(!Cn.getElementById(En)){var Tn=$n+"_animation",xn=$n+"_animation_active",kn=`/* Created by the element-resize-detector library. */
`;kn+="."+$n+" > div::-webkit-scrollbar { "+xe(["display: none"])+` }
`,kn+="."+xn+" { "+xe(["-webkit-animation-duration: 0.1s","animation-duration: 0.1s","-webkit-animation-name: "+Tn,"animation-name: "+Tn])+` }
`,kn+="@-webkit-keyframes "+Tn+` { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }
`,kn+="@keyframes "+Tn+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",wn(kn)}}function Fe(Cn){Cn.className+=" "+Ce+"_animation_active"}function ze(Cn,En,$n){if(Cn.addEventListener)Cn.addEventListener(En,$n);else if(Cn.attachEvent)Cn.attachEvent("on"+En,$n);else return oe.error("[scroll] Don't know how to add event listeners.")}function At(Cn,En,$n){if(Cn.removeEventListener)Cn.removeEventListener(En,$n);else if(Cn.detachEvent)Cn.detachEvent("on"+En,$n);else return oe.error("[scroll] Don't know how to remove event listeners.")}function Lt(Cn){return ie(Cn).container.childNodes[0].childNodes[0].childNodes[0]}function hn(Cn){return ie(Cn).container.childNodes[0].childNodes[0].childNodes[1]}function vn(Cn,En){var $n=ie(Cn).listeners;if(!$n.push)throw new Error("Cannot add listener to an element that is not detectable.");ie(Cn).listeners.push(En)}function _n(Cn,En,$n){$n||($n=En,En=Cn,Cn=null),Cn=Cn||{};function wn(){if(Cn.debug){var Yn=Array.prototype.slice.call(arguments);if(Yn.unshift(le.get(En),"Scroll: "),oe.log.apply)oe.log.apply(null,Yn);else for(var ar=0;ar<Yn.length;ar++)oe.log(Yn[ar])}}function Tn(Yn){function ar(pr){var Un=pr.getRootNode&&pr.getRootNode().contains(pr);return pr===pr.ownerDocument.body||pr.ownerDocument.body.contains(pr)||Un}return!ar(Yn)||window.getComputedStyle(Yn)===null}function xn(Yn){var ar=ie(Yn).container.childNodes[0],pr=window.getComputedStyle(ar);return!pr.width||pr.width.indexOf("px")===-1}function kn(){var Yn=window.getComputedStyle(En),ar={};return ar.position=Yn.position,ar.width=En.offsetWidth,ar.height=En.offsetHeight,ar.top=Yn.top,ar.right=Yn.right,ar.bottom=Yn.bottom,ar.left=Yn.left,ar.widthCSS=Yn.width,ar.heightCSS=Yn.height,ar}function An(){var Yn=kn();ie(En).startSize={width:Yn.width,height:Yn.height},wn("Element start size",ie(En).startSize)}function On(){ie(En).listeners=[]}function Nn(){if(wn("storeStyle invoked."),!ie(En)){wn("Aborting because element has been uninstalled");return}var Yn=kn();ie(En).style=Yn}function Rn(Yn,ar,pr){ie(Yn).lastWidth=ar,ie(Yn).lastHeight=pr}function zn(Yn){return Lt(Yn).childNodes[0]}function Bn(){return 2*pe.width+1}function Mn(){return 2*pe.height+1}function Fn(Yn){return Yn+10+Bn()}function Vn(Yn){return Yn+10+Mn()}function jn(Yn){return Yn*2+Bn()}function Zn(Yn){return Yn*2+Mn()}function Gn(Yn,ar,pr){var Un=Lt(Yn),tr=hn(Yn),ur=Fn(ar),_r=Vn(pr),Er=jn(ar),sr=Zn(pr);Un.scrollLeft=ur,Un.scrollTop=_r,tr.scrollLeft=Er,tr.scrollTop=sr}function Xn(){var Yn=ie(En).container;if(!Yn){Yn=document.createElement("div"),Yn.className=Ce,Yn.style.cssText=xe(["visibility: hidden","display: inline","width: 0px","height: 0px","z-index: -1","overflow: hidden","margin: 0","padding: 0"]),ie(En).container=Yn,Fe(Yn),En.appendChild(Yn);var ar=function(){ie(En).onRendered&&ie(En).onRendered()};ze(Yn,"animationstart",ar),ie(En).onAnimationStart=ar}return Yn}function cr(){function Yn(){var Rr=ie(En).style;if(Rr.position==="static"){En.style.setProperty("position","relative",Cn.important?"important":"");var $r=function(Tr,dr,Jn,ir){function xr(Hr){return Hr.replace(/[^-\d\.]/g,"")}var Ir=Jn[ir];Ir!=="auto"&&xr(Ir)!=="0"&&(Tr.warn("An element that is positioned static has style."+ir+"="+Ir+" which is ignored due to the static positioning. The element will need to be positioned relative, so the style."+ir+" will be set to 0. Element: ",dr),dr.style[ir]=0)};$r(oe,En,Rr,"top"),$r(oe,En,Rr,"right"),$r(oe,En,Rr,"bottom"),$r(oe,En,Rr,"left")}}function ar(Rr,$r,Tr,dr){return Rr=Rr?Rr+"px":"0",$r=$r?$r+"px":"0",Tr=Tr?Tr+"px":"0",dr=dr?dr+"px":"0",["left: "+Rr,"top: "+$r,"right: "+dr,"bottom: "+Tr]}if(wn("Injecting elements"),!ie(En)){wn("Aborting because element has been uninstalled");return}Yn();var pr=ie(En).container;pr||(pr=Xn());var Un=pe.width,tr=pe.height,ur=xe(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden","width: 100%","height: 100%","left: 0px","top: 0px"]),_r=xe(["position: absolute","flex: none","overflow: hidden","z-index: -1","visibility: hidden"].concat(ar(-(1+Un),-(1+tr),-tr,-Un))),Er=xe(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),sr=xe(["position: absolute","flex: none","overflow: scroll","z-index: -1","visibility: hidden","width: 100%","height: 100%"]),Pr=xe(["position: absolute","left: 0","top: 0"]),Sr=xe(["position: absolute","width: 200%","height: 200%"]),kr=document.createElement("div"),mr=document.createElement("div"),lr=document.createElement("div"),hr=document.createElement("div"),gr=document.createElement("div"),Or=document.createElement("div");kr.dir="ltr",kr.style.cssText=ur,kr.className=Ce,mr.className=Ce,mr.style.cssText=_r,lr.style.cssText=Er,hr.style.cssText=Pr,gr.style.cssText=sr,Or.style.cssText=Sr,lr.appendChild(hr),gr.appendChild(Or),mr.appendChild(lr),mr.appendChild(gr),kr.appendChild(mr),pr.appendChild(kr);function Lr(){var Rr=ie(En);Rr&&Rr.onExpand?Rr.onExpand():wn("Aborting expand scroll handler: element has been uninstalled")}function Vr(){var Rr=ie(En);Rr&&Rr.onShrink?Rr.onShrink():wn("Aborting shrink scroll handler: element has been uninstalled")}ze(lr,"scroll",Lr),ze(gr,"scroll",Vr),ie(En).onExpandScroll=Lr,ie(En).onShrinkScroll=Vr}function nr(){function Yn(Er,sr,Pr){var Sr=zn(Er),kr=Fn(sr),mr=Vn(Pr);Sr.style.setProperty("width",kr+"px",Cn.important?"important":""),Sr.style.setProperty("height",mr+"px",Cn.important?"important":"")}function ar(Er){var sr=En.offsetWidth,Pr=En.offsetHeight,Sr=sr!==ie(En).lastWidth||Pr!==ie(En).lastHeight;wn("Storing current size",sr,Pr),Rn(En,sr,Pr),ae.add(0,function(){if(Sr){if(!ie(En)){wn("Aborting because element has been uninstalled");return}if(!pr()){wn("Aborting because element container has not been initialized");return}if(Cn.debug){var mr=En.offsetWidth,lr=En.offsetHeight;(mr!==sr||lr!==Pr)&&oe.warn(le.get(En),"Scroll: Size changed before updating detector elements.")}Yn(En,sr,Pr)}}),ae.add(1,function(){if(!ie(En)){wn("Aborting because element has been uninstalled");return}if(!pr()){wn("Aborting because element container has not been initialized");return}Gn(En,sr,Pr)}),Sr&&Er&&ae.add(2,function(){if(!ie(En)){wn("Aborting because element has been uninstalled");return}if(!pr()){wn("Aborting because element container has not been initialized");return}Er()})}function pr(){return!!ie(En).container}function Un(){function Er(){return ie(En).lastNotifiedWidth===void 0}wn("notifyListenersIfNeeded invoked");var sr=ie(En);if(Er()&&sr.lastWidth===sr.startSize.width&&sr.lastHeight===sr.startSize.height)return wn("Not notifying: Size is the same as the start size, and there has been no notification yet.");if(sr.lastWidth===sr.lastNotifiedWidth&&sr.lastHeight===sr.lastNotifiedHeight)return wn("Not notifying: Size already notified");wn("Current size not notified, notifying..."),sr.lastNotifiedWidth=sr.lastWidth,sr.lastNotifiedHeight=sr.lastHeight,forEach$1(ie(En).listeners,function(Pr){Pr(En)})}function tr(){if(wn("startanimation triggered."),xn(En)){wn("Ignoring since element is still unrendered...");return}wn("Element rendered.");var Er=Lt(En),sr=hn(En);(Er.scrollLeft===0||Er.scrollTop===0||sr.scrollLeft===0||sr.scrollTop===0)&&(wn("Scrollbars out of sync. Updating detector elements..."),ar(Un))}function ur(){if(wn("Scroll detected."),xn(En)){wn("Scroll event fired while unrendered. Ignoring...");return}ar(Un)}if(wn("registerListenersAndPositionElements invoked."),!ie(En)){wn("Aborting because element has been uninstalled");return}ie(En).onRendered=tr,ie(En).onExpand=ur,ie(En).onShrink=ur;var _r=ie(En).style;Yn(En,_r.width,_r.height)}function er(){if(wn("finalizeDomMutation invoked."),!ie(En)){wn("Aborting because element has been uninstalled");return}var Yn=ie(En).style;Rn(En,Yn.width,Yn.height),Gn(En,Yn.width,Yn.height)}function rr(){$n(En)}function qn(){wn("Installing..."),On(),An(),ae.add(0,Nn),ae.add(1,cr),ae.add(2,nr),ae.add(3,er),ae.add(4,rr)}wn("Making detectable..."),Tn(En)?(wn("Element is detached"),Xn(),wn("Waiting until element is attached..."),ie(En).onRendered=function(){wn("Element is now attached"),qn()}):qn()}function bn(Cn){var En=ie(Cn);En&&(En.onExpandScroll&&At(Lt(Cn),"scroll",En.onExpandScroll),En.onShrinkScroll&&At(hn(Cn),"scroll",En.onShrinkScroll),En.onAnimationStart&&At(En.container,"animationstart",En.onAnimationStart),En.container&&Cn.removeChild(En.container))}return{makeDetectable:_n,addListener:vn,uninstall:bn,initDocument:$e}},forEach=collectionUtilsExports.forEach,elementUtilsMaker=elementUtils,listenerHandlerMaker=listenerHandler,idGeneratorMaker=idGenerator,idHandlerMaker=idHandler,reporterMaker=reporter,browserDetector=browserDetectorExports,batchProcessorMaker=batchProcessor,stateHandler=stateHandler$1,objectStrategyMaker=object,scrollStrategyMaker=scroll;function isCollection($){return Array.isArray($)||$.length!==void 0}function toArray($){if(Array.isArray($))return $;var oe=[];return forEach($,function(ae){oe.push(ae)}),oe}function isElement($){return $&&$.nodeType===1}var elementResizeDetector=function($){$=$||{};var oe;if($.idHandler)oe={get:function(_n){return $.idHandler.get(_n,!0)},set:$.idHandler.set};else{var ae=idGeneratorMaker(),ie=idHandlerMaker({idGenerator:ae,stateHandler});oe=ie}var le=$.reporter;if(!le){var pe=le===!1;le=reporterMaker(pe)}var _e=getOption($,"batchProcessor",batchProcessorMaker({reporter:le})),Ce={};Ce.callOnAdd=!!getOption($,"callOnAdd",!0),Ce.debug=!!getOption($,"debug",!1);var $e=listenerHandlerMaker(oe),xe=elementUtilsMaker({stateHandler}),Ie,Ne=getOption($,"strategy","object"),Fe=getOption($,"important",!1),ze={reporter:le,batchProcessor:_e,stateHandler,idHandler:oe,important:Fe};if(Ne==="scroll"&&(browserDetector.isLegacyOpera()?(le.warn("Scroll strategy is not supported on legacy Opera. Changing to object strategy."),Ne="object"):browserDetector.isIE(9)&&(le.warn("Scroll strategy is not supported on IE9. Changing to object strategy."),Ne="object")),Ne==="scroll")Ie=scrollStrategyMaker(ze);else if(Ne==="object")Ie=objectStrategyMaker(ze);else throw new Error("Invalid strategy name: "+Ne);var At={};function Lt(_n,bn,Cn){function En(An){var On=$e.get(An);forEach(On,function(Rn){Rn(An)})}function $n(An,On,Nn){$e.add(On,Nn),An&&Nn(On)}if(Cn||(Cn=bn,bn=_n,_n={}),!bn)throw new Error("At least one element required.");if(!Cn)throw new Error("Listener required.");if(isElement(bn))bn=[bn];else if(isCollection(bn))bn=toArray(bn);else return le.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");var wn=0,Tn=getOption(_n,"callOnAdd",Ce.callOnAdd),xn=getOption(_n,"onReady",function(){}),kn=getOption(_n,"debug",Ce.debug);forEach(bn,function(On){stateHandler.getState(On)||(stateHandler.initState(On),oe.set(On));var Nn=oe.get(On);if(kn&&le.log("Attaching listener to element",Nn,On),!xe.isDetectable(On)){if(kn&&le.log(Nn,"Not detectable."),xe.isBusy(On)){kn&&le.log(Nn,"System busy making it detectable"),$n(Tn,On,Cn),At[Nn]=At[Nn]||[],At[Nn].push(function(){wn++,wn===bn.length&&xn()});return}return kn&&le.log(Nn,"Making detectable..."),xe.markBusy(On,!0),Ie.makeDetectable({debug:kn,important:Fe},On,function(zn){if(kn&&le.log(Nn,"onElementDetectable"),stateHandler.getState(zn)){xe.markAsDetectable(zn),xe.markBusy(zn,!1),Ie.addListener(zn,En),$n(Tn,zn,Cn);var Bn=stateHandler.getState(zn);if(Bn&&Bn.startSize){var Mn=zn.offsetWidth,Fn=zn.offsetHeight;(Bn.startSize.width!==Mn||Bn.startSize.height!==Fn)&&En(zn)}At[Nn]&&forEach(At[Nn],function(Vn){Vn()})}else kn&&le.log(Nn,"Element uninstalled before being detectable.");delete At[Nn],wn++,wn===bn.length&&xn()})}kn&&le.log(Nn,"Already detecable, adding listener."),$n(Tn,On,Cn),wn++}),wn===bn.length&&xn()}function hn(_n){if(!_n)return le.error("At least one element is required.");if(isElement(_n))_n=[_n];else if(isCollection(_n))_n=toArray(_n);else return le.error("Invalid arguments. Must be a DOM element or a collection of DOM elements.");forEach(_n,function(bn){$e.removeAllListeners(bn),Ie.uninstall(bn),stateHandler.cleanState(bn)})}function vn(_n){Ie.initDocument&&Ie.initDocument(_n)}return{listenTo:Lt,removeListener:$e.removeListener,removeAllListeners:$e.removeAllListeners,uninstall:hn,initDocument:vn}};function getOption($,oe,ae){var ie=$[oe];return ie==null&&ae!==void 0?ae:ie}const elementResizeDetectorMaker=getDefaultExportFromCjs(elementResizeDetector);function mitt($){return{all:$=$||new Map,on:function(oe,ae){var ie=$.get(oe);ie?ie.push(ae):$.set(oe,[ae])},off:function(oe,ae){var ie=$.get(oe);ie&&(ae?ie.splice(ie.indexOf(ae)>>>0,1):$.set(oe,[]))},emit:function(oe,ae){var ie=$.get(oe);ie&&ie.slice().map(function(le){le(ae)}),(ie=$.get("*"))&&ie.slice().map(function(le){le(oe,ae)})}}}const emitter=mitt(),erd=elementResizeDetectorMaker({strategy:"scroll"}),resize={mounted($,oe,ae){erd.listenTo($,ie=>{const le=ie.offsetWidth,pe=ie.offsetHeight;oe!=null&&oe.instance?emitter.emit("resize",{detail:{width:le,height:pe}}):ae.el.dispatchEvent(new CustomEvent("resize",{detail:{width:le,height:pe}}))})},unmounted($){erd.uninstall($)}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,resize},Symbol.toStringTag,{value:"Module"})),defaultIconDimensions$1=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations$1=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps$1=Object.freeze({...defaultIconDimensions$1,...defaultIconTransformations$1});Object.freeze({...defaultIconProps$1,body:"",hidden:!1});({...defaultIconDimensions$1});const defaultIconSizeCustomisations$1=Object.freeze({width:null,height:null}),defaultIconCustomisations$1=Object.freeze({...defaultIconSizeCustomisations$1,...defaultIconTransformations$1});function mergeCustomisations$1($,oe){const ae={...$};for(const ie in oe){const le=oe[ie],pe=typeof le;ie in defaultIconSizeCustomisations$1?(le===null||le&&(pe==="string"||pe==="number"))&&(ae[ie]=le):pe===typeof ae[ie]&&(ae[ie]=ie==="rotate"?le%4:le)}return ae}const separator$1=/[\s,]+/;function flipFromString$1($,oe){oe.split(separator$1).forEach(ae=>{switch(ae.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString$1($,oe=0){const ae=$.replace(/^-?[0-9.]*/,"");function ie(le){for(;le<0;)le+=4;return le%4}if(ae===""){const le=parseInt($);return isNaN(le)?0:ie(le)}else if(ae!==$){let le=0;switch(ae){case"%":le=25;break;case"deg":le=90}if(le){let pe=parseFloat($.slice(0,$.length-ae.length));return isNaN(pe)?0:(pe=pe/le,pe%1===0?ie(pe):0)}}return oe}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1($,oe,ae){if(oe===1)return $;if(ae=ae||100,typeof $=="number")return Math.ceil($*oe*ae)/ae;if(typeof $!="string")return $;const ie=$.split(unitsSplit$1);if(ie===null||!ie.length)return $;const le=[];let pe=ie.shift(),_e=unitsTest$1.test(pe);for(;;){if(_e){const Ce=parseFloat(pe);isNaN(Ce)?le.push(pe):le.push(Math.ceil(Ce*oe*ae)/ae)}else le.push(pe);if(pe=ie.shift(),pe===void 0)return le.join("");_e=!_e}}const isUnsetKeyword$1=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG$1($,oe){const ae={...defaultIconProps$1,...$},ie={...defaultIconCustomisations$1,...oe},le={left:ae.left,top:ae.top,width:ae.width,height:ae.height};let pe=ae.body;[ae,ie].forEach(At=>{const Lt=[],hn=At.hFlip,vn=At.vFlip;let _n=At.rotate;hn?vn?_n+=2:(Lt.push("translate("+(le.width+le.left).toString()+" "+(0-le.top).toString()+")"),Lt.push("scale(-1 1)"),le.top=le.left=0):vn&&(Lt.push("translate("+(0-le.left).toString()+" "+(le.height+le.top).toString()+")"),Lt.push("scale(1 -1)"),le.top=le.left=0);let bn;switch(_n<0&&(_n-=Math.floor(_n/4)*4),_n=_n%4,_n){case 1:bn=le.height/2+le.top,Lt.unshift("rotate(90 "+bn.toString()+" "+bn.toString()+")");break;case 2:Lt.unshift("rotate(180 "+(le.width/2+le.left).toString()+" "+(le.height/2+le.top).toString()+")");break;case 3:bn=le.width/2+le.left,Lt.unshift("rotate(-90 "+bn.toString()+" "+bn.toString()+")");break}_n%2===1&&(le.left!==le.top&&(bn=le.left,le.left=le.top,le.top=bn),le.width!==le.height&&(bn=le.width,le.width=le.height,le.height=bn)),Lt.length&&(pe='<g transform="'+Lt.join(" ")+'">'+pe+"</g>")});const _e=ie.width,Ce=ie.height,$e=le.width,xe=le.height;let Ie,Ne;_e===null?(Ne=Ce===null?"1em":Ce==="auto"?xe:Ce,Ie=calculateSize$1(Ne,$e/xe)):(Ie=_e==="auto"?$e:_e,Ne=Ce===null?calculateSize$1(Ie,xe/$e):Ce==="auto"?xe:Ce);const Fe={},ze=(At,Lt)=>{isUnsetKeyword$1(Lt)||(Fe[At]=Lt.toString())};return ze("width",Ie),ze("height",Ne),Fe.viewBox=le.left.toString()+" "+le.top.toString()+" "+$e.toString()+" "+xe.toString(),{attributes:Fe,body:pe}}const regex$1=/\sid="(\S+)"/g,randomPrefix$1="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter$1=0;function replaceIDs$1($,oe=randomPrefix$1){const ae=[];let ie;for(;ie=regex$1.exec($);)ae.push(ie[1]);if(!ae.length)return $;const le="suffix"+(Math.random()*16777216|Date.now()).toString(16);return ae.forEach(pe=>{const _e=typeof oe=="function"?oe(pe):oe+(counter$1++).toString(),Ce=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+Ce+')([")]|\\.[a-z])',"g"),"$1"+_e+le+"$3")}),$=$.replace(new RegExp(le,"g"),""),$}function iconToHTML$1($,oe){let ae=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ie in oe)ae+=" "+ie+'="'+oe[ie]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+ae+">"+$+"</svg>"}function encodeSVGforURL$1($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData$1($){return"data:image/svg+xml,"+encodeSVGforURL$1($)}function svgToURL$1($){return'url("'+svgToData$1($)+'")'}const defaultExtendedIconCustomisations$1={...defaultIconCustomisations$1,inline:!1},svgDefaults$1={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps$1={display:"inline-block"},monotoneProps$1={backgroundColor:"currentColor"},coloredProps$1={backgroundColor:"transparent"},propsToAdd$1={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo$1={webkitMask:monotoneProps$1,mask:monotoneProps$1,background:coloredProps$1};for(const $ in propsToAddTo$1){const oe=propsToAddTo$1[$];for(const ae in propsToAdd$1)oe[$+ae]=propsToAdd$1[ae]}const customisationAliases$1={};["horizontal","vertical"].forEach($=>{const oe=$.slice(0,1)+"Flip";customisationAliases$1[$+"-flip"]=oe,customisationAliases$1[$.slice(0,1)+"-flip"]=oe,customisationAliases$1[$+"Flip"]=oe});function fixSize$1($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render$1=($,oe)=>{const ae=mergeCustomisations$1(defaultExtendedIconCustomisations$1,oe),ie={...svgDefaults$1},le=oe.mode||"svg",pe={},_e=oe.style,Ce=typeof _e=="object"&&!(_e instanceof Array)?_e:{};for(let Lt in oe){const hn=oe[Lt];if(hn!==void 0)switch(Lt){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":ae[Lt]=hn===!0||hn==="true"||hn===1;break;case"flip":typeof hn=="string"&&flipFromString$1(ae,hn);break;case"color":pe.color=hn;break;case"rotate":typeof hn=="string"?ae[Lt]=rotateFromString$1(hn):typeof hn=="number"&&(ae[Lt]=hn);break;case"ariaHidden":case"aria-hidden":hn!==!0&&hn!=="true"&&delete ie["aria-hidden"];break;default:{const vn=customisationAliases$1[Lt];vn?(hn===!0||hn==="true"||hn===1)&&(ae[vn]=!0):defaultExtendedIconCustomisations$1[Lt]===void 0&&(ie[Lt]=hn)}}}const $e=iconToSVG$1($,ae),xe=$e.attributes;if(ae.inline&&(pe.verticalAlign="-0.125em"),le==="svg"){ie.style={...pe,...Ce},Object.assign(ie,xe);let Lt=0,hn=oe.id;return typeof hn=="string"&&(hn=hn.replace(/-/g,"_")),ie.innerHTML=replaceIDs$1($e.body,hn?()=>hn+"ID"+Lt++:"iconifyVue"),h$3("svg",ie)}const{body:Ie,width:Ne,height:Fe}=$,ze=le==="mask"||(le==="bg"?!1:Ie.indexOf("currentColor")!==-1),At=iconToHTML$1(Ie,{...xe,width:Ne+"",height:Fe+""});return ie.style={...pe,"--svg":svgToURL$1(At),width:fixSize$1(xe.width),height:fixSize$1(xe.height),...commonProps$1,...ze?monotoneProps$1:coloredProps$1,...Ce},h$3("span",ie)},storage$1=Object.create(null);function addIcon$1($,oe){storage$1[$]=oe}const Icon$1=defineComponent({inheritAttrs:!1,render(){const $=this.$attrs,oe=$.icon,ae=typeof oe=="string"?storage$1[oe]:typeof oe=="object"?oe:null;return ae===null||typeof ae!="object"||typeof ae.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...ae},$)}}),iconifyIconOffline=defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const $=this.$attrs;return h$3(Icon$1,{icon:this.icon,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=($,oe,ae,ie="")=>{const le=$.split(":");if($.slice(0,1)==="@"){if(le.length<2||le.length>3)return null;ie=le.shift().slice(1)}if(le.length>3||!le.length)return null;if(le.length>1){const Ce=le.pop(),$e=le.pop(),xe={provider:le.length>0?le[0]:ie,prefix:$e,name:Ce};return oe&&!validateIconName(xe)?null:xe}const pe=le[0],_e=pe.split("-");if(_e.length>1){const Ce={provider:ie,prefix:_e.shift(),name:_e.join("-")};return oe&&!validateIconName(Ce)?null:Ce}if(ae&&ie===""){const Ce={provider:ie,prefix:"",name:pe};return oe&&!validateIconName(Ce,ae)?null:Ce}return null},validateIconName=($,oe)=>$?!!(($.provider===""||$.provider.match(matchIconName))&&(oe&&$.prefix===""||$.prefix.match(matchIconName))&&$.name.match(matchIconName)):!1,defaultIconDimensions=Object.freeze({left:0,top:0,width:16,height:16}),defaultIconTransformations=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),defaultIconProps=Object.freeze({...defaultIconDimensions,...defaultIconTransformations}),defaultExtendedIconProps=Object.freeze({...defaultIconProps,body:"",hidden:!1});function mergeIconTransformations($,oe){const ae={};!$.hFlip!=!oe.hFlip&&(ae.hFlip=!0),!$.vFlip!=!oe.vFlip&&(ae.vFlip=!0);const ie=(($.rotate||0)+(oe.rotate||0))%4;return ie&&(ae.rotate=ie),ae}function mergeIconData($,oe){const ae=mergeIconTransformations($,oe);for(const ie in defaultExtendedIconProps)ie in defaultIconTransformations?ie in $&&!(ie in ae)&&(ae[ie]=defaultIconTransformations[ie]):ie in oe?ae[ie]=oe[ie]:ie in $&&(ae[ie]=$[ie]);return ae}function getIconsTree($,oe){const ae=$.icons,ie=$.aliases||Object.create(null),le=Object.create(null);function pe(_e){if(ae[_e])return le[_e]=[];if(!(_e in le)){le[_e]=null;const Ce=ie[_e]&&ie[_e].parent,$e=Ce&&pe(Ce);$e&&(le[_e]=[Ce].concat($e))}return le[_e]}return(oe||Object.keys(ae).concat(Object.keys(ie))).forEach(pe),le}function internalGetIconData($,oe,ae){const ie=$.icons,le=$.aliases||Object.create(null);let pe={};function _e(Ce){pe=mergeIconData(ie[Ce]||le[Ce],pe)}return _e(oe),ae.forEach(_e),mergeIconData($,pe)}function parseIconSet($,oe){const ae=[];if(typeof $!="object"||typeof $.icons!="object")return ae;$.not_found instanceof Array&&$.not_found.forEach(le=>{oe(le,null),ae.push(le)});const ie=getIconsTree($);for(const le in ie){const pe=ie[le];pe&&(oe(le,internalGetIconData($,le,pe)),ae.push(le))}return ae}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps($,oe){for(const ae in oe)if(ae in $&&typeof $[ae]!=typeof oe[ae])return!1;return!0}function quicklyValidateIconSet($){if(typeof $!="object"||$===null)return null;const oe=$;if(typeof oe.prefix!="string"||!$.icons||typeof $.icons!="object"||!checkOptionalProps($,optionalPropertyDefaults))return null;const ae=oe.icons;for(const le in ae){const pe=ae[le];if(!le.match(matchIconName)||typeof pe.body!="string"||!checkOptionalProps(pe,defaultExtendedIconProps))return null}const ie=oe.aliases||Object.create(null);for(const le in ie){const pe=ie[le],_e=pe.parent;if(!le.match(matchIconName)||typeof _e!="string"||!ae[_e]&&!ie[_e]||!checkOptionalProps(pe,defaultExtendedIconProps))return null}return oe}const dataStorage=Object.create(null);function newStorage($,oe){return{provider:$,prefix:oe,icons:Object.create(null),missing:new Set}}function getStorage($,oe){const ae=dataStorage[$]||(dataStorage[$]=Object.create(null));return ae[oe]||(ae[oe]=newStorage($,oe))}function addIconSet($,oe){return quicklyValidateIconSet(oe)?parseIconSet(oe,(ae,ie)=>{ie?$.icons[ae]=ie:$.missing.add(ae)}):[]}function addIconToStorage($,oe,ae){try{if(typeof ae.body=="string")return $.icons[oe]={...ae},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames($){return typeof $=="boolean"&&(simpleNames=$),simpleNames}function getIconData($){const oe=typeof $=="string"?stringToIcon($,!0,simpleNames):$;if(oe){const ae=getStorage(oe.provider,oe.prefix),ie=oe.name;return ae.icons[ie]||(ae.missing.has(ie)?null:void 0)}}function addIcon($,oe){const ae=stringToIcon($,!0,simpleNames);if(!ae)return!1;const ie=getStorage(ae.provider,ae.prefix);return addIconToStorage(ie,ae.name,oe)}function addCollection($,oe){if(typeof $!="object")return!1;if(typeof oe!="string"&&(oe=$.provider||""),simpleNames&&!oe&&!$.prefix){let le=!1;return quicklyValidateIconSet($)&&($.prefix="",parseIconSet($,(pe,_e)=>{_e&&addIcon(pe,_e)&&(le=!0)})),le}const ae=$.prefix;if(!validateIconName({provider:oe,prefix:ae,name:"a"}))return!1;const ie=getStorage(oe,ae);return!!addIconSet(ie,$)}const defaultIconSizeCustomisations=Object.freeze({width:null,height:null}),defaultIconCustomisations=Object.freeze({...defaultIconSizeCustomisations,...defaultIconTransformations}),unitsSplit=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize($,oe,ae){if(oe===1)return $;if(ae=ae||100,typeof $=="number")return Math.ceil($*oe*ae)/ae;if(typeof $!="string")return $;const ie=$.split(unitsSplit);if(ie===null||!ie.length)return $;const le=[];let pe=ie.shift(),_e=unitsTest.test(pe);for(;;){if(_e){const Ce=parseFloat(pe);isNaN(Ce)?le.push(pe):le.push(Math.ceil(Ce*oe*ae)/ae)}else le.push(pe);if(pe=ie.shift(),pe===void 0)return le.join("");_e=!_e}}const isUnsetKeyword=$=>$==="unset"||$==="undefined"||$==="none";function iconToSVG($,oe){const ae={...defaultIconProps,...$},ie={...defaultIconCustomisations,...oe},le={left:ae.left,top:ae.top,width:ae.width,height:ae.height};let pe=ae.body;[ae,ie].forEach(At=>{const Lt=[],hn=At.hFlip,vn=At.vFlip;let _n=At.rotate;hn?vn?_n+=2:(Lt.push("translate("+(le.width+le.left).toString()+" "+(0-le.top).toString()+")"),Lt.push("scale(-1 1)"),le.top=le.left=0):vn&&(Lt.push("translate("+(0-le.left).toString()+" "+(le.height+le.top).toString()+")"),Lt.push("scale(1 -1)"),le.top=le.left=0);let bn;switch(_n<0&&(_n-=Math.floor(_n/4)*4),_n=_n%4,_n){case 1:bn=le.height/2+le.top,Lt.unshift("rotate(90 "+bn.toString()+" "+bn.toString()+")");break;case 2:Lt.unshift("rotate(180 "+(le.width/2+le.left).toString()+" "+(le.height/2+le.top).toString()+")");break;case 3:bn=le.width/2+le.left,Lt.unshift("rotate(-90 "+bn.toString()+" "+bn.toString()+")");break}_n%2===1&&(le.left!==le.top&&(bn=le.left,le.left=le.top,le.top=bn),le.width!==le.height&&(bn=le.width,le.width=le.height,le.height=bn)),Lt.length&&(pe='<g transform="'+Lt.join(" ")+'">'+pe+"</g>")});const _e=ie.width,Ce=ie.height,$e=le.width,xe=le.height;let Ie,Ne;_e===null?(Ne=Ce===null?"1em":Ce==="auto"?xe:Ce,Ie=calculateSize(Ne,$e/xe)):(Ie=_e==="auto"?$e:_e,Ne=Ce===null?calculateSize(Ie,xe/$e):Ce==="auto"?xe:Ce);const Fe={},ze=(At,Lt)=>{isUnsetKeyword(Lt)||(Fe[At]=Lt.toString())};return ze("width",Ie),ze("height",Ne),Fe.viewBox=le.left.toString()+" "+le.top.toString()+" "+$e.toString()+" "+xe.toString(),{attributes:Fe,body:pe}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs($,oe=randomPrefix){const ae=[];let ie;for(;ie=regex.exec($);)ae.push(ie[1]);if(!ae.length)return $;const le="suffix"+(Math.random()*16777216|Date.now()).toString(16);return ae.forEach(pe=>{const _e=typeof oe=="function"?oe(pe):oe+(counter++).toString(),Ce=pe.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");$=$.replace(new RegExp('([#;"])('+Ce+')([")]|\\.[a-z])',"g"),"$1"+_e+le+"$3")}),$=$.replace(new RegExp(le,"g"),""),$}const storage=Object.create(null);function setAPIModule($,oe){storage[$]=oe}function getAPIModule($){return storage[$]||storage[""]}function createAPIConfig($){let oe;if(typeof $.resources=="string")oe=[$.resources];else if(oe=$.resources,!(oe instanceof Array)||!oe.length)return null;return{resources:oe,path:$.path||"/",maxURL:$.maxURL||500,rotate:$.rotate||750,timeout:$.timeout||5e3,random:$.random===!0,index:$.index||0,dataAfterTimeout:$.dataAfterTimeout!==!1}}const configStorage=Object.create(null),fallBackAPISources=["https://api.simplesvg.com","https://api.unisvg.com"],fallBackAPI=[];for(;fallBackAPISources.length>0;)fallBackAPISources.length===1||Math.random()>.5?fallBackAPI.push(fallBackAPISources.shift()):fallBackAPI.push(fallBackAPISources.pop());configStorage[""]=createAPIConfig({resources:["https://api.iconify.design"].concat(fallBackAPI)});function addAPIProvider($,oe){const ae=createAPIConfig(oe);return ae===null?!1:(configStorage[$]=ae,!0)}function getAPIConfig($){return configStorage[$]}const detectFetch=()=>{let $;try{if($=fetch,typeof $=="function")return $}catch{}};let fetchModule=detectFetch();function calculateMaxLength($,oe){const ae=getAPIConfig($);if(!ae)return 0;let ie;if(!ae.maxURL)ie=0;else{let le=0;ae.resources.forEach(_e=>{le=Math.max(le,_e.length)});const pe=oe+".json?icons=";ie=ae.maxURL-le-ae.path.length-pe.length}return ie}function shouldAbort($){return $===404}const prepare=($,oe,ae)=>{const ie=[],le=calculateMaxLength($,oe),pe="icons";let _e={type:pe,provider:$,prefix:oe,icons:[]},Ce=0;return ae.forEach(($e,xe)=>{Ce+=$e.length+1,Ce>=le&&xe>0&&(ie.push(_e),_e={type:pe,provider:$,prefix:oe,icons:[]},Ce=$e.length),_e.icons.push($e)}),ie.push(_e),ie};function getPath($){if(typeof $=="string"){const oe=getAPIConfig($);if(oe)return oe.path}return"/"}const send=($,oe,ae)=>{if(!fetchModule){ae("abort",424);return}let ie=getPath(oe.provider);switch(oe.type){case"icons":{const pe=oe.prefix,Ce=oe.icons.join(","),$e=new URLSearchParams({icons:Ce});ie+=pe+".json?"+$e.toString();break}case"custom":{const pe=oe.uri;ie+=pe.slice(0,1)==="/"?pe.slice(1):pe;break}default:ae("abort",400);return}let le=503;fetchModule($+ie).then(pe=>{const _e=pe.status;if(_e!==200){setTimeout(()=>{ae(shouldAbort(_e)?"abort":"next",_e)});return}return le=501,pe.json()}).then(pe=>{if(typeof pe!="object"||pe===null){setTimeout(()=>{pe===404?ae("abort",pe):ae("next",le)});return}setTimeout(()=>{ae("success",pe)})}).catch(()=>{ae("next",le)})},fetchAPIModule={prepare,send};function sortIcons($){const oe={loaded:[],missing:[],pending:[]},ae=Object.create(null);$.sort((le,pe)=>le.provider!==pe.provider?le.provider.localeCompare(pe.provider):le.prefix!==pe.prefix?le.prefix.localeCompare(pe.prefix):le.name.localeCompare(pe.name));let ie={provider:"",prefix:"",name:""};return $.forEach(le=>{if(ie.name===le.name&&ie.prefix===le.prefix&&ie.provider===le.provider)return;ie=le;const pe=le.provider,_e=le.prefix,Ce=le.name,$e=ae[pe]||(ae[pe]=Object.create(null)),xe=$e[_e]||($e[_e]=getStorage(pe,_e));let Ie;Ce in xe.icons?Ie=oe.loaded:_e===""||xe.missing.has(Ce)?Ie=oe.missing:Ie=oe.pending;const Ne={provider:pe,prefix:_e,name:Ce};Ie.push(Ne)}),oe}function removeCallback($,oe){$.forEach(ae=>{const ie=ae.loaderCallbacks;ie&&(ae.loaderCallbacks=ie.filter(le=>le.id!==oe))})}function updateCallbacks($){$.pendingCallbacksFlag||($.pendingCallbacksFlag=!0,setTimeout(()=>{$.pendingCallbacksFlag=!1;const oe=$.loaderCallbacks?$.loaderCallbacks.slice(0):[];if(!oe.length)return;let ae=!1;const ie=$.provider,le=$.prefix;oe.forEach(pe=>{const _e=pe.icons,Ce=_e.pending.length;_e.pending=_e.pending.filter($e=>{if($e.prefix!==le)return!0;const xe=$e.name;if($.icons[xe])_e.loaded.push({provider:ie,prefix:le,name:xe});else if($.missing.has(xe))_e.missing.push({provider:ie,prefix:le,name:xe});else return ae=!0,!0;return!1}),_e.pending.length!==Ce&&(ae||removeCallback([$],pe.id),pe.callback(_e.loaded.slice(0),_e.missing.slice(0),_e.pending.slice(0),pe.abort))})}))}let idCounter=0;function storeCallback($,oe,ae){const ie=idCounter++,le=removeCallback.bind(null,ae,ie);if(!oe.pending.length)return le;const pe={id:ie,icons:oe,callback:$,abort:le};return ae.forEach(_e=>{(_e.loaderCallbacks||(_e.loaderCallbacks=[])).push(pe)}),le}function listToIcons($,oe=!0,ae=!1){const ie=[];return $.forEach(le=>{const pe=typeof le=="string"?stringToIcon(le,oe,ae):le;pe&&ie.push(pe)}),ie}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery($,oe,ae,ie){const le=$.resources.length,pe=$.random?Math.floor(Math.random()*le):$.index;let _e;if($.random){let $n=$.resources.slice(0);for(_e=[];$n.length>1;){const wn=Math.floor(Math.random()*$n.length);_e.push($n[wn]),$n=$n.slice(0,wn).concat($n.slice(wn+1))}_e=_e.concat($n)}else _e=$.resources.slice(pe).concat($.resources.slice(0,pe));const Ce=Date.now();let $e="pending",xe=0,Ie,Ne=null,Fe=[],ze=[];typeof ie=="function"&&ze.push(ie);function At(){Ne&&(clearTimeout(Ne),Ne=null)}function Lt(){$e==="pending"&&($e="aborted"),At(),Fe.forEach($n=>{$n.status==="pending"&&($n.status="aborted")}),Fe=[]}function hn($n,wn){wn&&(ze=[]),typeof $n=="function"&&ze.push($n)}function vn(){return{startTime:Ce,payload:oe,status:$e,queriesSent:xe,queriesPending:Fe.length,subscribe:hn,abort:Lt}}function _n(){$e="failed",ze.forEach($n=>{$n(void 0,Ie)})}function bn(){Fe.forEach($n=>{$n.status==="pending"&&($n.status="aborted")}),Fe=[]}function Cn($n,wn,Tn){const xn=wn!=="success";switch(Fe=Fe.filter(kn=>kn!==$n),$e){case"pending":break;case"failed":if(xn||!$.dataAfterTimeout)return;break;default:return}if(wn==="abort"){Ie=Tn,_n();return}if(xn){Ie=Tn,Fe.length||(_e.length?En():_n());return}if(At(),bn(),!$.random){const kn=$.resources.indexOf($n.resource);kn!==-1&&kn!==$.index&&($.index=kn)}$e="completed",ze.forEach(kn=>{kn(Tn)})}function En(){if($e!=="pending")return;At();const $n=_e.shift();if($n===void 0){if(Fe.length){Ne=setTimeout(()=>{At(),$e==="pending"&&(bn(),_n())},$.timeout);return}_n();return}const wn={status:"pending",resource:$n,callback:(Tn,xn)=>{Cn(wn,Tn,xn)}};Fe.push(wn),xe++,Ne=setTimeout(En,$.rotate),ae($n,oe,wn.callback)}return setTimeout(En),vn}function initRedundancy($){const oe={...defaultConfig,...$};let ae=[];function ie(){ae=ae.filter(Ce=>Ce().status==="pending")}function le(Ce,$e,xe){const Ie=sendQuery(oe,Ce,$e,(Ne,Fe)=>{ie(),xe&&xe(Ne,Fe)});return ae.push(Ie),Ie}function pe(Ce){return ae.find($e=>Ce($e))||null}return{query:le,find:pe,setIndex:Ce=>{oe.index=Ce},getIndex:()=>oe.index,cleanup:ie}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache($){if(!redundancyCache[$]){const oe=getAPIConfig($);if(!oe)return;const ae=initRedundancy(oe),ie={config:oe,redundancy:ae};redundancyCache[$]=ie}return redundancyCache[$]}function sendAPIQuery($,oe,ae){let ie,le;if(typeof $=="string"){const pe=getAPIModule($);if(!pe)return ae(void 0,424),emptyCallback$1;le=pe.send;const _e=getRedundancyCache($);_e&&(ie=_e.redundancy)}else{const pe=createAPIConfig($);if(pe){ie=initRedundancy(pe);const _e=$.resources?$.resources[0]:"",Ce=getAPIModule(_e);Ce&&(le=Ce.send)}}return!ie||!le?(ae(void 0,424),emptyCallback$1):ie.query(oe,le,ae)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem($,oe){try{return $.getItem(oe)}catch{}}function setStoredItem($,oe,ae){try{return $.setItem(oe,ae),!0}catch{}}function removeStoredItem($,oe){try{$.removeItem(oe)}catch{}}function setBrowserStorageItemsCount($,oe){return setStoredItem($,browserCacheCountKey,oe.toString())}function getBrowserStorageItemsCount($){return parseInt(getStoredItem($,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus($){browserStorageStatus=$}let _window=typeof window>"u"?{}:window;function getBrowserStorage($){const oe=$+"Storage";try{if(_window&&_window[oe]&&typeof _window[oe].length=="number")return _window[oe]}catch{}browserStorageConfig[$]=!1}function iterateBrowserStorage($,oe){const ae=getBrowserStorage($);if(!ae)return;const ie=getStoredItem(ae,browserCacheVersionKey);if(ie!==browserCacheVersion){if(ie){const Ce=getBrowserStorageItemsCount(ae);for(let $e=0;$e<Ce;$e++)removeStoredItem(ae,browserCachePrefix+$e.toString())}setStoredItem(ae,browserCacheVersionKey,browserCacheVersion),setBrowserStorageItemsCount(ae,0);return}const le=Math.floor(Date.now()/browserStorageHour)-browserStorageCacheExpiration,pe=Ce=>{const $e=browserCachePrefix+Ce.toString(),xe=getStoredItem(ae,$e);if(typeof xe=="string"){try{const Ie=JSON.parse(xe);if(typeof Ie=="object"&&typeof Ie.cached=="number"&&Ie.cached>le&&typeof Ie.provider=="string"&&typeof Ie.data=="object"&&typeof Ie.data.prefix=="string"&&oe(Ie,Ce))return!0}catch{}removeStoredItem(ae,$e)}};let _e=getBrowserStorageItemsCount(ae);for(let Ce=_e-1;Ce>=0;Ce--)pe(Ce)||(Ce===_e-1?(_e--,setBrowserStorageItemsCount(ae,_e)):browserStorageEmptyItems[$].add(Ce))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const $ in browserStorageConfig)iterateBrowserStorage($,oe=>{const ae=oe.data,ie=oe.provider,le=ae.prefix,pe=getStorage(ie,le);if(!addIconSet(pe,ae).length)return!1;const _e=ae.lastModified||-1;return pe.lastModifiedCached=pe.lastModifiedCached?Math.min(pe.lastModifiedCached,_e):_e,!0})}}function updateLastModified($,oe){const ae=$.lastModifiedCached;if(ae&&ae>=oe)return ae===oe;if($.lastModifiedCached=oe,ae)for(const ie in browserStorageConfig)iterateBrowserStorage(ie,le=>{const pe=le.data;return le.provider!==$.provider||pe.prefix!==$.prefix||pe.lastModified===oe});return!0}function storeInBrowserStorage($,oe){browserStorageStatus||initBrowserStorage();function ae(ie){let le;if(!browserStorageConfig[ie]||!(le=getBrowserStorage(ie)))return;const pe=browserStorageEmptyItems[ie];let _e;if(pe.size)pe.delete(_e=Array.from(pe).shift());else if(_e=getBrowserStorageItemsCount(le),!setBrowserStorageItemsCount(le,_e+1))return;const Ce={cached:Math.floor(Date.now()/browserStorageHour),provider:$.provider,data:oe};return setStoredItem(le,browserCachePrefix+_e.toString(),JSON.stringify(Ce))}oe.lastModified&&!updateLastModified($,oe.lastModified)||Object.keys(oe.icons).length&&(oe.not_found&&(oe=Object.assign({},oe),delete oe.not_found),ae("local")||ae("session"))}function emptyCallback(){}function loadedNewIcons($){$.iconsLoaderFlag||($.iconsLoaderFlag=!0,setTimeout(()=>{$.iconsLoaderFlag=!1,updateCallbacks($)}))}function loadNewIcons($,oe){$.iconsToLoad?$.iconsToLoad=$.iconsToLoad.concat(oe).sort():$.iconsToLoad=oe,$.iconsQueueFlag||($.iconsQueueFlag=!0,setTimeout(()=>{$.iconsQueueFlag=!1;const{provider:ae,prefix:ie}=$,le=$.iconsToLoad;delete $.iconsToLoad;let pe;if(!le||!(pe=getAPIModule(ae)))return;pe.prepare(ae,ie,le).forEach(Ce=>{sendAPIQuery(ae,Ce,$e=>{if(typeof $e!="object")Ce.icons.forEach(xe=>{$.missing.add(xe)});else try{const xe=addIconSet($,$e);if(!xe.length)return;const Ie=$.pendingIcons;Ie&&xe.forEach(Ne=>{Ie.delete(Ne)}),storeInBrowserStorage($,$e)}catch(xe){console.error(xe)}loadedNewIcons($)})})}))}const loadIcons=($,oe)=>{const ae=listToIcons($,!0,allowSimpleNames()),ie=sortIcons(ae);if(!ie.pending.length){let $e=!0;return oe&&setTimeout(()=>{$e&&oe(ie.loaded,ie.missing,ie.pending,emptyCallback)}),()=>{$e=!1}}const le=Object.create(null),pe=[];let _e,Ce;return ie.pending.forEach($e=>{const{provider:xe,prefix:Ie}=$e;if(Ie===Ce&&xe===_e)return;_e=xe,Ce=Ie,pe.push(getStorage(xe,Ie));const Ne=le[xe]||(le[xe]=Object.create(null));Ne[Ie]||(Ne[Ie]=[])}),ie.pending.forEach($e=>{const{provider:xe,prefix:Ie,name:Ne}=$e,Fe=getStorage(xe,Ie),ze=Fe.pendingIcons||(Fe.pendingIcons=new Set);ze.has(Ne)||(ze.add(Ne),le[xe][Ie].push(Ne))}),pe.forEach($e=>{const{provider:xe,prefix:Ie}=$e;le[xe][Ie].length&&loadNewIcons($e,le[xe][Ie])}),oe?storeCallback(oe,ie,pe):emptyCallback};function mergeCustomisations($,oe){const ae={...$};for(const ie in oe){const le=oe[ie],pe=typeof le;ie in defaultIconSizeCustomisations?(le===null||le&&(pe==="string"||pe==="number"))&&(ae[ie]=le):pe===typeof ae[ie]&&(ae[ie]=ie==="rotate"?le%4:le)}return ae}const separator=/[\s,]+/;function flipFromString($,oe){oe.split(separator).forEach(ae=>{switch(ae.trim()){case"horizontal":$.hFlip=!0;break;case"vertical":$.vFlip=!0;break}})}function rotateFromString($,oe=0){const ae=$.replace(/^-?[0-9.]*/,"");function ie(le){for(;le<0;)le+=4;return le%4}if(ae===""){const le=parseInt($);return isNaN(le)?0:ie(le)}else if(ae!==$){let le=0;switch(ae){case"%":le=25;break;case"deg":le=90}if(le){let pe=parseFloat($.slice(0,$.length-ae.length));return isNaN(pe)?0:(pe=pe/le,pe%1===0?ie(pe):0)}}return oe}function iconToHTML($,oe){let ae=$.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const ie in oe)ae+=" "+ie+'="'+oe[ie]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+ae+">"+$+"</svg>"}function encodeSVGforURL($){return $.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function svgToData($){return"data:image/svg+xml,"+encodeSVGforURL($)}function svgToURL($){return'url("'+svgToData($)+'")'}const defaultExtendedIconCustomisations={...defaultIconCustomisations,inline:!1},svgDefaults={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},commonProps={display:"inline-block"},monotoneProps={backgroundColor:"currentColor"},coloredProps={backgroundColor:"transparent"},propsToAdd={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},propsToAddTo={webkitMask:monotoneProps,mask:monotoneProps,background:coloredProps};for(const $ in propsToAddTo){const oe=propsToAddTo[$];for(const ae in propsToAdd)oe[$+ae]=propsToAdd[ae]}const customisationAliases={};["horizontal","vertical"].forEach($=>{const oe=$.slice(0,1)+"Flip";customisationAliases[$+"-flip"]=oe,customisationAliases[$.slice(0,1)+"-flip"]=oe,customisationAliases[$+"Flip"]=oe});function fixSize($){return $+($.match(/^[-0-9.]+$/)?"px":"")}const render=($,oe)=>{const ae=mergeCustomisations(defaultExtendedIconCustomisations,oe),ie={...svgDefaults},le=oe.mode||"svg",pe={},_e=oe.style,Ce=typeof _e=="object"&&!(_e instanceof Array)?_e:{};for(let Lt in oe){const hn=oe[Lt];if(hn!==void 0)switch(Lt){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":ae[Lt]=hn===!0||hn==="true"||hn===1;break;case"flip":typeof hn=="string"&&flipFromString(ae,hn);break;case"color":pe.color=hn;break;case"rotate":typeof hn=="string"?ae[Lt]=rotateFromString(hn):typeof hn=="number"&&(ae[Lt]=hn);break;case"ariaHidden":case"aria-hidden":hn!==!0&&hn!=="true"&&delete ie["aria-hidden"];break;default:{const vn=customisationAliases[Lt];vn?(hn===!0||hn==="true"||hn===1)&&(ae[vn]=!0):defaultExtendedIconCustomisations[Lt]===void 0&&(ie[Lt]=hn)}}}const $e=iconToSVG($,ae),xe=$e.attributes;if(ae.inline&&(pe.verticalAlign="-0.125em"),le==="svg"){ie.style={...pe,...Ce},Object.assign(ie,xe);let Lt=0,hn=oe.id;return typeof hn=="string"&&(hn=hn.replace(/-/g,"_")),ie.innerHTML=replaceIDs($e.body,hn?()=>hn+"ID"+Lt++:"iconifyVue"),h$3("svg",ie)}const{body:Ie,width:Ne,height:Fe}=$,ze=le==="mask"||(le==="bg"?!1:Ie.indexOf("currentColor")!==-1),At=iconToHTML(Ie,{...xe,width:Ne+"",height:Fe+""});return ie.style={...pe,"--svg":svgToURL(At),width:fixSize(xe.width),height:fixSize(xe.height),...commonProps,...ze?monotoneProps:coloredProps,...Ce},h$3("span",ie)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const $=window;if($.IconifyPreload!==void 0){const oe=$.IconifyPreload,ae="Invalid IconifyPreload syntax.";typeof oe=="object"&&oe!==null&&(oe instanceof Array?oe:[oe]).forEach(ie=>{try{(typeof ie!="object"||ie===null||ie instanceof Array||typeof ie.icons!="object"||typeof ie.prefix!="string"||!addCollection(ie))&&console.error(ae)}catch{console.error(ae)}})}if($.IconifyProviders!==void 0){const oe=$.IconifyProviders;if(typeof oe=="object"&&oe!==null)for(let ae in oe){const ie="IconifyProviders["+ae+"] is invalid.";try{const le=oe[ae];if(typeof le!="object"||!le||le.resources===void 0)continue;addAPIProvider(ae,le)||console.error(ie)}catch{console.error(ie)}}}}const emptyIcon={...defaultIconProps,body:""},Icon=defineComponent({inheritAttrs:!1,data(){return{iconMounted:!1,counter:0}},mounted(){this._name="",this._loadingIcon=null,this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon($,oe){if(typeof $=="object"&&$!==null&&typeof $.body=="string")return this._name="",this.abortLoading(),{data:$};let ae;if(typeof $!="string"||(ae=stringToIcon($,!1,!0))===null)return this.abortLoading(),null;const ie=getIconData(ae);if(!ie)return(!this._loadingIcon||this._loadingIcon.name!==$)&&(this.abortLoading(),this._name="",ie!==null&&(this._loadingIcon={name:$,abort:loadIcons([ae],()=>{this.counter++})})),null;this.abortLoading(),this._name!==$&&(this._name=$,oe&&oe($));const le=["iconify"];return ae.prefix!==""&&le.push("iconify--"+ae.prefix),ae.provider!==""&&le.push("iconify--"+ae.provider),{data:ie,classes:le}}},render(){this.counter;const $=this.$attrs,oe=this.iconMounted?this.getIcon($.icon,$.onLoad):null;if(!oe)return render(emptyIcon,$);let ae=$;return oe.classes&&(ae={...$,class:(typeof $.class=="string"?$.class+" ":"")+oe.classes.join(" ")}),render({...defaultIconProps,...oe.data},ae)}}),iconifyIconOnline=defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return h$3(Icon,{icon:`${this.icon}`,style:$!=null&&$.style?Object.assign($.style,{outline:"none"}):{outline:"none"},...$},{default:()=>[]})}}),fontIcon=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const $=this.$attrs;return Object.keys($).includes("uni")||($==null?void 0:$.iconType)==="uni"?h$3("i",{class:"iconfont",...$},this.icon):Object.keys($).includes("svg")||($==null?void 0:$.iconType)==="svg"?h$3("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[h$3("use",{"xlink:href":`#${this.icon}`})]}):h$3("i",{class:`iconfont ${this.icon}`,...$})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,FontIcon=fontIcon,auth=defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup($,{slots:oe}){return()=>{var ae;return oe&&hasAuth($.value)?createVNode(Fragment,null,[(ae=oe.default)==null?void 0:ae.call(oe)]):null}}}),Auth=auth,systemRouter={path:"/system",meta:{icon:"setting",title:"menus.hssysManagement",rank:system$1},children:[{path:"/system/user/index",name:"User",meta:{icon:"flUser",title:"menus.hsUser",roles:["admin"]}},{path:"/system/role/index",name:"Role",meta:{icon:"role",title:"menus.hsRole",roles:["admin"]}},{path:"/system/dept/index",name:"Dept",meta:{icon:"dept",title:"menus.hsDept",roles:["admin"]}}]},permissionRouter={path:"/permission",meta:{title:"menus.permission",icon:"lollipop",rank:permission},children:[{path:"/permission/page/index",name:"PermissionPage",meta:{title:"menus.permissionPage",roles:["admin","common"]}},{path:"/permission/button/index",name:"PermissionButton",meta:{title:"menus.permissionButton",roles:["admin","common"],auths:["btn_add","btn_edit","btn_delete"]}}]},frameRouter={path:"/iframe",meta:{icon:"monitor",title:"menus.hsExternalPage",rank:frame$1},children:[{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",roles:["admin","common"]}},{path:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/iframe/ep",name:"FrameEp",meta:{title:"menus.hsEpDocument",frameSrc:"https://element-plus.org/zh-CN/",roles:["admin","common"]}},{path:"/iframe/vue3",name:"FrameVue",meta:{title:"menus.hsVueDocument",frameSrc:"https://cn.vuejs.org/",roles:["admin","common"]}},{path:"/iframe/vite",name:"FrameVite",meta:{title:"menus.hsViteDocument",frameSrc:"https://cn.vitejs.dev/",roles:["admin","common"]}},{path:"/iframe/pinia",name:"FramePinia",meta:{title:"menus.hsPiniaDocument",frameSrc:"https://pinia.vuejs.org/zh/index.html",roles:["admin","common"]}},{path:"/iframe/vue-router",name:"FrameRouter",meta:{title:"menus.hsRouterDocument",frameSrc:"https://router.vuejs.org/zh/",roles:["admin","common"]}},{path:"/iframe/tailwindcss",name:"FrameTailwindcss",meta:{title:"menus.hsTailwindcssDocument",frameSrc:"https://tailwindcss.com/docs/installation",roles:["admin","common"]}}]},tabsRouter={path:"/tabs",meta:{icon:"IF-pure-iconfont-tabs",title:"menus.hstabs",rank:tabs},children:[{path:"/tabs/index",name:"Tabs",meta:{title:"menus.hstabs",roles:["admin","common"]}},{path:"/tabs/query-detail",name:"TabQueryDetail",meta:{showLink:!1,roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,roles:["admin","common"]}}]},asyncRoutes=[{url:"/getAsyncRoutes",method:"get",response:()=>({success:!0,data:[systemRouter,permissionRouter,frameRouter,tabsRouter]})}],__vite_glob_0_0=Object.freeze(Object.defineProperty({__proto__:null,default:asyncRoutes},Symbol.toStringTag,{value:"Module"})),list=[{url:"/getCardList",method:"post",response:()=>({success:!0,data:{list:[{index:1,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:2,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:3,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:4,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:5,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:6,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:7,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:8,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:9,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:10,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:11,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:12,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:13,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"云数据库",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:14,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:15,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:16,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:17,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:18,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"云数据库",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:19,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:20,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:21,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:22,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:23,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:24,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"人脸识别",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:25,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:26,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:27,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:28,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:29,isSetup:!1,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:30,isSetup:!0,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:31,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:32,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:33,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:34,isSetup:!1,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:35,isSetup:!1,type:1,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"云数据库",description:"基于腾讯优图强大的面部分析技术,提供包括人脸检测与分析、五官定位、人脸搜索、人脸比对、人脸"},{index:36,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/face-recognition.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:37,isSetup:!0,type:5,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"CVM",description:"云数据库MySQL为用户提供安全可靠性能卓越、易于维护的企业级云数据库服务。"},{index:38,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"云数据库",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:39,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"人脸识别",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:40,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"CVM",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:41,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:42,isSetup:!0,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"T-Sec 云防火墙",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:43,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-db.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:44,isSetup:!0,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/t-sec.jpg",name:"SSL证书",description:"云硬盘为您提供用于CVM的持久性数据块级存储服务。云硬盘中的数据自动地可用区内以多副本冗"},{index:45,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:46,isSetup:!0,type:2,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"},{index:47,isSetup:!1,type:4,banner:"https://tdesign.gtimg.com/tdesign-pro/cloud-server.jpg",name:"SSL证书",description:"腾讯安全云防火墙产品是腾讯云安全团队结合云原生的优势自主研发的SaaS化防火墙产品无需客无需客无需客无需客无需客无需客无需客"},{index:48,isSetup:!1,type:3,banner:"https://tdesign.gtimg.com/tdesign-pro/ssl.jpg",name:"T-Sec 云防火墙",description:"SSL证书又叫服务器证书腾讯云为您提供证书的一站式服务包括免费、付费证书的申请、管理及部"}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:$})=>$.username==="admin"?{success:!0,data:{username:"admin",roles:["admin"],accessToken:"eyJhbGciOiJIUzUxMiJ9.admin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.adminRefresh",expires:"2023/10/30 00:00:00"}}:{success:!0,data:{username:"common",roles:["common"],accessToken:"eyJhbGciOiJIUzUxMiJ9.common",refreshToken:"eyJhbGciOiJIUzUxMiJ9.commonRefresh",expires:"2023/10/30 00:00:00"}}}],__vite_glob_0_2=Object.freeze(Object.defineProperty({__proto__:null,default:login},Symbol.toStringTag,{value:"Module"})),mapList=()=>{const $=[];for(let oe=0;oe<200;oe++)$.push({plateNumber:"豫A@natural(11111, 99999)@character('upper')",driver:"@cname()","orientation|1-360":100,"lng|113-114.1-10":1,"lat|34-35.1-10":1});return $},map=[{url:"/getMapInfo",method:"get",response:()=>({success:!0,data:mapList()})}],__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:map},Symbol.toStringTag,{value:"Module"})),refreshToken=[{url:"/refreshToken",method:"post",response:({body:$})=>$.refreshToken?{success:!0,data:{accessToken:"eyJhbGciOiJIUzUxMiJ9.newAdmin",refreshToken:"eyJhbGciOiJIUzUxMiJ9.newAdminRefresh",expires:"2023/10/30 23:59:59"}}:{success:!1,data:{}}}],__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:refreshToken},Symbol.toStringTag,{value:"Module"})),system=[{url:"/role",method:"post",response:()=>({success:!0,data:{list:[{createTime:1605456e6,updateTime:1645477701e3,creator:"admin",updater:"",deleted:!1,tenantId:1,id:1,name:"超级管理员",code:"super_admin",sort:1,status:0,type:1,remark:"超级管理员",dataScope:1,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:16454777e5,creator:"admin",updater:"",deleted:!1,tenantId:1,id:2,name:"普通角色",code:"common",sort:2,status:0,type:1,remark:"普通角色",dataScope:2,dataScopeDeptIds:null},{createTime:1605456e6,updateTime:1647698441e3,creator:"",updater:"1",deleted:!1,tenantId:1,id:101,name:"测试账号",code:"test",sort:0,status:0,type:2,remark:"132",dataScope:1,dataScopeDeptIds:[]}],total:3}})},{url:"/dept",method:"post",response:()=>({success:!0,data:[{name:"杭州总公司",parentId:0,id:100,sort:0,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:1,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"郑州分公司",parentId:100,id:101,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"研发部门",parentId:101,id:103,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:102,id:108,sort:1,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"深圳分公司",parentId:100,id:102,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:2,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"市场部门",parentId:101,id:104,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:102,id:109,sort:2,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"测试部门",parentId:101,id:105,sort:3,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"财务部门",parentId:101,id:106,sort:4,phone:"15888888888",principal:"@cname()",email:"@email",status:1,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"},{name:"运维部门",parentId:101,id:107,sort:5,phone:"15888888888",principal:"@cname()",email:"@email",status:0,type:3,createTime:1605456e6,remark:"@cparagraph(1, 3)"}]})},{url:"/user",method:"post",response:()=>({success:!0,data:{list:[{username:"admin",nickname:"admin",remark:"管理员",deptId:103,postIds:[1],mobile:"15888888888",sex:0,id:1,status:0,createTime:1605456e6,dept:{id:103,name:"研发部门"}},{username:"pure",nickname:"pure",remark:"不要吓我",deptId:104,postIds:[1],mobile:"15888888888",sex:0,id:100,status:1,createTime:1605456e6,dept:{id:104,name:"市场部门"}},{username:"小姐姐",nickname:"girl",remark:null,deptId:106,postIds:null,mobile:"15888888888",sex:1,id:103,status:1,createTime:1605456e6,dept:{id:106,name:"财务部门"}},{username:"小哥哥",nickname:"boy",remark:null,deptId:107,postIds:[],mobile:"15888888888",sex:0,id:104,status:0,createTime:1605456e6,dept:{id:107,name:"运维部门"}}],total:4}})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(oe,ae){module.exports=ae()})(commonjsGlobal,function(){return function($){var oe={};function ae(ie){if(oe[ie])return oe[ie].exports;var le=oe[ie]={exports:{},id:ie,loaded:!1};return $[ie].call(le.exports,le,le.exports,ae),le.loaded=!0,le.exports}return ae.m=$,ae.c=oe,ae.p="",ae(0)}([function($,oe,ae){var ie=ae(1),le=ae(3),pe=ae(5),_e=ae(20),Ce=ae(23),$e=ae(25),xe;typeof window<"u"&&(xe=ae(27));/*!
Mock - 模拟请求 & 模拟数据
https://github.com/nuysoft/Mock
墨智 mozhi.gyy@taobao.com nuysoft@gmail.com
*/var Ie={Handler:ie,Random:pe,Util:le,XHR:xe,RE:_e,toJSONSchema:Ce,valid:$e,heredoc:le.heredoc,setup:function(Ne){return xe.setup(Ne)},_mocked:{}};Ie.version="1.0.1-beta3",xe&&(xe.Mock=Ie),Ie.mock=function(Ne,Fe,ze){return arguments.length===1?ie.gen(Ne):(arguments.length===2&&(ze=Fe,Fe=void 0),xe&&(window.XMLHttpRequest=xe),Ie._mocked[Ne+(Fe||"")]={rurl:Ne,rtype:Fe,template:ze},Ie)},$.exports=Ie},function(module,exports,__webpack_require__){var Constant=__webpack_require__(2),Util=__webpack_require__(3),Parser=__webpack_require__(4),Random=__webpack_require__(5),RE=__webpack_require__(20),Handler={extend:Util.extend};Handler.gen=function($,oe,ae){oe=oe==null?"":oe+"",ae=ae||{},ae={path:ae.path||[Constant.GUID],templatePath:ae.templatePath||[Constant.GUID++],currentContext:ae.currentContext,templateCurrentContext:ae.templateCurrentContext||$,root:ae.root||ae.currentContext,templateRoot:ae.templateRoot||ae.templateCurrentContext||$};var ie=Parser.parse(oe),le=Util.type($),pe;return Handler[le]?(pe=Handler[le]({type:le,template:$,name:oe,parsedName:oe&&oe.replace(Constant.RE_KEY,"$1"),rule:ie,context:ae}),ae.root||(ae.root=pe),pe):$},Handler.extend({array:function($){var oe=[],ae,ie;if($.template.length===0)return oe;if($.rule.parameters)if($.rule.min===1&&$.rule.max===void 0)$.context.path.push($.name),$.context.templatePath.push($.name),oe=Random.pick(Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else if($.rule.parameters[2])$.template.__order_index=$.template.__order_index||0,$.context.path.push($.name),$.context.templatePath.push($.name),oe=Handler.gen($.template,void 0,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})[$.template.__order_index%$.template.length],$.template.__order_index+=+$.rule.parameters[2],$.context.path.pop(),$.context.templatePath.pop();else for(ae=0;ae<$.rule.count;ae++)for(ie=0;ie<$.template.length;ie++)$.context.path.push(oe.length),$.context.templatePath.push(ie),oe.push(Handler.gen($.template[ie],oe.length,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();else for(ae=0;ae<$.template.length;ae++)$.context.path.push(ae),$.context.templatePath.push(ae),oe.push(Handler.gen($.template[ae],ae,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template})),$.context.path.pop(),$.context.templatePath.pop();return oe},object:function($){var oe={},ae,ie,le,pe,_e,Ce;if($.rule.min!=null)for(ae=Util.keys($.template),ae=Random.shuffle(ae),ae=ae.slice(0,$.rule.count),Ce=0;Ce<ae.length;Ce++)le=ae[Ce],pe=le.replace(Constant.RE_KEY,"$1"),$.context.path.push(pe),$.context.templatePath.push(le),oe[pe]=Handler.gen($.template[le],le,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template}),$.context.path.pop(),$.context.templatePath.pop();else{ae=[],ie=[];for(le in $.template)(typeof $.template[le]=="function"?ie:ae).push(le);for(ae=ae.concat(ie),Ce=0;Ce<ae.length;Ce++)le=ae[Ce],pe=le.replace(Constant.RE_KEY,"$1"),$.context.path.push(pe),$.context.templatePath.push(le),oe[pe]=Handler.gen($.template[le],le,{path:$.context.path,templatePath:$.context.templatePath,currentContext:oe,templateCurrentContext:$.template,root:$.context.root||oe,templateRoot:$.context.templateRoot||$.template}),$.context.path.pop(),$.context.templatePath.pop(),_e=le.match(Constant.RE_KEY),_e&&_e[2]&&Util.type($.template[le])==="number"&&($.template[le]+=parseInt(_e[2],10))}return oe},number:function($){var oe,ae;if($.rule.decimal){for($.template+="",ae=$.template.split("."),ae[0]=$.rule.range?$.rule.count:ae[0],ae[1]=(ae[1]||"").slice(0,$.rule.dcount);ae[1].length<$.rule.dcount;)ae[1]+=ae[1].length<$.rule.dcount-1?Random.character("number"):Random.character("123456789");oe=parseFloat(ae.join("."),10)}else oe=$.rule.range&&!$.rule.parameters[2]?$.rule.count:$.template;return oe},boolean:function($){var oe;return oe=$.rule.parameters?Random.bool($.rule.min,$.rule.max,$.template):$.template,oe},string:function($){var oe="",ae,ie,le,pe;if($.template.length){for($.rule.count==null&&(oe+=$.template),ae=0;ae<$.rule.count;ae++)oe+=$.template;for(ie=oe.match(Constant.RE_PLACEHOLDER)||[],ae=0;ae<ie.length;ae++){if(le=ie[ae],/^\\/.test(le)){ie.splice(ae--,1);continue}if(pe=Handler.placeholder(le,$.context.currentContext,$.context.templateCurrentContext,$),ie.length===1&&le===oe&&typeof pe!=typeof oe){oe=pe;break}oe=oe.replace(le,pe)}}else oe=$.rule.range?Random.string($.rule.count):$.template;return oe},function:function($){return $.template.call($.context.currentContext,$)},regexp:function($){var oe="";$.rule.count==null&&(oe+=$.template.source);for(var ae=0;ae<$.rule.count;ae++)oe+=$.template.source;return RE.Handler.gen(RE.Parser.parse(oe))}}),Handler.extend({_all:function(){var $={};for(var oe in Random)$[oe.toLowerCase()]=oe;return $},placeholder:function(placeholder,obj,templateContext,options){Constant.RE_PLACEHOLDER.exec("");var parts=Constant.RE_PLACEHOLDER.exec(placeholder),key=parts&&parts[1],lkey=key&&key.toLowerCase(),okey=this._all()[lkey],params=parts&&parts[2]||"",pathParts=this.splitPathToArray(key);try{params=eval("(function(){ return [].splice.call(arguments, 0 ) })("+params+")")}catch($){params=parts[2].split(/,\s*/)}if(obj&&key in obj)return obj[key];if(key.charAt(0)==="/"||pathParts.length>1)return this.getValueByKeyPath(key,options);if(templateContext&&typeof templateContext=="object"&&key in templateContext&&placeholder!==templateContext[key])return templateContext[key]=Handler.gen(templateContext[key],key,{currentContext:obj,templateCurrentContext:templateContext}),templateContext[key];if(!(key in Random)&&!(lkey in Random)&&!(okey in Random))return placeholder;for(var i=0;i<params.length;i++)Constant.RE_PLACEHOLDER.exec(""),Constant.RE_PLACEHOLDER.test(params[i])&&(params[i]=Handler.placeholder(params[i],obj,templateContext,options));var handle=Random[key]||Random[lkey]||Random[okey];switch(Util.type(handle)){case"array":return Random.pick(handle);case"function":handle.options=options;var re=handle.apply(Random,params);return re===void 0&&(re=""),delete handle.options,re}},getValueByKeyPath:function($,oe){var ae=$,ie=this.splitPathToArray($),le=[];$.charAt(0)==="/"?le=[oe.context.path[0]].concat(this.normalizePath(ie)):ie.length>1&&(le=oe.context.path.slice(0),le.pop(),le=this.normalizePath(le.concat(ie)));try{$=ie[ie.length-1];for(var pe=oe.context.root,_e=oe.context.templateRoot,Ce=1;Ce<le.length-1;Ce++)pe=pe[le[Ce]],_e=_e[le[Ce]];if(pe&&$ in pe)return pe[$];if(_e&&typeof _e=="object"&&$ in _e&&ae!==_e[$])return _e[$]=Handler.gen(_e[$],$,{currentContext:pe,templateCurrentContext:_e}),_e[$]}catch{}return"@"+ie.join("/")},normalizePath:function($){for(var oe=[],ae=0;ae<$.length;ae++)switch($[ae]){case"..":oe.pop();break;case".":break;default:oe.push($[ae])}return oe},splitPathToArray:function($){var oe=$.split(/\/+/);return oe[oe.length-1]||(oe=oe.slice(0,-1)),oe[0]||(oe=oe.slice(1)),oe}}),module.exports=Handler},function($,oe){$.exports={GUID:1,RE_KEY:/(.+)\|(?:\+(\d+)|([\+\-]?\d+-?[\+\-]?\d*)?(?:\.(\d+-?\d*))?)/,RE_RANGE:/([\+\-]?\d+)-?([\+\-]?\d+)?/,RE_PLACEHOLDER:/\\*@([^@#%&()\?\s]+)(?:\((.*?)\))?/g}},function($,oe){var ae={};ae.extend=function(){var le=arguments[0]||{},pe=1,_e=arguments.length,Ce,$e,xe,Ie,Ne;for(_e===1&&(le=this,pe=0);pe<_e;pe++)if(Ce=arguments[pe],!!Ce)for($e in Ce)xe=le[$e],Ie=Ce[$e],le!==Ie&&Ie!==void 0&&(ae.isArray(Ie)||ae.isObject(Ie)?(ae.isArray(Ie)&&(Ne=xe&&ae.isArray(xe)?xe:[]),ae.isObject(Ie)&&(Ne=xe&&ae.isObject(xe)?xe:{}),le[$e]=ae.extend(Ne,Ie)):le[$e]=Ie);return le},ae.each=function(le,pe,_e){var Ce,$e;if(this.type(le)==="number")for(Ce=0;Ce<le;Ce++)pe(Ce,Ce);else if(le.length===+le.length)for(Ce=0;Ce<le.length&&pe.call(_e,le[Ce],Ce,le)!==!1;Ce++);else for($e in le)if(pe.call(_e,le[$e],$e,le)===!1)break},ae.type=function(le){return le==null?String(le):Object.prototype.toString.call(le).match(/\[object (\w+)\]/)[1].toLowerCase()},ae.each("String Object Array RegExp Function".split(" "),function(ie){ae["is"+ie]=function(le){return ae.type(le)===ie.toLowerCase()}}),ae.isObjectOrArray=function(ie){return ae.isObject(ie)||ae.isArray(ie)},ae.isNumeric=function(ie){return!isNaN(parseFloat(ie))&&isFinite(ie)},ae.keys=function(ie){var le=[];for(var pe in ie)ie.hasOwnProperty(pe)&&le.push(pe);return le},ae.values=function(ie){var le=[];for(var pe in ie)ie.hasOwnProperty(pe)&&le.push(ie[pe]);return le},ae.heredoc=function(le){return le.toString().replace(/^[^\/]+\/\*!?/,"").replace(/\*\/[^\/]+$/,"").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")},ae.noop=function(){},$.exports=ae},function($,oe,ae){var ie=ae(2),le=ae(5);$.exports={parse:function(pe){pe=pe==null?"":pe+"";var _e=(pe||"").match(ie.RE_KEY),Ce=_e&&_e[3]&&_e[3].match(ie.RE_RANGE),$e=Ce&&Ce[1]&&parseInt(Ce[1],10),xe=Ce&&Ce[2]&&parseInt(Ce[2],10),Ie=Ce?Ce[2]?le.integer($e,xe):parseInt(Ce[1],10):void 0,Ne=_e&&_e[4]&&_e[4].match(ie.RE_RANGE),Fe=Ne&&Ne[1]&&parseInt(Ne[1],10),ze=Ne&&Ne[2]&&parseInt(Ne[2],10),At=Ne?!Ne[2]&&parseInt(Ne[1],10)||le.integer(Fe,ze):void 0,Lt={parameters:_e,range:Ce,min:$e,max:xe,count:Ie,decimal:Ne,dmin:Fe,dmax:ze,dcount:At};for(var hn in Lt)if(Lt[hn]!=null)return Lt;return{}}}},function($,oe,ae){var ie=ae(3),le={extend:ie.extend};le.extend(ae(6)),le.extend(ae(7)),le.extend(ae(8)),le.extend(ae(10)),le.extend(ae(13)),le.extend(ae(15)),le.extend(ae(16)),le.extend(ae(17)),le.extend(ae(14)),le.extend(ae(19)),$.exports=le},function($,oe){$.exports={boolean:function(ae,ie,le){return le!==void 0?(ae=typeof ae<"u"&&!isNaN(ae)?parseInt(ae,10):1,ie=typeof ie<"u"&&!isNaN(ie)?parseInt(ie,10):1,Math.random()>1/(ae+ie)*ae?!le:le):Math.random()>=.5},bool:function(ae,ie,le){return this.boolean(ae,ie,le)},natural:function(ae,ie){return ae=typeof ae<"u"?parseInt(ae,10):0,ie=typeof ie<"u"?parseInt(ie,10):9007199254740992,Math.round(Math.random()*(ie-ae))+ae},integer:function(ae,ie){return ae=typeof ae<"u"?parseInt(ae,10):-9007199254740992,ie=typeof ie<"u"?parseInt(ie,10):9007199254740992,Math.round(Math.random()*(ie-ae))+ae},int:function(ae,ie){return this.integer(ae,ie)},float:function(ae,ie,le,pe){le=le===void 0?0:le,le=Math.max(Math.min(le,17),0),pe=pe===void 0?17:pe,pe=Math.max(Math.min(pe,17),0);for(var _e=this.integer(ae,ie)+".",Ce=0,$e=this.natural(le,pe);Ce<$e;Ce++)_e+=Ce<$e-1?this.character("number"):this.character("123456789");return parseFloat(_e,10)},character:function(ae){var ie={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",symbol:"!@#$%^&*()[]"};return ie.alpha=ie.lower+ie.upper,ie.undefined=ie.lower+ie.upper+ie.number+ie.symbol,ae=ie[(""+ae).toLowerCase()]||ae,ae.charAt(this.natural(0,ae.length-1))},char:function(ae){return this.character(ae)},string:function(ae,ie,le){var pe;switch(arguments.length){case 0:pe=this.natural(3,7);break;case 1:pe=ae,ae=void 0;break;case 2:typeof arguments[0]=="string"?pe=ie:(pe=this.natural(ae,ie),ae=void 0);break;case 3:pe=this.natural(ie,le);break}for(var _e="",Ce=0;Ce<pe;Ce++)_e+=this.character(ae);return _e},str:function(){return this.string.apply(this,arguments)},range:function(ae,ie,le){arguments.length<=1&&(ie=ae||0,ae=0),le=arguments[2]||1,ae=+ae,ie=+ie,le=+le;for(var pe=Math.max(Math.ceil((ie-ae)/le),0),_e=0,Ce=new Array(pe);_e<pe;)Ce[_e++]=ae,ae+=le;return Ce}}},function($,oe){var ae={yyyy:"getFullYear",yy:function(ie){return(""+ie.getFullYear()).slice(2)},y:"yy",MM:function(ie){var le=ie.getMonth()+1;return le<10?"0"+le:le},M:function(ie){return ie.getMonth()+1},dd:function(ie){var le=ie.getDate();return le<10?"0"+le:le},d:"getDate",HH:function(ie){var le=ie.getHours();return le<10?"0"+le:le},H:"getHours",hh:function(ie){var le=ie.getHours()%12;return le<10?"0"+le:le},h:function(ie){return ie.getHours()%12},mm:function(ie){var le=ie.getMinutes();return le<10?"0"+le:le},m:"getMinutes",ss:function(ie){var le=ie.getSeconds();return le<10?"0"+le:le},s:"getSeconds",SS:function(ie){var le=ie.getMilliseconds();return le<10&&"00"+le||le<100&&"0"+le||le},S:"getMilliseconds",A:function(ie){return ie.getHours()<12?"AM":"PM"},a:function(ie){return ie.getHours()<12?"am":"pm"},T:"getTime"};$.exports={_patternLetters:ae,_rformat:new RegExp(function(){var ie=[];for(var le in ae)ie.push(le);return"("+ie.join("|")+")"}(),"g"),_formatDate:function(ie,le){return le.replace(this._rformat,function pe(_e,Ce){return typeof ae[Ce]=="function"?ae[Ce](ie):ae[Ce]in ae?pe(_e,ae[Ce]):ie[ae[Ce]]()})},_randomDate:function(ie,le){return ie=ie===void 0?new Date(0):ie,le=le===void 0?new Date:le,new Date(Math.random()*(le.getTime()-ie.getTime()))},date:function(ie){return ie=ie||"yyyy-MM-dd",this._formatDate(this._randomDate(),ie)},time:function(ie){return ie=ie||"HH:mm:ss",this._formatDate(this._randomDate(),ie)},datetime:function(ie){return ie=ie||"yyyy-MM-dd HH:mm:ss",this._formatDate(this._randomDate(),ie)},now:function(ie,le){arguments.length===1&&(/year|month|day|hour|minute|second|week/.test(ie)||(le=ie,ie="")),ie=(ie||"").toLowerCase(),le=le||"yyyy-MM-dd HH:mm:ss";var pe=new Date;switch(ie){case"year":pe.setMonth(0);case"month":pe.setDate(1);case"week":case"day":pe.setHours(0);case"hour":pe.setMinutes(0);case"minute":pe.setSeconds(0);case"second":pe.setMilliseconds(0)}switch(ie){case"week":pe.setDate(pe.getDate()-pe.getDay())}return this._formatDate(pe,le)}}},function($,oe,ae){(function(ie){ie.exports={_adSize:["300x250","250x250","240x400","336x280","180x150","720x300","468x60","234x60","88x31","120x90","120x60","120x240","125x125","728x90","160x600","120x600","300x600"],_screenSize:["320x200","320x240","640x480","800x480","800x480","1024x600","1024x768","1280x800","1440x900","1920x1200","2560x1600"],_videoSize:["720x480","768x576","1280x720","1920x1080"],image:function(le,pe,_e,Ce,$e){return arguments.length===4&&($e=Ce,Ce=void 0),arguments.length===3&&($e=_e,_e=void 0),le||(le=this.pick(this._adSize)),pe&&~pe.indexOf("#")&&(pe=pe.slice(1)),_e&&~_e.indexOf("#")&&(_e=_e.slice(1)),"http://dummyimage.com/"+le+(pe?"/"+pe:"")+(_e?"/"+_e:"")+(Ce?"."+Ce:"")+($e?"&text="+$e:"")},img:function(){return this.image.apply(this,arguments)},_brandColors:{"4ormat":"#fb0a2a","500px":"#02adea","About.me (blue)":"#00405d","About.me (yellow)":"#ffcc33",Addvocate:"#ff6138",Adobe:"#ff0000",Aim:"#fcd20b",Amazon:"#e47911",Android:"#a4c639","Angie's List":"#7fbb00",AOL:"#0060a3",Atlassian:"#003366",Behance:"#053eff","Big Cartel":"#97b538",bitly:"#ee6123",Blogger:"#fc4f08",Boeing:"#0039a6","Booking.com":"#003580",Carbonmade:"#613854",Cheddar:"#ff7243","Code School":"#3d4944",Delicious:"#205cc0",Dell:"#3287c1",Designmoo:"#e54a4f",Deviantart:"#4e6252","Designer News":"#2d72da",Devour:"#fd0001",DEWALT:"#febd17","Disqus (blue)":"#59a3fc","Disqus (orange)":"#db7132",Dribbble:"#ea4c89",Dropbox:"#3d9ae8",Drupal:"#0c76ab",Dunked:"#2a323a",eBay:"#89c507",Ember:"#f05e1b",Engadget:"#00bdf6",Envato:"#528036",Etsy:"#eb6d20",Evernote:"#5ba525","Fab.com":"#dd0017",Facebook:"#3b5998",Firefox:"#e66000","Flickr (blue)":"#0063dc","Flickr (pink)":"#ff0084",Forrst:"#5b9a68",Foursquare:"#25a0ca",Garmin:"#007cc3",GetGlue:"#2d75a2",Gimmebar:"#f70078",GitHub:"#171515","Google Blue":"#0140ca","Google Green":"#16a61e","Google Red":"#dd1812","Google Yellow":"#fcca03","Google+":"#dd4b39",Grooveshark:"#f77f00",Groupon:"#82b548","Hacker News":"#ff6600",HelloWallet:"#0085ca","Heroku (light)":"#c7c5e6","Heroku (dark)":"#6567a5",HootSuite:"#003366",Houzz:"#73ba37",HTML5:"#ec6231",IKEA:"#ffcc33",IMDb:"#f3ce13",Instagram:"#3f729b",Intel:"#0071c5",Intuit:"#365ebf",Kickstarter:"#76cc1e",kippt:"#e03500",Kodery:"#00af81",LastFM:"#c3000d",LinkedIn:"#0e76a8",Livestream:"#cf0005",Lumo:"#576396",Mixpanel:"#a086d3",Meetup:"#e51937",Nokia:"#183693",NVIDIA:"#76b900",Opera:"#cc0f16",Path:"#e41f11","PayPal (dark)":"#1e477a","PayPal (light)":"#3b7bbf",Pinboard:"#0000e6",Pinterest:"#c8232c",PlayStation:"#665cbe",Pocket:"#ee4056",Prezi:"#318bff",Pusha:"#0f71b4",Quora:"#a82400","QUOTE.fm":"#66ceff",Rdio:"#008fd5",Readability:"#9c0000","Red Hat":"#cc0000",Resource:"#7eb400",Rockpack:"#0ba6ab",Roon:"#62b0d9",RSS:"#ee802f",Salesforce:"#1798c1",Samsung:"#0c4da2",Shopify:"#96bf48",Skype:"#00aff0",Snagajob:"#f47a20",Softonic:"#008ace",SoundCloud:"#ff7700","Space Box":"#f86960",Spotify:"#81b71a",Sprint:"#fee100",Squarespace:"#121212",StackOverflow:"#ef8236",Staples:"#cc0000","Status Chart":"#d7584f",Stripe:"#008cdd",StudyBlue:"#00afe1",StumbleUpon:"#f74425","T-Mobile":"#ea0a8e",Technorati:"#40a800","The Next Web":"#ef4423",Treehouse:"#5cb868",Trulia:"#5eab1f",Tumblr:"#34526f","Twitch.tv":"#6441a5",Twitter:"#00acee",TYPO3:"#ff8700",Ubuntu:"#dd4814",Ustream:"#3388ff",Verizon:"#ef1d1d",Vimeo:"#86c9ef",Vine:"#00a478",Virb:"#06afd8","Virgin Media":"#cc0000",Wooga:"#5b009c","WordPress (blue)":"#21759b","WordPress (orange)":"#d54e21","WordPress (grey)":"#464646",Wunderlist:"#2b88d9",XBOX:"#9bc848",XING:"#126567","Yahoo!":"#720e9e",Yandex:"#ffcc00",Yelp:"#c41200",YouTube:"#c4302b",Zalongo:"#5498dc",Zendesk:"#78a300",Zerply:"#9dcc7a",Zootool:"#5e8b1d"},_brandNames:function(){var le=[];for(var pe in this._brandColors)le.push(pe);return le},dataImage:function(le,pe){var _e;if(typeof document<"u")_e=document.createElement("canvas");else{var Ce=ie.require("canvas");_e=new Ce}var $e=_e&&_e.getContext&&_e.getContext("2d");if(!_e||!$e)return"";le||(le=this.pick(this._adSize)),pe=pe!==void 0?pe:le,le=le.split("x");var xe=parseInt(le[0],10),Ie=parseInt(le[1],10),Ne=this._brandColors[this.pick(this._brandNames())],Fe="#FFF",ze=14,At="sans-serif";return _e.width=xe,_e.height=Ie,$e.textAlign="center",$e.textBaseline="middle",$e.fillStyle=Ne,$e.fillRect(0,0,xe,Ie),$e.fillStyle=Fe,$e.font="bold "+ze+"px "+At,$e.fillText(pe,xe/2,Ie/2,xe),_e.toDataURL("image/png")}}}).call(oe,ae(9)($))},function($,oe){$.exports=function(ae){return ae.webpackPolyfill||(ae.deprecate=function(){},ae.paths=[],ae.children=[],ae.webpackPolyfill=1),ae}},function($,oe,ae){var ie=ae(11),le=ae(12);$.exports={color:function(pe){return pe||le[pe]?le[pe].nicer:this.hex()},hex:function(){var pe=this._goldenRatioColor(),_e=ie.hsv2rgb(pe),Ce=ie.rgb2hex(_e[0],_e[1],_e[2]);return Ce},rgb:function(){var pe=this._goldenRatioColor(),_e=ie.hsv2rgb(pe);return"rgb("+parseInt(_e[0],10)+", "+parseInt(_e[1],10)+", "+parseInt(_e[2],10)+")"},rgba:function(){var pe=this._goldenRatioColor(),_e=ie.hsv2rgb(pe);return"rgba("+parseInt(_e[0],10)+", "+parseInt(_e[1],10)+", "+parseInt(_e[2],10)+", "+Math.random().toFixed(2)+")"},hsl:function(){var pe=this._goldenRatioColor(),_e=ie.hsv2hsl(pe);return"hsl("+parseInt(_e[0],10)+", "+parseInt(_e[1],10)+", "+parseInt(_e[2],10)+")"},_goldenRatioColor:function(pe,_e){return this._goldenRatio=.618033988749895,this._hue=this._hue||Math.random(),this._hue+=this._goldenRatio,this._hue%=1,typeof pe!="number"&&(pe=.5),typeof _e!="number"&&(_e=.95),[this._hue*360,pe*100,_e*100]}}},function($,oe){$.exports={rgb2hsl:function(ie){var le=ie[0]/255,pe=ie[1]/255,_e=ie[2]/255,Ce=Math.min(le,pe,_e),$e=Math.max(le,pe,_e),xe=$e-Ce,Ie,Ne,Fe;return $e==Ce?Ie=0:le==$e?Ie=(pe-_e)/xe:pe==$e?Ie=2+(_e-le)/xe:_e==$e&&(Ie=4+(le-pe)/xe),Ie=Math.min(Ie*60,360),Ie<0&&(Ie+=360),Fe=(Ce+$e)/2,$e==Ce?Ne=0:Fe<=.5?Ne=xe/($e+Ce):Ne=xe/(2-$e-Ce),[Ie,Ne*100,Fe*100]},rgb2hsv:function(ie){var le=ie[0],pe=ie[1],_e=ie[2],Ce=Math.min(le,pe,_e),$e=Math.max(le,pe,_e),xe=$e-Ce,Ie,Ne,Fe;return $e===0?Ne=0:Ne=xe/$e*1e3/10,$e==Ce?Ie=0:le==$e?Ie=(pe-_e)/xe:pe==$e?Ie=2+(_e-le)/xe:_e==$e&&(Ie=4+(le-pe)/xe),Ie=Math.min(Ie*60,360),Ie<0&&(Ie+=360),Fe=$e/255*1e3/10,[Ie,Ne,Fe]},hsl2rgb:function(ie){var le=ie[0]/360,pe=ie[1]/100,_e=ie[2]/100,Ce,$e,xe,Ie,Ne;if(pe===0)return Ne=_e*255,[Ne,Ne,Ne];_e<.5?$e=_e*(1+pe):$e=_e+pe-_e*pe,Ce=2*_e-$e,Ie=[0,0,0];for(var Fe=0;Fe<3;Fe++)xe=le+1/3*-(Fe-1),xe<0&&xe++,xe>1&&xe--,6*xe<1?Ne=Ce+($e-Ce)*6*xe:2*xe<1?Ne=$e:3*xe<2?Ne=Ce+($e-Ce)*(2/3-xe)*6:Ne=Ce,Ie[Fe]=Ne*255;return Ie},hsl2hsv:function(ie){var le=ie[0],pe=ie[1]/100,_e=ie[2]/100,Ce,$e;return _e*=2,pe*=_e<=1?_e:2-_e,$e=(_e+pe)/2,Ce=2*pe/(_e+pe),[le,Ce*100,$e*100]},hsv2rgb:function(ie){var le=ie[0]/60,pe=ie[1]/100,_e=ie[2]/100,Ce=Math.floor(le)%6,$e=le-Math.floor(le),xe=255*_e*(1-pe),Ie=255*_e*(1-pe*$e),Ne=255*_e*(1-pe*(1-$e));switch(_e=255*_e,Ce){case 0:return[_e,Ne,xe];case 1:return[Ie,_e,xe];case 2:return[xe,_e,Ne];case 3:return[xe,Ie,_e];case 4:return[Ne,xe,_e];case 5:return[_e,xe,Ie]}},hsv2hsl:function(ie){var le=ie[0],pe=ie[1]/100,_e=ie[2]/100,Ce,$e;return $e=(2-pe)*_e,Ce=pe*_e,Ce/=$e<=1?$e:2-$e,$e/=2,[le,Ce*100,$e*100]},rgb2hex:function(ae,ie,le){return"#"+((256+ae<<8|ie)<<8|le).toString(16).slice(1)},hex2rgb:function(ae){return ae="0x"+ae.slice(1).replace(ae.length>4?ae:/./g,"$&$&")|0,[ae>>16,ae>>8&255,ae&255]}}},function($,oe){$.exports={navy:{value:"#000080",nicer:"#001F3F"},blue:{value:"#0000ff",nicer:"#0074D9"},aqua:{value:"#00ffff",nicer:"#7FDBFF"},teal:{value:"#008080",nicer:"#39CCCC"},olive:{value:"#008000",nicer:"#3D9970"},green:{value:"#008000",nicer:"#2ECC40"},lime:{value:"#00ff00",nicer:"#01FF70"},yellow:{value:"#ffff00",nicer:"#FFDC00"},orange:{value:"#ffa500",nicer:"#FF851B"},red:{value:"#ff0000",nicer:"#FF4136"},maroon:{value:"#800000",nicer:"#85144B"},fuchsia:{value:"#ff00ff",nicer:"#F012BE"},purple:{value:"#800080",nicer:"#B10DC9"},silver:{value:"#c0c0c0",nicer:"#DDDDDD"},gray:{value:"#808080",nicer:"#AAAAAA"},black:{value:"#000000",nicer:"#111111"},white:{value:"#FFFFFF",nicer:"#FFFFFF"}}},function($,oe,ae){var ie=ae(6),le=ae(14);function pe(_e,Ce,$e,xe){return $e===void 0?ie.natural(_e,Ce):xe===void 0?$e:ie.natural(parseInt($e,10),parseInt(xe,10))}$.exports={paragraph:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.sentence());return xe.join(" ")},cparagraph:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.csentence());return xe.join("")},sentence:function(_e,Ce){for(var $e=pe(12,18,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.word());return le.capitalize(xe.join(" "))+"."},csentence:function(_e,Ce){for(var $e=pe(12,18,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.cword());return xe.join("")+"。"},word:function(_e,Ce){for(var $e=pe(3,10,_e,Ce),xe="",Ie=0;Ie<$e;Ie++)xe+=ie.character("lower");return xe},cword:function(_e,Ce,$e){var xe="的一是在不了有和人这中大为上个国我以要他时来用们生到作地于出就分对成会可主发年动同工也能下过子说产种面而方后多定行学法所民得经十三之进着等部度家电力里如水化高自二理起小物现实加量都两体制机当使点从业本去把性好应开它合还因由其些然前外天政四日那社义事平形相全表间样与关各重新线内数正心反你明看原又么利比或但质气第向道命此变条只没结解问意建月公无系军很情者最立代想已通并提直题党程展五果料象员革位入常文总次品式活设及管特件长求老头基资边流路级少图山统接知较将组见计别她手角期根论运农指几九区强放决西被干做必战先回则任取据处队南给色光门即保治北造百规热领七海口东导器压志世金增争济阶油思术极交受联什认六共权收证改清己美再采转更单风切打白教速花带安场身车例真务具万每目至达走积示议声报斗完类八离华名确才科张信马节话米整空元况今集温传土许步群广石记需段研界拉林律叫且究观越织装影算低持音众书布复容儿须际商非验连断深难近矿千周委素技备半办青省列习响约支般史感劳便团往酸历市克何除消构府称太准精值号率族维划选标写存候毛亲快效斯院查江型眼王按格养易置派层片始却专状育厂京识适属圆包火住调满县局照参红细引听该铁价严龙飞",Ie;switch(arguments.length){case 0:_e=xe,Ie=1;break;case 1:typeof arguments[0]=="string"?Ie=1:(Ie=_e,_e=xe);break;case 2:typeof arguments[0]=="string"?Ie=Ce:(Ie=this.natural(_e,Ce),_e=xe);break;case 3:Ie=this.natural(Ce,$e);break}for(var Ne="",Fe=0;Fe<Ie;Fe++)Ne+=_e.charAt(this.natural(0,_e.length-1));return Ne},title:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.capitalize(this.word()));return xe.join(" ")},ctitle:function(_e,Ce){for(var $e=pe(3,7,_e,Ce),xe=[],Ie=0;Ie<$e;Ie++)xe.push(this.cword());return xe.join("")}}},function($,oe,ae){var ie=ae(3);$.exports={capitalize:function(le){return(le+"").charAt(0).toUpperCase()+(le+"").substr(1)},upper:function(le){return(le+"").toUpperCase()},lower:function(le){return(le+"").toLowerCase()},pick:function(pe,_e,Ce){return ie.isArray(pe)?(_e===void 0&&(_e=1),Ce===void 0&&(Ce=_e)):(pe=[].slice.call(arguments),_e=1,Ce=1),_e===1&&Ce===1?pe[this.natural(0,pe.length-1)]:this.shuffle(pe,_e,Ce)},shuffle:function(pe,_e,Ce){pe=pe||[];for(var $e=pe.slice(0),xe=[],Ie=0,Ne=$e.length,Fe=0;Fe<Ne;Fe++)Ie=this.natural(0,$e.length-1),xe.push($e[Ie]),$e.splice(Ie,1);switch(arguments.length){case 0:case 1:return xe;case 2:Ce=_e;case 3:return _e=parseInt(_e,10),Ce=parseInt(Ce,10),xe.slice(0,this.natural(_e,Ce))}},order:function le(pe){le.cache=le.cache||{},arguments.length>1&&(pe=[].slice.call(arguments,0));var _e=le.options,Ce=_e.context.templatePath.join("."),$e=le.cache[Ce]=le.cache[Ce]||{index:0,array:pe};return $e.array[$e.index++%$e.array.length]}}},function($,oe){$.exports={first:function(){var ae=["James","John","Robert","Michael","William","David","Richard","Charles","Joseph","Thomas","Christopher","Daniel","Paul","Mark","Donald","George","Kenneth","Steven","Edward","Brian","Ronald","Anthony","Kevin","Jason","Matthew","Gary","Timothy","Jose","Larry","Jeffrey","Frank","Scott","Eric"].concat(["Mary","Patricia","Linda","Barbara","Elizabeth","Jennifer","Maria","Susan","Margaret","Dorothy","Lisa","Nancy","Karen","Betty","Helen","Sandra","Donna","Carol","Ruth","Sharon","Michelle","Laura","Sarah","Kimberly","Deborah","Jessica","Shirley","Cynthia","Angela","Melissa","Brenda","Amy","Anna"]);return this.pick(ae)},last:function(){var ae=["Smith","Johnson","Williams","Brown","Jones","Miller","Davis","Garcia","Rodriguez","Wilson","Martinez","Anderson","Taylor","Thomas","Hernandez","Moore","Martin","Jackson","Thompson","White","Lopez","Lee","Gonzalez","Harris","Clark","Lewis","Robinson","Walker","Perez","Hall","Young","Allen"];return this.pick(ae)},name:function(ae){return this.first()+" "+(ae?this.first()+" ":"")+this.last()},cfirst:function(){var ae="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick(ae)},clast:function(){var ae="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick(ae)},cname:function(){return this.cfirst()+this.clast()}}},function($,oe){$.exports={url:function(ae,ie){return(ae||this.protocol())+"://"+(ie||this.domain())+"/"+this.word()},protocol:function(){return this.pick("http ftp gopher mailto mid cid news nntp prospero telnet rlogin tn3270 wais".split(" "))},domain:function(ae){return this.word()+"."+(ae||this.tld())},tld:function(){return this.pick("com net org edu gov int mil cn com.cn net.cn gov.cn org.cn 中国 中国互联.公司 中国互联.网络 tel biz cc tv info name hk mobi asia cd travel pro museum coop aero ad ae af ag ai al am an ao aq ar as at au aw az ba bb bd be bf bg bh bi bj bm bn bo br bs bt bv bw by bz ca cc cf cg ch ci ck cl cm cn co cq cr cu cv cx cy cz de dj dk dm do dz ec ee eg eh es et ev fi fj fk fm fo fr ga gb gd ge gf gh gi gl gm gn gp gr gt gu gw gy hk hm hn hr ht hu id ie il in io iq ir is it jm jo jp ke kg kh ki km kn kp kr kw ky kz la lb lc li lk lr ls lt lu lv ly ma mc md mg mh ml mm mn mo mp mq mr ms mt mv mw mx my mz na nc ne nf ng ni nl no np nr nt nu nz om qa pa pe pf pg ph pk pl pm pn pr pt pw py re ro ru rw sa sb sc sd se sg sh si sj sk sl sm sn so sr st su sy sz tc td tf tg th tj tk tm tn to tp tr tt tv tw tz ua ug uk us uy va vc ve vg vn vu wf ws ye yu za zm zr zw".split(" "))},email:function(ae){return this.character("lower")+"."+this.word()+"@"+(ae||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function($,oe,ae){var ie=ae(18),le=["东北","华北","华东","华中","华南","西南","西北"];$.exports={region:function(){return this.pick(le)},province:function(){return this.pick(ie).name},city:function(pe){var _e=this.pick(ie),Ce=this.pick(_e.children);return pe?[_e.name,Ce.name].join(" "):Ce.name},county:function(pe){var _e=this.pick(ie),Ce=this.pick(_e.children),$e=this.pick(Ce.children)||{name:"-"};return pe?[_e.name,Ce.name,$e.name].join(" "):$e.name},zip:function(pe){for(var _e="",Ce=0;Ce<(pe||6);Ce++)_e+=this.natural(0,9);return _e}}},function($,oe){var ae={11e4:"北京",110100:"北京市",110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110228:"密云县",110229:"延庆县",110230:"其它区",12e4:"天津",120100:"天津市",120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120221:"宁河县",120223:"静海县",120225:"蓟县",120226:"其它区",13e4:"河北省",130100:"石家庄市",130102:"长安区",130103:"桥东区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130121:"井陉县",130123:"正定县",130124:"栾城县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130181:"辛集市",130182:"藁城市",130183:"晋州市",130184:"新乐市",130185:"鹿泉市",130186:"其它区",130200:"唐山市",130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130230:"曹妃甸区",130281:"遵化市",130283:"迁安市",130284:"其它区",130300:"秦皇岛市",130302:"海港区",130303:"山海关区",130304:"北戴河区",130321:"青龙满族自治县",130322:"昌黎县",130323:"抚宁县",130324:"卢龙县",130398:"其它区",130400:"邯郸市",130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市",130482:"其它区",130500:"邢台市",130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市",130583:"其它区",130600:"保定市",130602:"新市区",130603:"北市区",130604:"南市区",130621:"满城县",130622:"清苑县",130623:"涞水县",130624:"阜平县",130625:"徐水县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130682:"定州市",130683:"安国市",130684:"高碑店市",130699:"其它区",130700:"张家口市",130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130721:"宣化县",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130729:"万全县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县",130733:"崇礼县",130734:"其它区",130800:"承德市",130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县",130829:"其它区",130900:"沧州市",130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市",130985:"其它区",131e3:"廊坊市",131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市",131083:"其它区",131100:"衡水市",131102:"桃城区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131181:"冀州市",131182:"深州市",131183:"其它区",14e4:"山西省",140100:"太原市",140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市",140182:"其它区",140200:"大同市",140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县",140228:"其它区",140300:"阳泉市",140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县",140323:"其它区",140400:"长治市",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市",140482:"城区",140483:"郊区",140485:"其它区",140500:"晋城市",140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市",140582:"其它区",140600:"朔州市",140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县",140625:"其它区",140700:"晋中市",140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市",140782:"其它区",140800:"运城市",140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市",140883:"其它区",140900:"忻州市",140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市",140982:"其它区",141e3:"临汾市",141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市",141083:"其它区",141100:"吕梁市",141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市",141183:"其它区",15e4:"内蒙古自治区",150100:"呼和浩特市",150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县",150126:"其它区",150200:"包头市",150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗",150224:"其它区",150300:"乌海市",150302:"海勃湾区",150303:"海南区",150304:"乌达区",150305:"其它区",150400:"赤峰市",150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗",150431:"其它区",150500:"通辽市",150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市",150582:"其它区",150600:"鄂尔多斯市",150602:"东胜区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗",150628:"其它区",150700:"呼伦贝尔市",150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市",150786:"其它区",150800:"巴彦淖尔市",150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗",150827:"其它区",150900:"乌兰察布市",150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市",150982:"其它区",152200:"兴安盟",152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县",152225:"其它区",152500:"锡林郭勒盟",152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县",152532:"其它区",152900:"阿拉善盟",152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗",152924:"其它区",21e4:"辽宁省",210100:"沈阳市",210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"东陵区",210113:"新城子区",210114:"于洪区",210122:"辽中县",210123:"康平县",210124:"法库县",210181:"新民市",210184:"沈北新区",210185:"其它区",210200:"大连市",210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210224:"长海县",210281:"瓦房店市",210282:"普兰店市",210283:"庄河市",210298:"其它区",210300:"鞍山市",210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市",210382:"其它区",210400:"抚顺市",210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县",210424:"其它区",210500:"本溪市",210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县",210523:"其它区",210600:"丹东市",210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市",210683:"其它区",210700:"锦州市",210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市",210783:"其它区",210800:"营口市",210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市",210883:"其它区",210900:"阜新市",210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县",210923:"其它区",211e3:"辽阳市",211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市",211082:"其它区",211100:"盘锦市",211102:"双台子区",211103:"兴隆台区",211121:"大洼县",211122:"盘山县",211123:"其它区",211200:"铁岭市",211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市",211283:"其它区",211300:"朝阳市",211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市",211383:"其它区",211400:"葫芦岛市",211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市",211482:"其它区",22e4:"吉林省",220100:"长春市",220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220122:"农安县",220181:"九台市",220182:"榆树市",220183:"德惠市",220188:"其它区",220200:"吉林市",220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市",220285:"其它区",220300:"四平市",220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市",220383:"其它区",220400:"辽源市",220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县",220423:"其它区",220500:"通化市",220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市",220583:"其它区",220600:"白山市",220602:"浑江区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220625:"江源区",220681:"临江市",220682:"其它区",220700:"松原市",220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220724:"扶余市",220725:"其它区",220800:"白城市",220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市",220883:"其它区",222400:"延边朝鲜族自治州",222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县",222427:"其它区",23e4:"黑龙江省",230100:"哈尔滨市",230102:"道里区",230103:"南岗区",230104:"道外区",230106:"香坊区",230108:"平房区",230109:"松北区",230111:"呼兰区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230181:"阿城区",230182:"双城市",230183:"尚志市",230184:"五常市",230186:"其它区",230200:"齐齐哈尔市",230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市",230282:"其它区",230300:"鸡西市",230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市",230383:"其它区",230400:"鹤岗市",230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县",230423:"其它区",230500:"双鸭山市",230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县",230525:"其它区",230600:"大庆市",230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县",230625:"其它区",230700:"伊春市",230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市",230782:"其它区",230800:"佳木斯市",230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230833:"抚远县",230881:"同江市",230882:"富锦市",230883:"其它区",230900:"七台河市",230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县",230922:"其它区",231e3:"牡丹江市",231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231024:"东宁县",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"其它区",231100:"黑河市",231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市",231183:"其它区",231200:"绥化市",231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市",231284:"其它区",232700:"大兴安岭地区",232702:"松岭区",232703:"新林区",232704:"呼中区",232721:"呼玛县",232722:"塔河县",232723:"漠河县",232724:"加格达奇区",232725:"其它区",31e4:"上海",310100:"上海市",310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310108:"闸北区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310230:"崇明县",310231:"其它区",32e4:"江苏省",320100:"南京市",320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320124:"溧水区",320125:"高淳区",320126:"其它区",320200:"无锡市",320202:"崇安区",320203:"南长区",320204:"北塘区",320205:"锡山区",320206:"惠山区",320211:"滨湖区",320281:"江阴市",320282:"宜兴市",320297:"其它区",320300:"徐州市",320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320321:"丰县",320322:"沛县",320323:"铜山区",320324:"睢宁县",320381:"新沂市",320382:"邳州市",320383:"其它区",320400:"常州市",320402:"天宁区",320404:"钟楼区",320405:"戚墅堰区",320411:"新北区",320412:"武进区",320481:"溧阳市",320482:"金坛市",320483:"其它区",320500:"苏州市",320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320584:"吴江区",320585:"太仓市",320596:"其它区",320600:"南通市",320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市",320694:"其它区",320700:"连云港市",320703:"连云区",320705:"新浦区",320706:"海州区",320721:"赣榆县",320722:"东海县",320723:"灌云县",320724:"灌南县",320725:"其它区",320800:"淮安市",320802:"清河区",320803:"淮安区",320804:"淮阴区",320811:"清浦区",320826:"涟水县",320829:"洪泽县",320830:"盱眙县",320831:"金湖县",320832:"其它区",320900:"盐城市",320902:"亭湖区",320903:"盐都区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市",320982:"大丰市",320983:"其它区",321e3:"扬州市",321002:"广陵区",321003:"邗江区",321023:"宝应县",321081:"仪征市",321084:"高邮市",321088:"江都区",321093:"其它区",321100:"镇江市",321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市",321184:"其它区",321200:"泰州市",321202:"海陵区",321203:"高港区",321281:"兴化市",321282:"靖江市",321283:"泰兴市",321284:"姜堰区",321285:"其它区",321300:"宿迁市",321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县",321325:"其它区",33e4:"浙江省",330100:"杭州市",330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330183:"富阳市",330185:"临安市",330186:"其它区",330200:"宁波市",330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市",330284:"其它区",330300:"温州市",330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330322:"洞头县",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市",330383:"其它区",330400:"嘉兴市",330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市",330484:"其它区",330500:"湖州市",330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县",330524:"其它区",330600:"绍兴市",330602:"越城区",330621:"绍兴县",330624:"新昌县",330681:"诸暨市",330682:"上虞市",330683:"嵊州市",330684:"其它区",330700:"金华市",330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市",330785:"其它区",330800:"衢州市",330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市",330882:"其它区",330900:"舟山市",330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县",330923:"其它区",331e3:"台州市",331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市",331083:"其它区",331100:"丽水市",331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市",331182:"其它区",34e4:"安徽省",340100:"合肥市",340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340192:"其它区",340200:"芜湖市",340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340224:"其它区",340300:"蚌埠市",340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县",340324:"其它区",340400:"淮南市",340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"其它区",340500:"马鞍山市",340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"其它区",340600:"淮北市",340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县",340622:"其它区",340700:"铜陵市",340702:"铜官山区",340703:"狮子山区",340711:"郊区",340721:"铜陵县",340722:"其它区",340800:"安庆市",340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340823:"枞阳县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市",340882:"其它区",341e3:"黄山市",341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县",341025:"其它区",341100:"滁州市",341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市",341183:"其它区",341200:"阜阳市",341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市",341283:"其它区",341300:"宿州市",341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县",341325:"其它区",341400:"巢湖市",341421:"庐江县",341422:"无为县",341423:"含山县",341424:"和县",341500:"六安市",341502:"金安区",341503:"裕安区",341521:"寿县",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县",341526:"其它区",341600:"亳州市",341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县",341624:"其它区",341700:"池州市",341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县",341724:"其它区",341800:"宣城市",341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市",341882:"其它区",35e4:"福建省",350100:"福州市",350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市",350183:"其它区",350200:"厦门市",350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区",350214:"其它区",350300:"莆田市",350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县",350323:"其它区",350400:"三明市",350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市",350482:"其它区",350500:"泉州市",350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市",350584:"其它区",350600:"漳州市",350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市",350682:"其它区",350700:"南平市",350702:"延平区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市",350784:"建阳市",350785:"其它区",350800:"龙岩市",350802:"新罗区",350821:"长汀县",350822:"永定县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市",350882:"其它区",350900:"宁德市",350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市",350983:"其它区",36e4:"江西省",360100:"南昌市",360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360121:"南昌县",360122:"新建县",360123:"安义县",360124:"进贤县",360128:"其它区",360200:"景德镇市",360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市",360282:"其它区",360300:"萍乡市",360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县",360324:"其它区",360400:"九江市",360402:"庐山区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360427:"星子县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"其它区",360483:"共青城市",360500:"新余市",360502:"渝水区",360521:"分宜县",360522:"其它区",360600:"鹰潭市",360602:"月湖区",360622:"余江县",360681:"贵溪市",360682:"其它区",360700:"赣州市",360702:"章贡区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市",360782:"南康市",360783:"其它区",360800:"吉安市",360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市",360882:"其它区",360900:"宜春市",360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市",360984:"其它区",361e3:"抚州市",361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县",361031:"其它区",361100:"上饶市",361102:"信州区",361121:"上饶县",361122:"广丰县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市",361182:"其它区",37e4:"山东省",370100:"济南市",370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市",370182:"其它区",370200:"青岛市",370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市",370286:"其它区",370300:"淄博市",370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县",370324:"其它区",370400:"枣庄市",370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市",370482:"其它区",370500:"东营市",370502:"东营区",370503:"河口区",370521:"垦利县",370522:"利津县",370523:"广饶县",370591:"其它区",370600:"烟台市",370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市",370688:"其它区",370700:"潍坊市",370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市",370787:"其它区",370800:"济宁市",370802:"市中区",370811:"任城区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370882:"兖州市",370883:"邹城市",370884:"其它区",370900:"泰安市",370902:"泰山区",370903:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市",370984:"其它区",371e3:"威海市",371002:"环翠区",371081:"文登市",371082:"荣成市",371083:"乳山市",371084:"其它区",371100:"日照市",371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县",371123:"其它区",371200:"莱芜市",371202:"莱城区",371203:"钢城区",371204:"其它区",371300:"临沂市",371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"苍山县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县",371330:"其它区",371400:"德州市",371402:"德城区",371421:"陵县",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市",371483:"其它区",371500:"聊城市",371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市",371582:"其它区",371600:"滨州市",371602:"滨城区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371624:"沾化县",371625:"博兴县",371626:"邹平县",371627:"其它区",371700:"菏泽市",371702:"牡丹区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371727:"定陶县",371728:"东明县",371729:"其它区",41e4:"河南省",410100:"郑州市",410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市",410188:"其它区",410200:"开封市",410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410221:"杞县",410222:"通许县",410223:"尉氏县",410224:"开封县",410225:"兰考县",410226:"其它区",410300:"洛阳市",410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410307:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市",410400:"平顶山市",410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市",410483:"其它区",410500:"安阳市",410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市",410582:"其它区",410600:"鹤壁市",410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县",410623:"其它区",410700:"新乡市",410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市",410783:"其它区",410800:"焦作市",410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410881:"济源市",410882:"沁阳市",410883:"孟州市",410884:"其它区",410900:"濮阳市",410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县",410929:"其它区",411e3:"许昌市",411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市",411083:"其它区",411100:"漯河市",411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县",411123:"其它区",411200:"三门峡市",411202:"湖滨区",411221:"渑池县",411222:"陕县",411224:"卢氏县",411281:"义马市",411282:"灵宝市",411283:"其它区",411300:"南阳市",411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市",411382:"其它区",411400:"商丘市",411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市",411482:"其它区",411500:"信阳市",411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县",411529:"其它区",411600:"周口市",411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市",411682:"其它区",411700:"驻马店市",411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县",411730:"其它区",42e4:"湖北省",420100:"武汉市",420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区",420118:"其它区",420200:"黄石市",420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市",420282:"其它区",420300:"十堰市",420302:"茅箭区",420303:"张湾区",420321:"郧县",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市",420383:"其它区",420500:"宜昌市",420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市",420584:"其它区",420600:"襄阳市",420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市",420685:"其它区",420700:"鄂州市",420702:"梁子湖区",420703:"华容区",420704:"鄂城区",420705:"其它区",420800:"荆门市",420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市",420882:"其它区",420900:"孝感市",420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市",420985:"其它区",421e3:"荆州市",421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市",421088:"其它区",421100:"黄冈市",421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市",421183:"其它区",421200:"咸宁市",421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市",421283:"其它区",421300:"随州市",421302:"曾都区",421321:"随县",421381:"广水市",421382:"其它区",422800:"恩施土家族苗族自治州",422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县",422829:"其它区",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区",43e4:"湖南省",430100:"长沙市",430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430121:"长沙县",430122:"望城区",430124:"宁乡县",430181:"浏阳市",430182:"其它区",430200:"株洲市",430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市",430282:"其它区",430300:"湘潭市",430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市",430383:"其它区",430400:"衡阳市",430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市",430483:"其它区",430500:"邵阳市",430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市",430582:"其它区",430600:"岳阳市",430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市",430683:"其它区",430700:"常德市",430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市",430782:"其它区",430800:"张家界市",430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县",430823:"其它区",430900:"益阳市",430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市",430982:"其它区",431e3:"郴州市",431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市",431082:"其它区",431100:"永州市",431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县",431130:"其它区",431200:"怀化市",431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市",431282:"其它区",431300:"娄底市",431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市",431383:"其它区",433100:"湘西土家族苗族自治州",433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县",433131:"其它区",44e4:"广东省",440100:"广州市",440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440116:"萝岗区",440183:"增城市",440184:"从化市",440189:"其它区",440200:"韶关市",440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市",440283:"其它区",440300:"深圳市",440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区",440309:"其它区",440320:"光明新区",440321:"坪山新区",440322:"大鹏新区",440323:"龙华新区",440400:"珠海市",440402:"香洲区",440403:"斗门区",440404:"金湾区",440488:"其它区",440500:"汕头市",440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县",440524:"其它区",440600:"佛山市",440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区",440609:"其它区",440700:"江门市",440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市",440786:"其它区",440800:"湛江市",440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市",440884:"其它区",440900:"茂名市",440902:"茂南区",440903:"茂港区",440923:"电白县",440981:"高州市",440982:"化州市",440983:"信宜市",440984:"其它区",441200:"肇庆市",441202:"端州区",441203:"鼎湖区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441283:"高要市",441284:"四会市",441285:"其它区",441300:"惠州市",441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县",441325:"其它区",441400:"梅州市",441402:"梅江区",441421:"梅县",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市",441482:"其它区",441500:"汕尾市",441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市",441582:"其它区",441600:"河源市",441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县",441626:"其它区",441700:"阳江市",441702:"江城区",441721:"阳西县",441723:"阳东县",441781:"阳春市",441782:"其它区",441800:"清远市",441802:"清城区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441827:"清新区",441881:"英德市",441882:"连州市",441883:"其它区",441900:"东莞市",442e3:"中山市",442101:"东沙群岛",445100:"潮州市",445102:"湘桥区",445121:"潮安区",445122:"饶平县",445186:"其它区",445200:"揭阳市",445202:"榕城区",445221:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市",445285:"其它区",445300:"云浮市",445302:"云城区",445321:"新兴县",445322:"郁南县",445323:"云安县",445381:"罗定市",445382:"其它区",45e4:"广西壮族自治区",450100:"南宁市",450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450122:"武鸣县",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县",450128:"其它区",450200:"柳州市",450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450221:"柳江县",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县",450227:"其它区",450300:"桂林市",450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450321:"阳朔县",450322:"临桂区",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县",450333:"其它区",450400:"梧州市",450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市",450482:"其它区",450500:"北海市",450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县",450522:"其它区",450600:"防城港市",450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市",450682:"其它区",450700:"钦州市",450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县",450723:"其它区",450800:"贵港市",450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市",450882:"其它区",450900:"玉林市",450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市",450982:"其它区",451e3:"百色市",451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451025:"靖西县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451032:"其它区",451100:"贺州市",451102:"八步区",451119:"平桂管理区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县",451124:"其它区",451200:"河池市",451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市",451282:"其它区",451300:"来宾市",451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市",451382:"其它区",451400:"崇左市",451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市",451482:"其它区",46e4:"海南省",460100:"海口市",460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区",460109:"其它区",460200:"三亚市",460300:"三沙市",460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域",469001:"五指山市",469002:"琼海市",469003:"儋州市",469005:"文昌市",469006:"万宁市",469007:"东方市",469025:"定安县",469026:"屯昌县",469027:"澄迈县",469028:"临高县",469030:"白沙黎族自治县",469031:"昌江黎族自治县",469033:"乐东黎族自治县",469034:"陵水黎族自治县",469035:"保亭黎族苗族自治县",469036:"琼中黎族苗族自治县",471005:"其它区",5e5:"重庆",500100:"重庆市",500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"万盛区",500111:"双桥区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500222:"綦江区",500223:"潼南县",500224:"铜梁县",500225:"大足区",500226:"荣昌县",500227:"璧山县",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500234:"开县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县",500381:"江津区",500382:"合川区",500383:"永川区",500384:"南川区",500385:"其它区",51e4:"四川省",510100:"成都市",510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510121:"金堂县",510122:"双流县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"其它区",510300:"自贡市",510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县",510323:"其它区",510400:"攀枝花市",510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县",510423:"其它区",510500:"泸州市",510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县",510526:"其它区",510600:"德阳市",510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市",510684:"其它区",510700:"绵阳市",510703:"涪城区",510704:"游仙区",510722:"三台县",510723:"盐亭县",510724:"安县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市",510782:"其它区",510800:"广元市",510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县",510825:"其它区",510900:"遂宁市",510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县",510924:"其它区",511e3:"内江市",511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县",511029:"其它区",511100:"乐山市",511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市",511182:"其它区",511300:"南充市",511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市",511382:"其它区",511400:"眉山市",511402:"东坡区",511421:"仁寿县",511422:"彭山县",511423:"洪雅县",511424:"丹棱县",511425:"青神县",511426:"其它区",511500:"宜宾市",511502:"翠屏区",511521:"宜宾县",511522:"南溪区",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县",511530:"其它区",511600:"广安市",511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市",511683:"其它区",511700:"达州市",511702:"通川区",511721:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市",511782:"其它区",511800:"雅安市",511802:"雨城区",511821:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县",511828:"其它区",511900:"巴中市",511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县",511924:"其它区",512e3:"资阳市",512002:"雁江区",512021:"安岳县",512022:"乐至县",512081:"简阳市",512082:"其它区",513200:"阿坝藏族羌族自治州",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513229:"马尔康县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县",513234:"其它区",513300:"甘孜藏族自治州",513321:"康定县",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县",513339:"其它区",513400:"凉山彝族自治州",513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县",513438:"其它区",52e4:"贵州省",520100:"贵阳市",520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520121:"开阳县",520122:"息烽县",520123:"修文县",520151:"观山湖区",520181:"清镇市",520182:"其它区",520200:"六盘水市",520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县",520223:"其它区",520300:"遵义市",520302:"红花岗区",520303:"汇川区",520321:"遵义县",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市",520383:"其它区",520400:"安顺市",520402:"西秀区",520421:"平坝县",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县",520426:"其它区",522200:"铜仁市",522201:"碧江区",522222:"江口县",522223:"玉屏侗族自治县",522224:"石阡县",522225:"思南县",522226:"印江土家族苗族自治县",522227:"德江县",522228:"沿河土家族自治县",522229:"松桃苗族自治县",522230:"万山区",522231:"其它区",522300:"黔西南布依族苗族自治州",522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县",522329:"其它区",522400:"毕节市",522401:"七星关区",522422:"大方县",522423:"黔西县",522424:"金沙县",522425:"织金县",522426:"纳雍县",522427:"威宁彝族回族苗族自治县",522428:"赫章县",522429:"其它区",522600:"黔东南苗族侗族自治州",522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县",522637:"其它区",522700:"黔南布依族苗族自治州",522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县",522733:"其它区",53e4:"云南省",530100:"昆明市",530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530121:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市",530182:"其它区",530300:"曲靖市",530302:"麒麟区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530328:"沾益县",530381:"宣威市",530382:"其它区",530400:"玉溪市",530402:"红塔区",530421:"江川县",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县",530429:"其它区",530500:"保山市",530502:"隆阳区",530521:"施甸县",530522:"腾冲县",530523:"龙陵县",530524:"昌宁县",530525:"其它区",530600:"昭通市",530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县",530631:"其它区",530700:"丽江市",530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县",530725:"其它区",530800:"普洱市",530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县",530830:"其它区",530900:"临沧市",530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县",530928:"其它区",532300:"楚雄彝族自治州",532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县",532332:"其它区",532500:"红河哈尼族彝族自治州",532501:"个旧市",532502:"开远市",532522:"蒙自市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532526:"弥勒市",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县",532533:"其它区",532600:"文山壮族苗族自治州",532621:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县",532629:"其它区",532800:"西双版纳傣族自治州",532801:"景洪市",532822:"勐海县",532823:"勐腊县",532824:"其它区",532900:"大理白族自治州",532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县",532933:"其它区",533100:"德宏傣族景颇族自治州",533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县",533125:"其它区",533300:"怒江傈僳族自治州",533321:"泸水县",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县",533326:"其它区",533400:"迪庆藏族自治州",533421:"香格里拉县",533422:"德钦县",533423:"维西傈僳族自治县",533424:"其它区",54e4:"西藏自治区",540100:"拉萨市",540102:"城关区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540125:"堆龙德庆县",540126:"达孜县",540127:"墨竹工卡县",540128:"其它区",542100:"昌都地区",542121:"昌都县",542122:"江达县",542123:"贡觉县",542124:"类乌齐县",542125:"丁青县",542126:"察雅县",542127:"八宿县",542128:"左贡县",542129:"芒康县",542132:"洛隆县",542133:"边坝县",542134:"其它区",542200:"山南地区",542221:"乃东县",542222:"扎囊县",542223:"贡嘎县",542224:"桑日县",542225:"琼结县",542226:"曲松县",542227:"措美县",542228:"洛扎县",542229:"加查县",542231:"隆子县",542232:"错那县",542233:"浪卡子县",542234:"其它区",542300:"日喀则地区",542301:"日喀则市",542322:"南木林县",542323:"江孜县",542324:"定日县",542325:"萨迦县",542326:"拉孜县",542327:"昂仁县",542328:"谢通门县",542329:"白朗县",542330:"仁布县",542331:"康马县",542332:"定结县",542333:"仲巴县",542334:"亚东县",542335:"吉隆县",542336:"聂拉木县",542337:"萨嘎县",542338:"岗巴县",542339:"其它区",542400:"那曲地区",542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"其它区",542432:"双湖县",542500:"阿里地区",542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县",542528:"其它区",542600:"林芝地区",542621:"林芝县",542622:"工布江达县",542623:"米林县",542624:"墨脱县",542625:"波密县",542626:"察隅县",542627:"朗县",542628:"其它区",61e4:"陕西省",610100:"西安市",610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610122:"蓝田县",610124:"周至县",610125:"户县",610126:"高陵县",610127:"其它区",610200:"铜川市",610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县",610223:"其它区",610300:"宝鸡市",610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县",610332:"其它区",610400:"咸阳市",610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市",610482:"其它区",610500:"渭南市",610502:"临渭区",610521:"华县",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市",610583:"其它区",610600:"延安市",610602:"宝塔区",610621:"延长县",610622:"延川县",610623:"子长县",610624:"安塞县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县",610633:"其它区",610700:"汉中市",610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县",610731:"其它区",610800:"榆林市",610802:"榆阳区",610821:"神木县",610822:"府谷县",610823:"横山县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县",610832:"其它区",610900:"安康市",610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县",610930:"其它区",611e3:"商洛市",611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县",611027:"其它区",62e4:"甘肃省",620100:"兰州市",620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县",620124:"其它区",620200:"嘉峪关市",620300:"金昌市",620302:"金川区",620321:"永昌县",620322:"其它区",620400:"白银市",620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县",620424:"其它区",620500:"天水市",620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县",620526:"其它区",620600:"武威市",620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县",620624:"其它区",620700:"张掖市",620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县",620726:"其它区",620800:"平凉市",620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县",620827:"其它区",620900:"酒泉市",620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市",620983:"其它区",621e3:"庆阳市",621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县",621028:"其它区",621100:"定西市",621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县",621127:"其它区",621200:"陇南市",621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县",621229:"其它区",622900:"临夏回族自治州",622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县",622928:"其它区",623e3:"甘南藏族自治州",623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县",623028:"其它区",63e4:"青海省",630100:"西宁市",630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县",630124:"其它区",632100:"海东市",632121:"平安县",632122:"民和回族土族自治县",632123:"乐都区",632126:"互助土族自治县",632127:"化隆回族自治县",632128:"循化撒拉族自治县",632129:"其它区",632200:"海北藏族自治州",632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县",632225:"其它区",632300:"黄南藏族自治州",632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县",632325:"其它区",632500:"海南藏族自治州",632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县",632526:"其它区",632600:"果洛藏族自治州",632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县",632627:"其它区",632700:"玉树藏族自治州",632721:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县",632727:"其它区",632800:"海西蒙古族藏族自治州",632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县",632824:"其它区",64e4:"宁夏回族自治区",640100:"银川市",640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市",640182:"其它区",640200:"石嘴山市",640202:"大武口区",640205:"惠农区",640221:"平罗县",640222:"其它区",640300:"吴忠市",640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市",640382:"其它区",640400:"固原市",640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县",640426:"其它区",640500:"中卫市",640502:"沙坡头区",640521:"中宁县",640522:"海原县",640523:"其它区",65e4:"新疆维吾尔自治区",650100:"乌鲁木齐市",650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县",650122:"其它区",650200:"克拉玛依市",650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区",650206:"其它区",652100:"吐鲁番地区",652101:"吐鲁番市",652122:"鄯善县",652123:"托克逊县",652124:"其它区",652200:"哈密地区",652201:"哈密市",652222:"巴里坤哈萨克自治县",652223:"伊吾县",652224:"其它区",652300:"昌吉回族自治州",652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县",652329:"其它区",652700:"博尔塔拉蒙古自治州",652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县",652724:"其它区",652800:"巴音郭楞蒙古自治州",652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县",652830:"其它区",652900:"阿克苏地区",652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县",652930:"其它区",653e3:"克孜勒苏柯尔克孜自治州",653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县",653025:"其它区",653100:"喀什地区",653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县",653132:"其它区",653200:"和田地区",653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县",653228:"其它区",654e3:"伊犁哈萨克自治州",654002:"伊宁市",654003:"奎屯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县",654029:"其它区",654200:"塔城地区",654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县",654227:"其它区",654300:"阿勒泰地区",654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县",654327:"其它区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",71e4:"台湾",710100:"台北市",710101:"中正区",710102:"大同区",710103:"中山区",710104:"松山区",710105:"大安区",710106:"万华区",710107:"信义区",710108:"士林区",710109:"北投区",710110:"内湖区",710111:"南港区",710112:"文山区",710113:"其它区",710200:"高雄市",710201:"新兴区",710202:"前金区",710203:"芩雅区",710204:"盐埕区",710205:"鼓山区",710206:"旗津区",710207:"前镇区",710208:"三民区",710209:"左营区",710210:"楠梓区",710211:"小港区",710212:"其它区",710241:"苓雅区",710242:"仁武区",710243:"大社区",710244:"冈山区",710245:"路竹区",710246:"阿莲区",710247:"田寮区",710248:"燕巢区",710249:"桥头区",710250:"梓官区",710251:"弥陀区",710252:"永安区",710253:"湖内区",710254:"凤山区",710255:"大寮区",710256:"林园区",710257:"鸟松区",710258:"大树区",710259:"旗山区",710260:"美浓区",710261:"六龟区",710262:"内门区",710263:"杉林区",710264:"甲仙区",710265:"桃源区",710266:"那玛夏区",710267:"茂林区",710268:"茄萣区",710300:"台南市",710301:"中西区",710302:"东区",710303:"南区",710304:"北区",710305:"安平区",710306:"安南区",710307:"其它区",710339:"永康区",710340:"归仁区",710341:"新化区",710342:"左镇区",710343:"玉井区",710344:"楠西区",710345:"南化区",710346:"仁德区",710347:"关庙区",710348:"龙崎区",710349:"官田区",710350:"麻豆区",710351:"佳里区",710352:"西港区",710353:"七股区",710354:"将军区",710355:"学甲区",710356:"北门区",710357:"新营区",710358:"后壁区",710359:"白河区",710360:"东山区",710361:"六甲区",710362:"下营区",710363:"柳营区",710364:"盐水区",710365:"善化区",710366:"大内区",710367:"山上区",710368:"新市区",710369:"安定区",710400:"台中市",710401:"中区",710402:"东区",710403:"南区",710404:"西区",710405:"北区",710406:"北屯区",710407:"西屯区",710408:"南屯区",710409:"其它区",710431:"太平区",710432:"大里区",710433:"雾峰区",710434:"乌日区",710435:"丰原区",710436:"后里区",710437:"石冈区",710438:"东势区",710439:"和平区",710440:"新社区",710441:"潭子区",710442:"大雅区",710443:"神冈区",710444:"大肚区",710445:"沙鹿区",710446:"龙井区",710447:"梧栖区",710448:"清水区",710449:"大甲区",710450:"外埔区",710451:"大安区",710500:"金门县",710507:"金沙镇",710508:"金湖镇",710509:"金宁乡",710510:"金城镇",710511:"烈屿乡",710512:"乌坵乡",710600:"南投县",710614:"南投市",710615:"中寮乡",710616:"草屯镇",710617:"国姓乡",710618:"埔里镇",710619:"仁爱乡",710620:"名间乡",710621:"集集镇",710622:"水里乡",710623:"鱼池乡",710624:"信义乡",710625:"竹山镇",710626:"鹿谷乡",710700:"基隆市",710701:"仁爱区",710702:"信义区",710703:"中正区",710704:"中山区",710705:"安乐区",710706:"暖暖区",710707:"七堵区",710708:"其它区",710800:"新竹市",710801:"东区",710802:"北区",710803:"香山区",710804:"其它区",710900:"嘉义市",710901:"东区",710902:"西区",710903:"其它区",711100:"新北市",711130:"万里区",711131:"金山区",711132:"板桥区",711133:"汐止区",711134:"深坑区",711135:"石碇区",711136:"瑞芳区",711137:"平溪区",711138:"双溪区",711139:"贡寮区",711140:"新店区",711141:"坪林区",711142:"乌来区",711143:"永和区",711144:"中和区",711145:"土城区",711146:"三峡区",711147:"树林区",711148:"莺歌区",711149:"三重区",711150:"新庄区",711151:"泰山区",711152:"林口区",711153:"芦洲区",711154:"五股区",711155:"八里区",711156:"淡水区",711157:"三芝区",711158:"石门区",711200:"宜兰县",711214:"宜兰市",711215:"头城镇",711216:"礁溪乡",711217:"壮围乡",711218:"员山乡",711219:"罗东镇",711220:"三星乡",711221:"大同乡",711222:"五结乡",711223:"冬山乡",711224:"苏澳镇",711225:"南澳乡",711226:"钓鱼台",711300:"新竹县",711314:"竹北市",711315:"湖口乡",711316:"新丰乡",711317:"新埔镇",711318:"关西镇",711319:"芎林乡",711320:"宝山乡",711321:"竹东镇",711322:"五峰乡",711323:"横山乡",711324:"尖石乡",711325:"北埔乡",711326:"峨眉乡",711400:"桃园县",711414:"中坜市",711415:"平镇市",711416:"龙潭乡",711417:"杨梅市",711418:"新屋乡",711419:"观音乡",711420:"桃园市",711421:"龟山乡",711422:"八德市",711423:"大溪镇",711424:"复兴乡",711425:"大园乡",711426:"芦竹乡",711500:"苗栗县",711519:"竹南镇",711520:"头份镇",711521:"三湾乡",711522:"南庄乡",711523:"狮潭乡",711524:"后龙镇",711525:"通霄镇",711526:"苑里镇",711527:"苗栗市",711528:"造桥乡",711529:"头屋乡",711530:"公馆乡",711531:"大湖乡",711532:"泰安乡",711533:"铜锣乡",711534:"三义乡",711535:"西湖乡",711536:"卓兰镇",711700:"彰化县",711727:"彰化市",711728:"芬园乡",711729:"花坛乡",711730:"秀水乡",711731:"鹿港镇",711732:"福兴乡",711733:"线西乡",711734:"和美镇",711735:"伸港乡",711736:"员林镇",711737:"社头乡",711738:"永靖乡",711739:"埔心乡",711740:"溪湖镇",711741:"大村乡",711742:"埔盐乡",711743:"田中镇",711744:"北斗镇",711745:"田尾乡",711746:"埤头乡",711747:"溪州乡",711748:"竹塘乡",711749:"二林镇",711750:"大城乡",711751:"芳苑乡",711752:"二水乡",711900:"嘉义县",711919:"番路乡",711920:"梅山乡",711921:"竹崎乡",711922:"阿里山乡",711923:"中埔乡",711924:"大埔乡",711925:"水上乡",711926:"鹿草乡",711927:"太保市",711928:"朴子市",711929:"东石乡",711930:"六脚乡",711931:"新港乡",711932:"民雄乡",711933:"大林镇",711934:"溪口乡",711935:"义竹乡",711936:"布袋镇",712100:"云林县",712121:"斗南镇",712122:"大埤乡",712123:"虎尾镇",712124:"土库镇",712125:"褒忠乡",712126:"东势乡",712127:"台西乡",712128:"仑背乡",712129:"麦寮乡",712130:"斗六市",712131:"林内乡",712132:"古坑乡",712133:"莿桐乡",712134:"西螺镇",712135:"二仑乡",712136:"北港镇",712137:"水林乡",712138:"口湖乡",712139:"四湖乡",712140:"元长乡",712400:"屏东县",712434:"屏东市",712435:"三地门乡",712436:"雾台乡",712437:"玛家乡",712438:"九如乡",712439:"里港乡",712440:"高树乡",712441:"盐埔乡",712442:"长治乡",712443:"麟洛乡",712444:"竹田乡",712445:"内埔乡",712446:"万丹乡",712447:"潮州镇",712448:"泰武乡",712449:"来义乡",712450:"万峦乡",712451:"崁顶乡",712452:"新埤乡",712453:"南州乡",712454:"林边乡",712455:"东港镇",712456:"琉球乡",712457:"佳冬乡",712458:"新园乡",712459:"枋寮乡",712460:"枋山乡",712461:"春日乡",712462:"狮子乡",712463:"车城乡",712464:"牡丹乡",712465:"恒春镇",712466:"满州乡",712500:"台东县",712517:"台东市",712518:"绿岛乡",712519:"兰屿乡",712520:"延平乡",712521:"卑南乡",712522:"鹿野乡",712523:"关山镇",712524:"海端乡",712525:"池上乡",712526:"东河乡",712527:"成功镇",712528:"长滨乡",712529:"金峰乡",712530:"大武乡",712531:"达仁乡",712532:"太麻里乡",712600:"花莲县",712615:"花莲市",712616:"新城乡",712617:"太鲁阁",712618:"秀林乡",712619:"吉安乡",712620:"寿丰乡",712621:"凤林镇",712622:"光复乡",712623:"丰滨乡",712624:"瑞穗乡",712625:"万荣乡",712626:"玉里镇",712627:"卓溪乡",712628:"富里乡",712700:"澎湖县",712707:"马公市",712708:"西屿乡",712709:"望安乡",712710:"七美乡",712711:"白沙乡",712712:"湖西乡",712800:"连江县",712805:"南竿乡",712806:"北竿乡",712807:"莒光乡",712808:"东引乡",81e4:"香港特别行政区",810100:"香港岛",810101:"中西区",810102:"湾仔",810103:"东区",810104:"南区",810200:"九龙",810201:"九龙城区",810202:"油尖旺区",810203:"深水埗区",810204:"黄大仙区",810205:"观塘区",810300:"新界",810301:"北区",810302:"大埔区",810303:"沙田区",810304:"西贡区",810305:"元朗区",810306:"屯门区",810307:"荃湾区",810308:"葵青区",810309:"离岛区",82e4:"澳门特别行政区",820100:"澳门半岛",820200:"离岛",99e4:"海外",990100:"海外"};function ie(pe){for(var _e={},Ce=0,$e;Ce<pe.length;Ce++)$e=pe[Ce],!(!$e||!$e.id)&&(_e[$e.id]=$e);for(var xe=[],Ie=0;Ie<pe.length;Ie++)if($e=pe[Ie],!!$e){if($e.pid==null&&$e.parentId==null){xe.push($e);continue}var Ne=_e[$e.pid]||_e[$e.parentId];Ne&&(Ne.children||(Ne.children=[]),Ne.children.push($e))}return xe}var le=function(){var pe=[];for(var _e in ae){var Ce=_e.slice(2,6)==="0000"?void 0:_e.slice(4,6)=="00"?_e.slice(0,2)+"0000":_e.slice(0,4)+"00";pe.push({id:_e,pid:Ce,name:ae[_e]})}return ie(pe)}();$.exports=le},function($,oe,ae){var ie=ae(18);$.exports={d4:function(){return this.natural(1,4)},d6:function(){return this.natural(1,6)},d8:function(){return this.natural(1,8)},d12:function(){return this.natural(1,12)},d20:function(){return this.natural(1,20)},d100:function(){return this.natural(1,100)},guid:function(){var le="abcdefABCDEF1234567890",pe=this.string(le,8)+"-"+this.string(le,4)+"-"+this.string(le,4)+"-"+this.string(le,4)+"-"+this.string(le,12);return pe},uuid:function(){return this.guid()},id:function(){var le,pe=0,_e=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],Ce=["1","0","X","9","8","7","6","5","4","3","2"];le=this.pick(ie).id+this.date("yyyyMMdd")+this.string("number",3);for(var $e=0;$e<le.length;$e++)pe+=le[$e]*_e[$e];return le+=Ce[pe%11],le},increment:function(){var le=0;return function(pe){return le+=+pe||1}}(),inc:function(le){return this.increment(le)}}},function($,oe,ae){var ie=ae(21),le=ae(22);$.exports={Parser:ie,Handler:le}},function($,oe){function ae(Cn){this.type=Cn,this.offset=ae.offset(),this.text=ae.text()}function ie(Cn,En){ae.call(this,"alternate"),this.left=Cn,this.right=En}function le(Cn){ae.call(this,"match"),this.body=Cn.filter(Boolean)}function pe(Cn,En){ae.call(this,Cn),this.body=En}function _e(Cn){pe.call(this,"capture-group"),this.index=bn[this.offset]||(bn[this.offset]=_n++),this.body=Cn}function Ce(Cn,En){ae.call(this,"quantified"),this.body=Cn,this.quantifier=En}function $e(Cn,En){ae.call(this,"quantifier"),this.min=Cn,this.max=En,this.greedy=!0}function xe(Cn,En){ae.call(this,"charset"),this.invert=Cn,this.body=En}function Ie(Cn,En){ae.call(this,"range"),this.start=Cn,this.end=En}function Ne(Cn){ae.call(this,"literal"),this.body=Cn,this.escaped=this.body!=this.text}function Fe(Cn){ae.call(this,"unicode"),this.code=Cn.toUpperCase()}function ze(Cn){ae.call(this,"hex"),this.code=Cn.toUpperCase()}function At(Cn){ae.call(this,"octal"),this.code=Cn.toUpperCase()}function Lt(Cn){ae.call(this,"back-reference"),this.code=Cn.toUpperCase()}function hn(Cn){ae.call(this,"control-character"),this.code=Cn.toUpperCase()}var vn=function(){function Cn(wn,Tn){function xn(){this.constructor=wn}xn.prototype=Tn.prototype,wn.prototype=new xn}function En(wn,Tn,xn,kn,An){function On(Nn,Rn){function zn(Fn){function Vn(jn){return jn.charCodeAt(0).toString(16).toUpperCase()}return Fn.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,function(jn){return"\\x0"+Vn(jn)}).replace(/[\x10-\x1F\x80-\xFF]/g,function(jn){return"\\x"+Vn(jn)}).replace(/[\u0180-\u0FFF]/g,function(jn){return"\\u0"+Vn(jn)}).replace(/[\u1080-\uFFFF]/g,function(jn){return"\\u"+Vn(jn)})}var Bn,Mn;switch(Nn.length){case 0:Bn="end of input";break;case 1:Bn=Nn[0];break;default:Bn=Nn.slice(0,-1).join(", ")+" or "+Nn[Nn.length-1]}return Mn=Rn?'"'+zn(Rn)+'"':"end of input","Expected "+Bn+" but "+Mn+" found."}this.expected=wn,this.found=Tn,this.offset=xn,this.line=kn,this.column=An,this.name="SyntaxError",this.message=On(wn,Tn)}function $n(wn){function Tn(){return wn.substring(Kr,or)}function xn(){return Kr}function kn(Dn){function Wn(Nr,Gr,Jr){var no,so;for(no=Gr;Jr>no;no++)so=wn.charAt(no),so===`
`?(Nr.seenCR||Nr.line++,Nr.column=1,Nr.seenCR=!1):so==="\r"||so==="\u2028"||so==="\u2029"?(Nr.line++,Nr.column=1,Nr.seenCR=!0):(Nr.column++,Nr.seenCR=!1)}return io!==Dn&&(io>Dn&&(io=0,yo={line:1,column:1,seenCR:!1}),Wn(yo,io,Dn),io=Dn),yo}function An(Dn){po>or||(or>po&&(po=or,ho=[]),ho.push(Dn))}function On(Dn){var Wn=0;for(Dn.sort();Wn<Dn.length;)Dn[Wn-1]===Dn[Wn]?Dn.splice(Wn,1):Wn++}function Nn(){var Dn,Wn,Nr,Gr,Jr;return Dn=or,Wn=Rn(),Wn!==null?(Nr=or,wn.charCodeAt(or)===124?(Gr=ro,or++):(Gr=null,zr===0&&An(ta)),Gr!==null?(Jr=Nn(),Jr!==null?(Gr=[Gr,Jr],Nr=Gr):(or=Nr,Nr=Fr)):(or=Nr,Nr=Fr),Nr===null&&(Nr=eo),Nr!==null?(Kr=Dn,Wn=na(Wn,Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Rn(){var Dn,Wn,Nr,Gr,Jr;if(Dn=or,Wn=Bn(),Wn===null&&(Wn=eo),Wn!==null)if(Nr=or,zr++,Gr=Vn(),zr--,Gr===null?Nr=eo:(or=Nr,Nr=Fr),Nr!==null){for(Gr=[],Jr=Fn(),Jr===null&&(Jr=zn());Jr!==null;)Gr.push(Jr),Jr=Fn(),Jr===null&&(Jr=zn());Gr!==null?(Jr=Mn(),Jr===null&&(Jr=eo),Jr!==null?(Kr=Dn,Wn=ra(Wn,Gr,Jr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;else or=Dn,Dn=Fr;return Dn}function zn(){var Dn;return Dn=Yn(),Dn===null&&(Dn=ur(),Dn===null&&(Dn=Sr())),Dn}function Bn(){var Dn,Wn;return Dn=or,wn.charCodeAt(or)===94?(Wn=bo,or++):(Wn=null,zr===0&&An(So)),Wn!==null&&(Kr=Dn,Wn=oa()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Mn(){var Dn,Wn;return Dn=or,wn.charCodeAt(or)===36?(Wn=aa,or++):(Wn=null,zr===0&&An(ia)),Wn!==null&&(Kr=Dn,Wn=sa()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Fn(){var Dn,Wn,Nr;return Dn=or,Wn=zn(),Wn!==null?(Nr=Vn(),Nr!==null?(Kr=Dn,Wn=la(Wn,Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Vn(){var Dn,Wn,Nr;return zr++,Dn=or,Wn=jn(),Wn!==null?(Nr=rr(),Nr===null&&(Nr=eo),Nr!==null?(Kr=Dn,Wn=da(Wn,Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),zr--,Dn===null&&(Wn=null,zr===0&&An(ua)),Dn}function jn(){var Dn;return Dn=Zn(),Dn===null&&(Dn=Gn(),Dn===null&&(Dn=Xn(),Dn===null&&(Dn=cr(),Dn===null&&(Dn=nr(),Dn===null&&(Dn=er()))))),Dn}function Zn(){var Dn,Wn,Nr,Gr,Jr,no;return Dn=or,wn.charCodeAt(or)===123?(Wn=mo,or++):(Wn=null,zr===0&&An(vo)),Wn!==null?(Nr=qn(),Nr!==null?(wn.charCodeAt(or)===44?(Gr=fa,or++):(Gr=null,zr===0&&An(pa)),Gr!==null?(Jr=qn(),Jr!==null?(wn.charCodeAt(or)===125?(no=Co,or++):(no=null,zr===0&&An(Eo)),no!==null?(Kr=Dn,Wn=ha(Nr,Jr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Gn(){var Dn,Wn,Nr,Gr;return Dn=or,wn.charCodeAt(or)===123?(Wn=mo,or++):(Wn=null,zr===0&&An(vo)),Wn!==null?(Nr=qn(),Nr!==null?(wn.substr(or,2)===$o?(Gr=$o,or+=2):(Gr=null,zr===0&&An(ma)),Gr!==null?(Kr=Dn,Wn=va(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Xn(){var Dn,Wn,Nr,Gr;return Dn=or,wn.charCodeAt(or)===123?(Wn=mo,or++):(Wn=null,zr===0&&An(vo)),Wn!==null?(Nr=qn(),Nr!==null?(wn.charCodeAt(or)===125?(Gr=Co,or++):(Gr=null,zr===0&&An(Eo)),Gr!==null?(Kr=Dn,Wn=ga(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function cr(){var Dn,Wn;return Dn=or,wn.charCodeAt(or)===43?(Wn=ya,or++):(Wn=null,zr===0&&An(ba)),Wn!==null&&(Kr=Dn,Wn=Sa()),Wn===null&&(or=Dn),Dn=Wn,Dn}function nr(){var Dn,Wn;return Dn=or,wn.charCodeAt(or)===42?(Wn=Ca,or++):(Wn=null,zr===0&&An(Ea)),Wn!==null&&(Kr=Dn,Wn=$a()),Wn===null&&(or=Dn),Dn=Wn,Dn}function er(){var Dn,Wn;return Dn=or,wn.charCodeAt(or)===63?(Wn=wo,or++):(Wn=null,zr===0&&An(To)),Wn!==null&&(Kr=Dn,Wn=wa()),Wn===null&&(or=Dn),Dn=Wn,Dn}function rr(){var Dn;return wn.charCodeAt(or)===63?(Dn=wo,or++):(Dn=null,zr===0&&An(To)),Dn}function qn(){var Dn,Wn,Nr;if(Dn=or,Wn=[],xo.test(wn.charAt(or))?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Po)),Nr!==null)for(;Nr!==null;)Wn.push(Nr),xo.test(wn.charAt(or))?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Po));else Wn=Fr;return Wn!==null&&(Kr=Dn,Wn=Ta(Wn)),Wn===null&&(or=Dn),Dn=Wn,Dn}function Yn(){var Dn,Wn,Nr,Gr;return Dn=or,wn.charCodeAt(or)===40?(Wn=xa,or++):(Wn=null,zr===0&&An(Pa)),Wn!==null?(Nr=Un(),Nr===null&&(Nr=tr(),Nr===null&&(Nr=pr(),Nr===null&&(Nr=ar()))),Nr!==null?(wn.charCodeAt(or)===41?(Gr=ka,or++):(Gr=null,zr===0&&An(Aa)),Gr!==null?(Kr=Dn,Wn=Oa(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function ar(){var Dn,Wn;return Dn=or,Wn=Nn(),Wn!==null&&(Kr=Dn,Wn=Ia(Wn)),Wn===null&&(or=Dn),Dn=Wn,Dn}function pr(){var Dn,Wn,Nr;return Dn=or,wn.substr(or,2)===ko?(Wn=ko,or+=2):(Wn=null,zr===0&&An(Na)),Wn!==null?(Nr=Nn(),Nr!==null?(Kr=Dn,Wn=Ma(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Un(){var Dn,Wn,Nr;return Dn=or,wn.substr(or,2)===Ao?(Wn=Ao,or+=2):(Wn=null,zr===0&&An(Ra)),Wn!==null?(Nr=Nn(),Nr!==null?(Kr=Dn,Wn=Da(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function tr(){var Dn,Wn,Nr;return Dn=or,wn.substr(or,2)===Oo?(Wn=Oo,or+=2):(Wn=null,zr===0&&An(La)),Wn!==null?(Nr=Nn(),Nr!==null?(Kr=Dn,Wn=Ba(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function ur(){var Dn,Wn,Nr,Gr,Jr;if(zr++,Dn=or,wn.charCodeAt(or)===91?(Wn=Fa,or++):(Wn=null,zr===0&&An(za)),Wn!==null)if(wn.charCodeAt(or)===94?(Nr=bo,or++):(Nr=null,zr===0&&An(So)),Nr===null&&(Nr=eo),Nr!==null){for(Gr=[],Jr=_r(),Jr===null&&(Jr=Er());Jr!==null;)Gr.push(Jr),Jr=_r(),Jr===null&&(Jr=Er());Gr!==null?(wn.charCodeAt(or)===93?(Jr=Ha,or++):(Jr=null,zr===0&&An(Ua)),Jr!==null?(Kr=Dn,Wn=ja(Nr,Gr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;else or=Dn,Dn=Fr;return zr--,Dn===null&&(Wn=null,zr===0&&An(Va)),Dn}function _r(){var Dn,Wn,Nr,Gr;return zr++,Dn=or,Wn=Er(),Wn!==null?(wn.charCodeAt(or)===45?(Nr=Wa,or++):(Nr=null,zr===0&&An(Ka)),Nr!==null?(Gr=Er(),Gr!==null?(Kr=Dn,Wn=Ya(Wn,Gr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),zr--,Dn===null&&(Wn=null,zr===0&&An(Ga)),Dn}function Er(){var Dn;return zr++,Dn=Pr(),Dn===null&&(Dn=sr()),zr--,Dn===null&&zr===0&&An(qa),Dn}function sr(){var Dn,Wn;return Dn=or,Za.test(wn.charAt(or))?(Wn=wn.charAt(or),or++):(Wn=null,zr===0&&An(Xa)),Wn!==null&&(Kr=Dn,Wn=go(Wn)),Wn===null&&(or=Dn),Dn=Wn,Dn}function Pr(){var Dn;return Dn=hr(),Dn===null&&(Dn=Cr(),Dn===null&&(Dn=Lr(),Dn===null&&(Dn=Vr(),Dn===null&&(Dn=Rr(),Dn===null&&(Dn=$r(),Dn===null&&(Dn=Tr(),Dn===null&&(Dn=dr(),Dn===null&&(Dn=Jn(),Dn===null&&(Dn=ir(),Dn===null&&(Dn=xr(),Dn===null&&(Dn=Ir(),Dn===null&&(Dn=Hr(),Dn===null&&(Dn=Ur(),Dn===null&&(Dn=jr(),Dn===null&&(Dn=Wr(),Dn===null&&(Dn=Xr(),Dn===null&&(Dn=Qr()))))))))))))))))),Dn}function Sr(){var Dn;return Dn=kr(),Dn===null&&(Dn=lr(),Dn===null&&(Dn=mr())),Dn}function kr(){var Dn,Wn;return Dn=or,wn.charCodeAt(or)===46?(Wn=Ja,or++):(Wn=null,zr===0&&An(Qa)),Wn!==null&&(Kr=Dn,Wn=ei()),Wn===null&&(or=Dn),Dn=Wn,Dn}function mr(){var Dn,Wn;return zr++,Dn=or,ni.test(wn.charAt(or))?(Wn=wn.charAt(or),or++):(Wn=null,zr===0&&An(ri)),Wn!==null&&(Kr=Dn,Wn=go(Wn)),Wn===null&&(or=Dn),Dn=Wn,zr--,Dn===null&&(Wn=null,zr===0&&An(ti)),Dn}function lr(){var Dn;return Dn=gr(),Dn===null&&(Dn=Or(),Dn===null&&(Dn=Cr(),Dn===null&&(Dn=Lr(),Dn===null&&(Dn=Vr(),Dn===null&&(Dn=Rr(),Dn===null&&(Dn=$r(),Dn===null&&(Dn=Tr(),Dn===null&&(Dn=dr(),Dn===null&&(Dn=Jn(),Dn===null&&(Dn=ir(),Dn===null&&(Dn=xr(),Dn===null&&(Dn=Ir(),Dn===null&&(Dn=Hr(),Dn===null&&(Dn=Mr(),Dn===null&&(Dn=Ur(),Dn===null&&(Dn=jr(),Dn===null&&(Dn=Wr(),Dn===null&&(Dn=Xr(),Dn===null&&(Dn=Qr()))))))))))))))))))),Dn}function hr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===lo?(Wn=lo,or+=2):(Wn=null,zr===0&&An(Io)),Wn!==null&&(Kr=Dn,Wn=oi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function gr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===lo?(Wn=lo,or+=2):(Wn=null,zr===0&&An(Io)),Wn!==null&&(Kr=Dn,Wn=ai()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Or(){var Dn,Wn;return Dn=or,wn.substr(or,2)===No?(Wn=No,or+=2):(Wn=null,zr===0&&An(ii)),Wn!==null&&(Kr=Dn,Wn=si()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Lr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Mo?(Wn=Mo,or+=2):(Wn=null,zr===0&&An(li)),Wn!==null&&(Kr=Dn,Wn=ui()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Vr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Ro?(Wn=Ro,or+=2):(Wn=null,zr===0&&An(ci)),Wn!==null&&(Kr=Dn,Wn=di()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Rr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Do?(Wn=Do,or+=2):(Wn=null,zr===0&&An(fi)),Wn!==null&&(Kr=Dn,Wn=pi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function $r(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Lo?(Wn=Lo,or+=2):(Wn=null,zr===0&&An(hi)),Wn!==null&&(Kr=Dn,Wn=mi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Tr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Bo?(Wn=Bo,or+=2):(Wn=null,zr===0&&An(vi)),Wn!==null&&(Kr=Dn,Wn=gi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function dr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Vo?(Wn=Vo,or+=2):(Wn=null,zr===0&&An(yi)),Wn!==null&&(Kr=Dn,Wn=_i()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Jn(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Fo?(Wn=Fo,or+=2):(Wn=null,zr===0&&An(bi)),Wn!==null&&(Kr=Dn,Wn=Si()),Wn===null&&(or=Dn),Dn=Wn,Dn}function ir(){var Dn,Wn;return Dn=or,wn.substr(or,2)===zo?(Wn=zo,or+=2):(Wn=null,zr===0&&An(Ci)),Wn!==null&&(Kr=Dn,Wn=Ei()),Wn===null&&(or=Dn),Dn=Wn,Dn}function xr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Ho?(Wn=Ho,or+=2):(Wn=null,zr===0&&An($i)),Wn!==null&&(Kr=Dn,Wn=wi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Ir(){var Dn,Wn;return Dn=or,wn.substr(or,2)===Uo?(Wn=Uo,or+=2):(Wn=null,zr===0&&An(Ti)),Wn!==null&&(Kr=Dn,Wn=xi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Hr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===jo?(Wn=jo,or+=2):(Wn=null,zr===0&&An(Pi)),Wn!==null&&(Kr=Dn,Wn=ki()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Cr(){var Dn,Wn,Nr;return Dn=or,wn.substr(or,2)===Go?(Wn=Go,or+=2):(Wn=null,zr===0&&An(Ai)),Wn!==null?(wn.length>or?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Wo)),Nr!==null?(Kr=Dn,Wn=Oi(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Mr(){var Dn,Wn,Nr;return Dn=or,wn.charCodeAt(or)===92?(Wn=Ko,or++):(Wn=null,zr===0&&An(Yo)),Wn!==null?(Ii.test(wn.charAt(or))?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Ni)),Nr!==null?(Kr=Dn,Wn=Mi(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}function Ur(){var Dn,Wn,Nr,Gr;if(Dn=or,wn.substr(or,2)===uo?(Wn=uo,or+=2):(Wn=null,zr===0&&An(qo)),Wn!==null){if(Nr=[],Zo.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(Xo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),Zo.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(Xo));else Nr=Fr;Nr!==null?(Kr=Dn,Wn=Ri(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;return Dn}function jr(){var Dn,Wn,Nr,Gr;if(Dn=or,wn.substr(or,2)===Jo?(Wn=Jo,or+=2):(Wn=null,zr===0&&An(Di)),Wn!==null){if(Nr=[],co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo));else Nr=Fr;Nr!==null?(Kr=Dn,Wn=Li(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;return Dn}function Wr(){var Dn,Wn,Nr,Gr;if(Dn=or,wn.substr(or,2)===Qo?(Wn=Qo,or+=2):(Wn=null,zr===0&&An(Bi)),Wn!==null){if(Nr=[],co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo)),Gr!==null)for(;Gr!==null;)Nr.push(Gr),co.test(wn.charAt(or))?(Gr=wn.charAt(or),or++):(Gr=null,zr===0&&An(fo));else Nr=Fr;Nr!==null?(Kr=Dn,Wn=Vi(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)}else or=Dn,Dn=Fr;return Dn}function Xr(){var Dn,Wn;return Dn=or,wn.substr(or,2)===uo?(Wn=uo,or+=2):(Wn=null,zr===0&&An(qo)),Wn!==null&&(Kr=Dn,Wn=Fi()),Wn===null&&(or=Dn),Dn=Wn,Dn}function Qr(){var Dn,Wn,Nr;return Dn=or,wn.charCodeAt(or)===92?(Wn=Ko,or++):(Wn=null,zr===0&&An(Yo)),Wn!==null?(wn.length>or?(Nr=wn.charAt(or),or++):(Nr=null,zr===0&&An(Wo)),Nr!==null?(Kr=Dn,Wn=go(Nr),Wn===null&&(or=Dn),Dn=Wn):(or=Dn,Dn=Fr)):(or=Dn,Dn=Fr),Dn}var Ar,Dr=arguments.length>1?arguments[1]:{},Yr={regexp:Nn},qr=Nn,Fr=null,eo="",ro="|",ta='"|"',na=function(Dn,Wn){return Wn?new ie(Dn,Wn[1]):Dn},ra=function(Dn,Wn,Nr){return new le([Dn].concat(Wn).concat([Nr]))},bo="^",So='"^"',oa=function(){return new ae("start")},aa="$",ia='"$"',sa=function(){return new ae("end")},la=function(Dn,Wn){return new Ce(Dn,Wn)},ua="Quantifier",da=function(Dn,Wn){return Wn&&(Dn.greedy=!1),Dn},mo="{",vo='"{"',fa=",",pa='","',Co="}",Eo='"}"',ha=function(Dn,Wn){return new $e(Dn,Wn)},$o=",}",ma='",}"',va=function(Dn){return new $e(Dn,1/0)},ga=function(Dn){return new $e(Dn,Dn)},ya="+",ba='"+"',Sa=function(){return new $e(1,1/0)},Ca="*",Ea='"*"',$a=function(){return new $e(0,1/0)},wo="?",To='"?"',wa=function(){return new $e(0,1)},xo=/^[0-9]/,Po="[0-9]",Ta=function(Dn){return+Dn.join("")},xa="(",Pa='"("',ka=")",Aa='")"',Oa=function(Dn){return Dn},Ia=function(Dn){return new _e(Dn)},ko="?:",Na='"?:"',Ma=function(Dn){return new pe("non-capture-group",Dn)},Ao="?=",Ra='"?="',Da=function(Dn){return new pe("positive-lookahead",Dn)},Oo="?!",La='"?!"',Ba=function(Dn){return new pe("negative-lookahead",Dn)},Va="CharacterSet",Fa="[",za='"["',Ha="]",Ua='"]"',ja=function(Dn,Wn){return new xe(!!Dn,Wn)},Ga="CharacterRange",Wa="-",Ka='"-"',Ya=function(Dn,Wn){return new Ie(Dn,Wn)},qa="Character",Za=/^[^\\\]]/,Xa="[^\\\\\\]]",go=function(Dn){return new Ne(Dn)},Ja=".",Qa='"."',ei=function(){return new ae("any-character")},ti="Literal",ni=/^[^|\\\/.[()?+*$\^]/,ri="[^|\\\\\\/.[()?+*$\\^]",lo="\\b",Io='"\\\\b"',oi=function(){return new ae("backspace")},ai=function(){return new ae("word-boundary")},No="\\B",ii='"\\\\B"',si=function(){return new ae("non-word-boundary")},Mo="\\d",li='"\\\\d"',ui=function(){return new ae("digit")},Ro="\\D",ci='"\\\\D"',di=function(){return new ae("non-digit")},Do="\\f",fi='"\\\\f"',pi=function(){return new ae("form-feed")},Lo="\\n",hi='"\\\\n"',mi=function(){return new ae("line-feed")},Bo="\\r",vi='"\\\\r"',gi=function(){return new ae("carriage-return")},Vo="\\s",yi='"\\\\s"',_i=function(){return new ae("white-space")},Fo="\\S",bi='"\\\\S"',Si=function(){return new ae("non-white-space")},zo="\\t",Ci='"\\\\t"',Ei=function(){return new ae("tab")},Ho="\\v",$i='"\\\\v"',wi=function(){return new ae("vertical-tab")},Uo="\\w",Ti='"\\\\w"',xi=function(){return new ae("word")},jo="\\W",Pi='"\\\\W"',ki=function(){return new ae("non-word")},Go="\\c",Ai='"\\\\c"',Wo="any character",Oi=function(Dn){return new hn(Dn)},Ko="\\",Yo='"\\\\"',Ii=/^[1-9]/,Ni="[1-9]",Mi=function(Dn){return new Lt(Dn)},uo="\\0",qo='"\\\\0"',Zo=/^[0-7]/,Xo="[0-7]",Ri=function(Dn){return new At(Dn.join(""))},Jo="\\x",Di='"\\\\x"',co=/^[0-9a-fA-F]/,fo="[0-9a-fA-F]",Li=function(Dn){return new ze(Dn.join(""))},Qo="\\u",Bi='"\\\\u"',Vi=function(Dn){return new Fe(Dn.join(""))},Fi=function(){return new ae("null-character")},or=0,Kr=0,io=0,yo={line:1,column:1,seenCR:!1},po=0,ho=[],zr=0;if("startRule"in Dr){if(!(Dr.startRule in Yr))throw new Error(`Can't start parsing from rule "`+Dr.startRule+'".');qr=Yr[Dr.startRule]}if(ae.offset=xn,ae.text=Tn,Ar=qr(),Ar!==null&&or===wn.length)return Ar;throw On(ho),Kr=Math.max(or,po),new En(ho,Kr<wn.length?wn.charAt(Kr):null,Kr,kn(Kr).line,kn(Kr).column)}return Cn(En,Error),{SyntaxError:En,parse:$n}}(),_n=1,bn={};$.exports=vn},function($,oe,ae){var ie=ae(3),le=ae(5),pe={extend:ie.extend},_e=ze(97,122),Ce=ze(65,90),$e=ze(48,57),xe=ze(32,47)+ze(58,64)+ze(91,96)+ze(123,126),Ie=ze(32,126),Ne=` \f
\r \v \u2028\u2029`,Fe={"\\w":_e+Ce+$e+"_","\\W":xe.replace("_",""),"\\s":Ne,"\\S":function(){for(var At=Ie,Lt=0;Lt<Ne.length;Lt++)At=At.replace(Ne[Lt],"");return At}(),"\\d":$e,"\\D":_e+Ce+xe};function ze(At,Lt){for(var hn="",vn=At;vn<=Lt;vn++)hn+=String.fromCharCode(vn);return hn}pe.gen=function(At,Lt,hn){return hn=hn||{guid:1},pe[At.type]?pe[At.type](At,Lt,hn):pe.token(At,Lt,hn)},pe.extend({token:function(At,Lt,hn){switch(At.type){case"start":case"end":return"";case"any-character":return le.character();case"backspace":return"";case"word-boundary":return"";case"non-word-boundary":break;case"digit":return le.pick($e.split(""));case"non-digit":return le.pick((_e+Ce+xe).split(""));case"form-feed":break;case"line-feed":return At.body||At.text;case"carriage-return":break;case"white-space":return le.pick(Ne.split(""));case"non-white-space":return le.pick((_e+Ce+$e).split(""));case"tab":break;case"vertical-tab":break;case"word":return le.pick((_e+Ce+$e).split(""));case"non-word":return le.pick(xe.replace("_","").split(""))}return At.body||At.text},alternate:function(At,Lt,hn){return this.gen(le.boolean()?At.left:At.right,Lt,hn)},match:function(At,Lt,hn){Lt="";for(var vn=0;vn<At.body.length;vn++)Lt+=this.gen(At.body[vn],Lt,hn);return Lt},"capture-group":function(At,Lt,hn){return Lt=this.gen(At.body,Lt,hn),hn[hn.guid++]=Lt,Lt},"non-capture-group":function(At,Lt,hn){return this.gen(At.body,Lt,hn)},"positive-lookahead":function(At,Lt,hn){return this.gen(At.body,Lt,hn)},"negative-lookahead":function(At,Lt,hn){return""},quantified:function(At,Lt,hn){Lt="";for(var vn=this.quantifier(At.quantifier),_n=0;_n<vn;_n++)Lt+=this.gen(At.body,Lt,hn);return Lt},quantifier:function(At,Lt,hn){var vn=Math.max(At.min,0),_n=isFinite(At.max)?At.max:vn+le.integer(3,7);return le.integer(vn,_n)},charset:function(At,Lt,hn){if(At.invert)return this["invert-charset"](At,Lt,hn);var vn=le.pick(At.body);return this.gen(vn,Lt,hn)},"invert-charset":function(At,Lt,hn){for(var vn=Ie,_n=0,bn;_n<At.body.length;_n++)switch(bn=At.body[_n],bn.type){case"literal":vn=vn.replace(bn.body,"");break;case"range":for(var Cn=this.gen(bn.start,Lt,hn).charCodeAt(),En=this.gen(bn.end,Lt,hn).charCodeAt(),$n=Cn;$n<=En;$n++)vn=vn.replace(String.fromCharCode($n),"");default:var wn=Fe[bn.text];if(wn)for(var Tn=0;Tn<=wn.length;Tn++)vn=vn.replace(wn[Tn],"")}return le.pick(vn.split(""))},range:function(At,Lt,hn){var vn=this.gen(At.start,Lt,hn).charCodeAt(),_n=this.gen(At.end,Lt,hn).charCodeAt();return String.fromCharCode(le.integer(vn,_n))},literal:function(At,Lt,hn){return At.escaped?At.body:At.text},unicode:function(At,Lt,hn){return String.fromCharCode(parseInt(At.code,16))},hex:function(At,Lt,hn){return String.fromCharCode(parseInt(At.code,16))},octal:function(At,Lt,hn){return String.fromCharCode(parseInt(At.code,8))},"back-reference":function(At,Lt,hn){return hn[At.code]||""},CONTROL_CHARACTER_MAP:function(){for(var At="@ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \\ ] ^ _".split(" "),Lt=`\0       \x07 \b
\v \f \r              \x1B    `.split(" "),hn={},vn=0;vn<At.length;vn++)hn[At[vn]]=Lt[vn];return hn}(),"control-character":function(At,Lt,hn){return this.CONTROL_CHARACTER_MAP[At.code]}}),$.exports=pe},function($,oe,ae){$.exports=ae(24)},function($,oe,ae){var ie=ae(2),le=ae(3),pe=ae(4);function _e(Ce,$e,xe){xe=xe||[];var Ie={name:typeof $e=="string"?$e.replace(ie.RE_KEY,"$1"):$e,template:Ce,type:le.type(Ce),rule:pe.parse($e)};switch(Ie.path=xe.slice(0),Ie.path.push($e===void 0?"ROOT":Ie.name),Ie.type){case"array":Ie.items=[],le.each(Ce,function(Ne,Fe){Ie.items.push(_e(Ne,Fe,Ie.path))});break;case"object":Ie.properties=[],le.each(Ce,function(Ne,Fe){Ie.properties.push(_e(Ne,Fe,Ie.path))});break}return Ie}$.exports=_e},function($,oe,ae){$.exports=ae(26)},function($,oe,ae){var ie=ae(2),le=ae(3),pe=ae(23);function _e(xe,Ie){for(var Ne=pe(xe),Fe=Ce.diff(Ne,Ie),ze=0;ze<Fe.length;ze++);return Fe}var Ce={diff:function(Ie,Ne,Fe){var ze=[];return this.name(Ie,Ne,Fe,ze)&&this.type(Ie,Ne,Fe,ze)&&(this.value(Ie,Ne,Fe,ze),this.properties(Ie,Ne,Fe,ze),this.items(Ie,Ne,Fe,ze)),ze},name:function(xe,Ie,Ne,Fe){var ze=Fe.length;return $e.equal("name",xe.path,Ne+"",xe.name+"",Fe),Fe.length===ze},type:function(xe,Ie,Ne,Fe){var ze=Fe.length;switch(xe.type){case"string":if(xe.template.match(ie.RE_PLACEHOLDER))return!0;break;case"array":if(xe.rule.parameters&&(xe.rule.min!==void 0&&xe.rule.max===void 0&&xe.rule.count===1||xe.rule.parameters[2]))return!0;break;case"function":return!0}return $e.equal("type",xe.path,le.type(Ie),xe.type,Fe),Fe.length===ze},value:function(xe,Ie,Ne,Fe){var ze=Fe.length,At=xe.rule,Lt=xe.type;if(Lt==="object"||Lt==="array"||Lt==="function")return!0;if(!At.parameters){switch(Lt){case"regexp":return $e.match("value",xe.path,Ie,xe.template,Fe),Fe.length===ze;case"string":if(xe.template.match(ie.RE_PLACEHOLDER))return Fe.length===ze;break}return $e.equal("value",xe.path,Ie,xe.template,Fe),Fe.length===ze}var hn;switch(Lt){case"number":var vn=(Ie+"").split(".");vn[0]=+vn[0],At.min!==void 0&&At.max!==void 0&&($e.greaterThanOrEqualTo("value",xe.path,vn[0],Math.min(At.min,At.max),Fe),$e.lessThanOrEqualTo("value",xe.path,vn[0],Math.max(At.min,At.max),Fe)),At.min!==void 0&&At.max===void 0&&$e.equal("value",xe.path,vn[0],At.min,Fe,"[value] "+Ne),At.decimal&&(At.dmin!==void 0&&At.dmax!==void 0&&($e.greaterThanOrEqualTo("value",xe.path,vn[1].length,At.dmin,Fe),$e.lessThanOrEqualTo("value",xe.path,vn[1].length,At.dmax,Fe)),At.dmin!==void 0&&At.dmax===void 0&&$e.equal("value",xe.path,vn[1].length,At.dmin,Fe));break;case"boolean":break;case"string":hn=Ie.match(new RegExp(xe.template,"g")),hn=hn?hn.length:0,At.min!==void 0&&At.max!==void 0&&($e.greaterThanOrEqualTo("repeat count",xe.path,hn,At.min,Fe),$e.lessThanOrEqualTo("repeat count",xe.path,hn,At.max,Fe)),At.min!==void 0&&At.max===void 0&&$e.equal("repeat count",xe.path,hn,At.min,Fe);break;case"regexp":hn=Ie.match(new RegExp(xe.template.source.replace(/^\^|\$$/g,""),"g")),hn=hn?hn.length:0,At.min!==void 0&&At.max!==void 0&&($e.greaterThanOrEqualTo("repeat count",xe.path,hn,At.min,Fe),$e.lessThanOrEqualTo("repeat count",xe.path,hn,At.max,Fe)),At.min!==void 0&&At.max===void 0&&$e.equal("repeat count",xe.path,hn,At.min,Fe);break}return Fe.length===ze},properties:function(xe,Ie,Ne,Fe){var ze=Fe.length,At=xe.rule,Lt=le.keys(Ie);if(xe.properties){if(xe.rule.parameters?(At.min!==void 0&&At.max!==void 0&&($e.greaterThanOrEqualTo("properties length",xe.path,Lt.length,Math.min(At.min,At.max),Fe),$e.lessThanOrEqualTo("properties length",xe.path,Lt.length,Math.max(At.min,At.max),Fe)),At.min!==void 0&&At.max===void 0&&At.count!==1&&$e.equal("properties length",xe.path,Lt.length,At.min,Fe)):$e.equal("properties length",xe.path,Lt.length,xe.properties.length,Fe),Fe.length!==ze)return!1;for(var hn=0;hn<Lt.length;hn++)Fe.push.apply(Fe,this.diff(function(){var vn;return le.each(xe.properties,function(_n){_n.name===Lt[hn]&&(vn=_n)}),vn||xe.properties[hn]}(),Ie[Lt[hn]],Lt[hn]));return Fe.length===ze}},items:function(xe,Ie,Ne,Fe){var ze=Fe.length;if(xe.items){var At=xe.rule;if(!xe.rule.parameters)$e.equal("items length",xe.path,Ie.length,xe.items.length,Fe);else{if(At.min!==void 0&&At.max!==void 0&&($e.greaterThanOrEqualTo("items",xe.path,Ie.length,Math.min(At.min,At.max)*xe.items.length,Fe,"[{utype}] array is too short: {path} must have at least {expected} elements but instance has {actual} elements"),$e.lessThanOrEqualTo("items",xe.path,Ie.length,Math.max(At.min,At.max)*xe.items.length,Fe,"[{utype}] array is too long: {path} must have at most {expected} elements but instance has {actual} elements")),At.min!==void 0&&At.max===void 0){if(At.count===1)return Fe.length===ze;$e.equal("items length",xe.path,Ie.length,At.min*xe.items.length,Fe)}if(At.parameters[2])return Fe.length===ze}if(Fe.length!==ze)return!1;for(var Lt=0;Lt<Ie.length;Lt++)Fe.push.apply(Fe,this.diff(xe.items[Lt%xe.items.length],Ie[Lt],Lt%xe.items.length));return Fe.length===ze}}},$e={message:function(xe){return(xe.message||"[{utype}] Expect {path}'{ltype} {action} {expected}, but is {actual}").replace("{utype}",xe.type.toUpperCase()).replace("{ltype}",xe.type.toLowerCase()).replace("{path}",le.isArray(xe.path)&&xe.path.join(".")||xe.path).replace("{action}",xe.action).replace("{expected}",xe.expected).replace("{actual}",xe.actual)},equal:function(xe,Ie,Ne,Fe,ze,At){if(Ne===Fe)return!0;switch(xe){case"type":if(Fe==="regexp"&&Ne==="string")return!0;break}var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is equal to",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},match:function(xe,Ie,Ne,Fe,ze,At){if(Fe.test(Ne))return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"matches",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},notEqual:function(xe,Ie,Ne,Fe,ze,At){if(Ne!==Fe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is not equal to",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},greaterThan:function(xe,Ie,Ne,Fe,ze,At){if(Ne>Fe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is greater than",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},lessThan:function(xe,Ie,Ne,Fe,ze,At){if(Ne<Fe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is less to",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},greaterThanOrEqualTo:function(xe,Ie,Ne,Fe,ze,At){if(Ne>=Fe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is greater than or equal to",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1},lessThanOrEqualTo:function(xe,Ie,Ne,Fe,ze,At){if(Ne<=Fe)return!0;var Lt={path:Ie,type:xe,actual:Ne,expected:Fe,action:"is less than or equal to",message:At};return Lt.message=$e.message(Lt),ze.push(Lt),!1}};_e.Diff=Ce,_e.Assert=$e,$.exports=_e},function($,oe,ae){$.exports=ae(28)},function($,oe,ae){var ie=ae(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(At,Lt,hn,vn){var _n=document.createEvent("CustomEvent");return _n.initCustomEvent(At,Lt,hn,vn),_n}}var le={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},pe="readystatechange loadstart progress abort error load timeout loadend".split(" "),_e="timeout withCredentials".split(" "),Ce="readyState responseURL status statusText responseType response responseText responseXML".split(" "),$e={100:"Continue",101:"Switching Protocols",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",300:"Multiple Choice",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Request Entity Too Large",414:"Request-URI Too Long",415:"Unsupported Media Type",416:"Requested Range Not Satisfiable",417:"Expectation Failed",422:"Unprocessable Entity",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported"};function xe(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}xe._settings={timeout:"10-100"},xe.setup=function(ze){return ie.extend(xe._settings,ze),xe._settings},ie.extend(xe,le),ie.extend(xe.prototype,le),xe.prototype.mock=!0,xe.prototype.match=!1,ie.extend(xe.prototype,{open:function(ze,At,Lt,hn,vn){var _n=this;ie.extend(this.custom,{method:ze,url:At,async:typeof Lt=="boolean"?Lt:!0,username:hn,password:vn,options:{url:At,type:ze}}),this.custom.timeout=function(Tn){if(typeof Tn=="number")return Tn;if(typeof Tn=="string"&&!~Tn.indexOf("-"))return parseInt(Tn,10);if(typeof Tn=="string"&&~Tn.indexOf("-")){var xn=Tn.split("-"),kn=parseInt(xn[0],10),An=parseInt(xn[1],10);return Math.round(Math.random()*(An-kn))+kn}}(xe._settings.timeout);var bn=Ne(this.custom.options);function Cn(Tn){for(var xn=0;xn<Ce.length;xn++)try{_n[Ce[xn]]=En[Ce[xn]]}catch{}_n.dispatchEvent(new Event(Tn.type))}if(!bn){var En=Ie();this.custom.xhr=En;for(var $n=0;$n<pe.length;$n++)En.addEventListener(pe[$n],Cn);hn?En.open(ze,At,Lt,hn,vn):En.open(ze,At,Lt);for(var wn=0;wn<_e.length;wn++)try{En[_e[wn]]=_n[_e[wn]]}catch{}return}this.match=!0,this.custom.template=bn,this.readyState=xe.OPENED,this.dispatchEvent(new Event("readystatechange"))},setRequestHeader:function(ze,At){if(!this.match){this.custom.xhr.setRequestHeader(ze,At);return}var Lt=this.custom.requestHeaders;Lt[ze]?Lt[ze]+=","+At:Lt[ze]=At},timeout:0,withCredentials:!1,upload:{},send:function(At){var Lt=this;if(this.custom.options.body=At,!this.match){this.custom.xhr.send(At);return}this.setRequestHeader("X-Requested-With","MockXMLHttpRequest"),this.dispatchEvent(new Event("loadstart")),this.custom.async?setTimeout(hn,this.custom.timeout):hn();function hn(){Lt.readyState=xe.HEADERS_RECEIVED,Lt.dispatchEvent(new Event("readystatechange")),Lt.readyState=xe.LOADING,Lt.dispatchEvent(new Event("readystatechange")),Lt.status=200,Lt.statusText=$e[200],Lt.response=Lt.responseText=JSON.stringify(Fe(Lt.custom.template,Lt.custom.options),null,4),Lt.readyState=xe.DONE,Lt.dispatchEvent(new Event("readystatechange")),Lt.dispatchEvent(new Event("load")),Lt.dispatchEvent(new Event("loadend"))}},abort:function(){if(!this.match){this.custom.xhr.abort();return}this.readyState=xe.UNSENT,this.dispatchEvent(new Event("abort",!1,!1,this)),this.dispatchEvent(new Event("error",!1,!1,this))}}),ie.extend(xe.prototype,{responseURL:"",status:xe.UNSENT,statusText:"",getResponseHeader:function(ze){return this.match?this.custom.responseHeaders[ze.toLowerCase()]:this.custom.xhr.getResponseHeader(ze)},getAllResponseHeaders:function(){if(!this.match)return this.custom.xhr.getAllResponseHeaders();var ze=this.custom.responseHeaders,At="";for(var Lt in ze)ze.hasOwnProperty(Lt)&&(At+=Lt+": "+ze[Lt]+`\r
`);return At},overrideMimeType:function(){},responseType:"",response:null,responseText:"",responseXML:null}),ie.extend(xe.prototype,{addEventListener:function(At,Lt){var hn=this.custom.events;hn[At]||(hn[At]=[]),hn[At].push(Lt)},removeEventListener:function(At,Lt){for(var hn=this.custom.events[At]||[],vn=0;vn<hn.length;vn++)hn[vn]===Lt&&hn.splice(vn--,1)},dispatchEvent:function(At){for(var Lt=this.custom.events[At.type]||[],hn=0;hn<Lt.length;hn++)Lt[hn].call(this,At);var vn="on"+At.type;this[vn]&&this[vn](At)}});function Ie(){var ze=function(){var hn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,vn=/^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,_n=location.href,bn=vn.exec(_n.toLowerCase())||[];return hn.test(bn[1])}();return window.ActiveXObject?!ze&&At()||Lt():At();function At(){try{return new window._XMLHttpRequest}catch{}}function Lt(){try{return new window._ActiveXObject("Microsoft.XMLHTTP")}catch{}}}function Ne(ze){for(var At in xe.Mock._mocked){var Lt=xe.Mock._mocked[At];if((!Lt.rurl||hn(Lt.rurl,ze.url))&&(!Lt.rtype||hn(Lt.rtype,ze.type.toLowerCase())))return Lt}function hn(vn,_n){if(ie.type(vn)==="string")return vn===_n;if(ie.type(vn)==="regexp")return vn.test(_n)}}function Fe(ze,At){return ie.isFunction(ze.template)?ze.template(At):xe.Mock.mock(ze.template)}$.exports=xe}])})})(mock);var mockExports=mock.exports;const mockJs=getDefaultExportFromCjs(mockExports);function lexer($){for(var oe=[],ae=0;ae<$.length;){var ie=$[ae];if(ie==="*"||ie==="+"||ie==="?"){oe.push({type:"MODIFIER",index:ae,value:$[ae++]});continue}if(ie==="\\"){oe.push({type:"ESCAPED_CHAR",index:ae++,value:$[ae++]});continue}if(ie==="{"){oe.push({type:"OPEN",index:ae,value:$[ae++]});continue}if(ie==="}"){oe.push({type:"CLOSE",index:ae,value:$[ae++]});continue}if(ie===":"){for(var le="",pe=ae+1;pe<$.length;){var _e=$.charCodeAt(pe);if(_e>=48&&_e<=57||_e>=65&&_e<=90||_e>=97&&_e<=122||_e===95){le+=$[pe++];continue}break}if(!le)throw new TypeError("Missing parameter name at ".concat(ae));oe.push({type:"NAME",index:ae,value:le}),ae=pe;continue}if(ie==="("){var Ce=1,$e="",pe=ae+1;if($[pe]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(pe));for(;pe<$.length;){if($[pe]==="\\"){$e+=$[pe++]+$[pe++];continue}if($[pe]===")"){if(Ce--,Ce===0){pe++;break}}else if($[pe]==="("&&(Ce++,$[pe+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(pe));$e+=$[pe++]}if(Ce)throw new TypeError("Unbalanced pattern at ".concat(ae));if(!$e)throw new TypeError("Missing pattern at ".concat(ae));oe.push({type:"PATTERN",index:ae,value:$e}),ae=pe;continue}oe.push({type:"CHAR",index:ae,value:$[ae++]})}return oe.push({type:"END",index:ae,value:""}),oe}function parse($,oe){oe===void 0&&(oe={});for(var ae=lexer($),ie=oe.prefixes,le=ie===void 0?"./":ie,pe="[^".concat(escapeString(oe.delimiter||"/#?"),"]+?"),_e=[],Ce=0,$e=0,xe="",Ie=function($n){if($e<ae.length&&ae[$e].type===$n)return ae[$e++].value},Ne=function($n){var wn=Ie($n);if(wn!==void 0)return wn;var Tn=ae[$e],xn=Tn.type,kn=Tn.index;throw new TypeError("Unexpected ".concat(xn," at ").concat(kn,", expected ").concat($n))},Fe=function(){for(var $n="",wn;wn=Ie("CHAR")||Ie("ESCAPED_CHAR");)$n+=wn;return $n};$e<ae.length;){var ze=Ie("CHAR"),At=Ie("NAME"),Lt=Ie("PATTERN");if(At||Lt){var hn=ze||"";le.indexOf(hn)===-1&&(xe+=hn,hn=""),xe&&(_e.push(xe),xe=""),_e.push({name:At||Ce++,prefix:hn,suffix:"",pattern:Lt||pe,modifier:Ie("MODIFIER")||""});continue}var vn=ze||Ie("ESCAPED_CHAR");if(vn){xe+=vn;continue}xe&&(_e.push(xe),xe="");var _n=Ie("OPEN");if(_n){var hn=Fe(),bn=Ie("NAME")||"",Cn=Ie("PATTERN")||"",En=Fe();Ne("CLOSE"),_e.push({name:bn||(Cn?Ce++:""),pattern:bn&&!Cn?pe:Cn,prefix:hn,suffix:En,modifier:Ie("MODIFIER")||""});continue}Ne("END")}return _e}function escapeString($){return $.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function flags($){return $&&$.sensitive?"":"i"}function regexpToRegexp($,oe){if(!oe)return $;for(var ae=/\((?:\?<(.*?)>)?(?!\?)/g,ie=0,le=ae.exec($.source);le;)oe.push({name:le[1]||ie++,prefix:"",suffix:"",modifier:"",pattern:""}),le=ae.exec($.source);return $}function arrayToRegexp($,oe,ae){var ie=$.map(function(le){return pathToRegexp(le,oe,ae).source});return new RegExp("(?:".concat(ie.join("|"),")"),flags(ae))}function stringToRegexp($,oe,ae){return tokensToRegexp(parse($,ae),oe,ae)}function tokensToRegexp($,oe,ae){ae===void 0&&(ae={});for(var ie=ae.strict,le=ie===void 0?!1:ie,pe=ae.start,_e=pe===void 0?!0:pe,Ce=ae.end,$e=Ce===void 0?!0:Ce,xe=ae.encode,Ie=xe===void 0?function(kn){return kn}:xe,Ne=ae.delimiter,Fe=Ne===void 0?"/#?":Ne,ze=ae.endsWith,At=ze===void 0?"":ze,Lt="[".concat(escapeString(At),"]|$"),hn="[".concat(escapeString(Fe),"]"),vn=_e?"^":"",_n=0,bn=$;_n<bn.length;_n++){var Cn=bn[_n];if(typeof Cn=="string")vn+=escapeString(Ie(Cn));else{var En=escapeString(Ie(Cn.prefix)),$n=escapeString(Ie(Cn.suffix));if(Cn.pattern)if(oe&&oe.push(Cn),En||$n)if(Cn.modifier==="+"||Cn.modifier==="*"){var wn=Cn.modifier==="*"?"?":"";vn+="(?:".concat(En,"((?:").concat(Cn.pattern,")(?:").concat($n).concat(En,"(?:").concat(Cn.pattern,"))*)").concat($n,")").concat(wn)}else vn+="(?:".concat(En,"(").concat(Cn.pattern,")").concat($n,")").concat(Cn.modifier);else Cn.modifier==="+"||Cn.modifier==="*"?vn+="((?:".concat(Cn.pattern,")").concat(Cn.modifier,")"):vn+="(".concat(Cn.pattern,")").concat(Cn.modifier);else vn+="(?:".concat(En).concat($n,")").concat(Cn.modifier)}}if($e)le||(vn+="".concat(hn,"?")),vn+=ae.endsWith?"(?=".concat(Lt,")"):"$";else{var Tn=$[$.length-1],xn=typeof Tn=="string"?hn.indexOf(Tn[Tn.length-1])>-1:Tn===void 0;le||(vn+="(?:".concat(hn,"(?=").concat(Lt,"))?")),xn||(vn+="(?=".concat(hn,"|").concat(Lt,")"))}return new RegExp(vn,flags(ae))}function pathToRegexp($,oe,ae){return $ instanceof RegExp?regexpToRegexp($,oe):Array.isArray($)?arrayToRegexp($,oe,ae):stringToRegexp($,oe,ae)}const Mock=mockJs;function createProdMockServer($){Mock.XHR.prototype.__send=Mock.XHR.prototype.send,Mock.XHR.prototype.send=function(){if(this.custom.xhr&&(this.custom.xhr.withCredentials=this.withCredentials||!1,this.responseType&&(this.custom.xhr.responseType=this.responseType)),this.custom.requestHeaders){const oe={};for(let ae in this.custom.requestHeaders)oe[ae.toString().toLowerCase()]=this.custom.requestHeaders[ae];this.custom.options=Object.assign({},this.custom.options,{headers:oe})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let oe=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&oe&&(this.custom.xhr.responseType=oe)};for(const{url:oe,method:ae,response:ie,timeout:le}of $)__setupMock__(le),Mock.mock(pathToRegexp(oe,void 0,{end:!1}),ae||"get",__XHR2ExpressReqWrapper__(ie))}function __param2Obj__($){const oe=$.split("?")[1];return oe?JSON.parse('{"'+decodeURIComponent(oe).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__($){return function(oe){let ae=null;if(typeof $=="function"){const{body:ie,type:le,url:pe,headers:_e}=oe;let Ce=ie;try{Ce=JSON.parse(ie)}catch{}ae=$({method:le,body:Ce,query:__param2Obj__(pe),headers:_e})}else ae=$;return Mock.mock(ae)}}function __setupMock__($=0){$&&Mock.setup({timeout:$})}const modules=Object.assign({"../mock/asyncRoutes.ts":__vite_glob_0_0,"../mock/list.ts":__vite_glob_0_1,"../mock/login.ts":__vite_glob_0_2,"../mock/map.ts":__vite_glob_0_3,"../mock/refreshToken.ts":__vite_glob_0_4,"../mock/system.ts":__vite_glob_0_5}),mockModules=[];Object.keys(modules).forEach($=>{mockModules.push(...modules[$].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=createApp(App);Object.keys(directives).forEach($=>{app.directive($,directives[$])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getServerConfig(app).then(async $=>{app.use(router),await router.isReady(),injectResponsiveStorage(app,$),setupStore(app),app.use(MotionPlugin).use(useI18n).use(installer).use(Se).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{ElInfiniteScroll as $,normalizeStyle$1 as A,markRaw as B,toDisplayString$1 as C,usePermissionStoreHook as D,extractPathList as E,Fragment as F,transformI18n as G,deleteChildren as H,In as I,Je as J,Ke as K,h$3 as L,ut as M,Et as N,getDefaultExportFromCjs as O,Pn as P,resolveDynamicComponent as Q,Hn as R,Sn as S,onUpdated as T,provide as U,onBeforeUpdate as V,normalizeProps as W,guardReactiveProps as X,useI18n$1 as Y,commonjsGlobal as Z,_export_sfc as _,onMounted as a,useRouter as a$,addDialog as a0,closeDialog as a1,closeAllDialog as a2,hot as a3,Ln as a4,http as a5,getCurrentInstance as a6,reactive as a7,onBeforeMount as a8,onUnmounted as a9,S as aA,withScopeId as aB,shallowReactive as aC,mergeProps as aD,toHandlers as aE,getAugmentedNamespace as aF,vue_runtime_esmBundler as aG,isVNode$1 as aH,customRef as aI,isClient$1 as aJ,noop$5 as aK,toValue as aL,tryOnScopeDispose$1 as aM,isIOS as aN,watchEffect as aO,toRef as aP,Teleport as aQ,inject as aR,isRef as aS,createApp as aT,withKeys as aU,shallowRef as aV,toRaw as aW,createStaticVNode as aX,withModifiers as aY,useRoute as aZ,addIcon$1 as a_,TransitionGroup as aa,normalizeClass as ab,vShow as ac,vr as ad,createCommentVNode as ae,pt as af,Ve as ag,qe as ah,Xe as ai,tryOnMounted as aj,tryOnUnmounted$1 as ak,renderSlot as al,useDebounceFn as am,Br as an,Zr as ao,useIntervalFn as ap,D$1 as aq,defineStore as ar,Kn as as,responsiveStorageNameSpace as at,getConfig as au,store as av,FontIcon as aw,IconifyIconOffline as ax,IconifyIconOnline as ay,ElMessage as az,onBeforeUnmount as b,getParentPaths as b0,findRouteByPath as b1,useMultiTagsStoreHook as b2,Mt as b3,$t as b4,Ae as b5,j$2 as b6,getTopMenu as b7,emitter as b8,Transition as b9,wr as bA,appendFieldByUniqueId as bB,getNodeByUniqueId as bC,handleAliveRoute as ba,P$1 as bb,routerArrays as bc,Ct as bd,KeepAlive as be,removeToken as bf,Qn as bg,resetRouter as bh,useMultiTagsStore as bi,storeToRefs as bj,useUserStoreHook as bk,router as bl,remainingPaths as bm,cloneVNode as bn,dayjs as bo,tn as bp,LinearGradient$1 as bq,ElMessageBox as br,render$4 as bs,Ue as bt,initRouter as bu,getAuths as bv,hasAuth as bw,Be as bx,ElCol as by,handleTree as bz,resolveComponent as c,defineComponent as d,createBlock as e,openBlock as f,createVNode as g,createTextVNode as h,createBaseVNode as i,resolveDirective as j,createElementBlock as k,renderList as l,withDirectives as m,nextTick as n,oo as o,pushScopeId as p,popScopeId as q,ref as r,axios$1 as s,_t as t,unref as u,toRef$1 as v,withCtx as w,computed as x,watch as y,zt as z};