var Fi=Object.defineProperty;var zi=(t,r,$)=>r in t?Fi(t,r,{enumerable:!0,configurable:!0,writable:!0,value:$}):t[r]=$;var ao=(t,r,$)=>(zi(t,typeof r!="symbol"?r+"":r,$),$);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const oe of document.querySelectorAll('link[rel="modulepreload"]'))V(oe);new MutationObserver(oe=>{for(const ie of oe)if(ie.type==="childList")for(const le of ie.addedNodes)le.tagName==="LINK"&&le.rel==="modulepreload"&&V(le)}).observe(document,{childList:!0,subtree:!0});function $(oe){const ie={};return oe.integrity&&(ie.integrity=oe.integrity),oe.referrerPolicy&&(ie.referrerPolicy=oe.referrerPolicy),oe.crossOrigin==="use-credentials"?ie.credentials="include":oe.crossOrigin==="anonymous"?ie.credentials="omit":ie.credentials="same-origin",ie}function V(oe){if(oe.ep)return;oe.ep=!0;const ie=$(oe);fetch(oe.href,ie)}})();function makeMap(t,r){const $=Object.create(null),V=t.split(",");for(let oe=0;oe!!$[oe.toLowerCase()]:oe=>!!$[oe]}const EMPTY_OBJ$1={},EMPTY_ARR=[],NOOP=()=>{},NO=()=>!1,onRE=/^on[^a-z]/,isOn=t=>onRE.test(t),isModelListener=t=>t.startsWith("onUpdate:"),extend$2=Object.assign,remove=(t,r)=>{const $=t.indexOf(r);$>-1&&t.splice($,1)},hasOwnProperty$h=Object.prototype.hasOwnProperty,hasOwn$4=(t,r)=>hasOwnProperty$h.call(t,r),isArray$c=Array.isArray,isMap$3=t=>toTypeString$1(t)==="[object Map]",isSet$3=t=>toTypeString$1(t)==="[object Set]",isDate$3=t=>toTypeString$1(t)==="[object Date]",isRegExp$5=t=>toTypeString$1(t)==="[object RegExp]",isFunction$5=t=>typeof t=="function",isString$6=t=>typeof t=="string",isSymbol$2=t=>typeof t=="symbol",isObject$a=t=>t!==null&&typeof t=="object",isPromise=t=>isObject$a(t)&&isFunction$5(t.then)&&isFunction$5(t.catch),objectToString$3=Object.prototype.toString,toTypeString$1=t=>objectToString$3.call(t),toRawType=t=>toTypeString$1(t).slice(8,-1),isPlainObject$4=t=>toTypeString$1(t)==="[object Object]",isIntegerKey=t=>isString$6(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,isReservedProp=makeMap(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cacheStringFunction=t=>{const r=Object.create(null);return $=>r[$]||(r[$]=t($))},camelizeRE=/-(\w)/g,camelize=cacheStringFunction(t=>t.replace(camelizeRE,(r,$)=>$?$.toUpperCase():"")),hyphenateRE=/\B([A-Z])/g,hyphenate=cacheStringFunction(t=>t.replace(hyphenateRE,"-$1").toLowerCase()),capitalize$2=cacheStringFunction(t=>t.charAt(0).toUpperCase()+t.slice(1)),toHandlerKey=cacheStringFunction(t=>t?`on${capitalize$2(t)}`:""),hasChanged=(t,r)=>!Object.is(t,r),invokeArrayFns=(t,r)=>{for(let $=0;${Object.defineProperty(t,r,{configurable:!0,enumerable:!1,value:$})},looseToNumber=t=>{const r=parseFloat(t);return isNaN(r)?t:r},toNumber$1=t=>{const r=isString$6(t)?Number(t):NaN;return isNaN(r)?t:r};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(t){if(isArray$c(t)){const r={};for(let $=0;${if($){const V=$.split(propertyDelimiterRE);V.length>1&&(r[V[0].trim()]=V[1].trim())}}),r}function normalizeClass(t){let r="";if(isString$6(t))r=t;else if(isArray$c(t))for(let $=0;$looseEqual($,r))}const toDisplayString$1=t=>isString$6(t)?t:t==null?"":isArray$c(t)||isObject$a(t)&&(t.toString===objectToString$3||!isFunction$5(t.toString))?JSON.stringify(t,replacer,2):String(t),replacer=(t,r)=>r&&r.__v_isRef?replacer(t,r.value):isMap$3(r)?{[`Map(${r.size})`]:[...r.entries()].reduce(($,[V,oe])=>($[`${V} =>`]=oe,$),{})}:isSet$3(r)?{[`Set(${r.size})`]:[...r.values()]}:isObject$a(r)&&!isArray$c(r)&&!isPlainObject$4(r)?String(r):r;let activeEffectScope;class EffectScope{constructor(r=!1){this.detached=r,this._active=!0,this.effects=[],this.cleanups=[],this.parent=activeEffectScope,!r&&activeEffectScope&&(this.index=(activeEffectScope.scopes||(activeEffectScope.scopes=[])).push(this)-1)}get active(){return this._active}run(r){if(this._active){const $=activeEffectScope;try{return activeEffectScope=this,r()}finally{activeEffectScope=$}}}on(){activeEffectScope=this}off(){activeEffectScope=this.parent}stop(r){if(this._active){let $,V;for($=0,V=this.effects.length;${const r=new Set(t);return r.w=0,r.n=0,r},wasTracked=t=>(t.w&trackOpBit)>0,newTracked=t=>(t.n&trackOpBit)>0,initDepMarkers=({deps:t})=>{if(t.length)for(let r=0;r{const{deps:r}=t;if(r.length){let $=0;for(let V=0;V{(he==="length"||he>=de)&&ue.push(pe)})}else switch($!==void 0&&ue.push(le.get($)),r){case"add":isArray$c(t)?isIntegerKey($)&&ue.push(le.get("length")):(ue.push(le.get(ITERATE_KEY)),isMap$3(t)&&ue.push(le.get(MAP_KEY_ITERATE_KEY)));break;case"delete":isArray$c(t)||(ue.push(le.get(ITERATE_KEY)),isMap$3(t)&&ue.push(le.get(MAP_KEY_ITERATE_KEY)));break;case"set":isMap$3(t)&&ue.push(le.get(ITERATE_KEY));break}if(ue.length===1)ue[0]&&triggerEffects(ue[0]);else{const de=[];for(const pe of ue)pe&&de.push(...pe);triggerEffects(createDep(de))}}function triggerEffects(t,r){const $=isArray$c(t)?t:[...t];for(const V of $)V.computed&&triggerEffect(V);for(const V of $)V.computed||triggerEffect(V)}function triggerEffect(t,r){(t!==activeEffect||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}function getDepFromReactive(t,r){var $;return($=targetMap.get(t))==null?void 0:$.get(r)}const isNonTrackableKeys=makeMap("__proto__,__v_isRef,__isVue"),builtInSymbols=new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(isSymbol$2)),get$1$1=createGetter(),shallowGet=createGetter(!1,!0),readonlyGet=createGetter(!0),shallowReadonlyGet=createGetter(!0,!0),arrayInstrumentations=createArrayInstrumentations();function createArrayInstrumentations(){const t={};return["includes","indexOf","lastIndexOf"].forEach(r=>{t[r]=function(...$){const V=toRaw(this);for(let ie=0,le=this.length;ie{t[r]=function(...$){pauseTracking();const V=toRaw(this)[r].apply(this,$);return resetTracking(),V}}),t}function hasOwnProperty$g(t){const r=toRaw(this);return track(r,"has",t),r.hasOwnProperty(t)}function createGetter(t=!1,r=!1){return function(V,oe,ie){if(oe==="__v_isReactive")return!t;if(oe==="__v_isReadonly")return t;if(oe==="__v_isShallow")return r;if(oe==="__v_raw"&&ie===(t?r?shallowReadonlyMap:readonlyMap:r?shallowReactiveMap:reactiveMap).get(V))return V;const le=isArray$c(V);if(!t){if(le&&hasOwn$4(arrayInstrumentations,oe))return Reflect.get(arrayInstrumentations,oe,ie);if(oe==="hasOwnProperty")return hasOwnProperty$g}const ue=Reflect.get(V,oe,ie);return(isSymbol$2(oe)?builtInSymbols.has(oe):isNonTrackableKeys(oe))||(t||track(V,"get",oe),r)?ue:isRef(ue)?le&&isIntegerKey(oe)?ue:ue.value:isObject$a(ue)?t?readonly(ue):reactive(ue):ue}}const set$1$1=createSetter(),shallowSet=createSetter(!0);function createSetter(t=!1){return function($,V,oe,ie){let le=$[V];if(isReadonly(le)&&isRef(le)&&!isRef(oe))return!1;if(!t&&(!isShallow(oe)&&!isReadonly(oe)&&(le=toRaw(le),oe=toRaw(oe)),!isArray$c($)&&isRef(le)&&!isRef(oe)))return le.value=oe,!0;const ue=isArray$c($)&&isIntegerKey(V)?Number(V)<$.length:hasOwn$4($,V),de=Reflect.set($,V,oe,ie);return $===toRaw(ie)&&(ue?hasChanged(oe,le)&&trigger$2($,"set",V,oe):trigger$2($,"add",V,oe)),de}}function deleteProperty(t,r){const $=hasOwn$4(t,r);t[r];const V=Reflect.deleteProperty(t,r);return V&&$&&trigger$2(t,"delete",r,void 0),V}function has$1$1(t,r){const $=Reflect.has(t,r);return(!isSymbol$2(r)||!builtInSymbols.has(r))&&track(t,"has",r),$}function ownKeys(t){return track(t,"iterate",isArray$c(t)?"length":ITERATE_KEY),Reflect.ownKeys(t)}const mutableHandlers={get:get$1$1,set:set$1$1,deleteProperty,has:has$1$1,ownKeys},readonlyHandlers={get:readonlyGet,set(t,r){return!0},deleteProperty(t,r){return!0}},shallowReactiveHandlers=extend$2({},mutableHandlers,{get:shallowGet,set:shallowSet}),shallowReadonlyHandlers=extend$2({},readonlyHandlers,{get:shallowReadonlyGet}),toShallow=t=>t,getProto$1=t=>Reflect.getPrototypeOf(t);function get$2(t,r,$=!1,V=!1){t=t.__v_raw;const oe=toRaw(t),ie=toRaw(r);$||(r!==ie&&track(oe,"get",r),track(oe,"get",ie));const{has:le}=getProto$1(oe),ue=V?toShallow:$?toReadonly:toReactive;if(le.call(oe,r))return ue(t.get(r));if(le.call(oe,ie))return ue(t.get(ie));t!==oe&&t.get(r)}function has$5(t,r=!1){const $=this.__v_raw,V=toRaw($),oe=toRaw(t);return r||(t!==oe&&track(V,"has",t),track(V,"has",oe)),t===oe?$.has(t):$.has(t)||$.has(oe)}function size(t,r=!1){return t=t.__v_raw,!r&&track(toRaw(t),"iterate",ITERATE_KEY),Reflect.get(t,"size",t)}function add$1(t){t=toRaw(t);const r=toRaw(this);return getProto$1(r).has.call(r,t)||(r.add(t),trigger$2(r,"add",t,t)),this}function set$3(t,r){r=toRaw(r);const $=toRaw(this),{has:V,get:oe}=getProto$1($);let ie=V.call($,t);ie||(t=toRaw(t),ie=V.call($,t));const le=oe.call($,t);return $.set(t,r),ie?hasChanged(r,le)&&trigger$2($,"set",t,r):trigger$2($,"add",t,r),this}function deleteEntry(t){const r=toRaw(this),{has:$,get:V}=getProto$1(r);let oe=$.call(r,t);oe||(t=toRaw(t),oe=$.call(r,t)),V&&V.call(r,t);const ie=r.delete(t);return oe&&trigger$2(r,"delete",t,void 0),ie}function clear$2(){const t=toRaw(this),r=t.size!==0,$=t.clear();return r&&trigger$2(t,"clear",void 0,void 0),$}function createForEach(t,r){return function(V,oe){const ie=this,le=ie.__v_raw,ue=toRaw(le),de=r?toShallow:t?toReadonly:toReactive;return!t&&track(ue,"iterate",ITERATE_KEY),le.forEach((pe,he)=>V.call(oe,de(pe),de(he),ie))}}function createIterableMethod(t,r,$){return function(...V){const oe=this.__v_raw,ie=toRaw(oe),le=isMap$3(ie),ue=t==="entries"||t===Symbol.iterator&&le,de=t==="keys"&&le,pe=oe[t](...V),he=$?toShallow:r?toReadonly:toReactive;return!r&&track(ie,"iterate",de?MAP_KEY_ITERATE_KEY:ITERATE_KEY),{next(){const{value:_e,done:$e}=pe.next();return $e?{value:_e,done:$e}:{value:ue?[he(_e[0]),he(_e[1])]:he(_e),done:$e}},[Symbol.iterator](){return this}}}}function createReadonlyMethod(t){return function(...r){return t==="delete"?!1:this}}function createInstrumentations(){const t={get(ie){return get$2(this,ie)},get size(){return size(this)},has:has$5,add:add$1,set:set$3,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!1)},r={get(ie){return get$2(this,ie,!1,!0)},get size(){return size(this)},has:has$5,add:add$1,set:set$3,delete:deleteEntry,clear:clear$2,forEach:createForEach(!1,!0)},$={get(ie){return get$2(this,ie,!0)},get size(){return size(this,!0)},has(ie){return has$5.call(this,ie,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!1)},V={get(ie){return get$2(this,ie,!0,!0)},get size(){return size(this,!0)},has(ie){return has$5.call(this,ie,!0)},add:createReadonlyMethod("add"),set:createReadonlyMethod("set"),delete:createReadonlyMethod("delete"),clear:createReadonlyMethod("clear"),forEach:createForEach(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(ie=>{t[ie]=createIterableMethod(ie,!1,!1),$[ie]=createIterableMethod(ie,!0,!1),r[ie]=createIterableMethod(ie,!1,!0),V[ie]=createIterableMethod(ie,!0,!0)}),[t,$,r,V]}const[mutableInstrumentations,readonlyInstrumentations,shallowInstrumentations,shallowReadonlyInstrumentations]=createInstrumentations();function createInstrumentationGetter(t,r){const $=r?t?shallowReadonlyInstrumentations:shallowInstrumentations:t?readonlyInstrumentations:mutableInstrumentations;return(V,oe,ie)=>oe==="__v_isReactive"?!t:oe==="__v_isReadonly"?t:oe==="__v_raw"?V:Reflect.get(hasOwn$4($,oe)&&oe in V?$:V,oe,ie)}const mutableCollectionHandlers={get:createInstrumentationGetter(!1,!1)},shallowCollectionHandlers={get:createInstrumentationGetter(!1,!0)},readonlyCollectionHandlers={get:createInstrumentationGetter(!0,!1)},shallowReadonlyCollectionHandlers={get:createInstrumentationGetter(!0,!0)},reactiveMap=new WeakMap,shallowReactiveMap=new WeakMap,readonlyMap=new WeakMap,shallowReadonlyMap=new WeakMap;function targetTypeMap(t){switch(t){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function getTargetType(t){return t.__v_skip||!Object.isExtensible(t)?0:targetTypeMap(toRawType(t))}function reactive(t){return isReadonly(t)?t:createReactiveObject(t,!1,mutableHandlers,mutableCollectionHandlers,reactiveMap)}function shallowReactive(t){return createReactiveObject(t,!1,shallowReactiveHandlers,shallowCollectionHandlers,shallowReactiveMap)}function readonly(t){return createReactiveObject(t,!0,readonlyHandlers,readonlyCollectionHandlers,readonlyMap)}function shallowReadonly(t){return createReactiveObject(t,!0,shallowReadonlyHandlers,shallowReadonlyCollectionHandlers,shallowReadonlyMap)}function createReactiveObject(t,r,$,V,oe){if(!isObject$a(t)||t.__v_raw&&!(r&&t.__v_isReactive))return t;const ie=oe.get(t);if(ie)return ie;const le=getTargetType(t);if(le===0)return t;const ue=new Proxy(t,le===2?V:$);return oe.set(t,ue),ue}function isReactive(t){return isReadonly(t)?isReactive(t.__v_raw):!!(t&&t.__v_isReactive)}function isReadonly(t){return!!(t&&t.__v_isReadonly)}function isShallow(t){return!!(t&&t.__v_isShallow)}function isProxy(t){return isReactive(t)||isReadonly(t)}function toRaw(t){const r=t&&t.__v_raw;return r?toRaw(r):t}function markRaw(t){return def(t,"__v_skip",!0),t}const toReactive=t=>isObject$a(t)?reactive(t):t,toReadonly=t=>isObject$a(t)?readonly(t):t;function trackRefValue(t){shouldTrack&&activeEffect&&(t=toRaw(t),trackEffects(t.dep||(t.dep=createDep())))}function triggerRefValue(t,r){t=toRaw(t);const $=t.dep;$&&triggerEffects($)}function isRef(t){return!!(t&&t.__v_isRef===!0)}function ref(t){return createRef(t,!1)}function shallowRef(t){return createRef(t,!0)}function createRef(t,r){return isRef(t)?t:new RefImpl(t,r)}class RefImpl{constructor(r,$){this.__v_isShallow=$,this.dep=void 0,this.__v_isRef=!0,this._rawValue=$?r:toRaw(r),this._value=$?r:toReactive(r)}get value(){return trackRefValue(this),this._value}set value(r){const $=this.__v_isShallow||isShallow(r)||isReadonly(r);r=$?r:toRaw(r),hasChanged(r,this._rawValue)&&(this._rawValue=r,this._value=$?r:toReactive(r),triggerRefValue(this))}}function triggerRef(t){triggerRefValue(t)}function unref(t){return isRef(t)?t.value:t}function toValue$1(t){return isFunction$5(t)?t():unref(t)}const shallowUnwrapHandlers={get:(t,r,$)=>unref(Reflect.get(t,r,$)),set:(t,r,$,V)=>{const oe=t[r];return isRef(oe)&&!isRef($)?(oe.value=$,!0):Reflect.set(t,r,$,V)}};function proxyRefs(t){return isReactive(t)?t:new Proxy(t,shallowUnwrapHandlers)}class CustomRefImpl{constructor(r){this.dep=void 0,this.__v_isRef=!0;const{get:$,set:V}=r(()=>trackRefValue(this),()=>triggerRefValue(this));this._get=$,this._set=V}get value(){return this._get()}set value(r){this._set(r)}}function customRef(t){return new CustomRefImpl(t)}function toRefs(t){const r=isArray$c(t)?new Array(t.length):{};for(const $ in t)r[$]=propertyToRef(t,$);return r}class ObjectRefImpl{constructor(r,$,V){this._object=r,this._key=$,this._defaultValue=V,this.__v_isRef=!0}get value(){const r=this._object[this._key];return r===void 0?this._defaultValue:r}set value(r){this._object[this._key]=r}get dep(){return getDepFromReactive(toRaw(this._object),this._key)}}class GetterRefImpl{constructor(r){this._getter=r,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function toRef(t,r,$){return isRef(t)?t:isFunction$5(t)?new GetterRefImpl(t):isObject$a(t)&&arguments.length>1?propertyToRef(t,r,$):ref(t)}function propertyToRef(t,r,$){const V=t[r];return isRef(V)?V:new ObjectRefImpl(t,r,$)}class ComputedRefImpl{constructor(r,$,V,oe){this._setter=$,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new ReactiveEffect(r,()=>{this._dirty||(this._dirty=!0,triggerRefValue(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!oe,this.__v_isReadonly=V}get value(){const r=toRaw(this);return trackRefValue(r),(r._dirty||!r._cacheable)&&(r._dirty=!1,r._value=r.effect.run()),r._value}set value(r){this._setter(r)}}function computed$1(t,r,$=!1){let V,oe;const ie=isFunction$5(t);return ie?(V=t,oe=NOOP):(V=t.get,oe=t.set),new ComputedRefImpl(V,oe,ie||!oe,$)}function warn$2(t,...r){}function assertNumber(t,r){}function callWithErrorHandling(t,r,$,V){let oe;try{oe=V?t(...V):t()}catch(ie){handleError(ie,r,$)}return oe}function callWithAsyncErrorHandling(t,r,$,V){if(isFunction$5(t)){const ie=callWithErrorHandling(t,r,$,V);return ie&&isPromise(ie)&&ie.catch(le=>{handleError(le,r,$)}),ie}const oe=[];for(let ie=0;ie>>1;getId$1(queue[V])flushIndex&&queue.splice(r,1)}function queuePostFlushCb(t){isArray$c(t)?pendingPostFlushCbs.push(...t):(!activePostFlushCbs||!activePostFlushCbs.includes(t,t.allowRecurse?postFlushIndex+1:postFlushIndex))&&pendingPostFlushCbs.push(t),queueFlush()}function flushPreFlushCbs(t,r=isFlushing?flushIndex+1:0){for(;rgetId$1($)-getId$1(V)),postFlushIndex=0;postFlushIndext.id==null?1/0:t.id,comparator=(t,r)=>{const $=getId$1(t)-getId$1(r);if($===0){if(t.pre&&!r.pre)return-1;if(r.pre&&!t.pre)return 1}return $};function flushJobs(t){isFlushPending=!1,isFlushing=!0,queue.sort(comparator);const r=NOOP;try{for(flushIndex=0;flushIndexdevtools.emit(oe,...ie)),buffer=[]):typeof window<"u"&&window.HTMLElement&&!((V=($=window.navigator)==null?void 0:$.userAgent)!=null&&V.includes("jsdom"))?((r.__VUE_DEVTOOLS_HOOK_REPLAY__=r.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(ie=>{setDevtoolsHook(ie,r)}),setTimeout(()=>{devtools||(r.__VUE_DEVTOOLS_HOOK_REPLAY__=null,buffer=[])},3e3)):buffer=[]}function emit(t,r,...$){if(t.isUnmounted)return;const V=t.vnode.props||EMPTY_OBJ$1;let oe=$;const ie=r.startsWith("update:"),le=ie&&r.slice(7);if(le&&le in V){const he=`${le==="modelValue"?"model":le}Modifiers`,{number:_e,trim:$e}=V[he]||EMPTY_OBJ$1;$e&&(oe=$.map(Ie=>isString$6(Ie)?Ie.trim():Ie)),_e&&(oe=$.map(looseToNumber))}let ue,de=V[ue=toHandlerKey(r)]||V[ue=toHandlerKey(camelize(r))];!de&&ie&&(de=V[ue=toHandlerKey(hyphenate(r))]),de&&callWithAsyncErrorHandling(de,t,6,oe);const pe=V[ue+"Once"];if(pe){if(!t.emitted)t.emitted={};else if(t.emitted[ue])return;t.emitted[ue]=!0,callWithAsyncErrorHandling(pe,t,6,oe)}}function normalizeEmitsOptions(t,r,$=!1){const V=r.emitsCache,oe=V.get(t);if(oe!==void 0)return oe;const ie=t.emits;let le={},ue=!1;if(!isFunction$5(t)){const de=pe=>{const he=normalizeEmitsOptions(pe,r,!0);he&&(ue=!0,extend$2(le,he))};!$&&r.mixins.length&&r.mixins.forEach(de),t.extends&&de(t.extends),t.mixins&&t.mixins.forEach(de)}return!ie&&!ue?(isObject$a(t)&&V.set(t,null),null):(isArray$c(ie)?ie.forEach(de=>le[de]=null):extend$2(le,ie),isObject$a(t)&&V.set(t,le),le)}function isEmitListener(t,r){return!t||!isOn(r)?!1:(r=r.slice(2).replace(/Once$/,""),hasOwn$4(t,r[0].toLowerCase()+r.slice(1))||hasOwn$4(t,hyphenate(r))||hasOwn$4(t,r))}let currentRenderingInstance=null,currentScopeId=null;function setCurrentRenderingInstance(t){const r=currentRenderingInstance;return currentRenderingInstance=t,currentScopeId=t&&t.type.__scopeId||null,r}function pushScopeId(t){currentScopeId=t}function popScopeId(){currentScopeId=null}const withScopeId=t=>withCtx;function withCtx(t,r=currentRenderingInstance,$){if(!r||t._n)return t;const V=(...oe)=>{V._d&&setBlockTracking(-1);const ie=setCurrentRenderingInstance(r);let le;try{le=t(...oe)}finally{setCurrentRenderingInstance(ie),V._d&&setBlockTracking(1)}return le};return V._n=!0,V._c=!0,V._d=!0,V}function markAttrsAccessed(){}function renderComponentRoot(t){const{type:r,vnode:$,proxy:V,withProxy:oe,props:ie,propsOptions:[le],slots:ue,attrs:de,emit:pe,render:he,renderCache:_e,data:$e,setupState:Ie,ctx:Ve,inheritAttrs:Fe}=t;let Ue,qe;const Et=setCurrentRenderingInstance(t);try{if($.shapeFlag&4){const hn=oe||V;Ue=normalizeVNode(he.call(hn,hn,_e,ie,Ie,$e,Ve)),qe=de}else{const hn=r;Ue=normalizeVNode(hn.length>1?hn(ie,{attrs:de,slots:ue,emit:pe}):hn(ie,null)),qe=r.props?de:getFunctionalFallthrough(de)}}catch(hn){blockStack.length=0,handleError(hn,t,1),Ue=createVNode(Comment)}let Lt=Ue;if(qe&&Fe!==!1){const hn=Object.keys(qe),{shapeFlag:Cn}=Lt;hn.length&&Cn&7&&(le&&hn.some(isModelListener)&&(qe=filterModelListeners(qe,le)),Lt=cloneVNode(Lt,qe))}return $.dirs&&(Lt=cloneVNode(Lt),Lt.dirs=Lt.dirs?Lt.dirs.concat($.dirs):$.dirs),$.transition&&(Lt.transition=$.transition),Ue=Lt,setCurrentRenderingInstance(Et),Ue}function filterSingleRoot(t){let r;for(let $=0;${let r;for(const $ in t)($==="class"||$==="style"||isOn($))&&((r||(r={}))[$]=t[$]);return r},filterModelListeners=(t,r)=>{const $={};for(const V in t)(!isModelListener(V)||!(V.slice(9)in r))&&($[V]=t[V]);return $};function shouldUpdateComponent(t,r,$){const{props:V,children:oe,component:ie}=t,{props:le,children:ue,patchFlag:de}=r,pe=ie.emitsOptions;if(r.dirs||r.transition)return!0;if($&&de>=0){if(de&1024)return!0;if(de&16)return V?hasPropsChanged(V,le,pe):!!le;if(de&8){const he=r.dynamicProps;for(let _e=0;_et.__isSuspense,SuspenseImpl={name:"Suspense",__isSuspense:!0,process(t,r,$,V,oe,ie,le,ue,de,pe){t==null?mountSuspense(r,$,V,oe,ie,le,ue,de,pe):patchSuspense(t,r,$,V,oe,le,ue,de,pe)},hydrate:hydrateSuspense,create:createSuspenseBoundary,normalize:normalizeSuspenseChildren},Suspense=SuspenseImpl;function triggerEvent$1(t,r){const $=t.props&&t.props[r];isFunction$5($)&&$()}function mountSuspense(t,r,$,V,oe,ie,le,ue,de){const{p:pe,o:{createElement:he}}=de,_e=he("div"),$e=t.suspense=createSuspenseBoundary(t,oe,V,r,_e,$,ie,le,ue,de);pe(null,$e.pendingBranch=t.ssContent,_e,null,V,$e,ie,le),$e.deps>0?(triggerEvent$1(t,"onPending"),triggerEvent$1(t,"onFallback"),pe(null,t.ssFallback,r,$,V,null,ie,le),setActiveBranch($e,t.ssFallback)):$e.resolve(!1,!0)}function patchSuspense(t,r,$,V,oe,ie,le,ue,{p:de,um:pe,o:{createElement:he}}){const _e=r.suspense=t.suspense;_e.vnode=r,r.el=t.el;const $e=r.ssContent,Ie=r.ssFallback,{activeBranch:Ve,pendingBranch:Fe,isInFallback:Ue,isHydrating:qe}=_e;if(Fe)_e.pendingBranch=$e,isSameVNodeType($e,Fe)?(de(Fe,$e,_e.hiddenContainer,null,oe,_e,ie,le,ue),_e.deps<=0?_e.resolve():Ue&&(de(Ve,Ie,$,V,oe,null,ie,le,ue),setActiveBranch(_e,Ie))):(_e.pendingId++,qe?(_e.isHydrating=!1,_e.activeBranch=Fe):pe(Fe,oe,_e),_e.deps=0,_e.effects.length=0,_e.hiddenContainer=he("div"),Ue?(de(null,$e,_e.hiddenContainer,null,oe,_e,ie,le,ue),_e.deps<=0?_e.resolve():(de(Ve,Ie,$,V,oe,null,ie,le,ue),setActiveBranch(_e,Ie))):Ve&&isSameVNodeType($e,Ve)?(de(Ve,$e,$,V,oe,_e,ie,le,ue),_e.resolve(!0)):(de(null,$e,_e.hiddenContainer,null,oe,_e,ie,le,ue),_e.deps<=0&&_e.resolve()));else if(Ve&&isSameVNodeType($e,Ve))de(Ve,$e,$,V,oe,_e,ie,le,ue),setActiveBranch(_e,$e);else if(triggerEvent$1(r,"onPending"),_e.pendingBranch=$e,_e.pendingId++,de(null,$e,_e.hiddenContainer,null,oe,_e,ie,le,ue),_e.deps<=0)_e.resolve();else{const{timeout:Et,pendingId:Lt}=_e;Et>0?setTimeout(()=>{_e.pendingId===Lt&&_e.fallback(Ie)},Et):Et===0&&_e.fallback(Ie)}}function createSuspenseBoundary(t,r,$,V,oe,ie,le,ue,de,pe,he=!1){const{p:_e,m:$e,um:Ie,n:Ve,o:{parentNode:Fe,remove:Ue}}=pe;let qe;const Et=isVNodeSuspensible(t);Et&&r!=null&&r.pendingBranch&&(qe=r.pendingId,r.deps++);const Lt=t.props?toNumber$1(t.props.timeout):void 0,hn={vnode:t,parent:r,parentComponent:$,isSVG:le,container:V,hiddenContainer:oe,anchor:ie,deps:0,pendingId:0,timeout:typeof Lt=="number"?Lt:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:he,isUnmounted:!1,effects:[],resolve(Cn=!1,bn=!1){const{vnode:Sn,activeBranch:En,pendingBranch:wn,pendingId:$n,effects:Tn,parentComponent:xn,container:An}=hn;if(hn.isHydrating)hn.isHydrating=!1;else if(!Cn){const Bn=En&&wn.transition&&wn.transition.mode==="out-in";Bn&&(En.transition.afterLeave=()=>{$n===hn.pendingId&&$e(wn,An,Dn,0)});let{anchor:Dn}=hn;En&&(Dn=Ve(En),Ie(En,xn,hn,!0)),Bn||$e(wn,An,Dn,0)}setActiveBranch(hn,wn),hn.pendingBranch=null,hn.isInFallback=!1;let Mn=hn.parent,Vn=!1;for(;Mn;){if(Mn.pendingBranch){Mn.effects.push(...Tn),Vn=!0;break}Mn=Mn.parent}Vn||queuePostFlushCb(Tn),hn.effects=[],Et&&r&&r.pendingBranch&&qe===r.pendingId&&(r.deps--,r.deps===0&&!bn&&r.resolve()),triggerEvent$1(Sn,"onResolve")},fallback(Cn){if(!hn.pendingBranch)return;const{vnode:bn,activeBranch:Sn,parentComponent:En,container:wn,isSVG:$n}=hn;triggerEvent$1(bn,"onFallback");const Tn=Ve(Sn),xn=()=>{hn.isInFallback&&(_e(null,Cn,wn,Tn,En,null,$n,ue,de),setActiveBranch(hn,Cn))},An=Cn.transition&&Cn.transition.mode==="out-in";An&&(Sn.transition.afterLeave=xn),hn.isInFallback=!0,Ie(Sn,En,null,!0),An||xn()},move(Cn,bn,Sn){hn.activeBranch&&$e(hn.activeBranch,Cn,bn,Sn),hn.container=Cn},next(){return hn.activeBranch&&Ve(hn.activeBranch)},registerDep(Cn,bn){const Sn=!!hn.pendingBranch;Sn&&hn.deps++;const En=Cn.vnode.el;Cn.asyncDep.catch(wn=>{handleError(wn,Cn,0)}).then(wn=>{if(Cn.isUnmounted||hn.isUnmounted||hn.pendingId!==Cn.suspenseId)return;Cn.asyncResolved=!0;const{vnode:$n}=Cn;handleSetupResult(Cn,wn,!1),En&&($n.el=En);const Tn=!En&&Cn.subTree.el;bn(Cn,$n,Fe(En||Cn.subTree.el),En?null:Ve(Cn.subTree),hn,le,de),Tn&&Ue(Tn),updateHOCHostEl(Cn,$n.el),Sn&&--hn.deps===0&&hn.resolve()})},unmount(Cn,bn){hn.isUnmounted=!0,hn.activeBranch&&Ie(hn.activeBranch,$,Cn,bn),hn.pendingBranch&&Ie(hn.pendingBranch,$,Cn,bn)}};return hn}function hydrateSuspense(t,r,$,V,oe,ie,le,ue,de){const pe=r.suspense=createSuspenseBoundary(r,V,$,t.parentNode,document.createElement("div"),null,oe,ie,le,ue,!0),he=de(t,pe.pendingBranch=r.ssContent,$,pe,ie,le);return pe.deps===0&&pe.resolve(!1,!0),he}function normalizeSuspenseChildren(t){const{shapeFlag:r,children:$}=t,V=r&32;t.ssContent=normalizeSuspenseSlot(V?$.default:$),t.ssFallback=V?normalizeSuspenseSlot($.fallback):createVNode(Comment)}function normalizeSuspenseSlot(t){let r;if(isFunction$5(t)){const $=isBlockTreeEnabled&&t._c;$&&(t._d=!1,openBlock()),t=t(),$&&(t._d=!0,r=currentBlock,closeBlock())}return isArray$c(t)&&(t=filterSingleRoot(t)),t=normalizeVNode(t),r&&!t.dynamicChildren&&(t.dynamicChildren=r.filter($=>$!==t)),t}function queueEffectWithSuspense(t,r){r&&r.pendingBranch?isArray$c(t)?r.effects.push(...t):r.effects.push(t):queuePostFlushCb(t)}function setActiveBranch(t,r){t.activeBranch=r;const{vnode:$,parentComponent:V}=t,oe=$.el=r.el;V&&V.subTree===$&&(V.vnode.el=oe,updateHOCHostEl(V,oe))}function isVNodeSuspensible(t){var r;return((r=t.props)==null?void 0:r.suspensible)!=null&&t.props.suspensible!==!1}function watchEffect(t,r){return doWatch(t,null,r)}function watchPostEffect(t,r){return doWatch(t,null,{flush:"post"})}function watchSyncEffect(t,r){return doWatch(t,null,{flush:"sync"})}const INITIAL_WATCHER_VALUE={};function watch(t,r,$){return doWatch(t,r,$)}function doWatch(t,r,{immediate:$,deep:V,flush:oe,onTrack:ie,onTrigger:le}=EMPTY_OBJ$1){var ue;const de=getCurrentScope()===((ue=currentInstance)==null?void 0:ue.scope)?currentInstance:null;let pe,he=!1,_e=!1;if(isRef(t)?(pe=()=>t.value,he=isShallow(t)):isReactive(t)?(pe=()=>t,V=!0):isArray$c(t)?(_e=!0,he=t.some(hn=>isReactive(hn)||isShallow(hn)),pe=()=>t.map(hn=>{if(isRef(hn))return hn.value;if(isReactive(hn))return traverse(hn);if(isFunction$5(hn))return callWithErrorHandling(hn,de,2)})):isFunction$5(t)?r?pe=()=>callWithErrorHandling(t,de,2):pe=()=>{if(!(de&&de.isUnmounted))return $e&&$e(),callWithAsyncErrorHandling(t,de,3,[Ie])}:pe=NOOP,r&&V){const hn=pe;pe=()=>traverse(hn())}let $e,Ie=hn=>{$e=Et.onStop=()=>{callWithErrorHandling(hn,de,4)}},Ve;if(isInSSRComponentSetup)if(Ie=NOOP,r?$&&callWithAsyncErrorHandling(r,de,3,[pe(),_e?[]:void 0,Ie]):pe(),oe==="sync"){const hn=useSSRContext();Ve=hn.__watcherHandles||(hn.__watcherHandles=[])}else return NOOP;let Fe=_e?new Array(t.length).fill(INITIAL_WATCHER_VALUE):INITIAL_WATCHER_VALUE;const Ue=()=>{if(Et.active)if(r){const hn=Et.run();(V||he||(_e?hn.some((Cn,bn)=>hasChanged(Cn,Fe[bn])):hasChanged(hn,Fe)))&&($e&&$e(),callWithAsyncErrorHandling(r,de,3,[hn,Fe===INITIAL_WATCHER_VALUE?void 0:_e&&Fe[0]===INITIAL_WATCHER_VALUE?[]:Fe,Ie]),Fe=hn)}else Et.run()};Ue.allowRecurse=!!r;let qe;oe==="sync"?qe=Ue:oe==="post"?qe=()=>queuePostRenderEffect(Ue,de&&de.suspense):(Ue.pre=!0,de&&(Ue.id=de.uid),qe=()=>queueJob(Ue));const Et=new ReactiveEffect(pe,qe);r?$?Ue():Fe=Et.run():oe==="post"?queuePostRenderEffect(Et.run.bind(Et),de&&de.suspense):Et.run();const Lt=()=>{Et.stop(),de&&de.scope&&remove(de.scope.effects,Et)};return Ve&&Ve.push(Lt),Lt}function instanceWatch(t,r,$){const V=this.proxy,oe=isString$6(t)?t.includes(".")?createPathGetter(V,t):()=>V[t]:t.bind(V,V);let ie;isFunction$5(r)?ie=r:(ie=r.handler,$=r);const le=currentInstance;setCurrentInstance(this);const ue=doWatch(oe,ie.bind(V),$);return le?setCurrentInstance(le):unsetCurrentInstance(),ue}function createPathGetter(t,r){const $=r.split(".");return()=>{let V=t;for(let oe=0;oe<$.length&&V;oe++)V=V[$[oe]];return V}}function traverse(t,r){if(!isObject$a(t)||t.__v_skip||(r=r||new Set,r.has(t)))return t;if(r.add(t),isRef(t))traverse(t.value,r);else if(isArray$c(t))for(let $=0;${traverse($,r)});else if(isPlainObject$4(t))for(const $ in t)traverse(t[$],r);return t}function withDirectives(t,r){const $=currentRenderingInstance;if($===null)return t;const V=getExposeProxy($)||$.proxy,oe=t.dirs||(t.dirs=[]);for(let ie=0;ie{t.isMounted=!0}),onBeforeUnmount(()=>{t.isUnmounting=!0}),t}const TransitionHookValidator=[Function,Array],BaseTransitionPropsValidators={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:TransitionHookValidator,onEnter:TransitionHookValidator,onAfterEnter:TransitionHookValidator,onEnterCancelled:TransitionHookValidator,onBeforeLeave:TransitionHookValidator,onLeave:TransitionHookValidator,onAfterLeave:TransitionHookValidator,onLeaveCancelled:TransitionHookValidator,onBeforeAppear:TransitionHookValidator,onAppear:TransitionHookValidator,onAfterAppear:TransitionHookValidator,onAppearCancelled:TransitionHookValidator},BaseTransitionImpl={name:"BaseTransition",props:BaseTransitionPropsValidators,setup(t,{slots:r}){const $=getCurrentInstance(),V=useTransitionState();let oe;return()=>{const ie=r.default&&getTransitionRawChildren(r.default(),!0);if(!ie||!ie.length)return;let le=ie[0];if(ie.length>1){for(const Fe of ie)if(Fe.type!==Comment){le=Fe;break}}const ue=toRaw(t),{mode:de}=ue;if(V.isLeaving)return emptyPlaceholder(le);const pe=getKeepAliveChild(le);if(!pe)return emptyPlaceholder(le);const he=resolveTransitionHooks(pe,ue,V,$);setTransitionHooks(pe,he);const _e=$.subTree,$e=_e&&getKeepAliveChild(_e);let Ie=!1;const{getTransitionKey:Ve}=pe.type;if(Ve){const Fe=Ve();oe===void 0?oe=Fe:Fe!==oe&&(oe=Fe,Ie=!0)}if($e&&$e.type!==Comment&&(!isSameVNodeType(pe,$e)||Ie)){const Fe=resolveTransitionHooks($e,ue,V,$);if(setTransitionHooks($e,Fe),de==="out-in")return V.isLeaving=!0,Fe.afterLeave=()=>{V.isLeaving=!1,$.update.active!==!1&&$.update()},emptyPlaceholder(le);de==="in-out"&&pe.type!==Comment&&(Fe.delayLeave=(Ue,qe,Et)=>{const Lt=getLeavingNodesForType(V,$e);Lt[String($e.key)]=$e,Ue._leaveCb=()=>{qe(),Ue._leaveCb=void 0,delete he.delayedLeave},he.delayedLeave=Et})}return le}}},BaseTransition=BaseTransitionImpl;function getLeavingNodesForType(t,r){const{leavingVNodes:$}=t;let V=$.get(r.type);return V||(V=Object.create(null),$.set(r.type,V)),V}function resolveTransitionHooks(t,r,$,V){const{appear:oe,mode:ie,persisted:le=!1,onBeforeEnter:ue,onEnter:de,onAfterEnter:pe,onEnterCancelled:he,onBeforeLeave:_e,onLeave:$e,onAfterLeave:Ie,onLeaveCancelled:Ve,onBeforeAppear:Fe,onAppear:Ue,onAfterAppear:qe,onAppearCancelled:Et}=r,Lt=String(t.key),hn=getLeavingNodesForType($,t),Cn=(En,wn)=>{En&&callWithAsyncErrorHandling(En,V,9,wn)},bn=(En,wn)=>{const $n=wn[1];Cn(En,wn),isArray$c(En)?En.every(Tn=>Tn.length<=1)&&$n():En.length<=1&&$n()},Sn={mode:ie,persisted:le,beforeEnter(En){let wn=ue;if(!$.isMounted)if(oe)wn=Fe||ue;else return;En._leaveCb&&En._leaveCb(!0);const $n=hn[Lt];$n&&isSameVNodeType(t,$n)&&$n.el._leaveCb&&$n.el._leaveCb(),Cn(wn,[En])},enter(En){let wn=de,$n=pe,Tn=he;if(!$.isMounted)if(oe)wn=Ue||de,$n=qe||pe,Tn=Et||he;else return;let xn=!1;const An=En._enterCb=Mn=>{xn||(xn=!0,Mn?Cn(Tn,[En]):Cn($n,[En]),Sn.delayedLeave&&Sn.delayedLeave(),En._enterCb=void 0)};wn?bn(wn,[En,An]):An()},leave(En,wn){const $n=String(t.key);if(En._enterCb&&En._enterCb(!0),$.isUnmounting)return wn();Cn(_e,[En]);let Tn=!1;const xn=En._leaveCb=An=>{Tn||(Tn=!0,wn(),An?Cn(Ve,[En]):Cn(Ie,[En]),En._leaveCb=void 0,hn[$n]===t&&delete hn[$n])};hn[$n]=t,$e?bn($e,[En,xn]):xn()},clone(En){return resolveTransitionHooks(En,r,$,V)}};return Sn}function emptyPlaceholder(t){if(isKeepAlive(t))return t=cloneVNode(t),t.children=null,t}function getKeepAliveChild(t){return isKeepAlive(t)?t.children?t.children[0]:void 0:t}function setTransitionHooks(t,r){t.shapeFlag&6&&t.component?setTransitionHooks(t.component.subTree,r):t.shapeFlag&128?(t.ssContent.transition=r.clone(t.ssContent),t.ssFallback.transition=r.clone(t.ssFallback)):t.transition=r}function getTransitionRawChildren(t,r=!1,$){let V=[],oe=0;for(let ie=0;ie1)for(let ie=0;ieextend$2({name:t.name},r,{setup:t}))():t}const isAsyncWrapper=t=>!!t.type.__asyncLoader;function defineAsyncComponent(t){isFunction$5(t)&&(t={loader:t});const{loader:r,loadingComponent:$,errorComponent:V,delay:oe=200,timeout:ie,suspensible:le=!0,onError:ue}=t;let de=null,pe,he=0;const _e=()=>(he++,de=null,$e()),$e=()=>{let Ie;return de||(Ie=de=r().catch(Ve=>{if(Ve=Ve instanceof Error?Ve:new Error(String(Ve)),ue)return new Promise((Fe,Ue)=>{ue(Ve,()=>Fe(_e()),()=>Ue(Ve),he+1)});throw Ve}).then(Ve=>Ie!==de&&de?de:(Ve&&(Ve.__esModule||Ve[Symbol.toStringTag]==="Module")&&(Ve=Ve.default),pe=Ve,Ve)))};return defineComponent({name:"AsyncComponentWrapper",__asyncLoader:$e,get __asyncResolved(){return pe},setup(){const Ie=currentInstance;if(pe)return()=>createInnerComp(pe,Ie);const Ve=Et=>{de=null,handleError(Et,Ie,13,!V)};if(le&&Ie.suspense||isInSSRComponentSetup)return $e().then(Et=>()=>createInnerComp(Et,Ie)).catch(Et=>(Ve(Et),()=>V?createVNode(V,{error:Et}):null));const Fe=ref(!1),Ue=ref(),qe=ref(!!oe);return oe&&setTimeout(()=>{qe.value=!1},oe),ie!=null&&setTimeout(()=>{if(!Fe.value&&!Ue.value){const Et=new Error(`Async component timed out after ${ie}ms.`);Ve(Et),Ue.value=Et}},ie),$e().then(()=>{Fe.value=!0,Ie.parent&&isKeepAlive(Ie.parent.vnode)&&queueJob(Ie.parent.update)}).catch(Et=>{Ve(Et),Ue.value=Et}),()=>{if(Fe.value&&pe)return createInnerComp(pe,Ie);if(Ue.value&&V)return createVNode(V,{error:Ue.value});if($&&!qe.value)return createVNode($)}}})}function createInnerComp(t,r){const{ref:$,props:V,children:oe,ce:ie}=r.vnode,le=createVNode(t,V,oe);return le.ref=$,le.ce=ie,delete r.vnode.ce,le}const isKeepAlive=t=>t.type.__isKeepAlive,KeepAliveImpl={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(t,{slots:r}){const $=getCurrentInstance(),V=$.ctx;if(!V.renderer)return()=>{const Et=r.default&&r.default();return Et&&Et.length===1?Et[0]:Et};const oe=new Map,ie=new Set;let le=null;const ue=$.suspense,{renderer:{p:de,m:pe,um:he,o:{createElement:_e}}}=V,$e=_e("div");V.activate=(Et,Lt,hn,Cn,bn)=>{const Sn=Et.component;pe(Et,Lt,hn,0,ue),de(Sn.vnode,Et,Lt,hn,Sn,ue,Cn,Et.slotScopeIds,bn),queuePostRenderEffect(()=>{Sn.isDeactivated=!1,Sn.a&&invokeArrayFns(Sn.a);const En=Et.props&&Et.props.onVnodeMounted;En&&invokeVNodeHook(En,Sn.parent,Et)},ue)},V.deactivate=Et=>{const Lt=Et.component;pe(Et,$e,null,1,ue),queuePostRenderEffect(()=>{Lt.da&&invokeArrayFns(Lt.da);const hn=Et.props&&Et.props.onVnodeUnmounted;hn&&invokeVNodeHook(hn,Lt.parent,Et),Lt.isDeactivated=!0},ue)};function Ie(Et){resetShapeFlag(Et),he(Et,$,ue,!0)}function Ve(Et){oe.forEach((Lt,hn)=>{const Cn=getComponentName(Lt.type);Cn&&(!Et||!Et(Cn))&&Fe(hn)})}function Fe(Et){const Lt=oe.get(Et);!le||!isSameVNodeType(Lt,le)?Ie(Lt):le&&resetShapeFlag(le),oe.delete(Et),ie.delete(Et)}watch(()=>[t.include,t.exclude],([Et,Lt])=>{Et&&Ve(hn=>matches(Et,hn)),Lt&&Ve(hn=>!matches(Lt,hn))},{flush:"post",deep:!0});let Ue=null;const qe=()=>{Ue!=null&&oe.set(Ue,getInnerChild($.subTree))};return onMounted(qe),onUpdated(qe),onBeforeUnmount(()=>{oe.forEach(Et=>{const{subTree:Lt,suspense:hn}=$,Cn=getInnerChild(Lt);if(Et.type===Cn.type&&Et.key===Cn.key){resetShapeFlag(Cn);const bn=Cn.component.da;bn&&queuePostRenderEffect(bn,hn);return}Ie(Et)})}),()=>{if(Ue=null,!r.default)return null;const Et=r.default(),Lt=Et[0];if(Et.length>1)return le=null,Et;if(!isVNode$1(Lt)||!(Lt.shapeFlag&4)&&!(Lt.shapeFlag&128))return le=null,Lt;let hn=getInnerChild(Lt);const Cn=hn.type,bn=getComponentName(isAsyncWrapper(hn)?hn.type.__asyncResolved||{}:Cn),{include:Sn,exclude:En,max:wn}=t;if(Sn&&(!bn||!matches(Sn,bn))||En&&bn&&matches(En,bn))return le=hn,Lt;const $n=hn.key==null?Cn:hn.key,Tn=oe.get($n);return hn.el&&(hn=cloneVNode(hn),Lt.shapeFlag&128&&(Lt.ssContent=hn)),Ue=$n,Tn?(hn.el=Tn.el,hn.component=Tn.component,hn.transition&&setTransitionHooks(hn,hn.transition),hn.shapeFlag|=512,ie.delete($n),ie.add($n)):(ie.add($n),wn&&ie.size>parseInt(wn,10)&&Fe(ie.values().next().value)),hn.shapeFlag|=256,le=hn,isSuspense(Lt.type)?Lt:hn}}},KeepAlive=KeepAliveImpl;function matches(t,r){return isArray$c(t)?t.some($=>matches($,r)):isString$6(t)?t.split(",").includes(r):isRegExp$5(t)?t.test(r):!1}function onActivated(t,r){registerKeepAliveHook(t,"a",r)}function onDeactivated(t,r){registerKeepAliveHook(t,"da",r)}function registerKeepAliveHook(t,r,$=currentInstance){const V=t.__wdc||(t.__wdc=()=>{let oe=$;for(;oe;){if(oe.isDeactivated)return;oe=oe.parent}return t()});if(injectHook(r,V,$),$){let oe=$.parent;for(;oe&&oe.parent;)isKeepAlive(oe.parent.vnode)&&injectToKeepAliveRoot(V,r,$,oe),oe=oe.parent}}function injectToKeepAliveRoot(t,r,$,V){const oe=injectHook(r,t,V,!0);onUnmounted(()=>{remove(V[r],oe)},$)}function resetShapeFlag(t){t.shapeFlag&=-257,t.shapeFlag&=-513}function getInnerChild(t){return t.shapeFlag&128?t.ssContent:t}function injectHook(t,r,$=currentInstance,V=!1){if($){const oe=$[t]||($[t]=[]),ie=r.__weh||(r.__weh=(...le)=>{if($.isUnmounted)return;pauseTracking(),setCurrentInstance($);const ue=callWithAsyncErrorHandling(r,$,t,le);return unsetCurrentInstance(),resetTracking(),ue});return V?oe.unshift(ie):oe.push(ie),ie}}const createHook=t=>(r,$=currentInstance)=>(!isInSSRComponentSetup||t==="sp")&&injectHook(t,(...V)=>r(...V),$),onBeforeMount=createHook("bm"),onMounted=createHook("m"),onBeforeUpdate=createHook("bu"),onUpdated=createHook("u"),onBeforeUnmount=createHook("bum"),onUnmounted=createHook("um"),onServerPrefetch=createHook("sp"),onRenderTriggered=createHook("rtg"),onRenderTracked=createHook("rtc");function onErrorCaptured(t,r=currentInstance){injectHook("ec",t,r)}const COMPONENTS="components",DIRECTIVES="directives";function resolveComponent(t,r){return resolveAsset(COMPONENTS,t,!0,r)||t}const NULL_DYNAMIC_COMPONENT=Symbol.for("v-ndc");function resolveDynamicComponent(t){return isString$6(t)?resolveAsset(COMPONENTS,t,!1)||t:t||NULL_DYNAMIC_COMPONENT}function resolveDirective(t){return resolveAsset(DIRECTIVES,t)}function resolveAsset(t,r,$=!0,V=!1){const oe=currentRenderingInstance||currentInstance;if(oe){const ie=oe.type;if(t===COMPONENTS){const ue=getComponentName(ie,!1);if(ue&&(ue===r||ue===camelize(r)||ue===capitalize$2(camelize(r))))return ie}const le=resolve(oe[t]||ie[t],r)||resolve(oe.appContext[t],r);return!le&&V?ie:le}}function resolve(t,r){return t&&(t[r]||t[camelize(r)]||t[capitalize$2(camelize(r))])}function renderList(t,r,$,V){let oe;const ie=$&&$[V];if(isArray$c(t)||isString$6(t)){oe=new Array(t.length);for(let le=0,ue=t.length;ler(le,ue,void 0,ie&&ie[ue]));else{const le=Object.keys(t);oe=new Array(le.length);for(let ue=0,de=le.length;ue{const ie=V.fn(...oe);return ie&&(ie.key=V.key),ie}:V.fn)}return t}function renderSlot(t,r,$={},V,oe){if(currentRenderingInstance.isCE||currentRenderingInstance.parent&&isAsyncWrapper(currentRenderingInstance.parent)&¤tRenderingInstance.parent.isCE)return r!=="default"&&($.name=r),createVNode("slot",$,V&&V());let ie=t[r];ie&&ie._c&&(ie._d=!1),openBlock();const le=ie&&ensureValidVNode(ie($)),ue=createBlock(Fragment,{key:$.key||le&&le.key||`_${r}`},le||(V?V():[]),le&&t._===1?64:-2);return!oe&&ue.scopeId&&(ue.slotScopeIds=[ue.scopeId+"-s"]),ie&&ie._c&&(ie._d=!0),ue}function ensureValidVNode(t){return t.some(r=>isVNode$1(r)?!(r.type===Comment||r.type===Fragment&&!ensureValidVNode(r.children)):!0)?t:null}function toHandlers(t,r){const $={};for(const V in t)$[r&&/[A-Z]/.test(V)?`on:${V}`:toHandlerKey(V)]=t[V];return $}const getPublicInstance=t=>t?isStatefulComponent(t)?getExposeProxy(t)||t.proxy:getPublicInstance(t.parent):null,publicPropertiesMap=extend$2(Object.create(null),{$:t=>t,$el:t=>t.vnode.el,$data:t=>t.data,$props:t=>t.props,$attrs:t=>t.attrs,$slots:t=>t.slots,$refs:t=>t.refs,$parent:t=>getPublicInstance(t.parent),$root:t=>getPublicInstance(t.root),$emit:t=>t.emit,$options:t=>resolveMergedOptions(t),$forceUpdate:t=>t.f||(t.f=()=>queueJob(t.update)),$nextTick:t=>t.n||(t.n=nextTick.bind(t.proxy)),$watch:t=>instanceWatch.bind(t)}),hasSetupBinding=(t,r)=>t!==EMPTY_OBJ$1&&!t.__isScriptSetup&&hasOwn$4(t,r),PublicInstanceProxyHandlers={get({_:t},r){const{ctx:$,setupState:V,data:oe,props:ie,accessCache:le,type:ue,appContext:de}=t;let pe;if(r[0]!=="$"){const Ie=le[r];if(Ie!==void 0)switch(Ie){case 1:return V[r];case 2:return oe[r];case 4:return $[r];case 3:return ie[r]}else{if(hasSetupBinding(V,r))return le[r]=1,V[r];if(oe!==EMPTY_OBJ$1&&hasOwn$4(oe,r))return le[r]=2,oe[r];if((pe=t.propsOptions[0])&&hasOwn$4(pe,r))return le[r]=3,ie[r];if($!==EMPTY_OBJ$1&&hasOwn$4($,r))return le[r]=4,$[r];shouldCacheAccess&&(le[r]=0)}}const he=publicPropertiesMap[r];let _e,$e;if(he)return r==="$attrs"&&track(t,"get",r),he(t);if((_e=ue.__cssModules)&&(_e=_e[r]))return _e;if($!==EMPTY_OBJ$1&&hasOwn$4($,r))return le[r]=4,$[r];if($e=de.config.globalProperties,hasOwn$4($e,r))return $e[r]},set({_:t},r,$){const{data:V,setupState:oe,ctx:ie}=t;return hasSetupBinding(oe,r)?(oe[r]=$,!0):V!==EMPTY_OBJ$1&&hasOwn$4(V,r)?(V[r]=$,!0):hasOwn$4(t.props,r)||r[0]==="$"&&r.slice(1)in t?!1:(ie[r]=$,!0)},has({_:{data:t,setupState:r,accessCache:$,ctx:V,appContext:oe,propsOptions:ie}},le){let ue;return!!$[le]||t!==EMPTY_OBJ$1&&hasOwn$4(t,le)||hasSetupBinding(r,le)||(ue=ie[0])&&hasOwn$4(ue,le)||hasOwn$4(V,le)||hasOwn$4(publicPropertiesMap,le)||hasOwn$4(oe.config.globalProperties,le)},defineProperty(t,r,$){return $.get!=null?t._.accessCache[r]=0:hasOwn$4($,"value")&&this.set(t,r,$.value,null),Reflect.defineProperty(t,r,$)}},RuntimeCompiledPublicInstanceProxyHandlers=extend$2({},PublicInstanceProxyHandlers,{get(t,r){if(r!==Symbol.unscopables)return PublicInstanceProxyHandlers.get(t,r,t)},has(t,r){return r[0]!=="_"&&!isGloballyWhitelisted(r)}});function defineProps(){return null}function defineEmits(){return null}function defineExpose(t){}function defineOptions(t){}function defineSlots(){return null}function defineModel(){}function withDefaults(t,r){return null}function useSlots(){return getContext().slots}function useAttrs$1(){return getContext().attrs}function useModel(t,r,$){const V=getCurrentInstance();if($&&$.local){const oe=ref(t[r]);return watch(()=>t[r],ie=>oe.value=ie),watch(oe,ie=>{ie!==t[r]&&V.emit(`update:${r}`,ie)}),oe}else return{__v_isRef:!0,get value(){return t[r]},set value(oe){V.emit(`update:${r}`,oe)}}}function getContext(){const t=getCurrentInstance();return t.setupContext||(t.setupContext=createSetupContext(t))}function normalizePropsOrEmits(t){return isArray$c(t)?t.reduce((r,$)=>(r[$]=null,r),{}):t}function mergeDefaults(t,r){const $=normalizePropsOrEmits(t);for(const V in r){if(V.startsWith("__skip"))continue;let oe=$[V];oe?isArray$c(oe)||isFunction$5(oe)?oe=$[V]={type:oe,default:r[V]}:oe.default=r[V]:oe===null&&(oe=$[V]={default:r[V]}),oe&&r[`__skip_${V}`]&&(oe.skipFactory=!0)}return $}function mergeModels(t,r){return!t||!r?t||r:isArray$c(t)&&isArray$c(r)?t.concat(r):extend$2({},normalizePropsOrEmits(t),normalizePropsOrEmits(r))}function createPropsRestProxy(t,r){const $={};for(const V in t)r.includes(V)||Object.defineProperty($,V,{enumerable:!0,get:()=>t[V]});return $}function withAsyncContext(t){const r=getCurrentInstance();let $=t();return unsetCurrentInstance(),isPromise($)&&($=$.catch(V=>{throw setCurrentInstance(r),V})),[$,()=>setCurrentInstance(r)]}let shouldCacheAccess=!0;function applyOptions(t){const r=resolveMergedOptions(t),$=t.proxy,V=t.ctx;shouldCacheAccess=!1,r.beforeCreate&&callHook$1(r.beforeCreate,t,"bc");const{data:oe,computed:ie,methods:le,watch:ue,provide:de,inject:pe,created:he,beforeMount:_e,mounted:$e,beforeUpdate:Ie,updated:Ve,activated:Fe,deactivated:Ue,beforeDestroy:qe,beforeUnmount:Et,destroyed:Lt,unmounted:hn,render:Cn,renderTracked:bn,renderTriggered:Sn,errorCaptured:En,serverPrefetch:wn,expose:$n,inheritAttrs:Tn,components:xn,directives:An,filters:Mn}=r;if(pe&&resolveInjections(pe,V,null),le)for(const Dn in le){const Ln=le[Dn];isFunction$5(Ln)&&(V[Dn]=Ln.bind($))}if(oe){const Dn=oe.call($,$);isObject$a(Dn)&&(t.data=reactive(Dn))}if(shouldCacheAccess=!0,ie)for(const Dn in ie){const Ln=ie[Dn],Pn=isFunction$5(Ln)?Ln.bind($,$):isFunction$5(Ln.get)?Ln.get.bind($,$):NOOP,Fn=!isFunction$5(Ln)&&isFunction$5(Ln.set)?Ln.set.bind($):NOOP,Un=computed({get:Pn,set:Fn});Object.defineProperty(V,Dn,{enumerable:!0,configurable:!0,get:()=>Un.value,set:Wn=>Un.value=Wn})}if(ue)for(const Dn in ue)createWatcher(ue[Dn],V,$,Dn);if(de){const Dn=isFunction$5(de)?de.call($):de;Reflect.ownKeys(Dn).forEach(Ln=>{provide(Ln,Dn[Ln])})}he&&callHook$1(he,t,"c");function Bn(Dn,Ln){isArray$c(Ln)?Ln.forEach(Pn=>Dn(Pn.bind($))):Ln&&Dn(Ln.bind($))}if(Bn(onBeforeMount,_e),Bn(onMounted,$e),Bn(onBeforeUpdate,Ie),Bn(onUpdated,Ve),Bn(onActivated,Fe),Bn(onDeactivated,Ue),Bn(onErrorCaptured,En),Bn(onRenderTracked,bn),Bn(onRenderTriggered,Sn),Bn(onBeforeUnmount,Et),Bn(onUnmounted,hn),Bn(onServerPrefetch,wn),isArray$c($n))if($n.length){const Dn=t.exposed||(t.exposed={});$n.forEach(Ln=>{Object.defineProperty(Dn,Ln,{get:()=>$[Ln],set:Pn=>$[Ln]=Pn})})}else t.exposed||(t.exposed={});Cn&&t.render===NOOP&&(t.render=Cn),Tn!=null&&(t.inheritAttrs=Tn),xn&&(t.components=xn),An&&(t.directives=An)}function resolveInjections(t,r,$=NOOP){isArray$c(t)&&(t=normalizeInject(t));for(const V in t){const oe=t[V];let ie;isObject$a(oe)?"default"in oe?ie=inject(oe.from||V,oe.default,!0):ie=inject(oe.from||V):ie=inject(oe),isRef(ie)?Object.defineProperty(r,V,{enumerable:!0,configurable:!0,get:()=>ie.value,set:le=>ie.value=le}):r[V]=ie}}function callHook$1(t,r,$){callWithAsyncErrorHandling(isArray$c(t)?t.map(V=>V.bind(r.proxy)):t.bind(r.proxy),r,$)}function createWatcher(t,r,$,V){const oe=V.includes(".")?createPathGetter($,V):()=>$[V];if(isString$6(t)){const ie=r[t];isFunction$5(ie)&&watch(oe,ie)}else if(isFunction$5(t))watch(oe,t.bind($));else if(isObject$a(t))if(isArray$c(t))t.forEach(ie=>createWatcher(ie,r,$,V));else{const ie=isFunction$5(t.handler)?t.handler.bind($):r[t.handler];isFunction$5(ie)&&watch(oe,ie,t)}}function resolveMergedOptions(t){const r=t.type,{mixins:$,extends:V}=r,{mixins:oe,optionsCache:ie,config:{optionMergeStrategies:le}}=t.appContext,ue=ie.get(r);let de;return ue?de=ue:!oe.length&&!$&&!V?de=r:(de={},oe.length&&oe.forEach(pe=>mergeOptions$2(de,pe,le,!0)),mergeOptions$2(de,r,le)),isObject$a(r)&&ie.set(r,de),de}function mergeOptions$2(t,r,$,V=!1){const{mixins:oe,extends:ie}=r;ie&&mergeOptions$2(t,ie,$,!0),oe&&oe.forEach(le=>mergeOptions$2(t,le,$,!0));for(const le in r)if(!(V&&le==="expose")){const ue=internalOptionMergeStrats[le]||$&&$[le];t[le]=ue?ue(t[le],r[le]):r[le]}return t}const internalOptionMergeStrats={data:mergeDataFn,props:mergeEmitsOrPropsOptions,emits:mergeEmitsOrPropsOptions,methods:mergeObjectOptions,computed:mergeObjectOptions,beforeCreate:mergeAsArray,created:mergeAsArray,beforeMount:mergeAsArray,mounted:mergeAsArray,beforeUpdate:mergeAsArray,updated:mergeAsArray,beforeDestroy:mergeAsArray,beforeUnmount:mergeAsArray,destroyed:mergeAsArray,unmounted:mergeAsArray,activated:mergeAsArray,deactivated:mergeAsArray,errorCaptured:mergeAsArray,serverPrefetch:mergeAsArray,components:mergeObjectOptions,directives:mergeObjectOptions,watch:mergeWatchOptions,provide:mergeDataFn,inject:mergeInject};function mergeDataFn(t,r){return r?t?function(){return extend$2(isFunction$5(t)?t.call(this,this):t,isFunction$5(r)?r.call(this,this):r)}:r:t}function mergeInject(t,r){return mergeObjectOptions(normalizeInject(t),normalizeInject(r))}function normalizeInject(t){if(isArray$c(t)){const r={};for(let $=0;$1)return $&&isFunction$5(r)?r.call(V&&V.proxy):r}}function hasInjectionContext(){return!!(currentInstance||currentRenderingInstance||currentApp)}function initProps$1(t,r,$,V=!1){const oe={},ie={};def(ie,InternalObjectKey,1),t.propsDefaults=Object.create(null),setFullProps(t,r,oe,ie);for(const le in t.propsOptions[0])le in oe||(oe[le]=void 0);$?t.props=V?oe:shallowReactive(oe):t.type.props?t.props=oe:t.props=ie,t.attrs=ie}function updateProps$2(t,r,$,V){const{props:oe,attrs:ie,vnode:{patchFlag:le}}=t,ue=toRaw(oe),[de]=t.propsOptions;let pe=!1;if((V||le>0)&&!(le&16)){if(le&8){const he=t.vnode.dynamicProps;for(let _e=0;_e{de=!0;const[$e,Ie]=normalizePropsOptions(_e,r,!0);extend$2(le,$e),Ie&&ue.push(...Ie)};!$&&r.mixins.length&&r.mixins.forEach(he),t.extends&&he(t.extends),t.mixins&&t.mixins.forEach(he)}if(!ie&&!de)return isObject$a(t)&&V.set(t,EMPTY_ARR),EMPTY_ARR;if(isArray$c(ie))for(let he=0;he-1,Ie[1]=Fe<0||Ve-1||hasOwn$4(Ie,"default"))&&ue.push(_e)}}}const pe=[le,ue];return isObject$a(t)&&V.set(t,pe),pe}function validatePropName(t){return t[0]!=="$"}function getType(t){const r=t&&t.toString().match(/^\s*(function|class) (\w+)/);return r?r[2]:t===null?"null":""}function isSameType(t,r){return getType(t)===getType(r)}function getTypeIndex(t,r){return isArray$c(r)?r.findIndex($=>isSameType($,t)):isFunction$5(r)&&isSameType(r,t)?0:-1}const isInternalKey=t=>t[0]==="_"||t==="$stable",normalizeSlotValue=t=>isArray$c(t)?t.map(normalizeVNode):[normalizeVNode(t)],normalizeSlot$1=(t,r,$)=>{if(r._n)return r;const V=withCtx((...oe)=>normalizeSlotValue(r(...oe)),$);return V._c=!1,V},normalizeObjectSlots=(t,r,$)=>{const V=t._ctx;for(const oe in t){if(isInternalKey(oe))continue;const ie=t[oe];if(isFunction$5(ie))r[oe]=normalizeSlot$1(oe,ie,V);else if(ie!=null){const le=normalizeSlotValue(ie);r[oe]=()=>le}}},normalizeVNodeSlots=(t,r)=>{const $=normalizeSlotValue(r);t.slots.default=()=>$},initSlots=(t,r)=>{if(t.vnode.shapeFlag&32){const $=r._;$?(t.slots=toRaw(r),def(r,"_",$)):normalizeObjectSlots(r,t.slots={})}else t.slots={},r&&normalizeVNodeSlots(t,r);def(t.slots,InternalObjectKey,1)},updateSlots=(t,r,$)=>{const{vnode:V,slots:oe}=t;let ie=!0,le=EMPTY_OBJ$1;if(V.shapeFlag&32){const ue=r._;ue?$&&ue===1?ie=!1:(extend$2(oe,r),!$&&ue===1&&delete oe._):(ie=!r.$stable,normalizeObjectSlots(r,oe)),le=r}else r&&(normalizeVNodeSlots(t,r),le={default:1});if(ie)for(const ue in oe)!isInternalKey(ue)&&!(ue in le)&&delete oe[ue]};function setRef(t,r,$,V,oe=!1){if(isArray$c(t)){t.forEach(($e,Ie)=>setRef($e,r&&(isArray$c(r)?r[Ie]:r),$,V,oe));return}if(isAsyncWrapper(V)&&!oe)return;const ie=V.shapeFlag&4?getExposeProxy(V.component)||V.component.proxy:V.el,le=oe?null:ie,{i:ue,r:de}=t,pe=r&&r.r,he=ue.refs===EMPTY_OBJ$1?ue.refs={}:ue.refs,_e=ue.setupState;if(pe!=null&&pe!==de&&(isString$6(pe)?(he[pe]=null,hasOwn$4(_e,pe)&&(_e[pe]=null)):isRef(pe)&&(pe.value=null)),isFunction$5(de))callWithErrorHandling(de,ue,12,[le,he]);else{const $e=isString$6(de),Ie=isRef(de);if($e||Ie){const Ve=()=>{if(t.f){const Fe=$e?hasOwn$4(_e,de)?_e[de]:he[de]:de.value;oe?isArray$c(Fe)&&remove(Fe,ie):isArray$c(Fe)?Fe.includes(ie)||Fe.push(ie):$e?(he[de]=[ie],hasOwn$4(_e,de)&&(_e[de]=he[de])):(de.value=[ie],t.k&&(he[t.k]=de.value))}else $e?(he[de]=le,hasOwn$4(_e,de)&&(_e[de]=le)):Ie&&(de.value=le,t.k&&(he[t.k]=le))};le?(Ve.id=-1,queuePostRenderEffect(Ve,$)):Ve()}}}let hasMismatch=!1;const isSVGContainer=t=>/svg/.test(t.namespaceURI)&&t.tagName!=="foreignObject",isComment$1=t=>t.nodeType===8;function createHydrationFunctions(t){const{mt:r,p:$,o:{patchProp:V,createText:oe,nextSibling:ie,parentNode:le,remove:ue,insert:de,createComment:pe}}=t,he=(qe,Et)=>{if(!Et.hasChildNodes()){$(null,qe,Et),flushPostFlushCbs(),Et._vnode=qe;return}hasMismatch=!1,_e(Et.firstChild,qe,null,null,null),flushPostFlushCbs(),Et._vnode=qe,hasMismatch&&console.error("Hydration completed but contains mismatches.")},_e=(qe,Et,Lt,hn,Cn,bn=!1)=>{const Sn=isComment$1(qe)&&qe.data==="[",En=()=>Fe(qe,Et,Lt,hn,Cn,Sn),{type:wn,ref:$n,shapeFlag:Tn,patchFlag:xn}=Et;let An=qe.nodeType;Et.el=qe,xn===-2&&(bn=!1,Et.dynamicChildren=null);let Mn=null;switch(wn){case Text$1:An!==3?Et.children===""?(de(Et.el=oe(""),le(qe),qe),Mn=qe):Mn=En():(qe.data!==Et.children&&(hasMismatch=!0,qe.data=Et.children),Mn=ie(qe));break;case Comment:An!==8||Sn?Mn=En():Mn=ie(qe);break;case Static:if(Sn&&(qe=ie(qe),An=qe.nodeType),An===1||An===3){Mn=qe;const Vn=!Et.children.length;for(let Bn=0;Bn{bn=bn||!!Et.dynamicChildren;const{type:Sn,props:En,patchFlag:wn,shapeFlag:$n,dirs:Tn}=Et,xn=Sn==="input"&&Tn||Sn==="option";if(xn||wn!==-1){if(Tn&&invokeDirectiveHook(Et,null,Lt,"created"),En)if(xn||!bn||wn&48)for(const Mn in En)(xn&&Mn.endsWith("value")||isOn(Mn)&&!isReservedProp(Mn))&&V(qe,Mn,null,En[Mn],!1,void 0,Lt);else En.onClick&&V(qe,"onClick",null,En.onClick,!1,void 0,Lt);let An;if((An=En&&En.onVnodeBeforeMount)&&invokeVNodeHook(An,Lt,Et),Tn&&invokeDirectiveHook(Et,null,Lt,"beforeMount"),((An=En&&En.onVnodeMounted)||Tn)&&queueEffectWithSuspense(()=>{An&&invokeVNodeHook(An,Lt,Et),Tn&&invokeDirectiveHook(Et,null,Lt,"mounted")},hn),$n&16&&!(En&&(En.innerHTML||En.textContent))){let Mn=Ie(qe.firstChild,Et,qe,Lt,hn,Cn,bn);for(;Mn;){hasMismatch=!0;const Vn=Mn;Mn=Mn.nextSibling,ue(Vn)}}else $n&8&&qe.textContent!==Et.children&&(hasMismatch=!0,qe.textContent=Et.children)}return qe.nextSibling},Ie=(qe,Et,Lt,hn,Cn,bn,Sn)=>{Sn=Sn||!!Et.dynamicChildren;const En=Et.children,wn=En.length;for(let $n=0;$n{const{slotScopeIds:Sn}=Et;Sn&&(Cn=Cn?Cn.concat(Sn):Sn);const En=le(qe),wn=Ie(ie(qe),Et,En,Lt,hn,Cn,bn);return wn&&isComment$1(wn)&&wn.data==="]"?ie(Et.anchor=wn):(hasMismatch=!0,de(Et.anchor=pe("]"),En,wn),wn)},Fe=(qe,Et,Lt,hn,Cn,bn)=>{if(hasMismatch=!0,Et.el=null,bn){const wn=Ue(qe);for(;;){const $n=ie(qe);if($n&&$n!==wn)ue($n);else break}}const Sn=ie(qe),En=le(qe);return ue(qe),$(null,Et,En,Sn,Lt,hn,isSVGContainer(En),Cn),Sn},Ue=qe=>{let Et=0;for(;qe;)if(qe=ie(qe),qe&&isComment$1(qe)&&(qe.data==="["&&Et++,qe.data==="]")){if(Et===0)return ie(qe);Et--}return qe};return[he,_e]}const queuePostRenderEffect=queueEffectWithSuspense;function createRenderer(t){return baseCreateRenderer(t)}function createHydrationRenderer(t){return baseCreateRenderer(t,createHydrationFunctions)}function baseCreateRenderer(t,r){const $=getGlobalThis();$.__VUE__=!0;const{insert:V,remove:oe,patchProp:ie,createElement:le,createText:ue,createComment:de,setText:pe,setElementText:he,parentNode:_e,nextSibling:$e,setScopeId:Ie=NOOP,insertStaticContent:Ve}=t,Fe=(zn,Kn,Jn,cr=null,_r=null,ur=null,wr=!1,Cr=null,mr=!!Kn.dynamicChildren)=>{if(zn===Kn)return;zn&&!isSameVNodeType(zn,Kn)&&(cr=Gn(zn),Wn(zn,_r,ur,!0),zn=null),Kn.patchFlag===-2&&(mr=!1,Kn.dynamicChildren=null);const{type:Er,ref:Tr,shapeFlag:nr}=Kn;switch(Er){case Text$1:Ue(zn,Kn,Jn,cr);break;case Comment:qe(zn,Kn,Jn,cr);break;case Static:zn==null&&Et(Kn,Jn,cr,wr);break;case Fragment:xn(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr);break;default:nr&1?Cn(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr):nr&6?An(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr):(nr&64||nr&128)&&Er.process(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr,er)}Tr!=null&&_r&&setRef(Tr,zn&&zn.ref,ur,Kn||zn,!Kn)},Ue=(zn,Kn,Jn,cr)=>{if(zn==null)V(Kn.el=ue(Kn.children),Jn,cr);else{const _r=Kn.el=zn.el;Kn.children!==zn.children&&pe(_r,Kn.children)}},qe=(zn,Kn,Jn,cr)=>{zn==null?V(Kn.el=de(Kn.children||""),Jn,cr):Kn.el=zn.el},Et=(zn,Kn,Jn,cr)=>{[zn.el,zn.anchor]=Ve(zn.children,Kn,Jn,cr,zn.el,zn.anchor)},Lt=({el:zn,anchor:Kn},Jn,cr)=>{let _r;for(;zn&&zn!==Kn;)_r=$e(zn),V(zn,Jn,cr),zn=_r;V(Kn,Jn,cr)},hn=({el:zn,anchor:Kn})=>{let Jn;for(;zn&&zn!==Kn;)Jn=$e(zn),oe(zn),zn=Jn;oe(Kn)},Cn=(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr)=>{wr=wr||Kn.type==="svg",zn==null?bn(Kn,Jn,cr,_r,ur,wr,Cr,mr):wn(zn,Kn,_r,ur,wr,Cr,mr)},bn=(zn,Kn,Jn,cr,_r,ur,wr,Cr)=>{let mr,Er;const{type:Tr,props:nr,shapeFlag:pr,transition:gr,dirs:$r}=zn;if(mr=zn.el=le(zn.type,ur,nr&&nr.is,nr),pr&8?he(mr,zn.children):pr&16&&En(zn.children,mr,null,cr,_r,ur&&Tr!=="foreignObject",wr,Cr),$r&&invokeDirectiveHook(zn,null,cr,"created"),Sn(mr,zn,zn.scopeId,wr,cr),nr){for(const Lr in nr)Lr!=="value"&&!isReservedProp(Lr)&&ie(mr,Lr,null,nr[Lr],ur,zn.children,cr,_r,Qn);"value"in nr&&ie(mr,"value",null,nr.value),(Er=nr.onVnodeBeforeMount)&&invokeVNodeHook(Er,cr,zn)}$r&&invokeDirectiveHook(zn,null,cr,"beforeMount");const Rr=(!_r||_r&&!_r.pendingBranch)&&gr&&!gr.persisted;Rr&&gr.beforeEnter(mr),V(mr,Kn,Jn),((Er=nr&&nr.onVnodeMounted)||Rr||$r)&&queuePostRenderEffect(()=>{Er&&invokeVNodeHook(Er,cr,zn),Rr&&gr.enter(mr),$r&&invokeDirectiveHook(zn,null,cr,"mounted")},_r)},Sn=(zn,Kn,Jn,cr,_r)=>{if(Jn&&Ie(zn,Jn),cr)for(let ur=0;ur{for(let Er=mr;Er{const Cr=Kn.el=zn.el;let{patchFlag:mr,dynamicChildren:Er,dirs:Tr}=Kn;mr|=zn.patchFlag&16;const nr=zn.props||EMPTY_OBJ$1,pr=Kn.props||EMPTY_OBJ$1;let gr;Jn&&toggleRecurse(Jn,!1),(gr=pr.onVnodeBeforeUpdate)&&invokeVNodeHook(gr,Jn,Kn,zn),Tr&&invokeDirectiveHook(Kn,zn,Jn,"beforeUpdate"),Jn&&toggleRecurse(Jn,!0);const $r=_r&&Kn.type!=="foreignObject";if(Er?$n(zn.dynamicChildren,Er,Cr,Jn,cr,$r,ur):wr||Ln(zn,Kn,Cr,null,Jn,cr,$r,ur,!1),mr>0){if(mr&16)Tn(Cr,Kn,nr,pr,Jn,cr,_r);else if(mr&2&&nr.class!==pr.class&&ie(Cr,"class",null,pr.class,_r),mr&4&&ie(Cr,"style",nr.style,pr.style,_r),mr&8){const Rr=Kn.dynamicProps;for(let Lr=0;Lr{gr&&invokeVNodeHook(gr,Jn,Kn,zn),Tr&&invokeDirectiveHook(Kn,zn,Jn,"updated")},cr)},$n=(zn,Kn,Jn,cr,_r,ur,wr)=>{for(let Cr=0;Cr{if(Jn!==cr){if(Jn!==EMPTY_OBJ$1)for(const Cr in Jn)!isReservedProp(Cr)&&!(Cr in cr)&&ie(zn,Cr,Jn[Cr],null,wr,Kn.children,_r,ur,Qn);for(const Cr in cr){if(isReservedProp(Cr))continue;const mr=cr[Cr],Er=Jn[Cr];mr!==Er&&Cr!=="value"&&ie(zn,Cr,Er,mr,wr,Kn.children,_r,ur,Qn)}"value"in cr&&ie(zn,"value",Jn.value,cr.value)}},xn=(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr)=>{const Er=Kn.el=zn?zn.el:ue(""),Tr=Kn.anchor=zn?zn.anchor:ue("");let{patchFlag:nr,dynamicChildren:pr,slotScopeIds:gr}=Kn;gr&&(Cr=Cr?Cr.concat(gr):gr),zn==null?(V(Er,Jn,cr),V(Tr,Jn,cr),En(Kn.children,Jn,Tr,_r,ur,wr,Cr,mr)):nr>0&&nr&64&&pr&&zn.dynamicChildren?($n(zn.dynamicChildren,pr,Jn,_r,ur,wr,Cr),(Kn.key!=null||_r&&Kn===_r.subTree)&&traverseStaticChildren(zn,Kn,!0)):Ln(zn,Kn,Jn,Tr,_r,ur,wr,Cr,mr)},An=(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr)=>{Kn.slotScopeIds=Cr,zn==null?Kn.shapeFlag&512?_r.ctx.activate(Kn,Jn,cr,wr,mr):Mn(Kn,Jn,cr,_r,ur,wr,mr):Vn(zn,Kn,mr)},Mn=(zn,Kn,Jn,cr,_r,ur,wr)=>{const Cr=zn.component=createComponentInstance(zn,cr,_r);if(isKeepAlive(zn)&&(Cr.ctx.renderer=er),setupComponent(Cr),Cr.asyncDep){if(_r&&_r.registerDep(Cr,Bn),!zn.el){const mr=Cr.subTree=createVNode(Comment);qe(null,mr,Kn,Jn)}return}Bn(Cr,zn,Kn,Jn,_r,ur,wr)},Vn=(zn,Kn,Jn)=>{const cr=Kn.component=zn.component;if(shouldUpdateComponent(zn,Kn,Jn))if(cr.asyncDep&&!cr.asyncResolved){Dn(cr,Kn,Jn);return}else cr.next=Kn,invalidateJob(cr.update),cr.update();else Kn.el=zn.el,cr.vnode=Kn},Bn=(zn,Kn,Jn,cr,_r,ur,wr)=>{const Cr=()=>{if(zn.isMounted){let{next:Tr,bu:nr,u:pr,parent:gr,vnode:$r}=zn,Rr=Tr,Lr;toggleRecurse(zn,!1),Tr?(Tr.el=$r.el,Dn(zn,Tr,wr)):Tr=$r,nr&&invokeArrayFns(nr),(Lr=Tr.props&&Tr.props.onVnodeBeforeUpdate)&&invokeVNodeHook(Lr,gr,Tr,$r),toggleRecurse(zn,!0);const Vr=renderComponentRoot(zn),Nr=zn.subTree;zn.subTree=Vr,Fe(Nr,Vr,_e(Nr.el),Gn(Nr),zn,_r,ur),Tr.el=Vr.el,Rr===null&&updateHOCHostEl(zn,Vr.el),pr&&queuePostRenderEffect(pr,_r),(Lr=Tr.props&&Tr.props.onVnodeUpdated)&&queuePostRenderEffect(()=>invokeVNodeHook(Lr,gr,Tr,$r),_r)}else{let Tr;const{el:nr,props:pr}=Kn,{bm:gr,m:$r,parent:Rr}=zn,Lr=isAsyncWrapper(Kn);if(toggleRecurse(zn,!1),gr&&invokeArrayFns(gr),!Lr&&(Tr=pr&&pr.onVnodeBeforeMount)&&invokeVNodeHook(Tr,Rr,Kn),toggleRecurse(zn,!0),nr&&sr){const Vr=()=>{zn.subTree=renderComponentRoot(zn),sr(nr,zn.subTree,zn,_r,null)};Lr?Kn.type.__asyncLoader().then(()=>!zn.isUnmounted&&Vr()):Vr()}else{const Vr=zn.subTree=renderComponentRoot(zn);Fe(null,Vr,Jn,cr,zn,_r,ur),Kn.el=Vr.el}if($r&&queuePostRenderEffect($r,_r),!Lr&&(Tr=pr&&pr.onVnodeMounted)){const Vr=Kn;queuePostRenderEffect(()=>invokeVNodeHook(Tr,Rr,Vr),_r)}(Kn.shapeFlag&256||Rr&&isAsyncWrapper(Rr.vnode)&&Rr.vnode.shapeFlag&256)&&zn.a&&queuePostRenderEffect(zn.a,_r),zn.isMounted=!0,Kn=Jn=cr=null}},mr=zn.effect=new ReactiveEffect(Cr,()=>queueJob(Er),zn.scope),Er=zn.update=()=>mr.run();Er.id=zn.uid,toggleRecurse(zn,!0),Er()},Dn=(zn,Kn,Jn)=>{Kn.component=zn;const cr=zn.vnode.props;zn.vnode=Kn,zn.next=null,updateProps$2(zn,Kn.props,cr,Jn),updateSlots(zn,Kn.children,Jn),pauseTracking(),flushPreFlushCbs(),resetTracking()},Ln=(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr=!1)=>{const Er=zn&&zn.children,Tr=zn?zn.shapeFlag:0,nr=Kn.children,{patchFlag:pr,shapeFlag:gr}=Kn;if(pr>0){if(pr&128){Fn(Er,nr,Jn,cr,_r,ur,wr,Cr,mr);return}else if(pr&256){Pn(Er,nr,Jn,cr,_r,ur,wr,Cr,mr);return}}gr&8?(Tr&16&&Qn(Er,_r,ur),nr!==Er&&he(Jn,nr)):Tr&16?gr&16?Fn(Er,nr,Jn,cr,_r,ur,wr,Cr,mr):Qn(Er,_r,ur,!0):(Tr&8&&he(Jn,""),gr&16&&En(nr,Jn,cr,_r,ur,wr,Cr,mr))},Pn=(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr)=>{zn=zn||EMPTY_ARR,Kn=Kn||EMPTY_ARR;const Er=zn.length,Tr=Kn.length,nr=Math.min(Er,Tr);let pr;for(pr=0;prTr?Qn(zn,_r,ur,!0,!1,nr):En(Kn,Jn,cr,_r,ur,wr,Cr,mr,nr)},Fn=(zn,Kn,Jn,cr,_r,ur,wr,Cr,mr)=>{let Er=0;const Tr=Kn.length;let nr=zn.length-1,pr=Tr-1;for(;Er<=nr&&Er<=pr;){const gr=zn[Er],$r=Kn[Er]=mr?cloneIfMounted(Kn[Er]):normalizeVNode(Kn[Er]);if(isSameVNodeType(gr,$r))Fe(gr,$r,Jn,null,_r,ur,wr,Cr,mr);else break;Er++}for(;Er<=nr&&Er<=pr;){const gr=zn[nr],$r=Kn[pr]=mr?cloneIfMounted(Kn[pr]):normalizeVNode(Kn[pr]);if(isSameVNodeType(gr,$r))Fe(gr,$r,Jn,null,_r,ur,wr,Cr,mr);else break;nr--,pr--}if(Er>nr){if(Er<=pr){const gr=pr+1,$r=grpr)for(;Er<=nr;)Wn(zn[Er],_r,ur,!0),Er++;else{const gr=Er,$r=Er,Rr=new Map;for(Er=$r;Er<=pr;Er++){const qn=Kn[Er]=mr?cloneIfMounted(Kn[Er]):normalizeVNode(Kn[Er]);qn.key!=null&&Rr.set(qn.key,Er)}let Lr,Vr=0;const Nr=pr-$r+1;let dr=!1,ar=0;const tr=new Array(Nr);for(Er=0;Er=Nr){Wn(qn,_r,ur,!0);continue}let kr;if(qn.key!=null)kr=Rr.get(qn.key);else for(Lr=$r;Lr<=pr;Lr++)if(tr[Lr-$r]===0&&isSameVNodeType(qn,Kn[Lr])){kr=Lr;break}kr===void 0?Wn(qn,_r,ur,!0):(tr[kr-$r]=Er+1,kr>=ar?ar=kr:dr=!0,Fe(qn,Kn[kr],Jn,null,_r,ur,wr,Cr,mr),Vr++)}const Sr=dr?getSequence(tr):EMPTY_ARR;for(Lr=Sr.length-1,Er=Nr-1;Er>=0;Er--){const qn=$r+Er,kr=Kn[qn],Dr=qn+1{const{el:ur,type:wr,transition:Cr,children:mr,shapeFlag:Er}=zn;if(Er&6){Un(zn.component.subTree,Kn,Jn,cr);return}if(Er&128){zn.suspense.move(Kn,Jn,cr);return}if(Er&64){wr.move(zn,Kn,Jn,er);return}if(wr===Fragment){V(ur,Kn,Jn);for(let nr=0;nrCr.enter(ur),_r);else{const{leave:nr,delayLeave:pr,afterLeave:gr}=Cr,$r=()=>V(ur,Kn,Jn),Rr=()=>{nr(ur,()=>{$r(),gr&&gr()})};pr?pr(ur,$r,Rr):Rr()}else V(ur,Kn,Jn)},Wn=(zn,Kn,Jn,cr=!1,_r=!1)=>{const{type:ur,props:wr,ref:Cr,children:mr,dynamicChildren:Er,shapeFlag:Tr,patchFlag:nr,dirs:pr}=zn;if(Cr!=null&&setRef(Cr,null,Jn,zn,!0),Tr&256){Kn.ctx.deactivate(zn);return}const gr=Tr&1&&pr,$r=!isAsyncWrapper(zn);let Rr;if($r&&(Rr=wr&&wr.onVnodeBeforeUnmount)&&invokeVNodeHook(Rr,Kn,zn),Tr&6)br(zn.component,Jn,cr);else{if(Tr&128){zn.suspense.unmount(Jn,cr);return}gr&&invokeDirectiveHook(zn,null,Kn,"beforeUnmount"),Tr&64?zn.type.remove(zn,Kn,Jn,_r,er,cr):Er&&(ur!==Fragment||nr>0&&nr&64)?Qn(Er,Kn,Jn,!1,!0):(ur===Fragment&&nr&384||!_r&&Tr&16)&&Qn(mr,Kn,Jn),cr&&Zn(zn)}($r&&(Rr=wr&&wr.onVnodeUnmounted)||gr)&&queuePostRenderEffect(()=>{Rr&&invokeVNodeHook(Rr,Kn,zn),gr&&invokeDirectiveHook(zn,null,Kn,"unmounted")},Jn)},Zn=zn=>{const{type:Kn,el:Jn,anchor:cr,transition:_r}=zn;if(Kn===Fragment){or(Jn,cr);return}if(Kn===Static){hn(zn);return}const ur=()=>{oe(Jn),_r&&!_r.persisted&&_r.afterLeave&&_r.afterLeave()};if(zn.shapeFlag&1&&_r&&!_r.persisted){const{leave:wr,delayLeave:Cr}=_r,mr=()=>wr(Jn,ur);Cr?Cr(zn.el,ur,mr):mr()}else ur()},or=(zn,Kn)=>{let Jn;for(;zn!==Kn;)Jn=$e(zn),oe(zn),zn=Jn;oe(Kn)},br=(zn,Kn,Jn)=>{const{bum:cr,scope:_r,update:ur,subTree:wr,um:Cr}=zn;cr&&invokeArrayFns(cr),_r.stop(),ur&&(ur.active=!1,Wn(wr,zn,Kn,Jn)),Cr&&queuePostRenderEffect(Cr,Kn),queuePostRenderEffect(()=>{zn.isUnmounted=!0},Kn),Kn&&Kn.pendingBranch&&!Kn.isUnmounted&&zn.asyncDep&&!zn.asyncResolved&&zn.suspenseId===Kn.pendingId&&(Kn.deps--,Kn.deps===0&&Kn.resolve())},Qn=(zn,Kn,Jn,cr=!1,_r=!1,ur=0)=>{for(let wr=ur;wrzn.shapeFlag&6?Gn(zn.component.subTree):zn.shapeFlag&128?zn.suspense.next():$e(zn.anchor||zn.el),Yn=(zn,Kn,Jn)=>{zn==null?Kn._vnode&&Wn(Kn._vnode,null,null,!0):Fe(Kn._vnode||null,zn,Kn,null,null,null,Jn),flushPreFlushCbs(),flushPostFlushCbs(),Kn._vnode=zn},er={p:Fe,um:Wn,m:Un,r:Zn,mt:Mn,mc:En,pc:Ln,pbc:$n,n:Gn,o:t};let lr,sr;return r&&([lr,sr]=r(er)),{render:Yn,hydrate:lr,createApp:createAppAPI(Yn,lr)}}function toggleRecurse({effect:t,update:r},$){t.allowRecurse=r.allowRecurse=$}function traverseStaticChildren(t,r,$=!1){const V=t.children,oe=r.children;if(isArray$c(V)&&isArray$c(oe))for(let ie=0;ie>1,t[$[ue]]0&&(r[V]=$[ie-1]),$[ie]=V)}}for(ie=$.length,le=$[ie-1];ie-- >0;)$[ie]=le,le=r[le];return $}const isTeleport=t=>t.__isTeleport,isTeleportDisabled=t=>t&&(t.disabled||t.disabled===""),isTargetSVG=t=>typeof SVGElement<"u"&&t instanceof SVGElement,resolveTarget=(t,r)=>{const $=t&&t.to;return isString$6($)?r?r($):null:$},TeleportImpl={__isTeleport:!0,process(t,r,$,V,oe,ie,le,ue,de,pe){const{mc:he,pc:_e,pbc:$e,o:{insert:Ie,querySelector:Ve,createText:Fe,createComment:Ue}}=pe,qe=isTeleportDisabled(r.props);let{shapeFlag:Et,children:Lt,dynamicChildren:hn}=r;if(t==null){const Cn=r.el=Fe(""),bn=r.anchor=Fe("");Ie(Cn,$,V),Ie(bn,$,V);const Sn=r.target=resolveTarget(r.props,Ve),En=r.targetAnchor=Fe("");Sn&&(Ie(En,Sn),le=le||isTargetSVG(Sn));const wn=($n,Tn)=>{Et&16&&he(Lt,$n,Tn,oe,ie,le,ue,de)};qe?wn($,bn):Sn&&wn(Sn,En)}else{r.el=t.el;const Cn=r.anchor=t.anchor,bn=r.target=t.target,Sn=r.targetAnchor=t.targetAnchor,En=isTeleportDisabled(t.props),wn=En?$:bn,$n=En?Cn:Sn;if(le=le||isTargetSVG(bn),hn?($e(t.dynamicChildren,hn,wn,oe,ie,le,ue),traverseStaticChildren(t,r,!0)):de||_e(t,r,wn,$n,oe,ie,le,ue,!1),qe)En||moveTeleport(r,$,Cn,pe,1);else if((r.props&&r.props.to)!==(t.props&&t.props.to)){const Tn=r.target=resolveTarget(r.props,Ve);Tn&&moveTeleport(r,Tn,null,pe,0)}else En&&moveTeleport(r,bn,Sn,pe,1)}updateCssVars(r)},remove(t,r,$,V,{um:oe,o:{remove:ie}},le){const{shapeFlag:ue,children:de,anchor:pe,targetAnchor:he,target:_e,props:$e}=t;if(_e&&ie(he),(le||!isTeleportDisabled($e))&&(ie(pe),ue&16))for(let Ie=0;Ie0?currentBlock||EMPTY_ARR:null,closeBlock(),isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(t),t}function createElementBlock(t,r,$,V,oe,ie){return setupBlock(createBaseVNode(t,r,$,V,oe,ie,!0))}function createBlock(t,r,$,V,oe){return setupBlock(createVNode(t,r,$,V,oe,!0))}function isVNode$1(t){return t?t.__v_isVNode===!0:!1}function isSameVNodeType(t,r){return t.type===r.type&&t.key===r.key}function transformVNodeArgs(t){}const InternalObjectKey="__vInternal",normalizeKey=({key:t})=>t??null,normalizeRef=({ref:t,ref_key:r,ref_for:$})=>(typeof t=="number"&&(t=""+t),t!=null?isString$6(t)||isRef(t)||isFunction$5(t)?{i:currentRenderingInstance,r:t,k:r,f:!!$}:t:null);function createBaseVNode(t,r=null,$=null,V=0,oe=null,ie=t===Fragment?0:1,le=!1,ue=!1){const de={__v_isVNode:!0,__v_skip:!0,type:t,props:r,key:r&&normalizeKey(r),ref:r&&normalizeRef(r),scopeId:currentScopeId,slotScopeIds:null,children:$,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:ie,patchFlag:V,dynamicProps:oe,dynamicChildren:null,appContext:null,ctx:currentRenderingInstance};return ue?(normalizeChildren(de,$),ie&128&&t.normalize(de)):$&&(de.shapeFlag|=isString$6($)?8:16),isBlockTreeEnabled>0&&!le&¤tBlock&&(de.patchFlag>0||ie&6)&&de.patchFlag!==32&¤tBlock.push(de),de}const createVNode=_createVNode;function _createVNode(t,r=null,$=null,V=0,oe=null,ie=!1){if((!t||t===NULL_DYNAMIC_COMPONENT)&&(t=Comment),isVNode$1(t)){const ue=cloneVNode(t,r,!0);return $&&normalizeChildren(ue,$),isBlockTreeEnabled>0&&!ie&¤tBlock&&(ue.shapeFlag&6?currentBlock[currentBlock.indexOf(t)]=ue:currentBlock.push(ue)),ue.patchFlag|=-2,ue}if(isClassComponent(t)&&(t=t.__vccOpts),r){r=guardReactiveProps(r);let{class:ue,style:de}=r;ue&&!isString$6(ue)&&(r.class=normalizeClass(ue)),isObject$a(de)&&(isProxy(de)&&!isArray$c(de)&&(de=extend$2({},de)),r.style=normalizeStyle$1(de))}const le=isString$6(t)?1:isSuspense(t)?128:isTeleport(t)?64:isObject$a(t)?4:isFunction$5(t)?2:0;return createBaseVNode(t,r,$,V,oe,le,ie,!0)}function guardReactiveProps(t){return t?isProxy(t)||InternalObjectKey in t?extend$2({},t):t:null}function cloneVNode(t,r,$=!1){const{props:V,ref:oe,patchFlag:ie,children:le}=t,ue=r?mergeProps(V||{},r):V;return{__v_isVNode:!0,__v_skip:!0,type:t.type,props:ue,key:ue&&normalizeKey(ue),ref:r&&r.ref?$&&oe?isArray$c(oe)?oe.concat(normalizeRef(r)):[oe,normalizeRef(r)]:normalizeRef(r):oe,scopeId:t.scopeId,slotScopeIds:t.slotScopeIds,children:le,target:t.target,targetAnchor:t.targetAnchor,staticCount:t.staticCount,shapeFlag:t.shapeFlag,patchFlag:r&&t.type!==Fragment?ie===-1?16:ie|16:ie,dynamicProps:t.dynamicProps,dynamicChildren:t.dynamicChildren,appContext:t.appContext,dirs:t.dirs,transition:t.transition,component:t.component,suspense:t.suspense,ssContent:t.ssContent&&cloneVNode(t.ssContent),ssFallback:t.ssFallback&&cloneVNode(t.ssFallback),el:t.el,anchor:t.anchor,ctx:t.ctx,ce:t.ce}}function createTextVNode(t=" ",r=0){return createVNode(Text$1,null,t,r)}function createStaticVNode(t,r){const $=createVNode(Static,null,t);return $.staticCount=r,$}function createCommentVNode(t="",r=!1){return r?(openBlock(),createBlock(Comment,null,t)):createVNode(Comment,null,t)}function normalizeVNode(t){return t==null||typeof t=="boolean"?createVNode(Comment):isArray$c(t)?createVNode(Fragment,null,t.slice()):typeof t=="object"?cloneIfMounted(t):createVNode(Text$1,null,String(t))}function cloneIfMounted(t){return t.el===null&&t.patchFlag!==-1||t.memo?t:cloneVNode(t)}function normalizeChildren(t,r){let $=0;const{shapeFlag:V}=t;if(r==null)r=null;else if(isArray$c(r))$=16;else if(typeof r=="object")if(V&65){const oe=r.default;oe&&(oe._c&&(oe._d=!1),normalizeChildren(t,oe()),oe._c&&(oe._d=!0));return}else{$=32;const oe=r._;!oe&&!(InternalObjectKey in r)?r._ctx=currentRenderingInstance:oe===3&¤tRenderingInstance&&(currentRenderingInstance.slots._===1?r._=1:(r._=2,t.patchFlag|=1024))}else isFunction$5(r)?(r={default:r,_ctx:currentRenderingInstance},$=32):(r=String(r),V&64?($=16,r=[createTextVNode(r)]):$=8);t.children=r,t.shapeFlag|=$}function mergeProps(...t){const r={};for(let $=0;$currentInstance||currentRenderingInstance;let internalSetCurrentInstance,globalCurrentInstanceSetters,settersKey="__VUE_INSTANCE_SETTERS__";(globalCurrentInstanceSetters=getGlobalThis()[settersKey])||(globalCurrentInstanceSetters=getGlobalThis()[settersKey]=[]),globalCurrentInstanceSetters.push(t=>currentInstance=t),internalSetCurrentInstance=t=>{globalCurrentInstanceSetters.length>1?globalCurrentInstanceSetters.forEach(r=>r(t)):globalCurrentInstanceSetters[0](t)};const setCurrentInstance=t=>{internalSetCurrentInstance(t),t.scope.on()},unsetCurrentInstance=()=>{currentInstance&¤tInstance.scope.off(),internalSetCurrentInstance(null)};function isStatefulComponent(t){return t.vnode.shapeFlag&4}let isInSSRComponentSetup=!1;function setupComponent(t,r=!1){isInSSRComponentSetup=r;const{props:$,children:V}=t.vnode,oe=isStatefulComponent(t);initProps$1(t,$,oe,r),initSlots(t,V);const ie=oe?setupStatefulComponent(t,r):void 0;return isInSSRComponentSetup=!1,ie}function setupStatefulComponent(t,r){const $=t.type;t.accessCache=Object.create(null),t.proxy=markRaw(new Proxy(t.ctx,PublicInstanceProxyHandlers));const{setup:V}=$;if(V){const oe=t.setupContext=V.length>1?createSetupContext(t):null;setCurrentInstance(t),pauseTracking();const ie=callWithErrorHandling(V,t,0,[t.props,oe]);if(resetTracking(),unsetCurrentInstance(),isPromise(ie)){if(ie.then(unsetCurrentInstance,unsetCurrentInstance),r)return ie.then(le=>{handleSetupResult(t,le,r)}).catch(le=>{handleError(le,t,0)});t.asyncDep=ie}else handleSetupResult(t,ie,r)}else finishComponentSetup(t,r)}function handleSetupResult(t,r,$){isFunction$5(r)?t.type.__ssrInlineRender?t.ssrRender=r:t.render=r:isObject$a(r)&&(t.setupState=proxyRefs(r)),finishComponentSetup(t,$)}let compile$1,installWithProxy;function registerRuntimeCompiler(t){compile$1=t,installWithProxy=r=>{r.render._rc&&(r.withProxy=new Proxy(r.ctx,RuntimeCompiledPublicInstanceProxyHandlers))}}const isRuntimeOnly=()=>!compile$1;function finishComponentSetup(t,r,$){const V=t.type;if(!t.render){if(!r&&compile$1&&!V.render){const oe=V.template||resolveMergedOptions(t).template;if(oe){const{isCustomElement:ie,compilerOptions:le}=t.appContext.config,{delimiters:ue,compilerOptions:de}=V,pe=extend$2(extend$2({isCustomElement:ie,delimiters:ue},le),de);V.render=compile$1(oe,pe)}}t.render=V.render||NOOP,installWithProxy&&installWithProxy(t)}setCurrentInstance(t),pauseTracking(),applyOptions(t),resetTracking(),unsetCurrentInstance()}function getAttrsProxy(t){return t.attrsProxy||(t.attrsProxy=new Proxy(t.attrs,{get(r,$){return track(t,"get","$attrs"),r[$]}}))}function createSetupContext(t){const r=$=>{t.exposed=$||{}};return{get attrs(){return getAttrsProxy(t)},slots:t.slots,emit:t.emit,expose:r}}function getExposeProxy(t){if(t.exposed)return t.exposeProxy||(t.exposeProxy=new Proxy(proxyRefs(markRaw(t.exposed)),{get(r,$){if($ in r)return r[$];if($ in publicPropertiesMap)return publicPropertiesMap[$](t)},has(r,$){return $ in r||$ in publicPropertiesMap}}))}function getComponentName(t,r=!0){return isFunction$5(t)?t.displayName||t.name:t.name||r&&t.__name}function isClassComponent(t){return isFunction$5(t)&&"__vccOpts"in t}const computed=(t,r)=>computed$1(t,r,isInSSRComponentSetup);function h$2(t,r,$){const V=arguments.length;return V===2?isObject$a(r)&&!isArray$c(r)?isVNode$1(r)?createVNode(t,null,[r]):createVNode(t,r):createVNode(t,null,r):(V>3?$=Array.prototype.slice.call(arguments,2):V===3&&isVNode$1($)&&($=[$]),createVNode(t,r,$))}const ssrContextKey=Symbol.for("v-scx"),useSSRContext=()=>inject(ssrContextKey);function initCustomFormatter(){}function withMemo(t,r,$,V){const oe=$[V];if(oe&&isMemoSame(oe,t))return oe;const ie=r();return ie.memo=t.slice(),$[V]=ie}function isMemoSame(t,r){const $=t.memo;if($.length!=r.length)return!1;for(let V=0;V<$.length;V++)if(hasChanged($[V],r[V]))return!1;return isBlockTreeEnabled>0&¤tBlock&¤tBlock.push(t),!0}const version$3="3.3.4",_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:(t,r,$)=>{r.insertBefore(t,$||null)},remove:t=>{const r=t.parentNode;r&&r.removeChild(t)},createElement:(t,r,$,V)=>{const oe=r?doc$1.createElementNS(svgNS,t):doc$1.createElement(t,$?{is:$}:void 0);return t==="select"&&V&&V.multiple!=null&&oe.setAttribute("multiple",V.multiple),oe},createText:t=>doc$1.createTextNode(t),createComment:t=>doc$1.createComment(t),setText:(t,r)=>{t.nodeValue=r},setElementText:(t,r)=>{t.textContent=r},parentNode:t=>t.parentNode,nextSibling:t=>t.nextSibling,querySelector:t=>doc$1.querySelector(t),setScopeId(t,r){t.setAttribute(r,"")},insertStaticContent(t,r,$,V,oe,ie){const le=$?$.previousSibling:r.lastChild;if(oe&&(oe===ie||oe.nextSibling))for(;r.insertBefore(oe.cloneNode(!0),$),!(oe===ie||!(oe=oe.nextSibling)););else{templateContainer.innerHTML=V?`${t}`:t;const ue=templateContainer.content;if(V){const de=ue.firstChild;for(;de.firstChild;)ue.appendChild(de.firstChild);ue.removeChild(de)}r.insertBefore(ue,$)}return[le?le.nextSibling:r.firstChild,$?$.previousSibling:r.lastChild]}};function patchClass(t,r,$){const V=t._vtc;V&&(r=(r?[r,...V]:[...V]).join(" ")),r==null?t.removeAttribute("class"):$?t.setAttribute("class",r):t.className=r}function patchStyle(t,r,$){const V=t.style,oe=isString$6($);if($&&!oe){if(r&&!isString$6(r))for(const ie in r)$[ie]==null&&setStyle(V,ie,"");for(const ie in $)setStyle(V,ie,$[ie])}else{const ie=V.display;oe?r!==$&&(V.cssText=$):r&&t.removeAttribute("style"),"_vod"in t&&(V.display=ie)}}const importantRE=/\s*!important$/;function setStyle(t,r,$){if(isArray$c($))$.forEach(V=>setStyle(t,r,V));else if($==null&&($=""),r.startsWith("--"))t.setProperty(r,$);else{const V=autoPrefix(t,r);importantRE.test($)?t.setProperty(hyphenate(V),$.replace(importantRE,""),"important"):t[V]=$}}const prefixes=["Webkit","Moz","ms"],prefixCache={};function autoPrefix(t,r){const $=prefixCache[r];if($)return $;let V=camelize(r);if(V!=="filter"&&V in t)return prefixCache[r]=V;V=capitalize$2(V);for(let oe=0;oecachedNow||(p$2.then(()=>cachedNow=0),cachedNow=Date.now());function createInvoker(t,r){const $=V=>{if(!V._vts)V._vts=Date.now();else if(V._vts<=$.attached)return;callWithAsyncErrorHandling(patchStopImmediatePropagation(V,$.value),r,5,[V])};return $.value=t,$.attached=getNow(),$}function patchStopImmediatePropagation(t,r){if(isArray$c(r)){const $=t.stopImmediatePropagation;return t.stopImmediatePropagation=()=>{$.call(t),t._stopped=!0},r.map(V=>oe=>!oe._stopped&&V&&V(oe))}else return r}const nativeOnRE=/^on[a-z]/,patchProp=(t,r,$,V,oe=!1,ie,le,ue,de)=>{r==="class"?patchClass(t,V,oe):r==="style"?patchStyle(t,$,V):isOn(r)?isModelListener(r)||patchEvent(t,r,$,V,le):(r[0]==="."?(r=r.slice(1),!0):r[0]==="^"?(r=r.slice(1),!1):shouldSetAsProp(t,r,V,oe))?patchDOMProp(t,r,V,ie,le,ue,de):(r==="true-value"?t._trueValue=V:r==="false-value"&&(t._falseValue=V),patchAttr(t,r,V,oe))};function shouldSetAsProp(t,r,$,V){return V?!!(r==="innerHTML"||r==="textContent"||r in t&&nativeOnRE.test(r)&&isFunction$5($)):r==="spellcheck"||r==="draggable"||r==="translate"||r==="form"||r==="list"&&t.tagName==="INPUT"||r==="type"&&t.tagName==="TEXTAREA"||nativeOnRE.test(r)&&isString$6($)?!1:r in t}function defineCustomElement(t,r){const $=defineComponent(t);class V extends VueElement{constructor(ie){super($,ie,r)}}return V.def=$,V}const defineSSRCustomElement=t=>defineCustomElement(t,hydrate),BaseClass=typeof HTMLElement<"u"?HTMLElement:class{};class VueElement extends BaseClass{constructor(r,$={},V){super(),this._def=r,this._props=$,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&V?V(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 V=0;V{for(const oe of V)this._setAttr(oe.attributeName)}).observe(this,{attributes:!0});const r=(V,oe=!1)=>{const{props:ie,styles:le}=V;let ue;if(ie&&!isArray$c(ie))for(const de in ie){const pe=ie[de];(pe===Number||pe&&pe.type===Number)&&(de in this._props&&(this._props[de]=toNumber$1(this._props[de])),(ue||(ue=Object.create(null)))[camelize(de)]=!0)}this._numberProps=ue,oe&&this._resolveProps(V),this._applyStyles(le),this._update()},$=this._def.__asyncLoader;$?$().then(V=>r(V,!0)):r(this._def)}_resolveProps(r){const{props:$}=r,V=isArray$c($)?$:Object.keys($||{});for(const oe of Object.keys(this))oe[0]!=="_"&&V.includes(oe)&&this._setProp(oe,this[oe],!0,!1);for(const oe of V.map(camelize))Object.defineProperty(this,oe,{get(){return this._getProp(oe)},set(ie){this._setProp(oe,ie)}})}_setAttr(r){let $=this.getAttribute(r);const V=camelize(r);this._numberProps&&this._numberProps[V]&&($=toNumber$1($)),this._setProp(V,$,!1)}_getProp(r){return this._props[r]}_setProp(r,$,V=!0,oe=!0){$!==this._props[r]&&(this._props[r]=$,oe&&this._instance&&this._update(),V&&($===!0?this.setAttribute(hyphenate(r),""):typeof $=="string"||typeof $=="number"?this.setAttribute(hyphenate(r),$+""):$||this.removeAttribute(hyphenate(r))))}_update(){render$4(this._createVNode(),this.shadowRoot)}_createVNode(){const r=createVNode(this._def,extend$2({},this._props));return this._instance||(r.ce=$=>{this._instance=$,$.isCE=!0;const V=(ie,le)=>{this.dispatchEvent(new CustomEvent(ie,{detail:le}))};$.emit=(ie,...le)=>{V(ie,le),hyphenate(ie)!==ie&&V(hyphenate(ie),le)};let oe=this;for(;oe=oe&&(oe.parentNode||oe.host);)if(oe instanceof VueElement){$.parent=oe._instance,$.provides=oe._instance.provides;break}}),r}_applyStyles(r){r&&r.forEach($=>{const V=document.createElement("style");V.textContent=$,this.shadowRoot.appendChild(V)})}}function useCssModule(t="$style"){{const r=getCurrentInstance();if(!r)return EMPTY_OBJ$1;const $=r.type.__cssModules;if(!$)return EMPTY_OBJ$1;const V=$[t];return V||EMPTY_OBJ$1}}function useCssVars(t){const r=getCurrentInstance();if(!r)return;const $=r.ut=(oe=t(r.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${r.uid}"]`)).forEach(ie=>setVarsOnNode(ie,oe))},V=()=>{const oe=t(r.proxy);setVarsOnVNode(r.subTree,oe),$(oe)};watchPostEffect(V),onMounted(()=>{const oe=new MutationObserver(V);oe.observe(r.subTree.el.parentNode,{childList:!0}),onUnmounted(()=>oe.disconnect())})}function setVarsOnVNode(t,r){if(t.shapeFlag&128){const $=t.suspense;t=$.activeBranch,$.pendingBranch&&!$.isHydrating&&$.effects.push(()=>{setVarsOnVNode($.activeBranch,r)})}for(;t.component;)t=t.component.subTree;if(t.shapeFlag&1&&t.el)setVarsOnNode(t.el,r);else if(t.type===Fragment)t.children.forEach($=>setVarsOnVNode($,r));else if(t.type===Static){let{el:$,anchor:V}=t;for(;$&&(setVarsOnNode($,r),$!==V);)$=$.nextSibling}}function setVarsOnNode(t,r){if(t.nodeType===1){const $=t.style;for(const V in r)$.setProperty(`--${V}`,r[V])}}const TRANSITION="transition",ANIMATION="animation",Transition=(t,{slots:r})=>h$2(BaseTransition,resolveTransitionProps(t),r);Transition.displayName="Transition";const DOMTransitionPropsValidators={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},TransitionPropsValidators=Transition.props=extend$2({},BaseTransitionPropsValidators,DOMTransitionPropsValidators),callHook=(t,r=[])=>{isArray$c(t)?t.forEach($=>$(...r)):t&&t(...r)},hasExplicitCallback=t=>t?isArray$c(t)?t.some(r=>r.length>1):t.length>1:!1;function resolveTransitionProps(t){const r={};for(const xn in t)xn in DOMTransitionPropsValidators||(r[xn]=t[xn]);if(t.css===!1)return r;const{name:$="v",type:V,duration:oe,enterFromClass:ie=`${$}-enter-from`,enterActiveClass:le=`${$}-enter-active`,enterToClass:ue=`${$}-enter-to`,appearFromClass:de=ie,appearActiveClass:pe=le,appearToClass:he=ue,leaveFromClass:_e=`${$}-leave-from`,leaveActiveClass:$e=`${$}-leave-active`,leaveToClass:Ie=`${$}-leave-to`}=t,Ve=normalizeDuration(oe),Fe=Ve&&Ve[0],Ue=Ve&&Ve[1],{onBeforeEnter:qe,onEnter:Et,onEnterCancelled:Lt,onLeave:hn,onLeaveCancelled:Cn,onBeforeAppear:bn=qe,onAppear:Sn=Et,onAppearCancelled:En=Lt}=r,wn=(xn,An,Mn)=>{removeTransitionClass(xn,An?he:ue),removeTransitionClass(xn,An?pe:le),Mn&&Mn()},$n=(xn,An)=>{xn._isLeaving=!1,removeTransitionClass(xn,_e),removeTransitionClass(xn,Ie),removeTransitionClass(xn,$e),An&&An()},Tn=xn=>(An,Mn)=>{const Vn=xn?Sn:Et,Bn=()=>wn(An,xn,Mn);callHook(Vn,[An,Bn]),nextFrame(()=>{removeTransitionClass(An,xn?de:ie),addTransitionClass(An,xn?he:ue),hasExplicitCallback(Vn)||whenTransitionEnds(An,V,Fe,Bn)})};return extend$2(r,{onBeforeEnter(xn){callHook(qe,[xn]),addTransitionClass(xn,ie),addTransitionClass(xn,le)},onBeforeAppear(xn){callHook(bn,[xn]),addTransitionClass(xn,de),addTransitionClass(xn,pe)},onEnter:Tn(!1),onAppear:Tn(!0),onLeave(xn,An){xn._isLeaving=!0;const Mn=()=>$n(xn,An);addTransitionClass(xn,_e),forceReflow(),addTransitionClass(xn,$e),nextFrame(()=>{xn._isLeaving&&(removeTransitionClass(xn,_e),addTransitionClass(xn,Ie),hasExplicitCallback(hn)||whenTransitionEnds(xn,V,Ue,Mn))}),callHook(hn,[xn,Mn])},onEnterCancelled(xn){wn(xn,!1),callHook(Lt,[xn])},onAppearCancelled(xn){wn(xn,!0),callHook(En,[xn])},onLeaveCancelled(xn){$n(xn),callHook(Cn,[xn])}})}function normalizeDuration(t){if(t==null)return null;if(isObject$a(t))return[NumberOf(t.enter),NumberOf(t.leave)];{const r=NumberOf(t);return[r,r]}}function NumberOf(t){return toNumber$1(t)}function addTransitionClass(t,r){r.split(/\s+/).forEach($=>$&&t.classList.add($)),(t._vtc||(t._vtc=new Set)).add(r)}function removeTransitionClass(t,r){r.split(/\s+/).forEach(V=>V&&t.classList.remove(V));const{_vtc:$}=t;$&&($.delete(r),$.size||(t._vtc=void 0))}function nextFrame(t){requestAnimationFrame(()=>{requestAnimationFrame(t)})}let endId=0;function whenTransitionEnds(t,r,$,V){const oe=t._endId=++endId,ie=()=>{oe===t._endId&&V()};if($)return setTimeout(ie,$);const{type:le,timeout:ue,propCount:de}=getTransitionInfo(t,r);if(!le)return V();const pe=le+"end";let he=0;const _e=()=>{t.removeEventListener(pe,$e),ie()},$e=Ie=>{Ie.target===t&&++he>=de&&_e()};setTimeout(()=>{he($[Ve]||"").split(", "),oe=V(`${TRANSITION}Delay`),ie=V(`${TRANSITION}Duration`),le=getTimeout(oe,ie),ue=V(`${ANIMATION}Delay`),de=V(`${ANIMATION}Duration`),pe=getTimeout(ue,de);let he=null,_e=0,$e=0;r===TRANSITION?le>0&&(he=TRANSITION,_e=le,$e=ie.length):r===ANIMATION?pe>0&&(he=ANIMATION,_e=pe,$e=de.length):(_e=Math.max(le,pe),he=_e>0?le>pe?TRANSITION:ANIMATION:null,$e=he?he===TRANSITION?ie.length:de.length:0);const Ie=he===TRANSITION&&/\b(transform|all)(,|$)/.test(V(`${TRANSITION}Property`).toString());return{type:he,timeout:_e,propCount:$e,hasTransform:Ie}}function getTimeout(t,r){for(;t.lengthtoMs($)+toMs(t[V])))}function toMs(t){return Number(t.slice(0,-1).replace(",","."))*1e3}function forceReflow(){return document.body.offsetHeight}const positionMap=new WeakMap,newPositionMap=new WeakMap,TransitionGroupImpl={name:"TransitionGroup",props:extend$2({},TransitionPropsValidators,{tag:String,moveClass:String}),setup(t,{slots:r}){const $=getCurrentInstance(),V=useTransitionState();let oe,ie;return onUpdated(()=>{if(!oe.length)return;const le=t.moveClass||`${t.name||"v"}-move`;if(!hasCSSTransform(oe[0].el,$.vnode.el,le))return;oe.forEach(callPendingCbs),oe.forEach(recordPosition);const ue=oe.filter(applyTranslation);forceReflow(),ue.forEach(de=>{const pe=de.el,he=pe.style;addTransitionClass(pe,le),he.transform=he.webkitTransform=he.transitionDuration="";const _e=pe._moveCb=$e=>{$e&&$e.target!==pe||(!$e||/transform$/.test($e.propertyName))&&(pe.removeEventListener("transitionend",_e),pe._moveCb=null,removeTransitionClass(pe,le))};pe.addEventListener("transitionend",_e)})}),()=>{const le=toRaw(t),ue=resolveTransitionProps(le);let de=le.tag||Fragment;oe=ie,ie=r.default?getTransitionRawChildren(r.default()):[];for(let pe=0;pedelete t.mode;TransitionGroupImpl.props;const TransitionGroup=TransitionGroupImpl;function callPendingCbs(t){const r=t.el;r._moveCb&&r._moveCb(),r._enterCb&&r._enterCb()}function recordPosition(t){newPositionMap.set(t,t.el.getBoundingClientRect())}function applyTranslation(t){const r=positionMap.get(t),$=newPositionMap.get(t),V=r.left-$.left,oe=r.top-$.top;if(V||oe){const ie=t.el.style;return ie.transform=ie.webkitTransform=`translate(${V}px,${oe}px)`,ie.transitionDuration="0s",t}}function hasCSSTransform(t,r,$){const V=t.cloneNode();t._vtc&&t._vtc.forEach(le=>{le.split(/\s+/).forEach(ue=>ue&&V.classList.remove(ue))}),$.split(/\s+/).forEach(le=>le&&V.classList.add(le)),V.style.display="none";const oe=r.nodeType===1?r:r.parentNode;oe.appendChild(V);const{hasTransform:ie}=getTransitionInfo(V);return oe.removeChild(V),ie}const getModelAssigner=t=>{const r=t.props["onUpdate:modelValue"]||!1;return isArray$c(r)?$=>invokeArrayFns(r,$):r};function onCompositionStart(t){t.target.composing=!0}function onCompositionEnd(t){const r=t.target;r.composing&&(r.composing=!1,r.dispatchEvent(new Event("input")))}const vModelText={created(t,{modifiers:{lazy:r,trim:$,number:V}},oe){t._assign=getModelAssigner(oe);const ie=V||oe.props&&oe.props.type==="number";addEventListener$1(t,r?"change":"input",le=>{if(le.target.composing)return;let ue=t.value;$&&(ue=ue.trim()),ie&&(ue=looseToNumber(ue)),t._assign(ue)}),$&&addEventListener$1(t,"change",()=>{t.value=t.value.trim()}),r||(addEventListener$1(t,"compositionstart",onCompositionStart),addEventListener$1(t,"compositionend",onCompositionEnd),addEventListener$1(t,"change",onCompositionEnd))},mounted(t,{value:r}){t.value=r??""},beforeUpdate(t,{value:r,modifiers:{lazy:$,trim:V,number:oe}},ie){if(t._assign=getModelAssigner(ie),t.composing||document.activeElement===t&&t.type!=="range"&&($||V&&t.value.trim()===r||(oe||t.type==="number")&&looseToNumber(t.value)===r))return;const le=r??"";t.value!==le&&(t.value=le)}},vModelCheckbox={deep:!0,created(t,r,$){t._assign=getModelAssigner($),addEventListener$1(t,"change",()=>{const V=t._modelValue,oe=getValue$2(t),ie=t.checked,le=t._assign;if(isArray$c(V)){const ue=looseIndexOf(V,oe),de=ue!==-1;if(ie&&!de)le(V.concat(oe));else if(!ie&&de){const pe=[...V];pe.splice(ue,1),le(pe)}}else if(isSet$3(V)){const ue=new Set(V);ie?ue.add(oe):ue.delete(oe),le(ue)}else le(getCheckboxValue(t,ie))})},mounted:setChecked,beforeUpdate(t,r,$){t._assign=getModelAssigner($),setChecked(t,r,$)}};function setChecked(t,{value:r,oldValue:$},V){t._modelValue=r,isArray$c(r)?t.checked=looseIndexOf(r,V.props.value)>-1:isSet$3(r)?t.checked=r.has(V.props.value):r!==$&&(t.checked=looseEqual(r,getCheckboxValue(t,!0)))}const vModelRadio={created(t,{value:r},$){t.checked=looseEqual(r,$.props.value),t._assign=getModelAssigner($),addEventListener$1(t,"change",()=>{t._assign(getValue$2(t))})},beforeUpdate(t,{value:r,oldValue:$},V){t._assign=getModelAssigner(V),r!==$&&(t.checked=looseEqual(r,V.props.value))}},vModelSelect={deep:!0,created(t,{value:r,modifiers:{number:$}},V){const oe=isSet$3(r);addEventListener$1(t,"change",()=>{const ie=Array.prototype.filter.call(t.options,le=>le.selected).map(le=>$?looseToNumber(getValue$2(le)):getValue$2(le));t._assign(t.multiple?oe?new Set(ie):ie:ie[0])}),t._assign=getModelAssigner(V)},mounted(t,{value:r}){setSelected(t,r)},beforeUpdate(t,r,$){t._assign=getModelAssigner($)},updated(t,{value:r}){setSelected(t,r)}};function setSelected(t,r){const $=t.multiple;if(!($&&!isArray$c(r)&&!isSet$3(r))){for(let V=0,oe=t.options.length;V-1:ie.selected=r.has(le);else if(looseEqual(getValue$2(ie),r)){t.selectedIndex!==V&&(t.selectedIndex=V);return}}!$&&t.selectedIndex!==-1&&(t.selectedIndex=-1)}}function getValue$2(t){return"_value"in t?t._value:t.value}function getCheckboxValue(t,r){const $=r?"_trueValue":"_falseValue";return $ in t?t[$]:r}const vModelDynamic={created(t,r,$){callModelHook(t,r,$,null,"created")},mounted(t,r,$){callModelHook(t,r,$,null,"mounted")},beforeUpdate(t,r,$,V){callModelHook(t,r,$,V,"beforeUpdate")},updated(t,r,$,V){callModelHook(t,r,$,V,"updated")}};function resolveDynamicModel(t,r){switch(t){case"SELECT":return vModelSelect;case"TEXTAREA":return vModelText;default:switch(r){case"checkbox":return vModelCheckbox;case"radio":return vModelRadio;default:return vModelText}}}function callModelHook(t,r,$,V,oe){const le=resolveDynamicModel(t.tagName,$.props&&$.props.type)[oe];le&&le(t,r,$,V)}function initVModelForSSR(){vModelText.getSSRProps=({value:t})=>({value:t}),vModelRadio.getSSRProps=({value:t},r)=>{if(r.props&&looseEqual(r.props.value,t))return{checked:!0}},vModelCheckbox.getSSRProps=({value:t},r)=>{if(isArray$c(t)){if(r.props&&looseIndexOf(t,r.props.value)>-1)return{checked:!0}}else if(isSet$3(t)){if(r.props&&t.has(r.props.value))return{checked:!0}}else if(t)return{checked:!0}},vModelDynamic.getSSRProps=(t,r)=>{if(typeof r.type!="string")return;const $=resolveDynamicModel(r.type.toUpperCase(),r.props&&r.props.type);if($.getSSRProps)return $.getSSRProps(t,r)}}const systemModifiers=["ctrl","shift","alt","meta"],modifierGuards={stop:t=>t.stopPropagation(),prevent:t=>t.preventDefault(),self:t=>t.target!==t.currentTarget,ctrl:t=>!t.ctrlKey,shift:t=>!t.shiftKey,alt:t=>!t.altKey,meta:t=>!t.metaKey,left:t=>"button"in t&&t.button!==0,middle:t=>"button"in t&&t.button!==1,right:t=>"button"in t&&t.button!==2,exact:(t,r)=>systemModifiers.some($=>t[`${$}Key`]&&!r.includes($))},withModifiers=(t,r)=>($,...V)=>{for(let oe=0;oe$=>{if(!("key"in $))return;const V=hyphenate($.key);if(r.some(oe=>oe===V||keyNames[oe]===V))return t($)},vShow={beforeMount(t,{value:r},{transition:$}){t._vod=t.style.display==="none"?"":t.style.display,$&&r?$.beforeEnter(t):setDisplay(t,r)},mounted(t,{value:r},{transition:$}){$&&r&&$.enter(t)},updated(t,{value:r,oldValue:$},{transition:V}){!r!=!$&&(V?r?(V.beforeEnter(t),setDisplay(t,!0),V.enter(t)):V.leave(t,()=>{setDisplay(t,!1)}):setDisplay(t,r))},beforeUnmount(t,{value:r}){setDisplay(t,r)}};function setDisplay(t,r){t.style.display=r?t._vod:"none"}function initVShowForSSR(){vShow.getSSRProps=({value:t})=>{if(!t)return{style:{display:"none"}}}}const rendererOptions=extend$2({patchProp},nodeOps);let renderer,enabledHydration=!1;function ensureRenderer(){return renderer||(renderer=createRenderer(rendererOptions))}function ensureHydrationRenderer(){return renderer=enabledHydration?renderer:createHydrationRenderer(rendererOptions),enabledHydration=!0,renderer}const render$4=(...t)=>{ensureRenderer().render(...t)},hydrate=(...t)=>{ensureHydrationRenderer().hydrate(...t)},createApp=(...t)=>{const r=ensureRenderer().createApp(...t),{mount:$}=r;return r.mount=V=>{const oe=normalizeContainer(V);if(!oe)return;const ie=r._component;!isFunction$5(ie)&&!ie.render&&!ie.template&&(ie.template=oe.innerHTML),oe.innerHTML="";const le=$(oe,!1,oe instanceof SVGElement);return oe instanceof Element&&(oe.removeAttribute("v-cloak"),oe.setAttribute("data-v-app","")),le},r},createSSRApp=(...t)=>{const r=ensureHydrationRenderer().createApp(...t),{mount:$}=r;return r.mount=V=>{const oe=normalizeContainer(V);if(oe)return $(oe,!0,oe instanceof SVGElement)},r};function normalizeContainer(t){return isString$6(t)?document.querySelector(t):t}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$2,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,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"})),versionBg="/vue-pure-admin/static/png/version-bg.png",versionTipDialog$1="",setVersionTipTheme=(t="#FA8D88",r="#FE7D66")=>` version-rokect `,defaultParams={title:"Update",description:"is available",buttonText:"Refresh"},versionTipDialog=t=>{if(document.querySelector("#version-rocket"))return;const $=`
${t.primaryColor||t.rocketColor?`
${setVersionTipTheme(t.primaryColor,t.rocketColor)}
`:`version`}
${t.title||defaultParams.title}
${t.description||(t.newVersion?`V ${t.newVersion} ${defaultParams.description}`:`A new version ${defaultParams.description}`)}
${t.buttonText||defaultParams.buttonText}
${t.cancelButtonText?`
${t.cancelButtonText}
`:""}
`;let V=document.createElement("div");V.innerHTML=$,document.body.appendChild(V);const oe=document.querySelector("#version-rocket .refresh-button");oe.onclick=()=>{typeof(t==null?void 0:t.onRefresh)=="function"?t.onRefresh({newVersion:t.newVersion,needRefresh:t.needRefresh||!1}):window.location.reload()};const ie=document.querySelector("#version-rocket .cancel-button");ie&&(ie.onclick=()=>{if(typeof(t==null?void 0:t.onCancel)=="function"){t.onCancel({newVersion:t.newVersion,needRefresh:t.needRefresh||!1});return}switch((t==null?void 0:t.cancelMode)||"ignore-current-version"){case"ignore-current-version":localStorage.setItem("version-rocket:cancelled",t.newVersion||"");break;case"ignore-today":localStorage.setItem("version-rocket:cancelled",new Date().toLocaleDateString());break;case"ignore-current-window":sessionStorage.setItem("version-rocket:cancelled","true");break}unCheckVersion({closeDialog:!0,closeWorker:!1})})},createWorker=(t,r)=>{const $=`${(r==null?void 0:r.map(le=>le.toString()).join(`; `))||""}`,V=new Blob([` ${$}; (${t.toString()})(); `]),oe=window.URL.createObjectURL(V);return new Worker(oe)},createWorkerFunc=()=>{let t="";const r=new Set;let $=5e3,V=!1,oe="",ie=[],le="one",ue=null,de=!1;const pe=self;return pe.onmessage=he=>{t=he.data["version-key"],$=he.data["polling-time"],V=he.data.immediate,oe=he.data["origin-version-file-url"],ie=he.data["check-origin-specified-files-url"],le=he.data["check-origin-specified-files-url-mode"],de=he.data["clear-interval-on-dialog"];const _e=checkVersionTypeFunc(t,oe,ie);_e||pe.postMessage({invalidParams:!0});const $e=()=>{if(_e==="check-version"&&fetch(`${oe}?${+new Date}`).then(Ie=>Ie.json()).then(Ie=>{t!==Ie.version&&(pe.postMessage({refreshPageVisible:!0,refreshPageVersion:`${Ie.version}`,external:Ie.external}),de&&clearInterval(ue))}),_e==="check-specified-files"){if(!(ie!=null&&ie.length))return;ie.forEach(Ie=>{fetch(Ie).then(Ve=>Ve.headers.get("ETag")||Ve.headers.get("Last-Modified")).then(Ve=>{Ve&&r.add(Ve),le==="one"&&r.size>ie.length&&(pe.postMessage({refreshPageVisible:!0,refreshPageVersion:"",external:""}),r.clear(),de&&clearInterval(ue)),le==="all"&&r.size===ie.length*2&&(pe.postMessage({refreshPageVisible:!0,refreshPageVersion:"",external:""}),r.clear(),de&&clearInterval(ue))})})}};V&&$e(),ue=setInterval($e,$)},pe},cancelUpdateFunc=(t,r,$,V)=>{const oe=t||(r?"ignore-current-version":"ignore-current-window"),ie=localStorage.getItem("version-rocket:cancelled")||"",le=new Date().toLocaleDateString(),ue=sessionStorage.getItem("version-rocket:cancelled")||"",de=$||!1;switch(oe){case"ignore-current-version":if(r&&ie===r)return de&&(V==null||V.terminate()),!0;case"ignore-today":if(ie===le)return de&&(V==null||V.terminate()),!0;break;case"ignore-current-window":if(ue)return de&&(V==null||V.terminate()),!0;break}return!1};function checkVersionTypeFunc(t,r,$){const V=t&&r?"check-version":$!=null&&$.length?"check-specified-files":"";return V?(console.log("You are use check version type is",V),V):console.log("Not found localPackageVersion, originVersionFileUrl or originSpecifiedFilesUrl")}let worker;const checkVersion=(t,r)=>{t.enable!==!1&&(worker||(worker=createWorker(createWorkerFunc,[checkVersionTypeFunc])),worker.postMessage({"version-key":t.localPackageVersion||"","polling-time":t.pollingTime||5e3,immediate:t.immediate||!1,"origin-version-file-url":t.originVersionFileUrl||"","check-origin-specified-files-url":[...new Set(t.checkOriginSpecifiedFilesUrl)],"check-origin-specified-files-url-mode":t.checkOriginSpecifiedFilesUrlMode||"one","clear-interval-on-dialog":t.clearIntervalOnDialog||!1}),worker.onmessage=$=>{var V;if(!cancelUpdateFunc(r==null?void 0:r.cancelMode,(V=$.data)===null||V===void 0?void 0:V.refreshPageVersion,r==null?void 0:r.cancelUpdateAndStopWorker,worker))if(localStorage.removeItem("version-rocket:cancelled"),sessionStorage.removeItem("version-rocket:cancelled"),typeof t.onVersionUpdate=="function")t.onVersionUpdate($.data);else{const{title:ie,description:le,buttonText:ue,cancelButtonText:de,cancelMode:pe,imageUrl:he,rocketColor:_e,primaryColor:$e,buttonStyle:Ie}=r||{},{onRefresh:Ve,onCancel:Fe}=t||{};versionTipDialog({title:ie,description:le,buttonText:ue,cancelButtonText:de,cancelMode:pe,imageUrl:he,rocketColor:_e,primaryColor:$e,buttonStyle:Ie,newVersion:$.data.refreshPageVersion,needRefresh:$.data.refreshPageVersion,onRefresh:Ve,onCancel:Fe})}})},unCheckVersion=({closeDialog:t=!1,closeWorker:r=!0})=>{if(r&&(worker==null||worker.terminate()),t){const $=document.querySelector("#version-rocket"),V=$==null?void 0:$.parentElement;$&&V&&V.removeChild($)}},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=t=>getComputedStyle(t).position==="fixed"?!1:t.offsetParent!==null,obtainAllFocusableElements$1=t=>Array.from(t.querySelectorAll(FOCUSABLE_ELEMENT_SELECTORS)).filter(r=>isFocusable(r)&&isVisible(r)),isFocusable=t=>{if(t.tabIndex>0||t.tabIndex===0&&t.getAttribute("tabIndex")!==null)return!0;if(t.disabled)return!1;switch(t.nodeName){case"A":return!!t.href&&t.rel!=="ignore";case"INPUT":return!(t.type==="hidden"||t.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},triggerEvent=function(t,r,...$){let V;r.includes("mouse")||r.includes("click")?V="MouseEvents":r.includes("key")?V="KeyboardEvent":V="HTMLEvents";const oe=document.createEvent(V);return oe.initEvent(r,...$),t.dispatchEvent(oe),t},isLeaf=t=>!t.getAttribute("aria-owns"),getSibling=(t,r,$)=>{const{parentNode:V}=t;if(!V)return null;const oe=V.querySelectorAll($),ie=Array.prototype.indexOf.call(oe,t);return oe[ie+r]||null},focusNode=t=>{t&&(t.focus(),!isLeaf(t)&&t.click())},composeEventHandlers=(t,r,{checkForDefaultPrevented:$=!0}={})=>oe=>{const ie=t==null?void 0:t(oe);if($===!1||!ie)return r==null?void 0:r(oe)},whenMouse=t=>r=>r.pointerType==="mouse"?t(r):void 0;var isVue2=!1,__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=(t,r,$)=>r in t?__defProp$9(t,r,{enumerable:!0,configurable:!0,writable:!0,value:$}):t[r]=$,__spreadValues$9=(t,r)=>{for(var $ in r||(r={}))__hasOwnProp$b.call(r,$)&&__defNormalProp$9(t,$,r[$]);if(__getOwnPropSymbols$b)for(var $ of __getOwnPropSymbols$b(r))__propIsEnum$b.call(r,$)&&__defNormalProp$9(t,$,r[$]);return t},__spreadProps$6=(t,r)=>__defProps$6(t,__getOwnPropDescs$6(r));function computedEager(t,r){var $;const V=shallowRef();return watchEffect(()=>{V.value=t()},__spreadProps$6(__spreadValues$9({},r),{flush:($=r==null?void 0:r.flush)!=null?$:"sync"})),readonly(V)}var _a$1;const isClient$1=typeof window<"u",isDef$1=t=>typeof t<"u",isFunction$4=t=>typeof t=="function",isString$5=t=>typeof t=="string",noop$6=()=>{},isIOS$1=isClient$1&&((_a$1=window==null?void 0:window.navigator)==null?void 0:_a$1.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function resolveUnref(t){return typeof t=="function"?t():unref(t)}function createFilterWrapper$1(t,r){function $(...V){return new Promise((oe,ie)=>{Promise.resolve(t(()=>r.apply(this,V),{fn:r,thisArg:this,args:V})).then(oe).catch(ie)})}return $}function debounceFilter$1(t,r={}){let $,V,oe=noop$6;const ie=ue=>{clearTimeout(ue),oe(),oe=noop$6};return ue=>{const de=resolveUnref(t),pe=resolveUnref(r.maxWait);return $&&ie($),de<=0||pe!==void 0&&pe<=0?(V&&(ie(V),V=null),Promise.resolve(ue())):new Promise((he,_e)=>{oe=r.rejectOnCancel?_e:he,pe&&!V&&(V=setTimeout(()=>{$&&ie($),V=null,he(ue())},pe)),$=setTimeout(()=>{V&&ie(V),V=null,he(ue())},de)})}}function throttleFilter(t,r=!0,$=!0,V=!1){let oe=0,ie,le=!0,ue=noop$6,de;const pe=()=>{ie&&(clearTimeout(ie),ie=void 0,ue(),ue=noop$6)};return _e=>{const $e=resolveUnref(t),Ie=Date.now()-oe,Ve=()=>de=_e();return pe(),$e<=0?(oe=Date.now(),Ve()):(Ie>$e&&($||!le)?(oe=Date.now(),Ve()):r&&(de=new Promise((Fe,Ue)=>{ue=V?Ue:Fe,ie=setTimeout(()=>{oe=Date.now(),le=!0,Fe(Ve()),pe()},Math.max(0,$e-Ie))})),!$&&!ie&&(ie=setTimeout(()=>le=!0,$e)),le=!1,de)}}function identity$2(t){return t}function tryOnScopeDispose$1(t){return getCurrentScope()?(onScopeDispose(t),!0):!1}function useDebounceFn$1(t,r=200,$={}){return createFilterWrapper$1(debounceFilter$1(r,$),t)}function refDebounced(t,r=200,$={}){const V=ref(t.value),oe=useDebounceFn$1(()=>{V.value=t.value},r,$);return watch(t,()=>oe()),V}function useThrottleFn(t,r=200,$=!1,V=!0,oe=!1){return createFilterWrapper$1(throttleFilter(r,$,V,oe),t)}function tryOnMounted$1(t,r=!0){getCurrentInstance()?onMounted(t):r?t():nextTick(t)}function useTimeoutFn$1(t,r,$={}){const{immediate:V=!0}=$,oe=ref(!1);let ie=null;function le(){ie&&(clearTimeout(ie),ie=null)}function ue(){oe.value=!1,le()}function de(...pe){le(),oe.value=!0,ie=setTimeout(()=>{oe.value=!1,ie=null,t(...pe)},resolveUnref(r))}return V&&(oe.value=!0,isClient$1&&de()),tryOnScopeDispose$1(ue),{isPending:readonly(oe),start:de,stop:ue}}function unrefElement$1(t){var r;const $=resolveUnref(t);return(r=$==null?void 0:$.$el)!=null?r:$}const defaultWindow$1=isClient$1?window:void 0,defaultDocument$1=isClient$1?window.document:void 0;function useEventListener$1(...t){let r,$,V,oe;if(isString$5(t[0])||Array.isArray(t[0])?([$,V,oe]=t,r=defaultWindow$1):[r,$,V,oe]=t,!r)return noop$6;Array.isArray($)||($=[$]),Array.isArray(V)||(V=[V]);const ie=[],le=()=>{ie.forEach(he=>he()),ie.length=0},ue=(he,_e,$e,Ie)=>(he.addEventListener(_e,$e,Ie),()=>he.removeEventListener(_e,$e,Ie)),de=watch(()=>[unrefElement$1(r),resolveUnref(oe)],([he,_e])=>{le(),he&&ie.push(...$.flatMap($e=>V.map(Ie=>ue(he,$e,Ie,_e))))},{immediate:!0,flush:"post"}),pe=()=>{de(),le()};return tryOnScopeDispose$1(pe),pe}let _iOSWorkaround$1=!1;function onClickOutside$1(t,r,$={}){const{window:V=defaultWindow$1,ignore:oe=[],capture:ie=!0,detectIframe:le=!1}=$;if(!V)return;isIOS$1&&!_iOSWorkaround$1&&(_iOSWorkaround$1=!0,Array.from(V.document.body.children).forEach($e=>$e.addEventListener("click",noop$6)));let ue=!0;const de=$e=>oe.some(Ie=>{if(typeof Ie=="string")return Array.from(V.document.querySelectorAll(Ie)).some(Ve=>Ve===$e.target||$e.composedPath().includes(Ve));{const Ve=unrefElement$1(Ie);return Ve&&($e.target===Ve||$e.composedPath().includes(Ve))}}),he=[useEventListener$1(V,"click",$e=>{const Ie=unrefElement$1(t);if(!(!Ie||Ie===$e.target||$e.composedPath().includes(Ie))){if($e.detail===0&&(ue=!de($e)),!ue){ue=!0;return}r($e)}},{passive:!0,capture:ie}),useEventListener$1(V,"pointerdown",$e=>{const Ie=unrefElement$1(t);Ie&&(ue=!$e.composedPath().includes(Ie)&&!de($e))},{passive:!0}),le&&useEventListener$1(V,"blur",$e=>{var Ie;const Ve=unrefElement$1(t);((Ie=V.document.activeElement)==null?void 0:Ie.tagName)==="IFRAME"&&!(Ve!=null&&Ve.contains(V.document.activeElement))&&r($e)})].filter(Boolean);return()=>he.forEach($e=>$e())}function useSupported$1(t,r=!1){const $=ref(),V=()=>$.value=!!t();return V(),tryOnMounted$1(V,r),$}function cloneFnJSON$1(t){return JSON.parse(JSON.stringify(t))}const _global$1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},globalKey="__vueuse_ssr_handlers__";_global$1[globalKey]=_global$1[globalKey]||{};function useCssVar(t,r,{window:$=defaultWindow$1,initialValue:V=""}={}){const oe=ref(V),ie=computed(()=>{var le;return unrefElement$1(r)||((le=$==null?void 0:$.document)==null?void 0:le.documentElement)});return watch([ie,()=>resolveUnref(t)],([le,ue])=>{var de;if(le&&$){const pe=(de=$.getComputedStyle(le).getPropertyValue(ue))==null?void 0:de.trim();oe.value=pe||V}},{immediate:!0}),watch(oe,le=>{var ue;(ue=ie.value)!=null&&ue.style&&ie.value.style.setProperty(resolveUnref(t),le)}),oe}function useDocumentVisibility({document:t=defaultDocument$1}={}){if(!t)return ref("visible");const r=ref(t.visibilityState);return useEventListener$1(t,"visibilitychange",()=>{r.value=t.visibilityState}),r}var __getOwnPropSymbols$g=Object.getOwnPropertySymbols,__hasOwnProp$g=Object.prototype.hasOwnProperty,__propIsEnum$g=Object.prototype.propertyIsEnumerable,__objRest$2=(t,r)=>{var $={};for(var V in t)__hasOwnProp$g.call(t,V)&&r.indexOf(V)<0&&($[V]=t[V]);if(t!=null&&__getOwnPropSymbols$g)for(var V of __getOwnPropSymbols$g(t))r.indexOf(V)<0&&__propIsEnum$g.call(t,V)&&($[V]=t[V]);return $};function useResizeObserver$1(t,r,$={}){const V=$,{window:oe=defaultWindow$1}=V,ie=__objRest$2(V,["window"]);let le;const ue=useSupported$1(()=>oe&&"ResizeObserver"in oe),de=()=>{le&&(le.disconnect(),le=void 0)},pe=watch(()=>unrefElement$1(t),_e=>{de(),ue.value&&oe&&_e&&(le=new ResizeObserver(r),le.observe(_e,ie))},{immediate:!0,flush:"post"}),he=()=>{de(),pe()};return tryOnScopeDispose$1(he),{isSupported:ue,stop:he}}function useElementBounding(t,r={}){const{reset:$=!0,windowResize:V=!0,windowScroll:oe=!0,immediate:ie=!0}=r,le=ref(0),ue=ref(0),de=ref(0),pe=ref(0),he=ref(0),_e=ref(0),$e=ref(0),Ie=ref(0);function Ve(){const Fe=unrefElement$1(t);if(!Fe){$&&(le.value=0,ue.value=0,de.value=0,pe.value=0,he.value=0,_e.value=0,$e.value=0,Ie.value=0);return}const Ue=Fe.getBoundingClientRect();le.value=Ue.height,ue.value=Ue.bottom,de.value=Ue.left,pe.value=Ue.right,he.value=Ue.top,_e.value=Ue.width,$e.value=Ue.x,Ie.value=Ue.y}return useResizeObserver$1(t,Ve),watch(()=>unrefElement$1(t),Fe=>!Fe&&Ve()),oe&&useEventListener$1("scroll",Ve,{capture:!0,passive:!0}),V&&useEventListener$1("resize",Ve,{passive:!0}),tryOnMounted$1(()=>{ie&&Ve()}),{height:le,bottom:ue,left:de,right:pe,top:he,width:_e,x:$e,y:Ie,update:Ve}}var SwipeDirection;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(SwipeDirection||(SwipeDirection={}));var __defProp=Object.defineProperty,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(t,r,$)=>r in t?__defProp(t,r,{enumerable:!0,configurable:!0,writable:!0,value:$}):t[r]=$,__spreadValues=(t,r)=>{for(var $ in r||(r={}))__hasOwnProp.call(r,$)&&__defNormalProp(t,$,r[$]);if(__getOwnPropSymbols)for(var $ of __getOwnPropSymbols(r))__propIsEnum.call(r,$)&&__defNormalProp(t,$,r[$]);return t};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$1(t,r,$,V={}){var oe,ie,le;const{clone:ue=!1,passive:de=!1,eventName:pe,deep:he=!1,defaultValue:_e}=V,$e=getCurrentInstance(),Ie=$||($e==null?void 0:$e.emit)||((oe=$e==null?void 0:$e.$emit)==null?void 0:oe.bind($e))||((le=(ie=$e==null?void 0:$e.proxy)==null?void 0:ie.$emit)==null?void 0:le.bind($e==null?void 0:$e.proxy));let Ve=pe;r||(r="modelValue"),Ve=pe||Ve||`update:${r.toString()}`;const Fe=qe=>ue?isFunction$4(ue)?ue(qe):cloneFnJSON$1(qe):qe,Ue=()=>isDef$1(t[r])?Fe(t[r]):_e;if(de){const qe=Ue(),Et=ref(qe);return watch(()=>t[r],Lt=>Et.value=Fe(Lt)),watch(Et,Lt=>{(Lt!==t[r]||he)&&Ie(Ve,Lt)},{deep:he}),Et}else return computed({get(){return Ue()},set(qe){Ie(Ve,qe)}})}function useWindowFocus({window:t=defaultWindow$1}={}){if(!t)return ref(!1);const r=ref(t.document.hasFocus());return useEventListener$1(t,"blur",()=>{r.value=!1}),useEventListener$1(t,"focus",()=>{r.value=!0}),r}function useWindowSize$1(t={}){const{window:r=defaultWindow$1,initialWidth:$=1/0,initialHeight:V=1/0,listenOrientation:oe=!0,includeScrollbar:ie=!0}=t,le=ref($),ue=ref(V),de=()=>{r&&(ie?(le.value=r.innerWidth,ue.value=r.innerHeight):(le.value=r.document.documentElement.clientWidth,ue.value=r.document.documentElement.clientHeight))};return de(),tryOnMounted$1(de),useEventListener$1("resize",de,{passive:!0}),oe&&useEventListener$1("orientationchange",de,{passive:!0}),{width:le,height:ue}}const isFirefox=()=>isClient$1&&/firefox/i.test(window.navigator.userAgent),isInContainer=(t,r)=>{if(!isClient$1||!t||!r)return!1;const $=t.getBoundingClientRect();let V;return r instanceof Element?V=r.getBoundingClientRect():V={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},$.topV.top&&$.right>V.left&&$.left{let r=0,$=t;for(;$;)r+=$.offsetTop,$=$.offsetParent;return r},getOffsetTopDistance=(t,r)=>Math.abs(getOffsetTop(t)-getOffsetTop(r)),getClientXY=t=>{let r,$;return t.type==="touchend"?($=t.changedTouches[0].clientY,r=t.changedTouches[0].clientX):t.type.startsWith("touch")?($=t.touches[0].clientY,r=t.touches[0].clientX):($=t.clientY,r=t.clientX),{clientX:r,clientY:$}};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$f=objectProto$f.hasOwnProperty,nativeObjectToString$1=objectProto$f.toString,symToStringTag$1=Symbol$3?Symbol$3.toStringTag:void 0;function getRawTag(t){var r=hasOwnProperty$f.call(t,symToStringTag$1),$=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var V=!0}catch{}var oe=nativeObjectToString$1.call(t);return V&&(r?t[symToStringTag$1]=$:delete t[symToStringTag$1]),oe}var objectProto$e=Object.prototype,nativeObjectToString=objectProto$e.toString;function objectToString$2(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$3?Symbol$3.toStringTag:void 0;function baseGetTag(t){return t==null?t===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString$2(t)}function isObjectLike(t){return t!=null&&typeof t=="object"}var symbolTag$3="[object Symbol]";function isSymbol$1(t){return typeof t=="symbol"||isObjectLike(t)&&baseGetTag(t)==symbolTag$3}function arrayMap(t,r){for(var $=-1,V=t==null?0:t.length,oe=Array(V);++$0){if(++r>=HOT_COUNT)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}function constant(t){return function(){return t}}var defineProperty=function(){try{var t=getNative(Object,"defineProperty");return t({},"",{}),t}catch{}}();const defineProperty$1=defineProperty;var baseSetToString=defineProperty$1?function(t,r){return defineProperty$1(t,"toString",{configurable:!0,enumerable:!1,value:constant(r),writable:!0})}:identity$1;const baseSetToString$1=baseSetToString;var setToString=shortOut(baseSetToString$1);const setToString$1=setToString;function arrayEach(t,r){for(var $=-1,V=t==null?0:t.length;++$-1}var MAX_SAFE_INTEGER$2=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(t,r){var $=typeof t;return r=r??MAX_SAFE_INTEGER$2,!!r&&($=="number"||$!="symbol"&&reIsUint.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=MAX_SAFE_INTEGER$1}function isArrayLike$1(t){return t!=null&&isLength(t.length)&&!isFunction$3(t)}function isIterateeCall(t,r,$){if(!isObject$9($))return!1;var V=typeof r;return(V=="number"?isArrayLike$1($)&&isIndex(r,$.length):V=="string"&&r in $)?eq($[r],t):!1}function createAssigner(t){return baseRest(function(r,$){var V=-1,oe=$.length,ie=oe>1?$[oe-1]:void 0,le=oe>2?$[2]:void 0;for(ie=t.length>3&&typeof ie=="function"?(oe--,ie):void 0,le&&isIterateeCall($[0],$[1],le)&&(ie=oe<3?void 0:ie,oe=1),r=Object(r);++V-1}function listCacheSet$1(t,r){var $=this.__data__,V=assocIndexOf($,t);return V<0?(++this.size,$.push([t,r])):$[V][1]=r,this}function ListCache(t){var r=-1,$=t==null?0:t.length;for(this.clear();++r<$;){var V=t[r];this.set(V[0],V[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(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}function getMapData(t,r){var $=t.__data__;return isKeyable(r)?$[typeof r=="string"?"string":"hash"]:$.map}function mapCacheDelete(t){var r=getMapData(this,t).delete(t);return this.size-=r?1:0,r}function mapCacheGet(t){return getMapData(this,t).get(t)}function mapCacheHas(t){return getMapData(this,t).has(t)}function mapCacheSet(t,r){var $=getMapData(this,t),V=$.size;return $.set(t,r),this.size+=$.size==V?0:1,this}function MapCache(t){var r=-1,$=t==null?0:t.length;for(this.clear();++r<$;){var V=t[r];this.set(V[0],V[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(t,r){if(typeof t!="function"||r!=null&&typeof r!="function")throw new TypeError(FUNC_ERROR_TEXT$2);var $=function(){var V=arguments,oe=r?r.apply(this,V):V[0],ie=$.cache;if(ie.has(oe))return ie.get(oe);var le=t.apply(this,V);return $.cache=ie.set(oe,le)||ie,le};return $.cache=new(memoize.Cache||MapCache),$}memoize.Cache=MapCache;var MAX_MEMOIZE_SIZE=500;function memoizeCapped(t){var r=memoize(t,function(V){return $.size===MAX_MEMOIZE_SIZE&&$.clear(),V}),$=r.cache;return r}var rePropName$1=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,reEscapeChar$1=/\\(\\)?/g,stringToPath$1=memoizeCapped(function(t){var r=[];return t.charCodeAt(0)===46&&r.push(""),t.replace(rePropName$1,function($,V,oe,ie){r.push(oe?ie.replace(reEscapeChar$1,"$1"):V||$)}),r});const stringToPath$2=stringToPath$1;function toString$2(t){return t==null?"":baseToString(t)}function castPath(t,r){return isArray$b(t)?t:isKey(t,r)?[t]:stringToPath$2(toString$2(t))}var INFINITY$2=1/0;function toKey(t){if(typeof t=="string"||isSymbol$1(t))return t;var r=t+"";return r=="0"&&1/t==-INFINITY$2?"-0":r}function baseGet(t,r){r=castPath(r,t);for(var $=0,V=r.length;t!=null&&$0&&$(ue)?r>1?baseFlatten(ue,r-1,$,V,oe):arrayPush(oe,ue):V||(oe[oe.length]=ue)}return oe}function flatten(t){var r=t==null?0:t.length;return r?baseFlatten(t,1):[]}function flatRest(t){return setToString$1(overRest(t,void 0,flatten),t+"")}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$6=objectProto$4.hasOwnProperty,objectCtorString=funcToString.call(Object);function isPlainObject$3(t){if(!isObjectLike(t)||baseGetTag(t)!=objectTag$3)return!1;var r=getPrototype$1(t);if(r===null)return!0;var $=hasOwnProperty$6.call(r,"constructor")&&r.constructor;return typeof $=="function"&&$ instanceof $&&funcToString.call($)==objectCtorString}function castArray$1(){if(!arguments.length)return[];var t=arguments[0];return isArray$b(t)?t:[t]}function stackClear(){this.__data__=new ListCache,this.size=0}function stackDelete(t){var r=this.__data__,$=r.delete(t);return this.size=r.size,$}function stackGet(t){return this.__data__.get(t)}function stackHas(t){return this.__data__.has(t)}var LARGE_ARRAY_SIZE$1=200;function stackSet(t,r){var $=this.__data__;if($ instanceof ListCache){var V=$.__data__;if(!Map$2||V.lengthue))return!1;var pe=ie.get(t),he=ie.get(r);if(pe&&he)return pe==r&&he==t;var _e=-1,$e=!0,Ie=$&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(ie.set(t,r),ie.set(r,t);++_e=r||Sn<0||_e&&En>=ie}function qe(){var bn=now$1();if(Ue(bn))return Et(bn);ue=setTimeout(qe,Fe(bn))}function Et(bn){return ue=void 0,$e&&V?Ie(bn):(V=oe=void 0,le)}function Lt(){ue!==void 0&&clearTimeout(ue),pe=0,V=de=oe=ue=void 0}function hn(){return ue===void 0?le:Et(now$1())}function Cn(){var bn=now$1(),Sn=Ue(bn);if(V=arguments,oe=this,de=bn,Sn){if(ue===void 0)return Ve(de);if(_e)return clearTimeout(ue),ue=setTimeout(qe,r),Ie(de)}return ue===void 0&&(ue=setTimeout(qe,r)),le}return Cn.cancel=Lt,Cn.flush=hn,Cn}function assignMergeValue(t,r,$){($!==void 0&&!eq(t[r],$)||$===void 0&&!(r in t))&&baseAssignValue(t,r,$)}function isArrayLikeObject(t){return isObjectLike(t)&&isArrayLike$1(t)}function safeGet(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}function toPlainObject(t){return copyObject(t,keysIn(t))}function baseMergeDeep(t,r,$,V,oe,ie,le){var ue=safeGet(t,$),de=safeGet(r,$),pe=le.get(de);if(pe){assignMergeValue(t,$,pe);return}var he=ie?ie(ue,de,$+"",t,r,le):void 0,_e=he===void 0;if(_e){var $e=isArray$b(de),Ie=!$e&&isBuffer$3(de),Ve=!$e&&!Ie&&isTypedArray$3(de);he=de,$e||Ie||Ve?isArray$b(ue)?he=ue:isArrayLikeObject(ue)?he=copyArray(ue):Ie?(_e=!1,he=cloneBuffer(de,!0)):Ve?(_e=!1,he=cloneTypedArray(de,!0)):he=[]:isPlainObject$3(de)||isArguments$1(de)?(he=ue,isArguments$1(ue)?he=toPlainObject(ue):(!isObject$9(ue)||isFunction$3(ue))&&(he=initCloneObject(de))):_e=!1}_e&&(le.set(de,he),oe(he,de,V,ie,le),le.delete(de)),assignMergeValue(t,$,he)}function baseMerge(t,r,$,V,oe){t!==r&&baseFor$1(r,function(ie,le){if(oe||(oe=new Stack),isObject$9(ie))baseMergeDeep(t,r,le,$,baseMerge,V,oe);else{var ue=V?V(safeGet(t,le),ie,le+"",t,r,oe):void 0;ue===void 0&&(ue=ie),assignMergeValue(t,le,ue)}},keysIn)}function arrayIncludesWith(t,r,$){for(var V=-1,oe=t==null?0:t.length;++V=LARGE_ARRAY_SIZE){var pe=r?null:createSet$1(t);if(pe)return setToArray(pe);le=!1,oe=cacheHas,de=new SetCache}else de=r?[]:ue;e:for(;++Vt===void 0,isBoolean$3=t=>typeof t=="boolean",isNumber$4=t=>typeof t=="number",isEmpty=t=>!t&&t!==0||isArray$c(t)&&t.length===0||isObject$a(t)&&!Object.keys(t).length,isElement$2=t=>typeof Element>"u"?!1:t instanceof Element,isPropAbsent=t=>isNil(t),isStringNumber=t=>isString$6(t)?!Number.isNaN(Number(t)):!1,escapeStringRegexp=(t="")=>t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),capitalize$1=t=>capitalize$2(t),keysOf=t=>Object.keys(t),entriesOf=t=>Object.entries(t),getProp=(t,r,$)=>({get value(){return get$1(t,r,$)},set value(V){set$2(t,r,V)}});class ElementPlusError extends Error{constructor(r){super(r),this.name="ElementPlusError"}}function throwError$1(t,r){throw new ElementPlusError(`[${t}] ${r}`)}function debugWarn(t,r){}const classNameToArray=(t="")=>t.split(" ").filter(r=>!!r.trim()),hasClass=(t,r)=>{if(!t||!r)return!1;if(r.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(r)},addClass=(t,r)=>{!t||!r.trim()||t.classList.add(...classNameToArray(r))},removeClass=(t,r)=>{!t||!r.trim()||t.classList.remove(...classNameToArray(r))},getStyle$1=(t,r)=>{var $;if(!isClient$1||!t||!r)return"";let V=camelize(r);V==="float"&&(V="cssFloat");try{const oe=t.style[V];if(oe)return oe;const ie=($=document.defaultView)==null?void 0:$.getComputedStyle(t,"");return ie?ie[V]:""}catch{return t.style[V]}};function addUnit(t,r="px"){if(!t)return"";if(isNumber$4(t)||isStringNumber(t))return`${t}${r}`;if(isString$6(t))return t}const isScroll=(t,r)=>{if(!isClient$1)return!1;const $={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(r)],V=getStyle$1(t,$);return["scroll","auto","overlay"].some(oe=>V.includes(oe))},getScrollContainer=(t,r)=>{if(!isClient$1)return;let $=t;for(;$;){if([window,document,document.documentElement].includes($))return window;if(isScroll($,r))return $;$=$.parentNode}return $};let scrollBarWidth;const getScrollBarWidth=t=>{var r;if(!isClient$1)return 0;if(scrollBarWidth!==void 0)return scrollBarWidth;const $=document.createElement("div");$.className=`${t}-scrollbar__wrap`,$.style.visibility="hidden",$.style.width="100px",$.style.position="absolute",$.style.top="-9999px",document.body.appendChild($);const V=$.offsetWidth;$.style.overflow="scroll";const oe=document.createElement("div");oe.style.width="100%",$.appendChild(oe);const ie=oe.offsetWidth;return(r=$.parentNode)==null||r.removeChild($),scrollBarWidth=V-ie,scrollBarWidth};function scrollIntoView(t,r){if(!isClient$1)return;if(!r){t.scrollTop=0;return}const $=[];let V=r.offsetParent;for(;V!==null&&t!==V&&t.contains(V);)$.push(V),V=V.offsetParent;const oe=r.offsetTop+$.reduce((de,pe)=>de+pe.offsetTop,0),ie=oe+r.offsetHeight,le=t.scrollTop,ue=le+t.clientHeight;oeue&&(t.scrollTop=ie-t.clientHeight)}/*! Element Plus Icons Vue v2.1.0 */var export_helper_default=(t,r)=>{let $=t.__vccOpts||t;for(let[V,oe]of r)$[V]=oe;return $},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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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(t,r,$,V,oe,ie){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=t=>t,isEpProp=t=>isObject$a(t)&&!!t[epPropKey],buildProp=(t,r)=>{if(!isObject$a(t)||isEpProp(t))return t;const{values:$,required:V,default:oe,type:ie,validator:le}=t,de={type:ie,required:!!V,validator:$||le?pe=>{let he=!1,_e=[];if($&&(_e=Array.from($),hasOwn$4(t,"default")&&_e.push(oe),he||(he=_e.includes(pe))),le&&(he||(he=le(pe))),!he&&_e.length>0){const $e=[...new Set(_e)].map(Ie=>JSON.stringify(Ie)).join(", ");warn$2(`Invalid prop: validation failed${r?` for prop "${r}"`:""}. Expected one of [${$e}], got value ${JSON.stringify(pe)}.`)}return he}:void 0,[epPropKey]:!0};return hasOwn$4(t,"default")&&(de.default=oe),de},buildProps=t=>fromPairs(Object.entries(t).map(([r,$])=>[r,buildProp($,r)])),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=(t,r)=>{if(t.install=$=>{for(const V of[t,...Object.values(r??{})])$.component(V.name,V)},r)for(const[$,V]of Object.entries(r))t[$]=V;return t},withInstallFunction=(t,r)=>(t.install=$=>{t._context=$._context,$.config.globalProperties[r]=t},t),withInstallDirective=(t,r)=>(t.install=$=>{$.directive(r,t)},t),withNoopInstall=t=>(t.install=NOOP,t),composeRefs=(...t)=>r=>{t.forEach($=>{isFunction$5($)?$(r):$.value=r})},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=t=>componentSizeMap[t||"default"],isValidComponentSize=t=>["",...componentSizes].includes(t);var PatchFlags=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(PatchFlags||{});function isFragment(t){return isVNode$1(t)&&t.type===Fragment}function isComment(t){return isVNode$1(t)&&t.type===Comment}function isValidElementNode(t){return isVNode$1(t)&&!isFragment(t)&&!isComment(t)}const getNormalizedProps=t=>{if(!isVNode$1(t))return{};const r=t.props||{},$=(isVNode$1(t.type)?t.type.props:void 0)||{},V={};return Object.keys($).forEach(oe=>{hasOwn$4($[oe],"default")&&(V[oe]=$[oe].default)}),Object.keys(r).forEach(oe=>{V[camelize(oe)]=r[oe]}),V},ensureOnlyChild=t=>{if(!isArray$c(t)||t.length>1)throw new Error("expect to receive a single Vue element child");return t[0]},flattedChildren=t=>{const r=isArray$c(t)?t:[t],$=[];return r.forEach(V=>{var oe;isArray$c(V)?$.push(...flattedChildren(V)):isVNode$1(V)&&isArray$c(V.children)?$.push(...flattedChildren(V.children)):($.push(V),isVNode$1(V)&&((oe=V.component)!=null&&oe.subTree)&&$.push(...flattedChildren(V.component.subTree)))}),$},unique=t=>[...new Set(t)],castArray=t=>!t&&t!==0?[]:Array.isArray(t)?t:[t],isKorean=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),rAF=t=>isClient$1?window.requestAnimationFrame(t):setTimeout(t,16),cAF=t=>isClient$1?window.cancelAnimationFrame(t):clearTimeout(t),generateId=()=>Math.floor(Math.random()*1e4),mutable=t=>t,DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]/,useAttrs=(t={})=>{const{excludeListeners:r=!1,excludeKeys:$}=t,V=computed(()=>(($==null?void 0:$.value)||[]).concat(DEFAULT_EXCLUDE_KEYS)),oe=getCurrentInstance();return computed(oe?()=>{var ie;return fromPairs(Object.entries((ie=oe.proxy)==null?void 0:ie.$attrs).filter(([le])=>!V.value.includes(le)&&!(r&&LISTENER_PREFIX.test(le))))}:()=>({}))},useDeprecated=({from:t,replacement:r,scope:$,version:V,ref:oe,type:ie="API"},le)=>{watch(()=>unref(le),ue=>{},{immediate:!0})},useDraggable=(t,r,$)=>{let V={offsetX:0,offsetY:0};const oe=ue=>{const de=ue.clientX,pe=ue.clientY,{offsetX:he,offsetY:_e}=V,$e=t.value.getBoundingClientRect(),Ie=$e.left,Ve=$e.top,Fe=$e.width,Ue=$e.height,qe=document.documentElement.clientWidth,Et=document.documentElement.clientHeight,Lt=-Ie+he,hn=-Ve+_e,Cn=qe-Ie-Fe+he,bn=Et-Ve-Ue+_e,Sn=wn=>{const $n=Math.min(Math.max(he+wn.clientX-de,Lt),Cn),Tn=Math.min(Math.max(_e+wn.clientY-pe,hn),bn);V={offsetX:$n,offsetY:Tn},t.value.style.transform=`translate(${addUnit($n)}, ${addUnit(Tn)})`},En=()=>{document.removeEventListener("mousemove",Sn),document.removeEventListener("mouseup",En)};document.addEventListener("mousemove",Sn),document.addEventListener("mouseup",En)},ie=()=>{r.value&&t.value&&r.value.addEventListener("mousedown",oe)},le=()=>{r.value&&t.value&&r.value.removeEventListener("mousedown",oe)};onMounted(()=>{watchEffect(()=>{$.value?ie():le()})}),onBeforeUnmount(()=>{le()})};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=t=>(r,$)=>translate$2(r,$,unref(t)),translate$2=(t,r,$)=>get$1($,t,t).replace(/\{(\w+)\}/g,(V,oe)=>{var ie;return`${(ie=r==null?void 0:r[oe])!=null?ie:`{${oe}}`}`}),buildLocaleContext=t=>{const r=computed(()=>unref(t).name),$=isRef(t)?t:ref(t);return{lang:r,locale:$,t:buildTranslator(t)}},localeContextKey=Symbol("localeContextKey"),useLocale=t=>{const r=t||inject(localeContextKey,ref());return buildLocaleContext(computed(()=>r.value||English))},defaultNamespace="el",statePrefix="is-",_bem=(t,r,$,V,oe)=>{let ie=`${t}-${r}`;return $&&(ie+=`-${$}`),V&&(ie+=`__${V}`),oe&&(ie+=`--${oe}`),ie},namespaceContextKey=Symbol("namespaceContextKey"),useGetDerivedNamespace=t=>{const r=t||(getCurrentInstance()?inject(namespaceContextKey,ref(defaultNamespace)):ref(defaultNamespace));return computed(()=>unref(r)||defaultNamespace)},useNamespace=(t,r)=>{const $=useGetDerivedNamespace(r);return{namespace:$,b:(Fe="")=>_bem($.value,t,Fe,"",""),e:Fe=>Fe?_bem($.value,t,"",Fe,""):"",m:Fe=>Fe?_bem($.value,t,"","",Fe):"",be:(Fe,Ue)=>Fe&&Ue?_bem($.value,t,Fe,Ue,""):"",em:(Fe,Ue)=>Fe&&Ue?_bem($.value,t,"",Fe,Ue):"",bm:(Fe,Ue)=>Fe&&Ue?_bem($.value,t,Fe,"",Ue):"",bem:(Fe,Ue,qe)=>Fe&&Ue&&qe?_bem($.value,t,Fe,Ue,qe):"",is:(Fe,...Ue)=>{const qe=Ue.length>=1?Ue[0]:!0;return Fe&&qe?`${statePrefix}${Fe}`:""},cssVar:Fe=>{const Ue={};for(const qe in Fe)Fe[qe]&&(Ue[`--${$.value}-${qe}`]=Fe[qe]);return Ue},cssVarName:Fe=>`--${$.value}-${Fe}`,cssVarBlock:Fe=>{const Ue={};for(const qe in Fe)Fe[qe]&&(Ue[`--${$.value}-${t}-${qe}`]=Fe[qe]);return Ue},cssVarBlockName:Fe=>`--${$.value}-${t}-${Fe}`}},useLockscreen=(t,r={})=>{isRef(t)||throwError$1("[useLockscreen]","You need to pass a ref param to this function");const $=r.ns||useNamespace("popup"),V=computed$1(()=>$.bm("parent","hidden"));if(!isClient$1||hasClass(document.body,V.value))return;let oe=0,ie=!1,le="0";const ue=()=>{setTimeout(()=>{removeClass(document==null?void 0:document.body,V.value),ie&&document&&(document.body.style.width=le)},200)};watch(t,de=>{if(!de){ue();return}ie=!hasClass(document.body,V.value),ie&&(le=document.body.style.width),oe=getScrollBarWidth($.namespace.value);const pe=document.documentElement.clientHeight0&&(pe||he==="scroll")&&ie&&(document.body.style.width=`calc(100% - ${oe}px)`),addClass(document.body,V.value)}),onScopeDispose(()=>ue())},_prop=buildProp({type:definePropType(Boolean),default:null}),_event=buildProp({type:definePropType(Function)}),createModelToggleComposable=t=>{const r=`update:${t}`,$=`onUpdate:${t}`,V=[r],oe={[t]:_prop,[$]:_event};return{useModelToggle:({indicator:le,toggleReason:ue,shouldHideWhenRouteChanges:de,shouldProceed:pe,onShow:he,onHide:_e})=>{const $e=getCurrentInstance(),{emit:Ie}=$e,Ve=$e.props,Fe=computed(()=>isFunction$5(Ve[$])),Ue=computed(()=>Ve[t]===null),qe=Sn=>{le.value!==!0&&(le.value=!0,ue&&(ue.value=Sn),isFunction$5(he)&&he(Sn))},Et=Sn=>{le.value!==!1&&(le.value=!1,ue&&(ue.value=Sn),isFunction$5(_e)&&_e(Sn))},Lt=Sn=>{if(Ve.disabled===!0||isFunction$5(pe)&&!pe())return;const En=Fe.value&&isClient$1;En&&Ie(r,!0),(Ue.value||!En)&&qe(Sn)},hn=Sn=>{if(Ve.disabled===!0||!isClient$1)return;const En=Fe.value&&isClient$1;En&&Ie(r,!1),(Ue.value||!En)&&Et(Sn)},Cn=Sn=>{isBoolean$3(Sn)&&(Ve.disabled&&Sn?Fe.value&&Ie(r,!1):le.value!==Sn&&(Sn?qe():Et()))},bn=()=>{le.value?hn():Lt()};return watch(()=>Ve[t],Cn),de&&$e.appContext.config.globalProperties.$route!==void 0&&watch(()=>({...$e.proxy.$route}),()=>{de.value&&le.value&&hn()}),onMounted(()=>{Cn(Ve[t])}),{hide:hn,show:Lt,toggle:bn,hasUpdateHandler:Fe}},useModelToggleProps:oe,useModelToggleEmits:V}};createModelToggleComposable("modelValue");const useProp=t=>{const r=getCurrentInstance();return computed(()=>{var $,V;return(V=($=r==null?void 0:r.proxy)==null?void 0:$.$props)==null?void 0:V[t]})};var E$1="top",R$1="bottom",W$1="right",P$3="left",me="auto",G$1=[E$1,R$1,W$1,P$3],U$2="start",J$1="end",Xe="clippingParents",je$1="viewport",K="popper",Ye="reference",De=G$1.reduce(function(t,r){return t.concat([r+"-"+U$2,r+"-"+J$1])},[]),Ee=[].concat(G$1,[me]).reduce(function(t,r){return t.concat([r,r+"-"+U$2,r+"-"+J$1])},[]),Ge$1="beforeRead",Je$1="read",Ke="afterRead",Qe$1="beforeMain",Ze="main",et$1="afterMain",tt="beforeWrite",nt$1="write",rt$2="afterWrite",ot$1=[Ge$1,Je$1,Ke,Qe$1,Ze,et$1,tt,nt$1,rt$2];function C(t){return t?(t.nodeName||"").toLowerCase():null}function H$1(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function Q$1(t){var r=H$1(t).Element;return t instanceof r||t instanceof Element}function B(t){var r=H$1(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function Pe$1(t){if(typeof ShadowRoot>"u")return!1;var r=H$1(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function Mt$1(t){var r=t.state;Object.keys(r.elements).forEach(function($){var V=r.styles[$]||{},oe=r.attributes[$]||{},ie=r.elements[$];!B(ie)||!C(ie)||(Object.assign(ie.style,V),Object.keys(oe).forEach(function(le){var ue=oe[le];ue===!1?ie.removeAttribute(le):ie.setAttribute(le,ue===!0?"":ue)}))})}function Rt$1(t){var r=t.state,$={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,$.popper),r.styles=$,r.elements.arrow&&Object.assign(r.elements.arrow.style,$.arrow),function(){Object.keys(r.elements).forEach(function(V){var oe=r.elements[V],ie=r.attributes[V]||{},le=Object.keys(r.styles.hasOwnProperty(V)?r.styles[V]:$[V]),ue=le.reduce(function(de,pe){return de[pe]="",de},{});!B(oe)||!C(oe)||(Object.assign(oe.style,ue),Object.keys(ie).forEach(function(de){oe.removeAttribute(de)}))})}}var Ae={name:"applyStyles",enabled:!0,phase:"write",fn:Mt$1,effect:Rt$1,requires:["computeStyles"]};function q$1(t){return t.split("-")[0]}var X$1=Math.max,ve=Math.min,Z=Math.round;function ee$1(t,r){r===void 0&&(r=!1);var $=t.getBoundingClientRect(),V=1,oe=1;if(B(t)&&r){var ie=t.offsetHeight,le=t.offsetWidth;le>0&&(V=Z($.width)/le||1),ie>0&&(oe=Z($.height)/ie||1)}return{width:$.width/V,height:$.height/oe,top:$.top/oe,right:$.right/V,bottom:$.bottom/oe,left:$.left/V,x:$.left/V,y:$.top/oe}}function ke(t){var r=ee$1(t),$=t.offsetWidth,V=t.offsetHeight;return Math.abs(r.width-$)<=1&&($=r.width),Math.abs(r.height-V)<=1&&(V=r.height),{x:t.offsetLeft,y:t.offsetTop,width:$,height:V}}function it(t,r){var $=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if($&&Pe$1($)){var V=r;do{if(V&&t.isSameNode(V))return!0;V=V.parentNode||V.host}while(V)}return!1}function N$2(t){return H$1(t).getComputedStyle(t)}function Wt$1(t){return["table","td","th"].indexOf(C(t))>=0}function I$3(t){return((Q$1(t)?t.ownerDocument:t.document)||window.document).documentElement}function ge(t){return C(t)==="html"?t:t.assignedSlot||t.parentNode||(Pe$1(t)?t.host:null)||I$3(t)}function at$1(t){return!B(t)||N$2(t).position==="fixed"?null:t.offsetParent}function Bt(t){var r=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,$=navigator.userAgent.indexOf("Trident")!==-1;if($&&B(t)){var V=N$2(t);if(V.position==="fixed")return null}var oe=ge(t);for(Pe$1(oe)&&(oe=oe.host);B(oe)&&["html","body"].indexOf(C(oe))<0;){var ie=N$2(oe);if(ie.transform!=="none"||ie.perspective!=="none"||ie.contain==="paint"||["transform","perspective"].indexOf(ie.willChange)!==-1||r&&ie.willChange==="filter"||r&&ie.filter&&ie.filter!=="none")return oe;oe=oe.parentNode}return null}function se$1(t){for(var r=H$1(t),$=at$1(t);$&&Wt$1($)&&N$2($).position==="static";)$=at$1($);return $&&(C($)==="html"||C($)==="body"&&N$2($).position==="static")?r:$||Bt(t)||r}function Le$1(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function fe(t,r,$){return X$1(t,ve(r,$))}function St(t,r,$){var V=fe(t,r,$);return V>$?$:V}function st$1(){return{top:0,right:0,bottom:0,left:0}}function ft$1(t){return Object.assign({},st$1(),t)}function ct$1(t,r){return r.reduce(function($,V){return $[V]=t,$},{})}var Tt$1=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ft$1(typeof t!="number"?t:ct$1(t,G$1))};function Ht$1(t){var r,$=t.state,V=t.name,oe=t.options,ie=$.elements.arrow,le=$.modifiersData.popperOffsets,ue=q$1($.placement),de=Le$1(ue),pe=[P$3,W$1].indexOf(ue)>=0,he=pe?"height":"width";if(!(!ie||!le)){var _e=Tt$1(oe.padding,$),$e=ke(ie),Ie=de==="y"?E$1:P$3,Ve=de==="y"?R$1:W$1,Fe=$.rects.reference[he]+$.rects.reference[de]-le[de]-$.rects.popper[he],Ue=le[de]-$.rects.reference[de],qe=se$1(ie),Et=qe?de==="y"?qe.clientHeight||0:qe.clientWidth||0:0,Lt=Fe/2-Ue/2,hn=_e[Ie],Cn=Et-$e[he]-_e[Ve],bn=Et/2-$e[he]/2+Lt,Sn=fe(hn,bn,Cn),En=de;$.modifiersData[V]=(r={},r[En]=Sn,r.centerOffset=Sn-bn,r)}}function Ct(t){var r=t.state,$=t.options,V=$.element,oe=V===void 0?"[data-popper-arrow]":V;oe!=null&&(typeof oe=="string"&&(oe=r.elements.popper.querySelector(oe),!oe)||!it(r.elements.popper,oe)||(r.elements.arrow=oe))}var pt$1={name:"arrow",enabled:!0,phase:"main",fn:Ht$1,effect:Ct,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function te(t){return t.split("-")[1]}var qt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Vt$1(t){var r=t.x,$=t.y,V=window,oe=V.devicePixelRatio||1;return{x:Z(r*oe)/oe||0,y:Z($*oe)/oe||0}}function ut(t){var r,$=t.popper,V=t.popperRect,oe=t.placement,ie=t.variation,le=t.offsets,ue=t.position,de=t.gpuAcceleration,pe=t.adaptive,he=t.roundOffsets,_e=t.isFixed,$e=le.x,Ie=$e===void 0?0:$e,Ve=le.y,Fe=Ve===void 0?0:Ve,Ue=typeof he=="function"?he({x:Ie,y:Fe}):{x:Ie,y:Fe};Ie=Ue.x,Fe=Ue.y;var qe=le.hasOwnProperty("x"),Et=le.hasOwnProperty("y"),Lt=P$3,hn=E$1,Cn=window;if(pe){var bn=se$1($),Sn="clientHeight",En="clientWidth";if(bn===H$1($)&&(bn=I$3($),N$2(bn).position!=="static"&&ue==="absolute"&&(Sn="scrollHeight",En="scrollWidth")),bn=bn,oe===E$1||(oe===P$3||oe===W$1)&&ie===J$1){hn=R$1;var wn=_e&&bn===Cn&&Cn.visualViewport?Cn.visualViewport.height:bn[Sn];Fe-=wn-V.height,Fe*=de?1:-1}if(oe===P$3||(oe===E$1||oe===R$1)&&ie===J$1){Lt=W$1;var $n=_e&&bn===Cn&&Cn.visualViewport?Cn.visualViewport.width:bn[En];Ie-=$n-V.width,Ie*=de?1:-1}}var Tn=Object.assign({position:ue},pe&&qt),xn=he===!0?Vt$1({x:Ie,y:Fe}):{x:Ie,y:Fe};if(Ie=xn.x,Fe=xn.y,de){var An;return Object.assign({},Tn,(An={},An[hn]=Et?"0":"",An[Lt]=qe?"0":"",An.transform=(Cn.devicePixelRatio||1)<=1?"translate("+Ie+"px, "+Fe+"px)":"translate3d("+Ie+"px, "+Fe+"px, 0)",An))}return Object.assign({},Tn,(r={},r[hn]=Et?Fe+"px":"",r[Lt]=qe?Ie+"px":"",r.transform="",r))}function Nt$1(t){var r=t.state,$=t.options,V=$.gpuAcceleration,oe=V===void 0?!0:V,ie=$.adaptive,le=ie===void 0?!0:ie,ue=$.roundOffsets,de=ue===void 0?!0:ue,pe={placement:q$1(r.placement),variation:te(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:oe,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,ut(Object.assign({},pe,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:le,roundOffsets:de})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,ut(Object.assign({},pe,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:de})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}var Me={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Nt$1,data:{}},ye={passive:!0};function It$1(t){var r=t.state,$=t.instance,V=t.options,oe=V.scroll,ie=oe===void 0?!0:oe,le=V.resize,ue=le===void 0?!0:le,de=H$1(r.elements.popper),pe=[].concat(r.scrollParents.reference,r.scrollParents.popper);return ie&&pe.forEach(function(he){he.addEventListener("scroll",$.update,ye)}),ue&&de.addEventListener("resize",$.update,ye),function(){ie&&pe.forEach(function(he){he.removeEventListener("scroll",$.update,ye)}),ue&&de.removeEventListener("resize",$.update,ye)}}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(t){return t.replace(/left|right|bottom|top/g,function(r){return _t$1[r]})}var zt$1={start:"end",end:"start"};function lt$2(t){return t.replace(/start|end/g,function(r){return zt$1[r]})}function We(t){var r=H$1(t),$=r.pageXOffset,V=r.pageYOffset;return{scrollLeft:$,scrollTop:V}}function Be$1(t){return ee$1(I$3(t)).left+We(t).scrollLeft}function Ft$1(t){var r=H$1(t),$=I$3(t),V=r.visualViewport,oe=$.clientWidth,ie=$.clientHeight,le=0,ue=0;return V&&(oe=V.width,ie=V.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(le=V.offsetLeft,ue=V.offsetTop)),{width:oe,height:ie,x:le+Be$1(t),y:ue}}function Ut$1(t){var r,$=I$3(t),V=We(t),oe=(r=t.ownerDocument)==null?void 0:r.body,ie=X$1($.scrollWidth,$.clientWidth,oe?oe.scrollWidth:0,oe?oe.clientWidth:0),le=X$1($.scrollHeight,$.clientHeight,oe?oe.scrollHeight:0,oe?oe.clientHeight:0),ue=-V.scrollLeft+Be$1(t),de=-V.scrollTop;return N$2(oe||$).direction==="rtl"&&(ue+=X$1($.clientWidth,oe?oe.clientWidth:0)-ie),{width:ie,height:le,x:ue,y:de}}function Se$1(t){var r=N$2(t),$=r.overflow,V=r.overflowX,oe=r.overflowY;return/auto|scroll|overlay|hidden/.test($+oe+V)}function dt$1(t){return["html","body","#document"].indexOf(C(t))>=0?t.ownerDocument.body:B(t)&&Se$1(t)?t:dt$1(ge(t))}function ce(t,r){var $;r===void 0&&(r=[]);var V=dt$1(t),oe=V===(($=t.ownerDocument)==null?void 0:$.body),ie=H$1(V),le=oe?[ie].concat(ie.visualViewport||[],Se$1(V)?V:[]):V,ue=r.concat(le);return oe?ue:ue.concat(ce(ge(le)))}function Te$1(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xt$1(t){var r=ee$1(t);return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function ht(t,r){return r===je$1?Te$1(Ft$1(t)):Q$1(r)?Xt$1(r):Te$1(Ut$1(I$3(t)))}function Yt(t){var r=ce(ge(t)),$=["absolute","fixed"].indexOf(N$2(t).position)>=0,V=$&&B(t)?se$1(t):t;return Q$1(V)?r.filter(function(oe){return Q$1(oe)&&it(oe,V)&&C(oe)!=="body"}):[]}function Gt(t,r,$){var V=r==="clippingParents"?Yt(t):[].concat(r),oe=[].concat(V,[$]),ie=oe[0],le=oe.reduce(function(ue,de){var pe=ht(t,de);return ue.top=X$1(pe.top,ue.top),ue.right=ve(pe.right,ue.right),ue.bottom=ve(pe.bottom,ue.bottom),ue.left=X$1(pe.left,ue.left),ue},ht(t,ie));return le.width=le.right-le.left,le.height=le.bottom-le.top,le.x=le.left,le.y=le.top,le}function mt(t){var r=t.reference,$=t.element,V=t.placement,oe=V?q$1(V):null,ie=V?te(V):null,le=r.x+r.width/2-$.width/2,ue=r.y+r.height/2-$.height/2,de;switch(oe){case E$1:de={x:le,y:r.y-$.height};break;case R$1:de={x:le,y:r.y+r.height};break;case W$1:de={x:r.x+r.width,y:ue};break;case P$3:de={x:r.x-$.width,y:ue};break;default:de={x:r.x,y:r.y}}var pe=oe?Le$1(oe):null;if(pe!=null){var he=pe==="y"?"height":"width";switch(ie){case U$2:de[pe]=de[pe]-(r[he]/2-$[he]/2);break;case J$1:de[pe]=de[pe]+(r[he]/2-$[he]/2);break}}return de}function ne(t,r){r===void 0&&(r={});var $=r,V=$.placement,oe=V===void 0?t.placement:V,ie=$.boundary,le=ie===void 0?Xe:ie,ue=$.rootBoundary,de=ue===void 0?je$1:ue,pe=$.elementContext,he=pe===void 0?K:pe,_e=$.altBoundary,$e=_e===void 0?!1:_e,Ie=$.padding,Ve=Ie===void 0?0:Ie,Fe=ft$1(typeof Ve!="number"?Ve:ct$1(Ve,G$1)),Ue=he===K?Ye:K,qe=t.rects.popper,Et=t.elements[$e?Ue:he],Lt=Gt(Q$1(Et)?Et:Et.contextElement||I$3(t.elements.popper),le,de),hn=ee$1(t.elements.reference),Cn=mt({reference:hn,element:qe,strategy:"absolute",placement:oe}),bn=Te$1(Object.assign({},qe,Cn)),Sn=he===K?bn:hn,En={top:Lt.top-Sn.top+Fe.top,bottom:Sn.bottom-Lt.bottom+Fe.bottom,left:Lt.left-Sn.left+Fe.left,right:Sn.right-Lt.right+Fe.right},wn=t.modifiersData.offset;if(he===K&&wn){var $n=wn[oe];Object.keys(En).forEach(function(Tn){var xn=[W$1,R$1].indexOf(Tn)>=0?1:-1,An=[E$1,R$1].indexOf(Tn)>=0?"y":"x";En[Tn]+=$n[An]*xn})}return En}function Jt(t,r){r===void 0&&(r={});var $=r,V=$.placement,oe=$.boundary,ie=$.rootBoundary,le=$.padding,ue=$.flipVariations,de=$.allowedAutoPlacements,pe=de===void 0?Ee:de,he=te(V),_e=he?ue?De:De.filter(function(Ve){return te(Ve)===he}):G$1,$e=_e.filter(function(Ve){return pe.indexOf(Ve)>=0});$e.length===0&&($e=_e);var Ie=$e.reduce(function(Ve,Fe){return Ve[Fe]=ne(t,{placement:Fe,boundary:oe,rootBoundary:ie,padding:le})[q$1(Fe)],Ve},{});return Object.keys(Ie).sort(function(Ve,Fe){return Ie[Ve]-Ie[Fe]})}function Kt(t){if(q$1(t)===me)return[];var r=be(t);return[lt$2(t),r,lt$2(r)]}function Qt(t){var r=t.state,$=t.options,V=t.name;if(!r.modifiersData[V]._skip){for(var oe=$.mainAxis,ie=oe===void 0?!0:oe,le=$.altAxis,ue=le===void 0?!0:le,de=$.fallbackPlacements,pe=$.padding,he=$.boundary,_e=$.rootBoundary,$e=$.altBoundary,Ie=$.flipVariations,Ve=Ie===void 0?!0:Ie,Fe=$.allowedAutoPlacements,Ue=r.options.placement,qe=q$1(Ue),Et=qe===Ue,Lt=de||(Et||!Ve?[be(Ue)]:Kt(Ue)),hn=[Ue].concat(Lt).reduce(function(or,br){return or.concat(q$1(br)===me?Jt(r,{placement:br,boundary:he,rootBoundary:_e,padding:pe,flipVariations:Ve,allowedAutoPlacements:Fe}):br)},[]),Cn=r.rects.reference,bn=r.rects.popper,Sn=new Map,En=!0,wn=hn[0],$n=0;$n=0,Vn=Mn?"width":"height",Bn=ne(r,{placement:Tn,boundary:he,rootBoundary:_e,altBoundary:$e,padding:pe}),Dn=Mn?An?W$1:P$3:An?R$1:E$1;Cn[Vn]>bn[Vn]&&(Dn=be(Dn));var Ln=be(Dn),Pn=[];if(ie&&Pn.push(Bn[xn]<=0),ue&&Pn.push(Bn[Dn]<=0,Bn[Ln]<=0),Pn.every(function(or){return or})){wn=Tn,En=!1;break}Sn.set(Tn,Pn)}if(En)for(var Fn=Ve?3:1,Un=function(or){var br=hn.find(function(Qn){var Gn=Sn.get(Qn);if(Gn)return Gn.slice(0,or).every(function(Yn){return Yn})});if(br)return wn=br,"break"},Wn=Fn;Wn>0;Wn--){var Zn=Un(Wn);if(Zn==="break")break}r.placement!==wn&&(r.modifiersData[V]._skip=!0,r.placement=wn,r.reset=!0)}}var vt$1={name:"flip",enabled:!0,phase:"main",fn:Qt,requiresIfExists:["offset"],data:{_skip:!1}};function gt$1(t,r,$){return $===void 0&&($={x:0,y:0}),{top:t.top-r.height-$.y,right:t.right-r.width+$.x,bottom:t.bottom-r.height+$.y,left:t.left-r.width-$.x}}function yt(t){return[E$1,W$1,R$1,P$3].some(function(r){return t[r]>=0})}function Zt$1(t){var r=t.state,$=t.name,V=r.rects.reference,oe=r.rects.popper,ie=r.modifiersData.preventOverflow,le=ne(r,{elementContext:"reference"}),ue=ne(r,{altBoundary:!0}),de=gt$1(le,V),pe=gt$1(ue,oe,ie),he=yt(de),_e=yt(pe);r.modifiersData[$]={referenceClippingOffsets:de,popperEscapeOffsets:pe,isReferenceHidden:he,hasPopperEscaped:_e},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":he,"data-popper-escaped":_e})}var bt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Zt$1};function en$2(t,r,$){var V=q$1(t),oe=[P$3,E$1].indexOf(V)>=0?-1:1,ie=typeof $=="function"?$(Object.assign({},r,{placement:t})):$,le=ie[0],ue=ie[1];return le=le||0,ue=(ue||0)*oe,[P$3,W$1].indexOf(V)>=0?{x:ue,y:le}:{x:le,y:ue}}function tn(t){var r=t.state,$=t.options,V=t.name,oe=$.offset,ie=oe===void 0?[0,0]:oe,le=Ee.reduce(function(he,_e){return he[_e]=en$2(_e,r.rects,ie),he},{}),ue=le[r.placement],de=ue.x,pe=ue.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=de,r.modifiersData.popperOffsets.y+=pe),r.modifiersData[V]=le}var wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:tn};function nn$1(t){var r=t.state,$=t.name;r.modifiersData[$]=mt({reference:r.rects.reference,element:r.rects.popper,strategy:"absolute",placement:r.placement})}var He={name:"popperOffsets",enabled:!0,phase:"read",fn:nn$1,data:{}};function rn(t){return t==="x"?"y":"x"}function on$1(t){var r=t.state,$=t.options,V=t.name,oe=$.mainAxis,ie=oe===void 0?!0:oe,le=$.altAxis,ue=le===void 0?!1:le,de=$.boundary,pe=$.rootBoundary,he=$.altBoundary,_e=$.padding,$e=$.tether,Ie=$e===void 0?!0:$e,Ve=$.tetherOffset,Fe=Ve===void 0?0:Ve,Ue=ne(r,{boundary:de,rootBoundary:pe,padding:_e,altBoundary:he}),qe=q$1(r.placement),Et=te(r.placement),Lt=!Et,hn=Le$1(qe),Cn=rn(hn),bn=r.modifiersData.popperOffsets,Sn=r.rects.reference,En=r.rects.popper,wn=typeof Fe=="function"?Fe(Object.assign({},r.rects,{placement:r.placement})):Fe,$n=typeof wn=="number"?{mainAxis:wn,altAxis:wn}:Object.assign({mainAxis:0,altAxis:0},wn),Tn=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,xn={x:0,y:0};if(bn){if(ie){var An,Mn=hn==="y"?E$1:P$3,Vn=hn==="y"?R$1:W$1,Bn=hn==="y"?"height":"width",Dn=bn[hn],Ln=Dn+Ue[Mn],Pn=Dn-Ue[Vn],Fn=Ie?-En[Bn]/2:0,Un=Et===U$2?Sn[Bn]:En[Bn],Wn=Et===U$2?-En[Bn]:-Sn[Bn],Zn=r.elements.arrow,or=Ie&&Zn?ke(Zn):{width:0,height:0},br=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:st$1(),Qn=br[Mn],Gn=br[Vn],Yn=fe(0,Sn[Bn],or[Bn]),er=Lt?Sn[Bn]/2-Fn-Yn-Qn-$n.mainAxis:Un-Yn-Qn-$n.mainAxis,lr=Lt?-Sn[Bn]/2+Fn+Yn+Gn+$n.mainAxis:Wn+Yn+Gn+$n.mainAxis,sr=r.elements.arrow&&se$1(r.elements.arrow),zn=sr?hn==="y"?sr.clientTop||0:sr.clientLeft||0:0,Kn=(An=Tn==null?void 0:Tn[hn])!=null?An:0,Jn=Dn+er-Kn-zn,cr=Dn+lr-Kn,_r=fe(Ie?ve(Ln,Jn):Ln,Dn,Ie?X$1(Pn,cr):Pn);bn[hn]=_r,xn[hn]=_r-Dn}if(ue){var ur,wr=hn==="x"?E$1:P$3,Cr=hn==="x"?R$1:W$1,mr=bn[Cn],Er=Cn==="y"?"height":"width",Tr=mr+Ue[wr],nr=mr-Ue[Cr],pr=[E$1,P$3].indexOf(qe)!==-1,gr=(ur=Tn==null?void 0:Tn[Cn])!=null?ur:0,$r=pr?Tr:mr-Sn[Er]-En[Er]-gr+$n.altAxis,Rr=pr?mr+Sn[Er]+En[Er]-gr-$n.altAxis:nr,Lr=Ie&&pr?St($r,mr,Rr):fe(Ie?$r:Tr,mr,Ie?Rr:nr);bn[Cn]=Lr,xn[Cn]=Lr-mr}r.modifiersData[V]=xn}}var xt={name:"preventOverflow",enabled:!0,phase:"main",fn:on$1,requiresIfExists:["offset"]};function an(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function sn(t){return t===H$1(t)||!B(t)?We(t):an(t)}function fn(t){var r=t.getBoundingClientRect(),$=Z(r.width)/t.offsetWidth||1,V=Z(r.height)/t.offsetHeight||1;return $!==1||V!==1}function cn(t,r,$){$===void 0&&($=!1);var V=B(r),oe=B(r)&&fn(r),ie=I$3(r),le=ee$1(t,oe),ue={scrollLeft:0,scrollTop:0},de={x:0,y:0};return(V||!V&&!$)&&((C(r)!=="body"||Se$1(ie))&&(ue=sn(r)),B(r)?(de=ee$1(r,!0),de.x+=r.clientLeft,de.y+=r.clientTop):ie&&(de.x=Be$1(ie))),{x:le.left+ue.scrollLeft-de.x,y:le.top+ue.scrollTop-de.y,width:le.width,height:le.height}}function pn(t){var r=new Map,$=new Set,V=[];t.forEach(function(ie){r.set(ie.name,ie)});function oe(ie){$.add(ie.name);var le=[].concat(ie.requires||[],ie.requiresIfExists||[]);le.forEach(function(ue){if(!$.has(ue)){var de=r.get(ue);de&&oe(de)}}),V.push(ie)}return t.forEach(function(ie){$.has(ie.name)||oe(ie)}),V}function un(t){var r=pn(t);return ot$1.reduce(function($,V){return $.concat(r.filter(function(oe){return oe.phase===V}))},[])}function ln(t){var r;return function(){return r||(r=new Promise(function($){Promise.resolve().then(function(){r=void 0,$(t())})})),r}}function dn(t){var r=t.reduce(function($,V){var oe=$[V.name];return $[V.name]=oe?Object.assign({},oe,V,{options:Object.assign({},oe.options,V.options),data:Object.assign({},oe.data,V.data)}):V,$},{});return Object.keys(r).map(function($){return r[$]})}var Ot={placement:"bottom",modifiers:[],strategy:"absolute"};function $t$2(){for(var t=arguments.length,r=new Array(t),$=0;${const V={name:"updateState",enabled:!0,phase:"write",fn:({state:de})=>{const pe=deriveState(de);Object.assign(le.value,pe)},requires:["computeStyles"]},oe=computed(()=>{const{onFirstUpdate:de,placement:pe,strategy:he,modifiers:_e}=unref($);return{onFirstUpdate:de,placement:pe||"bottom",strategy:he||"absolute",modifiers:[..._e||[],V,{name:"applyStyles",enabled:!1}]}}),ie=shallowRef(),le=ref({styles:{popper:{position:unref(oe).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),ue=()=>{ie.value&&(ie.value.destroy(),ie.value=void 0)};return watch(oe,de=>{const pe=unref(ie);pe&&pe.setOptions(de)},{deep:!0}),watch([t,r],([de,pe])=>{ue(),!(!de||!pe)&&(ie.value=yn(de,pe,unref(oe)))}),onBeforeUnmount(()=>{ue()}),{state:computed(()=>{var de;return{...((de=unref(ie))==null?void 0:de.state)||{}}}),styles:computed(()=>unref(le).styles),attributes:computed(()=>unref(le).attributes),update:()=>{var de;return(de=unref(ie))==null?void 0:de.update()},forceUpdate:()=>{var de;return(de=unref(ie))==null?void 0:de.forceUpdate()},instanceRef:computed(()=>unref(ie))}};function deriveState(t){const r=Object.keys(t.elements),$=fromPairs(r.map(oe=>[oe,t.styles[oe]||{}])),V=fromPairs(r.map(oe=>[oe,t.attributes[oe]]));return{styles:$,attributes:V}}const useSameTarget=t=>{if(!t)return{onClick:NOOP,onMousedown:NOOP,onMouseup:NOOP};let r=!1,$=!1;return{onClick:le=>{r&&$&&t(le),r=$=!1},onMousedown:le=>{r=le.target===le.currentTarget},onMouseup:le=>{$=le.target===le.currentTarget}}},useThrottleRender=(t,r=0)=>{if(r===0)return t;const $=ref(!1);let V=0;const oe=()=>{V&&clearTimeout(V),V=window.setTimeout(()=>{$.value=t.value},r)};return onMounted(oe),watch(()=>t.value,ie=>{ie?oe():$.value=ie}),$};function useTimeout(){let t;const r=(V,oe)=>{$(),t=window.setTimeout(V,oe)},$=()=>window.clearTimeout(t);return tryOnScopeDispose$1(()=>$()),{registerTimeout:r,cancelTimeout:$}}const defaultIdInjection={prefix:Math.floor(Math.random()*1e4),current:0},ID_INJECTION_KEY=Symbol("elIdInjection"),useIdInjection=()=>getCurrentInstance()?inject(ID_INJECTION_KEY,defaultIdInjection):defaultIdInjection,useId=t=>{const r=useIdInjection(),$=useGetDerivedNamespace();return computed(()=>unref(t)||`${$.value}-id-${r.prefix}-${r.current++}`)};let registeredEscapeHandlers=[];const cachedHandler=t=>{const r=t;r.key===EVENT_CODE.esc&®isteredEscapeHandlers.forEach($=>$(r))},useEscapeKeydown=t=>{onMounted(()=>{registeredEscapeHandlers.length===0&&document.addEventListener("keydown",cachedHandler),isClient$1&®isteredEscapeHandlers.push(t)}),onBeforeUnmount(()=>{registeredEscapeHandlers=registeredEscapeHandlers.filter(r=>r!==t),registeredEscapeHandlers.length===0&&isClient$1&&document.removeEventListener("keydown",cachedHandler)})};let cachedContainer;const usePopperContainerId=()=>{const t=useGetDerivedNamespace(),r=useIdInjection(),$=computed(()=>`${t.value}-popper-container-${r.prefix}`),V=computed(()=>`#${$.value}`);return{id:$,selector:V}},createContainer=t=>{const r=document.createElement("div");return r.id=t,document.body.appendChild(r),r},usePopperContainer=()=>{const{id:t,selector:r}=usePopperContainerId();return onBeforeMount(()=>{isClient$1&&!cachedContainer&&!document.body.querySelector(r.value)&&(cachedContainer=createContainer(t.value))}),{id:t,selector:r}},useDelayedToggleProps=buildProps({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),useDelayedToggle=({showAfter:t,hideAfter:r,autoClose:$,open:V,close:oe})=>{const{registerTimeout:ie}=useTimeout(),{registerTimeout:le,cancelTimeout:ue}=useTimeout();return{onOpen:he=>{ie(()=>{V(he);const _e=unref($);isNumber$4(_e)&&_e>0&&le(()=>{oe(he)},_e)},unref(t))},onClose:he=>{ue(),ie(()=>{oe(he)},unref(r))}}},FORWARD_REF_INJECTION_KEY=Symbol("elForwardRef"),useForwardRef=t=>{provide(FORWARD_REF_INJECTION_KEY,{setForwardRef:$=>{t.value=$}})},useForwardRefDirective=t=>({mounted(r){t(r)},updated(r){t(r)},unmounted(){t(null)}}),zIndex=ref(0),defaultInitialZIndex=2e3,zIndexContextKey=Symbol("zIndexContextKey"),useZIndex=t=>{const r=t||(getCurrentInstance()?inject(zIndexContextKey,void 0):void 0),$=computed(()=>{const ie=unref(r);return isNumber$4(ie)?ie:defaultInitialZIndex}),V=computed(()=>$.value+zIndex.value);return{initialZIndex:$,currentZIndex:V,nextZIndex:()=>(zIndex.value++,V.value)}},min$3=Math.min,max$3=Math.max,round$2=Math.round,createCoords=t=>({x:t,y:t});function clamp$3(t,r,$){return max$3(t,min$3(r,$))}function evaluate(t,r){return typeof t=="function"?t(r):t}function getSide(t){return t.split("-")[0]}function getAlignment(t){return t.split("-")[1]}function getOppositeAxis(t){return t==="x"?"y":"x"}function getAxisLength(t){return t==="y"?"height":"width"}function getSideAxis(t){return["top","bottom"].includes(getSide(t))?"y":"x"}function getAlignmentAxis(t){return getOppositeAxis(getSideAxis(t))}function expandPaddingObject(t){return{top:0,right:0,bottom:0,left:0,...t}}function getPaddingObject(t){return typeof t!="number"?expandPaddingObject(t):{top:t,right:t,bottom:t,left:t}}function rectToClientRect(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function computeCoordsFromPlacement(t,r,$){let{reference:V,floating:oe}=t;const ie=getSideAxis(r),le=getAlignmentAxis(r),ue=getAxisLength(le),de=getSide(r),pe=ie==="y",he=V.x+V.width/2-oe.width/2,_e=V.y+V.height/2-oe.height/2,$e=V[ue]/2-oe[ue]/2;let Ie;switch(de){case"top":Ie={x:he,y:V.y-oe.height};break;case"bottom":Ie={x:he,y:V.y+V.height};break;case"right":Ie={x:V.x+V.width,y:_e};break;case"left":Ie={x:V.x-oe.width,y:_e};break;default:Ie={x:V.x,y:V.y}}switch(getAlignment(r)){case"start":Ie[le]-=$e*($&&pe?-1:1);break;case"end":Ie[le]+=$e*($&&pe?-1:1);break}return Ie}const computePosition$1=async(t,r,$)=>{const{placement:V="bottom",strategy:oe="absolute",middleware:ie=[],platform:le}=$,ue=ie.filter(Boolean),de=await(le.isRTL==null?void 0:le.isRTL(r));let pe=await le.getElementRects({reference:t,floating:r,strategy:oe}),{x:he,y:_e}=computeCoordsFromPlacement(pe,V,de),$e=V,Ie={},Ve=0;for(let Fe=0;Fe({name:"arrow",options:t,async fn(r){const{x:$,y:V,placement:oe,rects:ie,platform:le,elements:ue,middlewareData:de}=r,{element:pe,padding:he=0}=evaluate(t,r)||{};if(pe==null)return{};const _e=getPaddingObject(he),$e={x:$,y:V},Ie=getAlignmentAxis(oe),Ve=getAxisLength(Ie),Fe=await le.getDimensions(pe),Ue=Ie==="y",qe=Ue?"top":"left",Et=Ue?"bottom":"right",Lt=Ue?"clientHeight":"clientWidth",hn=ie.reference[Ve]+ie.reference[Ie]-$e[Ie]-ie.floating[Ve],Cn=$e[Ie]-ie.reference[Ie],bn=await(le.getOffsetParent==null?void 0:le.getOffsetParent(pe));let Sn=bn?bn[Lt]:0;(!Sn||!await(le.isElement==null?void 0:le.isElement(bn)))&&(Sn=ue.floating[Lt]||ie.floating[Ve]);const En=hn/2-Cn/2,wn=Sn/2-Fe[Ve]/2-1,$n=min$3(_e[qe],wn),Tn=min$3(_e[Et],wn),xn=$n,An=Sn-Fe[Ve]-Tn,Mn=Sn/2-Fe[Ve]/2+En,Vn=clamp$3(xn,Mn,An),Bn=!de.arrow&&getAlignment(oe)!=null&&Mn!=Vn&&ie.reference[Ve]/2-(Mn"u"?!1:t instanceof ShadowRoot||t instanceof getWindow(t).ShadowRoot}function isOverflowElement(t){const{overflow:r,overflowX:$,overflowY:V,display:oe}=getComputedStyle$2(t);return/auto|scroll|overlay|hidden|clip/.test(r+V+$)&&!["inline","contents"].includes(oe)}function isTableElement(t){return["table","td","th"].includes(getNodeName(t))}function isContainingBlock(t){const r=isWebKit(),$=getComputedStyle$2(t);return $.transform!=="none"||$.perspective!=="none"||($.containerType?$.containerType!=="normal":!1)||!r&&($.backdropFilter?$.backdropFilter!=="none":!1)||!r&&($.filter?$.filter!=="none":!1)||["transform","perspective","filter"].some(V=>($.willChange||"").includes(V))||["paint","layout","strict","content"].some(V=>($.contain||"").includes(V))}function getContainingBlock(t){let r=getParentNode(t);for(;isHTMLElement(r)&&!isLastTraversableNode(r);){if(isContainingBlock(r))return r;r=getParentNode(r)}return null}function isWebKit(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function isLastTraversableNode(t){return["html","body","#document"].includes(getNodeName(t))}function getComputedStyle$2(t){return getWindow(t).getComputedStyle(t)}function getNodeScroll(t){return isElement$1(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function getParentNode(t){if(getNodeName(t)==="html")return t;const r=t.assignedSlot||t.parentNode||isShadowRoot(t)&&t.host||getDocumentElement(t);return isShadowRoot(r)?r.host:r}function getNearestOverflowAncestor(t){const r=getParentNode(t);return isLastTraversableNode(r)?t.ownerDocument?t.ownerDocument.body:t.body:isHTMLElement(r)&&isOverflowElement(r)?r:getNearestOverflowAncestor(r)}function getOverflowAncestors(t,r,$){var V;r===void 0&&(r=[]),$===void 0&&($=!0);const oe=getNearestOverflowAncestor(t),ie=oe===((V=t.ownerDocument)==null?void 0:V.body),le=getWindow(oe);return ie?r.concat(le,le.visualViewport||[],isOverflowElement(oe)?oe:[],le.frameElement&&$?getOverflowAncestors(le.frameElement):[]):r.concat(oe,getOverflowAncestors(oe,[],$))}function getCssDimensions(t){const r=getComputedStyle$2(t);let $=parseFloat(r.width)||0,V=parseFloat(r.height)||0;const oe=isHTMLElement(t),ie=oe?t.offsetWidth:$,le=oe?t.offsetHeight:V,ue=round$2($)!==ie||round$2(V)!==le;return ue&&($=ie,V=le),{width:$,height:V,$:ue}}function unwrapElement(t){return isElement$1(t)?t:t.contextElement}function getScale(t){const r=unwrapElement(t);if(!isHTMLElement(r))return createCoords(1);const $=r.getBoundingClientRect(),{width:V,height:oe,$:ie}=getCssDimensions(r);let le=(ie?round$2($.width):$.width)/V,ue=(ie?round$2($.height):$.height)/oe;return(!le||!Number.isFinite(le))&&(le=1),(!ue||!Number.isFinite(ue))&&(ue=1),{x:le,y:ue}}const noOffsets=createCoords(0);function getVisualOffsets(t){const r=getWindow(t);return!isWebKit()||!r.visualViewport?noOffsets:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function shouldAddVisualOffsets(t,r,$){return r===void 0&&(r=!1),!$||r&&$!==getWindow(t)?!1:r}function getBoundingClientRect(t,r,$,V){r===void 0&&(r=!1),$===void 0&&($=!1);const oe=t.getBoundingClientRect(),ie=unwrapElement(t);let le=createCoords(1);r&&(V?isElement$1(V)&&(le=getScale(V)):le=getScale(t));const ue=shouldAddVisualOffsets(ie,$,V)?getVisualOffsets(ie):createCoords(0);let de=(oe.left+ue.x)/le.x,pe=(oe.top+ue.y)/le.y,he=oe.width/le.x,_e=oe.height/le.y;if(ie){const $e=getWindow(ie),Ie=V&&isElement$1(V)?getWindow(V):V;let Ve=$e.frameElement;for(;Ve&&V&&Ie!==$e;){const Fe=getScale(Ve),Ue=Ve.getBoundingClientRect(),qe=getComputedStyle$2(Ve),Et=Ue.left+(Ve.clientLeft+parseFloat(qe.paddingLeft))*Fe.x,Lt=Ue.top+(Ve.clientTop+parseFloat(qe.paddingTop))*Fe.y;de*=Fe.x,pe*=Fe.y,he*=Fe.x,_e*=Fe.y,de+=Et,pe+=Lt,Ve=getWindow(Ve).frameElement}}return rectToClientRect({width:he,height:_e,x:de,y:pe})}function convertOffsetParentRelativeRectToViewportRelativeRect(t){let{rect:r,offsetParent:$,strategy:V}=t;const oe=isHTMLElement($),ie=getDocumentElement($);if($===ie)return r;let le={scrollLeft:0,scrollTop:0},ue=createCoords(1);const de=createCoords(0);if((oe||!oe&&V!=="fixed")&&((getNodeName($)!=="body"||isOverflowElement(ie))&&(le=getNodeScroll($)),isHTMLElement($))){const pe=getBoundingClientRect($);ue=getScale($),de.x=pe.x+$.clientLeft,de.y=pe.y+$.clientTop}return{width:r.width*ue.x,height:r.height*ue.y,x:r.x*ue.x-le.scrollLeft*ue.x+de.x,y:r.y*ue.y-le.scrollTop*ue.y+de.y}}function getClientRects(t){return Array.from(t.getClientRects())}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getNodeScroll(t).scrollLeft}function getDocumentRect(t){const r=getDocumentElement(t),$=getNodeScroll(t),V=t.ownerDocument.body,oe=max$3(r.scrollWidth,r.clientWidth,V.scrollWidth,V.clientWidth),ie=max$3(r.scrollHeight,r.clientHeight,V.scrollHeight,V.clientHeight);let le=-$.scrollLeft+getWindowScrollBarX(t);const ue=-$.scrollTop;return getComputedStyle$2(V).direction==="rtl"&&(le+=max$3(r.clientWidth,V.clientWidth)-oe),{width:oe,height:ie,x:le,y:ue}}function getViewportRect(t,r){const $=getWindow(t),V=getDocumentElement(t),oe=$.visualViewport;let ie=V.clientWidth,le=V.clientHeight,ue=0,de=0;if(oe){ie=oe.width,le=oe.height;const pe=isWebKit();(!pe||pe&&r==="fixed")&&(ue=oe.offsetLeft,de=oe.offsetTop)}return{width:ie,height:le,x:ue,y:de}}function getInnerBoundingClientRect(t,r){const $=getBoundingClientRect(t,!0,r==="fixed"),V=$.top+t.clientTop,oe=$.left+t.clientLeft,ie=isHTMLElement(t)?getScale(t):createCoords(1),le=t.clientWidth*ie.x,ue=t.clientHeight*ie.y,de=oe*ie.x,pe=V*ie.y;return{width:le,height:ue,x:de,y:pe}}function getClientRectFromClippingAncestor(t,r,$){let V;if(r==="viewport")V=getViewportRect(t,$);else if(r==="document")V=getDocumentRect(getDocumentElement(t));else if(isElement$1(r))V=getInnerBoundingClientRect(r,$);else{const oe=getVisualOffsets(t);V={...r,x:r.x-oe.x,y:r.y-oe.y}}return rectToClientRect(V)}function hasFixedPositionAncestor(t,r){const $=getParentNode(t);return $===r||!isElement$1($)||isLastTraversableNode($)?!1:getComputedStyle$2($).position==="fixed"||hasFixedPositionAncestor($,r)}function getClippingElementAncestors(t,r){const $=r.get(t);if($)return $;let V=getOverflowAncestors(t,[],!1).filter(ue=>isElement$1(ue)&&getNodeName(ue)!=="body"),oe=null;const ie=getComputedStyle$2(t).position==="fixed";let le=ie?getParentNode(t):t;for(;isElement$1(le)&&!isLastTraversableNode(le);){const ue=getComputedStyle$2(le),de=isContainingBlock(le);!de&&ue.position==="fixed"&&(oe=null),(ie?!de&&!oe:!de&&ue.position==="static"&&!!oe&&["absolute","fixed"].includes(oe.position)||isOverflowElement(le)&&!de&&hasFixedPositionAncestor(t,le))?V=V.filter(he=>he!==le):oe=ue,le=getParentNode(le)}return r.set(t,V),V}function getClippingRect(t){let{element:r,boundary:$,rootBoundary:V,strategy:oe}=t;const le=[...$==="clippingAncestors"?getClippingElementAncestors(r,this._c):[].concat($),V],ue=le[0],de=le.reduce((pe,he)=>{const _e=getClientRectFromClippingAncestor(r,he,oe);return pe.top=max$3(_e.top,pe.top),pe.right=min$3(_e.right,pe.right),pe.bottom=min$3(_e.bottom,pe.bottom),pe.left=max$3(_e.left,pe.left),pe},getClientRectFromClippingAncestor(r,ue,oe));return{width:de.right-de.left,height:de.bottom-de.top,x:de.left,y:de.top}}function getDimensions(t){return getCssDimensions(t)}function getRectRelativeToOffsetParent(t,r,$){const V=isHTMLElement(r),oe=getDocumentElement(r),ie=$==="fixed",le=getBoundingClientRect(t,!0,ie,r);let ue={scrollLeft:0,scrollTop:0};const de=createCoords(0);if(V||!V&&!ie)if((getNodeName(r)!=="body"||isOverflowElement(oe))&&(ue=getNodeScroll(r)),V){const pe=getBoundingClientRect(r,!0,ie,r);de.x=pe.x+r.clientLeft,de.y=pe.y+r.clientTop}else oe&&(de.x=getWindowScrollBarX(oe));return{x:le.left+ue.scrollLeft-de.x,y:le.top+ue.scrollTop-de.y,width:le.width,height:le.height}}function getTrueOffsetParent(t,r){return!isHTMLElement(t)||getComputedStyle$2(t).position==="fixed"?null:r?r(t):t.offsetParent}function getOffsetParent(t,r){const $=getWindow(t);if(!isHTMLElement(t))return $;let V=getTrueOffsetParent(t,r);for(;V&&isTableElement(V)&&getComputedStyle$2(V).position==="static";)V=getTrueOffsetParent(V,r);return V&&(getNodeName(V)==="html"||getNodeName(V)==="body"&&getComputedStyle$2(V).position==="static"&&!isContainingBlock(V))?$:V||getContainingBlock(t)||$}const getElementRects=async function(t){let{reference:r,floating:$,strategy:V}=t;const oe=this.getOffsetParent||getOffsetParent,ie=this.getDimensions;return{reference:getRectRelativeToOffsetParent(r,await oe($),V),floating:{x:0,y:0,...await ie($)}}};function isRTL$1(t){return getComputedStyle$2(t).direction==="rtl"}const platform$2={convertOffsetParentRelativeRectToViewportRelativeRect,getDocumentElement,getClippingRect,getOffsetParent,getElementRects,getClientRects,getDimensions,getScale,isElement:isElement$1,isRTL:isRTL$1},computePosition=(t,r,$)=>{const V=new Map,oe={platform:platform$2,...$},ie={...oe.platform,_c:V};return computePosition$1(t,r,{...oe,platform:ie})};buildProps({});const unrefReference=t=>{if(!isClient$1)return;if(!t)return t;const r=unrefElement$1(t);return r||(isRef(t)?r:t)},useFloating=({middleware:t,placement:r,strategy:$})=>{const V=ref(),oe=ref(),ie=ref(),le=ref(),ue=ref({}),de={x:ie,y:le,placement:r,strategy:$,middlewareData:ue},pe=async()=>{if(!isClient$1)return;const he=unrefReference(V),_e=unrefElement$1(oe);if(!he||!_e)return;const $e=await computePosition(he,_e,{placement:unref(r),strategy:unref($),middleware:unref(t)});keysOf(de).forEach(Ie=>{de[Ie].value=$e[Ie]})};return onMounted(()=>{watchEffect(()=>{pe()})}),{...de,update:pe,referenceRef:V,contentRef:oe}},arrowMiddleware=({arrowRef:t,padding:r})=>({name:"arrow",options:{element:t,padding:r},fn($){const V=unref(t);return V?arrow({element:V,padding:r}).fn($):{}}});function useCursor(t){const r=ref();function $(){if(t.value==null)return;const{selectionStart:oe,selectionEnd:ie,value:le}=t.value;if(oe==null||ie==null)return;const ue=le.slice(0,Math.max(0,oe)),de=le.slice(Math.max(0,ie));r.value={selectionStart:oe,selectionEnd:ie,value:le,beforeTxt:ue,afterTxt:de}}function V(){if(t.value==null||r.value==null)return;const{value:oe}=t.value,{beforeTxt:ie,afterTxt:le,selectionStart:ue}=r.value;if(ie==null||le==null||ue==null)return;let de=oe.length;if(oe.endsWith(le))de=oe.length-le.length;else if(oe.startsWith(ie))de=ie.length;else{const pe=ie[ue-1],he=oe.indexOf(pe,ue-1);he!==-1&&(de=he+1)}t.value.setSelectionRange(de,de)}return[$,V]}const getOrderedChildren=(t,r,$)=>flattedChildren(t.subTree).filter(ie=>{var le;return isVNode$1(ie)&&((le=ie.type)==null?void 0:le.name)===r&&!!ie.component}).map(ie=>ie.component.uid).map(ie=>$[ie]).filter(ie=>!!ie),useOrderedChildren=(t,r)=>{const $={},V=shallowRef([]);return{children:V,addChild:le=>{$[le.uid]=le,V.value=getOrderedChildren(t,r,$)},removeChild:le=>{delete $[le],V.value=V.value.filter(ue=>ue.uid!==le)}}},useSizeProp=buildProp({type:String,values:componentSizes,required:!1}),SIZE_INJECTION_KEY=Symbol("size"),useGlobalSize=()=>{const t=inject(SIZE_INJECTION_KEY,{});return computed(()=>unref(t.size)||"")};function useFocusController(t,{afterFocus:r,afterBlur:$}={}){const V=getCurrentInstance(),{emit:oe}=V,ie=shallowRef(),le=ref(!1),ue=he=>{le.value||(le.value=!0,oe("focus",he),r==null||r())},de=he=>{var _e;he.relatedTarget&&((_e=ie.value)!=null&&_e.contains(he.relatedTarget))||(le.value=!1,oe("blur",he),$==null||$())},pe=()=>{var he;(he=t.value)==null||he.focus()};return watch(ie,he=>{he&&he.setAttribute("tabindex","-1")}),useEventListener$1(ie,"click",pe),{wrapperRef:ie,isFocused:le,handleFocus:ue,handleBlur:de}}const configProviderContextKey=Symbol(),globalConfig=ref();function useGlobalConfig(t,r=void 0){const $=getCurrentInstance()?inject(configProviderContextKey,globalConfig):globalConfig;return t?computed(()=>{var V,oe;return(oe=(V=$.value)==null?void 0:V[t])!=null?oe:r}):$}function useGlobalComponentSettings(t,r){const $=useGlobalConfig(),V=useNamespace(t,computed(()=>{var ue;return((ue=$.value)==null?void 0:ue.namespace)||defaultNamespace})),oe=useLocale(computed(()=>{var ue;return(ue=$.value)==null?void 0:ue.locale})),ie=useZIndex(computed(()=>{var ue;return((ue=$.value)==null?void 0:ue.zIndex)||defaultInitialZIndex})),le=computed(()=>{var ue;return unref(r)||((ue=$.value)==null?void 0:ue.size)||""});return provideGlobalConfig(computed(()=>unref($)||{})),{ns:V,locale:oe,zIndex:ie,size:le}}const provideGlobalConfig=(t,r,$=!1)=>{var V;const oe=!!getCurrentInstance(),ie=oe?useGlobalConfig():void 0,le=(V=r==null?void 0:r.provide)!=null?V:oe?provide:void 0;if(!le)return;const ue=computed(()=>{const de=unref(t);return ie!=null&&ie.value?mergeConfig$1(ie.value,de):de});return le(configProviderContextKey,ue),le(localeContextKey,computed(()=>ue.value.locale)),le(namespaceContextKey,computed(()=>ue.value.namespace)),le(zIndexContextKey,computed(()=>ue.value.zIndex)),le(SIZE_INJECTION_KEY,{size:computed(()=>ue.value.size||"")}),($||!globalConfig.value)&&(globalConfig.value=ue.value),ue},mergeConfig$1=(t,r)=>{var $;const V=[...new Set([...keysOf(t),...keysOf(r)])],oe={};for(const ie of V)oe[ie]=($=r[ie])!=null?$:t[ie];return oe},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(t,{slots:r}){watch(()=>t.message,V=>{Object.assign(messageConfig,V??{})},{immediate:!0,deep:!0});const $=provideGlobalConfig(t);return()=>renderSlot(r,"default",{config:$==null?void 0:$.value})}}),ElConfigProvider=withInstall(ConfigProvider),version$2="2.3.14",makeInstaller=(t=[])=>({version:version$2,install:($,V)=>{$[INSTALLED_KEY]||($[INSTALLED_KEY]=!0,t.forEach(oe=>$.use(oe)),V&&provideGlobalConfig(V,$,!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:t,fixed:r})=>isNumber$4(t)&&isBoolean$3(r),[CHANGE_EVENT]:t=>isBoolean$3(t)};var _export_sfc$1=(t,r)=>{const $=t.__vccOpts||t;for(const[V,oe]of r)$[V]=oe;return $};const COMPONENT_NAME$n="ElAffix",__default__$1C=defineComponent({name:COMPONENT_NAME$n}),_sfc_main$2l=defineComponent({...__default__$1C,props:affixProps,emits:affixEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useNamespace("affix"),ie=shallowRef(),le=shallowRef(),ue=shallowRef(),{height:de}=useWindowSize$1(),{height:pe,width:he,top:_e,bottom:$e,update:Ie}=useElementBounding(le,{windowScroll:!1}),Ve=useElementBounding(ie),Fe=ref(!1),Ue=ref(0),qe=ref(0),Et=computed(()=>({height:Fe.value?`${pe.value}px`:"",width:Fe.value?`${he.value}px`:""})),Lt=computed(()=>{if(!Fe.value)return{};const bn=V.offset?addUnit(V.offset):0;return{height:`${pe.value}px`,width:`${he.value}px`,top:V.position==="top"?bn:"",bottom:V.position==="bottom"?bn:"",transform:qe.value?`translateY(${qe.value}px)`:"",zIndex:V.zIndex}}),hn=()=>{if(ue.value)if(Ue.value=ue.value instanceof Window?document.documentElement.scrollTop:ue.value.scrollTop||0,V.position==="top")if(V.target){const bn=Ve.bottom.value-V.offset-pe.value;Fe.value=V.offset>_e.value&&Ve.bottom.value>0,qe.value=bn<0?bn:0}else Fe.value=V.offset>_e.value;else if(V.target){const bn=de.value-Ve.top.value-V.offset-pe.value;Fe.value=de.value-V.offset<$e.value&&de.value>Ve.top.value,qe.value=bn<0?-bn:0}else Fe.value=de.value-V.offset<$e.value},Cn=()=>{Ie(),$("scroll",{scrollTop:Ue.value,fixed:Fe.value})};return watch(Fe,bn=>$("change",bn)),onMounted(()=>{var bn;V.target?(ie.value=(bn=document.querySelector(V.target))!=null?bn:void 0,ie.value||throwError$1(COMPONENT_NAME$n,`Target is not existed: ${V.target}`)):ie.value=document.documentElement,ue.value=getScrollContainer(le.value,!0),Ie()}),useEventListener$1(ue,"scroll",Cn),watchEffect(hn),r({update:hn,updateRoot:Ie}),(bn,Sn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:le,class:normalizeClass(unref(oe).b()),style:normalizeStyle$1(unref(Et))},[createBaseVNode("div",{class:normalizeClass({[unref(oe).m("fixed")]:Fe.value}),style:normalizeStyle$1(unref(Lt))},[renderSlot(bn.$slots,"default")],6)],6))}});var Affix=_export_sfc$1(_sfc_main$2l,[["__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$2k=defineComponent({...__default__$1B,props:iconProps,setup(t){const r=t,$=useNamespace("icon"),V=computed(()=>{const{size:oe,color:ie}=r;return!oe&&!ie?{}:{fontSize:isUndefined$1(oe)?void 0:addUnit(oe),"--color":ie}});return(oe,ie)=>(openBlock(),createElementBlock("i",mergeProps({class:unref($).b(),style:unref(V)},oe.$attrs),[renderSlot(oe.$slots,"default")],16))}});var Icon$2=_export_sfc$1(_sfc_main$2k,[["__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:t=>t instanceof MouseEvent},__default__$1A=defineComponent({name:"ElAlert"}),_sfc_main$2j=defineComponent({...__default__$1A,props:alertProps,emits:alertEmits,setup(t,{emit:r}){const $=t,{Close:V}=TypeComponents,oe=useSlots(),ie=useNamespace("alert"),le=ref(!0),ue=computed(()=>TypeComponentsMap[$.type]),de=computed(()=>[ie.e("icon"),{[ie.is("big")]:!!$.description||!!oe.default}]),pe=computed(()=>({[ie.is("bold")]:$.description||oe.default})),he=_e=>{le.value=!1,r("close",_e)};return(_e,$e)=>(openBlock(),createBlock(Transition,{name:unref(ie).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(_e.type),unref(ie).is("center",_e.center),unref(ie).is(_e.effect)]),role:"alert"},[_e.showIcon&&unref(ue)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(de))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(ue))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).e("content"))},[_e.title||_e.$slots.title?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass([unref(ie).e("title"),unref(pe)])},[renderSlot(_e.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(_e.title),1)])],2)):createCommentVNode("v-if",!0),_e.$slots.default||_e.description?(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(unref(ie).e("description"))},[renderSlot(_e.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(_e.description),1)])],2)):createCommentVNode("v-if",!0),_e.closable?(openBlock(),createElementBlock(Fragment,{key:2},[_e.closeText?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(ie).e("close-btn"),unref(ie).is("customed")]),onClick:he},toDisplayString$1(_e.closeText),3)):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(ie).e("close-btn")),onClick:he},{default:withCtx(()=>[createVNode(unref(V))]),_:1},8,["class"]))],64)):createCommentVNode("v-if",!0)],2)],2),[[vShow,le.value]])]),_:3},8,["name"]))}});var Alert=_export_sfc$1(_sfc_main$2j,[["__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=(t,r={})=>{const $=ref(void 0),V=r.prop?$:useProp("size"),oe=r.global?$:useGlobalSize(),ie=r.form?{size:void 0}:inject(formContextKey,void 0),le=r.formItem?{size:void 0}:inject(formItemContextKey,void 0);return computed(()=>V.value||unref(t)||(le==null?void 0:le.size)||(ie==null?void 0:ie.size)||oe.value||"")},useFormDisabled=t=>{const r=useProp("disabled"),$=inject(formContextKey,void 0);return computed(()=>r.value||unref(t)||($==null?void 0:$.disabled)||!1)},useFormItem=()=>{const t=inject(formContextKey,void 0),r=inject(formItemContextKey,void 0);return{form:t,formItem:r}},useFormItemInputId=(t,{formItemContext:r,disableIdGeneration:$,disableIdManagement:V})=>{$||($=ref(!1)),V||(V=ref(!1));const oe=ref();let ie;const le=computed(()=>{var ue;return!!(!t.label&&r&&r.inputIds&&((ue=r.inputIds)==null?void 0:ue.length)<=1)});return onMounted(()=>{ie=watch([toRef(t,"id"),$],([ue,de])=>{const pe=ue??(de?void 0:useId().value);pe!==oe.value&&(r!=null&&r.removeInputId&&(oe.value&&r.removeInputId(oe.value),!(V!=null&&V.value)&&!de&&pe&&r.addInputId(pe)),oe.value=pe)},{immediate:!0})}),onUnmounted(()=>{ie&&ie(),r!=null&&r.removeInputId&&oe.value&&r.removeInputId(oe.value)}),{isLabeledByFormItem:le,inputId:oe}},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:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:[Object,Boolean]}}),formEmits={validate:(t,r,$)=>(isArray$c(t)||isString$6(t))&&isBoolean$3(r)&&isString$6($)};function useFormLabelWidth(){const t=ref([]),r=computed(()=>{if(!t.value.length)return"0";const ie=Math.max(...t.value);return ie?`${ie}px`:""});function $(ie){const le=t.value.indexOf(ie);return le===-1&&r.value,le}function V(ie,le){if(ie&&le){const ue=$(le);t.value.splice(ue,1,ie)}else ie&&t.value.push(ie)}function oe(ie){const le=$(ie);le>-1&&t.value.splice(le,1)}return{autoLabelWidth:r,registerLabelWidth:V,deregisterLabelWidth:oe}}const filterFields=(t,r)=>{const $=castArray$1(r);return $.length>0?t.filter(V=>V.prop&&$.includes(V.prop)):t},COMPONENT_NAME$m="ElForm",__default__$1z=defineComponent({name:COMPONENT_NAME$m}),_sfc_main$2i=defineComponent({...__default__$1z,props:formProps,emits:formEmits,setup(t,{expose:r,emit:$}){const V=t,oe=[],ie=useFormSize(),le=useNamespace("form"),ue=computed(()=>{const{labelPosition:Et,inline:Lt}=V;return[le.b(),le.m(ie.value||"default"),{[le.m(`label-${Et}`)]:Et,[le.m("inline")]:Lt}]}),de=Et=>{oe.push(Et)},pe=Et=>{Et.prop&&oe.splice(oe.indexOf(Et),1)},he=(Et=[])=>{V.model&&filterFields(oe,Et).forEach(Lt=>Lt.resetField())},_e=(Et=[])=>{filterFields(oe,Et).forEach(Lt=>Lt.clearValidate())},$e=computed(()=>!!V.model),Ie=Et=>{if(oe.length===0)return[];const Lt=filterFields(oe,Et);return Lt.length?Lt:[]},Ve=async Et=>Ue(void 0,Et),Fe=async(Et=[])=>{if(!$e.value)return!1;const Lt=Ie(Et);if(Lt.length===0)return!0;let hn={};for(const Cn of Lt)try{await Cn.validate("")}catch(bn){hn={...hn,...bn}}return Object.keys(hn).length===0?!0:Promise.reject(hn)},Ue=async(Et=[],Lt)=>{const hn=!isFunction$5(Lt);try{const Cn=await Fe(Et);return Cn===!0&&(Lt==null||Lt(Cn)),Cn}catch(Cn){if(Cn instanceof Error)throw Cn;const bn=Cn;return V.scrollToError&&qe(Object.keys(bn)[0]),Lt==null||Lt(!1,bn),hn&&Promise.reject(bn)}},qe=Et=>{var Lt;const hn=filterFields(oe,Et)[0];hn&&((Lt=hn.$el)==null||Lt.scrollIntoView(V.scrollIntoViewOptions))};return watch(()=>V.rules,()=>{V.validateOnRuleChange&&Ve().catch(Et=>void 0)},{deep:!0}),provide(formContextKey,reactive({...toRefs(V),emit:$,resetFields:he,clearValidate:_e,validateField:Ue,addField:de,removeField:pe,...useFormLabelWidth()})),r({validate:Ve,validateField:Ue,resetFields:he,clearValidate:_e,scrollToField:qe}),(Et,Lt)=>(openBlock(),createElementBlock("form",{class:normalizeClass(unref(ue))},[renderSlot(Et.$slots,"default")],2))}});var Form=_export_sfc$1(_sfc_main$2i,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var r=1;r"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(t,r,$){return _isNativeReflectConstruct()?_construct=Reflect.construct.bind():_construct=function(oe,ie,le){var ue=[null];ue.push.apply(ue,ie);var de=Function.bind.apply(oe,ue),pe=new de;return le&&_setPrototypeOf(pe,le.prototype),pe},_construct.apply(null,arguments)}function _isNativeFunction(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _wrapNativeSuper(t){var r=typeof Map=="function"?new Map:void 0;return _wrapNativeSuper=function(V){if(V===null||!_isNativeFunction(V))return V;if(typeof V!="function")throw new TypeError("Super expression must either be null or a function");if(typeof r<"u"){if(r.has(V))return r.get(V);r.set(V,oe)}function oe(){return _construct(V,arguments,_getPrototypeOf(this).constructor)}return oe.prototype=Object.create(V.prototype,{constructor:{value:oe,enumerable:!1,writable:!0,configurable:!0}}),_setPrototypeOf(oe,V)},_wrapNativeSuper(t)}var formatRegExp=/%[sdj%]/g,warning$1=function(){};typeof process<"u"&&process.env;function convertFieldsError(t){if(!t||!t.length)return null;var r={};return t.forEach(function($){var V=$.field;r[V]=r[V]||[],r[V].push($)}),r}function format$3(t){for(var r=arguments.length,$=new Array(r>1?r-1:0),V=1;V=ie)return ue;switch(ue){case"%s":return String($[oe++]);case"%d":return Number($[oe++]);case"%j":try{return JSON.stringify($[oe++])}catch{return"[Circular]"}break;default:return ue}});return le}return t}function isNativeStringType(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function isEmptyValue(t,r){return!!(t==null||r==="array"&&Array.isArray(t)&&!t.length||isNativeStringType(r)&&typeof t=="string"&&!t)}function asyncParallelArray(t,r,$){var V=[],oe=0,ie=t.length;function le(ue){V.push.apply(V,ue||[]),oe++,oe===ie&&$(V)}t.forEach(function(ue){r(ue,le)})}function asyncSerialArray(t,r,$){var V=0,oe=t.length;function ie(le){if(le&&le.length){$(le);return}var ue=V;V=V+1,ue()\[\]\\.,;:\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(r){return types$1.number(r)&&parseInt(r,10)===r},float:function(r){return types$1.number(r)&&!types$1.integer(r)},array:function(r){return Array.isArray(r)},regexp:function(r){if(r instanceof RegExp)return!0;try{return!!new RegExp(r)}catch{return!1}},date:function(r){return typeof r.getTime=="function"&&typeof r.getMonth=="function"&&typeof r.getYear=="function"&&!isNaN(r.getTime())},number:function(r){return isNaN(r)?!1:typeof r=="number"},object:function(r){return typeof r=="object"&&!types$1.array(r)},method:function(r){return typeof r=="function"},email:function(r){return typeof r=="string"&&r.length<=320&&!!r.match(pattern$2.email)},url:function(r){return typeof r=="string"&&r.length<=2048&&!!r.match(getUrlRegex())},hex:function(r){return typeof r=="string"&&!!r.match(pattern$2.hex)}},type$1=function(r,$,V,oe,ie){if(r.required&&$===void 0){required$1(r,$,V,oe,ie);return}var le=["integer","float","array","regexp","object","method","email","number","date","url","hex"],ue=r.type;le.indexOf(ue)>-1?types$1[ue]($)||oe.push(format$3(ie.messages.types[ue],r.fullField,r.type)):ue&&typeof $!==r.type&&oe.push(format$3(ie.messages.types[ue],r.fullField,r.type))},range=function(r,$,V,oe,ie){var le=typeof r.len=="number",ue=typeof r.min=="number",de=typeof r.max=="number",pe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,he=$,_e=null,$e=typeof $=="number",Ie=typeof $=="string",Ve=Array.isArray($);if($e?_e="number":Ie?_e="string":Ve&&(_e="array"),!_e)return!1;Ve&&(he=$.length),Ie&&(he=$.replace(pe,"_").length),le?he!==r.len&&oe.push(format$3(ie.messages[_e].len,r.fullField,r.len)):ue&&!de&&her.max?oe.push(format$3(ie.messages[_e].max,r.fullField,r.max)):ue&&de&&(her.max)&&oe.push(format$3(ie.messages[_e].range,r.fullField,r.min,r.max))},ENUM$1="enum",enumerable$1=function(r,$,V,oe,ie){r[ENUM$1]=Array.isArray(r[ENUM$1])?r[ENUM$1]:[],r[ENUM$1].indexOf($)===-1&&oe.push(format$3(ie.messages[ENUM$1],r.fullField,r[ENUM$1].join(", ")))},pattern$1=function(r,$,V,oe,ie){if(r.pattern){if(r.pattern instanceof RegExp)r.pattern.lastIndex=0,r.pattern.test($)||oe.push(format$3(ie.messages.pattern.mismatch,r.fullField,$,r.pattern));else if(typeof r.pattern=="string"){var le=new RegExp(r.pattern);le.test($)||oe.push(format$3(ie.messages.pattern.mismatch,r.fullField,$,r.pattern))}}},rules={required:required$1,whitespace,type:type$1,range,enum:enumerable$1,pattern:pattern$1},string=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($,"string")&&!r.required)return V();rules.required(r,$,oe,le,ie,"string"),isEmptyValue($,"string")||(rules.type(r,$,oe,le,ie),rules.range(r,$,oe,le,ie),rules.pattern(r,$,oe,le,ie),r.whitespace===!0&&rules.whitespace(r,$,oe,le,ie))}V(le)},method=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),$!==void 0&&rules.type(r,$,oe,le,ie)}V(le)},number$3=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if($===""&&($=void 0),isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),$!==void 0&&(rules.type(r,$,oe,le,ie),rules.range(r,$,oe,le,ie))}V(le)},_boolean=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),$!==void 0&&rules.type(r,$,oe,le,ie)}V(le)},regexp$1=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),isEmptyValue($)||rules.type(r,$,oe,le,ie)}V(le)},integer=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),$!==void 0&&(rules.type(r,$,oe,le,ie),rules.range(r,$,oe,le,ie))}V(le)},floatFn=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),$!==void 0&&(rules.type(r,$,oe,le,ie),rules.range(r,$,oe,le,ie))}V(le)},array=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if($==null&&!r.required)return V();rules.required(r,$,oe,le,ie,"array"),$!=null&&(rules.type(r,$,oe,le,ie),rules.range(r,$,oe,le,ie))}V(le)},object=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),$!==void 0&&rules.type(r,$,oe,le,ie)}V(le)},ENUM="enum",enumerable=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie),$!==void 0&&rules[ENUM](r,$,oe,le,ie)}V(le)},pattern=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($,"string")&&!r.required)return V();rules.required(r,$,oe,le,ie),isEmptyValue($,"string")||rules.pattern(r,$,oe,le,ie)}V(le)},date$1=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($,"date")&&!r.required)return V();if(rules.required(r,$,oe,le,ie),!isEmptyValue($,"date")){var de;$ instanceof Date?de=$:de=new Date($),rules.type(r,de,oe,le,ie),de&&rules.range(r,de.getTime(),oe,le,ie)}}V(le)},required=function(r,$,V,oe,ie){var le=[],ue=Array.isArray($)?"array":typeof $;rules.required(r,$,oe,le,ie,ue),V(le)},type=function(r,$,V,oe,ie){var le=r.type,ue=[],de=r.required||!r.required&&oe.hasOwnProperty(r.field);if(de){if(isEmptyValue($,le)&&!r.required)return V();rules.required(r,$,oe,ue,ie,le),isEmptyValue($,le)||rules.type(r,$,oe,ue,ie)}V(ue)},any=function(r,$,V,oe,ie){var le=[],ue=r.required||!r.required&&oe.hasOwnProperty(r.field);if(ue){if(isEmptyValue($)&&!r.required)return V();rules.required(r,$,oe,le,ie)}V(le)},validators$2={string,method,number:number$3,boolean:_boolean,regexp:regexp$1,integer,float:floatFn,array,object,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 r=JSON.parse(JSON.stringify(this));return r.clone=this.clone,r}}}var messages=newMessages(),Schema=function(){function t($){this.rules=null,this._messages=messages,this.define($)}var r=t.prototype;return r.define=function(V){var oe=this;if(!V)throw new Error("Cannot configure a schema with no rules");if(typeof V!="object"||Array.isArray(V))throw new Error("Rules must be an object");this.rules={},Object.keys(V).forEach(function(ie){var le=V[ie];oe.rules[ie]=Array.isArray(le)?le:[le]})},r.messages=function(V){return V&&(this._messages=deepMerge(newMessages(),V)),this._messages},r.validate=function(V,oe,ie){var le=this;oe===void 0&&(oe={}),ie===void 0&&(ie=function(){});var ue=V,de=oe,pe=ie;if(typeof de=="function"&&(pe=de,de={}),!this.rules||Object.keys(this.rules).length===0)return pe&&pe(null,ue),Promise.resolve(ue);function he(Fe){var Ue=[],qe={};function Et(hn){if(Array.isArray(hn)){var Cn;Ue=(Cn=Ue).concat.apply(Cn,hn)}else Ue.push(hn)}for(var Lt=0;Lt");const oe=useNamespace("form"),ie=ref(),le=ref(0),ue=()=>{var he;if((he=ie.value)!=null&&he.firstElementChild){const _e=window.getComputedStyle(ie.value.firstElementChild).width;return Math.ceil(Number.parseFloat(_e))}else return 0},de=(he="update")=>{nextTick(()=>{r.default&&t.isAutoWidth&&(he==="update"?le.value=ue():he==="remove"&&($==null||$.deregisterLabelWidth(le.value)))})},pe=()=>de("update");return onMounted(()=>{pe()}),onBeforeUnmount(()=>{de("remove")}),onUpdated(()=>pe()),watch(le,(he,_e)=>{t.updateAll&&($==null||$.registerLabelWidth(he,_e))}),useResizeObserver$1(computed(()=>{var he,_e;return(_e=(he=ie.value)==null?void 0:he.firstElementChild)!=null?_e:null}),pe),()=>{var he,_e;if(!r)return null;const{isAutoWidth:$e}=t;if($e){const Ie=$==null?void 0:$.autoLabelWidth,Ve=V==null?void 0:V.hasLabel,Fe={};if(Ve&&Ie&&Ie!=="auto"){const Ue=Math.max(0,Number.parseInt(Ie,10)-le.value),qe=$.labelPosition==="left"?"marginRight":"marginLeft";Ue&&(Fe[qe]=`${Ue}px`)}return createVNode("div",{ref:ie,class:[oe.be("item","label-wrap")],style:Fe},[(he=r.default)==null?void 0:he.call(r)])}else return createVNode(Fragment,{ref:ie},[(_e=r.default)==null?void 0:_e.call(r)])}}});const _hoisted_1$15=["role","aria-labelledby"],__default__$1y=defineComponent({name:"ElFormItem"}),_sfc_main$2h=defineComponent({...__default__$1y,props:formItemProps,setup(t,{expose:r}){const $=t,V=useSlots(),oe=inject(formContextKey,void 0),ie=inject(formItemContextKey,void 0),le=useFormSize(void 0,{formItem:!1}),ue=useNamespace("form-item"),de=useId().value,pe=ref([]),he=ref(""),_e=refDebounced(he,100),$e=ref(""),Ie=ref();let Ve,Fe=!1;const Ue=computed(()=>{if((oe==null?void 0:oe.labelPosition)==="top")return{};const Gn=addUnit($.labelWidth||(oe==null?void 0:oe.labelWidth)||"");return Gn?{width:Gn}:{}}),qe=computed(()=>{if((oe==null?void 0:oe.labelPosition)==="top"||oe!=null&&oe.inline)return{};if(!$.label&&!$.labelWidth&&wn)return{};const Gn=addUnit($.labelWidth||(oe==null?void 0:oe.labelWidth)||"");return!$.label&&!V.label?{marginLeft:Gn}:{}}),Et=computed(()=>[ue.b(),ue.m(le.value),ue.is("error",he.value==="error"),ue.is("validating",he.value==="validating"),ue.is("success",he.value==="success"),ue.is("required",Mn.value||$.required),ue.is("no-asterisk",oe==null?void 0:oe.hideRequiredAsterisk),(oe==null?void 0:oe.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[ue.m("feedback")]:oe==null?void 0:oe.statusIcon}]),Lt=computed(()=>isBoolean$3($.inlineMessage)?$.inlineMessage:(oe==null?void 0:oe.inlineMessage)||!1),hn=computed(()=>[ue.e("error"),{[ue.em("error","inline")]:Lt.value}]),Cn=computed(()=>$.prop?isString$6($.prop)?$.prop:$.prop.join("."):""),bn=computed(()=>!!($.label||V.label)),Sn=computed(()=>$.for||pe.value.length===1?pe.value[0]:void 0),En=computed(()=>!Sn.value&&bn.value),wn=!!ie,$n=computed(()=>{const Gn=oe==null?void 0:oe.model;if(!(!Gn||!$.prop))return getProp(Gn,$.prop).value}),Tn=computed(()=>{const{required:Gn}=$,Yn=[];$.rules&&Yn.push(...castArray$1($.rules));const er=oe==null?void 0:oe.rules;if(er&&$.prop){const lr=getProp(er,$.prop).value;lr&&Yn.push(...castArray$1(lr))}if(Gn!==void 0){const lr=Yn.map((sr,zn)=>[sr,zn]).filter(([sr])=>Object.keys(sr).includes("required"));if(lr.length>0)for(const[sr,zn]of lr)sr.required!==Gn&&(Yn[zn]={...sr,required:Gn});else Yn.push({required:Gn})}return Yn}),xn=computed(()=>Tn.value.length>0),An=Gn=>Tn.value.filter(er=>!er.trigger||!Gn?!0:Array.isArray(er.trigger)?er.trigger.includes(Gn):er.trigger===Gn).map(({trigger:er,...lr})=>lr),Mn=computed(()=>Tn.value.some(Gn=>Gn.required)),Vn=computed(()=>{var Gn;return _e.value==="error"&&$.showMessage&&((Gn=oe==null?void 0:oe.showMessage)!=null?Gn:!0)}),Bn=computed(()=>`${$.label||""}${(oe==null?void 0:oe.labelSuffix)||""}`),Dn=Gn=>{he.value=Gn},Ln=Gn=>{var Yn,er;const{errors:lr,fields:sr}=Gn;(!lr||!sr)&&console.error(Gn),Dn("error"),$e.value=lr?(er=(Yn=lr==null?void 0:lr[0])==null?void 0:Yn.message)!=null?er:`${$.prop} is required`:"",oe==null||oe.emit("validate",$.prop,!1,$e.value)},Pn=()=>{Dn("success"),oe==null||oe.emit("validate",$.prop,!0,"")},Fn=async Gn=>{const Yn=Cn.value;return new Schema({[Yn]:Gn}).validate({[Yn]:$n.value},{firstFields:!0}).then(()=>(Pn(),!0)).catch(lr=>(Ln(lr),Promise.reject(lr)))},Un=async(Gn,Yn)=>{if(Fe||!$.prop)return!1;const er=isFunction$5(Yn);if(!xn.value)return Yn==null||Yn(!1),!1;const lr=An(Gn);return lr.length===0?(Yn==null||Yn(!0),!0):(Dn("validating"),Fn(lr).then(()=>(Yn==null||Yn(!0),!0)).catch(sr=>{const{fields:zn}=sr;return Yn==null||Yn(!1,zn),er?!1:Promise.reject(zn)}))},Wn=()=>{Dn(""),$e.value="",Fe=!1},Zn=async()=>{const Gn=oe==null?void 0:oe.model;if(!Gn||!$.prop)return;const Yn=getProp(Gn,$.prop);Fe=!0,Yn.value=clone$4(Ve),await nextTick(),Wn(),Fe=!1},or=Gn=>{pe.value.includes(Gn)||pe.value.push(Gn)},br=Gn=>{pe.value=pe.value.filter(Yn=>Yn!==Gn)};watch(()=>$.error,Gn=>{$e.value=Gn||"",Dn(Gn?"error":"")},{immediate:!0}),watch(()=>$.validateStatus,Gn=>Dn(Gn||""));const Qn=reactive({...toRefs($),$el:Ie,size:le,validateState:he,labelId:de,inputIds:pe,isGroup:En,hasLabel:bn,addInputId:or,removeInputId:br,resetField:Zn,clearValidate:Wn,validate:Un});return provide(formItemContextKey,Qn),onMounted(()=>{$.prop&&(oe==null||oe.addField(Qn),Ve=clone$4($n.value))}),onBeforeUnmount(()=>{oe==null||oe.removeField(Qn)}),r({size:le,validateMessage:$e,validateState:he,validate:Un,clearValidate:Wn,resetField:Zn}),(Gn,Yn)=>{var er;return openBlock(),createElementBlock("div",{ref_key:"formItemRef",ref:Ie,class:normalizeClass(unref(Et)),role:unref(En)?"group":void 0,"aria-labelledby":unref(En)?unref(de):void 0},[createVNode(unref(FormLabelWrap),{"is-auto-width":unref(Ue).width==="auto","update-all":((er=unref(oe))==null?void 0:er.labelWidth)==="auto"},{default:withCtx(()=>[unref(bn)?(openBlock(),createBlock(resolveDynamicComponent(unref(Sn)?"label":"div"),{key:0,id:unref(de),for:unref(Sn),class:normalizeClass(unref(ue).e("label")),style:normalizeStyle$1(unref(Ue))},{default:withCtx(()=>[renderSlot(Gn.$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(ue).e("content")),style:normalizeStyle$1(unref(qe))},[renderSlot(Gn.$slots,"default"),createVNode(TransitionGroup,{name:`${unref(ue).namespace.value}-zoom-in-top`},{default:withCtx(()=>[unref(Vn)?renderSlot(Gn.$slots,"error",{key:0,error:$e.value},()=>[createBaseVNode("div",{class:normalizeClass(unref(hn))},toDisplayString$1($e.value),3)]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],6)],10,_hoisted_1$15)}}});var FormItem=_export_sfc$1(_sfc_main$2h,[["__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(t){const r=window.getComputedStyle(t),$=r.getPropertyValue("box-sizing"),V=Number.parseFloat(r.getPropertyValue("padding-bottom"))+Number.parseFloat(r.getPropertyValue("padding-top")),oe=Number.parseFloat(r.getPropertyValue("border-bottom-width"))+Number.parseFloat(r.getPropertyValue("border-top-width"));return{contextStyle:CONTEXT_STYLE.map(le=>`${le}:${r.getPropertyValue(le)}`).join(";"),paddingSize:V,borderSize:oe,boxSizing:$}}function calcTextareaHeight(t,r=1,$){var V;hiddenTextarea||(hiddenTextarea=document.createElement("textarea"),document.body.appendChild(hiddenTextarea));const{paddingSize:oe,borderSize:ie,boxSizing:le,contextStyle:ue}=calculateNodeStyling(t);hiddenTextarea.setAttribute("style",`${ue};${HIDDEN_STYLE}`),hiddenTextarea.value=t.value||t.placeholder||"";let de=hiddenTextarea.scrollHeight;const pe={};le==="border-box"?de=de+ie:le==="content-box"&&(de=de-oe),hiddenTextarea.value="";const he=hiddenTextarea.scrollHeight-oe;if(isNumber$4(r)){let _e=he*r;le==="border-box"&&(_e=_e+oe+ie),de=Math.max(_e,de),pe.minHeight=`${_e}px`}if(isNumber$4($)){let _e=he*$;le==="border-box"&&(_e=_e+oe+ie),de=Math.min(_e,de)}return pe.height=`${de}px`,(V=hiddenTextarea.parentNode)==null||V.removeChild(hiddenTextarea),hiddenTextarea=void 0,pe}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({})},autofocus:{type:Boolean,default:!1}}),inputEmits={[UPDATE_MODEL_EVENT]:t=>isString$6(t),input:t=>isString$6(t),change:t=>isString$6(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},_hoisted_1$14=["role"],_hoisted_2$J=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],_hoisted_3$o=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],__default__$1x=defineComponent({name:"ElInput",inheritAttrs:!1}),_sfc_main$2g=defineComponent({...__default__$1x,props:inputProps,emits:inputEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useAttrs$1(),ie=useSlots(),le=computed(()=>{const gr={};return V.containerRole==="combobox"&&(gr["aria-haspopup"]=oe["aria-haspopup"],gr["aria-owns"]=oe["aria-owns"],gr["aria-expanded"]=oe["aria-expanded"]),gr}),ue=computed(()=>[V.type==="textarea"?Ue.b():Fe.b(),Fe.m(Ie.value),Fe.is("disabled",Ve.value),Fe.is("exceed",or.value),{[Fe.b("group")]:ie.prepend||ie.append,[Fe.bm("group","append")]:ie.append,[Fe.bm("group","prepend")]:ie.prepend,[Fe.m("prefix")]:ie.prefix||V.prefixIcon,[Fe.m("suffix")]:ie.suffix||V.suffixIcon||V.clearable||V.showPassword,[Fe.bm("suffix","password-clear")]:Fn.value&&Un.value},oe.class]),de=computed(()=>[Fe.e("wrapper"),Fe.is("focus",$n.value)]),pe=useAttrs({excludeKeys:computed(()=>Object.keys(le.value))}),{form:he,formItem:_e}=useFormItem(),{inputId:$e}=useFormItemInputId(V,{formItemContext:_e}),Ie=useFormSize(),Ve=useFormDisabled(),Fe=useNamespace("input"),Ue=useNamespace("textarea"),qe=shallowRef(),Et=shallowRef(),Lt=ref(!1),hn=ref(!1),Cn=ref(!1),bn=ref(),Sn=shallowRef(V.inputStyle),En=computed(()=>qe.value||Et.value),{wrapperRef:wn,isFocused:$n,handleFocus:Tn,handleBlur:xn}=useFocusController(En,{afterBlur(){var gr;V.validateEvent&&((gr=_e==null?void 0:_e.validate)==null||gr.call(_e,"blur").catch($r=>void 0))}}),An=computed(()=>{var gr;return(gr=he==null?void 0:he.statusIcon)!=null?gr:!1}),Mn=computed(()=>(_e==null?void 0:_e.validateState)||""),Vn=computed(()=>Mn.value&&ValidateComponentsMap[Mn.value]),Bn=computed(()=>Cn.value?view_default:hide_default),Dn=computed(()=>[oe.style,V.inputStyle]),Ln=computed(()=>[V.inputStyle,Sn.value,{resize:V.resize}]),Pn=computed(()=>isNil(V.modelValue)?"":String(V.modelValue)),Fn=computed(()=>V.clearable&&!Ve.value&&!V.readonly&&!!Pn.value&&($n.value||Lt.value)),Un=computed(()=>V.showPassword&&!Ve.value&&!V.readonly&&!!Pn.value&&(!!Pn.value||$n.value)),Wn=computed(()=>V.showWordLimit&&!!pe.value.maxlength&&(V.type==="text"||V.type==="textarea")&&!Ve.value&&!V.readonly&&!V.showPassword),Zn=computed(()=>Pn.value.length),or=computed(()=>!!Wn.value&&Zn.value>Number(pe.value.maxlength)),br=computed(()=>!!ie.suffix||!!V.suffixIcon||Fn.value||V.showPassword||Wn.value||!!Mn.value&&An.value),[Qn,Gn]=useCursor(qe);useResizeObserver$1(Et,gr=>{if(lr(),!Wn.value||V.resize!=="both")return;const $r=gr[0],{width:Rr}=$r.contentRect;bn.value={right:`calc(100% - ${Rr+15+6}px)`}});const Yn=()=>{const{type:gr,autosize:$r}=V;if(!(!isClient$1||gr!=="textarea"||!Et.value))if($r){const Rr=isObject$a($r)?$r.minRows:void 0,Lr=isObject$a($r)?$r.maxRows:void 0,Vr=calcTextareaHeight(Et.value,Rr,Lr);Sn.value={overflowY:"hidden",...Vr},nextTick(()=>{Et.value.offsetHeight,Sn.value=Vr})}else Sn.value={minHeight:calcTextareaHeight(Et.value).minHeight}},lr=(gr=>{let $r=!1;return()=>{var Rr;if($r||!V.autosize)return;((Rr=Et.value)==null?void 0:Rr.offsetParent)===null||(gr(),$r=!0)}})(Yn),sr=()=>{const gr=En.value,$r=V.formatter?V.formatter(Pn.value):Pn.value;!gr||gr.value===$r||(gr.value=$r)},zn=async gr=>{Qn();let{value:$r}=gr.target;if(V.formatter&&($r=V.parser?V.parser($r):$r),!hn.value){if($r===Pn.value){sr();return}$(UPDATE_MODEL_EVENT,$r),$("input",$r),await nextTick(),sr(),Gn()}},Kn=gr=>{$("change",gr.target.value)},Jn=gr=>{$("compositionstart",gr),hn.value=!0},cr=gr=>{var $r;$("compositionupdate",gr);const Rr=($r=gr.target)==null?void 0:$r.value,Lr=Rr[Rr.length-1]||"";hn.value=!isKorean(Lr)},_r=gr=>{$("compositionend",gr),hn.value&&(hn.value=!1,zn(gr))},ur=()=>{Cn.value=!Cn.value,wr()},wr=async()=>{var gr;await nextTick(),(gr=En.value)==null||gr.focus()},Cr=()=>{var gr;return(gr=En.value)==null?void 0:gr.blur()},mr=gr=>{Lt.value=!1,$("mouseleave",gr)},Er=gr=>{Lt.value=!0,$("mouseenter",gr)},Tr=gr=>{$("keydown",gr)},nr=()=>{var gr;(gr=En.value)==null||gr.select()},pr=()=>{$(UPDATE_MODEL_EVENT,""),$("change",""),$("clear"),$("input","")};return watch(()=>V.modelValue,()=>{var gr;nextTick(()=>Yn()),V.validateEvent&&((gr=_e==null?void 0:_e.validate)==null||gr.call(_e,"change").catch($r=>void 0))}),watch(Pn,()=>sr()),watch(()=>V.type,async()=>{await nextTick(),sr(),Yn()}),onMounted(()=>{!V.formatter&&V.parser,sr(),nextTick(Yn)}),r({input:qe,textarea:Et,ref:En,textareaStyle:Ln,autosize:toRef(V,"autosize"),focus:wr,blur:Cr,select:nr,clear:pr,resizeTextarea:Yn}),(gr,$r)=>withDirectives((openBlock(),createElementBlock("div",mergeProps(unref(le),{class:unref(ue),style:unref(Dn),role:gr.containerRole,onMouseenter:Er,onMouseleave:mr}),[createCommentVNode(" input "),gr.type!=="textarea"?(openBlock(),createElementBlock(Fragment,{key:0},[createCommentVNode(" prepend slot "),gr.$slots.prepend?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Fe).be("group","prepend"))},[renderSlot(gr.$slots,"prepend")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{ref_key:"wrapperRef",ref:wn,class:normalizeClass(unref(de))},[createCommentVNode(" prefix slot "),gr.$slots.prefix||gr.prefixIcon?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Fe).e("prefix"))},[createBaseVNode("span",{class:normalizeClass(unref(Fe).e("prefix-inner"))},[renderSlot(gr.$slots,"prefix"),gr.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Fe).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($e),ref_key:"input",ref:qe,class:unref(Fe).e("inner")},unref(pe),{type:gr.showPassword?Cn.value?"text":"password":gr.type,disabled:unref(Ve),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:V.form,autofocus:V.autofocus,onCompositionstart:Jn,onCompositionupdate:cr,onCompositionend:_r,onInput:zn,onFocus:$r[0]||($r[0]=(...Rr)=>unref(Tn)&&unref(Tn)(...Rr)),onBlur:$r[1]||($r[1]=(...Rr)=>unref(xn)&&unref(xn)(...Rr)),onChange:Kn,onKeydown:Tr}),null,16,_hoisted_2$J),createCommentVNode(" suffix slot "),unref(br)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Fe).e("suffix"))},[createBaseVNode("span",{class:normalizeClass(unref(Fe).e("suffix-inner"))},[!unref(Fn)||!unref(Un)||!unref(Wn)?(openBlock(),createElementBlock(Fragment,{key:0},[renderSlot(gr.$slots,"suffix"),gr.suffixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(Fe).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(gr.suffixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],64)):createCommentVNode("v-if",!0),unref(Fn)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(Fe).e("icon"),unref(Fe).e("clear")]),onMousedown:withModifiers(unref(NOOP),["prevent"]),onClick:pr},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),unref(Un)?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref(Fe).e("icon"),unref(Fe).e("password")]),onClick:ur},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Bn))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),unref(Wn)?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass(unref(Fe).e("count"))},[createBaseVNode("span",{class:normalizeClass(unref(Fe).e("count-inner"))},toDisplayString$1(unref(Zn))+" / "+toDisplayString$1(unref(pe).maxlength),3)],2)):createCommentVNode("v-if",!0),unref(Mn)&&unref(Vn)&&unref(An)?(openBlock(),createBlock(unref(ElIcon),{key:4,class:normalizeClass([unref(Fe).e("icon"),unref(Fe).e("validateIcon"),unref(Fe).is("loading",unref(Mn)==="validating")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Vn))))]),_: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(Fe).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($e),ref_key:"textarea",ref:Et,class:unref(Ue).e("inner")},unref(pe),{tabindex:gr.tabindex,disabled:unref(Ve),readonly:gr.readonly,autocomplete:gr.autocomplete,style:unref(Ln),"aria-label":gr.label,placeholder:gr.placeholder,form:V.form,autofocus:V.autofocus,onCompositionstart:Jn,onCompositionupdate:cr,onCompositionend:_r,onInput:zn,onFocus:$r[2]||($r[2]=(...Rr)=>unref(Tn)&&unref(Tn)(...Rr)),onBlur:$r[3]||($r[3]=(...Rr)=>unref(xn)&&unref(xn)(...Rr)),onChange:Kn,onKeydown:Tr}),null,16,_hoisted_3$o),unref(Wn)?(openBlock(),createElementBlock("span",{key:0,style:normalizeStyle$1(bn.value),class:normalizeClass(unref(Fe).e("count"))},toDisplayString$1(unref(Zn))+" / "+toDisplayString$1(unref(pe).maxlength),7)):createCommentVNode("v-if",!0)],64))],16,_hoisted_1$14)),[[vShow,gr.type!=="hidden"]])}});var Input=_export_sfc$1(_sfc_main$2g,[["__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:t,size:r,bar:$})=>({[$.size]:r,transform:`translate${$.axis}(${t}%)`}),scrollbarContextKey=Symbol("scrollbarContextKey"),thumbProps=buildProps({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),COMPONENT_NAME$k="Thumb",_sfc_main$2f=defineComponent({__name:"thumb",props:thumbProps,setup(t){const r=t,$=inject(scrollbarContextKey),V=useNamespace("scrollbar");$||throwError$1(COMPONENT_NAME$k,"can not inject scrollbar context");const oe=ref(),ie=ref(),le=ref({}),ue=ref(!1);let de=!1,pe=!1,he=isClient$1?document.onselectstart:null;const _e=computed(()=>BAR_MAP[r.vertical?"vertical":"horizontal"]),$e=computed(()=>renderThumbStyle$1({size:r.size,move:r.move,bar:_e.value})),Ie=computed(()=>oe.value[_e.value.offset]**2/$.wrapElement[_e.value.scrollSize]/r.ratio/ie.value[_e.value.offset]),Ve=bn=>{var Sn;if(bn.stopPropagation(),bn.ctrlKey||[1,2].includes(bn.button))return;(Sn=window.getSelection())==null||Sn.removeAllRanges(),Ue(bn);const En=bn.currentTarget;En&&(le.value[_e.value.axis]=En[_e.value.offset]-(bn[_e.value.client]-En.getBoundingClientRect()[_e.value.direction]))},Fe=bn=>{if(!ie.value||!oe.value||!$.wrapElement)return;const Sn=Math.abs(bn.target.getBoundingClientRect()[_e.value.direction]-bn[_e.value.client]),En=ie.value[_e.value.offset]/2,wn=(Sn-En)*100*Ie.value/oe.value[_e.value.offset];$.wrapElement[_e.value.scroll]=wn*$.wrapElement[_e.value.scrollSize]/100},Ue=bn=>{bn.stopImmediatePropagation(),de=!0,document.addEventListener("mousemove",qe),document.addEventListener("mouseup",Et),he=document.onselectstart,document.onselectstart=()=>!1},qe=bn=>{if(!oe.value||!ie.value||de===!1)return;const Sn=le.value[_e.value.axis];if(!Sn)return;const En=(oe.value.getBoundingClientRect()[_e.value.direction]-bn[_e.value.client])*-1,wn=ie.value[_e.value.offset]-Sn,$n=(En-wn)*100*Ie.value/oe.value[_e.value.offset];$.wrapElement[_e.value.scroll]=$n*$.wrapElement[_e.value.scrollSize]/100},Et=()=>{de=!1,le.value[_e.value.axis]=0,document.removeEventListener("mousemove",qe),document.removeEventListener("mouseup",Et),Cn(),pe&&(ue.value=!1)},Lt=()=>{pe=!1,ue.value=!!r.size},hn=()=>{pe=!0,ue.value=de};onBeforeUnmount(()=>{Cn(),document.removeEventListener("mouseup",Et)});const Cn=()=>{document.onselectstart!==he&&(document.onselectstart=he)};return useEventListener$1(toRef($,"scrollbarElement"),"mousemove",Lt),useEventListener$1(toRef($,"scrollbarElement"),"mouseleave",hn),(bn,Sn)=>(openBlock(),createBlock(Transition,{name:unref(V).b("fade"),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{ref_key:"instance",ref:oe,class:normalizeClass([unref(V).e("bar"),unref(V).is(unref(_e).key)]),onMousedown:Fe},[createBaseVNode("div",{ref_key:"thumb",ref:ie,class:normalizeClass(unref(V).e("thumb")),style:normalizeStyle$1(unref($e)),onMousedown:Ve},null,38)],34),[[vShow,bn.always||ue.value]])]),_:1},8,["name"]))}});var Thumb=_export_sfc$1(_sfc_main$2f,[["__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$2e=defineComponent({__name:"bar",props:barProps,setup(t,{expose:r}){const $=t,V=ref(0),oe=ref(0);return r({handleScroll:le=>{if(le){const ue=le.offsetHeight-GAP,de=le.offsetWidth-GAP;oe.value=le.scrollTop*100/ue*$.ratioY,V.value=le.scrollLeft*100/de*$.ratioX}}}),(le,ue)=>(openBlock(),createElementBlock(Fragment,null,[createVNode(Thumb,{move:V.value,ratio:le.ratioX,size:le.width,always:le.always},null,8,["move","ratio","size","always"]),createVNode(Thumb,{move:oe.value,ratio:le.ratioY,size:le.height,vertical:"",always:le.always},null,8,["move","ratio","size","always"])],64))}});var Bar=_export_sfc$1(_sfc_main$2e,[["__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:t,scrollLeft:r})=>[t,r].every(isNumber$4)},COMPONENT_NAME$j="ElScrollbar",__default__$1w=defineComponent({name:COMPONENT_NAME$j}),_sfc_main$2d=defineComponent({...__default__$1w,props:scrollbarProps,emits:scrollbarEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useNamespace("scrollbar");let ie,le;const ue=ref(),de=ref(),pe=ref(),he=ref("0"),_e=ref("0"),$e=ref(),Ie=ref(1),Ve=ref(1),Fe=computed(()=>{const Sn={};return V.height&&(Sn.height=addUnit(V.height)),V.maxHeight&&(Sn.maxHeight=addUnit(V.maxHeight)),[V.wrapStyle,Sn]}),Ue=computed(()=>[V.wrapClass,oe.e("wrap"),{[oe.em("wrap","hidden-default")]:!V.native}]),qe=computed(()=>[oe.e("view"),V.viewClass]),Et=()=>{var Sn;de.value&&((Sn=$e.value)==null||Sn.handleScroll(de.value),$("scroll",{scrollTop:de.value.scrollTop,scrollLeft:de.value.scrollLeft}))};function Lt(Sn,En){isObject$a(Sn)?de.value.scrollTo(Sn):isNumber$4(Sn)&&isNumber$4(En)&&de.value.scrollTo(Sn,En)}const hn=Sn=>{isNumber$4(Sn)&&(de.value.scrollTop=Sn)},Cn=Sn=>{isNumber$4(Sn)&&(de.value.scrollLeft=Sn)},bn=()=>{if(!de.value)return;const Sn=de.value.offsetHeight-GAP,En=de.value.offsetWidth-GAP,wn=Sn**2/de.value.scrollHeight,$n=En**2/de.value.scrollWidth,Tn=Math.max(wn,V.minSize),xn=Math.max($n,V.minSize);Ie.value=wn/(Sn-wn)/(Tn/(Sn-Tn)),Ve.value=$n/(En-$n)/(xn/(En-xn)),_e.value=Tn+GAPV.noresize,Sn=>{Sn?(ie==null||ie(),le==null||le()):({stop:ie}=useResizeObserver$1(pe,bn),le=useEventListener$1("resize",bn))},{immediate:!0}),watch(()=>[V.maxHeight,V.height],()=>{V.native||nextTick(()=>{var Sn;bn(),de.value&&((Sn=$e.value)==null||Sn.handleScroll(de.value))})}),provide(scrollbarContextKey,reactive({scrollbarElement:ue,wrapElement:de})),onMounted(()=>{V.native||nextTick(()=>{bn()})}),onUpdated(()=>bn()),r({wrapRef:de,update:bn,scrollTo:Lt,setScrollTop:hn,setScrollLeft:Cn,handleScroll:Et}),(Sn,En)=>(openBlock(),createElementBlock("div",{ref_key:"scrollbarRef",ref:ue,class:normalizeClass(unref(oe).b())},[createBaseVNode("div",{ref_key:"wrapRef",ref:de,class:normalizeClass(unref(Ue)),style:normalizeStyle$1(unref(Fe)),onScroll:Et},[(openBlock(),createBlock(resolveDynamicComponent(Sn.tag),{ref_key:"resizeRef",ref:pe,class:normalizeClass(unref(qe)),style:normalizeStyle$1(Sn.viewStyle)},{default:withCtx(()=>[renderSlot(Sn.$slots,"default")]),_:3},8,["class","style"]))],38),Sn.native?createCommentVNode("v-if",!0):(openBlock(),createBlock(Bar,{key:0,ref_key:"barRef",ref:$e,height:_e.value,width:he.value,always:Sn.always,"ratio-x":Ve.value,"ratio-y":Ie.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var Scrollbar=_export_sfc$1(_sfc_main$2d,[["__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$2c=defineComponent({...__default__$1v,props:popperProps,setup(t,{expose:r}){const $=t,V=ref(),oe=ref(),ie=ref(),le=ref(),ue=computed(()=>$.role),de={triggerRef:V,popperInstanceRef:oe,contentRef:ie,referenceRef:le,role:ue};return r(de),provide(POPPER_INJECTION_KEY,de),(pe,he)=>renderSlot(pe.$slots,"default")}});var Popper=_export_sfc$1(_sfc_main$2c,[["__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$2b=defineComponent({...__default__$1u,props:popperArrowProps,setup(t,{expose:r}){const $=t,V=useNamespace("popper"),{arrowOffset:oe,arrowRef:ie,arrowStyle:le}=inject(POPPER_CONTENT_INJECTION_KEY,void 0);return watch(()=>$.arrowOffset,ue=>{oe.value=ue}),onBeforeUnmount(()=>{ie.value=void 0}),r({arrowRef:ie}),(ue,de)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:ie,class:normalizeClass(unref(V).e("arrow")),style:normalizeStyle$1(unref(le)),"data-popper-arrow":""},null,6))}});var ElPopperArrow=_export_sfc$1(_sfc_main$2b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const NAME="ElOnlyChild",OnlyChild=defineComponent({name:NAME,setup(t,{slots:r,attrs:$}){var V;const oe=inject(FORWARD_REF_INJECTION_KEY),ie=useForwardRefDirective((V=oe==null?void 0:oe.setForwardRef)!=null?V:NOOP);return()=>{var le;const ue=(le=r.default)==null?void 0:le.call(r,$);if(!ue||ue.length>1)return null;const de=findFirstLegitChild(ue);return de?withDirectives(cloneVNode(de,$),[[ie]]):null}}});function findFirstLegitChild(t){if(!t)return null;const r=t;for(const $ of r){if(isObject$a($))switch($.type){case Comment:continue;case Text$1:case"svg":return wrapTextContent($);case Fragment:return findFirstLegitChild($.children);default:return $}return wrapTextContent($)}return null}function wrapTextContent(t){const r=useNamespace("only-child");return createVNode("span",{class:r.e("content")},[t])}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$2a=defineComponent({...__default__$1t,props:popperTriggerProps,setup(t,{expose:r}){const $=t,{role:V,triggerRef:oe}=inject(POPPER_INJECTION_KEY,void 0);useForwardRef(oe);const ie=computed(()=>ue.value?$.id:void 0),le=computed(()=>{if(V&&V.value==="tooltip")return $.open&&$.id?$.id:void 0}),ue=computed(()=>{if(V&&V.value!=="tooltip")return V.value}),de=computed(()=>ue.value?`${$.open}`:void 0);let pe;return onMounted(()=>{watch(()=>$.virtualRef,he=>{he&&(oe.value=unrefElement$1(he))},{immediate:!0}),watch(oe,(he,_e)=>{pe==null||pe(),pe=void 0,isElement$2(he)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach($e=>{var Ie;const Ve=$[$e];Ve&&(he.addEventListener($e.slice(2).toLowerCase(),Ve),(Ie=_e==null?void 0:_e.removeEventListener)==null||Ie.call(_e,$e.slice(2).toLowerCase(),Ve))}),pe=watch([ie,le,ue,de],$e=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((Ie,Ve)=>{isNil($e[Ve])?he.removeAttribute(Ie):he.setAttribute(Ie,$e[Ve])})},{immediate:!0})),isElement$2(_e)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach($e=>_e.removeAttribute($e))},{immediate:!0})}),onBeforeUnmount(()=>{pe==null||pe(),pe=void 0}),r({triggerRef:oe}),(he,_e)=>he.virtualTriggering?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(OnlyChild),mergeProps({key:0},he.$attrs,{"aria-controls":unref(ie),"aria-describedby":unref(le),"aria-expanded":unref(de),"aria-haspopup":unref(ue)}),{default:withCtx(()=>[renderSlot(he.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var ElPopperTrigger=_export_sfc$1(_sfc_main$2a,[["__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=t=>{const r=[],$=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:V=>{const oe=V.tagName==="INPUT"&&V.type==="hidden";return V.disabled||V.hidden||oe?NodeFilter.FILTER_SKIP:V.tabIndex>=0||V===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;$.nextNode();)r.push($.currentNode);return r},getVisibleElement=(t,r)=>{for(const $ of t)if(!isHidden($,r))return $},isHidden=(t,r)=>{if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(r&&t===r)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},getEdges=t=>{const r=obtainAllFocusableElements(t),$=getVisibleElement(r,t),V=getVisibleElement(r.reverse(),t);return[$,V]},isSelectable=t=>t instanceof HTMLInputElement&&"select"in t,tryFocus=(t,r)=>{if(t&&t.focus){const $=document.activeElement;t.focus({preventScroll:!0}),lastAutomatedFocusTimestamp.value=window.performance.now(),t!==$&&isSelectable(t)&&r&&t.select()}};function removeFromStack(t,r){const $=[...t],V=t.indexOf(r);return V!==-1&&$.splice(V,1),$}const createFocusableStack=()=>{let t=[];return{push:V=>{const oe=t[0];oe&&V!==oe&&oe.pause(),t=removeFromStack(t,V),t.unshift(V)},remove:V=>{var oe,ie;t=removeFromStack(t,V),(ie=(oe=t[0])==null?void 0:oe.resume)==null||ie.call(oe)}}},focusFirstDescendant=(t,r=!1)=>{const $=document.activeElement;for(const V of t)if(tryFocus(V,r),document.activeElement!==$)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=t=>new CustomEvent(FOCUSOUT_PREVENTED,{...FOCUSOUT_PREVENTED_OPTS,detail:t}),_sfc_main$29=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(t,{emit:r}){const $=ref();let V,oe;const{focusReason:ie}=useFocusReason();useEscapeKeydown(Ve=>{t.trapped&&!le.paused&&r("release-requested",Ve)});const le={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},ue=Ve=>{if(!t.loop&&!t.trapped||le.paused)return;const{key:Fe,altKey:Ue,ctrlKey:qe,metaKey:Et,currentTarget:Lt,shiftKey:hn}=Ve,{loop:Cn}=t,bn=Fe===EVENT_CODE.tab&&!Ue&&!qe&&!Et,Sn=document.activeElement;if(bn&&Sn){const En=Lt,[wn,$n]=getEdges(En);if(wn&&$n){if(!hn&&Sn===$n){const xn=createFocusOutPreventedEvent({focusReason:ie.value});r("focusout-prevented",xn),xn.defaultPrevented||(Ve.preventDefault(),Cn&&tryFocus(wn,!0))}else if(hn&&[wn,En].includes(Sn)){const xn=createFocusOutPreventedEvent({focusReason:ie.value});r("focusout-prevented",xn),xn.defaultPrevented||(Ve.preventDefault(),Cn&&tryFocus($n,!0))}}else if(Sn===En){const xn=createFocusOutPreventedEvent({focusReason:ie.value});r("focusout-prevented",xn),xn.defaultPrevented||Ve.preventDefault()}}};provide(FOCUS_TRAP_INJECTION_KEY,{focusTrapRef:$,onKeydown:ue}),watch(()=>t.focusTrapEl,Ve=>{Ve&&($.value=Ve)},{immediate:!0}),watch([$],([Ve],[Fe])=>{Ve&&(Ve.addEventListener("keydown",ue),Ve.addEventListener("focusin",he),Ve.addEventListener("focusout",_e)),Fe&&(Fe.removeEventListener("keydown",ue),Fe.removeEventListener("focusin",he),Fe.removeEventListener("focusout",_e))});const de=Ve=>{r(ON_TRAP_FOCUS_EVT,Ve)},pe=Ve=>r(ON_RELEASE_FOCUS_EVT,Ve),he=Ve=>{const Fe=unref($);if(!Fe)return;const Ue=Ve.target,qe=Ve.relatedTarget,Et=Ue&&Fe.contains(Ue);t.trapped||qe&&Fe.contains(qe)||(V=qe),Et&&r("focusin",Ve),!le.paused&&t.trapped&&(Et?oe=Ue:tryFocus(oe,!0))},_e=Ve=>{const Fe=unref($);if(!(le.paused||!Fe))if(t.trapped){const Ue=Ve.relatedTarget;!isNil(Ue)&&!Fe.contains(Ue)&&setTimeout(()=>{if(!le.paused&&t.trapped){const qe=createFocusOutPreventedEvent({focusReason:ie.value});r("focusout-prevented",qe),qe.defaultPrevented||tryFocus(oe,!0)}},0)}else{const Ue=Ve.target;Ue&&Fe.contains(Ue)||r("focusout",Ve)}};async function $e(){await nextTick();const Ve=unref($);if(Ve){focusableStack.push(le);const Fe=Ve.contains(document.activeElement)?V:document.activeElement;if(V=Fe,!Ve.contains(Fe)){const qe=new Event(FOCUS_AFTER_TRAPPED,FOCUS_AFTER_TRAPPED_OPTS);Ve.addEventListener(FOCUS_AFTER_TRAPPED,de),Ve.dispatchEvent(qe),qe.defaultPrevented||nextTick(()=>{let Et=t.focusStartEl;isString$6(Et)||(tryFocus(Et),document.activeElement!==Et&&(Et="first")),Et==="first"&&focusFirstDescendant(obtainAllFocusableElements(Ve),!0),(document.activeElement===Fe||Et==="container")&&tryFocus(Ve)})}}}function Ie(){const Ve=unref($);if(Ve){Ve.removeEventListener(FOCUS_AFTER_TRAPPED,de);const Fe=new CustomEvent(FOCUS_AFTER_RELEASED,{...FOCUS_AFTER_TRAPPED_OPTS,detail:{focusReason:ie.value}});Ve.addEventListener(FOCUS_AFTER_RELEASED,pe),Ve.dispatchEvent(Fe),!Fe.defaultPrevented&&(ie.value=="keyboard"||!isFocusCausedByUserEvent()||Ve.contains(document.activeElement))&&tryFocus(V??document.body),Ve.removeEventListener(FOCUS_AFTER_RELEASED,pe),focusableStack.remove(le)}}return onMounted(()=>{t.trapped&&$e(),watch(()=>t.trapped,Ve=>{Ve?$e():Ie()})}),onBeforeUnmount(()=>{t.trapped&&Ie()}),{onKeydown:ue}}});function _sfc_render$w(t,r,$,V,oe,ie){return renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var ElFocusTrap=_export_sfc$1(_sfc_main$29,[["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:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},buildPopperOptions=(t,r=[])=>{const{placement:$,strategy:V,popperOptions:oe}=t,ie={placement:$,strategy:V,...oe,modifiers:[...genModifiers(t),...r]};return deriveExtraModifiers(ie,oe==null?void 0:oe.modifiers),ie},unwrapMeasurableEl=t=>{if(isClient$1)return unrefElement$1(t)};function genModifiers(t){const{offset:r,gpuAcceleration:$,fallbackPlacements:V}=t;return[{name:"offset",options:{offset:[0,r??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:V}},{name:"computeStyles",options:{gpuAcceleration:$}}]}function deriveExtraModifiers(t,r){r&&(t.modifiers=[...t.modifiers,...r??[]])}const DEFAULT_ARROW_OFFSET=0,usePopperContent=t=>{const{popperInstanceRef:r,contentRef:$,triggerRef:V,role:oe}=inject(POPPER_INJECTION_KEY,void 0),ie=ref(),le=ref(),ue=computed(()=>({name:"eventListeners",enabled:!!t.visible})),de=computed(()=>{var qe;const Et=unref(ie),Lt=(qe=unref(le))!=null?qe:DEFAULT_ARROW_OFFSET;return{name:"arrow",enabled:!isUndefined$2(Et),options:{element:Et,padding:Lt}}}),pe=computed(()=>({onFirstUpdate:()=>{Ve()},...buildPopperOptions(t,[unref(de),unref(ue)])})),he=computed(()=>unwrapMeasurableEl(t.referenceEl)||unref(V)),{attributes:_e,state:$e,styles:Ie,update:Ve,forceUpdate:Fe,instanceRef:Ue}=usePopper(he,$,pe);return watch(Ue,qe=>r.value=qe),onMounted(()=>{watch(()=>{var qe;return(qe=unref(he))==null?void 0:qe.getBoundingClientRect()},()=>{Ve()})}),{attributes:_e,arrowRef:ie,contentRef:$,instanceRef:Ue,state:$e,styles:Ie,role:oe,forceUpdate:Fe,update:Ve}},usePopperContentDOM=(t,{attributes:r,styles:$,role:V})=>{const{nextZIndex:oe}=useZIndex(),ie=useNamespace("popper"),le=computed(()=>unref(r).popper),ue=ref(t.zIndex||oe()),de=computed(()=>[ie.b(),ie.is("pure",t.pure),ie.is(t.effect),t.popperClass]),pe=computed(()=>[{zIndex:unref(ue)},unref($).popper,t.popperStyle||{}]),he=computed(()=>V.value==="dialog"?"false":void 0),_e=computed(()=>unref($).arrow||{});return{ariaModal:he,arrowStyle:_e,contentAttrs:le,contentClass:de,contentStyle:pe,contentZIndex:ue,updateZIndex:()=>{ue.value=t.zIndex||oe()}}},usePopperContentFocusTrap=(t,r)=>{const $=ref(!1),V=ref();return{focusStartRef:V,trapped:$,onFocusAfterReleased:pe=>{var he;((he=pe.detail)==null?void 0:he.focusReason)!=="pointer"&&(V.value="first",r("blur"))},onFocusAfterTrapped:()=>{r("focus")},onFocusInTrap:pe=>{t.visible&&!$.value&&(pe.target&&(V.value=pe.target),$.value=!0)},onFocusoutPrevented:pe=>{t.trapping||(pe.detail.focusReason==="pointer"&&pe.preventDefault(),$.value=!1)},onReleaseRequested:()=>{$.value=!1,r("close")}}},__default__$1s=defineComponent({name:"ElPopperContent"}),_sfc_main$28=defineComponent({...__default__$1s,props:popperContentProps,emits:popperContentEmits,setup(t,{expose:r,emit:$}){const V=t,{focusStartRef:oe,trapped:ie,onFocusAfterReleased:le,onFocusAfterTrapped:ue,onFocusInTrap:de,onFocusoutPrevented:pe,onReleaseRequested:he}=usePopperContentFocusTrap(V,$),{attributes:_e,arrowRef:$e,contentRef:Ie,styles:Ve,instanceRef:Fe,role:Ue,update:qe}=usePopperContent(V),{ariaModal:Et,arrowStyle:Lt,contentAttrs:hn,contentClass:Cn,contentStyle:bn,updateZIndex:Sn}=usePopperContentDOM(V,{styles:Ve,attributes:_e,role:Ue}),En=inject(formItemContextKey,void 0),wn=ref();provide(POPPER_CONTENT_INJECTION_KEY,{arrowStyle:Lt,arrowRef:$e,arrowOffset:wn}),En&&(En.addInputId||En.removeInputId)&&provide(formItemContextKey,{...En,addInputId:NOOP,removeInputId:NOOP});let $n;const Tn=(An=!0)=>{qe(),An&&Sn()},xn=()=>{Tn(!1),V.visible&&V.focusOnShow?ie.value=!0:V.visible===!1&&(ie.value=!1)};return onMounted(()=>{watch(()=>V.triggerTargetEl,(An,Mn)=>{$n==null||$n(),$n=void 0;const Vn=unref(An||Ie.value),Bn=unref(Mn||Ie.value);isElement$2(Vn)&&($n=watch([Ue,()=>V.ariaLabel,Et,()=>V.id],Dn=>{["role","aria-label","aria-modal","id"].forEach((Ln,Pn)=>{isNil(Dn[Pn])?Vn.removeAttribute(Ln):Vn.setAttribute(Ln,Dn[Pn])})},{immediate:!0})),Bn!==Vn&&isElement$2(Bn)&&["role","aria-label","aria-modal","id"].forEach(Dn=>{Bn.removeAttribute(Dn)})},{immediate:!0}),watch(()=>V.visible,xn,{immediate:!0})}),onBeforeUnmount(()=>{$n==null||$n(),$n=void 0}),r({popperContentRef:Ie,popperInstanceRef:Fe,updatePopper:Tn,contentStyle:bn}),(An,Mn)=>(openBlock(),createElementBlock("div",mergeProps({ref_key:"contentRef",ref:Ie},unref(hn),{style:unref(bn),class:unref(Cn),tabindex:"-1",onMouseenter:Mn[0]||(Mn[0]=Vn=>An.$emit("mouseenter",Vn)),onMouseleave:Mn[1]||(Mn[1]=Vn=>An.$emit("mouseleave",Vn))}),[createVNode(unref(ElFocusTrap),{trapped:unref(ie),"trap-on-focus-in":!0,"focus-trap-el":unref(Ie),"focus-start-el":unref(oe),onFocusAfterTrapped:unref(ue),onFocusAfterReleased:unref(le),onFocusin:unref(de),onFocusoutPrevented:unref(pe),onReleaseRequested:unref(he)},{default:withCtx(()=>[renderSlot(An.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var ElPopperContent=_export_sfc$1(_sfc_main$28,[["__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=(t,r)=>isArray$c(t)?t.includes(r):t===r,whenTrigger=(t,r,$)=>V=>{isTriggerType(unref(t),r)&&$(V)},__default__$1r=defineComponent({name:"ElTooltipTrigger"}),_sfc_main$27=defineComponent({...__default__$1r,props:useTooltipTriggerProps,setup(t,{expose:r}){const $=t,V=useNamespace("tooltip"),{controlled:oe,id:ie,open:le,onOpen:ue,onClose:de,onToggle:pe}=inject(TOOLTIP_INJECTION_KEY,void 0),he=ref(null),_e=()=>{if(unref(oe)||$.disabled)return!0},$e=toRef($,"trigger"),Ie=composeEventHandlers(_e,whenTrigger($e,"hover",ue)),Ve=composeEventHandlers(_e,whenTrigger($e,"hover",de)),Fe=composeEventHandlers(_e,whenTrigger($e,"click",hn=>{hn.button===0&&pe(hn)})),Ue=composeEventHandlers(_e,whenTrigger($e,"focus",ue)),qe=composeEventHandlers(_e,whenTrigger($e,"focus",de)),Et=composeEventHandlers(_e,whenTrigger($e,"contextmenu",hn=>{hn.preventDefault(),pe(hn)})),Lt=composeEventHandlers(_e,hn=>{const{code:Cn}=hn;$.triggerKeys.includes(Cn)&&(hn.preventDefault(),pe(hn))});return r({triggerRef:he}),(hn,Cn)=>(openBlock(),createBlock(unref(ElPopperTrigger),{id:unref(ie),"virtual-ref":hn.virtualRef,open:unref(le),"virtual-triggering":hn.virtualTriggering,class:normalizeClass(unref(V).e("trigger")),onBlur:unref(qe),onClick:unref(Fe),onContextmenu:unref(Et),onFocus:unref(Ue),onMouseenter:unref(Ie),onMouseleave:unref(Ve),onKeydown:unref(Lt)},{default:withCtx(()=>[renderSlot(hn.$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$27,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const __default__$1q=defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),_sfc_main$26=defineComponent({...__default__$1q,props:useTooltipContentProps,setup(t,{expose:r}){const $=t,{selector:V}=usePopperContainerId(),oe=useNamespace("tooltip"),ie=ref(null),le=ref(!1),{controlled:ue,id:de,open:pe,trigger:he,onClose:_e,onOpen:$e,onShow:Ie,onHide:Ve,onBeforeShow:Fe,onBeforeHide:Ue}=inject(TOOLTIP_INJECTION_KEY,void 0),qe=computed(()=>$.transition||`${oe.namespace.value}-fade-in-linear`),Et=computed(()=>$.persistent);onBeforeUnmount(()=>{le.value=!0});const Lt=computed(()=>unref(Et)?!0:unref(pe)),hn=computed(()=>$.disabled?!1:unref(pe)),Cn=computed(()=>$.appendTo||V.value),bn=computed(()=>{var Dn;return(Dn=$.style)!=null?Dn:{}}),Sn=computed(()=>!unref(pe)),En=()=>{Ve()},wn=()=>{if(unref(ue))return!0},$n=composeEventHandlers(wn,()=>{$.enterable&&unref(he)==="hover"&&$e()}),Tn=composeEventHandlers(wn,()=>{unref(he)==="hover"&&_e()}),xn=()=>{var Dn,Ln;(Ln=(Dn=ie.value)==null?void 0:Dn.updatePopper)==null||Ln.call(Dn),Fe==null||Fe()},An=()=>{Ue==null||Ue()},Mn=()=>{Ie(),Bn=onClickOutside$1(computed(()=>{var Dn;return(Dn=ie.value)==null?void 0:Dn.popperContentRef}),()=>{if(unref(ue))return;unref(he)!=="hover"&&_e()})},Vn=()=>{$.virtualTriggering||_e()};let Bn;return watch(()=>unref(pe),Dn=>{Dn||Bn==null||Bn()},{flush:"post"}),watch(()=>$.content,()=>{var Dn,Ln;(Ln=(Dn=ie.value)==null?void 0:Dn.updatePopper)==null||Ln.call(Dn)}),r({contentRef:ie}),(Dn,Ln)=>(openBlock(),createBlock(Teleport,{disabled:!Dn.teleported,to:unref(Cn)},[createVNode(Transition,{name:unref(qe),onAfterLeave:En,onBeforeEnter:xn,onAfterEnter:Mn,onBeforeLeave:An},{default:withCtx(()=>[unref(Lt)?withDirectives((openBlock(),createBlock(unref(ElPopperContent),mergeProps({key:0,id:unref(de),ref_key:"contentRef",ref:ie},Dn.$attrs,{"aria-label":Dn.ariaLabel,"aria-hidden":unref(Sn),"boundaries-padding":Dn.boundariesPadding,"fallback-placements":Dn.fallbackPlacements,"gpu-acceleration":Dn.gpuAcceleration,offset:Dn.offset,placement:Dn.placement,"popper-options":Dn.popperOptions,strategy:Dn.strategy,effect:Dn.effect,enterable:Dn.enterable,pure:Dn.pure,"popper-class":Dn.popperClass,"popper-style":[Dn.popperStyle,unref(bn)],"reference-el":Dn.referenceEl,"trigger-target-el":Dn.triggerTargetEl,visible:unref(hn),"z-index":Dn.zIndex,onMouseenter:unref($n),onMouseleave:unref(Tn),onBlur:Vn,onClose:unref(_e)}),{default:withCtx(()=>[le.value?createCommentVNode("v-if",!0):renderSlot(Dn.$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(hn)]]):createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ElTooltipContent=_export_sfc$1(_sfc_main$26,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const _hoisted_1$13=["innerHTML"],_hoisted_2$I={key:1},__default__$1p=defineComponent({name:"ElTooltip"}),_sfc_main$25=defineComponent({...__default__$1p,props:useTooltipProps,emits:tooltipEmits,setup(t,{expose:r,emit:$}){const V=t;usePopperContainer();const oe=useId(),ie=ref(),le=ref(),ue=()=>{var qe;const Et=unref(ie);Et&&((qe=Et.popperInstanceRef)==null||qe.update())},de=ref(!1),pe=ref(),{show:he,hide:_e,hasUpdateHandler:$e}=useTooltipModelToggle({indicator:de,toggleReason:pe}),{onOpen:Ie,onClose:Ve}=useDelayedToggle({showAfter:toRef(V,"showAfter"),hideAfter:toRef(V,"hideAfter"),autoClose:toRef(V,"autoClose"),open:he,close:_e}),Fe=computed(()=>isBoolean$3(V.visible)&&!$e.value);provide(TOOLTIP_INJECTION_KEY,{controlled:Fe,id:oe,open:readonly(de),trigger:toRef(V,"trigger"),onOpen:qe=>{Ie(qe)},onClose:qe=>{Ve(qe)},onToggle:qe=>{unref(de)?Ve(qe):Ie(qe)},onShow:()=>{$("show",pe.value)},onHide:()=>{$("hide",pe.value)},onBeforeShow:()=>{$("before-show",pe.value)},onBeforeHide:()=>{$("before-hide",pe.value)},updatePopper:ue}),watch(()=>V.disabled,qe=>{qe&&de.value&&(de.value=!1)});const Ue=qe=>{var Et,Lt;const hn=(Lt=(Et=le.value)==null?void 0:Et.contentRef)==null?void 0:Lt.popperContentRef,Cn=(qe==null?void 0:qe.relatedTarget)||document.activeElement;return hn&&hn.contains(Cn)};return onDeactivated(()=>de.value&&_e()),r({popperRef:ie,contentRef:le,isFocusInsideContent:Ue,updatePopper:ue,onOpen:Ie,onClose:Ve,hide:_e}),(qe,Et)=>(openBlock(),createBlock(unref(ElPopper),{ref_key:"popperRef",ref:ie,role:qe.role},{default:withCtx(()=>[createVNode(ElTooltipTrigger,{disabled:qe.disabled,trigger:qe.trigger,"trigger-keys":qe.triggerKeys,"virtual-ref":qe.virtualRef,"virtual-triggering":qe.virtualTriggering},{default:withCtx(()=>[qe.$slots.default?renderSlot(qe.$slots,"default",{key:0}):createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),createVNode(ElTooltipContent,{ref_key:"contentRef",ref:le,"aria-label":qe.ariaLabel,"boundaries-padding":qe.boundariesPadding,content:qe.content,disabled:qe.disabled,effect:qe.effect,enterable:qe.enterable,"fallback-placements":qe.fallbackPlacements,"hide-after":qe.hideAfter,"gpu-acceleration":qe.gpuAcceleration,offset:qe.offset,persistent:qe.persistent,"popper-class":qe.popperClass,"popper-style":qe.popperStyle,placement:qe.placement,"popper-options":qe.popperOptions,pure:qe.pure,"raw-content":qe.rawContent,"reference-el":qe.referenceEl,"trigger-target-el":qe.triggerTargetEl,"show-after":qe.showAfter,strategy:qe.strategy,teleported:qe.teleported,transition:qe.transition,"virtual-triggering":qe.virtualTriggering,"z-index":qe.zIndex,"append-to":qe.appendTo},{default:withCtx(()=>[renderSlot(qe.$slots,"content",{},()=>[qe.rawContent?(openBlock(),createElementBlock("span",{key:0,innerHTML:qe.content},null,8,_hoisted_1$13)):(openBlock(),createElementBlock("span",_hoisted_2$I,toDisplayString$1(qe.content),1))]),qe.showArrow?(openBlock(),createBlock(unref(ElPopperArrow),{key:0,"arrow-offset":qe.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$25,[["__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]:t=>isString$6(t),[INPUT_EVENT]:t=>isString$6(t),[CHANGE_EVENT]:t=>isString$6(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,select:t=>isObject$a(t)},_hoisted_1$12=["aria-expanded","aria-owns"],_hoisted_2$H={key:0},_hoisted_3$n=["id","aria-selected","onClick"],COMPONENT_NAME$i="ElAutocomplete",__default__$1o=defineComponent({name:COMPONENT_NAME$i,inheritAttrs:!1}),_sfc_main$24=defineComponent({...__default__$1o,props:autocompleteProps,emits:autocompleteEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useAttrs(),ie=useAttrs$1(),le=useFormDisabled(),ue=useNamespace("autocomplete"),de=ref(),pe=ref(),he=ref(),_e=ref();let $e=!1,Ie=!1;const Ve=ref([]),Fe=ref(-1),Ue=ref(""),qe=ref(!1),Et=ref(!1),Lt=ref(!1),hn=computed(()=>ue.b(String(generateId()))),Cn=computed(()=>ie.style),bn=computed(()=>(Ve.value.length>0||Lt.value)&&qe.value),Sn=computed(()=>!V.hideLoading&&Lt.value),En=computed(()=>de.value?Array.from(de.value.$el.querySelectorAll("input")):[]),wn=()=>{bn.value&&(Ue.value=`${de.value.$el.offsetWidth}px`)},$n=()=>{Fe.value=-1},xn=debounce(async Qn=>{if(Et.value)return;const Gn=Yn=>{Lt.value=!1,!Et.value&&(isArray$c(Yn)?(Ve.value=Yn,Fe.value=V.highlightFirstItem?0:-1):throwError$1(COMPONENT_NAME$i,"autocomplete suggestions must be an array"))};if(Lt.value=!0,isArray$c(V.fetchSuggestions))Gn(V.fetchSuggestions);else{const Yn=await V.fetchSuggestions(Qn,Gn);isArray$c(Yn)&&Gn(Yn)}},V.debounce),An=Qn=>{const Gn=!!Qn;if($(INPUT_EVENT,Qn),$(UPDATE_MODEL_EVENT,Qn),Et.value=!1,qe.value||(qe.value=Gn),!V.triggerOnFocus&&!Qn){Et.value=!0,Ve.value=[];return}xn(Qn)},Mn=Qn=>{var Gn;le.value||(((Gn=Qn.target)==null?void 0:Gn.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(qe.value=!0)},Vn=Qn=>{$(CHANGE_EVENT,Qn)},Bn=Qn=>{Ie?Ie=!1:(qe.value=!0,$("focus",Qn),V.triggerOnFocus&&!$e&&xn(String(V.modelValue)))},Dn=Qn=>{setTimeout(()=>{var Gn;if((Gn=he.value)!=null&&Gn.isFocusInsideContent()){Ie=!0;return}qe.value&&Un(),$("blur",Qn)})},Ln=()=>{qe.value=!1,$(UPDATE_MODEL_EVENT,""),$("clear")},Pn=async()=>{bn.value&&Fe.value>=0&&Fe.value{bn.value&&(Qn.preventDefault(),Qn.stopPropagation(),Un())},Un=()=>{qe.value=!1},Wn=()=>{var Qn;(Qn=de.value)==null||Qn.focus()},Zn=()=>{var Qn;(Qn=de.value)==null||Qn.blur()},or=async Qn=>{$(INPUT_EVENT,Qn[V.valueKey]),$(UPDATE_MODEL_EVENT,Qn[V.valueKey]),$("select",Qn),Ve.value=[],Fe.value=-1},br=Qn=>{if(!bn.value||Lt.value)return;if(Qn<0){Fe.value=-1;return}Qn>=Ve.value.length&&(Qn=Ve.value.length-1);const Gn=pe.value.querySelector(`.${ue.be("suggestion","wrap")}`),er=Gn.querySelectorAll(`.${ue.be("suggestion","list")} li`)[Qn],lr=Gn.scrollTop,{offsetTop:sr,scrollHeight:zn}=er;sr+zn>lr+Gn.clientHeight&&(Gn.scrollTop+=zn),sr{bn.value&&Un()}),onMounted(()=>{de.value.ref.setAttribute("role","textbox"),de.value.ref.setAttribute("aria-autocomplete","list"),de.value.ref.setAttribute("aria-controls","id"),de.value.ref.setAttribute("aria-activedescendant",`${hn.value}-item-${Fe.value}`),$e=de.value.ref.hasAttribute("readonly")}),r({highlightedIndex:Fe,activated:qe,loading:Lt,inputRef:de,popperRef:he,suggestions:Ve,handleSelect:or,handleKeyEnter:Pn,focus:Wn,blur:Zn,close:Un,highlight:br}),(Qn,Gn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popperRef",ref:he,visible:unref(bn),placement:Qn.placement,"fallback-placements":["bottom-start","top-start"],"popper-class":[unref(ue).e("popper"),Qn.popperClass],teleported:Qn.teleported,"gpu-acceleration":!1,pure:"","manual-mode":"",effect:"light",trigger:"click",transition:`${unref(ue).namespace.value}-zoom-in-top`,persistent:"",role:"listbox",onBeforeShow:wn,onHide:$n},{content:withCtx(()=>[createBaseVNode("div",{ref_key:"regionRef",ref:pe,class:normalizeClass([unref(ue).b("suggestion"),unref(ue).is("loading",unref(Sn))]),style:normalizeStyle$1({[Qn.fitInputWidth?"width":"minWidth"]:Ue.value,outline:"none"}),role:"region"},[createVNode(unref(ElScrollbar),{id:unref(hn),tag:"ul","wrap-class":unref(ue).be("suggestion","wrap"),"view-class":unref(ue).be("suggestion","list"),role:"listbox"},{default:withCtx(()=>[unref(Sn)?(openBlock(),createElementBlock("li",_hoisted_2$H,[createVNode(unref(ElIcon),{class:normalizeClass(unref(ue).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])])):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(Ve.value,(Yn,er)=>(openBlock(),createElementBlock("li",{id:`${unref(hn)}-item-${er}`,key:er,class:normalizeClass({highlighted:Fe.value===er}),role:"option","aria-selected":Fe.value===er,onClick:lr=>or(Yn)},[renderSlot(Qn.$slots,"default",{item:Yn},()=>[createTextVNode(toDisplayString$1(Yn[Qn.valueKey]),1)])],10,_hoisted_3$n))),128))]),_:3},8,["id","wrap-class","view-class"])],6)]),default:withCtx(()=>[createBaseVNode("div",{ref_key:"listboxRef",ref:_e,class:normalizeClass([unref(ue).b(),Qn.$attrs.class]),style:normalizeStyle$1(unref(Cn)),role:"combobox","aria-haspopup":"listbox","aria-expanded":unref(bn),"aria-owns":unref(hn)},[createVNode(unref(ElInput),mergeProps({ref_key:"inputRef",ref:de},unref(oe),{clearable:Qn.clearable,disabled:unref(le),name:Qn.name,"model-value":Qn.modelValue,onInput:An,onChange:Vn,onFocus:Bn,onBlur:Dn,onClear:Ln,onKeydown:[Gn[0]||(Gn[0]=withKeys(withModifiers(Yn=>br(Fe.value-1),["prevent"]),["up"])),Gn[1]||(Gn[1]=withKeys(withModifiers(Yn=>br(Fe.value+1),["prevent"]),["down"])),withKeys(Pn,["enter"]),withKeys(Un,["tab"]),withKeys(Fn,["esc"])],onMousedown:Mn}),createSlots({_:2},[Qn.$slots.prepend?{name:"prepend",fn:withCtx(()=>[renderSlot(Qn.$slots,"prepend")])}:void 0,Qn.$slots.append?{name:"append",fn:withCtx(()=>[renderSlot(Qn.$slots,"append")])}:void 0,Qn.$slots.prefix?{name:"prefix",fn:withCtx(()=>[renderSlot(Qn.$slots,"prefix")])}:void 0,Qn.$slots.suffix?{name:"suffix",fn:withCtx(()=>[renderSlot(Qn.$slots,"suffix")])}:void 0]),1040,["clearable","disabled","name","model-value","onKeydown"])],14,_hoisted_1$12)]),_:3},8,["visible","placement","popper-class","teleported","transition"]))}});var Autocomplete=_export_sfc$1(_sfc_main$24,[["__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:t=>isNumber$4(t)},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:t=>t instanceof Event},_hoisted_1$11=["src","alt","srcset"],__default__$1n=defineComponent({name:"ElAvatar"}),_sfc_main$23=defineComponent({...__default__$1n,props:avatarProps,emits:avatarEmits,setup(t,{emit:r}){const $=t,V=useNamespace("avatar"),oe=ref(!1),ie=computed(()=>{const{size:pe,icon:he,shape:_e}=$,$e=[V.b()];return isString$6(pe)&&$e.push(V.m(pe)),he&&$e.push(V.m("icon")),_e&&$e.push(V.m(_e)),$e}),le=computed(()=>{const{size:pe}=$;return isNumber$4(pe)?V.cssVarBlock({size:addUnit(pe)||""}):void 0}),ue=computed(()=>({objectFit:$.fit}));watch(()=>$.src,()=>oe.value=!1);function de(pe){oe.value=!0,r("error",pe)}return(pe,he)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie)),style:normalizeStyle$1(unref(le))},[(pe.src||pe.srcSet)&&!oe.value?(openBlock(),createElementBlock("img",{key:0,src:pe.src,alt:pe.alt,srcset:pe.srcSet,style:normalizeStyle$1(unref(ue)),onError:de},null,44,_hoisted_1$11)):pe.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(pe.icon)))]),_:1})):renderSlot(pe.$slots,"default",{key:2})],6))}});var Avatar=_export_sfc$1(_sfc_main$23,[["__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:t=>t instanceof MouseEvent},useBackTop=(t,r,$)=>{const V=shallowRef(),oe=shallowRef(),ie=ref(!1),le=()=>{V.value&&(ie.value=V.value.scrollTop>=t.visibilityHeight)},ue=pe=>{var he;(he=V.value)==null||he.scrollTo({top:0,behavior:"smooth"}),r("click",pe)},de=useThrottleFn(le,300,!0);return useEventListener$1(oe,"scroll",de),onMounted(()=>{var pe;oe.value=document,V.value=document.documentElement,t.target&&(V.value=(pe=document.querySelector(t.target))!=null?pe:void 0,V.value||throwError$1($,`target does not exist: ${t.target}`),oe.value=V.value),le()}),{visible:ie,handleClick:ue}},COMPONENT_NAME$h="ElBacktop",__default__$1m=defineComponent({name:COMPONENT_NAME$h}),_sfc_main$22=defineComponent({...__default__$1m,props:backtopProps,emits:backtopEmits,setup(t,{emit:r}){const $=t,V=useNamespace("backtop"),{handleClick:oe,visible:ie}=useBackTop($,r,COMPONENT_NAME$h),le=computed(()=>({right:`${$.right}px`,bottom:`${$.bottom}px`}));return(ue,de)=>(openBlock(),createBlock(Transition,{name:`${unref(V).namespace.value}-fade-in`},{default:withCtx(()=>[unref(ie)?(openBlock(),createElementBlock("div",{key:0,style:normalizeStyle$1(unref(le)),class:normalizeClass(unref(V).b()),onClick:de[0]||(de[0]=withModifiers((...pe)=>unref(oe)&&unref(oe)(...pe),["stop"]))},[renderSlot(ue.$slots,"default",{},()=>[createVNode(unref(ElIcon),{class:normalizeClass(unref(V).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$22,[["__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$10=["textContent"],__default__$1l=defineComponent({name:"ElBadge"}),_sfc_main$21=defineComponent({...__default__$1l,props:badgeProps,setup(t,{expose:r}){const $=t,V=useNamespace("badge"),oe=computed(()=>$.isDot?"":isNumber$4($.value)&&isNumber$4($.max)?$.max<$.value?`${$.max}+`:`${$.value}`:`${$.value}`);return r({content:oe}),(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(V).b())},[renderSlot(ie.$slots,"default"),createVNode(Transition,{name:`${unref(V).namespace.value}-zoom-in-center`,persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("sup",{class:normalizeClass([unref(V).e("content"),unref(V).em("content",ie.type),unref(V).is("fixed",!!ie.$slots.default),unref(V).is("dot",ie.isDot)]),textContent:toDisplayString$1(unref(oe))},null,10,_hoisted_1$10),[[vShow,!ie.hidden&&(unref(oe)||ie.isDot)]])]),_:1},8,["name"])],2))}});var Badge=_export_sfc$1(_sfc_main$21,[["__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$20=defineComponent({...__default__$1k,props:breadcrumbProps,setup(t){const r=t,$=useNamespace("breadcrumb"),V=ref();return provide(breadcrumbKey,r),onMounted(()=>{const oe=V.value.querySelectorAll(`.${$.e("item")}`);oe.length&&oe[oe.length-1].setAttribute("aria-current","page")}),(oe,ie)=>(openBlock(),createElementBlock("div",{ref_key:"breadcrumb",ref:V,class:normalizeClass(unref($).b()),"aria-label":"Breadcrumb",role:"navigation"},[renderSlot(oe.$slots,"default")],2))}});var Breadcrumb=_export_sfc$1(_sfc_main$20,[["__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(t){const r=t,$=getCurrentInstance(),V=inject(breadcrumbKey,void 0),oe=useNamespace("breadcrumb"),ie=$.appContext.config.globalProperties.$router,le=ref(),ue=()=>{!r.to||!ie||(r.replace?ie.replace(r.to):ie.push(r.to))};return(de,pe)=>{var he,_e;return openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe).e("item"))},[createBaseVNode("span",{ref_key:"link",ref:le,class:normalizeClass([unref(oe).e("inner"),unref(oe).is("link",!!de.to)]),role:"link",onClick:ue},[renderSlot(de.$slots,"default")],2),(he=unref(V))!=null&&he.separatorIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("separator"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(V).separatorIcon)))]),_:1},8,["class"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(oe).e("separator")),role:"presentation"},toDisplayString$1((_e=unref(V))==null?void 0:_e.separator),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=(t,r)=>{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(()=>t.type==="text"));const $=inject(buttonGroupContextKey,void 0),V=useGlobalConfig("button"),{form:oe}=useFormItem(),ie=useFormSize(computed(()=>$==null?void 0:$.size)),le=useFormDisabled(),ue=ref(),de=useSlots(),pe=computed(()=>t.type||($==null?void 0:$.type)||""),he=computed(()=>{var Ve,Fe,Ue;return(Ue=(Fe=t.autoInsertSpace)!=null?Fe:(Ve=V.value)==null?void 0:Ve.autoInsertSpace)!=null?Ue:!1}),_e=computed(()=>t.tag==="button"?{ariaDisabled:le.value||t.loading,disabled:le.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),$e=computed(()=>{var Ve;const Fe=(Ve=de.default)==null?void 0:Ve.call(de);if(he.value&&(Fe==null?void 0:Fe.length)===1){const Ue=Fe[0];if((Ue==null?void 0:Ue.type)===Text$1){const qe=Ue.children;return/^\p{Unified_Ideograph}{2}$/u.test(qe.trim())}}return!1});return{_disabled:le,_size:ie,_type:pe,_ref:ue,_props:_e,shouldAddSpace:$e,handleClick:Ve=>{t.nativeType==="reset"&&(oe==null||oe.resetFields()),r("click",Ve)}}},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:t=>t instanceof MouseEvent};function bound01$1(t,r){isOnePointZero$1(t)&&(t="100%");var $=isPercentage$1(t);return t=r===360?t:Math.min(r,Math.max(0,parseFloat(t))),$&&(t=parseInt(String(t*r),10)/100),Math.abs(t-r)<1e-6?1:(r===360?t=(t<0?t%r+r:t%r)/parseFloat(String(r)):t=t%r/parseFloat(String(r)),t)}function clamp01(t){return Math.min(1,Math.max(0,t))}function isOnePointZero$1(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function isPercentage$1(t){return typeof t=="string"&&t.indexOf("%")!==-1}function boundAlpha(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function convertToPercentage(t){return t<=1?"".concat(Number(t)*100,"%"):t}function pad2(t){return t.length===1?"0"+t:String(t)}function rgbToRgb(t,r,$){return{r:bound01$1(t,255)*255,g:bound01$1(r,255)*255,b:bound01$1($,255)*255}}function rgbToHsl(t,r,$){t=bound01$1(t,255),r=bound01$1(r,255),$=bound01$1($,255);var V=Math.max(t,r,$),oe=Math.min(t,r,$),ie=0,le=0,ue=(V+oe)/2;if(V===oe)le=0,ie=0;else{var de=V-oe;switch(le=ue>.5?de/(2-V-oe):de/(V+oe),V){case t:ie=(r-$)/de+(r<$?6:0);break;case r:ie=($-t)/de+2;break;case $:ie=(t-r)/de+4;break}ie/=6}return{h:ie,s:le,l:ue}}function hue2rgb(t,r,$){return $<0&&($+=1),$>1&&($-=1),$<1/6?t+(r-t)*(6*$):$<1/2?r:$<2/3?t+(r-t)*(2/3-$)*6:t}function hslToRgb(t,r,$){var V,oe,ie;if(t=bound01$1(t,360),r=bound01$1(r,100),$=bound01$1($,100),r===0)oe=$,ie=$,V=$;else{var le=$<.5?$*(1+r):$+r-$*r,ue=2*$-le;V=hue2rgb(ue,le,t+1/3),oe=hue2rgb(ue,le,t),ie=hue2rgb(ue,le,t-1/3)}return{r:V*255,g:oe*255,b:ie*255}}function rgbToHsv(t,r,$){t=bound01$1(t,255),r=bound01$1(r,255),$=bound01$1($,255);var V=Math.max(t,r,$),oe=Math.min(t,r,$),ie=0,le=V,ue=V-oe,de=V===0?0:ue/V;if(V===oe)ie=0;else{switch(V){case t:ie=(r-$)/ue+(r<$?6:0);break;case r:ie=($-t)/ue+2;break;case $:ie=(t-r)/ue+4;break}ie/=6}return{h:ie,s:de,v:le}}function hsvToRgb(t,r,$){t=bound01$1(t,360)*6,r=bound01$1(r,100),$=bound01$1($,100);var V=Math.floor(t),oe=t-V,ie=$*(1-r),le=$*(1-oe*r),ue=$*(1-(1-oe)*r),de=V%6,pe=[$,le,ie,ie,ue,$][de],he=[ue,$,$,le,ie,ie][de],_e=[ie,ie,ue,$,$,le][de];return{r:pe*255,g:he*255,b:_e*255}}function rgbToHex(t,r,$,V){var oe=[pad2(Math.round(t).toString(16)),pad2(Math.round(r).toString(16)),pad2(Math.round($).toString(16))];return V&&oe[0].startsWith(oe[0].charAt(1))&&oe[1].startsWith(oe[1].charAt(1))&&oe[2].startsWith(oe[2].charAt(1))?oe[0].charAt(0)+oe[1].charAt(0)+oe[2].charAt(0):oe.join("")}function rgbaToHex(t,r,$,V,oe){var ie=[pad2(Math.round(t).toString(16)),pad2(Math.round(r).toString(16)),pad2(Math.round($).toString(16)),pad2(convertDecimalToHex(V))];return oe&&ie[0].startsWith(ie[0].charAt(1))&&ie[1].startsWith(ie[1].charAt(1))&&ie[2].startsWith(ie[2].charAt(1))&&ie[3].startsWith(ie[3].charAt(1))?ie[0].charAt(0)+ie[1].charAt(0)+ie[2].charAt(0)+ie[3].charAt(0):ie.join("")}function convertDecimalToHex(t){return Math.round(parseFloat(t)*255).toString(16)}function convertHexToDecimal(t){return parseIntFromHex(t)/255}function parseIntFromHex(t){return parseInt(t,16)}function numberInputToObject(t){return{r:t>>16,g:(t&65280)>>8,b:t&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(t){var r={r:0,g:0,b:0},$=1,V=null,oe=null,ie=null,le=!1,ue=!1;return typeof t=="string"&&(t=stringInputToObject(t)),typeof t=="object"&&(isValidCSSUnit(t.r)&&isValidCSSUnit(t.g)&&isValidCSSUnit(t.b)?(r=rgbToRgb(t.r,t.g,t.b),le=!0,ue=String(t.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(t.h)&&isValidCSSUnit(t.s)&&isValidCSSUnit(t.v)?(V=convertToPercentage(t.s),oe=convertToPercentage(t.v),r=hsvToRgb(t.h,V,oe),le=!0,ue="hsv"):isValidCSSUnit(t.h)&&isValidCSSUnit(t.s)&&isValidCSSUnit(t.l)&&(V=convertToPercentage(t.s),ie=convertToPercentage(t.l),r=hslToRgb(t.h,V,ie),le=!0,ue="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&($=t.a)),$=boundAlpha($),{ok:le,format:t.format||ue,r:Math.min(255,Math.max(r.r,0)),g:Math.min(255,Math.max(r.g,0)),b:Math.min(255,Math.max(r.b,0)),a:$}}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(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var r=!1;if(names[t])t=names[t],r=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var $=matchers.rgb.exec(t);return $?{r:$[1],g:$[2],b:$[3]}:($=matchers.rgba.exec(t),$?{r:$[1],g:$[2],b:$[3],a:$[4]}:($=matchers.hsl.exec(t),$?{h:$[1],s:$[2],l:$[3]}:($=matchers.hsla.exec(t),$?{h:$[1],s:$[2],l:$[3],a:$[4]}:($=matchers.hsv.exec(t),$?{h:$[1],s:$[2],v:$[3]}:($=matchers.hsva.exec(t),$?{h:$[1],s:$[2],v:$[3],a:$[4]}:($=matchers.hex8.exec(t),$?{r:parseIntFromHex($[1]),g:parseIntFromHex($[2]),b:parseIntFromHex($[3]),a:convertHexToDecimal($[4]),format:r?"name":"hex8"}:($=matchers.hex6.exec(t),$?{r:parseIntFromHex($[1]),g:parseIntFromHex($[2]),b:parseIntFromHex($[3]),format:r?"name":"hex"}:($=matchers.hex4.exec(t),$?{r:parseIntFromHex($[1]+$[1]),g:parseIntFromHex($[2]+$[2]),b:parseIntFromHex($[3]+$[3]),a:convertHexToDecimal($[4]+$[4]),format:r?"name":"hex8"}:($=matchers.hex3.exec(t),$?{r:parseIntFromHex($[1]+$[1]),g:parseIntFromHex($[2]+$[2]),b:parseIntFromHex($[3]+$[3]),format:r?"name":"hex"}:!1)))))))))}function isValidCSSUnit(t){return!!matchers.CSS_UNIT.exec(String(t))}var TinyColor=function(){function t(r,$){r===void 0&&(r=""),$===void 0&&($={});var V;if(r instanceof t)return r;typeof r=="number"&&(r=numberInputToObject(r)),this.originalInput=r;var oe=inputToRGB(r);this.originalInput=r,this.r=oe.r,this.g=oe.g,this.b=oe.b,this.a=oe.a,this.roundA=Math.round(100*this.a)/100,this.format=(V=$.format)!==null&&V!==void 0?V:oe.format,this.gradientType=$.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=oe.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var r=this.toRgb();return(r.r*299+r.g*587+r.b*114)/1e3},t.prototype.getLuminance=function(){var r=this.toRgb(),$,V,oe,ie=r.r/255,le=r.g/255,ue=r.b/255;return ie<=.03928?$=ie/12.92:$=Math.pow((ie+.055)/1.055,2.4),le<=.03928?V=le/12.92:V=Math.pow((le+.055)/1.055,2.4),ue<=.03928?oe=ue/12.92:oe=Math.pow((ue+.055)/1.055,2.4),.2126*$+.7152*V+.0722*oe},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(r){return this.a=boundAlpha(r),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var r=this.toHsl().s;return r===0},t.prototype.toHsv=function(){var r=rgbToHsv(this.r,this.g,this.b);return{h:r.h*360,s:r.s,v:r.v,a:this.a}},t.prototype.toHsvString=function(){var r=rgbToHsv(this.r,this.g,this.b),$=Math.round(r.h*360),V=Math.round(r.s*100),oe=Math.round(r.v*100);return this.a===1?"hsv(".concat($,", ").concat(V,"%, ").concat(oe,"%)"):"hsva(".concat($,", ").concat(V,"%, ").concat(oe,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var r=rgbToHsl(this.r,this.g,this.b);return{h:r.h*360,s:r.s,l:r.l,a:this.a}},t.prototype.toHslString=function(){var r=rgbToHsl(this.r,this.g,this.b),$=Math.round(r.h*360),V=Math.round(r.s*100),oe=Math.round(r.l*100);return this.a===1?"hsl(".concat($,", ").concat(V,"%, ").concat(oe,"%)"):"hsla(".concat($,", ").concat(V,"%, ").concat(oe,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(r){return r===void 0&&(r=!1),rgbToHex(this.r,this.g,this.b,r)},t.prototype.toHexString=function(r){return r===void 0&&(r=!1),"#"+this.toHex(r)},t.prototype.toHex8=function(r){return r===void 0&&(r=!1),rgbaToHex(this.r,this.g,this.b,this.a,r)},t.prototype.toHex8String=function(r){return r===void 0&&(r=!1),"#"+this.toHex8(r)},t.prototype.toHexShortString=function(r){return r===void 0&&(r=!1),this.a===1?this.toHexString(r):this.toHex8String(r)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var r=Math.round(this.r),$=Math.round(this.g),V=Math.round(this.b);return this.a===1?"rgb(".concat(r,", ").concat($,", ").concat(V,")"):"rgba(".concat(r,", ").concat($,", ").concat(V,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var r=function($){return"".concat(Math.round(bound01$1($,255)*100),"%")};return{r:r(this.r),g:r(this.g),b:r(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var r=function($){return Math.round(bound01$1($,255)*100)};return this.a===1?"rgb(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%)"):"rgba(".concat(r(this.r),"%, ").concat(r(this.g),"%, ").concat(r(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var r="#"+rgbToHex(this.r,this.g,this.b,!1),$=0,V=Object.entries(names);$=0,ie=!$&&oe&&(r.startsWith("hex")||r==="name");return ie?r==="name"&&this.a===0?this.toName():this.toRgbString():(r==="rgb"&&(V=this.toRgbString()),r==="prgb"&&(V=this.toPercentageRgbString()),(r==="hex"||r==="hex6")&&(V=this.toHexString()),r==="hex3"&&(V=this.toHexString(!0)),r==="hex4"&&(V=this.toHex8String(!0)),r==="hex8"&&(V=this.toHex8String()),r==="name"&&(V=this.toName()),r==="hsl"&&(V=this.toHslString()),r==="hsv"&&(V=this.toHsvString()),V||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(r){r===void 0&&(r=10);var $=this.toHsl();return $.l+=r/100,$.l=clamp01($.l),new t($)},t.prototype.brighten=function(r){r===void 0&&(r=10);var $=this.toRgb();return $.r=Math.max(0,Math.min(255,$.r-Math.round(255*-(r/100)))),$.g=Math.max(0,Math.min(255,$.g-Math.round(255*-(r/100)))),$.b=Math.max(0,Math.min(255,$.b-Math.round(255*-(r/100)))),new t($)},t.prototype.darken=function(r){r===void 0&&(r=10);var $=this.toHsl();return $.l-=r/100,$.l=clamp01($.l),new t($)},t.prototype.tint=function(r){return r===void 0&&(r=10),this.mix("white",r)},t.prototype.shade=function(r){return r===void 0&&(r=10),this.mix("black",r)},t.prototype.desaturate=function(r){r===void 0&&(r=10);var $=this.toHsl();return $.s-=r/100,$.s=clamp01($.s),new t($)},t.prototype.saturate=function(r){r===void 0&&(r=10);var $=this.toHsl();return $.s+=r/100,$.s=clamp01($.s),new t($)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(r){var $=this.toHsl(),V=($.h+r)%360;return $.h=V<0?360+V:V,new t($)},t.prototype.mix=function(r,$){$===void 0&&($=50);var V=this.toRgb(),oe=new t(r).toRgb(),ie=$/100,le={r:(oe.r-V.r)*ie+V.r,g:(oe.g-V.g)*ie+V.g,b:(oe.b-V.b)*ie+V.b,a:(oe.a-V.a)*ie+V.a};return new t(le)},t.prototype.analogous=function(r,$){r===void 0&&(r=6),$===void 0&&($=30);var V=this.toHsl(),oe=360/$,ie=[this];for(V.h=(V.h-(oe*r>>1)+720)%360;--r;)V.h=(V.h+oe)%360,ie.push(new t(V));return ie},t.prototype.complement=function(){var r=this.toHsl();return r.h=(r.h+180)%360,new t(r)},t.prototype.monochromatic=function(r){r===void 0&&(r=6);for(var $=this.toHsv(),V=$.h,oe=$.s,ie=$.v,le=[],ue=1/r;r--;)le.push(new t({h:V,s:oe,v:ie})),ie=(ie+ue)%1;return le},t.prototype.splitcomplement=function(){var r=this.toHsl(),$=r.h;return[this,new t({h:($+72)%360,s:r.s,l:r.l}),new t({h:($+216)%360,s:r.s,l:r.l})]},t.prototype.onBackground=function(r){var $=this.toRgb(),V=new t(r).toRgb(),oe=$.a+V.a*(1-$.a);return new t({r:($.r*$.a+V.r*V.a*(1-$.a))/oe,g:($.g*$.a+V.g*V.a*(1-$.a))/oe,b:($.b*$.a+V.b*V.a*(1-$.a))/oe,a:oe})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(r){for(var $=this.toHsl(),V=$.h,oe=[this],ie=360/r,le=1;le{let V={};const oe=t.color;if(oe){const ie=new TinyColor(oe),le=t.dark?ie.tint(20).toString():darken(ie,20);if(t.plain)V=$.cssVarBlock({"bg-color":t.dark?darken(ie,90):ie.tint(90).toString(),"text-color":oe,"border-color":t.dark?darken(ie,50):ie.tint(50).toString(),"hover-text-color":`var(${$.cssVarName("color-white")})`,"hover-bg-color":oe,"hover-border-color":oe,"active-bg-color":le,"active-text-color":`var(${$.cssVarName("color-white")})`,"active-border-color":le}),r.value&&(V[$.cssVarBlockName("disabled-bg-color")]=t.dark?darken(ie,90):ie.tint(90).toString(),V[$.cssVarBlockName("disabled-text-color")]=t.dark?darken(ie,50):ie.tint(50).toString(),V[$.cssVarBlockName("disabled-border-color")]=t.dark?darken(ie,80):ie.tint(80).toString());else{const ue=t.dark?darken(ie,30):ie.tint(30).toString(),de=ie.isDark()?`var(${$.cssVarName("color-white")})`:`var(${$.cssVarName("color-black")})`;if(V=$.cssVarBlock({"bg-color":oe,"text-color":de,"border-color":oe,"hover-bg-color":ue,"hover-text-color":de,"hover-border-color":ue,"active-bg-color":le,"active-border-color":le}),r.value){const pe=t.dark?darken(ie,50):ie.tint(50).toString();V[$.cssVarBlockName("disabled-bg-color")]=pe,V[$.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${$.cssVarName("color-white")})`,V[$.cssVarBlockName("disabled-border-color")]=pe}}}return V})}const __default__$1i=defineComponent({name:"ElButton"}),_sfc_main$1_=defineComponent({...__default__$1i,props:buttonProps,emits:buttonEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useButtonCustomStyle(V),ie=useNamespace("button"),{_ref:le,_size:ue,_type:de,_disabled:pe,_props:he,shouldAddSpace:_e,handleClick:$e}=useButton(V,$);return r({ref:le,size:ue,type:de,disabled:pe,shouldAddSpace:_e}),(Ie,Ve)=>(openBlock(),createBlock(resolveDynamicComponent(Ie.tag),mergeProps({ref_key:"_ref",ref:le},unref(he),{class:[unref(ie).b(),unref(ie).m(unref(de)),unref(ie).m(unref(ue)),unref(ie).is("disabled",unref(pe)),unref(ie).is("loading",Ie.loading),unref(ie).is("plain",Ie.plain),unref(ie).is("round",Ie.round),unref(ie).is("circle",Ie.circle),unref(ie).is("text",Ie.text),unref(ie).is("link",Ie.link),unref(ie).is("has-bg",Ie.bg)],style:unref(oe),onClick:unref($e)}),{default:withCtx(()=>[Ie.loading?(openBlock(),createElementBlock(Fragment,{key:0},[Ie.$slots.loading?renderSlot(Ie.$slots,"loading",{key:0}):(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(ie).is("loading"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.loadingIcon)))]),_:1},8,["class"]))],64)):Ie.icon||Ie.$slots.icon?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[Ie.icon?(openBlock(),createBlock(resolveDynamicComponent(Ie.icon),{key:0})):renderSlot(Ie.$slots,"icon",{key:1})]),_:3})):createCommentVNode("v-if",!0),Ie.$slots.default?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass({[unref(ie).em("text","expand")]:unref(_e)})},[renderSlot(Ie.$slots,"default")],2)):createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Button=_export_sfc$1(_sfc_main$1_,[["__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$1Z=defineComponent({...__default__$1h,props:buttonGroupProps,setup(t){const r=t;provide(buttonGroupContextKey,reactive({size:toRef(r,"size"),type:toRef(r,"type")}));const $=useNamespace("button");return(V,oe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(`${unref($).b("group")}`)},[renderSlot(V.$slots,"default")],2))}});var ButtonGroup=_export_sfc$1(_sfc_main$1Z,[["__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(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function getAugmentedNamespace(t){if(t.__esModule)return t;var r=t.default;if(typeof r=="function"){var $=function V(){return this instanceof V?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};$.prototype=r.prototype}else $={};return Object.defineProperty($,"__esModule",{value:!0}),Object.keys(t).forEach(function(V){var oe=Object.getOwnPropertyDescriptor(t,V);Object.defineProperty($,V,oe.get?oe:{enumerable:!0,get:function(){return t[V]}})}),$}var dayjs_min={exports:{}};(function(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){var $=1e3,V=6e4,oe=36e5,ie="millisecond",le="second",ue="minute",de="hour",pe="day",he="week",_e="month",$e="quarter",Ie="year",Ve="date",Fe="Invalid Date",Ue=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,qe=/\[([^\]]+)]|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,Et={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(Mn){var Vn=["th","st","nd","rd"],Bn=Mn%100;return"["+Mn+(Vn[(Bn-20)%10]||Vn[Bn]||Vn[0])+"]"}},Lt=function(Mn,Vn,Bn){var Dn=String(Mn);return!Dn||Dn.length>=Vn?Mn:""+Array(Vn+1-Dn.length).join(Bn)+Mn},hn={s:Lt,z:function(Mn){var Vn=-Mn.utcOffset(),Bn=Math.abs(Vn),Dn=Math.floor(Bn/60),Ln=Bn%60;return(Vn<=0?"+":"-")+Lt(Dn,2,"0")+":"+Lt(Ln,2,"0")},m:function Mn(Vn,Bn){if(Vn.date()1)return Mn(Fn[0])}else{var Un=Vn.name;bn[Un]=Vn,Ln=Un}return!Dn&&Ln&&(Cn=Ln),Ln||!Dn&&Cn},$n=function(Mn,Vn){if(En(Mn))return Mn.clone();var Bn=typeof Vn=="object"?Vn:{};return Bn.date=Mn,Bn.args=arguments,new xn(Bn)},Tn=hn;Tn.l=wn,Tn.i=En,Tn.w=function(Mn,Vn){return $n(Mn,{locale:Vn.$L,utc:Vn.$u,x:Vn.$x,$offset:Vn.$offset})};var xn=function(){function Mn(Bn){this.$L=wn(Bn.locale,null,!0),this.parse(Bn),this.$x=this.$x||Bn.x||{},this[Sn]=!0}var Vn=Mn.prototype;return Vn.parse=function(Bn){this.$d=function(Dn){var Ln=Dn.date,Pn=Dn.utc;if(Ln===null)return new Date(NaN);if(Tn.u(Ln))return new Date;if(Ln instanceof Date)return new Date(Ln);if(typeof Ln=="string"&&!/Z$/i.test(Ln)){var Fn=Ln.match(Ue);if(Fn){var Un=Fn[2]-1||0,Wn=(Fn[7]||"0").substring(0,3);return Pn?new Date(Date.UTC(Fn[1],Un,Fn[3]||1,Fn[4]||0,Fn[5]||0,Fn[6]||0,Wn)):new Date(Fn[1],Un,Fn[3]||1,Fn[4]||0,Fn[5]||0,Fn[6]||0,Wn)}}return new Date(Ln)}(Bn),this.init()},Vn.init=function(){var Bn=this.$d;this.$y=Bn.getFullYear(),this.$M=Bn.getMonth(),this.$D=Bn.getDate(),this.$W=Bn.getDay(),this.$H=Bn.getHours(),this.$m=Bn.getMinutes(),this.$s=Bn.getSeconds(),this.$ms=Bn.getMilliseconds()},Vn.$utils=function(){return Tn},Vn.isValid=function(){return this.$d.toString()!==Fe},Vn.isSame=function(Bn,Dn){var Ln=$n(Bn);return this.startOf(Dn)<=Ln&&Ln<=this.endOf(Dn)},Vn.isAfter=function(Bn,Dn){return $n(Bn)68?1900:2e3)},pe=function(Fe){return function(Ue){this[Fe]=+Ue}},he=[/[+-]\d\d:?(\d\d)?|Z/,function(Fe){(this.zone||(this.zone={})).offset=function(Ue){if(!Ue||Ue==="Z")return 0;var qe=Ue.match(/([+-]|\d\d)/g),Et=60*qe[1]+(+qe[2]||0);return Et===0?0:qe[0]==="+"?-Et:Et}(Fe)}],_e=function(Fe){var Ue=ue[Fe];return Ue&&(Ue.indexOf?Ue:Ue.s.concat(Ue.f))},$e=function(Fe,Ue){var qe,Et=ue.meridiem;if(Et){for(var Lt=1;Lt<=24;Lt+=1)if(Fe.indexOf(Et(Lt,0,Ue))>-1){qe=Lt>12;break}}else qe=Fe===(Ue?"pm":"PM");return qe},Ie={A:[le,function(Fe){this.afternoon=$e(Fe,!1)}],a:[le,function(Fe){this.afternoon=$e(Fe,!0)}],S:[/\d/,function(Fe){this.milliseconds=100*+Fe}],SS:[oe,function(Fe){this.milliseconds=10*+Fe}],SSS:[/\d{3}/,function(Fe){this.milliseconds=+Fe}],s:[ie,pe("seconds")],ss:[ie,pe("seconds")],m:[ie,pe("minutes")],mm:[ie,pe("minutes")],H:[ie,pe("hours")],h:[ie,pe("hours")],HH:[ie,pe("hours")],hh:[ie,pe("hours")],D:[ie,pe("day")],DD:[oe,pe("day")],Do:[le,function(Fe){var Ue=ue.ordinal,qe=Fe.match(/\d+/);if(this.day=qe[0],Ue)for(var Et=1;Et<=31;Et+=1)Ue(Et).replace(/\[|\]/g,"")===Fe&&(this.day=Et)}],M:[ie,pe("month")],MM:[oe,pe("month")],MMM:[le,function(Fe){var Ue=_e("months"),qe=(_e("monthsShort")||Ue.map(function(Et){return Et.slice(0,3)})).indexOf(Fe)+1;if(qe<1)throw new Error;this.month=qe%12||qe}],MMMM:[le,function(Fe){var Ue=_e("months").indexOf(Fe)+1;if(Ue<1)throw new Error;this.month=Ue%12||Ue}],Y:[/[+-]?\d+/,pe("year")],YY:[oe,function(Fe){this.year=de(Fe)}],YYYY:[/\d{4}/,pe("year")],Z:he,ZZ:he};function Ve(Fe){var Ue,qe;Ue=Fe,qe=ue&&ue.formats;for(var Et=(Fe=Ue.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(wn,$n,Tn){var xn=Tn&&Tn.toUpperCase();return $n||qe[Tn]||$[Tn]||qe[xn].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(An,Mn,Vn){return Mn||Vn.slice(1)})})).match(V),Lt=Et.length,hn=0;hn-1)return new Date((Dn==="X"?1e3:1)*Bn);var Pn=Ve(Dn)(Bn),Fn=Pn.year,Un=Pn.month,Wn=Pn.day,Zn=Pn.hours,or=Pn.minutes,br=Pn.seconds,Qn=Pn.milliseconds,Gn=Pn.zone,Yn=new Date,er=Wn||(Fn||Un?1:Yn.getDate()),lr=Fn||Yn.getFullYear(),sr=0;Fn&&!Un||(sr=Un>0?Un-1:Yn.getMonth());var zn=Zn||0,Kn=or||0,Jn=br||0,cr=Qn||0;return Gn?new Date(Date.UTC(lr,sr,er,zn,Kn,Jn,cr+60*Gn.offset*1e3)):Ln?new Date(Date.UTC(lr,sr,er,zn,Kn,Jn,cr)):new Date(lr,sr,er,zn,Kn,Jn,cr)}catch{return new Date("")}}(Cn,En,bn),this.init(),xn&&xn!==!0&&(this.$L=this.locale(xn).$L),Tn&&Cn!=this.format(En)&&(this.$d=new Date("")),ue={}}else if(En instanceof Array)for(var An=En.length,Mn=1;Mn<=An;Mn+=1){Sn[1]=En[Mn-1];var Vn=qe.apply(this,Sn);if(Vn.isValid()){this.$d=Vn.$d,this.$L=Vn.$L,this.init();break}Mn===An&&(this.$d=new Date(""))}else Lt.call(this,hn)}}})})(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=(t,r)=>[t>0?t-1:void 0,t,tArray.from(Array.from({length:t}).keys()),extractDateFormat=t=>t.replace(/\W?m{1,2}|\W?ZZ/g,"").replace(/\W?h{1,2}|\W?s{1,3}|\W?a/gi,"").trim(),extractTimeFormat=t=>t.replace(/\W?D{1,2}|\W?Do|\W?d{1,4}|\W?M{1,4}|\W?Y{2,4}/g,"").trim(),dateEquals=function(t,r){const $=isDate$3(t),V=isDate$3(r);return $&&V?t.getTime()===r.getTime():!$&&!V?t===r:!1},valueEquals=function(t,r){const $=isArray$c(t),V=isArray$c(r);return $&&V?t.length!==r.length?!1:t.every((oe,ie)=>dateEquals(oe,r[ie])):!$&&!V?dateEquals(t,r):!1},parseDate$1=function(t,r,$){const V=isEmpty(r)||r==="x"?dayjs(t).locale($):dayjs(t,r).locale($);return V.isValid()?V:void 0},formatter=function(t,r,$){return isEmpty(r)?t:r==="x"?+t:dayjs(t).locale($).format(r)},makeList=(t,r)=>{var $;const V=[],oe=r==null?void 0:r();for(let ie=0;ie({})},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$G=["id","name","placeholder","value","disabled","readonly"],__default__$1g=defineComponent({name:"Picker"}),_sfc_main$1Y=defineComponent({...__default__$1g,props:timePickerDefaultProps,emits:["update:modelValue","change","focus","blur","calendar-change","panel-change","visible-change","keydown"],setup(t,{expose:r,emit:$}){const V=t,oe=useAttrs$1(),{lang:ie}=useLocale(),le=useNamespace("date"),ue=useNamespace("input"),de=useNamespace("range"),{form:pe,formItem:he}=useFormItem(),_e=inject("ElPopperOptions",{}),$e=ref(),Ie=ref(),Ve=ref(!1),Fe=ref(!1),Ue=ref(null);let qe=!1,Et=!1;const Lt=computed(()=>[le.b("editor"),le.bm("editor",V.type),ue.e("wrapper"),le.is("disabled",Wn.value),le.is("active",Ve.value),de.b("editor"),ur?de.bm("editor",ur.value):"",oe.class]),hn=computed(()=>[ue.e("icon"),de.e("close-icon"),er.value?"":de.e("close-icon--hidden")]);watch(Ve,qn=>{qn?nextTick(()=>{qn&&(Ue.value=V.modelValue)}):(mr.value=null,nextTick(()=>{Cn(V.modelValue)}))});const Cn=(qn,kr)=>{(kr||!valueEquals(qn,Ue.value))&&($("change",qn),V.validateEvent&&(he==null||he.validate("change").catch(Dr=>void 0)))},bn=qn=>{if(!valueEquals(V.modelValue,qn)){let kr;isArray$c(qn)?kr=qn.map(Dr=>formatter(Dr,V.valueFormat,ie.value)):qn&&(kr=formatter(qn,V.valueFormat,ie.value)),$("update:modelValue",qn&&kr,ie.value)}},Sn=qn=>{$("keydown",qn)},En=computed(()=>{if(Ie.value){const qn=_r.value?Ie.value:Ie.value.$el;return Array.from(qn.querySelectorAll("input"))}return[]}),wn=(qn,kr,Dr)=>{const Hr=En.value;Hr.length&&(!Dr||Dr==="min"?(Hr[0].setSelectionRange(qn,kr),Hr[0].focus()):Dr==="max"&&(Hr[1].setSelectionRange(qn,kr),Hr[1].focus()))},$n=()=>{Ln(!0,!0),nextTick(()=>{Et=!1})},Tn=(qn="",kr=!1)=>{kr||(Et=!0),Ve.value=kr;let Dr;isArray$c(qn)?Dr=qn.map(Hr=>Hr.toDate()):Dr=qn&&qn.toDate(),mr.value=null,bn(Dr)},xn=()=>{Fe.value=!0},An=()=>{$("visible-change",!0)},Mn=qn=>{(qn==null?void 0:qn.key)===EVENT_CODE.esc&&Ln(!0,!0)},Vn=()=>{Fe.value=!1,Ve.value=!1,Et=!1,$("visible-change",!1)},Bn=()=>{Ve.value=!0},Dn=()=>{Ve.value=!1},Ln=(qn=!0,kr=!1)=>{Et=kr;const[Dr,Hr]=unref(En);let Gr=Dr;!qn&&_r.value&&(Gr=Hr),Gr&&Gr.focus()},Pn=qn=>{V.readonly||Wn.value||Ve.value||Et||(Ve.value=!0,$("focus",qn))};let Fn;const Un=qn=>{const kr=async()=>{setTimeout(()=>{var Dr;Fn===kr&&(!((Dr=$e.value)!=null&&Dr.isFocusInsideContent()&&!qe)&&En.value.filter(Hr=>Hr.contains(document.activeElement)).length===0&&(Er(),Ve.value=!1,$("blur",qn),V.validateEvent&&(he==null||he.validate("blur").catch(Hr=>void 0))),qe=!1)},0)};Fn=kr,kr()},Wn=computed(()=>V.disabled||(pe==null?void 0:pe.disabled)),Zn=computed(()=>{let qn;if(sr.value?dr.value.getDefaultValue&&(qn=dr.value.getDefaultValue()):isArray$c(V.modelValue)?qn=V.modelValue.map(kr=>parseDate$1(kr,V.valueFormat,ie.value)):qn=parseDate$1(V.modelValue,V.valueFormat,ie.value),dr.value.getRangeAvailableTime){const kr=dr.value.getRangeAvailableTime(qn);isEqual$1(kr,qn)||(qn=kr,bn(isArray$c(qn)?qn.map(Dr=>Dr.toDate()):qn.toDate()))}return isArray$c(qn)&&qn.some(kr=>!kr)&&(qn=[]),qn}),or=computed(()=>{if(!dr.value.panelReady)return"";const qn=nr(Zn.value);return isArray$c(mr.value)?[mr.value[0]||qn&&qn[0]||"",mr.value[1]||qn&&qn[1]||""]:mr.value!==null?mr.value:!Qn.value&&sr.value||!Ve.value&&sr.value?"":qn?Gn.value?qn.join(", "):qn:""}),br=computed(()=>V.type.includes("time")),Qn=computed(()=>V.type.startsWith("time")),Gn=computed(()=>V.type==="dates"),Yn=computed(()=>V.prefixIcon||(br.value?clock_default:calendar_default)),er=ref(!1),lr=qn=>{V.readonly||Wn.value||er.value&&(qn.stopPropagation(),$n(),bn(null),Cn(null,!0),er.value=!1,Ve.value=!1,dr.value.handleClear&&dr.value.handleClear())},sr=computed(()=>{const{modelValue:qn}=V;return!qn||isArray$c(qn)&&!qn.filter(Boolean).length}),zn=async qn=>{var kr;V.readonly||Wn.value||(((kr=qn.target)==null?void 0:kr.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(Ve.value=!0)},Kn=()=>{V.readonly||Wn.value||!sr.value&&V.clearable&&(er.value=!0)},Jn=()=>{er.value=!1},cr=qn=>{var kr;V.readonly||Wn.value||(((kr=qn.touches[0].target)==null?void 0:kr.tagName)!=="INPUT"||En.value.includes(document.activeElement))&&(Ve.value=!0)},_r=computed(()=>V.type.includes("range")),ur=useFormSize(),wr=computed(()=>{var qn,kr;return(kr=(qn=unref($e))==null?void 0:qn.popperRef)==null?void 0:kr.contentRef}),Cr=computed(()=>{var qn;return unref(_r)?unref(Ie):(qn=unref(Ie))==null?void 0:qn.$el});onClickOutside$1(Cr,qn=>{const kr=unref(wr),Dr=unref(Cr);kr&&(qn.target===kr||qn.composedPath().includes(kr))||qn.target===Dr||qn.composedPath().includes(Dr)||(Ve.value=!1)});const mr=ref(null),Er=()=>{if(mr.value){const qn=Tr(or.value);qn&&pr(qn)&&(bn(isArray$c(qn)?qn.map(kr=>kr.toDate()):qn.toDate()),mr.value=null)}mr.value===""&&(bn(null),Cn(null),mr.value=null)},Tr=qn=>qn?dr.value.parseUserInput(qn):null,nr=qn=>qn?dr.value.formatToString(qn):null,pr=qn=>dr.value.isValidValue(qn),gr=async qn=>{if(V.readonly||Wn.value)return;const{code:kr}=qn;if(Sn(qn),kr===EVENT_CODE.esc){Ve.value===!0&&(Ve.value=!1,qn.preventDefault(),qn.stopPropagation());return}if(kr===EVENT_CODE.down&&(dr.value.handleFocusPicker&&(qn.preventDefault(),qn.stopPropagation()),Ve.value===!1&&(Ve.value=!0,await nextTick()),dr.value.handleFocusPicker)){dr.value.handleFocusPicker();return}if(kr===EVENT_CODE.tab){qe=!0;return}if(kr===EVENT_CODE.enter||kr===EVENT_CODE.numpadEnter){(mr.value===null||mr.value===""||pr(Tr(or.value)))&&(Er(),Ve.value=!1),qn.stopPropagation();return}if(mr.value){qn.stopPropagation();return}dr.value.handleKeydownInput&&dr.value.handleKeydownInput(qn)},$r=qn=>{mr.value=qn,Ve.value||(Ve.value=!0)},Rr=qn=>{const kr=qn.target;mr.value?mr.value=[kr.value,mr.value[1]]:mr.value=[kr.value,null]},Lr=qn=>{const kr=qn.target;mr.value?mr.value=[mr.value[0],kr.value]:mr.value=[null,kr.value]},Vr=()=>{var qn;const kr=mr.value,Dr=Tr(kr&&kr[0]),Hr=unref(Zn);if(Dr&&Dr.isValid()){mr.value=[nr(Dr),((qn=or.value)==null?void 0:qn[1])||null];const Gr=[Dr,Hr&&(Hr[1]||null)];pr(Gr)&&(bn(Gr),mr.value=null)}},Nr=()=>{var qn;const kr=unref(mr),Dr=Tr(kr&&kr[1]),Hr=unref(Zn);if(Dr&&Dr.isValid()){mr.value=[((qn=unref(or))==null?void 0:qn[0])||null,nr(Dr)];const Gr=[Hr&&Hr[0],Dr];pr(Gr)&&(bn(Gr),mr.value=null)}},dr=ref({}),ar=qn=>{dr.value[qn[0]]=qn[1],dr.value.panelReady=!0},tr=qn=>{$("calendar-change",qn)},Sr=(qn,kr,Dr)=>{$("panel-change",qn,kr,Dr)};return provide("EP_PICKER_BASE",{props:V}),r({focus:Ln,handleFocusInput:Pn,handleBlurInput:Un,handleOpen:Bn,handleClose:Dn,onPick:Tn}),(qn,kr)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"refPopper",ref:$e,visible:Ve.value,effect:"light",pure:"",trigger:"click"},qn.$attrs,{role:"dialog",teleported:"",transition:`${unref(le).namespace.value}-zoom-in-top`,"popper-class":[`${unref(le).namespace.value}-picker__popper`,qn.popperClass],"popper-options":unref(_e),"fallback-placements":["bottom","top","right","left"],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"hide-after":0,persistent:"",onBeforeShow:xn,onShow:An,onHide:Vn}),{default:withCtx(()=>[unref(_r)?(openBlock(),createElementBlock("div",{key:1,ref_key:"inputRef",ref:Ie,class:normalizeClass(unref(Lt)),style:normalizeStyle$1(qn.$attrs.style),onClick:Pn,onMouseenter:Kn,onMouseleave:Jn,onTouchstart:cr,onKeydown:gr},[unref(Yn)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(ue).e("icon"),unref(de).e("icon")]),onMousedown:withModifiers(zn,["prevent"]),onTouchstart:cr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Yn))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0),createBaseVNode("input",{id:qn.id&&qn.id[0],autocomplete:"off",name:qn.name&&qn.name[0],placeholder:qn.startPlaceholder,value:unref(or)&&unref(or)[0],disabled:unref(Wn),readonly:!qn.editable||qn.readonly,class:normalizeClass(unref(de).b("input")),onMousedown:zn,onInput:Rr,onChange:Vr,onFocus:Pn,onBlur:Un},null,42,_hoisted_1$$),renderSlot(qn.$slots,"range-separator",{},()=>[createBaseVNode("span",{class:normalizeClass(unref(de).b("separator"))},toDisplayString$1(qn.rangeSeparator),3)]),createBaseVNode("input",{id:qn.id&&qn.id[1],autocomplete:"off",name:qn.name&&qn.name[1],placeholder:qn.endPlaceholder,value:unref(or)&&unref(or)[1],disabled:unref(Wn),readonly:!qn.editable||qn.readonly,class:normalizeClass(unref(de).b("input")),onMousedown:zn,onFocus:Pn,onBlur:Un,onInput:Lr,onChange:Nr},null,42,_hoisted_2$G),qn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass(unref(hn)),onClick:lr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(qn.clearIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],38)):(openBlock(),createBlock(unref(ElInput),{key:0,id:qn.id,ref_key:"inputRef",ref:Ie,"container-role":"combobox","model-value":unref(or),name:qn.name,size:unref(ur),disabled:unref(Wn),placeholder:qn.placeholder,class:normalizeClass([unref(le).b("editor"),unref(le).bm("editor",qn.type),qn.$attrs.class]),style:normalizeStyle$1(qn.$attrs.style),readonly:!qn.editable||qn.readonly||unref(Gn)||qn.type==="week",label:qn.label,tabindex:qn.tabindex,"validate-event":!1,onInput:$r,onFocus:Pn,onBlur:Un,onKeydown:gr,onChange:Er,onMousedown:zn,onMouseenter:Kn,onMouseleave:Jn,onTouchstart:cr,onClick:kr[0]||(kr[0]=withModifiers(()=>{},["stop"]))},{prefix:withCtx(()=>[unref(Yn)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).e("icon")),onMousedown:withModifiers(zn,["prevent"]),onTouchstart:cr},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Yn))))]),_:1},8,["class","onMousedown"])):createCommentVNode("v-if",!0)]),suffix:withCtx(()=>[er.value&&qn.clearIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(`${unref(ue).e("icon")} clear-icon`),onClick:withModifiers(lr,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(qn.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(qn.$slots,"default",{visible:Ve.value,actualVisible:Fe.value,parsedValue:unref(Zn),format:qn.format,unlinkPanels:qn.unlinkPanels,type:qn.type,defaultValue:qn.defaultValue,onPick:Tn,onSelectRange:wn,onSetPickerOption:ar,onCalendarChange:tr,onPanelChange:Sr,onKeydown:Mn,onMousedown:kr[1]||(kr[1]=withModifiers(()=>{},["stop"]))})]),_:3},16,["visible","transition","popper-class","popper-options"]))}});var CommonPicker=_export_sfc$1(_sfc_main$1Y,[["__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:t,getAvailableMinutes:r,getAvailableSeconds:$})=>{const V=(le,ue,de,pe)=>{const he={hour:t,minute:r,second:$};let _e=le;return["hour","minute","second"].forEach($e=>{if(he[$e]){let Ie;const Ve=he[$e];switch($e){case"minute":{Ie=Ve(_e.hour(),ue,pe);break}case"second":{Ie=Ve(_e.hour(),_e.minute(),ue,pe);break}default:{Ie=Ve(ue,pe);break}}if(Ie!=null&&Ie.length&&!Ie.includes(_e[$e]())){const Fe=de?0:Ie.length-1;_e=_e[$e](Ie[Fe])}}}),_e},oe={};return{timePickerOptions:oe,getAvailableTime:V,onSetOption:([le,ue])=>{oe[le]=ue}}},makeAvailableArr=t=>{const r=(V,oe)=>V||oe,$=V=>V!==!0;return t.map(r).filter($)},getTimeLists=(t,r,$)=>({getHoursList:(le,ue)=>makeList(24,t&&(()=>t==null?void 0:t(le,ue))),getMinutesList:(le,ue,de)=>makeList(60,r&&(()=>r==null?void 0:r(le,ue,de))),getSecondsList:(le,ue,de,pe)=>makeList(60,$&&(()=>$==null?void 0:$(le,ue,de,pe)))}),buildAvailableTimeSlotGetter=(t,r,$)=>{const{getHoursList:V,getMinutesList:oe,getSecondsList:ie}=getTimeLists(t,r,$);return{getAvailableHours:(pe,he)=>makeAvailableArr(V(pe,he)),getAvailableMinutes:(pe,he,_e)=>makeAvailableArr(oe(pe,he,_e)),getAvailableSeconds:(pe,he,_e,$e)=>makeAvailableArr(ie(pe,he,_e,$e))}},useOldValue=t=>{const r=ref(t.parsedValue);return watch(()=>t.visible,$=>{$||(r.value=t.parsedValue)}),r},nodeList=new Map;let startClick;isClient$1&&(document.addEventListener("mousedown",t=>startClick=t),document.addEventListener("mouseup",t=>{for(const r of nodeList.values())for(const{documentHandler:$}of r)$(t,startClick)}));function createDocumentHandler(t,r){let $=[];return Array.isArray(r.arg)?$=r.arg:isElement$2(r.arg)&&$.push(r.arg),function(V,oe){const ie=r.instance.popperRef,le=V.target,ue=oe==null?void 0:oe.target,de=!r||!r.instance,pe=!le||!ue,he=t.contains(le)||t.contains(ue),_e=t===le,$e=$.length&&$.some(Ve=>Ve==null?void 0:Ve.contains(le))||$.length&&$.includes(ue),Ie=ie&&(ie.contains(le)||ie.contains(ue));de||pe||he||_e||$e||Ie||r.value(V,oe)}}const ClickOutside={beforeMount(t,r){nodeList.has(t)||nodeList.set(t,[]),nodeList.get(t).push({documentHandler:createDocumentHandler(t,r),bindingFn:r.value})},updated(t,r){nodeList.has(t)||nodeList.set(t,[]);const $=nodeList.get(t),V=$.findIndex(ie=>ie.bindingFn===r.oldValue),oe={documentHandler:createDocumentHandler(t,r),bindingFn:r.value};V>=0?$.splice(V,1,oe):$.push(oe)},unmounted(t){nodeList.delete(t)}},REPEAT_INTERVAL=100,REPEAT_DELAY=600,vRepeatClick={beforeMount(t,r){const $=r.value,{interval:V=REPEAT_INTERVAL,delay:oe=REPEAT_DELAY}=isFunction$5($)?{}:$;let ie,le;const ue=()=>isFunction$5($)?$():$.handler(),de=()=>{le&&(clearTimeout(le),le=void 0),ie&&(clearInterval(ie),ie=void 0)};t.addEventListener("mousedown",pe=>{pe.button===0&&(de(),ue(),document.addEventListener("mouseup",()=>de(),{once:!0}),le=setTimeout(()=>{ie=setInterval(()=>{ue()},V)},oe))})}},FOCUSABLE_CHILDREN="_trap-focus-children",FOCUS_STACK=[],FOCUS_HANDLER=t=>{if(FOCUS_STACK.length===0)return;const r=FOCUS_STACK[FOCUS_STACK.length-1][FOCUSABLE_CHILDREN];if(r.length>0&&t.code===EVENT_CODE.tab){if(r.length===1){t.preventDefault(),document.activeElement!==r[0]&&r[0].focus();return}const $=t.shiftKey,V=t.target===r[0],oe=t.target===r[r.length-1];V&&$&&(t.preventDefault(),r[r.length-1].focus()),oe&&!$&&(t.preventDefault(),r[0].focus())}},TrapFocus={beforeMount(t){t[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(t),FOCUS_STACK.push(t),FOCUS_STACK.length<=1&&document.addEventListener("keydown",FOCUS_HANDLER)},updated(t){nextTick(()=>{t[FOCUSABLE_CHILDREN]=obtainAllFocusableElements$1(t)})},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,F$1;function a$2(){if(!v){v=!0;var t=navigator.userAgent,r=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(t),$=/(Mac OS X)|(Windows)|(Linux)/.exec(t);if(x=/\b(iPhone|iP[ao]d)/.exec(t),E=/\b(iP[ao]d)/.exec(t),w=/Android/i.exec(t),M=/FBAN\/\w+;/i.exec(t),F$1=/Mobile/i.exec(t),D$2=!!/Win64/.exec(t),r){o=r[1]?parseFloat(r[1]):r[5]?parseFloat(r[5]):NaN,o&&document&&document.documentMode&&(o=document.documentMode);var V=/(?:Trident\/(\d+.\d+))/.exec(t);N$1=V?parseFloat(V[1])+4:o,f$1=r[2]?parseFloat(r[2]):NaN,s=r[3]?parseFloat(r[3]):NaN,u$1=r[4]?parseFloat(r[4]):NaN,u$1?(r=/(?:Chrome\/(\d+\.\d+))/.exec(t),d$1=r&&r[1]?parseFloat(r[1]):NaN):d$1=NaN}else o=f$1=s=d$1=u$1=NaN;if($){if($[1]){var oe=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(t);l=oe?parseFloat(oe[1].replace("_",".")):!0}else l=!1;p$1=!!$[2],m$3=!!$[3]}else l=p$1=m$3=!1}}var _$2={ie:function(){return a$2()||o},ieCompatibilityMode:function(){return a$2()||N$1>o},ie64:function(){return _$2.ie()&&D$2},firefox:function(){return a$2()||f$1},opera:function(){return a$2()||s},webkit:function(){return a$2()||u$1},safari:function(){return _$2.webkit()},chrome:function(){return a$2()||d$1},windows:function(){return a$2()||p$1},osx:function(){return a$2()||l},linux:function(){return a$2()||m$3},iphone:function(){return a$2()||x},mobile:function(){return a$2()||x||E||w||F$1},nativeApp:function(){return a$2()||M},android:function(){return a$2()||w},ipad:function(){return a$2()||E}},A$1=_$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(t,r){if(!h$1.canUseDOM||r&&!("addEventListener"in document))return!1;var $="on"+t,V=$ in document;if(!V){var oe=document.createElement("div");oe.setAttribute($,"return;"),V=typeof oe[$]=="function"}return!V&&X&&t==="wheel"&&(V=document.implementation.hasFeature("Events.wheel","3.0")),V}var b$1=S,O$1=10,I$2=40,P$2=800;function T(t){var r=0,$=0,V=0,oe=0;return"detail"in t&&($=t.detail),"wheelDelta"in t&&($=-t.wheelDelta/120),"wheelDeltaY"in t&&($=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(r=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(r=$,$=0),V=r*O$1,oe=$*O$1,"deltaY"in t&&(oe=t.deltaY),"deltaX"in t&&(V=t.deltaX),(V||oe)&&t.deltaMode&&(t.deltaMode==1?(V*=I$2,oe*=I$2):(V*=P$2,oe*=P$2)),V&&!r&&(r=V<1?-1:1),oe&&!$&&($=oe<1?-1:1),{spinX:r,spinY:$,pixelX:V,pixelY:oe}}T.getEventType=function(){return A$1.firefox()?"DOMMouseScroll":b$1("wheel")?"wheel":"mousewheel"};var Y$1=T;/** * 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(t,r){if(t&&t.addEventListener){const $=function(V){const oe=Y$1(V);r&&Reflect.apply(r,this,[V,oe])};t.addEventListener("wheel",$,{passive:!0})}},Mousewheel={beforeMount(t,r){mousewheel(t,r.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$_=["onClick"],_hoisted_2$F=["onMouseenter"],_sfc_main$1X=defineComponent({__name:"basic-time-spinner",props:basicTimeSpinnerProps,emits:["change","select-range","set-option"],setup(t,{emit:r}){const $=t,V=useNamespace("time"),{getHoursList:oe,getMinutesList:ie,getSecondsList:le}=getTimeLists($.disabledHours,$.disabledMinutes,$.disabledSeconds);let ue=!1;const de=ref(),pe=ref(),he=ref(),_e=ref(),$e={hours:pe,minutes:he,seconds:_e},Ie=computed(()=>$.showSeconds?timeUnits$2:timeUnits$2.slice(0,2)),Ve=computed(()=>{const{spinnerDate:Pn}=$,Fn=Pn.hour(),Un=Pn.minute(),Wn=Pn.second();return{hours:Fn,minutes:Un,seconds:Wn}}),Fe=computed(()=>{const{hours:Pn,minutes:Fn}=unref(Ve);return{hours:oe($.role),minutes:ie(Pn,$.role),seconds:le(Pn,Fn,$.role)}}),Ue=computed(()=>{const{hours:Pn,minutes:Fn,seconds:Un}=unref(Ve);return{hours:buildTimeList(Pn,23),minutes:buildTimeList(Fn,59),seconds:buildTimeList(Un,59)}}),qe=debounce(Pn=>{ue=!1,hn(Pn)},200),Et=Pn=>{if(!!!$.amPmMode)return"";const Un=$.amPmMode==="A";let Wn=Pn<12?" am":" pm";return Un&&(Wn=Wn.toUpperCase()),Wn},Lt=Pn=>{let Fn;switch(Pn){case"hours":Fn=[0,2];break;case"minutes":Fn=[3,5];break;case"seconds":Fn=[6,8];break}const[Un,Wn]=Fn;r("select-range",Un,Wn),de.value=Pn},hn=Pn=>{Sn(Pn,unref(Ve)[Pn])},Cn=()=>{hn("hours"),hn("minutes"),hn("seconds")},bn=Pn=>Pn.querySelector(`.${V.namespace.value}-scrollbar__wrap`),Sn=(Pn,Fn)=>{if($.arrowControl)return;const Un=unref($e[Pn]);Un&&Un.$el&&(bn(Un.$el).scrollTop=Math.max(0,Fn*En(Pn)))},En=Pn=>{const Fn=unref($e[Pn]),Un=Fn==null?void 0:Fn.$el.querySelector("li");return Un&&Number.parseFloat(getStyle$1(Un,"height"))||0},wn=()=>{Tn(1)},$n=()=>{Tn(-1)},Tn=Pn=>{de.value||Lt("hours");const Fn=de.value,Un=unref(Ve)[Fn],Wn=de.value==="hours"?24:60,Zn=xn(Fn,Un,Pn,Wn);An(Fn,Zn),Sn(Fn,Zn),nextTick(()=>Lt(Fn))},xn=(Pn,Fn,Un,Wn)=>{let Zn=(Fn+Un+Wn)%Wn;const or=unref(Fe)[Pn];for(;or[Zn]&&Zn!==Fn;)Zn=(Zn+Un+Wn)%Wn;return Zn},An=(Pn,Fn)=>{if(unref(Fe)[Pn][Fn])return;const{hours:Zn,minutes:or,seconds:br}=unref(Ve);let Qn;switch(Pn){case"hours":Qn=$.spinnerDate.hour(Fn).minute(or).second(br);break;case"minutes":Qn=$.spinnerDate.hour(Zn).minute(Fn).second(br);break;case"seconds":Qn=$.spinnerDate.hour(Zn).minute(or).second(Fn);break}r("change",Qn)},Mn=(Pn,{value:Fn,disabled:Un})=>{Un||(An(Pn,Fn),Lt(Pn),Sn(Pn,Fn))},Vn=Pn=>{ue=!0,qe(Pn);const Fn=Math.min(Math.round((bn(unref($e[Pn]).$el).scrollTop-(Bn(Pn)*.5-10)/En(Pn)+3)/En(Pn)),Pn==="hours"?23:59);An(Pn,Fn)},Bn=Pn=>unref($e[Pn]).$el.offsetHeight,Dn=()=>{const Pn=Fn=>{const Un=unref($e[Fn]);Un&&Un.$el&&(bn(Un.$el).onscroll=()=>{Vn(Fn)})};Pn("hours"),Pn("minutes"),Pn("seconds")};onMounted(()=>{nextTick(()=>{!$.arrowControl&&Dn(),Cn(),$.role==="start"&&Lt("hours")})});const Ln=(Pn,Fn)=>{$e[Fn].value=Pn};return r("set-option",[`${$.role}_scrollDown`,Tn]),r("set-option",[`${$.role}_emitSelectRange`,Lt]),watch(()=>$.spinnerDate,()=>{ue||Cn()}),(Pn,Fn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b("spinner"),{"has-seconds":Pn.showSeconds}])},[Pn.arrowControl?createCommentVNode("v-if",!0):(openBlock(!0),createElementBlock(Fragment,{key:0},renderList(unref(Ie),Un=>(openBlock(),createBlock(unref(ElScrollbar),{key:Un,ref_for:!0,ref:Wn=>Ln(Wn,Un),class:normalizeClass(unref(V).be("spinner","wrapper")),"wrap-style":"max-height: inherit;","view-class":unref(V).be("spinner","list"),noresize:"",tag:"ul",onMouseenter:Wn=>Lt(Un),onMousemove:Wn=>hn(Un)},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Fe)[Un],(Wn,Zn)=>(openBlock(),createElementBlock("li",{key:Zn,class:normalizeClass([unref(V).be("spinner","item"),unref(V).is("active",Zn===unref(Ve)[Un]),unref(V).is("disabled",Wn)]),onClick:or=>Mn(Un,{value:Zn,disabled:Wn})},[Un==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Pn.amPmMode?Zn%12||12:Zn)).slice(-2))+toDisplayString$1(Et(Zn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Zn).slice(-2)),1)],64))],10,_hoisted_1$_))),128))]),_:2},1032,["class","view-class","onMouseenter","onMousemove"]))),128)),Pn.arrowControl?(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(unref(Ie),Un=>(openBlock(),createElementBlock("div",{key:Un,class:normalizeClass([unref(V).be("spinner","wrapper"),unref(V).is("arrow")]),onMouseenter:Wn=>Lt(Un)},[withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-up",unref(V).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_up_default))]),_:1},8,["class"])),[[unref(vRepeatClick),$n]]),withDirectives((openBlock(),createBlock(unref(ElIcon),{class:normalizeClass(["arrow-down",unref(V).be("spinner","arrow")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"])),[[unref(vRepeatClick),wn]]),createBaseVNode("ul",{class:normalizeClass(unref(V).be("spinner","list"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ue)[Un],(Wn,Zn)=>(openBlock(),createElementBlock("li",{key:Zn,class:normalizeClass([unref(V).be("spinner","item"),unref(V).is("active",Wn===unref(Ve)[Un]),unref(V).is("disabled",unref(Fe)[Un][Wn])])},[typeof Wn=="number"?(openBlock(),createElementBlock(Fragment,{key:0},[Un==="hours"?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(("0"+(Pn.amPmMode?Wn%12||12:Wn)).slice(-2))+toDisplayString$1(Et(Wn)),1)],64)):(openBlock(),createElementBlock(Fragment,{key:1},[createTextVNode(toDisplayString$1(("0"+Wn).slice(-2)),1)],64))],64)):createCommentVNode("v-if",!0)],2))),128))],2)],42,_hoisted_2$F))),128)):createCommentVNode("v-if",!0)],2))}});var TimeSpinner=_export_sfc$1(_sfc_main$1X,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-picker/src/time-picker-com/basic-time-spinner.vue"]]);const _sfc_main$1W=defineComponent({__name:"panel-time-pick",props:panelTimePickerProps,emits:["pick","select-range","set-picker-option"],setup(t,{emit:r}){const $=t,V=inject("EP_PICKER_BASE"),{arrowControl:oe,disabledHours:ie,disabledMinutes:le,disabledSeconds:ue,defaultValue:de}=V.props,{getAvailableHours:pe,getAvailableMinutes:he,getAvailableSeconds:_e}=buildAvailableTimeSlotGetter(ie,le,ue),$e=useNamespace("time"),{t:Ie,lang:Ve}=useLocale(),Fe=ref([0,2]),Ue=useOldValue($),qe=computed(()=>isUndefined$1($.actualVisible)?`${$e.namespace.value}-zoom-in-top`:""),Et=computed(()=>$.format.includes("ss")),Lt=computed(()=>$.format.includes("A")?"A":$.format.includes("a")?"a":""),hn=Ln=>{const Pn=dayjs(Ln).locale(Ve.value),Fn=Mn(Pn);return Pn.isSame(Fn)},Cn=()=>{r("pick",Ue.value,!1)},bn=(Ln=!1,Pn=!1)=>{Pn||r("pick",$.parsedValue,Ln)},Sn=Ln=>{if(!$.visible)return;const Pn=Mn(Ln).millisecond(0);r("pick",Pn,!0)},En=(Ln,Pn)=>{r("select-range",Ln,Pn),Fe.value=[Ln,Pn]},wn=Ln=>{const Pn=[0,3].concat(Et.value?[6]:[]),Fn=["hours","minutes"].concat(Et.value?["seconds"]:[]),Wn=(Pn.indexOf(Fe.value[0])+Ln+Pn.length)%Pn.length;Tn.start_emitSelectRange(Fn[Wn])},$n=Ln=>{const Pn=Ln.code,{left:Fn,right:Un,up:Wn,down:Zn}=EVENT_CODE;if([Fn,Un].includes(Pn)){wn(Pn===Fn?-1:1),Ln.preventDefault();return}if([Wn,Zn].includes(Pn)){const or=Pn===Wn?-1:1;Tn.start_scrollDown(or),Ln.preventDefault();return}},{timePickerOptions:Tn,onSetOption:xn,getAvailableTime:An}=useTimePanel({getAvailableHours:pe,getAvailableMinutes:he,getAvailableSeconds:_e}),Mn=Ln=>An(Ln,$.datetimeRole||"",!0),Vn=Ln=>Ln?dayjs(Ln,$.format).locale(Ve.value):null,Bn=Ln=>Ln?Ln.format($.format):null,Dn=()=>dayjs(de).locale(Ve.value);return r("set-picker-option",["isValidValue",hn]),r("set-picker-option",["formatToString",Bn]),r("set-picker-option",["parseUserInput",Vn]),r("set-picker-option",["handleKeydownInput",$n]),r("set-picker-option",["getRangeAvailableTime",Mn]),r("set-picker-option",["getDefaultValue",Dn]),(Ln,Pn)=>(openBlock(),createBlock(Transition,{name:unref(qe)},{default:withCtx(()=>[Ln.actualVisible||Ln.visible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($e).b("panel"))},[createBaseVNode("div",{class:normalizeClass([unref($e).be("panel","content"),{"has-seconds":unref(Et)}])},[createVNode(TimeSpinner,{ref:"spinner",role:Ln.datetimeRole||"start","arrow-control":unref(oe),"show-seconds":unref(Et),"am-pm-mode":unref(Lt),"spinner-date":Ln.parsedValue,"disabled-hours":unref(ie),"disabled-minutes":unref(le),"disabled-seconds":unref(ue),onChange:Sn,onSetOption:unref(xn),onSelectRange:En},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($e).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref($e).be("panel","btn"),"cancel"]),onClick:Cn},toDisplayString$1(unref(Ie)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref($e).be("panel","btn"),"confirm"]),onClick:Pn[0]||(Pn[0]=Fn=>bn())},toDisplayString$1(unref(Ie)("el.datepicker.confirm")),3)],2)],2)):createCommentVNode("v-if",!0)]),_:1},8,["name"]))}});var TimePickPanel=_export_sfc$1(_sfc_main$1W,[["__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$Z=["disabled"],_sfc_main$1V=defineComponent({__name:"panel-time-range",props:panelTimeRangeProps,emits:["pick","select-range","set-picker-option"],setup(t,{emit:r}){const $=t,V=(sr,zn)=>{const Kn=[];for(let Jn=sr;Jn<=zn;Jn++)Kn.push(Jn);return Kn},{t:oe,lang:ie}=useLocale(),le=useNamespace("time"),ue=useNamespace("picker"),de=inject("EP_PICKER_BASE"),{arrowControl:pe,disabledHours:he,disabledMinutes:_e,disabledSeconds:$e,defaultValue:Ie}=de.props,Ve=computed(()=>[le.be("range-picker","body"),le.be("panel","content"),le.is("arrow",pe),hn.value?"has-seconds":""]),Fe=computed(()=>[le.be("range-picker","body"),le.be("panel","content"),le.is("arrow",pe),hn.value?"has-seconds":""]),Ue=computed(()=>$.parsedValue[0]),qe=computed(()=>$.parsedValue[1]),Et=useOldValue($),Lt=()=>{r("pick",Et.value,!1)},hn=computed(()=>$.format.includes("ss")),Cn=computed(()=>$.format.includes("A")?"A":$.format.includes("a")?"a":""),bn=(sr=!1)=>{r("pick",[Ue.value,qe.value],sr)},Sn=sr=>{$n(sr.millisecond(0),qe.value)},En=sr=>{$n(Ue.value,sr.millisecond(0))},wn=sr=>{const zn=sr.map(Jn=>dayjs(Jn).locale(ie.value)),Kn=Un(zn);return zn[0].isSame(Kn[0])&&zn[1].isSame(Kn[1])},$n=(sr,zn)=>{r("pick",[sr,zn],!0)},Tn=computed(()=>Ue.value>qe.value),xn=ref([0,2]),An=(sr,zn)=>{r("select-range",sr,zn,"min"),xn.value=[sr,zn]},Mn=computed(()=>hn.value?11:8),Vn=(sr,zn)=>{r("select-range",sr,zn,"max");const Kn=unref(Mn);xn.value=[sr+Kn,zn+Kn]},Bn=sr=>{const zn=hn.value?[0,3,6,11,14,17]:[0,3,8,11],Kn=["hours","minutes"].concat(hn.value?["seconds"]:[]),cr=(zn.indexOf(xn.value[0])+sr+zn.length)%zn.length,_r=zn.length/2;cr<_r?br.start_emitSelectRange(Kn[cr]):br.end_emitSelectRange(Kn[cr-_r])},Dn=sr=>{const zn=sr.code,{left:Kn,right:Jn,up:cr,down:_r}=EVENT_CODE;if([Kn,Jn].includes(zn)){Bn(zn===Kn?-1:1),sr.preventDefault();return}if([cr,_r].includes(zn)){const ur=zn===cr?-1:1,wr=xn.value[0]{const Kn=he?he(sr):[],Jn=sr==="start",_r=(zn||(Jn?qe.value:Ue.value)).hour(),ur=Jn?V(_r+1,23):V(0,_r-1);return union$1(Kn,ur)},Pn=(sr,zn,Kn)=>{const Jn=_e?_e(sr,zn):[],cr=zn==="start",_r=Kn||(cr?qe.value:Ue.value),ur=_r.hour();if(sr!==ur)return Jn;const wr=_r.minute(),Cr=cr?V(wr+1,59):V(0,wr-1);return union$1(Jn,Cr)},Fn=(sr,zn,Kn,Jn)=>{const cr=$e?$e(sr,zn,Kn):[],_r=Kn==="start",ur=Jn||(_r?qe.value:Ue.value),wr=ur.hour(),Cr=ur.minute();if(sr!==wr||zn!==Cr)return cr;const mr=ur.second(),Er=_r?V(mr+1,59):V(0,mr-1);return union$1(cr,Er)},Un=([sr,zn])=>[Qn(sr,"start",!0,zn),Qn(zn,"end",!1,sr)],{getAvailableHours:Wn,getAvailableMinutes:Zn,getAvailableSeconds:or}=buildAvailableTimeSlotGetter(Ln,Pn,Fn),{timePickerOptions:br,getAvailableTime:Qn,onSetOption:Gn}=useTimePanel({getAvailableHours:Wn,getAvailableMinutes:Zn,getAvailableSeconds:or}),Yn=sr=>sr?isArray$c(sr)?sr.map(zn=>dayjs(zn,$.format).locale(ie.value)):dayjs(sr,$.format).locale(ie.value):null,er=sr=>sr?isArray$c(sr)?sr.map(zn=>zn.format($.format)):sr.format($.format):null,lr=()=>{if(isArray$c(Ie))return Ie.map(zn=>dayjs(zn).locale(ie.value));const sr=dayjs(Ie).locale(ie.value);return[sr,sr.add(60,"m")]};return r("set-picker-option",["formatToString",er]),r("set-picker-option",["parseUserInput",Yn]),r("set-picker-option",["isValidValue",wn]),r("set-picker-option",["handleKeydownInput",Dn]),r("set-picker-option",["getDefaultValue",lr]),r("set-picker-option",["getRangeAvailableTime",Un]),(sr,zn)=>sr.actualVisible?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref(le).b("range-picker"),unref(ue).b("panel")])},[createBaseVNode("div",{class:normalizeClass(unref(le).be("range-picker","content"))},[createBaseVNode("div",{class:normalizeClass(unref(le).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(le).be("range-picker","header"))},toDisplayString$1(unref(oe)("el.datepicker.startTime")),3),createBaseVNode("div",{class:normalizeClass(unref(Ve))},[createVNode(TimeSpinner,{ref:"minSpinner",role:"start","show-seconds":unref(hn),"am-pm-mode":unref(Cn),"arrow-control":unref(pe),"spinner-date":unref(Ue),"disabled-hours":Ln,"disabled-minutes":Pn,"disabled-seconds":Fn,onChange:Sn,onSetOption:unref(Gn),onSelectRange:An},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2),createBaseVNode("div",{class:normalizeClass(unref(le).be("range-picker","cell"))},[createBaseVNode("div",{class:normalizeClass(unref(le).be("range-picker","header"))},toDisplayString$1(unref(oe)("el.datepicker.endTime")),3),createBaseVNode("div",{class:normalizeClass(unref(Fe))},[createVNode(TimeSpinner,{ref:"maxSpinner",role:"end","show-seconds":unref(hn),"am-pm-mode":unref(Cn),"arrow-control":unref(pe),"spinner-date":unref(qe),"disabled-hours":Ln,"disabled-minutes":Pn,"disabled-seconds":Fn,onChange:En,onSetOption:unref(Gn),onSelectRange:Vn},null,8,["show-seconds","am-pm-mode","arrow-control","spinner-date","onSetOption"])],2)],2)],2),createBaseVNode("div",{class:normalizeClass(unref(le).be("panel","footer"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(le).be("panel","btn"),"cancel"]),onClick:zn[0]||(zn[0]=Kn=>Lt())},toDisplayString$1(unref(oe)("el.datepicker.cancel")),3),createBaseVNode("button",{type:"button",class:normalizeClass([unref(le).be("panel","btn"),"confirm"]),disabled:unref(Tn),onClick:zn[1]||(zn[1]=Kn=>bn())},toDisplayString$1(unref(oe)("el.datepicker.confirm")),11,_hoisted_1$Z)],2)],2)):createCommentVNode("v-if",!0)}});var TimeRangePanel=_export_sfc$1(_sfc_main$1V,[["__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(t,r){const $=ref(),[V,oe]=t.isRange?["timerange",TimeRangePanel]:["time",TimePickPanel],ie=le=>r.emit("update:modelValue",le);return provide("ElPopperOptions",t.popperOptions),r.expose({focus:le=>{var ue;(ue=$.value)==null||ue.handleFocusInput(le)},blur:le=>{var ue;(ue=$.value)==null||ue.handleBlurInput(le)},handleOpen:()=>{var le;(le=$.value)==null||le.handleOpen()},handleClose:()=>{var le;(le=$.value)==null||le.handleClose()}}),()=>{var le;const ue=(le=t.format)!=null?le:DEFAULT_FORMATS_TIME;return createVNode(CommonPicker,mergeProps(t,{ref:$,type:V,format:ue,"onUpdate:modelValue":ie}),{default:de=>createVNode(oe,de,null)})}}});const _TimePicker=TimePicker;_TimePicker.install=t=>{t.component(_TimePicker.name,_TimePicker)};const ElTimePicker=_TimePicker,getPrevMonthLastDays=(t,r)=>{const $=t.subtract(1,"month").endOf("month").date();return rangeArr(r).map((V,oe)=>$-(r-oe-1))},getMonthDays=t=>{const r=t.daysInMonth();return rangeArr(r).map(($,V)=>V+1)},toNestedArr=t=>rangeArr(t.length/7).map(r=>{const $=r*7;return t.slice($,$+7)}),dateTableProps=buildProps({selectedDay:{type:definePropType(Object)},range:{type:definePropType(Array)},date:{type:definePropType(Object),required:!0},hideHeader:{type:Boolean}}),dateTableEmits={pick:t=>isObject$a(t)};var localeData$1={exports:{}};(function(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){return function($,V,oe){var ie=V.prototype,le=function(_e){return _e&&(_e.indexOf?_e:_e.s)},ue=function(_e,$e,Ie,Ve,Fe){var Ue=_e.name?_e:_e.$locale(),qe=le(Ue[$e]),Et=le(Ue[Ie]),Lt=qe||Et.map(function(Cn){return Cn.slice(0,Ve)});if(!Fe)return Lt;var hn=Ue.weekStart;return Lt.map(function(Cn,bn){return Lt[(bn+(hn||0))%7]})},de=function(){return oe.Ls[oe.locale()]},pe=function(_e,$e){return _e.formats[$e]||function(Ie){return Ie.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(Ve,Fe,Ue){return Fe||Ue.slice(1)})}(_e.formats[$e.toUpperCase()])},he=function(){var _e=this;return{months:function($e){return $e?$e.format("MMMM"):ue(_e,"months")},monthsShort:function($e){return $e?$e.format("MMM"):ue(_e,"monthsShort","months",3)},firstDayOfWeek:function(){return _e.$locale().weekStart||0},weekdays:function($e){return $e?$e.format("dddd"):ue(_e,"weekdays")},weekdaysMin:function($e){return $e?$e.format("dd"):ue(_e,"weekdaysMin","weekdays",2)},weekdaysShort:function($e){return $e?$e.format("ddd"):ue(_e,"weekdaysShort","weekdays",3)},longDateFormat:function($e){return pe(_e.$locale(),$e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};ie.localeData=function(){return he.bind(this)()},oe.localeData=function(){var _e=de();return{firstDayOfWeek:function(){return _e.weekStart||0},weekdays:function(){return oe.weekdays()},weekdaysShort:function(){return oe.weekdaysShort()},weekdaysMin:function(){return oe.weekdaysMin()},months:function(){return oe.months()},monthsShort:function(){return oe.monthsShort()},longDateFormat:function($e){return pe(_e,$e)},meridiem:_e.meridiem,ordinal:_e.ordinal}},oe.months=function(){return ue(de(),"months")},oe.monthsShort=function(){return ue(de(),"monthsShort","months",3)},oe.weekdays=function(_e){return ue(de(),"weekdays",null,null,_e)},oe.weekdaysShort=function(_e){return ue(de(),"weekdaysShort","weekdays",3,_e)},oe.weekdaysMin=function(_e){return ue(de(),"weekdaysMin","weekdays",2,_e)}}})})(localeData$1);var localeDataExports=localeData$1.exports;const localeData=getDefaultExportFromCjs(localeDataExports),useDateTable=(t,r)=>{dayjs.extend(localeData);const $=dayjs.localeData().firstDayOfWeek(),{t:V,lang:oe}=useLocale(),ie=dayjs().locale(oe.value),le=computed(()=>!!t.range&&!!t.range.length),ue=computed(()=>{let $e=[];if(le.value){const[Ie,Ve]=t.range,Fe=rangeArr(Ve.date()-Ie.date()+1).map(Et=>({text:Ie.date()+Et,type:"current"}));let Ue=Fe.length%7;Ue=Ue===0?0:7-Ue;const qe=rangeArr(Ue).map((Et,Lt)=>({text:Lt+1,type:"next"}));$e=Fe.concat(qe)}else{const Ie=t.date.startOf("month").day(),Ve=getPrevMonthLastDays(t.date,(Ie-$+7)%7).map(Et=>({text:Et,type:"prev"})),Fe=getMonthDays(t.date).map(Et=>({text:Et,type:"current"}));$e=[...Ve,...Fe];const Ue=7-($e.length%7||7),qe=rangeArr(Ue).map((Et,Lt)=>({text:Lt+1,type:"next"}));$e=$e.concat(qe)}return toNestedArr($e)}),de=computed(()=>{const $e=$;return $e===0?WEEK_DAYS.map(Ie=>V(`el.datepicker.weeks.${Ie}`)):WEEK_DAYS.slice($e).concat(WEEK_DAYS.slice(0,$e)).map(Ie=>V(`el.datepicker.weeks.${Ie}`))}),pe=($e,Ie)=>{switch(Ie){case"prev":return t.date.startOf("month").subtract(1,"month").date($e);case"next":return t.date.startOf("month").add(1,"month").date($e);case"current":return t.date.date($e)}};return{now:ie,isInRange:le,rows:ue,weekDays:de,getFormattedDate:pe,handlePickDay:({text:$e,type:Ie})=>{const Ve=pe($e,Ie);r("pick",Ve)},getSlotData:({text:$e,type:Ie})=>{const Ve=pe($e,Ie);return{isSelected:Ve.isSame(t.selectedDay),type:`${Ie}-month`,day:Ve.format("YYYY-MM-DD"),date:Ve.toDate()}}}},_hoisted_1$Y={key:0},_hoisted_2$E=["onClick"],__default__$1f=defineComponent({name:"DateTable"}),_sfc_main$1U=defineComponent({...__default__$1f,props:dateTableProps,emits:dateTableEmits,setup(t,{expose:r,emit:$}){const V=t,{isInRange:oe,now:ie,rows:le,weekDays:ue,getFormattedDate:de,handlePickDay:pe,getSlotData:he}=useDateTable(V,$),_e=useNamespace("calendar-table"),$e=useNamespace("calendar-day"),Ie=({text:Ve,type:Fe})=>{const Ue=[Fe];if(Fe==="current"){const qe=de(Ve,Fe);qe.isSame(V.selectedDay,"day")&&Ue.push($e.is("selected")),qe.isSame(ie,"day")&&Ue.push($e.is("today"))}return Ue};return r({getFormattedDate:de}),(Ve,Fe)=>(openBlock(),createElementBlock("table",{class:normalizeClass([unref(_e).b(),unref(_e).is("range",unref(oe))]),cellspacing:"0",cellpadding:"0"},[Ve.hideHeader?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("thead",_hoisted_1$Y,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),Ue=>(openBlock(),createElementBlock("th",{key:Ue},toDisplayString$1(Ue),1))),128))])),createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(le),(Ue,qe)=>(openBlock(),createElementBlock("tr",{key:qe,class:normalizeClass({[unref(_e).e("row")]:!0,[unref(_e).em("row","hide-border")]:qe===0&&Ve.hideHeader})},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ue,(Et,Lt)=>(openBlock(),createElementBlock("td",{key:Lt,class:normalizeClass(Ie(Et)),onClick:hn=>unref(pe)(Et)},[createBaseVNode("div",{class:normalizeClass(unref($e).b())},[renderSlot(Ve.$slots,"date-cell",{data:unref(he)(Et)},()=>[createBaseVNode("span",null,toDisplayString$1(Et.text),1)])],2)],10,_hoisted_2$E))),128))],2))),128))])],2))}});var DateTable$1=_export_sfc$1(_sfc_main$1U,[["__file","/home/runner/work/element-plus/element-plus/packages/components/calendar/src/date-table.vue"]]);const adjacentMonth=(t,r)=>{const $=t.endOf("month"),V=r.startOf("month"),ie=$.isSame(V,"week")?V.add(1,"week"):V;return[[t,$],[ie.startOf("week"),r]]},threeConsecutiveMonth=(t,r)=>{const $=t.endOf("month"),V=t.add(1,"month").startOf("month"),oe=$.isSame(V,"week")?V.add(1,"week"):V,ie=oe.endOf("month"),le=r.startOf("month"),ue=ie.isSame(le,"week")?le.add(1,"week"):le;return[[t,$],[oe.startOf("week"),ie],[ue.startOf("week"),r]]},useCalendar=(t,r,$)=>{const V=useSlots(),{lang:oe}=useLocale(),ie=ref(),le=dayjs().locale(oe.value),ue=computed({get(){return t.modelValue?pe.value:ie.value},set(qe){if(!qe)return;ie.value=qe;const Et=qe.toDate();r(INPUT_EVENT,Et),r(UPDATE_MODEL_EVENT,Et)}}),de=computed(()=>{if(!t.range)return[];const qe=t.range.map(hn=>dayjs(hn).locale(oe.value)),[Et,Lt]=qe;return Et.isAfter(Lt)?[]:Et.isSame(Lt,"month")?Ve(Et,Lt):Et.add(1,"month").month()!==Lt.month()?[]:Ve(Et,Lt)}),pe=computed(()=>t.modelValue?dayjs(t.modelValue).locale(oe.value):ue.value||(de.value.length?de.value[0][0]:le)),he=computed(()=>pe.value.subtract(1,"month").date(1)),_e=computed(()=>pe.value.add(1,"month").date(1)),$e=computed(()=>pe.value.subtract(1,"year").date(1)),Ie=computed(()=>pe.value.add(1,"year").date(1)),Ve=(qe,Et)=>{const Lt=qe.startOf("week"),hn=Et.endOf("week"),Cn=Lt.get("month"),bn=hn.get("month");return Cn===bn?[[Lt,hn]]:(Cn+1)%12===bn?adjacentMonth(Lt,hn):Cn+2===bn||(Cn+1)%11===bn?threeConsecutiveMonth(Lt,hn):[]},Fe=qe=>{ue.value=qe},Ue=qe=>{const Lt={"prev-month":he.value,"next-month":_e.value,"prev-year":$e.value,"next-year":Ie.value,today:le}[qe];Lt.isSame(pe.value,"day")||Fe(Lt)};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(()=>!!V.dateCell)),{calculateValidatedDateRange:Ve,date:pe,realSelectedDay:ue,pickDay:Fe,selectDate:Ue,validatedRange:de}},isValidRange$1=t=>isArray$c(t)&&t.length===2&&t.every(r=>isDate$3(r)),calendarProps=buildProps({modelValue:{type:Date},range:{type:definePropType(Array),validator:isValidRange$1}}),calendarEmits={[UPDATE_MODEL_EVENT]:t=>isDate$3(t),[INPUT_EVENT]:t=>isDate$3(t)},COMPONENT_NAME$g="ElCalendar",__default__$1e=defineComponent({name:COMPONENT_NAME$g}),_sfc_main$1T=defineComponent({...__default__$1e,props:calendarProps,emits:calendarEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useNamespace("calendar"),{calculateValidatedDateRange:ie,date:le,pickDay:ue,realSelectedDay:de,selectDate:pe,validatedRange:he}=useCalendar(V,$),{t:_e}=useLocale(),$e=computed(()=>{const Ie=`el.datepicker.month${le.value.format("M")}`;return`${le.value.year()} ${_e("el.datepicker.year")} ${_e(Ie)}`});return r({selectedDay:de,pickDay:ue,selectDate:pe,calculateValidatedDateRange:ie}),(Ie,Ve)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(oe).b())},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("header"))},[renderSlot(Ie.$slots,"header",{date:unref($e)},()=>[createBaseVNode("div",{class:normalizeClass(unref(oe).e("title"))},toDisplayString$1(unref($e)),3),unref(he).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("button-group"))},[createVNode(unref(ElButtonGroup$1),null,{default:withCtx(()=>[createVNode(unref(ElButton),{size:"small",onClick:Ve[0]||(Ve[0]=Fe=>unref(pe)("prev-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(_e)("el.datepicker.prevMonth")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Ve[1]||(Ve[1]=Fe=>unref(pe)("today"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(_e)("el.datepicker.today")),1)]),_:1}),createVNode(unref(ElButton),{size:"small",onClick:Ve[2]||(Ve[2]=Fe=>unref(pe)("next-month"))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(_e)("el.datepicker.nextMonth")),1)]),_:1})]),_:1})],2)):createCommentVNode("v-if",!0)])],2),unref(he).length===0?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("body"))},[createVNode(DateTable$1,{date:unref(le),"selected-day":unref(de),onPick:unref(ue)},createSlots({_:2},[Ie.$slots["date-cell"]||Ie.$slots.dateCell?{name:"date-cell",fn:withCtx(Fe=>[Ie.$slots["date-cell"]?renderSlot(Ie.$slots,"date-cell",normalizeProps(mergeProps({key:0},Fe))):renderSlot(Ie.$slots,"dateCell",normalizeProps(mergeProps({key:1},Fe)))])}:void 0]),1032,["date","selected-day","onPick"])],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).e("body"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(he),(Fe,Ue)=>(openBlock(),createBlock(DateTable$1,{key:Ue,date:Fe[0],"selected-day":unref(de),range:Fe,"hide-header":Ue!==0,onPick:unref(ue)},createSlots({_:2},[Ie.$slots["date-cell"]||Ie.$slots.dateCell?{name:"date-cell",fn:withCtx(qe=>[Ie.$slots["date-cell"]?renderSlot(Ie.$slots,"date-cell",normalizeProps(mergeProps({key:0},qe))):renderSlot(Ie.$slots,"dateCell",normalizeProps(mergeProps({key:1},qe)))])}:void 0]),1032,["date","selected-day","range","hide-header","onPick"]))),128))],2))],2))}});var Calendar=_export_sfc$1(_sfc_main$1T,[["__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:""},bodyClass:String,shadow:{type:String,values:["always","hover","never"],default:"always"}}),__default__$1d=defineComponent({name:"ElCard"}),_sfc_main$1S=defineComponent({...__default__$1d,props:cardProps,setup(t){const r=useNamespace("card");return($,V)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).b(),unref(r).is(`${$.shadow}-shadow`)])},[$.$slots.header||$.header?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(r).e("header"))},[renderSlot($.$slots,"header",{},()=>[createTextVNode(toDisplayString$1($.header),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([unref(r).e("body"),$.bodyClass]),style:normalizeStyle$1($.bodyStyle)},[renderSlot($.$slots,"default")],6)],2))}});var Card=_export_sfc$1(_sfc_main$1S,[["__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:(t,r)=>[t,r].every(isNumber$4)},carouselContextKey=Symbol("carouselContextKey"),THROTTLE_TIME=300,useCarousel=(t,r,$)=>{const{children:V,addChild:oe,removeChild:ie}=useOrderedChildren(getCurrentInstance(),"ElCarouselItem"),le=ref(-1),ue=ref(null),de=ref(!1),pe=ref(),he=ref(0),_e=computed(()=>t.arrow!=="never"&&!unref(Ve)),$e=computed(()=>V.value.some(Pn=>Pn.props.label.toString().length>0)),Ie=computed(()=>t.type==="card"),Ve=computed(()=>t.direction==="vertical"),Fe=computed(()=>t.height!=="auto"?{height:t.height}:{height:`${he.value}px`,overflow:"hidden"}),Ue=throttle$1(Pn=>{Cn(Pn)},THROTTLE_TIME,{trailing:!0}),qe=throttle$1(Pn=>{An(Pn)},THROTTLE_TIME);function Et(){ue.value&&(clearInterval(ue.value),ue.value=null)}function Lt(){t.interval<=0||!t.autoplay||ue.value||(ue.value=setInterval(()=>hn(),t.interval))}const hn=()=>{le.valueZn.props.name===Pn);Wn.length>0&&(Pn=V.value.indexOf(Wn[0]))}if(Pn=Number(Pn),Number.isNaN(Pn)||Pn!==Math.floor(Pn))return;const Fn=V.value.length,Un=le.value;Pn<0?le.value=t.loop?Fn-1:0:Pn>=Fn?le.value=t.loop?0:Fn-1:le.value=Pn,Un===le.value&&bn(Un),Bn()}function bn(Pn){V.value.forEach((Fn,Un)=>{Fn.translateItem(Un,le.value,Pn)})}function Sn(Pn,Fn){var Un,Wn,Zn,or;const br=unref(V),Qn=br.length;if(Qn===0||!Pn.states.inStage)return!1;const Gn=Fn+1,Yn=Fn-1,er=Qn-1,lr=br[er].states.active,sr=br[0].states.active,zn=(Wn=(Un=br[Gn])==null?void 0:Un.states)==null?void 0:Wn.active,Kn=(or=(Zn=br[Yn])==null?void 0:Zn.states)==null?void 0:or.active;return Fn===er&&sr||zn?"left":Fn===0&&lr||Kn?"right":!1}function En(){de.value=!0,t.pauseOnHover&&Et()}function wn(){de.value=!1,Lt()}function $n(Pn){unref(Ve)||V.value.forEach((Fn,Un)=>{Pn===Sn(Fn,Un)&&(Fn.states.hover=!0)})}function Tn(){unref(Ve)||V.value.forEach(Pn=>{Pn.states.hover=!1})}function xn(Pn){le.value=Pn}function An(Pn){t.trigger==="hover"&&Pn!==le.value&&(le.value=Pn)}function Mn(){Cn(le.value-1)}function Vn(){Cn(le.value+1)}function Bn(){Et(),Lt()}function Dn(Pn){t.height==="auto"&&(he.value=Pn)}watch(()=>le.value,(Pn,Fn)=>{bn(Fn),Fn>-1&&r("change",Pn,Fn)}),watch(()=>t.autoplay,Pn=>{Pn?Lt():Et()}),watch(()=>t.loop,()=>{Cn(le.value)}),watch(()=>t.interval,()=>{Bn()}),watch(()=>V.value,()=>{V.value.length>0&&Cn(t.initialIndex)});const Ln=shallowRef();return onMounted(()=>{Ln.value=useResizeObserver$1(pe.value,()=>{bn()}),Lt()}),onBeforeUnmount(()=>{Et(),pe.value&&Ln.value&&Ln.value.stop()}),provide(carouselContextKey,{root:pe,isCardType:Ie,isVertical:Ve,items:V,loop:t.loop,addItem:oe,removeItem:ie,setActiveItem:Cn,setContainerHeight:Dn}),{root:pe,activeIndex:le,arrowDisplay:_e,hasLabel:$e,hover:de,isCardType:Ie,items:V,isVertical:Ve,containerStyle:Fe,handleButtonEnter:$n,handleButtonLeave:Tn,handleIndicatorClick:xn,handleMouseEnter:En,handleMouseLeave:wn,setActiveItem:Cn,prev:Mn,next:Vn,throttledArrowClick:Ue,throttledIndicatorHover:qe}},_hoisted_1$X=["onMouseenter","onClick"],_hoisted_2$D={key:0},COMPONENT_NAME$f="ElCarousel",__default__$1c=defineComponent({name:COMPONENT_NAME$f}),_sfc_main$1R=defineComponent({...__default__$1c,props:carouselProps,emits:carouselEmits,setup(t,{expose:r,emit:$}){const V=t,{root:oe,activeIndex:ie,arrowDisplay:le,hasLabel:ue,hover:de,isCardType:pe,items:he,isVertical:_e,containerStyle:$e,handleButtonEnter:Ie,handleButtonLeave:Ve,handleIndicatorClick:Fe,handleMouseEnter:Ue,handleMouseLeave:qe,setActiveItem:Et,prev:Lt,next:hn,throttledArrowClick:Cn,throttledIndicatorHover:bn}=useCarousel(V,$),Sn=useNamespace("carousel"),En=computed(()=>{const $n=[Sn.b(),Sn.m(V.direction)];return unref(pe)&&$n.push(Sn.m("card")),$n}),wn=computed(()=>{const $n=[Sn.e("indicators"),Sn.em("indicators",V.direction)];return unref(ue)&&$n.push(Sn.em("indicators","labels")),V.indicatorPosition==="outside"&&$n.push(Sn.em("indicators","outside")),unref(_e)&&$n.push(Sn.em("indicators","right")),$n});return r({setActiveItem:Et,prev:Lt,next:hn}),($n,Tn)=>(openBlock(),createElementBlock("div",{ref_key:"root",ref:oe,class:normalizeClass(unref(En)),onMouseenter:Tn[6]||(Tn[6]=withModifiers((...xn)=>unref(Ue)&&unref(Ue)(...xn),["stop"])),onMouseleave:Tn[7]||(Tn[7]=withModifiers((...xn)=>unref(qe)&&unref(qe)(...xn),["stop"]))},[createBaseVNode("div",{class:normalizeClass(unref(Sn).e("container")),style:normalizeStyle$1(unref($e))},[unref(le)?(openBlock(),createBlock(Transition,{key:0,name:"carousel-arrow-left",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Sn).e("arrow"),unref(Sn).em("arrow","left")]),onMouseenter:Tn[0]||(Tn[0]=xn=>unref(Ie)("left")),onMouseleave:Tn[1]||(Tn[1]=(...xn)=>unref(Ve)&&unref(Ve)(...xn)),onClick:Tn[2]||(Tn[2]=withModifiers(xn=>unref(Cn)(unref(ie)-1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],34),[[vShow,($n.arrow==="always"||unref(de))&&(V.loop||unref(ie)>0)]])]),_:1})):createCommentVNode("v-if",!0),unref(le)?(openBlock(),createBlock(Transition,{key:1,name:"carousel-arrow-right",persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("button",{type:"button",class:normalizeClass([unref(Sn).e("arrow"),unref(Sn).em("arrow","right")]),onMouseenter:Tn[3]||(Tn[3]=xn=>unref(Ie)("right")),onMouseleave:Tn[4]||(Tn[4]=(...xn)=>unref(Ve)&&unref(Ve)(...xn)),onClick:Tn[5]||(Tn[5]=withModifiers(xn=>unref(Cn)(unref(ie)+1),["stop"]))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],34),[[vShow,($n.arrow==="always"||unref(de))&&(V.loop||unref(ie)(openBlock(),createElementBlock("li",{key:An,class:normalizeClass([unref(Sn).e("indicator"),unref(Sn).em("indicator",$n.direction),unref(Sn).is("active",An===unref(ie))]),onMouseenter:Mn=>unref(bn)(An),onClick:withModifiers(Mn=>unref(Fe)(An),["stop"])},[createBaseVNode("button",{class:normalizeClass(unref(Sn).e("button"))},[unref(ue)?(openBlock(),createElementBlock("span",_hoisted_2$D,toDisplayString$1(xn.props.label),1)):createCommentVNode("v-if",!0)],2)],42,_hoisted_1$X))),128))],2)):createCommentVNode("v-if",!0)],34))}});var Carousel=_export_sfc$1(_sfc_main$1R,[["__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=(t,r)=>{const $=inject(carouselContextKey),V=getCurrentInstance(),oe=.83,ie=ref(),le=ref(!1),ue=ref(0),de=ref(1),pe=ref(!1),he=ref(!1),_e=ref(!1),$e=ref(!1),{isCardType:Ie,isVertical:Ve}=$;function Fe(hn,Cn,bn){const Sn=bn-1,En=Cn-1,wn=Cn+1,$n=bn/2;return Cn===0&&hn===Sn?-1:Cn===Sn&&hn===0?bn:hn=$n?bn+1:hn>wn&&hn-Cn>=$n?-2:hn}function Ue(hn,Cn){var bn,Sn;const En=unref(Ve)?((bn=$.root.value)==null?void 0:bn.offsetHeight)||0:((Sn=$.root.value)==null?void 0:Sn.offsetWidth)||0;return _e.value?En*((2-oe)*(hn-Cn)+1)/4:hn{var Sn;const En=unref(Ie),wn=(Sn=$.items.value.length)!=null?Sn:Number.NaN,$n=hn===Cn;!En&&!isUndefined$1(bn)&&($e.value=$n||hn===bn),!$n&&wn>2&&$.loop&&(hn=Fe(hn,Cn,wn));const Tn=unref(Ve);pe.value=$n,En?(_e.value=Math.round(Math.abs(hn-Cn))<=1,ue.value=Ue(hn,Cn),de.value=unref(pe)?1:oe):ue.value=qe(hn,Cn,Tn),he.value=!0,$n&&ie.value&&$.setContainerHeight(ie.value.offsetHeight)};function Lt(){if($&&unref(Ie)){const hn=$.items.value.findIndex(({uid:Cn})=>Cn===V.uid);$.setActiveItem(hn)}}return onMounted(()=>{$.addItem({props:t,states:reactive({hover:le,translate:ue,scale:de,active:pe,ready:he,inStage:_e,animating:$e}),uid:V.uid,translateItem:Et})}),onUnmounted(()=>{$.removeItem(V.uid)}),{carouselItemRef:ie,active:pe,animating:$e,hover:le,inStage:_e,isVertical:Ve,translate:ue,isCardType:Ie,scale:de,ready:he,handleItemClick:Lt}},__default__$1b=defineComponent({name:"ElCarouselItem"}),_sfc_main$1Q=defineComponent({...__default__$1b,props:carouselItemProps,setup(t){const r=t,$=useNamespace("carousel"),{carouselItemRef:V,active:oe,animating:ie,hover:le,inStage:ue,isVertical:de,translate:pe,isCardType:he,scale:_e,ready:$e,handleItemClick:Ie}=useCarouselItem(r),Ve=computed(()=>{const Ue=`${`translate${unref(de)?"Y":"X"}`}(${unref(pe)}px)`,qe=`scale(${unref(_e)})`;return{transform:[Ue,qe].join(" ")}});return(Fe,Ue)=>withDirectives((openBlock(),createElementBlock("div",{ref_key:"carouselItemRef",ref:V,class:normalizeClass([unref($).e("item"),unref($).is("active",unref(oe)),unref($).is("in-stage",unref(ue)),unref($).is("hover",unref(le)),unref($).is("animating",unref(ie)),{[unref($).em("item","card")]:unref(he),[unref($).em("item","card-vertical")]:unref(he)&&unref(de)}]),style:normalizeStyle$1(unref(Ve)),onClick:Ue[0]||(Ue[0]=(...qe)=>unref(Ie)&&unref(Ie)(...qe))},[unref(he)?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("mask"))},null,2)),[[vShow,!unref(oe)]]):createCommentVNode("v-if",!0),renderSlot(Fe.$slots,"default")],6)),[[vShow,unref($e)]])}});var CarouselItem=_export_sfc$1(_sfc_main$1Q,[["__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]:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t),change:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t)},checkboxGroupContextKey=Symbol("checkboxGroupContextKey"),useCheckboxDisabled=({model:t,isChecked:r})=>{const $=inject(checkboxGroupContextKey,void 0),V=computed(()=>{var ie,le;const ue=(ie=$==null?void 0:$.max)==null?void 0:ie.value,de=(le=$==null?void 0:$.min)==null?void 0:le.value;return!isUndefined$1(ue)&&t.value.length>=ue&&!r.value||!isUndefined$1(de)&&t.value.length<=de&&r.value});return{isDisabled:useFormDisabled(computed(()=>($==null?void 0:$.disabled.value)||V.value)),isLimitDisabled:V}},useCheckboxEvent=(t,{model:r,isLimitExceeded:$,hasOwnLabel:V,isDisabled:oe,isLabeledByFormItem:ie})=>{const le=inject(checkboxGroupContextKey,void 0),{formItem:ue}=useFormItem(),{emit:de}=getCurrentInstance();function pe(Ve){var Fe,Ue;return Ve===t.trueLabel||Ve===!0?(Fe=t.trueLabel)!=null?Fe:!0:(Ue=t.falseLabel)!=null?Ue:!1}function he(Ve,Fe){de("change",pe(Ve),Fe)}function _e(Ve){if($.value)return;const Fe=Ve.target;de("change",pe(Fe.checked),Ve)}async function $e(Ve){$.value||!V.value&&!oe.value&&ie.value&&(Ve.composedPath().some(qe=>qe.tagName==="LABEL")||(r.value=pe([!1,t.falseLabel].includes(r.value)),await nextTick(),he(r.value,Ve)))}const Ie=computed(()=>(le==null?void 0:le.validateEvent)||t.validateEvent);return watch(()=>t.modelValue,()=>{Ie.value&&(ue==null||ue.validate("change").catch(Ve=>void 0))}),{handleChange:_e,onClickRoot:$e}},useCheckboxModel=t=>{const r=ref(!1),{emit:$}=getCurrentInstance(),V=inject(checkboxGroupContextKey,void 0),oe=computed(()=>isUndefined$1(V)===!1),ie=ref(!1);return{model:computed({get(){var ue,de;return oe.value?(ue=V==null?void 0:V.modelValue)==null?void 0:ue.value:(de=t.modelValue)!=null?de:r.value},set(ue){var de,pe;oe.value&&isArray$c(ue)?(ie.value=((de=V==null?void 0:V.max)==null?void 0:de.value)!==void 0&&ue.length>(V==null?void 0:V.max.value),ie.value===!1&&((pe=V==null?void 0:V.changeEvent)==null||pe.call(V,ue))):($(UPDATE_MODEL_EVENT,ue),r.value=ue)}}),isGroup:oe,isLimitExceeded:ie}},useCheckboxStatus=(t,r,{model:$})=>{const V=inject(checkboxGroupContextKey,void 0),oe=ref(!1),ie=computed(()=>{const pe=$.value;return isBoolean$3(pe)?pe:isArray$c(pe)?isObject$a(t.label)?pe.map(toRaw).some(he=>isEqual$1(he,t.label)):pe.map(toRaw).includes(t.label):pe!=null?pe===t.trueLabel:!!pe}),le=useFormSize(computed(()=>{var pe;return(pe=V==null?void 0:V.size)==null?void 0:pe.value}),{prop:!0}),ue=useFormSize(computed(()=>{var pe;return(pe=V==null?void 0:V.size)==null?void 0:pe.value})),de=computed(()=>!!(r.default||t.label));return{checkboxButtonSize:le,isChecked:ie,isFocused:oe,checkboxSize:ue,hasOwnLabel:de}},setStoreValue=(t,{model:r})=>{function $(){isArray$c(r.value)&&!r.value.includes(t.label)?r.value.push(t.label):r.value=t.trueLabel||!0}t.checked&&$()},useCheckbox=(t,r)=>{const{formItem:$}=useFormItem(),{model:V,isGroup:oe,isLimitExceeded:ie}=useCheckboxModel(t),{isFocused:le,isChecked:ue,checkboxButtonSize:de,checkboxSize:pe,hasOwnLabel:he}=useCheckboxStatus(t,r,{model:V}),{isDisabled:_e}=useCheckboxDisabled({model:V,isChecked:ue}),{inputId:$e,isLabeledByFormItem:Ie}=useFormItemInputId(t,{formItemContext:$,disableIdGeneration:he,disableIdManagement:oe}),{handleChange:Ve,onClickRoot:Fe}=useCheckboxEvent(t,{model:V,isLimitExceeded:ie,hasOwnLabel:he,isDisabled:_e,isLabeledByFormItem:Ie});return setStoreValue(t,{model:V}),{inputId:$e,isLabeledByFormItem:Ie,isChecked:ue,isDisabled:_e,isFocused:le,checkboxButtonSize:de,checkboxSize:pe,hasOwnLabel:he,model:V,handleChange:Ve,onClickRoot:Fe}},_hoisted_1$W=["tabindex","role","aria-checked"],_hoisted_2$C=["id","aria-hidden","name","tabindex","disabled","true-value","false-value"],_hoisted_3$m=["id","aria-hidden","disabled","value","name","tabindex"],__default__$1a=defineComponent({name:"ElCheckbox"}),_sfc_main$1P=defineComponent({...__default__$1a,props:checkboxProps,emits:checkboxEmits,setup(t){const r=t,$=useSlots(),{inputId:V,isLabeledByFormItem:oe,isChecked:ie,isDisabled:le,isFocused:ue,checkboxSize:de,hasOwnLabel:pe,model:he,handleChange:_e,onClickRoot:$e}=useCheckbox(r,$),Ie=useNamespace("checkbox"),Ve=computed(()=>[Ie.b(),Ie.m(de.value),Ie.is("disabled",le.value),Ie.is("bordered",r.border),Ie.is("checked",ie.value)]),Fe=computed(()=>[Ie.e("input"),Ie.is("disabled",le.value),Ie.is("checked",ie.value),Ie.is("indeterminate",r.indeterminate),Ie.is("focus",ue.value)]);return(Ue,qe)=>(openBlock(),createBlock(resolveDynamicComponent(!unref(pe)&&unref(oe)?"span":"label"),{class:normalizeClass(unref(Ve)),"aria-controls":Ue.indeterminate?Ue.controls:null,onClick:unref($e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(Fe)),tabindex:Ue.indeterminate?0:void 0,role:Ue.indeterminate?"checkbox":void 0,"aria-checked":Ue.indeterminate?"mixed":void 0},[Ue.trueLabel||Ue.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,id:unref(V),"onUpdate:modelValue":qe[0]||(qe[0]=Et=>isRef(he)?he.value=Et:null),class:normalizeClass(unref(Ie).e("original")),type:"checkbox","aria-hidden":Ue.indeterminate?"true":"false",name:Ue.name,tabindex:Ue.tabindex,disabled:unref(le),"true-value":Ue.trueLabel,"false-value":Ue.falseLabel,onChange:qe[1]||(qe[1]=(...Et)=>unref(_e)&&unref(_e)(...Et)),onFocus:qe[2]||(qe[2]=Et=>ue.value=!0),onBlur:qe[3]||(qe[3]=Et=>ue.value=!1),onClick:qe[4]||(qe[4]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$C)),[[vModelCheckbox,unref(he)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,id:unref(V),"onUpdate:modelValue":qe[5]||(qe[5]=Et=>isRef(he)?he.value=Et:null),class:normalizeClass(unref(Ie).e("original")),type:"checkbox","aria-hidden":Ue.indeterminate?"true":"false",disabled:unref(le),value:Ue.label,name:Ue.name,tabindex:Ue.tabindex,onChange:qe[6]||(qe[6]=(...Et)=>unref(_e)&&unref(_e)(...Et)),onFocus:qe[7]||(qe[7]=Et=>ue.value=!0),onBlur:qe[8]||(qe[8]=Et=>ue.value=!1),onClick:qe[9]||(qe[9]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_3$m)),[[vModelCheckbox,unref(he)]]),createBaseVNode("span",{class:normalizeClass(unref(Ie).e("inner"))},null,2)],10,_hoisted_1$W),unref(pe)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Ie).e("label"))},[renderSlot(Ue.$slots,"default"),Ue.$slots.default?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(Ue.label),1)],64))],2)):createCommentVNode("v-if",!0)]),_:3},8,["class","aria-controls","onClick"]))}});var Checkbox=_export_sfc$1(_sfc_main$1P,[["__file","/home/runner/work/element-plus/element-plus/packages/components/checkbox/src/checkbox.vue"]]);const _hoisted_1$V=["name","tabindex","disabled","true-value","false-value"],_hoisted_2$B=["name","tabindex","disabled","value"],__default__$19=defineComponent({name:"ElCheckboxButton"}),_sfc_main$1O=defineComponent({...__default__$19,props:checkboxProps,emits:checkboxEmits,setup(t){const r=t,$=useSlots(),{isFocused:V,isChecked:oe,isDisabled:ie,checkboxButtonSize:le,model:ue,handleChange:de}=useCheckbox(r,$),pe=inject(checkboxGroupContextKey,void 0),he=useNamespace("checkbox"),_e=computed(()=>{var Ie,Ve,Fe,Ue;const qe=(Ve=(Ie=pe==null?void 0:pe.fill)==null?void 0:Ie.value)!=null?Ve:"";return{backgroundColor:qe,borderColor:qe,color:(Ue=(Fe=pe==null?void 0:pe.textColor)==null?void 0:Fe.value)!=null?Ue:"",boxShadow:qe?`-1px 0 0 0 ${qe}`:void 0}}),$e=computed(()=>[he.b("button"),he.bm("button",le.value),he.is("disabled",ie.value),he.is("checked",oe.value),he.is("focus",V.value)]);return(Ie,Ve)=>(openBlock(),createElementBlock("label",{class:normalizeClass(unref($e))},[Ie.trueLabel||Ie.falseLabel?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":Ve[0]||(Ve[0]=Fe=>isRef(ue)?ue.value=Fe:null),class:normalizeClass(unref(he).be("button","original")),type:"checkbox",name:Ie.name,tabindex:Ie.tabindex,disabled:unref(ie),"true-value":Ie.trueLabel,"false-value":Ie.falseLabel,onChange:Ve[1]||(Ve[1]=(...Fe)=>unref(de)&&unref(de)(...Fe)),onFocus:Ve[2]||(Ve[2]=Fe=>V.value=!0),onBlur:Ve[3]||(Ve[3]=Fe=>V.value=!1),onClick:Ve[4]||(Ve[4]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$V)),[[vModelCheckbox,unref(ue)]]):withDirectives((openBlock(),createElementBlock("input",{key:1,"onUpdate:modelValue":Ve[5]||(Ve[5]=Fe=>isRef(ue)?ue.value=Fe:null),class:normalizeClass(unref(he).be("button","original")),type:"checkbox",name:Ie.name,tabindex:Ie.tabindex,disabled:unref(ie),value:Ie.label,onChange:Ve[6]||(Ve[6]=(...Fe)=>unref(de)&&unref(de)(...Fe)),onFocus:Ve[7]||(Ve[7]=Fe=>V.value=!0),onBlur:Ve[8]||(Ve[8]=Fe=>V.value=!1),onClick:Ve[9]||(Ve[9]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$B)),[[vModelCheckbox,unref(ue)]]),Ie.$slots.default||Ie.label?(openBlock(),createElementBlock("span",{key:2,class:normalizeClass(unref(he).be("button","inner")),style:normalizeStyle$1(unref(oe)?unref(_e):void 0)},[renderSlot(Ie.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ie.label),1)])],6)):createCommentVNode("v-if",!0)],2))}});var CheckboxButton=_export_sfc$1(_sfc_main$1O,[["__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]:t=>isArray$c(t),change:t=>isArray$c(t)},__default__$18=defineComponent({name:"ElCheckboxGroup"}),_sfc_main$1N=defineComponent({...__default__$18,props:checkboxGroupProps,emits:checkboxGroupEmits,setup(t,{emit:r}){const $=t,V=useNamespace("checkbox"),{formItem:oe}=useFormItem(),{inputId:ie,isLabeledByFormItem:le}=useFormItemInputId($,{formItemContext:oe}),ue=async pe=>{r(UPDATE_MODEL_EVENT,pe),await nextTick(),r("change",pe)},de=computed({get(){return $.modelValue},set(pe){ue(pe)}});return provide(checkboxGroupContextKey,{...pick$1(toRefs($),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:de,changeEvent:ue}),watch(()=>$.modelValue,()=>{$.validateEvent&&(oe==null||oe.validate("change").catch(pe=>void 0))}),(pe,he)=>{var _e;return openBlock(),createBlock(resolveDynamicComponent(pe.tag),{id:unref(ie),class:normalizeClass(unref(V).b("group")),role:"group","aria-label":unref(le)?void 0:pe.label||"checkbox-group","aria-labelledby":unref(le)?(_e=unref(oe))==null?void 0:_e.labelId:void 0},{default:withCtx(()=>[renderSlot(pe.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var CheckboxGroup=_export_sfc$1(_sfc_main$1N,[["__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]:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t),[CHANGE_EVENT]:t=>isString$6(t)||isNumber$4(t)||isBoolean$3(t)},radioGroupKey=Symbol("radioGroupKey"),useRadio=(t,r)=>{const $=ref(),V=inject(radioGroupKey,void 0),oe=computed(()=>!!V),ie=computed({get(){return oe.value?V.modelValue:t.modelValue},set(he){oe.value?V.changeEvent(he):r&&r(UPDATE_MODEL_EVENT,he),$.value.checked=t.modelValue===t.label}}),le=useFormSize(computed(()=>V==null?void 0:V.size)),ue=useFormDisabled(computed(()=>V==null?void 0:V.disabled)),de=ref(!1),pe=computed(()=>ue.value||oe.value&&ie.value!==t.label?-1:0);return{radioRef:$,isGroup:oe,radioGroup:V,focus:de,size:le,disabled:ue,tabIndex:pe,modelValue:ie}},_hoisted_1$U=["value","name","disabled"],__default__$17=defineComponent({name:"ElRadio"}),_sfc_main$1M=defineComponent({...__default__$17,props:radioProps,emits:radioEmits,setup(t,{emit:r}){const $=t,V=useNamespace("radio"),{radioRef:oe,radioGroup:ie,focus:le,size:ue,disabled:de,modelValue:pe}=useRadio($,r);function he(){nextTick(()=>r("change",pe.value))}return(_e,$e)=>{var Ie;return openBlock(),createElementBlock("label",{class:normalizeClass([unref(V).b(),unref(V).is("disabled",unref(de)),unref(V).is("focus",unref(le)),unref(V).is("bordered",_e.border),unref(V).is("checked",unref(pe)===_e.label),unref(V).m(unref(ue))])},[createBaseVNode("span",{class:normalizeClass([unref(V).e("input"),unref(V).is("disabled",unref(de)),unref(V).is("checked",unref(pe)===_e.label)])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:oe,"onUpdate:modelValue":$e[0]||($e[0]=Ve=>isRef(pe)?pe.value=Ve:null),class:normalizeClass(unref(V).e("original")),value:_e.label,name:_e.name||((Ie=unref(ie))==null?void 0:Ie.name),disabled:unref(de),type:"radio",onFocus:$e[1]||($e[1]=Ve=>le.value=!0),onBlur:$e[2]||($e[2]=Ve=>le.value=!1),onChange:he,onClick:$e[3]||($e[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$U),[[vModelRadio,unref(pe)]]),createBaseVNode("span",{class:normalizeClass(unref(V).e("inner"))},null,2)],2),createBaseVNode("span",{class:normalizeClass(unref(V).e("label")),onKeydown:$e[4]||($e[4]=withModifiers(()=>{},["stop"]))},[renderSlot(_e.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(_e.label),1)])],34)],2)}}});var Radio=_export_sfc$1(_sfc_main$1M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const radioButtonProps=buildProps({...radioPropsBase,name:{type:String,default:""}}),_hoisted_1$T=["value","name","disabled"],__default__$16=defineComponent({name:"ElRadioButton"}),_sfc_main$1L=defineComponent({...__default__$16,props:radioButtonProps,setup(t){const r=t,$=useNamespace("radio"),{radioRef:V,focus:oe,size:ie,disabled:le,modelValue:ue,radioGroup:de}=useRadio(r),pe=computed(()=>({backgroundColor:(de==null?void 0:de.fill)||"",borderColor:(de==null?void 0:de.fill)||"",boxShadow:de!=null&&de.fill?`-1px 0 0 0 ${de.fill}`:"",color:(de==null?void 0:de.textColor)||""}));return(he,_e)=>{var $e;return openBlock(),createElementBlock("label",{class:normalizeClass([unref($).b("button"),unref($).is("active",unref(ue)===he.label),unref($).is("disabled",unref(le)),unref($).is("focus",unref(oe)),unref($).bm("button",unref(ie))])},[withDirectives(createBaseVNode("input",{ref_key:"radioRef",ref:V,"onUpdate:modelValue":_e[0]||(_e[0]=Ie=>isRef(ue)?ue.value=Ie:null),class:normalizeClass(unref($).be("button","original-radio")),value:he.label,type:"radio",name:he.name||(($e=unref(de))==null?void 0:$e.name),disabled:unref(le),onFocus:_e[1]||(_e[1]=Ie=>oe.value=!0),onBlur:_e[2]||(_e[2]=Ie=>oe.value=!1),onClick:_e[3]||(_e[3]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_1$T),[[vModelRadio,unref(ue)]]),createBaseVNode("span",{class:normalizeClass(unref($).be("button","inner")),style:normalizeStyle$1(unref(ue)===he.label?unref(pe):{}),onKeydown:_e[4]||(_e[4]=withModifiers(()=>{},["stop"]))},[renderSlot(he.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(he.label),1)])],38)],2)}}});var RadioButton=_export_sfc$1(_sfc_main$1L,[["__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$S=["id","aria-label","aria-labelledby"],__default__$15=defineComponent({name:"ElRadioGroup"}),_sfc_main$1K=defineComponent({...__default__$15,props:radioGroupProps,emits:radioGroupEmits,setup(t,{emit:r}){const $=t,V=useNamespace("radio"),oe=useId(),ie=ref(),{formItem:le}=useFormItem(),{inputId:ue,isLabeledByFormItem:de}=useFormItemInputId($,{formItemContext:le}),pe=_e=>{r(UPDATE_MODEL_EVENT,_e),nextTick(()=>r("change",_e))};onMounted(()=>{const _e=ie.value.querySelectorAll("[type=radio]"),$e=_e[0];!Array.from(_e).some(Ie=>Ie.checked)&&$e&&($e.tabIndex=0)});const he=computed(()=>$.name||oe.value);return provide(radioGroupKey,reactive({...toRefs($),changeEvent:pe,name:he})),watch(()=>$.modelValue,()=>{$.validateEvent&&(le==null||le.validate("change").catch(_e=>void 0))}),(_e,$e)=>(openBlock(),createElementBlock("div",{id:unref(ue),ref_key:"radioGroupRef",ref:ie,class:normalizeClass(unref(V).b("group")),role:"radiogroup","aria-label":unref(de)?void 0:_e.label||"radio-group","aria-labelledby":unref(de)?unref(le).labelId:void 0},[renderSlot(_e.$slots,"default")],10,_hoisted_1$S))}});var RadioGroup=_export_sfc$1(_sfc_main$1K,[["__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:t}=this,{node:r,panel:$}=this.$parent,{data:V,label:oe}=r,{renderLabelFn:ie}=$;return h$2("span",{class:t.e("label")},ie?ie({node:r,data:V}):oe)}});const CASCADER_PANEL_INJECTION_KEY=Symbol(),_sfc_main$1J=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(t,{emit:r}){const $=inject(CASCADER_PANEL_INJECTION_KEY),V=useNamespace("cascader-node"),oe=computed(()=>$.isHoverMenu),ie=computed(()=>$.config.multiple),le=computed(()=>$.config.checkStrictly),ue=computed(()=>{var bn;return(bn=$.checkedNodes[0])==null?void 0:bn.uid}),de=computed(()=>t.node.isDisabled),pe=computed(()=>t.node.isLeaf),he=computed(()=>le.value&&!pe.value||!de.value),_e=computed(()=>Ie($.expandingNode)),$e=computed(()=>le.value&&$.checkedNodes.some(Ie)),Ie=bn=>{var Sn;const{level:En,uid:wn}=t.node;return((Sn=bn==null?void 0:bn.pathNodes[En-1])==null?void 0:Sn.uid)===wn},Ve=()=>{_e.value||$.expandNode(t.node)},Fe=bn=>{const{node:Sn}=t;bn!==Sn.checked&&$.handleCheckChange(Sn,bn)},Ue=()=>{$.lazyLoad(t.node,()=>{pe.value||Ve()})},qe=bn=>{oe.value&&(Et(),!pe.value&&r("expand",bn))},Et=()=>{const{node:bn}=t;!he.value||bn.loading||(bn.loaded?Ve():Ue())},Lt=()=>{oe.value&&!pe.value||(pe.value&&!de.value&&!le.value&&!ie.value?Cn(!0):Et())},hn=bn=>{le.value?(Fe(bn),t.node.loaded&&Ve()):Cn(bn)},Cn=bn=>{t.node.loaded?(Fe(bn),!le.value&&Ve()):Ue()};return{panel:$,isHoverMenu:oe,multiple:ie,checkStrictly:le,checkedNodeId:ue,isDisabled:de,isLeaf:pe,expandable:he,inExpandingPath:_e,inCheckedPath:$e,ns:V,handleHoverExpand:qe,handleExpand:Et,handleClick:Lt,handleCheck:Cn,handleSelectCheck:hn}}}),_hoisted_1$R=["id","aria-haspopup","aria-owns","aria-expanded","tabindex"],_hoisted_2$A=createBaseVNode("span",null,null,-1);function _sfc_render$v(t,r,$,V,oe,ie){const le=resolveComponent("el-checkbox"),ue=resolveComponent("el-radio"),de=resolveComponent("check"),pe=resolveComponent("el-icon"),he=resolveComponent("node-content"),_e=resolveComponent("loading"),$e=resolveComponent("arrow-right");return openBlock(),createElementBlock("li",{id:`${t.menuId}-${t.node.uid}`,role:"menuitem","aria-haspopup":!t.isLeaf,"aria-owns":t.isLeaf?null:t.menuId,"aria-expanded":t.inExpandingPath,tabindex:t.expandable?-1:void 0,class:normalizeClass([t.ns.b(),t.ns.is("selectable",t.checkStrictly),t.ns.is("active",t.node.checked),t.ns.is("disabled",!t.expandable),t.inExpandingPath&&"in-active-path",t.inCheckedPath&&"in-checked-path"]),onMouseenter:r[2]||(r[2]=(...Ie)=>t.handleHoverExpand&&t.handleHoverExpand(...Ie)),onFocus:r[3]||(r[3]=(...Ie)=>t.handleHoverExpand&&t.handleHoverExpand(...Ie)),onClick:r[4]||(r[4]=(...Ie)=>t.handleClick&&t.handleClick(...Ie))},[createCommentVNode(" prefix "),t.multiple?(openBlock(),createBlock(le,{key:0,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:t.isDisabled,onClick:r[0]||(r[0]=withModifiers(()=>{},["stop"])),"onUpdate:modelValue":t.handleSelectCheck},null,8,["model-value","indeterminate","disabled","onUpdate:modelValue"])):t.checkStrictly?(openBlock(),createBlock(ue,{key:1,"model-value":t.checkedNodeId,label:t.node.uid,disabled:t.isDisabled,"onUpdate:modelValue":t.handleSelectCheck,onClick:r[1]||(r[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$A]),_:1},8,["model-value","label","disabled","onUpdate:modelValue"])):t.isLeaf&&t.node.checked?(openBlock(),createBlock(pe,{key:2,class:normalizeClass(t.ns.e("prefix"))},{default:withCtx(()=>[createVNode(de)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createCommentVNode(" content "),createVNode(he),createCommentVNode(" postfix "),t.isLeaf?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:3},[t.node.loading?(openBlock(),createBlock(pe,{key:0,class:normalizeClass([t.ns.is("loading"),t.ns.e("postfix")])},{default:withCtx(()=>[createVNode(_e)]),_:1},8,["class"])):(openBlock(),createBlock(pe,{key:1,class:normalizeClass(["arrow-right",t.ns.e("postfix")])},{default:withCtx(()=>[createVNode($e)]),_:1},8,["class"]))],64))],42,_hoisted_1$R)}var ElCascaderNode=_export_sfc$1(_sfc_main$1J,[["render",_sfc_render$v],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/node.vue"]]);const _sfc_main$1I=defineComponent({name:"ElCascaderMenu",components:{Loading:loading_default,ElIcon,ElScrollbar,ElCascaderNode},props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0}},setup(t){const r=getCurrentInstance(),$=useNamespace("cascader-menu"),{t:V}=useLocale(),oe=generateId();let ie=null,le=null;const ue=inject(CASCADER_PANEL_INJECTION_KEY),de=ref(null),pe=computed(()=>!t.nodes.length),he=computed(()=>!ue.initialLoaded),_e=computed(()=>`cascader-menu-${oe}-${t.index}`),$e=Ue=>{ie=Ue.target},Ie=Ue=>{if(!(!ue.isHoverMenu||!ie||!de.value))if(ie.contains(Ue.target)){Ve();const qe=r.vnode.el,{left:Et}=qe.getBoundingClientRect(),{offsetWidth:Lt,offsetHeight:hn}=qe,Cn=Ue.clientX-Et,bn=ie.offsetTop,Sn=bn+ie.offsetHeight;de.value.innerHTML=` `}else le||(le=window.setTimeout(Fe,ue.config.hoverThreshold))},Ve=()=>{le&&(clearTimeout(le),le=null)},Fe=()=>{de.value&&(de.value.innerHTML="",Ve())};return{ns:$,panel:ue,hoverZone:de,isEmpty:pe,isLoading:he,menuId:_e,t:V,handleExpand:$e,handleMouseMove:Ie,clearHoverZone:Fe}}});function _sfc_render$u(t,r,$,V,oe,ie){const le=resolveComponent("el-cascader-node"),ue=resolveComponent("loading"),de=resolveComponent("el-icon"),pe=resolveComponent("el-scrollbar");return openBlock(),createBlock(pe,{key:t.menuId,tag:"ul",role:"menu",class:normalizeClass(t.ns.b()),"wrap-class":t.ns.e("wrap"),"view-class":[t.ns.e("list"),t.ns.is("empty",t.isEmpty)],onMousemove:t.handleMouseMove,onMouseleave:t.clearHoverZone},{default:withCtx(()=>{var he;return[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.nodes,_e=>(openBlock(),createBlock(le,{key:_e.uid,node:_e,"menu-id":t.menuId,onExpand:t.handleExpand},null,8,["node","menu-id","onExpand"]))),128)),t.isLoading?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.e("empty-text"))},[createVNode(de,{size:"14",class:normalizeClass(t.ns.is("loading"))},{default:withCtx(()=>[createVNode(ue)]),_:1},8,["class"]),createTextVNode(" "+toDisplayString$1(t.t("el.cascader.loading")),1)],2)):t.isEmpty?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.e("empty-text"))},toDisplayString$1(t.t("el.cascader.noData")),3)):(he=t.panel)!=null&&he.isHoverMenu?(openBlock(),createElementBlock("svg",{key:2,ref:"hoverZone",class:normalizeClass(t.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$1I,[["render",_sfc_render$u],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/menu.vue"]]);let uid=0;const calculatePathNodes=t=>{const r=[t];let{parent:$}=t;for(;$;)r.unshift($),$=$.parent;return r};let Node$2=class Co{constructor(r,$,V,oe=!1){this.data=r,this.config=$,this.parent=V,this.root=oe,this.uid=uid++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:ie,label:le,children:ue}=$,de=r[ue],pe=calculatePathNodes(this);this.level=oe?0:V?V.level+1:1,this.value=r[ie],this.label=r[le],this.pathNodes=pe,this.pathValues=pe.map(he=>he.value),this.pathLabels=pe.map(he=>he.label),this.childrenData=de,this.children=(de||[]).map(he=>new Co(he,$,this)),this.loaded=!$.lazy||this.isLeaf||!isEmpty(de)}get isDisabled(){const{data:r,parent:$,config:V}=this,{disabled:oe,checkStrictly:ie}=V;return(isFunction$5(oe)?oe(r,this):!!r[oe])||!ie&&($==null?void 0:$.isDisabled)}get isLeaf(){const{data:r,config:$,childrenData:V,loaded:oe}=this,{lazy:ie,leaf:le}=$,ue=isFunction$5(le)?le(r,this):r[le];return isUndefined$1(ue)?ie&&!oe?!1:!(Array.isArray(V)&&V.length):!!ue}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(r){const{childrenData:$,children:V}=this,oe=new Co(r,this.config,this);return Array.isArray($)?$.push(r):this.childrenData=[r],V.push(oe),oe}calcText(r,$){const V=r?this.pathLabels.join($):this.label;return this.text=V,V}broadcast(r,...$){const V=`onParent${capitalize$1(r)}`;this.children.forEach(oe=>{oe&&(oe.broadcast(r,...$),oe[V]&&oe[V](...$))})}emit(r,...$){const{parent:V}=this,oe=`onChild${capitalize$1(r)}`;V&&(V[oe]&&V[oe](...$),V.emit(r,...$))}onParentCheck(r){this.isDisabled||this.setCheckState(r)}onChildCheck(){const{children:r}=this,$=r.filter(oe=>!oe.isDisabled),V=$.length?$.every(oe=>oe.checked):!1;this.setCheckState(V)}setCheckState(r){const $=this.children.length,V=this.children.reduce((oe,ie)=>{const le=ie.checked?1:ie.indeterminate?.5:0;return oe+le},0);this.checked=this.loaded&&this.children.filter(oe=>!oe.isDisabled).every(oe=>oe.loaded&&oe.checked)&&r,this.indeterminate=this.loaded&&V!==$&&V>0}doCheck(r){if(this.checked===r)return;const{checkStrictly:$,multiple:V}=this.config;$||!V?this.checked=r:(this.broadcast("check",r),this.setCheckState(r),this.emit("check"))}};const flatNodes=(t,r)=>t.reduce(($,V)=>(V.isLeaf?$.push(V):(!r&&$.push(V),$=$.concat(flatNodes(V.children,r))),$),[]);class Store{constructor(r,$){this.config=$;const V=(r||[]).map(oe=>new Node$2(oe,this.config));this.nodes=V,this.allNodes=flatNodes(V,!1),this.leafNodes=flatNodes(V,!0)}getNodes(){return this.nodes}getFlattedNodes(r){return r?this.leafNodes:this.allNodes}appendNode(r,$){const V=$?$.appendChild(r):new Node$2(r,this.config);$||this.nodes.push(V),this.allNodes.push(V),V.isLeaf&&this.leafNodes.push(V)}appendNodes(r,$){r.forEach(V=>this.appendNode(V,$))}getNodeByValue(r,$=!1){return!r&&r!==0?null:this.getFlattedNodes($).find(oe=>isEqual$1(oe.value,r)||isEqual$1(oe.pathValues,r))||null}getSameNode(r){return r&&this.getFlattedNodes(!1).find(({value:V,level:oe})=>isEqual$1(r.value,V)&&r.level===oe)||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=t=>computed(()=>({...DefaultProps,...t.props})),getMenuIndex=t=>{if(!t)return 0;const r=t.id.split("-");return Number(r[r.length-2])},checkNode=t=>{if(!t)return;const r=t.querySelector("input");r?r.click():isLeaf(t)&&t.click()},sortByOriginalOrder=(t,r)=>{const $=r.slice(0),V=$.map(ie=>ie.uid),oe=t.reduce((ie,le)=>{const ue=V.indexOf(le.uid);return ue>-1&&(ie.push(le),$.splice(ue,1),V.splice(ue,1)),ie},[]);return oe.push(...$),oe},_sfc_main$1H=defineComponent({name:"ElCascaderPanel",components:{ElCascaderMenu},props:{...CommonProps,border:{type:Boolean,default:!0},renderLabel:Function},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"close","expand-change"],setup(t,{emit:r,slots:$}){let V=!1;const oe=useNamespace("cascader"),ie=useCascaderConfig(t);let le=null;const ue=ref(!0),de=ref([]),pe=ref(null),he=ref([]),_e=ref(null),$e=ref([]),Ie=computed(()=>ie.value.expandTrigger==="hover"),Ve=computed(()=>t.renderLabel||$.default),Fe=()=>{const{options:xn}=t,An=ie.value;V=!1,le=new Store(xn,An),he.value=[le.getNodes()],An.lazy&&isEmpty(t.options)?(ue.value=!1,Ue(void 0,Mn=>{Mn&&(le=new Store(Mn,An),he.value=[le.getNodes()]),ue.value=!0,En(!1,!0)})):En(!1,!0)},Ue=(xn,An)=>{const Mn=ie.value;xn=xn||new Node$2({},Mn,void 0,!0),xn.loading=!0;const Vn=Bn=>{const Dn=xn,Ln=Dn.root?null:Dn;Bn&&(le==null||le.appendNodes(Bn,Ln)),Dn.loading=!1,Dn.loaded=!0,Dn.childrenData=Dn.childrenData||[],An&&An(Bn)};Mn.lazyLoad(xn,Vn)},qe=(xn,An)=>{var Mn;const{level:Vn}=xn,Bn=he.value.slice(0,Vn);let Dn;xn.isLeaf?Dn=xn.pathNodes[Vn-2]:(Dn=xn,Bn.push(xn.children)),((Mn=_e.value)==null?void 0:Mn.uid)!==(Dn==null?void 0:Dn.uid)&&(_e.value=xn,he.value=Bn,!An&&r("expand-change",(xn==null?void 0:xn.pathValues)||[]))},Et=(xn,An,Mn=!0)=>{const{checkStrictly:Vn,multiple:Bn}=ie.value,Dn=$e.value[0];V=!0,!Bn&&(Dn==null||Dn.doCheck(!1)),xn.doCheck(An),Sn(),Mn&&!Bn&&!Vn&&r("close"),!Mn&&!Bn&&!Vn&&Lt(xn)},Lt=xn=>{xn&&(xn=xn.parent,Lt(xn),xn&&qe(xn))},hn=xn=>le==null?void 0:le.getFlattedNodes(xn),Cn=xn=>{var An;return(An=hn(xn))==null?void 0:An.filter(Mn=>Mn.checked!==!1)},bn=()=>{$e.value.forEach(xn=>xn.doCheck(!1)),Sn(),he.value=he.value.slice(0,1),_e.value=null,r("expand-change",[])},Sn=()=>{var xn;const{checkStrictly:An,multiple:Mn}=ie.value,Vn=$e.value,Bn=Cn(!An),Dn=sortByOriginalOrder(Vn,Bn),Ln=Dn.map(Pn=>Pn.valueByOption);$e.value=Dn,pe.value=Mn?Ln:(xn=Ln[0])!=null?xn:null},En=(xn=!1,An=!1)=>{const{modelValue:Mn}=t,{lazy:Vn,multiple:Bn,checkStrictly:Dn}=ie.value,Ln=!Dn;if(!(!ue.value||V||!An&&isEqual$1(Mn,pe.value)))if(Vn&&!xn){const Fn=unique(flattenDeep(castArray(Mn))).map(Un=>le==null?void 0:le.getNodeByValue(Un)).filter(Un=>!!Un&&!Un.loaded&&!Un.loading);Fn.length?Fn.forEach(Un=>{Ue(Un,()=>En(!1,An))}):En(!0,An)}else{const Pn=Bn?castArray(Mn):[Mn],Fn=unique(Pn.map(Un=>le==null?void 0:le.getNodeByValue(Un,Ln)));wn(Fn,An),pe.value=cloneDeep(Mn)}},wn=(xn,An=!0)=>{const{checkStrictly:Mn}=ie.value,Vn=$e.value,Bn=xn.filter(Pn=>!!Pn&&(Mn||Pn.isLeaf)),Dn=le==null?void 0:le.getSameNode(_e.value),Ln=An&&Dn||Bn[0];Ln?Ln.pathNodes.forEach(Pn=>qe(Pn,!0)):_e.value=null,Vn.forEach(Pn=>Pn.doCheck(!1)),t.props.multiple?reactive(Bn).forEach(Pn=>Pn.doCheck(!0)):Bn.forEach(Pn=>Pn.doCheck(!0)),$e.value=Bn,nextTick($n)},$n=()=>{isClient$1&&de.value.forEach(xn=>{const An=xn==null?void 0:xn.$el;if(An){const Mn=An.querySelector(`.${oe.namespace.value}-scrollbar__wrap`),Vn=An.querySelector(`.${oe.b("node")}.${oe.is("active")}`)||An.querySelector(`.${oe.b("node")}.in-active-path`);scrollIntoView(Mn,Vn)}})},Tn=xn=>{const An=xn.target,{code:Mn}=xn;switch(Mn){case EVENT_CODE.up:case EVENT_CODE.down:{xn.preventDefault();const Vn=Mn===EVENT_CODE.up?-1:1;focusNode(getSibling(An,Vn,`.${oe.b("node")}[tabindex="-1"]`));break}case EVENT_CODE.left:{xn.preventDefault();const Vn=de.value[getMenuIndex(An)-1],Bn=Vn==null?void 0:Vn.$el.querySelector(`.${oe.b("node")}[aria-expanded="true"]`);focusNode(Bn);break}case EVENT_CODE.right:{xn.preventDefault();const Vn=de.value[getMenuIndex(An)+1],Bn=Vn==null?void 0:Vn.$el.querySelector(`.${oe.b("node")}[tabindex="-1"]`);focusNode(Bn);break}case EVENT_CODE.enter:checkNode(An);break}};return provide(CASCADER_PANEL_INJECTION_KEY,reactive({config:ie,expandingNode:_e,checkedNodes:$e,isHoverMenu:Ie,initialLoaded:ue,renderLabelFn:Ve,lazyLoad:Ue,expandNode:qe,handleCheckChange:Et})),watch([ie,()=>t.options],Fe,{deep:!0,immediate:!0}),watch(()=>t.modelValue,()=>{V=!1,En()},{deep:!0}),watch(()=>pe.value,xn=>{isEqual$1(xn,t.modelValue)||(r(UPDATE_MODEL_EVENT,xn),r(CHANGE_EVENT,xn))}),onBeforeUpdate(()=>de.value=[]),onMounted(()=>!isEmpty(t.modelValue)&&En()),{ns:oe,menuList:de,menus:he,checkedNodes:$e,handleKeyDown:Tn,handleCheckChange:Et,getFlattedNodes:hn,getCheckedNodes:Cn,clearCheckedNodes:bn,calculateCheckedValue:Sn,scrollToExpandingNode:$n}}});function _sfc_render$t(t,r,$,V,oe,ie){const le=resolveComponent("el-cascader-menu");return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b("panel"),t.ns.is("bordered",t.border)]),onKeydown:r[0]||(r[0]=(...ue)=>t.handleKeyDown&&t.handleKeyDown(...ue))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.menus,(ue,de)=>(openBlock(),createBlock(le,{key:de,ref_for:!0,ref:pe=>t.menuList[de]=pe,index:de,nodes:[...ue]},null,8,["index","nodes"]))),128))],34)}var CascaderPanel=_export_sfc$1(_sfc_main$1H,[["render",_sfc_render$t],["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader-panel/src/index.vue"]]);CascaderPanel.install=t=>{t.component(CascaderPanel.name,CascaderPanel)};const _CascaderPanel=CascaderPanel,ElCascaderPanel=_CascaderPanel,tagProps=buildProps({type:{type:String,values:["success","info","warning","danger",""],default:""},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:{type:String,default:""},size:{type:String,values:componentSizes,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),tagEmits={close:t=>t instanceof MouseEvent,click:t=>t instanceof MouseEvent},__default__$14=defineComponent({name:"ElTag"}),_sfc_main$1G=defineComponent({...__default__$14,props:tagProps,emits:tagEmits,setup(t,{emit:r}){const $=t,V=useFormSize(),oe=useNamespace("tag"),ie=computed(()=>{const{type:de,hit:pe,effect:he,closable:_e,round:$e}=$;return[oe.b(),oe.is("closable",_e),oe.m(de),oe.m(V.value),oe.m(he),oe.is("hit",pe),oe.is("round",$e)]}),le=de=>{r("close",de)},ue=de=>{r("click",de)};return(de,pe)=>de.disableTransitions?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(ie)),style:normalizeStyle$1({backgroundColor:de.color}),onClick:ue},[createBaseVNode("span",{class:normalizeClass(unref(oe).e("content"))},[renderSlot(de.$slots,"default")],2),de.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("close")),onClick:withModifiers(le,["stop"])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],6)):(openBlock(),createBlock(Transition,{key:1,name:`${unref(oe).namespace.value}-zoom-in-center`,appear:""},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(unref(ie)),style:normalizeStyle$1({backgroundColor:de.color}),onClick:ue},[createBaseVNode("span",{class:normalizeClass(unref(oe).e("content"))},[renderSlot(de.$slots,"default")],2),de.closable?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("close")),onClick:withModifiers(le,["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$1G,[["__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:(t,r)=>t.text.includes(r)},separator:{type:String,default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:Boolean,maxCollapseTags:{type:Number,default:1},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]:t=>!!t||t===null,[CHANGE_EVENT]:t=>!!t||t===null,focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,visibleChange:t=>isBoolean$3(t),expandChange:t=>!!t,removeTag:t=>!!t},_hoisted_1$Q={key:0},_hoisted_2$z=["placeholder","onKeydown"],_hoisted_3$l=["onClick"],COMPONENT_NAME$e="ElCascader",__default__$13=defineComponent({name:COMPONENT_NAME$e}),_sfc_main$1F=defineComponent({...__default__$13,props:cascaderProps,emits:cascaderEmits,setup(t,{expose:r,emit:$}){const V=t,oe={modifiers:[{name:"arrowPosition",enabled:!0,phase:"main",fn:({state:ar})=>{const{modifiersData:tr,placement:Sr}=ar;["right","left","bottom","top"].includes(Sr)||(tr.arrow.x=35)},requires:["arrow"]}]},ie=useAttrs$1();let le=0,ue=0;const de=useNamespace("cascader"),pe=useNamespace("input"),{t:he}=useLocale(),{form:_e,formItem:$e}=useFormItem(),Ie=ref(null),Ve=ref(null),Fe=ref(null),Ue=ref(null),qe=ref(null),Et=ref(!1),Lt=ref(!1),hn=ref(!1),Cn=ref(!1),bn=ref(""),Sn=ref(""),En=ref([]),wn=ref([]),$n=ref([]),Tn=ref(!1),xn=computed(()=>ie.style),An=computed(()=>V.disabled||(_e==null?void 0:_e.disabled)),Mn=computed(()=>V.placeholder||he("el.cascader.placeholder")),Vn=computed(()=>Sn.value||En.value.length>0||Tn.value?"":Mn.value),Bn=useFormSize(),Dn=computed(()=>["small"].includes(Bn.value)?"small":"default"),Ln=computed(()=>!!V.props.multiple),Pn=computed(()=>!V.filterable||Ln.value),Fn=computed(()=>Ln.value?Sn.value:bn.value),Un=computed(()=>{var ar;return((ar=Ue.value)==null?void 0:ar.checkedNodes)||[]}),Wn=computed(()=>!V.clearable||An.value||hn.value||!Lt.value?!1:!!Un.value.length),Zn=computed(()=>{const{showAllLevels:ar,separator:tr}=V,Sr=Un.value;return Sr.length?Ln.value?"":Sr[0].calcText(ar,tr):""}),or=computed({get(){return cloneDeep(V.modelValue)},set(ar){$(UPDATE_MODEL_EVENT,ar),$(CHANGE_EVENT,ar),V.validateEvent&&($e==null||$e.validate("change").catch(tr=>void 0))}}),br=computed(()=>[de.b(),de.m(Bn.value),de.is("disabled",An.value),ie.class]),Qn=computed(()=>[pe.e("icon"),"icon-arrow-down",de.is("reverse",Et.value)]),Gn=computed(()=>de.is("focus",Et.value||Cn.value)),Yn=computed(()=>{var ar,tr;return(tr=(ar=Ie.value)==null?void 0:ar.popperRef)==null?void 0:tr.contentRef}),er=ar=>{var tr,Sr,qn;An.value||(ar=ar??!Et.value,ar!==Et.value&&(Et.value=ar,(Sr=(tr=Ve.value)==null?void 0:tr.input)==null||Sr.setAttribute("aria-expanded",`${ar}`),ar?(lr(),nextTick((qn=Ue.value)==null?void 0:qn.scrollToExpandingNode)):V.filterable&&nr(),$("visibleChange",ar)))},lr=()=>{nextTick(()=>{var ar;(ar=Ie.value)==null||ar.updatePopper()})},sr=()=>{hn.value=!1},zn=ar=>{const{showAllLevels:tr,separator:Sr}=V;return{node:ar,key:ar.uid,text:ar.calcText(tr,Sr),hitState:!1,closable:!An.value&&!ar.isDisabled,isCollapseTag:!1}},Kn=ar=>{var tr;const Sr=ar.node;Sr.doCheck(!1),(tr=Ue.value)==null||tr.calculateCheckedValue(),$("removeTag",Sr.valueByOption)},Jn=()=>{if(!Ln.value)return;const ar=Un.value,tr=[],Sr=[];if(ar.forEach(qn=>Sr.push(zn(qn))),wn.value=Sr,ar.length){ar.slice(0,V.maxCollapseTags).forEach(Dr=>tr.push(zn(Dr)));const qn=ar.slice(V.maxCollapseTags),kr=qn.length;kr&&(V.collapseTags?tr.push({key:-1,text:`+ ${kr}`,closable:!1,isCollapseTag:!0}):qn.forEach(Dr=>tr.push(zn(Dr))))}En.value=tr},cr=()=>{var ar,tr;const{filterMethod:Sr,showAllLevels:qn,separator:kr}=V,Dr=(tr=(ar=Ue.value)==null?void 0:ar.getFlattedNodes(!V.props.checkStrictly))==null?void 0:tr.filter(Hr=>Hr.isDisabled?!1:(Hr.calcText(qn,kr),Sr(Hr,Fn.value)));Ln.value&&(En.value.forEach(Hr=>{Hr.hitState=!1}),wn.value.forEach(Hr=>{Hr.hitState=!1})),hn.value=!0,$n.value=Dr,lr()},_r=()=>{var ar;let tr;hn.value&&qe.value?tr=qe.value.$el.querySelector(`.${de.e("suggestion-item")}`):tr=(ar=Ue.value)==null?void 0:ar.$el.querySelector(`.${de.b("node")}[tabindex="-1"]`),tr&&(tr.focus(),!hn.value&&tr.click())},ur=()=>{var ar,tr;const Sr=(ar=Ve.value)==null?void 0:ar.input,qn=Fe.value,kr=(tr=qe.value)==null?void 0:tr.$el;if(!(!isClient$1||!Sr)){if(kr){const Dr=kr.querySelector(`.${de.e("suggestion-list")}`);Dr.style.minWidth=`${Sr.offsetWidth}px`}if(qn){const{offsetHeight:Dr}=qn,Hr=En.value.length>0?`${Math.max(Dr+6,le)}px`:`${le}px`;Sr.style.height=Hr,lr()}}},wr=ar=>{var tr;return(tr=Ue.value)==null?void 0:tr.getCheckedNodes(ar)},Cr=ar=>{lr(),$("expandChange",ar)},mr=ar=>{var tr;const Sr=(tr=ar.target)==null?void 0:tr.value;if(ar.type==="compositionend")Tn.value=!1,nextTick(()=>Nr(Sr));else{const qn=Sr[Sr.length-1]||"";Tn.value=!isKorean(qn)}},Er=ar=>{if(!Tn.value)switch(ar.code){case EVENT_CODE.enter:er();break;case EVENT_CODE.down:er(!0),nextTick(_r),ar.preventDefault();break;case EVENT_CODE.esc:Et.value===!0&&(ar.preventDefault(),ar.stopPropagation(),er(!1));break;case EVENT_CODE.tab:er(!1);break}},Tr=()=>{var ar;(ar=Ue.value)==null||ar.clearCheckedNodes(),!Et.value&&V.filterable&&nr(),er(!1)},nr=()=>{const{value:ar}=Zn;bn.value=ar,Sn.value=ar},pr=ar=>{var tr,Sr;const{checked:qn}=ar;Ln.value?(tr=Ue.value)==null||tr.handleCheckChange(ar,!qn,!1):(!qn&&((Sr=Ue.value)==null||Sr.handleCheckChange(ar,!0,!1)),er(!1))},gr=ar=>{const tr=ar.target,{code:Sr}=ar;switch(Sr){case EVENT_CODE.up:case EVENT_CODE.down:{const qn=Sr===EVENT_CODE.up?-1:1;focusNode(getSibling(tr,qn,`.${de.e("suggestion-item")}[tabindex="-1"]`));break}case EVENT_CODE.enter:tr.click();break}},$r=()=>{const ar=En.value,tr=ar[ar.length-1];ue=Sn.value?0:ue+1,!(!tr||!ue||V.collapseTags&&ar.length>1)&&(tr.hitState?Kn(tr):tr.hitState=!0)},Rr=ar=>{const tr=ar.target,Sr=de.e("search-input");tr.className===Sr&&(Cn.value=!0),$("focus",ar)},Lr=ar=>{Cn.value=!1,$("blur",ar)},Vr=debounce(()=>{const{value:ar}=Fn;if(!ar)return;const tr=V.beforeFilter(ar);isPromise(tr)?tr.then(cr).catch(()=>{}):tr!==!1?cr():sr()},V.debounce),Nr=(ar,tr)=>{!Et.value&&er(!0),!(tr!=null&&tr.isComposing)&&(ar?Vr():sr())},dr=ar=>Number.parseFloat(useCssVar(pe.cssVarName("input-height"),ar).value)-2;return watch(hn,lr),watch([Un,An],Jn),watch(En,()=>{nextTick(()=>ur())}),watch(Bn,async()=>{await nextTick();const ar=Ve.value.input;le=dr(ar)||le,ur()}),watch(Zn,nr,{immediate:!0}),onMounted(()=>{const ar=Ve.value.input,tr=dr(ar);le=ar.offsetHeight||tr,useResizeObserver$1(ar,ur)}),r({getCheckedNodes:wr,cascaderPanelRef:Ue,togglePopperVisible:er,contentRef:Yn}),(ar,tr)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"tooltipRef",ref:Ie,visible:Et.value,teleported:ar.teleported,"popper-class":[unref(de).e("dropdown"),ar.popperClass],"popper-options":oe,"fallback-placements":["bottom-start","bottom","top-start","top","right","left"],"stop-popper-mouse-event":!1,"gpu-acceleration":!1,placement:"bottom-start",transition:`${unref(de).namespace.value}-zoom-in-top`,effect:"light",pure:"",persistent:"",onHide:sr},{default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",{class:normalizeClass(unref(br)),style:normalizeStyle$1(unref(xn)),onClick:tr[5]||(tr[5]=()=>er(unref(Pn)?void 0:!0)),onKeydown:Er,onMouseenter:tr[6]||(tr[6]=Sr=>Lt.value=!0),onMouseleave:tr[7]||(tr[7]=Sr=>Lt.value=!1)},[createVNode(unref(ElInput),{ref_key:"input",ref:Ve,modelValue:bn.value,"onUpdate:modelValue":tr[1]||(tr[1]=Sr=>bn.value=Sr),placeholder:unref(Vn),readonly:unref(Pn),disabled:unref(An),"validate-event":!1,size:unref(Bn),class:normalizeClass(unref(Gn)),tabindex:unref(Ln)&&ar.filterable&&!unref(An)?-1:void 0,onCompositionstart:mr,onCompositionupdate:mr,onCompositionend:mr,onFocus:Rr,onBlur:Lr,onInput:Nr},{suffix:withCtx(()=>[unref(Wn)?(openBlock(),createBlock(unref(ElIcon),{key:"clear",class:normalizeClass([unref(pe).e("icon"),"icon-circle-close"]),onClick:withModifiers(Tr,["stop"])},{default:withCtx(()=>[createVNode(unref(circle_close_default))]),_:1},8,["class","onClick"])):(openBlock(),createBlock(unref(ElIcon),{key:"arrow-down",class:normalizeClass(unref(Qn)),onClick:tr[0]||(tr[0]=withModifiers(Sr=>er(),["stop"]))},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]))]),_:1},8,["modelValue","placeholder","readonly","disabled","size","class","tabindex"]),unref(Ln)?(openBlock(),createElementBlock("div",{key:0,ref_key:"tagWrapper",ref:Fe,class:normalizeClass(unref(de).e("tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(En.value,Sr=>(openBlock(),createBlock(unref(ElTag),{key:Sr.key,type:ar.tagType,size:unref(Dn),hit:Sr.hitState,closable:Sr.closable,"disable-transitions":"",onClose:qn=>Kn(Sr)},{default:withCtx(()=>[Sr.isCollapseTag===!1?(openBlock(),createElementBlock("span",_hoisted_1$Q,toDisplayString$1(Sr.text),1)):(openBlock(),createBlock(unref(ElTooltip),{key:1,disabled:Et.value||!ar.collapseTagsTooltip,"fallback-placements":["bottom","top","right","left"],placement:"bottom",effect:"light"},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(Sr.text),1)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(de).e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(wn.value.slice(ar.maxCollapseTags),(qn,kr)=>(openBlock(),createElementBlock("div",{key:kr,class:normalizeClass(unref(de).e("collapse-tag"))},[(openBlock(),createBlock(unref(ElTag),{key:qn.key,class:"in-tooltip",type:ar.tagType,size:unref(Dn),hit:qn.hitState,closable:qn.closable,"disable-transitions":"",onClose:Dr=>Kn(qn)},{default:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(qn.text),1)]),_:2},1032,["type","size","hit","closable","onClose"]))],2))),128))],2)]),_:2},1032,["disabled"]))]),_:2},1032,["type","size","hit","closable","onClose"]))),128)),ar.filterable&&!unref(An)?withDirectives((openBlock(),createElementBlock("input",{key:0,"onUpdate:modelValue":tr[2]||(tr[2]=Sr=>Sn.value=Sr),type:"text",class:normalizeClass(unref(de).e("search-input")),placeholder:unref(Zn)?"":unref(Mn),onInput:tr[3]||(tr[3]=Sr=>Nr(Sn.value,Sr)),onClick:tr[4]||(tr[4]=withModifiers(Sr=>er(!0),["stop"])),onKeydown:withKeys($r,["delete"]),onCompositionstart:mr,onCompositionupdate:mr,onCompositionend:mr,onFocus:Rr,onBlur:Lr},null,42,_hoisted_2$z)),[[vModelText,Sn.value]]):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],38)),[[unref(ClickOutside),()=>er(!1),unref(Yn)]])]),content:withCtx(()=>[withDirectives(createVNode(unref(_CascaderPanel),{ref_key:"cascaderPanelRef",ref:Ue,modelValue:unref(or),"onUpdate:modelValue":tr[8]||(tr[8]=Sr=>isRef(or)?or.value=Sr:null),options:ar.options,props:V.props,border:!1,"render-label":ar.$slots.default,onExpandChange:Cr,onClose:tr[9]||(tr[9]=Sr=>ar.$nextTick(()=>er(!1)))},null,8,["modelValue","options","props","render-label"]),[[vShow,!hn.value]]),ar.filterable?withDirectives((openBlock(),createBlock(unref(ElScrollbar),{key:0,ref_key:"suggestionPanel",ref:qe,tag:"ul",class:normalizeClass(unref(de).e("suggestion-panel")),"view-class":unref(de).e("suggestion-list"),onKeydown:gr},{default:withCtx(()=>[$n.value.length?(openBlock(!0),createElementBlock(Fragment,{key:0},renderList($n.value,Sr=>(openBlock(),createElementBlock("li",{key:Sr.uid,class:normalizeClass([unref(de).e("suggestion-item"),unref(de).is("checked",Sr.checked)]),tabindex:-1,onClick:qn=>pr(Sr)},[createBaseVNode("span",null,toDisplayString$1(Sr.text),1),Sr.checked?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1})):createCommentVNode("v-if",!0)],10,_hoisted_3$l))),128)):renderSlot(ar.$slots,"empty",{key:1},()=>[createBaseVNode("li",{class:normalizeClass(unref(de).e("empty-text"))},toDisplayString$1(unref(he)("el.cascader.noMatch")),3)])]),_:3},8,["class","view-class"])),[[vShow,hn.value]]):createCommentVNode("v-if",!0)]),_:3},8,["visible","teleported","popper-class","transition"]))}});var Cascader=_export_sfc$1(_sfc_main$1F,[["__file","/home/runner/work/element-plus/element-plus/packages/components/cascader/src/cascader.vue"]]);Cascader.install=t=>{t.component(Cascader.name,Cascader)};const _Cascader=Cascader,ElCascader=_Cascader,checkTagProps=buildProps({checked:{type:Boolean,default:!1}}),checkTagEmits={"update:checked":t=>isBoolean$3(t),[CHANGE_EVENT]:t=>isBoolean$3(t)},__default__$12=defineComponent({name:"ElCheckTag"}),_sfc_main$1E=defineComponent({...__default__$12,props:checkTagProps,emits:checkTagEmits,setup(t,{emit:r}){const $=t,V=useNamespace("check-tag"),oe=computed(()=>[V.b(),V.is("checked",$.checked)]),ie=()=>{const le=!$.checked;r(CHANGE_EVENT,le),r("update:checked",le)};return(le,ue)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe)),onClick:ie},[renderSlot(le.$slots,"default")],2))}});var CheckTag=_export_sfc$1(_sfc_main$1E,[["__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__$11=defineComponent({name:"ElRow"}),_sfc_main$1D=defineComponent({...__default__$11,props:rowProps,setup(t){const r=t,$=useNamespace("row"),V=computed(()=>r.gutter);provide(rowContextKey,{gutter:V});const oe=computed(()=>{const le={};return r.gutter&&(le.marginRight=le.marginLeft=`-${r.gutter/2}px`),le}),ie=computed(()=>[$.b(),$.is(`justify-${r.justify}`,r.justify!=="start"),$.is(`align-${r.align}`,!!r.align)]);return(le,ue)=>(openBlock(),createBlock(resolveDynamicComponent(le.tag),{class:normalizeClass(unref(ie)),style:normalizeStyle$1(unref(oe))},{default:withCtx(()=>[renderSlot(le.$slots,"default")]),_:3},8,["class","style"]))}});var Row=_export_sfc$1(_sfc_main$1D,[["__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$1C=defineComponent({...__default__$10,props:colProps,setup(t){const r=t,{gutter:$}=inject(rowContextKey,{gutter:computed(()=>0)}),V=useNamespace("col"),oe=computed(()=>{const le={};return $.value&&(le.paddingLeft=le.paddingRight=`${$.value/2}px`),le}),ie=computed(()=>{const le=[];return["span","offset","pull","push"].forEach(pe=>{const he=r[pe];isNumber$4(he)&&(pe==="span"?le.push(V.b(`${r[pe]}`)):he>0&&le.push(V.b(`${pe}-${r[pe]}`)))}),["xs","sm","md","lg","xl"].forEach(pe=>{isNumber$4(r[pe])?le.push(V.b(`${pe}-${r[pe]}`)):isObject$a(r[pe])&&Object.entries(r[pe]).forEach(([he,_e])=>{le.push(he!=="span"?V.b(`${pe}-${he}-${_e}`):V.b(`${pe}-${_e}`))})}),$.value&&le.push(V.is("guttered")),[V.b(),le]});return(le,ue)=>(openBlock(),createBlock(resolveDynamicComponent(le.tag),{class:normalizeClass(unref(ie)),style:normalizeStyle$1(unref(oe))},{default:withCtx(()=>[renderSlot(le.$slots,"default")]),_:3},8,["class","style"]))}});var Col=_export_sfc$1(_sfc_main$1C,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const ElCol=withInstall(Col),emitChangeFn=t=>typeof isNumber$4(t),collapseProps=buildProps({accordion:Boolean,modelValue:{type:definePropType([Array,String,Number]),default:()=>mutable([])}}),collapseEmits={[UPDATE_MODEL_EVENT]:emitChangeFn,[CHANGE_EVENT]:emitChangeFn},collapseContextKey=Symbol("collapseContextKey"),useCollapse=(t,r)=>{const $=ref(castArray$1(t.modelValue)),V=ie=>{$.value=ie;const le=t.accordion?$.value[0]:$.value;r(UPDATE_MODEL_EVENT,le),r(CHANGE_EVENT,le)},oe=ie=>{if(t.accordion)V([$.value[0]===ie?"":ie]);else{const le=[...$.value],ue=le.indexOf(ie);ue>-1?le.splice(ue,1):le.push(ie),V(le)}};return watch(()=>t.modelValue,()=>$.value=castArray$1(t.modelValue),{deep:!0}),provide(collapseContextKey,{activeNames:$,handleItemClick:oe}),{activeNames:$,setActiveNames:V}},useCollapseDOM=()=>{const t=useNamespace("collapse");return{rootKls:computed(()=>t.b())}},__default__$$=defineComponent({name:"ElCollapse"}),_sfc_main$1B=defineComponent({...__default__$$,props:collapseProps,emits:collapseEmits,setup(t,{expose:r,emit:$}){const V=t,{activeNames:oe,setActiveNames:ie}=useCollapse(V,$),{rootKls:le}=useCollapseDOM();return r({activeNames:oe,setActiveNames:ie}),(ue,de)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le))},[renderSlot(ue.$slots,"default")],2))}});var Collapse=_export_sfc$1(_sfc_main$1B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const __default__$_=defineComponent({name:"ElCollapseTransition"}),_sfc_main$1A=defineComponent({...__default__$_,setup(t){const r=useNamespace("collapse-transition"),$=oe=>{oe.style.maxHeight="",oe.style.overflow=oe.dataset.oldOverflow,oe.style.paddingTop=oe.dataset.oldPaddingTop,oe.style.paddingBottom=oe.dataset.oldPaddingBottom},V={beforeEnter(oe){oe.dataset||(oe.dataset={}),oe.dataset.oldPaddingTop=oe.style.paddingTop,oe.dataset.oldPaddingBottom=oe.style.paddingBottom,oe.style.maxHeight=0,oe.style.paddingTop=0,oe.style.paddingBottom=0},enter(oe){oe.dataset.oldOverflow=oe.style.overflow,oe.scrollHeight!==0?oe.style.maxHeight=`${oe.scrollHeight}px`:oe.style.maxHeight=0,oe.style.paddingTop=oe.dataset.oldPaddingTop,oe.style.paddingBottom=oe.dataset.oldPaddingBottom,oe.style.overflow="hidden"},afterEnter(oe){oe.style.maxHeight="",oe.style.overflow=oe.dataset.oldOverflow},enterCancelled(oe){$(oe)},beforeLeave(oe){oe.dataset||(oe.dataset={}),oe.dataset.oldPaddingTop=oe.style.paddingTop,oe.dataset.oldPaddingBottom=oe.style.paddingBottom,oe.dataset.oldOverflow=oe.style.overflow,oe.style.maxHeight=`${oe.scrollHeight}px`,oe.style.overflow="hidden"},leave(oe){oe.scrollHeight!==0&&(oe.style.maxHeight=0,oe.style.paddingTop=0,oe.style.paddingBottom=0)},afterLeave(oe){$(oe)},leaveCancelled(oe){$(oe)}};return(oe,ie)=>(openBlock(),createBlock(Transition,mergeProps({name:unref(r).b()},toHandlers(V)),{default:withCtx(()=>[renderSlot(oe.$slots,"default")]),_:3},16,["name"]))}});var CollapseTransition=_export_sfc$1(_sfc_main$1A,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);CollapseTransition.install=t=>{t.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=t=>{const r=inject(collapseContextKey),$=ref(!1),V=ref(!1),oe=ref(generateId()),ie=computed(()=>r==null?void 0:r.activeNames.value.includes(t.name));return{focusing:$,id:oe,isActive:ie,handleFocus:()=>{setTimeout(()=>{V.value?V.value=!1:$.value=!0},50)},handleHeaderClick:()=>{t.disabled||(r==null||r.handleItemClick(t.name),$.value=!1,V.value=!0)},handleEnterClick:()=>{r==null||r.handleItemClick(t.name)}}},useCollapseItemDOM=(t,{focusing:r,isActive:$,id:V})=>{const oe=useNamespace("collapse"),ie=computed(()=>[oe.b("item"),oe.is("active",unref($)),oe.is("disabled",t.disabled)]),le=computed(()=>[oe.be("item","header"),oe.is("active",unref($)),{focusing:unref(r)&&!t.disabled}]),ue=computed(()=>[oe.be("item","arrow"),oe.is("active",unref($))]),de=computed(()=>oe.be("item","wrap")),pe=computed(()=>oe.be("item","content")),he=computed(()=>oe.b(`content-${unref(V)}`)),_e=computed(()=>oe.b(`head-${unref(V)}`));return{arrowKls:ue,headKls:le,rootKls:ie,itemWrapperKls:de,itemContentKls:pe,scopedContentId:he,scopedHeadId:_e}},_hoisted_1$P=["id","aria-expanded","aria-controls","aria-describedby","tabindex"],_hoisted_2$y=["id","aria-hidden","aria-labelledby"],__default__$Z=defineComponent({name:"ElCollapseItem"}),_sfc_main$1z=defineComponent({...__default__$Z,props:collapseItemProps,setup(t,{expose:r}){const $=t,{focusing:V,id:oe,isActive:ie,handleFocus:le,handleHeaderClick:ue,handleEnterClick:de}=useCollapseItem($),{arrowKls:pe,headKls:he,rootKls:_e,itemWrapperKls:$e,itemContentKls:Ie,scopedContentId:Ve,scopedHeadId:Fe}=useCollapseItemDOM($,{focusing:V,isActive:ie,id:oe});return r({isActive:ie}),(Ue,qe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(_e))},[createBaseVNode("button",{id:unref(Fe),class:normalizeClass(unref(he)),"aria-expanded":unref(ie),"aria-controls":unref(Ve),"aria-describedby":unref(Ve),tabindex:Ue.disabled?-1:0,onClick:qe[0]||(qe[0]=(...Et)=>unref(ue)&&unref(ue)(...Et)),onKeydown:qe[1]||(qe[1]=withKeys(withModifiers((...Et)=>unref(de)&&unref(de)(...Et),["stop","prevent"]),["space","enter"])),onFocus:qe[2]||(qe[2]=(...Et)=>unref(le)&&unref(le)(...Et)),onBlur:qe[3]||(qe[3]=Et=>V.value=!1)},[renderSlot(Ue.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(Ue.title),1)]),createVNode(unref(ElIcon),{class:normalizeClass(unref(pe))},{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1},8,["class"])],42,_hoisted_1$P),createVNode(unref(_CollapseTransition),null,{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:unref(Ve),role:"region",class:normalizeClass(unref($e)),"aria-hidden":!unref(ie),"aria-labelledby":unref(Fe)},[createBaseVNode("div",{class:normalizeClass(unref(Ie))},[renderSlot(Ue.$slots,"default")],2)],10,_hoisted_2$y),[[vShow,unref(ie)]])]),_:3})],2))}});var CollapseItem=_export_sfc$1(_sfc_main$1z,[["__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(t,r){if(!isClient$1)return;const $=function(ie){var le;(le=r.drag)==null||le.call(r,ie)},V=function(ie){var le;document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",V),document.removeEventListener("touchmove",$),document.removeEventListener("touchend",V),document.onselectstart=null,document.ondragstart=null,isDragging=!1,(le=r.end)==null||le.call(r,ie)},oe=function(ie){var le;isDragging||(ie.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",$),document.addEventListener("mouseup",V),document.addEventListener("touchmove",$),document.addEventListener("touchend",V),isDragging=!0,(le=r.start)==null||le.call(r,ie))};t.addEventListener("mousedown",oe),t.addEventListener("touchstart",oe)}const useAlphaSlider=t=>{const r=getCurrentInstance(),$=shallowRef(),V=shallowRef();function oe(le){le.target!==$.value&&ie(le)}function ie(le){if(!V.value||!$.value)return;const de=r.vnode.el.getBoundingClientRect(),{clientX:pe,clientY:he}=getClientXY(le);if(t.vertical){let _e=he-de.top;_e=Math.max($.value.offsetHeight/2,_e),_e=Math.min(_e,de.height-$.value.offsetHeight/2),t.color.set("alpha",Math.round((_e-$.value.offsetHeight/2)/(de.height-$.value.offsetHeight)*100))}else{let _e=pe-de.left;_e=Math.max($.value.offsetWidth/2,_e),_e=Math.min(_e,de.width-$.value.offsetWidth/2),t.color.set("alpha",Math.round((_e-$.value.offsetWidth/2)/(de.width-$.value.offsetWidth)*100))}}return{thumb:$,bar:V,handleDrag:ie,handleClick:oe}},useAlphaSliderDOM=(t,{bar:r,thumb:$,handleDrag:V})=>{const oe=getCurrentInstance(),ie=useNamespace("color-alpha-slider"),le=ref(0),ue=ref(0),de=ref();function pe(){if(!$.value||t.vertical)return 0;const Et=oe.vnode.el,Lt=t.color.get("alpha");return Et?Math.round(Lt*(Et.offsetWidth-$.value.offsetWidth/2)/100):0}function he(){if(!$.value)return 0;const Et=oe.vnode.el;if(!t.vertical)return 0;const Lt=t.color.get("alpha");return Et?Math.round(Lt*(Et.offsetHeight-$.value.offsetHeight/2)/100):0}function _e(){if(t.color&&t.color.value){const{r:Et,g:Lt,b:hn}=t.color.toRgb();return`linear-gradient(to right, rgba(${Et}, ${Lt}, ${hn}, 0) 0%, rgba(${Et}, ${Lt}, ${hn}, 1) 100%)`}return""}function $e(){le.value=pe(),ue.value=he(),de.value=_e()}onMounted(()=>{if(!r.value||!$.value)return;const Et={drag:Lt=>{V(Lt)},end:Lt=>{V(Lt)}};draggable(r.value,Et),draggable($.value,Et),$e()}),watch(()=>t.color.get("alpha"),()=>$e()),watch(()=>t.color.value,()=>$e());const Ie=computed(()=>[ie.b(),ie.is("vertical",t.vertical)]),Ve=computed(()=>ie.e("bar")),Fe=computed(()=>ie.e("thumb")),Ue=computed(()=>({background:de.value})),qe=computed(()=>({left:addUnit(le.value),top:addUnit(ue.value)}));return{rootKls:Ie,barKls:Ve,barStyle:Ue,thumbKls:Fe,thumbStyle:qe,update:$e}},COMPONENT_NAME$d="ElColorAlphaSlider",__default__$Y=defineComponent({name:COMPONENT_NAME$d}),_sfc_main$1y=defineComponent({...__default__$Y,props:alphaSliderProps,setup(t,{expose:r}){const $=t,{bar:V,thumb:oe,handleDrag:ie,handleClick:le}=useAlphaSlider($),{rootKls:ue,barKls:de,barStyle:pe,thumbKls:he,thumbStyle:_e,update:$e}=useAlphaSliderDOM($,{bar:V,thumb:oe,handleDrag:ie});return r({update:$e,bar:V,thumb:oe}),(Ie,Ve)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue))},[createBaseVNode("div",{ref_key:"bar",ref:V,class:normalizeClass(unref(de)),style:normalizeStyle$1(unref(pe)),onClick:Ve[0]||(Ve[0]=(...Fe)=>unref(le)&&unref(le)(...Fe))},null,6),createBaseVNode("div",{ref_key:"thumb",ref:oe,class:normalizeClass(unref(he)),style:normalizeStyle$1(unref(_e))},null,6)],2))}});var AlphaSlider=_export_sfc$1(_sfc_main$1y,[["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const _sfc_main$1x=defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const r=useNamespace("color-hue-slider"),$=getCurrentInstance(),V=ref(),oe=ref(),ie=ref(0),le=ref(0),ue=computed(()=>t.color.get("hue"));watch(()=>ue.value,()=>{$e()});function de(Ie){Ie.target!==V.value&&pe(Ie)}function pe(Ie){if(!oe.value||!V.value)return;const Fe=$.vnode.el.getBoundingClientRect(),{clientX:Ue,clientY:qe}=getClientXY(Ie);let Et;if(t.vertical){let Lt=qe-Fe.top;Lt=Math.min(Lt,Fe.height-V.value.offsetHeight/2),Lt=Math.max(V.value.offsetHeight/2,Lt),Et=Math.round((Lt-V.value.offsetHeight/2)/(Fe.height-V.value.offsetHeight)*360)}else{let Lt=Ue-Fe.left;Lt=Math.min(Lt,Fe.width-V.value.offsetWidth/2),Lt=Math.max(V.value.offsetWidth/2,Lt),Et=Math.round((Lt-V.value.offsetWidth/2)/(Fe.width-V.value.offsetWidth)*360)}t.color.set("hue",Et)}function he(){if(!V.value)return 0;const Ie=$.vnode.el;if(t.vertical)return 0;const Ve=t.color.get("hue");return Ie?Math.round(Ve*(Ie.offsetWidth-V.value.offsetWidth/2)/360):0}function _e(){if(!V.value)return 0;const Ie=$.vnode.el;if(!t.vertical)return 0;const Ve=t.color.get("hue");return Ie?Math.round(Ve*(Ie.offsetHeight-V.value.offsetHeight/2)/360):0}function $e(){ie.value=he(),le.value=_e()}return onMounted(()=>{if(!oe.value||!V.value)return;const Ie={drag:Ve=>{pe(Ve)},end:Ve=>{pe(Ve)}};draggable(oe.value,Ie),draggable(V.value,Ie),$e()}),{bar:oe,thumb:V,thumbLeft:ie,thumbTop:le,hueValue:ue,handleClick:de,update:$e,ns:r}}});function _sfc_render$s(t,r,$,V,oe,ie){return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[createBaseVNode("div",{ref:"bar",class:normalizeClass(t.ns.e("bar")),onClick:r[0]||(r[0]=(...le)=>t.handleClick&&t.handleClick(...le))},null,2),createBaseVNode("div",{ref:"thumb",class:normalizeClass(t.ns.e("thumb")),style:normalizeStyle$1({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var HueSlider=_export_sfc$1(_sfc_main$1x,[["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]:t=>isString$6(t)||isNil(t),[CHANGE_EVENT]:t=>isString$6(t)||isNil(t),activeChange:t=>isString$6(t)||isNil(t)},colorPickerContextKey=Symbol("colorPickerContextKey"),hsv2hsl=function(t,r,$){return[t,r*$/((t=(2-r)*$)<1?t:2-t)||0,t/2]},isOnePointZero=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},isPercentage=function(t){return typeof t=="string"&&t.includes("%")},bound01=function(t,r){isOnePointZero(t)&&(t="100%");const $=isPercentage(t);return t=Math.min(r,Math.max(0,Number.parseFloat(`${t}`))),$&&(t=Number.parseInt(`${t*r}`,10)/100),Math.abs(t-r)<1e-6?1:t%r/Number.parseFloat(r)},INT_HEX_MAP={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hexOne=t=>{t=Math.min(Math.round(t),255);const r=Math.floor(t/16),$=t%16;return`${INT_HEX_MAP[r]||r}${INT_HEX_MAP[$]||$}`},toHex$1=function({r:t,g:r,b:$}){return Number.isNaN(+t)||Number.isNaN(+r)||Number.isNaN(+$)?"":`#${hexOne(t)}${hexOne(r)}${hexOne($)}`},HEX_INT_MAP={A:10,B:11,C:12,D:13,E:14,F:15},parseHexChannel=function(t){return t.length===2?(HEX_INT_MAP[t[0].toUpperCase()]||+t[0])*16+(HEX_INT_MAP[t[1].toUpperCase()]||+t[1]):HEX_INT_MAP[t[1].toUpperCase()]||+t[1]},hsl2hsv=function(t,r,$){r=r/100,$=$/100;let V=r;const oe=Math.max($,.01);$*=2,r*=$<=1?$:2-$,V*=oe<=1?oe:2-oe;const ie=($+r)/2,le=$===0?2*V/(oe+V):2*r/($+r);return{h:t,s:le*100,v:ie*100}},rgb2hsv=(t,r,$)=>{t=bound01(t,255),r=bound01(r,255),$=bound01($,255);const V=Math.max(t,r,$),oe=Math.min(t,r,$);let ie;const le=V,ue=V-oe,de=V===0?0:ue/V;if(V===oe)ie=0;else{switch(V){case t:{ie=(r-$)/ue+(r<$?6:0);break}case r:{ie=($-t)/ue+2;break}case $:{ie=(t-r)/ue+4;break}}ie/=6}return{h:ie*360,s:de*100,v:le*100}},hsv2rgb=function(t,r,$){t=bound01(t,360)*6,r=bound01(r,100),$=bound01($,100);const V=Math.floor(t),oe=t-V,ie=$*(1-r),le=$*(1-oe*r),ue=$*(1-(1-oe)*r),de=V%6,pe=[$,le,ie,ie,ue,$][de],he=[ue,$,$,le,ie,ie][de],_e=[ie,ie,ue,$,$,le][de];return{r:Math.round(pe*255),g:Math.round(he*255),b:Math.round(_e*255)}};class Color{constructor(r={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const $ in r)hasOwn$4(r,$)&&(this[$]=r[$]);r.value?this.fromString(r.value):this.doOnChange()}set(r,$){if(arguments.length===1&&typeof r=="object"){for(const V in r)hasOwn$4(r,V)&&this.set(V,r[V]);return}this[`_${r}`]=$,this.doOnChange()}get(r){return r==="alpha"?Math.floor(this[`_${r}`]):this[`_${r}`]}toRgb(){return hsv2rgb(this._hue,this._saturation,this._value)}fromString(r){if(!r){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const $=(V,oe,ie)=>{this._hue=Math.max(0,Math.min(360,V)),this._saturation=Math.max(0,Math.min(100,oe)),this._value=Math.max(0,Math.min(100,ie)),this.doOnChange()};if(r.includes("hsl")){const V=r.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(oe=>oe!=="").map((oe,ie)=>ie>2?Number.parseFloat(oe):Number.parseInt(oe,10));if(V.length===4?this._alpha=Number.parseFloat(V[3])*100:V.length===3&&(this._alpha=100),V.length>=3){const{h:oe,s:ie,v:le}=hsl2hsv(V[0],V[1],V[2]);$(oe,ie,le)}}else if(r.includes("hsv")){const V=r.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(oe=>oe!=="").map((oe,ie)=>ie>2?Number.parseFloat(oe):Number.parseInt(oe,10));V.length===4?this._alpha=Number.parseFloat(V[3])*100:V.length===3&&(this._alpha=100),V.length>=3&&$(V[0],V[1],V[2])}else if(r.includes("rgb")){const V=r.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(oe=>oe!=="").map((oe,ie)=>ie>2?Number.parseFloat(oe):Number.parseInt(oe,10));if(V.length===4?this._alpha=Number.parseFloat(V[3])*100:V.length===3&&(this._alpha=100),V.length>=3){const{h:oe,s:ie,v:le}=rgb2hsv(V[0],V[1],V[2]);$(oe,ie,le)}}else if(r.includes("#")){const V=r.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(V))return;let oe,ie,le;V.length===3?(oe=parseHexChannel(V[0]+V[0]),ie=parseHexChannel(V[1]+V[1]),le=parseHexChannel(V[2]+V[2])):(V.length===6||V.length===8)&&(oe=parseHexChannel(V.slice(0,2)),ie=parseHexChannel(V.slice(2,4)),le=parseHexChannel(V.slice(4,6))),V.length===8?this._alpha=parseHexChannel(V.slice(6))/255*100:(V.length===3||V.length===6)&&(this._alpha=100);const{h:ue,s:de,v:pe}=rgb2hsv(oe,ie,le);$(ue,de,pe)}}compare(r){return Math.abs(r._hue-this._hue)<2&&Math.abs(r._saturation-this._saturation)<1&&Math.abs(r._value-this._value)<1&&Math.abs(r._alpha-this._alpha)<1}doOnChange(){const{_hue:r,_saturation:$,_value:V,_alpha:oe,format:ie}=this;if(this.enableAlpha)switch(ie){case"hsl":{const le=hsv2hsl(r,$/100,V/100);this.value=`hsla(${r}, ${Math.round(le[1]*100)}%, ${Math.round(le[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${r}, ${Math.round($)}%, ${Math.round(V)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${toHex$1(hsv2rgb(r,$,V))}${hexOne(oe*255/100)}`;break}default:{const{r:le,g:ue,b:de}=hsv2rgb(r,$,V);this.value=`rgba(${le}, ${ue}, ${de}, ${this.get("alpha")/100})`}}else switch(ie){case"hsl":{const le=hsv2hsl(r,$/100,V/100);this.value=`hsl(${r}, ${Math.round(le[1]*100)}%, ${Math.round(le[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${r}, ${Math.round($)}%, ${Math.round(V)}%)`;break}case"rgb":{const{r:le,g:ue,b:de}=hsv2rgb(r,$,V);this.value=`rgb(${le}, ${ue}, ${de})`;break}default:this.value=toHex$1(hsv2rgb(r,$,V))}}}const _sfc_main$1w=defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(t){const r=useNamespace("color-predefine"),{currentColor:$}=inject(colorPickerContextKey),V=ref(ie(t.colors,t.color));watch(()=>$.value,le=>{const ue=new Color;ue.fromString(le),V.value.forEach(de=>{de.selected=ue.compare(de)})}),watchEffect(()=>{V.value=ie(t.colors,t.color)});function oe(le){t.color.fromString(t.colors[le])}function ie(le,ue){return le.map(de=>{const pe=new Color;return pe.enableAlpha=!0,pe.format="rgba",pe.fromString(de),pe.selected=pe.value===ue.value,pe})}return{rgbaColors:V,handleSelect:oe,ns:r}}}),_hoisted_1$O=["onClick"];function _sfc_render$r(t,r,$,V,oe,ie){return openBlock(),createElementBlock("div",{class:normalizeClass(t.ns.b())},[createBaseVNode("div",{class:normalizeClass(t.ns.e("colors"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.rgbaColors,(le,ue)=>(openBlock(),createElementBlock("div",{key:t.colors[ue],class:normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",le._alpha<100),{selected:le.selected}]),onClick:de=>t.handleSelect(ue)},[createBaseVNode("div",{style:normalizeStyle$1({backgroundColor:le.value})},null,4)],10,_hoisted_1$O))),128))],2)],2)}var Predefine=_export_sfc$1(_sfc_main$1w,[["render",_sfc_render$r],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const _sfc_main$1v=defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const r=useNamespace("color-svpanel"),$=getCurrentInstance(),V=ref(0),oe=ref(0),ie=ref("hsl(0, 100%, 50%)"),le=computed(()=>{const pe=t.color.get("hue"),he=t.color.get("value");return{hue:pe,value:he}});function ue(){const pe=t.color.get("saturation"),he=t.color.get("value"),_e=$.vnode.el,{clientWidth:$e,clientHeight:Ie}=_e;oe.value=pe*$e/100,V.value=(100-he)*Ie/100,ie.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function de(pe){const _e=$.vnode.el.getBoundingClientRect(),{clientX:$e,clientY:Ie}=getClientXY(pe);let Ve=$e-_e.left,Fe=Ie-_e.top;Ve=Math.max(0,Ve),Ve=Math.min(Ve,_e.width),Fe=Math.max(0,Fe),Fe=Math.min(Fe,_e.height),oe.value=Ve,V.value=Fe,t.color.set({saturation:Ve/_e.width*100,value:100-Fe/_e.height*100})}return watch(()=>le.value,()=>{ue()}),onMounted(()=>{draggable($.vnode.el,{drag:pe=>{de(pe)},end:pe=>{de(pe)}}),ue()}),{cursorTop:V,cursorLeft:oe,background:ie,colorValue:le,handleDrag:de,update:ue,ns:r}}}),_hoisted_1$N=createBaseVNode("div",null,null,-1),_hoisted_2$x=[_hoisted_1$N];function _sfc_render$q(t,r,$,V,oe,ie){return openBlock(),createElementBlock("div",{class:normalizeClass(t.ns.b()),style:normalizeStyle$1({backgroundColor:t.background})},[createBaseVNode("div",{class:normalizeClass(t.ns.e("white"))},null,2),createBaseVNode("div",{class:normalizeClass(t.ns.e("black"))},null,2),createBaseVNode("div",{class:normalizeClass(t.ns.e("cursor")),style:normalizeStyle$1({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},_hoisted_2$x,6)],6)}var SvPanel=_export_sfc$1(_sfc_main$1v,[["render",_sfc_render$q],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _hoisted_1$M=["id","aria-label","aria-labelledby","aria-description","tabindex","onKeydown"],__default__$X=defineComponent({name:"ElColorPicker"}),_sfc_main$1u=defineComponent({...__default__$X,props:colorPickerProps,emits:colorPickerEmits,setup(t,{expose:r,emit:$}){const V=t,{t:oe}=useLocale(),ie=useNamespace("color"),{formItem:le}=useFormItem(),ue=useFormSize(),de=useFormDisabled(),{inputId:pe,isLabeledByFormItem:he}=useFormItemInputId(V,{formItemContext:le}),_e=ref(),$e=ref(),Ie=ref(),Ve=ref();let Fe=!0;const Ue=reactive(new Color({enableAlpha:V.showAlpha,format:V.colorFormat||"",value:V.modelValue})),qe=ref(!1),Et=ref(!1),Lt=ref(""),hn=computed(()=>!V.modelValue&&!Et.value?"transparent":wn(Ue,V.showAlpha)),Cn=computed(()=>!V.modelValue&&!Et.value?"":Ue.value),bn=computed(()=>he.value?void 0:V.label||oe("el.colorpicker.defaultLabel")),Sn=computed(()=>he.value?le==null?void 0:le.labelId:void 0),En=computed(()=>[ie.b("picker"),ie.is("disabled",de.value),ie.bm("picker",ue.value)]);function wn(Pn,Fn){if(!(Pn instanceof Color))throw new TypeError("color should be instance of _color Class");const{r:Un,g:Wn,b:Zn}=Pn.toRgb();return Fn?`rgba(${Un}, ${Wn}, ${Zn}, ${Pn.get("alpha")/100})`:`rgb(${Un}, ${Wn}, ${Zn})`}function $n(Pn){qe.value=Pn}const Tn=debounce($n,100);function xn(){de.value||$n(!0)}function An(){Tn(!1),Mn()}function Mn(){nextTick(()=>{V.modelValue?Ue.fromString(V.modelValue):(Ue.value="",nextTick(()=>{Et.value=!1}))})}function Vn(){de.value||Tn(!qe.value)}function Bn(){Ue.fromString(Lt.value)}function Dn(){const Pn=Ue.value;$(UPDATE_MODEL_EVENT,Pn),$("change",Pn),V.validateEvent&&(le==null||le.validate("change").catch(Fn=>void 0)),Tn(!1),nextTick(()=>{const Fn=new Color({enableAlpha:V.showAlpha,format:V.colorFormat||"",value:V.modelValue});Ue.compare(Fn)||Mn()})}function Ln(){Tn(!1),$(UPDATE_MODEL_EVENT,null),$("change",null),V.modelValue!==null&&V.validateEvent&&(le==null||le.validate("change").catch(Pn=>void 0)),Mn()}return onMounted(()=>{V.modelValue&&(Lt.value=Cn.value)}),watch(()=>V.modelValue,Pn=>{Pn?Pn&&Pn!==Ue.value&&(Fe=!1,Ue.fromString(Pn)):Et.value=!1}),watch(()=>Cn.value,Pn=>{Lt.value=Pn,Fe&&$("activeChange",Pn),Fe=!0}),watch(()=>Ue.value,()=>{!V.modelValue&&!Et.value&&(Et.value=!0)}),watch(()=>qe.value,()=>{nextTick(()=>{var Pn,Fn,Un;(Pn=_e.value)==null||Pn.update(),(Fn=$e.value)==null||Fn.update(),(Un=Ie.value)==null||Un.update()})}),provide(colorPickerContextKey,{currentColor:Cn}),r({color:Ue,show:xn,hide:An}),(Pn,Fn)=>(openBlock(),createBlock(unref(ElTooltip),{ref_key:"popper",ref:Ve,visible:qe.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[unref(ie).be("picker","panel"),unref(ie).b("dropdown"),Pn.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${unref(ie).namespace.value}-zoom-in-top`,persistent:""},{content:withCtx(()=>[withDirectives((openBlock(),createElementBlock("div",null,[createBaseVNode("div",{class:normalizeClass(unref(ie).be("dropdown","main-wrapper"))},[createVNode(HueSlider,{ref_key:"hue",ref:_e,class:"hue-slider",color:unref(Ue),vertical:""},null,8,["color"]),createVNode(SvPanel,{ref_key:"sv",ref:$e,color:unref(Ue)},null,8,["color"])],2),Pn.showAlpha?(openBlock(),createBlock(AlphaSlider,{key:0,ref_key:"alpha",ref:Ie,color:unref(Ue)},null,8,["color"])):createCommentVNode("v-if",!0),Pn.predefine?(openBlock(),createBlock(Predefine,{key:1,ref:"predefine",color:unref(Ue),colors:Pn.predefine},null,8,["color","colors"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).be("dropdown","btns"))},[createBaseVNode("span",{class:normalizeClass(unref(ie).be("dropdown","value"))},[createVNode(unref(ElInput),{modelValue:Lt.value,"onUpdate:modelValue":Fn[0]||(Fn[0]=Un=>Lt.value=Un),"validate-event":!1,size:"small",onKeyup:withKeys(Bn,["enter"]),onBlur:Bn},null,8,["modelValue","onKeyup"])],2),createVNode(unref(ElButton),{class:normalizeClass(unref(ie).be("dropdown","link-btn")),text:"",size:"small",onClick:Ln},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe)("el.colorpicker.clear")),1)]),_:1},8,["class"]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(ie).be("dropdown","btn")),onClick:Dn},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(oe)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)])),[[unref(ClickOutside),An]])]),default:withCtx(()=>[createBaseVNode("div",{id:unref(pe),class:normalizeClass(unref(En)),role:"button","aria-label":unref(bn),"aria-labelledby":unref(Sn),"aria-description":unref(oe)("el.colorpicker.description",{color:Pn.modelValue||""}),tabindex:Pn.tabindex,onKeydown:withKeys(Vn,["enter"])},[unref(de)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).be("picker","mask"))},null,2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ie).be("picker","trigger")),onClick:Vn},[createBaseVNode("span",{class:normalizeClass([unref(ie).be("picker","color"),unref(ie).is("alpha",Pn.showAlpha)])},[createBaseVNode("span",{class:normalizeClass(unref(ie).be("picker","color-inner")),style:normalizeStyle$1({backgroundColor:unref(hn)})},[withDirectives(createVNode(unref(ElIcon),{class:normalizeClass([unref(ie).be("picker","icon"),unref(ie).is("icon-arrow-down")])},{default:withCtx(()=>[createVNode(unref(arrow_down_default))]),_:1},8,["class"]),[[vShow,Pn.modelValue||Et.value]]),withDirectives(createVNode(unref(ElIcon),{class:normalizeClass([unref(ie).be("picker","empty"),unref(ie).is("icon-close")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"]),[[vShow,!Pn.modelValue&&!Et.value]])],6)],2)],2)],42,_hoisted_1$M)]),_:1},8,["visible","popper-class","transition"]))}});var ColorPicker=_export_sfc$1(_sfc_main$1u,[["__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$1t=defineComponent({...__default__$W,props:{direction:{type:String}},setup(t){const r=t,$=useSlots(),V=useNamespace("container"),oe=computed(()=>r.direction==="vertical"?!0:r.direction==="horizontal"?!1:$&&$.default?$.default().some(le=>{const ue=le.type.name;return ue==="ElHeader"||ue==="ElFooter"}):!1);return(ie,le)=>(openBlock(),createElementBlock("section",{class:normalizeClass([unref(V).b(),unref(V).is("vertical",unref(oe))])},[renderSlot(ie.$slots,"default")],2))}});var Container=_export_sfc$1(_sfc_main$1t,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/container.vue"]]);const __default__$V=defineComponent({name:"ElAside"}),_sfc_main$1s=defineComponent({...__default__$V,props:{width:{type:String,default:null}},setup(t){const r=t,$=useNamespace("aside"),V=computed(()=>r.width?$.cssVarBlock({width:r.width}):{});return(oe,ie)=>(openBlock(),createElementBlock("aside",{class:normalizeClass(unref($).b()),style:normalizeStyle$1(unref(V))},[renderSlot(oe.$slots,"default")],6))}});var Aside=_export_sfc$1(_sfc_main$1s,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/aside.vue"]]);const __default__$U=defineComponent({name:"ElFooter"}),_sfc_main$1r=defineComponent({...__default__$U,props:{height:{type:String,default:null}},setup(t){const r=t,$=useNamespace("footer"),V=computed(()=>r.height?$.cssVarBlock({height:r.height}):{});return(oe,ie)=>(openBlock(),createElementBlock("footer",{class:normalizeClass(unref($).b()),style:normalizeStyle$1(unref(V))},[renderSlot(oe.$slots,"default")],6))}});var Footer$2=_export_sfc$1(_sfc_main$1r,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/footer.vue"]]);const __default__$T=defineComponent({name:"ElHeader"}),_sfc_main$1q=defineComponent({...__default__$T,props:{height:{type:String,default:null}},setup(t){const r=t,$=useNamespace("header"),V=computed(()=>r.height?$.cssVarBlock({height:r.height}):{});return(oe,ie)=>(openBlock(),createElementBlock("header",{class:normalizeClass(unref($).b()),style:normalizeStyle$1(unref(V))},[renderSlot(oe.$slots,"default")],6))}});var Header=_export_sfc$1(_sfc_main$1q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/container/src/header.vue"]]);const __default__$S=defineComponent({name:"ElMain"}),_sfc_main$1p=defineComponent({...__default__$S,setup(t){const r=useNamespace("main");return($,V)=>(openBlock(),createElementBlock("main",{class:normalizeClass(unref(r).b())},[renderSlot($.$slots,"default")],2))}});var Main=_export_sfc$1(_sfc_main$1p,[["__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(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){return function($,V){var oe=V.prototype,ie=oe.format;oe.format=function(le){var ue=this,de=this.$locale();if(!this.isValid())return ie.bind(this)(le);var pe=this.$utils(),he=(le||"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(_e){switch(_e){case"Q":return Math.ceil((ue.$M+1)/3);case"Do":return de.ordinal(ue.$D);case"gggg":return ue.weekYear();case"GGGG":return ue.isoWeekYear();case"wo":return de.ordinal(ue.week(),"W");case"w":case"ww":return pe.s(ue.week(),_e==="w"?1:2,"0");case"W":case"WW":return pe.s(ue.isoWeek(),_e==="W"?1:2,"0");case"k":case"kk":return pe.s(String(ue.$H===0?24:ue.$H),_e==="k"?1:2,"0");case"X":return Math.floor(ue.$d.getTime()/1e3);case"x":return ue.$d.getTime();case"z":return"["+ue.offsetName()+"]";case"zzz":return"["+ue.offsetName("long")+"]";default:return _e}});return ie.bind(this)(he)}}})})(advancedFormat$1);var advancedFormatExports=advancedFormat$1.exports;const advancedFormat=getDefaultExportFromCjs(advancedFormatExports);var weekOfYear$1={exports:{}};(function(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){var $="week",V="year";return function(oe,ie,le){var ue=ie.prototype;ue.week=function(de){if(de===void 0&&(de=null),de!==null)return this.add(7*(de-this.week()),"day");var pe=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var he=le(this).startOf(V).add(1,V).date(pe),_e=le(this).endOf($);if(he.isBefore(_e))return 1}var $e=le(this).startOf(V).date(pe).startOf($).subtract(1,"millisecond"),Ie=this.diff($e,$,!0);return Ie<0?le(this).startOf("week").week():Math.ceil(Ie)},ue.weeks=function(de){return de===void 0&&(de=null),this.week(de)}}})})(weekOfYear$1);var weekOfYearExports=weekOfYear$1.exports;const weekOfYear=getDefaultExportFromCjs(weekOfYearExports);var weekYear$1={exports:{}};(function(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){return function($,V){V.prototype.weekYear=function(){var oe=this.month(),ie=this.week(),le=this.year();return ie===1&&oe===11?le+1:oe===0&&ie>=52?le-1:le}}})})(weekYear$1);var weekYearExports=weekYear$1.exports;const weekYear=getDefaultExportFromCjs(weekYearExports);var dayOfYear$1={exports:{}};(function(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){return function($,V,oe){V.prototype.dayOfYear=function(ie){var le=Math.round((oe(this).startOf("day")-oe(this).startOf("year"))/864e5)+1;return ie==null?le:this.add(ie-le,"day")}}})})(dayOfYear$1);var dayOfYearExports=dayOfYear$1.exports;const dayOfYear=getDefaultExportFromCjs(dayOfYearExports);var isSameOrAfter$1={exports:{}};(function(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){return function($,V){V.prototype.isSameOrAfter=function(oe,ie){return this.isSame(oe,ie)||this.isAfter(oe,ie)}}})})(isSameOrAfter$1);var isSameOrAfterExports=isSameOrAfter$1.exports;const isSameOrAfter=getDefaultExportFromCjs(isSameOrAfterExports);var isSameOrBefore$1={exports:{}};(function(t,r){(function($,V){t.exports=V()})(commonjsGlobal,function(){return function($,V){V.prototype.isSameOrBefore=function(oe,ie){return this.isSame(oe,ie)||this.isBefore(oe,ie)}}})})(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=t=>({type:String,values:selectionModes,default:t}),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")}),basicDateTableEmits=["changerange","pick","select"],isValidRange=t=>{if(!isArray$c(t))return!1;const[r,$]=t;return dayjs.isDayjs(r)&&dayjs.isDayjs($)&&r.isSameOrBefore($)},getDefaultValue=(t,{lang:r,unit:$,unlinkPanels:V})=>{let oe;if(isArray$c(t)){let[ie,le]=t.map(ue=>dayjs(ue).locale(r));return V||(le=ie.add(1,$)),[ie,le]}else t?oe=dayjs(t):oe=dayjs();return oe=oe.locale(r),[oe,oe.add(1,$)]},buildPickerTable=(t,r,{columnIndexOffset:$,startDate:V,nextEndDate:oe,now:ie,unit:le,relativeDateGetter:ue,setCellMetadata:de,setRowMetadata:pe})=>{for(let he=0;he["normal","today"].includes(t),useBasicDateTable=(t,r)=>{const{lang:$}=useLocale(),V=ref(),oe=ref(),ie=ref(),le=ref(),ue=ref([[],[],[],[],[],[]]);let de=!1;const pe=t.date.$locale().weekStart||7,he=t.date.locale("en").localeData().weekdaysShort().map(Pn=>Pn.toLowerCase()),_e=computed(()=>pe>3?7-pe:-pe),$e=computed(()=>{const Pn=t.date.startOf("month");return Pn.subtract(Pn.day()||7,"day")}),Ie=computed(()=>he.concat(he).slice(pe,pe+7)),Ve=computed(()=>flatten(unref(hn)).some(Pn=>Pn.isCurrent)),Fe=computed(()=>{const Pn=t.date.startOf("month"),Fn=Pn.day()||7,Un=Pn.daysInMonth(),Wn=Pn.subtract(1,"month").daysInMonth();return{startOfMonthDay:Fn,dateCountOfMonth:Un,dateCountOfLastMonth:Wn}}),Ue=computed(()=>t.selectionMode==="dates"?castArray(t.parsedValue):[]),qe=(Pn,{count:Fn,rowIndex:Un,columnIndex:Wn})=>{const{startOfMonthDay:Zn,dateCountOfMonth:or,dateCountOfLastMonth:br}=unref(Fe),Qn=unref(_e);if(Un>=0&&Un<=1){const Gn=Zn+Qn<0?7+Zn+Qn:Zn+Qn;if(Wn+Un*7>=Gn)return Pn.text=Fn,!0;Pn.text=br-(Gn-Wn%7)+1+Un*7,Pn.type="prev-month"}else return Fn<=or?Pn.text=Fn:(Pn.text=Fn-or,Pn.type="next-month"),!0;return!1},Et=(Pn,{columnIndex:Fn,rowIndex:Un},Wn)=>{const{disabledDate:Zn,cellClassName:or}=t,br=unref(Ue),Qn=qe(Pn,{count:Wn,rowIndex:Un,columnIndex:Fn}),Gn=Pn.dayjs.toDate();return Pn.selected=br.find(Yn=>Yn.valueOf()===Pn.dayjs.valueOf()),Pn.isSelected=!!Pn.selected,Pn.isCurrent=bn(Pn),Pn.disabled=Zn==null?void 0:Zn(Gn),Pn.customClass=or==null?void 0:or(Gn),Qn},Lt=Pn=>{if(t.selectionMode==="week"){const[Fn,Un]=t.showWeekNumber?[1,7]:[0,6],Wn=Ln(Pn[Fn+1]);Pn[Fn].inRange=Wn,Pn[Fn].start=Wn,Pn[Un].inRange=Wn,Pn[Un].end=Wn}},hn=computed(()=>{const{minDate:Pn,maxDate:Fn,rangeState:Un,showWeekNumber:Wn}=t,Zn=unref(_e),or=unref(ue),br="day";let Qn=1;if(Wn)for(let Gn=0;Gn<6;Gn++)or[Gn][0]||(or[Gn][0]={type:"week",text:unref($e).add(Gn*7+1,br).week()});return buildPickerTable({row:6,column:7},or,{startDate:Pn,columnIndexOffset:Wn?1:0,nextEndDate:Un.endDate||Fn||Un.selecting&&Pn||null,now:dayjs().locale(unref($)).startOf(br),unit:br,relativeDateGetter:Gn=>unref($e).add(Gn-Zn,br),setCellMetadata:(...Gn)=>{Et(...Gn,Qn)&&(Qn+=1)},setRowMetadata:Lt}),or});watch(()=>t.date,async()=>{var Pn;(Pn=unref(V))!=null&&Pn.contains(document.activeElement)&&(await nextTick(),await Cn())});const Cn=async()=>{var Pn;return(Pn=unref(oe))==null?void 0:Pn.focus()},bn=Pn=>t.selectionMode==="date"&&isNormalDay(Pn.type)&&Sn(Pn,t.parsedValue),Sn=(Pn,Fn)=>Fn?dayjs(Fn).locale(unref($)).isSame(t.date.date(Number(Pn.text)),"day"):!1,En=(Pn,Fn)=>{const Un=Pn*7+(Fn-(t.showWeekNumber?1:0))-unref(_e);return unref($e).add(Un,"day")},wn=Pn=>{var Fn;if(!t.rangeState.selecting)return;let Un=Pn.target;if(Un.tagName==="SPAN"&&(Un=(Fn=Un.parentNode)==null?void 0:Fn.parentNode),Un.tagName==="DIV"&&(Un=Un.parentNode),Un.tagName!=="TD")return;const Wn=Un.parentNode.rowIndex-1,Zn=Un.cellIndex;unref(hn)[Wn][Zn].disabled||(Wn!==unref(ie)||Zn!==unref(le))&&(ie.value=Wn,le.value=Zn,r("changerange",{selecting:!0,endDate:En(Wn,Zn)}))},$n=Pn=>!unref(Ve)&&(Pn==null?void 0:Pn.text)===1&&Pn.type==="normal"||Pn.isCurrent,Tn=Pn=>{de||unref(Ve)||t.selectionMode!=="date"||Dn(Pn,!0)},xn=Pn=>{Pn.target.closest("td")&&(de=!0)},An=Pn=>{Pn.target.closest("td")&&(de=!1)},Mn=Pn=>{!t.rangeState.selecting||!t.minDate?(r("pick",{minDate:Pn,maxDate:null}),r("select",!0)):(Pn>=t.minDate?r("pick",{minDate:t.minDate,maxDate:Pn}):r("pick",{minDate:Pn,maxDate:t.minDate}),r("select",!1))},Vn=Pn=>{const Fn=Pn.week(),Un=`${Pn.year()}w${Fn}`;r("pick",{year:Pn.year(),week:Fn,value:Un,date:Pn.startOf("week")})},Bn=(Pn,Fn)=>{const Un=Fn?castArray(t.parsedValue).filter(Wn=>(Wn==null?void 0:Wn.valueOf())!==Pn.valueOf()):castArray(t.parsedValue).concat([Pn]);r("pick",Un)},Dn=(Pn,Fn=!1)=>{const Un=Pn.target.closest("td");if(!Un)return;const Wn=Un.parentNode.rowIndex-1,Zn=Un.cellIndex,or=unref(hn)[Wn][Zn];if(or.disabled||or.type==="week")return;const br=En(Wn,Zn);switch(t.selectionMode){case"range":{Mn(br);break}case"date":{r("pick",br,Fn);break}case"week":{Vn(br);break}case"dates":{Bn(br,!!or.selected);break}}},Ln=Pn=>{if(t.selectionMode!=="week")return!1;let Fn=t.date.startOf("day");if(Pn.type==="prev-month"&&(Fn=Fn.subtract(1,"month")),Pn.type==="next-month"&&(Fn=Fn.add(1,"month")),Fn=Fn.date(Number.parseInt(Pn.text,10)),t.parsedValue&&!Array.isArray(t.parsedValue)){const Un=(t.parsedValue.day()-pe+7)%7-1;return t.parsedValue.subtract(Un,"day").isSame(Fn,"day")}return!1};return{WEEKS:Ie,rows:hn,tbodyRef:V,currentCellRef:oe,focus:Cn,isCurrent:bn,isWeekActive:Ln,isSelectedCell:$n,handlePickDate:Dn,handleMouseUp:An,handleMouseDown:xn,handleMouseMove:wn,handleFocus:Tn}},useBasicDateTableDOM=(t,{isCurrent:r,isWeekActive:$})=>{const V=useNamespace("date-table"),{t:oe}=useLocale(),ie=computed(()=>[V.b(),{"is-week-mode":t.selectionMode==="week"}]),le=computed(()=>oe("el.datepicker.dateTablePrompt")),ue=computed(()=>oe("el.datepicker.week"));return{tableKls:ie,tableLabel:le,weekLabel:ue,getCellClasses:he=>{const _e=[];return isNormalDay(he.type)&&!he.disabled?(_e.push("available"),he.type==="today"&&_e.push("today")):_e.push(he.type),r(he)&&_e.push("current"),he.inRange&&(isNormalDay(he.type)||t.selectionMode==="week")&&(_e.push("in-range"),he.start&&_e.push("start-date"),he.end&&_e.push("end-date")),he.disabled&&_e.push("disabled"),he.selected&&_e.push("selected"),he.customClass&&_e.push(he.customClass),_e.join(" ")},getRowKls:he=>[V.e("row"),{current:$(he)}],t:oe}},basicCellProps=buildProps({cell:{type:definePropType(Object)}});var ElDatePickerCell=defineComponent({name:"ElDatePickerCell",props:basicCellProps,setup(t){const r=useNamespace("date-table-cell"),{slots:$}=inject(ROOT_PICKER_INJECTION_KEY);return()=>{const{cell:V}=t;if($.default){const oe=$.default(V).filter(ie=>ie.patchFlag!==-2&&ie.type.toString()!=="Symbol(Comment)");if(oe.length)return oe}return createVNode("div",{class:r.b()},[createVNode("span",{class:r.e("text")},[V==null?void 0:V.text])])}}});const _hoisted_1$L=["aria-label"],_hoisted_2$w={key:0,scope:"col"},_hoisted_3$k=["aria-label"],_hoisted_4$d=["aria-current","aria-selected","tabindex"],_sfc_main$1o=defineComponent({__name:"basic-date-table",props:basicDateTableProps,emits:basicDateTableEmits,setup(t,{expose:r,emit:$}){const V=t,{WEEKS:oe,rows:ie,tbodyRef:le,currentCellRef:ue,focus:de,isCurrent:pe,isWeekActive:he,isSelectedCell:_e,handlePickDate:$e,handleMouseUp:Ie,handleMouseDown:Ve,handleMouseMove:Fe,handleFocus:Ue}=useBasicDateTable(V,$),{tableLabel:qe,tableKls:Et,weekLabel:Lt,getCellClasses:hn,getRowKls:Cn,t:bn}=useBasicDateTableDOM(V,{isCurrent:pe,isWeekActive:he});return r({focus:de}),(Sn,En)=>(openBlock(),createElementBlock("table",{"aria-label":unref(qe),class:normalizeClass(unref(Et)),cellspacing:"0",cellpadding:"0",role:"grid",onClick:En[1]||(En[1]=(...wn)=>unref($e)&&unref($e)(...wn)),onMousemove:En[2]||(En[2]=(...wn)=>unref(Fe)&&unref(Fe)(...wn)),onMousedown:En[3]||(En[3]=withModifiers((...wn)=>unref(Ve)&&unref(Ve)(...wn),["prevent"])),onMouseup:En[4]||(En[4]=(...wn)=>unref(Ie)&&unref(Ie)(...wn))},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:le},[createBaseVNode("tr",null,[Sn.showWeekNumber?(openBlock(),createElementBlock("th",_hoisted_2$w,toDisplayString$1(unref(Lt)),1)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(oe),(wn,$n)=>(openBlock(),createElementBlock("th",{key:$n,"aria-label":unref(bn)("el.datepicker.weeksFull."+wn),scope:"col"},toDisplayString$1(unref(bn)("el.datepicker.weeks."+wn)),9,_hoisted_3$k))),128))]),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ie),(wn,$n)=>(openBlock(),createElementBlock("tr",{key:$n,class:normalizeClass(unref(Cn)(wn[1]))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(wn,(Tn,xn)=>(openBlock(),createElementBlock("td",{key:`${$n}.${xn}`,ref_for:!0,ref:An=>unref(_e)(Tn)&&(ue.value=An),class:normalizeClass(unref(hn)(Tn)),"aria-current":Tn.isCurrent?"date":void 0,"aria-selected":Tn.isCurrent,tabindex:unref(_e)(Tn)?0:-1,onFocus:En[0]||(En[0]=(...An)=>unref(Ue)&&unref(Ue)(...An))},[createVNode(unref(ElDatePickerCell),{cell:Tn},null,8,["cell"])],42,_hoisted_4$d))),128))],2))),128))],512)],42,_hoisted_1$L))}});var DateTable=_export_sfc$1(_sfc_main$1o,[["__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$K=["aria-label"],_hoisted_2$v=["aria-selected","aria-label","tabindex","onKeydown"],_hoisted_3$j={class:"cell"},_sfc_main$1n=defineComponent({__name:"basic-month-table",props:basicMonthTableProps,emits:["changerange","pick","select"],setup(t,{expose:r,emit:$}){const V=t,oe=(hn,Cn,bn)=>{const Sn=dayjs().locale(bn).startOf("month").month(Cn).year(hn),En=Sn.daysInMonth();return rangeArr(En).map(wn=>Sn.add(wn,"day").toDate())},ie=useNamespace("month-table"),{t:le,lang:ue}=useLocale(),de=ref(),pe=ref(),he=ref(V.date.locale("en").localeData().monthsShort().map(hn=>hn.toLowerCase())),_e=ref([[],[],[]]),$e=ref(),Ie=ref(),Ve=computed(()=>{var hn,Cn;const bn=_e.value,Sn=dayjs().locale(ue.value).startOf("month");for(let En=0;En<3;En++){const wn=bn[En];for(let $n=0;$n<4;$n++){const Tn=wn[$n]||(wn[$n]={row:En,column:$n,type:"normal",inRange:!1,start:!1,end:!1,text:-1,disabled:!1});Tn.type="normal";const xn=En*4+$n,An=V.date.startOf("year").month(xn),Mn=V.rangeState.endDate||V.maxDate||V.rangeState.selecting&&V.minDate||null;Tn.inRange=!!(V.minDate&&An.isSameOrAfter(V.minDate,"month")&&Mn&&An.isSameOrBefore(Mn,"month"))||!!(V.minDate&&An.isSameOrBefore(V.minDate,"month")&&Mn&&An.isSameOrAfter(Mn,"month")),(hn=V.minDate)!=null&&hn.isSameOrAfter(Mn)?(Tn.start=!!(Mn&&An.isSame(Mn,"month")),Tn.end=V.minDate&&An.isSame(V.minDate,"month")):(Tn.start=!!(V.minDate&&An.isSame(V.minDate,"month")),Tn.end=!!(Mn&&An.isSame(Mn,"month"))),Sn.isSame(An)&&(Tn.type="today"),Tn.text=xn,Tn.disabled=((Cn=V.disabledDate)==null?void 0:Cn.call(V,An.toDate()))||!1}}return bn}),Fe=()=>{var hn;(hn=pe.value)==null||hn.focus()},Ue=hn=>{const Cn={},bn=V.date.year(),Sn=new Date,En=hn.text;return Cn.disabled=V.disabledDate?oe(bn,En,ue.value).every(V.disabledDate):!1,Cn.current=castArray(V.parsedValue).findIndex(wn=>dayjs.isDayjs(wn)&&wn.year()===bn&&wn.month()===En)>=0,Cn.today=Sn.getFullYear()===bn&&Sn.getMonth()===En,hn.inRange&&(Cn["in-range"]=!0,hn.start&&(Cn["start-date"]=!0),hn.end&&(Cn["end-date"]=!0)),Cn},qe=hn=>{const Cn=V.date.year(),bn=hn.text;return castArray(V.date).findIndex(Sn=>Sn.year()===Cn&&Sn.month()===bn)>=0},Et=hn=>{var Cn;if(!V.rangeState.selecting)return;let bn=hn.target;if(bn.tagName==="A"&&(bn=(Cn=bn.parentNode)==null?void 0:Cn.parentNode),bn.tagName==="DIV"&&(bn=bn.parentNode),bn.tagName!=="TD")return;const Sn=bn.parentNode.rowIndex,En=bn.cellIndex;Ve.value[Sn][En].disabled||(Sn!==$e.value||En!==Ie.value)&&($e.value=Sn,Ie.value=En,$("changerange",{selecting:!0,endDate:V.date.startOf("year").month(Sn*4+En)}))},Lt=hn=>{var Cn;const bn=(Cn=hn.target)==null?void 0:Cn.closest("td");if((bn==null?void 0:bn.tagName)!=="TD"||hasClass(bn,"disabled"))return;const Sn=bn.cellIndex,wn=bn.parentNode.rowIndex*4+Sn,$n=V.date.startOf("year").month(wn);V.selectionMode==="range"?V.rangeState.selecting?(V.minDate&&$n>=V.minDate?$("pick",{minDate:V.minDate,maxDate:$n}):$("pick",{minDate:$n,maxDate:V.minDate}),$("select",!1)):($("pick",{minDate:$n,maxDate:null}),$("select",!0)):$("pick",wn)};return watch(()=>V.date,async()=>{var hn,Cn;(hn=de.value)!=null&&hn.contains(document.activeElement)&&(await nextTick(),(Cn=pe.value)==null||Cn.focus())}),r({focus:Fe}),(hn,Cn)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(le)("el.datepicker.monthTablePrompt"),class:normalizeClass(unref(ie).b()),onClick:Lt,onMousemove:Et},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:de},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ve),(bn,Sn)=>(openBlock(),createElementBlock("tr",{key:Sn},[(openBlock(!0),createElementBlock(Fragment,null,renderList(bn,(En,wn)=>(openBlock(),createElementBlock("td",{key:wn,ref_for:!0,ref:$n=>qe(En)&&(pe.value=$n),class:normalizeClass(Ue(En)),"aria-selected":`${qe(En)}`,"aria-label":unref(le)(`el.datepicker.month${+En.text+1}`),tabindex:qe(En)?0:-1,onKeydown:[withKeys(withModifiers(Lt,["prevent","stop"]),["space"]),withKeys(withModifiers(Lt,["prevent","stop"]),["enter"])]},[createBaseVNode("div",null,[createBaseVNode("span",_hoisted_3$j,toDisplayString$1(unref(le)("el.datepicker.months."+he.value[En.text])),1)])],42,_hoisted_2$v))),128))]))),128))],512)],42,_hoisted_1$K))}});var MonthTable=_export_sfc$1(_sfc_main$1n,[["__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$J=["aria-label"],_hoisted_2$u=["aria-selected","tabindex","onKeydown"],_hoisted_3$i={class:"cell"},_hoisted_4$c={key:1},_sfc_main$1m=defineComponent({__name:"basic-year-table",props:basicYearTableProps,emits:["pick"],setup(t,{expose:r,emit:$}){const V=t,oe=(Fe,Ue)=>{const qe=dayjs(String(Fe)).locale(Ue).startOf("year"),Lt=qe.endOf("year").dayOfYear();return rangeArr(Lt).map(hn=>qe.add(hn,"day").toDate())},ie=useNamespace("year-table"),{t:le,lang:ue}=useLocale(),de=ref(),pe=ref(),he=computed(()=>Math.floor(V.date.year()/10)*10),_e=()=>{var Fe;(Fe=pe.value)==null||Fe.focus()},$e=Fe=>{const Ue={},qe=dayjs().locale(ue.value);return Ue.disabled=V.disabledDate?oe(Fe,ue.value).every(V.disabledDate):!1,Ue.current=castArray(V.parsedValue).findIndex(Et=>Et.year()===Fe)>=0,Ue.today=qe.year()===Fe,Ue},Ie=Fe=>Fe===he.value&&V.date.year()he.value+9||castArray(V.date).findIndex(Ue=>Ue.year()===Fe)>=0,Ve=Fe=>{const qe=Fe.target.closest("td");if(qe&&qe.textContent){if(hasClass(qe,"disabled"))return;const Et=qe.textContent||qe.innerText;$("pick",Number(Et))}};return watch(()=>V.date,async()=>{var Fe,Ue;(Fe=de.value)!=null&&Fe.contains(document.activeElement)&&(await nextTick(),(Ue=pe.value)==null||Ue.focus())}),r({focus:_e}),(Fe,Ue)=>(openBlock(),createElementBlock("table",{role:"grid","aria-label":unref(le)("el.datepicker.yearTablePrompt"),class:normalizeClass(unref(ie).b()),onClick:Ve},[createBaseVNode("tbody",{ref_key:"tbodyRef",ref:de},[(openBlock(),createElementBlock(Fragment,null,renderList(3,(qe,Et)=>createBaseVNode("tr",{key:Et},[(openBlock(),createElementBlock(Fragment,null,renderList(4,(Lt,hn)=>(openBlock(),createElementBlock(Fragment,{key:Et+"_"+hn},[Et*4+hn<10?(openBlock(),createElementBlock("td",{key:0,ref_for:!0,ref:Cn=>Ie(unref(he)+Et*4+hn)&&(pe.value=Cn),class:normalizeClass(["available",$e(unref(he)+Et*4+hn)]),"aria-selected":`${Ie(unref(he)+Et*4+hn)}`,tabindex:Ie(unref(he)+Et*4+hn)?0:-1,onKeydown:[withKeys(withModifiers(Ve,["prevent","stop"]),["space"]),withKeys(withModifiers(Ve,["prevent","stop"]),["enter"])]},[createBaseVNode("span",_hoisted_3$i,toDisplayString$1(unref(he)+Et*4+hn),1)],42,_hoisted_2$u)):(openBlock(),createElementBlock("td",_hoisted_4$c))],64))),64))])),64))],512)],10,_hoisted_1$J))}});var YearTable=_export_sfc$1(_sfc_main$1m,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/basic-year-table.vue"]]);const _hoisted_1$I=["onClick"],_hoisted_2$t=["aria-label"],_hoisted_3$h=["aria-label"],_hoisted_4$b=["aria-label"],_hoisted_5$8=["aria-label"],_sfc_main$1l=defineComponent({__name:"panel-date-pick",props:panelDatePickProps,emits:["pick","set-picker-option","panel-change"],setup(t,{emit:r}){const $=t,V=(dr,ar,tr)=>!0,oe=useNamespace("picker-panel"),ie=useNamespace("date-picker"),le=useAttrs$1(),ue=useSlots(),{t:de,lang:pe}=useLocale(),he=inject("EP_PICKER_BASE"),_e=inject(TOOLTIP_INJECTION_KEY),{shortcuts:$e,disabledDate:Ie,cellClassName:Ve,defaultTime:Fe}=he.props,Ue=toRef(he.props,"defaultValue"),qe=ref(),Et=ref(dayjs().locale(pe.value)),Lt=ref(!1);let hn=!1;const Cn=computed(()=>dayjs(Fe).locale(pe.value)),bn=computed(()=>Et.value.month()),Sn=computed(()=>Et.value.year()),En=ref([]),wn=ref(null),$n=ref(null),Tn=dr=>En.value.length>0?V(dr,En.value,$.format||"HH:mm:ss"):!0,xn=dr=>Fe&&!Jn.value&&!Lt.value&&!hn?Cn.value.year(dr.year()).month(dr.month()).date(dr.date()):Qn.value?dr.millisecond(0):dr.startOf("day"),An=(dr,...ar)=>{if(!dr)r("pick",dr,...ar);else if(isArray$c(dr)){const tr=dr.map(xn);r("pick",tr,...ar)}else r("pick",xn(dr),...ar);wn.value=null,$n.value=null,Lt.value=!1,hn=!1},Mn=(dr,ar)=>{if(Fn.value==="date"){dr=dr;let tr=$.parsedValue?$.parsedValue.year(dr.year()).month(dr.month()).date(dr.date()):dr;Tn(tr)||(tr=En.value[0][0].year(dr.year()).month(dr.month()).date(dr.date())),Et.value=tr,An(tr,Qn.value||ar)}else Fn.value==="week"?An(dr.date):Fn.value==="dates"&&An(dr,!0)},Vn=dr=>{const ar=dr?"add":"subtract";Et.value=Et.value[ar](1,"month"),Nr("month")},Bn=dr=>{const ar=Et.value,tr=dr?"add":"subtract";Et.value=Dn.value==="year"?ar[tr](10,"year"):ar[tr](1,"year"),Nr("year")},Dn=ref("date"),Ln=computed(()=>{const dr=de("el.datepicker.year");if(Dn.value==="year"){const ar=Math.floor(Sn.value/10)*10;return dr?`${ar} ${dr} - ${ar+9} ${dr}`:`${ar} - ${ar+9}`}return`${Sn.value} ${dr}`}),Pn=dr=>{const ar=isFunction$5(dr.value)?dr.value():dr.value;if(ar){hn=!0,An(dayjs(ar).locale(pe.value));return}dr.onClick&&dr.onClick({attrs:le,slots:ue,emit:r})},Fn=computed(()=>{const{type:dr}=$;return["week","month","year","dates"].includes(dr)?dr:"date"}),Un=computed(()=>Fn.value==="date"?Dn.value:Fn.value),Wn=computed(()=>!!$e.length),Zn=async dr=>{Et.value=Et.value.startOf("month").month(dr),Fn.value==="month"?An(Et.value,!1):(Dn.value="date",["month","year","date","week"].includes(Fn.value)&&(An(Et.value,!0),await nextTick(),Rr())),Nr("month")},or=async dr=>{Fn.value==="year"?(Et.value=Et.value.startOf("year").year(dr),An(Et.value,!1)):(Et.value=Et.value.year(dr),Dn.value="month",["month","year","date","week"].includes(Fn.value)&&(An(Et.value,!0),await nextTick(),Rr())),Nr("year")},br=async dr=>{Dn.value=dr,await nextTick(),Rr()},Qn=computed(()=>$.type==="datetime"||$.type==="datetimerange"),Gn=computed(()=>Qn.value||Fn.value==="dates"),Yn=computed(()=>Ie?$.parsedValue?isArray$c($.parsedValue)?Ie($.parsedValue[0].toDate()):Ie($.parsedValue.toDate()):!0:!1),er=()=>{if(Fn.value==="dates")An($.parsedValue);else{let dr=$.parsedValue;if(!dr){const ar=dayjs(Fe).locale(pe.value),tr=$r();dr=ar.year(tr.year()).month(tr.month()).date(tr.date())}Et.value=dr,An(dr)}},lr=computed(()=>Ie?Ie(dayjs().locale(pe.value).toDate()):!1),sr=()=>{const ar=dayjs().locale(pe.value).toDate();Lt.value=!0,(!Ie||!Ie(ar))&&Tn(ar)&&(Et.value=dayjs().locale(pe.value),An(Et.value))},zn=computed(()=>extractTimeFormat($.format)),Kn=computed(()=>extractDateFormat($.format)),Jn=computed(()=>{if($n.value)return $n.value;if(!(!$.parsedValue&&!Ue.value))return($.parsedValue||Et.value).format(zn.value)}),cr=computed(()=>{if(wn.value)return wn.value;if(!(!$.parsedValue&&!Ue.value))return($.parsedValue||Et.value).format(Kn.value)}),_r=ref(!1),ur=()=>{_r.value=!0},wr=()=>{_r.value=!1},Cr=dr=>({hour:dr.hour(),minute:dr.minute(),second:dr.second(),year:dr.year(),month:dr.month(),date:dr.date()}),mr=(dr,ar,tr)=>{const{hour:Sr,minute:qn,second:kr}=Cr(dr),Dr=$.parsedValue?$.parsedValue.hour(Sr).minute(qn).second(kr):dr;Et.value=Dr,An(Et.value,!0),tr||(_r.value=ar)},Er=dr=>{const ar=dayjs(dr,zn.value).locale(pe.value);if(ar.isValid()&&Tn(ar)){const{year:tr,month:Sr,date:qn}=Cr(Et.value);Et.value=ar.year(tr).month(Sr).date(qn),$n.value=null,_r.value=!1,An(Et.value,!0)}},Tr=dr=>{const ar=dayjs(dr,Kn.value).locale(pe.value);if(ar.isValid()){if(Ie&&Ie(ar.toDate()))return;const{hour:tr,minute:Sr,second:qn}=Cr(Et.value);Et.value=ar.hour(tr).minute(Sr).second(qn),wn.value=null,An(Et.value,!0)}},nr=dr=>dayjs.isDayjs(dr)&&dr.isValid()&&(Ie?!Ie(dr.toDate()):!0),pr=dr=>Fn.value==="dates"?dr.map(ar=>ar.format($.format)):dr.format($.format),gr=dr=>dayjs(dr,$.format).locale(pe.value),$r=()=>{const dr=dayjs(Ue.value).locale(pe.value);if(!Ue.value){const ar=Cn.value;return dayjs().hour(ar.hour()).minute(ar.minute()).second(ar.second()).locale(pe.value)}return dr},Rr=async()=>{var dr;["week","month","year","date"].includes(Fn.value)&&((dr=qe.value)==null||dr.focus(),Fn.value==="week"&&Vr(EVENT_CODE.down))},Lr=dr=>{const{code:ar}=dr;[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(ar)&&(Vr(ar),dr.stopPropagation(),dr.preventDefault()),[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.numpadEnter].includes(ar)&&wn.value===null&&$n.value===null&&(dr.preventDefault(),An(Et.value,!1))},Vr=dr=>{var ar;const{up:tr,down:Sr,left:qn,right:kr,home:Dr,end:Hr,pageUp:Gr,pageDown:Kr}=EVENT_CODE,to={year:{[tr]:-4,[Sr]:4,[qn]:-1,[kr]:1,offset:(hr,xr)=>hr.setFullYear(hr.getFullYear()+xr)},month:{[tr]:-4,[Sr]:4,[qn]:-1,[kr]:1,offset:(hr,xr)=>hr.setMonth(hr.getMonth()+xr)},week:{[tr]:-1,[Sr]:1,[qn]:-1,[kr]:1,offset:(hr,xr)=>hr.setDate(hr.getDate()+xr*7)},date:{[tr]:-7,[Sr]:7,[qn]:-1,[kr]:1,[Dr]:hr=>-hr.getDay(),[Hr]:hr=>-hr.getDay()+6,[Gr]:hr=>-new Date(hr.getFullYear(),hr.getMonth(),0).getDate(),[Kr]:hr=>new Date(hr.getFullYear(),hr.getMonth()+1,0).getDate(),offset:(hr,xr)=>hr.setDate(hr.getDate()+xr)}},Zr=Et.value.toDate();for(;Math.abs(Et.value.diff(Zr,"year",!0))<1;){const hr=to[Un.value];if(!hr)return;if(hr.offset(Zr,isFunction$5(hr[dr])?hr[dr](Zr):(ar=hr[dr])!=null?ar:0),Ie&&Ie(Zr))break;const xr=dayjs(Zr).locale(pe.value);Et.value=xr,r("pick",xr,!0);break}},Nr=dr=>{r("panel-change",Et.value.toDate(),dr,Dn.value)};return watch(()=>Fn.value,dr=>{if(["month","year"].includes(dr)){Dn.value=dr;return}Dn.value="date"},{immediate:!0}),watch(()=>Dn.value,()=>{_e==null||_e.updatePopper()}),watch(()=>Ue.value,dr=>{dr&&(Et.value=$r())},{immediate:!0}),watch(()=>$.parsedValue,dr=>{if(dr){if(Fn.value==="dates"||Array.isArray(dr))return;Et.value=dr}else Et.value=$r()},{immediate:!0}),r("set-picker-option",["isValidValue",nr]),r("set-picker-option",["formatToString",pr]),r("set-picker-option",["parseUserInput",gr]),r("set-picker-option",["handleFocusPicker",Rr]),(dr,ar)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(oe).b(),unref(ie).b(),{"has-sidebar":dr.$slots.sidebar||unref(Wn),"has-time":unref(Qn)}])},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("body-wrapper"))},[renderSlot(dr.$slots,"sidebar",{class:normalizeClass(unref(oe).e("sidebar"))}),unref(Wn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref($e),(tr,Sr)=>(openBlock(),createElementBlock("button",{key:Sr,type:"button",class:normalizeClass(unref(oe).e("shortcut")),onClick:qn=>Pn(tr)},toDisplayString$1(tr.text),11,_hoisted_1$I))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("body"))},[unref(Qn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(ie).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(de)("el.datepicker.selectDate"),"model-value":unref(cr),size:"small","validate-event":!1,onInput:ar[0]||(ar[0]=tr=>wn.value=tr),onChange:Tr},null,8,["placeholder","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(ie).e("editor-wrap"))},[createVNode(unref(ElInput),{placeholder:unref(de)("el.datepicker.selectTime"),"model-value":unref(Jn),size:"small","validate-event":!1,onFocus:ur,onInput:ar[1]||(ar[1]=tr=>$n.value=tr),onChange:Er},null,8,["placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:_r.value,format:unref(zn),"parsed-value":Et.value,onPick:mr},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),wr]])],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{class:normalizeClass([unref(ie).e("header"),(Dn.value==="year"||Dn.value==="month")&&unref(ie).e("header--bordered")])},[createBaseVNode("span",{class:normalizeClass(unref(ie).e("prev-btn"))},[createBaseVNode("button",{type:"button","aria-label":unref(de)("el.datepicker.prevYear"),class:normalizeClass(["d-arrow-left",unref(oe).e("icon-btn")]),onClick:ar[2]||(ar[2]=tr=>Bn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_2$t),withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(de)("el.datepicker.prevMonth"),class:normalizeClass([unref(oe).e("icon-btn"),"arrow-left"]),onClick:ar[3]||(ar[3]=tr=>Vn(!1))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$h),[[vShow,Dn.value==="date"]])],2),createBaseVNode("span",{role:"button",class:normalizeClass(unref(ie).e("header-label")),"aria-live":"polite",tabindex:"0",onKeydown:ar[4]||(ar[4]=withKeys(tr=>br("year"),["enter"])),onClick:ar[5]||(ar[5]=tr=>br("year"))},toDisplayString$1(unref(Ln)),35),withDirectives(createBaseVNode("span",{role:"button","aria-live":"polite",tabindex:"0",class:normalizeClass([unref(ie).e("header-label"),{active:Dn.value==="month"}]),onKeydown:ar[6]||(ar[6]=withKeys(tr=>br("month"),["enter"])),onClick:ar[7]||(ar[7]=tr=>br("month"))},toDisplayString$1(unref(de)(`el.datepicker.month${unref(bn)+1}`)),35),[[vShow,Dn.value==="date"]]),createBaseVNode("span",{class:normalizeClass(unref(ie).e("next-btn"))},[withDirectives(createBaseVNode("button",{type:"button","aria-label":unref(de)("el.datepicker.nextMonth"),class:normalizeClass([unref(oe).e("icon-btn"),"arrow-right"]),onClick:ar[8]||(ar[8]=tr=>Vn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_4$b),[[vShow,Dn.value==="date"]]),createBaseVNode("button",{type:"button","aria-label":unref(de)("el.datepicker.nextYear"),class:normalizeClass([unref(oe).e("icon-btn"),"d-arrow-right"]),onClick:ar[9]||(ar[9]=tr=>Bn(!0))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_5$8)],2)],2),[[vShow,Dn.value!=="time"]]),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content")),onKeydown:Lr},[Dn.value==="date"?(openBlock(),createBlock(DateTable,{key:0,ref_key:"currentViewRef",ref:qe,"selection-mode":unref(Fn),date:Et.value,"parsed-value":dr.parsedValue,"disabled-date":unref(Ie),"cell-class-name":unref(Ve),onPick:Mn},null,8,["selection-mode","date","parsed-value","disabled-date","cell-class-name"])):createCommentVNode("v-if",!0),Dn.value==="year"?(openBlock(),createBlock(YearTable,{key:1,ref_key:"currentViewRef",ref:qe,date:Et.value,"disabled-date":unref(Ie),"parsed-value":dr.parsedValue,onPick:or},null,8,["date","disabled-date","parsed-value"])):createCommentVNode("v-if",!0),Dn.value==="month"?(openBlock(),createBlock(MonthTable,{key:2,ref_key:"currentViewRef",ref:qe,date:Et.value,"parsed-value":dr.parsedValue,"disabled-date":unref(Ie),onPick:Zn},null,8,["date","parsed-value","disabled-date"])):createCommentVNode("v-if",!0)],34)],2)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(oe).e("footer"))},[withDirectives(createVNode(unref(ElButton),{text:"",size:"small",class:normalizeClass(unref(oe).e("link-btn")),disabled:unref(lr),onClick:sr},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(de)("el.datepicker.now")),1)]),_:1},8,["class","disabled"]),[[vShow,unref(Fn)!=="dates"]]),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(oe).e("link-btn")),disabled:unref(Yn),onClick:er},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(de)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2),[[vShow,unref(Gn)&&Dn.value==="date"]])],2))}});var DatePickPanel=_export_sfc$1(_sfc_main$1l,[["__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=t=>{const{emit:r}=getCurrentInstance(),$=useAttrs$1(),V=useSlots();return ie=>{const le=isFunction$5(ie.value)?ie.value():ie.value;if(le){r("pick",[dayjs(le[0]).locale(t.value),dayjs(le[1]).locale(t.value)]);return}ie.onClick&&ie.onClick({attrs:$,slots:V,emit:r})}},useRangePicker=(t,{defaultValue:r,leftDate:$,rightDate:V,unit:oe,onParsedValueChanged:ie})=>{const{emit:le}=getCurrentInstance(),{pickerNs:ue}=inject(ROOT_PICKER_INJECTION_KEY),de=useNamespace("date-range-picker"),{t:pe,lang:he}=useLocale(),_e=useShortcut(he),$e=ref(),Ie=ref(),Ve=ref({endDate:null,selecting:!1}),Fe=Lt=>{Ve.value=Lt},Ue=(Lt=!1)=>{const hn=unref($e),Cn=unref(Ie);isValidRange([hn,Cn])&&le("pick",[hn,Cn],Lt)},qe=Lt=>{Ve.value.selecting=Lt,Lt||(Ve.value.endDate=null)},Et=()=>{const[Lt,hn]=getDefaultValue(unref(r),{lang:unref(he),unit:oe,unlinkPanels:t.unlinkPanels});$e.value=void 0,Ie.value=void 0,$.value=Lt,V.value=hn};return watch(r,Lt=>{Lt&&Et()},{immediate:!0}),watch(()=>t.parsedValue,Lt=>{if(isArray$c(Lt)&&Lt.length===2){const[hn,Cn]=Lt;$e.value=hn,$.value=hn,Ie.value=Cn,ie(unref($e),unref(Ie))}else Et()},{immediate:!0}),{minDate:$e,maxDate:Ie,rangeState:Ve,lang:he,ppNs:ue,drpNs:de,handleChangeRange:Fe,handleRangeConfirm:Ue,handleShortcutClick:_e,onSelect:qe,t:pe}},_hoisted_1$H=["onClick"],_hoisted_2$s=["aria-label"],_hoisted_3$g=["aria-label"],_hoisted_4$a=["disabled","aria-label"],_hoisted_5$7=["disabled","aria-label"],_hoisted_6$3=["disabled","aria-label"],_hoisted_7$1=["disabled","aria-label"],_hoisted_8$1=["aria-label"],_hoisted_9$1=["aria-label"],unit$1="month",_sfc_main$1k=defineComponent({__name:"panel-date-range",props:panelDateRangeProps,emits:["pick","set-picker-option","calendar-change","panel-change"],setup(t,{emit:r}){const $=t,V=inject("EP_PICKER_BASE"),{disabledDate:oe,cellClassName:ie,format:le,defaultTime:ue,clearable:de}=V.props,pe=toRef(V.props,"shortcuts"),he=toRef(V.props,"defaultValue"),{lang:_e}=useLocale(),$e=ref(dayjs().locale(_e.value)),Ie=ref(dayjs().locale(_e.value).add(1,unit$1)),{minDate:Ve,maxDate:Fe,rangeState:Ue,ppNs:qe,drpNs:Et,handleChangeRange:Lt,handleRangeConfirm:hn,handleShortcutClick:Cn,onSelect:bn,t:Sn}=useRangePicker($,{defaultValue:he,leftDate:$e,rightDate:Ie,unit:unit$1,onParsedValueChanged:ar}),En=ref({min:null,max:null}),wn=ref({min:null,max:null}),$n=computed(()=>`${$e.value.year()} ${Sn("el.datepicker.year")} ${Sn(`el.datepicker.month${$e.value.month()+1}`)}`),Tn=computed(()=>`${Ie.value.year()} ${Sn("el.datepicker.year")} ${Sn(`el.datepicker.month${Ie.value.month()+1}`)}`),xn=computed(()=>$e.value.year()),An=computed(()=>$e.value.month()),Mn=computed(()=>Ie.value.year()),Vn=computed(()=>Ie.value.month()),Bn=computed(()=>!!pe.value.length),Dn=computed(()=>En.value.min!==null?En.value.min:Ve.value?Ve.value.format(Wn.value):""),Ln=computed(()=>En.value.max!==null?En.value.max:Fe.value||Ve.value?(Fe.value||Ve.value).format(Wn.value):""),Pn=computed(()=>wn.value.min!==null?wn.value.min:Ve.value?Ve.value.format(Un.value):""),Fn=computed(()=>wn.value.max!==null?wn.value.max:Fe.value||Ve.value?(Fe.value||Ve.value).format(Un.value):""),Un=computed(()=>extractTimeFormat(le)),Wn=computed(()=>extractDateFormat(le)),Zn=tr=>isValidRange(tr)&&(oe?!oe(tr[0].toDate())&&!oe(tr[1].toDate()):!0),or=()=>{$e.value=$e.value.subtract(1,"year"),$.unlinkPanels||(Ie.value=$e.value.add(1,"month")),zn("year")},br=()=>{$e.value=$e.value.subtract(1,"month"),$.unlinkPanels||(Ie.value=$e.value.add(1,"month")),zn("month")},Qn=()=>{$.unlinkPanels?Ie.value=Ie.value.add(1,"year"):($e.value=$e.value.add(1,"year"),Ie.value=$e.value.add(1,"month")),zn("year")},Gn=()=>{$.unlinkPanels?Ie.value=Ie.value.add(1,"month"):($e.value=$e.value.add(1,"month"),Ie.value=$e.value.add(1,"month")),zn("month")},Yn=()=>{$e.value=$e.value.add(1,"year"),zn("year")},er=()=>{$e.value=$e.value.add(1,"month"),zn("month")},lr=()=>{Ie.value=Ie.value.subtract(1,"year"),zn("year")},sr=()=>{Ie.value=Ie.value.subtract(1,"month"),zn("month")},zn=tr=>{r("panel-change",[$e.value.toDate(),Ie.value.toDate()],tr)},Kn=computed(()=>{const tr=(An.value+1)%12,Sr=An.value+1>=12?1:0;return $.unlinkPanels&&new Date(xn.value+Sr,tr)$.unlinkPanels&&Mn.value*12+Vn.value-(xn.value*12+An.value+1)>=12),cr=computed(()=>!(Ve.value&&Fe.value&&!Ue.value.selecting&&isValidRange([Ve.value,Fe.value]))),_r=computed(()=>$.type==="datetime"||$.type==="datetimerange"),ur=(tr,Sr)=>{if(tr)return ue?dayjs(ue[Sr]||ue).locale(_e.value).year(tr.year()).month(tr.month()).date(tr.date()):tr},wr=(tr,Sr=!0)=>{const qn=tr.minDate,kr=tr.maxDate,Dr=ur(qn,0),Hr=ur(kr,1);Fe.value===Hr&&Ve.value===Dr||(r("calendar-change",[qn.toDate(),kr&&kr.toDate()]),Fe.value=Hr,Ve.value=Dr,!(!Sr||_r.value)&&hn())},Cr=ref(!1),mr=ref(!1),Er=()=>{Cr.value=!1},Tr=()=>{mr.value=!1},nr=(tr,Sr)=>{En.value[Sr]=tr;const qn=dayjs(tr,Wn.value).locale(_e.value);if(qn.isValid()){if(oe&&oe(qn.toDate()))return;Sr==="min"?($e.value=qn,Ve.value=(Ve.value||$e.value).year(qn.year()).month(qn.month()).date(qn.date()),!$.unlinkPanels&&(!Fe.value||Fe.value.isBefore(Ve.value))&&(Ie.value=qn.add(1,"month"),Fe.value=Ve.value.add(1,"month"))):(Ie.value=qn,Fe.value=(Fe.value||Ie.value).year(qn.year()).month(qn.month()).date(qn.date()),!$.unlinkPanels&&(!Ve.value||Ve.value.isAfter(Fe.value))&&($e.value=qn.subtract(1,"month"),Ve.value=Fe.value.subtract(1,"month")))}},pr=(tr,Sr)=>{En.value[Sr]=null},gr=(tr,Sr)=>{wn.value[Sr]=tr;const qn=dayjs(tr,Un.value).locale(_e.value);qn.isValid()&&(Sr==="min"?(Cr.value=!0,Ve.value=(Ve.value||$e.value).hour(qn.hour()).minute(qn.minute()).second(qn.second()),(!Fe.value||Fe.value.isBefore(Ve.value))&&(Fe.value=Ve.value)):(mr.value=!0,Fe.value=(Fe.value||Ie.value).hour(qn.hour()).minute(qn.minute()).second(qn.second()),Ie.value=Fe.value,Fe.value&&Fe.value.isBefore(Ve.value)&&(Ve.value=Fe.value)))},$r=(tr,Sr)=>{wn.value[Sr]=null,Sr==="min"?($e.value=Ve.value,Cr.value=!1):(Ie.value=Fe.value,mr.value=!1)},Rr=(tr,Sr,qn)=>{wn.value.min||(tr&&($e.value=tr,Ve.value=(Ve.value||$e.value).hour(tr.hour()).minute(tr.minute()).second(tr.second())),qn||(Cr.value=Sr),(!Fe.value||Fe.value.isBefore(Ve.value))&&(Fe.value=Ve.value,Ie.value=tr))},Lr=(tr,Sr,qn)=>{wn.value.max||(tr&&(Ie.value=tr,Fe.value=(Fe.value||Ie.value).hour(tr.hour()).minute(tr.minute()).second(tr.second())),qn||(mr.value=Sr),Fe.value&&Fe.value.isBefore(Ve.value)&&(Ve.value=Fe.value))},Vr=()=>{$e.value=getDefaultValue(unref(he),{lang:unref(_e),unit:"month",unlinkPanels:$.unlinkPanels})[0],Ie.value=$e.value.add(1,"month"),r("pick",null)},Nr=tr=>isArray$c(tr)?tr.map(Sr=>Sr.format(le)):tr.format(le),dr=tr=>isArray$c(tr)?tr.map(Sr=>dayjs(Sr,le).locale(_e.value)):dayjs(tr,le).locale(_e.value);function ar(tr,Sr){if($.unlinkPanels&&Sr){const qn=(tr==null?void 0:tr.year())||0,kr=(tr==null?void 0:tr.month())||0,Dr=Sr.year(),Hr=Sr.month();Ie.value=qn===Dr&&kr===Hr?Sr.add(1,unit$1):Sr}else Ie.value=$e.value.add(1,unit$1),Sr&&(Ie.value=Ie.value.hour(Sr.hour()).minute(Sr.minute()).second(Sr.second()))}return r("set-picker-option",["isValidValue",Zn]),r("set-picker-option",["parseUserInput",dr]),r("set-picker-option",["formatToString",Nr]),r("set-picker-option",["handleClear",Vr]),(tr,Sr)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(qe).b(),unref(Et).b(),{"has-sidebar":tr.$slots.sidebar||unref(Bn),"has-time":unref(_r)}])},[createBaseVNode("div",{class:normalizeClass(unref(qe).e("body-wrapper"))},[renderSlot(tr.$slots,"sidebar",{class:normalizeClass(unref(qe).e("sidebar"))}),unref(Bn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(qe).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(pe),(qn,kr)=>(openBlock(),createElementBlock("button",{key:kr,type:"button",class:normalizeClass(unref(qe).e("shortcut")),onClick:Dr=>unref(Cn)(qn)},toDisplayString$1(qn.text),11,_hoisted_1$H))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(qe).e("body"))},[unref(_r)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Et).e("time-header"))},[createBaseVNode("span",{class:normalizeClass(unref(Et).e("editors-wrap"))},[createBaseVNode("span",{class:normalizeClass(unref(Et).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",disabled:unref(Ue).selecting,placeholder:unref(Sn)("el.datepicker.startDate"),class:normalizeClass(unref(Et).e("editor")),"model-value":unref(Dn),"validate-event":!1,onInput:Sr[0]||(Sr[0]=qn=>nr(qn,"min")),onChange:Sr[1]||(Sr[1]=qn=>pr(qn,"min"))},null,8,["disabled","placeholder","class","model-value"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(Et).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(Et).e("editor")),disabled:unref(Ue).selecting,placeholder:unref(Sn)("el.datepicker.startTime"),"model-value":unref(Pn),"validate-event":!1,onFocus:Sr[2]||(Sr[2]=qn=>Cr.value=!0),onInput:Sr[3]||(Sr[3]=qn=>gr(qn,"min")),onChange:Sr[4]||(Sr[4]=qn=>$r(qn,"min"))},null,8,["class","disabled","placeholder","model-value"]),createVNode(unref(TimePickPanel),{visible:Cr.value,format:unref(Un),"datetime-role":"start","parsed-value":$e.value,onPick:Rr},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),Er]])],2),createBaseVNode("span",null,[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})]),createBaseVNode("span",{class:normalizeClass([unref(Et).e("editors-wrap"),"is-right"])},[createBaseVNode("span",{class:normalizeClass(unref(Et).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(Et).e("editor")),disabled:unref(Ue).selecting,placeholder:unref(Sn)("el.datepicker.endDate"),"model-value":unref(Ln),readonly:!unref(Ve),"validate-event":!1,onInput:Sr[5]||(Sr[5]=qn=>nr(qn,"max")),onChange:Sr[6]||(Sr[6]=qn=>pr(qn,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"])],2),withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass(unref(Et).e("time-picker-wrap"))},[createVNode(unref(ElInput),{size:"small",class:normalizeClass(unref(Et).e("editor")),disabled:unref(Ue).selecting,placeholder:unref(Sn)("el.datepicker.endTime"),"model-value":unref(Fn),readonly:!unref(Ve),"validate-event":!1,onFocus:Sr[7]||(Sr[7]=qn=>unref(Ve)&&(mr.value=!0)),onInput:Sr[8]||(Sr[8]=qn=>gr(qn,"max")),onChange:Sr[9]||(Sr[9]=qn=>$r(qn,"max"))},null,8,["class","disabled","placeholder","model-value","readonly"]),createVNode(unref(TimePickPanel),{"datetime-role":"end",visible:mr.value,format:unref(Un),"parsed-value":Ie.value,onPick:Lr},null,8,["visible","format","parsed-value"])],2)),[[unref(ClickOutside),Tr]])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass([[unref(qe).e("content"),unref(Et).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Et).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(qe).e("icon-btn"),"d-arrow-left"]),"aria-label":unref(Sn)("el.datepicker.prevYear"),onClick:or},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_2$s),createBaseVNode("button",{type:"button",class:normalizeClass([unref(qe).e("icon-btn"),"arrow-left"]),"aria-label":unref(Sn)("el.datepicker.prevMonth"),onClick:br},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_3$g),tr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Jn),class:normalizeClass([[unref(qe).e("icon-btn"),{"is-disabled":!unref(Jn)}],"d-arrow-right"]),"aria-label":unref(Sn)("el.datepicker.nextYear"),onClick:Yn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_4$a)):createCommentVNode("v-if",!0),tr.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Kn),class:normalizeClass([[unref(qe).e("icon-btn"),{"is-disabled":!unref(Kn)}],"arrow-right"]),"aria-label":unref(Sn)("el.datepicker.nextMonth"),onClick:er},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_5$7)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref($n)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:$e.value,"min-date":unref(Ve),"max-date":unref(Fe),"range-state":unref(Ue),"disabled-date":unref(oe),"cell-class-name":unref(ie),onChangerange:unref(Lt),onPick:wr,onSelect:unref(bn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(qe).e("content"),unref(Et).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Et).e("header"))},[tr.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(Jn),class:normalizeClass([[unref(qe).e("icon-btn"),{"is-disabled":!unref(Jn)}],"d-arrow-left"]),"aria-label":unref(Sn)("el.datepicker.prevYear"),onClick:lr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_6$3)):createCommentVNode("v-if",!0),tr.unlinkPanels?(openBlock(),createElementBlock("button",{key:1,type:"button",disabled:!unref(Kn),class:normalizeClass([[unref(qe).e("icon-btn"),{"is-disabled":!unref(Kn)}],"arrow-left"]),"aria-label":unref(Sn)("el.datepicker.prevMonth"),onClick:sr},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],10,_hoisted_7$1)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button","aria-label":unref(Sn)("el.datepicker.nextYear"),class:normalizeClass([unref(qe).e("icon-btn"),"d-arrow-right"]),onClick:Qn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_8$1),createBaseVNode("button",{type:"button",class:normalizeClass([unref(qe).e("icon-btn"),"arrow-right"]),"aria-label":unref(Sn)("el.datepicker.nextMonth"),onClick:Gn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],10,_hoisted_9$1),createBaseVNode("div",null,toDisplayString$1(unref(Tn)),1)],2),createVNode(DateTable,{"selection-mode":"range",date:Ie.value,"min-date":unref(Ve),"max-date":unref(Fe),"range-state":unref(Ue),"disabled-date":unref(oe),"cell-class-name":unref(ie),onChangerange:unref(Lt),onPick:wr,onSelect:unref(bn)},null,8,["date","min-date","max-date","range-state","disabled-date","cell-class-name","onChangerange","onSelect"])],2)],2)],2),unref(_r)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(qe).e("footer"))},[unref(de)?(openBlock(),createBlock(unref(ElButton),{key:0,text:"",size:"small",class:normalizeClass(unref(qe).e("link-btn")),onClick:Vr},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Sn)("el.datepicker.clear")),1)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(unref(ElButton),{plain:"",size:"small",class:normalizeClass(unref(qe).e("link-btn")),disabled:unref(cr),onClick:Sr[10]||(Sr[10]=qn=>unref(hn)(!1))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(Sn)("el.datepicker.confirm")),1)]),_:1},8,["class","disabled"])],2)):createCommentVNode("v-if",!0)],2))}});var DateRangePickPanel=_export_sfc$1(_sfc_main$1k,[["__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","calendar-change"],useMonthRangeHeader=({unlinkPanels:t,leftDate:r,rightDate:$})=>{const{t:V}=useLocale(),oe=()=>{r.value=r.value.subtract(1,"year"),t.value||($.value=$.value.subtract(1,"year"))},ie=()=>{t.value||(r.value=r.value.add(1,"year")),$.value=$.value.add(1,"year")},le=()=>{r.value=r.value.add(1,"year")},ue=()=>{$.value=$.value.subtract(1,"year")},de=computed(()=>`${r.value.year()} ${V("el.datepicker.year")}`),pe=computed(()=>`${$.value.year()} ${V("el.datepicker.year")}`),he=computed(()=>r.value.year()),_e=computed(()=>$.value.year()===r.value.year()?r.value.year()+1:$.value.year());return{leftPrevYear:oe,rightNextYear:ie,leftNextYear:le,rightPrevYear:ue,leftLabel:de,rightLabel:pe,leftYear:he,rightYear:_e}},_hoisted_1$G=["onClick"],_hoisted_2$r=["disabled"],_hoisted_3$f=["disabled"],unit="year",__default__$R=defineComponent({name:"DatePickerMonthRange"}),_sfc_main$1j=defineComponent({...__default__$R,props:panelMonthRangeProps,emits:panelMonthRangeEmits,setup(t,{emit:r}){const $=t,{lang:V}=useLocale(),oe=inject("EP_PICKER_BASE"),{shortcuts:ie,disabledDate:le,format:ue}=oe.props,de=toRef(oe.props,"defaultValue"),pe=ref(dayjs().locale(V.value)),he=ref(dayjs().locale(V.value).add(1,unit)),{minDate:_e,maxDate:$e,rangeState:Ie,ppNs:Ve,drpNs:Fe,handleChangeRange:Ue,handleRangeConfirm:qe,handleShortcutClick:Et,onSelect:Lt}=useRangePicker($,{defaultValue:de,leftDate:pe,rightDate:he,unit,onParsedValueChanged:Bn}),hn=computed(()=>!!ie.length),{leftPrevYear:Cn,rightNextYear:bn,leftNextYear:Sn,rightPrevYear:En,leftLabel:wn,rightLabel:$n,leftYear:Tn,rightYear:xn}=useMonthRangeHeader({unlinkPanels:toRef($,"unlinkPanels"),leftDate:pe,rightDate:he}),An=computed(()=>$.unlinkPanels&&xn.value>Tn.value+1),Mn=(Dn,Ln=!0)=>{const Pn=Dn.minDate,Fn=Dn.maxDate;$e.value===Fn&&_e.value===Pn||(r("calendar-change",[Pn.toDate(),Fn&&Fn.toDate()]),$e.value=Fn,_e.value=Pn,Ln&&qe())},Vn=Dn=>Dn.map(Ln=>Ln.format(ue));function Bn(Dn,Ln){if($.unlinkPanels&&Ln){const Pn=(Dn==null?void 0:Dn.year())||0,Fn=Ln.year();he.value=Pn===Fn?Ln.add(1,unit):Ln}else he.value=pe.value.add(1,unit)}return r("set-picker-option",["formatToString",Vn]),(Dn,Ln)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(Ve).b(),unref(Fe).b(),{"has-sidebar":!!Dn.$slots.sidebar||unref(hn)}])},[createBaseVNode("div",{class:normalizeClass(unref(Ve).e("body-wrapper"))},[renderSlot(Dn.$slots,"sidebar",{class:normalizeClass(unref(Ve).e("sidebar"))}),unref(hn)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(Ve).e("sidebar"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ie),(Pn,Fn)=>(openBlock(),createElementBlock("button",{key:Fn,type:"button",class:normalizeClass(unref(Ve).e("shortcut")),onClick:Un=>unref(Et)(Pn)},toDisplayString$1(Pn.text),11,_hoisted_1$G))),128))],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(Ve).e("body"))},[createBaseVNode("div",{class:normalizeClass([[unref(Ve).e("content"),unref(Fe).e("content")],"is-left"])},[createBaseVNode("div",{class:normalizeClass(unref(Fe).e("header"))},[createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ve).e("icon-btn"),"d-arrow-left"]),onClick:Ln[0]||(Ln[0]=(...Pn)=>unref(Cn)&&unref(Cn)(...Pn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],2),Dn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(An),class:normalizeClass([[unref(Ve).e("icon-btn"),{[unref(Ve).is("disabled")]:!unref(An)}],"d-arrow-right"]),onClick:Ln[1]||(Ln[1]=(...Pn)=>unref(Sn)&&unref(Sn)(...Pn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],10,_hoisted_2$r)):createCommentVNode("v-if",!0),createBaseVNode("div",null,toDisplayString$1(unref(wn)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:pe.value,"min-date":unref(_e),"max-date":unref($e),"range-state":unref(Ie),"disabled-date":unref(le),onChangerange:unref(Ue),onPick:Mn,onSelect:unref(Lt)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2),createBaseVNode("div",{class:normalizeClass([[unref(Ve).e("content"),unref(Fe).e("content")],"is-right"])},[createBaseVNode("div",{class:normalizeClass(unref(Fe).e("header"))},[Dn.unlinkPanels?(openBlock(),createElementBlock("button",{key:0,type:"button",disabled:!unref(An),class:normalizeClass([[unref(Ve).e("icon-btn"),{"is-disabled":!unref(An)}],"d-arrow-left"]),onClick:Ln[2]||(Ln[2]=(...Pn)=>unref(En)&&unref(En)(...Pn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_left_default))]),_:1})],10,_hoisted_3$f)):createCommentVNode("v-if",!0),createBaseVNode("button",{type:"button",class:normalizeClass([unref(Ve).e("icon-btn"),"d-arrow-right"]),onClick:Ln[3]||(Ln[3]=(...Pn)=>unref(bn)&&unref(bn)(...Pn))},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(d_arrow_right_default))]),_:1})],2),createBaseVNode("div",null,toDisplayString$1(unref($n)),1)],2),createVNode(MonthTable,{"selection-mode":"range",date:he.value,"min-date":unref(_e),"max-date":unref($e),"range-state":unref(Ie),"disabled-date":unref(le),onChangerange:unref(Ue),onPick:Mn,onSelect:unref(Lt)},null,8,["date","min-date","max-date","range-state","disabled-date","onChangerange","onSelect"])],2)],2)],2)],2))}});var MonthRangePickPanel=_export_sfc$1(_sfc_main$1j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/date-picker/src/date-picker-com/panel-month-range.vue"]]);const getPanel=function(t){switch(t){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(t,{expose:r,emit:$,slots:V}){const oe=useNamespace("picker-panel");provide("ElPopperOptions",reactive(toRef(t,"popperOptions"))),provide(ROOT_PICKER_INJECTION_KEY,{slots:V,pickerNs:oe});const ie=ref();r({focus:(de=!0)=>{var pe;(pe=ie.value)==null||pe.focus(de)},handleOpen:()=>{var de;(de=ie.value)==null||de.handleOpen()},handleClose:()=>{var de;(de=ie.value)==null||de.handleClose()}});const ue=de=>{$("update:modelValue",de)};return()=>{var de;const pe=(de=t.format)!=null?de:DEFAULT_FORMATS_DATEPICKER[t.type]||DEFAULT_FORMATS_DATE,he=getPanel(t.type);return createVNode(CommonPicker,mergeProps(t,{format:pe,type:t.type,ref:ie,"onUpdate:modelValue":ue}),{default:_e=>createVNode(he,_e,null),"range-separator":V["range-separator"]})}}});const _DatePicker=DatePicker;_DatePicker.install=t=>{t.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 t,r,$,V,oe,ie;const le=getNormalizedProps(this.cell),{border:ue,direction:de}=this.descriptions,pe=de==="vertical",he=(($=(r=(t=this.cell)==null?void 0:t.children)==null?void 0:r.label)==null?void 0:$.call(r))||le.label,_e=(ie=(oe=(V=this.cell)==null?void 0:V.children)==null?void 0:oe.default)==null?void 0:ie.call(oe),$e=le.span,Ie=le.align?`is-${le.align}`:"",Ve=le.labelAlign?`is-${le.labelAlign}`:Ie,Fe=le.className,Ue=le.labelClassName,qe={width:addUnit(le.width),minWidth:addUnit(le.minWidth)},Et=useNamespace("descriptions");switch(this.type){case"label":return h$2(this.tag,{style:qe,class:[Et.e("cell"),Et.e("label"),Et.is("bordered-label",ue),Et.is("vertical-label",pe),Ve,Ue],colSpan:pe?$e:1},he);case"content":return h$2(this.tag,{style:qe,class:[Et.e("cell"),Et.e("content"),Et.is("bordered-content",ue),Et.is("vertical-content",pe),Ie,Fe],colSpan:pe?$e:$e*2-1},_e);default:return h$2("td",{style:qe,class:[Et.e("cell"),Ie],colSpan:$e},[isNil(he)?void 0:h$2("span",{class:[Et.e("label"),Ue]},he),h$2("span",{class:[Et.e("content"),Fe]},_e)])}}});const descriptionsRowProps=buildProps({row:{type:Array,default:()=>[]}}),_hoisted_1$F={key:1},__default__$Q=defineComponent({name:"ElDescriptionsRow"}),_sfc_main$1i=defineComponent({...__default__$Q,props:descriptionsRowProps,setup(t){const r=inject(descriptionsKey,{});return($,V)=>unref(r).direction==="vertical"?(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.row,(oe,ie)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr1-${ie}`,cell:oe,tag:"th",type:"label"},null,8,["cell"]))),128))]),createBaseVNode("tr",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.row,(oe,ie)=>(openBlock(),createBlock(unref(ElDescriptionsCell),{key:`tr2-${ie}`,cell:oe,tag:"td",type:"content"},null,8,["cell"]))),128))])],64)):(openBlock(),createElementBlock("tr",_hoisted_1$F,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.row,(oe,ie)=>(openBlock(),createElementBlock(Fragment,{key:`tr3-${ie}`},[unref(r).border?(openBlock(),createElementBlock(Fragment,{key:0},[createVNode(unref(ElDescriptionsCell),{cell:oe,tag:"td",type:"label"},null,8,["cell"]),createVNode(unref(ElDescriptionsCell),{cell:oe,tag:"td",type:"content"},null,8,["cell"])],64)):(openBlock(),createBlock(unref(ElDescriptionsCell),{key:1,cell:oe,tag:"td",type:"both"},null,8,["cell"]))],64))),128))]))}});var ElDescriptionsRow=_export_sfc$1(_sfc_main$1i,[["__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$1h=defineComponent({...__default__$P,props:descriptionProps,setup(t){const r=t,$=useNamespace("descriptions"),V=useFormSize(),oe=useSlots();provide(descriptionsKey,r);const ie=computed(()=>[$.b(),$.m(V.value)]),le=(de,pe,he,_e=!1)=>(de.props||(de.props={}),pe>he&&(de.props.span=he),_e&&(de.props.span=pe),de),ue=()=>{var de;const pe=flattedChildren((de=oe.default)==null?void 0:de.call(oe)).filter(Ve=>{var Fe;return((Fe=Ve==null?void 0:Ve.type)==null?void 0:Fe.name)==="ElDescriptionsItem"}),he=[];let _e=[],$e=r.column,Ie=0;return pe.forEach((Ve,Fe)=>{var Ue;const qe=((Ue=Ve.props)==null?void 0:Ue.span)||1;if(Fe$e?$e:qe),Fe===pe.length-1){const Et=r.column-Ie%r.column;_e.push(le(Ve,Et,$e,!0)),he.push(_e);return}qe<$e?($e-=qe,_e.push(Ve)):(_e.push(le(Ve,qe,$e)),he.push(_e),$e=r.column,_e=[])}),he};return(de,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie))},[de.title||de.extra||de.$slots.title||de.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref($).e("title"))},[renderSlot(de.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(de.title),1)])],2),createBaseVNode("div",{class:normalizeClass(unref($).e("extra"))},[renderSlot(de.$slots,"extra",{},()=>[createTextVNode(toDisplayString$1(de.extra),1)])],2)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("body"))},[createBaseVNode("table",{class:normalizeClass([unref($).e("table"),unref($).is("bordered",de.border)])},[createBaseVNode("tbody",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(ue(),(he,_e)=>(openBlock(),createBlock(ElDescriptionsRow,{key:_e,row:he},null,8,["row"]))),128))])],2)],2)],2))}});var Descriptions=_export_sfc$1(_sfc_main$1h,[["__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:t=>t instanceof MouseEvent},BLOCK="overlay";var Overlay$1=defineComponent({name:"ElOverlay",props:overlayProps,emits:overlayEmits,setup(t,{slots:r,emit:$}){const V=useNamespace(BLOCK),oe=de=>{$("click",de)},{onClick:ie,onMousedown:le,onMouseup:ue}=useSameTarget(t.customMaskEvent?void 0:oe);return()=>t.mask?createVNode("div",{class:[V.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:ie,onMousedown:le,onMouseup:ue},[renderSlot(r,"default")],PatchFlags.STYLE|PatchFlags.CLASS|PatchFlags.PROPS,["onClick","onMouseup","onMousedown"]):h$2("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[renderSlot(r,"default")])}});const ElOverlay=Overlay$1,dialogInjectionKey=Symbol("dialogInjectionKey"),dialogContentProps=buildProps({center:Boolean,alignCenter:Boolean,closeIcon:{type:iconPropType},customClass:{type:String,default:""},draggable:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),dialogContentEmits={close:()=>!0},_hoisted_1$E=["aria-level"],_hoisted_2$q=["aria-label"],_hoisted_3$e=["id"],__default__$O=defineComponent({name:"ElDialogContent"}),_sfc_main$1g=defineComponent({...__default__$O,props:dialogContentProps,emits:dialogContentEmits,setup(t){const r=t,{t:$}=useLocale(),{Close:V}=CloseComponents,{dialogRef:oe,headerRef:ie,bodyId:le,ns:ue,style:de}=inject(dialogInjectionKey),{focusTrapRef:pe}=inject(FOCUS_TRAP_INJECTION_KEY),he=computed(()=>[ue.b(),ue.is("fullscreen",r.fullscreen),ue.is("draggable",r.draggable),ue.is("align-center",r.alignCenter),{[ue.m("center")]:r.center},r.customClass]),_e=composeRefs(pe,oe),$e=computed(()=>r.draggable);return useDraggable(oe,ie,$e),(Ie,Ve)=>(openBlock(),createElementBlock("div",{ref:unref(_e),class:normalizeClass(unref(he)),style:normalizeStyle$1(unref(de)),tabindex:"-1"},[createBaseVNode("header",{ref_key:"headerRef",ref:ie,class:normalizeClass(unref(ue).e("header"))},[renderSlot(Ie.$slots,"header",{},()=>[createBaseVNode("span",{role:"heading","aria-level":Ie.ariaLevel,class:normalizeClass(unref(ue).e("title"))},toDisplayString$1(Ie.title),11,_hoisted_1$E)]),Ie.showClose?(openBlock(),createElementBlock("button",{key:0,"aria-label":unref($)("el.dialog.close"),class:normalizeClass(unref(ue).e("headerbtn")),type:"button",onClick:Ve[0]||(Ve[0]=Fe=>Ie.$emit("close"))},[createVNode(unref(ElIcon),{class:normalizeClass(unref(ue).e("close"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ie.closeIcon||unref(V))))]),_:1},8,["class"])],10,_hoisted_2$q)):createCommentVNode("v-if",!0)],2),createBaseVNode("div",{id:unref(le),class:normalizeClass(unref(ue).e("body"))},[renderSlot(Ie.$slots,"default")],10,_hoisted_3$e),Ie.$slots.footer?(openBlock(),createElementBlock("footer",{key:0,class:normalizeClass(unref(ue).e("footer"))},[renderSlot(Ie.$slots,"footer")],2)):createCommentVNode("v-if",!0)],6))}});var ElDialogContent=_export_sfc$1(_sfc_main$1g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const dialogProps=buildProps({...dialogContentProps,appendToBody:Boolean,beforeClose:{type:definePropType(Function)},destroyOnClose:Boolean,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:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),dialogEmits={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[UPDATE_MODEL_EVENT]:t=>isBoolean$3(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},useDialog=(t,r)=>{const V=getCurrentInstance().emit,{nextZIndex:oe}=useZIndex();let ie="";const le=useId(),ue=useId(),de=ref(!1),pe=ref(!1),he=ref(!1),_e=ref(t.zIndex||oe());let $e,Ie;const Ve=useGlobalConfig("namespace",defaultNamespace),Fe=computed(()=>{const Mn={},Vn=`--${Ve.value}-dialog`;return t.fullscreen||(t.top&&(Mn[`${Vn}-margin-top`]=t.top),t.width&&(Mn[`${Vn}-width`]=addUnit(t.width))),Mn}),Ue=computed(()=>t.alignCenter?{display:"flex"}:{});function qe(){V("opened")}function Et(){V("closed"),V(UPDATE_MODEL_EVENT,!1),t.destroyOnClose&&(he.value=!1)}function Lt(){V("close")}function hn(){Ie==null||Ie(),$e==null||$e(),t.openDelay&&t.openDelay>0?{stop:$e}=useTimeoutFn$1(()=>En(),t.openDelay):En()}function Cn(){$e==null||$e(),Ie==null||Ie(),t.closeDelay&&t.closeDelay>0?{stop:Ie}=useTimeoutFn$1(()=>wn(),t.closeDelay):wn()}function bn(){function Mn(Vn){Vn||(pe.value=!0,de.value=!1)}t.beforeClose?t.beforeClose(Mn):Cn()}function Sn(){t.closeOnClickModal&&bn()}function En(){isClient$1&&(de.value=!0)}function wn(){de.value=!1}function $n(){V("openAutoFocus")}function Tn(){V("closeAutoFocus")}function xn(Mn){var Vn;((Vn=Mn.detail)==null?void 0:Vn.focusReason)==="pointer"&&Mn.preventDefault()}t.lockScroll&&useLockscreen(de);function An(){t.closeOnPressEscape&&bn()}return watch(()=>t.modelValue,Mn=>{Mn?(pe.value=!1,hn(),he.value=!0,_e.value=t.zIndex?_e.value++:oe(),nextTick(()=>{V("open"),r.value&&(r.value.scrollTop=0)})):de.value&&Cn()}),watch(()=>t.fullscreen,Mn=>{r.value&&(Mn?(ie=r.value.style.transform,r.value.style.transform=""):r.value.style.transform=ie)}),onMounted(()=>{t.modelValue&&(de.value=!0,he.value=!0,hn())}),{afterEnter:qe,afterLeave:Et,beforeLeave:Lt,handleClose:bn,onModalClick:Sn,close:Cn,doClose:wn,onOpenAutoFocus:$n,onCloseAutoFocus:Tn,onCloseRequested:An,onFocusoutPrevented:xn,titleId:le,bodyId:ue,closed:pe,style:Fe,overlayDialogStyle:Ue,rendered:he,visible:de,zIndex:_e}},_hoisted_1$D=["aria-label","aria-labelledby","aria-describedby"],__default__$N=defineComponent({name:"ElDialog",inheritAttrs:!1}),_sfc_main$1f=defineComponent({...__default__$N,props:dialogProps,emits:dialogEmits,setup(t,{expose:r}){const $=t,V=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(()=>!!V.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(()=>!!$.customClass));const oe=useNamespace("dialog"),ie=ref(),le=ref(),ue=ref(),{visible:de,titleId:pe,bodyId:he,style:_e,overlayDialogStyle:$e,rendered:Ie,zIndex:Ve,afterEnter:Fe,afterLeave:Ue,beforeLeave:qe,handleClose:Et,onModalClick:Lt,onOpenAutoFocus:hn,onCloseAutoFocus:Cn,onCloseRequested:bn,onFocusoutPrevented:Sn}=useDialog($,ie);provide(dialogInjectionKey,{dialogRef:ie,headerRef:le,bodyId:he,ns:oe,rendered:Ie,style:_e});const En=useSameTarget(Lt),wn=computed(()=>$.draggable&&!$.fullscreen);return r({visible:de,dialogContentRef:ue}),($n,Tn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!$n.appendToBody},[createVNode(Transition,{name:"dialog-fade",onAfterEnter:unref(Fe),onAfterLeave:unref(Ue),onBeforeLeave:unref(qe),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(unref(ElOverlay),{"custom-mask-event":"",mask:$n.modal,"overlay-class":$n.modalClass,"z-index":unref(Ve)},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-modal":"true","aria-label":$n.title||void 0,"aria-labelledby":$n.title?void 0:unref(pe),"aria-describedby":unref(he),class:normalizeClass(`${unref(oe).namespace.value}-overlay-dialog`),style:normalizeStyle$1(unref($e)),onClick:Tn[0]||(Tn[0]=(...xn)=>unref(En).onClick&&unref(En).onClick(...xn)),onMousedown:Tn[1]||(Tn[1]=(...xn)=>unref(En).onMousedown&&unref(En).onMousedown(...xn)),onMouseup:Tn[2]||(Tn[2]=(...xn)=>unref(En).onMouseup&&unref(En).onMouseup(...xn))},[createVNode(unref(ElFocusTrap),{loop:"",trapped:unref(de),"focus-start-el":"container",onFocusAfterTrapped:unref(hn),onFocusAfterReleased:unref(Cn),onFocusoutPrevented:unref(Sn),onReleaseRequested:unref(bn)},{default:withCtx(()=>[unref(Ie)?(openBlock(),createBlock(ElDialogContent,mergeProps({key:0,ref_key:"dialogContentRef",ref:ue},$n.$attrs,{"custom-class":$n.customClass,center:$n.center,"align-center":$n.alignCenter,"close-icon":$n.closeIcon,draggable:unref(wn),fullscreen:$n.fullscreen,"show-close":$n.showClose,title:$n.title,"aria-level":$n.headerAriaLevel,onClose:unref(Et)}),createSlots({header:withCtx(()=>[$n.$slots.title?renderSlot($n.$slots,"title",{key:1}):renderSlot($n.$slots,"header",{key:0,close:unref(Et),titleId:unref(pe),titleClass:unref(oe).e("title")})]),default:withCtx(()=>[renderSlot($n.$slots,"default")]),_:2},[$n.$slots.footer?{name:"footer",fn:withCtx(()=>[renderSlot($n.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","aria-level","onClose"])):createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,_hoisted_1$D)]),_:3},8,["mask","overlay-class","z-index"]),[[vShow,unref(de)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var Dialog=_export_sfc$1(_sfc_main$1f,[["__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$1e=defineComponent({...__default__$M,props:dividerProps,setup(t){const r=t,$=useNamespace("divider"),V=computed(()=>$.cssVar({"border-style":r.borderStyle}));return(oe,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref($).b(),unref($).m(oe.direction)]),style:normalizeStyle$1(unref(V)),role:"separator"},[oe.$slots.default&&oe.direction!=="vertical"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref($).e("text"),unref($).is(oe.contentPosition)])},[renderSlot(oe.$slots,"default")],2)):createCommentVNode("v-if",!0)],6))}});var Divider=_export_sfc$1(_sfc_main$1e,[["__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},headerAriaLevel:{type:String,default:"2"}}),drawerEmits=dialogEmits,_sfc_main$1d=defineComponent({name:"ElDrawer",components:{ElOverlay,ElFocusTrap,ElIcon,Close:close_default},inheritAttrs:!1,props:drawerProps,emits:drawerEmits,setup(t,{slots:r}){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(()=>!!r.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(()=>!!t.customClass));const $=ref(),V=ref(),oe=useNamespace("drawer"),{t:ie}=useLocale(),le=computed(()=>t.direction==="rtl"||t.direction==="ltr"),ue=computed(()=>addUnit(t.size));return{...useDialog(t,$),drawerRef:$,focusStartRef:V,isHorizontal:le,drawerSize:ue,ns:oe,t:ie}}}),_hoisted_1$C=["aria-label","aria-labelledby","aria-describedby"],_hoisted_2$p=["id","aria-level"],_hoisted_3$d=["aria-label"],_hoisted_4$9=["id"];function _sfc_render$p(t,r,$,V,oe,ie){const le=resolveComponent("close"),ue=resolveComponent("el-icon"),de=resolveComponent("el-focus-trap"),pe=resolveComponent("el-overlay");return openBlock(),createBlock(Teleport,{to:"body",disabled:!t.appendToBody},[createVNode(Transition,{name:t.ns.b("fade"),onAfterEnter:t.afterEnter,onAfterLeave:t.afterLeave,onBeforeLeave:t.beforeLeave,persisted:""},{default:withCtx(()=>[withDirectives(createVNode(pe,{mask:t.modal,"overlay-class":t.modalClass,"z-index":t.zIndex,onClick:t.onModalClick},{default:withCtx(()=>[createVNode(de,{loop:"",trapped:t.visible,"focus-trap-el":t.drawerRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",mergeProps({ref:"drawerRef","aria-modal":"true","aria-label":t.title||void 0,"aria-labelledby":t.title?void 0:t.titleId,"aria-describedby":t.bodyId},t.$attrs,{class:[t.ns.b(),t.direction,t.visible&&"open",t.customClass],style:t.isHorizontal?"width: "+t.drawerSize:"height: "+t.drawerSize,role:"dialog",onClick:r[1]||(r[1]=withModifiers(()=>{},["stop"]))}),[createBaseVNode("span",{ref:"focusStartRef",class:normalizeClass(t.ns.e("sr-focus")),tabindex:"-1"},null,2),t.withHeader?(openBlock(),createElementBlock("header",{key:0,class:normalizeClass(t.ns.e("header"))},[t.$slots.title?renderSlot(t.$slots,"title",{key:1},()=>[createCommentVNode(" DEPRECATED SLOT ")]):renderSlot(t.$slots,"header",{key:0,close:t.handleClose,titleId:t.titleId,titleClass:t.ns.e("title")},()=>[t.$slots.title?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,id:t.titleId,role:"heading","aria-level":t.headerAriaLevel,class:normalizeClass(t.ns.e("title"))},toDisplayString$1(t.title),11,_hoisted_2$p))]),t.showClose?(openBlock(),createElementBlock("button",{key:2,"aria-label":t.t("el.drawer.close"),class:normalizeClass(t.ns.e("close-btn")),type:"button",onClick:r[0]||(r[0]=(...he)=>t.handleClose&&t.handleClose(...he))},[createVNode(ue,{class:normalizeClass(t.ns.e("close"))},{default:withCtx(()=>[createVNode(le)]),_:1},8,["class"])],10,_hoisted_3$d)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),t.rendered?(openBlock(),createElementBlock("div",{key:1,id:t.bodyId,class:normalizeClass(t.ns.e("body"))},[renderSlot(t.$slots,"default")],10,_hoisted_4$9)):createCommentVNode("v-if",!0),t.$slots.footer?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(t.ns.e("footer"))},[renderSlot(t.$slots,"footer")],2)):createCommentVNode("v-if",!0)],16,_hoisted_1$C)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])]),_:3},8,["mask","overlay-class","z-index","onClick"]),[[vShow,t.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"])}var Drawer=_export_sfc$1(_sfc_main$1d,[["render",_sfc_render$p],["__file","/home/runner/work/element-plus/element-plus/packages/components/drawer/src/drawer.vue"]]);const ElDrawer=withInstall(Drawer),_sfc_main$1c=defineComponent({inheritAttrs:!1});function _sfc_render$o(t,r,$,V,oe,ie){return renderSlot(t.$slots,"default")}var Collection=_export_sfc$1(_sfc_main$1c,[["render",_sfc_render$o],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const _sfc_main$1b=defineComponent({name:"ElCollectionItem",inheritAttrs:!1});function _sfc_render$n(t,r,$,V,oe,ie){return renderSlot(t.$slots,"default")}var CollectionItem=_export_sfc$1(_sfc_main$1b,[["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=t=>{const r=`El${t}Collection`,$=`${r}Item`,V=Symbol(r),oe=Symbol($),ie={...Collection,name:r,setup(){const ue=ref(null),de=new Map;provide(V,{itemMap:de,getItems:()=>{const he=unref(ue);if(!he)return[];const _e=Array.from(he.querySelectorAll(`[${COLLECTION_ITEM_SIGN}]`));return[...de.values()].sort((Ie,Ve)=>_e.indexOf(Ie.ref)-_e.indexOf(Ve.ref))},collectionRef:ue})}},le={...CollectionItem,name:$,setup(ue,{attrs:de}){const pe=ref(null),he=inject(V,void 0);provide(oe,{collectionItemRef:pe}),onMounted(()=>{const _e=unref(pe);_e&&he.itemMap.set(_e,{ref:_e,...de})}),onBeforeUnmount(()=>{const _e=unref(pe);he.itemMap.delete(_e)})}};return{COLLECTION_INJECTION_KEY:V,COLLECTION_ITEM_INJECTION_KEY:oe,ElCollection:ie,ElCollectionItem:le}},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=(t,r)=>{if(r!=="rtl")return t;switch(t){case EVENT_CODE.right:return EVENT_CODE.left;case EVENT_CODE.left:return EVENT_CODE.right;default:return t}},getFocusIntent=(t,r,$)=>{const V=getDirectionAwareKey(t.key,$);if(!(r==="vertical"&&[EVENT_CODE.left,EVENT_CODE.right].includes(V))&&!(r==="horizontal"&&[EVENT_CODE.up,EVENT_CODE.down].includes(V)))return MAP_KEY_TO_FOCUS_INTENT[V]},reorderArray=(t,r)=>t.map(($,V)=>t[(V+r)%t.length]),focusFirst=t=>{const{activeElement:r}=document;for(const $ of t)if($===r||($.focus(),r!==document.activeElement))return},CURRENT_TAB_ID_CHANGE_EVT="currentTabIdChange",ENTRY_FOCUS_EVT="rovingFocusGroup.entryFocus",EVT_OPTS={bubbles:!1,cancelable:!0},_sfc_main$1a=defineComponent({name:"ElRovingFocusGroupImpl",inheritAttrs:!1,props:rovingFocusGroupProps,emits:[CURRENT_TAB_ID_CHANGE_EVT,"entryFocus"],setup(t,{emit:r}){var $;const V=ref(($=t.currentTabId||t.defaultCurrentTabId)!=null?$:null),oe=ref(!1),ie=ref(!1),le=ref(null),{getItems:ue}=inject(COLLECTION_INJECTION_KEY$1,void 0),de=computed(()=>[{outline:"none"},t.style]),pe=Fe=>{r(CURRENT_TAB_ID_CHANGE_EVT,Fe)},he=()=>{oe.value=!0},_e=composeEventHandlers(Fe=>{var Ue;(Ue=t.onMousedown)==null||Ue.call(t,Fe)},()=>{ie.value=!0}),$e=composeEventHandlers(Fe=>{var Ue;(Ue=t.onFocus)==null||Ue.call(t,Fe)},Fe=>{const Ue=!unref(ie),{target:qe,currentTarget:Et}=Fe;if(qe===Et&&Ue&&!unref(oe)){const Lt=new Event(ENTRY_FOCUS_EVT,EVT_OPTS);if(Et==null||Et.dispatchEvent(Lt),!Lt.defaultPrevented){const hn=ue().filter(wn=>wn.focusable),Cn=hn.find(wn=>wn.active),bn=hn.find(wn=>wn.id===unref(V)),En=[Cn,bn,...hn].filter(Boolean).map(wn=>wn.ref);focusFirst(En)}}ie.value=!1}),Ie=composeEventHandlers(Fe=>{var Ue;(Ue=t.onBlur)==null||Ue.call(t,Fe)},()=>{oe.value=!1}),Ve=(...Fe)=>{r("entryFocus",...Fe)};provide(ROVING_FOCUS_GROUP_INJECTION_KEY,{currentTabbedId:readonly(V),loop:toRef(t,"loop"),tabIndex:computed(()=>unref(oe)?-1:0),rovingFocusGroupRef:le,rovingFocusGroupRootStyle:de,orientation:toRef(t,"orientation"),dir:toRef(t,"dir"),onItemFocus:pe,onItemShiftTab:he,onBlur:Ie,onFocus:$e,onMousedown:_e}),watch(()=>t.currentTabId,Fe=>{V.value=Fe??null}),useEventListener$1(le,ENTRY_FOCUS_EVT,Ve)}});function _sfc_render$m(t,r,$,V,oe,ie){return renderSlot(t.$slots,"default")}var ElRovingFocusGroupImpl=_export_sfc$1(_sfc_main$1a,[["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$19=defineComponent({name:"ElRovingFocusGroup",components:{ElFocusGroupCollection:ElCollection$1,ElRovingFocusGroupImpl}});function _sfc_render$l(t,r,$,V,oe,ie){const le=resolveComponent("el-roving-focus-group-impl"),ue=resolveComponent("el-focus-group-collection");return openBlock(),createBlock(ue,null,{default:withCtx(()=>[createVNode(le,normalizeProps(guardReactiveProps(t.$attrs)),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16)]),_:3})}var ElRovingFocusGroup=_export_sfc$1(_sfc_main$19,[["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$18=defineComponent({components:{ElRovingFocusCollectionItem:ElCollectionItem$1},props:{focusable:{type:Boolean,default:!0},active:{type:Boolean,default:!1}},emits:["mousedown","focus","keydown"],setup(t,{emit:r}){const{currentTabbedId:$,loop:V,onItemFocus:oe,onItemShiftTab:ie}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{getItems:le}=inject(COLLECTION_INJECTION_KEY$1,void 0),ue=useId(),de=ref(null),pe=composeEventHandlers(Ie=>{r("mousedown",Ie)},Ie=>{t.focusable?oe(unref(ue)):Ie.preventDefault()}),he=composeEventHandlers(Ie=>{r("focus",Ie)},()=>{oe(unref(ue))}),_e=composeEventHandlers(Ie=>{r("keydown",Ie)},Ie=>{const{key:Ve,shiftKey:Fe,target:Ue,currentTarget:qe}=Ie;if(Ve===EVENT_CODE.tab&&Fe){ie();return}if(Ue!==qe)return;const Et=getFocusIntent(Ie);if(Et){Ie.preventDefault();let hn=le().filter(Cn=>Cn.focusable).map(Cn=>Cn.ref);switch(Et){case"last":{hn.reverse();break}case"prev":case"next":{Et==="prev"&&hn.reverse();const Cn=hn.indexOf(qe);hn=V.value?reorderArray(hn,Cn+1):hn.slice(Cn+1);break}}nextTick(()=>{focusFirst(hn)})}}),$e=computed(()=>$.value===unref(ue));return provide(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,{rovingFocusGroupItemRef:de,tabIndex:computed(()=>unref($e)?0:-1),handleMousedown:pe,handleFocus:he,handleKeydown:_e}),{id:ue,handleKeydown:_e,handleFocus:he,handleMousedown:pe}}});function _sfc_render$k(t,r,$,V,oe,ie){const le=resolveComponent("el-roving-focus-collection-item");return openBlock(),createBlock(le,{id:t.id,focusable:t.focusable,active:t.active},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["id","focusable","active"])}var ElRovingFocusItem=_export_sfc$1(_sfc_main$18,[["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$17=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(t,{emit:r}){const $=getCurrentInstance(),V=useNamespace("dropdown"),{t:oe}=useLocale(),ie=ref(),le=ref(),ue=ref(null),de=ref(null),pe=ref(null),he=ref(null),_e=ref(!1),$e=[EVENT_CODE.enter,EVENT_CODE.space,EVENT_CODE.down],Ie=computed(()=>({maxHeight:addUnit(t.maxHeight)})),Ve=computed(()=>[V.m(Cn.value)]),Fe=computed(()=>castArray$1(t.trigger)),Ue=useId().value,qe=computed(()=>t.id||Ue);watch([ie,Fe],([Dn,Ln],[Pn])=>{var Fn,Un,Wn;(Fn=Pn==null?void 0:Pn.$el)!=null&&Fn.removeEventListener&&Pn.$el.removeEventListener("pointerenter",Sn),(Un=Dn==null?void 0:Dn.$el)!=null&&Un.removeEventListener&&Dn.$el.removeEventListener("pointerenter",Sn),(Wn=Dn==null?void 0:Dn.$el)!=null&&Wn.addEventListener&&Ln.includes("hover")&&Dn.$el.addEventListener("pointerenter",Sn)},{immediate:!0}),onBeforeUnmount(()=>{var Dn,Ln;(Ln=(Dn=ie.value)==null?void 0:Dn.$el)!=null&&Ln.removeEventListener&&ie.value.$el.removeEventListener("pointerenter",Sn)});function Et(){Lt()}function Lt(){var Dn;(Dn=ue.value)==null||Dn.onClose()}function hn(){var Dn;(Dn=ue.value)==null||Dn.onOpen()}const Cn=useFormSize();function bn(...Dn){r("command",...Dn)}function Sn(){var Dn,Ln;(Ln=(Dn=ie.value)==null?void 0:Dn.$el)==null||Ln.focus()}function En(){}function wn(){const Dn=unref(de);Fe.value.includes("hover")&&(Dn==null||Dn.focus()),he.value=null}function $n(Dn){he.value=Dn}function Tn(Dn){_e.value||(Dn.preventDefault(),Dn.stopImmediatePropagation())}function xn(){r("visible-change",!0)}function An(Dn){(Dn==null?void 0:Dn.type)==="keydown"&&de.value.focus()}function Mn(){r("visible-change",!1)}return provide(DROPDOWN_INJECTION_KEY,{contentRef:de,role:computed(()=>t.role),triggerId:qe,isUsingKeyboard:_e,onItemEnter:En,onItemLeave:wn}),provide("elDropdown",{instance:$,dropdownSize:Cn,handleClick:Et,commandHandler:bn,trigger:toRef(t,"trigger"),hideOnClick:toRef(t,"hideOnClick")}),{t:oe,ns:V,scrollbar:pe,wrapStyle:Ie,dropdownTriggerKls:Ve,dropdownSize:Cn,triggerId:qe,triggerKeys:$e,currentTabId:he,handleCurrentTabIdChange:$n,handlerMainButtonClick:Dn=>{r("click",Dn)},handleEntryFocus:Tn,handleClose:Lt,handleOpen:hn,handleBeforeShowTooltip:xn,handleShowTooltip:An,handleBeforeHideTooltip:Mn,onFocusAfterTrapped:Dn=>{var Ln,Pn;Dn.preventDefault(),(Pn=(Ln=de.value)==null?void 0:Ln.focus)==null||Pn.call(Ln,{preventScroll:!0})},popperRef:ue,contentRef:de,triggeringElementRef:ie,referenceElementRef:le}}});function _sfc_render$j(t,r,$,V,oe,ie){var le;const ue=resolveComponent("el-dropdown-collection"),de=resolveComponent("el-roving-focus-group"),pe=resolveComponent("el-scrollbar"),he=resolveComponent("el-only-child"),_e=resolveComponent("el-tooltip"),$e=resolveComponent("el-button"),Ie=resolveComponent("arrow-down"),Ve=resolveComponent("el-icon"),Fe=resolveComponent("el-button-group");return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b(),t.ns.is("disabled",t.disabled)])},[createVNode(_e,{ref:"popperRef",role:t.role,effect:t.effect,"fallback-placements":["bottom","top"],"popper-options":t.popperOptions,"gpu-acceleration":!1,"hide-after":t.trigger==="hover"?t.hideTimeout:0,"manual-mode":!0,placement:t.placement,"popper-class":[t.ns.e("popper"),t.popperClass],"reference-element":(le=t.referenceElementRef)==null?void 0:le.$el,trigger:t.trigger,"trigger-keys":t.triggerKeys,"trigger-target-el":t.contentRef,"show-after":t.trigger==="hover"?t.showTimeout:0,"stop-popper-mouse-event":!1,"virtual-ref":t.triggeringElementRef,"virtual-triggering":t.splitButton,disabled:t.disabled,transition:`${t.ns.namespace.value}-zoom-in-top`,teleported:t.teleported,pure:"",persistent:"",onBeforeShow:t.handleBeforeShowTooltip,onShow:t.handleShowTooltip,onBeforeHide:t.handleBeforeHideTooltip},createSlots({content:withCtx(()=>[createVNode(pe,{ref:"scrollbar","wrap-style":t.wrapStyle,tag:"div","view-class":t.ns.e("list")},{default:withCtx(()=>[createVNode(de,{loop:t.loop,"current-tab-id":t.currentTabId,orientation:"horizontal",onCurrentTabIdChange:t.handleCurrentTabIdChange,onEntryFocus:t.handleEntryFocus},{default:withCtx(()=>[createVNode(ue,null,{default:withCtx(()=>[renderSlot(t.$slots,"dropdown")]),_:3})]),_:3},8,["loop","current-tab-id","onCurrentTabIdChange","onEntryFocus"])]),_:3},8,["wrap-style","view-class"])]),_:2},[t.splitButton?void 0:{name:"default",fn:withCtx(()=>[createVNode(he,{id:t.triggerId,ref:"triggeringElementRef",role:"button",tabindex:t.tabindex},{default:withCtx(()=>[renderSlot(t.$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"]),t.splitButton?(openBlock(),createBlock(Fe,{key:0},{default:withCtx(()=>[createVNode($e,mergeProps({ref:"referenceElementRef"},t.buttonProps,{size:t.dropdownSize,type:t.type,disabled:t.disabled,tabindex:t.tabindex,onClick:t.handlerMainButtonClick}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["size","type","disabled","tabindex","onClick"]),createVNode($e,mergeProps({id:t.triggerId,ref:"triggeringElementRef"},t.buttonProps,{role:"button",size:t.dropdownSize,type:t.type,class:t.ns.e("caret-button"),disabled:t.disabled,tabindex:t.tabindex,"aria-label":t.t("el.dropdown.toggleDropdown")}),{default:withCtx(()=>[createVNode(Ve,{class:normalizeClass(t.ns.e("icon"))},{default:withCtx(()=>[createVNode(Ie)]),_: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$17,[["render",_sfc_render$j],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown.vue"]]);const _sfc_main$16=defineComponent({name:"DropdownItemImpl",components:{ElIcon},props:dropdownItemProps,emits:["pointermove","pointerleave","click","clickimpl"],setup(t,{emit:r}){const $=useNamespace("dropdown"),{role:V}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionItemRef:oe}=inject(COLLECTION_ITEM_INJECTION_KEY,void 0),{collectionItemRef:ie}=inject(COLLECTION_ITEM_INJECTION_KEY$1,void 0),{rovingFocusGroupItemRef:le,tabIndex:ue,handleFocus:de,handleKeydown:pe,handleMousedown:he}=inject(ROVING_FOCUS_GROUP_ITEM_INJECTION_KEY,void 0),_e=composeRefs(oe,ie,le),$e=computed(()=>V.value==="menu"?"menuitem":V.value==="navigation"?"link":"button"),Ie=composeEventHandlers(Ve=>{const{code:Fe}=Ve;if(Fe===EVENT_CODE.enter||Fe===EVENT_CODE.space)return Ve.preventDefault(),Ve.stopImmediatePropagation(),r("clickimpl",Ve),!0},pe);return{ns:$,itemRef:_e,dataset:{[COLLECTION_ITEM_SIGN]:""},role:$e,tabIndex:ue,handleFocus:de,handleKeydown:Ie,handleMousedown:he}}}),_hoisted_1$B=["aria-disabled","tabindex","role"];function _sfc_render$i(t,r,$,V,oe,ie){const le=resolveComponent("el-icon");return openBlock(),createElementBlock(Fragment,null,[t.divided?(openBlock(),createElementBlock("li",mergeProps({key:0,role:"separator",class:t.ns.bem("menu","item","divided")},t.$attrs),null,16)):createCommentVNode("v-if",!0),createBaseVNode("li",mergeProps({ref:t.itemRef},{...t.dataset,...t.$attrs},{"aria-disabled":t.disabled,class:[t.ns.be("menu","item"),t.ns.is("disabled",t.disabled)],tabindex:t.tabIndex,role:t.role,onClick:r[0]||(r[0]=ue=>t.$emit("clickimpl",ue)),onFocus:r[1]||(r[1]=(...ue)=>t.handleFocus&&t.handleFocus(...ue)),onKeydown:r[2]||(r[2]=withModifiers((...ue)=>t.handleKeydown&&t.handleKeydown(...ue),["self"])),onMousedown:r[3]||(r[3]=(...ue)=>t.handleMousedown&&t.handleMousedown(...ue)),onPointermove:r[4]||(r[4]=ue=>t.$emit("pointermove",ue)),onPointerleave:r[5]||(r[5]=ue=>t.$emit("pointerleave",ue))}),[t.icon?(openBlock(),createBlock(le,{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.icon)))]),_:1})):createCommentVNode("v-if",!0),renderSlot(t.$slots,"default")],16,_hoisted_1$B)],64)}var ElDropdownItemImpl=_export_sfc$1(_sfc_main$16,[["render",_sfc_render$i],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item-impl.vue"]]);const useDropdown=()=>{const t=inject("elDropdown",{}),r=computed(()=>t==null?void 0:t.dropdownSize);return{elDropdown:t,_elDropdownSize:r}},_sfc_main$15=defineComponent({name:"ElDropdownItem",components:{ElDropdownCollectionItem:ElCollectionItem,ElRovingFocusItem,ElDropdownItemImpl},inheritAttrs:!1,props:dropdownItemProps,emits:["pointermove","pointerleave","click"],setup(t,{emit:r,attrs:$}){const{elDropdown:V}=useDropdown(),oe=getCurrentInstance(),ie=ref(null),le=computed(()=>{var Ie,Ve;return(Ve=(Ie=unref(ie))==null?void 0:Ie.textContent)!=null?Ve:""}),{onItemEnter:ue,onItemLeave:de}=inject(DROPDOWN_INJECTION_KEY,void 0),pe=composeEventHandlers(Ie=>(r("pointermove",Ie),Ie.defaultPrevented),whenMouse(Ie=>{if(t.disabled){de(Ie);return}const Ve=Ie.currentTarget;Ve===document.activeElement||Ve.contains(document.activeElement)||(ue(Ie),Ie.defaultPrevented||Ve==null||Ve.focus())})),he=composeEventHandlers(Ie=>(r("pointerleave",Ie),Ie.defaultPrevented),whenMouse(Ie=>{de(Ie)})),_e=composeEventHandlers(Ie=>{if(!t.disabled)return r("click",Ie),Ie.type!=="keydown"&&Ie.defaultPrevented},Ie=>{var Ve,Fe,Ue;if(t.disabled){Ie.stopImmediatePropagation();return}(Ve=V==null?void 0:V.hideOnClick)!=null&&Ve.value&&((Fe=V.handleClick)==null||Fe.call(V)),(Ue=V.commandHandler)==null||Ue.call(V,t.command,oe,Ie)}),$e=computed(()=>({...t,...$}));return{handleClick:_e,handlePointerMove:pe,handlePointerLeave:he,textContent:le,propsAndAttrs:$e}}});function _sfc_render$h(t,r,$,V,oe,ie){var le;const ue=resolveComponent("el-dropdown-item-impl"),de=resolveComponent("el-roving-focus-item"),pe=resolveComponent("el-dropdown-collection-item");return openBlock(),createBlock(pe,{disabled:t.disabled,"text-value":(le=t.textValue)!=null?le:t.textContent},{default:withCtx(()=>[createVNode(de,{focusable:!t.disabled},{default:withCtx(()=>[createVNode(ue,mergeProps(t.propsAndAttrs,{onPointerleave:t.handlePointerLeave,onPointermove:t.handlePointerMove,onClickimpl:t.handleClick}),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16,["onPointerleave","onPointermove","onClickimpl"])]),_:3},8,["focusable"])]),_:3},8,["disabled","text-value"])}var DropdownItem=_export_sfc$1(_sfc_main$15,[["render",_sfc_render$h],["__file","/home/runner/work/element-plus/element-plus/packages/components/dropdown/src/dropdown-item.vue"]]);const _sfc_main$14=defineComponent({name:"ElDropdownMenu",props:dropdownMenuProps,setup(t){const r=useNamespace("dropdown"),{_elDropdownSize:$}=useDropdown(),V=$.value,{focusTrapRef:oe,onKeydown:ie}=inject(FOCUS_TRAP_INJECTION_KEY,void 0),{contentRef:le,role:ue,triggerId:de}=inject(DROPDOWN_INJECTION_KEY,void 0),{collectionRef:pe,getItems:he}=inject(COLLECTION_INJECTION_KEY,void 0),{rovingFocusGroupRef:_e,rovingFocusGroupRootStyle:$e,tabIndex:Ie,onBlur:Ve,onFocus:Fe,onMousedown:Ue}=inject(ROVING_FOCUS_GROUP_INJECTION_KEY,void 0),{collectionRef:qe}=inject(COLLECTION_INJECTION_KEY$1,void 0),Et=computed(()=>[r.b("menu"),r.bm("menu",V==null?void 0:V.value)]),Lt=composeRefs(le,pe,oe,_e,qe),hn=composeEventHandlers(bn=>{var Sn;(Sn=t.onKeydown)==null||Sn.call(t,bn)},bn=>{const{currentTarget:Sn,code:En,target:wn}=bn;if(Sn.contains(wn),EVENT_CODE.tab===En&&bn.stopImmediatePropagation(),bn.preventDefault(),wn!==unref(le)||!FIRST_LAST_KEYS.includes(En))return;const Tn=he().filter(xn=>!xn.disabled).map(xn=>xn.ref);LAST_KEYS.includes(En)&&Tn.reverse(),focusFirst(Tn)});return{size:V,rovingFocusGroupRootStyle:$e,tabIndex:Ie,dropdownKls:Et,role:ue,triggerId:de,dropdownListWrapperRef:Lt,handleKeydown:bn=>{hn(bn),ie(bn)},onBlur:Ve,onFocus:Fe,onMousedown:Ue}}}),_hoisted_1$A=["role","aria-labelledby"];function _sfc_render$g(t,r,$,V,oe,ie){return openBlock(),createElementBlock("ul",{ref:t.dropdownListWrapperRef,class:normalizeClass(t.dropdownKls),style:normalizeStyle$1(t.rovingFocusGroupRootStyle),tabindex:-1,role:t.role,"aria-labelledby":t.triggerId,onBlur:r[0]||(r[0]=(...le)=>t.onBlur&&t.onBlur(...le)),onFocus:r[1]||(r[1]=(...le)=>t.onFocus&&t.onFocus(...le)),onKeydown:r[2]||(r[2]=withModifiers((...le)=>t.handleKeydown&&t.handleKeydown(...le),["self"])),onMousedown:r[3]||(r[3]=withModifiers((...le)=>t.onMousedown&&t.onMousedown(...le),["self"]))},[renderSlot(t.$slots,"default")],46,_hoisted_1$A)}var DropdownMenu=_export_sfc$1(_sfc_main$14,[["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$z={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$o=["id"],_hoisted_3$c=["stop-color"],_hoisted_4$8=["stop-color"],_hoisted_5$6=["id"],_hoisted_6$2=["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$13=defineComponent({...__default__$L,setup(t){const r=useNamespace("empty"),$=useId();return(V,oe)=>(openBlock(),createElementBlock("svg",_hoisted_1$z,[createBaseVNode("defs",null,[createBaseVNode("linearGradient",{id:`linearGradient-1-${unref($)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_3$c),createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,_hoisted_4$8)],8,_hoisted_2$o),createBaseVNode("linearGradient",{id:`linearGradient-2-${unref($)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,_hoisted_6$2),createBaseVNode("stop",{"stop-color":`var(${unref(r).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,_hoisted_7)],8,_hoisted_5$6),createBaseVNode("rect",{id:`path-3-${unref($)}`,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(r).cssVarBlockName("fill-color-3")})`},null,8,_hoisted_12),createBaseVNode("polygon",{id:"Rectangle-Copy-14",fill:`var(${unref(r).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(r).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(r).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($)})`,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(r).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($)})`,x:"13",y:"45",width:"40",height:"36"},null,8,_hoisted_19),createBaseVNode("g",_hoisted_20,[createBaseVNode("use",{id:"Mask",fill:`var(${unref(r).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${unref($)}`},null,8,_hoisted_21),createBaseVNode("polygon",{id:"Rectangle-Copy",fill:`var(${unref(r).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${unref($)})`,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(r).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$13,[["__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$y=["src"],_hoisted_2$n={key:1},__default__$K=defineComponent({name:"ElEmpty"}),_sfc_main$12=defineComponent({...__default__$K,props:emptyProps,setup(t){const r=t,{t:$}=useLocale(),V=useNamespace("empty"),oe=computed(()=>r.description||$("el.table.emptyText")),ie=computed(()=>({width:addUnit(r.imageSize)}));return(le,ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(V).b())},[createBaseVNode("div",{class:normalizeClass(unref(V).e("image")),style:normalizeStyle$1(unref(ie))},[le.image?(openBlock(),createElementBlock("img",{key:0,src:le.image,ondragstart:"return false"},null,8,_hoisted_1$y)):renderSlot(le.$slots,"image",{key:1},()=>[createVNode(ImgEmpty)])],6),createBaseVNode("div",{class:normalizeClass(unref(V).e("description"))},[le.$slots.description?renderSlot(le.$slots,"description",{key:0}):(openBlock(),createElementBlock("p",_hoisted_2$n,toDisplayString$1(unref(oe)),1))],2),le.$slots.default?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("bottom"))},[renderSlot(le.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var Empty=_export_sfc$1(_sfc_main$12,[["__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:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2}}),imageViewerEmits={close:()=>!0,switch:t=>isNumber$4(t),rotate:t=>isNumber$4(t)},_hoisted_1$x=["src"],__default__$J=defineComponent({name:"ElImageViewer"}),_sfc_main$11=defineComponent({...__default__$J,props:imageViewerProps,emits:imageViewerEmits,setup(t,{expose:r,emit:$}){const V=t,oe={CONTAIN:{name:"contain",icon:markRaw(full_screen_default)},ORIGINAL:{name:"original",icon:markRaw(scale_to_original_default)}},{t:ie}=useLocale(),le=useNamespace("image-viewer"),{nextZIndex:ue}=useZIndex(),de=ref(),pe=ref([]),he=effectScope(),_e=ref(!0),$e=ref(V.initialIndex),Ie=shallowRef(oe.CONTAIN),Ve=ref({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),Fe=computed(()=>{const{urlList:Pn}=V;return Pn.length<=1}),Ue=computed(()=>$e.value===0),qe=computed(()=>$e.value===V.urlList.length-1),Et=computed(()=>V.urlList[$e.value]),Lt=computed(()=>[le.e("btn"),le.e("prev"),le.is("disabled",!V.infinite&&Ue.value)]),hn=computed(()=>[le.e("btn"),le.e("next"),le.is("disabled",!V.infinite&&qe.value)]),Cn=computed(()=>{const{scale:Pn,deg:Fn,offsetX:Un,offsetY:Wn,enableTransition:Zn}=Ve.value;let or=Un/Pn,br=Wn/Pn;switch(Fn%360){case 90:case-270:[or,br]=[br,-or];break;case 180:case-180:[or,br]=[-or,-br];break;case 270:case-90:[or,br]=[-br,or];break}const Qn={transform:`scale(${Pn}) rotate(${Fn}deg) translate(${or}px, ${br}px)`,transition:Zn?"transform .3s":""};return Ie.value.name===oe.CONTAIN.name&&(Qn.maxWidth=Qn.maxHeight="100%"),Qn}),bn=computed(()=>isNumber$4(V.zIndex)?V.zIndex:ue());function Sn(){wn(),$("close")}function En(){const Pn=throttle$1(Un=>{switch(Un.code){case EVENT_CODE.esc:V.closeOnPressEscape&&Sn();break;case EVENT_CODE.space:Mn();break;case EVENT_CODE.left:Bn();break;case EVENT_CODE.up:Ln("zoomIn");break;case EVENT_CODE.right:Dn();break;case EVENT_CODE.down:Ln("zoomOut");break}}),Fn=throttle$1(Un=>{const Wn=Un.deltaY||Un.deltaX;Ln(Wn<0?"zoomIn":"zoomOut",{zoomRate:V.zoomRate,enableTransition:!1})});he.run(()=>{useEventListener$1(document,"keydown",Pn),useEventListener$1(document,"wheel",Fn)})}function wn(){he.stop()}function $n(){_e.value=!1}function Tn(Pn){_e.value=!1,Pn.target.alt=ie("el.image.error")}function xn(Pn){if(_e.value||Pn.button!==0||!de.value)return;Ve.value.enableTransition=!1;const{offsetX:Fn,offsetY:Un}=Ve.value,Wn=Pn.pageX,Zn=Pn.pageY,or=throttle$1(Qn=>{Ve.value={...Ve.value,offsetX:Fn+Qn.pageX-Wn,offsetY:Un+Qn.pageY-Zn}}),br=useEventListener$1(document,"mousemove",or);useEventListener$1(document,"mouseup",()=>{br()}),Pn.preventDefault()}function An(){Ve.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function Mn(){if(_e.value)return;const Pn=keysOf(oe),Fn=Object.values(oe),Un=Ie.value.name,Zn=(Fn.findIndex(or=>or.name===Un)+1)%Pn.length;Ie.value=oe[Pn[Zn]],An()}function Vn(Pn){const Fn=V.urlList.length;$e.value=(Pn+Fn)%Fn}function Bn(){Ue.value&&!V.infinite||Vn($e.value-1)}function Dn(){qe.value&&!V.infinite||Vn($e.value+1)}function Ln(Pn,Fn={}){if(_e.value)return;const{zoomRate:Un,rotateDeg:Wn,enableTransition:Zn}={zoomRate:V.zoomRate,rotateDeg:90,enableTransition:!0,...Fn};switch(Pn){case"zoomOut":Ve.value.scale>.2&&(Ve.value.scale=Number.parseFloat((Ve.value.scale/Un).toFixed(3)));break;case"zoomIn":Ve.value.scale<7&&(Ve.value.scale=Number.parseFloat((Ve.value.scale*Un).toFixed(3)));break;case"clockwise":Ve.value.deg+=Wn,$("rotate",Ve.value.deg);break;case"anticlockwise":Ve.value.deg-=Wn,$("rotate",Ve.value.deg);break}Ve.value.enableTransition=Zn}return watch(Et,()=>{nextTick(()=>{const Pn=pe.value[0];Pn!=null&&Pn.complete||(_e.value=!0)})}),watch($e,Pn=>{An(),$("switch",Pn)}),onMounted(()=>{var Pn,Fn;En(),(Fn=(Pn=de.value)==null?void 0:Pn.focus)==null||Fn.call(Pn)}),r({setActiveItem:Vn}),(Pn,Fn)=>(openBlock(),createBlock(Teleport,{to:"body",disabled:!Pn.teleported},[createVNode(Transition,{name:"viewer-fade",appear:""},{default:withCtx(()=>[createBaseVNode("div",{ref_key:"wrapper",ref:de,tabindex:-1,class:normalizeClass(unref(le).e("wrapper")),style:normalizeStyle$1({zIndex:unref(bn)})},[createBaseVNode("div",{class:normalizeClass(unref(le).e("mask")),onClick:Fn[0]||(Fn[0]=withModifiers(Un=>Pn.hideOnClickModal&&Sn(),["self"]))},null,2),createCommentVNode(" CLOSE "),createBaseVNode("span",{class:normalizeClass([unref(le).e("btn"),unref(le).e("close")]),onClick:Sn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(close_default))]),_:1})],2),createCommentVNode(" ARROW "),unref(Fe)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[createBaseVNode("span",{class:normalizeClass(unref(Lt)),onClick:Bn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1})],2),createBaseVNode("span",{class:normalizeClass(unref(hn)),onClick:Dn},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_right_default))]),_:1})],2)],64)),createCommentVNode(" ACTIONS "),createBaseVNode("div",{class:normalizeClass([unref(le).e("btn"),unref(le).e("actions")])},[createBaseVNode("div",{class:normalizeClass(unref(le).e("actions__inner"))},[createVNode(unref(ElIcon),{onClick:Fn[1]||(Fn[1]=Un=>Ln("zoomOut"))},{default:withCtx(()=>[createVNode(unref(zoom_out_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Fn[2]||(Fn[2]=Un=>Ln("zoomIn"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(le).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Mn},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ie).icon)))]),_:1}),createBaseVNode("i",{class:normalizeClass(unref(le).e("actions__divider"))},null,2),createVNode(unref(ElIcon),{onClick:Fn[3]||(Fn[3]=Un=>Ln("anticlockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_left_default))]),_:1}),createVNode(unref(ElIcon),{onClick:Fn[4]||(Fn[4]=Un=>Ln("clockwise"))},{default:withCtx(()=>[createVNode(unref(refresh_right_default))]),_:1})],2)],2),createCommentVNode(" CANVAS "),createBaseVNode("div",{class:normalizeClass(unref(le).e("canvas"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Pn.urlList,(Un,Wn)=>withDirectives((openBlock(),createElementBlock("img",{ref_for:!0,ref:Zn=>pe.value[Wn]=Zn,key:Un,src:Un,style:normalizeStyle$1(unref(Cn)),class:normalizeClass(unref(le).e("img")),onLoad:$n,onError:Tn,onMousedown:xn},null,46,_hoisted_1$x)),[[vShow,Wn===$e.value]])),128))],2),renderSlot(Pn.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var ImageViewer=_export_sfc$1(_sfc_main$11,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const ElImageViewer=withInstall(ImageViewer),imageProps=buildProps({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:definePropType([String,Object])},previewSrcList:{type:definePropType(Array),default:()=>mutable([])},previewTeleported:Boolean,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:t=>t instanceof Event,error:t=>t instanceof Event,switch:t=>isNumber$4(t),close:()=>!0,show:()=>!0},_hoisted_1$w=["src","loading"],_hoisted_2$m={key:0},__default__$I=defineComponent({name:"ElImage",inheritAttrs:!1}),_sfc_main$10=defineComponent({...__default__$I,props:imageProps,emits:imageEmits,setup(t,{emit:r}){const $=t;let V="";const{t:oe}=useLocale(),ie=useNamespace("image"),le=useAttrs$1(),ue=useAttrs(),de=ref(),pe=ref(!1),he=ref(!0),_e=ref(!1),$e=ref(),Ie=ref(),Ve=isClient$1&&"loading"in HTMLImageElement.prototype;let Fe,Ue;const qe=computed(()=>[ie.e("inner"),hn.value&&ie.e("preview"),he.value&&ie.is("loading")]),Et=computed(()=>le.style),Lt=computed(()=>{const{fit:Ln}=$;return isClient$1&&Ln?{objectFit:Ln}:{}}),hn=computed(()=>{const{previewSrcList:Ln}=$;return Array.isArray(Ln)&&Ln.length>0}),Cn=computed(()=>{const{previewSrcList:Ln,initialIndex:Pn}=$;let Fn=Pn;return Pn>Ln.length-1&&(Fn=0),Fn}),bn=computed(()=>$.loading==="eager"?!1:!Ve&&$.loading==="lazy"||$.lazy),Sn=()=>{isClient$1&&(he.value=!0,pe.value=!1,de.value=$.src)};function En(Ln){he.value=!1,pe.value=!1,r("load",Ln)}function wn(Ln){he.value=!1,pe.value=!0,r("error",Ln)}function $n(){isInContainer($e.value,Ie.value)&&(Sn(),An())}const Tn=useThrottleFn($n,200,!0);async function xn(){var Ln;if(!isClient$1)return;await nextTick();const{scrollContainer:Pn}=$;isElement$2(Pn)?Ie.value=Pn:isString$6(Pn)&&Pn!==""?Ie.value=(Ln=document.querySelector(Pn))!=null?Ln:void 0:$e.value&&(Ie.value=getScrollContainer($e.value)),Ie.value&&(Fe=useEventListener$1(Ie,"scroll",Tn),setTimeout(()=>$n(),100))}function An(){!isClient$1||!Ie.value||!Tn||(Fe==null||Fe(),Ie.value=void 0)}function Mn(Ln){if(Ln.ctrlKey){if(Ln.deltaY<0)return Ln.preventDefault(),!1;if(Ln.deltaY>0)return Ln.preventDefault(),!1}}function Vn(){hn.value&&(Ue=useEventListener$1("wheel",Mn,{passive:!1}),V=document.body.style.overflow,document.body.style.overflow="hidden",_e.value=!0,r("show"))}function Bn(){Ue==null||Ue(),document.body.style.overflow=V,_e.value=!1,r("close")}function Dn(Ln){r("switch",Ln)}return watch(()=>$.src,()=>{bn.value?(he.value=!0,pe.value=!1,An(),xn()):Sn()}),onMounted(()=>{bn.value?xn():Sn()}),(Ln,Pn)=>(openBlock(),createElementBlock("div",{ref_key:"container",ref:$e,class:normalizeClass([unref(ie).b(),Ln.$attrs.class]),style:normalizeStyle$1(unref(Et))},[pe.value?renderSlot(Ln.$slots,"error",{key:0},()=>[createBaseVNode("div",{class:normalizeClass(unref(ie).e("error"))},toDisplayString$1(unref(oe)("el.image.error")),3)]):(openBlock(),createElementBlock(Fragment,{key:1},[de.value!==void 0?(openBlock(),createElementBlock("img",mergeProps({key:0},unref(ue),{src:de.value,loading:Ln.loading,style:unref(Lt),class:unref(qe),onClick:Vn,onLoad:En,onError:wn}),null,16,_hoisted_1$w)):createCommentVNode("v-if",!0),he.value?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(ie).e("wrapper"))},[renderSlot(Ln.$slots,"placeholder",{},()=>[createBaseVNode("div",{class:normalizeClass(unref(ie).e("placeholder"))},null,2)])],2)):createCommentVNode("v-if",!0)],64)),unref(hn)?(openBlock(),createElementBlock(Fragment,{key:2},[_e.value?(openBlock(),createBlock(unref(ElImageViewer),{key:0,"z-index":Ln.zIndex,"initial-index":unref(Cn),infinite:Ln.infinite,"zoom-rate":Ln.zoomRate,"url-list":Ln.previewSrcList,"hide-on-click-modal":Ln.hideOnClickModal,teleported:Ln.previewTeleported,"close-on-press-escape":Ln.closeOnPressEscape,onClose:Bn,onSwitch:Dn},{default:withCtx(()=>[Ln.$slots.viewer?(openBlock(),createElementBlock("div",_hoisted_2$m,[renderSlot(Ln.$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$10,[["__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:t=>t===null||isNumber$4(t)||["min","max"].includes(t),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:t=>t>=0&&t===Number.parseInt(`${t}`,10)},validateEvent:{type:Boolean,default:!0}}),inputNumberEmits={[CHANGE_EVENT]:(t,r)=>r!==t,blur:t=>t instanceof FocusEvent,focus:t=>t instanceof FocusEvent,[INPUT_EVENT]:t=>isNumber$4(t)||isNil(t),[UPDATE_MODEL_EVENT]:t=>isNumber$4(t)||isNil(t)},_hoisted_1$v=["aria-label","onKeydown"],_hoisted_2$l=["aria-label","onKeydown"],__default__$H=defineComponent({name:"ElInputNumber"}),_sfc_main$$=defineComponent({...__default__$H,props:inputNumberProps,emits:inputNumberEmits,setup(t,{expose:r,emit:$}){const V=t,{t:oe}=useLocale(),ie=useNamespace("input-number"),le=ref(),ue=reactive({currentValue:V.modelValue,userInput:null}),{formItem:de}=useFormItem(),pe=computed(()=>isNumber$4(V.modelValue)&&V.modelValue<=V.min),he=computed(()=>isNumber$4(V.modelValue)&&V.modelValue>=V.max),_e=computed(()=>{const An=qe(V.step);return isUndefined$1(V.precision)?Math.max(qe(V.modelValue),An):(An>V.precision,V.precision)}),$e=computed(()=>V.controls&&V.controlsPosition==="right"),Ie=useFormSize(),Ve=useFormDisabled(),Fe=computed(()=>{if(ue.userInput!==null)return ue.userInput;let An=ue.currentValue;if(isNil(An))return"";if(isNumber$4(An)){if(Number.isNaN(An))return"";isUndefined$1(V.precision)||(An=An.toFixed(V.precision))}return An}),Ue=(An,Mn)=>{if(isUndefined$1(Mn)&&(Mn=_e.value),Mn===0)return Math.round(An);let Vn=String(An);const Bn=Vn.indexOf(".");if(Bn===-1||!Vn.replace(".","").split("")[Bn+Mn])return An;const Pn=Vn.length;return Vn.charAt(Pn-1)==="5"&&(Vn=`${Vn.slice(0,Math.max(0,Pn-1))}6`),Number.parseFloat(Number(Vn).toFixed(Mn))},qe=An=>{if(isNil(An))return 0;const Mn=An.toString(),Vn=Mn.indexOf(".");let Bn=0;return Vn!==-1&&(Bn=Mn.length-Vn-1),Bn},Et=(An,Mn=1)=>isNumber$4(An)?Ue(An+V.step*Mn):ue.currentValue,Lt=()=>{if(V.readonly||Ve.value||he.value)return;const An=Number(Fe.value)||0,Mn=Et(An);bn(Mn),$(INPUT_EVENT,ue.currentValue)},hn=()=>{if(V.readonly||Ve.value||pe.value)return;const An=Number(Fe.value)||0,Mn=Et(An,-1);bn(Mn),$(INPUT_EVENT,ue.currentValue)},Cn=(An,Mn)=>{const{max:Vn,min:Bn,step:Dn,precision:Ln,stepStrictly:Pn,valueOnClear:Fn}=V;VnVn||UnVn?Vn:Bn,Mn&&$(UPDATE_MODEL_EVENT,Un)),Un},bn=(An,Mn=!0)=>{var Vn;const Bn=ue.currentValue,Dn=Cn(An);if(!Mn){$(UPDATE_MODEL_EVENT,Dn);return}Bn!==Dn&&(ue.userInput=null,$(UPDATE_MODEL_EVENT,Dn),$(CHANGE_EVENT,Dn,Bn),V.validateEvent&&((Vn=de==null?void 0:de.validate)==null||Vn.call(de,"change").catch(Ln=>void 0)),ue.currentValue=Dn)},Sn=An=>{ue.userInput=An;const Mn=An===""?null:Number(An);$(INPUT_EVENT,Mn),bn(Mn,!1)},En=An=>{const Mn=An!==""?Number(An):"";(isNumber$4(Mn)&&!Number.isNaN(Mn)||An==="")&&bn(Mn),ue.userInput=null},wn=()=>{var An,Mn;(Mn=(An=le.value)==null?void 0:An.focus)==null||Mn.call(An)},$n=()=>{var An,Mn;(Mn=(An=le.value)==null?void 0:An.blur)==null||Mn.call(An)},Tn=An=>{$("focus",An)},xn=An=>{var Mn;$("blur",An),V.validateEvent&&((Mn=de==null?void 0:de.validate)==null||Mn.call(de,"blur").catch(Vn=>void 0))};return watch(()=>V.modelValue,An=>{const Mn=Cn(ue.userInput),Vn=Cn(An,!0);!isNumber$4(Mn)&&(!Mn||Mn!==Vn)&&(ue.currentValue=Vn,ue.userInput=null)},{immediate:!0}),onMounted(()=>{var An;const{min:Mn,max:Vn,modelValue:Bn}=V,Dn=(An=le.value)==null?void 0:An.input;if(Dn.setAttribute("role","spinbutton"),Number.isFinite(Vn)?Dn.setAttribute("aria-valuemax",String(Vn)):Dn.removeAttribute("aria-valuemax"),Number.isFinite(Mn)?Dn.setAttribute("aria-valuemin",String(Mn)):Dn.removeAttribute("aria-valuemin"),Dn.setAttribute("aria-valuenow",ue.currentValue||ue.currentValue===0?String(ue.currentValue):""),Dn.setAttribute("aria-disabled",String(Ve.value)),!isNumber$4(Bn)&&Bn!=null){let Ln=Number(Bn);Number.isNaN(Ln)&&(Ln=null),$(UPDATE_MODEL_EVENT,Ln)}}),onUpdated(()=>{var An,Mn;const Vn=(An=le.value)==null?void 0:An.input;Vn==null||Vn.setAttribute("aria-valuenow",`${(Mn=ue.currentValue)!=null?Mn:""}`)}),r({focus:wn,blur:$n}),(An,Mn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(ie).b(),unref(ie).m(unref(Ie)),unref(ie).is("disabled",unref(Ve)),unref(ie).is("without-controls",!An.controls),unref(ie).is("controls-right",unref($e))]),onDragstart:Mn[1]||(Mn[1]=withModifiers(()=>{},["prevent"]))},[An.controls?withDirectives((openBlock(),createElementBlock("span",{key:0,role:"button","aria-label":unref(oe)("el.inputNumber.decrease"),class:normalizeClass([unref(ie).e("decrease"),unref(ie).is("disabled",unref(pe))]),onKeydown:withKeys(hn,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref($e)?(openBlock(),createBlock(unref(arrow_down_default),{key:0})):(openBlock(),createBlock(unref(minus_default),{key:1}))]),_:1})],42,_hoisted_1$v)),[[unref(vRepeatClick),hn]]):createCommentVNode("v-if",!0),An.controls?withDirectives((openBlock(),createElementBlock("span",{key:1,role:"button","aria-label":unref(oe)("el.inputNumber.increase"),class:normalizeClass([unref(ie).e("increase"),unref(ie).is("disabled",unref(he))]),onKeydown:withKeys(Lt,["enter"])},[createVNode(unref(ElIcon),null,{default:withCtx(()=>[unref($e)?(openBlock(),createBlock(unref(arrow_up_default),{key:0})):(openBlock(),createBlock(unref(plus_default),{key:1}))]),_:1})],42,_hoisted_2$l)),[[unref(vRepeatClick),Lt]]):createCommentVNode("v-if",!0),createVNode(unref(ElInput),{id:An.id,ref_key:"input",ref:le,type:"number",step:An.step,"model-value":unref(Fe),placeholder:An.placeholder,readonly:An.readonly,disabled:unref(Ve),size:unref(Ie),max:An.max,min:An.min,name:An.name,label:An.label,"validate-event":!1,onWheel:Mn[0]||(Mn[0]=withModifiers(()=>{},["prevent"])),onKeydown:[withKeys(withModifiers(Lt,["prevent"]),["up"]),withKeys(withModifiers(hn,["prevent"]),["down"])],onBlur:xn,onFocus:Tn,onInput:Sn,onChange:En},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:t=>t instanceof MouseEvent},_hoisted_1$u=["href"],__default__$G=defineComponent({name:"ElLink"}),_sfc_main$_=defineComponent({...__default__$G,props:linkProps,emits:linkEmits,setup(t,{emit:r}){const $=t,V=useNamespace("link"),oe=computed(()=>[V.b(),V.m($.type),V.is("disabled",$.disabled),V.is("underline",$.underline&&!$.disabled)]);function ie(le){$.disabled||r("click",le)}return(le,ue)=>(openBlock(),createElementBlock("a",{class:normalizeClass(unref(oe)),href:le.disabled||!le.href?void 0:le.href,onClick:ie},[le.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(le.icon)))]),_:1})):createCommentVNode("v-if",!0),le.$slots.default?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(V).e("inner"))},[renderSlot(le.$slots,"default")],2)):createCommentVNode("v-if",!0),le.$slots.icon?renderSlot(le.$slots,"icon",{key:2}):createCommentVNode("v-if",!0)],10,_hoisted_1$u))}});var Link=_export_sfc$1(_sfc_main$_,[["__file","/home/runner/work/element-plus/element-plus/packages/components/link/src/link.vue"]]);const ElLink=withInstall(Link);let SubMenu$1=class{constructor(r,$){this.parent=r,this.domNode=$,this.subIndex=0,this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(r){r===this.subMenuItems.length?r=0:r<0&&(r=this.subMenuItems.length-1),this.subMenuItems[r].focus(),this.subIndex=r}addListeners(){const r=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,$=>{$.addEventListener("keydown",V=>{let oe=!1;switch(V.code){case EVENT_CODE.down:{this.gotoSubIndex(this.subIndex+1),oe=!0;break}case EVENT_CODE.up:{this.gotoSubIndex(this.subIndex-1),oe=!0;break}case EVENT_CODE.tab:{triggerEvent(r,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{oe=!0,V.currentTarget.click();break}}return oe&&(V.preventDefault(),V.stopPropagation()),!1})})}},MenuItem$1=class{constructor(r,$){this.domNode=r,this.submenu=null,this.submenu=null,this.init($)}init(r){this.domNode.setAttribute("tabindex","0");const $=this.domNode.querySelector(`.${r}-menu`);$&&(this.submenu=new SubMenu$1(this,$)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",r=>{let $=!1;switch(r.code){case EVENT_CODE.down:{triggerEvent(r.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),$=!0;break}case EVENT_CODE.up:{triggerEvent(r.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),$=!0;break}case EVENT_CODE.tab:{triggerEvent(r.currentTarget,"mouseleave");break}case EVENT_CODE.enter:case EVENT_CODE.space:{$=!0,r.currentTarget.click();break}}$&&r.preventDefault()})}},Menu$1=class{constructor(r,$){this.domNode=r,this.init($)}init(r){const $=this.domNode.childNodes;Array.from($).forEach(V=>{V.nodeType===1&&new MenuItem$1(V,r)})}};const _sfc_main$Z=defineComponent({name:"ElMenuCollapseTransition",setup(){const t=useNamespace("menu");return{listeners:{onBeforeEnter:$=>$.style.opacity="0.2",onEnter($,V){addClass($,`${t.namespace.value}-opacity-transition`),$.style.opacity="1",V()},onAfterEnter($){removeClass($,`${t.namespace.value}-opacity-transition`),$.style.opacity=""},onBeforeLeave($){$.dataset||($.dataset={}),hasClass($,t.m("collapse"))?(removeClass($,t.m("collapse")),$.dataset.oldOverflow=$.style.overflow,$.dataset.scrollWidth=$.clientWidth.toString(),addClass($,t.m("collapse"))):(addClass($,t.m("collapse")),$.dataset.oldOverflow=$.style.overflow,$.dataset.scrollWidth=$.clientWidth.toString(),removeClass($,t.m("collapse"))),$.style.width=`${$.scrollWidth}px`,$.style.overflow="hidden"},onLeave($){addClass($,"horizontal-collapse-transition"),$.style.width=`${$.dataset.scrollWidth}px`}}}}});function _sfc_render$f(t,r,$,V,oe,ie){return openBlock(),createBlock(Transition,mergeProps({mode:"out-in"},t.listeners),{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},16)}var ElMenuCollapseTransition=_export_sfc$1(_sfc_main$Z,[["render",_sfc_render$f],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function useMenu(t,r){const $=computed(()=>{let oe=t.parent;const ie=[r.value];for(;oe.type.name!=="ElMenu";)oe.props.index&&ie.unshift(oe.props.index),oe=oe.parent;return ie});return{parentMenu:computed(()=>{let oe=t.parent;for(;oe&&!["ElMenu","ElSubMenu"].includes(oe.type.name);)oe=oe.parent;return oe}),indexPath:$}}function useMenuColor(t){return computed(()=>{const $=t.backgroundColor;return $?new TinyColor($).shade(20).toString():""})}const useMenuCssVar=(t,r)=>{const $=useNamespace("menu");return computed(()=>$.cssVarBlock({"text-color":t.textColor||"","hover-text-color":t.textColor||"","bg-color":t.backgroundColor||"","hover-bg-color":useMenuColor(t).value||"","active-color":t.activeTextColor||"",level:`${r}`}))},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(t,{slots:r,expose:$}){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(()=>t.popperAppendToBody!==void 0));const V=getCurrentInstance(),{indexPath:oe,parentMenu:ie}=useMenu(V,computed(()=>t.index)),le=useNamespace("menu"),ue=useNamespace("sub-menu"),de=inject("rootMenu");de||throwError$1(COMPONENT_NAME$c,"can not inject root menu");const pe=inject(`subMenu:${ie.value.uid}`);pe||throwError$1(COMPONENT_NAME$c,"can not inject sub menu");const he=ref({}),_e=ref({});let $e;const Ie=ref(!1),Ve=ref(),Fe=ref(null),Ue=computed(()=>Tn.value==="horizontal"&&Et.value?"bottom-start":"right-start"),qe=computed(()=>Tn.value==="horizontal"&&Et.value||Tn.value==="vertical"&&!de.props.collapse?t.expandCloseIcon&&t.expandOpenIcon?bn.value?t.expandOpenIcon:t.expandCloseIcon:arrow_down_default:t.collapseCloseIcon&&t.collapseOpenIcon?bn.value?t.collapseOpenIcon:t.collapseCloseIcon:arrow_right_default),Et=computed(()=>pe.level===0),Lt=computed(()=>{var Fn;const Un=(Fn=t.teleported)!=null?Fn:t.popperAppendToBody;return Un===void 0?Et.value:Un}),hn=computed(()=>de.props.collapse?`${le.namespace.value}-zoom-in-left`:`${le.namespace.value}-zoom-in-top`),Cn=computed(()=>Tn.value==="horizontal"&&Et.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),bn=computed(()=>de.openedMenus.includes(t.index)),Sn=computed(()=>{let Fn=!1;return Object.values(he.value).forEach(Un=>{Un.active&&(Fn=!0)}),Object.values(_e.value).forEach(Un=>{Un.active&&(Fn=!0)}),Fn}),En=computed(()=>de.props.backgroundColor||""),wn=computed(()=>de.props.activeTextColor||""),$n=computed(()=>de.props.textColor||""),Tn=computed(()=>de.props.mode),xn=reactive({index:t.index,indexPath:oe,active:Sn}),An=useMenuCssVar(de.props,pe.level+1),Mn=computed(()=>Tn.value!=="horizontal"?{color:$n.value}:{borderBottomColor:Sn.value?de.props.activeTextColor?wn.value:"":"transparent",color:Sn.value?wn.value:$n.value}),Vn=()=>{var Fn,Un,Wn;return(Wn=(Un=(Fn=Fe.value)==null?void 0:Fn.popperRef)==null?void 0:Un.popperInstanceRef)==null?void 0:Wn.destroy()},Bn=Fn=>{Fn||Vn()},Dn=()=>{de.props.menuTrigger==="hover"&&de.props.mode==="horizontal"||de.props.collapse&&de.props.mode==="vertical"||t.disabled||de.handleSubMenuClick({index:t.index,indexPath:oe.value,active:Sn.value})},Ln=(Fn,Un=t.showTimeout)=>{var Wn;Fn.type!=="focus"&&(de.props.menuTrigger==="click"&&de.props.mode==="horizontal"||!de.props.collapse&&de.props.mode==="vertical"||t.disabled||(pe.mouseInChild.value=!0,$e==null||$e(),{stop:$e}=useTimeoutFn$1(()=>{de.openMenu(t.index,oe.value)},Un),Lt.value&&((Wn=ie.value.vnode.el)==null||Wn.dispatchEvent(new MouseEvent("mouseenter")))))},Pn=(Fn=!1)=>{var Un,Wn;de.props.menuTrigger==="click"&&de.props.mode==="horizontal"||!de.props.collapse&&de.props.mode==="vertical"||($e==null||$e(),pe.mouseInChild.value=!1,{stop:$e}=useTimeoutFn$1(()=>!Ie.value&&de.closeMenu(t.index,oe.value),t.hideTimeout),Lt.value&&Fn&&((Un=V.parent)==null?void 0:Un.type.name)==="ElSubMenu"&&((Wn=pe.handleMouseleave)==null||Wn.call(pe,!0)))};watch(()=>de.props.collapse,Fn=>Bn(!!Fn));{const Fn=Wn=>{_e.value[Wn.index]=Wn},Un=Wn=>{delete _e.value[Wn.index]};provide(`subMenu:${V.uid}`,{addSubMenu:Fn,removeSubMenu:Un,handleMouseleave:Pn,mouseInChild:Ie,level:pe.level+1})}return $({opened:bn}),onMounted(()=>{de.addSubMenu(xn),pe.addSubMenu(xn)}),onBeforeUnmount(()=>{pe.removeSubMenu(xn),de.removeSubMenu(xn)}),()=>{var Fn;const Un=[(Fn=r.title)==null?void 0:Fn.call(r),h$2(ElIcon,{class:ue.e("icon-arrow"),style:{transform:bn.value?t.expandCloseIcon&&t.expandOpenIcon||t.collapseCloseIcon&&t.collapseOpenIcon&&de.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>isString$6(qe.value)?h$2(V.appContext.components[qe.value]):h$2(qe.value)})],Wn=de.isMenuPopup?h$2(ElTooltip,{ref:Fe,visible:bn.value,effect:"light",pure:!0,offset:t.popperOffset,showArrow:!1,persistent:!0,popperClass:t.popperClass,placement:Ue.value,teleported:Lt.value,fallbackPlacements:Cn.value,transition:hn.value,gpuAcceleration:!1},{content:()=>{var Zn;return h$2("div",{class:[le.m(Tn.value),le.m("popup-container"),t.popperClass],onMouseenter:or=>Ln(or,100),onMouseleave:()=>Pn(!0),onFocus:or=>Ln(or,100)},[h$2("ul",{class:[le.b(),le.m("popup"),le.m(`popup-${Ue.value}`)],style:An.value},[(Zn=r.default)==null?void 0:Zn.call(r)])])},default:()=>h$2("div",{class:ue.e("title"),style:[Mn.value,{backgroundColor:En.value}],onClick:Dn},Un)}):h$2(Fragment,{},[h$2("div",{class:ue.e("title"),style:[Mn.value,{backgroundColor:En.value}],ref:Ve,onClick:Dn},Un),h$2(_CollapseTransition,{},{default:()=>{var Zn;return withDirectives(h$2("ul",{role:"menu",class:[le.b(),le.m("inline")],style:An.value},[(Zn=r.default)==null?void 0:Zn.call(r)]),[[vShow,bn.value]])}})]);return h$2("li",{class:[ue.b(),ue.is("active",Sn.value),ue.is("opened",bn.value),ue.is("disabled",t.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:bn.value,onMouseenter:Ln,onMouseleave:()=>Pn(!0),onFocus:Ln},[Wn])}}});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=t=>Array.isArray(t)&&t.every(r=>isString$6(r)),menuEmits={close:(t,r)=>isString$6(t)&&checkIndexPath(r),open:(t,r)=>isString$6(t)&&checkIndexPath(r),select:(t,r,$,V)=>isString$6(t)&&checkIndexPath(r)&&isObject$a($)&&(V===void 0||V instanceof Promise)};var Menu=defineComponent({name:"ElMenu",props:menuProps,emits:menuEmits,setup(t,{emit:r,slots:$,expose:V}){const oe=getCurrentInstance(),ie=oe.appContext.config.globalProperties.$router,le=ref(),ue=useNamespace("menu"),de=useNamespace("sub-menu"),pe=ref(-1),he=ref(t.defaultOpeneds&&!t.collapse?t.defaultOpeneds.slice(0):[]),_e=ref(t.defaultActive),$e=ref({}),Ie=ref({}),Ve=computed(()=>t.mode==="horizontal"||t.mode==="vertical"&&t.collapse),Fe=()=>{const Tn=_e.value&&$e.value[_e.value];if(!Tn||t.mode==="horizontal"||t.collapse)return;Tn.indexPath.forEach(An=>{const Mn=Ie.value[An];Mn&&Ue(An,Mn.indexPath)})},Ue=(Tn,xn)=>{he.value.includes(Tn)||(t.uniqueOpened&&(he.value=he.value.filter(An=>xn.includes(An))),he.value.push(Tn),r("open",Tn,xn))},qe=Tn=>{const xn=he.value.indexOf(Tn);xn!==-1&&he.value.splice(xn,1)},Et=(Tn,xn)=>{qe(Tn),r("close",Tn,xn)},Lt=({index:Tn,indexPath:xn})=>{he.value.includes(Tn)?Et(Tn,xn):Ue(Tn,xn)},hn=Tn=>{(t.mode==="horizontal"||t.collapse)&&(he.value=[]);const{index:xn,indexPath:An}=Tn;if(!(isNil(xn)||isNil(An)))if(t.router&&ie){const Mn=Tn.route||xn,Vn=ie.push(Mn).then(Bn=>(Bn||(_e.value=xn),Bn));r("select",xn,An,{index:xn,indexPath:An,route:Mn},Vn)}else _e.value=xn,r("select",xn,An,{index:xn,indexPath:An})},Cn=Tn=>{const xn=$e.value,An=xn[Tn]||_e.value&&xn[_e.value]||xn[t.defaultActive];An?_e.value=An.index:_e.value=Tn},bn=()=>{var Tn,xn;if(!le.value)return-1;const An=Array.from((xn=(Tn=le.value)==null?void 0:Tn.childNodes)!=null?xn:[]).filter(Fn=>Fn.nodeName!=="#comment"&&(Fn.nodeName!=="#text"||Fn.nodeValue)),Mn=64,Vn=Number.parseInt(getComputedStyle(le.value).paddingLeft,10),Bn=Number.parseInt(getComputedStyle(le.value).paddingRight,10),Dn=le.value.clientWidth-Vn-Bn;let Ln=0,Pn=0;return An.forEach((Fn,Un)=>{Ln+=Fn.offsetWidth||0,Ln<=Dn-Mn&&(Pn=Un+1)}),Pn===An.length?-1:Pn},Sn=(Tn,xn=33.34)=>{let An;return()=>{An&&clearTimeout(An),An=setTimeout(()=>{Tn()},xn)}};let En=!0;const wn=()=>{const Tn=()=>{pe.value=-1,nextTick(()=>{pe.value=bn()})};En?Tn():Sn(Tn)(),En=!1};watch(()=>t.defaultActive,Tn=>{$e.value[Tn]||(_e.value=""),Cn(Tn)}),watch(()=>t.collapse,Tn=>{Tn&&(he.value=[])}),watch($e.value,Fe);let $n;watchEffect(()=>{t.mode==="horizontal"&&t.ellipsis?$n=useResizeObserver$1(le,wn).stop:$n==null||$n()});{const Tn=Vn=>{Ie.value[Vn.index]=Vn},xn=Vn=>{delete Ie.value[Vn.index]};provide("rootMenu",reactive({props:t,openedMenus:he,items:$e,subMenus:Ie,activeIndex:_e,isMenuPopup:Ve,addMenuItem:Vn=>{$e.value[Vn.index]=Vn},removeMenuItem:Vn=>{delete $e.value[Vn.index]},addSubMenu:Tn,removeSubMenu:xn,openMenu:Ue,closeMenu:Et,handleMenuItemClick:hn,handleSubMenuClick:Lt})),provide(`subMenu:${oe.uid}`,{addSubMenu:Tn,removeSubMenu:xn,mouseInChild:ref(!1),level:0})}return onMounted(()=>{t.mode==="horizontal"&&new Menu$1(oe.vnode.el,ue.namespace.value)}),V({open:xn=>{const{indexPath:An}=Ie.value[xn];An.forEach(Mn=>Ue(Mn,An))},close:qe,handleResize:wn}),()=>{var Tn,xn;let An=(xn=(Tn=$.default)==null?void 0:Tn.call($))!=null?xn:[];const Mn=[];if(t.mode==="horizontal"&&le.value){const Dn=flattedChildren(An),Ln=pe.value===-1?Dn:Dn.slice(0,pe.value),Pn=pe.value===-1?[]:Dn.slice(pe.value);Pn!=null&&Pn.length&&t.ellipsis&&(An=Ln,Mn.push(h$2(SubMenu,{index:"sub-menu-more",class:de.e("hide-arrow")},{title:()=>h$2(ElIcon,{class:de.e("icon-more")},{default:()=>h$2(more_default)}),default:()=>Pn})))}const Vn=useMenuCssVar(t,0),Bn=h$2("ul",{key:String(t.collapse),role:"menubar",ref:le,style:Vn.value,class:{[ue.b()]:!0,[ue.m(t.mode)]:!0,[ue.m("collapse")]:t.collapse}},[...An,...Mn]);return t.collapseTransition&&t.mode==="vertical"?h$2(ElMenuCollapseTransition,()=>Bn):Bn}}});const menuItemProps=buildProps({index:{type:definePropType([String,null]),default:null},route:{type:definePropType([String,Object])},disabled:Boolean}),menuItemEmits={click:t=>isString$6(t.index)&&Array.isArray(t.indexPath)},COMPONENT_NAME$b="ElMenuItem",_sfc_main$Y=defineComponent({name:COMPONENT_NAME$b,components:{ElTooltip},props:menuItemProps,emits:menuItemEmits,setup(t,{emit:r}){const $=getCurrentInstance(),V=inject("rootMenu"),oe=useNamespace("menu"),ie=useNamespace("menu-item");V||throwError$1(COMPONENT_NAME$b,"can not inject root menu");const{parentMenu:le,indexPath:ue}=useMenu($,toRef(t,"index")),de=inject(`subMenu:${le.value.uid}`);de||throwError$1(COMPONENT_NAME$b,"can not inject sub menu");const pe=computed(()=>t.index===V.activeIndex),he=reactive({index:t.index,indexPath:ue,active:pe}),_e=()=>{t.disabled||(V.handleMenuItemClick({index:t.index,indexPath:ue.value,route:t.route}),r("click",he))};return onMounted(()=>{de.addSubMenu(he),V.addMenuItem(he)}),onBeforeUnmount(()=>{de.removeSubMenu(he),V.removeMenuItem(he)}),{parentMenu:le,rootMenu:V,active:pe,nsMenu:oe,nsMenuItem:ie,handleClick:_e}}});function _sfc_render$e(t,r,$,V,oe,ie){const le=resolveComponent("el-tooltip");return openBlock(),createElementBlock("li",{class:normalizeClass([t.nsMenuItem.b(),t.nsMenuItem.is("active",t.active),t.nsMenuItem.is("disabled",t.disabled)]),role:"menuitem",tabindex:"-1",onClick:r[0]||(r[0]=(...ue)=>t.handleClick&&t.handleClick(...ue))},[t.parentMenu.type.name==="ElMenu"&&t.rootMenu.props.collapse&&t.$slots.title?(openBlock(),createBlock(le,{key:0,effect:t.rootMenu.props.popperEffect,placement:"right","fallback-placements":["left"],persistent:""},{content:withCtx(()=>[renderSlot(t.$slots,"title")]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(t.nsMenu.be("tooltip","trigger"))},[renderSlot(t.$slots,"default")],2)]),_:3},8,["effect"])):(openBlock(),createElementBlock(Fragment,{key:1},[renderSlot(t.$slots,"default"),renderSlot(t.$slots,"title")],64))],2)}var MenuItem=_export_sfc$1(_sfc_main$Y,[["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$X=defineComponent({name:COMPONENT_NAME$a,props:menuItemGroupProps,setup(){return{ns:useNamespace("menu-item-group")}}});function _sfc_render$d(t,r,$,V,oe,ie){return openBlock(),createElementBlock("li",{class:normalizeClass(t.ns.b())},[createBaseVNode("div",{class:normalizeClass(t.ns.e("title"))},[t.$slots.title?renderSlot(t.$slots,"title",{key:1}):(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(t.title),1)],64))],2),createBaseVNode("ul",null,[renderSlot(t.$slots,"default")])],2)}var MenuItemGroup=_export_sfc$1(_sfc_main$X,[["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$t=["aria-label"],__default__$F=defineComponent({name:"ElPageHeader"}),_sfc_main$W=defineComponent({...__default__$F,props:pageHeaderProps,emits:pageHeaderEmits,setup(t,{emit:r}){const $=useSlots(),{t:V}=useLocale(),oe=useNamespace("page-header"),ie=computed(()=>[oe.b(),{[oe.m("has-breadcrumb")]:!!$.breadcrumb,[oe.m("has-extra")]:!!$.extra,[oe.is("contentful")]:!!$.default}]);function le(){r("back")}return(ue,de)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ie))},[ue.$slots.breadcrumb?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("breadcrumb"))},[renderSlot(ue.$slots,"breadcrumb")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("header"))},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("left"))},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("back")),role:"button",tabindex:"0",onClick:le},[ue.icon||ue.$slots.icon?(openBlock(),createElementBlock("div",{key:0,"aria-label":ue.title||unref(V)("el.pageHeader.title"),class:normalizeClass(unref(oe).e("icon"))},[renderSlot(ue.$slots,"icon",{},()=>[ue.icon?(openBlock(),createBlock(unref(ElIcon),{key:0},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(ue.icon)))]),_:1})):createCommentVNode("v-if",!0)])],10,_hoisted_1$t)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(oe).e("title"))},[renderSlot(ue.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(ue.title||unref(V)("el.pageHeader.title")),1)])],2)],2),createVNode(unref(ElDivider),{direction:"vertical"}),createBaseVNode("div",{class:normalizeClass(unref(oe).e("content"))},[renderSlot(ue.$slots,"content",{},()=>[createTextVNode(toDisplayString$1(ue.content),1)])],2)],2),ue.$slots.extra?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(oe).e("extra"))},[renderSlot(ue.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2),ue.$slots.default?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(oe).e("main"))},[renderSlot(ue.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var PageHeader=_export_sfc$1(_sfc_main$W,[["__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:t=>t instanceof MouseEvent},_hoisted_1$s=["disabled","aria-label","aria-disabled"],_hoisted_2$k={key:0},__default__$E=defineComponent({name:"ElPaginationPrev"}),_sfc_main$V=defineComponent({...__default__$E,props:paginationPrevProps,emits:paginationPrevEmits,setup(t){const r=t,{t:$}=useLocale(),V=computed(()=>r.disabled||r.currentPage<=1);return(oe,ie)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-prev",disabled:unref(V),"aria-label":oe.prevText||unref($)("el.pagination.prev"),"aria-disabled":unref(V),onClick:ie[0]||(ie[0]=le=>oe.$emit("click",le))},[oe.prevText?(openBlock(),createElementBlock("span",_hoisted_2$k,toDisplayString$1(oe.prevText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.prevIcon)))]),_:1}))],8,_hoisted_1$s))}});var Prev=_export_sfc$1(_sfc_main$V,[["__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$r=["disabled","aria-label","aria-disabled"],_hoisted_2$j={key:0},__default__$D=defineComponent({name:"ElPaginationNext"}),_sfc_main$U=defineComponent({...__default__$D,props:paginationNextProps,emits:["click"],setup(t){const r=t,{t:$}=useLocale(),V=computed(()=>r.disabled||r.currentPage===r.pageCount||r.pageCount===0);return(oe,ie)=>(openBlock(),createElementBlock("button",{type:"button",class:"btn-next",disabled:unref(V),"aria-label":oe.nextText||unref($)("el.pagination.next"),"aria-disabled":unref(V),onClick:ie[0]||(ie[0]=le=>oe.$emit("click",le))},[oe.nextText?(openBlock(),createElementBlock("span",_hoisted_2$j,toDisplayString$1(oe.nextText),1)):(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.nextIcon)))]),_:1}))],8,_hoisted_1$r))}});var Next=_export_sfc$1(_sfc_main$U,[["__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(t,r){const $=inject(selectKey),V=inject(selectGroupKey,{disabled:!1}),oe=computed(()=>Object.prototype.toString.call(t.value).toLowerCase()==="[object object]"),ie=computed(()=>$.props.multiple?_e($.props.modelValue,t.value):$e(t.value,$.props.modelValue)),le=computed(()=>{if($.props.multiple){const Fe=$.props.modelValue||[];return!ie.value&&Fe.length>=$.props.multipleLimit&&$.props.multipleLimit>0}else return!1}),ue=computed(()=>t.label||(oe.value?"":t.value)),de=computed(()=>t.value||t.label||""),pe=computed(()=>t.disabled||r.groupDisabled||le.value),he=getCurrentInstance(),_e=(Fe=[],Ue)=>{if(oe.value){const qe=$.props.valueKey;return Fe&&Fe.some(Et=>toRaw(get$1(Et,qe))===get$1(Ue,qe))}else return Fe&&Fe.includes(Ue)},$e=(Fe,Ue)=>{if(oe.value){const{valueKey:qe}=$.props;return get$1(Fe,qe)===get$1(Ue,qe)}else return Fe===Ue},Ie=()=>{!t.disabled&&!V.disabled&&($.hoverIndex=$.optionsArray.indexOf(he.proxy))};watch(()=>ue.value,()=>{!t.created&&!$.props.remote&&$.setSelected()}),watch(()=>t.value,(Fe,Ue)=>{const{remote:qe,valueKey:Et}=$.props;if(Object.is(Fe,Ue)||($.onOptionDestroy(Ue,he.proxy),$.onOptionCreate(he.proxy)),!t.created&&!qe){if(Et&&typeof Fe=="object"&&typeof Ue=="object"&&Fe[Et]===Ue[Et])return;$.setSelected()}}),watch(()=>V.disabled,()=>{r.groupDisabled=V.disabled},{immediate:!0});const{queryChange:Ve}=toRaw($);return watch(Ve,Fe=>{const{query:Ue}=unref(Fe),qe=new RegExp(escapeStringRegexp(Ue),"i");r.visible=qe.test(ue.value)||t.created,r.visible||$.filteredOptionsCount--},{immediate:!0}),{select:$,currentLabel:ue,currentValue:de,itemSelected:ie,isDisabled:pe,hoverItem:Ie}}const _sfc_main$T=defineComponent({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:Boolean},setup(t){const r=useNamespace("select"),$=computed(()=>[r.be("dropdown","item"),r.is("disabled",unref(le)),{selected:unref(ie),hover:unref(he)}]),V=reactive({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:oe,itemSelected:ie,isDisabled:le,select:ue,hoverItem:de}=useOption$1(t,V),{visible:pe,hover:he}=toRefs(V),_e=getCurrentInstance().proxy;ue.onOptionCreate(_e),onBeforeUnmount(()=>{const Ie=_e.value,{selected:Ve}=ue,Ue=(ue.props.multiple?Ve:[Ve]).some(qe=>qe.value===_e.value);nextTick(()=>{ue.cachedOptions.get(Ie)===_e&&!Ue&&ue.cachedOptions.delete(Ie)}),ue.onOptionDestroy(Ie,_e)});function $e(){t.disabled!==!0&&V.groupDisabled!==!0&&ue.handleOptionSelect(_e)}return{ns:r,containerKls:$,currentLabel:oe,itemSelected:ie,isDisabled:le,select:ue,hoverItem:de,visible:pe,hover:he,selectOptionClick:$e,states:V}}});function _sfc_render$c(t,r,$,V,oe,ie){return withDirectives((openBlock(),createElementBlock("li",{class:normalizeClass(t.containerKls),onMouseenter:r[0]||(r[0]=(...le)=>t.hoverItem&&t.hoverItem(...le)),onClick:r[1]||(r[1]=withModifiers((...le)=>t.selectOptionClick&&t.selectOptionClick(...le),["stop"]))},[renderSlot(t.$slots,"default",{},()=>[createBaseVNode("span",null,toDisplayString$1(t.currentLabel),1)])],34)),[[vShow,t.visible]])}var Option=_export_sfc$1(_sfc_main$T,[["render",_sfc_render$c],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const _sfc_main$S=defineComponent({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const t=inject(selectKey),r=useNamespace("select"),$=computed(()=>t.props.popperClass),V=computed(()=>t.props.multiple),oe=computed(()=>t.props.fitInputWidth),ie=ref("");function le(){var ue;ie.value=`${(ue=t.selectWrapper)==null?void 0:ue.offsetWidth}px`}return onMounted(()=>{le(),useResizeObserver$1(t.selectWrapper,le)}),{ns:r,minWidth:ie,popperClass:$,isMultiple:V,isFitInputWidth:oe}}});function _sfc_render$b(t,r,$,V,oe,ie){return openBlock(),createElementBlock("div",{class:normalizeClass([t.ns.b("dropdown"),t.ns.is("multiple",t.isMultiple),t.popperClass]),style:normalizeStyle$1({[t.isFitInputWidth?"width":"minWidth"]:t.minWidth})},[renderSlot(t.$slots,"default")],6)}var ElSelectMenu$1=_export_sfc$1(_sfc_main$S,[["render",_sfc_render$b],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function useSelectStates(t){const{t:r}=useLocale();return reactive({options:new Map,cachedOptions:new Map,disabledOptions:new Map,createdLabel:null,createdSelected:!1,selected:t.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:r("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,prefixWidth:11,mouseEnter:!1,focused:!1})}const useSelect$2=(t,r,$)=>{const{t:V}=useLocale(),oe=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(()=>t.suffixTransition===!1));const ie=ref(null),le=ref(null),ue=ref(null),de=ref(null),pe=ref(null),he=ref(null),_e=ref(null),$e=ref(null),Ie=ref(-1),Ve=shallowRef({query:""}),Fe=shallowRef(""),Ue=ref([]);let qe=0;const{form:Et,formItem:Lt}=useFormItem(),hn=computed(()=>!t.filterable||t.multiple||!r.visible),Cn=computed(()=>t.disabled||(Et==null?void 0:Et.disabled)),bn=computed(()=>{const hr=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:t.modelValue!==void 0&&t.modelValue!==null&&t.modelValue!=="";return t.clearable&&!Cn.value&&r.inputHovering&&hr}),Sn=computed(()=>t.remote&&t.filterable&&!t.remoteShowSuffix?"":t.suffixIcon),En=computed(()=>oe.is("reverse",Sn.value&&r.visible&&t.suffixTransition)),wn=computed(()=>(Et==null?void 0:Et.statusIcon)&&(Lt==null?void 0:Lt.validateState)&&ValidateComponentsMap[Lt==null?void 0:Lt.validateState]),$n=computed(()=>t.remote?300:0),Tn=computed(()=>t.loading?t.loadingText||V("el.select.loading"):t.remote&&r.query===""&&r.options.size===0?!1:t.filterable&&r.query&&r.options.size>0&&r.filteredOptionsCount===0?t.noMatchText||V("el.select.noMatch"):r.options.size===0?t.noDataText||V("el.select.noData"):null),xn=computed(()=>{const hr=Array.from(r.options.values()),xr=[];return Ue.value.forEach(ir=>{const Pr=hr.findIndex(zr=>zr.currentLabel===ir);Pr>-1&&xr.push(hr[Pr])}),xr.length>=hr.length?xr:hr}),An=computed(()=>Array.from(r.cachedOptions.values())),Mn=computed(()=>{const hr=xn.value.filter(xr=>!xr.created).some(xr=>xr.currentLabel===r.query);return t.filterable&&t.allowCreate&&r.query!==""&&!hr}),Vn=useFormSize(),Bn=computed(()=>["small"].includes(Vn.value)?"small":"default"),Dn=computed({get(){return r.visible&&Tn.value!==!1},set(hr){r.visible=hr}});watch([()=>Cn.value,()=>Vn.value,()=>Et==null?void 0:Et.size],()=>{nextTick(()=>{Ln()})}),watch(()=>t.placeholder,hr=>{r.cachedPlaceHolder=r.currentPlaceholder=hr,t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(r.currentPlaceholder="")}),watch(()=>t.modelValue,(hr,xr)=>{t.multiple&&(Ln(),hr&&hr.length>0||le.value&&r.query!==""?r.currentPlaceholder="":r.currentPlaceholder=r.cachedPlaceHolder,t.filterable&&!t.reserveKeyword&&(r.query="",Pn(r.query))),Wn(),t.filterable&&!t.multiple&&(r.inputLength=20),!isEqual$1(hr,xr)&&t.validateEvent&&(Lt==null||Lt.validate("change").catch(ir=>void 0))},{flush:"post",deep:!0}),watch(()=>r.visible,hr=>{var xr,ir,Pr,zr,Ir;hr?((ir=(xr=de.value)==null?void 0:xr.updatePopper)==null||ir.call(xr),t.filterable&&(r.filteredOptionsCount=r.optionsCount,r.query=t.remote?"":r.selectedLabel,(zr=(Pr=ue.value)==null?void 0:Pr.focus)==null||zr.call(Pr),t.multiple?(Ir=le.value)==null||Ir.focus():r.selectedLabel&&(r.currentPlaceholder=`${r.selectedLabel}`,r.selectedLabel=""),Pn(r.query),!t.multiple&&!t.remote&&(Ve.value.query="",triggerRef(Ve),triggerRef(Fe)))):(t.filterable&&(isFunction$5(t.filterMethod)&&t.filterMethod(""),isFunction$5(t.remoteMethod)&&t.remoteMethod("")),r.query="",r.previousQuery=null,r.selectedLabel="",r.inputLength=20,r.menuVisibleOnFocus=!1,or(),nextTick(()=>{le.value&&le.value.value===""&&r.selected.length===0&&(r.currentPlaceholder=r.cachedPlaceHolder)}),t.multiple||(r.selected&&(t.filterable&&t.allowCreate&&r.createdSelected&&r.createdLabel?r.selectedLabel=r.createdLabel:r.selectedLabel=r.selected.currentLabel,t.filterable&&(r.query=r.selectedLabel)),t.filterable&&(r.currentPlaceholder=r.cachedPlaceHolder))),$.emit("visible-change",hr)}),watch(()=>r.options.entries(),()=>{var hr,xr,ir;if(!isClient$1)return;(xr=(hr=de.value)==null?void 0:hr.updatePopper)==null||xr.call(hr),t.multiple&&Ln();const Pr=((ir=_e.value)==null?void 0:ir.querySelectorAll("input"))||[];(!t.filterable&&!t.defaultFirstOption&&!isUndefined$1(t.modelValue)||!Array.from(Pr).includes(document.activeElement))&&Wn(),t.defaultFirstOption&&(t.filterable||t.remote)&&r.filteredOptionsCount&&Un()},{flush:"post"}),watch(()=>r.hoverIndex,hr=>{isNumber$4(hr)&&hr>-1?Ie.value=xn.value[hr]||{}:Ie.value={},xn.value.forEach(xr=>{xr.hover=Ie.value===xr})});const Ln=()=>{nextTick(()=>{var hr,xr;if(!ie.value)return;const ir=ie.value.$el.querySelector("input");qe=qe||(ir.clientHeight>0?ir.clientHeight+2:0);const Pr=he.value,zr=getComponentSize(Vn.value||(Et==null?void 0:Et.size)),Ir=Vn.value||zr===qe||qe<=0?zr:qe;!(ir.offsetParent===null)&&(ir.style.height=`${(r.selected.length===0?Ir:Math.max(Pr?Pr.clientHeight+(Pr.clientHeight>Ir?6:0):0,Ir))-2}px`),r.visible&&Tn.value!==!1&&((xr=(hr=de.value)==null?void 0:hr.updatePopper)==null||xr.call(hr))})},Pn=async hr=>{if(!(r.previousQuery===hr||r.isOnComposition)){if(r.previousQuery===null&&(isFunction$5(t.filterMethod)||isFunction$5(t.remoteMethod))){r.previousQuery=hr;return}r.previousQuery=hr,nextTick(()=>{var xr,ir;r.visible&&((ir=(xr=de.value)==null?void 0:xr.updatePopper)==null||ir.call(xr))}),r.hoverIndex=-1,t.multiple&&t.filterable&&nextTick(()=>{if(!Cn.value){const xr=le.value.value.length*15+20;r.inputLength=t.collapseTags?Math.min(50,xr):xr,Fn()}Ln()}),t.remote&&isFunction$5(t.remoteMethod)?(r.hoverIndex=-1,t.remoteMethod(hr)):isFunction$5(t.filterMethod)?(t.filterMethod(hr),triggerRef(Fe)):(r.filteredOptionsCount=r.optionsCount,Ve.value.query=hr,triggerRef(Ve),triggerRef(Fe)),t.defaultFirstOption&&(t.filterable||t.remote)&&r.filteredOptionsCount&&(await nextTick(),Un())}},Fn=()=>{r.currentPlaceholder!==""&&(r.currentPlaceholder=le.value.value?"":r.cachedPlaceHolder)},Un=()=>{const hr=xn.value.filter(Pr=>Pr.visible&&!Pr.disabled&&!Pr.states.groupDisabled),xr=hr.find(Pr=>Pr.created),ir=hr[0];r.hoverIndex=_r(xn.value,xr||ir)},Wn=()=>{var hr;if(t.multiple)r.selectedLabel="";else{const ir=Zn(t.modelValue);(hr=ir.props)!=null&&hr.created?(r.createdLabel=ir.props.value,r.createdSelected=!0):r.createdSelected=!1,r.selectedLabel=ir.currentLabel,r.selected=ir,t.filterable&&(r.query=r.selectedLabel);return}const xr=[];Array.isArray(t.modelValue)&&t.modelValue.forEach(ir=>{xr.push(Zn(ir))}),r.selected=xr,nextTick(()=>{Ln()})},Zn=hr=>{let xr;const ir=toRawType(hr).toLowerCase()==="object",Pr=toRawType(hr).toLowerCase()==="null",zr=toRawType(hr).toLowerCase()==="undefined";for(let Yr=r.cachedOptions.size-1;Yr>=0;Yr--){const Jr=An.value[Yr];if(ir?get$1(Jr.value,t.valueKey)===get$1(hr,t.valueKey):Jr.value===hr){xr={value:hr,currentLabel:Jr.currentLabel,isDisabled:Jr.isDisabled};break}}if(xr)return xr;const Ir=ir?hr.label:!Pr&&!zr?hr:"",Wr={value:hr,currentLabel:Ir};return t.multiple&&(Wr.hitState=!1),Wr},or=()=>{setTimeout(()=>{const hr=t.valueKey;t.multiple?r.selected.length>0?r.hoverIndex=Math.min.apply(null,r.selected.map(xr=>xn.value.findIndex(ir=>get$1(ir,hr)===get$1(xr,hr)))):r.hoverIndex=-1:r.hoverIndex=xn.value.findIndex(xr=>Sr(xr)===Sr(r.selected))},300)},br=()=>{var hr,xr;Qn(),(xr=(hr=de.value)==null?void 0:hr.updatePopper)==null||xr.call(hr),t.multiple&&Ln()},Qn=()=>{var hr;r.inputWidth=(hr=ie.value)==null?void 0:hr.$el.offsetWidth},Gn=()=>{t.filterable&&r.query!==r.selectedLabel&&(r.query=r.selectedLabel,Pn(r.query))},Yn=debounce(()=>{Gn()},$n.value),er=debounce(hr=>{Pn(hr.target.value)},$n.value),lr=hr=>{isEqual$1(t.modelValue,hr)||$.emit(CHANGE_EVENT,hr)},sr=hr=>findLastIndex(hr,xr=>!r.disabledOptions.has(xr)),zn=hr=>{if(hr.code!==EVENT_CODE.delete){if(hr.target.value.length<=0&&!Tr()){const xr=t.modelValue.slice(),ir=sr(xr);if(ir<0)return;xr.splice(ir,1),$.emit(UPDATE_MODEL_EVENT,xr),lr(xr)}hr.target.value.length===1&&t.modelValue.length===0&&(r.currentPlaceholder=r.cachedPlaceHolder)}},Kn=(hr,xr)=>{const ir=r.selected.indexOf(xr);if(ir>-1&&!Cn.value){const Pr=t.modelValue.slice();Pr.splice(ir,1),$.emit(UPDATE_MODEL_EVENT,Pr),lr(Pr),$.emit("remove-tag",xr.value)}hr.stopPropagation(),$r()},Jn=hr=>{hr.stopPropagation();const xr=t.multiple?[]:"";if(!isString$6(xr))for(const ir of r.selected)ir.isDisabled&&xr.push(ir.value);$.emit(UPDATE_MODEL_EVENT,xr),lr(xr),r.hoverIndex=-1,r.visible=!1,$.emit("clear"),$r()},cr=hr=>{var xr;if(t.multiple){const ir=(t.modelValue||[]).slice(),Pr=_r(ir,hr.value);Pr>-1?ir.splice(Pr,1):(t.multipleLimit<=0||ir.length{wr(hr)})},_r=(hr=[],xr)=>{if(!isObject$a(xr))return hr.indexOf(xr);const ir=t.valueKey;let Pr=-1;return hr.some((zr,Ir)=>toRaw(get$1(zr,ir))===get$1(xr,ir)?(Pr=Ir,!0):!1),Pr},ur=()=>{const hr=le.value||ie.value;hr&&(hr==null||hr.focus())},wr=hr=>{var xr,ir,Pr,zr,Ir;const Wr=Array.isArray(hr)?hr[0]:hr;let Yr=null;if(Wr!=null&&Wr.value){const Jr=xn.value.filter(Qr=>Qr.value===Wr.value);Jr.length>0&&(Yr=Jr[0].$el)}if(de.value&&Yr){const Jr=(zr=(Pr=(ir=(xr=de.value)==null?void 0:xr.popperRef)==null?void 0:ir.contentRef)==null?void 0:Pr.querySelector)==null?void 0:zr.call(Pr,`.${oe.be("dropdown","wrap")}`);Jr&&scrollIntoView(Jr,Yr)}(Ir=$e.value)==null||Ir.handleScroll()},Cr=hr=>{r.optionsCount++,r.filteredOptionsCount++,r.options.set(hr.value,hr),r.cachedOptions.set(hr.value,hr),hr.disabled&&r.disabledOptions.set(hr.value,hr)},mr=(hr,xr)=>{r.options.get(hr)===xr&&(r.optionsCount--,r.filteredOptionsCount--,r.options.delete(hr))},Er=hr=>{hr.code!==EVENT_CODE.backspace&&Tr(!1),r.inputLength=le.value.value.length*15+20,Ln()},Tr=hr=>{if(!Array.isArray(r.selected))return;const xr=sr(r.selected.map(Pr=>Pr.value)),ir=r.selected[xr];if(ir)return hr===!0||hr===!1?(ir.hitState=hr,hr):(ir.hitState=!ir.hitState,ir.hitState)},nr=hr=>{const xr=hr.target.value;if(hr.type==="compositionend")r.isOnComposition=!1,nextTick(()=>Pn(xr));else{const ir=xr[xr.length-1]||"";r.isOnComposition=!isKorean(ir)}},pr=()=>{nextTick(()=>wr(r.selected))},gr=hr=>{r.focused||((t.automaticDropdown||t.filterable)&&(t.filterable&&!r.visible&&(r.menuVisibleOnFocus=!0),r.visible=!0),r.focused=!0,$.emit("focus",hr))},$r=()=>{var hr,xr;r.visible?(hr=le.value||ie.value)==null||hr.focus():(xr=ie.value)==null||xr.focus()},Rr=()=>{var hr,xr,ir;r.visible=!1,(hr=ie.value)==null||hr.blur(),(ir=(xr=ue.value)==null?void 0:xr.blur)==null||ir.call(xr)},Lr=hr=>{var xr,ir,Pr;(xr=de.value)!=null&&xr.isFocusInsideContent(hr)||(ir=pe.value)!=null&&ir.isFocusInsideContent(hr)||(Pr=_e.value)!=null&&Pr.contains(hr.relatedTarget)||(r.visible&&Nr(),r.focused=!1,$.emit("blur",hr))},Vr=hr=>{Jn(hr)},Nr=()=>{r.visible=!1},dr=hr=>{r.visible&&(hr.preventDefault(),hr.stopPropagation(),r.visible=!1)},ar=hr=>{hr&&!r.mouseEnter||Cn.value||(r.menuVisibleOnFocus?r.menuVisibleOnFocus=!1:(!de.value||!de.value.isFocusInsideContent())&&(r.visible=!r.visible),$r())},tr=()=>{r.visible?xn.value[r.hoverIndex]&&cr(xn.value[r.hoverIndex]):ar()},Sr=hr=>isObject$a(hr.value)?get$1(hr.value,t.valueKey):hr.value,qn=computed(()=>xn.value.filter(hr=>hr.visible).every(hr=>hr.disabled)),kr=computed(()=>t.multiple?r.selected.slice(0,t.maxCollapseTags):[]),Dr=computed(()=>t.multiple?r.selected.slice(t.maxCollapseTags):[]),Hr=hr=>{if(!r.visible){r.visible=!0;return}if(!(r.options.size===0||r.filteredOptionsCount===0)&&!r.isOnComposition&&!qn.value){hr==="next"?(r.hoverIndex++,r.hoverIndex===r.options.size&&(r.hoverIndex=0)):hr==="prev"&&(r.hoverIndex--,r.hoverIndex<0&&(r.hoverIndex=r.options.size-1));const xr=xn.value[r.hoverIndex];(xr.disabled===!0||xr.states.groupDisabled===!0||!xr.visible)&&Hr(hr),nextTick(()=>wr(Ie.value))}},Gr=()=>{r.mouseEnter=!0},Kr=()=>{r.mouseEnter=!1},to=(hr,xr)=>{var ir,Pr;Kn(hr,xr),(Pr=(ir=pe.value)==null?void 0:ir.updatePopper)==null||Pr.call(ir)},Zr=computed(()=>({maxWidth:`${unref(r.inputWidth)-32-(wn.value?22:0)}px`,width:"100%"}));return{optionList:Ue,optionsArray:xn,selectSize:Vn,handleResize:br,debouncedOnInputChange:Yn,debouncedQueryChange:er,deletePrevTag:zn,deleteTag:Kn,deleteSelected:Jn,handleOptionSelect:cr,scrollToOption:wr,readonly:hn,resetInputHeight:Ln,showClose:bn,iconComponent:Sn,iconReverse:En,showNewOption:Mn,collapseTagSize:Bn,setSelected:Wn,managePlaceholder:Fn,selectDisabled:Cn,emptyText:Tn,toggleLastOptionHitState:Tr,resetInputState:Er,handleComposition:nr,onOptionCreate:Cr,onOptionDestroy:mr,handleMenuEnter:pr,handleFocus:gr,focus:$r,blur:Rr,handleBlur:Lr,handleClearClick:Vr,handleClose:Nr,handleKeydownEscape:dr,toggleMenu:ar,selectOption:tr,getValueKey:Sr,navigateOptions:Hr,handleDeleteTooltipTag:to,dropMenuVisible:Dn,queryChange:Ve,groupQueryChange:Fe,showTagList:kr,collapseTagList:Dr,selectTagsStyle:Zr,reference:ie,input:le,iOSInput:ue,tooltipRef:de,tagTooltipRef:pe,tags:he,selectWrapper:_e,scrollbar:$e,handleMouseEnter:Gr,handleMouseLeave:Kr}};var ElOptions=defineComponent({name:"ElOptions",emits:["update-options"],setup(t,{slots:r,emit:$}){let V=[];function oe(ie,le){if(ie.length!==le.length)return!1;for(const[ue]of ie.entries())if(ie[ue]!=le[ue])return!1;return!0}return()=>{var ie,le;const ue=(ie=r.default)==null?void 0:ie.call(r),de=[];function pe(he){Array.isArray(he)&&he.forEach(_e=>{var $e,Ie,Ve,Fe;const Ue=($e=(_e==null?void 0:_e.type)||{})==null?void 0:$e.name;Ue==="ElOptionGroup"?pe(!isString$6(_e.children)&&!Array.isArray(_e.children)&&isFunction$5((Ie=_e.children)==null?void 0:Ie.default)?(Ve=_e.children)==null?void 0:Ve.default():_e.children):Ue==="ElOption"?de.push((Fe=_e.props)==null?void 0:Fe.label):Array.isArray(_e.children)&&pe(_e.children)})}return ue.length&&pe((le=ue[0])==null?void 0:le.children),oe(de,V)||(V=de,$("update-options",de)),ue}}});const COMPONENT_NAME$9="ElSelect",_sfc_main$R=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:Boolean,maxCollapseTags:{type:Number,default:1},teleported:useTooltipContentProps.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:iconPropType,default:circle_close_default},fitInputWidth:Boolean,suffixIcon:{type:iconPropType,default:arrow_down_default},tagType:{...tagProps.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Ee,default:"bottom-start"},ariaLabel:{type:String,default:void 0}},emits:[UPDATE_MODEL_EVENT,CHANGE_EVENT,"remove-tag","clear","visible-change","focus","blur"],setup(t,r){const $=useNamespace("select"),V=useNamespace("input"),{t:oe}=useLocale(),ie=useSelectStates(t),{optionList:le,optionsArray:ue,selectSize:de,readonly:pe,handleResize:he,collapseTagSize:_e,debouncedOnInputChange:$e,debouncedQueryChange:Ie,deletePrevTag:Ve,deleteTag:Fe,deleteSelected:Ue,handleOptionSelect:qe,scrollToOption:Et,setSelected:Lt,resetInputHeight:hn,managePlaceholder:Cn,showClose:bn,selectDisabled:Sn,iconComponent:En,iconReverse:wn,showNewOption:$n,emptyText:Tn,toggleLastOptionHitState:xn,resetInputState:An,handleComposition:Mn,onOptionCreate:Vn,onOptionDestroy:Bn,handleMenuEnter:Dn,handleFocus:Ln,focus:Pn,blur:Fn,handleBlur:Un,handleClearClick:Wn,handleClose:Zn,handleKeydownEscape:or,toggleMenu:br,selectOption:Qn,getValueKey:Gn,navigateOptions:Yn,handleDeleteTooltipTag:er,dropMenuVisible:lr,reference:sr,input:zn,iOSInput:Kn,tooltipRef:Jn,tagTooltipRef:cr,tags:_r,selectWrapper:ur,scrollbar:wr,queryChange:Cr,groupQueryChange:mr,handleMouseEnter:Er,handleMouseLeave:Tr,showTagList:nr,collapseTagList:pr,selectTagsStyle:gr}=useSelect$2(t,ie,r),{inputWidth:$r,selected:Rr,inputLength:Lr,filteredOptionsCount:Vr,visible:Nr,selectedLabel:dr,hoverIndex:ar,query:tr,inputHovering:Sr,currentPlaceholder:qn,menuVisibleOnFocus:kr,isOnComposition:Dr,options:Hr,cachedOptions:Gr,optionsCount:Kr,prefixWidth:to}=toRefs(ie),Zr=computed(()=>{const Qr=[$.b()],no=unref(de);return no&&Qr.push($.m(no)),t.disabled&&Qr.push($.m("disabled")),Qr}),hr=computed(()=>[$.e("tags"),$.is("disabled",unref(Sn))]),xr=computed(()=>[$.b("tags-wrapper"),{"has-prefix":unref(to)&&unref(Rr).length}]),ir=computed(()=>[$.e("input"),$.is(unref(de)),$.is("disabled",unref(Sn))]),Pr=computed(()=>[$.e("input"),$.is(unref(de)),$.em("input","iOS")]),zr=computed(()=>[$.is("empty",!t.allowCreate&&!!unref(tr)&&unref(Vr)===0)]),Ir=computed(()=>({maxWidth:`${unref($r)>123?unref($r)-123:unref($r)-75}px`})),Wr=computed(()=>({marginLeft:`${unref(to)}px`,flexGrow:1,width:`${unref(Lr)/(unref($r)-32)}%`,maxWidth:`${unref($r)-42}px`}));provide(selectKey,reactive({props:t,options:Hr,optionsArray:ue,cachedOptions:Gr,optionsCount:Kr,filteredOptionsCount:Vr,hoverIndex:ar,handleOptionSelect:qe,onOptionCreate:Vn,onOptionDestroy:Bn,selectWrapper:ur,selected:Rr,setSelected:Lt,queryChange:Cr,groupQueryChange:mr})),onMounted(()=>{ie.cachedPlaceHolder=qn.value=t.placeholder||(()=>oe("el.select.placeholder")),t.multiple&&Array.isArray(t.modelValue)&&t.modelValue.length>0&&(qn.value=""),useResizeObserver$1(ur,he),t.remote&&t.multiple&&hn(),nextTick(()=>{const Qr=sr.value&&sr.value.$el;if(Qr&&($r.value=Qr.getBoundingClientRect().width,r.slots.prefix)){const no=Qr.querySelector(`.${V.e("prefix")}`);to.value=Math.max(no.getBoundingClientRect().width+11,30)}}),Lt()}),t.multiple&&!Array.isArray(t.modelValue)&&r.emit(UPDATE_MODEL_EVENT,[]),!t.multiple&&Array.isArray(t.modelValue)&&r.emit(UPDATE_MODEL_EVENT,"");const Yr=computed(()=>{var Qr,no;return(no=(Qr=Jn.value)==null?void 0:Qr.popperRef)==null?void 0:no.contentRef});return{isIOS:isIOS$1,onOptionsRendered:Qr=>{le.value=Qr},prefixWidth:to,selectSize:de,readonly:pe,handleResize:he,collapseTagSize:_e,debouncedOnInputChange:$e,debouncedQueryChange:Ie,deletePrevTag:Ve,deleteTag:Fe,handleDeleteTooltipTag:er,deleteSelected:Ue,handleOptionSelect:qe,scrollToOption:Et,inputWidth:$r,selected:Rr,inputLength:Lr,filteredOptionsCount:Vr,visible:Nr,selectedLabel:dr,hoverIndex:ar,query:tr,inputHovering:Sr,currentPlaceholder:qn,menuVisibleOnFocus:kr,isOnComposition:Dr,options:Hr,resetInputHeight:hn,managePlaceholder:Cn,showClose:bn,selectDisabled:Sn,iconComponent:En,iconReverse:wn,showNewOption:$n,emptyText:Tn,toggleLastOptionHitState:xn,resetInputState:An,handleComposition:Mn,handleMenuEnter:Dn,handleFocus:Ln,focus:Pn,blur:Fn,handleBlur:Un,handleClearClick:Wn,handleClose:Zn,handleKeydownEscape:or,toggleMenu:br,selectOption:Qn,getValueKey:Gn,navigateOptions:Yn,dropMenuVisible:lr,reference:sr,input:zn,iOSInput:Kn,tooltipRef:Jn,popperPaneRef:Yr,tags:_r,selectWrapper:ur,scrollbar:wr,wrapperKls:Zr,tagsKls:hr,tagWrapperKls:xr,inputKls:ir,iOSInputKls:Pr,scrollbarKls:zr,selectTagsStyle:gr,nsSelect:$,tagTextStyle:Ir,inputStyle:Wr,handleMouseEnter:Er,handleMouseLeave:Tr,showTagList:nr,collapseTagList:pr,tagTooltipRef:cr}}}),_hoisted_1$q=["disabled","autocomplete","aria-label"],_hoisted_2$i=["disabled"],_hoisted_3$b={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function _sfc_render$a(t,r,$,V,oe,ie){const le=resolveComponent("el-tag"),ue=resolveComponent("el-tooltip"),de=resolveComponent("el-icon"),pe=resolveComponent("el-input"),he=resolveComponent("el-option"),_e=resolveComponent("el-options"),$e=resolveComponent("el-scrollbar"),Ie=resolveComponent("el-select-menu"),Ve=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectWrapper",class:normalizeClass(t.wrapperKls),onMouseenter:r[22]||(r[22]=(...Fe)=>t.handleMouseEnter&&t.handleMouseEnter(...Fe)),onMouseleave:r[23]||(r[23]=(...Fe)=>t.handleMouseLeave&&t.handleMouseLeave(...Fe)),onClick:r[24]||(r[24]=withModifiers((...Fe)=>t.toggleMenu&&t.toggleMenu(...Fe),["stop"]))},[createVNode(ue,{ref:"tooltipRef",visible:t.dropMenuVisible,placement:t.placement,teleported:t.teleported,"popper-class":[t.nsSelect.e("popper"),t.popperClass],"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,pure:"",trigger:"click",transition:`${t.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:t.persistent,onShow:t.handleMenuEnter},{default:withCtx(()=>[createBaseVNode("div",{class:"select-trigger",onMouseenter:r[20]||(r[20]=Fe=>t.inputHovering=!0),onMouseleave:r[21]||(r[21]=Fe=>t.inputHovering=!1)},[t.multiple?(openBlock(),createElementBlock("div",{key:0,ref:"tags",tabindex:"-1",class:normalizeClass(t.tagsKls),style:normalizeStyle$1(t.selectTagsStyle),onClick:r[15]||(r[15]=(...Fe)=>t.focus&&t.focus(...Fe))},[t.collapseTags&&t.selected.length?(openBlock(),createBlock(Transition,{key:0,onAfterLeave:t.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.tagWrapperKls)},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.showTagList,Fe=>(openBlock(),createBlock(le,{key:t.getValueKey(Fe),closable:!t.selectDisabled&&!Fe.isDisabled,size:t.collapseTagSize,hit:Fe.hitState,type:t.tagType,"disable-transitions":"",onClose:Ue=>t.deleteTag(Ue,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text")),style:normalizeStyle$1(t.tagTextStyle)},toDisplayString$1(Fe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128)),t.selected.length>t.maxCollapseTags?(openBlock(),createBlock(le,{key:0,closable:!1,size:t.collapseTagSize,type:t.tagType,"disable-transitions":""},{default:withCtx(()=>[t.collapseTagsTooltip?(openBlock(),createBlock(ue,{key:0,ref:"tagTooltipRef",disabled:t.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:t.teleported},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text"))},"+ "+toDisplayString$1(t.selected.length-t.maxCollapseTags),3)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(t.nsSelect.e("collapse-tags"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.collapseTagList,Fe=>(openBlock(),createElementBlock("div",{key:t.getValueKey(Fe),class:normalizeClass(t.nsSelect.e("collapse-tag"))},[createVNode(le,{class:"in-tooltip",closable:!t.selectDisabled&&!Fe.isDisabled,size:t.collapseTagSize,hit:Fe.hitState,type:t.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:Ue=>t.handleDeleteTooltipTag(Ue,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:t.inputWidth-75+"px"})},toDisplayString$1(Fe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(t.nsSelect.e("tags-text"))},"+ "+toDisplayString$1(t.selected.length-t.maxCollapseTags),3))]),_:1},8,["size","type"])):createCommentVNode("v-if",!0)],2)]),_:1},8,["onAfterLeave"])):createCommentVNode("v-if",!0),t.collapseTags?createCommentVNode("v-if",!0):(openBlock(),createBlock(Transition,{key:1,onAfterLeave:t.resetInputHeight},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.tagWrapperKls),style:normalizeStyle$1(t.prefixWidth&&t.selected.length?{marginLeft:`${t.prefixWidth}px`}:"")},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.selected,Fe=>(openBlock(),createBlock(le,{key:t.getValueKey(Fe),closable:!t.selectDisabled&&!Fe.isDisabled,size:t.collapseTagSize,hit:Fe.hitState,type:t.tagType,"disable-transitions":"",onClose:Ue=>t.deleteTag(Ue,Fe)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelect.e("tags-text")),style:normalizeStyle$1({maxWidth:t.inputWidth-75+"px"})},toDisplayString$1(Fe.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],6)]),_:1},8,["onAfterLeave"])),t.filterable&&!t.selectDisabled?withDirectives((openBlock(),createElementBlock("input",{key:2,ref:"input","onUpdate:modelValue":r[0]||(r[0]=Fe=>t.query=Fe),type:"text",class:normalizeClass(t.inputKls),disabled:t.selectDisabled,autocomplete:t.autocomplete,style:normalizeStyle$1(t.inputStyle),"aria-label":t.ariaLabel,onFocus:r[1]||(r[1]=(...Fe)=>t.handleFocus&&t.handleFocus(...Fe)),onBlur:r[2]||(r[2]=(...Fe)=>t.handleBlur&&t.handleBlur(...Fe)),onKeyup:r[3]||(r[3]=(...Fe)=>t.managePlaceholder&&t.managePlaceholder(...Fe)),onKeydown:[r[4]||(r[4]=(...Fe)=>t.resetInputState&&t.resetInputState(...Fe)),r[5]||(r[5]=withKeys(withModifiers(Fe=>t.navigateOptions("next"),["prevent"]),["down"])),r[6]||(r[6]=withKeys(withModifiers(Fe=>t.navigateOptions("prev"),["prevent"]),["up"])),r[7]||(r[7]=withKeys((...Fe)=>t.handleKeydownEscape&&t.handleKeydownEscape(...Fe),["esc"])),r[8]||(r[8]=withKeys(withModifiers((...Fe)=>t.selectOption&&t.selectOption(...Fe),["stop","prevent"]),["enter"])),r[9]||(r[9]=withKeys((...Fe)=>t.deletePrevTag&&t.deletePrevTag(...Fe),["delete"])),r[10]||(r[10]=withKeys(Fe=>t.visible=!1,["tab"]))],onCompositionstart:r[11]||(r[11]=(...Fe)=>t.handleComposition&&t.handleComposition(...Fe)),onCompositionupdate:r[12]||(r[12]=(...Fe)=>t.handleComposition&&t.handleComposition(...Fe)),onCompositionend:r[13]||(r[13]=(...Fe)=>t.handleComposition&&t.handleComposition(...Fe)),onInput:r[14]||(r[14]=(...Fe)=>t.debouncedQueryChange&&t.debouncedQueryChange(...Fe))},null,46,_hoisted_1$q)),[[vModelText,t.query]]):createCommentVNode("v-if",!0)],6)):createCommentVNode("v-if",!0),createCommentVNode(" fix: https://github.com/element-plus/element-plus/issues/11415 "),t.isIOS&&!t.multiple&&t.filterable&&t.readonly?(openBlock(),createElementBlock("input",{key:1,ref:"iOSInput",class:normalizeClass(t.iOSInputKls),disabled:t.selectDisabled,type:"text"},null,10,_hoisted_2$i)):createCommentVNode("v-if",!0),createVNode(pe,{id:t.id,ref:"reference",modelValue:t.selectedLabel,"onUpdate:modelValue":r[16]||(r[16]=Fe=>t.selectedLabel=Fe),type:"text",placeholder:typeof t.currentPlaceholder=="function"?t.currentPlaceholder():t.currentPlaceholder,name:t.name,autocomplete:t.autocomplete,size:t.selectSize,disabled:t.selectDisabled,readonly:t.readonly,"validate-event":!1,class:normalizeClass([t.nsSelect.is("focus",t.visible)]),tabindex:t.multiple&&t.filterable?-1:void 0,label:t.ariaLabel,onFocus:t.handleFocus,onBlur:t.handleBlur,onInput:t.debouncedOnInputChange,onPaste:t.debouncedOnInputChange,onCompositionstart:t.handleComposition,onCompositionupdate:t.handleComposition,onCompositionend:t.handleComposition,onKeydown:[r[17]||(r[17]=withKeys(withModifiers(Fe=>t.navigateOptions("next"),["stop","prevent"]),["down"])),r[18]||(r[18]=withKeys(withModifiers(Fe=>t.navigateOptions("prev"),["stop","prevent"]),["up"])),withKeys(withModifiers(t.selectOption,["stop","prevent"]),["enter"]),withKeys(t.handleKeydownEscape,["esc"]),r[19]||(r[19]=withKeys(Fe=>t.visible=!1,["tab"]))]},createSlots({suffix:withCtx(()=>[t.iconComponent&&!t.showClose?(openBlock(),createBlock(de,{key:0,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon"),t.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),t.showClose&&t.clearIcon?(openBlock(),createBlock(de,{key:1,class:normalizeClass([t.nsSelect.e("caret"),t.nsSelect.e("icon")]),onClick:t.handleClearClick},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)]),_:2},[t.$slots.prefix?{name:"prefix",fn:withCtx(()=>[createBaseVNode("div",_hoisted_3$b,[renderSlot(t.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","label","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:withCtx(()=>[createVNode(Ie,null,{default:withCtx(()=>[withDirectives(createVNode($e,{ref:"scrollbar",tag:"ul","wrap-class":t.nsSelect.be("dropdown","wrap"),"view-class":t.nsSelect.be("dropdown","list"),class:normalizeClass(t.scrollbarKls)},{default:withCtx(()=>[t.showNewOption?(openBlock(),createBlock(he,{key:0,value:t.query,created:!0},null,8,["value"])):createCommentVNode("v-if",!0),createVNode(_e,{onUpdateOptions:t.onOptionsRendered},{default:withCtx(()=>[renderSlot(t.$slots,"default")]),_:3},8,["onUpdateOptions"])]),_:3},8,["wrap-class","view-class","class"]),[[vShow,t.options.size>0&&!t.loading]]),t.emptyText&&(!t.allowCreate||t.loading||t.allowCreate&&t.options.size===0)?(openBlock(),createElementBlock(Fragment,{key:0},[t.$slots.empty?renderSlot(t.$slots,"empty",{key:0}):(openBlock(),createElementBlock("p",{key:1,class:normalizeClass(t.nsSelect.be("dropdown","empty"))},toDisplayString$1(t.emptyText),3))],64)):createCommentVNode("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","popper-options","effect","transition","persistent","onShow"])],34)),[[Ve,t.handleClose,t.popperPaneRef]])}var Select$1=_export_sfc$1(_sfc_main$R,[["render",_sfc_render$a],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const _sfc_main$Q=defineComponent({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(t){const r=useNamespace("select"),$=ref(!0),V=getCurrentInstance(),oe=ref([]);provide(selectGroupKey,reactive({...toRefs(t)}));const ie=inject(selectKey);onMounted(()=>{oe.value=le(V.subTree)});const le=de=>{const pe=[];return Array.isArray(de.children)&&de.children.forEach(he=>{var _e;he.type&&he.type.name==="ElOption"&&he.component&&he.component.proxy?pe.push(he.component.proxy):(_e=he.children)!=null&&_e.length&&pe.push(...le(he))}),pe},{groupQueryChange:ue}=toRaw(ie);return watch(ue,()=>{$.value=oe.value.some(de=>de.visible===!0)},{flush:"post"}),{visible:$,ns:r}}});function _sfc_render$9(t,r,$,V,oe,ie){return withDirectives((openBlock(),createElementBlock("ul",{class:normalizeClass(t.ns.be("group","wrap"))},[createBaseVNode("li",{class:normalizeClass(t.ns.be("group","title"))},toDisplayString$1(t.label),3),createBaseVNode("li",null,[createBaseVNode("ul",{class:normalizeClass(t.ns.b("group"))},[renderSlot(t.$slots,"default")],2)])],2)),[[vShow,t.visible]])}var OptionGroup=_export_sfc$1(_sfc_main$Q,[["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,teleported:Boolean,size:{type:String,values:componentSizes}}),__default__$C=defineComponent({name:"ElPaginationSizes"}),_sfc_main$P=defineComponent({...__default__$C,props:paginationSizesProps,emits:["page-size-change"],setup(t,{emit:r}){const $=t,{t:V}=useLocale(),oe=useNamespace("pagination"),ie=usePagination(),le=ref($.pageSize);watch(()=>$.pageSizes,(pe,he)=>{if(!isEqual$1(pe,he)&&Array.isArray(pe)){const _e=pe.includes($.pageSize)?$.pageSize:$.pageSizes[0];r("page-size-change",_e)}}),watch(()=>$.pageSize,pe=>{le.value=pe});const ue=computed(()=>$.pageSizes);function de(pe){var he;pe!==le.value&&(le.value=pe,(he=ie.handleSizeChange)==null||he.call(ie,Number(pe)))}return(pe,he)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref(oe).e("sizes"))},[createVNode(unref(ElSelect),{"model-value":le.value,disabled:pe.disabled,"popper-class":pe.popperClass,size:pe.size,teleported:pe.teleported,"validate-event":!1,onChange:de},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(ue),_e=>(openBlock(),createBlock(unref(ElOption),{key:_e,value:_e,label:_e+unref(V)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size","teleported"])],2))}});var Sizes=_export_sfc$1(_sfc_main$P,[["__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$p=["disabled"],__default__$B=defineComponent({name:"ElPaginationJumper"}),_sfc_main$O=defineComponent({...__default__$B,props:paginationJumperProps,setup(t){const{t:r}=useLocale(),$=useNamespace("pagination"),{pageCount:V,disabled:oe,currentPage:ie,changeEvent:le}=usePagination(),ue=ref(),de=computed(()=>{var _e;return(_e=ue.value)!=null?_e:ie==null?void 0:ie.value});function pe(_e){ue.value=_e?+_e:""}function he(_e){_e=Math.trunc(+_e),le==null||le(_e),ue.value=void 0}return(_e,$e)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref($).e("jump")),disabled:unref(oe)},[createBaseVNode("span",{class:normalizeClass([unref($).e("goto")])},toDisplayString$1(unref(r)("el.pagination.goto")),3),createVNode(unref(ElInput),{size:_e.size,class:normalizeClass([unref($).e("editor"),unref($).is("in-pagination")]),min:1,max:unref(V),disabled:unref(oe),"model-value":unref(de),"validate-event":!1,label:unref(r)("el.pagination.page"),type:"number","onUpdate:modelValue":pe,onChange:he},null,8,["size","class","max","disabled","model-value","label"]),createBaseVNode("span",{class:normalizeClass([unref($).e("classifier")])},toDisplayString$1(unref(r)("el.pagination.pageClassifier")),3)],10,_hoisted_1$p))}});var Jumper=_export_sfc$1(_sfc_main$O,[["__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$o=["disabled"],__default__$A=defineComponent({name:"ElPaginationTotal"}),_sfc_main$N=defineComponent({...__default__$A,props:paginationTotalProps,setup(t){const{t:r}=useLocale(),$=useNamespace("pagination"),{disabled:V}=usePagination();return(oe,ie)=>(openBlock(),createElementBlock("span",{class:normalizeClass(unref($).e("total")),disabled:unref(V)},toDisplayString$1(unref(r)("el.pagination.total",{total:oe.total})),11,_hoisted_1$o))}});var Total=_export_sfc$1(_sfc_main$N,[["__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$n=["onKeyup"],_hoisted_2$h=["aria-current","aria-label","tabindex"],_hoisted_3$a=["tabindex","aria-label"],_hoisted_4$7=["aria-current","aria-label","tabindex"],_hoisted_5$5=["tabindex","aria-label"],_hoisted_6$1=["aria-current","aria-label","tabindex"],__default__$z=defineComponent({name:"ElPaginationPager"}),_sfc_main$M=defineComponent({...__default__$z,props:paginationPagerProps,emits:["change"],setup(t,{emit:r}){const $=t,V=useNamespace("pager"),oe=useNamespace("icon"),{t:ie}=useLocale(),le=ref(!1),ue=ref(!1),de=ref(!1),pe=ref(!1),he=ref(!1),_e=ref(!1),$e=computed(()=>{const hn=$.pagerCount,Cn=(hn-1)/2,bn=Number($.currentPage),Sn=Number($.pageCount);let En=!1,wn=!1;Sn>hn&&(bn>hn-Cn&&(En=!0),bn["more","btn-quickprev",oe.b(),V.is("disabled",$.disabled)]),Ve=computed(()=>["more","btn-quicknext",oe.b(),V.is("disabled",$.disabled)]),Fe=computed(()=>$.disabled?-1:0);watchEffect(()=>{const hn=($.pagerCount-1)/2;le.value=!1,ue.value=!1,$.pageCount>$.pagerCount&&($.currentPage>$.pagerCount-hn&&(le.value=!0),$.currentPage<$.pageCount-hn&&(ue.value=!0))});function Ue(hn=!1){$.disabled||(hn?de.value=!0:pe.value=!0)}function qe(hn=!1){hn?he.value=!0:_e.value=!0}function Et(hn){const Cn=hn.target;if(Cn.tagName.toLowerCase()==="li"&&Array.from(Cn.classList).includes("number")){const bn=Number(Cn.textContent);bn!==$.currentPage&&r("change",bn)}else Cn.tagName.toLowerCase()==="li"&&Array.from(Cn.classList).includes("more")&&Lt(hn)}function Lt(hn){const Cn=hn.target;if(Cn.tagName.toLowerCase()==="ul"||$.disabled)return;let bn=Number(Cn.textContent);const Sn=$.pageCount,En=$.currentPage,wn=$.pagerCount-2;Cn.className.includes("more")&&(Cn.className.includes("quickprev")?bn=En-wn:Cn.className.includes("quicknext")&&(bn=En+wn)),Number.isNaN(+bn)||(bn<1&&(bn=1),bn>Sn&&(bn=Sn)),bn!==En&&r("change",bn)}return(hn,Cn)=>(openBlock(),createElementBlock("ul",{class:normalizeClass(unref(V).b()),onClick:Lt,onKeyup:withKeys(Et,["enter"])},[hn.pageCount>0?(openBlock(),createElementBlock("li",{key:0,class:normalizeClass([[unref(V).is("active",hn.currentPage===1),unref(V).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===1,"aria-label":unref(ie)("el.pagination.currentPage",{pager:1}),tabindex:unref(Fe)}," 1 ",10,_hoisted_2$h)):createCommentVNode("v-if",!0),le.value?(openBlock(),createElementBlock("li",{key:1,class:normalizeClass(unref(Ie)),tabindex:unref(Fe),"aria-label":unref(ie)("el.pagination.prevPages",{pager:hn.pagerCount-2}),onMouseenter:Cn[0]||(Cn[0]=bn=>Ue(!0)),onMouseleave:Cn[1]||(Cn[1]=bn=>de.value=!1),onFocus:Cn[2]||(Cn[2]=bn=>qe(!0)),onBlur:Cn[3]||(Cn[3]=bn=>he.value=!1)},[(de.value||he.value)&&!hn.disabled?(openBlock(),createBlock(unref(d_arrow_left_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_3$a)):createCommentVNode("v-if",!0),(openBlock(!0),createElementBlock(Fragment,null,renderList(unref($e),bn=>(openBlock(),createElementBlock("li",{key:bn,class:normalizeClass([[unref(V).is("active",hn.currentPage===bn),unref(V).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===bn,"aria-label":unref(ie)("el.pagination.currentPage",{pager:bn}),tabindex:unref(Fe)},toDisplayString$1(bn),11,_hoisted_4$7))),128)),ue.value?(openBlock(),createElementBlock("li",{key:2,class:normalizeClass(unref(Ve)),tabindex:unref(Fe),"aria-label":unref(ie)("el.pagination.nextPages",{pager:hn.pagerCount-2}),onMouseenter:Cn[4]||(Cn[4]=bn=>Ue()),onMouseleave:Cn[5]||(Cn[5]=bn=>pe.value=!1),onFocus:Cn[6]||(Cn[6]=bn=>qe()),onBlur:Cn[7]||(Cn[7]=bn=>_e.value=!1)},[(pe.value||_e.value)&&!hn.disabled?(openBlock(),createBlock(unref(d_arrow_right_default),{key:0})):(openBlock(),createBlock(unref(more_filled_default),{key:1}))],42,_hoisted_5$5)):createCommentVNode("v-if",!0),hn.pageCount>1?(openBlock(),createElementBlock("li",{key:3,class:normalizeClass([[unref(V).is("active",hn.currentPage===hn.pageCount),unref(V).is("disabled",hn.disabled)],"number"]),"aria-current":hn.currentPage===hn.pageCount,"aria-label":unref(ie)("el.pagination.currentPage",{pager:hn.pageCount}),tabindex:unref(Fe)},toDisplayString$1(hn.pageCount),11,_hoisted_6$1)):createCommentVNode("v-if",!0)],42,_hoisted_1$n))}});var Pager=_export_sfc$1(_sfc_main$M,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const isAbsent=t=>typeof t!="number",paginationProps=buildProps({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:t=>isNumber$4(t)&&Math.trunc(t)===t&&t>4&&t<22&&t%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,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},teleported:{type:Boolean,default:!0},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),paginationEmits={"update:current-page":t=>isNumber$4(t),"update:page-size":t=>isNumber$4(t),"size-change":t=>isNumber$4(t),"current-change":t=>isNumber$4(t),"prev-click":t=>isNumber$4(t),"next-click":t=>isNumber$4(t)},componentName="ElPagination";var Pagination=defineComponent({name:componentName,props:paginationProps,emits:paginationEmits,setup(t,{emit:r,slots:$}){const{t:V}=useLocale(),oe=useNamespace("pagination"),ie=getCurrentInstance().vnode.props||{},le="onUpdate:currentPage"in ie||"onUpdate:current-page"in ie||"onCurrentChange"in ie,ue="onUpdate:pageSize"in ie||"onUpdate:page-size"in ie||"onSizeChange"in ie,de=computed(()=>{if(isAbsent(t.total)&&isAbsent(t.pageCount)||!isAbsent(t.currentPage)&&!le)return!1;if(t.layout.includes("sizes")){if(isAbsent(t.pageCount)){if(!isAbsent(t.total)&&!isAbsent(t.pageSize)&&!ue)return!1}else if(!ue)return!1}return!0}),pe=ref(isAbsent(t.defaultPageSize)?10:t.defaultPageSize),he=ref(isAbsent(t.defaultCurrentPage)?1:t.defaultCurrentPage),_e=computed({get(){return isAbsent(t.pageSize)?pe.value:t.pageSize},set(Lt){isAbsent(t.pageSize)&&(pe.value=Lt),ue&&(r("update:page-size",Lt),r("size-change",Lt))}}),$e=computed(()=>{let Lt=0;return isAbsent(t.pageCount)?isAbsent(t.total)||(Lt=Math.max(1,Math.ceil(t.total/_e.value))):Lt=t.pageCount,Lt}),Ie=computed({get(){return isAbsent(t.currentPage)?he.value:t.currentPage},set(Lt){let hn=Lt;Lt<1?hn=1:Lt>$e.value&&(hn=$e.value),isAbsent(t.currentPage)&&(he.value=hn),le&&(r("update:current-page",hn),r("current-change",hn))}});watch($e,Lt=>{Ie.value>Lt&&(Ie.value=Lt)});function Ve(Lt){Ie.value=Lt}function Fe(Lt){_e.value=Lt;const hn=$e.value;Ie.value>hn&&(Ie.value=hn)}function Ue(){t.disabled||(Ie.value-=1,r("prev-click",Ie.value))}function qe(){t.disabled||(Ie.value+=1,r("next-click",Ie.value))}function Et(Lt,hn){Lt&&(Lt.props||(Lt.props={}),Lt.props.class=[Lt.props.class,hn].join(" "))}return provide(elPaginationKey,{pageCount:$e,disabled:computed(()=>t.disabled),currentPage:Ie,changeEvent:Ve,handleSizeChange:Fe}),()=>{var Lt,hn;if(!de.value)return V("el.pagination.deprecationWarning"),null;if(!t.layout||t.hideOnSinglePage&&$e.value<=1)return null;const Cn=[],bn=[],Sn=h$2("div",{class:oe.e("rightwrapper")},bn),En={prev:h$2(Prev,{disabled:t.disabled,currentPage:Ie.value,prevText:t.prevText,prevIcon:t.prevIcon,onClick:Ue}),jumper:h$2(Jumper,{size:t.small?"small":"default"}),pager:h$2(Pager,{currentPage:Ie.value,pageCount:$e.value,pagerCount:t.pagerCount,onChange:Ve,disabled:t.disabled}),next:h$2(Next,{disabled:t.disabled,currentPage:Ie.value,pageCount:$e.value,nextText:t.nextText,nextIcon:t.nextIcon,onClick:qe}),sizes:h$2(Sizes,{pageSize:_e.value,pageSizes:t.pageSizes,popperClass:t.popperClass,disabled:t.disabled,teleported:t.teleported,size:t.small?"small":"default"}),slot:(hn=(Lt=$==null?void 0:$.default)==null?void 0:Lt.call($))!=null?hn:null,total:h$2(Total,{total:isAbsent(t.total)?0:t.total})},wn=t.layout.split(",").map(Tn=>Tn.trim());let $n=!1;return wn.forEach(Tn=>{if(Tn==="->"){$n=!0;return}$n?bn.push(En[Tn]):Cn.push(En[Tn])}),Et(Cn[0],oe.is("first")),Et(Cn[Cn.length-1],oe.is("last")),$n&&bn.length>0&&(Et(bn[0],oe.is("first")),Et(bn[bn.length-1],oe.is("last")),Cn.push(Sn)),h$2("div",{class:[oe.b(),oe.is("background",t.background),{[oe.m("small")]:t.small}]},Cn)}}});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:t=>t instanceof MouseEvent,cancel:t=>t instanceof MouseEvent},__default__$y=defineComponent({name:"ElPopconfirm"}),_sfc_main$L=defineComponent({...__default__$y,props:popconfirmProps,emits:popconfirmEmits,setup(t,{emit:r}){const $=t,{t:V}=useLocale(),oe=useNamespace("popconfirm"),ie=ref(),le=()=>{var $e,Ie;(Ie=($e=ie.value)==null?void 0:$e.onClose)==null||Ie.call($e)},ue=computed(()=>({width:addUnit($.width)})),de=$e=>{r("confirm",$e),le()},pe=$e=>{r("cancel",$e),le()},he=computed(()=>$.confirmButtonText||V("el.popconfirm.confirmButtonText")),_e=computed(()=>$.cancelButtonText||V("el.popconfirm.cancelButtonText"));return($e,Ie)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:ie,trigger:"click",effect:"light"},$e.$attrs,{"popper-class":`${unref(oe).namespace.value}-popover`,"popper-style":unref(ue),teleported:$e.teleported,"fallback-placements":["bottom","top","right","left"],"hide-after":$e.hideAfter,persistent:$e.persistent}),{content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(unref(oe).b())},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("main"))},[!$e.hideIcon&&$e.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("icon")),style:normalizeStyle$1({color:$e.iconColor})},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent($e.icon)))]),_:1},8,["class","style"])):createCommentVNode("v-if",!0),createTextVNode(" "+toDisplayString$1($e.title),1)],2),createBaseVNode("div",{class:normalizeClass(unref(oe).e("action"))},[createVNode(unref(ElButton),{size:"small",type:$e.cancelButtonType==="text"?"":$e.cancelButtonType,text:$e.cancelButtonType==="text",onClick:pe},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(_e)),1)]),_:1},8,["type","text"]),createVNode(unref(ElButton),{size:"small",type:$e.confirmButtonType==="text"?"":$e.confirmButtonType,text:$e.confirmButtonType==="text",onClick:de},{default:withCtx(()=>[createTextVNode(toDisplayString$1(unref(he)),1)]),_:1},8,["type","text"])],2)],2)]),default:withCtx(()=>[$e.$slots.reference?renderSlot($e.$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$L,[["__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":t=>isBoolean$3(t),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},updateEventKeyRaw="onUpdate:visible",__default__$x=defineComponent({name:"ElPopover"}),_sfc_main$K=defineComponent({...__default__$x,props:popoverProps,emits:popoverEmits,setup(t,{expose:r,emit:$}){const V=t,oe=computed(()=>V[updateEventKeyRaw]),ie=useNamespace("popover"),le=ref(),ue=computed(()=>{var Ue;return(Ue=unref(le))==null?void 0:Ue.popperRef}),de=computed(()=>[{width:addUnit(V.width)},V.popperStyle]),pe=computed(()=>[ie.b(),V.popperClass,{[ie.m("plain")]:!!V.content}]),he=computed(()=>V.transition===`${ie.namespace.value}-fade-in-linear`),_e=()=>{var Ue;(Ue=le.value)==null||Ue.hide()},$e=()=>{$("before-enter")},Ie=()=>{$("before-leave")},Ve=()=>{$("after-enter")},Fe=()=>{$("update:visible",!1),$("after-leave")};return r({popperRef:ue,hide:_e}),(Ue,qe)=>(openBlock(),createBlock(unref(ElTooltip),mergeProps({ref_key:"tooltipRef",ref:le},Ue.$attrs,{trigger:Ue.trigger,placement:Ue.placement,disabled:Ue.disabled,visible:Ue.visible,transition:Ue.transition,"popper-options":Ue.popperOptions,tabindex:Ue.tabindex,content:Ue.content,offset:Ue.offset,"show-after":Ue.showAfter,"hide-after":Ue.hideAfter,"auto-close":Ue.autoClose,"show-arrow":Ue.showArrow,"aria-label":Ue.title,effect:Ue.effect,enterable:Ue.enterable,"popper-class":unref(pe),"popper-style":unref(de),teleported:Ue.teleported,persistent:Ue.persistent,"gpu-acceleration":unref(he),"onUpdate:visible":unref(oe),onBeforeShow:$e,onBeforeHide:Ie,onShow:Ve,onHide:Fe}),{content:withCtx(()=>[Ue.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ie).e("title")),role:"title"},toDisplayString$1(Ue.title),3)):createCommentVNode("v-if",!0),renderSlot(Ue.$slots,"default",{},()=>[createTextVNode(toDisplayString$1(Ue.content),1)])]),default:withCtx(()=>[Ue.$slots.reference?renderSlot(Ue.$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$K,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const attachEvents=(t,r)=>{const $=r.arg||r.value,V=$==null?void 0:$.popperRef;V&&(V.triggerRef=t)};var PopoverDirective={mounted(t,r){attachEvents(t,r)},updated(t,r){attachEvents(t,r)}};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:t=>t>=0&&t<=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:t=>`${t}%`}}),_hoisted_1$m=["aria-valuenow"],_hoisted_2$g={viewBox:"0 0 100 100"},_hoisted_3$9=["d","stroke","stroke-linecap","stroke-width"],_hoisted_4$6=["d","stroke","opacity","stroke-linecap","stroke-width"],_hoisted_5$4={key:0},__default__$w=defineComponent({name:"ElProgress"}),_sfc_main$J=defineComponent({...__default__$w,props:progressProps,setup(t){const r=t,$={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},V=useNamespace("progress"),oe=computed(()=>({width:`${r.percentage}%`,animationDuration:`${r.duration}s`,backgroundColor:Et(r.percentage)})),ie=computed(()=>(r.strokeWidth/r.width*100).toFixed(1)),le=computed(()=>["circle","dashboard"].includes(r.type)?Number.parseInt(`${50-Number.parseFloat(ie.value)/2}`,10):0),ue=computed(()=>{const Lt=le.value,hn=r.type==="dashboard";return` M 50 50 m 0 ${hn?"":"-"}${Lt} a ${Lt} ${Lt} 0 1 1 0 ${hn?"-":""}${Lt*2} a ${Lt} ${Lt} 0 1 1 0 ${hn?"":"-"}${Lt*2} `}),de=computed(()=>2*Math.PI*le.value),pe=computed(()=>r.type==="dashboard"?.75:1),he=computed(()=>`${-1*de.value*(1-pe.value)/2}px`),_e=computed(()=>({strokeDasharray:`${de.value*pe.value}px, ${de.value}px`,strokeDashoffset:he.value})),$e=computed(()=>({strokeDasharray:`${de.value*pe.value*(r.percentage/100)}px, ${de.value}px`,strokeDashoffset:he.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),Ie=computed(()=>{let Lt;return r.color?Lt=Et(r.percentage):Lt=$[r.status]||$.default,Lt}),Ve=computed(()=>r.status==="warning"?warning_filled_default:r.type==="line"?r.status==="success"?circle_check_default:circle_close_default:r.status==="success"?check_default:close_default),Fe=computed(()=>r.type==="line"?12+r.strokeWidth*.4:r.width*.111111+2),Ue=computed(()=>r.format(r.percentage));function qe(Lt){const hn=100/Lt.length;return Lt.map((bn,Sn)=>isString$6(bn)?{color:bn,percentage:(Sn+1)*hn}:bn).sort((bn,Sn)=>bn.percentage-Sn.percentage)}const Et=Lt=>{var hn;const{color:Cn}=r;if(isFunction$5(Cn))return Cn(Lt);if(isString$6(Cn))return Cn;{const bn=qe(Cn);for(const Sn of bn)if(Sn.percentage>Lt)return Sn.color;return(hn=bn[bn.length-1])==null?void 0:hn.color}};return(Lt,hn)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b(),unref(V).m(Lt.type),unref(V).is(Lt.status),{[unref(V).m("without-text")]:!Lt.showText,[unref(V).m("text-inside")]:Lt.textInside}]),role:"progressbar","aria-valuenow":Lt.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[Lt.type==="line"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).b("bar"))},[createBaseVNode("div",{class:normalizeClass(unref(V).be("bar","outer")),style:normalizeStyle$1({height:`${Lt.strokeWidth}px`})},[createBaseVNode("div",{class:normalizeClass([unref(V).be("bar","inner"),{[unref(V).bem("bar","inner","indeterminate")]:Lt.indeterminate},{[unref(V).bem("bar","inner","striped")]:Lt.striped},{[unref(V).bem("bar","inner","striped-flow")]:Lt.stripedFlow}]),style:normalizeStyle$1(unref(oe))},[(Lt.showText||Lt.$slots.default)&&Lt.textInside?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).be("bar","innerText"))},[renderSlot(Lt.$slots,"default",{percentage:Lt.percentage},()=>[createBaseVNode("span",null,toDisplayString$1(unref(Ue)),1)])],2)):createCommentVNode("v-if",!0)],6)],6)],2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(V).b("circle")),style:normalizeStyle$1({height:`${Lt.width}px`,width:`${Lt.width}px`})},[(openBlock(),createElementBlock("svg",_hoisted_2$g,[createBaseVNode("path",{class:normalizeClass(unref(V).be("circle","track")),d:unref(ue),stroke:`var(${unref(V).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":Lt.strokeLinecap,"stroke-width":unref(ie),fill:"none",style:normalizeStyle$1(unref(_e))},null,14,_hoisted_3$9),createBaseVNode("path",{class:normalizeClass(unref(V).be("circle","path")),d:unref(ue),stroke:unref(Ie),fill:"none",opacity:Lt.percentage?1:0,"stroke-linecap":Lt.strokeLinecap,"stroke-width":unref(ie),style:normalizeStyle$1(unref($e))},null,14,_hoisted_4$6)]))],6)),(Lt.showText||Lt.$slots.default)&&!Lt.textInside?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref(V).e("text")),style:normalizeStyle$1({fontSize:`${unref(Fe)}px`})},[renderSlot(Lt.$slots,"default",{percentage:Lt.percentage},()=>[Lt.status?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ve))))]),_:1})):(openBlock(),createElementBlock("span",_hoisted_5$4,toDisplayString$1(unref(Ue)),1))])],6)):createCommentVNode("v-if",!0)],10,_hoisted_1$m))}});var Progress=_export_sfc$1(_sfc_main$J,[["__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]:t=>isNumber$4(t),[UPDATE_MODEL_EVENT]:t=>isNumber$4(t)},_hoisted_1$l=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax"],_hoisted_2$f=["onMousemove","onClick"],__default__$v=defineComponent({name:"ElRate"}),_sfc_main$I=defineComponent({...__default__$v,props:rateProps,emits:rateEmits,setup(t,{expose:r,emit:$}){const V=t;function oe(Bn,Dn){const Ln=Un=>isObject$a(Un),Pn=Object.keys(Dn).map(Un=>+Un).filter(Un=>{const Wn=Dn[Un];return(Ln(Wn)?Wn.excluded:!1)?BnUn-Wn),Fn=Dn[Pn[0]];return Ln(Fn)&&Fn.value||Fn}const ie=inject(formContextKey,void 0),le=inject(formItemContextKey,void 0),ue=useFormSize(),de=useNamespace("rate"),{inputId:pe,isLabeledByFormItem:he}=useFormItemInputId(V,{formItemContext:le}),_e=ref(V.modelValue),$e=ref(-1),Ie=ref(!0),Ve=computed(()=>[de.b(),de.m(ue.value)]),Fe=computed(()=>V.disabled||(ie==null?void 0:ie.disabled)),Ue=computed(()=>de.cssVarBlock({"void-color":V.voidColor,"disabled-void-color":V.disabledVoidColor,"fill-color":hn.value})),qe=computed(()=>{let Bn="";return V.showScore?Bn=V.scoreTemplate.replace(/\{\s*value\s*\}/,Fe.value?`${V.modelValue}`:`${_e.value}`):V.showText&&(Bn=V.texts[Math.ceil(_e.value)-1]),Bn}),Et=computed(()=>V.modelValue*100-Math.floor(V.modelValue)*100),Lt=computed(()=>isArray$c(V.colors)?{[V.lowThreshold]:V.colors[0],[V.highThreshold]:{value:V.colors[1],excluded:!0},[V.max]:V.colors[2]}:V.colors),hn=computed(()=>{const Bn=oe(_e.value,Lt.value);return isObject$a(Bn)?"":Bn}),Cn=computed(()=>{let Bn="";return Fe.value?Bn=`${Et.value}%`:V.allowHalf&&(Bn="50%"),{color:hn.value,width:Bn}}),bn=computed(()=>{let Bn=isArray$c(V.icons)?[...V.icons]:{...V.icons};return Bn=markRaw(Bn),isArray$c(Bn)?{[V.lowThreshold]:Bn[0],[V.highThreshold]:{value:Bn[1],excluded:!0},[V.max]:Bn[2]}:Bn}),Sn=computed(()=>oe(V.modelValue,bn.value)),En=computed(()=>Fe.value?isString$6(V.disabledVoidIcon)?V.disabledVoidIcon:markRaw(V.disabledVoidIcon):isString$6(V.voidIcon)?V.voidIcon:markRaw(V.voidIcon)),wn=computed(()=>oe(_e.value,bn.value));function $n(Bn){const Dn=Fe.value&&Et.value>0&&Bn-1V.modelValue,Ln=V.allowHalf&&Ie.value&&Bn-.5<=_e.value&&Bn>_e.value;return Dn||Ln}function Tn(Bn){V.clearable&&Bn===V.modelValue&&(Bn=0),$(UPDATE_MODEL_EVENT,Bn),V.modelValue!==Bn&&$("change",Bn)}function xn(Bn){Fe.value||(V.allowHalf&&Ie.value?Tn(_e.value):Tn(Bn))}function An(Bn){if(Fe.value)return;let Dn=_e.value;const Ln=Bn.code;return Ln===EVENT_CODE.up||Ln===EVENT_CODE.right?(V.allowHalf?Dn+=.5:Dn+=1,Bn.stopPropagation(),Bn.preventDefault()):(Ln===EVENT_CODE.left||Ln===EVENT_CODE.down)&&(V.allowHalf?Dn-=.5:Dn-=1,Bn.stopPropagation(),Bn.preventDefault()),Dn=Dn<0?0:Dn,Dn=Dn>V.max?V.max:Dn,$(UPDATE_MODEL_EVENT,Dn),$("change",Dn),Dn}function Mn(Bn,Dn){if(!Fe.value){if(V.allowHalf&&Dn){let Ln=Dn.target;hasClass(Ln,de.e("item"))&&(Ln=Ln.querySelector(`.${de.e("icon")}`)),(Ln.clientWidth===0||hasClass(Ln,de.e("decimal")))&&(Ln=Ln.parentNode),Ie.value=Dn.offsetX*2<=Ln.clientWidth,_e.value=Ie.value?Bn-.5:Bn}else _e.value=Bn;$e.value=Bn}}function Vn(){Fe.value||(V.allowHalf&&(Ie.value=V.modelValue!==Math.floor(V.modelValue)),_e.value=V.modelValue,$e.value=-1)}return watch(()=>V.modelValue,Bn=>{_e.value=Bn,Ie.value=V.modelValue!==Math.floor(V.modelValue)}),V.modelValue||$(UPDATE_MODEL_EVENT,0),r({setCurrentValue:Mn,resetCurrentValue:Vn}),(Bn,Dn)=>{var Ln;return openBlock(),createElementBlock("div",{id:unref(pe),class:normalizeClass([unref(Ve),unref(de).is("disabled",unref(Fe))]),role:"slider","aria-label":unref(he)?void 0:Bn.label||"rating","aria-labelledby":unref(he)?(Ln=unref(le))==null?void 0:Ln.labelId:void 0,"aria-valuenow":_e.value,"aria-valuetext":unref(qe)||void 0,"aria-valuemin":"0","aria-valuemax":Bn.max,tabindex:"0",style:normalizeStyle$1(unref(Ue)),onKeydown:An},[(openBlock(!0),createElementBlock(Fragment,null,renderList(Bn.max,(Pn,Fn)=>(openBlock(),createElementBlock("span",{key:Fn,class:normalizeClass(unref(de).e("item")),onMousemove:Un=>Mn(Pn,Un),onMouseleave:Vn,onClick:Un=>xn(Pn)},[createVNode(unref(ElIcon),{class:normalizeClass([unref(de).e("icon"),{hover:$e.value===Pn},unref(de).is("active",Pn<=_e.value)])},{default:withCtx(()=>[$n(Pn)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock(Fragment,{key:0},[withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(wn)),null,null,512)),[[vShow,Pn<=_e.value]]),withDirectives((openBlock(),createBlock(resolveDynamicComponent(unref(En)),null,null,512)),[[vShow,!(Pn<=_e.value)]])],64)),$n(Pn)?(openBlock(),createBlock(unref(ElIcon),{key:1,style:normalizeStyle$1(unref(Cn)),class:normalizeClass([unref(de).e("icon"),unref(de).e("decimal")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Sn))))]),_:1},8,["style","class"])):createCommentVNode("v-if",!0)]),_:2},1032,["class"])],42,_hoisted_2$f))),128)),Bn.showText||Bn.showScore?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(de).e("text")),style:normalizeStyle$1({color:Bn.textColor})},toDisplayString$1(unref(qe)),7)):createCommentVNode("v-if",!0)],46,_hoisted_1$l)}}});var Rate=_export_sfc$1(_sfc_main$I,[["__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$H=defineComponent({...__default__$u,props:resultProps,setup(t){const r=t,$=useNamespace("result"),V=computed(()=>{const oe=r.icon,ie=oe&&IconMap[oe]?IconMap[oe]:"icon-info",le=IconComponentMap[ie]||IconComponentMap["icon-info"];return{class:ie,component:le}});return(oe,ie)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref($).b())},[createBaseVNode("div",{class:normalizeClass(unref($).e("icon"))},[renderSlot(oe.$slots,"icon",{},()=>[unref(V).component?(openBlock(),createBlock(resolveDynamicComponent(unref(V).component),{key:0,class:normalizeClass(unref(V).class)},null,8,["class"])):createCommentVNode("v-if",!0)])],2),oe.title||oe.$slots.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("title"))},[renderSlot(oe.$slots,"title",{},()=>[createBaseVNode("p",null,toDisplayString$1(oe.title),1)])],2)):createCommentVNode("v-if",!0),oe.subTitle||oe.$slots["sub-title"]?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).e("subtitle"))},[renderSlot(oe.$slots,"sub-title",{},()=>[createBaseVNode("p",null,toDisplayString$1(oe.subTitle),1)])],2)):createCommentVNode("v-if",!0),oe.$slots.extra?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(unref($).e("extra"))},[renderSlot(oe.$slots,"extra")],2)):createCommentVNode("v-if",!0)],2))}});var Result=_export_sfc$1(_sfc_main$H,[["__file","/home/runner/work/element-plus/element-plus/packages/components/result/src/result.vue"]]);const ElResult=withInstall(Result);var safeIsNaN=Number.isNaN||function(r){return typeof r=="number"&&r!==r};function isEqual(t,r){return!!(t===r||safeIsNaN(t)&&safeIsNaN(r))}function areInputsEqual(t,r){if(t.length!==r.length)return!1;for(var $=0;${const r=getCurrentInstance().proxy.$props;return computed(()=>{const $=(V,oe,ie)=>({});return r.perfMode?memoize($):memoizeOne($)})},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:t,atStartEdge:r,layout:$},V)=>{let oe,ie=0;const le=de=>de<0&&r.value||de>0&&t.value;return{hasReachedEdge:le,onWheel:de=>{cAF(oe);const pe=de[LayoutKeys[$.value]];le(ie)&&le(ie+pe)||(ie+=pe,isFirefox()||de.preventDefault(),oe=rAF(()=>{V(ie),ie=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:t,rowIndex:r})=>`${r}:${t}`},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=(t,r)=>tt===LTR||t===RTL||t===HORIZONTAL$1,isRTL=t=>t===RTL;let cachedRTLResult=null;function getRTLOffsetType(t=!1){if(cachedRTLResult===null||t){const r=document.createElement("div"),$=r.style;$.width="50px",$.height="50px",$.overflow="scroll",$.direction="rtl";const V=document.createElement("div"),oe=V.style;return oe.width="100px",oe.height="100px",r.appendChild(V),document.body.appendChild(r),r.scrollLeft>0?cachedRTLResult=RTL_OFFSET_POS_DESC:(r.scrollLeft=1,r.scrollLeft===0?cachedRTLResult=RTL_OFFSET_NAG:cachedRTLResult=RTL_OFFSET_POS_ASC),document.body.removeChild(r),cachedRTLResult}return cachedRTLResult}function renderThumbStyle({move:t,size:r,bar:$},V){const oe={},ie=`translate${$.axis}(${t}px)`;return oe[$.size]=r,oe.transform=ie,oe.msTransform=ie,oe.webkitTransform=ie,V==="horizontal"?oe.height="100%":oe.width="100%",oe}const ScrollBar=defineComponent({name:"ElVirtualScrollBar",props:virtualizedScrollbarProps,emits:["scroll","start-move","stop-move"],setup(t,{emit:r}){const $=computed(()=>t.startGap+t.endGap),V=useNamespace("virtual-scrollbar"),oe=useNamespace("scrollbar"),ie=ref(),le=ref();let ue=null,de=null;const pe=reactive({isDragging:!1,traveled:0}),he=computed(()=>BAR_MAP[t.layout]),_e=computed(()=>t.clientSize-unref($)),$e=computed(()=>({position:"absolute",width:`${HORIZONTAL$1===t.layout?_e.value:t.scrollbarSize}px`,height:`${HORIZONTAL$1===t.layout?t.scrollbarSize:_e.value}px`,[ScrollbarDirKey[t.layout]]:"2px",right:"2px",bottom:"2px",borderRadius:"4px"})),Ie=computed(()=>{const bn=t.ratio,Sn=t.clientSize;if(bn>=100)return Number.POSITIVE_INFINITY;if(bn>=50)return bn*Sn/100;const En=Sn/3;return Math.floor(Math.min(Math.max(bn*Sn,SCROLLBAR_MIN_SIZE),En))}),Ve=computed(()=>{if(!Number.isFinite(Ie.value))return{display:"none"};const bn=`${Ie.value}px`;return renderThumbStyle({bar:he.value,size:bn,move:pe.traveled},t.layout)}),Fe=computed(()=>Math.floor(t.clientSize-Ie.value-unref($))),Ue=()=>{window.addEventListener("mousemove",hn),window.addEventListener("mouseup",Lt);const bn=unref(le);bn&&(de=document.onselectstart,document.onselectstart=()=>!1,bn.addEventListener("touchmove",hn),bn.addEventListener("touchend",Lt))},qe=()=>{window.removeEventListener("mousemove",hn),window.removeEventListener("mouseup",Lt),document.onselectstart=de,de=null;const bn=unref(le);bn&&(bn.removeEventListener("touchmove",hn),bn.removeEventListener("touchend",Lt))},Et=bn=>{bn.stopImmediatePropagation(),!(bn.ctrlKey||[1,2].includes(bn.button))&&(pe.isDragging=!0,pe[he.value.axis]=bn.currentTarget[he.value.offset]-(bn[he.value.client]-bn.currentTarget.getBoundingClientRect()[he.value.direction]),r("start-move"),Ue())},Lt=()=>{pe.isDragging=!1,pe[he.value.axis]=0,r("stop-move"),qe()},hn=bn=>{const{isDragging:Sn}=pe;if(!Sn||!le.value||!ie.value)return;const En=pe[he.value.axis];if(!En)return;cAF(ue);const wn=(ie.value.getBoundingClientRect()[he.value.direction]-bn[he.value.client])*-1,$n=le.value[he.value.offset]-En,Tn=wn-$n;ue=rAF(()=>{pe.traveled=Math.max(t.startGap,Math.min(Tn,Fe.value)),r("scroll",Tn,Fe.value)})},Cn=bn=>{const Sn=Math.abs(bn.target.getBoundingClientRect()[he.value.direction]-bn[he.value.client]),En=le.value[he.value.offset]/2,wn=Sn-En;pe.traveled=Math.max(0,Math.min(wn,Fe.value)),r("scroll",wn,Fe.value)};return watch(()=>t.scrollFrom,bn=>{pe.isDragging||(pe.traveled=Math.ceil(bn*Fe.value))}),onBeforeUnmount(()=>{qe()}),()=>h$2("div",{role:"presentation",ref:ie,class:[V.b(),t.class,(t.alwaysOn||pe.isDragging)&&"always-on"],style:$e.value,onMousedown:withModifiers(Cn,["stop","prevent"]),onTouchstartPrevent:Et},h$2("div",{ref:le,class:oe.e("thumb"),style:Ve.value,onMousedown:Et},[]))}}),createList$1=({name:t,getOffset:r,getItemSize:$,getItemOffset:V,getEstimatedTotalSize:oe,getStartIndexForOffset:ie,getStopIndexForStartIndex:le,initCache:ue,clearCache:de,validateProps:pe})=>defineComponent({name:t??"ElVirtualList",props:virtualizedListProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(he,{emit:_e,expose:$e}){pe(he);const Ie=getCurrentInstance(),Ve=useNamespace("vl"),Fe=ref(ue(he,Ie)),Ue=useCache(),qe=ref(),Et=ref(),Lt=ref(),hn=ref({isScrolling:!1,scrollDir:"forward",scrollOffset:isNumber$4(he.initScrollOffset)?he.initScrollOffset:0,updateRequested:!1,isScrollbarDragging:!1,scrollbarAlwaysOn:he.scrollbarAlwaysOn}),Cn=computed(()=>{const{total:Zn,cache:or}=he,{isScrolling:br,scrollDir:Qn,scrollOffset:Gn}=unref(hn);if(Zn===0)return[0,0,0,0];const Yn=ie(he,Gn,unref(Fe)),er=le(he,Yn,Gn,unref(Fe)),lr=!br||Qn===BACKWARD?Math.max(1,or):1,sr=!br||Qn===FORWARD?Math.max(1,or):1;return[Math.max(0,Yn-lr),Math.max(0,Math.min(Zn-1,er+sr)),Yn,er]}),bn=computed(()=>oe(he,unref(Fe))),Sn=computed(()=>isHorizontal(he.layout)),En=computed(()=>[{position:"relative",[`overflow-${Sn.value?"x":"y"}`]:"scroll",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:he.direction,height:isNumber$4(he.height)?`${he.height}px`:he.height,width:isNumber$4(he.width)?`${he.width}px`:he.width},he.style]),wn=computed(()=>{const Zn=unref(bn),or=unref(Sn);return{height:or?"100%":`${Zn}px`,pointerEvents:unref(hn).isScrolling?"none":void 0,width:or?`${Zn}px`:"100%"}}),$n=computed(()=>Sn.value?he.width:he.height),{onWheel:Tn}=useWheel({atStartEdge:computed(()=>hn.value.scrollOffset<=0),atEndEdge:computed(()=>hn.value.scrollOffset>=bn.value),layout:computed(()=>he.layout)},Zn=>{var or,br;(br=(or=Lt.value).onMouseUp)==null||br.call(or),Dn(Math.min(hn.value.scrollOffset+Zn,bn.value-$n.value))}),xn=()=>{const{total:Zn}=he;if(Zn>0){const[Gn,Yn,er,lr]=unref(Cn);_e(ITEM_RENDER_EVT,Gn,Yn,er,lr)}const{scrollDir:or,scrollOffset:br,updateRequested:Qn}=unref(hn);_e(SCROLL_EVT,or,br,Qn)},An=Zn=>{const{clientHeight:or,scrollHeight:br,scrollTop:Qn}=Zn.currentTarget,Gn=unref(hn);if(Gn.scrollOffset===Qn)return;const Yn=Math.max(0,Math.min(Qn,br-or));hn.value={...Gn,isScrolling:!0,scrollDir:getScrollDir(Gn.scrollOffset,Yn),scrollOffset:Yn,updateRequested:!1},nextTick(Fn)},Mn=Zn=>{const{clientWidth:or,scrollLeft:br,scrollWidth:Qn}=Zn.currentTarget,Gn=unref(hn);if(Gn.scrollOffset===br)return;const{direction:Yn}=he;let er=br;if(Yn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{er=-br;break}case RTL_OFFSET_POS_DESC:{er=Qn-or-br;break}}er=Math.max(0,Math.min(er,Qn-or)),hn.value={...Gn,isScrolling:!0,scrollDir:getScrollDir(Gn.scrollOffset,er),scrollOffset:er,updateRequested:!1},nextTick(Fn)},Vn=Zn=>{unref(Sn)?Mn(Zn):An(Zn),xn()},Bn=(Zn,or)=>{const br=(bn.value-$n.value)/or*Zn;Dn(Math.min(bn.value-$n.value,br))},Dn=Zn=>{Zn=Math.max(Zn,0),Zn!==unref(hn).scrollOffset&&(hn.value={...unref(hn),scrollOffset:Zn,scrollDir:getScrollDir(unref(hn).scrollOffset,Zn),updateRequested:!0},nextTick(Fn))},Ln=(Zn,or=AUTO_ALIGNMENT)=>{const{scrollOffset:br}=unref(hn);Zn=Math.max(0,Math.min(Zn,he.total-1)),Dn(r(he,Zn,or,br,unref(Fe)))},Pn=Zn=>{const{direction:or,itemSize:br,layout:Qn}=he,Gn=Ue.value(de&&br,de&&Qn,de&&or);let Yn;if(hasOwn$4(Gn,String(Zn)))Yn=Gn[Zn];else{const er=V(he,Zn,unref(Fe)),lr=$(he,Zn,unref(Fe)),sr=unref(Sn),zn=or===RTL,Kn=sr?er:0;Gn[Zn]=Yn={position:"absolute",left:zn?void 0:`${Kn}px`,right:zn?`${Kn}px`:void 0,top:sr?0:`${er}px`,height:sr?"100%":`${lr}px`,width:sr?`${lr}px`:"100%"}}return Yn},Fn=()=>{hn.value.isScrolling=!1,nextTick(()=>{Ue.value(-1,null,null)})},Un=()=>{const Zn=qe.value;Zn&&(Zn.scrollTop=0)};onMounted(()=>{if(!isClient$1)return;const{initScrollOffset:Zn}=he,or=unref(qe);isNumber$4(Zn)&&or&&(unref(Sn)?or.scrollLeft=Zn:or.scrollTop=Zn),xn()}),onUpdated(()=>{const{direction:Zn,layout:or}=he,{scrollOffset:br,updateRequested:Qn}=unref(hn),Gn=unref(qe);if(Qn&&Gn)if(or===HORIZONTAL$1)if(Zn===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Gn.scrollLeft=-br;break}case RTL_OFFSET_POS_ASC:{Gn.scrollLeft=br;break}default:{const{clientWidth:Yn,scrollWidth:er}=Gn;Gn.scrollLeft=er-Yn-br;break}}else Gn.scrollLeft=br;else Gn.scrollTop=br});const Wn={ns:Ve,clientSize:$n,estimatedTotalSize:bn,windowStyle:En,windowRef:qe,innerRef:Et,innerStyle:wn,itemsToRender:Cn,scrollbarRef:Lt,states:hn,getItemStyle:Pn,onScroll:Vn,onScrollbarScroll:Bn,onWheel:Tn,scrollTo:Dn,scrollToItem:Ln,resetScrollTop:Un};return $e({windowRef:qe,innerRef:Et,getItemStyleCache:Ue,scrollTo:Dn,scrollToItem:Ln,resetScrollTop:Un,states:hn}),Wn},render(he){var _e;const{$slots:$e,className:Ie,clientSize:Ve,containerElement:Fe,data:Ue,getItemStyle:qe,innerElement:Et,itemsToRender:Lt,innerStyle:hn,layout:Cn,total:bn,onScroll:Sn,onScrollbarScroll:En,onWheel:wn,states:$n,useIsScrolling:Tn,windowStyle:xn,ns:An}=he,[Mn,Vn]=Lt,Bn=resolveDynamicComponent(Fe),Dn=resolveDynamicComponent(Et),Ln=[];if(bn>0)for(let Wn=Mn;Wn<=Vn;Wn++)Ln.push((_e=$e.default)==null?void 0:_e.call($e,{data:Ue,key:Wn,index:Wn,isScrolling:Tn?$n.isScrolling:void 0,style:qe(Wn)}));const Pn=[h$2(Dn,{style:hn,ref:"innerRef"},isString$6(Dn)?Ln:{default:()=>Ln})],Fn=h$2(ScrollBar,{ref:"scrollbarRef",clientSize:Ve,layout:Cn,onScroll:En,ratio:Ve*100/this.estimatedTotalSize,scrollFrom:$n.scrollOffset/(this.estimatedTotalSize-Ve),total:bn}),Un=h$2(Bn,{class:[An.e("window"),Ie],style:xn,onScroll:Sn,onWheel:wn,ref:"windowRef",key:0},isString$6(Bn)?[Pn]:{default:()=>[Pn]});return h$2("div",{key:0,class:[An.e("wrapper"),$n.scrollbarAlwaysOn?"always-on":""]},[Un,Fn])}}),FixedSizeList=createList$1({name:"ElFixedSizeList",getItemOffset:({itemSize:t},r)=>r*t,getItemSize:({itemSize:t})=>t,getEstimatedTotalSize:({total:t,itemSize:r})=>r*t,getOffset:({height:t,total:r,itemSize:$,layout:V,width:oe},ie,le,ue)=>{const de=isHorizontal(V)?oe:t,pe=Math.max(0,r*$-de),he=Math.min(pe,ie*$),_e=Math.max(0,(ie+1)*$-de);switch(le===SMART_ALIGNMENT&&(ue>=_e-de&&ue<=he+de?le=AUTO_ALIGNMENT:le=CENTERED_ALIGNMENT),le){case START_ALIGNMENT:return he;case END_ALIGNMENT:return _e;case CENTERED_ALIGNMENT:{const $e=Math.round(_e+(he-_e)/2);return $epe+Math.floor(de/2)?pe:$e}case AUTO_ALIGNMENT:default:return ue>=_e&&ue<=he?ue:ue<_e?_e:he}},getStartIndexForOffset:({total:t,itemSize:r},$)=>Math.max(0,Math.min(t-1,Math.floor($/r))),getStopIndexForStartIndex:({height:t,total:r,itemSize:$,layout:V,width:oe},ie,le)=>{const ue=ie*$,de=isHorizontal(V)?oe:t,pe=Math.ceil((de+le-ue)/$);return Math.max(0,Math.min(r-1,ie+pe-1))},initCache(){},clearCache:!0,validateProps(){}}),getItemFromCache$1=(t,r,$)=>{const{itemSize:V}=t,{items:oe,lastVisitedIndex:ie}=$;if(r>ie){let le=0;if(ie>=0){const ue=oe[ie];le=ue.offset+ue.size}for(let ue=ie+1;ue<=r;ue++){const de=V(ue);oe[ue]={offset:le,size:de},le+=de}$.lastVisitedIndex=r}return oe[r]},findItem$1=(t,r,$)=>{const{items:V,lastVisitedIndex:oe}=r;return(oe>0?V[oe].offset:0)>=$?bs$1(t,r,0,oe,$):es$1(t,r,Math.max(0,oe),$)},bs$1=(t,r,$,V,oe)=>{for(;$<=V;){const ie=$+Math.floor((V-$)/2),le=getItemFromCache$1(t,ie,r).offset;if(le===oe)return ie;leoe&&(V=ie-1)}return Math.max(0,$-1)},es$1=(t,r,$,V)=>{const{total:oe}=t;let ie=1;for(;${let oe=0;if(V>=t&&(V=t-1),V>=0){const ue=r[V];oe=ue.offset+ue.size}const le=(t-V-1)*$;return oe+le},DynamicSizeList=createList$1({name:"ElDynamicSizeList",getItemOffset:(t,r,$)=>getItemFromCache$1(t,r,$).offset,getItemSize:(t,r,{items:$})=>$[r].size,getEstimatedTotalSize,getOffset:(t,r,$,V,oe)=>{const{height:ie,layout:le,width:ue}=t,de=isHorizontal(le)?ue:ie,pe=getItemFromCache$1(t,r,oe),he=getEstimatedTotalSize(t,oe),_e=Math.max(0,Math.min(he-de,pe.offset)),$e=Math.max(0,pe.offset-de+pe.size);switch($===SMART_ALIGNMENT&&(V>=$e-de&&V<=_e+de?$=AUTO_ALIGNMENT:$=CENTERED_ALIGNMENT),$){case START_ALIGNMENT:return _e;case END_ALIGNMENT:return $e;case CENTERED_ALIGNMENT:return Math.round($e+(_e-$e)/2);case AUTO_ALIGNMENT:default:return V>=$e&&V<=_e?V:V<$e?$e:_e}},getStartIndexForOffset:(t,r,$)=>findItem$1(t,$,r),getStopIndexForStartIndex:(t,r,$,V)=>{const{height:oe,total:ie,layout:le,width:ue}=t,de=isHorizontal(le)?ue:oe,pe=getItemFromCache$1(t,r,V),he=$+de;let _e=pe.offset+pe.size,$e=r;for(;$e{var ie,le;$.lastVisitedIndex=Math.min($.lastVisitedIndex,V-1),(ie=r.exposed)==null||ie.getItemStyleCache(-1),oe&&((le=r.proxy)==null||le.$forceUpdate())},$},clearCache:!1,validateProps:({itemSize:t})=>{}}),useGridWheel=({atXEndEdge:t,atXStartEdge:r,atYEndEdge:$,atYStartEdge:V},oe)=>{let ie=null,le=0,ue=0;const de=(he,_e)=>{const $e=he<=0&&r.value||he>=0&&t.value,Ie=_e<=0&&V.value||_e>=0&&$.value;return $e&&Ie};return{hasReachedEdge:de,onWheel:he=>{cAF(ie);let _e=he.deltaX,$e=he.deltaY;Math.abs(_e)>Math.abs($e)?$e=0:_e=0,he.shiftKey&&$e!==0&&(_e=$e,$e=0),!(de(le,ue)&&de(le+_e,ue+$e))&&(le+=_e,ue+=$e,he.preventDefault(),ie=rAF(()=>{oe(le,ue),le=0,ue=0}))}}},createGrid=({name:t,clearCache:r,getColumnPosition:$,getColumnStartIndexForOffset:V,getColumnStopIndexForStartIndex:oe,getEstimatedTotalHeight:ie,getEstimatedTotalWidth:le,getColumnOffset:ue,getRowOffset:de,getRowPosition:pe,getRowStartIndexForOffset:he,getRowStopIndexForStartIndex:_e,initCache:$e,injectToInstance:Ie,validateProps:Ve})=>defineComponent({name:t??"ElVirtualList",props:virtualizedGridProps,emits:[ITEM_RENDER_EVT,SCROLL_EVT],setup(Fe,{emit:Ue,expose:qe,slots:Et}){const Lt=useNamespace("vl");Ve(Fe);const hn=getCurrentInstance(),Cn=ref($e(Fe,hn));Ie==null||Ie(hn,Cn);const bn=ref(),Sn=ref(),En=ref(),wn=ref(null),$n=ref({isScrolling:!1,scrollLeft:isNumber$4(Fe.initScrollLeft)?Fe.initScrollLeft:0,scrollTop:isNumber$4(Fe.initScrollTop)?Fe.initScrollTop:0,updateRequested:!1,xAxisScrollDir:FORWARD,yAxisScrollDir:FORWARD}),Tn=useCache(),xn=computed(()=>Number.parseInt(`${Fe.height}`,10)),An=computed(()=>Number.parseInt(`${Fe.width}`,10)),Mn=computed(()=>{const{totalColumn:ur,totalRow:wr,columnCache:Cr}=Fe,{isScrolling:mr,xAxisScrollDir:Er,scrollLeft:Tr}=unref($n);if(ur===0||wr===0)return[0,0,0,0];const nr=V(Fe,Tr,unref(Cn)),pr=oe(Fe,nr,Tr,unref(Cn)),gr=!mr||Er===BACKWARD?Math.max(1,Cr):1,$r=!mr||Er===FORWARD?Math.max(1,Cr):1;return[Math.max(0,nr-gr),Math.max(0,Math.min(ur-1,pr+$r)),nr,pr]}),Vn=computed(()=>{const{totalColumn:ur,totalRow:wr,rowCache:Cr}=Fe,{isScrolling:mr,yAxisScrollDir:Er,scrollTop:Tr}=unref($n);if(ur===0||wr===0)return[0,0,0,0];const nr=he(Fe,Tr,unref(Cn)),pr=_e(Fe,nr,Tr,unref(Cn)),gr=!mr||Er===BACKWARD?Math.max(1,Cr):1,$r=!mr||Er===FORWARD?Math.max(1,Cr):1;return[Math.max(0,nr-gr),Math.max(0,Math.min(wr-1,pr+$r)),nr,pr]}),Bn=computed(()=>ie(Fe,unref(Cn))),Dn=computed(()=>le(Fe,unref(Cn))),Ln=computed(()=>{var ur;return[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:Fe.direction,height:isNumber$4(Fe.height)?`${Fe.height}px`:Fe.height,width:isNumber$4(Fe.width)?`${Fe.width}px`:Fe.width},(ur=Fe.style)!=null?ur:{}]}),Pn=computed(()=>{const ur=`${unref(Dn)}px`;return{height:`${unref(Bn)}px`,pointerEvents:unref($n).isScrolling?"none":void 0,width:ur}}),Fn=()=>{const{totalColumn:ur,totalRow:wr}=Fe;if(ur>0&&wr>0){const[pr,gr,$r,Rr]=unref(Mn),[Lr,Vr,Nr,dr]=unref(Vn);Ue(ITEM_RENDER_EVT,{columnCacheStart:pr,columnCacheEnd:gr,rowCacheStart:Lr,rowCacheEnd:Vr,columnVisibleStart:$r,columnVisibleEnd:Rr,rowVisibleStart:Nr,rowVisibleEnd:dr})}const{scrollLeft:Cr,scrollTop:mr,updateRequested:Er,xAxisScrollDir:Tr,yAxisScrollDir:nr}=unref($n);Ue(SCROLL_EVT,{xAxisScrollDir:Tr,scrollLeft:Cr,yAxisScrollDir:nr,scrollTop:mr,updateRequested:Er})},Un=ur=>{const{clientHeight:wr,clientWidth:Cr,scrollHeight:mr,scrollLeft:Er,scrollTop:Tr,scrollWidth:nr}=ur.currentTarget,pr=unref($n);if(pr.scrollTop===Tr&&pr.scrollLeft===Er)return;let gr=Er;if(isRTL(Fe.direction))switch(getRTLOffsetType()){case RTL_OFFSET_NAG:gr=-Er;break;case RTL_OFFSET_POS_DESC:gr=nr-Cr-Er;break}$n.value={...pr,isScrolling:!0,scrollLeft:gr,scrollTop:Math.max(0,Math.min(Tr,mr-wr)),updateRequested:!0,xAxisScrollDir:getScrollDir(pr.scrollLeft,gr),yAxisScrollDir:getScrollDir(pr.scrollTop,Tr)},nextTick(()=>Yn()),er(),Fn()},Wn=(ur,wr)=>{const Cr=unref(xn),mr=(Bn.value-Cr)/wr*ur;br({scrollTop:Math.min(Bn.value-Cr,mr)})},Zn=(ur,wr)=>{const Cr=unref(An),mr=(Dn.value-Cr)/wr*ur;br({scrollLeft:Math.min(Dn.value-Cr,mr)})},{onWheel:or}=useGridWheel({atXStartEdge:computed(()=>$n.value.scrollLeft<=0),atXEndEdge:computed(()=>$n.value.scrollLeft>=Dn.value-unref(An)),atYStartEdge:computed(()=>$n.value.scrollTop<=0),atYEndEdge:computed(()=>$n.value.scrollTop>=Bn.value-unref(xn))},(ur,wr)=>{var Cr,mr,Er,Tr;(mr=(Cr=Sn.value)==null?void 0:Cr.onMouseUp)==null||mr.call(Cr),(Tr=(Er=En.value)==null?void 0:Er.onMouseUp)==null||Tr.call(Er);const nr=unref(An),pr=unref(xn);br({scrollLeft:Math.min($n.value.scrollLeft+ur,Dn.value-nr),scrollTop:Math.min($n.value.scrollTop+wr,Bn.value-pr)})}),br=({scrollLeft:ur=$n.value.scrollLeft,scrollTop:wr=$n.value.scrollTop})=>{ur=Math.max(ur,0),wr=Math.max(wr,0);const Cr=unref($n);wr===Cr.scrollTop&&ur===Cr.scrollLeft||($n.value={...Cr,xAxisScrollDir:getScrollDir(Cr.scrollLeft,ur),yAxisScrollDir:getScrollDir(Cr.scrollTop,wr),scrollLeft:ur,scrollTop:wr,updateRequested:!0},nextTick(()=>Yn()),er(),Fn())},Qn=(ur=0,wr=0,Cr=AUTO_ALIGNMENT)=>{const mr=unref($n);wr=Math.max(0,Math.min(wr,Fe.totalColumn-1)),ur=Math.max(0,Math.min(ur,Fe.totalRow-1));const Er=getScrollBarWidth(Lt.namespace.value),Tr=unref(Cn),nr=ie(Fe,Tr),pr=le(Fe,Tr);br({scrollLeft:ue(Fe,wr,Cr,mr.scrollLeft,Tr,pr>Fe.width?Er:0),scrollTop:de(Fe,ur,Cr,mr.scrollTop,Tr,nr>Fe.height?Er:0)})},Gn=(ur,wr)=>{const{columnWidth:Cr,direction:mr,rowHeight:Er}=Fe,Tr=Tn.value(r&&Cr,r&&Er,r&&mr),nr=`${ur},${wr}`;if(hasOwn$4(Tr,nr))return Tr[nr];{const[,pr]=$(Fe,wr,unref(Cn)),gr=unref(Cn),$r=isRTL(mr),[Rr,Lr]=pe(Fe,ur,gr),[Vr]=$(Fe,wr,gr);return Tr[nr]={position:"absolute",left:$r?void 0:`${pr}px`,right:$r?`${pr}px`:void 0,top:`${Lr}px`,height:`${Rr}px`,width:`${Vr}px`},Tr[nr]}},Yn=()=>{$n.value.isScrolling=!1,nextTick(()=>{Tn.value(-1,null,null)})};onMounted(()=>{if(!isClient$1)return;const{initScrollLeft:ur,initScrollTop:wr}=Fe,Cr=unref(bn);Cr&&(isNumber$4(ur)&&(Cr.scrollLeft=ur),isNumber$4(wr)&&(Cr.scrollTop=wr)),Fn()});const er=()=>{const{direction:ur}=Fe,{scrollLeft:wr,scrollTop:Cr,updateRequested:mr}=unref($n),Er=unref(bn);if(mr&&Er){if(ur===RTL)switch(getRTLOffsetType()){case RTL_OFFSET_NAG:{Er.scrollLeft=-wr;break}case RTL_OFFSET_POS_ASC:{Er.scrollLeft=wr;break}default:{const{clientWidth:Tr,scrollWidth:nr}=Er;Er.scrollLeft=nr-Tr-wr;break}}else Er.scrollLeft=Math.max(0,wr);Er.scrollTop=Math.max(0,Cr)}},{resetAfterColumnIndex:lr,resetAfterRowIndex:sr,resetAfter:zn}=hn.proxy;qe({windowRef:bn,innerRef:wn,getItemStyleCache:Tn,scrollTo:br,scrollToItem:Qn,states:$n,resetAfterColumnIndex:lr,resetAfterRowIndex:sr,resetAfter:zn});const Kn=()=>{const{scrollbarAlwaysOn:ur,scrollbarStartGap:wr,scrollbarEndGap:Cr,totalColumn:mr,totalRow:Er}=Fe,Tr=unref(An),nr=unref(xn),pr=unref(Dn),gr=unref(Bn),{scrollLeft:$r,scrollTop:Rr}=unref($n),Lr=h$2(ScrollBar,{ref:Sn,alwaysOn:ur,startGap:wr,endGap:Cr,class:Lt.e("horizontal"),clientSize:Tr,layout:"horizontal",onScroll:Zn,ratio:Tr*100/pr,scrollFrom:$r/(pr-Tr),total:Er,visible:!0}),Vr=h$2(ScrollBar,{ref:En,alwaysOn:ur,startGap:wr,endGap:Cr,class:Lt.e("vertical"),clientSize:nr,layout:"vertical",onScroll:Wn,ratio:nr*100/gr,scrollFrom:Rr/(gr-nr),total:mr,visible:!0});return{horizontalScrollbar:Lr,verticalScrollbar:Vr}},Jn=()=>{var ur;const[wr,Cr]=unref(Mn),[mr,Er]=unref(Vn),{data:Tr,totalColumn:nr,totalRow:pr,useIsScrolling:gr,itemKey:$r}=Fe,Rr=[];if(pr>0&&nr>0)for(let Lr=mr;Lr<=Er;Lr++)for(let Vr=wr;Vr<=Cr;Vr++)Rr.push((ur=Et.default)==null?void 0:ur.call(Et,{columnIndex:Vr,data:Tr,key:$r({columnIndex:Vr,data:Tr,rowIndex:Lr}),isScrolling:gr?unref($n).isScrolling:void 0,style:Gn(Lr,Vr),rowIndex:Lr}));return Rr},cr=()=>{const ur=resolveDynamicComponent(Fe.innerElement),wr=Jn();return[h$2(ur,{style:unref(Pn),ref:wn},isString$6(ur)?wr:{default:()=>wr})]};return()=>{const ur=resolveDynamicComponent(Fe.containerElement),{horizontalScrollbar:wr,verticalScrollbar:Cr}=Kn(),mr=cr();return h$2("div",{key:0,class:Lt.e("wrapper"),role:Fe.role},[h$2(ur,{class:Fe.className,style:unref(Ln),onScroll:Un,onWheel:or,ref:bn},isString$6(ur)?mr:{default:()=>mr}),wr,Cr])}}}),FixedSizeGrid=createGrid({name:"ElFixedSizeGrid",getColumnPosition:({columnWidth:t},r)=>[t,r*t],getRowPosition:({rowHeight:t},r)=>[t,r*t],getEstimatedTotalHeight:({totalRow:t,rowHeight:r})=>r*t,getEstimatedTotalWidth:({totalColumn:t,columnWidth:r})=>r*t,getColumnOffset:({totalColumn:t,columnWidth:r,width:$},V,oe,ie,le,ue)=>{$=Number($);const de=Math.max(0,t*r-$),pe=Math.min(de,V*r),he=Math.max(0,V*r-$+ue+r);switch(oe==="smart"&&(ie>=he-$&&ie<=pe+$?oe=AUTO_ALIGNMENT:oe=CENTERED_ALIGNMENT),oe){case START_ALIGNMENT:return pe;case END_ALIGNMENT:return he;case CENTERED_ALIGNMENT:{const _e=Math.round(he+(pe-he)/2);return _ede+Math.floor($/2)?de:_e}case AUTO_ALIGNMENT:default:return ie>=he&&ie<=pe?ie:he>pe||ie{r=Number(r);const de=Math.max(0,$*t-r),pe=Math.min(de,V*t),he=Math.max(0,V*t-r+ue+t);switch(oe===SMART_ALIGNMENT&&(ie>=he-r&&ie<=pe+r?oe=AUTO_ALIGNMENT:oe=CENTERED_ALIGNMENT),oe){case START_ALIGNMENT:return pe;case END_ALIGNMENT:return he;case CENTERED_ALIGNMENT:{const _e=Math.round(he+(pe-he)/2);return _ede+Math.floor(r/2)?de:_e}case AUTO_ALIGNMENT:default:return ie>=he&&ie<=pe?ie:he>pe||ieMath.max(0,Math.min(r-1,Math.floor($/t))),getColumnStopIndexForStartIndex:({columnWidth:t,totalColumn:r,width:$},V,oe)=>{const ie=V*t,le=Math.ceil(($+oe-ie)/t);return Math.max(0,Math.min(r-1,V+le-1))},getRowStartIndexForOffset:({rowHeight:t,totalRow:r},$)=>Math.max(0,Math.min(r-1,Math.floor($/t))),getRowStopIndexForStartIndex:({rowHeight:t,totalRow:r,height:$},V,oe)=>{const ie=V*t,le=Math.ceil(($+oe-ie)/t);return Math.max(0,Math.min(r-1,V+le-1))},initCache:()=>{},clearCache:!0,validateProps:({columnWidth:t,rowHeight:r})=>{}}),{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=(t,r,$,V)=>{const[oe,ie,le]=[$[V],t[ACCESS_SIZER_KEY_MAP[V]],$[ACCESS_LAST_VISITED_KEY_MAP[V]]];if(r>le){let ue=0;if(le>=0){const de=oe[le];ue=de.offset+de.size}for(let de=le+1;de<=r;de++){const pe=ie(de);oe[de]={offset:ue,size:pe},ue+=pe}$[ACCESS_LAST_VISITED_KEY_MAP[V]]=r}return oe[r]},bs=(t,r,$,V,oe,ie)=>{for(;$<=V;){const le=$+floor((V-$)/2),ue=getItemFromCache(t,le,r,ie).offset;if(ue===oe)return le;ue{const ie=oe==="column"?t.totalColumn:t.totalRow;let le=1;for(;${const[oe,ie]=[r[V],r[ACCESS_LAST_VISITED_KEY_MAP[V]]];return(ie>0?oe[ie].offset:0)>=$?bs(t,r,0,ie,$,V):es(t,r,max$2(0,ie),$,V)},getEstimatedTotalHeight=({totalRow:t},{estimatedRowHeight:r,lastVisitedRowIndex:$,row:V})=>{let oe=0;if($>=t&&($=t-1),$>=0){const ue=V[$];oe=ue.offset+ue.size}const le=(t-$-1)*r;return oe+le},getEstimatedTotalWidth=({totalColumn:t},{column:r,estimatedColumnWidth:$,lastVisitedColumnIndex:V})=>{let oe=0;if(V>t&&(V=t-1),V>=0){const ue=r[V];oe=ue.offset+ue.size}const le=(t-V-1)*$;return oe+le},ACCESS_ESTIMATED_SIZE_KEY_MAP={column:getEstimatedTotalWidth,row:getEstimatedTotalHeight},getOffset$1=(t,r,$,V,oe,ie,le)=>{const[ue,de]=[ie==="row"?t.height:t.width,ACCESS_ESTIMATED_SIZE_KEY_MAP[ie]],pe=getItemFromCache(t,r,oe,ie),he=de(t,oe),_e=max$2(0,min$2(he-ue,pe.offset)),$e=max$2(0,pe.offset-ue+le+pe.size);switch($===SMART_ALIGNMENT&&(V>=$e-ue&&V<=_e+ue?$=AUTO_ALIGNMENT:$=CENTERED_ALIGNMENT),$){case START_ALIGNMENT:return _e;case END_ALIGNMENT:return $e;case CENTERED_ALIGNMENT:return Math.round($e+(_e-$e)/2);case AUTO_ALIGNMENT:default:return V>=$e&&V<=_e?V:$e>_e||V<$e?$e:_e}},DynamicSizeGrid=createGrid({name:"ElDynamicSizeGrid",getColumnPosition:(t,r,$)=>{const V=getItemFromCache(t,r,$,"column");return[V.size,V.offset]},getRowPosition:(t,r,$)=>{const V=getItemFromCache(t,r,$,"row");return[V.size,V.offset]},getColumnOffset:(t,r,$,V,oe,ie)=>getOffset$1(t,r,$,V,oe,"column",ie),getRowOffset:(t,r,$,V,oe,ie)=>getOffset$1(t,r,$,V,oe,"row",ie),getColumnStartIndexForOffset:(t,r,$)=>findItem(t,$,r,"column"),getColumnStopIndexForStartIndex:(t,r,$,V)=>{const oe=getItemFromCache(t,r,V,"column"),ie=$+t.width;let le=oe.offset+oe.size,ue=r;for(;uefindItem(t,$,r,"row"),getRowStopIndexForStartIndex:(t,r,$,V)=>{const{totalRow:oe,height:ie}=t,le=getItemFromCache(t,r,V,"row"),ue=$+ie;let de=le.size+le.offset,pe=r;for(;pe{const $=({columnIndex:ie,rowIndex:le},ue)=>{var de,pe;ue=isUndefined$1(ue)?!0:ue,isNumber$4(ie)&&(r.value.lastVisitedColumnIndex=Math.min(r.value.lastVisitedColumnIndex,ie-1)),isNumber$4(le)&&(r.value.lastVisitedRowIndex=Math.min(r.value.lastVisitedRowIndex,le-1)),(de=t.exposed)==null||de.getItemStyleCache.value(-1,null,null),ue&&((pe=t.proxy)==null||pe.$forceUpdate())},V=(ie,le)=>{$({columnIndex:ie},le)},oe=(ie,le)=>{$({rowIndex:ie},le)};Object.assign(t.proxy,{resetAfterColumnIndex:V,resetAfterRowIndex:oe,resetAfter:$})},initCache:({estimatedColumnWidth:t=DEFAULT_DYNAMIC_LIST_ITEM_SIZE,estimatedRowHeight:r=DEFAULT_DYNAMIC_LIST_ITEM_SIZE})=>({column:{},estimatedColumnWidth:t,estimatedRowHeight:r,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:t,rowHeight:r})=>{}}),_sfc_main$G=defineComponent({props:{item:{type:Object,required:!0},style:Object,height:Number},setup(){return{ns:useNamespace("select")}}});function _sfc_render$8(t,r,$,V,oe,ie){return t.item.isTitle?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.be("group","title")),style:normalizeStyle$1([t.style,{lineHeight:`${t.height}px`}])},toDisplayString$1(t.item.label),7)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.be("group","split")),style:normalizeStyle$1(t.style)},[createBaseVNode("span",{class:normalizeClass(t.ns.be("group","split-dash")),style:normalizeStyle$1({top:`${t.height/2}px`})},null,6)],6))}var GroupItem=_export_sfc$1(_sfc_main$G,[["render",_sfc_render$8],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/group-item.vue"]]);function useOption(t,{emit:r}){return{hoverItem:()=>{t.disabled||r("hover",t.index)},selectOptionClick:()=>{t.disabled||r("select",t.item,t.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$F=defineComponent({props:OptionProps,emits:["select","hover"],setup(t,{emit:r}){const $=useNamespace("select"),{hoverItem:V,selectOptionClick:oe}=useOption(t,{emit:r});return{ns:$,hoverItem:V,selectOptionClick:oe}}}),_hoisted_1$k=["aria-selected"];function _sfc_render$7(t,r,$,V,oe,ie){return openBlock(),createElementBlock("li",{"aria-selected":t.selected,style:normalizeStyle$1(t.style),class:normalizeClass([t.ns.be("dropdown","option-item"),t.ns.is("selected",t.selected),t.ns.is("disabled",t.disabled),t.ns.is("created",t.created),{hover:t.hovering}]),onMouseenter:r[0]||(r[0]=(...le)=>t.hoverItem&&t.hoverItem(...le)),onClick:r[1]||(r[1]=withModifiers((...le)=>t.selectOptionClick&&t.selectOptionClick(...le),["stop"]))},[renderSlot(t.$slots,"default",{item:t.item,index:t.index,disabled:t.disabled},()=>[createBaseVNode("span",null,toDisplayString$1(t.item.label),1)])],46,_hoisted_1$k)}var OptionItem=_export_sfc$1(_sfc_main$F,[["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(t,{slots:r,expose:$}){const V=inject(selectV2InjectionKey),oe=useNamespace("select"),ie=ref([]),le=ref(),ue=computed(()=>t.data.length);watch(()=>ue.value,()=>{var En,wn;(wn=(En=V.popper.value).updatePopper)==null||wn.call(En)});const de=computed(()=>isUndefined$1(V.props.estimatedOptionHeight)),pe=computed(()=>de.value?{itemSize:V.props.itemHeight}:{estimatedSize:V.props.estimatedOptionHeight,itemSize:En=>ie.value[En]}),he=(En=[],wn)=>{const{props:{valueKey:$n}}=V;return isObject$a(wn)?En&&En.some(Tn=>get$1(Tn,$n)===get$1(wn,$n)):En.includes(wn)},_e=(En,wn)=>{if(isObject$a(wn)){const{valueKey:$n}=V.props;return get$1(En,$n)===get$1(wn,$n)}else return En===wn},$e=(En,wn)=>{const{valueKey:$n}=V.props;return V.props.multiple?he(En,get$1(wn,$n)):_e(En,get$1(wn,$n))},Ie=(En,wn)=>{const{disabled:$n,multiple:Tn,multipleLimit:xn}=V.props;return $n||!wn&&(Tn?xn>0&&En.length>=xn:!1)},Ve=En=>t.hoveringIndex===En;$({listRef:le,isSized:de,isItemDisabled:Ie,isItemHovering:Ve,isItemSelected:$e,scrollToItem:En=>{const wn=le.value;wn&&wn.scrollToItem(En)},resetScrollTop:()=>{const En=le.value;En&&En.resetScrollTop()}});const qe=En=>{const{index:wn,data:$n,style:Tn}=En,xn=unref(de),{itemSize:An,estimatedSize:Mn}=unref(pe),{modelValue:Vn}=V.props,{onSelect:Bn,onHover:Dn}=V,Ln=$n[wn];if(Ln.type==="Group")return createVNode(GroupItem,{item:Ln,style:Tn,height:xn?An:Mn},null);const Pn=$e(Vn,Ln),Fn=Ie(Vn,Pn),Un=Ve(wn);return createVNode(OptionItem,mergeProps(En,{selected:Pn,disabled:Ln.disabled||Fn,created:!!Ln.created,hovering:Un,item:Ln,onSelect:Bn,onHover:Dn}),{default:Wn=>{var Zn;return((Zn=r.default)==null?void 0:Zn.call(r,Wn))||createVNode("span",null,[Ln.label])}})},{onKeyboardNavigate:Et,onKeyboardSelect:Lt}=V,hn=()=>{Et("forward")},Cn=()=>{Et("backward")},bn=()=>{V.expanded=!1},Sn=En=>{const{code:wn}=En,{tab:$n,esc:Tn,down:xn,up:An,enter:Mn}=EVENT_CODE;switch(wn!==$n&&(En.preventDefault(),En.stopPropagation()),wn){case $n:case Tn:{bn();break}case xn:{hn();break}case An:{Cn();break}case Mn:{Lt();break}}};return()=>{var En;const{data:wn,width:$n}=t,{height:Tn,multiple:xn,scrollbarAlwaysOn:An}=V.props;if(wn.length===0)return createVNode("div",{class:oe.b("dropdown"),style:{width:`${$n}px`}},[(En=r.empty)==null?void 0:En.call(r)]);const Mn=unref(de)?FixedSizeList:DynamicSizeList;return createVNode("div",{class:[oe.b("dropdown"),oe.is("multiple",xn)]},[createVNode(Mn,mergeProps({ref:le},unref(pe),{className:oe.be("dropdown","list"),scrollbarAlwaysOn:An,data:wn,height:Tn,width:$n,total:wn.length,onKeydown:Sn}),{default:Vn=>createVNode(qe,Vn,null)})])}}});function useAllowCreate(t,r){const $=ref(0),V=ref(null),oe=computed(()=>t.allowCreate&&t.filterable);function ie(he){const _e=$e=>$e.value===he;return t.options&&t.options.some(_e)||r.createdOptions.some(_e)}function le(he){oe.value&&(t.multiple&&he.created?$.value++:V.value=he)}function ue(he){if(oe.value)if(he&&he.length>0&&!ie(he)){const _e={value:he,label:he,created:!0,disabled:!1};r.createdOptions.length>=$.value?r.createdOptions[$.value]=_e:r.createdOptions.push(_e)}else if(t.multiple)r.createdOptions.length=$.value;else{const _e=V.value;r.createdOptions.length=0,_e&&_e.created&&r.createdOptions.push(_e)}}function de(he){if(!oe.value||!he||!he.created||he.created&&t.reserveKeyword&&r.inputValue===he.label)return;const _e=r.createdOptions.findIndex($e=>$e.value===he.value);~_e&&(r.createdOptions.splice(_e,1),$.value--)}function pe(){oe.value&&(r.createdOptions.length=0,$.value=0)}return{createNewOption:ue,removeNewOption:de,selectNewOption:le,clearAllNewOption:pe}}const flattenOptions=t=>{const r=[];return t.forEach($=>{isArray$c($.options)?(r.push({label:$.label,isTitle:!0,type:"Group"}),$.options.forEach(V=>{r.push(V)}),r.push({type:"Group"})):r.push($)}),r};function useInput(t){const r=ref(!1);return{handleCompositionStart:()=>{r.value=!0},handleCompositionUpdate:ie=>{const le=ie.target.value,ue=le[le.length-1]||"";r.value=!isKorean(ue)},handleCompositionEnd:ie=>{r.value&&(r.value=!1,isFunction$5(t)&&t(ie))}}}const DEFAULT_INPUT_PLACEHOLDER="",MINIMUM_INPUT_WIDTH=11,TAG_BASE_WIDTH={larget:51,default:42,small:33},useSelect$1=(t,r)=>{const{t:$}=useLocale(),V=useNamespace("select-v2"),oe=useNamespace("input"),{form:ie,formItem:le}=useFormItem(),ue=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}),de=ref(-1),pe=ref(-1),he=ref(null),_e=ref(null),$e=ref(null),Ie=ref(null),Ve=ref(null),Fe=ref(null),Ue=ref(null),qe=ref(!1),Et=computed(()=>t.disabled||(ie==null?void 0:ie.disabled)),Lt=computed(()=>{const ir=xn.value.length*34;return ir>t.height?t.height:ir}),hn=computed(()=>!isNil(t.modelValue)),Cn=computed(()=>{const ir=t.multiple?Array.isArray(t.modelValue)&&t.modelValue.length>0:hn.value;return t.clearable&&!Et.value&&ue.comboBoxHovering&&ir}),bn=computed(()=>t.remote&&t.filterable?"":arrow_up_default),Sn=computed(()=>bn.value&&V.is("reverse",qe.value)),En=computed(()=>(le==null?void 0:le.validateState)||""),wn=computed(()=>ValidateComponentsMap[En.value]),$n=computed(()=>t.remote?300:0),Tn=computed(()=>{const ir=xn.value;return t.loading?t.loadingText||$("el.select.loading"):t.remote&&ue.inputValue===""&&ir.length===0?!1:t.filterable&&ue.inputValue&&ir.length>0?t.noMatchText||$("el.select.noMatch"):ir.length===0?t.noDataText||$("el.select.noData"):null}),xn=computed(()=>{const ir=Pr=>{const zr=ue.inputValue,Ir=new RegExp(escapeStringRegexp(zr),"i");return zr?Ir.test(Pr.label||""):!0};return t.loading?[]:flattenOptions(t.options.concat(ue.createdOptions).map(Pr=>{if(isArray$c(Pr.options)){const zr=Pr.options.filter(ir);if(zr.length>0)return{...Pr,options:zr}}else if(t.remote||ir(Pr))return Pr;return null}).filter(Pr=>Pr!==null))}),An=computed(()=>{const ir=new Map;return xn.value.forEach((Pr,zr)=>{ir.set(Tr(Pr),{option:Pr,index:zr})}),ir}),Mn=computed(()=>xn.value.every(ir=>ir.disabled)),Vn=useFormSize(),Bn=computed(()=>Vn.value==="small"?"small":"default"),Dn=computed(()=>{const ir=Fe.value,Pr=Bn.value||"default",zr=ir?Number.parseInt(getComputedStyle(ir).paddingLeft):0,Ir=ir?Number.parseInt(getComputedStyle(ir).paddingRight):0;return ue.selectWidth-Ir-zr-TAG_BASE_WIDTH[Pr]}),Ln=()=>{var ir;pe.value=((ir=Ve.value)==null?void 0:ir.offsetWidth)||200},Pn=computed(()=>({width:`${ue.calculatedWidth===0?MINIMUM_INPUT_WIDTH:Math.ceil(ue.calculatedWidth)+MINIMUM_INPUT_WIDTH}px`})),Fn=computed(()=>isArray$c(t.modelValue)?t.modelValue.length===0&&!ue.displayInputValue:t.filterable?ue.displayInputValue.length===0:!0),Un=computed(()=>{const ir=t.placeholder||$("el.select.placeholder");return t.multiple||isNil(t.modelValue)?ir:ue.selectedLabel}),Wn=computed(()=>{var ir,Pr;return(Pr=(ir=Ie.value)==null?void 0:ir.popperRef)==null?void 0:Pr.contentRef}),Zn=computed(()=>{if(t.multiple){const ir=t.modelValue.length;if(t.modelValue.length>0&&An.value.has(t.modelValue[ir-1])){const{index:Pr}=An.value.get(t.modelValue[ir-1]);return Pr}}else if(t.modelValue&&An.value.has(t.modelValue)){const{index:ir}=An.value.get(t.modelValue);return ir}return-1}),or=computed({get(){return qe.value&&Tn.value!==!1},set(ir){qe.value=ir}}),br=computed(()=>ue.cachedOptions.slice(0,t.maxCollapseTags)),Qn=computed(()=>ue.cachedOptions.slice(t.maxCollapseTags)),{createNewOption:Gn,removeNewOption:Yn,selectNewOption:er,clearAllNewOption:lr}=useAllowCreate(t,ue),{handleCompositionStart:sr,handleCompositionUpdate:zn,handleCompositionEnd:Kn}=useInput(ir=>Kr(ir)),Jn=()=>{var ir,Pr,zr;(Pr=(ir=_e.value)==null?void 0:ir.focus)==null||Pr.call(ir),(zr=Ie.value)==null||zr.updatePopper()},cr=()=>{if(!t.automaticDropdown&&!Et.value)return ue.isComposing&&(ue.softFocus=!0),nextTick(()=>{var ir,Pr;qe.value=!qe.value,(Pr=(ir=_e.value)==null?void 0:ir.focus)==null||Pr.call(ir)})},_r=()=>(t.filterable&&ue.inputValue!==ue.selectedLabel&&(ue.query=ue.selectedLabel),wr(ue.inputValue),nextTick(()=>{Gn(ue.inputValue)})),ur=debounce(_r,$n.value),wr=ir=>{ue.previousQuery!==ir&&(ue.previousQuery=ir,t.filterable&&isFunction$5(t.filterMethod)?t.filterMethod(ir):t.filterable&&t.remote&&isFunction$5(t.remoteMethod)&&t.remoteMethod(ir))},Cr=ir=>{isEqual$1(t.modelValue,ir)||r(CHANGE_EVENT,ir)},mr=ir=>{r(UPDATE_MODEL_EVENT,ir),Cr(ir),ue.previousValue=ir==null?void 0:ir.toString()},Er=(ir=[],Pr)=>{if(!isObject$a(Pr))return ir.indexOf(Pr);const zr=t.valueKey;let Ir=-1;return ir.some((Wr,Yr)=>get$1(Wr,zr)===get$1(Pr,zr)?(Ir=Yr,!0):!1),Ir},Tr=ir=>isObject$a(ir)?get$1(ir,t.valueKey):ir,nr=ir=>isObject$a(ir)?ir.label:ir,pr=()=>nextTick(()=>{var ir,Pr;if(!_e.value)return;const zr=Fe.value;Ve.value.height=zr.offsetHeight,qe.value&&Tn.value!==!1&&((Pr=(ir=Ie.value)==null?void 0:ir.updatePopper)==null||Pr.call(ir))}),gr=()=>{var ir,Pr;if($r(),Ln(),(Pr=(ir=Ie.value)==null?void 0:ir.updatePopper)==null||Pr.call(ir),t.multiple)return pr()},$r=()=>{const ir=Fe.value;ir&&(ue.selectWidth=ir.getBoundingClientRect().width)},Rr=(ir,Pr,zr=!0)=>{var Ir,Wr;if(t.multiple){let Yr=t.modelValue.slice();const Jr=Er(Yr,Tr(ir));Jr>-1?(Yr=[...Yr.slice(0,Jr),...Yr.slice(Jr+1)],ue.cachedOptions.splice(Jr,1),Yn(ir)):(t.multipleLimit<=0||Yr.length{const{valueKey:zr}=t,Ir=t.modelValue.indexOf(get$1(Pr,zr));if(Ir>-1&&!Et.value){const Wr=[...t.modelValue.slice(0,Ir),...t.modelValue.slice(Ir+1)];return ue.cachedOptions.splice(Ir,1),mr(Wr),r("remove-tag",get$1(Pr,zr)),ue.softFocus=!0,Yn(Pr),nextTick(Jn)}ir.stopPropagation()},Vr=ir=>{const Pr=ue.isComposing;ue.isComposing=!0,ue.softFocus?ue.softFocus=!1:Pr||r("focus",ir)},Nr=ir=>(ue.softFocus=!1,nextTick(()=>{var Pr,zr;(zr=(Pr=_e.value)==null?void 0:Pr.blur)==null||zr.call(Pr),Ue.value&&(ue.calculatedWidth=Ue.value.getBoundingClientRect().width),ue.isSilentBlur?ue.isSilentBlur=!1:ue.isComposing&&r("blur",ir),ue.isComposing=!1})),dr=()=>{ue.displayInputValue.length>0?Sr(""):qe.value=!1},ar=ir=>{if(ue.displayInputValue.length===0){ir.preventDefault();const Pr=t.modelValue.slice();Pr.pop(),Yn(ue.cachedOptions.pop()),mr(Pr)}},tr=()=>{let ir;return isArray$c(t.modelValue)?ir=[]:ir=void 0,ue.softFocus=!0,t.multiple?ue.cachedOptions=[]:ue.selectedLabel="",qe.value=!1,mr(ir),r("clear"),lr(),nextTick(Jn)},Sr=ir=>{ue.displayInputValue=ir,ue.inputValue=ir},qn=(ir,Pr=void 0)=>{const zr=xn.value;if(!["forward","backward"].includes(ir)||Et.value||zr.length<=0||Mn.value)return;if(!qe.value)return cr();Pr===void 0&&(Pr=ue.hoveringIndex);let Ir=-1;ir==="forward"?(Ir=Pr+1,Ir>=zr.length&&(Ir=0)):ir==="backward"&&(Ir=Pr-1,(Ir<0||Ir>=zr.length)&&(Ir=zr.length-1));const Wr=zr[Ir];if(Wr.disabled||Wr.type==="Group")return qn(ir,Ir);Dr(Ir),hr(Ir)},kr=()=>{if(qe.value)~ue.hoveringIndex&&xn.value[ue.hoveringIndex]&&Rr(xn.value[ue.hoveringIndex],ue.hoveringIndex,!1);else return cr()},Dr=ir=>{ue.hoveringIndex=ir},Hr=()=>{ue.hoveringIndex=-1},Gr=()=>{var ir;const Pr=_e.value;Pr&&((ir=Pr.focus)==null||ir.call(Pr))},Kr=ir=>{const Pr=ir.target.value;if(Sr(Pr),ue.displayInputValue.length>0&&!qe.value&&(qe.value=!0),ue.calculatedWidth=Ue.value.getBoundingClientRect().width,t.multiple&&pr(),t.remote)ur();else return _r()},to=()=>(qe.value=!1,Nr()),Zr=()=>(ue.inputValue=ue.displayInputValue,nextTick(()=>{~Zn.value&&(Dr(Zn.value),hr(ue.hoveringIndex))})),hr=ir=>{$e.value.scrollToItem(ir)},xr=()=>{if(Hr(),t.multiple)if(t.modelValue.length>0){let ir=!1;ue.cachedOptions.length=0,ue.previousValue=t.modelValue.toString();for(const Pr of t.modelValue)if(An.value.has(Pr)){const{index:zr,option:Ir}=An.value.get(Pr);ue.cachedOptions.push(Ir),ir||Dr(zr),ir=!0}}else ue.cachedOptions=[],ue.previousValue=void 0;else if(hn.value){ue.previousValue=t.modelValue;const ir=xn.value,Pr=ir.findIndex(zr=>Tr(zr)===Tr(t.modelValue));~Pr?(ue.selectedLabel=ir[Pr].label,Dr(Pr)):ue.selectedLabel=`${t.modelValue}`}else ue.selectedLabel="",ue.previousValue=void 0;lr(),Ln()};return watch(qe,ir=>{var Pr,zr;r("visible-change",ir),ir?(zr=(Pr=Ie.value).update)==null||zr.call(Pr):(ue.displayInputValue="",ue.previousQuery=null,Gn(""))}),watch(()=>t.modelValue,(ir,Pr)=>{var zr;(!ir||ir.toString()!==ue.previousValue)&&xr(),!isEqual$1(ir,Pr)&&t.validateEvent&&((zr=le==null?void 0:le.validate)==null||zr.call(le,"change").catch(Ir=>void 0))},{deep:!0}),watch(()=>t.options,()=>{const ir=_e.value;(!ir||ir&&document.activeElement!==ir)&&xr()},{deep:!0}),watch(xn,()=>nextTick($e.value.resetScrollTop)),watch(()=>or.value,ir=>{ir||Hr()}),onMounted(()=>{xr()}),useResizeObserver$1(Ve,gr),{collapseTagSize:Bn,currentPlaceholder:Un,expanded:qe,emptyText:Tn,popupHeight:Lt,debounce:$n,filteredOptions:xn,iconComponent:bn,iconReverse:Sn,inputWrapperStyle:Pn,popperSize:pe,dropdownMenuVisible:or,hasModelValue:hn,shouldShowPlaceholder:Fn,selectDisabled:Et,selectSize:Vn,showClearBtn:Cn,states:ue,tagMaxWidth:Dn,nsSelectV2:V,nsInput:oe,calculatorRef:Ue,controlRef:he,inputRef:_e,menuRef:$e,popper:Ie,selectRef:Ve,selectionRef:Fe,popperRef:Wn,validateState:En,validateIcon:wn,showTagList:br,collapseTagList:Qn,debouncedOnInputChange:ur,deleteTag:Lr,getLabel:nr,getValueKey:Tr,handleBlur:Nr,handleClear:tr,handleClickOutside:to,handleDel:ar,handleEsc:dr,handleFocus:Vr,handleMenuEnter:Zr,handleResize:gr,toggleMenu:cr,scrollTo:hr,onInput:Kr,onKeyboardNavigate:qn,onKeyboardSelect:kr,onSelect:Rr,onHover:Dr,onUpdateInputValue:Sr,handleCompositionStart:sr,handleCompositionEnd:Kn,handleCompositionUpdate:zn}},_sfc_main$E=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(t,{emit:r}){const $=computed(()=>{const{modelValue:oe,multiple:ie}=t,le=ie?[]:void 0;return isArray$c(oe)?ie?oe:le:ie?le:oe}),V=useSelect$1(reactive({...toRefs(t),modelValue:$}),r);return provide(selectV2InjectionKey,{props:reactive({...toRefs(t),height:V.popupHeight,modelValue:$}),popper:V.popper,onSelect:V.onSelect,onHover:V.onHover,onKeyboardNavigate:V.onKeyboardNavigate,onKeyboardSelect:V.onKeyboardSelect}),{...V,modelValue:$}}}),_hoisted_1$j={key:0},_hoisted_2$e=["id","autocomplete","aria-expanded","aria-labelledby","disabled","readonly","name","unselectable"],_hoisted_3$8=["textContent"],_hoisted_4$5=["id","aria-labelledby","aria-expanded","autocomplete","disabled","name","readonly","unselectable"],_hoisted_5$3=["textContent"];function _sfc_render$6(t,r,$,V,oe,ie){const le=resolveComponent("el-tag"),ue=resolveComponent("el-tooltip"),de=resolveComponent("el-icon"),pe=resolveComponent("el-select-menu"),he=resolveDirective("model-text"),_e=resolveDirective("click-outside");return withDirectives((openBlock(),createElementBlock("div",{ref:"selectRef",class:normalizeClass([t.nsSelectV2.b(),t.nsSelectV2.m(t.selectSize)]),onClick:r[24]||(r[24]=withModifiers((...$e)=>t.toggleMenu&&t.toggleMenu(...$e),["stop"])),onMouseenter:r[25]||(r[25]=$e=>t.states.comboBoxHovering=!0),onMouseleave:r[26]||(r[26]=$e=>t.states.comboBoxHovering=!1)},[createVNode(ue,{ref:"popper",visible:t.dropdownMenuVisible,teleported:t.teleported,"popper-class":[t.nsSelectV2.e("popper"),t.popperClass],"gpu-acceleration":!1,"stop-popper-mouse-event":!1,"popper-options":t.popperOptions,"fallback-placements":["bottom-start","top-start","right","left"],effect:t.effect,placement:t.placement,pure:"",transition:`${t.nsSelectV2.namespace.value}-zoom-in-top`,trigger:"click",persistent:t.persistent,onBeforeShow:t.handleMenuEnter,onHide:r[23]||(r[23]=$e=>t.states.inputValue=t.states.displayInputValue)},{default:withCtx(()=>[createBaseVNode("div",{ref:"selectionRef",class:normalizeClass([t.nsSelectV2.e("wrapper"),t.nsSelectV2.is("focused",t.states.isComposing||t.expanded),t.nsSelectV2.is("hovering",t.states.comboBoxHovering),t.nsSelectV2.is("filterable",t.filterable),t.nsSelectV2.is("disabled",t.selectDisabled)])},[t.$slots.prefix?(openBlock(),createElementBlock("div",_hoisted_1$j,[renderSlot(t.$slots,"prefix")])):createCommentVNode("v-if",!0),t.multiple?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.nsSelectV2.e("selection"))},[t.collapseTags&&t.modelValue.length>0?(openBlock(),createElementBlock(Fragment,{key:0},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.showTagList,$e=>(openBlock(),createElementBlock("div",{key:t.getValueKey($e),class:normalizeClass(t.nsSelectV2.e("selected-item"))},[createVNode(le,{closable:!t.selectDisabled&&!($e!=null&&$e.disable),size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:Ie=>t.deleteTag(Ie,$e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},toDisplayString$1($e==null?void 0:$e.label),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass(t.nsSelectV2.e("selected-item"))},[t.modelValue.length>t.maxCollapseTags?(openBlock(),createBlock(le,{key:0,closable:!1,size:t.collapseTagSize,type:"info","disable-transitions":""},{default:withCtx(()=>[t.collapseTagsTooltip?(openBlock(),createBlock(ue,{key:0,disabled:t.dropdownMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:t.effect,placement:"bottom",teleported:!1},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},"+ "+toDisplayString$1(t.modelValue.length-t.maxCollapseTags),7)]),content:withCtx(()=>[createBaseVNode("div",{class:normalizeClass(t.nsSelectV2.e("selection"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.collapseTagList,$e=>(openBlock(),createElementBlock("div",{key:t.getValueKey($e),class:normalizeClass(t.nsSelectV2.e("selected-item"))},[createVNode(le,{closable:!t.selectDisabled&&!$e.disabled,size:t.collapseTagSize,class:"in-tooltip",type:"info","disable-transitions":"",onClose:Ie=>t.deleteTag(Ie,$e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},toDisplayString$1(t.getLabel($e)),7)]),_:2},1032,["closable","size","onClose"])],2))),128))],2)]),_:1},8,["disabled","effect"])):(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},"+ "+toDisplayString$1(t.modelValue.length-t.maxCollapseTags),7))]),_:1},8,["size"])):createCommentVNode("v-if",!0)],2)],64)):(openBlock(!0),createElementBlock(Fragment,{key:1},renderList(t.states.cachedOptions,$e=>(openBlock(),createElementBlock("div",{key:t.getValueKey($e),class:normalizeClass(t.nsSelectV2.e("selected-item"))},[createVNode(le,{closable:!t.selectDisabled&&!$e.disabled,size:t.collapseTagSize,type:"info","disable-transitions":"",onClose:Ie=>t.deleteTag(Ie,$e)},{default:withCtx(()=>[createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("tags-text")),style:normalizeStyle$1({maxWidth:`${t.tagMaxWidth}px`})},toDisplayString$1(t.getLabel($e)),7)]),_:2},1032,["closable","size","onClose"])],2))),128)),createBaseVNode("div",{class:normalizeClass([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")]),style:normalizeStyle$1(t.inputWrapperStyle)},[withDirectives(createBaseVNode("input",{id:t.id,ref:"inputRef",autocomplete:t.autocomplete,"aria-autocomplete":"list","aria-haspopup":"listbox",autocapitalize:"off","aria-expanded":t.expanded,"aria-labelledby":t.label,class:normalizeClass([t.nsSelectV2.is(t.selectSize),t.nsSelectV2.e("combobox-input")]),disabled:t.disabled,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",name:t.name,unselectable:t.expanded?"on":void 0,"onUpdate:modelValue":r[0]||(r[0]=(...$e)=>t.onUpdateInputValue&&t.onUpdateInputValue(...$e)),onFocus:r[1]||(r[1]=(...$e)=>t.handleFocus&&t.handleFocus(...$e)),onBlur:r[2]||(r[2]=(...$e)=>t.handleBlur&&t.handleBlur(...$e)),onInput:r[3]||(r[3]=(...$e)=>t.onInput&&t.onInput(...$e)),onCompositionstart:r[4]||(r[4]=(...$e)=>t.handleCompositionStart&&t.handleCompositionStart(...$e)),onCompositionupdate:r[5]||(r[5]=(...$e)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...$e)),onCompositionend:r[6]||(r[6]=(...$e)=>t.handleCompositionEnd&&t.handleCompositionEnd(...$e)),onKeydown:[r[7]||(r[7]=withKeys(withModifiers($e=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),r[8]||(r[8]=withKeys(withModifiers($e=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),r[9]||(r[9]=withKeys(withModifiers((...$e)=>t.onKeyboardSelect&&t.onKeyboardSelect(...$e),["stop","prevent"]),["enter"])),r[10]||(r[10]=withKeys(withModifiers((...$e)=>t.handleEsc&&t.handleEsc(...$e),["stop","prevent"]),["esc"])),r[11]||(r[11]=withKeys(withModifiers((...$e)=>t.handleDel&&t.handleDel(...$e),["stop"]),["delete"]))]},null,42,_hoisted_2$e),[[he,t.states.displayInputValue]]),t.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass(t.nsSelectV2.e("input-calculator")),textContent:toDisplayString$1(t.states.displayInputValue)},null,10,_hoisted_3$8)):createCommentVNode("v-if",!0)],6)],2)):(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",{class:normalizeClass([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-wrapper")])},[withDirectives(createBaseVNode("input",{id:t.id,ref:"inputRef","aria-autocomplete":"list","aria-haspopup":"listbox","aria-labelledby":t.label,"aria-expanded":t.expanded,autocapitalize:"off",autocomplete:t.autocomplete,class:normalizeClass(t.nsSelectV2.e("combobox-input")),disabled:t.disabled,name:t.name,role:"combobox",readonly:!t.filterable,spellcheck:"false",type:"text",unselectable:t.expanded?"on":void 0,onCompositionstart:r[12]||(r[12]=(...$e)=>t.handleCompositionStart&&t.handleCompositionStart(...$e)),onCompositionupdate:r[13]||(r[13]=(...$e)=>t.handleCompositionUpdate&&t.handleCompositionUpdate(...$e)),onCompositionend:r[14]||(r[14]=(...$e)=>t.handleCompositionEnd&&t.handleCompositionEnd(...$e)),onFocus:r[15]||(r[15]=(...$e)=>t.handleFocus&&t.handleFocus(...$e)),onBlur:r[16]||(r[16]=(...$e)=>t.handleBlur&&t.handleBlur(...$e)),onInput:r[17]||(r[17]=(...$e)=>t.onInput&&t.onInput(...$e)),onKeydown:[r[18]||(r[18]=withKeys(withModifiers($e=>t.onKeyboardNavigate("backward"),["stop","prevent"]),["up"])),r[19]||(r[19]=withKeys(withModifiers($e=>t.onKeyboardNavigate("forward"),["stop","prevent"]),["down"])),r[20]||(r[20]=withKeys(withModifiers((...$e)=>t.onKeyboardSelect&&t.onKeyboardSelect(...$e),["stop","prevent"]),["enter"])),r[21]||(r[21]=withKeys(withModifiers((...$e)=>t.handleEsc&&t.handleEsc(...$e),["stop","prevent"]),["esc"]))],"onUpdate:modelValue":r[22]||(r[22]=(...$e)=>t.onUpdateInputValue&&t.onUpdateInputValue(...$e))},null,42,_hoisted_4$5),[[he,t.states.displayInputValue]])],2),t.filterable?(openBlock(),createElementBlock("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:normalizeClass([t.nsSelectV2.e("selected-item"),t.nsSelectV2.e("input-calculator")]),textContent:toDisplayString$1(t.states.displayInputValue)},null,10,_hoisted_5$3)):createCommentVNode("v-if",!0)],64)),t.shouldShowPlaceholder?(openBlock(),createElementBlock("span",{key:3,class:normalizeClass([t.nsSelectV2.e("placeholder"),t.nsSelectV2.is("transparent",t.multiple?t.modelValue.length===0:!t.hasModelValue)])},toDisplayString$1(t.currentPlaceholder),3)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(t.nsSelectV2.e("suffix"))},[t.iconComponent?withDirectives((openBlock(),createBlock(de,{key:0,class:normalizeClass([t.nsSelectV2.e("caret"),t.nsInput.e("icon"),t.iconReverse])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])),[[vShow,!t.showClearBtn]]):createCommentVNode("v-if",!0),t.showClearBtn&&t.clearIcon?(openBlock(),createBlock(de,{key:1,class:normalizeClass([t.nsSelectV2.e("caret"),t.nsInput.e("icon")]),onClick:withModifiers(t.handleClear,["prevent","stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.clearIcon)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),t.validateState&&t.validateIcon?(openBlock(),createBlock(de,{key:2,class:normalizeClass([t.nsInput.e("icon"),t.nsInput.e("validateIcon")])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.validateIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2)],2)]),content:withCtx(()=>[createVNode(pe,{ref:"menuRef",data:t.filteredOptions,width:t.popperSize,"hovering-index":t.states.hoveringIndex,"scrollbar-always-on":t.scrollbarAlwaysOn},{default:withCtx($e=>[renderSlot(t.$slots,"default",normalizeProps(guardReactiveProps($e)))]),empty:withCtx(()=>[renderSlot(t.$slots,"empty",{},()=>[createBaseVNode("p",{class:normalizeClass(t.nsSelectV2.e("empty"))},toDisplayString$1(t.emptyText?t.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)),[[_e,t.handleClickOutside,t.popperRef]])}var Select=_export_sfc$1(_sfc_main$E,[["render",_sfc_render$6],["__file","/home/runner/work/element-plus/element-plus/packages/components/select-v2/src/select.vue"]]);Select.install=t=>{t.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$D=defineComponent({...__default__$t,props:skeletonItemProps,setup(t){const r=useNamespace("skeleton");return($,V)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(r).e("item"),unref(r).e($.variant)])},[$.variant==="image"?(openBlock(),createBlock(unref(picture_filled_default),{key:0})):createCommentVNode("v-if",!0)],2))}});var SkeletonItem=_export_sfc$1(_sfc_main$D,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const __default__$s=defineComponent({name:"ElSkeleton"}),_sfc_main$C=defineComponent({...__default__$s,props:skeletonProps,setup(t,{expose:r}){const $=t,V=useNamespace("skeleton"),oe=useThrottleRender(toRef($,"loading"),$.throttle);return r({uiLoading:oe}),(ie,le)=>unref(oe)?(openBlock(),createElementBlock("div",mergeProps({key:0,class:[unref(V).b(),unref(V).is("animated",ie.animated)]},ie.$attrs),[(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.count,ue=>(openBlock(),createElementBlock(Fragment,{key:ue},[ie.loading?renderSlot(ie.$slots,"template",{key:ue},()=>[createVNode(SkeletonItem,{class:normalizeClass(unref(V).is("first")),variant:"p"},null,8,["class"]),(openBlock(!0),createElementBlock(Fragment,null,renderList(ie.rows,de=>(openBlock(),createBlock(SkeletonItem,{key:de,class:normalizeClass([unref(V).e("paragraph"),unref(V).is("last",de===ie.rows&&ie.rows>1)]),variant:"p"},null,8,["class"]))),128))]):createCommentVNode("v-if",!0)],64))),128))],16)):renderSlot(ie.$slots,"default",normalizeProps(mergeProps({key:1},ie.$attrs)))}});var Skeleton=_export_sfc$1(_sfc_main$C,[["__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=t=>isNumber$4(t)||isArray$c(t)&&t.every(isNumber$4),sliderEmits={[UPDATE_MODEL_EVENT]:isValidValue$1,[INPUT_EVENT]:isValidValue$1,[CHANGE_EVENT]:isValidValue$1},useLifecycle=(t,r,$)=>{const V=ref();return onMounted(async()=>{t.range?(Array.isArray(t.modelValue)?(r.firstValue=Math.max(t.min,t.modelValue[0]),r.secondValue=Math.min(t.max,t.modelValue[1])):(r.firstValue=t.min,r.secondValue=t.max),r.oldValue=[r.firstValue,r.secondValue]):(typeof t.modelValue!="number"||Number.isNaN(t.modelValue)?r.firstValue=t.min:r.firstValue=Math.min(t.max,Math.max(t.min,t.modelValue)),r.oldValue=r.firstValue),useEventListener$1(window,"resize",$),await nextTick(),$()}),{sliderWrapper:V}},useMarks=t=>computed(()=>t.marks?Object.keys(t.marks).map(Number.parseFloat).sort(($,V)=>$-V).filter($=>$<=t.max&&$>=t.min).map($=>({point:$,position:($-t.min)*100/(t.max-t.min),mark:t.marks[$]})):[]),useSlide=(t,r,$)=>{const{form:V,formItem:oe}=useFormItem(),ie=shallowRef(),le=ref(),ue=ref(),de={firstButton:le,secondButton:ue},pe=computed(()=>t.disabled||(V==null?void 0:V.disabled)||!1),he=computed(()=>Math.min(r.firstValue,r.secondValue)),_e=computed(()=>Math.max(r.firstValue,r.secondValue)),$e=computed(()=>t.range?`${100*(_e.value-he.value)/(t.max-t.min)}%`:`${100*(r.firstValue-t.min)/(t.max-t.min)}%`),Ie=computed(()=>t.range?`${100*(he.value-t.min)/(t.max-t.min)}%`:"0%"),Ve=computed(()=>t.vertical?{height:t.height}:{}),Fe=computed(()=>t.vertical?{height:$e.value,bottom:Ie.value}:{width:$e.value,left:Ie.value}),Ue=()=>{ie.value&&(r.sliderSize=ie.value[`client${t.vertical?"Height":"Width"}`])},qe=Tn=>{const xn=t.min+Tn*(t.max-t.min)/100;if(!t.range)return le;let An;return Math.abs(he.value-xn)r.secondValue?"firstButton":"secondButton",de[An]},Et=Tn=>{const xn=qe(Tn);return xn.value.setPosition(Tn),xn},Lt=Tn=>{r.firstValue=Tn,Cn(t.range?[he.value,_e.value]:Tn)},hn=Tn=>{r.secondValue=Tn,t.range&&Cn([he.value,_e.value])},Cn=Tn=>{$(UPDATE_MODEL_EVENT,Tn),$(INPUT_EVENT,Tn)},bn=async()=>{await nextTick(),$(CHANGE_EVENT,t.range?[he.value,_e.value]:t.modelValue)},Sn=Tn=>{var xn,An,Mn,Vn,Bn,Dn;if(pe.value||r.dragging)return;Ue();let Ln=0;if(t.vertical){const Pn=(Mn=(An=(xn=Tn.touches)==null?void 0:xn.item(0))==null?void 0:An.clientY)!=null?Mn:Tn.clientY;Ln=(ie.value.getBoundingClientRect().bottom-Pn)/r.sliderSize*100}else{const Pn=(Dn=(Bn=(Vn=Tn.touches)==null?void 0:Vn.item(0))==null?void 0:Bn.clientX)!=null?Dn:Tn.clientX,Fn=ie.value.getBoundingClientRect().left;Ln=(Pn-Fn)/r.sliderSize*100}if(!(Ln<0||Ln>100))return Et(Ln)};return{elFormItem:oe,slider:ie,firstButton:le,secondButton:ue,sliderDisabled:pe,minValue:he,maxValue:_e,runwayStyle:Ve,barStyle:Fe,resetSize:Ue,setPosition:Et,emitChange:bn,onSliderWrapperPrevent:Tn=>{var xn,An;((xn=de.firstButton.value)!=null&&xn.dragging||(An=de.secondButton.value)!=null&&An.dragging)&&Tn.preventDefault()},onSliderClick:Tn=>{Sn(Tn)&&bn()},onSliderDown:async Tn=>{const xn=Sn(Tn);xn&&(await nextTick(),xn.value.onButtonDown(Tn))},setFirstValue:Lt,setSecondValue:hn}},{left,down,right,up,home:home$2,end:end$1,pageUp,pageDown}=EVENT_CODE,useTooltip=(t,r,$)=>{const V=ref(),oe=ref(!1),ie=computed(()=>r.value instanceof Function),le=computed(()=>ie.value&&r.value(t.modelValue)||t.modelValue),ue=debounce(()=>{$.value&&(oe.value=!0)},50),de=debounce(()=>{$.value&&(oe.value=!1)},50);return{tooltip:V,tooltipVisible:oe,formatValue:le,displayTooltip:ue,hideTooltip:de}},useSliderButton=(t,r,$)=>{const{disabled:V,min:oe,max:ie,step:le,showTooltip:ue,precision:de,sliderSize:pe,formatTooltip:he,emitChange:_e,resetSize:$e,updateDragging:Ie}=inject(sliderContextKey),{tooltip:Ve,tooltipVisible:Fe,formatValue:Ue,displayTooltip:qe,hideTooltip:Et}=useTooltip(t,he,ue),Lt=ref(),hn=computed(()=>`${(t.modelValue-oe.value)/(ie.value-oe.value)*100}%`),Cn=computed(()=>t.vertical?{bottom:hn.value}:{left:hn.value}),bn=()=>{r.hovering=!0,qe()},Sn=()=>{r.hovering=!1,r.dragging||Et()},En=Wn=>{V.value||(Wn.preventDefault(),Ln(Wn),window.addEventListener("mousemove",Pn),window.addEventListener("touchmove",Pn),window.addEventListener("mouseup",Fn),window.addEventListener("touchend",Fn),window.addEventListener("contextmenu",Fn),Lt.value.focus())},wn=Wn=>{V.value||(r.newPosition=Number.parseFloat(hn.value)+Wn/(ie.value-oe.value)*100,Un(r.newPosition),_e())},$n=()=>{wn(-le.value)},Tn=()=>{wn(le.value)},xn=()=>{wn(-le.value*4)},An=()=>{wn(le.value*4)},Mn=()=>{V.value||(Un(0),_e())},Vn=()=>{V.value||(Un(100),_e())},Bn=Wn=>{let Zn=!0;[left,down].includes(Wn.key)?$n():[right,up].includes(Wn.key)?Tn():Wn.key===home$2?Mn():Wn.key===end$1?Vn():Wn.key===pageDown?xn():Wn.key===pageUp?An():Zn=!1,Zn&&Wn.preventDefault()},Dn=Wn=>{let Zn,or;return Wn.type.startsWith("touch")?(or=Wn.touches[0].clientY,Zn=Wn.touches[0].clientX):(or=Wn.clientY,Zn=Wn.clientX),{clientX:Zn,clientY:or}},Ln=Wn=>{r.dragging=!0,r.isClick=!0;const{clientX:Zn,clientY:or}=Dn(Wn);t.vertical?r.startY=or:r.startX=Zn,r.startPosition=Number.parseFloat(hn.value),r.newPosition=r.startPosition},Pn=Wn=>{if(r.dragging){r.isClick=!1,qe(),$e();let Zn;const{clientX:or,clientY:br}=Dn(Wn);t.vertical?(r.currentY=br,Zn=(r.startY-r.currentY)/pe.value*100):(r.currentX=or,Zn=(r.currentX-r.startX)/pe.value*100),r.newPosition=r.startPosition+Zn,Un(r.newPosition)}},Fn=()=>{r.dragging&&(setTimeout(()=>{r.dragging=!1,r.hovering||Et(),r.isClick||Un(r.newPosition),_e()},0),window.removeEventListener("mousemove",Pn),window.removeEventListener("touchmove",Pn),window.removeEventListener("mouseup",Fn),window.removeEventListener("touchend",Fn),window.removeEventListener("contextmenu",Fn))},Un=async Wn=>{if(Wn===null||Number.isNaN(+Wn))return;Wn<0?Wn=0:Wn>100&&(Wn=100);const Zn=100/((ie.value-oe.value)/le.value);let br=Math.round(Wn/Zn)*Zn*(ie.value-oe.value)*.01+oe.value;br=Number.parseFloat(br.toFixed(de.value)),br!==t.modelValue&&$(UPDATE_MODEL_EVENT,br),!r.dragging&&t.modelValue!==r.oldValue&&(r.oldValue=t.modelValue),await nextTick(),r.dragging&&qe(),Ve.value.updatePopper()};return watch(()=>r.dragging,Wn=>{Ie(Wn)}),{disabled:V,button:Lt,tooltip:Ve,tooltipVisible:Fe,showTooltip:ue,wrapperStyle:Cn,formatValue:Ue,handleMouseEnter:bn,handleMouseLeave:Sn,onButtonDown:En,onKeyDown:Bn,setPosition:Un}},useStops=(t,r,$,V)=>({stops:computed(()=>{if(!t.showStops||t.min>t.max)return[];if(t.step===0)return[];const le=(t.max-t.min)/t.step,ue=100*t.step/(t.max-t.min),de=Array.from({length:le-1}).map((pe,he)=>(he+1)*ue);return t.range?de.filter(pe=>pe<100*($.value-t.min)/(t.max-t.min)||pe>100*(V.value-t.min)/(t.max-t.min)):de.filter(pe=>pe>100*(r.firstValue-t.min)/(t.max-t.min))}),getStopStyle:le=>t.vertical?{bottom:`${le}%`}:{left:`${le}%`}}),useWatch=(t,r,$,V,oe,ie)=>{const le=pe=>{oe(UPDATE_MODEL_EVENT,pe),oe(INPUT_EVENT,pe)},ue=()=>t.range?![$.value,V.value].every((pe,he)=>pe===r.oldValue[he]):t.modelValue!==r.oldValue,de=()=>{var pe,he;t.min>t.max&&throwError$1("Slider","min should not be greater than max.");const _e=t.modelValue;t.range&&Array.isArray(_e)?_e[1]t.max?le([t.max,t.max]):_e[0]t.max?le([_e[0],t.max]):(r.firstValue=_e[0],r.secondValue=_e[1],ue()&&(t.validateEvent&&((pe=ie==null?void 0:ie.validate)==null||pe.call(ie,"change").catch($e=>void 0)),r.oldValue=_e.slice())):!t.range&&typeof _e=="number"&&!Number.isNaN(_e)&&(_et.max?le(t.max):(r.firstValue=_e,ue()&&(t.validateEvent&&((he=ie==null?void 0:ie.validate)==null||he.call(ie,"change").catch($e=>void 0)),r.oldValue=_e)))};de(),watch(()=>r.dragging,pe=>{pe||de()}),watch(()=>t.modelValue,(pe,he)=>{r.dragging||Array.isArray(pe)&&Array.isArray(he)&&pe.every((_e,$e)=>_e===he[$e])&&r.firstValue===pe[0]&&r.secondValue===pe[1]||de()},{deep:!0}),watch(()=>[t.min,t.max],()=>{de()})},sliderButtonProps=buildProps({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Ee,default:"top"}}),sliderButtonEmits={[UPDATE_MODEL_EVENT]:t=>isNumber$4(t)},_hoisted_1$i=["tabindex"],__default__$r=defineComponent({name:"ElSliderButton"}),_sfc_main$B=defineComponent({...__default__$r,props:sliderButtonProps,emits:sliderButtonEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useNamespace("slider"),ie=reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:V.modelValue}),{disabled:le,button:ue,tooltip:de,showTooltip:pe,tooltipVisible:he,wrapperStyle:_e,formatValue:$e,handleMouseEnter:Ie,handleMouseLeave:Ve,onButtonDown:Fe,onKeyDown:Ue,setPosition:qe}=useSliderButton(V,ie,$),{hovering:Et,dragging:Lt}=toRefs(ie);return r({onButtonDown:Fe,onKeyDown:Ue,setPosition:qe,hovering:Et,dragging:Lt}),(hn,Cn)=>(openBlock(),createElementBlock("div",{ref_key:"button",ref:ue,class:normalizeClass([unref(oe).e("button-wrapper"),{hover:unref(Et),dragging:unref(Lt)}]),style:normalizeStyle$1(unref(_e)),tabindex:unref(le)?-1:0,onMouseenter:Cn[0]||(Cn[0]=(...bn)=>unref(Ie)&&unref(Ie)(...bn)),onMouseleave:Cn[1]||(Cn[1]=(...bn)=>unref(Ve)&&unref(Ve)(...bn)),onMousedown:Cn[2]||(Cn[2]=(...bn)=>unref(Fe)&&unref(Fe)(...bn)),onTouchstart:Cn[3]||(Cn[3]=(...bn)=>unref(Fe)&&unref(Fe)(...bn)),onFocus:Cn[4]||(Cn[4]=(...bn)=>unref(Ie)&&unref(Ie)(...bn)),onBlur:Cn[5]||(Cn[5]=(...bn)=>unref(Ve)&&unref(Ve)(...bn)),onKeydown:Cn[6]||(Cn[6]=(...bn)=>unref(Ue)&&unref(Ue)(...bn))},[createVNode(unref(ElTooltip),{ref_key:"tooltip",ref:de,visible:unref(he),placement:hn.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":hn.tooltipClass,disabled:!unref(pe),persistent:""},{content:withCtx(()=>[createBaseVNode("span",null,toDisplayString$1(unref($e)),1)]),default:withCtx(()=>[createBaseVNode("div",{class:normalizeClass([unref(oe).e("button"),{hover:unref(Et),dragging:unref(Lt)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,_hoisted_1$i))}});var SliderButton=_export_sfc$1(_sfc_main$B,[["__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(t){const r=useNamespace("slider"),$=computed(()=>isString$6(t.mark)?t.mark:t.mark.label),V=computed(()=>isString$6(t.mark)?void 0:t.mark.style);return()=>h$2("div",{class:r.e("marks-text"),style:V.value},$.value)}});const _hoisted_1$h=["id","role","aria-label","aria-labelledby"],_hoisted_2$d={key:1},__default__$q=defineComponent({name:"ElSlider"}),_sfc_main$A=defineComponent({...__default__$q,props:sliderProps,emits:sliderEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useNamespace("slider"),{t:ie}=useLocale(),le=reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:ue,slider:de,firstButton:pe,secondButton:he,sliderDisabled:_e,minValue:$e,maxValue:Ie,runwayStyle:Ve,barStyle:Fe,resetSize:Ue,emitChange:qe,onSliderWrapperPrevent:Et,onSliderClick:Lt,onSliderDown:hn,setFirstValue:Cn,setSecondValue:bn}=useSlide(V,le,$),{stops:Sn,getStopStyle:En}=useStops(V,le,$e,Ie),{inputId:wn,isLabeledByFormItem:$n}=useFormItemInputId(V,{formItemContext:ue}),Tn=useFormSize(),xn=computed(()=>V.inputSize||Tn.value),An=computed(()=>V.label||ie("el.slider.defaultLabel",{min:V.min,max:V.max})),Mn=computed(()=>V.range?V.rangeStartLabel||ie("el.slider.defaultRangeStartLabel"):An.value),Vn=computed(()=>V.formatValueText?V.formatValueText(Wn.value):`${Wn.value}`),Bn=computed(()=>V.rangeEndLabel||ie("el.slider.defaultRangeEndLabel")),Dn=computed(()=>V.formatValueText?V.formatValueText(Zn.value):`${Zn.value}`),Ln=computed(()=>[oe.b(),oe.m(Tn.value),oe.is("vertical",V.vertical),{[oe.m("with-input")]:V.showInput}]),Pn=useMarks(V);useWatch(V,le,$e,Ie,$,ue);const Fn=computed(()=>{const Qn=[V.min,V.max,V.step].map(Gn=>{const Yn=`${Gn}`.split(".")[1];return Yn?Yn.length:0});return Math.max.apply(null,Qn)}),{sliderWrapper:Un}=useLifecycle(V,le,Ue),{firstValue:Wn,secondValue:Zn,sliderSize:or}=toRefs(le),br=Qn=>{le.dragging=Qn};return provide(sliderContextKey,{...toRefs(V),sliderSize:or,disabled:_e,precision:Fn,emitChange:qe,resetSize:Ue,updateDragging:br}),r({onSliderClick:Lt}),(Qn,Gn)=>{var Yn,er;return openBlock(),createElementBlock("div",{id:Qn.range?unref(wn):void 0,ref_key:"sliderWrapper",ref:Un,class:normalizeClass(unref(Ln)),role:Qn.range?"group":void 0,"aria-label":Qn.range&&!unref($n)?unref(An):void 0,"aria-labelledby":Qn.range&&unref($n)?(Yn=unref(ue))==null?void 0:Yn.labelId:void 0,onTouchstart:Gn[2]||(Gn[2]=(...lr)=>unref(Et)&&unref(Et)(...lr)),onTouchmove:Gn[3]||(Gn[3]=(...lr)=>unref(Et)&&unref(Et)(...lr))},[createBaseVNode("div",{ref_key:"slider",ref:de,class:normalizeClass([unref(oe).e("runway"),{"show-input":Qn.showInput&&!Qn.range},unref(oe).is("disabled",unref(_e))]),style:normalizeStyle$1(unref(Ve)),onMousedown:Gn[0]||(Gn[0]=(...lr)=>unref(hn)&&unref(hn)(...lr)),onTouchstart:Gn[1]||(Gn[1]=(...lr)=>unref(hn)&&unref(hn)(...lr))},[createBaseVNode("div",{class:normalizeClass(unref(oe).e("bar")),style:normalizeStyle$1(unref(Fe))},null,6),createVNode(SliderButton,{id:Qn.range?void 0:unref(wn),ref_key:"firstButton",ref:pe,"model-value":unref(Wn),vertical:Qn.vertical,"tooltip-class":Qn.tooltipClass,placement:Qn.placement,role:"slider","aria-label":Qn.range||!unref($n)?unref(Mn):void 0,"aria-labelledby":!Qn.range&&unref($n)?(er=unref(ue))==null?void 0:er.labelId:void 0,"aria-valuemin":Qn.min,"aria-valuemax":Qn.range?unref(Zn):Qn.max,"aria-valuenow":unref(Wn),"aria-valuetext":unref(Vn),"aria-orientation":Qn.vertical?"vertical":"horizontal","aria-disabled":unref(_e),"onUpdate:modelValue":unref(Cn)},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"]),Qn.range?(openBlock(),createBlock(SliderButton,{key:0,ref_key:"secondButton",ref:he,"model-value":unref(Zn),vertical:Qn.vertical,"tooltip-class":Qn.tooltipClass,placement:Qn.placement,role:"slider","aria-label":unref(Bn),"aria-valuemin":unref(Wn),"aria-valuemax":Qn.max,"aria-valuenow":unref(Zn),"aria-valuetext":unref(Dn),"aria-orientation":Qn.vertical?"vertical":"horizontal","aria-disabled":unref(_e),"onUpdate:modelValue":unref(bn)},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),Qn.showStops?(openBlock(),createElementBlock("div",_hoisted_2$d,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Sn),(lr,sr)=>(openBlock(),createElementBlock("div",{key:sr,class:normalizeClass(unref(oe).e("stop")),style:normalizeStyle$1(unref(En)(lr))},null,6))),128))])):createCommentVNode("v-if",!0),unref(Pn).length>0?(openBlock(),createElementBlock(Fragment,{key:2},[createBaseVNode("div",null,[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Pn),(lr,sr)=>(openBlock(),createElementBlock("div",{key:sr,style:normalizeStyle$1(unref(En)(lr.position)),class:normalizeClass([unref(oe).e("stop"),unref(oe).e("marks-stop")])},null,6))),128))]),createBaseVNode("div",{class:normalizeClass(unref(oe).e("marks"))},[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Pn),(lr,sr)=>(openBlock(),createBlock(unref(SliderMarker),{key:sr,mark:lr.mark,style:normalizeStyle$1(unref(En)(lr.position))},null,8,["mark","style"]))),128))],2)],64)):createCommentVNode("v-if",!0)],38),Qn.showInput&&!Qn.range?(openBlock(),createBlock(unref(ElInputNumber),{key:0,ref:"input","model-value":unref(Wn),class:normalizeClass(unref(oe).e("input")),step:Qn.step,disabled:unref(_e),controls:Qn.showInputControls,min:Qn.min,max:Qn.max,debounce:Qn.debounce,size:unref(xn),"onUpdate:modelValue":unref(Cn),onChange:unref(qe)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):createCommentVNode("v-if",!0)],42,_hoisted_1$h)}}});var Slider=_export_sfc$1(_sfc_main$A,[["__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(t,{slots:r}){const $=useNamespace("space"),V=computed(()=>`${t.prefixCls||$.b()}__item`);return()=>h$2("div",{class:V.value},renderSlot(r,"default"))}}),SIZE_MAP={small:8,default:12,large:16};function useSpace(t){const r=useNamespace("space"),$=computed(()=>[r.b(),r.m(t.direction),t.class]),V=ref(0),oe=ref(0),ie=computed(()=>{const ue=t.wrap||t.fill?{flexWrap:"wrap",marginBottom:`-${oe.value}px`}:{},de={alignItems:t.alignment};return[ue,de,t.style]}),le=computed(()=>{const ue={paddingBottom:`${oe.value}px`,marginRight:`${V.value}px`},de=t.fill?{flexGrow:1,minWidth:`${t.fillRatio}%`}:{};return[ue,de]});return watchEffect(()=>{const{size:ue="small",wrap:de,direction:pe,fill:he}=t;if(isArray$c(ue)){const[_e=0,$e=0]=ue;V.value=_e,oe.value=$e}else{let _e;isNumber$4(ue)?_e=ue:_e=SIZE_MAP[ue||"small"]||SIZE_MAP.small,(de||he)&&pe==="horizontal"?V.value=oe.value=_e:pe==="horizontal"?(V.value=_e,oe.value=0):(oe.value=_e,V.value=0)}}),{classes:$,containerStyle:ie,itemStyle:le}}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:t=>isVNode$1(t)||isNumber$4(t)||isString$6(t)},wrap:Boolean,fill:Boolean,fillRatio:{type:Number,default:100},size:{type:[String,Array,Number],values:componentSizes,validator:t=>isNumber$4(t)||isArray$c(t)&&t.length===2&&t.every(isNumber$4)}}),Space=defineComponent({name:"ElSpace",props:spaceProps,setup(t,{slots:r}){const{classes:$,containerStyle:V,itemStyle:oe}=useSpace(t);function ie(le,ue="",de=[]){const{prefixCls:pe}=t;return le.forEach((he,_e)=>{isFragment(he)?isArray$c(he.children)&&he.children.forEach(($e,Ie)=>{isFragment($e)&&isArray$c($e.children)?ie($e.children,`${ue+Ie}-`,de):de.push(createVNode(SpaceItem,{style:oe.value,prefixCls:pe,key:`nested-${ue+Ie}`},{default:()=>[$e]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}):isValidElementNode(he)&&de.push(createVNode(SpaceItem,{style:oe.value,prefixCls:pe,key:`LoopKey${ue+_e}`},{default:()=>[he]},PatchFlags.PROPS|PatchFlags.STYLE,["style","prefixCls"]))}),de}return()=>{var le;const{spacer:ue,direction:de}=t,pe=renderSlot(r,"default",{key:0},()=>[]);if(((le=pe.children)!=null?le:[]).length===0)return null;if(isArray$c(pe.children)){let he=ie(pe.children);if(ue){const _e=he.length-1;he=he.reduce(($e,Ie,Ve)=>{const Fe=[...$e,Ie];return Ve!==_e&&Fe.push(createVNode("span",{style:[oe.value,de==="vertical"?"width: 100%":null],key:Ve},[isVNode$1(ue)?ue:createTextVNode(ue,PatchFlags.TEXT)],PatchFlags.STYLE)),Fe},[])}return createVNode("div",{class:$.value,style:V.value},he,PatchFlags.STYLE|PatchFlags.CLASS)}return pe.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$z=defineComponent({...__default__$p,props:statisticProps,setup(t,{expose:r}){const $=t,V=useNamespace("statistic"),oe=computed(()=>{const{value:ie,formatter:le,precision:ue,decimalSeparator:de,groupSeparator:pe}=$;if(isFunction$5(le))return le(ie);if(!isNumber$4(ie))return ie;let[he,_e=""]=String(ie).split(".");return _e=_e.padEnd(ue,"0").slice(0,ue>0?ue:0),he=he.replace(/\B(?=(\d{3})+(?!\d))/g,pe),[he,_e].join(_e?de:"")});return r({displayValue:oe}),(ie,le)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(V).b())},[ie.$slots.title||ie.title?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("head"))},[renderSlot(ie.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(ie.title),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(V).e("content"))},[ie.$slots.prefix||ie.prefix?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V).e("prefix"))},[renderSlot(ie.$slots,"prefix",{},()=>[createBaseVNode("span",null,toDisplayString$1(ie.prefix),1)])],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{class:normalizeClass(unref(V).e("number")),style:normalizeStyle$1(ie.valueStyle)},toDisplayString$1(unref(oe)),7),ie.$slots.suffix||ie.suffix?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(V).e("suffix"))},[renderSlot(ie.$slots,"suffix",{},()=>[createBaseVNode("span",null,toDisplayString$1(ie.suffix),1)])],2)):createCommentVNode("v-if",!0)],2)],2))}});var Statistic=_export_sfc$1(_sfc_main$z,[["__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]:t=>isNumber$4(t)},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=t=>isNumber$4(t)?new Date(t).getTime():t.valueOf(),formatTime$2=(t,r)=>{let $=t;const V=/\[([^\]]*)]/g;return timeUnits$1.reduce((ie,[le,ue])=>{const de=new RegExp(`${le}+(?![^\\[\\]]*\\])`,"g");if(de.test(ie)){const pe=Math.floor($/ue);return $-=pe*ue,ie.replace(de,he=>String(pe).padStart(he.length,"0"))}return ie},r).replace(V,"$1")},__default__$o=defineComponent({name:"ElCountdown"}),_sfc_main$y=defineComponent({...__default__$o,props:countdownProps,emits:countdownEmits,setup(t,{expose:r,emit:$}){const V=t;let oe;const ie=ref(getTime$1(V.value)-Date.now()),le=computed(()=>formatTime$2(ie.value,V.format)),ue=he=>formatTime$2(he,V.format),de=()=>{oe&&(cAF(oe),oe=void 0)},pe=()=>{const he=getTime$1(V.value),_e=()=>{let $e=he-Date.now();$("change",$e),$e<=0?($e=0,de(),$("finish")):oe=rAF(_e),ie.value=$e};oe=rAF(_e)};return watch(()=>[V.value,V.format],()=>{de(),pe()},{immediate:!0}),onBeforeUnmount(()=>{de()}),r({displayValue:le}),(he,_e)=>(openBlock(),createBlock(unref(ElStatistic),{value:ie.value,title:he.title,prefix:he.prefix,suffix:he.suffix,"value-style":he.valueStyle,formatter:ue},createSlots({_:2},[renderList(he.$slots,($e,Ie)=>({name:Ie,fn:withCtx(()=>[renderSlot(he.$slots,Ie)])}))]),1032,["value","title","prefix","suffix","value-style"]))}});var Countdown=_export_sfc$1(_sfc_main$y,[["__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]:(t,r)=>[t,r].every(isNumber$4)},__default__$n=defineComponent({name:"ElSteps"}),_sfc_main$x=defineComponent({...__default__$n,props:stepsProps,emits:stepsEmits,setup(t,{emit:r}){const $=t,V=useNamespace("steps"),{children:oe,addChild:ie,removeChild:le}=useOrderedChildren(getCurrentInstance(),"ElStep");return watch(oe,()=>{oe.value.forEach((ue,de)=>{ue.setIndex(de)})}),provide("ElSteps",{props:$,steps:oe,addStep:ie,removeStep:le}),watch(()=>$.active,(ue,de)=>{r(CHANGE_EVENT,ue,de)}),(ue,de)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b(),unref(V).m(ue.simple?"simple":ue.direction)])},[renderSlot(ue.$slots,"default")],2))}});var Steps=_export_sfc$1(_sfc_main$x,[["__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$w=defineComponent({...__default__$m,props:stepProps,setup(t){const r=t,$=useNamespace("step"),V=ref(-1),oe=ref({}),ie=ref(""),le=inject("ElSteps"),ue=getCurrentInstance();onMounted(()=>{watch([()=>le.props.active,()=>le.props.processStatus,()=>le.props.finishStatus],([bn])=>{hn(bn)},{immediate:!0})}),onBeforeUnmount(()=>{le.removeStep(Cn.uid)});const de=computed(()=>r.status||ie.value),pe=computed(()=>{const bn=le.steps.value[V.value-1];return bn?bn.currentStatus:"wait"}),he=computed(()=>le.props.alignCenter),_e=computed(()=>le.props.direction==="vertical"),$e=computed(()=>le.props.simple),Ie=computed(()=>le.steps.value.length),Ve=computed(()=>{var bn;return((bn=le.steps.value[Ie.value-1])==null?void 0:bn.uid)===(ue==null?void 0:ue.uid)}),Fe=computed(()=>$e.value?"":le.props.space),Ue=computed(()=>[$.b(),$.is($e.value?"simple":le.props.direction),$.is("flex",Ve.value&&!Fe.value&&!he.value),$.is("center",he.value&&!_e.value&&!$e.value)]),qe=computed(()=>{const bn={flexBasis:isNumber$4(Fe.value)?`${Fe.value}px`:Fe.value?Fe.value:`${100/(Ie.value-(he.value?0:1))}%`};return _e.value||Ve.value&&(bn.maxWidth=`${100/Ie.value}%`),bn}),Et=bn=>{V.value=bn},Lt=bn=>{const Sn=bn==="wait",En={transitionDelay:`${Sn?"-":""}${150*V.value}ms`},wn=bn===le.props.processStatus||Sn?0:100;En.borderWidth=wn&&!$e.value?"1px":0,En[le.props.direction==="vertical"?"height":"width"]=`${wn}%`,oe.value=En},hn=bn=>{bn>V.value?ie.value=le.props.finishStatus:bn===V.value&&pe.value!=="error"?ie.value=le.props.processStatus:ie.value="wait";const Sn=le.steps.value[V.value-1];Sn&&Sn.calcProgress(ie.value)},Cn=reactive({uid:ue.uid,currentStatus:de,setIndex:Et,calcProgress:Lt});return le.addStep(Cn),(bn,Sn)=>(openBlock(),createElementBlock("div",{style:normalizeStyle$1(unref(qe)),class:normalizeClass(unref(Ue))},[createCommentVNode(" icon & line "),createBaseVNode("div",{class:normalizeClass([unref($).e("head"),unref($).is(unref(de))])},[unref($e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("line"))},[createBaseVNode("i",{class:normalizeClass(unref($).e("line-inner")),style:normalizeStyle$1(oe.value)},null,6)],2)),createBaseVNode("div",{class:normalizeClass([unref($).e("icon"),unref($).is(bn.icon||bn.$slots.icon?"icon":"text")])},[renderSlot(bn.$slots,"icon",{},()=>[bn.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($).e("icon-inner"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(bn.icon)))]),_:1},8,["class"])):unref(de)==="success"?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref($).e("icon-inner"),unref($).is("status")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):unref(de)==="error"?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass([unref($).e("icon-inner"),unref($).is("status")])},{default:withCtx(()=>[createVNode(unref(close_default))]),_:1},8,["class"])):unref($e)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:3,class:normalizeClass(unref($).e("icon-inner"))},toDisplayString$1(V.value+1),3))])],2)],2),createCommentVNode(" title & description "),createBaseVNode("div",{class:normalizeClass(unref($).e("main"))},[createBaseVNode("div",{class:normalizeClass([unref($).e("title"),unref($).is(unref(de))])},[renderSlot(bn.$slots,"title",{},()=>[createTextVNode(toDisplayString$1(bn.title),1)])],2),unref($e)?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref($).e("arrow"))},null,2)):(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref($).e("description"),unref($).is(unref(de))])},[renderSlot(bn.$slots,"description",{},()=>[createTextVNode(toDisplayString$1(bn.description),1)])],2))],2)],6))}});var Step=_export_sfc$1(_sfc_main$w,[["__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},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},size:{type:String,validator:isValidComponentSize},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},inactiveActionIcon:{type:iconPropType},activeActionIcon:{type:iconPropType},activeIcon:{type:iconPropType},inactiveIcon:{type:iconPropType},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{type:String,default:""},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:definePropType(Function)},id:String,tabindex:{type:[String,Number]},value:{type:[Boolean,String,Number],default:!1}}),switchEmits={[UPDATE_MODEL_EVENT]:t=>isBoolean$3(t)||isString$6(t)||isNumber$4(t),[CHANGE_EVENT]:t=>isBoolean$3(t)||isString$6(t)||isNumber$4(t),[INPUT_EVENT]:t=>isBoolean$3(t)||isString$6(t)||isNumber$4(t)},_hoisted_1$g=["onClick"],_hoisted_2$c=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],_hoisted_3$7=["aria-hidden"],_hoisted_4$4=["aria-hidden"],_hoisted_5$2=["aria-hidden"],COMPONENT_NAME$8="ElSwitch",__default__$l=defineComponent({name:COMPONENT_NAME$8}),_sfc_main$v=defineComponent({...__default__$l,props:switchProps,emits:switchEmits,setup(t,{expose:r,emit:$}){const V=t,oe=getCurrentInstance(),{formItem:ie}=useFormItem(),le=useFormSize(),ue=useNamespace("switch");(En=>{En.forEach(wn=>{useDeprecated({from:wn[0],replacement:wn[1],scope:COMPONENT_NAME$8,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},computed(()=>{var $n;return!!(($n=oe.vnode.props)!=null&&$n[wn[2]])}))})})([['"value"','"model-value" or "v-model"',"value"],['"active-color"',"CSS var `--el-switch-on-color`","activeColor"],['"inactive-color"',"CSS var `--el-switch-off-color`","inactiveColor"],['"border-color"',"CSS var `--el-switch-border-color`","borderColor"]]);const{inputId:pe}=useFormItemInputId(V,{formItemContext:ie}),he=useFormDisabled(computed(()=>V.loading)),_e=ref(V.modelValue!==!1),$e=ref(),Ie=ref(),Ve=computed(()=>[ue.b(),ue.m(le.value),ue.is("disabled",he.value),ue.is("checked",Lt.value)]),Fe=computed(()=>[ue.e("label"),ue.em("label","left"),ue.is("active",!Lt.value)]),Ue=computed(()=>[ue.e("label"),ue.em("label","right"),ue.is("active",Lt.value)]),qe=computed(()=>({width:addUnit(V.width)}));watch(()=>V.modelValue,()=>{_e.value=!0}),watch(()=>V.value,()=>{_e.value=!1});const Et=computed(()=>_e.value?V.modelValue:V.value),Lt=computed(()=>Et.value===V.activeValue);[V.activeValue,V.inactiveValue].includes(Et.value)||($(UPDATE_MODEL_EVENT,V.inactiveValue),$(CHANGE_EVENT,V.inactiveValue),$(INPUT_EVENT,V.inactiveValue)),watch(Lt,En=>{var wn;$e.value.checked=En,V.validateEvent&&((wn=ie==null?void 0:ie.validate)==null||wn.call(ie,"change").catch($n=>void 0))});const hn=()=>{const En=Lt.value?V.inactiveValue:V.activeValue;$(UPDATE_MODEL_EVENT,En),$(CHANGE_EVENT,En),$(INPUT_EVENT,En),nextTick(()=>{$e.value.checked=Lt.value})},Cn=()=>{if(he.value)return;const{beforeChange:En}=V;if(!En){hn();return}const wn=En();[isPromise(wn),isBoolean$3(wn)].includes(!0)||throwError$1(COMPONENT_NAME$8,"beforeChange must return type `Promise` or `boolean`"),isPromise(wn)?wn.then(Tn=>{Tn&&hn()}).catch(Tn=>{}):wn&&hn()},bn=computed(()=>ue.cssVarBlock({...V.activeColor?{"on-color":V.activeColor}:null,...V.inactiveColor?{"off-color":V.inactiveColor}:null,...V.borderColor?{"border-color":V.borderColor}:null})),Sn=()=>{var En,wn;(wn=(En=$e.value)==null?void 0:En.focus)==null||wn.call(En)};return onMounted(()=>{$e.value.checked=Lt.value}),r({focus:Sn,checked:Lt}),(En,wn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(Ve)),style:normalizeStyle$1(unref(bn)),onClick:withModifiers(Cn,["prevent"])},[createBaseVNode("input",{id:unref(pe),ref_key:"input",ref:$e,class:normalizeClass(unref(ue).e("input")),type:"checkbox",role:"switch","aria-checked":unref(Lt),"aria-disabled":unref(he),name:En.name,"true-value":En.activeValue,"false-value":En.inactiveValue,disabled:unref(he),tabindex:En.tabindex,onChange:hn,onKeydown:withKeys(Cn,["enter"])},null,42,_hoisted_2$c),!En.inlinePrompt&&(En.inactiveIcon||En.inactiveText)?(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(Fe))},[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(Lt)},toDisplayString$1(En.inactiveText),9,_hoisted_3$7)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("span",{ref_key:"core",ref:Ie,class:normalizeClass(unref(ue).e("core")),style:normalizeStyle$1(unref(qe))},[En.inlinePrompt?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(ue).e("inner"))},[En.activeIcon||En.inactiveIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).is("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Lt)?En.activeIcon:En.inactiveIcon)))]),_:1},8,["class"])):En.activeText||En.inactiveText?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(ue).is("text")),"aria-hidden":!unref(Lt)},toDisplayString$1(unref(Lt)?En.activeText:En.inactiveText),11,_hoisted_4$4)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(ue).e("action"))},[En.loading?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(ue).is("loading"))},{default:withCtx(()=>[createVNode(unref(loading_default))]),_:1},8,["class"])):En.activeActionIcon&&unref(Lt)?(openBlock(),createBlock(unref(ElIcon),{key:1},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.activeActionIcon)))]),_:1})):En.inactiveActionIcon&&!unref(Lt)?(openBlock(),createBlock(unref(ElIcon),{key:2},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(En.inactiveActionIcon)))]),_:1})):createCommentVNode("v-if",!0)],2)],6),!En.inlinePrompt&&(En.activeIcon||En.activeText)?(openBlock(),createElementBlock("span",{key:1,class:normalizeClass(unref(Ue))},[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(Lt)},toDisplayString$1(En.activeText),9,_hoisted_5$2)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0)],14,_hoisted_1$g))}});var Switch=_export_sfc$1(_sfc_main$v,[["__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(t){var r=""+t,$=matchHtmlRegExp.exec(r);if(!$)return r;var V,oe="",ie=0,le=0;for(ie=$.index;ietypeof pe=="string"?get$1(ue,pe):pe(ue,de,t))):(r!=="$key"&&isObject$a(ue)&&"$value"in ue&&(ue=ue.$value),[isObject$a(ue)?get$1(ue,r):ue])},le=function(ue,de){if(V)return V(ue.value,de.value);for(let pe=0,he=ue.key.length;pede.key[pe])return 1}return 0};return t.map((ue,de)=>({value:ue,index:de,key:ie?ie(ue,de):null})).sort((ue,de)=>{let pe=le(ue,de);return pe||(pe=ue.index-de.index),pe*+$}).map(ue=>ue.value)},getColumnById=function(t,r){let $=null;return t.columns.forEach(V=>{V.id===r&&($=V)}),$},getColumnByKey=function(t,r){let $=null;for(let V=0;V{if(!t)throw new Error("Row is required when get row identity");if(typeof r=="string"){if(!r.includes("."))return`${t[r]}`;const $=r.split(".");let V=t;for(const oe of $)V=V[oe];return`${V}`}else if(typeof r=="function")return r.call(null,t)},getKeysMap=function(t,r){const $={};return(t||[]).forEach((V,oe)=>{$[getRowIdentity(V,r)]={row:V,index:oe}}),$};function mergeOptions$1(t,r){const $={};let V;for(V in t)$[V]=t[V];for(V in r)if(hasOwn$4(r,V)){const oe=r[V];typeof oe<"u"&&($[V]=oe)}return $}function parseWidth(t){return t===""||t!==void 0&&(t=Number.parseInt(t,10),Number.isNaN(t)&&(t="")),t}function parseMinWidth(t){return t===""||t!==void 0&&(t=parseWidth(t),Number.isNaN(t)&&(t=80)),t}function parseHeight(t){return typeof t=="number"?t:typeof t=="string"?/^\d+(?:px)?$/.test(t)?Number.parseInt(t,10):t:null}function compose(...t){return t.length===0?r=>r:t.length===1?t[0]:t.reduce((r,$)=>(...V)=>r($(...V)))}function toggleRowStatus(t,r,$){let V=!1;const oe=t.indexOf(r),ie=oe!==-1,le=ue=>{ue==="add"?t.push(r):t.splice(oe,1),V=!0,isArray$c(r.children)&&r.children.forEach(de=>{toggleRowStatus(t,de,$??!ie)})};return isBoolean$3($)?$&&!ie?le("add"):!$&&ie&&le("remove"):le(ie?"remove":"add"),V}function walkTreeNode(t,r,$="children",V="hasChildren"){const oe=le=>!(Array.isArray(le)&&le.length);function ie(le,ue,de){r(le,ue,de),ue.forEach(pe=>{if(pe[V]){r(pe,null,de+1);return}const he=pe[$];oe(he)||ie(pe,he,de+1)})}t.forEach(le=>{if(le[V]){r(le,null,0);return}const ue=le[$];oe(ue)||ie(le,ue,0)})}let removePopper;function createTablePopper(t,r,$,V,oe){oe=merge$4({enterable:!0,showArrow:!0},oe);const ie=t==null?void 0:t.dataset.prefix,le=t==null?void 0:t.querySelector(`.${ie}-scrollbar__wrap`);function ue(){const Ue=oe.effect==="light",qe=document.createElement("div");return qe.className=[`${ie}-popper`,Ue?"is-light":"is-dark",oe.popperClass||""].join(" "),$=escapeHtml$2($),qe.innerHTML=$,qe.style.zIndex=String(V()),t==null||t.appendChild(qe),qe}function de(){const Ue=document.createElement("div");return Ue.className=`${ie}-popper__arrow`,Ue}function pe(){he&&he.update()}removePopper==null||removePopper(),removePopper=()=>{try{he&&he.destroy(),Ie&&(t==null||t.removeChild(Ie)),r.removeEventListener("mouseenter",_e),r.removeEventListener("mouseleave",$e),le==null||le.removeEventListener("scroll",removePopper),removePopper=void 0}catch{}};let he=null,_e=pe,$e=removePopper;oe.enterable&&({onOpen:_e,onClose:$e}=useDelayedToggle({showAfter:oe.showAfter,hideAfter:oe.hideAfter,open:pe,close:removePopper}));const Ie=ue();Ie.onmouseenter=_e,Ie.onmouseleave=$e;const Ve=[];if(oe.offset&&Ve.push({name:"offset",options:{offset:[0,oe.offset]}}),oe.showArrow){const Ue=Ie.appendChild(de());Ve.push({name:"arrow",options:{element:Ue,padding:10}})}const Fe=oe.popperOptions||{};return he=yn(r,Ie,{placement:oe.placement||"top",strategy:"fixed",...Fe,modifiers:Fe.modifiers?Ve.concat(Fe.modifiers):Ve}),r.addEventListener("mouseenter",_e),r.addEventListener("mouseleave",$e),le==null||le.addEventListener("scroll",removePopper),he}function getCurrentColumns(t){return t.children?flatMap(t.children,getCurrentColumns):[t]}function getColSpan(t,r){return t+r.colSpan}const isFixedColumn=(t,r,$,V)=>{let oe=0,ie=t;const le=$.states.columns.value;if(V){const de=getCurrentColumns(V[t]);oe=le.slice(0,le.indexOf(de[0])).reduce(getColSpan,0),ie=oe+de.reduce(getColSpan,0)-1}else oe=t;let ue;switch(r){case"left":ie<$.states.fixedLeafColumnsLength.value&&(ue="left");break;case"right":oe>=le.length-$.states.rightFixedLeafColumnsLength.value&&(ue="right");break;default:ie<$.states.fixedLeafColumnsLength.value?ue="left":oe>=le.length-$.states.rightFixedLeafColumnsLength.value&&(ue="right")}return ue?{direction:ue,start:oe,after:ie}:{}},getFixedColumnsClass=(t,r,$,V,oe,ie=0)=>{const le=[],{direction:ue,start:de,after:pe}=isFixedColumn(r,$,V,oe);if(ue){const he=ue==="left";le.push(`${t}-fixed-column--${ue}`),he&&pe+ie===V.states.fixedLeafColumnsLength.value-1?le.push("is-last-column"):!he&&de-ie===V.states.columns.value.length-V.states.rightFixedLeafColumnsLength.value&&le.push("is-first-column")}return le};function getOffset(t,r){return t+(r.realWidth===null||Number.isNaN(r.realWidth)?Number(r.width):r.realWidth)}const getFixedColumnOffset=(t,r,$,V)=>{const{direction:oe,start:ie=0,after:le=0}=isFixedColumn(t,r,$,V);if(!oe)return;const ue={},de=oe==="left",pe=$.states.columns.value;return de?ue.left=pe.slice(0,ie).reduce(getOffset,0):ue.right=pe.slice(le+1).reverse().reduce(getOffset,0),ue},ensurePosition=(t,r)=>{t&&(Number.isNaN(t[r])||(t[r]=`${t[r]}px`))};function useExpand(t){const r=getCurrentInstance(),$=ref(!1),V=ref([]);return{updateExpandRows:()=>{const de=t.data.value||[],pe=t.rowKey.value;if($.value)V.value=de.slice();else if(pe){const he=getKeysMap(V.value,pe);V.value=de.reduce((_e,$e)=>{const Ie=getRowIdentity($e,pe);return he[Ie]&&_e.push($e),_e},[])}else V.value=[]},toggleRowExpansion:(de,pe)=>{toggleRowStatus(V.value,de,pe)&&r.emit("expand-change",de,V.value.slice())},setExpandRowKeys:de=>{r.store.assertRowKey();const pe=t.data.value||[],he=t.rowKey.value,_e=getKeysMap(pe,he);V.value=de.reduce(($e,Ie)=>{const Ve=_e[Ie];return Ve&&$e.push(Ve.row),$e},[])},isRowExpanded:de=>{const pe=t.rowKey.value;return pe?!!getKeysMap(V.value,pe)[getRowIdentity(de,pe)]:V.value.includes(de)},states:{expandRows:V,defaultExpandAll:$}}}function useCurrent(t){const r=getCurrentInstance(),$=ref(null),V=ref(null),oe=pe=>{r.store.assertRowKey(),$.value=pe,le(pe)},ie=()=>{$.value=null},le=pe=>{const{data:he,rowKey:_e}=t;let $e=null;_e.value&&($e=(unref(he)||[]).find(Ie=>getRowIdentity(Ie,_e.value)===pe)),V.value=$e,r.emit("current-change",V.value,null)};return{setCurrentRowKey:oe,restoreCurrentRowKey:ie,setCurrentRowByKey:le,updateCurrentRow:pe=>{const he=V.value;if(pe&&pe!==he){V.value=pe,r.emit("current-change",V.value,he);return}!pe&&he&&(V.value=null,r.emit("current-change",null,he))},updateCurrentRowData:()=>{const pe=t.rowKey.value,he=t.data.value||[],_e=V.value;if(!he.includes(_e)&&_e){if(pe){const $e=getRowIdentity(_e,pe);le($e)}else V.value=null;V.value===null&&r.emit("current-change",null,_e)}else $.value&&(le($.value),ie())},states:{_currentRowKey:$,currentRow:V}}}function useTree$2(t){const r=ref([]),$=ref({}),V=ref(16),oe=ref(!1),ie=ref({}),le=ref("hasChildren"),ue=ref("children"),de=getCurrentInstance(),pe=computed(()=>{if(!t.rowKey.value)return{};const qe=t.data.value||[];return _e(qe)}),he=computed(()=>{const qe=t.rowKey.value,Et=Object.keys(ie.value),Lt={};return Et.length&&Et.forEach(hn=>{if(ie.value[hn].length){const Cn={children:[]};ie.value[hn].forEach(bn=>{const Sn=getRowIdentity(bn,qe);Cn.children.push(Sn),bn[le.value]&&!Lt[Sn]&&(Lt[Sn]={children:[]})}),Lt[hn]=Cn}}),Lt}),_e=qe=>{const Et=t.rowKey.value,Lt={};return walkTreeNode(qe,(hn,Cn,bn)=>{const Sn=getRowIdentity(hn,Et);Array.isArray(Cn)?Lt[Sn]={children:Cn.map(En=>getRowIdentity(En,Et)),level:bn}:oe.value&&(Lt[Sn]={children:[],lazy:!0,level:bn})},ue.value,le.value),Lt},$e=(qe=!1,Et=(Lt=>(Lt=de.store)==null?void 0:Lt.states.defaultExpandAll.value)())=>{var Lt;const hn=pe.value,Cn=he.value,bn=Object.keys(hn),Sn={};if(bn.length){const En=unref($),wn=[],$n=(xn,An)=>{if(qe)return r.value?Et||r.value.includes(An):!!(Et||xn!=null&&xn.expanded);{const Mn=Et||r.value&&r.value.includes(An);return!!(xn!=null&&xn.expanded||Mn)}};bn.forEach(xn=>{const An=En[xn],Mn={...hn[xn]};if(Mn.expanded=$n(An,xn),Mn.lazy){const{loaded:Vn=!1,loading:Bn=!1}=An||{};Mn.loaded=!!Vn,Mn.loading=!!Bn,wn.push(xn)}Sn[xn]=Mn});const Tn=Object.keys(Cn);oe.value&&Tn.length&&wn.length&&Tn.forEach(xn=>{const An=En[xn],Mn=Cn[xn].children;if(wn.includes(xn)){if(Sn[xn].children.length!==0)throw new Error("[ElTable]children must be an empty array.");Sn[xn].children=Mn}else{const{loaded:Vn=!1,loading:Bn=!1}=An||{};Sn[xn]={lazy:!0,loaded:!!Vn,loading:!!Bn,expanded:$n(An,xn),children:Mn,level:""}}})}$.value=Sn,(Lt=de.store)==null||Lt.updateTableScrollY()};watch(()=>r.value,()=>{$e(!0)}),watch(()=>pe.value,()=>{$e()}),watch(()=>he.value,()=>{$e()});const Ie=qe=>{r.value=qe,$e()},Ve=(qe,Et)=>{de.store.assertRowKey();const Lt=t.rowKey.value,hn=getRowIdentity(qe,Lt),Cn=hn&&$.value[hn];if(hn&&Cn&&"expanded"in Cn){const bn=Cn.expanded;Et=typeof Et>"u"?!Cn.expanded:Et,$.value[hn].expanded=Et,bn!==Et&&de.emit("expand-change",qe,Et),de.store.updateTableScrollY()}},Fe=qe=>{de.store.assertRowKey();const Et=t.rowKey.value,Lt=getRowIdentity(qe,Et),hn=$.value[Lt];oe.value&&hn&&"loaded"in hn&&!hn.loaded?Ue(qe,Lt,hn):Ve(qe,void 0)},Ue=(qe,Et,Lt)=>{const{load:hn}=de.props;hn&&!$.value[Et].loaded&&($.value[Et].loading=!0,hn(qe,Lt,Cn=>{if(!Array.isArray(Cn))throw new TypeError("[ElTable] data must be an array");$.value[Et].loading=!1,$.value[Et].loaded=!0,$.value[Et].expanded=!0,Cn.length&&(ie.value[Et]=Cn),de.emit("expand-change",qe,!0)}))};return{loadData:Ue,loadOrToggle:Fe,toggleTreeExpansion:Ve,updateTreeExpandKeys:Ie,updateTreeData:$e,normalize:_e,states:{expandRowKeys:r,treeData:$,indent:V,lazy:oe,lazyTreeNodeMap:ie,lazyColumnIdentifier:le,childrenColumnName:ue}}}const sortData=(t,r)=>{const $=r.sortingColumn;return!$||typeof $.sortable=="string"?t:orderBy(t,r.sortProp,r.sortOrder,$.sortMethod,$.sortBy)},doFlattenColumns=t=>{const r=[];return t.forEach($=>{$.children&&$.children.length>0?r.push.apply(r,doFlattenColumns($.children)):r.push($)}),r};function useWatcher$1(){var t;const r=getCurrentInstance(),{size:$}=toRefs((t=r.proxy)==null?void 0:t.$props),V=ref(null),oe=ref([]),ie=ref([]),le=ref(!1),ue=ref([]),de=ref([]),pe=ref([]),he=ref([]),_e=ref([]),$e=ref([]),Ie=ref([]),Ve=ref([]),Fe=[],Ue=ref(0),qe=ref(0),Et=ref(0),Lt=ref(!1),hn=ref([]),Cn=ref(!1),bn=ref(!1),Sn=ref(null),En=ref({}),wn=ref(null),$n=ref(null),Tn=ref(null),xn=ref(null),An=ref(null);watch(oe,()=>r.state&&Dn(!1),{deep:!0});const Mn=()=>{if(!V.value)throw new Error("[ElTable] prop row-key is required")},Vn=Nr=>{var dr;(dr=Nr.children)==null||dr.forEach(ar=>{ar.fixed=Nr.fixed,Vn(ar)})},Bn=()=>{ue.value.forEach(Sr=>{Vn(Sr)}),he.value=ue.value.filter(Sr=>Sr.fixed===!0||Sr.fixed==="left"),_e.value=ue.value.filter(Sr=>Sr.fixed==="right"),he.value.length>0&&ue.value[0]&&ue.value[0].type==="selection"&&!ue.value[0].fixed&&(ue.value[0].fixed=!0,he.value.unshift(ue.value[0]));const Nr=ue.value.filter(Sr=>!Sr.fixed);de.value=[].concat(he.value).concat(Nr).concat(_e.value);const dr=doFlattenColumns(Nr),ar=doFlattenColumns(he.value),tr=doFlattenColumns(_e.value);Ue.value=dr.length,qe.value=ar.length,Et.value=tr.length,pe.value=[].concat(ar).concat(dr).concat(tr),le.value=he.value.length>0||_e.value.length>0},Dn=(Nr,dr=!1)=>{Nr&&Bn(),dr?r.state.doLayout():r.state.debouncedUpdateLayout()},Ln=Nr=>hn.value.includes(Nr),Pn=()=>{Lt.value=!1,hn.value.length&&(hn.value=[],r.emit("selection-change",[]))},Fn=()=>{let Nr;if(V.value){Nr=[];const dr=getKeysMap(hn.value,V.value),ar=getKeysMap(oe.value,V.value);for(const tr in dr)hasOwn$4(dr,tr)&&!ar[tr]&&Nr.push(dr[tr].row)}else Nr=hn.value.filter(dr=>!oe.value.includes(dr));if(Nr.length){const dr=hn.value.filter(ar=>!Nr.includes(ar));hn.value=dr,r.emit("selection-change",dr.slice())}},Un=()=>(hn.value||[]).slice(),Wn=(Nr,dr=void 0,ar=!0)=>{if(toggleRowStatus(hn.value,Nr,dr)){const Sr=(hn.value||[]).slice();ar&&r.emit("select",Sr,Nr),r.emit("selection-change",Sr)}},Zn=()=>{var Nr,dr;const ar=bn.value?!Lt.value:!(Lt.value||hn.value.length);Lt.value=ar;let tr=!1,Sr=0;const qn=(dr=(Nr=r==null?void 0:r.store)==null?void 0:Nr.states)==null?void 0:dr.rowKey.value;oe.value.forEach((kr,Dr)=>{const Hr=Dr+Sr;Sn.value?Sn.value.call(null,kr,Hr)&&toggleRowStatus(hn.value,kr,ar)&&(tr=!0):toggleRowStatus(hn.value,kr,ar)&&(tr=!0),Sr+=Qn(getRowIdentity(kr,qn))}),tr&&r.emit("selection-change",hn.value?hn.value.slice():[]),r.emit("select-all",hn.value)},or=()=>{const Nr=getKeysMap(hn.value,V.value);oe.value.forEach(dr=>{const ar=getRowIdentity(dr,V.value),tr=Nr[ar];tr&&(hn.value[tr.index]=dr)})},br=()=>{var Nr,dr,ar;if(((Nr=oe.value)==null?void 0:Nr.length)===0){Lt.value=!1;return}let tr;V.value&&(tr=getKeysMap(hn.value,V.value));const Sr=function(Hr){return tr?!!tr[getRowIdentity(Hr,V.value)]:hn.value.includes(Hr)};let qn=!0,kr=0,Dr=0;for(let Hr=0,Gr=(oe.value||[]).length;Hr{var dr;if(!r||!r.store)return 0;const{treeData:ar}=r.store.states;let tr=0;const Sr=(dr=ar.value[Nr])==null?void 0:dr.children;return Sr&&(tr+=Sr.length,Sr.forEach(qn=>{tr+=Qn(qn)})),tr},Gn=(Nr,dr)=>{Array.isArray(Nr)||(Nr=[Nr]);const ar={};return Nr.forEach(tr=>{En.value[tr.id]=dr,ar[tr.columnKey||tr.id]=dr}),ar},Yn=(Nr,dr,ar)=>{$n.value&&$n.value!==Nr&&($n.value.order=null),$n.value=Nr,Tn.value=dr,xn.value=ar},er=()=>{let Nr=unref(ie);Object.keys(En.value).forEach(dr=>{const ar=En.value[dr];if(!ar||ar.length===0)return;const tr=getColumnById({columns:pe.value},dr);tr&&tr.filterMethod&&(Nr=Nr.filter(Sr=>ar.some(qn=>tr.filterMethod.call(null,qn,Sr,tr))))}),wn.value=Nr},lr=()=>{oe.value=sortData(wn.value,{sortingColumn:$n.value,sortProp:Tn.value,sortOrder:xn.value})},sr=(Nr=void 0)=>{Nr&&Nr.filter||er(),lr()},zn=Nr=>{const{tableHeaderRef:dr}=r.refs;if(!dr)return;const ar=Object.assign({},dr.filterPanels),tr=Object.keys(ar);if(tr.length)if(typeof Nr=="string"&&(Nr=[Nr]),Array.isArray(Nr)){const Sr=Nr.map(qn=>getColumnByKey({columns:pe.value},qn));tr.forEach(qn=>{const kr=Sr.find(Dr=>Dr.id===qn);kr&&(kr.filteredValue=[])}),r.store.commit("filterChange",{column:Sr,values:[],silent:!0,multi:!0})}else tr.forEach(Sr=>{const qn=pe.value.find(kr=>kr.id===Sr);qn&&(qn.filteredValue=[])}),En.value={},r.store.commit("filterChange",{column:{},values:[],silent:!0})},Kn=()=>{$n.value&&(Yn(null,null,null),r.store.commit("changeSortCondition",{silent:!0}))},{setExpandRowKeys:Jn,toggleRowExpansion:cr,updateExpandRows:_r,states:ur,isRowExpanded:wr}=useExpand({data:oe,rowKey:V}),{updateTreeExpandKeys:Cr,toggleTreeExpansion:mr,updateTreeData:Er,loadOrToggle:Tr,states:nr}=useTree$2({data:oe,rowKey:V}),{updateCurrentRowData:pr,updateCurrentRow:gr,setCurrentRowKey:$r,states:Rr}=useCurrent({data:oe,rowKey:V});return{assertRowKey:Mn,updateColumns:Bn,scheduleLayout:Dn,isSelected:Ln,clearSelection:Pn,cleanSelection:Fn,getSelectionRows:Un,toggleRowSelection:Wn,_toggleAllSelection:Zn,toggleAllSelection:null,updateSelectionByRowKey:or,updateAllSelected:br,updateFilters:Gn,updateCurrentRow:gr,updateSort:Yn,execFilter:er,execSort:lr,execQuery:sr,clearFilter:zn,clearSort:Kn,toggleRowExpansion:cr,setExpandRowKeysAdapter:Nr=>{Jn(Nr),Cr(Nr)},setCurrentRowKey:$r,toggleRowExpansionAdapter:(Nr,dr)=>{pe.value.some(({type:tr})=>tr==="expand")?cr(Nr,dr):mr(Nr,dr)},isRowExpanded:wr,updateExpandRows:_r,updateCurrentRowData:pr,loadOrToggle:Tr,updateTreeData:Er,states:{tableSize:$,rowKey:V,data:oe,_data:ie,isComplex:le,_columns:ue,originColumns:de,columns:pe,fixedColumns:he,rightFixedColumns:_e,leafColumns:$e,fixedLeafColumns:Ie,rightFixedLeafColumns:Ve,updateOrderFns:Fe,leafColumnsLength:Ue,fixedLeafColumnsLength:qe,rightFixedLeafColumnsLength:Et,isAllSelected:Lt,selection:hn,reserveSelection:Cn,selectOnIndeterminate:bn,selectable:Sn,filters:En,filteredData:wn,sortingColumn:$n,sortProp:Tn,sortOrder:xn,hoverRow:An,...ur,...nr,...Rr}}}function replaceColumn(t,r){return t.map($=>{var V;return $.id===r.id?r:((V=$.children)!=null&&V.length&&($.children=replaceColumn($.children,r)),$)})}function sortColumn(t){t.forEach(r=>{var $,V;r.no=($=r.getColumnIndex)==null?void 0:$.call(r),(V=r.children)!=null&&V.length&&sortColumn(r.children)}),t.sort((r,$)=>r.no-$.no)}function useStore(){const t=getCurrentInstance(),r=useWatcher$1();return{ns:useNamespace("table"),...r,mutations:{setData(le,ue){const de=unref(le._data)!==ue;le.data.value=ue,le._data.value=ue,t.store.execQuery(),t.store.updateCurrentRowData(),t.store.updateExpandRows(),t.store.updateTreeData(t.store.states.defaultExpandAll.value),unref(le.reserveSelection)?(t.store.assertRowKey(),t.store.updateSelectionByRowKey()):de?t.store.clearSelection():t.store.cleanSelection(),t.store.updateAllSelected(),t.$ready&&t.store.scheduleLayout()},insertColumn(le,ue,de,pe){const he=unref(le._columns);let _e=[];de?(de&&!de.children&&(de.children=[]),de.children.push(ue),_e=replaceColumn(he,de)):(he.push(ue),_e=he),sortColumn(_e),le._columns.value=_e,le.updateOrderFns.push(pe),ue.type==="selection"&&(le.selectable.value=ue.selectable,le.reserveSelection.value=ue.reserveSelection),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},updateColumnOrder(le,ue){var de;((de=ue.getColumnIndex)==null?void 0:de.call(ue))!==ue.no&&(sortColumn(le._columns.value),t.$ready&&t.store.updateColumns())},removeColumn(le,ue,de,pe){const he=unref(le._columns)||[];if(de)de.children.splice(de.children.findIndex($e=>$e.id===ue.id),1),nextTick(()=>{var $e;(($e=de.children)==null?void 0:$e.length)===0&&delete de.children}),le._columns.value=replaceColumn(he,de);else{const $e=he.indexOf(ue);$e>-1&&(he.splice($e,1),le._columns.value=he)}const _e=le.updateOrderFns.indexOf(pe);_e>-1&&le.updateOrderFns.splice(_e,1),t.$ready&&(t.store.updateColumns(),t.store.scheduleLayout())},sort(le,ue){const{prop:de,order:pe,init:he}=ue;if(de){const _e=unref(le.columns).find($e=>$e.property===de);_e&&(_e.order=pe,t.store.updateSort(_e,de,pe),t.store.commit("changeSortCondition",{init:he}))}},changeSortCondition(le,ue){const{sortingColumn:de,sortProp:pe,sortOrder:he}=le,_e=unref(de),$e=unref(pe),Ie=unref(he);Ie===null&&(le.sortingColumn.value=null,le.sortProp.value=null);const Ve={filter:!0};t.store.execQuery(Ve),(!ue||!(ue.silent||ue.init))&&t.emit("sort-change",{column:_e,prop:$e,order:Ie}),t.store.updateTableScrollY()},filterChange(le,ue){const{column:de,values:pe,silent:he}=ue,_e=t.store.updateFilters(de,pe);t.store.execQuery(),he||t.emit("filter-change",_e),t.store.updateTableScrollY()},toggleAllSelection(){t.store.toggleAllSelection()},rowSelectedChanged(le,ue){t.store.toggleRowSelection(ue),t.store.updateAllSelected()},setHoverRow(le,ue){le.hoverRow.value=ue},setCurrentRow(le,ue){t.store.updateCurrentRow(ue)}},commit:function(le,...ue){const de=t.store.mutations;if(de[le])de[le].apply(t,[t.store.states].concat(ue));else throw new Error(`Action not found: ${le}`)},updateTableScrollY:function(){nextTick(()=>t.layout.updateScrollY.apply(t.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(t,r){if(!t)throw new Error("Table is required.");const $=useStore();return $.toggleAllSelection=debounce($._toggleAllSelection,10),Object.keys(InitialStateMap).forEach(V=>{handleValue(getArrKeysValue(r,V),V,$)}),proxyTableProps($,r),$}function proxyTableProps(t,r){Object.keys(InitialStateMap).forEach($=>{watch(()=>getArrKeysValue(r,$),V=>{handleValue(V,$,t)})})}function handleValue(t,r,$){let V=t,oe=InitialStateMap[r];typeof InitialStateMap[r]=="object"&&(oe=oe.key,V=V||InitialStateMap[r].default),$.states[oe].value=V}function getArrKeysValue(t,r){if(r.includes(".")){const $=r.split(".");let V=t;return $.forEach(oe=>{V=V[oe]}),V}else return t[r]}class TableLayout{constructor(r){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 $ in r)hasOwn$4(r,$)&&(isRef(this[$])?this[$].value=r[$]:this[$]=r[$]);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 $=this.table.refs.scrollBarRef;if(this.table.vnode.el&&($!=null&&$.wrapRef)){let V=!0;const oe=this.scrollY.value;return V=$.wrapRef.scrollHeight>$.wrapRef.clientHeight,this.scrollY.value=V,oe!==V}return!1}setHeight(r,$="height"){if(!isClient$1)return;const V=this.table.vnode.el;if(r=parseHeight(r),this.height.value=Number(r),!V&&(r||r===0))return nextTick(()=>this.setHeight(r,$));typeof r=="number"?(V.style[$]=`${r}px`,this.updateElsHeight()):typeof r=="string"&&(V.style[$]=r,this.updateElsHeight())}setMaxHeight(r){this.setHeight(r,"max-height")}getFlattenColumns(){const r=[];return this.table.store.states.columns.value.forEach(V=>{V.isColumnGroup?r.push.apply(r,V.columns):r.push(V)}),r}updateElsHeight(){this.updateScrollY(),this.notifyObservers("scrollable")}headerDisplayNone(r){if(!r)return!0;let $=r;for(;$.tagName!=="DIV";){if(getComputedStyle($).display==="none")return!0;$=$.parentElement}return!1}updateColumnsWidth(){if(!isClient$1)return;const r=this.fit,$=this.table.vnode.el.clientWidth;let V=0;const oe=this.getFlattenColumns(),ie=oe.filter(de=>typeof de.width!="number");if(oe.forEach(de=>{typeof de.width=="number"&&de.realWidth&&(de.realWidth=null)}),ie.length>0&&r){if(oe.forEach(de=>{V+=Number(de.width||de.minWidth||80)}),V<=$){this.scrollX.value=!1;const de=$-V;if(ie.length===1)ie[0].realWidth=Number(ie[0].minWidth||80)+de;else{const pe=ie.reduce(($e,Ie)=>$e+Number(Ie.minWidth||80),0),he=de/pe;let _e=0;ie.forEach(($e,Ie)=>{if(Ie===0)return;const Ve=Math.floor(Number($e.minWidth||80)*he);_e+=Ve,$e.realWidth=Number($e.minWidth||80)+Ve}),ie[0].realWidth=Number(ie[0].minWidth||80)+de-_e}}else this.scrollX.value=!0,ie.forEach(de=>{de.realWidth=Number(de.minWidth)});this.bodyWidth.value=Math.max(V,$),this.table.state.resizeState.value.width=this.bodyWidth.value}else oe.forEach(de=>{!de.width&&!de.minWidth?de.realWidth=80:de.realWidth=Number(de.width||de.minWidth),V+=de.realWidth}),this.scrollX.value=V>$,this.bodyWidth.value=V;const le=this.store.states.fixedColumns.value;if(le.length>0){let de=0;le.forEach(pe=>{de+=Number(pe.realWidth||pe.width)}),this.fixedWidth.value=de}const ue=this.store.states.rightFixedColumns.value;if(ue.length>0){let de=0;ue.forEach(pe=>{de+=Number(pe.realWidth||pe.width)}),this.rightFixedWidth.value=de}this.notifyObservers("columns")}addObserver(r){this.observers.push(r)}removeObserver(r){const $=this.observers.indexOf(r);$!==-1&&this.observers.splice($,1)}notifyObservers(r){this.observers.forEach(V=>{var oe,ie;switch(r){case"columns":(oe=V.state)==null||oe.onColumnsChange(this);break;case"scrollable":(ie=V.state)==null||ie.onScrollableChange(this);break;default:throw new Error(`Table Layout don't have event ${r}.`)}})}}const{CheckboxGroup:ElCheckboxGroup}=ElCheckbox,_sfc_main$u=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(t){const r=getCurrentInstance(),{t:$}=useLocale(),V=useNamespace("table-filter"),oe=r==null?void 0:r.parent;oe.filterPanels.value[t.column.id]||(oe.filterPanels.value[t.column.id]=r);const ie=ref(!1),le=ref(null),ue=computed(()=>t.column&&t.column.filters),de=computed({get:()=>{var hn;return(((hn=t.column)==null?void 0:hn.filteredValue)||[])[0]},set:hn=>{pe.value&&(typeof hn<"u"&&hn!==null?pe.value.splice(0,1,hn):pe.value.splice(0,1))}}),pe=computed({get(){return t.column?t.column.filteredValue||[]:[]},set(hn){t.column&&t.upDataColumn("filteredValue",hn)}}),he=computed(()=>t.column?t.column.filterMultiple:!0),_e=hn=>hn.value===de.value,$e=()=>{ie.value=!1},Ie=hn=>{hn.stopPropagation(),ie.value=!ie.value},Ve=()=>{ie.value=!1},Fe=()=>{Et(pe.value),$e()},Ue=()=>{pe.value=[],Et(pe.value),$e()},qe=hn=>{de.value=hn,Et(typeof hn<"u"&&hn!==null?pe.value:[]),$e()},Et=hn=>{t.store.commit("filterChange",{column:t.column,values:hn}),t.store.updateAllSelected()};watch(ie,hn=>{t.column&&t.upDataColumn("filterOpened",hn)},{immediate:!0});const Lt=computed(()=>{var hn,Cn;return(Cn=(hn=le.value)==null?void 0:hn.popperRef)==null?void 0:Cn.contentRef});return{tooltipVisible:ie,multiple:he,filteredValue:pe,filterValue:de,filters:ue,handleConfirm:Fe,handleReset:Ue,handleSelect:qe,isActive:_e,t:$,ns:V,showFilterPanel:Ie,hideFilterPanel:Ve,popperPaneRef:Lt,tooltip:le}}}),_hoisted_1$f={key:0},_hoisted_2$b=["disabled"],_hoisted_3$6=["label","onClick"];function _sfc_render$5(t,r,$,V,oe,ie){const le=resolveComponent("el-checkbox"),ue=resolveComponent("el-checkbox-group"),de=resolveComponent("el-scrollbar"),pe=resolveComponent("arrow-up"),he=resolveComponent("arrow-down"),_e=resolveComponent("el-icon"),$e=resolveComponent("el-tooltip"),Ie=resolveDirective("click-outside");return openBlock(),createBlock($e,{ref:"tooltip",visible:t.tooltipVisible,offset:0,placement:t.placement,"show-arrow":!1,"stop-popper-mouse-event":!1,teleported:"",effect:"light",pure:"","popper-class":t.ns.b(),persistent:""},{content:withCtx(()=>[t.multiple?(openBlock(),createElementBlock("div",_hoisted_1$f,[createBaseVNode("div",{class:normalizeClass(t.ns.e("content"))},[createVNode(de,{"wrap-class":t.ns.e("wrap")},{default:withCtx(()=>[createVNode(ue,{modelValue:t.filteredValue,"onUpdate:modelValue":r[0]||(r[0]=Ve=>t.filteredValue=Ve),class:normalizeClass(t.ns.e("checkbox-group"))},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.filters,Ve=>(openBlock(),createBlock(le,{key:Ve.value,label:Ve.value},{default:withCtx(()=>[createTextVNode(toDisplayString$1(Ve.text),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","class"])]),_:1},8,["wrap-class"])],2),createBaseVNode("div",{class:normalizeClass(t.ns.e("bottom"))},[createBaseVNode("button",{class:normalizeClass({[t.ns.is("disabled")]:t.filteredValue.length===0}),disabled:t.filteredValue.length===0,type:"button",onClick:r[1]||(r[1]=(...Ve)=>t.handleConfirm&&t.handleConfirm(...Ve))},toDisplayString$1(t.t("el.table.confirmFilter")),11,_hoisted_2$b),createBaseVNode("button",{type:"button",onClick:r[2]||(r[2]=(...Ve)=>t.handleReset&&t.handleReset(...Ve))},toDisplayString$1(t.t("el.table.resetFilter")),1)],2)])):(openBlock(),createElementBlock("ul",{key:1,class:normalizeClass(t.ns.e("list"))},[createBaseVNode("li",{class:normalizeClass([t.ns.e("list-item"),{[t.ns.is("active")]:t.filterValue===void 0||t.filterValue===null}]),onClick:r[3]||(r[3]=Ve=>t.handleSelect(null))},toDisplayString$1(t.t("el.table.clearFilter")),3),(openBlock(!0),createElementBlock(Fragment,null,renderList(t.filters,Ve=>(openBlock(),createElementBlock("li",{key:Ve.value,class:normalizeClass([t.ns.e("list-item"),t.ns.is("active",t.isActive(Ve))]),label:Ve.value,onClick:Fe=>t.handleSelect(Ve.value)},toDisplayString$1(Ve.text),11,_hoisted_3$6))),128))],2))]),default:withCtx(()=>[withDirectives((openBlock(),createElementBlock("span",{class:normalizeClass([`${t.ns.namespace.value}-table__column-filter-trigger`,`${t.ns.namespace.value}-none-outline`]),onClick:r[4]||(r[4]=(...Ve)=>t.showFilterPanel&&t.showFilterPanel(...Ve))},[createVNode(_e,null,{default:withCtx(()=>[t.column.filterOpened?(openBlock(),createBlock(pe,{key:0})):(openBlock(),createBlock(he,{key:1}))]),_:1})],2)),[[Ie,t.hideFilterPanel,t.popperPaneRef]])]),_:1},8,["visible","placement","popper-class"])}var FilterPanel=_export_sfc$1(_sfc_main$u,[["render",_sfc_render$5],["__file","/home/runner/work/element-plus/element-plus/packages/components/table/src/filter-panel.vue"]]);function useLayoutObserver(t){const r=getCurrentInstance();onBeforeMount(()=>{$.value.addObserver(r)}),onMounted(()=>{V($.value),oe($.value)}),onUpdated(()=>{V($.value),oe($.value)}),onUnmounted(()=>{$.value.removeObserver(r)});const $=computed(()=>{const ie=t.layout;if(!ie)throw new Error("Can not find table layout.");return ie}),V=ie=>{var le;const ue=((le=t.vnode.el)==null?void 0:le.querySelectorAll("colgroup > col"))||[];if(!ue.length)return;const de=ie.getFlattenColumns(),pe={};de.forEach(he=>{pe[he.id]=he});for(let he=0,_e=ue.length;he<_e;he++){const $e=ue[he],Ie=$e.getAttribute("name"),Ve=pe[Ie];Ve&&$e.setAttribute("width",Ve.realWidth||Ve.width)}},oe=ie=>{var le,ue;const de=((le=t.vnode.el)==null?void 0:le.querySelectorAll("colgroup > col[name=gutter]"))||[];for(let he=0,_e=de.length;he<_e;he++)de[he].setAttribute("width",ie.scrollY.value?ie.gutterWidth:"0");const pe=((ue=t.vnode.el)==null?void 0:ue.querySelectorAll("th.gutter"))||[];for(let he=0,_e=pe.length;he<_e;he++){const $e=pe[he];$e.style.width=ie.scrollY.value?`${ie.gutterWidth}px`:"0",$e.style.display=ie.scrollY.value?"":"none"}};return{tableLayout:$.value,onColumnsChange:V,onScrollableChange:oe}}const TABLE_INJECTION_KEY=Symbol("ElTable");function useEvent(t,r){const $=getCurrentInstance(),V=inject(TABLE_INJECTION_KEY),oe=Fe=>{Fe.stopPropagation()},ie=(Fe,Ue)=>{!Ue.filters&&Ue.sortable?Ve(Fe,Ue,!1):Ue.filterable&&!Ue.sortable&&oe(Fe),V==null||V.emit("header-click",Ue,Fe)},le=(Fe,Ue)=>{V==null||V.emit("header-contextmenu",Ue,Fe)},ue=ref(null),de=ref(!1),pe=ref({}),he=(Fe,Ue)=>{if(isClient$1&&!(Ue.children&&Ue.children.length>0)&&ue.value&&t.border){de.value=!0;const qe=V;r("set-drag-visible",!0);const Lt=(qe==null?void 0:qe.vnode.el).getBoundingClientRect().left,hn=$.vnode.el.querySelector(`th.${Ue.id}`),Cn=hn.getBoundingClientRect(),bn=Cn.left-Lt+30;addClass(hn,"noclick"),pe.value={startMouseLeft:Fe.clientX,startLeft:Cn.right-Lt,startColumnLeft:Cn.left-Lt,tableLeft:Lt};const Sn=qe==null?void 0:qe.refs.resizeProxy;Sn.style.left=`${pe.value.startLeft}px`,document.onselectstart=function(){return!1},document.ondragstart=function(){return!1};const En=$n=>{const Tn=$n.clientX-pe.value.startMouseLeft,xn=pe.value.startLeft+Tn;Sn.style.left=`${Math.max(bn,xn)}px`},wn=()=>{if(de.value){const{startColumnLeft:$n,startLeft:Tn}=pe.value,An=Number.parseInt(Sn.style.left,10)-$n;Ue.width=Ue.realWidth=An,qe==null||qe.emit("header-dragend",Ue.width,Tn-$n,Ue,Fe),requestAnimationFrame(()=>{t.store.scheduleLayout(!1,!0)}),document.body.style.cursor="",de.value=!1,ue.value=null,pe.value={},r("set-drag-visible",!1)}document.removeEventListener("mousemove",En),document.removeEventListener("mouseup",wn),document.onselectstart=null,document.ondragstart=null,setTimeout(()=>{removeClass(hn,"noclick")},0)};document.addEventListener("mousemove",En),document.addEventListener("mouseup",wn)}},_e=(Fe,Ue)=>{if(Ue.children&&Ue.children.length>0)return;const qe=Fe.target;if(!isElement$2(qe))return;const Et=qe==null?void 0:qe.closest("th");if(!(!Ue||!Ue.resizable)&&!de.value&&t.border){const Lt=Et.getBoundingClientRect(),hn=document.body.style;Lt.width>12&&Lt.right-Fe.pageX<8?(hn.cursor="col-resize",hasClass(Et,"is-sortable")&&(Et.style.cursor="col-resize"),ue.value=Ue):de.value||(hn.cursor="",hasClass(Et,"is-sortable")&&(Et.style.cursor="pointer"),ue.value=null)}},$e=()=>{isClient$1&&(document.body.style.cursor="")},Ie=({order:Fe,sortOrders:Ue})=>{if(Fe==="")return Ue[0];const qe=Ue.indexOf(Fe||null);return Ue[qe>Ue.length-2?0:qe+1]},Ve=(Fe,Ue,qe)=>{var Et;Fe.stopPropagation();const Lt=Ue.order===qe?null:qe||Ie(Ue),hn=(Et=Fe.target)==null?void 0:Et.closest("th");if(hn&&hasClass(hn,"noclick")){removeClass(hn,"noclick");return}if(!Ue.sortable)return;const Cn=t.store.states;let bn=Cn.sortProp.value,Sn;const En=Cn.sortingColumn.value;(En!==Ue||En===Ue&&En.order===null)&&(En&&(En.order=null),Cn.sortingColumn.value=Ue,bn=Ue.property),Lt?Sn=Ue.order=Lt:Sn=Ue.order=null,Cn.sortProp.value=bn,Cn.sortOrder.value=Sn,V==null||V.store.commit("changeSortCondition")};return{handleHeaderClick:ie,handleHeaderContextMenu:le,handleMouseDown:he,handleMouseMove:_e,handleMouseOut:$e,handleSortClick:Ve,handleFilterClick:oe}}function useStyle$2(t){const r=inject(TABLE_INJECTION_KEY),$=useNamespace("table");return{getHeaderRowStyle:ue=>{const de=r==null?void 0:r.props.headerRowStyle;return typeof de=="function"?de.call(null,{rowIndex:ue}):de},getHeaderRowClass:ue=>{const de=[],pe=r==null?void 0:r.props.headerRowClassName;return typeof pe=="string"?de.push(pe):typeof pe=="function"&&de.push(pe.call(null,{rowIndex:ue})),de.join(" ")},getHeaderCellStyle:(ue,de,pe,he)=>{var _e;let $e=(_e=r==null?void 0:r.props.headerCellStyle)!=null?_e:{};typeof $e=="function"&&($e=$e.call(null,{rowIndex:ue,columnIndex:de,row:pe,column:he}));const Ie=getFixedColumnOffset(de,he.fixed,t.store,pe);return ensurePosition(Ie,"left"),ensurePosition(Ie,"right"),Object.assign({},$e,Ie)},getHeaderCellClass:(ue,de,pe,he)=>{const _e=getFixedColumnsClass($.b(),de,he.fixed,t.store,pe),$e=[he.id,he.order,he.headerAlign,he.className,he.labelClassName,..._e];he.children||$e.push("is-leaf"),he.sortable&&$e.push("is-sortable");const Ie=r==null?void 0:r.props.headerCellClassName;return typeof Ie=="string"?$e.push(Ie):typeof Ie=="function"&&$e.push(Ie.call(null,{rowIndex:ue,columnIndex:de,row:pe,column:he})),$e.push($.e("cell")),$e.filter(Ve=>!!Ve).join(" ")}}}const getAllColumns=t=>{const r=[];return t.forEach($=>{$.children?(r.push($),r.push.apply(r,getAllColumns($.children))):r.push($)}),r},convertToRows=t=>{let r=1;const $=(ie,le)=>{if(le&&(ie.level=le.level+1,r{$(de,ie),ue+=de.colSpan}),ie.colSpan=ue}else ie.colSpan=1};t.forEach(ie=>{ie.level=1,$(ie,void 0)});const V=[];for(let ie=0;ie{ie.children?(ie.rowSpan=1,ie.children.forEach(le=>le.isSubColumn=!0)):ie.rowSpan=r-ie.level+1,V[ie.level-1].push(ie)}),V};function useUtils$1(t){const r=inject(TABLE_INJECTION_KEY),$=computed(()=>convertToRows(t.store.states.originColumns.value));return{isGroup:computed(()=>{const ie=$.value.length>1;return ie&&r&&(r.state.isGroup.value=!0),ie}),toggleAllSelection:ie=>{ie.stopPropagation(),r==null||r.store.commit("toggleAllSelection")},columnRows:$}}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(t,{emit:r}){const $=getCurrentInstance(),V=inject(TABLE_INJECTION_KEY),oe=useNamespace("table"),ie=ref({}),{onColumnsChange:le,onScrollableChange:ue}=useLayoutObserver(V);onMounted(async()=>{await nextTick(),await nextTick();const{prop:bn,order:Sn}=t.defaultSort;V==null||V.store.commit("sort",{prop:bn,order:Sn,init:!0})});const{handleHeaderClick:de,handleHeaderContextMenu:pe,handleMouseDown:he,handleMouseMove:_e,handleMouseOut:$e,handleSortClick:Ie,handleFilterClick:Ve}=useEvent(t,r),{getHeaderRowStyle:Fe,getHeaderRowClass:Ue,getHeaderCellStyle:qe,getHeaderCellClass:Et}=useStyle$2(t),{isGroup:Lt,toggleAllSelection:hn,columnRows:Cn}=useUtils$1(t);return $.state={onColumnsChange:le,onScrollableChange:ue},$.filterPanels=ie,{ns:oe,filterPanels:ie,onColumnsChange:le,onScrollableChange:ue,columnRows:Cn,getHeaderRowClass:Ue,getHeaderRowStyle:Fe,getHeaderCellClass:Et,getHeaderCellStyle:qe,handleHeaderClick:de,handleHeaderContextMenu:pe,handleMouseDown:he,handleMouseMove:_e,handleMouseOut:$e,handleSortClick:Ie,handleFilterClick:Ve,isGroup:Lt,toggleAllSelection:hn}},render(){const{ns:t,isGroup:r,columnRows:$,getHeaderCellStyle:V,getHeaderCellClass:oe,getHeaderRowClass:ie,getHeaderRowStyle:le,handleHeaderClick:ue,handleHeaderContextMenu:de,handleMouseDown:pe,handleMouseMove:he,handleSortClick:_e,handleMouseOut:$e,store:Ie,$parent:Ve}=this;let Fe=1;return h$2("thead",{class:{[t.is("group")]:r}},$.map((Ue,qe)=>h$2("tr",{class:ie(qe),key:qe,style:le(qe)},Ue.map((Et,Lt)=>(Et.rowSpan>Fe&&(Fe=Et.rowSpan),h$2("th",{class:oe(qe,Lt,Ue,Et),colspan:Et.colSpan,key:`${Et.id}-thead`,rowspan:Et.rowSpan,style:V(qe,Lt,Ue,Et),onClick:hn=>ue(hn,Et),onContextmenu:hn=>de(hn,Et),onMousedown:hn=>pe(hn,Et),onMousemove:hn=>he(hn,Et),onMouseout:$e},[h$2("div",{class:["cell",Et.filteredValue&&Et.filteredValue.length>0?"highlight":""]},[Et.renderHeader?Et.renderHeader({column:Et,$index:Lt,store:Ie,_self:Ve}):Et.label,Et.sortable&&h$2("span",{onClick:hn=>_e(hn,Et),class:"caret-wrapper"},[h$2("i",{onClick:hn=>_e(hn,Et,"ascending"),class:"sort-caret ascending"}),h$2("i",{onClick:hn=>_e(hn,Et,"descending"),class:"sort-caret descending"})]),Et.filterable&&h$2(FilterPanel,{store:Ie,placement:Et.filterPlacement||"bottom-start",column:Et,upDataColumn:(hn,Cn)=>{Et[hn]=Cn}})])]))))))}});function useEvents(t){const r=inject(TABLE_INJECTION_KEY),$=ref(""),V=ref(h$2("div")),{nextZIndex:oe}=useZIndex(),ie=(Ve,Fe,Ue)=>{var qe;const Et=r,Lt=getCell(Ve);let hn;const Cn=(qe=Et==null?void 0:Et.vnode.el)==null?void 0:qe.dataset.prefix;Lt&&(hn=getColumnByCell({columns:t.store.states.columns.value},Lt,Cn),hn&&(Et==null||Et.emit(`cell-${Ue}`,Fe,hn,Lt,Ve))),Et==null||Et.emit(`row-${Ue}`,Fe,hn,Ve)},le=(Ve,Fe)=>{ie(Ve,Fe,"dblclick")},ue=(Ve,Fe)=>{t.store.commit("setCurrentRow",Fe),ie(Ve,Fe,"click")},de=(Ve,Fe)=>{ie(Ve,Fe,"contextmenu")},pe=debounce(Ve=>{t.store.commit("setHoverRow",Ve)},30),he=debounce(()=>{t.store.commit("setHoverRow",null)},30),_e=Ve=>{const Fe=window.getComputedStyle(Ve,null),Ue=Number.parseInt(Fe.paddingLeft,10)||0,qe=Number.parseInt(Fe.paddingRight,10)||0,Et=Number.parseInt(Fe.paddingTop,10)||0,Lt=Number.parseInt(Fe.paddingBottom,10)||0;return{left:Ue,right:qe,top:Et,bottom:Lt}};return{handleDoubleClick:le,handleClick:ue,handleContextMenu:de,handleMouseEnter:pe,handleMouseLeave:he,handleCellMouseEnter:(Ve,Fe,Ue)=>{var qe;const Et=r,Lt=getCell(Ve),hn=(qe=Et==null?void 0:Et.vnode.el)==null?void 0:qe.dataset.prefix;if(Lt){const Dn=getColumnByCell({columns:t.store.states.columns.value},Lt,hn),Ln=Et.hoverState={cell:Lt,column:Dn,row:Fe};Et==null||Et.emit("cell-mouse-enter",Ln.row,Ln.column,Ln.cell,Ve)}if(!Ue)return;const Cn=Ve.target.querySelector(".cell");if(!(hasClass(Cn,`${hn}-tooltip`)&&Cn.childNodes.length))return;const bn=document.createRange();bn.setStart(Cn,0),bn.setEnd(Cn,Cn.childNodes.length);let Sn=bn.getBoundingClientRect().width,En=bn.getBoundingClientRect().height;Sn-Math.floor(Sn)<.001&&(Sn=Math.floor(Sn)),En-Math.floor(En)<.001&&(En=Math.floor(En));const{top:Tn,left:xn,right:An,bottom:Mn}=_e(Cn),Vn=xn+An,Bn=Tn+Mn;(Sn+Vn>Cn.offsetWidth||En+Bn>Cn.offsetHeight||Cn.scrollWidth>Cn.offsetWidth)&&createTablePopper(r==null?void 0:r.refs.tableWrapper,Lt,Lt.innerText||Lt.textContent,oe,Ue)},handleCellMouseLeave:Ve=>{if(!getCell(Ve))return;const Ue=r==null?void 0:r.hoverState;r==null||r.emit("cell-mouse-leave",Ue==null?void 0:Ue.row,Ue==null?void 0:Ue.column,Ue==null?void 0:Ue.cell,Ve)},tooltipContent:$,tooltipTrigger:V}}function useStyles$1(t){const r=inject(TABLE_INJECTION_KEY),$=useNamespace("table");return{getRowStyle:(pe,he)=>{const _e=r==null?void 0:r.props.rowStyle;return typeof _e=="function"?_e.call(null,{row:pe,rowIndex:he}):_e||null},getRowClass:(pe,he)=>{const _e=[$.e("row")];r!=null&&r.props.highlightCurrentRow&&pe===t.store.states.currentRow.value&&_e.push("current-row"),t.stripe&&he%2===1&&_e.push($.em("row","striped"));const $e=r==null?void 0:r.props.rowClassName;return typeof $e=="string"?_e.push($e):typeof $e=="function"&&_e.push($e.call(null,{row:pe,rowIndex:he})),_e},getCellStyle:(pe,he,_e,$e)=>{const Ie=r==null?void 0:r.props.cellStyle;let Ve=Ie??{};typeof Ie=="function"&&(Ve=Ie.call(null,{rowIndex:pe,columnIndex:he,row:_e,column:$e}));const Fe=getFixedColumnOffset(he,t==null?void 0:t.fixed,t.store);return ensurePosition(Fe,"left"),ensurePosition(Fe,"right"),Object.assign({},Ve,Fe)},getCellClass:(pe,he,_e,$e,Ie)=>{const Ve=getFixedColumnsClass($.b(),he,t==null?void 0:t.fixed,t.store,void 0,Ie),Fe=[$e.id,$e.align,$e.className,...Ve],Ue=r==null?void 0:r.props.cellClassName;return typeof Ue=="string"?Fe.push(Ue):typeof Ue=="function"&&Fe.push(Ue.call(null,{rowIndex:pe,columnIndex:he,row:_e,column:$e})),Fe.push($.e("cell")),Fe.filter(qe=>!!qe).join(" ")},getSpan:(pe,he,_e,$e)=>{let Ie=1,Ve=1;const Fe=r==null?void 0:r.props.spanMethod;if(typeof Fe=="function"){const Ue=Fe({row:pe,column:he,rowIndex:_e,columnIndex:$e});Array.isArray(Ue)?(Ie=Ue[0],Ve=Ue[1]):typeof Ue=="object"&&(Ie=Ue.rowspan,Ve=Ue.colspan)}return{rowspan:Ie,colspan:Ve}},getColspanRealWidth:(pe,he,_e)=>{if(he<1)return pe[_e].realWidth;const $e=pe.map(({realWidth:Ie,width:Ve})=>Ie||Ve).slice(_e,_e+he);return Number($e.reduce((Ie,Ve)=>Number(Ie)+Number(Ve),-1))}}}function useRender$1(t){const r=inject(TABLE_INJECTION_KEY),$=useNamespace("table"),{handleDoubleClick:V,handleClick:oe,handleContextMenu:ie,handleMouseEnter:le,handleMouseLeave:ue,handleCellMouseEnter:de,handleCellMouseLeave:pe,tooltipContent:he,tooltipTrigger:_e}=useEvents(t),{getRowStyle:$e,getRowClass:Ie,getCellStyle:Ve,getCellClass:Fe,getSpan:Ue,getColspanRealWidth:qe}=useStyles$1(t),Et=computed(()=>t.store.states.columns.value.findIndex(({type:Sn})=>Sn==="default")),Lt=(Sn,En)=>{const wn=r.props.rowKey;return wn?getRowIdentity(Sn,wn):En},hn=(Sn,En,wn,$n=!1)=>{const{tooltipEffect:Tn,tooltipOptions:xn,store:An}=t,{indent:Mn,columns:Vn}=An.states,Bn=Ie(Sn,En);let Dn=!0;return wn&&(Bn.push($.em("row",`level-${wn.level}`)),Dn=wn.display),h$2("tr",{style:[Dn?null:{display:"none"},$e(Sn,En)],class:Bn,key:Lt(Sn,En),onDblclick:Pn=>V(Pn,Sn),onClick:Pn=>oe(Pn,Sn),onContextmenu:Pn=>ie(Pn,Sn),onMouseenter:()=>le(En),onMouseleave:ue},Vn.value.map((Pn,Fn)=>{const{rowspan:Un,colspan:Wn}=Ue(Sn,Pn,En,Fn);if(!Un||!Wn)return null;const Zn=Object.assign({},Pn);Zn.realWidth=qe(Vn.value,Wn,Fn);const or={store:t.store,_self:t.context||r,column:Zn,row:Sn,$index:En,cellIndex:Fn,expanded:$n};Fn===Et.value&&wn&&(or.treeNode={indent:wn.level*Mn.value,level:wn.level},typeof wn.expanded=="boolean"&&(or.treeNode.expanded=wn.expanded,"loading"in wn&&(or.treeNode.loading=wn.loading),"noLazyChildren"in wn&&(or.treeNode.noLazyChildren=wn.noLazyChildren)));const br=`${En},${Fn}`,Qn=Zn.columnKey||Zn.rawColumnKey||"",Gn=Cn(Fn,Pn,or),Yn=Pn.showOverflowTooltip&&merge$4({effect:Tn},xn,Pn.showOverflowTooltip);return h$2("td",{style:Ve(En,Fn,Sn,Pn),class:Fe(En,Fn,Sn,Pn,Wn-1),key:`${Qn}${br}`,rowspan:Un,colspan:Wn,onMouseenter:er=>de(er,Sn,Yn),onMouseleave:pe},[Gn])}))},Cn=(Sn,En,wn)=>En.renderCell(wn);return{wrappedRowRender:(Sn,En)=>{const wn=t.store,{isRowExpanded:$n,assertRowKey:Tn}=wn,{treeData:xn,lazyTreeNodeMap:An,childrenColumnName:Mn,rowKey:Vn}=wn.states,Bn=wn.states.columns.value;if(Bn.some(({type:Ln})=>Ln==="expand")){const Ln=$n(Sn),Pn=hn(Sn,En,void 0,Ln),Fn=r.renderExpanded;return Ln?Fn?[[Pn,h$2("tr",{key:`expanded-row__${Pn.key}`},[h$2("td",{colspan:Bn.length,class:`${$.e("cell")} ${$.e("expanded-cell")}`},[Fn({row:Sn,$index:En,store:wn,expanded:Ln})])])]]:(console.error("[Element Error]renderExpanded is required."),Pn):[[Pn]]}else if(Object.keys(xn.value).length){Tn();const Ln=getRowIdentity(Sn,Vn.value);let Pn=xn.value[Ln],Fn=null;Pn&&(Fn={expanded:Pn.expanded,level:Pn.level,display:!0},typeof Pn.lazy=="boolean"&&(typeof Pn.loaded=="boolean"&&Pn.loaded&&(Fn.noLazyChildren=!(Pn.children&&Pn.children.length)),Fn.loading=Pn.loading));const Un=[hn(Sn,En,Fn)];if(Pn){let Wn=0;const Zn=(br,Qn)=>{br&&br.length&&Qn&&br.forEach(Gn=>{const Yn={display:Qn.display&&Qn.expanded,level:Qn.level+1,expanded:!1,noLazyChildren:!1,loading:!1},er=getRowIdentity(Gn,Vn.value);if(er==null)throw new Error("For nested data item, row-key is required.");if(Pn={...xn.value[er]},Pn&&(Yn.expanded=Pn.expanded,Pn.level=Pn.level||Yn.level,Pn.display=!!(Pn.expanded&&Yn.display),typeof Pn.lazy=="boolean"&&(typeof Pn.loaded=="boolean"&&Pn.loaded&&(Yn.noLazyChildren=!(Pn.children&&Pn.children.length)),Yn.loading=Pn.loading)),Wn++,Un.push(hn(Gn,En+Wn,Yn)),Pn){const lr=An.value[er]||Gn[Mn.value];Zn(lr,Pn)}})};Pn.display=!0;const or=An.value[Ln]||Sn[Mn.value];Zn(or,Pn)}return Un}else return hn(Sn,En,void 0)},tooltipContent:he,tooltipTrigger:_e}}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(t){const r=getCurrentInstance(),$=inject(TABLE_INJECTION_KEY),V=useNamespace("table"),{wrappedRowRender:oe,tooltipContent:ie,tooltipTrigger:le}=useRender$1(t),{onColumnsChange:ue,onScrollableChange:de}=useLayoutObserver($);return watch(t.store.states.hoverRow,(pe,he)=>{!t.store.states.isComplex.value||!isClient$1||rAF(()=>{const _e=r==null?void 0:r.vnode.el,$e=Array.from((_e==null?void 0:_e.children)||[]).filter(Fe=>Fe==null?void 0:Fe.classList.contains(`${V.e("row")}`)),Ie=$e[he],Ve=$e[pe];Ie&&removeClass(Ie,"hover-row"),Ve&&addClass(Ve,"hover-row")})}),onUnmounted(()=>{var pe;(pe=removePopper)==null||pe()}),{ns:V,onColumnsChange:ue,onScrollableChange:de,wrappedRowRender:oe,tooltipContent:ie,tooltipTrigger:le}},render(){const{wrappedRowRender:t,store:r}=this,$=r.states.data.value||[];return h$2("tbody",{tabIndex:-1},[$.reduce((V,oe)=>V.concat(t(oe,V.length)),[])])}});function hColgroup(t){const r=t.tableLayout==="auto";let $=t.columns||[];r&&$.every(oe=>oe.width===void 0)&&($=[]);const V=oe=>{const ie={key:`${t.tableLayout}_${oe.id}`,style:{},name:void 0};return r?ie.style={width:`${oe.width}px`}:ie.name=oe.id,ie};return h$2("colgroup",{},$.map(oe=>h$2("col",V(oe))))}hColgroup.props=["columns","tableLayout"];function useMapState(){const t=inject(TABLE_INJECTION_KEY),r=t==null?void 0:t.store,$=computed(()=>r.states.fixedLeafColumnsLength.value),V=computed(()=>r.states.rightFixedColumns.value.length),oe=computed(()=>r.states.columns.value.length),ie=computed(()=>r.states.fixedColumns.value.length),le=computed(()=>r.states.rightFixedColumns.value.length);return{leftFixedLeafCount:$,rightFixedLeafCount:V,columnsCount:oe,leftFixedCount:ie,rightFixedCount:le,columns:r.states.columns}}function useStyle$1(t){const{columns:r}=useMapState(),$=useNamespace("table");return{getCellClasses:(ie,le)=>{const ue=ie[le],de=[$.e("cell"),ue.id,ue.align,ue.labelClassName,...getFixedColumnsClass($.b(),le,ue.fixed,t.store)];return ue.className&&de.push(ue.className),ue.children||de.push($.is("leaf")),de},getCellStyles:(ie,le)=>{const ue=getFixedColumnOffset(le,ie.fixed,t.store);return ensurePosition(ue,"left"),ensurePosition(ue,"right"),ue},columns:r}}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(t){const{getCellClasses:r,getCellStyles:$,columns:V}=useStyle$1(t);return{ns:useNamespace("table"),getCellClasses:r,getCellStyles:$,columns:V}},render(){const{columns:t,getCellStyles:r,getCellClasses:$,summaryMethod:V,sumText:oe,ns:ie}=this,le=this.store.states.data.value;let ue=[];return V?ue=V({columns:t,data:le}):t.forEach((de,pe)=>{if(pe===0){ue[pe]=oe;return}const he=le.map(Ve=>Number(Ve[de.property])),_e=[];let $e=!0;he.forEach(Ve=>{if(!Number.isNaN(+Ve)){$e=!1;const Fe=`${Ve}`.split(".")[1];_e.push(Fe?Fe.length:0)}});const Ie=Math.max.apply(null,_e);$e?ue[pe]="":ue[pe]=he.reduce((Ve,Fe)=>{const Ue=Number(Fe);return Number.isNaN(+Ue)?Ve:Number.parseFloat((Ve+Fe).toFixed(Math.min(Ie,20)))},0)}),h$2("table",{class:ie.e("footer"),cellspacing:"0",cellpadding:"0",border:"0"},[hColgroup({columns:t}),h$2("tbody",[h$2("tr",{},[...t.map((de,pe)=>h$2("td",{key:pe,colspan:de.colSpan,rowspan:de.rowSpan,class:$(t,pe),style:r(de,pe)},[h$2("div",{class:["cell",de.labelClassName]},[ue[pe]])]))])])])}});function useUtils(t){return{setCurrentRow:he=>{t.commit("setCurrentRow",he)},getSelectionRows:()=>t.getSelectionRows(),toggleRowSelection:(he,_e)=>{t.toggleRowSelection(he,_e,!1),t.updateAllSelected()},clearSelection:()=>{t.clearSelection()},clearFilter:he=>{t.clearFilter(he)},toggleAllSelection:()=>{t.commit("toggleAllSelection")},toggleRowExpansion:(he,_e)=>{t.toggleRowExpansionAdapter(he,_e)},clearSort:()=>{t.clearSort()},sort:(he,_e)=>{t.commit("sort",{prop:he,order:_e})}}}function useStyle(t,r,$,V){const oe=ref(!1),ie=ref(null),le=ref(!1),ue=Pn=>{le.value=Pn},de=ref({width:null,height:null,headerHeight:null}),pe=ref(!1),he={display:"inline-block",verticalAlign:"middle"},_e=ref(),$e=ref(0),Ie=ref(0),Ve=ref(0),Fe=ref(0),Ue=ref(0);watchEffect(()=>{r.setHeight(t.height)}),watchEffect(()=>{r.setMaxHeight(t.maxHeight)}),watch(()=>[t.currentRowKey,$.states.rowKey],([Pn,Fn])=>{!unref(Fn)||!unref(Pn)||$.setCurrentRowKey(`${Pn}`)},{immediate:!0}),watch(()=>t.data,Pn=>{V.store.commit("setData",Pn)},{immediate:!0,deep:!0}),watchEffect(()=>{t.expandRowKeys&&$.setExpandRowKeysAdapter(t.expandRowKeys)});const qe=()=>{V.store.commit("setHoverRow",null),V.hoverState&&(V.hoverState=null)},Et=(Pn,Fn)=>{const{pixelX:Un,pixelY:Wn}=Fn;Math.abs(Un)>=Math.abs(Wn)&&(V.refs.bodyWrapper.scrollLeft+=Fn.pixelX/5)},Lt=computed(()=>t.height||t.maxHeight||$.states.fixedColumns.value.length>0||$.states.rightFixedColumns.value.length>0),hn=computed(()=>({width:r.bodyWidth.value?`${r.bodyWidth.value}px`:""})),Cn=()=>{Lt.value&&r.updateElsHeight(),r.updateColumnsWidth(),requestAnimationFrame(wn)};onMounted(async()=>{await nextTick(),$.updateColumns(),$n(),requestAnimationFrame(Cn);const Pn=V.vnode.el,Fn=V.refs.headerWrapper;t.flexible&&Pn&&Pn.parentElement&&(Pn.parentElement.style.minWidth="0"),de.value={width:_e.value=Pn.offsetWidth,height:Pn.offsetHeight,headerHeight:t.showHeader&&Fn?Fn.offsetHeight:null},$.states.columns.value.forEach(Un=>{Un.filteredValue&&Un.filteredValue.length&&V.store.commit("filterChange",{column:Un,values:Un.filteredValue,silent:!0})}),V.$ready=!0});const bn=(Pn,Fn)=>{if(!Pn)return;const Un=Array.from(Pn.classList).filter(Wn=>!Wn.startsWith("is-scrolling-"));Un.push(r.scrollX.value?Fn:"is-scrolling-none"),Pn.className=Un.join(" ")},Sn=Pn=>{const{tableWrapper:Fn}=V.refs;bn(Fn,Pn)},En=Pn=>{const{tableWrapper:Fn}=V.refs;return!!(Fn&&Fn.classList.contains(Pn))},wn=function(){if(!V.refs.scrollBarRef)return;if(!r.scrollX.value){const Qn="is-scrolling-none";En(Qn)||Sn(Qn);return}const Pn=V.refs.scrollBarRef.wrapRef;if(!Pn)return;const{scrollLeft:Fn,offsetWidth:Un,scrollWidth:Wn}=Pn,{headerWrapper:Zn,footerWrapper:or}=V.refs;Zn&&(Zn.scrollLeft=Fn),or&&(or.scrollLeft=Fn);const br=Wn-Un-1;Fn>=br?Sn("is-scrolling-right"):Sn(Fn===0?"is-scrolling-left":"is-scrolling-middle")},$n=()=>{V.refs.scrollBarRef&&(V.refs.scrollBarRef.wrapRef&&useEventListener$1(V.refs.scrollBarRef.wrapRef,"scroll",wn,{passive:!0}),t.fit?useResizeObserver$1(V.vnode.el,Tn):useEventListener$1(window,"resize",Tn),useResizeObserver$1(V.refs.bodyWrapper,()=>{var Pn,Fn;Tn(),(Fn=(Pn=V.refs)==null?void 0:Pn.scrollBarRef)==null||Fn.update()}))},Tn=()=>{var Pn,Fn,Un,Wn;const Zn=V.vnode.el;if(!V.$ready||!Zn)return;let or=!1;const{width:br,height:Qn,headerHeight:Gn}=de.value,Yn=_e.value=Zn.offsetWidth;br!==Yn&&(or=!0);const er=Zn.offsetHeight;(t.height||Lt.value)&&Qn!==er&&(or=!0);const lr=t.tableLayout==="fixed"?V.refs.headerWrapper:(Pn=V.refs.tableHeaderRef)==null?void 0:Pn.$el;t.showHeader&&(lr==null?void 0:lr.offsetHeight)!==Gn&&(or=!0),$e.value=((Fn=V.refs.tableWrapper)==null?void 0:Fn.scrollHeight)||0,Ve.value=(lr==null?void 0:lr.scrollHeight)||0,Fe.value=((Un=V.refs.footerWrapper)==null?void 0:Un.offsetHeight)||0,Ue.value=((Wn=V.refs.appendWrapper)==null?void 0:Wn.offsetHeight)||0,Ie.value=$e.value-Ve.value-Fe.value-Ue.value,or&&(de.value={width:Yn,height:er,headerHeight:t.showHeader&&(lr==null?void 0:lr.offsetHeight)||0},Cn())},xn=useFormSize(),An=computed(()=>{const{bodyWidth:Pn,scrollY:Fn,gutterWidth:Un}=r;return Pn.value?`${Pn.value-(Fn.value?Un:0)}px`:""}),Mn=computed(()=>t.maxHeight?"fixed":t.tableLayout),Vn=computed(()=>{if(t.data&&t.data.length)return null;let Pn="100%";t.height&&Ie.value&&(Pn=`${Ie.value}px`);const Fn=_e.value;return{width:Fn?`${Fn}px`:"",height:Pn}}),Bn=computed(()=>t.height?{height:Number.isNaN(Number(t.height))?t.height:`${t.height}px`}:t.maxHeight?{maxHeight:Number.isNaN(Number(t.maxHeight))?t.maxHeight:`${t.maxHeight}px`}:{}),Dn=computed(()=>t.height?{height:"100%"}:t.maxHeight?Number.isNaN(Number(t.maxHeight))?{maxHeight:`calc(${t.maxHeight} - ${Ve.value+Fe.value}px)`}:{maxHeight:`${t.maxHeight-Ve.value-Fe.value}px`}:{});return{isHidden:oe,renderExpanded:ie,setDragVisible:ue,isGroup:pe,handleMouseLeave:qe,handleHeaderFooterMousewheel:Et,tableSize:xn,emptyBlockStyle:Vn,handleFixedMousewheel:(Pn,Fn)=>{const Un=V.refs.bodyWrapper;if(Math.abs(Fn.spinY)>0){const Wn=Un.scrollTop;Fn.pixelY<0&&Wn!==0&&Pn.preventDefault(),Fn.pixelY>0&&Un.scrollHeight-Un.clientHeight>Wn&&Pn.preventDefault(),Un.scrollTop+=Math.ceil(Fn.pixelY/5)}else Un.scrollLeft+=Math.ceil(Fn.pixelX/5)},resizeProxyVisible:le,bodyWidth:An,resizeState:de,doLayout:Cn,tableBodyStyles:hn,tableLayout:Mn,scrollbarViewStyle:he,tableInnerStyle:Bn,scrollbarStyle:Dn}}function useKeyRender(t){const r=ref(),$=()=>{const oe=t.vnode.el.querySelector(".hidden-columns"),ie={childList:!0,subtree:!0},le=t.store.states.updateOrderFns;r.value=new MutationObserver(()=>{le.forEach(ue=>ue())}),r.value.observe(oe,ie)};onMounted(()=>{$()}),onUnmounted(()=>{var V;(V=r.value)==null||V.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,showOverflowTooltip:[Boolean,Object]};const useScrollbar$1=()=>{const t=ref(),r=(ie,le)=>{const ue=t.value;ue&&ue.scrollTo(ie,le)},$=(ie,le)=>{const ue=t.value;ue&&isNumber$4(le)&&["Top","Left"].includes(ie)&&ue[`setScroll${ie}`](le)};return{scrollBarRef:t,scrollTo:r,setScrollTop:ie=>$("Top",ie),setScrollLeft:ie=>$("Left",ie)}};let tableIdSeed=1;const _sfc_main$t=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(t){const{t:r}=useLocale(),$=useNamespace("table"),V=getCurrentInstance();provide(TABLE_INJECTION_KEY,V);const oe=createStore(V,t);V.store=oe;const ie=new TableLayout({store:V.store,table:V,fit:t.fit,showHeader:t.showHeader});V.layout=ie;const le=computed(()=>(oe.states.data.value||[]).length===0),{setCurrentRow:ue,getSelectionRows:de,toggleRowSelection:pe,clearSelection:he,clearFilter:_e,toggleAllSelection:$e,toggleRowExpansion:Ie,clearSort:Ve,sort:Fe}=useUtils(oe),{isHidden:Ue,renderExpanded:qe,setDragVisible:Et,isGroup:Lt,handleMouseLeave:hn,handleHeaderFooterMousewheel:Cn,tableSize:bn,emptyBlockStyle:Sn,handleFixedMousewheel:En,resizeProxyVisible:wn,bodyWidth:$n,resizeState:Tn,doLayout:xn,tableBodyStyles:An,tableLayout:Mn,scrollbarViewStyle:Vn,tableInnerStyle:Bn,scrollbarStyle:Dn}=useStyle(t,ie,oe,V),{scrollBarRef:Ln,scrollTo:Pn,setScrollLeft:Fn,setScrollTop:Un}=useScrollbar$1(),Wn=debounce(xn,50),Zn=`${$.namespace.value}-table_${tableIdSeed++}`;V.tableId=Zn,V.state={isGroup:Lt,resizeState:Tn,doLayout:xn,debouncedUpdateLayout:Wn};const or=computed(()=>t.sumText||r("el.table.sumText")),br=computed(()=>t.emptyText||r("el.table.emptyText"));return useKeyRender(V),{ns:$,layout:ie,store:oe,handleHeaderFooterMousewheel:Cn,handleMouseLeave:hn,tableId:Zn,tableSize:bn,isHidden:Ue,isEmpty:le,renderExpanded:qe,resizeProxyVisible:wn,resizeState:Tn,isGroup:Lt,bodyWidth:$n,tableBodyStyles:An,emptyBlockStyle:Sn,debouncedUpdateLayout:Wn,handleFixedMousewheel:En,setCurrentRow:ue,getSelectionRows:de,toggleRowSelection:pe,clearSelection:he,clearFilter:_e,toggleAllSelection:$e,toggleRowExpansion:Ie,clearSort:Ve,doLayout:xn,sort:Fe,t:r,setDragVisible:Et,context:V,computedSumText:or,computedEmptyText:br,tableLayout:Mn,scrollbarViewStyle:Vn,tableInnerStyle:Bn,scrollbarStyle:Dn,scrollBarRef:Ln,scrollTo:Pn,setScrollLeft:Fn,setScrollTop:Un}}}),_hoisted_1$e=["data-prefix"],_hoisted_2$a={ref:"hiddenColumns",class:"hidden-columns"};function _sfc_render$4(t,r,$,V,oe,ie){const le=resolveComponent("hColgroup"),ue=resolveComponent("table-header"),de=resolveComponent("table-body"),pe=resolveComponent("el-scrollbar"),he=resolveComponent("table-footer"),_e=resolveDirective("mousewheel");return openBlock(),createElementBlock("div",{ref:"tableWrapper",class:normalizeClass([{[t.ns.m("fit")]:t.fit,[t.ns.m("striped")]:t.stripe,[t.ns.m("border")]:t.border||t.isGroup,[t.ns.m("hidden")]:t.isHidden,[t.ns.m("group")]:t.isGroup,[t.ns.m("fluid-height")]:t.maxHeight,[t.ns.m("scrollable-x")]:t.layout.scrollX.value,[t.ns.m("scrollable-y")]:t.layout.scrollY.value,[t.ns.m("enable-row-hover")]:!t.store.states.isComplex.value,[t.ns.m("enable-row-transition")]:(t.store.states.data.value||[]).length!==0&&(t.store.states.data.value||[]).length<100,"has-footer":t.showSummary},t.ns.m(t.tableSize),t.className,t.ns.b(),t.ns.m(`layout-${t.tableLayout}`)]),style:normalizeStyle$1(t.style),"data-prefix":t.ns.namespace.value,onMouseleave:r[0]||(r[0]=(...$e)=>t.handleMouseLeave&&t.handleMouseLeave(...$e))},[createBaseVNode("div",{class:normalizeClass(t.ns.e("inner-wrapper")),style:normalizeStyle$1(t.tableInnerStyle)},[createBaseVNode("div",_hoisted_2$a,[renderSlot(t.$slots,"default")],512),t.showHeader&&t.tableLayout==="fixed"?withDirectives((openBlock(),createElementBlock("div",{key:0,ref:"headerWrapper",class:normalizeClass(t.ns.e("header-wrapper"))},[createBaseVNode("table",{ref:"tableHeader",class:normalizeClass(t.ns.e("header")),style:normalizeStyle$1(t.tableBodyStyles),border:"0",cellpadding:"0",cellspacing:"0"},[createVNode(le,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),createVNode(ue,{ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])],6)],2)),[[_e,t.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),createBaseVNode("div",{ref:"bodyWrapper",class:normalizeClass(t.ns.e("body-wrapper"))},[createVNode(pe,{ref:"scrollBarRef","view-style":t.scrollbarViewStyle,"wrap-style":t.scrollbarStyle,always:t.scrollbarAlwaysOn},{default:withCtx(()=>[createBaseVNode("table",{ref:"tableBody",class:normalizeClass(t.ns.e("body")),cellspacing:"0",cellpadding:"0",border:"0",style:normalizeStyle$1({width:t.bodyWidth,tableLayout:t.tableLayout})},[createVNode(le,{columns:t.store.states.columns.value,"table-layout":t.tableLayout},null,8,["columns","table-layout"]),t.showHeader&&t.tableLayout==="auto"?(openBlock(),createBlock(ue,{key:0,ref:"tableHeaderRef",border:t.border,"default-sort":t.defaultSort,store:t.store,onSetDragVisible:t.setDragVisible},null,8,["border","default-sort","store","onSetDragVisible"])):createCommentVNode("v-if",!0),createVNode(de,{context:t.context,highlight:t.highlightCurrentRow,"row-class-name":t.rowClassName,"tooltip-effect":t.tooltipEffect,"tooltip-options":t.tooltipOptions,"row-style":t.rowStyle,store:t.store,stripe:t.stripe},null,8,["context","highlight","row-class-name","tooltip-effect","tooltip-options","row-style","store","stripe"])],6),t.isEmpty?(openBlock(),createElementBlock("div",{key:0,ref:"emptyBlock",style:normalizeStyle$1(t.emptyBlockStyle),class:normalizeClass(t.ns.e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(t.ns.e("empty-text"))},[renderSlot(t.$slots,"empty",{},()=>[createTextVNode(toDisplayString$1(t.computedEmptyText),1)])],2)],6)):createCommentVNode("v-if",!0),t.$slots.append?(openBlock(),createElementBlock("div",{key:1,ref:"appendWrapper",class:normalizeClass(t.ns.e("append-wrapper"))},[renderSlot(t.$slots,"append")],2)):createCommentVNode("v-if",!0)]),_:3},8,["view-style","wrap-style","always"])],2),t.showSummary?withDirectives((openBlock(),createElementBlock("div",{key:1,ref:"footerWrapper",class:normalizeClass(t.ns.e("footer-wrapper"))},[createVNode(he,{border:t.border,"default-sort":t.defaultSort,store:t.store,style:normalizeStyle$1(t.tableBodyStyles),"sum-text":t.computedSumText,"summary-method":t.summaryMethod},null,8,["border","default-sort","store","style","sum-text","summary-method"])],2)),[[vShow,!t.isEmpty],[_e,t.handleHeaderFooterMousewheel]]):createCommentVNode("v-if",!0),t.border||t.isGroup?(openBlock(),createElementBlock("div",{key:2,class:normalizeClass(t.ns.e("border-left-patch"))},null,2)):createCommentVNode("v-if",!0)],6),withDirectives(createBaseVNode("div",{ref:"resizeProxy",class:normalizeClass(t.ns.e("column-resize-proxy"))},null,2),[[vShow,t.resizeProxyVisible]])],46,_hoisted_1$e)}var Table=_export_sfc$1(_sfc_main$t,[["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=t=>defaultClassNames[t]||"",cellForced={selection:{renderHeader({store:t,column:r}){function $(){return t.states.data.value&&t.states.data.value.length===0}return h$2(ElCheckbox,{disabled:$(),size:t.states.tableSize.value,indeterminate:t.states.selection.value.length>0&&!t.states.isAllSelected.value,"onUpdate:modelValue":t.toggleAllSelection,modelValue:t.states.isAllSelected.value,ariaLabel:r.label})},renderCell({row:t,column:r,store:$,$index:V}){return h$2(ElCheckbox,{disabled:r.selectable?!r.selectable.call(null,t,V):!1,size:$.states.tableSize.value,onChange:()=>{$.commit("rowSelectedChanged",t)},onClick:oe=>oe.stopPropagation(),modelValue:$.isSelected(t),ariaLabel:r.label})},sortable:!1,resizable:!1},index:{renderHeader({column:t}){return t.label||"#"},renderCell({column:t,$index:r}){let $=r+1;const V=t.index;return typeof V=="number"?$=r+V:typeof V=="function"&&($=V(r)),h$2("div",{},[$])},sortable:!1},expand:{renderHeader({column:t}){return t.label||""},renderCell({row:t,store:r,expanded:$}){const{ns:V}=r,oe=[V.e("expand-icon")];return $&&oe.push(V.em("expand-icon","expanded")),h$2("div",{class:oe,onClick:function(le){le.stopPropagation(),r.toggleRowExpansion(t)}},{default:()=>[h$2(ElIcon,null,{default:()=>[h$2(arrow_right_default)]})]})},sortable:!1,resizable:!1}};function defaultRenderCell({row:t,column:r,$index:$}){var V;const oe=r.property,ie=oe&&getProp(t,oe).value;return r&&r.formatter?r.formatter(t,r,ie,$):((V=ie==null?void 0:ie.toString)==null?void 0:V.call(ie))||""}function treeCellPrefix({row:t,treeNode:r,store:$},V=!1){const{ns:oe}=$;if(!r)return V?[h$2("span",{class:oe.e("placeholder")})]:null;const ie=[],le=function(ue){ue.stopPropagation(),!r.loading&&$.loadOrToggle(t)};if(r.indent&&ie.push(h$2("span",{class:oe.e("indent"),style:{"padding-left":`${r.indent}px`}})),typeof r.expanded=="boolean"&&!r.noLazyChildren){const ue=[oe.e("expand-icon"),r.expanded?oe.em("expand-icon","expanded"):""];let de=arrow_right_default;r.loading&&(de=loading_default),ie.push(h$2("div",{class:ue,onClick:le},{default:()=>[h$2(ElIcon,{class:{[oe.is("loading")]:r.loading}},{default:()=>[h$2(de)]})]}))}else ie.push(h$2("span",{class:oe.e("placeholder")}));return ie}function getAllAliases(t,r){return t.reduce(($,V)=>($[V]=V,$),r)}function useWatcher(t,r){const $=getCurrentInstance();return{registerComplexWatchers:()=>{const ie=["fixed"],le={realWidth:"width",realMinWidth:"minWidth"},ue=getAllAliases(ie,le);Object.keys(ue).forEach(de=>{const pe=le[de];hasOwn$4(r,pe)&&watch(()=>r[pe],he=>{let _e=he;pe==="width"&&de==="realWidth"&&(_e=parseWidth(he)),pe==="minWidth"&&de==="realMinWidth"&&(_e=parseMinWidth(he)),$.columnConfig.value[pe]=_e,$.columnConfig.value[de]=_e;const $e=pe==="fixed";t.value.store.scheduleLayout($e)})})},registerNormalWatchers:()=>{const ie=["label","filters","filterMultiple","filteredValue","sortable","index","formatter","className","labelClassName","showOverflowTooltip"],le={property:"prop",align:"realAlign",headerAlign:"realHeaderAlign"},ue=getAllAliases(ie,le);Object.keys(ue).forEach(de=>{const pe=le[de];hasOwn$4(r,pe)&&watch(()=>r[pe],he=>{$.columnConfig.value[de]=he})})}}}function useRender(t,r,$){const V=getCurrentInstance(),oe=ref(""),ie=ref(!1),le=ref(),ue=ref(),de=useNamespace("table");watchEffect(()=>{le.value=t.align?`is-${t.align}`:null,le.value}),watchEffect(()=>{ue.value=t.headerAlign?`is-${t.headerAlign}`:le.value,ue.value});const pe=computed(()=>{let hn=V.vnode.vParent||V.parent;for(;hn&&!hn.tableId&&!hn.columnId;)hn=hn.vnode.vParent||hn.parent;return hn}),he=computed(()=>{const{store:hn}=V.parent;if(!hn)return!1;const{treeData:Cn}=hn.states,bn=Cn.value;return bn&&Object.keys(bn).length>0}),_e=ref(parseWidth(t.width)),$e=ref(parseMinWidth(t.minWidth)),Ie=hn=>(_e.value&&(hn.width=_e.value),$e.value&&(hn.minWidth=$e.value),!_e.value&&$e.value&&(hn.width=void 0),hn.minWidth||(hn.minWidth=80),hn.realWidth=Number(hn.width===void 0?hn.minWidth:hn.width),hn),Ve=hn=>{const Cn=hn.type,bn=cellForced[Cn]||{};Object.keys(bn).forEach(En=>{const wn=bn[En];En!=="className"&&wn!==void 0&&(hn[En]=wn)});const Sn=getDefaultClassName(Cn);if(Sn){const En=`${unref(de.namespace)}-${Sn}`;hn.className=hn.className?`${hn.className} ${En}`:En}return hn},Fe=hn=>{Array.isArray(hn)?hn.forEach(bn=>Cn(bn)):Cn(hn);function Cn(bn){var Sn;((Sn=bn==null?void 0:bn.type)==null?void 0:Sn.name)==="ElTableColumn"&&(bn.vParent=V)}};return{columnId:oe,realAlign:le,isSubColumn:ie,realHeaderAlign:ue,columnOrTableParent:pe,setColumnWidth:Ie,setColumnForcedProps:Ve,setColumnRenders:hn=>{t.renderHeader||hn.type!=="selection"&&(hn.renderHeader=bn=>{V.columnConfig.value.label;const Sn=r.header;return Sn?Sn(bn):hn.label});let Cn=hn.renderCell;return hn.type==="expand"?(hn.renderCell=bn=>h$2("div",{class:"cell"},[Cn(bn)]),$.value.renderExpanded=bn=>r.default?r.default(bn):r.default):(Cn=Cn||defaultRenderCell,hn.renderCell=bn=>{let Sn=null;if(r.default){const An=r.default(bn);Sn=An.some(Mn=>Mn.type!==Comment)?An:Cn(bn)}else Sn=Cn(bn);const{columns:En}=$.value.store.states,wn=En.value.findIndex(An=>An.type==="default"),$n=he.value&&bn.cellIndex===wn,Tn=treeCellPrefix(bn,$n),xn={class:"cell",style:{}};return hn.showOverflowTooltip&&(xn.class=`${xn.class} ${unref(de.namespace)}-tooltip`,xn.style={width:`${(bn.column.realWidth||Number(bn.column.width))-1}px`}),Fe(Sn),h$2("div",xn,[Tn,Sn])}),hn},getPropsData:(...hn)=>hn.reduce((Cn,bn)=>(Array.isArray(bn)&&bn.forEach(Sn=>{Cn[Sn]=t[Sn]}),Cn),{}),getColumnElIndex:(hn,Cn)=>Array.prototype.indexOf.call(hn,Cn),updateColumnOrder:()=>{$.value.store.commit("updateColumnOrder",V.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:{type:[Boolean,Object],default:void 0},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:t=>t.every(r=>["ascending","descending",null].includes(r))}};let columnIdSeed=1;var ElTableColumn$1=defineComponent({name:"ElTableColumn",components:{ElCheckbox},props:defaultProps,setup(t,{slots:r}){const $=getCurrentInstance(),V=ref({}),oe=computed(()=>{let Lt=$.parent;for(;Lt&&!Lt.tableId;)Lt=Lt.parent;return Lt}),{registerNormalWatchers:ie,registerComplexWatchers:le}=useWatcher(oe,t),{columnId:ue,isSubColumn:de,realHeaderAlign:pe,columnOrTableParent:he,setColumnWidth:_e,setColumnForcedProps:$e,setColumnRenders:Ie,getPropsData:Ve,getColumnElIndex:Fe,realAlign:Ue,updateColumnOrder:qe}=useRender(t,r,oe),Et=he.value;ue.value=`${Et.tableId||Et.columnId}_column_${columnIdSeed++}`,onBeforeMount(()=>{de.value=oe.value!==Et;const Lt=t.type||"default",hn=t.sortable===""?!0:t.sortable,Cn=isUndefined$1(t.showOverflowTooltip)?Et.props.showOverflowTooltip:t.showOverflowTooltip,bn={...cellStarts[Lt],id:ue.value,type:Lt,property:t.prop||t.property,align:Ue,headerAlign:pe,showOverflowTooltip:Cn,filterable:t.filters||t.filterMethod,filteredValue:[],filterPlacement:"",isColumnGroup:!1,isSubColumn:!1,filterOpened:!1,sortable:hn,index:t.index,rawColumnKey:$.vnode.key};let Tn=Ve(["columnKey","label","className","labelClassName","type","renderHeader","formatter","fixed","resizable"],["sortMethod","sortBy","sortOrders"],["selectable","reserveSelection"],["filterMethod","filters","filterMultiple","filterOpened","filteredValue","filterPlacement"]);Tn=mergeOptions$1(bn,Tn),Tn=compose(Ie,_e,$e)(Tn),V.value=Tn,ie(),le()}),onMounted(()=>{var Lt;const hn=he.value,Cn=de.value?hn.vnode.el.children:(Lt=hn.refs.hiddenColumns)==null?void 0:Lt.children,bn=()=>Fe(Cn||[],$.vnode.el);V.value.getColumnIndex=bn,bn()>-1&&oe.value.store.commit("insertColumn",V.value,de.value?hn.columnConfig.value:null,qe)}),onBeforeUnmount(()=>{oe.value.store.commit("removeColumn",V.value,de.value?Et.columnConfig.value:null,qe)}),$.columnId=ue.value,$.columnConfig=V},render(){var t,r,$;try{const V=(r=(t=this.$slots).default)==null?void 0:r.call(t,{row:{},column:{},$index:-1}),oe=[];if(Array.isArray(V))for(const le of V)(($=le.type)==null?void 0:$.name)==="ElTableColumn"||le.shapeFlag&2?oe.push(le):le.type===Fragment&&Array.isArray(le.children)&&le.children.forEach(ue=>{(ue==null?void 0:ue.patchFlag)!==1024&&!isString$6(ue==null?void 0:ue.children)&&oe.push(ue)});return h$2("div",oe)}catch{return h$2("div",[])}}});const ElTable=withInstall(Table,{TableColumn:ElTableColumn$1}),ElTableColumn=withNoopInstall(ElTableColumn$1);var SortOrder=(t=>(t.ASC="asc",t.DESC="desc",t))(SortOrder||{}),Alignment=(t=>(t.CENTER="center",t.RIGHT="right",t))(Alignment||{}),FixedDir=(t=>(t.LEFT="left",t.RIGHT="right",t))(FixedDir||{});const oppositeOrderMap={asc:"desc",desc:"asc"},placeholderSign=Symbol("placeholder"),calcColumnStyle=(t,r,$)=>{var V;const oe={flexGrow:0,flexShrink:0,...$?{}:{flexGrow:t.flexGrow||0,flexShrink:t.flexShrink||1}};$||(oe.flexShrink=1);const ie={...(V=t.style)!=null?V:{},...oe,flexBasis:"auto",width:t.width};return r||(t.maxWidth&&(ie.maxWidth=t.maxWidth),t.minWidth&&(ie.minWidth=t.minWidth)),ie};function useColumns(t,r,$){const V=computed(()=>unref(r).filter(Fe=>!Fe.hidden)),oe=computed(()=>unref(V).filter(Fe=>Fe.fixed==="left"||Fe.fixed===!0)),ie=computed(()=>unref(V).filter(Fe=>Fe.fixed==="right")),le=computed(()=>unref(V).filter(Fe=>!Fe.fixed)),ue=computed(()=>{const Fe=[];return unref(oe).forEach(Ue=>{Fe.push({...Ue,placeholderSign})}),unref(le).forEach(Ue=>{Fe.push(Ue)}),unref(ie).forEach(Ue=>{Fe.push({...Ue,placeholderSign})}),Fe}),de=computed(()=>unref(oe).length||unref(ie).length),pe=computed(()=>unref(r).reduce((Ue,qe)=>(Ue[qe.key]=calcColumnStyle(qe,unref($),t.fixed),Ue),{})),he=computed(()=>unref(V).reduce((Fe,Ue)=>Fe+Ue.width,0)),_e=Fe=>unref(r).find(Ue=>Ue.key===Fe),$e=Fe=>unref(pe)[Fe],Ie=(Fe,Ue)=>{Fe.width=Ue};function Ve(Fe){var Ue;const{key:qe}=Fe.currentTarget.dataset;if(!qe)return;const{sortState:Et,sortBy:Lt}=t;let hn=SortOrder.ASC;isObject$a(Et)?hn=oppositeOrderMap[Et[qe]]:hn=oppositeOrderMap[Lt.order],(Ue=t.onColumnSort)==null||Ue.call(t,{column:_e(qe),key:qe,order:hn})}return{columns:r,columnsStyles:pe,columnsTotalWidth:he,fixedColumnsOnLeft:oe,fixedColumnsOnRight:ie,hasFixedColumns:de,mainColumns:ue,normalColumns:le,visibleColumns:V,getColumn:_e,getColumnStyle:$e,updateColumnWidth:Ie,onColumnSorted:Ve}}const useScrollbar=(t,{mainTableRef:r,leftTableRef:$,rightTableRef:V,onMaybeEndReached:oe})=>{const ie=ref({scrollLeft:0,scrollTop:0});function le(Ie){var Ve,Fe,Ue;const{scrollTop:qe}=Ie;(Ve=r.value)==null||Ve.scrollTo(Ie),(Fe=$.value)==null||Fe.scrollToTop(qe),(Ue=V.value)==null||Ue.scrollToTop(qe)}function ue(Ie){ie.value=Ie,le(Ie)}function de(Ie){ie.value.scrollTop=Ie,le(unref(ie))}function pe(Ie){var Ve,Fe;ie.value.scrollLeft=Ie,(Fe=(Ve=r.value)==null?void 0:Ve.scrollTo)==null||Fe.call(Ve,unref(ie))}function he(Ie){var Ve;ue(Ie),(Ve=t.onScroll)==null||Ve.call(t,Ie)}function _e({scrollTop:Ie}){const{scrollTop:Ve}=unref(ie);Ie!==Ve&&de(Ie)}function $e(Ie,Ve="auto"){var Fe;(Fe=r.value)==null||Fe.scrollToRow(Ie,Ve)}return watch(()=>unref(ie).scrollTop,(Ie,Ve)=>{Ie>Ve&&oe()}),{scrollPos:ie,scrollTo:ue,scrollToLeft:pe,scrollToTop:de,scrollToRow:$e,onScroll:he,onVerticalScroll:_e}},useRow=(t,{mainTableRef:r,leftTableRef:$,rightTableRef:V})=>{const oe=getCurrentInstance(),{emit:ie}=oe,le=shallowRef(!1),ue=shallowRef(null),de=ref(t.defaultExpandedRowKeys||[]),pe=ref(-1),he=shallowRef(null),_e=ref({}),$e=ref({}),Ie=shallowRef({}),Ve=shallowRef({}),Fe=shallowRef({}),Ue=computed(()=>isNumber$4(t.estimatedRowHeight));function qe(En){var wn;(wn=t.onRowsRendered)==null||wn.call(t,En),En.rowCacheEnd>unref(pe)&&(pe.value=En.rowCacheEnd)}function Et({hovered:En,rowKey:wn}){ue.value=En?wn:null}function Lt({expanded:En,rowData:wn,rowIndex:$n,rowKey:Tn}){var xn,An;const Mn=[...unref(de)],Vn=Mn.indexOf(Tn);En?Vn===-1&&Mn.push(Tn):Vn>-1&&Mn.splice(Vn,1),de.value=Mn,ie("update:expandedRowKeys",Mn),(xn=t.onRowExpand)==null||xn.call(t,{expanded:En,rowData:wn,rowIndex:$n,rowKey:Tn}),(An=t.onExpandedRowsChange)==null||An.call(t,Mn)}const hn=debounce(()=>{var En,wn,$n,Tn;le.value=!0,_e.value={...unref(_e),...unref($e)},Cn(unref(he),!1),$e.value={},he.value=null,(En=r.value)==null||En.forceUpdate(),(wn=$.value)==null||wn.forceUpdate(),($n=V.value)==null||$n.forceUpdate(),(Tn=oe.proxy)==null||Tn.$forceUpdate(),le.value=!1},0);function Cn(En,wn=!1){unref(Ue)&&[r,$,V].forEach($n=>{const Tn=unref($n);Tn&&Tn.resetAfterRowIndex(En,wn)})}function bn(En,wn,$n){const Tn=unref(he);(Tn===null||Tn>$n)&&(he.value=$n),$e.value[En]=wn}function Sn({rowKey:En,height:wn,rowIndex:$n},Tn){Tn?Tn===FixedDir.RIGHT?Fe.value[En]=wn:Ie.value[En]=wn:Ve.value[En]=wn;const xn=Math.max(...[Ie,Fe,Ve].map(An=>An.value[En]||0));unref(_e)[En]!==xn&&(bn(En,xn,$n),hn())}return{hoveringRowKey:ue,expandedRowKeys:de,lastRenderedRowIndex:pe,isDynamic:Ue,isResetting:le,rowHeights:_e,resetAfterIndex:Cn,onRowExpanded:Lt,onRowHovered:Et,onRowsRendered:qe,onRowHeightChange:Sn}},useData=(t,{expandedRowKeys:r,lastRenderedRowIndex:$,resetAfterIndex:V})=>{const oe=ref({}),ie=computed(()=>{const ue={},{data:de,rowKey:pe}=t,he=unref(r);if(!he||!he.length)return de;const _e=[],$e=new Set;he.forEach(Ve=>$e.add(Ve));let Ie=de.slice();for(Ie.forEach(Ve=>ue[Ve[pe]]=0);Ie.length>0;){const Ve=Ie.shift();_e.push(Ve),$e.has(Ve[pe])&&Array.isArray(Ve.children)&&Ve.children.length>0&&(Ie=[...Ve.children,...Ie],Ve.children.forEach(Fe=>ue[Fe[pe]]=ue[Ve[pe]]+1))}return oe.value=ue,_e}),le=computed(()=>{const{data:ue,expandColumnKey:de}=t;return de?unref(ie):ue});return watch(le,(ue,de)=>{ue!==de&&($.value=-1,V(0,!0))}),{data:le,depthMap:oe}},sumReducer=(t,r)=>t+r,sum=t=>isArray$c(t)?t.reduce(sumReducer,0):t,tryCall=(t,r,$={})=>isFunction$5(t)?t(r):t??$,enforceUnit=t=>(["width","maxWidth","minWidth","height"].forEach(r=>{t[r]=addUnit(t[r])}),t),componentToSlot=t=>isVNode$1(t)?r=>h$2(t,r):t,useStyles=(t,{columnsTotalWidth:r,data:$,fixedColumnsOnLeft:V,fixedColumnsOnRight:oe})=>{const ie=computed(()=>{const{fixed:Lt,width:hn,vScrollbarSize:Cn}=t,bn=hn-Cn;return Lt?Math.max(Math.round(unref(r)),bn):bn}),le=computed(()=>unref(ie)+(t.fixed?t.vScrollbarSize:0)),ue=computed(()=>{const{height:Lt=0,maxHeight:hn=0,footerHeight:Cn,hScrollbarSize:bn}=t;if(hn>0){const Sn=unref(Ve),En=unref(de),$n=unref(Ie)+Sn+En+bn;return Math.min($n,hn-Cn)}return Lt-Cn}),de=computed(()=>{const{rowHeight:Lt,estimatedRowHeight:hn}=t,Cn=unref($);return isNumber$4(hn)?Cn.length*hn:Cn.length*Lt}),pe=computed(()=>{const{maxHeight:Lt}=t,hn=unref(ue);if(isNumber$4(Lt)&&Lt>0)return hn;const Cn=unref(de)+unref(Ie)+unref(Ve);return Math.min(hn,Cn)}),he=Lt=>Lt.width,_e=computed(()=>sum(unref(V).map(he))),$e=computed(()=>sum(unref(oe).map(he))),Ie=computed(()=>sum(t.headerHeight)),Ve=computed(()=>{var Lt;return(((Lt=t.fixedData)==null?void 0:Lt.length)||0)*t.rowHeight}),Fe=computed(()=>unref(ue)-unref(Ie)-unref(Ve)),Ue=computed(()=>{const{style:Lt={},height:hn,width:Cn}=t;return enforceUnit({...Lt,height:hn,width:Cn})}),qe=computed(()=>enforceUnit({height:t.footerHeight})),Et=computed(()=>({top:addUnit(unref(Ie)),bottom:addUnit(t.footerHeight),width:addUnit(t.width)}));return{bodyWidth:ie,fixedTableHeight:pe,mainTableHeight:ue,leftTableWidth:_e,rightTableWidth:$e,headerWidth:le,rowsHeight:de,windowHeight:Fe,footerHeight:qe,emptyStyle:Et,rootStyle:Ue,headerHeight:Ie}},useAutoResize=t=>{const r=ref(),$=ref(0),V=ref(0);let oe;return onMounted(()=>{oe=useResizeObserver$1(r,([ie])=>{const{width:le,height:ue}=ie.contentRect,{paddingLeft:de,paddingRight:pe,paddingTop:he,paddingBottom:_e}=getComputedStyle(ie.target),$e=Number.parseInt(de)||0,Ie=Number.parseInt(pe)||0,Ve=Number.parseInt(he)||0,Fe=Number.parseInt(_e)||0;$.value=le-$e-Ie,V.value=ue-Ve-Fe}).stop}),onBeforeUnmount(()=>{oe==null||oe()}),watch([$,V],([ie,le])=>{var ue;(ue=t.onResize)==null||ue.call(t,{width:ie,height:le})}),{sizer:r,width:$,height:V}};function useTable(t){const r=ref(),$=ref(),V=ref(),{columns:oe,columnsStyles:ie,columnsTotalWidth:le,fixedColumnsOnLeft:ue,fixedColumnsOnRight:de,hasFixedColumns:pe,mainColumns:he,onColumnSorted:_e}=useColumns(t,toRef(t,"columns"),toRef(t,"fixed")),{scrollTo:$e,scrollToLeft:Ie,scrollToTop:Ve,scrollToRow:Fe,onScroll:Ue,onVerticalScroll:qe,scrollPos:Et}=useScrollbar(t,{mainTableRef:r,leftTableRef:$,rightTableRef:V,onMaybeEndReached:zn}),{expandedRowKeys:Lt,hoveringRowKey:hn,lastRenderedRowIndex:Cn,isDynamic:bn,isResetting:Sn,rowHeights:En,resetAfterIndex:wn,onRowExpanded:$n,onRowHeightChange:Tn,onRowHovered:xn,onRowsRendered:An}=useRow(t,{mainTableRef:r,leftTableRef:$,rightTableRef:V}),{data:Mn,depthMap:Vn}=useData(t,{expandedRowKeys:Lt,lastRenderedRowIndex:Cn,resetAfterIndex:wn}),{bodyWidth:Bn,fixedTableHeight:Dn,mainTableHeight:Ln,leftTableWidth:Pn,rightTableWidth:Fn,headerWidth:Un,rowsHeight:Wn,windowHeight:Zn,footerHeight:or,emptyStyle:br,rootStyle:Qn,headerHeight:Gn}=useStyles(t,{columnsTotalWidth:le,data:Mn,fixedColumnsOnLeft:ue,fixedColumnsOnRight:de}),Yn=shallowRef(!1),er=ref(),lr=computed(()=>{const Kn=unref(Mn).length===0;return isArray$c(t.fixedData)?t.fixedData.length===0&&Kn:Kn});function sr(Kn){const{estimatedRowHeight:Jn,rowHeight:cr,rowKey:_r}=t;return Jn?unref(En)[unref(Mn)[Kn][_r]]||Jn:cr}function zn(){const{onEndReached:Kn}=t;if(!Kn)return;const{scrollTop:Jn}=unref(Et),cr=unref(Wn),_r=unref(Zn),ur=cr-(Jn+_r)+t.hScrollbarSize;unref(Cn)>=0&&cr===Jn+unref(Ln)-unref(Gn)&&Kn(ur)}return watch(()=>t.expandedRowKeys,Kn=>Lt.value=Kn,{deep:!0}),{columns:oe,containerRef:er,mainTableRef:r,leftTableRef:$,rightTableRef:V,isDynamic:bn,isResetting:Sn,isScrolling:Yn,hoveringRowKey:hn,hasFixedColumns:pe,columnsStyles:ie,columnsTotalWidth:le,data:Mn,expandedRowKeys:Lt,depthMap:Vn,fixedColumnsOnLeft:ue,fixedColumnsOnRight:de,mainColumns:he,bodyWidth:Bn,emptyStyle:br,rootStyle:Qn,headerWidth:Un,footerHeight:or,mainTableHeight:Ln,fixedTableHeight:Dn,leftTableWidth:Pn,rightTableWidth:Fn,showEmpty:lr,getRowHeight:sr,onColumnSorted:_e,onRowHovered:xn,onRowExpanded:$n,onRowsRendered:An,onRowHeightChange:Tn,scrollTo:$e,scrollToLeft:Ie,scrollToTop:Ve,scrollToRow:Fe,onScroll:Ue,onVerticalScroll:qe}}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=(t,{slots:r})=>{var $;const{cellData:V,style:oe}=t,ie=(($=V==null?void 0:V.toString)==null?void 0:$.call(V))||"";return createVNode("div",{class:t.class,title:ie,style:oe},[r.default?r.default(t):ie])};TableV2Cell.displayName="ElTableV2Cell";TableV2Cell.inheritAttrs=!1;const HeaderCell=(t,{slots:r})=>{var $,V;return r.default?r.default(t):createVNode("div",{class:t.class,title:($=t.column)==null?void 0:$.title},[(V=t.column)==null?void 0:V.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(t,{slots:r}){return()=>{const{columns:$,columnsStyles:V,headerIndex:oe,style:ie}=t;let le=$.map((ue,de)=>r.cell({columns:$,column:ue,columnIndex:de,headerIndex:oe,style:V[ue.key]}));return r.header&&(le=r.header({cells:le.map(ue=>isArray$c(ue)&&ue.length===1?ue[0]:ue),columns:$,headerIndex:oe})),createVNode("div",{class:t.class,style:ie,role:"row"},[le])}}}),COMPONENT_NAME$7="ElTableV2Header",TableV2Header=defineComponent({name:COMPONENT_NAME$7,props:tableV2HeaderProps,setup(t,{slots:r,expose:$}){const V=useNamespace("table-v2"),oe=ref(),ie=computed(()=>enforceUnit({width:t.width,height:t.height})),le=computed(()=>enforceUnit({width:t.rowWidth,height:t.height})),ue=computed(()=>castArray$1(unref(t.headerHeight))),de=_e=>{const $e=unref(oe);nextTick(()=>{$e!=null&&$e.scroll&&$e.scroll({left:_e})})},pe=()=>{const _e=V.e("fixed-header-row"),{columns:$e,fixedHeaderData:Ie,rowHeight:Ve}=t;return Ie==null?void 0:Ie.map((Fe,Ue)=>{var qe;const Et=enforceUnit({height:Ve,width:"100%"});return(qe=r.fixed)==null?void 0:qe.call(r,{class:_e,columns:$e,rowData:Fe,rowIndex:-(Ue+1),style:Et})})},he=()=>{const _e=V.e("dynamic-header-row"),{columns:$e}=t;return unref(ue).map((Ie,Ve)=>{var Fe;const Ue=enforceUnit({width:"100%",height:Ie});return(Fe=r.dynamic)==null?void 0:Fe.call(r,{class:_e,columns:$e,headerIndex:Ve,style:Ue})})};return $({scrollToLeft:de}),()=>{if(!(t.height<=0))return createVNode("div",{ref:oe,class:t.class,style:unref(ie),role:"rowgroup"},[createVNode("div",{style:unref(le),class:V.e("header")},[he(),pe()])])}}}),useTableRow=t=>{const{isScrolling:r}=inject(TableV2InjectionKey),$=ref(!1),V=ref(),oe=computed(()=>isNumber$4(t.estimatedRowHeight)&&t.rowIndex>=0),ie=(de=!1)=>{const pe=unref(V);if(!pe)return;const{columns:he,onRowHeightChange:_e,rowKey:$e,rowIndex:Ie,style:Ve}=t,{height:Fe}=pe.getBoundingClientRect();$.value=!0,nextTick(()=>{if(de||Fe!==Number.parseInt(Ve.height)){const Ue=he[0],qe=(Ue==null?void 0:Ue.placeholderSign)===placeholderSign;_e==null||_e({rowKey:$e,height:Fe,rowIndex:Ie},Ue&&!qe&&Ue.fixed)}})},le=computed(()=>{const{rowData:de,rowIndex:pe,rowKey:he,onRowHover:_e}=t,$e=t.rowEventHandlers||{},Ie={};return Object.entries($e).forEach(([Ve,Fe])=>{isFunction$5(Fe)&&(Ie[Ve]=Ue=>{Fe({event:Ue,rowData:de,rowIndex:pe,rowKey:he})})}),_e&&[{name:"onMouseleave",hovered:!1},{name:"onMouseenter",hovered:!0}].forEach(({name:Ve,hovered:Fe})=>{const Ue=Ie[Ve];Ie[Ve]=qe=>{_e({event:qe,hovered:Fe,rowData:de,rowIndex:pe,rowKey:he}),Ue==null||Ue(qe)}}),Ie}),ue=de=>{const{onRowExpand:pe,rowData:he,rowIndex:_e,rowKey:$e}=t;pe==null||pe({expanded:de,rowData:he,rowIndex:_e,rowKey:$e})};return onMounted(()=>{unref(oe)&&ie(!0)}),{isScrolling:r,measurable:oe,measured:$,rowRef:V,eventHandlers:le,onExpand:ue}},COMPONENT_NAME$6="ElTableV2TableRow",TableV2Row=defineComponent({name:COMPONENT_NAME$6,props:tableV2RowProps,setup(t,{expose:r,slots:$,attrs:V}){const{eventHandlers:oe,isScrolling:ie,measurable:le,measured:ue,rowRef:de,onExpand:pe}=useTableRow(t);return r({onExpand:pe}),()=>{const{columns:he,columnsStyles:_e,expandColumnKey:$e,depth:Ie,rowData:Ve,rowIndex:Fe,style:Ue}=t;let qe=he.map((Et,Lt)=>{const hn=isArray$c(Ve.children)&&Ve.children.length>0&&Et.key===$e;return $.cell({column:Et,columns:he,columnIndex:Lt,depth:Ie,style:_e[Et.key],rowData:Ve,rowIndex:Fe,isScrolling:unref(ie),expandIconProps:hn?{rowData:Ve,rowIndex:Fe,onExpand:pe}:void 0})});if($.row&&(qe=$.row({cells:qe.map(Et=>isArray$c(Et)&&Et.length===1?Et[0]:Et),style:Ue,columns:he,depth:Ie,rowData:Ve,rowIndex:Fe,isScrolling:unref(ie)})),unref(le)){const{height:Et,...Lt}=Ue||{},hn=unref(ue);return createVNode("div",mergeProps({ref:de,class:t.class,style:hn?Ue:Lt,role:"row"},V,unref(oe)),[qe])}return createVNode("div",mergeProps(V,{ref:de,class:t.class,style:Ue,role:"row"},unref(oe)),[qe])}}}),SortIcon=t=>{const{sortOrder:r}=t;return createVNode(ElIcon,{size:14,class:t.class},{default:()=>[r===SortOrder.ASC?createVNode(sort_up_default,null,null):createVNode(sort_down_default,null,null)]})},ExpandIcon=t=>{const{expanded:r,expandable:$,onExpand:V,style:oe,size:ie}=t,le={onClick:$?()=>V(!r):void 0,class:t.class};return createVNode(ElIcon,mergeProps(le,{size:ie,style:oe}),{default:()=>[createVNode(arrow_right_default,null,null)]})},COMPONENT_NAME$5="ElTableV2Grid",useTableGrid=t=>{const r=ref(),$=ref(),V=computed(()=>{const{data:Fe,rowHeight:Ue,estimatedRowHeight:qe}=t;if(!qe)return Fe.length*Ue}),oe=computed(()=>{const{fixedData:Fe,rowHeight:Ue}=t;return((Fe==null?void 0:Fe.length)||0)*Ue}),ie=computed(()=>sum(t.headerHeight)),le=computed(()=>{const{height:Fe}=t;return Math.max(0,Fe-unref(ie)-unref(oe))}),ue=computed(()=>unref(ie)+unref(oe)>0),de=({data:Fe,rowIndex:Ue})=>Fe[Ue][t.rowKey];function pe({rowCacheStart:Fe,rowCacheEnd:Ue,rowVisibleStart:qe,rowVisibleEnd:Et}){var Lt;(Lt=t.onRowsRendered)==null||Lt.call(t,{rowCacheStart:Fe,rowCacheEnd:Ue,rowVisibleStart:qe,rowVisibleEnd:Et})}function he(Fe,Ue){var qe;(qe=$.value)==null||qe.resetAfterRowIndex(Fe,Ue)}function _e(Fe,Ue){const qe=unref(r),Et=unref($);!qe||!Et||(isObject$a(Fe)?(qe.scrollToLeft(Fe.scrollLeft),Et.scrollTo(Fe)):(qe.scrollToLeft(Fe),Et.scrollTo({scrollLeft:Fe,scrollTop:Ue})))}function $e(Fe){var Ue;(Ue=unref($))==null||Ue.scrollTo({scrollTop:Fe})}function Ie(Fe,Ue){var qe;(qe=unref($))==null||qe.scrollToItem(Fe,1,Ue)}function Ve(){var Fe,Ue;(Fe=unref($))==null||Fe.$forceUpdate(),(Ue=unref(r))==null||Ue.$forceUpdate()}return{bodyRef:$,forceUpdate:Ve,fixedRowHeight:oe,gridHeight:le,hasHeader:ue,headerHeight:ie,headerRef:r,totalHeight:V,itemKey:de,onItemRendered:pe,resetAfterRowIndex:he,scrollTo:_e,scrollToTop:$e,scrollToRow:Ie}},TableGrid=defineComponent({name:COMPONENT_NAME$5,props:tableV2GridProps,setup(t,{slots:r,expose:$}){const{ns:V}=inject(TableV2InjectionKey),{bodyRef:oe,fixedRowHeight:ie,gridHeight:le,hasHeader:ue,headerRef:de,headerHeight:pe,totalHeight:he,forceUpdate:_e,itemKey:$e,onItemRendered:Ie,resetAfterRowIndex:Ve,scrollTo:Fe,scrollToTop:Ue,scrollToRow:qe}=useTableGrid(t);$({forceUpdate:_e,totalHeight:he,scrollTo:Fe,scrollToTop:Ue,scrollToRow:qe,resetAfterRowIndex:Ve});const Et=()=>t.bodyWidth;return()=>{const{cache:Lt,columns:hn,data:Cn,fixedData:bn,useIsScrolling:Sn,scrollbarAlwaysOn:En,scrollbarEndGap:wn,scrollbarStartGap:$n,style:Tn,rowHeight:xn,bodyWidth:An,estimatedRowHeight:Mn,headerWidth:Vn,height:Bn,width:Dn,getRowHeight:Ln,onScroll:Pn}=t,Fn=isNumber$4(Mn),Un=Fn?DynamicSizeGrid:FixedSizeGrid,Wn=unref(pe);return createVNode("div",{role:"table",class:[V.e("table"),t.class],style:Tn},[createVNode(Un,{ref:oe,data:Cn,useIsScrolling:Sn,itemKey:$e,columnCache:0,columnWidth:Fn?Et:An,totalColumn:1,totalRow:Cn.length,rowCache:Lt,rowHeight:Fn?Ln:xn,width:Dn,height:unref(le),class:V.e("body"),role:"rowgroup",scrollbarStartGap:$n,scrollbarEndGap:wn,scrollbarAlwaysOn:En,onScroll:Pn,onItemRendered:Ie,perfMode:!1},{default:Zn=>{var or;const br=Cn[Zn.rowIndex];return(or=r.row)==null?void 0:or.call(r,{...Zn,columns:hn,rowData:br})}}),unref(ue)&&createVNode(TableV2Header,{ref:de,class:V.e("header-wrapper"),columns:hn,headerData:Cn,headerHeight:t.headerHeight,fixedHeaderData:bn,rowWidth:Vn,rowHeight:xn,width:Dn,height:Math.min(Wn+unref(ie),Bn)},{dynamic:r.header,fixed:r.row})])}}});function _isSlot$5(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const MainTable=(t,{slots:r})=>{const{mainTableRef:$,...V}=t;return createVNode(TableGrid,mergeProps({ref:$},V),_isSlot$5(r)?r:{default:()=>[r]})};function _isSlot$4(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const LeftTable$1=(t,{slots:r})=>{if(!t.columns.length)return;const{leftTableRef:$,...V}=t;return createVNode(TableGrid,mergeProps({ref:$},V),_isSlot$4(r)?r:{default:()=>[r]})};function _isSlot$3(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const LeftTable=(t,{slots:r})=>{if(!t.columns.length)return;const{rightTableRef:$,...V}=t;return createVNode(TableGrid,mergeProps({ref:$},V),_isSlot$3(r)?r:{default:()=>[r]})};function _isSlot$2(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const RowRenderer=(t,{slots:r})=>{const{columns:$,columnsStyles:V,depthMap:oe,expandColumnKey:ie,expandedRowKeys:le,estimatedRowHeight:ue,hasFixedColumns:de,hoveringRowKey:pe,rowData:he,rowIndex:_e,style:$e,isScrolling:Ie,rowProps:Ve,rowClass:Fe,rowKey:Ue,rowEventHandlers:qe,ns:Et,onRowHovered:Lt,onRowExpanded:hn}=t,Cn=tryCall(Fe,{columns:$,rowData:he,rowIndex:_e},""),bn=tryCall(Ve,{columns:$,rowData:he,rowIndex:_e}),Sn=he[Ue],En=oe[Sn]||0,wn=!!ie,$n=_e<0,Tn=[Et.e("row"),Cn,{[Et.e(`row-depth-${En}`)]:wn&&_e>=0,[Et.is("expanded")]:wn&&le.includes(Sn),[Et.is("hovered")]:!Ie&&Sn===pe,[Et.is("fixed")]:!En&&$n,[Et.is("customized")]:!!r.row}],xn=de?Lt:void 0,An={...bn,columns:$,columnsStyles:V,class:Tn,depth:En,expandColumnKey:ie,estimatedRowHeight:$n?void 0:ue,isScrolling:Ie,rowIndex:_e,rowData:he,rowKey:Sn,rowEventHandlers:qe,style:$e};return createVNode(TableV2Row,mergeProps(An,{onRowHover:xn,onRowExpand:hn}),_isSlot$2(r)?r:{default:()=>[r]})},CellRenderer=({columns:t,column:r,columnIndex:$,depth:V,expandIconProps:oe,isScrolling:ie,rowData:le,rowIndex:ue,style:de,expandedRowKeys:pe,ns:he,cellProps:_e,expandColumnKey:$e,indentSize:Ie,iconSize:Ve,rowKey:Fe},{slots:Ue})=>{const qe=enforceUnit(de);if(r.placeholderSign===placeholderSign)return createVNode("div",{class:he.em("row-cell","placeholder"),style:qe},null);const{cellRenderer:Et,dataKey:Lt,dataGetter:hn}=r,bn=componentToSlot(Et)||Ue.default||(Bn=>createVNode(TableV2Cell,Bn,null)),Sn=isFunction$5(hn)?hn({columns:t,column:r,columnIndex:$,rowData:le,rowIndex:ue}):get$1(le,Lt??""),En=tryCall(_e,{cellData:Sn,columns:t,column:r,columnIndex:$,rowIndex:ue,rowData:le}),wn={class:he.e("cell-text"),columns:t,column:r,columnIndex:$,cellData:Sn,isScrolling:ie,rowData:le,rowIndex:ue},$n=bn(wn),Tn=[he.e("row-cell"),r.class,r.align===Alignment.CENTER&&he.is("align-center"),r.align===Alignment.RIGHT&&he.is("align-right")],xn=ue>=0&&$e&&r.key===$e,An=ue>=0&&pe.includes(le[Fe]);let Mn;const Vn=`margin-inline-start: ${V*Ie}px;`;return xn&&(isObject$a(oe)?Mn=createVNode(ExpandIcon,mergeProps(oe,{class:[he.e("expand-icon"),he.is("expanded",An)],size:Ve,expanded:An,style:Vn,expandable:!0}),null):Mn=createVNode("div",{style:[Vn,`width: ${Ve}px; height: ${Ve}px;`].join(" ")},null)),createVNode("div",mergeProps({class:Tn,style:qe},En,{role:"cell"}),[Mn,$n])};CellRenderer.inheritAttrs=!1;function _isSlot$1(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const HeaderRenderer=({columns:t,columnsStyles:r,headerIndex:$,style:V,headerClass:oe,headerProps:ie,ns:le},{slots:ue})=>{const de={columns:t,headerIndex:$},pe=[le.e("header-row"),tryCall(oe,de,""),{[le.is("customized")]:!!ue.header}],he={...tryCall(ie,de),columnsStyles:r,class:pe,columns:t,headerIndex:$,style:V};return createVNode(TableV2HeaderRow,he,_isSlot$1(ue)?ue:{default:()=>[ue]})},HeaderCellRenderer=(t,{slots:r})=>{const{column:$,ns:V,style:oe,onColumnSorted:ie}=t,le=enforceUnit(oe);if($.placeholderSign===placeholderSign)return createVNode("div",{class:V.em("header-row-cell","placeholder"),style:le},null);const{headerCellRenderer:ue,headerClass:de,sortable:pe}=$,he={...t,class:V.e("header-cell-text")},$e=(componentToSlot(ue)||r.default||(hn=>createVNode(HeaderCell,hn,null)))(he),{sortBy:Ie,sortState:Ve,headerCellProps:Fe}=t;let Ue,qe;if(Ve){const hn=Ve[$.key];Ue=!!oppositeOrderMap[hn],qe=Ue?hn:SortOrder.ASC}else Ue=$.key===Ie.key,qe=Ue?Ie.order:SortOrder.ASC;const Et=[V.e("header-cell"),tryCall(de,t,""),$.align===Alignment.CENTER&&V.is("align-center"),$.align===Alignment.RIGHT&&V.is("align-right"),pe&&V.is("sortable")],Lt={...tryCall(Fe,t),onClick:$.sortable?ie:void 0,class:Et,style:le,"data-key":$.key};return createVNode("div",mergeProps(Lt,{role:"columnheader"}),[$e,pe&&createVNode(SortIcon,{class:[V.e("sort-icon"),Ue&&V.is("sorting")],sortOrder:qe},null)])},Footer$1=(t,{slots:r})=>{var $;return createVNode("div",{class:t.class,style:t.style},[($=r.default)==null?void 0:$.call(r)])};Footer$1.displayName="ElTableV2Footer";const Footer=(t,{slots:r})=>createVNode("div",{class:t.class,style:t.style},[r.default?r.default():createVNode(ElEmpty,null,null)]);Footer.displayName="ElTableV2Empty";const Overlay=(t,{slots:r})=>{var $;return createVNode("div",{class:t.class,style:t.style},[($=r.default)==null?void 0:$.call(r)])};Overlay.displayName="ElTableV2Overlay";function _isSlot(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!isVNode$1(t)}const COMPONENT_NAME$4="ElTableV2",TableV2=defineComponent({name:COMPONENT_NAME$4,props:tableV2Props,setup(t,{slots:r,expose:$}){const V=useNamespace("table-v2"),{columnsStyles:oe,fixedColumnsOnLeft:ie,fixedColumnsOnRight:le,mainColumns:ue,mainTableHeight:de,fixedTableHeight:pe,leftTableWidth:he,rightTableWidth:_e,data:$e,depthMap:Ie,expandedRowKeys:Ve,hasFixedColumns:Fe,hoveringRowKey:Ue,mainTableRef:qe,leftTableRef:Et,rightTableRef:Lt,isDynamic:hn,isResetting:Cn,isScrolling:bn,bodyWidth:Sn,emptyStyle:En,rootStyle:wn,headerWidth:$n,footerHeight:Tn,showEmpty:xn,scrollTo:An,scrollToLeft:Mn,scrollToTop:Vn,scrollToRow:Bn,getRowHeight:Dn,onColumnSorted:Ln,onRowHeightChange:Pn,onRowHovered:Fn,onRowExpanded:Un,onRowsRendered:Wn,onScroll:Zn,onVerticalScroll:or}=useTable(t);return $({scrollTo:An,scrollToLeft:Mn,scrollToTop:Vn,scrollToRow:Bn}),provide(TableV2InjectionKey,{ns:V,isResetting:Cn,hoveringRowKey:Ue,isScrolling:bn}),()=>{const{cache:br,cellProps:Qn,estimatedRowHeight:Gn,expandColumnKey:Yn,fixedData:er,headerHeight:lr,headerClass:sr,headerProps:zn,headerCellProps:Kn,sortBy:Jn,sortState:cr,rowHeight:_r,rowClass:ur,rowEventHandlers:wr,rowKey:Cr,rowProps:mr,scrollbarAlwaysOn:Er,indentSize:Tr,iconSize:nr,useIsScrolling:pr,vScrollbarSize:gr,width:$r}=t,Rr=unref($e),Lr={cache:br,class:V.e("main"),columns:unref(ue),data:Rr,fixedData:er,estimatedRowHeight:Gn,bodyWidth:unref(Sn)+gr,headerHeight:lr,headerWidth:unref($n),height:unref(de),mainTableRef:qe,rowKey:Cr,rowHeight:_r,scrollbarAlwaysOn:Er,scrollbarStartGap:2,scrollbarEndGap:gr,useIsScrolling:pr,width:$r,getRowHeight:Dn,onRowsRendered:Wn,onScroll:Zn},Vr=unref(he),Nr=unref(pe),dr={cache:br,class:V.e("left"),columns:unref(ie),data:Rr,estimatedRowHeight:Gn,leftTableRef:Et,rowHeight:_r,bodyWidth:Vr,headerWidth:Vr,headerHeight:lr,height:Nr,rowKey:Cr,scrollbarAlwaysOn:Er,scrollbarStartGap:2,scrollbarEndGap:gr,useIsScrolling:pr,width:Vr,getRowHeight:Dn,onScroll:or},tr=unref(_e)+gr,Sr={cache:br,class:V.e("right"),columns:unref(le),data:Rr,estimatedRowHeight:Gn,rightTableRef:Lt,rowHeight:_r,bodyWidth:tr,headerWidth:tr,headerHeight:lr,height:Nr,rowKey:Cr,scrollbarAlwaysOn:Er,scrollbarStartGap:2,scrollbarEndGap:gr,width:tr,style:`--${unref(V.namespace)}-table-scrollbar-size: ${gr}px`,useIsScrolling:pr,getRowHeight:Dn,onScroll:or},qn=unref(oe),kr={ns:V,depthMap:unref(Ie),columnsStyles:qn,expandColumnKey:Yn,expandedRowKeys:unref(Ve),estimatedRowHeight:Gn,hasFixedColumns:unref(Fe),hoveringRowKey:unref(Ue),rowProps:mr,rowClass:ur,rowKey:Cr,rowEventHandlers:wr,onRowHovered:Fn,onRowExpanded:Un,onRowHeightChange:Pn},Dr={cellProps:Qn,expandColumnKey:Yn,indentSize:Tr,iconSize:nr,rowKey:Cr,expandedRowKeys:unref(Ve),ns:V},Hr={ns:V,headerClass:sr,headerProps:zn,columnsStyles:qn},Gr={ns:V,sortBy:Jn,sortState:cr,headerCellProps:Kn,onColumnSorted:Ln},Kr={row:hr=>createVNode(RowRenderer,mergeProps(hr,kr),{row:r.row,cell:xr=>{let ir;return r.cell?createVNode(CellRenderer,mergeProps(xr,Dr,{style:qn[xr.column.key]}),_isSlot(ir=r.cell(xr))?ir:{default:()=>[ir]}):createVNode(CellRenderer,mergeProps(xr,Dr,{style:qn[xr.column.key]}),null)}}),header:hr=>createVNode(HeaderRenderer,mergeProps(hr,Hr),{header:r.header,cell:xr=>{let ir;return r["header-cell"]?createVNode(HeaderCellRenderer,mergeProps(xr,Gr,{style:qn[xr.column.key]}),_isSlot(ir=r["header-cell"](xr))?ir:{default:()=>[ir]}):createVNode(HeaderCellRenderer,mergeProps(xr,Gr,{style:qn[xr.column.key]}),null)}})},to=[t.class,V.b(),V.e("root"),{[V.is("dynamic")]:unref(hn)}],Zr={class:V.e("footer"),style:unref(Tn)};return createVNode("div",{class:to,style:unref(wn)},[createVNode(MainTable,Lr,_isSlot(Kr)?Kr:{default:()=>[Kr]}),createVNode(LeftTable$1,dr,_isSlot(Kr)?Kr:{default:()=>[Kr]}),createVNode(LeftTable,Sr,_isSlot(Kr)?Kr:{default:()=>[Kr]}),r.footer&&createVNode(Footer$1,Zr,{default:r.footer}),unref(xn)&&createVNode(Footer,{class:V.e("empty"),style:unref(En)},{default:r.empty}),r.overlay&&createVNode(Overlay,{class:V.e("overlay")},{default:r.overlay})])}}}),autoResizerProps=buildProps({disableWidth:Boolean,disableHeight:Boolean,onResize:{type:definePropType(Function)}}),AutoResizer=defineComponent({name:"ElAutoResizer",props:autoResizerProps,setup(t,{slots:r}){const $=useNamespace("auto-resizer"),{height:V,width:oe,sizer:ie}=useAutoResize(t),le={width:"100%",height:"100%"};return()=>{var ue;return createVNode("div",{ref:ie,class:$.b(),style:le},[(ue=r.default)==null?void 0:ue.call(r,{height:V.value,width:oe.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$s=defineComponent({...__default__$k,props:tabBarProps,setup(t,{expose:r}){const $=t,V=getCurrentInstance(),oe=inject(tabsRootContextKey);oe||throwError$1(COMPONENT_NAME$3,"");const ie=useNamespace("tabs"),le=ref(),ue=ref(),de=()=>{let he=0,_e=0;const $e=["top","bottom"].includes(oe.props.tabPosition)?"width":"height",Ie=$e==="width"?"x":"y",Ve=Ie==="x"?"left":"top";return $.tabs.every(Fe=>{var Ue,qe;const Et=(qe=(Ue=V.parent)==null?void 0:Ue.refs)==null?void 0:qe[`tab-${Fe.uid}`];if(!Et)return!1;if(!Fe.active)return!0;he=Et[`offset${capitalize$1(Ve)}`],_e=Et[`client${capitalize$1($e)}`];const Lt=window.getComputedStyle(Et);return $e==="width"&&($.tabs.length>1&&(_e-=Number.parseFloat(Lt.paddingLeft)+Number.parseFloat(Lt.paddingRight)),he+=Number.parseFloat(Lt.paddingLeft)),!1}),{[$e]:`${_e}px`,transform:`translate${capitalize$1(Ie)}(${he}px)`}},pe=()=>ue.value=de();return watch(()=>$.tabs,async()=>{await nextTick(),pe()},{immediate:!0}),useResizeObserver$1(le,()=>pe()),r({ref:le,update:pe}),(he,_e)=>(openBlock(),createElementBlock("div",{ref_key:"barRef",ref:le,class:normalizeClass([unref(ie).e("active-bar"),unref(ie).is(unref(oe).props.tabPosition)]),style:normalizeStyle$1(ue.value)},null,6))}});var TabBar=_export_sfc$1(_sfc_main$s,[["__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:(t,r,$)=>$ instanceof Event,tabRemove:(t,r)=>r instanceof Event},COMPONENT_NAME$2="ElTabNav",TabNav=defineComponent({name:COMPONENT_NAME$2,props:tabNavProps,emits:tabNavEmits,setup(t,{expose:r,emit:$}){const V=getCurrentInstance(),oe=inject(tabsRootContextKey);oe||throwError$1(COMPONENT_NAME$2,"");const ie=useNamespace("tabs"),le=useDocumentVisibility(),ue=useWindowFocus(),de=ref(),pe=ref(),he=ref(),_e=ref(),$e=ref(!1),Ie=ref(0),Ve=ref(!1),Fe=ref(!0),Ue=computed(()=>["top","bottom"].includes(oe.props.tabPosition)?"width":"height"),qe=computed(()=>({transform:`translate${Ue.value==="width"?"X":"Y"}(-${Ie.value}px)`})),Et=()=>{if(!de.value)return;const wn=de.value[`offset${capitalize$1(Ue.value)}`],$n=Ie.value;if(!$n)return;const Tn=$n>wn?$n-wn:0;Ie.value=Tn},Lt=()=>{if(!de.value||!pe.value)return;const wn=pe.value[`offset${capitalize$1(Ue.value)}`],$n=de.value[`offset${capitalize$1(Ue.value)}`],Tn=Ie.value;if(wn-Tn<=$n)return;const xn=wn-Tn>$n*2?Tn+$n:wn-$n;Ie.value=xn},hn=async()=>{const wn=pe.value;if(!$e.value||!he.value||!de.value||!wn)return;await nextTick();const $n=he.value.querySelector(".is-active");if(!$n)return;const Tn=de.value,xn=["top","bottom"].includes(oe.props.tabPosition),An=$n.getBoundingClientRect(),Mn=Tn.getBoundingClientRect(),Vn=xn?wn.offsetWidth-Mn.width:wn.offsetHeight-Mn.height,Bn=Ie.value;let Dn=Bn;xn?(An.leftMn.right&&(Dn=Bn+An.right-Mn.right)):(An.topMn.bottom&&(Dn=Bn+(An.bottom-Mn.bottom))),Dn=Math.max(Dn,0),Ie.value=Math.min(Dn,Vn)},Cn=()=>{var wn;if(!pe.value||!de.value)return;t.stretch&&((wn=_e.value)==null||wn.update());const $n=pe.value[`offset${capitalize$1(Ue.value)}`],Tn=de.value[`offset${capitalize$1(Ue.value)}`],xn=Ie.value;Tn<$n?($e.value=$e.value||{},$e.value.prev=xn,$e.value.next=xn+Tn<$n,$n-xn0&&(Ie.value=0))},bn=wn=>{const $n=wn.code,{up:Tn,down:xn,left:An,right:Mn}=EVENT_CODE;if(![Tn,xn,An,Mn].includes($n))return;const Vn=Array.from(wn.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),Bn=Vn.indexOf(wn.target);let Dn;$n===An||$n===Tn?Bn===0?Dn=Vn.length-1:Dn=Bn-1:Bn{Fe.value&&(Ve.value=!0)},En=()=>Ve.value=!1;return watch(le,wn=>{wn==="hidden"?Fe.value=!1:wn==="visible"&&setTimeout(()=>Fe.value=!0,50)}),watch(ue,wn=>{wn?setTimeout(()=>Fe.value=!0,50):Fe.value=!1}),useResizeObserver$1(he,Cn),onMounted(()=>setTimeout(()=>hn(),0)),onUpdated(()=>Cn()),r({scrollToActiveTab:hn,removeFocus:En}),watch(()=>t.panes,()=>V.update(),{flush:"post",deep:!0}),()=>{const wn=$e.value?[createVNode("span",{class:[ie.e("nav-prev"),ie.is("disabled",!$e.value.prev)],onClick:Et},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_left_default,null,null)]})]),createVNode("span",{class:[ie.e("nav-next"),ie.is("disabled",!$e.value.next)],onClick:Lt},[createVNode(ElIcon,null,{default:()=>[createVNode(arrow_right_default,null,null)]})])]:null,$n=t.panes.map((Tn,xn)=>{var An,Mn,Vn,Bn;const Dn=Tn.uid,Ln=Tn.props.disabled,Pn=(Mn=(An=Tn.props.name)!=null?An:Tn.index)!=null?Mn:`${xn}`,Fn=!Ln&&(Tn.isClosable||t.editable);Tn.index=`${xn}`;const Un=Fn?createVNode(ElIcon,{class:"is-icon-close",onClick:or=>$("tabRemove",Tn,or)},{default:()=>[createVNode(close_default,null,null)]}):null,Wn=((Bn=(Vn=Tn.slots).label)==null?void 0:Bn.call(Vn))||Tn.props.label,Zn=!Ln&&Tn.active?0:-1;return createVNode("div",{ref:`tab-${Dn}`,class:[ie.e("item"),ie.is(oe.props.tabPosition),ie.is("active",Tn.active),ie.is("disabled",Ln),ie.is("closable",Fn),ie.is("focus",Ve.value)],id:`tab-${Pn}`,key:`tab-${Dn}`,"aria-controls":`pane-${Pn}`,role:"tab","aria-selected":Tn.active,tabindex:Zn,onFocus:()=>Sn(),onBlur:()=>En(),onClick:or=>{En(),$("tabClick",Tn,Pn,or)},onKeydown:or=>{Fn&&(or.code===EVENT_CODE.delete||or.code===EVENT_CODE.backspace)&&$("tabRemove",Tn,or)}},[Wn,Un])});return createVNode("div",{ref:he,class:[ie.e("nav-wrap"),ie.is("scrollable",!!$e.value),ie.is(oe.props.tabPosition)]},[wn,createVNode("div",{class:ie.e("nav-scroll"),ref:de},[createVNode("div",{class:[ie.e("nav"),ie.is(oe.props.tabPosition),ie.is("stretch",t.stretch&&["top","bottom"].includes(oe.props.tabPosition))],ref:pe,style:qe.value,role:"tablist",onKeydown:bn},[t.type?null:createVNode(TabBar,{ref:_e,tabs:[...t.panes]},null),$n])])])}}}),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=t=>isString$6(t)||isNumber$4(t),tabsEmits={[UPDATE_MODEL_EVENT]:t=>isPaneName(t),tabClick:(t,r)=>r instanceof Event,tabChange:t=>isPaneName(t),edit:(t,r)=>["remove","add"].includes(r),tabRemove:t=>isPaneName(t),tabAdd:()=>!0};var Tabs=defineComponent({name:"ElTabs",props:tabsProps,emits:tabsEmits,setup(t,{emit:r,slots:$,expose:V}){var oe,ie;const le=useNamespace("tabs"),{children:ue,addChild:de,removeChild:pe}=useOrderedChildren(getCurrentInstance(),"ElTabPane"),he=ref(),_e=ref((ie=(oe=t.modelValue)!=null?oe:t.activeName)!=null?ie:"0"),$e=qe=>{_e.value=qe,r(UPDATE_MODEL_EVENT,qe),r("tabChange",qe)},Ie=async qe=>{var Et,Lt,hn;if(!(_e.value===qe||isUndefined$1(qe)))try{await((Et=t.beforeLeave)==null?void 0:Et.call(t,qe,_e.value))!==!1&&($e(qe),(hn=(Lt=he.value)==null?void 0:Lt.removeFocus)==null||hn.call(Lt))}catch{}},Ve=(qe,Et,Lt)=>{qe.props.disabled||(Ie(Et),r("tabClick",qe,Lt))},Fe=(qe,Et)=>{qe.props.disabled||isUndefined$1(qe.props.name)||(Et.stopPropagation(),r("edit",qe.props.name,"remove"),r("tabRemove",qe.props.name))},Ue=()=>{r("edit",void 0,"add"),r("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(()=>!!t.activeName)),watch(()=>t.activeName,qe=>Ie(qe)),watch(()=>t.modelValue,qe=>Ie(qe)),watch(_e,async()=>{var qe;await nextTick(),(qe=he.value)==null||qe.scrollToActiveTab()}),provide(tabsRootContextKey,{props:t,currentName:_e,registerPane:de,unregisterPane:pe}),V({currentName:_e}),()=>{const qe=t.editable||t.addable?createVNode("span",{class:le.e("new-tab"),tabindex:"0",onClick:Ue,onKeydown:hn=>{hn.code===EVENT_CODE.enter&&Ue()}},[createVNode(ElIcon,{class:le.is("icon-plus")},{default:()=>[createVNode(plus_default,null,null)]})]):null,Et=createVNode("div",{class:[le.e("header"),le.is(t.tabPosition)]},[qe,createVNode(TabNav,{ref:he,currentName:_e.value,editable:t.editable,type:t.type,panes:ue.value,stretch:t.stretch,onTabClick:Ve,onTabRemove:Fe},null)]),Lt=createVNode("div",{class:le.e("content")},[renderSlot($,"default")]);return createVNode("div",{class:[le.b(),le.m(t.tabPosition),{[le.m("card")]:t.type==="card",[le.m("border-card")]:t.type==="border-card"}]},[...t.tabPosition!=="bottom"?[Et,Lt]:[Lt,Et]])}}});const tabPaneProps=buildProps({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),_hoisted_1$d=["id","aria-hidden","aria-labelledby"],COMPONENT_NAME$1="ElTabPane",__default__$j=defineComponent({name:COMPONENT_NAME$1}),_sfc_main$r=defineComponent({...__default__$j,props:tabPaneProps,setup(t){const r=t,$=getCurrentInstance(),V=useSlots(),oe=inject(tabsRootContextKey);oe||throwError$1(COMPONENT_NAME$1,"usage: ");const ie=useNamespace("tab-pane"),le=ref(),ue=computed(()=>r.closable||oe.props.closable),de=computedEager(()=>{var Ie;return oe.currentName.value===((Ie=r.name)!=null?Ie:le.value)}),pe=ref(de.value),he=computed(()=>{var Ie;return(Ie=r.name)!=null?Ie:le.value}),_e=computedEager(()=>!r.lazy||pe.value||de.value);watch(de,Ie=>{Ie&&(pe.value=!0)});const $e=reactive({uid:$.uid,slots:V,props:r,paneName:he,active:de,index:le,isClosable:ue});return onMounted(()=>{oe.registerPane($e)}),onUnmounted(()=>{oe.unregisterPane($e.uid)}),(Ie,Ve)=>unref(_e)?withDirectives((openBlock(),createElementBlock("div",{key:0,id:`pane-${unref(he)}`,class:normalizeClass(unref(ie).b()),role:"tabpanel","aria-hidden":!unref(de),"aria-labelledby":`tab-${unref(he)}`},[renderSlot(Ie.$slots,"default")],10,_hoisted_1$d)),[[vShow,unref(de)]]):createCommentVNode("v-if",!0)}});var TabPane=_export_sfc$1(_sfc_main$r,[["__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$q=defineComponent({...__default__$i,props:textProps,setup(t){const r=t,$=useFormSize(),V=useNamespace("text"),oe=computed(()=>[V.b(),V.m(r.type),V.m($.value),V.is("truncated",r.truncated)]);return(ie,le)=>(openBlock(),createBlock(resolveDynamicComponent(ie.tag),{class:normalizeClass(unref(oe))},{default:withCtx(()=>[renderSlot(ie.$slots,"default")]),_:3},8,["class"]))}});var Text=_export_sfc$1(_sfc_main$q,[["__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=t=>{const r=(t||"").split(":");if(r.length>=2){let $=Number.parseInt(r[0],10);const V=Number.parseInt(r[1],10),oe=t.toUpperCase();return oe.includes("AM")&&$===12?$=0:oe.includes("PM")&&$!==12&&($+=12),{hours:$,minutes:V}}return null},compareTime=(t,r)=>{const $=parseTime(t);if(!$)return-1;const V=parseTime(r);if(!V)return-1;const oe=$.minutes+$.hours*60,ie=V.minutes+V.hours*60;return oe===ie?0:oe>ie?1:-1},padTime=t=>`${t}`.padStart(2,"0"),formatTime$1=t=>`${padTime(t.hours)}:${padTime(t.minutes)}`,nextTime=(t,r)=>{const $=parseTime(t);if(!$)return"";const V=parseTime(r);if(!V)return"";const oe={hours:$.hours,minutes:$.minutes};return oe.minutes+=V.minutes,oe.hours+=V.hours,oe.hours+=Math.floor(oe.minutes/60),oe.minutes=oe.minutes%60,formatTime$1(oe)},__default__$h=defineComponent({name:"ElTimeSelect"}),_sfc_main$p=defineComponent({...__default__$h,props:timeSelectProps,emits:["change","blur","focus","update:modelValue"],setup(t,{expose:r}){const $=t;dayjs.extend(customParseFormat);const{Option:V}=ElSelect,oe=useNamespace("input"),ie=ref(),le=useFormDisabled(),ue=computed(()=>$.modelValue),de=computed(()=>{const Ue=parseTime($.start);return Ue?formatTime$1(Ue):null}),pe=computed(()=>{const Ue=parseTime($.end);return Ue?formatTime$1(Ue):null}),he=computed(()=>{const Ue=parseTime($.step);return Ue?formatTime$1(Ue):null}),_e=computed(()=>{const Ue=parseTime($.minTime||"");return Ue?formatTime$1(Ue):null}),$e=computed(()=>{const Ue=parseTime($.maxTime||"");return Ue?formatTime$1(Ue):null}),Ie=computed(()=>{const Ue=[];if($.start&&$.end&&$.step){let qe=de.value,Et;for(;qe&&pe.value&&compareTime(qe,pe.value)<=0;)Et=dayjs(qe,"HH:mm").format($.format),Ue.push({value:Et,disabled:compareTime(qe,_e.value||"-1:-1")<=0||compareTime(qe,$e.value||"100:100")>=0}),qe=nextTime(qe,he.value)}return Ue});return r({blur:()=>{var Ue,qe;(qe=(Ue=ie.value)==null?void 0:Ue.blur)==null||qe.call(Ue)},focus:()=>{var Ue,qe;(qe=(Ue=ie.value)==null?void 0:Ue.focus)==null||qe.call(Ue)}}),(Ue,qe)=>(openBlock(),createBlock(unref(ElSelect),{ref_key:"select",ref:ie,"model-value":unref(ue),disabled:unref(le),clearable:Ue.clearable,"clear-icon":Ue.clearIcon,size:Ue.size,effect:Ue.effect,placeholder:Ue.placeholder,"default-first-option":"",filterable:Ue.editable,"onUpdate:modelValue":qe[0]||(qe[0]=Et=>Ue.$emit("update:modelValue",Et)),onChange:qe[1]||(qe[1]=Et=>Ue.$emit("change",Et)),onBlur:qe[2]||(qe[2]=Et=>Ue.$emit("blur",Et)),onFocus:qe[3]||(qe[3]=Et=>Ue.$emit("focus",Et))},{prefix:withCtx(()=>[Ue.prefixIcon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(oe).e("prefix-icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(Ue.prefixIcon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(Ie),Et=>(openBlock(),createBlock(unref(V),{key:Et.value,label:Et.value,value:Et.value,disabled:Et.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$p,[["__file","/home/runner/work/element-plus/element-plus/packages/components/time-select/src/time-select.vue"]]);TimeSelect.install=t=>{t.component(TimeSelect.name,TimeSelect)};const _TimeSelect=TimeSelect,ElTimeSelect=_TimeSelect,Timeline=defineComponent({name:"ElTimeline",setup(t,{slots:r}){const $=useNamespace("timeline");return provide("timeline",r),()=>h$2("ul",{class:[$.b()]},[renderSlot(r,"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$o=defineComponent({...__default__$g,props:timelineItemProps,setup(t){const r=t,$=useNamespace("timeline-item"),V=computed(()=>[$.e("node"),$.em("node",r.size||""),$.em("node",r.type||""),$.is("hollow",r.hollow)]);return(oe,ie)=>(openBlock(),createElementBlock("li",{class:normalizeClass([unref($).b(),{[unref($).e("center")]:oe.center}])},[createBaseVNode("div",{class:normalizeClass(unref($).e("tail"))},null,2),oe.$slots.dot?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(unref(V)),style:normalizeStyle$1({backgroundColor:oe.color})},[oe.icon?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref($).e("icon"))},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(oe.icon)))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],6)),oe.$slots.dot?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref($).e("dot"))},[renderSlot(oe.$slots,"dot")],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("wrapper"))},[!oe.hideTimestamp&&oe.placement==="top"?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass([unref($).e("timestamp"),unref($).is("top")])},toDisplayString$1(oe.timestamp),3)):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref($).e("content"))},[renderSlot(oe.$slots,"default")],2),!oe.hideTimestamp&&oe.placement==="bottom"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass([unref($).e("timestamp"),unref($).is("bottom")])},toDisplayString$1(oe.timestamp),3)):createCommentVNode("v-if",!0)],2)],2))}});var TimelineItem=_export_sfc$1(_sfc_main$o,[["__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=(t=>(t.top="top",t.bottom="bottom",t.left="left",t.right="right",t))(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$n=defineComponent({...__default__$f,props:tooltipV2RootProps,setup(t,{expose:r}){const $=t,V=ref($.defaultOpen),oe=ref(null),ie=computed({get:()=>isPropAbsent($.open)?V.value:$.open,set:Ue=>{var qe;V.value=Ue,(qe=$["onUpdate:open"])==null||qe.call($,Ue)}}),le=computed(()=>isNumber$4($.delayDuration)&&$.delayDuration>0),{start:ue,stop:de}=useTimeoutFn$1(()=>{ie.value=!0},computed(()=>$.delayDuration),{immediate:!1}),pe=useNamespace("tooltip-v2"),he=useId(),_e=()=>{de(),ie.value=!0},$e=()=>{unref(le)?ue():_e()},Ie=_e,Ve=()=>{de(),ie.value=!1};return watch(ie,Ue=>{var qe;Ue&&(document.dispatchEvent(new CustomEvent(TOOLTIP_V2_OPEN)),Ie()),(qe=$.onOpenChange)==null||qe.call($,Ue)}),onMounted(()=>{document.addEventListener(TOOLTIP_V2_OPEN,Ve)}),onBeforeUnmount(()=>{de(),document.removeEventListener(TOOLTIP_V2_OPEN,Ve)}),provide(tooltipV2RootKey,{contentId:he,triggerRef:oe,ns:pe,onClose:Ve,onDelayOpen:$e,onOpen:Ie}),r({onOpen:Ie,onClose:Ve}),(Ue,qe)=>renderSlot(Ue.$slots,"default",{open:unref(ie)})}});var TooltipV2Root=_export_sfc$1(_sfc_main$n,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/root.vue"]]);const __default__$e=defineComponent({name:"ElTooltipV2Arrow"}),_sfc_main$m=defineComponent({...__default__$e,props:{...tooltipV2ArrowProps,...tooltipV2ArrowSpecialProps},setup(t){const r=t,{ns:$}=inject(tooltipV2RootKey),{arrowRef:V}=inject(tooltipV2ContentKey),oe=computed(()=>{const{style:ie,width:le,height:ue}=r,de=$.namespace.value;return{[`--${de}-tooltip-v2-arrow-width`]:`${le}px`,[`--${de}-tooltip-v2-arrow-height`]:`${ue}px`,[`--${de}-tooltip-v2-arrow-border-width`]:`${le/2}px`,[`--${de}-tooltip-v2-arrow-cover-width`]:le/2-1,...ie||{}}});return(ie,le)=>(openBlock(),createElementBlock("span",{ref_key:"arrowRef",ref:V,style:normalizeStyle$1(unref(oe)),class:normalizeClass(unref($).e("arrow"))},null,6))}});var TooltipV2Arrow=_export_sfc$1(_sfc_main$m,[["__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$l=defineComponent({...__default__$d,props:visualHiddenProps,setup(t){const r=t,$=computed(()=>[r.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(V,oe)=>(openBlock(),createElementBlock("span",mergeProps(V.$attrs,{style:unref($)}),[renderSlot(V.$slots,"default")],16))}});var ElVisuallyHidden=_export_sfc$1(_sfc_main$l,[["__file","/home/runner/work/element-plus/element-plus/packages/components/visual-hidden/src/visual-hidden.vue"]]);const _hoisted_1$c=["data-side"],__default__$c=defineComponent({name:"ElTooltipV2Content"}),_sfc_main$k=defineComponent({...__default__$c,props:{...tooltipV2ContentProps,...tooltipV2CommonProps},setup(t){const r=t,{triggerRef:$,contentId:V}=inject(tooltipV2RootKey),oe=ref(r.placement),ie=ref(r.strategy),le=ref(null),{referenceRef:ue,contentRef:de,middlewareData:pe,x:he,y:_e,update:$e}=useFloating({placement:oe,strategy:ie,middleware:computed(()=>{const Lt=[offset(r.offset)];return r.showArrow&&Lt.push(arrowMiddleware({arrowRef:le})),Lt})}),Ie=useZIndex().nextZIndex(),Ve=useNamespace("tooltip-v2"),Fe=computed(()=>oe.value.split("-")[0]),Ue=computed(()=>({position:unref(ie),top:`${unref(_e)||0}px`,left:`${unref(he)||0}px`,zIndex:Ie})),qe=computed(()=>{if(!r.showArrow)return{};const{arrow:Lt}=unref(pe);return{[`--${Ve.namespace.value}-tooltip-v2-arrow-x`]:`${Lt==null?void 0:Lt.x}px`||"",[`--${Ve.namespace.value}-tooltip-v2-arrow-y`]:`${Lt==null?void 0:Lt.y}px`||""}}),Et=computed(()=>[Ve.e("content"),Ve.is("dark",r.effect==="dark"),Ve.is(unref(ie)),r.contentClass]);return watch(le,()=>$e()),watch(()=>r.placement,Lt=>oe.value=Lt),onMounted(()=>{watch(()=>r.reference||$.value,Lt=>{ue.value=Lt||void 0},{immediate:!0})}),provide(tooltipV2ContentKey,{arrowRef:le}),(Lt,hn)=>(openBlock(),createElementBlock("div",{ref_key:"contentRef",ref:de,style:normalizeStyle$1(unref(Ue)),"data-tooltip-v2-root":""},[Lt.nowrap?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("div",{key:0,"data-side":unref(Fe),class:normalizeClass(unref(Et))},[renderSlot(Lt.$slots,"default",{contentStyle:unref(Ue),contentClass:unref(Et)}),createVNode(unref(ElVisuallyHidden),{id:unref(V),role:"tooltip"},{default:withCtx(()=>[Lt.ariaLabel?(openBlock(),createElementBlock(Fragment,{key:0},[createTextVNode(toDisplayString$1(Lt.ariaLabel),1)],64)):renderSlot(Lt.$slots,"default",{key:1})]),_:3},8,["id"]),renderSlot(Lt.$slots,"arrow",{style:normalizeStyle$1(unref(qe)),side:unref(Fe)})],10,_hoisted_1$c))],4))}});var TooltipV2Content=_export_sfc$1(_sfc_main$k,[["__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(t,{slots:r}){const $=ref(),V=composeRefs($,oe=>{oe?t.setRef(oe.nextElementSibling):t.setRef(null)});return()=>{var oe;const[ie]=((oe=r.default)==null?void 0:oe.call(r))||[],le=t.onlyChild?ensureOnlyChild(ie.children):ie.children;return createVNode(Fragment,{ref:V},[le])}}});const __default__$b=defineComponent({name:"ElTooltipV2Trigger"}),_sfc_main$j=defineComponent({...__default__$b,props:{...tooltipV2CommonProps,...tooltipV2TriggerProps},setup(t){const r=t,{onClose:$,onOpen:V,onDelayOpen:oe,triggerRef:ie,contentId:le}=inject(tooltipV2RootKey);let ue=!1;const de=Et=>{ie.value=Et},pe=()=>{ue=!1},he=composeEventHandlers(r.onMouseEnter,oe),_e=composeEventHandlers(r.onMouseLeave,$),$e=composeEventHandlers(r.onMouseDown,()=>{$(),ue=!0,document.addEventListener("mouseup",pe,{once:!0})}),Ie=composeEventHandlers(r.onFocus,()=>{ue||V()}),Ve=composeEventHandlers(r.onBlur,$),Fe=composeEventHandlers(r.onClick,Et=>{Et.detail===0&&$()}),Ue={blur:Ve,click:Fe,focus:Ie,mousedown:$e,mouseenter:he,mouseleave:_e},qe=(Et,Lt,hn)=>{Et&&Object.entries(Lt).forEach(([Cn,bn])=>{Et[hn](Cn,bn)})};return watch(ie,(Et,Lt)=>{qe(Et,Ue,"addEventListener"),qe(Lt,Ue,"removeEventListener"),Et&&Et.setAttribute("aria-describedby",le.value)}),onBeforeUnmount(()=>{qe(ie.value,Ue,"removeEventListener"),document.removeEventListener("mouseup",pe)}),(Et,Lt)=>Et.nowrap?(openBlock(),createBlock(unref(ForwardRef),{key:0,"set-ref":de,"only-child":""},{default:withCtx(()=>[renderSlot(Et.$slots,"default")]),_:3})):(openBlock(),createElementBlock("button",mergeProps({key:1,ref_key:"triggerRef",ref:ie},Et.$attrs),[renderSlot(Et.$slots,"default")],16))}});var TooltipV2Trigger=_export_sfc$1(_sfc_main$j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip-v2/src/trigger.vue"]]);const __default__$a=defineComponent({name:"ElTooltipV2"}),_sfc_main$i=defineComponent({...__default__$a,props:tooltipV2Props,setup(t){const $=toRefs(t),V=reactive(pick$1($,Object.keys(tooltipV2ArrowProps))),oe=reactive(pick$1($,Object.keys(tooltipV2ContentProps))),ie=reactive(pick$1($,Object.keys(tooltipV2RootProps))),le=reactive(pick$1($,Object.keys(tooltipV2TriggerProps)));return(ue,de)=>(openBlock(),createBlock(TooltipV2Root,normalizeProps(guardReactiveProps(ie)),{default:withCtx(({open:pe})=>[createVNode(TooltipV2Trigger,mergeProps(le,{nowrap:""}),{default:withCtx(()=>[renderSlot(ue.$slots,"trigger")]),_:3},16),(openBlock(),createBlock(Teleport,{to:ue.to,disabled:!ue.teleported},[ue.fullTransition?(openBlock(),createBlock(Transition,normalizeProps(mergeProps({key:0},ue.transitionProps)),{default:withCtx(()=>[ue.alwaysOn||pe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},oe)),{arrow:withCtx(({style:he,side:_e})=>[ue.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},V,{style:he,side:_e}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(ue.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)]),_:2},1040)):(openBlock(),createElementBlock(Fragment,{key:1},[ue.alwaysOn||pe?(openBlock(),createBlock(TooltipV2Content,normalizeProps(mergeProps({key:0},oe)),{arrow:withCtx(({style:he,side:_e})=>[ue.showArrow?(openBlock(),createBlock(TooltipV2Arrow,mergeProps({key:0},V,{style:he,side:_e}),null,16,["style","side"])):createCommentVNode("v-if",!0)]),default:withCtx(()=>[renderSlot(ue.$slots,"default")]),_:3},16)):createCommentVNode("v-if",!0)],64))],8,["to","disabled"]))]),_:3},16))}});var TooltipV2=_export_sfc$1(_sfc_main$i,[["__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=(t,r)=>[t,r].every(isArray$c)||isArray$c(t)&&isNil(r),transferEmits={[CHANGE_EVENT]:(t,r,$)=>[t,$].every(isArray$c)&&["left","right"].includes(r),[UPDATE_MODEL_EVENT]:t=>isArray$c(t),[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=t=>{const r={label:"label",key:"key",disabled:"disabled"};return computed(()=>({...r,...t.props}))},useCheck$1=(t,r,$)=>{const V=usePropsAlias(t),oe=computed(()=>t.data.filter(he=>isFunction$5(t.filterMethod)?t.filterMethod(r.query,he):String(he[V.value.label]||he[V.value.key]).toLowerCase().includes(r.query.toLowerCase()))),ie=computed(()=>oe.value.filter(he=>!he[V.value.disabled])),le=computed(()=>{const he=r.checked.length,_e=t.data.length,{noChecked:$e,hasChecked:Ie}=t.format;return $e&&Ie?he>0?Ie.replace(/\${checked}/g,he.toString()).replace(/\${total}/g,_e.toString()):$e.replace(/\${total}/g,_e.toString()):`${he}/${_e}`}),ue=computed(()=>{const he=r.checked.length;return he>0&&he{const he=ie.value.map(_e=>_e[V.value.key]);r.allChecked=he.length>0&&he.every(_e=>r.checked.includes(_e))},pe=he=>{r.checked=he?ie.value.map(_e=>_e[V.value.key]):[]};return watch(()=>r.checked,(he,_e)=>{if(de(),r.checkChangeByUser){const $e=he.concat(_e).filter(Ie=>!he.includes(Ie)||!_e.includes(Ie));$(CHECKED_CHANGE_EVENT,he,$e)}else $(CHECKED_CHANGE_EVENT,he),r.checkChangeByUser=!0}),watch(ie,()=>{de()}),watch(()=>t.data,()=>{const he=[],_e=oe.value.map($e=>$e[V.value.key]);r.checked.forEach($e=>{_e.includes($e)&&he.push($e)}),r.checkChangeByUser=!1,r.checked=he}),watch(()=>t.defaultChecked,(he,_e)=>{if(_e&&he.length===_e.length&&he.every(Ve=>_e.includes(Ve)))return;const $e=[],Ie=ie.value.map(Ve=>Ve[V.value.key]);he.forEach(Ve=>{Ie.includes(Ve)&&$e.push(Ve)}),r.checkChangeByUser=!1,r.checked=$e},{immediate:!0}),{filteredData:oe,checkableData:ie,checkedSummary:le,isIndeterminate:ue,updateAllChecked:de,handleAllCheckedChange:pe}},useCheckedChange=(t,r)=>({onSourceCheckedChange:(oe,ie)=>{t.leftChecked=oe,ie&&r(LEFT_CHECK_CHANGE_EVENT,oe,ie)},onTargetCheckedChange:(oe,ie)=>{t.rightChecked=oe,ie&&r(RIGHT_CHECK_CHANGE_EVENT,oe,ie)}}),useComputedData=t=>{const r=usePropsAlias(t),$=computed(()=>t.data.reduce((ie,le)=>(ie[le[r.value.key]]=le)&&ie,{})),V=computed(()=>t.data.filter(ie=>!t.modelValue.includes(ie[r.value.key]))),oe=computed(()=>t.targetOrder==="original"?t.data.filter(ie=>t.modelValue.includes(ie[r.value.key])):t.modelValue.reduce((ie,le)=>{const ue=$.value[le];return ue&&ie.push(ue),ie},[]));return{sourceData:V,targetData:oe}},useMove=(t,r,$)=>{const V=usePropsAlias(t),oe=(ue,de,pe)=>{$(UPDATE_MODEL_EVENT,ue),$(CHANGE_EVENT,ue,de,pe)};return{addToLeft:()=>{const ue=t.modelValue.slice();r.rightChecked.forEach(de=>{const pe=ue.indexOf(de);pe>-1&&ue.splice(pe,1)}),oe(ue,"left",r.rightChecked)},addToRight:()=>{let ue=t.modelValue.slice();const de=t.data.filter(pe=>{const he=pe[V.value.key];return r.leftChecked.includes(he)&&!t.modelValue.includes(he)}).map(pe=>pe[V.value.key]);ue=t.targetOrder==="unshift"?de.concat(ue):ue.concat(de),t.targetOrder==="original"&&(ue=t.data.filter(pe=>ue.includes(pe[V.value.key])).map(pe=>pe[V.value.key])),oe(ue,"right",r.leftChecked)}}},__default__$9=defineComponent({name:"ElTransferPanel"}),_sfc_main$h=defineComponent({...__default__$9,props:transferPanelProps,emits:transferPanelEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useSlots(),ie=({option:Lt})=>Lt,{t:le}=useLocale(),ue=useNamespace("transfer"),de=reactive({checked:[],allChecked:!1,query:"",checkChangeByUser:!0}),pe=usePropsAlias(V),{filteredData:he,checkedSummary:_e,isIndeterminate:$e,handleAllCheckedChange:Ie}=useCheck$1(V,de,$),Ve=computed(()=>!isEmpty(de.query)&&isEmpty(he.value)),Fe=computed(()=>!isEmpty(oe.default()[0].children)),{checked:Ue,allChecked:qe,query:Et}=toRefs(de);return r({query:Et}),(Lt,hn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(ue).b("panel"))},[createBaseVNode("p",{class:normalizeClass(unref(ue).be("panel","header"))},[createVNode(unref(ElCheckbox),{modelValue:unref(qe),"onUpdate:modelValue":hn[0]||(hn[0]=Cn=>isRef(qe)?qe.value=Cn:null),indeterminate:unref($e),"validate-event":!1,onChange:unref(Ie)},{default:withCtx(()=>[createTextVNode(toDisplayString$1(Lt.title)+" ",1),createBaseVNode("span",null,toDisplayString$1(unref(_e)),1)]),_:1},8,["modelValue","indeterminate","onChange"])],2),createBaseVNode("div",{class:normalizeClass([unref(ue).be("panel","body"),unref(ue).is("with-footer",unref(Fe))])},[Lt.filterable?(openBlock(),createBlock(unref(ElInput),{key:0,modelValue:unref(Et),"onUpdate:modelValue":hn[1]||(hn[1]=Cn=>isRef(Et)?Et.value=Cn:null),class:normalizeClass(unref(ue).be("panel","filter")),size:"default",placeholder:Lt.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(Ue),"onUpdate:modelValue":hn[2]||(hn[2]=Cn=>isRef(Ue)?Ue.value=Cn:null),"validate-event":!1,class:normalizeClass([unref(ue).is("filterable",Lt.filterable),unref(ue).be("panel","list")])},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(unref(he),Cn=>(openBlock(),createBlock(unref(ElCheckbox),{key:Cn[unref(pe).key],class:normalizeClass(unref(ue).be("panel","item")),label:Cn[unref(pe).key],disabled:Cn[unref(pe).disabled],"validate-event":!1},{default:withCtx(()=>{var bn;return[createVNode(ie,{option:(bn=Lt.optionRender)==null?void 0:bn.call(Lt,Cn)},null,8,["option"])]}),_:2},1032,["class","label","disabled"]))),128))]),_:1},8,["modelValue","class"]),[[vShow,!unref(Ve)&&!unref(isEmpty)(Lt.data)]]),withDirectives(createBaseVNode("p",{class:normalizeClass(unref(ue).be("panel","empty"))},toDisplayString$1(unref(Ve)?unref(le)("el.transfer.noMatch"):unref(le)("el.transfer.noData")),3),[[vShow,unref(Ve)||unref(isEmpty)(Lt.data)]])],2),unref(Fe)?(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(ue).be("panel","footer"))},[renderSlot(Lt.$slots,"default")],2)):createCommentVNode("v-if",!0)],2))}});var TransferPanel=_export_sfc$1(_sfc_main$h,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer-panel.vue"]]);const _hoisted_1$b={key:0},_hoisted_2$9={key:0},__default__$8=defineComponent({name:"ElTransfer"}),_sfc_main$g=defineComponent({...__default__$8,props:transferProps,emits:transferEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useSlots(),{t:ie}=useLocale(),le=useNamespace("transfer"),{formItem:ue}=useFormItem(),de=reactive({leftChecked:[],rightChecked:[]}),pe=usePropsAlias(V),{sourceData:he,targetData:_e}=useComputedData(V),{onSourceCheckedChange:$e,onTargetCheckedChange:Ie}=useCheckedChange(de,$),{addToLeft:Ve,addToRight:Fe}=useMove(V,de,$),Ue=ref(),qe=ref(),Et=En=>{switch(En){case"left":Ue.value.query="";break;case"right":qe.value.query="";break}},Lt=computed(()=>V.buttonTexts.length===2),hn=computed(()=>V.titles[0]||ie("el.transfer.titles.0")),Cn=computed(()=>V.titles[1]||ie("el.transfer.titles.1")),bn=computed(()=>V.filterPlaceholder||ie("el.transfer.filterPlaceholder"));watch(()=>V.modelValue,()=>{var En;V.validateEvent&&((En=ue==null?void 0:ue.validate)==null||En.call(ue,"change").catch(wn=>void 0))});const Sn=computed(()=>En=>V.renderContent?V.renderContent(h$2,En):oe.default?oe.default({option:En}):h$2("span",En[pe.value.label]||En[pe.value.key]));return r({clearQuery:Et,leftPanel:Ue,rightPanel:qe}),(En,wn)=>(openBlock(),createElementBlock("div",{class:normalizeClass(unref(le).b())},[createVNode(TransferPanel,{ref_key:"leftPanel",ref:Ue,data:unref(he),"option-render":unref(Sn),placeholder:unref(bn),title:unref(hn),filterable:En.filterable,format:En.format,"filter-method":En.filterMethod,"default-checked":En.leftDefaultChecked,props:V.props,onCheckedChange:unref($e)},{default:withCtx(()=>[renderSlot(En.$slots,"left-footer")]),_:3},8,["data","option-render","placeholder","title","filterable","format","filter-method","default-checked","props","onCheckedChange"]),createBaseVNode("div",{class:normalizeClass(unref(le).e("buttons"))},[createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(le).e("button"),unref(le).is("with-texts",unref(Lt))]),disabled:unref(isEmpty)(de.rightChecked),onClick:unref(Ve)},{default:withCtx(()=>[createVNode(unref(ElIcon),null,{default:withCtx(()=>[createVNode(unref(arrow_left_default))]),_:1}),unref(isUndefined$1)(En.buttonTexts[0])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_1$b,toDisplayString$1(En.buttonTexts[0]),1))]),_:1},8,["class","disabled","onClick"]),createVNode(unref(ElButton),{type:"primary",class:normalizeClass([unref(le).e("button"),unref(le).is("with-texts",unref(Lt))]),disabled:unref(isEmpty)(de.leftChecked),onClick:unref(Fe)},{default:withCtx(()=>[unref(isUndefined$1)(En.buttonTexts[1])?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",_hoisted_2$9,toDisplayString$1(En.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:qe,data:unref(_e),"option-render":unref(Sn),placeholder:unref(bn),filterable:En.filterable,format:En.format,"filter-method":En.filterMethod,title:unref(Cn),"default-checked":En.rightDefaultChecked,props:V.props,onCheckedChange:unref(Ie)},{default:withCtx(()=>[renderSlot(En.$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$g,[["__file","/home/runner/work/element-plus/element-plus/packages/components/transfer/src/transfer.vue"]]);const ElTransfer=withInstall(Transfer),NODE_KEY="$treeNodeId",markNodeData=function(t,r){!r||r[NODE_KEY]||Object.defineProperty(r,NODE_KEY,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},getNodeKey=function(t,r){return t?r[t]:r[NODE_KEY]},handleCurrentChange=(t,r,$)=>{const V=t.value.currentNode;$();const oe=t.value.currentNode;V!==oe&&r("current-change",oe?oe.data:null,oe)},getChildState=t=>{let r=!0,$=!0,V=!0;for(let oe=0,ie=t.length;oe"u"){const ie=V[r];return ie===void 0?"":ie}};let nodeIdSeed=0,Node$1=class mo{constructor(r){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 $ in r)hasOwn$4(r,$)&&(this[$]=r[$]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const r=this.store;if(!r)throw new Error("[Node]store is required!");r.registerNode(this);const $=r.props;if($&&typeof $.isLeaf<"u"){const ie=getPropertyFromData(this,"isLeaf");typeof ie=="boolean"&&(this.isLeafByUser=ie)}if(r.lazy!==!0&&this.data?(this.setData(this.data),r.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&r.lazy&&r.defaultExpandAll&&this.expand(),Array.isArray(this.data)||markNodeData(this,this.data),!this.data)return;const V=r.defaultExpandedKeys,oe=r.key;oe&&V&&V.includes(this.key)&&this.expand(null,r.autoExpandParent),oe&&r.currentNodeKey!==void 0&&this.key===r.currentNodeKey&&(r.currentNode=this,r.currentNode.isCurrent=!0),r.lazy&&r._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(r){Array.isArray(r)||markNodeData(this,r),this.data=r,this.childNodes=[];let $;this.level===0&&Array.isArray(this.data)?$=this.data:$=getPropertyFromData(this,"children")||[];for(let V=0,oe=$.length;V-1)return r.childNodes[$+1]}return null}get previousSibling(){const r=this.parent;if(r){const $=r.childNodes.indexOf(this);if($>-1)return $>0?r.childNodes[$-1]:null}return null}contains(r,$=!0){return(this.childNodes||[]).some(V=>V===r||$&&V.contains(r))}remove(){const r=this.parent;r&&r.removeChild(this)}insertChild(r,$,V){if(!r)throw new Error("InsertChild error: child is required.");if(!(r instanceof mo)){if(!V){const oe=this.getChildren(!0);oe.includes(r.data)||(typeof $>"u"||$<0?oe.push(r.data):oe.splice($,0,r.data))}Object.assign(r,{parent:this,store:this.store}),r=reactive(new mo(r)),r instanceof mo&&r.initialize()}r.level=this.level+1,typeof $>"u"||$<0?this.childNodes.push(r):this.childNodes.splice($,0,r),this.updateLeafState()}insertBefore(r,$){let V;$&&(V=this.childNodes.indexOf($)),this.insertChild(r,V)}insertAfter(r,$){let V;$&&(V=this.childNodes.indexOf($),V!==-1&&(V+=1)),this.insertChild(r,V)}removeChild(r){const $=this.getChildren()||[],V=$.indexOf(r.data);V>-1&&$.splice(V,1);const oe=this.childNodes.indexOf(r);oe>-1&&(this.store&&this.store.deregisterNode(r),r.parent=null,this.childNodes.splice(oe,1)),this.updateLeafState()}removeChildByData(r){let $=null;for(let V=0;V{if($){let oe=this.parent;for(;oe.level>0;)oe.expanded=!0,oe=oe.parent}this.expanded=!0,r&&r(),this.childNodes.forEach(oe=>{oe.canFocus=!0})};this.shouldLoadData()?this.loadData(oe=>{Array.isArray(oe)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||reInitChecked(this),V())}):V()}doCreateChildren(r,$={}){r.forEach(V=>{this.insertChild(Object.assign({data:V},$),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(r=>{r.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 r=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!r||r.length===0;return}this.isLeaf=!1}setChecked(r,$,V,oe){if(this.indeterminate=r==="half",this.checked=r===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:le,allWithoutDisable:ue}=getChildState(this.childNodes);!this.isLeaf&&!le&&ue&&(this.checked=!1,r=!1);const de=()=>{if($){const pe=this.childNodes;for(let $e=0,Ie=pe.length;$e{de(),reInitChecked(this)},{checked:r!==!1});return}else de()}const ie=this.parent;!ie||ie.level===0||V||reInitChecked(ie)}getChildren(r=!1){if(this.level===0)return this.data;const $=this.data;if(!$)return null;const V=this.store.props;let oe="children";return V&&(oe=V.children||"children"),$[oe]===void 0&&($[oe]=null),r&&!$[oe]&&($[oe]=[]),$[oe]}updateChildren(){const r=this.getChildren()||[],$=this.childNodes.map(ie=>ie.data),V={},oe=[];r.forEach((ie,le)=>{const ue=ie[NODE_KEY];!!ue&&$.findIndex(pe=>pe[NODE_KEY]===ue)>=0?V[ue]={index:le,data:ie}:oe.push({index:le,data:ie})}),this.store.lazy||$.forEach(ie=>{V[ie[NODE_KEY]]||this.removeChildByData(ie)}),oe.forEach(({index:ie,data:le})=>{this.insertChild({data:le},ie)}),this.updateLeafState()}loadData(r,$={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys($).length)){this.loading=!0;const V=oe=>{this.childNodes=[],this.doCreateChildren(oe,$),this.loaded=!0,this.loading=!1,this.updateLeafState(),r&&r.call(this,oe)};this.store.load(this,V)}else r&&r.call(this)}};class TreeStore{constructor(r){this.currentNode=null,this.currentNodeKey=null;for(const $ in r)hasOwn$4(r,$)&&(this[$]=r[$]);this.nodesMap={}}initialize(){if(this.root=new Node$1({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const r=this.load;r(this.root,$=>{this.root.doCreateChildren($),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(r){const $=this.filterNodeMethod,V=this.lazy,oe=function(ie){const le=ie.root?ie.root.childNodes:ie.childNodes;if(le.forEach(ue=>{ue.visible=$.call(ue,r,ue.data,ue),oe(ue)}),!ie.visible&&le.length){let ue=!0;ue=!le.some(de=>de.visible),ie.root?ie.root.visible=ue===!1:ie.visible=ue===!1}r&&ie.visible&&!ie.isLeaf&&!V&&ie.expand()};oe(this)}setData(r){r!==this.root.data?(this.root.setData(r),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(r){if(r instanceof Node$1)return r;const $=isObject$a(r)?getNodeKey(this.key,r):r;return this.nodesMap[$]||null}insertBefore(r,$){const V=this.getNode($);V.parent.insertBefore({data:r},V)}insertAfter(r,$){const V=this.getNode($);V.parent.insertAfter({data:r},V)}remove(r){const $=this.getNode(r);$&&$.parent&&($===this.currentNode&&(this.currentNode=null),$.parent.removeChild($))}append(r,$){const V=$?this.getNode($):this.root;V&&V.insertChild({data:r})}_initDefaultCheckedNodes(){const r=this.defaultCheckedKeys||[],$=this.nodesMap;r.forEach(V=>{const oe=$[V];oe&&oe.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(r){(this.defaultCheckedKeys||[]).includes(r.key)&&r.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(r){r!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=r,this._initDefaultCheckedNodes())}registerNode(r){const $=this.key;!r||!r.data||($?r.key!==void 0&&(this.nodesMap[r.key]=r):this.nodesMap[r.id]=r)}deregisterNode(r){!this.key||!r||!r.data||(r.childNodes.forEach(V=>{this.deregisterNode(V)}),delete this.nodesMap[r.key])}getCheckedNodes(r=!1,$=!1){const V=[],oe=function(ie){(ie.root?ie.root.childNodes:ie.childNodes).forEach(ue=>{(ue.checked||$&&ue.indeterminate)&&(!r||r&&ue.isLeaf)&&V.push(ue.data),oe(ue)})};return oe(this),V}getCheckedKeys(r=!1){return this.getCheckedNodes(r).map($=>($||{})[this.key])}getHalfCheckedNodes(){const r=[],$=function(V){(V.root?V.root.childNodes:V.childNodes).forEach(ie=>{ie.indeterminate&&r.push(ie.data),$(ie)})};return $(this),r}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(r=>(r||{})[this.key])}_getAllNodes(){const r=[],$=this.nodesMap;for(const V in $)hasOwn$4($,V)&&r.push($[V]);return r}updateChildren(r,$){const V=this.nodesMap[r];if(!V)return;const oe=V.childNodes;for(let ie=oe.length-1;ie>=0;ie--){const le=oe[ie];this.remove(le.data)}for(let ie=0,le=$.length;iede.level-ue.level),ie=Object.create(null),le=Object.keys(V);oe.forEach(ue=>ue.setChecked(!1,!1));for(let ue=0,de=oe.length;ue0;)ie[$e.data[r]]=!0,$e=$e.parent;if(pe.isLeaf||this.checkStrictly){pe.setChecked(!0,!1);continue}if(pe.setChecked(!0,!0),$){pe.setChecked(!1,!1);const Ie=function(Ve){Ve.childNodes.forEach(Ue=>{Ue.isLeaf||Ue.setChecked(!1,!1),Ie(Ue)})};Ie(pe)}}}setCheckedNodes(r,$=!1){const V=this.key,oe={};r.forEach(ie=>{oe[(ie||{})[V]]=!0}),this._setCheckedKeys(V,$,oe)}setCheckedKeys(r,$=!1){this.defaultCheckedKeys=r;const V=this.key,oe={};r.forEach(ie=>{oe[ie]=!0}),this._setCheckedKeys(V,$,oe)}setDefaultExpandedKeys(r){r=r||[],this.defaultExpandedKeys=r,r.forEach($=>{const V=this.getNode($);V&&V.expand(null,this.autoExpandParent)})}setChecked(r,$,V){const oe=this.getNode(r);oe&&oe.setChecked(!!$,V)}getCurrentNode(){return this.currentNode}setCurrentNode(r){const $=this.currentNode;$&&($.isCurrent=!1),this.currentNode=r,this.currentNode.isCurrent=!0}setUserCurrentNode(r,$=!0){const V=r[this.key],oe=this.nodesMap[V];this.setCurrentNode(oe),$&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(r,$=!0){if(r==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const V=this.getNode(r);V&&(this.setCurrentNode(V),$&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const _sfc_main$f=defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const r=useNamespace("tree"),$=inject("NodeInstance"),V=inject("RootTree");return()=>{const oe=t.node,{data:ie,store:le}=oe;return t.renderContent?t.renderContent(h$2,{_self:$,node:oe,data:ie,store:le}):V.ctx.slots.default?V.ctx.slots.default({node:oe,data:ie}):h$2("span",{class:r.be("node","label")},[oe.label])}}});var NodeContent=_export_sfc$1(_sfc_main$f,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node-content.vue"]]);function useNodeExpandEventBroadcast(t){const r=inject("TreeNodeMap",null),$={treeNodeExpand:V=>{t.node!==V&&t.node.collapse()},children:[]};return r&&r.children.push($),provide("TreeNodeMap",$),{broadcastExpanded:V=>{if(t.accordion)for(const oe of $.children)oe.treeNodeExpand(V)}}}const dragEventsKey=Symbol("dragEvents");function useDragNodeHandler({props:t,ctx:r,el$:$,dropIndicator$:V,store:oe}){const ie=useNamespace("tree"),le=ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null});return provide(dragEventsKey,{treeNodeDragStart:({event:he,treeNode:_e})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(_e.node))return he.preventDefault(),!1;he.dataTransfer.effectAllowed="move";try{he.dataTransfer.setData("text/plain","")}catch{}le.value.draggingNode=_e,r.emit("node-drag-start",_e.node,he)},treeNodeDragOver:({event:he,treeNode:_e})=>{const $e=_e,Ie=le.value.dropNode;Ie&&Ie.node.id!==$e.node.id&&removeClass(Ie.$el,ie.is("drop-inner"));const Ve=le.value.draggingNode;if(!Ve||!$e)return;let Fe=!0,Ue=!0,qe=!0,Et=!0;typeof t.allowDrop=="function"&&(Fe=t.allowDrop(Ve.node,$e.node,"prev"),Et=Ue=t.allowDrop(Ve.node,$e.node,"inner"),qe=t.allowDrop(Ve.node,$e.node,"next")),he.dataTransfer.dropEffect=Ue||Fe||qe?"move":"none",(Fe||Ue||qe)&&(Ie==null?void 0:Ie.node.id)!==$e.node.id&&(Ie&&r.emit("node-drag-leave",Ve.node,Ie.node,he),r.emit("node-drag-enter",Ve.node,$e.node,he)),(Fe||Ue||qe)&&(le.value.dropNode=$e),$e.node.nextSibling===Ve.node&&(qe=!1),$e.node.previousSibling===Ve.node&&(Fe=!1),$e.node.contains(Ve.node,!1)&&(Ue=!1),(Ve.node===$e.node||Ve.node.contains($e.node))&&(Fe=!1,Ue=!1,qe=!1);const Lt=$e.$el.querySelector(`.${ie.be("node","content")}`).getBoundingClientRect(),hn=$.value.getBoundingClientRect();let Cn;const bn=Fe?Ue?.25:qe?.45:1:-1,Sn=qe?Ue?.75:Fe?.55:0:1;let En=-9999;const wn=he.clientY-Lt.top;wnLt.height*Sn?Cn="after":Ue?Cn="inner":Cn="none";const $n=$e.$el.querySelector(`.${ie.be("node","expand-icon")}`).getBoundingClientRect(),Tn=V.value;Cn==="before"?En=$n.top-hn.top:Cn==="after"&&(En=$n.bottom-hn.top),Tn.style.top=`${En}px`,Tn.style.left=`${$n.right-hn.left}px`,Cn==="inner"?addClass($e.$el,ie.is("drop-inner")):removeClass($e.$el,ie.is("drop-inner")),le.value.showDropIndicator=Cn==="before"||Cn==="after",le.value.allowDrop=le.value.showDropIndicator||Et,le.value.dropType=Cn,r.emit("node-drag-over",Ve.node,$e.node,he)},treeNodeDragEnd:he=>{const{draggingNode:_e,dropType:$e,dropNode:Ie}=le.value;if(he.preventDefault(),he.dataTransfer.dropEffect="move",_e&&Ie){const Ve={data:_e.node.data};$e!=="none"&&_e.node.remove(),$e==="before"?Ie.node.parent.insertBefore(Ve,Ie.node):$e==="after"?Ie.node.parent.insertAfter(Ve,Ie.node):$e==="inner"&&Ie.node.insertChild(Ve),$e!=="none"&&oe.value.registerNode(Ve),removeClass(Ie.$el,ie.is("drop-inner")),r.emit("node-drag-end",_e.node,Ie.node,$e,he),$e!=="none"&&r.emit("node-drop",_e.node,Ie.node,$e,he)}_e&&!Ie&&r.emit("node-drag-end",_e.node,null,$e,he),le.value.showDropIndicator=!1,le.value.draggingNode=null,le.value.dropNode=null,le.value.allowDrop=!0}}),{dragState:le}}const _sfc_main$e=defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:_CollapseTransition,ElCheckbox,NodeContent,ElIcon,Loading:loading_default},props:{node:{type:Node$1,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,r){const $=useNamespace("tree"),{broadcastExpanded:V}=useNodeExpandEventBroadcast(t),oe=inject("RootTree"),ie=ref(!1),le=ref(!1),ue=ref(null),de=ref(null),pe=ref(null),he=inject(dragEventsKey),_e=getCurrentInstance();provide("NodeInstance",_e),t.node.expanded&&(ie.value=!0,le.value=!0);const $e=oe.props.props.children||"children";watch(()=>{const wn=t.node.data[$e];return wn&&[...wn]},()=>{t.node.updateChildren()}),watch(()=>t.node.indeterminate,wn=>{Fe(t.node.checked,wn)}),watch(()=>t.node.checked,wn=>{Fe(wn,t.node.indeterminate)}),watch(()=>t.node.expanded,wn=>{nextTick(()=>ie.value=wn),wn&&(le.value=!0)});const Ie=wn=>getNodeKey(oe.props.nodeKey,wn.data),Ve=wn=>{const $n=t.props.class;if(!$n)return{};let Tn;if(isFunction$5($n)){const{data:xn}=wn;Tn=$n(xn,wn)}else Tn=$n;return isString$6(Tn)?{[Tn]:!0}:Tn},Fe=(wn,$n)=>{(ue.value!==wn||de.value!==$n)&&oe.ctx.emit("check-change",t.node.data,wn,$n),ue.value=wn,de.value=$n},Ue=wn=>{handleCurrentChange(oe.store,oe.ctx.emit,()=>oe.store.value.setCurrentNode(t.node)),oe.currentNode.value=t.node,oe.props.expandOnClickNode&&Et(),oe.props.checkOnClickNode&&!t.node.disabled&&Lt(null,{target:{checked:!t.node.checked}}),oe.ctx.emit("node-click",t.node.data,t.node,_e,wn)},qe=wn=>{oe.instance.vnode.props.onNodeContextmenu&&(wn.stopPropagation(),wn.preventDefault()),oe.ctx.emit("node-contextmenu",wn,t.node.data,t.node,_e)},Et=()=>{t.node.isLeaf||(ie.value?(oe.ctx.emit("node-collapse",t.node.data,t.node,_e),t.node.collapse()):(t.node.expand(),r.emit("node-expand",t.node.data,t.node,_e)))},Lt=(wn,$n)=>{t.node.setChecked($n.target.checked,!oe.props.checkStrictly),nextTick(()=>{const Tn=oe.store.value;oe.ctx.emit("check",t.node.data,{checkedNodes:Tn.getCheckedNodes(),checkedKeys:Tn.getCheckedKeys(),halfCheckedNodes:Tn.getHalfCheckedNodes(),halfCheckedKeys:Tn.getHalfCheckedKeys()})})};return{ns:$,node$:pe,tree:oe,expanded:ie,childNodeRendered:le,oldChecked:ue,oldIndeterminate:de,getNodeKey:Ie,getNodeClass:Ve,handleSelectChange:Fe,handleClick:Ue,handleContextMenu:qe,handleExpandIconClick:Et,handleCheckChange:Lt,handleChildNodeExpand:(wn,$n,Tn)=>{V($n),oe.ctx.emit("node-expand",wn,$n,Tn)},handleDragStart:wn=>{oe.props.draggable&&he.treeNodeDragStart({event:wn,treeNode:t})},handleDragOver:wn=>{wn.preventDefault(),oe.props.draggable&&he.treeNodeDragOver({event:wn,treeNode:{$el:pe.value,node:t.node}})},handleDrop:wn=>{wn.preventDefault()},handleDragEnd:wn=>{oe.props.draggable&&he.treeNodeDragEnd(wn)},CaretRight:caret_right_default}}}),_hoisted_1$a=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],_hoisted_2$8=["aria-expanded"];function _sfc_render$3(t,r,$,V,oe,ie){const le=resolveComponent("el-icon"),ue=resolveComponent("el-checkbox"),de=resolveComponent("loading"),pe=resolveComponent("node-content"),he=resolveComponent("el-tree-node"),_e=resolveComponent("el-collapse-transition");return withDirectives((openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:r[1]||(r[1]=withModifiers((...$e)=>t.handleClick&&t.handleClick(...$e),["stop"])),onContextmenu:r[2]||(r[2]=(...$e)=>t.handleContextMenu&&t.handleContextMenu(...$e)),onDragstart:r[3]||(r[3]=withModifiers((...$e)=>t.handleDragStart&&t.handleDragStart(...$e),["stop"])),onDragover:r[4]||(r[4]=withModifiers((...$e)=>t.handleDragOver&&t.handleDragOver(...$e),["stop"])),onDragend:r[5]||(r[5]=withModifiers((...$e)=>t.handleDragEnd&&t.handleDragEnd(...$e),["stop"])),onDrop:r[6]||(r[6]=withModifiers((...$e)=>t.handleDrop&&t.handleDrop(...$e),["stop"]))},[createBaseVNode("div",{class:normalizeClass(t.ns.be("node","content")),style:normalizeStyle$1({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(openBlock(),createBlock(le,{key:0,class:normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:withModifiers(t.handleExpandIconClick,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),t.showCheckbox?(openBlock(),createBlock(ue,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:r[0]||(r[0]=withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):createCommentVNode("v-if",!0),t.node.loading?(openBlock(),createBlock(le,{key:2,class:normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:withCtx(()=>[createVNode(de)]),_:1},8,["class"])):createCommentVNode("v-if",!0),createVNode(pe,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),createVNode(_e,null,{default:withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?withDirectives((openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.node.childNodes,$e=>(openBlock(),createBlock(he,{key:t.getNodeKey($e),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:$e,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,_hoisted_2$8)),[[vShow,t.expanded]]):createCommentVNode("v-if",!0)]),_:1})],42,_hoisted_1$a)),[[vShow,t.node.visible]])}var ElTreeNode$1=_export_sfc$1(_sfc_main$e,[["render",_sfc_render$3],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree-node.vue"]]);function useKeydown({el$:t},r){const $=useNamespace("tree"),V=shallowRef([]),oe=shallowRef([]);onMounted(()=>{le()}),onUpdated(()=>{V.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),oe.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),watch(oe,ue=>{ue.forEach(de=>{de.setAttribute("tabindex","-1")})}),useEventListener$1(t,"keydown",ue=>{const de=ue.target;if(!de.className.includes($.b("node")))return;const pe=ue.code;V.value=Array.from(t.value.querySelectorAll(`.${$.is("focusable")}[role=treeitem]`));const he=V.value.indexOf(de);let _e;if([EVENT_CODE.up,EVENT_CODE.down].includes(pe)){if(ue.preventDefault(),pe===EVENT_CODE.up){_e=he===-1?0:he!==0?he-1:V.value.length-1;const Ie=_e;for(;!r.value.getNode(V.value[_e].dataset.key).canFocus;){if(_e--,_e===Ie){_e=-1;break}_e<0&&(_e=V.value.length-1)}}else{_e=he===-1?0:he=V.value.length&&(_e=0)}}_e!==-1&&V.value[_e].focus()}[EVENT_CODE.left,EVENT_CODE.right].includes(pe)&&(ue.preventDefault(),de.click());const $e=de.querySelector('[type="checkbox"]');[EVENT_CODE.enter,EVENT_CODE.space].includes(pe)&&$e&&(ue.preventDefault(),$e.click())});const le=()=>{var ue;V.value=Array.from(t.value.querySelectorAll(`.${$.is("focusable")}[role=treeitem]`)),oe.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const de=t.value.querySelectorAll(`.${$.is("checked")}[role=treeitem]`);if(de.length){de[0].setAttribute("tabindex","0");return}(ue=V.value[0])==null||ue.setAttribute("tabindex","0")}}const _sfc_main$d=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(t,r){const{t:$}=useLocale(),V=useNamespace("tree"),oe=ref(new TreeStore({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));oe.value.initialize();const ie=ref(oe.value.root),le=ref(null),ue=ref(null),de=ref(null),{broadcastExpanded:pe}=useNodeExpandEventBroadcast(t),{dragState:he}=useDragNodeHandler({props:t,ctx:r,el$:ue,dropIndicator$:de,store:oe});useKeydown({el$:ue},oe);const _e=computed(()=>{const{childNodes:Dn}=ie.value;return!Dn||Dn.length===0||Dn.every(({visible:Ln})=>!Ln)});watch(()=>t.currentNodeKey,Dn=>{oe.value.setCurrentNodeKey(Dn)}),watch(()=>t.defaultCheckedKeys,Dn=>{oe.value.setDefaultCheckedKey(Dn)}),watch(()=>t.defaultExpandedKeys,Dn=>{oe.value.setDefaultExpandedKeys(Dn)}),watch(()=>t.data,Dn=>{oe.value.setData(Dn)},{deep:!0}),watch(()=>t.checkStrictly,Dn=>{oe.value.checkStrictly=Dn});const $e=Dn=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");oe.value.filter(Dn)},Ie=Dn=>getNodeKey(t.nodeKey,Dn.data),Ve=Dn=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const Ln=oe.value.getNode(Dn);if(!Ln)return[];const Pn=[Ln.data];let Fn=Ln.parent;for(;Fn&&Fn!==ie.value;)Pn.push(Fn.data),Fn=Fn.parent;return Pn.reverse()},Fe=(Dn,Ln)=>oe.value.getCheckedNodes(Dn,Ln),Ue=Dn=>oe.value.getCheckedKeys(Dn),qe=()=>{const Dn=oe.value.getCurrentNode();return Dn?Dn.data:null},Et=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const Dn=qe();return Dn?Dn[t.nodeKey]:null},Lt=(Dn,Ln)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");oe.value.setCheckedNodes(Dn,Ln)},hn=(Dn,Ln)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");oe.value.setCheckedKeys(Dn,Ln)},Cn=(Dn,Ln,Pn)=>{oe.value.setChecked(Dn,Ln,Pn)},bn=()=>oe.value.getHalfCheckedNodes(),Sn=()=>oe.value.getHalfCheckedKeys(),En=(Dn,Ln=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");handleCurrentChange(oe,r.emit,()=>oe.value.setUserCurrentNode(Dn,Ln))},wn=(Dn,Ln=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");handleCurrentChange(oe,r.emit,()=>oe.value.setCurrentNodeKey(Dn,Ln))},$n=Dn=>oe.value.getNode(Dn),Tn=Dn=>{oe.value.remove(Dn)},xn=(Dn,Ln)=>{oe.value.append(Dn,Ln)},An=(Dn,Ln)=>{oe.value.insertBefore(Dn,Ln)},Mn=(Dn,Ln)=>{oe.value.insertAfter(Dn,Ln)},Vn=(Dn,Ln,Pn)=>{pe(Ln),r.emit("node-expand",Dn,Ln,Pn)},Bn=(Dn,Ln)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");oe.value.updateChildren(Dn,Ln)};return provide("RootTree",{ctx:r,props:t,store:oe,root:ie,currentNode:le,instance:getCurrentInstance()}),provide(formItemContextKey,void 0),{ns:V,store:oe,root:ie,currentNode:le,dragState:he,el$:ue,dropIndicator$:de,isEmpty:_e,filter:$e,getNodeKey:Ie,getNodePath:Ve,getCheckedNodes:Fe,getCheckedKeys:Ue,getCurrentNode:qe,getCurrentKey:Et,setCheckedNodes:Lt,setCheckedKeys:hn,setChecked:Cn,getHalfCheckedNodes:bn,getHalfCheckedKeys:Sn,setCurrentNode:En,setCurrentKey:wn,t:$,getNode:$n,remove:Tn,append:xn,insertBefore:An,insertAfter:Mn,handleNodeExpand:Vn,updateKeyChildren:Bn}}});function _sfc_render$2(t,r,$,V,oe,ie){const le=resolveComponent("el-tree-node");return openBlock(),createElementBlock("div",{ref:"el$",class:normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(openBlock(!0),createElementBlock(Fragment,null,renderList(t.root.childNodes,ue=>(openBlock(),createBlock(le,{key:t.getNodeKey(ue),node:ue,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(openBlock(),createElementBlock("div",{key:0,class:normalizeClass(t.ns.e("empty-block"))},[renderSlot(t.$slots,"empty",{},()=>{var ue;return[createBaseVNode("span",{class:normalizeClass(t.ns.e("empty-text"))},toDisplayString$1((ue=t.emptyText)!=null?ue:t.t("el.tree.emptyText")),3)]})],2)):createCommentVNode("v-if",!0),withDirectives(createBaseVNode("div",{ref:"dropIndicator$",class:normalizeClass(t.ns.e("drop-indicator"))},null,2),[[vShow,t.dragState.showDropIndicator]])],2)}var Tree=_export_sfc$1(_sfc_main$d,[["render",_sfc_render$2],["__file","/home/runner/work/element-plus/element-plus/packages/components/tree/src/tree.vue"]]);Tree.install=t=>{t.component(Tree.name,Tree)};const _Tree=Tree,ElTree=_Tree,useSelect=(t,{attrs:r},{tree:$,key:V})=>{const oe=useNamespace("tree-select"),ie={...pick$1(toRefs(t),Object.keys(ElSelect.props)),...r,valueKey:V,popperClass:computed(()=>{const le=[oe.e("popper")];return t.popperClass&&le.push(t.popperClass),le.join(" ")}),filterMethod:(le="")=>{t.filterMethod&&t.filterMethod(le),nextTick(()=>{var ue;(ue=$.value)==null||ue.filter(le)})},onVisibleChange:le=>{var ue;(ue=r.onVisibleChange)==null||ue.call(r,le),t.filterable&&le&&ie.filterMethod()}};return ie},component$1=defineComponent({extends:ElOption,setup(t,r){const $=ElOption.setup(t,r);delete $.selectOptionClick;const V=getCurrentInstance().proxy;return nextTick(()=>{$.select.cachedOptions.get(V.value)||$.select.onOptionCreate(V)}),$},methods:{selectOptionClick(){this.$el.parentElement.click()}}});function isValidValue(t){return t||t===0}function isValidArray(t){return Array.isArray(t)&&t.length}function toValidArray(t){return Array.isArray(t)?t:isValidValue(t)?[t]:[]}function treeFind(t,r,$,V,oe){for(let ie=0;ie{watch(()=>t.modelValue,()=>{t.showCheckbox&&nextTick(()=>{const $e=ie.value;$e&&!isEqual$1($e.getCheckedKeys(),toValidArray(t.modelValue))&&$e.setCheckedKeys(toValidArray(t.modelValue))})},{immediate:!0,deep:!0});const ue=computed(()=>({value:le.value,label:"label",children:"children",disabled:"disabled",isLeaf:"isLeaf",...t.props})),de=($e,Ie)=>{var Ve;const Fe=ue.value[$e];return isFunction$5(Fe)?Fe(Ie,(Ve=ie.value)==null?void 0:Ve.getNode(de("value",Ie))):Ie[Fe]},pe=toValidArray(t.modelValue).map($e=>treeFind(t.data||[],Ie=>de("value",Ie)===$e,Ie=>de("children",Ie),(Ie,Ve,Fe,Ue)=>Ue&&de("value",Ue))).filter($e=>isValidValue($e)),he=computed(()=>{if(!t.renderAfterExpand&&!t.lazy)return[];const $e=[];return treeEach(t.data.concat(t.cacheData),Ie=>{const Ve=de("value",Ie);$e.push({value:Ve,currentLabel:de("label",Ie),isDisabled:de("disabled",Ie)})},Ie=>de("children",Ie)),$e}),_e=computed(()=>he.value.reduce(($e,Ie)=>({...$e,[Ie.value]:Ie}),{}));return{...pick$1(toRefs(t),Object.keys(_Tree.props)),...r,nodeKey:le,expandOnClickNode:computed(()=>!t.checkStrictly&&t.expandOnClickNode),defaultExpandedKeys:computed(()=>t.defaultExpandedKeys?t.defaultExpandedKeys.concat(pe):pe),renderContent:($e,{node:Ie,data:Ve,store:Fe})=>$e(component$1,{value:de("value",Ve),label:de("label",Ve),disabled:de("disabled",Ve)},t.renderContent?()=>t.renderContent($e,{node:Ie,data:Ve,store:Fe}):$.default?()=>$.default({node:Ie,data:Ve,store:Fe}):void 0),filterNodeMethod:($e,Ie,Ve)=>{var Fe;return t.filterNodeMethod?t.filterNodeMethod($e,Ie,Ve):$e?(Fe=de("label",Ie))==null?void 0:Fe.includes($e):!0},onNodeClick:($e,Ie,Ve)=>{var Fe,Ue,qe;if((Fe=r.onNodeClick)==null||Fe.call(r,$e,Ie,Ve),!(t.showCheckbox&&t.checkOnClickNode))if(!t.showCheckbox&&(t.checkStrictly||Ie.isLeaf)){if(!de("disabled",$e)){const Et=(Ue=oe.value)==null?void 0:Ue.options.get(de("value",$e));(qe=oe.value)==null||qe.handleOptionSelect(Et)}}else t.expandOnClickNode&&Ve.proxy.handleExpandIconClick()},onCheck:($e,Ie)=>{if(!t.showCheckbox)return;const Ve=de("value",$e),Fe=Ie.checkedKeys,Ue=t.multiple?toValidArray(t.modelValue).filter(Et=>Et in _e.value&&!ie.value.getNode(Et)&&!Fe.includes(Et)):[],qe=Fe.concat(Ue);if(t.checkStrictly)V(UPDATE_MODEL_EVENT,t.multiple?qe:qe.includes(Ve)?Ve:void 0);else if(t.multiple)V(UPDATE_MODEL_EVENT,ie.value.getCheckedKeys(!0));else{const Et=treeFind([$e],Cn=>!isValidArray(de("children",Cn))&&!de("disabled",Cn),Cn=>de("children",Cn)),Lt=Et?de("value",Et):void 0,hn=isValidValue(t.modelValue)&&!!treeFind([$e],Cn=>de("value",Cn)===t.modelValue,Cn=>de("children",Cn));V(UPDATE_MODEL_EVENT,Lt===t.modelValue||hn?void 0:Lt)}nextTick(()=>{var Et;const Lt=toValidArray(t.modelValue);ie.value.setCheckedKeys(Lt),(Et=r.onCheck)==null||Et.call(r,$e,{checkedKeys:ie.value.getCheckedKeys(),checkedNodes:ie.value.getCheckedNodes(),halfCheckedKeys:ie.value.getHalfCheckedKeys(),halfCheckedNodes:ie.value.getHalfCheckedNodes()})})},cacheOptions:he}};var CacheOptions=defineComponent({props:{data:{type:Array,default:()=>[]}},setup(t){const r=inject(selectKey);return watch(()=>t.data,()=>{var $;t.data.forEach(oe=>{r.cachedOptions.has(oe.value)||r.cachedOptions.set(oe.value,oe)});const V=(($=r.selectWrapper)==null?void 0:$.querySelectorAll("input"))||[];Array.from(V).includes(document.activeElement)||r.setSelected()},{flush:"post",immediate:!0}),()=>{}}});const _sfc_main$c=defineComponent({name:"ElTreeSelect",inheritAttrs:!1,props:{...ElSelect.props,..._Tree.props,cacheData:{type:Array,default:()=>[]}},setup(t,r){const{slots:$,expose:V}=r,oe=ref(),ie=ref(),le=computed(()=>t.nodeKey||t.valueKey||"value"),ue=useSelect(t,r,{select:oe,tree:ie,key:le}),{cacheOptions:de,...pe}=useTree$1(t,r,{select:oe,tree:ie,key:le}),he=reactive({});return V(he),onMounted(()=>{Object.assign(he,{...pick$1(ie.value,["filter","updateKeyChildren","getCheckedNodes","setCheckedNodes","getCheckedKeys","setCheckedKeys","setChecked","getHalfCheckedNodes","getHalfCheckedKeys","getCurrentKey","getCurrentNode","setCurrentKey","setCurrentNode","getNode","remove","append","insertBefore","insertAfter"]),...pick$1(oe.value,["focus","blur"])})}),()=>h$2(ElSelect,reactive({...ue,ref:_e=>oe.value=_e}),{...$,default:()=>[h$2(CacheOptions,{data:de.value}),h$2(_Tree,reactive({...pe,ref:_e=>ie.value=_e}))]})}});var TreeSelect=_export_sfc$1(_sfc_main$c,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-select/src/tree-select.vue"]]);TreeSelect.install=t=>{t.component(TreeSelect.name,TreeSelect)};const _TreeSelect=TreeSelect,ElTreeSelect=_TreeSelect,ROOT_TREE_INJECTION_KEY=Symbol(),EMPTY_NODE={key:-1,level:-1,data:{}};var TreeOptionsEnum=(t=>(t.KEY="id",t.LABEL="label",t.CHILDREN="children",t.DISABLED="disabled",t))(TreeOptionsEnum||{}),SetOperationEnum=(t=>(t.ADD="add",t.DELETE="delete",t))(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]:(t,r,$)=>t&&r&&$,[NODE_EXPAND]:(t,r)=>t&&r,[NODE_COLLAPSE]:(t,r)=>t&&r,[CURRENT_CHANGE]:(t,r)=>t&&r,[NODE_CHECK]:(t,r)=>t&&r,[NODE_CHECK_CHANGE]:(t,r)=>t&&typeof r=="boolean",[NODE_CONTEXTMENU]:(t,r,$)=>t&&r&&$},treeNodeEmits={click:(t,r)=>!!(t&&r),toggle:t=>!!t,check:(t,r)=>t&&typeof r=="boolean"};function useCheck(t,r){const $=ref(new Set),V=ref(new Set),{emit:oe}=getCurrentInstance();watch([()=>r.value,()=>t.defaultCheckedKeys],()=>nextTick(()=>{Et(t.defaultCheckedKeys)}),{immediate:!0});const ie=()=>{if(!r.value||!t.showCheckbox||t.checkStrictly)return;const{levelTreeNodeMap:Lt,maxLevel:hn}=r.value,Cn=$.value,bn=new Set;for(let Sn=hn-1;Sn>=1;--Sn){const En=Lt.get(Sn);En&&En.forEach(wn=>{const $n=wn.children;if($n){let Tn=!0,xn=!1;for(const An of $n){const Mn=An.key;if(Cn.has(Mn))xn=!0;else if(bn.has(Mn)){Tn=!1,xn=!0;break}else Tn=!1}Tn?Cn.add(wn.key):xn?(bn.add(wn.key),Cn.delete(wn.key)):(Cn.delete(wn.key),bn.delete(wn.key))}})}V.value=bn},le=Lt=>$.value.has(Lt.key),ue=Lt=>V.value.has(Lt.key),de=(Lt,hn,Cn=!0)=>{const bn=$.value,Sn=(En,wn)=>{bn[wn?SetOperationEnum.ADD:SetOperationEnum.DELETE](En.key);const $n=En.children;!t.checkStrictly&&$n&&$n.forEach(Tn=>{Tn.disabled||Sn(Tn,wn)})};Sn(Lt,hn),ie(),Cn&&pe(Lt,hn)},pe=(Lt,hn)=>{const{checkedNodes:Cn,checkedKeys:bn}=Ve(),{halfCheckedNodes:Sn,halfCheckedKeys:En}=Fe();oe(NODE_CHECK,Lt.data,{checkedKeys:bn,checkedNodes:Cn,halfCheckedKeys:En,halfCheckedNodes:Sn}),oe(NODE_CHECK_CHANGE,Lt.data,hn)};function he(Lt=!1){return Ve(Lt).checkedKeys}function _e(Lt=!1){return Ve(Lt).checkedNodes}function $e(){return Fe().halfCheckedKeys}function Ie(){return Fe().halfCheckedNodes}function Ve(Lt=!1){const hn=[],Cn=[];if(r!=null&&r.value&&t.showCheckbox){const{treeNodeMap:bn}=r.value;$.value.forEach(Sn=>{const En=bn.get(Sn);En&&(!Lt||Lt&&En.isLeaf)&&(Cn.push(Sn),hn.push(En.data))})}return{checkedKeys:Cn,checkedNodes:hn}}function Fe(){const Lt=[],hn=[];if(r!=null&&r.value&&t.showCheckbox){const{treeNodeMap:Cn}=r.value;V.value.forEach(bn=>{const Sn=Cn.get(bn);Sn&&(hn.push(bn),Lt.push(Sn.data))})}return{halfCheckedNodes:Lt,halfCheckedKeys:hn}}function Ue(Lt){$.value.clear(),V.value.clear(),Et(Lt)}function qe(Lt,hn){if(r!=null&&r.value&&t.showCheckbox){const Cn=r.value.treeNodeMap.get(Lt);Cn&&de(Cn,hn,!1)}}function Et(Lt){if(r!=null&&r.value){const{treeNodeMap:hn}=r.value;if(t.showCheckbox&&hn&&Lt)for(const Cn of Lt){const bn=hn.get(Cn);bn&&!le(bn)&&de(bn,!0,!1)}}}return{updateCheckedKeys:ie,toggleCheckbox:de,isChecked:le,isIndeterminate:ue,getCheckedKeys:he,getCheckedNodes:_e,getHalfCheckedKeys:$e,getHalfCheckedNodes:Ie,setChecked:qe,setCheckedKeys:Ue}}function useFilter(t,r){const $=ref(new Set([])),V=ref(new Set([])),oe=computed(()=>isFunction$5(t.filterMethod));function ie(ue){var de;if(!oe.value)return;const pe=new Set,he=V.value,_e=$.value,$e=[],Ie=((de=r.value)==null?void 0:de.treeNodes)||[],Ve=t.filterMethod;_e.clear();function Fe(Ue){Ue.forEach(qe=>{$e.push(qe),Ve!=null&&Ve(ue,qe.data)?$e.forEach(Lt=>{pe.add(Lt.key)}):qe.isLeaf&&_e.add(qe.key);const Et=qe.children;if(Et&&Fe(Et),!qe.isLeaf){if(!pe.has(qe.key))_e.add(qe.key);else if(Et){let Lt=!0;for(const hn of Et)if(!_e.has(hn.key)){Lt=!1;break}Lt?he.add(qe.key):he.delete(qe.key)}}$e.pop()})}return Fe(Ie),pe}function le(ue){return V.value.has(ue.key)}return{hiddenExpandIconKeySet:V,hiddenNodeKeySet:$,doFilter:ie,isForceHiddenExpandIcon:le}}function useTree(t,r){const $=ref(new Set(t.defaultExpandedKeys)),V=ref(),oe=shallowRef();watch(()=>t.currentNodeKey,Yn=>{V.value=Yn},{immediate:!0}),watch(()=>t.data,Yn=>{Qn(Yn)},{immediate:!0});const{isIndeterminate:ie,isChecked:le,toggleCheckbox:ue,getCheckedKeys:de,getCheckedNodes:pe,getHalfCheckedKeys:he,getHalfCheckedNodes:_e,setChecked:$e,setCheckedKeys:Ie}=useCheck(t,oe),{doFilter:Ve,hiddenNodeKeySet:Fe,isForceHiddenExpandIcon:Ue}=useFilter(t,oe),qe=computed(()=>{var Yn;return((Yn=t.props)==null?void 0:Yn.value)||TreeOptionsEnum.KEY}),Et=computed(()=>{var Yn;return((Yn=t.props)==null?void 0:Yn.children)||TreeOptionsEnum.CHILDREN}),Lt=computed(()=>{var Yn;return((Yn=t.props)==null?void 0:Yn.disabled)||TreeOptionsEnum.DISABLED}),hn=computed(()=>{var Yn;return((Yn=t.props)==null?void 0:Yn.label)||TreeOptionsEnum.LABEL}),Cn=computed(()=>{const Yn=$.value,er=Fe.value,lr=[],sr=oe.value&&oe.value.treeNodes||[];function zn(){const Kn=[];for(let Jn=sr.length-1;Jn>=0;--Jn)Kn.push(sr[Jn]);for(;Kn.length;){const Jn=Kn.pop();if(Jn&&(er.has(Jn.key)||lr.push(Jn),Yn.has(Jn.key))){const cr=Jn.children;if(cr){const _r=cr.length;for(let ur=_r-1;ur>=0;--ur)Kn.push(cr[ur])}}}}return zn(),lr}),bn=computed(()=>Cn.value.length>0);function Sn(Yn){const er=new Map,lr=new Map;let sr=1;function zn(Jn,cr=1,_r=void 0){var ur;const wr=[];for(const Cr of Jn){const mr=$n(Cr),Er={level:cr,key:mr,data:Cr};Er.label=xn(Cr),Er.parent=_r;const Tr=wn(Cr);Er.disabled=Tn(Cr),Er.isLeaf=!Tr||Tr.length===0,Tr&&Tr.length&&(Er.children=zn(Tr,cr+1,Er)),wr.push(Er),er.set(mr,Er),lr.has(cr)||lr.set(cr,[]),(ur=lr.get(cr))==null||ur.push(Er)}return cr>sr&&(sr=cr),wr}const Kn=zn(Yn);return{treeNodeMap:er,levelTreeNodeMap:lr,maxLevel:sr,treeNodes:Kn}}function En(Yn){const er=Ve(Yn);er&&($.value=er)}function wn(Yn){return Yn[Et.value]}function $n(Yn){return Yn?Yn[qe.value]:""}function Tn(Yn){return Yn[Lt.value]}function xn(Yn){return Yn[hn.value]}function An(Yn){$.value.has(Yn.key)?Pn(Yn):Ln(Yn)}function Mn(Yn){$.value=new Set(Yn)}function Vn(Yn,er){r(NODE_CLICK,Yn.data,Yn,er),Bn(Yn),t.expandOnClickNode&&An(Yn),t.showCheckbox&&t.checkOnClickNode&&!Yn.disabled&&ue(Yn,!le(Yn),!0)}function Bn(Yn){Wn(Yn)||(V.value=Yn.key,r(CURRENT_CHANGE,Yn.data,Yn))}function Dn(Yn,er){ue(Yn,er)}function Ln(Yn){const er=$.value;if(oe.value&&t.accordion){const{treeNodeMap:lr}=oe.value;er.forEach(sr=>{const zn=lr.get(sr);Yn&&Yn.level===(zn==null?void 0:zn.level)&&er.delete(sr)})}er.add(Yn.key),r(NODE_EXPAND,Yn.data,Yn)}function Pn(Yn){$.value.delete(Yn.key),r(NODE_COLLAPSE,Yn.data,Yn)}function Fn(Yn){return $.value.has(Yn.key)}function Un(Yn){return!!Yn.disabled}function Wn(Yn){const er=V.value;return er!==void 0&&er===Yn.key}function Zn(){var Yn,er;if(V.value)return(er=(Yn=oe.value)==null?void 0:Yn.treeNodeMap.get(V.value))==null?void 0:er.data}function or(){return V.value}function br(Yn){V.value=Yn}function Qn(Yn){nextTick(()=>oe.value=Sn(Yn))}function Gn(Yn){var er;const lr=isObject$a(Yn)?$n(Yn):Yn;return(er=oe.value)==null?void 0:er.treeNodeMap.get(lr)}return{tree:oe,flattenTree:Cn,isNotEmpty:bn,getKey:$n,getChildren:wn,toggleExpand:An,toggleCheckbox:ue,isExpanded:Fn,isChecked:le,isIndeterminate:ie,isDisabled:Un,isCurrent:Wn,isForceHiddenExpandIcon:Ue,handleNodeClick:Vn,handleNodeCheck:Dn,getCurrentNode:Zn,getCurrentKey:or,setCurrentKey:br,getCheckedKeys:de,getCheckedNodes:pe,getHalfCheckedKeys:he,getHalfCheckedNodes:_e,setChecked:$e,setCheckedKeys:Ie,filter:En,setData:Qn,getNode:Gn,expandNode:Ln,collapseNode:Pn,setExpandedKeys:Mn}}var ElNodeContent=defineComponent({name:"ElTreeNodeContent",props:treeNodeContentProps,setup(t){const r=inject(ROOT_TREE_INJECTION_KEY),$=useNamespace("tree");return()=>{const V=t.node,{data:oe}=V;return r!=null&&r.ctx.slots.default?r.ctx.slots.default({node:V,data:oe}):h$2("span",{class:$.be("node","label")},[V==null?void 0:V.label])}}});const _hoisted_1$9=["aria-expanded","aria-disabled","aria-checked","data-key","onClick"],__default__$7=defineComponent({name:"ElTreeNode"}),_sfc_main$b=defineComponent({...__default__$7,props:treeNodeProps,emits:treeNodeEmits,setup(t,{emit:r}){const $=t,V=inject(ROOT_TREE_INJECTION_KEY),oe=useNamespace("tree"),ie=computed(()=>{var _e;return(_e=V==null?void 0:V.props.indent)!=null?_e:16}),le=computed(()=>{var _e;return(_e=V==null?void 0:V.props.icon)!=null?_e:caret_right_default}),ue=_e=>{r("click",$.node,_e)},de=()=>{r("toggle",$.node)},pe=_e=>{r("check",$.node,_e)},he=_e=>{var $e,Ie,Ve,Fe;(Ve=(Ie=($e=V==null?void 0:V.instance)==null?void 0:$e.vnode)==null?void 0:Ie.props)!=null&&Ve.onNodeContextmenu&&(_e.stopPropagation(),_e.preventDefault()),V==null||V.ctx.emit(NODE_CONTEXTMENU,_e,(Fe=$.node)==null?void 0:Fe.data,$.node)};return(_e,$e)=>{var Ie,Ve,Fe;return openBlock(),createElementBlock("div",{ref:"node$",class:normalizeClass([unref(oe).b("node"),unref(oe).is("expanded",_e.expanded),unref(oe).is("current",_e.current),unref(oe).is("focusable",!_e.disabled),unref(oe).is("checked",!_e.disabled&&_e.checked)]),role:"treeitem",tabindex:"-1","aria-expanded":_e.expanded,"aria-disabled":_e.disabled,"aria-checked":_e.checked,"data-key":(Ie=_e.node)==null?void 0:Ie.key,onClick:withModifiers(ue,["stop"]),onContextmenu:he},[createBaseVNode("div",{class:normalizeClass(unref(oe).be("node","content")),style:normalizeStyle$1({paddingLeft:`${(_e.node.level-1)*unref(ie)}px`,height:_e.itemSize+"px"})},[unref(le)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(oe).is("leaf",!!((Ve=_e.node)!=null&&Ve.isLeaf)),unref(oe).is("hidden",_e.hiddenExpandIcon),{expanded:!((Fe=_e.node)!=null&&Fe.isLeaf)&&_e.expanded},unref(oe).be("node","expand-icon")]),onClick:withModifiers(de,["stop"])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(le))))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0),_e.showCheckbox?(openBlock(),createBlock(unref(ElCheckbox),{key:1,"model-value":_e.checked,indeterminate:_e.indeterminate,disabled:_e.disabled,onChange:pe,onClick:$e[0]||($e[0]=withModifiers(()=>{},["stop"]))},null,8,["model-value","indeterminate","disabled"])):createCommentVNode("v-if",!0),createVNode(unref(ElNodeContent),{node:_e.node},null,8,["node"])],6)],42,_hoisted_1$9)}}});var ElTreeNode=_export_sfc$1(_sfc_main$b,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tree-v2/src/tree-node.vue"]]);const __default__$6=defineComponent({name:"ElTreeV2"}),_sfc_main$a=defineComponent({...__default__$6,props:treeProps,emits:treeEmits,setup(t,{expose:r,emit:$}){const V=t,oe=useSlots(),ie=computed(()=>V.itemSize);provide(ROOT_TREE_INJECTION_KEY,{ctx:{emit:$,slots:oe},props:V,instance:getCurrentInstance()}),provide(formItemContextKey,void 0);const{t:le}=useLocale(),ue=useNamespace("tree"),{flattenTree:de,isNotEmpty:pe,toggleExpand:he,isExpanded:_e,isIndeterminate:$e,isChecked:Ie,isDisabled:Ve,isCurrent:Fe,isForceHiddenExpandIcon:Ue,handleNodeClick:qe,handleNodeCheck:Et,toggleCheckbox:Lt,getCurrentNode:hn,getCurrentKey:Cn,setCurrentKey:bn,getCheckedKeys:Sn,getCheckedNodes:En,getHalfCheckedKeys:wn,getHalfCheckedNodes:$n,setChecked:Tn,setCheckedKeys:xn,filter:An,setData:Mn,getNode:Vn,expandNode:Bn,collapseNode:Dn,setExpandedKeys:Ln}=useTree(V,$);return r({toggleCheckbox:Lt,getCurrentNode:hn,getCurrentKey:Cn,setCurrentKey:bn,getCheckedKeys:Sn,getCheckedNodes:En,getHalfCheckedKeys:wn,getHalfCheckedNodes:$n,setChecked:Tn,setCheckedKeys:xn,filter:An,setData:Mn,getNode:Vn,expandNode:Bn,collapseNode:Dn,setExpandedKeys:Ln}),(Pn,Fn)=>{var Un;return openBlock(),createElementBlock("div",{class:normalizeClass([unref(ue).b(),{[unref(ue).m("highlight-current")]:Pn.highlightCurrent}]),role:"tree"},[unref(pe)?(openBlock(),createBlock(unref(FixedSizeList),{key:0,"class-name":unref(ue).b("virtual-list"),data:unref(de),total:unref(de).length,height:Pn.height,"item-size":unref(ie),"perf-mode":Pn.perfMode},{default:withCtx(({data:Wn,index:Zn,style:or})=>[(openBlock(),createBlock(ElTreeNode,{key:Wn[Zn].key,style:normalizeStyle$1(or),node:Wn[Zn],expanded:unref(_e)(Wn[Zn]),"show-checkbox":Pn.showCheckbox,checked:unref(Ie)(Wn[Zn]),indeterminate:unref($e)(Wn[Zn]),"item-size":unref(ie),disabled:unref(Ve)(Wn[Zn]),current:unref(Fe)(Wn[Zn]),"hidden-expand-icon":unref(Ue)(Wn[Zn]),onClick:unref(qe),onToggle:unref(he),onCheck:unref(Et)},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(ue).e("empty-block"))},[createBaseVNode("span",{class:normalizeClass(unref(ue).e("empty-text"))},toDisplayString$1((Un=Pn.emptyText)!=null?Un:unref(le)("el.tree.emptyText")),3)],2))],2)}}});var TreeV2=_export_sfc$1(_sfc_main$a,[["__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(r,$,V,oe){super(r),this.name="UploadAjaxError",this.status=$,this.method=V,this.url=oe}}function getError(t,r,$){let V;return $.response?V=`${$.response.error||$.response}`:$.responseText?V=`${$.responseText}`:V=`fail to ${r.method} ${t} ${$.status}`,new UploadAjaxError(V,$.status,r.method,t)}function getBody(t){const r=t.responseText||t.response;if(!r)return r;try{return JSON.parse(r)}catch{return r}}const ajaxUpload=t=>{typeof XMLHttpRequest>"u"&&throwError$1(SCOPE$2,"XMLHttpRequest is undefined");const r=new XMLHttpRequest,$=t.action;r.upload&&r.upload.addEventListener("progress",ie=>{const le=ie;le.percent=ie.total>0?ie.loaded/ie.total*100:0,t.onProgress(le)});const V=new FormData;if(t.data)for(const[ie,le]of Object.entries(t.data))isArray$c(le)&&le.length?V.append(ie,...le):V.append(ie,le);V.append(t.filename,t.file,t.file.name),r.addEventListener("error",()=>{t.onError(getError($,t,r))}),r.addEventListener("load",()=>{if(r.status<200||r.status>=300)return t.onError(getError($,t,r));t.onSuccess(getBody(r))}),r.open(t.method,$,!0),t.withCredentials&&"withCredentials"in r&&(r.withCredentials=!0);const oe=t.headers||{};if(oe instanceof Headers)oe.forEach((ie,le)=>r.setRequestHeader(le,ie));else for(const[ie,le]of Object.entries(oe))isNil(le)||r.setRequestHeader(ie,String(le));return r.send(V),r},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:definePropType([Object,Function,Promise]),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:t=>!!t},_hoisted_1$8=["onKeydown"],_hoisted_2$7=["src"],_hoisted_3$5=["onClick"],_hoisted_4$3=["title"],_hoisted_5$1=["onClick"],_hoisted_6=["onClick"],__default__$5=defineComponent({name:"ElUploadList"}),_sfc_main$9=defineComponent({...__default__$5,props:uploadListProps,emits:uploadListEmits,setup(t,{emit:r}){const{t:$}=useLocale(),V=useNamespace("upload"),oe=useNamespace("icon"),ie=useNamespace("list"),le=useFormDisabled(),ue=ref(!1),de=pe=>{r("remove",pe)};return(pe,he)=>(openBlock(),createBlock(TransitionGroup,{tag:"ul",class:normalizeClass([unref(V).b("list"),unref(V).bm("list",pe.listType),unref(V).is("disabled",unref(le))]),name:unref(ie).b()},{default:withCtx(()=>[(openBlock(!0),createElementBlock(Fragment,null,renderList(pe.files,_e=>(openBlock(),createElementBlock("li",{key:_e.uid||_e.name,class:normalizeClass([unref(V).be("list","item"),unref(V).is(_e.status),{focusing:ue.value}]),tabindex:"0",onKeydown:withKeys($e=>!unref(le)&&de(_e),["delete"]),onFocus:he[0]||(he[0]=$e=>ue.value=!0),onBlur:he[1]||(he[1]=$e=>ue.value=!1),onClick:he[2]||(he[2]=$e=>ue.value=!1)},[renderSlot(pe.$slots,"default",{file:_e},()=>[pe.listType==="picture"||_e.status!=="uploading"&&pe.listType==="picture-card"?(openBlock(),createElementBlock("img",{key:0,class:normalizeClass(unref(V).be("list","item-thumbnail")),src:_e.url,alt:""},null,10,_hoisted_2$7)):createCommentVNode("v-if",!0),_e.status==="uploading"||pe.listType!=="picture-card"?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(unref(V).be("list","item-info"))},[createBaseVNode("a",{class:normalizeClass(unref(V).be("list","item-name")),onClick:withModifiers($e=>pe.handlePreview(_e),["prevent"])},[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).m("document"))},{default:withCtx(()=>[createVNode(unref(document_default))]),_:1},8,["class"]),createBaseVNode("span",{class:normalizeClass(unref(V).be("list","item-file-name")),title:_e.name},toDisplayString$1(_e.name),11,_hoisted_4$3)],10,_hoisted_3$5),_e.status==="uploading"?(openBlock(),createBlock(unref(ElProgress),{key:0,type:pe.listType==="picture-card"?"circle":"line","stroke-width":pe.listType==="picture-card"?6:2,percentage:Number(_e.percentage),style:normalizeStyle$1(pe.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(V).be("list","item-status-label"))},[pe.listType==="text"?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(oe).m("upload-success"),unref(oe).m("circle-check")])},{default:withCtx(()=>[createVNode(unref(circle_check_default))]),_:1},8,["class"])):["picture-card","picture"].includes(pe.listType)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(oe).m("upload-success"),unref(oe).m("check")])},{default:withCtx(()=>[createVNode(unref(check_default))]),_:1},8,["class"])):createCommentVNode("v-if",!0)],2),unref(le)?createCommentVNode("v-if",!0):(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(oe).m("close")),onClick:$e=>de(_e)},{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(le)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("i",{key:3,class:normalizeClass(unref(oe).m("close-tip"))},toDisplayString$1(unref($)("el.upload.deleteTip")),3)),pe.listType==="picture-card"?(openBlock(),createElementBlock("span",{key:4,class:normalizeClass(unref(V).be("list","item-actions"))},[createBaseVNode("span",{class:normalizeClass(unref(V).be("list","item-preview")),onClick:$e=>pe.handlePreview(_e)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).m("zoom-in"))},{default:withCtx(()=>[createVNode(unref(zoom_in_default))]),_:1},8,["class"])],10,_hoisted_5$1),unref(le)?createCommentVNode("v-if",!0):(openBlock(),createElementBlock("span",{key:0,class:normalizeClass(unref(V).be("list","item-delete")),onClick:$e=>de(_e)},[createVNode(unref(ElIcon),{class:normalizeClass(unref(oe).m("delete"))},{default:withCtx(()=>[createVNode(unref(delete_default))]),_:1},8,["class"])],10,_hoisted_6))],2)):createCommentVNode("v-if",!0)])],42,_hoisted_1$8))),128)),renderSlot(pe.$slots,"append")]),_:3},8,["class","name"]))}});var UploadList=_export_sfc$1(_sfc_main$9,[["__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:t=>isArray$c(t)},_hoisted_1$7=["onDrop","onDragover"],COMPONENT_NAME="ElUploadDrag",__default__$4=defineComponent({name:COMPONENT_NAME}),_sfc_main$8=defineComponent({...__default__$4,props:uploadDraggerProps,emits:uploadDraggerEmits,setup(t,{emit:r}){const $=inject(uploadContextKey);$||throwError$1(COMPONENT_NAME,"usage: ");const V=useNamespace("upload"),oe=ref(!1),ie=useFormDisabled(),le=de=>{if(ie.value)return;oe.value=!1,de.stopPropagation();const pe=Array.from(de.dataTransfer.files),he=$.accept.value;if(!he){r("file",pe);return}const _e=pe.filter($e=>{const{type:Ie,name:Ve}=$e,Fe=Ve.includes(".")?`.${Ve.split(".").pop()}`:"",Ue=Ie.replace(/\/.*$/,"");return he.split(",").map(qe=>qe.trim()).filter(qe=>qe).some(qe=>qe.startsWith(".")?Fe===qe:/\/\*$/.test(qe)?Ue===qe.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(qe)?Ie===qe:!1)});r("file",_e)},ue=()=>{ie.value||(oe.value=!0)};return(de,pe)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b("dragger"),unref(V).is("dragover",oe.value)]),onDrop:withModifiers(le,["prevent"]),onDragover:withModifiers(ue,["prevent"]),onDragleave:pe[0]||(pe[0]=withModifiers(he=>oe.value=!1,["prevent"]))},[renderSlot(de.$slots,"default")],42,_hoisted_1$7))}});var UploadDragger=_export_sfc$1(_sfc_main$8,[["__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$6=["onKeydown"],_hoisted_2$6=["name","multiple","accept"],__default__$3=defineComponent({name:"ElUploadContent",inheritAttrs:!1}),_sfc_main$7=defineComponent({...__default__$3,props:uploadContentProps,setup(t,{expose:r}){const $=t,V=useNamespace("upload"),oe=useFormDisabled(),ie=shallowRef({}),le=shallowRef(),ue=Fe=>{if(Fe.length===0)return;const{autoUpload:Ue,limit:qe,fileList:Et,multiple:Lt,onStart:hn,onExceed:Cn}=$;if(qe&&Et.length+Fe.length>qe){Cn(Fe,Et);return}Lt||(Fe=Fe.slice(0,1));for(const bn of Fe){const Sn=bn;Sn.uid=genFileId(),hn(Sn),Ue&&de(Sn)}},de=async Fe=>{if(le.value.value="",!$.beforeUpload)return he(Fe);let Ue,qe={};try{const Lt=$.data,hn=$.beforeUpload(Fe);qe=isPlainObject$4($.data)?cloneDeep($.data):$.data,Ue=await hn,isPlainObject$4($.data)&&isEqual$1(Lt,qe)&&(qe=cloneDeep($.data))}catch{Ue=!1}if(Ue===!1){$.onRemove(Fe);return}let Et=Fe;Ue instanceof Blob&&(Ue instanceof File?Et=Ue:Et=new File([Ue],Fe.name,{type:Fe.type})),he(Object.assign(Et,{uid:Fe.uid}),qe)},pe=async(Fe,Ue)=>isFunction$5(Fe)?Fe(Ue):Fe,he=async(Fe,Ue)=>{const{headers:qe,data:Et,method:Lt,withCredentials:hn,name:Cn,action:bn,onProgress:Sn,onSuccess:En,onError:wn,httpRequest:$n}=$;try{Ue=await pe(Ue??Et,Fe)}catch{$.onRemove(Fe);return}const{uid:Tn}=Fe,xn={headers:qe||{},withCredentials:hn,file:Fe,data:Ue,method:Lt,filename:Cn,action:bn,onProgress:Mn=>{Sn(Mn,Fe)},onSuccess:Mn=>{En(Mn,Fe),delete ie.value[Tn]},onError:Mn=>{wn(Mn,Fe),delete ie.value[Tn]}},An=$n(xn);ie.value[Tn]=An,An instanceof Promise&&An.then(xn.onSuccess,xn.onError)},_e=Fe=>{const Ue=Fe.target.files;Ue&&ue(Array.from(Ue))},$e=()=>{oe.value||(le.value.value="",le.value.click())},Ie=()=>{$e()};return r({abort:Fe=>{entriesOf(ie.value).filter(Fe?([qe])=>String(Fe.uid)===qe:()=>!0).forEach(([qe,Et])=>{Et instanceof XMLHttpRequest&&Et.abort(),delete ie.value[qe]})},upload:de}),(Fe,Ue)=>(openBlock(),createElementBlock("div",{class:normalizeClass([unref(V).b(),unref(V).m(Fe.listType),unref(V).is("drag",Fe.drag)]),tabindex:"0",onClick:$e,onKeydown:withKeys(withModifiers(Ie,["self"]),["enter","space"])},[Fe.drag?(openBlock(),createBlock(UploadDragger,{key:0,disabled:unref(oe),onFile:ue},{default:withCtx(()=>[renderSlot(Fe.$slots,"default")]),_:3},8,["disabled"])):renderSlot(Fe.$slots,"default",{key:1}),createBaseVNode("input",{ref_key:"inputRef",ref:le,class:normalizeClass(unref(V).e("input")),name:Fe.name,multiple:Fe.multiple,accept:Fe.accept,type:"file",onChange:_e,onClick:Ue[0]||(Ue[0]=withModifiers(()=>{},["stop"]))},null,42,_hoisted_2$6)],42,_hoisted_1$6))}});var UploadContent=_export_sfc$1(_sfc_main$7,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const SCOPE$1="ElUpload",revokeFileObjectURL=t=>{var r;(r=t.url)!=null&&r.startsWith("blob:")&&URL.revokeObjectURL(t.url)},useHandlers=(t,r)=>{const $=useVModel$1(t,"fileList",void 0,{passive:!0}),V=$e=>$.value.find(Ie=>Ie.uid===$e.uid);function oe($e){var Ie;(Ie=r.value)==null||Ie.abort($e)}function ie($e=["ready","uploading","success","fail"]){$.value=$.value.filter(Ie=>!$e.includes(Ie.status))}const le=($e,Ie)=>{const Ve=V(Ie);Ve&&(console.error($e),Ve.status="fail",$.value.splice($.value.indexOf(Ve),1),t.onError($e,Ve,$.value),t.onChange(Ve,$.value))},ue=($e,Ie)=>{const Ve=V(Ie);Ve&&(t.onProgress($e,Ve,$.value),Ve.status="uploading",Ve.percentage=Math.round($e.percent))},de=($e,Ie)=>{const Ve=V(Ie);Ve&&(Ve.status="success",Ve.response=$e,t.onSuccess($e,Ve,$.value),t.onChange(Ve,$.value))},pe=$e=>{isNil($e.uid)&&($e.uid=genFileId());const Ie={name:$e.name,percentage:0,status:"ready",size:$e.size,raw:$e,uid:$e.uid};if(t.listType==="picture-card"||t.listType==="picture")try{Ie.url=URL.createObjectURL($e)}catch(Ve){Ve.message,t.onError(Ve,Ie,$.value)}$.value=[...$.value,Ie],t.onChange(Ie,$.value)},he=async $e=>{const Ie=$e instanceof File?V($e):$e;Ie||throwError$1(SCOPE$1,"file to be removed not found");const Ve=Fe=>{oe(Fe);const Ue=$.value;Ue.splice(Ue.indexOf(Fe),1),t.onRemove(Fe,Ue),revokeFileObjectURL(Fe)};t.beforeRemove?await t.beforeRemove(Ie,$.value)!==!1&&Ve(Ie):Ve(Ie)};function _e(){$.value.filter(({status:$e})=>$e==="ready").forEach(({raw:$e})=>{var Ie;return $e&&((Ie=r.value)==null?void 0:Ie.upload($e))})}return watch(()=>t.listType,$e=>{$e!=="picture-card"&&$e!=="picture"||($.value=$.value.map(Ie=>{const{raw:Ve,url:Fe}=Ie;if(!Fe&&Ve)try{Ie.url=URL.createObjectURL(Ve)}catch(Ue){t.onError(Ue,Ie,$.value)}return Ie}))}),watch($,$e=>{for(const Ie of $e)Ie.uid||(Ie.uid=genFileId()),Ie.status||(Ie.status="success")},{immediate:!0,deep:!0}),{uploadFiles:$,abort:oe,clearFiles:ie,handleError:le,handleProgress:ue,handleStart:pe,handleSuccess:de,handleRemove:he,submit:_e,revokeFileObjectURL}},__default__$2=defineComponent({name:"ElUpload"}),_sfc_main$6=defineComponent({...__default__$2,props:uploadProps,setup(t,{expose:r}){const $=t,V=useFormDisabled(),oe=shallowRef(),{abort:ie,submit:le,clearFiles:ue,uploadFiles:de,handleStart:pe,handleError:he,handleRemove:_e,handleSuccess:$e,handleProgress:Ie,revokeFileObjectURL:Ve}=useHandlers($,oe),Fe=computed(()=>$.listType==="picture-card"),Ue=computed(()=>({...$,fileList:de.value,onStart:pe,onProgress:Ie,onSuccess:$e,onError:he,onRemove:_e}));return onBeforeUnmount(()=>{de.value.forEach(Ve)}),provide(uploadContextKey,{accept:toRef($,"accept")}),r({abort:ie,submit:le,clearFiles:ue,handleStart:pe,handleRemove:_e}),(qe,Et)=>(openBlock(),createElementBlock("div",null,[unref(Fe)&&qe.showFileList?(openBlock(),createBlock(UploadList,{key:0,disabled:unref(V),"list-type":qe.listType,files:unref(de),"handle-preview":qe.onPreview,onRemove:unref(_e)},createSlots({append:withCtx(()=>[createVNode(UploadContent,mergeProps({ref_key:"uploadRef",ref:oe},unref(Ue)),{default:withCtx(()=>[qe.$slots.trigger?renderSlot(qe.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!qe.$slots.trigger&&qe.$slots.default?renderSlot(qe.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)]),_:2},[qe.$slots.file?{name:"default",fn:withCtx(({file:Lt})=>[renderSlot(qe.$slots,"file",{file:Lt})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0),!unref(Fe)||unref(Fe)&&!qe.showFileList?(openBlock(),createBlock(UploadContent,mergeProps({key:1,ref_key:"uploadRef",ref:oe},unref(Ue)),{default:withCtx(()=>[qe.$slots.trigger?renderSlot(qe.$slots,"trigger",{key:0}):createCommentVNode("v-if",!0),!qe.$slots.trigger&&qe.$slots.default?renderSlot(qe.$slots,"default",{key:1}):createCommentVNode("v-if",!0)]),_:3},16)):createCommentVNode("v-if",!0),qe.$slots.trigger?renderSlot(qe.$slots,"default",{key:2}):createCommentVNode("v-if",!0),renderSlot(qe.$slots,"tip"),!unref(Fe)&&qe.showFileList?(openBlock(),createBlock(UploadList,{key:3,disabled:unref(V),"list-type":qe.listType,files:unref(de),"handle-preview":qe.onPreview,onRemove:unref(_e)},createSlots({_:2},[qe.$slots.file?{name:"default",fn:withCtx(({file:Lt})=>[renderSlot(qe.$slots,"file",{file:Lt})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):createCommentVNode("v-if",!0)]))}});var Upload=_export_sfc$1(_sfc_main$6,[["__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=(t,r)=>Object.entries(attributes).reduce(($,[V,oe])=>{var ie,le;const{type:ue,default:de}=oe,pe=t.getAttribute(`infinite-scroll-${V}`);let he=(le=(ie=r[pe])!=null?ie:pe)!=null?le:de;return he=he==="false"?!1:he,he=ue(he),$[V]=Number.isNaN(he)?de:he,$},{}),destroyObserver=t=>{const{observer:r}=t[SCOPE];r&&(r.disconnect(),delete t[SCOPE].observer)},handleScroll=(t,r)=>{const{container:$,containerEl:V,instance:oe,observer:ie,lastScrollTop:le}=t[SCOPE],{disabled:ue,distance:de}=getScrollOptions(t,oe),{clientHeight:pe,scrollHeight:he,scrollTop:_e}=V,$e=_e-le;if(t[SCOPE].lastScrollTop=_e,ie||ue||$e<0)return;let Ie=!1;if($===t)Ie=he-(pe+_e)<=de;else{const{clientTop:Ve,scrollHeight:Fe}=t,Ue=getOffsetTopDistance(t,V);Ie=_e+pe>=Ue+Ve+Fe-de}Ie&&r.call(oe)};function checkFull(t,r){const{containerEl:$,instance:V}=t[SCOPE],{disabled:oe}=getScrollOptions(t,V);oe||$.clientHeight===0||($.scrollHeight<=$.clientHeight?r.call(V):destroyObserver(t))}const InfiniteScroll={async mounted(t,r){const{instance:$,value:V}=r;isFunction$5(V)||throwError$1(SCOPE,"'v-infinite-scroll' binding value must be a function"),await nextTick();const{delay:oe,immediate:ie}=getScrollOptions(t,$),le=getScrollContainer(t,!0),ue=le===window?document.documentElement:le,de=throttle$1(handleScroll.bind(null,t,V),oe);if(le){if(t[SCOPE]={instance:$,container:le,containerEl:ue,delay:oe,cb:V,onScroll:de,lastScrollTop:ue.scrollTop},ie){const pe=new MutationObserver(throttle$1(checkFull.bind(null,t,V),CHECK_INTERVAL));t[SCOPE].observer=pe,pe.observe(t,{childList:!0,subtree:!0}),checkFull(t,V)}le.addEventListener("scroll",de)}},unmounted(t){const{container:r,onScroll:$}=t[SCOPE];r==null||r.removeEventListener("scroll",$),destroyObserver(t)},async updated(t){if(!t[SCOPE])await nextTick();else{const{containerEl:r,cb:$,observer:V}=t[SCOPE];r.clientHeight&&V&&checkFull(t,$)}}},_InfiniteScroll=InfiniteScroll;_InfiniteScroll.install=t=>{t.directive("InfiniteScroll",_InfiniteScroll)};const ElInfiniteScroll=_InfiniteScroll;function createLoadingComponent(t){let r;const $=ref(!1),V=reactive({...t,originalPosition:"",originalOverflow:"",visible:!1});function oe($e){V.text=$e}function ie(){const $e=V.parent,Ie=_e.ns;if(!$e.vLoadingAddClassList){let Ve=$e.getAttribute("loading-number");Ve=Number.parseInt(Ve)-1,Ve?$e.setAttribute("loading-number",Ve.toString()):(removeClass($e,Ie.bm("parent","relative")),$e.removeAttribute("loading-number")),removeClass($e,Ie.bm("parent","hidden"))}le(),he.unmount()}function le(){var $e,Ie;(Ie=($e=_e.$el)==null?void 0:$e.parentNode)==null||Ie.removeChild(_e.$el)}function ue(){var $e;t.beforeClose&&!t.beforeClose()||($.value=!0,clearTimeout(r),r=window.setTimeout(de,400),V.visible=!1,($e=t.closed)==null||$e.call(t))}function de(){if(!$.value)return;const $e=V.parent;$.value=!1,$e.vLoadingAddClassList=void 0,ie()}const pe=defineComponent({name:"ElLoading",setup($e,{expose:Ie}){const{ns:Ve,zIndex:Fe}=useGlobalComponentSettings("loading");return Ie({ns:Ve,zIndex:Fe}),()=>{const Ue=V.spinner||V.svg,qe=h$2("svg",{class:"circular",viewBox:V.svgViewBox?V.svgViewBox:"0 0 50 50",...Ue?{innerHTML:Ue}:{}},[h$2("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none"})]),Et=V.text?h$2("p",{class:Ve.b("text")},[V.text]):void 0;return h$2(Transition,{name:Ve.b("fade"),onAfterLeave:de},{default:withCtx(()=>[withDirectives(createVNode("div",{style:{backgroundColor:V.background||""},class:[Ve.b("mask"),V.customClass,V.fullscreen?"is-fullscreen":""]},[h$2("div",{class:Ve.b("spinner")},[qe,Et])]),[[vShow,V.visible]])])})}}}),he=createApp(pe),_e=he.mount(document.createElement("div"));return{...toRefs(V),setText:oe,removeElLoadingChild:le,close:ue,handleAfterLeave:de,vm:_e,get $el(){return _e.$el}}}let fullscreenInstance;const Loading=function(t={}){if(!isClient$1)return;const r=resolveOptions(t);if(r.fullscreen&&fullscreenInstance)return fullscreenInstance;const $=createLoadingComponent({...r,closed:()=>{var oe;(oe=r.closed)==null||oe.call(r),r.fullscreen&&(fullscreenInstance=void 0)}});addStyle(r,r.parent,$),addClassList(r,r.parent,$),r.parent.vLoadingAddClassList=()=>addClassList(r,r.parent,$);let V=r.parent.getAttribute("loading-number");return V?V=`${Number.parseInt(V)+1}`:V="1",r.parent.setAttribute("loading-number",V),r.parent.appendChild($.$el),nextTick(()=>$.visible.value=r.visible),r.fullscreen&&(fullscreenInstance=$),$},resolveOptions=t=>{var r,$,V,oe;let ie;return isString$6(t.target)?ie=(r=document.querySelector(t.target))!=null?r:document.body:ie=t.target||document.body,{parent:ie===document.body||t.body?document.body:ie,background:t.background||"",svg:t.svg||"",svgViewBox:t.svgViewBox||"",spinner:t.spinner||!1,text:t.text||"",fullscreen:ie===document.body&&(($=t.fullscreen)!=null?$:!0),lock:(V=t.lock)!=null?V:!1,customClass:t.customClass||"",visible:(oe=t.visible)!=null?oe:!0,target:ie}},addStyle=async(t,r,$)=>{const{nextZIndex:V}=$.vm.zIndex||$.vm._.exposed.zIndex,oe={};if(t.fullscreen)$.originalPosition.value=getStyle$1(document.body,"position"),$.originalOverflow.value=getStyle$1(document.body,"overflow"),oe.zIndex=V();else if(t.parent===document.body){$.originalPosition.value=getStyle$1(document.body,"position"),await nextTick();for(const ie of["top","left"]){const le=ie==="top"?"scrollTop":"scrollLeft";oe[ie]=`${t.target.getBoundingClientRect()[ie]+document.body[le]+document.documentElement[le]-Number.parseInt(getStyle$1(document.body,`margin-${ie}`),10)}px`}for(const ie of["height","width"])oe[ie]=`${t.target.getBoundingClientRect()[ie]}px`}else $.originalPosition.value=getStyle$1(r,"position");for(const[ie,le]of Object.entries(oe))$.$el.style[ie]=le},addClassList=(t,r,$)=>{const V=$.vm.ns||$.vm._.exposed.ns;["absolute","fixed","sticky"].includes($.originalPosition.value)?removeClass(r,V.bm("parent","relative")):addClass(r,V.bm("parent","relative")),t.fullscreen&&t.lock?addClass(r,V.bm("parent","hidden")):removeClass(r,V.bm("parent","hidden"))},INSTANCE_KEY=Symbol("ElLoading"),createInstance$1=(t,r)=>{var $,V,oe,ie;const le=r.instance,ue=$e=>isObject$a(r.value)?r.value[$e]:void 0,de=$e=>{const Ie=isString$6($e)&&(le==null?void 0:le[$e])||$e;return Ie&&ref(Ie)},pe=$e=>de(ue($e)||t.getAttribute(`element-loading-${hyphenate($e)}`)),he=($=ue("fullscreen"))!=null?$:r.modifiers.fullscreen,_e={text:pe("text"),svg:pe("svg"),svgViewBox:pe("svgViewBox"),spinner:pe("spinner"),background:pe("background"),customClass:pe("customClass"),fullscreen:he,target:(V=ue("target"))!=null?V:he?void 0:t,body:(oe=ue("body"))!=null?oe:r.modifiers.body,lock:(ie=ue("lock"))!=null?ie:r.modifiers.lock};t[INSTANCE_KEY]={options:_e,instance:Loading(_e)}},updateOptions=(t,r)=>{for(const $ of Object.keys(r))isRef(r[$])&&(r[$].value=t[$])},vLoading={mounted(t,r){r.value&&createInstance$1(t,r)},updated(t,r){const $=t[INSTANCE_KEY];r.oldValue!==r.value&&(r.value&&!r.oldValue?createInstance$1(t,r):r.value&&r.oldValue?isObject$a(r.value)&&updateOptions(r.value,$.options):$==null||$.instance.close())},unmounted(t){var r;(r=t[INSTANCE_KEY])==null||r.instance.close()}},ElLoading={install(t){t.directive("loading",vLoading),t.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$1?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=t=>{const r=instances$2.findIndex(oe=>oe.id===t),$=instances$2[r];let V;return r>0&&(V=instances$2[r-1]),{current:$,prev:V}},getLastOffset=t=>{const{prev:r}=getInstance$1(t);return r?r.vm.exposed.bottom.value:0},getOffsetOrSpace=(t,r)=>instances$2.findIndex(V=>V.id===t)>0?20:r,_hoisted_1$5=["id"],_hoisted_2$5=["innerHTML"],__default__$1=defineComponent({name:"ElMessage"}),_sfc_main$5=defineComponent({...__default__$1,props:messageProps,emits:messageEmits,setup(t,{expose:r}){const $=t,{Close:V}=TypeComponents,{ns:oe,zIndex:ie}=useGlobalComponentSettings("message"),{currentZIndex:le,nextZIndex:ue}=ie,de=ref(),pe=ref(!1),he=ref(0);let _e;const $e=computed(()=>$.type?$.type==="error"?"danger":$.type:"info"),Ie=computed(()=>{const Sn=$.type;return{[oe.bm("icon",Sn)]:Sn&&TypeComponentsMap[Sn]}}),Ve=computed(()=>$.icon||TypeComponentsMap[$.type]||""),Fe=computed(()=>getLastOffset($.id)),Ue=computed(()=>getOffsetOrSpace($.id,$.offset)+Fe.value),qe=computed(()=>he.value+Ue.value),Et=computed(()=>({top:`${Ue.value}px`,zIndex:le.value}));function Lt(){$.duration!==0&&({stop:_e}=useTimeoutFn$1(()=>{Cn()},$.duration))}function hn(){_e==null||_e()}function Cn(){pe.value=!1}function bn({code:Sn}){Sn===EVENT_CODE.esc&&Cn()}return onMounted(()=>{Lt(),ue(),pe.value=!0}),watch(()=>$.repeatNum,()=>{hn(),Lt()}),useEventListener$1(document,"keydown",bn),useResizeObserver$1(de,()=>{he.value=de.value.getBoundingClientRect().height}),r({visible:pe,bottom:qe,close:Cn}),(Sn,En)=>(openBlock(),createBlock(Transition,{name:unref(oe).b("fade"),onBeforeLeave:Sn.onClose,onAfterLeave:En[0]||(En[0]=wn=>Sn.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:Sn.id,ref_key:"messageRef",ref:de,class:normalizeClass([unref(oe).b(),{[unref(oe).m(Sn.type)]:Sn.type&&!Sn.icon},unref(oe).is("center",Sn.center),unref(oe).is("closable",Sn.showClose),Sn.customClass]),style:normalizeStyle$1(unref(Et)),role:"alert",onMouseenter:hn,onMouseleave:Lt},[Sn.repeatNum>1?(openBlock(),createBlock(unref(ElBadge),{key:0,value:Sn.repeatNum,type:unref($e),class:normalizeClass(unref(oe).e("badge"))},null,8,["value","type","class"])):createCommentVNode("v-if",!0),unref(Ve)?(openBlock(),createBlock(unref(ElIcon),{key:1,class:normalizeClass([unref(oe).e("icon"),unref(Ie)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(Ve))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),renderSlot(Sn.$slots,"default",{},()=>[Sn.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(oe).e("content")),innerHTML:Sn.message},null,10,_hoisted_2$5)],2112)):(openBlock(),createElementBlock("p",{key:0,class:normalizeClass(unref(oe).e("content"))},toDisplayString$1(Sn.message),3))]),Sn.showClose?(openBlock(),createBlock(unref(ElIcon),{key:2,class:normalizeClass(unref(oe).e("closeBtn")),onClick:withModifiers(Cn,["stop"])},{default:withCtx(()=>[createVNode(unref(V))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],46,_hoisted_1$5),[[vShow,pe.value]])]),_:3},8,["name","onBeforeLeave"]))}});var MessageConstructor=_export_sfc$1(_sfc_main$5,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let seed$1=1;const normalizeOptions=t=>{const r=!t||isString$6(t)||isVNode$1(t)||isFunction$5(t)?{message:t}:t,$={...messageDefaults,...r};if(!$.appendTo)$.appendTo=document.body;else if(isString$6($.appendTo)){let V=document.querySelector($.appendTo);isElement$2(V)||(V=document.body),$.appendTo=V}return $},closeMessage=t=>{const r=instances$2.indexOf(t);if(r===-1)return;instances$2.splice(r,1);const{handler:$}=t;$.close()},createMessage=({appendTo:t,...r},$)=>{const V=`message_${seed$1++}`,oe=r.onClose,ie=document.createElement("div"),le={...r,id:V,onClose:()=>{oe==null||oe(),closeMessage(he)},onDestroy:()=>{render$4(null,ie)}},ue=createVNode(MessageConstructor,le,isFunction$5(le.message)||isVNode$1(le.message)?{default:isFunction$5(le.message)?le.message:()=>le.message}:null);ue.appContext=$||message$1._context,render$4(ue,ie),t.appendChild(ie.firstElementChild);const de=ue.component,he={id:V,vnode:ue,vm:de,handler:{close:()=>{de.exposed.visible.value=!1}},props:ue.component.props};return he},message$1=(t={},r)=>{if(!isClient$1)return{close:()=>{}};if(isNumber$4(messageConfig.max)&&instances$2.length>=messageConfig.max)return{close:()=>{}};const $=normalizeOptions(t);if($.grouping&&instances$2.length){const oe=instances$2.find(({vnode:ie})=>{var le;return((le=ie.props)==null?void 0:le.message)===$.message});if(oe)return oe.props.repeatNum+=1,oe.props.type=$.type,oe.handler}const V=createMessage($,r);return instances$2.push(V),V.handler};messageTypes.forEach(t=>{message$1[t]=(r={},$)=>{const V=normalizeOptions(r);return message$1({...V,type:t},$)}});function closeAll$1(t){for(const r of instances$2)(!t||t===r.props.type)&&r.handler.close()}message$1.closeAll=closeAll$1;message$1._context=null;const ElMessage=withInstallFunction(message$1,"$message"),_sfc_main$4=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(t,{emit:r}){const{locale:$,zIndex:V,ns:oe,size:ie}=useGlobalComponentSettings("message-box",computed(()=>t.buttonSize)),{t:le}=$,{nextZIndex:ue}=V,de=ref(!1),pe=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:ue()}),he=computed(()=>{const Vn=pe.type;return{[oe.bm("icon",Vn)]:Vn&&TypeComponentsMap[Vn]}}),_e=useId(),$e=useId(),Ie=computed(()=>pe.icon||TypeComponentsMap[pe.type]||""),Ve=computed(()=>!!pe.message),Fe=ref(),Ue=ref(),qe=ref(),Et=ref(),Lt=ref(),hn=computed(()=>pe.confirmButtonClass);watch(()=>pe.inputValue,async Vn=>{await nextTick(),t.boxType==="prompt"&&Vn!==null&&Tn()},{immediate:!0}),watch(()=>de.value,Vn=>{var Bn,Dn;Vn&&(t.boxType!=="prompt"&&(pe.autofocus?qe.value=(Dn=(Bn=Lt.value)==null?void 0:Bn.$el)!=null?Dn:Fe.value:qe.value=Fe.value),pe.zIndex=ue()),t.boxType==="prompt"&&(Vn?nextTick().then(()=>{var Ln;Et.value&&Et.value.$el&&(pe.autofocus?qe.value=(Ln=xn())!=null?Ln:Fe.value:qe.value=Fe.value)}):(pe.editorErrorMessage="",pe.validateError=!1))});const Cn=computed(()=>t.draggable);useDraggable(Fe,Ue,Cn),onMounted(async()=>{await nextTick(),t.closeOnHashChange&&window.addEventListener("hashchange",bn)}),onBeforeUnmount(()=>{t.closeOnHashChange&&window.removeEventListener("hashchange",bn)});function bn(){de.value&&(de.value=!1,nextTick(()=>{pe.action&&r("action",pe.action)}))}const Sn=()=>{t.closeOnClickModal&&$n(pe.distinguishCancelAndClose?"close":"cancel")},En=useSameTarget(Sn),wn=Vn=>{if(pe.inputType!=="textarea")return Vn.preventDefault(),$n("confirm")},$n=Vn=>{var Bn;t.boxType==="prompt"&&Vn==="confirm"&&!Tn()||(pe.action=Vn,pe.beforeClose?(Bn=pe.beforeClose)==null||Bn.call(pe,Vn,pe,bn):bn())},Tn=()=>{if(t.boxType==="prompt"){const Vn=pe.inputPattern;if(Vn&&!Vn.test(pe.inputValue||""))return pe.editorErrorMessage=pe.inputErrorMessage||le("el.messagebox.error"),pe.validateError=!0,!1;const Bn=pe.inputValidator;if(typeof Bn=="function"){const Dn=Bn(pe.inputValue);if(Dn===!1)return pe.editorErrorMessage=pe.inputErrorMessage||le("el.messagebox.error"),pe.validateError=!0,!1;if(typeof Dn=="string")return pe.editorErrorMessage=Dn,pe.validateError=!0,!1}}return pe.editorErrorMessage="",pe.validateError=!1,!0},xn=()=>{const Vn=Et.value.$refs;return Vn.input||Vn.textarea},An=()=>{$n("close")},Mn=()=>{t.closeOnPressEscape&&An()};return t.lockScroll&&useLockscreen(de),{...toRefs(pe),ns:oe,overlayEvent:En,visible:de,hasMessage:Ve,typeClass:he,contentId:_e,inputId:$e,btnSize:ie,iconComponent:Ie,confirmButtonClasses:hn,rootRef:Fe,focusStartRef:qe,headerRef:Ue,inputRef:Et,confirmRef:Lt,doClose:bn,handleClose:An,onCloseRequested:Mn,handleWrapperClick:Sn,handleInputEnter:wn,handleAction:$n,t:le}}}),_hoisted_1$4=["aria-label","aria-describedby"],_hoisted_2$4=["aria-label"],_hoisted_3$4=["id"];function _sfc_render$1(t,r,$,V,oe,ie){const le=resolveComponent("el-icon"),ue=resolveComponent("close"),de=resolveComponent("el-input"),pe=resolveComponent("el-button"),he=resolveComponent("el-focus-trap"),_e=resolveComponent("el-overlay");return openBlock(),createBlock(Transition,{name:"fade-in-linear",onAfterLeave:r[11]||(r[11]=$e=>t.$emit("vanish")),persisted:""},{default:withCtx(()=>[withDirectives(createVNode(_e,{"z-index":t.zIndex,"overlay-class":[t.ns.is("message-box"),t.modalClass],mask:t.modal},{default:withCtx(()=>[createBaseVNode("div",{role:"dialog","aria-label":t.title,"aria-modal":"true","aria-describedby":t.showInput?void 0:t.contentId,class:normalizeClass(`${t.ns.namespace.value}-overlay-message-box`),onClick:r[8]||(r[8]=(...$e)=>t.overlayEvent.onClick&&t.overlayEvent.onClick(...$e)),onMousedown:r[9]||(r[9]=(...$e)=>t.overlayEvent.onMousedown&&t.overlayEvent.onMousedown(...$e)),onMouseup:r[10]||(r[10]=(...$e)=>t.overlayEvent.onMouseup&&t.overlayEvent.onMouseup(...$e))},[createVNode(he,{loop:"",trapped:t.visible,"focus-trap-el":t.rootRef,"focus-start-el":t.focusStartRef,onReleaseRequested:t.onCloseRequested},{default:withCtx(()=>[createBaseVNode("div",{ref:"rootRef",class:normalizeClass([t.ns.b(),t.customClass,t.ns.is("draggable",t.draggable),{[t.ns.m("center")]:t.center}]),style:normalizeStyle$1(t.customStyle),tabindex:"-1",onClick:r[7]||(r[7]=withModifiers(()=>{},["stop"]))},[t.title!==null&&t.title!==void 0?(openBlock(),createElementBlock("div",{key:0,ref:"headerRef",class:normalizeClass(t.ns.e("header"))},[createBaseVNode("div",{class:normalizeClass(t.ns.e("title"))},[t.iconComponent&&t.center?(openBlock(),createBlock(le,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("span",null,toDisplayString$1(t.title),1)],2),t.showClose?(openBlock(),createElementBlock("button",{key:0,type:"button",class:normalizeClass(t.ns.e("headerbtn")),"aria-label":t.t("el.messagebox.close"),onClick:r[0]||(r[0]=$e=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel")),onKeydown:r[1]||(r[1]=withKeys(withModifiers($e=>t.handleAction(t.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[createVNode(le,{class:normalizeClass(t.ns.e("close"))},{default:withCtx(()=>[createVNode(ue)]),_:1},8,["class"])],42,_hoisted_2$4)):createCommentVNode("v-if",!0)],2)):createCommentVNode("v-if",!0),createBaseVNode("div",{id:t.contentId,class:normalizeClass(t.ns.e("content"))},[createBaseVNode("div",{class:normalizeClass(t.ns.e("container"))},[t.iconComponent&&!t.center&&t.hasMessage?(openBlock(),createBlock(le,{key:0,class:normalizeClass([t.ns.e("status"),t.typeClass])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(t.iconComponent)))]),_:1},8,["class"])):createCommentVNode("v-if",!0),t.hasMessage?(openBlock(),createElementBlock("div",{key:1,class:normalizeClass(t.ns.e("message"))},[renderSlot(t.$slots,"default",{},()=>[t.dangerouslyUseHTMLString?(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:1,for:t.showInput?t.inputId:void 0,innerHTML:t.message},null,8,["for","innerHTML"])):(openBlock(),createBlock(resolveDynamicComponent(t.showInput?"label":"p"),{key:0,for:t.showInput?t.inputId:void 0},{default:withCtx(()=>[createTextVNode(toDisplayString$1(t.dangerouslyUseHTMLString?"":t.message),1)]),_:1},8,["for"]))])],2)):createCommentVNode("v-if",!0)],2),withDirectives(createBaseVNode("div",{class:normalizeClass(t.ns.e("input"))},[createVNode(de,{id:t.inputId,ref:"inputRef",modelValue:t.inputValue,"onUpdate:modelValue":r[2]||(r[2]=$e=>t.inputValue=$e),type:t.inputType,placeholder:t.inputPlaceholder,"aria-invalid":t.validateError,class:normalizeClass({invalid:t.validateError}),onKeydown:withKeys(t.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),createBaseVNode("div",{class:normalizeClass(t.ns.e("errormsg")),style:normalizeStyle$1({visibility:t.editorErrorMessage?"visible":"hidden"})},toDisplayString$1(t.editorErrorMessage),7)],2),[[vShow,t.showInput]])],10,_hoisted_3$4),createBaseVNode("div",{class:normalizeClass(t.ns.e("btns"))},[t.showCancelButton?(openBlock(),createBlock(pe,{key:0,loading:t.cancelButtonLoading,class:normalizeClass([t.cancelButtonClass]),round:t.roundButton,size:t.btnSize,onClick:r[3]||(r[3]=$e=>t.handleAction("cancel")),onKeydown:r[4]||(r[4]=withKeys(withModifiers($e=>t.handleAction("cancel"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(t.cancelButtonText||t.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):createCommentVNode("v-if",!0),withDirectives(createVNode(pe,{ref:"confirmRef",type:"primary",loading:t.confirmButtonLoading,class:normalizeClass([t.confirmButtonClasses]),round:t.roundButton,disabled:t.confirmButtonDisabled,size:t.btnSize,onClick:r[5]||(r[5]=$e=>t.handleAction("confirm")),onKeydown:r[6]||(r[6]=withKeys(withModifiers($e=>t.handleAction("confirm"),["prevent"]),["enter"]))},{default:withCtx(()=>[createTextVNode(toDisplayString$1(t.confirmButtonText||t.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[vShow,t.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,_hoisted_1$4)]),_:3},8,["z-index","overlay-class","mask"]),[[vShow,t.visible]])]),_:3})}var MessageBoxConstructor=_export_sfc$1(_sfc_main$4,[["render",_sfc_render$1],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const messageInstance=new Map,getAppendToElement=t=>{let r=document.body;return t.appendTo&&(isString$6(t.appendTo)&&(r=document.querySelector(t.appendTo)),isElement$2(t.appendTo)&&(r=t.appendTo),isElement$2(r)||(r=document.body)),r},initInstance=(t,r,$=null)=>{const V=createVNode(MessageBoxConstructor,t,isFunction$5(t.message)||isVNode$1(t.message)?{default:isFunction$5(t.message)?t.message:()=>t.message}:null);return V.appContext=$,render$4(V,r),getAppendToElement(t).appendChild(r.firstElementChild),V.component},genContainer=()=>document.createElement("div"),showMessage=(t,r)=>{const $=genContainer();t.onVanish=()=>{render$4(null,$),messageInstance.delete(oe)},t.onAction=ie=>{const le=messageInstance.get(oe);let ue;t.showInput?ue={value:oe.inputValue,action:ie}:ue=ie,t.callback?t.callback(ue,V.proxy):ie==="cancel"||ie==="close"?t.distinguishCancelAndClose&&ie!=="cancel"?le.reject("close"):le.reject("cancel"):le.resolve(ue)};const V=initInstance(t,$,r),oe=V.proxy;for(const ie in t)hasOwn$4(t,ie)&&!hasOwn$4(oe.$props,ie)&&(oe[ie]=t[ie]);return oe.visible=!0,oe};function MessageBox(t,r=null){if(!isClient$1)return Promise.reject();let $;return isString$6(t)||isVNode$1(t)?t={message:t}:$=t.callback,new Promise((V,oe)=>{const ie=showMessage(t,r??MessageBox._context);messageInstance.set(ie,{options:t,callback:$,resolve:V,reject:oe})})}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(t=>{MessageBox[t]=messageBoxFactory(t)});function messageBoxFactory(t){return(r,$,V,oe)=>{let ie="";return isObject$a($)?(V=$,ie=""):isUndefined$1($)?ie="":ie=$,MessageBox(Object.assign({title:ie,message:r,type:"",...MESSAGE_BOX_DEFAULT_OPTS[t]},V,{boxType:t}),oe)}}MessageBox.close=()=>{messageInstance.forEach((t,r)=>{r.doClose()}),messageInstance.clear()};MessageBox._context=null;const _MessageBox=MessageBox;_MessageBox.install=t=>{_MessageBox._context=t._context,t.config.globalProperties.$msgbox=_MessageBox,t.config.globalProperties.$messageBox=_MessageBox,t.config.globalProperties.$alert=_MessageBox.alert,t.config.globalProperties.$confirm=_MessageBox.confirm,t.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:Number}),notificationEmits={destroy:()=>!0},_hoisted_1$3=["id"],_hoisted_2$3=["textContent"],_hoisted_3$3={key:0},_hoisted_4$2=["innerHTML"],__default__=defineComponent({name:"ElNotification"}),_sfc_main$3=defineComponent({...__default__,props:notificationProps,emits:notificationEmits,setup(t,{expose:r}){const $=t,{ns:V,zIndex:oe}=useGlobalComponentSettings("notification"),{nextZIndex:ie,currentZIndex:le}=oe,{Close:ue}=CloseComponents,de=ref(!1);let pe;const he=computed(()=>{const Lt=$.type;return Lt&&TypeComponentsMap[$.type]?V.m(Lt):""}),_e=computed(()=>$.type&&TypeComponentsMap[$.type]||$.icon),$e=computed(()=>$.position.endsWith("right")?"right":"left"),Ie=computed(()=>$.position.startsWith("top")?"top":"bottom"),Ve=computed(()=>{var Lt;return{[Ie.value]:`${$.offset}px`,zIndex:(Lt=$.zIndex)!=null?Lt:le.value}});function Fe(){$.duration>0&&({stop:pe}=useTimeoutFn$1(()=>{de.value&&qe()},$.duration))}function Ue(){pe==null||pe()}function qe(){de.value=!1}function Et({code:Lt}){Lt===EVENT_CODE.delete||Lt===EVENT_CODE.backspace?Ue():Lt===EVENT_CODE.esc?de.value&&qe():Fe()}return onMounted(()=>{Fe(),ie(),de.value=!0}),useEventListener$1(document,"keydown",Et),r({visible:de,close:qe}),(Lt,hn)=>(openBlock(),createBlock(Transition,{name:unref(V).b("fade"),onBeforeLeave:Lt.onClose,onAfterLeave:hn[1]||(hn[1]=Cn=>Lt.$emit("destroy")),persisted:""},{default:withCtx(()=>[withDirectives(createBaseVNode("div",{id:Lt.id,class:normalizeClass([unref(V).b(),Lt.customClass,unref($e)]),style:normalizeStyle$1(unref(Ve)),role:"alert",onMouseenter:Ue,onMouseleave:Fe,onClick:hn[0]||(hn[0]=(...Cn)=>Lt.onClick&&Lt.onClick(...Cn))},[unref(_e)?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass([unref(V).e("icon"),unref(he)])},{default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(unref(_e))))]),_:1},8,["class"])):createCommentVNode("v-if",!0),createBaseVNode("div",{class:normalizeClass(unref(V).e("group"))},[createBaseVNode("h2",{class:normalizeClass(unref(V).e("title")),textContent:toDisplayString$1(Lt.title)},null,10,_hoisted_2$3),withDirectives(createBaseVNode("div",{class:normalizeClass(unref(V).e("content")),style:normalizeStyle$1(Lt.title?void 0:{margin:0})},[renderSlot(Lt.$slots,"default",{},()=>[Lt.dangerouslyUseHTMLString?(openBlock(),createElementBlock(Fragment,{key:1},[createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),createBaseVNode("p",{innerHTML:Lt.message},null,8,_hoisted_4$2)],2112)):(openBlock(),createElementBlock("p",_hoisted_3$3,toDisplayString$1(Lt.message),1))])],6),[[vShow,Lt.message]]),Lt.showClose?(openBlock(),createBlock(unref(ElIcon),{key:0,class:normalizeClass(unref(V).e("closeBtn")),onClick:withModifiers(qe,["stop"])},{default:withCtx(()=>[createVNode(unref(ue))]),_:1},8,["class","onClick"])):createCommentVNode("v-if",!0)],2)],46,_hoisted_1$3),[[vShow,de.value]])]),_:3},8,["name","onBeforeLeave"]))}});var NotificationConstructor=_export_sfc$1(_sfc_main$3,[["__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(t={},r=null){if(!isClient$1)return{close:()=>{}};(typeof t=="string"||isVNode$1(t))&&(t={message:t});const $=t.position||"top-right";let V=t.offset||0;notifications[$].forEach(({vm:he})=>{var _e;V+=(((_e=he.el)==null?void 0:_e.offsetHeight)||0)+GAP_SIZE}),V+=GAP_SIZE;const oe=`notification_${seed++}`,ie=t.onClose,le={...t,offset:V,id:oe,onClose:()=>{close(oe,$,ie)}};let ue=document.body;isElement$2(t.appendTo)?ue=t.appendTo:isString$6(t.appendTo)&&(ue=document.querySelector(t.appendTo)),isElement$2(ue)||(ue=document.body);const de=document.createElement("div"),pe=createVNode(NotificationConstructor,le,isVNode$1(le.message)?{default:()=>le.message}:null);return pe.appContext=r??notify._context,pe.props.onDestroy=()=>{render$4(null,de)},render$4(pe,de),notifications[$].push({vm:pe}),ue.appendChild(de.firstElementChild),{close:()=>{pe.component.exposed.visible.value=!1}}};notificationTypes.forEach(t=>{notify[t]=(r={})=>((typeof r=="string"||isVNode$1(r))&&(r={message:r}),notify({...r,type:t}))});function close(t,r,$){const V=notifications[r],oe=V.findIndex(({vm:pe})=>{var he;return((he=pe.component)==null?void 0:he.props.id)===t});if(oe===-1)return;const{vm:ie}=V[oe];if(!ie)return;$==null||$(ie);const le=ie.el.offsetHeight,ue=r.split("-")[0];V.splice(oe,1);const de=V.length;if(!(de<1))for(let pe=oe;pe{r.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]);/*! Element Plus v2.3.14 */var en$1={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"}}},ct=Object.defineProperty,Rt=Object.getOwnPropertyDescriptor,kt=Object.getOwnPropertyNames,Dt=Object.prototype.hasOwnProperty,It=(t,r)=>{for(var $ in r)ct(t,$,{get:r[$],enumerable:!0})},at=(t,r,$,V)=>{if(r&&typeof r=="object"||typeof r=="function")for(let oe of kt(r))!Dt.call(t,oe)&&oe!==$&&ct(t,oe,{get:()=>r[oe],enumerable:!(V=Rt(r,oe))||V.enumerable});return t},et=(t,r,$)=>(at(t,r,"default"),$&&at($,r,"default")),$t$1=Object.prototype.toString;function L$1(t,r){return $t$1.call(t)===`[object ${r}]`}function D$1(t){return t!==null&&L$1(t,"Object")}function R(t){return typeof t<"u"}function lt$1(t){return!R(t)}function ft(t){return t===null}function Pt(t){return ft(t)||lt$1(t)}function Ut(t){return I$1(t)||A(t)?t.length===0:t instanceof Map||t instanceof Set?t.size===0:D$1(t)?Object.keys(t).length===0:!1}function k(t){return!!(Ut(t)||Pt(t))}function F(t){return L$1(t,"Number")}function A(t){return L$1(t,"String")}function Y(t){return typeof t=="function"}function xe$1(t){return L$1(t,"Boolean")}function I$1(t){return t&&Array.isArray(t)}var nt=typeof window>"u",rt$1=!nt;function pt(t){let r="^((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,5})?((/?)|(/[0-9a-z_!~*'().;?:@&=+$,%#-]+)+/?)$";return new RegExp(r,"ig").test(t)}function Le(t){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(t)}function Oe$1(t){return/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(t)}function dt(t){let r=t.split(","),$=r[0].match(/:(.*?);/)[1],V=window.atob(r[1]),oe=V.length,ie=new Uint8Array(oe);for(;oe--;)ie[oe]=V.charCodeAt(oe);return new Blob([ie],{type:$})}function gt(t,r,$){return new Promise((V,oe)=>{let ie=document.createElement("CANVAS"),le=ie.getContext("2d"),ue=new Image;ue.crossOrigin="",ue.onload=function(){if(!ie||!le)return oe();ie.height=ue.height,ie.width=ue.width,le.drawImage(ue,0,0);let de=ie.toDataURL(r||"image/png",$);ie=null,V(de)},ue.src=t})}var z=(t,r)=>!!(t!=null&&t.className.match(new RegExp("(\\s|^)"+r+"(\\s|$)"))),Ge=(t,r,$)=>{z(t,r)||(t.className+=" "+r),$&&!z(t,$)&&(t.className+=" "+$)},Qe=(t,r,$)=>{if(z(t,r)){let V=new RegExp("(\\s|^)"+r+"(\\s|$)");t.className=t.className.replace(V," ").trim()}if($&&z(t,$)){let V=new RegExp("(\\s|^)"+$+"(\\s|$)");t.className=t.className.replace(V," ").trim()}},Je=(t,r,$)=>{let V=$||document.body,{className:oe}=V,ie=oe.replace(r,"").trim().split(/\s+/).join(" ");V.className=t?`${ie} ${r}`:ie},Ft=Object.prototype.toString;function Ht(t,r){return t&&t.hasOwnProperty?t.hasOwnProperty(r):!1}function Nt(t,r,$){if(t)if(t.forEach)t.forEach(r,$);else for(let V=0,oe=t.length;V{let r=(t==null?void 0:t.type)??"rgb",$=(t==null?void 0:t.num)??0;if($===0)switch(r){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(r){case"rgb":let V=[];for(let le=0;le<$;le++)V.push(window.crypto.getRandomValues(new Uint8Array(3)).toString());return V;case"hex":let oe=[];for(let le=0;le<$;le++)oe.push(`#${Math.floor(Math.random()*16777215).toString(16).padStart(6,`${Math.random()*10}`)}`);return oe;case"hsl":let ie=[];for(let le=0;le<$;le++)ie.push([360*Math.random(),`${100*Math.random()}%`,`${100*Math.random()}%`].toString());return ie}},vn=(t,r)=>{if(t==0)return"0 Bytes";let $=1024,V=r||2,oe=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],ie=Math.floor(Math.log(t)/Math.log($));return parseFloat((t/Math.pow($,ie)).toFixed(V))+" "+oe[ie]};function On(t,r=!0){let $=le=>(le=Math.floor(le),le<10&&r?`0${le}`:le),V=$(t/3600),oe=$(t%3600/60),ie=$(t%60);return{h:V,m:oe,s:ie}}var P$1=(t=20)=>new Promise(r=>setTimeout(r,t)),Tt=(t,r=200,$=!1)=>{let V,oe=r,ie;return function(){V&&clearTimeout(V),$?(V||t.call(ie,...arguments),V=setTimeout(()=>V=null,oe)):V=setTimeout(()=>t.call(ie,...arguments),oe)}},kn=(t,r=1e3)=>{let $;return function(){$||($=setTimeout(()=>{t.call(void 0,...arguments),$=null},r))}},In=()=>{let t=navigator.userAgent.toLowerCase(),r=t.match(/midp/i)=="midp",$=t.match(/ucweb/i)=="ucweb",V=t.match(/android/i)=="android",oe=t.match(/iphone os/i)=="iphone os",ie=t.match(/windows ce/i)=="windows ce",le=t.match(/rv:1.2.3.4/i)=="rv:1.2.3.4",ue=t.match(/windows mobile/i)=="windows mobile";return r||$||V||oe||ie||le||ue},vt=(t,r="_blank")=>{let $=document.createElement("a");$.setAttribute("href",t),$.setAttribute("target",r),$.setAttribute("rel","noreferrer noopener"),$.setAttribute("id","external");let V=document.getElementById("external");V&&document.body.removeChild(V),document.body.appendChild($),$.click(),$.remove()};function Hn(t,r,$,V){gt(t).then(oe=>{zt(oe,r,$,V)})}function zt(t,r,$,V){let oe=dt(t);_t(oe,r,$,V)}function _t(t,r,$,V){let oe=typeof V<"u"?[V,t]:[t],ie=new Blob(oe,{type:$||"application/octet-stream"}),le=window.URL.createObjectURL(ie),ue=document.createElement("a");ue.style.display="none",ue.href=le,ue.setAttribute("download",r),typeof ue.download>"u"&&ue.setAttribute("target","_blank"),document.body.appendChild(ue),ue.click(),document.body.removeChild(ue),window.URL.revokeObjectURL(le)}function Nn(t,r,$="_self"){let V=window.navigator.userAgent.toLowerCase().indexOf("chrome")>-1,oe=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(V||oe){let ie=document.createElement("a");if(ie.href=t,ie.target=$,ie.download!==void 0&&(ie.download=r||t.substring(t.lastIndexOf("/")+1,t.length)),document.createEvent){let le=document.createEvent("MouseEvents");return le.initEvent("click",!0,!0),ie.dispatchEvent(le),!0}}return t.indexOf("?")===-1&&(t+="?download"),vt(t,$),!0}function Mt(t,r){if(t===r)return!0;if(typeof t!="object"||typeof r!="object"||t==null||r==null)return!1;let $=Object.keys(t),V=Object.keys(r);if($.length!==V.length)return!1;for(let oe of $)if(!V.includes(oe)||!Mt(t[oe],r[oe]))return!1;return!0}function Wt(t,r){if(!t||!r)return!1;let{length:$}=t;if($!==r.length)return!1;for(let V=0;V<$;V++)if(!Xt(t[V],r[V]))return!1;return!0}function Xt(t,r){let $=Object.prototype.toString.call(t);return $!==Object.prototype.toString.call(r)?!1:$==="[object Object]"?Mt(t,r):$==="[object Array]"?Wt(t,r):$==="[object Function]"?t===r?!0:t.toString()===r.toString():t===r}var _n=(t,r)=>{if(t.install=$=>{for(let V of[t,...Object.values(r??{})])$.component(V.name,V)},r)for(let[$,V]of Object.entries(r))t[$]=V;return t},H=class{constructor(t){ao(this,"storage");this.storage=t}setItem(t,r){k(this.storage)||this.storage.setItem(t,JSON.stringify(r))}getItem(t){if(!k(this.storage))return JSON.parse(this.storage.getItem(t))}removeItem(t){k(this.storage)||this.storage.removeItem(t)}clear(){k(this.storage)||this.storage.clear()}},Q=class extends H{constructor(t){super(t)}},rr=()=>rt$1?new Q(window.localStorage):new Q("");function Vt(t,r){return A(r)?t.substring(0,t.indexOf(r)):""}function Zt(t,r){return A(r)?t.substring(t.lastIndexOf(r)+r.length,t.length):""}function fr(t,r,$="*"){F(t)&&(t=t.toString()),I$1(r)||(r=Array.of(r));let V=t.split("");for(let oe=0;oe=0&&le=0&&(V[r[oe]]=$)}return V.join("")}function yr(t){if(!pt(t))return console.error(`${t}不符合超链接规范`),{};let r=t.indexOf("?"),$=t.slice(r+1).split("&"),V={};for(let oe=0;oe<$.length;oe++)V[$[oe].split("=")[0]]=$[oe].split("=")[1];return V}function vr(t,r){return t.every($=>r.some(V=>V===$))}var Mr=(...t)=>[...t].reduce((r,$)=>r.filter(V=>$.includes(V)));function Ar(t,r){let $=[];for(let V of t)V[r]&&$.push(V[r]);return Array.from(new Set($))}var a$1={};It(a$1,{Vue:()=>vue_runtime_esmBundler});et(a$1,vue_runtime_esmBundler);function se(t,{target:r=document.body}={}){let $=document.createElement("textarea"),V=document.activeElement;$.value=t,$.setAttribute("readonly",""),$.style.contain="strict",$.style.position="absolute",$.style.left="-9999px",$.style.fontSize="12pt";let oe=document.getSelection(),ie;oe&&oe.rangeCount>0&&(ie=oe.getRangeAt(0)),r.append($),$.select(),$.selectionStart=0,$.selectionEnd=t.length;let le=!1;try{le=document.execCommand("copy")}catch(ue){throw new Error(ue)}return $.remove(),ie&&oe&&(oe.removeAllRanges(),oe.addRange(ie)),V&&V.focus(),le}function O(t){(0,a$1.getCurrentInstance)()&&(0,a$1.onUnmounted)(t)}var qr=()=>{let t=(0,a$1.shallowRef)(!1),r,$=()=>{t.value=document.documentElement.classList.contains("dark")};return O(()=>{r.takeRecords(),r.disconnect()}),(0,a$1.onBeforeMount)(()=>{$(),r=new MutationObserver($),r.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:t}};function At(){let{appContext:{config:{globalProperties:t}}}=(0,a$1.getCurrentInstance)();return t}var eo=(t,r)=>{let $=(r==null?void 0:r.theme)??(0,a$1.ref)("default"),V=(r==null?void 0:r.tooltipId)??"tooltipElement",oe=At().$echarts,ie=null,le=(0,a$1.ref)({}),ue=(0,a$1.ref)(),de=(0,a$1.computed)(()=>$.value!=="dark"?le.value:{backgroundColor:"transparent",...le.value});function pe(wn){let $n=(0,a$1.unref)(t);!$n||!(0,a$1.unref)($n)||(ie=oe.init($n,wn))}function he(wn,...$n){var Tn;if(le.value=wn,ue.value=$n,((Tn=(0,a$1.unref)(t))==null?void 0:Tn.offsetHeight)===0){P$1().then(()=>he((0,a$1.unref)(de),...$n));return}(0,a$1.nextTick)(()=>{P$1().then(()=>{!ie&&pe($.value),(wn.clear??!0)&&_e(),ie==null||ie.setOption((0,a$1.unref)(de)),$n&&$n.map(xn=>{(xn==null?void 0:xn.type)!=="zrender"&&typeof(xn==null?void 0:xn.callback)=="function"&&(ie==null||ie.on(xn==null?void 0:xn.name,xn!=null&&xn.query?xn==null?void 0:xn.query:"",An=>{xn==null||xn.callback(An)})),(xn==null?void 0:xn.type)==="zrender"&&typeof(xn==null?void 0:xn.callback)=="function"&&(ie==null||ie.getZr().on(xn==null?void 0:xn.name,An=>{An.target||(xn==null||xn.callback(An))}))}),wn!=null&&wn.addTooltip&&Sn(wn.addTooltip)})})}function _e(){ie&&ie.clear()}function $e(){ie.resize()}function Ie(wn){let $n=(wn==null?void 0:wn.type)??"default",Tn=(wn==null?void 0:wn.opts)??{};ie.showLoading($n,Tn)}function Ve(){ie.hideLoading()}function Fe(wn){ie.appendData(wn)}function Ue(){return ie.getWidth()}function qe(){return ie.getHeight()}function Et(){return ie||pe($.value),ie}function Lt(){return ie.getDom()}function hn(){return ie.getOption()}function Cn(wn){return ie.getDataURL(wn)}function bn(wn){return ie.getConnectedDataURL(wn)}function Sn(wn){if(!wn)return;let $n=document.querySelector("html");if(!document.getElementById(V)){let An=document.createElement("div");An.setAttribute("id",V),An.style.display="block",$n.appendChild(An)}let Tn=document.querySelector(`#${V}`),xn=An=>{if((An==null?void 0:An.targetType)!=="axisLabel")return;let Mn=` 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; `;Tn.style.cssText=Mn,Tn.innerHTML=An==null?void 0:An.value,$n.onmousemove=Vn=>{let Bn=Vn.pageX-10,Dn=Vn.pageY+15;Tn.style.top=Dn+"px",Tn.style.left=Bn+"px"}};ie==null||ie.on("mouseover",An=>{(wn==="x"&&An.componentType=="xAxis"||wn==="y"&&An.componentType=="yAxis"||wn.toString()==="true"&&An.componentType.includes("Axis"))&&xn(An)}),ie==null||ie.on("mouseout",()=>{$n.onmousemove=null,Tn.style.cssText="display:none"})}(0,a$1.watch)(()=>$.value,wn=>{ie&&(ie.dispose(),pe(wn),he(le.value,...ue.value))});function En(){var wn;ie&&P$1(((wn=le.value)==null?void 0:wn.delay)??300).then(()=>{$e()})}return(0,a$1.onMounted)(()=>{(0,a$1.nextTick)(()=>{window.addEventListener("resize",En)})}),O(()=>{var wn;window.removeEventListener("resize",En),ie&&(ie.dispose(),ie=null,(wn=document.querySelector(`#${V}`))==null||wn.remove())}),{echarts:oe,clear:_e,resize:$e,getDom:Lt,getWidth:Ue,getOption:hn,getHeight:qe,addTooltip:Sn,getDataURL:Cn,setOptions:he,appendData:Fe,getInstance:Et,showLoading:Ie,hideLoading:Ve,getConnectedDataURL:bn}},N=665,j$2=665;function oo(t=!0){let r,$;function V(ie){var le;return document.querySelector(`#pure-utils-css-${N}`)&&((le=document.querySelector(`#pure-utils-css-${N}`))==null||le.remove()),N+=1,new Promise((ue,de)=>{r=document.createElement("link"),r.id=`pure-utils-css-${N}`,r.rel="stylesheet",r.onload=function(){ue("success")},r.onerror=function(pe){de(pe)},r.href=ie.src,document[(ie==null?void 0:ie.carrier)??"head"].appendChild(r)})}function oe(ie){var le;return document.querySelector(`#pure-utils-script-${j$2}`)&&((le=document.querySelector(`#pure-utils-script-${j$2}`))==null||le.remove()),j$2+=1,new Promise((ue,de)=>{$=document.createElement("script"),$.id=`pure-utils-script-${j$2}`,$.type="text/javascript",$.onload=function(){ue("success")},$.onerror=function(pe){de(pe)},$.src=ie.src,document[(ie==null?void 0:ie.carrier)??"head"].appendChild($)})}return O(()=>{t&&(r&&(r==null||r.remove()),$&&($==null||$.remove()),N=665,j$2=665)}),{loadCss:V,loadScript:oe}}var ae=Symbol("watermark-dom"),go=(t=(0,a$1.ref)(document.body))=>{let r=ae.toString(),$=(0,a$1.shallowRef)(),V=()=>{let _e=(0,a$1.unref)($);$.value=void 0;let $e=(0,a$1.unref)(t);$e&&_e&&$e.removeChild(_e)};function oe(_e,$e){let Ie=document.createElement("canvas"),Ve=($e==null?void 0:$e.width)??250,Fe=($e==null?void 0:$e.height)??100;Object.assign(Ie,{width:Ve,height:Fe});let Ue=Ie.getContext("2d");if(Ue){if(Ue.rotate((($e==null?void 0:$e.rotate)??-10*Math.PI)/120),Ue.font=($e==null?void 0:$e.font)??"15px Reggae One",($e==null?void 0:$e.gradient)&&I$1($e==null?void 0:$e.gradient)){let qe=Ue.createLinearGradient(0,0,Ve,0);$e==null||$e.gradient.forEach(Et=>{qe.addColorStop(Et.value,Et.color)}),Ue.fillStyle=qe}else Ue.fillStyle=($e==null?void 0:$e.fillStyle)??"rgba(0, 0, 0, 0.15)";if(Ue.textAlign="left",Ue.textBaseline="middle",$e!=null&&$e.globalAlpha&&(Ue.globalAlpha=$e.globalAlpha),$e==null?void 0:$e.shadowConfig){let{shadowConfig:qe}=$e;Ue.shadowBlur=qe[0],Ue.shadowColor=(qe==null?void 0:qe[1])??"#000000",Ue.shadowOffsetX=(qe==null?void 0:qe[2])??0,Ue.shadowOffsetY=(qe==null?void 0:qe[3])??0}Ue.fillText(_e,Ve/(($e==null?void 0:$e.fillTextWidth)??20),Fe/(($e==null?void 0:$e.fillTextHeight)??2))}return Ie.toDataURL("image/png")}function ie(_e={}){let $e=(0,a$1.unref)($);$e&&(R(_e.width)&&($e.style.width=`${_e.width}px`),R(_e.height)&&($e.style.height=`${_e.height}px`),R(_e.str)&&($e.style.background=`url(${oe(_e.str,_e.attr)}) left top repeat`))}let le=Tt(()=>{let _e=(0,a$1.unref)(t);if(!_e)return;let{clientHeight:$e,clientWidth:Ie}=_e;ie({height:$e,width:Ie})}),ue=(_e,$e)=>{var qe;if((0,a$1.unref)($))return ie({str:_e,attr:$e}),r;let Ie=document.createElement("div");$.value=Ie,Ie.id=r,Ie.style.pointerEvents="none",Ie.style.top="0px",Ie.style.left="0px",Ie.style.position="absolute",Ie.style.zIndex=($e==null?void 0:$e.zIndex)??"100000";let Ve=(0,a$1.unref)(t);if(!Ve)return r;let{clientHeight:Fe,clientWidth:Ue}=Ve;return ie({str:_e,width:Ue,height:Fe,attr:$e}),(qe=Ve==null?void 0:Ve.style)!=null&&qe.position||(Ve.style.position="relative"),Ve.appendChild(Ie),r};function de(_e,{str:$e,attr:Ie}){_e[0].removedNodes[0]&&_e[0].removedNodes[0].id===r&&($.value=void 0,ue($e,Ie))}function pe(_e,$e){let Ie={childList:!0,attributes:!0,characterData:!0,subtree:!0};new MutationObserver(Ve=>de(Ve,{str:_e,attr:$e})).observe((0,a$1.unref)(t),Ie)}function he(_e,$e){ue(_e,$e),window.addEventListener("resize",le),$e!=null&&$e.forever&&pe(_e,$e),(0,a$1.getCurrentInstance)()&&V&&V()}return O(()=>{window.removeEventListener("resize",le)}),{clear:V,setWatermark:he}};const data$2={width:24,height:24,body:''},data$1={width:24,height:24,body:''},_hoisted_1$2={key:0,class:"flex items-center justify-between"},_hoisted_2$2=["id"],_hoisted_3$2={key:1},_sfc_main$2=defineComponent({__name:"index",setup(t){const r=ref(!1),$=computed(()=>le=>{var ue;return((ue=le==null?void 0:le.footerButtons)==null?void 0:ue.length)>0?le.footerButtons:[{label:"取消",text:!0,bg:!0,btnClick:({dialog:{options:de,index:pe}})=>{const he=()=>closeDialog(de,pe,{command:"cancel"});de!=null&&de.beforeCancel&&Y(de==null?void 0:de.beforeCancel)?de.beforeCancel(he,{options:de,index:pe}):he()}},{label:"确定",type:"primary",text:!0,bg:!0,btnClick:({dialog:{options:de,index:pe}})=>{const he=()=>closeDialog(de,pe,{command:"sure"});de!=null&&de.beforeSure&&Y(de==null?void 0:de.beforeSure)?de.beforeSure(he,{options:de,index:pe}):he()}}]}),V=computed(()=>["el-icon","el-dialog__close","-translate-x-2","cursor-pointer","hover:!text-[red]"]);function oe(le,ue,de){if(r.value=(ue==null?void 0:ue.fullscreen)??!1,ue!=null&&ue[le]&&Y(ue==null?void 0:ue[le]))return ue==null?void 0:ue[le]({options:ue,index:de})}function ie(le,ue,de={command:"close"}){closeDialog(le,ue,de),oe("close",le,ue)}return(le,ue)=>{const de=resolveComponent("IconifyIconOffline"),pe=resolveComponent("el-button"),he=resolveComponent("el-dialog");return openBlock(!0),createElementBlock(Fragment,null,renderList(unref(dialogStore),(_e,$e)=>(openBlock(),createBlock(he,mergeProps({class:"pure-dialog",key:$e},_e,{modelValue:_e.visible,"onUpdate:modelValue":Ie=>_e.visible=Ie,fullscreen:r.value?!0:!!(_e!=null&&_e.fullscreen),onClose:Ie=>ie(_e,$e),onOpened:Ie=>oe("open",_e,$e),onOpenAutoFocus:Ie=>oe("openAutoFocus",_e,$e),onCloseAutoFocus:Ie=>oe("closeAutoFocus",_e,$e)}),createSlots({default:withCtx(()=>[(openBlock(),createBlock(resolveDynamicComponent(_e.contentRenderer({options:_e,index:$e})),mergeProps(_e==null?void 0:_e.props,{onClose:Ie=>ie(_e,$e,Ie)}),null,16,["onClose"]))]),_:2},[_e!=null&&_e.fullscreenIcon||_e!=null&&_e.headerRenderer?{name:"header",fn:withCtx(({close:Ie,titleId:Ve,titleClass:Fe})=>[_e!=null&&_e.fullscreenIcon?(openBlock(),createElementBlock("div",_hoisted_1$2,[createBaseVNode("span",{id:Ve,class:normalizeClass(Fe)},toDisplayString$1(_e==null?void 0:_e.title),11,_hoisted_2$2),_e!=null&&_e.fullscreen?createCommentVNode("",!0):(openBlock(),createElementBlock("i",{key:0,class:normalizeClass(V.value),onClick:ue[0]||(ue[0]=Ue=>r.value=!r.value)},[createVNode(de,{class:"pure-dialog-svg",icon:_e!=null&&_e.fullscreen||r.value?unref(data$1):unref(data$2)},null,8,["icon"])],2))])):(openBlock(),createBlock(resolveDynamicComponent(_e==null?void 0:_e.headerRenderer({close:Ie,titleId:Ve,titleClass:Fe})),{key:1}))]),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:$e})),{key:0})):(openBlock(),createElementBlock("span",_hoisted_3$2,[(openBlock(!0),createElementBlock(Fragment,null,renderList($.value(_e),(Ie,Ve)=>(openBlock(),createBlock(pe,mergeProps({key:Ve},Ie,{onClick:Fe=>Ie.btnClick({dialog:{options:_e,index:$e},button:{btn:Ie,index:Ve}})}),{default:withCtx(()=>[createTextVNode(toDisplayString$1(Ie==null?void 0:Ie.label),1)]),_:2},1040,["onClick"]))),128))]))]),key:"1"}]),1040,["modelValue","onUpdate:modelValue","fullscreen","onClose","onOpened","onOpenAutoFocus","onCloseAutoFocus"]))),128)}}});function tryOnScopeDispose(t){return getCurrentScope()?(onScopeDispose(t),!0):!1}function toValue(t){return typeof t=="function"?t():unref(t)}const isClient=typeof window<"u"&&typeof document<"u",isDef=t=>typeof t<"u",notNullish=t=>t!=null,toString$1=Object.prototype.toString,isObject$8=t=>toString$1.call(t)==="[object Object]",noop$4=()=>{},isIOS=getIsIOS();function getIsIOS(){var t;return isClient&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function createFilterWrapper(t,r){function $(...V){return new Promise((oe,ie)=>{Promise.resolve(t(()=>r.apply(this,V),{fn:r,thisArg:this,args:V})).then(oe).catch(ie)})}return $}function debounceFilter(t,r={}){let $,V,oe=noop$4;const ie=ue=>{clearTimeout(ue),oe(),oe=noop$4};return ue=>{const de=toValue(t),pe=toValue(r.maxWait);return $&&ie($),de<=0||pe!==void 0&&pe<=0?(V&&(ie(V),V=null),Promise.resolve(ue())):new Promise((he,_e)=>{oe=r.rejectOnCancel?_e:he,pe&&!V&&(V=setTimeout(()=>{$&&ie($),V=null,he(ue())},pe)),$=setTimeout(()=>{V&&ie(V),V=null,he(ue())},de)})}}function useDebounceFn(t,r=200,$={}){return createFilterWrapper(debounceFilter(r,$),t)}function tryOnMounted(t,r=!0){getCurrentInstance()?onMounted(t):r?t():nextTick(t)}function tryOnUnmounted(t){getCurrentInstance()&&onUnmounted(t)}function useIntervalFn(t,r=1e3,$={}){const{immediate:V=!0,immediateCallback:oe=!1}=$;let ie=null;const le=ref(!1);function ue(){ie&&(clearInterval(ie),ie=null)}function de(){le.value=!1,ue()}function pe(){const he=toValue(r);he<=0||(le.value=!0,oe&&t(),ue(),ie=setInterval(t,he))}if(V&&isClient&&pe(),isRef(r)||typeof r=="function"){const he=watch(r,()=>{le.value&&isClient&&pe()});tryOnScopeDispose(he)}return tryOnScopeDispose(de),{isActive:le,pause:de,resume:pe}}function useTimeoutFn(t,r,$={}){const{immediate:V=!0}=$,oe=ref(!1);let ie=null;function le(){ie&&(clearTimeout(ie),ie=null)}function ue(){oe.value=!1,le()}function de(...pe){le(),oe.value=!0,ie=setTimeout(()=>{oe.value=!1,ie=null,t(...pe)},toValue(r))}return V&&(oe.value=!0,isClient&&de()),tryOnScopeDispose(ue),{isPending:readonly(oe),start:de,stop:ue}}function unrefElement(t){var r;const $=toValue(t);return(r=$==null?void 0:$.$el)!=null?r:$}const defaultWindow=isClient?window:void 0,defaultDocument=isClient?window.document:void 0;function useEventListener(...t){let r,$,V,oe;if(typeof t[0]=="string"||Array.isArray(t[0])?([$,V,oe]=t,r=defaultWindow):[r,$,V,oe]=t,!r)return noop$4;Array.isArray($)||($=[$]),Array.isArray(V)||(V=[V]);const ie=[],le=()=>{ie.forEach(he=>he()),ie.length=0},ue=(he,_e,$e,Ie)=>(he.addEventListener(_e,$e,Ie),()=>he.removeEventListener(_e,$e,Ie)),de=watch(()=>[unrefElement(r),toValue(oe)],([he,_e])=>{if(le(),!he)return;const $e=isObject$8(_e)?{..._e}:_e;ie.push(...$.flatMap(Ie=>V.map(Ve=>ue(he,Ie,Ve,$e))))},{immediate:!0,flush:"post"}),pe=()=>{de(),le()};return tryOnScopeDispose(pe),pe}let _iOSWorkaround=!1;function onClickOutside(t,r,$={}){const{window:V=defaultWindow,ignore:oe=[],capture:ie=!0,detectIframe:le=!1}=$;if(!V)return;isIOS&&!_iOSWorkaround&&(_iOSWorkaround=!0,Array.from(V.document.body.children).forEach($e=>$e.addEventListener("click",noop$4)),V.document.documentElement.addEventListener("click",noop$4));let ue=!0;const de=$e=>oe.some(Ie=>{if(typeof Ie=="string")return Array.from(V.document.querySelectorAll(Ie)).some(Ve=>Ve===$e.target||$e.composedPath().includes(Ve));{const Ve=unrefElement(Ie);return Ve&&($e.target===Ve||$e.composedPath().includes(Ve))}}),he=[useEventListener(V,"click",$e=>{const Ie=unrefElement(t);if(!(!Ie||Ie===$e.target||$e.composedPath().includes(Ie))){if($e.detail===0&&(ue=!de($e)),!ue){ue=!0;return}r($e)}},{passive:!0,capture:ie}),useEventListener(V,"pointerdown",$e=>{const Ie=unrefElement(t);Ie&&(ue=!$e.composedPath().includes(Ie)&&!de($e))},{passive:!0}),le&&useEventListener(V,"blur",$e=>{setTimeout(()=>{var Ie;const Ve=unrefElement(t);((Ie=V.document.activeElement)==null?void 0:Ie.tagName)==="IFRAME"&&!(Ve!=null&&Ve.contains(V.document.activeElement))&&r($e)},0)})].filter(Boolean);return()=>he.forEach($e=>$e())}function createKeyPredicate(t){return typeof t=="function"?t:typeof t=="string"?r=>r.key===t:Array.isArray(t)?r=>t.includes(r.key):()=>!0}function onKeyStroke(...t){let r,$,V={};t.length===3?(r=t[0],$=t[1],V=t[2]):t.length===2?typeof t[1]=="object"?(r=!0,$=t[0],V=t[1]):(r=t[0],$=t[1]):(r=!0,$=t[0]);const{target:oe=defaultWindow,eventName:ie="keydown",passive:le=!1,dedupe:ue=!1}=V,de=createKeyPredicate(r);return useEventListener(oe,ie,he=>{he.repeat&&toValue(ue)||de(he)&&$(he)},le)}function templateRef(t,r=null){const $=getCurrentInstance();let V=()=>{};const oe=customRef((ie,le)=>(V=le,{get(){var ue,de;return ie(),(de=(ue=$==null?void 0:$.proxy)==null?void 0:ue.$refs[t])!=null?de:r},set(){}}));return tryOnMounted(V),onUpdated(V),oe}function useMounted(){const t=ref(!1);return getCurrentInstance()&&onMounted(()=>{t.value=!0}),t}function useSupported(t){const r=useMounted();return computed(()=>(r.value,!!t()))}function useMediaQuery(t,r={}){const{window:$=defaultWindow}=r,V=useSupported(()=>$&&"matchMedia"in $&&typeof $.matchMedia=="function");let oe;const ie=ref(!1),le=pe=>{ie.value=pe.matches},ue=()=>{oe&&("removeEventListener"in oe?oe.removeEventListener("change",le):oe.removeListener(le))},de=watchEffect(()=>{V.value&&(ue(),oe=$.matchMedia(toValue(t)),"addEventListener"in oe?oe.addEventListener("change",le):oe.addListener(le),ie.value=oe.matches)});return tryOnScopeDispose(()=>{de(),ue(),oe=void 0}),ie}function cloneFnJSON(t){return JSON.parse(JSON.stringify(t))}function useResizeObserver(t,r,$={}){const{window:V=defaultWindow,...oe}=$;let ie;const le=useSupported(()=>V&&"ResizeObserver"in V),ue=()=>{ie&&(ie.disconnect(),ie=void 0)},de=computed(()=>Array.isArray(t)?t.map(_e=>unrefElement(_e)):[unrefElement(t)]),pe=watch(de,_e=>{if(ue(),le.value&&V){ie=new ResizeObserver(r);for(const $e of _e)$e&&ie.observe($e,oe)}},{immediate:!0,flush:"post",deep:!0}),he=()=>{ue(),pe()};return tryOnScopeDispose(he),{isSupported:le,stop:he}}function useIntersectionObserver(t,r,$={}){const{root:V,rootMargin:oe="0px",threshold:ie=.1,window:le=defaultWindow,immediate:ue=!0}=$,de=useSupported(()=>le&&"IntersectionObserver"in le),pe=computed(()=>{const Ve=toValue(t);return(Array.isArray(Ve)?Ve:[Ve]).map(unrefElement).filter(notNullish)});let he=noop$4;const _e=ref(ue),$e=de.value?watch(()=>[pe.value,unrefElement(V),_e.value],([Ve,Fe])=>{if(he(),!_e.value||!Ve.length)return;const Ue=new IntersectionObserver(r,{root:unrefElement(Fe),rootMargin:oe,threshold:ie});Ve.forEach(qe=>qe&&Ue.observe(qe)),he=()=>{Ue.disconnect(),he=noop$4}},{immediate:ue,flush:"post"}):noop$4,Ie=()=>{he(),$e(),_e.value=!1};return tryOnScopeDispose(Ie),{isSupported:de,isActive:_e,pause(){he(),_e.value=!1},resume(){_e.value=!0},stop:Ie}}const eventHandlers=["fullscreenchange","webkitfullscreenchange","webkitendfullscreen","mozfullscreenchange","MSFullscreenChange"];function useFullscreen(t,r={}){const{document:$=defaultDocument,autoExit:V=!1}=r,oe=computed(()=>{var qe;return(qe=unrefElement(t))!=null?qe:$==null?void 0:$.querySelector("html")}),ie=ref(!1),le=computed(()=>["requestFullscreen","webkitRequestFullscreen","webkitEnterFullscreen","webkitEnterFullScreen","webkitRequestFullScreen","mozRequestFullScreen","msRequestFullscreen"].find(qe=>$&&qe in $||oe.value&&qe in oe.value)),ue=computed(()=>["exitFullscreen","webkitExitFullscreen","webkitExitFullScreen","webkitCancelFullScreen","mozCancelFullScreen","msExitFullscreen"].find(qe=>$&&qe in $||oe.value&&qe in oe.value)),de=computed(()=>["fullScreen","webkitIsFullScreen","webkitDisplayingFullscreen","mozFullScreen","msFullscreenElement"].find(qe=>$&&qe in $||oe.value&&qe in oe.value)),pe=["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"].find(qe=>$&&qe in $),he=useSupported(()=>oe.value&&$&&le.value!==void 0&&ue.value!==void 0&&de.value!==void 0),_e=()=>pe?($==null?void 0:$[pe])===oe.value:!1,$e=()=>{if(de.value){if($&&$[de.value]!=null)return $[de.value];{const qe=oe.value;if((qe==null?void 0:qe[de.value])!=null)return!!qe[de.value]}}return!1};async function Ie(){if(!(!he.value||!ie.value)){if(ue.value)if(($==null?void 0:$[ue.value])!=null)await $[ue.value]();else{const qe=oe.value;(qe==null?void 0:qe[ue.value])!=null&&await qe[ue.value]()}ie.value=!1}}async function Ve(){if(!he.value||ie.value)return;$e()&&await Ie();const qe=oe.value;le.value&&(qe==null?void 0:qe[le.value])!=null&&(await qe[le.value](),ie.value=!0)}async function Fe(){await(ie.value?Ie():Ve())}const Ue=()=>{const qe=$e();(!qe||qe&&_e())&&(ie.value=qe)};return useEventListener($,eventHandlers,Ue,!1),useEventListener(()=>unrefElement(oe),eventHandlers,Ue,!1),V&&tryOnScopeDispose(Ie),{isSupported:he,isFullscreen:ie,enter:Ve,exit:Ie,toggle:Fe}}function useVModel(t,r,$,V={}){var oe,ie,le;const{clone:ue=!1,passive:de=!1,eventName:pe,deep:he=!1,defaultValue:_e,shouldEmit:$e}=V,Ie=getCurrentInstance(),Ve=$||(Ie==null?void 0:Ie.emit)||((oe=Ie==null?void 0:Ie.$emit)==null?void 0:oe.bind(Ie))||((le=(ie=Ie==null?void 0:Ie.proxy)==null?void 0:ie.$emit)==null?void 0:le.bind(Ie==null?void 0:Ie.proxy));let Fe=pe;r||(r="modelValue"),Fe=Fe||`update:${r.toString()}`;const Ue=Lt=>ue?typeof ue=="function"?ue(Lt):cloneFnJSON(Lt):Lt,qe=()=>isDef(t[r])?Ue(t[r]):_e,Et=Lt=>{$e?$e(Lt)&&Ve(Fe,Lt):Ve(Fe,Lt)};if(de){const Lt=qe(),hn=ref(Lt);let Cn=!1;return watch(()=>t[r],bn=>{Cn||(Cn=!0,hn.value=Ue(bn),nextTick(()=>Cn=!1))}),watch(hn,bn=>{!Cn&&(bn!==t[r]||he)&&Et(bn)},{deep:he}),hn}else return computed({get(){return qe()},set(Lt){Et(Lt)}})}function useWindowSize(t={}){const{window:r=defaultWindow,initialWidth:$=Number.POSITIVE_INFINITY,initialHeight:V=Number.POSITIVE_INFINITY,listenOrientation:oe=!0,includeScrollbar:ie=!0}=t,le=ref($),ue=ref(V),de=()=>{r&&(ie?(le.value=r.innerWidth,ue.value=r.innerHeight):(le.value=r.document.documentElement.clientWidth,ue.value=r.document.documentElement.clientHeight))};if(de(),tryOnMounted(de),useEventListener("resize",de,{passive:!0}),oe){const pe=useMediaQuery("(orientation: portrait)");watch(pe,()=>de())}return{width:le,height:ue}}const dialogStore=ref([]),addDialog=t=>{const r=()=>dialogStore.value.push(Object.assign(t,{visible:!0}));t!=null&&t.openDelay?useTimeoutFn(()=>{r()},t.openDelay):r()},closeDialog=(t,r,$)=>{dialogStore.value.splice(r,1),t.closeCallBack&&t.closeCallBack({options:t,index:r,args:$})},updateDialog=(t,r="title",$=0)=>{dialogStore.value[$][r]=t},closeAllDialog=()=>{dialogStore.value=[]},ReDialog=_n(_sfc_main$2);/*! Element Plus v2.3.14 */var zhCn={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:"取消"}}};const _sfc_main$1=defineComponent({name:"app",components:{[ElConfigProvider.name]:ElConfigProvider,ReDialog},computed:{currentLocale(){var t;return((t=this.$storage.locale)==null?void 0:t.locale)==="zh"?zhCn:en$1}},beforeCreate(){const{version:t,name:r}={dependencies:{"@amap/amap-jsapi-loader":"^1.0.1","@howdyjs/mouse-menu":"^2.0.9","@logicflow/core":"^1.2.15","@logicflow/extension":"^1.2.16","@pureadmin/descriptions":"^1.1.1","@pureadmin/table":"^2.3.3","@pureadmin/utils":"^1.9.10","@vueuse/core":"^10.4.1","@vueuse/motion":"^2.0.0","@wangeditor/editor":"^5.1.23","@wangeditor/editor-for-vue":"^5.1.12","@zxcvbn-ts/core":"^3.0.4","animate.css":"^4.1.1",axios:"^1.5.1","china-area-data":"^5.0.1",cropperjs:"^1.6.1",dayjs:"^1.11.10",echarts:"^5.4.3","el-table-infinite-scroll":"^3.0.3","element-plus":"^2.3.14","intro.js":"^7.2.0","js-cookie":"^3.0.5",jsbarcode:"^3.11.5",localforage:"^1.10.0","md-editor-v3":"2.7.2","mint-filter":"^4.0.3",mitt:"^3.0.1",mockjs:"^1.1.0",nprogress:"^0.2.0",path:"^0.12.7",pinia:"^2.1.6","pinyin-pro":"^3.16.7",qrcode:"^1.5.3",qs:"^6.11.2","responsive-storage":"^2.2.0",sortablejs:"^1.15.0",swiper:"^10.3.1",typeit:"^8.7.1","v-contextmenu":"3.0.0","v3-infinite-loading":"^1.3.1","version-rocket":"^1.7.0",vue:"^3.3.4","vue-i18n":"^9.5.0","vue-json-pretty":"^2.2.4","vue-pdf-embed":"^1.2.1","vue-router":"^4.2.5","vue-tippy":"^6.3.1","vue-types":"^5.1.1","vue-virtual-scroller":"2.0.0-beta.8","vue-waterfall-plugin-next":"^2.2.4","vue3-danmaku":"^1.6.0",vuedraggable:"^4.1.0","wavesurfer.js":"^7.3.4",xgplayer:"^3.0.9",xlsx:"^0.18.5"},devDependencies:{"@commitlint/cli":"^17.7.2","@commitlint/config-conventional":"^17.7.0","@iconify-icons/ep":"^1.2.12","@iconify-icons/ri":"^1.2.10","@iconify/vue":"^4.1.1","@intlify/unplugin-vue-i18n":"^1.4.0","@pureadmin/theme":"^3.1.0","@types/intro.js":"^5.1.2","@types/js-cookie":"^3.0.4","@types/mockjs":"^1.0.8","@types/node":"^20.8.2","@types/nprogress":"0.2.0","@types/qrcode":"^1.5.2","@types/qs":"^6.9.8","@types/sortablejs":"^1.15.3","@typescript-eslint/eslint-plugin":"^6.7.4","@typescript-eslint/parser":"^6.7.4","@vitejs/plugin-vue":"^4.4.0","@vitejs/plugin-vue-jsx":"^3.0.2","@vue/eslint-config-prettier":"^8.0.0","@vue/eslint-config-typescript":"^12.0.0",autoprefixer:"^10.4.16",cloc:"^2.11.0",cssnano:"^6.0.1",eslint:"^8.50.0","eslint-plugin-prettier":"^5.0.0","eslint-plugin-vue":"^9.17.0",husky:"^8.0.3","lint-staged":"^14.0.1",picocolors:"^1.0.0",postcss:"^8.4.31","postcss-html":"^1.5.0","postcss-import":"^15.1.0","postcss-scss":"^4.0.9",prettier:"^3.0.3",rimraf:"^5.0.5","rollup-plugin-visualizer":"^5.9.2",sass:"^1.69.0","sass-loader":"^13.3.2",stylelint:"^15.10.3","stylelint-config-html":"^1.1.0","stylelint-config-recess-order":"^4.3.0","stylelint-config-recommended":"^13.0.0","stylelint-config-recommended-scss":"^13.0.0","stylelint-config-recommended-vue":"^1.5.0","stylelint-config-standard":"^34.0.0","stylelint-config-standard-scss":"^11.0.0","stylelint-order":"^6.0.3","stylelint-prettier":"^4.0.2","stylelint-scss":"^5.2.1",svgo:"^3.0.2",tailwindcss:"^3.3.3",terser:"^5.21.0",typescript:"^5.2.2",vite:"^4.4.11","vite-plugin-cdn-import":"^0.3.5","vite-plugin-compression":"^0.5.1","vite-plugin-mock":"2.9.6","vite-plugin-remove-console":"^2.1.1","vite-svg-loader":"^4.0.0","vue-eslint-parser":"^9.3.1","vue-tsc":"^1.8.15"},name:"vue-pure-admin",version:"4.5.0"},{VITE_PUBLIC_PATH:$,MODE:V}={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};V==="production"&&checkVersion({pollingTime:3e5,localPackageVersion:t,originVersionFileUrl:`${location.origin}${$}version.json`},{title:r,description:"检测到新版本",buttonText:"立即更新"})}}),_export_sfc=(t,r)=>{const $=t.__vccOpts||t;for(const[V,oe]of r)$[V]=oe;return $};function _sfc_render(t,r,$,V,oe,ie){const le=resolveComponent("router-view"),ue=resolveComponent("ReDialog"),de=resolveComponent("el-config-provider");return openBlock(),createBlock(de,{locale:t.currentLocale},{default:withCtx(()=>[createVNode(le),createVNode(ue)]),_:1},8,["locale"])}const App=_export_sfc(_sfc_main$1,[["render",_sfc_render]]),scriptRel="modulepreload",assetsURL=function(t){return"/vue-pure-admin/"+t},seen={},__vitePreload=function(r,$,V){if(!$||$.length===0)return r();const oe=document.getElementsByTagName("link");return Promise.all($.map(ie=>{if(ie=assetsURL(ie),ie in seen)return;seen[ie]=!0;const le=ie.endsWith(".css"),ue=le?'[rel="stylesheet"]':"";if(!!V)for(let he=oe.length-1;he>=0;he--){const _e=oe[he];if(_e.href===ie&&(!le||_e.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${ie}"]${ue}`))return;const pe=document.createElement("link");if(pe.rel=le?"stylesheet":scriptRel,le||(pe.as="script",pe.crossOrigin=""),pe.href=ie,document.head.appendChild(pe),le)return new Promise((he,_e)=>{pe.addEventListener("load",he),pe.addEventListener("error",()=>_e(new Error(`Unable to preload CSS for ${ie}`)))})})).then(()=>r()).catch(ie=>{const le=new Event("vite:preloadError",{cancelable:!0});if(le.payload=ie,window.dispatchEvent(le),!le.defaultPrevented)throw ie})},resource$1={buttons:{hsLoginOut:t=>{const{normalize:r}=t;return r(["LoginOut"])},hsfullscreen:t=>{const{normalize:r}=t;return r(["FullScreen"])},hsexitfullscreen:t=>{const{normalize:r}=t;return r(["ExitFullscreen"])},hsrefreshRoute:t=>{const{normalize:r}=t;return r(["RefreshRoute"])},hslogin:t=>{const{normalize:r}=t;return r(["Login"])},hsadd:t=>{const{normalize:r}=t;return r(["Add"])},hsmark:t=>{const{normalize:r}=t;return r(["Mark/Cancel"])},hssave:t=>{const{normalize:r}=t;return r(["Save"])},hssearch:t=>{const{normalize:r}=t;return r(["Search"])},hsexpendAll:t=>{const{normalize:r}=t;return r(["Expand All"])},hscollapseAll:t=>{const{normalize:r}=t;return r(["Collapse All"])},hssystemSet:t=>{const{normalize:r}=t;return r(["Open ProjectConfig"])},hsdelete:t=>{const{normalize:r}=t;return r(["Delete"])},hsreload:t=>{const{normalize:r}=t;return r(["Reload"])},hscloseCurrentTab:t=>{const{normalize:r}=t;return r(["Close CurrentTab"])},hscloseLeftTabs:t=>{const{normalize:r}=t;return r(["Close LeftTabs"])},hscloseRightTabs:t=>{const{normalize:r}=t;return r(["Close RightTabs"])},hscloseOtherTabs:t=>{const{normalize:r}=t;return r(["Close OtherTabs"])},hscloseAllTabs:t=>{const{normalize:r}=t;return r(["Close AllTabs"])},hswholeFullScreen:t=>{const{normalize:r}=t;return r(["FullScreen"])},hswholeExitFullScreen:t=>{const{normalize:r}=t;return r(["ExitFull"])},hscontentFullScreen:t=>{const{normalize:r}=t;return r(["Content FullScreen"])},hscontentExitFullScreen:t=>{const{normalize:r}=t;return r(["Content ExitFullScreen"])}},menus:{hshome:t=>{const{normalize:r}=t;return r(["Home"])},hslogin:t=>{const{normalize:r}=t;return r(["Login"])},hsempty:t=>{const{normalize:r}=t;return r(["Empty Page"])},hssysManagement:t=>{const{normalize:r}=t;return r(["System Manage"])},hsUser:t=>{const{normalize:r}=t;return r(["User Manage"])},hsRole:t=>{const{normalize:r}=t;return r(["Role Manage"])},hsDept:t=>{const{normalize:r}=t;return r(["Dept Manage"])},hseditor:t=>{const{normalize:r}=t;return r(["Editor"])},hsabnormal:t=>{const{normalize:r}=t;return r(["Abnormal Page"])},hsfourZeroFour:t=>{const{normalize:r}=t;return r(["404"])},hsfourZeroOne:t=>{const{normalize:r}=t;return r(["403"])},hsFive:t=>{const{normalize:r}=t;return r(["500"])},hscomponents:t=>{const{normalize:r}=t;return r(["Components"])},hsdialog:t=>{const{normalize:r}=t;return r(["Dialog Components"])},hsmessage:t=>{const{normalize:r}=t;return r(["Message Tips Components"])},hsvideo:t=>{const{normalize:r}=t;return r(["Video Components"])},hssegmented:t=>{const{normalize:r}=t;return r(["Segmented Components"])},hswaterfall:t=>{const{normalize:r}=t;return r(["Waterfall Components"])},hsmap:t=>{const{normalize:r}=t;return r(["Map Components"])},hsdraggable:t=>{const{normalize:r}=t;return r(["Draggable Components"])},hssplitPane:t=>{const{normalize:r}=t;return r(["Split Pane"])},hsbutton:t=>{const{normalize:r}=t;return r(["Button Components"])},hscropping:t=>{const{normalize:r}=t;return r(["Picture Cropping"])},hscountTo:t=>{const{normalize:r}=t;return r(["Digital Animation"])},hsselector:t=>{const{normalize:r}=t;return r(["Selector Components"])},hsflowChart:t=>{const{normalize:r}=t;return r(["Flow Chart"])},hsseamless:t=>{const{normalize:r}=t;return r(["Seamless Scroll"])},hscontextmenu:t=>{const{normalize:r}=t;return r(["Context Menu"])},hstypeit:t=>{const{normalize:r}=t;return r(["Typeit Components"])},hsjsoneditor:t=>{const{normalize:r}=t;return r(["JSON Editor"])},hsmenus:t=>{const{normalize:r}=t;return r(["MultiLevel Menu"])},hsmenu1:t=>{const{normalize:r}=t;return r(["Menu1"])},"hsmenu1-1":t=>{const{normalize:r}=t;return r(["Menu1-1"])},"hsmenu1-2":t=>{const{normalize:r}=t;return r(["Menu1-2"])},"hsmenu1-2-1":t=>{const{normalize:r}=t;return r(["Menu1-2-1"])},"hsmenu1-2-2":t=>{const{normalize:r}=t;return r(["Menu1-2-2"])},"hsmenu1-3":t=>{const{normalize:r}=t;return r(["Menu1-3"])},hsmenu2:t=>{const{normalize:r}=t;return r(["Menu2"])},permission:t=>{const{normalize:r}=t;return r(["Permission Manage"])},permissionPage:t=>{const{normalize:r}=t;return r(["Page Permission"])},permissionButton:t=>{const{normalize:r}=t;return r(["Button Permission"])},hstabs:t=>{const{normalize:r}=t;return r(["Tabs Operate"])},hsguide:t=>{const{normalize:r}=t;return r(["Guide"])},hsAble:t=>{const{normalize:r}=t;return r(["Able"])},hsMenuTree:t=>{const{normalize:r}=t;return r(["Menu Tree"])},hsVideoFrame:t=>{const{normalize:r}=t;return r(["Video Frame Capture"])},hsWavesurfer:t=>{const{normalize:r}=t;return r(["Audio Visualization"])},hsOptimize:t=>{const{normalize:r}=t;return r(["Debounce、Throttle、Copy、Longpress Directives"])},hsWatermark:t=>{const{normalize:r}=t;return r(["Water Mark"])},hsPrint:t=>{const{normalize:r}=t;return r(["Print"])},hsDownload:t=>{const{normalize:r}=t;return r(["Download"])},hsExternalPage:t=>{const{normalize:r}=t;return r(["External Page"])},hsPureDocument:t=>{const{normalize:r}=t;return r(["Pure Doc(Embedded)"])},externalLink:t=>{const{normalize:r}=t;return r(["Pure Doc(External)"])},hsEpDocument:t=>{const{normalize:r}=t;return r(["Element Plus Doc(Embedded)"])},hsVueDocument:t=>{const{normalize:r}=t;return r(["Vue3 Doc(Embedded)"])},hsViteDocument:t=>{const{normalize:r}=t;return r(["Vite Doc(Embedded)"])},hsPiniaDocument:t=>{const{normalize:r}=t;return r(["Pinia Doc(Embedded)"])},hsRouterDocument:t=>{const{normalize:r}=t;return r(["Vue Router Doc(Embedded)"])},hsTailwindcssDocument:t=>{const{normalize:r}=t;return r(["Tailwindcss Doc(Embedded)"])},hsAbout:t=>{const{normalize:r}=t;return r(["About"])},hsResult:t=>{const{normalize:r}=t;return r(["Result Page"])},hsSuccess:t=>{const{normalize:r}=t;return r(["Success Page"])},hsFail:t=>{const{normalize:r}=t;return r(["Fail Page"])},hsIconSelect:t=>{const{normalize:r}=t;return r(["Icon Select"])},hsTimeline:t=>{const{normalize:r}=t;return r(["Time Line"])},hsLineTree:t=>{const{normalize:r}=t;return r(["LineTree"])},hsList:t=>{const{normalize:r}=t;return r(["List Page"])},hsListCard:t=>{const{normalize:r}=t;return r(["Card List Page"])},hsDebounce:t=>{const{normalize:r}=t;return r(["Debounce & Throttle"])},hsFormDesign:t=>{const{normalize:r}=t;return r(["Form Design"])},hsBarcode:t=>{const{normalize:r}=t;return r(["Barcode"])},hsQrcode:t=>{const{normalize:r}=t;return r(["Qrcode"])},hsCascader:t=>{const{normalize:r}=t;return r(["Area Cascader"])},hsSwiper:t=>{const{normalize:r}=t;return r(["Swiper Plugin"])},hsVirtualList:t=>{const{normalize:r}=t;return r(["Virtual List"])},hsPdf:t=>{const{normalize:r}=t;return r(["PDF Preview"])},hsExcel:t=>{const{normalize:r}=t;return r(["Export Excel"])},hsInfiniteScroll:t=>{const{normalize:r}=t;return r(["Table Infinite Scroll"])},hsSensitive:t=>{const{normalize:r}=t;return r(["Sensitive Filter"])},hsPinyin:t=>{const{normalize:r}=t;return r(["PinYin"])},hsdanmaku:t=>{const{normalize:r}=t;return r(["Danmaku Components"])},hsPureTableBase:t=>{const{normalize:r}=t;return r(["Base Usage"])},hsPureTableHigh:t=>{const{normalize:r}=t;return r(["High Usage"])},hsTree:t=>{const{normalize:r}=t;return r(["Big Data Tree"])},hsMenuoverflow:t=>{const{normalize:r}=t;return r(["Menu Overflow Show Tooltip Text"])},hsChildMenuoverflow:t=>{const{normalize:r}=t;return r(["Child Menu Overflow Show Tooltip Text"])}},status:{hsLoad:t=>{const{normalize:r}=t;return r(["Loading..."])}},login:{username:t=>{const{normalize:r}=t;return r(["Username"])},password:t=>{const{normalize:r}=t;return r(["Password"])},verifyCode:t=>{const{normalize:r}=t;return r(["VerifyCode"])},remember:t=>{const{normalize:r}=t;return r(["days no need to login"])},rememberInfo:t=>{const{normalize:r}=t;return r(["After checking and logging in, will automatically log in to the system without entering your username and password within the specified number of days."])},sure:t=>{const{normalize:r}=t;return r(["Sure Password"])},forget:t=>{const{normalize:r}=t;return r(["Forget Password?"])},login:t=>{const{normalize:r}=t;return r(["Login"])},thirdLogin:t=>{const{normalize:r}=t;return r(["Third Login"])},phoneLogin:t=>{const{normalize:r}=t;return r(["Phone Login"])},qRCodeLogin:t=>{const{normalize:r}=t;return r(["QRCode Login"])},register:t=>{const{normalize:r}=t;return r(["Register"])},weChatLogin:t=>{const{normalize:r}=t;return r(["WeChat Login"])},alipayLogin:t=>{const{normalize:r}=t;return r(["Alipay Login"])},qqLogin:t=>{const{normalize:r}=t;return r(["QQ Login"])},weiboLogin:t=>{const{normalize:r}=t;return r(["Weibo Login"])},phone:t=>{const{normalize:r}=t;return r(["Phone"])},smsVerifyCode:t=>{const{normalize:r}=t;return r(["SMS VerifyCode"])},back:t=>{const{normalize:r}=t;return r(["Back"])},test:t=>{const{normalize:r}=t;return r(["Mock Test"])},tip:t=>{const{normalize:r}=t;return r(['After scanning the code, click "Confirm" to complete the login'])},definite:t=>{const{normalize:r}=t;return r(["Definite"])},loginSuccess:t=>{const{normalize:r}=t;return r(["Login Success"])},registerSuccess:t=>{const{normalize:r}=t;return r(["Regist Success"])},tickPrivacy:t=>{const{normalize:r}=t;return r(["Please tick Privacy Policy"])},readAccept:t=>{const{normalize:r}=t;return r(["I have read it carefully and accept"])},privacyPolicy:t=>{const{normalize:r}=t;return r(["Privacy Policy"])},getVerifyCode:t=>{const{normalize:r}=t;return r(["Get VerifyCode"])},info:t=>{const{normalize:r}=t;return r(["Seconds"])},usernameReg:t=>{const{normalize:r}=t;return r(["Please enter username"])},passwordReg:t=>{const{normalize:r}=t;return r(["Please enter password"])},verifyCodeReg:t=>{const{normalize:r}=t;return r(["Please enter verify code"])},verifyCodeCorrectReg:t=>{const{normalize:r}=t;return r(["Please enter correct verify code"])},verifyCodeSixReg:t=>{const{normalize:r}=t;return r(["Please enter a 6-digit verify code"])},phoneReg:t=>{const{normalize:r}=t;return r(["Please enter the phone"])},phoneCorrectReg:t=>{const{normalize:r}=t;return r(["Please enter the correct phone number format"])},passwordRuleReg:t=>{const{normalize:r}=t;return r(["The password format should be any combination of 8-18 digits"])},passwordSureReg:t=>{const{normalize:r}=t;return r(["Please enter confirm password"])},passwordDifferentReg:t=>{const{normalize:r}=t;return r(["The two passwords do not match!"])},passwordUpdateReg:t=>{const{normalize:r}=t;return r(["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:t=>{const{normalize:r}=t;return r(["退出系统"])},hsfullscreen:t=>{const{normalize:r}=t;return r(["全屏"])},hsexitfullscreen:t=>{const{normalize:r}=t;return r(["退出全屏"])},hsrefreshRoute:t=>{const{normalize:r}=t;return r(["刷新路由"])},hslogin:t=>{const{normalize:r}=t;return r(["登录"])},hsadd:t=>{const{normalize:r}=t;return r(["新增"])},hsmark:t=>{const{normalize:r}=t;return r(["标记/取消"])},hssave:t=>{const{normalize:r}=t;return r(["保存"])},hssearch:t=>{const{normalize:r}=t;return r(["搜索"])},hsexpendAll:t=>{const{normalize:r}=t;return r(["全部展开"])},hscollapseAll:t=>{const{normalize:r}=t;return r(["全部折叠"])},hssystemSet:t=>{const{normalize:r}=t;return r(["打开项目配置"])},hsdelete:t=>{const{normalize:r}=t;return r(["删除"])},hsreload:t=>{const{normalize:r}=t;return r(["重新加载"])},hscloseCurrentTab:t=>{const{normalize:r}=t;return r(["关闭当前标签页"])},hscloseLeftTabs:t=>{const{normalize:r}=t;return r(["关闭左侧标签页"])},hscloseRightTabs:t=>{const{normalize:r}=t;return r(["关闭右侧标签页"])},hscloseOtherTabs:t=>{const{normalize:r}=t;return r(["关闭其他标签页"])},hscloseAllTabs:t=>{const{normalize:r}=t;return r(["关闭全部标签页"])},hswholeFullScreen:t=>{const{normalize:r}=t;return r(["全屏"])},hswholeExitFullScreen:t=>{const{normalize:r}=t;return r(["退出全屏"])},hscontentFullScreen:t=>{const{normalize:r}=t;return r(["内容区全屏"])},hscontentExitFullScreen:t=>{const{normalize:r}=t;return r(["内容区退出全屏"])}},menus:{hshome:t=>{const{normalize:r}=t;return r(["首页"])},hslogin:t=>{const{normalize:r}=t;return r(["登录"])},hsempty:t=>{const{normalize:r}=t;return r(["无Layout页"])},hssysManagement:t=>{const{normalize:r}=t;return r(["系统管理"])},hsUser:t=>{const{normalize:r}=t;return r(["用户管理"])},hsRole:t=>{const{normalize:r}=t;return r(["角色管理"])},hsDept:t=>{const{normalize:r}=t;return r(["部门管理"])},hseditor:t=>{const{normalize:r}=t;return r(["编辑器"])},hsabnormal:t=>{const{normalize:r}=t;return r(["异常页面"])},hsfourZeroFour:t=>{const{normalize:r}=t;return r(["404"])},hsfourZeroOne:t=>{const{normalize:r}=t;return r(["403"])},hsFive:t=>{const{normalize:r}=t;return r(["500"])},hscomponents:t=>{const{normalize:r}=t;return r(["组件"])},hsdialog:t=>{const{normalize:r}=t;return r(["函数式弹框组件"])},hsmessage:t=>{const{normalize:r}=t;return r(["消息提示组件"])},hsvideo:t=>{const{normalize:r}=t;return r(["视频组件"])},hssegmented:t=>{const{normalize:r}=t;return r(["分段控制器组件"])},hswaterfall:t=>{const{normalize:r}=t;return r(["瀑布流无限滚动组件"])},hsmap:t=>{const{normalize:r}=t;return r(["地图组件"])},hsdraggable:t=>{const{normalize:r}=t;return r(["拖拽组件"])},hssplitPane:t=>{const{normalize:r}=t;return r(["切割面板"])},hsbutton:t=>{const{normalize:r}=t;return r(["按钮组件"])},hscropping:t=>{const{normalize:r}=t;return r(["图片裁剪"])},hscountTo:t=>{const{normalize:r}=t;return r(["数字动画"])},hsselector:t=>{const{normalize:r}=t;return r(["选择器组件"])},hsflowChart:t=>{const{normalize:r}=t;return r(["流程图"])},hsseamless:t=>{const{normalize:r}=t;return r(["无缝滚动"])},hscontextmenu:t=>{const{normalize:r}=t;return r(["右键菜单"])},hstypeit:t=>{const{normalize:r}=t;return r(["打字机组件"])},hsjsoneditor:t=>{const{normalize:r}=t;return r(["JSON编辑器"])},hsmenus:t=>{const{normalize:r}=t;return r(["多级菜单"])},hsmenu1:t=>{const{normalize:r}=t;return r(["菜单1"])},"hsmenu1-1":t=>{const{normalize:r}=t;return r(["菜单1-1"])},"hsmenu1-2":t=>{const{normalize:r}=t;return r(["菜单1-2"])},"hsmenu1-2-1":t=>{const{normalize:r}=t;return r(["菜单1-2-1"])},"hsmenu1-2-2":t=>{const{normalize:r}=t;return r(["菜单1-2-2"])},"hsmenu1-3":t=>{const{normalize:r}=t;return r(["菜单1-3"])},hsmenu2:t=>{const{normalize:r}=t;return r(["菜单2"])},permission:t=>{const{normalize:r}=t;return r(["权限管理"])},permissionPage:t=>{const{normalize:r}=t;return r(["页面权限"])},permissionButton:t=>{const{normalize:r}=t;return r(["按钮权限"])},hstabs:t=>{const{normalize:r}=t;return r(["标签页操作"])},hsguide:t=>{const{normalize:r}=t;return r(["引导页"])},hsAble:t=>{const{normalize:r}=t;return r(["功能"])},hsMenuTree:t=>{const{normalize:r}=t;return r(["菜单树结构"])},hsVideoFrame:t=>{const{normalize:r}=t;return r(["视频帧截取-wasm版"])},hsWavesurfer:t=>{const{normalize:r}=t;return r(["音频可视化"])},hsOptimize:t=>{const{normalize:r}=t;return r(["防抖、截流、复制、长按指令"])},hsWatermark:t=>{const{normalize:r}=t;return r(["水印"])},hsPrint:t=>{const{normalize:r}=t;return r(["打印"])},hsDownload:t=>{const{normalize:r}=t;return r(["下载"])},hsExternalPage:t=>{const{normalize:r}=t;return r(["外部页面"])},hsPureDocument:t=>{const{normalize:r}=t;return r(["平台文档(内嵌)"])},externalLink:t=>{const{normalize:r}=t;return r(["平台文档(外链)"])},hsEpDocument:t=>{const{normalize:r}=t;return r(["Element Plus 文档(内嵌)"])},hsVueDocument:t=>{const{normalize:r}=t;return r(["Vue3 文档(内嵌)"])},hsViteDocument:t=>{const{normalize:r}=t;return r(["Vite 文档(内嵌)"])},hsPiniaDocument:t=>{const{normalize:r}=t;return r(["Pinia 文档(内嵌)"])},hsRouterDocument:t=>{const{normalize:r}=t;return r(["Vue Router 文档(内嵌)"])},hsTailwindcssDocument:t=>{const{normalize:r}=t;return r(["Tailwindcss 文档(内嵌)"])},hsAbout:t=>{const{normalize:r}=t;return r(["关于"])},hsResult:t=>{const{normalize:r}=t;return r(["结果页面"])},hsSuccess:t=>{const{normalize:r}=t;return r(["成功页面"])},hsFail:t=>{const{normalize:r}=t;return r(["失败页面"])},hsIconSelect:t=>{const{normalize:r}=t;return r(["图标选择器"])},hsTimeline:t=>{const{normalize:r}=t;return r(["时间线"])},hsLineTree:t=>{const{normalize:r}=t;return r(["树形连接线"])},hsList:t=>{const{normalize:r}=t;return r(["列表页"])},hsListCard:t=>{const{normalize:r}=t;return r(["卡片列表页"])},hsDebounce:t=>{const{normalize:r}=t;return r(["防抖节流"])},hsFormDesign:t=>{const{normalize:r}=t;return r(["表单设计器"])},hsBarcode:t=>{const{normalize:r}=t;return r(["条形码"])},hsQrcode:t=>{const{normalize:r}=t;return r(["二维码"])},hsCascader:t=>{const{normalize:r}=t;return r(["区域级联选择器"])},hsSwiper:t=>{const{normalize:r}=t;return r(["Swiper插件"])},hsVirtualList:t=>{const{normalize:r}=t;return r(["虚拟列表"])},hsPdf:t=>{const{normalize:r}=t;return r(["PDF预览"])},hsExcel:t=>{const{normalize:r}=t;return r(["导出Excel"])},hsInfiniteScroll:t=>{const{normalize:r}=t;return r(["表格无限滚动"])},hsSensitive:t=>{const{normalize:r}=t;return r(["敏感词过滤"])},hsPinyin:t=>{const{normalize:r}=t;return r(["汉语拼音"])},hsdanmaku:t=>{const{normalize:r}=t;return r(["弹幕组件"])},hsPureTableBase:t=>{const{normalize:r}=t;return r(["基础用法(23个示例)"])},hsPureTableHigh:t=>{const{normalize:r}=t;return r(["高级用法(11个示例)"])},hsTree:t=>{const{normalize:r}=t;return r(["大数据树业务组件"])},hsMenuoverflow:t=>{const{normalize:r}=t;return r(["目录超出显示 Tooltip 文字提示"])},hsChildMenuoverflow:t=>{const{normalize:r}=t;return r(["菜单超出显示 Tooltip 文字提示"])}},status:{hsLoad:t=>{const{normalize:r}=t;return r(["加载中..."])}},login:{username:t=>{const{normalize:r}=t;return r(["账号"])},password:t=>{const{normalize:r}=t;return r(["密码"])},verifyCode:t=>{const{normalize:r}=t;return r(["验证码"])},remember:t=>{const{normalize:r}=t;return r(["天内免登录"])},rememberInfo:t=>{const{normalize:r}=t;return r(["勾选并登录后,规定天数内无需输入用户名和密码会自动登入系统"])},sure:t=>{const{normalize:r}=t;return r(["确认密码"])},forget:t=>{const{normalize:r}=t;return r(["忘记密码?"])},login:t=>{const{normalize:r}=t;return r(["登录"])},thirdLogin:t=>{const{normalize:r}=t;return r(["第三方登录"])},phoneLogin:t=>{const{normalize:r}=t;return r(["手机登录"])},qRCodeLogin:t=>{const{normalize:r}=t;return r(["二维码登录"])},register:t=>{const{normalize:r}=t;return r(["注册"])},weChatLogin:t=>{const{normalize:r}=t;return r(["微信登录"])},alipayLogin:t=>{const{normalize:r}=t;return r(["支付宝登录"])},qqLogin:t=>{const{normalize:r}=t;return r(["QQ登录"])},weiboLogin:t=>{const{normalize:r}=t;return r(["微博登录"])},phone:t=>{const{normalize:r}=t;return r(["手机号码"])},smsVerifyCode:t=>{const{normalize:r}=t;return r(["短信验证码"])},back:t=>{const{normalize:r}=t;return r(["返回"])},test:t=>{const{normalize:r}=t;return r(["模拟测试"])},tip:t=>{const{normalize:r}=t;return r(['扫码后点击"确认",即可完成登录'])},definite:t=>{const{normalize:r}=t;return r(["确定"])},loginSuccess:t=>{const{normalize:r}=t;return r(["登录成功"])},registerSuccess:t=>{const{normalize:r}=t;return r(["注册成功"])},tickPrivacy:t=>{const{normalize:r}=t;return r(["请勾选隐私政策"])},readAccept:t=>{const{normalize:r}=t;return r(["我已仔细阅读并接受"])},privacyPolicy:t=>{const{normalize:r}=t;return r(["《隐私政策》"])},getVerifyCode:t=>{const{normalize:r}=t;return r(["获取验证码"])},info:t=>{const{normalize:r}=t;return r(["秒后重新获取"])},usernameReg:t=>{const{normalize:r}=t;return r(["请输入账号"])},passwordReg:t=>{const{normalize:r}=t;return r(["请输入密码"])},verifyCodeReg:t=>{const{normalize:r}=t;return r(["请输入验证码"])},verifyCodeCorrectReg:t=>{const{normalize:r}=t;return r(["请输入正确的验证码"])},verifyCodeSixReg:t=>{const{normalize:r}=t;return r(["请输入6位数字验证码"])},phoneReg:t=>{const{normalize:r}=t;return r(["请输入手机号码"])},phoneCorrectReg:t=>{const{normalize:r}=t;return r(["请输入正确的手机号码格式"])},passwordRuleReg:t=>{const{normalize:r}=t;return r(["密码格式应为8-18位数字、字母、符号的任意两种组合"])},passwordSureReg:t=>{const{normalize:r}=t;return r(["请输入确认密码"])},passwordDifferentReg:t=>{const{normalize:r}=t;return r(["两次密码不一致!"])},passwordUpdateReg:t=>{const{normalize:r}=t;return r(["修改密码成功"])}}},__vite_glob_0_1$2=Object.freeze(Object.defineProperty({__proto__:null,default:resource},Symbol.toStringTag,{value:"Module"}));/*! * shared v9.5.0 * (c) 2023 kazuya kawaguchi * Released under the MIT License. */const inBrowser=typeof window<"u",makeSymbol=(t,r=!1)=>r?Symbol.for(t):Symbol(t),generateFormatCacheKey=(t,r,$)=>friendlyJSONstringify({l:t,k:r,s:$}),friendlyJSONstringify=t=>JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),isNumber$3=t=>typeof t=="number"&&isFinite(t),isDate$2=t=>toTypeString(t)==="[object Date]",isRegExp$4=t=>toTypeString(t)==="[object RegExp]",isEmptyObject=t=>isPlainObject$2(t)&&Object.keys(t).length===0,assign$4=Object.assign;function escapeHtml(t){return t.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const hasOwnProperty$2=Object.prototype.hasOwnProperty;function hasOwn$3(t,r){return hasOwnProperty$2.call(t,r)}const isArray$9=Array.isArray,isFunction$2=t=>typeof t=="function",isString$4=t=>typeof t=="string",isBoolean$2=t=>typeof t=="boolean",isObject$7=t=>t!==null&&typeof t=="object",objectToString$1=Object.prototype.toString,toTypeString=t=>objectToString$1.call(t),isPlainObject$2=t=>{if(!isObject$7(t))return!1;const r=Object.getPrototypeOf(t);return r===null||r.constructor===Object},toDisplayString=t=>t==null?"":isArray$9(t)||isPlainObject$2(t)&&t.toString===objectToString$1?JSON.stringify(t,null,2):String(t);function join(t,r=""){return t.reduce(($,V,oe)=>oe===0?$+V:$+r+V,"")}function incrementer(t){let r=t;return()=>++r}function warn$1(t,r){typeof console<"u"&&(console.warn("[intlify] "+t),r&&console.warn(r.stack))}/*! * message-compiler v9.5.0 * (c) 2023 kazuya kawaguchi * Released under the MIT License. */const RE_ARGS=/\{([0-9a-zA-Z]+)\}/g;function format$2(t,...r){return r.length===1&&isObject$6(r[0])&&(r=r[0]),(!r||!r.hasOwnProperty)&&(r={}),t.replace(RE_ARGS,($,V)=>r.hasOwnProperty(V)?r[V]:"")}const isObject$6=t=>t!==null&&typeof t=="object",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,UNHANDLED_CODEGEN_NODE_TYPE:15,UNHANDLED_MINIFIER_NODE_TYPE:16,__EXTEND_POINT__:17},errorMessages={[CompileErrorCodes.EXPECTED_TOKEN]:"Expected token: '{0}'",[CompileErrorCodes.INVALID_TOKEN_IN_PLACEHOLDER]:"Invalid token in placeholder: '{0}'",[CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]:"Unterminated single quote in placeholder",[CompileErrorCodes.UNKNOWN_ESCAPE_SEQUENCE]:"Unknown escape sequence: \\{0}",[CompileErrorCodes.INVALID_UNICODE_ESCAPE_SEQUENCE]:"Invalid unicode escape sequence: {0}",[CompileErrorCodes.UNBALANCED_CLOSING_BRACE]:"Unbalanced closing brace",[CompileErrorCodes.UNTERMINATED_CLOSING_BRACE]:"Unterminated closing brace",[CompileErrorCodes.EMPTY_PLACEHOLDER]:"Empty placeholder",[CompileErrorCodes.NOT_ALLOW_NEST_PLACEHOLDER]:"Not allowed nest placeholder",[CompileErrorCodes.INVALID_LINKED_FORMAT]:"Invalid linked format",[CompileErrorCodes.MUST_HAVE_MESSAGES_IN_PLURAL]:"Plural must have messages",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_MODIFIER]:"Unexpected empty linked modifier",[CompileErrorCodes.UNEXPECTED_EMPTY_LINKED_KEY]:"Unexpected empty linked key",[CompileErrorCodes.UNEXPECTED_LEXICAL_ANALYSIS]:"Unexpected lexical analysis in token: '{0}'",[CompileErrorCodes.UNHANDLED_CODEGEN_NODE_TYPE]:"unhandled codegen node type: '{0}'",[CompileErrorCodes.UNHANDLED_MINIFIER_NODE_TYPE]:"unhandled mimifier node type: '{0}'"};function createCompileError(t,r,$={}){const{domain:V,messages:oe,args:ie}=$,le=format$2((oe||errorMessages)[t]||"",...ie||[]),ue=new SyntaxError(String(le));return ue.code=t,r&&(ue.location=r),ue.domain=V,ue}/*! * core-base v9.5.0 * (c) 2023 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(t){return literalValueRE.test(t)}function stripQuotes(t){const r=t.charCodeAt(0),$=t.charCodeAt(t.length-1);return r===$&&(r===34||r===39)?t.slice(1,-1):t}function getPathCharType(t){if(t==null)return"o";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function formatSubPath(t){const r=t.trim();return t.charAt(0)==="0"&&isNaN(parseInt(t))?!1:isLiteral(r)?stripQuotes(r):"*"+r}function parse$5(t){const r=[];let $=-1,V=0,oe=0,ie,le,ue,de,pe,he,_e;const $e=[];$e[0]=()=>{le===void 0?le=ue:le+=ue},$e[1]=()=>{le!==void 0&&(r.push(le),le=void 0)},$e[2]=()=>{$e[0](),oe++},$e[3]=()=>{if(oe>0)oe--,V=4,$e[0]();else{if(oe=0,le===void 0||(le=formatSubPath(le),le===!1))return!1;$e[1]()}};function Ie(){const Ve=t[$+1];if(V===5&&Ve==="'"||V===6&&Ve==='"')return $++,ue="\\"+Ve,$e[0](),!0}for(;V!==null;)if($++,ie=t[$],!(ie==="\\"&&Ie())){if(de=getPathCharType(ie),_e=pathStateMachine[V],pe=_e[de]||_e.l||8,pe===8||(V=pe[0],pe[1]!==void 0&&(he=$e[pe[1]],he&&(ue=ie,he()===!1))))return;if(V===7)return r}}const cache=new Map;function resolveWithKeyValue(t,r){return isObject$7(t)?t[r]:null}function resolveValue(t,r){if(!isObject$7(t))return null;let $=cache.get(r);if($||($=parse$5(r),$&&cache.set(r,$)),!$)return null;const V=$.length;let oe=t,ie=0;for(;iet,DEFAULT_MESSAGE=t=>"",DEFAULT_MESSAGE_DATA_TYPE="text",DEFAULT_NORMALIZE=t=>t.length===0?"":join(t),DEFAULT_INTERPOLATE=toDisplayString;function pluralDefault(t,r){return t=Math.abs(t),r===2?t?t>1?1:0:1:t?Math.min(t,2):0}function getPluralIndex(t){const r=isNumber$3(t.pluralIndex)?t.pluralIndex:-1;return t.named&&(isNumber$3(t.named.count)||isNumber$3(t.named.n))?isNumber$3(t.named.count)?t.named.count:isNumber$3(t.named.n)?t.named.n:r:r}function normalizeNamed(t,r){r.count||(r.count=t),r.n||(r.n=t)}function createMessageContext(t={}){const r=t.locale,$=getPluralIndex(t),V=isObject$7(t.pluralRules)&&isString$4(r)&&isFunction$2(t.pluralRules[r])?t.pluralRules[r]:pluralDefault,oe=isObject$7(t.pluralRules)&&isString$4(r)&&isFunction$2(t.pluralRules[r])?pluralDefault:void 0,ie=qe=>qe[V($,qe.length,oe)],le=t.list||[],ue=qe=>le[qe],de=t.named||{};isNumber$3(t.pluralIndex)&&normalizeNamed($,de);const pe=qe=>de[qe];function he(qe){const Et=isFunction$2(t.messages)?t.messages(qe):isObject$7(t.messages)?t.messages[qe]:!1;return Et||(t.parent?t.parent.message(qe):DEFAULT_MESSAGE)}const _e=qe=>t.modifiers?t.modifiers[qe]:DEFAULT_MODIFIER,$e=isPlainObject$2(t.processor)&&isFunction$2(t.processor.normalize)?t.processor.normalize:DEFAULT_NORMALIZE,Ie=isPlainObject$2(t.processor)&&isFunction$2(t.processor.interpolate)?t.processor.interpolate:DEFAULT_INTERPOLATE,Ve=isPlainObject$2(t.processor)&&isString$4(t.processor.type)?t.processor.type:DEFAULT_MESSAGE_DATA_TYPE,Ue={list:ue,named:pe,plural:ie,linked:(qe,...Et)=>{const[Lt,hn]=Et;let Cn="text",bn="";Et.length===1?isObject$7(Lt)?(bn=Lt.modifier||bn,Cn=Lt.type||Cn):isString$4(Lt)&&(bn=Lt||bn):Et.length===2&&(isString$4(Lt)&&(bn=Lt||bn),isString$4(hn)&&(Cn=hn||Cn));const Sn=he(qe)(Ue),En=Cn==="vnode"&&isArray$9(Sn)&&bn?Sn[0]:Sn;return bn?_e(bn)(En,Cn):En},message:he,type:Ve,interpolate:Ie,normalize:$e,values:assign$4({},le,de)};return Ue}const CoreWarnCodes={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,EXPERIMENTAL_CUSTOM_MESSAGE_COMPILER:7,__EXTEND_POINT__:8};function getLocale(t,r){return r.locale!=null?resolveLocale(r.locale):resolveLocale(t.locale)}let _resolveLocale;function resolveLocale(t){return isString$4(t)?t:_resolveLocale!=null&&t.resolvedOnce?_resolveLocale:_resolveLocale=t()}function fallbackWithSimple(t,r,$){return[...new Set([$,...isArray$9(r)?r:isObject$7(r)?Object.keys(r):isString$4(r)?[r]:[$]])]}function fallbackWithLocaleChain(t,r,$){const V=isString$4($)?$:DEFAULT_LOCALE$1,oe=t;oe.__localeChainCache||(oe.__localeChainCache=new Map);let ie=oe.__localeChainCache.get(V);if(!ie){ie=[];let le=[$];for(;isArray$9(le);)le=appendBlockToChain(ie,le,r);const ue=isArray$9(r)||!isPlainObject$2(r)?r:r.default?r.default:null;le=isString$4(ue)?[ue]:ue,isArray$9(le)&&appendBlockToChain(ie,le,!1),oe.__localeChainCache.set(V,ie)}return ie}function appendBlockToChain(t,r,$){let V=!0;for(let oe=0;oe`${t.charAt(0).toLocaleUpperCase()}${t.substr(1)}`;function getDefaultLinkedModifiers(){return{upper:(t,r)=>r==="text"&&isString$4(t)?t.toUpperCase():r==="vnode"&&isObject$7(t)&&"__v_isVNode"in t?t.children.toUpperCase():t,lower:(t,r)=>r==="text"&&isString$4(t)?t.toLowerCase():r==="vnode"&&isObject$7(t)&&"__v_isVNode"in t?t.children.toLowerCase():t,capitalize:(t,r)=>r==="text"&&isString$4(t)?capitalize(t):r==="vnode"&&isObject$7(t)&&"__v_isVNode"in t?capitalize(t.children):t}}let _compiler,_resolver;function registerMessageResolver(t){_resolver=t}let _fallbacker;function registerLocaleFallbacker(t){_fallbacker=t}const setAdditionalMeta=t=>{};let _fallbackContext=null;const setFallbackContext=t=>{_fallbackContext=t},getFallbackContext=()=>_fallbackContext;let _cid=0;function createCoreContext(t={}){const r=isFunction$2(t.onWarn)?t.onWarn:warn$1,$=isString$4(t.version)?t.version:VERSION$2,V=isString$4(t.locale)||isFunction$2(t.locale)?t.locale:DEFAULT_LOCALE$1,oe=isFunction$2(V)?DEFAULT_LOCALE$1:V,ie=isArray$9(t.fallbackLocale)||isPlainObject$2(t.fallbackLocale)||isString$4(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:oe,le=isPlainObject$2(t.messages)?t.messages:{[oe]:{}},ue=isPlainObject$2(t.datetimeFormats)?t.datetimeFormats:{[oe]:{}},de=isPlainObject$2(t.numberFormats)?t.numberFormats:{[oe]:{}},pe=assign$4({},t.modifiers||{},getDefaultLinkedModifiers()),he=t.pluralRules||{},_e=isFunction$2(t.missing)?t.missing:null,$e=isBoolean$2(t.missingWarn)||isRegExp$4(t.missingWarn)?t.missingWarn:!0,Ie=isBoolean$2(t.fallbackWarn)||isRegExp$4(t.fallbackWarn)?t.fallbackWarn:!0,Ve=!!t.fallbackFormat,Fe=!!t.unresolving,Ue=isFunction$2(t.postTranslation)?t.postTranslation:null,qe=isPlainObject$2(t.processor)?t.processor:null,Et=isBoolean$2(t.warnHtmlMessage)?t.warnHtmlMessage:!0,Lt=!!t.escapeParameter,hn=isFunction$2(t.messageCompiler)?t.messageCompiler:_compiler,Cn=isFunction$2(t.messageResolver)?t.messageResolver:_resolver||resolveWithKeyValue,bn=isFunction$2(t.localeFallbacker)?t.localeFallbacker:_fallbacker||fallbackWithSimple,Sn=isObject$7(t.fallbackContext)?t.fallbackContext:void 0,En=t,wn=isObject$7(En.__datetimeFormatters)?En.__datetimeFormatters:new Map,$n=isObject$7(En.__numberFormatters)?En.__numberFormatters:new Map,Tn=isObject$7(En.__meta)?En.__meta:{};_cid++;const xn={version:$,cid:_cid,locale:V,fallbackLocale:ie,messages:le,modifiers:pe,pluralRules:he,missing:_e,missingWarn:$e,fallbackWarn:Ie,fallbackFormat:Ve,unresolving:Fe,postTranslation:Ue,processor:qe,warnHtmlMessage:Et,escapeParameter:Lt,messageCompiler:hn,messageResolver:Cn,localeFallbacker:bn,fallbackContext:Sn,onWarn:r,__meta:Tn};return xn.datetimeFormats=ue,xn.numberFormats=de,xn.__datetimeFormatters=wn,xn.__numberFormatters=$n,xn}function handleMissing(t,r,$,V,oe){const{missing:ie,onWarn:le}=t;if(ie!==null){const ue=ie(t,$,r,oe);return isString$4(ue)?ue:r}else return r}function updateFallbackLocale(t,r,$){const V=t;V.__localeChainCache=new Map,t.localeFallbacker(t,$,r)}const code$2=CompileErrorCodes.__EXTEND_POINT__,inc$2=incrementer(code$2),CoreErrorCodes={INVALID_ARGUMENT:code$2,INVALID_DATE_ARGUMENT:inc$2(),INVALID_ISO_DATE_ARGUMENT:inc$2(),NOT_SUPPORT_NON_STRING_MESSAGE:inc$2(),__EXTEND_POINT__:inc$2()};function createCoreError(t){return createCompileError(t,null,void 0)}const isMessageAST=t=>isObject$7(t)&&(t.t===0||t.type===0)&&("b"in t||"body"in t),NOOP_MESSAGE_FUNCTION=()=>"",isMessageFunction=t=>isFunction$2(t);function translate$1(t,...r){const{fallbackFormat:$,postTranslation:V,unresolving:oe,messageCompiler:ie,fallbackLocale:le,messages:ue}=t,[de,pe]=parseTranslateArgs(...r),he=isBoolean$2(pe.missingWarn)?pe.missingWarn:t.missingWarn,_e=isBoolean$2(pe.fallbackWarn)?pe.fallbackWarn:t.fallbackWarn,$e=isBoolean$2(pe.escapeParameter)?pe.escapeParameter:t.escapeParameter,Ie=!!pe.resolvedMessage,Ve=isString$4(pe.default)||isBoolean$2(pe.default)?isBoolean$2(pe.default)?ie?de:()=>de:pe.default:$?ie?de:()=>de:"",Fe=$||Ve!=="",Ue=getLocale(t,pe);$e&&escapeParams(pe);let[qe,Et,Lt]=Ie?[de,Ue,ue[Ue]||{}]:resolveMessageFormat(t,de,Ue,le,_e,he),hn=qe,Cn=de;if(!Ie&&!(isString$4(hn)||isMessageAST(hn)||isMessageFunction(hn))&&Fe&&(hn=Ve,Cn=hn),!Ie&&(!(isString$4(hn)||isMessageAST(hn)||isMessageFunction(hn))||!isString$4(Et)))return oe?NOT_REOSLVED:de;let bn=!1;const Sn=()=>{bn=!0},En=isMessageFunction(hn)?hn:compileMessageFormat(t,de,Et,hn,Cn,Sn);if(bn)return hn;const wn=getMessageContextOptions(t,Et,Lt,pe),$n=createMessageContext(wn),Tn=evaluateMessage(t,En,$n);return V?V(Tn,de):Tn}function escapeParams(t){isArray$9(t.list)?t.list=t.list.map(r=>isString$4(r)?escapeHtml(r):r):isObject$7(t.named)&&Object.keys(t.named).forEach(r=>{isString$4(t.named[r])&&(t.named[r]=escapeHtml(t.named[r]))})}function resolveMessageFormat(t,r,$,V,oe,ie){const{messages:le,onWarn:ue,messageResolver:de,localeFallbacker:pe}=t,he=pe(t,V,$);let _e={},$e,Ie=null;const Ve="translate";for(let Fe=0;FeV;return pe.locale=$,pe.key=r,pe}const de=le(V,getCompileContext(t,$,oe,V,ue,ie));return de.locale=$,de.key=r,de.source=V,de}function evaluateMessage(t,r,$){return r($)}function parseTranslateArgs(...t){const[r,$,V]=t,oe={};if(!isString$4(r)&&!isNumber$3(r)&&!isMessageFunction(r)&&!isMessageAST(r))throw createCoreError(CoreErrorCodes.INVALID_ARGUMENT);const ie=isNumber$3(r)?String(r):(isMessageFunction(r),r);return isNumber$3($)?oe.plural=$:isString$4($)?oe.default=$:isPlainObject$2($)&&!isEmptyObject($)?oe.named=$:isArray$9($)&&(oe.list=$),isNumber$3(V)?oe.plural=V:isString$4(V)?oe.default=V:isPlainObject$2(V)&&assign$4(oe,V),[ie,oe]}function getCompileContext(t,r,$,V,oe,ie){return{locale:r,key:$,warnHtmlMessage:oe,onError:le=>{throw ie&&ie(le),le},onCacheKey:le=>generateFormatCacheKey(r,$,le)}}function getMessageContextOptions(t,r,$,V){const{modifiers:oe,pluralRules:ie,messageResolver:le,fallbackLocale:ue,fallbackWarn:de,missingWarn:pe,fallbackContext:he}=t,$e={locale:r,modifiers:oe,pluralRules:ie,messages:Ie=>{let Ve=le($,Ie);if(Ve==null&&he){const[,,Fe]=resolveMessageFormat(he,Ie,r,ue,de,pe);Ve=le(Fe,Ie)}if(isString$4(Ve)||isMessageAST(Ve)){let Fe=!1;const qe=compileMessageFormat(t,Ie,r,Ve,Ie,()=>{Fe=!0});return Fe?NOOP_MESSAGE_FUNCTION:qe}else return isMessageFunction(Ve)?Ve:NOOP_MESSAGE_FUNCTION}};return t.processor&&($e.processor=t.processor),V.list&&($e.list=V.list),V.named&&($e.named=V.named),isNumber$3(V.plural)&&($e.pluralIndex=V.plural),$e}function datetime(t,...r){const{datetimeFormats:$,unresolving:V,fallbackLocale:oe,onWarn:ie,localeFallbacker:le}=t,{__datetimeFormatters:ue}=t,[de,pe,he,_e]=parseDateTimeArgs(...r),$e=isBoolean$2(he.missingWarn)?he.missingWarn:t.missingWarn;isBoolean$2(he.fallbackWarn)?he.fallbackWarn:t.fallbackWarn;const Ie=!!he.part,Ve=getLocale(t,he),Fe=le(t,oe,Ve);if(!isString$4(de)||de==="")return new Intl.DateTimeFormat(Ve,_e).format(pe);let Ue={},qe,Et=null;const Lt="datetime format";for(let bn=0;bn{DATETIME_FORMAT_OPTIONS_KEYS.includes(de)?le[de]=$[de]:ie[de]=$[de]}),isString$4(V)?ie.locale=V:isPlainObject$2(V)&&(le=V),isPlainObject$2(oe)&&(le=oe),[ie.key||"",ue,ie,le]}function clearDateTimeFormat(t,r,$){const V=t;for(const oe in $){const ie=`${r}__${oe}`;V.__datetimeFormatters.has(ie)&&V.__datetimeFormatters.delete(ie)}}function number$2(t,...r){const{numberFormats:$,unresolving:V,fallbackLocale:oe,onWarn:ie,localeFallbacker:le}=t,{__numberFormatters:ue}=t,[de,pe,he,_e]=parseNumberArgs(...r),$e=isBoolean$2(he.missingWarn)?he.missingWarn:t.missingWarn;isBoolean$2(he.fallbackWarn)?he.fallbackWarn:t.fallbackWarn;const Ie=!!he.part,Ve=getLocale(t,he),Fe=le(t,oe,Ve);if(!isString$4(de)||de==="")return new Intl.NumberFormat(Ve,_e).format(pe);let Ue={},qe,Et=null;const Lt="number format";for(let bn=0;bn{NUMBER_FORMAT_OPTIONS_KEYS.includes(de)?le[de]=$[de]:ie[de]=$[de]}),isString$4(V)?ie.locale=V:isPlainObject$2(V)&&(le=V),isPlainObject$2(oe)&&(le=oe),[ie.key||"",ue,ie,le]}function clearNumberFormat(t,r,$){const V=t;for(const oe in $){const ie=`${r}__${oe}`;V.__numberFormatters.has(ie)&&V.__numberFormatters.delete(ie)}}/*! * vue-i18n v9.5.0 * (c) 2023 kazuya kawaguchi * Released under the MIT License. */const VERSION$1="9.5.0",code$1=CoreWarnCodes.__EXTEND_POINT__,inc$1=incrementer(code$1);inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1(),inc$1();const code=CoreErrorCodes.__EXTEND_POINT__,inc=incrementer(code),I18nErrorCodes={UNEXPECTED_RETURN_TYPE:code,INVALID_ARGUMENT:inc(),MUST_BE_CALL_SETUP_TOP:inc(),NOT_INSTALLED:inc(),NOT_AVAILABLE_IN_LEGACY_MODE:inc(),REQUIRED_VALUE:inc(),INVALID_VALUE:inc(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:inc(),NOT_INSTALLED_WITH_PROVIDE:inc(),UNEXPECTED_ERROR:inc(),NOT_COMPATIBLE_LEGACY_VUE_I18N:inc(),BRIDGE_SUPPORT_VUE_2_ONLY:inc(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:inc(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:inc(),__EXTEND_POINT__:inc()};function createI18nError(t,...r){return createCompileError(t,null,void 0)}const TranslateVNodeSymbol=makeSymbol("__translateVNode"),DatetimePartsSymbol=makeSymbol("__datetimeParts"),NumberPartsSymbol=makeSymbol("__numberParts"),SetPluralRulesSymbol=makeSymbol("__setPluralRules"),InejctWithOptionSymbol=makeSymbol("__injectWithOption"),DisposeSymbol=makeSymbol("__dispose");function handleFlatJson(t){if(!isObject$7(t))return t;for(const r in t)if(hasOwn$3(t,r))if(!r.includes("."))isObject$7(t[r])&&handleFlatJson(t[r]);else{const $=r.split("."),V=$.length-1;let oe=t,ie=!1;for(let le=0;le{if("locale"in ue&&"resource"in ue){const{locale:de,resource:pe}=ue;de?(le[de]=le[de]||{},deepCopy(pe,le[de])):deepCopy(pe,le)}else isString$4(ue)&&deepCopy(JSON.parse(ue),le)}),oe==null&&ie)for(const ue in le)hasOwn$3(le,ue)&&handleFlatJson(le[ue]);return le}const isNotObjectOrIsArray=t=>!isObject$7(t)||isArray$9(t);function deepCopy(t,r){if(isNotObjectOrIsArray(t)||isNotObjectOrIsArray(r))throw createI18nError(I18nErrorCodes.INVALID_VALUE);for(const $ in t)hasOwn$3(t,$)&&(isNotObjectOrIsArray(t[$])||isNotObjectOrIsArray(r[$])?r[$]=t[$]:deepCopy(t[$],r[$]))}function getComponentOptions(t){return t.type}function adjustI18nResources(t,r,$){let V=isObject$7(r.messages)?r.messages:{};"__i18nGlobal"in $&&(V=getLocaleMessages(t.locale.value,{messages:V,__i18n:$.__i18nGlobal}));const oe=Object.keys(V);oe.length&&oe.forEach(ie=>{t.mergeLocaleMessage(ie,V[ie])});{if(isObject$7(r.datetimeFormats)){const ie=Object.keys(r.datetimeFormats);ie.length&&ie.forEach(le=>{t.mergeDateTimeFormat(le,r.datetimeFormats[le])})}if(isObject$7(r.numberFormats)){const ie=Object.keys(r.numberFormats);ie.length&&ie.forEach(le=>{t.mergeNumberFormat(le,r.numberFormats[le])})}}}function createTextNode(t){return createVNode(Text$1,null,t,0)}const DEVTOOLS_META="__INTLIFY_META__";let composerID=0;function defineCoreMissingHandler(t){return(r,$,V,oe)=>t($,V,getCurrentInstance()||void 0,oe)}const getMetaInfo=()=>{const t=getCurrentInstance();let r=null;return t&&(r=getComponentOptions(t)[DEVTOOLS_META])?{[DEVTOOLS_META]:r}:null};function createComposer(t={},r){const{__root:$,__injectWithOption:V}=t,oe=$===void 0;let ie=isBoolean$2(t.inheritLocale)?t.inheritLocale:!0;const le=ref($&&ie?$.locale.value:isString$4(t.locale)?t.locale:DEFAULT_LOCALE$1),ue=ref($&&ie?$.fallbackLocale.value:isString$4(t.fallbackLocale)||isArray$9(t.fallbackLocale)||isPlainObject$2(t.fallbackLocale)||t.fallbackLocale===!1?t.fallbackLocale:le.value),de=ref(getLocaleMessages(le.value,t)),pe=ref(isPlainObject$2(t.datetimeFormats)?t.datetimeFormats:{[le.value]:{}}),he=ref(isPlainObject$2(t.numberFormats)?t.numberFormats:{[le.value]:{}});let _e=$?$.missingWarn:isBoolean$2(t.missingWarn)||isRegExp$4(t.missingWarn)?t.missingWarn:!0,$e=$?$.fallbackWarn:isBoolean$2(t.fallbackWarn)||isRegExp$4(t.fallbackWarn)?t.fallbackWarn:!0,Ie=$?$.fallbackRoot:isBoolean$2(t.fallbackRoot)?t.fallbackRoot:!0,Ve=!!t.fallbackFormat,Fe=isFunction$2(t.missing)?t.missing:null,Ue=isFunction$2(t.missing)?defineCoreMissingHandler(t.missing):null,qe=isFunction$2(t.postTranslation)?t.postTranslation:null,Et=$?$.warnHtmlMessage:isBoolean$2(t.warnHtmlMessage)?t.warnHtmlMessage:!0,Lt=!!t.escapeParameter;const hn=$?$.modifiers:isPlainObject$2(t.modifiers)?t.modifiers:{};let Cn=t.pluralRules||$&&$.pluralRules,bn;bn=(()=>{oe&&setFallbackContext(null);const nr={version:VERSION$1,locale:le.value,fallbackLocale:ue.value,messages:de.value,modifiers:hn,pluralRules:Cn,missing:Ue===null?void 0:Ue,missingWarn:_e,fallbackWarn:$e,fallbackFormat:Ve,unresolving:!0,postTranslation:qe===null?void 0:qe,warnHtmlMessage:Et,escapeParameter:Lt,messageResolver:t.messageResolver,messageCompiler:t.messageCompiler,__meta:{framework:"vue"}};nr.datetimeFormats=pe.value,nr.numberFormats=he.value,nr.__datetimeFormatters=isPlainObject$2(bn)?bn.__datetimeFormatters:void 0,nr.__numberFormatters=isPlainObject$2(bn)?bn.__numberFormatters:void 0;const pr=createCoreContext(nr);return oe&&setFallbackContext(pr),pr})(),updateFallbackLocale(bn,le.value,ue.value);function En(){return[le.value,ue.value,de.value,pe.value,he.value]}const wn=computed({get:()=>le.value,set:nr=>{le.value=nr,bn.locale=le.value}}),$n=computed({get:()=>ue.value,set:nr=>{ue.value=nr,bn.fallbackLocale=ue.value,updateFallbackLocale(bn,le.value,nr)}}),Tn=computed(()=>de.value),xn=computed(()=>pe.value),An=computed(()=>he.value);function Mn(){return isFunction$2(qe)?qe:null}function Vn(nr){qe=nr,bn.postTranslation=nr}function Bn(){return Fe}function Dn(nr){nr!==null&&(Ue=defineCoreMissingHandler(nr)),Fe=nr,bn.missing=Ue}const Ln=(nr,pr,gr,$r,Rr,Lr)=>{En();let Vr;try{oe||(bn.fallbackContext=$?getFallbackContext():void 0),Vr=nr(bn)}finally{oe||(bn.fallbackContext=void 0)}if(isNumber$3(Vr)&&Vr===NOT_REOSLVED){const[Nr,dr]=pr();return $&&Ie?$r($):Rr(Nr)}else{if(Lr(Vr))return Vr;throw createI18nError(I18nErrorCodes.UNEXPECTED_RETURN_TYPE)}};function Pn(...nr){return Ln(pr=>Reflect.apply(translate$1,null,[pr,...nr]),()=>parseTranslateArgs(...nr),"translate",pr=>Reflect.apply(pr.t,pr,[...nr]),pr=>pr,pr=>isString$4(pr))}function Fn(...nr){const[pr,gr,$r]=nr;if($r&&!isObject$7($r))throw createI18nError(I18nErrorCodes.INVALID_ARGUMENT);return Pn(pr,gr,assign$4({resolvedMessage:!0},$r||{}))}function Un(...nr){return Ln(pr=>Reflect.apply(datetime,null,[pr,...nr]),()=>parseDateTimeArgs(...nr),"datetime format",pr=>Reflect.apply(pr.d,pr,[...nr]),()=>MISSING_RESOLVE_VALUE,pr=>isString$4(pr))}function Wn(...nr){return Ln(pr=>Reflect.apply(number$2,null,[pr,...nr]),()=>parseNumberArgs(...nr),"number format",pr=>Reflect.apply(pr.n,pr,[...nr]),()=>MISSING_RESOLVE_VALUE,pr=>isString$4(pr))}function Zn(nr){return nr.map(pr=>isString$4(pr)||isNumber$3(pr)||isBoolean$2(pr)?createTextNode(String(pr)):pr)}const br={normalize:Zn,interpolate:nr=>nr,type:"vnode"};function Qn(...nr){return Ln(pr=>{let gr;const $r=pr;try{$r.processor=br,gr=Reflect.apply(translate$1,null,[$r,...nr])}finally{$r.processor=null}return gr},()=>parseTranslateArgs(...nr),"translate",pr=>pr[TranslateVNodeSymbol](...nr),pr=>[createTextNode(pr)],pr=>isArray$9(pr))}function Gn(...nr){return Ln(pr=>Reflect.apply(number$2,null,[pr,...nr]),()=>parseNumberArgs(...nr),"number format",pr=>pr[NumberPartsSymbol](...nr),()=>[],pr=>isString$4(pr)||isArray$9(pr))}function Yn(...nr){return Ln(pr=>Reflect.apply(datetime,null,[pr,...nr]),()=>parseDateTimeArgs(...nr),"datetime format",pr=>pr[DatetimePartsSymbol](...nr),()=>[],pr=>isString$4(pr)||isArray$9(pr))}function er(nr){Cn=nr,bn.pluralRules=Cn}function lr(nr,pr){if(!nr)return!1;const gr=isString$4(pr)?pr:le.value,$r=Kn(gr);return bn.messageResolver($r,nr)!==null}function sr(nr){let pr=null;const gr=fallbackWithLocaleChain(bn,ue.value,le.value);for(let $r=0;$r{ie&&(le.value=nr,bn.locale=nr,updateFallbackLocale(bn,le.value,ue.value))}),watch($.fallbackLocale,nr=>{ie&&(ue.value=nr,bn.fallbackLocale=nr,updateFallbackLocale(bn,le.value,ue.value))}));const Tr={id:composerID,locale:wn,fallbackLocale:$n,get inheritLocale(){return ie},set inheritLocale(nr){ie=nr,nr&&$&&(le.value=$.locale.value,ue.value=$.fallbackLocale.value,updateFallbackLocale(bn,le.value,ue.value))},get availableLocales(){return Object.keys(de.value).sort()},messages:Tn,get modifiers(){return hn},get pluralRules(){return Cn||{}},get isGlobal(){return oe},get missingWarn(){return _e},set missingWarn(nr){_e=nr,bn.missingWarn=_e},get fallbackWarn(){return $e},set fallbackWarn(nr){$e=nr,bn.fallbackWarn=$e},get fallbackRoot(){return Ie},set fallbackRoot(nr){Ie=nr},get fallbackFormat(){return Ve},set fallbackFormat(nr){Ve=nr,bn.fallbackFormat=Ve},get warnHtmlMessage(){return Et},set warnHtmlMessage(nr){Et=nr,bn.warnHtmlMessage=nr},get escapeParameter(){return Lt},set escapeParameter(nr){Lt=nr,bn.escapeParameter=nr},t:Pn,getLocaleMessage:Kn,setLocaleMessage:Jn,mergeLocaleMessage:cr,getPostTranslationHandler:Mn,setPostTranslationHandler:Vn,getMissingHandler:Bn,setMissingHandler:Dn,[SetPluralRulesSymbol]:er};return Tr.datetimeFormats=xn,Tr.numberFormats=An,Tr.rt=Fn,Tr.te=lr,Tr.tm=zn,Tr.d=Un,Tr.n=Wn,Tr.getDateTimeFormat=_r,Tr.setDateTimeFormat=ur,Tr.mergeDateTimeFormat=wr,Tr.getNumberFormat=Cr,Tr.setNumberFormat=mr,Tr.mergeNumberFormat=Er,Tr[InejctWithOptionSymbol]=V,Tr[TranslateVNodeSymbol]=Qn,Tr[DatetimePartsSymbol]=Yn,Tr[NumberPartsSymbol]=Gn,Tr}const baseFormatProps={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:t=>t==="parent"||t==="global",default:"parent"},i18n:{type:Object}};function getInterpolateArg({slots:t},r){return r.length===1&&r[0]==="default"?(t.default?t.default():[]).reduce((V,oe)=>[...V,...oe.type===Fragment?oe.children:[oe]],[]):r.reduce(($,V)=>{const oe=t[V];return oe&&($[V]=oe()),$},{})}function getFragmentableTag(t){return Fragment}const TranslationImpl=defineComponent({name:"i18n-t",props:assign$4({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:t=>isNumber$3(t)||!isNaN(t)}},baseFormatProps),setup(t,r){const{slots:$,attrs:V}=r,oe=t.i18n||useI18n$1({useScope:t.scope,__useComponent:!0});return()=>{const ie=Object.keys($).filter(_e=>_e!=="_"),le={};t.locale&&(le.locale=t.locale),t.plural!==void 0&&(le.plural=isString$4(t.plural)?+t.plural:t.plural);const ue=getInterpolateArg(r,ie),de=oe[TranslateVNodeSymbol](t.keypath,ue,le),pe=assign$4({},V),he=isString$4(t.tag)||isObject$7(t.tag)?t.tag:getFragmentableTag();return h$2(he,pe,de)}}}),Translation=TranslationImpl;function isVNode(t){return isArray$9(t)&&!isString$4(t[0])}function renderFormatter(t,r,$,V){const{slots:oe,attrs:ie}=r;return()=>{const le={part:!0};let ue={};t.locale&&(le.locale=t.locale),isString$4(t.format)?le.key=t.format:isObject$7(t.format)&&(isString$4(t.format.key)&&(le.key=t.format.key),ue=Object.keys(t.format).reduce(($e,Ie)=>$.includes(Ie)?assign$4({},$e,{[Ie]:t.format[Ie]}):$e,{}));const de=V(t.value,le,ue);let pe=[le.key];isArray$9(de)?pe=de.map(($e,Ie)=>{const Ve=oe[$e.type],Fe=Ve?Ve({[$e.type]:$e.value,index:Ie,parts:de}):[$e.value];return isVNode(Fe)&&(Fe[0].key=`${$e.type}-${Ie}`),Fe}):isString$4(de)&&(pe=[de]);const he=assign$4({},ie),_e=isString$4(t.tag)||isObject$7(t.tag)?t.tag:getFragmentableTag();return h$2(_e,he,pe)}}const NumberFormatImpl=defineComponent({name:"i18n-n",props:assign$4({value:{type:Number,required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,r){const $=t.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter(t,r,NUMBER_FORMAT_OPTIONS_KEYS,(...V)=>$[NumberPartsSymbol](...V))}}),NumberFormat=NumberFormatImpl,DatetimeFormatImpl=defineComponent({name:"i18n-d",props:assign$4({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},baseFormatProps),setup(t,r){const $=t.i18n||useI18n$1({useScope:"parent",__useComponent:!0});return renderFormatter(t,r,DATETIME_FORMAT_OPTIONS_KEYS,(...V)=>$[DatetimePartsSymbol](...V))}}),DatetimeFormat=DatetimeFormatImpl;function getComposer$2(t,r){const $=t;if(t.mode==="composition")return $.__getInstance(r)||t.global;{const V=$.__getInstance(r);return V!=null?V.__composer:t.global.__composer}}function vTDirective(t){const r=le=>{const{instance:ue,modifiers:de,value:pe}=le;if(!ue||!ue.$)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const he=getComposer$2(t,ue.$),_e=parseValue(pe);return[Reflect.apply(he.t,he,[...makeParams(_e)]),he]};return{created:(le,ue)=>{const[de,pe]=r(ue);inBrowser&&t.global===pe&&(le.__i18nWatcher=watch(pe.locale,()=>{ue.instance&&ue.instance.$forceUpdate()})),le.__composer=pe,le.textContent=de},unmounted:le=>{inBrowser&&le.__i18nWatcher&&(le.__i18nWatcher(),le.__i18nWatcher=void 0,delete le.__i18nWatcher),le.__composer&&(le.__composer=void 0,delete le.__composer)},beforeUpdate:(le,{value:ue})=>{if(le.__composer){const de=le.__composer,pe=parseValue(ue);le.textContent=Reflect.apply(de.t,de,[...makeParams(pe)])}},getSSRProps:le=>{const[ue]=r(le);return{textContent:ue}}}}function parseValue(t){if(isString$4(t))return{path:t};if(isPlainObject$2(t)){if(!("path"in t))throw createI18nError(I18nErrorCodes.REQUIRED_VALUE,"path");return t}else throw createI18nError(I18nErrorCodes.INVALID_VALUE)}function makeParams(t){const{path:r,locale:$,args:V,choice:oe,plural:ie}=t,le={},ue=V||{};return isString$4($)&&(le.locale=$),isNumber$3(oe)&&(le.plural=oe),isNumber$3(ie)&&(le.plural=ie),[r,ue,le]}function apply(t,r,...$){const V=isPlainObject$2($[0])?$[0]:{},oe=!!V.useI18nComponentName;(isBoolean$2(V.globalInstall)?V.globalInstall:!0)&&([oe?"i18n":Translation.name,"I18nT"].forEach(le=>t.component(le,Translation)),[NumberFormat.name,"I18nN"].forEach(le=>t.component(le,NumberFormat)),[DatetimeFormat.name,"I18nD"].forEach(le=>t.component(le,DatetimeFormat))),t.directive("t",vTDirective(r))}const I18nInjectionKey=makeSymbol("global-vue-i18n");function createI18n(t={},r){const $=isBoolean$2(t.globalInjection)?t.globalInjection:!0,V=!0,oe=new Map,[ie,le]=createGlobal(t),ue=makeSymbol("");function de(_e){return oe.get(_e)||null}function pe(_e,$e){oe.set(_e,$e)}function he(_e){oe.delete(_e)}{const _e={get mode(){return"composition"},get allowComposition(){return V},async install($e,...Ie){if($e.__VUE_I18N_SYMBOL__=ue,$e.provide($e.__VUE_I18N_SYMBOL__,_e),isPlainObject$2(Ie[0])){const Ue=Ie[0];_e.__composerExtend=Ue.__composerExtend,_e.__vueI18nExtend=Ue.__vueI18nExtend}let Ve=null;$&&(Ve=injectGlobalFields($e,_e.global)),apply($e,_e,...Ie);const Fe=$e.unmount;$e.unmount=()=>{Ve&&Ve(),_e.dispose(),Fe()}},get global(){return le},dispose(){ie.stop()},__instances:oe,__getInstance:de,__setInstance:pe,__deleteInstance:he};return _e}}function useI18n$1(t={}){const r=getCurrentInstance();if(r==null)throw createI18nError(I18nErrorCodes.MUST_BE_CALL_SETUP_TOP);if(!r.isCE&&r.appContext.app!=null&&!r.appContext.app.__VUE_I18N_SYMBOL__)throw createI18nError(I18nErrorCodes.NOT_INSTALLED);const $=getI18nInstance(r),V=getGlobalComposer($),oe=getComponentOptions(r),ie=getScope(t,oe);if(ie==="global")return adjustI18nResources(V,t,oe),V;if(ie==="parent"){let de=getComposer($,r,t.__useComponent);return de==null&&(de=V),de}const le=$;let ue=le.__getInstance(r);if(ue==null){const de=assign$4({},t);"__i18n"in oe&&(de.__i18n=oe.__i18n),V&&(de.__root=V),ue=createComposer(de),le.__composerExtend&&(ue[DisposeSymbol]=le.__composerExtend(ue)),setupLifeCycle(le,r,ue),le.__setInstance(r,ue)}return ue}function createGlobal(t,r,$){const V=effectScope();{const oe=V.run(()=>createComposer(t));if(oe==null)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);return[V,oe]}}function getI18nInstance(t){{const r=inject(t.isCE?I18nInjectionKey:t.appContext.app.__VUE_I18N_SYMBOL__);if(!r)throw createI18nError(t.isCE?I18nErrorCodes.NOT_INSTALLED_WITH_PROVIDE:I18nErrorCodes.UNEXPECTED_ERROR);return r}}function getScope(t,r){return isEmptyObject(t)?"__i18n"in r?"local":"global":t.useScope?t.useScope:"local"}function getGlobalComposer(t){return t.mode==="composition"?t.global:t.global.__composer}function getComposer(t,r,$=!1){let V=null;const oe=r.root;let ie=getParentComponentInstance(r,$);for(;ie!=null;){const le=t;if(t.mode==="composition"&&(V=le.__getInstance(ie)),V!=null||oe===ie)break;ie=ie.parent}return V}function getParentComponentInstance(t,r=!1){return t==null?null:r&&t.vnode.ctx||t.parent}function setupLifeCycle(t,r,$){onMounted(()=>{},r),onUnmounted(()=>{const V=$;t.__deleteInstance(r);const oe=V[DisposeSymbol];oe&&(oe(),delete V[DisposeSymbol])},r)}const globalExportProps=["locale","fallbackLocale","availableLocales"],globalExportMethods=["t","rt","d","n","tm","te"];function injectGlobalFields(t,r){const $=Object.create(null);return globalExportProps.forEach(oe=>{const ie=Object.getOwnPropertyDescriptor(r,oe);if(!ie)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);const le=isRef(ie.value)?{get(){return ie.value.value},set(ue){ie.value.value=ue}}:{get(){return ie.get&&ie.get()}};Object.defineProperty($,oe,le)}),t.config.globalProperties.$i18n=$,globalExportMethods.forEach(oe=>{const ie=Object.getOwnPropertyDescriptor(r,oe);if(!ie||!ie.value)throw createI18nError(I18nErrorCodes.UNEXPECTED_ERROR);Object.defineProperty(t.config.globalProperties,`$${oe}`,ie)}),()=>{delete t.config.globalProperties.$i18n,globalExportMethods.forEach(oe=>{delete t.config.globalProperties[`$${oe}`]})}}registerMessageResolver(resolveValue);registerLocaleFallbacker(fallbackWithLocaleChain);function bind$3(t,r){return function(){return t.apply(r,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(t=>r=>{const $=toString.call(r);return t[$]||(t[$]=$.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=t=>(t=t.toLowerCase(),r=>kindOf(r)===t),typeOfTest=t=>r=>typeof r===t,{isArray:isArray$8}=Array,isUndefined=typeOfTest("undefined");function isBuffer$1(t){return t!==null&&!isUndefined(t)&&t.constructor!==null&&!isUndefined(t.constructor)&&isFunction$1(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(t){let r;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?r=ArrayBuffer.isView(t):r=t&&t.buffer&&isArrayBuffer(t.buffer),r}const isString$3=typeOfTest("string"),isFunction$1=typeOfTest("function"),isNumber$2=typeOfTest("number"),isObject$5=t=>t!==null&&typeof t=="object",isBoolean$1=t=>t===!0||t===!1,isPlainObject$1=t=>{if(kindOf(t)!=="object")return!1;const r=getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=t=>isObject$5(t)&&isFunction$1(t.pipe),isFormData=t=>{let r;return t&&(typeof FormData=="function"&&t instanceof FormData||isFunction$1(t.append)&&((r=kindOf(t))==="formdata"||r==="object"&&isFunction$1(t.toString)&&t.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(t,r,{allOwnKeys:$=!1}={}){if(t===null||typeof t>"u")return;let V,oe;if(typeof t!="object"&&(t=[t]),isArray$8(t))for(V=0,oe=t.length;V0;)if(oe=$[V],r===oe.toLowerCase())return oe;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=t=>!isUndefined(t)&&t!==_global;function merge$2(){const{caseless:t}=isContextDefined(this)&&this||{},r={},$=(V,oe)=>{const ie=t&&findKey(r,oe)||oe;isPlainObject$1(r[ie])&&isPlainObject$1(V)?r[ie]=merge$2(r[ie],V):isPlainObject$1(V)?r[ie]=merge$2({},V):isArray$8(V)?r[ie]=V.slice():r[ie]=V};for(let V=0,oe=arguments.length;V(forEach(r,(oe,ie)=>{$&&isFunction$1(oe)?t[ie]=bind$3(oe,$):t[ie]=oe},{allOwnKeys:V}),t),stripBOM=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),inherits$1=(t,r,$,V)=>{t.prototype=Object.create(r.prototype,V),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:r.prototype}),$&&Object.assign(t.prototype,$)},toFlatObject=(t,r,$,V)=>{let oe,ie,le;const ue={};if(r=r||{},t==null)return r;do{for(oe=Object.getOwnPropertyNames(t),ie=oe.length;ie-- >0;)le=oe[ie],(!V||V(le,t,r))&&!ue[le]&&(r[le]=t[le],ue[le]=!0);t=$!==!1&&getPrototypeOf(t)}while(t&&(!$||$(t,r))&&t!==Object.prototype);return r},endsWith=(t,r,$)=>{t=String(t),($===void 0||$>t.length)&&($=t.length),$-=r.length;const V=t.indexOf(r,$);return V!==-1&&V===$},toArray=t=>{if(!t)return null;if(isArray$8(t))return t;let r=t.length;if(!isNumber$2(r))return null;const $=new Array(r);for(;r-- >0;)$[r]=t[r];return $},isTypedArray$1=(t=>r=>t&&r instanceof t)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(t,r)=>{const V=(t&&t[Symbol.iterator]).call(t);let oe;for(;(oe=V.next())&&!oe.done;){const ie=oe.value;r.call(t,ie[0],ie[1])}},matchAll=(t,r)=>{let $;const V=[];for(;($=t.exec(r))!==null;)V.push($);return V},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase$1=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function($,V,oe){return V.toUpperCase()+oe}),hasOwnProperty$1=(({hasOwnProperty:t})=>(r,$)=>t.call(r,$))(Object.prototype),isRegExp$3=kindOfTest("RegExp"),reduceDescriptors=(t,r)=>{const $=Object.getOwnPropertyDescriptors(t),V={};forEach($,(oe,ie)=>{let le;(le=r(oe,ie,t))!==!1&&(V[ie]=le||oe)}),Object.defineProperties(t,V)},freezeMethods=t=>{reduceDescriptors(t,(r,$)=>{if(isFunction$1(t)&&["arguments","caller","callee"].indexOf($)!==-1)return!1;const V=t[$];if(isFunction$1(V)){if(r.enumerable=!1,"writable"in r){r.writable=!1;return}r.set||(r.set=()=>{throw Error("Can not rewrite read-only method '"+$+"'")})}})},toObjectSet=(t,r)=>{const $={},V=oe=>{oe.forEach(ie=>{$[ie]=!0})};return isArray$8(t)?V(t):V(String(t).split(r)),$},noop$3=()=>{},toFiniteNumber=(t,r)=>(t=+t,Number.isFinite(t)?t:r),ALPHA="abcdefghijklmnopqrstuvwxyz",DIGIT="0123456789",ALPHABET={DIGIT,ALPHA,ALPHA_DIGIT:ALPHA+ALPHA.toUpperCase()+DIGIT},generateString=(t=16,r=ALPHABET.ALPHA_DIGIT)=>{let $="";const{length:V}=r;for(;t--;)$+=r[Math.random()*V|0];return $};function isSpecCompliantForm(t){return!!(t&&isFunction$1(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const toJSONObject=t=>{const r=new Array(10),$=(V,oe)=>{if(isObject$5(V)){if(r.indexOf(V)>=0)return;if(!("toJSON"in V)){r[oe]=V;const ie=isArray$8(V)?[]:{};return forEach(V,(le,ue)=>{const de=$(le,oe+1);!isUndefined(de)&&(ie[ue]=de)}),r[oe]=void 0,ie}}return V};return $(t,0)},isAsyncFn=kindOfTest("AsyncFunction"),isThenable=t=>t&&(isObject$5(t)||isFunction$1(t))&&isFunction$1(t.then)&&isFunction$1(t.catch),utils$4={isArray:isArray$8,isArrayBuffer,isBuffer:isBuffer$1,isFormData,isArrayBufferView,isString:isString$3,isNumber:isNumber$2,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,merge:merge$2,extend:extend$1,trim:trim$2,stripBOM,inherits:inherits$1,toFlatObject,kindOf,kindOfTest,endsWith,toArray,forEachEntry,matchAll,isHTMLForm,hasOwnProperty:hasOwnProperty$1,hasOwnProp:hasOwnProperty$1,reduceDescriptors,freezeMethods,toObjectSet,toCamelCase:toCamelCase$1,noop:noop$3,toFiniteNumber,findKey,global:_global,isContextDefined,ALPHABET,generateString,isSpecCompliantForm,toJSONObject,isAsyncFn,isThenable};function AxiosError(t,r,$,V,oe){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",r&&(this.code=r),$&&(this.config=$),V&&(this.request=V),oe&&(this.response=oe)}utils$4.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$4.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(t=>{descriptors[t]={value:t}});Object.defineProperties(AxiosError,descriptors);Object.defineProperty(prototype$1,"isAxiosError",{value:!0});AxiosError.from=(t,r,$,V,oe,ie)=>{const le=Object.create(prototype$1);return utils$4.toFlatObject(t,le,function(de){return de!==Error.prototype},ue=>ue!=="isAxiosError"),AxiosError.call(le,t.message,r,$,V,oe),le.cause=t,le.name=t.name,ie&&Object.assign(le,ie),le};const httpAdapter=null;function isVisitable(t){return utils$4.isPlainObject(t)||utils$4.isArray(t)}function removeBrackets(t){return utils$4.endsWith(t,"[]")?t.slice(0,-2):t}function renderKey(t,r,$){return t?t.concat(r).map(function(oe,ie){return oe=removeBrackets(oe),!$&&ie?"["+oe+"]":oe}).join($?".":""):r}function isFlatArray(t){return utils$4.isArray(t)&&!t.some(isVisitable)}const predicates=utils$4.toFlatObject(utils$4,{},null,function(r){return/^is[A-Z]/.test(r)});function toFormData(t,r,$){if(!utils$4.isObject(t))throw new TypeError("target must be an object");r=r||new FormData,$=utils$4.toFlatObject($,{metaTokens:!0,dots:!1,indexes:!1},!1,function(Fe,Ue){return!utils$4.isUndefined(Ue[Fe])});const V=$.metaTokens,oe=$.visitor||he,ie=$.dots,le=$.indexes,de=($.Blob||typeof Blob<"u"&&Blob)&&utils$4.isSpecCompliantForm(r);if(!utils$4.isFunction(oe))throw new TypeError("visitor must be a function");function pe(Ve){if(Ve===null)return"";if(utils$4.isDate(Ve))return Ve.toISOString();if(!de&&utils$4.isBlob(Ve))throw new AxiosError("Blob is not supported. Use a Buffer instead.");return utils$4.isArrayBuffer(Ve)||utils$4.isTypedArray(Ve)?de&&typeof Blob=="function"?new Blob([Ve]):Buffer.from(Ve):Ve}function he(Ve,Fe,Ue){let qe=Ve;if(Ve&&!Ue&&typeof Ve=="object"){if(utils$4.endsWith(Fe,"{}"))Fe=V?Fe:Fe.slice(0,-2),Ve=JSON.stringify(Ve);else if(utils$4.isArray(Ve)&&isFlatArray(Ve)||(utils$4.isFileList(Ve)||utils$4.endsWith(Fe,"[]"))&&(qe=utils$4.toArray(Ve)))return Fe=removeBrackets(Fe),qe.forEach(function(Lt,hn){!(utils$4.isUndefined(Lt)||Lt===null)&&r.append(le===!0?renderKey([Fe],hn,ie):le===null?Fe:Fe+"[]",pe(Lt))}),!1}return isVisitable(Ve)?!0:(r.append(renderKey(Ue,Fe,ie),pe(Ve)),!1)}const _e=[],$e=Object.assign(predicates,{defaultVisitor:he,convertValue:pe,isVisitable});function Ie(Ve,Fe){if(!utils$4.isUndefined(Ve)){if(_e.indexOf(Ve)!==-1)throw Error("Circular reference detected in "+Fe.join("."));_e.push(Ve),utils$4.forEach(Ve,function(qe,Et){(!(utils$4.isUndefined(qe)||qe===null)&&oe.call(r,qe,utils$4.isString(Et)?Et.trim():Et,Fe,$e))===!0&&Ie(qe,Fe?Fe.concat(Et):[Et])}),_e.pop()}}if(!utils$4.isObject(t))throw new TypeError("data must be an object");return Ie(t),r}function encode$2(t){const r={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(V){return r[V]})}function AxiosURLSearchParams(t,r){this._pairs=[],t&&toFormData(t,this,r)}const prototype=AxiosURLSearchParams.prototype;prototype.append=function(r,$){this._pairs.push([r,$])};prototype.toString=function(r){const $=r?function(V){return r.call(this,V,encode$2)}:encode$2;return this._pairs.map(function(oe){return $(oe[0])+"="+$(oe[1])},"").join("&")};function encode$1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function buildURL(t,r,$){if(!r)return t;const V=$&&$.encode||encode$1,oe=$&&$.serialize;let ie;if(oe?ie=oe(r,$):ie=utils$4.isURLSearchParams(r)?r.toString():new AxiosURLSearchParams(r,$).toString(V),ie){const le=t.indexOf("#");le!==-1&&(t=t.slice(0,le)),t+=(t.indexOf("?")===-1?"?":"&")+ie}return t}class InterceptorManager{constructor(){this.handlers=[]}use(r,$,V){return this.handlers.push({fulfilled:r,rejected:$,synchronous:V?V.synchronous:!1,runWhen:V?V.runWhen:null}),this.handlers.length-1}eject(r){this.handlers[r]&&(this.handlers[r]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(r){utils$4.forEach(this.handlers,function(V){V!==null&&r(V)})}}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 t;return typeof navigator<"u"&&((t=navigator.product)==="ReactNative"||t==="NativeScript"||t==="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(t,r){return toFormData(t,new platform$1.classes.URLSearchParams,Object.assign({visitor:function($,V,oe,ie){return platform$1.isNode&&utils$4.isBuffer($)?(this.append(V,$.toString("base64")),!1):ie.defaultVisitor.apply(this,arguments)}},r))}function parsePropPath(t){return utils$4.matchAll(/\w+|\[(\w*)]/g,t).map(r=>r[0]==="[]"?"":r[1]||r[0])}function arrayToObject$1(t){const r={},$=Object.keys(t);let V;const oe=$.length;let ie;for(V=0;V=$.length;return le=!le&&utils$4.isArray(oe)?oe.length:le,de?(utils$4.hasOwnProp(oe,le)?oe[le]=[oe[le],V]:oe[le]=V,!ue):((!oe[le]||!utils$4.isObject(oe[le]))&&(oe[le]=[]),r($,V,oe[le],ie)&&utils$4.isArray(oe[le])&&(oe[le]=arrayToObject$1(oe[le])),!ue)}if(utils$4.isFormData(t)&&utils$4.isFunction(t.entries)){const $={};return utils$4.forEachEntry(t,(V,oe)=>{r(parsePropPath(V),oe,$,0)}),$}return null}function stringifySafely(t,r,$){if(utils$4.isString(t))try{return(r||JSON.parse)(t),utils$4.trim(t)}catch(V){if(V.name!=="SyntaxError")throw V}return($||JSON.stringify)(t)}const defaults$3={transitional:transitionalDefaults,adapter:["xhr","http"],transformRequest:[function(r,$){const V=$.getContentType()||"",oe=V.indexOf("application/json")>-1,ie=utils$4.isObject(r);if(ie&&utils$4.isHTMLForm(r)&&(r=new FormData(r)),utils$4.isFormData(r))return oe&&oe?JSON.stringify(formDataToJSON(r)):r;if(utils$4.isArrayBuffer(r)||utils$4.isBuffer(r)||utils$4.isStream(r)||utils$4.isFile(r)||utils$4.isBlob(r))return r;if(utils$4.isArrayBufferView(r))return r.buffer;if(utils$4.isURLSearchParams(r))return $.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),r.toString();let ue;if(ie){if(V.indexOf("application/x-www-form-urlencoded")>-1)return toURLEncodedForm(r,this.formSerializer).toString();if((ue=utils$4.isFileList(r))||V.indexOf("multipart/form-data")>-1){const de=this.env&&this.env.FormData;return toFormData(ue?{"files[]":r}:r,de&&new de,this.formSerializer)}}return ie||oe?($.setContentType("application/json",!1),stringifySafely(r)):r}],transformResponse:[function(r){const $=this.transitional||defaults$3.transitional,V=$&&$.forcedJSONParsing,oe=this.responseType==="json";if(r&&utils$4.isString(r)&&(V&&!this.responseType||oe)){const le=!($&&$.silentJSONParsing)&&oe;try{return JSON.parse(r)}catch(ue){if(le)throw ue.name==="SyntaxError"?AxiosError.from(ue,AxiosError.ERR_BAD_RESPONSE,this,null,this.response):ue}}return r}],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(r){return r>=200&&r<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};utils$4.forEach(["delete","get","head","post","put","patch"],t=>{defaults$3.headers[t]={}});const defaults$4=defaults$3,ignoreDuplicateOf=utils$4.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=t=>{const r={};let $,V,oe;return t&&t.split(` `).forEach(function(le){oe=le.indexOf(":"),$=le.substring(0,oe).trim().toLowerCase(),V=le.substring(oe+1).trim(),!(!$||r[$]&&ignoreDuplicateOf[$])&&($==="set-cookie"?r[$]?r[$].push(V):r[$]=[V]:r[$]=r[$]?r[$]+", "+V:V)}),r},$internals=Symbol("internals");function normalizeHeader(t){return t&&String(t).trim().toLowerCase()}function normalizeValue(t){return t===!1||t==null?t:utils$4.isArray(t)?t.map(normalizeValue):String(t)}function parseTokens(t){const r=Object.create(null),$=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let V;for(;V=$.exec(t);)r[V[1]]=V[2];return r}const isValidHeaderName=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function matchHeaderValue(t,r,$,V,oe){if(utils$4.isFunction(V))return V.call(this,r,$);if(oe&&(r=$),!!utils$4.isString(r)){if(utils$4.isString(V))return r.indexOf(V)!==-1;if(utils$4.isRegExp(V))return V.test(r)}}function formatHeader(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(r,$,V)=>$.toUpperCase()+V)}function buildAccessors(t,r){const $=utils$4.toCamelCase(" "+r);["get","set","has"].forEach(V=>{Object.defineProperty(t,V+$,{value:function(oe,ie,le){return this[V].call(this,r,oe,ie,le)},configurable:!0})})}class AxiosHeaders{constructor(r){r&&this.set(r)}set(r,$,V){const oe=this;function ie(ue,de,pe){const he=normalizeHeader(de);if(!he)throw new Error("header name must be a non-empty string");const _e=utils$4.findKey(oe,he);(!_e||oe[_e]===void 0||pe===!0||pe===void 0&&oe[_e]!==!1)&&(oe[_e||de]=normalizeValue(ue))}const le=(ue,de)=>utils$4.forEach(ue,(pe,he)=>ie(pe,he,de));return utils$4.isPlainObject(r)||r instanceof this.constructor?le(r,$):utils$4.isString(r)&&(r=r.trim())&&!isValidHeaderName(r)?le(parseHeaders(r),$):r!=null&&ie($,r,V),this}get(r,$){if(r=normalizeHeader(r),r){const V=utils$4.findKey(this,r);if(V){const oe=this[V];if(!$)return oe;if($===!0)return parseTokens(oe);if(utils$4.isFunction($))return $.call(this,oe,V);if(utils$4.isRegExp($))return $.exec(oe);throw new TypeError("parser must be boolean|regexp|function")}}}has(r,$){if(r=normalizeHeader(r),r){const V=utils$4.findKey(this,r);return!!(V&&this[V]!==void 0&&(!$||matchHeaderValue(this,this[V],V,$)))}return!1}delete(r,$){const V=this;let oe=!1;function ie(le){if(le=normalizeHeader(le),le){const ue=utils$4.findKey(V,le);ue&&(!$||matchHeaderValue(V,V[ue],ue,$))&&(delete V[ue],oe=!0)}}return utils$4.isArray(r)?r.forEach(ie):ie(r),oe}clear(r){const $=Object.keys(this);let V=$.length,oe=!1;for(;V--;){const ie=$[V];(!r||matchHeaderValue(this,this[ie],ie,r,!0))&&(delete this[ie],oe=!0)}return oe}normalize(r){const $=this,V={};return utils$4.forEach(this,(oe,ie)=>{const le=utils$4.findKey(V,ie);if(le){$[le]=normalizeValue(oe),delete $[ie];return}const ue=r?formatHeader(ie):String(ie).trim();ue!==ie&&delete $[ie],$[ue]=normalizeValue(oe),V[ue]=!0}),this}concat(...r){return this.constructor.concat(this,...r)}toJSON(r){const $=Object.create(null);return utils$4.forEach(this,(V,oe)=>{V!=null&&V!==!1&&($[oe]=r&&utils$4.isArray(V)?V.join(", "):V)}),$}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([r,$])=>r+": "+$).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(r){return r instanceof this?r:new this(r)}static concat(r,...$){const V=new this(r);return $.forEach(oe=>V.set(oe)),V}static accessor(r){const V=(this[$internals]=this[$internals]={accessors:{}}).accessors,oe=this.prototype;function ie(le){const ue=normalizeHeader(le);V[ue]||(buildAccessors(oe,le),V[ue]=!0)}return utils$4.isArray(r)?r.forEach(ie):ie(r),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$4.reduceDescriptors(AxiosHeaders.prototype,({value:t},r)=>{let $=r[0].toUpperCase()+r.slice(1);return{get:()=>t,set(V){this[$]=V}}});utils$4.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(t,r){const $=this||defaults$4,V=r||$,oe=AxiosHeaders$1.from(V.headers);let ie=V.data;return utils$4.forEach(t,function(ue){ie=ue.call($,ie,oe.normalize(),r?r.status:void 0)}),oe.normalize(),ie}function isCancel(t){return!!(t&&t.__CANCEL__)}function CanceledError(t,r,$){AxiosError.call(this,t??"canceled",AxiosError.ERR_CANCELED,r,$),this.name="CanceledError"}utils$4.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(t,r,$){const V=$.config.validateStatus;!$.status||!V||V($.status)?t($):r(new AxiosError("Request failed with status code "+$.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor($.status/100)-4],$.config,$.request,$))}const cookies=platform$1.isStandardBrowserEnv?function(){return{write:function($,V,oe,ie,le,ue){const de=[];de.push($+"="+encodeURIComponent(V)),utils$4.isNumber(oe)&&de.push("expires="+new Date(oe).toGMTString()),utils$4.isString(ie)&&de.push("path="+ie),utils$4.isString(le)&&de.push("domain="+le),ue===!0&&de.push("secure"),document.cookie=de.join("; ")},read:function($){const V=document.cookie.match(new RegExp("(^|;\\s*)("+$+")=([^;]*)"));return V?decodeURIComponent(V[3]):null},remove:function($){this.write($,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function combineURLs(t,r){return r?t.replace(/\/+$/,"")+"/"+r.replace(/^\/+/,""):t}function buildFullPath(t,r){return t&&!isAbsoluteURL(r)?combineURLs(t,r):r}const isURLSameOrigin=platform$1.isStandardBrowserEnv?function(){const r=/(msie|trident)/i.test(navigator.userAgent),$=document.createElement("a");let V;function oe(ie){let le=ie;return r&&($.setAttribute("href",le),le=$.href),$.setAttribute("href",le),{href:$.href,protocol:$.protocol?$.protocol.replace(/:$/,""):"",host:$.host,search:$.search?$.search.replace(/^\?/,""):"",hash:$.hash?$.hash.replace(/^#/,""):"",hostname:$.hostname,port:$.port,pathname:$.pathname.charAt(0)==="/"?$.pathname:"/"+$.pathname}}return V=oe(window.location.href),function(le){const ue=utils$4.isString(le)?oe(le):le;return ue.protocol===V.protocol&&ue.host===V.host}}():function(){return function(){return!0}}();function parseProtocol(t){const r=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return r&&r[1]||""}function speedometer(t,r){t=t||10;const $=new Array(t),V=new Array(t);let oe=0,ie=0,le;return r=r!==void 0?r:1e3,function(de){const pe=Date.now(),he=V[ie];le||(le=pe),$[oe]=de,V[oe]=pe;let _e=ie,$e=0;for(;_e!==oe;)$e+=$[_e++],_e=_e%t;if(oe=(oe+1)%t,oe===ie&&(ie=(ie+1)%t),pe-le{const ie=oe.loaded,le=oe.lengthComputable?oe.total:void 0,ue=ie-$,de=V(ue),pe=ie<=le;$=ie;const he={loaded:ie,total:le,progress:le?ie/le:void 0,bytes:ue,rate:de||void 0,estimated:de&&le&&pe?(le-ie)/de:void 0,event:oe};he[r?"download":"upload"]=!0,t(he)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(t){return new Promise(function($,V){let oe=t.data;const ie=AxiosHeaders$1.from(t.headers).normalize(),le=t.responseType;let ue;function de(){t.cancelToken&&t.cancelToken.unsubscribe(ue),t.signal&&t.signal.removeEventListener("abort",ue)}let pe;utils$4.isFormData(oe)&&(platform$1.isStandardBrowserEnv||platform$1.isStandardBrowserWebWorkerEnv?ie.setContentType(!1):ie.getContentType(/^\s*multipart\/form-data/)?utils$4.isString(pe=ie.getContentType())&&ie.setContentType(pe.replace(/^\s*(multipart\/form-data);+/,"$1")):ie.setContentType("multipart/form-data"));let he=new XMLHttpRequest;if(t.auth){const Ve=t.auth.username||"",Fe=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";ie.set("Authorization","Basic "+btoa(Ve+":"+Fe))}const _e=buildFullPath(t.baseURL,t.url);he.open(t.method.toUpperCase(),buildURL(_e,t.params,t.paramsSerializer),!0),he.timeout=t.timeout;function $e(){if(!he)return;const Ve=AxiosHeaders$1.from("getAllResponseHeaders"in he&&he.getAllResponseHeaders()),Ue={data:!le||le==="text"||le==="json"?he.responseText:he.response,status:he.status,statusText:he.statusText,headers:Ve,config:t,request:he};settle(function(Et){$(Et),de()},function(Et){V(Et),de()},Ue),he=null}if("onloadend"in he?he.onloadend=$e:he.onreadystatechange=function(){!he||he.readyState!==4||he.status===0&&!(he.responseURL&&he.responseURL.indexOf("file:")===0)||setTimeout($e)},he.onabort=function(){he&&(V(new AxiosError("Request aborted",AxiosError.ECONNABORTED,t,he)),he=null)},he.onerror=function(){V(new AxiosError("Network Error",AxiosError.ERR_NETWORK,t,he)),he=null},he.ontimeout=function(){let Fe=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const Ue=t.transitional||transitionalDefaults;t.timeoutErrorMessage&&(Fe=t.timeoutErrorMessage),V(new AxiosError(Fe,Ue.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,t,he)),he=null},platform$1.isStandardBrowserEnv){const Ve=(t.withCredentials||isURLSameOrigin(_e))&&t.xsrfCookieName&&cookies.read(t.xsrfCookieName);Ve&&ie.set(t.xsrfHeaderName,Ve)}oe===void 0&&ie.setContentType(null),"setRequestHeader"in he&&utils$4.forEach(ie.toJSON(),function(Fe,Ue){he.setRequestHeader(Ue,Fe)}),utils$4.isUndefined(t.withCredentials)||(he.withCredentials=!!t.withCredentials),le&&le!=="json"&&(he.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&he.addEventListener("progress",progressEventReducer(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&he.upload&&he.upload.addEventListener("progress",progressEventReducer(t.onUploadProgress)),(t.cancelToken||t.signal)&&(ue=Ve=>{he&&(V(!Ve||Ve.type?new CanceledError(null,t,he):Ve),he.abort(),he=null)},t.cancelToken&&t.cancelToken.subscribe(ue),t.signal&&(t.signal.aborted?ue():t.signal.addEventListener("abort",ue)));const Ie=parseProtocol(_e);if(Ie&&platform$1.protocols.indexOf(Ie)===-1){V(new AxiosError("Unsupported protocol "+Ie+":",AxiosError.ERR_BAD_REQUEST,t));return}he.send(oe||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$4.forEach(knownAdapters,(t,r)=>{if(t){try{Object.defineProperty(t,"name",{value:r})}catch{}Object.defineProperty(t,"adapterName",{value:r})}});const renderReason=t=>`- ${t}`,isResolvedHandle=t=>utils$4.isFunction(t)||t===null||t===!1,adapters={getAdapter:t=>{t=utils$4.isArray(t)?t:[t];const{length:r}=t;let $,V;const oe={};for(let ie=0;ie`adapter ${ue} `+(de===!1?"is not supported by the environment":"is not available in the build"));let le=r?ie.length>1?`since : `+ie.map(renderReason).join(` `):" "+renderReason(ie[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+le,"ERR_NOT_SUPPORT")}return V},adapters:knownAdapters};function throwIfCancellationRequested(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new CanceledError(null,t)}function dispatchRequest(t){return throwIfCancellationRequested(t),t.headers=AxiosHeaders$1.from(t.headers),t.data=transformData.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(t.adapter||defaults$4.adapter)(t).then(function(V){return throwIfCancellationRequested(t),V.data=transformData.call(t,t.transformResponse,V),V.headers=AxiosHeaders$1.from(V.headers),V},function(V){return isCancel(V)||(throwIfCancellationRequested(t),V&&V.response&&(V.response.data=transformData.call(t,t.transformResponse,V.response),V.response.headers=AxiosHeaders$1.from(V.response.headers))),Promise.reject(V)})}const headersToObject=t=>t instanceof AxiosHeaders$1?t.toJSON():t;function mergeConfig(t,r){r=r||{};const $={};function V(pe,he,_e){return utils$4.isPlainObject(pe)&&utils$4.isPlainObject(he)?utils$4.merge.call({caseless:_e},pe,he):utils$4.isPlainObject(he)?utils$4.merge({},he):utils$4.isArray(he)?he.slice():he}function oe(pe,he,_e){if(utils$4.isUndefined(he)){if(!utils$4.isUndefined(pe))return V(void 0,pe,_e)}else return V(pe,he,_e)}function ie(pe,he){if(!utils$4.isUndefined(he))return V(void 0,he)}function le(pe,he){if(utils$4.isUndefined(he)){if(!utils$4.isUndefined(pe))return V(void 0,pe)}else return V(void 0,he)}function ue(pe,he,_e){if(_e in r)return V(pe,he);if(_e in t)return V(void 0,pe)}const de={url:ie,method:ie,data:ie,baseURL:le,transformRequest:le,transformResponse:le,paramsSerializer:le,timeout:le,timeoutMessage:le,withCredentials:le,adapter:le,responseType:le,xsrfCookieName:le,xsrfHeaderName:le,onUploadProgress:le,onDownloadProgress:le,decompress:le,maxContentLength:le,maxBodyLength:le,beforeRedirect:le,transport:le,httpAgent:le,httpsAgent:le,cancelToken:le,socketPath:le,responseEncoding:le,validateStatus:ue,headers:(pe,he)=>oe(headersToObject(pe),headersToObject(he),!0)};return utils$4.forEach(Object.keys(Object.assign({},t,r)),function(he){const _e=de[he]||oe,$e=_e(t[he],r[he],he);utils$4.isUndefined($e)&&_e!==ue||($[he]=$e)}),$}const VERSION="1.5.1",validators$1={};["object","boolean","number","function","string","symbol"].forEach((t,r)=>{validators$1[t]=function(V){return typeof V===t||"a"+(r<1?"n ":" ")+t}});const deprecatedWarnings={};validators$1.transitional=function(r,$,V){function oe(ie,le){return"[Axios v"+VERSION+"] Transitional option '"+ie+"'"+le+(V?". "+V:"")}return(ie,le,ue)=>{if(r===!1)throw new AxiosError(oe(le," has been removed"+($?" in "+$:"")),AxiosError.ERR_DEPRECATED);return $&&!deprecatedWarnings[le]&&(deprecatedWarnings[le]=!0,console.warn(oe(le," has been deprecated since v"+$+" and will be removed in the near future"))),r?r(ie,le,ue):!0}};function assertOptions(t,r,$){if(typeof t!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const V=Object.keys(t);let oe=V.length;for(;oe-- >0;){const ie=V[oe],le=r[ie];if(le){const ue=t[ie],de=ue===void 0||le(ue,ie,t);if(de!==!0)throw new AxiosError("option "+ie+" must be "+de,AxiosError.ERR_BAD_OPTION_VALUE);continue}if($!==!0)throw new AxiosError("Unknown option "+ie,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(r){this.defaults=r,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(r,$){typeof r=="string"?($=$||{},$.url=r):$=r||{},$=mergeConfig(this.defaults,$);const{transitional:V,paramsSerializer:oe,headers:ie}=$;V!==void 0&&validator.assertOptions(V,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),oe!=null&&(utils$4.isFunction(oe)?$.paramsSerializer={serialize:oe}:validator.assertOptions(oe,{encode:validators.function,serialize:validators.function},!0)),$.method=($.method||this.defaults.method||"get").toLowerCase();let le=ie&&utils$4.merge(ie.common,ie[$.method]);ie&&utils$4.forEach(["delete","get","head","post","put","patch","common"],Ve=>{delete ie[Ve]}),$.headers=AxiosHeaders$1.concat(le,ie);const ue=[];let de=!0;this.interceptors.request.forEach(function(Fe){typeof Fe.runWhen=="function"&&Fe.runWhen($)===!1||(de=de&&Fe.synchronous,ue.unshift(Fe.fulfilled,Fe.rejected))});const pe=[];this.interceptors.response.forEach(function(Fe){pe.push(Fe.fulfilled,Fe.rejected)});let he,_e=0,$e;if(!de){const Ve=[dispatchRequest.bind(this),void 0];for(Ve.unshift.apply(Ve,ue),Ve.push.apply(Ve,pe),$e=Ve.length,he=Promise.resolve($);_e<$e;)he=he.then(Ve[_e++],Ve[_e++]);return he}$e=ue.length;let Ie=$;for(_e=0;_e<$e;){const Ve=ue[_e++],Fe=ue[_e++];try{Ie=Ve(Ie)}catch(Ue){Fe.call(this,Ue);break}}try{he=dispatchRequest.call(this,Ie)}catch(Ve){return Promise.reject(Ve)}for(_e=0,$e=pe.length;_e<$e;)he=he.then(pe[_e++],pe[_e++]);return he}getUri(r){r=mergeConfig(this.defaults,r);const $=buildFullPath(r.baseURL,r.url);return buildURL($,r.params,r.paramsSerializer)}}utils$4.forEach(["delete","get","head","options"],function(r){Axios.prototype[r]=function($,V){return this.request(mergeConfig(V||{},{method:r,url:$,data:(V||{}).data}))}});utils$4.forEach(["post","put","patch"],function(r){function $(V){return function(ie,le,ue){return this.request(mergeConfig(ue||{},{method:r,headers:V?{"Content-Type":"multipart/form-data"}:{},url:ie,data:le}))}}Axios.prototype[r]=$(),Axios.prototype[r+"Form"]=$(!0)});const Axios$1=Axios;class CancelToken{constructor(r){if(typeof r!="function")throw new TypeError("executor must be a function.");let $;this.promise=new Promise(function(ie){$=ie});const V=this;this.promise.then(oe=>{if(!V._listeners)return;let ie=V._listeners.length;for(;ie-- >0;)V._listeners[ie](oe);V._listeners=null}),this.promise.then=oe=>{let ie;const le=new Promise(ue=>{V.subscribe(ue),ie=ue}).then(oe);return le.cancel=function(){V.unsubscribe(ie)},le},r(function(ie,le,ue){V.reason||(V.reason=new CanceledError(ie,le,ue),$(V.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]}unsubscribe(r){if(!this._listeners)return;const $=this._listeners.indexOf(r);$!==-1&&this._listeners.splice($,1)}static source(){let r;return{token:new CancelToken(function(oe){r=oe}),cancel:r}}}const CancelToken$1=CancelToken;function spread(t){return function($){return t.apply(null,$)}}function isAxiosError(t){return utils$4.isObject(t)&&t.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(([t,r])=>{HttpStatusCode[r]=t});const HttpStatusCode$1=HttpStatusCode;function createInstance(t){const r=new Axios$1(t),$=bind$3(Axios$1.prototype.request,r);return utils$4.extend($,Axios$1.prototype,r,{allOwnKeys:!0}),utils$4.extend($,r,null,{allOwnKeys:!0}),$.create=function(oe){return createInstance(mergeConfig(t,oe))},$}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(r){return Promise.all(r)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=t=>formDataToJSON(utils$4.isHTMLForm(t)?new FormData(t):t);axios.getAdapter=adapters.getAdapter;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=t=>{config=Object.assign(config,t)},getConfig=t=>{if(typeof t=="string"){const r=t.split(".");if(r&&r.length){let $=config;return r.forEach(V=>{$&&typeof $[V]<"u"?$=$[V]:$=null}),$}}return config},getPlatformConfig=async t=>(t.config.globalProperties.$config=getConfig(),axios$1({method:"get",url:`${VITE_PUBLIC_PATH}platform-config.json`}).then(({data:r})=>{let $=t.config.globalProperties.$config;return t&&$&&typeof r=="object"&&($=Object.assign($,r),t.config.globalProperties.$config=$,setConfig($)),$}).catch(()=>{throw"请在public文件夹下添加platform-config.json配置文件"})),responsiveStorageNameSpace=()=>getConfig().ResponsiveStorageNameSpace;function siphonI18n(t="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(([r,$])=>[r.match(/([A-Za-z0-9-_]+)\./i)[1],$.default]))[t]}const localesConfigs={zh:{...siphonI18n("zh-CN"),...zhCn},en:{...siphonI18n("en"),...en$1}};function getObjectKeys(t){const r=[],$=[];for(r.push({obj:t,key:""});r.length>0;){const{obj:V,key:oe}=r.pop();for(const ie in V){const le=oe?`${oe}.${ie}`:ie;V[ie]&&D$1(V[ie])?r.push({obj:V[ie],key:le}):$.push(le)}}return $}function transformI18n(t=""){var $;if(!t)return"";if(typeof t=="object"){const V=i18n.global.locale;return t[V==null?void 0:V.value]}const r=($=t.match(/(\S*)\./))==null?void 0:$.input;return r&&getObjectKeys(siphonI18n("zh-CN")).find(V=>V===r)||!r&&Object.keys(siphonI18n("zh-CN")).includes(t)?i18n.global.t.call(i18n.global.locale,t):t}const $t=t=>t;var na;const i18n=createI18n({legacy:!1,locale:((na=rr().getItem(`${responsiveStorageNameSpace()}locale`))==null?void 0:na.locale)??"zh",fallbackLocale:"en",messages:localesConfigs});function useI18n(t){t.use(i18n)}const home$1=0,doc=1,utils$3=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/videoFrame",name:"VideoFrame",component:()=>__vitePreload(()=>import("./index2.js"),["static/js/index2.js","static/js/mitt.js","static/css/index2.css"]),meta:{title:$t("menus.hsVideoFrame"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/able/wavesurfer",name:"Wavesurfer",component:()=>__vitePreload(()=>import("./index3.js"),["static/js/index3.js","static/js/vue-tippy.esm-browser.js","static/css/index3.css"]),meta:{title:$t("menus.hsWavesurfer"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/able/directives",name:"Directives",component:()=>__vitePreload(()=>import("./directives.js"),[]),meta:{title:$t("menus.hsOptimize")}},{path:"/able/watermark",name:"WaterMark",component:()=>__vitePreload(()=>import("./watermark.js"),[]),meta:{title:$t("menus.hsWatermark")}},{path:"/able/print",name:"Print",component:()=>__vitePreload(()=>import("./print.js"),["static/js/print.js","static/js/print2.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/css/print.css"]),meta:{title:$t("menus.hsPrint")}},{path:"/able/download",name:"Download",component:()=>__vitePreload(()=>import("./download.js"),[]),meta:{title:$t("menus.hsDownload")}},{path:"/able/iconSelect",name:"IconSelect",component:()=>__vitePreload(()=>import("./icon-select.js"),[]),meta:{title:$t("menus.hsIconSelect")}},{path:"/able/timeline",name:"TimeLine",component:()=>__vitePreload(()=>import("./timeline.js"),["static/js/timeline.js","static/js/index60.js","static/css/index12.css","static/js/hooks.js","static/js/iphone.js","static/css/timeline.css"]),meta:{title:$t("menus.hsTimeline")}},{path:"/able/menuTree",name:"MenuTree",component:()=>__vitePreload(()=>import("./menu-tree.js"),["static/js/menu-tree.js","static/js/hooks.js"]),meta:{title:$t("menus.hsMenuTree")}},{path:"/able/lineTree",name:"LineTree",component:()=>__vitePreload(()=>import("./line-tree.js"),["static/js/line-tree.js","static/css/line-tree.css"]),meta:{title:$t("menus.hsLineTree")}},{path:"/able/debounce",name:"Debounce",component:()=>__vitePreload(()=>import("./debounce.js"),[]),meta:{title:$t("menus.hsDebounce")}},{path:"/able/barcode",name:"BarCode",component:()=>__vitePreload(()=>import("./barcode.js"),[]),meta:{title:$t("menus.hsBarcode")}},{path:"/able/qrcode",name:"QrCode",component:()=>__vitePreload(()=>import("./qrcode.js"),["static/js/qrcode.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css"]),meta:{title:$t("menus.hsQrcode")}},{path:"/able/cascader",name:"Cascader",component:()=>__vitePreload(()=>import("./cascader.js"),["static/js/cascader.js","static/css/cascader.css"]),meta:{title:$t("menus.hsCascader")}},{path:"/able/swiper",name:"Swiper",component:()=>__vitePreload(()=>import("./swiper.js"),["static/js/swiper.js","static/css/swiper.css"]),meta:{title:$t("menus.hsSwiper")}},{path:"/able/virtualList",name:"VirtualList",component:()=>__vitePreload(()=>import("./index4.js"),["static/js/index4.js","static/js/vertical.js","static/js/vue-virtual-scroller.esm.js","static/css/vertical.css","static/js/horizontal.js","static/css/horizontal.css","static/css/index4.css"]),meta:{title:$t("menus.hsVirtualList")}},{path:"/able/pdf",name:"Pdf",component:()=>__vitePreload(()=>import("./pdf.js"),["static/js/pdf.js","static/js/vue.runtime.esm-bundler.js"]),meta:{title:$t("menus.hsPdf")}},{path:"/able/excel",name:"Excel",component:()=>__vitePreload(()=>import("./excel.js"),["static/js/excel.js","static/js/xlsx.js"]),meta:{title:$t("menus.hsExcel")}},{path:"/able/infiniteScroll",name:"InfiniteScroll",component:()=>__vitePreload(()=>import("./infinite-scroll.js"),[]),meta:{title:$t("menus.hsInfiniteScroll")}},{path:"/able/sensitive",name:"Sensitive",component:()=>__vitePreload(()=>import("./sensitive.js"),[]),meta:{title:$t("menus.hsSensitive"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/able/pinyin",name:"Pinyin",component:()=>__vitePreload(()=>import("./pinyin.js"),["static/js/pinyin.js","static/js/index62.js","static/css/pinyin.css"]),meta:{title:$t("menus.hsPinyin"),extraIcon:"IF-pure-iconfont-new svg"}}]},__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("./index5.js"),["static/js/index5.js","static/js/columns.js","static/css/index5.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/dialog",meta:{icon:"menu",title:$t("menus.hscomponents"),rank:components$1},children:[{path:"/components/dialog",name:"DialogPage",component:()=>__vitePreload(()=>import("./index6.js"),["static/js/index6.js","static/js/form.vue_vue_type_script_setup_true_lang.js","static/js/formPrimitive.vue_vue_type_script_setup_true_lang.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("./index7.js"),["static/js/index7.js","static/js/hooks.js","static/js/check.js"]),meta:{title:$t("menus.hsmessage")}},{path:"/components/segmented",name:"Segmented",component:()=>__vitePreload(()=>import("./index8.js"),["static/js/index8.js","static/js/home-filled.js","static/js/hooks.js","static/css/index6.css"]),meta:{title:$t("menus.hssegmented"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/waterfall",name:"Waterfall",component:()=>__vitePreload(()=>import("./index9.js"),["static/js/index9.js","static/js/back_top.js","static/css/index7.css"]),meta:{title:$t("menus.hswaterfall"),extraIcon:"IF-pure-iconfont-new svg"}},{path:"/components/video",name:"VideoPage",component:()=>__vitePreload(()=>import("./index10.js"),["static/js/index10.js","static/js/hooks.js","static/css/index8.css"]),meta:{title:$t("menus.hsvideo")}},{path:"/components/map",name:"MapPage",component:()=>__vitePreload(()=>import("./index11.js"),["static/js/index11.js","static/css/index9.css"]),meta:{title:$t("menus.hsmap"),keepAlive:!0,transition:{name:"fade"}}},{path:"/components/draggable",name:"Draggable",component:()=>__vitePreload(()=>import("./index12.js"),["static/js/index12.js","static/js/sortable.esm.js","static/js/app.js","static/js/hooks.js","static/css/index10.css"]),meta:{title:$t("menus.hsdraggable"),transition:{enterTransition:"animate__zoomIn",leaveTransition:"animate__zoomOut"}}},{path:"/components/splitPane",name:"SplitPane",component:()=>__vitePreload(()=>import("./index13.js"),["static/js/index13.js","static/css/index11.css"]),meta:{title:$t("menus.hssplitPane")}},{path:"/components/button",name:"ButtonPage",component:()=>__vitePreload(()=>import("./index14.js"),[]),meta:{title:$t("menus.hsbutton")}},{path:"/components/cropping",name:"Cropping",component:()=>__vitePreload(()=>import("./index15.js"),["static/js/index15.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css"]),meta:{title:$t("menus.hscropping")}},{path:"/components/countTo",name:"CountTo",component:()=>__vitePreload(()=>import("./index16.js"),["static/js/index16.js","static/js/propTypes.js","static/css/index15.css"]),meta:{title:$t("menus.hscountTo")}},{path:"/components/selector",name:"Selector",component:()=>__vitePreload(()=>import("./index17.js"),["static/js/index17.js","static/css/index16.css"]),meta:{title:$t("menus.hsselector")}},{path:"/components/seamlessScroll",name:"SeamlessScroll",component:()=>__vitePreload(()=>import("./index18.js"),["static/js/index18.js","static/css/index17.css"]),meta:{title:$t("menus.hsseamless")}},{path:"/components/contextmenu",name:"ContextMenu",component:()=>__vitePreload(()=>import("./index19.js"),["static/js/index19.js","static/js/basic.js","static/js/index.esm.js","static/css/basic.css","static/js/menuGroup.js","static/css/menuGroup.css","static/js/menuDynamic.js","static/css/menuDynamic.css","static/css/index18.css"]),meta:{title:$t("menus.hscontextmenu")}},{path:"/components/typeit",name:"Typeit",component:()=>__vitePreload(()=>import("./index20.js"),["static/js/index20.js","static/js/index64.js"]),meta:{title:$t("menus.hstypeit")}},{path:"/components/json-editor",name:"JsonEditor",component:()=>__vitePreload(()=>import("./index21.js"),["static/js/index21.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css"]),meta:{title:$t("menus.hsjsoneditor")}},{path:"/components/danmaku",name:"Danmaku",component:()=>__vitePreload(()=>import("./index22.js"),["static/js/index22.js","static/css/index19.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("./index23.js"),["static/js/index23.js","static/js/base.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css","static/js/multi.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/picUpload.vue_vue_type_script_setup_true_lang.js","static/css/index20.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.js"),[]),meta:{title:$t("menus.hsfourZeroOne")}},{path:"/error/404",name:"404",component:()=>__vitePreload(()=>import("./404.js"),[]),meta:{title:$t("menus.hsfourZeroFour")}},{path:"/error/500",name:"500",component:()=>__vitePreload(()=>import("./500.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("./index24.js"),["static/js/index24.js","static/js/hooks.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css","static/js/set-up.js","static/css/index22.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.js"),["static/js/frameView.js","static/css/frameView.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("./index25.js"),["static/js/index25.js","static/css/index23.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("./index26.js"),["static/js/index26.js","static/js/menu.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/set-up.js","static/js/home-filled.js","static/js/admin-line.js","static/js/git-branch-line.js","static/js/index62.js","static/js/hooks.js","static/js/search.js","static/js/check.js","static/js/refresh-right.js","static/js/arrow-right-s-line.js","static/js/back_top.js","static/css/index24.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("./index27.js"),["static/js/index27.js","static/js/Bar.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/js/Pie.vue_vue_type_script_setup_true_lang.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/list3.js","static/js/index64.js","static/js/Github.vue_vue_type_script_setup_true_lang.js","static/js/columns17.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js","static/js/index60.js","static/css/index12.css","static/css/index25.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("./index28.js"),["static/js/index28.js","static/js/Card.js","static/js/more-2-fill.js","static/css/Card.css","static/js/list3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/search.js","static/js/add-circle-line.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("./index29.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("./index30.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("./index31.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("./index32.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("./index33.js"),[]),name:"Menu1-3",meta:{title:$t("menus.hsmenu1-3"),keepAlive:!0}}]},{path:"/nested/menu2",name:"Menu2",component:()=>__vitePreload(()=>import("./index34.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.js"),["static/js/frameView.js","static/css/frameView.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$1={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 1024 1024"},_hoisted_2$1=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$1=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$1=[_hoisted_2$1,_hoisted_3$1];function render$3(t,r){return openBlock(),createElementBlock("svg",_hoisted_1$1,_hoisted_4$1)}const hot={render:render$3},IFrame$2=()=>__vitePreload(()=>import("./frameView.js"),["static/js/frameView.js","static/css/frameView.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.js"),["static/js/frameView.js","static/css/frameView.css"]),pureutils={path:"/pure-admin-utils",redirect:"/pure-admin-utils/index",meta:{icon:hot,title:"pure-admin-utils",rank:utils$3},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.js"),["static/js/success.js","static/css/success.css"]),meta:{title:$t("menus.hsSuccess")}},{path:"/result/fail",name:"Fail",component:()=>__vitePreload(()=>import("./fail.js"),["static/js/fail.js","static/js/columns16.js","static/js/arrow-right-s-line.js","static/css/fail.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("./index35.js"),["static/js/index35.js","static/js/list.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/css/status.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/filters.vue_vue_type_script_setup_true_lang.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/tree.vue_vue_type_script_setup_true_lang.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js","static/js/merge.vue_vue_type_script_setup_true_lang.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js","static/css/index26.css"]),meta:{title:$t("menus.hsPureTableBase")}},{path:"/pure-table/high",name:"PureTableHigh",component:()=>__vitePreload(()=>import("./high.js"),["static/js/high.js","static/js/list2.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/edit-pen.js","static/js/check.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js","static/css/high.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(t){for(var r=1;r"u")){le=assign$3({},r,le),typeof le.expires=="number"&&(le.expires=new Date(Date.now()+le.expires*864e5)),le.expires&&(le.expires=le.expires.toUTCString()),oe=encodeURIComponent(oe).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var ue="";for(var de in le)le[de]&&(ue+="; "+de,le[de]!==!0&&(ue+="="+le[de].split(";")[0]));return document.cookie=oe+"="+t.write(ie,oe)+ue}}function V(oe){if(!(typeof document>"u"||arguments.length&&!oe)){for(var ie=document.cookie?document.cookie.split("; "):[],le={},ue=0;ueactivePinia=t,piniaSymbol=Symbol();function isPlainObject(t){return t&&typeof t=="object"&&Object.prototype.toString.call(t)==="[object Object]"&&typeof t.toJSON!="function"}var MutationType;(function(t){t.direct="direct",t.patchObject="patch object",t.patchFunction="patch function"})(MutationType||(MutationType={}));function createPinia(){const t=effectScope(!0),r=t.run(()=>ref({}));let $=[],V=[];const oe=markRaw({install(ie){setActivePinia(oe),oe._a=ie,ie.provide(piniaSymbol,oe),ie.config.globalProperties.$pinia=oe,V.forEach(le=>$.push(le)),V=[]},use(ie){return!this._a&&!isVue2?V.push(ie):$.push(ie),this},_p:$,_a:null,_e:t,_s:new Map,state:r});return oe}const noop$2=()=>{};function addSubscription(t,r,$,V=noop$2){t.push(r);const oe=()=>{const ie=t.indexOf(r);ie>-1&&(t.splice(ie,1),V())};return!$&&getCurrentScope()&&onScopeDispose(oe),oe}function triggerSubscriptions(t,...r){t.slice().forEach($=>{$(...r)})}const fallbackRunWithContext=t=>t();function mergeReactiveObjects(t,r){t instanceof Map&&r instanceof Map&&r.forEach(($,V)=>t.set(V,$)),t instanceof Set&&r instanceof Set&&r.forEach(t.add,t);for(const $ in r){if(!r.hasOwnProperty($))continue;const V=r[$],oe=t[$];isPlainObject(oe)&&isPlainObject(V)&&t.hasOwnProperty($)&&!isRef(V)&&!isReactive(V)?t[$]=mergeReactiveObjects(oe,V):t[$]=V}return t}const skipHydrateSymbol=Symbol();function shouldHydrate(t){return!isPlainObject(t)||!t.hasOwnProperty(skipHydrateSymbol)}const{assign:assign$2}=Object;function isComputed(t){return!!(isRef(t)&&t.effect)}function createOptionsStore(t,r,$,V){const{state:oe,actions:ie,getters:le}=r,ue=$.state.value[t];let de;function pe(){ue||($.state.value[t]=oe?oe():{});const he=toRefs($.state.value[t]);return assign$2(he,ie,Object.keys(le||{}).reduce((_e,$e)=>(_e[$e]=markRaw(computed(()=>{setActivePinia($);const Ie=$._s.get(t);return le[$e].call(Ie,Ie)})),_e),{}))}return de=createSetupStore(t,pe,r,$,V,!0),de}function createSetupStore(t,r,$={},V,oe,ie){let le;const ue=assign$2({actions:{}},$),de={deep:!0};let pe,he,_e=[],$e=[],Ie;const Ve=V.state.value[t];!ie&&!Ve&&(V.state.value[t]={}),ref({});let Fe;function Ue(En){let wn;pe=he=!1,typeof En=="function"?(En(V.state.value[t]),wn={type:MutationType.patchFunction,storeId:t,events:Ie}):(mergeReactiveObjects(V.state.value[t],En),wn={type:MutationType.patchObject,payload:En,storeId:t,events:Ie});const $n=Fe=Symbol();nextTick().then(()=>{Fe===$n&&(pe=!0)}),he=!0,triggerSubscriptions(_e,wn,V.state.value[t])}const qe=ie?function(){const{state:wn}=$,$n=wn?wn():{};this.$patch(Tn=>{assign$2(Tn,$n)})}:noop$2;function Et(){le.stop(),_e=[],$e=[],V._s.delete(t)}function Lt(En,wn){return function(){setActivePinia(V);const $n=Array.from(arguments),Tn=[],xn=[];function An(Bn){Tn.push(Bn)}function Mn(Bn){xn.push(Bn)}triggerSubscriptions($e,{args:$n,name:En,store:Cn,after:An,onError:Mn});let Vn;try{Vn=wn.apply(this&&this.$id===t?this:Cn,$n)}catch(Bn){throw triggerSubscriptions(xn,Bn),Bn}return Vn instanceof Promise?Vn.then(Bn=>(triggerSubscriptions(Tn,Bn),Bn)).catch(Bn=>(triggerSubscriptions(xn,Bn),Promise.reject(Bn))):(triggerSubscriptions(Tn,Vn),Vn)}}const hn={_p:V,$id:t,$onAction:addSubscription.bind(null,$e),$patch:Ue,$reset:qe,$subscribe(En,wn={}){const $n=addSubscription(_e,En,wn.detached,()=>Tn()),Tn=le.run(()=>watch(()=>V.state.value[t],xn=>{(wn.flush==="sync"?he:pe)&&En({storeId:t,type:MutationType.direct,events:Ie},xn)},assign$2({},de,wn)));return $n},$dispose:Et},Cn=reactive(hn);V._s.set(t,Cn);const bn=V._a&&V._a.runWithContext||fallbackRunWithContext,Sn=V._e.run(()=>(le=effectScope(),bn(()=>le.run(r))));for(const En in Sn){const wn=Sn[En];if(isRef(wn)&&!isComputed(wn)||isReactive(wn))ie||(Ve&&shouldHydrate(wn)&&(isRef(wn)?wn.value=Ve[En]:mergeReactiveObjects(wn,Ve[En])),V.state.value[t][En]=wn);else if(typeof wn=="function"){const $n=Lt(En,wn);Sn[En]=$n,ue.actions[En]=wn}}return assign$2(Cn,Sn),assign$2(toRaw(Cn),Sn),Object.defineProperty(Cn,"$state",{get:()=>V.state.value[t],set:En=>{Ue(wn=>{assign$2(wn,En)})}}),V._p.forEach(En=>{assign$2(Cn,le.run(()=>En({store:Cn,app:V._a,pinia:V,options:ue})))}),Ve&&ie&&$.hydrate&&$.hydrate(Cn.$state,Ve),pe=!0,he=!0,Cn}function defineStore(t,r,$){let V,oe;const ie=typeof r=="function";typeof t=="string"?(V=t,oe=ie?$:r):(oe=t,V=t.id);function le(ue,de){const pe=hasInjectionContext();return ue=ue||(pe?inject(piniaSymbol,null):null),ue&&setActivePinia(ue),ue=activePinia,ue._s.has(V)||(ie?createSetupStore(V,r,oe,ue):createOptionsStore(V,oe,ue)),ue._s.get(V)}return le.$id=V,le}function storeToRefs(t){{t=toRaw(t);const r={};for(const $ in t){const V=t[$];(isRef(V)||isReactive(V))&&(r[$]=toRef(t,$))}return r}}const store=createPinia();function setupStore(t){t.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",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 r={},$=Symbol("test"),V=Object($);if(typeof $=="string"||Object.prototype.toString.call($)!=="[object Symbol]"||Object.prototype.toString.call(V)!=="[object Symbol]")return!1;var oe=42;r[$]=oe;for($ in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var ie=Object.getOwnPropertySymbols(r);if(ie.length!==1||ie[0]!==$||!Object.prototype.propertyIsEnumerable.call(r,$))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var le=Object.getOwnPropertyDescriptor(r,$);if(le.value!==oe||le.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()},test$1={foo:{}},$Object=Object,hasProto$1=function(){return{__proto__:test$1}.foo===test$1.foo&&!({__proto__:null}instanceof $Object)},ERROR_MESSAGE="Function.prototype.bind called on incompatible ",slice$1=Array.prototype.slice,toStr$1=Object.prototype.toString,funcType="[object Function]",implementation$1=function(r){var $=this;if(typeof $!="function"||toStr$1.call($)!==funcType)throw new TypeError(ERROR_MESSAGE+$);for(var V=slice$1.call(arguments,1),oe,ie=function(){if(this instanceof oe){var he=$.apply(this,V.concat(slice$1.call(arguments)));return Object(he)===he?he:this}else return $.apply(r,V.concat(slice$1.call(arguments)))},le=Math.max(0,$.length-V.length),ue=[],de=0;de"u"||!getProto?undefined$1:getProto(Uint8Array),INTRINSICS={"%AggregateError%":typeof AggregateError>"u"?undefined$1:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?undefined$1:ArrayBuffer,"%ArrayIteratorPrototype%":hasSymbols&&getProto?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(getProto([][Symbol.iterator]())):undefined$1,"%JSON%":typeof JSON=="object"?JSON:undefined$1,"%Map%":typeof Map>"u"?undefined$1:Map,"%MapIteratorPrototype%":typeof Map>"u"||!hasSymbols||!getProto?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||!getProto?undefined$1:getProto(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?undefined$1:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":hasSymbols&&getProto?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};if(getProto)try{null.error}catch(t){var errorProto=getProto(getProto(t));INTRINSICS["%Error.prototype%"]=errorProto}var doEval=function t(r){var $;if(r==="%AsyncFunction%")$=getEvalledConstructor("async function () {}");else if(r==="%GeneratorFunction%")$=getEvalledConstructor("function* () {}");else if(r==="%AsyncGeneratorFunction%")$=getEvalledConstructor("async function* () {}");else if(r==="%AsyncGenerator%"){var V=t("%AsyncGeneratorFunction%");V&&($=V.prototype)}else if(r==="%AsyncIteratorPrototype%"){var oe=t("%AsyncGenerator%");oe&&getProto&&($=getProto(oe.prototype))}return INTRINSICS[r]=$,$},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(r){var $=$strSlice(r,0,1),V=$strSlice(r,-1);if($==="%"&&V!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");if(V==="%"&&$!=="%")throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");var oe=[];return $replace$1(r,rePropName,function(ie,le,ue,de){oe[oe.length]=ue?$replace$1(de,reEscapeChar,"$1"):le||ie}),oe},getBaseIntrinsic=function(r,$){var V=r,oe;if(hasOwn$2(LEGACY_ALIASES,V)&&(oe=LEGACY_ALIASES[V],V="%"+oe[0]+"%"),hasOwn$2(INTRINSICS,V)){var ie=INTRINSICS[V];if(ie===needsEval&&(ie=doEval(V)),typeof ie>"u"&&!$)throw new $TypeError$1("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:oe,name:V,value:ie}}throw new $SyntaxError("intrinsic "+r+" does not exist!")},getIntrinsic=function(r,$){if(typeof r!="string"||r.length===0)throw new $TypeError$1("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof $!="boolean")throw new $TypeError$1('"allowMissing" argument must be a boolean');if($exec(/^%?[^%]*%?$/,r)===null)throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var V=stringToPath(r),oe=V.length>0?V[0]:"",ie=getBaseIntrinsic("%"+oe+"%",$),le=ie.name,ue=ie.value,de=!1,pe=ie.alias;pe&&(oe=pe[0],$spliceApply(V,$concat$1([0,1],pe)));for(var he=1,_e=!0;he=V.length){var Fe=$gOPD(ue,$e);_e=!!Fe,_e&&"get"in Fe&&!("originalValue"in Fe.get)?ue=Fe.get:ue=ue[$e]}else _e=hasOwn$2(ue,$e),ue=ue[$e];_e&&!de&&(INTRINSICS[le]=ue)}}return ue},callBind$1={exports:{}};(function(t){var r=functionBind,$=getIntrinsic,V=$("%Function.prototype.apply%"),oe=$("%Function.prototype.call%"),ie=$("%Reflect.apply%",!0)||r.call(oe,V),le=$("%Object.getOwnPropertyDescriptor%",!0),ue=$("%Object.defineProperty%",!0),de=$("%Math.max%");if(ue)try{ue({},"a",{value:1})}catch{ue=null}t.exports=function(_e){var $e=ie(r,oe,arguments);if(le&&ue){var Ie=le($e,"length");Ie.configurable&&ue($e,"length",{value:1+de(0,_e.length-(arguments.length-1))})}return $e};var pe=function(){return ie(r,V,arguments)};ue?ue(t.exports,"apply",{value:pe}):t.exports.apply=pe})(callBind$1);var callBindExports=callBind$1.exports,GetIntrinsic$1=getIntrinsic,callBind=callBindExports,$indexOf=callBind(GetIntrinsic$1("String.prototype.indexOf")),callBound$1=function(r,$){var V=GetIntrinsic$1(r,!!$);return typeof V=="function"&&$indexOf(r,".prototype.")>-1?callBind(V):V};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(t){return t.__proto__}:null);function addNumericSeparator(t,r){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||$test.call(/e/,r))return r;var $=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var V=t<0?-$floor(-t):$floor(t);if(V!==t){var oe=String(V),ie=$slice.call(r,oe.length+1);return $replace.call(oe,$,"$&_")+"."+$replace.call($replace.call(ie,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $replace.call(r,$,"$&_")}var utilInspect=require$$0,inspectCustom=utilInspect.custom,inspectSymbol=isSymbol(inspectCustom)?inspectCustom:null,objectInspect=function t(r,$,V,oe){var ie=$||{};if(has$4(ie,"quoteStyle")&&ie.quoteStyle!=="single"&&ie.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(has$4(ie,"maxStringLength")&&(typeof ie.maxStringLength=="number"?ie.maxStringLength<0&&ie.maxStringLength!==1/0:ie.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var le=has$4(ie,"customInspect")?ie.customInspect:!0;if(typeof le!="boolean"&&le!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(has$4(ie,"indent")&&ie.indent!==null&&ie.indent!==" "&&!(parseInt(ie.indent,10)===ie.indent&&ie.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(has$4(ie,"numericSeparator")&&typeof ie.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var ue=ie.numericSeparator;if(typeof r>"u")return"undefined";if(r===null)return"null";if(typeof r=="boolean")return r?"true":"false";if(typeof r=="string")return inspectString(r,ie);if(typeof r=="number"){if(r===0)return 1/0/r>0?"0":"-0";var de=String(r);return ue?addNumericSeparator(r,de):de}if(typeof r=="bigint"){var pe=String(r)+"n";return ue?addNumericSeparator(r,pe):pe}var he=typeof ie.depth>"u"?5:ie.depth;if(typeof V>"u"&&(V=0),V>=he&&he>0&&typeof r=="object")return isArray$7(r)?"[Array]":"[Object]";var _e=getIndent(ie,V);if(typeof oe>"u")oe=[];else if(indexOf$1(oe,r)>=0)return"[Circular]";function $e(An,Mn,Vn){if(Mn&&(oe=$arrSlice.call(oe),oe.push(Mn)),Vn){var Bn={depth:ie.depth};return has$4(ie,"quoteStyle")&&(Bn.quoteStyle=ie.quoteStyle),t(An,Bn,V+1,oe)}return t(An,ie,V+1,oe)}if(typeof r=="function"&&!isRegExp$2(r)){var Ie=nameOf(r),Ve=arrObjKeys(r,$e);return"[Function"+(Ie?": "+Ie:" (anonymous)")+"]"+(Ve.length>0?" { "+$join.call(Ve,", ")+" }":"")}if(isSymbol(r)){var Fe=hasShammedSymbols?$replace.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):symToString.call(r);return typeof r=="object"&&!hasShammedSymbols?markBoxed(Fe):Fe}if(isElement(r)){for(var Ue="<"+$toLowerCase.call(String(r.nodeName)),qe=r.attributes||[],Et=0;Et",Ue}if(isArray$7(r)){if(r.length===0)return"[]";var Lt=arrObjKeys(r,$e);return _e&&!singleLineValues(Lt)?"["+indentedJoin(Lt,_e)+"]":"[ "+$join.call(Lt,", ")+" ]"}if(isError(r)){var hn=arrObjKeys(r,$e);return!("cause"in Error.prototype)&&"cause"in r&&!isEnumerable.call(r,"cause")?"{ ["+String(r)+"] "+$join.call($concat.call("[cause]: "+$e(r.cause),hn),", ")+" }":hn.length===0?"["+String(r)+"]":"{ ["+String(r)+"] "+$join.call(hn,", ")+" }"}if(typeof r=="object"&&le){if(inspectSymbol&&typeof r[inspectSymbol]=="function"&&utilInspect)return utilInspect(r,{depth:he-V});if(le!=="symbol"&&typeof r.inspect=="function")return r.inspect()}if(isMap(r)){var Cn=[];return mapForEach&&mapForEach.call(r,function(An,Mn){Cn.push($e(Mn,r,!0)+" => "+$e(An,r))}),collectionOf("Map",mapSize.call(r),Cn,_e)}if(isSet(r)){var bn=[];return setForEach&&setForEach.call(r,function(An){bn.push($e(An,r))}),collectionOf("Set",setSize.call(r),bn,_e)}if(isWeakMap(r))return weakCollectionOf("WeakMap");if(isWeakSet(r))return weakCollectionOf("WeakSet");if(isWeakRef(r))return weakCollectionOf("WeakRef");if(isNumber$1(r))return markBoxed($e(Number(r)));if(isBigInt(r))return markBoxed($e(bigIntValueOf.call(r)));if(isBoolean(r))return markBoxed(booleanValueOf.call(r));if(isString$2(r))return markBoxed($e(String(r)));if(!isDate(r)&&!isRegExp$2(r)){var Sn=arrObjKeys(r,$e),En=gPO?gPO(r)===Object.prototype:r instanceof Object||r.constructor===Object,wn=r instanceof Object?"":"null prototype",$n=!En&&toStringTag&&Object(r)===r&&toStringTag in r?$slice.call(toStr(r),8,-1):wn?"Object":"",Tn=En||typeof r.constructor!="function"?"":r.constructor.name?r.constructor.name+" ":"",xn=Tn+($n||wn?"["+$join.call($concat.call([],$n||[],wn||[]),": ")+"] ":"");return Sn.length===0?xn+"{}":_e?xn+"{"+indentedJoin(Sn,_e)+"}":xn+"{ "+$join.call(Sn,", ")+" }"}return String(r)};function wrapQuotes(t,r,$){var V=($.quoteStyle||r)==="double"?'"':"'";return V+t+V}function quote(t){return $replace.call(String(t),/"/g,""")}function isArray$7(t){return toStr(t)==="[object Array]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isDate(t){return toStr(t)==="[object Date]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isRegExp$2(t){return toStr(t)==="[object RegExp]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isError(t){return toStr(t)==="[object Error]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isString$2(t){return toStr(t)==="[object String]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isNumber$1(t){return toStr(t)==="[object Number]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isBoolean(t){return toStr(t)==="[object Boolean]"&&(!toStringTag||!(typeof t=="object"&&toStringTag in t))}function isSymbol(t){if(hasShammedSymbols)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!symToString)return!1;try{return symToString.call(t),!0}catch{}return!1}function isBigInt(t){if(!t||typeof t!="object"||!bigIntValueOf)return!1;try{return bigIntValueOf.call(t),!0}catch{}return!1}var hasOwn$1=Object.prototype.hasOwnProperty||function(t){return t in this};function has$4(t,r){return hasOwn$1.call(t,r)}function toStr(t){return objectToString.call(t)}function nameOf(t){if(t.name)return t.name;var r=$match.call(functionToString.call(t),/^function\s*([\w$]+)/);return r?r[1]:null}function indexOf$1(t,r){if(t.indexOf)return t.indexOf(r);for(var $=0,V=t.length;$r.maxStringLength){var $=t.length-r.maxStringLength,V="... "+$+" more character"+($>1?"s":"");return inspectString($slice.call(t,0,r.maxStringLength),r)+V}var oe=$replace.call($replace.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,lowbyte);return wrapQuotes(oe,"single",r)}function lowbyte(t){var r=t.charCodeAt(0),$={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return $?"\\"+$:"\\x"+(r<16?"0":"")+$toUpperCase.call(r.toString(16))}function markBoxed(t){return"Object("+t+")"}function weakCollectionOf(t){return t+" { ? }"}function collectionOf(t,r,$,V){var oe=V?indentedJoin($,V):$join.call($,", ");return t+" ("+r+") {"+oe+"}"}function singleLineValues(t){for(var r=0;r=0)return!1;return!0}function getIndent(t,r){var $;if(t.indent===" ")$=" ";else if(typeof t.indent=="number"&&t.indent>0)$=$join.call(Array(t.indent+1)," ");else return null;return{base:$,prev:$join.call(Array(r+1),$)}}function indentedJoin(t,r){if(t.length===0)return"";var $=` `+r.prev+r.base;return $+$join.call(t,","+$)+` `+r.prev}function arrObjKeys(t,r){var $=isArray$7(t),V=[];if($){V.length=t.length;for(var oe=0;oe1;){var $=r.pop(),V=$.obj[$.prop];if(isArray$6(V)){for(var oe=[],ie=0;ie=48&&pe<=57||pe>=65&&pe<=90||pe>=97&&pe<=122||ie===formats$2.RFC1738&&(pe===40||pe===41)){ue+=le.charAt(de);continue}if(pe<128){ue=ue+hexTable[pe];continue}if(pe<2048){ue=ue+(hexTable[192|pe>>6]+hexTable[128|pe&63]);continue}if(pe<55296||pe>=57344){ue=ue+(hexTable[224|pe>>12]+hexTable[128|pe>>6&63]+hexTable[128|pe&63]);continue}de+=1,pe=65536+((pe&1023)<<10|le.charCodeAt(de)&1023),ue+=hexTable[240|pe>>18]+hexTable[128|pe>>12&63]+hexTable[128|pe>>6&63]+hexTable[128|pe&63]}return ue},compact=function(r){for(var $=[{obj:{o:r},prop:"o"}],V=[],oe=0;oe<$.length;++oe)for(var ie=$[oe],le=ie.obj[ie.prop],ue=Object.keys(le),de=0;de"u"&&(Lt=0)}if(typeof de=="function"?qe=de($,qe):qe instanceof Date?qe=_e(qe):V==="comma"&&isArray$5(qe)&&(qe=utils$1.maybeMap(qe,function(Bn){return Bn instanceof Date?_e(Bn):Bn})),qe===null){if(ie)return ue&&!Ve?ue($,defaults$2.encoder,Fe,"key",$e):$;qe=""}if(isNonNullishPrimitive(qe)||utils$1.isBuffer(qe)){if(ue){var bn=Ve?$:ue($,defaults$2.encoder,Fe,"key",$e);return[Ie(bn)+"="+Ie(ue(qe,defaults$2.encoder,Fe,"value",$e))]}return[Ie($)+"="+Ie(String(qe))]}var Sn=[];if(typeof qe>"u")return Sn;var En;if(V==="comma"&&isArray$5(qe))Ve&&ue&&(qe=utils$1.maybeMap(qe,ue)),En=[{value:qe.length>0?qe.join(",")||null:void 0}];else if(isArray$5(de))En=de;else{var wn=Object.keys(qe);En=pe?wn.sort(pe):wn}for(var $n=oe&&isArray$5(qe)&&qe.length===1?$+"[]":$,Tn=0;Tn"u"?defaults$2.allowDots:!!r.allowDots,charset:$,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:defaults$2.charsetSentinel,delimiter:typeof r.delimiter>"u"?defaults$2.delimiter:r.delimiter,encode:typeof r.encode=="boolean"?r.encode:defaults$2.encode,encoder:typeof r.encoder=="function"?r.encoder:defaults$2.encoder,encodeValuesOnly:typeof r.encodeValuesOnly=="boolean"?r.encodeValuesOnly:defaults$2.encodeValuesOnly,filter:ie,format:V,formatter:oe,serializeDate:typeof r.serializeDate=="function"?r.serializeDate:defaults$2.serializeDate,skipNulls:typeof r.skipNulls=="boolean"?r.skipNulls:defaults$2.skipNulls,sort:typeof r.sort=="function"?r.sort:null,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:defaults$2.strictNullHandling}},stringify_1=function(t,r){var $=t,V=normalizeStringifyOptions(r),oe,ie;typeof V.filter=="function"?(ie=V.filter,$=ie("",$)):isArray$5(V.filter)&&(ie=V.filter,oe=ie);var le=[];if(typeof $!="object"||$===null)return"";var ue;r&&r.arrayFormat in arrayPrefixGenerators?ue=r.arrayFormat:r&&"indices"in r?ue=r.indices?"indices":"repeat":ue="indices";var de=arrayPrefixGenerators[ue];if(r&&"commaRoundTrip"in r&&typeof r.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var pe=de==="comma"&&r&&r.commaRoundTrip;oe||(oe=Object.keys($)),V.sort&&oe.sort(V.sort);for(var he=getSideChannel(),_e=0;_e0?Ve+Ie:""},utils=utils$2,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.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},interpretNumericEntities=function(t){return t.replace(/&#(\d+);/g,function(r,$){return String.fromCharCode(parseInt($,10))})},parseArrayValue=function(t,r){return t&&typeof t=="string"&&r.comma&&t.indexOf(",")>-1?t.split(","):t},isoSentinel="utf8=%26%2310003%3B",charsetSentinel="utf8=%E2%9C%93",parseValues=function(r,$){var V={__proto__:null},oe=$.ignoreQueryPrefix?r.replace(/^\?/,""):r,ie=$.parameterLimit===1/0?void 0:$.parameterLimit,le=oe.split($.delimiter,ie),ue=-1,de,pe=$.charset;if($.charsetSentinel)for(de=0;de-1&&(Ve=isArray$4(Ve)?[Ve]:Ve),has$1.call(V,Ie)?V[Ie]=utils.combine(V[Ie],Ve):V[Ie]=Ve}return V},parseObject=function(t,r,$,V){for(var oe=V?r:parseArrayValue(r,$),ie=t.length-1;ie>=0;--ie){var le,ue=t[ie];if(ue==="[]"&&$.parseArrays)le=[].concat(oe);else{le=$.plainObjects?Object.create(null):{};var de=ue.charAt(0)==="["&&ue.charAt(ue.length-1)==="]"?ue.slice(1,-1):ue,pe=parseInt(de,10);!$.parseArrays&&de===""?le={0:oe}:!isNaN(pe)&&ue!==de&&String(pe)===de&&pe>=0&&$.parseArrays&&pe<=$.arrayLimit?(le=[],le[pe]=oe):de!=="__proto__"&&(le[de]=oe)}oe=le}return oe},parseKeys=function(r,$,V,oe){if(r){var ie=V.allowDots?r.replace(/\.([^.[]+)/g,"[$1]"):r,le=/(\[[^[\]]*])/,ue=/(\[[^[\]]*])/g,de=V.depth>0&&le.exec(ie),pe=de?ie.slice(0,de.index):ie,he=[];if(pe){if(!V.plainObjects&&has$1.call(Object.prototype,pe)&&!V.allowPrototypes)return;he.push(pe)}for(var _e=0;V.depth>0&&(de=ue.exec(ie))!==null&&_e"u"?defaults$1.charset:r.charset;return{allowDots:typeof r.allowDots>"u"?defaults$1.allowDots:!!r.allowDots,allowPrototypes:typeof r.allowPrototypes=="boolean"?r.allowPrototypes:defaults$1.allowPrototypes,allowSparse:typeof r.allowSparse=="boolean"?r.allowSparse:defaults$1.allowSparse,arrayLimit:typeof r.arrayLimit=="number"?r.arrayLimit:defaults$1.arrayLimit,charset:$,charsetSentinel:typeof r.charsetSentinel=="boolean"?r.charsetSentinel:defaults$1.charsetSentinel,comma:typeof r.comma=="boolean"?r.comma:defaults$1.comma,decoder:typeof r.decoder=="function"?r.decoder:defaults$1.decoder,delimiter:typeof r.delimiter=="string"||utils.isRegExp(r.delimiter)?r.delimiter:defaults$1.delimiter,depth:typeof r.depth=="number"||r.depth===!1?+r.depth:defaults$1.depth,ignoreQueryPrefix:r.ignoreQueryPrefix===!0,interpretNumericEntities:typeof r.interpretNumericEntities=="boolean"?r.interpretNumericEntities:defaults$1.interpretNumericEntities,parameterLimit:typeof r.parameterLimit=="number"?r.parameterLimit:defaults$1.parameterLimit,parseArrays:r.parseArrays!==!1,plainObjects:typeof r.plainObjects=="boolean"?r.plainObjects:defaults$1.plainObjects,strictNullHandling:typeof r.strictNullHandling=="boolean"?r.strictNullHandling:defaults$1.strictNullHandling}},parse$4=function(t,r){var $=normalizeParseOptions(r);if(t===""||t===null||typeof t>"u")return $.plainObjects?Object.create(null):{};for(var V=typeof t=="string"?parseValues(t,$):t,oe=$.plainObjects?Object.create(null):{},ie=Object.keys(V),le=0;le
'};$.configure=function(Ve){var Fe,Ue;for(Fe in Ve)Ue=Ve[Fe],Ue!==void 0&&Ve.hasOwnProperty(Fe)&&(V[Fe]=Ue);return this},$.status=null,$.set=function(Ve){var Fe=$.isStarted();Ve=oe(Ve,V.minimum,1),$.status=Ve===1?null:Ve;var Ue=$.render(!Fe),qe=Ue.querySelector(V.barSelector),Et=V.speed,Lt=V.easing;return Ue.offsetWidth,ue(function(hn){V.positionUsing===""&&(V.positionUsing=$.getPositioningCSS()),de(qe,le(Ve,Et,Lt)),Ve===1?(de(Ue,{transition:"none",opacity:1}),Ue.offsetWidth,setTimeout(function(){de(Ue,{transition:"all "+Et+"ms linear",opacity:0}),setTimeout(function(){$.remove(),hn()},Et)},Et)):setTimeout(hn,Et)}),this},$.isStarted=function(){return typeof $.status=="number"},$.start=function(){$.status||$.set(0);var Ve=function(){setTimeout(function(){$.status&&($.trickle(),Ve())},V.trickleSpeed)};return V.trickle&&Ve(),this},$.done=function(Ve){return!Ve&&!$.status?this:$.inc(.3+.5*Math.random()).set(1)},$.inc=function(Ve){var Fe=$.status;return Fe?(typeof Ve!="number"&&(Ve=(1-Fe)*oe(Math.random()*Fe,.1,.95)),Fe=oe(Fe+Ve,0,.994),$.set(Fe)):$.start()},$.trickle=function(){return $.inc(Math.random()*V.trickleRate)},function(){var Ve=0,Fe=0;$.promise=function(Ue){return!Ue||Ue.state()==="resolved"?this:(Fe===0&&$.start(),Ve++,Fe++,Ue.always(function(){Fe--,Fe===0?(Ve=0,$.done()):$.set((Ve-Fe)/Ve)}),this)}}(),$.render=function(Ve){if($.isRendered())return document.getElementById("nprogress");he(document.documentElement,"nprogress-busy");var Fe=document.createElement("div");Fe.id="nprogress",Fe.innerHTML=V.template;var Ue=Fe.querySelector(V.barSelector),qe=Ve?"-100":ie($.status||0),Et=document.querySelector(V.parent),Lt;return de(Ue,{transition:"all 0 linear",transform:"translate3d("+qe+"%,0,0)"}),V.showSpinner||(Lt=Fe.querySelector(V.spinnerSelector),Lt&&Ie(Lt)),Et!=document.body&&he(Et,"nprogress-custom-parent"),Et.appendChild(Fe),Fe},$.remove=function(){_e(document.documentElement,"nprogress-busy"),_e(document.querySelector(V.parent),"nprogress-custom-parent");var Ve=document.getElementById("nprogress");Ve&&Ie(Ve)},$.isRendered=function(){return!!document.getElementById("nprogress")},$.getPositioningCSS=function(){var Ve=document.body.style,Fe="WebkitTransform"in Ve?"Webkit":"MozTransform"in Ve?"Moz":"msTransform"in Ve?"ms":"OTransform"in Ve?"O":"";return Fe+"Perspective"in Ve?"translate3d":Fe+"Transform"in Ve?"translate":"margin"};function oe(Ve,Fe,Ue){return VeUe?Ue:Ve}function ie(Ve){return(-1+Ve)*100}function le(Ve,Fe,Ue){var qe;return V.positionUsing==="translate3d"?qe={transform:"translate3d("+ie(Ve)+"%,0,0)"}:V.positionUsing==="translate"?qe={transform:"translate("+ie(Ve)+"%,0)"}:qe={"margin-left":ie(Ve)+"%"},qe.transition="all "+Fe+"ms "+Ue,qe}var ue=function(){var Ve=[];function Fe(){var Ue=Ve.shift();Ue&&Ue(Fe)}return function(Ue){Ve.push(Ue),Ve.length==1&&Fe()}}(),de=function(){var Ve=["Webkit","O","Moz","ms"],Fe={};function Ue(hn){return hn.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(Cn,bn){return bn.toUpperCase()})}function qe(hn){var Cn=document.body.style;if(hn in Cn)return hn;for(var bn=Ve.length,Sn=hn.charAt(0).toUpperCase()+hn.slice(1),En;bn--;)if(En=Ve[bn]+Sn,En in Cn)return En;return hn}function Et(hn){return hn=Ue(hn),Fe[hn]||(Fe[hn]=qe(hn))}function Lt(hn,Cn,bn){Cn=Et(Cn),hn.style[Cn]=bn}return function(hn,Cn){var bn=arguments,Sn,En;if(bn.length==2)for(Sn in Cn)En=Cn[Sn],En!==void 0&&Cn.hasOwnProperty(Sn)&&Lt(hn,Sn,En);else Lt(hn,bn[1],bn[2])}}();function pe(Ve,Fe){var Ue=typeof Ve=="string"?Ve:$e(Ve);return Ue.indexOf(" "+Fe+" ")>=0}function he(Ve,Fe){var Ue=$e(Ve),qe=Ue+Fe;pe(Ue,Fe)||(Ve.className=qe.substring(1))}function _e(Ve,Fe){var Ue=$e(Ve),qe;pe(Ve,Fe)&&(qe=Ue.replace(" "+Fe+" "," "),Ve.className=qe.substring(1,qe.length-1))}function $e(Ve){return(" "+(Ve.className||"")+" ").replace(/\s+/gi," ")}function Ie(Ve){Ve&&Ve.parentNode&&Ve.parentNode.removeChild(Ve)}return $})})(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}},Xr=class Xr{constructor(){this.httpInterceptorsRequest(),this.httpInterceptorsResponse()}static retryOriginalRequest(r){return new Promise($=>{Xr.requests.push(V=>{r.headers.Authorization=formatToken(V),$(r)})})}httpInterceptorsRequest(){Xr.axiosInstance.interceptors.request.use(async r=>(NProgress.start(),typeof r.beforeRequestCallback=="function"?(r.beforeRequestCallback(r),r):Xr.initConfig.beforeRequestCallback?(Xr.initConfig.beforeRequestCallback(r),r):["/refreshToken","/login"].find(V=>V===r.url)?r:new Promise(V=>{const oe=getToken();if(oe){const ie=new Date().getTime();parseInt(oe.expires)-ie<=0?(Xr.isRefreshing||(Xr.isRefreshing=!0,useUserStoreHook().handRefreshToken({refreshToken:oe.refreshToken}).then(ue=>{const de=ue.data.accessToken;r.headers.Authorization=formatToken(de),Xr.requests.forEach(pe=>pe(de)),Xr.requests=[]}).finally(()=>{Xr.isRefreshing=!1})),V(Xr.retryOriginalRequest(r))):(r.headers.Authorization=formatToken(oe.accessToken),V(r))}else V(r)})),r=>Promise.reject(r))}httpInterceptorsResponse(){Xr.axiosInstance.interceptors.response.use($=>{const V=$.config;return NProgress.done(),typeof V.beforeResponseCallback=="function"?(V.beforeResponseCallback($),$.data):(Xr.initConfig.beforeResponseCallback&&Xr.initConfig.beforeResponseCallback($),$.data)},$=>{const V=$;return V.isCancelRequest=axios$1.isCancel(V),NProgress.done(),Promise.reject(V)})}request(r,$,V,oe){const ie={method:r,url:$,...V,...oe};return new Promise((le,ue)=>{Xr.axiosInstance.request(ie).then(de=>{le(de)}).catch(de=>{ue(de)})})}post(r,$,V){return this.request("post",r,$,V)}get(r,$,V){return this.request("get",r,$,V)}};ao(Xr,"requests",[]),ao(Xr,"isRefreshing",!1),ao(Xr,"initConfig",{}),ao(Xr,"axiosInstance",axios$1.create(defaultConfig$1));let PureHttp=Xr;const http=new PureHttp,getLogin=t=>http.request("post","/login",{data:t}),refreshTokenApi=t=>http.request("post","/refresh-token",{data:t}),useMultiTagsStore=defineStore({id:"pure-multiTags",state:()=>{var t,r;return{multiTags:(t=rr().getItem(`${responsiveStorageNameSpace()}configure`))!=null&&t.multiTagsCache?rr().getItem(`${responsiveStorageNameSpace()}tags`):[...routerArrays],multiTagsCache:(r=rr().getItem(`${responsiveStorageNameSpace()}configure`))==null?void 0:r.multiTagsCache}},getters:{getMultiTagsCache(t){return t.multiTagsCache}},actions:{multiTagsCacheChange(t){this.multiTagsCache=t,t?rr().setItem(`${responsiveStorageNameSpace()}tags`,this.multiTags):rr().removeItem(`${responsiveStorageNameSpace()}tags`)},tagsCache(t){this.getMultiTagsCache&&rr().setItem(`${responsiveStorageNameSpace()}tags`,t)},handleTags(t,r,$){var V,oe,ie,le,ue;switch(t){case"equal":this.multiTags=r,this.tagsCache(this.multiTags);break;case"push":{const de=r;if((V=de==null?void 0:de.meta)!=null&&V.hiddenTag||pt(de==null?void 0:de.name)||((oe=de==null?void 0:de.meta)==null?void 0:oe.title.length)===0||xe$1((ie=de==null?void 0:de.meta)==null?void 0:ie.showLink)&&!((le=de==null?void 0:de.meta)!=null&&le.showLink))return;const pe=de.path,he=this.multiTags.some(Ve=>Ve.path===pe),_e=this.multiTags.some(Ve=>Xt(Ve==null?void 0:Ve.query,de==null?void 0:de.query)),$e=this.multiTags.some(Ve=>Xt(Ve==null?void 0:Ve.params,de==null?void 0:de.params));if(he&&_e&&$e)return;const Ie=((ue=de==null?void 0:de.meta)==null?void 0:ue.dynamicLevel)??-1;if(Ie>0&&this.multiTags.filter(Ve=>(Ve==null?void 0:Ve.path)===pe).length>=Ie){const Ve=this.multiTags.findIndex(Fe=>(Fe==null?void 0:Fe.path)===pe);Ve!==-1&&this.multiTags.splice(Ve,1)}this.multiTags.push(r),this.tagsCache(this.multiTags)}break;case"splice":if($)this.multiTags.splice($==null?void 0:$.startIndex,$==null?void 0:$.length);else{const de=this.multiTags.findIndex(pe=>pe.path===r);if(de===-1)return;this.multiTags.splice(de,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 t,r;return{username:((t=rr().getItem(userKey))==null?void 0:t.username)??"",roles:((r=rr().getItem(userKey))==null?void 0:r.roles)??[],verifyCode:"",currentPage:0,isRemembered:!1,loginDay:7}},actions:{SET_USERNAME(t){this.username=t},SET_ROLES(t){this.roles=t},SET_VERIFYCODE(t){this.verifyCode=t},SET_CURRENTPAGE(t){this.currentPage=t},SET_ISREMEMBERED(t){this.isRemembered=t},SET_LOGINDAY(t){this.loginDay=Number(t)},async loginByUsername(t){return new Promise((r,$)=>{getLogin(t).then(V=>{V&&(setToken(V.data),r(V))}).catch(V=>{$(V)})})},logOut(){this.username="",this.roles=[],removeToken(),useMultiTagsStoreHook().handleTags("equal",[...routerArrays]),resetRouter(),router.push("/login")},async handRefreshToken(t){return new Promise((r,$)=>{refreshTokenApi(t).then(V=>{V&&(setToken(V.data),r(V))}).catch(V=>{$(V)})})}}});function useUserStoreHook(){return useUserStore(store)}const userKey="user-info",TokenKey="authorized-token",multipleTabsKey="multiple-tabs";function getToken(){return api.get(TokenKey)?JSON.parse(api.get(TokenKey)):rr().getItem(userKey)}function setToken(t){var de,pe;let r=0;const{accessToken:$,refreshToken:V}=t,{isRemembered:oe,loginDay:ie}=useUserStoreHook();r=new Date(t.expires).getTime();const le=JSON.stringify({accessToken:$,expires:r});r>0?api.set(TokenKey,le,{expires:(r-Date.now())/864e5}):api.set(TokenKey,le),api.set(multipleTabsKey,"true",oe?{expires:ie}:{});function ue(he,_e){useUserStoreHook().SET_USERNAME(he),useUserStoreHook().SET_ROLES(_e),rr().setItem(userKey,{refreshToken:V,expires:r,username:he,roles:_e})}if(t.username&&t.roles){const{username:he,roles:_e}=t;ue(he,_e)}else{const he=((de=rr().getItem(userKey))==null?void 0:de.username)??"",_e=((pe=rr().getItem(userKey))==null?void 0:pe.roles)??[];ue(he,_e)}}function removeToken(){api.remove(TokenKey),api.remove(multipleTabsKey),rr().removeItem(userKey)}const formatToken=t=>"Bearer "+t;(function(){const t=yr(location.href),r=["username","roles","accessToken"],$=r.length;if(Object.keys(t).length!==$)return;let V=[],oe=0;for(;oe<$;)Object.keys(t).includes(r[oe])&&V.length<=$?V.push(r[oe]):V=[],oe++;if(V.length===$){removeToken(),setToken(t),delete t.roles,delete t.accessToken;const ie=`${location.origin}${location.pathname}${Vt(location.hash,"?")}?${JSON.stringify(t).replace(/["{}]/g,"").replace(/:/g,"=").replace(/,/g,"&")}`;window.location.replace(ie)}else return})();const extractPathList=t=>{if(!Array.isArray(t))return console.warn("tree must be an array"),[];if(!t||t.length===0)return[];const r=[];for(const $ of t)$.children&&$.children.length>0&&extractPathList($.children),r.push($.uniqueId);return r},deleteChildren=(t,r=[])=>{if(!Array.isArray(t))return console.warn("menuTree must be an array"),[];if(!t||t.length===0)return[];for(const[$,V]of t.entries())V.children&&V.children.length===1&&delete V.children,V.id=$,V.parentId=r.length?r[r.length-1]:null,V.pathList=[...r,V.id],V.uniqueId=V.pathList.length>1?V.pathList.join("-"):V.pathList[0],V.children&&V.children.length>0&&deleteChildren(V.children,V.pathList);return t},buildHierarchyTree=(t,r=[])=>{if(!Array.isArray(t))return console.warn("tree must be an array"),[];if(!t||t.length===0)return[];for(const[$,V]of t.entries())V.id=$,V.parentId=r.length?r[r.length-1]:null,V.pathList=[...r,V.id],V.children&&V.children.length>0&&buildHierarchyTree(V.children,V.pathList);return t},getNodeByUniqueId=(t,r)=>{if(!Array.isArray(t))return console.warn("menuTree must be an array"),[];if(!t||t.length===0)return[];const $=t.find(oe=>oe.uniqueId===r);if($)return $;const V=t.filter(oe=>oe.children).map(oe=>oe.children).flat(1);return getNodeByUniqueId(V,r)},appendFieldByUniqueId=(t,r,$)=>{if(!Array.isArray(t))return console.warn("menuTree must be an array"),[];if(!t||t.length===0)return[];for(const V of t){const oe=V.children&&V.children.length>0;V.uniqueId===r&&Object.prototype.toString.call($)==="[object Object]"&&Object.assign(V,$),oe&&appendFieldByUniqueId(V.children,r,$)}return t},handleTree=(t,r,$,V)=>{if(!Array.isArray(t))return console.warn("data must be an array"),[];const oe={id:r||"id",parentId:$||"parentId",childrenList:V||"children"},ie={},le={},ue=[];for(const pe of t){const he=pe[oe.parentId];ie[he]==null&&(ie[he]=[]),le[pe[oe.id]]=pe,ie[he].push(pe)}for(const pe of t){const he=pe[oe.parentId];le[he]==null&&ue.push(pe)}for(const pe of ue)de(pe);function de(pe){if(ie[pe[oe.id]]!==null&&(pe[oe.childrenList]=ie[pe[oe.id]]),pe[oe.childrenList])for(const he of pe[oe.childrenList])de(he)}return ue},Layout=()=>__vitePreload(()=>import("./index26.js"),["static/js/index26.js","static/js/menu.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/set-up.js","static/js/home-filled.js","static/js/admin-line.js","static/js/git-branch-line.js","static/js/index62.js","static/js/hooks.js","static/js/search.js","static/js/check.js","static/js/refresh-right.js","static/js/arrow-right-s-line.js","static/js/back_top.js","static/css/index24.css"]),remainingRouter=[{path:"/login",name:"Login",component:()=>__vitePreload(()=>import("./index36.js"),["static/js/index36.js","static/js/motion.js","static/js/verifyCode.js","static/js/phone.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/iphone.js","static/js/index64.js","static/js/qrCode.vue_vue_type_script_setup_true_lang.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css","static/js/regist.vue_vue_type_script_setup_true_lang.js","static/js/lock-fill.js","static/js/user-3-fill.js","static/js/update.vue_vue_type_script_setup_true_lang.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/check.js","static/css/index27.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.js"),[])}]},{path:"/empty",name:"Empty",component:()=>__vitePreload(()=>import("./index37.js"),["static/js/index37.js","static/css/index28.css"]),meta:{title:$t("menus.hsempty"),showLink:!1,rank:103}}];/*! * vue-router v4.2.5 * (c) 2023 Eduardo San Martin Morote * @license MIT */const isBrowser$1=typeof window<"u";function isESModule(t){return t.__esModule||t[Symbol.toStringTag]==="Module"}const assign=Object.assign;function applyToParams(t,r){const $={};for(const V in r){const oe=r[V];$[V]=isArray$3(oe)?oe.map(t):t(oe)}return $}const noop$1=()=>{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=t=>t.replace(TRAILING_SLASH_RE,"");function parseURL(t,r,$="/"){let V,oe={},ie="",le="";const ue=r.indexOf("#");let de=r.indexOf("?");return ue=0&&(de=-1),de>-1&&(V=r.slice(0,de),ie=r.slice(de+1,ue>-1?ue:r.length),oe=t(ie)),ue>-1&&(V=V||r.slice(0,ue),le=r.slice(ue,r.length)),V=resolveRelativePath(V??r,$),{fullPath:V+(ie&&"?")+ie+le,path:V,query:oe,hash:le}}function stringifyURL(t,r){const $=r.query?t(r.query):"";return r.path+($&&"?")+$+(r.hash||"")}function stripBase(t,r){return!r||!t.toLowerCase().startsWith(r.toLowerCase())?t:t.slice(r.length)||"/"}function isSameRouteLocation(t,r,$){const V=r.matched.length-1,oe=$.matched.length-1;return V>-1&&V===oe&&isSameRouteRecord(r.matched[V],$.matched[oe])&&isSameRouteLocationParams(r.params,$.params)&&t(r.query)===t($.query)&&r.hash===$.hash}function isSameRouteRecord(t,r){return(t.aliasOf||t)===(r.aliasOf||r)}function isSameRouteLocationParams(t,r){if(Object.keys(t).length!==Object.keys(r).length)return!1;for(const $ in t)if(!isSameRouteLocationParamsValue(t[$],r[$]))return!1;return!0}function isSameRouteLocationParamsValue(t,r){return isArray$3(t)?isEquivalentArray(t,r):isArray$3(r)?isEquivalentArray(r,t):t===r}function isEquivalentArray(t,r){return isArray$3(r)?t.length===r.length&&t.every(($,V)=>$===r[V]):t.length===1&&t[0]===r}function resolveRelativePath(t,r){if(t.startsWith("/"))return t;if(!t)return r;const $=r.split("/"),V=t.split("/"),oe=V[V.length-1];(oe===".."||oe===".")&&V.push("");let ie=$.length-1,le,ue;for(le=0;le1&&ie--;else break;return $.slice(0,ie).join("/")+"/"+V.slice(le-(le===V.length?1:0)).join("/")}var NavigationType;(function(t){t.pop="pop",t.push="push"})(NavigationType||(NavigationType={}));var NavigationDirection;(function(t){t.back="back",t.forward="forward",t.unknown=""})(NavigationDirection||(NavigationDirection={}));function normalizeBase(t){if(!t)if(isBrowser$1){const r=document.querySelector("base");t=r&&r.getAttribute("href")||"/",t=t.replace(/^\w+:\/\/[^\/]+/,"")}else t="/";return t[0]!=="/"&&t[0]!=="#"&&(t="/"+t),removeTrailingSlash(t)}const BEFORE_HASH_RE=/^[^#]+#/;function createHref(t,r){return t.replace(BEFORE_HASH_RE,"#")+r}function getElementPosition(t,r){const $=document.documentElement.getBoundingClientRect(),V=t.getBoundingClientRect();return{behavior:r.behavior,left:V.left-$.left-(r.left||0),top:V.top-$.top-(r.top||0)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(t){let r;if("el"in t){const $=t.el,V=typeof $=="string"&&$.startsWith("#"),oe=typeof $=="string"?V?document.getElementById($.slice(1)):document.querySelector($):$;if(!oe)return;r=getElementPosition(oe,t)}else r=t;"scrollBehavior"in document.documentElement.style?window.scrollTo(r):window.scrollTo(r.left!=null?r.left:window.pageXOffset,r.top!=null?r.top:window.pageYOffset)}function getScrollKey(t,r){return(history.state?history.state.position-r:-1)+t}const scrollPositions=new Map;function saveScrollPosition(t,r){scrollPositions.set(t,r)}function getSavedScrollPosition(t){const r=scrollPositions.get(t);return scrollPositions.delete(t),r}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(t,r){const{pathname:$,search:V,hash:oe}=r,ie=t.indexOf("#");if(ie>-1){let ue=oe.includes(t.slice(ie))?t.slice(ie).length:1,de=oe.slice(ue);return de[0]!=="/"&&(de="/"+de),stripBase(de,"")}return stripBase($,t)+V+oe}function useHistoryListeners(t,r,$,V){let oe=[],ie=[],le=null;const ue=({state:$e})=>{const Ie=createCurrentLocation(t,location),Ve=$.value,Fe=r.value;let Ue=0;if($e){if($.value=Ie,r.value=$e,le&&le===Ve){le=null;return}Ue=Fe?$e.position-Fe.position:0}else V(Ie);oe.forEach(qe=>{qe($.value,Ve,{delta:Ue,type:NavigationType.pop,direction:Ue?Ue>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})})};function de(){le=$.value}function pe($e){oe.push($e);const Ie=()=>{const Ve=oe.indexOf($e);Ve>-1&&oe.splice(Ve,1)};return ie.push(Ie),Ie}function he(){const{history:$e}=window;$e.state&&$e.replaceState(assign({},$e.state,{scroll:computeScrollPosition()}),"")}function _e(){for(const $e of ie)$e();ie=[],window.removeEventListener("popstate",ue),window.removeEventListener("beforeunload",he)}return window.addEventListener("popstate",ue),window.addEventListener("beforeunload",he,{passive:!0}),{pauseListeners:de,listen:pe,destroy:_e}}function buildState(t,r,$,V=!1,oe=!1){return{back:t,current:r,forward:$,replaced:V,position:window.history.length,scroll:oe?computeScrollPosition():null}}function useHistoryStateNavigation(t){const{history:r,location:$}=window,V={value:createCurrentLocation(t,$)},oe={value:r.state};oe.value||ie(V.value,{back:null,current:V.value,forward:null,position:r.length-1,replaced:!0,scroll:null},!0);function ie(de,pe,he){const _e=t.indexOf("#"),$e=_e>-1?($.host&&document.querySelector("base")?t:t.slice(_e))+de:createBaseLocation()+t+de;try{r[he?"replaceState":"pushState"](pe,"",$e),oe.value=pe}catch(Ie){console.error(Ie),$[he?"replace":"assign"]($e)}}function le(de,pe){const he=assign({},r.state,buildState(oe.value.back,de,oe.value.forward,!0),pe,{position:oe.value.position});ie(de,he,!0),V.value=de}function ue(de,pe){const he=assign({},oe.value,r.state,{forward:de,scroll:computeScrollPosition()});ie(he.current,he,!0);const _e=assign({},buildState(V.value,de,null),{position:he.position+1},pe);ie(de,_e,!1),V.value=de}return{location:V,state:oe,push:ue,replace:le}}function createWebHistory(t){t=normalizeBase(t);const r=useHistoryStateNavigation(t),$=useHistoryListeners(t,r.state,r.location,r.replace);function V(ie,le=!0){le||$.pauseListeners(),history.go(ie)}const oe=assign({location:"",base:t,go:V,createHref:createHref.bind(null,t)},r,$);return Object.defineProperty(oe,"location",{enumerable:!0,get:()=>r.location.value}),Object.defineProperty(oe,"state",{enumerable:!0,get:()=>r.state.value}),oe}function createWebHashHistory(t){return t=location.host?t||location.pathname+location.search:"",t.includes("#")||(t+="#"),createWebHistory(t)}function isRouteLocation(t){return typeof t=="string"||t&&typeof t=="object"}function isRouteName(t){return typeof t=="string"||typeof t=="symbol"}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType;(function(t){t[t.aborted=4]="aborted",t[t.cancelled=8]="cancelled",t[t.duplicated=16]="duplicated"})(NavigationFailureType||(NavigationFailureType={}));function createRouterError(t,r){return assign(new Error,{type:t,[NavigationFailureSymbol]:!0},r)}function isNavigationFailure(t,r){return t instanceof Error&&NavigationFailureSymbol in t&&(r==null||!!(t.type&r))}const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(t,r){const $=assign({},BASE_PATH_PARSER_OPTIONS,r),V=[];let oe=$.start?"^":"";const ie=[];for(const pe of t){const he=pe.length?[]:[90];$.strict&&!pe.length&&(oe+="/");for(let _e=0;_er.length?r.length===1&&r[0]===40+40?1:-1:0}function comparePathParserScore(t,r){let $=0;const V=t.score,oe=r.score;for(;$0&&r[r.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(t){if(!t)return[[]];if(t==="/")return[[ROOT_TOKEN]];if(!t.startsWith("/"))throw new Error(`Invalid path "${t}"`);function r(Ie){throw new Error(`ERR (${$})/"${pe}": ${Ie}`)}let $=0,V=$;const oe=[];let ie;function le(){ie&&oe.push(ie),ie=[]}let ue=0,de,pe="",he="";function _e(){pe&&($===0?ie.push({type:0,value:pe}):$===1||$===2||$===3?(ie.length>1&&(de==="*"||de==="+")&&r(`A repeatable param (${pe}) must be alone in its segment. eg: '/:ids+.`),ie.push({type:1,value:pe,regexp:he,repeatable:de==="*"||de==="+",optional:de==="*"||de==="?"})):r("Invalid state to consume buffer"),pe="")}function $e(){pe+=de}for(;ue{le(Et)}:noop$1}function le(he){if(isRouteName(he)){const _e=V.get(he);_e&&(V.delete(he),$.splice($.indexOf(_e),1),_e.children.forEach(le),_e.alias.forEach(le))}else{const _e=$.indexOf(he);_e>-1&&($.splice(_e,1),he.record.name&&V.delete(he.record.name),he.children.forEach(le),he.alias.forEach(le))}}function ue(){return $}function de(he){let _e=0;for(;_e<$.length&&comparePathParserScore(he,$[_e])>=0&&(he.record.path!==$[_e].record.path||!isRecordChildOf(he,$[_e]));)_e++;$.splice(_e,0,he),he.record.name&&!isAliasRecord(he)&&V.set(he.record.name,he)}function pe(he,_e){let $e,Ie={},Ve,Fe;if("name"in he&&he.name){if($e=V.get(he.name),!$e)throw createRouterError(1,{location:he});Fe=$e.record.name,Ie=assign(paramsFromLocation(_e.params,$e.keys.filter(Et=>!Et.optional).map(Et=>Et.name)),he.params&¶msFromLocation(he.params,$e.keys.map(Et=>Et.name))),Ve=$e.stringify(Ie)}else if("path"in he)Ve=he.path,$e=$.find(Et=>Et.re.test(Ve)),$e&&(Ie=$e.parse(Ve),Fe=$e.record.name);else{if($e=_e.name?V.get(_e.name):$.find(Et=>Et.re.test(_e.path)),!$e)throw createRouterError(1,{location:he,currentLocation:_e});Fe=$e.record.name,Ie=assign({},_e.params,he.params),Ve=$e.stringify(Ie)}const Ue=[];let qe=$e;for(;qe;)Ue.unshift(qe.record),qe=qe.parent;return{name:Fe,path:Ve,params:Ie,matched:Ue,meta:mergeMetaFields(Ue)}}return t.forEach(he=>ie(he)),{addRoute:ie,resolve:pe,removeRoute:le,getRoutes:ue,getRecordMatcher:oe}}function paramsFromLocation(t,r){const $={};for(const V of r)V in t&&($[V]=t[V]);return $}function normalizeRouteRecord(t){return{path:t.path,redirect:t.redirect,name:t.name,meta:t.meta||{},aliasOf:void 0,beforeEnter:t.beforeEnter,props:normalizeRecordProps(t),children:t.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in t?t.components||null:t.component&&{default:t.component}}}function normalizeRecordProps(t){const r={},$=t.props||!1;if("component"in t)r.default=$;else for(const V in t.components)r[V]=typeof $=="object"?$[V]:$;return r}function isAliasRecord(t){for(;t;){if(t.record.aliasOf)return!0;t=t.parent}return!1}function mergeMetaFields(t){return t.reduce((r,$)=>assign(r,$.meta),{})}function mergeOptions(t,r){const $={};for(const V in t)$[V]=V in r?r[V]:t[V];return $}function isRecordChildOf(t,r){return r.children.some($=>$===t||isRecordChildOf(t,$))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(t){return encodeURI(""+t).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(t){return commonEncode(t).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(t){return commonEncode(t).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(t){return encodeQueryValue(t).replace(EQUAL_RE,"%3D")}function encodePath(t){return commonEncode(t).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(t){return t==null?"":encodePath(t).replace(SLASH_RE,"%2F")}function decode$1(t){try{return decodeURIComponent(""+t)}catch{}return""+t}function parseQuery(t){const r={};if(t===""||t==="?")return r;const V=(t[0]==="?"?t.slice(1):t).split("&");for(let oe=0;oeie&&encodeQueryValue(ie)):[V&&encodeQueryValue(V)]).forEach(ie=>{ie!==void 0&&(r+=(r.length?"&":"")+$,ie!=null&&(r+="="+ie))})}return r}function normalizeQuery(t){const r={};for(const $ in t){const V=t[$];V!==void 0&&(r[$]=isArray$3(V)?V.map(oe=>oe==null?null:""+oe):V==null?V:""+V)}return r}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let t=[];function r(V){return t.push(V),()=>{const oe=t.indexOf(V);oe>-1&&t.splice(oe,1)}}function $(){t=[]}return{add:r,list:()=>t.slice(),reset:$}}function guardToPromiseFn(t,r,$,V,oe){const ie=V&&(V.enterCallbacks[oe]=V.enterCallbacks[oe]||[]);return()=>new Promise((le,ue)=>{const de=_e=>{_e===!1?ue(createRouterError(4,{from:$,to:r})):_e instanceof Error?ue(_e):isRouteLocation(_e)?ue(createRouterError(2,{from:r,to:_e})):(ie&&V.enterCallbacks[oe]===ie&&typeof _e=="function"&&ie.push(_e),le())},pe=t.call(V&&V.instances[oe],r,$,de);let he=Promise.resolve(pe);t.length<3&&(he=he.then(de)),he.catch(_e=>ue(_e))})}function extractComponentsGuards(t,r,$,V){const oe=[];for(const ie of t)for(const le in ie.components){let ue=ie.components[le];if(!(r!=="beforeRouteEnter"&&!ie.instances[le]))if(isRouteComponent(ue)){const pe=(ue.__vccOpts||ue)[r];pe&&oe.push(guardToPromiseFn(pe,$,V,ie,le))}else{let de=ue();oe.push(()=>de.then(pe=>{if(!pe)return Promise.reject(new Error(`Couldn't resolve component "${le}" at "${ie.path}"`));const he=isESModule(pe)?pe.default:pe;ie.components[le]=he;const $e=(he.__vccOpts||he)[r];return $e&&guardToPromiseFn($e,$,V,ie,le)()}))}}return oe}function isRouteComponent(t){return typeof t=="object"||"displayName"in t||"props"in t||"__vccOpts"in t}function useLink(t){const r=inject(routerKey),$=inject(routeLocationKey),V=computed(()=>r.resolve(unref(t.to))),oe=computed(()=>{const{matched:de}=V.value,{length:pe}=de,he=de[pe-1],_e=$.matched;if(!he||!_e.length)return-1;const $e=_e.findIndex(isSameRouteRecord.bind(null,he));if($e>-1)return $e;const Ie=getOriginalPath(de[pe-2]);return pe>1&&getOriginalPath(he)===Ie&&_e[_e.length-1].path!==Ie?_e.findIndex(isSameRouteRecord.bind(null,de[pe-2])):$e}),ie=computed(()=>oe.value>-1&&includesParams($.params,V.value.params)),le=computed(()=>oe.value>-1&&oe.value===$.matched.length-1&&isSameRouteLocationParams($.params,V.value.params));function ue(de={}){return guardEvent(de)?r[unref(t.replace)?"replace":"push"](unref(t.to)).catch(noop$1):Promise.resolve()}return{route:V,href:computed(()=>V.value.href),isActive:ie,isExactActive:le,navigate:ue}}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(t,{slots:r}){const $=reactive(useLink(t)),{options:V}=inject(routerKey),oe=computed(()=>({[getLinkClass(t.activeClass,V.linkActiveClass,"router-link-active")]:$.isActive,[getLinkClass(t.exactActiveClass,V.linkExactActiveClass,"router-link-exact-active")]:$.isExactActive}));return()=>{const ie=r.default&&r.default($);return t.custom?ie:h$2("a",{"aria-current":$.isExactActive?t.ariaCurrentValue:null,href:$.href,onClick:$.navigate,class:oe.value},ie)}}}),RouterLink=RouterLinkImpl;function guardEvent(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&!(t.button!==void 0&&t.button!==0)){if(t.currentTarget&&t.currentTarget.getAttribute){const r=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return t.preventDefault&&t.preventDefault(),!0}}function includesParams(t,r){for(const $ in r){const V=r[$],oe=t[$];if(typeof V=="string"){if(V!==oe)return!1}else if(!isArray$3(oe)||oe.length!==V.length||V.some((ie,le)=>ie!==oe[le]))return!1}return!0}function getOriginalPath(t){return t?t.aliasOf?t.aliasOf.path:t.path:""}const getLinkClass=(t,r,$)=>t??r??$,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(t,{attrs:r,slots:$}){const V=inject(routerViewLocationKey),oe=computed(()=>t.route||V.value),ie=inject(viewDepthKey,0),le=computed(()=>{let pe=unref(ie);const{matched:he}=oe.value;let _e;for(;(_e=he[pe])&&!_e.components;)pe++;return pe}),ue=computed(()=>oe.value.matched[le.value]);provide(viewDepthKey,computed(()=>le.value+1)),provide(matchedRouteKey,ue),provide(routerViewLocationKey,oe);const de=ref();return watch(()=>[de.value,ue.value,t.name],([pe,he,_e],[$e,Ie,Ve])=>{he&&(he.instances[_e]=pe,Ie&&Ie!==he&&pe&&pe===$e&&(he.leaveGuards.size||(he.leaveGuards=Ie.leaveGuards),he.updateGuards.size||(he.updateGuards=Ie.updateGuards))),pe&&he&&(!Ie||!isSameRouteRecord(he,Ie)||!$e)&&(he.enterCallbacks[_e]||[]).forEach(Fe=>Fe(pe))},{flush:"post"}),()=>{const pe=oe.value,he=t.name,_e=ue.value,$e=_e&&_e.components[he];if(!$e)return normalizeSlot($.default,{Component:$e,route:pe});const Ie=_e.props[he],Ve=Ie?Ie===!0?pe.params:typeof Ie=="function"?Ie(pe):Ie:null,Ue=h$2($e,assign({},Ve,r,{onVnodeUnmounted:qe=>{qe.component.isUnmounted&&(_e.instances[he]=null)},ref:de}));return normalizeSlot($.default,{Component:Ue,route:pe})||Ue}}});function normalizeSlot(t,r){if(!t)return null;const $=t(r);return $.length===1?$[0]:$}const RouterView=RouterViewImpl;function createRouter(t){const r=createRouterMatcher(t.routes,t),$=t.parseQuery||parseQuery,V=t.stringifyQuery||stringifyQuery,oe=t.history,ie=useCallbacks(),le=useCallbacks(),ue=useCallbacks(),de=shallowRef(START_LOCATION_NORMALIZED);let pe=START_LOCATION_NORMALIZED;isBrowser$1&&t.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const he=applyToParams.bind(null,Gn=>""+Gn),_e=applyToParams.bind(null,encodeParam),$e=applyToParams.bind(null,decode$1);function Ie(Gn,Yn){let er,lr;return isRouteName(Gn)?(er=r.getRecordMatcher(Gn),lr=Yn):lr=Gn,r.addRoute(lr,er)}function Ve(Gn){const Yn=r.getRecordMatcher(Gn);Yn&&r.removeRoute(Yn)}function Fe(){return r.getRoutes().map(Gn=>Gn.record)}function Ue(Gn){return!!r.getRecordMatcher(Gn)}function qe(Gn,Yn){if(Yn=assign({},Yn||de.value),typeof Gn=="string"){const Jn=parseURL($,Gn,Yn.path),cr=r.resolve({path:Jn.path},Yn),_r=oe.createHref(Jn.fullPath);return assign(Jn,cr,{params:$e(cr.params),hash:decode$1(Jn.hash),redirectedFrom:void 0,href:_r})}let er;if("path"in Gn)er=assign({},Gn,{path:parseURL($,Gn.path,Yn.path).path});else{const Jn=assign({},Gn.params);for(const cr in Jn)Jn[cr]==null&&delete Jn[cr];er=assign({},Gn,{params:_e(Jn)}),Yn.params=_e(Yn.params)}const lr=r.resolve(er,Yn),sr=Gn.hash||"";lr.params=he($e(lr.params));const zn=stringifyURL(V,assign({},Gn,{hash:encodeHash(sr),path:lr.path})),Kn=oe.createHref(zn);return assign({fullPath:zn,hash:sr,query:V===stringifyQuery?normalizeQuery(Gn.query):Gn.query||{}},lr,{redirectedFrom:void 0,href:Kn})}function Et(Gn){return typeof Gn=="string"?parseURL($,Gn,de.value.path):assign({},Gn)}function Lt(Gn,Yn){if(pe!==Gn)return createRouterError(8,{from:Yn,to:Gn})}function hn(Gn){return Sn(Gn)}function Cn(Gn){return hn(assign(Et(Gn),{replace:!0}))}function bn(Gn){const Yn=Gn.matched[Gn.matched.length-1];if(Yn&&Yn.redirect){const{redirect:er}=Yn;let lr=typeof er=="function"?er(Gn):er;return typeof lr=="string"&&(lr=lr.includes("?")||lr.includes("#")?lr=Et(lr):{path:lr},lr.params={}),assign({query:Gn.query,hash:Gn.hash,params:"path"in lr?{}:Gn.params},lr)}}function Sn(Gn,Yn){const er=pe=qe(Gn),lr=de.value,sr=Gn.state,zn=Gn.force,Kn=Gn.replace===!0,Jn=bn(er);if(Jn)return Sn(assign(Et(Jn),{state:typeof Jn=="object"?assign({},sr,Jn.state):sr,force:zn,replace:Kn}),Yn||er);const cr=er;cr.redirectedFrom=Yn;let _r;return!zn&&isSameRouteLocation(V,lr,er)&&(_r=createRouterError(16,{to:cr,from:lr}),Un(lr,lr,!0,!1)),(_r?Promise.resolve(_r):$n(cr,lr)).catch(ur=>isNavigationFailure(ur)?isNavigationFailure(ur,2)?ur:Fn(ur):Ln(ur,cr,lr)).then(ur=>{if(ur){if(isNavigationFailure(ur,2))return Sn(assign({replace:Kn},Et(ur.to),{state:typeof ur.to=="object"?assign({},sr,ur.to.state):sr,force:zn}),Yn||cr)}else ur=xn(cr,lr,!0,Kn,sr);return Tn(cr,lr,ur),ur})}function En(Gn,Yn){const er=Lt(Gn,Yn);return er?Promise.reject(er):Promise.resolve()}function wn(Gn){const Yn=or.values().next().value;return Yn&&typeof Yn.runWithContext=="function"?Yn.runWithContext(Gn):Gn()}function $n(Gn,Yn){let er;const[lr,sr,zn]=extractChangingRecords(Gn,Yn);er=extractComponentsGuards(lr.reverse(),"beforeRouteLeave",Gn,Yn);for(const Jn of lr)Jn.leaveGuards.forEach(cr=>{er.push(guardToPromiseFn(cr,Gn,Yn))});const Kn=En.bind(null,Gn,Yn);return er.push(Kn),Qn(er).then(()=>{er=[];for(const Jn of ie.list())er.push(guardToPromiseFn(Jn,Gn,Yn));return er.push(Kn),Qn(er)}).then(()=>{er=extractComponentsGuards(sr,"beforeRouteUpdate",Gn,Yn);for(const Jn of sr)Jn.updateGuards.forEach(cr=>{er.push(guardToPromiseFn(cr,Gn,Yn))});return er.push(Kn),Qn(er)}).then(()=>{er=[];for(const Jn of zn)if(Jn.beforeEnter)if(isArray$3(Jn.beforeEnter))for(const cr of Jn.beforeEnter)er.push(guardToPromiseFn(cr,Gn,Yn));else er.push(guardToPromiseFn(Jn.beforeEnter,Gn,Yn));return er.push(Kn),Qn(er)}).then(()=>(Gn.matched.forEach(Jn=>Jn.enterCallbacks={}),er=extractComponentsGuards(zn,"beforeRouteEnter",Gn,Yn),er.push(Kn),Qn(er))).then(()=>{er=[];for(const Jn of le.list())er.push(guardToPromiseFn(Jn,Gn,Yn));return er.push(Kn),Qn(er)}).catch(Jn=>isNavigationFailure(Jn,8)?Jn:Promise.reject(Jn))}function Tn(Gn,Yn,er){ue.list().forEach(lr=>wn(()=>lr(Gn,Yn,er)))}function xn(Gn,Yn,er,lr,sr){const zn=Lt(Gn,Yn);if(zn)return zn;const Kn=Yn===START_LOCATION_NORMALIZED,Jn=isBrowser$1?history.state:{};er&&(lr||Kn?oe.replace(Gn.fullPath,assign({scroll:Kn&&Jn&&Jn.scroll},sr)):oe.push(Gn.fullPath,sr)),de.value=Gn,Un(Gn,Yn,er,Kn),Fn()}let An;function Mn(){An||(An=oe.listen((Gn,Yn,er)=>{if(!br.listening)return;const lr=qe(Gn),sr=bn(lr);if(sr){Sn(assign(sr,{replace:!0}),lr).catch(noop$1);return}pe=lr;const zn=de.value;isBrowser$1&&saveScrollPosition(getScrollKey(zn.fullPath,er.delta),computeScrollPosition()),$n(lr,zn).catch(Kn=>isNavigationFailure(Kn,12)?Kn:isNavigationFailure(Kn,2)?(Sn(Kn.to,lr).then(Jn=>{isNavigationFailure(Jn,20)&&!er.delta&&er.type===NavigationType.pop&&oe.go(-1,!1)}).catch(noop$1),Promise.reject()):(er.delta&&oe.go(-er.delta,!1),Ln(Kn,lr,zn))).then(Kn=>{Kn=Kn||xn(lr,zn,!1),Kn&&(er.delta&&!isNavigationFailure(Kn,8)?oe.go(-er.delta,!1):er.type===NavigationType.pop&&isNavigationFailure(Kn,20)&&oe.go(-1,!1)),Tn(lr,zn,Kn)}).catch(noop$1)}))}let Vn=useCallbacks(),Bn=useCallbacks(),Dn;function Ln(Gn,Yn,er){Fn(Gn);const lr=Bn.list();return lr.length?lr.forEach(sr=>sr(Gn,Yn,er)):console.error(Gn),Promise.reject(Gn)}function Pn(){return Dn&&de.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise((Gn,Yn)=>{Vn.add([Gn,Yn])})}function Fn(Gn){return Dn||(Dn=!Gn,Mn(),Vn.list().forEach(([Yn,er])=>Gn?er(Gn):Yn()),Vn.reset()),Gn}function Un(Gn,Yn,er,lr){const{scrollBehavior:sr}=t;if(!isBrowser$1||!sr)return Promise.resolve();const zn=!er&&getSavedScrollPosition(getScrollKey(Gn.fullPath,0))||(lr||!er)&&history.state&&history.state.scroll||null;return nextTick().then(()=>sr(Gn,Yn,zn)).then(Kn=>Kn&&scrollToPosition(Kn)).catch(Kn=>Ln(Kn,Gn,Yn))}const Wn=Gn=>oe.go(Gn);let Zn;const or=new Set,br={currentRoute:de,listening:!0,addRoute:Ie,removeRoute:Ve,hasRoute:Ue,getRoutes:Fe,resolve:qe,options:t,push:hn,replace:Cn,go:Wn,back:()=>Wn(-1),forward:()=>Wn(1),beforeEach:ie.add,beforeResolve:le.add,afterEach:ue.add,onError:Bn.add,isReady:Pn,install(Gn){const Yn=this;Gn.component("RouterLink",RouterLink),Gn.component("RouterView",RouterView),Gn.config.globalProperties.$router=Yn,Object.defineProperty(Gn.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(de)}),isBrowser$1&&!Zn&&de.value===START_LOCATION_NORMALIZED&&(Zn=!0,hn(oe.location).catch(sr=>{}));const er={};for(const sr in START_LOCATION_NORMALIZED)Object.defineProperty(er,sr,{get:()=>de.value[sr],enumerable:!0});Gn.provide(routerKey,Yn),Gn.provide(routeLocationKey,shallowReactive(er)),Gn.provide(routerViewLocationKey,de);const lr=Gn.unmount;or.add(Gn),Gn.unmount=function(){or.delete(Gn),or.size<1&&(pe=START_LOCATION_NORMALIZED,An&&An(),An=null,de.value=START_LOCATION_NORMALIZED,Zn=!1,Dn=!1),lr()}}};function Qn(Gn){return Gn.reduce((Yn,er)=>Yn.then(()=>wn(er)),Promise.resolve())}return br}function extractChangingRecords(t,r){const $=[],V=[],oe=[],ie=Math.max(r.matched.length,t.matched.length);for(let le=0;leisSameRouteRecord(pe,ue))?V.push(ue):$.push(ue));const de=t.matched[le];de&&(r.matched.find(pe=>isSameRouteRecord(pe,de))||oe.push(de))}return[$,V,oe]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const getAsyncRoutes=()=>http.request("get","/get-async-routes"),IFrame=()=>__vitePreload(()=>import("./frameView.js"),["static/js/frameView.js","static/css/frameView.css"]),modulesRoutes=Object.assign({"/src/views/able/barcode.vue":()=>__vitePreload(()=>import("./barcode.js"),[]),"/src/views/able/cascader.vue":()=>__vitePreload(()=>import("./cascader.js"),["static/js/cascader.js","static/css/cascader.css"]),"/src/views/able/debounce.vue":()=>__vitePreload(()=>import("./debounce.js"),[]),"/src/views/able/directives.vue":()=>__vitePreload(()=>import("./directives.js"),[]),"/src/views/able/download.vue":()=>__vitePreload(()=>import("./download.js"),[]),"/src/views/able/excel.vue":()=>__vitePreload(()=>import("./excel.js"),["static/js/excel.js","static/js/xlsx.js"]),"/src/views/able/icon-select.vue":()=>__vitePreload(()=>import("./icon-select.js"),[]),"/src/views/able/infinite-scroll.vue":()=>__vitePreload(()=>import("./infinite-scroll.js"),[]),"/src/views/able/line-tree.vue":()=>__vitePreload(()=>import("./line-tree.js"),["static/js/line-tree.js","static/css/line-tree.css"]),"/src/views/able/menu-tree.vue":()=>__vitePreload(()=>import("./menu-tree.js"),["static/js/menu-tree.js","static/js/hooks.js"]),"/src/views/able/pdf.vue":()=>__vitePreload(()=>import("./pdf.js"),["static/js/pdf.js","static/js/vue.runtime.esm-bundler.js"]),"/src/views/able/pinyin.vue":()=>__vitePreload(()=>import("./pinyin.js"),["static/js/pinyin.js","static/js/index62.js","static/css/pinyin.css"]),"/src/views/able/print.vue":()=>__vitePreload(()=>import("./print.js"),["static/js/print.js","static/js/print2.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/css/print.css"]),"/src/views/able/qrcode.vue":()=>__vitePreload(()=>import("./qrcode.js"),["static/js/qrcode.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css"]),"/src/views/able/sensitive.vue":()=>__vitePreload(()=>import("./sensitive.js"),[]),"/src/views/able/swiper.vue":()=>__vitePreload(()=>import("./swiper.js"),["static/js/swiper.js","static/css/swiper.css"]),"/src/views/able/timeline.vue":()=>__vitePreload(()=>import("./timeline.js"),["static/js/timeline.js","static/js/index60.js","static/css/index12.css","static/js/hooks.js","static/js/iphone.js","static/css/timeline.css"]),"/src/views/able/video-frame/index.vue":()=>__vitePreload(()=>import("./index2.js"),["static/js/index2.js","static/js/mitt.js","static/css/index2.css"]),"/src/views/able/virtual-list/horizontal.vue":()=>__vitePreload(()=>import("./horizontal.js"),["static/js/horizontal.js","static/js/vue-virtual-scroller.esm.js","static/css/horizontal.css"]),"/src/views/able/virtual-list/index.vue":()=>__vitePreload(()=>import("./index4.js"),["static/js/index4.js","static/js/vertical.js","static/js/vue-virtual-scroller.esm.js","static/css/vertical.css","static/js/horizontal.js","static/css/horizontal.css","static/css/index4.css"]),"/src/views/able/virtual-list/vertical.vue":()=>__vitePreload(()=>import("./vertical.js"),["static/js/vertical.js","static/js/vue-virtual-scroller.esm.js","static/css/vertical.css"]),"/src/views/able/watermark.vue":()=>__vitePreload(()=>import("./watermark.js"),[]),"/src/views/able/wavesurfer/index.vue":()=>__vitePreload(()=>import("./index3.js"),["static/js/index3.js","static/js/vue-tippy.esm-browser.js","static/css/index3.css"]),"/src/views/about/columns.tsx":()=>__vitePreload(()=>import("./columns.js"),[]),"/src/views/about/index.vue":()=>__vitePreload(()=>import("./index5.js"),["static/js/index5.js","static/js/columns.js","static/css/index5.css"]),"/src/views/components/button/index.vue":()=>__vitePreload(()=>import("./index14.js"),[]),"/src/views/components/contextmenu/basic.vue":()=>__vitePreload(()=>import("./basic.js"),["static/js/basic.js","static/js/index.esm.js","static/css/basic.css"]),"/src/views/components/contextmenu/index.vue":()=>__vitePreload(()=>import("./index19.js"),["static/js/index19.js","static/js/basic.js","static/js/index.esm.js","static/css/basic.css","static/js/menuGroup.js","static/css/menuGroup.css","static/js/menuDynamic.js","static/css/menuDynamic.css","static/css/index18.css"]),"/src/views/components/contextmenu/menuDynamic.vue":()=>__vitePreload(()=>import("./menuDynamic.js"),["static/js/menuDynamic.js","static/js/index.esm.js","static/css/menuDynamic.css"]),"/src/views/components/contextmenu/menuGroup.vue":()=>__vitePreload(()=>import("./menuGroup.js"),["static/js/menuGroup.js","static/js/index.esm.js","static/css/menuGroup.css"]),"/src/views/components/count-to/index.vue":()=>__vitePreload(()=>import("./index16.js"),["static/js/index16.js","static/js/propTypes.js","static/css/index15.css"]),"/src/views/components/cropping/index.vue":()=>__vitePreload(()=>import("./index15.js"),["static/js/index15.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css"]),"/src/views/components/danmaku/index.vue":()=>__vitePreload(()=>import("./index22.js"),["static/js/index22.js","static/css/index19.css"]),"/src/views/components/dialog/form.vue":()=>__vitePreload(()=>import("./form.js"),["static/js/form.js","static/js/form.vue_vue_type_script_setup_true_lang.js"]),"/src/views/components/dialog/formPrimitive.vue":()=>__vitePreload(()=>import("./formPrimitive.js"),["static/js/formPrimitive.js","static/js/formPrimitive.vue_vue_type_script_setup_true_lang.js"]),"/src/views/components/dialog/index.vue":()=>__vitePreload(()=>import("./index6.js"),["static/js/index6.js","static/js/form.vue_vue_type_script_setup_true_lang.js","static/js/formPrimitive.vue_vue_type_script_setup_true_lang.js"]),"/src/views/components/draggable/index.vue":()=>__vitePreload(()=>import("./index12.js"),["static/js/index12.js","static/js/sortable.esm.js","static/js/app.js","static/js/hooks.js","static/css/index10.css"]),"/src/views/components/json-editor/index.vue":()=>__vitePreload(()=>import("./index21.js"),["static/js/index21.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css"]),"/src/views/components/map/index.vue":()=>__vitePreload(()=>import("./index11.js"),["static/js/index11.js","static/css/index9.css"]),"/src/views/components/message/index.vue":()=>__vitePreload(()=>import("./index7.js"),["static/js/index7.js","static/js/hooks.js","static/js/check.js"]),"/src/views/components/seamless-scroll/index.vue":()=>__vitePreload(()=>import("./index18.js"),["static/js/index18.js","static/css/index17.css"]),"/src/views/components/segmented/index.vue":()=>__vitePreload(()=>import("./index8.js"),["static/js/index8.js","static/js/home-filled.js","static/js/hooks.js","static/css/index6.css"]),"/src/views/components/selector/index.vue":()=>__vitePreload(()=>import("./index17.js"),["static/js/index17.js","static/css/index16.css"]),"/src/views/components/split-pane/index.vue":()=>__vitePreload(()=>import("./index13.js"),["static/js/index13.js","static/css/index11.css"]),"/src/views/components/typeit/index.vue":()=>__vitePreload(()=>import("./index20.js"),["static/js/index20.js","static/js/index64.js"]),"/src/views/components/video/index.vue":()=>__vitePreload(()=>import("./index10.js"),["static/js/index10.js","static/js/hooks.js","static/css/index8.css"]),"/src/views/components/waterfall/index.vue":()=>__vitePreload(()=>import("./index9.js"),["static/js/index9.js","static/js/back_top.js","static/css/index7.css"]),"/src/views/editor/components/base.vue":()=>__vitePreload(()=>import("./base.js"),["static/js/base.js","static/js/base.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css"]),"/src/views/editor/components/multi.vue":()=>__vitePreload(()=>import("./multi.js"),["static/js/multi.js","static/js/multi.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/index.esm2.js","static/css/index21.css"]),"/src/views/editor/components/picUpload.vue":()=>__vitePreload(()=>import("./picUpload.js"),["static/js/picUpload.js","static/js/picUpload.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css"]),"/src/views/editor/index.vue":()=>__vitePreload(()=>import("./index23.js"),["static/js/index23.js","static/js/base.vue_vue_type_script_setup_true_lang.js","static/js/index.esm2.js","static/css/index21.css","static/js/multi.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/picUpload.vue_vue_type_script_setup_true_lang.js","static/css/index20.css"]),"/src/views/empty/index.vue":()=>__vitePreload(()=>import("./index37.js"),["static/js/index37.js","static/css/index28.css"]),"/src/views/error/403.vue":()=>__vitePreload(()=>import("./403.js"),[]),"/src/views/error/404.vue":()=>__vitePreload(()=>import("./404.js"),[]),"/src/views/error/500.vue":()=>__vitePreload(()=>import("./500.js"),[]),"/src/views/flow-chart/index.vue":()=>__vitePreload(()=>import("./index24.js"),["static/js/index24.js","static/js/hooks.js","static/js/styles.js","static/js/vue.runtime.esm-bundler.js","static/css/styles.css","static/js/set-up.js","static/css/index22.css"]),"/src/views/guide/index.vue":()=>__vitePreload(()=>import("./index25.js"),["static/js/index25.js","static/css/index23.css"]),"/src/views/list/card/components/Card.vue":()=>__vitePreload(()=>import("./Card.js"),["static/js/Card.js","static/js/more-2-fill.js","static/css/Card.css"]),"/src/views/list/card/components/DialogForm.vue":()=>__vitePreload(()=>import("./DialogForm.js"),["static/js/DialogForm.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang.js"]),"/src/views/list/card/index.vue":()=>__vitePreload(()=>import("./index28.js"),["static/js/index28.js","static/js/Card.js","static/js/more-2-fill.js","static/css/Card.css","static/js/list3.js","static/js/DialogForm.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/search.js","static/js/add-circle-line.js"]),"/src/views/login/components/phone.vue":()=>__vitePreload(()=>import("./phone.js"),["static/js/phone.js","static/js/phone.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/verifyCode.js","static/js/hooks.js","static/js/iphone.js"]),"/src/views/login/components/qrCode.vue":()=>__vitePreload(()=>import("./qrCode2.js"),["static/js/qrCode2.js","static/js/qrCode.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css"]),"/src/views/login/components/regist.vue":()=>__vitePreload(()=>import("./regist.js"),["static/js/regist.js","static/js/regist.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/verifyCode.js","static/js/hooks.js","static/js/lock-fill.js","static/js/iphone.js","static/js/user-3-fill.js"]),"/src/views/login/components/update.vue":()=>__vitePreload(()=>import("./update.js"),["static/js/update.js","static/js/update.vue_vue_type_script_setup_true_lang.js","static/js/motion.js","static/js/verifyCode.js","static/js/hooks.js","static/js/lock-fill.js","static/js/iphone.js"]),"/src/views/login/index.vue":()=>__vitePreload(()=>import("./index36.js"),["static/js/index36.js","static/js/motion.js","static/js/verifyCode.js","static/js/phone.vue_vue_type_script_setup_true_lang.js","static/js/hooks.js","static/js/iphone.js","static/js/index64.js","static/js/qrCode.vue_vue_type_script_setup_true_lang.js","static/js/index61.js","static/js/propTypes.js","static/js/refresh-right.js","static/css/index13.css","static/js/regist.vue_vue_type_script_setup_true_lang.js","static/js/lock-fill.js","static/js/user-3-fill.js","static/js/update.vue_vue_type_script_setup_true_lang.js","static/js/dark.js","static/js/epTheme.js","static/js/mitt.js","static/js/app.js","static/js/check.js","static/css/index27.css"]),"/src/views/menuoverflow/index.vue":()=>__vitePreload(()=>import("./index29.js"),[]),"/src/views/nested/menu1/menu1-1/index.vue":()=>__vitePreload(()=>import("./index30.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-1/index.vue":()=>__vitePreload(()=>import("./index31.js"),[]),"/src/views/nested/menu1/menu1-2/menu1-2-2/index.vue":()=>__vitePreload(()=>import("./index32.js"),[]),"/src/views/nested/menu1/menu1-3/index.vue":()=>__vitePreload(()=>import("./index33.js"),[]),"/src/views/nested/menu2/index.vue":()=>__vitePreload(()=>import("./index34.js"),[]),"/src/views/permission/button/index.vue":()=>__vitePreload(()=>import("./index38.js"),[]),"/src/views/permission/page/index.vue":()=>__vitePreload(()=>import("./index39.js"),[]),"/src/views/pure-table/base/base.vue":()=>__vitePreload(()=>import("./base2.js"),["static/js/base2.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js"]),"/src/views/pure-table/base/border.vue":()=>__vitePreload(()=>import("./border.js"),["static/js/border.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/column-template/columns.tsx":()=>__vitePreload(()=>import("./columns2.js"),["static/js/columns2.js","static/js/data.js"]),"/src/views/pure-table/base/column-template/index.vue":()=>__vitePreload(()=>import("./index40.js"),["static/js/index40.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/data.js"]),"/src/views/pure-table/base/customIndex.vue":()=>__vitePreload(()=>import("./customIndex.js"),["static/js/customIndex.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/expand.vue":()=>__vitePreload(()=>import("./expand.js"),["static/js/expand.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/filters.vue":()=>__vitePreload(()=>import("./filters.js"),["static/js/filters.js","static/js/filters.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/fixColumn.vue":()=>__vitePreload(()=>import("./fixColumn.js"),["static/js/fixColumn.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/fixHeader.vue":()=>__vitePreload(()=>import("./fixHeader.js"),["static/js/fixHeader.js","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/fluidHeight.vue":()=>__vitePreload(()=>import("./fluidHeight.js"),["static/js/fluidHeight.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/groupHeader.vue":()=>__vitePreload(()=>import("./groupHeader.js"),["static/js/groupHeader.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/header-renderer/columns.tsx":()=>__vitePreload(()=>import("./columns3.js"),["static/js/columns3.js","static/js/data.js"]),"/src/views/pure-table/base/header-renderer/index.vue":()=>__vitePreload(()=>import("./index41.js"),["static/js/index41.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/data.js"]),"/src/views/pure-table/base/imgPreview.vue":()=>__vitePreload(()=>import("./imgPreview.js"),["static/js/imgPreview.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/layout.vue":()=>__vitePreload(()=>import("./layout.js"),["static/js/layout.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/list.tsx":()=>__vitePreload(()=>import("./list.js"),["static/js/list.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/css/status.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/filters.vue_vue_type_script_setup_true_lang.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/tree.vue_vue_type_script_setup_true_lang.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js","static/js/merge.vue_vue_type_script_setup_true_lang.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/merge.vue":()=>__vitePreload(()=>import("./merge.js"),["static/js/merge.js","static/js/merge.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/multipleChoice.vue":()=>__vitePreload(()=>import("./multipleChoice.js"),["static/js/multipleChoice.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/nestProp.vue":()=>__vitePreload(()=>import("./nestProp.js"),["static/js/nestProp.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/radio.vue":()=>__vitePreload(()=>import("./radio.js"),["static/js/radio.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/sortable.vue":()=>__vitePreload(()=>import("./sortable.js"),["static/js/sortable.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/status.vue":()=>__vitePreload(()=>import("./status.js"),["static/js/status.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/js/data.js","static/css/status.css"]),"/src/views/pure-table/base/stripe.vue":()=>__vitePreload(()=>import("./stripe.js"),["static/js/stripe.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/data.js"]),"/src/views/pure-table/base/totalRow.vue":()=>__vitePreload(()=>import("./totalRow.js"),["static/js/totalRow.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/base/tree.vue":()=>__vitePreload(()=>import("./tree.js"),["static/js/tree.js","static/js/tree.vue_vue_type_script_setup_true_lang.js"]),"/src/views/pure-table/high.vue":()=>__vitePreload(()=>import("./high.js"),["static/js/high.js","static/js/list2.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/edit-pen.js","static/js/check.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js","static/css/high.css"]),"/src/views/pure-table/high/adaptive/columns.tsx":()=>__vitePreload(()=>import("./columns4.js"),["static/js/columns4.js","static/js/data2.js"]),"/src/views/pure-table/high/adaptive/index.vue":()=>__vitePreload(()=>import("./index42.js"),["static/js/index42.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js"]),"/src/views/pure-table/high/contextmenu/columns.tsx":()=>__vitePreload(()=>import("./columns5.js"),["static/js/columns5.js","static/js/data2.js"]),"/src/views/pure-table/high/contextmenu/index.vue":()=>__vitePreload(()=>import("./index43.js"),["static/js/index43.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/column/columns.tsx":()=>__vitePreload(()=>import("./columns6.js"),["static/js/columns6.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/column/index.vue":()=>__vitePreload(()=>import("./index44.js"),["static/js/index44.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/row/columns.tsx":()=>__vitePreload(()=>import("./columns7.js"),["static/js/columns7.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/drag/row/index.vue":()=>__vitePreload(()=>import("./index45.js"),["static/js/index45.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/data2.js"]),"/src/views/pure-table/high/echarts/columns.tsx":()=>__vitePreload(()=>import("./columns8.js"),["static/js/columns8.js","static/js/data2.js"]),"/src/views/pure-table/high/echarts/index.vue":()=>__vitePreload(()=>import("./index46.js"),["static/js/index46.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/data2.js"]),"/src/views/pure-table/high/edit/columns.tsx":()=>__vitePreload(()=>import("./columns9.js"),["static/js/columns9.js","static/js/data2.js","static/js/edit-pen.js","static/js/check.js"]),"/src/views/pure-table/high/edit/index.vue":()=>__vitePreload(()=>import("./index47.js"),["static/js/index47.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/data2.js","static/js/edit-pen.js","static/js/check.js"]),"/src/views/pure-table/high/excel/columns.tsx":()=>__vitePreload(()=>import("./columns10.js"),["static/js/columns10.js","static/js/xlsx.js","static/js/data2.js"]),"/src/views/pure-table/high/excel/index.vue":()=>__vitePreload(()=>import("./index48.js"),["static/js/index48.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/data2.js"]),"/src/views/pure-table/high/list.tsx":()=>__vitePreload(()=>import("./list2.js"),["static/js/list2.js","static/js/index.vue_vue_type_script_setup_true_lang3.js","static/js/columns4.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/index.vue_vue_type_script_setup_true_lang5.js","static/js/columns7.js","static/js/sortable.esm.js","static/js/index.vue_vue_type_script_setup_true_lang6.js","static/js/columns6.js","static/js/index.vue_vue_type_script_setup_true_lang7.js","static/js/columns5.js","static/js/index.vue_vue_type_script_setup_true_lang8.js","static/js/columns10.js","static/js/xlsx.js","static/js/index.vue_vue_type_script_setup_true_lang9.js","static/js/columns9.js","static/js/edit-pen.js","static/js/check.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/index.vue_vue_type_script_setup_true_lang12.js","static/js/columns8.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js"]),"/src/views/pure-table/high/page/columns.tsx":()=>__vitePreload(()=>import("./columns11.js"),["static/js/columns11.js","static/js/data2.js"]),"/src/views/pure-table/high/page/index.vue":()=>__vitePreload(()=>import("./index49.js"),["static/js/index49.js","static/js/index.vue_vue_type_script_setup_true_lang4.js","static/js/columns11.js","static/js/data2.js"]),"/src/views/pure-table/high/prints/columns.tsx":()=>__vitePreload(()=>import("./columns12.js"),["static/js/columns12.js","static/js/print2.js","static/js/data2.js"]),"/src/views/pure-table/high/prints/index.vue":()=>__vitePreload(()=>import("./index50.js"),["static/js/index50.js","static/js/index.vue_vue_type_script_setup_true_lang11.js","static/js/columns12.js","static/js/print2.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/index.vue":()=>__vitePreload(()=>import("./index51.js"),["static/js/index51.js","static/js/index.vue_vue_type_script_setup_true_lang13.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/data2.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js"]),"/src/views/pure-table/high/table-select/multiple/columns.tsx":()=>__vitePreload(()=>import("./columns13.js"),["static/js/columns13.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/multiple/index.vue":()=>__vitePreload(()=>import("./index52.js"),["static/js/index52.js","static/js/index.vue_vue_type_script_setup_true_lang15.js","static/js/columns13.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/radio/columns.tsx":()=>__vitePreload(()=>import("./columns14.js"),["static/js/columns14.js","static/js/data2.js"]),"/src/views/pure-table/high/table-select/radio/index.vue":()=>__vitePreload(()=>import("./index53.js"),["static/js/index53.js","static/js/index.vue_vue_type_script_setup_true_lang14.js","static/js/columns14.js","static/js/data2.js"]),"/src/views/pure-table/high/watermark/columns.tsx":()=>__vitePreload(()=>import("./columns15.js"),["static/js/columns15.js","static/js/data2.js"]),"/src/views/pure-table/high/watermark/index.vue":()=>__vitePreload(()=>import("./index54.js"),["static/js/index54.js","static/js/index.vue_vue_type_script_setup_true_lang10.js","static/js/columns15.js","static/js/data2.js"]),"/src/views/pure-table/index.vue":()=>__vitePreload(()=>import("./index35.js"),["static/js/index35.js","static/js/list.js","static/js/base.vue_vue_type_script_setup_true_lang2.js","static/js/data.js","static/js/stripe.vue_vue_type_script_setup_true_lang.js","static/js/border.vue_vue_type_script_setup_true_lang.js","static/js/status.vue_vue_type_style_index_0_lang.js","static/css/status.css","static/js/fixHeader.vue_vue_type_script_setup_true_lang.js","static/js/fixColumn.vue_vue_type_script_setup_true_lang.js","static/js/fluidHeight.vue_vue_type_script_setup_true_lang.js","static/js/groupHeader.vue_vue_type_script_setup_true_lang.js","static/js/radio.vue_vue_type_script_setup_true_lang.js","static/js/multipleChoice.vue_vue_type_script_setup_true_lang.js","static/js/sortable.vue_vue_type_script_setup_true_lang.js","static/js/filters.vue_vue_type_script_setup_true_lang.js","static/js/index.vue_vue_type_script_setup_true_lang.js","static/js/columns2.js","static/js/index.vue_vue_type_script_setup_true_lang2.js","static/js/columns3.js","static/js/expand.vue_vue_type_script_setup_true_lang.js","static/js/tree.vue_vue_type_script_setup_true_lang.js","static/js/totalRow.vue_vue_type_script_setup_true_lang.js","static/js/merge.vue_vue_type_script_setup_true_lang.js","static/js/customIndex.vue_vue_type_script_setup_true_lang.js","static/js/layout.vue_vue_type_script_setup_true_lang.js","static/js/nestProp.vue_vue_type_script_setup_true_lang.js","static/js/imgPreview.vue_vue_type_script_setup_true_lang.js","static/css/index26.css"]),"/src/views/result/columns.tsx":()=>__vitePreload(()=>import("./columns16.js"),["static/js/columns16.js","static/js/arrow-right-s-line.js"]),"/src/views/result/fail.vue":()=>__vitePreload(()=>import("./fail.js"),["static/js/fail.js","static/js/columns16.js","static/js/arrow-right-s-line.js","static/css/fail.css"]),"/src/views/result/success.vue":()=>__vitePreload(()=>import("./success.js"),["static/js/success.js","static/css/success.css"]),"/src/views/system/dept/form.vue":()=>__vitePreload(()=>import("./form2.js"),["static/js/form2.js","static/js/form.vue_vue_type_script_setup_true_lang2.js","static/js/index65.js","static/js/hooks2.js"]),"/src/views/system/dept/index.vue":()=>__vitePreload(()=>import("./index55.js"),["static/js/index55.js","static/js/hook.js","static/js/form.vue_vue_type_script_setup_true_lang2.js","static/js/index65.js","static/js/hooks2.js","static/js/system.js","static/js/refresh.js","static/js/epTheme.js","static/js/sortable.esm.js","static/js/hooks.js","static/js/edit-pen.js","static/js/search.js","static/js/add-circle-line.js","static/css/index29.css"]),"/src/views/system/dept/utils/hook.tsx":()=>__vitePreload(()=>import("./hook.js"),["static/js/hook.js","static/js/form.vue_vue_type_script_setup_true_lang2.js","static/js/index65.js","static/js/hooks2.js","static/js/system.js"]),"/src/views/system/role/form.vue":()=>__vitePreload(()=>import("./form3.js"),["static/js/form3.js","static/js/form.vue_vue_type_script_setup_true_lang3.js"]),"/src/views/system/role/index.vue":()=>__vitePreload(()=>import("./index56.js"),["static/js/index56.js","static/js/hook2.js","static/js/form.vue_vue_type_script_setup_true_lang3.js","static/js/system.js","static/js/hooks2.js","static/js/refresh.js","static/js/epTheme.js","static/js/sortable.esm.js","static/js/hooks.js","static/js/edit-pen.js","static/js/search.js","static/js/menu.js","static/js/add-circle-line.js","static/css/index30.css"]),"/src/views/system/role/utils/hook.tsx":()=>__vitePreload(()=>import("./hook2.js"),["static/js/hook2.js","static/js/form.vue_vue_type_script_setup_true_lang3.js","static/js/system.js","static/js/hooks2.js"]),"/src/views/system/user/form/index.vue":()=>__vitePreload(()=>import("./index57.js"),["static/js/index57.js","static/js/index.vue_vue_type_script_setup_true_lang16.js","static/js/index65.js","static/js/hooks2.js"]),"/src/views/system/user/form/role.vue":()=>__vitePreload(()=>import("./role.js"),["static/js/role.js","static/js/role.vue_vue_type_script_setup_true_lang.js","static/js/index65.js"]),"/src/views/system/user/index.vue":()=>__vitePreload(()=>import("./index58.js"),["static/js/index58.js","static/js/tree2.js","static/js/hooks.js","static/js/git-branch-line.js","static/js/search.js","static/js/more-2-fill.js","static/js/office-building.js","static/css/tree.css","static/js/hook3.js","static/js/role.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/index.vue_vue_type_script_setup_true_lang16.js","static/js/hooks2.js","static/js/upload.vue_vue_type_script_setup_true_lang.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css","static/js/system.js","static/css/hook.css","static/js/refresh.js","static/js/epTheme.js","static/js/sortable.esm.js","static/js/admin-line.js","static/js/edit-pen.js","static/js/add-circle-line.js","static/css/index31.css"]),"/src/views/system/user/tree.vue":()=>__vitePreload(()=>import("./tree2.js"),["static/js/tree2.js","static/js/hooks.js","static/js/git-branch-line.js","static/js/search.js","static/js/more-2-fill.js","static/js/office-building.js","static/css/tree.css"]),"/src/views/system/user/upload.vue":()=>__vitePreload(()=>import("./upload.js"),["static/js/upload.js","static/js/upload.vue_vue_type_script_setup_true_lang.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css"]),"/src/views/system/user/utils/hook.tsx":()=>__vitePreload(()=>import("./hook3.js"),["static/js/hook3.js","static/js/role.vue_vue_type_script_setup_true_lang.js","static/js/index65.js","static/js/index.vue_vue_type_script_setup_true_lang16.js","static/js/hooks2.js","static/js/upload.vue_vue_type_script_setup_true_lang.js","static/js/index63.js","static/js/vue-tippy.esm-browser.js","static/css/index14.css","static/js/system.js","static/css/hook.css"]),"/src/views/tabs/index.vue":()=>__vitePreload(()=>import("./index59.js"),["static/js/index59.js","static/js/hooks3.js"]),"/src/views/tabs/params-detail.vue":()=>__vitePreload(()=>import("./params-detail.js"),["static/js/params-detail.js","static/js/hooks3.js"]),"/src/views/tabs/query-detail.vue":()=>__vitePreload(()=>import("./query-detail.js"),["static/js/query-detail.js","static/js/hooks3.js"]),"/src/views/welcome/components/Bar.vue":()=>__vitePreload(()=>import("./Bar.js"),["static/js/Bar.js","static/js/Bar.vue_vue_type_script_setup_true_lang.js","static/js/app.js"]),"/src/views/welcome/components/Github.vue":()=>__vitePreload(()=>import("./Github.js"),["static/js/Github.js","static/js/Github.vue_vue_type_script_setup_true_lang.js","static/js/columns17.js","static/js/index64.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js"]),"/src/views/welcome/components/Line.vue":()=>__vitePreload(()=>import("./Line.js"),["static/js/Line.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/app.js"]),"/src/views/welcome/components/Pie.vue":()=>__vitePreload(()=>import("./Pie.js"),["static/js/Pie.js","static/js/Pie.vue_vue_type_script_setup_true_lang.js","static/js/app.js"]),"/src/views/welcome/components/columns.tsx":()=>__vitePreload(()=>import("./columns17.js"),["static/js/columns17.js","static/js/index64.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js"]),"/src/views/welcome/index.vue":()=>__vitePreload(()=>import("./index27.js"),["static/js/index27.js","static/js/Bar.vue_vue_type_script_setup_true_lang.js","static/js/app.js","static/js/Pie.vue_vue_type_script_setup_true_lang.js","static/js/Line.vue_vue_type_script_setup_true_lang.js","static/js/list3.js","static/js/index64.js","static/js/Github.vue_vue_type_script_setup_true_lang.js","static/js/columns17.js","static/js/office-building.js","static/js/iphone.js","static/js/user-3-fill.js","static/js/index60.js","static/css/index12.css","static/css/index25.css"])});function handRank(t){const{name:r,path:$,parentId:V,meta:oe}=t;return k(V)?!!(k(oe==null?void 0:oe.rank)||(oe==null?void 0:oe.rank)===0&&r!=="Home"&&$!=="/"):!1}function ascending(t){return t.forEach((r,$)=>{handRank(r)&&(r.meta.rank=$+2)}),t.sort((r,$)=>(r==null?void 0:r.meta.rank)-($==null?void 0:$.meta.rank))}function filterTree(t){const r=nn(t).filter($=>{var V;return((V=$.meta)==null?void 0:V.showLink)!==!1});return r.forEach($=>$.children&&($.children=filterTree($.children))),r}function filterChildrenTree(t){const r=nn(t).filter($=>{var V;return((V=$==null?void 0:$.children)==null?void 0:V.length)!==0});return r.forEach($=>$.children&&($.children=filterTree($.children))),r}function isOneOfArray(t,r){return Array.isArray(t)&&Array.isArray(r)?Mr(t,r).length>0:!0}function filterNoPermissionTree(t){var V;const r=((V=rr().getItem(userKey))==null?void 0:V.roles)??[],$=nn(t).filter(oe=>{var ie;return isOneOfArray((ie=oe.meta)==null?void 0:ie.roles,r)});return $.forEach(oe=>oe.children&&(oe.children=filterNoPermissionTree(oe.children))),filterChildrenTree($)}function getParentPaths(t,r,$="path"){function V(oe,ie,le){for(let ue=0;ueV.path==t);if($)return isProxy($)?toRaw($):$;for(let V=0;V0&&($=findRouteByPath(t,r[V].children),$))return isProxy($)?toRaw($):$;return null}function addPathMatch(){router.hasRoute("pathMatch")||router.addRoute({path:"/:pathMatch(.*)",name:"pathMatch",redirect:"/error/404"})}function handleAsyncRoutes(t){t.length===0||formatFlatteningRoutes(addAsyncRoutes(t)).map(r=>{if(router.options.routes[0].children.findIndex($=>$.path===r.path)===-1){router.options.routes[0].children.push(r),ascending(router.options.routes[0].children),router.hasRoute(r==null?void 0:r.name)||router.addRoute(r);const $=router.getRoutes().find(V=>V.path==="/");router.addRoute($)}}),usePermissionStoreHook().handleWholeMenus(t),addPathMatch()}function initRouter(){var t;if((t=getConfig())!=null&&t.CachingAsyncRoutes){const r="async-routes",$=rr().getItem(r);return $&&($==null?void 0:$.length)>0?new Promise(V=>{handleAsyncRoutes($),V(router)}):new Promise(V=>{getAsyncRoutes().then(({data:oe})=>{handleAsyncRoutes(nn(oe)),rr().setItem(r,oe),V(router)})})}else return new Promise(r=>{getAsyncRoutes().then(({data:$})=>{handleAsyncRoutes(nn($)),r(router)})})}function formatFlatteningRoutes(t){if(t.length===0)return t;let r=buildHierarchyTree(t);for(let $=0;${var V;$.path==="/"?r.push({component:$.component,name:$.name,path:$.path,redirect:$.redirect,meta:$.meta,children:[]}):(V=r[0])==null||V.children.push({...$})}),r}function handleAliveRoute({name:t},r){switch(r){case"add":usePermissionStoreHook().cacheOperate({mode:"add",name:t});break;case"delete":usePermissionStoreHook().cacheOperate({mode:"delete",name:t});break;case"refresh":usePermissionStoreHook().cacheOperate({mode:"refresh",name:t});break;default:usePermissionStoreHook().cacheOperate({mode:"delete",name:t}),useTimeoutFn(()=>{usePermissionStoreHook().cacheOperate({mode:"add",name:t})},100)}}function addAsyncRoutes(t){if(!t||!t.length)return;const r=Object.keys(modulesRoutes);return t.forEach($=>{var V;if($.meta.backstage=!0,$!=null&&$.children&&$.children.length&&!$.redirect&&($.redirect=$.children[0].path),$!=null&&$.children&&$.children.length&&!$.name&&($.name=$.children[0].name+"Parent"),(V=$.meta)!=null&&V.frameSrc)$.component=IFrame;else{const oe=$!=null&&$.component?r.findIndex(ie=>ie.includes($.component)):r.findIndex(ie=>ie.includes($.path));$.component=modulesRoutes[r[oe]]}$!=null&&$.children&&$.children.length&&addAsyncRoutes($.children)}),t}function getHistoryMode(t){const r=t.split(","),$=r[0],V=r[1];if(r.length===1){if($==="hash")return createWebHashHistory("");if($==="h5")return createWebHistory("")}else if(r.length===2){if($==="hash")return createWebHashHistory(V);if($==="h5")return createWebHistory(V)}}function getAuths(){return router.currentRoute.value.meta.auths}function hasAuth(t){if(!t)return!1;const r=getAuths();return r?!!(A(t)?r.includes(t):vr(t,r)):!1}function getTopMenu(t=!1){var $;const r=($=usePermissionStoreHook().wholeMenus[0])==null?void 0:$.children[0];return t&&useMultiTagsStoreHook().handleTags("push",r),r}const usePermissionStore=defineStore({id:"pure-permission",state:()=>({constantMenus,wholeMenus:[],cachePageList:[]}),actions:{handleWholeMenus(t){this.wholeMenus=filterNoPermissionTree(filterTree(ascending(this.constantMenus.concat(t))))},cacheOperate({mode:t,name:r}){const $=this.cachePageList.findIndex(V=>V===r);switch(t){case"refresh":this.cachePageList=this.cachePageList.filter(V=>V!==r);break;case"add":this.cachePageList.push(r);break;case"delete":$!==-1&&this.cachePageList.splice($,1);break}Tt(()=>{let V=this.cachePageList.length;const oe=Ar(useMultiTagsStoreHook().multiTags,"name");for(;V>0;)oe.findIndex(ie=>ie===this.cachePageList[V-1])===-1&&this.cachePageList.splice(this.cachePageList.indexOf(this.cachePageList[V-1]),1),V--})()},clearAllCachePage(){this.wholeMenus=[],this.cachePageList=[]}}});function usePermissionStoreHook(){return usePermissionStore(store)}const 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(t=>{routes.push(modules$1[t].default)});const constantRoutes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(1/0))))),constantMenus=ascending(routes.flat(1/0)).concat(...remainingRouter),remainingPaths=Object.keys(remainingRouter).map(t=>remainingRouter[t].path),router=createRouter({history:getHistoryMode("hash"),routes:constantRoutes.concat(...remainingRouter),strict:!0,scrollBehavior(t,r,$){return new Promise(V=>{if($)return $;if(r.meta.saveSrollTop){const oe=document.documentElement.scrollTop||document.body.scrollTop;V({left:0,top:oe})}})}});function resetRouter(){router.getRoutes().forEach(t=>{const{name:r,meta:$}=t;r&&router.hasRoute(r)&&($!=null&&$.backstage)&&(router.removeRoute(r),router.options.routes=formatTwoStageRoutes(formatFlatteningRoutes(buildHierarchyTree(ascending(routes.flat(1/0))))))}),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((t,r,$)=>{var le,ue,de;(le=t.meta)!=null&&le.keepAlive&&(handleAliveRoute(t,"add"),(r.name===void 0||r.name==="Redirect")&&handleAliveRoute(t));const V=rr().getItem(userKey);NProgress.start();const oe=pt(t==null?void 0:t.name);oe||t.matched.some(pe=>{if(!pe.meta.title)return"";const he=getConfig().Title;he?document.title=`${transformI18n(pe.meta.title)} | ${he}`:document.title=transformI18n(pe.meta.title)});function ie(){whiteList.includes(t.fullPath)?$(r.fullPath):$()}api.get(multipleTabsKey)&&V?((ue=t.meta)!=null&&ue.roles&&!isOneOfArray((de=t.meta)==null?void 0:de.roles,V==null?void 0:V.roles)&&$({path:"/error/403"}),VITE_HIDE_HOME==="true"&&t.fullPath==="/welcome"&&$({path:"/error/404"}),r!=null&&r.name?oe?(vt(t==null?void 0:t.name),NProgress.done()):ie():(usePermissionStoreHook().wholeMenus.length===0&&t.path!=="/login"&&initRouter().then(pe=>{var he,_e;if(!useMultiTagsStoreHook().getMultiTagsCache){const{path:$e}=t,Ie=findRouteByPath($e,pe.options.routes[0].children);if(getTopMenu(!0),Ie&&((he=Ie.meta)!=null&&he.title))if(k(Ie.parentId)&&((_e=Ie.meta)!=null&&_e.backstage)){const{path:Ve,name:Fe,meta:Ue}=Ie.children[0];useMultiTagsStoreHook().handleTags("push",{path:Ve,name:Fe,meta:Ue})}else{const{path:Ve,name:Fe,meta:Ue}=Ie;useMultiTagsStoreHook().handleTags("push",{path:Ve,name:Fe,meta:Ue})}}k(t.name)&&pe.push(t.fullPath)}),ie())):t.path!=="/login"?whiteList.indexOf(t.path)!==-1?$():(removeToken(),$({path:"/login"})):$()});router.afterEach(()=>{NProgress.done()});function isObject$4(t){return t!==null&&typeof t=="object"}function _defu(t,r,$=".",V){if(!isObject$4(r))return _defu(t,{},$,V);const oe=Object.assign({},r);for(const ie in t){if(ie==="__proto__"||ie==="constructor")continue;const le=t[ie];le!=null&&(V&&V(oe,ie,le,$)||(Array.isArray(le)&&Array.isArray(oe[ie])?oe[ie]=[...le,...oe[ie]]:isObject$4(le)&&isObject$4(oe[ie])?oe[ie]=_defu(le,oe[ie],($?`${$}.`:"")+ie.toString(),V):oe[ie]=le))}return oe}function createDefu(t){return(...r)=>r.reduce(($,V)=>_defu($,V,"",t),{})}const defu=createDefu(),defaultTimestep=1/60*1e3,getCurrentTime=typeof performance<"u"?()=>performance.now():()=>Date.now(),onNextFrame=typeof window<"u"?t=>window.requestAnimationFrame(t):t=>setTimeout(()=>t(getCurrentTime()),defaultTimestep);function createRenderStep(t){let r=[],$=[],V=0,oe=!1,ie=!1;const le=new WeakSet,ue={schedule:(de,pe=!1,he=!1)=>{const _e=he&&oe,$e=_e?r:$;return pe&&le.add(de),$e.indexOf(de)===-1&&($e.push(de),_e&&oe&&(V=r.length)),de},cancel:de=>{const pe=$.indexOf(de);pe!==-1&&$.splice(pe,1),le.delete(de)},process:de=>{if(oe){ie=!0;return}if(oe=!0,[r,$]=[$,r],$.length=0,V=r.length,V)for(let pe=0;pe(t[r]=createRenderStep(()=>runNextFrame=!0),t),{}),sync=stepsOrder.reduce((t,r)=>{const $=steps[r];return t[r]=(V,oe=!1,ie=!1)=>(runNextFrame||startLoop(),$.schedule(V,oe,ie)),t},{}),cancelSync=stepsOrder.reduce((t,r)=>(t[r]=steps[r].cancel,t),{});stepsOrder.reduce((t,r)=>(t[r]=()=>steps[r].process(frame),t),{});const processStep=t=>steps[t].process(frame),processFrame=t=>{runNextFrame=!1,frame.delta=useDefaultElapsed?defaultTimestep:Math.max(Math.min(t-frame.timestamp,maxElapsed),1),frame.timestamp=t,isProcessing=!0,stepsOrder.forEach(processStep),isProcessing=!1,runNextFrame&&(useDefaultElapsed=!1,onNextFrame(processFrame))},startLoop=()=>{runNextFrame=!0,useDefaultElapsed=!0,isProcessing||onNextFrame(processFrame)},getFrameData=()=>frame;function __rest(t,r){var $={};for(var V in t)Object.prototype.hasOwnProperty.call(t,V)&&r.indexOf(V)<0&&($[V]=t[V]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,V=Object.getOwnPropertySymbols(t);oeMath.min(Math.max($,t),r),safeMin=.001,minDuration=.01,maxDuration=10,minDamping=.05,maxDamping=1;function findSpring({duration:t=800,bounce:r=.25,velocity:$=0,mass:V=1}){let oe,ie;warning(t<=maxDuration*1e3);let le=1-r;le=clamp$2(minDamping,maxDamping,le),t=clamp$2(minDuration,maxDuration,t/1e3),le<1?(oe=pe=>{const he=pe*le,_e=he*t,$e=he-$,Ie=calcAngularFreq(pe,le),Ve=Math.exp(-_e);return safeMin-$e/Ie*Ve},ie=pe=>{const _e=pe*le*t,$e=_e*$+$,Ie=Math.pow(le,2)*Math.pow(pe,2)*t,Ve=Math.exp(-_e),Fe=calcAngularFreq(Math.pow(pe,2),le);return(-oe(pe)+safeMin>0?-1:1)*(($e-Ie)*Ve)/Fe}):(oe=pe=>{const he=Math.exp(-pe*t),_e=(pe-$)*t+1;return-safeMin+he*_e},ie=pe=>{const he=Math.exp(-pe*t),_e=($-pe)*(t*t);return he*_e});const ue=5/t,de=approximateRoot(oe,ie,ue);if(t=t*1e3,isNaN(de))return{stiffness:100,damping:10,duration:t};{const pe=Math.pow(de,2)*V;return{stiffness:pe,damping:le*2*Math.sqrt(V*pe),duration:t}}}const rootIterations=12;function approximateRoot(t,r,$){let V=$;for(let oe=1;oet[$]!==void 0)}function getSpringOptions(t){let r=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!isSpringType(t,physicsKeys)&&isSpringType(t,durationKeys)){const $=findSpring(t);r=Object.assign(Object.assign(Object.assign({},r),$),{velocity:0,mass:1}),r.isResolvedFromDuration=!0}return r}function spring(t){var{from:r=0,to:$=1,restSpeed:V=2,restDelta:oe}=t,ie=__rest(t,["from","to","restSpeed","restDelta"]);const le={done:!1,value:r};let{stiffness:ue,damping:de,mass:pe,velocity:he,duration:_e,isResolvedFromDuration:$e}=getSpringOptions(ie),Ie=zero,Ve=zero;function Fe(){const Ue=he?-(he/1e3):0,qe=$-r,Et=de/(2*Math.sqrt(ue*pe)),Lt=Math.sqrt(ue/pe)/1e3;if(oe===void 0&&(oe=Math.min(Math.abs($-r)/100,.4)),Et<1){const hn=calcAngularFreq(Lt,Et);Ie=Cn=>{const bn=Math.exp(-Et*Lt*Cn);return $-bn*((Ue+Et*Lt*qe)/hn*Math.sin(hn*Cn)+qe*Math.cos(hn*Cn))},Ve=Cn=>{const bn=Math.exp(-Et*Lt*Cn);return Et*Lt*bn*(Math.sin(hn*Cn)*(Ue+Et*Lt*qe)/hn+qe*Math.cos(hn*Cn))-bn*(Math.cos(hn*Cn)*(Ue+Et*Lt*qe)-hn*qe*Math.sin(hn*Cn))}}else if(Et===1)Ie=hn=>$-Math.exp(-Lt*hn)*(qe+(Ue+Lt*qe)*hn);else{const hn=Lt*Math.sqrt(Et*Et-1);Ie=Cn=>{const bn=Math.exp(-Et*Lt*Cn),Sn=Math.min(hn*Cn,300);return $-bn*((Ue+Et*Lt*qe)*Math.sinh(Sn)+hn*qe*Math.cosh(Sn))/hn}}}return Fe(),{next:Ue=>{const qe=Ie(Ue);if($e)le.done=Ue>=_e;else{const Et=Ve(Ue)*1e3,Lt=Math.abs(Et)<=V,hn=Math.abs($-qe)<=oe;le.done=Lt&&hn}return le.value=le.done?$:qe,le},flipTarget:()=>{he=-he,[r,$]=[$,r],Fe()}}}spring.needsInterpolation=(t,r)=>typeof t=="string"||typeof r=="string";const zero=t=>0,progress=(t,r,$)=>{const V=r-t;return V===0?1:($-t)/V},mix=(t,r,$)=>-$*t+$*r+t,clamp$1=(t,r)=>$=>Math.max(Math.min($,r),t),sanitize=t=>t%1?Number(t.toFixed(5)):t,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(t){return typeof t=="string"}const number$1={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},alpha=Object.assign(Object.assign({},number$1),{transform:clamp$1(0,1)}),scale$3=Object.assign(Object.assign({},number$1),{default:1}),createUnitType=t=>({test:r=>isString$1(r)&&r.endsWith(t)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${t}`}),degrees=createUnitType("deg"),percent=createUnitType("%"),px=createUnitType("px"),progressPercentage=Object.assign(Object.assign({},percent),{parse:t=>percent.parse(t)/100,transform:t=>percent.transform(t*100)}),isColorString=(t,r)=>$=>!!(isString$1($)&&singleColorRegex.test($)&&$.startsWith(t)||r&&Object.prototype.hasOwnProperty.call($,r)),splitColor=(t,r,$)=>V=>{if(!isString$1(V))return V;const[oe,ie,le,ue]=V.match(floatRegex);return{[t]:parseFloat(oe),[r]:parseFloat(ie),[$]:parseFloat(le),alpha:ue!==void 0?parseFloat(ue):1}},hsla={test:isColorString("hsl","hue"),parse:splitColor("hue","saturation","lightness"),transform:({hue:t,saturation:r,lightness:$,alpha:V=1})=>"hsla("+Math.round(t)+", "+percent.transform(sanitize(r))+", "+percent.transform(sanitize($))+", "+sanitize(alpha.transform(V))+")"},clampRgbUnit=clamp$1(0,255),rgbUnit=Object.assign(Object.assign({},number$1),{transform:t=>Math.round(clampRgbUnit(t))}),rgba={test:isColorString("rgb","red"),parse:splitColor("red","green","blue"),transform:({red:t,green:r,blue:$,alpha:V=1})=>"rgba("+rgbUnit.transform(t)+", "+rgbUnit.transform(r)+", "+rgbUnit.transform($)+", "+sanitize(alpha.transform(V))+")"};function parseHex(t){let r="",$="",V="",oe="";return t.length>5?(r=t.substr(1,2),$=t.substr(3,2),V=t.substr(5,2),oe=t.substr(7,2)):(r=t.substr(1,1),$=t.substr(2,1),V=t.substr(3,1),oe=t.substr(4,1),r+=r,$+=$,V+=V,oe+=oe),{red:parseInt(r,16),green:parseInt($,16),blue:parseInt(V,16),alpha:oe?parseInt(oe,16)/255:1}}const hex={test:isColorString("#"),parse:parseHex,transform:rgba.transform},color$1={test:t=>rgba.test(t)||hex.test(t)||hsla.test(t),parse:t=>rgba.test(t)?rgba.parse(t):hsla.test(t)?hsla.parse(t):hex.parse(t),transform:t=>isString$1(t)?t:t.hasOwnProperty("red")?rgba.transform(t):hsla.transform(t)},colorToken="${c}",numberToken="${n}";function test(t){var r,$,V,oe;return isNaN(t)&&isString$1(t)&&(($=(r=t.match(floatRegex))===null||r===void 0?void 0:r.length)!==null&&$!==void 0?$:0)+((oe=(V=t.match(colorRegex))===null||V===void 0?void 0:V.length)!==null&&oe!==void 0?oe:0)>0}function analyse$1(t){typeof t=="number"&&(t=`${t}`);const r=[];let $=0;const V=t.match(colorRegex);V&&($=V.length,t=t.replace(colorRegex,colorToken),r.push(...V.map(color$1.parse)));const oe=t.match(floatRegex);return oe&&(t=t.replace(floatRegex,numberToken),r.push(...oe.map(number$1.parse))),{values:r,numColors:$,tokenised:t}}function parse$2(t){return analyse$1(t).values}function createTransformer(t){const{values:r,numColors:$,tokenised:V}=analyse$1(t),oe=r.length;return ie=>{let le=V;for(let ue=0;uetypeof t=="number"?0:t;function getAnimatableNone$1(t){const r=parse$2(t);return createTransformer(t)(r.map(convertNumbersToZero))}const complex={test,parse:parse$2,createTransformer,getAnimatableNone:getAnimatableNone$1},maxDefaults=new Set(["brightness","contrast","saturate","opacity"]);function applyDefaultFilter(t){let[r,$]=t.slice(0,-1).split("(");if(r==="drop-shadow")return t;const[V]=$.match(floatRegex)||[];if(!V)return t;const oe=$.replace(V,"");let ie=maxDefaults.has(r)?1:0;return V!==$&&(ie*=100),r+"("+ie+oe+")"}const functionRegex=/([a-z-]*)\(.*?\)/g,filter$1=Object.assign(Object.assign({},complex),{getAnimatableNone:t=>{const r=t.match(functionRegex);return r?r.map(applyDefaultFilter).join(" "):t}});function hueToRgb(t,r,$){return $<0&&($+=1),$>1&&($-=1),$<1/6?t+(r-t)*6*$:$<1/2?r:$<2/3?t+(r-t)*(2/3-$)*6:t}function hslaToRgba({hue:t,saturation:r,lightness:$,alpha:V}){t/=360,r/=100,$/=100;let oe=0,ie=0,le=0;if(!r)oe=ie=le=$;else{const ue=$<.5?$*(1+r):$+r-$*r,de=2*$-ue;oe=hueToRgb(de,ue,t+1/3),ie=hueToRgb(de,ue,t),le=hueToRgb(de,ue,t-1/3)}return{red:Math.round(oe*255),green:Math.round(ie*255),blue:Math.round(le*255),alpha:V}}const mixLinearColor=(t,r,$)=>{const V=t*t,oe=r*r;return Math.sqrt(Math.max(0,$*(oe-V)+V))},colorTypes=[hex,rgba,hsla],getColorType=t=>colorTypes.find(r=>r.test(t)),mixColor=(t,r)=>{let $=getColorType(t),V=getColorType(r),oe=$.parse(t),ie=V.parse(r);$===hsla&&(oe=hslaToRgba(oe),$=rgba),V===hsla&&(ie=hslaToRgba(ie),V=rgba);const le=Object.assign({},oe);return ue=>{for(const de in le)de!=="alpha"&&(le[de]=mixLinearColor(oe[de],ie[de],ue));return le.alpha=mix(oe.alpha,ie.alpha,ue),$.transform(le)}},isNum=t=>typeof t=="number",combineFunctions=(t,r)=>$=>r(t($)),pipe=(...t)=>t.reduce(combineFunctions);function getMixer(t,r){return isNum(t)?$=>mix(t,r,$):color$1.test(t)?mixColor(t,r):mixComplex(t,r)}const mixArray=(t,r)=>{const $=[...t],V=$.length,oe=t.map((ie,le)=>getMixer(ie,r[le]));return ie=>{for(let le=0;le{const $=Object.assign(Object.assign({},t),r),V={};for(const oe in $)t[oe]!==void 0&&r[oe]!==void 0&&(V[oe]=getMixer(t[oe],r[oe]));return oe=>{for(const ie in V)$[ie]=V[ie](oe);return $}};function analyse(t){const r=complex.parse(t),$=r.length;let V=0,oe=0,ie=0;for(let le=0;le<$;le++)V||typeof r[le]=="number"?V++:r[le].hue!==void 0?ie++:oe++;return{parsed:r,numNumbers:V,numRGB:oe,numHSL:ie}}const mixComplex=(t,r)=>{const $=complex.createTransformer(r),V=analyse(t),oe=analyse(r);return V.numHSL===oe.numHSL&&V.numRGB===oe.numRGB&&V.numNumbers>=oe.numNumbers?pipe(mixArray(V.parsed,oe.parsed),$):le=>`${le>0?r:t}`},mixNumber=(t,r)=>$=>mix(t,r,$);function detectMixerFactory(t){if(typeof t=="number")return mixNumber;if(typeof t=="string")return color$1.test(t)?mixColor:mixComplex;if(Array.isArray(t))return mixArray;if(typeof t=="object")return mixObject}function createMixers(t,r,$){const V=[],oe=$||detectMixerFactory(t[0]),ie=t.length-1;for(let le=0;le$(progress(t,r,V))}function slowInterpolate(t,r){const $=t.length,V=$-1;return oe=>{let ie=0,le=!1;if(oe<=t[0]?le=!0:oe>=t[V]&&(ie=V-1,le=!0),!le){let de=1;for(;de<$&&!(t[de]>oe||de===V);de++);ie=de-1}const ue=progress(t[ie],t[ie+1],oe);return r[ie](ue)}}function interpolate(t,r,{clamp:$=!0,ease:V,mixer:oe}={}){const ie=t.length;invariant(ie===r.length),invariant(!V||!Array.isArray(V)||V.length===ie-1),t[0]>t[ie-1]&&(t=[].concat(t),r=[].concat(r),t.reverse(),r.reverse());const le=createMixers(r,V,oe),ue=ie===2?fastInterpolate(t,le):slowInterpolate(t,le);return $?de=>ue(clamp$2(t[0],t[ie-1],de)):ue}const reverseEasing=t=>r=>1-t(1-r),mirrorEasing=t=>r=>r<=.5?t(2*r)/2:(2-t(2*(1-r)))/2,createExpoIn=t=>r=>Math.pow(r,t),createBackIn=t=>r=>r*r*((t+1)*r-t),createAnticipate=t=>{const r=createBackIn(t);return $=>($*=2)<1?.5*r($):.5*(2-Math.pow(2,-10*($-1)))},DEFAULT_OVERSHOOT_STRENGTH=1.525,BOUNCE_FIRST_THRESHOLD=4/11,BOUNCE_SECOND_THRESHOLD=8/11,BOUNCE_THIRD_THRESHOLD=9/10,linear=t=>t,easeIn=createExpoIn(2),easeOut=reverseEasing(easeIn),easeInOut=mirrorEasing(easeIn),circIn=t=>1-Math.sin(Math.acos(t)),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=t=>{if(t===1||t===0)return t;const r=t*t;return tt<.5?.5*(1-bounceOut(1-t*2)):.5*bounceOut(t*2-1)+.5;function defaultEasing(t,r){return t.map(()=>r||easeInOut).splice(0,t.length-1)}function defaultOffset(t){const r=t.length;return t.map(($,V)=>V!==0?V/(r-1):0)}function convertOffsetToTimes(t,r){return t.map($=>$*r)}function keyframes$1({from:t=0,to:r=1,ease:$,offset:V,duration:oe=300}){const ie={done:!1,value:t},le=Array.isArray(r)?r:[t,r],ue=convertOffsetToTimes(V&&V.length===le.length?V:defaultOffset(le),oe);function de(){return interpolate(ue,le,{ease:Array.isArray($)?$:defaultEasing(le,$)})}let pe=de();return{next:he=>(ie.value=pe(he),ie.done=he>=oe,ie),flipTarget:()=>{le.reverse(),pe=de()}}}function decay({velocity:t=0,from:r=0,power:$=.8,timeConstant:V=350,restDelta:oe=.5,modifyTarget:ie}){const le={done:!1,value:r};let ue=$*t;const de=r+ue,pe=ie===void 0?de:ie(de);return pe!==de&&(ue=pe-r),{next:he=>{const _e=-ue*Math.exp(-he/V);return le.done=!(_e>oe||_e<-oe),le.value=le.done?pe:pe+_e,le},flipTarget:()=>{}}}const types={keyframes:keyframes$1,spring,decay};function detectAnimationFromOptions(t){if(Array.isArray(t.to))return keyframes$1;if(types[t.type])return types[t.type];const r=new Set(Object.keys(t));return r.has("ease")||r.has("duration")&&!r.has("dampingRatio")?keyframes$1:r.has("dampingRatio")||r.has("stiffness")||r.has("mass")||r.has("damping")||r.has("restSpeed")||r.has("restDelta")?spring:keyframes$1}function loopElapsed(t,r,$=0){return t-r-$}function reverseElapsed(t,r,$=0,V=!0){return V?loopElapsed(r+-t,r,$):r-(t-r)+$}function hasRepeatDelayElapsed(t,r,$,V){return V?t>=r+$:t<=-$}const framesync=t=>{const r=({delta:$})=>t($);return{start:()=>sync.update(r,!0),stop:()=>cancelSync.update(r)}};function animate(t){var r,$,{from:V,autoplay:oe=!0,driver:ie=framesync,elapsed:le=0,repeat:ue=0,repeatType:de="loop",repeatDelay:pe=0,onPlay:he,onStop:_e,onComplete:$e,onRepeat:Ie,onUpdate:Ve}=t,Fe=__rest(t,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let{to:Ue}=Fe,qe,Et=0,Lt=Fe.duration,hn,Cn=!1,bn=!0,Sn;const En=detectAnimationFromOptions(Fe);!(($=(r=En).needsInterpolation)===null||$===void 0)&&$.call(r,V,Ue)&&(Sn=interpolate([0,100],[V,Ue],{clamp:!1}),V=0,Ue=100);const wn=En(Object.assign(Object.assign({},Fe),{from:V,to:Ue}));function $n(){Et++,de==="reverse"?(bn=Et%2===0,le=reverseElapsed(le,Lt,pe,bn)):(le=loopElapsed(le,Lt,pe),de==="mirror"&&wn.flipTarget()),Cn=!1,Ie&&Ie()}function Tn(){qe.stop(),$e&&$e()}function xn(Mn){if(bn||(Mn=-Mn),le+=Mn,!Cn){const Vn=wn.next(Math.max(0,le));hn=Vn.value,Sn&&(hn=Sn(hn)),Cn=bn?Vn.done:le<=0}Ve==null||Ve(hn),Cn&&(Et===0&&(Lt??(Lt=le)),Et{_e==null||_e(),qe.stop()}}}function velocityPerSecond(t,r){return r?t*(1e3/r):0}function inertia({from:t=0,velocity:r=0,min:$,max:V,power:oe=.8,timeConstant:ie=750,bounceStiffness:le=500,bounceDamping:ue=10,restDelta:de=1,modifyTarget:pe,driver:he,onUpdate:_e,onComplete:$e,onStop:Ie}){let Ve;function Fe(Lt){return $!==void 0&&Lt<$||V!==void 0&&Lt>V}function Ue(Lt){return $===void 0?V:V===void 0||Math.abs($-Lt){var Cn;_e==null||_e(hn),(Cn=Lt.onUpdate)===null||Cn===void 0||Cn.call(Lt,hn)},onComplete:$e,onStop:Ie}))}function Et(Lt){qe(Object.assign({type:"spring",stiffness:le,damping:ue,restDelta:de},Lt))}if(Fe(t))Et({from:t,velocity:r,to:Ue(t)});else{let Lt=oe*r+t;typeof pe<"u"&&(Lt=pe(Lt));const hn=Ue(Lt),Cn=hn===$?-1:1;let bn,Sn;const En=wn=>{bn=Sn,Sn=wn,r=velocityPerSecond(wn-bn,getFrameData().delta),(Cn===1&&wn>hn||Cn===-1&&wnVe==null?void 0:Ve.stop()}}const a=(t,r)=>1-3*r+3*t,b=(t,r)=>3*r-6*t,c$1=t=>3*t,calcBezier=(t,r,$)=>((a(r,$)*t+b(r,$))*t+c$1(r))*t,getSlope=(t,r,$)=>3*a(r,$)*t*t+2*b(r,$)*t+c$1(r),subdivisionPrecision=1e-7,subdivisionMaxIterations=10;function binarySubdivide(t,r,$,V,oe){let ie,le,ue=0;do le=r+($-r)/2,ie=calcBezier(le,V,oe)-t,ie>0?$=le:r=le;while(Math.abs(ie)>subdivisionPrecision&&++ue=newtonMinSlope?newtonRaphsonIterate(le,_e,t,$):$e===0?_e:binarySubdivide(le,ue,ue+kSampleStepSize,t,$)}return le=>le===0||le===1?le:calcBezier(ie(le),r,V)}const motionState={};class SubscriptionManager{constructor(){this.subscriptions=new Set}add(r){return this.subscriptions.add(r),()=>this.subscriptions.delete(r)}notify(r,$,V){if(this.subscriptions.size)for(const oe of this.subscriptions)oe(r,$,V)}clear(){this.subscriptions.clear()}}function isFloat(t){return!isNaN(parseFloat(t))}class MotionValue{constructor(r){this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new SubscriptionManager,this.canTrackVelocity=!1,this.updateAndNotify=$=>{this.prev=this.current,this.current=$;const{delta:V,timestamp:oe}=getFrameData();this.lastUpdated!==oe&&(this.timeDelta=V,this.lastUpdated=oe),sync.postRender(this.scheduleVelocityCheck),this.updateSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>sync.postRender(this.velocityCheck),this.velocityCheck=({timestamp:$})=>{this.canTrackVelocity||(this.canTrackVelocity=isFloat(this.current)),$!==this.lastUpdated&&(this.prev=this.current)},this.prev=this.current=r,this.canTrackVelocity=isFloat(this.current)}onChange(r){return this.updateSubscribers.add(r)}clearListeners(){this.updateSubscribers.clear()}set(r){this.updateAndNotify(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(r){return this.stop(),new Promise($=>{const{stop:V}=r($);this.stopAnimation=V}).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(t){return new MotionValue(t)}const{isArray:isArray$2}=Array;function useMotionValues(){const t=ref({}),r=V=>{const oe=ie=>{t.value[ie]&&(t.value[ie].stop(),t.value[ie].destroy(),delete t.value[ie])};V?isArray$2(V)?V.forEach(oe):oe(V):Object.keys(t.value).forEach(oe)},$=(V,oe,ie)=>{if(t.value[V])return t.value[V];const le=getMotionValue(oe);return le.onChange(ue=>ie[V]=ue),t.value[V]=le,le};return tryOnUnmounted(r),{motionValues:t,get:$,stop:r}}function isKeyframesTarget(t){return Array.isArray(t)}function underDampedSpring(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}}function criticallyDampedSpring(t){return{type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}}function overDampedSpring(t){return{type:"spring",stiffness:550,damping:t===0?100:30,restDelta:.01,restSpeed:10}}function linearTween(){return{type:"keyframes",ease:"linear",duration:300}}function keyframes(t){return{type:"keyframes",duration:800,values:t}}const 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};function getDefaultTransition(t,r){let $;return isKeyframesTarget(r)?$=keyframes:$=defaultTransitions[t]||defaultTransitions.default,{to:r,...$(r)}}const 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=t=>valueTypes[t];function getValueAsType(t,r){return r&&typeof t=="number"&&r.transform?r.transform(t):t}function getAnimatableNone(t,r){let $=getValueType(t);return $!==filter$1&&($=complex),$.getAnimatableNone?$.getAnimatableNone(r):void 0}const easingLookup={linear,easeIn,easeInOut,easeOut,circIn,circInOut,circOut,backIn,backInOut,backOut,anticipate,bounceIn,bounceInOut,bounceOut};function easingDefinitionToFunction(t){if(Array.isArray(t)){const[r,$,V,oe]=t;return cubicBezier(r,$,V,oe)}else if(typeof t=="string")return easingLookup[t];return t}function isEasingArray(t){return Array.isArray(t)&&typeof t[0]!="number"}function isAnimatable(t,r){return t==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&complex.test(r)&&!r.startsWith("url("))}function hydrateKeyframes(t){return Array.isArray(t.to)&&t.to[0]===null&&(t.to=[...t.to],t.to[0]=t.from),t}function convertTransitionToAnimationOptions({ease:t,times:r,delay:$,...V}){const oe={...V};return r&&(oe.offset=r),t&&(oe.ease=isEasingArray(t)?t.map(easingDefinitionToFunction):easingDefinitionToFunction(t)),$&&(oe.elapsed=-$),oe}function getPopmotionAnimationOptions(t,r,$){return Array.isArray(r.to)&&(t.duration||(t.duration=800)),hydrateKeyframes(r),isTransitionDefined(t)||(t={...t,...getDefaultTransition($,r.to)}),{...r,...convertTransitionToAnimationOptions(t)}}function isTransitionDefined({delay:t,repeat:r,repeatType:$,repeatDelay:V,from:oe,...ie}){return!!Object.keys(ie).length}function getValueTransition(t,r){return t[r]||t.default||t}function getAnimation(t,r,$,V,oe){const ie=getValueTransition(V,t);let le=ie.from===null||ie.from===void 0?r.get():ie.from;const ue=isAnimatable(t,$);le==="none"&&ue&&typeof $=="string"&&(le=getAnimatableNone(t,$));const de=isAnimatable(t,le);function pe(_e){const $e={from:le,to:$,velocity:V.velocity?V.velocity:r.getVelocity(),onUpdate:Ie=>r.set(Ie)};return ie.type==="inertia"||ie.type==="decay"?inertia({...$e,...ie}):animate({...getPopmotionAnimationOptions(ie,$e,t),onUpdate:Ie=>{$e.onUpdate(Ie),ie.onUpdate&&ie.onUpdate(Ie)},onComplete:()=>{V.onComplete&&V.onComplete(),oe&&oe(),_e&&_e()}})}function he(_e){return r.set($),V.onComplete&&V.onComplete(),oe&&oe(),_e&&_e(),{stop:()=>{}}}return!de||!ue||ie.type===!1?he:pe}function useMotionTransitions(){const{motionValues:t,stop:r,get:$}=useMotionValues();return{motionValues:t,stop:r,push:(oe,ie,le,ue={},de)=>{const pe=le[oe],he=$(oe,pe,le);if(ue&&ue.immediate){he.set(ie);return}const _e=getAnimation(oe,he,ie,ue,de);he.start(_e)}}}function useMotionControls(t,r={},{motionValues:$,push:V,stop:oe}=useMotionTransitions()){const ie=unref(r),le=ref(!1);watch($,_e=>{le.value=Object.values(_e).filter($e=>$e.isAnimating()).length>0},{immediate:!0,deep:!0});const ue=_e=>{if(!ie||!ie[_e])throw new Error(`The variant ${_e} does not exist.`);return ie[_e]},de=_e=>(typeof _e=="string"&&(_e=ue(_e)),Promise.all(Object.entries(_e).map(([$e,Ie])=>{if($e!=="transition")return new Promise(Ve=>V($e,Ie,t,_e.transition||getDefaultTransition($e,_e[$e]),Ve))}).filter(Boolean)));return{isAnimating:le,apply:de,set:_e=>{const $e=isObject$8(_e)?_e:ue(_e);Object.entries($e).forEach(([Ie,Ve])=>{Ie!=="transition"&&V(Ie,Ve,t,{immediate:!0})})},leave:async _e=>{let $e;if(ie&&(ie.leave&&($e=ie.leave),!ie.leave&&ie.initial&&($e=ie.initial)),!$e){_e();return}await de($e),_e()},stop:oe}}const isBrowser=typeof window<"u",supportsPointerEvents=()=>isBrowser&&window.onpointerdown===null,supportsTouchEvents=()=>isBrowser&&window.ontouchstart===null,supportsMouseEvents=()=>isBrowser&&window.onmousedown===null;function registerEventListeners({target:t,state:r,variants:$,apply:V}){const oe=unref($),ie=ref(!1),le=ref(!1),ue=ref(!1),de=computed(()=>{let he=[];return oe&&(oe.hovered&&(he=[...he,...Object.keys(oe.hovered)]),oe.tapped&&(he=[...he,...Object.keys(oe.tapped)]),oe.focused&&(he=[...he,...Object.keys(oe.focused)])),he}),pe=computed(()=>{const he={};Object.assign(he,r.value),ie.value&&oe.hovered&&Object.assign(he,oe.hovered),le.value&&oe.tapped&&Object.assign(he,oe.tapped),ue.value&&oe.focused&&Object.assign(he,oe.focused);for(const _e in he)de.value.includes(_e)||delete he[_e];return he});oe.hovered&&(useEventListener(t,"mouseenter",()=>ie.value=!0),useEventListener(t,"mouseleave",()=>{ie.value=!1,le.value=!1}),useEventListener(t,"mouseout",()=>{ie.value=!1,le.value=!1})),oe.tapped&&(supportsMouseEvents()&&(useEventListener(t,"mousedown",()=>le.value=!0),useEventListener(t,"mouseup",()=>le.value=!1)),supportsPointerEvents()&&(useEventListener(t,"pointerdown",()=>le.value=!0),useEventListener(t,"pointerup",()=>le.value=!1)),supportsTouchEvents()&&(useEventListener(t,"touchstart",()=>le.value=!0),useEventListener(t,"touchend",()=>le.value=!1))),oe.focused&&(useEventListener(t,"focus",()=>ue.value=!0),useEventListener(t,"blur",()=>ue.value=!1)),watch(pe,V)}function registerLifeCycleHooks({set:t,target:r,variants:$,variant:V}){const oe=unref($);watch(()=>r,()=>{oe&&(oe.initial&&t("initial"),oe.enter&&(V.value="enter"))},{immediate:!0,flush:"pre"})}function registerVariantsSync({state:t,apply:r}){watch(t,$=>{$&&r($)},{immediate:!0})}function registerVisibilityHooks({target:t,variants:r,variant:$}){const V=unref(r);V&&(V.visible||V.visibleOnce)&&useIntersectionObserver(t,([{isIntersecting:oe}])=>{V.visible?oe?$.value="visible":$.value="initial":V.visibleOnce&&(oe&&$.value!=="visibleOnce"?$.value="visibleOnce":$.value||($.value="initial"))})}function useMotionFeatures(t,r={syncVariants:!0,lifeCycleHooks:!0,visibilityHooks:!0,eventListeners:!0}){r.lifeCycleHooks&®isterLifeCycleHooks(t),r.syncVariants&®isterVariantsSync(t),r.visibilityHooks&®isterVisibilityHooks(t),r.eventListeners&®isterEventListeners(t)}function reactiveStyle(t={}){const r=reactive({...t}),$=ref({});return watch(r,()=>{const V={};for(const[oe,ie]of Object.entries(r)){const le=getValueType(oe),ue=getValueAsType(ie,le);V[oe]=ue}$.value=V},{immediate:!0,deep:!0}),{state:r,style:$}}function usePermissiveTarget(t,r){watch(()=>unrefElement(t),$=>{$&&r($)},{immediate:!0})}const translateAlias={x:"translateX",y:"translateY",z:"translateZ"};function reactiveTransform(t={},r=!0){const $=reactive({...t}),V=ref("");return watch($,oe=>{let ie="",le=!1;if(r&&(oe.x||oe.y||oe.z)){const ue=[oe.x||0,oe.y||0,oe.z||0].map(px.transform).join(",");ie+=`translate3d(${ue}) `,le=!0}for(const[ue,de]of Object.entries(oe)){if(r&&(ue==="x"||ue==="y"||ue==="z"))continue;const pe=getValueType(ue),he=getValueAsType(de,pe);ie+=`${translateAlias[ue]||ue}(${he}) `}r&&!le&&(ie+="translateZ(0px) "),V.value=ie.trim()},{immediate:!0,deep:!0}),{state:$,transform:V}}const transformAxes=["","X","Y","Z"],order=["perspective","translate","scale","rotate","skew"],transformProps=["transformPerspective","x","y","z"];order.forEach(t=>{transformAxes.forEach(r=>{const $=t+r;transformProps.push($)})});const transformPropSet=new Set(transformProps);function isTransformProp(t){return transformPropSet.has(t)}const transformOriginProps=new Set(["originX","originY","originZ"]);function isTransformOriginProp(t){return transformOriginProps.has(t)}function splitValues(t){const r={},$={};return Object.entries(t).forEach(([V,oe])=>{isTransformProp(V)||isTransformOriginProp(V)?r[V]=oe:$[V]=oe}),{transform:r,style:$}}function variantToStyle(t){const{transform:r,style:$}=splitValues(t),{transform:V}=reactiveTransform(r),{style:oe}=reactiveStyle($);return V.value&&(oe.value.transform=V.value),oe.value}function useElementStyle(t,r){let $,V;const{state:oe,style:ie}=reactiveStyle();return usePermissiveTarget(t,le=>{V=le;for(const ue of Object.keys(valueTypes))le.style[ue]===null||le.style[ue]===""||isTransformProp(ue)||isTransformOriginProp(ue)||(oe[ue]=le.style[ue]);$&&Object.entries($).forEach(([ue,de])=>le.style[ue]=de),r&&r(oe)}),watch(ie,le=>{if(!V){$=le;return}for(const ue in le)V.style[ue]=le[ue]},{immediate:!0}),{style:oe}}function parseTransform(t){const r=t.trim().split(/\) |\)/);if(r.length===1)return{};const $=V=>V.endsWith("px")||V.endsWith("deg")?parseFloat(V):isNaN(Number(V))?Number(V):V;return r.reduce((V,oe)=>{if(!oe)return V;const[ie,le]=oe.split("("),de=le.split(",").map(he=>$(he.endsWith(")")?he.replace(")",""):he.trim())),pe=de.length===1?de[0]:de;return{...V,[ie]:pe}},{})}function stateFromTransform(t,r){Object.entries(parseTransform(r)).forEach(([$,V])=>{const oe=["x","y","z"];if($==="translate3d"){if(V===0){oe.forEach(ie=>t[ie]=0);return}V.forEach((ie,le)=>t[oe[le]]=ie);return}if(V=parseFloat(V),$==="translateX"){t.x=V;return}if($==="translateY"){t.y=V;return}if($==="translateZ"){t.z=V;return}t[$]=V})}function useElementTransform(t,r){let $,V;const{state:oe,transform:ie}=reactiveTransform();return usePermissiveTarget(t,le=>{V=le,le.style.transform&&stateFromTransform(oe,le.style.transform),$&&(le.style.transform=$),r&&r(oe)}),watch(ie,le=>{if(!V){$=le;return}V.style.transform=le},{immediate:!0}),{transform:oe}}function useMotionProperties(t,r){const $=reactive({}),V=le=>Object.entries(le).forEach(([ue,de])=>$[ue]=de),{style:oe}=useElementStyle(t,V),{transform:ie}=useElementTransform(t,V);return watch($,le=>{Object.entries(le).forEach(([ue,de])=>{const pe=isTransformProp(ue)?ie:oe;pe[ue]&&pe[ue]===de||(pe[ue]=de)})},{immediate:!0,deep:!0}),usePermissiveTarget(t,()=>r&&V(r)),{motionProperties:$,style:oe,transform:ie}}function useMotionVariants(t={}){const r=unref(t),$=ref();return{state:computed(()=>{if($.value)return r[$.value]}),variant:$}}function useMotion(t,r={},$){const{motionProperties:V}=useMotionProperties(t),{variant:oe,state:ie}=useMotionVariants(r),le=useMotionControls(V,r),ue={target:t,variant:oe,variants:r,state:ie,motionProperties:V,...le};return useMotionFeatures(ue,$),ue}const directivePropsKeys=["initial","enter","leave","visible","visible-once","hovered","tapped","focused","delay"];function resolveVariants(t,r){const $=t.props?t.props:t.data&&t.data.attrs?t.data.attrs:{};$&&($.variants&&isObject$8($.variants)&&(r.value={...r.value,...$.variants}),directivePropsKeys.forEach(V=>{if(V==="delay"){if($&&$[V]&&typeof $[V]=="number"){const oe=$[V];r&&r.value&&(r.value.enter&&(r.value.enter.transition||(r.value.enter.transition={}),r.value.enter.transition={delay:oe,...r.value.enter.transition}),r.value.visible&&(r.value.visible.transition||(r.value.visible.transition={}),r.value.visible.transition={delay:oe,...r.value.visible.transition}),r.value.visibleOnce&&(r.value.visibleOnce.transition||(r.value.visibleOnce.transition={}),r.value.visibleOnce.transition={delay:oe,...r.value.visibleOnce.transition}))}return}V==="visible-once"&&(V="visibleOnce"),$&&$[V]&&isObject$8($[V])&&(r.value[V]=$[V])}))}function directive(t){return{created:($,V,oe)=>{const ie=V.value&&typeof V.value=="string"?V.value:oe.key;ie&&motionState[ie]&&motionState[ie].stop();const le=ref(t||{});typeof V.value=="object"&&(le.value=V.value),resolveVariants(oe,le);const ue=useMotion($,le);$.motionInstance=ue,ie&&(motionState[ie]=ue)},getSSRProps($,V){let{initial:oe}=$.value||V&&(V==null?void 0:V.props)||{};oe=unref(oe);const ie=defu((t==null?void 0:t.initial)||{},oe||{});return!ie||Object.keys(ie).length===0?void 0:{style:variantToStyle(ie)}}}}const 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,rollVisibleOnceBottom,rollVisibleOnceLeft,rollVisibleOnceRight,rollVisibleOnceTop,rollVisibleRight,rollVisibleTop,slideBottom,slideLeft,slideRight,slideTop,slideVisibleBottom,slideVisibleLeft,slideVisibleOnceBottom,slideVisibleOnceLeft,slideVisibleOnceRight,slideVisibleOnceTop,slideVisibleRight,slideVisibleTop},component=defineComponent({props:{is:{type:[String,Object],required:!1},preset:{type:String,required:!1},instance:{type:Object,required:!1},variants:{type:Object,required:!1},initial:{type:Object,required:!1},enter:{type:Object,required:!1},leave:{type:Object,required:!1},visible:{type:Object,required:!1},visibleOnce:{type:Object,required:!1},hovered:{type:Object,required:!1},tapped:{type:Object,required:!1},focused:{type:Object,required:!1},delay:{type:[Number,String],required:!1}},setup(t){var ue;const r=useSlots(),$=reactive({});if(!t.is&&!r.default)return()=>h$2("div",{});const V=computed(()=>{let de;return t.preset&&(de=presets[t.preset]),de}),oe=computed(()=>({initial:t.initial,enter:t.enter,leave:t.leave,visible:t.visible,visibleOnce:t.visibleOnce,hovered:t.hovered,tapped:t.tapped,focused:t.focused})),ie=computed(()=>{const de={...oe.value,...V.value||{},...t.variants||{}};return t.delay&&(de.enter.transition={...de.enter.transition},de.enter.transition.delay=parseInt(t.delay)),de}),le=computed(()=>{if(!t.is)return;let de=t.is;return typeof le.value=="string"&&!isHTMLTag(de)&&(de=resolveComponent(de)),de});if(((ue=process==null?void 0:process.env)==null?void 0:ue.NODE_ENV)==="development"||process!=null&&process.dev){const de=pe=>{var he;(he=pe.variants)!=null&&he.initial&&pe.set("initial"),setTimeout(()=>{var _e,$e,Ie;(_e=pe.variants)!=null&&_e.enter&&pe.apply("enter"),($e=pe.variants)!=null&&$e.visible&&pe.apply("visible"),(Ie=pe.variants)!=null&&Ie.visibleOnce&&pe.apply("visibleOnce")},10)};onUpdated(()=>Object.entries($).forEach(([pe,he])=>de(he)))}return{slots:r,component:le,motionConfig:ie,instances:$}},render({slots:t,motionConfig:r,instances:$,component:V}){var ue;const oe=variantToStyle(r.initial||{}),ie=(de,pe)=>(de.props||(de.props={}),de.props.style=oe,de.props.onVnodeMounted=({el:he})=>{const _e=useMotion(he,r);$[pe]=_e},de);if(V){const de=h$2(V,void 0,t);return ie(de,0),de}return(((ue=t.default)==null?void 0:ue.call(t))||[]).map((de,pe)=>ie(de,pe))}});function slugify(t){const r="àáâäæãåāăąçćčđďèéêëēėęěğǵḧîïíīįìłḿñńǹňôöòóœøōõőṕŕřßśšşșťțûüùúūǘůűųẃẍÿýžźż·/_,:;",$="aaaaaaaaaacccddeeeeeeeegghiiiiiilmnnnnoooooooooprrsssssttuuuuuuuuuwxyyzzz------",V=new RegExp(r.split("").join("|"),"g");return t.toString().replace(/[A-Z]/g,oe=>`-${oe}`).toLowerCase().replace(/\s+/g,"-").replace(V,oe=>$.charAt(r.indexOf(oe))).replace(/&/g,"-and-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}const MotionPlugin={install(t,r){if(t.directive("motion",directive()),t.component("Motion",component),!r||r&&!r.excludePresets)for(const $ in presets){const V=presets[$];t.directive(`motion-${slugify($)}`,directive(V))}if(r&&r.directives)for(const $ in r.directives){const V=r.directives[$];!V.initial&&__DEV__&&console.warn(`Your directive v-motion-${$} is missing initial variant!`),t.directive(`motion-${$}`,directive(V))}}};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var extendStatics=function(t,r){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function($,V){$.__proto__=V}||function($,V){for(var oe in V)Object.prototype.hasOwnProperty.call(V,oe)&&($[oe]=V[oe])},extendStatics(t,r)};function __extends(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");extendStatics(t,r);function $(){this.constructor=t}t.prototype=r===null?Object.create(r):($.prototype=r.prototype,new $)}var Browser=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),Env=function(){function t(){this.browser=new Browser,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return t}(),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(t,r){var $=r.browser,V=t.match(/Firefox\/([\d.]+)/),oe=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),ie=t.match(/Edge?\/([\d.]+)/),le=/micromessenger/i.test(t);V&&($.firefox=!0,$.version=V[1]),oe&&($.ie=!0,$.version=oe[1]),ie&&($.edge=!0,$.version=ie[1],$.newEdge=+ie[1].split(".")[0]>18),le&&($.weChat=!0),r.svgSupported=typeof SVGRect<"u",r.touchEventsSupported="ontouchstart"in window&&!$.ie&&!$.edge,r.pointerEventsSupported="onpointerdown"in window&&($.edge||$.ie&&+$.version>=11),r.domSupported=typeof document<"u";var ue=document.documentElement.style;r.transform3dSupported=($.ie&&"transition"in ue||$.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in ue)&&!("OTransition"in ue),r.transformSupported=r.transform3dSupported||$.ie&&+$.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(t){var r={};if(typeof JSON>"u")return r;for(var $=0;$=0)ue=le*$.length;else for(var de=0;de<$.length;de++){var pe=DEFAULT_TEXT_WIDTH_MAP[$[de]];ue+=pe==null?le:pe*le}return{width:ue}}}(),loadImage:function(t,r,$){var V=new Image;return V.onload=r,V.onerror=$,V.src=t,V}};function setPlatformAPI(t){for(var r in platformApi)t[r]&&(platformApi[r]=t[r])}var BUILTIN_OBJECT=reduce(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,r){return t["[object "+r+"]"]=!0,t},{}),TYPED_ARRAY=reduce(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,r){return t["[object "+r+"Array]"]=!0,t},{}),objToString=Object.prototype.toString,arrayProto=Array.prototype,nativeForEach=arrayProto.forEach,nativeFilter=arrayProto.filter,nativeSlice=arrayProto.slice,nativeMap=arrayProto.map,ctorFunction=(function(){}).constructor,protoFunction=ctorFunction?ctorFunction.prototype:null,protoKey="__proto__",idStart=2311;function guid(){return idStart++}function logError(){for(var t=[],r=0;r>1)%2;ue.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",V[de]+":0",oe[pe]+":0",V[1-de]+":auto",oe[1-pe]+":auto",""].join("!important;"),t.appendChild(le),$.push(le)}return $}function preparePointerTransformer(t,r,$){for(var V=$?"invTrans":"trans",oe=r[V],ie=r.srcCoords,le=[],ue=[],de=!0,pe=0;pe<4;pe++){var he=t[pe].getBoundingClientRect(),_e=2*pe,$e=he.left,Ie=he.top;le.push($e,Ie),de=de&&ie&&$e===ie[_e]&&Ie===ie[_e+1],ue.push(t[pe].offsetLeft,t[pe].offsetTop)}return de&&oe?oe:(r.srcCoords=le,r[V]=$?buildTransformer(ue,le):buildTransformer(le,ue))}function isCanvasEl(t){return t.nodeName.toUpperCase()==="CANVAS"}var replaceReg=/([&<>"'])/g,replaceMap={"&":"&","<":"<",">":">",'"':""","'":"'"};function encodeHTML(t){return t==null?"":(t+"").replace(replaceReg,function(r,$){return replaceMap[$]})}var MOUSE_EVENT_REG=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_calcOut=[],firefoxNotSupportOffsetXY=env$1.browser.firefox&&+env$1.browser.version.split(".")[0]<39;function clientToLocal(t,r,$,V){return $=$||{},V?calculateZrXY(t,r,$):firefoxNotSupportOffsetXY&&r.layerX!=null&&r.layerX!==r.offsetX?($.zrX=r.layerX,$.zrY=r.layerY):r.offsetX!=null?($.zrX=r.offsetX,$.zrY=r.offsetY):calculateZrXY(t,r,$),$}function calculateZrXY(t,r,$){if(env$1.domSupported&&t.getBoundingClientRect){var V=r.clientX,oe=r.clientY;if(isCanvasEl(t)){var ie=t.getBoundingClientRect();$.zrX=V-ie.left,$.zrY=oe-ie.top;return}else if(transformCoordWithViewport(_calcOut,t,V,oe)){$.zrX=_calcOut[0],$.zrY=_calcOut[1];return}}$.zrX=$.zrY=0}function getNativeEvent(t){return t||window.event}function normalizeEvent(t,r,$){if(r=getNativeEvent(r),r.zrX!=null)return r;var V=r.type,oe=V&&V.indexOf("touch")>=0;if(oe){var le=V!=="touchend"?r.targetTouches[0]:r.changedTouches[0];le&&clientToLocal(t,le,r,$)}else{clientToLocal(t,r,r,$);var ie=getWheelDeltaMayPolyfill(r);r.zrDelta=ie?ie/120:-(r.detail||0)/3}var ue=r.button;return r.which==null&&ue!==void 0&&MOUSE_EVENT_REG.test(r.type)&&(r.which=ue&1?1:ue&2?3:ue&4?2:0),r}function getWheelDeltaMayPolyfill(t){var r=t.wheelDelta;if(r)return r;var $=t.deltaX,V=t.deltaY;if($==null||V==null)return r;var oe=Math.abs(V!==0?V:$),ie=V>0?-1:V<0?1:$>0?-1:1;return 3*oe*ie}function addEventListener(t,r,$,V){t.addEventListener(r,$,V)}function removeEventListener(t,r,$,V){t.removeEventListener(r,$,V)}var stop=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function isMiddleOrRightButtonOnMouseUpDown(t){return t.which===2||t.which===3}var GestureMgr=function(){function t(){this._track=[]}return t.prototype.recognize=function(r,$,V){return this._doTrack(r,$,V),this._recognize(r)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(r,$,V){var oe=r.touches;if(oe){for(var ie={points:[],touches:[],target:$,event:r},le=0,ue=oe.length;le1&&V&&V.length>1){var ie=dist(V)/dist(oe);!isFinite(ie)&&(ie=1),r.pinchScale=ie;var le=center(V);return r.pinchX=le[0],r.pinchY=le[1],{type:"pinch",target:t[0].target,event:r}}}}};function create(){return[1,0,0,1,0,0]}function identity(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function copy$1(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4],t[5]=r[5],t}function mul(t,r,$){var V=r[0]*$[0]+r[2]*$[1],oe=r[1]*$[0]+r[3]*$[1],ie=r[0]*$[2]+r[2]*$[3],le=r[1]*$[2]+r[3]*$[3],ue=r[0]*$[4]+r[2]*$[5]+r[4],de=r[1]*$[4]+r[3]*$[5]+r[5];return t[0]=V,t[1]=oe,t[2]=ie,t[3]=le,t[4]=ue,t[5]=de,t}function translate(t,r,$){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t[4]=r[4]+$[0],t[5]=r[5]+$[1],t}function rotate(t,r,$){var V=r[0],oe=r[2],ie=r[4],le=r[1],ue=r[3],de=r[5],pe=Math.sin($),he=Math.cos($);return t[0]=V*he+le*pe,t[1]=-V*pe+le*he,t[2]=oe*he+ue*pe,t[3]=-oe*pe+he*ue,t[4]=he*ie+pe*de,t[5]=he*de-pe*ie,t}function scale$1(t,r,$){var V=$[0],oe=$[1];return t[0]=r[0]*V,t[1]=r[1]*oe,t[2]=r[2]*V,t[3]=r[3]*oe,t[4]=r[4]*V,t[5]=r[5]*oe,t}function invert(t,r){var $=r[0],V=r[2],oe=r[4],ie=r[1],le=r[3],ue=r[5],de=$*le-ie*V;return de?(de=1/de,t[0]=le*de,t[1]=-ie*de,t[2]=-V*de,t[3]=$*de,t[4]=(V*ue-le*oe)*de,t[5]=(ie*oe-$*ue)*de,t):null}function clone$1(t){var r=create();return copy$1(r,t),r}const matrix=Object.freeze(Object.defineProperty({__proto__:null,clone:clone$1,copy:copy$1,create,identity,invert,mul,rotate,scale:scale$1,translate},Symbol.toStringTag,{value:"Module"}));var Point=function(){function t(r,$){this.x=r||0,this.y=$||0}return t.prototype.copy=function(r){return this.x=r.x,this.y=r.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(r,$){return this.x=r,this.y=$,this},t.prototype.equal=function(r){return r.x===this.x&&r.y===this.y},t.prototype.add=function(r){return this.x+=r.x,this.y+=r.y,this},t.prototype.scale=function(r){this.x*=r,this.y*=r},t.prototype.scaleAndAdd=function(r,$){this.x+=r.x*$,this.y+=r.y*$},t.prototype.sub=function(r){return this.x-=r.x,this.y-=r.y,this},t.prototype.dot=function(r){return this.x*r.x+this.y*r.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var r=this.len();return this.x/=r,this.y/=r,this},t.prototype.distance=function(r){var $=this.x-r.x,V=this.y-r.y;return Math.sqrt($*$+V*V)},t.prototype.distanceSquare=function(r){var $=this.x-r.x,V=this.y-r.y;return $*$+V*V},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(r){if(r){var $=this.x,V=this.y;return this.x=r[0]*$+r[2]*V+r[4],this.y=r[1]*$+r[3]*V+r[5],this}},t.prototype.toArray=function(r){return r[0]=this.x,r[1]=this.y,r},t.prototype.fromArray=function(r){this.x=r[0],this.y=r[1]},t.set=function(r,$,V){r.x=$,r.y=V},t.copy=function(r,$){r.x=$.x,r.y=$.y},t.len=function(r){return Math.sqrt(r.x*r.x+r.y*r.y)},t.lenSquare=function(r){return r.x*r.x+r.y*r.y},t.dot=function(r,$){return r.x*$.x+r.y*$.y},t.add=function(r,$,V){r.x=$.x+V.x,r.y=$.y+V.y},t.sub=function(r,$,V){r.x=$.x-V.x,r.y=$.y-V.y},t.scale=function(r,$,V){r.x=$.x*V,r.y=$.y*V},t.scaleAndAdd=function(r,$,V,oe){r.x=$.x+V.x*oe,r.y=$.y+V.y*oe},t.lerp=function(r,$,V,oe){var ie=1-oe;r.x=ie*$.x+oe*V.x,r.y=ie*$.y+oe*V.y},t}();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 t(r,$,V,oe){V<0&&(r=r+V,V=-V),oe<0&&($=$+oe,oe=-oe),this.x=r,this.y=$,this.width=V,this.height=oe}return t.prototype.union=function(r){var $=mathMin$8(r.x,this.x),V=mathMin$8(r.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=mathMax$8(r.x+r.width,this.x+this.width)-$:this.width=r.width,isFinite(this.y)&&isFinite(this.height)?this.height=mathMax$8(r.y+r.height,this.y+this.height)-V:this.height=r.height,this.x=$,this.y=V},t.prototype.applyTransform=function(r){t.applyTransform(this,this,r)},t.prototype.calculateTransform=function(r){var $=this,V=r.width/$.width,oe=r.height/$.height,ie=create();return translate(ie,ie,[-$.x,-$.y]),scale$1(ie,ie,[V,oe]),translate(ie,ie,[r.x,r.y]),ie},t.prototype.intersect=function(r,$){if(!r)return!1;r instanceof t||(r=t.create(r));var V=this,oe=V.x,ie=V.x+V.width,le=V.y,ue=V.y+V.height,de=r.x,pe=r.x+r.width,he=r.y,_e=r.y+r.height,$e=!(ieVe&&(Ve=Lt,FeVe&&(Ve=hn,qe=V.x&&r<=V.x+V.width&&$>=V.y&&$<=V.y+V.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(r){t.copy(this,r)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(r){return new t(r.x,r.y,r.width,r.height)},t.copy=function(r,$){r.x=$.x,r.y=$.y,r.width=$.width,r.height=$.height},t.applyTransform=function(r,$,V){if(!V){r!==$&&t.copy(r,$);return}if(V[1]<1e-5&&V[1]>-1e-5&&V[2]<1e-5&&V[2]>-1e-5){var oe=V[0],ie=V[3],le=V[4],ue=V[5];r.x=$.x*oe+le,r.y=$.y*ie+ue,r.width=$.width*oe,r.height=$.height*ie,r.width<0&&(r.x+=r.width,r.width=-r.width),r.height<0&&(r.y+=r.height,r.height=-r.height);return}lt.x=lb.x=$.x,lt.y=rt.y=$.y,rb.x=rt.x=$.x+$.width,rb.y=lb.y=$.y+$.height,lt.transform(V),rt.transform(V),rb.transform(V),lb.transform(V),r.x=mathMin$8(lt.x,rb.x,lb.x,rt.x),r.y=mathMin$8(lt.y,rb.y,lb.y,rt.y);var de=mathMax$8(lt.x,rb.x,lb.x,rt.x),pe=mathMax$8(lt.y,rb.y,lb.y,rt.y);r.width=de-r.x,r.height=pe-r.y},t}();const BoundingRect$1=BoundingRect;var SILENT="silent";function makeEventPacket(t,r,$){return{type:t,event:$,target:r.target,topTarget:r.topTarget,cancelBubble:!1,offsetX:$.zrX,offsetY:$.zrY,gestureEvent:$.gestureEvent,pinchX:$.pinchX,pinchY:$.pinchY,pinchScale:$.pinchScale,wheelDelta:$.zrDelta,zrByTouch:$.zrByTouch,which:$.which,stop:stopEvent}}function stopEvent(){stop(this.event)}var EmptyProxy=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.handler=null,$}return r.prototype.dispose=function(){},r.prototype.setCursor=function(){},r}(Eventful$1),HoveredResult=function(){function t(r,$){this.x=r,this.y=$}return t}(),handlerNames=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],tmpRect$1=new BoundingRect$1(0,0,0,0),Handler=function(t){__extends(r,t);function r($,V,oe,ie,le){var ue=t.call(this)||this;return ue._hovered=new HoveredResult(0,0),ue.storage=$,ue.painter=V,ue.painterRoot=ie,ue._pointerSize=le,oe=oe||new EmptyProxy,ue.proxy=null,ue.setHandlerProxy(oe),ue._draggingMgr=new Draggable$1(ue),ue}return r.prototype.setHandlerProxy=function($){this.proxy&&this.proxy.dispose(),$&&(each$c(handlerNames,function(V){$.on&&$.on(V,this[V],this)},this),$.handler=this),this.proxy=$},r.prototype.mousemove=function($){var V=$.zrX,oe=$.zrY,ie=isOutsideBoundary(this,V,oe),le=this._hovered,ue=le.target;ue&&!ue.__zr&&(le=this.findHover(le.x,le.y),ue=le.target);var de=this._hovered=ie?new HoveredResult(V,oe):this.findHover(V,oe),pe=de.target,he=this.proxy;he.setCursor&&he.setCursor(pe?pe.cursor:"default"),ue&&pe!==ue&&this.dispatchToElement(le,"mouseout",$),this.dispatchToElement(de,"mousemove",$),pe&&pe!==ue&&this.dispatchToElement(de,"mouseover",$)},r.prototype.mouseout=function($){var V=$.zrEventControl;V!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",$),V!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:$})},r.prototype.resize=function(){this._hovered=new HoveredResult(0,0)},r.prototype.dispatch=function($,V){var oe=this[$];oe&&oe.call(this,V)},r.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},r.prototype.setCursorStyle=function($){var V=this.proxy;V.setCursor&&V.setCursor($)},r.prototype.dispatchToElement=function($,V,oe){$=$||{};var ie=$.target;if(!(ie&&ie.silent)){for(var le="on"+V,ue=makeEventPacket(V,$,oe);ie&&(ie[le]&&(ue.cancelBubble=!!ie[le].call(ie,ue)),ie.trigger(V,ue),ie=ie.__hostTarget?ie.__hostTarget:ie.parent,!ue.cancelBubble););ue.cancelBubble||(this.trigger(V,ue),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(de){typeof de[le]=="function"&&de[le].call(de,ue),de.trigger&&de.trigger(V,ue)}))}},r.prototype.findHover=function($,V,oe){var ie=this.storage.getDisplayList(),le=new HoveredResult($,V);if(setHoverTarget(ie,le,$,V,oe),this._pointerSize&&!le.target){for(var ue=[],de=this._pointerSize,pe=de/2,he=new BoundingRect$1($-pe,V-pe,de,de),_e=ie.length-1;_e>=0;_e--){var $e=ie[_e];$e!==oe&&!$e.ignore&&!$e.ignoreCoarsePointer&&(!$e.parent||!$e.parent.ignoreCoarsePointer)&&(tmpRect$1.copy($e.getBoundingRect()),$e.transform&&tmpRect$1.applyTransform($e.transform),tmpRect$1.intersect(he)&&ue.push($e))}if(ue.length)for(var Ie=4,Ve=Math.PI/12,Fe=Math.PI*2,Ue=0;Ue4)return;this._downPoint=null}this.dispatchToElement(ie,t,r)}});function isHover(t,r,$){if(t[t.rectHover?"rectContain":"contain"](r,$)){for(var V=t,oe=void 0,ie=!1;V;){if(V.ignoreClip&&(ie=!0),!ie){var le=V.getClipPath();if(le&&!le.contain(r,$))return!1;V.silent&&(oe=!0)}var ue=V.__hostTarget;V=ue||V.parent}return oe?SILENT:!0}return!1}function setHoverTarget(t,r,$,V,oe){for(var ie=t.length-1;ie>=0;ie--){var le=t[ie],ue=void 0;if(le!==oe&&!le.ignore&&(ue=isHover(le,$,V))&&(!r.topTarget&&(r.topTarget=le),ue!==SILENT)){r.target=le;break}}}function isOutsideBoundary(t,r,$){var V=t.painter;return r<0||r>V.getWidth()||$<0||$>V.getHeight()}const Handler$1=Handler;var DEFAULT_MIN_MERGE=32,DEFAULT_MIN_GALLOPING=7;function minRunLength(t){for(var r=0;t>=DEFAULT_MIN_MERGE;)r|=t&1,t>>=1;return t+r}function makeAscendingRun(t,r,$,V){var oe=r+1;if(oe===$)return 1;if(V(t[oe++],t[r])<0){for(;oe<$&&V(t[oe],t[oe-1])<0;)oe++;reverseRun(t,r,oe)}else for(;oe<$&&V(t[oe],t[oe-1])>=0;)oe++;return oe-r}function reverseRun(t,r,$){for($--;r<$;){var V=t[r];t[r++]=t[$],t[$--]=V}}function binaryInsertionSort(t,r,$,V,oe){for(V===r&&V++;V<$;V++){for(var ie=t[V],le=r,ue=V,de;le>>1,oe(ie,t[de])<0?ue=de:le=de+1;var pe=V-le;switch(pe){case 3:t[le+3]=t[le+2];case 2:t[le+2]=t[le+1];case 1:t[le+1]=t[le];break;default:for(;pe>0;)t[le+pe]=t[le+pe-1],pe--}t[le]=ie}}function gallopLeft(t,r,$,V,oe,ie){var le=0,ue=0,de=1;if(ie(t,r[$+oe])>0){for(ue=V-oe;de0;)le=de,de=(de<<1)+1,de<=0&&(de=ue);de>ue&&(de=ue),le+=oe,de+=oe}else{for(ue=oe+1;deue&&(de=ue);var pe=le;le=oe-de,de=oe-pe}for(le++;le>>1);ie(t,r[$+he])>0?le=he+1:de=he}return de}function gallopRight(t,r,$,V,oe,ie){var le=0,ue=0,de=1;if(ie(t,r[$+oe])<0){for(ue=oe+1;deue&&(de=ue);var pe=le;le=oe-de,de=oe-pe}else{for(ue=V-oe;de=0;)le=de,de=(de<<1)+1,de<=0&&(de=ue);de>ue&&(de=ue),le+=oe,de+=oe}for(le++;le>>1);ie(t,r[$+he])<0?de=he:le=he+1}return de}function TimSort(t,r){var $=DEFAULT_MIN_GALLOPING,V,oe,ie=0;t.length;var le=[];V=[],oe=[];function ue(Ie,Ve){V[ie]=Ie,oe[ie]=Ve,ie+=1}function de(){for(;ie>1;){var Ie=ie-2;if(Ie>=1&&oe[Ie-1]<=oe[Ie]+oe[Ie+1]||Ie>=2&&oe[Ie-2]<=oe[Ie]+oe[Ie-1])oe[Ie-1]oe[Ie+1])break;he(Ie)}}function pe(){for(;ie>1;){var Ie=ie-2;Ie>0&&oe[Ie-1]=DEFAULT_MIN_GALLOPING||Sn>=DEFAULT_MIN_GALLOPING);if(En)break;Cn<0&&(Cn=0),Cn+=2}if($=Cn,$<1&&($=1),Ve===1){for(qe=0;qe=0;qe--)t[bn+qe]=t[Cn+qe];t[hn]=le[Lt];return}for(var Sn=$;;){var En=0,wn=0,$n=!1;do if(r(le[Lt],t[Et])<0){if(t[hn--]=t[Et--],En++,wn=0,--Ve===0){$n=!0;break}}else if(t[hn--]=le[Lt--],wn++,En=0,--Ue===1){$n=!0;break}while((En|wn)=0;qe--)t[bn+qe]=t[Cn+qe];if(Ve===0){$n=!0;break}}if(t[hn--]=le[Lt--],--Ue===1){$n=!0;break}if(wn=Ue-gallopLeft(t[Et],le,0,Ue,Ue-1,r),wn!==0){for(hn-=wn,Lt-=wn,Ue-=wn,bn=hn+1,Cn=Lt+1,qe=0;qe=DEFAULT_MIN_GALLOPING||wn>=DEFAULT_MIN_GALLOPING);if($n)break;Sn<0&&(Sn=0),Sn+=2}if($=Sn,$<1&&($=1),Ue===1){for(hn-=Ve,Et-=Ve,bn=hn+1,Cn=Et+1,qe=Ve-1;qe>=0;qe--)t[bn+qe]=t[Cn+qe];t[hn]=le[Lt]}else{if(Ue===0)throw new Error;for(Cn=hn-(Ue-1),qe=0;qeue&&(de=ue),binaryInsertionSort(t,$,$+de,$+ie,r),ie=de}le.pushRun($,ie),le.mergeRuns(),oe-=ie,$+=ie}while(oe!==0);le.forceMergeRuns()}}var REDRAW_BIT=1,STYLE_CHANGED_BIT=2,SHAPE_CHANGED_BIT=4,invalidZErrorLogged=!1;function logInvalidZError(){invalidZErrorLogged||(invalidZErrorLogged=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function shapeCompareFunc(t,r){return t.zlevel===r.zlevel?t.z===r.z?t.z2-r.z2:t.z-r.z:t.zlevel-r.zlevel}var Storage=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=shapeCompareFunc}return t.prototype.traverse=function(r,$){for(var V=0;V0&&(he.__clipPaths=[]),isNaN(he.z)&&(logInvalidZError(),he.z=0),isNaN(he.z2)&&(logInvalidZError(),he.z2=0),isNaN(he.zlevel)&&(logInvalidZError(),he.zlevel=0),this._displayList[this._displayListLen++]=he}var _e=r.getDecalElement&&r.getDecalElement();_e&&this._updateAndAddDisplayable(_e,$,V);var $e=r.getTextGuideLine();$e&&this._updateAndAddDisplayable($e,$,V);var Ie=r.getTextContent();Ie&&this._updateAndAddDisplayable(Ie,$,V)}},t.prototype.addRoot=function(r){r.__zr&&r.__zr.storage===this||this._roots.push(r)},t.prototype.delRoot=function(r){if(r instanceof Array){for(var $=0,V=r.length;$=0&&this._roots.splice(oe,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();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(t){return setTimeout(t,16)};const requestAnimationFrame$2=requestAnimationFrame$1;var easingFuncs={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var r,$=.1,V=.4;return t===0?0:t===1?1:(!$||$<1?($=1,r=V/4):r=V*Math.asin(1/$)/(2*Math.PI),-($*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/V)))},elasticOut:function(t){var r,$=.1,V=.4;return t===0?0:t===1?1:(!$||$<1?($=1,r=V/4):r=V*Math.asin(1/$)/(2*Math.PI),$*Math.pow(2,-10*t)*Math.sin((t-r)*(2*Math.PI)/V)+1)},elasticInOut:function(t){var r,$=.1,V=.4;return t===0?0:t===1?1:(!$||$<1?($=1,r=V/4):r=V*Math.asin(1/$)/(2*Math.PI),(t*=2)<1?-.5*($*Math.pow(2,10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/V)):$*Math.pow(2,-10*(t-=1))*Math.sin((t-r)*(2*Math.PI)/V)*.5+1)},backIn:function(t){var r=1.70158;return t*t*((r+1)*t-r)},backOut:function(t){var r=1.70158;return--t*t*((r+1)*t+r)+1},backInOut:function(t){var r=2.5949095;return(t*=2)<1?.5*(t*t*((r+1)*t-r)):.5*((t-=2)*t*((r+1)*t+r)+2)},bounceIn:function(t){return 1-easingFuncs.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?easingFuncs.bounceIn(t*2)*.5:easingFuncs.bounceOut(t*2-1)*.5+.5}};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(t){return t>-EPSILON$3&&tEPSILON$3||t<-EPSILON$3}function cubicAt(t,r,$,V,oe){var ie=1-oe;return ie*ie*(ie*t+3*oe*r)+oe*oe*(oe*V+3*ie*$)}function cubicDerivativeAt(t,r,$,V,oe){var ie=1-oe;return 3*(((r-t)*ie+2*($-r)*oe)*ie+(V-$)*oe*oe)}function cubicRootAt(t,r,$,V,oe,ie){var le=V+3*(r-$)-t,ue=3*($-r*2+t),de=3*(r-t),pe=t-oe,he=ue*ue-3*le*de,_e=ue*de-9*le*pe,$e=de*de-3*ue*pe,Ie=0;if(isAroundZero(he)&&isAroundZero(_e))if(isAroundZero(ue))ie[0]=0;else{var Ve=-de/ue;Ve>=0&&Ve<=1&&(ie[Ie++]=Ve)}else{var Fe=_e*_e-4*he*$e;if(isAroundZero(Fe)){var Ue=_e/he,Ve=-ue/le+Ue,qe=-Ue/2;Ve>=0&&Ve<=1&&(ie[Ie++]=Ve),qe>=0&&qe<=1&&(ie[Ie++]=qe)}else if(Fe>0){var Et=mathSqrt$3(Fe),Lt=he*ue+1.5*le*(-_e+Et),hn=he*ue+1.5*le*(-_e-Et);Lt<0?Lt=-mathPow$2(-Lt,ONE_THIRD):Lt=mathPow$2(Lt,ONE_THIRD),hn<0?hn=-mathPow$2(-hn,ONE_THIRD):hn=mathPow$2(hn,ONE_THIRD);var Ve=(-ue-(Lt+hn))/(3*le);Ve>=0&&Ve<=1&&(ie[Ie++]=Ve)}else{var Cn=(2*he*ue-3*le*_e)/(2*mathSqrt$3(he*he*he)),bn=Math.acos(Cn)/3,Sn=mathSqrt$3(he),En=Math.cos(bn),Ve=(-ue-2*Sn*En)/(3*le),qe=(-ue+Sn*(En+THREE_SQRT*Math.sin(bn)))/(3*le),wn=(-ue+Sn*(En-THREE_SQRT*Math.sin(bn)))/(3*le);Ve>=0&&Ve<=1&&(ie[Ie++]=Ve),qe>=0&&qe<=1&&(ie[Ie++]=qe),wn>=0&&wn<=1&&(ie[Ie++]=wn)}}return Ie}function cubicExtrema(t,r,$,V,oe){var ie=6*$-12*r+6*t,le=9*r+3*V-3*t-9*$,ue=3*r-3*t,de=0;if(isAroundZero(le)){if(isNotAroundZero$1(ie)){var pe=-ue/ie;pe>=0&&pe<=1&&(oe[de++]=pe)}}else{var he=ie*ie-4*le*ue;if(isAroundZero(he))oe[0]=-ie/(2*le);else if(he>0){var _e=mathSqrt$3(he),pe=(-ie+_e)/(2*le),$e=(-ie-_e)/(2*le);pe>=0&&pe<=1&&(oe[de++]=pe),$e>=0&&$e<=1&&(oe[de++]=$e)}}return de}function cubicSubdivide(t,r,$,V,oe,ie){var le=(r-t)*oe+t,ue=($-r)*oe+r,de=(V-$)*oe+$,pe=(ue-le)*oe+le,he=(de-ue)*oe+ue,_e=(he-pe)*oe+pe;ie[0]=t,ie[1]=le,ie[2]=pe,ie[3]=_e,ie[4]=_e,ie[5]=he,ie[6]=de,ie[7]=V}function cubicProjectPoint(t,r,$,V,oe,ie,le,ue,de,pe,he){var _e,$e=.005,Ie=1/0,Ve,Fe,Ue,qe;_v0[0]=de,_v0[1]=pe;for(var Et=0;Et<1;Et+=.05)_v1[0]=cubicAt(t,$,oe,le,Et),_v1[1]=cubicAt(r,V,ie,ue,Et),Ue=distSquare(_v0,_v1),Ue=0&&Ue=0&&pe<=1&&(oe[de++]=pe)}}else{var he=le*le-4*ie*ue;if(isAroundZero(he)){var pe=-le/(2*ie);pe>=0&&pe<=1&&(oe[de++]=pe)}else if(he>0){var _e=mathSqrt$3(he),pe=(-le+_e)/(2*ie),$e=(-le-_e)/(2*ie);pe>=0&&pe<=1&&(oe[de++]=pe),$e>=0&&$e<=1&&(oe[de++]=$e)}}return de}function quadraticExtremum(t,r,$){var V=t+$-2*r;return V===0?.5:(t-r)/V}function quadraticSubdivide(t,r,$,V,oe){var ie=(r-t)*V+t,le=($-r)*V+r,ue=(le-ie)*V+ie;oe[0]=t,oe[1]=ie,oe[2]=ue,oe[3]=ue,oe[4]=le,oe[5]=$}function quadraticProjectPoint(t,r,$,V,oe,ie,le,ue,de){var pe,he=.005,_e=1/0;_v0[0]=le,_v0[1]=ue;for(var $e=0;$e<1;$e+=.05){_v1[0]=quadraticAt(t,$,oe,$e),_v1[1]=quadraticAt(r,V,ie,$e);var Ie=distSquare(_v0,_v1);Ie<_e&&(pe=$e,_e=Ie)}_e=1/0;for(var Ve=0;Ve<32&&!(he=0&&Ie<_e)pe=Fe,_e=Ie;else{_v2[0]=quadraticAt(t,$,oe,Ue),_v2[1]=quadraticAt(r,V,ie,Ue);var qe=distSquare(_v2,_v0);Ue<=1&&qe<_e?(pe=Ue,_e=qe):he*=.5}}return de&&(de[0]=quadraticAt(t,$,oe,pe),de[1]=quadraticAt(r,V,ie,pe)),mathSqrt$3(_e)}function quadraticLength(t,r,$,V,oe,ie,le){for(var ue=t,de=r,pe=0,he=1/le,_e=1;_e<=le;_e++){var $e=_e*he,Ie=quadraticAt(t,$,oe,$e),Ve=quadraticAt(r,V,ie,$e),Fe=Ie-ue,Ue=Ve-de;pe+=Math.sqrt(Fe*Fe+Ue*Ue),ue=Ie,de=Ve}return pe}var regexp=/cubic-bezier\(([0-9,\.e ]+)\)/;function createCubicEasingFunc(t){var r=t&®exp.exec(t);if(r){var $=r[1].split(","),V=+trim$1($[0]),oe=+trim$1($[1]),ie=+trim$1($[2]),le=+trim$1($[3]);if(isNaN(V+oe+ie+le))return;var ue=[];return function(de){return de<=0?0:de>=1?1:cubicRootAt(0,V,ie,1,de,ue)&&cubicAt(0,oe,le,1,ue[0])}}}var Clip=function(){function t(r){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=r.life||1e3,this._delay=r.delay||0,this.loop=r.loop||!1,this.onframe=r.onframe||noop,this.ondestroy=r.ondestroy||noop,this.onrestart=r.onrestart||noop,r.easing&&this.setEasing(r.easing)}return t.prototype.step=function(r,$){if(this._inited||(this._startTime=r+this._delay,this._inited=!0),this._paused){this._pausedTime+=$;return}var V=this._life,oe=r-this._startTime-this._pausedTime,ie=oe/V;ie<0&&(ie=0),ie=Math.min(ie,1);var le=this.easingFunc,ue=le?le(ie):ie;if(this.onframe(ue),ie===1)if(this.loop){var de=oe%V;this._startTime=r-de,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(r){this.easing=r,this.easingFunc=isFunction(r)?r:easingFuncs$1[r]||createCubicEasingFunc(r)},t}();const Clip$1=Clip;var Entry=function(){function t(r){this.value=r}return t}(),LinkedList=function(){function t(){this._len=0}return t.prototype.insert=function(r){var $=new Entry(r);return this.insertEntry($),$},t.prototype.insertEntry=function(r){this.head?(this.tail.next=r,r.prev=this.tail,r.next=null,this.tail=r):this.head=this.tail=r,this._len++},t.prototype.remove=function(r){var $=r.prev,V=r.next;$?$.next=V:this.head=V,V?V.prev=$:this.tail=$,r.next=r.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),LRU=function(){function t(r){this._list=new LinkedList,this._maxSize=10,this._map={},this._maxSize=r}return t.prototype.put=function(r,$){var V=this._list,oe=this._map,ie=null;if(oe[r]==null){var le=V.len(),ue=this._lastRemovedEntry;if(le>=this._maxSize&&le>0){var de=V.head;V.remove(de),delete oe[de.key],ie=de.value,this._lastRemovedEntry=de}ue?ue.value=$:ue=new Entry($),ue.key=r,V.insertEntry(ue),oe[r]=ue}return ie},t.prototype.get=function(r){var $=this._map[r],V=this._list;if($!=null)return $!==V.tail&&(V.remove($),V.insertEntry($)),$.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();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(t){return t=Math.round(t),t<0?0:t>255?255:t}function clampCssAngle(t){return t=Math.round(t),t<0?0:t>360?360:t}function clampCssFloat(t){return t<0?0:t>1?1:t}function parseCssInt(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssByte(parseFloat(r)/100*255):clampCssByte(parseInt(r,10))}function parseCssFloat(t){var r=t;return r.length&&r.charAt(r.length-1)==="%"?clampCssFloat(parseFloat(r)/100):clampCssFloat(parseFloat(r))}function cssHueToRgb(t,r,$){return $<0?$+=1:$>1&&($-=1),$*6<1?t+(r-t)*$*6:$*2<1?r:$*3<2?t+(r-t)*(2/3-$)*6:t}function lerpNumber(t,r,$){return t+(r-t)*$}function setRgba(t,r,$,V,oe){return t[0]=r,t[1]=$,t[2]=V,t[3]=oe,t}function copyRgba(t,r){return t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=r[3],t}var colorCache=new LRU$1(20),lastRemovedArr=null;function putToCache(t,r){lastRemovedArr&©Rgba(lastRemovedArr,r),lastRemovedArr=colorCache.put(t,lastRemovedArr||r.slice())}function parse$1(t,r){if(t){r=r||[];var $=colorCache.get(t);if($)return copyRgba(r,$);t=t+"";var V=t.replace(/ /g,"").toLowerCase();if(V in kCSSColorTable)return copyRgba(r,kCSSColorTable[V]),putToCache(t,r),r;var oe=V.length;if(V.charAt(0)==="#"){if(oe===4||oe===5){var ie=parseInt(V.slice(1,4),16);if(!(ie>=0&&ie<=4095)){setRgba(r,0,0,0,1);return}return setRgba(r,(ie&3840)>>4|(ie&3840)>>8,ie&240|(ie&240)>>4,ie&15|(ie&15)<<4,oe===5?parseInt(V.slice(4),16)/15:1),putToCache(t,r),r}else if(oe===7||oe===9){var ie=parseInt(V.slice(1,7),16);if(!(ie>=0&&ie<=16777215)){setRgba(r,0,0,0,1);return}return setRgba(r,(ie&16711680)>>16,(ie&65280)>>8,ie&255,oe===9?parseInt(V.slice(7),16)/255:1),putToCache(t,r),r}return}var le=V.indexOf("("),ue=V.indexOf(")");if(le!==-1&&ue+1===oe){var de=V.substr(0,le),pe=V.substr(le+1,ue-(le+1)).split(","),he=1;switch(de){case"rgba":if(pe.length!==4)return pe.length===3?setRgba(r,+pe[0],+pe[1],+pe[2],1):setRgba(r,0,0,0,1);he=parseCssFloat(pe.pop());case"rgb":if(pe.length>=3)return setRgba(r,parseCssInt(pe[0]),parseCssInt(pe[1]),parseCssInt(pe[2]),pe.length===3?he:parseCssFloat(pe[3])),putToCache(t,r),r;setRgba(r,0,0,0,1);return;case"hsla":if(pe.length!==4){setRgba(r,0,0,0,1);return}return pe[3]=parseCssFloat(pe[3]),hsla2rgba(pe,r),putToCache(t,r),r;case"hsl":if(pe.length!==3){setRgba(r,0,0,0,1);return}return hsla2rgba(pe,r),putToCache(t,r),r;default:return}}setRgba(r,0,0,0,1)}}function hsla2rgba(t,r){var $=(parseFloat(t[0])%360+360)%360/360,V=parseCssFloat(t[1]),oe=parseCssFloat(t[2]),ie=oe<=.5?oe*(V+1):oe+V-oe*V,le=oe*2-ie;return r=r||[],setRgba(r,clampCssByte(cssHueToRgb(le,ie,$+1/3)*255),clampCssByte(cssHueToRgb(le,ie,$)*255),clampCssByte(cssHueToRgb(le,ie,$-1/3)*255),1),t.length===4&&(r[3]=t[3]),r}function rgba2hsla(t){if(t){var r=t[0]/255,$=t[1]/255,V=t[2]/255,oe=Math.min(r,$,V),ie=Math.max(r,$,V),le=ie-oe,ue=(ie+oe)/2,de,pe;if(le===0)de=0,pe=0;else{ue<.5?pe=le/(ie+oe):pe=le/(2-ie-oe);var he=((ie-r)/6+le/2)/le,_e=((ie-$)/6+le/2)/le,$e=((ie-V)/6+le/2)/le;r===ie?de=$e-_e:$===ie?de=1/3+he-$e:V===ie&&(de=2/3+_e-he),de<0&&(de+=1),de>1&&(de-=1)}var Ie=[de*360,pe,ue];return t[3]!=null&&Ie.push(t[3]),Ie}}function lift(t,r){var $=parse$1(t);if($){for(var V=0;V<3;V++)r<0?$[V]=$[V]*(1-r)|0:$[V]=(255-$[V])*r+$[V]|0,$[V]>255?$[V]=255:$[V]<0&&($[V]=0);return stringify($,$.length===4?"rgba":"rgb")}}function toHex(t){var r=parse$1(t);if(r)return((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1)}function fastLerp(t,r,$){if(!(!(r&&r.length)||!(t>=0&&t<=1))){$=$||[];var V=t*(r.length-1),oe=Math.floor(V),ie=Math.ceil(V),le=r[oe],ue=r[ie],de=V-oe;return $[0]=clampCssByte(lerpNumber(le[0],ue[0],de)),$[1]=clampCssByte(lerpNumber(le[1],ue[1],de)),$[2]=clampCssByte(lerpNumber(le[2],ue[2],de)),$[3]=clampCssFloat(lerpNumber(le[3],ue[3],de)),$}}var fastMapToColor=fastLerp;function lerp(t,r,$){if(!(!(r&&r.length)||!(t>=0&&t<=1))){var V=t*(r.length-1),oe=Math.floor(V),ie=Math.ceil(V),le=parse$1(r[oe]),ue=parse$1(r[ie]),de=V-oe,pe=stringify([clampCssByte(lerpNumber(le[0],ue[0],de)),clampCssByte(lerpNumber(le[1],ue[1],de)),clampCssByte(lerpNumber(le[2],ue[2],de)),clampCssFloat(lerpNumber(le[3],ue[3],de))],"rgba");return $?{color:pe,leftIndex:oe,rightIndex:ie,value:V}:pe}}var mapToColor=lerp;function modifyHSL(t,r,$,V){var oe=parse$1(t);if(t)return oe=rgba2hsla(oe),r!=null&&(oe[0]=clampCssAngle(r)),$!=null&&(oe[1]=parseCssFloat($)),V!=null&&(oe[2]=parseCssFloat(V)),stringify(hsla2rgba(oe),"rgba")}function modifyAlpha(t,r){var $=parse$1(t);if($&&r!=null)return $[3]=clampCssFloat(r),stringify($,"rgba")}function stringify(t,r){if(!(!t||!t.length)){var $=t[0]+","+t[1]+","+t[2];return(r==="rgba"||r==="hsva"||r==="hsla")&&($+=","+t[3]),r+"("+$+")"}}function lum(t,r){var $=parse$1(t);return $?(.299*$[0]+.587*$[1]+.114*$[2])*$[3]/255+(1-$[3])*r: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(t){return t.type==="linear"}function isRadialGradient(t){return t.type==="radial"}(function(){return env$1.hasGlobalWindow&&isFunction(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return null}})();var arraySlice=Array.prototype.slice;function interpolateNumber$1(t,r,$){return(r-t)*$+t}function interpolate1DArray(t,r,$,V){for(var oe=r.length,ie=0;ieV?r:t,ie=Math.min($,V),le=oe[ie-1]||{color:[0,0,0,0],offset:0},ue=ie;uele;if(ue)V.length=le;else for(var de=ie;de=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(r,$,V){this._needsSort=!0;var oe=this.keyframes,ie=oe.length,le=!1,ue=VALUE_TYPE_UNKOWN,de=$;if(isArrayLike($)){var pe=guessArrayDim($);ue=pe,(pe===1&&!isNumber($[0])||pe===2&&!isNumber($[0][0]))&&(le=!0)}else if(isNumber($)&&!eqNaN($))ue=VALUE_TYPE_NUMBER;else if(isString($))if(!isNaN(+$))ue=VALUE_TYPE_NUMBER;else{var he=parse$1($);he&&(de=he,ue=VALUE_TYPE_COLOR)}else if(isGradientObject($)){var _e=extend({},de);_e.colorStops=map$2($.colorStops,function(Ie){return{offset:Ie.offset,color:parse$1(Ie.color)}}),isLinearGradient($)?ue=VALUE_TYPE_LINEAR_GRADIENT:isRadialGradient($)&&(ue=VALUE_TYPE_RADIAL_GRADIENT),de=_e}ie===0?this.valType=ue:(ue!==this.valType||ue===VALUE_TYPE_UNKOWN)&&(le=!0),this.discrete=this.discrete||le;var $e={time:r,value:de,rawValue:$,percent:0};return V&&($e.easing=V,$e.easingFunc=isFunction(V)?V:easingFuncs$1[V]||createCubicEasingFunc(V)),oe.push($e),$e},t.prototype.prepare=function(r,$){var V=this.keyframes;this._needsSort&&V.sort(function(Fe,Ue){return Fe.time-Ue.time});for(var oe=this.valType,ie=V.length,le=V[ie-1],ue=this.discrete,de=isArrayValueType(oe),pe=isGradientValueType(oe),he=0;he=0&&!(le[he].percent<=$);he--);he=$e(he,ue-2)}else{for(he=_e;he$);he++);he=$e(he-1,ue-2)}Ve=le[he+1],Ie=le[he]}if(Ie&&Ve){this._lastFr=he,this._lastFrP=$;var Ue=Ve.percent-Ie.percent,qe=Ue===0?1:$e(($-Ie.percent)/Ue,1);Ve.easingFunc&&(qe=Ve.easingFunc(qe));var Et=V?this._additiveValue:pe?tmpRgba:r[de];if((isArrayValueType(ie)||pe)&&!Et&&(Et=this._additiveValue=[]),this.discrete)r[de]=qe<1?Ie.rawValue:Ve.rawValue;else if(isArrayValueType(ie))ie===VALUE_TYPE_1D_ARRAY?interpolate1DArray(Et,Ie[oe],Ve[oe],qe):interpolate2DArray(Et,Ie[oe],Ve[oe],qe);else if(isGradientValueType(ie)){var Lt=Ie[oe],hn=Ve[oe],Cn=ie===VALUE_TYPE_LINEAR_GRADIENT;r[de]={type:Cn?"linear":"radial",x:interpolateNumber$1(Lt.x,hn.x,qe),y:interpolateNumber$1(Lt.y,hn.y,qe),colorStops:map$2(Lt.colorStops,function(Sn,En){var wn=hn.colorStops[En];return{offset:interpolateNumber$1(Sn.offset,wn.offset,qe),color:rgba2String(interpolate1DArray([],Sn.color,wn.color,qe))}}),global:hn.global},Cn?(r[de].x2=interpolateNumber$1(Lt.x2,hn.x2,qe),r[de].y2=interpolateNumber$1(Lt.y2,hn.y2,qe)):r[de].r=interpolateNumber$1(Lt.r,hn.r,qe)}else if(pe)interpolate1DArray(Et,Ie[oe],Ve[oe],qe),V||(r[de]=rgba2String(Et));else{var bn=interpolateNumber$1(Ie[oe],Ve[oe],qe);V?this._additiveValue=bn:r[de]=bn}V&&this._addToTarget(r)}}},t.prototype._addToTarget=function(r){var $=this.valType,V=this.propName,oe=this._additiveValue;$===VALUE_TYPE_NUMBER?r[V]=r[V]+oe:$===VALUE_TYPE_COLOR?(parse$1(r[V],tmpRgba),add1DArray(tmpRgba,tmpRgba,oe,1),r[V]=rgba2String(tmpRgba)):$===VALUE_TYPE_1D_ARRAY?add1DArray(r[V],r[V],oe,1):$===VALUE_TYPE_2D_ARRAY&&add2DArray(r[V],r[V],oe,1)},t}(),Animator=function(){function t(r,$,V,oe){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=r,this._loop=$,$&&oe){logError("Can' use additive animation on looped animation.");return}this._additiveAnimators=oe,this._allowDiscrete=V}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(r){this._target=r},t.prototype.when=function(r,$,V){return this.whenWithKeys(r,$,keys($),V)},t.prototype.whenWithKeys=function(r,$,V,oe){for(var ie=this._tracks,le=0;le0&&de.addKeyframe(0,cloneValue(pe),oe),this._trackKeys.push(ue)}de.addKeyframe(r,cloneValue($[ue]),oe)}return this._maxTime=Math.max(this._maxTime,r),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(r){return this._maxTime=r,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var r=this._doneCbs;if(r)for(var $=r.length,V=0;V<$;V++)r[V].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var r=this.animation,$=this._abortedCbs;if(r&&r.removeClip(this._clip),this._clip=null,$)for(var V=0;V<$.length;V++)$[V].call(this)},t.prototype._setTracksFinished=function(){for(var r=this._tracks,$=this._trackKeys,V=0;V<$.length;V++)r[$[V]].setFinished()},t.prototype._getAdditiveTrack=function(r){var $,V=this._additiveAnimators;if(V)for(var oe=0;oe0)){this._started=1;for(var $=this,V=[],oe=this._maxTime||0,ie=0;ie1){var ue=le.pop();ie.addKeyframe(ue.time,r[oe]),ie.prepare(this._maxTime,ie.getAdditiveTrack())}}}},t}();const Animator$1=Animator;function getTime(){return new Date().getTime()}var Animation=function(t){__extends(r,t);function r($){var V=t.call(this)||this;return V._running=!1,V._time=0,V._pausedTime=0,V._pauseStart=0,V._paused=!1,$=$||{},V.stage=$.stage||{},V}return r.prototype.addClip=function($){$.animation&&this.removeClip($),this._head?(this._tail.next=$,$.prev=this._tail,$.next=null,this._tail=$):this._head=this._tail=$,$.animation=this},r.prototype.addAnimator=function($){$.animation=this;var V=$.getClip();V&&this.addClip(V)},r.prototype.removeClip=function($){if($.animation){var V=$.prev,oe=$.next;V?V.next=oe:this._head=oe,oe?oe.prev=V:this._tail=V,$.next=$.prev=$.animation=null}},r.prototype.removeAnimator=function($){var V=$.getClip();V&&this.removeClip(V),$.animation=null},r.prototype.update=function($){for(var V=getTime()-this._pausedTime,oe=V-this._time,ie=this._head;ie;){var le=ie.next,ue=ie.step(V,oe);ue&&(ie.ondestroy(),this.removeClip(ie)),ie=le}this._time=V,$||(this.trigger("frame",oe),this.stage.update&&this.stage.update())},r.prototype._startLoop=function(){var $=this;this._running=!0;function V(){$._running&&(requestAnimationFrame$2(V),!$._paused&&$.update())}requestAnimationFrame$2(V)},r.prototype.start=function(){this._running||(this._time=getTime(),this._pausedTime=0,this._startLoop())},r.prototype.stop=function(){this._running=!1},r.prototype.pause=function(){this._paused||(this._pauseStart=getTime(),this._paused=!0)},r.prototype.resume=function(){this._paused&&(this._pausedTime+=getTime()-this._pauseStart,this._paused=!1)},r.prototype.clear=function(){for(var $=this._head;$;){var V=$.next;$.prev=$.next=$.animation=null,$=V}this._head=this._tail=null},r.prototype.isFinished=function(){return this._head==null},r.prototype.animate=function($,V){V=V||{},this.start();var oe=new Animator$1($,V.loop);return this.addAnimator(oe),oe},r}(Eventful$1);const Animation$1=Animation;var TOUCH_CLICK_DELAY=300,globalEventSupported=env$1.domSupported,localNativeListenerNames=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],r=["touchstart","touchend","touchmove"],$={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},V=map$2(t,function(oe){var ie=oe.replace("mouse","pointer");return $.hasOwnProperty(ie)?ie:oe});return{mouse:t,touch:r,pointer:V}}(),globalNativeListenerNames={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},wheelEventSupported=!1;function isPointerFromTouch(t){var r=t.pointerType;return r==="pen"||r==="touch"}function setTouchTimer(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function markTouch(t){t&&(t.zrByTouch=!0)}function normalizeGlobalEvent(t,r){return normalizeEvent(t.dom,new FakeGlobalEvent(t,r),!0)}function isLocalEl(t,r){for(var $=r,V=!1;$&&$.nodeType!==9&&!(V=$.domBelongToZr||$!==r&&$===t.painterRoot);)$=$.parentNode;return V}var FakeGlobalEvent=function(){function t(r,$){this.stopPropagation=noop,this.stopImmediatePropagation=noop,this.preventDefault=noop,this.type=$.type,this.target=this.currentTarget=r.dom,this.pointerType=$.pointerType,this.clientX=$.clientX,this.clientY=$.clientY}return t}(),localDOMHandlers={mousedown:function(t){t=normalizeEvent(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=normalizeEvent(this.dom,t);var r=this.__mayPointerCapture;r&&(t.zrX!==r[0]||t.zrY!==r[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=normalizeEvent(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=normalizeEvent(this.dom,t);var r=t.toElement||t.relatedTarget;isLocalEl(this,r)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){wheelEventSupported=!0,t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){wheelEventSupported||(t=normalizeEvent(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),localDOMHandlers.mousemove.call(this,t),localDOMHandlers.mousedown.call(this,t)},touchmove:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"change"),localDOMHandlers.mousemove.call(this,t)},touchend:function(t){t=normalizeEvent(this.dom,t),markTouch(t),this.handler.processGesture(t,"end"),localDOMHandlers.mouseup.call(this,t),+new Date-+this.__lastTouchMomentEPSILON$2||t<-EPSILON$2}var scaleTmp=[],tmpTransform=[],originTransform=create(),abs=Math.abs,Transformable=function(){function t(){}return t.prototype.getLocalTransform=function(r){return t.getLocalTransform(this,r)},t.prototype.setPosition=function(r){this.x=r[0],this.y=r[1]},t.prototype.setScale=function(r){this.scaleX=r[0],this.scaleY=r[1]},t.prototype.setSkew=function(r){this.skewX=r[0],this.skewY=r[1]},t.prototype.setOrigin=function(r){this.originX=r[0],this.originY=r[1]},t.prototype.needLocalTransform=function(){return isNotAroundZero(this.rotation)||isNotAroundZero(this.x)||isNotAroundZero(this.y)||isNotAroundZero(this.scaleX-1)||isNotAroundZero(this.scaleY-1)||isNotAroundZero(this.skewX)||isNotAroundZero(this.skewY)},t.prototype.updateTransform=function(){var r=this.parent&&this.parent.transform,$=this.needLocalTransform(),V=this.transform;if(!($||r)){V&&(mIdentity(V),this.invTransform=null);return}V=V||create(),$?this.getLocalTransform(V):mIdentity(V),r&&($?mul(V,r,V):copy$1(V,r)),this.transform=V,this._resolveGlobalScaleRatio(V)},t.prototype._resolveGlobalScaleRatio=function(r){var $=this.globalScaleRatio;if($!=null&&$!==1){this.getGlobalScale(scaleTmp);var V=scaleTmp[0]<0?-1:1,oe=scaleTmp[1]<0?-1:1,ie=((scaleTmp[0]-V)*$+V)/scaleTmp[0]||0,le=((scaleTmp[1]-oe)*$+oe)/scaleTmp[1]||0;r[0]*=ie,r[1]*=ie,r[2]*=le,r[3]*=le}this.invTransform=this.invTransform||create(),invert(this.invTransform,r)},t.prototype.getComputedTransform=function(){for(var r=this,$=[];r;)$.push(r),r=r.parent;for(;r=$.pop();)r.updateTransform();return this.transform},t.prototype.setLocalTransform=function(r){if(r){var $=r[0]*r[0]+r[1]*r[1],V=r[2]*r[2]+r[3]*r[3],oe=Math.atan2(r[1],r[0]),ie=Math.PI/2+oe-Math.atan2(r[3],r[2]);V=Math.sqrt(V)*Math.cos(ie),$=Math.sqrt($),this.skewX=ie,this.skewY=0,this.rotation=-oe,this.x=+r[4],this.y=+r[5],this.scaleX=$,this.scaleY=V,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var r=this.parent,$=this.transform;r&&r.transform&&(mul(tmpTransform,r.invTransform,$),$=tmpTransform);var V=this.originX,oe=this.originY;(V||oe)&&(originTransform[4]=V,originTransform[5]=oe,mul(tmpTransform,$,originTransform),tmpTransform[4]-=V,tmpTransform[5]-=oe,$=tmpTransform),this.setLocalTransform($)}},t.prototype.getGlobalScale=function(r){var $=this.transform;return r=r||[],$?(r[0]=Math.sqrt($[0]*$[0]+$[1]*$[1]),r[1]=Math.sqrt($[2]*$[2]+$[3]*$[3]),$[0]<0&&(r[0]=-r[0]),$[3]<0&&(r[1]=-r[1]),r):(r[0]=1,r[1]=1,r)},t.prototype.transformCoordToLocal=function(r,$){var V=[r,$],oe=this.invTransform;return oe&&applyTransform$1(V,V,oe),V},t.prototype.transformCoordToGlobal=function(r,$){var V=[r,$],oe=this.transform;return oe&&applyTransform$1(V,V,oe),V},t.prototype.getLineScale=function(){var r=this.transform;return r&&abs(r[0]-1)>1e-10&&abs(r[3]-1)>1e-10?Math.sqrt(abs(r[0]*r[3]-r[2]*r[1])):1},t.prototype.copyTransform=function(r){copyTransform(this,r)},t.getLocalTransform=function(r,$){$=$||[];var V=r.originX||0,oe=r.originY||0,ie=r.scaleX,le=r.scaleY,ue=r.anchorX,de=r.anchorY,pe=r.rotation||0,he=r.x,_e=r.y,$e=r.skewX?Math.tan(r.skewX):0,Ie=r.skewY?Math.tan(-r.skewY):0;if(V||oe||ue||de){var Ve=V+ue,Fe=oe+de;$[4]=-Ve*ie-$e*Fe*le,$[5]=-Fe*le-Ie*Ve*ie}else $[4]=$[5]=0;return $[0]=ie,$[3]=le,$[1]=Ie*ie,$[2]=$e*le,pe&&rotate($,$,pe),$[4]+=V+he,$[5]+=oe+_e,$},t.initDefaultProps=function(){var r=t.prototype;r.scaleX=r.scaleY=r.globalScaleRatio=1,r.x=r.y=r.originX=r.originY=r.skewX=r.skewY=r.rotation=r.anchorX=r.anchorY=0}(),t}(),TRANSFORMABLE_PROPS=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function copyTransform(t,r){for(var $=0;$=0?parseFloat(t)/100*r:parseFloat(t):t}function calculateTextPosition(t,r,$){var V=r.position||"inside",oe=r.distance!=null?r.distance:5,ie=$.height,le=$.width,ue=ie/2,de=$.x,pe=$.y,he="left",_e="top";if(V instanceof Array)de+=parsePercent$1(V[0],$.width),pe+=parsePercent$1(V[1],$.height),he=null,_e=null;else switch(V){case"left":de-=oe,pe+=ue,he="right",_e="middle";break;case"right":de+=oe+le,pe+=ue,_e="middle";break;case"top":de+=le/2,pe-=oe,he="center",_e="bottom";break;case"bottom":de+=le/2,pe+=ie+oe,he="center";break;case"inside":de+=le/2,pe+=ue,he="center",_e="middle";break;case"insideLeft":de+=oe,pe+=ue,_e="middle";break;case"insideRight":de+=le-oe,pe+=ue,he="right",_e="middle";break;case"insideTop":de+=le/2,pe+=oe,he="center";break;case"insideBottom":de+=le/2,pe+=ie-oe,he="center",_e="bottom";break;case"insideTopLeft":de+=oe,pe+=oe;break;case"insideTopRight":de+=le-oe,pe+=oe,he="right";break;case"insideBottomLeft":de+=oe,pe+=ie-oe,_e="bottom";break;case"insideBottomRight":de+=le-oe,pe+=ie-oe,he="right",_e="bottom";break}return t=t||{},t.x=de,t.y=pe,t.align=he,t.verticalAlign=_e,t}var PRESERVED_NORMAL_STATE="__zr_normal__",PRIMARY_STATES_KEYS$1=TRANSFORMABLE_PROPS.concat(["ignore"]),DEFAULT_ANIMATABLE_MAP=reduce(TRANSFORMABLE_PROPS,function(t,r){return t[r]=!0,t},{ignore:!1}),tmpTextPosCalcRes={},tmpBoundingRect=new BoundingRect$1(0,0,0,0),Element$1=function(){function t(r){this.id=guid(),this.animators=[],this.currentStates=[],this.states={},this._init(r)}return t.prototype._init=function(r){this.attr(r)},t.prototype.drift=function(r,$,V){switch(this.draggable){case"horizontal":$=0;break;case"vertical":r=0;break}var oe=this.transform;oe||(oe=this.transform=[1,0,0,1,0,0]),oe[4]+=r,oe[5]+=$,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(r){var $=this._textContent;if($&&(!$.ignore||r)){this.textConfig||(this.textConfig={});var V=this.textConfig,oe=V.local,ie=$.innerTransformable,le=void 0,ue=void 0,de=!1;ie.parent=oe?this:null;var pe=!1;if(ie.copyTransform($),V.position!=null){var he=tmpBoundingRect;V.layoutRect?he.copy(V.layoutRect):he.copy(this.getBoundingRect()),oe||he.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(tmpTextPosCalcRes,V,he):calculateTextPosition(tmpTextPosCalcRes,V,he),ie.x=tmpTextPosCalcRes.x,ie.y=tmpTextPosCalcRes.y,le=tmpTextPosCalcRes.align,ue=tmpTextPosCalcRes.verticalAlign;var _e=V.origin;if(_e&&V.rotation!=null){var $e=void 0,Ie=void 0;_e==="center"?($e=he.width*.5,Ie=he.height*.5):($e=parsePercent$1(_e[0],he.width),Ie=parsePercent$1(_e[1],he.height)),pe=!0,ie.originX=-ie.x+$e+(oe?0:he.x),ie.originY=-ie.y+Ie+(oe?0:he.y)}}V.rotation!=null&&(ie.rotation=V.rotation);var Ve=V.offset;Ve&&(ie.x+=Ve[0],ie.y+=Ve[1],pe||(ie.originX=-Ve[0],ie.originY=-Ve[1]));var Fe=V.inside==null?typeof V.position=="string"&&V.position.indexOf("inside")>=0:V.inside,Ue=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),qe=void 0,Et=void 0,Lt=void 0;Fe&&this.canBeInsideText()?(qe=V.insideFill,Et=V.insideStroke,(qe==null||qe==="auto")&&(qe=this.getInsideTextFill()),(Et==null||Et==="auto")&&(Et=this.getInsideTextStroke(qe),Lt=!0)):(qe=V.outsideFill,Et=V.outsideStroke,(qe==null||qe==="auto")&&(qe=this.getOutsideFill()),(Et==null||Et==="auto")&&(Et=this.getOutsideStroke(qe),Lt=!0)),qe=qe||"#000",(qe!==Ue.fill||Et!==Ue.stroke||Lt!==Ue.autoStroke||le!==Ue.align||ue!==Ue.verticalAlign)&&(de=!0,Ue.fill=qe,Ue.stroke=Et,Ue.autoStroke=Lt,Ue.align=le,Ue.verticalAlign=ue,$.setDefaultTextStyle(Ue)),$.__dirty|=REDRAW_BIT,de&&$.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(r){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?LIGHT_LABEL_COLOR:DARK_LABEL_COLOR},t.prototype.getOutsideStroke=function(r){var $=this.__zr&&this.__zr.getBackgroundColor(),V=typeof $=="string"&&parse$1($);V||(V=[255,255,255,1]);for(var oe=V[3],ie=this.__zr.isDarkMode(),le=0;le<3;le++)V[le]=V[le]*oe+(ie?0:255)*(1-oe);return V[3]=1,stringify(V,"rgba")},t.prototype.traverse=function(r,$){},t.prototype.attrKV=function(r,$){r==="textConfig"?this.setTextConfig($):r==="textContent"?this.setTextContent($):r==="clipPath"?this.setClipPath($):r==="extra"?(this.extra=this.extra||{},extend(this.extra,$)):this[r]=$},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(r,$){if(typeof r=="string")this.attrKV(r,$);else if(isObject$3(r))for(var V=r,oe=keys(V),ie=0;ie0},t.prototype.getState=function(r){return this.states[r]},t.prototype.ensureState=function(r){var $=this.states;return $[r]||($[r]={}),$[r]},t.prototype.clearStates=function(r){this.useState(PRESERVED_NORMAL_STATE,!1,r)},t.prototype.useState=function(r,$,V,oe){var ie=r===PRESERVED_NORMAL_STATE,le=this.hasState();if(!(!le&&ie)){var ue=this.currentStates,de=this.stateTransition;if(!(indexOf(ue,r)>=0&&($||ue.length===1))){var pe;if(this.stateProxy&&!ie&&(pe=this.stateProxy(r)),pe||(pe=this.states&&this.states[r]),!pe&&!ie){logError("State "+r+" not exists.");return}ie||this.saveCurrentToNormalState(pe);var he=!!(pe&&pe.hoverLayer||oe);he&&this._toggleHoverLayerFlag(!0),this._applyStateObj(r,pe,this._normalState,$,!V&&!this.__inHover&&de&&de.duration>0,de);var _e=this._textContent,$e=this._textGuide;return _e&&_e.useState(r,$,V,he),$e&&$e.useState(r,$,V,he),ie?(this.currentStates=[],this._normalState={}):$?this.currentStates.push(r):this.currentStates=[r],this._updateAnimationTargets(),this.markRedraw(),!he&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT),pe}}},t.prototype.useStates=function(r,$,V){if(!r.length)this.clearStates();else{var oe=[],ie=this.currentStates,le=r.length,ue=le===ie.length;if(ue){for(var de=0;de0,Ve);var Fe=this._textContent,Ue=this._textGuide;Fe&&Fe.useStates(r,$,$e),Ue&&Ue.useStates(r,$,$e),this._updateAnimationTargets(),this.currentStates=r.slice(),this.markRedraw(),!$e&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~REDRAW_BIT)}},t.prototype._updateAnimationTargets=function(){for(var r=0;r=0){var V=this.currentStates.slice();V.splice($,1),this.useStates(V)}},t.prototype.replaceState=function(r,$,V){var oe=this.currentStates.slice(),ie=indexOf(oe,r),le=indexOf(oe,$)>=0;ie>=0?le?oe.splice(ie,1):oe[ie]=$:V&&!le&&oe.push($),this.useStates(oe)},t.prototype.toggleState=function(r,$){$?this.useState(r,!0):this.removeState(r)},t.prototype._mergeStates=function(r){for(var $={},V,oe=0;oe=0&&ie.splice(le,1)}),this.animators.push(r),V&&V.animation.addAnimator(r),V&&V.wakeUp()},t.prototype.updateDuringAnimation=function(r){this.markRedraw()},t.prototype.stopAnimation=function(r,$){for(var V=this.animators,oe=V.length,ie=[],le=0;le0&&$.during&&ie[0].during(function(Ve,Fe){$.during(Fe)});for(var $e=0;$e0||oe.force&&!le.length){var En=void 0,wn=void 0,$n=void 0;if(ue){wn={},$e&&(En={});for(var hn=0;hn=0&&(oe.splice(ie,0,$),this._doAdd($))}return this},r.prototype.replace=function($,V){var oe=indexOf(this._children,$);return oe>=0&&this.replaceAt(V,oe),this},r.prototype.replaceAt=function($,V){var oe=this._children,ie=oe[V];if($&&$!==this&&$.parent!==this&&$!==ie){oe[V]=$,ie.parent=null;var le=this.__zr;le&&ie.removeSelfFromZr(le),this._doAdd($)}return this},r.prototype._doAdd=function($){$.parent&&$.parent.remove($),$.parent=this;var V=this.__zr;V&&V!==$.__zr&&$.addSelfToZr(V),V&&V.refresh()},r.prototype.remove=function($){var V=this.__zr,oe=this._children,ie=indexOf(oe,$);return ie<0?this:(oe.splice(ie,1),$.parent=null,V&&$.removeSelfFromZr(V),V&&V.refresh(),this)},r.prototype.removeAll=function(){for(var $=this._children,V=this.__zr,oe=0;oe<$.length;oe++){var ie=$[oe];V&&ie.removeSelfFromZr(V),ie.parent=null}return $.length=0,this},r.prototype.eachChild=function($,V){for(var oe=this._children,ie=0;ie0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(r){this._sleepAfterStill=r},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover()},t.prototype.resize=function(r){r=r||{},this.painter.resize(r.width,r.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(r){this.handler.setCursorStyle(r)},t.prototype.findHover=function(r,$){return this.handler.findHover(r,$)},t.prototype.on=function(r,$,V){return this.handler.on(r,$,V),this},t.prototype.off=function(r,$){this.handler.off(r,$)},t.prototype.trigger=function(r,$){this.handler.trigger(r,$)},t.prototype.clear=function(){for(var r=this.storage.getRoots(),$=0;$0){if(t<=oe)return le;if(t>=ie)return ue}else{if(t>=oe)return le;if(t<=ie)return ue}else{if(t===oe)return le;if(t===ie)return ue}return(t-oe)/de*pe+le}function parsePercent(t,r){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return isString(t)?_trim(t).match(/%$/)?parseFloat(t)/100*r:parseFloat(t):t==null?NaN:+t}function round$1(t,r,$){return r==null&&(r=10),r=Math.min(Math.max(0,r),ROUND_SUPPORTED_PRECISION_MAX),t=(+t).toFixed(r),$?t:+t}function asc$2(t){return t.sort(function(r,$){return r-$}),t}function getPrecision(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var r=1,$=0;$<15;$++,r*=10)if(Math.round(t*r)/r===t)return $}return getPrecisionSafe(t)}function getPrecisionSafe(t){var r=t.toString().toLowerCase(),$=r.indexOf("e"),V=$>0?+r.slice($+1):0,oe=$>0?$:r.length,ie=r.indexOf("."),le=ie<0?0:oe-1-ie;return Math.max(0,le-V)}function getPixelPrecision(t,r){var $=Math.log,V=Math.LN10,oe=Math.floor($(t[1]-t[0])/V),ie=Math.round($(Math.abs(r[1]-r[0]))/V),le=Math.min(Math.max(-oe+ie,0),20);return isFinite(le)?le:20}function getPercentWithPrecision(t,r,$){if(!t[r])return 0;var V=getPercentSeats(t,$);return V[r]||0}function getPercentSeats(t,r){var $=reduce(t,function(Ie,Ve){return Ie+(isNaN(Ve)?0:Ve)},0);if($===0)return[];for(var V=Math.pow(10,r),oe=map$2(t,function(Ie){return(isNaN(Ie)?0:Ie)/$*V*100}),ie=V*100,le=map$2(oe,function(Ie){return Math.floor(Ie)}),ue=reduce(le,function(Ie,Ve){return Ie+Ve},0),de=map$2(oe,function(Ie,Ve){return Ie-le[Ve]});uepe&&(pe=de[_e],he=_e);++le[he],de[he]=0,++ue}return map$2(le,function(Ie){return Ie/V})}function addSafe(t,r){var $=Math.max(getPrecision(t),getPrecision(r)),V=t+r;return $>ROUND_SUPPORTED_PRECISION_MAX?V:round$1(V,$)}var MAX_SAFE_INTEGER=9007199254740991;function remRadian(t){var r=Math.PI*2;return(t%r+r)%r}function isRadianAroundZero(t){return t>-RADIAN_EPSILON&&t=10&&r++,r}function nice(t,r){var $=quantityExponent(t),V=Math.pow(10,$),oe=t/V,ie;return r?oe<1.5?ie=1:oe<2.5?ie=2:oe<4?ie=3:oe<7?ie=5:ie=10:oe<1?ie=1:oe<2?ie=2:oe<3?ie=3:oe<5?ie=5:ie=10,t=ie*V,$>=-20?+t.toFixed($<0?-$:0):t}function quantile(t,r){var $=(t.length-1)*r+1,V=Math.floor($),oe=+t[V-1],ie=$-V;return ie?oe+ie*(t[V]-oe):oe}function reformIntervals(t){t.sort(function(de,pe){return ue(de,pe,0)?-1:1});for(var r=-1/0,$=1,V=0;V=0||ie&&indexOf(ie,de)<0)){var pe=V.getShallow(de,r);pe!=null&&(le[t[ue][0]]=pe)}}return le}}var AREA_STYLE_KEY_MAP=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],getAreaStyle=makeStyleMapper(AREA_STYLE_KEY_MAP),AreaStyleMixin=function(){function t(){}return t.prototype.getAreaStyle=function(r,$){return getAreaStyle(this,r,$)},t}(),globalImageCache=new LRU$1(50);function findExistImage(t){if(typeof t=="string"){var r=globalImageCache.get(t);return r&&r.image}else return t}function createOrUpdateImage(t,r,$,V,oe){if(t)if(typeof t=="string"){if(r&&r.__zrImageSrc===t||!$)return r;var ie=globalImageCache.get(t),le={hostEl:$,cb:V,cbPayload:oe};return ie?(r=ie.image,!isImageReady(r)&&ie.pending.push(le)):(r=platformApi.loadImage(t,imageOnLoad,imageOnLoad),r.__zrImageSrc=t,globalImageCache.put(t,r.__cachedImgObj={image:r,pending:[le]})),r}else return t;else return r}function imageOnLoad(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var r=0;r=le;de++)ue-=le;var pe=getWidth($,r);return pe>ue&&($="",pe=0),ue=t-pe,oe.ellipsis=$,oe.ellipsisWidth=pe,oe.contentWidth=ue,oe.containerWidth=t,oe}function truncateSingleLine(t,r){var $=r.containerWidth,V=r.font,oe=r.contentWidth;if(!$)return"";var ie=getWidth(t,V);if(ie<=$)return t;for(var le=0;;le++){if(ie<=oe||le>=r.maxIterations){t+=r.ellipsis;break}var ue=le===0?estimateLength(t,oe,r.ascCharWidth,r.cnCharWidth):ie>0?Math.floor(t.length*oe/ie):0;t=t.substr(0,ue),ie=getWidth(t,V)}return t===""&&(t=r.placeholder),t}function estimateLength(t,r,$,V){for(var oe=0,ie=0,le=t.length;ieIe&&pe){var Ve=Math.floor(Ie/ue);_e=_e.slice(0,Ve)}if(t&&ie&&he!=null)for(var Fe=prepareTruncateOptions(he,oe,r.ellipsis,{minChar:r.truncateMinChar,placeholder:r.placeholder}),Ue=0;Ue<_e.length;Ue++)_e[Ue]=truncateSingleLine(_e[Ue],Fe);for(var qe=Ie,Et=0,Ue=0;Ue<_e.length;Ue++)Et=Math.max(getWidth(_e[Ue],oe),Et);he==null&&(he=Et);var Lt=Et;return V&&(qe+=V[0]+V[2],Lt+=V[1]+V[3],he+=V[1]+V[3]),de&&(Lt=he),{lines:_e,height:Ie,outerWidth:Lt,outerHeight:qe,lineHeight:ue,calculatedLineHeight:le,contentWidth:Et,contentHeight:$e,width:he}}var RichTextToken=function(){function t(){}return t}(),RichTextLine=function(){function t(r){this.tokens=[],r&&(this.tokens=r)}return t}(),RichTextContentBlock=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function parseRichText(t,r){var $=new RichTextContentBlock;if(t!=null&&(t+=""),!t)return $;for(var V=r.width,oe=r.height,ie=r.overflow,le=(ie==="break"||ie==="breakAll")&&V!=null?{width:V,accumWidth:0,breakAll:ie==="breakAll"}:null,ue=STYLE_REG.lastIndex=0,de;(de=STYLE_REG.exec(t))!=null;){var pe=de.index;pe>ue&&pushTokens($,t.substring(ue,pe),r,le),pushTokens($,de[2],r,le,de[1]),ue=STYLE_REG.lastIndex}ueoe){Cn>0?(Et.tokens=Et.tokens.slice(0,Cn),Ue(Et,hn,Lt),$.lines=$.lines.slice(0,qe+1)):$.lines=$.lines.slice(0,qe);break e}var xn=Sn.width,An=xn==null||xn==="auto";if(typeof xn=="string"&&xn.charAt(xn.length-1)==="%")bn.percentWidth=xn,he.push(bn),bn.contentWidth=getWidth(bn.text,$n);else{if(An){var Mn=Sn.backgroundColor,Vn=Mn&&Mn.image;Vn&&(Vn=findExistImage(Vn),isImageReady(Vn)&&(bn.width=Math.max(bn.width,Vn.width*Tn/Vn.height)))}var Bn=Ve&&V!=null?V-hn:null;Bn!=null&&Bn0&&Ve+V.accumWidth>V.width&&(he=r.split(` `),pe=!0),V.accumWidth=Ve}else{var Fe=wrapText(r,de,V.width,V.breakAll,V.accumWidth);V.accumWidth=Fe.accumWidth+Ie,_e=Fe.linesWidths,he=Fe.lines}}else he=r.split(` `);for(var Ue=0;Ue=32&&r<=591||r>=880&&r<=4351||r>=4608&&r<=5119||r>=7680&&r<=8303}var breakCharMap=reduce(",&?/;] ".split(""),function(t,r){return t[r]=!0,t},{});function isWordBreakChar(t){return isAlphabeticLetter(t)?!!breakCharMap[t]:!0}function wrapText(t,r,$,V,oe){for(var ie=[],le=[],ue="",de="",pe=0,he=0,_e=0;_e$:oe+he+Ie>$){he?(ue||de)&&(Ve?(ue||(ue=de,de="",pe=0,he=pe),ie.push(ue),le.push(he-pe),de+=$e,pe+=Ie,ue="",he=pe):(de&&(ue+=de,de="",pe=0),ie.push(ue),le.push(he),ue=$e,he=Ie)):Ve?(ie.push(de),le.push(pe),de=$e,pe=Ie):(ie.push($e),le.push(Ie));continue}he+=Ie,Ve?(de+=$e,pe+=Ie):(de&&(ue+=de,de="",pe=0),ue+=$e)}return!ie.length&&!ue&&(ue=t,de="",pe=0),de&&(ue+=de),ue&&(ie.push(ue),le.push(he)),ie.length===1&&(he+=oe),{accumWidth:he,lines:ie,linesWidths:le}}var STYLE_MAGIC_KEY="__zr_style_"+Math.round(Math.random()*10),DEFAULT_COMMON_STYLE={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},DEFAULT_COMMON_ANIMATION_PROPS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};DEFAULT_COMMON_STYLE[STYLE_MAGIC_KEY]=!0;var PRIMARY_STATES_KEYS=["z","z2","invisible"],PRIMARY_STATES_KEYS_IN_HOVER_LAYER=["invisible"],Displayable=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype._init=function($){for(var V=keys($),oe=0;oe1e-4){ue[0]=t-$,ue[1]=r-V,de[0]=t+$,de[1]=r+V;return}if(start[0]=mathCos$3(oe)*$+t,start[1]=mathSin$3(oe)*V+r,end[0]=mathCos$3(ie)*$+t,end[1]=mathSin$3(ie)*V+r,pe(ue,start,end),he(de,start,end),oe=oe%PI2$6,oe<0&&(oe=oe+PI2$6),ie=ie%PI2$6,ie<0&&(ie=ie+PI2$6),oe>ie&&!le?ie+=PI2$6:oeoe&&(extremity[0]=mathCos$3(Ie)*$+t,extremity[1]=mathSin$3(Ie)*V+r,pe(ue,extremity,ue),he(de,extremity,de))}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(t){var r=Math.round(t/PI$4*1e8)/1e8;return r%2*PI$4}function normalizeArcAngles(t,r){var $=modPI2(t[0]);$<0&&($+=PI2$5);var V=$-t[0],oe=t[1];oe+=V,!r&&oe-$>=PI2$5?oe=$+PI2$5:r&&$-oe>=PI2$5?oe=$-PI2$5:!r&&$>oe?oe=$+(PI2$5-modPI2($-oe)):r&&$0&&(this._ux=mathAbs$1(V/devicePixelRatio/r)||0,this._uy=mathAbs$1(V/devicePixelRatio/$)||0)},t.prototype.setDPR=function(r){this.dpr=r},t.prototype.setContext=function(r){this._ctx=r},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(r,$){return this._drawPendingPt(),this.addData(CMD$2.M,r,$),this._ctx&&this._ctx.moveTo(r,$),this._x0=r,this._y0=$,this._xi=r,this._yi=$,this},t.prototype.lineTo=function(r,$){var V=mathAbs$1(r-this._xi),oe=mathAbs$1($-this._yi),ie=V>this._ux||oe>this._uy;if(this.addData(CMD$2.L,r,$),this._ctx&&ie&&this._ctx.lineTo(r,$),ie)this._xi=r,this._yi=$,this._pendingPtDist=0;else{var le=V*V+oe*oe;le>this._pendingPtDist&&(this._pendingPtX=r,this._pendingPtY=$,this._pendingPtDist=le)}return this},t.prototype.bezierCurveTo=function(r,$,V,oe,ie,le){return this._drawPendingPt(),this.addData(CMD$2.C,r,$,V,oe,ie,le),this._ctx&&this._ctx.bezierCurveTo(r,$,V,oe,ie,le),this._xi=ie,this._yi=le,this},t.prototype.quadraticCurveTo=function(r,$,V,oe){return this._drawPendingPt(),this.addData(CMD$2.Q,r,$,V,oe),this._ctx&&this._ctx.quadraticCurveTo(r,$,V,oe),this._xi=V,this._yi=oe,this},t.prototype.arc=function(r,$,V,oe,ie,le){this._drawPendingPt(),tmpAngles[0]=oe,tmpAngles[1]=ie,normalizeArcAngles(tmpAngles,le),oe=tmpAngles[0],ie=tmpAngles[1];var ue=ie-oe;return this.addData(CMD$2.A,r,$,V,V,oe,ue,0,le?0:1),this._ctx&&this._ctx.arc(r,$,V,oe,ie,le),this._xi=mathCos$2(ie)*V+r,this._yi=mathSin$2(ie)*V+$,this},t.prototype.arcTo=function(r,$,V,oe,ie){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(r,$,V,oe,ie),this},t.prototype.rect=function(r,$,V,oe){return this._drawPendingPt(),this._ctx&&this._ctx.rect(r,$,V,oe),this.addData(CMD$2.R,r,$,V,oe),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(CMD$2.Z);var r=this._ctx,$=this._x0,V=this._y0;return r&&r.closePath(),this._xi=$,this._yi=V,this},t.prototype.fill=function(r){r&&r.fill(),this.toStatic()},t.prototype.stroke=function(r){r&&r.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(r){var $=r.length;!(this.data&&this.data.length===$)&&hasTypedArray&&(this.data=new Float32Array($));for(var V=0;V<$;V++)this.data[V]=r[V];this._len=$},t.prototype.appendPath=function(r){r instanceof Array||(r=[r]);for(var $=r.length,V=0,oe=this._len,ie=0;ie<$;ie++)V+=r[ie].len();hasTypedArray&&this.data instanceof Float32Array&&(this.data=new Float32Array(oe+V));for(var ie=0;ie<$;ie++)for(var le=r[ie].data,ue=0;uehe.length&&(this._expandData(),he=this.data);for(var _e=0;_e0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var r=[],$=0;$11&&(this.data=new Float32Array(r)))}},t.prototype.getBoundingRect=function(){min[0]=min[1]=min2[0]=min2[1]=Number.MAX_VALUE,max[0]=max[1]=max2[0]=max2[1]=-Number.MAX_VALUE;var r=this.data,$=0,V=0,oe=0,ie=0,le;for(le=0;leV||mathAbs$1(Lt)>oe||$e===$-1)&&(Fe=Math.sqrt(Et*Et+Lt*Lt),ie=Ue,le=qe);break}case CMD$2.C:{var hn=r[$e++],Cn=r[$e++],Ue=r[$e++],qe=r[$e++],bn=r[$e++],Sn=r[$e++];Fe=cubicLength(ie,le,hn,Cn,Ue,qe,bn,Sn,10),ie=bn,le=Sn;break}case CMD$2.Q:{var hn=r[$e++],Cn=r[$e++],Ue=r[$e++],qe=r[$e++];Fe=quadraticLength(ie,le,hn,Cn,Ue,qe,10),ie=Ue,le=qe;break}case CMD$2.A:var En=r[$e++],wn=r[$e++],$n=r[$e++],Tn=r[$e++],xn=r[$e++],An=r[$e++],Mn=An+xn;$e+=1,r[$e++],Ve&&(ue=mathCos$2(xn)*$n+En,de=mathSin$2(xn)*Tn+wn),Fe=mathMax$6($n,Tn)*mathMin$6(PI2$5,Math.abs(An)),ie=mathCos$2(Mn)*$n+En,le=mathSin$2(Mn)*Tn+wn;break;case CMD$2.R:{ue=ie=r[$e++],de=le=r[$e++];var Vn=r[$e++],Bn=r[$e++];Fe=Vn*2+Bn*2;break}case CMD$2.Z:{var Et=ue-ie,Lt=de-le;Fe=Math.sqrt(Et*Et+Lt*Lt),ie=ue,le=de;break}}Fe>=0&&(pe[_e++]=Fe,he+=Fe)}return this._pathLen=he,he},t.prototype.rebuildPath=function(r,$){var V=this.data,oe=this._ux,ie=this._uy,le=this._len,ue,de,pe,he,_e,$e,Ie=$<1,Ve,Fe,Ue=0,qe=0,Et,Lt=0,hn,Cn;if(!(Ie&&(this._pathSegLen||this._calculateLength(),Ve=this._pathSegLen,Fe=this._pathLen,Et=$*Fe,!Et)))e:for(var bn=0;bn0&&(r.lineTo(hn,Cn),Lt=0),Sn){case CMD$2.M:ue=pe=V[bn++],de=he=V[bn++],r.moveTo(pe,he);break;case CMD$2.L:{_e=V[bn++],$e=V[bn++];var wn=mathAbs$1(_e-pe),$n=mathAbs$1($e-he);if(wn>oe||$n>ie){if(Ie){var Tn=Ve[qe++];if(Ue+Tn>Et){var xn=(Et-Ue)/Tn;r.lineTo(pe*(1-xn)+_e*xn,he*(1-xn)+$e*xn);break e}Ue+=Tn}r.lineTo(_e,$e),pe=_e,he=$e,Lt=0}else{var An=wn*wn+$n*$n;An>Lt&&(hn=_e,Cn=$e,Lt=An)}break}case CMD$2.C:{var Mn=V[bn++],Vn=V[bn++],Bn=V[bn++],Dn=V[bn++],Ln=V[bn++],Pn=V[bn++];if(Ie){var Tn=Ve[qe++];if(Ue+Tn>Et){var xn=(Et-Ue)/Tn;cubicSubdivide(pe,Mn,Bn,Ln,xn,tmpOutX),cubicSubdivide(he,Vn,Dn,Pn,xn,tmpOutY),r.bezierCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2],tmpOutX[3],tmpOutY[3]);break e}Ue+=Tn}r.bezierCurveTo(Mn,Vn,Bn,Dn,Ln,Pn),pe=Ln,he=Pn;break}case CMD$2.Q:{var Mn=V[bn++],Vn=V[bn++],Bn=V[bn++],Dn=V[bn++];if(Ie){var Tn=Ve[qe++];if(Ue+Tn>Et){var xn=(Et-Ue)/Tn;quadraticSubdivide(pe,Mn,Bn,xn,tmpOutX),quadraticSubdivide(he,Vn,Dn,xn,tmpOutY),r.quadraticCurveTo(tmpOutX[1],tmpOutY[1],tmpOutX[2],tmpOutY[2]);break e}Ue+=Tn}r.quadraticCurveTo(Mn,Vn,Bn,Dn),pe=Bn,he=Dn;break}case CMD$2.A:var Fn=V[bn++],Un=V[bn++],Wn=V[bn++],Zn=V[bn++],or=V[bn++],br=V[bn++],Qn=V[bn++],Gn=!V[bn++],Yn=Wn>Zn?Wn:Zn,er=mathAbs$1(Wn-Zn)>.001,lr=or+br,sr=!1;if(Ie){var Tn=Ve[qe++];Ue+Tn>Et&&(lr=or+br*(Et-Ue)/Tn,sr=!0),Ue+=Tn}if(er&&r.ellipse?r.ellipse(Fn,Un,Wn,Zn,Qn,or,lr,Gn):r.arc(Fn,Un,Yn,or,lr,Gn),sr)break e;En&&(ue=mathCos$2(or)*Wn+Fn,de=mathSin$2(or)*Zn+Un),pe=mathCos$2(lr)*Wn+Fn,he=mathSin$2(lr)*Zn+Un;break;case CMD$2.R:ue=pe=V[bn],de=he=V[bn+1],_e=V[bn++],$e=V[bn++];var zn=V[bn++],Kn=V[bn++];if(Ie){var Tn=Ve[qe++];if(Ue+Tn>Et){var Jn=Et-Ue;r.moveTo(_e,$e),r.lineTo(_e+mathMin$6(Jn,zn),$e),Jn-=zn,Jn>0&&r.lineTo(_e+zn,$e+mathMin$6(Jn,Kn)),Jn-=Kn,Jn>0&&r.lineTo(_e+mathMax$6(zn-Jn,0),$e+Kn),Jn-=zn,Jn>0&&r.lineTo(_e,$e+mathMax$6(Kn-Jn,0));break e}Ue+=Tn}r.rect(_e,$e,zn,Kn);break;case CMD$2.Z:if(Ie){var Tn=Ve[qe++];if(Ue+Tn>Et){var xn=(Et-Ue)/Tn;r.lineTo(pe*(1-xn)+ue*xn,he*(1-xn)+de*xn);break e}Ue+=Tn}r.closePath(),pe=ue,he=de}}},t.prototype.clone=function(){var r=new t,$=this.data;return r.data=$.slice?$.slice():Array.prototype.slice.call($),r._len=this._len,r},t.CMD=CMD$2,t.initDefaultProps=function(){var r=t.prototype;r._saveData=!0,r._ux=0,r._uy=0,r._pendingPtDist=0,r._version=0}(),t}();const PathProxy$1=PathProxy;function containStroke$4(t,r,$,V,oe,ie,le){if(oe===0)return!1;var ue=oe,de=0,pe=t;if(le>r+ue&&le>V+ue||let+ue&&ie>$+ue||ier+_e&&he>V+_e&&he>ie+_e&&he>ue+_e||het+_e&&pe>$+_e&&pe>oe+_e&&pe>le+_e||per+pe&&de>V+pe&&de>ie+pe||det+pe&&ue>$+pe&&ue>oe+pe||ue$||he+pe<$)return!1;if(Math.abs(V-oe)%PI2$3<1e-4)return!0;if(ie){var _e=V;V=normalizeRadian(oe),oe=normalizeRadian(_e)}else V=normalizeRadian(V),oe=normalizeRadian(oe);V>oe&&(oe+=PI2$3);var $e=Math.atan2(de,ue);return $e<0&&($e+=PI2$3),$e>=V&&$e<=oe||$e+PI2$3>=V&&$e+PI2$3<=oe}function windingLine(t,r,$,V,oe,ie){if(ie>r&&ie>V||ieoe?ue:0}var CMD$1=PathProxy$1.CMD,PI2$2=Math.PI*2,EPSILON$1=1e-4;function isAroundEqual$1(t,r){return Math.abs(t-r)r&&pe>V&&pe>ie&&pe>ue||pe1&&swapExtrema(),Ie=cubicAt(r,V,ie,ue,extrema[0]),$e>1&&(Ve=cubicAt(r,V,ie,ue,extrema[1]))),$e===2?Uer&&ue>V&&ue>ie||ue=0&&pe<=1){for(var he=0,_e=quadraticAt(r,V,ie,pe),$e=0;$e$||ue<-$)return 0;var de=Math.sqrt($*$-ue*ue);roots[0]=-de,roots[1]=de;var pe=Math.abs(V-oe);if(pe<1e-4)return 0;if(pe>=PI2$2-1e-4){V=0,oe=PI2$2;var he=ie?1:-1;return le>=roots[0]+t&&le<=roots[1]+t?he:0}if(V>oe){var _e=V;V=oe,oe=_e}V<0&&(V+=PI2$2,oe+=PI2$2);for(var $e=0,Ie=0;Ie<2;Ie++){var Ve=roots[Ie];if(Ve+t>le){var Fe=Math.atan2(ue,Ve),he=ie?1:-1;Fe<0&&(Fe=PI2$2+Fe),(Fe>=V&&Fe<=oe||Fe+PI2$2>=V&&Fe+PI2$2<=oe)&&(Fe>Math.PI/2&&Fe1&&($||(ue+=windingLine(de,pe,he,_e,V,oe))),Ue&&(de=ie[Ve],pe=ie[Ve+1],he=de,_e=pe),Fe){case CMD$1.M:he=ie[Ve++],_e=ie[Ve++],de=he,pe=_e;break;case CMD$1.L:if($){if(containStroke$4(de,pe,ie[Ve],ie[Ve+1],r,V,oe))return!0}else ue+=windingLine(de,pe,ie[Ve],ie[Ve+1],V,oe)||0;de=ie[Ve++],pe=ie[Ve++];break;case CMD$1.C:if($){if(containStroke$3(de,pe,ie[Ve++],ie[Ve++],ie[Ve++],ie[Ve++],ie[Ve],ie[Ve+1],r,V,oe))return!0}else ue+=windingCubic(de,pe,ie[Ve++],ie[Ve++],ie[Ve++],ie[Ve++],ie[Ve],ie[Ve+1],V,oe)||0;de=ie[Ve++],pe=ie[Ve++];break;case CMD$1.Q:if($){if(containStroke$2(de,pe,ie[Ve++],ie[Ve++],ie[Ve],ie[Ve+1],r,V,oe))return!0}else ue+=windingQuadratic(de,pe,ie[Ve++],ie[Ve++],ie[Ve],ie[Ve+1],V,oe)||0;de=ie[Ve++],pe=ie[Ve++];break;case CMD$1.A:var qe=ie[Ve++],Et=ie[Ve++],Lt=ie[Ve++],hn=ie[Ve++],Cn=ie[Ve++],bn=ie[Ve++];Ve+=1;var Sn=!!(1-ie[Ve++]);$e=Math.cos(Cn)*Lt+qe,Ie=Math.sin(Cn)*hn+Et,Ue?(he=$e,_e=Ie):ue+=windingLine(de,pe,$e,Ie,V,oe);var En=(V-qe)*hn/Lt+qe;if($){if(containStroke$1(qe,Et,hn,Cn,Cn+bn,Sn,r,En,oe))return!0}else ue+=windingArc(qe,Et,hn,Cn,Cn+bn,Sn,En,oe);de=Math.cos(Cn+bn)*Lt+qe,pe=Math.sin(Cn+bn)*hn+Et;break;case CMD$1.R:he=de=ie[Ve++],_e=pe=ie[Ve++];var wn=ie[Ve++],$n=ie[Ve++];if($e=he+wn,Ie=_e+$n,$){if(containStroke$4(he,_e,$e,_e,r,V,oe)||containStroke$4($e,_e,$e,Ie,r,V,oe)||containStroke$4($e,Ie,he,Ie,r,V,oe)||containStroke$4(he,Ie,he,_e,r,V,oe))return!0}else ue+=windingLine($e,_e,$e,Ie,V,oe),ue+=windingLine(he,Ie,he,_e,V,oe);break;case CMD$1.Z:if($){if(containStroke$4(de,pe,he,_e,r,V,oe))return!0}else ue+=windingLine(de,pe,he,_e,V,oe);de=he,pe=_e;break}}return!$&&!isAroundEqual$1(pe,_e)&&(ue+=windingLine(de,pe,he,_e,V,oe)||0),ue!==0}function contain$2(t,r,$){return containPath(t,0,!1,r,$)}function containStroke(t,r,$,V){return containPath(t,r,!0,$,V)}var DEFAULT_PATH_STYLE=defaults({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},DEFAULT_COMMON_STYLE),DEFAULT_PATH_ANIMATION_PROPS={style:defaults({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},DEFAULT_COMMON_ANIMATION_PROPS.style)},pathCopyParams=TRANSFORMABLE_PROPS.concat(["invisible","culling","z","z2","zlevel","parent"]),Path=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.update=function(){var $=this;t.prototype.update.call(this);var V=this.style;if(V.decal){var oe=this._decalEl=this._decalEl||new r;oe.buildPath===r.prototype.buildPath&&(oe.buildPath=function(de){$.buildPath(de,$.shape)}),oe.silent=!0;var ie=oe.style;for(var le in V)ie[le]!==V[le]&&(ie[le]=V[le]);ie.fill=V.fill?V.decal:null,ie.decal=null,ie.shadowColor=null,V.strokeFirst&&(ie.stroke=null);for(var ue=0;ue.5?DARK_LABEL_COLOR:V>.2?LIGHTER_LABEL_COLOR:LIGHT_LABEL_COLOR}else if($)return LIGHT_LABEL_COLOR}return DARK_LABEL_COLOR},r.prototype.getInsideTextStroke=function($){var V=this.style.fill;if(isString(V)){var oe=this.__zr,ie=!!(oe&&oe.isDarkMode()),le=lum($,0)0))},r.prototype.hasFill=function(){var $=this.style,V=$.fill;return V!=null&&V!=="none"},r.prototype.getBoundingRect=function(){var $=this._rect,V=this.style,oe=!$;if(oe){var ie=!1;this.path||(ie=!0,this.createPathProxy());var le=this.path;(ie||this.__dirty&SHAPE_CHANGED_BIT)&&(le.beginPath(),this.buildPath(le,this.shape,!1),this.pathUpdated()),$=le.getBoundingRect()}if(this._rect=$,this.hasStroke()&&this.path&&this.path.len()>0){var ue=this._rectStroke||(this._rectStroke=$.clone());if(this.__dirty||oe){ue.copy($);var de=V.strokeNoScale?this.getLineScale():1,pe=V.lineWidth;if(!this.hasFill()){var he=this.strokeContainThreshold;pe=Math.max(pe,he??4)}de>1e-10&&(ue.width+=pe/de,ue.height+=pe/de,ue.x-=pe/de/2,ue.y-=pe/de/2)}return ue}return $},r.prototype.contain=function($,V){var oe=this.transformCoordToLocal($,V),ie=this.getBoundingRect(),le=this.style;if($=oe[0],V=oe[1],ie.contain($,V)){var ue=this.path;if(this.hasStroke()){var de=le.lineWidth,pe=le.strokeNoScale?this.getLineScale():1;if(pe>1e-10&&(this.hasFill()||(de=Math.max(de,this.strokeContainThreshold)),containStroke(ue,de/pe,$,V)))return!0}if(this.hasFill())return contain$2(ue,$,V)}return!1},r.prototype.dirtyShape=function(){this.__dirty|=SHAPE_CHANGED_BIT,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},r.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},r.prototype.animateShape=function($){return this.animate("shape",$)},r.prototype.updateDuringAnimation=function($){$==="style"?this.dirtyStyle():$==="shape"?this.dirtyShape():this.markRedraw()},r.prototype.attrKV=function($,V){$==="shape"?this.setShape(V):t.prototype.attrKV.call(this,$,V)},r.prototype.setShape=function($,V){var oe=this.shape;return oe||(oe=this.shape={}),typeof $=="string"?oe[$]=V:extend(oe,$),this.dirtyShape(),this},r.prototype.shapeChanged=function(){return!!(this.__dirty&SHAPE_CHANGED_BIT)},r.prototype.createStyle=function($){return createObject(DEFAULT_PATH_STYLE,$)},r.prototype._innerSaveToNormal=function($){t.prototype._innerSaveToNormal.call(this,$);var V=this._normalState;$.shape&&!V.shape&&(V.shape=extend({},this.shape))},r.prototype._applyStateObj=function($,V,oe,ie,le,ue){t.prototype._applyStateObj.call(this,$,V,oe,ie,le,ue);var de=!(V&&ie),pe;if(V&&V.shape?le?ie?pe=V.shape:(pe=extend({},oe.shape),extend(pe,V.shape)):(pe=extend({},ie?this.shape:oe.shape),extend(pe,V.shape)):de&&(pe=oe.shape),pe)if(le){this.shape=extend({},this.shape);for(var he={},_e=keys(pe),$e=0;$e<_e.length;$e++){var Ie=_e[$e];typeof pe[Ie]=="object"?this.shape[Ie]=pe[Ie]:he[Ie]=pe[Ie]}this._transitionState($,{shape:he},ue)}else this.shape=pe,this.dirtyShape()},r.prototype._mergeStates=function($){for(var V=t.prototype._mergeStates.call(this,$),oe,ie=0;ie<$.length;ie++){var le=$[ie];le.shape&&(oe=oe||{},this._mergeStyle(oe,le.shape))}return oe&&(V.shape=oe),V},r.prototype.getAnimationStyleProps=function(){return DEFAULT_PATH_ANIMATION_PROPS},r.prototype.isZeroArea=function(){return!1},r.extend=function($){var V=function(ie){__extends(le,ie);function le(ue){var de=ie.call(this,ue)||this;return $.init&&$.init.call(de,ue),de}return le.prototype.getDefaultStyle=function(){return clone$3($.style)},le.prototype.getDefaultShape=function(){return clone$3($.shape)},le}(r);for(var oe in $)typeof $[oe]=="function"&&(V.prototype[oe]=$[oe]);return V},r.initDefaultProps=function(){var $=r.prototype;$.type="path",$.strokeContainThreshold=5,$.segmentIgnoreThreshold=0,$.subPixelOptimize=!1,$.autoBatch=!1,$.__dirty=REDRAW_BIT|STYLE_CHANGED_BIT|SHAPE_CHANGED_BIT}(),r}(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(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.hasStroke=function(){var $=this.style,V=$.stroke;return V!=null&&V!=="none"&&$.lineWidth>0},r.prototype.hasFill=function(){var $=this.style,V=$.fill;return V!=null&&V!=="none"},r.prototype.createStyle=function($){return createObject(DEFAULT_TSPAN_STYLE,$)},r.prototype.setBoundingRect=function($){this._rect=$},r.prototype.getBoundingRect=function(){var $=this.style;if(!this._rect){var V=$.text;V!=null?V+="":V="";var oe=getBoundingRect(V,$.font,$.textAlign,$.textBaseline);if(oe.x+=$.x||0,oe.y+=$.y||0,this.hasStroke()){var ie=$.lineWidth;oe.x-=ie/2,oe.y-=ie/2,oe.width+=ie,oe.height+=ie}this._rect=oe}return this._rect},r.initDefaultProps=function(){var $=r.prototype;$.dirtyRectTolerance=10}(),r}(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(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var ZRImage=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.createStyle=function($){return createObject(DEFAULT_IMAGE_STYLE,$)},r.prototype._getSize=function($){var V=this.style,oe=V[$];if(oe!=null)return oe;var ie=isImageLike(V.image)?V.image:this.__image;if(!ie)return 0;var le=$==="width"?"height":"width",ue=V[le];return ue==null?ie[$]:ie[$]/ie[le]*ue},r.prototype.getWidth=function(){return this._getSize("width")},r.prototype.getHeight=function(){return this._getSize("height")},r.prototype.getAnimationStyleProps=function(){return DEFAULT_IMAGE_ANIMATION_PROPS},r.prototype.getBoundingRect=function(){var $=this.style;return this._rect||(this._rect=new BoundingRect$1($.x||0,$.y||0,this.getWidth(),this.getHeight())),this._rect},r}(Displayable$1);ZRImage.prototype.type="image";const ZRImage$1=ZRImage;function buildPath$2(t,r){var $=r.x,V=r.y,oe=r.width,ie=r.height,le=r.r,ue,de,pe,he;oe<0&&($=$+oe,oe=-oe),ie<0&&(V=V+ie,ie=-ie),typeof le=="number"?ue=de=pe=he=le:le instanceof Array?le.length===1?ue=de=pe=he=le[0]:le.length===2?(ue=pe=le[0],de=he=le[1]):le.length===3?(ue=le[0],de=he=le[1],pe=le[2]):(ue=le[0],de=le[1],pe=le[2],he=le[3]):ue=de=pe=he=0;var _e;ue+de>oe&&(_e=ue+de,ue*=oe/_e,de*=oe/_e),pe+he>oe&&(_e=pe+he,pe*=oe/_e,he*=oe/_e),de+pe>ie&&(_e=de+pe,de*=ie/_e,pe*=ie/_e),ue+he>ie&&(_e=ue+he,ue*=ie/_e,he*=ie/_e),t.moveTo($+ue,V),t.lineTo($+oe-de,V),de!==0&&t.arc($+oe-de,V+de,de,-Math.PI/2,0),t.lineTo($+oe,V+ie-pe),pe!==0&&t.arc($+oe-pe,V+ie-pe,pe,0,Math.PI/2),t.lineTo($+he,V+ie),he!==0&&t.arc($+he,V+ie-he,he,Math.PI/2,Math.PI),t.lineTo($,V+ue),ue!==0&&t.arc($+ue,V+ue,ue,Math.PI,Math.PI*1.5)}var round=Math.round;function subPixelOptimizeLine$1(t,r,$){if(r){var V=r.x1,oe=r.x2,ie=r.y1,le=r.y2;t.x1=V,t.x2=oe,t.y1=ie,t.y2=le;var ue=$&&$.lineWidth;return ue&&(round(V*2)===round(oe*2)&&(t.x1=t.x2=subPixelOptimize$1(V,ue,!0)),round(ie*2)===round(le*2)&&(t.y1=t.y2=subPixelOptimize$1(ie,ue,!0))),t}}function subPixelOptimizeRect$1(t,r,$){if(r){var V=r.x,oe=r.y,ie=r.width,le=r.height;t.x=V,t.y=oe,t.width=ie,t.height=le;var ue=$&&$.lineWidth;return ue&&(t.x=subPixelOptimize$1(V,ue,!0),t.y=subPixelOptimize$1(oe,ue,!0),t.width=Math.max(subPixelOptimize$1(V+ie,ue,!1)-t.x,ie===0?0:1),t.height=Math.max(subPixelOptimize$1(oe+le,ue,!1)-t.y,le===0?0:1)),t}}function subPixelOptimize$1(t,r,$){if(!r)return t;var V=round(t*2);return(V+round(r))%2===0?V/2:(V+($?1:-1))/2}var RectShape=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),subPixelOptimizeOutputShape$1={},Rect$1=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultShape=function(){return new RectShape},r.prototype.buildPath=function($,V){var oe,ie,le,ue;if(this.subPixelOptimize){var de=subPixelOptimizeRect$1(subPixelOptimizeOutputShape$1,V,this.style);oe=de.x,ie=de.y,le=de.width,ue=de.height,de.r=V.r,V=de}else oe=V.x,ie=V.y,le=V.width,ue=V.height;V.r?buildPath$2($,V):$.rect(oe,ie,le,ue)},r.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},r}(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(t){__extends(r,t);function r($){var V=t.call(this)||this;return V.type="text",V._children=[],V._defaultStyle=DEFAULT_RICH_TEXT_COLOR,V.attr($),V}return r.prototype.childrenRef=function(){return this._children},r.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var $=0;$0,xn=$.width!=null&&($.overflow==="truncate"||$.overflow==="break"||$.overflow==="breakAll"),An=le.calculatedLineHeight,Mn=0;Mn<$e.length;Mn++){var Vn=this._getOrCreateChild(TSpan$1),Bn=Vn.createStyle();Vn.useStyle(Bn),Bn.text=$e[Mn],Bn.x=Lt,Bn.y=hn,qe&&(Bn.textAlign=qe),Bn.textBaseline="middle",Bn.opacity=$.opacity,Bn.strokeFirst=!0,Tn&&(Bn.shadowBlur=$.textShadowBlur||0,Bn.shadowColor=$.textShadowColor||"transparent",Bn.shadowOffsetX=$.textShadowOffsetX||0,Bn.shadowOffsetY=$.textShadowOffsetY||0),Bn.stroke=$n,Bn.fill=wn,$n&&(Bn.lineWidth=$.lineWidth||Sn,Bn.lineDash=$.lineDash,Bn.lineDashOffset=$.lineDashOffset||0),Bn.font=V,setSeparateFont(Bn,$),hn+=Ie,xn&&Vn.setBoundingRect(new BoundingRect$1(adjustTextX(Bn.x,$.width,Bn.textAlign),adjustTextY(Bn.y,An,Bn.textBaseline),_e,An))}},r.prototype._updateRichTexts=function(){var $=this.style,V=getStyleText($),oe=parseRichText(V,$),ie=oe.width,le=oe.outerWidth,ue=oe.outerHeight,de=$.padding,pe=$.x||0,he=$.y||0,_e=this._defaultStyle,$e=$.align||_e.align,Ie=$.verticalAlign||_e.verticalAlign,Ve=adjustTextX(pe,le,$e),Fe=adjustTextY(he,ue,Ie),Ue=Ve,qe=Fe;de&&(Ue+=de[3],qe+=de[0]);var Et=Ue+ie;needDrawBackground($)&&this._renderBackground($,$,Ve,Fe,le,ue);for(var Lt=!!$.backgroundColor,hn=0;hn=0&&(Mn=bn[An],Mn.align==="right");)this._placeToken(Mn,$,En,qe,xn,"right",Lt),wn-=Mn.width,xn-=Mn.width,An--;for(Tn+=(ie-(Tn-Ue)-(Et-xn)-wn)/2;$n<=An;)Mn=bn[$n],this._placeToken(Mn,$,En,qe,Tn+Mn.width/2,"center",Lt),Tn+=Mn.width,$n++;qe+=En}},r.prototype._placeToken=function($,V,oe,ie,le,ue,de){var pe=V.rich[$.styleName]||{};pe.text=$.text;var he=$.verticalAlign,_e=ie+oe/2;he==="top"?_e=ie+$.height/2:he==="bottom"&&(_e=ie+oe-$.height/2);var $e=!$.isLineHolder&&needDrawBackground(pe);$e&&this._renderBackground(pe,V,ue==="right"?le-$.width:ue==="center"?le-$.width/2:le,_e-$.height/2,$.width,$.height);var Ie=!!pe.backgroundColor,Ve=$.textPadding;Ve&&(le=getTextXForPadding(le,ue,Ve),_e-=$.height/2-Ve[0]-$.innerHeight/2);var Fe=this._getOrCreateChild(TSpan$1),Ue=Fe.createStyle();Fe.useStyle(Ue);var qe=this._defaultStyle,Et=!1,Lt=0,hn=getFill("fill"in pe?pe.fill:"fill"in V?V.fill:(Et=!0,qe.fill)),Cn=getStroke("stroke"in pe?pe.stroke:"stroke"in V?V.stroke:!Ie&&!de&&(!qe.autoStroke||Et)?(Lt=DEFAULT_STROKE_LINE_WIDTH,qe.stroke):null),bn=pe.textShadowBlur>0||V.textShadowBlur>0;Ue.text=$.text,Ue.x=le,Ue.y=_e,bn&&(Ue.shadowBlur=pe.textShadowBlur||V.textShadowBlur||0,Ue.shadowColor=pe.textShadowColor||V.textShadowColor||"transparent",Ue.shadowOffsetX=pe.textShadowOffsetX||V.textShadowOffsetX||0,Ue.shadowOffsetY=pe.textShadowOffsetY||V.textShadowOffsetY||0),Ue.textAlign=ue,Ue.textBaseline="middle",Ue.font=$.font||DEFAULT_FONT,Ue.opacity=retrieve3(pe.opacity,V.opacity,1),setSeparateFont(Ue,pe),Cn&&(Ue.lineWidth=retrieve3(pe.lineWidth,V.lineWidth,Lt),Ue.lineDash=retrieve2(pe.lineDash,V.lineDash),Ue.lineDashOffset=V.lineDashOffset||0,Ue.stroke=Cn),hn&&(Ue.fill=hn);var Sn=$.contentWidth,En=$.contentHeight;Fe.setBoundingRect(new BoundingRect$1(adjustTextX(Ue.x,Sn,Ue.textAlign),adjustTextY(Ue.y,En,Ue.textBaseline),Sn,En))},r.prototype._renderBackground=function($,V,oe,ie,le,ue){var de=$.backgroundColor,pe=$.borderWidth,he=$.borderColor,_e=de&&de.image,$e=de&&!_e,Ie=$.borderRadius,Ve=this,Fe,Ue;if($e||$.lineHeight||pe&&he){Fe=this._getOrCreateChild(Rect$2),Fe.useStyle(Fe.createStyle()),Fe.style.fill=null;var qe=Fe.shape;qe.x=oe,qe.y=ie,qe.width=le,qe.height=ue,qe.r=Ie,Fe.dirtyShape()}if($e){var Et=Fe.style;Et.fill=de||null,Et.fillOpacity=retrieve2($.fillOpacity,1)}else if(_e){Ue=this._getOrCreateChild(ZRImage$1),Ue.onload=function(){Ve.dirtyStyle()};var Lt=Ue.style;Lt.image=de.image,Lt.x=oe,Lt.y=ie,Lt.width=le,Lt.height=ue}if(pe&&he){var Et=Fe.style;Et.lineWidth=pe,Et.stroke=he,Et.strokeOpacity=retrieve2($.strokeOpacity,1),Et.lineDash=$.borderDash,Et.lineDashOffset=$.borderDashOffset||0,Fe.strokeContainThreshold=0,Fe.hasFill()&&Fe.hasStroke()&&(Et.strokeFirst=!0,Et.lineWidth*=2)}var hn=(Fe||Ue).style;hn.shadowBlur=$.shadowBlur||0,hn.shadowColor=$.shadowColor||"transparent",hn.shadowOffsetX=$.shadowOffsetX||0,hn.shadowOffsetY=$.shadowOffsetY||0,hn.opacity=retrieve3($.opacity,V.opacity,1)},r.makeFont=function($){var V="";return hasSeparateFont($)&&(V=[$.fontStyle,$.fontWeight,parseFontSize($.fontSize),$.fontFamily||"sans-serif"].join(" ")),V&&trim$1(V)||$.textFont||$.font},r}(Displayable$1),VALID_TEXT_ALIGN={left:!0,right:1,center:1},VALID_TEXT_VERTICAL_ALIGN={top:1,bottom:1,middle:1},FONT_PARTS=["fontStyle","fontWeight","fontSize","fontFamily"];function parseFontSize(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?DEFAULT_FONT_SIZE+"px":t+"px"}function setSeparateFont(t,r){for(var $=0;$=0,ie=!1;if(t instanceof Path$1){var le=getSavedStates(t),ue=oe&&le.selectFill||le.normalFill,de=oe&&le.selectStroke||le.normalStroke;if(hasFillOrStroke(ue)||hasFillOrStroke(de)){V=V||{};var pe=V.style||{};pe.fill==="inherit"?(ie=!0,V=extend({},V),pe=extend({},pe),pe.fill=ue):!hasFillOrStroke(pe.fill)&&hasFillOrStroke(ue)?(ie=!0,V=extend({},V),pe=extend({},pe),pe.fill=liftColor(ue)):!hasFillOrStroke(pe.stroke)&&hasFillOrStroke(de)&&(ie||(V=extend({},V),pe=extend({},pe)),pe.stroke=liftColor(de)),V.style=pe}}if(V&&V.z2==null){ie||(V=extend({},V));var he=t.z2EmphasisLift;V.z2=t.z2+(he??Z2_EMPHASIS_LIFT)}return V}function createSelectDefaultState(t,r,$){if($&&$.z2==null){$=extend({},$);var V=t.z2SelectLift;$.z2=t.z2+(V??Z2_SELECT_LIFT)}return $}function createBlurDefaultState(t,r,$){var V=indexOf(t.currentStates,r)>=0,oe=t.style.opacity,ie=V?null:getFromStateStyle(t,["opacity"],r,{opacity:1});$=$||{};var le=$.style||{};return le.opacity==null&&($=extend({},$),le=extend({opacity:V?oe:ie.opacity*.1},le),$.style=le),$}function elementStateProxy(t,r){var $=this.states[t];if(this.style){if(t==="emphasis")return createEmphasisDefaultState(this,t,r,$);if(t==="blur")return createBlurDefaultState(this,t,$);if(t==="select")return createSelectDefaultState(this,t,$)}return $}function setDefaultStateProxy(t){t.stateProxy=elementStateProxy;var r=t.getTextContent(),$=t.getTextGuideLine();r&&(r.stateProxy=elementStateProxy),$&&($.stateProxy=elementStateProxy)}function enterEmphasisWhenMouseOver(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasisWhenMouseOut(t,r){!shouldSilent(t,r)&&!t.__highByOuter&&traverseUpdateState(t,singleLeaveEmphasis)}function enterEmphasis(t,r){t.__highByOuter|=1<<(r||0),traverseUpdateState(t,singleEnterEmphasis)}function leaveEmphasis(t,r){!(t.__highByOuter&=~(1<<(r||0)))&&traverseUpdateState(t,singleLeaveEmphasis)}function enterBlur(t){traverseUpdateState(t,singleEnterBlur)}function leaveBlur(t){traverseUpdateState(t,singleLeaveBlur)}function enterSelect(t){traverseUpdateState(t,singleEnterSelect)}function leaveSelect(t){traverseUpdateState(t,singleLeaveSelect)}function shouldSilent(t,r){return t.__highDownSilentOnTouch&&r.zrByTouch}function allLeaveBlur(t){var r=t.getModel(),$=[],V=[];r.eachComponent(function(oe,ie){var le=getComponentStates(ie),ue=oe==="series",de=ue?t.getViewOfSeriesModel(ie):t.getViewOfComponentModel(ie);!ue&&V.push(de),le.isBlured&&(de.group.traverse(function(pe){singleLeaveBlur(pe)}),ue&&$.push(ie)),le.isBlured=!1}),each$c(V,function(oe){oe&&oe.toggleBlurSeries&&oe.toggleBlurSeries($,!1,r)})}function blurSeries(t,r,$,V){var oe=V.getModel();$=$||"coordinateSystem";function ie(pe,he){for(var _e=0;_e0){var ue={dataIndex:le,seriesIndex:$.seriesIndex};ie!=null&&(ue.dataType=ie),r.push(ue)}})}),r}function enableHoverEmphasis(t,r,$){setAsHighDownDispatcher(t,!0),traverseUpdateState(t,setDefaultStateProxy),enableHoverFocus(t,r,$)}function disableHoverEmphasis(t){setAsHighDownDispatcher(t,!1)}function toggleHoverEmphasis(t,r,$,V){V?disableHoverEmphasis(t):enableHoverEmphasis(t,r,$)}function enableHoverFocus(t,r,$){var V=getECData(t);r!=null?(V.focus=r,V.blurScope=$):V.focus&&(V.focus=null)}var OTHER_STATES=["emphasis","blur","select"],defaultStyleGetterMap={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function setStatesStylesFromModel(t,r,$,V){$=$||"itemStyle";for(var oe=0;oe1&&(le*=mathSqrt$1(Ve),ue*=mathSqrt$1(Ve));var Fe=(oe===ie?-1:1)*mathSqrt$1((le*le*(ue*ue)-le*le*(Ie*Ie)-ue*ue*($e*$e))/(le*le*(Ie*Ie)+ue*ue*($e*$e)))||0,Ue=Fe*le*Ie/ue,qe=Fe*-ue*$e/le,Et=(t+$)/2+mathCos$1(_e)*Ue-mathSin$1(_e)*qe,Lt=(r+V)/2+mathSin$1(_e)*Ue+mathCos$1(_e)*qe,hn=vAngle([1,0],[($e-Ue)/le,(Ie-qe)/ue]),Cn=[($e-Ue)/le,(Ie-qe)/ue],bn=[(-1*$e-Ue)/le,(-1*Ie-qe)/ue],Sn=vAngle(Cn,bn);if(vRatio(Cn,bn)<=-1&&(Sn=PI$3),vRatio(Cn,bn)>=1&&(Sn=0),Sn<0){var En=Math.round(Sn/PI$3*1e6)/1e6;Sn=PI$3*2+En%2*PI$3}he.addData(pe,Et,Lt,le,ue,hn,Sn,_e,ie)}var commandReg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,numberReg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function createPathProxyFromString(t){var r=new PathProxy$1;if(!t)return r;var $=0,V=0,oe=$,ie=V,le,ue=PathProxy$1.CMD,de=t.match(commandReg);if(!de)return r;for(var pe=0;peMn*Mn+Vn*Vn&&(En=$n,wn=Tn),{cx:En,cy:wn,x0:-he,y0:-_e,x1:En*(oe/Cn-1),y1:wn*(oe/Cn-1)}}function normalizeCornerRadius(t){var r;if(isArray$1(t)){var $=t.length;if(!$)return t;$===1?r=[t[0],t[0],0,0]:$===2?r=[t[0],t[0],t[1],t[1]]:$===3?r=t.concat(t[2]):r=t}else r=[t,t,t,t];return r}function buildPath$1(t,r){var $,V=mathMax$5(r.r,0),oe=mathMax$5(r.r0||0,0),ie=V>0,le=oe>0;if(!(!ie&&!le)){if(ie||(V=oe,oe=0),oe>V){var ue=V;V=oe,oe=ue}var de=r.startAngle,pe=r.endAngle;if(!(isNaN(de)||isNaN(pe))){var he=r.cx,_e=r.cy,$e=!!r.clockwise,Ie=mathAbs(pe-de),Ve=Ie>PI2$1&&Ie%PI2$1;if(Ve>e&&(Ie=Ve),!(V>e))t.moveTo(he,_e);else if(Ie>PI2$1-e)t.moveTo(he+V*mathCos(de),_e+V*mathSin(de)),t.arc(he,_e,V,de,pe,!$e),oe>e&&(t.moveTo(he+oe*mathCos(pe),_e+oe*mathSin(pe)),t.arc(he,_e,oe,pe,de,$e));else{var Fe=void 0,Ue=void 0,qe=void 0,Et=void 0,Lt=void 0,hn=void 0,Cn=void 0,bn=void 0,Sn=void 0,En=void 0,wn=void 0,$n=void 0,Tn=void 0,xn=void 0,An=void 0,Mn=void 0,Vn=V*mathCos(de),Bn=V*mathSin(de),Dn=oe*mathCos(pe),Ln=oe*mathSin(pe),Pn=Ie>e;if(Pn){var Fn=r.cornerRadius;Fn&&($=normalizeCornerRadius(Fn),Fe=$[0],Ue=$[1],qe=$[2],Et=$[3]);var Un=mathAbs(V-oe)/2;if(Lt=mathMin$5(Un,qe),hn=mathMin$5(Un,Et),Cn=mathMin$5(Un,Fe),bn=mathMin$5(Un,Ue),wn=Sn=mathMax$5(Lt,hn),$n=En=mathMax$5(Cn,bn),(Sn>e||En>e)&&(Tn=V*mathCos(pe),xn=V*mathSin(pe),An=oe*mathCos(de),Mn=oe*mathSin(de),Iee){var er=mathMin$5(qe,wn),lr=mathMin$5(Et,wn),sr=computeCornerTangents(An,Mn,Vn,Bn,V,er,$e),zn=computeCornerTangents(Tn,xn,Dn,Ln,V,lr,$e);t.moveTo(he+sr.cx+sr.x0,_e+sr.cy+sr.y0),wn0&&t.arc(he+sr.cx,_e+sr.cy,er,mathATan2(sr.y0,sr.x0),mathATan2(sr.y1,sr.x1),!$e),t.arc(he,_e,V,mathATan2(sr.cy+sr.y1,sr.cx+sr.x1),mathATan2(zn.cy+zn.y1,zn.cx+zn.x1),!$e),lr>0&&t.arc(he+zn.cx,_e+zn.cy,lr,mathATan2(zn.y1,zn.x1),mathATan2(zn.y0,zn.x0),!$e))}else t.moveTo(he+Vn,_e+Bn),t.arc(he,_e,V,de,pe,!$e);if(!(oe>e)||!Pn)t.lineTo(he+Dn,_e+Ln);else if($n>e){var er=mathMin$5(Fe,$n),lr=mathMin$5(Ue,$n),sr=computeCornerTangents(Dn,Ln,Tn,xn,oe,-lr,$e),zn=computeCornerTangents(Vn,Bn,An,Mn,oe,-er,$e);t.lineTo(he+sr.cx+sr.x0,_e+sr.cy+sr.y0),$n0&&t.arc(he+sr.cx,_e+sr.cy,lr,mathATan2(sr.y0,sr.x0),mathATan2(sr.y1,sr.x1),!$e),t.arc(he,_e,oe,mathATan2(sr.cy+sr.y1,sr.cx+sr.x1),mathATan2(zn.cy+zn.y1,zn.cx+zn.x1),$e),er>0&&t.arc(he+zn.cx,_e+zn.cy,er,mathATan2(zn.y1,zn.x1),mathATan2(zn.y0,zn.x0),!$e))}else t.lineTo(he+Dn,_e+Ln),t.arc(he,_e,oe,pe,de,$e)}t.closePath()}}}var SectorShape=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return t}(),Sector=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultShape=function(){return new SectorShape},r.prototype.buildPath=function($,V){buildPath$1($,V)},r.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},r}(Path$1);Sector.prototype.type="sector";const Sector$1=Sector;var RingShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),Ring=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultShape=function(){return new RingShape},r.prototype.buildPath=function($,V){var oe=V.cx,ie=V.cy,le=Math.PI*2;$.moveTo(oe+V.r,ie),$.arc(oe,ie,V.r,0,le,!1),$.moveTo(oe+V.r0,ie),$.arc(oe,ie,V.r0,0,le,!0)},r}(Path$1);Ring.prototype.type="ring";const Ring$1=Ring;function smoothBezier(t,r,$,V){var oe=[],ie=[],le=[],ue=[],de,pe,he,_e;if(V){he=[1/0,1/0],_e=[-1/0,-1/0];for(var $e=0,Ie=t.length;$e=2){if(V){var ie=smoothBezier(oe,V,$,r.smoothConstraint);t.moveTo(oe[0][0],oe[0][1]);for(var le=oe.length,ue=0;ue<($?le:le-1);ue++){var de=ie[ue*2],pe=ie[ue*2+1],he=oe[(ue+1)%le];t.bezierCurveTo(de[0],de[1],pe[0],pe[1],he[0],he[1])}}else{t.moveTo(oe[0][0],oe[0][1]);for(var ue=1,_e=oe.length;ue<_e;ue++)t.lineTo(oe[ue][0],oe[ue][1])}$&&t.closePath()}}var PolygonShape=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),Polygon=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultShape=function(){return new PolygonShape},r.prototype.buildPath=function($,V){buildPath($,V,!0)},r}(Path$1);Polygon.prototype.type="polygon";const Polygon$1=Polygon;var PolylineShape=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Polyline=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new PolylineShape},r.prototype.buildPath=function($,V){buildPath($,V,!1)},r}(Path$1);Polyline.prototype.type="polyline";const Polyline$1=Polyline;var subPixelOptimizeOutputShape={},LineShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),Line=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new LineShape},r.prototype.buildPath=function($,V){var oe,ie,le,ue;if(this.subPixelOptimize){var de=subPixelOptimizeLine$1(subPixelOptimizeOutputShape,V,this.style);oe=de.x1,ie=de.y1,le=de.x2,ue=de.y2}else oe=V.x1,ie=V.y1,le=V.x2,ue=V.y2;var pe=V.percent;pe!==0&&($.moveTo(oe,ie),pe<1&&(le=oe*(1-pe)+le*pe,ue=ie*(1-pe)+ue*pe),$.lineTo(le,ue))},r.prototype.pointAt=function($){var V=this.shape;return[V.x1*(1-$)+V.x2*$,V.y1*(1-$)+V.y2*$]},r}(Path$1);Line.prototype.type="line";const Line$1=Line;var out=[],BezierCurveShape=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function someVectorAt(t,r,$){var V=t.cpx2,oe=t.cpy2;return V!=null||oe!=null?[($?cubicDerivativeAt:cubicAt)(t.x1,t.cpx1,t.cpx2,t.x2,r),($?cubicDerivativeAt:cubicAt)(t.y1,t.cpy1,t.cpy2,t.y2,r)]:[($?quadraticDerivativeAt:quadraticAt)(t.x1,t.cpx1,t.x2,r),($?quadraticDerivativeAt:quadraticAt)(t.y1,t.cpy1,t.y2,r)]}var BezierCurve=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new BezierCurveShape},r.prototype.buildPath=function($,V){var oe=V.x1,ie=V.y1,le=V.x2,ue=V.y2,de=V.cpx1,pe=V.cpy1,he=V.cpx2,_e=V.cpy2,$e=V.percent;$e!==0&&($.moveTo(oe,ie),he==null||_e==null?($e<1&&(quadraticSubdivide(oe,de,le,$e,out),de=out[1],le=out[2],quadraticSubdivide(ie,pe,ue,$e,out),pe=out[1],ue=out[2]),$.quadraticCurveTo(de,pe,le,ue)):($e<1&&(cubicSubdivide(oe,de,he,le,$e,out),de=out[1],he=out[2],le=out[3],cubicSubdivide(ie,pe,_e,ue,$e,out),pe=out[1],_e=out[2],ue=out[3]),$.bezierCurveTo(de,pe,he,_e,le,ue)))},r.prototype.pointAt=function($){return someVectorAt(this.shape,$,!1)},r.prototype.tangentAt=function($){var V=someVectorAt(this.shape,$,!0);return normalize$1(V,V)},r}(Path$1);BezierCurve.prototype.type="bezier-curve";const BezierCurve$1=BezierCurve;var ArcShape=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Arc=function(t){__extends(r,t);function r($){return t.call(this,$)||this}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ArcShape},r.prototype.buildPath=function($,V){var oe=V.cx,ie=V.cy,le=Math.max(V.r,0),ue=V.startAngle,de=V.endAngle,pe=V.clockwise,he=Math.cos(ue),_e=Math.sin(ue);$.moveTo(he*le+oe,_e*le+ie),$.arc(oe,ie,le,ue,de,!pe)},r}(Path$1);Arc.prototype.type="arc";const Arc$1=Arc;var CompoundPath=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type="compound",$}return r.prototype._updatePathDirty=function(){for(var $=this.shape.paths,V=this.shapeChanged(),oe=0;oe<$.length;oe++)V=V||$[oe].shapeChanged();V&&this.dirtyShape()},r.prototype.beforeBrush=function(){this._updatePathDirty();for(var $=this.shape.paths||[],V=this.getGlobalScale(),oe=0;oe<$.length;oe++)$[oe].path||$[oe].createPathProxy(),$[oe].path.setScale(V[0],V[1],$[oe].segmentIgnoreThreshold)},r.prototype.buildPath=function($,V){for(var oe=V.paths||[],ie=0;ieextent2[1]){if(ue=!1,ie)return ue;var he=Math.abs(extent2[0]-extent[1]),_e=Math.abs(extent[0]-extent2[1]);Math.min(he,_e)>oe.len()&&(he<_e?Point$1.scale(oe,pe,-he*le):Point$1.scale(oe,pe,_e*le))}else if(V){var he=Math.abs(extent2[0]-extent[1]),_e=Math.abs(extent[0]-extent2[1]);Math.min(he,_e)0){var _e=he.duration,$e=he.delay,Ie=he.easing,Ve={duration:_e,delay:$e||0,easing:Ie,done:ie,force:!!ie||!!le,setToFinal:!pe,scope:t,during:le};ue?r.animateFrom($,Ve):r.animateTo($,Ve)}else r.stopAnimation(),!ue&&r.attr($),le&&le(1),ie&&ie()}function updateProps$1(t,r,$,V,oe,ie){animateOrSetProps("update",t,r,$,V,oe,ie)}function initProps(t,r,$,V,oe,ie){animateOrSetProps("enter",t,r,$,V,oe,ie)}function isElementRemoved(t){if(!t.__zr)return!0;for(var r=0;rMath.abs(ie[1])?ie[0]>0?"right":"left":ie[1]>0?"bottom":"top"}function isNotGroup(t){return!t.isGroup}function isPath(t){return t.shape!=null}function groupTransition(t,r,$){if(!t||!r)return;function V(le){var ue={};return le.traverse(function(de){isNotGroup(de)&&de.anid&&(ue[de.anid]=de)}),ue}function oe(le){var ue={x:le.x,y:le.y,rotation:le.rotation};return isPath(le)&&(ue.shape=extend({},le.shape)),ue}var ie=V(t);r.traverse(function(le){if(isNotGroup(le)&&le.anid){var ue=ie[le.anid];if(ue){var de=oe(le);le.attr(oe(ue)),updateProps$1(le,de,$,getECData(le).dataIndex)}}})}function clipPointsByRect(t,r){return map$2(t,function($){var V=$[0];V=mathMax$4(V,r.x),V=mathMin$4(V,r.x+r.width);var oe=$[1];return oe=mathMax$4(oe,r.y),oe=mathMin$4(oe,r.y+r.height),[V,oe]})}function clipRectByRect(t,r){var $=mathMax$4(t.x,r.x),V=mathMin$4(t.x+t.width,r.x+r.width),oe=mathMax$4(t.y,r.y),ie=mathMin$4(t.y+t.height,r.y+r.height);if(V>=$&&ie>=oe)return{x:$,y:oe,width:V-$,height:ie-oe}}function createIcon(t,r,$){var V=extend({rectHover:!0},r),oe=V.style={strokeNoScale:!0};if($=$||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(oe.image=t.slice(8),defaults(oe,$),new ZRImage$1(V)):makePath(t.replace("path://",""),V,$,"center")}function linePolygonIntersect(t,r,$,V,oe){for(var ie=0,le=oe[oe.length-1];ie1)return!1;var Ue=crossProduct2d(Ie,Ve,he,_e)/$e;return!(Ue<0||Ue>1)}function crossProduct2d(t,r,$,V){return t*V-$*r}function nearZero(t){return t<=1e-6&&t>=-1e-6}function setTooltipConfig(t){var r=t.itemTooltipOption,$=t.componentModel,V=t.itemName,oe=isString(r)?{formatter:r}:r,ie=$.mainType,le=$.componentIndex,ue={componentType:ie,name:V,$vars:["name"]};ue[ie+"Index"]=le;var de=t.formatterParamsExtra;de&&each$c(keys(de),function(he){hasOwn(ue,he)||(ue[he]=de[he],ue.$vars.push(he))});var pe=getECData(t.el);pe.componentMainType=ie,pe.componentIndex=le,pe.tooltipConfig={name:V,option:defaults({content:V,formatterParams:ue},oe)}}function traverseElement(t,r){var $;t.isGroup&&($=r(t)),$||t.traverse(r)}function traverseElements(t,r){if(t)if(isArray$1(t))for(var $=0;$=0&&ue.push(de)}),ue}}function inheritDefaultOption(t,r){return merge(merge({},t,!0),r,!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 t=(document.documentElement.lang||navigator.language||navigator.browserLanguage).toUpperCase();return t.indexOf(LOCALE_ZH)>-1?LOCALE_ZH:DEFAULT_LOCALE}():DEFAULT_LOCALE;function registerLocale(t,r){t=t.toUpperCase(),localeModels[t]=new Model$1(r),localeStorage[t]=r}function createLocaleObject(t){if(isString(t)){var r=localeStorage[t.toUpperCase()]||{};return t===LOCALE_ZH||t===LOCALE_EN?clone$3(r):merge(clone$3(r),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}else return merge(clone$3(t),clone$3(localeStorage[DEFAULT_LOCALE]),!1)}function getLocaleModel(t){return localeModels[t]}function getDefaultLocaleModel(){return localeModels[DEFAULT_LOCALE]}registerLocale(LOCALE_EN,langEN);registerLocale(LOCALE_ZH,langZH);var ONE_SECOND=1e3,ONE_MINUTE=ONE_SECOND*60,ONE_HOUR=ONE_MINUTE*60,ONE_DAY=ONE_HOUR*24,ONE_YEAR=ONE_DAY*365,defaultLeveledFormatter={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fullDayFormatter="{yyyy}-{MM}-{dd}",fullLeveledFormatter={year:"{yyyy}",month:"{yyyy}-{MM}",day:fullDayFormatter,hour:fullDayFormatter+" "+defaultLeveledFormatter.hour,minute:fullDayFormatter+" "+defaultLeveledFormatter.minute,second:fullDayFormatter+" "+defaultLeveledFormatter.second,millisecond:defaultLeveledFormatter.none},primaryTimeUnits=["year","month","day","hour","minute","second","millisecond"],timeUnits=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function pad(t,r){return t+="","0000".substr(0,r-t.length)+t}function getPrimaryTimeUnit(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function isPrimaryTimeUnit(t){return t===getPrimaryTimeUnit(t)}function getDefaultFormatPrecisionOfInterval(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function format$1(t,r,$,V){var oe=parseDate(t),ie=oe[fullYearGetterName($)](),le=oe[monthGetterName($)]()+1,ue=Math.floor((le-1)/3)+1,de=oe[dateGetterName($)](),pe=oe["get"+($?"UTC":"")+"Day"](),he=oe[hoursGetterName($)](),_e=(he-1)%12+1,$e=oe[minutesGetterName($)](),Ie=oe[secondsGetterName($)](),Ve=oe[millisecondsGetterName($)](),Fe=V instanceof Model$1?V:getLocaleModel(V||SYSTEM_LANG)||getDefaultLocaleModel(),Ue=Fe.getModel("time"),qe=Ue.get("month"),Et=Ue.get("monthAbbr"),Lt=Ue.get("dayOfWeek"),hn=Ue.get("dayOfWeekAbbr");return(r||"").replace(/{yyyy}/g,ie+"").replace(/{yy}/g,pad(ie%100+"",2)).replace(/{Q}/g,ue+"").replace(/{MMMM}/g,qe[le-1]).replace(/{MMM}/g,Et[le-1]).replace(/{MM}/g,pad(le,2)).replace(/{M}/g,le+"").replace(/{dd}/g,pad(de,2)).replace(/{d}/g,de+"").replace(/{eeee}/g,Lt[pe]).replace(/{ee}/g,hn[pe]).replace(/{e}/g,pe+"").replace(/{HH}/g,pad(he,2)).replace(/{H}/g,he+"").replace(/{hh}/g,pad(_e+"",2)).replace(/{h}/g,_e+"").replace(/{mm}/g,pad($e,2)).replace(/{m}/g,$e+"").replace(/{ss}/g,pad(Ie,2)).replace(/{s}/g,Ie+"").replace(/{SSS}/g,pad(Ve,3)).replace(/{S}/g,Ve+"")}function leveledFormat(t,r,$,V,oe){var ie=null;if(isString($))ie=$;else if(isFunction($))ie=$(t.value,r,{level:t.level});else{var le=extend({},defaultLeveledFormatter);if(t.level>0)for(var ue=0;ue=0;--ue)if(de[pe]){ie=de[pe];break}ie=ie||le.none}if(isArray$1(ie)){var _e=t.level==null?0:t.level>=0?t.level:ie.length+t.level;_e=Math.min(_e,ie.length-1),ie=ie[_e]}}return format$1(new Date(t.value),ie,oe,V)}function getUnitFromValue(t,r){var $=parseDate(t),V=$[monthGetterName(r)]()+1,oe=$[dateGetterName(r)](),ie=$[hoursGetterName(r)](),le=$[minutesGetterName(r)](),ue=$[secondsGetterName(r)](),de=$[millisecondsGetterName(r)](),pe=de===0,he=pe&&ue===0,_e=he&&le===0,$e=_e&&ie===0,Ie=$e&&oe===1,Ve=Ie&&V===1;return Ve?"year":Ie?"month":$e?"day":_e?"hour":he?"minute":pe?"second":"millisecond"}function getUnitValue(t,r,$){var V=isNumber(t)?parseDate(t):t;switch(r=r||getUnitFromValue(t,$),r){case"year":return V[fullYearGetterName($)]();case"half-year":return V[monthGetterName($)]()>=6?1:0;case"quarter":return Math.floor((V[monthGetterName($)]()+1)/4);case"month":return V[monthGetterName($)]();case"day":return V[dateGetterName($)]();case"half-day":return V[hoursGetterName($)]()/24;case"hour":return V[hoursGetterName($)]();case"minute":return V[minutesGetterName($)]();case"second":return V[secondsGetterName($)]();case"millisecond":return V[millisecondsGetterName($)]()}}function fullYearGetterName(t){return t?"getUTCFullYear":"getFullYear"}function monthGetterName(t){return t?"getUTCMonth":"getMonth"}function dateGetterName(t){return t?"getUTCDate":"getDate"}function hoursGetterName(t){return t?"getUTCHours":"getHours"}function minutesGetterName(t){return t?"getUTCMinutes":"getMinutes"}function secondsGetterName(t){return t?"getUTCSeconds":"getSeconds"}function millisecondsGetterName(t){return t?"getUTCMilliseconds":"getMilliseconds"}function fullYearSetterName(t){return t?"setUTCFullYear":"setFullYear"}function monthSetterName(t){return t?"setUTCMonth":"setMonth"}function dateSetterName(t){return t?"setUTCDate":"setDate"}function hoursSetterName(t){return t?"setUTCHours":"setHours"}function minutesSetterName(t){return t?"setUTCMinutes":"setMinutes"}function secondsSetterName(t){return t?"setUTCSeconds":"setSeconds"}function millisecondsSetterName(t){return t?"setUTCMilliseconds":"setMilliseconds"}function getTextRect(t,r,$,V,oe,ie,le,ue){var de=new ZRText$1({style:{text:t,font:r,align:$,verticalAlign:V,padding:oe,rich:ie,overflow:le?"truncate":null,lineHeight:ue}});return de.getBoundingRect()}function addCommas(t){if(!isNumeric(t))return isString(t)?t:"-";var r=(t+"").split(".");return r[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(r.length>1?"."+r[1]:"")}function toCamelCase(t,r){return t=(t||"").toLowerCase().replace(/-(.)/g,function($,V){return V.toUpperCase()}),r&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var normalizeCssArray=normalizeCssArray$1;function makeValueReadable(t,r,$){var V="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function oe(he){return he&&trim$1(he)?he:"-"}function ie(he){return!!(he!=null&&!isNaN(he)&&isFinite(he))}var le=r==="time",ue=t instanceof Date;if(le||ue){var de=le?parseDate(t):t;if(isNaN(+de)){if(ue)return"-"}else return format$1(de,V,$)}if(r==="ordinal")return isStringSafe(t)?oe(t):isNumber(t)&&ie(t)?t+"":"-";var pe=numericToNumber(t);return ie(pe)?addCommas(pe):isStringSafe(t)?oe(t):typeof t=="boolean"?t+"":"-"}var TPL_VAR_ALIAS=["a","b","c","d","e","f","g"],wrapVar=function(t,r){return"{"+t+(r??"")+"}"};function formatTpl(t,r,$){isArray$1(r)||(r=[r]);var V=r.length;if(!V)return"";for(var oe=r[0].$vars||[],ie=0;ie':'';var le=$.markerId||"markerX";return{renderMode:ie,content:"{"+le+"|} ",style:oe==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:V}:{width:10,height:10,borderRadius:5,backgroundColor:V}}}function formatTime(t,r,$){(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd yyyy`);var V=parseDate(r),oe=$?"getUTC":"get",ie=V[oe+"FullYear"](),le=V[oe+"Month"]()+1,ue=V[oe+"Date"](),de=V[oe+"Hours"](),pe=V[oe+"Minutes"](),he=V[oe+"Seconds"](),_e=V[oe+"Milliseconds"]();return t=t.replace("MM",pad(le,2)).replace("M",le).replace("yyyy",ie).replace("yy",pad(ie%100+"",2)).replace("dd",pad(ue,2)).replace("d",ue).replace("hh",pad(de,2)).replace("h",de).replace("mm",pad(pe,2)).replace("m",pe).replace("ss",pad(he,2)).replace("s",he).replace("SSS",pad(_e,3)),t}function capitalFirst(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function convertToColorString(t,r){return r=r||"transparent",isString(t)?t:isObject$3(t)&&t.colorStops&&(t.colorStops[0]||{}).color||r}function windowOpen(t,r){if(r==="_blank"||r==="blank"){var $=window.open();$.opener=null,$.location.href=t}else window.open(t,r)}var each$b=each$c,LOCATION_PARAMS=["left","right","top","bottom","width","height"],HV_NAMES=[["width","left","right"],["height","top","bottom"]];function boxLayout(t,r,$,V,oe){var ie=0,le=0;V==null&&(V=1/0),oe==null&&(oe=1/0);var ue=0;r.eachChild(function(de,pe){var he=de.getBoundingRect(),_e=r.childAt(pe+1),$e=_e&&_e.getBoundingRect(),Ie,Ve;if(t==="horizontal"){var Fe=he.width+($e?-$e.x+he.x:0);Ie=ie+Fe,Ie>V||de.newline?(ie=0,Ie=Fe,le+=ue+$,ue=he.height):ue=Math.max(ue,he.height)}else{var Ue=he.height+($e?-$e.y+he.y:0);Ve=le+Ue,Ve>oe||de.newline?(ie+=ue+$,le=0,Ve=Ue,ue=he.width):ue=Math.max(ue,he.width)}de.newline||(de.x=ie,de.y=le,de.markRedraw(),t==="horizontal"?ie=Ie+$:le=Ve+$)})}var box=boxLayout;curry$1(boxLayout,"vertical");curry$1(boxLayout,"horizontal");function getLayoutRect(t,r,$){$=normalizeCssArray($||0);var V=r.width,oe=r.height,ie=parsePercent(t.left,V),le=parsePercent(t.top,oe),ue=parsePercent(t.right,V),de=parsePercent(t.bottom,oe),pe=parsePercent(t.width,V),he=parsePercent(t.height,oe),_e=$[2]+$[0],$e=$[1]+$[3],Ie=t.aspect;switch(isNaN(pe)&&(pe=V-ue-$e-ie),isNaN(he)&&(he=oe-de-_e-le),Ie!=null&&(isNaN(pe)&&isNaN(he)&&(Ie>V/oe?pe=V*.8:he=oe*.8),isNaN(pe)&&(pe=Ie*he),isNaN(he)&&(he=pe/Ie)),isNaN(ie)&&(ie=V-ue-pe-$e),isNaN(le)&&(le=oe-de-he-_e),t.left||t.right){case"center":ie=V/2-pe/2-$[3];break;case"right":ie=V-pe-$e;break}switch(t.top||t.bottom){case"middle":case"center":le=oe/2-he/2-$[0];break;case"bottom":le=oe-he-_e;break}ie=ie||0,le=le||0,isNaN(pe)&&(pe=V-$e-ie-(ue||0)),isNaN(he)&&(he=oe-_e-le-(de||0));var Ve=new BoundingRect$1(ie+$[3],le+$[0],pe,he);return Ve.margin=$,Ve}function positionElement(t,r,$,V,oe,ie){var le=!oe||!oe.hv||oe.hv[0],ue=!oe||!oe.hv||oe.hv[1],de=oe&&oe.boundingMode||"all";if(ie=ie||t,ie.x=t.x,ie.y=t.y,!le&&!ue)return!1;var pe;if(de==="raw")pe=t.type==="group"?new BoundingRect$1(0,0,+r.width||0,+r.height||0):t.getBoundingRect();else if(pe=t.getBoundingRect(),t.needLocalTransform()){var he=t.getLocalTransform();pe=pe.clone(),pe.applyTransform(he)}var _e=getLayoutRect(defaults({width:pe.width,height:pe.height},r),$,V),$e=le?_e.x-pe.x:0,Ie=ue?_e.y-pe.y:0;return de==="raw"?(ie.x=$e,ie.y=Ie):(ie.x+=$e,ie.y+=Ie),ie===t&&t.markRedraw(),!0}function fetchLayoutMode(t){var r=t.layoutMode||t.constructor.layoutMode;return isObject$3(r)?r:r?{type:r}:null}function mergeLayoutParam(t,r,$){var V=$&&$.ignoreSize;!isArray$1(V)&&(V=[V,V]);var oe=le(HV_NAMES[0],0),ie=le(HV_NAMES[1],1);pe(HV_NAMES[0],t,oe),pe(HV_NAMES[1],t,ie);function le(he,_e){var $e={},Ie=0,Ve={},Fe=0,Ue=2;if(each$b(he,function(Lt){Ve[Lt]=t[Lt]}),each$b(he,function(Lt){ue(r,Lt)&&($e[Lt]=Ve[Lt]=r[Lt]),de($e,Lt)&&Ie++,de(Ve,Lt)&&Fe++}),V[_e])return de(r,he[1])?Ve[he[2]]=null:de(r,he[2])&&(Ve[he[1]]=null),Ve;if(Fe===Ue||!Ie)return Ve;if(Ie>=Ue)return $e;for(var qe=0;qe=0;de--)ue=merge(ue,oe[de],!0);V.defaultOption=ue}return V.defaultOption},r.prototype.getReferringComponents=function($,V){var oe=$+"Index",ie=$+"Id";return queryReferringComponents(this.ecModel,$,{index:this.get(oe,!0),id:this.get(ie,!0)},V)},r.prototype.getBoxLayoutParams=function(){var $=this;return{left:$.get("left"),top:$.get("top"),right:$.get("right"),bottom:$.get("bottom"),width:$.get("width"),height:$.get("height")}},r.prototype.getZLevelKey=function(){return""},r.prototype.setZLevel=function($){this.option.zlevel=$},r.protoInitialize=function(){var $=r.prototype;$.type="component",$.id="",$.name="",$.mainType="",$.subType="",$.componentIndex=0}(),r}(Model$1);mountExtend(ComponentModel,Model$1);enableClassManagement(ComponentModel);enableSubTypeDefaulter(ComponentModel);enableTopologicalTravel(ComponentModel,getDependencies);function getDependencies(t){var r=[];return each$c(ComponentModel.getClassesByMainType(t),function($){r=r.concat($.dependencies||$.prototype.dependencies||[])}),r=map$2(r,function($){return parseClassType($).main}),t!=="dataset"&&indexOf(r,"dataset")<=0&&r.unshift("dataset"),r}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(t){innerGlobalModel(t).datasetMap=createHashMap()}function makeSeriesEncodeForAxisCoordSys(t,r,$){var V={},oe=querySeriesUpstreamDatasetModel(r);if(!oe||!t)return V;var ie=[],le=[],ue=r.ecModel,de=innerGlobalModel(ue).datasetMap,pe=oe.uid+"_"+$.seriesLayoutBy,he,_e;t=t.slice(),each$c(t,function(Fe,Ue){var qe=isObject$3(Fe)?Fe:t[Ue]={name:Fe};qe.type==="ordinal"&&he==null&&(he=Ue,_e=Ve(qe)),V[qe.name]=[]});var $e=de.get(pe)||de.set(pe,{categoryWayDim:_e,valueWayDim:0});each$c(t,function(Fe,Ue){var qe=Fe.name,Et=Ve(Fe);if(he==null){var Lt=$e.valueWayDim;Ie(V[qe],Lt,Et),Ie(le,Lt,Et),$e.valueWayDim+=Et}else if(he===Ue)Ie(V[qe],0,Et),Ie(ie,0,Et);else{var Lt=$e.categoryWayDim;Ie(V[qe],Lt,Et),Ie(le,Lt,Et),$e.categoryWayDim+=Et}});function Ie(Fe,Ue,qe){for(var Et=0;Etr)return t[V];return t[$-1]}function getFromPalette(t,r,$,V,oe,ie,le){ie=ie||t;var ue=r(ie),de=ue.paletteIdx||0,pe=ue.paletteNameMap=ue.paletteNameMap||{};if(pe.hasOwnProperty(oe))return pe[oe];var he=le==null||!V?$:getNearestPalette(V,le);if(he=he||$,!(!he||!he.length)){var _e=he[de];return oe&&(pe[oe]=_e),ue.paletteIdx=(de+1)%he.length,_e}}function clearPalette(t,r){r(t).paletteIdx=0,r(t).paletteNameMap={}}var reCreateSeriesIndices,assertSeriesInitialized,initBase,OPTION_INNER_KEY="\0_ec_inner",OPTION_INNER_VALUE=1,GlobalModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function($,V,oe,ie,le,ue){ie=ie||{},this.option=null,this._theme=new Model$1(ie),this._locale=new Model$1(le),this._optionManager=ue},r.prototype.setOption=function($,V,oe){var ie=normalizeSetOptionInput(V);this._optionManager.setOption($,oe,ie),this._resetOption(null,ie)},r.prototype.resetOption=function($,V){return this._resetOption($,normalizeSetOptionInput(V))},r.prototype._resetOption=function($,V){var oe=!1,ie=this._optionManager;if(!$||$==="recreate"){var le=ie.mountOption($==="recreate");!this.option||$==="recreate"?initBase(this,le):(this.restoreData(),this._mergeOption(le,V)),oe=!0}if(($==="timeline"||$==="media")&&this.restoreData(),!$||$==="recreate"||$==="timeline"){var ue=ie.getTimelineOption(this);ue&&(oe=!0,this._mergeOption(ue,V))}if(!$||$==="recreate"||$==="media"){var de=ie.getMediaOption(this);de.length&&each$c(de,function(pe){oe=!0,this._mergeOption(pe,V)},this)}return oe},r.prototype.mergeOption=function($){this._mergeOption($,null)},r.prototype._mergeOption=function($,V){var oe=this.option,ie=this._componentsMap,le=this._componentsCount,ue=[],de=createHashMap(),pe=V&&V.replaceMergeMainTypeMap;resetSourceDefaulter(this),each$c($,function(_e,$e){_e!=null&&(ComponentModel$1.hasClass($e)?$e&&(ue.push($e),de.set($e,!0)):oe[$e]=oe[$e]==null?clone$3(_e):merge(oe[$e],_e,!0))}),pe&&pe.each(function(_e,$e){ComponentModel$1.hasClass($e)&&!de.get($e)&&(ue.push($e),de.set($e,!0))}),ComponentModel$1.topologicalTravel(ue,ComponentModel$1.getAllClassMainTypes(),he,this);function he(_e){var $e=concatInternalOptions(this,_e,normalizeToArray($[_e])),Ie=ie.get(_e),Ve=Ie?pe&&pe.get(_e)?"replaceMerge":"normalMerge":"replaceAll",Fe=mappingToExists(Ie,$e,Ve);setComponentTypeToKeyInfo(Fe,_e,ComponentModel$1),oe[_e]=null,ie.set(_e,null),le.set(_e,0);var Ue=[],qe=[],Et=0,Lt;each$c(Fe,function(hn,Cn){var bn=hn.existing,Sn=hn.newOption;if(!Sn)bn&&(bn.mergeOption({},this),bn.optionUpdated({},!1));else{var En=_e==="series",wn=ComponentModel$1.getClass(_e,hn.keyInfo.subType,!En);if(!wn)return;if(_e==="tooltip"){if(Lt)return;Lt=!0}if(bn&&bn.constructor===wn)bn.name=hn.keyInfo.name,bn.mergeOption(Sn,this),bn.optionUpdated(Sn,!1);else{var $n=extend({componentIndex:Cn},hn.keyInfo);bn=new wn(Sn,this,this,$n),extend(bn,$n),hn.brandNew&&(bn.__requireNewView=!0),bn.init(Sn,this,this),bn.optionUpdated(null,!0)}}bn?(Ue.push(bn.option),qe.push(bn),Et++):(Ue.push(void 0),qe.push(void 0))},this),oe[_e]=Ue,ie.set(_e,qe),le.set(_e,Et),_e==="series"&&reCreateSeriesIndices(this)}this._seriesIndices||reCreateSeriesIndices(this)},r.prototype.getOption=function(){var $=clone$3(this.option);return each$c($,function(V,oe){if(ComponentModel$1.hasClass(oe)){for(var ie=normalizeToArray(V),le=ie.length,ue=!1,de=le-1;de>=0;de--)ie[de]&&!isComponentIdInternal(ie[de])?ue=!0:(ie[de]=null,!ue&&le--);ie.length=le,$[oe]=ie}}),delete $[OPTION_INNER_KEY],$},r.prototype.getTheme=function(){return this._theme},r.prototype.getLocaleModel=function(){return this._locale},r.prototype.setUpdatePayload=function($){this._payload=$},r.prototype.getUpdatePayload=function(){return this._payload},r.prototype.getComponent=function($,V){var oe=this._componentsMap.get($);if(oe){var ie=oe[V||0];if(ie)return ie;if(V==null){for(var le=0;le=r:$==="max"?t<=r:t===r}function indicesEquals(t,r){return t.join(",")===r.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(t){var r=t&&t.itemStyle;if(r)for(var $=0,V=POSSIBLE_STYLES.length;$=0;Ue--){var qe=t[Ue];if(ue||(Ve=qe.data.rawIndexOf(qe.stackedByDimension,Ie)),Ve>=0){var Et=qe.data.getByRawIndex(qe.stackResultDimension,Ve);if(de==="all"||de==="positive"&&Et>0||de==="negative"&&Et<0||de==="samesign"&&$e>=0&&Et>0||de==="samesign"&&$e<=0&&Et<0){$e=addSafe($e,Et),Fe=Et;break}}}return V[0]=$e,V[1]=Fe,V})})}var SourceImpl=function(){function t(r){this.data=r.data||(r.sourceFormat===SOURCE_FORMAT_KEYED_COLUMNS?{}:[]),this.sourceFormat=r.sourceFormat||SOURCE_FORMAT_UNKNOWN,this.seriesLayoutBy=r.seriesLayoutBy||SERIES_LAYOUT_BY_COLUMN,this.startIndex=r.startIndex||0,this.dimensionsDetectedCount=r.dimensionsDetectedCount,this.metaRawOption=r.metaRawOption;var $=this.dimensionsDefine=r.dimensionsDefine;if($)for(var V=0;V<$.length;V++){var oe=$[V];oe.type==null&&guessOrdinal(this,V)===BE_ORDINAL.Must&&(oe.type="ordinal")}}return t}();function isSourceInstance(t){return t instanceof SourceImpl}function createSource(t,r,$){$=$||detectSourceFormat(t);var V=r.seriesLayoutBy,oe=determineSourceDimensions(t,$,V,r.sourceHeader,r.dimensions),ie=new SourceImpl({data:t,sourceFormat:$,seriesLayoutBy:V,dimensionsDefine:oe.dimensionsDefine,startIndex:oe.startIndex,dimensionsDetectedCount:oe.dimensionsDetectedCount,metaRawOption:clone$3(r)});return ie}function createSourceFromSeriesDataOption(t){return new SourceImpl({data:t,sourceFormat:isTypedArray(t)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL})}function cloneSourceShallow(t){return new SourceImpl({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:clone$3(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function detectSourceFormat(t){var r=SOURCE_FORMAT_UNKNOWN;if(isTypedArray(t))r=SOURCE_FORMAT_TYPED_ARRAY;else if(isArray$1(t)){t.length===0&&(r=SOURCE_FORMAT_ARRAY_ROWS);for(var $=0,V=t.length;$Fe&&(Fe=Lt)}Ie[0]=Ve,Ie[1]=Fe}},oe=function(){return this._data?this._data.length/this._dimSize:0};providerMethods=(r={},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_COLUMN]={pure:!0,appendData:ie},r[SOURCE_FORMAT_ARRAY_ROWS+"_"+SERIES_LAYOUT_BY_ROW]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},r[SOURCE_FORMAT_OBJECT_ROWS]={pure:!0,appendData:ie},r[SOURCE_FORMAT_KEYED_COLUMNS]={pure:!0,appendData:function(le){var ue=this._data;each$c(le,function(de,pe){for(var he=ue[pe]||(ue[pe]=[]),_e=0;_e<(de||[]).length;_e++)he.push(de[_e])})}},r[SOURCE_FORMAT_ORIGINAL]={appendData:ie},r[SOURCE_FORMAT_TYPED_ARRAY]={persistent:!1,pure:!0,appendData:function(le){this._data=le},clean:function(){this._offset+=this.count(),this._data=null}},r);function ie(le){for(var ue=0;ue=0&&(Fe=le.interpolatedValue[Ue])}return Fe!=null?Fe+"":""})}},t.prototype.getRawValue=function(r,$){return retrieveRawValue(this.getData($),r)},t.prototype.formatTooltip=function(r,$,V){},t}();function normalizeTooltipFormatResult(t){var r,$;return isObject$3(t)?t.type&&($=t):r=t,{text:r,frag:$}}function createTask(t){return new Task(t)}var Task=function(){function t(r){r=r||{},this._reset=r.reset,this._plan=r.plan,this._count=r.count,this._onDirty=r.onDirty,this._dirty=!0}return t.prototype.perform=function(r){var $=this._upstream,V=r&&r.skip;if(this._dirty&&$){var oe=this.context;oe.data=oe.outputData=$.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var ie;this._plan&&!V&&(ie=this._plan(this.context));var le=he(this._modBy),ue=this._modDataCount||0,de=he(r&&r.modBy),pe=r&&r.modDataCount||0;(le!==de||ue!==pe)&&(ie="reset");function he(Et){return!(Et>=1)&&(Et=1),Et}var _e;(this._dirty||ie==="reset")&&(this._dirty=!1,_e=this._doReset(V)),this._modBy=de,this._modDataCount=pe;var $e=r&&r.step;if($?this._dueEnd=$._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var Ie=this._dueIndex,Ve=Math.min($e!=null?this._dueIndex+$e:1/0,this._dueEnd);if(!V&&(_e||Ie1&&V>0?ue:le}};return ie;function le(){return r=t?null:deoe?-this._resultLT:0},t}(),ExternalSource=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(r){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(r){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(r,$){},t.prototype.retrieveValueFromItem=function(r,$){},t.prototype.convertValue=function(r,$){return parseDataValue(r,$)},t}();function createExternalSource(t,r){var $=new ExternalSource,V=t.data,oe=$.sourceFormat=t.sourceFormat,ie=t.startIndex,le="";t.seriesLayoutBy!==SERIES_LAYOUT_BY_COLUMN&&throwError(le);var ue=[],de={},pe=t.dimensionsDefine;if(pe)each$c(pe,function(Fe,Ue){var qe=Fe.name,Et={index:Ue,name:qe,displayName:Fe.displayName};if(ue.push(Et),qe!=null){var Lt="";hasOwn(de,qe)&&throwError(Lt),de[qe]=Et}});else for(var he=0;he65535?CtorUint32Array:CtorUint16Array}function getInitialExtent(){return[1/0,-1/0]}function cloneChunk(t){var r=t.constructor;return r===Array?t.slice():new r(t)}function prepareStore(t,r,$,V,oe){var ie=dataCtors[$||"float"];if(oe){var le=t[r],ue=le&&le.length;if(ue!==V){for(var de=new ie(V),pe=0;peUe[1]&&(Ue[1]=Fe)}return this._rawCount=this._count=de,{start:ue,end:de}},t.prototype._initDataFromProvider=function(r,$,V){for(var oe=this._provider,ie=this._chunks,le=this._dimensions,ue=le.length,de=this._rawExtent,pe=map$2(le,function(Et){return Et.property}),he=0;heqe[1]&&(qe[1]=Ue)}}!oe.persistent&&oe.clean&&oe.clean(),this._rawCount=this._count=$,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(r,$){if(!($>=0&&$=0&&$=this._rawCount||r<0)return-1;if(!this._indices)return r;var $=this._indices,V=$[r];if(V!=null&&Vr)ie=le-1;else return le}return-1},t.prototype.indicesOfNearest=function(r,$,V){var oe=this._chunks,ie=oe[r],le=[];if(!ie)return le;V==null&&(V=1/0);for(var ue=1/0,de=-1,pe=0,he=0,_e=this.count();he<_e;he++){var $e=this.getRawIndex(he),Ie=$-ie[$e],Ve=Math.abs(Ie);Ve<=V&&((Ve=0&&de<0)&&(ue=Ve,de=Ie,pe=0),Ie===de&&(le[pe++]=he))}return le.length=pe,le},t.prototype.getIndices=function(){var r,$=this._indices;if($){var V=$.constructor,oe=this._count;if(V===Array){r=new V(oe);for(var ie=0;ie=_e&&Et<=$e||isNaN(Et))&&(de[pe++]=Fe),Fe++}Ve=!0}else if(ie===2){for(var Ue=Ie[oe[0]],Lt=Ie[oe[1]],hn=r[oe[1]][0],Cn=r[oe[1]][1],qe=0;qe=_e&&Et<=$e||isNaN(Et))&&(bn>=hn&&bn<=Cn||isNaN(bn))&&(de[pe++]=Fe),Fe++}Ve=!0}}if(!Ve)if(ie===1)for(var qe=0;qe=_e&&Et<=$e||isNaN(Et))&&(de[pe++]=Sn)}else for(var qe=0;qer[$n][1])&&(En=!1)}En&&(de[pe++]=$.getRawIndex(qe))}return peqe[1]&&(qe[1]=Ue)}}}},t.prototype.lttbDownSample=function(r,$){var V=this.clone([r],!0),oe=V._chunks,ie=oe[r],le=this.count(),ue=0,de=Math.floor(1/$),pe=this.getRawIndex(0),he,_e,$e,Ie=new(getIndicesCtor(this._rawCount))(Math.min((Math.ceil(le/de)+2)*2,le));Ie[ue++]=pe;for(var Ve=1;Vehe&&(he=_e,$e=hn)}Tn>0&&Tnhe-Ve&&(de=he-Ve,ue.length=de);for(var Fe=0;Fe_e[1]&&(_e[1]=qe),$e[Ie++]=Et}return ie._count=Ie,ie._indices=$e,ie._updateGetRawIdx(),ie},t.prototype.each=function(r,$){if(this._count)for(var V=r.length,oe=this._chunks,ie=0,le=this.count();iede&&(de=_e)}return le=[ue,de],this._extent[r]=le,le},t.prototype.getRawDataItem=function(r){var $=this.getRawIndex(r);if(this._provider.persistent)return this._provider.getItem($);for(var V=[],oe=this._chunks,ie=0;ie=0?this._indices[r]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function r($,V,oe,ie){return parseDataValue($[ie],this._dimensions[ie])}defaultDimValueGetters={arrayRows:r,objectRows:function($,V,oe,ie){return parseDataValue($[V],this._dimensions[ie])},keyedColumns:r,original:function($,V,oe,ie){var le=$&&($.value==null?$:$.value);return parseDataValue(le instanceof Array?le[ie]:le,this._dimensions[ie])},typedArray:function($,V,oe,ie){return $[ie]}}}(),t}();const DataStore$1=DataStore;var SourceManager=function(){function t(r){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=r}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(r,$){this._sourceList=r,this._upstreamSignList=$,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var r=this._sourceHost,$=this._getUpstreamSourceManagers(),V=!!$.length,oe,ie;if(isSeries(r)){var le=r,ue=void 0,de=void 0,pe=void 0;if(V){var he=$[0];he.prepareSource(),pe=he.getSource(),ue=pe.data,de=pe.sourceFormat,ie=[he._getVersionSign()]}else ue=le.get("data",!0),de=isTypedArray(ue)?SOURCE_FORMAT_TYPED_ARRAY:SOURCE_FORMAT_ORIGINAL,ie=[];var _e=this._getSourceMetaRawOption()||{},$e=pe&&pe.metaRawOption||{},Ie=retrieve2(_e.seriesLayoutBy,$e.seriesLayoutBy)||null,Ve=retrieve2(_e.sourceHeader,$e.sourceHeader),Fe=retrieve2(_e.dimensions,$e.dimensions),Ue=Ie!==$e.seriesLayoutBy||!!Ve!=!!$e.sourceHeader||Fe;oe=Ue?[createSource(ue,{seriesLayoutBy:Ie,sourceHeader:Ve,dimensions:Fe},de)]:[]}else{var qe=r;if(V){var Et=this._applyTransform($);oe=Et.sourceList,ie=Et.upstreamSignList}else{var Lt=qe.get("source",!0);oe=[createSource(Lt,this._getSourceMetaRawOption(),null)],ie=[]}}this._setLocalSource(oe,ie)},t.prototype._applyTransform=function(r){var $=this._sourceHost,V=$.get("transform",!0),oe=$.get("fromTransformResult",!0);if(oe!=null){var ie="";r.length!==1&&doThrow(ie)}var le,ue=[],de=[];return each$c(r,function(pe){pe.prepareSource();var he=pe.getSource(oe||0),_e="";oe!=null&&!he&&doThrow(_e),ue.push(he),de.push(pe._getVersionSign())}),V?le=applyDataTransform(V,ue,{datasetIndex:$.componentIndex}):oe!=null&&(le=[cloneSourceShallow(ue[0])]),{sourceList:le,upstreamSignList:de}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var r=this._getUpstreamSourceManagers(),$=0;$1||$>0&&!t.noHeader;return each$c(t.blocks,function(oe){var ie=getBlockGapLevel(oe);ie>=r&&(r=ie+ +(V&&(!ie||isSectionFragment(oe)&&!oe.noHeader)))}),r}return 0}function buildSection(t,r,$,V){var oe=r.noHeader,ie=getGap(getBlockGapLevel(r)),le=[],ue=r.blocks||[];assert(!ue||isArray$1(ue)),ue=ue||[];var de=t.orderMode;if(r.sortBlocks&&de){ue=ue.slice();var pe={valueAsc:"asc",valueDesc:"desc"};if(hasOwn(pe,de)){var he=new SortOrderComparator(pe[de],null);ue.sort(function(Ve,Fe){return he.evaluate(Ve.sortParam,Fe.sortParam)})}else de==="seriesDesc"&&ue.reverse()}each$c(ue,function(Ve,Fe){var Ue=r.valueFormatter,qe=getBuilder(Ve)(Ue?extend(extend({},t),{valueFormatter:Ue}):t,Ve,Fe>0?ie.html:0,V);qe!=null&&le.push(qe)});var _e=t.renderMode==="richText"?le.join(ie.richText):wrapBlockHTML(le.join(""),oe?$:ie.html);if(oe)return _e;var $e=makeValueReadable(r.header,"ordinal",t.useUTC),Ie=getTooltipTextStyle(V,t.renderMode).nameStyle;return t.renderMode==="richText"?wrapInlineNameRichText(t,$e,Ie)+ie.richText+_e:wrapBlockHTML('
'+encodeHTML($e)+"
"+_e,$)}function buildNameValue(t,r,$,V){var oe=t.renderMode,ie=r.noName,le=r.noValue,ue=!r.markerType,de=r.name,pe=t.useUTC,he=r.valueFormatter||t.valueFormatter||function(hn){return hn=isArray$1(hn)?hn:[hn],map$2(hn,function(Cn,bn){return makeValueReadable(Cn,isArray$1(Ie)?Ie[bn]:Ie,pe)})};if(!(ie&&le)){var _e=ue?"":t.markupStyleCreator.makeTooltipMarker(r.markerType,r.markerColor||"#333",oe),$e=ie?"":makeValueReadable(de,"ordinal",pe),Ie=r.valueType,Ve=le?[]:he(r.value),Fe=!ue||!ie,Ue=!ue&&ie,qe=getTooltipTextStyle(V,oe),Et=qe.nameStyle,Lt=qe.valueStyle;return oe==="richText"?(ue?"":_e)+(ie?"":wrapInlineNameRichText(t,$e,Et))+(le?"":wrapInlineValueRichText(t,Ve,Fe,Ue,Lt)):wrapBlockHTML((ue?"":_e)+(ie?"":wrapInlineNameHTML($e,!ue,Et))+(le?"":wrapInlineValueHTML(Ve,Fe,Ue,Lt)),$)}}function buildTooltipMarkup(t,r,$,V,oe,ie){if(t){var le=getBuilder(t),ue={useUTC:oe,renderMode:$,orderMode:V,markupStyleCreator:r,valueFormatter:t.valueFormatter};return le(ue,t,0,ie)}}function getGap(t){return{html:HTML_GAPS[t],richText:RICH_TEXT_GAPS[t]}}function wrapBlockHTML(t,r){var $='
',V="margin: "+r+"px 0 0";return'
'+t+$+"
"}function wrapInlineNameHTML(t,r,$){var V=r?"margin-left:2px":"";return''+encodeHTML(t)+""}function wrapInlineValueHTML(t,r,$,V){var oe=$?"10px":"20px",ie=r?"float:right;margin-left:"+oe:"";return t=isArray$1(t)?t:[t],''+map$2(t,function(le){return encodeHTML(le)}).join("  ")+""}function wrapInlineNameRichText(t,r,$){return t.markupStyleCreator.wrapRichTextStyle(r,$)}function wrapInlineValueRichText(t,r,$,V,oe){var ie=[oe],le=V?10:20;return $&&ie.push({padding:[0,0,0,le],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(isArray$1(r)?r.join(" "):r,ie)}function retrieveVisualColorForTooltipMarker(t,r){var $=t.getData().getItemVisual(r,"style"),V=$[t.visualDrawType];return convertToColorString(V)}function getPaddingFromTooltipModel(t,r){var $=t.get("padding");return $??(r==="richText"?[8,10]:10)}var TooltipMarkupStyleCreator=function(){function t(){this.richTextStyles={},this._nextStyleNameId=getRandomIdBase()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(r,$,V){var oe=V==="richText"?this._generateStyleName():null,ie=getTooltipMarker({color:$,type:r,renderMode:V,markerId:oe});return isString(ie)?ie:(this.richTextStyles[oe]=ie.style,ie.content)},t.prototype.wrapRichTextStyle=function(r,$){var V={};isArray$1($)?each$c($,function(ie){return extend(V,ie)}):extend(V,$);var oe=this._generateStyleName();return this.richTextStyles[oe]=V,"{"+oe+"|"+r+"}"},t}();function defaultSeriesFormatTooltip(t){var r=t.series,$=t.dataIndex,V=t.multipleSeries,oe=r.getData(),ie=oe.mapDimensionsAll("defaultedTooltip"),le=ie.length,ue=r.getRawValue($),de=isArray$1(ue),pe=retrieveVisualColorForTooltipMarker(r,$),he,_e,$e,Ie;if(le>1||de&&!le){var Ve=formatTooltipArrayValue(ue,r,$,ie,pe);he=Ve.inlineValues,_e=Ve.inlineValueTypes,$e=Ve.blocks,Ie=Ve.inlineValues[0]}else if(le){var Fe=oe.getDimensionInfo(ie[0]);Ie=he=retrieveRawValue(oe,$,ie[0]),_e=Fe.type}else Ie=he=de?ue[0]:ue;var Ue=isNameSpecified(r),qe=Ue&&r.name||"",Et=oe.getName($),Lt=V?qe:Et;return createTooltipMarkup("section",{header:qe,noHeader:V||!Ue,sortParam:Ie,blocks:[createTooltipMarkup("nameValue",{markerType:"item",markerColor:pe,name:Lt,noName:!trim$1(Lt),value:he,valueType:_e})].concat($e||[])})}function formatTooltipArrayValue(t,r,$,V,oe){var ie=r.getData(),le=reduce(t,function(_e,$e,Ie){var Ve=ie.getDimensionInfo(Ie);return _e=_e||Ve&&Ve.tooltip!==!1&&Ve.displayName!=null},!1),ue=[],de=[],pe=[];V.length?each$c(V,function(_e){he(retrieveRawValue(ie,$,_e),_e)}):each$c(t,he);function he(_e,$e){var Ie=ie.getDimensionInfo($e);!Ie||Ie.otherDims.tooltip===!1||(le?pe.push(createTooltipMarkup("nameValue",{markerType:"subItem",markerColor:oe,name:Ie.displayName,value:_e,valueType:Ie.type})):(ue.push(_e),de.push(Ie.type)))}return{inlineValues:ue,inlineValueTypes:de,blocks:pe}}var inner$b=makeInner();function getSelectionKey(t,r){return t.getName(r)||t.getId(r)}var SERIES_UNIVERSAL_TRANSITION_PROP="__universalTransitionEnabled",SeriesModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $._selectedDataIndicesMap={},$}return r.prototype.init=function($,V,oe){this.seriesIndex=this.componentIndex,this.dataTask=createTask({count:dataTaskCount,reset:dataTaskReset}),this.dataTask.context={model:this},this.mergeDefaultAndTheme($,oe);var ie=inner$b(this).sourceManager=new SourceManager(this);ie.prepareSource();var le=this.getInitialData($,oe);wrapData(le,this),this.dataTask.context.data=le,inner$b(this).dataBeforeProcessed=le,autoSeriesName(this),this._initSelectedMapFromData(le)},r.prototype.mergeDefaultAndTheme=function($,V){var oe=fetchLayoutMode(this),ie=oe?getLayoutParams($):{},le=this.subType;ComponentModel$1.hasClass(le)&&(le+="Series"),merge($,V.getTheme().get(this.subType)),merge($,this.getDefaultOption()),defaultEmphasis($,"label",["show"]),this.fillDataTextStyle($.data),oe&&mergeLayoutParam($,ie,oe)},r.prototype.mergeOption=function($,V){$=merge(this.option,$,!0),this.fillDataTextStyle($.data);var oe=fetchLayoutMode(this);oe&&mergeLayoutParam(this.option,$,oe);var ie=inner$b(this).sourceManager;ie.dirty(),ie.prepareSource();var le=this.getInitialData($,V);wrapData(le,this),this.dataTask.dirty(),this.dataTask.context.data=le,inner$b(this).dataBeforeProcessed=le,autoSeriesName(this),this._initSelectedMapFromData(le)},r.prototype.fillDataTextStyle=function($){if($&&!isTypedArray($))for(var V=["show"],oe=0;oe<$.length;oe++)$[oe]&&$[oe].label&&defaultEmphasis($[oe],"label",V)},r.prototype.getInitialData=function($,V){},r.prototype.appendData=function($){var V=this.getRawData();V.appendData($.data)},r.prototype.getData=function($){var V=getCurrentTask(this);if(V){var oe=V.context.data;return $==null?oe:oe.getLinkedData($)}else return inner$b(this).data},r.prototype.getAllData=function(){var $=this.getData();return $&&$.getLinkedDataAll?$.getLinkedDataAll():[{data:$}]},r.prototype.setData=function($){var V=getCurrentTask(this);if(V){var oe=V.context;oe.outputData=$,V!==this.dataTask&&(oe.data=$)}inner$b(this).data=$},r.prototype.getEncode=function(){var $=this.get("encode",!0);if($)return createHashMap($)},r.prototype.getSourceManager=function(){return inner$b(this).sourceManager},r.prototype.getSource=function(){return this.getSourceManager().getSource()},r.prototype.getRawData=function(){return inner$b(this).dataBeforeProcessed},r.prototype.getColorBy=function(){var $=this.get("colorBy");return $||"series"},r.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},r.prototype.getBaseAxis=function(){var $=this.coordinateSystem;return $&&$.getBaseAxis&&$.getBaseAxis()},r.prototype.formatTooltip=function($,V,oe){return defaultSeriesFormatTooltip({series:this,dataIndex:$,multipleSeries:V})},r.prototype.isAnimationEnabled=function(){var $=this.ecModel;if(env$1.node&&!($&&$.ssr))return!1;var V=this.getShallow("animation");return V&&this.getData().count()>this.getShallow("animationThreshold")&&(V=!1),!!V},r.prototype.restoreData=function(){this.dataTask.dirty()},r.prototype.getColorFromPalette=function($,V,oe){var ie=this.ecModel,le=PaletteMixin.prototype.getColorFromPalette.call(this,$,V,oe);return le||(le=ie.getColorFromPalette($,V,oe)),le},r.prototype.coordDimToDataDim=function($){return this.getRawData().mapDimensionsAll($)},r.prototype.getProgressive=function(){return this.get("progressive")},r.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},r.prototype.select=function($,V){this._innerSelect(this.getData(V),$)},r.prototype.unselect=function($,V){var oe=this.option.selectedMap;if(oe){var ie=this.option.selectedMode,le=this.getData(V);if(ie==="series"||oe==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var ue=0;ue<$.length;ue++){var de=$[ue],pe=getSelectionKey(le,de);oe[pe]=!1,this._selectedDataIndicesMap[pe]=-1}}},r.prototype.toggleSelect=function($,V){for(var oe=[],ie=0;ie<$.length;ie++)oe[0]=$[ie],this.isSelected($[ie],V)?this.unselect(oe,V):this.select(oe,V)},r.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var $=this._selectedDataIndicesMap,V=keys($),oe=[],ie=0;ie=0&&oe.push(le)}return oe},r.prototype.isSelected=function($,V){var oe=this.option.selectedMap;if(!oe)return!1;var ie=this.getData(V);return(oe==="all"||oe[getSelectionKey(ie,$)])&&!ie.getItemModel($).get(["select","disabled"])},r.prototype.isUniversalTransitionEnabled=function(){if(this[SERIES_UNIVERSAL_TRANSITION_PROP])return!0;var $=this.option.universalTransition;return $?$===!0?!0:$&&$.enabled:!1},r.prototype._innerSelect=function($,V){var oe,ie,le=this.option,ue=le.selectedMode,de=V.length;if(!(!ue||!de)){if(ue==="series")le.selectedMap="all";else if(ue==="multiple"){isObject$3(le.selectedMap)||(le.selectedMap={});for(var pe=le.selectedMap,he=0;he0&&this._innerSelect($,V)}},r.registerClass=function($){return ComponentModel$1.registerClass($)},r.protoInitialize=function(){var $=r.prototype;$.type="series.__base__",$.seriesIndex=0,$.ignoreStyleOnData=!1,$.hasSymbolVisual=!1,$.defaultSymbol="circle",$.visualStyleAccessPath="itemStyle",$.visualDrawType="fill"}(),r}(ComponentModel$1);mixin(SeriesModel,DataFormatMixin);mixin(SeriesModel,PaletteMixin);mountExtend(SeriesModel,ComponentModel$1);function autoSeriesName(t){var r=t.name;isNameSpecified(t)||(t.name=getSeriesAutoName(t)||r)}function getSeriesAutoName(t){var r=t.getRawData(),$=r.mapDimensionsAll("seriesName"),V=[];return each$c($,function(oe){var ie=r.getDimensionInfo(oe);ie.displayName&&V.push(ie.displayName)}),V.join(" ")}function dataTaskCount(t){return t.model.getRawData().count()}function dataTaskReset(t){var r=t.model;return r.setData(r.getRawData().cloneShallow()),dataTaskProgress}function dataTaskProgress(t,r){r.outputData&&t.end>r.outputData.count()&&r.model.getRawData().cloneShallow(r.outputData)}function wrapData(t,r){each$c(concatArray(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function($){t.wrapMethod($,curry$1(onDataChange,r))})}function onDataChange(t,r){var $=getCurrentTask(t);return $&&$.setOutputEnd((r||this).count()),r}function getCurrentTask(t){var r=(t.ecModel||{}).scheduler,$=r&&r.getPipeline(t.uid);if($){var V=$.currentTask;if(V){var oe=V.agentStubMap;oe&&(V=oe.get(t.uid))}return V}}const SeriesModel$1=SeriesModel;var ComponentView=function(){function t(){this.group=new Group$3,this.uid=getUID("viewComponent")}return t.prototype.init=function(r,$){},t.prototype.render=function(r,$,V,oe){},t.prototype.dispose=function(r,$){},t.prototype.updateView=function(r,$,V,oe){},t.prototype.updateLayout=function(r,$,V,oe){},t.prototype.updateVisual=function(r,$,V,oe){},t.prototype.toggleBlurSeries=function(r,$,V){},t.prototype.eachRendered=function(r){var $=this.group;$&&$.traverse(r)},t}();enableClassExtend(ComponentView);enableClassManagement(ComponentView);const ComponentView$1=ComponentView;function createRenderPlanner(){var t=makeInner();return function(r){var $=t(r),V=r.pipelineContext,oe=!!$.large,ie=!!$.progressiveRender,le=$.large=!!(V&&V.large),ue=$.progressiveRender=!!(V&&V.progressiveRender);return(oe!==le||ie!==ue)&&"reset"}}var inner$a=makeInner(),renderPlanner=createRenderPlanner(),ChartView=function(){function t(){this.group=new Group$3,this.uid=getUID("viewChart"),this.renderTask=createTask({plan:renderTaskPlan,reset:renderTaskReset}),this.renderTask.context={view:this}}return t.prototype.init=function(r,$){},t.prototype.render=function(r,$,V,oe){},t.prototype.highlight=function(r,$,V,oe){var ie=r.getData(oe&&oe.dataType);ie&&toggleHighlight(ie,oe,"emphasis")},t.prototype.downplay=function(r,$,V,oe){var ie=r.getData(oe&&oe.dataType);ie&&toggleHighlight(ie,oe,"normal")},t.prototype.remove=function(r,$){this.group.removeAll()},t.prototype.dispose=function(r,$){},t.prototype.updateView=function(r,$,V,oe){this.render(r,$,V,oe)},t.prototype.updateLayout=function(r,$,V,oe){this.render(r,$,V,oe)},t.prototype.updateVisual=function(r,$,V,oe){this.render(r,$,V,oe)},t.prototype.eachRendered=function(r){traverseElements(this.group,r)},t.markUpdateMethod=function(r,$){inner$a(r).updateMethod=$},t.protoInitialize=function(){var r=t.prototype;r.type="chart"}(),t}();function elSetState(t,r,$){t&&isHighDownDispatcher(t)&&(r==="emphasis"?enterEmphasis:leaveEmphasis)(t,$)}function toggleHighlight(t,r,$){var V=queryDataIndex(t,r),oe=r&&r.highlightKey!=null?getHighlightDigit(r.highlightKey):null;V!=null?each$c(normalizeToArray(V),function(ie){elSetState(t.getItemGraphicEl(ie),$,oe)}):t.eachItemGraphicEl(function(ie){elSetState(ie,$,oe)})}enableClassExtend(ChartView);enableClassManagement(ChartView);function renderTaskPlan(t){return renderPlanner(t.model)}function renderTaskReset(t){var r=t.model,$=t.ecModel,V=t.api,oe=t.payload,ie=r.pipelineContext.progressiveRender,le=t.view,ue=oe&&inner$a(oe).updateMethod,de=ie?"incrementalPrepareRender":ue&&le[ue]?ue:"render";return de!=="render"&&le[de](r,$,V,oe),progressMethodMap[de]}var progressMethodMap={incrementalPrepareRender:{progress:function(t,r){r.view.incrementalRender(t,r.model,r.ecModel,r.api,r.payload)}},render:{forceFirstProgress:!0,progress:function(t,r){r.view.render(r.model,r.ecModel,r.api,r.payload)}}};const ChartView$1=ChartView;var ORIGIN_METHOD="\0__throttleOriginMethod",RATE="\0__throttleRate",THROTTLE_TYPE="\0__throttleType";function throttle(t,r,$){var V,oe=0,ie=0,le=null,ue,de,pe,he;r=r||0;function _e(){ie=new Date().getTime(),le=null,t.apply(de,pe||[])}var $e=function(){for(var Ie=[],Ve=0;Ve=0?_e():le=setTimeout(_e,-ue),oe=V};return $e.clear=function(){le&&(clearTimeout(le),le=null)},$e.debounceNextCall=function(Ie){he=Ie},$e}function createOrUpdate(t,r,$,V){var oe=t[r];if(oe){var ie=oe[ORIGIN_METHOD]||oe,le=oe[THROTTLE_TYPE],ue=oe[RATE];if(ue!==$||le!==V){if($==null||!V)return t[r]=ie;oe=t[r]=throttle(ie,$,V==="debounce"),oe[ORIGIN_METHOD]=ie,oe[THROTTLE_TYPE]=V,oe[RATE]=$}return oe}}function clear$1(t,r){var $=t[r];$&&$[ORIGIN_METHOD]&&($.clear&&$.clear(),t[r]=$[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(t,r){var $=t.visualStyleMapper||defaultStyleMappers[r];return $||(console.warn("Unknown style type '"+r+"'."),defaultStyleMappers.itemStyle)}function getDefaultColorKey(t,r){var $=t.visualDrawType||defaultColorKey[r];return $||(console.warn("Unknown style type '"+r+"'."),"fill")}var seriesStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var $=t.getData(),V=t.visualStyleAccessPath||"itemStyle",oe=t.getModel(V),ie=getStyleMapper(t,V),le=ie(oe),ue=oe.getShallow("decal");ue&&($.setVisual("decal",ue),ue.dirty=!0);var de=getDefaultColorKey(t,V),pe=le[de],he=isFunction(pe)?pe:null,_e=le.fill==="auto"||le.stroke==="auto";if(!le[de]||he||_e){var $e=t.getColorFromPalette(t.name,null,r.getSeriesCount());le[de]||(le[de]=$e,$.setVisual("colorFromPalette",!0)),le.fill=le.fill==="auto"||isFunction(le.fill)?$e:le.fill,le.stroke=le.stroke==="auto"||isFunction(le.stroke)?$e:le.stroke}if($.setVisual("style",le),$.setVisual("drawType",de),!r.isSeriesFiltered(t)&&he)return $.setVisual("colorFromPalette",!1),{dataEach:function(Ie,Ve){var Fe=t.getDataParams(Ve),Ue=extend({},le);Ue[de]=he(Fe),Ie.setItemVisual(Ve,"style",Ue)}}}},sharedModel=new Model$1,dataStyleTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){if(!(t.ignoreStyleOnData||r.isSeriesFiltered(t))){var $=t.getData(),V=t.visualStyleAccessPath||"itemStyle",oe=getStyleMapper(t,V),ie=$.getVisual("drawType");return{dataEach:$.hasItemOption?function(le,ue){var de=le.getRawDataItem(ue);if(de&&de[V]){sharedModel.option=de[V];var pe=oe(sharedModel),he=le.ensureUniqueItemVisual(ue,"style");extend(he,pe),sharedModel.option.decal&&(le.setItemVisual(ue,"decal",sharedModel.option.decal),sharedModel.option.decal.dirty=!0),ie in pe&&le.setItemVisual(ue,"colorFromPalette",!1)}}:null}}}},dataColorPaletteTask={performRawSeries:!0,overallReset:function(t){var r=createHashMap();t.eachSeries(function($){var V=$.getColorBy();if(!$.isColorBySeries()){var oe=$.type+"-"+V,ie=r.get(oe);ie||(ie={},r.set(oe,ie)),inner$9($).scope=ie}}),t.eachSeries(function($){if(!($.isColorBySeries()||t.isSeriesFiltered($))){var V=$.getRawData(),oe={},ie=$.getData(),le=inner$9($).scope,ue=$.visualStyleAccessPath||"itemStyle",de=getDefaultColorKey($,ue);ie.each(function(pe){var he=ie.getRawIndex(pe);oe[he]=pe}),V.each(function(pe){var he=oe[pe],_e=ie.getItemVisual(he,"colorFromPalette");if(_e){var $e=ie.ensureUniqueItemVisual(he,"style"),Ie=V.getName(pe)||pe+"",Ve=V.count();$e[de]=$.getColorFromPalette(Ie,le,Ve)}})}})}},PI$1=Math.PI;function defaultLoading(t,r){r=r||{},defaults(r,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var $=new Group$3,V=new Rect$2({style:{fill:r.maskColor},zlevel:r.zlevel,z:1e4});$.add(V);var oe=new ZRText$1({style:{text:r.text,fill:r.textColor,fontSize:r.fontSize,fontWeight:r.fontWeight,fontStyle:r.fontStyle,fontFamily:r.fontFamily},zlevel:r.zlevel,z:10001}),ie=new Rect$2({style:{fill:"none"},textContent:oe,textConfig:{position:"right",distance:10},zlevel:r.zlevel,z:10001});$.add(ie);var le;return r.showSpinner&&(le=new Arc$1({shape:{startAngle:-PI$1/2,endAngle:-PI$1/2+.1,r:r.spinnerRadius},style:{stroke:r.color,lineCap:"round",lineWidth:r.lineWidth},zlevel:r.zlevel,z:10001}),le.animateShape(!0).when(1e3,{endAngle:PI$1*3/2}).start("circularInOut"),le.animateShape(!0).when(1e3,{startAngle:PI$1*3/2}).delay(300).start("circularInOut"),$.add(le)),$.resize=function(){var ue=oe.getBoundingRect().width,de=r.showSpinner?r.spinnerRadius:0,pe=(t.getWidth()-de*2-(r.showSpinner&&ue?10:0)-ue)/2-(r.showSpinner&&ue?0:5+ue/2)+(r.showSpinner?0:ue/2)+(ue?0:de),he=t.getHeight()/2;r.showSpinner&&le.setShape({cx:pe,cy:he}),ie.setShape({x:pe-de,y:he-de,width:de*2,height:de*2}),V.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},$.resize(),$}var Scheduler=function(){function t(r,$,V,oe){this._stageTaskMap=createHashMap(),this.ecInstance=r,this.api=$,V=this._dataProcessorHandlers=V.slice(),oe=this._visualHandlers=oe.slice(),this._allHandlers=V.concat(oe)}return t.prototype.restoreData=function(r,$){r.restoreData($),this._stageTaskMap.each(function(V){var oe=V.overallTask;oe&&oe.dirty()})},t.prototype.getPerformArgs=function(r,$){if(r.__pipeline){var V=this._pipelineMap.get(r.__pipeline.id),oe=V.context,ie=!$&&V.progressiveEnabled&&(!oe||oe.progressiveRender)&&r.__idxInPipeline>V.blockIndex,le=ie?V.step:null,ue=oe&&oe.modDataCount,de=ue!=null?Math.ceil(ue/le):null;return{step:le,modBy:de,modDataCount:ue}}},t.prototype.getPipeline=function(r){return this._pipelineMap.get(r)},t.prototype.updateStreamModes=function(r,$){var V=this._pipelineMap.get(r.uid),oe=r.getData(),ie=oe.count(),le=V.progressiveEnabled&&$.incrementalPrepareRender&&ie>=V.threshold,ue=r.get("large")&&ie>=r.get("largeThreshold"),de=r.get("progressiveChunkMode")==="mod"?ie:null;r.pipelineContext=V.context={progressiveRender:le,modDataCount:de,large:ue}},t.prototype.restorePipelines=function(r){var $=this,V=$._pipelineMap=createHashMap();r.eachSeries(function(oe){var ie=oe.getProgressive(),le=oe.uid;V.set(le,{id:le,head:null,tail:null,threshold:oe.getProgressiveThreshold(),progressiveEnabled:ie&&!(oe.preventIncremental&&oe.preventIncremental()),blockIndex:-1,step:Math.round(ie||700),count:0}),$._pipe(oe,oe.dataTask)})},t.prototype.prepareStageTasks=function(){var r=this._stageTaskMap,$=this.api.getModel(),V=this.api;each$c(this._allHandlers,function(oe){var ie=r.get(oe.uid)||r.set(oe.uid,{}),le="";assert(!(oe.reset&&oe.overallReset),le),oe.reset&&this._createSeriesStageTask(oe,ie,$,V),oe.overallReset&&this._createOverallStageTask(oe,ie,$,V)},this)},t.prototype.prepareView=function(r,$,V,oe){var ie=r.renderTask,le=ie.context;le.model=$,le.ecModel=V,le.api=oe,ie.__block=!r.incrementalPrepareRender,this._pipe($,ie)},t.prototype.performDataProcessorTasks=function(r,$){this._performStageTasks(this._dataProcessorHandlers,r,$,{block:!0})},t.prototype.performVisualTasks=function(r,$,V){this._performStageTasks(this._visualHandlers,r,$,V)},t.prototype._performStageTasks=function(r,$,V,oe){oe=oe||{};var ie=!1,le=this;each$c(r,function(de,pe){if(!(oe.visualType&&oe.visualType!==de.visualType)){var he=le._stageTaskMap.get(de.uid),_e=he.seriesTaskMap,$e=he.overallTask;if($e){var Ie,Ve=$e.agentStubMap;Ve.each(function(Ue){ue(oe,Ue)&&(Ue.dirty(),Ie=!0)}),Ie&&$e.dirty(),le.updatePayload($e,V);var Fe=le.getPerformArgs($e,oe.block);Ve.each(function(Ue){Ue.perform(Fe)}),$e.perform(Fe)&&(ie=!0)}else _e&&_e.each(function(Ue,qe){ue(oe,Ue)&&Ue.dirty();var Et=le.getPerformArgs(Ue,oe.block);Et.skip=!de.performRawSeries&&$.isSeriesFiltered(Ue.context.model),le.updatePayload(Ue,V),Ue.perform(Et)&&(ie=!0)})}});function ue(de,pe){return de.setDirty&&(!de.dirtyMap||de.dirtyMap.get(pe.__pipeline.id))}this.unfinished=ie||this.unfinished},t.prototype.performSeriesTasks=function(r){var $;r.eachSeries(function(V){$=V.dataTask.perform()||$}),this.unfinished=$||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(r){var $=r.tail;do{if($.__block){r.blockIndex=$.__idxInPipeline;break}$=$.getUpstream()}while($)})},t.prototype.updatePayload=function(r,$){$!=="remain"&&(r.context.payload=$)},t.prototype._createSeriesStageTask=function(r,$,V,oe){var ie=this,le=$.seriesTaskMap,ue=$.seriesTaskMap=createHashMap(),de=r.seriesType,pe=r.getTargetSeries;r.createOnAllSeries?V.eachRawSeries(he):de?V.eachRawSeriesByType(de,he):pe&&pe(V,oe).each(he);function he(_e){var $e=_e.uid,Ie=ue.set($e,le&&le.get($e)||createTask({plan:seriesTaskPlan,reset:seriesTaskReset,count:seriesTaskCount}));Ie.context={model:_e,ecModel:V,api:oe,useClearVisual:r.isVisual&&!r.isLayout,plan:r.plan,reset:r.reset,scheduler:ie},ie._pipe(_e,Ie)}},t.prototype._createOverallStageTask=function(r,$,V,oe){var ie=this,le=$.overallTask=$.overallTask||createTask({reset:overallTaskReset});le.context={ecModel:V,api:oe,overallReset:r.overallReset,scheduler:ie};var ue=le.agentStubMap,de=le.agentStubMap=createHashMap(),pe=r.seriesType,he=r.getTargetSeries,_e=!0,$e=!1,Ie="";assert(!r.createOnAllSeries,Ie),pe?V.eachRawSeriesByType(pe,Ve):he?he(V,oe).each(Ve):(_e=!1,each$c(V.getSeries(),Ve));function Ve(Fe){var Ue=Fe.uid,qe=de.set(Ue,ue&&ue.get(Ue)||($e=!0,createTask({reset:stubReset,onDirty:stubOnDirty})));qe.context={model:Fe,overallProgress:_e},qe.agent=le,qe.__block=_e,ie._pipe(Fe,qe)}$e&&le.dirty()},t.prototype._pipe=function(r,$){var V=r.uid,oe=this._pipelineMap.get(V);!oe.head&&(oe.head=$),oe.tail&&oe.tail.pipe($),oe.tail=$,$.__idxInPipeline=oe.count++,$.__pipeline=oe},t.wrapStageHandler=function(r,$){return isFunction(r)&&(r={overallReset:r,seriesType:detectSeriseType(r)}),r.uid=getUID("stageHandler"),$&&(r.visualType=$),r},t}();function overallTaskReset(t){t.overallReset(t.ecModel,t.api,t.payload)}function stubReset(t){return t.overallProgress&&stubProgress}function stubProgress(){this.agent.dirty(),this.getDownstream().dirty()}function stubOnDirty(){this.agent&&this.agent.dirty()}function seriesTaskPlan(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function seriesTaskReset(t){t.useClearVisual&&t.data.clearAllVisual();var r=t.resetDefines=normalizeToArray(t.reset(t.model,t.ecModel,t.api,t.payload));return r.length>1?map$2(r,function($,V){return makeSeriesTaskProgress(V)}):singleSeriesTaskProgress}var singleSeriesTaskProgress=makeSeriesTaskProgress(0);function makeSeriesTaskProgress(t){return function(r,$){var V=$.data,oe=$.resetDefines[t];if(oe&&oe.dataEach)for(var ie=r.start;ie0&&Ie===pe.length-$e.length){var Ve=pe.slice(0,Ie);Ve!=="data"&&($.mainType=Ve,$[$e.toLowerCase()]=de,he=!0)}}ue.hasOwnProperty(pe)&&(V[pe]=de,he=!0),he||(oe[pe]=de)})}return{cptQuery:$,dataQuery:V,otherQuery:oe}},t.prototype.filter=function(r,$){var V=this.eventInfo;if(!V)return!0;var oe=V.targetEl,ie=V.packedEvent,le=V.model,ue=V.view;if(!le||!ue)return!0;var de=$.cptQuery,pe=$.dataQuery;return he(de,le,"mainType")&&he(de,le,"subType")&&he(de,le,"index","componentIndex")&&he(de,le,"name")&&he(de,le,"id")&&he(pe,ie,"name")&&he(pe,ie,"dataIndex")&&he(pe,ie,"dataType")&&(!ue.filterForExposedEvent||ue.filterForExposedEvent(r,$.otherQuery,oe,ie));function he(_e,$e,Ie,Ve){return _e[Ie]==null||$e[Ve||Ie]===_e[Ie]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),SYMBOL_PROPS_WITH_CB=["symbol","symbolSize","symbolRotate","symbolOffset"],SYMBOL_PROPS=SYMBOL_PROPS_WITH_CB.concat(["symbolKeepAspect"]),seriesSymbolTask={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,r){var $=t.getData();if(t.legendIcon&&$.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var V={},oe={},ie=!1,le=0;le=0&&isSafeNum(de)?de:.5;var pe=t.createRadialGradient(le,ue,0,le,ue,de);return pe}function getCanvasGradient(t,r,$){for(var V=r.type==="radial"?createRadialGradient(t,r,$):createLinearGradient(t,r,$),oe=r.colorStops,ie=0;ie0)?null:t==="dashed"?[4*r,2*r]:t==="dotted"?[r]:isNumber(t)?[t]:isArray$1(t)?t:null}function getLineDash(t){var r=t.style,$=r.lineDash&&r.lineWidth>0&&normalizeLineDash(r.lineDash,r.lineWidth),V=r.lineDashOffset;if($){var oe=r.strokeNoScale&&t.getLineScale?t.getLineScale():1;oe&&oe!==1&&($=map$2($,function(ie){return ie/oe}),V/=oe)}return[$,V]}var pathProxyForDraw=new PathProxy$1(!0);function styleHasStroke(t){var r=t.stroke;return!(r==null||r==="none"||!(t.lineWidth>0))}function isValidStrokeFillStyle(t){return typeof t=="string"&&t!=="none"}function styleHasFill(t){var r=t.fill;return r!=null&&r!=="none"}function doFillPath(t,r){if(r.fillOpacity!=null&&r.fillOpacity!==1){var $=t.globalAlpha;t.globalAlpha=r.fillOpacity*r.opacity,t.fill(),t.globalAlpha=$}else t.fill()}function doStrokePath(t,r){if(r.strokeOpacity!=null&&r.strokeOpacity!==1){var $=t.globalAlpha;t.globalAlpha=r.strokeOpacity*r.opacity,t.stroke(),t.globalAlpha=$}else t.stroke()}function createCanvasPattern(t,r,$){var V=createOrUpdateImage(r.image,r.__image,$);if(isImageReady(V)){var oe=t.createPattern(V,r.repeat||"repeat");if(typeof DOMMatrix=="function"&&oe&&oe.setTransform){var ie=new DOMMatrix;ie.translateSelf(r.x||0,r.y||0),ie.rotateSelf(0,0,(r.rotation||0)*RADIAN_TO_DEGREE),ie.scaleSelf(r.scaleX||1,r.scaleY||1),oe.setTransform(ie)}return oe}}function brushPath(t,r,$,V){var oe,ie=styleHasStroke($),le=styleHasFill($),ue=$.strokePercent,de=ue<1,pe=!r.path;(!r.silent||de)&&pe&&r.createPathProxy();var he=r.path||pathProxyForDraw,_e=r.__dirty;if(!V){var $e=$.fill,Ie=$.stroke,Ve=le&&!!$e.colorStops,Fe=ie&&!!Ie.colorStops,Ue=le&&!!$e.image,qe=ie&&!!Ie.image,Et=void 0,Lt=void 0,hn=void 0,Cn=void 0,bn=void 0;(Ve||Fe)&&(bn=r.getBoundingRect()),Ve&&(Et=_e?getCanvasGradient(t,$e,bn):r.__canvasFillGradient,r.__canvasFillGradient=Et),Fe&&(Lt=_e?getCanvasGradient(t,Ie,bn):r.__canvasStrokeGradient,r.__canvasStrokeGradient=Lt),Ue&&(hn=_e||!r.__canvasFillPattern?createCanvasPattern(t,$e,r):r.__canvasFillPattern,r.__canvasFillPattern=hn),qe&&(Cn=_e||!r.__canvasStrokePattern?createCanvasPattern(t,Ie,r):r.__canvasStrokePattern,r.__canvasStrokePattern=hn),Ve?t.fillStyle=Et:Ue&&(hn?t.fillStyle=hn:le=!1),Fe?t.strokeStyle=Lt:qe&&(Cn?t.strokeStyle=Cn:ie=!1)}var Sn=r.getGlobalScale();he.setScale(Sn[0],Sn[1],r.segmentIgnoreThreshold);var En,wn;t.setLineDash&&$.lineDash&&(oe=getLineDash(r),En=oe[0],wn=oe[1]);var $n=!0;(pe||_e&SHAPE_CHANGED_BIT)&&(he.setDPR(t.dpr),de?he.setContext(null):(he.setContext(t),$n=!1),he.reset(),r.buildPath(he,r.shape,V),he.toStatic(),r.pathUpdated()),$n&&he.rebuildPath(t,de?ue:1),En&&(t.setLineDash(En),t.lineDashOffset=wn),V||($.strokeFirst?(ie&&doStrokePath(t,$),le&&doFillPath(t,$)):(le&&doFillPath(t,$),ie&&doStrokePath(t,$))),En&&t.setLineDash([])}function brushImage(t,r,$){var V=r.__image=createOrUpdateImage($.image,r.__image,r,r.onload);if(!(!V||!isImageReady(V))){var oe=$.x||0,ie=$.y||0,le=r.getWidth(),ue=r.getHeight(),de=V.width/V.height;if(le==null&&ue!=null?le=ue*de:ue==null&&le!=null?ue=le/de:le==null&&ue==null&&(le=V.width,ue=V.height),$.sWidth&&$.sHeight){var pe=$.sx||0,he=$.sy||0;t.drawImage(V,pe,he,$.sWidth,$.sHeight,oe,ie,le,ue)}else if($.sx&&$.sy){var pe=$.sx,he=$.sy,_e=le-pe,$e=ue-he;t.drawImage(V,pe,he,_e,$e,oe,ie,le,ue)}else t.drawImage(V,oe,ie,le,ue)}}function brushText(t,r,$){var V,oe=$.text;if(oe!=null&&(oe+=""),oe){t.font=$.font||DEFAULT_FONT,t.textAlign=$.textAlign,t.textBaseline=$.textBaseline;var ie=void 0,le=void 0;t.setLineDash&&$.lineDash&&(V=getLineDash(r),ie=V[0],le=V[1]),ie&&(t.setLineDash(ie),t.lineDashOffset=le),$.strokeFirst?(styleHasStroke($)&&t.strokeText(oe,$.x,$.y),styleHasFill($)&&t.fillText(oe,$.x,$.y)):(styleHasFill($)&&t.fillText(oe,$.x,$.y),styleHasStroke($)&&t.strokeText(oe,$.x,$.y)),ie&&t.setLineDash([])}}var SHADOW_NUMBER_PROPS=["shadowBlur","shadowOffsetX","shadowOffsetY"],STROKE_PROPS=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bindCommonProps(t,r,$,V,oe){var ie=!1;if(!V&&($=$||{},r===$))return!1;if(V||r.opacity!==$.opacity){flushPathDrawn(t,oe),ie=!0;var le=Math.max(Math.min(r.opacity,1),0);t.globalAlpha=isNaN(le)?DEFAULT_COMMON_STYLE.opacity:le}(V||r.blend!==$.blend)&&(ie||(flushPathDrawn(t,oe),ie=!0),t.globalCompositeOperation=r.blend||DEFAULT_COMMON_STYLE.blend);for(var ue=0;ue0&&$.unfinished);$.unfinished||this._zr.flush()}}},r.prototype.getDom=function(){return this._dom},r.prototype.getId=function(){return this.id},r.prototype.getZr=function(){return this._zr},r.prototype.isSSR=function(){return this._ssr},r.prototype.setOption=function($,V,oe){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}var ie,le,ue;if(isObject$3(V)&&(oe=V.lazyUpdate,ie=V.silent,le=V.replaceMerge,ue=V.transition,V=V.notMerge),this[IN_MAIN_PROCESS_KEY]=!0,!this._model||V){var de=new OptionManager$1(this._api),pe=this._theme,he=this._model=new GlobalModel$1;he.scheduler=this._scheduler,he.ssr=this._ssr,he.init(null,null,null,pe,this._locale,de)}this._model.setOption($,{replaceMerge:le},optionPreprocessorFuncs);var _e={seriesTransition:ue,optionChanged:!0};if(oe)this[PENDING_UPDATE]={silent:ie,updateParams:_e},this[IN_MAIN_PROCESS_KEY]=!1,this.getZr().wakeUp();else{try{prepare$1(this),updateMethods.update.call(this,null,_e)}catch($e){throw this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,$e}this._ssr||this._zr.flush(),this[PENDING_UPDATE]=null,this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,ie),triggerUpdatedEvent.call(this,ie)}}},r.prototype.setTheme=function(){},r.prototype.getModel=function(){return this._model},r.prototype.getOption=function(){return this._model&&this._model.getOption()},r.prototype.getWidth=function(){return this._zr.getWidth()},r.prototype.getHeight=function(){return this._zr.getHeight()},r.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||env$1.hasGlobalWindow&&window.devicePixelRatio||1},r.prototype.getRenderedCanvas=function($){return this.renderToCanvas($)},r.prototype.renderToCanvas=function($){$=$||{};var V=this._zr.painter;return V.getRenderedCanvas({backgroundColor:$.backgroundColor||this._model.get("backgroundColor"),pixelRatio:$.pixelRatio||this.getDevicePixelRatio()})},r.prototype.renderToSVGString=function($){$=$||{};var V=this._zr.painter;return V.renderToString({useViewBox:$.useViewBox})},r.prototype.getSvgDataURL=function(){if(env$1.svgSupported){var $=this._zr,V=$.storage.getDisplayList();return each$c(V,function(oe){oe.stopAnimation(null,!0)}),$.painter.toDataURL()}},r.prototype.getDataURL=function($){if(this._disposed){this.id;return}$=$||{};var V=$.excludeComponents,oe=this._model,ie=[],le=this;each$c(V,function(de){oe.eachComponent({mainType:de},function(pe){var he=le._componentsMap[pe.__viewId];he.group.ignore||(ie.push(he),he.group.ignore=!0)})});var ue=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas($).toDataURL("image/"+($&&$.type||"png"));return each$c(ie,function(de){de.group.ignore=!1}),ue},r.prototype.getConnectedDataURL=function($){if(this._disposed){this.id;return}var V=$.type==="svg",oe=this.group,ie=Math.min,le=Math.max,ue=1/0;if(connectedGroups[oe]){var de=ue,pe=ue,he=-ue,_e=-ue,$e=[],Ie=$&&$.pixelRatio||this.getDevicePixelRatio();each$c(instances,function(Lt,hn){if(Lt.group===oe){var Cn=V?Lt.getZr().painter.getSvgDom().innerHTML:Lt.renderToCanvas(clone$3($)),bn=Lt.getDom().getBoundingClientRect();de=ie(bn.left,de),pe=ie(bn.top,pe),he=le(bn.right,he),_e=le(bn.bottom,_e),$e.push({dom:Cn,left:bn.left,top:bn.top})}}),de*=Ie,pe*=Ie,he*=Ie,_e*=Ie;var Ve=he-de,Fe=_e-pe,Ue=platformApi.createCanvas(),qe=init$1(Ue,{renderer:V?"svg":"canvas"});if(qe.resize({width:Ve,height:Fe}),V){var Et="";return each$c($e,function(Lt){var hn=Lt.left-de,Cn=Lt.top-pe;Et+=''+Lt.dom+""}),qe.painter.getSvgRoot().innerHTML=Et,$.connectedBackgroundColor&&qe.painter.setBackgroundColor($.connectedBackgroundColor),qe.refreshImmediately(),qe.painter.toDataURL()}else return $.connectedBackgroundColor&&qe.add(new Rect$2({shape:{x:0,y:0,width:Ve,height:Fe},style:{fill:$.connectedBackgroundColor}})),each$c($e,function(Lt){var hn=new ZRImage$1({style:{x:Lt.left*Ie-de,y:Lt.top*Ie-pe,image:Lt.dom}});qe.add(hn)}),qe.refreshImmediately(),Ue.toDataURL("image/"+($&&$.type||"png"))}else return this.getDataURL($)},r.prototype.convertToPixel=function($,V){return doConvertPixel(this,"convertToPixel",$,V)},r.prototype.convertFromPixel=function($,V){return doConvertPixel(this,"convertFromPixel",$,V)},r.prototype.containPixel=function($,V){if(this._disposed){this.id;return}var oe=this._model,ie,le=parseFinder$1(oe,$);return each$c(le,function(ue,de){de.indexOf("Models")>=0&&each$c(ue,function(pe){var he=pe.coordinateSystem;if(he&&he.containPoint)ie=ie||!!he.containPoint(V);else if(de==="seriesModels"){var _e=this._chartsMap[pe.__viewId];_e&&_e.containPoint&&(ie=ie||_e.containPoint(V,pe))}},this)},this),!!ie},r.prototype.getVisual=function($,V){var oe=this._model,ie=parseFinder$1(oe,$,{defaultMainType:"series"}),le=ie.seriesModel,ue=le.getData(),de=ie.hasOwnProperty("dataIndexInside")?ie.dataIndexInside:ie.hasOwnProperty("dataIndex")?ue.indexOfRawIndex(ie.dataIndex):null;return de!=null?getItemVisualFromData(ue,de,V):getVisualFromData(ue,V)},r.prototype.getViewOfComponentModel=function($){return this._componentsMap[$.__viewId]},r.prototype.getViewOfSeriesModel=function($){return this._chartsMap[$.__viewId]},r.prototype._initEvents=function(){var $=this;each$c(MOUSE_EVENT_NAMES,function(V){var oe=function(ie){var le=$.getModel(),ue=ie.target,de,pe=V==="globalout";if(pe?de={}:ue&&findEventDispatcher(ue,function(Ve){var Fe=getECData(Ve);if(Fe&&Fe.dataIndex!=null){var Ue=Fe.dataModel||le.getSeriesByIndex(Fe.seriesIndex);return de=Ue&&Ue.getDataParams(Fe.dataIndex,Fe.dataType,ue)||{},!0}else if(Fe.eventData)return de=extend({},Fe.eventData),!0},!0),de){var he=de.componentType,_e=de.componentIndex;(he==="markLine"||he==="markPoint"||he==="markArea")&&(he="series",_e=de.seriesIndex);var $e=he&&_e!=null&&le.getComponent(he,_e),Ie=$e&&$[$e.mainType==="series"?"_chartsMap":"_componentsMap"][$e.__viewId];de.event=ie,de.type=V,$._$eventProcessor.eventInfo={targetEl:ue,packedEvent:de,model:$e,view:Ie},$.trigger(V,de)}};oe.zrEventfulCallAtLast=!0,$._zr.on(V,oe,$)}),each$c(eventActionMap,function(V,oe){$._messageCenter.on(oe,function(ie){this.trigger(oe,ie)},$)}),each$c(["selectchanged"],function(V){$._messageCenter.on(V,function(oe){this.trigger(V,oe)},$)}),handleLegacySelectEvents(this._messageCenter,this,this._api)},r.prototype.isDisposed=function(){return this._disposed},r.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},r.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var $=this.getDom();$&&setAttribute(this.getDom(),DOM_ATTRIBUTE_KEY,"");var V=this,oe=V._api,ie=V._model;each$c(V._componentsViews,function(le){le.dispose(ie,oe)}),each$c(V._chartsViews,function(le){le.dispose(ie,oe)}),V._zr.dispose(),V._dom=V._model=V._chartsMap=V._componentsMap=V._chartsViews=V._componentsViews=V._scheduler=V._api=V._zr=V._throttledZrFlush=V._theme=V._coordSysMgr=V._messageCenter=null,delete instances[V.id]},r.prototype.resize=function($){if(!this[IN_MAIN_PROCESS_KEY]){if(this._disposed){this.id;return}this._zr.resize($);var V=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!V){var oe=V.resetOption("media"),ie=$&&$.silent;this[PENDING_UPDATE]&&(ie==null&&(ie=this[PENDING_UPDATE].silent),oe=!0,this[PENDING_UPDATE]=null),this[IN_MAIN_PROCESS_KEY]=!0;try{oe&&prepare$1(this),updateMethods.update.call(this,{type:"resize",animation:extend({duration:0},$&&$.animation)})}catch(le){throw this[IN_MAIN_PROCESS_KEY]=!1,le}this[IN_MAIN_PROCESS_KEY]=!1,flushPendingActions.call(this,ie),triggerUpdatedEvent.call(this,ie)}}},r.prototype.showLoading=function($,V){if(this._disposed){this.id;return}if(isObject$3($)&&(V=$,$=""),$=$||"default",this.hideLoading(),!!loadingEffects[$]){var oe=loadingEffects[$](this._api,V),ie=this._zr;this._loadingFX=oe,ie.add(oe)}},r.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},r.prototype.makeActionFromEvent=function($){var V=extend({},$);return V.type=eventActionMap[$.type],V},r.prototype.dispatchAction=function($,V){if(this._disposed){this.id;return}if(isObject$3(V)||(V={silent:!!V}),!!actions[$.type]&&this._model){if(this[IN_MAIN_PROCESS_KEY]){this._pendingActions.push($);return}var oe=V.silent;doDispatchAction.call(this,$,oe);var ie=V.flush;ie?this._zr.flush():ie!==!1&&env$1.browser.weChat&&this._throttledZrFlush(),flushPendingActions.call(this,oe),triggerUpdatedEvent.call(this,oe)}},r.prototype.updateLabelLayout=function(){lifecycle$1.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},r.prototype.appendData=function($){if(this._disposed){this.id;return}var V=$.seriesIndex,oe=this.getModel(),ie=oe.getSeriesByIndex(V);ie.appendData($),this._scheduler.unfinished=!0,this.getZr().wakeUp()},r.internalField=function(){prepare$1=function(_e){var $e=_e._scheduler;$e.restorePipelines(_e._model),$e.prepareStageTasks(),prepareView(_e,!0),prepareView(_e,!1),$e.plan()},prepareView=function(_e,$e){for(var Ie=_e._model,Ve=_e._scheduler,Fe=$e?_e._componentsViews:_e._chartsViews,Ue=$e?_e._componentsMap:_e._chartsMap,qe=_e._zr,Et=_e._api,Lt=0;Lt$e.get("hoverLayerThreshold")&&!env$1.node&&!env$1.worker&&$e.eachSeries(function(Ue){if(!Ue.preventUsingHoverLayer){var qe=_e._chartsMap[Ue.__viewId];qe.__alive&&qe.eachRendered(function(Et){Et.states.emphasis&&(Et.states.emphasis.hoverLayer=!0)})}})}function le(_e,$e){var Ie=_e.get("blendMode")||null;$e.eachRendered(function(Ve){Ve.isGroup||(Ve.style.blend=Ie)})}function ue(_e,$e){if(!_e.preventAutoZ){var Ie=_e.get("z")||0,Ve=_e.get("zlevel")||0;$e.eachRendered(function(Fe){return de(Fe,Ie,Ve,-1/0),!0})}}function de(_e,$e,Ie,Ve){var Fe=_e.getTextContent(),Ue=_e.getTextGuideLine(),qe=_e.isGroup;if(qe)for(var Et=_e.childrenRef(),Lt=0;Lt0?{duration:Fe,delay:Ie.get("delay"),easing:Ie.get("easing")}:null;$e.eachRendered(function(qe){if(qe.states&&qe.states.emphasis){if(isElementRemoved(qe))return;if(qe instanceof Path$1&&savePathStates(qe),qe.__dirty){var Et=qe.prevStates;Et&&qe.useStates(Et)}if(Ve){qe.stateTransition=Ue;var Lt=qe.getTextContent(),hn=qe.getTextGuideLine();Lt&&(Lt.stateTransition=Ue),hn&&(hn.stateTransition=Ue)}qe.__dirty&&oe(qe)}})}createExtensionAPI=function(_e){return new(function($e){__extends(Ie,$e);function Ie(){return $e!==null&&$e.apply(this,arguments)||this}return Ie.prototype.getCoordinateSystems=function(){return _e._coordSysMgr.getCoordinateSystems()},Ie.prototype.getComponentByElement=function(Ve){for(;Ve;){var Fe=Ve.__ecComponentInfo;if(Fe!=null)return _e._model.getComponent(Fe.mainType,Fe.index);Ve=Ve.parent}},Ie.prototype.enterEmphasis=function(Ve,Fe){enterEmphasis(Ve,Fe),markStatusToUpdate(_e)},Ie.prototype.leaveEmphasis=function(Ve,Fe){leaveEmphasis(Ve,Fe),markStatusToUpdate(_e)},Ie.prototype.enterBlur=function(Ve){enterBlur(Ve),markStatusToUpdate(_e)},Ie.prototype.leaveBlur=function(Ve){leaveBlur(Ve),markStatusToUpdate(_e)},Ie.prototype.enterSelect=function(Ve){enterSelect(Ve),markStatusToUpdate(_e)},Ie.prototype.leaveSelect=function(Ve){leaveSelect(Ve),markStatusToUpdate(_e)},Ie.prototype.getModel=function(){return _e.getModel()},Ie.prototype.getViewOfComponentModel=function(Ve){return _e.getViewOfComponentModel(Ve)},Ie.prototype.getViewOfSeriesModel=function(Ve){return _e.getViewOfSeriesModel(Ve)},Ie}(ExtensionAPI$1))(_e)},enableConnect=function(_e){function $e(Ie,Ve){for(var Fe=0;Fe=0)){registeredTasks.push($);var ie=Scheduler$1.wrapStageHandler($,oe);ie.__prio=r,ie.__raw=$,t.push(ie)}}function registerLoading(t,r){loadingEffects[t]=r}function setCanvasCreator(t){setPlatformAPI({createCanvas:t})}function registerMap(t,r,$){var V=getImpl("registerMap");V&&V(t,r,$)}function getMap(t){var r=getImpl("getMap");return r&&r(t)}var registerTransform=registerExternalTransform;registerVisual(PRIORITY_VISUAL_GLOBAL,seriesStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataStyleTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataColorPaletteTask);registerVisual(PRIORITY_VISUAL_GLOBAL,seriesSymbolTask);registerVisual(PRIORITY_VISUAL_CHART_DATA_CUSTOM,dataSymbolTask);registerVisual(PRIORITY_VISUAL_DECAL,decalVisual);registerPreprocessor(globalBackwardCompat);registerProcessor(PRIORITY_PROCESSOR_DATASTACK,dataStack$1);registerLoading("default",defaultLoading);registerAction({type:HIGHLIGHT_ACTION_TYPE,event:HIGHLIGHT_ACTION_TYPE,update:HIGHLIGHT_ACTION_TYPE},noop);registerAction({type:DOWNPLAY_ACTION_TYPE,event:DOWNPLAY_ACTION_TYPE,update:DOWNPLAY_ACTION_TYPE},noop);registerAction({type:SELECT_ACTION_TYPE,event:SELECT_ACTION_TYPE,update:SELECT_ACTION_TYPE},noop);registerAction({type:UNSELECT_ACTION_TYPE,event:UNSELECT_ACTION_TYPE,update:UNSELECT_ACTION_TYPE},noop);registerAction({type:TOGGLE_SELECT_ACTION_TYPE,event:TOGGLE_SELECT_ACTION_TYPE,update:TOGGLE_SELECT_ACTION_TYPE},noop);registerTheme("light",lightTheme);registerTheme("dark",darkTheme);var dataTool={};function dataIndexMapValueLength(t){return t==null?0:t.length||1}function defaultKeyGetter(t){return t}var DataDiffer=function(){function t(r,$,V,oe,ie,le){this._old=r,this._new=$,this._oldKeyGetter=V||defaultKeyGetter,this._newKeyGetter=oe||defaultKeyGetter,this.context=ie,this._diffModeMultiple=le==="multiple"}return t.prototype.add=function(r){return this._add=r,this},t.prototype.update=function(r){return this._update=r,this},t.prototype.updateManyToOne=function(r){return this._updateManyToOne=r,this},t.prototype.updateOneToMany=function(r){return this._updateOneToMany=r,this},t.prototype.updateManyToMany=function(r){return this._updateManyToMany=r,this},t.prototype.remove=function(r){return this._remove=r,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var r=this._old,$=this._new,V={},oe=new Array(r.length),ie=new Array($.length);this._initIndexMap(r,null,oe,"_oldKeyGetter"),this._initIndexMap($,V,ie,"_newKeyGetter");for(var le=0;le1){var he=de.shift();de.length===1&&(V[ue]=de[0]),this._update&&this._update(he,le)}else pe===1?(V[ue]=null,this._update&&this._update(de,le)):this._remove&&this._remove(le)}this._performRestAdd(ie,V)},t.prototype._executeMultiple=function(){var r=this._old,$=this._new,V={},oe={},ie=[],le=[];this._initIndexMap(r,V,ie,"_oldKeyGetter"),this._initIndexMap($,oe,le,"_newKeyGetter");for(var ue=0;ue1&&$e===1)this._updateManyToOne&&this._updateManyToOne(he,pe),oe[de]=null;else if(_e===1&&$e>1)this._updateOneToMany&&this._updateOneToMany(he,pe),oe[de]=null;else if(_e===1&&$e===1)this._update&&this._update(he,pe),oe[de]=null;else if(_e>1&&$e>1)this._updateManyToMany&&this._updateManyToMany(he,pe),oe[de]=null;else if(_e>1)for(var Ie=0;Ie<_e;Ie++)this._remove&&this._remove(pe[Ie]);else this._remove&&this._remove(pe)}this._performRestAdd(le,oe)},t.prototype._performRestAdd=function(r,$){for(var V=0;V1)for(var ue=0;ue30}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 t(r,$){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var V,oe=!1;isSeriesDataSchema(r)?(V=r.dimensions,this._dimOmitted=r.isDimensionOmitted(),this._schema=r):(oe=!0,V=r),V=V||["x","y"];for(var ie={},le=[],ue={},de=!1,pe={},he=0;he=$)){var V=this._store,oe=V.getProvider();this._updateOrdinalMeta();var ie=this._nameList,le=this._idList,ue=oe.getSource().sourceFormat,de=ue===SOURCE_FORMAT_ORIGINAL;if(de&&!oe.pure)for(var pe=[],he=r;he<$;he++){var _e=oe.getItem(he,pe);if(!this.hasItemOption&&isDataItemOption(_e)&&(this.hasItemOption=!0),_e){var $e=_e.name;ie[he]==null&&$e!=null&&(ie[he]=convertOptionIdName($e,null));var Ie=_e.id;le[he]==null&&Ie!=null&&(le[he]=convertOptionIdName(Ie,null))}}if(this._shouldMakeIdFromName())for(var he=r;he<$;he++)makeIdFromName(this,he);prepareInvertedIndex(this)}},t.prototype.getApproximateExtent=function(r){return this._approximateExtent[r]||this._store.getDataExtent(this._getStoreDimIndex(r))},t.prototype.setApproximateExtent=function(r,$){$=this.getDimension($),this._approximateExtent[$]=r.slice()},t.prototype.getCalculationInfo=function(r){return this._calculationInfo[r]},t.prototype.setCalculationInfo=function(r,$){isObject$1(r)?extend(this._calculationInfo,r):this._calculationInfo[r]=$},t.prototype.getName=function(r){var $=this.getRawIndex(r),V=this._nameList[$];return V==null&&this._nameDimIdx!=null&&(V=getIdNameFromStore(this,this._nameDimIdx,$)),V==null&&(V=""),V},t.prototype._getCategory=function(r,$){var V=this._store.get(r,$),oe=this._store.getOrdinalMeta(r);return oe?oe.categories[V]:V},t.prototype.getId=function(r){return getId(this,this.getRawIndex(r))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(r,$){var V=this._store,oe=this._dimInfos[r];if(oe)return V.get(oe.storeDimIndex,$)},t.prototype.getByRawIndex=function(r,$){var V=this._store,oe=this._dimInfos[r];if(oe)return V.getByRawIndex(oe.storeDimIndex,$)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(r){return this._store.getDataExtent(this._getStoreDimIndex(r))},t.prototype.getSum=function(r){return this._store.getSum(this._getStoreDimIndex(r))},t.prototype.getMedian=function(r){return this._store.getMedian(this._getStoreDimIndex(r))},t.prototype.getValues=function(r,$){var V=this,oe=this._store;return isArray$1(r)?oe.getValues(map$1(r,function(ie){return V._getStoreDimIndex(ie)}),$):oe.getValues(r)},t.prototype.hasValue=function(r){for(var $=this._dimSummary.dataDimIndicesOnCoord,V=0,oe=$.length;V0},t.prototype.ensureUniqueItemVisual=function(r,$){var V=this._itemVisuals,oe=V[r];oe||(oe=V[r]={});var ie=oe[$];return ie==null&&(ie=this.getVisual($),isArray$1(ie)?ie=ie.slice():isObject$1(ie)&&(ie=extend({},ie)),oe[$]=ie),ie},t.prototype.setItemVisual=function(r,$,V){var oe=this._itemVisuals[r]||{};this._itemVisuals[r]=oe,isObject$1($)?extend(oe,$):oe[$]=V},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(r,$){isObject$1(r)?extend(this._layout,r):this._layout[r]=$},t.prototype.getLayout=function(r){return this._layout[r]},t.prototype.getItemLayout=function(r){return this._itemLayouts[r]},t.prototype.setItemLayout=function(r,$,V){this._itemLayouts[r]=V?extend(this._itemLayouts[r]||{},$):$},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(r,$){var V=this.hostModel&&this.hostModel.seriesIndex;setCommonECData(V,this.dataType,r,$),this._graphicEls[r]=$},t.prototype.getItemGraphicEl=function(r){return this._graphicEls[r]},t.prototype.eachItemGraphicEl=function(r,$){each$c(this._graphicEls,function(V,oe){V&&r&&r.call($,V,oe)})},t.prototype.cloneShallow=function(r){return r||(r=new t(this._schema?this._schema:map$1(this.dimensions,this._getDimInfo,this),this.hostModel)),transferProperties(r,this),r._store=this._store,r},t.prototype.wrapMethod=function(r,$){var V=this[r];isFunction(V)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(r),this[r]=function(){var oe=V.apply(this,arguments);return $.apply(this,[oe].concat(slice(arguments)))})},t.internalField=function(){prepareInvertedIndex=function(r){var $=r._invertedIndicesMap;each$c($,function(V,oe){var ie=r._dimInfos[oe],le=ie.ordinalMeta,ue=r._store;if(le){V=$[oe]=new CtorInt32Array(le.categories.length);for(var de=0;de1&&(de+="__ec__"+he),oe[$]=de}}}(),t}();const SeriesData$1=SeriesData;function createDimensions(t,r){return prepareSeriesDataSchema(t,r).dimensions}function prepareSeriesDataSchema(t,r){isSourceInstance(t)||(t=createSourceFromSeriesDataOption(t)),r=r||{};var $=r.coordDimensions||[],V=r.dimensionsDefine||t.dimensionsDefine||[],oe=createHashMap(),ie=[],le=getDimCount(t,$,V,r.dimensionsCount),ue=r.canOmitUnusedDimensions&&shouldOmitUnusedDimensions(le),de=V===t.dimensionsDefine,pe=de?ensureSourceDimNameMap(t):createDimNameMap(V),he=r.encodeDefine;!he&&r.encodeDefaulter&&(he=r.encodeDefaulter(t,le));for(var _e=createHashMap(he),$e=new CtorInt32Array$1(le),Ie=0;Ie<$e.length;Ie++)$e[Ie]=-1;function Ve(wn){var $n=$e[wn];if($n<0){var Tn=V[wn],xn=isObject$3(Tn)?Tn:{name:Tn},An=new SeriesDimensionDefine$1,Mn=xn.name;Mn!=null&&pe.get(Mn)!=null&&(An.name=An.displayName=Mn),xn.type!=null&&(An.type=xn.type),xn.displayName!=null&&(An.displayName=xn.displayName);var Vn=ie.length;return $e[wn]=Vn,An.storeDimIndex=wn,ie.push(An),An}return ie[$n]}if(!ue)for(var Ie=0;Ie0&&(V.name=oe+(ie-1)),ie++,r.set(oe,ie)}}function getDimCount(t,r,$,V){var oe=Math.max(t.dimensionsDetectedCount||1,r.length,$.length,V||0);return each$c(r,function(ie){var le;isObject$3(ie)&&(le=ie.dimsDef)&&(oe=Math.max(oe,le.length))}),oe}function genCoordDimName(t,r,$){if($||r.hasKey(t)){for(var V=0;r.hasKey(t+V);)V++;t+=V}return r.set(t,!0),t}var CoordSysInfo=function(){function t(r){this.coordSysDims=[],this.axisMap=createHashMap(),this.categoryAxisMap=createHashMap(),this.coordSysName=r}return t}();function getCoordSysInfoBySeries(t){var r=t.get("coordinateSystem"),$=new CoordSysInfo(r),V=fetchers[r];if(V)return V(t,$,$.axisMap,$.categoryAxisMap),$}var fetchers={cartesian2d:function(t,r,$,V){var oe=t.getReferringComponents("xAxis",SINGLE_REFERRING).models[0],ie=t.getReferringComponents("yAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["x","y"],$.set("x",oe),$.set("y",ie),isCategory(oe)&&(V.set("x",oe),r.firstCategoryDimIndex=0),isCategory(ie)&&(V.set("y",ie),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},singleAxis:function(t,r,$,V){var oe=t.getReferringComponents("singleAxis",SINGLE_REFERRING).models[0];r.coordSysDims=["single"],$.set("single",oe),isCategory(oe)&&(V.set("single",oe),r.firstCategoryDimIndex=0)},polar:function(t,r,$,V){var oe=t.getReferringComponents("polar",SINGLE_REFERRING).models[0],ie=oe.findAxisModel("radiusAxis"),le=oe.findAxisModel("angleAxis");r.coordSysDims=["radius","angle"],$.set("radius",ie),$.set("angle",le),isCategory(ie)&&(V.set("radius",ie),r.firstCategoryDimIndex=0),isCategory(le)&&(V.set("angle",le),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=1))},geo:function(t,r,$,V){r.coordSysDims=["lng","lat"]},parallel:function(t,r,$,V){var oe=t.ecModel,ie=oe.getComponent("parallel",t.get("parallelIndex")),le=r.coordSysDims=ie.dimensions.slice();each$c(ie.parallelAxisIndex,function(ue,de){var pe=oe.getComponent("parallelAxis",ue),he=le[de];$.set(he,pe),isCategory(pe)&&(V.set(he,pe),r.firstCategoryDimIndex==null&&(r.firstCategoryDimIndex=de))})}};function isCategory(t){return t.get("type")==="category"}function enableDataStack(t,r,$){$=$||{};var V=$.byIndex,oe=$.stackedCoordDimension,ie,le,ue;isLegacyDimensionsInput(r)?ie=r:(le=r.schema,ie=le.dimensions,ue=r.store);var de=!!(t&&t.get("stack")),pe,he,_e,$e;if(each$c(ie,function(Et,Lt){isString(Et)&&(ie[Lt]=Et={name:Et}),de&&!Et.isExtraCoord&&(!V&&!pe&&Et.ordinalMeta&&(pe=Et),!he&&Et.type!=="ordinal"&&Et.type!=="time"&&(!oe||oe===Et.coordDim)&&(he=Et))}),he&&!V&&!pe&&(V=!0),he){_e="__\0ecstackresult_"+t.id,$e="__\0ecstackedover_"+t.id,pe&&(pe.createInvertedIndices=!0);var Ie=he.coordDim,Ve=he.type,Fe=0;each$c(ie,function(Et){Et.coordDim===Ie&&Fe++});var Ue={name:_e,coordDim:Ie,coordDimIndex:Fe,type:Ve,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:ie.length},qe={name:$e,coordDim:$e,coordDimIndex:Fe+1,type:Ve,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:ie.length+1};le?(ue&&(Ue.storeDimIndex=ue.ensureCalculationDimension($e,Ve),qe.storeDimIndex=ue.ensureCalculationDimension(_e,Ve)),le.appendCalculationDimension(Ue),le.appendCalculationDimension(qe)):(ie.push(Ue),ie.push(qe))}return{stackedDimension:he&&he.name,stackedByDimension:pe&&pe.name,isStackedByIndex:V,stackedOverDimension:$e,stackResultDimension:_e}}function isLegacyDimensionsInput(t){return!isSeriesDataSchema(t.schema)}function isDimensionStacked(t,r){return!!r&&r===t.getCalculationInfo("stackedDimension")}function getStackedDimension(t,r){return isDimensionStacked(t,r)?t.getCalculationInfo("stackResultDimension"):r}function getCoordSysDimDefs(t,r){var $=t.get("coordinateSystem"),V=CoordinateSystem.get($),oe;return r&&r.coordSysDims&&(oe=map$2(r.coordSysDims,function(ie){var le={name:ie},ue=r.axisMap.get(ie);if(ue){var de=ue.get("type");le.type=getDimensionTypeByAxis(de)}return le})),oe||(oe=V&&(V.getDimensionsInfo?V.getDimensionsInfo():V.dimensions.slice())||["x","y"]),oe}function injectOrdinalMeta(t,r,$){var V,oe;return $&&each$c(t,function(ie,le){var ue=ie.coordDim,de=$.categoryAxisMap.get(ue);de&&(V==null&&(V=le),ie.ordinalMeta=de.getOrdinalMeta(),r&&(ie.createInvertedIndices=!0)),ie.otherDims.itemName!=null&&(oe=!0)}),!oe&&V!=null&&(t[V].otherDims.itemName=0),V}function createSeriesData(t,r,$){$=$||{};var V=r.getSourceManager(),oe,ie=!1;t?(ie=!0,oe=createSourceFromSeriesDataOption(t)):(oe=V.getSource(),ie=oe.sourceFormat===SOURCE_FORMAT_ORIGINAL);var le=getCoordSysInfoBySeries(r),ue=getCoordSysDimDefs(r,le),de=$.useEncodeDefaulter,pe=isFunction(de)?de:de?curry$1(makeSeriesEncodeForAxisCoordSys,ue,r):null,he={coordDimensions:ue,generateCoord:$.generateCoord,encodeDefine:r.getEncode(),encodeDefaulter:pe,canOmitUnusedDimensions:!ie},_e=prepareSeriesDataSchema(oe,he),$e=injectOrdinalMeta(_e.dimensions,$.createInvertedIndices,le),Ie=ie?null:V.getSharedDataStore(_e),Ve=enableDataStack(r,{schema:_e,store:Ie}),Fe=new SeriesData$1(_e,r);Fe.setCalculationInfo(Ve);var Ue=$e!=null&&isNeedCompleteOrdinalData(oe)?function(qe,Et,Lt,hn){return hn===$e?Lt:this.defaultDimValueGetter(qe,Et,Lt,hn)}:null;return Fe.hasItemOption=!1,Fe.initData(ie?oe:Ie,null,Ue),Fe}function isNeedCompleteOrdinalData(t){if(t.sourceFormat===SOURCE_FORMAT_ORIGINAL){var r=firstDataNotNull(t.data||[]);return!isArray$1(getDataItemValue(r))}}function firstDataNotNull(t){for(var r=0;r$[1]&&($[1]=r[1])},t.prototype.unionExtentFromData=function(r,$){this.unionExtent(r.getApproximateExtent($))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(r,$){var V=this._extent;isNaN(r)||(V[0]=r),isNaN($)||(V[1]=$)},t.prototype.isInExtentRange=function(r){return this._extent[0]<=r&&this._extent[1]>=r},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(r){this._isBlank=r},t}();enableClassManagement(Scale);const Scale$1=Scale;var uidBase=0,OrdinalMeta=function(){function t(r){this.categories=r.categories||[],this._needCollect=r.needCollect,this._deduplication=r.deduplication,this.uid=++uidBase}return t.createByAxisModel=function(r){var $=r.option,V=$.data,oe=V&&map$2(V,getName);return new t({categories:oe,needCollect:!oe,deduplication:$.dedplication!==!1})},t.prototype.getOrdinal=function(r){return this._getOrCreateMap().get(r)},t.prototype.parseAndCollect=function(r){var $,V=this._needCollect;if(!isString(r)&&!V)return r;if(V&&!this._deduplication)return $=this.categories.length,this.categories[$]=r,$;var oe=this._getOrCreateMap();return $=oe.get(r),$==null&&(V?($=this.categories.length,this.categories[$]=r,oe.set(r,$)):$=NaN),$},t.prototype._getOrCreateMap=function(){return this._map||(this._map=createHashMap(this.categories))},t}();function getName(t){return isObject$3(t)&&t.value!=null?t.value:t+""}const OrdinalMeta$1=OrdinalMeta;function isIntervalOrLogScale(t){return t.type==="interval"||t.type==="log"}function intervalScaleNiceTicks(t,r,$,V){var oe={},ie=t[1]-t[0],le=oe.interval=nice(ie/r,!0);$!=null&&le<$&&(le=oe.interval=$),V!=null&&le>V&&(le=oe.interval=V);var ue=oe.intervalPrecision=getIntervalPrecision(le),de=oe.niceTickExtent=[round$1(Math.ceil(t[0]/le)*le,ue),round$1(Math.floor(t[1]/le)*le,ue)];return fixExtent(de,t),oe}function increaseInterval(t){var r=Math.pow(10,quantityExponent(t)),$=t/r;return $?$===2?$=3:$===3?$=5:$*=2:$=1,round$1($*r)}function getIntervalPrecision(t){return getPrecision(t)+2}function clamp(t,r,$){t[r]=Math.max(Math.min(t[r],$[1]),$[0])}function fixExtent(t,r){!isFinite(t[0])&&(t[0]=r[0]),!isFinite(t[1])&&(t[1]=r[1]),clamp(t,0,r),clamp(t,1,r),t[0]>t[1]&&(t[0]=t[1])}function contain$1(t,r){return t>=r[0]&&t<=r[1]}function normalize(t,r){return r[1]===r[0]?.5:(t-r[0])/(r[1]-r[0])}function scale(t,r){return t*(r[1]-r[0])+r[0]}var OrdinalScale=function(t){__extends(r,t);function r($){var V=t.call(this,$)||this;V.type="ordinal";var oe=V.getSetting("ordinalMeta");return oe||(oe=new OrdinalMeta$1({})),isArray$1(oe)&&(oe=new OrdinalMeta$1({categories:map$2(oe,function(ie){return isObject$3(ie)?ie.value:ie})})),V._ordinalMeta=oe,V._extent=V.getSetting("extent")||[0,oe.categories.length-1],V}return r.prototype.parse=function($){return $==null?NaN:isString($)?this._ordinalMeta.getOrdinal($):Math.round($)},r.prototype.contain=function($){return $=this.parse($),contain$1($,this._extent)&&this._ordinalMeta.categories[$]!=null},r.prototype.normalize=function($){return $=this._getTickNumber(this.parse($)),normalize($,this._extent)},r.prototype.scale=function($){return $=Math.round(scale($,this._extent)),this.getRawOrdinalNumber($)},r.prototype.getTicks=function(){for(var $=[],V=this._extent,oe=V[0];oe<=V[1];)$.push({value:oe}),oe++;return $},r.prototype.getMinorTicks=function($){},r.prototype.setSortInfo=function($){if($==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var V=$.ordinalNumbers,oe=this._ordinalNumbersByTick=[],ie=this._ticksByOrdinalNumber=[],le=0,ue=this._ordinalMeta.categories.length,de=Math.min(ue,V.length);le=0&&$=0&&$=$},r.prototype.getOrdinalMeta=function(){return this._ordinalMeta},r.prototype.calcNiceTicks=function(){},r.prototype.calcNiceExtent=function(){},r.type="ordinal",r}(Scale$1);Scale$1.registerClass(OrdinalScale);const OrdinalScale$1=OrdinalScale;var roundNumber=round$1,IntervalScale=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type="interval",$._interval=0,$._intervalPrecision=2,$}return r.prototype.parse=function($){return $},r.prototype.contain=function($){return contain$1($,this._extent)},r.prototype.normalize=function($){return normalize($,this._extent)},r.prototype.scale=function($){return scale($,this._extent)},r.prototype.setExtent=function($,V){var oe=this._extent;isNaN($)||(oe[0]=parseFloat($)),isNaN(V)||(oe[1]=parseFloat(V))},r.prototype.unionExtent=function($){var V=this._extent;$[0]V[1]&&(V[1]=$[1]),this.setExtent(V[0],V[1])},r.prototype.getInterval=function(){return this._interval},r.prototype.setInterval=function($){this._interval=$,this._niceExtent=this._extent.slice(),this._intervalPrecision=getIntervalPrecision($)},r.prototype.getTicks=function($){var V=this._interval,oe=this._extent,ie=this._niceExtent,le=this._intervalPrecision,ue=[];if(!V)return ue;var de=1e4;oe[0]de)return[];var he=ue.length?ue[ue.length-1].value:ie[1];return oe[1]>he&&($?ue.push({value:roundNumber(he+V,le)}):ue.push({value:oe[1]})),ue},r.prototype.getMinorTicks=function($){for(var V=this.getTicks(!0),oe=[],ie=this.getExtent(),le=1;leie[0]&&Ie0&&(ie=ie===null?ue:Math.min(ie,ue))}$[V]=ie}}return $}function makeColumnLayout(t){var r=getValueAxesMinGaps(t),$=[];return each$c(t,function(V){var oe=V.coordinateSystem,ie=oe.getBaseAxis(),le=ie.getExtent(),ue;if(ie.type==="category")ue=ie.getBandWidth();else if(ie.type==="value"||ie.type==="time"){var de=ie.dim+"_"+ie.index,pe=r[de],he=Math.abs(le[1]-le[0]),_e=ie.scale.getExtent(),$e=Math.abs(_e[1]-_e[0]);ue=pe?he/$e*pe:he}else{var Ie=V.getData();ue=Math.abs(le[1]-le[0])/Ie.count()}var Ve=parsePercent(V.get("barWidth"),ue),Fe=parsePercent(V.get("barMaxWidth"),ue),Ue=parsePercent(V.get("barMinWidth")||(isInLargeMode(V)?.5:1),ue),qe=V.get("barGap"),Et=V.get("barCategoryGap");$.push({bandWidth:ue,barWidth:Ve,barMaxWidth:Fe,barMinWidth:Ue,barGap:qe,barCategoryGap:Et,axisKey:getAxisKey(ie),stackId:getSeriesStackId(V)})}),doCalBarWidthAndOffset($)}function doCalBarWidthAndOffset(t){var r={};each$c(t,function(V,oe){var ie=V.axisKey,le=V.bandWidth,ue=r[ie]||{bandWidth:le,remainedWidth:le,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},de=ue.stacks;r[ie]=ue;var pe=V.stackId;de[pe]||ue.autoWidthCount++,de[pe]=de[pe]||{width:0,maxWidth:0};var he=V.barWidth;he&&!de[pe].width&&(de[pe].width=he,he=Math.min(ue.remainedWidth,he),ue.remainedWidth-=he);var _e=V.barMaxWidth;_e&&(de[pe].maxWidth=_e);var $e=V.barMinWidth;$e&&(de[pe].minWidth=$e);var Ie=V.barGap;Ie!=null&&(ue.gap=Ie);var Ve=V.barCategoryGap;Ve!=null&&(ue.categoryGap=Ve)});var $={};return each$c(r,function(V,oe){$[oe]={};var ie=V.stacks,le=V.bandWidth,ue=V.categoryGap;if(ue==null){var de=keys(ie).length;ue=Math.max(35-de*4,15)+"%"}var pe=parsePercent(ue,le),he=parsePercent(V.gap,1),_e=V.remainedWidth,$e=V.autoWidthCount,Ie=(_e-pe)/($e+($e-1)*he);Ie=Math.max(Ie,0),each$c(ie,function(qe){var Et=qe.maxWidth,Lt=qe.minWidth;if(qe.width){var hn=qe.width;Et&&(hn=Math.min(hn,Et)),Lt&&(hn=Math.max(hn,Lt)),qe.width=hn,_e-=hn+he*hn,$e--}else{var hn=Ie;Et&&Ethn&&(hn=Lt),hn!==Ie&&(qe.width=hn,_e-=hn+he*hn,$e--)}}),Ie=(_e-pe)/($e+($e-1)*he),Ie=Math.max(Ie,0);var Ve=0,Fe;each$c(ie,function(qe,Et){qe.width||(qe.width=Ie),Fe=qe,Ve+=qe.width*(1+he)}),Fe&&(Ve-=Fe.width*he);var Ue=-Ve/2;each$c(ie,function(qe,Et){$[oe][Et]=$[oe][Et]||{bandWidth:le,offset:Ue,width:qe.width},Ue+=qe.width*(1+he)})}),$}function retrieveColumnLayout(t,r,$){if(t&&r){var V=t[getAxisKey(r)];return V!=null&&$!=null?V[getSeriesStackId($)]:V}}function layout$2(t,r){var $=prepareLayoutBarSeries(t,r),V=makeColumnLayout($);each$c($,function(oe){var ie=oe.getData(),le=oe.coordinateSystem,ue=le.getBaseAxis(),de=getSeriesStackId(oe),pe=V[getAxisKey(ue)][de],he=pe.offset,_e=pe.width;ie.setLayout({bandWidth:pe.bandWidth,offset:he,size:_e})})}function createProgressiveLayout(t){return{seriesType:t,plan:createRenderPlanner(),reset:function(r){if(isOnCartesian(r)){var $=r.getData(),V=r.coordinateSystem,oe=V.getBaseAxis(),ie=V.getOtherAxis(oe),le=$.getDimensionIndex($.mapDimension(ie.dim)),ue=$.getDimensionIndex($.mapDimension(oe.dim)),de=r.get("showBackground",!0),pe=$.mapDimension(ie.dim),he=$.getCalculationInfo("stackResultDimension"),_e=isDimensionStacked($,pe)&&!!$.getCalculationInfo("stackedOnSeries"),$e=ie.isHorizontal(),Ie=getValueAxisStart(oe,ie),Ve=isInLargeMode(r),Fe=r.get("barMinHeight")||0,Ue=he&&$.getDimensionIndex(he),qe=$.getLayout("size"),Et=$.getLayout("offset");return{progress:function(Lt,hn){for(var Cn=Lt.count,bn=Ve&&createFloat32Array(Cn*3),Sn=Ve&&de&&createFloat32Array(Cn*3),En=Ve&&createFloat32Array(Cn),wn=V.master.getRect(),$n=$e?wn.width:wn.height,Tn,xn=hn.getStore(),An=0;(Tn=Lt.next())!=null;){var Mn=xn.get(_e?Ue:le,Tn),Vn=xn.get(ue,Tn),Bn=Ie,Dn=void 0;_e&&(Dn=+Mn-xn.get(le,Tn));var Ln=void 0,Pn=void 0,Fn=void 0,Un=void 0;if($e){var Wn=V.dataToPoint([Mn,Vn]);if(_e){var Zn=V.dataToPoint([Dn,Vn]);Bn=Zn[0]}Ln=Bn,Pn=Wn[1]+Et,Fn=Wn[0]-Bn,Un=qe,Math.abs(Fn)>>1;t[oe][1]oe&&(this._approxInterval=oe);var ue=scaleIntervals.length,de=Math.min(bisect(scaleIntervals,this._approxInterval,0,ue),ue-1);this._interval=scaleIntervals[de][1],this._minLevelUnit=scaleIntervals[Math.max(de-1,0)][0]},r.prototype.parse=function($){return isNumber($)?$:+parseDate($)},r.prototype.contain=function($){return contain$1(this.parse($),this._extent)},r.prototype.normalize=function($){return normalize(this.parse($),this._extent)},r.prototype.scale=function($){return scale($,this._extent)},r.type="time",r}(IntervalScale$1),scaleIntervals=[["second",ONE_SECOND],["minute",ONE_MINUTE],["hour",ONE_HOUR],["quarter-day",ONE_HOUR*6],["half-day",ONE_HOUR*12],["day",ONE_DAY*1.2],["half-week",ONE_DAY*3.5],["week",ONE_DAY*7],["month",ONE_DAY*31],["quarter",ONE_DAY*95],["half-year",ONE_YEAR/2],["year",ONE_YEAR]];function isUnitValueSame(t,r,$,V){var oe=parseDate(r),ie=parseDate($),le=function(Ve){return getUnitValue(oe,Ve,V)===getUnitValue(ie,Ve,V)},ue=function(){return le("year")},de=function(){return ue()&&le("month")},pe=function(){return de()&&le("day")},he=function(){return pe()&&le("hour")},_e=function(){return he()&&le("minute")},$e=function(){return _e()&&le("second")},Ie=function(){return $e()&&le("millisecond")};switch(t){case"year":return ue();case"month":return de();case"day":return pe();case"hour":return he();case"minute":return _e();case"second":return $e();case"millisecond":return Ie()}}function getDateInterval(t,r){return t/=ONE_DAY,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function getMonthInterval(t){var r=30*ONE_DAY;return t/=r,t>6?6:t>3?3:t>2?2:1}function getHourInterval(t){return t/=ONE_HOUR,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function getMinutesAndSecondsInterval(t,r){return t/=r?ONE_MINUTE:ONE_SECOND,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function getMillisecondsInterval(t){return nice(t,!0)}function getFirstTimestampOfUnit(t,r,$){var V=new Date(t);switch(getPrimaryTimeUnit(r)){case"year":case"month":V[monthSetterName($)](0);case"day":V[dateSetterName($)](1);case"hour":V[hoursSetterName($)](0);case"minute":V[minutesSetterName($)](0);case"second":V[secondsSetterName($)](0),V[millisecondsSetterName($)](0)}return V.getTime()}function getIntervalTicks(t,r,$,V){var oe=1e4,ie=timeUnits,le=0;function ue($n,Tn,xn,An,Mn,Vn,Bn){for(var Dn=new Date(Tn),Ln=Tn,Pn=Dn[An]();Ln1&&Vn===0&&xn.unshift({value:xn[0].value-Ln})}}for(var Vn=0;Vn=V[0]&&Et<=V[1]&&_e++)}var Lt=(V[1]-V[0])/r;if(_e>Lt*1.5&&$e>Lt/1.5||(pe.push(Ue),_e>Lt||t===ie[Ie]))break}he=[]}}}for(var hn=filter(map$2(pe,function($n){return filter($n,function(Tn){return Tn.value>=V[0]&&Tn.value<=V[1]&&!Tn.notAdd})}),function($n){return $n.length>0}),Cn=[],bn=hn.length-1,Ie=0;Ie0;)ie*=10;var ue=[round$1(mathCeil(V[0]/ie)*ie),round$1(mathFloor(V[1]/ie)*ie)];this._interval=ie,this._niceExtent=ue}},r.prototype.calcNiceExtent=function($){intervalScaleProto.calcNiceExtent.call(this,$),this._fixMin=$.fixMin,this._fixMax=$.fixMax},r.prototype.parse=function($){return $},r.prototype.contain=function($){return $=mathLog$1($)/mathLog$1(this.base),contain$1($,this._extent)},r.prototype.normalize=function($){return $=mathLog$1($)/mathLog$1(this.base),normalize($,this._extent)},r.prototype.scale=function($){return $=scale($,this._extent),mathPow$1(this.base,$)},r.type="log",r}(Scale$1),proto=LogScale.prototype;proto.getMinorTicks=intervalScaleProto.getMinorTicks;proto.getLabel=intervalScaleProto.getLabel;function fixRoundingError(t,r){return roundingErrorFix(t,getPrecision(r))}Scale$1.registerClass(LogScale);const LogScale$1=LogScale;var ScaleRawExtentInfo=function(){function t(r,$,V){this._prepareParams(r,$,V)}return t.prototype._prepareParams=function(r,$,V){V[1]0&&de>0&&!pe&&(ue=0),ue<0&&de<0&&!he&&(de=0));var $e=this._determinedMin,Ie=this._determinedMax;return $e!=null&&(ue=$e,pe=!0),Ie!=null&&(de=Ie,he=!0),{min:ue,max:de,minFixed:pe,maxFixed:he,isBlank:_e}},t.prototype.modifyDataMinMax=function(r,$){this[DATA_MIN_MAX_ATTR[r]]=$},t.prototype.setDeterminedMinMax=function(r,$){var V=DETERMINED_MIN_MAX_ATTR[r];this[V]=$},t.prototype.freeze=function(){this.frozen=!0},t}(),DETERMINED_MIN_MAX_ATTR={min:"_determinedMin",max:"_determinedMax"},DATA_MIN_MAX_ATTR={min:"_dataMin",max:"_dataMax"};function ensureScaleRawExtentInfo(t,r,$){var V=t.rawExtentInfo;return V||(V=new ScaleRawExtentInfo(t,r,$),t.rawExtentInfo=V,V)}function parseAxisModelMinMax(t,r){return r==null?null:eqNaN(r)?NaN:t.parse(r)}function getScaleExtent(t,r){var $=t.type,V=ensureScaleRawExtentInfo(t,r,t.getExtent()).calculate();t.setBlank(V.isBlank);var oe=V.min,ie=V.max,le=r.ecModel;if(le&&$==="time"){var ue=prepareLayoutBarSeries("bar",le),de=!1;if(each$c(ue,function(_e){de=de||_e.getBaseAxis()===r.axis}),de){var pe=makeColumnLayout(ue),he=adjustScaleForOverflow(oe,ie,r,pe);oe=he.min,ie=he.max}}return{extent:[oe,ie],fixMin:V.minFixed,fixMax:V.maxFixed}}function adjustScaleForOverflow(t,r,$,V){var oe=$.axis.getExtent(),ie=oe[1]-oe[0],le=retrieveColumnLayout(V,$.axis);if(le===void 0)return{min:t,max:r};var ue=1/0;each$c(le,function(Ie){ue=Math.min(Ie.offset,ue)});var de=-1/0;each$c(le,function(Ie){de=Math.max(Ie.offset+Ie.width,de)}),ue=Math.abs(ue),de=Math.abs(de);var pe=ue+de,he=r-t,_e=1-(ue+de)/ie,$e=he/_e-he;return r+=$e*(de/pe),t-=$e*(ue/pe),{min:t,max:r}}function niceScaleExtent(t,r){var $=r,V=getScaleExtent(t,$),oe=V.extent,ie=$.get("splitNumber");t instanceof LogScale$1&&(t.base=$.get("logBase"));var le=t.type,ue=$.get("interval"),de=le==="interval"||le==="time";t.setExtent(oe[0],oe[1]),t.calcNiceExtent({splitNumber:ie,fixMin:V.fixMin,fixMax:V.fixMax,minInterval:de?$.get("minInterval"):null,maxInterval:de?$.get("maxInterval"):null}),ue!=null&&t.setInterval&&t.setInterval(ue)}function createScaleByModel(t,r){if(r=r||t.get("type"),r)switch(r){case"category":return new OrdinalScale$1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new TimeScale$1({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(Scale$1.getClass(r)||IntervalScale$1)}}function ifAxisCrossZero(t){var r=t.scale.getExtent(),$=r[0],V=r[1];return!($>0&&V>0||$<0&&V<0)}function makeLabelFormatter(t){var r=t.getLabelModel().get("formatter"),$=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(V){return function(oe,ie){return t.scale.getFormattedLabel(oe,ie,V)}}(r):isString(r)?function(V){return function(oe){var ie=t.scale.getLabel(oe),le=V.replace("{value}",ie??"");return le}}(r):isFunction(r)?function(V){return function(oe,ie){return $!=null&&(ie=oe.value-$),V(getAxisRawValue(t,oe),ie,oe.level!=null?{level:oe.level}:null)}}(r):function(V){return t.scale.getLabel(V)}}function getAxisRawValue(t,r){return t.type==="category"?t.scale.getLabel(r):r.value}function estimateLabelUnionRect(t){var r=t.model,$=t.scale;if(!(!r.get(["axisLabel","show"])||$.isBlank())){var V,oe,ie=$.getExtent();$ instanceof OrdinalScale$1?oe=$.count():(V=$.getTicks(),oe=V.length);var le=t.getLabelModel(),ue=makeLabelFormatter(t),de,pe=1;oe>40&&(pe=Math.ceil(oe/40));for(var he=0;het[1]&&(t[1]=oe[1])})}var AxisModelCommonMixin=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var r=this.option;return!r.scale},t.prototype.getCoordSysModel=function(){},t}();function createList(t){return createSeriesData(null,t)}var dataStack={isDimensionStacked,enableDataStack,getStackedDimension};function createScale(t,r){var $=r;r instanceof Model$1||($=new Model$1(r));var V=createScaleByModel($);return V.setExtent(t[0],t[1]),niceScaleExtent(V,$),V}function mixinAxisModelCommonMethods(t){mixin(t,AxisModelCommonMixin)}function createTextStyle(t,r){return r=r||{},createTextStyle$1(t,null,null,r.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(t){ComponentModel$1.registerClass(t)},registerComponentView:function(t){ComponentView$1.registerClass(t)},registerSeriesModel:function(t){SeriesModel$1.registerClass(t)},registerChartView:function(t){ChartView$1.registerClass(t)},registerSubTypeDefaulter:function(t,r){ComponentModel$1.registerSubTypeDefaulter(t,r)},registerPainter:function(t,r){registerPainter(t,r)}};function use$1(t){if(isArray$1(t)){each$c(t,function(r){use$1(r)});return}indexOf(extensions,t)>=0||(extensions.push(t),isFunction(t)&&(t={install:t}),t.install(extensionRegisters))}var EPSILON=1e-8;function isAroundEqual(t,r){return Math.abs(t-r)oe&&(V=le,oe=de)}if(V)return centroid(V.exterior);var pe=this.getBoundingRect();return[pe.x+pe.width/2,pe.y+pe.height/2]},r.prototype.getBoundingRect=function($){var V=this._rect;if(V&&!$)return V;var oe=[1/0,1/0],ie=[-1/0,-1/0],le=this.geometries;return each$c(le,function(ue){ue.type==="polygon"?updateBBoxFromPoints(ue.exterior,oe,ie,$):each$c(ue.points,function(de){updateBBoxFromPoints(de,oe,ie,$)})}),isFinite(oe[0])&&isFinite(oe[1])&&isFinite(ie[0])&&isFinite(ie[1])||(oe[0]=oe[1]=ie[0]=ie[1]=0),V=new BoundingRect$1(oe[0],oe[1],ie[0]-oe[0],ie[1]-oe[1]),$||(this._rect=V),V},r.prototype.contain=function($){var V=this.getBoundingRect(),oe=this.geometries;if(!V.contain($[0],$[1]))return!1;e:for(var ie=0,le=oe.length;ie>1^-(ue&1),de=de>>1^-(de&1),ue+=oe,de+=ie,oe=ue,ie=de,V.push([ue/$,de/$])}return V}function parseGeoJSON(t,r){return t=decode(t),map$2(filter(t.features,function($){return $.geometry&&$.properties&&$.geometry.coordinates.length>0}),function($){var V=$.properties,oe=$.geometry,ie=[];switch(oe.type){case"Polygon":var le=oe.coordinates;ie.push(new GeoJSONPolygonGeometry(le[0],le.slice(1)));break;case"MultiPolygon":each$c(oe.coordinates,function(de){de[0]&&ie.push(new GeoJSONPolygonGeometry(de[0],de.slice(1)))});break;case"LineString":ie.push(new GeoJSONLineStringGeometry([oe.coordinates]));break;case"MultiLineString":ie.push(new GeoJSONLineStringGeometry(oe.coordinates))}var ue=new GeoJSONRegion(V[r||"name"],ie,V.cp);return ue.properties=V,ue})}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(t){return t.type==="category"?makeCategoryLabels(t):makeRealNumberLabels(t)}function createAxisTicks(t,r){return t.type==="category"?makeCategoryTicks(t,r):{ticks:map$2(t.scale.getTicks(),function($){return $.value})}}function makeCategoryLabels(t){var r=t.getLabelModel(),$=makeCategoryLabelsActually(t,r);return!r.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:$.labelCategoryInterval}:$}function makeCategoryLabelsActually(t,r){var $=getListCache(t,"labels"),V=getOptionCategoryInterval(r),oe=listCacheGet($,V);if(oe)return oe;var ie,le;return isFunction(V)?ie=makeLabelsByCustomizedCategoryInterval(t,V):(le=V==="auto"?makeAutoCategoryInterval(t):V,ie=makeLabelsByNumericCategoryInterval(t,le)),listCacheSet($,V,{labels:ie,labelCategoryInterval:le})}function makeCategoryTicks(t,r){var $=getListCache(t,"ticks"),V=getOptionCategoryInterval(r),oe=listCacheGet($,V);if(oe)return oe;var ie,le;if((!r.get("show")||t.scale.isBlank())&&(ie=[]),isFunction(V))ie=makeLabelsByCustomizedCategoryInterval(t,V,!0);else if(V==="auto"){var ue=makeCategoryLabelsActually(t,t.getLabelModel());le=ue.labelCategoryInterval,ie=map$2(ue.labels,function(de){return de.tickValue})}else le=V,ie=makeLabelsByNumericCategoryInterval(t,le,!0);return listCacheSet($,V,{ticks:ie,tickCategoryInterval:le})}function makeRealNumberLabels(t){var r=t.scale.getTicks(),$=makeLabelFormatter(t);return{labels:map$2(r,function(V,oe){return{level:V.level,formattedLabel:$(V,oe),rawLabel:t.scale.getLabel(V),tickValue:V.value}})}}function getListCache(t,r){return inner$7(t)[r]||(inner$7(t)[r]=[])}function listCacheGet(t,r){for(var $=0;$40&&(ue=Math.max(1,Math.floor(le/40)));for(var de=ie[0],pe=t.dataToCoord(de+1)-t.dataToCoord(de),he=Math.abs(pe*Math.cos(V)),_e=Math.abs(pe*Math.sin(V)),$e=0,Ie=0;de<=ie[1];de+=ue){var Ve=0,Fe=0,Ue=getBoundingRect($({value:de}),r.font,"center","top");Ve=Ue.width*1.3,Fe=Ue.height*1.3,$e=Math.max($e,Ve,7),Ie=Math.max(Ie,Fe,7)}var qe=$e/he,Et=Ie/_e;isNaN(qe)&&(qe=1/0),isNaN(Et)&&(Et=1/0);var Lt=Math.max(0,Math.floor(Math.min(qe,Et))),hn=inner$7(t.model),Cn=t.getExtent(),bn=hn.lastAutoInterval,Sn=hn.lastTickCount;return bn!=null&&Sn!=null&&Math.abs(bn-Lt)<=1&&Math.abs(Sn-le)<=1&&bn>Lt&&hn.axisExtent0===Cn[0]&&hn.axisExtent1===Cn[1]?Lt=bn:(hn.lastTickCount=le,hn.lastAutoInterval=Lt,hn.axisExtent0=Cn[0],hn.axisExtent1=Cn[1]),Lt}function fetchAutoCategoryIntervalCalculationParams(t){var r=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:r.get("rotate")||0,font:r.getFont()}}function makeLabelsByNumericCategoryInterval(t,r,$){var V=makeLabelFormatter(t),oe=t.scale,ie=oe.getExtent(),le=t.getLabelModel(),ue=[],de=Math.max((r||0)+1,1),pe=ie[0],he=oe.count();pe!==0&&de>1&&he/de>2&&(pe=Math.round(Math.ceil(pe/de)*de));var _e=shouldShowAllLabels(t),$e=le.get("showMinLabel")||_e,Ie=le.get("showMaxLabel")||_e;$e&&pe!==ie[0]&&Fe(ie[0]);for(var Ve=pe;Ve<=ie[1];Ve+=de)Fe(Ve);Ie&&Ve-de!==ie[1]&&Fe(ie[1]);function Fe(Ue){var qe={value:Ue};ue.push($?Ue:{formattedLabel:V(qe),rawLabel:oe.getLabel(qe),tickValue:Ue})}return ue}function makeLabelsByCustomizedCategoryInterval(t,r,$){var V=t.scale,oe=makeLabelFormatter(t),ie=[];return each$c(V.getTicks(),function(le){var ue=V.getLabel(le),de=le.value;r(le.value,ue)&&ie.push($?de:{formattedLabel:oe(le),rawLabel:ue,tickValue:de})}),ie}var NORMALIZED_EXTENT=[0,1],Axis=function(){function t(r,$,V){this.onBand=!1,this.inverse=!1,this.dim=r,this.scale=$,this._extent=V||[0,0]}return t.prototype.contain=function(r){var $=this._extent,V=Math.min($[0],$[1]),oe=Math.max($[0],$[1]);return r>=V&&r<=oe},t.prototype.containData=function(r){return this.scale.contain(r)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(r){return getPixelPrecision(r||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(r,$){var V=this._extent;V[0]=r,V[1]=$},t.prototype.dataToCoord=function(r,$){var V=this._extent,oe=this.scale;return r=oe.normalize(r),this.onBand&&oe.type==="ordinal"&&(V=V.slice(),fixExtentWithBands(V,oe.count())),linearMap$2(r,NORMALIZED_EXTENT,V,$)},t.prototype.coordToData=function(r,$){var V=this._extent,oe=this.scale;this.onBand&&oe.type==="ordinal"&&(V=V.slice(),fixExtentWithBands(V,oe.count()));var ie=linearMap$2(r,V,NORMALIZED_EXTENT,$);return this.scale.scale(ie)},t.prototype.pointToData=function(r,$){},t.prototype.getTicksCoords=function(r){r=r||{};var $=r.tickModel||this.getTickModel(),V=createAxisTicks(this,$),oe=V.ticks,ie=map$2(oe,function(ue){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(ue):ue),tickValue:ue}},this),le=$.get("alignWithLabel");return fixOnBandTicksCoords(this,ie,le,r.clamp),ie},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var r=this.model.getModel("minorTick"),$=r.get("splitNumber");$>0&&$<100||($=5);var V=this.scale.getMinorTicks($),oe=map$2(V,function(ie){return map$2(ie,function(le){return{coord:this.dataToCoord(le),tickValue:le}},this)},this);return oe},t.prototype.getViewLabels=function(){return createAxisLabels(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var r=this._extent,$=this.scale.getExtent(),V=$[1]-$[0]+(this.onBand?1:0);V===0&&(V=1);var oe=Math.abs(r[1]-r[0]);return Math.abs(oe)/V},t.prototype.calculateCategoryInterval=function(){return calculateCategoryInterval(this)},t}();function fixExtentWithBands(t,r){var $=t[1]-t[0],V=r,oe=$/V/2;t[0]+=oe,t[1]-=oe}function fixOnBandTicksCoords(t,r,$,V){var oe=r.length;if(!t.onBand||$||!oe)return;var ie=t.getExtent(),le,ue;if(oe===1)r[0].coord=ie[0],le=r[1]={coord:ie[1]};else{var de=r[oe-1].tickValue-r[0].tickValue,pe=(r[oe-1].coord-r[0].coord)/de;each$c(r,function(Ie){Ie.coord-=pe/2});var he=t.scale.getExtent();ue=1+he[1]-r[oe-1].tickValue,le={coord:r[oe-1].coord+pe*ue},r.push(le)}var _e=ie[0]>ie[1];$e(r[0].coord,ie[0])&&(V?r[0].coord=ie[0]:r.shift()),V&&$e(ie[0],r[0].coord)&&r.unshift({coord:ie[0]}),$e(ie[1],le.coord)&&(V?le.coord=ie[1]:r.pop()),V&&$e(le.coord,ie[1])&&r.push({coord:ie[1]});function $e(Ie,Ve){return Ie=round$1(Ie),Ve=round$1(Ve),_e?Ie>Ve:Ie0){r=r/180*Math.PI,pt0.fromArray(t[0]),pt1.fromArray(t[1]),pt2.fromArray(t[2]),Point$1.sub(dir,pt0,pt1),Point$1.sub(dir2,pt2,pt1);var $=dir.len(),V=dir2.len();if(!($<.001||V<.001)){dir.scale(1/$),dir2.scale(1/V);var oe=dir.dot(dir2),ie=Math.cos(r);if(ie1&&Point$1.copy(tmpProjPoint,pt2),tmpProjPoint.toArray(t[1])}}}}function limitSurfaceAngle(t,r,$){if($<=180&&$>0){$=$/180*Math.PI,pt0.fromArray(t[0]),pt1.fromArray(t[1]),pt2.fromArray(t[2]),Point$1.sub(dir,pt1,pt0),Point$1.sub(dir2,pt2,pt1);var V=dir.len(),oe=dir2.len();if(!(V<.001||oe<.001)){dir.scale(1/V),dir2.scale(1/oe);var ie=dir.dot(r),le=Math.cos($);if(ie=de)Point$1.copy(tmpProjPoint,pt2);else{tmpProjPoint.scaleAndAdd(dir2,ue/Math.tan(Math.PI/2-he));var _e=pt2.x!==pt1.x?(tmpProjPoint.x-pt1.x)/(pt2.x-pt1.x):(tmpProjPoint.y-pt1.y)/(pt2.y-pt1.y);if(isNaN(_e))return;_e<0?Point$1.copy(tmpProjPoint,pt1):_e>1&&Point$1.copy(tmpProjPoint,pt2)}tmpProjPoint.toArray(t[1])}}}}function setLabelLineState(t,r,$,V){var oe=$==="normal",ie=oe?t:t.ensureState($);ie.ignore=r;var le=V.get("smooth");le&&le===!0&&(le=.3),ie.shape=ie.shape||{},le>0&&(ie.shape.smooth=le);var ue=V.getModel("lineStyle").getLineStyle();oe?t.useStyle(ue):ie.style=ue}function buildLabelLinePath(t,r){var $=r.smooth,V=r.points;if(V)if(t.moveTo(V[0][0],V[0][1]),$>0&&V.length>=3){var oe=dist$1(V[0],V[1]),ie=dist$1(V[1],V[2]);if(!oe||!ie){t.lineTo(V[1][0],V[1][1]),t.lineTo(V[2][0],V[2][1]);return}var le=Math.min(oe,ie)*$,ue=lerp$1([],V[1],V[0],le/oe),de=lerp$1([],V[1],V[2],le/ie),pe=lerp$1([],ue,de,.5);t.bezierCurveTo(ue[0],ue[1],ue[0],ue[1],pe[0],pe[1]),t.bezierCurveTo(de[0],de[1],de[0],de[1],V[2][0],V[2][1])}else for(var he=1;he0&&ie&&Cn(-he/le,0,le);var Fe=t[0],Ue=t[le-1],qe,Et;Lt(),qe<0&&bn(-qe,.8),Et<0&&bn(Et,.8),Lt(),hn(qe,Et,1),hn(Et,qe,-1),Lt(),qe<0&&Sn(-qe),Et<0&&Sn(Et);function Lt(){qe=Fe.rect[r]-V,Et=oe-Ue.rect[r]-Ue.rect[$]}function hn(En,wn,$n){if(En<0){var Tn=Math.min(wn,-En);if(Tn>0){Cn(Tn*$n,0,le);var xn=Tn+En;xn<0&&bn(-xn*$n,1)}else bn(-En*$n,1)}}function Cn(En,wn,$n){En!==0&&(pe=!0);for(var Tn=wn;Tn<$n;Tn++){var xn=t[Tn],An=xn.rect;An[r]+=En,xn.label[r]+=En}}function bn(En,wn){for(var $n=[],Tn=0,xn=1;xn0)for(var xn=0;xn0;xn--){var Bn=$n[xn-1]*Vn;Cn(-Bn,xn,le)}}}function Sn(En){var wn=En<0?-1:1;En=Math.abs(En);for(var $n=Math.ceil(En/(le-1)),Tn=0;Tn0?Cn($n,0,Tn+1):Cn(-$n,le-Tn-1,le),En-=$n,En<=0)return}return pe}function shiftLayoutOnY(t,r,$,V){return shiftLayout(t,"y","height",r,$,V)}function hideOverlap(t){var r=[];t.sort(function(Fe,Ue){return Ue.priority-Fe.priority});var $=new BoundingRect$1(0,0,0,0);function V(Fe){if(!Fe.ignore){var Ue=Fe.ensureState("emphasis");Ue.ignore==null&&(Ue.ignore=!1)}Fe.ignore=!0}for(var oe=0;oe=ue)}}for(var _e=this.__startIndex;_e15)break}}Mn.prevElClipPaths&&qe.restore()};if(Et)if(Et.length===0)En=Ue.__endIndex;else for(var $n=Ie.dpr,Tn=0;Tn0&&r>oe[0]){for(de=0;der);de++);ue=V[oe[de]]}if(oe.splice(de+1,0,r),V[r]=$,!$.virtual)if(ue){var pe=ue.dom;pe.nextSibling?le.insertBefore($.dom,pe.nextSibling):le.appendChild($.dom)}else le.firstChild?le.insertBefore($.dom,le.firstChild):le.appendChild($.dom);$.__painter=this}},t.prototype.eachLayer=function(r,$){for(var V=this._zlevelList,oe=0;oe0?EL_AFTER_INCREMENTAL_INC:0),this._needsManuallyCompositing),he.__builtin__||logError("ZLevel "+pe+" has been used by unkown layer "+he.id),he!==ie&&(he.__used=!0,he.__startIndex!==de&&(he.__dirty=!0),he.__startIndex=de,he.incremental?he.__drawIndex=-1:he.__drawIndex=de,$(de),ie=he),oe.__dirty&REDRAW_BIT&&!oe.__inHover&&(he.__dirty=!0,he.incremental&&he.__drawIndex<0&&(he.__drawIndex=de))}$(de),this.eachBuiltinLayer(function(_e,$e){!_e.__used&&_e.getElementCount()>0&&(_e.__dirty=!0,_e.__startIndex=_e.__endIndex=_e.__drawIndex=0),_e.__dirty&&_e.__drawIndex<0&&(_e.__drawIndex=_e.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(r){r.clear()},t.prototype.setBackgroundColor=function(r){this._backgroundColor=r,each$c(this._layers,function($){$.setUnpainted()})},t.prototype.configLayer=function(r,$){if($){var V=this._layerConfig;V[r]?merge(V[r],$,!0):V[r]=$;for(var oe=0;oe-1&&(pe.style.stroke=pe.style.fill,pe.style.fill="#fff",pe.style.lineWidth=2),V},r.type="series.line",r.dependencies=["grid","polar"],r.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},r}(SeriesModel$1);const LineSeries=LineSeriesModel;function getDefaultLabel(t,r){var $=t.mapDimensionsAll("defaultedLabel"),V=$.length;if(V===1){var oe=retrieveRawValue(t,r,$[0]);return oe!=null?oe+"":null}else if(V){for(var ie=[],le=0;le<$.length;le++)ie.push(retrieveRawValue(t,r,$[le]));return ie.join(" ")}}function getDefaultInterpolatedLabel(t,r){var $=t.mapDimensionsAll("defaultedLabel");if(!isArray$1(r))return r+"";for(var V=[],oe=0;oe<$.length;oe++){var ie=t.getDimensionIndex($[oe]);ie>=0&&V.push(r[ie])}return V.join(" ")}var Symbol$1=function(t){__extends(r,t);function r($,V,oe,ie){var le=t.call(this)||this;return le.updateData($,V,oe,ie),le}return r.prototype._createSymbol=function($,V,oe,ie,le){this.removeAll();var ue=createSymbol($,-1,-1,2,2,null,le);ue.attr({z2:100,culling:!0,scaleX:ie[0]/2,scaleY:ie[1]/2}),ue.drift=driftSymbol,this._symbolType=$,this.add(ue)},r.prototype.stopSymbolAnimation=function($){this.childAt(0).stopAnimation(null,$)},r.prototype.getSymbolType=function(){return this._symbolType},r.prototype.getSymbolPath=function(){return this.childAt(0)},r.prototype.highlight=function(){enterEmphasis(this.childAt(0))},r.prototype.downplay=function(){leaveEmphasis(this.childAt(0))},r.prototype.setZ=function($,V){var oe=this.childAt(0);oe.zlevel=$,oe.z=V},r.prototype.setDraggable=function($,V){var oe=this.childAt(0);oe.draggable=$,oe.cursor=!V&&$?"move":oe.cursor},r.prototype.updateData=function($,V,oe,ie){this.silent=!1;var le=$.getItemVisual(V,"symbol")||"circle",ue=$.hostModel,de=r.getSymbolSize($,V),pe=le!==this._symbolType,he=ie&&ie.disableAnimation;if(pe){var _e=$.getItemVisual(V,"symbolKeepAspect");this._createSymbol(le,$,V,de,_e)}else{var $e=this.childAt(0);$e.silent=!1;var Ie={scaleX:de[0]/2,scaleY:de[1]/2};he?$e.attr(Ie):updateProps$1($e,Ie,ue,V),saveOldStyle($e)}if(this._updateCommon($,V,de,oe,ie),pe){var $e=this.childAt(0);if(!he){var Ie={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:$e.style.opacity}};$e.scaleX=$e.scaleY=0,$e.style.opacity=0,initProps($e,Ie,ue,V)}}he&&this.childAt(0).stopAnimation("leave")},r.prototype._updateCommon=function($,V,oe,ie,le){var ue=this.childAt(0),de=$.hostModel,pe,he,_e,$e,Ie,Ve,Fe,Ue,qe;if(ie&&(pe=ie.emphasisItemStyle,he=ie.blurItemStyle,_e=ie.selectItemStyle,$e=ie.focus,Ie=ie.blurScope,Fe=ie.labelStatesModels,Ue=ie.hoverScale,qe=ie.cursorStyle,Ve=ie.emphasisDisabled),!ie||$.hasItemOption){var Et=ie&&ie.itemModel?ie.itemModel:$.getItemModel(V),Lt=Et.getModel("emphasis");pe=Lt.getModel("itemStyle").getItemStyle(),_e=Et.getModel(["select","itemStyle"]).getItemStyle(),he=Et.getModel(["blur","itemStyle"]).getItemStyle(),$e=Lt.get("focus"),Ie=Lt.get("blurScope"),Ve=Lt.get("disabled"),Fe=getLabelStatesModels(Et),Ue=Lt.getShallow("scale"),qe=Et.getShallow("cursor")}var hn=$.getItemVisual(V,"symbolRotate");ue.attr("rotation",(hn||0)*Math.PI/180||0);var Cn=normalizeSymbolOffset($.getItemVisual(V,"symbolOffset"),oe);Cn&&(ue.x=Cn[0],ue.y=Cn[1]),qe&&ue.attr("cursor",qe);var bn=$.getItemVisual(V,"style"),Sn=bn.fill;if(ue instanceof ZRImage$1){var En=ue.style;ue.useStyle(extend({image:En.image,x:En.x,y:En.y,width:En.width,height:En.height},bn))}else ue.__isEmptyBrush?ue.useStyle(extend({},bn)):ue.useStyle(bn),ue.style.decal=null,ue.setColor(Sn,le&&le.symbolInnerColor),ue.style.strokeNoScale=!0;var wn=$.getItemVisual(V,"liftZ"),$n=this._z2;wn!=null?$n==null&&(this._z2=ue.z2,ue.z2+=wn):$n!=null&&(ue.z2=$n,this._z2=null);var Tn=le&&le.useNameLabel;setLabelStyle(ue,Fe,{labelFetcher:de,labelDataIndex:V,defaultText:xn,inheritColor:Sn,defaultOpacity:bn.opacity});function xn(Vn){return Tn?$.getName(Vn):getDefaultLabel($,Vn)}this._sizeX=oe[0]/2,this._sizeY=oe[1]/2;var An=ue.ensureState("emphasis");An.style=pe,ue.ensureState("select").style=_e,ue.ensureState("blur").style=he;var Mn=Ue==null||Ue===!0?Math.max(1.1,3/this._sizeY):isFinite(Ue)&&Ue>0?+Ue:1;An.scaleX=this._sizeX*Mn,An.scaleY=this._sizeY*Mn,this.setSymbolScale(1),toggleHoverEmphasis(this,$e,Ie,Ve)},r.prototype.setSymbolScale=function($){this.scaleX=this.scaleY=$},r.prototype.fadeOut=function($,V,oe){var ie=this.childAt(0),le=getECData(this).dataIndex,ue=oe&&oe.animation;if(this.silent=ie.silent=!0,oe&&oe.fadeLabel){var de=ie.getTextContent();de&&removeElement(de,{style:{opacity:0}},V,{dataIndex:le,removeOpt:ue,cb:function(){ie.removeTextContent()}})}else ie.removeTextContent();removeElement(ie,{style:{opacity:0},scaleX:0,scaleY:0},V,{dataIndex:le,cb:$,removeOpt:ue})},r.getSymbolSize=function($,V){return normalizeSymbolSize($.getItemVisual(V,"symbolSize"))},r}(Group$3);function driftSymbol(t,r){this.parent.drift(t,r)}const SymbolClz=Symbol$1;function symbolNeedsDraw(t,r,$,V){return r&&!isNaN(r[0])&&!isNaN(r[1])&&!(V.isIgnore&&V.isIgnore($))&&!(V.clipShape&&!V.clipShape.contain(r[0],r[1]))&&t.getItemVisual($,"symbol")!=="none"}function normalizeUpdateOpt(t){return t!=null&&!isObject$3(t)&&(t={isIgnore:t}),t||{}}function makeSeriesScope(t){var r=t.hostModel,$=r.getModel("emphasis");return{emphasisItemStyle:$.getModel("itemStyle").getItemStyle(),blurItemStyle:r.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:r.getModel(["select","itemStyle"]).getItemStyle(),focus:$.get("focus"),blurScope:$.get("blurScope"),emphasisDisabled:$.get("disabled"),hoverScale:$.get("scale"),labelStatesModels:getLabelStatesModels(r),cursorStyle:r.get("cursor")}}var SymbolDraw=function(){function t(r){this.group=new Group$3,this._SymbolCtor=r||SymbolClz}return t.prototype.updateData=function(r,$){this._progressiveEls=null,$=normalizeUpdateOpt($);var V=this.group,oe=r.hostModel,ie=this._data,le=this._SymbolCtor,ue=$.disableAnimation,de=makeSeriesScope(r),pe={disableAnimation:ue},he=$.getSymbolPoint||function(_e){return r.getItemLayout(_e)};ie||V.removeAll(),r.diff(ie).add(function(_e){var $e=he(_e);if(symbolNeedsDraw(r,$e,_e,$)){var Ie=new le(r,_e,de,pe);Ie.setPosition($e),r.setItemGraphicEl(_e,Ie),V.add(Ie)}}).update(function(_e,$e){var Ie=ie.getItemGraphicEl($e),Ve=he(_e);if(!symbolNeedsDraw(r,Ve,_e,$)){V.remove(Ie);return}var Fe=r.getItemVisual(_e,"symbol")||"circle",Ue=Ie&&Ie.getSymbolType&&Ie.getSymbolType();if(!Ie||Ue&&Ue!==Fe)V.remove(Ie),Ie=new le(r,_e,de,pe),Ie.setPosition(Ve);else{Ie.updateData(r,_e,de,pe);var qe={x:Ve[0],y:Ve[1]};ue?Ie.attr(qe):updateProps$1(Ie,qe,oe)}V.add(Ie),r.setItemGraphicEl(_e,Ie)}).remove(function(_e){var $e=ie.getItemGraphicEl(_e);$e&&$e.fadeOut(function(){V.remove($e)},oe)}).execute(),this._getSymbolPoint=he,this._data=r},t.prototype.updateLayout=function(){var r=this,$=this._data;$&&$.eachItemGraphicEl(function(V,oe){var ie=r._getSymbolPoint(oe);V.setPosition(ie),V.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(r){this._seriesScope=makeSeriesScope(r),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(r,$,V){this._progressiveEls=[],V=normalizeUpdateOpt(V);function oe(de){de.isGroup||(de.incremental=!0,de.ensureState("emphasis").hoverLayer=!0)}for(var ie=r.start;ie0?$=V[0]:V[1]<0&&($=V[1]),$}function getStackedOnPoint(t,r,$,V){var oe=NaN;t.stacked&&(oe=$.get($.getCalculationInfo("stackedOverDimension"),V)),isNaN(oe)&&(oe=t.valueStart);var ie=t.baseDataOffset,le=[];return le[ie]=$.get(t.baseDim,V),le[1-ie]=oe,r.dataToPoint(le)}function diffData(t,r){var $=[];return r.diff(t).add(function(V){$.push({cmd:"+",idx:V})}).update(function(V,oe){$.push({cmd:"=",idx:oe,idx1:V})}).remove(function(V){$.push({cmd:"-",idx:V})}).execute(),$}function lineAnimationDiff(t,r,$,V,oe,ie,le,ue){for(var de=diffData(t,r),pe=[],he=[],_e=[],$e=[],Ie=[],Ve=[],Fe=[],Ue=prepareDataCoordInfo(oe,r,le),qe=t.getLayout("points")||[],Et=r.getLayout("points")||[],Lt=0;Lt=oe||Fe<0)break;if(isPointNull$1(qe,Et)){if(de){Fe+=ie;continue}break}if(Fe===$)t[ie>0?"moveTo":"lineTo"](qe,Et),_e=qe,$e=Et;else{var Lt=qe-pe,hn=Et-he;if(Lt*Lt+hn*hn<.5){Fe+=ie;continue}if(le>0){for(var Cn=Fe+ie,bn=r[Cn*2],Sn=r[Cn*2+1];bn===qe&&Sn===Et&&Ue=V||isPointNull$1(bn,Sn))Ie=qe,Ve=Et;else{$n=bn-pe,Tn=Sn-he;var Mn=qe-pe,Vn=bn-qe,Bn=Et-he,Dn=Sn-Et,Ln=void 0,Pn=void 0;if(ue==="x"){Ln=Math.abs(Mn),Pn=Math.abs(Vn);var Fn=$n>0?1:-1;Ie=qe-Fn*Ln*le,Ve=Et,xn=qe+Fn*Pn*le,An=Et}else if(ue==="y"){Ln=Math.abs(Bn),Pn=Math.abs(Dn);var Un=Tn>0?1:-1;Ie=qe,Ve=Et-Un*Ln*le,xn=qe,An=Et+Un*Pn*le}else Ln=Math.sqrt(Mn*Mn+Bn*Bn),Pn=Math.sqrt(Vn*Vn+Dn*Dn),wn=Pn/(Pn+Ln),Ie=qe-$n*le*(1-wn),Ve=Et-Tn*le*(1-wn),xn=qe+$n*le*wn,An=Et+Tn*le*wn,xn=mathMin$3(xn,mathMax$3(bn,qe)),An=mathMin$3(An,mathMax$3(Sn,Et)),xn=mathMax$3(xn,mathMin$3(bn,qe)),An=mathMax$3(An,mathMin$3(Sn,Et)),$n=xn-qe,Tn=An-Et,Ie=qe-$n*Ln/Pn,Ve=Et-Tn*Ln/Pn,Ie=mathMin$3(Ie,mathMax$3(pe,qe)),Ve=mathMin$3(Ve,mathMax$3(he,Et)),Ie=mathMax$3(Ie,mathMin$3(pe,qe)),Ve=mathMax$3(Ve,mathMin$3(he,Et)),$n=qe-Ie,Tn=Et-Ve,xn=qe+$n*Pn/Ln,An=Et+Tn*Pn/Ln}t.bezierCurveTo(_e,$e,Ie,Ve,qe,Et),_e=xn,$e=An}else t.lineTo(qe,Et)}pe=qe,he=Et,Fe+=ie}return Ue}var ECPolylineShape=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),ECPolyline=function(t){__extends(r,t);function r($){var V=t.call(this,$)||this;return V.type="ec-polyline",V}return r.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},r.prototype.getDefaultShape=function(){return new ECPolylineShape},r.prototype.buildPath=function($,V){var oe=V.points,ie=0,le=oe.length/2;if(V.connectNulls){for(;le>0&&isPointNull$1(oe[le*2-2],oe[le*2-1]);le--);for(;ie=0){var hn=pe?(Ve-de)*Lt+de:(Ie-ue)*Lt+ue;return pe?[$,hn]:[hn,$]}ue=Ie,de=Ve;break;case le.C:Ie=ie[_e++],Ve=ie[_e++],Fe=ie[_e++],Ue=ie[_e++],qe=ie[_e++],Et=ie[_e++];var Cn=pe?cubicRootAt(ue,Ie,Fe,qe,$,he):cubicRootAt(de,Ve,Ue,Et,$,he);if(Cn>0)for(var bn=0;bn=0){var hn=pe?cubicAt(de,Ve,Ue,Et,Sn):cubicAt(ue,Ie,Fe,qe,Sn);return pe?[$,hn]:[hn,$]}}ue=qe,de=Et;break}}},r}(Path$1),ECPolygonShape=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r}(ECPolylineShape),ECPolygon=function(t){__extends(r,t);function r($){var V=t.call(this,$)||this;return V.type="ec-polygon",V}return r.prototype.getDefaultShape=function(){return new ECPolygonShape},r.prototype.buildPath=function($,V){var oe=V.points,ie=V.stackedOnPoints,le=0,ue=oe.length/2,de=V.smoothMonotone;if(V.connectNulls){for(;ue>0&&isPointNull$1(oe[ue*2-2],oe[ue*2-1]);ue--);for(;ler){ie?$.push(le(ie,de,r)):oe&&$.push(le(oe,de,0),le(oe,de,r));break}else oe&&($.push(le(oe,de,0)),oe=null),$.push(de),ie=de}return $}function getVisualGradient(t,r,$){var V=t.getVisual("visualMeta");if(!(!V||!V.length||!t.count())&&r.type==="cartesian2d"){for(var oe,ie,le=V.length-1;le>=0;le--){var ue=t.getDimensionInfo(V[le].dimension);if(oe=ue&&ue.coordDim,oe==="x"||oe==="y"){ie=V[le];break}}if(ie){var de=r.getAxis(oe),pe=map$2(ie.stops,function(Lt){return{coord:de.toGlobalCoord(de.dataToCoord(Lt.value)),color:Lt.color}}),he=pe.length,_e=ie.outerColors.slice();he&&pe[0].coord>pe[he-1].coord&&(pe.reverse(),_e.reverse());var $e=clipColorStops(pe,oe==="x"?$.getWidth():$.getHeight()),Ie=$e.length;if(!Ie&&he)return pe[0].coord<0?_e[1]?_e[1]:pe[he-1].color:_e[0]?_e[0]:pe[0].color;var Ve=10,Fe=$e[0].coord-Ve,Ue=$e[Ie-1].coord+Ve,qe=Ue-Fe;if(qe<.001)return"transparent";each$c($e,function(Lt){Lt.offset=(Lt.coord-Fe)/qe}),$e.push({offset:Ie?$e[Ie-1].offset:.5,color:_e[1]||"transparent"}),$e.unshift({offset:Ie?$e[0].offset:.5,color:_e[0]||"transparent"});var Et=new LinearGradient$1(0,0,0,0,$e,!0);return Et[oe]=Fe,Et[oe+"2"]=Ue,Et}}}function getIsIgnoreFunc(t,r,$){var V=t.get("showAllSymbol"),oe=V==="auto";if(!(V&&!oe)){var ie=$.getAxesByScale("ordinal")[0];if(ie&&!(oe&&canShowAllSymbolForCategory(ie,r))){var le=r.mapDimension(ie.dim),ue={};return each$c(ie.getViewLabels(),function(de){var pe=ie.scale.getRawOrdinalNumber(de.tickValue);ue[pe]=1}),function(de){return!ue.hasOwnProperty(r.get(le,de))}}}}function canShowAllSymbolForCategory(t,r){var $=t.getExtent(),V=Math.abs($[1]-$[0])/t.scale.count();isNaN(V)&&(V=0);for(var oe=r.count(),ie=Math.max(1,Math.round(oe/5)),le=0;leV)return!1;return!0}function isPointNull(t,r){return isNaN(t)||isNaN(r)}function getLastIndexNotNull(t){for(var r=t.length/2;r>0&&isPointNull(t[r*2-2],t[r*2-1]);r--);return r-1}function getPointAtIndex(t,r){return[t[r*2],t[r*2+1]]}function getIndexRange(t,r,$){for(var V=t.length/2,oe=$==="x"?0:1,ie,le,ue=0,de=-1,pe=0;pe=r||ie>=r&&le<=r){de=pe;break}ue=pe,ie=le}return{range:[ue,de],t:(r-ie)/(le-ie)}}function anyStateShowEndLabel(t){if(t.get(["endLabel","show"]))return!0;for(var r=0;r0&&$.get(["emphasis","lineStyle","width"])==="bolder"){var Fn=Fe.getState("emphasis").style;Fn.lineWidth=+Fe.style.lineWidth+1}getECData(Fe).seriesIndex=$.seriesIndex,toggleHoverEmphasis(Fe,Dn,Ln,Pn);var Un=getSmooth($.get("smooth")),Wn=$.get("smoothMonotone");if(Fe.setShape({smooth:Un,smoothMonotone:Wn,connectNulls:En}),Ue){var Zn=de.getCalculationInfo("stackedOnSeries"),or=0;Ue.useStyle(defaults(he.getAreaStyle(),{fill:An,opacity:.7,lineJoin:"bevel",decal:de.getVisual("style").decal})),Zn&&(or=getSmooth(Zn.get("smooth"))),Ue.setShape({smooth:Un,stackedOnSmooth:or,smoothMonotone:Wn,connectNulls:En}),setStatesStylesFromModel(Ue,$,"areaStyle"),getECData(Ue).seriesIndex=$.seriesIndex,toggleHoverEmphasis(Ue,Dn,Ln,Pn)}var br=function(Qn){ie._changePolyState(Qn)};de.eachItemGraphicEl(function(Qn){Qn&&(Qn.onHoverStateChange=br)}),this._polyline.onHoverStateChange=br,this._data=de,this._coordSys=le,this._stackedOnPoints=bn,this._points=_e,this._step=Tn,this._valueOrigin=hn,$.get("triggerLineEvent")&&(this.packEventData($,Fe),Ue&&this.packEventData($,Ue))},r.prototype.packEventData=function($,V){getECData(V).eventData={componentType:"series",componentSubType:"line",componentIndex:$.componentIndex,seriesIndex:$.seriesIndex,seriesName:$.name,seriesType:"line"}},r.prototype.highlight=function($,V,oe,ie){var le=$.getData(),ue=queryDataIndex(le,ie);if(this._changePolyState("emphasis"),!(ue instanceof Array)&&ue!=null&&ue>=0){var de=le.getLayout("points"),pe=le.getItemGraphicEl(ue);if(!pe){var he=de[ue*2],_e=de[ue*2+1];if(isNaN(he)||isNaN(_e)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(he,_e))return;var $e=$.get("zlevel")||0,Ie=$.get("z")||0;pe=new SymbolClz(le,ue),pe.x=he,pe.y=_e,pe.setZ($e,Ie);var Ve=pe.getSymbolPath().getTextContent();Ve&&(Ve.zlevel=$e,Ve.z=Ie,Ve.z2=this._polyline.z2+1),pe.__temp=!0,le.setItemGraphicEl(ue,pe),pe.stopSymbolAnimation(!0),this.group.add(pe)}pe.highlight()}else ChartView$1.prototype.highlight.call(this,$,V,oe,ie)},r.prototype.downplay=function($,V,oe,ie){var le=$.getData(),ue=queryDataIndex(le,ie);if(this._changePolyState("normal"),ue!=null&&ue>=0){var de=le.getItemGraphicEl(ue);de&&(de.__temp?(le.setItemGraphicEl(ue,null),this.group.remove(de)):de.downplay())}else ChartView$1.prototype.downplay.call(this,$,V,oe,ie)},r.prototype._changePolyState=function($){var V=this._polygon;setStatesFlag(this._polyline,$),V&&setStatesFlag(V,$)},r.prototype._newPolyline=function($){var V=this._polyline;return V&&this._lineGroup.remove(V),V=new ECPolyline({shape:{points:$},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(V),this._polyline=V,V},r.prototype._newPolygon=function($,V){var oe=this._polygon;return oe&&this._lineGroup.remove(oe),oe=new ECPolygon({shape:{points:$,stackedOnPoints:V},segmentIgnoreThreshold:2}),this._lineGroup.add(oe),this._polygon=oe,oe},r.prototype._initSymbolLabelAnimation=function($,V,oe){var ie,le,ue=V.getBaseAxis(),de=ue.inverse;V.type==="cartesian2d"?(ie=ue.isHorizontal(),le=!1):V.type==="polar"&&(ie=ue.dim==="angle",le=!0);var pe=$.hostModel,he=pe.get("animationDuration");isFunction(he)&&(he=he(null));var _e=pe.get("animationDelay")||0,$e=isFunction(_e)?_e(null):_e;$.eachItemGraphicEl(function(Ie,Ve){var Fe=Ie;if(Fe){var Ue=[Ie.x,Ie.y],qe=void 0,Et=void 0,Lt=void 0;if(oe)if(le){var hn=oe,Cn=V.pointToCoord(Ue);ie?(qe=hn.startAngle,Et=hn.endAngle,Lt=-Cn[1]/180*Math.PI):(qe=hn.r0,Et=hn.r,Lt=Cn[0])}else{var bn=oe;ie?(qe=bn.x,Et=bn.x+bn.width,Lt=Ie.x):(qe=bn.y+bn.height,Et=bn.y,Lt=Ie.y)}var Sn=Et===qe?0:(Lt-qe)/(Et-qe);de&&(Sn=1-Sn);var En=isFunction(_e)?_e(Ve):he*Sn+$e,wn=Fe.getSymbolPath(),$n=wn.getTextContent();Fe.attr({scaleX:0,scaleY:0}),Fe.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:En}),$n&&$n.animateFrom({style:{opacity:0}},{duration:300,delay:En}),wn.disableLabelAnimation=!0}})},r.prototype._initOrUpdateEndLabel=function($,V,oe){var ie=$.getModel("endLabel");if(anyStateShowEndLabel($)){var le=$.getData(),ue=this._polyline,de=le.getLayout("points");if(!de){ue.removeTextContent(),this._endLabel=null;return}var pe=this._endLabel;pe||(pe=this._endLabel=new ZRText$1({z2:200}),pe.ignoreClip=!0,ue.setTextContent(this._endLabel),ue.disableLabelAnimation=!0);var he=getLastIndexNotNull(de);he>=0&&(setLabelStyle(ue,getLabelStatesModels($,"endLabel"),{inheritColor:oe,labelFetcher:$,labelDataIndex:he,defaultText:function(_e,$e,Ie){return Ie!=null?getDefaultInterpolatedLabel(le,Ie):getDefaultLabel(le,_e)},enableTextSetter:!0},getEndLabelStateSpecified(ie,V)),ue.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},r.prototype._endLabelOnDuring=function($,V,oe,ie,le,ue,de){var pe=this._endLabel,he=this._polyline;if(pe){$<1&&ie.originalX==null&&(ie.originalX=pe.x,ie.originalY=pe.y);var _e=oe.getLayout("points"),$e=oe.hostModel,Ie=$e.get("connectNulls"),Ve=ue.get("precision"),Fe=ue.get("distance")||0,Ue=de.getBaseAxis(),qe=Ue.isHorizontal(),Et=Ue.inverse,Lt=V.shape,hn=Et?qe?Lt.x:Lt.y+Lt.height:qe?Lt.x+Lt.width:Lt.y,Cn=(qe?Fe:0)*(Et?-1:1),bn=(qe?0:-Fe)*(Et?-1:1),Sn=qe?"x":"y",En=getIndexRange(_e,hn,Sn),wn=En.range,$n=wn[1]-wn[0],Tn=void 0;if($n>=1){if($n>1&&!Ie){var xn=getPointAtIndex(_e,wn[0]);pe.attr({x:xn[0]+Cn,y:xn[1]+bn}),le&&(Tn=$e.getRawValue(wn[0]))}else{var xn=he.getPointOn(hn,Sn);xn&&pe.attr({x:xn[0]+Cn,y:xn[1]+bn});var An=$e.getRawValue(wn[0]),Mn=$e.getRawValue(wn[1]);le&&(Tn=interpolateRawValues(oe,Ve,An,Mn,En.t))}ie.lastFrameIndex=wn[0]}else{var Vn=$===1||ie.lastFrameIndex>0?wn[0]:0,xn=getPointAtIndex(_e,Vn);le&&(Tn=$e.getRawValue(Vn)),pe.attr({x:xn[0]+Cn,y:xn[1]+bn})}if(le){var Bn=labelInner(pe);typeof Bn.setLabelText=="function"&&Bn.setLabelText(Tn)}}},r.prototype._doUpdateAnimation=function($,V,oe,ie,le,ue,de){var pe=this._polyline,he=this._polygon,_e=$.hostModel,$e=lineAnimationDiff(this._data,$,this._stackedOnPoints,V,this._coordSys,oe,this._valueOrigin),Ie=$e.current,Ve=$e.stackedOnCurrent,Fe=$e.next,Ue=$e.stackedOnNext;if(le&&(Ie=turnPointsIntoStep($e.current,oe,le,de),Ve=turnPointsIntoStep($e.stackedOnCurrent,oe,le,de),Fe=turnPointsIntoStep($e.next,oe,le,de),Ue=turnPointsIntoStep($e.stackedOnNext,oe,le,de)),getBoundingDiff(Ie,Fe)>3e3||he&&getBoundingDiff(Ve,Ue)>3e3){pe.stopAnimation(),pe.setShape({points:Fe}),he&&(he.stopAnimation(),he.setShape({points:Fe,stackedOnPoints:Ue}));return}pe.shape.__points=$e.current,pe.shape.points=Ie;var qe={shape:{points:Fe}};$e.current!==Ie&&(qe.shape.__points=$e.next),pe.stopAnimation(),updateProps$1(pe,qe,_e),he&&(he.setShape({points:Ie,stackedOnPoints:Ve}),he.stopAnimation(),updateProps$1(he,{shape:{stackedOnPoints:Ue}},_e),pe.shape.points!==he.shape.points&&(he.shape.points=pe.shape.points));for(var Et=[],Lt=$e.status,hn=0;hnr&&(r=t[$]);return isFinite(r)?r:NaN},min:function(t){for(var r=1/0,$=0;$10&&le.type==="cartesian2d"&&ie){var de=le.getBaseAxis(),pe=le.getOtherAxis(de),he=de.getExtent(),_e=V.getDevicePixelRatio(),$e=Math.abs(he[1]-he[0])*(_e||1),Ie=Math.round(ue/$e);if(isFinite(Ie)&&Ie>1){ie==="lttb"&&r.setData(oe.lttbDownSample(oe.mapDimension(pe.dim),1/Ie));var Ve=void 0;isString(ie)?Ve=samplers[ie]:isFunction(ie)&&(Ve=ie),Ve&&r.setData(oe.downSample(oe.mapDimension(pe.dim),1/Ie,Ve,indexSampler))}}}}}function install$j(t){t.registerChartView(LineView$1),t.registerSeriesModel(LineSeries),t.registerLayout(pointsLayout("line",!0)),t.registerVisual({seriesType:"line",reset:function(r){var $=r.getData(),V=r.getModel("lineStyle").getLineStyle();V&&!V.stroke&&(V.stroke=$.getVisual("style").fill),$.setVisual("legendLineStyle",V)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("line"))}var BaseBarSeriesModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.prototype.getInitialData=function($,V){return createSeriesData(null,this,{useEncodeDefaulter:!0})},r.prototype.getMarkerPosition=function($,V,oe){var ie=this.coordinateSystem;if(ie&&ie.clampData){var le=ie.clampData($),ue=ie.dataToPoint(le);if(oe)each$c(ie.getAxes(),function($e,Ie){if($e.type==="category"&&V!=null){var Ve=$e.getTicksCoords(),Fe=le[Ie],Ue=V[Ie]==="x1"||V[Ie]==="y1";if(Ue&&(Fe+=1),Ve.length<2)return;if(Ve.length===2){ue[Ie]=$e.toGlobalCoord($e.getExtent()[Ue?1:0]);return}for(var qe=void 0,Et=void 0,Lt=1,hn=0;hnFe){Et=(Cn+qe)/2;break}hn===1&&(Lt=bn-Ve[0].tickValue)}Et==null&&(qe?qe&&(Et=Ve[Ve.length-1].coord):Et=Ve[0].coord),ue[Ie]=$e.toGlobalCoord(Et)}});else{var de=this.getData(),pe=de.getLayout("offset"),he=de.getLayout("size"),_e=ie.getBaseAxis().isHorizontal()?0:1;ue[_e]+=pe+he/2}return ue}return[NaN,NaN]},r.type="series.__base_bar__",r.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},r}(SeriesModel$1);SeriesModel$1.registerClass(BaseBarSeriesModel);const BaseBarSeriesModel$1=BaseBarSeriesModel;var BarSeriesModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.prototype.getInitialData=function(){return createSeriesData(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},r.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},r.prototype.getProgressiveThreshold=function(){var $=this.get("progressiveThreshold"),V=this.get("largeThreshold");return V>$&&($=V),$},r.prototype.brushSelector=function($,V,oe){return oe.rect(V.getItemLayout($))},r.type="series.bar",r.dependencies=["grid","polar"],r.defaultOption=inheritDefaultOption(BaseBarSeriesModel$1.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),r}(BaseBarSeriesModel$1);const BarSeries=BarSeriesModel;var SausageShape=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),SausagePath=function(t){__extends(r,t);function r($){var V=t.call(this,$)||this;return V.type="sausage",V}return r.prototype.getDefaultShape=function(){return new SausageShape},r.prototype.buildPath=function($,V){var oe=V.cx,ie=V.cy,le=Math.max(V.r0||0,0),ue=Math.max(V.r,0),de=(ue-le)*.5,pe=le+de,he=V.startAngle,_e=V.endAngle,$e=V.clockwise,Ie=Math.PI*2,Ve=$e?_e-heMath.PI/2&&heue)return!0;ue=_e}return!1},r.prototype._isOrderDifferentInView=function($,V){for(var oe=V.scale,ie=oe.getExtent(),le=Math.max(0,ie[0]),ue=Math.min(ie[1],oe.getOrdinalMeta().categories.length-1);le<=ue;++le)if($.ordinalNumbers[le]!==oe.getRawOrdinalNumber(le))return!0},r.prototype._updateSortWithinSameData=function($,V,oe,ie){if(this._isOrderChangedWithinSameData($,V,oe)){var le=this._dataSort($,oe,V);this._isOrderDifferentInView(le,oe)&&(this._removeOnRenderedListener(ie),ie.dispatchAction({type:"changeAxisOrder",componentType:oe.dim+"Axis",axisId:oe.index,sortInfo:le}))}},r.prototype._dispatchInitSort=function($,V,oe){var ie=V.baseAxis,le=this._dataSort($,ie,function(ue){return $.get($.mapDimension(V.otherAxis.dim),ue)});oe.dispatchAction({type:"changeAxisOrder",componentType:ie.dim+"Axis",isInitSort:!0,axisId:ie.index,sortInfo:le})},r.prototype.remove=function($,V){this._clear(this._model),this._removeOnRenderedListener(V)},r.prototype.dispose=function($,V){this._removeOnRenderedListener(V)},r.prototype._removeOnRenderedListener=function($){this._onRendered&&($.getZr().off("rendered",this._onRendered),this._onRendered=null)},r.prototype._clear=function($){var V=this.group,oe=this._data;$&&$.isAnimationEnabled()&&oe&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],oe.eachItemGraphicEl(function(ie){removeElementWithFadeOut(ie,$,getECData(ie).dataIndex)})):V.removeAll(),this._data=null,this._isFirstFrame=!0},r.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},r.type="bar",r}(ChartView$1),clip={cartesian2d:function(t,r){var $=r.width<0?-1:1,V=r.height<0?-1:1;$<0&&(r.x+=r.width,r.width=-r.width),V<0&&(r.y+=r.height,r.height=-r.height);var oe=t.x+t.width,ie=t.y+t.height,le=mathMax$2(r.x,t.x),ue=mathMin$2(r.x+r.width,oe),de=mathMax$2(r.y,t.y),pe=mathMin$2(r.y+r.height,ie),he=ueoe?ue:le,r.y=_e&&de>ie?pe:de,r.width=he?0:ue-le,r.height=_e?0:pe-de,$<0&&(r.x+=r.width,r.width=-r.width),V<0&&(r.y+=r.height,r.height=-r.height),he||_e},polar:function(t,r){var $=r.r0<=r.r?1:-1;if($<0){var V=r.r;r.r=r.r0,r.r0=V}var oe=mathMin$2(r.r,t.r),ie=mathMax$2(r.r0,t.r0);r.r=oe,r.r0=ie;var le=oe-ie<0;if($<0){var V=r.r;r.r=r.r0,r.r0=V}return le}},elementCreator={cartesian2d:function(t,r,$,V,oe,ie,le,ue,de){var pe=new Rect$2({shape:extend({},V),z2:1});if(pe.__dataIndex=$,pe.name="item",ie){var he=pe.shape,_e=oe?"height":"width";he[_e]=0}return pe},polar:function(t,r,$,V,oe,ie,le,ue,de){var pe=!oe&&de?Sausage:Sector$1,he=new pe({shape:V,z2:1});he.name="item";var _e=createPolarPositionMapping(oe);if(he.calculateTextPosition=createSectorCalculateTextPosition(_e,{isRoundCap:pe===Sausage}),ie){var $e=he.shape,Ie=oe?"r":"endAngle",Ve={};$e[Ie]=oe?V.r0:V.startAngle,Ve[Ie]=V[Ie],(ue?updateProps$1:initProps)(he,{shape:Ve},ie)}return he}};function shouldRealtimeSort(t,r){var $=t.get("realtimeSort",!0),V=r.getBaseAxis();if($&&V.type==="category"&&r.type==="cartesian2d")return{baseAxis:V,otherAxis:r.getOtherAxis(V)}}function updateRealtimeAnimation(t,r,$,V,oe,ie,le,ue){var de,pe;ie?(pe={x:V.x,width:V.width},de={y:V.y,height:V.height}):(pe={y:V.y,height:V.height},de={x:V.x,width:V.width}),ue||(le?updateProps$1:initProps)($,{shape:de},r,oe,null);var he=r?t.baseAxis.model:null;(le?updateProps$1:initProps)($,{shape:pe},he,oe)}function checkPropertiesNotValid(t,r){for(var $=0;$0?1:-1,le=V.height>0?1:-1;return{x:V.x+ie*oe/2,y:V.y+le*oe/2,width:V.width-ie*oe,height:V.height-le*oe}},polar:function(t,r,$){var V=t.getItemLayout(r);return{cx:V.cx,cy:V.cy,r0:V.r0,r:V.r,startAngle:V.startAngle,endAngle:V.endAngle,clockwise:V.clockwise}}};function isZeroOnPolar(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function createPolarPositionMapping(t){return function(r){var $=r?"Arc":"Angle";return function(V){switch(V){case"start":case"insideStart":case"end":case"insideEnd":return V+$;default:return V}}}(t)}function updateStyle(t,r,$,V,oe,ie,le,ue){var de=r.getItemVisual($,"style");if(ue){if(!ie.get("roundCap")){var he=t.shape,_e=getSectorCornerRadius(V.getModel("itemStyle"),he,!0);extend(he,_e),t.setShape(he)}}else{var pe=V.get(["itemStyle","borderRadius"])||0;t.setShape("r",pe)}t.useStyle(de);var $e=V.getShallow("cursor");$e&&t.attr("cursor",$e);var Ie=ue?le?oe.r>=oe.r0?"endArc":"startArc":oe.endAngle>=oe.startAngle?"endAngle":"startAngle":le?oe.height>=0?"bottom":"top":oe.width>=0?"right":"left",Ve=getLabelStatesModels(V);setLabelStyle(t,Ve,{labelFetcher:ie,labelDataIndex:$,defaultText:getDefaultLabel(ie.getData(),$),inheritColor:de.fill,defaultOpacity:de.opacity,defaultOutsidePosition:Ie});var Fe=t.getTextContent();if(ue&&Fe){var Ue=V.get(["label","position"]);t.textConfig.inside=Ue==="middle"?!0:null,setSectorTextRotation(t,Ue==="outside"?Ie:Ue,createPolarPositionMapping(le),V.get(["label","rotate"]))}setLabelValueAnimation(Fe,Ve,ie.getRawValue($),function(Et){return getDefaultInterpolatedLabel(r,Et)});var qe=V.getModel(["emphasis"]);toggleHoverEmphasis(t,qe.get("focus"),qe.get("blurScope"),qe.get("disabled")),setStatesStylesFromModel(t,V),isZeroOnPolar(oe)&&(t.style.fill="none",t.style.stroke="none",each$c(t.states,function(Et){Et.style&&(Et.style.fill=Et.style.stroke="none")}))}function getLineWidth(t,r){var $=t.get(["itemStyle","borderColor"]);if(!$||$==="none")return 0;var V=t.get(["itemStyle","borderWidth"])||0,oe=isNaN(r.width)?Number.MAX_VALUE:Math.abs(r.width),ie=isNaN(r.height)?Number.MAX_VALUE:Math.abs(r.height);return Math.min(V,oe,ie)}var LagePathShape=function(){function t(){}return t}(),LargePath=function(t){__extends(r,t);function r($){var V=t.call(this,$)||this;return V.type="largeBar",V}return r.prototype.getDefaultShape=function(){return new LagePathShape},r.prototype.buildPath=function($,V){for(var oe=V.points,ie=this.baseDimIdx,le=1-this.baseDimIdx,ue=[],de=[],pe=this.barWidth,he=0;he=0?$:null},30,!1);function largePathFindDataIndex(t,r,$){for(var V=t.baseDimIdx,oe=1-V,ie=t.shape.points,le=t.largeDataIndices,ue=[],de=[],pe=t.barWidth,he=0,_e=ie.length/3;he<_e;he++){var $e=he*3;if(de[V]=pe,de[oe]=ie[$e+2],ue[V]=ie[$e+V],ue[oe]=ie[$e+oe],de[oe]<0&&(ue[oe]+=de[oe],de[oe]=-de[oe]),r>=ue[0]&&r<=ue[0]+de[0]&&$>=ue[1]&&$<=ue[1]+de[1])return le[he]}return-1}function createBackgroundShape(t,r,$){if(isCoordinateSystemType($,"cartesian2d")){var V=r,oe=$.getArea();return{x:t?V.x:oe.x,y:t?oe.y:V.y,width:t?V.width:oe.width,height:t?oe.height:V.height}}else{var oe=$.getArea(),ie=r;return{cx:oe.cx,cy:oe.cy,r0:t?oe.r0:ie.r0,r:t?oe.r:ie.r,startAngle:t?ie.startAngle:0,endAngle:t?ie.endAngle:Math.PI*2}}}function createBackgroundEl(t,r,$){var V=t.type==="polar"?Sector$1:Rect$2;return new V({shape:createBackgroundShape(r,$,t),silent:!0,z2:0})}const BarView$1=BarView;function install$i(t){t.registerChartView(BarView$1),t.registerSeriesModel(BarSeries),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,curry$1(layout$2,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,createProgressiveLayout("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dataSample("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(r,$){var V=r.componentType||"series";$.eachComponent({mainType:V,query:r},function(oe){r.sortInfo&&oe.axis.setCategorySortInfo(r.sortInfo)})})}var PI2=Math.PI*2,RADIAN$1=Math.PI/180;function getViewRect(t,r){return getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})}function getBasicPieLayout(t,r){var $=getViewRect(t,r),V=t.get("center"),oe=t.get("radius");isArray$1(oe)||(oe=[0,oe]);var ie=parsePercent($.width,r.getWidth()),le=parsePercent($.height,r.getHeight()),ue=Math.min(ie,le),de=parsePercent(oe[0],ue/2),pe=parsePercent(oe[1],ue/2),he,_e,$e=t.coordinateSystem;if($e){var Ie=$e.dataToPoint(V);he=Ie[0]||0,_e=Ie[1]||0}else isArray$1(V)||(V=[V,V]),he=parsePercent(V[0],ie)+$.x,_e=parsePercent(V[1],le)+$.y;return{cx:he,cy:_e,r0:de,r:pe}}function pieLayout(t,r,$){r.eachSeriesByType(t,function(V){var oe=V.getData(),ie=oe.mapDimension("value"),le=getViewRect(V,$),ue=getBasicPieLayout(V,$),de=ue.cx,pe=ue.cy,he=ue.r,_e=ue.r0,$e=-V.get("startAngle")*RADIAN$1,Ie=V.get("minAngle")*RADIAN$1,Ve=0;oe.each(ie,function($n){!isNaN($n)&&Ve++});var Fe=oe.getSum(ie),Ue=Math.PI/(Fe||Ve)*2,qe=V.get("clockwise"),Et=V.get("roseType"),Lt=V.get("stillShowZeroSum"),hn=oe.getDataExtent(ie);hn[0]=0;var Cn=PI2,bn=0,Sn=$e,En=qe?1:-1;if(oe.setLayout({viewRect:le,r:he}),oe.each(ie,function($n,Tn){var xn;if(isNaN($n)){oe.setItemLayout(Tn,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:qe,cx:de,cy:pe,r0:_e,r:Et?NaN:he});return}Et!=="area"?xn=Fe===0&&Lt?Ue:$n*Ue:xn=PI2/Ve,xn$?qe:Ue,Cn=Math.abs(Lt.label.y-$);if(Cn>=hn.maxY){var bn=Lt.label.x-r-Lt.len2*oe,Sn=V+Lt.len,En=Math.abs(bn)t.unconstrainedWidth?null:Ie:null;V.setStyle("width",Ve)}var Fe=V.getBoundingRect();ie.width=Fe.width;var Ue=(V.style.margin||0)+2.1;ie.height=Fe.height+Ue,ie.y-=(ie.height-_e)/2}}}function isPositionCenter(t){return t.position==="center"}function pieLabelLayout(t){var r=t.getData(),$=[],V,oe,ie=!1,le=(t.get("minShowLabelAngle")||0)*RADIAN,ue=r.getLayout("viewRect"),de=r.getLayout("r"),pe=ue.width,he=ue.x,_e=ue.y,$e=ue.height;function Ie(bn){bn.ignore=!0}function Ve(bn){if(!bn.ignore)return!0;for(var Sn in bn.states)if(bn.states[Sn].ignore===!1)return!0;return!1}r.each(function(bn){var Sn=r.getItemGraphicEl(bn),En=Sn.shape,wn=Sn.getTextContent(),$n=Sn.getTextGuideLine(),Tn=r.getItemModel(bn),xn=Tn.getModel("label"),An=xn.get("position")||Tn.get(["emphasis","label","position"]),Mn=xn.get("distanceToLabelLine"),Vn=xn.get("alignTo"),Bn=parsePercent(xn.get("edgeDistance"),pe),Dn=xn.get("bleedMargin"),Ln=Tn.getModel("labelLine"),Pn=Ln.get("length");Pn=parsePercent(Pn,pe);var Fn=Ln.get("length2");if(Fn=parsePercent(Fn,pe),Math.abs(En.endAngle-En.startAngle)0?"right":"left":Wn>0?"left":"right"}var cr=Math.PI,_r=0,ur=xn.get("rotate");if(isNumber(ur))_r=ur*(cr/180);else if(An==="center")_r=0;else if(ur==="radial"||ur===!0){var wr=Wn<0?-Un+cr:-Un;_r=wr}else if(ur==="tangential"&&An!=="outside"&&An!=="outer"){var Cr=Math.atan2(Wn,Zn);Cr<0&&(Cr=cr*2+Cr);var mr=Zn>0;mr&&(Cr=cr+Cr),_r=Cr-cr}if(ie=!!_r,wn.x=or,wn.y=br,wn.rotation=_r,wn.setStyle({verticalAlign:"middle"}),Yn){wn.setStyle({align:Gn});var nr=wn.states.select;nr&&(nr.x+=wn.x,nr.y+=wn.y)}else{var Er=wn.getBoundingRect().clone();Er.applyTransform(wn.getComputedTransform());var Tr=(wn.style.margin||0)+2.1;Er.y-=Tr/2,Er.height+=Tr,$.push({label:wn,labelLine:$n,position:An,len:Pn,len2:Fn,minTurnAngle:Ln.get("minTurnAngle"),maxSurfaceAngle:Ln.get("maxSurfaceAngle"),surfaceNormal:new Point$1(Wn,Zn),linePoints:Qn,textAlign:Gn,labelDistance:Mn,labelAlignTo:Vn,edgeDistance:Bn,bleedMargin:Dn,rect:Er,unconstrainedWidth:Er.width,labelStyleWidth:wn.style.width})}Sn.setTextConfig({inside:Yn})}}),!ie&&t.get("avoidLabelOverlap")&&avoidOverlap($,V,oe,de,pe,$e,he,_e);for(var Fe=0;Fe<$.length;Fe++){var Ue=$[Fe],qe=Ue.label,Et=Ue.labelLine,Lt=isNaN(qe.x)||isNaN(qe.y);if(qe){qe.setStyle({align:Ue.textAlign}),Lt&&(each$c(qe.states,Ie),qe.ignore=!0);var hn=qe.states.select;hn&&(hn.x+=qe.x,hn.y+=qe.y)}if(Et){var Cn=Ue.linePoints;Lt||!Cn?(each$c(Et.states,Ie),Et.ignore=!0):(limitTurnAngle(Cn,Ue.minTurnAngle),limitSurfaceAngle(Cn,Ue.surfaceNormal,Ue.maxSurfaceAngle),Et.setShape({points:Cn}),qe.__hostTarget.textGuideLineConfig={anchor:new Point$1(Cn[0][0],Cn[0][1])})}}}var PiePiece=function(t){__extends(r,t);function r($,V,oe){var ie=t.call(this)||this;ie.z2=2;var le=new ZRText$1;return ie.setTextContent(le),ie.updateData($,V,oe,!0),ie}return r.prototype.updateData=function($,V,oe,ie){var le=this,ue=$.hostModel,de=$.getItemModel(V),pe=de.getModel("emphasis"),he=$.getItemLayout(V),_e=extend(getSectorCornerRadius(de.getModel("itemStyle"),he,!0),he);if(isNaN(_e.startAngle)){le.setShape(_e);return}if(ie){le.setShape(_e);var $e=ue.getShallow("animationType");ue.ecModel.ssr?(initProps(le,{scaleX:0,scaleY:0},ue,{dataIndex:V,isFrom:!0}),le.originX=_e.cx,le.originY=_e.cy):$e==="scale"?(le.shape.r=he.r0,initProps(le,{shape:{r:he.r}},ue,V)):oe!=null?(le.setShape({startAngle:oe,endAngle:oe}),initProps(le,{shape:{startAngle:he.startAngle,endAngle:he.endAngle}},ue,V)):(le.shape.endAngle=he.startAngle,updateProps$1(le,{shape:{endAngle:he.endAngle}},ue,V))}else saveOldStyle(le),updateProps$1(le,{shape:_e},ue,V);le.useStyle($.getItemVisual(V,"style")),setStatesStylesFromModel(le,de);var Ie=(he.startAngle+he.endAngle)/2,Ve=ue.get("selectedOffset"),Fe=Math.cos(Ie)*Ve,Ue=Math.sin(Ie)*Ve,qe=de.getShallow("cursor");qe&&le.attr("cursor",qe),this._updateLabel(ue,$,V),le.ensureState("emphasis").shape=extend({r:he.r+(pe.get("scale")&&pe.get("scaleSize")||0)},getSectorCornerRadius(pe.getModel("itemStyle"),he)),extend(le.ensureState("select"),{x:Fe,y:Ue,shape:getSectorCornerRadius(de.getModel(["select","itemStyle"]),he)}),extend(le.ensureState("blur"),{shape:getSectorCornerRadius(de.getModel(["blur","itemStyle"]),he)});var Et=le.getTextGuideLine(),Lt=le.getTextContent();Et&&extend(Et.ensureState("select"),{x:Fe,y:Ue}),extend(Lt.ensureState("select"),{x:Fe,y:Ue}),toggleHoverEmphasis(this,pe.get("focus"),pe.get("blurScope"),pe.get("disabled"))},r.prototype._updateLabel=function($,V,oe){var ie=this,le=V.getItemModel(oe),ue=le.getModel("labelLine"),de=V.getItemVisual(oe,"style"),pe=de&&de.fill,he=de&&de.opacity;setLabelStyle(ie,getLabelStatesModels(le),{labelFetcher:V.hostModel,labelDataIndex:oe,inheritColor:pe,defaultOpacity:he,defaultText:$.getFormattedLabel(oe,"normal")||V.getName(oe)});var _e=ie.getTextContent();ie.setTextConfig({position:null,rotation:null}),_e.attr({z2:10});var $e=$.get(["label","position"]);if($e!=="outside"&&$e!=="outer")ie.removeTextGuideLine();else{var Ie=this.getTextGuideLine();Ie||(Ie=new Polyline$1,this.setTextGuideLine(Ie)),setLabelLineStyle(this,getLabelLineStatesModels(le),{stroke:pe,opacity:retrieve3(ue.get(["lineStyle","opacity"]),he,1)})}},r}(Sector$1),PieView=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.ignoreLabelLineUpdate=!0,$}return r.prototype.render=function($,V,oe,ie){var le=$.getData(),ue=this._data,de=this.group,pe;if(!ue&&le.count()>0){for(var he=le.getItemLayout(0),_e=1;isNaN(he&&he.startAngle)&&_e=ie.r0}},r.type="pie",r}(ChartView$1);const PieView$1=PieView;function createSeriesDataSimply(t,r,$){r=isArray$1(r)&&{coordDimensions:r}||extend({encodeDefine:t.getEncode()},r);var V=t.getSource(),oe=prepareSeriesDataSchema(V,r).dimensions,ie=new SeriesData$1(oe,t);return ie.initData(V,$),ie}var LegendVisualProvider=function(){function t(r,$){this._getDataWithEncodedVisual=r,this._getRawData=$}return t.prototype.getAllNames=function(){var r=this._getRawData();return r.mapArray(r.getName)},t.prototype.containName=function(r){var $=this._getRawData();return $.indexOfName(r)>=0},t.prototype.indexOfName=function(r){var $=this._getDataWithEncodedVisual();return $.indexOfName(r)},t.prototype.getItemVisual=function(r,$){var V=this._getDataWithEncodedVisual();return V.getItemVisual(r,$)},t}();const LegendVisualProvider$1=LegendVisualProvider;var innerData=makeInner(),PieSeriesModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.init=function($){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new LegendVisualProvider$1(bind$1(this.getData,this),bind$1(this.getRawData,this)),this._defaultLabelLine($)},r.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},r.prototype.getInitialData=function(){return createSeriesDataSimply(this,{coordDimensions:["value"],encodeDefaulter:curry$1(makeSeriesEncodeForNameBased,this)})},r.prototype.getDataParams=function($){var V=this.getData(),oe=innerData(V),ie=oe.seats;if(!ie){var le=[];V.each(V.mapDimension("value"),function(de){le.push(de)}),ie=oe.seats=getPercentSeats(le,V.hostModel.get("percentPrecision"))}var ue=t.prototype.getDataParams.call(this,$);return ue.percent=ie[$]||0,ue.$vars.push("percent"),ue},r.prototype._defaultLabelLine=function($){defaultEmphasis($,"labelLine",["show"]);var V=$.labelLine,oe=$.emphasis.labelLine;V.show=V.show&&$.label.show,oe.show=oe.show&&$.emphasis.label.show},r.type="series.pie",r.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},r}(SeriesModel$1);const PieSeriesModel$1=PieSeriesModel;function negativeDataFilter(t){return{seriesType:t,reset:function(r,$){var V=r.getData();V.filterSelf(function(oe){var ie=V.mapDimension("value"),le=V.get(ie,oe);return!(isNumber(le)&&!isNaN(le)&&le<0)})}}}function install$h(t){t.registerChartView(PieView$1),t.registerSeriesModel(PieSeriesModel$1),createLegacyDataSelectAction("pie",t.registerAction),t.registerLayout(curry$1(pieLayout,"pie")),t.registerProcessor(dataFilter("pie")),t.registerProcessor(negativeDataFilter("pie"))}var GridModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.type="grid",r.dependencies=["xAxis","yAxis"],r.layoutMode="box",r.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},r}(ComponentModel$1);const GridModel$1=GridModel;var CartesianAxisModel=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",SINGLE_REFERRING).models[0]},r.type="cartesian2dAxis",r}(ComponentModel$1);mixin(CartesianAxisModel,AxisModelCommonMixin);var defaultOption$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(t,r,$,V){each$c(AXIS_TYPES,function(oe,ie){var le=merge(merge({},axisDefault[ie],!0),V,!0),ue=function(de){__extends(pe,de);function pe(){var he=de!==null&&de.apply(this,arguments)||this;return he.type=r+"Axis."+ie,he}return pe.prototype.mergeDefaultAndTheme=function(he,_e){var $e=fetchLayoutMode(this),Ie=$e?getLayoutParams(he):{},Ve=_e.getTheme();merge(he,Ve.get(ie+"Axis")),merge(he,this.getDefaultOption()),he.type=getAxisType(he),$e&&mergeLayoutParam(he,Ie,$e)},pe.prototype.optionUpdated=function(){var he=this.option;he.type==="category"&&(this.__ordinalMeta=OrdinalMeta$1.createByAxisModel(this))},pe.prototype.getCategories=function(he){var _e=this.option;if(_e.type==="category")return he?_e.data:this.__ordinalMeta.categories},pe.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},pe.type=r+"Axis."+ie,pe.defaultOption=le,pe}($);t.registerComponentModel(ue)}),t.registerSubTypeDefaulter(r+"Axis",getAxisType)}function getAxisType(t){return t.type||(t.data?"category":"value")}var Cartesian=function(){function t(r){this.type="cartesian",this._dimList=[],this._axes={},this.name=r||""}return t.prototype.getAxis=function(r){return this._axes[r]},t.prototype.getAxes=function(){return map$2(this._dimList,function(r){return this._axes[r]},this)},t.prototype.getAxesByScale=function(r){return r=r.toLowerCase(),filter(this.getAxes(),function($){return $.scale.type===r})},t.prototype.addAxis=function(r){var $=r.dim;this._axes[$]=r,this._dimList.push($)},t}();const Cartesian$1=Cartesian;var cartesian2DDimensions=["x","y"];function canCalculateAffineTransform(t){return t.type==="interval"||t.type==="time"}var Cartesian2D=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type="cartesian2d",$.dimensions=cartesian2DDimensions,$}return r.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var $=this.getAxis("x").scale,V=this.getAxis("y").scale;if(!(!canCalculateAffineTransform($)||!canCalculateAffineTransform(V))){var oe=$.getExtent(),ie=V.getExtent(),le=this.dataToPoint([oe[0],ie[0]]),ue=this.dataToPoint([oe[1],ie[1]]),de=oe[1]-oe[0],pe=ie[1]-ie[0];if(!(!de||!pe)){var he=(ue[0]-le[0])/de,_e=(ue[1]-le[1])/pe,$e=le[0]-oe[0]*he,Ie=le[1]-ie[0]*_e,Ve=this._transform=[he,0,0,_e,$e,Ie];this._invTransform=invert([],Ve)}}},r.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},r.prototype.containPoint=function($){var V=this.getAxis("x"),oe=this.getAxis("y");return V.contain(V.toLocalCoord($[0]))&&oe.contain(oe.toLocalCoord($[1]))},r.prototype.containData=function($){return this.getAxis("x").containData($[0])&&this.getAxis("y").containData($[1])},r.prototype.containZone=function($,V){var oe=this.dataToPoint($),ie=this.dataToPoint(V),le=this.getArea(),ue=new BoundingRect$1(oe[0],oe[1],ie[0]-oe[0],ie[1]-oe[1]);return le.intersect(ue)},r.prototype.dataToPoint=function($,V,oe){oe=oe||[];var ie=$[0],le=$[1];if(this._transform&&ie!=null&&isFinite(ie)&&le!=null&&isFinite(le))return applyTransform$1(oe,$,this._transform);var ue=this.getAxis("x"),de=this.getAxis("y");return oe[0]=ue.toGlobalCoord(ue.dataToCoord(ie,V)),oe[1]=de.toGlobalCoord(de.dataToCoord(le,V)),oe},r.prototype.clampData=function($,V){var oe=this.getAxis("x").scale,ie=this.getAxis("y").scale,le=oe.getExtent(),ue=ie.getExtent(),de=oe.parse($[0]),pe=ie.parse($[1]);return V=V||[],V[0]=Math.min(Math.max(Math.min(le[0],le[1]),de),Math.max(le[0],le[1])),V[1]=Math.min(Math.max(Math.min(ue[0],ue[1]),pe),Math.max(ue[0],ue[1])),V},r.prototype.pointToData=function($,V){var oe=[];if(this._invTransform)return applyTransform$1(oe,$,this._invTransform);var ie=this.getAxis("x"),le=this.getAxis("y");return oe[0]=ie.coordToData(ie.toLocalCoord($[0]),V),oe[1]=le.coordToData(le.toLocalCoord($[1]),V),oe},r.prototype.getOtherAxis=function($){return this.getAxis($.dim==="x"?"y":"x")},r.prototype.getArea=function(){var $=this.getAxis("x").getGlobalExtent(),V=this.getAxis("y").getGlobalExtent(),oe=Math.min($[0],$[1]),ie=Math.min(V[0],V[1]),le=Math.max($[0],$[1])-oe,ue=Math.max(V[0],V[1])-ie;return new BoundingRect$1(oe,ie,le,ue)},r}(Cartesian$1),Axis2D=function(t){__extends(r,t);function r($,V,oe,ie,le){var ue=t.call(this,$,V,oe)||this;return ue.index=0,ue.type=ie||"value",ue.position=le||"bottom",ue}return r.prototype.isHorizontal=function(){var $=this.position;return $==="top"||$==="bottom"},r.prototype.getGlobalExtent=function($){var V=this.getExtent();return V[0]=this.toGlobalCoord(V[0]),V[1]=this.toGlobalCoord(V[1]),$&&V[0]>V[1]&&V.reverse(),V},r.prototype.pointToData=function($,V){return this.coordToData(this.toLocalCoord($[this.dim==="x"?0:1]),V)},r.prototype.setCategorySortInfo=function($){if(this.type!=="category")return!1;this.model.option.categorySortInfo=$,this.scale.setSortInfo($)},r}(Axis$1);const Axis2D$1=Axis2D;function layout$1(t,r,$){$=$||{};var V=t.coordinateSystem,oe=r.axis,ie={},le=oe.getAxesOnZeroOf()[0],ue=oe.position,de=le?"onZero":ue,pe=oe.dim,he=V.getRect(),_e=[he.x,he.x+he.width,he.y,he.y+he.height],$e={left:0,right:1,top:0,bottom:1,onZero:2},Ie=r.get("offset")||0,Ve=pe==="x"?[_e[2]-Ie,_e[3]+Ie]:[_e[0]-Ie,_e[1]+Ie];if(le){var Fe=le.toGlobalCoord(le.dataToCoord(0));Ve[$e.onZero]=Math.max(Math.min(Fe,Ve[1]),Ve[0])}ie.position=[pe==="y"?Ve[$e[de]]:_e[0],pe==="x"?Ve[$e[de]]:_e[3]],ie.rotation=Math.PI/2*(pe==="x"?0:1);var Ue={top:-1,bottom:1,left:-1,right:1};ie.labelDirection=ie.tickDirection=ie.nameDirection=Ue[ue],ie.labelOffset=le?Ve[$e[ue]]-Ve[$e.onZero]:0,r.get(["axisTick","inside"])&&(ie.tickDirection=-ie.tickDirection),retrieve($.labelInside,r.get(["axisLabel","inside"]))&&(ie.labelDirection=-ie.labelDirection);var qe=r.get(["axisLabel","rotate"]);return ie.labelRotate=de==="top"?-qe:qe,ie.z2=1,ie}function isCartesian2DSeries(t){return t.get("coordinateSystem")==="cartesian2d"}function findAxisModels(t){var r={xAxisModel:null,yAxisModel:null};return each$c(r,function($,V){var oe=V.replace(/Model$/,""),ie=t.getReferringComponents(oe,SINGLE_REFERRING).models[0];r[V]=ie}),r}var mathLog=Math.log;function alignScaleTicks(t,r,$){var V=IntervalScale$1.prototype,oe=V.getTicks.call($),ie=V.getTicks.call($,!0),le=oe.length-1,ue=V.getInterval.call($),de=getScaleExtent(t,r),pe=de.extent,he=de.fixMin,_e=de.fixMax;if(t.type==="log"){var $e=mathLog(t.base);pe=[mathLog(pe[0])/$e,mathLog(pe[1])/$e]}t.setExtent(pe[0],pe[1]),t.calcNiceExtent({splitNumber:le,fixMin:he,fixMax:_e});var Ie=V.getExtent.call(t);he&&(pe[0]=Ie[0]),_e&&(pe[1]=Ie[1]);var Ve=V.getInterval.call(t),Fe=pe[0],Ue=pe[1];if(he&&_e)Ve=(Ue-Fe)/le;else if(he)for(Ue=pe[0]+Ve*le;Uepe[0]&&isFinite(Fe)&&isFinite(pe[0]);)Ve=increaseInterval(Ve),Fe=pe[1]-Ve*le;else{var qe=t.getTicks().length-1;qe>le&&(Ve=increaseInterval(Ve));var Et=Ve*le;Ue=Math.ceil(pe[1]/Ve)*Ve,Fe=round$1(Ue-Et),Fe<0&&pe[0]>=0?(Fe=0,Ue=round$1(Et)):Ue>0&&pe[1]<=0&&(Ue=0,Fe=-round$1(Et))}var Lt=(oe[0].value-ie[0].value)/ue,hn=(oe[le].value-ie[le].value)/ue;V.setExtent.call(t,Fe+Ve*Lt,Ue+Ve*hn),V.setInterval.call(t,Ve),(Lt||hn)&&V.setNiceExtent.call(t,Fe+Ve,Ue-Ve)}var Grid=function(){function t(r,$,V){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=cartesian2DDimensions,this._initCartesian(r,$,V),this.model=r}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(r,$){var V=this._axesMap;this._updateScale(r,this.model);function oe(le){var ue,de=keys(le),pe=de.length;if(pe){for(var he=[],_e=pe-1;_e>=0;_e--){var $e=+de[_e],Ie=le[$e],Ve=Ie.model,Fe=Ie.scale;isIntervalOrLogScale(Fe)&&Ve.get("alignTicks")&&Ve.get("interval")==null?he.push(Ie):(niceScaleExtent(Fe,Ve),isIntervalOrLogScale(Fe)&&(ue=Ie))}he.length&&(ue||(ue=he.pop(),niceScaleExtent(ue.scale,ue.model)),each$c(he,function(Ue){alignScaleTicks(Ue.scale,Ue.model,ue.scale)}))}}oe(V.x),oe(V.y);var ie={};each$c(V.x,function(le){fixAxisOnZero(V,"y",le,ie)}),each$c(V.y,function(le){fixAxisOnZero(V,"x",le,ie)}),this.resize(this.model,$)},t.prototype.resize=function(r,$,V){var oe=r.getBoxLayoutParams(),ie=!V&&r.get("containLabel"),le=getLayoutRect(oe,{width:$.getWidth(),height:$.getHeight()});this._rect=le;var ue=this._axesList;de(),ie&&(each$c(ue,function(pe){if(!pe.model.get(["axisLabel","inside"])){var he=estimateLabelUnionRect(pe);if(he){var _e=pe.isHorizontal()?"height":"width",$e=pe.model.get(["axisLabel","margin"]);le[_e]-=he[_e]+$e,pe.position==="top"?le.y+=he.height+$e:pe.position==="left"&&(le.x+=he.width+$e)}}}),de()),each$c(this._coordsList,function(pe){pe.calcAffineTransform()});function de(){each$c(ue,function(pe){var he=pe.isHorizontal(),_e=he?[0,le.width]:[0,le.height],$e=pe.inverse?1:0;pe.setExtent(_e[$e],_e[1-$e]),updateAxisTransform(pe,he?le.x:le.y)})}},t.prototype.getAxis=function(r,$){var V=this._axesMap[r];if(V!=null)return V[$||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(r,$){if(r!=null&&$!=null){var V="x"+r+"y"+$;return this._coordsMap[V]}isObject$3(r)&&($=r.yAxisIndex,r=r.xAxisIndex);for(var oe=0,ie=this._coordsList;oe0?"top":"bottom",ie="center"):isRadianAroundZero(oe-PI)?(le=V>0?"bottom":"top",ie="center"):(le="middle",oe>0&&oe0?"right":"left":ie=V>0?"left":"right"),{rotation:oe,textAlign:ie,textVerticalAlign:le}},t.makeAxisEventDataBase=function(r){var $={componentType:r.mainType,componentIndex:r.componentIndex};return $[r.mainType+"Index"]=r.componentIndex,$},t.isLabelSilent=function(r){var $=r.get("tooltip");return r.get("silent")||!(r.get("triggerEvent")||$&&$.show)},t}(),builders={axisLine:function(t,r,$,V){var oe=r.get(["axisLine","show"]);if(oe==="auto"&&t.handleAutoShown&&(oe=t.handleAutoShown("axisLine")),!!oe){var ie=r.axis.getExtent(),le=V.transform,ue=[ie[0],0],de=[ie[1],0],pe=ue[0]>de[0];le&&(applyTransform$1(ue,ue,le),applyTransform$1(de,de,le));var he=extend({lineCap:"round"},r.getModel(["axisLine","lineStyle"]).getLineStyle()),_e=new Line$1({shape:{x1:ue[0],y1:ue[1],x2:de[0],y2:de[1]},style:he,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});subPixelOptimizeLine(_e.shape,_e.style.lineWidth),_e.anid="line",$.add(_e);var $e=r.get(["axisLine","symbol"]);if($e!=null){var Ie=r.get(["axisLine","symbolSize"]);isString($e)&&($e=[$e,$e]),(isString(Ie)||isNumber(Ie))&&(Ie=[Ie,Ie]);var Ve=normalizeSymbolOffset(r.get(["axisLine","symbolOffset"])||0,Ie),Fe=Ie[0],Ue=Ie[1];each$c([{rotate:t.rotation+Math.PI/2,offset:Ve[0],r:0},{rotate:t.rotation-Math.PI/2,offset:Ve[1],r:Math.sqrt((ue[0]-de[0])*(ue[0]-de[0])+(ue[1]-de[1])*(ue[1]-de[1]))}],function(qe,Et){if($e[Et]!=="none"&&$e[Et]!=null){var Lt=createSymbol($e[Et],-Fe/2,-Ue/2,Fe,Ue,he.stroke,!0),hn=qe.r+qe.offset,Cn=pe?de:ue;Lt.attr({rotation:qe.rotate,x:Cn[0]+hn*Math.cos(t.rotation),y:Cn[1]-hn*Math.sin(t.rotation),silent:!0,z2:11}),$.add(Lt)}})}}},axisTickLabel:function(t,r,$,V){var oe=buildAxisMajorTicks($,V,r,t),ie=buildAxisLabel($,V,r,t);if(fixMinMaxLabelShow(r,ie,oe),buildAxisMinorTicks($,V,r,t.tickDirection),r.get(["axisLabel","hideOverlap"])){var le=prepareLayoutList(map$2(ie,function(ue){return{label:ue,priority:ue.z2,defaultAttr:{ignore:ue.ignore}}}));hideOverlap(le)}},axisName:function(t,r,$,V){var oe=retrieve(t.axisName,r.get("name"));if(oe){var ie=r.get("nameLocation"),le=t.nameDirection,ue=r.getModel("nameTextStyle"),de=r.get("nameGap")||0,pe=r.axis.getExtent(),he=pe[0]>pe[1]?-1:1,_e=[ie==="start"?pe[0]-he*de:ie==="end"?pe[1]+he*de:(pe[0]+pe[1])/2,isNameLocationCenter(ie)?t.labelOffset+le*de:0],$e,Ie=r.get("nameRotate");Ie!=null&&(Ie=Ie*PI/180);var Ve;isNameLocationCenter(ie)?$e=AxisBuilder.innerTextLayout(t.rotation,Ie??t.rotation,le):($e=endTextLayout(t.rotation,ie,Ie||0,pe),Ve=t.axisNameAvailableWidth,Ve!=null&&(Ve=Math.abs(Ve/Math.sin($e.rotation)),!isFinite(Ve)&&(Ve=null)));var Fe=ue.getFont(),Ue=r.get("nameTruncate",!0)||{},qe=Ue.ellipsis,Et=retrieve(t.nameTruncateMaxWidth,Ue.maxWidth,Ve),Lt=new ZRText$1({x:_e[0],y:_e[1],rotation:$e.rotation,silent:AxisBuilder.isLabelSilent(r),style:createTextStyle$1(ue,{text:oe,font:Fe,overflow:"truncate",width:Et,ellipsis:qe,fill:ue.getTextColor()||r.get(["axisLine","lineStyle","color"]),align:ue.get("align")||$e.textAlign,verticalAlign:ue.get("verticalAlign")||$e.textVerticalAlign}),z2:1});if(setTooltipConfig({el:Lt,componentModel:r,itemName:oe}),Lt.__fullText=oe,Lt.anid="name",r.get("triggerEvent")){var hn=AxisBuilder.makeAxisEventDataBase(r);hn.targetType="axisName",hn.name=oe,getECData(Lt).eventData=hn}V.add(Lt),Lt.updateTransform(),$.add(Lt),Lt.decomposeTransform()}}};function endTextLayout(t,r,$,V){var oe=remRadian($-t),ie,le,ue=V[0]>V[1],de=r==="start"&&!ue||r!=="start"&&ue;return isRadianAroundZero(oe-PI/2)?(le=de?"bottom":"top",ie="center"):isRadianAroundZero(oe-PI*1.5)?(le=de?"top":"bottom",ie="center"):(le="middle",oePI/2?ie=de?"left":"right":ie=de?"right":"left"),{rotation:oe,textAlign:ie,textVerticalAlign:le}}function fixMinMaxLabelShow(t,r,$){if(!shouldShowAllLabels(t.axis)){var V=t.get(["axisLabel","showMinLabel"]),oe=t.get(["axisLabel","showMaxLabel"]);r=r||[],$=$||[];var ie=r[0],le=r[1],ue=r[r.length-1],de=r[r.length-2],pe=$[0],he=$[1],_e=$[$.length-1],$e=$[$.length-2];V===!1?(ignoreEl(ie),ignoreEl(pe)):isTwoLabelOverlapped(ie,le)&&(V?(ignoreEl(le),ignoreEl(he)):(ignoreEl(ie),ignoreEl(pe))),oe===!1?(ignoreEl(ue),ignoreEl(_e)):isTwoLabelOverlapped(de,ue)&&(oe?(ignoreEl(de),ignoreEl($e)):(ignoreEl(ue),ignoreEl(_e)))}}function ignoreEl(t){t&&(t.ignore=!0)}function isTwoLabelOverlapped(t,r){var $=t&&t.getBoundingRect().clone(),V=r&&r.getBoundingRect().clone();if(!(!$||!V)){var oe=identity([]);return rotate(oe,oe,-t.rotation),$.applyTransform(mul([],oe,t.getLocalTransform())),V.applyTransform(mul([],oe,r.getLocalTransform())),$.intersect(V)}}function isNameLocationCenter(t){return t==="middle"||t==="center"}function createTicks(t,r,$,V,oe){for(var ie=[],le=[],ue=[],de=0;de=0||t===r}function fixValue(t){var r=getAxisInfo(t);if(r){var $=r.axisPointerModel,V=r.axis.scale,oe=$.option,ie=$.get("status"),le=$.get("value");le!=null&&(le=V.parse(le));var ue=isHandleTrigger($);ie==null&&(oe.status=ue?"show":"hide");var de=V.getExtent().slice();de[0]>de[1]&&de.reverse(),(le==null||le>de[1])&&(le=de[1]),le3?1.4:le>1?1.2:1.1,he=ie>0?pe:1/pe;checkPointerAndTrigger(this,"zoom","zoomOnMouseWheel",$,{scale:he,originX:ue,originY:de,isAvailableBehavior:null})}if(oe){var _e=Math.abs(ie),$e=(ie>0?1:-1)*(_e>3?.4:_e>1?.15:.05);checkPointerAndTrigger(this,"scrollMove","moveOnMouseWheel",$,{scrollDelta:$e,originX:ue,originY:de,isAvailableBehavior:null})}}},r.prototype._pinchHandler=function($){if(!isTaken(this._zr,"globalPan")){var V=$.pinchScale>1?1.1:1/1.1;checkPointerAndTrigger(this,"zoom",null,$,{scale:V,originX:$.pinchX,originY:$.pinchY,isAvailableBehavior:null})}},r}(Eventful$1);function checkPointerAndTrigger(t,r,$,V,oe){t.pointerChecker&&t.pointerChecker(V,oe.originX,oe.originY)&&(stop(V.event),trigger$1(t,r,$,V,oe))}function trigger$1(t,r,$,V,oe){oe.isAvailableBehavior=bind$1(isAvailableBehavior,null,$,V),t.trigger(r,oe)}function isAvailableBehavior(t,r,$){var V=$[t];return!t||V&&(!isString(V)||r.event[V+"Key"])}const RoamController$1=RoamController;var IRRELEVANT_EXCLUDES={axisPointer:1,tooltip:1,brush:1};function onIrrelevantElement(t,r,$){var V=r.getComponentByElement(t.topTarget),oe=V&&V.coordinateSystem;return V&&V!==$&&!IRRELEVANT_EXCLUDES.hasOwnProperty(V.mainType)&&oe&&oe.model!==$}var each$9=each$c,isObject=isObject$3,CATEGORY_DEFAULT_VISUAL_INDEX=-1,VisualMapping=function(){function t(r){var $=r.mappingMethod,V=r.type,oe=this.option=clone$3(r);this.type=V,this.mappingMethod=$,this._normalizeData=normalizers[$];var ie=t.visualHandlers[V];this.applyVisual=ie.applyVisual,this.getColorMapper=ie.getColorMapper,this._normalizedToVisual=ie._normalizedToVisual[$],$==="piecewise"?(normalizeVisualRange(oe),preprocessForPiecewise(oe)):$==="category"?oe.categories?preprocessForSpecifiedCategory(oe):normalizeVisualRange(oe,!0):(assert($!=="linear"||oe.dataExtent),normalizeVisualRange(oe))}return t.prototype.mapValueToVisual=function(r){var $=this._normalizeData(r);return this._normalizedToVisual($,r)},t.prototype.getNormalizer=function(){return bind$1(this._normalizeData,this)},t.listVisualTypes=function(){return keys(t.visualHandlers)},t.isValidType=function(r){return t.visualHandlers.hasOwnProperty(r)},t.eachVisual=function(r,$,V){isObject$3(r)?each$c(r,$,V):$.call(V,r)},t.mapVisual=function(r,$,V){var oe,ie=isArray$1(r)?[]:isObject$3(r)?{}:(oe=!0,null);return t.eachVisual(r,function(le,ue){var de=$.call(V,le,ue);oe?ie=de:ie[ue]=de}),ie},t.retrieveVisuals=function(r){var $={},V;return r&&each$9(t.visualHandlers,function(oe,ie){r.hasOwnProperty(ie)&&($[ie]=r[ie],V=!0)}),V?$:null},t.prepareVisualTypes=function(r){if(isArray$1(r))r=r.slice();else if(isObject(r)){var $=[];each$9(r,function(V,oe){$.push(oe)}),r=$}else return[];return r.sort(function(V,oe){return oe==="color"&&V!=="color"&&V.indexOf("color")===0?1:-1}),r},t.dependsOn=function(r,$){return $==="color"?!!(r&&r.indexOf($)===0):r===$},t.findPieceIndex=function(r,$,V){for(var oe,ie=1/0,le=0,ue=$.length;le=0;ie--)V[ie]==null&&(delete $[r[ie]],r.pop())}function normalizeVisualRange(t,r){var $=t.visual,V=[];isObject$3($)?each$9($,function(ie){V.push(ie)}):$!=null&&V.push($);var oe={color:1,symbol:1};!r&&V.length===1&&!oe.hasOwnProperty(t.type)&&(V[1]=V[0]),setVisualToOption(t,V)}function makePartialColorVisualHandler(t){return{applyVisual:function(r,$,V){var oe=this.mapValueToVisual(r);V("color",t($("color"),oe))},_normalizedToVisual:createNormalizedToNumericVisual([0,1])}}function doMapToArray(t){var r=this.option.visual;return r[Math.round(linearMap$2(t,[0,1],[0,r.length-1],!0))]||{}}function makeApplyVisual(t){return function(r,$,V){V(t,this.mapValueToVisual(r))}}function doMapCategory(t){var r=this.option.visual;return r[this.option.loop&&t!==CATEGORY_DEFAULT_VISUAL_INDEX?t%r.length:t]}function doMapFixed(){return this.option.visual[0]}function createNormalizedToNumericVisual(t){return{linear:function(r){return linearMap$2(r,t,this.option.visual,!0)},category:doMapCategory,piecewise:function(r,$){var V=getSpecifiedVisual.call(this,$);return V==null&&(V=linearMap$2(r,t,this.option.visual,!0)),V},fixed:doMapFixed}}function getSpecifiedVisual(t){var r=this.option,$=r.pieceList;if(r.hasSpecialVisual){var V=VisualMapping.findPieceIndex(t,$),oe=$[V];if(oe&&oe.visual)return oe.visual[this.type]}}function setVisualToOption(t,r){return t.visual=r,t.type==="color"&&(t.parsedVisual=map$2(r,function($){var V=parse$1($);return V||[0,0,0,1]})),r}var normalizers={linear:function(t){return linearMap$2(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var r=this.option.pieceList,$=VisualMapping.findPieceIndex(t,r,!0);if($!=null)return linearMap$2($,[0,r.length-1],[0,1],!0)},category:function(t){var r=this.option.categories?this.option.categoryMap[t]:t;return r??CATEGORY_DEFAULT_VISUAL_INDEX},fixed:noop};function littleThan(t,r,$){return t?r<=$:r<$}const VisualMapping$1=VisualMapping;function sliderMove(t,r,$,V,oe,ie){t=t||0;var le=$[1]-$[0];if(oe!=null&&(oe=restrict(oe,[0,le])),ie!=null&&(ie=Math.max(ie,oe??0)),V==="all"){var ue=Math.abs(r[1]-r[0]);ue=restrict(ue,[0,le]),oe=ie=restrict(ue,[oe,ie]),V=0}r[0]=restrict(r[0],$),r[1]=restrict(r[1],$);var de=getSpanSign(r,V);r[V]+=t;var pe=oe||0,he=$.slice();de.sign<0?he[0]+=pe:he[1]-=pe,r[V]=restrict(r[V],he);var _e;return _e=getSpanSign(r,V),oe!=null&&(_e.sign!==de.sign||_e.spanie&&(r[1-V]=r[V]+_e.sign*ie),r}function getSpanSign(t,r){var $=t[r]-t[1-r];return{span:Math.abs($),sign:$>0?-1:$<0?1:r?-1:1}}function restrict(t,r){return Math.min(r[1]!=null?r[1]:1/0,Math.max(r[0]!=null?r[0]:-1/0,t))}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(t){__extends(r,t);function r($){var V=t.call(this)||this;return V._track=[],V._covers=[],V._handlers={},V._zr=$,V.group=new Group$3,V._uid="brushController_"+baseUID++,each$c(pointerHandlers,function(oe,ie){this._handlers[ie]=bind$1(oe,this)},V),V}return r.prototype.enableBrush=function($){return this._brushType&&this._doDisableBrush(),$.brushType&&this._doEnableBrush($),this},r.prototype._doEnableBrush=function($){var V=this._zr;this._enableGlobalPan||take(V,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(oe,ie){V.on(ie,oe)}),this._brushType=$.brushType,this._brushOption=merge(clone$3(DEFAULT_BRUSH_OPT),$,!0)},r.prototype._doDisableBrush=function(){var $=this._zr;release($,MUTEX_RESOURCE_KEY,this._uid),each$c(this._handlers,function(V,oe){$.off(oe,V)}),this._brushType=this._brushOption=null},r.prototype.setPanels=function($){if($&&$.length){var V=this._panels={};each$c($,function(oe){V[oe.panelId]=clone$3(oe)})}else this._panels=null;return this},r.prototype.mount=function($){$=$||{},this._enableGlobalPan=$.enableGlobalPan;var V=this.group;return this._zr.add(V),V.attr({x:$.x||0,y:$.y||0,rotation:$.rotation||0,scaleX:$.scaleX||1,scaleY:$.scaleY||1}),this._transform=V.getLocalTransform(),this},r.prototype.updateCovers=function($){$=map$2($,function($e){return merge(clone$3(DEFAULT_BRUSH_OPT),$e,!0)});var V="\0-brush-index-",oe=this._covers,ie=this._covers=[],le=this,ue=this._creatingCover;return new DataDiffer$1(oe,$,pe,de).add(he).update(he).remove(_e).execute(),this;function de($e,Ie){return($e.id!=null?$e.id:V+Ie)+"-"+$e.brushType}function pe($e,Ie){return de($e.__brushOption,Ie)}function he($e,Ie){var Ve=$[$e];if(Ie!=null&&oe[Ie]===ue)ie[$e]=oe[Ie];else{var Fe=ie[$e]=Ie!=null?(oe[Ie].__brushOption=Ve,oe[Ie]):endCreating(le,createCover(le,Ve));updateCoverAfterCreation(le,Fe)}}function _e($e){oe[$e]!==ue&&le.group.remove(oe[$e])}},r.prototype.unmount=function(){return this.enableBrush(!1),clearCovers(this),this._zr.remove(this.group),this},r.prototype.dispose=function(){this.unmount(),this.off()},r}(Eventful$1);function createCover(t,r){var $=coverRenderers[r.brushType].createCover(t,r);return $.__brushOption=r,updateZ($,r),t.group.add($),$}function endCreating(t,r){var $=getCoverRenderer(r);return $.endCreating&&($.endCreating(t,r),updateZ(r,r.__brushOption)),r}function updateCoverShape(t,r){var $=r.__brushOption;getCoverRenderer(r).updateCoverShape(t,r,$.range,$)}function updateZ(t,r){var $=r.z;$==null&&($=COVER_Z),t.traverse(function(V){V.z=$,V.z2=$})}function updateCoverAfterCreation(t,r){getCoverRenderer(r).updateCommon(t,r),updateCoverShape(t,r)}function getCoverRenderer(t){return coverRenderers[t.__brushOption.brushType]}function getPanelByPoint(t,r,$){var V=t._panels;if(!V)return BRUSH_PANEL_GLOBAL;var oe,ie=t._transform;return each$c(V,function(le){le.isTargetByCursor(r,$,ie)&&(oe=le)}),oe}function getPanelByCover(t,r){var $=t._panels;if(!$)return BRUSH_PANEL_GLOBAL;var V=r.__brushOption.panelId;return V!=null?$[V]:BRUSH_PANEL_GLOBAL}function clearCovers(t){var r=t._covers,$=r.length;return each$c(r,function(V){t.group.remove(V)},t),r.length=0,!!$}function trigger(t,r){var $=map$2(t._covers,function(V){var oe=V.__brushOption,ie=clone$3(oe.range);return{brushType:oe.brushType,panelId:oe.panelId,range:ie}});t.trigger("brush",{areas:$,isEnd:!!r.isEnd,removeOnClick:!!r.removeOnClick})}function shouldShowCover(t){var r=t._track;if(!r.length)return!1;var $=r[r.length-1],V=r[0],oe=$[0]-V[0],ie=$[1]-V[1],le=mathPow(oe*oe+ie*ie,.5);return le>UNSELECT_THRESHOLD}function getTrackEnds(t){var r=t.length-1;return r<0&&(r=0),[t[0],t[r]]}function createBaseRectCover(t,r,$,V){var oe=new Group$3;return oe.add(new Rect$2({name:"main",style:makeStyle($),silent:!0,draggable:!0,cursor:"move",drift:curry$1(driftRect,t,r,oe,["n","s","w","e"]),ondragend:curry$1(trigger,r,{isEnd:!0})})),each$c(V,function(ie){oe.add(new Rect$2({name:ie.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:curry$1(driftRect,t,r,oe,ie),ondragend:curry$1(trigger,r,{isEnd:!0})}))}),oe}function updateBaseRect(t,r,$,V){var oe=V.brushStyle.lineWidth||0,ie=mathMax$1(oe,MIN_RESIZE_LINE_WIDTH),le=$[0][0],ue=$[1][0],de=le-oe/2,pe=ue-oe/2,he=$[0][1],_e=$[1][1],$e=he-ie+oe/2,Ie=_e-ie+oe/2,Ve=he-le,Fe=_e-ue,Ue=Ve+oe,qe=Fe+oe;updateRectShape(t,r,"main",le,ue,Ve,Fe),V.transformable&&(updateRectShape(t,r,"w",de,pe,ie,qe),updateRectShape(t,r,"e",$e,pe,ie,qe),updateRectShape(t,r,"n",de,pe,Ue,ie),updateRectShape(t,r,"s",de,Ie,Ue,ie),updateRectShape(t,r,"nw",de,pe,ie,ie),updateRectShape(t,r,"ne",$e,pe,ie,ie),updateRectShape(t,r,"sw",de,Ie,ie,ie),updateRectShape(t,r,"se",$e,Ie,ie,ie))}function updateCommon(t,r){var $=r.__brushOption,V=$.transformable,oe=r.childAt(0);oe.useStyle(makeStyle($)),oe.attr({silent:!V,cursor:V?"move":"default"}),each$c([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(ie){var le=r.childOfName(ie.join("")),ue=ie.length===1?getGlobalDirection1(t,ie[0]):getGlobalDirection2(t,ie);le&&le.attr({silent:!V,invisible:!V,cursor:V?CURSOR_MAP[ue]+"-resize":null})})}function updateRectShape(t,r,$,V,oe,ie,le){var ue=r.childOfName($);ue&&ue.setShape(pointsToRect(clipByPanel(t,r,[[V,oe],[V+ie,oe+le]])))}function makeStyle(t){return defaults({strokeNoScale:!0},t.brushStyle)}function formatRectRange(t,r,$,V){var oe=[mathMin$1(t,$),mathMin$1(r,V)],ie=[mathMax$1(t,$),mathMax$1(r,V)];return[[oe[0],ie[0]],[oe[1],ie[1]]]}function getTransform(t){return getTransform$1(t.group)}function getGlobalDirection1(t,r){var $={w:"left",e:"right",n:"top",s:"bottom"},V={left:"w",right:"e",top:"n",bottom:"s"},oe=transformDirection($[r],getTransform(t));return V[oe]}function getGlobalDirection2(t,r){var $=[getGlobalDirection1(t,r[0]),getGlobalDirection1(t,r[1])];return($[0]==="e"||$[0]==="w")&&$.reverse(),$.join("")}function driftRect(t,r,$,V,oe,ie){var le=$.__brushOption,ue=t.toRectRange(le.range),de=toLocalDelta(r,oe,ie);each$c(V,function(pe){var he=DIRECTION_MAP[pe];ue[he[0]][he[1]]+=de[he[0]]}),le.range=t.fromRectRange(formatRectRange(ue[0][0],ue[1][0],ue[0][1],ue[1][1])),updateCoverAfterCreation(r,$),trigger(r,{isEnd:!1})}function driftPolygon(t,r,$,V){var oe=r.__brushOption.range,ie=toLocalDelta(t,$,V);each$c(oe,function(le){le[0]+=ie[0],le[1]+=ie[1]}),updateCoverAfterCreation(t,r),trigger(t,{isEnd:!1})}function toLocalDelta(t,r,$){var V=t.group,oe=V.transformCoordToLocal(r,$),ie=V.transformCoordToLocal(0,0);return[oe[0]-ie[0],oe[1]-ie[1]]}function clipByPanel(t,r,$){var V=getPanelByCover(t,r);return V&&V!==BRUSH_PANEL_GLOBAL?V.clipPath($,t._transform):clone$3($)}function pointsToRect(t){var r=mathMin$1(t[0][0],t[1][0]),$=mathMin$1(t[0][1],t[1][1]),V=mathMax$1(t[0][0],t[1][0]),oe=mathMax$1(t[0][1],t[1][1]);return{x:r,y:$,width:V-r,height:oe-$}}function resetCursor(t,r,$){if(!(!t._brushType||isOutsideZrArea(t,r.offsetX,r.offsetY))){var V=t._zr,oe=t._covers,ie=getPanelByPoint(t,r,$);if(!t._dragging)for(var le=0;leV.getWidth()||$<0||$>V.getHeight()}var coverRenderers={lineX:getLineRenderer(0),lineY:getLineRenderer(1),rect:{createCover:function(t,r){function $(V){return V}return createBaseRectCover({toRectRange:$,fromRectRange:$},t,r,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var r=getTrackEnds(t);return formatRectRange(r[1][0],r[1][1],r[0][0],r[0][1])},updateCoverShape:function(t,r,$,V){updateBaseRect(t,r,$,V)},updateCommon,contain:mainShapeContain},polygon:{createCover:function(t,r){var $=new Group$3;return $.add(new Polyline$1({name:"main",style:makeStyle(r),silent:!0})),$},getCreatingRange:function(t){return t},endCreating:function(t,r){r.remove(r.childAt(0)),r.add(new Polygon$1({name:"main",draggable:!0,drift:curry$1(driftPolygon,t,r),ondragend:curry$1(trigger,t,{isEnd:!0})}))},updateCoverShape:function(t,r,$,V){r.childAt(0).setShape({points:clipByPanel(t,r,$)})},updateCommon,contain:mainShapeContain}};function getLineRenderer(t){return{createCover:function(r,$){return createBaseRectCover({toRectRange:function(V){var oe=[V,[0,100]];return t&&oe.reverse(),oe},fromRectRange:function(V){return V[t]}},r,$,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(r){var $=getTrackEnds(r),V=mathMin$1($[0][t],$[1][t]),oe=mathMax$1($[0][t],$[1][t]);return[V,oe]},updateCoverShape:function(r,$,V,oe){var ie,le=getPanelByCover(r,$);if(le!==BRUSH_PANEL_GLOBAL&&le.getLinearBrushOtherExtent)ie=le.getLinearBrushOtherExtent(t);else{var ue=r._zr;ie=[0,[ue.getWidth(),ue.getHeight()][1-t]]}var de=[V,ie];t&&de.reverse(),updateBaseRect(r,$,de,oe)},updateCommon,contain:mainShapeContain}}const BrushController$1=BrushController;function makeRectPanelClipPath(t){return t=normalizeRect(t),function(r){return clipPointsByRect(r,t)}}function makeLinearBrushOtherExtent(t,r){return t=normalizeRect(t),function($){var V=r??$,oe=V?t.width:t.height,ie=V?t.x:t.y;return[ie,ie+(oe||0)]}}function makeRectIsTargetByCursor(t,r,$){var V=normalizeRect(t);return function(oe,ie){return V.contain(ie[0],ie[1])&&!onIrrelevantElement(oe,r,$)}}function normalizeRect(t){return BoundingRect$1.create(t)}function isEC4CompatibleStyle(t,r,$,V){return t&&(t.legacy||t.legacy!==!1&&!$&&!V&&r!=="tspan"&&(r==="text"||hasOwn(t,"text")))}function convertFromEC4CompatibleStyle(t,r,$){var V=t,oe,ie,le;if(r==="text")le=V;else{le={},hasOwn(V,"text")&&(le.text=V.text),hasOwn(V,"rich")&&(le.rich=V.rich),hasOwn(V,"textFill")&&(le.fill=V.textFill),hasOwn(V,"textStroke")&&(le.stroke=V.textStroke),hasOwn(V,"fontFamily")&&(le.fontFamily=V.fontFamily),hasOwn(V,"fontSize")&&(le.fontSize=V.fontSize),hasOwn(V,"fontStyle")&&(le.fontStyle=V.fontStyle),hasOwn(V,"fontWeight")&&(le.fontWeight=V.fontWeight),ie={type:"text",style:le,silent:!0},oe={};var ue=hasOwn(V,"textPosition");$?oe.position=ue?V.textPosition:"inside":ue&&(oe.position=V.textPosition),hasOwn(V,"textPosition")&&(oe.position=V.textPosition),hasOwn(V,"textOffset")&&(oe.offset=V.textOffset),hasOwn(V,"textRotation")&&(oe.rotation=V.textRotation),hasOwn(V,"textDistance")&&(oe.distance=V.textDistance)}return convertEC4CompatibleRichItem(le,t),each$c(le.rich,function(de){convertEC4CompatibleRichItem(de,de)}),{textConfig:oe,textContent:ie}}function convertEC4CompatibleRichItem(t,r){r&&(r.font=r.textFont||r.font,hasOwn(r,"textStrokeWidth")&&(t.lineWidth=r.textStrokeWidth),hasOwn(r,"textAlign")&&(t.align=r.textAlign),hasOwn(r,"textVerticalAlign")&&(t.verticalAlign=r.textVerticalAlign),hasOwn(r,"textLineHeight")&&(t.lineHeight=r.textLineHeight),hasOwn(r,"textWidth")&&(t.width=r.textWidth),hasOwn(r,"textHeight")&&(t.height=r.textHeight),hasOwn(r,"textBackgroundColor")&&(t.backgroundColor=r.textBackgroundColor),hasOwn(r,"textPadding")&&(t.padding=r.textPadding),hasOwn(r,"textBorderColor")&&(t.borderColor=r.textBorderColor),hasOwn(r,"textBorderWidth")&&(t.borderWidth=r.textBorderWidth),hasOwn(r,"textBorderRadius")&&(t.borderRadius=r.textBorderRadius),hasOwn(r,"textBoxShadowColor")&&(t.shadowColor=r.textBoxShadowColor),hasOwn(r,"textBoxShadowBlur")&&(t.shadowBlur=r.textBoxShadowBlur),hasOwn(r,"textBoxShadowOffsetX")&&(t.shadowOffsetX=r.textBoxShadowOffsetX),hasOwn(r,"textBoxShadowOffsetY")&&(t.shadowOffsetY=r.textBoxShadowOffsetY))}var LEGACY_TRANSFORM_PROPS_MAP={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},LEGACY_TRANSFORM_PROPS=keys(LEGACY_TRANSFORM_PROPS_MAP);reduce(TRANSFORMABLE_PROPS,function(t,r){return t[r]=1,t},{});TRANSFORMABLE_PROPS.join(", ");var ELEMENT_ANIMATABLE_PROPS=["","style","shape","extra"],transitionInnerStore=makeInner();function getElementAnimationConfig(t,r,$,V,oe){var ie=t+"Animation",le=getAnimationConfig(t,V,oe)||{},ue=transitionInnerStore(r).userDuring;return le.duration>0&&(le.during=ue?bind$1(duringCall,{el:r,userDuring:ue}):null,le.setToFinal=!0,le.scope=t),extend(le,$[ie]),le}function applyUpdateTransition(t,r,$,V){V=V||{};var oe=V.dataIndex,ie=V.isInit,le=V.clearStyle,ue=$.isAnimationEnabled(),de=transitionInnerStore(t),pe=r.style;de.userDuring=r.during;var he={},_e={};if(prepareTransformAllPropsFinal(t,r,_e),prepareShapeOrExtraAllPropsFinal("shape",r,_e),prepareShapeOrExtraAllPropsFinal("extra",r,_e),!ie&&ue&&(prepareTransformTransitionFrom(t,r,he),prepareShapeOrExtraTransitionFrom("shape",t,r,he),prepareShapeOrExtraTransitionFrom("extra",t,r,he),prepareStyleTransitionFrom(t,r,pe,he)),_e.style=pe,applyPropsDirectly(t,_e,le),applyMiscProps(t,r),ue)if(ie){var $e={};each$c(ELEMENT_ANIMATABLE_PROPS,function(Ve){var Fe=Ve?r[Ve]:r;Fe&&Fe.enterFrom&&(Ve&&($e[Ve]=$e[Ve]||{}),extend(Ve?$e[Ve]:$e,Fe.enterFrom))});var Ie=getElementAnimationConfig("enter",t,r,$,oe);Ie.duration>0&&t.animateFrom($e,Ie)}else applyPropsTransition(t,r,oe||0,$,he);updateLeaveTo(t,r),pe?t.dirty():t.markRedraw()}function updateLeaveTo(t,r){for(var $=transitionInnerStore(t).leaveToProps,V=0;V0&&t.animateFrom(oe,ie)}}function applyMiscProps(t,r){hasOwn(r,"silent")&&(t.silent=r.silent),hasOwn(r,"ignore")&&(t.ignore=r.ignore),t instanceof Displayable$1&&hasOwn(r,"invisible")&&(t.invisible=r.invisible),t instanceof Path$1&&hasOwn(r,"autoBatch")&&(t.autoBatch=r.autoBatch)}var tmpDuringScope={},transitionDuringAPI={setTransform:function(t,r){return tmpDuringScope.el[t]=r,this},getTransform:function(t){return tmpDuringScope.el[t]},setShape:function(t,r){var $=tmpDuringScope.el,V=$.shape||($.shape={});return V[t]=r,$.dirtyShape&&$.dirtyShape(),this},getShape:function(t){var r=tmpDuringScope.el.shape;if(r)return r[t]},setStyle:function(t,r){var $=tmpDuringScope.el,V=$.style;return V&&(V[t]=r,$.dirtyStyle&&$.dirtyStyle()),this},getStyle:function(t){var r=tmpDuringScope.el.style;if(r)return r[t]},setExtra:function(t,r){var $=tmpDuringScope.el.extra||(tmpDuringScope.el.extra={});return $[t]=r,this},getExtra:function(t){var r=tmpDuringScope.el.extra;if(r)return r[t]}};function duringCall(){var t=this,r=t.el;if(r){var $=transitionInnerStore(r).userDuring,V=t.userDuring;if($!==V){t.el=t.userDuring=null;return}tmpDuringScope.el=r,V(transitionDuringAPI)}}function prepareShapeOrExtraTransitionFrom(t,r,$,V){var oe=$[t];if(oe){var ie=r[t],le;if(ie){var ue=$.transition,de=oe.transition;if(de)if(!le&&(le=V[t]={}),isTransitionAll(de))extend(le,ie);else for(var pe=normalizeToArray(de),he=0;he=0){!le&&(le=V[t]={});for(var Ie=keys(ie),he=0;he=0)){var $e=t.getAnimationStyleProps(),Ie=$e?$e.style:null;if(Ie){!ie&&(ie=V.style={});for(var Ve=keys($),pe=0;peue)return!0;if(le){var de=getAxisInfo(r).seriesDataCount,pe=oe.getExtent();return Math.abs(pe[0]-pe[1])/de>ue}return!1}return V===!0},t.prototype.makeElOption=function(r,$,V,oe,ie){},t.prototype.createPointerEl=function(r,$,V,oe){var ie=$.pointer;if(ie){var le=inner$5(r).pointerEl=new graphic$1[ie.type](clone($.pointer));r.add(le)}},t.prototype.createLabelEl=function(r,$,V,oe){if($.label){var ie=inner$5(r).labelEl=new ZRText$1(clone($.label));r.add(ie),updateLabelShowHide(ie,oe)}},t.prototype.updatePointerEl=function(r,$,V){var oe=inner$5(r).pointerEl;oe&&$.pointer&&(oe.setStyle($.pointer.style),V(oe,{shape:$.pointer.shape}))},t.prototype.updateLabelEl=function(r,$,V,oe){var ie=inner$5(r).labelEl;ie&&(ie.setStyle($.label.style),V(ie,{x:$.label.x,y:$.label.y}),updateLabelShowHide(ie,oe))},t.prototype._renderHandle=function(r){if(!(this._dragging||!this.updateHandleTransform)){var $=this._axisPointerModel,V=this._api.getZr(),oe=this._handle,ie=$.getModel("handle"),le=$.get("status");if(!ie.get("show")||!le||le==="hide"){oe&&V.remove(oe),this._handle=null;return}var ue;this._handle||(ue=!0,oe=this._handle=createIcon(ie.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(pe){stop(pe.event)},onmousedown:bind(this._onHandleDragMove,this,0,0),drift:bind(this._onHandleDragMove,this),ondragend:bind(this._onHandleDragEnd,this)}),V.add(oe)),updateMandatoryProps(oe,$,!1),oe.setStyle(ie.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var de=ie.get("size");isArray$1(de)||(de=[de,de]),oe.scaleX=de[0]/2,oe.scaleY=de[1]/2,createOrUpdate(this,"_doDispatchAxisPointer",ie.get("throttle")||0,"fixRate"),this._moveHandleToValue(r,ue)}},t.prototype._moveHandleToValue=function(r,$){updateProps(this._axisPointerModel,!$&&this._moveAnimation,this._handle,getHandleTransProps(this.getHandleTransform(r,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(r,$){var V=this._handle;if(V){this._dragging=!0;var oe=this.updateHandleTransform(getHandleTransProps(V),[r,$],this._axisModel,this._axisPointerModel);this._payloadInfo=oe,V.stopAnimation(),V.attr(getHandleTransProps(oe)),inner$5(V).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var r=this._handle;if(r){var $=this._payloadInfo,V=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:$.cursorPoint[0],y:$.cursorPoint[1],tooltipOption:$.tooltipOption,axesInfo:[{axisDim:V.axis.dim,axisIndex:V.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var r=this._handle;if(r){var $=this._axisPointerModel.get("value");this._moveHandleToValue($),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(r){this._lastValue=null,this._lastStatus=null;var $=r.getZr(),V=this._group,oe=this._handle;$&&V&&(this._lastGraphicKey=null,V&&$.remove(V),oe&&$.remove(oe),this._group=null,this._handle=null,this._payloadInfo=null),clear$1(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(r,$,V){return V=V||0,{x:r[V],y:r[1-V],width:$[V],height:$[1-V]}},t}();function updateProps(t,r,$,V){propsEqual(inner$5($).lastProp,V)||(inner$5($).lastProp=V,r?updateProps$1($,V,t):($.stopAnimation(),$.attr(V)))}function propsEqual(t,r){if(isObject$3(t)&&isObject$3(r)){var $=!0;return each$c(r,function(V,oe){$=$&&propsEqual(t[oe],V)}),!!$}else return t===r}function updateLabelShowHide(t,r){t[r.get(["label","show"])?"show":"hide"]()}function getHandleTransProps(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function updateMandatoryProps(t,r,$){var V=r.get("z"),oe=r.get("zlevel");t&&t.traverse(function(ie){ie.type!=="group"&&(V!=null&&(ie.z=V),oe!=null&&(ie.zlevel=oe),ie.silent=$)})}const BaseAxisPointer$1=BaseAxisPointer;function buildElStyle(t){var r=t.get("type"),$=t.getModel(r+"Style"),V;return r==="line"?(V=$.getLineStyle(),V.fill=null):r==="shadow"&&(V=$.getAreaStyle(),V.stroke=null),V}function buildLabelElOption(t,r,$,V,oe){var ie=$.get("value"),le=getValueLabel(ie,r.axis,r.ecModel,$.get("seriesDataIndices"),{precision:$.get(["label","precision"]),formatter:$.get(["label","formatter"])}),ue=$.getModel("label"),de=normalizeCssArray(ue.get("padding")||0),pe=ue.getFont(),he=getBoundingRect(le,pe),_e=oe.position,$e=he.width+de[1]+de[3],Ie=he.height+de[0]+de[2],Ve=oe.align;Ve==="right"&&(_e[0]-=$e),Ve==="center"&&(_e[0]-=$e/2);var Fe=oe.verticalAlign;Fe==="bottom"&&(_e[1]-=Ie),Fe==="middle"&&(_e[1]-=Ie/2),confineInContainer(_e,$e,Ie,V);var Ue=ue.get("backgroundColor");(!Ue||Ue==="auto")&&(Ue=r.get(["axisLine","lineStyle","color"])),t.label={x:_e[0],y:_e[1],style:createTextStyle$1(ue,{text:le,font:pe,fill:ue.getTextColor(),padding:de,backgroundColor:Ue}),z2:10}}function confineInContainer(t,r,$,V){var oe=V.getWidth(),ie=V.getHeight();t[0]=Math.min(t[0]+r,oe)-r,t[1]=Math.min(t[1]+$,ie)-$,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function getValueLabel(t,r,$,V,oe){t=r.scale.parse(t);var ie=r.scale.getLabel({value:t},{precision:oe.precision}),le=oe.formatter;if(le){var ue={value:getAxisRawValue(r,{value:t}),axisDimension:r.dim,axisIndex:r.index,seriesData:[]};each$c(V,function(de){var pe=$.getSeriesByIndex(de.seriesIndex),he=de.dataIndexInside,_e=pe&&pe.getDataParams(he);_e&&ue.seriesData.push(_e)}),isString(le)?ie=le.replace("{value}",ie):isFunction(le)&&(ie=le(ue))}return ie}function getTransformedPosition(t,r,$){var V=create();return rotate(V,V,$.rotation),translate(V,V,$.position),applyTransform([t.dataToCoord(r),($.labelOffset||0)+($.labelDirection||1)*($.labelMargin||0)],V)}function buildCartesianSingleLabelElOption(t,r,$,V,oe,ie){var le=AxisBuilder$1.innerTextLayout($.rotation,0,$.labelDirection);$.labelMargin=oe.get(["label","margin"]),buildLabelElOption(r,V,oe,ie,{position:getTransformedPosition(V.axis,t,$),align:le.textAlign,verticalAlign:le.textVerticalAlign})}function makeLineShape(t,r,$){return $=$||0,{x1:t[$],y1:t[1-$],x2:r[$],y2:r[1-$]}}function makeRectShape(t,r,$){return $=$||0,{x:t[$],y:t[1-$],width:r[$],height:r[1-$]}}var CartesianAxisPointer=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.makeElOption=function($,V,oe,ie,le){var ue=oe.axis,de=ue.grid,pe=ie.get("type"),he=getCartesian(de,ue).getOtherAxis(ue).getGlobalExtent(),_e=ue.toGlobalCoord(ue.dataToCoord(V,!0));if(pe&&pe!=="none"){var $e=buildElStyle(ie),Ie=pointerShapeBuilder[pe](ue,_e,he);Ie.style=$e,$.graphicKey=Ie.type,$.pointer=Ie}var Ve=layout$1(de.model,oe);buildCartesianSingleLabelElOption(V,$,Ve,oe,ie,le)},r.prototype.getHandleTransform=function($,V,oe){var ie=layout$1(V.axis.grid.model,V,{labelInside:!1});ie.labelMargin=oe.get(["handle","margin"]);var le=getTransformedPosition(V.axis,$,ie);return{x:le[0],y:le[1],rotation:ie.rotation+(ie.labelDirection<0?Math.PI:0)}},r.prototype.updateHandleTransform=function($,V,oe,ie){var le=oe.axis,ue=le.grid,de=le.getGlobalExtent(!0),pe=getCartesian(ue,le).getOtherAxis(le).getGlobalExtent(),he=le.dim==="x"?0:1,_e=[$.x,$.y];_e[he]+=V[he],_e[he]=Math.min(de[1],_e[he]),_e[he]=Math.max(de[0],_e[he]);var $e=(pe[1]+pe[0])/2,Ie=[$e,$e];Ie[he]=_e[he];var Ve=[{verticalAlign:"middle"},{align:"center"}];return{x:_e[0],y:_e[1],rotation:$.rotation,cursorPoint:Ie,tooltipOption:Ve[he]}},r}(BaseAxisPointer$1);function getCartesian(t,r){var $={};return $[r.dim+"AxisIndex"]=r.index,t.getCartesian($)}var pointerShapeBuilder={line:function(t,r,$){var V=makeLineShape([r,$[0]],[r,$[1]],getAxisDimIndex(t));return{type:"Line",subPixelOptimize:!0,shape:V}},shadow:function(t,r,$){var V=Math.max(1,t.getBandWidth()),oe=$[1]-$[0];return{type:"Rect",shape:makeRectShape([r-V/2,$[0]],[V,oe],getAxisDimIndex(t))}}};function getAxisDimIndex(t){return t.dim==="x"?0:1}const CartesianAxisPointer$1=CartesianAxisPointer;var AxisPointerModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.type="axisPointer",r.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},r}(ComponentModel$1);const AxisPointerModel$1=AxisPointerModel;var inner$4=makeInner(),each$8=each$c;function register(t,r,$){if(!env$1.node){var V=r.getZr();inner$4(V).records||(inner$4(V).records={}),initGlobalListeners(V,r);var oe=inner$4(V).records[t]||(inner$4(V).records[t]={});oe.handler=$}}function initGlobalListeners(t,r){if(inner$4(t).initialized)return;inner$4(t).initialized=!0,$("click",curry$1(doEnter,"click")),$("mousemove",curry$1(doEnter,"mousemove")),$("globalout",onLeave);function $(V,oe){t.on(V,function(ie){var le=makeDispatchAction$1(r);each$8(inner$4(t).records,function(ue){ue&&oe(ue,ie,le.dispatchAction)}),dispatchTooltipFinally(le.pendings,r)})}}function dispatchTooltipFinally(t,r){var $=t.showTip.length,V=t.hideTip.length,oe;$?oe=t.showTip[$-1]:V&&(oe=t.hideTip[V-1]),oe&&(oe.dispatchAction=null,r.dispatchAction(oe))}function onLeave(t,r,$){t.handler("leave",null,$)}function doEnter(t,r,$,V){r.handler(t,$,V)}function makeDispatchAction$1(t){var r={showTip:[],hideTip:[]},$=function(V){var oe=r[V.type];oe?oe.push(V):(V.dispatchAction=$,t.dispatchAction(V))};return{dispatchAction:$,pendings:r}}function unregister(t,r){if(!env$1.node){var $=r.getZr(),V=(inner$4($).records||{})[t];V&&(inner$4($).records[t]=null)}}var AxisPointerView=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.prototype.render=function($,V,oe){var ie=V.getComponent("tooltip"),le=$.get("triggerOn")||ie&&ie.get("triggerOn")||"mousemove|click";register("axisPointer",oe,function(ue,de,pe){le!=="none"&&(ue==="leave"||le.indexOf(ue)>=0)&&pe({type:"updateAxisPointer",currTrigger:ue,x:de&&de.offsetX,y:de&&de.offsetY})})},r.prototype.remove=function($,V){unregister("axisPointer",V)},r.prototype.dispose=function($,V){unregister("axisPointer",V)},r.type="axisPointer",r}(ComponentView$1);const AxisPointerView$1=AxisPointerView;function findPointFromSeries(t,r){var $=[],V=t.seriesIndex,oe;if(V==null||!(oe=r.getSeriesByIndex(V)))return{point:[]};var ie=oe.getData(),le=queryDataIndex(ie,t);if(le==null||le<0||isArray$1(le))return{point:[]};var ue=ie.getItemGraphicEl(le),de=oe.coordinateSystem;if(oe.getTooltipPosition)$=oe.getTooltipPosition(le)||[];else if(de&&de.dataToPoint)if(t.isStacked){var pe=de.getBaseAxis(),he=de.getOtherAxis(pe),_e=he.dim,$e=pe.dim,Ie=_e==="x"||_e==="radius"?1:0,Ve=ie.mapDimension($e),Fe=[];Fe[Ie]=ie.get(Ve,le),Fe[1-Ie]=ie.get(ie.getCalculationInfo("stackResultDimension"),le),$=de.dataToPoint(Fe)||[]}else $=de.dataToPoint(ie.getValues(map$2(de.dimensions,function(qe){return ie.mapDimension(qe)}),le))||[];else if(ue){var Ue=ue.getBoundingRect().clone();Ue.applyTransform(ue.transform),$=[Ue.x+Ue.width/2,Ue.y+Ue.height/2]}return{point:$,el:ue}}var inner$3=makeInner();function axisTrigger(t,r,$){var V=t.currTrigger,oe=[t.x,t.y],ie=t,le=t.dispatchAction||bind$1($.dispatchAction,$),ue=r.getComponent("axisPointer").coordSysAxesInfo;if(ue){illegalPoint(oe)&&(oe=findPointFromSeries({seriesIndex:ie.seriesIndex,dataIndex:ie.dataIndex},r).point);var de=illegalPoint(oe),pe=ie.axesInfo,he=ue.axesInfo,_e=V==="leave"||illegalPoint(oe),$e={},Ie={},Ve={list:[],map:{}},Fe={showPointer:curry$1(showPointer,Ie),showTooltip:curry$1(showTooltip,Ve)};each$c(ue.coordSysMap,function(qe,Et){var Lt=de||qe.containPoint(oe);each$c(ue.coordSysAxesInfo[Et],function(hn,Cn){var bn=hn.axis,Sn=findInputAxisInfo(pe,hn);if(!_e&&Lt&&(!pe||Sn)){var En=Sn&&Sn.value;En==null&&!de&&(En=bn.pointToData(oe)),En!=null&&processOnAxis(hn,En,Fe,!1,$e)}})});var Ue={};return each$c(he,function(qe,Et){var Lt=qe.linkGroup;Lt&&!Ie[Et]&&each$c(Lt.axesInfo,function(hn,Cn){var bn=Ie[Cn];if(hn!==qe&&bn){var Sn=bn.value;Lt.mapper&&(Sn=qe.axis.scale.parse(Lt.mapper(Sn,makeMapperParam(hn),makeMapperParam(qe)))),Ue[qe.key]=Sn}})}),each$c(Ue,function(qe,Et){processOnAxis(he[Et],qe,Fe,!0,$e)}),updateModelActually(Ie,he,$e),dispatchTooltipActually(Ve,oe,t,le),dispatchHighDownActually(he,le,$),$e}}function processOnAxis(t,r,$,V,oe){var ie=t.axis;if(!(ie.scale.isBlank()||!ie.containData(r))){if(!t.involveSeries){$.showPointer(t,r);return}var le=buildPayloadsBySeries(r,t),ue=le.payloadBatch,de=le.snapToValue;ue[0]&&oe.seriesIndex==null&&extend(oe,ue[0]),!V&&t.snap&&ie.containData(de)&&de!=null&&(r=de),$.showPointer(t,r,ue),$.showTooltip(t,le,de)}}function buildPayloadsBySeries(t,r){var $=r.axis,V=$.dim,oe=t,ie=[],le=Number.MAX_VALUE,ue=-1;return each$c(r.seriesModels,function(de,pe){var he=de.getData().mapDimensionsAll(V),_e,$e;if(de.getAxisTooltipData){var Ie=de.getAxisTooltipData(he,t,$);$e=Ie.dataIndices,_e=Ie.nestestValue}else{if($e=de.getData().indicesOfNearest(he[0],t,$.type==="category"?.5:null),!$e.length)return;_e=de.getData().get(he[0],$e[0])}if(!(_e==null||!isFinite(_e))){var Ve=t-_e,Fe=Math.abs(Ve);Fe<=le&&((Fe=0&&ue<0)&&(le=Fe,ue=Ve,oe=_e,ie.length=0),each$c($e,function(Ue){ie.push({seriesIndex:de.seriesIndex,dataIndexInside:Ue,dataIndex:de.getData().getRawIndex(Ue)})}))}}),{payloadBatch:ie,snapToValue:oe}}function showPointer(t,r,$,V){t[r.key]={value:$,payloadBatch:V}}function showTooltip(t,r,$,V){var oe=$.payloadBatch,ie=r.axis,le=ie.model,ue=r.axisPointerModel;if(!(!r.triggerTooltip||!oe.length)){var de=r.coordSys.model,pe=makeKey(de),he=t.map[pe];he||(he=t.map[pe]={coordSysId:de.id,coordSysIndex:de.componentIndex,coordSysType:de.type,coordSysMainType:de.mainType,dataByAxis:[]},t.list.push(he)),he.dataByAxis.push({axisDim:ie.dim,axisIndex:le.componentIndex,axisType:le.type,axisId:le.id,value:V,valueLabelOpt:{precision:ue.get(["label","precision"]),formatter:ue.get(["label","formatter"])},seriesDataIndices:oe.slice()})}}function updateModelActually(t,r,$){var V=$.axesInfo=[];each$c(r,function(oe,ie){var le=oe.axisPointerModel.option,ue=t[ie];ue?(!oe.useHandle&&(le.status="show"),le.value=ue.value,le.seriesDataIndices=(ue.payloadBatch||[]).slice()):!oe.useHandle&&(le.status="hide"),le.status==="show"&&V.push({axisDim:oe.axis.dim,axisIndex:oe.axis.model.componentIndex,value:le.value})})}function dispatchTooltipActually(t,r,$,V){if(illegalPoint(r)||!t.list.length){V({type:"hideTip"});return}var oe=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};V({type:"showTip",escapeConnect:!0,x:r[0],y:r[1],tooltipOption:$.tooltipOption,position:$.position,dataIndexInside:oe.dataIndexInside,dataIndex:oe.dataIndex,seriesIndex:oe.seriesIndex,dataByCoordSys:t.list})}function dispatchHighDownActually(t,r,$){var V=$.getZr(),oe="axisPointerLastHighlights",ie=inner$3(V)[oe]||{},le=inner$3(V)[oe]={};each$c(t,function(pe,he){var _e=pe.axisPointerModel.option;_e.status==="show"&&pe.triggerEmphasis&&each$c(_e.seriesDataIndices,function($e){var Ie=$e.seriesIndex+" | "+$e.dataIndex;le[Ie]=$e})});var ue=[],de=[];each$c(ie,function(pe,he){!le[he]&&de.push(pe)}),each$c(le,function(pe,he){!ie[he]&&ue.push(pe)}),de.length&&$.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:de}),ue.length&&$.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:ue})}function findInputAxisInfo(t,r){for(var $=0;$<(t||[]).length;$++){var V=t[$];if(r.axis.dim===V.axisDim&&r.axis.model.componentIndex===V.axisIndex)return V}}function makeMapperParam(t){var r=t.axis.model,$={},V=$.axisDim=t.axis.dim;return $.axisIndex=$[V+"AxisIndex"]=r.componentIndex,$.axisName=$[V+"AxisName"]=r.name,$.axisId=$[V+"AxisId"]=r.id,$}function illegalPoint(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function install$f(t){AxisView$1.registerAxisPointerClass("CartesianAxisPointer",CartesianAxisPointer$1),t.registerComponentModel(AxisPointerModel$1),t.registerComponentView(AxisPointerView$1),t.registerPreprocessor(function(r){if(r){(!r.axisPointer||r.axisPointer.length===0)&&(r.axisPointer={});var $=r.axisPointer.link;$&&!isArray$1($)&&(r.axisPointer.link=[$])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(r,$){r.getComponent("axisPointer").coordSysAxesInfo=collect(r,$)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},axisTrigger)}function install$e(t){use$1(install$g),use$1(install$f)}function setKeyInfoToNewElOption(t,r){var $=t.existing;if(r.id=t.keyInfo.id,!r.type&&$&&(r.type=$.type),r.parentId==null){var V=r.parentOption;V?r.parentId=V.id:$&&(r.parentId=$.parentId)}r.parentOption=null}function isSetLoc(t,r){var $;return each$c(r,function(V){t[V]!=null&&t[V]!=="auto"&&($=!0)}),$}function mergeNewElOptionToExist(t,r,$){var V=extend({},$),oe=t[r],ie=$.$action||"merge";ie==="merge"?oe?(merge(oe,V,!0),mergeLayoutParam(oe,V,{ignoreSize:!0}),copyLayoutParams($,oe),copyTransitionInfo($,oe),copyTransitionInfo($,oe,"shape"),copyTransitionInfo($,oe,"style"),copyTransitionInfo($,oe,"extra"),$.clipPath=oe.clipPath):t[r]=V:ie==="replace"?t[r]=V:ie==="remove"&&oe&&(t[r]=null)}var TRANSITION_PROPS_TO_COPY=["transition","enterFrom","leaveTo"],ROOT_TRANSITION_PROPS_TO_COPY=TRANSITION_PROPS_TO_COPY.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function copyTransitionInfo(t,r,$){if($&&(!t[$]&&r[$]&&(t[$]={}),t=t[$],r=r[$]),!(!t||!r))for(var V=$?TRANSITION_PROPS_TO_COPY:ROOT_TRANSITION_PROPS_TO_COPY,oe=0;oe=0;he--){var _e=oe[he],$e=convertOptionIdName(_e.id,null),Ie=$e!=null?le.get($e):null;if(Ie){var Ve=Ie.parent,qe=inner$2(Ve),Et=Ve===ie?{width:ue,height:de}:{width:qe.width,height:qe.height},Lt={},hn=positionElement(Ie,_e,Et,null,{hv:_e.hv,boundingMode:_e.bounding},Lt);if(!inner$2(Ie).isNew&&hn){for(var Cn=_e.transition,bn={},Sn=0;Sn=0)?bn[En]=wn:Ie[En]=wn}updateProps$1(Ie,bn,$,0)}else Ie.attr(Lt)}}},r.prototype._clear=function(){var $=this,V=this._elMap;V.each(function(oe){removeEl(oe,inner$2(oe).option,V,$._lastGraphicModel)}),this._elMap=createHashMap()},r.prototype.dispose=function(){this._clear()},r.type="graphic",r}(ComponentView$1);function newEl(t){var r=hasOwn(nonShapeGraphicElements,t)?nonShapeGraphicElements[t]:getShapeClass(t),$=new r({});return inner$2($).type=t,$}function createEl(t,r,$,V){var oe=newEl($);return r.add(oe),V.set(t,oe),inner$2(oe).id=t,inner$2(oe).isNew=!0,oe}function removeEl(t,r,$,V){var oe=t&&t.parent;oe&&(t.type==="group"&&t.traverse(function(ie){removeEl(ie,r,$,V)}),applyLeaveTransition(t,r,V),$.removeKey(inner$2(t).id))}function updateCommonAttrs(t,r,$,V){t.isGroup||each$c([["cursor",Displayable$1.prototype.cursor],["zlevel",V||0],["z",$||0],["z2",0]],function(oe){var ie=oe[0];hasOwn(r,ie)?t[ie]=retrieve2(r[ie],oe[1]):t[ie]==null&&(t[ie]=oe[1])}),each$c(keys(r),function(oe){if(oe.indexOf("on")===0){var ie=r[oe];t[oe]=isFunction(ie)?ie:null}}),hasOwn(r,"draggable")&&(t.draggable=r.draggable),r.name!=null&&(t.name=r.name),r.id!=null&&(t.id=r.id)}function getCleanedElOption(t){return t=extend({},t),each$c(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(LOCATION_PARAMS),function(r){delete t[r]}),t}function setEventData(t,r,$){var V=getECData(t).eventData;!t.silent&&!t.ignore&&!V&&(V=getECData(t).eventData={componentType:"graphic",componentIndex:r.componentIndex,name:t.name}),V&&(V.info=$.info)}function install$d(t){t.registerComponentModel(GraphicComponentModel),t.registerComponentView(GraphicComponentView),t.registerPreprocessor(function(r){var $=r.graphic;isArray$1($)?!$[0]||!$[0].elements?r.graphic=[{elements:$}]:r.graphic=[r.graphic[0]]:$&&!$.elements&&(r.graphic=[{elements:[$]}])})}var DATA_ZOOM_AXIS_DIMENSIONS=["x","y","radius","angle","single"],SERIES_COORDS=["cartesian2d","polar","singleAxis"];function isCoordSupported(t){var r=t.get("coordinateSystem");return indexOf(SERIES_COORDS,r)>=0}function getAxisMainType(t){return t+"Axis"}function findEffectedDataZooms(t,r){var $=createHashMap(),V=[],oe=createHashMap();t.eachComponent({mainType:"dataZoom",query:r},function(he){oe.get(he.uid)||ue(he)});var ie;do ie=!1,t.eachComponent("dataZoom",le);while(ie);function le(he){!oe.get(he.uid)&&de(he)&&(ue(he),ie=!0)}function ue(he){oe.set(he.uid,!0),V.push(he),pe(he)}function de(he){var _e=!1;return he.eachTargetAxis(function($e,Ie){var Ve=$.get($e);Ve&&Ve[Ie]&&(_e=!0)}),_e}function pe(he){he.eachTargetAxis(function(_e,$e){($.get(_e)||$.set(_e,[]))[$e]=!0})}return V}function collectReferCoordSysModelInfo(t){var r=t.ecModel,$={infoList:[],infoMap:createHashMap()};return t.eachTargetAxis(function(V,oe){var ie=r.getComponent(getAxisMainType(V),oe);if(ie){var le=ie.getCoordSysModel();if(le){var ue=le.uid,de=$.infoMap.get(ue);de||(de={model:le,axisModels:[]},$.infoList.push(de),$.infoMap.set(ue,de)),de.axisModels.push(ie)}}}),$}var DataZoomAxisInfo=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(r){this.indexMap[r]||(this.indexList.push(r),this.indexMap[r]=!0)},t}(),DataZoomModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$._autoThrottle=!0,$._noTarget=!0,$._rangePropMode=["percent","percent"],$}return r.prototype.init=function($,V,oe){var ie=retrieveRawOption($);this.settledOption=ie,this.mergeDefaultAndTheme($,oe),this._doInit(ie)},r.prototype.mergeOption=function($){var V=retrieveRawOption($);merge(this.option,$,!0),merge(this.settledOption,V,!0),this._doInit(V)},r.prototype._doInit=function($){var V=this.option;this._setDefaultThrottle($),this._updateRangeUse($);var oe=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(ie,le){this._rangePropMode[le]==="value"&&(V[ie[0]]=oe[ie[0]]=null)},this),this._resetTarget()},r.prototype._resetTarget=function(){var $=this.get("orient",!0),V=this._targetAxisInfoMap=createHashMap(),oe=this._fillSpecifiedTargetAxis(V);oe?this._orient=$||this._makeAutoOrientByTargetAxis():(this._orient=$||"horizontal",this._fillAutoTargetAxisByOrient(V,this._orient)),this._noTarget=!0,V.each(function(ie){ie.indexList.length&&(this._noTarget=!1)},this)},r.prototype._fillSpecifiedTargetAxis=function($){var V=!1;return each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(oe){var ie=this.getReferringComponents(getAxisMainType(oe),MULTIPLE_REFERRING);if(ie.specified){V=!0;var le=new DataZoomAxisInfo;each$c(ie.models,function(ue){le.add(ue.componentIndex)}),$.set(oe,le)}},this),V},r.prototype._fillAutoTargetAxisByOrient=function($,V){var oe=this.ecModel,ie=!0;if(ie){var le=V==="vertical"?"y":"x",ue=oe.findComponents({mainType:le+"Axis"});de(ue,le)}if(ie){var ue=oe.findComponents({mainType:"singleAxis",filter:function(he){return he.get("orient",!0)===V}});de(ue,"single")}function de(pe,he){var _e=pe[0];if(_e){var $e=new DataZoomAxisInfo;if($e.add(_e.componentIndex),$.set(he,$e),ie=!1,he==="x"||he==="y"){var Ie=_e.getReferringComponents("grid",SINGLE_REFERRING).models[0];Ie&&each$c(pe,function(Ve){_e.componentIndex!==Ve.componentIndex&&Ie===Ve.getReferringComponents("grid",SINGLE_REFERRING).models[0]&&$e.add(Ve.componentIndex)})}}}ie&&each$c(DATA_ZOOM_AXIS_DIMENSIONS,function(pe){if(ie){var he=oe.findComponents({mainType:getAxisMainType(pe),filter:function($e){return $e.get("type",!0)==="category"}});if(he[0]){var _e=new DataZoomAxisInfo;_e.add(he[0].componentIndex),$.set(pe,_e),ie=!1}}},this)},r.prototype._makeAutoOrientByTargetAxis=function(){var $;return this.eachTargetAxis(function(V){!$&&($=V)},this),$==="y"?"vertical":"horizontal"},r.prototype._setDefaultThrottle=function($){if($.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var V=this.ecModel.option;this.option.throttle=V.animation&&V.animationDurationUpdate>0?100:20}},r.prototype._updateRangeUse=function($){var V=this._rangePropMode,oe=this.get("rangeMode");each$c([["start","startValue"],["end","endValue"]],function(ie,le){var ue=$[ie[0]]!=null,de=$[ie[1]]!=null;ue&&!de?V[le]="percent":!ue&&de?V[le]="value":oe?V[le]=oe[le]:ue&&(V[le]="percent")})},r.prototype.noTarget=function(){return this._noTarget},r.prototype.getFirstTargetAxisModel=function(){var $;return this.eachTargetAxis(function(V,oe){$==null&&($=this.ecModel.getComponent(getAxisMainType(V),oe))},this),$},r.prototype.eachTargetAxis=function($,V){this._targetAxisInfoMap.each(function(oe,ie){each$c(oe.indexList,function(le){$.call(V,ie,le)})})},r.prototype.getAxisProxy=function($,V){var oe=this.getAxisModel($,V);if(oe)return oe.__dzAxisProxy},r.prototype.getAxisModel=function($,V){var oe=this._targetAxisInfoMap.get($);if(oe&&oe.indexMap[V])return this.ecModel.getComponent(getAxisMainType($),V)},r.prototype.setRawRange=function($){var V=this.option,oe=this.settledOption;each$c([["start","startValue"],["end","endValue"]],function(ie){($[ie[0]]!=null||$[ie[1]]!=null)&&(V[ie[0]]=oe[ie[0]]=$[ie[0]],V[ie[1]]=oe[ie[1]]=$[ie[1]])},this),this._updateRangeUse($)},r.prototype.setCalculatedRange=function($){var V=this.option;each$c(["start","startValue","end","endValue"],function(oe){V[oe]=$[oe]})},r.prototype.getPercentRange=function(){var $=this.findRepresentativeAxisProxy();if($)return $.getDataPercentWindow()},r.prototype.getValueRange=function($,V){if($==null&&V==null){var oe=this.findRepresentativeAxisProxy();if(oe)return oe.getDataValueWindow()}else return this.getAxisProxy($,V).getDataValueWindow()},r.prototype.findRepresentativeAxisProxy=function($){if($)return $.__dzAxisProxy;for(var V,oe=this._targetAxisInfoMap.keys(),ie=0;iele[1];if(Lt&&!hn&&!Cn)return!0;Lt&&(Ue=!0),hn&&(Ve=!0),Cn&&(Fe=!0)}return Ue&&Ve&&Fe})}else each$7(he,function(Ie){if(ie==="empty")de.setData(pe=pe.map(Ie,function(Fe){return ue(Fe)?Fe:NaN}));else{var Ve={};Ve[Ie]=le,pe.selectRange(Ve)}});each$7(he,function(Ie){pe.setApproximateExtent(le,Ie)})}});function ue(de){return de>=le[0]&&de<=le[1]}},t.prototype._updateMinMaxSpan=function(){var r=this._minMaxSpan={},$=this._dataZoomModel,V=this._dataExtent;each$7(["min","max"],function(oe){var ie=$.get(oe+"Span"),le=$.get(oe+"ValueSpan");le!=null&&(le=this.getAxisModel().axis.scale.parse(le)),le!=null?ie=linearMap$2(V[0]+le,V,[0,100],!0):ie!=null&&(le=linearMap$2(ie,[0,100],V,!0)-V[0]),r[oe+"Span"]=ie,r[oe+"ValueSpan"]=le},this)},t.prototype._setAxisModel=function(){var r=this.getAxisModel(),$=this._percentWindow,V=this._valueWindow;if($){var oe=getPixelPrecision(V,[0,500]);oe=Math.min(oe,20);var ie=r.axis.scale.rawExtentInfo;$[0]!==0&&ie.setDeterminedMinMax("min",+V[0].toFixed(oe)),$[1]!==100&&ie.setDeterminedMinMax("max",+V[1].toFixed(oe)),ie.freeze()}},t}();function calculateDataExtent(t,r,$){var V=[1/0,-1/0];each$7($,function(le){unionAxisExtentFromData(V,le.getData(),r)});var oe=t.getAxisModel(),ie=ensureScaleRawExtentInfo(oe.axis.scale,oe,V).calculate();return[ie.min,ie.max]}const AxisProxy$1=AxisProxy;var dataZoomProcessor={getTargetSeries:function(t){function r(oe){t.eachComponent("dataZoom",function(ie){ie.eachTargetAxis(function(le,ue){var de=t.getComponent(getAxisMainType(le),ue);oe(le,ue,de,ie)})})}r(function(oe,ie,le,ue){le.__dzAxisProxy=null});var $=[];r(function(oe,ie,le,ue){le.__dzAxisProxy||(le.__dzAxisProxy=new AxisProxy$1(oe,ie,ue,t),$.push(le.__dzAxisProxy))});var V=createHashMap();return each$c($,function(oe){each$c(oe.getTargetSeriesModels(),function(ie){V.set(ie.uid,ie)})}),V},overallReset:function(t,r){t.eachComponent("dataZoom",function($){$.eachTargetAxis(function(V,oe){$.getAxisProxy(V,oe).reset($)}),$.eachTargetAxis(function(V,oe){$.getAxisProxy(V,oe).filterData($,r)})}),t.eachComponent("dataZoom",function($){var V=$.findRepresentativeAxisProxy();if(V){var oe=V.getDataPercentWindow(),ie=V.getDataValueWindow();$.setCalculatedRange({start:oe[0],end:oe[1],startValue:ie[0],endValue:ie[1]})}})}};const dataZoomProcessor$1=dataZoomProcessor;function installDataZoomAction(t){t.registerAction("dataZoom",function(r,$){var V=findEffectedDataZooms($,r);each$c(V,function(oe){oe.setRawRange({start:r.start,end:r.end,startValue:r.startValue,endValue:r.endValue})})})}var installed$1=!1;function installCommon$1(t){installed$1||(installed$1=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,dataZoomProcessor$1),installDataZoomAction(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function install$c(t){t.registerComponentModel(SelectZoomModel),t.registerComponentView(SelectZoomView),installCommon$1(t)}var ToolboxFeature=function(){function t(){}return t}(),features={};function registerFeature(t,r){features[t]=r}function getFeature(t){return features[t]}var ToolboxModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var $=this.ecModel;each$c(this.option.feature,function(V,oe){var ie=getFeature(oe);ie&&(ie.getDefaultOption&&(ie.defaultOption=ie.getDefaultOption($)),merge(V,ie.defaultOption))})},r.type="toolbox",r.layoutMode={type:"box",ignoreSize:!0},r.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},r}(ComponentModel$1);const ToolboxModel$1=ToolboxModel;function layout(t,r,$){var V=r.getBoxLayoutParams(),oe=r.get("padding"),ie={width:$.getWidth(),height:$.getHeight()},le=getLayoutRect(V,ie,oe);box(r.get("orient"),t,r.get("itemGap"),le.width,le.height),positionElement(t,V,ie,oe)}function makeBackground(t,r){var $=normalizeCssArray(r.get("padding")),V=r.getItemStyle(["color","opacity"]);return V.fill=r.get("backgroundColor"),t=new Rect$2({shape:{x:t.x-$[3],y:t.y-$[0],width:t.width+$[1]+$[3],height:t.height+$[0]+$[2],r:r.get("borderRadius")},style:V,silent:!0,z2:-1}),t}var ToolboxView=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function($,V,oe,ie){var le=this.group;if(le.removeAll(),!$.get("show"))return;var ue=+$.get("itemSize"),de=$.get("orient")==="vertical",pe=$.get("feature")||{},he=this._features||(this._features={}),_e=[];each$c(pe,function(Ve,Fe){_e.push(Fe)}),new DataDiffer$1(this._featureNames||[],_e).add($e).update($e).remove(curry$1($e,null)).execute(),this._featureNames=_e;function $e(Ve,Fe){var Ue=_e[Ve],qe=_e[Fe],Et=pe[Ue],Lt=new Model$1(Et,$,$.ecModel),hn;if(ie&&ie.newTitle!=null&&ie.featureName===Ue&&(Et.title=ie.newTitle),Ue&&!qe){if(isUserFeatureName(Ue))hn={onclick:Lt.option.onclick,featureName:Ue};else{var Cn=getFeature(Ue);if(!Cn)return;hn=new Cn}he[Ue]=hn}else if(hn=he[qe],!hn)return;hn.uid=getUID("toolbox-feature"),hn.model=Lt,hn.ecModel=V,hn.api=oe;var bn=hn instanceof ToolboxFeature;if(!Ue&&qe){bn&&hn.dispose&&hn.dispose(V,oe);return}if(!Lt.get("show")||bn&&hn.unusable){bn&&hn.remove&&hn.remove(V,oe);return}Ie(Lt,hn,Ue),Lt.setIconStatus=function(Sn,En){var wn=this.option,$n=this.iconPaths;wn.iconStatus=wn.iconStatus||{},wn.iconStatus[Sn]=En,$n[Sn]&&(En==="emphasis"?enterEmphasis:leaveEmphasis)($n[Sn])},hn instanceof ToolboxFeature&&hn.render&&hn.render(Lt,V,oe,ie)}function Ie(Ve,Fe,Ue){var qe=Ve.getModel("iconStyle"),Et=Ve.getModel(["emphasis","iconStyle"]),Lt=Fe instanceof ToolboxFeature&&Fe.getIcons?Fe.getIcons():Ve.get("icon"),hn=Ve.get("title")||{},Cn,bn;isString(Lt)?(Cn={},Cn[Ue]=Lt):Cn=Lt,isString(hn)?(bn={},bn[Ue]=hn):bn=hn;var Sn=Ve.iconPaths={};each$c(Cn,function(En,wn){var $n=createIcon(En,{},{x:-ue/2,y:-ue/2,width:ue,height:ue});$n.setStyle(qe.getItemStyle());var Tn=$n.ensureState("emphasis");Tn.style=Et.getItemStyle();var xn=new ZRText$1({style:{text:bn[wn],align:Et.get("textAlign"),borderRadius:Et.get("textBorderRadius"),padding:Et.get("textPadding"),fill:null},ignore:!0});$n.setTextContent(xn),setTooltipConfig({el:$n,componentModel:$,itemName:wn,formatterParamsExtra:{title:bn[wn]}}),$n.__title=bn[wn],$n.on("mouseover",function(){var An=Et.getItemStyle(),Mn=de?$.get("right")==null&&$.get("left")!=="right"?"right":"left":$.get("bottom")==null&&$.get("top")!=="bottom"?"bottom":"top";xn.setStyle({fill:Et.get("textFill")||An.fill||An.stroke||"#000",backgroundColor:Et.get("textBackgroundColor")}),$n.setTextConfig({position:Et.get("textPosition")||Mn}),xn.ignore=!$.get("showTitle"),oe.enterEmphasis(this)}).on("mouseout",function(){Ve.get(["iconStatus",wn])!=="emphasis"&&oe.leaveEmphasis(this),xn.hide()}),(Ve.get(["iconStatus",wn])==="emphasis"?enterEmphasis:leaveEmphasis)($n),le.add($n),$n.on("click",bind$1(Fe.onclick,Fe,V,oe,wn)),Sn[wn]=$n})}layout(le,$,oe),le.add(makeBackground(le.getBoundingRect(),$)),de||le.eachChild(function(Ve){var Fe=Ve.__title,Ue=Ve.ensureState("emphasis"),qe=Ue.textConfig||(Ue.textConfig={}),Et=Ve.getTextContent(),Lt=Et&&Et.ensureState("emphasis");if(Lt&&!isFunction(Lt)&&Fe){var hn=Lt.style||(Lt.style={}),Cn=getBoundingRect(Fe,ZRText$1.makeFont(hn)),bn=Ve.x+le.x,Sn=Ve.y+le.y+ue,En=!1;Sn+Cn.height>oe.getHeight()&&(qe.position="top",En=!0);var wn=En?-5-Cn.height:ue+10;bn+Cn.width/2>oe.getWidth()?(qe.position=["100%",wn],hn.align="right"):bn-Cn.width/2<0&&(qe.position=[0,wn],hn.align="left")}})},r.prototype.updateView=function($,V,oe,ie){each$c(this._features,function(le){le instanceof ToolboxFeature&&le.updateView&&le.updateView(le.model,V,oe,ie)})},r.prototype.remove=function($,V){each$c(this._features,function(oe){oe instanceof ToolboxFeature&&oe.remove&&oe.remove($,V)}),this.group.removeAll()},r.prototype.dispose=function($,V){each$c(this._features,function(oe){oe instanceof ToolboxFeature&&oe.dispose&&oe.dispose($,V)})},r.type="toolbox",r}(ComponentView$1);function isUserFeatureName(t){return t.indexOf("my")===0}const ToolboxView$1=ToolboxView;var SaveAsImage=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.onclick=function($,V){var oe=this.model,ie=oe.get("name")||$.get("title.0.text")||"echarts",le=V.getZr().painter.getType()==="svg",ue=le?"svg":oe.get("type",!0)||"png",de=V.getConnectedDataURL({type:ue,backgroundColor:oe.get("backgroundColor",!0)||$.get("backgroundColor")||"#fff",connectedBackgroundColor:oe.get("connectedBackgroundColor"),excludeComponents:oe.get("excludeComponents"),pixelRatio:oe.get("pixelRatio")}),pe=env$1.browser;if(isFunction(MouseEvent)&&(pe.newEdge||!pe.ie&&!pe.edge)){var he=document.createElement("a");he.download=ie+"."+ue,he.target="_blank",he.href=de;var _e=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});he.dispatchEvent(_e)}else if(window.navigator.msSaveOrOpenBlob||le){var $e=de.split(","),Ie=$e[0].indexOf("base64")>-1,Ve=le?decodeURIComponent($e[1]):$e[1];Ie&&(Ve=window.atob(Ve));var Fe=ie+"."+ue;if(window.navigator.msSaveOrOpenBlob){for(var Ue=Ve.length,qe=new Uint8Array(Ue);Ue--;)qe[Ue]=Ve.charCodeAt(Ue);var Et=new Blob([qe]);window.navigator.msSaveOrOpenBlob(Et,Fe)}else{var Lt=document.createElement("iframe");document.body.appendChild(Lt);var hn=Lt.contentWindow,Cn=hn.document;Cn.open("image/svg+xml","replace"),Cn.write(Ve),Cn.close(),hn.focus(),Cn.execCommand("SaveAs",!0,Fe),document.body.removeChild(Lt)}}else{var bn=oe.get("lang"),Sn='',En=window.open();En.document.write(Sn),En.document.title=ie}},r.getDefaultOption=function($){var V={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:$.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:$.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return V},r}(ToolboxFeature);const SaveAsImage$1=SaveAsImage;var INNER_STACK_KEYWORD="__ec_magicType_stack__",radioTypes=[["line","bar"],["stack"]],MagicType=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.getIcons=function(){var $=this.model,V=$.get("icon"),oe={};return each$c($.get("type"),function(ie){V[ie]&&(oe[ie]=V[ie])}),oe},r.getDefaultOption=function($){var V={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:$.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return V},r.prototype.onclick=function($,V,oe){var ie=this.model,le=ie.get(["seriesIndex",oe]);if(seriesOptGenreator[oe]){var ue={series:[]},de=function(_e){var $e=_e.subType,Ie=_e.id,Ve=seriesOptGenreator[oe]($e,Ie,_e,ie);Ve&&(defaults(Ve,_e.option),ue.series.push(Ve));var Fe=_e.coordinateSystem;if(Fe&&Fe.type==="cartesian2d"&&(oe==="line"||oe==="bar")){var Ue=Fe.getAxesByScale("ordinal")[0];if(Ue){var qe=Ue.dim,Et=qe+"Axis",Lt=_e.getReferringComponents(Et,SINGLE_REFERRING).models[0],hn=Lt.componentIndex;ue[Et]=ue[Et]||[];for(var Cn=0;Cn<=hn;Cn++)ue[Et][hn]=ue[Et][hn]||{};ue[Et][hn].boundaryGap=oe==="bar"}}};each$c(radioTypes,function(_e){indexOf(_e,oe)>=0&&each$c(_e,function($e){ie.setIconStatus($e,"normal")})}),ie.setIconStatus(oe,"emphasis"),$.eachComponent({mainType:"series",query:le==null?null:{seriesIndex:le}},de);var pe,he=oe;oe==="stack"&&(pe=merge({stack:ie.option.title.tiled,tiled:ie.option.title.stack},ie.option.title),ie.get(["iconStatus",oe])!=="emphasis"&&(he="tiled")),V.dispatchAction({type:"changeMagicType",currentType:he,newOption:ue,newTitle:pe,featureName:"magicType"})}},r}(ToolboxFeature),seriesOptGenreator={line:function(t,r,$,V){if(t==="bar")return merge({id:r,type:"line",data:$.get("data"),stack:$.get("stack"),markPoint:$.get("markPoint"),markLine:$.get("markLine")},V.get(["option","line"])||{},!0)},bar:function(t,r,$,V){if(t==="line")return merge({id:r,type:"bar",data:$.get("data"),stack:$.get("stack"),markPoint:$.get("markPoint"),markLine:$.get("markLine")},V.get(["option","bar"])||{},!0)},stack:function(t,r,$,V){var oe=$.get("stack")===INNER_STACK_KEYWORD;if(t==="line"||t==="bar")return V.setIconStatus("stack",oe?"normal":"emphasis"),merge({id:r,stack:oe?"":INNER_STACK_KEYWORD},V.get(["option","stack"])||{},!0)}};registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,r){r.mergeOption(t.newOption)});const MagicType$1=MagicType;var BLOCK_SPLITER=new Array(60).join("-"),ITEM_SPLITER=" ";function groupSeries(t){var r={},$=[],V=[];return t.eachRawSeries(function(oe){var ie=oe.coordinateSystem;if(ie&&(ie.type==="cartesian2d"||ie.type==="polar")){var le=ie.getBaseAxis();if(le.type==="category"){var ue=le.dim+"_"+le.index;r[ue]||(r[ue]={categoryAxis:le,valueAxis:ie.getOtherAxis(le),series:[]},V.push({axisDim:le.dim,axisIndex:le.index})),r[ue].series.push(oe)}else $.push(oe)}else $.push(oe)}),{seriesGroupByCategoryAxis:r,other:$,meta:V}}function assembleSeriesWithCategoryAxis(t){var r=[];return each$c(t,function($,V){var oe=$.categoryAxis,ie=$.valueAxis,le=ie.dim,ue=[" "].concat(map$2($.series,function(Ie){return Ie.name})),de=[oe.model.getCategories()];each$c($.series,function(Ie){var Ve=Ie.getRawData();de.push(Ie.getRawData().mapArray(Ve.mapDimension(le),function(Fe){return Fe}))});for(var pe=[ue.join(ITEM_SPLITER)],he=0;he=0)return!0}var itemSplitRegex=new RegExp("["+ITEM_SPLITER+"]+","g");function parseTSVContents(t){for(var r=t.split(/\n+/g),$=trim(r.shift()).split(itemSplitRegex),V=[],oe=map$2($,function(de){return{name:de,data:[]}}),ie=0;ie=0;ie--){var le=$[ie];if(le[oe])break}if(ie<0){var ue=t.queryComponents({mainType:"dataZoom",subType:"select",id:oe})[0];if(ue){var de=ue.getPercentRange();$[0][oe]={dataZoomId:oe,start:de[0],end:de[1]}}}}),$.push(r)}function pop(t){var r=getStoreSnapshots(t),$=r[r.length-1];r.length>1&&r.pop();var V={};return each$6($,function(oe,ie){for(var le=r.length-1;le>=0;le--)if(oe=r[le][ie],oe){V[ie]=oe;break}}),V}function clear(t){inner$1(t).snapshots=null}function count(t){return getStoreSnapshots(t).length}function getStoreSnapshots(t){var r=inner$1(t);return r.snapshots||(r.snapshots=[{}]),r.snapshots}var RestoreOption=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.onclick=function($,V){clear($),V.dispatchAction({type:"restore",from:this.uid})},r.getDefaultOption=function($){var V={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:$.getLocaleModel().get(["toolbox","restore","title"])};return V},r}(ToolboxFeature);registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,r){r.resetOption("recreate")});const Restore=RestoreOption;var INCLUDE_FINDER_MAIN_TYPES=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],BrushTargetManager=function(){function t(r,$,V){var oe=this;this._targetInfoList=[];var ie=parseFinder($,r);each$c(targetInfoBuilders,function(le,ue){(!V||!V.include||indexOf(V.include,ue)>=0)&&le(ie,oe._targetInfoList)})}return t.prototype.setOutputRanges=function(r,$){return this.matchOutputRanges(r,$,function(V,oe,ie){if((V.coordRanges||(V.coordRanges=[])).push(oe),!V.coordRange){V.coordRange=oe;var le=coordConvert[V.brushType](0,ie,oe);V.__rangeOffset={offset:diffProcessor[V.brushType](le.values,V.range,[1,1]),xyMinMax:le.xyMinMax}}}),r},t.prototype.matchOutputRanges=function(r,$,V){each$c(r,function(oe){var ie=this.findTargetInfo(oe,$);ie&&ie!==!0&&each$c(ie.coordSyses,function(le){var ue=coordConvert[oe.brushType](1,le,oe.range,!0);V(oe,ue.values,le,$)})},this)},t.prototype.setInputRanges=function(r,$){each$c(r,function(V){var oe=this.findTargetInfo(V,$);if(V.range=V.range||[],oe&&oe!==!0){V.panelId=oe.panelId;var ie=coordConvert[V.brushType](0,oe.coordSys,V.coordRange),le=V.__rangeOffset;V.range=le?diffProcessor[V.brushType](ie.values,le.offset,getScales(ie.xyMinMax,le.xyMinMax)):ie.values}},this)},t.prototype.makePanelOpts=function(r,$){return map$2(this._targetInfoList,function(V){var oe=V.getPanelRect();return{panelId:V.panelId,defaultBrushType:$?$(V):null,clipPath:makeRectPanelClipPath(oe),isTargetByCursor:makeRectIsTargetByCursor(oe,r,V.coordSysModel),getLinearBrushOtherExtent:makeLinearBrushOtherExtent(oe)}})},t.prototype.controlSeries=function(r,$,V){var oe=this.findTargetInfo(r,V);return oe===!0||oe&&indexOf(oe.coordSyses,$.coordinateSystem)>=0},t.prototype.findTargetInfo=function(r,$){for(var V=this._targetInfoList,oe=parseFinder($,r),ie=0;iet[1]&&t.reverse(),t}function parseFinder(t,r){return parseFinder$1(t,r,{includeMainTypes:INCLUDE_FINDER_MAIN_TYPES})}var targetInfoBuilders={grid:function(t,r){var $=t.xAxisModels,V=t.yAxisModels,oe=t.gridModels,ie=createHashMap(),le={},ue={};!$&&!V&&!oe||(each$c($,function(de){var pe=de.axis.grid.model;ie.set(pe.id,pe),le[pe.id]=!0}),each$c(V,function(de){var pe=de.axis.grid.model;ie.set(pe.id,pe),ue[pe.id]=!0}),each$c(oe,function(de){ie.set(de.id,de),le[de.id]=!0,ue[de.id]=!0}),ie.each(function(de){var pe=de.coordinateSystem,he=[];each$c(pe.getCartesians(),function(_e,$e){(indexOf($,_e.getAxis("x").model)>=0||indexOf(V,_e.getAxis("y").model)>=0)&&he.push(_e)}),r.push({panelId:"grid--"+de.id,gridModel:de,coordSysModel:de,coordSys:he[0],coordSyses:he,getPanelRect:panelRectBuilders.grid,xAxisDeclared:le[de.id],yAxisDeclared:ue[de.id]})}))},geo:function(t,r){each$c(t.geoModels,function($){var V=$.coordinateSystem;r.push({panelId:"geo--"+$.id,geoModel:$,coordSysModel:$,coordSys:V,coordSyses:[V],getPanelRect:panelRectBuilders.geo})})}},targetInfoMatchers=[function(t,r){var $=t.xAxisModel,V=t.yAxisModel,oe=t.gridModel;return!oe&&$&&(oe=$.axis.grid.model),!oe&&V&&(oe=V.axis.grid.model),oe&&oe===r.gridModel},function(t,r){var $=t.geoModel;return $&&$===r.geoModel}],panelRectBuilders={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,r=t.getBoundingRect().clone();return r.applyTransform(getTransform$1(t)),r}},coordConvert={lineX:curry$1(axisConvert,0),lineY:curry$1(axisConvert,1),rect:function(t,r,$,V){var oe=t?r.pointToData([$[0][0],$[1][0]],V):r.dataToPoint([$[0][0],$[1][0]],V),ie=t?r.pointToData([$[0][1],$[1][1]],V):r.dataToPoint([$[0][1],$[1][1]],V),le=[formatMinMax([oe[0],ie[0]]),formatMinMax([oe[1],ie[1]])];return{values:le,xyMinMax:le}},polygon:function(t,r,$,V){var oe=[[1/0,-1/0],[1/0,-1/0]],ie=map$2($,function(le){var ue=t?r.pointToData(le,V):r.dataToPoint(le,V);return oe[0][0]=Math.min(oe[0][0],ue[0]),oe[1][0]=Math.min(oe[1][0],ue[1]),oe[0][1]=Math.max(oe[0][1],ue[0]),oe[1][1]=Math.max(oe[1][1],ue[1]),ue});return{values:ie,xyMinMax:oe}}};function axisConvert(t,r,$,V){var oe=$.getAxis(["x","y"][t]),ie=formatMinMax(map$2([0,1],function(ue){return r?oe.coordToData(oe.toLocalCoord(V[ue]),!0):oe.toGlobalCoord(oe.dataToCoord(V[ue]))})),le=[];return le[t]=ie,le[1-t]=[NaN,NaN],{values:ie,xyMinMax:le}}var diffProcessor={lineX:curry$1(axisDiffProcessor,0),lineY:curry$1(axisDiffProcessor,1),rect:function(t,r,$){return[[t[0][0]-$[0]*r[0][0],t[0][1]-$[0]*r[0][1]],[t[1][0]-$[1]*r[1][0],t[1][1]-$[1]*r[1][1]]]},polygon:function(t,r,$){return map$2(t,function(V,oe){return[V[0]-$[0]*r[oe][0],V[1]-$[1]*r[oe][1]]})}};function axisDiffProcessor(t,r,$,V){return[r[0]-V[t]*$[0],r[1]-V[t]*$[1]]}function getScales(t,r){var $=getSize(t),V=getSize(r),oe=[$[0]/V[0],$[1]/V[1]];return isNaN(oe[0])&&(oe[0]=1),isNaN(oe[1])&&(oe[1]=1),oe}function getSize(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const BrushTargetManager$1=BrushTargetManager;var each$5=each$c,DATA_ZOOM_ID_BASE=makeInternalComponentId("toolbox-dataZoom_"),DataZoomFeature=function(t){__extends(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}return r.prototype.render=function($,V,oe,ie){this._brushController||(this._brushController=new BrushController$1(oe.getZr()),this._brushController.on("brush",bind$1(this._onBrush,this)).mount()),updateZoomBtnStatus($,V,this,ie,oe),updateBackBtnStatus($,V)},r.prototype.onclick=function($,V,oe){handlers[oe].call(this)},r.prototype.remove=function($,V){this._brushController&&this._brushController.unmount()},r.prototype.dispose=function($,V){this._brushController&&this._brushController.dispose()},r.prototype._onBrush=function($){var V=$.areas;if(!$.isEnd||!V.length)return;var oe={},ie=this.ecModel;this._brushController.updateCovers([]);var le=new BrushTargetManager$1(makeAxisFinder(this.model),ie,{include:["grid"]});le.matchOutputRanges(V,ie,function(pe,he,_e){if(_e.type==="cartesian2d"){var $e=pe.brushType;$e==="rect"?(ue("x",_e,he[0]),ue("y",_e,he[1])):ue({lineX:"x",lineY:"y"}[$e],_e,he)}}),push(ie,oe),this._dispatchZoomAction(oe);function ue(pe,he,_e){var $e=he.getAxis(pe),Ie=$e.model,Ve=de(pe,Ie,ie),Fe=Ve.findRepresentativeAxisProxy(Ie).getMinMaxSpan();(Fe.minValueSpan!=null||Fe.maxValueSpan!=null)&&(_e=sliderMove(0,_e.slice(),$e.scale.getExtent(),0,Fe.minValueSpan,Fe.maxValueSpan)),Ve&&(oe[Ve.id]={dataZoomId:Ve.id,startValue:_e[0],endValue:_e[1]})}function de(pe,he,_e){var $e;return _e.eachComponent({mainType:"dataZoom",subType:"select"},function(Ie){var Ve=Ie.getAxisModel(pe,he.componentIndex);Ve&&($e=Ie)}),$e}},r.prototype._dispatchZoomAction=function($){var V=[];each$5($,function(oe,ie){V.push(clone$3(oe))}),V.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:V})},r.getDefaultOption=function($){var V={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:$.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return V},r}(ToolboxFeature),handlers={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(pop(this.ecModel))}};function makeAxisFinder(t){var r={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return r.xAxisIndex==null&&r.xAxisId==null&&(r.xAxisIndex="all"),r.yAxisIndex==null&&r.yAxisId==null&&(r.yAxisIndex="all"),r}function updateBackBtnStatus(t,r){t.setIconStatus("back",count(r)>1?"emphasis":"normal")}function updateZoomBtnStatus(t,r,$,V,oe){var ie=$._isZoomActive;V&&V.type==="takeGlobalCursor"&&(ie=V.key==="dataZoomSelect"?V.dataZoomSelectActive:!1),$._isZoomActive=ie,t.setIconStatus("zoom",ie?"emphasis":"normal");var le=new BrushTargetManager$1(makeAxisFinder(t),r,{include:["grid"]}),ue=le.makePanelOpts(oe,function(de){return de.xAxisDeclared&&!de.yAxisDeclared?"lineX":!de.xAxisDeclared&&de.yAxisDeclared?"lineY":"rect"});$._brushController.setPanels(ue).enableBrush(ie&&ue.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}registerInternalOptionCreator("dataZoom",function(t){var r=t.getComponent("toolbox",0),$=["feature","dataZoom"];if(!r||r.get($)==null)return;var V=r.getModel($),oe=[],ie=makeAxisFinder(V),le=parseFinder$1(t,ie);each$5(le.xAxisModels,function(de){return ue(de,"xAxis","xAxisIndex")}),each$5(le.yAxisModels,function(de){return ue(de,"yAxis","yAxisIndex")});function ue(de,pe,he){var _e=de.componentIndex,$e={type:"select",$fromToolbox:!0,filterMode:V.get("filterMode",!0)||"filter",id:DATA_ZOOM_ID_BASE+pe+_e};$e[he]=_e,oe.push($e)}return oe});const DataZoom=DataZoomFeature;function install$b(t){t.registerComponentModel(ToolboxModel$1),t.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(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.type="tooltip",r.dependencies=["axisPointer"],r.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},r}(ComponentModel$1);const TooltipModel$1=TooltipModel;function shouldTooltipConfine(t){var r=t.get("confine");return r!=null?!!r:t.get("renderMode")==="richText"}function testStyle(t){if(env$1.domSupported){for(var r=document.documentElement.style,$=0,V=t.length;$-1?(ue+="top:50%",de+="translateY(-50%) rotate("+(pe=ie==="left"?-225:-45)+"deg)"):(ue+="left:50%",de+="translateX(-50%) rotate("+(pe=ie==="top"?225:45)+"deg)");var he=pe*Math.PI/180,_e=le+oe,$e=_e*Math.abs(Math.cos(he))+_e*Math.abs(Math.sin(he)),Ie=Math.round((($e-Math.SQRT2*oe)/2+Math.SQRT2*oe-($e-_e)/2)*100)/100;ue+=";"+ie+":-"+Ie+"px";var Ve=r+" solid "+oe+"px;",Fe=["position:absolute;width:"+le+"px;height:"+le+"px;z-index:-1;",ue+";"+de+";","border-bottom:"+Ve,"border-right:"+Ve,"background-color:"+V+";"];return'
'}function assembleTransition(t,r){var $="cubic-bezier(0.23,1,0.32,1)",V=" "+t/2+"s "+$,oe="opacity"+V+",visibility"+V;return r||(V=" "+t+"s "+$,oe+=env$1.transformSupported?","+CSS_TRANSFORM_VENDOR+V:",left"+V+",top"+V),CSS_TRANSITION_VENDOR+":"+oe}function assembleTransform(t,r,$){var V=t.toFixed(0)+"px",oe=r.toFixed(0)+"px";if(!env$1.transformSupported)return $?"top:"+oe+";left:"+V+";":[["top",oe],["left",V]];var ie=env$1.transform3dSupported,le="translate"+(ie?"3d":"")+"("+V+","+oe+(ie?",0":"")+")";return $?"top:0;left:0;"+CSS_TRANSFORM_VENDOR+":"+le+";":[["top",0],["left",0],[TRANSFORM_VENDOR,le]]}function assembleFont(t){var r=[],$=t.get("fontSize"),V=t.getTextColor();V&&r.push("color:"+V),r.push("font:"+t.getFont()),$&&r.push("line-height:"+Math.round($*3/2)+"px");var oe=t.get("textShadowColor"),ie=t.get("textShadowBlur")||0,le=t.get("textShadowOffsetX")||0,ue=t.get("textShadowOffsetY")||0;return oe&&ie&&r.push("text-shadow:"+le+"px "+ue+"px "+ie+"px "+oe),each$c(["decoration","align"],function(de){var pe=t.get(de);pe&&r.push("text-"+de+":"+pe)}),r.join(";")}function assembleCssText(t,r,$){var V=[],oe=t.get("transitionDuration"),ie=t.get("backgroundColor"),le=t.get("shadowBlur"),ue=t.get("shadowColor"),de=t.get("shadowOffsetX"),pe=t.get("shadowOffsetY"),he=t.getModel("textStyle"),_e=getPaddingFromTooltipModel(t,"html"),$e=de+"px "+pe+"px "+le+"px "+ue;return V.push("box-shadow:"+$e),r&&oe&&V.push(assembleTransition(oe,$)),ie&&V.push("background-color:"+ie),each$c(["width","color","radius"],function(Ie){var Ve="border-"+Ie,Fe=toCamelCase(Ve),Ue=t.get(Fe);Ue!=null&&V.push(Ve+":"+Ue+(Ie==="color"?"":"px"))}),V.push(assembleFont(he)),_e!=null&&V.push("padding:"+normalizeCssArray(_e).join("px ")+"px"),V.join(";")+";"}function makeStyleCoord$1(t,r,$,V,oe){var ie=r&&r.painter;if($){var le=ie&&ie.getViewportRoot();le&&transformLocalCoord(t,le,document.body,V,oe)}else{t[0]=V,t[1]=oe;var ue=ie&&ie.getViewportRootOffset();ue&&(t[0]+=ue.offsetLeft,t[1]+=ue.offsetTop)}t[2]=t[0]/r.getWidth(),t[3]=t[1]/r.getHeight()}var TooltipHTMLContent=function(){function t(r,$,V){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 oe=document.createElement("div");oe.domBelongToZr=!0,this.el=oe;var ie=this._zr=$.getZr(),le=this._appendToBody=V&&V.appendToBody;makeStyleCoord$1(this._styleCoord,ie,le,$.getWidth()/2,$.getHeight()/2),le?document.body.appendChild(oe):r.appendChild(oe),this._container=r;var ue=this;oe.onmouseenter=function(){ue._enterable&&(clearTimeout(ue._hideTimeout),ue._show=!0),ue._inContent=!0},oe.onmousemove=function(de){if(de=de||window.event,!ue._enterable){var pe=ie.handler,he=ie.painter.getViewportRoot();normalizeEvent(he,de,!0),pe.dispatch("mousemove",de)}},oe.onmouseleave=function(){ue._inContent=!1,ue._enterable&&ue._show&&ue.hideLater(ue._hideDelay)}}return t.prototype.update=function(r){var $=this._container,V=getComputedStyle$1($,"position"),oe=$.style;oe.position!=="absolute"&&V!=="absolute"&&(oe.position="relative");var ie=r.get("alwaysShowContent");ie&&this._moveIfResized(),this._alwaysShowContent=ie,this.el.className=r.get("className")||""},t.prototype.show=function(r,$){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var V=this.el,oe=V.style,ie=this._styleCoord;V.innerHTML?oe.cssText=gCssText+assembleCssText(r,!this._firstShow,this._longHide)+assembleTransform(ie[0],ie[1],!0)+("border-color:"+convertToColorString($)+";")+(r.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):oe.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(r,$,V,oe,ie){var le=this.el;if(r==null){le.innerHTML="";return}var ue="";if(isString(ie)&&V.get("trigger")==="item"&&!shouldTooltipConfine(V)&&(ue=assembleArrow(V,oe,ie)),isString(r))le.innerHTML=r+ue;else if(r){le.innerHTML="",isArray$1(r)||(r=[r]);for(var de=0;de=0?this._tryShow(ie,le):oe==="leave"&&this._hide(le))},this))},r.prototype._keepShow=function(){var $=this._tooltipModel,V=this._ecModel,oe=this._api,ie=$.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&ie!=="none"&&ie!=="click"){var le=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!oe.isDisposed()&&le.manuallyShowTip($,V,oe,{x:le._lastX,y:le._lastY,dataByCoordSys:le._lastDataByCoordSys})})}},r.prototype.manuallyShowTip=function($,V,oe,ie){if(!(ie.from===this.uid||env$1.node||!oe.getDom())){var le=makeDispatchAction(ie,oe);this._ticket="";var ue=ie.dataByCoordSys,de=findComponentReference(ie,V,oe);if(de){var pe=de.el.getBoundingRect().clone();pe.applyTransform(de.el.transform),this._tryShow({offsetX:pe.x+pe.width/2,offsetY:pe.y+pe.height/2,target:de.el,position:ie.position,positionDefault:"bottom"},le)}else if(ie.tooltip&&ie.x!=null&&ie.y!=null){var he=proxyRect;he.x=ie.x,he.y=ie.y,he.update(),getECData(he).tooltipConfig={name:null,option:ie.tooltip},this._tryShow({offsetX:ie.x,offsetY:ie.y,target:he},le)}else if(ue)this._tryShow({offsetX:ie.x,offsetY:ie.y,position:ie.position,dataByCoordSys:ue,tooltipOption:ie.tooltipOption},le);else if(ie.seriesIndex!=null){if(this._manuallyAxisShowTip($,V,oe,ie))return;var _e=findPointFromSeries(ie,V),$e=_e.point[0],Ie=_e.point[1];$e!=null&&Ie!=null&&this._tryShow({offsetX:$e,offsetY:Ie,target:_e.el,position:ie.position,positionDefault:"bottom"},le)}else ie.x!=null&&ie.y!=null&&(oe.dispatchAction({type:"updateAxisPointer",x:ie.x,y:ie.y}),this._tryShow({offsetX:ie.x,offsetY:ie.y,position:ie.position,target:oe.getZr().findHover(ie.x,ie.y).target},le))}},r.prototype.manuallyHideTip=function($,V,oe,ie){var le=this._tooltipContent;this._tooltipModel&&le.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,ie.from!==this.uid&&this._hide(makeDispatchAction(ie,oe))},r.prototype._manuallyAxisShowTip=function($,V,oe,ie){var le=ie.seriesIndex,ue=ie.dataIndex,de=V.getComponent("axisPointer").coordSysAxesInfo;if(!(le==null||ue==null||de==null)){var pe=V.getSeriesByIndex(le);if(pe){var he=pe.getData(),_e=buildTooltipModel([he.getItemModel(ue),pe,(pe.coordinateSystem||{}).model],this._tooltipModel);if(_e.get("trigger")==="axis")return oe.dispatchAction({type:"updateAxisPointer",seriesIndex:le,dataIndex:ue,position:ie.position}),!0}}},r.prototype._tryShow=function($,V){var oe=$.target,ie=this._tooltipModel;if(ie){this._lastX=$.offsetX,this._lastY=$.offsetY;var le=$.dataByCoordSys;if(le&&le.length)this._showAxisTooltip(le,$);else if(oe){this._lastDataByCoordSys=null;var ue,de;findEventDispatcher(oe,function(pe){if(getECData(pe).dataIndex!=null)return ue=pe,!0;if(getECData(pe).tooltipConfig!=null)return de=pe,!0},!0),ue?this._showSeriesItemTooltip($,ue,V):de?this._showComponentItemTooltip($,de,V):this._hide(V)}else this._lastDataByCoordSys=null,this._hide(V)}},r.prototype._showOrMove=function($,V){var oe=$.get("showDelay");V=bind$1(V,this),clearTimeout(this._showTimout),oe>0?this._showTimout=setTimeout(V,oe):V()},r.prototype._showAxisTooltip=function($,V){var oe=this._ecModel,ie=this._tooltipModel,le=[V.offsetX,V.offsetY],ue=buildTooltipModel([V.tooltipOption],ie),de=this._renderMode,pe=[],he=createTooltipMarkup("section",{blocks:[],noHeader:!0}),_e=[],$e=new TooltipMarkupStyleCreator;each$c($,function(Et){each$c(Et.dataByAxis,function(Lt){var hn=oe.getComponent(Lt.axisDim+"Axis",Lt.axisIndex),Cn=Lt.value;if(!(!hn||Cn==null)){var bn=getValueLabel(Cn,hn.axis,oe,Lt.seriesDataIndices,Lt.valueLabelOpt),Sn=createTooltipMarkup("section",{header:bn,noHeader:!trim$1(bn),sortBlocks:!0,blocks:[]});he.blocks.push(Sn),each$c(Lt.seriesDataIndices,function(En){var wn=oe.getSeriesByIndex(En.seriesIndex),$n=En.dataIndexInside,Tn=wn.getDataParams($n);if(!(Tn.dataIndex<0)){Tn.axisDim=Lt.axisDim,Tn.axisIndex=Lt.axisIndex,Tn.axisType=Lt.axisType,Tn.axisId=Lt.axisId,Tn.axisValue=getAxisRawValue(hn.axis,{value:Cn}),Tn.axisValueLabel=bn,Tn.marker=$e.makeTooltipMarker("item",convertToColorString(Tn.color),de);var xn=normalizeTooltipFormatResult(wn.formatTooltip($n,!0,null)),An=xn.frag;if(An){var Mn=buildTooltipModel([wn],ie).get("valueFormatter");Sn.blocks.push(Mn?extend({valueFormatter:Mn},An):An)}xn.text&&_e.push(xn.text),pe.push(Tn)}})}})}),he.blocks.reverse(),_e.reverse();var Ie=V.position,Ve=ue.get("order"),Fe=buildTooltipMarkup(he,$e,de,Ve,oe.get("useUTC"),ue.get("textStyle"));Fe&&_e.unshift(Fe);var Ue=de==="richText"?` `:"
",qe=_e.join(Ue);this._showOrMove(ue,function(){this._updateContentNotChangedOnAxis($,pe)?this._updatePosition(ue,Ie,le[0],le[1],this._tooltipContent,pe):this._showTooltipContent(ue,qe,pe,Math.random()+"",le[0],le[1],Ie,null,$e)})},r.prototype._showSeriesItemTooltip=function($,V,oe){var ie=this._ecModel,le=getECData(V),ue=le.seriesIndex,de=ie.getSeriesByIndex(ue),pe=le.dataModel||de,he=le.dataIndex,_e=le.dataType,$e=pe.getData(_e),Ie=this._renderMode,Ve=$.positionDefault,Fe=buildTooltipModel([$e.getItemModel(he),pe,de&&(de.coordinateSystem||{}).model],this._tooltipModel,Ve?{position:Ve}:null),Ue=Fe.get("trigger");if(!(Ue!=null&&Ue!=="item")){var qe=pe.getDataParams(he,_e),Et=new TooltipMarkupStyleCreator;qe.marker=Et.makeTooltipMarker("item",convertToColorString(qe.color),Ie);var Lt=normalizeTooltipFormatResult(pe.formatTooltip(he,!1,_e)),hn=Fe.get("order"),Cn=Fe.get("valueFormatter"),bn=Lt.frag,Sn=bn?buildTooltipMarkup(Cn?extend({valueFormatter:Cn},bn):bn,Et,Ie,hn,ie.get("useUTC"),Fe.get("textStyle")):Lt.text,En="item_"+pe.name+"_"+he;this._showOrMove(Fe,function(){this._showTooltipContent(Fe,Sn,qe,En,$.offsetX,$.offsetY,$.position,$.target,Et)}),oe({type:"showTip",dataIndexInside:he,dataIndex:$e.getRawIndex(he),seriesIndex:ue,from:this.uid})}},r.prototype._showComponentItemTooltip=function($,V,oe){var ie=getECData(V),le=ie.tooltipConfig,ue=le.option||{};if(isString(ue)){var de=ue;ue={content:de,formatter:de}}var pe=[ue],he=this._ecModel.getComponent(ie.componentMainType,ie.componentIndex);he&&pe.push(he),pe.push({formatter:ue.content});var _e=$.positionDefault,$e=buildTooltipModel(pe,this._tooltipModel,_e?{position:_e}:null),Ie=$e.get("content"),Ve=Math.random()+"",Fe=new TooltipMarkupStyleCreator;this._showOrMove($e,function(){var Ue=clone$3($e.get("formatterParams")||{});this._showTooltipContent($e,Ie,Ue,Ve,$.offsetX,$.offsetY,$.position,V,Fe)}),oe({type:"showTip",from:this.uid})},r.prototype._showTooltipContent=function($,V,oe,ie,le,ue,de,pe,he){if(this._ticket="",!(!$.get("showContent")||!$.get("show"))){var _e=this._tooltipContent;_e.setEnterable($.get("enterable"));var $e=$.get("formatter");de=de||$.get("position");var Ie=V,Ve=this._getNearestPoint([le,ue],oe,$.get("trigger"),$.get("borderColor")),Fe=Ve.color;if($e)if(isString($e)){var Ue=$.ecModel.get("useUTC"),qe=isArray$1(oe)?oe[0]:oe,Et=qe&&qe.axisType&&qe.axisType.indexOf("time")>=0;Ie=$e,Et&&(Ie=format$1(qe.axisValue,Ie,Ue)),Ie=formatTpl(Ie,oe,!0)}else if(isFunction($e)){var Lt=bind$1(function(hn,Cn){hn===this._ticket&&(_e.setContent(Cn,he,$,Fe,de),this._updatePosition($,de,le,ue,_e,oe,pe))},this);this._ticket=ie,Ie=$e(oe,ie,Lt)}else Ie=$e;_e.setContent(Ie,he,$,Fe,de),_e.show($,Fe),this._updatePosition($,de,le,ue,_e,oe,pe)}},r.prototype._getNearestPoint=function($,V,oe,ie){if(oe==="axis"||isArray$1(V))return{color:ie||(this._renderMode==="html"?"#fff":"none")};if(!isArray$1(V))return{color:ie||V.color||V.borderColor}},r.prototype._updatePosition=function($,V,oe,ie,le,ue,de){var pe=this._api.getWidth(),he=this._api.getHeight();V=V||$.get("position");var _e=le.getSize(),$e=$.get("align"),Ie=$.get("verticalAlign"),Ve=de&&de.getBoundingRect().clone();if(de&&Ve.applyTransform(de.transform),isFunction(V)&&(V=V([oe,ie],ue,le.el,Ve,{viewSize:[pe,he],contentSize:_e.slice()})),isArray$1(V))oe=parsePercent(V[0],pe),ie=parsePercent(V[1],he);else if(isObject$3(V)){var Fe=V;Fe.width=_e[0],Fe.height=_e[1];var Ue=getLayoutRect(Fe,{width:pe,height:he});oe=Ue.x,ie=Ue.y,$e=null,Ie=null}else if(isString(V)&&de){var qe=calcTooltipPosition(V,Ve,_e,$.get("borderWidth"));oe=qe[0],ie=qe[1]}else{var qe=refixTooltipPosition(oe,ie,le,pe,he,$e?null:20,Ie?null:20);oe=qe[0],ie=qe[1]}if($e&&(oe-=isCenterAlign($e)?_e[0]/2:$e==="right"?_e[0]:0),Ie&&(ie-=isCenterAlign(Ie)?_e[1]/2:Ie==="bottom"?_e[1]:0),shouldTooltipConfine($)){var qe=confineTooltipPosition(oe,ie,le,pe,he);oe=qe[0],ie=qe[1]}le.moveTo(oe,ie)},r.prototype._updateContentNotChangedOnAxis=function($,V){var oe=this._lastDataByCoordSys,ie=this._cbParamsList,le=!!oe&&oe.length===$.length;return le&&each$c(oe,function(ue,de){var pe=ue.dataByAxis||[],he=$[de]||{},_e=he.dataByAxis||[];le=le&&pe.length===_e.length,le&&each$c(pe,function($e,Ie){var Ve=_e[Ie]||{},Fe=$e.seriesDataIndices||[],Ue=Ve.seriesDataIndices||[];le=le&&$e.value===Ve.value&&$e.axisType===Ve.axisType&&$e.axisId===Ve.axisId&&Fe.length===Ue.length,le&&each$c(Fe,function(qe,Et){var Lt=Ue[Et];le=le&&qe.seriesIndex===Lt.seriesIndex&&qe.dataIndex===Lt.dataIndex}),ie&&each$c($e.seriesDataIndices,function(qe){var Et=qe.seriesIndex,Lt=V[Et],hn=ie[Et];Lt&&hn&&hn.data!==Lt.data&&(le=!1)})})}),this._lastDataByCoordSys=$,this._cbParamsList=V,!!le},r.prototype._hide=function($){this._lastDataByCoordSys=null,$({type:"hideTip",from:this.uid})},r.prototype.dispose=function($,V){env$1.node||!V.getDom()||(clear$1(this,"_updatePosition"),this._tooltipContent.dispose(),unregister("itemTooltip",V))},r.type="tooltip",r}(ComponentView$1);function buildTooltipModel(t,r,$){var V=r.ecModel,oe;$?(oe=new Model$1($,V,V),oe=new Model$1(r.option,oe,V)):oe=r;for(var ie=t.length-1;ie>=0;ie--){var le=t[ie];le&&(le instanceof Model$1&&(le=le.get("tooltip",!0)),isString(le)&&(le={formatter:le}),le&&(oe=new Model$1(le,oe,V)))}return oe}function makeDispatchAction(t,r){return t.dispatchAction||bind$1(r.dispatchAction,r)}function refixTooltipPosition(t,r,$,V,oe,ie,le){var ue=$.getSize(),de=ue[0],pe=ue[1];return ie!=null&&(t+de+ie+2>V?t-=de+ie:t+=ie),le!=null&&(r+pe+le>oe?r-=pe+le:r+=le),[t,r]}function confineTooltipPosition(t,r,$,V,oe){var ie=$.getSize(),le=ie[0],ue=ie[1];return t=Math.min(t+le,V)-le,r=Math.min(r+ue,oe)-ue,t=Math.max(t,0),r=Math.max(r,0),[t,r]}function calcTooltipPosition(t,r,$,V){var oe=$[0],ie=$[1],le=Math.ceil(Math.SQRT2*V)+8,ue=0,de=0,pe=r.width,he=r.height;switch(t){case"inside":ue=r.x+pe/2-oe/2,de=r.y+he/2-ie/2;break;case"top":ue=r.x+pe/2-oe/2,de=r.y-ie-le;break;case"bottom":ue=r.x+pe/2-oe/2,de=r.y+he+le;break;case"left":ue=r.x-oe-le,de=r.y+he/2-ie/2;break;case"right":ue=r.x+pe+le,de=r.y+he/2-ie/2}return[ue,de]}function isCenterAlign(t){return t==="center"||t==="middle"}function findComponentReference(t,r,$){var V=preParseFinder(t).queryOptionMap,oe=V.keys()[0];if(!(!oe||oe==="series")){var ie=queryReferringComponents(r,oe,V.get(oe),{useDefault:!1,enableAll:!1,enableNone:!1}),le=ie.models[0];if(le){var ue=$.getViewOfComponentModel(le),de;if(ue.group.traverse(function(pe){var he=getECData(pe).tooltipConfig;if(he&&he.name===t.name)return de=pe,!0}),de)return{componentMainType:oe,componentIndex:le.componentIndex,el:de}}}}const TooltipView$1=TooltipView;function install$a(t){use$1(install$f),t.registerComponentModel(TooltipModel$1),t.registerComponentView(TooltipView$1),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},noop),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},noop)}var each$4=each$c;function hasKeys(t){if(t){for(var r in t)if(t.hasOwnProperty(r))return!0}}function createVisualMappings(t,r,$){var V={};return each$4(r,function(ie){var le=V[ie]=oe();each$4(t[ie],function(ue,de){if(VisualMapping$1.isValidType(de)){var pe={type:de,visual:ue};$&&$(pe,ie),le[de]=new VisualMapping$1(pe),de==="opacity"&&(pe=clone$3(pe),pe.type="colorAlpha",le.__hidden.__alphaForOpacity=new VisualMapping$1(pe))}})}),V;function oe(){var ie=function(){};ie.prototype.__hidden=ie.prototype;var le=new ie;return le}}function replaceVisualOption(t,r,$){var V;each$c($,function(oe){r.hasOwnProperty(oe)&&hasKeys(r[oe])&&(V=!0)}),V&&each$c($,function(oe){r.hasOwnProperty(oe)&&hasKeys(r[oe])?t[oe]=clone$3(r[oe]):delete t[oe]})}function incrementalApplyVisual(t,r,$,V){var oe={};return each$c(t,function(ie){var le=VisualMapping$1.prepareVisualTypes(r[ie]);oe[ie]=le}),{progress:function(le,ue){var de;V!=null&&(de=ue.getDimensionIndex(V));function pe(Cn){return getItemVisualFromData(ue,_e,Cn)}function he(Cn,bn){setItemVisualFromData(ue,_e,Cn,bn)}for(var _e,$e=ue.getStore();(_e=le.next())!=null;){var Ie=ue.getRawDataItem(_e);if(!(Ie&&Ie.visualMap===!1))for(var Ve=V!=null?$e.get(de,_e):_e,Fe=$(Ve),Ue=r[Fe],qe=oe[Fe],Et=0,Lt=qe.length;Et=0},r.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},r.type="legend.plain",r.dependencies=["series"],r.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},r}(ComponentModel$1);const LegendModel$1=LegendModel;var curry=curry$1,each$3=each$c,Group$1=Group$3,LegendView=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$.newlineDisabled=!1,$}return r.prototype.init=function(){this.group.add(this._contentGroup=new Group$1),this.group.add(this._selectorGroup=new Group$1),this._isFirstRender=!0},r.prototype.getContentGroup=function(){return this._contentGroup},r.prototype.getSelectorGroup=function(){return this._selectorGroup},r.prototype.render=function($,V,oe){var ie=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!$.get("show",!0)){var le=$.get("align"),ue=$.get("orient");(!le||le==="auto")&&(le=$.get("left")==="right"&&ue==="vertical"?"right":"left");var de=$.get("selector",!0),pe=$.get("selectorPosition",!0);de&&(!pe||pe==="auto")&&(pe=ue==="horizontal"?"end":"start"),this.renderInner(le,$,V,oe,de,ue,pe);var he=$.getBoxLayoutParams(),_e={width:oe.getWidth(),height:oe.getHeight()},$e=$.get("padding"),Ie=getLayoutRect(he,_e,$e),Ve=this.layoutInner($,le,Ie,ie,de,pe),Fe=getLayoutRect(defaults({width:Ve.width,height:Ve.height},he),_e,$e);this.group.x=Fe.x-Ve.x,this.group.y=Fe.y-Ve.y,this.group.markRedraw(),this.group.add(this._backgroundEl=makeBackground(Ve,$))}},r.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},r.prototype.renderInner=function($,V,oe,ie,le,ue,de){var pe=this.getContentGroup(),he=createHashMap(),_e=V.get("selectedMode"),$e=[];oe.eachRawSeries(function(Ie){!Ie.get("legendHoverLink")&&$e.push(Ie.id)}),each$3(V.getData(),function(Ie,Ve){var Fe=Ie.get("name");if(!this.newlineDisabled&&(Fe===""||Fe===` `)){var Ue=new Group$1;Ue.newline=!0,pe.add(Ue);return}var qe=oe.getSeriesByName(Fe)[0];if(!he.get(Fe))if(qe){var Et=qe.getData(),Lt=Et.getVisual("legendLineStyle")||{},hn=Et.getVisual("legendIcon"),Cn=Et.getVisual("style"),bn=this._createItem(qe,Fe,Ve,Ie,V,$,Lt,Cn,hn,_e,ie);bn.on("click",curry(dispatchSelectAction,Fe,null,ie,$e)).on("mouseover",curry(dispatchHighlightAction,qe.name,null,ie,$e)).on("mouseout",curry(dispatchDownplayAction,qe.name,null,ie,$e)),he.set(Fe,!0)}else oe.eachRawSeries(function(Sn){if(!he.get(Fe)&&Sn.legendVisualProvider){var En=Sn.legendVisualProvider;if(!En.containName(Fe))return;var wn=En.indexOfName(Fe),$n=En.getItemVisual(wn,"style"),Tn=En.getItemVisual(wn,"legendIcon"),xn=parse$1($n.fill);xn&&xn[3]===0&&(xn[3]=.2,$n=extend(extend({},$n),{fill:stringify(xn,"rgba")}));var An=this._createItem(Sn,Fe,Ve,Ie,V,$,{},$n,Tn,_e,ie);An.on("click",curry(dispatchSelectAction,null,Fe,ie,$e)).on("mouseover",curry(dispatchHighlightAction,null,Fe,ie,$e)).on("mouseout",curry(dispatchDownplayAction,null,Fe,ie,$e)),he.set(Fe,!0)}},this)},this),le&&this._createSelector(le,V,ie,ue,de)},r.prototype._createSelector=function($,V,oe,ie,le){var ue=this.getSelectorGroup();each$3($,function(pe){var he=pe.type,_e=new ZRText$1({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){oe.dispatchAction({type:he==="all"?"legendAllSelect":"legendInverseSelect"})}});ue.add(_e);var $e=V.getModel("selectorLabel"),Ie=V.getModel(["emphasis","selectorLabel"]);setLabelStyle(_e,{normal:$e,emphasis:Ie},{defaultText:pe.title}),enableHoverEmphasis(_e)})},r.prototype._createItem=function($,V,oe,ie,le,ue,de,pe,he,_e,$e){var Ie=$.visualDrawType,Ve=le.get("itemWidth"),Fe=le.get("itemHeight"),Ue=le.isSelected(V),qe=ie.get("symbolRotate"),Et=ie.get("symbolKeepAspect"),Lt=ie.get("icon");he=Lt||he||"roundRect";var hn=getLegendStyle(he,ie,de,pe,Ie,Ue,$e),Cn=new Group$1,bn=ie.getModel("textStyle");if(isFunction($.getLegendIcon)&&(!Lt||Lt==="inherit"))Cn.add($.getLegendIcon({itemWidth:Ve,itemHeight:Fe,icon:he,iconRotate:qe,itemStyle:hn.itemStyle,lineStyle:hn.lineStyle,symbolKeepAspect:Et}));else{var Sn=Lt==="inherit"&&$.getData().getVisual("symbol")?qe==="inherit"?$.getData().getVisual("symbolRotate"):qe:0;Cn.add(getDefaultLegendIcon({itemWidth:Ve,itemHeight:Fe,icon:he,iconRotate:Sn,itemStyle:hn.itemStyle,lineStyle:hn.lineStyle,symbolKeepAspect:Et}))}var En=ue==="left"?Ve+5:-5,wn=ue,$n=le.get("formatter"),Tn=V;isString($n)&&$n?Tn=$n.replace("{name}",V??""):isFunction($n)&&(Tn=$n(V));var xn=Ue?bn.getTextColor():ie.get("inactiveColor");Cn.add(new ZRText$1({style:createTextStyle$1(bn,{text:Tn,x:En,y:Fe/2,fill:xn,align:wn,verticalAlign:"middle"},{inheritColor:xn})}));var An=new Rect$2({shape:Cn.getBoundingRect(),invisible:!0}),Mn=ie.getModel("tooltip");return Mn.get("show")&&setTooltipConfig({el:An,componentModel:le,itemName:V,itemTooltipOption:Mn.option}),Cn.add(An),Cn.eachChild(function(Vn){Vn.silent=!0}),An.silent=!_e,this.getContentGroup().add(Cn),enableHoverEmphasis(Cn),Cn.__legendDataIndex=oe,Cn},r.prototype.layoutInner=function($,V,oe,ie,le,ue){var de=this.getContentGroup(),pe=this.getSelectorGroup();box($.get("orient"),de,$.get("itemGap"),oe.width,oe.height);var he=de.getBoundingRect(),_e=[-he.x,-he.y];if(pe.markRedraw(),de.markRedraw(),le){box("horizontal",pe,$.get("selectorItemGap",!0));var $e=pe.getBoundingRect(),Ie=[-$e.x,-$e.y],Ve=$.get("selectorButtonGap",!0),Fe=$.getOrient().index,Ue=Fe===0?"width":"height",qe=Fe===0?"height":"width",Et=Fe===0?"y":"x";ue==="end"?Ie[Fe]+=he[Ue]+Ve:_e[Fe]+=$e[Ue]+Ve,Ie[1-Fe]+=he[qe]/2-$e[qe]/2,pe.x=Ie[0],pe.y=Ie[1],de.x=_e[0],de.y=_e[1];var Lt={x:0,y:0};return Lt[Ue]=he[Ue]+Ve+$e[Ue],Lt[qe]=Math.max(he[qe],$e[qe]),Lt[Et]=Math.min(0,$e[Et]+Ie[1-Fe]),Lt}else return de.x=_e[0],de.y=_e[1],this.group.getBoundingRect()},r.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},r.type="legend.plain",r}(ComponentView$1);function getLegendStyle(t,r,$,V,oe,ie,le){function ue(Ue,qe){Ue.lineWidth==="auto"&&(Ue.lineWidth=qe.lineWidth>0?2:0),each$3(Ue,function(Et,Lt){Ue[Lt]==="inherit"&&(Ue[Lt]=qe[Lt])})}var de=r.getModel("itemStyle"),pe=de.getItemStyle(),he=t.lastIndexOf("empty",0)===0?"fill":"stroke",_e=de.getShallow("decal");pe.decal=!_e||_e==="inherit"?V.decal:createOrUpdatePatternFromDecal(_e,le),pe.fill==="inherit"&&(pe.fill=V[oe]),pe.stroke==="inherit"&&(pe.stroke=V[he]),pe.opacity==="inherit"&&(pe.opacity=(oe==="fill"?V:$).opacity),ue(pe,V);var $e=r.getModel("lineStyle"),Ie=$e.getLineStyle();if(ue(Ie,$),pe.fill==="auto"&&(pe.fill=V.fill),pe.stroke==="auto"&&(pe.stroke=V.fill),Ie.stroke==="auto"&&(Ie.stroke=V.fill),!ie){var Ve=r.get("inactiveBorderWidth"),Fe=pe[he];pe.lineWidth=Ve==="auto"?V.lineWidth>0&&Fe?2:0:pe.lineWidth,pe.fill=r.get("inactiveColor"),pe.stroke=r.get("inactiveBorderColor"),Ie.stroke=$e.get("inactiveColor"),Ie.lineWidth=$e.get("inactiveWidth")}return{itemStyle:pe,lineStyle:Ie}}function getDefaultLegendIcon(t){var r=t.icon||"roundRect",$=createSymbol(r,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return $.setStyle(t.itemStyle),$.rotation=(t.iconRotate||0)*Math.PI/180,$.setOrigin([t.itemWidth/2,t.itemHeight/2]),r.indexOf("empty")>-1&&($.style.stroke=$.style.fill,$.style.fill="#fff",$.style.lineWidth=2),$}function dispatchSelectAction(t,r,$,V){dispatchDownplayAction(t,r,$,V),$.dispatchAction({type:"legendToggleSelect",name:t??r}),dispatchHighlightAction(t,r,$,V)}function isUseHoverLayer(t){for(var r=t.getZr().storage.getDisplayList(),$,V=0,oe=r.length;Voe[le],Ue=[-Ie.x,-Ie.y];V||(Ue[ie]=he[pe]);var qe=[0,0],Et=[-Ve.x,-Ve.y],Lt=retrieve2($.get("pageButtonGap",!0),$.get("itemGap",!0));if(Fe){var hn=$.get("pageButtonPosition",!0);hn==="end"?Et[ie]+=oe[le]-Ve[le]:qe[ie]+=Ve[le]+Lt}Et[1-ie]+=Ie[ue]/2-Ve[ue]/2,he.setPosition(Ue),_e.setPosition(qe),$e.setPosition(Et);var Cn={x:0,y:0};if(Cn[le]=Fe?oe[le]:Ie[le],Cn[ue]=Math.max(Ie[ue],Ve[ue]),Cn[de]=Math.min(0,Ve[de]+Et[1-ie]),_e.__rectSize=oe[le],Fe){var bn={x:0,y:0};bn[le]=Math.max(oe[le]-Ve[le]-Lt,0),bn[ue]=Cn[ue],_e.setClipPath(new Rect$2({shape:bn})),_e.__rectSize=bn[le]}else $e.eachChild(function(En){En.attr({invisible:!0,silent:!0})});var Sn=this._getPageInfo($);return Sn.pageIndex!=null&&updateProps$1(he,{x:Sn.contentPosition[0],y:Sn.contentPosition[1]},Fe?$:null),this._updatePageInfoView($,Sn),Cn},r.prototype._pageGo=function($,V,oe){var ie=this._getPageInfo(V)[$];ie!=null&&oe.dispatchAction({type:"legendScroll",scrollDataIndex:ie,legendId:V.id})},r.prototype._updatePageInfoView=function($,V){var oe=this._controllerGroup;each$c(["pagePrev","pageNext"],function(he){var _e=he+"DataIndex",$e=V[_e]!=null,Ie=oe.childOfName(he);Ie&&(Ie.setStyle("fill",$e?$.get("pageIconColor",!0):$.get("pageIconInactiveColor",!0)),Ie.cursor=$e?"pointer":"default")});var ie=oe.childOfName("pageText"),le=$.get("pageFormatter"),ue=V.pageIndex,de=ue!=null?ue+1:0,pe=V.pageCount;ie&&le&&ie.setStyle("text",isString(le)?le.replace("{current}",de==null?"":de+"").replace("{total}",pe==null?"":pe+""):le({current:de,total:pe}))},r.prototype._getPageInfo=function($){var V=$.get("scrollDataIndex",!0),oe=this.getContentGroup(),ie=this._containerGroup.__rectSize,le=$.getOrient().index,ue=WH[le],de=XY[le],pe=this._findTargetItemIndex(V),he=oe.children(),_e=he[pe],$e=he.length,Ie=$e?1:0,Ve={contentPosition:[oe.x,oe.y],pageCount:Ie,pageIndex:Ie-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!_e)return Ve;var Fe=hn(_e);Ve.contentPosition[le]=-Fe.s;for(var Ue=pe+1,qe=Fe,Et=Fe,Lt=null;Ue<=$e;++Ue)Lt=hn(he[Ue]),(!Lt&&Et.e>qe.s+ie||Lt&&!Cn(Lt,qe.s))&&(Et.i>qe.i?qe=Et:qe=Lt,qe&&(Ve.pageNextDataIndex==null&&(Ve.pageNextDataIndex=qe.i),++Ve.pageCount)),Et=Lt;for(var Ue=pe-1,qe=Fe,Et=Fe,Lt=null;Ue>=-1;--Ue)Lt=hn(he[Ue]),(!Lt||!Cn(Et,Lt.s))&&qe.i=Sn&&bn.s<=Sn+ie}},r.prototype._findTargetItemIndex=function($){if(!this._showController)return 0;var V,oe=this.getContentGroup(),ie;return oe.eachChild(function(le,ue){var de=le.__legendDataIndex;ie==null&&de!=null&&(ie=ue),de===$&&(V=ue)}),V??ie},r.type="legend.scroll",r}(LegendView$1);const ScrollableLegendView$1=ScrollableLegendView;function installScrollableLegendAction(t){t.registerAction("legendScroll","legendscroll",function(r,$){var V=r.scrollDataIndex;V!=null&&$.eachComponent({mainType:"legend",subType:"scroll",query:r},function(oe){oe.setScrollDataIndex(V)})})}function install$7(t){use$1(install$8),t.registerComponentModel(ScrollableLegendModel$1),t.registerComponentView(ScrollableLegendView$1),installScrollableLegendAction(t)}function install$6(t){use$1(install$8),use$1(install$7)}var InsideZoomModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.type="dataZoom.inside",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),r}(DataZoomModel$1);const InsideZoomModel$1=InsideZoomModel;var inner=makeInner();function setViewInfoToCoordSysRecord(t,r,$){inner(t).coordSysRecordMap.each(function(V){var oe=V.dataZoomInfoMap.get(r.uid);oe&&(oe.getRange=$)})}function disposeCoordSysRecordIfNeeded(t,r){for(var $=inner(t).coordSysRecordMap,V=$.keys(),oe=0;oeV[$+r]&&(r=ue),oe=oe&&le.get("preventDefaultMouseMove",!0)}),{controlType:r,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!oe}}}function installDataZoomRoamProcessor(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(r,$){var V=inner($),oe=V.coordSysRecordMap||(V.coordSysRecordMap=createHashMap());oe.each(function(ie){ie.dataZoomInfoMap=null}),r.eachComponent({mainType:"dataZoom",subType:"inside"},function(ie){var le=collectReferCoordSysModelInfo(ie);each$c(le.infoList,function(ue){var de=ue.model.uid,pe=oe.get(de)||oe.set(de,createCoordSysRecord($,ue.model)),he=pe.dataZoomInfoMap||(pe.dataZoomInfoMap=createHashMap());he.set(ie.uid,{dzReferCoordSysInfo:ue,model:ie,getRange:null})})}),oe.each(function(ie){var le=ie.controller,ue,de=ie.dataZoomInfoMap;if(de){var pe=de.keys()[0];pe!=null&&(ue=de.get(pe))}if(!ue){disposeCoordSysRecord(oe,ie);return}var he=mergeControllerParams(de);le.enable(he.controlType,he.opt),le.setPointerChecker(ie.containsPoint),createOrUpdate(ie,"dispatchAction",ue.model.get("throttle",!0),"fixRate")})})}var InsideZoomView=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type="dataZoom.inside",$}return r.prototype.render=function($,V,oe){if(t.prototype.render.apply(this,arguments),$.noTarget()){this._clear();return}this.range=$.getPercentRange(),setViewInfoToCoordSysRecord(oe,$,{pan:bind$1(getRangeHandlers.pan,this),zoom:bind$1(getRangeHandlers.zoom,this),scrollMove:bind$1(getRangeHandlers.scrollMove,this)})},r.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){disposeCoordSysRecordIfNeeded(this.api,this.dataZoomModel),this.range=null},r.type="dataZoom.inside",r}(DataZoomView$1),getRangeHandlers={zoom:function(t,r,$,V){var oe=this.range,ie=oe.slice(),le=t.axisModels[0];if(le){var ue=getDirectionInfo[r](null,[V.originX,V.originY],le,$,t),de=(ue.signal>0?ue.pixelStart+ue.pixelLength-ue.pixel:ue.pixel-ue.pixelStart)/ue.pixelLength*(ie[1]-ie[0])+ie[0],pe=Math.max(1/V.scale,0);ie[0]=(ie[0]-de)*pe+de,ie[1]=(ie[1]-de)*pe+de;var he=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(sliderMove(0,ie,[0,100],0,he.minSpan,he.maxSpan),this.range=ie,oe[0]!==ie[0]||oe[1]!==ie[1])return ie}},pan:makeMover(function(t,r,$,V,oe,ie){var le=getDirectionInfo[V]([ie.oldX,ie.oldY],[ie.newX,ie.newY],r,oe,$);return le.signal*(t[1]-t[0])*le.pixel/le.pixelLength}),scrollMove:makeMover(function(t,r,$,V,oe,ie){var le=getDirectionInfo[V]([0,0],[ie.scrollDelta,ie.scrollDelta],r,oe,$);return le.signal*(t[1]-t[0])*ie.scrollDelta})};function makeMover(t){return function(r,$,V,oe){var ie=this.range,le=ie.slice(),ue=r.axisModels[0];if(ue){var de=t(le,ue,r,$,V,oe);if(sliderMove(de,le,[0,100],"all"),this.range=le,ie[0]!==le[0]||ie[1]!==le[1])return le}}}var getDirectionInfo={grid:function(t,r,$,V,oe){var ie=$.axis,le={},ue=oe.model.coordinateSystem.getRect();return t=t||[0,0],ie.dim==="x"?(le.pixel=r[0]-t[0],le.pixelLength=ue.width,le.pixelStart=ue.x,le.signal=ie.inverse?1:-1):(le.pixel=r[1]-t[1],le.pixelLength=ue.height,le.pixelStart=ue.y,le.signal=ie.inverse?-1:1),le},polar:function(t,r,$,V,oe){var ie=$.axis,le={},ue=oe.model.coordinateSystem,de=ue.getRadiusAxis().getExtent(),pe=ue.getAngleAxis().getExtent();return t=t?ue.pointToCoord(t):[0,0],r=ue.pointToCoord(r),$.mainType==="radiusAxis"?(le.pixel=r[0]-t[0],le.pixelLength=de[1]-de[0],le.pixelStart=de[0],le.signal=ie.inverse?1:-1):(le.pixel=r[1]-t[1],le.pixelLength=pe[1]-pe[0],le.pixelStart=pe[0],le.signal=ie.inverse?-1:1),le},singleAxis:function(t,r,$,V,oe){var ie=$.axis,le=oe.model.coordinateSystem.getRect(),ue={};return t=t||[0,0],ie.orient==="horizontal"?(ue.pixel=r[0]-t[0],ue.pixelLength=le.width,ue.pixelStart=le.x,ue.signal=ie.inverse?1:-1):(ue.pixel=r[1]-t[1],ue.pixelLength=le.height,ue.pixelStart=le.y,ue.signal=ie.inverse?-1:1),ue}};const InsideZoomView$1=InsideZoomView;function install$5(t){installCommon$1(t),t.registerComponentModel(InsideZoomModel$1),t.registerComponentView(InsideZoomView$1),installDataZoomRoamProcessor(t)}var SliderZoomModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.type="dataZoom.slider",r.layoutMode="box",r.defaultOption=inheritDefaultOption(DataZoomModel$1.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),r}(DataZoomModel$1);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(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$._displayables={},$}return r.prototype.init=function($,V){this.api=V,this._onBrush=bind$1(this._onBrush,this),this._onBrushEnd=bind$1(this._onBrushEnd,this)},r.prototype.render=function($,V,oe,ie){if(t.prototype.render.apply(this,arguments),createOrUpdate(this,"_dispatchZoomAction",$.get("throttle"),"fixRate"),this._orient=$.getOrient(),$.get("show")===!1){this.group.removeAll();return}if($.noTarget()){this._clear(),this.group.removeAll();return}(!ie||ie.type!=="dataZoom"||ie.from!==this.uid)&&this._buildView(),this._updateView()},r.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},r.prototype._clear=function(){clear$1(this,"_dispatchZoomAction");var $=this.api.getZr();$.off("mousemove",this._onBrush),$.off("mouseup",this._onBrushEnd)},r.prototype._buildView=function(){var $=this.group;$.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var V=this._displayables.sliderGroup=new Group$3;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),$.add(V),this._positionGroup()},r.prototype._resetLocation=function(){var $=this.dataZoomModel,V=this.api,oe=$.get("brushSelect"),ie=oe?DEFAULT_MOVE_HANDLE_SIZE:0,le=this._findCoordRect(),ue={width:V.getWidth(),height:V.getHeight()},de=this._orient===HORIZONTAL?{right:ue.width-le.x-le.width,top:ue.height-DEFAULT_FILLER_SIZE-DEFAULT_LOCATION_EDGE_GAP-ie,width:le.width,height:DEFAULT_FILLER_SIZE}:{right:DEFAULT_LOCATION_EDGE_GAP,top:le.y,width:DEFAULT_FILLER_SIZE,height:le.height},pe=getLayoutParams($.option);each$c(["right","top","width","height"],function(_e){pe[_e]==="ph"&&(pe[_e]=de[_e])});var he=getLayoutRect(pe,ue);this._location={x:he.x,y:he.y},this._size=[he.width,he.height],this._orient===VERTICAL&&this._size.reverse()},r.prototype._positionGroup=function(){var $=this.group,V=this._location,oe=this._orient,ie=this.dataZoomModel.getFirstTargetAxisModel(),le=ie&&ie.get("inverse"),ue=this._displayables.sliderGroup,de=(this._dataShadowInfo||{}).otherAxisInverse;ue.attr(oe===HORIZONTAL&&!le?{scaleY:de?1:-1,scaleX:1}:oe===HORIZONTAL&&le?{scaleY:de?1:-1,scaleX:-1}:oe===VERTICAL&&!le?{scaleY:de?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:de?-1:1,scaleX:-1,rotation:Math.PI/2});var pe=$.getBoundingRect([ue]);$.x=V.x-pe.x,$.y=V.y-pe.y,$.markRedraw()},r.prototype._getViewExtent=function(){return[0,this._size[0]]},r.prototype._renderBackground=function(){var $=this.dataZoomModel,V=this._size,oe=this._displayables.sliderGroup,ie=$.get("brushSelect");oe.add(new Rect({silent:!0,shape:{x:0,y:0,width:V[0],height:V[1]},style:{fill:$.get("backgroundColor")},z2:-40}));var le=new Rect({shape:{x:0,y:0,width:V[0],height:V[1]},style:{fill:"transparent"},z2:0,onclick:bind$1(this._onClickPanel,this)}),ue=this.api.getZr();ie?(le.on("mousedown",this._onBrushStart,this),le.cursor="crosshair",ue.on("mousemove",this._onBrush),ue.on("mouseup",this._onBrushEnd)):(ue.off("mousemove",this._onBrush),ue.off("mouseup",this._onBrushEnd)),oe.add(le)},r.prototype._renderDataShadow=function(){var $=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!$)return;var V=this._size,oe=this._shadowSize||[],ie=$.series,le=ie.getRawData(),ue=ie.getShadowDim&&ie.getShadowDim(),de=ue&&le.getDimensionInfo(ue)?ie.getShadowDim():$.otherDim;if(de==null)return;var pe=this._shadowPolygonPts,he=this._shadowPolylinePts;if(le!==this._shadowData||de!==this._shadowDim||V[0]!==oe[0]||V[1]!==oe[1]){var _e=le.getDataExtent(de),$e=(_e[1]-_e[0])*.3;_e=[_e[0]-$e,_e[1]+$e];var Ie=[0,V[1]],Ve=[0,V[0]],Fe=[[V[0],0],[0,0]],Ue=[],qe=Ve[1]/(le.count()-1),Et=0,Lt=Math.round(le.count()/V[0]),hn;le.each([de],function(wn,$n){if(Lt>0&&$n%Lt){Et+=qe;return}var Tn=wn==null||isNaN(wn)||wn==="",xn=Tn?0:linearMap$2(wn,_e,Ie,!0);Tn&&!hn&&$n?(Fe.push([Fe[Fe.length-1][0],0]),Ue.push([Ue[Ue.length-1][0],0])):!Tn&&hn&&(Fe.push([Et,0]),Ue.push([Et,0])),Fe.push([Et,xn]),Ue.push([Et,xn]),Et+=qe,hn=Tn}),pe=this._shadowPolygonPts=Fe,he=this._shadowPolylinePts=Ue}this._shadowData=le,this._shadowDim=de,this._shadowSize=[V[0],V[1]];var Cn=this.dataZoomModel;function bn(wn){var $n=Cn.getModel(wn?"selectedDataBackground":"dataBackground"),Tn=new Group$3,xn=new Polygon$1({shape:{points:pe},segmentIgnoreThreshold:1,style:$n.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),An=new Polyline$1({shape:{points:he},segmentIgnoreThreshold:1,style:$n.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return Tn.add(xn),Tn.add(An),Tn}for(var Sn=0;Sn<3;Sn++){var En=bn(Sn===1);this._displayables.sliderGroup.add(En),this._displayables.dataShadowSegs.push(En)}},r.prototype._prepareDataShadowInfo=function(){var $=this.dataZoomModel,V=$.get("showDataShadow");if(V!==!1){var oe,ie=this.ecModel;return $.eachTargetAxis(function(le,ue){var de=$.getAxisProxy(le,ue).getTargetSeriesModels();each$c(de,function(pe){if(!oe&&!(V!==!0&&indexOf(SHOW_DATA_SHADOW_SERIES_TYPE,pe.get("type"))<0)){var he=ie.getComponent(getAxisMainType(le),ue).axis,_e=getOtherDim(le),$e,Ie=pe.coordinateSystem;_e!=null&&Ie.getOtherAxis&&($e=Ie.getOtherAxis(he).inverse),_e=pe.getData().mapDimension(_e),oe={thisAxis:he,series:pe,thisDim:le,otherDim:_e,otherAxisInverse:$e}}},this)},this),oe}},r.prototype._renderHandle=function(){var $=this.group,V=this._displayables,oe=V.handles=[null,null],ie=V.handleLabels=[null,null],le=this._displayables.sliderGroup,ue=this._size,de=this.dataZoomModel,pe=this.api,he=de.get("borderRadius")||0,_e=de.get("brushSelect"),$e=V.filler=new Rect({silent:_e,style:{fill:de.get("fillerColor")},textConfig:{position:"inside"}});le.add($e),le.add(new Rect({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:ue[0],height:ue[1],r:he},style:{stroke:de.get("dataBackgroundColor")||de.get("borderColor"),lineWidth:DEFAULT_FRAME_BORDER_WIDTH,fill:"rgba(0,0,0,0)"}})),each$c([0,1],function(Lt){var hn=de.get("handleIcon");!symbolBuildProxies[hn]&&hn.indexOf("path://")<0&&hn.indexOf("image://")<0&&(hn="path://"+hn);var Cn=createSymbol(hn,-1,0,2,2,null,!0);Cn.attr({cursor:getCursor$1(this._orient),draggable:!0,drift:bind$1(this._onDragMove,this,Lt),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1),z2:5});var bn=Cn.getBoundingRect(),Sn=de.get("handleSize");this._handleHeight=parsePercent(Sn,this._size[1]),this._handleWidth=bn.width/bn.height*this._handleHeight,Cn.setStyle(de.getModel("handleStyle").getItemStyle()),Cn.style.strokeNoScale=!0,Cn.rectHover=!0,Cn.ensureState("emphasis").style=de.getModel(["emphasis","handleStyle"]).getItemStyle(),enableHoverEmphasis(Cn);var En=de.get("handleColor");En!=null&&(Cn.style.fill=En),le.add(oe[Lt]=Cn);var wn=de.getModel("textStyle");$.add(ie[Lt]=new ZRText$1({silent:!0,invisible:!0,style:createTextStyle$1(wn,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:wn.getTextColor(),font:wn.getFont()}),z2:10}))},this);var Ie=$e;if(_e){var Ve=parsePercent(de.get("moveHandleSize"),ue[1]),Fe=V.moveHandle=new Rect$2({style:de.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:ue[1]-.5,height:Ve}}),Ue=Ve*.8,qe=V.moveHandleIcon=createSymbol(de.get("moveHandleIcon"),-Ue/2,-Ue/2,Ue,Ue,"#fff",!0);qe.silent=!0,qe.y=ue[1]+Ve/2-.5,Fe.ensureState("emphasis").style=de.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var Et=Math.min(ue[1]/2,Math.max(Ve,10));Ie=V.moveZone=new Rect$2({invisible:!0,shape:{y:ue[1]-Et,height:Ve+Et}}),Ie.on("mouseover",function(){pe.enterEmphasis(Fe)}).on("mouseout",function(){pe.leaveEmphasis(Fe)}),le.add(Fe),le.add(qe),le.add(Ie)}Ie.attr({draggable:!0,cursor:getCursor$1(this._orient),drift:bind$1(this._onDragMove,this,"all"),ondragstart:bind$1(this._showDataInfo,this,!0),ondragend:bind$1(this._onDragEnd,this),onmouseover:bind$1(this._showDataInfo,this,!0),onmouseout:bind$1(this._showDataInfo,this,!1)})},r.prototype._resetInterval=function(){var $=this._range=this.dataZoomModel.getPercentRange(),V=this._getViewExtent();this._handleEnds=[linearMap$2($[0],[0,100],V,!0),linearMap$2($[1],[0,100],V,!0)]},r.prototype._updateInterval=function($,V){var oe=this.dataZoomModel,ie=this._handleEnds,le=this._getViewExtent(),ue=oe.findRepresentativeAxisProxy().getMinMaxSpan(),de=[0,100];sliderMove(V,ie,le,oe.get("zoomLock")?"all":$,ue.minSpan!=null?linearMap$2(ue.minSpan,de,le,!0):null,ue.maxSpan!=null?linearMap$2(ue.maxSpan,de,le,!0):null);var pe=this._range,he=this._range=asc$2([linearMap$2(ie[0],le,de,!0),linearMap$2(ie[1],le,de,!0)]);return!pe||pe[0]!==he[0]||pe[1]!==he[1]},r.prototype._updateView=function($){var V=this._displayables,oe=this._handleEnds,ie=asc$2(oe.slice()),le=this._size;each$c([0,1],function(Ie){var Ve=V.handles[Ie],Fe=this._handleHeight;Ve.attr({scaleX:Fe/2,scaleY:Fe/2,x:oe[Ie]+(Ie?-1:1),y:le[1]/2-Fe/2})},this),V.filler.setShape({x:ie[0],y:0,width:ie[1]-ie[0],height:le[1]});var ue={x:ie[0],width:ie[1]-ie[0]};V.moveHandle&&(V.moveHandle.setShape(ue),V.moveZone.setShape(ue),V.moveZone.getBoundingRect(),V.moveHandleIcon&&V.moveHandleIcon.attr("x",ue.x+ue.width/2));for(var de=V.dataShadowSegs,pe=[0,ie[0],ie[1],le[0]],he=0;heV[0]||oe[1]<0||oe[1]>V[1])){var ie=this._handleEnds,le=(ie[0]+ie[1])/2,ue=this._updateInterval("all",oe[0]-le);this._updateView(),ue&&this._dispatchZoomAction(!1)}},r.prototype._onBrushStart=function($){var V=$.offsetX,oe=$.offsetY;this._brushStart=new Point$1(V,oe),this._brushing=!0,this._brushStartTime=+new Date},r.prototype._onBrushEnd=function($){if(this._brushing){var V=this._displayables.brushRect;if(this._brushing=!1,!!V){V.attr("ignore",!0);var oe=V.shape,ie=+new Date;if(!(ie-this._brushStartTime<200&&Math.abs(oe.width)<5)){var le=this._getViewExtent(),ue=[0,100];this._range=asc$2([linearMap$2(oe.x,le,ue,!0),linearMap$2(oe.x+oe.width,le,ue,!0)]),this._handleEnds=[oe.x,oe.x+oe.width],this._updateView(),this._dispatchZoomAction(!1)}}}},r.prototype._onBrush=function($){this._brushing&&(stop($.event),this._updateBrushRect($.offsetX,$.offsetY))},r.prototype._updateBrushRect=function($,V){var oe=this._displayables,ie=this.dataZoomModel,le=oe.brushRect;le||(le=oe.brushRect=new Rect({silent:!0,style:ie.getModel("brushStyle").getItemStyle()}),oe.sliderGroup.add(le)),le.attr("ignore",!1);var ue=this._brushStart,de=this._displayables.sliderGroup,pe=de.transformCoordToLocal($,V),he=de.transformCoordToLocal(ue.x,ue.y),_e=this._size;pe[0]=Math.max(Math.min(_e[0],pe[0]),0),le.setShape({x:he[0],y:0,width:pe[0]-he[0],height:_e[1]})},r.prototype._dispatchZoomAction=function($){var V=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:$?REALTIME_ANIMATION_CONFIG:null,start:V[0],end:V[1]})},r.prototype._findCoordRect=function(){var $,V=collectReferCoordSysModelInfo(this.dataZoomModel).infoList;if(!$&&V.length){var oe=V[0].model.coordinateSystem;$=oe.getRect&&oe.getRect()}if(!$){var ie=this.api.getWidth(),le=this.api.getHeight();$={x:ie*.2,y:le*.2,width:ie*.6,height:le*.6}}return $},r.type="dataZoom.slider",r}(DataZoomView$1);function getOtherDim(t){var r={x:"y",y:"x",radius:"angle",angle:"radius"};return r[t]}function getCursor$1(t){return t==="vertical"?"ns-resize":"ew-resize"}const SliderZoomView$1=SliderZoomView;function install$4(t){t.registerComponentModel(SliderZoomModel$1),t.registerComponentView(SliderZoomView$1),installCommon$1(t)}function install$3(t){use$1(install$5),use$1(install$4)}var visualDefault={get:function(t,r,$){var V=clone$3((defaultOption[t]||{})[r]);return $&&isArray$1(V)?V[V.length-1]:V}},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(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$.stateList=["inRange","outOfRange"],$.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],$.layoutMode={type:"box",ignoreSize:!0},$.dataBound=[-1/0,1/0],$.targetVisuals={},$.controllerVisuals={},$}return r.prototype.init=function($,V,oe){this.mergeDefaultAndTheme($,oe)},r.prototype.optionUpdated=function($,V){var oe=this.option;!V&&replaceVisualOption(oe,$,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},r.prototype.resetVisual=function($){var V=this.stateList;$=bind$1($,this),this.controllerVisuals=createVisualMappings(this.option.controller,V,$),this.targetVisuals=createVisualMappings(this.option.target,V,$)},r.prototype.getItemSymbol=function(){return null},r.prototype.getTargetSeriesIndices=function(){var $=this.option.seriesIndex,V=[];return $==null||$==="all"?this.ecModel.eachSeries(function(oe,ie){V.push(ie)}):V=normalizeToArray($),V},r.prototype.eachTargetSeries=function($,V){each$c(this.getTargetSeriesIndices(),function(oe){var ie=this.ecModel.getSeriesByIndex(oe);ie&&$.call(V,ie)},this)},r.prototype.isTargetSeries=function($){var V=!1;return this.eachTargetSeries(function(oe){oe===$&&(V=!0)}),V},r.prototype.formatValueText=function($,V,oe){var ie=this.option,le=ie.precision,ue=this.dataBound,de=ie.formatter,pe;oe=oe||["<",">"],isArray$1($)&&($=$.slice(),pe=!0);var he=V?$:pe?[_e($[0]),_e($[1])]:_e($);if(isString(de))return de.replace("{value}",pe?he[0]:he).replace("{value2}",pe?he[1]:he);if(isFunction(de))return pe?de($[0],$[1]):de($);if(pe)return $[0]===ue[0]?oe[0]+" "+he[1]:$[1]===ue[1]?oe[1]+" "+he[0]:he[0]+" - "+he[1];return he;function _e($e){return $e===ue[0]?"min":$e===ue[1]?"max":(+$e).toFixed(Math.min(le,20))}},r.prototype.resetExtent=function(){var $=this.option,V=asc([$.min,$.max]);this._dataExtent=V},r.prototype.getDataDimensionIndex=function($){var V=this.option.dimension;if(V!=null)return $.getDimensionIndex(V);for(var oe=$.dimensions,ie=oe.length-1;ie>=0;ie--){var le=oe[ie],ue=$.getDimensionInfo(le);if(!ue.isCalculationCoord)return ue.storeDimIndex}},r.prototype.getExtent=function(){return this._dataExtent.slice()},r.prototype.completeVisualOption=function(){var $=this.ecModel,V=this.option,oe={inRange:V.inRange,outOfRange:V.outOfRange},ie=V.target||(V.target={}),le=V.controller||(V.controller={});merge(ie,oe),merge(le,oe);var ue=this.isCategory();de.call(this,ie),de.call(this,le),pe.call(this,ie,"inRange","outOfRange"),he.call(this,le);function de(_e){isArray(V.color)&&!_e.inRange&&(_e.inRange={color:V.color.slice().reverse()}),_e.inRange=_e.inRange||{color:$.get("gradientColor")}}function pe(_e,$e,Ie){var Ve=_e[$e],Fe=_e[Ie];Ve&&!Fe&&(Fe=_e[Ie]={},each$2(Ve,function(Ue,qe){if(VisualMapping$1.isValidType(qe)){var Et=visualDefault$1.get(qe,"inactive",ue);Et!=null&&(Fe[qe]=Et,qe==="color"&&!Fe.hasOwnProperty("opacity")&&!Fe.hasOwnProperty("colorAlpha")&&(Fe.opacity=[0,0]))}}))}function he(_e){var $e=(_e.inRange||{}).symbol||(_e.outOfRange||{}).symbol,Ie=(_e.inRange||{}).symbolSize||(_e.outOfRange||{}).symbolSize,Ve=this.get("inactiveColor"),Fe=this.getItemSymbol(),Ue=Fe||"roundRect";each$2(this.stateList,function(qe){var Et=this.itemSize,Lt=_e[qe];Lt||(Lt=_e[qe]={color:ue?Ve:[Ve]}),Lt.symbol==null&&(Lt.symbol=$e&&clone$3($e)||(ue?Ue:[Ue])),Lt.symbolSize==null&&(Lt.symbolSize=Ie&&clone$3(Ie)||(ue?Et[0]:[Et[0],Et[0]])),Lt.symbol=mapVisual(Lt.symbol,function(bn){return bn==="none"?Ue:bn});var hn=Lt.symbolSize;if(hn!=null){var Cn=-1/0;eachVisual(hn,function(bn){bn>Cn&&(Cn=bn)}),Lt.symbolSize=mapVisual(hn,function(bn){return linearMap$1(bn,[0,Cn],[0,Et[0]],!0)})}},this)}},r.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},r.prototype.isCategory=function(){return!!this.option.categories},r.prototype.setSelected=function($){},r.prototype.getSelected=function(){return null},r.prototype.getValueState=function($){return null},r.prototype.getVisualMeta=function($){return null},r.type="visualMap",r.dependencies=["series"],r.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},r}(ComponentModel$1);const VisualMapModel$1=VisualMapModel;var DEFAULT_BAR_BOUND=[20,140],ContinuousModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.prototype.optionUpdated=function($,V){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(oe){oe.mappingMethod="linear",oe.dataExtent=this.getExtent()}),this._resetRange()},r.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var $=this.itemSize;($[0]==null||isNaN($[0]))&&($[0]=DEFAULT_BAR_BOUND[0]),($[1]==null||isNaN($[1]))&&($[1]=DEFAULT_BAR_BOUND[1])},r.prototype._resetRange=function(){var $=this.getExtent(),V=this.option.range;!V||V.auto?($.auto=1,this.option.range=$):isArray$1(V)&&(V[0]>V[1]&&V.reverse(),V[0]=Math.max(V[0],$[0]),V[1]=Math.min(V[1],$[1]))},r.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),each$c(this.stateList,function($){var V=this.option.controller[$].symbolSize;V&&V[0]!==V[1]&&(V[0]=V[1]/3)},this)},r.prototype.setSelected=function($){this.option.range=$.slice(),this._resetRange()},r.prototype.getSelected=function(){var $=this.getExtent(),V=asc$2((this.get("range")||[]).slice());return V[0]>$[1]&&(V[0]=$[1]),V[1]>$[1]&&(V[1]=$[1]),V[0]<$[0]&&(V[0]=$[0]),V[1]<$[0]&&(V[1]=$[0]),V},r.prototype.getValueState=function($){var V=this.option.range,oe=this.getExtent();return(V[0]<=oe[0]||V[0]<=$)&&(V[1]>=oe[1]||$<=V[1])?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function($){var V=[];return this.eachTargetSeries(function(oe){var ie=[],le=oe.getData();le.each(this.getDataDimensionIndex(le),function(ue,de){$[0]<=ue&&ue<=$[1]&&ie.push(de)},this),V.push({seriesId:oe.id,dataIndex:ie})},this),V},r.prototype.getVisualMeta=function($){var V=getColorStopValues(this,"outOfRange",this.getExtent()),oe=getColorStopValues(this,"inRange",this.option.range.slice()),ie=[];function le(Ie,Ve){ie.push({value:Ie,color:$(Ie,Ve)})}for(var ue=0,de=0,pe=oe.length,he=V.length;de$[1])break;ie.push({color:this.getControllerVisual(de,"color",V),offset:ue/oe})}return ie.push({color:this.getControllerVisual($[1],"color",V),offset:1}),ie},r.prototype._createBarPoints=function($,V){var oe=this.visualMapModel.itemSize;return[[oe[0]-V[0],$[0]],[oe[0],$[0]],[oe[0],$[1]],[oe[0]-V[1],$[1]]]},r.prototype._createBarGroup=function($){var V=this._orient,oe=this.visualMapModel.get("inverse");return new Group$3(V==="horizontal"&&!oe?{scaleX:$==="bottom"?1:-1,rotation:Math.PI/2}:V==="horizontal"&&oe?{scaleX:$==="bottom"?-1:1,rotation:-Math.PI/2}:V==="vertical"&&!oe?{scaleX:$==="left"?1:-1,scaleY:-1}:{scaleX:$==="left"?1:-1})},r.prototype._updateHandle=function($,V){if(this._useHandle){var oe=this._shapes,ie=this.visualMapModel,le=oe.handleThumbs,ue=oe.handleLabels,de=ie.itemSize,pe=ie.getExtent();each$1([0,1],function(he){var _e=le[he];_e.setStyle("fill",V.handlesColor[he]),_e.y=$[he];var $e=linearMap($[he],[0,de[1]],pe,!0),Ie=this.getControllerVisual($e,"symbolSize");_e.scaleX=_e.scaleY=Ie/de[0],_e.x=de[0]-Ie/2;var Ve=applyTransform(oe.handleLabelPoints[he],getTransform$1(_e,this.group));ue[he].setStyle({x:Ve[0],y:Ve[1],text:ie.formatValueText(this._dataInterval[he]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",oe.mainGroup):"center"})},this)}},r.prototype._showIndicator=function($,V,oe,ie){var le=this.visualMapModel,ue=le.getExtent(),de=le.itemSize,pe=[0,de[1]],he=this._shapes,_e=he.indicator;if(_e){_e.attr("invisible",!1);var $e={convertOpacityToAlpha:!0},Ie=this.getControllerVisual($,"color",$e),Ve=this.getControllerVisual($,"symbolSize"),Fe=linearMap($,ue,pe,!0),Ue=de[0]-Ve/2,qe={x:_e.x,y:_e.y};_e.y=Fe,_e.x=Ue;var Et=applyTransform(he.indicatorLabelPoint,getTransform$1(_e,this.group)),Lt=he.indicatorLabel;Lt.attr("invisible",!1);var hn=this._applyTransform("left",he.mainGroup),Cn=this._orient,bn=Cn==="horizontal";Lt.setStyle({text:(oe||"")+le.formatValueText(V),verticalAlign:bn?hn:"middle",align:bn?"center":hn});var Sn={x:Ue,y:Fe,style:{fill:Ie}},En={style:{x:Et[0],y:Et[1]}};if(le.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var wn={duration:100,easing:"cubicInOut",additive:!0};_e.x=qe.x,_e.y=qe.y,_e.animateTo(Sn,wn),Lt.animateTo(En,wn)}else _e.attr(Sn),Lt.attr(En);this._firstShowIndicator=!1;var $n=this._shapes.handleLabels;if($n)for(var Tn=0;Tn<$n.length;Tn++)this._api.enterBlur($n[Tn])}},r.prototype._enableHoverLinkToSeries=function(){var $=this;this._shapes.mainGroup.on("mousemove",function(V){if($._hovering=!0,!$._dragging){var oe=$.visualMapModel.itemSize,ie=$._applyTransform([V.offsetX,V.offsetY],$._shapes.mainGroup,!0,!0);ie[1]=mathMin(mathMax(0,ie[1]),oe[1]),$._doHoverLinkToSeries(ie[1],0<=ie[0]&&ie[0]<=oe[0])}}).on("mouseout",function(){$._hovering=!1,!$._dragging&&$._clearHoverLinkToSeries()})},r.prototype._enableHoverLinkFromSeries=function(){var $=this.api.getZr();this.visualMapModel.option.hoverLink?($.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),$.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},r.prototype._doHoverLinkToSeries=function($,V){var oe=this.visualMapModel,ie=oe.itemSize;if(oe.option.hoverLink){var le=[0,ie[1]],ue=oe.getExtent();$=mathMin(mathMax(le[0],$),le[1]);var de=getHalfHoverLinkSize(oe,ue,le),pe=[$-de,$+de],he=linearMap($,le,ue,!0),_e=[linearMap(pe[0],le,ue,!0),linearMap(pe[1],le,ue,!0)];pe[0]le[1]&&(_e[1]=1/0),V&&(_e[0]===-1/0?this._showIndicator(he,_e[1],"< ",de):_e[1]===1/0?this._showIndicator(he,_e[0],"> ",de):this._showIndicator(he,he,"≈ ",de));var $e=this._hoverLinkDataIndices,Ie=[];(V||useHoverLinkOnHandle(oe))&&(Ie=this._hoverLinkDataIndices=oe.findTargetDataIndices(_e));var Ve=compressBatches($e,Ie);this._dispatchHighDown("downplay",makeHighDownBatch(Ve[0],oe)),this._dispatchHighDown("highlight",makeHighDownBatch(Ve[1],oe))}},r.prototype._hoverLinkFromSeriesMouseOver=function($){var V;if(findEventDispatcher($.target,function(de){var pe=getECData(de);if(pe.dataIndex!=null)return V=pe,!0},!0),!!V){var oe=this.ecModel.getSeriesByIndex(V.seriesIndex),ie=this.visualMapModel;if(ie.isTargetSeries(oe)){var le=oe.getData(V.dataType),ue=le.getStore().get(ie.getDataDimensionIndex(le),V.dataIndex);isNaN(ue)||this._showIndicator(ue,ue)}}},r.prototype._hideIndicator=function(){var $=this._shapes;$.indicator&&$.indicator.attr("invisible",!0),$.indicatorLabel&&$.indicatorLabel.attr("invisible",!0);var V=this._shapes.handleLabels;if(V)for(var oe=0;oe=0&&(ie.dimension=le,V.push(ie))}}),t.getData().setVisual("visualMeta",V)}}];function getColorVisual(t,r,$,V){for(var oe=r.targetVisuals[V],ie=VisualMapping$1.prepareVisualTypes(oe),le={color:getVisualFromData(t.getData(),"color")},ue=0,de=ie.length;ue0:r.splitNumber>0)||r.calculable)?"continuous":"piecewise"}),t.registerAction(visualMapActionInfo,visualMapActionHander),each$c(visualMapEncodingHandlers,function(r){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,r)}),t.registerPreprocessor(visualMapPreprocessor))}function install$2(t){t.registerComponentModel(ContinuousModel$1),t.registerComponentView(ContinuousView$1),installCommon(t)}var PiecewiseModel=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$._pieceList=[],$}return r.prototype.optionUpdated=function($,V){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var oe=this._mode=this._determineMode();this._pieceList=[],resetMethods[this._mode].call(this,this._pieceList),this._resetSelected($,V);var ie=this.option.categories;this.resetVisual(function(le,ue){oe==="categories"?(le.mappingMethod="category",le.categories=clone$3(ie)):(le.dataExtent=this.getExtent(),le.mappingMethod="piecewise",le.pieceList=map$2(this._pieceList,function(de){return de=clone$3(de),ue!=="inRange"&&(de.visual=null),de}))})},r.prototype.completeVisualOption=function(){var $=this.option,V={},oe=VisualMapping$1.listVisualTypes(),ie=this.isCategory();each$c($.pieces,function(ue){each$c(oe,function(de){ue.hasOwnProperty(de)&&(V[de]=1)})}),each$c(V,function(ue,de){var pe=!1;each$c(this.stateList,function(he){pe=pe||le($,he,de)||le($.target,he,de)},this),!pe&&each$c(this.stateList,function(he){($[he]||($[he]={}))[de]=visualDefault$1.get(de,he==="inRange"?"active":"inactive",ie)})},this);function le(ue,de,pe){return ue&&ue[de]&&ue[de].hasOwnProperty(pe)}t.prototype.completeVisualOption.apply(this,arguments)},r.prototype._resetSelected=function($,V){var oe=this.option,ie=this._pieceList,le=(V?oe:$).selected||{};if(oe.selected=le,each$c(ie,function(de,pe){var he=this.getSelectedMapKey(de);le.hasOwnProperty(he)||(le[he]=!0)},this),oe.selectedMode==="single"){var ue=!1;each$c(ie,function(de,pe){var he=this.getSelectedMapKey(de);le[he]&&(ue?le[he]=!1:ue=!0)},this)}},r.prototype.getItemSymbol=function(){return this.get("itemSymbol")},r.prototype.getSelectedMapKey=function($){return this._mode==="categories"?$.value+"":$.index+""},r.prototype.getPieceList=function(){return this._pieceList},r.prototype._determineMode=function(){var $=this.option;return $.pieces&&$.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},r.prototype.setSelected=function($){this.option.selected=clone$3($)},r.prototype.getValueState=function($){var V=VisualMapping$1.findPieceIndex($,this._pieceList);return V!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[V])]?"inRange":"outOfRange"},r.prototype.findTargetDataIndices=function($){var V=[],oe=this._pieceList;return this.eachTargetSeries(function(ie){var le=[],ue=ie.getData();ue.each(this.getDataDimensionIndex(ue),function(de,pe){var he=VisualMapping$1.findPieceIndex(de,oe);he===$&&le.push(pe)},this),V.push({seriesId:ie.id,dataIndex:le})},this),V},r.prototype.getRepresentValue=function($){var V;if(this.isCategory())V=$.value;else if($.value!=null)V=$.value;else{var oe=$.interval||[];V=oe[0]===-1/0&&oe[1]===1/0?0:(oe[0]+oe[1])/2}return V},r.prototype.getVisualMeta=function($){if(this.isCategory())return;var V=[],oe=["",""],ie=this;function le(he,_e){var $e=ie.getRepresentValue({interval:he});_e||(_e=ie.getValueState($e));var Ie=$($e,_e);he[0]===-1/0?oe[0]=Ie:he[1]===1/0?oe[1]=Ie:V.push({value:he[0],color:Ie},{value:he[1],color:Ie})}var ue=this._pieceList.slice();if(!ue.length)ue.push({interval:[-1/0,1/0]});else{var de=ue[0].interval[0];de!==-1/0&&ue.unshift({interval:[-1/0,de]}),de=ue[ue.length-1].interval[1],de!==1/0&&ue.push({interval:[de,1/0]})}var pe=-1/0;return each$c(ue,function(he){var _e=he.interval;_e&&(_e[0]>pe&&le([pe,_e[0]],"outOfRange"),le(_e.slice()),pe=_e[1])},this),{stops:V,outerColors:oe}},r.type="visualMap.piecewise",r.defaultOption=inheritDefaultOption(VisualMapModel$1.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),r}(VisualMapModel$1),resetMethods={splitNumber:function(t){var r=this.option,$=Math.min(r.precision,20),V=this.getExtent(),oe=r.splitNumber;oe=Math.max(parseInt(oe,10),1),r.splitNumber=oe;for(var ie=(V[1]-V[0])/oe;+ie.toFixed($)!==ie&&$<5;)$++;r.precision=$,ie=+ie.toFixed($),r.minOpen&&t.push({interval:[-1/0,V[0]],close:[0,0]});for(var le=0,ue=V[0];le","≥"][V[0]]];$.text=$.text||this.formatValueText($.value!=null?$.value:$.interval,!1,oe)},this)}};function normalizeReverse(t,r){var $=t.inverse;(t.orient==="vertical"?!$:$)&&r.reverse()}const PiecewiseModel$1=PiecewiseModel;var PiecewiseVisualMapView=function(t){__extends(r,t);function r(){var $=t!==null&&t.apply(this,arguments)||this;return $.type=r.type,$}return r.prototype.doRender=function(){var $=this.group;$.removeAll();var V=this.visualMapModel,oe=V.get("textGap"),ie=V.textStyleModel,le=ie.getFont(),ue=ie.getTextColor(),de=this._getItemAlign(),pe=V.itemSize,he=this._getViewData(),_e=he.endsText,$e=retrieve(V.get("showLabel",!0),!_e);_e&&this._renderEndsText($,_e[0],pe,$e,de),each$c(he.viewPieceList,function(Ie){var Ve=Ie.piece,Fe=new Group$3;Fe.onclick=bind$1(this._onItemClick,this,Ve),this._enableHoverLink(Fe,Ie.indexInModelPieceList);var Ue=V.getRepresentValue(Ve);if(this._createItemSymbol(Fe,Ue,[0,0,pe[0],pe[1]]),$e){var qe=this.visualMapModel.getValueState(Ue);Fe.add(new ZRText$1({style:{x:de==="right"?-oe:pe[0]+oe,y:pe[1]/2,text:Ve.text,verticalAlign:"middle",align:de,font:le,fill:ue,opacity:qe==="outOfRange"?.5:1}}))}$.add(Fe)},this),_e&&this._renderEndsText($,_e[1],pe,$e,de),box(V.get("orient"),$,V.get("itemGap")),this.renderBackground($),this.positionGroup($)},r.prototype._enableHoverLink=function($,V){var oe=this;$.on("mouseover",function(){return ie("highlight")}).on("mouseout",function(){return ie("downplay")});var ie=function(le){var ue=oe.visualMapModel;ue.option.hoverLink&&oe.api.dispatchAction({type:le,batch:makeHighDownBatch(ue.findTargetDataIndices(V),ue)})}},r.prototype._getItemAlign=function(){var $=this.visualMapModel,V=$.option;if(V.orient==="vertical")return getItemAlign($,this.api,$.itemSize);var oe=V.align;return(!oe||oe==="auto")&&(oe="left"),oe},r.prototype._renderEndsText=function($,V,oe,ie,le){if(V){var ue=new Group$3,de=this.visualMapModel.textStyleModel;ue.add(new ZRText$1({style:createTextStyle$1(de,{x:ie?le==="right"?oe[0]:0:oe[0]/2,y:oe[1]/2,verticalAlign:"middle",align:ie?le:"center",text:V})})),$.add(ue)}},r.prototype._getViewData=function(){var $=this.visualMapModel,V=map$2($.getPieceList(),function(ue,de){return{piece:ue,indexInModelPieceList:de}}),oe=$.get("text"),ie=$.get("orient"),le=$.get("inverse");return(ie==="horizontal"?le:!le)?V.reverse():oe&&(oe=oe.slice().reverse()),{viewPieceList:V,endsText:oe}},r.prototype._createItemSymbol=function($,V,oe){$.add(createSymbol(this.getControllerVisual(V,"symbol"),oe[0],oe[1],oe[2],oe[3],this.getControllerVisual(V,"color")))},r.prototype._onItemClick=function($){var V=this.visualMapModel,oe=V.option,ie=oe.selectedMode;if(ie){var le=clone$3(oe.selected),ue=V.getSelectedMapKey($);ie==="single"||ie===!0?(le[ue]=!0,each$c(le,function(de,pe){le[pe]=pe===ue})):le[ue]=!le[ue],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:le})}},r.type="visualMap.piecewise",r}(VisualMapView$1);const PiecewiseView=PiecewiseVisualMapView;function install$1(t){t.registerComponentModel(PiecewiseModel$1),t.registerComponentView(PiecewiseView),installCommon(t)}function install(t){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(t){t.config.globalProperties.$echarts=echarts}var p=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,j$1=Object.prototype.hasOwnProperty,_=(t,r,$)=>r in t?p(t,r,{enumerable:!0,configurable:!0,writable:!0,value:$}):t[r]=$,P=(t,r)=>{for(var $ in r)p(t,$,{get:r[$],enumerable:!0})},y=(t,r,$,V)=>{if(r&&typeof r=="object"||typeof r=="function")for(let oe of u(r))!j$1.call(t,oe)&&oe!==$&&p(t,oe,{get:()=>r[oe],enumerable:!(V=d(r,oe))||V.enumerable});return t},m$1=(t,r,$)=>(y(t,r,"default"),$&&y($,r,"default")),f=(t,r,$)=>(_(t,typeof r!="symbol"?r+"":r,$),$),c={};P(c,{Vue:()=>vue_runtime_esmBundler});m$1(c,vue_runtime_esmBundler);var g=class{static install(t,r){let{nameSpace:$=this._nameSpace,memory:V}=r;return V&&this.clearAll($,V),new g(t,r)}static clearAll(t,r){Object.keys(r).forEach($=>{let V=t+$;Object.prototype.hasOwnProperty.call(window.localStorage,V)&&window.localStorage.removeItem(V)})}static get(t){return JSON.parse(window.localStorage.getItem(t))}static set(t,r){r=typeof r=="object"?JSON.stringify(r):r,window.localStorage.setItem(t,r)}static getData(t,r){if(Object.prototype.hasOwnProperty.call(window.localStorage,this._getStaticKey(r,t)))return JSON.parse(window.localStorage.getItem(this._getStaticKey(r,t)))}constructor(t,r){let $=g,{version:V=3,nameSpace:oe=$._nameSpace,memory:ie}=r,le=pe=>oe+pe,ue=V===3?(0,c.reactive)(ie):ie;Object.keys(ue).length===0&&console.warn("key cannot be empty"),Object.keys(ue).forEach(pe=>{let he=ue[pe];$.set(le(pe),he),Reflect.defineProperty(ue,pe,{get:()=>$.get(le(pe)),set:_e=>$.set(le(pe),_e),configurable:!0}),V===2&&t.util.defineReactive(ue,pe,ue[pe])});let de=V===3?t.config.globalProperties:t.prototype;Reflect.defineProperty(de,"$storage",{get:()=>ue})}},n=g;f(n,"_nameSpace","rs-"),f(n,"_getStaticKey",(t,r)=>`${t??g._nameSpace}${r}`);const injectResponsiveStorage=(t,r)=>{const $=responsiveStorageNameSpace(),V=Object.assign({locale:n.getData("locale",$)??{locale:r.Locale??"zh"},layout:n.getData("layout",$)??{layout:r.Layout??"vertical",theme:r.Theme??"default",darkMode:r.DarkMode??!1,sidebarStatus:r.SidebarStatus??!0,epThemeColor:r.EpThemeColor??"#409EFF"},configure:n.getData("configure",$)??{grey:r.Grey??!1,weak:r.Weak??!1,hideTabs:r.HideTabs??!1,hideFooter:r.HideFooter??!1,showLogo:r.ShowLogo??!0,showModel:r.ShowModel??"smart",multiTagsCache:r.MultiTagsCache??!1}},r.MultiTagsCache?{tags:n.getData("tags",$)??routerArrays}:{});t.use(n,{nameSpace:$,memory:V})},we=Object.prototype.hasOwnProperty,W=(t,r)=>we.call(t,r),q=t=>t!==null&&typeof t=="object",Oe=((t,r)=>{if(!q(t)||q($=t)&&$.__epPropKey)return t;var $;const{values:V,required:oe,default:ie,type:le,validator:ue}=t,de=V||ue?he=>{let _e=!1,$e=[];if(V&&($e=Array.from(V),W(t,"default")&&$e.push(ie),_e||(_e=$e.includes(he))),ue&&(_e||(_e=ue(he))),!_e&&$e.length>0){const Ie=[...new Set($e)].map(Ve=>JSON.stringify(Ve)).join(", ");warn$2(`Invalid prop: validation failed${r?` for prop "${r}"`:""}. Expected one of [${Ie}], got value ${JSON.stringify(he)}.`)}return _e}:void 0,pe={type:le,required:!!oe,validator:de,__epPropKey:!0};return W(t,"default")&&(pe.default=ie),pe})({type:String,values:["","default","small","large"],required:!1});var Se={data:{type:Array,default:()=>[]},size:Oe,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 xe={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},adaptive:{type:Boolean,default:!1},adaptiveConfig:{type:Object,default:{offsetBottom:96,fixHeader:!0,timeout:60,zIndex:100}},...Se},J=defineComponent({name:"Renderer",props:{render:{type:Function},params:{type:Object}},setup:t=>()=>createVNode(Fragment,null,[t.render(t.params)])});var ee=Object.defineProperty,je=Object.getOwnPropertyDescriptor,Ce=Object.getOwnPropertyNames,Be=Object.prototype.hasOwnProperty,U=(t,r,$,V)=>{if(r&&typeof r=="object"||typeof r=="function")for(let oe of Ce(r))!Be.call(t,oe)&&oe!==$&&ee(t,oe,{get:()=>r[oe],enumerable:!(V=je(r,oe))||V.enumerable});return t},ze=Object.prototype.toString;function G(t){return typeof t=="function"}function Ne(t){return function(r,$){return ze.call(r)===`[object ${$}]`}(t,"Boolean")}var h={};((t,r)=>{for(var $ in r)ee(t,$,{get:r[$],enumerable:!0})})(h,{Vue:()=>vue_runtime_esmBundler}),U(h,vue_runtime_esmBundler,"default");var Te=()=>{let t,r=(0,h.shallowRef)(!1),$=()=>{r.value=document.documentElement.classList.contains("dark")};return function(V){(0,h.getCurrentInstance)()&&(0,h.onUnmounted)(V)}(()=>{t.takeRecords(),t.disconnect()}),(0,h.onBeforeMount)(()=>{$(),t=new MutationObserver($),t.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]})}),{isDark:r}};const D=defineComponent({name:"PureTable",props:xe,emits:["page-size-change","page-current-change"],setup(t,{slots:r,attrs:$,emit:V,expose:oe}){var ie;const{key:le,columns:ue,loading:de,adaptive:pe,pagination:he,alignWhole:_e,headerAlign:$e,loadingConfig:Ie,adaptiveConfig:Ve,rowHoverBgColor:Fe,showOverflowTooltip:Ue}=toRefs(t),{isDark:qe}=Te(),Et=getCurrentInstance();let Lt=unref(he)&&unref(he).currentPage&&unref(he).pageSize,hn=computed(()=>{if(!unref(Ie))return;let{text:Mn,spinner:Vn,svg:Bn,viewBox:Dn}=unref(Ie);return{"element-loading-text":Mn,"element-loading-spinner":Vn,"element-loading-svg":Bn,"element-loading-svg-view-box":Dn}});const Cn=computed(()=>{var Mn,Vn;if(unref(de))return{"element-loading-background":(Mn=unref(Ie))!=null&&Mn.background?(Vn=unref(Ie))==null?void 0:Vn.background:qe.value?"rgba(0, 0, 0, 0.45)":"rgba(255, 255, 255, 0.45)"}}),bn=computed(()=>{var Mn;return Object.assign({width:"100%",margin:"16px 0",display:"flex",justifyContent:unref(he).align==="left"?"flex-start":unref(he).align==="center"?"center":"flex-end"},(Mn=unref(he).style)!=null?Mn:{})}),Sn=(Mn,Vn)=>{const{cellRenderer:Bn,slot:Dn,headerRenderer:Ln,headerSlot:Pn,hide:Fn,children:Un,prop:Wn,...Zn}=Mn;if(G(Fn)&&Fn($))return Fn($);if(Ne(Fn)&&Fn)return Fn;const or={default:Gn=>{var Yn;return Bn?createVNode(J,{render:Bn,params:Object.assign(Gn,{index:Gn.$index,props:t,attrs:$})},null):Dn?(Yn=r==null?void 0:r[Dn])==null?void 0:Yn.call(r,Object.assign(Gn,{index:Gn.$index,props:t,attrs:$})):void 0}};let br=Ln?{header:Gn=>createVNode(J,{render:Ln,params:Object.assign(Gn,{index:Gn.$index,props:t,attrs:$})},null),...or}:r!=null&&r[Pn]?{header:Gn=>{var Yn;return(Yn=r==null?void 0:r[Pn])==null?void 0:Yn.call(r,Object.assign(Gn,{index:Gn.$index,props:t,attrs:$}))},...or}:or;return(Un==null?void 0:Un.length)>0&&(br=Un.map(Sn)),createVNode(ElTableColumn,mergeProps({key:Vn},Zn,{prop:G(Wn)&&Wn(Vn)?Wn(Vn):Wn,align:Mn!=null&&Mn.align?Mn.align:unref(_e),headerAlign:Mn!=null&&Mn.headerAlign?Mn.headerAlign:unref($e),showOverflowTooltip:Mn!=null&&Mn.showOverflowTooltip?Mn.showOverflowTooltip:unref(Ue)}),typeof(Qn=br)=="function"||Object.prototype.toString.call(Qn)==="[object Object]"&&!isVNode$1(Qn)?br:{default:()=>[br]});var Qn},En=()=>{var Mn;return(Mn=Et==null?void 0:Et.proxy)==null?void 0:Mn.$refs[`TableRef${unref(le)}`]},wn=()=>En().$refs,$n=async()=>{var Mn;await nextTick();const Vn=wn().tableWrapper,Bn=(Mn=unref(Ve).offsetBottom)!=null?Mn:96;Vn.style.height=window.innerHeight-Vn.getBoundingClientRect().top-Bn+"px"},Tn=((Mn,Vn=200,Bn=!1)=>{let Dn,Ln,Pn=Vn;return function(){Dn&&clearTimeout(Dn),Bn?(Dn||Mn.call(Ln,...arguments),Dn=setTimeout(()=>Dn=null,Pn)):Dn=setTimeout(()=>Mn.call(Ln,...arguments),Pn)}})($n,(ie=unref(Ve).timeout)!=null?ie:60),xn=async(Mn=100)=>{await nextTick();const Vn=wn().tableHeaderRef.$el.style;Vn.position="sticky",Vn.top=0,Vn.zIndex=Mn};onMounted(()=>{nextTick(()=>{var Mn;if(unref(Fe)&&wn().tableWrapper.style.setProperty("--el-table-row-hover-bg-color",unref(Fe),"important"),unref(pe)){if($n(),window.addEventListener("resize",Tn),Reflect.has(unref(Ve),"fixHeader")&&!unref(Ve).fixHeader)return;xn((Mn=unref(Ve).zIndex)!=null?Mn:100)}})}),onBeforeUnmount(()=>{unref(pe)&&window.removeEventListener("resize",Tn)}),oe({getTableRef:En,getTableDoms:wn,setAdaptive:$n,setHeaderSticky:xn});let An=()=>{var Mn,Vn;return createVNode(Fragment,null,[createVNode(ElTable,mergeProps(t,$,{ref:`TableRef${unref(le)}`}),{default:()=>unref(ue).map(Sn),append:()=>r.append&&r.append(),empty:()=>r.empty&&r.empty()}),Lt?createVNode(ElPagination,mergeProps($,{class:"pure-pagination",style:unref(bn)},unref(he),{small:t!=null&&t.paginationSmall?t==null?void 0:t.paginationSmall:!!unref(he).small&&unref(he).small,layout:(Mn=unref(he).layout)!=null?Mn:"total, sizes, prev, pager, next, jumper",pageSizes:(Vn=unref(he).pageSizes)!=null?Vn:[5,10,15,20],onSizeChange:Bn=>(Dn=>{unref(he).pageSize=Dn,V("page-size-change",Dn)})(Bn),onCurrentChange:Bn=>(Dn=>{unref(he).currentPage=Dn,V("page-current-change",Dn)})(Bn)}),null):null])};return()=>withDirectives(createVNode("div",mergeProps({class:"pure-table",style:"width:100%"},unref(Cn),unref(hn)),[An()]),[[resolveDirective("loading"),unref(de)]])}}),Pe=Object.assign(D,{install:function(t){t.component(D.name,D)}}),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:t=>()=>createVNode(Fragment,null,[t.render(t.params)])}),m=defineComponent({name:"PureDescriptions",props:L,setup(t,{slots:r,attrs:$}){const{data:V,columns:oe,align:ie,labelAlign:le,loading:ue}=toRefs(t),de={title:()=>(r==null?void 0:r.title)&&r.title({props:t,attrs:$})},pe={extra:()=>(r==null?void 0:r.extra)&&r.extra({props:t,attrs:$})},he=r!=null&&r.title&&!(r!=null&&r.extra)?de:r!=null&&r.extra&&!(r!=null&&r.title)?pe:r!=null&&r.title&&(r!=null&&r.extra)?Object.assign(de,pe):null;return()=>{var _e;return withDirectives(createVNode(ElDescriptions,mergeProps(t,$,{"element-loading-text":(_e=unref(ue).text)!=null?_e:"Loading...","element-loading-svg":unref(ue).svg,"element-loading-spinner":unref(ue).spinner,"element-loading-svg-view-box":unref(ue).svgViewBox,"element-loading-background":unref(ue).background}),{default:()=>[unref(oe).map(($e,Ie)=>{let Ve=unref(V).map(Lt=>Lt[$e==null?void 0:$e.prop]);const Fe={default:()=>{var Lt;return $e!=null&&$e.cellRenderer?createVNode(j,{render:$e.cellRenderer,params:{props:t,attrs:$,index:Ie,value:Ve[0]}},null):$e!=null&&$e.slot?(Lt=r==null?void 0:r[$e.slot])==null?void 0:Lt.call(r,{props:t,attrs:$,index:Ie,value:Ve[0]}):createVNode(Fragment,null,$e!=null&&$e.value?[unref($e.value)]:[Ve])}},Ue=$e!=null&&$e.labelRenderer?{label:()=>createVNode(j,{render:$e.labelRenderer,params:{props:t,attrs:$,index:Ie,value:Ve[0]}},null),...Fe}:Fe;return qe=$e==null?void 0:$e.hide,typeof qe=="function"&&($e!=null&&$e.hide($))?$e==null?void 0:$e.hide($):createVNode(ElDescriptionsItem,mergeProps($e,{key:Ie,align:$e.align?$e.align:unref(ie),labelAlign:$e.labelAlign?$e.labelAlign:unref(le)}),typeof(Et=Ue)=="function"||Object.prototype.toString.call(Et)==="[object Object]"&&!isVNode$1(Et)?Ue:{default:()=>[Ue]});var qe,Et})],...he}),[[resolveDirective("loading"),unref(ue).load]])}}}),I=Object.assign(m,{install:function(t){t.component(m.name,m)}}),reset="",index$1="",tailwind="",index="";window._iconfont_svg_string_2208059='',function(t){var $=($=document.getElementsByTagName("script"))[$.length-1],r=$.getAttribute("data-injectcss"),$=$.getAttribute("data-disable-injectsvg");if(!$){var V,oe,ie,le,ue,de=function(_e,$e){$e.parentNode.insertBefore(_e,$e)};if(r&&!t.__iconfont__svg__cssinject__){t.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(_e){console&&console.log(_e)}}V=function(){var _e,$e=document.createElement("div");$e.innerHTML=t._iconfont_svg_string_2208059,($e=$e.getElementsByTagName("svg")[0])&&($e.setAttribute("aria-hidden","true"),$e.style.position="absolute",$e.style.width=0,$e.style.height=0,$e.style.overflow="hidden",$e=$e,(_e=document.body).firstChild?de($e,_e.firstChild):_e.appendChild($e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(V,0):(oe=function(){document.removeEventListener("DOMContentLoaded",oe,!1),V()},document.addEventListener("DOMContentLoaded",oe,!1)):document.attachEvent&&(ie=V,le=t.document,ue=!1,he(),le.onreadystatechange=function(){le.readyState=="complete"&&(le.onreadystatechange=null,pe())})}function pe(){ue||(ue=!0,ie())}function he(){try{le.documentElement.doScroll("left")}catch{return void setTimeout(he,50)}pe()}}(window);const iconfont="",auth$1={mounted(t,r){var V;const{value:$}=r;if($)!hasAuth($)&&((V=t.parentNode)==null||V.removeChild(t));else throw new Error(`[Directive: auth]: need auths! Like v-auth="['btn.add','btn.edit']"`)}},message=(t,r)=>{if(r){const{icon:$,type:V="info",dangerouslyUseHTMLString:oe=!1,customClass:ie="antd",duration:le=2e3,showClose:ue=!1,center:de=!1,offset:pe=20,appendTo:he=document.body,grouping:_e=!1,onClose:$e}=r;return ElMessage({message:t,type:V,icon:$,dangerouslyUseHTMLString:oe,duration:le,showClose:ue,center:de,offset:pe,appendTo:he,grouping:_e,customClass:ie==="antd"?"pure-message":"",onClose:()=>Y($e)?$e():null})}else return ElMessage({message:t,customClass:"pure-message"})},closeAllMessage=()=>ElMessage.closeAll(),copy={mounted(t,r){const{value:$}=r;if($){t.copyValue=$;const V=r.arg??"dblclick";useEventListener(t,V,()=>{se(t.copyValue)?message("复制成功",{type:"success"}):message("复制失败",{type:"error"})})}else throw new Error('[Directive: copy]: need value! Like v-copy="modelValue"')},updated(t,r){t.copyValue=r.value}},longpress={mounted(t,r){var V;const $=r.value;if($&&Y($)){let oe=null,ie=null,le=500,ue=null;const de=((V=r==null?void 0:r.arg)==null?void 0:V.includes(":"))??!1;de?(le=Number(Vt(r.arg,":")),ue=Number(Zt(r.arg,":"))):r.arg&&(le=Number(r.arg));const pe=()=>{oe&&(clearTimeout(oe),oe=null),ie&&(clearInterval(ie),ie=null)},he=$e=>{$e.preventDefault(),ie===null&&(ie=setInterval(()=>$(),ue))};useEventListener(t,"pointerdown",$e=>{pe(),$e.preventDefault(),oe===null&&(oe=setTimeout(de?()=>{$(),he($e)}:()=>$(),le))}),useEventListener(t,"pointerup",pe),useEventListener(t,"pointerleave",pe)}else throw new Error('[Directive: longpress]: need callback and callback must be a function! Like v-longpress="callback"')}},optimize={mounted(t,r){const{value:$}=r,V=r.arg??"debounce",oe=["debounce","throttle"].find(ie=>ie===V);if(oe)if($&&$.event&&Y($.fn)){let ie=$==null?void 0:$.params;if(ie)if(I$1(ie)||D$1(ie))ie=D$1(ie)?Array.of(ie):ie;else throw new Error("[Directive: optimize]: `params` must be an array or object");useEventListener(t,$.event,oe==="debounce"?Tt(ie?()=>$.fn(...ie):$.fn,($==null?void 0:$.timeout)??200,($==null?void 0:$.immediate)??!1):kn(ie?()=>$.fn(...ie):$.fn,($==null?void 0:$.timeout)??1e3))}else throw new Error("[Directive: optimize]: `event` and `fn` are required, and `fn` must be a function");else throw new Error("[Directive: optimize]: only `debounce` and `throttle` are supported")}},directives=Object.freeze(Object.defineProperty({__proto__:null,auth:auth$1,copy,longpress,optimize},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(t,r){const $={...t};for(const V in r){const oe=r[V],ie=typeof oe;V in defaultIconSizeCustomisations$1?(oe===null||oe&&(ie==="string"||ie==="number"))&&($[V]=oe):ie===typeof $[V]&&($[V]=V==="rotate"?oe%4:oe)}return $}const separator$1=/[\s,]+/;function flipFromString$1(t,r){r.split(separator$1).forEach($=>{switch($.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function rotateFromString$1(t,r=0){const $=t.replace(/^-?[0-9.]*/,"");function V(oe){for(;oe<0;)oe+=4;return oe%4}if($===""){const oe=parseInt(t);return isNaN(oe)?0:V(oe)}else if($!==t){let oe=0;switch($){case"%":oe=25;break;case"deg":oe=90}if(oe){let ie=parseFloat(t.slice(0,t.length-$.length));return isNaN(ie)?0:(ie=ie/oe,ie%1===0?V(ie):0)}}return r}const unitsSplit$1=/(-?[0-9.]*[0-9]+[0-9.]*)/g,unitsTest$1=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function calculateSize$1(t,r,$){if(r===1)return t;if($=$||100,typeof t=="number")return Math.ceil(t*r*$)/$;if(typeof t!="string")return t;const V=t.split(unitsSplit$1);if(V===null||!V.length)return t;const oe=[];let ie=V.shift(),le=unitsTest$1.test(ie);for(;;){if(le){const ue=parseFloat(ie);isNaN(ue)?oe.push(ie):oe.push(Math.ceil(ue*r*$)/$)}else oe.push(ie);if(ie=V.shift(),ie===void 0)return oe.join("");le=!le}}const isUnsetKeyword$1=t=>t==="unset"||t==="undefined"||t==="none";function iconToSVG$1(t,r){const $={...defaultIconProps$1,...t},V={...defaultIconCustomisations$1,...r},oe={left:$.left,top:$.top,width:$.width,height:$.height};let ie=$.body;[$,V].forEach(Ve=>{const Fe=[],Ue=Ve.hFlip,qe=Ve.vFlip;let Et=Ve.rotate;Ue?qe?Et+=2:(Fe.push("translate("+(oe.width+oe.left).toString()+" "+(0-oe.top).toString()+")"),Fe.push("scale(-1 1)"),oe.top=oe.left=0):qe&&(Fe.push("translate("+(0-oe.left).toString()+" "+(oe.height+oe.top).toString()+")"),Fe.push("scale(1 -1)"),oe.top=oe.left=0);let Lt;switch(Et<0&&(Et-=Math.floor(Et/4)*4),Et=Et%4,Et){case 1:Lt=oe.height/2+oe.top,Fe.unshift("rotate(90 "+Lt.toString()+" "+Lt.toString()+")");break;case 2:Fe.unshift("rotate(180 "+(oe.width/2+oe.left).toString()+" "+(oe.height/2+oe.top).toString()+")");break;case 3:Lt=oe.width/2+oe.left,Fe.unshift("rotate(-90 "+Lt.toString()+" "+Lt.toString()+")");break}Et%2===1&&(oe.left!==oe.top&&(Lt=oe.left,oe.left=oe.top,oe.top=Lt),oe.width!==oe.height&&(Lt=oe.width,oe.width=oe.height,oe.height=Lt)),Fe.length&&(ie=''+ie+"")});const le=V.width,ue=V.height,de=oe.width,pe=oe.height;let he,_e;le===null?(_e=ue===null?"1em":ue==="auto"?pe:ue,he=calculateSize$1(_e,de/pe)):(he=le==="auto"?de:le,_e=ue===null?calculateSize$1(he,pe/de):ue==="auto"?pe:ue);const $e={},Ie=(Ve,Fe)=>{isUnsetKeyword$1(Fe)||($e[Ve]=Fe.toString())};return Ie("width",he),Ie("height",_e),$e.viewBox=oe.left.toString()+" "+oe.top.toString()+" "+de.toString()+" "+pe.toString(),{attributes:$e,body:ie}}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(t,r=randomPrefix$1){const $=[];let V;for(;V=regex$1.exec(t);)$.push(V[1]);if(!$.length)return t;const oe="suffix"+(Math.random()*16777216|Date.now()).toString(16);return $.forEach(ie=>{const le=typeof r=="function"?r(ie):r+(counter$1++).toString(),ue=ie.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+ue+')([")]|\\.[a-z])',"g"),"$1"+le+oe+"$3")}),t=t.replace(new RegExp(oe,"g"),""),t}function iconToHTML$1(t,r){let $=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const V in r)$+=" "+V+'="'+r[V]+'"';return'"+t+""}function encodeSVGforURL$1(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData$1(t){return"data:image/svg+xml,"+encodeSVGforURL$1(t)}function svgToURL$1(t){return'url("'+svgToData$1(t)+'")'}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 t in propsToAddTo$1){const r=propsToAddTo$1[t];for(const $ in propsToAdd$1)r[t+$]=propsToAdd$1[$]}const customisationAliases$1={};["horizontal","vertical"].forEach(t=>{const r=t.slice(0,1)+"Flip";customisationAliases$1[t+"-flip"]=r,customisationAliases$1[t.slice(0,1)+"-flip"]=r,customisationAliases$1[t+"Flip"]=r});function fixSize$1(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const render$1=(t,r)=>{const $=mergeCustomisations$1(defaultExtendedIconCustomisations$1,r),V={...svgDefaults$1},oe=r.mode||"svg",ie={},le=r.style,ue=typeof le=="object"&&!(le instanceof Array)?le:{};for(let Fe in r){const Ue=r[Fe];if(Ue!==void 0)switch(Fe){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":$[Fe]=Ue===!0||Ue==="true"||Ue===1;break;case"flip":typeof Ue=="string"&&flipFromString$1($,Ue);break;case"color":ie.color=Ue;break;case"rotate":typeof Ue=="string"?$[Fe]=rotateFromString$1(Ue):typeof Ue=="number"&&($[Fe]=Ue);break;case"ariaHidden":case"aria-hidden":Ue!==!0&&Ue!=="true"&&delete V["aria-hidden"];break;default:{const qe=customisationAliases$1[Fe];qe?(Ue===!0||Ue==="true"||Ue===1)&&($[qe]=!0):defaultExtendedIconCustomisations$1[Fe]===void 0&&(V[Fe]=Ue)}}}const de=iconToSVG$1(t,$),pe=de.attributes;if($.inline&&(ie.verticalAlign="-0.125em"),oe==="svg"){V.style={...ie,...ue},Object.assign(V,pe);let Fe=0,Ue=r.id;return typeof Ue=="string"&&(Ue=Ue.replace(/-/g,"_")),V.innerHTML=replaceIDs$1(de.body,Ue?()=>Ue+"ID"+Fe++:"iconifyVue"),h$2("svg",V)}const{body:he,width:_e,height:$e}=t,Ie=oe==="mask"||(oe==="bg"?!1:he.indexOf("currentColor")!==-1),Ve=iconToHTML$1(he,{...pe,width:_e+"",height:$e+""});return V.style={...ie,"--svg":svgToURL$1(Ve),width:fixSize$1(pe.width),height:fixSize$1(pe.height),...commonProps$1,...Ie?monotoneProps$1:coloredProps$1,...ue},h$2("span",V)},storage$1=Object.create(null);function addIcon$1(t,r){storage$1[t]=r}const Icon$1=defineComponent({inheritAttrs:!1,render(){const t=this.$attrs,r=t.icon,$=typeof r=="string"?storage$1[r]:typeof r=="object"?r:null;return $===null||typeof $!="object"||typeof $.body!="string"?this.$slots.default?this.$slots.default():null:render$1({...defaultIconProps$1,...$},t)}}),iconifyIconOffline=defineComponent({name:"IconifyIconOffline",components:{IconifyIcon:Icon$1},props:{icon:{default:null}},render(){typeof this.icon=="object"&&addIcon$1(this.icon,this.icon);const t=this.$attrs;return h$2(Icon$1,{icon:this.icon,style:t!=null&&t.style?Object.assign(t.style,{outline:"none"}):{outline:"none"},...t},{default:()=>[]})}}),matchIconName=/^[a-z0-9]+(-[a-z0-9]+)*$/,stringToIcon=(t,r,$,V="")=>{const oe=t.split(":");if(t.slice(0,1)==="@"){if(oe.length<2||oe.length>3)return null;V=oe.shift().slice(1)}if(oe.length>3||!oe.length)return null;if(oe.length>1){const ue=oe.pop(),de=oe.pop(),pe={provider:oe.length>0?oe[0]:V,prefix:de,name:ue};return r&&!validateIconName(pe)?null:pe}const ie=oe[0],le=ie.split("-");if(le.length>1){const ue={provider:V,prefix:le.shift(),name:le.join("-")};return r&&!validateIconName(ue)?null:ue}if($&&V===""){const ue={provider:V,prefix:"",name:ie};return r&&!validateIconName(ue,$)?null:ue}return null},validateIconName=(t,r)=>t?!!((t.provider===""||t.provider.match(matchIconName))&&(r&&t.prefix===""||t.prefix.match(matchIconName))&&t.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(t,r){const $={};!t.hFlip!=!r.hFlip&&($.hFlip=!0),!t.vFlip!=!r.vFlip&&($.vFlip=!0);const V=((t.rotate||0)+(r.rotate||0))%4;return V&&($.rotate=V),$}function mergeIconData(t,r){const $=mergeIconTransformations(t,r);for(const V in defaultExtendedIconProps)V in defaultIconTransformations?V in t&&!(V in $)&&($[V]=defaultIconTransformations[V]):V in r?$[V]=r[V]:V in t&&($[V]=t[V]);return $}function getIconsTree(t,r){const $=t.icons,V=t.aliases||Object.create(null),oe=Object.create(null);function ie(le){if($[le])return oe[le]=[];if(!(le in oe)){oe[le]=null;const ue=V[le]&&V[le].parent,de=ue&&ie(ue);de&&(oe[le]=[ue].concat(de))}return oe[le]}return(r||Object.keys($).concat(Object.keys(V))).forEach(ie),oe}function internalGetIconData(t,r,$){const V=t.icons,oe=t.aliases||Object.create(null);let ie={};function le(ue){ie=mergeIconData(V[ue]||oe[ue],ie)}return le(r),$.forEach(le),mergeIconData(t,ie)}function parseIconSet(t,r){const $=[];if(typeof t!="object"||typeof t.icons!="object")return $;t.not_found instanceof Array&&t.not_found.forEach(oe=>{r(oe,null),$.push(oe)});const V=getIconsTree(t);for(const oe in V){const ie=V[oe];ie&&(r(oe,internalGetIconData(t,oe,ie)),$.push(oe))}return $}const optionalPropertyDefaults={provider:"",aliases:{},not_found:{},...defaultIconDimensions};function checkOptionalProps(t,r){for(const $ in r)if($ in t&&typeof t[$]!=typeof r[$])return!1;return!0}function quicklyValidateIconSet(t){if(typeof t!="object"||t===null)return null;const r=t;if(typeof r.prefix!="string"||!t.icons||typeof t.icons!="object"||!checkOptionalProps(t,optionalPropertyDefaults))return null;const $=r.icons;for(const oe in $){const ie=$[oe];if(!oe.match(matchIconName)||typeof ie.body!="string"||!checkOptionalProps(ie,defaultExtendedIconProps))return null}const V=r.aliases||Object.create(null);for(const oe in V){const ie=V[oe],le=ie.parent;if(!oe.match(matchIconName)||typeof le!="string"||!$[le]&&!V[le]||!checkOptionalProps(ie,defaultExtendedIconProps))return null}return r}const dataStorage=Object.create(null);function newStorage(t,r){return{provider:t,prefix:r,icons:Object.create(null),missing:new Set}}function getStorage(t,r){const $=dataStorage[t]||(dataStorage[t]=Object.create(null));return $[r]||($[r]=newStorage(t,r))}function addIconSet(t,r){return quicklyValidateIconSet(r)?parseIconSet(r,($,V)=>{V?t.icons[$]=V:t.missing.add($)}):[]}function addIconToStorage(t,r,$){try{if(typeof $.body=="string")return t.icons[r]={...$},!0}catch{}return!1}let simpleNames=!1;function allowSimpleNames(t){return typeof t=="boolean"&&(simpleNames=t),simpleNames}function getIconData(t){const r=typeof t=="string"?stringToIcon(t,!0,simpleNames):t;if(r){const $=getStorage(r.provider,r.prefix),V=r.name;return $.icons[V]||($.missing.has(V)?null:void 0)}}function addIcon(t,r){const $=stringToIcon(t,!0,simpleNames);if(!$)return!1;const V=getStorage($.provider,$.prefix);return addIconToStorage(V,$.name,r)}function addCollection(t,r){if(typeof t!="object")return!1;if(typeof r!="string"&&(r=t.provider||""),simpleNames&&!r&&!t.prefix){let oe=!1;return quicklyValidateIconSet(t)&&(t.prefix="",parseIconSet(t,(ie,le)=>{le&&addIcon(ie,le)&&(oe=!0)})),oe}const $=t.prefix;if(!validateIconName({provider:r,prefix:$,name:"a"}))return!1;const V=getStorage(r,$);return!!addIconSet(V,t)}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(t,r,$){if(r===1)return t;if($=$||100,typeof t=="number")return Math.ceil(t*r*$)/$;if(typeof t!="string")return t;const V=t.split(unitsSplit);if(V===null||!V.length)return t;const oe=[];let ie=V.shift(),le=unitsTest.test(ie);for(;;){if(le){const ue=parseFloat(ie);isNaN(ue)?oe.push(ie):oe.push(Math.ceil(ue*r*$)/$)}else oe.push(ie);if(ie=V.shift(),ie===void 0)return oe.join("");le=!le}}const isUnsetKeyword=t=>t==="unset"||t==="undefined"||t==="none";function iconToSVG(t,r){const $={...defaultIconProps,...t},V={...defaultIconCustomisations,...r},oe={left:$.left,top:$.top,width:$.width,height:$.height};let ie=$.body;[$,V].forEach(Ve=>{const Fe=[],Ue=Ve.hFlip,qe=Ve.vFlip;let Et=Ve.rotate;Ue?qe?Et+=2:(Fe.push("translate("+(oe.width+oe.left).toString()+" "+(0-oe.top).toString()+")"),Fe.push("scale(-1 1)"),oe.top=oe.left=0):qe&&(Fe.push("translate("+(0-oe.left).toString()+" "+(oe.height+oe.top).toString()+")"),Fe.push("scale(1 -1)"),oe.top=oe.left=0);let Lt;switch(Et<0&&(Et-=Math.floor(Et/4)*4),Et=Et%4,Et){case 1:Lt=oe.height/2+oe.top,Fe.unshift("rotate(90 "+Lt.toString()+" "+Lt.toString()+")");break;case 2:Fe.unshift("rotate(180 "+(oe.width/2+oe.left).toString()+" "+(oe.height/2+oe.top).toString()+")");break;case 3:Lt=oe.width/2+oe.left,Fe.unshift("rotate(-90 "+Lt.toString()+" "+Lt.toString()+")");break}Et%2===1&&(oe.left!==oe.top&&(Lt=oe.left,oe.left=oe.top,oe.top=Lt),oe.width!==oe.height&&(Lt=oe.width,oe.width=oe.height,oe.height=Lt)),Fe.length&&(ie=''+ie+"")});const le=V.width,ue=V.height,de=oe.width,pe=oe.height;let he,_e;le===null?(_e=ue===null?"1em":ue==="auto"?pe:ue,he=calculateSize(_e,de/pe)):(he=le==="auto"?de:le,_e=ue===null?calculateSize(he,pe/de):ue==="auto"?pe:ue);const $e={},Ie=(Ve,Fe)=>{isUnsetKeyword(Fe)||($e[Ve]=Fe.toString())};return Ie("width",he),Ie("height",_e),$e.viewBox=oe.left.toString()+" "+oe.top.toString()+" "+de.toString()+" "+pe.toString(),{attributes:$e,body:ie}}const regex=/\sid="(\S+)"/g,randomPrefix="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let counter=0;function replaceIDs(t,r=randomPrefix){const $=[];let V;for(;V=regex.exec(t);)$.push(V[1]);if(!$.length)return t;const oe="suffix"+(Math.random()*16777216|Date.now()).toString(16);return $.forEach(ie=>{const le=typeof r=="function"?r(ie):r+(counter++).toString(),ue=ie.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+ue+')([")]|\\.[a-z])',"g"),"$1"+le+oe+"$3")}),t=t.replace(new RegExp(oe,"g"),""),t}const storage=Object.create(null);function setAPIModule(t,r){storage[t]=r}function getAPIModule(t){return storage[t]||storage[""]}function createAPIConfig(t){let r;if(typeof t.resources=="string")r=[t.resources];else if(r=t.resources,!(r instanceof Array)||!r.length)return null;return{resources:r,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.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(t,r){const $=createAPIConfig(r);return $===null?!1:(configStorage[t]=$,!0)}function getAPIConfig(t){return configStorage[t]}const detectFetch=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let fetchModule=detectFetch();function calculateMaxLength(t,r){const $=getAPIConfig(t);if(!$)return 0;let V;if(!$.maxURL)V=0;else{let oe=0;$.resources.forEach(le=>{oe=Math.max(oe,le.length)});const ie=r+".json?icons=";V=$.maxURL-oe-$.path.length-ie.length}return V}function shouldAbort(t){return t===404}const prepare=(t,r,$)=>{const V=[],oe=calculateMaxLength(t,r),ie="icons";let le={type:ie,provider:t,prefix:r,icons:[]},ue=0;return $.forEach((de,pe)=>{ue+=de.length+1,ue>=oe&&pe>0&&(V.push(le),le={type:ie,provider:t,prefix:r,icons:[]},ue=de.length),le.icons.push(de)}),V.push(le),V};function getPath(t){if(typeof t=="string"){const r=getAPIConfig(t);if(r)return r.path}return"/"}const send=(t,r,$)=>{if(!fetchModule){$("abort",424);return}let V=getPath(r.provider);switch(r.type){case"icons":{const ie=r.prefix,ue=r.icons.join(","),de=new URLSearchParams({icons:ue});V+=ie+".json?"+de.toString();break}case"custom":{const ie=r.uri;V+=ie.slice(0,1)==="/"?ie.slice(1):ie;break}default:$("abort",400);return}let oe=503;fetchModule(t+V).then(ie=>{const le=ie.status;if(le!==200){setTimeout(()=>{$(shouldAbort(le)?"abort":"next",le)});return}return oe=501,ie.json()}).then(ie=>{if(typeof ie!="object"||ie===null){setTimeout(()=>{ie===404?$("abort",ie):$("next",oe)});return}setTimeout(()=>{$("success",ie)})}).catch(()=>{$("next",oe)})},fetchAPIModule={prepare,send};function sortIcons(t){const r={loaded:[],missing:[],pending:[]},$=Object.create(null);t.sort((oe,ie)=>oe.provider!==ie.provider?oe.provider.localeCompare(ie.provider):oe.prefix!==ie.prefix?oe.prefix.localeCompare(ie.prefix):oe.name.localeCompare(ie.name));let V={provider:"",prefix:"",name:""};return t.forEach(oe=>{if(V.name===oe.name&&V.prefix===oe.prefix&&V.provider===oe.provider)return;V=oe;const ie=oe.provider,le=oe.prefix,ue=oe.name,de=$[ie]||($[ie]=Object.create(null)),pe=de[le]||(de[le]=getStorage(ie,le));let he;ue in pe.icons?he=r.loaded:le===""||pe.missing.has(ue)?he=r.missing:he=r.pending;const _e={provider:ie,prefix:le,name:ue};he.push(_e)}),r}function removeCallback(t,r){t.forEach($=>{const V=$.loaderCallbacks;V&&($.loaderCallbacks=V.filter(oe=>oe.id!==r))})}function updateCallbacks(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const r=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!r.length)return;let $=!1;const V=t.provider,oe=t.prefix;r.forEach(ie=>{const le=ie.icons,ue=le.pending.length;le.pending=le.pending.filter(de=>{if(de.prefix!==oe)return!0;const pe=de.name;if(t.icons[pe])le.loaded.push({provider:V,prefix:oe,name:pe});else if(t.missing.has(pe))le.missing.push({provider:V,prefix:oe,name:pe});else return $=!0,!0;return!1}),le.pending.length!==ue&&($||removeCallback([t],ie.id),ie.callback(le.loaded.slice(0),le.missing.slice(0),le.pending.slice(0),ie.abort))})}))}let idCounter=0;function storeCallback(t,r,$){const V=idCounter++,oe=removeCallback.bind(null,$,V);if(!r.pending.length)return oe;const ie={id:V,icons:r,callback:t,abort:oe};return $.forEach(le=>{(le.loaderCallbacks||(le.loaderCallbacks=[])).push(ie)}),oe}function listToIcons(t,r=!0,$=!1){const V=[];return t.forEach(oe=>{const ie=typeof oe=="string"?stringToIcon(oe,r,$):oe;ie&&V.push(ie)}),V}var defaultConfig={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function sendQuery(t,r,$,V){const oe=t.resources.length,ie=t.random?Math.floor(Math.random()*oe):t.index;let le;if(t.random){let bn=t.resources.slice(0);for(le=[];bn.length>1;){const Sn=Math.floor(Math.random()*bn.length);le.push(bn[Sn]),bn=bn.slice(0,Sn).concat(bn.slice(Sn+1))}le=le.concat(bn)}else le=t.resources.slice(ie).concat(t.resources.slice(0,ie));const ue=Date.now();let de="pending",pe=0,he,_e=null,$e=[],Ie=[];typeof V=="function"&&Ie.push(V);function Ve(){_e&&(clearTimeout(_e),_e=null)}function Fe(){de==="pending"&&(de="aborted"),Ve(),$e.forEach(bn=>{bn.status==="pending"&&(bn.status="aborted")}),$e=[]}function Ue(bn,Sn){Sn&&(Ie=[]),typeof bn=="function"&&Ie.push(bn)}function qe(){return{startTime:ue,payload:r,status:de,queriesSent:pe,queriesPending:$e.length,subscribe:Ue,abort:Fe}}function Et(){de="failed",Ie.forEach(bn=>{bn(void 0,he)})}function Lt(){$e.forEach(bn=>{bn.status==="pending"&&(bn.status="aborted")}),$e=[]}function hn(bn,Sn,En){const wn=Sn!=="success";switch($e=$e.filter($n=>$n!==bn),de){case"pending":break;case"failed":if(wn||!t.dataAfterTimeout)return;break;default:return}if(Sn==="abort"){he=En,Et();return}if(wn){he=En,$e.length||(le.length?Cn():Et());return}if(Ve(),Lt(),!t.random){const $n=t.resources.indexOf(bn.resource);$n!==-1&&$n!==t.index&&(t.index=$n)}de="completed",Ie.forEach($n=>{$n(En)})}function Cn(){if(de!=="pending")return;Ve();const bn=le.shift();if(bn===void 0){if($e.length){_e=setTimeout(()=>{Ve(),de==="pending"&&(Lt(),Et())},t.timeout);return}Et();return}const Sn={status:"pending",resource:bn,callback:(En,wn)=>{hn(Sn,En,wn)}};$e.push(Sn),pe++,_e=setTimeout(Cn,t.rotate),$(bn,r,Sn.callback)}return setTimeout(Cn),qe}function initRedundancy(t){const r={...defaultConfig,...t};let $=[];function V(){$=$.filter(ue=>ue().status==="pending")}function oe(ue,de,pe){const he=sendQuery(r,ue,de,(_e,$e)=>{V(),pe&&pe(_e,$e)});return $.push(he),he}function ie(ue){return $.find(de=>ue(de))||null}return{query:oe,find:ie,setIndex:ue=>{r.index=ue},getIndex:()=>r.index,cleanup:V}}function emptyCallback$1(){}const redundancyCache=Object.create(null);function getRedundancyCache(t){if(!redundancyCache[t]){const r=getAPIConfig(t);if(!r)return;const $=initRedundancy(r),V={config:r,redundancy:$};redundancyCache[t]=V}return redundancyCache[t]}function sendAPIQuery(t,r,$){let V,oe;if(typeof t=="string"){const ie=getAPIModule(t);if(!ie)return $(void 0,424),emptyCallback$1;oe=ie.send;const le=getRedundancyCache(t);le&&(V=le.redundancy)}else{const ie=createAPIConfig(t);if(ie){V=initRedundancy(ie);const le=t.resources?t.resources[0]:"",ue=getAPIModule(le);ue&&(oe=ue.send)}}return!V||!oe?($(void 0,424),emptyCallback$1):V.query(r,oe,$)().abort}const browserCacheVersion="iconify2",browserCachePrefix="iconify",browserCacheCountKey=browserCachePrefix+"-count",browserCacheVersionKey=browserCachePrefix+"-version",browserStorageHour=36e5,browserStorageCacheExpiration=168;function getStoredItem(t,r){try{return t.getItem(r)}catch{}}function setStoredItem(t,r,$){try{return t.setItem(r,$),!0}catch{}}function removeStoredItem(t,r){try{t.removeItem(r)}catch{}}function setBrowserStorageItemsCount(t,r){return setStoredItem(t,browserCacheCountKey,r.toString())}function getBrowserStorageItemsCount(t){return parseInt(getStoredItem(t,browserCacheCountKey))||0}const browserStorageConfig={local:!0,session:!0},browserStorageEmptyItems={local:new Set,session:new Set};let browserStorageStatus=!1;function setBrowserStorageStatus(t){browserStorageStatus=t}let _window=typeof window>"u"?{}:window;function getBrowserStorage(t){const r=t+"Storage";try{if(_window&&_window[r]&&typeof _window[r].length=="number")return _window[r]}catch{}browserStorageConfig[t]=!1}function iterateBrowserStorage(t,r){const $=getBrowserStorage(t);if(!$)return;const V=getStoredItem($,browserCacheVersionKey);if(V!==browserCacheVersion){if(V){const ue=getBrowserStorageItemsCount($);for(let de=0;de{const de=browserCachePrefix+ue.toString(),pe=getStoredItem($,de);if(typeof pe=="string"){try{const he=JSON.parse(pe);if(typeof he=="object"&&typeof he.cached=="number"&&he.cached>oe&&typeof he.provider=="string"&&typeof he.data=="object"&&typeof he.data.prefix=="string"&&r(he,ue))return!0}catch{}removeStoredItem($,de)}};let le=getBrowserStorageItemsCount($);for(let ue=le-1;ue>=0;ue--)ie(ue)||(ue===le-1?(le--,setBrowserStorageItemsCount($,le)):browserStorageEmptyItems[t].add(ue))}function initBrowserStorage(){if(!browserStorageStatus){setBrowserStorageStatus(!0);for(const t in browserStorageConfig)iterateBrowserStorage(t,r=>{const $=r.data,V=r.provider,oe=$.prefix,ie=getStorage(V,oe);if(!addIconSet(ie,$).length)return!1;const le=$.lastModified||-1;return ie.lastModifiedCached=ie.lastModifiedCached?Math.min(ie.lastModifiedCached,le):le,!0})}}function updateLastModified(t,r){const $=t.lastModifiedCached;if($&&$>=r)return $===r;if(t.lastModifiedCached=r,$)for(const V in browserStorageConfig)iterateBrowserStorage(V,oe=>{const ie=oe.data;return oe.provider!==t.provider||ie.prefix!==t.prefix||ie.lastModified===r});return!0}function storeInBrowserStorage(t,r){browserStorageStatus||initBrowserStorage();function $(V){let oe;if(!browserStorageConfig[V]||!(oe=getBrowserStorage(V)))return;const ie=browserStorageEmptyItems[V];let le;if(ie.size)ie.delete(le=Array.from(ie).shift());else if(le=getBrowserStorageItemsCount(oe),!setBrowserStorageItemsCount(oe,le+1))return;const ue={cached:Math.floor(Date.now()/browserStorageHour),provider:t.provider,data:r};return setStoredItem(oe,browserCachePrefix+le.toString(),JSON.stringify(ue))}r.lastModified&&!updateLastModified(t,r.lastModified)||Object.keys(r.icons).length&&(r.not_found&&(r=Object.assign({},r),delete r.not_found),$("local")||$("session"))}function emptyCallback(){}function loadedNewIcons(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,updateCallbacks(t)}))}function loadNewIcons(t,r){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(r).sort():t.iconsToLoad=r,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:$,prefix:V}=t,oe=t.iconsToLoad;delete t.iconsToLoad;let ie;if(!oe||!(ie=getAPIModule($)))return;ie.prepare($,V,oe).forEach(ue=>{sendAPIQuery($,ue,de=>{if(typeof de!="object")ue.icons.forEach(pe=>{t.missing.add(pe)});else try{const pe=addIconSet(t,de);if(!pe.length)return;const he=t.pendingIcons;he&&pe.forEach(_e=>{he.delete(_e)}),storeInBrowserStorage(t,de)}catch(pe){console.error(pe)}loadedNewIcons(t)})})}))}const loadIcons=(t,r)=>{const $=listToIcons(t,!0,allowSimpleNames()),V=sortIcons($);if(!V.pending.length){let de=!0;return r&&setTimeout(()=>{de&&r(V.loaded,V.missing,V.pending,emptyCallback)}),()=>{de=!1}}const oe=Object.create(null),ie=[];let le,ue;return V.pending.forEach(de=>{const{provider:pe,prefix:he}=de;if(he===ue&&pe===le)return;le=pe,ue=he,ie.push(getStorage(pe,he));const _e=oe[pe]||(oe[pe]=Object.create(null));_e[he]||(_e[he]=[])}),V.pending.forEach(de=>{const{provider:pe,prefix:he,name:_e}=de,$e=getStorage(pe,he),Ie=$e.pendingIcons||($e.pendingIcons=new Set);Ie.has(_e)||(Ie.add(_e),oe[pe][he].push(_e))}),ie.forEach(de=>{const{provider:pe,prefix:he}=de;oe[pe][he].length&&loadNewIcons(de,oe[pe][he])}),r?storeCallback(r,V,ie):emptyCallback};function mergeCustomisations(t,r){const $={...t};for(const V in r){const oe=r[V],ie=typeof oe;V in defaultIconSizeCustomisations?(oe===null||oe&&(ie==="string"||ie==="number"))&&($[V]=oe):ie===typeof $[V]&&($[V]=V==="rotate"?oe%4:oe)}return $}const separator=/[\s,]+/;function flipFromString(t,r){r.split(separator).forEach($=>{switch($.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function rotateFromString(t,r=0){const $=t.replace(/^-?[0-9.]*/,"");function V(oe){for(;oe<0;)oe+=4;return oe%4}if($===""){const oe=parseInt(t);return isNaN(oe)?0:V(oe)}else if($!==t){let oe=0;switch($){case"%":oe=25;break;case"deg":oe=90}if(oe){let ie=parseFloat(t.slice(0,t.length-$.length));return isNaN(ie)?0:(ie=ie/oe,ie%1===0?V(ie):0)}}return r}function iconToHTML(t,r){let $=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const V in r)$+=" "+V+'="'+r[V]+'"';return'"+t+""}function encodeSVGforURL(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(//g,"%3E").replace(/\s+/g," ")}function svgToData(t){return"data:image/svg+xml,"+encodeSVGforURL(t)}function svgToURL(t){return'url("'+svgToData(t)+'")'}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 t in propsToAddTo){const r=propsToAddTo[t];for(const $ in propsToAdd)r[t+$]=propsToAdd[$]}const customisationAliases={};["horizontal","vertical"].forEach(t=>{const r=t.slice(0,1)+"Flip";customisationAliases[t+"-flip"]=r,customisationAliases[t.slice(0,1)+"-flip"]=r,customisationAliases[t+"Flip"]=r});function fixSize(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const render=(t,r)=>{const $=mergeCustomisations(defaultExtendedIconCustomisations,r),V={...svgDefaults},oe=r.mode||"svg",ie={},le=r.style,ue=typeof le=="object"&&!(le instanceof Array)?le:{};for(let Fe in r){const Ue=r[Fe];if(Ue!==void 0)switch(Fe){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":$[Fe]=Ue===!0||Ue==="true"||Ue===1;break;case"flip":typeof Ue=="string"&&flipFromString($,Ue);break;case"color":ie.color=Ue;break;case"rotate":typeof Ue=="string"?$[Fe]=rotateFromString(Ue):typeof Ue=="number"&&($[Fe]=Ue);break;case"ariaHidden":case"aria-hidden":Ue!==!0&&Ue!=="true"&&delete V["aria-hidden"];break;default:{const qe=customisationAliases[Fe];qe?(Ue===!0||Ue==="true"||Ue===1)&&($[qe]=!0):defaultExtendedIconCustomisations[Fe]===void 0&&(V[Fe]=Ue)}}}const de=iconToSVG(t,$),pe=de.attributes;if($.inline&&(ie.verticalAlign="-0.125em"),oe==="svg"){V.style={...ie,...ue},Object.assign(V,pe);let Fe=0,Ue=r.id;return typeof Ue=="string"&&(Ue=Ue.replace(/-/g,"_")),V.innerHTML=replaceIDs(de.body,Ue?()=>Ue+"ID"+Fe++:"iconifyVue"),h$2("svg",V)}const{body:he,width:_e,height:$e}=t,Ie=oe==="mask"||(oe==="bg"?!1:he.indexOf("currentColor")!==-1),Ve=iconToHTML(he,{...pe,width:_e+"",height:$e+""});return V.style={...ie,"--svg":svgToURL(Ve),width:fixSize(pe.width),height:fixSize(pe.height),...commonProps,...Ie?monotoneProps:coloredProps,...ue},h$2("span",V)};allowSimpleNames(!0);setAPIModule("",fetchAPIModule);if(typeof document<"u"&&typeof window<"u"){initBrowserStorage();const t=window;if(t.IconifyPreload!==void 0){const r=t.IconifyPreload,$="Invalid IconifyPreload syntax.";typeof r=="object"&&r!==null&&(r instanceof Array?r:[r]).forEach(V=>{try{(typeof V!="object"||V===null||V instanceof Array||typeof V.icons!="object"||typeof V.prefix!="string"||!addCollection(V))&&console.error($)}catch{console.error($)}})}if(t.IconifyProviders!==void 0){const r=t.IconifyProviders;if(typeof r=="object"&&r!==null)for(let $ in r){const V="IconifyProviders["+$+"] is invalid.";try{const oe=r[$];if(typeof oe!="object"||!oe||oe.resources===void 0)continue;addAPIProvider($,oe)||console.error(V)}catch{console.error(V)}}}}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(t,r){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let $;if(typeof t!="string"||($=stringToIcon(t,!1,!0))===null)return this.abortLoading(),null;const V=getIconData($);if(!V)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",V!==null&&(this._loadingIcon={name:t,abort:loadIcons([$],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,r&&r(t));const oe=["iconify"];return $.prefix!==""&&oe.push("iconify--"+$.prefix),$.provider!==""&&oe.push("iconify--"+$.provider),{data:V,classes:oe}}},render(){this.counter;const t=this.$attrs,r=this.iconMounted?this.getIcon(t.icon,t.onLoad):null;if(!r)return render(emptyIcon,t);let $=t;return r.classes&&($={...t,class:(typeof t.class=="string"?t.class+" ":"")+r.classes.join(" ")}),render({...defaultIconProps,...r.data},$)}}),iconifyIconOnline=defineComponent({name:"IconifyIconOnline",components:{IconifyIcon:Icon},props:{icon:{type:String,default:""}},render(){const t=this.$attrs;return h$2(Icon,{icon:`${this.icon}`,style:t!=null&&t.style?Object.assign(t.style,{outline:"none"}):{outline:"none"},...t},{default:()=>[]})}}),IconJson={"ep:":["add-location","aim","alarm-clock","apple","arrow-down","arrow-down-bold","arrow-left","arrow-left-bold","arrow-right","arrow-right-bold","arrow-up","arrow-up-bold","avatar","back","baseball","basketball","bell","bell-filled","bicycle","bottom","bottom-left","bottom-right","bowl","box","briefcase","brush","brush-filled","burger","calendar","camera","camera-filled","caret-bottom","caret-left","caret-right","caret-top","cellphone","chat-dot-round","chat-dot-square","chat-line-round","chat-line-square","chat-round","chat-square","check","checked","cherry","chicken","chrome-filled","circle-check","circle-check-filled","circle-close","circle-close-filled","circle-plus","circle-plus-filled","clock","close","close-bold","cloudy","coffee","coffee-cup","coin","cold-drink","collection","collection-tag","comment","compass","connection","coordinate","copy-document","cpu","credit-card","crop","d-arrow-left","d-arrow-right","d-caret","data-analysis","data-board","data-line","delete","delete-filled","delete-location","dessert","discount","dish","dish-dot","document","document-add","document-checked","document-copy","document-delete","document-remove","download","drizzling","edit","edit-pen","eleme","eleme-filled","element-plus","expand","failed","female","files","film","filter","finished","first-aid-kit","flag","fold","folder","folder-add","folder-checked","folder-delete","folder-opened","folder-remove","food","football","fork-spoon","fries","full-screen","goblet","goblet-full","goblet-square","goblet-square-full","gold-medal","goods","goods-filled","grape","grid","guide","handbag","headset","help","help-filled","hide","histogram","home-filled","hot-water","house","ice-cream","ice-cream-round","ice-cream-square","ice-drink","ice-tea","info-filled","iphone","key","knife-fork","lightning","link","list","loading","location","location-filled","location-information","lock","lollipop","magic-stick","magnet","male","management","map-location","medal","memo","menu","message","message-box","mic","microphone","milk-tea","minus","money","monitor","moon","moon-night","more","more-filled","mostly-cloudy","mouse","mug","mute","mute-notification","no-smoking","notebook","notification","odometer","office-building","open","operation","opportunity","orange","paperclip","partly-cloudy","pear","phone","phone-filled","picture","picture-filled","picture-rounded","pie-chart","place","platform","plus","pointer","position","postcard","pouring","present","price-tag","printer","promotion","quartz-watch","question-filled","rank","reading","reading-lamp","refresh","refresh-left","refresh-right","refrigerator","remove","remove-filled","right","scale-to-original","school","scissor","search","select","sell","semi-select","service","set-up","setting","share","ship","shop","shopping-bag","shopping-cart","shopping-cart-full","shopping-trolley","smoking","soccer","sold-out","sort","sort-down","sort-up","stamp","star","star-filled","stopwatch","success-filled","sugar","suitcase","suitcase-line","sunny","sunrise","sunset","switch","switch-button","switch-filled","takeaway-box","ticket","tickets","timer","toilet-paper","tools","top","top-left","top-right","trend-charts","trophy","trophy-base","turn-off","umbrella","unlock","upload","upload-filled","user","user-filled","van","video-camera","video-camera-filled","video-pause","video-play","view","wallet","wallet-filled","warn-triangle-filled","warning","warning-filled","watch","watermelon","wind-power","zoom-in","zoom-out"],"ri:":["24-hours-fill","24-hours-line","4k-fill","4k-line","a-b","account-box-fill","account-box-line","account-circle-fill","account-circle-line","account-pin-box-fill","account-pin-box-line","account-pin-circle-fill","account-pin-circle-line","add-box-fill","add-box-line","add-circle-fill","add-circle-line","add-fill","add-line","admin-fill","admin-line","advertisement-fill","advertisement-line","ai-generate","airplay-fill","airplay-line","alarm-fill","alarm-line","alarm-warning-fill","alarm-warning-line","album-fill","album-line","alert-fill","alert-line","aliens-fill","aliens-line","align-bottom","align-center","align-justify","align-left","align-right","align-top","align-vertically","alipay-fill","alipay-line","amazon-fill","amazon-line","anchor-fill","anchor-line","ancient-gate-fill","ancient-gate-line","ancient-pavilion-fill","ancient-pavilion-line","android-fill","android-line","angularjs-fill","angularjs-line","anticlockwise-2-fill","anticlockwise-2-line","anticlockwise-fill","anticlockwise-line","app-store-fill","app-store-line","apple-fill","apple-line","apps-2-fill","apps-2-line","apps-fill","apps-line","archive-2-fill","archive-2-line","archive-drawer-fill","archive-drawer-line","archive-fill","archive-line","arrow-down-circle-fill","arrow-down-circle-line","arrow-down-double-fill","arrow-down-double-line","arrow-down-fill","arrow-down-line","arrow-down-s-fill","arrow-down-s-line","arrow-drop-down-fill","arrow-drop-down-line","arrow-drop-left-fill","arrow-drop-left-line","arrow-drop-right-fill","arrow-drop-right-line","arrow-drop-up-fill","arrow-drop-up-line","arrow-go-back-fill","arrow-go-back-line","arrow-go-forward-fill","arrow-go-forward-line","arrow-left-circle-fill","arrow-left-circle-line","arrow-left-double-fill","arrow-left-double-line","arrow-left-down-fill","arrow-left-down-line","arrow-left-fill","arrow-left-line","arrow-left-right-fill","arrow-left-right-line","arrow-left-s-fill","arrow-left-s-line","arrow-left-up-fill","arrow-left-up-line","arrow-right-circle-fill","arrow-right-circle-line","arrow-right-double-fill","arrow-right-double-line","arrow-right-down-fill","arrow-right-down-line","arrow-right-fill","arrow-right-line","arrow-right-s-fill","arrow-right-s-line","arrow-right-up-fill","arrow-right-up-line","arrow-turn-back-fill","arrow-turn-back-line","arrow-turn-forward-fill","arrow-turn-forward-line","arrow-up-circle-fill","arrow-up-circle-line","arrow-up-double-fill","arrow-up-double-line","arrow-up-down-fill","arrow-up-down-line","arrow-up-fill","arrow-up-line","arrow-up-s-fill","arrow-up-s-line","artboard-2-fill","artboard-2-line","artboard-fill","artboard-line","article-fill","article-line","aspect-ratio-fill","aspect-ratio-line","asterisk","at-fill","at-line","attachment-2","attachment-fill","attachment-line","auction-fill","auction-line","award-fill","award-line","baidu-fill","baidu-line","ball-pen-fill","ball-pen-line","bank-card-2-fill","bank-card-2-line","bank-card-fill","bank-card-line","bank-fill","bank-line","bar-chart-2-fill","bar-chart-2-line","bar-chart-box-fill","bar-chart-box-line","bar-chart-fill","bar-chart-grouped-fill","bar-chart-grouped-line","bar-chart-horizontal-fill","bar-chart-horizontal-line","bar-chart-line","barcode-box-fill","barcode-box-line","barcode-fill","barcode-line","bard-fill","bard-line","barricade-fill","barricade-line","base-station-fill","base-station-line","basketball-fill","basketball-line","battery-2-charge-fill","battery-2-charge-line","battery-2-fill","battery-2-line","battery-charge-fill","battery-charge-line","battery-fill","battery-line","battery-low-fill","battery-low-line","battery-saver-fill","battery-saver-line","battery-share-fill","battery-share-line","bear-smile-fill","bear-smile-line","beer-fill","beer-line","behance-fill","behance-line","bell-fill","bell-line","bike-fill","bike-line","bilibili-fill","bilibili-line","bill-fill","bill-line","billiards-fill","billiards-line","bit-coin-fill","bit-coin-line","blaze-fill","blaze-line","blender-fill","blender-line","bluetooth-connect-fill","bluetooth-connect-line","bluetooth-fill","bluetooth-line","blur-off-fill","blur-off-line","body-scan-fill","body-scan-line","bold","book-2-fill","book-2-line","book-3-fill","book-3-line","book-fill","book-line","book-mark-fill","book-mark-line","book-open-fill","book-open-line","book-read-fill","book-read-line","booklet-fill","booklet-line","bookmark-2-fill","bookmark-2-line","bookmark-3-fill","bookmark-3-line","bookmark-fill","bookmark-line","bootstrap-fill","bootstrap-line","box-1-fill","box-1-line","box-2-fill","box-2-line","box-3-fill","box-3-line","boxing-fill","boxing-line","braces-fill","braces-line","brackets-fill","brackets-line","brain-fill","brain-line","briefcase-2-fill","briefcase-2-line","briefcase-3-fill","briefcase-3-line","briefcase-4-fill","briefcase-4-line","briefcase-5-fill","briefcase-5-line","briefcase-fill","briefcase-line","bring-forward","bring-to-front","broadcast-fill","broadcast-line","brush-2-fill","brush-2-line","brush-3-fill","brush-3-line","brush-4-fill","brush-4-line","brush-fill","brush-line","bubble-chart-fill","bubble-chart-line","bug-2-fill","bug-2-line","bug-fill","bug-line","building-2-fill","building-2-line","building-3-fill","building-3-line","building-4-fill","building-4-line","building-fill","building-line","bus-2-fill","bus-2-line","bus-fill","bus-line","bus-wifi-fill","bus-wifi-line","cactus-fill","cactus-line","cake-2-fill","cake-2-line","cake-3-fill","cake-3-line","cake-fill","cake-line","calculator-fill","calculator-line","calendar-2-fill","calendar-2-line","calendar-check-fill","calendar-check-line","calendar-close-fill","calendar-close-line","calendar-event-fill","calendar-event-line","calendar-fill","calendar-line","calendar-todo-fill","calendar-todo-line","camera-2-fill","camera-2-line","camera-3-fill","camera-3-line","camera-fill","camera-lens-fill","camera-lens-line","camera-line","camera-off-fill","camera-off-line","camera-switch-fill","camera-switch-line","candle-fill","candle-line","capsule-fill","capsule-line","car-fill","car-line","car-washing-fill","car-washing-line","caravan-fill","caravan-line","cash-fill","cash-line","cast-fill","cast-line","cellphone-fill","cellphone-line","celsius-fill","celsius-line","centos-fill","centos-line","character-recognition-fill","character-recognition-line","charging-pile-2-fill","charging-pile-2-line","charging-pile-fill","charging-pile-line","chat-1-fill","chat-1-line","chat-2-fill","chat-2-line","chat-3-fill","chat-3-line","chat-4-fill","chat-4-line","chat-check-fill","chat-check-line","chat-delete-fill","chat-delete-line","chat-download-fill","chat-download-line","chat-follow-up-fill","chat-follow-up-line","chat-forward-fill","chat-forward-line","chat-heart-fill","chat-heart-line","chat-history-fill","chat-history-line","chat-new-fill","chat-new-line","chat-off-fill","chat-off-line","chat-poll-fill","chat-poll-line","chat-private-fill","chat-private-line","chat-quote-fill","chat-quote-line","chat-settings-fill","chat-settings-line","chat-smile-2-fill","chat-smile-2-line","chat-smile-3-fill","chat-smile-3-line","chat-smile-fill","chat-smile-line","chat-upload-fill","chat-upload-line","chat-voice-fill","chat-voice-line","check-double-fill","check-double-line","check-fill","check-line","checkbox-blank-circle-fill","checkbox-blank-circle-line","checkbox-blank-fill","checkbox-blank-line","checkbox-circle-fill","checkbox-circle-line","checkbox-fill","checkbox-indeterminate-fill","checkbox-indeterminate-line","checkbox-line","checkbox-multiple-blank-fill","checkbox-multiple-blank-line","checkbox-multiple-fill","checkbox-multiple-line","china-railway-fill","china-railway-line","chrome-fill","chrome-line","circle-fill","circle-line","clapperboard-fill","clapperboard-line","clipboard-fill","clipboard-line","clockwise-2-fill","clockwise-2-line","clockwise-fill","clockwise-line","close-circle-fill","close-circle-line","close-fill","close-line","closed-captioning-fill","closed-captioning-line","cloud-fill","cloud-line","cloud-off-fill","cloud-off-line","cloud-windy-fill","cloud-windy-line","cloudy-2-fill","cloudy-2-line","cloudy-fill","cloudy-line","code-box-fill","code-box-line","code-fill","code-line","code-s-fill","code-s-line","code-s-slash-fill","code-s-slash-line","code-view","codepen-fill","codepen-line","coin-fill","coin-line","coins-fill","coins-line","collage-fill","collage-line","command-fill","command-line","community-fill","community-line","compass-2-fill","compass-2-line","compass-3-fill","compass-3-line","compass-4-fill","compass-4-line","compass-discover-fill","compass-discover-line","compass-fill","compass-line","compasses-2-fill","compasses-2-line","compasses-fill","compasses-line","computer-fill","computer-line","contacts-book-2-fill","contacts-book-2-line","contacts-book-fill","contacts-book-line","contacts-book-upload-fill","contacts-book-upload-line","contacts-fill","contacts-line","contract-left-fill","contract-left-line","contract-left-right-fill","contract-left-right-line","contract-right-fill","contract-right-line","contract-up-down-fill","contract-up-down-line","contrast-2-fill","contrast-2-line","contrast-drop-2-fill","contrast-drop-2-line","contrast-drop-fill","contrast-drop-line","contrast-fill","contrast-line","copilot-fill","copilot-line","copper-coin-fill","copper-coin-line","copper-diamond-fill","copper-diamond-line","copyleft-fill","copyleft-line","copyright-fill","copyright-line","coreos-fill","coreos-line","corner-down-left-fill","corner-down-left-line","corner-down-right-fill","corner-down-right-line","corner-left-down-fill","corner-left-down-line","corner-left-up-fill","corner-left-up-line","corner-right-down-fill","corner-right-down-line","corner-right-up-fill","corner-right-up-line","corner-up-left-double-fill","corner-up-left-double-line","corner-up-left-fill","corner-up-left-line","corner-up-right-double-fill","corner-up-right-double-line","corner-up-right-fill","corner-up-right-line","coupon-2-fill","coupon-2-line","coupon-3-fill","coupon-3-line","coupon-4-fill","coupon-4-line","coupon-5-fill","coupon-5-line","coupon-fill","coupon-line","cpu-fill","cpu-line","creative-commons-by-fill","creative-commons-by-line","creative-commons-fill","creative-commons-line","creative-commons-nc-fill","creative-commons-nc-line","creative-commons-nd-fill","creative-commons-nd-line","creative-commons-sa-fill","creative-commons-sa-line","creative-commons-zero-fill","creative-commons-zero-line","criminal-fill","criminal-line","crop-2-fill","crop-2-line","crop-fill","crop-line","cross-fill","cross-line","crosshair-2-fill","crosshair-2-line","crosshair-fill","crosshair-line","css3-fill","css3-line","cup-fill","cup-line","currency-fill","currency-line","cursor-fill","cursor-line","customer-service-2-fill","customer-service-2-line","customer-service-fill","customer-service-line","dashboard-2-fill","dashboard-2-line","dashboard-3-fill","dashboard-3-line","dashboard-fill","dashboard-line","database-2-fill","database-2-line","database-fill","database-line","delete-back-2-fill","delete-back-2-line","delete-back-fill","delete-back-line","delete-bin-2-fill","delete-bin-2-line","delete-bin-3-fill","delete-bin-3-line","delete-bin-4-fill","delete-bin-4-line","delete-bin-5-fill","delete-bin-5-line","delete-bin-6-fill","delete-bin-6-line","delete-bin-7-fill","delete-bin-7-line","delete-bin-fill","delete-bin-line","delete-column","delete-row","device-fill","device-line","device-recover-fill","device-recover-line","dingding-fill","dingding-line","direction-fill","direction-line","disc-fill","disc-line","discord-fill","discord-line","discuss-fill","discuss-line","dislike-fill","dislike-line","disqus-fill","disqus-line","divide-fill","divide-line","donut-chart-fill","donut-chart-line","door-closed-fill","door-closed-line","door-fill","door-line","door-lock-box-fill","door-lock-box-line","door-lock-fill","door-lock-line","door-open-fill","door-open-line","dossier-fill","dossier-line","douban-fill","douban-line","double-quotes-l","double-quotes-r","download-2-fill","download-2-line","download-cloud-2-fill","download-cloud-2-line","download-cloud-fill","download-cloud-line","download-fill","download-line","draft-fill","draft-line","drag-drop-fill","drag-drop-line","drag-move-2-fill","drag-move-2-line","drag-move-fill","drag-move-line","draggable","dribbble-fill","dribbble-line","drive-fill","drive-line","drizzle-fill","drizzle-line","drop-fill","drop-line","dropbox-fill","dropbox-line","dropdown-list","dual-sim-1-fill","dual-sim-1-line","dual-sim-2-fill","dual-sim-2-line","dv-fill","dv-line","dvd-fill","dvd-line","e-bike-2-fill","e-bike-2-line","e-bike-fill","e-bike-line","earth-fill","earth-line","earthquake-fill","earthquake-line","edge-fill","edge-line","edge-new-fill","edge-new-line","edit-2-fill","edit-2-line","edit-box-fill","edit-box-line","edit-circle-fill","edit-circle-line","edit-fill","edit-line","eject-fill","eject-line","emoji-sticker-fill","emoji-sticker-line","emotion-2-fill","emotion-2-line","emotion-fill","emotion-happy-fill","emotion-happy-line","emotion-laugh-fill","emotion-laugh-line","emotion-line","emotion-normal-fill","emotion-normal-line","emotion-sad-fill","emotion-sad-line","emotion-unhappy-fill","emotion-unhappy-line","empathize-fill","empathize-line","emphasis","emphasis-cn","english-input","equal-fill","equal-line","equalizer-fill","equalizer-line","eraser-fill","eraser-line","error-warning-fill","error-warning-line","evernote-fill","evernote-line","exchange-box-fill","exchange-box-line","exchange-cny-fill","exchange-cny-line","exchange-dollar-fill","exchange-dollar-line","exchange-fill","exchange-funds-fill","exchange-funds-line","exchange-line","expand-left-fill","expand-left-line","expand-left-right-fill","expand-left-right-line","expand-right-fill","expand-right-line","expand-up-down-fill","expand-up-down-line","external-link-fill","external-link-line","eye-2-fill","eye-2-line","eye-close-fill","eye-close-line","eye-fill","eye-line","eye-off-fill","eye-off-line","facebook-box-fill","facebook-box-line","facebook-circle-fill","facebook-circle-line","facebook-fill","facebook-line","fahrenheit-fill","fahrenheit-line","feedback-fill","feedback-line","file-2-fill","file-2-line","file-3-fill","file-3-line","file-4-fill","file-4-line","file-add-fill","file-add-line","file-chart-2-fill","file-chart-2-line","file-chart-fill","file-chart-line","file-close-fill","file-close-line","file-cloud-fill","file-cloud-line","file-code-fill","file-code-line","file-copy-2-fill","file-copy-2-line","file-copy-fill","file-copy-line","file-damage-fill","file-damage-line","file-download-fill","file-download-line","file-edit-fill","file-edit-line","file-excel-2-fill","file-excel-2-line","file-excel-fill","file-excel-line","file-fill","file-forbid-fill","file-forbid-line","file-gif-fill","file-gif-line","file-history-fill","file-history-line","file-hwp-fill","file-hwp-line","file-image-fill","file-image-line","file-info-fill","file-info-line","file-line","file-list-2-fill","file-list-2-line","file-list-3-fill","file-list-3-line","file-list-fill","file-list-line","file-lock-fill","file-lock-line","file-mark-fill","file-mark-line","file-music-fill","file-music-line","file-paper-2-fill","file-paper-2-line","file-paper-fill","file-paper-line","file-pdf-2-fill","file-pdf-2-line","file-pdf-fill","file-pdf-line","file-ppt-2-fill","file-ppt-2-line","file-ppt-fill","file-ppt-line","file-reduce-fill","file-reduce-line","file-search-fill","file-search-line","file-settings-fill","file-settings-line","file-shield-2-fill","file-shield-2-line","file-shield-fill","file-shield-line","file-shred-fill","file-shred-line","file-text-fill","file-text-line","file-transfer-fill","file-transfer-line","file-unknow-fill","file-unknow-line","file-upload-fill","file-upload-line","file-user-fill","file-user-line","file-video-fill","file-video-line","file-warning-fill","file-warning-line","file-word-2-fill","file-word-2-line","file-word-fill","file-word-line","file-zip-fill","file-zip-line","film-fill","film-line","filter-2-fill","filter-2-line","filter-3-fill","filter-3-line","filter-fill","filter-line","filter-off-fill","filter-off-line","find-replace-fill","find-replace-line","finder-fill","finder-line","fingerprint-2-fill","fingerprint-2-line","fingerprint-fill","fingerprint-line","fire-fill","fire-line","firefox-fill","firefox-line","first-aid-kit-fill","first-aid-kit-line","flag-2-fill","flag-2-line","flag-fill","flag-line","flashlight-fill","flashlight-line","flask-fill","flask-line","flickr-fill","flickr-line","flight-land-fill","flight-land-line","flight-takeoff-fill","flight-takeoff-line","flood-fill","flood-line","flow-chart","flutter-fill","flutter-line","focus-2-fill","focus-2-line","focus-3-fill","focus-3-line","focus-fill","focus-line","foggy-fill","foggy-line","folder-2-fill","folder-2-line","folder-3-fill","folder-3-line","folder-4-fill","folder-4-line","folder-5-fill","folder-5-line","folder-add-fill","folder-add-line","folder-chart-2-fill","folder-chart-2-line","folder-chart-fill","folder-chart-line","folder-download-fill","folder-download-line","folder-fill","folder-forbid-fill","folder-forbid-line","folder-history-fill","folder-history-line","folder-image-fill","folder-image-line","folder-info-fill","folder-info-line","folder-keyhole-fill","folder-keyhole-line","folder-line","folder-lock-fill","folder-lock-line","folder-music-fill","folder-music-line","folder-open-fill","folder-open-line","folder-received-fill","folder-received-line","folder-reduce-fill","folder-reduce-line","folder-settings-fill","folder-settings-line","folder-shared-fill","folder-shared-line","folder-shield-2-fill","folder-shield-2-line","folder-shield-fill","folder-shield-line","folder-transfer-fill","folder-transfer-line","folder-unknow-fill","folder-unknow-line","folder-upload-fill","folder-upload-line","folder-user-fill","folder-user-line","folder-video-fill","folder-video-line","folder-warning-fill","folder-warning-line","folder-zip-fill","folder-zip-line","folders-fill","folders-line","font-color","font-family","font-mono","font-sans","font-sans-serif","font-size","font-size-2","football-fill","football-line","footprint-fill","footprint-line","forbid-2-fill","forbid-2-line","forbid-fill","forbid-line","format-clear","forward-10-fill","forward-10-line","forward-15-fill","forward-15-line","forward-30-fill","forward-30-line","forward-5-fill","forward-5-line","fridge-fill","fridge-line","fullscreen-exit-fill","fullscreen-exit-line","fullscreen-fill","fullscreen-line","function-fill","function-line","functions","funds-box-fill","funds-box-line","funds-fill","funds-line","gallery-fill","gallery-line","gallery-upload-fill","gallery-upload-line","game-fill","game-line","gamepad-fill","gamepad-line","gas-station-fill","gas-station-line","gatsby-fill","gatsby-line","genderless-fill","genderless-line","ghost-2-fill","ghost-2-line","ghost-fill","ghost-line","ghost-smile-fill","ghost-smile-line","gift-2-fill","gift-2-line","gift-fill","gift-line","git-branch-fill","git-branch-line","git-close-pull-request-fill","git-close-pull-request-line","git-commit-fill","git-commit-line","git-merge-fill","git-merge-line","git-pull-request-fill","git-pull-request-line","git-repository-commits-fill","git-repository-commits-line","git-repository-fill","git-repository-line","git-repository-private-fill","git-repository-private-line","github-fill","github-line","gitlab-fill","gitlab-line","global-fill","global-line","globe-fill","globe-line","goblet-fill","goblet-line","google-fill","google-line","google-play-fill","google-play-line","government-fill","government-line","gps-fill","gps-line","gradienter-fill","gradienter-line","graduation-cap-fill","graduation-cap-line","grid-fill","grid-line","group-2-fill","group-2-line","group-fill","group-line","guide-fill","guide-line","h-1","h-2","h-3","h-4","h-5","h-6","hail-fill","hail-line","hammer-fill","hammer-line","hand-coin-fill","hand-coin-line","hand-heart-fill","hand-heart-line","hand-sanitizer-fill","hand-sanitizer-line","handbag-fill","handbag-line","hard-drive-2-fill","hard-drive-2-line","hard-drive-3-fill","hard-drive-3-line","hard-drive-fill","hard-drive-line","hashtag","haze-2-fill","haze-2-line","haze-fill","haze-line","hd-fill","hd-line","heading","headphone-fill","headphone-line","health-book-fill","health-book-line","heart-2-fill","heart-2-line","heart-3-fill","heart-3-line","heart-add-fill","heart-add-line","heart-fill","heart-line","heart-pulse-fill","heart-pulse-line","hearts-fill","hearts-line","heavy-showers-fill","heavy-showers-line","hexagon-fill","hexagon-line","history-fill","history-line","home-2-fill","home-2-line","home-3-fill","home-3-line","home-4-fill","home-4-line","home-5-fill","home-5-line","home-6-fill","home-6-line","home-7-fill","home-7-line","home-8-fill","home-8-line","home-fill","home-gear-fill","home-gear-line","home-heart-fill","home-heart-line","home-line","home-office-fill","home-office-line","home-smile-2-fill","home-smile-2-line","home-smile-fill","home-smile-line","home-wifi-fill","home-wifi-line","honor-of-kings-fill","honor-of-kings-line","honour-fill","honour-line","hospital-fill","hospital-line","hotel-bed-fill","hotel-bed-line","hotel-fill","hotel-line","hotspot-fill","hotspot-line","hourglass-2-fill","hourglass-2-line","hourglass-fill","hourglass-line","hq-fill","hq-line","html5-fill","html5-line","ie-fill","ie-line","image-2-fill","image-2-line","image-add-fill","image-add-line","image-edit-fill","image-edit-line","image-fill","image-line","inbox-2-fill","inbox-2-line","inbox-archive-fill","inbox-archive-line","inbox-fill","inbox-line","inbox-unarchive-fill","inbox-unarchive-line","increase-decrease-fill","increase-decrease-line","indent-decrease","indent-increase","indeterminate-circle-fill","indeterminate-circle-line","infinity-fill","infinity-line","information-fill","information-line","infrared-thermometer-fill","infrared-thermometer-line","ink-bottle-fill","ink-bottle-line","input-cursor-move","input-method-fill","input-method-line","insert-column-left","insert-column-right","insert-row-bottom","insert-row-top","instagram-fill","instagram-line","install-fill","install-line","instance-fill","instance-line","invision-fill","invision-line","italic","javascript-fill","javascript-line","kakao-talk-fill","kakao-talk-line","key-2-fill","key-2-line","key-fill","key-line","keyboard-box-fill","keyboard-box-line","keyboard-fill","keyboard-line","keynote-fill","keynote-line","kick-fill","kick-line","knife-blood-fill","knife-blood-line","knife-fill","knife-line","landscape-fill","landscape-line","layout-2-fill","layout-2-line","layout-3-fill","layout-3-line","layout-4-fill","layout-4-line","layout-5-fill","layout-5-line","layout-6-fill","layout-6-line","layout-bottom-2-fill","layout-bottom-2-line","layout-bottom-fill","layout-bottom-line","layout-column-fill","layout-column-line","layout-fill","layout-grid-fill","layout-grid-line","layout-left-2-fill","layout-left-2-line","layout-left-fill","layout-left-line","layout-line","layout-masonry-fill","layout-masonry-line","layout-right-2-fill","layout-right-2-line","layout-right-fill","layout-right-line","layout-row-fill","layout-row-line","layout-top-2-fill","layout-top-2-line","layout-top-fill","layout-top-line","leaf-fill","leaf-line","lifebuoy-fill","lifebuoy-line","lightbulb-fill","lightbulb-flash-fill","lightbulb-flash-line","lightbulb-line","line-chart-fill","line-chart-line","line-fill","line-height","line-line","link","link-m","link-unlink","link-unlink-m","linkedin-box-fill","linkedin-box-line","linkedin-fill","linkedin-line","links-fill","links-line","list-check","list-check-2","list-check-3","list-indefinite","list-ordered","list-ordered-2","list-radio","list-settings-fill","list-settings-line","list-unordered","live-fill","live-line","loader-2-fill","loader-2-line","loader-3-fill","loader-3-line","loader-4-fill","loader-4-line","loader-5-fill","loader-5-line","loader-fill","loader-line","lock-2-fill","lock-2-line","lock-fill","lock-line","lock-password-fill","lock-password-line","lock-unlock-fill","lock-unlock-line","login-box-fill","login-box-line","login-circle-fill","login-circle-line","logout-box-fill","logout-box-line","logout-box-r-fill","logout-box-r-line","logout-circle-fill","logout-circle-line","logout-circle-r-fill","logout-circle-r-line","loop-left-fill","loop-left-line","loop-right-fill","loop-right-line","luggage-cart-fill","luggage-cart-line","luggage-deposit-fill","luggage-deposit-line","lungs-fill","lungs-line","mac-fill","mac-line","macbook-fill","macbook-line","magic-fill","magic-line","mail-add-fill","mail-add-line","mail-check-fill","mail-check-line","mail-close-fill","mail-close-line","mail-download-fill","mail-download-line","mail-fill","mail-forbid-fill","mail-forbid-line","mail-line","mail-lock-fill","mail-lock-line","mail-open-fill","mail-open-line","mail-send-fill","mail-send-line","mail-settings-fill","mail-settings-line","mail-star-fill","mail-star-line","mail-unread-fill","mail-unread-line","mail-volume-fill","mail-volume-line","map-2-fill","map-2-line","map-fill","map-line","map-pin-2-fill","map-pin-2-line","map-pin-3-fill","map-pin-3-line","map-pin-4-fill","map-pin-4-line","map-pin-5-fill","map-pin-5-line","map-pin-add-fill","map-pin-add-line","map-pin-fill","map-pin-line","map-pin-range-fill","map-pin-range-line","map-pin-time-fill","map-pin-time-line","map-pin-user-fill","map-pin-user-line","mark-pen-fill","mark-pen-line","markdown-fill","markdown-line","markup-fill","markup-line","mastercard-fill","mastercard-line","mastodon-fill","mastodon-line","medal-2-fill","medal-2-line","medal-fill","medal-line","medicine-bottle-fill","medicine-bottle-line","medium-fill","medium-line","megaphone-fill","megaphone-line","memories-fill","memories-line","men-fill","men-line","mental-health-fill","mental-health-line","menu-2-fill","menu-2-line","menu-3-fill","menu-3-line","menu-4-fill","menu-4-line","menu-5-fill","menu-5-line","menu-add-fill","menu-add-line","menu-fill","menu-fold-fill","menu-fold-line","menu-line","menu-search-fill","menu-search-line","menu-unfold-fill","menu-unfold-line","merge-cells-horizontal","merge-cells-vertical","message-2-fill","message-2-line","message-3-fill","message-3-line","message-fill","message-line","messenger-fill","messenger-line","meta-fill","meta-line","meteor-fill","meteor-line","mic-2-fill","mic-2-line","mic-fill","mic-line","mic-off-fill","mic-off-line","mickey-fill","mickey-line","microscope-fill","microscope-line","microsoft-fill","microsoft-line","microsoft-loop-fill","microsoft-loop-line","mind-map","mini-program-fill","mini-program-line","mist-fill","mist-line","money-cny-box-fill","money-cny-box-line","money-cny-circle-fill","money-cny-circle-line","money-dollar-box-fill","money-dollar-box-line","money-dollar-circle-fill","money-dollar-circle-line","money-euro-box-fill","money-euro-box-line","money-euro-circle-fill","money-euro-circle-line","money-pound-box-fill","money-pound-box-line","money-pound-circle-fill","money-pound-circle-line","moon-clear-fill","moon-clear-line","moon-cloudy-fill","moon-cloudy-line","moon-fill","moon-foggy-fill","moon-foggy-line","moon-line","more-2-fill","more-2-line","more-fill","more-line","motorbike-fill","motorbike-line","mouse-fill","mouse-line","movie-2-fill","movie-2-line","movie-fill","movie-line","music-2-fill","music-2-line","music-fill","music-line","mv-fill","mv-line","navigation-fill","navigation-line","netease-cloud-music-fill","netease-cloud-music-line","netflix-fill","netflix-line","newspaper-fill","newspaper-line","nft-fill","nft-line","node-tree","notification-2-fill","notification-2-line","notification-3-fill","notification-3-line","notification-4-fill","notification-4-line","notification-badge-fill","notification-badge-line","notification-fill","notification-line","notification-off-fill","notification-off-line","notion-fill","notion-line","npmjs-fill","npmjs-line","number-0","number-1","number-2","number-3","number-4","number-5","number-6","number-7","number-8","number-9","numbers-fill","numbers-line","nurse-fill","nurse-line","octagon-fill","octagon-line","oil-fill","oil-line","omega","open-arm-fill","open-arm-line","open-source-fill","open-source-line","openai-fill","openai-line","openbase-fill","openbase-line","opera-fill","opera-line","order-play-fill","order-play-line","organization-chart","outlet-2-fill","outlet-2-line","outlet-fill","outlet-line","overline","p2p-fill","p2p-line","page-separator","pages-fill","pages-line","paint-brush-fill","paint-brush-line","paint-fill","paint-line","palette-fill","palette-line","pantone-fill","pantone-line","paragraph","parent-fill","parent-line","parentheses-fill","parentheses-line","parking-box-fill","parking-box-line","parking-fill","parking-line","pass-expired-fill","pass-expired-line","pass-pending-fill","pass-pending-line","pass-valid-fill","pass-valid-line","passport-fill","passport-line","patreon-fill","patreon-line","pause-circle-fill","pause-circle-line","pause-fill","pause-line","pause-mini-fill","pause-mini-line","paypal-fill","paypal-line","pen-nib-fill","pen-nib-line","pencil-fill","pencil-line","pencil-ruler-2-fill","pencil-ruler-2-line","pencil-ruler-fill","pencil-ruler-line","pentagon-fill","pentagon-line","percent-fill","percent-line","phone-camera-fill","phone-camera-line","phone-fill","phone-find-fill","phone-find-line","phone-line","phone-lock-fill","phone-lock-line","picture-in-picture-2-fill","picture-in-picture-2-line","picture-in-picture-exit-fill","picture-in-picture-exit-line","picture-in-picture-fill","picture-in-picture-line","pie-chart-2-fill","pie-chart-2-line","pie-chart-box-fill","pie-chart-box-line","pie-chart-fill","pie-chart-line","pin-distance-fill","pin-distance-line","ping-pong-fill","ping-pong-line","pinterest-fill","pinterest-line","pinyin-input","pixelfed-fill","pixelfed-line","plane-fill","plane-line","planet-fill","planet-line","plant-fill","plant-line","play-circle-fill","play-circle-line","play-fill","play-line","play-list-2-fill","play-list-2-line","play-list-add-fill","play-list-add-line","play-list-fill","play-list-line","play-mini-fill","play-mini-line","playstation-fill","playstation-line","plug-2-fill","plug-2-line","plug-fill","plug-line","polaroid-2-fill","polaroid-2-line","polaroid-fill","polaroid-line","police-car-fill","police-car-line","presentation-fill","presentation-line","price-tag-2-fill","price-tag-2-line","price-tag-3-fill","price-tag-3-line","price-tag-fill","price-tag-line","printer-cloud-fill","printer-cloud-line","printer-fill","printer-line","product-hunt-fill","product-hunt-line","profile-fill","profile-line","prohibited-fill","prohibited-line","projector-2-fill","projector-2-line","projector-fill","projector-line","psychotherapy-fill","psychotherapy-line","pulse-fill","pulse-line","pushpin-2-fill","pushpin-2-line","pushpin-fill","pushpin-line","qq-fill","qq-line","qr-code-fill","qr-code-line","qr-scan-2-fill","qr-scan-2-line","qr-scan-fill","qr-scan-line","question-answer-fill","question-answer-line","question-fill","question-line","question-mark","questionnaire-fill","questionnaire-line","quill-pen-fill","quill-pen-line","quote-text","radar-fill","radar-line","radio-2-fill","radio-2-line","radio-button-fill","radio-button-line","radio-fill","radio-line","rainbow-fill","rainbow-line","rainy-fill","rainy-line","reactjs-fill","reactjs-line","record-circle-fill","record-circle-line","record-mail-fill","record-mail-line","rectangle-fill","rectangle-line","recycle-fill","recycle-line","red-packet-fill","red-packet-line","reddit-fill","reddit-line","refresh-fill","refresh-line","refund-2-fill","refund-2-line","refund-fill","refund-line","registered-fill","registered-line","remixicon-fill","remixicon-line","remote-control-2-fill","remote-control-2-line","remote-control-fill","remote-control-line","repeat-2-fill","repeat-2-line","repeat-fill","repeat-line","repeat-one-fill","repeat-one-line","replay-10-fill","replay-10-line","replay-15-fill","replay-15-line","replay-30-fill","replay-30-line","replay-5-fill","replay-5-line","reply-all-fill","reply-all-line","reply-fill","reply-line","reserved-fill","reserved-line","rest-time-fill","rest-time-line","restart-fill","restart-line","restaurant-2-fill","restaurant-2-line","restaurant-fill","restaurant-line","rewind-fill","rewind-line","rewind-mini-fill","rewind-mini-line","rfid-fill","rfid-line","rhythm-fill","rhythm-line","riding-fill","riding-line","road-map-fill","road-map-line","roadster-fill","roadster-line","robot-2-fill","robot-2-line","robot-fill","robot-line","rocket-2-fill","rocket-2-line","rocket-fill","rocket-line","rotate-lock-fill","rotate-lock-line","rounded-corner","route-fill","route-line","router-fill","router-line","rss-fill","rss-line","ruler-2-fill","ruler-2-line","ruler-fill","ruler-line","run-fill","run-line","safari-fill","safari-line","safe-2-fill","safe-2-line","safe-fill","safe-line","sailboat-fill","sailboat-line","save-2-fill","save-2-line","save-3-fill","save-3-line","save-fill","save-line","scales-2-fill","scales-2-line","scales-3-fill","scales-3-line","scales-fill","scales-line","scan-2-fill","scan-2-line","scan-fill","scan-line","school-fill","school-line","scissors-2-fill","scissors-2-line","scissors-cut-fill","scissors-cut-line","scissors-fill","scissors-line","screenshot-2-fill","screenshot-2-line","screenshot-fill","screenshot-line","sd-card-fill","sd-card-line","sd-card-mini-fill","sd-card-mini-line","search-2-fill","search-2-line","search-eye-fill","search-eye-line","search-fill","search-line","secure-payment-fill","secure-payment-line","seedling-fill","seedling-line","send-backward","send-plane-2-fill","send-plane-2-line","send-plane-fill","send-plane-line","send-to-back","sensor-fill","sensor-line","seo-fill","seo-line","separator","server-fill","server-line","service-fill","service-line","settings-2-fill","settings-2-line","settings-3-fill","settings-3-line","settings-4-fill","settings-4-line","settings-5-fill","settings-5-line","settings-6-fill","settings-6-line","settings-fill","settings-line","shake-hands-fill","shake-hands-line","shape-2-fill","shape-2-line","shape-fill","shape-line","shapes-fill","shapes-line","share-box-fill","share-box-line","share-circle-fill","share-circle-line","share-fill","share-forward-2-fill","share-forward-2-line","share-forward-box-fill","share-forward-box-line","share-forward-fill","share-forward-line","share-line","shield-check-fill","shield-check-line","shield-cross-fill","shield-cross-line","shield-fill","shield-flash-fill","shield-flash-line","shield-keyhole-fill","shield-keyhole-line","shield-line","shield-star-fill","shield-star-line","shield-user-fill","shield-user-line","shining-2-fill","shining-2-line","shining-fill","shining-line","ship-2-fill","ship-2-line","ship-fill","ship-line","shirt-fill","shirt-line","shopping-bag-2-fill","shopping-bag-2-line","shopping-bag-3-fill","shopping-bag-3-line","shopping-bag-fill","shopping-bag-line","shopping-basket-2-fill","shopping-basket-2-line","shopping-basket-fill","shopping-basket-line","shopping-cart-2-fill","shopping-cart-2-line","shopping-cart-fill","shopping-cart-line","showers-fill","showers-line","shuffle-fill","shuffle-line","shut-down-fill","shut-down-line","side-bar-fill","side-bar-line","signal-tower-fill","signal-tower-line","signal-wifi-1-fill","signal-wifi-1-line","signal-wifi-2-fill","signal-wifi-2-line","signal-wifi-3-fill","signal-wifi-3-line","signal-wifi-error-fill","signal-wifi-error-line","signal-wifi-fill","signal-wifi-line","signal-wifi-off-fill","signal-wifi-off-line","sim-card-2-fill","sim-card-2-line","sim-card-fill","sim-card-line","single-quotes-l","single-quotes-r","sip-fill","sip-line","sketching","skip-back-fill","skip-back-line","skip-back-mini-fill","skip-back-mini-line","skip-down-fill","skip-down-line","skip-forward-fill","skip-forward-line","skip-forward-mini-fill","skip-forward-mini-line","skip-left-fill","skip-left-line","skip-right-fill","skip-right-line","skip-up-fill","skip-up-line","skull-2-fill","skull-2-line","skull-fill","skull-line","skype-fill","skype-line","slack-fill","slack-line","slash-commands","slash-commands-2","slice-fill","slice-line","slideshow-2-fill","slideshow-2-line","slideshow-3-fill","slideshow-3-line","slideshow-4-fill","slideshow-4-line","slideshow-fill","slideshow-line","slow-down-fill","slow-down-line","smartphone-fill","smartphone-line","snapchat-fill","snapchat-line","snowy-fill","snowy-line","sort-asc","sort-desc","sound-module-fill","sound-module-line","soundcloud-fill","soundcloud-line","space","space-ship-fill","space-ship-line","spam-2-fill","spam-2-line","spam-3-fill","spam-3-line","spam-fill","spam-line","sparkling-2-fill","sparkling-2-line","sparkling-fill","sparkling-line","speak-fill","speak-line","speaker-2-fill","speaker-2-line","speaker-3-fill","speaker-3-line","speaker-fill","speaker-line","spectrum-fill","spectrum-line","speed-fill","speed-line","speed-mini-fill","speed-mini-line","speed-up-fill","speed-up-line","split-cells-horizontal","split-cells-vertical","spotify-fill","spotify-line","spy-fill","spy-line","square-fill","square-line","stack-fill","stack-line","stack-overflow-fill","stack-overflow-line","stackshare-fill","stackshare-line","star-fill","star-half-fill","star-half-line","star-half-s-fill","star-half-s-line","star-line","star-s-fill","star-s-line","star-smile-fill","star-smile-line","steam-fill","steam-line","steering-2-fill","steering-2-line","steering-fill","steering-line","stethoscope-fill","stethoscope-line","sticky-note-2-fill","sticky-note-2-line","sticky-note-fill","sticky-note-line","stock-fill","stock-line","stop-circle-fill","stop-circle-line","stop-fill","stop-line","stop-mini-fill","stop-mini-line","store-2-fill","store-2-line","store-3-fill","store-3-line","store-fill","store-line","strikethrough","strikethrough-2","subscript","subscript-2","subtract-fill","subtract-line","subway-fill","subway-line","subway-wifi-fill","subway-wifi-line","suitcase-2-fill","suitcase-2-line","suitcase-3-fill","suitcase-3-line","suitcase-fill","suitcase-line","sun-cloudy-fill","sun-cloudy-line","sun-fill","sun-foggy-fill","sun-foggy-line","sun-line","supabase-fill","supabase-line","superscript","superscript-2","surgical-mask-fill","surgical-mask-line","surround-sound-fill","surround-sound-line","survey-fill","survey-line","swap-box-fill","swap-box-line","swap-fill","swap-line","switch-fill","switch-line","sword-fill","sword-line","syringe-fill","syringe-line","t-box-fill","t-box-line","t-shirt-2-fill","t-shirt-2-line","t-shirt-air-fill","t-shirt-air-line","t-shirt-fill","t-shirt-line","table-2","table-alt-fill","table-alt-line","table-fill","table-line","tablet-fill","tablet-line","takeaway-fill","takeaway-line","taobao-fill","taobao-line","tape-fill","tape-line","task-fill","task-line","taxi-fill","taxi-line","taxi-wifi-fill","taxi-wifi-line","team-fill","team-line","telegram-fill","telegram-line","temp-cold-fill","temp-cold-line","temp-hot-fill","temp-hot-line","tent-fill","tent-line","terminal-box-fill","terminal-box-line","terminal-fill","terminal-line","terminal-window-fill","terminal-window-line","test-tube-fill","test-tube-line","text","text-direction-l","text-direction-r","text-spacing","text-wrap","thermometer-fill","thermometer-line","threads-fill","threads-line","thumb-down-fill","thumb-down-line","thumb-up-fill","thumb-up-line","thunderstorms-fill","thunderstorms-line","ticket-2-fill","ticket-2-line","ticket-fill","ticket-line","tiktok-fill","tiktok-line","time-fill","time-line","timer-2-fill","timer-2-line","timer-fill","timer-flash-fill","timer-flash-line","timer-line","todo-fill","todo-line","toggle-fill","toggle-line","token-swap-fill","token-swap-line","tools-fill","tools-line","tornado-fill","tornado-line","trademark-fill","trademark-line","traffic-light-fill","traffic-light-line","train-fill","train-line","train-wifi-fill","train-wifi-line","translate","translate-2","travesti-fill","travesti-line","treasure-map-fill","treasure-map-line","tree-fill","tree-line","trello-fill","trello-line","triangle-fill","triangle-line","trophy-fill","trophy-line","truck-fill","truck-line","tumblr-fill","tumblr-line","tv-2-fill","tv-2-line","tv-fill","tv-line","twitch-fill","twitch-line","twitter-fill","twitter-line","twitter-x-fill","twitter-x-line","typhoon-fill","typhoon-line","u-disk-fill","u-disk-line","ubuntu-fill","ubuntu-line","umbrella-fill","umbrella-line","underline","uninstall-fill","uninstall-line","unpin-fill","unpin-line","unsplash-fill","unsplash-line","upload-2-fill","upload-2-line","upload-cloud-2-fill","upload-cloud-2-line","upload-cloud-fill","upload-cloud-line","upload-fill","upload-line","usb-fill","usb-line","user-2-fill","user-2-line","user-3-fill","user-3-line","user-4-fill","user-4-line","user-5-fill","user-5-line","user-6-fill","user-6-line","user-add-fill","user-add-line","user-fill","user-follow-fill","user-follow-line","user-forbid-fill","user-forbid-line","user-heart-fill","user-heart-line","user-line","user-location-fill","user-location-line","user-received-2-fill","user-received-2-line","user-received-fill","user-received-line","user-search-fill","user-search-line","user-settings-fill","user-settings-line","user-shared-2-fill","user-shared-2-line","user-shared-fill","user-shared-line","user-smile-fill","user-smile-line","user-star-fill","user-star-line","user-unfollow-fill","user-unfollow-line","user-voice-fill","user-voice-line","verified-badge-fill","verified-badge-line","video-add-fill","video-add-line","video-chat-fill","video-chat-line","video-download-fill","video-download-line","video-fill","video-line","video-upload-fill","video-upload-line","vidicon-2-fill","vidicon-2-line","vidicon-fill","vidicon-line","vimeo-fill","vimeo-line","vip-crown-2-fill","vip-crown-2-line","vip-crown-fill","vip-crown-line","vip-diamond-fill","vip-diamond-line","vip-fill","vip-line","virus-fill","virus-line","visa-fill","visa-line","voice-recognition-fill","voice-recognition-line","voiceprint-fill","voiceprint-line","volume-down-fill","volume-down-line","volume-mute-fill","volume-mute-line","volume-off-vibrate-fill","volume-off-vibrate-line","volume-up-fill","volume-up-line","volume-vibrate-fill","volume-vibrate-line","vuejs-fill","vuejs-line","walk-fill","walk-line","wallet-2-fill","wallet-2-line","wallet-3-fill","wallet-3-line","wallet-fill","wallet-line","water-flash-fill","water-flash-line","water-percent-fill","water-percent-line","webcam-fill","webcam-line","wechat-2-fill","wechat-2-line","wechat-channels-fill","wechat-channels-line","wechat-fill","wechat-line","wechat-pay-fill","wechat-pay-line","weibo-fill","weibo-line","whatsapp-fill","whatsapp-line","wheelchair-fill","wheelchair-line","wifi-fill","wifi-line","wifi-off-fill","wifi-off-line","window-2-fill","window-2-line","window-fill","window-line","windows-fill","windows-line","windy-fill","windy-line","wireless-charging-fill","wireless-charging-line","women-fill","women-line","wordpress-fill","wordpress-line","wubi-input","xbox-fill","xbox-line","xing-fill","xing-line","youtube-fill","youtube-line","yuque-fill","yuque-line","zcool-fill","zcool-line","zhihu-fill","zhihu-line","zoom-in-fill","zoom-in-line","zoom-out-fill","zoom-out-line","zzz-fill","zzz-line"],"fa-solid:":["abacus","ad","address-book","address-card","adjust","air-freshener","align-center","align-justify","align-left","align-right","allergies","ambulance","american-sign-language-interpreting","anchor","angle-double-down","angle-double-left","angle-double-right","angle-double-up","angle-down","angle-left","angle-right","angle-up","angry","ankh","apple-alt","archive","archway","arrow-alt-circle-down","arrow-alt-circle-left","arrow-alt-circle-right","arrow-alt-circle-up","arrow-circle-down","arrow-circle-left","arrow-circle-right","arrow-circle-up","arrow-down","arrow-left","arrow-right","arrow-up","arrows-alt","arrows-alt-h","arrows-alt-v","assistive-listening-systems","asterisk","at","atlas","atom","audio-description","award","baby","baby-carriage","backspace","backward","bacon","bacteria","bacterium","bahai","balance-scale","balance-scale-left","balance-scale-right","ban","band-aid","barcode","bars","baseball-ball","basketball-ball","bath","battery-empty","battery-full","battery-half","battery-quarter","battery-three-quarters","bed","beer","bell","bell-slash","bezier-curve","bible","bicycle","biking","binoculars","biohazard","birthday-cake","blender","blender-phone","blind","blog","bold","bolt","bomb","bone","bong","book","book-dead","book-medical","book-open","book-reader","bookmark","border-all","border-none","border-style","bowling-ball","box","box-open","box-tissue","boxes","braille","brain","bread-slice","briefcase","briefcase-medical","broadcast-tower","broom","brush","bug","building","bullhorn","bullseye","burn","bus","bus-alt","business-time","calculator","calculator-alt","calendar","calendar-alt","calendar-check","calendar-day","calendar-minus","calendar-plus","calendar-times","calendar-week","camera","camera-retro","campground","candy-cane","cannabis","capsules","car","car-alt","car-battery","car-crash","car-side","caravan","caret-down","caret-left","caret-right","caret-square-down","caret-square-left","caret-square-right","caret-square-up","caret-up","carrot","cart-arrow-down","cart-plus","cash-register","cat","certificate","chair","chalkboard","chalkboard-teacher","charging-station","chart-area","chart-bar","chart-line","chart-pie","check","check-circle","check-double","check-square","cheese","chess","chess-bishop","chess-board","chess-king","chess-knight","chess-pawn","chess-queen","chess-rook","chevron-circle-down","chevron-circle-left","chevron-circle-right","chevron-circle-up","chevron-down","chevron-left","chevron-right","chevron-up","child","church","circle","circle-notch","city","clinic-medical","clipboard","clipboard-check","clipboard-list","clock","clone","closed-captioning","cloud","cloud-download-alt","cloud-meatball","cloud-moon","cloud-moon-rain","cloud-rain","cloud-showers-heavy","cloud-sun","cloud-sun-rain","cloud-upload-alt","cocktail","code","code-branch","coffee","cog","cogs","coins","columns","comment","comment-alt","comment-dollar","comment-dots","comment-medical","comment-slash","comments","comments-dollar","compact-disc","compass","compress","compress-alt","compress-arrows-alt","concierge-bell","cookie","cookie-bite","copy","copyright","couch","credit-card","crop","crop-alt","cross","crosshairs","crow","crown","crutch","cube","cubes","cut","database","deaf","democrat","desktop","dharmachakra","diagnoses","dice","dice-d20","dice-d6","dice-five","dice-four","dice-one","dice-six","dice-three","dice-two","digital-tachograph","directions","disease","divide","dizzy","dna","dog","dollar-sign","dolly","dolly-flatbed","donate","door-closed","door-open","dot-circle","dove","download","drafting-compass","dragon","draw-polygon","drum","drum-steelpan","drumstick-bite","dumbbell","dumpster","dumpster-fire","dungeon","edit","egg","eject","ellipsis-h","ellipsis-v","empty-set","envelope","envelope-open","envelope-open-text","envelope-square","equals","eraser","ethernet","euro-sign","exchange-alt","exclamation","exclamation-circle","exclamation-triangle","expand","expand-alt","expand-arrows-alt","external-link-alt","external-link-square-alt","eye","eye-dropper","eye-slash","fan","fast-backward","fast-forward","faucet","fax","feather","feather-alt","female","fighter-jet","file","file-alt","file-archive","file-audio","file-code","file-contract","file-csv","file-download","file-excel","file-export","file-image","file-import","file-invoice","file-invoice-dollar","file-medical","file-medical-alt","file-pdf","file-powerpoint","file-prescription","file-signature","file-upload","file-video","file-word","fill","fill-drip","film","filter","fingerprint","fire","fire-alt","fire-extinguisher","first-aid","fish","fist-raised","flag","flag-checkered","flag-usa","flask","flushed","folder","folder-minus","folder-open","folder-plus","font","football-ball","forward","frog","frown","frown-open","function","funnel-dollar","futbol","gamepad","gas-pump","gavel","gem","genderless","ghost","gift","gifts","glass-cheers","glass-martini","glass-martini-alt","glass-whiskey","glasses","globe","globe-africa","globe-americas","globe-asia","globe-europe","golf-ball","gopuram","graduation-cap","greater-than","greater-than-equal","grimace","grin","grin-alt","grin-beam","grin-beam-sweat","grin-hearts","grin-squint","grin-squint-tears","grin-stars","grin-tears","grin-tongue","grin-tongue-squint","grin-tongue-wink","grin-wink","grip-horizontal","grip-lines","grip-lines-vertical","grip-vertical","guitar","h-square","hamburger","hammer","hamsa","hand-holding","hand-holding-heart","hand-holding-medical","hand-holding-usd","hand-holding-water","hand-lizard","hand-middle-finger","hand-paper","hand-peace","hand-point-down","hand-point-left","hand-point-right","hand-point-up","hand-pointer","hand-rock","hand-scissors","hand-sparkles","hand-spock","hands","hands-helping","hands-wash","handshake","handshake-alt-slash","handshake-slash","hanukiah","hard-hat","hashtag","hat-cowboy","hat-cowboy-side","hat-wizard","hdd","head-side-cough","head-side-cough-slash","head-side-mask","head-side-virus","heading","headphones","headphones-alt","headset","heart","heart-broken","heartbeat","helicopter","highlighter","hiking","hippo","history","hockey-puck","holly-berry","home","horse","horse-head","hospital","hospital-alt","hospital-symbol","hospital-user","hot-tub","hotdog","hotel","hourglass","hourglass-end","hourglass-half","hourglass-start","house-damage","house-user","hryvnia","i-cursor","ice-cream","icicles","icons","id-badge","id-card","id-card-alt","igloo","image","images","inbox","indent","industry","infinity","info","info-circle","integral","intersection","italic","jedi","joint","journal-whills","kaaba","key","keyboard","khanda","kiss","kiss-beam","kiss-wink-heart","kiwi-bird","lambda","landmark","language","laptop","laptop-code","laptop-house","laptop-medical","laugh","laugh-beam","laugh-squint","laugh-wink","layer-group","leaf","lemon","less-than","less-than-equal","level-down-alt","level-up-alt","life-ring","lightbulb","link","lira-sign","list","list-alt","list-ol","list-ul","location-arrow","lock","lock-open","long-arrow-alt-down","long-arrow-alt-left","long-arrow-alt-right","long-arrow-alt-up","low-vision","luggage-cart","lungs","lungs-virus","magic","magnet","mail-bulk","male","map","map-marked","map-marked-alt","map-marker","map-marker-alt","map-pin","map-signs","marker","mars","mars-double","mars-stroke","mars-stroke-h","mars-stroke-v","mask","medal","medkit","meh","meh-blank","meh-rolling-eyes","memory","menorah","mercury","meteor","microchip","microphone","microphone-alt","microphone-alt-slash","microphone-slash","microscope","minus","minus-circle","minus-square","mitten","mobile","mobile-alt","money-bill","money-bill-alt","money-bill-wave","money-bill-wave-alt","money-check","money-check-alt","monument","moon","mortar-pestle","mosque","motorcycle","mountain","mouse","mouse-pointer","mug-hot","music","network-wired","neuter","newspaper","not-equal","notes-medical","object-group","object-ungroup","oil-can","om","omega","otter","outdent","pager","paint-brush","paint-roller","palette","pallet","paper-plane","paperclip","parachute-box","paragraph","parking","passport","pastafarianism","paste","pause","pause-circle","paw","peace","pen","pen-alt","pen-fancy","pen-nib","pen-square","pencil-alt","pencil-ruler","people-arrows","people-carry","pepper-hot","percent","percentage","person-booth","phone","phone-alt","phone-slash","phone-square","phone-square-alt","phone-volume","photo-video","pi","piggy-bank","pills","pizza-slice","place-of-worship","plane","plane-arrival","plane-departure","plane-slash","play","play-circle","plug","plus","plus-circle","plus-square","podcast","poll","poll-h","poo","poo-storm","poop","portrait","pound-sign","power-off","pray","praying-hands","prescription","prescription-bottle","prescription-bottle-alt","print","procedures","project-diagram","pump-medical","pump-soap","puzzle-piece","qrcode","question","question-circle","quidditch","quote-left","quote-right","quran","radiation","radiation-alt","rainbow","random","receipt","record-vinyl","recycle","redo","redo-alt","registered","remove-format","reply","reply-all","republican","restroom","retweet","ribbon","ring","road","robot","rocket","route","rss","rss-square","ruble-sign","ruler","ruler-combined","ruler-horizontal","ruler-vertical","running","rupee-sign","sad-cry","sad-tear","satellite","satellite-dish","save","school","screwdriver","scroll","sd-card","search","search-dollar","search-location","search-minus","search-plus","seedling","server","shapes","share","share-alt","share-alt-square","share-square","shekel-sign","shield-alt","shield-virus","ship","shipping-fast","shoe-prints","shopping-bag","shopping-basket","shopping-cart","shower","shuttle-van","sigma","sign","sign-in-alt","sign-language","sign-out-alt","signal","signal-alt","signal-alt-slash","signal-slash","signature","sim-card","sink","sitemap","skating","skiing","skiing-nordic","skull","skull-crossbones","slash","sleigh","sliders-h","smile","smile-beam","smile-wink","smog","smoking","smoking-ban","sms","snowboarding","snowflake","snowman","snowplow","soap","socks","solar-panel","sort","sort-alpha-down","sort-alpha-down-alt","sort-alpha-up","sort-alpha-up-alt","sort-amount-down","sort-amount-down-alt","sort-amount-up","sort-amount-up-alt","sort-down","sort-numeric-down","sort-numeric-down-alt","sort-numeric-up","sort-numeric-up-alt","sort-up","spa","space-shuttle","spell-check","spider","spinner","splotch","spray-can","square","square-full","square-root","square-root-alt","stamp","star","star-and-crescent","star-half","star-half-alt","star-of-david","star-of-life","step-backward","step-forward","stethoscope","sticky-note","stop","stop-circle","stopwatch","stopwatch-20","store","store-alt","store-alt-slash","store-slash","stream","street-view","strikethrough","stroopwafel","subscript","subway","suitcase","suitcase-rolling","sun","superscript","surprise","swatchbook","swimmer","swimming-pool","synagogue","sync","sync-alt","syringe","table","table-tennis","tablet","tablet-alt","tablets","tachometer-alt","tag","tags","tally","tape","tasks","taxi","teeth","teeth-open","temperature-high","temperature-low","tenge","terminal","text-height","text-width","th","th-large","th-list","theater-masks","thermometer","thermometer-empty","thermometer-full","thermometer-half","thermometer-quarter","thermometer-three-quarters","theta","thumbs-down","thumbs-up","thumbtack","ticket-alt","tilde","times","times-circle","tint","tint-slash","tired","toggle-off","toggle-on","toilet","toilet-paper","toilet-paper-slash","toolbox","tools","tooth","torah","torii-gate","tractor","trademark","traffic-light","trailer","train","tram","transgender","transgender-alt","trash","trash-alt","trash-restore","trash-restore-alt","tree","trophy","truck","truck-loading","truck-monster","truck-moving","truck-pickup","tshirt","tty","tv","umbrella","umbrella-beach","underline","undo","undo-alt","union","universal-access","university","unlink","unlock","unlock-alt","upload","user","user-alt","user-alt-slash","user-astronaut","user-check","user-circle","user-clock","user-cog","user-edit","user-friends","user-graduate","user-injured","user-lock","user-md","user-minus","user-ninja","user-nurse","user-plus","user-secret","user-shield","user-slash","user-tag","user-tie","user-times","users","users-cog","users-slash","utensil-spoon","utensils","value-absolute","vector-square","venus","venus-double","venus-mars","vest","vest-patches","vial","vials","video","video-slash","vihara","virus","virus-slash","viruses","voicemail","volleyball-ball","volume","volume-down","volume-mute","volume-off","volume-slash","volume-up","vote-yea","vr-cardboard","walking","wallet","warehouse","water","wave-square","weight","weight-hanging","wheelchair","wifi","wifi-slash","wind","window-close","window-maximize","window-minimize","window-restore","wine-bottle","wine-glass","wine-glass-alt","won-sign","wrench","x-ray","yen-sign","yin-yang"]},data={width:24,height:24,body:''},_hoisted_1={class:"selector w-[350px]"},_hoisted_2={class:"w-[40px] h-[32px] cursor-pointer flex justify-center items-center"},_hoisted_3={class:"flex flex-wrap px-2 ml-2"},_hoisted_4=["title","onClick"],_hoisted_5={class:"w-full h-9 flex items-center overflow-auto border-t border-[#e5e7eb]"},_sfc_main=defineComponent({name:"IconSelect",__name:"Select",props:{modelValue:{require:!1,type:String}},emits:["update:modelValue"],setup(t,{emit:r}){const $=t,V=toRef($,"modelValue"),oe=ref(IconJson),ie=ref(),le=ref("ep:"),ue=nn(oe.value),de=ref(0),pe=ref(35),he=ref(1),_e=ref(""),$e=[{label:"Element Plus",name:"ep:"},{label:"Remix Icon",name:"ri:"},{label:"Font Awesome 5 Solid",name:"fa-solid:"}],Ie=computed(()=>ue[le.value].filter(bn=>bn.includes(_e.value)).slice((he.value-1)*pe.value,he.value*pe.value)),Ve=computed(()=>bn=>{if(V.value===le.value+bn)return{borderColor:"var(--el-color-primary)",color:"var(--el-color-primary)"}});function Fe(){le.value=$.modelValue.substring(0,$.modelValue.indexOf(":")+1),ie.value=$.modelValue.substring($.modelValue.indexOf(":")+1)}function Ue(){if(k(ie.value))return;Fe();const bn=ue[le.value].findIndex(Sn=>Sn===ie.value);he.value=Math.ceil((bn+1)/pe.value)}function qe(){_e.value=""}function Et({props:bn}){he.value=1,le.value=bn.name}function Lt(bn){ie.value=bn,r("update:modelValue",le.value+bn)}function hn(bn){he.value=bn}function Cn(){ie.value="",r("update:modelValue","")}return watch(()=>Ie.value,()=>de.value=ue[le.value].filter(bn=>bn.includes(_e.value)).length,{immediate:!0}),watch(()=>$.modelValue,bn=>bn&&Fe(),{immediate:!0}),watch(()=>_e.value,()=>he.value=1),(bn,Sn)=>{const En=resolveComponent("IconifyIconOffline"),wn=resolveComponent("IconifyIconOnline"),$n=resolveComponent("el-input"),Tn=resolveComponent("el-scrollbar"),xn=resolveComponent("el-tab-pane"),An=resolveComponent("el-tabs"),Mn=resolveComponent("el-pagination"),Vn=resolveComponent("el-button"),Bn=resolveComponent("el-popover");return openBlock(),createElementBlock("div",_hoisted_1,[createVNode($n,{modelValue:V.value,"onUpdate:modelValue":Sn[2]||(Sn[2]=Dn=>V.value=Dn),disabled:""},{append:withCtx(()=>[createVNode(Bn,{width:350,trigger:"click","popper-class":"pure-popper","popper-options":{placement:"auto"},onBeforeEnter:Ue,onAfterLeave:qe},{reference:withCtx(()=>[createBaseVNode("div",_hoisted_2,[ie.value?(openBlock(),createBlock(wn,{key:1,icon:V.value},null,8,["icon"])):(openBlock(),createBlock(En,{key:0,icon:unref(data)},null,8,["icon"]))])]),default:withCtx(()=>[createVNode($n,{class:"px-2 pt-2",modelValue:_e.value,"onUpdate:modelValue":Sn[0]||(Sn[0]=Dn=>_e.value=Dn),placeholder:"搜索图标",clearable:""},null,8,["modelValue"]),createVNode(An,{modelValue:le.value,"onUpdate:modelValue":Sn[1]||(Sn[1]=Dn=>le.value=Dn),onTabClick:Et},{default:withCtx(()=>[(openBlock(),createElementBlock(Fragment,null,renderList($e,(Dn,Ln)=>createVNode(xn,{key:Ln,label:Dn.label,name:Dn.name},{default:withCtx(()=>[createVNode(Tn,{height:"220px"},{default:withCtx(()=>[createBaseVNode("ul",_hoisted_3,[(openBlock(!0),createElementBlock(Fragment,null,renderList(Ie.value,(Pn,Fn)=>(openBlock(),createElementBlock("li",{key:Fn,title:Pn,class:"icon-item p-2 cursor-pointer mr-2 mt-1 flex justify-center items-center border border-[#e5e7eb]",style:normalizeStyle$1(Ve.value(Pn)),onClick:Un=>Lt(Pn)},[createVNode(wn,{icon:le.value+Pn,width:"20px",height:"20px"},null,8,["icon"])],12,_hoisted_4))),128))])]),_:1})]),_:2},1032,["label","name"])),64))]),_:1},8,["modelValue"]),createBaseVNode("div",_hoisted_5,[createVNode(Mn,{class:"flex-auto ml-2",total:de.value,"current-page":he.value,"page-size":pe.value,"pager-count":5,layout:"pager",background:"",small:"",onCurrentChange:hn},null,8,["total","current-page","page-size"]),createVNode(Vn,{class:"justify-end mr-2 ml-2",type:"danger",size:"small",text:"",bg:"",onClick:Cn},{default:withCtx(()=>[createTextVNode(" 清空 ")]),_:1})])]),_:1})]),_:1},8,["modelValue"])])}}}),Select_vue_vue_type_style_index_0_scoped_43f9970c_lang="",iconSelect=_export_sfc(_sfc_main,[["__scopeId","data-v-43f9970c"]]),fontIcon=defineComponent({name:"FontIcon",props:{icon:{type:String,default:""}},render(){const t=this.$attrs;return Object.keys(t).includes("uni")||(t==null?void 0:t.iconType)==="uni"?h$2("i",{class:"iconfont",...t},this.icon):Object.keys(t).includes("svg")||(t==null?void 0:t.iconType)==="svg"?h$2("svg",{class:"icon-svg","aria-hidden":!0},{default:()=>[h$2("use",{"xlink:href":`#${this.icon}`})]}):h$2("i",{class:`iconfont ${this.icon}`,...t})}}),IconifyIconOffline=iconifyIconOffline,IconifyIconOnline=iconifyIconOnline,IconSelect=iconSelect,FontIcon=fontIcon,auth=defineComponent({name:"Auth",props:{value:{type:void 0,default:[]}},setup(t,{slots:r}){return()=>{var $;return r&&hasAuth(t.value)?createVNode(Fragment,null,[($=r.default)==null?void 0:$.call(r)]):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:"/iframe/pure",name:"FramePure",meta:{title:"menus.hsPureDocument",frameSrc:"https://yiming_chang.gitee.io/pure-admin-doc",roles:["admin","common"]}},{path:"/external",name:"https://yiming_chang.gitee.io/pure-admin-doc",meta:{title:"menus.externalLink",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,activePath:"/tabs/index",roles:["admin","common"]}},{path:"/tabs/params-detail/:id",component:"params-detail",name:"TabParamsDetail",meta:{showLink:!1,activePath:"/tabs/index",roles:["admin","common"]}}]},asyncRoutes=[{url:"/get-async-routes",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:"/get-card-list",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证书又叫服务器证书,腾讯云为您提供证书的一站式服务,包括免费、付费证书的申请、管理及部"}]}})},{url:"/releases",method:"get",response:()=>({success:!0,data:{list:[{created_at:"2023-06-26T03:14:25Z",published_at:"2023-06-26T03:17:23Z",body:"# 4.5.0 (2023-06-26)\r\n\r\n### ✔️ refactor\r\n\r\n- 重构图片裁剪 `ReCropper` 组件,添加更多实用功能\r\n\r\n### 🎫 Feat\r\n\r\n- 菜单搜索功能支持拼音搜索,比如搜图片裁剪,输入 `tp` 或 `tupian` 等对应拼音即可\r\n- 添加长按指令及使用示例,该长按指令支持自定义时长的持续回调\r\n- 添加敏感词过滤功能示例\r\n- 添加汉语拼音功能示例\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复 `V4.4.0` 版本,页面开启 `keepAlive` 缓存后第一次加载并未缓存页面的问题\r\n- 修复 `RePureTableBar` 组件初始化时列设置勾选项未根据 `hide` 属性正确初始化\r\n\r\n### 🍏 Perf\r\n\r\n- 将 `VITE_PUBLIC_PATH` 默认改为 `./` 兼容更多路径场景,\r\n- 兼容 `VITE_PUBLIC_PATH` 为 `url` 的 `OSS` 场景,需将 `@pureadmin/theme` 升级至最新版"},{created_at:"2023-06-14T02:52:19Z",published_at:"2023-06-14T02:54:41Z",body:"# 4.4.0 (2023-06-14)\r\n\r\n### 🎫 Feat\r\n\r\n- 路由 `meta` 添加 `activePath` 属性,可将某个菜单激活(主要用于通过 `query` 或 `params` 传参的路由,当它们通过配置 `showLink: false` 后不在菜单中显示,就不会有任何菜单高亮,而通过设置 `activePath` 指定激活菜单即可获得高亮,`activePath` 为指定激活菜单的 `path` [查看详情](https://github.com/pure-admin/vue-pure-admin/commit/58cafbc73ffa27253446ee93077e1e382519ce8a#commitcomment-117834411))\r\n- `pure-admin-table` 高级用法添加自适应内容区高度示例\r\n- 添加防抖、节流和文本复制指令并规范自定义指令用法错误时的提示以及添加使用示例\r\n- `notice` 消息提示组件空数据时添加 `el-empty` 组件\r\n- 函数式弹窗示例代码添加子组件 `prop` 为 `primitive` 类型的示例\r\n- 添加 `vscode-docker` 插件\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复国际化切换到英文模式刷新会回到中文模式\r\n- 修复搜索菜单功能的弹框遮罩未覆盖左侧菜单的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 页面切换性能优化,不考虑网络的情况下,页面切换逻辑的速度差不多比之前快 `3-4` 倍 [查看优化详情](https://github.com/pure-admin/vue-pure-admin/pull/600#issuecomment-1586094078)\r\n- 优化标签页操作-路由传参模式用法\r\n- 系统管理中表格均改为自适应内容区高度,需将 `@pureadmin/table` 升级到最新版\r\n- 使用 `vueuse` 的 `useResizeObserver` 函数替换 `v-resize` 自定义指令,从测试后的表现来看性能会更好\r\n- 对未解绑的公共事件,在页面销毁时解绑"},{created_at:"2023-06-04T04:11:51Z",published_at:"2023-06-04T04:13:24Z",body:"# 4.3.0 (2023-06-04)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `docker` 支持\r\n- 添加项目版本实时更新检测功能\r\n- 完善系统管理-角色管理页面\r\n- 瀑布流组件添加无限滚动\r\n- 函数式弹框添加 `updateDialog` 更改弹框自身属性值方法\r\n- `wangeditor` 富文本添加多个富文本和自定义图片上传示例\r\n- `pure-table` 表格高级用法添加保留已选中的 `CheckBox` 选项示例\r\n- `RePureTableBar` 组件添加 `title` 插槽\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复获取验证码倒计时会有 `1s` 延时禁用的问题\r\n- 修复图标选择器未正确初始化预览问题\r\n- 修复动态路由重定向造成标签页出现重复内容\r\n- 修复强制刷新页面 `getTopMenu()` 函数获取不到 `path` 报错的问题\r\n- 修复左侧菜单折叠后突然拉升造成左侧菜单整体不显示的问题\r\n- 修复 `RePureTableBar` 关闭列设置后在 `windows` 出现滚动条的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化标签页操作-路由传参模式用法\r\n- 优化菜单搜索功能和样式\r\n- 更新 `vscode` 代码片段\r\n- 优化 `dataThemeChange` 主题设置的初始化调用时机"},{created_at:"2023-05-15T07:03:57Z",published_at:"2023-05-15T07:04:54Z",body:"# 4.2.0 (2023-05-15)\r\n\r\n### 🎫 Feat\r\n\r\n- 新增分段控制器组件并适配暗黑模式\r\n- 静态路由支持配置数组格式\r\n- 函数式弹框组件添加全屏、退出全屏操作按钮\r\n- 新增组件-瀑布流 `demo`\r\n- 添加 `Exclusive` 类型互斥语法糖\r\n\r\n### 🍏 Perf\r\n\r\n- 规范 `template` 模版中路由写法,不再使用 `$route` 和 `$router`,此写法 `vue-tsc` 编译不通过"},{created_at:"2023-05-11T17:45:43Z",published_at:"2023-05-11T17:47:10Z",body:"# 4.1.0 (2023-05-12)\r\n\r\n### 🎫 Feat\r\n\r\n- 函数式弹框组件添加结合 `Form` 的 `demo` 示例\r\n- 封装 `element-plus` 的 `el-col` 组件\r\n- 函数式弹框组件添加 `beforeCancel` 和 `beforeSure` 回调,可暂停弹框的关闭\r\n- 完善 `系统管理-部门管理` 页面\r\n- 优化 `PureTableBar` 组件,列展示添加拖拽功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复开启 `keepAlive` 后点击标签页的重新加载,页面缓存还存在的问题\r\n- 修复混合模式菜单下刷新页签后左侧菜单会闪烁一下的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化首页布局\r\n- 依赖更新到 `vue3.3+` 以及删除 `unplugin-vue-define-options` 插件"},{created_at:"2023-05-09T08:11:28Z",published_at:"2023-05-09T08:14:55Z",body:'# 4.0.0 (2023-05-09)\r\n\r\n[查看 4.0.0 版本优化细节](https://github.com/pure-admin/vue-pure-admin/issues/428#issuecomment-1422191158)\r\n\r\n### ✔️ refactor\r\n\r\n- 采用 `css` 伪类 `before` 写法重构菜单的激活背景,类似于 [ant.design-menu](https://ant.design/components/menu-cn#components-menu-demo-inline-collapsed)\r\n\r\n### 🎫 Feat\r\n\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 可配置首页菜单显示与隐藏\r\n- 将本地响应式存储的命名空间提升到全局配置中\r\n- 新增函数式弹框组件以及 `demo` 示例,使用更便捷\r\n- `PureTableBar` 组件添加列展示功能\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复当菜单折叠或展开时首页 `echarts` 图表未自适应容器\r\n- 修复当只有一个子菜单时,搜索功能搜索不到该子菜单问题\r\n- 修复全局配置 `Theme` 为 `light` 清空缓存重新登录主题配置不生效的问题\r\n- 修复菜单搜索功能弹框打开后搜索框未自动聚集的问题\r\n- 修复按 `ESC` 退出全屏后,工具栏按钮文案展示问题\r\n- 修复移动端通知栏 `tooltip` 点击穿透问题\r\n- 修复当左侧菜单收起后,切换到 `horizontal` 导航模式时文字不展示的问题\r\n- 修复导航 `tab` 关闭其他标签页无法重置状态问题\r\n- 修复 `getHistoryMode` 函数中环境变量未初始化带来的页面热更新报错\r\n- 修复导航 `tab` 过多导致关闭左侧标签页无法正常显示\r\n- 修复点击内容区全屏报错问题\r\n- 修复混合导航下打开 `showLink:false` 页面并刷新后,左侧导航栏一直处于加载状态的问题\r\n- 修复混合模式导航下调用 `initRouter` 函数导致左侧导航内存溢出问题\r\n- 修复关闭左侧、右侧、其他、全部标签页操作时缓存页面并没有销毁问题\r\n- 修复路由通过 `query` 或 `params` 传参,开启缓存后关闭标签页缓存失效问题\r\n- 修复 `params` 路由传参模式下,面包屑无法找到父级路径问题\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `RePureTableBar` 组件的 `buttons` 具名插槽\r\n- 优化导航样式以及菜单折叠动画\r\n- 优化菜单名称右侧的额外图标,使其支持更多图标渲染模式\r\n- 优化 `logo` 图和文字布局以及统一配置\r\n- 路由信息 `showLink` 设置成 `false` 后,当前路由信息不添加到标签页\r\n- 导出 `addPathMatch` 函数\r\n- `pinia` 中所有 `getters` 改为官方推荐写法,`this` 改成 `state` 可自动推导类型\r\n- 适配最新版 `pure-table` 的 `api`\r\n- 忽略 `sourcemap-codec` 和 `stable` 依赖包的 `deprecation` 警告\r\n- 从 `tsconfig.json` 文件中移除 `"incremental": true`\r\n- 更新 `stylelint` 以及相关配置至最新,强化样式校验\r\n- 面包屑去首页化,根据选择的菜单对应显示,首页不在固定到面包屑里,并优化面包屑页面的路由监听'},{created_at:"2022-12-26T06:31:04Z",published_at:"2022-12-26T06:32:38Z",body:"# 3.9.7 (2022-12-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 使用 `path.posix.resolve` 替代 `path.resolve` 避免 `windows` 环境下使用 `electron` 出现盘符问题\r\n- 默认关闭 `CachingAsyncRoutes` 动态路由缓存本地,使其在开发环境下调试更方便,不用每次修改动态路由都要先清空本地缓存的动态路由,更推荐在生产环境开启"},{created_at:"2022-12-19T04:14:18Z",published_at:"2022-12-19T04:15:41Z",body:`# 3.9.6 (2022-12-19)\r \r ### 🎫 Chores\r \r - 升级 \`vite4\` 版本\r \r ### 🐞 Bug fixes\r \r - 修复 \`tailwind.css\` 错误的引入方式导致 \`vite\` 的 \`hmr\` 慢的问题\r \r ### 🍏 Perf\r \r - 更新 [@pureadmin/theme](https://github.com/pure-admin/pure-admin-theme) 至最新版,带来更友好的类型提示\r - 优化 [PureTableBar](https://github.com/xiaoxian521/vue-pure-admin/tree/main/src/components/RePureTableBar) 组件\r - 优化系统管理页面业务代码,带来更好的代码参考`},{created_at:"2022-12-13T06:19:31Z",published_at:"2022-12-13T06:20:30Z",body:`# 3.9.5 (2022-12-13)\r \r ### ✔️ refactor\r \r - 完全移除了 \`lodash\` 和其相关库\r [点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-5-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-lodash-%E5%92%8C%E5%85%B6%E7%9B%B8%E5%85%B3%E5%BA%93-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r \r ### 🎫 Feat\r \r - 添加 \`@pureadmin/table\` 表格动态列示例\r \r ### 🐞 Bug fixes\r \r - 修复动态路由 \`rank\` 问题\r - 修复暗黑主题样式问题\r \r ### 🍏 Perf\r \r - 优化路由 \`rank\` ,当 \`rank\` 不存在时,根据顺序自动创建,首页路由永远在第一位`},{created_at:"2022-12-05T05:59:54Z",published_at:"2022-12-05T06:04:01Z",body:`# 3.9.4 (2022-12-05)\r \r ### ✔️ refactor\r \r - 完全移除了 \`vxe-table\`,移除后,完整版整体打包大小减少 \`1.82MB\`,首启动时长基本和精简版持平 🐮\r [点击此处查看为什么移除?如何自行集成?](https://yiming_chang.gitee.io/pure-admin-doc/pages/FAQ/#%E5%B9%B3%E5%8F%B0%E5%9C%A8-v3-9-4-%E7%89%88%E6%9C%AC%E5%AE%8C%E5%85%A8%E7%A7%BB%E9%99%A4%E4%BA%86-vxe-table-%E4%B8%BA%E4%BB%80%E4%B9%88%E7%A7%BB%E9%99%A4-%E5%A6%82%E4%BD%95%E8%87%AA%E8%A1%8C%E9%9B%86%E6%88%90)\r \r ### 🎫 Feat\r \r - 添加 \`@pureadmin/table\` 表格选择器(单选、多选)示例`},{created_at:"2022-12-04T08:45:47Z",published_at:"2022-12-04T08:46:59Z",body:`# 3.9.3 (2022-12-04)\r \r ### 🎫 Feat\r \r - 添加 \`@pureadmin/table\` 分页和加载动画示例\r \r ### 🐞 Bug fixes\r \r - 修复开启 \`CachingAsyncRoutes\` 后,存入本地存储的动态路由改变造成刷新页面空白的问题\r - 修复菜单折叠后 \`Tooltip\` 显示异常\r \r ### 🍏 Perf\r \r - 扩展本地图标使用方式,完整版首启动再次减少 \`13\` 个请求\r - 当菜单加载慢时,添加 \`loading\` 动画,优化用户体验\r - 主题初始化放在 \`onBeforeMount\` 里,避免初始化页面闪烁`},{created_at:"2022-12-03T07:02:17Z",published_at:"2022-12-03T07:03:09Z",body:"# 3.9.2 (2022-12-03)\r\n\r\n### 🍏 Perf\r\n\r\n- 全局覆盖 `element-plus` 的 `el-dialog`、`el-drawer`、`el-message-box`、`el-notification` 组件右上角关闭图标的样式,使其表现更鲜明 [具体代码修改记录](https://github.com/xiaoxian521/vue-pure-admin/commit/c80818d792276666aaea4b18413a0f08777f2ed1)\r\n- 打包输出信息兼容不同打包输出路径\r\n- 优化一些动画"},{created_at:"2022-12-02T11:32:48Z",published_at:"2022-12-02T11:33:45Z",body:"# 3.9.1 (2022-12-02)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `CachingAsyncRoutes` 是否开启动态路由缓存本地的全局配置,默认 `true`\r\n- 添加 `TooltipEffect` 全局配置,可配置平台主体所有 `el-tooltip` 的 `effect` 属性,默认 `light`,不影响业务代码\r\n- 添加目录、菜单文字超出显示 `Tooltip` 文字提示演示\r\n\r\n### 🍏 Perf\r\n\r\n- 优化 `initRouter` 方法,兼容 `sso` 场景\r\n- 面包屑动画样式优化"},{created_at:"2022-11-30T06:11:08Z",published_at:"2022-11-30T06:12:32Z",body:`# 3.9.0 (2022-11-30)\r \r ### 🐞 Bug fixes\r \r - 修复退出全屏时文字过长导致页面出现滚动条后带来的抖动问题\r - 修复一些类型错误\r \r ### 🍏 Perf\r \r - perf: 首屏加载大优化,对比 \`3.9.0\` 之前版本,首屏请求减少 \`71\` 个,首屏加载资源减少 \`4.1 MB\``},{created_at:"2022-11-27T17:25:43Z",published_at:"2022-11-27T17:27:59Z",body:"# 3.8.7 (2022-11-28)\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 打包大优化,请务必升级!使用 `unplugin-vue-define-options` 替换 `unplugin-vue-macros` ,打包速度提升数倍,使用 `unplugin-vue-macros` 以性能中等偏上的 `mac` 为例完整版打包时长为 `6` 分钟 😭,使用 `unplugin-vue-define-options` 替换后,相同电脑下打包时长为 `50` 秒 ☺️"},{created_at:"2022-11-27T08:34:46Z",published_at:"2022-11-27T08:35:49Z",body:"# 3.8.6 (2022-11-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `message` 消息提示函数,兼容 `Element Plus` 和 `Ant Design` 两种 `Message` 样式风格,使用和打包大小成本极低并适配暗黑模式,真香 😂\r\n\r\n### 🍏 Perf\r\n\r\n- perf: 无需安装 `@vue/runtime-core` ,兼容所有 `element-plus` 组件的 `volar` 提示"},{created_at:"2022-11-26T16:03:19Z",published_at:"2022-11-26T16:04:41Z",body:"# 3.8.5 (2022-11-26)\r\n\r\n### 🍏 Perf\r\n\r\n- 大优化,移除 `@pureadmin/components` 并采用兼容写法,平台打包大小在未启用压缩前对比优化前减少 `0.4` MB , 首屏请求减少 `2.3` MB 的资源,这对于 [精简版](https://github.com/xiaoxian521/pure-admin-thin) 来说是非常大的优化,精简版已经同步代码"},{created_at:"2022-11-26T07:07:07Z",published_at:"2022-11-26T07:08:11Z",body:"# 3.8.0 (2022-11-26)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `@pureadmin/table` 多种数据格式(深层结构)示例\r\n- 添加 `@pureadmin/table` 图像预览示例\r\n- 添加 `@pureadmin/table` 行、列拖拽示例\r\n- 添加 `@pureadmin/table` 右键菜单示例\r\n- 添加 `@pureadmin/table` 导出 `Excel` 示例\r\n- 添加 `@pureadmin/table` 编辑单元格示例\r\n- 添加 `@pureadmin/table` 水印示例\r\n- 添加 `@pureadmin/table` 打印示例\r\n- 添加 `@pureadmin/table` 内嵌 `echarts` 图表示例\r\n- 添加 `svgo` 压缩平台所有 `svg` 文件,减少体积\r\n\r\n### 🍏 Perf\r\n\r\n- 静态路由平台自动导入,无需手动引入\r\n- 更完善的全局类型提示\r\n- 优化 `vite` 依赖预构建在平台里的配置,页面切换加载速度显著加快"},{created_at:"2022-11-21T17:00:04Z",published_at:"2022-11-21T17:00:42Z",body:`# 3.7.1 (2022-11-22)\r \r ### 🔥 hotfix\r \r - 修复在未开启标签页缓存时退出登录,可能存在标签页未重置的问题`},{created_at:"2022-11-21T09:14:22Z",published_at:"2022-11-21T09:15:24Z",body:"# 3.7.0 (2022-11-21)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `intro.js` 替换 `driver.js`\r\n\r\n### 🎫 Feat\r\n\r\n- 添加前端单点登录,测试地址 https://yiming_chang.gitee.io/vue-pure-admin/#/pure-table/index?username=sso&roles=admin&accessToken=eyJhbGciOiJIUzUxMiJ9.admin\r\n- 为 [@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table) 添加更多的示例和 `element-plus` 的 [table](https://element-plus.org/zh-CN/component/table.html) 示例保持一致\r\n- 丰富水印功能页面(支持自定义各种颜色、阴影、文字、额外属性、设置不可删除水印以及给指定元素设置水印)\r\n- 优化菜单,添加 `MenuArrowIconNoTransition` 全局配置,在 `public/platform-config.json` 中配置即可,对于出现左侧菜单模式,菜单展开卡顿的可设置 `MenuArrowIconNoTransition: true` 即可解决\r\n- 更换表单设计器组件演示\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复页内菜单带参互相跳转,标签没有选中高亮\r\n\r\n### 🍏 Perf\r\n\r\n- 删除已废弃的 `$baseUrl`\r\n- 兼容引入某个库导致 `global is not defined` 报错,将 `src/utils/globalPolyfills.ts` 文件引入 `src/main.ts` 即可解决\r\n- 删除 `@vitejs/plugin-legacy`,`vue3` 无法通过任何工具使其支持 `ie`"},{created_at:"2022-11-10T04:17:05Z",published_at:"2022-11-10T04:18:18Z",body:`# 3.6.4 (2022-11-10)\r \r ### 🎫 Feat\r \r - 菜单图标 \`icon\` 支持使用在线图标\r \r ### 🐞 Bug fixes\r \r - 修复 \`vxe-button\` 鼠标覆盖后字体颜色问题以及一些别的样式问题\r \r ### 🍏 Perf\r \r - 优化路由守卫,如果已经登录并存在登录信息后不能跳转到路由白名单,而是继续保持在当前页面\r - 将 \`baseURL\` 和全局环境代理删除,可直接在 \`vite.config.ts\` 编写,即方便又支持多个代理地址`},{created_at:"2022-11-01T08:18:12Z",published_at:"2022-11-01T08:19:22Z",body:"# 3.6.3 (2022-11-01)\r\n\r\n### 🎫 Feat\r\n\r\n- 静态资源分类打包\r\n- 添加弹幕组件 `demo`\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复 `tailwindcss` 最新版新增的 `collapse` 属性与平台 `class` 类名冲突\r\n- 修复当 `token` 过期后,如果页面有多个请求会重复刷新 `token`"},{created_at:"2022-10-27T04:58:44Z",published_at:"2022-10-27T04:59:32Z",body:"# 3.6.2 (2022-10-27)\r\n\r\n### ✔️ refactor\r\n\r\n- 使用`@/`别名替换`/@/`别名"},{created_at:"2022-10-26T18:42:33Z",published_at:"2022-10-26T18:43:31Z",body:"# 3.6.1 (2022-10-27)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加打包是否启动`cdn`替换本地库配置,默认`false`不启动\r\n- 添加打包构建可选`gzip`与`brotli`压缩模式\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复`title`过长显示样式问题\r\n- 修复路由中父级`name`不应和子级`name`重复,会造成重定向跳转`404`问题\r\n\r\n### 🍏 Perf\r\n\r\n- 升级`axios`至最新版"},{created_at:"2022-10-25T05:07:18Z",published_at:"2022-10-25T05:08:18Z",body:"# 3.6.0 (2022-10-25)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加文件下载`demo`\r\n- 添加打字机组件`demo`\r\n- 添加`json`编辑器`demo`\r\n\r\n### ✔️ refactor\r\n\r\n- 重构权限模块,采用目前最常用的`RBAC`(Role-Based Access List): 基于角色的权限控制( 用户 -> 角色 -> 权限 ),并更新页面权限和按钮权限`demo`示例,按钮权限支持三种操作模式(组件方式判断权限、函数方式判断权限、指令方式判断权限)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- 修复清空缓存并返回登录页时未清空主题\r\n- 修复`horizontal`模式下`menu`在生产环境显示问题\r\n- 修复`mix`混合模式导航在生产环境左侧菜单一定机率不显示的问题\r\n- `token`过期后调用刷新`token`接口会无限循环的问题\r\n\r\n### 🍏 Perf\r\n\r\n- 从`tailwind.css`中移除不常用的`@apply`\r\n- 使用`/** */`替换`//`注释,对编辑器的智能提示更友好\r\n- 优化登录回车事件\r\n- 简化了一些函数,剔除了无用函数,优化了页面加载速度"},{created_at:"2022-09-10T13:44:17Z",published_at:"2022-09-10T13:46:11Z",body:"# 3.5.0 (2022-9-10)\r\n\r\n### 🎫 Feat\r\n\r\n- 添加 `cssnano` ,打包时压缩 `css` 体积\r\n- 添加 `element-plus` 无缝滚动 `Table` 页面 demo\r\n- 开启 `vscode` 括号对指南\r\n\r\n### ✔️ refactor\r\n\r\n- 使用 `tailwindcss` 替换 `unocss`,新增 `tailwindcss` [使用文档](http://yiming_chang.gitee.io/pure-admin-doc/pages/39156f/)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `token` 过期,刷新死循环\r\n\r\n### 🍏 Perf\r\n\r\n- 重置路由时,清空缓存页面"},{created_at:"2022-08-23T02:31:44Z",published_at:"2022-08-23T02:32:49Z",body:"# 3.4.6 (2022-8-23)\r\n\r\n### 🐞 Bug fixes\r\n\r\n- `process` is not defined in path\r\n- 修复动态路由`children`为空数组时报错\r\n- 修复`iframe`加载失败"},{created_at:"2022-08-22T12:21:53Z",published_at:"2022-08-22T12:23:21Z",body:`# 3.4.5 (2022-8-22)\r \r ### 🐞 Bug fixes\r \r - 修复本地响应式存储对象设置问题`},{created_at:"2022-08-22T09:21:18Z",published_at:"2022-08-22T09:22:26Z",body:"# 3.4.0 (2022-8-22)\r\n\r\n### 🍏 Perf\r\n\r\n- 优化路由\r\n- 优化移动端兼容性\r\n- 优化路由传参(`query`、`params` 方式刷新页面不需要再开启标签页缓存也能保留参数在`url`和`标签页`上)"},{created_at:"2022-08-19T07:29:06Z",published_at:"2022-08-19T07:31:08Z",body:`# 3.3.5 (2022-8-19)\r \r ### 🎫 Feat\r \r - 将 \`element-plus\` 的 \`Table\` 二次封装到[@pureadmin/table](https://github.com/xiaoxian521/pure-admin-table),提供灵活的配置项并集成到平台里\r - 将 \`element-plus\` 的 \`Descriptions\` 二次封装到[@pureadmin/descriptions](https://github.com/xiaoxian521/pure-admin-descriptions),提供灵活的配置项并集成到平台里\r - 将平台的大部分工具以及 hooks 都集中到[@pureadmin/utils](https://pure-admin-utils-docs.vercel.app/),并删除集中到这个库里的代码,减少平台体积\r - 添加[unplugin-vue-define-options](https://www.npmjs.com/package/unplugin-vue-define-options)插件,页面可直接写 \`defineOptions({name: 自定义名称})\`\r - 添加项目文件、语言分析工具 [cloc](https://www.npmjs.com/package/cloc)\r - 添加登陆页国际化\r - 添加完整路由配置表类型声明\r - 添加虚拟列表页面 demo\r - 添加 \`PDF\` 预览页面 demo\r - 添加导出 \`excel\` 页面 demo\r - 添加无 \`Layout\` 的空白页面 demo\r \r ### ✔️ refactor\r \r - 重构主题色,适配 \`element-plus\` 暗黑模式(同时也解决了 \`3.3.0\` 及更低版本中同样的元素 \`css\` 被多次覆盖,导致样式不好调试的问题)\r - 重构路由重置功能\r \r ### 🍏 Perf\r \r - 兼容项目存放目录以中文命名,但我们真心不推荐中文命名,因为可能某个库没有对中文路径做转义处理,导致项目奔溃\r - 优化接口类型\r \r ### 🐞 Bug fixes\r \r - 修复路由 \`showlink\` 为 \`false\` 的异步路由,刷新后不显示\r - 修复当没有 \`icon\` 时,垂直导航菜单折叠后文字被隐藏`},{created_at:"2022-05-11T07:51:38Z",published_at:"2022-05-11T07:52:31Z",body:`# 3.3.0 (2022-5-11)\r \r ### 🎫 Feat\r \r - 添加用户管理页面 demo\r - 添加角色管理页面 demo\r - 添加部门管理页面 demo\r - 添加卡片列表页面 demo\r - 集成表单设计器\r - 新增\`PPT\`demo\r - 在功能菜单中新增防抖截流 demo\r - 升级\`wangeditorV5\`(并支持国际化和自定义主题)\r - 集成\`tauri\`版本\r - 新增条形码功能\r - 新增二维码功能\r - 使用\`element-plus\`中的\`Cascader\`级联选择器编写中国省市区三级、二级联动 demo\r - 集成\`Swiper\`插件\r - 路由支持传\`component\`,代表组件路径\r - 添加预发布打包模式\r - 添加关闭某个标签的[hooks](https://github.com/xiaoxian521/vue-pure-admin/commit/5e8723a031923e79f507e5a17151d3bd88a51523)\r \r ### ✔️ refactor\r \r - 重构登陆页,更偏向实际业务场景\r - 使用\`unocss\`替换\`windicss\`,\`unocss\`开发环境下性能更好,没有内存泄露,而且\`api\`使用上兼容\`windicss\`\r \r ### 🍏 Perf\r \r - 优化平台的\`split-pane\`组件样式\r - 优化国际化,路由不再传\`i18n\`字段,平台自动读取根目录\`locales\`文件夹下文件进行国际化匹配\r - 优化图标选择器\r - 优化\`layout\`显示用户信息[commit](https://github.com/xiaoxian521/vue-pure-admin/commit/56f9dc85e7fbe0637605c43577c794de9f8968aa)\r \r ### 🐞 Bug fixes\r \r - 修复路由初始化问题(Cannot access 'constantRoutes' before initialization)`},{created_at:"2022-03-21T16:25:55Z",published_at:"2022-03-21T16:27:00Z",body:`# 3.2.0 (2022-3-22)\r \r ### 🎫 Feat\r \r - 图标选择组件\r - 菜单搜索功能\r - 添加结果页面\r - 扩展\`element-plus\`时间线组件\r - 扩展\`element-plus\`树组件,支持连接线\r - 添加树形选择器,支持单选和多选\r \r ### 🍏 Perf\r \r - 优化错误页面 UI\r - 优化国际化功能\r - 优化路由\`rank\`排序,兼容路由\`meta\`中\`rank\`字段值为\`null\`的情况\r \r ### 🐞 Bug fixes\r \r - 修复菜单展开折叠在部分电脑出现卡顿的情况`},{created_at:"2022-03-03T14:57:11Z",published_at:"2022-03-03T14:57:55Z",body:`# 3.1.0 (2022-3-3)\r \r ### 🎫 Feat\r \r - iframe 支持动态加载\r - 水印示例\r - 打印示例(图片、表格、echarts)\r - 添加运行、打包信息, 使用\`lodash-unified\`替换\`lodash-es\`,\`lodash-unified\`支持\`ESM\`同时兼容\`CJS\`\r \r ### 🐞 Bug fixes\r \r - 修复在一个菜单页面内单独跳转到另一个菜单页面,路由页面跳转了但是标签页不显示的情况\r - 修复后台返回动态三级及以上的路由,出现菜单与页面不对应的情况`},{created_at:"2022-02-14T15:19:32Z",published_at:"2022-02-14T15:20:32Z",body:`# 3.0 (2022-2-14)\r \r ### 🎫 Feat\r \r - 添加混合导航\r \r ### 🐞 Bug fixes\r \r - 修复标签页 bug`},{created_at:"2022-02-05T09:36:21Z",published_at:"2022-02-05T09:38:09Z",body:`# 2.9.0(2022-2-5)\r \r ### 🎫 Feat\r \r - 添加打包大小分析,命令\`pnpm report\`\r \r ### 🍏 Perf\r \r - 采用\`iconify\`按需引入图标,优化图标大小,减少网络请求\r - 优化路由,路由可不传\`showLink: true\`,默认显示`},{created_at:"2022-01-21T08:46:48Z",published_at:"2022-01-21T08:49:38Z",body:`# 2.8.5(2022-1-21)\r \r ### 🎫 Feat\r \r - 添加 \`WindiCSS\` 支持\r - 添加线上环境删 console 插件\`vite-plugin-remove-console\`\r \r ### ✔️ refactor\r \r - 使用\`@iconify-icons/ep\`替换\`@element-plus/icons-vue\``},{created_at:"2022-01-04T11:52:05Z",published_at:"2022-01-04T11:53:17Z",body:`# 2.8.0(2022-1-4)\r \r ### 🎫 Feat\r \r - 添加暗黑主题\r - 添加 element-plus 自定义主题\r - 添加引导页\r \r ### 🍏 Perf\r \r - 优化国际化,兼容 vscode 插件 i18n Ally 智能提醒\r - 优化后端返回路由结构\r - 优化本地存储,内置四个键\`responsive-configure\`、\`responsive-locale\`、\`responsive-layout\`、\`responsive-tags\`,分别为基本配置、国际化配置、布局配置、标签页持久化配置`},{created_at:"2021-12-18T05:56:21Z",published_at:"2021-12-18T05:57:55Z",body:`# 2.7.0(2021-12-18)\r \r ### 🎫 Feat\r \r - 新增标签页复用\r - 新增消息提醒模版\r - 新增前端菜单树结构例子\r - 重构路由,优化权限模块,带来更方便的体验\r - 重构 env 环境和 http 请求,带来更方便的体验\r - 目前平台的标签页强制关联了本地存储,下一步标签页默认放到内存中并支持可配置持久化标签页\r - 导航菜单图标支持 fontawesome、iconfont、remixicon、element-plus/icons、自定义 svg\r - 更新 font-awesome 到 5.0 版本,因为 5.0 以下的版本官方不再维护,但平台依旧会兼容 font-awesome4 版本\r \r ### 🍏 Perf\r \r - 优化标签页,带来更好的交互体验\r - 路由 title 支持直接写中文,可脱离国际化\r - 路由历史模式从 env 读取并支持 base 参数\r - 打包后的文件提供传统浏览器兼容性支持,配置 VITE_LEGACY 为 true`},{created_at:"2021-11-10T05:30:48Z",published_at:"2021-11-10T05:33:37Z",body:`# 2.6.0(2021-11-10)\r \r ### 🎫 Feat\r \r - 重构导航主题色,支持多种配色\r - 重构登录页,插画风格\r \r ### 🍏 Perf\r \r - 优化导航样式\r - 剔除导航强依赖 vxe-table\r - 同步更新 element-plus,使用 SVG Icon 替换 Font Icon`},{created_at:"2021-10-14T09:50:03Z",published_at:"2021-10-14T09:52:01Z",body:`# 2.1.0(2021-10-14)\r \r ### 🎫 Feat\r \r - 路由动画(每个路由都可添加不同动画)\r - 额外图标(比如这个是新加的页面,路由菜单右上角显示个新图标)\r - 抽离默认配置选项\r - 完善类型文件\r \r ### 🐞 Bug fixes\r \r - 修复 element-plus 国际化使用问题\r - 修复路由问题\r - 修复导航适配问题`},{created_at:"2021-09-28T18:32:30Z",published_at:"2021-09-28T18:35:41Z",body:`# 2.0.1(2021-9-29)\r \r ### 🎫 Feat\r \r - 添加 horizontal 水平模式导航`},{created_at:"2021-04-13T10:53:29Z",published_at:"2021-04-13T10:57:50Z",body:`# 2.0.0(2021-4-13)\r \r ### 🎫 Chores\r \r - 发布 2.0.0 版本`}]}})}],__vite_glob_0_1=Object.freeze(Object.defineProperty({__proto__:null,default:list},Symbol.toStringTag,{value:"Module"})),login=[{url:"/login",method:"post",response:({body:t})=>t.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 t=[];for(let r=0;r<200;r++)t.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 t},map=[{url:"/get-map-info",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:"/refresh-token",method:"post",response:({body:t})=>t.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:"/user",method:"post",response:({body:t})=>{let r=[{username:"admin",nickname:"admin",avatar:"https://avatars.githubusercontent.com/u/44761321",phone:"15888886789",email:"@email",sex:0,id:1,status:1,dept:{id:103,name:"研发部门"},remark:"管理员",createTime:1605456e6},{username:"common",nickname:"common",avatar:"https://avatars.githubusercontent.com/u/52823142",phone:"18288882345",email:"@email",sex:1,id:2,status:1,dept:{id:105,name:"测试部门"},remark:"普通用户",createTime:1605456e6}];return r=r.filter($=>$.username.includes(t==null?void 0:t.username)),r=r.filter($=>String($.status).includes(String(t==null?void 0:t.status))),t.phone&&(r=r.filter($=>$.phone===t.phone)),t.deptId&&(r=r.filter($=>$.dept.id===t.deptId)),{success:!0,data:{list:r,total:r.length,pageSize:10,currentPage:1}}}},{url:"/list-all-role",method:"get",response:()=>({success:!0,data:[{id:1,name:"超级管理员"},{id:2,name:"普通角色"}]})},{url:"/list-role-ids",method:"post",response:({body:t})=>{if(t.userId){if(t.userId==1)return{success:!0,data:[1]};if(t.userId==2)return{success:!0,data:[2]}}else return{success:!1,data:[]}}},{url:"/role",method:"post",response:({body:t})=>{let r=[{createTime:1605456e6,updateTime:1684512e6,id:1,name:"超级管理员",code:"admin",status:1,remark:"超级管理员拥有最高权限"},{createTime:1605456e6,updateTime:1684512e6,id:2,name:"普通角色",code:"common",status:1,remark:"普通角色拥有部分权限"}];return r=r.filter($=>$.name.includes(t==null?void 0:t.name)),r=r.filter($=>String($.status).includes(String(t==null?void 0:t.status))),t.code&&(r=r.filter($=>$.code===t.code)),{success:!0,data:{list:r,total:r.length,pageSize:10,currentPage:1}}}},{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)"}]})}],__vite_glob_0_5=Object.freeze(Object.defineProperty({__proto__:null,default:system},Symbol.toStringTag,{value:"Module"}));var mock={exports:{}};(function(module,exports){(function(r,$){module.exports=$()})(commonjsGlobal,function(){return function(t){var r={};function $(V){if(r[V])return r[V].exports;var oe=r[V]={exports:{},id:V,loaded:!1};return t[V].call(oe.exports,oe,oe.exports,$),oe.loaded=!0,oe.exports}return $.m=t,$.c=r,$.p="",$(0)}([function(t,r,$){var V=$(1),oe=$(3),ie=$(5),le=$(20),ue=$(23),de=$(25),pe;typeof window<"u"&&(pe=$(27));/*! Mock - 模拟请求 & 模拟数据 https://github.com/nuysoft/Mock 墨智 mozhi.gyy@taobao.com nuysoft@gmail.com */var he={Handler:V,Random:ie,Util:oe,XHR:pe,RE:le,toJSONSchema:ue,valid:de,heredoc:oe.heredoc,setup:function(_e){return pe.setup(_e)},_mocked:{}};he.version="1.0.1-beta3",pe&&(pe.Mock=he),he.mock=function(_e,$e,Ie){return arguments.length===1?V.gen(_e):(arguments.length===2&&(Ie=$e,$e=void 0),pe&&(window.XMLHttpRequest=pe),he._mocked[_e+($e||"")]={rurl:_e,rtype:$e,template:Ie},he)},t.exports=he},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(t,r,$){r=r==null?"":r+"",$=$||{},$={path:$.path||[Constant.GUID],templatePath:$.templatePath||[Constant.GUID++],currentContext:$.currentContext,templateCurrentContext:$.templateCurrentContext||t,root:$.root||$.currentContext,templateRoot:$.templateRoot||$.templateCurrentContext||t};var V=Parser.parse(r),oe=Util.type(t),ie;return Handler[oe]?(ie=Handler[oe]({type:oe,template:t,name:r,parsedName:r&&r.replace(Constant.RE_KEY,"$1"),rule:V,context:$}),$.root||($.root=ie),ie):t},Handler.extend({array:function(t){var r=[],$,V;if(t.template.length===0)return r;if(t.rule.parameters)if(t.rule.min===1&&t.rule.max===void 0)t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Random.pick(Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})),t.context.path.pop(),t.context.templatePath.pop();else if(t.rule.parameters[2])t.template.__order_index=t.template.__order_index||0,t.context.path.push(t.name),t.context.templatePath.push(t.name),r=Handler.gen(t.template,void 0,{path:t.context.path,templatePath:t.context.templatePath,currentContext:r,templateCurrentContext:t.template,root:t.context.root||r,templateRoot:t.context.templateRoot||t.template})[t.template.__order_index%t.template.length],t.template.__order_index+=+t.rule.parameters[2],t.context.path.pop(),t.context.templatePath.pop();else for($=0;$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;i1&&(oe=r.context.path.slice(0),oe.pop(),oe=this.normalizePath(oe.concat(V)));try{t=V[V.length-1];for(var ie=r.context.root,le=r.context.templateRoot,ue=1;ue1/($+V)*$?!oe:oe):Math.random()>=.5},bool:function($,V,oe){return this.boolean($,V,oe)},natural:function($,V){return $=typeof $<"u"?parseInt($,10):0,V=typeof V<"u"?parseInt(V,10):9007199254740992,Math.round(Math.random()*(V-$))+$},integer:function($,V){return $=typeof $<"u"?parseInt($,10):-9007199254740992,V=typeof V<"u"?parseInt(V,10):9007199254740992,Math.round(Math.random()*(V-$))+$},int:function($,V){return this.integer($,V)},float:function($,V,oe,ie){oe=oe===void 0?0:oe,oe=Math.max(Math.min(oe,17),0),ie=ie===void 0?17:ie,ie=Math.max(Math.min(ie,17),0);for(var le=this.integer($,V)+".",ue=0,de=this.natural(oe,ie);ue1&&pe--,6*pe<1?_e=ue+(de-ue)*6*pe:2*pe<1?_e=de:3*pe<2?_e=ue+(de-ue)*(2/3-pe)*6:_e=ue,he[$e]=_e*255;return he},hsl2hsv:function(V){var oe=V[0],ie=V[1]/100,le=V[2]/100,ue,de;return le*=2,ie*=le<=1?le:2-le,de=(le+ie)/2,ue=2*ie/(le+ie),[oe,ue*100,de*100]},hsv2rgb:function(V){var oe=V[0]/60,ie=V[1]/100,le=V[2]/100,ue=Math.floor(oe)%6,de=oe-Math.floor(oe),pe=255*le*(1-ie),he=255*le*(1-ie*de),_e=255*le*(1-ie*(1-de));switch(le=255*le,ue){case 0:return[le,_e,pe];case 1:return[he,le,pe];case 2:return[pe,le,_e];case 3:return[pe,he,le];case 4:return[_e,pe,le];case 5:return[le,pe,he]}},hsv2hsl:function(V){var oe=V[0],ie=V[1]/100,le=V[2]/100,ue,de;return de=(2-ie)*le,ue=ie*le,ue/=de<=1?de:2-de,de/=2,[oe,ue*100,de*100]},rgb2hex:function($,V,oe){return"#"+((256+$<<8|V)<<8|oe).toString(16).slice(1)},hex2rgb:function($){return $="0x"+$.slice(1).replace($.length>4?$:/./g,"$&$&")|0,[$>>16,$>>8&255,$&255]}}},function(t,r){t.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(t,r,$){var V=$(6),oe=$(14);function ie(le,ue,de,pe){return de===void 0?V.natural(le,ue):pe===void 0?de:V.natural(parseInt(de,10),parseInt(pe,10))}t.exports={paragraph:function(le,ue){for(var de=ie(3,7,le,ue),pe=[],he=0;he1&&(ie=[].slice.call(arguments,0));var le=oe.options,ue=le.context.templatePath.join("."),de=oe.cache[ue]=oe.cache[ue]||{index:0,array:ie};return de.array[de.index++%de.array.length]}}},function(t,r){t.exports={first:function(){var $=["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($)},last:function(){var $=["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($)},name:function($){return this.first()+" "+($?this.first()+" ":"")+this.last()},cfirst:function(){var $="王 李 张 刘 陈 杨 赵 黄 周 吴 徐 孙 胡 朱 高 林 何 郭 马 罗 梁 宋 郑 谢 韩 唐 冯 于 董 萧 程 曹 袁 邓 许 傅 沈 曾 彭 吕 苏 卢 蒋 蔡 贾 丁 魏 薛 叶 阎 余 潘 杜 戴 夏 锺 汪 田 任 姜 范 方 石 姚 谭 廖 邹 熊 金 陆 郝 孔 白 崔 康 毛 邱 秦 江 史 顾 侯 邵 孟 龙 万 段 雷 钱 汤 尹 黎 易 常 武 乔 贺 赖 龚 文".split(" ");return this.pick($)},clast:function(){var $="伟 芳 娜 秀英 敏 静 丽 强 磊 军 洋 勇 艳 杰 娟 涛 明 超 秀兰 霞 平 刚 桂英".split(" ");return this.pick($)},cname:function(){return this.cfirst()+this.clast()}}},function(t,r){t.exports={url:function($,V){return($||this.protocol())+"://"+(V||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($){return this.word()+"."+($||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($){return this.character("lower")+"."+this.word()+"@"+($||this.word()+"."+this.tld())},ip:function(){return this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)+"."+this.natural(0,255)}}},function(t,r,$){var V=$(18),oe=["东北","华北","华东","华中","华南","西南","西北"];t.exports={region:function(){return this.pick(oe)},province:function(){return this.pick(V).name},city:function(ie){var le=this.pick(V),ue=this.pick(le.children);return ie?[le.name,ue.name].join(" "):ue.name},county:function(ie){var le=this.pick(V),ue=this.pick(le.children),de=this.pick(ue.children)||{name:"-"};return ie?[le.name,ue.name,de.name].join(" "):de.name},zip:function(ie){for(var le="",ue=0;ue<(ie||6);ue++)le+=this.natural(0,9);return le}}},function(t,r){var $={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 V(ie){for(var le={},ue=0,de;uero;ro++)so=Sn.charAt(ro),so===` `?(Or.seenCR||Or.line++,Or.column=1,Or.seenCR=!1):so==="\r"||so==="\u2028"||so==="\u2029"?(Or.line++,Or.column=1,Or.seenCR=!0):(Or.column++,Or.seenCR=!1)}return io!==Rn&&(io>Rn&&(io=0,bo={line:1,column:1,seenCR:!1}),jn(bo,io,Rn),io=Rn),bo}function Tn(Rn){po>Xn||(Xn>po&&(po=Xn,ho=[]),ho.push(Rn))}function xn(Rn){var jn=0;for(Rn.sort();jnXn?(Or=Sn.charAt(Xn),Xn++):(Or=null,Br===0&&Tn(Yo)),Or!==null?(Ur=Rn,jn=Ai(Or),jn===null&&(Xn=Rn),Rn=jn):(Xn=Rn,Rn=Ir)):(Xn=Rn,Rn=Ir),Rn}function Hr(){var Rn,jn,Or;return Rn=Xn,Sn.charCodeAt(Xn)===92?(jn=qo,Xn++):(jn=null,Br===0&&Tn(Zo)),jn!==null?(Oi.test(Sn.charAt(Xn))?(Or=Sn.charAt(Xn),Xn++):(Or=null,Br===0&&Tn(Ii)),Or!==null?(Ur=Rn,jn=Ni(Or),jn===null&&(Xn=Rn),Rn=jn):(Xn=Rn,Rn=Ir)):(Xn=Rn,Rn=Ir),Rn}function Gr(){var Rn,jn,Or,Fr;if(Rn=Xn,Sn.substr(Xn,2)===uo?(jn=uo,Xn+=2):(jn=null,Br===0&&Tn(Xo)),jn!==null){if(Or=[],Jo.test(Sn.charAt(Xn))?(Fr=Sn.charAt(Xn),Xn++):(Fr=null,Br===0&&Tn(Qo)),Fr!==null)for(;Fr!==null;)Or.push(Fr),Jo.test(Sn.charAt(Xn))?(Fr=Sn.charAt(Xn),Xn++):(Fr=null,Br===0&&Tn(Qo));else Or=Ir;Or!==null?(Ur=Rn,jn=Mi(Or),jn===null&&(Xn=Rn),Rn=jn):(Xn=Rn,Rn=Ir)}else Xn=Rn,Rn=Ir;return Rn}function Kr(){var Rn,jn,Or,Fr;if(Rn=Xn,Sn.substr(Xn,2)===ea?(jn=ea,Xn+=2):(jn=null,Br===0&&Tn(Ri)),jn!==null){if(Or=[],co.test(Sn.charAt(Xn))?(Fr=Sn.charAt(Xn),Xn++):(Fr=null,Br===0&&Tn(fo)),Fr!==null)for(;Fr!==null;)Or.push(Fr),co.test(Sn.charAt(Xn))?(Fr=Sn.charAt(Xn),Xn++):(Fr=null,Br===0&&Tn(fo));else Or=Ir;Or!==null?(Ur=Rn,jn=Di(Or),jn===null&&(Xn=Rn),Rn=jn):(Xn=Rn,Rn=Ir)}else Xn=Rn,Rn=Ir;return Rn}function to(){var Rn,jn,Or,Fr;if(Rn=Xn,Sn.substr(Xn,2)===ta?(jn=ta,Xn+=2):(jn=null,Br===0&&Tn(Li)),jn!==null){if(Or=[],co.test(Sn.charAt(Xn))?(Fr=Sn.charAt(Xn),Xn++):(Fr=null,Br===0&&Tn(fo)),Fr!==null)for(;Fr!==null;)Or.push(Fr),co.test(Sn.charAt(Xn))?(Fr=Sn.charAt(Xn),Xn++):(Fr=null,Br===0&&Tn(fo));else Or=Ir;Or!==null?(Ur=Rn,jn=Bi(Or),jn===null&&(Xn=Rn),Rn=jn):(Xn=Rn,Rn=Ir)}else Xn=Rn,Rn=Ir;return Rn}function Zr(){var Rn,jn;return Rn=Xn,Sn.substr(Xn,2)===uo?(jn=uo,Xn+=2):(jn=null,Br===0&&Tn(Xo)),jn!==null&&(Ur=Rn,jn=Vi()),jn===null&&(Xn=Rn),Rn=jn,Rn}function hr(){var Rn,jn,Or;return Rn=Xn,Sn.charCodeAt(Xn)===92?(jn=qo,Xn++):(jn=null,Br===0&&Tn(Zo)),jn!==null?(Sn.length>Xn?(Or=Sn.charAt(Xn),Xn++):(Or=null,Br===0&&Tn(Yo)),Or!==null?(Ur=Rn,jn=_o(Or),jn===null&&(Xn=Rn),Rn=jn):(Xn=Rn,Rn=Ir)):(Xn=Rn,Rn=Ir),Rn}var xr,ir=arguments.length>1?arguments[1]:{},Pr={regexp:An},zr=An,Ir=null,Wr="",Yr="|",Jr='"|"',Qr=function(Rn,jn){return jn?new V(Rn,jn[1]):Rn},no=function(Rn,jn,Or){return new oe([Rn].concat(jn).concat([Or]))},So="^",Eo='"^"',ra=function(){return new $("start")},oa="$",aa='"$"',ia=function(){return new $("end")},sa=function(Rn,jn){return new ue(Rn,jn)},la="Quantifier",ua=function(Rn,jn){return jn&&(Rn.greedy=!1),Rn},vo="{",yo='"{"',da=",",fa='","',wo="}",To='"}"',pa=function(Rn,jn){return new de(Rn,jn)},$o=",}",ha='",}"',ma=function(Rn){return new de(Rn,1/0)},va=function(Rn){return new de(Rn,Rn)},ga="+",ya='"+"',ba=function(){return new de(1,1/0)},Ca="*",Sa='"*"',Ea=function(){return new de(0,1/0)},xo="?",ko='"?"',wa=function(){return new de(0,1)},Po=/^[0-9]/,Ao="[0-9]",Ta=function(Rn){return+Rn.join("")},$a="(",xa='"("',ka=")",Pa='")"',Aa=function(Rn){return Rn},Oa=function(Rn){return new le(Rn)},Oo="?:",Ia='"?:"',Na=function(Rn){return new ie("non-capture-group",Rn)},Io="?=",Ma='"?="',Ra=function(Rn){return new ie("positive-lookahead",Rn)},No="?!",Da='"?!"',La=function(Rn){return new ie("negative-lookahead",Rn)},Ba="CharacterSet",Va="[",Fa='"["',za="]",Ha='"]"',Ua=function(Rn,jn){return new pe(!!Rn,jn)},ja="CharacterRange",Wa="-",Ga='"-"',Ka=function(Rn,jn){return new he(Rn,jn)},Ya="Character",qa=/^[^\\\]]/,Za="[^\\\\\\]]",_o=function(Rn){return new _e(Rn)},Xa=".",Ja='"."',Qa=function(){return new $("any-character")},ei="Literal",ti=/^[^|\\\/.[()?+*$\^]/,ni="[^|\\\\\\/.[()?+*$\\^]",lo="\\b",Mo='"\\\\b"',ri=function(){return new $("backspace")},oi=function(){return new $("word-boundary")},Ro="\\B",ai='"\\\\B"',ii=function(){return new $("non-word-boundary")},Do="\\d",si='"\\\\d"',li=function(){return new $("digit")},Lo="\\D",ui='"\\\\D"',ci=function(){return new $("non-digit")},Bo="\\f",di='"\\\\f"',fi=function(){return new $("form-feed")},Vo="\\n",pi='"\\\\n"',hi=function(){return new $("line-feed")},Fo="\\r",mi='"\\\\r"',vi=function(){return new $("carriage-return")},zo="\\s",gi='"\\\\s"',yi=function(){return new $("white-space")},Ho="\\S",_i='"\\\\S"',bi=function(){return new $("non-white-space")},Uo="\\t",Ci='"\\\\t"',Si=function(){return new $("tab")},jo="\\v",Ei='"\\\\v"',wi=function(){return new $("vertical-tab")},Wo="\\w",Ti='"\\\\w"',$i=function(){return new $("word")},Go="\\W",xi='"\\\\W"',ki=function(){return new $("non-word")},Ko="\\c",Pi='"\\\\c"',Yo="any character",Ai=function(Rn){return new Ue(Rn)},qo="\\",Zo='"\\\\"',Oi=/^[1-9]/,Ii="[1-9]",Ni=function(Rn){return new Fe(Rn)},uo="\\0",Xo='"\\\\0"',Jo=/^[0-7]/,Qo="[0-7]",Mi=function(Rn){return new Ve(Rn.join(""))},ea="\\x",Ri='"\\\\x"',co=/^[0-9a-fA-F]/,fo="[0-9a-fA-F]",Di=function(Rn){return new Ie(Rn.join(""))},ta="\\u",Li='"\\\\u"',Bi=function(Rn){return new $e(Rn.join(""))},Vi=function(){return new $("null-character")},Xn=0,Ur=0,io=0,bo={line:1,column:1,seenCR:!1},po=0,ho=[],Br=0;if("startRule"in ir){if(!(ir.startRule in Pr))throw new Error(`Can't start parsing from rule "`+ir.startRule+'".');zr=Pr[ir.startRule]}if($.offset=wn,$.text=En,xr=zr(),xr!==null&&Xn===Sn.length)return xr;throw xn(ho),Ur=Math.max(Xn,po),new Cn(ho,Ur$e)return!0;var Fe={path:he,type:pe,actual:_e,expected:$e,action:"is greater than",message:Ve};return Fe.message=de.message(Fe),Ie.push(Fe),!1},lessThan:function(pe,he,_e,$e,Ie,Ve){if(_e<$e)return!0;var Fe={path:he,type:pe,actual:_e,expected:$e,action:"is less to",message:Ve};return Fe.message=de.message(Fe),Ie.push(Fe),!1},greaterThanOrEqualTo:function(pe,he,_e,$e,Ie,Ve){if(_e>=$e)return!0;var Fe={path:he,type:pe,actual:_e,expected:$e,action:"is greater than or equal to",message:Ve};return Fe.message=de.message(Fe),Ie.push(Fe),!1},lessThanOrEqualTo:function(pe,he,_e,$e,Ie,Ve){if(_e<=$e)return!0;var Fe={path:he,type:pe,actual:_e,expected:$e,action:"is less than or equal to",message:Ve};return Fe.message=de.message(Fe),Ie.push(Fe),!1}};le.Diff=ue,le.Assert=de,t.exports=le},function(t,r,$){t.exports=$(28)},function(t,r,$){var V=$(3);window._XMLHttpRequest=window.XMLHttpRequest,window._ActiveXObject=window.ActiveXObject;try{new window.Event("custom")}catch{window.Event=function(Ve,Fe,Ue,qe){var Et=document.createEvent("CustomEvent");return Et.initCustomEvent(Ve,Fe,Ue,qe),Et}}var oe={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},ie="readystatechange loadstart progress abort error load timeout loadend".split(" "),le="timeout withCredentials".split(" "),ue="readyState responseURL status statusText responseType response responseText responseXML".split(" "),de={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 pe(){this.custom={events:{},requestHeaders:{},responseHeaders:{}}}pe._settings={timeout:"10-100"},pe.setup=function(Ie){return V.extend(pe._settings,Ie),pe._settings},V.extend(pe,oe),V.extend(pe.prototype,oe),pe.prototype.mock=!0,pe.prototype.match=!1,V.extend(pe.prototype,{open:function(Ie,Ve,Fe,Ue,qe){var Et=this;V.extend(this.custom,{method:Ie,url:Ve,async:typeof Fe=="boolean"?Fe:!0,username:Ue,password:qe,options:{url:Ve,type:Ie}}),this.custom.timeout=function(En){if(typeof En=="number")return En;if(typeof En=="string"&&!~En.indexOf("-"))return parseInt(En,10);if(typeof En=="string"&&~En.indexOf("-")){var wn=En.split("-"),$n=parseInt(wn[0],10),Tn=parseInt(wn[1],10);return Math.round(Math.random()*(Tn-$n))+$n}}(pe._settings.timeout);var Lt=_e(this.custom.options);function hn(En){for(var wn=0;wn=48&&le<=57||le>=65&&le<=90||le>=97&&le<=122||le===95){oe+=t[ie++];continue}break}if(!oe)throw new TypeError("Missing parameter name at ".concat($));r.push({type:"NAME",index:$,value:oe}),$=ie;continue}if(V==="("){var ue=1,de="",ie=$+1;if(t[ie]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(ie));for(;ie)?(?!\?)/g,V=0,oe=$.exec(t.source);oe;)r.push({name:oe[1]||V++,prefix:"",suffix:"",modifier:"",pattern:""}),oe=$.exec(t.source);return t}function arrayToRegexp(t,r,$){var V=t.map(function(oe){return pathToRegexp(oe,r,$).source});return new RegExp("(?:".concat(V.join("|"),")"),flags($))}function stringToRegexp(t,r,$){return tokensToRegexp(parse(t,$),r,$)}function tokensToRegexp(t,r,$){$===void 0&&($={});for(var V=$.strict,oe=V===void 0?!1:V,ie=$.start,le=ie===void 0?!0:ie,ue=$.end,de=ue===void 0?!0:ue,pe=$.encode,he=pe===void 0?function($n){return $n}:pe,_e=$.delimiter,$e=_e===void 0?"/#?":_e,Ie=$.endsWith,Ve=Ie===void 0?"":Ie,Fe="[".concat(escapeString(Ve),"]|$"),Ue="[".concat(escapeString($e),"]"),qe=le?"^":"",Et=0,Lt=t;Et-1:En===void 0;oe||(qe+="(?:".concat(Ue,"(?=").concat(Fe,"))?")),wn||(qe+="(?=".concat(Ue,"|").concat(Fe,")"))}return new RegExp(qe,flags($))}function pathToRegexp(t,r,$){return t instanceof RegExp?regexpToRegexp(t,r):Array.isArray(t)?arrayToRegexp(t,r,$):stringToRegexp(t,r,$)}const Mock=mockJs;function createProdMockServer(t){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 r={};for(let $ in this.custom.requestHeaders)r[$.toString().toLowerCase()]=this.custom.requestHeaders[$];this.custom.options=Object.assign({},this.custom.options,{headers:r})}this.__send.apply(this,arguments)},Mock.XHR.prototype.proxy_open=Mock.XHR.prototype.open,Mock.XHR.prototype.open=function(){let r=this.responseType;this.proxy_open(...arguments),this.custom.xhr&&r&&(this.custom.xhr.responseType=r)};for(const{url:r,method:$,response:V,timeout:oe}of t)__setupMock__(oe),Mock.mock(pathToRegexp(r,void 0,{end:!1}),$||"get",__XHR2ExpressReqWrapper__(V))}function __param2Obj__(t){const r=t.split("?")[1];return r?JSON.parse('{"'+decodeURIComponent(r).replace(/"/g,'\\"').replace(/&/g,'","').replace(/=/g,'":"').replace(/\+/g," ")+'"}'):{}}function __XHR2ExpressReqWrapper__(t){return function(r){let $=null;if(typeof t=="function"){const{body:V,type:oe,url:ie,headers:le}=r;let ue=V;try{ue=JSON.parse(V)}catch{}$=t({method:oe,body:ue,query:__param2Obj__(ie),headers:le})}else $=t;return Mock.mock($)}}function __setupMock__(t=0){t&&Mock.setup({timeout:t})}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(t=>{mockModules.push(...modules[t].default)});function setupProdMockServer(){createProdMockServer(mockModules)}const app=createApp(App);Object.keys(directives).forEach(t=>{app.directive(t,directives[t])});app.component("IconifyIconOffline",IconifyIconOffline);app.component("IconifyIconOnline",IconifyIconOnline);app.component("FontIcon",FontIcon);app.component("Auth",Auth);getPlatformConfig(app).then(async t=>{setupStore(app),app.use(router),await router.isReady(),injectResponsiveStorage(app,t),app.use(MotionPlugin).use(useI18n).use(installer).use(Pe).use(I).use(useEcharts),app.mount("#app")});setupProdMockServer();export{normalizeProps as $,axios$1 as A,_t as B,markRaw as C,en as D,usePermissionStoreHook as E,Fragment as F,computed as G,Hn as H,IconSelect as I,extractPathList as J,transformI18n as K,deleteChildren as L,h$2 as M,Nn as N,On as O,kn as P,getDefaultExportFromCjs as Q,resolveDynamicComponent as R,_n as S,Tt as T,nn as U,onUpdated as V,provide as W,watch as X,Y,onBeforeUpdate as Z,_export_sfc as _,onMounted as a,templateRef as a$,guardReactiveProps as a0,useI18n$1 as a1,commonjsGlobal as a2,ElInfiniteScroll as a3,useRouter as a4,addDialog as a5,updateDialog as a6,closeDialog as a7,closeAllDialog as a8,hot as a9,useIntervalFn as aA,P$1 as aB,defineStore as aC,rr as aD,responsiveStorageNameSpace as aE,getConfig as aF,store as aG,FontIcon as aH,IconifyIconOffline as aI,IconifyIconOnline as aJ,A as aK,withScopeId as aL,shallowReactive as aM,toHandlers as aN,getAugmentedNamespace as aO,vue_runtime_esmBundler as aP,useVModel as aQ,vn as aR,createStaticVNode as aS,useResizeObserver as aT,I$1 as aU,longpress as aV,ElUpload as aW,F as aX,Je as aY,Ge as aZ,Qe as a_,closeAllMessage as aa,qr as ab,getCurrentInstance as ac,toRefs as ad,onUnmounted as ae,renderSlot as af,useCssVars as ag,getCurrentScope as ah,onScopeDispose as ai,normalizeStyle$1 as aj,inject as ak,reactive as al,ElLoading as am,withModifiers as an,mergeProps as ao,In as ap,http as aq,onBeforeMount as ar,TransitionGroup as as,normalizeClass as at,shallowRef as au,isRef as av,isReactive as aw,isVNode$1 as ax,createApp as ay,eo as az,onBeforeUnmount as b,baseForOwn as b$,tryOnMounted as b0,tryOnUnmounted as b1,useDebounceFn as b2,Teleport as b3,withKeys as b4,watchEffect as b5,toRaw as b6,ElCol as b7,isSymbol$1 as b8,baseToString as b9,isPlainObject$3 as bA,baseRest as bB,toKey as bC,baseAssignValue as bD,toString$2 as bE,toNumber as bF,isIterateeCall as bG,baseClone as bH,arrayPush as bI,baseFlatten as bJ,arrayMap as bK,baseIteratee as bL,baseEach$1 as bM,baseAssign as bN,eq as bO,baseMerge as bP,baseUnary as bQ,SetCache as bR,arrayIncludesWith as bS,cacheHas as bT,isArrayLikeObject as bU,createBaseFor as bV,createBaseEach as bW,getTag$1 as bX,mapToArray as bY,arrayFilter as bZ,baseFindIndex as b_,toInteger as ba,WeakMap$4 as bb,identity$1 as bc,baseCreate$1 as bd,isObject$9 as be,root$1 as bf,noop$5 as bg,copyArray as bh,isObjectLike as bi,isArray$b as bj,shortOut as bk,arrayEach as bl,arrayIncludes as bm,setToString$1 as bn,isIndex as bo,apply$1 as bp,createAssigner as bq,isPrototype as br,isArrayLike$1 as bs,copyObject as bt,keys$1 as bu,assignValue as bv,keysIn as bw,get$1 as bx,flatRest as by,baseGetTag as bz,resolveComponent as c,useRoute as c$,findLastIndex as c0,map$3 as c1,baseFor$1 as c2,isFunction$3 as c3,hasPath as c4,toFinite as c5,baseIndexOf as c6,constant as c7,baseGet as c8,castPath as c9,trimmedEndIndex as cA,baseUniq as cB,flatten as cC,flattenDeep as cD,fromPairs as cE,union$1 as cF,flatMap as cG,now$1 as cH,debounce as cI,memoize as cJ,throttle$1 as cK,castArray$1 as cL,clone$4 as cM,cloneDeep as cN,isEqual$1 as cO,isLength as cP,isMap$2 as cQ,isNil as cR,isSet$2 as cS,isUndefined$2 as cT,toPlainObject as cU,hasIn as cV,merge$4 as cW,pick$1 as cX,set$2 as cY,property as cZ,stubArray as c_,nodeUtil$1 as ca,isBuffer$3 as cb,isTypedArray$3 as cc,isArguments$1 as cd,baseKeys as ce,baseIsEqual as cf,baseIsMatch as cg,getMatchData as ch,coreJsData$1 as ci,stubFalse as cj,baseIsNative as ck,baseIsNaN as cl,baseMatches as cm,baseMatchesProperty as cn,Symbol$3 as co,setToArray as cp,getAllKeysIn as cq,basePickBy as cr,baseMap as cs,arraySome as ct,baseProperty as cu,baseSet as cv,baseTimes as cw,stringToPath$2 as cx,getPrototype$1 as cy,baseTrim as cz,defineComponent as d,addIcon$1 as d0,onKeyStroke as d1,k as d2,getParentPaths as d3,findRouteByPath as d4,useMultiTagsStoreHook as d5,Xt as d6,$t as d7,data$2 as d8,useEventListener as d9,toHandlerKey as dA,render$4 as dB,vModelSelect as dC,initRouter as dD,Le as dE,getAuths as dF,hasAuth as dG,Oe$1 as dH,handleTree as dI,Ar as dJ,fr as dK,ElForm as dL,ElFormItem as dM,ElInput as dN,ElProgress as dO,appendFieldByUniqueId as dP,getNodeByUniqueId as dQ,Ut as dR,xe$1 as da,z as db,getTopMenu as dc,useFullscreen as dd,Transition as de,handleAliveRoute as df,data$1 as dg,routerArrays as dh,At as di,KeepAlive as dj,onClickOutside as dk,removeToken as dl,resetRouter as dm,useMultiTagsStore as dn,storeToRefs as dp,useUserStoreHook as dq,router as dr,remainingPaths as ds,cloneVNode as dt,toRef as du,useWindowSize as dv,dayjs as dw,on as dx,LinearGradient$1 as dy,ElMessageBox as dz,resolveDirective as e,createBlock as f,openBlock as g,createBaseVNode as h,createTextVNode as i,createVNode as j,createCommentVNode as k,withDirectives as l,popScopeId as m,createElementBlock as n,oo as o,pushScopeId as p,message as q,ref as r,go as s,toDisplayString$1 as t,unref as u,vShow as v,withCtx as w,nextTick as x,renderList as y,zt as z};